summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--readme.html8
-rw-r--r--wp-admin/about.php251
-rw-r--r--wp-admin/admin-ajax.php2
-rw-r--r--wp-admin/admin-header.php2
-rw-r--r--wp-admin/admin-post.php2
-rw-r--r--wp-admin/async-upload.php28
-rw-r--r--wp-admin/comment.php3
-rw-r--r--wp-admin/css/about-rtl.css38
-rw-r--r--wp-admin/css/about-rtl.min.css2
-rw-r--r--wp-admin/css/about.css38
-rw-r--r--wp-admin/css/about.min.css2
-rw-r--r--wp-admin/css/common-rtl.css16
-rw-r--r--wp-admin/css/common-rtl.min.css4
-rw-r--r--wp-admin/css/common.css16
-rw-r--r--wp-admin/css/common.min.css4
-rw-r--r--wp-admin/css/customize-controls-rtl.css112
-rw-r--r--wp-admin/css/customize-controls-rtl.min.css2
-rw-r--r--wp-admin/css/customize-controls.css112
-rw-r--r--wp-admin/css/customize-controls.min.css2
-rw-r--r--wp-admin/css/customize-nav-menus-rtl.css10
-rw-r--r--wp-admin/css/customize-nav-menus-rtl.min.css2
-rw-r--r--wp-admin/css/customize-nav-menus.css10
-rw-r--r--wp-admin/css/customize-nav-menus.min.css2
-rw-r--r--wp-admin/css/forms-rtl.css7
-rw-r--r--wp-admin/css/forms-rtl.min.css2
-rw-r--r--wp-admin/css/forms.css7
-rw-r--r--wp-admin/css/forms.min.css2
-rw-r--r--wp-admin/css/install-rtl.css1
-rw-r--r--wp-admin/css/install-rtl.min.css2
-rw-r--r--wp-admin/css/install.css1
-rw-r--r--wp-admin/css/install.min.css2
-rw-r--r--wp-admin/css/l10n-rtl.css17
-rw-r--r--wp-admin/css/l10n-rtl.min.css2
-rw-r--r--wp-admin/css/l10n.css17
-rw-r--r--wp-admin/css/l10n.min.css2
-rw-r--r--wp-admin/css/list-tables-rtl.css3
-rw-r--r--wp-admin/css/list-tables-rtl.min.css2
-rw-r--r--wp-admin/css/list-tables.css3
-rw-r--r--wp-admin/css/list-tables.min.css2
-rw-r--r--wp-admin/css/login-rtl.css3
-rw-r--r--wp-admin/css/login-rtl.min.css2
-rw-r--r--wp-admin/css/login.css3
-rw-r--r--wp-admin/css/login.min.css2
-rw-r--r--wp-admin/css/media-rtl.css43
-rw-r--r--wp-admin/css/media-rtl.min.css2
-rw-r--r--wp-admin/css/media.css43
-rw-r--r--wp-admin/css/media.min.css2
-rw-r--r--wp-admin/css/nav-menus-rtl.css23
-rw-r--r--wp-admin/css/nav-menus-rtl.min.css2
-rw-r--r--wp-admin/css/nav-menus.css23
-rw-r--r--wp-admin/css/nav-menus.min.css2
-rw-r--r--wp-admin/css/themes-rtl.css27
-rw-r--r--wp-admin/css/themes-rtl.min.css2
-rw-r--r--wp-admin/css/themes.css27
-rw-r--r--wp-admin/css/themes.min.css2
-rw-r--r--wp-admin/customize.php4
-rw-r--r--wp-admin/edit-form-advanced.php6
-rw-r--r--wp-admin/edit-form-blocks.php11
-rw-r--r--wp-admin/edit-tag-form.php6
-rw-r--r--wp-admin/edit-tags.php4
-rw-r--r--wp-admin/edit.php4
-rw-r--r--wp-admin/erase-personal-data.php4
-rw-r--r--wp-admin/export-personal-data.php4
-rw-r--r--wp-admin/export.php10
-rw-r--r--wp-admin/images/about-release-badge.svg4
-rw-r--r--wp-admin/includes/ajax-actions.php66
-rw-r--r--wp-admin/includes/class-bulk-plugin-upgrader-skin.php17
-rw-r--r--wp-admin/includes/class-bulk-theme-upgrader-skin.php17
-rw-r--r--wp-admin/includes/class-bulk-upgrader-skin.php52
-rw-r--r--wp-admin/includes/class-core-upgrader.php2
-rw-r--r--wp-admin/includes/class-file-upload-upgrader.php19
-rw-r--r--wp-admin/includes/class-language-pack-upgrader-skin.php18
-rw-r--r--wp-admin/includes/class-language-pack-upgrader.php20
-rw-r--r--wp-admin/includes/class-pclzip.php12
-rw-r--r--wp-admin/includes/class-plugin-installer-skin.php10
-rw-r--r--wp-admin/includes/class-theme-installer-skin.php10
-rw-r--r--wp-admin/includes/class-wp-automatic-updater.php256
-rw-r--r--wp-admin/includes/class-wp-comments-list-table.php6
-rw-r--r--wp-admin/includes/class-wp-debug-data.php17
-rw-r--r--wp-admin/includes/class-wp-links-list-table.php5
-rw-r--r--wp-admin/includes/class-wp-list-table.php22
-rw-r--r--wp-admin/includes/class-wp-ms-themes-list-table.php4
-rw-r--r--wp-admin/includes/class-wp-plugin-install-list-table.php4
-rw-r--r--wp-admin/includes/class-wp-plugins-list-table.php7
-rw-r--r--wp-admin/includes/class-wp-posts-list-table.php2
-rw-r--r--wp-admin/includes/class-wp-screen.php4
-rw-r--r--wp-admin/includes/class-wp-site-health.php257
-rw-r--r--wp-admin/includes/class-wp-terms-list-table.php7
-rw-r--r--wp-admin/includes/class-wp-theme-install-list-table.php3
-rw-r--r--wp-admin/includes/class-wp-upgrader-skin.php23
-rw-r--r--wp-admin/includes/class-wp-upgrader.php71
-rw-r--r--wp-admin/includes/export.php2
-rw-r--r--wp-admin/includes/file.php14
-rw-r--r--wp-admin/includes/image-edit.php4
-rw-r--r--wp-admin/includes/media.php21
-rw-r--r--wp-admin/includes/meta-boxes.php18
-rw-r--r--wp-admin/includes/misc.php21
-rw-r--r--wp-admin/includes/ms.php2
-rw-r--r--wp-admin/includes/nav-menu.php2
-rw-r--r--wp-admin/includes/network.php29
-rw-r--r--wp-admin/includes/plugin-install.php18
-rw-r--r--wp-admin/includes/plugin.php8
-rw-r--r--wp-admin/includes/post.php82
-rw-r--r--wp-admin/includes/schema.php44
-rw-r--r--wp-admin/includes/screen.php2
-rw-r--r--wp-admin/includes/template.php6
-rw-r--r--wp-admin/includes/theme.php3
-rw-r--r--wp-admin/includes/translation-install.php3
-rw-r--r--wp-admin/includes/update-core.php5
-rw-r--r--wp-admin/includes/update.php49
-rw-r--r--wp-admin/includes/upgrade.php17
-rw-r--r--wp-admin/js/common.js59
-rw-r--r--wp-admin/js/common.min.js2
-rw-r--r--wp-admin/js/customize-controls.js12
-rw-r--r--wp-admin/js/customize-controls.min.js2
-rw-r--r--wp-admin/js/customize-nav-menus.js99
-rw-r--r--wp-admin/js/customize-nav-menus.min.js2
-rw-r--r--wp-admin/js/customize-widgets.js5
-rw-r--r--wp-admin/js/customize-widgets.min.js2
-rw-r--r--wp-admin/js/dashboard.js2
-rw-r--r--wp-admin/js/editor-expand.js2
-rw-r--r--wp-admin/js/editor.js4
-rw-r--r--wp-admin/js/nav-menu.js14
-rw-r--r--wp-admin/js/nav-menu.min.js2
-rw-r--r--wp-admin/js/privacy-tools.js2
-rw-r--r--wp-admin/js/privacy-tools.min.js2
-rw-r--r--wp-admin/js/theme-plugin-editor.js2
-rw-r--r--wp-admin/js/theme.js11
-rw-r--r--wp-admin/js/theme.min.js2
-rw-r--r--wp-admin/js/updates.js40
-rw-r--r--wp-admin/js/updates.min.js2
-rw-r--r--wp-admin/js/user-profile.js22
-rw-r--r--wp-admin/js/user-profile.min.js2
-rw-r--r--wp-admin/js/widgets/custom-html-widgets.js2
-rw-r--r--wp-admin/js/widgets/custom-html-widgets.min.js2
-rw-r--r--wp-admin/js/widgets/media-widgets.js2
-rw-r--r--wp-admin/js/widgets/media-widgets.min.js2
-rw-r--r--wp-admin/link-add.php4
-rw-r--r--wp-admin/link-parse-opml.php2
-rw-r--r--wp-admin/link.php4
-rw-r--r--wp-admin/load-scripts.php23
-rw-r--r--wp-admin/load-styles.php23
-rw-r--r--wp-admin/media.php2
-rw-r--r--wp-admin/menu-header.php2
-rw-r--r--wp-admin/menu.php14
-rw-r--r--wp-admin/ms-options.php1
-rw-r--r--wp-admin/nav-menus.php10
-rw-r--r--wp-admin/network.php4
-rw-r--r--wp-admin/network/index.php2
-rw-r--r--wp-admin/network/settings.php2
-rw-r--r--wp-admin/network/site-info.php14
-rw-r--r--wp-admin/network/site-new.php2
-rw-r--r--wp-admin/network/site-themes.php2
-rw-r--r--wp-admin/network/sites.php28
-rw-r--r--wp-admin/network/themes.php2
-rw-r--r--wp-admin/network/upgrade.php2
-rw-r--r--wp-admin/options-general.php8
-rw-r--r--wp-admin/options-head.php2
-rw-r--r--wp-admin/options-permalink.php8
-rw-r--r--wp-admin/options-reading.php6
-rw-r--r--wp-admin/options-writing.php4
-rw-r--r--wp-admin/options.php16
-rw-r--r--wp-admin/plugin-editor.php4
-rw-r--r--wp-admin/plugins.php2
-rw-r--r--wp-admin/post-new.php6
-rw-r--r--wp-admin/post.php8
-rw-r--r--wp-admin/revision.php10
-rw-r--r--wp-admin/setup-config.php6
-rw-r--r--wp-admin/site-health-info.php2
-rw-r--r--wp-admin/site-health.php2
-rw-r--r--wp-admin/theme-editor.php9
-rw-r--r--wp-admin/theme-install.php5
-rw-r--r--wp-admin/themes.php19
-rw-r--r--wp-admin/update-core.php4
-rw-r--r--wp-admin/upload.php3
-rw-r--r--wp-admin/user-edit.php7
-rw-r--r--wp-admin/user/contribute.php13
-rw-r--r--wp-admin/users.php2
-rw-r--r--wp-config-sample.php4
-rw-r--r--wp-content/plugins/akismet/akismet.php16
-rw-r--r--wp-content/plugins/akismet/class.akismet-admin.php53
-rw-r--r--wp-content/plugins/akismet/class.akismet.php282
-rw-r--r--wp-content/plugins/akismet/readme.txt12
-rw-r--r--wp-content/plugins/akismet/views/config.php88
-rw-r--r--wp-content/plugins/akismet/views/notice.php44
-rw-r--r--wp-content/plugins/akismet/views/setup.php2
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/banner-hero.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/banner-project-description.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/cta-content-image-on-right.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/cta-pricing.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/cta-rsvp.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/cta-services-image-left.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/cta-subscribe-centered.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/footer-centered-logo-nav.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/footer-colophon-3-col.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/footer.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/gallery-full-screen-image.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-2-col.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-3-col.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-4-col.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/gallery-project-layout.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/page-about-business.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/page-home-blogging.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/page-home-business.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/page-home-portfolio-gallery.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/page-home-portfolio.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/page-newsletter-landing.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/page-portfolio-overview.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/page-rsvp-landing.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/posts-1-col.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/posts-3-col.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/posts-grid-2-col.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/posts-images-only-3-col.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/posts-images-only-offset-4-col.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/posts-list.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/team-4-col.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/testimonial-centered.php3
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/text-alternating-images.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/text-centered-statement-small.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/text-centered-statement.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/text-faq.php72
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/text-feature-grid-3-col.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/text-project-details.php1
-rw-r--r--wp-content/themes/twentytwentyfour/patterns/text-title-left-image-right.php1
-rw-r--r--wp-content/themes/twentytwentyfour/readme.txt9
-rw-r--r--wp-content/themes/twentytwentyfour/screenshot.pngbin940864 -> 721059 bytes
-rw-r--r--wp-content/themes/twentytwentyfour/style.css4
-rw-r--r--wp-content/themes/twentytwentyfour/templates/home.html10
-rw-r--r--wp-content/themes/twentytwentyfour/theme.json2
-rw-r--r--wp-content/themes/twentytwentythree/parts/header.html6
-rw-r--r--wp-content/themes/twentytwentythree/patterns/call-to-action.php1
-rw-r--r--wp-content/themes/twentytwentythree/patterns/footer-default.php1
-rw-r--r--wp-content/themes/twentytwentythree/patterns/post-meta.php1
-rw-r--r--wp-content/themes/twentytwentythree/readme.txt9
-rw-r--r--wp-content/themes/twentytwentythree/screenshot.pngbin74030 -> 81654 bytes
-rw-r--r--wp-content/themes/twentytwentythree/style.css4
-rw-r--r--wp-content/themes/twentytwentythree/styles/aubergine.json2
-rw-r--r--wp-content/themes/twentytwentythree/templates/archive.html4
-rw-r--r--wp-content/themes/twentytwentythree/templates/home.html4
-rw-r--r--wp-content/themes/twentytwentythree/templates/search.html4
-rw-r--r--wp-content/themes/twentytwentythree/theme.json2
-rw-r--r--wp-content/themes/twentytwentytwo/parts/header.html4
-rw-r--r--wp-content/themes/twentytwentytwo/readme.txt9
-rw-r--r--wp-content/themes/twentytwentytwo/style.css4
-rw-r--r--wp-content/themes/twentytwentytwo/theme.json2
-rw-r--r--wp-includes/Requests/src/Cookie.php8
-rw-r--r--wp-includes/Requests/src/Requests.php2
-rw-r--r--wp-includes/Requests/src/Transport/Fsockopen.php10
-rw-r--r--wp-includes/admin-bar.php4
-rw-r--r--wp-includes/assets/script-loader-packages.min.php2
-rw-r--r--wp-includes/assets/script-loader-packages.php2
-rw-r--r--wp-includes/block-bindings.php26
-rw-r--r--wp-includes/block-editor.php6
-rw-r--r--wp-includes/block-supports/background.php49
-rw-r--r--wp-includes/block-supports/block-style-variations.php312
-rw-r--r--wp-includes/block-supports/duotone.php1
-rw-r--r--wp-includes/block-supports/elements.php142
-rw-r--r--wp-includes/block-supports/layout.php191
-rw-r--r--wp-includes/block-supports/shadow.php6
-rw-r--r--wp-includes/block-supports/typography.php68
-rw-r--r--wp-includes/block-template-utils.php121
-rw-r--r--wp-includes/block-template.php4
-rw-r--r--wp-includes/blocks.php404
-rw-r--r--wp-includes/blocks/archives.php4
-rw-r--r--wp-includes/blocks/audio/style-rtl.css2
-rw-r--r--wp-includes/blocks/audio/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/audio/style.css2
-rw-r--r--wp-includes/blocks/audio/style.min.css2
-rw-r--r--wp-includes/blocks/audio/theme-rtl.css4
-rw-r--r--wp-includes/blocks/audio/theme-rtl.min.css2
-rw-r--r--wp-includes/blocks/audio/theme.css4
-rw-r--r--wp-includes/blocks/audio/theme.min.css2
-rw-r--r--wp-includes/blocks/avatar.php19
-rw-r--r--wp-includes/blocks/block.php8
-rw-r--r--wp-includes/blocks/block/block.json6
-rw-r--r--wp-includes/blocks/block/editor-rtl.css20
-rw-r--r--wp-includes/blocks/block/editor-rtl.min.css1
-rw-r--r--wp-includes/blocks/block/editor.css20
-rw-r--r--wp-includes/blocks/block/editor.min.css1
-rw-r--r--wp-includes/blocks/blocks-json.php70
-rw-r--r--wp-includes/blocks/button.php80
-rw-r--r--wp-includes/blocks/button/block.json1
-rw-r--r--wp-includes/blocks/button/editor-rtl.css31
-rw-r--r--wp-includes/blocks/button/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/button/editor.css31
-rw-r--r--wp-includes/blocks/button/editor.min.css2
-rw-r--r--wp-includes/blocks/button/style-rtl.css39
-rw-r--r--wp-includes/blocks/button/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/button/style.css39
-rw-r--r--wp-includes/blocks/button/style.min.css2
-rw-r--r--wp-includes/blocks/calendar.php17
-rw-r--r--wp-includes/blocks/categories.php6
-rw-r--r--wp-includes/blocks/comment-author-name.php4
-rw-r--r--wp-includes/blocks/comment-content.php4
-rw-r--r--wp-includes/blocks/comment-date.php4
-rw-r--r--wp-includes/blocks/comment-edit-link.php4
-rw-r--r--wp-includes/blocks/comment-reply-link.php4
-rw-r--r--wp-includes/blocks/comment-template.php4
-rw-r--r--wp-includes/blocks/comments-pagination-next.php4
-rw-r--r--wp-includes/blocks/comments-pagination-numbers.php4
-rw-r--r--wp-includes/blocks/comments-pagination-previous.php4
-rw-r--r--wp-includes/blocks/comments-pagination.php4
-rw-r--r--wp-includes/blocks/comments-title.php4
-rw-r--r--wp-includes/blocks/comments.php12
-rw-r--r--wp-includes/blocks/cover.php4
-rw-r--r--wp-includes/blocks/cover/block.json1
-rw-r--r--wp-includes/blocks/cover/editor-rtl.css12
-rw-r--r--wp-includes/blocks/cover/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/cover/editor.css12
-rw-r--r--wp-includes/blocks/cover/editor.min.css2
-rw-r--r--wp-includes/blocks/cover/style-rtl.css18
-rw-r--r--wp-includes/blocks/cover/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/cover/style.css18
-rw-r--r--wp-includes/blocks/cover/style.min.css2
-rw-r--r--wp-includes/blocks/details/block.json1
-rw-r--r--wp-includes/blocks/details/style-rtl.css1
-rw-r--r--wp-includes/blocks/details/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/details/style.css1
-rw-r--r--wp-includes/blocks/details/style.min.css2
-rw-r--r--wp-includes/blocks/embed/editor-rtl.css3
-rw-r--r--wp-includes/blocks/embed/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/embed/editor.css3
-rw-r--r--wp-includes/blocks/embed/editor.min.css2
-rw-r--r--wp-includes/blocks/embed/style-rtl.css2
-rw-r--r--wp-includes/blocks/embed/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/embed/style.css2
-rw-r--r--wp-includes/blocks/embed/style.min.css2
-rw-r--r--wp-includes/blocks/embed/theme-rtl.css4
-rw-r--r--wp-includes/blocks/embed/theme-rtl.min.css2
-rw-r--r--wp-includes/blocks/embed/theme.css4
-rw-r--r--wp-includes/blocks/embed/theme.min.css2
-rw-r--r--wp-includes/blocks/file.php38
-rw-r--r--wp-includes/blocks/file/editor-rtl.css3
-rw-r--r--wp-includes/blocks/file/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/file/editor.css3
-rw-r--r--wp-includes/blocks/file/editor.min.css2
-rw-r--r--wp-includes/blocks/gallery.php8
-rw-r--r--wp-includes/blocks/gallery/editor-rtl.css24
-rw-r--r--wp-includes/blocks/gallery/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/gallery/editor.css24
-rw-r--r--wp-includes/blocks/gallery/editor.min.css2
-rw-r--r--wp-includes/blocks/group/editor-rtl.css45
-rw-r--r--wp-includes/blocks/group/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/group/editor.css45
-rw-r--r--wp-includes/blocks/group/editor.min.css2
-rw-r--r--wp-includes/blocks/group/style-rtl.css4
-rw-r--r--wp-includes/blocks/group/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/group/style.css4
-rw-r--r--wp-includes/blocks/group/style.min.css2
-rw-r--r--wp-includes/blocks/heading.php4
-rw-r--r--wp-includes/blocks/heading/block.json1
-rw-r--r--wp-includes/blocks/home-link.php10
-rw-r--r--wp-includes/blocks/html/editor-rtl.css1
-rw-r--r--wp-includes/blocks/html/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/html/editor.css1
-rw-r--r--wp-includes/blocks/html/editor.min.css2
-rw-r--r--wp-includes/blocks/image.php62
-rw-r--r--wp-includes/blocks/image/editor-rtl.css15
-rw-r--r--wp-includes/blocks/image/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/image/editor.css15
-rw-r--r--wp-includes/blocks/image/editor.min.css2
-rw-r--r--wp-includes/blocks/image/style-rtl.css36
-rw-r--r--wp-includes/blocks/image/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/image/style.css36
-rw-r--r--wp-includes/blocks/image/style.min.css2
-rw-r--r--wp-includes/blocks/image/theme-rtl.css4
-rw-r--r--wp-includes/blocks/image/theme-rtl.min.css2
-rw-r--r--wp-includes/blocks/image/theme.css4
-rw-r--r--wp-includes/blocks/image/theme.min.css2
-rw-r--r--wp-includes/blocks/image/view.js4
-rw-r--r--wp-includes/blocks/latest-comments.php4
-rw-r--r--wp-includes/blocks/latest-posts.php11
-rw-r--r--wp-includes/blocks/latest-posts/editor-rtl.css18
-rw-r--r--wp-includes/blocks/latest-posts/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/latest-posts/editor.css18
-rw-r--r--wp-includes/blocks/latest-posts/editor.min.css2
-rw-r--r--wp-includes/blocks/latest-posts/style-rtl.css10
-rw-r--r--wp-includes/blocks/latest-posts/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/latest-posts/style.css10
-rw-r--r--wp-includes/blocks/latest-posts/style.min.css2
-rw-r--r--wp-includes/blocks/legacy-widget.php8
-rw-r--r--wp-includes/blocks/list-item/block.json3
-rw-r--r--wp-includes/blocks/list.php54
-rw-r--r--wp-includes/blocks/list/block.json3
-rw-r--r--wp-includes/blocks/list/style-rtl.css3
-rw-r--r--wp-includes/blocks/list/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/list/style.css3
-rw-r--r--wp-includes/blocks/list/style.min.css2
-rw-r--r--wp-includes/blocks/loginout.php4
-rw-r--r--wp-includes/blocks/media-text.php121
-rw-r--r--wp-includes/blocks/media-text/block.json5
-rw-r--r--wp-includes/blocks/media-text/editor-rtl.css5
-rw-r--r--wp-includes/blocks/media-text/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/media-text/editor.css5
-rw-r--r--wp-includes/blocks/media-text/editor.min.css2
-rw-r--r--wp-includes/blocks/media-text/style-rtl.css24
-rw-r--r--wp-includes/blocks/media-text/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/media-text/style.css24
-rw-r--r--wp-includes/blocks/media-text/style.min.css10
-rw-r--r--wp-includes/blocks/more/block.json3
-rw-r--r--wp-includes/blocks/navigation-link.php21
-rw-r--r--wp-includes/blocks/navigation-link/style-rtl.css8
-rw-r--r--wp-includes/blocks/navigation-link/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/navigation-link/style.css8
-rw-r--r--wp-includes/blocks/navigation-link/style.min.css2
-rw-r--r--wp-includes/blocks/navigation-submenu.php15
-rw-r--r--wp-includes/blocks/navigation.php147
-rw-r--r--wp-includes/blocks/navigation/block.json9
-rw-r--r--wp-includes/blocks/navigation/editor-rtl.css4
-rw-r--r--wp-includes/blocks/navigation/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/navigation/editor.css4
-rw-r--r--wp-includes/blocks/navigation/editor.min.css2
-rw-r--r--wp-includes/blocks/navigation/style-rtl.css6
-rw-r--r--wp-includes/blocks/navigation/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/navigation/style.css6
-rw-r--r--wp-includes/blocks/navigation/style.min.css2
-rw-r--r--wp-includes/blocks/navigation/view.js6
-rw-r--r--wp-includes/blocks/page-list-item.php2
-rw-r--r--wp-includes/blocks/page-list.php12
-rw-r--r--wp-includes/blocks/paragraph/block.json2
-rw-r--r--wp-includes/blocks/paragraph/style-rtl.css2
-rw-r--r--wp-includes/blocks/paragraph/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/paragraph/style.css2
-rw-r--r--wp-includes/blocks/paragraph/style.min.css2
-rw-r--r--wp-includes/blocks/pattern.php2
-rw-r--r--wp-includes/blocks/post-author-biography.php11
-rw-r--r--wp-includes/blocks/post-author-name.php11
-rw-r--r--wp-includes/blocks/post-author.php4
-rw-r--r--wp-includes/blocks/post-comments-form.php6
-rw-r--r--wp-includes/blocks/post-comments-form/style-rtl.css17
-rw-r--r--wp-includes/blocks/post-comments-form/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/post-comments-form/style.css17
-rw-r--r--wp-includes/blocks/post-comments-form/style.min.css2
-rw-r--r--wp-includes/blocks/post-content.php4
-rw-r--r--wp-includes/blocks/post-date.php4
-rw-r--r--wp-includes/blocks/post-excerpt.php4
-rw-r--r--wp-includes/blocks/post-featured-image.php15
-rw-r--r--wp-includes/blocks/post-featured-image/block.json15
-rw-r--r--wp-includes/blocks/post-featured-image/editor-rtl.css13
-rw-r--r--wp-includes/blocks/post-featured-image/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/post-featured-image/editor.css13
-rw-r--r--wp-includes/blocks/post-featured-image/editor.min.css2
-rw-r--r--wp-includes/blocks/post-navigation-link.php4
-rw-r--r--wp-includes/blocks/post-template.php6
-rw-r--r--wp-includes/blocks/post-template/style-rtl.css3
-rw-r--r--wp-includes/blocks/post-template/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/post-template/style.css3
-rw-r--r--wp-includes/blocks/post-template/style.min.css2
-rw-r--r--wp-includes/blocks/post-terms.php6
-rw-r--r--wp-includes/blocks/post-title.php4
-rw-r--r--wp-includes/blocks/pullquote/style-rtl.css5
-rw-r--r--wp-includes/blocks/pullquote/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/pullquote/style.css5
-rw-r--r--wp-includes/blocks/pullquote/style.min.css2
-rw-r--r--wp-includes/blocks/query-no-results.php6
-rw-r--r--wp-includes/blocks/query-pagination-next.php8
-rw-r--r--wp-includes/blocks/query-pagination-numbers.php6
-rw-r--r--wp-includes/blocks/query-pagination-previous.php6
-rw-r--r--wp-includes/blocks/query-pagination.php4
-rw-r--r--wp-includes/blocks/query-title.php4
-rw-r--r--wp-includes/blocks/query.php4
-rw-r--r--wp-includes/blocks/query/editor-rtl.css3
-rw-r--r--wp-includes/blocks/query/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/query/editor.css3
-rw-r--r--wp-includes/blocks/query/editor.min.css2
-rw-r--r--wp-includes/blocks/quote/block.json2
-rw-r--r--wp-includes/blocks/read-more.php4
-rw-r--r--wp-includes/blocks/require-dynamic-blocks.php3
-rw-r--r--wp-includes/blocks/require-static-blocks.php3
-rw-r--r--wp-includes/blocks/rss.php4
-rw-r--r--wp-includes/blocks/rss/editor-rtl.css11
-rw-r--r--wp-includes/blocks/rss/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/rss/editor.css11
-rw-r--r--wp-includes/blocks/rss/editor.min.css2
-rw-r--r--wp-includes/blocks/search.php24
-rw-r--r--wp-includes/blocks/search/style-rtl.css13
-rw-r--r--wp-includes/blocks/search/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/search/style.css13
-rw-r--r--wp-includes/blocks/search/style.min.css2
-rw-r--r--wp-includes/blocks/separator/editor-rtl.css4
-rw-r--r--wp-includes/blocks/separator/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/separator/editor.css4
-rw-r--r--wp-includes/blocks/separator/editor.min.css2
-rw-r--r--wp-includes/blocks/separator/style-rtl.css13
-rw-r--r--wp-includes/blocks/separator/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/separator/style.css13
-rw-r--r--wp-includes/blocks/separator/style.min.css2
-rw-r--r--wp-includes/blocks/shortcode.php4
-rw-r--r--wp-includes/blocks/shortcode/editor-rtl.css4
-rw-r--r--wp-includes/blocks/shortcode/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/shortcode/editor.css4
-rw-r--r--wp-includes/blocks/shortcode/editor.min.css2
-rw-r--r--wp-includes/blocks/site-logo.php22
-rw-r--r--wp-includes/blocks/site-logo/editor-rtl.css17
-rw-r--r--wp-includes/blocks/site-logo/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/site-logo/editor.css17
-rw-r--r--wp-includes/blocks/site-logo/editor.min.css2
-rw-r--r--wp-includes/blocks/site-logo/style-rtl.css3
-rw-r--r--wp-includes/blocks/site-logo/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/site-logo/style.css3
-rw-r--r--wp-includes/blocks/site-logo/style.min.css2
-rw-r--r--wp-includes/blocks/site-tagline.php14
-rw-r--r--wp-includes/blocks/site-tagline/block.json4
-rw-r--r--wp-includes/blocks/site-title.php4
-rw-r--r--wp-includes/blocks/site-title/editor-rtl.css2
-rw-r--r--wp-includes/blocks/site-title/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/site-title/editor.css2
-rw-r--r--wp-includes/blocks/site-title/editor.min.css2
-rw-r--r--wp-includes/blocks/site-title/style-rtl.css2
-rw-r--r--wp-includes/blocks/site-title/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/site-title/style.css2
-rw-r--r--wp-includes/blocks/site-title/style.min.css2
-rw-r--r--wp-includes/blocks/social-link.php37
-rw-r--r--wp-includes/blocks/social-link/block.json2
-rw-r--r--wp-includes/blocks/social-link/editor-rtl.css19
-rw-r--r--wp-includes/blocks/social-link/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/social-link/editor.css19
-rw-r--r--wp-includes/blocks/social-link/editor.min.css2
-rw-r--r--wp-includes/blocks/social-links/block.json2
-rw-r--r--wp-includes/blocks/social-links/editor-rtl.css25
-rw-r--r--wp-includes/blocks/social-links/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/social-links/editor.css25
-rw-r--r--wp-includes/blocks/social-links/editor.min.css2
-rw-r--r--wp-includes/blocks/social-links/style-rtl.css209
-rw-r--r--wp-includes/blocks/social-links/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/social-links/style.css209
-rw-r--r--wp-includes/blocks/social-links/style.min.css2
-rw-r--r--wp-includes/blocks/table/block.json2
-rw-r--r--wp-includes/blocks/table/theme-rtl.css4
-rw-r--r--wp-includes/blocks/table/theme-rtl.min.css2
-rw-r--r--wp-includes/blocks/table/theme.css4
-rw-r--r--wp-includes/blocks/table/theme.min.css2
-rw-r--r--wp-includes/blocks/tag-cloud.php4
-rw-r--r--wp-includes/blocks/tag-cloud/style-rtl.css6
-rw-r--r--wp-includes/blocks/tag-cloud/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/tag-cloud/style.css6
-rw-r--r--wp-includes/blocks/tag-cloud/style.min.css2
-rw-r--r--wp-includes/blocks/template-part.php12
-rw-r--r--wp-includes/blocks/template-part/editor-rtl.css14
-rw-r--r--wp-includes/blocks/template-part/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/template-part/editor.css14
-rw-r--r--wp-includes/blocks/template-part/editor.min.css2
-rw-r--r--wp-includes/blocks/template-part/theme-rtl.css2
-rw-r--r--wp-includes/blocks/template-part/theme-rtl.min.css2
-rw-r--r--wp-includes/blocks/template-part/theme.css2
-rw-r--r--wp-includes/blocks/template-part/theme.min.css2
-rw-r--r--wp-includes/blocks/term-description.php4
-rw-r--r--wp-includes/blocks/video/style-rtl.css2
-rw-r--r--wp-includes/blocks/video/style-rtl.min.css2
-rw-r--r--wp-includes/blocks/video/style.css2
-rw-r--r--wp-includes/blocks/video/style.min.css2
-rw-r--r--wp-includes/blocks/video/theme-rtl.css4
-rw-r--r--wp-includes/blocks/video/theme-rtl.min.css2
-rw-r--r--wp-includes/blocks/video/theme.css4
-rw-r--r--wp-includes/blocks/video/theme.min.css2
-rw-r--r--wp-includes/blocks/widget-group.php15
-rw-r--r--wp-includes/blocks/widget-group/block.json1
-rw-r--r--wp-includes/bookmark-template.php6
-rw-r--r--wp-includes/bookmark.php4
-rw-r--r--wp-includes/capabilities.php6
-rw-r--r--wp-includes/class-walker-comment.php16
-rw-r--r--wp-includes/class-wp-admin-bar.php8
-rw-r--r--wp-includes/class-wp-block-bindings-registry.php38
-rw-r--r--wp-includes/class-wp-block-bindings-source.php3
-rw-r--r--wp-includes/class-wp-block-patterns-registry.php4
-rw-r--r--wp-includes/class-wp-block-styles-registry.php21
-rw-r--r--wp-includes/class-wp-block-supports.php2
-rw-r--r--wp-includes/class-wp-block-type.php8
-rw-r--r--wp-includes/class-wp-block.php72
-rw-r--r--wp-includes/class-wp-comment-query.php11
-rw-r--r--wp-includes/class-wp-customize-control.php15
-rw-r--r--wp-includes/class-wp-customize-manager.php9
-rw-r--r--wp-includes/class-wp-customize-nav-menus.php43
-rw-r--r--wp-includes/class-wp-customize-widgets.php4
-rw-r--r--wp-includes/class-wp-duotone.php46
-rw-r--r--wp-includes/class-wp-editor.php2
-rw-r--r--wp-includes/class-wp-http.php1
-rw-r--r--wp-includes/class-wp-image-editor-gd.php24
-rw-r--r--wp-includes/class-wp-image-editor-imagick.php2
-rw-r--r--wp-includes/class-wp-locale.php3
-rw-r--r--wp-includes/class-wp-meta-query.php4
-rw-r--r--wp-includes/class-wp-network-query.php11
-rw-r--r--wp-includes/class-wp-network.php4
-rw-r--r--wp-includes/class-wp-oembed-controller.php2
-rw-r--r--wp-includes/class-wp-oembed.php7
-rw-r--r--wp-includes/class-wp-plugin-dependencies.php2
-rw-r--r--wp-includes/class-wp-post-type.php15
-rw-r--r--wp-includes/class-wp-query.php72
-rw-r--r--wp-includes/class-wp-script-modules.php15
-rw-r--r--wp-includes/class-wp-site-query.php11
-rw-r--r--wp-includes/class-wp-textdomain-registry.php17
-rw-r--r--wp-includes/class-wp-theme-json-data.php13
-rw-r--r--wp-includes/class-wp-theme-json-resolver.php345
-rw-r--r--wp-includes/class-wp-theme-json-schema.php86
-rw-r--r--wp-includes/class-wp-theme-json.php803
-rw-r--r--wp-includes/class-wp-theme.php56
-rw-r--r--wp-includes/class-wp-token-map.php818
-rw-r--r--wp-includes/class-wp-user-query.php50
-rw-r--r--wp-includes/class-wp-walker.php16
-rw-r--r--wp-includes/class-wpdb.php34
-rw-r--r--wp-includes/comment-template.php8
-rw-r--r--wp-includes/comment.php5
-rw-r--r--wp-includes/compat.php68
-rw-r--r--wp-includes/cron.php13
-rw-r--r--wp-includes/css/admin-bar-rtl.css10
-rw-r--r--wp-includes/css/admin-bar-rtl.min.css2
-rw-r--r--wp-includes/css/admin-bar.css10
-rw-r--r--wp-includes/css/admin-bar.min.css2
-rw-r--r--wp-includes/css/dist/block-directory/style-rtl.css4
-rw-r--r--wp-includes/css/dist/block-directory/style-rtl.min.css2
-rw-r--r--wp-includes/css/dist/block-directory/style.css4
-rw-r--r--wp-includes/css/dist/block-directory/style.min.css2
-rw-r--r--wp-includes/css/dist/block-editor/content-rtl.css272
-rw-r--r--wp-includes/css/dist/block-editor/content-rtl.min.css2
-rw-r--r--wp-includes/css/dist/block-editor/content.css272
-rw-r--r--wp-includes/css/dist/block-editor/content.min.css2
-rw-r--r--wp-includes/css/dist/block-editor/default-editor-styles-rtl.css2
-rw-r--r--wp-includes/css/dist/block-editor/default-editor-styles-rtl.min.css2
-rw-r--r--wp-includes/css/dist/block-editor/default-editor-styles.css2
-rw-r--r--wp-includes/css/dist/block-editor/default-editor-styles.min.css2
-rw-r--r--wp-includes/css/dist/block-editor/style-rtl.css738
-rw-r--r--wp-includes/css/dist/block-editor/style-rtl.min.css2
-rw-r--r--wp-includes/css/dist/block-editor/style.css738
-rw-r--r--wp-includes/css/dist/block-editor/style.min.css2
-rw-r--r--wp-includes/css/dist/block-library/common-rtl.css6
-rw-r--r--wp-includes/css/dist/block-library/common-rtl.min.css2
-rw-r--r--wp-includes/css/dist/block-library/common.css6
-rw-r--r--wp-includes/css/dist/block-library/common.min.css2
-rw-r--r--wp-includes/css/dist/block-library/editor-rtl.css307
-rw-r--r--wp-includes/css/dist/block-library/editor-rtl.min.css2
-rw-r--r--wp-includes/css/dist/block-library/editor.css307
-rw-r--r--wp-includes/css/dist/block-library/editor.min.css4
-rw-r--r--wp-includes/css/dist/block-library/reset-rtl.css2
-rw-r--r--wp-includes/css/dist/block-library/reset-rtl.min.css2
-rw-r--r--wp-includes/css/dist/block-library/reset.css2
-rw-r--r--wp-includes/css/dist/block-library/reset.min.css2
-rw-r--r--wp-includes/css/dist/block-library/style-rtl.css431
-rw-r--r--wp-includes/css/dist/block-library/style-rtl.min.css2
-rw-r--r--wp-includes/css/dist/block-library/style.css431
-rw-r--r--wp-includes/css/dist/block-library/style.min.css12
-rw-r--r--wp-includes/css/dist/block-library/theme-rtl.css22
-rw-r--r--wp-includes/css/dist/block-library/theme-rtl.min.css2
-rw-r--r--wp-includes/css/dist/block-library/theme.css22
-rw-r--r--wp-includes/css/dist/block-library/theme.min.css2
-rw-r--r--wp-includes/css/dist/commands/style-rtl.css23
-rw-r--r--wp-includes/css/dist/commands/style-rtl.min.css2
-rw-r--r--wp-includes/css/dist/commands/style.css23
-rw-r--r--wp-includes/css/dist/commands/style.min.css2
-rw-r--r--wp-includes/css/dist/components/style-rtl.css243
-rw-r--r--wp-includes/css/dist/components/style-rtl.min.css2
-rw-r--r--wp-includes/css/dist/components/style.css243
-rw-r--r--wp-includes/css/dist/components/style.min.css4
-rw-r--r--wp-includes/css/dist/customize-widgets/style-rtl.css6
-rw-r--r--wp-includes/css/dist/customize-widgets/style-rtl.min.css2
-rw-r--r--wp-includes/css/dist/customize-widgets/style.css6
-rw-r--r--wp-includes/css/dist/customize-widgets/style.min.css2
-rw-r--r--wp-includes/css/dist/edit-post/classic-rtl.css4
-rw-r--r--wp-includes/css/dist/edit-post/classic-rtl.min.css2
-rw-r--r--wp-includes/css/dist/edit-post/classic.css4
-rw-r--r--wp-includes/css/dist/edit-post/classic.min.css2
-rw-r--r--wp-includes/css/dist/edit-post/style-rtl.css900
-rw-r--r--wp-includes/css/dist/edit-post/style-rtl.min.css2
-rw-r--r--wp-includes/css/dist/edit-post/style.css900
-rw-r--r--wp-includes/css/dist/edit-post/style.min.css2
-rw-r--r--wp-includes/css/dist/edit-site/style-rtl.css2827
-rw-r--r--wp-includes/css/dist/edit-site/style-rtl.min.css2
-rw-r--r--wp-includes/css/dist/edit-site/style.css2827
-rw-r--r--wp-includes/css/dist/edit-site/style.min.css2
-rw-r--r--wp-includes/css/dist/edit-widgets/style-rtl.css104
-rw-r--r--wp-includes/css/dist/edit-widgets/style-rtl.min.css2
-rw-r--r--wp-includes/css/dist/edit-widgets/style.css104
-rw-r--r--wp-includes/css/dist/edit-widgets/style.min.css2
-rw-r--r--wp-includes/css/dist/editor/style-rtl.css1405
-rw-r--r--wp-includes/css/dist/editor/style-rtl.min.css2
-rw-r--r--wp-includes/css/dist/editor/style.css1405
-rw-r--r--wp-includes/css/dist/editor/style.min.css2
-rw-r--r--wp-includes/css/dist/format-library/style-rtl.css2
-rw-r--r--wp-includes/css/dist/format-library/style-rtl.min.css2
-rw-r--r--wp-includes/css/dist/format-library/style.css2
-rw-r--r--wp-includes/css/dist/format-library/style.min.css2
-rw-r--r--wp-includes/css/dist/list-reusable-blocks/style-rtl.css2
-rw-r--r--wp-includes/css/dist/list-reusable-blocks/style-rtl.min.css2
-rw-r--r--wp-includes/css/dist/list-reusable-blocks/style.css2
-rw-r--r--wp-includes/css/dist/list-reusable-blocks/style.min.css2
-rw-r--r--wp-includes/css/dist/nux/style-rtl.css2
-rw-r--r--wp-includes/css/dist/nux/style-rtl.min.css2
-rw-r--r--wp-includes/css/dist/nux/style.css2
-rw-r--r--wp-includes/css/dist/nux/style.min.css2
-rw-r--r--wp-includes/css/dist/patterns/style-rtl.css20
-rw-r--r--wp-includes/css/dist/patterns/style-rtl.min.css2
-rw-r--r--wp-includes/css/dist/patterns/style.css20
-rw-r--r--wp-includes/css/dist/patterns/style.min.css2
-rw-r--r--wp-includes/css/dist/preferences/style-rtl.css10
-rw-r--r--wp-includes/css/dist/preferences/style-rtl.min.css2
-rw-r--r--wp-includes/css/dist/preferences/style.css10
-rw-r--r--wp-includes/css/dist/preferences/style.min.css2
-rw-r--r--wp-includes/css/dist/reusable-blocks/style-rtl.css2
-rw-r--r--wp-includes/css/dist/reusable-blocks/style-rtl.min.css2
-rw-r--r--wp-includes/css/dist/reusable-blocks/style.css2
-rw-r--r--wp-includes/css/dist/reusable-blocks/style.min.css2
-rw-r--r--wp-includes/css/dist/widgets/style-rtl.css2
-rw-r--r--wp-includes/css/dist/widgets/style-rtl.min.css2
-rw-r--r--wp-includes/css/dist/widgets/style.css2
-rw-r--r--wp-includes/css/dist/widgets/style.min.css2
-rw-r--r--wp-includes/css/editor-rtl.css10
-rw-r--r--wp-includes/css/editor-rtl.min.css2
-rw-r--r--wp-includes/css/editor.css10
-rw-r--r--wp-includes/css/editor.min.css2
-rw-r--r--wp-includes/css/media-views-rtl.css59
-rw-r--r--wp-includes/css/media-views-rtl.min.css2
-rw-r--r--wp-includes/css/media-views.css59
-rw-r--r--wp-includes/css/media-views.min.css2
-rw-r--r--wp-includes/css/wp-embed-template.css5
-rw-r--r--wp-includes/css/wp-embed-template.min.css2
-rw-r--r--wp-includes/customize/class-wp-customize-nav-menu-item-control.php20
-rw-r--r--wp-includes/customize/class-wp-customize-themes-section.php68
-rw-r--r--wp-includes/default-constants.php3
-rw-r--r--wp-includes/default-filters.php7
-rw-r--r--wp-includes/deprecated.php74
-rw-r--r--wp-includes/embed.php25
-rw-r--r--wp-includes/feed.php22
-rw-r--r--wp-includes/fonts.php6
-rw-r--r--wp-includes/fonts/class-wp-font-face.php2
-rw-r--r--wp-includes/fonts/class-wp-font-utils.php6
-rw-r--r--wp-includes/formatting.php29
-rw-r--r--wp-includes/functions.php108
-rw-r--r--wp-includes/functions.wp-scripts.php12
-rw-r--r--wp-includes/functions.wp-styles.php8
-rw-r--r--wp-includes/general-template.php141
-rw-r--r--wp-includes/global-styles-and-settings.php9
-rw-r--r--wp-includes/html-api/class-wp-html-decoder.php461
-rw-r--r--wp-includes/html-api/class-wp-html-open-elements.php81
-rw-r--r--wp-includes/html-api/class-wp-html-processor.php617
-rw-r--r--wp-includes/html-api/class-wp-html-stack-event.php82
-rw-r--r--wp-includes/html-api/class-wp-html-tag-processor.php40
-rw-r--r--wp-includes/html-api/html5-named-character-references.php1313
-rw-r--r--wp-includes/http.php84
-rw-r--r--wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php25
-rw-r--r--wp-includes/interactivity-api/class-wp-interactivity-api.php316
-rw-r--r--wp-includes/interactivity-api/interactivity-api.php89
-rw-r--r--wp-includes/js/admin-bar.js36
-rw-r--r--wp-includes/js/admin-bar.min.js2
-rw-r--r--wp-includes/js/customize-loader.js2
-rw-r--r--wp-includes/js/customize-selective-refresh.js8
-rw-r--r--wp-includes/js/customize-selective-refresh.min.js2
-rw-r--r--wp-includes/js/dist/annotations.js304
-rw-r--r--wp-includes/js/dist/annotations.min.js2
-rw-r--r--wp-includes/js/dist/block-directory.js546
-rw-r--r--wp-includes/js/dist/block-directory.min.js2
-rw-r--r--wp-includes/js/dist/block-editor.js31675
-rw-r--r--wp-includes/js/dist/block-editor.min.js24
-rw-r--r--wp-includes/js/dist/block-library.js26165
-rw-r--r--wp-includes/js/dist/block-library.min.js14
-rw-r--r--wp-includes/js/dist/blocks.js759
-rw-r--r--wp-includes/js/dist/blocks.min.js4
-rw-r--r--wp-includes/js/dist/commands.js579
-rw-r--r--wp-includes/js/dist/commands.min.js7
-rw-r--r--wp-includes/js/dist/components.js22956
-rw-r--r--wp-includes/js/dist/components.min.js26
-rw-r--r--wp-includes/js/dist/compose.js189
-rw-r--r--wp-includes/js/dist/compose.min.js2
-rw-r--r--wp-includes/js/dist/core-commands.js447
-rw-r--r--wp-includes/js/dist/core-commands.min.js2
-rw-r--r--wp-includes/js/dist/core-data.js747
-rw-r--r--wp-includes/js/dist/core-data.min.js2
-rw-r--r--wp-includes/js/dist/customize-widgets.js1408
-rw-r--r--wp-includes/js/dist/customize-widgets.min.js7
-rw-r--r--wp-includes/js/dist/data.js96
-rw-r--r--wp-includes/js/dist/data.min.js4
-rw-r--r--wp-includes/js/dist/dom.js68
-rw-r--r--wp-includes/js/dist/edit-post.js6655
-rw-r--r--wp-includes/js/dist/edit-post.min.js7
-rw-r--r--wp-includes/js/dist/edit-site.js38644
-rw-r--r--wp-includes/js/dist/edit-site.min.js30
-rw-r--r--wp-includes/js/dist/edit-widgets.js2138
-rw-r--r--wp-includes/js/dist/edit-widgets.min.js7
-rw-r--r--wp-includes/js/dist/editor.js18500
-rw-r--r--wp-includes/js/dist/editor.min.js14
-rw-r--r--wp-includes/js/dist/element.js4
-rw-r--r--wp-includes/js/dist/format-library.js971
-rw-r--r--wp-includes/js/dist/format-library.min.js2
-rw-r--r--wp-includes/js/dist/html-entities.js2
-rw-r--r--wp-includes/js/dist/interactivity-router.asset.php2
-rw-r--r--wp-includes/js/dist/interactivity-router.js144
-rw-r--r--wp-includes/js/dist/interactivity-router.min.asset.php2
-rw-r--r--wp-includes/js/dist/interactivity-router.min.js2
-rw-r--r--wp-includes/js/dist/interactivity.js576
-rw-r--r--wp-includes/js/dist/interactivity.min.js2
-rw-r--r--wp-includes/js/dist/keyboard-shortcuts.js353
-rw-r--r--wp-includes/js/dist/keyboard-shortcuts.min.js2
-rw-r--r--wp-includes/js/dist/list-reusable-blocks.js67
-rw-r--r--wp-includes/js/dist/list-reusable-blocks.min.js2
-rw-r--r--wp-includes/js/dist/nux.js350
-rw-r--r--wp-includes/js/dist/nux.min.js2
-rw-r--r--wp-includes/js/dist/patterns.js966
-rw-r--r--wp-includes/js/dist/patterns.min.js2
-rw-r--r--wp-includes/js/dist/plugins.js71
-rw-r--r--wp-includes/js/dist/plugins.min.js2
-rw-r--r--wp-includes/js/dist/preferences-persistence.js12
-rw-r--r--wp-includes/js/dist/preferences-persistence.min.js2
-rw-r--r--wp-includes/js/dist/preferences.js254
-rw-r--r--wp-includes/js/dist/preferences.min.js2
-rw-r--r--wp-includes/js/dist/primitives.js125
-rw-r--r--wp-includes/js/dist/primitives.min.js7
-rw-r--r--wp-includes/js/dist/private-apis.js2
-rw-r--r--wp-includes/js/dist/private-apis.min.js2
-rw-r--r--wp-includes/js/dist/redux-routine.js4
-rw-r--r--wp-includes/js/dist/redux-routine.min.js2
-rw-r--r--wp-includes/js/dist/reusable-blocks.js174
-rw-r--r--wp-includes/js/dist/reusable-blocks.min.js2
-rw-r--r--wp-includes/js/dist/rich-text.js1255
-rw-r--r--wp-includes/js/dist/rich-text.min.js2
-rw-r--r--wp-includes/js/dist/router.js84
-rw-r--r--wp-includes/js/dist/router.min.js2
-rw-r--r--wp-includes/js/dist/server-side-render.js113
-rw-r--r--wp-includes/js/dist/server-side-render.min.js2
-rw-r--r--wp-includes/js/dist/style-engine.js46
-rw-r--r--wp-includes/js/dist/style-engine.min.js2
-rw-r--r--wp-includes/js/dist/url.js11
-rw-r--r--wp-includes/js/dist/url.min.js2
-rw-r--r--wp-includes/js/dist/vendor/react-dom.js29965
-rw-r--r--wp-includes/js/dist/vendor/react-dom.min.js12
-rw-r--r--wp-includes/js/dist/vendor/react-dom.min.js.LICENSE.txt19
-rw-r--r--wp-includes/js/dist/vendor/react-jsx-runtime.js78
-rw-r--r--wp-includes/js/dist/vendor/react-jsx-runtime.min.js2
-rw-r--r--wp-includes/js/dist/vendor/react-jsx-runtime.min.js.LICENSE.txt9
-rw-r--r--wp-includes/js/dist/vendor/react.js3421
-rw-r--r--wp-includes/js/dist/vendor/react.min.js12
-rw-r--r--wp-includes/js/dist/vendor/react.min.js.LICENSE.txt9
-rw-r--r--wp-includes/js/dist/viewport.js8
-rw-r--r--wp-includes/js/dist/viewport.min.js2
-rw-r--r--wp-includes/js/dist/warning.js3
-rw-r--r--wp-includes/js/dist/widgets.js616
-rw-r--r--wp-includes/js/dist/widgets.min.js7
-rw-r--r--wp-includes/js/jquery/ui/accordion.js19
-rw-r--r--wp-includes/js/jquery/ui/accordion.min.js10
-rw-r--r--wp-includes/js/jquery/ui/autocomplete.js20
-rw-r--r--wp-includes/js/jquery/ui/autocomplete.min.js10
-rw-r--r--wp-includes/js/jquery/ui/button.js17
-rw-r--r--wp-includes/js/jquery/ui/button.min.js10
-rw-r--r--wp-includes/js/jquery/ui/checkboxradio.js18
-rw-r--r--wp-includes/js/jquery/ui/checkboxradio.min.js10
-rw-r--r--wp-includes/js/jquery/ui/controlgroup.js18
-rw-r--r--wp-includes/js/jquery/ui/controlgroup.min.js10
-rw-r--r--wp-includes/js/jquery/ui/core.js130
-rw-r--r--wp-includes/js/jquery/ui/core.min.js104
-rw-r--r--wp-includes/js/jquery/ui/datepicker.js21
-rw-r--r--wp-includes/js/jquery/ui/datepicker.min.js10
-rw-r--r--wp-includes/js/jquery/ui/dialog.js37
-rw-r--r--wp-includes/js/jquery/ui/dialog.min.js10
-rw-r--r--wp-includes/js/jquery/ui/draggable.js24
-rw-r--r--wp-includes/js/jquery/ui/draggable.min.js10
-rw-r--r--wp-includes/js/jquery/ui/droppable.js17
-rw-r--r--wp-includes/js/jquery/ui/droppable.min.js10
-rw-r--r--wp-includes/js/jquery/ui/effect-blind.js15
-rw-r--r--wp-includes/js/jquery/ui/effect-blind.min.js10
-rw-r--r--wp-includes/js/jquery/ui/effect-bounce.js15
-rw-r--r--wp-includes/js/jquery/ui/effect-bounce.min.js10
-rw-r--r--wp-includes/js/jquery/ui/effect-clip.js15
-rw-r--r--wp-includes/js/jquery/ui/effect-clip.min.js10
-rw-r--r--wp-includes/js/jquery/ui/effect-drop.js15
-rw-r--r--wp-includes/js/jquery/ui/effect-drop.min.js10
-rw-r--r--wp-includes/js/jquery/ui/effect-explode.js15
-rw-r--r--wp-includes/js/jquery/ui/effect-explode.min.js10
-rw-r--r--wp-includes/js/jquery/ui/effect-fade.js15
-rw-r--r--wp-includes/js/jquery/ui/effect-fade.min.js10
-rw-r--r--wp-includes/js/jquery/ui/effect-fold.js15
-rw-r--r--wp-includes/js/jquery/ui/effect-fold.min.js10
-rw-r--r--wp-includes/js/jquery/ui/effect-highlight.js15
-rw-r--r--wp-includes/js/jquery/ui/effect-highlight.min.js10
-rw-r--r--wp-includes/js/jquery/ui/effect-puff.js15
-rw-r--r--wp-includes/js/jquery/ui/effect-puff.min.js10
-rw-r--r--wp-includes/js/jquery/ui/effect-pulsate.js15
-rw-r--r--wp-includes/js/jquery/ui/effect-pulsate.min.js10
-rw-r--r--wp-includes/js/jquery/ui/effect-scale.js15
-rw-r--r--wp-includes/js/jquery/ui/effect-scale.min.js10
-rw-r--r--wp-includes/js/jquery/ui/effect-shake.js15
-rw-r--r--wp-includes/js/jquery/ui/effect-shake.min.js10
-rw-r--r--wp-includes/js/jquery/ui/effect-size.js15
-rw-r--r--wp-includes/js/jquery/ui/effect-size.min.js10
-rw-r--r--wp-includes/js/jquery/ui/effect-slide.js15
-rw-r--r--wp-includes/js/jquery/ui/effect-slide.min.js10
-rw-r--r--wp-includes/js/jquery/ui/effect-transfer.js15
-rw-r--r--wp-includes/js/jquery/ui/effect-transfer.min.js10
-rw-r--r--wp-includes/js/jquery/ui/effect.js748
-rw-r--r--wp-includes/js/jquery/ui/effect.min.js20
-rw-r--r--wp-includes/js/jquery/ui/menu.js21
-rw-r--r--wp-includes/js/jquery/ui/menu.min.js10
-rw-r--r--wp-includes/js/jquery/ui/mouse.js16
-rw-r--r--wp-includes/js/jquery/ui/mouse.min.js10
-rw-r--r--wp-includes/js/jquery/ui/progressbar.js17
-rw-r--r--wp-includes/js/jquery/ui/progressbar.min.js10
-rw-r--r--wp-includes/js/jquery/ui/resizable.js28
-rw-r--r--wp-includes/js/jquery/ui/resizable.min.js10
-rw-r--r--wp-includes/js/jquery/ui/selectable.js17
-rw-r--r--wp-includes/js/jquery/ui/selectable.min.js10
-rw-r--r--wp-includes/js/jquery/ui/selectmenu.js34
-rw-r--r--wp-includes/js/jquery/ui/selectmenu.min.js10
-rw-r--r--wp-includes/js/jquery/ui/slider.js18
-rw-r--r--wp-includes/js/jquery/ui/slider.min.js10
-rw-r--r--wp-includes/js/jquery/ui/sortable.js20
-rw-r--r--wp-includes/js/jquery/ui/sortable.min.js10
-rw-r--r--wp-includes/js/jquery/ui/spinner.js19
-rw-r--r--wp-includes/js/jquery/ui/spinner.min.js10
-rw-r--r--wp-includes/js/jquery/ui/tabs.js24
-rw-r--r--wp-includes/js/jquery/ui/tabs.min.js10
-rw-r--r--wp-includes/js/jquery/ui/tooltip.js20
-rw-r--r--wp-includes/js/jquery/ui/tooltip.min.js10
-rw-r--r--wp-includes/js/media-views.js4
-rw-r--r--wp-includes/js/plupload/handlers.js4
-rw-r--r--wp-includes/js/plupload/handlers.min.js2
-rw-r--r--wp-includes/js/thickbox/thickbox.js6
-rw-r--r--wp-includes/js/tinymce/plugins/wplink/plugin.js14
-rw-r--r--wp-includes/js/tinymce/plugins/wplink/plugin.min.js2
-rw-r--r--wp-includes/js/tinymce/wp-tinymce.js2
-rw-r--r--wp-includes/js/wp-ajax-response.js10
-rw-r--r--wp-includes/js/wp-ajax-response.min.js2
-rw-r--r--wp-includes/js/wp-backbone.js2
-rw-r--r--wp-includes/js/wplink.js2
-rw-r--r--wp-includes/js/wplink.min.js2
-rw-r--r--wp-includes/kses.php78
-rw-r--r--wp-includes/l10n.php86
-rw-r--r--wp-includes/l10n/class-wp-translation-controller.php26
-rw-r--r--wp-includes/l10n/class-wp-translation-file.php2
-rw-r--r--wp-includes/link-template.php29
-rw-r--r--wp-includes/load.php10
-rw-r--r--wp-includes/media-template.php25
-rw-r--r--wp-includes/media.php70
-rw-r--r--wp-includes/ms-blogs.php26
-rw-r--r--wp-includes/ms-default-constants.php3
-rw-r--r--wp-includes/ms-deprecated.php2
-rw-r--r--wp-includes/ms-load.php10
-rw-r--r--wp-includes/ms-site.php6
-rw-r--r--wp-includes/nav-menu-template.php52
-rw-r--r--wp-includes/nav-menu.php32
-rw-r--r--wp-includes/option.php397
-rw-r--r--wp-includes/pluggable.php12
-rw-r--r--wp-includes/pomo/plural-forms.php4
-rw-r--r--wp-includes/post-formats.php4
-rw-r--r--wp-includes/post-template.php22
-rw-r--r--wp-includes/post.php227
-rw-r--r--wp-includes/rest-api.php27
-rw-r--r--wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php56
-rw-r--r--wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php6
-rw-r--r--wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php2
-rw-r--r--wp-includes/rest-api/endpoints/class-wp-rest-font-families-controller.php2
-rw-r--r--wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php174
-rw-r--r--wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisions-controller.php307
-rw-r--r--wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php21
-rw-r--r--wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php41
-rw-r--r--wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php2
-rw-r--r--wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php1
-rw-r--r--wp-includes/rest-api/endpoints/class-wp-rest-template-revisions-controller.php8
-rw-r--r--wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php42
-rw-r--r--wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php29
-rw-r--r--wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php16
-rw-r--r--wp-includes/revision.php2
-rw-r--r--wp-includes/rss.php7
-rw-r--r--wp-includes/script-loader.php98
-rw-r--r--wp-includes/script-modules.php100
-rw-r--r--wp-includes/shortcodes.php14
-rw-r--r--wp-includes/style-engine.php8
-rw-r--r--wp-includes/style-engine/class-wp-style-engine-css-rule.php64
-rw-r--r--wp-includes/style-engine/class-wp-style-engine-css-rules-store.php15
-rw-r--r--wp-includes/style-engine/class-wp-style-engine-processor.php21
-rw-r--r--wp-includes/style-engine/class-wp-style-engine.php8
-rw-r--r--wp-includes/taxonomy.php15
-rw-r--r--wp-includes/theme-i18n.json7
-rw-r--r--wp-includes/theme.json79
-rw-r--r--wp-includes/theme.php59
-rw-r--r--wp-includes/update.php9
-rw-r--r--wp-includes/user.php154
-rw-r--r--wp-includes/vars.php6
-rw-r--r--wp-includes/version.php4
-rw-r--r--wp-includes/widgets.php14
-rw-r--r--wp-includes/widgets/class-wp-nav-menu-widget.php3
-rw-r--r--wp-load.php2
-rw-r--r--wp-login.php31
-rw-r--r--wp-settings.php27
979 files changed, 102390 insertions, 123326 deletions
diff --git a/readme.html b/readme.html
index f0309df..75b29b7 100644
--- a/readme.html
+++ b/readme.html
@@ -47,18 +47,18 @@
</ol>
<h2>Migrating from other systems</h2>
-<p>WordPress can <a href="https://wordpress.org/documentation/article/importing-content/">import from a number of systems</a>. First you need to get WordPress installed and working as described above, before using <a href="wp-admin/import.php">our import tools</a>.</p>
+<p>WordPress can <a href="https://developer.wordpress.org/advanced-administration/wordpress/import/">import from a number of systems</a>. First you need to get WordPress installed and working as described above, before using <a href="wp-admin/import.php">our import tools</a>.</p>
<h2>System Requirements</h2>
<ul>
- <li><a href="https://secure.php.net/">PHP</a> version <strong>7.0</strong> or greater.</li>
+ <li><a href="https://www.php.net/">PHP</a> version <strong>7.2.24</strong> or greater.</li>
<li><a href="https://www.mysql.com/">MySQL</a> version <strong>5.5.5</strong> or greater.</li>
</ul>
<h3>Recommendations</h3>
<ul>
- <li><a href="https://secure.php.net/">PHP</a> version <strong>7.4</strong> or greater.</li>
- <li><a href="https://www.mysql.com/">MySQL</a> version <strong>8.0</strong> or greater OR <a href="https://mariadb.org/">MariaDB</a> version <strong>10.4</strong> or greater.</li>
+ <li><a href="https://www.php.net/">PHP</a> version <strong>7.4</strong> or greater.</li>
+ <li><a href="https://www.mysql.com/">MySQL</a> version <strong>8.0</strong> or greater OR <a href="https://mariadb.org/">MariaDB</a> version <strong>10.5</strong> or greater.</li>
<li>The <a href="https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html">mod_rewrite</a> Apache module.</li>
<li><a href="https://wordpress.org/news/2016/12/moving-toward-ssl/">HTTPS</a> support.</li>
<li>A link to <a href="https://wordpress.org/">wordpress.org</a> on your site.</li>
diff --git a/wp-admin/about.php b/wp-admin/about.php
index a004fb1..11f29f4 100644
--- a/wp-admin/about.php
+++ b/wp-admin/about.php
@@ -49,62 +49,12 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
printf(
/* translators: 1: WordPress version number, 2: Plural number of bugs. */
_n(
- '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
- '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.',
- 3
- ),
- '6.5.5',
- '3'
- );
- ?>
- <?php
- printf(
- /* translators: %s: HelpHub URL. */
- __( 'For more information, see <a href="%s">the release notes</a>.' ),
- sprintf(
- /* translators: %s: WordPress version. */
- esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
- sanitize_title( '6.5.5' )
- )
- );
- ?>
- </p>
- <p>
- <?php
- printf(
- /* translators: 1: WordPress version number, 2: Plural number of bugs. */
- _n(
- '<strong>Version %1$s</strong> addressed %2$s bug.',
- '<strong>Version %1$s</strong> addressed %2$s bugs.',
- 10
- ),
- '6.5.4',
- '5'
- );
- ?>
- <?php
- printf(
- /* translators: %s: HelpHub URL. */
- __( 'For more information, see <a href="%s">the release notes</a>.' ),
- sprintf(
- /* translators: %s: WordPress version. */
- esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
- sanitize_title( '6.5.4' )
- )
- );
- ?>
- </p>
- <p>
- <?php
- printf(
- /* translators: 1: WordPress version number, 2: Plural number of bugs. */
- _n(
'<strong>Version %1$s</strong> addressed %2$s bug.',
'<strong>Version %1$s</strong> addressed %2$s bugs.',
- 10
+ 16
),
- '6.5.3',
- '21'
+ '6.6.1',
+ '16'
);
?>
<?php
@@ -114,32 +64,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
sprintf(
/* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
- sanitize_title( '6.5.3' )
- )
- );
- ?>
- </p>
- <p>
- <?php
- printf(
- /* translators: 1: WordPress version number, 2: Plural number of bugs. */
- _n(
- '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
- '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.',
- 12
- ),
- '6.5.2',
- '12'
- );
- ?>
- <?php
- printf(
- /* translators: %s: HelpHub URL. */
- __( 'For more information, see <a href="%s">the release notes</a>.' ),
- sprintf(
- /* translators: %s: WordPress version. */
- esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
- sanitize_title( '6.5.2' )
+ sanitize_title( '6.6.1' )
)
);
?>
@@ -159,172 +84,116 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
?>
</h2>
<p class="is-subheading">
- <?php _e( 'Take your site-building experience further with WordPress 6.5. Explore more avenues to make it your own, with new features and enhancements that will help fine-tune your creative work. Discover the latest additions to the developer experience, with fresh foundational tools poised to transform the future of blocks.' ); ?>
+ <?php _e( 'Create and deploy beautiful and coherent design elements across your sites with WordPress 6.6. A new rollback option for auto-updating plugins gives you control, flexibility, and peace of mind.' ); ?>
</p>
</div>
</div>
<div class="about__section has-2-columns">
<div class="column is-vertically-aligned-center">
- <div class="about__image">
- <img src="https://s.w.org/images/core/6.5/1-font-library.webp" alt="" height="436" width="436" />
- </div>
- </div>
- <div class="column is-vertically-aligned-center">
- <h3><?php _e( 'Add and manage fonts across your site' ); ?></h3>
- <p><?php _e( 'The new Font Library puts you in control of an essential piece of your site&#8217;s design—typography—without coding or extra steps. Effortlessly install, remove, and activate local and Google Fonts across your site for any block theme. The ability to include custom typography collections gives site creators and publishers even more choice.' ); ?></p>
- </div>
- </div>
-
- <div class="about__section has-2-columns">
- <div class="column is-vertically-aligned-center">
- <h3><?php _e( 'Get more details from your style revisions' ); ?></h3>
- <p><?php _e( 'Work through creative projects with a more comprehensive picture of what&#8217;s been done—and what you can fall back on. Get details like time stamps, quick summaries, and a paginated list of total revisions. View revisions from the Style Book to see changes outside of what you&#8217;re working on. Revisions are also now available for templates and template parts.' ); ?></p>
+ <h3><?php _e( 'Color palettes & font sets' ); ?></h3>
+ <p><strong><?php _e( 'Add more design options to any block theme.' ); ?></strong> <?php _e( 'Block theme authors can create unlimited individual color or font sets to offer more specific design options within the same theme. These sets provide more contained design possibilities, allowing for customization without changing the site&#8217;s broader styling, beyond color or typography settings.' ); ?></p>
</div>
<div class="column is-vertically-aligned-center">
<div class="about__image">
- <img src="https://s.w.org/images/core/6.5/3-style-revisions.webp" alt="" height="436" width="436" />
+ <img src="https://s.w.org/images/core/6.6/color-palettes.webp" alt="" height="436" width="436" />
</div>
</div>
</div>
- <div class="about__section has-3-columns">
- <div class="column">
- <div class="about__image">
- <img src="https://s.w.org/images/core/6.5/4-background-images.webp" alt="" height="270" width="270" />
- </div>
- <h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Do more with background images in Group blocks' ); ?></h3>
- <p><?php _e( 'Control size, repeat, and focal point options so you can play around with subtle or splashy ways to add visual interest to layouts.' ); ?></p>
- </div>
- <div class="column">
+ <div class="about__section has-2-columns">
+ <div class="column is-vertically-aligned-center">
<div class="about__image">
- <img src="https://s.w.org/images/core/6.5/5-cover-aspect-ratio.webp" alt="" height="270" width="270" />
+ <img src="https://s.w.org/images/core/6.6/page-previews.webp" alt="" height="436" width="436" />
</div>
- <h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Get more control over images in Cover blocks' ); ?></h3>
- <p><?php _e( 'Set aspect ratios for Cover block images and easily add color overlays that automatically source color from your chosen image.' ); ?></p>
</div>
- <div class="column">
- <div class="about__image">
- <img src="https://s.w.org/images/core/6.5/6-box-shadow.webp" alt="" height="270" width="270" />
- </div>
- <h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Add box shadow supports to even more blocks' ); ?></h3>
- <p><?php _e( 'With shadow supports enabled, you can create layouts with visual depth or add a little personality to your design.' ); ?></p>
+ <div class="column is-vertically-aligned-center">
+ <h3><?php _e( 'Quick previews for pages' ); ?></h3>
+ <p><strong><?php _e( 'Simplify your workflow with a new layout built for pages.' ); ?></strong> <?php _e( 'See all of your pages and a preview of any selected page before you edit via a new side-by-side layout in the Site Editor.' ); ?></p>
</div>
</div>
- <div class="about__section has-3-columns">
- <div class="column">
- <div class="about__image">
- <img src="https://s.w.org/images/core/6.5/7-data-views.webp" alt="" height="270" width="270" />
- </div>
- <h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Discover new Data Views' ); ?></h3>
- <p><?php _e( 'Find and organize your data however you like with data views for pages, templates, patterns, and template parts. Arrange it in a table or grid view with the option to toggle fields and make bulk changes.' ); ?></p>
- </div>
- <div class="column">
- <div class="about__image">
- <img src="https://s.w.org/images/core/6.5/8-drag-n-drop.webp" alt="" height="270" width="270" />
- </div>
- <h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Smoother drag-and-drop' ); ?></h3>
- <p><?php _e( 'Feel the difference when you move things around, with helpful visual cues like displaced items in List View or frictionless dragging to anywhere in your workspace—from beginning to end.' ); ?></p>
+ <div class="about__section has-2-columns">
+ <div class="column is-vertically-aligned-center">
+ <h3><?php _e( 'Rollbacks for plugin auto-updates' ); ?></h3>
+ <p><strong><?php _e( 'Auto-update your plugins with peace of mind.' ); ?></strong> <?php _e( 'Enjoy the ease of plugin auto-updates with the safety of rollbacks if anything goes wrong, improving your site&#8217;s security while minimizing potential downtime.' ); ?></p>
</div>
- <div class="column">
+ <div class="column is-vertically-aligned-center">
<div class="about__image">
- <img src="https://s.w.org/images/core/6.5/9-link-controls.webp" alt="" height="270" width="270" />
+ <img src="https://s.w.org/images/core/6.6/feature-rollbacks.webp" alt="" height="436" width="436" />
</div>
- <h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Improved link controls' ); ?></h3>
- <p><?php _e( 'Create and manage links easily with a more intuitive link-building experience, like a streamlined UI and a shortcut for copying links.' ); ?></p>
</div>
</div>
- <hr />
-
<div class="about__section has-2-columns">
- <div class="column">
+ <div class="column is-vertically-aligned-center">
<div class="about__image">
- <svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
- <rect width="48" height="48" rx="6" fill="#ededed"/>
- <path d="M18.9167 16.5C18.2757 16.5 17.661 16.7546 17.2078 17.2078C16.7546 17.661 16.5 18.2757 16.5 18.9167V21.3333H18.3125V18.9167C18.3125 18.7564 18.3762 18.6028 18.4895 18.4895C18.6028 18.3762 18.7564 18.3125 18.9167 18.3125H21.3333V16.5H18.9167ZM21.3333 29.1875H18.9167C18.7564 29.1875 18.6028 29.1238 18.4895 29.0105C18.3762 28.8972 18.3125 28.7436 18.3125 28.5833V26.1667H16.5V28.5833C16.5 29.2243 16.7546 29.839 17.2078 30.2922C17.661 30.7454 18.2757 31 18.9167 31H21.3333V29.1875ZM26.1667 31V29.1875H28.5833C28.7436 29.1875 28.8972 29.1238 29.0105 29.0105C29.1238 28.8972 29.1875 28.7436 29.1875 28.5833V26.1667H31V28.5833C31 29.2243 30.7454 29.839 30.2922 30.2922C29.839 30.7454 29.2243 31 28.5833 31H26.1667ZM28.5833 16.5C29.2243 16.5 29.839 16.7546 30.2922 17.2078C30.7454 17.661 31 18.2757 31 18.9167V21.3333H29.1875V18.9167C29.1875 18.7564 29.1238 18.6028 29.0105 18.4895C28.8972 18.3762 28.7436 18.3125 28.5833 18.3125H26.1667V16.5H28.5833Z" fill="#1e1e1e"/>
- </svg>
+ <img src="https://s.w.org/images/core/6.6/overrides.webp" alt="" height="436" width="436" />
</div>
- <h3 style="margin-top:calc(var(--gap) * 0.75);margin-bottom:calc(var(--gap) * 0.5)"><?php _e( 'Bring interactions to blocks with the Interactivity API' ); ?></h3>
- <p><?php _e( 'The Interactivity API offers developers a standardized method for building interactive front-end experiences with blocks. It simplifies the process, with fewer dependencies on external tooling, while maintaining optimal performance. Use it to create memorable user experiences, like fetching search results instantly or letting visitors interact with content in real time.' ); ?></p>
</div>
- <div class="column">
- <div class="about__image">
- <svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
- <rect width="48" height="48" rx="6" fill="#ededed"/>
- <path d="M18.95 19.45H27.15L25.45 21.25L26.55 22.35L30.15 18.75L26.65 14.75L25.55 15.75L27.45 18.05H18.95C18.05 18.05 17.25 18.35 16.65 18.95C15.25 20.45 15.25 23.15 15.25 24.55V24.75H16.75V24.45C16.75 23.35 16.75 20.95 17.75 19.95C18.05 19.65 18.45 19.45 18.95 19.45ZM32.75 23.45V23.25H31.25V23.55C31.25 24.65 31.25 27.05 30.25 28.05C29.95 28.35 29.55 28.55 28.95 28.55H20.75L22.45 26.85L21.35 25.75L17.85 29.25L21.35 33.25L22.45 32.25L20.55 29.95H28.95C29.85 29.95 30.65 29.65 31.25 29.05C32.75 27.65 32.75 24.85 32.75 23.45Z" fill="#1e1e1e"/>
- </svg>
- </div>
- <h3 style="margin-top:calc(var(--gap) * 0.75);margin-bottom:calc(var(--gap) * 0.5)"><?php _e( 'Connect blocks to custom fields or other dynamic content' ); ?></h3>
- <p><?php _e( 'Link core block attributes to custom fields and use the value of custom fields without creating custom blocks. Powered by the Block Bindings API, developers can extend this capability further to connect blocks to any dynamic content—even beyond custom fields. If there&#8217;s data stored elsewhere, easily point blocks to that new source with only a few lines of code.' ); ?></p>
+ <div class="column is-vertically-aligned-center">
+ <h3><?php _e( 'Overrides' ); ?></h3>
+ <p><strong><?php _e( 'Add the ability to customize content in synced patterns.' ); ?></strong> <?php _e( 'Allow specific pieces of content to be customized in each instance of a synced pattern while keeping a consistent style for all instances, simplifying future updates. Currently, you can set overrides for Heading, Paragraph, Button, and Image blocks.' ); ?></p>
</div>
</div>
+ <hr class="is-invisible is-large" />
+
<div class="about__section has-2-columns">
<div class="column">
<div class="about__image">
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
- <rect width="48" height="48" rx="6" fill="#ededed"/>
- <path d="M33 18.75H23.1925C22.7954 17.7305 21.7239 17 20.4643 17C19.2047 17 18.1332 17.7305 17.736 18.75H15V20.5H17.736C18.1332 21.5195 19.2047 22.25 20.4643 22.25C21.7239 22.25 22.7954 21.5195 23.1925 20.5H33V18.75Z" fill="#1e1e1e"/>
- <path d="M33 27.5H30.264C29.8668 26.4805 28.7953 25.75 27.5357 25.75C26.2761 25.75 25.2046 26.4805 24.8075 27.5H15V29.25H24.8075C25.2046 30.2695 26.2761 31 27.5357 31C28.7953 31 29.8668 30.2695 30.264 29.25H33V27.5Z" fill="#1e1e1e"/>
- </svg>
- </div>
- <h3 style="margin-top:calc(var(--gap) * 0.75);margin-bottom:calc(var(--gap) * 0.5)"><?php _e( 'Add appearance tools to Classic themes' ); ?></h3>
- <p><?php _e( 'Give designers and creators using Classic themes access to an upgraded design experience. Opt in to support for spacing, border, typography, and color options, even without using theme.json. Once support is enabled, more tools will be automatically added as they become available.' ); ?></p>
- </div>
- <div class="column">
- <div class="about__image">
- <svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
- <rect width="48" height="48" rx="6" fill="#ededed"/>
- <path fill-rule="evenodd" clip-rule="evenodd" d="M22.5 16L22.5 20H25.5V16H27V20H28.5C29.0523 20 29.5 20.4477 29.5 21V25L26.5 29V31C26.5 31.5523 26.0523 32 25.5 32H22.5C21.9477 32 21.5 31.5523 21.5 31V29L18.5 25V21C18.5 20.4477 18.9477 20 19.5 20H21L21 16H22.5ZM23 28.5V30.5H25V28.5L28 24.5V21.5H20V24.5L23 28.5Z" fill="#1e1e1e"/>
+ <rect width="48" height="48" rx="4"/>
+ <path d="M28.4287 20.6507C28.8387 20.8874 28.9791 21.4116 28.7424 21.8215L24.7424 28.7498C24.5057 29.1597 23.9815 29.3002 23.5715 29.0635C23.1616 28.8268 23.0211 28.3026 23.2578 27.8926L27.2578 20.9644C27.4945 20.5544 28.0187 20.414 28.4287 20.6507Z" fill="#1e1e1e"/>
+ <path d="M18.6433 23.579C18.2333 23.3423 17.7091 23.4828 17.4724 23.8927C17.2357 24.3027 17.3761 24.8269 17.7861 25.0636L18.281 25.3493C18.691 25.586 19.2152 25.4456 19.4519 25.0356C19.6886 24.6256 19.5481 24.1014 19.1381 23.8647L18.6433 23.579Z" fill="#1e1e1e"/>
+ <path d="M20.0358 20.6508C20.4458 20.4141 20.97 20.5546 21.2067 20.9645L21.4924 21.4594C21.7291 21.8694 21.5887 22.3936 21.1787 22.6303C20.7687 22.867 20.2445 22.7265 20.0078 22.3166L19.7221 21.8217C19.4854 21.4117 19.6259 20.8875 20.0358 20.6508Z" fill="#1e1e1e"/>
+ <path d="M24.8571 20C24.8571 19.5266 24.4734 19.1429 24 19.1429C23.5266 19.1429 23.1429 19.5266 23.1429 20V20.5714C23.1429 21.0448 23.5266 21.4286 24 21.4286C24.4734 21.4286 24.8571 21.0448 24.8571 20.5714V20Z" fill="#1e1e1e"/>
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M14 26C14 20.4772 18.4772 16 24 16C29.5228 16 34 20.4772 34 26C34 28.0846 33.3612 30.0225 32.2686 31.6256L32.0135 32H15.9865L15.7314 31.6256C14.6388 30.0225 14 28.0846 14 26ZM24 17.7143C19.4239 17.7143 15.7143 21.4239 15.7143 26C15.7143 27.5698 16.1501 29.0357 16.9072 30.2857H31.0928C31.8499 29.0357 32.2857 27.5698 32.2857 26C32.2857 21.4239 28.5761 17.7143 24 17.7143Z" fill="#1e1e1e"/>
</svg>
</div>
- <h3 style="margin-top:calc(var(--gap) * 0.75);margin-bottom:calc(var(--gap) * 0.5)"><?php _e( 'Explore improvements to the plugin experience' ); ?></h3>
+ <h3><?php _e( 'Performance updates' ); ?></h3>
<p>
<?php
printf(
- /* translators: %s: Requires Plugins */
- __( 'There&#8217;s now an easier way to manage plugin dependencies. Plugin authors can supply a new %s header with a comma-separated list of required plugin slugs, presenting users with links to install and activate those plugins first.' ),
- '<code lang="en">Requires Plugins</code>'
+ /* translators: %1$s: code-formatted "WP_Theme_JSON", %2$s: code-formatted "data-wp-on-async", %%: escaped percent sign, leave as %%. */
+ __( 'WordPress 6.6 includes important updates like removing redundant %1$s calls, disabling autoload for large options, eliminating unnecessary polyfill dependencies, lazy loading post embeds, introducing the %2$s directive, and a 33%% reduction in template loading time in the editor.' ),
+ '<code>WP_Theme_JSON</code>',
+ '<code>data-wp-on-async</code>'
);
?>
</p>
</div>
- </div>
-
- <div class="about__section has-2-columns">
<div class="column">
<div class="about__image">
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
- <rect width="48" height="48" rx="4" fill="#ededed"/>
- <path d="M28.4287 20.6507C28.8387 20.8874 28.9791 21.4116 28.7424 21.8215L24.7424 28.7498C24.5057 29.1597 23.9815 29.3002 23.5715 29.0635C23.1616 28.8268 23.0211 28.3026 23.2578 27.8926L27.2578 20.9644C27.4945 20.5544 28.0187 20.414 28.4287 20.6507Z" fill="#1e1e1e"/>
- <path d="M18.6433 23.579C18.2333 23.3423 17.7091 23.4828 17.4724 23.8927C17.2357 24.3027 17.3761 24.8269 17.7861 25.0636L18.281 25.3493C18.691 25.586 19.2152 25.4456 19.4519 25.0356C19.6886 24.6256 19.5481 24.1014 19.1381 23.8647L18.6433 23.579Z" fill="#1e1e1e"/>
- <path d="M20.0358 20.6508C20.4458 20.4141 20.97 20.5546 21.2067 20.9645L21.4924 21.4594C21.7291 21.8694 21.5887 22.3936 21.1787 22.6303C20.7687 22.867 20.2445 22.7265 20.0078 22.3166L19.7221 21.8217C19.4854 21.4117 19.6259 20.8875 20.0358 20.6508Z" fill="#1e1e1e"/>
- <path d="M24.8571 20C24.8571 19.5266 24.4734 19.1429 24 19.1429C23.5266 19.1429 23.1429 19.5266 23.1429 20V20.5714C23.1429 21.0448 23.5266 21.4286 24 21.4286C24.4734 21.4286 24.8571 21.0448 24.8571 20.5714V20Z" fill="#1e1e1e"/>
- <path fill-rule="evenodd" clip-rule="evenodd" d="M14 26C14 20.4772 18.4772 16 24 16C29.5228 16 34 20.4772 34 26C34 28.0846 33.3612 30.0225 32.2686 31.6256L32.0135 32H15.9865L15.7314 31.6256C14.6388 30.0225 14 28.0846 14 26ZM24 17.7143C19.4239 17.7143 15.7143 21.4239 15.7143 26C15.7143 27.5698 16.1501 29.0357 16.9072 30.2857H31.0928C31.8499 29.0357 32.2857 27.5698 32.2857 26C32.2857 21.4239 28.5761 17.7143 24 17.7143Z" fill="#1e1e1e"/>
+ <rect width="48" height="48" rx="4"/>
+ <path d="M24 18.285C23.55 18.285 23.1637 18.1237 22.8412 17.8012C22.5187 17.4788 22.3575 17.0925 22.3575 16.6425C22.3575 16.1925 22.5187 15.8062 22.8412 15.4837C23.1637 15.1612 23.55 15 24 15C24.45 15 24.8362 15.1612 25.1587 15.4837C25.4812 15.8062 25.6425 16.1925 25.6425 16.6425C25.6425 17.0925 25.4812 17.4788 25.1587 17.8012C24.8362 18.1237 24.45 18.285 24 18.285ZM21.5925 33V21.0075C20.5725 20.9325 19.5862 20.8275 18.6337 20.6925C17.6812 20.5575 16.77 20.385 15.9 20.175L16.2375 18.825C17.5125 19.125 18.78 19.3387 20.04 19.4662C21.3 19.5938 22.62 19.6575 24 19.6575C25.38 19.6575 26.7 19.5938 27.96 19.4662C29.22 19.3387 30.4875 19.125 31.7625 18.825L32.1 20.175C31.23 20.385 30.3187 20.5575 29.3662 20.6925C28.4137 20.8275 27.4275 20.9325 26.4075 21.0075V33H25.0575V27.15H22.9425V33H21.5925Z" fill="#1e1e1e"/>
</svg>
</div>
- <h3 style="margin-top:calc(var(--gap) * 0.75);margin-bottom:calc(var(--gap) * 0.5)"><?php _e( 'Performance updates' ); ?></h3>
- <p><?php _e( 'This release includes 110+ performance updates, with an impressive increase in speed and efficiency across the Post Editor and Site Editor. Loading is over two times faster than in 6.4, with input processing speed up to five times faster than the previous release. Translated sites see up to 25% improvement in load time for this release.' ); ?></p>
+ <h3><?php _e( 'Accessibility improvements' ); ?></h3>
+ <p><?php _e( '55+ accessibility fixes and enhancements focus on foundational aspects of the WordPress experience, particularly the data views component powering the new site editing experience and areas like the Inserter that provide a key way of interacting with blocks and patterns.' ); ?></p>
</div>
+ </div>
+
+ <hr class="is-invisible is-large" style="margin-bottom:calc(2 * var(--gap));" />
+
+ <div class="about__section has-2-columns is-wider-left is-feature" style="background-color:var(--background);border-radius:var(--border-radius);">
+ <h3 class="is-section-header"><?php _e( 'And much more' ); ?></h3>
<div class="column">
+ <p><?php _e( 'For a comprehensive overview of all the new features and enhancements in WordPress 6.6, please visit the feature-showcase website.' ); ?></p>
+ </div>
+ <div class="column aligncenter">
<div class="about__image">
- <svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
- <rect width="48" height="48" rx="4" fill="#ededed"/>
- <path d="M24 18.285C23.55 18.285 23.1637 18.1237 22.8412 17.8012C22.5187 17.4788 22.3575 17.0925 22.3575 16.6425C22.3575 16.1925 22.5187 15.8062 22.8412 15.4837C23.1637 15.1612 23.55 15 24 15C24.45 15 24.8362 15.1612 25.1587 15.4837C25.4812 15.8062 25.6425 16.1925 25.6425 16.6425C25.6425 17.0925 25.4812 17.4788 25.1587 17.8012C24.8362 18.1237 24.45 18.285 24 18.285ZM21.5925 33V21.0075C20.5725 20.9325 19.5862 20.8275 18.6337 20.6925C17.6812 20.5575 16.77 20.385 15.9 20.175L16.2375 18.825C17.5125 19.125 18.78 19.3387 20.04 19.4662C21.3 19.5938 22.62 19.6575 24 19.6575C25.38 19.6575 26.7 19.5938 27.96 19.4662C29.22 19.3387 30.4875 19.125 31.7625 18.825L32.1 20.175C31.23 20.385 30.3187 20.5575 29.3662 20.6925C28.4137 20.8275 27.4275 20.9325 26.4075 21.0075V33H25.0575V27.15H22.9425V33H21.5925Z" fill="#1e1e1e"/>
- </svg>
+ <a href="<?php echo esc_url( __( 'https://wordpress.org/download/releases/6-6/' ) ); ?>" class="button button-primary button-hero"><?php _e( 'See everything new' ); ?></a>
</div>
- <h3 style="margin-top:calc(var(--gap) * 0.75);margin-bottom:calc(var(--gap) * 0.5)"><?php _e( 'Accessibility improvements' ); ?></h3>
- <p><?php _e( 'This release includes more than 65 accessibility improvements across the platform, making it more accessible than ever. This release adds fixes to contrast settings, cursor focus, submenus, and positioning of elements, among many others, that help improve the WordPress experience for everyone.' ); ?></p>
</div>
</div>
- <hr />
+ <hr class="is-large" style="margin-top:calc(2 * var(--gap));" />
<div class="about__section has-3-columns">
<div class="column about__image is-vertically-aligned-top">
- <img src="<?php echo esc_url( admin_url( 'images/about-release-badge.svg?ver=6.5' ) ); ?>" alt="" height="280" width="280" />
+ <img src="<?php echo esc_url( admin_url( 'images/about-release-badge.svg?ver=6.6' ) ); ?>" alt="" height="280" width="280" />
</div>
<div class="column is-vertically-aligned-center" style="grid-column-end:span 2">
<h3>
@@ -353,7 +222,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<div class="column">
<div class="about__image">
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
- <rect width="48" height="48" rx="4" fill="#ededed"/>
+ <rect width="48" height="48" rx="4"/>
<path d="M23 34v-4h-5l-2.293-2.293a1 1 0 0 1 0-1.414L18 24h5v-2h-7v-6h7v-2h2v2h5l2.293 2.293a1 1 0 0 1 0 1.414L30 22h-5v2h7v6h-7v4h-2Zm-5-14h11.175l.646-.646a.5.5 0 0 0 0-.708L29.175 18H18v2Zm.825 8H30v-2H18.825l-.646.646a.5.5 0 0 0 0 .708l.646.646Z" fill="#1e1e1e"/>
</svg>
</div>
@@ -362,8 +231,8 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
printf(
/* translators: 1: WordPress Field Guide link, 2: WordPress version number. */
__( 'Explore the <a href="%1$s">WordPress %2$s Field Guide</a>. Learn about the changes in this release with detailed developer notes to help you build with WordPress.' ),
- esc_url( __( 'https://make.wordpress.org/core/wordpress-6-5-field-guide/' ) ),
- '6.5'
+ esc_url( __( 'https://make.wordpress.org/core/wordpress-6-6-field-guide/' ) ),
+ '6.6'
);
?>
</p>
@@ -371,7 +240,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<div class="column">
<div class="about__image">
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
- <rect width="48" height="48" rx="4" fill="#ededed"/>
+ <rect width="48" height="48" rx="4"/>
<path d="M28 19.75h-8v1.5h8v-1.5ZM20 23h8v1.5h-8V23ZM26 26.25h-6v1.5h6v-1.5Z" fill="#151515"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M29 16H19a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V18a2 2 0 0 0-2-2Zm-10 1.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H19a.5.5 0 0 1-.5-.5V18a.5.5 0 0 1 .5-.5Z" fill="#1e1e1e"/>
</svg>
@@ -384,9 +253,9 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
sprintf(
/* translators: %s: WordPress version number. */
esc_url( __( 'https://wordpress.org/documentation/wordpress-version/version-%s/' ) ),
- '6-5'
+ '6-6'
),
- '6.5'
+ '6.6'
);
?>
</p>
diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php
index b6645fd..3ad60f9 100644
--- a/wp-admin/admin-ajax.php
+++ b/wp-admin/admin-ajax.php
@@ -5,7 +5,7 @@
* @package WordPress
* @subpackage Administration
*
- * @link https://codex.wordpress.org/AJAX_in_Plugins
+ * @link https://developer.wordpress.org/plugins/javascript/ajax
*/
/**
diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php
index fc836c2..53e3c06 100644
--- a/wp-admin/admin-header.php
+++ b/wp-admin/admin-header.php
@@ -14,7 +14,7 @@ if ( ! defined( 'WP_ADMIN' ) ) {
/**
* In case admin-header.php is included in a function.
*
- * @global string $title
+ * @global string $title The title of the current screen.
* @global string $hook_suffix
* @global WP_Screen $current_screen WordPress current screen object.
* @global WP_Locale $wp_locale WordPress date and time locale object.
diff --git a/wp-admin/admin-post.php b/wp-admin/admin-post.php
index e71f5cd..be32e07 100644
--- a/wp-admin/admin-post.php
+++ b/wp-admin/admin-post.php
@@ -29,7 +29,7 @@ nocache_headers();
/** This action is documented in wp-admin/admin.php */
do_action( 'admin_init' );
-$action = ! empty( $_REQUEST['action'] ) ? $_REQUEST['action'] : '';
+$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
// Reject invalid parameters.
if ( ! is_scalar( $action ) ) {
diff --git a/wp-admin/async-upload.php b/wp-admin/async-upload.php
index 864f2be..551f854 100644
--- a/wp-admin/async-upload.php
+++ b/wp-admin/async-upload.php
@@ -64,22 +64,22 @@ if ( isset( $_REQUEST['attachment_id'] ) && (int) $_REQUEST['attachment_id'] &&
?>
<div class="filename new">
<span class="media-list-title"><strong><?php echo esc_html( wp_html_excerpt( $title, 60, '&hellip;' ) ); ?></strong></span>
- <span class="media-list-subtitle"><?php echo wp_basename( $file ); ?></span>
+ <span class="media-list-subtitle"><?php echo esc_html( wp_basename( $file ) ); ?></span>
+ <div class="attachment-tools">
+ <?php
+ if ( current_user_can( 'edit_post', $id ) ) {
+ echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '">' . _x( 'Edit', 'media item' ) . '</a>';
+ } else {
+ echo '<span class="edit-attachment">' . _x( 'Success', 'media item' ) . '</span>';
+ }
+ ?>
+ <span class="media-item-copy-container copy-to-clipboard-container edit-attachment">
+ <button type="button" class="button button-small copy-attachment-url" data-clipboard-text="<?php echo $file_url; ?>"><?php _e( 'Copy URL to clipboard' ); ?></button>
+ <span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
+ </span>
+ </div>
</div>
</div>
- <div class="attachment-tools">
- <span class="media-item-copy-container copy-to-clipboard-container edit-attachment">
- <button type="button" class="button button-small copy-attachment-url" data-clipboard-text="<?php echo $file_url; ?>"><?php _e( 'Copy URL to clipboard' ); ?></button>
- <span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
- </span>
- <?php
- if ( current_user_can( 'edit_post', $id ) ) {
- echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '">' . _x( 'Edit', 'media item' ) . '</a>';
- } else {
- echo '<span class="edit-attachment">' . _x( 'Success', 'media item' ) . '</span>';
- }
- ?>
- </div>
</div>
<?php
break;
diff --git a/wp-admin/comment.php b/wp-admin/comment.php
index 349a32a..e105869 100644
--- a/wp-admin/comment.php
+++ b/wp-admin/comment.php
@@ -16,7 +16,8 @@ $submenu_file = 'edit-comments.php';
* @global string $action
*/
global $action;
-wp_reset_vars( array( 'action' ) );
+
+$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
if ( isset( $_POST['deletecomment'] ) ) {
$action = 'deletecomment';
diff --git a/wp-admin/css/about-rtl.css b/wp-admin/css/about-rtl.css
index 0c7b214..b5abef3 100644
--- a/wp-admin/css/about-rtl.css
+++ b/wp-admin/css/about-rtl.css
@@ -341,7 +341,8 @@
}
@media screen and (max-width: 480px) {
- .about__section.is-feature .column {
+ .about__section.is-feature .column,
+ .about__section .is-section-header {
padding: 0;
}
@@ -379,7 +380,7 @@
.about__container h2,
.about__container h3.is-larger-heading {
margin-top: 0;
- margin-bottom: 0.5em;
+ margin-bottom: calc(0.5 * var(--gap));
font-size: 2rem;
font-weight: 700;
line-height: 1.16;
@@ -389,6 +390,7 @@
.about__container h1.is-smaller-heading,
.about__container h2.is-smaller-heading {
margin-top: 0;
+ margin-bottom: calc(0.5 * var(--gap));
font-size: 1.625rem;
font-weight: 700;
line-height: 1.4;
@@ -448,6 +450,10 @@
text-decoration: underline;
}
+.about__section a.button.button-hero {
+ font-size: 1.5rem;
+}
+
.about__container ul {
list-style: disc;
margin-right: calc(var(--gap) / 2);
@@ -489,7 +495,7 @@
}
.about__container .about__image + h3 {
- margin-top: 1.5em;
+ margin-top: calc(0.75 * var(--gap));
}
.about__container hr {
@@ -508,6 +514,10 @@
margin: var(--gap) auto;
}
+.about__container hr.is-invisible {
+ border: none;
+}
+
.about__container div.updated,
.about__container div.error,
.about__container .notice {
@@ -586,7 +596,7 @@
.privacy-php .about__header-title h1,
.contribute-php .about__header-title h1 {
/* Fluid font size scales on browser size 960px - 1200px. */
- font-size: clamp(2rem, 10vw - 3rem, 4rem);
+ font-size: clamp(2rem, 20vw - 9rem, 4rem);
}
.about__header-text {
@@ -656,7 +666,7 @@
.privacy-php .about__header-title h1,
.contribute-php .about__header-title h1 {
/* Fluid font size scales on browser size 600px - 960px. */
- font-size: clamp(3rem, 6.67vw - 0.5rem, 4.5rem);
+ font-size: clamp(2rem, 20vw - 9rem, 4rem);
}
.about__header-navigation .nav-tab {
@@ -1281,24 +1291,6 @@
margin: 0.6em 0;
}
-.freedoms-php .column .freedoms-image {
- background-image: url('../images/freedoms.png');
- background-size: 100%;
- padding-top: 100%;
-}
-
-.freedoms-php .column:nth-of-type(2) .freedoms-image {
- background-position: 100% 34%;
-}
-
-.freedoms-php .column:nth-of-type(3) .freedoms-image {
- background-position: 100% 66%;
-}
-
-.freedoms-php .column:nth-of-type(4) .freedoms-image {
- background-position: 100% 100%;
-}
-
/*------------------------------------------------------------------------------
x.5.0 - Legacy About Styles: Media Queries
------------------------------------------------------------------------------*/
diff --git a/wp-admin/css/about-rtl.min.css b/wp-admin/css/about-rtl.min.css
index 7a72805..19eeafe 100644
--- a/wp-admin/css/about-rtl.min.css
+++ b/wp-admin/css/about-rtl.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-.about__container{--background:#ededed;--subtle-background:#eef0fd;--text:#1e1e1e;--text-light:#fff;--accent-1:#3858e9;--accent-2:#3858e9;--accent-3:#ededed;--nav-background:#fff;--nav-border:transparent;--nav-color:var(--text);--nav-current:var(--accent-1);--border-radius:16px;--gap:2rem}.about-php,.contribute-php,.credits-php,.freedoms-php,.privacy-php{background:#fff}.about-php #wpcontent,.contribute-php #wpcontent,.credits-php #wpcontent,.freedoms-php #wpcontent,.privacy-php #wpcontent{background:#fff;padding:0 24px}@media screen and (max-width:782px){.about-php.auto-fold #wpcontent,.contribute-php.auto-fold #wpcontent,.credits-php.auto-fold #wpcontent,.freedoms-php.auto-fold #wpcontent,.privacy-php.auto-fold #wpcontent{padding-right:24px}}.about__container{max-width:1000px;margin:24px auto;clear:both}.about__container .alignleft{float:right}.about__container .alignright{float:left}.about__container .aligncenter{text-align:center}.about__container .is-vertically-aligned-top{align-self:start}.about__container .is-vertically-aligned-center{align-self:center}.about__container .is-vertically-aligned-bottom{align-self:end}.about__section{background:0 0;clear:both}.about__container .has-accent-background-color{color:var(--text-light);background-color:var(--accent-2)}.about__container .has-transparent-background-color{background-color:transparent}.about__container .has-accent-color{color:var(--accent-2)}.about__container .has-border{border:3px solid currentColor}.about__container .has-subtle-background-color{background-color:var(--subtle-background)}.about__container .has-background-image{background-size:contain;background-repeat:no-repeat;background-position:center}.about__section{margin:0}.about__section .column:not(.is-edge-to-edge){padding:var(--gap)}.about__section+.about__section .is-section-header{padding-bottom:var(--gap)}.about__section .column.has-border:not(.is-edge-to-edge),.about__section .column[class*=background-color]:not(.is-edge-to-edge),.about__section:where([class*=background-color]) .column:not(.is-edge-to-edge){padding-top:var(--gap);padding-bottom:var(--gap)}.about__section .column p:first-of-type{margin-top:0}.about__section .column p:last-of-type{margin-bottom:0}.about__section .has-text-columns{columns:2;column-gap:calc(var(--gap) * 2)}.about__section .is-section-header{margin-bottom:0;padding:var(--gap) var(--gap) 0}.about__section .is-section-header p:last-child{margin-bottom:0}.about__section .is-section-header:first-child:last-child{padding:0}.about__section.is-feature{padding:var(--gap)}.about__section.is-feature p{margin:0}.about__section.is-feature p+p{margin-top:calc(var(--gap)/ 2)}.about__section.has-1-column{margin-right:auto;margin-left:auto;max-width:36em}.about__section.has-2-columns,.about__section.has-3-columns,.about__section.has-4-columns,.about__section.has-overlap-style{display:grid}.about__section.has-gutters{gap:var(--gap);margin-bottom:var(--gap)}.about__section.has-2-columns{grid-template-columns:1fr 1fr}.about__section.has-2-columns.is-wider-right{grid-template-columns:2fr 3fr}.about__section.has-2-columns.is-wider-left{grid-template-columns:3fr 2fr}.about__section .is-section-header{grid-column-start:1;grid-column-end:-1}.about__section.has-3-columns{grid-template-columns:repeat(3,1fr)}.about__section.has-4-columns{grid-template-columns:repeat(4,1fr)}.about__section.has-overlap-style{grid-template-columns:repeat(7,1fr)}.about__section.has-overlap-style .column{grid-row-start:1}.about__section.has-overlap-style .column:nth-of-type(odd){grid-column-start:2;grid-column-end:span 3}.about__section.has-overlap-style .column:nth-of-type(2n){grid-column-start:4;grid-column-end:span 3}.about__section.has-overlap-style .column.is-top-layer{z-index:1}@media screen and (max-width:782px){.about__section.has-2-columns.is-wider-left,.about__section.has-2-columns.is-wider-right,.about__section.has-3-columns{display:block;margin-bottom:calc(var(--gap)/ 2)}.about__section .column:not(.is-edge-to-edge){padding-top:var(--gap);padding-bottom:var(--gap)}.about__section.has-2-columns.has-gutters.is-wider-left,.about__section.has-2-columns.has-gutters.is-wider-right,.about__section.has-3-columns.has-gutters{margin-bottom:calc(var(--gap) * 2)}.about__section.has-2-columns.has-gutters .column,.about__section.has-3-columns.has-gutters .column{margin-bottom:var(--gap)}.about__section.has-2-columns.has-gutters .column:last-child,.about__section.has-3-columns.has-gutters .column:last-child{margin-bottom:0}.about__section.has-3-columns .column:nth-of-type(n){padding-top:calc(var(--gap)/ 2);padding-bottom:calc(var(--gap)/ 2)}.about__section.has-4-columns{grid-template-columns:repeat(2,1fr)}.about__section.has-overlap-style{grid-template-columns:1fr}.about__section.has-overlap-style .column.column{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}}@media screen and (max-width:600px){.about__section.has-2-columns{display:block;margin-bottom:var(--gap)}.about__section.has-2-columns:not(.has-gutters) .column:nth-of-type(n){padding-top:calc(var(--gap)/ 2);padding-bottom:calc(var(--gap)/ 2)}.about__section.has-2-columns.has-gutters{margin-bottom:calc(var(--gap) * 2)}.about__section.has-2-columns.has-gutters .column{margin-bottom:var(--gap)}.about__section.has-2-columns.has-gutters .column:last-child{margin-bottom:0}}@media screen and (max-width:480px){.about__section.is-feature .column{padding:0}.about__section.has-4-columns{display:block;padding-bottom:calc(var(--gap)/ 2)}.about__section.has-4-columns.has-gutters .column{margin-bottom:calc(var(--gap)/ 2)}.about__section.has-4-columns.has-gutters .column:last-child{margin-bottom:0}.about__section.has-4-columns .column:nth-of-type(n){padding-top:calc(var(--gap)/ 2);padding-bottom:calc(var(--gap)/ 2)}}.about__container{line-height:1.4;color:var(--text)}.about__container h1{padding:0}.about__container h1,.about__container h2,.about__container h3.is-larger-heading{margin-top:0;margin-bottom:.5em;font-size:2rem;font-weight:700;line-height:1.16}.about__container h1.is-smaller-heading,.about__container h2.is-smaller-heading,.about__container h3{margin-top:0;font-size:1.625rem;font-weight:700;line-height:1.4}.about__container h3.is-smaller-heading,.about__container h4{margin-top:0;font-size:1.125rem;font-weight:600;line-height:1.6}.about__container h1,.about__container h2,.about__container h3,.about__container h4{text-wrap:balance;color:inherit}.about__container p{text-wrap:pretty}.about__container p{font-size:inherit;line-height:inherit}.about__container p.is-subheading{margin-top:0;font-size:1.5rem;font-weight:300;line-height:160%}.about__section a{color:var(--accent-1);text-decoration:underline}.about__section a:active,.about__section a:focus,.about__section a:hover{color:var(--accent-1);text-decoration:none}.wp-credits-list a{text-decoration:none}.wp-credits-list a:active,.wp-credits-list a:focus,.wp-credits-list a:hover{text-decoration:underline}.about__container ul{list-style:disc;margin-right:calc(var(--gap)/ 2)}.about__container li{margin-bottom:.5rem}.about__container img{margin:0;max-width:100%;vertical-align:middle}.about__container .about__image{margin:0}.about__container .about__image img{max-width:100%;width:100%;height:auto;border-radius:var(--border-radius)}.about__container .about__image figcaption{margin-top:.5em;text-align:center}.about__container .about__image .wp-video{margin-right:auto;margin-left:auto}.about__container .about__image svg{vertical-align:middle}.about__container .about__image+h3{margin-top:1.5em}.about__container hr{margin:calc(var(--gap)/ 2) var(--gap);height:0;border:none;border-top:4px solid var(--accent-3)}.about__container hr.is-small{margin-top:0;margin-bottom:0}.about__container hr.is-large{margin:var(--gap) auto}.about__container .notice,.about__container div.error,.about__container div.updated{display:none!important}.about__container code{font-size:inherit}.about__section{font-size:1.125rem;line-height:1.55}.about__section.is-feature{font-size:1.6em}.about__section.has-3-columns,.about__section.has-4-columns{font-size:1rem}@media screen and (max-width:480px){.about__section.is-feature{font-size:1.4em}.about__container h1,.about__container h2,.about__container h3.is-larger-heading{font-size:2em}}.about__header{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;box-sizing:border-box;padding:calc(var(--gap) * 1.5);min-height:clamp(10rem,25vw,18.75rem);border-radius:var(--border-radius);background-repeat:no-repeat;background-position:left 7% center,top right;background-color:var(--background)}.about__header-image{margin:0 var(--gap) 3em}.about__header-title{box-sizing:border-box;margin:0;padding:0}.about__header-title h1{margin:0;padding:0;font-size:clamp(2rem, 20vw - 9rem, 4rem);line-height:1;font-weight:600}.about-php .about__header-title h1,.contribute-php .about__header-title h1,.credits-php .about__header-title h1,.freedoms-php .about__header-title h1,.privacy-php .about__header-title h1{font-size:clamp(2rem, 10vw - 3rem, 4rem)}.about__header-text{box-sizing:border-box;max-width:26em;margin:1rem 0 0;padding:0;font-size:1.6rem;line-height:1.15}.about__header-navigation{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:space-between;padding-top:0;margin-bottom:var(--gap);background:var(--nav-background);color:var(--nav-color);border-bottom:3px solid var(--nav-border)}.about__header-navigation::after{display:none}.about__header-navigation .nav-tab{margin-right:0;padding:calc(var(--gap) * .75) var(--gap);float:none;font-size:1.4em;line-height:1;border-width:0 0 3px;border-style:solid;border-color:transparent;background:0 0;color:inherit}.about__header-navigation .nav-tab:active,.about__header-navigation .nav-tab:hover{background-color:var(--nav-current);color:var(--text-light)}.about__header-navigation .nav-tab-active{margin-bottom:-3px;color:var(--nav-current);border-width:0 0 6px;border-color:var(--nav-current)}.about__header-navigation .nav-tab-active:active,.about__header-navigation .nav-tab-active:hover{background-color:var(--nav-current);color:var(--text-light);border-color:var(--nav-current)}@media screen and (max-width:960px){.about-php .about__header-title h1,.contribute-php .about__header-title h1,.credits-php .about__header-title h1,.freedoms-php .about__header-title h1,.privacy-php .about__header-title h1{font-size:clamp(3rem, 6.67vw - .5rem, 4.5rem)}.about__header-navigation .nav-tab{padding:calc(var(--gap) * .75) calc(var(--gap) * .5)}}@media screen and (max-width:782px){.about__container .about__header-text{font-size:1.4em}.about__header-container{display:block}.about__header{padding:var(--gap)}.about__header-text{margin-top:.5rem}.about__header-navigation .nav-tab{margin-top:0;margin-left:0;font-size:1.2em}}@media screen and (max-width:600px){.about__header{min-height:auto}.about__header,.contribute-php .about__header,.credits-php .about__header,.freedoms-php .about__header,.privacy-php .about__header{background-image:none}.about__header-navigation{display:block}.about__header-navigation .nav-tab{display:block;margin-bottom:0;padding:calc(var(--gap)/ 2);border-right-width:6px;border-bottom:none}.about__header-navigation .nav-tab-active{border-bottom:none;border-right-width:6px}}.about__section .wp-people-group-title{margin-bottom:calc(var(--gap) * 2 - 10px);text-align:center}.about__section .wp-people-group{margin:0;display:flex;flex-wrap:wrap}.about__section .wp-person{display:inline-block;vertical-align:top;box-sizing:border-box;margin-bottom:calc(var(--gap) - 10px);width:25%;text-align:center}.about__section .compact .wp-person{height:auto;width:20%}.about__section .wp-person-avatar{display:block;margin:0 auto calc(var(--gap)/ 2);width:140px;height:140px;border-radius:100%;overflow:hidden}.about__section .wp-person .gravatar{width:140px;height:140px;filter:grayscale(100%)}.about__section .compact .wp-person .gravatar,.about__section .compact .wp-person-avatar{width:80px;height:80px}.about__section .wp-person .web{display:block;font-size:1.4em;font-weight:600;padding:10px 10px 0;text-decoration:none}.about__section .wp-person .web:hover{text-decoration:underline}.about__section .compact .wp-person .web{font-size:1.2em}.about__section .wp-person .title{display:block;margin-top:.5em}@media screen and (max-width:782px){.about__section .wp-person{width:33%}.about__section .compact .wp-person{width:25%}.about__section .wp-person .gravatar,.about__section .wp-person-avatar{width:120px;height:120px}}@media screen and (max-width:600px){.about__section .wp-person{width:50%}.about__section .compact .wp-person{width:33%}.about__section .wp-person .web{font-size:1.2em}}@media screen and (max-width:480px){.about__section .wp-person{min-width:100%}.about__section .wp-person .web{font-size:1em}.about__section .compact .wp-person .web{font-size:1em}}.about__section .column .freedom-image{margin-bottom:var(--gap);max-height:180px}.about__section .column .privacy-image{display:block;margin-right:auto;margin-left:auto;max-width:25rem}.about-wrap{position:relative;margin:25px 20px 0 40px;max-width:1050px;font-size:15px}.about-wrap.full-width-layout{max-width:1200px}.about-wrap-content{max-width:1050px}.about-wrap .notice,.about-wrap div.error,.about-wrap div.updated{display:none!important}.about-wrap hr{border:0;height:0;margin:3em 0 0;border-top:1px solid rgba(0,0,0,.1)}.about-wrap img{margin:0;width:100%;height:auto;vertical-align:middle}.about-wrap .inline-svg img{max-width:100%;width:auto;height:auto}.about-wrap video{margin:1.5em auto}.wp-badge{background:#0073aa url(../images/w-logo-white.png?ver=20160308) no-repeat;background-position:center 25px;background-size:80px 80px;color:#fff;font-size:14px;text-align:center;font-weight:600;margin:5px 0 0;padding-top:120px;height:40px;display:inline-block;width:140px;text-rendering:optimizeLegibility;box-shadow:0 1px 3px rgba(0,0,0,.2)}.svg .wp-badge{background-image:url(../images/wordpress-logo-white.svg?ver=20160308)}.about-wrap .wp-badge{position:absolute;top:0;left:0}.about-wrap .nav-tab{padding-left:15px;padding-right:15px;font-size:18px;line-height:1.33333333}.about-wrap h1{margin:.2em 0 0 200px;padding:0;color:#32373c;line-height:1.2;font-size:2.8em;font-weight:400}.about-wrap h2{margin:40px 0 .6em;font-size:2.7em;line-height:1.3;font-weight:300;text-align:center}.about-wrap h3{margin:1.25em 0 .6em;font-size:1.4em;line-height:1.5}.about-wrap h4{font-size:16px;color:#23282d}.about-wrap p{line-height:1.5;font-size:16px}.about-wrap code,.about-wrap ol li p{font-size:14px;font-weight:400}.about-wrap figcaption{font-size:13px;text-align:center;color:#fff;text-overflow:ellipsis}.about-wrap .about-description,.about-wrap .about-text{margin-top:1.4em;font-weight:400;line-height:1.6;font-size:19px}.about-wrap .about-text{margin:1em 0 1em 200px;color:#555d66}.about-wrap .has-1-columns,.about-wrap .has-2-columns,.about-wrap .has-3-columns,.about-wrap .has-4-columns{display:grid;max-width:800px;margin-top:40px;margin-right:auto;margin-left:auto}.about-wrap .column{margin-left:20px;margin-right:20px}.about-wrap .is-wide{max-width:760px}.about-wrap .is-fullwidth{max-width:100%}.about-wrap .has-1-columns{display:block;max-width:680px;margin:0 auto 40px}.about-wrap .has-2-columns{grid-template-columns:1fr 1fr}.about-wrap .has-2-columns .column:nth-of-type(odd){grid-column-start:1}.about-wrap .has-2-columns .column:nth-of-type(2n){grid-column-start:2}.about-wrap .has-2-columns.is-wider-right{grid-template-columns:1fr 2fr}.about-wrap .has-2-columns.is-wider-left{grid-template-columns:2fr 1fr}.about-wrap .has-3-columns{grid-template-columns:repeat(3,1fr)}.about-wrap .has-3-columns .column:nth-of-type(3n+1){grid-column-start:1}.about-wrap .has-3-columns .column:nth-of-type(3n+2){grid-column-start:2}.about-wrap .has-3-columns .column:nth-of-type(3n){grid-column-start:3}.about-wrap .has-4-columns{grid-template-columns:repeat(4,1fr)}.about-wrap .has-4-columns .column:nth-of-type(4n+1){grid-column-start:1}.about-wrap .has-4-columns .column:nth-of-type(4n+2){grid-column-start:2}.about-wrap .has-4-columns .column:nth-of-type(4n+3){grid-column-start:3}.about-wrap .has-4-columns .column:nth-of-type(4n){grid-column-start:4}.about-wrap .column :first-child{margin-top:0}.about-wrap .aligncenter{text-align:center}.about-wrap .alignleft{float:right;margin-left:40px}.about-wrap .alignright{float:left;margin-right:40px}.about-wrap .is-vertically-aligned-top{align-self:flex-start}.about-wrap .is-vertically-aligned-center{align-self:center}.about-wrap .is-vertically-aligned-bottom{align-self:end}.about-wrap .point-releases{margin-top:5px;border-bottom:1px solid #ddd}.about-wrap .changelog{margin-bottom:40px}.about-wrap .changelog.point-releases h3{padding-top:35px}.about-wrap .changelog.point-releases h3:first-child{padding-top:7px}.about-wrap .changelog.feature-section .col{margin-top:40px}.about-wrap .lead-description{font-size:1.5em;text-align:center}.about-wrap .feature-section p{margin-top:.6em}.about-wrap .headline-feature{margin:0 auto 40px;max-width:680px}.about-wrap .headline-feature h2{margin:50px 0 0}.about-wrap .headline-feature img{max-width:600px;width:100%}.about-wrap .return-to-dashboard{margin:30px -5px 0 0;font-size:14px;font-weight:600}.about-wrap .return-to-dashboard a{text-decoration:none;padding:0 5px}.about-wrap h2.wp-people-group{margin:2.6em 0 1.33em;padding:0;font-size:16px;line-height:inherit;font-weight:600;text-align:right}.about-wrap .wp-people-group{padding:0 5px;margin:0 -5px 0 -15px}.about-wrap .compact{margin-bottom:0}.about-wrap .wp-person{display:inline-block;vertical-align:top;margin-left:10px;padding-bottom:15px;height:70px;width:280px}.about-wrap .compact .wp-person{height:auto;width:180px;padding-bottom:0;margin-bottom:0}.about-wrap .wp-person .gravatar{float:right;margin:0 0 10px 10px;padding:1px;width:60px;height:60px}.about-wrap .compact .wp-person .gravatar{width:30px;height:30px}.about-wrap .wp-person .web{margin:6px 0 2px;font-size:16px;font-weight:400;line-height:2;text-decoration:none}.about-wrap .wp-person .title{display:block}.about-wrap #wp-people-group-validators+p.wp-credits-list{margin-top:0}.about-wrap p.wp-credits-list a{white-space:nowrap}.freedoms-php .about-wrap ol{margin:40px 60px}.freedoms-php .about-wrap ol li{list-style-type:decimal;font-weight:600}.freedoms-php .about-wrap ol p{font-weight:400;margin:.6em 0}.freedoms-php .column .freedoms-image{background-image:url('../images/freedoms.png');background-size:100%;padding-top:100%}.freedoms-php .column:nth-of-type(2) .freedoms-image{background-position:100% 34%}.freedoms-php .column:nth-of-type(3) .freedoms-image{background-position:100% 66%}.freedoms-php .column:nth-of-type(4) .freedoms-image{background-position:100% 100%}@media screen and (max-width:782px){.about-wrap .has-3-columns,.about-wrap .has-4-columns{grid-template-columns:1fr 1fr}.about-wrap .has-3-columns .column:nth-of-type(3n+1),.about-wrap .has-4-columns .column:nth-of-type(4n+1){grid-column-start:1;grid-row-start:1}.about-wrap .has-3-columns .column:nth-of-type(3n+2),.about-wrap .has-4-columns .column:nth-of-type(4n+2){grid-column-start:2;grid-row-start:1}.about-wrap .has-3-columns .column:nth-of-type(3n),.about-wrap .has-4-columns .column:nth-of-type(4n+3){grid-column-start:1;grid-row-start:2}.about-wrap .has-4-columns .column:nth-of-type(4n){grid-column-start:2;grid-row-start:2}}@media screen and (max-width:600px){.about-wrap .has-2-columns,.about-wrap .has-3-columns,.about-wrap .has-4-columns{display:block}.about-wrap :not(.is-wider-right):not(.is-wider-left) .column{margin-left:0;margin-right:0}.about-wrap .has-2-columns.is-wider-left,.about-wrap .has-2-columns.is-wider-right{display:grid}}@media only screen and (max-width:500px){.about-wrap{margin-left:20px;margin-right:10px}.about-wrap .about-text,.about-wrap h1{margin-left:0}.about-wrap .about-text{margin-bottom:.25em}.about-wrap .wp-badge{position:relative;margin-bottom:1.5em;width:100%}}@media only screen and (max-width:480px){.about-wrap .has-2-columns.is-wider-left,.about-wrap .has-2-columns.is-wider-right{display:block}.about-wrap .column{margin-left:0;margin-right:0}.about-wrap .has-2-columns.is-wider-left img,.about-wrap .has-2-columns.is-wider-right img{max-width:160px}} \ No newline at end of file
+.about__container{--background:#ededed;--subtle-background:#eef0fd;--text:#1e1e1e;--text-light:#fff;--accent-1:#3858e9;--accent-2:#3858e9;--accent-3:#ededed;--nav-background:#fff;--nav-border:transparent;--nav-color:var(--text);--nav-current:var(--accent-1);--border-radius:16px;--gap:2rem}.about-php,.contribute-php,.credits-php,.freedoms-php,.privacy-php{background:#fff}.about-php #wpcontent,.contribute-php #wpcontent,.credits-php #wpcontent,.freedoms-php #wpcontent,.privacy-php #wpcontent{background:#fff;padding:0 24px}@media screen and (max-width:782px){.about-php.auto-fold #wpcontent,.contribute-php.auto-fold #wpcontent,.credits-php.auto-fold #wpcontent,.freedoms-php.auto-fold #wpcontent,.privacy-php.auto-fold #wpcontent{padding-right:24px}}.about__container{max-width:1000px;margin:24px auto;clear:both}.about__container .alignleft{float:right}.about__container .alignright{float:left}.about__container .aligncenter{text-align:center}.about__container .is-vertically-aligned-top{align-self:start}.about__container .is-vertically-aligned-center{align-self:center}.about__container .is-vertically-aligned-bottom{align-self:end}.about__section{background:0 0;clear:both}.about__container .has-accent-background-color{color:var(--text-light);background-color:var(--accent-2)}.about__container .has-transparent-background-color{background-color:transparent}.about__container .has-accent-color{color:var(--accent-2)}.about__container .has-border{border:3px solid currentColor}.about__container .has-subtle-background-color{background-color:var(--subtle-background)}.about__container .has-background-image{background-size:contain;background-repeat:no-repeat;background-position:center}.about__section{margin:0}.about__section .column:not(.is-edge-to-edge){padding:var(--gap)}.about__section+.about__section .is-section-header{padding-bottom:var(--gap)}.about__section .column.has-border:not(.is-edge-to-edge),.about__section .column[class*=background-color]:not(.is-edge-to-edge),.about__section:where([class*=background-color]) .column:not(.is-edge-to-edge){padding-top:var(--gap);padding-bottom:var(--gap)}.about__section .column p:first-of-type{margin-top:0}.about__section .column p:last-of-type{margin-bottom:0}.about__section .has-text-columns{columns:2;column-gap:calc(var(--gap) * 2)}.about__section .is-section-header{margin-bottom:0;padding:var(--gap) var(--gap) 0}.about__section .is-section-header p:last-child{margin-bottom:0}.about__section .is-section-header:first-child:last-child{padding:0}.about__section.is-feature{padding:var(--gap)}.about__section.is-feature p{margin:0}.about__section.is-feature p+p{margin-top:calc(var(--gap)/ 2)}.about__section.has-1-column{margin-right:auto;margin-left:auto;max-width:36em}.about__section.has-2-columns,.about__section.has-3-columns,.about__section.has-4-columns,.about__section.has-overlap-style{display:grid}.about__section.has-gutters{gap:var(--gap);margin-bottom:var(--gap)}.about__section.has-2-columns{grid-template-columns:1fr 1fr}.about__section.has-2-columns.is-wider-right{grid-template-columns:2fr 3fr}.about__section.has-2-columns.is-wider-left{grid-template-columns:3fr 2fr}.about__section .is-section-header{grid-column-start:1;grid-column-end:-1}.about__section.has-3-columns{grid-template-columns:repeat(3,1fr)}.about__section.has-4-columns{grid-template-columns:repeat(4,1fr)}.about__section.has-overlap-style{grid-template-columns:repeat(7,1fr)}.about__section.has-overlap-style .column{grid-row-start:1}.about__section.has-overlap-style .column:nth-of-type(odd){grid-column-start:2;grid-column-end:span 3}.about__section.has-overlap-style .column:nth-of-type(2n){grid-column-start:4;grid-column-end:span 3}.about__section.has-overlap-style .column.is-top-layer{z-index:1}@media screen and (max-width:782px){.about__section.has-2-columns.is-wider-left,.about__section.has-2-columns.is-wider-right,.about__section.has-3-columns{display:block;margin-bottom:calc(var(--gap)/ 2)}.about__section .column:not(.is-edge-to-edge){padding-top:var(--gap);padding-bottom:var(--gap)}.about__section.has-2-columns.has-gutters.is-wider-left,.about__section.has-2-columns.has-gutters.is-wider-right,.about__section.has-3-columns.has-gutters{margin-bottom:calc(var(--gap) * 2)}.about__section.has-2-columns.has-gutters .column,.about__section.has-3-columns.has-gutters .column{margin-bottom:var(--gap)}.about__section.has-2-columns.has-gutters .column:last-child,.about__section.has-3-columns.has-gutters .column:last-child{margin-bottom:0}.about__section.has-3-columns .column:nth-of-type(n){padding-top:calc(var(--gap)/ 2);padding-bottom:calc(var(--gap)/ 2)}.about__section.has-4-columns{grid-template-columns:repeat(2,1fr)}.about__section.has-overlap-style{grid-template-columns:1fr}.about__section.has-overlap-style .column.column{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}}@media screen and (max-width:600px){.about__section.has-2-columns{display:block;margin-bottom:var(--gap)}.about__section.has-2-columns:not(.has-gutters) .column:nth-of-type(n){padding-top:calc(var(--gap)/ 2);padding-bottom:calc(var(--gap)/ 2)}.about__section.has-2-columns.has-gutters{margin-bottom:calc(var(--gap) * 2)}.about__section.has-2-columns.has-gutters .column{margin-bottom:var(--gap)}.about__section.has-2-columns.has-gutters .column:last-child{margin-bottom:0}}@media screen and (max-width:480px){.about__section .is-section-header,.about__section.is-feature .column{padding:0}.about__section.has-4-columns{display:block;padding-bottom:calc(var(--gap)/ 2)}.about__section.has-4-columns.has-gutters .column{margin-bottom:calc(var(--gap)/ 2)}.about__section.has-4-columns.has-gutters .column:last-child{margin-bottom:0}.about__section.has-4-columns .column:nth-of-type(n){padding-top:calc(var(--gap)/ 2);padding-bottom:calc(var(--gap)/ 2)}}.about__container{line-height:1.4;color:var(--text)}.about__container h1{padding:0}.about__container h1,.about__container h2,.about__container h3.is-larger-heading{margin-top:0;margin-bottom:calc(.5 * var(--gap));font-size:2rem;font-weight:700;line-height:1.16}.about__container h1.is-smaller-heading,.about__container h2.is-smaller-heading,.about__container h3{margin-top:0;margin-bottom:calc(.5 * var(--gap));font-size:1.625rem;font-weight:700;line-height:1.4}.about__container h3.is-smaller-heading,.about__container h4{margin-top:0;font-size:1.125rem;font-weight:600;line-height:1.6}.about__container h1,.about__container h2,.about__container h3,.about__container h4{text-wrap:balance;color:inherit}.about__container p{text-wrap:pretty}.about__container p{font-size:inherit;line-height:inherit}.about__container p.is-subheading{margin-top:0;font-size:1.5rem;font-weight:300;line-height:160%}.about__section a{color:var(--accent-1);text-decoration:underline}.about__section a:active,.about__section a:focus,.about__section a:hover{color:var(--accent-1);text-decoration:none}.wp-credits-list a{text-decoration:none}.wp-credits-list a:active,.wp-credits-list a:focus,.wp-credits-list a:hover{text-decoration:underline}.about__section a.button.button-hero{font-size:1.5rem}.about__container ul{list-style:disc;margin-right:calc(var(--gap)/ 2)}.about__container li{margin-bottom:.5rem}.about__container img{margin:0;max-width:100%;vertical-align:middle}.about__container .about__image{margin:0}.about__container .about__image img{max-width:100%;width:100%;height:auto;border-radius:var(--border-radius)}.about__container .about__image figcaption{margin-top:.5em;text-align:center}.about__container .about__image .wp-video{margin-right:auto;margin-left:auto}.about__container .about__image svg{vertical-align:middle}.about__container .about__image+h3{margin-top:calc(.75 * var(--gap))}.about__container hr{margin:calc(var(--gap)/ 2) var(--gap);height:0;border:none;border-top:4px solid var(--accent-3)}.about__container hr.is-small{margin-top:0;margin-bottom:0}.about__container hr.is-large{margin:var(--gap) auto}.about__container hr.is-invisible{border:none}.about__container .notice,.about__container div.error,.about__container div.updated{display:none!important}.about__container code{font-size:inherit}.about__section{font-size:1.125rem;line-height:1.55}.about__section.is-feature{font-size:1.6em}.about__section.has-3-columns,.about__section.has-4-columns{font-size:1rem}@media screen and (max-width:480px){.about__section.is-feature{font-size:1.4em}.about__container h1,.about__container h2,.about__container h3.is-larger-heading{font-size:2em}}.about__header{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;box-sizing:border-box;padding:calc(var(--gap) * 1.5);min-height:clamp(10rem,25vw,18.75rem);border-radius:var(--border-radius);background-repeat:no-repeat;background-position:left 7% center,top right;background-color:var(--background)}.about__header-image{margin:0 var(--gap) 3em}.about__header-title{box-sizing:border-box;margin:0;padding:0}.about__header-title h1{margin:0;padding:0;font-size:clamp(2rem, 20vw - 9rem, 4rem);line-height:1;font-weight:600}.about-php .about__header-title h1,.contribute-php .about__header-title h1,.credits-php .about__header-title h1,.freedoms-php .about__header-title h1,.privacy-php .about__header-title h1{font-size:clamp(2rem, 20vw - 9rem, 4rem)}.about__header-text{box-sizing:border-box;max-width:26em;margin:1rem 0 0;padding:0;font-size:1.6rem;line-height:1.15}.about__header-navigation{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:space-between;padding-top:0;margin-bottom:var(--gap);background:var(--nav-background);color:var(--nav-color);border-bottom:3px solid var(--nav-border)}.about__header-navigation::after{display:none}.about__header-navigation .nav-tab{margin-right:0;padding:calc(var(--gap) * .75) var(--gap);float:none;font-size:1.4em;line-height:1;border-width:0 0 3px;border-style:solid;border-color:transparent;background:0 0;color:inherit}.about__header-navigation .nav-tab:active,.about__header-navigation .nav-tab:hover{background-color:var(--nav-current);color:var(--text-light)}.about__header-navigation .nav-tab-active{margin-bottom:-3px;color:var(--nav-current);border-width:0 0 6px;border-color:var(--nav-current)}.about__header-navigation .nav-tab-active:active,.about__header-navigation .nav-tab-active:hover{background-color:var(--nav-current);color:var(--text-light);border-color:var(--nav-current)}@media screen and (max-width:960px){.about-php .about__header-title h1,.contribute-php .about__header-title h1,.credits-php .about__header-title h1,.freedoms-php .about__header-title h1,.privacy-php .about__header-title h1{font-size:clamp(2rem, 20vw - 9rem, 4rem)}.about__header-navigation .nav-tab{padding:calc(var(--gap) * .75) calc(var(--gap) * .5)}}@media screen and (max-width:782px){.about__container .about__header-text{font-size:1.4em}.about__header-container{display:block}.about__header{padding:var(--gap)}.about__header-text{margin-top:.5rem}.about__header-navigation .nav-tab{margin-top:0;margin-left:0;font-size:1.2em}}@media screen and (max-width:600px){.about__header{min-height:auto}.about__header,.contribute-php .about__header,.credits-php .about__header,.freedoms-php .about__header,.privacy-php .about__header{background-image:none}.about__header-navigation{display:block}.about__header-navigation .nav-tab{display:block;margin-bottom:0;padding:calc(var(--gap)/ 2);border-right-width:6px;border-bottom:none}.about__header-navigation .nav-tab-active{border-bottom:none;border-right-width:6px}}.about__section .wp-people-group-title{margin-bottom:calc(var(--gap) * 2 - 10px);text-align:center}.about__section .wp-people-group{margin:0;display:flex;flex-wrap:wrap}.about__section .wp-person{display:inline-block;vertical-align:top;box-sizing:border-box;margin-bottom:calc(var(--gap) - 10px);width:25%;text-align:center}.about__section .compact .wp-person{height:auto;width:20%}.about__section .wp-person-avatar{display:block;margin:0 auto calc(var(--gap)/ 2);width:140px;height:140px;border-radius:100%;overflow:hidden}.about__section .wp-person .gravatar{width:140px;height:140px;filter:grayscale(100%)}.about__section .compact .wp-person .gravatar,.about__section .compact .wp-person-avatar{width:80px;height:80px}.about__section .wp-person .web{display:block;font-size:1.4em;font-weight:600;padding:10px 10px 0;text-decoration:none}.about__section .wp-person .web:hover{text-decoration:underline}.about__section .compact .wp-person .web{font-size:1.2em}.about__section .wp-person .title{display:block;margin-top:.5em}@media screen and (max-width:782px){.about__section .wp-person{width:33%}.about__section .compact .wp-person{width:25%}.about__section .wp-person .gravatar,.about__section .wp-person-avatar{width:120px;height:120px}}@media screen and (max-width:600px){.about__section .wp-person{width:50%}.about__section .compact .wp-person{width:33%}.about__section .wp-person .web{font-size:1.2em}}@media screen and (max-width:480px){.about__section .wp-person{min-width:100%}.about__section .wp-person .web{font-size:1em}.about__section .compact .wp-person .web{font-size:1em}}.about__section .column .freedom-image{margin-bottom:var(--gap);max-height:180px}.about__section .column .privacy-image{display:block;margin-right:auto;margin-left:auto;max-width:25rem}.about-wrap{position:relative;margin:25px 20px 0 40px;max-width:1050px;font-size:15px}.about-wrap.full-width-layout{max-width:1200px}.about-wrap-content{max-width:1050px}.about-wrap .notice,.about-wrap div.error,.about-wrap div.updated{display:none!important}.about-wrap hr{border:0;height:0;margin:3em 0 0;border-top:1px solid rgba(0,0,0,.1)}.about-wrap img{margin:0;width:100%;height:auto;vertical-align:middle}.about-wrap .inline-svg img{max-width:100%;width:auto;height:auto}.about-wrap video{margin:1.5em auto}.wp-badge{background:#0073aa url(../images/w-logo-white.png?ver=20160308) no-repeat;background-position:center 25px;background-size:80px 80px;color:#fff;font-size:14px;text-align:center;font-weight:600;margin:5px 0 0;padding-top:120px;height:40px;display:inline-block;width:140px;text-rendering:optimizeLegibility;box-shadow:0 1px 3px rgba(0,0,0,.2)}.svg .wp-badge{background-image:url(../images/wordpress-logo-white.svg?ver=20160308)}.about-wrap .wp-badge{position:absolute;top:0;left:0}.about-wrap .nav-tab{padding-left:15px;padding-right:15px;font-size:18px;line-height:1.33333333}.about-wrap h1{margin:.2em 0 0 200px;padding:0;color:#32373c;line-height:1.2;font-size:2.8em;font-weight:400}.about-wrap h2{margin:40px 0 .6em;font-size:2.7em;line-height:1.3;font-weight:300;text-align:center}.about-wrap h3{margin:1.25em 0 .6em;font-size:1.4em;line-height:1.5}.about-wrap h4{font-size:16px;color:#23282d}.about-wrap p{line-height:1.5;font-size:16px}.about-wrap code,.about-wrap ol li p{font-size:14px;font-weight:400}.about-wrap figcaption{font-size:13px;text-align:center;color:#fff;text-overflow:ellipsis}.about-wrap .about-description,.about-wrap .about-text{margin-top:1.4em;font-weight:400;line-height:1.6;font-size:19px}.about-wrap .about-text{margin:1em 0 1em 200px;color:#555d66}.about-wrap .has-1-columns,.about-wrap .has-2-columns,.about-wrap .has-3-columns,.about-wrap .has-4-columns{display:grid;max-width:800px;margin-top:40px;margin-right:auto;margin-left:auto}.about-wrap .column{margin-left:20px;margin-right:20px}.about-wrap .is-wide{max-width:760px}.about-wrap .is-fullwidth{max-width:100%}.about-wrap .has-1-columns{display:block;max-width:680px;margin:0 auto 40px}.about-wrap .has-2-columns{grid-template-columns:1fr 1fr}.about-wrap .has-2-columns .column:nth-of-type(odd){grid-column-start:1}.about-wrap .has-2-columns .column:nth-of-type(2n){grid-column-start:2}.about-wrap .has-2-columns.is-wider-right{grid-template-columns:1fr 2fr}.about-wrap .has-2-columns.is-wider-left{grid-template-columns:2fr 1fr}.about-wrap .has-3-columns{grid-template-columns:repeat(3,1fr)}.about-wrap .has-3-columns .column:nth-of-type(3n+1){grid-column-start:1}.about-wrap .has-3-columns .column:nth-of-type(3n+2){grid-column-start:2}.about-wrap .has-3-columns .column:nth-of-type(3n){grid-column-start:3}.about-wrap .has-4-columns{grid-template-columns:repeat(4,1fr)}.about-wrap .has-4-columns .column:nth-of-type(4n+1){grid-column-start:1}.about-wrap .has-4-columns .column:nth-of-type(4n+2){grid-column-start:2}.about-wrap .has-4-columns .column:nth-of-type(4n+3){grid-column-start:3}.about-wrap .has-4-columns .column:nth-of-type(4n){grid-column-start:4}.about-wrap .column :first-child{margin-top:0}.about-wrap .aligncenter{text-align:center}.about-wrap .alignleft{float:right;margin-left:40px}.about-wrap .alignright{float:left;margin-right:40px}.about-wrap .is-vertically-aligned-top{align-self:flex-start}.about-wrap .is-vertically-aligned-center{align-self:center}.about-wrap .is-vertically-aligned-bottom{align-self:end}.about-wrap .point-releases{margin-top:5px;border-bottom:1px solid #ddd}.about-wrap .changelog{margin-bottom:40px}.about-wrap .changelog.point-releases h3{padding-top:35px}.about-wrap .changelog.point-releases h3:first-child{padding-top:7px}.about-wrap .changelog.feature-section .col{margin-top:40px}.about-wrap .lead-description{font-size:1.5em;text-align:center}.about-wrap .feature-section p{margin-top:.6em}.about-wrap .headline-feature{margin:0 auto 40px;max-width:680px}.about-wrap .headline-feature h2{margin:50px 0 0}.about-wrap .headline-feature img{max-width:600px;width:100%}.about-wrap .return-to-dashboard{margin:30px -5px 0 0;font-size:14px;font-weight:600}.about-wrap .return-to-dashboard a{text-decoration:none;padding:0 5px}.about-wrap h2.wp-people-group{margin:2.6em 0 1.33em;padding:0;font-size:16px;line-height:inherit;font-weight:600;text-align:right}.about-wrap .wp-people-group{padding:0 5px;margin:0 -5px 0 -15px}.about-wrap .compact{margin-bottom:0}.about-wrap .wp-person{display:inline-block;vertical-align:top;margin-left:10px;padding-bottom:15px;height:70px;width:280px}.about-wrap .compact .wp-person{height:auto;width:180px;padding-bottom:0;margin-bottom:0}.about-wrap .wp-person .gravatar{float:right;margin:0 0 10px 10px;padding:1px;width:60px;height:60px}.about-wrap .compact .wp-person .gravatar{width:30px;height:30px}.about-wrap .wp-person .web{margin:6px 0 2px;font-size:16px;font-weight:400;line-height:2;text-decoration:none}.about-wrap .wp-person .title{display:block}.about-wrap #wp-people-group-validators+p.wp-credits-list{margin-top:0}.about-wrap p.wp-credits-list a{white-space:nowrap}.freedoms-php .about-wrap ol{margin:40px 60px}.freedoms-php .about-wrap ol li{list-style-type:decimal;font-weight:600}.freedoms-php .about-wrap ol p{font-weight:400;margin:.6em 0}@media screen and (max-width:782px){.about-wrap .has-3-columns,.about-wrap .has-4-columns{grid-template-columns:1fr 1fr}.about-wrap .has-3-columns .column:nth-of-type(3n+1),.about-wrap .has-4-columns .column:nth-of-type(4n+1){grid-column-start:1;grid-row-start:1}.about-wrap .has-3-columns .column:nth-of-type(3n+2),.about-wrap .has-4-columns .column:nth-of-type(4n+2){grid-column-start:2;grid-row-start:1}.about-wrap .has-3-columns .column:nth-of-type(3n),.about-wrap .has-4-columns .column:nth-of-type(4n+3){grid-column-start:1;grid-row-start:2}.about-wrap .has-4-columns .column:nth-of-type(4n){grid-column-start:2;grid-row-start:2}}@media screen and (max-width:600px){.about-wrap .has-2-columns,.about-wrap .has-3-columns,.about-wrap .has-4-columns{display:block}.about-wrap :not(.is-wider-right):not(.is-wider-left) .column{margin-left:0;margin-right:0}.about-wrap .has-2-columns.is-wider-left,.about-wrap .has-2-columns.is-wider-right{display:grid}}@media only screen and (max-width:500px){.about-wrap{margin-left:20px;margin-right:10px}.about-wrap .about-text,.about-wrap h1{margin-left:0}.about-wrap .about-text{margin-bottom:.25em}.about-wrap .wp-badge{position:relative;margin-bottom:1.5em;width:100%}}@media only screen and (max-width:480px){.about-wrap .has-2-columns.is-wider-left,.about-wrap .has-2-columns.is-wider-right{display:block}.about-wrap .column{margin-left:0;margin-right:0}.about-wrap .has-2-columns.is-wider-left img,.about-wrap .has-2-columns.is-wider-right img{max-width:160px}} \ No newline at end of file
diff --git a/wp-admin/css/about.css b/wp-admin/css/about.css
index 20a420e..1db712d 100644
--- a/wp-admin/css/about.css
+++ b/wp-admin/css/about.css
@@ -340,7 +340,8 @@
}
@media screen and (max-width: 480px) {
- .about__section.is-feature .column {
+ .about__section.is-feature .column,
+ .about__section .is-section-header {
padding: 0;
}
@@ -378,7 +379,7 @@
.about__container h2,
.about__container h3.is-larger-heading {
margin-top: 0;
- margin-bottom: 0.5em;
+ margin-bottom: calc(0.5 * var(--gap));
font-size: 2rem;
font-weight: 700;
line-height: 1.16;
@@ -388,6 +389,7 @@
.about__container h1.is-smaller-heading,
.about__container h2.is-smaller-heading {
margin-top: 0;
+ margin-bottom: calc(0.5 * var(--gap));
font-size: 1.625rem;
font-weight: 700;
line-height: 1.4;
@@ -447,6 +449,10 @@
text-decoration: underline;
}
+.about__section a.button.button-hero {
+ font-size: 1.5rem;
+}
+
.about__container ul {
list-style: disc;
margin-left: calc(var(--gap) / 2);
@@ -488,7 +494,7 @@
}
.about__container .about__image + h3 {
- margin-top: 1.5em;
+ margin-top: calc(0.75 * var(--gap));
}
.about__container hr {
@@ -507,6 +513,10 @@
margin: var(--gap) auto;
}
+.about__container hr.is-invisible {
+ border: none;
+}
+
.about__container div.updated,
.about__container div.error,
.about__container .notice {
@@ -585,7 +595,7 @@
.privacy-php .about__header-title h1,
.contribute-php .about__header-title h1 {
/* Fluid font size scales on browser size 960px - 1200px. */
- font-size: clamp(2rem, 10vw - 3rem, 4rem);
+ font-size: clamp(2rem, 20vw - 9rem, 4rem);
}
.about__header-text {
@@ -655,7 +665,7 @@
.privacy-php .about__header-title h1,
.contribute-php .about__header-title h1 {
/* Fluid font size scales on browser size 600px - 960px. */
- font-size: clamp(3rem, 6.67vw - 0.5rem, 4.5rem);
+ font-size: clamp(2rem, 20vw - 9rem, 4rem);
}
.about__header-navigation .nav-tab {
@@ -1280,24 +1290,6 @@
margin: 0.6em 0;
}
-.freedoms-php .column .freedoms-image {
- background-image: url('../images/freedoms.png');
- background-size: 100%;
- padding-top: 100%;
-}
-
-.freedoms-php .column:nth-of-type(2) .freedoms-image {
- background-position: 0 34%;
-}
-
-.freedoms-php .column:nth-of-type(3) .freedoms-image {
- background-position: 0 66%;
-}
-
-.freedoms-php .column:nth-of-type(4) .freedoms-image {
- background-position: 0 100%;
-}
-
/*------------------------------------------------------------------------------
x.5.0 - Legacy About Styles: Media Queries
------------------------------------------------------------------------------*/
diff --git a/wp-admin/css/about.min.css b/wp-admin/css/about.min.css
index e3d8750..c4c97b8 100644
--- a/wp-admin/css/about.min.css
+++ b/wp-admin/css/about.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-.about__container{--background:#ededed;--subtle-background:#eef0fd;--text:#1e1e1e;--text-light:#fff;--accent-1:#3858e9;--accent-2:#3858e9;--accent-3:#ededed;--nav-background:#fff;--nav-border:transparent;--nav-color:var(--text);--nav-current:var(--accent-1);--border-radius:16px;--gap:2rem}.about-php,.contribute-php,.credits-php,.freedoms-php,.privacy-php{background:#fff}.about-php #wpcontent,.contribute-php #wpcontent,.credits-php #wpcontent,.freedoms-php #wpcontent,.privacy-php #wpcontent{background:#fff;padding:0 24px}@media screen and (max-width:782px){.about-php.auto-fold #wpcontent,.contribute-php.auto-fold #wpcontent,.credits-php.auto-fold #wpcontent,.freedoms-php.auto-fold #wpcontent,.privacy-php.auto-fold #wpcontent{padding-left:24px}}.about__container{max-width:1000px;margin:24px auto;clear:both}.about__container .alignleft{float:left}.about__container .alignright{float:right}.about__container .aligncenter{text-align:center}.about__container .is-vertically-aligned-top{align-self:start}.about__container .is-vertically-aligned-center{align-self:center}.about__container .is-vertically-aligned-bottom{align-self:end}.about__section{background:0 0;clear:both}.about__container .has-accent-background-color{color:var(--text-light);background-color:var(--accent-2)}.about__container .has-transparent-background-color{background-color:transparent}.about__container .has-accent-color{color:var(--accent-2)}.about__container .has-border{border:3px solid currentColor}.about__container .has-subtle-background-color{background-color:var(--subtle-background)}.about__container .has-background-image{background-size:contain;background-repeat:no-repeat;background-position:center}.about__section{margin:0}.about__section .column:not(.is-edge-to-edge){padding:var(--gap)}.about__section+.about__section .is-section-header{padding-bottom:var(--gap)}.about__section .column.has-border:not(.is-edge-to-edge),.about__section .column[class*=background-color]:not(.is-edge-to-edge),.about__section:where([class*=background-color]) .column:not(.is-edge-to-edge){padding-top:var(--gap);padding-bottom:var(--gap)}.about__section .column p:first-of-type{margin-top:0}.about__section .column p:last-of-type{margin-bottom:0}.about__section .has-text-columns{columns:2;column-gap:calc(var(--gap) * 2)}.about__section .is-section-header{margin-bottom:0;padding:var(--gap) var(--gap) 0}.about__section .is-section-header p:last-child{margin-bottom:0}.about__section .is-section-header:first-child:last-child{padding:0}.about__section.is-feature{padding:var(--gap)}.about__section.is-feature p{margin:0}.about__section.is-feature p+p{margin-top:calc(var(--gap)/ 2)}.about__section.has-1-column{margin-left:auto;margin-right:auto;max-width:36em}.about__section.has-2-columns,.about__section.has-3-columns,.about__section.has-4-columns,.about__section.has-overlap-style{display:grid}.about__section.has-gutters{gap:var(--gap);margin-bottom:var(--gap)}.about__section.has-2-columns{grid-template-columns:1fr 1fr}.about__section.has-2-columns.is-wider-right{grid-template-columns:2fr 3fr}.about__section.has-2-columns.is-wider-left{grid-template-columns:3fr 2fr}.about__section .is-section-header{grid-column-start:1;grid-column-end:-1}.about__section.has-3-columns{grid-template-columns:repeat(3,1fr)}.about__section.has-4-columns{grid-template-columns:repeat(4,1fr)}.about__section.has-overlap-style{grid-template-columns:repeat(7,1fr)}.about__section.has-overlap-style .column{grid-row-start:1}.about__section.has-overlap-style .column:nth-of-type(odd){grid-column-start:2;grid-column-end:span 3}.about__section.has-overlap-style .column:nth-of-type(2n){grid-column-start:4;grid-column-end:span 3}.about__section.has-overlap-style .column.is-top-layer{z-index:1}@media screen and (max-width:782px){.about__section.has-2-columns.is-wider-left,.about__section.has-2-columns.is-wider-right,.about__section.has-3-columns{display:block;margin-bottom:calc(var(--gap)/ 2)}.about__section .column:not(.is-edge-to-edge){padding-top:var(--gap);padding-bottom:var(--gap)}.about__section.has-2-columns.has-gutters.is-wider-left,.about__section.has-2-columns.has-gutters.is-wider-right,.about__section.has-3-columns.has-gutters{margin-bottom:calc(var(--gap) * 2)}.about__section.has-2-columns.has-gutters .column,.about__section.has-3-columns.has-gutters .column{margin-bottom:var(--gap)}.about__section.has-2-columns.has-gutters .column:last-child,.about__section.has-3-columns.has-gutters .column:last-child{margin-bottom:0}.about__section.has-3-columns .column:nth-of-type(n){padding-top:calc(var(--gap)/ 2);padding-bottom:calc(var(--gap)/ 2)}.about__section.has-4-columns{grid-template-columns:repeat(2,1fr)}.about__section.has-overlap-style{grid-template-columns:1fr}.about__section.has-overlap-style .column.column{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}}@media screen and (max-width:600px){.about__section.has-2-columns{display:block;margin-bottom:var(--gap)}.about__section.has-2-columns:not(.has-gutters) .column:nth-of-type(n){padding-top:calc(var(--gap)/ 2);padding-bottom:calc(var(--gap)/ 2)}.about__section.has-2-columns.has-gutters{margin-bottom:calc(var(--gap) * 2)}.about__section.has-2-columns.has-gutters .column{margin-bottom:var(--gap)}.about__section.has-2-columns.has-gutters .column:last-child{margin-bottom:0}}@media screen and (max-width:480px){.about__section.is-feature .column{padding:0}.about__section.has-4-columns{display:block;padding-bottom:calc(var(--gap)/ 2)}.about__section.has-4-columns.has-gutters .column{margin-bottom:calc(var(--gap)/ 2)}.about__section.has-4-columns.has-gutters .column:last-child{margin-bottom:0}.about__section.has-4-columns .column:nth-of-type(n){padding-top:calc(var(--gap)/ 2);padding-bottom:calc(var(--gap)/ 2)}}.about__container{line-height:1.4;color:var(--text)}.about__container h1{padding:0}.about__container h1,.about__container h2,.about__container h3.is-larger-heading{margin-top:0;margin-bottom:.5em;font-size:2rem;font-weight:700;line-height:1.16}.about__container h1.is-smaller-heading,.about__container h2.is-smaller-heading,.about__container h3{margin-top:0;font-size:1.625rem;font-weight:700;line-height:1.4}.about__container h3.is-smaller-heading,.about__container h4{margin-top:0;font-size:1.125rem;font-weight:600;line-height:1.6}.about__container h1,.about__container h2,.about__container h3,.about__container h4{text-wrap:balance;color:inherit}.about__container p{text-wrap:pretty}.about__container p{font-size:inherit;line-height:inherit}.about__container p.is-subheading{margin-top:0;font-size:1.5rem;font-weight:300;line-height:160%}.about__section a{color:var(--accent-1);text-decoration:underline}.about__section a:active,.about__section a:focus,.about__section a:hover{color:var(--accent-1);text-decoration:none}.wp-credits-list a{text-decoration:none}.wp-credits-list a:active,.wp-credits-list a:focus,.wp-credits-list a:hover{text-decoration:underline}.about__container ul{list-style:disc;margin-left:calc(var(--gap)/ 2)}.about__container li{margin-bottom:.5rem}.about__container img{margin:0;max-width:100%;vertical-align:middle}.about__container .about__image{margin:0}.about__container .about__image img{max-width:100%;width:100%;height:auto;border-radius:var(--border-radius)}.about__container .about__image figcaption{margin-top:.5em;text-align:center}.about__container .about__image .wp-video{margin-left:auto;margin-right:auto}.about__container .about__image svg{vertical-align:middle}.about__container .about__image+h3{margin-top:1.5em}.about__container hr{margin:calc(var(--gap)/ 2) var(--gap);height:0;border:none;border-top:4px solid var(--accent-3)}.about__container hr.is-small{margin-top:0;margin-bottom:0}.about__container hr.is-large{margin:var(--gap) auto}.about__container .notice,.about__container div.error,.about__container div.updated{display:none!important}.about__container code{font-size:inherit}.about__section{font-size:1.125rem;line-height:1.55}.about__section.is-feature{font-size:1.6em}.about__section.has-3-columns,.about__section.has-4-columns{font-size:1rem}@media screen and (max-width:480px){.about__section.is-feature{font-size:1.4em}.about__container h1,.about__container h2,.about__container h3.is-larger-heading{font-size:2em}}.about__header{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;box-sizing:border-box;padding:calc(var(--gap) * 1.5);min-height:clamp(10rem,25vw,18.75rem);border-radius:var(--border-radius);background-repeat:no-repeat;background-position:right 7% center,top left;background-color:var(--background)}.about__header-image{margin:0 var(--gap) 3em}.about__header-title{box-sizing:border-box;margin:0;padding:0}.about__header-title h1{margin:0;padding:0;font-size:clamp(2rem, 20vw - 9rem, 4rem);line-height:1;font-weight:600}.about-php .about__header-title h1,.contribute-php .about__header-title h1,.credits-php .about__header-title h1,.freedoms-php .about__header-title h1,.privacy-php .about__header-title h1{font-size:clamp(2rem, 10vw - 3rem, 4rem)}.about__header-text{box-sizing:border-box;max-width:26em;margin:1rem 0 0;padding:0;font-size:1.6rem;line-height:1.15}.about__header-navigation{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:space-between;padding-top:0;margin-bottom:var(--gap);background:var(--nav-background);color:var(--nav-color);border-bottom:3px solid var(--nav-border)}.about__header-navigation::after{display:none}.about__header-navigation .nav-tab{margin-left:0;padding:calc(var(--gap) * .75) var(--gap);float:none;font-size:1.4em;line-height:1;border-width:0 0 3px;border-style:solid;border-color:transparent;background:0 0;color:inherit}.about__header-navigation .nav-tab:active,.about__header-navigation .nav-tab:hover{background-color:var(--nav-current);color:var(--text-light)}.about__header-navigation .nav-tab-active{margin-bottom:-3px;color:var(--nav-current);border-width:0 0 6px;border-color:var(--nav-current)}.about__header-navigation .nav-tab-active:active,.about__header-navigation .nav-tab-active:hover{background-color:var(--nav-current);color:var(--text-light);border-color:var(--nav-current)}@media screen and (max-width:960px){.about-php .about__header-title h1,.contribute-php .about__header-title h1,.credits-php .about__header-title h1,.freedoms-php .about__header-title h1,.privacy-php .about__header-title h1{font-size:clamp(3rem, 6.67vw - .5rem, 4.5rem)}.about__header-navigation .nav-tab{padding:calc(var(--gap) * .75) calc(var(--gap) * .5)}}@media screen and (max-width:782px){.about__container .about__header-text{font-size:1.4em}.about__header-container{display:block}.about__header{padding:var(--gap)}.about__header-text{margin-top:.5rem}.about__header-navigation .nav-tab{margin-top:0;margin-right:0;font-size:1.2em}}@media screen and (max-width:600px){.about__header{min-height:auto}.about__header,.contribute-php .about__header,.credits-php .about__header,.freedoms-php .about__header,.privacy-php .about__header{background-image:none}.about__header-navigation{display:block}.about__header-navigation .nav-tab{display:block;margin-bottom:0;padding:calc(var(--gap)/ 2);border-left-width:6px;border-bottom:none}.about__header-navigation .nav-tab-active{border-bottom:none;border-left-width:6px}}.about__section .wp-people-group-title{margin-bottom:calc(var(--gap) * 2 - 10px);text-align:center}.about__section .wp-people-group{margin:0;display:flex;flex-wrap:wrap}.about__section .wp-person{display:inline-block;vertical-align:top;box-sizing:border-box;margin-bottom:calc(var(--gap) - 10px);width:25%;text-align:center}.about__section .compact .wp-person{height:auto;width:20%}.about__section .wp-person-avatar{display:block;margin:0 auto calc(var(--gap)/ 2);width:140px;height:140px;border-radius:100%;overflow:hidden}.about__section .wp-person .gravatar{width:140px;height:140px;filter:grayscale(100%)}.about__section .compact .wp-person .gravatar,.about__section .compact .wp-person-avatar{width:80px;height:80px}.about__section .wp-person .web{display:block;font-size:1.4em;font-weight:600;padding:10px 10px 0;text-decoration:none}.about__section .wp-person .web:hover{text-decoration:underline}.about__section .compact .wp-person .web{font-size:1.2em}.about__section .wp-person .title{display:block;margin-top:.5em}@media screen and (max-width:782px){.about__section .wp-person{width:33%}.about__section .compact .wp-person{width:25%}.about__section .wp-person .gravatar,.about__section .wp-person-avatar{width:120px;height:120px}}@media screen and (max-width:600px){.about__section .wp-person{width:50%}.about__section .compact .wp-person{width:33%}.about__section .wp-person .web{font-size:1.2em}}@media screen and (max-width:480px){.about__section .wp-person{min-width:100%}.about__section .wp-person .web{font-size:1em}.about__section .compact .wp-person .web{font-size:1em}}.about__section .column .freedom-image{margin-bottom:var(--gap);max-height:180px}.about__section .column .privacy-image{display:block;margin-left:auto;margin-right:auto;max-width:25rem}.about-wrap{position:relative;margin:25px 40px 0 20px;max-width:1050px;font-size:15px}.about-wrap.full-width-layout{max-width:1200px}.about-wrap-content{max-width:1050px}.about-wrap .notice,.about-wrap div.error,.about-wrap div.updated{display:none!important}.about-wrap hr{border:0;height:0;margin:3em 0 0;border-top:1px solid rgba(0,0,0,.1)}.about-wrap img{margin:0;width:100%;height:auto;vertical-align:middle}.about-wrap .inline-svg img{max-width:100%;width:auto;height:auto}.about-wrap video{margin:1.5em auto}.wp-badge{background:#0073aa url(../images/w-logo-white.png?ver=20160308) no-repeat;background-position:center 25px;background-size:80px 80px;color:#fff;font-size:14px;text-align:center;font-weight:600;margin:5px 0 0;padding-top:120px;height:40px;display:inline-block;width:140px;text-rendering:optimizeLegibility;box-shadow:0 1px 3px rgba(0,0,0,.2)}.svg .wp-badge{background-image:url(../images/wordpress-logo-white.svg?ver=20160308)}.about-wrap .wp-badge{position:absolute;top:0;right:0}.about-wrap .nav-tab{padding-right:15px;padding-left:15px;font-size:18px;line-height:1.33333333}.about-wrap h1{margin:.2em 200px 0 0;padding:0;color:#32373c;line-height:1.2;font-size:2.8em;font-weight:400}.about-wrap h2{margin:40px 0 .6em;font-size:2.7em;line-height:1.3;font-weight:300;text-align:center}.about-wrap h3{margin:1.25em 0 .6em;font-size:1.4em;line-height:1.5}.about-wrap h4{font-size:16px;color:#23282d}.about-wrap p{line-height:1.5;font-size:16px}.about-wrap code,.about-wrap ol li p{font-size:14px;font-weight:400}.about-wrap figcaption{font-size:13px;text-align:center;color:#fff;text-overflow:ellipsis}.about-wrap .about-description,.about-wrap .about-text{margin-top:1.4em;font-weight:400;line-height:1.6;font-size:19px}.about-wrap .about-text{margin:1em 200px 1em 0;color:#555d66}.about-wrap .has-1-columns,.about-wrap .has-2-columns,.about-wrap .has-3-columns,.about-wrap .has-4-columns{display:grid;max-width:800px;margin-top:40px;margin-left:auto;margin-right:auto}.about-wrap .column{margin-right:20px;margin-left:20px}.about-wrap .is-wide{max-width:760px}.about-wrap .is-fullwidth{max-width:100%}.about-wrap .has-1-columns{display:block;max-width:680px;margin:0 auto 40px}.about-wrap .has-2-columns{grid-template-columns:1fr 1fr}.about-wrap .has-2-columns .column:nth-of-type(odd){grid-column-start:1}.about-wrap .has-2-columns .column:nth-of-type(2n){grid-column-start:2}.about-wrap .has-2-columns.is-wider-right{grid-template-columns:1fr 2fr}.about-wrap .has-2-columns.is-wider-left{grid-template-columns:2fr 1fr}.about-wrap .has-3-columns{grid-template-columns:repeat(3,1fr)}.about-wrap .has-3-columns .column:nth-of-type(3n+1){grid-column-start:1}.about-wrap .has-3-columns .column:nth-of-type(3n+2){grid-column-start:2}.about-wrap .has-3-columns .column:nth-of-type(3n){grid-column-start:3}.about-wrap .has-4-columns{grid-template-columns:repeat(4,1fr)}.about-wrap .has-4-columns .column:nth-of-type(4n+1){grid-column-start:1}.about-wrap .has-4-columns .column:nth-of-type(4n+2){grid-column-start:2}.about-wrap .has-4-columns .column:nth-of-type(4n+3){grid-column-start:3}.about-wrap .has-4-columns .column:nth-of-type(4n){grid-column-start:4}.about-wrap .column :first-child{margin-top:0}.about-wrap .aligncenter{text-align:center}.about-wrap .alignleft{float:left;margin-right:40px}.about-wrap .alignright{float:right;margin-left:40px}.about-wrap .is-vertically-aligned-top{align-self:flex-start}.about-wrap .is-vertically-aligned-center{align-self:center}.about-wrap .is-vertically-aligned-bottom{align-self:end}.about-wrap .point-releases{margin-top:5px;border-bottom:1px solid #ddd}.about-wrap .changelog{margin-bottom:40px}.about-wrap .changelog.point-releases h3{padding-top:35px}.about-wrap .changelog.point-releases h3:first-child{padding-top:7px}.about-wrap .changelog.feature-section .col{margin-top:40px}.about-wrap .lead-description{font-size:1.5em;text-align:center}.about-wrap .feature-section p{margin-top:.6em}.about-wrap .headline-feature{margin:0 auto 40px;max-width:680px}.about-wrap .headline-feature h2{margin:50px 0 0}.about-wrap .headline-feature img{max-width:600px;width:100%}.about-wrap .return-to-dashboard{margin:30px 0 0 -5px;font-size:14px;font-weight:600}.about-wrap .return-to-dashboard a{text-decoration:none;padding:0 5px}.about-wrap h2.wp-people-group{margin:2.6em 0 1.33em;padding:0;font-size:16px;line-height:inherit;font-weight:600;text-align:left}.about-wrap .wp-people-group{padding:0 5px;margin:0 -15px 0 -5px}.about-wrap .compact{margin-bottom:0}.about-wrap .wp-person{display:inline-block;vertical-align:top;margin-right:10px;padding-bottom:15px;height:70px;width:280px}.about-wrap .compact .wp-person{height:auto;width:180px;padding-bottom:0;margin-bottom:0}.about-wrap .wp-person .gravatar{float:left;margin:0 10px 10px 0;padding:1px;width:60px;height:60px}.about-wrap .compact .wp-person .gravatar{width:30px;height:30px}.about-wrap .wp-person .web{margin:6px 0 2px;font-size:16px;font-weight:400;line-height:2;text-decoration:none}.about-wrap .wp-person .title{display:block}.about-wrap #wp-people-group-validators+p.wp-credits-list{margin-top:0}.about-wrap p.wp-credits-list a{white-space:nowrap}.freedoms-php .about-wrap ol{margin:40px 60px}.freedoms-php .about-wrap ol li{list-style-type:decimal;font-weight:600}.freedoms-php .about-wrap ol p{font-weight:400;margin:.6em 0}.freedoms-php .column .freedoms-image{background-image:url('../images/freedoms.png');background-size:100%;padding-top:100%}.freedoms-php .column:nth-of-type(2) .freedoms-image{background-position:0 34%}.freedoms-php .column:nth-of-type(3) .freedoms-image{background-position:0 66%}.freedoms-php .column:nth-of-type(4) .freedoms-image{background-position:0 100%}@media screen and (max-width:782px){.about-wrap .has-3-columns,.about-wrap .has-4-columns{grid-template-columns:1fr 1fr}.about-wrap .has-3-columns .column:nth-of-type(3n+1),.about-wrap .has-4-columns .column:nth-of-type(4n+1){grid-column-start:1;grid-row-start:1}.about-wrap .has-3-columns .column:nth-of-type(3n+2),.about-wrap .has-4-columns .column:nth-of-type(4n+2){grid-column-start:2;grid-row-start:1}.about-wrap .has-3-columns .column:nth-of-type(3n),.about-wrap .has-4-columns .column:nth-of-type(4n+3){grid-column-start:1;grid-row-start:2}.about-wrap .has-4-columns .column:nth-of-type(4n){grid-column-start:2;grid-row-start:2}}@media screen and (max-width:600px){.about-wrap .has-2-columns,.about-wrap .has-3-columns,.about-wrap .has-4-columns{display:block}.about-wrap :not(.is-wider-right):not(.is-wider-left) .column{margin-right:0;margin-left:0}.about-wrap .has-2-columns.is-wider-left,.about-wrap .has-2-columns.is-wider-right{display:grid}}@media only screen and (max-width:500px){.about-wrap{margin-right:20px;margin-left:10px}.about-wrap .about-text,.about-wrap h1{margin-right:0}.about-wrap .about-text{margin-bottom:.25em}.about-wrap .wp-badge{position:relative;margin-bottom:1.5em;width:100%}}@media only screen and (max-width:480px){.about-wrap .has-2-columns.is-wider-left,.about-wrap .has-2-columns.is-wider-right{display:block}.about-wrap .column{margin-right:0;margin-left:0}.about-wrap .has-2-columns.is-wider-left img,.about-wrap .has-2-columns.is-wider-right img{max-width:160px}} \ No newline at end of file
+.about__container{--background:#ededed;--subtle-background:#eef0fd;--text:#1e1e1e;--text-light:#fff;--accent-1:#3858e9;--accent-2:#3858e9;--accent-3:#ededed;--nav-background:#fff;--nav-border:transparent;--nav-color:var(--text);--nav-current:var(--accent-1);--border-radius:16px;--gap:2rem}.about-php,.contribute-php,.credits-php,.freedoms-php,.privacy-php{background:#fff}.about-php #wpcontent,.contribute-php #wpcontent,.credits-php #wpcontent,.freedoms-php #wpcontent,.privacy-php #wpcontent{background:#fff;padding:0 24px}@media screen and (max-width:782px){.about-php.auto-fold #wpcontent,.contribute-php.auto-fold #wpcontent,.credits-php.auto-fold #wpcontent,.freedoms-php.auto-fold #wpcontent,.privacy-php.auto-fold #wpcontent{padding-left:24px}}.about__container{max-width:1000px;margin:24px auto;clear:both}.about__container .alignleft{float:left}.about__container .alignright{float:right}.about__container .aligncenter{text-align:center}.about__container .is-vertically-aligned-top{align-self:start}.about__container .is-vertically-aligned-center{align-self:center}.about__container .is-vertically-aligned-bottom{align-self:end}.about__section{background:0 0;clear:both}.about__container .has-accent-background-color{color:var(--text-light);background-color:var(--accent-2)}.about__container .has-transparent-background-color{background-color:transparent}.about__container .has-accent-color{color:var(--accent-2)}.about__container .has-border{border:3px solid currentColor}.about__container .has-subtle-background-color{background-color:var(--subtle-background)}.about__container .has-background-image{background-size:contain;background-repeat:no-repeat;background-position:center}.about__section{margin:0}.about__section .column:not(.is-edge-to-edge){padding:var(--gap)}.about__section+.about__section .is-section-header{padding-bottom:var(--gap)}.about__section .column.has-border:not(.is-edge-to-edge),.about__section .column[class*=background-color]:not(.is-edge-to-edge),.about__section:where([class*=background-color]) .column:not(.is-edge-to-edge){padding-top:var(--gap);padding-bottom:var(--gap)}.about__section .column p:first-of-type{margin-top:0}.about__section .column p:last-of-type{margin-bottom:0}.about__section .has-text-columns{columns:2;column-gap:calc(var(--gap) * 2)}.about__section .is-section-header{margin-bottom:0;padding:var(--gap) var(--gap) 0}.about__section .is-section-header p:last-child{margin-bottom:0}.about__section .is-section-header:first-child:last-child{padding:0}.about__section.is-feature{padding:var(--gap)}.about__section.is-feature p{margin:0}.about__section.is-feature p+p{margin-top:calc(var(--gap)/ 2)}.about__section.has-1-column{margin-left:auto;margin-right:auto;max-width:36em}.about__section.has-2-columns,.about__section.has-3-columns,.about__section.has-4-columns,.about__section.has-overlap-style{display:grid}.about__section.has-gutters{gap:var(--gap);margin-bottom:var(--gap)}.about__section.has-2-columns{grid-template-columns:1fr 1fr}.about__section.has-2-columns.is-wider-right{grid-template-columns:2fr 3fr}.about__section.has-2-columns.is-wider-left{grid-template-columns:3fr 2fr}.about__section .is-section-header{grid-column-start:1;grid-column-end:-1}.about__section.has-3-columns{grid-template-columns:repeat(3,1fr)}.about__section.has-4-columns{grid-template-columns:repeat(4,1fr)}.about__section.has-overlap-style{grid-template-columns:repeat(7,1fr)}.about__section.has-overlap-style .column{grid-row-start:1}.about__section.has-overlap-style .column:nth-of-type(odd){grid-column-start:2;grid-column-end:span 3}.about__section.has-overlap-style .column:nth-of-type(2n){grid-column-start:4;grid-column-end:span 3}.about__section.has-overlap-style .column.is-top-layer{z-index:1}@media screen and (max-width:782px){.about__section.has-2-columns.is-wider-left,.about__section.has-2-columns.is-wider-right,.about__section.has-3-columns{display:block;margin-bottom:calc(var(--gap)/ 2)}.about__section .column:not(.is-edge-to-edge){padding-top:var(--gap);padding-bottom:var(--gap)}.about__section.has-2-columns.has-gutters.is-wider-left,.about__section.has-2-columns.has-gutters.is-wider-right,.about__section.has-3-columns.has-gutters{margin-bottom:calc(var(--gap) * 2)}.about__section.has-2-columns.has-gutters .column,.about__section.has-3-columns.has-gutters .column{margin-bottom:var(--gap)}.about__section.has-2-columns.has-gutters .column:last-child,.about__section.has-3-columns.has-gutters .column:last-child{margin-bottom:0}.about__section.has-3-columns .column:nth-of-type(n){padding-top:calc(var(--gap)/ 2);padding-bottom:calc(var(--gap)/ 2)}.about__section.has-4-columns{grid-template-columns:repeat(2,1fr)}.about__section.has-overlap-style{grid-template-columns:1fr}.about__section.has-overlap-style .column.column{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}}@media screen and (max-width:600px){.about__section.has-2-columns{display:block;margin-bottom:var(--gap)}.about__section.has-2-columns:not(.has-gutters) .column:nth-of-type(n){padding-top:calc(var(--gap)/ 2);padding-bottom:calc(var(--gap)/ 2)}.about__section.has-2-columns.has-gutters{margin-bottom:calc(var(--gap) * 2)}.about__section.has-2-columns.has-gutters .column{margin-bottom:var(--gap)}.about__section.has-2-columns.has-gutters .column:last-child{margin-bottom:0}}@media screen and (max-width:480px){.about__section .is-section-header,.about__section.is-feature .column{padding:0}.about__section.has-4-columns{display:block;padding-bottom:calc(var(--gap)/ 2)}.about__section.has-4-columns.has-gutters .column{margin-bottom:calc(var(--gap)/ 2)}.about__section.has-4-columns.has-gutters .column:last-child{margin-bottom:0}.about__section.has-4-columns .column:nth-of-type(n){padding-top:calc(var(--gap)/ 2);padding-bottom:calc(var(--gap)/ 2)}}.about__container{line-height:1.4;color:var(--text)}.about__container h1{padding:0}.about__container h1,.about__container h2,.about__container h3.is-larger-heading{margin-top:0;margin-bottom:calc(.5 * var(--gap));font-size:2rem;font-weight:700;line-height:1.16}.about__container h1.is-smaller-heading,.about__container h2.is-smaller-heading,.about__container h3{margin-top:0;margin-bottom:calc(.5 * var(--gap));font-size:1.625rem;font-weight:700;line-height:1.4}.about__container h3.is-smaller-heading,.about__container h4{margin-top:0;font-size:1.125rem;font-weight:600;line-height:1.6}.about__container h1,.about__container h2,.about__container h3,.about__container h4{text-wrap:balance;color:inherit}.about__container p{text-wrap:pretty}.about__container p{font-size:inherit;line-height:inherit}.about__container p.is-subheading{margin-top:0;font-size:1.5rem;font-weight:300;line-height:160%}.about__section a{color:var(--accent-1);text-decoration:underline}.about__section a:active,.about__section a:focus,.about__section a:hover{color:var(--accent-1);text-decoration:none}.wp-credits-list a{text-decoration:none}.wp-credits-list a:active,.wp-credits-list a:focus,.wp-credits-list a:hover{text-decoration:underline}.about__section a.button.button-hero{font-size:1.5rem}.about__container ul{list-style:disc;margin-left:calc(var(--gap)/ 2)}.about__container li{margin-bottom:.5rem}.about__container img{margin:0;max-width:100%;vertical-align:middle}.about__container .about__image{margin:0}.about__container .about__image img{max-width:100%;width:100%;height:auto;border-radius:var(--border-radius)}.about__container .about__image figcaption{margin-top:.5em;text-align:center}.about__container .about__image .wp-video{margin-left:auto;margin-right:auto}.about__container .about__image svg{vertical-align:middle}.about__container .about__image+h3{margin-top:calc(.75 * var(--gap))}.about__container hr{margin:calc(var(--gap)/ 2) var(--gap);height:0;border:none;border-top:4px solid var(--accent-3)}.about__container hr.is-small{margin-top:0;margin-bottom:0}.about__container hr.is-large{margin:var(--gap) auto}.about__container hr.is-invisible{border:none}.about__container .notice,.about__container div.error,.about__container div.updated{display:none!important}.about__container code{font-size:inherit}.about__section{font-size:1.125rem;line-height:1.55}.about__section.is-feature{font-size:1.6em}.about__section.has-3-columns,.about__section.has-4-columns{font-size:1rem}@media screen and (max-width:480px){.about__section.is-feature{font-size:1.4em}.about__container h1,.about__container h2,.about__container h3.is-larger-heading{font-size:2em}}.about__header{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;box-sizing:border-box;padding:calc(var(--gap) * 1.5);min-height:clamp(10rem,25vw,18.75rem);border-radius:var(--border-radius);background-repeat:no-repeat;background-position:right 7% center,top left;background-color:var(--background)}.about__header-image{margin:0 var(--gap) 3em}.about__header-title{box-sizing:border-box;margin:0;padding:0}.about__header-title h1{margin:0;padding:0;font-size:clamp(2rem, 20vw - 9rem, 4rem);line-height:1;font-weight:600}.about-php .about__header-title h1,.contribute-php .about__header-title h1,.credits-php .about__header-title h1,.freedoms-php .about__header-title h1,.privacy-php .about__header-title h1{font-size:clamp(2rem, 20vw - 9rem, 4rem)}.about__header-text{box-sizing:border-box;max-width:26em;margin:1rem 0 0;padding:0;font-size:1.6rem;line-height:1.15}.about__header-navigation{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:space-between;padding-top:0;margin-bottom:var(--gap);background:var(--nav-background);color:var(--nav-color);border-bottom:3px solid var(--nav-border)}.about__header-navigation::after{display:none}.about__header-navigation .nav-tab{margin-left:0;padding:calc(var(--gap) * .75) var(--gap);float:none;font-size:1.4em;line-height:1;border-width:0 0 3px;border-style:solid;border-color:transparent;background:0 0;color:inherit}.about__header-navigation .nav-tab:active,.about__header-navigation .nav-tab:hover{background-color:var(--nav-current);color:var(--text-light)}.about__header-navigation .nav-tab-active{margin-bottom:-3px;color:var(--nav-current);border-width:0 0 6px;border-color:var(--nav-current)}.about__header-navigation .nav-tab-active:active,.about__header-navigation .nav-tab-active:hover{background-color:var(--nav-current);color:var(--text-light);border-color:var(--nav-current)}@media screen and (max-width:960px){.about-php .about__header-title h1,.contribute-php .about__header-title h1,.credits-php .about__header-title h1,.freedoms-php .about__header-title h1,.privacy-php .about__header-title h1{font-size:clamp(2rem, 20vw - 9rem, 4rem)}.about__header-navigation .nav-tab{padding:calc(var(--gap) * .75) calc(var(--gap) * .5)}}@media screen and (max-width:782px){.about__container .about__header-text{font-size:1.4em}.about__header-container{display:block}.about__header{padding:var(--gap)}.about__header-text{margin-top:.5rem}.about__header-navigation .nav-tab{margin-top:0;margin-right:0;font-size:1.2em}}@media screen and (max-width:600px){.about__header{min-height:auto}.about__header,.contribute-php .about__header,.credits-php .about__header,.freedoms-php .about__header,.privacy-php .about__header{background-image:none}.about__header-navigation{display:block}.about__header-navigation .nav-tab{display:block;margin-bottom:0;padding:calc(var(--gap)/ 2);border-left-width:6px;border-bottom:none}.about__header-navigation .nav-tab-active{border-bottom:none;border-left-width:6px}}.about__section .wp-people-group-title{margin-bottom:calc(var(--gap) * 2 - 10px);text-align:center}.about__section .wp-people-group{margin:0;display:flex;flex-wrap:wrap}.about__section .wp-person{display:inline-block;vertical-align:top;box-sizing:border-box;margin-bottom:calc(var(--gap) - 10px);width:25%;text-align:center}.about__section .compact .wp-person{height:auto;width:20%}.about__section .wp-person-avatar{display:block;margin:0 auto calc(var(--gap)/ 2);width:140px;height:140px;border-radius:100%;overflow:hidden}.about__section .wp-person .gravatar{width:140px;height:140px;filter:grayscale(100%)}.about__section .compact .wp-person .gravatar,.about__section .compact .wp-person-avatar{width:80px;height:80px}.about__section .wp-person .web{display:block;font-size:1.4em;font-weight:600;padding:10px 10px 0;text-decoration:none}.about__section .wp-person .web:hover{text-decoration:underline}.about__section .compact .wp-person .web{font-size:1.2em}.about__section .wp-person .title{display:block;margin-top:.5em}@media screen and (max-width:782px){.about__section .wp-person{width:33%}.about__section .compact .wp-person{width:25%}.about__section .wp-person .gravatar,.about__section .wp-person-avatar{width:120px;height:120px}}@media screen and (max-width:600px){.about__section .wp-person{width:50%}.about__section .compact .wp-person{width:33%}.about__section .wp-person .web{font-size:1.2em}}@media screen and (max-width:480px){.about__section .wp-person{min-width:100%}.about__section .wp-person .web{font-size:1em}.about__section .compact .wp-person .web{font-size:1em}}.about__section .column .freedom-image{margin-bottom:var(--gap);max-height:180px}.about__section .column .privacy-image{display:block;margin-left:auto;margin-right:auto;max-width:25rem}.about-wrap{position:relative;margin:25px 40px 0 20px;max-width:1050px;font-size:15px}.about-wrap.full-width-layout{max-width:1200px}.about-wrap-content{max-width:1050px}.about-wrap .notice,.about-wrap div.error,.about-wrap div.updated{display:none!important}.about-wrap hr{border:0;height:0;margin:3em 0 0;border-top:1px solid rgba(0,0,0,.1)}.about-wrap img{margin:0;width:100%;height:auto;vertical-align:middle}.about-wrap .inline-svg img{max-width:100%;width:auto;height:auto}.about-wrap video{margin:1.5em auto}.wp-badge{background:#0073aa url(../images/w-logo-white.png?ver=20160308) no-repeat;background-position:center 25px;background-size:80px 80px;color:#fff;font-size:14px;text-align:center;font-weight:600;margin:5px 0 0;padding-top:120px;height:40px;display:inline-block;width:140px;text-rendering:optimizeLegibility;box-shadow:0 1px 3px rgba(0,0,0,.2)}.svg .wp-badge{background-image:url(../images/wordpress-logo-white.svg?ver=20160308)}.about-wrap .wp-badge{position:absolute;top:0;right:0}.about-wrap .nav-tab{padding-right:15px;padding-left:15px;font-size:18px;line-height:1.33333333}.about-wrap h1{margin:.2em 200px 0 0;padding:0;color:#32373c;line-height:1.2;font-size:2.8em;font-weight:400}.about-wrap h2{margin:40px 0 .6em;font-size:2.7em;line-height:1.3;font-weight:300;text-align:center}.about-wrap h3{margin:1.25em 0 .6em;font-size:1.4em;line-height:1.5}.about-wrap h4{font-size:16px;color:#23282d}.about-wrap p{line-height:1.5;font-size:16px}.about-wrap code,.about-wrap ol li p{font-size:14px;font-weight:400}.about-wrap figcaption{font-size:13px;text-align:center;color:#fff;text-overflow:ellipsis}.about-wrap .about-description,.about-wrap .about-text{margin-top:1.4em;font-weight:400;line-height:1.6;font-size:19px}.about-wrap .about-text{margin:1em 200px 1em 0;color:#555d66}.about-wrap .has-1-columns,.about-wrap .has-2-columns,.about-wrap .has-3-columns,.about-wrap .has-4-columns{display:grid;max-width:800px;margin-top:40px;margin-left:auto;margin-right:auto}.about-wrap .column{margin-right:20px;margin-left:20px}.about-wrap .is-wide{max-width:760px}.about-wrap .is-fullwidth{max-width:100%}.about-wrap .has-1-columns{display:block;max-width:680px;margin:0 auto 40px}.about-wrap .has-2-columns{grid-template-columns:1fr 1fr}.about-wrap .has-2-columns .column:nth-of-type(odd){grid-column-start:1}.about-wrap .has-2-columns .column:nth-of-type(2n){grid-column-start:2}.about-wrap .has-2-columns.is-wider-right{grid-template-columns:1fr 2fr}.about-wrap .has-2-columns.is-wider-left{grid-template-columns:2fr 1fr}.about-wrap .has-3-columns{grid-template-columns:repeat(3,1fr)}.about-wrap .has-3-columns .column:nth-of-type(3n+1){grid-column-start:1}.about-wrap .has-3-columns .column:nth-of-type(3n+2){grid-column-start:2}.about-wrap .has-3-columns .column:nth-of-type(3n){grid-column-start:3}.about-wrap .has-4-columns{grid-template-columns:repeat(4,1fr)}.about-wrap .has-4-columns .column:nth-of-type(4n+1){grid-column-start:1}.about-wrap .has-4-columns .column:nth-of-type(4n+2){grid-column-start:2}.about-wrap .has-4-columns .column:nth-of-type(4n+3){grid-column-start:3}.about-wrap .has-4-columns .column:nth-of-type(4n){grid-column-start:4}.about-wrap .column :first-child{margin-top:0}.about-wrap .aligncenter{text-align:center}.about-wrap .alignleft{float:left;margin-right:40px}.about-wrap .alignright{float:right;margin-left:40px}.about-wrap .is-vertically-aligned-top{align-self:flex-start}.about-wrap .is-vertically-aligned-center{align-self:center}.about-wrap .is-vertically-aligned-bottom{align-self:end}.about-wrap .point-releases{margin-top:5px;border-bottom:1px solid #ddd}.about-wrap .changelog{margin-bottom:40px}.about-wrap .changelog.point-releases h3{padding-top:35px}.about-wrap .changelog.point-releases h3:first-child{padding-top:7px}.about-wrap .changelog.feature-section .col{margin-top:40px}.about-wrap .lead-description{font-size:1.5em;text-align:center}.about-wrap .feature-section p{margin-top:.6em}.about-wrap .headline-feature{margin:0 auto 40px;max-width:680px}.about-wrap .headline-feature h2{margin:50px 0 0}.about-wrap .headline-feature img{max-width:600px;width:100%}.about-wrap .return-to-dashboard{margin:30px 0 0 -5px;font-size:14px;font-weight:600}.about-wrap .return-to-dashboard a{text-decoration:none;padding:0 5px}.about-wrap h2.wp-people-group{margin:2.6em 0 1.33em;padding:0;font-size:16px;line-height:inherit;font-weight:600;text-align:left}.about-wrap .wp-people-group{padding:0 5px;margin:0 -15px 0 -5px}.about-wrap .compact{margin-bottom:0}.about-wrap .wp-person{display:inline-block;vertical-align:top;margin-right:10px;padding-bottom:15px;height:70px;width:280px}.about-wrap .compact .wp-person{height:auto;width:180px;padding-bottom:0;margin-bottom:0}.about-wrap .wp-person .gravatar{float:left;margin:0 10px 10px 0;padding:1px;width:60px;height:60px}.about-wrap .compact .wp-person .gravatar{width:30px;height:30px}.about-wrap .wp-person .web{margin:6px 0 2px;font-size:16px;font-weight:400;line-height:2;text-decoration:none}.about-wrap .wp-person .title{display:block}.about-wrap #wp-people-group-validators+p.wp-credits-list{margin-top:0}.about-wrap p.wp-credits-list a{white-space:nowrap}.freedoms-php .about-wrap ol{margin:40px 60px}.freedoms-php .about-wrap ol li{list-style-type:decimal;font-weight:600}.freedoms-php .about-wrap ol p{font-weight:400;margin:.6em 0}@media screen and (max-width:782px){.about-wrap .has-3-columns,.about-wrap .has-4-columns{grid-template-columns:1fr 1fr}.about-wrap .has-3-columns .column:nth-of-type(3n+1),.about-wrap .has-4-columns .column:nth-of-type(4n+1){grid-column-start:1;grid-row-start:1}.about-wrap .has-3-columns .column:nth-of-type(3n+2),.about-wrap .has-4-columns .column:nth-of-type(4n+2){grid-column-start:2;grid-row-start:1}.about-wrap .has-3-columns .column:nth-of-type(3n),.about-wrap .has-4-columns .column:nth-of-type(4n+3){grid-column-start:1;grid-row-start:2}.about-wrap .has-4-columns .column:nth-of-type(4n){grid-column-start:2;grid-row-start:2}}@media screen and (max-width:600px){.about-wrap .has-2-columns,.about-wrap .has-3-columns,.about-wrap .has-4-columns{display:block}.about-wrap :not(.is-wider-right):not(.is-wider-left) .column{margin-right:0;margin-left:0}.about-wrap .has-2-columns.is-wider-left,.about-wrap .has-2-columns.is-wider-right{display:grid}}@media only screen and (max-width:500px){.about-wrap{margin-right:20px;margin-left:10px}.about-wrap .about-text,.about-wrap h1{margin-right:0}.about-wrap .about-text{margin-bottom:.25em}.about-wrap .wp-badge{position:relative;margin-bottom:1.5em;width:100%}}@media only screen and (max-width:480px){.about-wrap .has-2-columns.is-wider-left,.about-wrap .has-2-columns.is-wider-right{display:block}.about-wrap .column{margin-right:0;margin-left:0}.about-wrap .has-2-columns.is-wider-left img,.about-wrap .has-2-columns.is-wider-right img{max-width:160px}} \ No newline at end of file
diff --git a/wp-admin/css/common-rtl.css b/wp-admin/css/common-rtl.css
index 88ff6ff..6528a09 100644
--- a/wp-admin/css/common-rtl.css
+++ b/wp-admin/css/common-rtl.css
@@ -124,7 +124,6 @@
.ui-helper-hidden-accessible {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
- -webkit-clip-path: inset(50%);
clip-path: inset(50%);
height: 1px;
margin: -1px;
@@ -1091,7 +1090,9 @@ th.action-links {
.wp-filter .search-form {
float: left;
- margin: 10px 0;
+ display: flex;
+ align-items: center;
+ column-gap: .5rem;
}
.wp-filter .search-form input[type="search"] {
@@ -1120,7 +1121,6 @@ th.action-links {
.wp-filter .search-form.search-plugins .wp-filter-search,
.no-js .wp-filter .search-form.search-plugins .button {
display: inline-block;
- margin-top: 10px;
vertical-align: top;
}
@@ -1361,6 +1361,11 @@ th.action-links {
position: relative;
max-width: 100%;
}
+ .wp-filter .search-form {
+ margin: 11px 0;
+ flex-wrap: wrap;
+ row-gap: 10px;
+ }
}
@media only screen and (max-width: 782px) {
@@ -4133,7 +4138,6 @@ img {
}
.wp-filter .search-form input[type="search"] {
- width: 100%;
font-size: 1rem;
}
@@ -4187,6 +4191,10 @@ img {
.nav-tab-active:focus:active {
border-bottom: 1px solid #c3c4c7;
}
+
+ .wp-filter .search-form.search-plugins label {
+ width: 100%;
+ }
}
@media screen and (max-width: 480px) {
diff --git a/wp-admin/css/common-rtl.min.css b/wp-admin/css/common-rtl.min.css
index 78beeed..b18db76 100644
--- a/wp-admin/css/common-rtl.min.css
+++ b/wp-admin/css/common-rtl.min.css
@@ -1,9 +1,9 @@
/*! This file is auto-generated */
-#wpwrap{height:auto;min-height:100%;width:100%;position:relative;-webkit-font-smoothing:subpixel-antialiased}#wpcontent{height:100%;padding-right:20px}#wpcontent,#wpfooter{margin-right:160px}.folded #wpcontent,.folded #wpfooter{margin-right:36px}#wpbody-content{padding-bottom:65px;float:right;width:100%;overflow:visible}.inner-sidebar{float:left;clear:left;display:none;width:281px;position:relative}.columns-2 .inner-sidebar{margin-left:auto;width:286px;display:block}.columns-2 .inner-sidebar #side-sortables,.inner-sidebar #side-sortables{min-height:300px;width:280px;padding:0}.has-right-sidebar .inner-sidebar{display:block}.has-right-sidebar #post-body{float:right;clear:right;width:100%;margin-left:-2000px}.has-right-sidebar #post-body-content{margin-left:300px;float:none;width:auto}#col-left{float:right;width:35%}#col-right{float:left;width:65%}#col-left .col-wrap{padding:0 0 0 6px}#col-right .col-wrap{padding:0 6px 0 0}.alignleft{float:right}.alignright{float:left}.textleft{text-align:right}.textright{text-align:left}.clear{clear:both}.wp-clearfix:after{content:"";display:table;clear:both}.screen-reader-text,.screen-reader-text span,.ui-helper-hidden-accessible{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}.button .screen-reader-text{height:auto}.screen-reader-text+.dashicons-external{margin-top:-1px;margin-right:2px}.screen-reader-shortcut{position:absolute;top:-1000em;right:6px;height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f0f0f1;color:#2271b1;z-index:100000;line-height:normal}.screen-reader-shortcut:focus{top:-25px;color:#2271b1;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:2px solid transparent;outline-offset:-2px}.hidden,.js .closed .inside,.js .hide-if-js,.js .wp-core-ui .hide-if-js,.js.wp-core-ui .hide-if-js,.no-js .hide-if-no-js,.no-js .wp-core-ui .hide-if-no-js,.no-js.wp-core-ui .hide-if-no-js{display:none}#menu-management .menu-edit,#menu-settings-column .accordion-container,.comment-ays,.feature-filter,.manage-menus,.menu-item-handle,.popular-tags,.stuffbox,.widget-inside,.widget-top,.widgets-holder-wrap,.wp-editor-container,p.popular-tags,table.widefat{border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.comment-ays,.feature-filter,.popular-tags,.stuffbox,.widgets-holder-wrap,.wp-editor-container,p.popular-tags,table.widefat{background:#fff}body,html{height:100%;margin:0;padding:0}body{background:#f0f0f1;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4em;min-width:600px}body.iframe{min-width:0;padding-top:1px}body.modal-open{overflow:hidden}body.mobile.modal-open #wpwrap{overflow:hidden;position:fixed;height:100%}iframe,img{border:0}td{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit}a{color:#2271b1;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}a,div{outline:0}a:active,a:hover{color:#135e96}.wp-person a:focus .gravatar,a:focus,a:focus .media-icon img,a:focus .plugin-icon{color:#043959;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}#adminmenu a:focus{box-shadow:none;outline:1px solid transparent;outline-offset:-1px}.screen-reader-text:focus{box-shadow:none;outline:0}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}.wp-die-message,p{font-size:13px;line-height:1.5;margin:1em 0}blockquote{margin:1em}dd,li{margin-bottom:6px}h1,h2,h3,h4,h5,h6{display:block;font-weight:600}h1{color:#1d2327;font-size:2em;margin:.67em 0}h2,h3{color:#1d2327;font-size:1.3em;margin:1em 0}.update-core-php h2{margin-top:4em}.update-messages h2,.update-php h2,h4{font-size:1em;margin:1.33em 0}h5{font-size:.83em;margin:1.67em 0}h6{font-size:.67em;margin:2.33em 0}ol,ul{padding:0}ul{list-style:none}ol{list-style-type:decimal;margin-right:2em}ul.ul-disc{list-style:disc outside}ul.ul-square{list-style:square outside}ol.ol-decimal{list-style:decimal outside}ol.ol-decimal,ul.ul-disc,ul.ul-square{margin-right:1.8em}ol.ol-decimal>li,ul.ul-disc>li,ul.ul-square>li{margin:0 0 .5em}.ltr{direction:ltr}.code,code{font-family:Consolas,Monaco,monospace;direction:ltr;unicode-bidi:embed}code,kbd{padding:3px 5px 2px;margin:0 1px;background:#f0f0f1;background:rgba(0,0,0,.07);font-size:13px}.subsubsub{list-style:none;margin:8px 0 0;padding:0;font-size:13px;float:right;color:#646970}.subsubsub a{line-height:2;padding:.2em;text-decoration:none}.subsubsub a .count,.subsubsub a.current .count{color:#50575e;font-weight:400}.subsubsub a.current{font-weight:600;border:none}.subsubsub li{display:inline-block;margin:0;padding:0;white-space:nowrap}.widefat{border-spacing:0;width:100%;clear:both;margin:0}.widefat *{word-wrap:break-word}.widefat a,.widefat button.button-link{text-decoration:none}.widefat td,.widefat th{padding:8px 10px}.widefat thead td,.widefat thead th{border-bottom:1px solid #c3c4c7}.widefat tfoot td,.widefat tfoot th{border-top:1px solid #c3c4c7;border-bottom:none}.widefat .no-items td{border-bottom-width:0}.widefat td{vertical-align:top}.widefat td,.widefat td ol,.widefat td p,.widefat td ul{font-size:13px;line-height:1.5em}.widefat tfoot td,.widefat th,.widefat thead td{text-align:right;line-height:1.3em;font-size:14px}.updates-table td input,.widefat tfoot td input,.widefat th input,.widefat thead td input{margin:0 8px 0 0;padding:0;vertical-align:text-top}.widefat .check-column{width:2.2em;padding:6px 0 25px;vertical-align:top}.widefat tbody th.check-column{padding:9px 0 22px}.updates-table tbody td.check-column,.widefat tbody th.check-column,.widefat tfoot td.check-column,.widefat thead td.check-column{padding:11px 3px 0 0}.widefat tfoot td.check-column,.widefat thead td.check-column{padding-top:4px;vertical-align:middle}.update-php div.error,.update-php div.updated{margin-right:0}.js-update-details-toggle .dashicons{text-decoration:none}.js-update-details-toggle[aria-expanded=true] .dashicons::before{content:"\f142"}.no-js .widefat tfoot .check-column input,.no-js .widefat thead .check-column input{display:none}.column-comments,.column-links,.column-posts,.widefat .num{text-align:center}.widefat th#comments{vertical-align:middle}.wrap{margin:10px 2px 0 20px}.postbox .inside h2,.wrap [class$=icon32]+h2,.wrap h1,.wrap>h2:first-child{font-size:23px;font-weight:400;margin:0;padding:9px 0 4px;line-height:1.3}.wrap h1.wp-heading-inline{display:inline-block;margin-left:5px}.wp-header-end{visibility:hidden;margin:-2px 0 0}.subtitle{margin:0;padding-right:25px;color:#50575e;font-size:14px;font-weight:400;line-height:1}.subtitle strong{word-break:break-all}.wrap .add-new-h2,.wrap .add-new-h2:active,.wrap .page-title-action,.wrap .page-title-action:active{display:inline-block;position:relative;box-sizing:border-box;cursor:pointer;white-space:nowrap;text-decoration:none;text-shadow:none;top:-3px;margin-right:4px;border:1px solid #2271b1;border-radius:3px;background:#f6f7f7;font-size:13px;font-weight:400;line-height:2.15384615;color:#2271b1;padding:0 10px;min-height:30px;-webkit-appearance:none}.wrap .wp-heading-inline+.page-title-action{margin-right:0}.wrap .add-new-h2:hover,.wrap .page-title-action:hover{background:#f0f0f1;border-color:#0a4b78;color:#0a4b78}.page-title-action:focus{color:#0a4b78}.form-table th label[for=WPLANG] .dashicons,.form-table th label[for=locale] .dashicons{margin-right:5px}.wrap .page-title-action:focus{border-color:#3582c4;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.wrap h1.long-header{padding-left:0}.wp-dialog{background-color:#fff}#available-widgets .widget-top:hover,#widgets-left .widget-in-question .widget-top,#widgets-left .widget-top:hover,.widgets-chooser ul,div#widgets-right .widget-top:hover{border-color:#8c8f94;box-shadow:0 1px 2px rgba(0,0,0,.1)}.sorthelper{background-color:#c5d9ed}.ac_match,.subsubsub a.current{color:#000}.alternate,.striped>tbody>:nth-child(odd),ul.striped>:nth-child(odd){background-color:#f6f7f7}.bar{background-color:#f0f0f1;border-left-color:#4f94d4}.highlight{background-color:#f0f6fc;color:#3c434a}.wp-ui-primary{color:#fff;background-color:#2c3338}.wp-ui-text-primary{color:#2c3338}.wp-ui-highlight{color:#fff;background-color:#2271b1}.wp-ui-text-highlight{color:#2271b1}.wp-ui-notification{color:#fff;background-color:#d63638}.wp-ui-text-notification{color:#d63638}.wp-ui-text-icon{color:#8c8f94}img.emoji{display:inline!important;border:none!important;height:1em!important;width:1em!important;margin:0 .07em!important;vertical-align:-.1em!important;background:0 0!important;padding:0!important;box-shadow:none!important}#nav-menu-footer,#nav-menu-header,#your-profile #rich_editing,.checkbox,.control-section .accordion-section-title,.menu-item-handle,.postbox .hndle,.side-info,.sidebar-name,.stuffbox .hndle,.widefat tfoot td,.widefat tfoot th,.widefat thead td,.widefat thead th,.widget .widget-top{line-height:1.4em}.menu-item-handle,.widget .widget-top{background:#f6f7f7;color:#1d2327}.stuffbox .hndle{border-bottom:1px solid #c3c4c7}.quicktags{background-color:#c3c4c7;color:#000;font-size:12px}.icon32{display:none}#bulk-titles .ntdelbutton:before,.notice-dismiss:before,.tagchecklist .ntdelbutton .remove-tag-icon:before,.welcome-panel .welcome-panel-close:before{background:0 0;color:#787c82;content:"\f153";display:block;font:normal 16px/20px dashicons;speak:never;height:20px;text-align:center;width:20px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.welcome-panel .welcome-panel-close:before{margin:0}.tagchecklist .ntdelbutton .remove-tag-icon:before{margin-right:2px;border-radius:50%;color:#2271b1;line-height:1.28}.tagchecklist .ntdelbutton:focus{outline:0}#bulk-titles .ntdelbutton:focus:before,#bulk-titles .ntdelbutton:hover:before,.tagchecklist .ntdelbutton:focus .remove-tag-icon:before,.tagchecklist .ntdelbutton:hover .remove-tag-icon:before{color:#d63638}.tagchecklist .ntdelbutton:focus .remove-tag-icon:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.key-labels label{line-height:24px}b,strong{font-weight:600}.pre{white-space:pre-wrap;word-wrap:break-word}.howto{color:#646970;display:block}p.install-help{margin:8px 0;font-style:italic}.no-break{white-space:nowrap}hr{border:0;border-top:1px solid #dcdcde;border-bottom:1px solid #f6f7f7}#all-plugins-table .plugins a.delete,#delete-link a.delete,#media-items a.delete,#media-items a.delete-permanently,#nav-menu-footer .menu-delete,#search-plugins-table .plugins a.delete,.plugins a.delete,.privacy_requests .remove-personal-data .remove-personal-data-handle,.row-actions span.delete a,.row-actions span.spam a,.row-actions span.trash a,.submitbox .submitdelete,a#remove-post-thumbnail{color:#b32d2e}#all-plugins-table .plugins a.delete:hover,#delete-link a.delete:hover,#media-items a.delete-permanently:hover,#media-items a.delete:hover,#nav-menu-footer .menu-delete:hover,#search-plugins-table .plugins a.delete:hover,.file-error,.plugins a.delete:hover,.privacy_requests .remove-personal-data .remove-personal-data-handle:hover,.row-actions .delete a:hover,.row-actions .spam a:hover,.row-actions .trash a:hover,.submitbox .submitdelete:hover,a#remove-post-thumbnail:hover,abbr.required,span.required{color:#b32d2e;border:none}#major-publishing-actions{padding:10px;clear:both;border-top:1px solid #dcdcde;background:#f6f7f7}#delete-action{float:right;line-height:2.30769231}#delete-link{line-height:2.30769231;vertical-align:middle;text-align:right;margin-right:8px}#delete-link a{text-decoration:none}#publishing-action{text-align:left;float:left;line-height:1.9}#publishing-action .spinner{float:none;margin-top:5px}#misc-publishing-actions{padding:6px 0 0}.misc-pub-section{padding:6px 10px 8px}.misc-pub-filename,.word-wrap-break-word{word-wrap:break-word}#minor-publishing-actions{padding:10px 10px 0;text-align:left}#save-post{float:right}.preview{float:left}#sticky-span{margin-right:18px}.approve,.unapproved .unapprove{display:none}.spam .approve,.trash .approve,.unapproved .approve{display:inline}td.action-links,th.action-links{text-align:left}#misc-publishing-actions .notice{margin-right:10px;margin-left:10px}.wp-filter{display:inline-block;position:relative;box-sizing:border-box;margin:12px 0 25px;padding:0 10px;width:100%;box-shadow:0 1px 1px rgba(0,0,0,.04);border:1px solid #c3c4c7;background:#fff;color:#50575e;font-size:13px}.wp-filter a{text-decoration:none}.filter-count{display:inline-block;vertical-align:middle;min-width:4em}.filter-count .count,.title-count{display:inline-block;position:relative;top:-1px;padding:4px 10px;border-radius:30px;background:#646970;color:#fff;font-size:14px;font-weight:600}.title-count{display:inline;top:-3px;margin-right:5px;margin-left:20px}.filter-items{float:right}.filter-links{display:inline-block;margin:0}.filter-links li{display:inline-block;margin:0}.filter-links li>a{display:inline-block;margin:0 10px;padding:15px 0;border-bottom:4px solid #fff;color:#646970;cursor:pointer}.filter-links .current{box-shadow:none;border-bottom:4px solid #646970;color:#1d2327}.filter-links li>a:focus,.filter-links li>a:hover,.show-filters .filter-links a.current:focus,.show-filters .filter-links a.current:hover{color:#135e96}.wp-filter .search-form{float:left;margin:10px 0}.wp-filter .search-form input[type=search]{width:280px;max-width:100%}.wp-filter .search-form select{margin:0}.plugin-install-php .wp-filter{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center}.wp-filter .search-form.search-plugins{margin-top:0}.no-js .wp-filter .search-form.search-plugins .button,.wp-filter .search-form.search-plugins .wp-filter-search,.wp-filter .search-form.search-plugins select{display:inline-block;margin-top:10px;vertical-align:top}.wp-filter .button.drawer-toggle{margin:10px 9px 0;padding:0 6px 0 10px;border-color:transparent;background-color:transparent;color:#646970;vertical-align:baseline;box-shadow:none}.wp-filter .drawer-toggle:before{content:"\f111";margin:0 0 0 5px;color:#646970;font:normal 16px/1 dashicons;vertical-align:text-bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-filter .button.drawer-toggle:focus,.wp-filter .button.drawer-toggle:hover,.wp-filter .drawer-toggle:focus:before,.wp-filter .drawer-toggle:hover:before{background-color:transparent;color:#135e96}.wp-filter .button.drawer-toggle:focus:active,.wp-filter .button.drawer-toggle:hover{border-color:transparent}.wp-filter .button.drawer-toggle:focus{border-color:#4f94d4}.wp-filter .button.drawer-toggle:active{background:0 0;box-shadow:none;transform:none}.wp-filter .drawer-toggle.current:before{color:#fff}.filter-drawer,.wp-filter .favorites-form{display:none;margin:0 -20px 0 -10px;padding:20px;border-top:1px solid #f0f0f1;background:#f6f7f7;overflow:hidden}.show-favorites-form .favorites-form,.show-filters .filter-drawer{display:block}.show-filters .filter-links a.current{border-bottom:none}.show-filters .wp-filter .button.drawer-toggle{border-radius:2px;background:#646970;color:#fff}.show-filters .wp-filter .drawer-toggle:focus,.show-filters .wp-filter .drawer-toggle:hover{background:#2271b1}.show-filters .wp-filter .drawer-toggle:before{color:#fff}.filter-group{box-sizing:border-box;position:relative;float:right;margin:0 0 0 1%;padding:20px 10px 10px;width:24%;background:#fff;border:1px solid #dcdcde;box-shadow:0 1px 1px rgba(0,0,0,.04)}.filter-group legend{position:absolute;top:10px;display:block;margin:0;padding:0;font-size:1em;font-weight:600}.filter-drawer .filter-group-feature{margin:28px 0 0;list-style-type:none;font-size:12px}.filter-drawer .filter-group-feature input,.filter-drawer .filter-group-feature label{line-height:1.4}.filter-drawer .filter-group-feature input{position:absolute;margin:0}.filter-group .filter-group-feature label{display:block;margin:14px 23px 14px 0}.filter-drawer .buttons{clear:both;margin-bottom:20px}.filter-drawer .filter-group+.buttons{margin-bottom:0;padding-top:20px}.filter-drawer .buttons .button span{display:inline-block;opacity:.8;font-size:12px;text-indent:10px}.wp-filter .button.clear-filters{display:none;margin-right:10px}.wp-filter .button-link.edit-filters{padding:0 5px;line-height:2.2}.filtered-by{display:none;margin:0}.filtered-by>span{font-weight:600}.filtered-by a{margin-right:10px}.filtered-by .tags{display:inline}.filtered-by .tag{margin:0 5px;padding:4px 8px;border:1px solid #dcdcde;box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff;font-size:11px}.filters-applied .filter-drawer .buttons,.filters-applied .filter-drawer br,.filters-applied .filter-group{display:none}.filters-applied .filtered-by{display:block}.filters-applied .filter-drawer{padding:20px}.error .content-filterable,.loading-content .content-filterable,.show-filters .content-filterable,.show-filters .favorites-form,.show-filters.filters-applied.loading-content .content-filterable{display:none}.show-filters.filters-applied .content-filterable{display:block}.loading-content .spinner{display:block;margin:40px auto 0;float:none}@media only screen and (max-width:1120px){.filter-drawer{border-bottom:1px solid #f0f0f1}.filter-group{margin-bottom:0;margin-top:5px;width:100%}.filter-group li{margin:10px 0}}@media only screen and (max-width:1000px){.filter-items{float:none}.wp-filter .media-toolbar-primary,.wp-filter .media-toolbar-secondary,.wp-filter .search-form{float:none;position:relative;max-width:100%}}@media only screen and (max-width:782px){.filter-group li{padding:0;width:50%}}@media only screen and (max-width:320px){.filter-count{display:none}.wp-filter .drawer-toggle{margin:10px 0}.filter-group li,.wp-filter .search-form input[type=search]{width:100%}}.notice,div.error,div.updated{background:#fff;border:1px solid #c3c4c7;border-right-width:4px;box-shadow:0 1px 1px rgba(0,0,0,.04);margin:5px 15px 2px;padding:1px 12px}div[class=update-message]{padding:.5em 0 .5em 12px}.form-table td .notice p,.notice p,.notice-title,div.error p,div.updated p{margin:.5em 0;padding:2px}.error a{text-decoration:underline}.updated a{padding-bottom:2px}.notice-alt{box-shadow:none}.notice-large{padding:10px 20px}.notice-title{display:inline-block;color:#1d2327;font-size:18px}.wp-core-ui .notice.is-dismissible{padding-left:38px;position:relative}.notice-dismiss{position:absolute;top:0;left:1px;border:none;margin:0;padding:9px;background:0 0;color:#787c82;cursor:pointer}.notice-dismiss:active:before,.notice-dismiss:focus:before,.notice-dismiss:hover:before{color:#d63638}.notice-dismiss:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.notice-success,div.updated{border-right-color:#00a32a}.notice-success.notice-alt{background-color:#edfaef}.notice-warning{border-right-color:#dba617}.notice-warning.notice-alt{background-color:#fcf9e8}.notice-error,div.error{border-right-color:#d63638}.notice-error.notice-alt{background-color:#fcf0f1}.notice-info{border-right-color:#72aee6}.notice-info.notice-alt{background-color:#f0f6fc}#plugin-information-footer .update-now:not(.button-disabled):before{color:#d63638;content:"\f463";display:inline-block;font:normal 20px/1 dashicons;margin:-3px -2px 0 5px;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}#plugin-information-footer .notice{margin-top:-5px}.button.activated-message:before,.button.activating-message:before,.button.installed:before,.button.installing:before,.button.updated-message:before,.button.updating-message:before,.import-php .updating-message:before,.update-message p:before,.updated-message p:before,.updating-message p:before{display:inline-block;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.media-upload-form .notice,.media-upload-form div.error,.wrap .notice,.wrap div.error,.wrap div.updated{margin:5px 0 15px}.wrap #templateside .notice{display:block;margin:0;padding:5px 8px;font-weight:600;text-decoration:none}.wrap #templateside span.notice{margin-right:-12px}#templateside li.notice a{padding:0}.button.activating-message:before,.button.installing:before,.button.updating-message:before,.import-php .updating-message:before,.update-message p:before,.updating-message p:before{color:#d63638;content:"\f463"}.button.activating-message:before,.button.installing:before,.button.updating-message:before,.import-php .updating-message:before,.plugins .column-auto-updates .dashicons-update.spin,.theme-overlay .theme-autoupdate .dashicons-update.spin,.updating-message p:before{animation:rotation 2s infinite linear}@media (prefers-reduced-motion:reduce){.button.activating-message:before,.button.installing:before,.button.updating-message:before,.import-php .updating-message:before,.plugins .column-auto-updates .dashicons-update.spin,.theme-overlay .theme-autoupdate .dashicons-update.spin,.updating-message p:before{animation:none}}.theme-overlay .theme-autoupdate .dashicons-update.spin{margin-left:3px}.button.activated-message:before,.button.updated-message:before,.installed p:before,.updated-message p:before{color:#68de7c;content:"\f147"}.update-message.notice-error p:before{color:#d63638;content:"\f534"}.import-php .updating-message:before,.wrap .notice p:before{margin-left:6px}.import-php .updating-message:before{vertical-align:bottom}#update-nag,.update-nag{display:inline-block;line-height:1.4;padding:11px 15px;font-size:14px;margin:25px 2px 0 20px}ul#dismissed-updates{display:none}#dismissed-updates li>p{margin-top:0}#dismiss,#undismiss{margin-right:.5em}form.upgrade{margin-top:8px}form.upgrade .hint{font-style:italic;font-size:85%;margin:-.5em 0 2em}.update-php .spinner{float:none;margin:-4px 0}h2.wp-current-version{margin-bottom:.3em}p.update-last-checked{margin-top:0}p.auto-update-status{margin-top:2em;line-height:1.8}#ajax-loading,.ajax-feedback,.ajax-loading,.imgedit-wait-spin,.list-ajax-loading{visibility:hidden}#ajax-response.alignleft{margin-right:2em}.button.activated-message:before,.button.activating-message:before,.button.installed:before,.button.installing:before,.button.updated-message:before,.button.updating-message:before{margin:3px -2px 0 5px}#plugin-information-footer .button{padding:0 14px;line-height:2.71428571;font-size:14px;vertical-align:middle;min-height:40px;margin-bottom:4px}#plugin-information-footer .button.activated-message:before,#plugin-information-footer .button.activating-message:before,#plugin-information-footer .button.installed:before,#plugin-information-footer .button.installing:before,#plugin-information-footer .button.updated-message:before,#plugin-information-footer .button.updating-message:before{margin:9px -2px 0 5px}#plugin-information-footer .button.update-now.updating-message:before{margin:-3px -2px 0 5px}.button-primary.activating-message:before,.button-primary.updating-message:before{color:#fff}.button-primary.activated-message:before,.button-primary.updated-message:before{color:#9ec2e6}.button.activated-message,.button.updated-message{transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}@media aural{.button.installed:before,.button.installing:before,.update-message p:before,.wrap .notice p:before{speak:never}}#adminmenu a,#catlist a,#taglist a{text-decoration:none}#contextual-help-wrap,#screen-options-wrap{margin:0;padding:8px 20px 12px;position:relative}#contextual-help-wrap{overflow:auto;margin-right:0}#screen-meta-links{float:left;margin:0 0 0 20px}#screen-meta{display:none;margin:0 0 -1px 20px;position:relative;background-color:#fff;border:1px solid #c3c4c7;border-top:none;box-shadow:0 0 0 transparent}#contextual-help-link-wrap,#screen-options-link-wrap{float:right;margin:0 6px 0 0}#screen-meta-links .screen-meta-toggle{position:relative;top:0}#screen-meta-links .show-settings{border:1px solid #c3c4c7;border-top:none;height:auto;margin-bottom:0;padding:3px 16px 3px 6px;background:#fff;border-radius:0 0 4px 4px;color:#646970;line-height:1.7;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear}#screen-meta-links .show-settings:active,#screen-meta-links .show-settings:focus,#screen-meta-links .show-settings:hover{color:#2c3338}#screen-meta-links .show-settings:focus{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}#screen-meta-links .show-settings:active{transform:none}#screen-meta-links .show-settings:after{left:0;content:"\f140";font:normal 20px/1 dashicons;speak:never;display:inline-block;padding:0 0 0 5px;bottom:2px;position:relative;vertical-align:bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}#screen-meta-links .screen-meta-active:after{content:"\f142"}.toggle-arrow{background-repeat:no-repeat;background-position:top right;background-color:transparent;height:22px;line-height:22px;display:block}.toggle-arrow-active{background-position:bottom right}#contextual-help-wrap h5,#screen-options-wrap h5,#screen-options-wrap legend{margin:0;padding:8px 0;font-size:13px;font-weight:600}.metabox-prefs label{display:inline-block;padding-left:15px;line-height:2.35}#number-of-columns{display:inline-block;vertical-align:middle;line-height:30px}.metabox-prefs input[type=checkbox]{margin-top:0;margin-left:6px}.metabox-prefs label input,.metabox-prefs label input[type=checkbox]{margin:-4px 0 0 5px}.metabox-prefs .columns-prefs label input{margin:-1px 0 0 2px}.metabox-prefs label a{display:none}.metabox-prefs .screen-options input,.metabox-prefs .screen-options label{margin-top:0;margin-bottom:0;vertical-align:middle}.metabox-prefs .screen-options .screen-per-page{margin-left:15px;padding-left:0}.metabox-prefs .screen-options label{line-height:2.2;padding-left:0}.screen-options+.screen-options{margin-top:10px}.metabox-prefs .submit{margin-top:1em;padding:0}#contextual-help-wrap{padding:0}#contextual-help-columns{position:relative}#contextual-help-back{position:absolute;top:0;bottom:0;right:150px;left:170px;border:1px solid #c3c4c7;border-top:none;border-bottom:none;background:#f0f6fc}#contextual-help-wrap.no-sidebar #contextual-help-back{left:0;border-left-width:0;border-bottom-left-radius:2px}.contextual-help-tabs{float:right;width:150px;margin:0}.contextual-help-tabs ul{margin:1em 0}.contextual-help-tabs li{margin-bottom:0;list-style-type:none;border-style:solid;border-width:0 2px 0 0;border-color:transparent}.contextual-help-tabs a{display:block;padding:5px 12px 5px 5px;line-height:1.4;text-decoration:none;border:1px solid transparent;border-left:none;border-right:none}.contextual-help-tabs a:hover{color:#2c3338}.contextual-help-tabs .active{padding:0;margin:0 0 0 -1px;border-right:2px solid #72aee6;background:#f0f6fc;box-shadow:0 2px 0 rgba(0,0,0,.02),0 1px 0 rgba(0,0,0,.02)}.contextual-help-tabs .active a{border-color:#c3c4c7;color:#2c3338}.contextual-help-tabs-wrap{padding:0 20px;overflow:auto}.help-tab-content{display:none;margin:0 0 12px 22px;line-height:1.6}.help-tab-content.active{display:block}.help-tab-content ul li{list-style-type:disc;margin-right:18px}.contextual-help-sidebar{width:150px;float:left;padding:0 12px 0 8px;overflow:auto}html.wp-toolbar{padding-top:32px;box-sizing:border-box;-ms-overflow-style:scrollbar}.widefat td,.widefat th{color:#50575e}.widefat tfoot td,.widefat th,.widefat thead td{font-weight:400}.widefat tfoot tr td,.widefat tfoot tr th,.widefat thead tr td,.widefat thead tr th{color:#2c3338}.widefat td p{margin:2px 0 .8em}.widefat ol,.widefat p,.widefat ul{color:#2c3338}.widefat .column-comment p{margin:.6em 0}.widefat .column-comment ul{list-style:initial;margin-right:2em}.postbox-container{float:right}.postbox-container .meta-box-sortables{box-sizing:border-box}#wpbody-content .metabox-holder{padding-top:10px}.metabox-holder .postbox-container .meta-box-sortables{min-height:1px;position:relative}#post-body-content{width:100%;min-width:463px;float:right}#post-body.columns-2 #postbox-container-1{float:left;margin-left:-300px;width:280px}#post-body.columns-2 #side-sortables{min-height:250px}@media only screen and (max-width:799px){#wpbody-content .metabox-holder .postbox-container .empty-container{outline:0;height:0;min-height:0}}.js .postbox .hndle,.js .widget .widget-top{cursor:move}.js .postbox .hndle.is-non-sortable,.js .widget .widget-top.is-non-sortable{cursor:auto}.hndle a{font-size:12px;font-weight:400}.postbox-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #c3c4c7}.postbox-header .hndle{flex-grow:1;display:flex;justify-content:space-between;align-items:center}.postbox-header .handle-actions{flex-shrink:0}.postbox .handle-order-higher,.postbox .handle-order-lower,.postbox .handlediv{width:1.62rem;height:1.62rem;margin:0;padding:0;border:0;background:0 0;cursor:pointer}.postbox .handle-order-higher,.postbox .handle-order-lower{color:#787c82;width:1.62rem}.edit-post-meta-boxes-area .postbox .handle-order-higher,.edit-post-meta-boxes-area .postbox .handle-order-lower{width:44px;height:44px;color:#1d2327}.postbox .handle-order-higher[aria-disabled=true],.postbox .handle-order-lower[aria-disabled=true]{cursor:default;color:#a7aaad}.sortable-placeholder{border:1px dashed #c3c4c7;margin-bottom:20px}.postbox,.stuffbox{margin-bottom:20px;padding:0;line-height:1}.postbox.closed{border-bottom:0}.postbox .hndle,.stuffbox .hndle{-webkit-user-select:none;user-select:none}.postbox .inside{padding:0 12px 12px;line-height:1.4;font-size:13px}.stuffbox .inside{padding:0;line-height:1.4;font-size:13px;margin-top:0}.postbox .inside{margin:11px 0;position:relative}.postbox .inside>p:last-child,.rss-widget ul li:last-child{margin-bottom:1px!important}.postbox.closed h3{border:none;box-shadow:none}.postbox table.form-table{margin-bottom:0}.postbox table.widefat{box-shadow:none}.temp-border{border:1px dotted #c3c4c7}.columns-prefs label{padding:0 0 0 10px}#adminmenu .wp-submenu li.current,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:hover,#comment-status-display,#dashboard_right_now .versions .b,#ed_reply_toolbar #ed_reply_strong,#pass-strength-result.short,#pass-strength-result.strong,#post-status-display,#post-visibility-display,.feature-filter .feature-name,.item-controls .item-order a,.media-item .percent,.plugins .name{font-weight:600}#wpfooter{position:absolute;bottom:0;right:0;left:0;padding:10px 20px;color:#50575e}#wpfooter p{font-size:13px;margin:0;line-height:1.55}#footer-thankyou{font-style:italic}.nav-tab{float:right;border:1px solid #c3c4c7;border-bottom:none;margin-right:.5em;padding:5px 10px;font-size:14px;line-height:1.71428571;font-weight:600;background:#dcdcde;color:#50575e;text-decoration:none;white-space:nowrap}.nav-tab-small .nav-tab,h3 .nav-tab{padding:5px 14px;font-size:12px;line-height:1.33}.nav-tab:focus,.nav-tab:hover{background-color:#fff;color:#3c434a}.nav-tab-active,.nav-tab:focus:active{box-shadow:none}.nav-tab-active{margin-bottom:-1px;color:#3c434a}.nav-tab-active,.nav-tab-active:focus,.nav-tab-active:focus:active,.nav-tab-active:hover{border-bottom:1px solid #f0f0f1;background:#f0f0f1;color:#000}.nav-tab-wrapper,.wrap h2.nav-tab-wrapper,h1.nav-tab-wrapper{border-bottom:1px solid #c3c4c7;margin:0;padding-top:9px;padding-bottom:0;line-height:inherit}.nav-tab-wrapper:not(.wp-clearfix):after{content:"";display:table;clear:both}.spinner{background:url(../images/spinner.gif) no-repeat;background-size:20px 20px;display:inline-block;visibility:hidden;float:left;vertical-align:middle;opacity:.7;width:20px;height:20px;margin:4px 10px 0}.loading-content .spinner,.spinner.is-active{visibility:visible}#template>div{margin-left:16em}#template .notice{margin-top:1em;margin-left:3%}#template .notice p{width:auto}#template .submit .spinner{float:none}.metabox-holder .postbox>h3,.metabox-holder .stuffbox>h3,.metabox-holder h2.hndle,.metabox-holder h3.hndle{font-size:14px;padding:8px 12px;margin:0;line-height:1.4}.nav-menus-php .metabox-holder h3{padding:10px 14px 11px 10px;line-height:1.5}#templateside ul li a{text-decoration:none}.plugin-install #description,.plugin-install-network #description{width:60%}table .column-rating,table .column-visible,table .vers{text-align:right}.attention,.error-message{color:#d63638;font-weight:600}body.iframe{height:98%}.lp-show-latest p{display:none}.lp-show-latest .lp-error p,.lp-show-latest p:last-child{display:block}.media-icon{width:62px;text-align:center}.media-icon img{border:1px solid #dcdcde;border:1px solid rgba(0,0,0,.07)}#howto{font-size:11px;margin:0 5px;display:block}.importers{font-size:16px;width:auto}.importers td{padding-left:14px;line-height:1.4}.importers .import-system{max-width:250px}.importers td.desc{max-width:500px}.importer-action,.importer-desc,.importer-title{display:block}.importer-title{color:#000;font-size:14px;font-weight:400;margin-bottom:.2em}.importer-action{line-height:1.55;color:#50575e;margin-bottom:1em}#post-body #post-body-content #namediv h2,#post-body #post-body-content #namediv h3{margin-top:0}.edit-comment-author{color:#1d2327;border-bottom:1px solid #f0f0f1}#namediv h2 label,#namediv h3 label{vertical-align:baseline}#namediv table{width:100%}#namediv td.first{width:10px;white-space:nowrap}#namediv input{width:100%}#namediv p{margin:10px 0}.zerosize{height:0;width:0;margin:0;border:0;padding:0;overflow:hidden;position:absolute}br.clear{height:2px;line-height:.15}.checkbox{border:none;margin:0;padding:0}fieldset{border:0;padding:0;margin:0}.post-categories{display:inline;margin:0;padding:0}.post-categories li{display:inline}div.star-holder{position:relative;height:17px;width:100px;background:url(../images/stars.png?ver=20121108) repeat-x bottom right}div.star-holder .star-rating{background:url(../images/stars.png?ver=20121108) repeat-x top right;height:17px;float:right}.star-rating{white-space:nowrap}.star-rating .star{display:inline-block;width:20px;height:20px;-webkit-font-smoothing:antialiased;font-size:20px;line-height:1;font-family:dashicons;text-decoration:inherit;font-weight:400;font-style:normal;vertical-align:top;transition:color .1s ease-in;text-align:center;color:#dba617}.star-rating .star-full:before{content:"\f155"}.star-rating .star-half:before{content:"\f459"}.rtl .star-rating .star-half{transform:rotateY(-180deg)}.star-rating .star-empty:before{content:"\f154"}div.action-links{font-weight:400;margin:6px 0 0}#plugin-information{background:#fff;position:fixed;top:0;left:0;bottom:0;right:0;height:100%;padding:0}#plugin-information-scrollable{overflow:auto;-webkit-overflow-scrolling:touch;height:100%}#plugin-information-title{padding:0 26px;background:#f6f7f7;font-size:22px;font-weight:600;line-height:2.4;position:relative;height:56px}#plugin-information-title.with-banner{margin-left:0;height:250px;background-size:cover}#plugin-information-title h2{font-size:1em;font-weight:600;padding:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#plugin-information-title.with-banner h2{position:relative;font-family:"Helvetica Neue",sans-serif;display:inline-block;font-size:30px;line-height:1.68;box-sizing:border-box;max-width:100%;padding:0 15px;margin-top:174px;color:#fff;background:rgba(29,35,39,.9);text-shadow:0 1px 3px rgba(0,0,0,.4);box-shadow:0 0 30px rgba(255,255,255,.1);border-radius:8px}#plugin-information-title div.vignette{display:none}#plugin-information-title.with-banner div.vignette{position:absolute;display:block;top:0;right:0;height:250px;width:100%;background:0 0;box-shadow:inset 0 0 50px 4px rgba(0,0,0,.2),inset 0 -1px 0 rgba(0,0,0,.1)}#plugin-information-tabs{padding:0 16px;position:relative;left:0;right:0;min-height:36px;font-size:0;z-index:1;border-bottom:1px solid #dcdcde;background:#f6f7f7}#plugin-information-tabs a{position:relative;display:inline-block;padding:9px 10px;margin:0;height:18px;line-height:1.3;font-size:14px;text-decoration:none;transition:none}#plugin-information-tabs a.current{margin:0 -1px -1px;background:#fff;border:1px solid #dcdcde;border-bottom-color:#fff;padding-top:8px;color:#2c3338}#plugin-information-tabs.with-banner a.current{border-top:none;padding-top:9px}#plugin-information-tabs a:active,#plugin-information-tabs a:focus{outline:0}#plugin-information-content{overflow:hidden;background:#fff;position:relative;top:0;left:0;right:0;min-height:100%;min-height:calc(100% - 152px)}#plugin-information-content.with-banner{min-height:calc(100% - 346px)}#section-holder{position:relative;top:0;left:250px;bottom:0;right:0;margin-top:10px;margin-left:250px;padding:10px 26px 99999px;margin-bottom:-99932px}#section-holder .notice{margin:5px 0 15px}#section-holder .updated{margin:16px 0}#plugin-information .fyi{float:left;position:relative;top:0;left:0;padding:16px 16px 99999px;margin-bottom:-99932px;width:217px;border-right:1px solid #dcdcde;background:#f6f7f7;color:#646970}#plugin-information .fyi strong{color:#3c434a}#plugin-information .fyi h3{font-weight:600;text-transform:uppercase;font-size:12px;color:#646970;margin:24px 0 8px}#plugin-information .fyi h2{font-size:.9em;margin-bottom:0;margin-left:0}#plugin-information .fyi ul{padding:0;margin:0;list-style:none}#plugin-information .fyi li{margin:0 0 10px}#plugin-information .fyi-description{margin-top:0}#plugin-information .counter-container{margin:3px 0}#plugin-information .counter-label{float:right;margin-left:5px;min-width:55px}#plugin-information .counter-back{height:17px;width:92px;background-color:#dcdcde;float:right}#plugin-information .counter-bar{height:17px;background-color:#f0c33c;float:right}#plugin-information .counter-count{margin-right:5px}#plugin-information .fyi ul.contributors{margin-top:10px}#plugin-information .fyi ul.contributors li{display:inline-block;margin-left:8px;vertical-align:middle}#plugin-information .fyi ul.contributors li{display:inline-block;margin-left:8px;vertical-align:middle}#plugin-information .fyi ul.contributors li img{vertical-align:middle;margin-left:4px}#plugin-information-footer{padding:13px 16px;position:absolute;left:0;bottom:0;right:0;height:40px;border-top:1px solid #dcdcde;background:#f6f7f7}#plugin-information .section{direction:ltr}#plugin-information .section ol,#plugin-information .section ul{list-style-type:disc;margin-left:24px}#plugin-information .section,#plugin-information .section p{font-size:14px;line-height:1.7}#plugin-information #section-screenshots ol{list-style:none;margin:0}#plugin-information #section-screenshots li img{vertical-align:text-top;margin-top:16px;max-width:100%;width:auto;height:auto;box-shadow:0 1px 2px rgba(0,0,0,.3)}#plugin-information #section-screenshots li p{font-style:italic;padding-left:20px}#plugin-information pre{padding:7px;overflow:auto;border:1px solid #c3c4c7}#plugin-information blockquote{border-right:2px solid #dcdcde;color:#646970;font-style:italic;margin:1em 0;padding:0 1em 0 0}#plugin-information .review{overflow:hidden;width:100%;margin-bottom:20px;border-bottom:1px solid #dcdcde}#plugin-information .review-title-section{overflow:hidden}#plugin-information .review-title-section h4{display:inline-block;float:left;margin:0 6px 0 0}#plugin-information .reviewer-info p{clear:both;margin:0;padding-top:2px}#plugin-information .reviewer-info .avatar{float:left;margin:4px 6px 0 0}#plugin-information .reviewer-info .star-rating{float:left}#plugin-information .review-meta{float:left;margin-left:.75em}#plugin-information .review-body{float:left;width:100%}.plugin-version-author-uri{font-size:13px}.update-php .button.button-primary{margin-left:1em}@media screen and (max-width:771px){#plugin-information-title.with-banner{height:100px}#plugin-information-title.with-banner h2{margin-top:30px;font-size:20px;line-height:2;max-width:85%}#plugin-information-title.with-banner div.vignette{height:100px}#plugin-information-tabs{overflow:hidden;padding:0;height:auto}#plugin-information-tabs a.current{margin-bottom:0;border-bottom:none}#plugin-information .fyi{float:none;border:1px solid #dcdcde;position:static;width:auto;margin:26px 26px 0;padding-bottom:0}#section-holder{position:static;margin:0;padding-bottom:70px}#plugin-information .fyi h3,#plugin-information .fyi small{display:none}#plugin-information-footer{padding:12px 16px 0;height:46px}}#TB_window.plugin-details-modal{background:#fff}#TB_window.plugin-details-modal.thickbox-loading:before{content:"";display:block;width:20px;height:20px;position:absolute;right:50%;top:50%;z-index:-1;margin:-10px -10px 0 0;background:#fff url(../images/spinner.gif) no-repeat center;background-size:20px 20px;transform:translateZ(0)}@media print,(min-resolution:120dpi){#TB_window.plugin-details-modal.thickbox-loading:before{background-image:url(../images/spinner-2x.gif)}}.plugin-details-modal #TB_title{float:right;height:1px}.plugin-details-modal #TB_ajaxWindowTitle{display:none}.plugin-details-modal #TB_closeWindowButton{right:auto;left:-30px;color:#f0f0f1}.plugin-details-modal #TB_closeWindowButton:focus,.plugin-details-modal #TB_closeWindowButton:hover{outline:0;box-shadow:none}.plugin-details-modal #TB_closeWindowButton:focus::after,.plugin-details-modal #TB_closeWindowButton:hover::after{outline:2px solid;outline-offset:-4px;border-radius:4px}.plugin-details-modal .tb-close-icon{display:none}.plugin-details-modal #TB_closeWindowButton:after{content:"\f335";font:normal 32px/29px dashicons;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media screen and (max-width:830px){.plugin-details-modal #TB_closeWindowButton{left:0;top:-30px}}img{border:none}.bulk-action-notice .toggle-indicator::before,.meta-box-sortables .postbox .order-higher-indicator::before,.meta-box-sortables .postbox .order-lower-indicator::before,.meta-box-sortables .postbox .toggle-indicator::before,.privacy-text-box .toggle-indicator::before,.sidebar-name .toggle-indicator::before{content:"\f142";display:inline-block;font:normal 20px/1 dashicons;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}.bulk-action-notice .bulk-action-errors-collapsed .toggle-indicator::before,.js .widgets-holder-wrap.closed .toggle-indicator::before,.meta-box-sortables .postbox.closed .handlediv .toggle-indicator::before,.privacy-text-box.closed .toggle-indicator::before{content:"\f140"}.postbox .handle-order-higher .order-higher-indicator::before{content:"\f343";color:inherit}.postbox .handle-order-lower .order-lower-indicator::before{content:"\f347";color:inherit}.postbox .handle-order-higher .order-higher-indicator::before,.postbox .handle-order-lower .order-lower-indicator::before{position:relative;top:.11rem;width:20px;height:20px}.postbox .handlediv .toggle-indicator::before{width:20px;border-radius:50%}.postbox .handlediv .toggle-indicator::before{position:relative;top:.05rem;text-indent:-1px}.rtl .postbox .handlediv .toggle-indicator::before{text-indent:1px}.bulk-action-notice .toggle-indicator::before{line-height:16px;vertical-align:top;color:#787c82}.postbox .handle-order-higher:focus,.postbox .handle-order-lower:focus,.postbox .handlediv:focus{box-shadow:inset 0 0 0 2px #2271b1;border-radius:50%;outline:2px solid transparent}.postbox .handle-order-higher:focus .order-higher-indicator::before,.postbox .handle-order-lower:focus .order-lower-indicator::before,.postbox .handlediv:focus .toggle-indicator::before{box-shadow:none;outline:1px solid transparent}#photo-add-url-div input[type=text]{width:300px}.alignleft h2{margin:0}#template textarea{font-family:Consolas,Monaco,monospace;font-size:13px;background:#f6f7f7;tab-size:4}#template .CodeMirror,#template textarea{width:100%;min-height:60vh;height:calc(100vh - 295px);border:1px solid #dcdcde;box-sizing:border-box}#templateside>h2{padding-top:6px;padding-bottom:7px;margin:0}#templateside ol,#templateside ul{margin:0;padding:0}#templateside>ul{box-sizing:border-box;margin-top:0;overflow:auto;padding:0;min-height:60vh;height:calc(100vh - 295px);background-color:#f6f7f7;border:1px solid #dcdcde;border-right:none}#templateside ul ul{padding-right:12px}#templateside>ul>li>ul[role=group]{padding-right:0}[role=treeitem][aria-expanded=false]>ul{display:none}[role=treeitem] span[aria-hidden]{display:inline;font-family:dashicons;font-size:20px;position:absolute;pointer-events:none}[role=treeitem][aria-expanded=false]>.folder-label .icon:after{content:"\f141"}[role=treeitem][aria-expanded=true]>.folder-label .icon:after{content:"\f140"}[role=treeitem] .folder-label{display:block;padding:3px 12px 3px 3px;cursor:pointer}[role=treeitem]{outline:0}[role=treeitem] .folder-label.focus,[role=treeitem] a:focus{color:#043959;box-shadow:none;outline:2px solid #2271b1;outline-offset:-2px}[role=treeitem] .folder-label.hover,[role=treeitem].hover{background-color:#f0f0f1}.tree-folder{margin:0;position:relative}[role=treeitem] li{position:relative}.tree-folder .tree-folder::after{content:"";display:block;position:absolute;right:2px;border-right:1px solid #c3c4c7;top:-13px;bottom:10px}.tree-folder>li::before{content:"";position:absolute;display:block;border-right:1px solid #c3c4c7;right:2px;top:-5px;height:18px;width:7px;border-bottom:1px solid #c3c4c7}.tree-folder>li::after{content:"";position:absolute;display:block;border-right:1px solid #c3c4c7;right:2px;bottom:-7px;top:0}#templateside .current-file{margin:-4px 0 -2px}.tree-folder>.current-file::before{right:4px;height:15px;width:0;border-right:none;top:3px}.tree-folder>.current-file::after{bottom:-4px;height:7px;right:2px;top:auto}.tree-folder li:last-child>.tree-folder::after,.tree-folder>li:last-child::after{display:none}#documentation label,#theme-plugin-editor-label,#theme-plugin-editor-selector{font-weight:600}#theme-plugin-editor-label{display:inline-block;margin-bottom:1em}#docs-list,#template textarea{direction:ltr}.fileedit-sub #plugin,.fileedit-sub #theme{max-width:40%}.fileedit-sub .alignright{text-align:left}#template p{width:97%}#file-editor-linting-error{margin-top:1em;margin-bottom:1em}#file-editor-linting-error>.notice{margin:0;display:inline-block}#file-editor-linting-error>.notice>p{width:auto}#template .submit{margin-top:1em;padding:0}#template .submit input[type=submit][disabled]{cursor:not-allowed}#templateside{float:left;width:16em;word-wrap:break-word}#postcustomstuff p.submit{margin:0}#templateside h4{margin:1em 0 0}#templateside li{margin:4px 0}#templateside li:not(.howto) a,.theme-editor-php .highlight{display:block;padding:3px 12px 3px 0;text-decoration:none}#templateside li.current-file>a{padding-bottom:0}#templateside li:not(.howto)>a:first-of-type{padding-top:0}#templateside li.howto{padding:6px 12px 12px}.theme-editor-php .highlight{margin:-3px -12px -3px 3px}#templateside .highlight{border:none;font-weight:600}.nonessential{color:#646970;font-size:11px;font-style:italic;padding-right:12px}#documentation{margin-top:10px}#documentation label{line-height:1.8;vertical-align:baseline}.fileedit-sub{padding:10px 0 8px;line-height:180%}#file-editor-warning .file-editor-warning-content{margin:25px}.accordion-section-title:after,.control-section .accordion-section-title:after,.nav-menus-php .item-edit:before,.widget-top .widget-action .toggle-indicator:before{content:"\f140";font:normal 20px/1 dashicons;speak:never;display:block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}.widget-top .widget-action .toggle-indicator:before{padding:1px 0 1px 2px;border-radius:50%}.accordion-section-title:after,.handlediv,.item-edit,.postbox .handlediv.button-link,.toggle-indicator{color:#787c82}.widget-action{color:#50575e}.accordion-section-title:hover:after,.handlediv:focus,.handlediv:hover,.item-edit:focus,.item-edit:hover,.postbox .handlediv.button-link:focus,.postbox .handlediv.button-link:hover,.sidebar-name:hover .toggle-indicator,.widget-action:focus,.widget-top:hover .widget-action{color:#1d2327;outline:2px solid transparent}.widget-top .widget-action:focus .toggle-indicator:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.accordion-section-title:after,.control-section .accordion-section-title:after{float:left;left:20px;top:-2px}#customize-info.open .accordion-section-title:after,.control-section.open .accordion-section-title:after,.nav-menus-php .menu-item-edit-active .item-edit:before,.widget.open .widget-top .widget-action .toggle-indicator:before,.widget.widget-in-question .widget-top .widget-action .toggle-indicator:before{content:"\f142"}/*!
+#wpwrap{height:auto;min-height:100%;width:100%;position:relative;-webkit-font-smoothing:subpixel-antialiased}#wpcontent{height:100%;padding-right:20px}#wpcontent,#wpfooter{margin-right:160px}.folded #wpcontent,.folded #wpfooter{margin-right:36px}#wpbody-content{padding-bottom:65px;float:right;width:100%;overflow:visible}.inner-sidebar{float:left;clear:left;display:none;width:281px;position:relative}.columns-2 .inner-sidebar{margin-left:auto;width:286px;display:block}.columns-2 .inner-sidebar #side-sortables,.inner-sidebar #side-sortables{min-height:300px;width:280px;padding:0}.has-right-sidebar .inner-sidebar{display:block}.has-right-sidebar #post-body{float:right;clear:right;width:100%;margin-left:-2000px}.has-right-sidebar #post-body-content{margin-left:300px;float:none;width:auto}#col-left{float:right;width:35%}#col-right{float:left;width:65%}#col-left .col-wrap{padding:0 0 0 6px}#col-right .col-wrap{padding:0 6px 0 0}.alignleft{float:right}.alignright{float:left}.textleft{text-align:right}.textright{text-align:left}.clear{clear:both}.wp-clearfix:after{content:"";display:table;clear:both}.screen-reader-text,.screen-reader-text span,.ui-helper-hidden-accessible{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.button .screen-reader-text{height:auto}.screen-reader-text+.dashicons-external{margin-top:-1px;margin-right:2px}.screen-reader-shortcut{position:absolute;top:-1000em;right:6px;height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f0f0f1;color:#2271b1;z-index:100000;line-height:normal}.screen-reader-shortcut:focus{top:-25px;color:#2271b1;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:2px solid transparent;outline-offset:-2px}.hidden,.js .closed .inside,.js .hide-if-js,.js .wp-core-ui .hide-if-js,.js.wp-core-ui .hide-if-js,.no-js .hide-if-no-js,.no-js .wp-core-ui .hide-if-no-js,.no-js.wp-core-ui .hide-if-no-js{display:none}#menu-management .menu-edit,#menu-settings-column .accordion-container,.comment-ays,.feature-filter,.manage-menus,.menu-item-handle,.popular-tags,.stuffbox,.widget-inside,.widget-top,.widgets-holder-wrap,.wp-editor-container,p.popular-tags,table.widefat{border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.comment-ays,.feature-filter,.popular-tags,.stuffbox,.widgets-holder-wrap,.wp-editor-container,p.popular-tags,table.widefat{background:#fff}body,html{height:100%;margin:0;padding:0}body{background:#f0f0f1;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4em;min-width:600px}body.iframe{min-width:0;padding-top:1px}body.modal-open{overflow:hidden}body.mobile.modal-open #wpwrap{overflow:hidden;position:fixed;height:100%}iframe,img{border:0}td{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit}a{color:#2271b1;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}a,div{outline:0}a:active,a:hover{color:#135e96}.wp-person a:focus .gravatar,a:focus,a:focus .media-icon img,a:focus .plugin-icon{color:#043959;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}#adminmenu a:focus{box-shadow:none;outline:1px solid transparent;outline-offset:-1px}.screen-reader-text:focus{box-shadow:none;outline:0}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}.wp-die-message,p{font-size:13px;line-height:1.5;margin:1em 0}blockquote{margin:1em}dd,li{margin-bottom:6px}h1,h2,h3,h4,h5,h6{display:block;font-weight:600}h1{color:#1d2327;font-size:2em;margin:.67em 0}h2,h3{color:#1d2327;font-size:1.3em;margin:1em 0}.update-core-php h2{margin-top:4em}.update-messages h2,.update-php h2,h4{font-size:1em;margin:1.33em 0}h5{font-size:.83em;margin:1.67em 0}h6{font-size:.67em;margin:2.33em 0}ol,ul{padding:0}ul{list-style:none}ol{list-style-type:decimal;margin-right:2em}ul.ul-disc{list-style:disc outside}ul.ul-square{list-style:square outside}ol.ol-decimal{list-style:decimal outside}ol.ol-decimal,ul.ul-disc,ul.ul-square{margin-right:1.8em}ol.ol-decimal>li,ul.ul-disc>li,ul.ul-square>li{margin:0 0 .5em}.ltr{direction:ltr}.code,code{font-family:Consolas,Monaco,monospace;direction:ltr;unicode-bidi:embed}code,kbd{padding:3px 5px 2px;margin:0 1px;background:#f0f0f1;background:rgba(0,0,0,.07);font-size:13px}.subsubsub{list-style:none;margin:8px 0 0;padding:0;font-size:13px;float:right;color:#646970}.subsubsub a{line-height:2;padding:.2em;text-decoration:none}.subsubsub a .count,.subsubsub a.current .count{color:#50575e;font-weight:400}.subsubsub a.current{font-weight:600;border:none}.subsubsub li{display:inline-block;margin:0;padding:0;white-space:nowrap}.widefat{border-spacing:0;width:100%;clear:both;margin:0}.widefat *{word-wrap:break-word}.widefat a,.widefat button.button-link{text-decoration:none}.widefat td,.widefat th{padding:8px 10px}.widefat thead td,.widefat thead th{border-bottom:1px solid #c3c4c7}.widefat tfoot td,.widefat tfoot th{border-top:1px solid #c3c4c7;border-bottom:none}.widefat .no-items td{border-bottom-width:0}.widefat td{vertical-align:top}.widefat td,.widefat td ol,.widefat td p,.widefat td ul{font-size:13px;line-height:1.5em}.widefat tfoot td,.widefat th,.widefat thead td{text-align:right;line-height:1.3em;font-size:14px}.updates-table td input,.widefat tfoot td input,.widefat th input,.widefat thead td input{margin:0 8px 0 0;padding:0;vertical-align:text-top}.widefat .check-column{width:2.2em;padding:6px 0 25px;vertical-align:top}.widefat tbody th.check-column{padding:9px 0 22px}.updates-table tbody td.check-column,.widefat tbody th.check-column,.widefat tfoot td.check-column,.widefat thead td.check-column{padding:11px 3px 0 0}.widefat tfoot td.check-column,.widefat thead td.check-column{padding-top:4px;vertical-align:middle}.update-php div.error,.update-php div.updated{margin-right:0}.js-update-details-toggle .dashicons{text-decoration:none}.js-update-details-toggle[aria-expanded=true] .dashicons::before{content:"\f142"}.no-js .widefat tfoot .check-column input,.no-js .widefat thead .check-column input{display:none}.column-comments,.column-links,.column-posts,.widefat .num{text-align:center}.widefat th#comments{vertical-align:middle}.wrap{margin:10px 2px 0 20px}.postbox .inside h2,.wrap [class$=icon32]+h2,.wrap h1,.wrap>h2:first-child{font-size:23px;font-weight:400;margin:0;padding:9px 0 4px;line-height:1.3}.wrap h1.wp-heading-inline{display:inline-block;margin-left:5px}.wp-header-end{visibility:hidden;margin:-2px 0 0}.subtitle{margin:0;padding-right:25px;color:#50575e;font-size:14px;font-weight:400;line-height:1}.subtitle strong{word-break:break-all}.wrap .add-new-h2,.wrap .add-new-h2:active,.wrap .page-title-action,.wrap .page-title-action:active{display:inline-block;position:relative;box-sizing:border-box;cursor:pointer;white-space:nowrap;text-decoration:none;text-shadow:none;top:-3px;margin-right:4px;border:1px solid #2271b1;border-radius:3px;background:#f6f7f7;font-size:13px;font-weight:400;line-height:2.15384615;color:#2271b1;padding:0 10px;min-height:30px;-webkit-appearance:none}.wrap .wp-heading-inline+.page-title-action{margin-right:0}.wrap .add-new-h2:hover,.wrap .page-title-action:hover{background:#f0f0f1;border-color:#0a4b78;color:#0a4b78}.page-title-action:focus{color:#0a4b78}.form-table th label[for=WPLANG] .dashicons,.form-table th label[for=locale] .dashicons{margin-right:5px}.wrap .page-title-action:focus{border-color:#3582c4;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.wrap h1.long-header{padding-left:0}.wp-dialog{background-color:#fff}#available-widgets .widget-top:hover,#widgets-left .widget-in-question .widget-top,#widgets-left .widget-top:hover,.widgets-chooser ul,div#widgets-right .widget-top:hover{border-color:#8c8f94;box-shadow:0 1px 2px rgba(0,0,0,.1)}.sorthelper{background-color:#c5d9ed}.ac_match,.subsubsub a.current{color:#000}.alternate,.striped>tbody>:nth-child(odd),ul.striped>:nth-child(odd){background-color:#f6f7f7}.bar{background-color:#f0f0f1;border-left-color:#4f94d4}.highlight{background-color:#f0f6fc;color:#3c434a}.wp-ui-primary{color:#fff;background-color:#2c3338}.wp-ui-text-primary{color:#2c3338}.wp-ui-highlight{color:#fff;background-color:#2271b1}.wp-ui-text-highlight{color:#2271b1}.wp-ui-notification{color:#fff;background-color:#d63638}.wp-ui-text-notification{color:#d63638}.wp-ui-text-icon{color:#8c8f94}img.emoji{display:inline!important;border:none!important;height:1em!important;width:1em!important;margin:0 .07em!important;vertical-align:-.1em!important;background:0 0!important;padding:0!important;box-shadow:none!important}#nav-menu-footer,#nav-menu-header,#your-profile #rich_editing,.checkbox,.control-section .accordion-section-title,.menu-item-handle,.postbox .hndle,.side-info,.sidebar-name,.stuffbox .hndle,.widefat tfoot td,.widefat tfoot th,.widefat thead td,.widefat thead th,.widget .widget-top{line-height:1.4em}.menu-item-handle,.widget .widget-top{background:#f6f7f7;color:#1d2327}.stuffbox .hndle{border-bottom:1px solid #c3c4c7}.quicktags{background-color:#c3c4c7;color:#000;font-size:12px}.icon32{display:none}#bulk-titles .ntdelbutton:before,.notice-dismiss:before,.tagchecklist .ntdelbutton .remove-tag-icon:before,.welcome-panel .welcome-panel-close:before{background:0 0;color:#787c82;content:"\f153";display:block;font:normal 16px/20px dashicons;speak:never;height:20px;text-align:center;width:20px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.welcome-panel .welcome-panel-close:before{margin:0}.tagchecklist .ntdelbutton .remove-tag-icon:before{margin-right:2px;border-radius:50%;color:#2271b1;line-height:1.28}.tagchecklist .ntdelbutton:focus{outline:0}#bulk-titles .ntdelbutton:focus:before,#bulk-titles .ntdelbutton:hover:before,.tagchecklist .ntdelbutton:focus .remove-tag-icon:before,.tagchecklist .ntdelbutton:hover .remove-tag-icon:before{color:#d63638}.tagchecklist .ntdelbutton:focus .remove-tag-icon:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.key-labels label{line-height:24px}b,strong{font-weight:600}.pre{white-space:pre-wrap;word-wrap:break-word}.howto{color:#646970;display:block}p.install-help{margin:8px 0;font-style:italic}.no-break{white-space:nowrap}hr{border:0;border-top:1px solid #dcdcde;border-bottom:1px solid #f6f7f7}#all-plugins-table .plugins a.delete,#delete-link a.delete,#media-items a.delete,#media-items a.delete-permanently,#nav-menu-footer .menu-delete,#search-plugins-table .plugins a.delete,.plugins a.delete,.privacy_requests .remove-personal-data .remove-personal-data-handle,.row-actions span.delete a,.row-actions span.spam a,.row-actions span.trash a,.submitbox .submitdelete,a#remove-post-thumbnail{color:#b32d2e}#all-plugins-table .plugins a.delete:hover,#delete-link a.delete:hover,#media-items a.delete-permanently:hover,#media-items a.delete:hover,#nav-menu-footer .menu-delete:hover,#search-plugins-table .plugins a.delete:hover,.file-error,.plugins a.delete:hover,.privacy_requests .remove-personal-data .remove-personal-data-handle:hover,.row-actions .delete a:hover,.row-actions .spam a:hover,.row-actions .trash a:hover,.submitbox .submitdelete:hover,a#remove-post-thumbnail:hover,abbr.required,span.required{color:#b32d2e;border:none}#major-publishing-actions{padding:10px;clear:both;border-top:1px solid #dcdcde;background:#f6f7f7}#delete-action{float:right;line-height:2.30769231}#delete-link{line-height:2.30769231;vertical-align:middle;text-align:right;margin-right:8px}#delete-link a{text-decoration:none}#publishing-action{text-align:left;float:left;line-height:1.9}#publishing-action .spinner{float:none;margin-top:5px}#misc-publishing-actions{padding:6px 0 0}.misc-pub-section{padding:6px 10px 8px}.misc-pub-filename,.word-wrap-break-word{word-wrap:break-word}#minor-publishing-actions{padding:10px 10px 0;text-align:left}#save-post{float:right}.preview{float:left}#sticky-span{margin-right:18px}.approve,.unapproved .unapprove{display:none}.spam .approve,.trash .approve,.unapproved .approve{display:inline}td.action-links,th.action-links{text-align:left}#misc-publishing-actions .notice{margin-right:10px;margin-left:10px}.wp-filter{display:inline-block;position:relative;box-sizing:border-box;margin:12px 0 25px;padding:0 10px;width:100%;box-shadow:0 1px 1px rgba(0,0,0,.04);border:1px solid #c3c4c7;background:#fff;color:#50575e;font-size:13px}.wp-filter a{text-decoration:none}.filter-count{display:inline-block;vertical-align:middle;min-width:4em}.filter-count .count,.title-count{display:inline-block;position:relative;top:-1px;padding:4px 10px;border-radius:30px;background:#646970;color:#fff;font-size:14px;font-weight:600}.title-count{display:inline;top:-3px;margin-right:5px;margin-left:20px}.filter-items{float:right}.filter-links{display:inline-block;margin:0}.filter-links li{display:inline-block;margin:0}.filter-links li>a{display:inline-block;margin:0 10px;padding:15px 0;border-bottom:4px solid #fff;color:#646970;cursor:pointer}.filter-links .current{box-shadow:none;border-bottom:4px solid #646970;color:#1d2327}.filter-links li>a:focus,.filter-links li>a:hover,.show-filters .filter-links a.current:focus,.show-filters .filter-links a.current:hover{color:#135e96}.wp-filter .search-form{float:left;display:flex;align-items:center;column-gap:.5rem}.wp-filter .search-form input[type=search]{width:280px;max-width:100%}.wp-filter .search-form select{margin:0}.plugin-install-php .wp-filter{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center}.wp-filter .search-form.search-plugins{margin-top:0}.no-js .wp-filter .search-form.search-plugins .button,.wp-filter .search-form.search-plugins .wp-filter-search,.wp-filter .search-form.search-plugins select{display:inline-block;vertical-align:top}.wp-filter .button.drawer-toggle{margin:10px 9px 0;padding:0 6px 0 10px;border-color:transparent;background-color:transparent;color:#646970;vertical-align:baseline;box-shadow:none}.wp-filter .drawer-toggle:before{content:"\f111";margin:0 0 0 5px;color:#646970;font:normal 16px/1 dashicons;vertical-align:text-bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-filter .button.drawer-toggle:focus,.wp-filter .button.drawer-toggle:hover,.wp-filter .drawer-toggle:focus:before,.wp-filter .drawer-toggle:hover:before{background-color:transparent;color:#135e96}.wp-filter .button.drawer-toggle:focus:active,.wp-filter .button.drawer-toggle:hover{border-color:transparent}.wp-filter .button.drawer-toggle:focus{border-color:#4f94d4}.wp-filter .button.drawer-toggle:active{background:0 0;box-shadow:none;transform:none}.wp-filter .drawer-toggle.current:before{color:#fff}.filter-drawer,.wp-filter .favorites-form{display:none;margin:0 -20px 0 -10px;padding:20px;border-top:1px solid #f0f0f1;background:#f6f7f7;overflow:hidden}.show-favorites-form .favorites-form,.show-filters .filter-drawer{display:block}.show-filters .filter-links a.current{border-bottom:none}.show-filters .wp-filter .button.drawer-toggle{border-radius:2px;background:#646970;color:#fff}.show-filters .wp-filter .drawer-toggle:focus,.show-filters .wp-filter .drawer-toggle:hover{background:#2271b1}.show-filters .wp-filter .drawer-toggle:before{color:#fff}.filter-group{box-sizing:border-box;position:relative;float:right;margin:0 0 0 1%;padding:20px 10px 10px;width:24%;background:#fff;border:1px solid #dcdcde;box-shadow:0 1px 1px rgba(0,0,0,.04)}.filter-group legend{position:absolute;top:10px;display:block;margin:0;padding:0;font-size:1em;font-weight:600}.filter-drawer .filter-group-feature{margin:28px 0 0;list-style-type:none;font-size:12px}.filter-drawer .filter-group-feature input,.filter-drawer .filter-group-feature label{line-height:1.4}.filter-drawer .filter-group-feature input{position:absolute;margin:0}.filter-group .filter-group-feature label{display:block;margin:14px 23px 14px 0}.filter-drawer .buttons{clear:both;margin-bottom:20px}.filter-drawer .filter-group+.buttons{margin-bottom:0;padding-top:20px}.filter-drawer .buttons .button span{display:inline-block;opacity:.8;font-size:12px;text-indent:10px}.wp-filter .button.clear-filters{display:none;margin-right:10px}.wp-filter .button-link.edit-filters{padding:0 5px;line-height:2.2}.filtered-by{display:none;margin:0}.filtered-by>span{font-weight:600}.filtered-by a{margin-right:10px}.filtered-by .tags{display:inline}.filtered-by .tag{margin:0 5px;padding:4px 8px;border:1px solid #dcdcde;box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff;font-size:11px}.filters-applied .filter-drawer .buttons,.filters-applied .filter-drawer br,.filters-applied .filter-group{display:none}.filters-applied .filtered-by{display:block}.filters-applied .filter-drawer{padding:20px}.error .content-filterable,.loading-content .content-filterable,.show-filters .content-filterable,.show-filters .favorites-form,.show-filters.filters-applied.loading-content .content-filterable{display:none}.show-filters.filters-applied .content-filterable{display:block}.loading-content .spinner{display:block;margin:40px auto 0;float:none}@media only screen and (max-width:1120px){.filter-drawer{border-bottom:1px solid #f0f0f1}.filter-group{margin-bottom:0;margin-top:5px;width:100%}.filter-group li{margin:10px 0}}@media only screen and (max-width:1000px){.filter-items{float:none}.wp-filter .media-toolbar-primary,.wp-filter .media-toolbar-secondary,.wp-filter .search-form{float:none;position:relative;max-width:100%}.wp-filter .search-form{margin:11px 0;flex-wrap:wrap;row-gap:10px}}@media only screen and (max-width:782px){.filter-group li{padding:0;width:50%}}@media only screen and (max-width:320px){.filter-count{display:none}.wp-filter .drawer-toggle{margin:10px 0}.filter-group li,.wp-filter .search-form input[type=search]{width:100%}}.notice,div.error,div.updated{background:#fff;border:1px solid #c3c4c7;border-right-width:4px;box-shadow:0 1px 1px rgba(0,0,0,.04);margin:5px 15px 2px;padding:1px 12px}div[class=update-message]{padding:.5em 0 .5em 12px}.form-table td .notice p,.notice p,.notice-title,div.error p,div.updated p{margin:.5em 0;padding:2px}.error a{text-decoration:underline}.updated a{padding-bottom:2px}.notice-alt{box-shadow:none}.notice-large{padding:10px 20px}.notice-title{display:inline-block;color:#1d2327;font-size:18px}.wp-core-ui .notice.is-dismissible{padding-left:38px;position:relative}.notice-dismiss{position:absolute;top:0;left:1px;border:none;margin:0;padding:9px;background:0 0;color:#787c82;cursor:pointer}.notice-dismiss:active:before,.notice-dismiss:focus:before,.notice-dismiss:hover:before{color:#d63638}.notice-dismiss:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.notice-success,div.updated{border-right-color:#00a32a}.notice-success.notice-alt{background-color:#edfaef}.notice-warning{border-right-color:#dba617}.notice-warning.notice-alt{background-color:#fcf9e8}.notice-error,div.error{border-right-color:#d63638}.notice-error.notice-alt{background-color:#fcf0f1}.notice-info{border-right-color:#72aee6}.notice-info.notice-alt{background-color:#f0f6fc}#plugin-information-footer .update-now:not(.button-disabled):before{color:#d63638;content:"\f463";display:inline-block;font:normal 20px/1 dashicons;margin:-3px -2px 0 5px;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}#plugin-information-footer .notice{margin-top:-5px}.button.activated-message:before,.button.activating-message:before,.button.installed:before,.button.installing:before,.button.updated-message:before,.button.updating-message:before,.import-php .updating-message:before,.update-message p:before,.updated-message p:before,.updating-message p:before{display:inline-block;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.media-upload-form .notice,.media-upload-form div.error,.wrap .notice,.wrap div.error,.wrap div.updated{margin:5px 0 15px}.wrap #templateside .notice{display:block;margin:0;padding:5px 8px;font-weight:600;text-decoration:none}.wrap #templateside span.notice{margin-right:-12px}#templateside li.notice a{padding:0}.button.activating-message:before,.button.installing:before,.button.updating-message:before,.import-php .updating-message:before,.update-message p:before,.updating-message p:before{color:#d63638;content:"\f463"}.button.activating-message:before,.button.installing:before,.button.updating-message:before,.import-php .updating-message:before,.plugins .column-auto-updates .dashicons-update.spin,.theme-overlay .theme-autoupdate .dashicons-update.spin,.updating-message p:before{animation:rotation 2s infinite linear}@media (prefers-reduced-motion:reduce){.button.activating-message:before,.button.installing:before,.button.updating-message:before,.import-php .updating-message:before,.plugins .column-auto-updates .dashicons-update.spin,.theme-overlay .theme-autoupdate .dashicons-update.spin,.updating-message p:before{animation:none}}.theme-overlay .theme-autoupdate .dashicons-update.spin{margin-left:3px}.button.activated-message:before,.button.updated-message:before,.installed p:before,.updated-message p:before{color:#68de7c;content:"\f147"}.update-message.notice-error p:before{color:#d63638;content:"\f534"}.import-php .updating-message:before,.wrap .notice p:before{margin-left:6px}.import-php .updating-message:before{vertical-align:bottom}#update-nag,.update-nag{display:inline-block;line-height:1.4;padding:11px 15px;font-size:14px;margin:25px 2px 0 20px}ul#dismissed-updates{display:none}#dismissed-updates li>p{margin-top:0}#dismiss,#undismiss{margin-right:.5em}form.upgrade{margin-top:8px}form.upgrade .hint{font-style:italic;font-size:85%;margin:-.5em 0 2em}.update-php .spinner{float:none;margin:-4px 0}h2.wp-current-version{margin-bottom:.3em}p.update-last-checked{margin-top:0}p.auto-update-status{margin-top:2em;line-height:1.8}#ajax-loading,.ajax-feedback,.ajax-loading,.imgedit-wait-spin,.list-ajax-loading{visibility:hidden}#ajax-response.alignleft{margin-right:2em}.button.activated-message:before,.button.activating-message:before,.button.installed:before,.button.installing:before,.button.updated-message:before,.button.updating-message:before{margin:3px -2px 0 5px}#plugin-information-footer .button{padding:0 14px;line-height:2.71428571;font-size:14px;vertical-align:middle;min-height:40px;margin-bottom:4px}#plugin-information-footer .button.activated-message:before,#plugin-information-footer .button.activating-message:before,#plugin-information-footer .button.installed:before,#plugin-information-footer .button.installing:before,#plugin-information-footer .button.updated-message:before,#plugin-information-footer .button.updating-message:before{margin:9px -2px 0 5px}#plugin-information-footer .button.update-now.updating-message:before{margin:-3px -2px 0 5px}.button-primary.activating-message:before,.button-primary.updating-message:before{color:#fff}.button-primary.activated-message:before,.button-primary.updated-message:before{color:#9ec2e6}.button.activated-message,.button.updated-message{transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}@media aural{.button.installed:before,.button.installing:before,.update-message p:before,.wrap .notice p:before{speak:never}}#adminmenu a,#catlist a,#taglist a{text-decoration:none}#contextual-help-wrap,#screen-options-wrap{margin:0;padding:8px 20px 12px;position:relative}#contextual-help-wrap{overflow:auto;margin-right:0}#screen-meta-links{float:left;margin:0 0 0 20px}#screen-meta{display:none;margin:0 0 -1px 20px;position:relative;background-color:#fff;border:1px solid #c3c4c7;border-top:none;box-shadow:0 0 0 transparent}#contextual-help-link-wrap,#screen-options-link-wrap{float:right;margin:0 6px 0 0}#screen-meta-links .screen-meta-toggle{position:relative;top:0}#screen-meta-links .show-settings{border:1px solid #c3c4c7;border-top:none;height:auto;margin-bottom:0;padding:3px 16px 3px 6px;background:#fff;border-radius:0 0 4px 4px;color:#646970;line-height:1.7;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear}#screen-meta-links .show-settings:active,#screen-meta-links .show-settings:focus,#screen-meta-links .show-settings:hover{color:#2c3338}#screen-meta-links .show-settings:focus{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}#screen-meta-links .show-settings:active{transform:none}#screen-meta-links .show-settings:after{left:0;content:"\f140";font:normal 20px/1 dashicons;speak:never;display:inline-block;padding:0 0 0 5px;bottom:2px;position:relative;vertical-align:bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}#screen-meta-links .screen-meta-active:after{content:"\f142"}.toggle-arrow{background-repeat:no-repeat;background-position:top right;background-color:transparent;height:22px;line-height:22px;display:block}.toggle-arrow-active{background-position:bottom right}#contextual-help-wrap h5,#screen-options-wrap h5,#screen-options-wrap legend{margin:0;padding:8px 0;font-size:13px;font-weight:600}.metabox-prefs label{display:inline-block;padding-left:15px;line-height:2.35}#number-of-columns{display:inline-block;vertical-align:middle;line-height:30px}.metabox-prefs input[type=checkbox]{margin-top:0;margin-left:6px}.metabox-prefs label input,.metabox-prefs label input[type=checkbox]{margin:-4px 0 0 5px}.metabox-prefs .columns-prefs label input{margin:-1px 0 0 2px}.metabox-prefs label a{display:none}.metabox-prefs .screen-options input,.metabox-prefs .screen-options label{margin-top:0;margin-bottom:0;vertical-align:middle}.metabox-prefs .screen-options .screen-per-page{margin-left:15px;padding-left:0}.metabox-prefs .screen-options label{line-height:2.2;padding-left:0}.screen-options+.screen-options{margin-top:10px}.metabox-prefs .submit{margin-top:1em;padding:0}#contextual-help-wrap{padding:0}#contextual-help-columns{position:relative}#contextual-help-back{position:absolute;top:0;bottom:0;right:150px;left:170px;border:1px solid #c3c4c7;border-top:none;border-bottom:none;background:#f0f6fc}#contextual-help-wrap.no-sidebar #contextual-help-back{left:0;border-left-width:0;border-bottom-left-radius:2px}.contextual-help-tabs{float:right;width:150px;margin:0}.contextual-help-tabs ul{margin:1em 0}.contextual-help-tabs li{margin-bottom:0;list-style-type:none;border-style:solid;border-width:0 2px 0 0;border-color:transparent}.contextual-help-tabs a{display:block;padding:5px 12px 5px 5px;line-height:1.4;text-decoration:none;border:1px solid transparent;border-left:none;border-right:none}.contextual-help-tabs a:hover{color:#2c3338}.contextual-help-tabs .active{padding:0;margin:0 0 0 -1px;border-right:2px solid #72aee6;background:#f0f6fc;box-shadow:0 2px 0 rgba(0,0,0,.02),0 1px 0 rgba(0,0,0,.02)}.contextual-help-tabs .active a{border-color:#c3c4c7;color:#2c3338}.contextual-help-tabs-wrap{padding:0 20px;overflow:auto}.help-tab-content{display:none;margin:0 0 12px 22px;line-height:1.6}.help-tab-content.active{display:block}.help-tab-content ul li{list-style-type:disc;margin-right:18px}.contextual-help-sidebar{width:150px;float:left;padding:0 12px 0 8px;overflow:auto}html.wp-toolbar{padding-top:32px;box-sizing:border-box;-ms-overflow-style:scrollbar}.widefat td,.widefat th{color:#50575e}.widefat tfoot td,.widefat th,.widefat thead td{font-weight:400}.widefat tfoot tr td,.widefat tfoot tr th,.widefat thead tr td,.widefat thead tr th{color:#2c3338}.widefat td p{margin:2px 0 .8em}.widefat ol,.widefat p,.widefat ul{color:#2c3338}.widefat .column-comment p{margin:.6em 0}.widefat .column-comment ul{list-style:initial;margin-right:2em}.postbox-container{float:right}.postbox-container .meta-box-sortables{box-sizing:border-box}#wpbody-content .metabox-holder{padding-top:10px}.metabox-holder .postbox-container .meta-box-sortables{min-height:1px;position:relative}#post-body-content{width:100%;min-width:463px;float:right}#post-body.columns-2 #postbox-container-1{float:left;margin-left:-300px;width:280px}#post-body.columns-2 #side-sortables{min-height:250px}@media only screen and (max-width:799px){#wpbody-content .metabox-holder .postbox-container .empty-container{outline:0;height:0;min-height:0}}.js .postbox .hndle,.js .widget .widget-top{cursor:move}.js .postbox .hndle.is-non-sortable,.js .widget .widget-top.is-non-sortable{cursor:auto}.hndle a{font-size:12px;font-weight:400}.postbox-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #c3c4c7}.postbox-header .hndle{flex-grow:1;display:flex;justify-content:space-between;align-items:center}.postbox-header .handle-actions{flex-shrink:0}.postbox .handle-order-higher,.postbox .handle-order-lower,.postbox .handlediv{width:1.62rem;height:1.62rem;margin:0;padding:0;border:0;background:0 0;cursor:pointer}.postbox .handle-order-higher,.postbox .handle-order-lower{color:#787c82;width:1.62rem}.edit-post-meta-boxes-area .postbox .handle-order-higher,.edit-post-meta-boxes-area .postbox .handle-order-lower{width:44px;height:44px;color:#1d2327}.postbox .handle-order-higher[aria-disabled=true],.postbox .handle-order-lower[aria-disabled=true]{cursor:default;color:#a7aaad}.sortable-placeholder{border:1px dashed #c3c4c7;margin-bottom:20px}.postbox,.stuffbox{margin-bottom:20px;padding:0;line-height:1}.postbox.closed{border-bottom:0}.postbox .hndle,.stuffbox .hndle{-webkit-user-select:none;user-select:none}.postbox .inside{padding:0 12px 12px;line-height:1.4;font-size:13px}.stuffbox .inside{padding:0;line-height:1.4;font-size:13px;margin-top:0}.postbox .inside{margin:11px 0;position:relative}.postbox .inside>p:last-child,.rss-widget ul li:last-child{margin-bottom:1px!important}.postbox.closed h3{border:none;box-shadow:none}.postbox table.form-table{margin-bottom:0}.postbox table.widefat{box-shadow:none}.temp-border{border:1px dotted #c3c4c7}.columns-prefs label{padding:0 0 0 10px}#adminmenu .wp-submenu li.current,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:hover,#comment-status-display,#dashboard_right_now .versions .b,#ed_reply_toolbar #ed_reply_strong,#pass-strength-result.short,#pass-strength-result.strong,#post-status-display,#post-visibility-display,.feature-filter .feature-name,.item-controls .item-order a,.media-item .percent,.plugins .name{font-weight:600}#wpfooter{position:absolute;bottom:0;right:0;left:0;padding:10px 20px;color:#50575e}#wpfooter p{font-size:13px;margin:0;line-height:1.55}#footer-thankyou{font-style:italic}.nav-tab{float:right;border:1px solid #c3c4c7;border-bottom:none;margin-right:.5em;padding:5px 10px;font-size:14px;line-height:1.71428571;font-weight:600;background:#dcdcde;color:#50575e;text-decoration:none;white-space:nowrap}.nav-tab-small .nav-tab,h3 .nav-tab{padding:5px 14px;font-size:12px;line-height:1.33}.nav-tab:focus,.nav-tab:hover{background-color:#fff;color:#3c434a}.nav-tab-active,.nav-tab:focus:active{box-shadow:none}.nav-tab-active{margin-bottom:-1px;color:#3c434a}.nav-tab-active,.nav-tab-active:focus,.nav-tab-active:focus:active,.nav-tab-active:hover{border-bottom:1px solid #f0f0f1;background:#f0f0f1;color:#000}.nav-tab-wrapper,.wrap h2.nav-tab-wrapper,h1.nav-tab-wrapper{border-bottom:1px solid #c3c4c7;margin:0;padding-top:9px;padding-bottom:0;line-height:inherit}.nav-tab-wrapper:not(.wp-clearfix):after{content:"";display:table;clear:both}.spinner{background:url(../images/spinner.gif) no-repeat;background-size:20px 20px;display:inline-block;visibility:hidden;float:left;vertical-align:middle;opacity:.7;width:20px;height:20px;margin:4px 10px 0}.loading-content .spinner,.spinner.is-active{visibility:visible}#template>div{margin-left:16em}#template .notice{margin-top:1em;margin-left:3%}#template .notice p{width:auto}#template .submit .spinner{float:none}.metabox-holder .postbox>h3,.metabox-holder .stuffbox>h3,.metabox-holder h2.hndle,.metabox-holder h3.hndle{font-size:14px;padding:8px 12px;margin:0;line-height:1.4}.nav-menus-php .metabox-holder h3{padding:10px 14px 11px 10px;line-height:1.5}#templateside ul li a{text-decoration:none}.plugin-install #description,.plugin-install-network #description{width:60%}table .column-rating,table .column-visible,table .vers{text-align:right}.attention,.error-message{color:#d63638;font-weight:600}body.iframe{height:98%}.lp-show-latest p{display:none}.lp-show-latest .lp-error p,.lp-show-latest p:last-child{display:block}.media-icon{width:62px;text-align:center}.media-icon img{border:1px solid #dcdcde;border:1px solid rgba(0,0,0,.07)}#howto{font-size:11px;margin:0 5px;display:block}.importers{font-size:16px;width:auto}.importers td{padding-left:14px;line-height:1.4}.importers .import-system{max-width:250px}.importers td.desc{max-width:500px}.importer-action,.importer-desc,.importer-title{display:block}.importer-title{color:#000;font-size:14px;font-weight:400;margin-bottom:.2em}.importer-action{line-height:1.55;color:#50575e;margin-bottom:1em}#post-body #post-body-content #namediv h2,#post-body #post-body-content #namediv h3{margin-top:0}.edit-comment-author{color:#1d2327;border-bottom:1px solid #f0f0f1}#namediv h2 label,#namediv h3 label{vertical-align:baseline}#namediv table{width:100%}#namediv td.first{width:10px;white-space:nowrap}#namediv input{width:100%}#namediv p{margin:10px 0}.zerosize{height:0;width:0;margin:0;border:0;padding:0;overflow:hidden;position:absolute}br.clear{height:2px;line-height:.15}.checkbox{border:none;margin:0;padding:0}fieldset{border:0;padding:0;margin:0}.post-categories{display:inline;margin:0;padding:0}.post-categories li{display:inline}div.star-holder{position:relative;height:17px;width:100px;background:url(../images/stars.png?ver=20121108) repeat-x bottom right}div.star-holder .star-rating{background:url(../images/stars.png?ver=20121108) repeat-x top right;height:17px;float:right}.star-rating{white-space:nowrap}.star-rating .star{display:inline-block;width:20px;height:20px;-webkit-font-smoothing:antialiased;font-size:20px;line-height:1;font-family:dashicons;text-decoration:inherit;font-weight:400;font-style:normal;vertical-align:top;transition:color .1s ease-in;text-align:center;color:#dba617}.star-rating .star-full:before{content:"\f155"}.star-rating .star-half:before{content:"\f459"}.rtl .star-rating .star-half{transform:rotateY(-180deg)}.star-rating .star-empty:before{content:"\f154"}div.action-links{font-weight:400;margin:6px 0 0}#plugin-information{background:#fff;position:fixed;top:0;left:0;bottom:0;right:0;height:100%;padding:0}#plugin-information-scrollable{overflow:auto;-webkit-overflow-scrolling:touch;height:100%}#plugin-information-title{padding:0 26px;background:#f6f7f7;font-size:22px;font-weight:600;line-height:2.4;position:relative;height:56px}#plugin-information-title.with-banner{margin-left:0;height:250px;background-size:cover}#plugin-information-title h2{font-size:1em;font-weight:600;padding:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#plugin-information-title.with-banner h2{position:relative;font-family:"Helvetica Neue",sans-serif;display:inline-block;font-size:30px;line-height:1.68;box-sizing:border-box;max-width:100%;padding:0 15px;margin-top:174px;color:#fff;background:rgba(29,35,39,.9);text-shadow:0 1px 3px rgba(0,0,0,.4);box-shadow:0 0 30px rgba(255,255,255,.1);border-radius:8px}#plugin-information-title div.vignette{display:none}#plugin-information-title.with-banner div.vignette{position:absolute;display:block;top:0;right:0;height:250px;width:100%;background:0 0;box-shadow:inset 0 0 50px 4px rgba(0,0,0,.2),inset 0 -1px 0 rgba(0,0,0,.1)}#plugin-information-tabs{padding:0 16px;position:relative;left:0;right:0;min-height:36px;font-size:0;z-index:1;border-bottom:1px solid #dcdcde;background:#f6f7f7}#plugin-information-tabs a{position:relative;display:inline-block;padding:9px 10px;margin:0;height:18px;line-height:1.3;font-size:14px;text-decoration:none;transition:none}#plugin-information-tabs a.current{margin:0 -1px -1px;background:#fff;border:1px solid #dcdcde;border-bottom-color:#fff;padding-top:8px;color:#2c3338}#plugin-information-tabs.with-banner a.current{border-top:none;padding-top:9px}#plugin-information-tabs a:active,#plugin-information-tabs a:focus{outline:0}#plugin-information-content{overflow:hidden;background:#fff;position:relative;top:0;left:0;right:0;min-height:100%;min-height:calc(100% - 152px)}#plugin-information-content.with-banner{min-height:calc(100% - 346px)}#section-holder{position:relative;top:0;left:250px;bottom:0;right:0;margin-top:10px;margin-left:250px;padding:10px 26px 99999px;margin-bottom:-99932px}#section-holder .notice{margin:5px 0 15px}#section-holder .updated{margin:16px 0}#plugin-information .fyi{float:left;position:relative;top:0;left:0;padding:16px 16px 99999px;margin-bottom:-99932px;width:217px;border-right:1px solid #dcdcde;background:#f6f7f7;color:#646970}#plugin-information .fyi strong{color:#3c434a}#plugin-information .fyi h3{font-weight:600;text-transform:uppercase;font-size:12px;color:#646970;margin:24px 0 8px}#plugin-information .fyi h2{font-size:.9em;margin-bottom:0;margin-left:0}#plugin-information .fyi ul{padding:0;margin:0;list-style:none}#plugin-information .fyi li{margin:0 0 10px}#plugin-information .fyi-description{margin-top:0}#plugin-information .counter-container{margin:3px 0}#plugin-information .counter-label{float:right;margin-left:5px;min-width:55px}#plugin-information .counter-back{height:17px;width:92px;background-color:#dcdcde;float:right}#plugin-information .counter-bar{height:17px;background-color:#f0c33c;float:right}#plugin-information .counter-count{margin-right:5px}#plugin-information .fyi ul.contributors{margin-top:10px}#plugin-information .fyi ul.contributors li{display:inline-block;margin-left:8px;vertical-align:middle}#plugin-information .fyi ul.contributors li{display:inline-block;margin-left:8px;vertical-align:middle}#plugin-information .fyi ul.contributors li img{vertical-align:middle;margin-left:4px}#plugin-information-footer{padding:13px 16px;position:absolute;left:0;bottom:0;right:0;height:40px;border-top:1px solid #dcdcde;background:#f6f7f7}#plugin-information .section{direction:ltr}#plugin-information .section ol,#plugin-information .section ul{list-style-type:disc;margin-left:24px}#plugin-information .section,#plugin-information .section p{font-size:14px;line-height:1.7}#plugin-information #section-screenshots ol{list-style:none;margin:0}#plugin-information #section-screenshots li img{vertical-align:text-top;margin-top:16px;max-width:100%;width:auto;height:auto;box-shadow:0 1px 2px rgba(0,0,0,.3)}#plugin-information #section-screenshots li p{font-style:italic;padding-left:20px}#plugin-information pre{padding:7px;overflow:auto;border:1px solid #c3c4c7}#plugin-information blockquote{border-right:2px solid #dcdcde;color:#646970;font-style:italic;margin:1em 0;padding:0 1em 0 0}#plugin-information .review{overflow:hidden;width:100%;margin-bottom:20px;border-bottom:1px solid #dcdcde}#plugin-information .review-title-section{overflow:hidden}#plugin-information .review-title-section h4{display:inline-block;float:left;margin:0 6px 0 0}#plugin-information .reviewer-info p{clear:both;margin:0;padding-top:2px}#plugin-information .reviewer-info .avatar{float:left;margin:4px 6px 0 0}#plugin-information .reviewer-info .star-rating{float:left}#plugin-information .review-meta{float:left;margin-left:.75em}#plugin-information .review-body{float:left;width:100%}.plugin-version-author-uri{font-size:13px}.update-php .button.button-primary{margin-left:1em}@media screen and (max-width:771px){#plugin-information-title.with-banner{height:100px}#plugin-information-title.with-banner h2{margin-top:30px;font-size:20px;line-height:2;max-width:85%}#plugin-information-title.with-banner div.vignette{height:100px}#plugin-information-tabs{overflow:hidden;padding:0;height:auto}#plugin-information-tabs a.current{margin-bottom:0;border-bottom:none}#plugin-information .fyi{float:none;border:1px solid #dcdcde;position:static;width:auto;margin:26px 26px 0;padding-bottom:0}#section-holder{position:static;margin:0;padding-bottom:70px}#plugin-information .fyi h3,#plugin-information .fyi small{display:none}#plugin-information-footer{padding:12px 16px 0;height:46px}}#TB_window.plugin-details-modal{background:#fff}#TB_window.plugin-details-modal.thickbox-loading:before{content:"";display:block;width:20px;height:20px;position:absolute;right:50%;top:50%;z-index:-1;margin:-10px -10px 0 0;background:#fff url(../images/spinner.gif) no-repeat center;background-size:20px 20px;transform:translateZ(0)}@media print,(min-resolution:120dpi){#TB_window.plugin-details-modal.thickbox-loading:before{background-image:url(../images/spinner-2x.gif)}}.plugin-details-modal #TB_title{float:right;height:1px}.plugin-details-modal #TB_ajaxWindowTitle{display:none}.plugin-details-modal #TB_closeWindowButton{right:auto;left:-30px;color:#f0f0f1}.plugin-details-modal #TB_closeWindowButton:focus,.plugin-details-modal #TB_closeWindowButton:hover{outline:0;box-shadow:none}.plugin-details-modal #TB_closeWindowButton:focus::after,.plugin-details-modal #TB_closeWindowButton:hover::after{outline:2px solid;outline-offset:-4px;border-radius:4px}.plugin-details-modal .tb-close-icon{display:none}.plugin-details-modal #TB_closeWindowButton:after{content:"\f335";font:normal 32px/29px dashicons;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media screen and (max-width:830px){.plugin-details-modal #TB_closeWindowButton{left:0;top:-30px}}img{border:none}.bulk-action-notice .toggle-indicator::before,.meta-box-sortables .postbox .order-higher-indicator::before,.meta-box-sortables .postbox .order-lower-indicator::before,.meta-box-sortables .postbox .toggle-indicator::before,.privacy-text-box .toggle-indicator::before,.sidebar-name .toggle-indicator::before{content:"\f142";display:inline-block;font:normal 20px/1 dashicons;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}.bulk-action-notice .bulk-action-errors-collapsed .toggle-indicator::before,.js .widgets-holder-wrap.closed .toggle-indicator::before,.meta-box-sortables .postbox.closed .handlediv .toggle-indicator::before,.privacy-text-box.closed .toggle-indicator::before{content:"\f140"}.postbox .handle-order-higher .order-higher-indicator::before{content:"\f343";color:inherit}.postbox .handle-order-lower .order-lower-indicator::before{content:"\f347";color:inherit}.postbox .handle-order-higher .order-higher-indicator::before,.postbox .handle-order-lower .order-lower-indicator::before{position:relative;top:.11rem;width:20px;height:20px}.postbox .handlediv .toggle-indicator::before{width:20px;border-radius:50%}.postbox .handlediv .toggle-indicator::before{position:relative;top:.05rem;text-indent:-1px}.rtl .postbox .handlediv .toggle-indicator::before{text-indent:1px}.bulk-action-notice .toggle-indicator::before{line-height:16px;vertical-align:top;color:#787c82}.postbox .handle-order-higher:focus,.postbox .handle-order-lower:focus,.postbox .handlediv:focus{box-shadow:inset 0 0 0 2px #2271b1;border-radius:50%;outline:2px solid transparent}.postbox .handle-order-higher:focus .order-higher-indicator::before,.postbox .handle-order-lower:focus .order-lower-indicator::before,.postbox .handlediv:focus .toggle-indicator::before{box-shadow:none;outline:1px solid transparent}#photo-add-url-div input[type=text]{width:300px}.alignleft h2{margin:0}#template textarea{font-family:Consolas,Monaco,monospace;font-size:13px;background:#f6f7f7;tab-size:4}#template .CodeMirror,#template textarea{width:100%;min-height:60vh;height:calc(100vh - 295px);border:1px solid #dcdcde;box-sizing:border-box}#templateside>h2{padding-top:6px;padding-bottom:7px;margin:0}#templateside ol,#templateside ul{margin:0;padding:0}#templateside>ul{box-sizing:border-box;margin-top:0;overflow:auto;padding:0;min-height:60vh;height:calc(100vh - 295px);background-color:#f6f7f7;border:1px solid #dcdcde;border-right:none}#templateside ul ul{padding-right:12px}#templateside>ul>li>ul[role=group]{padding-right:0}[role=treeitem][aria-expanded=false]>ul{display:none}[role=treeitem] span[aria-hidden]{display:inline;font-family:dashicons;font-size:20px;position:absolute;pointer-events:none}[role=treeitem][aria-expanded=false]>.folder-label .icon:after{content:"\f141"}[role=treeitem][aria-expanded=true]>.folder-label .icon:after{content:"\f140"}[role=treeitem] .folder-label{display:block;padding:3px 12px 3px 3px;cursor:pointer}[role=treeitem]{outline:0}[role=treeitem] .folder-label.focus,[role=treeitem] a:focus{color:#043959;box-shadow:none;outline:2px solid #2271b1;outline-offset:-2px}[role=treeitem] .folder-label.hover,[role=treeitem].hover{background-color:#f0f0f1}.tree-folder{margin:0;position:relative}[role=treeitem] li{position:relative}.tree-folder .tree-folder::after{content:"";display:block;position:absolute;right:2px;border-right:1px solid #c3c4c7;top:-13px;bottom:10px}.tree-folder>li::before{content:"";position:absolute;display:block;border-right:1px solid #c3c4c7;right:2px;top:-5px;height:18px;width:7px;border-bottom:1px solid #c3c4c7}.tree-folder>li::after{content:"";position:absolute;display:block;border-right:1px solid #c3c4c7;right:2px;bottom:-7px;top:0}#templateside .current-file{margin:-4px 0 -2px}.tree-folder>.current-file::before{right:4px;height:15px;width:0;border-right:none;top:3px}.tree-folder>.current-file::after{bottom:-4px;height:7px;right:2px;top:auto}.tree-folder li:last-child>.tree-folder::after,.tree-folder>li:last-child::after{display:none}#documentation label,#theme-plugin-editor-label,#theme-plugin-editor-selector{font-weight:600}#theme-plugin-editor-label{display:inline-block;margin-bottom:1em}#docs-list,#template textarea{direction:ltr}.fileedit-sub #plugin,.fileedit-sub #theme{max-width:40%}.fileedit-sub .alignright{text-align:left}#template p{width:97%}#file-editor-linting-error{margin-top:1em;margin-bottom:1em}#file-editor-linting-error>.notice{margin:0;display:inline-block}#file-editor-linting-error>.notice>p{width:auto}#template .submit{margin-top:1em;padding:0}#template .submit input[type=submit][disabled]{cursor:not-allowed}#templateside{float:left;width:16em;word-wrap:break-word}#postcustomstuff p.submit{margin:0}#templateside h4{margin:1em 0 0}#templateside li{margin:4px 0}#templateside li:not(.howto) a,.theme-editor-php .highlight{display:block;padding:3px 12px 3px 0;text-decoration:none}#templateside li.current-file>a{padding-bottom:0}#templateside li:not(.howto)>a:first-of-type{padding-top:0}#templateside li.howto{padding:6px 12px 12px}.theme-editor-php .highlight{margin:-3px -12px -3px 3px}#templateside .highlight{border:none;font-weight:600}.nonessential{color:#646970;font-size:11px;font-style:italic;padding-right:12px}#documentation{margin-top:10px}#documentation label{line-height:1.8;vertical-align:baseline}.fileedit-sub{padding:10px 0 8px;line-height:180%}#file-editor-warning .file-editor-warning-content{margin:25px}.accordion-section-title:after,.control-section .accordion-section-title:after,.nav-menus-php .item-edit:before,.widget-top .widget-action .toggle-indicator:before{content:"\f140";font:normal 20px/1 dashicons;speak:never;display:block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}.widget-top .widget-action .toggle-indicator:before{padding:1px 0 1px 2px;border-radius:50%}.accordion-section-title:after,.handlediv,.item-edit,.postbox .handlediv.button-link,.toggle-indicator{color:#787c82}.widget-action{color:#50575e}.accordion-section-title:hover:after,.handlediv:focus,.handlediv:hover,.item-edit:focus,.item-edit:hover,.postbox .handlediv.button-link:focus,.postbox .handlediv.button-link:hover,.sidebar-name:hover .toggle-indicator,.widget-action:focus,.widget-top:hover .widget-action{color:#1d2327;outline:2px solid transparent}.widget-top .widget-action:focus .toggle-indicator:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.accordion-section-title:after,.control-section .accordion-section-title:after{float:left;left:20px;top:-2px}#customize-info.open .accordion-section-title:after,.control-section.open .accordion-section-title:after,.nav-menus-php .menu-item-edit-active .item-edit:before,.widget.open .widget-top .widget-action .toggle-indicator:before,.widget.widget-in-question .widget-top .widget-action .toggle-indicator:before{content:"\f142"}/*!
* jQuery UI Draggable/Sortable 1.11.4
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
- */.ui-draggable-handle,.ui-sortable-handle{touch-action:none}.accordion-section{border-bottom:1px solid #dcdcde;margin:0}.accordion-section.open .accordion-section-content,.no-js .accordion-section .accordion-section-content{display:block}.accordion-section.open:hover{border-bottom-color:#dcdcde}.accordion-section-content{display:none;padding:10px 20px 15px;overflow:hidden;background:#fff}.accordion-section-title{margin:0;padding:12px 15px 15px;position:relative;border-right:1px solid #dcdcde;border-left:1px solid #dcdcde;-webkit-user-select:none;user-select:none}.js .accordion-section-title{cursor:pointer}.js .accordion-section-title:after{position:absolute;top:12px;left:10px;z-index:1}.accordion-section-title:focus{outline:1px solid transparent}.accordion-section-title:focus:after,.accordion-section-title:hover:after{border-color:#a7aaad transparent;outline:1px solid transparent}.cannot-expand .accordion-section-title{cursor:auto}.cannot-expand .accordion-section-title:after{display:none}.control-section .accordion-section-title,.customize-pane-child .accordion-section-title{border-right:none;border-left:none;padding:10px 14px 11px 10px;line-height:1.55;background:#fff}.control-section .accordion-section-title:after,.customize-pane-child .accordion-section-title:after{top:calc(50% - 10px)}.js .control-section .accordion-section-title:focus,.js .control-section .accordion-section-title:hover,.js .control-section.open .accordion-section-title,.js .control-section:hover .accordion-section-title{color:#1d2327;background:#f6f7f7}.control-section.open .accordion-section-title{border-bottom:1px solid #dcdcde}.network-admin .edit-site-actions{margin-top:0}.my-sites{display:block;overflow:auto;zoom:1}.my-sites li{display:block;padding:8px 3%;min-height:130px;margin:0}@media only screen and (max-width:599px){.my-sites li{min-height:0}}@media only screen and (min-width:600px){.my-sites.striped li{background-color:#fff;position:relative}.my-sites.striped li:after{content:"";width:1px;height:100%;position:absolute;top:0;left:0;background:#c3c4c7}}@media only screen and (min-width:600px) and (max-width:699px){.my-sites li{float:right;width:44%}.my-sites.striped li{background-color:#fff}.my-sites.striped li:nth-of-type(odd){clear:right}.my-sites.striped li:nth-of-type(2n+2):after{content:none}.my-sites li:nth-of-type(4n+1),.my-sites li:nth-of-type(4n+2){background-color:#f6f7f7}}@media only screen and (min-width:700px) and (max-width:1199px){.my-sites li{float:right;width:27.333333%;background-color:#fff}.my-sites.striped li:nth-of-type(3n+3):after{content:none}.my-sites li:nth-of-type(6n+1),.my-sites li:nth-of-type(6n+2),.my-sites li:nth-of-type(6n+3){background-color:#f6f7f7}}@media only screen and (min-width:1200px) and (max-width:1399px){.my-sites li{float:right;width:21%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(4n+1){clear:right}.my-sites.striped li:nth-of-type(4n+4):after{content:none}.my-sites li:nth-of-type(8n+1),.my-sites li:nth-of-type(8n+2),.my-sites li:nth-of-type(8n+3),.my-sites li:nth-of-type(8n+4){background-color:#f6f7f7}}@media only screen and (min-width:1400px) and (max-width:1599px){.my-sites li{float:right;width:16%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(5n+1){clear:right}.my-sites.striped li:nth-of-type(5n+5):after{content:none}.my-sites li:nth-of-type(10n+1),.my-sites li:nth-of-type(10n+2),.my-sites li:nth-of-type(10n+3),.my-sites li:nth-of-type(10n+4),.my-sites li:nth-of-type(10n+5){background-color:#f6f7f7}}@media only screen and (min-width:1600px){.my-sites li{float:right;width:12.666666%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(6n+1){clear:right}.my-sites.striped li:nth-of-type(6n+6):after{content:none}.my-sites li:nth-of-type(12n+1),.my-sites li:nth-of-type(12n+2),.my-sites li:nth-of-type(12n+3),.my-sites li:nth-of-type(12n+4),.my-sites li:nth-of-type(12n+5),.my-sites li:nth-of-type(12n+6){background-color:#f6f7f7}}.my-sites li a{text-decoration:none}@media print,(min-resolution:120dpi){div.star-holder,div.star-holder .star-rating{background:url(../images/stars-2x.png?ver=20121108) repeat-x bottom right;background-size:21px 37px}.spinner{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){html.wp-toolbar{padding-top:46px}.screen-reader-shortcut:focus{top:-39px}body{min-width:240px;overflow-x:hidden}body *{-webkit-tap-highlight-color:transparent!important}#wpcontent{position:relative;margin-right:0;padding-right:10px}#wpbody-content{padding-bottom:100px}.wrap{clear:both;margin-left:12px;margin-right:0}#col-left,#col-right{float:none;width:auto}#col-left .col-wrap,#col-right .col-wrap{padding:0}#collapse-menu,.post-format-select{display:none!important}.wrap h1.wp-heading-inline{margin-bottom:.5em}.wrap .add-new-h2,.wrap .add-new-h2:active,.wrap .page-title-action,.wrap .page-title-action:active{padding:10px 15px;font-size:14px;white-space:nowrap}.media-upload-form div.error,.notice,.wrap div.error,.wrap div.updated{margin:20px 0 10px;padding:5px 10px;font-size:14px;line-height:175%}.wp-core-ui .notice.is-dismissible{padding-left:46px}.notice-dismiss{padding:13px}.wrap .icon32+h2{margin-top:-2px}.wp-responsive-open #wpbody{left:-16em}code{word-wrap:break-word;word-wrap:anywhere;word-break:break-word}.postbox{font-size:14px}.metabox-holder .postbox>h3,.metabox-holder .stuffbox>h3,.metabox-holder h2,.metabox-holder h3.hndle{padding:12px}.postbox .handlediv{margin-top:3px}.subsubsub{font-size:16px;text-align:center;margin-bottom:15px}#template .CodeMirror,#template textarea{box-sizing:border-box}#templateside{float:none;width:auto}#templateside>ul{border-right:1px solid #dcdcde}#templateside li{margin:0}#templateside li:not(.howto) a{display:block;padding:5px}#templateside li.howto{padding:12px}#templateside .highlight{padding:5px;margin-right:-5px;margin-top:-5px}#template .notice,#template>div{float:none;margin:1em 0;width:auto}#template .CodeMirror,#template textarea{width:100%}#templateside ul ul{padding-right:1.5em}[role=treeitem] .folder-label{display:block;padding:5px}.tree-folder .tree-folder::after,.tree-folder>li::after,.tree-folder>li::before{right:-8px}.tree-folder>li::before{top:0;height:13px}.tree-folder>.current-file::before{right:-5px;top:7px;width:4px}.tree-folder>.current-file::after{height:9px;right:-8px}.wrap #templateside span.notice{margin-right:-5px;width:100%}.fileedit-sub .alignright{float:right;margin-top:15px;width:100%;text-align:right}.fileedit-sub .alignright label{display:block}.fileedit-sub #plugin,.fileedit-sub #theme{margin-right:0;max-width:70%}.fileedit-sub input[type=submit]{margin-bottom:0}#documentation label[for=docs-list]{display:block}#documentation select[name=docs-list]{margin-right:0;max-width:60%}#documentation input[type=button]{margin-bottom:0}#wpfooter{display:none}#comments-form .checkforspam{display:none}.edit-comment-author{margin:2px 0 0}.filter-drawer .filter-group-feature input,.filter-drawer .filter-group-feature label{line-height:2.1}.filter-drawer .filter-group-feature label{margin-right:32px}.wp-filter .button.drawer-toggle{font-size:13px;line-height:2;height:28px}#screen-meta #contextual-help-wrap{overflow:visible}#screen-meta #contextual-help-back,#screen-meta .contextual-help-sidebar{display:none}#screen-meta .contextual-help-tabs{clear:both;width:100%;float:none}#screen-meta .contextual-help-tabs ul{margin:0 0 1em;padding:1em 0 0}#screen-meta .contextual-help-tabs .active{margin:0}#screen-meta .contextual-help-tabs-wrap{clear:both;max-width:100%;float:none}#screen-meta,#screen-meta-links{margin-left:10px}#screen-meta-links{margin-bottom:20px}.wp-filter .search-form input[type=search]{width:100%;font-size:1rem}.wp-filter .search-form.search-plugins{min-width:100%}}@media screen and (max-width:600px){#wpwrap.wp-responsive-open{overflow-x:hidden}html.wp-toolbar{padding-top:0}.screen-reader-shortcut:focus{top:7px}#wpbody{padding-top:46px}div#post-body.metabox-holder.columns-1{overflow-x:hidden}.nav-tab-wrapper,.wrap h2.nav-tab-wrapper,h1.nav-tab-wrapper{border-bottom:0}h1 .nav-tab,h2 .nav-tab,h3 .nav-tab,nav .nav-tab{margin:10px 0 0 10px;border-bottom:1px solid #c3c4c7}.nav-tab-active:focus,.nav-tab-active:focus:active,.nav-tab-active:hover{border-bottom:1px solid #c3c4c7}}@media screen and (max-width:480px){.metabox-prefs-container{display:grid}.metabox-prefs-container>*{display:inline-block;padding:2px}}@media screen and (max-width:320px){#network_dashboard_right_now .subsubsub{font-size:14px;text-align:right}} \ No newline at end of file
+ */.ui-draggable-handle,.ui-sortable-handle{touch-action:none}.accordion-section{border-bottom:1px solid #dcdcde;margin:0}.accordion-section.open .accordion-section-content,.no-js .accordion-section .accordion-section-content{display:block}.accordion-section.open:hover{border-bottom-color:#dcdcde}.accordion-section-content{display:none;padding:10px 20px 15px;overflow:hidden;background:#fff}.accordion-section-title{margin:0;padding:12px 15px 15px;position:relative;border-right:1px solid #dcdcde;border-left:1px solid #dcdcde;-webkit-user-select:none;user-select:none}.js .accordion-section-title{cursor:pointer}.js .accordion-section-title:after{position:absolute;top:12px;left:10px;z-index:1}.accordion-section-title:focus{outline:1px solid transparent}.accordion-section-title:focus:after,.accordion-section-title:hover:after{border-color:#a7aaad transparent;outline:1px solid transparent}.cannot-expand .accordion-section-title{cursor:auto}.cannot-expand .accordion-section-title:after{display:none}.control-section .accordion-section-title,.customize-pane-child .accordion-section-title{border-right:none;border-left:none;padding:10px 14px 11px 10px;line-height:1.55;background:#fff}.control-section .accordion-section-title:after,.customize-pane-child .accordion-section-title:after{top:calc(50% - 10px)}.js .control-section .accordion-section-title:focus,.js .control-section .accordion-section-title:hover,.js .control-section.open .accordion-section-title,.js .control-section:hover .accordion-section-title{color:#1d2327;background:#f6f7f7}.control-section.open .accordion-section-title{border-bottom:1px solid #dcdcde}.network-admin .edit-site-actions{margin-top:0}.my-sites{display:block;overflow:auto;zoom:1}.my-sites li{display:block;padding:8px 3%;min-height:130px;margin:0}@media only screen and (max-width:599px){.my-sites li{min-height:0}}@media only screen and (min-width:600px){.my-sites.striped li{background-color:#fff;position:relative}.my-sites.striped li:after{content:"";width:1px;height:100%;position:absolute;top:0;left:0;background:#c3c4c7}}@media only screen and (min-width:600px) and (max-width:699px){.my-sites li{float:right;width:44%}.my-sites.striped li{background-color:#fff}.my-sites.striped li:nth-of-type(odd){clear:right}.my-sites.striped li:nth-of-type(2n+2):after{content:none}.my-sites li:nth-of-type(4n+1),.my-sites li:nth-of-type(4n+2){background-color:#f6f7f7}}@media only screen and (min-width:700px) and (max-width:1199px){.my-sites li{float:right;width:27.333333%;background-color:#fff}.my-sites.striped li:nth-of-type(3n+3):after{content:none}.my-sites li:nth-of-type(6n+1),.my-sites li:nth-of-type(6n+2),.my-sites li:nth-of-type(6n+3){background-color:#f6f7f7}}@media only screen and (min-width:1200px) and (max-width:1399px){.my-sites li{float:right;width:21%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(4n+1){clear:right}.my-sites.striped li:nth-of-type(4n+4):after{content:none}.my-sites li:nth-of-type(8n+1),.my-sites li:nth-of-type(8n+2),.my-sites li:nth-of-type(8n+3),.my-sites li:nth-of-type(8n+4){background-color:#f6f7f7}}@media only screen and (min-width:1400px) and (max-width:1599px){.my-sites li{float:right;width:16%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(5n+1){clear:right}.my-sites.striped li:nth-of-type(5n+5):after{content:none}.my-sites li:nth-of-type(10n+1),.my-sites li:nth-of-type(10n+2),.my-sites li:nth-of-type(10n+3),.my-sites li:nth-of-type(10n+4),.my-sites li:nth-of-type(10n+5){background-color:#f6f7f7}}@media only screen and (min-width:1600px){.my-sites li{float:right;width:12.666666%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(6n+1){clear:right}.my-sites.striped li:nth-of-type(6n+6):after{content:none}.my-sites li:nth-of-type(12n+1),.my-sites li:nth-of-type(12n+2),.my-sites li:nth-of-type(12n+3),.my-sites li:nth-of-type(12n+4),.my-sites li:nth-of-type(12n+5),.my-sites li:nth-of-type(12n+6){background-color:#f6f7f7}}.my-sites li a{text-decoration:none}@media print,(min-resolution:120dpi){div.star-holder,div.star-holder .star-rating{background:url(../images/stars-2x.png?ver=20121108) repeat-x bottom right;background-size:21px 37px}.spinner{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){html.wp-toolbar{padding-top:46px}.screen-reader-shortcut:focus{top:-39px}body{min-width:240px;overflow-x:hidden}body *{-webkit-tap-highlight-color:transparent!important}#wpcontent{position:relative;margin-right:0;padding-right:10px}#wpbody-content{padding-bottom:100px}.wrap{clear:both;margin-left:12px;margin-right:0}#col-left,#col-right{float:none;width:auto}#col-left .col-wrap,#col-right .col-wrap{padding:0}#collapse-menu,.post-format-select{display:none!important}.wrap h1.wp-heading-inline{margin-bottom:.5em}.wrap .add-new-h2,.wrap .add-new-h2:active,.wrap .page-title-action,.wrap .page-title-action:active{padding:10px 15px;font-size:14px;white-space:nowrap}.media-upload-form div.error,.notice,.wrap div.error,.wrap div.updated{margin:20px 0 10px;padding:5px 10px;font-size:14px;line-height:175%}.wp-core-ui .notice.is-dismissible{padding-left:46px}.notice-dismiss{padding:13px}.wrap .icon32+h2{margin-top:-2px}.wp-responsive-open #wpbody{left:-16em}code{word-wrap:break-word;word-wrap:anywhere;word-break:break-word}.postbox{font-size:14px}.metabox-holder .postbox>h3,.metabox-holder .stuffbox>h3,.metabox-holder h2,.metabox-holder h3.hndle{padding:12px}.postbox .handlediv{margin-top:3px}.subsubsub{font-size:16px;text-align:center;margin-bottom:15px}#template .CodeMirror,#template textarea{box-sizing:border-box}#templateside{float:none;width:auto}#templateside>ul{border-right:1px solid #dcdcde}#templateside li{margin:0}#templateside li:not(.howto) a{display:block;padding:5px}#templateside li.howto{padding:12px}#templateside .highlight{padding:5px;margin-right:-5px;margin-top:-5px}#template .notice,#template>div{float:none;margin:1em 0;width:auto}#template .CodeMirror,#template textarea{width:100%}#templateside ul ul{padding-right:1.5em}[role=treeitem] .folder-label{display:block;padding:5px}.tree-folder .tree-folder::after,.tree-folder>li::after,.tree-folder>li::before{right:-8px}.tree-folder>li::before{top:0;height:13px}.tree-folder>.current-file::before{right:-5px;top:7px;width:4px}.tree-folder>.current-file::after{height:9px;right:-8px}.wrap #templateside span.notice{margin-right:-5px;width:100%}.fileedit-sub .alignright{float:right;margin-top:15px;width:100%;text-align:right}.fileedit-sub .alignright label{display:block}.fileedit-sub #plugin,.fileedit-sub #theme{margin-right:0;max-width:70%}.fileedit-sub input[type=submit]{margin-bottom:0}#documentation label[for=docs-list]{display:block}#documentation select[name=docs-list]{margin-right:0;max-width:60%}#documentation input[type=button]{margin-bottom:0}#wpfooter{display:none}#comments-form .checkforspam{display:none}.edit-comment-author{margin:2px 0 0}.filter-drawer .filter-group-feature input,.filter-drawer .filter-group-feature label{line-height:2.1}.filter-drawer .filter-group-feature label{margin-right:32px}.wp-filter .button.drawer-toggle{font-size:13px;line-height:2;height:28px}#screen-meta #contextual-help-wrap{overflow:visible}#screen-meta #contextual-help-back,#screen-meta .contextual-help-sidebar{display:none}#screen-meta .contextual-help-tabs{clear:both;width:100%;float:none}#screen-meta .contextual-help-tabs ul{margin:0 0 1em;padding:1em 0 0}#screen-meta .contextual-help-tabs .active{margin:0}#screen-meta .contextual-help-tabs-wrap{clear:both;max-width:100%;float:none}#screen-meta,#screen-meta-links{margin-left:10px}#screen-meta-links{margin-bottom:20px}.wp-filter .search-form input[type=search]{font-size:1rem}.wp-filter .search-form.search-plugins{min-width:100%}}@media screen and (max-width:600px){#wpwrap.wp-responsive-open{overflow-x:hidden}html.wp-toolbar{padding-top:0}.screen-reader-shortcut:focus{top:7px}#wpbody{padding-top:46px}div#post-body.metabox-holder.columns-1{overflow-x:hidden}.nav-tab-wrapper,.wrap h2.nav-tab-wrapper,h1.nav-tab-wrapper{border-bottom:0}h1 .nav-tab,h2 .nav-tab,h3 .nav-tab,nav .nav-tab{margin:10px 0 0 10px;border-bottom:1px solid #c3c4c7}.nav-tab-active:focus,.nav-tab-active:focus:active,.nav-tab-active:hover{border-bottom:1px solid #c3c4c7}.wp-filter .search-form.search-plugins label{width:100%}}@media screen and (max-width:480px){.metabox-prefs-container{display:grid}.metabox-prefs-container>*{display:inline-block;padding:2px}}@media screen and (max-width:320px){#network_dashboard_right_now .subsubsub{font-size:14px;text-align:right}} \ No newline at end of file
diff --git a/wp-admin/css/common.css b/wp-admin/css/common.css
index 53151a4..b8a1e8b 100644
--- a/wp-admin/css/common.css
+++ b/wp-admin/css/common.css
@@ -123,7 +123,6 @@
.ui-helper-hidden-accessible {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
- -webkit-clip-path: inset(50%);
clip-path: inset(50%);
height: 1px;
margin: -1px;
@@ -1090,7 +1089,9 @@ th.action-links {
.wp-filter .search-form {
float: right;
- margin: 10px 0;
+ display: flex;
+ align-items: center;
+ column-gap: .5rem;
}
.wp-filter .search-form input[type="search"] {
@@ -1119,7 +1120,6 @@ th.action-links {
.wp-filter .search-form.search-plugins .wp-filter-search,
.no-js .wp-filter .search-form.search-plugins .button {
display: inline-block;
- margin-top: 10px;
vertical-align: top;
}
@@ -1360,6 +1360,11 @@ th.action-links {
position: relative;
max-width: 100%;
}
+ .wp-filter .search-form {
+ margin: 11px 0;
+ flex-wrap: wrap;
+ row-gap: 10px;
+ }
}
@media only screen and (max-width: 782px) {
@@ -4132,7 +4137,6 @@ img {
}
.wp-filter .search-form input[type="search"] {
- width: 100%;
font-size: 1rem;
}
@@ -4186,6 +4190,10 @@ img {
.nav-tab-active:focus:active {
border-bottom: 1px solid #c3c4c7;
}
+
+ .wp-filter .search-form.search-plugins label {
+ width: 100%;
+ }
}
@media screen and (max-width: 480px) {
diff --git a/wp-admin/css/common.min.css b/wp-admin/css/common.min.css
index 084bc5d..cfe6114 100644
--- a/wp-admin/css/common.min.css
+++ b/wp-admin/css/common.min.css
@@ -1,9 +1,9 @@
/*! This file is auto-generated */
-#wpwrap{height:auto;min-height:100%;width:100%;position:relative;-webkit-font-smoothing:subpixel-antialiased}#wpcontent{height:100%;padding-left:20px}#wpcontent,#wpfooter{margin-left:160px}.folded #wpcontent,.folded #wpfooter{margin-left:36px}#wpbody-content{padding-bottom:65px;float:left;width:100%;overflow:visible}.inner-sidebar{float:right;clear:right;display:none;width:281px;position:relative}.columns-2 .inner-sidebar{margin-right:auto;width:286px;display:block}.columns-2 .inner-sidebar #side-sortables,.inner-sidebar #side-sortables{min-height:300px;width:280px;padding:0}.has-right-sidebar .inner-sidebar{display:block}.has-right-sidebar #post-body{float:left;clear:left;width:100%;margin-right:-2000px}.has-right-sidebar #post-body-content{margin-right:300px;float:none;width:auto}#col-left{float:left;width:35%}#col-right{float:right;width:65%}#col-left .col-wrap{padding:0 6px 0 0}#col-right .col-wrap{padding:0 0 0 6px}.alignleft{float:left}.alignright{float:right}.textleft{text-align:left}.textright{text-align:right}.clear{clear:both}.wp-clearfix:after{content:"";display:table;clear:both}.screen-reader-text,.screen-reader-text span,.ui-helper-hidden-accessible{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}.button .screen-reader-text{height:auto}.screen-reader-text+.dashicons-external{margin-top:-1px;margin-left:2px}.screen-reader-shortcut{position:absolute;top:-1000em;left:6px;height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f0f0f1;color:#2271b1;z-index:100000;line-height:normal}.screen-reader-shortcut:focus{top:-25px;color:#2271b1;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:2px solid transparent;outline-offset:-2px}.hidden,.js .closed .inside,.js .hide-if-js,.js .wp-core-ui .hide-if-js,.js.wp-core-ui .hide-if-js,.no-js .hide-if-no-js,.no-js .wp-core-ui .hide-if-no-js,.no-js.wp-core-ui .hide-if-no-js{display:none}#menu-management .menu-edit,#menu-settings-column .accordion-container,.comment-ays,.feature-filter,.manage-menus,.menu-item-handle,.popular-tags,.stuffbox,.widget-inside,.widget-top,.widgets-holder-wrap,.wp-editor-container,p.popular-tags,table.widefat{border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.comment-ays,.feature-filter,.popular-tags,.stuffbox,.widgets-holder-wrap,.wp-editor-container,p.popular-tags,table.widefat{background:#fff}body,html{height:100%;margin:0;padding:0}body{background:#f0f0f1;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4em;min-width:600px}body.iframe{min-width:0;padding-top:1px}body.modal-open{overflow:hidden}body.mobile.modal-open #wpwrap{overflow:hidden;position:fixed;height:100%}iframe,img{border:0}td{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit}a{color:#2271b1;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}a,div{outline:0}a:active,a:hover{color:#135e96}.wp-person a:focus .gravatar,a:focus,a:focus .media-icon img,a:focus .plugin-icon{color:#043959;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}#adminmenu a:focus{box-shadow:none;outline:1px solid transparent;outline-offset:-1px}.screen-reader-text:focus{box-shadow:none;outline:0}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}.wp-die-message,p{font-size:13px;line-height:1.5;margin:1em 0}blockquote{margin:1em}dd,li{margin-bottom:6px}h1,h2,h3,h4,h5,h6{display:block;font-weight:600}h1{color:#1d2327;font-size:2em;margin:.67em 0}h2,h3{color:#1d2327;font-size:1.3em;margin:1em 0}.update-core-php h2{margin-top:4em}.update-messages h2,.update-php h2,h4{font-size:1em;margin:1.33em 0}h5{font-size:.83em;margin:1.67em 0}h6{font-size:.67em;margin:2.33em 0}ol,ul{padding:0}ul{list-style:none}ol{list-style-type:decimal;margin-left:2em}ul.ul-disc{list-style:disc outside}ul.ul-square{list-style:square outside}ol.ol-decimal{list-style:decimal outside}ol.ol-decimal,ul.ul-disc,ul.ul-square{margin-left:1.8em}ol.ol-decimal>li,ul.ul-disc>li,ul.ul-square>li{margin:0 0 .5em}.ltr{direction:ltr}.code,code{font-family:Consolas,Monaco,monospace;direction:ltr;unicode-bidi:embed}code,kbd{padding:3px 5px 2px;margin:0 1px;background:#f0f0f1;background:rgba(0,0,0,.07);font-size:13px}.subsubsub{list-style:none;margin:8px 0 0;padding:0;font-size:13px;float:left;color:#646970}.subsubsub a{line-height:2;padding:.2em;text-decoration:none}.subsubsub a .count,.subsubsub a.current .count{color:#50575e;font-weight:400}.subsubsub a.current{font-weight:600;border:none}.subsubsub li{display:inline-block;margin:0;padding:0;white-space:nowrap}.widefat{border-spacing:0;width:100%;clear:both;margin:0}.widefat *{word-wrap:break-word}.widefat a,.widefat button.button-link{text-decoration:none}.widefat td,.widefat th{padding:8px 10px}.widefat thead td,.widefat thead th{border-bottom:1px solid #c3c4c7}.widefat tfoot td,.widefat tfoot th{border-top:1px solid #c3c4c7;border-bottom:none}.widefat .no-items td{border-bottom-width:0}.widefat td{vertical-align:top}.widefat td,.widefat td ol,.widefat td p,.widefat td ul{font-size:13px;line-height:1.5em}.widefat tfoot td,.widefat th,.widefat thead td{text-align:left;line-height:1.3em;font-size:14px}.updates-table td input,.widefat tfoot td input,.widefat th input,.widefat thead td input{margin:0 0 0 8px;padding:0;vertical-align:text-top}.widefat .check-column{width:2.2em;padding:6px 0 25px;vertical-align:top}.widefat tbody th.check-column{padding:9px 0 22px}.updates-table tbody td.check-column,.widefat tbody th.check-column,.widefat tfoot td.check-column,.widefat thead td.check-column{padding:11px 0 0 3px}.widefat tfoot td.check-column,.widefat thead td.check-column{padding-top:4px;vertical-align:middle}.update-php div.error,.update-php div.updated{margin-left:0}.js-update-details-toggle .dashicons{text-decoration:none}.js-update-details-toggle[aria-expanded=true] .dashicons::before{content:"\f142"}.no-js .widefat tfoot .check-column input,.no-js .widefat thead .check-column input{display:none}.column-comments,.column-links,.column-posts,.widefat .num{text-align:center}.widefat th#comments{vertical-align:middle}.wrap{margin:10px 20px 0 2px}.postbox .inside h2,.wrap [class$=icon32]+h2,.wrap h1,.wrap>h2:first-child{font-size:23px;font-weight:400;margin:0;padding:9px 0 4px;line-height:1.3}.wrap h1.wp-heading-inline{display:inline-block;margin-right:5px}.wp-header-end{visibility:hidden;margin:-2px 0 0}.subtitle{margin:0;padding-left:25px;color:#50575e;font-size:14px;font-weight:400;line-height:1}.subtitle strong{word-break:break-all}.wrap .add-new-h2,.wrap .add-new-h2:active,.wrap .page-title-action,.wrap .page-title-action:active{display:inline-block;position:relative;box-sizing:border-box;cursor:pointer;white-space:nowrap;text-decoration:none;text-shadow:none;top:-3px;margin-left:4px;border:1px solid #2271b1;border-radius:3px;background:#f6f7f7;font-size:13px;font-weight:400;line-height:2.15384615;color:#2271b1;padding:0 10px;min-height:30px;-webkit-appearance:none}.wrap .wp-heading-inline+.page-title-action{margin-left:0}.wrap .add-new-h2:hover,.wrap .page-title-action:hover{background:#f0f0f1;border-color:#0a4b78;color:#0a4b78}.page-title-action:focus{color:#0a4b78}.form-table th label[for=WPLANG] .dashicons,.form-table th label[for=locale] .dashicons{margin-left:5px}.wrap .page-title-action:focus{border-color:#3582c4;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.wrap h1.long-header{padding-right:0}.wp-dialog{background-color:#fff}#available-widgets .widget-top:hover,#widgets-left .widget-in-question .widget-top,#widgets-left .widget-top:hover,.widgets-chooser ul,div#widgets-right .widget-top:hover{border-color:#8c8f94;box-shadow:0 1px 2px rgba(0,0,0,.1)}.sorthelper{background-color:#c5d9ed}.ac_match,.subsubsub a.current{color:#000}.alternate,.striped>tbody>:nth-child(odd),ul.striped>:nth-child(odd){background-color:#f6f7f7}.bar{background-color:#f0f0f1;border-right-color:#4f94d4}.highlight{background-color:#f0f6fc;color:#3c434a}.wp-ui-primary{color:#fff;background-color:#2c3338}.wp-ui-text-primary{color:#2c3338}.wp-ui-highlight{color:#fff;background-color:#2271b1}.wp-ui-text-highlight{color:#2271b1}.wp-ui-notification{color:#fff;background-color:#d63638}.wp-ui-text-notification{color:#d63638}.wp-ui-text-icon{color:#8c8f94}img.emoji{display:inline!important;border:none!important;height:1em!important;width:1em!important;margin:0 .07em!important;vertical-align:-.1em!important;background:0 0!important;padding:0!important;box-shadow:none!important}#nav-menu-footer,#nav-menu-header,#your-profile #rich_editing,.checkbox,.control-section .accordion-section-title,.menu-item-handle,.postbox .hndle,.side-info,.sidebar-name,.stuffbox .hndle,.widefat tfoot td,.widefat tfoot th,.widefat thead td,.widefat thead th,.widget .widget-top{line-height:1.4em}.menu-item-handle,.widget .widget-top{background:#f6f7f7;color:#1d2327}.stuffbox .hndle{border-bottom:1px solid #c3c4c7}.quicktags{background-color:#c3c4c7;color:#000;font-size:12px}.icon32{display:none}#bulk-titles .ntdelbutton:before,.notice-dismiss:before,.tagchecklist .ntdelbutton .remove-tag-icon:before,.welcome-panel .welcome-panel-close:before{background:0 0;color:#787c82;content:"\f153";display:block;font:normal 16px/20px dashicons;speak:never;height:20px;text-align:center;width:20px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.welcome-panel .welcome-panel-close:before{margin:0}.tagchecklist .ntdelbutton .remove-tag-icon:before{margin-left:2px;border-radius:50%;color:#2271b1;line-height:1.28}.tagchecklist .ntdelbutton:focus{outline:0}#bulk-titles .ntdelbutton:focus:before,#bulk-titles .ntdelbutton:hover:before,.tagchecklist .ntdelbutton:focus .remove-tag-icon:before,.tagchecklist .ntdelbutton:hover .remove-tag-icon:before{color:#d63638}.tagchecklist .ntdelbutton:focus .remove-tag-icon:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.key-labels label{line-height:24px}b,strong{font-weight:600}.pre{white-space:pre-wrap;word-wrap:break-word}.howto{color:#646970;display:block}p.install-help{margin:8px 0;font-style:italic}.no-break{white-space:nowrap}hr{border:0;border-top:1px solid #dcdcde;border-bottom:1px solid #f6f7f7}#all-plugins-table .plugins a.delete,#delete-link a.delete,#media-items a.delete,#media-items a.delete-permanently,#nav-menu-footer .menu-delete,#search-plugins-table .plugins a.delete,.plugins a.delete,.privacy_requests .remove-personal-data .remove-personal-data-handle,.row-actions span.delete a,.row-actions span.spam a,.row-actions span.trash a,.submitbox .submitdelete,a#remove-post-thumbnail{color:#b32d2e}#all-plugins-table .plugins a.delete:hover,#delete-link a.delete:hover,#media-items a.delete-permanently:hover,#media-items a.delete:hover,#nav-menu-footer .menu-delete:hover,#search-plugins-table .plugins a.delete:hover,.file-error,.plugins a.delete:hover,.privacy_requests .remove-personal-data .remove-personal-data-handle:hover,.row-actions .delete a:hover,.row-actions .spam a:hover,.row-actions .trash a:hover,.submitbox .submitdelete:hover,a#remove-post-thumbnail:hover,abbr.required,span.required{color:#b32d2e;border:none}#major-publishing-actions{padding:10px;clear:both;border-top:1px solid #dcdcde;background:#f6f7f7}#delete-action{float:left;line-height:2.30769231}#delete-link{line-height:2.30769231;vertical-align:middle;text-align:left;margin-left:8px}#delete-link a{text-decoration:none}#publishing-action{text-align:right;float:right;line-height:1.9}#publishing-action .spinner{float:none;margin-top:5px}#misc-publishing-actions{padding:6px 0 0}.misc-pub-section{padding:6px 10px 8px}.misc-pub-filename,.word-wrap-break-word{word-wrap:break-word}#minor-publishing-actions{padding:10px 10px 0;text-align:right}#save-post{float:left}.preview{float:right}#sticky-span{margin-left:18px}.approve,.unapproved .unapprove{display:none}.spam .approve,.trash .approve,.unapproved .approve{display:inline}td.action-links,th.action-links{text-align:right}#misc-publishing-actions .notice{margin-left:10px;margin-right:10px}.wp-filter{display:inline-block;position:relative;box-sizing:border-box;margin:12px 0 25px;padding:0 10px;width:100%;box-shadow:0 1px 1px rgba(0,0,0,.04);border:1px solid #c3c4c7;background:#fff;color:#50575e;font-size:13px}.wp-filter a{text-decoration:none}.filter-count{display:inline-block;vertical-align:middle;min-width:4em}.filter-count .count,.title-count{display:inline-block;position:relative;top:-1px;padding:4px 10px;border-radius:30px;background:#646970;color:#fff;font-size:14px;font-weight:600}.title-count{display:inline;top:-3px;margin-left:5px;margin-right:20px}.filter-items{float:left}.filter-links{display:inline-block;margin:0}.filter-links li{display:inline-block;margin:0}.filter-links li>a{display:inline-block;margin:0 10px;padding:15px 0;border-bottom:4px solid #fff;color:#646970;cursor:pointer}.filter-links .current{box-shadow:none;border-bottom:4px solid #646970;color:#1d2327}.filter-links li>a:focus,.filter-links li>a:hover,.show-filters .filter-links a.current:focus,.show-filters .filter-links a.current:hover{color:#135e96}.wp-filter .search-form{float:right;margin:10px 0}.wp-filter .search-form input[type=search]{width:280px;max-width:100%}.wp-filter .search-form select{margin:0}.plugin-install-php .wp-filter{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center}.wp-filter .search-form.search-plugins{margin-top:0}.no-js .wp-filter .search-form.search-plugins .button,.wp-filter .search-form.search-plugins .wp-filter-search,.wp-filter .search-form.search-plugins select{display:inline-block;margin-top:10px;vertical-align:top}.wp-filter .button.drawer-toggle{margin:10px 9px 0;padding:0 10px 0 6px;border-color:transparent;background-color:transparent;color:#646970;vertical-align:baseline;box-shadow:none}.wp-filter .drawer-toggle:before{content:"\f111";margin:0 5px 0 0;color:#646970;font:normal 16px/1 dashicons;vertical-align:text-bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-filter .button.drawer-toggle:focus,.wp-filter .button.drawer-toggle:hover,.wp-filter .drawer-toggle:focus:before,.wp-filter .drawer-toggle:hover:before{background-color:transparent;color:#135e96}.wp-filter .button.drawer-toggle:focus:active,.wp-filter .button.drawer-toggle:hover{border-color:transparent}.wp-filter .button.drawer-toggle:focus{border-color:#4f94d4}.wp-filter .button.drawer-toggle:active{background:0 0;box-shadow:none;transform:none}.wp-filter .drawer-toggle.current:before{color:#fff}.filter-drawer,.wp-filter .favorites-form{display:none;margin:0 -10px 0 -20px;padding:20px;border-top:1px solid #f0f0f1;background:#f6f7f7;overflow:hidden}.show-favorites-form .favorites-form,.show-filters .filter-drawer{display:block}.show-filters .filter-links a.current{border-bottom:none}.show-filters .wp-filter .button.drawer-toggle{border-radius:2px;background:#646970;color:#fff}.show-filters .wp-filter .drawer-toggle:focus,.show-filters .wp-filter .drawer-toggle:hover{background:#2271b1}.show-filters .wp-filter .drawer-toggle:before{color:#fff}.filter-group{box-sizing:border-box;position:relative;float:left;margin:0 1% 0 0;padding:20px 10px 10px;width:24%;background:#fff;border:1px solid #dcdcde;box-shadow:0 1px 1px rgba(0,0,0,.04)}.filter-group legend{position:absolute;top:10px;display:block;margin:0;padding:0;font-size:1em;font-weight:600}.filter-drawer .filter-group-feature{margin:28px 0 0;list-style-type:none;font-size:12px}.filter-drawer .filter-group-feature input,.filter-drawer .filter-group-feature label{line-height:1.4}.filter-drawer .filter-group-feature input{position:absolute;margin:0}.filter-group .filter-group-feature label{display:block;margin:14px 0 14px 23px}.filter-drawer .buttons{clear:both;margin-bottom:20px}.filter-drawer .filter-group+.buttons{margin-bottom:0;padding-top:20px}.filter-drawer .buttons .button span{display:inline-block;opacity:.8;font-size:12px;text-indent:10px}.wp-filter .button.clear-filters{display:none;margin-left:10px}.wp-filter .button-link.edit-filters{padding:0 5px;line-height:2.2}.filtered-by{display:none;margin:0}.filtered-by>span{font-weight:600}.filtered-by a{margin-left:10px}.filtered-by .tags{display:inline}.filtered-by .tag{margin:0 5px;padding:4px 8px;border:1px solid #dcdcde;box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff;font-size:11px}.filters-applied .filter-drawer .buttons,.filters-applied .filter-drawer br,.filters-applied .filter-group{display:none}.filters-applied .filtered-by{display:block}.filters-applied .filter-drawer{padding:20px}.error .content-filterable,.loading-content .content-filterable,.show-filters .content-filterable,.show-filters .favorites-form,.show-filters.filters-applied.loading-content .content-filterable{display:none}.show-filters.filters-applied .content-filterable{display:block}.loading-content .spinner{display:block;margin:40px auto 0;float:none}@media only screen and (max-width:1120px){.filter-drawer{border-bottom:1px solid #f0f0f1}.filter-group{margin-bottom:0;margin-top:5px;width:100%}.filter-group li{margin:10px 0}}@media only screen and (max-width:1000px){.filter-items{float:none}.wp-filter .media-toolbar-primary,.wp-filter .media-toolbar-secondary,.wp-filter .search-form{float:none;position:relative;max-width:100%}}@media only screen and (max-width:782px){.filter-group li{padding:0;width:50%}}@media only screen and (max-width:320px){.filter-count{display:none}.wp-filter .drawer-toggle{margin:10px 0}.filter-group li,.wp-filter .search-form input[type=search]{width:100%}}.notice,div.error,div.updated{background:#fff;border:1px solid #c3c4c7;border-left-width:4px;box-shadow:0 1px 1px rgba(0,0,0,.04);margin:5px 15px 2px;padding:1px 12px}div[class=update-message]{padding:.5em 12px .5em 0}.form-table td .notice p,.notice p,.notice-title,div.error p,div.updated p{margin:.5em 0;padding:2px}.error a{text-decoration:underline}.updated a{padding-bottom:2px}.notice-alt{box-shadow:none}.notice-large{padding:10px 20px}.notice-title{display:inline-block;color:#1d2327;font-size:18px}.wp-core-ui .notice.is-dismissible{padding-right:38px;position:relative}.notice-dismiss{position:absolute;top:0;right:1px;border:none;margin:0;padding:9px;background:0 0;color:#787c82;cursor:pointer}.notice-dismiss:active:before,.notice-dismiss:focus:before,.notice-dismiss:hover:before{color:#d63638}.notice-dismiss:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.notice-success,div.updated{border-left-color:#00a32a}.notice-success.notice-alt{background-color:#edfaef}.notice-warning{border-left-color:#dba617}.notice-warning.notice-alt{background-color:#fcf9e8}.notice-error,div.error{border-left-color:#d63638}.notice-error.notice-alt{background-color:#fcf0f1}.notice-info{border-left-color:#72aee6}.notice-info.notice-alt{background-color:#f0f6fc}#plugin-information-footer .update-now:not(.button-disabled):before{color:#d63638;content:"\f463";display:inline-block;font:normal 20px/1 dashicons;margin:-3px 5px 0 -2px;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}#plugin-information-footer .notice{margin-top:-5px}.button.activated-message:before,.button.activating-message:before,.button.installed:before,.button.installing:before,.button.updated-message:before,.button.updating-message:before,.import-php .updating-message:before,.update-message p:before,.updated-message p:before,.updating-message p:before{display:inline-block;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.media-upload-form .notice,.media-upload-form div.error,.wrap .notice,.wrap div.error,.wrap div.updated{margin:5px 0 15px}.wrap #templateside .notice{display:block;margin:0;padding:5px 8px;font-weight:600;text-decoration:none}.wrap #templateside span.notice{margin-left:-12px}#templateside li.notice a{padding:0}.button.activating-message:before,.button.installing:before,.button.updating-message:before,.import-php .updating-message:before,.update-message p:before,.updating-message p:before{color:#d63638;content:"\f463"}.button.activating-message:before,.button.installing:before,.button.updating-message:before,.import-php .updating-message:before,.plugins .column-auto-updates .dashicons-update.spin,.theme-overlay .theme-autoupdate .dashicons-update.spin,.updating-message p:before{animation:rotation 2s infinite linear}@media (prefers-reduced-motion:reduce){.button.activating-message:before,.button.installing:before,.button.updating-message:before,.import-php .updating-message:before,.plugins .column-auto-updates .dashicons-update.spin,.theme-overlay .theme-autoupdate .dashicons-update.spin,.updating-message p:before{animation:none}}.theme-overlay .theme-autoupdate .dashicons-update.spin{margin-right:3px}.button.activated-message:before,.button.updated-message:before,.installed p:before,.updated-message p:before{color:#68de7c;content:"\f147"}.update-message.notice-error p:before{color:#d63638;content:"\f534"}.import-php .updating-message:before,.wrap .notice p:before{margin-right:6px}.import-php .updating-message:before{vertical-align:bottom}#update-nag,.update-nag{display:inline-block;line-height:1.4;padding:11px 15px;font-size:14px;margin:25px 20px 0 2px}ul#dismissed-updates{display:none}#dismissed-updates li>p{margin-top:0}#dismiss,#undismiss{margin-left:.5em}form.upgrade{margin-top:8px}form.upgrade .hint{font-style:italic;font-size:85%;margin:-.5em 0 2em}.update-php .spinner{float:none;margin:-4px 0}h2.wp-current-version{margin-bottom:.3em}p.update-last-checked{margin-top:0}p.auto-update-status{margin-top:2em;line-height:1.8}#ajax-loading,.ajax-feedback,.ajax-loading,.imgedit-wait-spin,.list-ajax-loading{visibility:hidden}#ajax-response.alignleft{margin-left:2em}.button.activated-message:before,.button.activating-message:before,.button.installed:before,.button.installing:before,.button.updated-message:before,.button.updating-message:before{margin:3px 5px 0 -2px}#plugin-information-footer .button{padding:0 14px;line-height:2.71428571;font-size:14px;vertical-align:middle;min-height:40px;margin-bottom:4px}#plugin-information-footer .button.activated-message:before,#plugin-information-footer .button.activating-message:before,#plugin-information-footer .button.installed:before,#plugin-information-footer .button.installing:before,#plugin-information-footer .button.updated-message:before,#plugin-information-footer .button.updating-message:before{margin:9px 5px 0 -2px}#plugin-information-footer .button.update-now.updating-message:before{margin:-3px 5px 0 -2px}.button-primary.activating-message:before,.button-primary.updating-message:before{color:#fff}.button-primary.activated-message:before,.button-primary.updated-message:before{color:#9ec2e6}.button.activated-message,.button.updated-message{transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}@media aural{.button.installed:before,.button.installing:before,.update-message p:before,.wrap .notice p:before{speak:never}}#adminmenu a,#catlist a,#taglist a{text-decoration:none}#contextual-help-wrap,#screen-options-wrap{margin:0;padding:8px 20px 12px;position:relative}#contextual-help-wrap{overflow:auto;margin-left:0}#screen-meta-links{float:right;margin:0 20px 0 0}#screen-meta{display:none;margin:0 20px -1px 0;position:relative;background-color:#fff;border:1px solid #c3c4c7;border-top:none;box-shadow:0 0 0 transparent}#contextual-help-link-wrap,#screen-options-link-wrap{float:left;margin:0 0 0 6px}#screen-meta-links .screen-meta-toggle{position:relative;top:0}#screen-meta-links .show-settings{border:1px solid #c3c4c7;border-top:none;height:auto;margin-bottom:0;padding:3px 6px 3px 16px;background:#fff;border-radius:0 0 4px 4px;color:#646970;line-height:1.7;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear}#screen-meta-links .show-settings:active,#screen-meta-links .show-settings:focus,#screen-meta-links .show-settings:hover{color:#2c3338}#screen-meta-links .show-settings:focus{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}#screen-meta-links .show-settings:active{transform:none}#screen-meta-links .show-settings:after{right:0;content:"\f140";font:normal 20px/1 dashicons;speak:never;display:inline-block;padding:0 5px 0 0;bottom:2px;position:relative;vertical-align:bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}#screen-meta-links .screen-meta-active:after{content:"\f142"}.toggle-arrow{background-repeat:no-repeat;background-position:top left;background-color:transparent;height:22px;line-height:22px;display:block}.toggle-arrow-active{background-position:bottom left}#contextual-help-wrap h5,#screen-options-wrap h5,#screen-options-wrap legend{margin:0;padding:8px 0;font-size:13px;font-weight:600}.metabox-prefs label{display:inline-block;padding-right:15px;line-height:2.35}#number-of-columns{display:inline-block;vertical-align:middle;line-height:30px}.metabox-prefs input[type=checkbox]{margin-top:0;margin-right:6px}.metabox-prefs label input,.metabox-prefs label input[type=checkbox]{margin:-4px 5px 0 0}.metabox-prefs .columns-prefs label input{margin:-1px 2px 0 0}.metabox-prefs label a{display:none}.metabox-prefs .screen-options input,.metabox-prefs .screen-options label{margin-top:0;margin-bottom:0;vertical-align:middle}.metabox-prefs .screen-options .screen-per-page{margin-right:15px;padding-right:0}.metabox-prefs .screen-options label{line-height:2.2;padding-right:0}.screen-options+.screen-options{margin-top:10px}.metabox-prefs .submit{margin-top:1em;padding:0}#contextual-help-wrap{padding:0}#contextual-help-columns{position:relative}#contextual-help-back{position:absolute;top:0;bottom:0;left:150px;right:170px;border:1px solid #c3c4c7;border-top:none;border-bottom:none;background:#f0f6fc}#contextual-help-wrap.no-sidebar #contextual-help-back{right:0;border-right-width:0;border-bottom-right-radius:2px}.contextual-help-tabs{float:left;width:150px;margin:0}.contextual-help-tabs ul{margin:1em 0}.contextual-help-tabs li{margin-bottom:0;list-style-type:none;border-style:solid;border-width:0 0 0 2px;border-color:transparent}.contextual-help-tabs a{display:block;padding:5px 5px 5px 12px;line-height:1.4;text-decoration:none;border:1px solid transparent;border-right:none;border-left:none}.contextual-help-tabs a:hover{color:#2c3338}.contextual-help-tabs .active{padding:0;margin:0 -1px 0 0;border-left:2px solid #72aee6;background:#f0f6fc;box-shadow:0 2px 0 rgba(0,0,0,.02),0 1px 0 rgba(0,0,0,.02)}.contextual-help-tabs .active a{border-color:#c3c4c7;color:#2c3338}.contextual-help-tabs-wrap{padding:0 20px;overflow:auto}.help-tab-content{display:none;margin:0 22px 12px 0;line-height:1.6}.help-tab-content.active{display:block}.help-tab-content ul li{list-style-type:disc;margin-left:18px}.contextual-help-sidebar{width:150px;float:right;padding:0 8px 0 12px;overflow:auto}html.wp-toolbar{padding-top:32px;box-sizing:border-box;-ms-overflow-style:scrollbar}.widefat td,.widefat th{color:#50575e}.widefat tfoot td,.widefat th,.widefat thead td{font-weight:400}.widefat tfoot tr td,.widefat tfoot tr th,.widefat thead tr td,.widefat thead tr th{color:#2c3338}.widefat td p{margin:2px 0 .8em}.widefat ol,.widefat p,.widefat ul{color:#2c3338}.widefat .column-comment p{margin:.6em 0}.widefat .column-comment ul{list-style:initial;margin-left:2em}.postbox-container{float:left}.postbox-container .meta-box-sortables{box-sizing:border-box}#wpbody-content .metabox-holder{padding-top:10px}.metabox-holder .postbox-container .meta-box-sortables{min-height:1px;position:relative}#post-body-content{width:100%;min-width:463px;float:left}#post-body.columns-2 #postbox-container-1{float:right;margin-right:-300px;width:280px}#post-body.columns-2 #side-sortables{min-height:250px}@media only screen and (max-width:799px){#wpbody-content .metabox-holder .postbox-container .empty-container{outline:0;height:0;min-height:0}}.js .postbox .hndle,.js .widget .widget-top{cursor:move}.js .postbox .hndle.is-non-sortable,.js .widget .widget-top.is-non-sortable{cursor:auto}.hndle a{font-size:12px;font-weight:400}.postbox-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #c3c4c7}.postbox-header .hndle{flex-grow:1;display:flex;justify-content:space-between;align-items:center}.postbox-header .handle-actions{flex-shrink:0}.postbox .handle-order-higher,.postbox .handle-order-lower,.postbox .handlediv{width:1.62rem;height:1.62rem;margin:0;padding:0;border:0;background:0 0;cursor:pointer}.postbox .handle-order-higher,.postbox .handle-order-lower{color:#787c82;width:1.62rem}.edit-post-meta-boxes-area .postbox .handle-order-higher,.edit-post-meta-boxes-area .postbox .handle-order-lower{width:44px;height:44px;color:#1d2327}.postbox .handle-order-higher[aria-disabled=true],.postbox .handle-order-lower[aria-disabled=true]{cursor:default;color:#a7aaad}.sortable-placeholder{border:1px dashed #c3c4c7;margin-bottom:20px}.postbox,.stuffbox{margin-bottom:20px;padding:0;line-height:1}.postbox.closed{border-bottom:0}.postbox .hndle,.stuffbox .hndle{-webkit-user-select:none;user-select:none}.postbox .inside{padding:0 12px 12px;line-height:1.4;font-size:13px}.stuffbox .inside{padding:0;line-height:1.4;font-size:13px;margin-top:0}.postbox .inside{margin:11px 0;position:relative}.postbox .inside>p:last-child,.rss-widget ul li:last-child{margin-bottom:1px!important}.postbox.closed h3{border:none;box-shadow:none}.postbox table.form-table{margin-bottom:0}.postbox table.widefat{box-shadow:none}.temp-border{border:1px dotted #c3c4c7}.columns-prefs label{padding:0 10px 0 0}#adminmenu .wp-submenu li.current,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:hover,#comment-status-display,#dashboard_right_now .versions .b,#ed_reply_toolbar #ed_reply_strong,#pass-strength-result.short,#pass-strength-result.strong,#post-status-display,#post-visibility-display,.feature-filter .feature-name,.item-controls .item-order a,.media-item .percent,.plugins .name{font-weight:600}#wpfooter{position:absolute;bottom:0;left:0;right:0;padding:10px 20px;color:#50575e}#wpfooter p{font-size:13px;margin:0;line-height:1.55}#footer-thankyou{font-style:italic}.nav-tab{float:left;border:1px solid #c3c4c7;border-bottom:none;margin-left:.5em;padding:5px 10px;font-size:14px;line-height:1.71428571;font-weight:600;background:#dcdcde;color:#50575e;text-decoration:none;white-space:nowrap}.nav-tab-small .nav-tab,h3 .nav-tab{padding:5px 14px;font-size:12px;line-height:1.33}.nav-tab:focus,.nav-tab:hover{background-color:#fff;color:#3c434a}.nav-tab-active,.nav-tab:focus:active{box-shadow:none}.nav-tab-active{margin-bottom:-1px;color:#3c434a}.nav-tab-active,.nav-tab-active:focus,.nav-tab-active:focus:active,.nav-tab-active:hover{border-bottom:1px solid #f0f0f1;background:#f0f0f1;color:#000}.nav-tab-wrapper,.wrap h2.nav-tab-wrapper,h1.nav-tab-wrapper{border-bottom:1px solid #c3c4c7;margin:0;padding-top:9px;padding-bottom:0;line-height:inherit}.nav-tab-wrapper:not(.wp-clearfix):after{content:"";display:table;clear:both}.spinner{background:url(../images/spinner.gif) no-repeat;background-size:20px 20px;display:inline-block;visibility:hidden;float:right;vertical-align:middle;opacity:.7;width:20px;height:20px;margin:4px 10px 0}.loading-content .spinner,.spinner.is-active{visibility:visible}#template>div{margin-right:16em}#template .notice{margin-top:1em;margin-right:3%}#template .notice p{width:auto}#template .submit .spinner{float:none}.metabox-holder .postbox>h3,.metabox-holder .stuffbox>h3,.metabox-holder h2.hndle,.metabox-holder h3.hndle{font-size:14px;padding:8px 12px;margin:0;line-height:1.4}.nav-menus-php .metabox-holder h3{padding:10px 10px 11px 14px;line-height:1.5}#templateside ul li a{text-decoration:none}.plugin-install #description,.plugin-install-network #description{width:60%}table .column-rating,table .column-visible,table .vers{text-align:left}.attention,.error-message{color:#d63638;font-weight:600}body.iframe{height:98%}.lp-show-latest p{display:none}.lp-show-latest .lp-error p,.lp-show-latest p:last-child{display:block}.media-icon{width:62px;text-align:center}.media-icon img{border:1px solid #dcdcde;border:1px solid rgba(0,0,0,.07)}#howto{font-size:11px;margin:0 5px;display:block}.importers{font-size:16px;width:auto}.importers td{padding-right:14px;line-height:1.4}.importers .import-system{max-width:250px}.importers td.desc{max-width:500px}.importer-action,.importer-desc,.importer-title{display:block}.importer-title{color:#000;font-size:14px;font-weight:400;margin-bottom:.2em}.importer-action{line-height:1.55;color:#50575e;margin-bottom:1em}#post-body #post-body-content #namediv h2,#post-body #post-body-content #namediv h3{margin-top:0}.edit-comment-author{color:#1d2327;border-bottom:1px solid #f0f0f1}#namediv h2 label,#namediv h3 label{vertical-align:baseline}#namediv table{width:100%}#namediv td.first{width:10px;white-space:nowrap}#namediv input{width:100%}#namediv p{margin:10px 0}.zerosize{height:0;width:0;margin:0;border:0;padding:0;overflow:hidden;position:absolute}br.clear{height:2px;line-height:.15}.checkbox{border:none;margin:0;padding:0}fieldset{border:0;padding:0;margin:0}.post-categories{display:inline;margin:0;padding:0}.post-categories li{display:inline}div.star-holder{position:relative;height:17px;width:100px;background:url(../images/stars.png?ver=20121108) repeat-x bottom left}div.star-holder .star-rating{background:url(../images/stars.png?ver=20121108) repeat-x top left;height:17px;float:left}.star-rating{white-space:nowrap}.star-rating .star{display:inline-block;width:20px;height:20px;-webkit-font-smoothing:antialiased;font-size:20px;line-height:1;font-family:dashicons;text-decoration:inherit;font-weight:400;font-style:normal;vertical-align:top;transition:color .1s ease-in;text-align:center;color:#dba617}.star-rating .star-full:before{content:"\f155"}.star-rating .star-half:before{content:"\f459"}.rtl .star-rating .star-half{transform:rotateY(180deg)}.star-rating .star-empty:before{content:"\f154"}div.action-links{font-weight:400;margin:6px 0 0}#plugin-information{background:#fff;position:fixed;top:0;right:0;bottom:0;left:0;height:100%;padding:0}#plugin-information-scrollable{overflow:auto;-webkit-overflow-scrolling:touch;height:100%}#plugin-information-title{padding:0 26px;background:#f6f7f7;font-size:22px;font-weight:600;line-height:2.4;position:relative;height:56px}#plugin-information-title.with-banner{margin-right:0;height:250px;background-size:cover}#plugin-information-title h2{font-size:1em;font-weight:600;padding:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#plugin-information-title.with-banner h2{position:relative;font-family:"Helvetica Neue",sans-serif;display:inline-block;font-size:30px;line-height:1.68;box-sizing:border-box;max-width:100%;padding:0 15px;margin-top:174px;color:#fff;background:rgba(29,35,39,.9);text-shadow:0 1px 3px rgba(0,0,0,.4);box-shadow:0 0 30px rgba(255,255,255,.1);border-radius:8px}#plugin-information-title div.vignette{display:none}#plugin-information-title.with-banner div.vignette{position:absolute;display:block;top:0;left:0;height:250px;width:100%;background:0 0;box-shadow:inset 0 0 50px 4px rgba(0,0,0,.2),inset 0 -1px 0 rgba(0,0,0,.1)}#plugin-information-tabs{padding:0 16px;position:relative;right:0;left:0;min-height:36px;font-size:0;z-index:1;border-bottom:1px solid #dcdcde;background:#f6f7f7}#plugin-information-tabs a{position:relative;display:inline-block;padding:9px 10px;margin:0;height:18px;line-height:1.3;font-size:14px;text-decoration:none;transition:none}#plugin-information-tabs a.current{margin:0 -1px -1px;background:#fff;border:1px solid #dcdcde;border-bottom-color:#fff;padding-top:8px;color:#2c3338}#plugin-information-tabs.with-banner a.current{border-top:none;padding-top:9px}#plugin-information-tabs a:active,#plugin-information-tabs a:focus{outline:0}#plugin-information-content{overflow:hidden;background:#fff;position:relative;top:0;right:0;left:0;min-height:100%;min-height:calc(100% - 152px)}#plugin-information-content.with-banner{min-height:calc(100% - 346px)}#section-holder{position:relative;top:0;right:250px;bottom:0;left:0;margin-top:10px;margin-right:250px;padding:10px 26px 99999px;margin-bottom:-99932px}#section-holder .notice{margin:5px 0 15px}#section-holder .updated{margin:16px 0}#plugin-information .fyi{float:right;position:relative;top:0;right:0;padding:16px 16px 99999px;margin-bottom:-99932px;width:217px;border-left:1px solid #dcdcde;background:#f6f7f7;color:#646970}#plugin-information .fyi strong{color:#3c434a}#plugin-information .fyi h3{font-weight:600;text-transform:uppercase;font-size:12px;color:#646970;margin:24px 0 8px}#plugin-information .fyi h2{font-size:.9em;margin-bottom:0;margin-right:0}#plugin-information .fyi ul{padding:0;margin:0;list-style:none}#plugin-information .fyi li{margin:0 0 10px}#plugin-information .fyi-description{margin-top:0}#plugin-information .counter-container{margin:3px 0}#plugin-information .counter-label{float:left;margin-right:5px;min-width:55px}#plugin-information .counter-back{height:17px;width:92px;background-color:#dcdcde;float:left}#plugin-information .counter-bar{height:17px;background-color:#f0c33c;float:left}#plugin-information .counter-count{margin-left:5px}#plugin-information .fyi ul.contributors{margin-top:10px}#plugin-information .fyi ul.contributors li{display:inline-block;margin-right:8px;vertical-align:middle}#plugin-information .fyi ul.contributors li{display:inline-block;margin-right:8px;vertical-align:middle}#plugin-information .fyi ul.contributors li img{vertical-align:middle;margin-right:4px}#plugin-information-footer{padding:13px 16px;position:absolute;right:0;bottom:0;left:0;height:40px;border-top:1px solid #dcdcde;background:#f6f7f7}#plugin-information .section{direction:ltr}#plugin-information .section ol,#plugin-information .section ul{list-style-type:disc;margin-left:24px}#plugin-information .section,#plugin-information .section p{font-size:14px;line-height:1.7}#plugin-information #section-screenshots ol{list-style:none;margin:0}#plugin-information #section-screenshots li img{vertical-align:text-top;margin-top:16px;max-width:100%;width:auto;height:auto;box-shadow:0 1px 2px rgba(0,0,0,.3)}#plugin-information #section-screenshots li p{font-style:italic;padding-left:20px}#plugin-information pre{padding:7px;overflow:auto;border:1px solid #c3c4c7}#plugin-information blockquote{border-left:2px solid #dcdcde;color:#646970;font-style:italic;margin:1em 0;padding:0 0 0 1em}#plugin-information .review{overflow:hidden;width:100%;margin-bottom:20px;border-bottom:1px solid #dcdcde}#plugin-information .review-title-section{overflow:hidden}#plugin-information .review-title-section h4{display:inline-block;float:left;margin:0 6px 0 0}#plugin-information .reviewer-info p{clear:both;margin:0;padding-top:2px}#plugin-information .reviewer-info .avatar{float:left;margin:4px 6px 0 0}#plugin-information .reviewer-info .star-rating{float:left}#plugin-information .review-meta{float:left;margin-left:.75em}#plugin-information .review-body{float:left;width:100%}.plugin-version-author-uri{font-size:13px}.update-php .button.button-primary{margin-right:1em}@media screen and (max-width:771px){#plugin-information-title.with-banner{height:100px}#plugin-information-title.with-banner h2{margin-top:30px;font-size:20px;line-height:2;max-width:85%}#plugin-information-title.with-banner div.vignette{height:100px}#plugin-information-tabs{overflow:hidden;padding:0;height:auto}#plugin-information-tabs a.current{margin-bottom:0;border-bottom:none}#plugin-information .fyi{float:none;border:1px solid #dcdcde;position:static;width:auto;margin:26px 26px 0;padding-bottom:0}#section-holder{position:static;margin:0;padding-bottom:70px}#plugin-information .fyi h3,#plugin-information .fyi small{display:none}#plugin-information-footer{padding:12px 16px 0;height:46px}}#TB_window.plugin-details-modal{background:#fff}#TB_window.plugin-details-modal.thickbox-loading:before{content:"";display:block;width:20px;height:20px;position:absolute;left:50%;top:50%;z-index:-1;margin:-10px 0 0 -10px;background:#fff url(../images/spinner.gif) no-repeat center;background-size:20px 20px;transform:translateZ(0)}@media print,(min-resolution:120dpi){#TB_window.plugin-details-modal.thickbox-loading:before{background-image:url(../images/spinner-2x.gif)}}.plugin-details-modal #TB_title{float:left;height:1px}.plugin-details-modal #TB_ajaxWindowTitle{display:none}.plugin-details-modal #TB_closeWindowButton{left:auto;right:-30px;color:#f0f0f1}.plugin-details-modal #TB_closeWindowButton:focus,.plugin-details-modal #TB_closeWindowButton:hover{outline:0;box-shadow:none}.plugin-details-modal #TB_closeWindowButton:focus::after,.plugin-details-modal #TB_closeWindowButton:hover::after{outline:2px solid;outline-offset:-4px;border-radius:4px}.plugin-details-modal .tb-close-icon{display:none}.plugin-details-modal #TB_closeWindowButton:after{content:"\f335";font:normal 32px/29px dashicons;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media screen and (max-width:830px){.plugin-details-modal #TB_closeWindowButton{right:0;top:-30px}}img{border:none}.bulk-action-notice .toggle-indicator::before,.meta-box-sortables .postbox .order-higher-indicator::before,.meta-box-sortables .postbox .order-lower-indicator::before,.meta-box-sortables .postbox .toggle-indicator::before,.privacy-text-box .toggle-indicator::before,.sidebar-name .toggle-indicator::before{content:"\f142";display:inline-block;font:normal 20px/1 dashicons;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}.bulk-action-notice .bulk-action-errors-collapsed .toggle-indicator::before,.js .widgets-holder-wrap.closed .toggle-indicator::before,.meta-box-sortables .postbox.closed .handlediv .toggle-indicator::before,.privacy-text-box.closed .toggle-indicator::before{content:"\f140"}.postbox .handle-order-higher .order-higher-indicator::before{content:"\f343";color:inherit}.postbox .handle-order-lower .order-lower-indicator::before{content:"\f347";color:inherit}.postbox .handle-order-higher .order-higher-indicator::before,.postbox .handle-order-lower .order-lower-indicator::before{position:relative;top:.11rem;width:20px;height:20px}.postbox .handlediv .toggle-indicator::before{width:20px;border-radius:50%}.postbox .handlediv .toggle-indicator::before{position:relative;top:.05rem;text-indent:-1px}.rtl .postbox .handlediv .toggle-indicator::before{text-indent:1px}.bulk-action-notice .toggle-indicator::before{line-height:16px;vertical-align:top;color:#787c82}.postbox .handle-order-higher:focus,.postbox .handle-order-lower:focus,.postbox .handlediv:focus{box-shadow:inset 0 0 0 2px #2271b1;border-radius:50%;outline:2px solid transparent}.postbox .handle-order-higher:focus .order-higher-indicator::before,.postbox .handle-order-lower:focus .order-lower-indicator::before,.postbox .handlediv:focus .toggle-indicator::before{box-shadow:none;outline:1px solid transparent}#photo-add-url-div input[type=text]{width:300px}.alignleft h2{margin:0}#template textarea{font-family:Consolas,Monaco,monospace;font-size:13px;background:#f6f7f7;tab-size:4}#template .CodeMirror,#template textarea{width:100%;min-height:60vh;height:calc(100vh - 295px);border:1px solid #dcdcde;box-sizing:border-box}#templateside>h2{padding-top:6px;padding-bottom:7px;margin:0}#templateside ol,#templateside ul{margin:0;padding:0}#templateside>ul{box-sizing:border-box;margin-top:0;overflow:auto;padding:0;min-height:60vh;height:calc(100vh - 295px);background-color:#f6f7f7;border:1px solid #dcdcde;border-left:none}#templateside ul ul{padding-left:12px}#templateside>ul>li>ul[role=group]{padding-left:0}[role=treeitem][aria-expanded=false]>ul{display:none}[role=treeitem] span[aria-hidden]{display:inline;font-family:dashicons;font-size:20px;position:absolute;pointer-events:none}[role=treeitem][aria-expanded=false]>.folder-label .icon:after{content:"\f139"}[role=treeitem][aria-expanded=true]>.folder-label .icon:after{content:"\f140"}[role=treeitem] .folder-label{display:block;padding:3px 3px 3px 12px;cursor:pointer}[role=treeitem]{outline:0}[role=treeitem] .folder-label.focus,[role=treeitem] a:focus{color:#043959;box-shadow:none;outline:2px solid #2271b1;outline-offset:-2px}[role=treeitem] .folder-label.hover,[role=treeitem].hover{background-color:#f0f0f1}.tree-folder{margin:0;position:relative}[role=treeitem] li{position:relative}.tree-folder .tree-folder::after{content:"";display:block;position:absolute;left:2px;border-left:1px solid #c3c4c7;top:-13px;bottom:10px}.tree-folder>li::before{content:"";position:absolute;display:block;border-left:1px solid #c3c4c7;left:2px;top:-5px;height:18px;width:7px;border-bottom:1px solid #c3c4c7}.tree-folder>li::after{content:"";position:absolute;display:block;border-left:1px solid #c3c4c7;left:2px;bottom:-7px;top:0}#templateside .current-file{margin:-4px 0 -2px}.tree-folder>.current-file::before{left:4px;height:15px;width:0;border-left:none;top:3px}.tree-folder>.current-file::after{bottom:-4px;height:7px;left:2px;top:auto}.tree-folder li:last-child>.tree-folder::after,.tree-folder>li:last-child::after{display:none}#documentation label,#theme-plugin-editor-label,#theme-plugin-editor-selector{font-weight:600}#theme-plugin-editor-label{display:inline-block;margin-bottom:1em}#docs-list,#template textarea{direction:ltr}.fileedit-sub #plugin,.fileedit-sub #theme{max-width:40%}.fileedit-sub .alignright{text-align:right}#template p{width:97%}#file-editor-linting-error{margin-top:1em;margin-bottom:1em}#file-editor-linting-error>.notice{margin:0;display:inline-block}#file-editor-linting-error>.notice>p{width:auto}#template .submit{margin-top:1em;padding:0}#template .submit input[type=submit][disabled]{cursor:not-allowed}#templateside{float:right;width:16em;word-wrap:break-word}#postcustomstuff p.submit{margin:0}#templateside h4{margin:1em 0 0}#templateside li{margin:4px 0}#templateside li:not(.howto) a,.theme-editor-php .highlight{display:block;padding:3px 0 3px 12px;text-decoration:none}#templateside li.current-file>a{padding-bottom:0}#templateside li:not(.howto)>a:first-of-type{padding-top:0}#templateside li.howto{padding:6px 12px 12px}.theme-editor-php .highlight{margin:-3px 3px -3px -12px}#templateside .highlight{border:none;font-weight:600}.nonessential{color:#646970;font-size:11px;font-style:italic;padding-left:12px}#documentation{margin-top:10px}#documentation label{line-height:1.8;vertical-align:baseline}.fileedit-sub{padding:10px 0 8px;line-height:180%}#file-editor-warning .file-editor-warning-content{margin:25px}.accordion-section-title:after,.control-section .accordion-section-title:after,.nav-menus-php .item-edit:before,.widget-top .widget-action .toggle-indicator:before{content:"\f140";font:normal 20px/1 dashicons;speak:never;display:block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}.widget-top .widget-action .toggle-indicator:before{padding:1px 2px 1px 0;border-radius:50%}.accordion-section-title:after,.handlediv,.item-edit,.postbox .handlediv.button-link,.toggle-indicator{color:#787c82}.widget-action{color:#50575e}.accordion-section-title:hover:after,.handlediv:focus,.handlediv:hover,.item-edit:focus,.item-edit:hover,.postbox .handlediv.button-link:focus,.postbox .handlediv.button-link:hover,.sidebar-name:hover .toggle-indicator,.widget-action:focus,.widget-top:hover .widget-action{color:#1d2327;outline:2px solid transparent}.widget-top .widget-action:focus .toggle-indicator:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.accordion-section-title:after,.control-section .accordion-section-title:after{float:right;right:20px;top:-2px}#customize-info.open .accordion-section-title:after,.control-section.open .accordion-section-title:after,.nav-menus-php .menu-item-edit-active .item-edit:before,.widget.open .widget-top .widget-action .toggle-indicator:before,.widget.widget-in-question .widget-top .widget-action .toggle-indicator:before{content:"\f142"}/*!
+#wpwrap{height:auto;min-height:100%;width:100%;position:relative;-webkit-font-smoothing:subpixel-antialiased}#wpcontent{height:100%;padding-left:20px}#wpcontent,#wpfooter{margin-left:160px}.folded #wpcontent,.folded #wpfooter{margin-left:36px}#wpbody-content{padding-bottom:65px;float:left;width:100%;overflow:visible}.inner-sidebar{float:right;clear:right;display:none;width:281px;position:relative}.columns-2 .inner-sidebar{margin-right:auto;width:286px;display:block}.columns-2 .inner-sidebar #side-sortables,.inner-sidebar #side-sortables{min-height:300px;width:280px;padding:0}.has-right-sidebar .inner-sidebar{display:block}.has-right-sidebar #post-body{float:left;clear:left;width:100%;margin-right:-2000px}.has-right-sidebar #post-body-content{margin-right:300px;float:none;width:auto}#col-left{float:left;width:35%}#col-right{float:right;width:65%}#col-left .col-wrap{padding:0 6px 0 0}#col-right .col-wrap{padding:0 0 0 6px}.alignleft{float:left}.alignright{float:right}.textleft{text-align:left}.textright{text-align:right}.clear{clear:both}.wp-clearfix:after{content:"";display:table;clear:both}.screen-reader-text,.screen-reader-text span,.ui-helper-hidden-accessible{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.button .screen-reader-text{height:auto}.screen-reader-text+.dashicons-external{margin-top:-1px;margin-left:2px}.screen-reader-shortcut{position:absolute;top:-1000em;left:6px;height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f0f0f1;color:#2271b1;z-index:100000;line-height:normal}.screen-reader-shortcut:focus{top:-25px;color:#2271b1;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:2px solid transparent;outline-offset:-2px}.hidden,.js .closed .inside,.js .hide-if-js,.js .wp-core-ui .hide-if-js,.js.wp-core-ui .hide-if-js,.no-js .hide-if-no-js,.no-js .wp-core-ui .hide-if-no-js,.no-js.wp-core-ui .hide-if-no-js{display:none}#menu-management .menu-edit,#menu-settings-column .accordion-container,.comment-ays,.feature-filter,.manage-menus,.menu-item-handle,.popular-tags,.stuffbox,.widget-inside,.widget-top,.widgets-holder-wrap,.wp-editor-container,p.popular-tags,table.widefat{border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.comment-ays,.feature-filter,.popular-tags,.stuffbox,.widgets-holder-wrap,.wp-editor-container,p.popular-tags,table.widefat{background:#fff}body,html{height:100%;margin:0;padding:0}body{background:#f0f0f1;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4em;min-width:600px}body.iframe{min-width:0;padding-top:1px}body.modal-open{overflow:hidden}body.mobile.modal-open #wpwrap{overflow:hidden;position:fixed;height:100%}iframe,img{border:0}td{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit}a{color:#2271b1;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}a,div{outline:0}a:active,a:hover{color:#135e96}.wp-person a:focus .gravatar,a:focus,a:focus .media-icon img,a:focus .plugin-icon{color:#043959;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}#adminmenu a:focus{box-shadow:none;outline:1px solid transparent;outline-offset:-1px}.screen-reader-text:focus{box-shadow:none;outline:0}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}.wp-die-message,p{font-size:13px;line-height:1.5;margin:1em 0}blockquote{margin:1em}dd,li{margin-bottom:6px}h1,h2,h3,h4,h5,h6{display:block;font-weight:600}h1{color:#1d2327;font-size:2em;margin:.67em 0}h2,h3{color:#1d2327;font-size:1.3em;margin:1em 0}.update-core-php h2{margin-top:4em}.update-messages h2,.update-php h2,h4{font-size:1em;margin:1.33em 0}h5{font-size:.83em;margin:1.67em 0}h6{font-size:.67em;margin:2.33em 0}ol,ul{padding:0}ul{list-style:none}ol{list-style-type:decimal;margin-left:2em}ul.ul-disc{list-style:disc outside}ul.ul-square{list-style:square outside}ol.ol-decimal{list-style:decimal outside}ol.ol-decimal,ul.ul-disc,ul.ul-square{margin-left:1.8em}ol.ol-decimal>li,ul.ul-disc>li,ul.ul-square>li{margin:0 0 .5em}.ltr{direction:ltr}.code,code{font-family:Consolas,Monaco,monospace;direction:ltr;unicode-bidi:embed}code,kbd{padding:3px 5px 2px;margin:0 1px;background:#f0f0f1;background:rgba(0,0,0,.07);font-size:13px}.subsubsub{list-style:none;margin:8px 0 0;padding:0;font-size:13px;float:left;color:#646970}.subsubsub a{line-height:2;padding:.2em;text-decoration:none}.subsubsub a .count,.subsubsub a.current .count{color:#50575e;font-weight:400}.subsubsub a.current{font-weight:600;border:none}.subsubsub li{display:inline-block;margin:0;padding:0;white-space:nowrap}.widefat{border-spacing:0;width:100%;clear:both;margin:0}.widefat *{word-wrap:break-word}.widefat a,.widefat button.button-link{text-decoration:none}.widefat td,.widefat th{padding:8px 10px}.widefat thead td,.widefat thead th{border-bottom:1px solid #c3c4c7}.widefat tfoot td,.widefat tfoot th{border-top:1px solid #c3c4c7;border-bottom:none}.widefat .no-items td{border-bottom-width:0}.widefat td{vertical-align:top}.widefat td,.widefat td ol,.widefat td p,.widefat td ul{font-size:13px;line-height:1.5em}.widefat tfoot td,.widefat th,.widefat thead td{text-align:left;line-height:1.3em;font-size:14px}.updates-table td input,.widefat tfoot td input,.widefat th input,.widefat thead td input{margin:0 0 0 8px;padding:0;vertical-align:text-top}.widefat .check-column{width:2.2em;padding:6px 0 25px;vertical-align:top}.widefat tbody th.check-column{padding:9px 0 22px}.updates-table tbody td.check-column,.widefat tbody th.check-column,.widefat tfoot td.check-column,.widefat thead td.check-column{padding:11px 0 0 3px}.widefat tfoot td.check-column,.widefat thead td.check-column{padding-top:4px;vertical-align:middle}.update-php div.error,.update-php div.updated{margin-left:0}.js-update-details-toggle .dashicons{text-decoration:none}.js-update-details-toggle[aria-expanded=true] .dashicons::before{content:"\f142"}.no-js .widefat tfoot .check-column input,.no-js .widefat thead .check-column input{display:none}.column-comments,.column-links,.column-posts,.widefat .num{text-align:center}.widefat th#comments{vertical-align:middle}.wrap{margin:10px 20px 0 2px}.postbox .inside h2,.wrap [class$=icon32]+h2,.wrap h1,.wrap>h2:first-child{font-size:23px;font-weight:400;margin:0;padding:9px 0 4px;line-height:1.3}.wrap h1.wp-heading-inline{display:inline-block;margin-right:5px}.wp-header-end{visibility:hidden;margin:-2px 0 0}.subtitle{margin:0;padding-left:25px;color:#50575e;font-size:14px;font-weight:400;line-height:1}.subtitle strong{word-break:break-all}.wrap .add-new-h2,.wrap .add-new-h2:active,.wrap .page-title-action,.wrap .page-title-action:active{display:inline-block;position:relative;box-sizing:border-box;cursor:pointer;white-space:nowrap;text-decoration:none;text-shadow:none;top:-3px;margin-left:4px;border:1px solid #2271b1;border-radius:3px;background:#f6f7f7;font-size:13px;font-weight:400;line-height:2.15384615;color:#2271b1;padding:0 10px;min-height:30px;-webkit-appearance:none}.wrap .wp-heading-inline+.page-title-action{margin-left:0}.wrap .add-new-h2:hover,.wrap .page-title-action:hover{background:#f0f0f1;border-color:#0a4b78;color:#0a4b78}.page-title-action:focus{color:#0a4b78}.form-table th label[for=WPLANG] .dashicons,.form-table th label[for=locale] .dashicons{margin-left:5px}.wrap .page-title-action:focus{border-color:#3582c4;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.wrap h1.long-header{padding-right:0}.wp-dialog{background-color:#fff}#available-widgets .widget-top:hover,#widgets-left .widget-in-question .widget-top,#widgets-left .widget-top:hover,.widgets-chooser ul,div#widgets-right .widget-top:hover{border-color:#8c8f94;box-shadow:0 1px 2px rgba(0,0,0,.1)}.sorthelper{background-color:#c5d9ed}.ac_match,.subsubsub a.current{color:#000}.alternate,.striped>tbody>:nth-child(odd),ul.striped>:nth-child(odd){background-color:#f6f7f7}.bar{background-color:#f0f0f1;border-right-color:#4f94d4}.highlight{background-color:#f0f6fc;color:#3c434a}.wp-ui-primary{color:#fff;background-color:#2c3338}.wp-ui-text-primary{color:#2c3338}.wp-ui-highlight{color:#fff;background-color:#2271b1}.wp-ui-text-highlight{color:#2271b1}.wp-ui-notification{color:#fff;background-color:#d63638}.wp-ui-text-notification{color:#d63638}.wp-ui-text-icon{color:#8c8f94}img.emoji{display:inline!important;border:none!important;height:1em!important;width:1em!important;margin:0 .07em!important;vertical-align:-.1em!important;background:0 0!important;padding:0!important;box-shadow:none!important}#nav-menu-footer,#nav-menu-header,#your-profile #rich_editing,.checkbox,.control-section .accordion-section-title,.menu-item-handle,.postbox .hndle,.side-info,.sidebar-name,.stuffbox .hndle,.widefat tfoot td,.widefat tfoot th,.widefat thead td,.widefat thead th,.widget .widget-top{line-height:1.4em}.menu-item-handle,.widget .widget-top{background:#f6f7f7;color:#1d2327}.stuffbox .hndle{border-bottom:1px solid #c3c4c7}.quicktags{background-color:#c3c4c7;color:#000;font-size:12px}.icon32{display:none}#bulk-titles .ntdelbutton:before,.notice-dismiss:before,.tagchecklist .ntdelbutton .remove-tag-icon:before,.welcome-panel .welcome-panel-close:before{background:0 0;color:#787c82;content:"\f153";display:block;font:normal 16px/20px dashicons;speak:never;height:20px;text-align:center;width:20px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.welcome-panel .welcome-panel-close:before{margin:0}.tagchecklist .ntdelbutton .remove-tag-icon:before{margin-left:2px;border-radius:50%;color:#2271b1;line-height:1.28}.tagchecklist .ntdelbutton:focus{outline:0}#bulk-titles .ntdelbutton:focus:before,#bulk-titles .ntdelbutton:hover:before,.tagchecklist .ntdelbutton:focus .remove-tag-icon:before,.tagchecklist .ntdelbutton:hover .remove-tag-icon:before{color:#d63638}.tagchecklist .ntdelbutton:focus .remove-tag-icon:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.key-labels label{line-height:24px}b,strong{font-weight:600}.pre{white-space:pre-wrap;word-wrap:break-word}.howto{color:#646970;display:block}p.install-help{margin:8px 0;font-style:italic}.no-break{white-space:nowrap}hr{border:0;border-top:1px solid #dcdcde;border-bottom:1px solid #f6f7f7}#all-plugins-table .plugins a.delete,#delete-link a.delete,#media-items a.delete,#media-items a.delete-permanently,#nav-menu-footer .menu-delete,#search-plugins-table .plugins a.delete,.plugins a.delete,.privacy_requests .remove-personal-data .remove-personal-data-handle,.row-actions span.delete a,.row-actions span.spam a,.row-actions span.trash a,.submitbox .submitdelete,a#remove-post-thumbnail{color:#b32d2e}#all-plugins-table .plugins a.delete:hover,#delete-link a.delete:hover,#media-items a.delete-permanently:hover,#media-items a.delete:hover,#nav-menu-footer .menu-delete:hover,#search-plugins-table .plugins a.delete:hover,.file-error,.plugins a.delete:hover,.privacy_requests .remove-personal-data .remove-personal-data-handle:hover,.row-actions .delete a:hover,.row-actions .spam a:hover,.row-actions .trash a:hover,.submitbox .submitdelete:hover,a#remove-post-thumbnail:hover,abbr.required,span.required{color:#b32d2e;border:none}#major-publishing-actions{padding:10px;clear:both;border-top:1px solid #dcdcde;background:#f6f7f7}#delete-action{float:left;line-height:2.30769231}#delete-link{line-height:2.30769231;vertical-align:middle;text-align:left;margin-left:8px}#delete-link a{text-decoration:none}#publishing-action{text-align:right;float:right;line-height:1.9}#publishing-action .spinner{float:none;margin-top:5px}#misc-publishing-actions{padding:6px 0 0}.misc-pub-section{padding:6px 10px 8px}.misc-pub-filename,.word-wrap-break-word{word-wrap:break-word}#minor-publishing-actions{padding:10px 10px 0;text-align:right}#save-post{float:left}.preview{float:right}#sticky-span{margin-left:18px}.approve,.unapproved .unapprove{display:none}.spam .approve,.trash .approve,.unapproved .approve{display:inline}td.action-links,th.action-links{text-align:right}#misc-publishing-actions .notice{margin-left:10px;margin-right:10px}.wp-filter{display:inline-block;position:relative;box-sizing:border-box;margin:12px 0 25px;padding:0 10px;width:100%;box-shadow:0 1px 1px rgba(0,0,0,.04);border:1px solid #c3c4c7;background:#fff;color:#50575e;font-size:13px}.wp-filter a{text-decoration:none}.filter-count{display:inline-block;vertical-align:middle;min-width:4em}.filter-count .count,.title-count{display:inline-block;position:relative;top:-1px;padding:4px 10px;border-radius:30px;background:#646970;color:#fff;font-size:14px;font-weight:600}.title-count{display:inline;top:-3px;margin-left:5px;margin-right:20px}.filter-items{float:left}.filter-links{display:inline-block;margin:0}.filter-links li{display:inline-block;margin:0}.filter-links li>a{display:inline-block;margin:0 10px;padding:15px 0;border-bottom:4px solid #fff;color:#646970;cursor:pointer}.filter-links .current{box-shadow:none;border-bottom:4px solid #646970;color:#1d2327}.filter-links li>a:focus,.filter-links li>a:hover,.show-filters .filter-links a.current:focus,.show-filters .filter-links a.current:hover{color:#135e96}.wp-filter .search-form{float:right;display:flex;align-items:center;column-gap:.5rem}.wp-filter .search-form input[type=search]{width:280px;max-width:100%}.wp-filter .search-form select{margin:0}.plugin-install-php .wp-filter{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center}.wp-filter .search-form.search-plugins{margin-top:0}.no-js .wp-filter .search-form.search-plugins .button,.wp-filter .search-form.search-plugins .wp-filter-search,.wp-filter .search-form.search-plugins select{display:inline-block;vertical-align:top}.wp-filter .button.drawer-toggle{margin:10px 9px 0;padding:0 10px 0 6px;border-color:transparent;background-color:transparent;color:#646970;vertical-align:baseline;box-shadow:none}.wp-filter .drawer-toggle:before{content:"\f111";margin:0 5px 0 0;color:#646970;font:normal 16px/1 dashicons;vertical-align:text-bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-filter .button.drawer-toggle:focus,.wp-filter .button.drawer-toggle:hover,.wp-filter .drawer-toggle:focus:before,.wp-filter .drawer-toggle:hover:before{background-color:transparent;color:#135e96}.wp-filter .button.drawer-toggle:focus:active,.wp-filter .button.drawer-toggle:hover{border-color:transparent}.wp-filter .button.drawer-toggle:focus{border-color:#4f94d4}.wp-filter .button.drawer-toggle:active{background:0 0;box-shadow:none;transform:none}.wp-filter .drawer-toggle.current:before{color:#fff}.filter-drawer,.wp-filter .favorites-form{display:none;margin:0 -10px 0 -20px;padding:20px;border-top:1px solid #f0f0f1;background:#f6f7f7;overflow:hidden}.show-favorites-form .favorites-form,.show-filters .filter-drawer{display:block}.show-filters .filter-links a.current{border-bottom:none}.show-filters .wp-filter .button.drawer-toggle{border-radius:2px;background:#646970;color:#fff}.show-filters .wp-filter .drawer-toggle:focus,.show-filters .wp-filter .drawer-toggle:hover{background:#2271b1}.show-filters .wp-filter .drawer-toggle:before{color:#fff}.filter-group{box-sizing:border-box;position:relative;float:left;margin:0 1% 0 0;padding:20px 10px 10px;width:24%;background:#fff;border:1px solid #dcdcde;box-shadow:0 1px 1px rgba(0,0,0,.04)}.filter-group legend{position:absolute;top:10px;display:block;margin:0;padding:0;font-size:1em;font-weight:600}.filter-drawer .filter-group-feature{margin:28px 0 0;list-style-type:none;font-size:12px}.filter-drawer .filter-group-feature input,.filter-drawer .filter-group-feature label{line-height:1.4}.filter-drawer .filter-group-feature input{position:absolute;margin:0}.filter-group .filter-group-feature label{display:block;margin:14px 0 14px 23px}.filter-drawer .buttons{clear:both;margin-bottom:20px}.filter-drawer .filter-group+.buttons{margin-bottom:0;padding-top:20px}.filter-drawer .buttons .button span{display:inline-block;opacity:.8;font-size:12px;text-indent:10px}.wp-filter .button.clear-filters{display:none;margin-left:10px}.wp-filter .button-link.edit-filters{padding:0 5px;line-height:2.2}.filtered-by{display:none;margin:0}.filtered-by>span{font-weight:600}.filtered-by a{margin-left:10px}.filtered-by .tags{display:inline}.filtered-by .tag{margin:0 5px;padding:4px 8px;border:1px solid #dcdcde;box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff;font-size:11px}.filters-applied .filter-drawer .buttons,.filters-applied .filter-drawer br,.filters-applied .filter-group{display:none}.filters-applied .filtered-by{display:block}.filters-applied .filter-drawer{padding:20px}.error .content-filterable,.loading-content .content-filterable,.show-filters .content-filterable,.show-filters .favorites-form,.show-filters.filters-applied.loading-content .content-filterable{display:none}.show-filters.filters-applied .content-filterable{display:block}.loading-content .spinner{display:block;margin:40px auto 0;float:none}@media only screen and (max-width:1120px){.filter-drawer{border-bottom:1px solid #f0f0f1}.filter-group{margin-bottom:0;margin-top:5px;width:100%}.filter-group li{margin:10px 0}}@media only screen and (max-width:1000px){.filter-items{float:none}.wp-filter .media-toolbar-primary,.wp-filter .media-toolbar-secondary,.wp-filter .search-form{float:none;position:relative;max-width:100%}.wp-filter .search-form{margin:11px 0;flex-wrap:wrap;row-gap:10px}}@media only screen and (max-width:782px){.filter-group li{padding:0;width:50%}}@media only screen and (max-width:320px){.filter-count{display:none}.wp-filter .drawer-toggle{margin:10px 0}.filter-group li,.wp-filter .search-form input[type=search]{width:100%}}.notice,div.error,div.updated{background:#fff;border:1px solid #c3c4c7;border-left-width:4px;box-shadow:0 1px 1px rgba(0,0,0,.04);margin:5px 15px 2px;padding:1px 12px}div[class=update-message]{padding:.5em 12px .5em 0}.form-table td .notice p,.notice p,.notice-title,div.error p,div.updated p{margin:.5em 0;padding:2px}.error a{text-decoration:underline}.updated a{padding-bottom:2px}.notice-alt{box-shadow:none}.notice-large{padding:10px 20px}.notice-title{display:inline-block;color:#1d2327;font-size:18px}.wp-core-ui .notice.is-dismissible{padding-right:38px;position:relative}.notice-dismiss{position:absolute;top:0;right:1px;border:none;margin:0;padding:9px;background:0 0;color:#787c82;cursor:pointer}.notice-dismiss:active:before,.notice-dismiss:focus:before,.notice-dismiss:hover:before{color:#d63638}.notice-dismiss:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.notice-success,div.updated{border-left-color:#00a32a}.notice-success.notice-alt{background-color:#edfaef}.notice-warning{border-left-color:#dba617}.notice-warning.notice-alt{background-color:#fcf9e8}.notice-error,div.error{border-left-color:#d63638}.notice-error.notice-alt{background-color:#fcf0f1}.notice-info{border-left-color:#72aee6}.notice-info.notice-alt{background-color:#f0f6fc}#plugin-information-footer .update-now:not(.button-disabled):before{color:#d63638;content:"\f463";display:inline-block;font:normal 20px/1 dashicons;margin:-3px 5px 0 -2px;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}#plugin-information-footer .notice{margin-top:-5px}.button.activated-message:before,.button.activating-message:before,.button.installed:before,.button.installing:before,.button.updated-message:before,.button.updating-message:before,.import-php .updating-message:before,.update-message p:before,.updated-message p:before,.updating-message p:before{display:inline-block;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.media-upload-form .notice,.media-upload-form div.error,.wrap .notice,.wrap div.error,.wrap div.updated{margin:5px 0 15px}.wrap #templateside .notice{display:block;margin:0;padding:5px 8px;font-weight:600;text-decoration:none}.wrap #templateside span.notice{margin-left:-12px}#templateside li.notice a{padding:0}.button.activating-message:before,.button.installing:before,.button.updating-message:before,.import-php .updating-message:before,.update-message p:before,.updating-message p:before{color:#d63638;content:"\f463"}.button.activating-message:before,.button.installing:before,.button.updating-message:before,.import-php .updating-message:before,.plugins .column-auto-updates .dashicons-update.spin,.theme-overlay .theme-autoupdate .dashicons-update.spin,.updating-message p:before{animation:rotation 2s infinite linear}@media (prefers-reduced-motion:reduce){.button.activating-message:before,.button.installing:before,.button.updating-message:before,.import-php .updating-message:before,.plugins .column-auto-updates .dashicons-update.spin,.theme-overlay .theme-autoupdate .dashicons-update.spin,.updating-message p:before{animation:none}}.theme-overlay .theme-autoupdate .dashicons-update.spin{margin-right:3px}.button.activated-message:before,.button.updated-message:before,.installed p:before,.updated-message p:before{color:#68de7c;content:"\f147"}.update-message.notice-error p:before{color:#d63638;content:"\f534"}.import-php .updating-message:before,.wrap .notice p:before{margin-right:6px}.import-php .updating-message:before{vertical-align:bottom}#update-nag,.update-nag{display:inline-block;line-height:1.4;padding:11px 15px;font-size:14px;margin:25px 20px 0 2px}ul#dismissed-updates{display:none}#dismissed-updates li>p{margin-top:0}#dismiss,#undismiss{margin-left:.5em}form.upgrade{margin-top:8px}form.upgrade .hint{font-style:italic;font-size:85%;margin:-.5em 0 2em}.update-php .spinner{float:none;margin:-4px 0}h2.wp-current-version{margin-bottom:.3em}p.update-last-checked{margin-top:0}p.auto-update-status{margin-top:2em;line-height:1.8}#ajax-loading,.ajax-feedback,.ajax-loading,.imgedit-wait-spin,.list-ajax-loading{visibility:hidden}#ajax-response.alignleft{margin-left:2em}.button.activated-message:before,.button.activating-message:before,.button.installed:before,.button.installing:before,.button.updated-message:before,.button.updating-message:before{margin:3px 5px 0 -2px}#plugin-information-footer .button{padding:0 14px;line-height:2.71428571;font-size:14px;vertical-align:middle;min-height:40px;margin-bottom:4px}#plugin-information-footer .button.activated-message:before,#plugin-information-footer .button.activating-message:before,#plugin-information-footer .button.installed:before,#plugin-information-footer .button.installing:before,#plugin-information-footer .button.updated-message:before,#plugin-information-footer .button.updating-message:before{margin:9px 5px 0 -2px}#plugin-information-footer .button.update-now.updating-message:before{margin:-3px 5px 0 -2px}.button-primary.activating-message:before,.button-primary.updating-message:before{color:#fff}.button-primary.activated-message:before,.button-primary.updated-message:before{color:#9ec2e6}.button.activated-message,.button.updated-message{transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}@media aural{.button.installed:before,.button.installing:before,.update-message p:before,.wrap .notice p:before{speak:never}}#adminmenu a,#catlist a,#taglist a{text-decoration:none}#contextual-help-wrap,#screen-options-wrap{margin:0;padding:8px 20px 12px;position:relative}#contextual-help-wrap{overflow:auto;margin-left:0}#screen-meta-links{float:right;margin:0 20px 0 0}#screen-meta{display:none;margin:0 20px -1px 0;position:relative;background-color:#fff;border:1px solid #c3c4c7;border-top:none;box-shadow:0 0 0 transparent}#contextual-help-link-wrap,#screen-options-link-wrap{float:left;margin:0 0 0 6px}#screen-meta-links .screen-meta-toggle{position:relative;top:0}#screen-meta-links .show-settings{border:1px solid #c3c4c7;border-top:none;height:auto;margin-bottom:0;padding:3px 6px 3px 16px;background:#fff;border-radius:0 0 4px 4px;color:#646970;line-height:1.7;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear}#screen-meta-links .show-settings:active,#screen-meta-links .show-settings:focus,#screen-meta-links .show-settings:hover{color:#2c3338}#screen-meta-links .show-settings:focus{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}#screen-meta-links .show-settings:active{transform:none}#screen-meta-links .show-settings:after{right:0;content:"\f140";font:normal 20px/1 dashicons;speak:never;display:inline-block;padding:0 5px 0 0;bottom:2px;position:relative;vertical-align:bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}#screen-meta-links .screen-meta-active:after{content:"\f142"}.toggle-arrow{background-repeat:no-repeat;background-position:top left;background-color:transparent;height:22px;line-height:22px;display:block}.toggle-arrow-active{background-position:bottom left}#contextual-help-wrap h5,#screen-options-wrap h5,#screen-options-wrap legend{margin:0;padding:8px 0;font-size:13px;font-weight:600}.metabox-prefs label{display:inline-block;padding-right:15px;line-height:2.35}#number-of-columns{display:inline-block;vertical-align:middle;line-height:30px}.metabox-prefs input[type=checkbox]{margin-top:0;margin-right:6px}.metabox-prefs label input,.metabox-prefs label input[type=checkbox]{margin:-4px 5px 0 0}.metabox-prefs .columns-prefs label input{margin:-1px 2px 0 0}.metabox-prefs label a{display:none}.metabox-prefs .screen-options input,.metabox-prefs .screen-options label{margin-top:0;margin-bottom:0;vertical-align:middle}.metabox-prefs .screen-options .screen-per-page{margin-right:15px;padding-right:0}.metabox-prefs .screen-options label{line-height:2.2;padding-right:0}.screen-options+.screen-options{margin-top:10px}.metabox-prefs .submit{margin-top:1em;padding:0}#contextual-help-wrap{padding:0}#contextual-help-columns{position:relative}#contextual-help-back{position:absolute;top:0;bottom:0;left:150px;right:170px;border:1px solid #c3c4c7;border-top:none;border-bottom:none;background:#f0f6fc}#contextual-help-wrap.no-sidebar #contextual-help-back{right:0;border-right-width:0;border-bottom-right-radius:2px}.contextual-help-tabs{float:left;width:150px;margin:0}.contextual-help-tabs ul{margin:1em 0}.contextual-help-tabs li{margin-bottom:0;list-style-type:none;border-style:solid;border-width:0 0 0 2px;border-color:transparent}.contextual-help-tabs a{display:block;padding:5px 5px 5px 12px;line-height:1.4;text-decoration:none;border:1px solid transparent;border-right:none;border-left:none}.contextual-help-tabs a:hover{color:#2c3338}.contextual-help-tabs .active{padding:0;margin:0 -1px 0 0;border-left:2px solid #72aee6;background:#f0f6fc;box-shadow:0 2px 0 rgba(0,0,0,.02),0 1px 0 rgba(0,0,0,.02)}.contextual-help-tabs .active a{border-color:#c3c4c7;color:#2c3338}.contextual-help-tabs-wrap{padding:0 20px;overflow:auto}.help-tab-content{display:none;margin:0 22px 12px 0;line-height:1.6}.help-tab-content.active{display:block}.help-tab-content ul li{list-style-type:disc;margin-left:18px}.contextual-help-sidebar{width:150px;float:right;padding:0 8px 0 12px;overflow:auto}html.wp-toolbar{padding-top:32px;box-sizing:border-box;-ms-overflow-style:scrollbar}.widefat td,.widefat th{color:#50575e}.widefat tfoot td,.widefat th,.widefat thead td{font-weight:400}.widefat tfoot tr td,.widefat tfoot tr th,.widefat thead tr td,.widefat thead tr th{color:#2c3338}.widefat td p{margin:2px 0 .8em}.widefat ol,.widefat p,.widefat ul{color:#2c3338}.widefat .column-comment p{margin:.6em 0}.widefat .column-comment ul{list-style:initial;margin-left:2em}.postbox-container{float:left}.postbox-container .meta-box-sortables{box-sizing:border-box}#wpbody-content .metabox-holder{padding-top:10px}.metabox-holder .postbox-container .meta-box-sortables{min-height:1px;position:relative}#post-body-content{width:100%;min-width:463px;float:left}#post-body.columns-2 #postbox-container-1{float:right;margin-right:-300px;width:280px}#post-body.columns-2 #side-sortables{min-height:250px}@media only screen and (max-width:799px){#wpbody-content .metabox-holder .postbox-container .empty-container{outline:0;height:0;min-height:0}}.js .postbox .hndle,.js .widget .widget-top{cursor:move}.js .postbox .hndle.is-non-sortable,.js .widget .widget-top.is-non-sortable{cursor:auto}.hndle a{font-size:12px;font-weight:400}.postbox-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #c3c4c7}.postbox-header .hndle{flex-grow:1;display:flex;justify-content:space-between;align-items:center}.postbox-header .handle-actions{flex-shrink:0}.postbox .handle-order-higher,.postbox .handle-order-lower,.postbox .handlediv{width:1.62rem;height:1.62rem;margin:0;padding:0;border:0;background:0 0;cursor:pointer}.postbox .handle-order-higher,.postbox .handle-order-lower{color:#787c82;width:1.62rem}.edit-post-meta-boxes-area .postbox .handle-order-higher,.edit-post-meta-boxes-area .postbox .handle-order-lower{width:44px;height:44px;color:#1d2327}.postbox .handle-order-higher[aria-disabled=true],.postbox .handle-order-lower[aria-disabled=true]{cursor:default;color:#a7aaad}.sortable-placeholder{border:1px dashed #c3c4c7;margin-bottom:20px}.postbox,.stuffbox{margin-bottom:20px;padding:0;line-height:1}.postbox.closed{border-bottom:0}.postbox .hndle,.stuffbox .hndle{-webkit-user-select:none;user-select:none}.postbox .inside{padding:0 12px 12px;line-height:1.4;font-size:13px}.stuffbox .inside{padding:0;line-height:1.4;font-size:13px;margin-top:0}.postbox .inside{margin:11px 0;position:relative}.postbox .inside>p:last-child,.rss-widget ul li:last-child{margin-bottom:1px!important}.postbox.closed h3{border:none;box-shadow:none}.postbox table.form-table{margin-bottom:0}.postbox table.widefat{box-shadow:none}.temp-border{border:1px dotted #c3c4c7}.columns-prefs label{padding:0 10px 0 0}#adminmenu .wp-submenu li.current,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:hover,#comment-status-display,#dashboard_right_now .versions .b,#ed_reply_toolbar #ed_reply_strong,#pass-strength-result.short,#pass-strength-result.strong,#post-status-display,#post-visibility-display,.feature-filter .feature-name,.item-controls .item-order a,.media-item .percent,.plugins .name{font-weight:600}#wpfooter{position:absolute;bottom:0;left:0;right:0;padding:10px 20px;color:#50575e}#wpfooter p{font-size:13px;margin:0;line-height:1.55}#footer-thankyou{font-style:italic}.nav-tab{float:left;border:1px solid #c3c4c7;border-bottom:none;margin-left:.5em;padding:5px 10px;font-size:14px;line-height:1.71428571;font-weight:600;background:#dcdcde;color:#50575e;text-decoration:none;white-space:nowrap}.nav-tab-small .nav-tab,h3 .nav-tab{padding:5px 14px;font-size:12px;line-height:1.33}.nav-tab:focus,.nav-tab:hover{background-color:#fff;color:#3c434a}.nav-tab-active,.nav-tab:focus:active{box-shadow:none}.nav-tab-active{margin-bottom:-1px;color:#3c434a}.nav-tab-active,.nav-tab-active:focus,.nav-tab-active:focus:active,.nav-tab-active:hover{border-bottom:1px solid #f0f0f1;background:#f0f0f1;color:#000}.nav-tab-wrapper,.wrap h2.nav-tab-wrapper,h1.nav-tab-wrapper{border-bottom:1px solid #c3c4c7;margin:0;padding-top:9px;padding-bottom:0;line-height:inherit}.nav-tab-wrapper:not(.wp-clearfix):after{content:"";display:table;clear:both}.spinner{background:url(../images/spinner.gif) no-repeat;background-size:20px 20px;display:inline-block;visibility:hidden;float:right;vertical-align:middle;opacity:.7;width:20px;height:20px;margin:4px 10px 0}.loading-content .spinner,.spinner.is-active{visibility:visible}#template>div{margin-right:16em}#template .notice{margin-top:1em;margin-right:3%}#template .notice p{width:auto}#template .submit .spinner{float:none}.metabox-holder .postbox>h3,.metabox-holder .stuffbox>h3,.metabox-holder h2.hndle,.metabox-holder h3.hndle{font-size:14px;padding:8px 12px;margin:0;line-height:1.4}.nav-menus-php .metabox-holder h3{padding:10px 10px 11px 14px;line-height:1.5}#templateside ul li a{text-decoration:none}.plugin-install #description,.plugin-install-network #description{width:60%}table .column-rating,table .column-visible,table .vers{text-align:left}.attention,.error-message{color:#d63638;font-weight:600}body.iframe{height:98%}.lp-show-latest p{display:none}.lp-show-latest .lp-error p,.lp-show-latest p:last-child{display:block}.media-icon{width:62px;text-align:center}.media-icon img{border:1px solid #dcdcde;border:1px solid rgba(0,0,0,.07)}#howto{font-size:11px;margin:0 5px;display:block}.importers{font-size:16px;width:auto}.importers td{padding-right:14px;line-height:1.4}.importers .import-system{max-width:250px}.importers td.desc{max-width:500px}.importer-action,.importer-desc,.importer-title{display:block}.importer-title{color:#000;font-size:14px;font-weight:400;margin-bottom:.2em}.importer-action{line-height:1.55;color:#50575e;margin-bottom:1em}#post-body #post-body-content #namediv h2,#post-body #post-body-content #namediv h3{margin-top:0}.edit-comment-author{color:#1d2327;border-bottom:1px solid #f0f0f1}#namediv h2 label,#namediv h3 label{vertical-align:baseline}#namediv table{width:100%}#namediv td.first{width:10px;white-space:nowrap}#namediv input{width:100%}#namediv p{margin:10px 0}.zerosize{height:0;width:0;margin:0;border:0;padding:0;overflow:hidden;position:absolute}br.clear{height:2px;line-height:.15}.checkbox{border:none;margin:0;padding:0}fieldset{border:0;padding:0;margin:0}.post-categories{display:inline;margin:0;padding:0}.post-categories li{display:inline}div.star-holder{position:relative;height:17px;width:100px;background:url(../images/stars.png?ver=20121108) repeat-x bottom left}div.star-holder .star-rating{background:url(../images/stars.png?ver=20121108) repeat-x top left;height:17px;float:left}.star-rating{white-space:nowrap}.star-rating .star{display:inline-block;width:20px;height:20px;-webkit-font-smoothing:antialiased;font-size:20px;line-height:1;font-family:dashicons;text-decoration:inherit;font-weight:400;font-style:normal;vertical-align:top;transition:color .1s ease-in;text-align:center;color:#dba617}.star-rating .star-full:before{content:"\f155"}.star-rating .star-half:before{content:"\f459"}.rtl .star-rating .star-half{transform:rotateY(180deg)}.star-rating .star-empty:before{content:"\f154"}div.action-links{font-weight:400;margin:6px 0 0}#plugin-information{background:#fff;position:fixed;top:0;right:0;bottom:0;left:0;height:100%;padding:0}#plugin-information-scrollable{overflow:auto;-webkit-overflow-scrolling:touch;height:100%}#plugin-information-title{padding:0 26px;background:#f6f7f7;font-size:22px;font-weight:600;line-height:2.4;position:relative;height:56px}#plugin-information-title.with-banner{margin-right:0;height:250px;background-size:cover}#plugin-information-title h2{font-size:1em;font-weight:600;padding:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#plugin-information-title.with-banner h2{position:relative;font-family:"Helvetica Neue",sans-serif;display:inline-block;font-size:30px;line-height:1.68;box-sizing:border-box;max-width:100%;padding:0 15px;margin-top:174px;color:#fff;background:rgba(29,35,39,.9);text-shadow:0 1px 3px rgba(0,0,0,.4);box-shadow:0 0 30px rgba(255,255,255,.1);border-radius:8px}#plugin-information-title div.vignette{display:none}#plugin-information-title.with-banner div.vignette{position:absolute;display:block;top:0;left:0;height:250px;width:100%;background:0 0;box-shadow:inset 0 0 50px 4px rgba(0,0,0,.2),inset 0 -1px 0 rgba(0,0,0,.1)}#plugin-information-tabs{padding:0 16px;position:relative;right:0;left:0;min-height:36px;font-size:0;z-index:1;border-bottom:1px solid #dcdcde;background:#f6f7f7}#plugin-information-tabs a{position:relative;display:inline-block;padding:9px 10px;margin:0;height:18px;line-height:1.3;font-size:14px;text-decoration:none;transition:none}#plugin-information-tabs a.current{margin:0 -1px -1px;background:#fff;border:1px solid #dcdcde;border-bottom-color:#fff;padding-top:8px;color:#2c3338}#plugin-information-tabs.with-banner a.current{border-top:none;padding-top:9px}#plugin-information-tabs a:active,#plugin-information-tabs a:focus{outline:0}#plugin-information-content{overflow:hidden;background:#fff;position:relative;top:0;right:0;left:0;min-height:100%;min-height:calc(100% - 152px)}#plugin-information-content.with-banner{min-height:calc(100% - 346px)}#section-holder{position:relative;top:0;right:250px;bottom:0;left:0;margin-top:10px;margin-right:250px;padding:10px 26px 99999px;margin-bottom:-99932px}#section-holder .notice{margin:5px 0 15px}#section-holder .updated{margin:16px 0}#plugin-information .fyi{float:right;position:relative;top:0;right:0;padding:16px 16px 99999px;margin-bottom:-99932px;width:217px;border-left:1px solid #dcdcde;background:#f6f7f7;color:#646970}#plugin-information .fyi strong{color:#3c434a}#plugin-information .fyi h3{font-weight:600;text-transform:uppercase;font-size:12px;color:#646970;margin:24px 0 8px}#plugin-information .fyi h2{font-size:.9em;margin-bottom:0;margin-right:0}#plugin-information .fyi ul{padding:0;margin:0;list-style:none}#plugin-information .fyi li{margin:0 0 10px}#plugin-information .fyi-description{margin-top:0}#plugin-information .counter-container{margin:3px 0}#plugin-information .counter-label{float:left;margin-right:5px;min-width:55px}#plugin-information .counter-back{height:17px;width:92px;background-color:#dcdcde;float:left}#plugin-information .counter-bar{height:17px;background-color:#f0c33c;float:left}#plugin-information .counter-count{margin-left:5px}#plugin-information .fyi ul.contributors{margin-top:10px}#plugin-information .fyi ul.contributors li{display:inline-block;margin-right:8px;vertical-align:middle}#plugin-information .fyi ul.contributors li{display:inline-block;margin-right:8px;vertical-align:middle}#plugin-information .fyi ul.contributors li img{vertical-align:middle;margin-right:4px}#plugin-information-footer{padding:13px 16px;position:absolute;right:0;bottom:0;left:0;height:40px;border-top:1px solid #dcdcde;background:#f6f7f7}#plugin-information .section{direction:ltr}#plugin-information .section ol,#plugin-information .section ul{list-style-type:disc;margin-left:24px}#plugin-information .section,#plugin-information .section p{font-size:14px;line-height:1.7}#plugin-information #section-screenshots ol{list-style:none;margin:0}#plugin-information #section-screenshots li img{vertical-align:text-top;margin-top:16px;max-width:100%;width:auto;height:auto;box-shadow:0 1px 2px rgba(0,0,0,.3)}#plugin-information #section-screenshots li p{font-style:italic;padding-left:20px}#plugin-information pre{padding:7px;overflow:auto;border:1px solid #c3c4c7}#plugin-information blockquote{border-left:2px solid #dcdcde;color:#646970;font-style:italic;margin:1em 0;padding:0 0 0 1em}#plugin-information .review{overflow:hidden;width:100%;margin-bottom:20px;border-bottom:1px solid #dcdcde}#plugin-information .review-title-section{overflow:hidden}#plugin-information .review-title-section h4{display:inline-block;float:left;margin:0 6px 0 0}#plugin-information .reviewer-info p{clear:both;margin:0;padding-top:2px}#plugin-information .reviewer-info .avatar{float:left;margin:4px 6px 0 0}#plugin-information .reviewer-info .star-rating{float:left}#plugin-information .review-meta{float:left;margin-left:.75em}#plugin-information .review-body{float:left;width:100%}.plugin-version-author-uri{font-size:13px}.update-php .button.button-primary{margin-right:1em}@media screen and (max-width:771px){#plugin-information-title.with-banner{height:100px}#plugin-information-title.with-banner h2{margin-top:30px;font-size:20px;line-height:2;max-width:85%}#plugin-information-title.with-banner div.vignette{height:100px}#plugin-information-tabs{overflow:hidden;padding:0;height:auto}#plugin-information-tabs a.current{margin-bottom:0;border-bottom:none}#plugin-information .fyi{float:none;border:1px solid #dcdcde;position:static;width:auto;margin:26px 26px 0;padding-bottom:0}#section-holder{position:static;margin:0;padding-bottom:70px}#plugin-information .fyi h3,#plugin-information .fyi small{display:none}#plugin-information-footer{padding:12px 16px 0;height:46px}}#TB_window.plugin-details-modal{background:#fff}#TB_window.plugin-details-modal.thickbox-loading:before{content:"";display:block;width:20px;height:20px;position:absolute;left:50%;top:50%;z-index:-1;margin:-10px 0 0 -10px;background:#fff url(../images/spinner.gif) no-repeat center;background-size:20px 20px;transform:translateZ(0)}@media print,(min-resolution:120dpi){#TB_window.plugin-details-modal.thickbox-loading:before{background-image:url(../images/spinner-2x.gif)}}.plugin-details-modal #TB_title{float:left;height:1px}.plugin-details-modal #TB_ajaxWindowTitle{display:none}.plugin-details-modal #TB_closeWindowButton{left:auto;right:-30px;color:#f0f0f1}.plugin-details-modal #TB_closeWindowButton:focus,.plugin-details-modal #TB_closeWindowButton:hover{outline:0;box-shadow:none}.plugin-details-modal #TB_closeWindowButton:focus::after,.plugin-details-modal #TB_closeWindowButton:hover::after{outline:2px solid;outline-offset:-4px;border-radius:4px}.plugin-details-modal .tb-close-icon{display:none}.plugin-details-modal #TB_closeWindowButton:after{content:"\f335";font:normal 32px/29px dashicons;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media screen and (max-width:830px){.plugin-details-modal #TB_closeWindowButton{right:0;top:-30px}}img{border:none}.bulk-action-notice .toggle-indicator::before,.meta-box-sortables .postbox .order-higher-indicator::before,.meta-box-sortables .postbox .order-lower-indicator::before,.meta-box-sortables .postbox .toggle-indicator::before,.privacy-text-box .toggle-indicator::before,.sidebar-name .toggle-indicator::before{content:"\f142";display:inline-block;font:normal 20px/1 dashicons;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}.bulk-action-notice .bulk-action-errors-collapsed .toggle-indicator::before,.js .widgets-holder-wrap.closed .toggle-indicator::before,.meta-box-sortables .postbox.closed .handlediv .toggle-indicator::before,.privacy-text-box.closed .toggle-indicator::before{content:"\f140"}.postbox .handle-order-higher .order-higher-indicator::before{content:"\f343";color:inherit}.postbox .handle-order-lower .order-lower-indicator::before{content:"\f347";color:inherit}.postbox .handle-order-higher .order-higher-indicator::before,.postbox .handle-order-lower .order-lower-indicator::before{position:relative;top:.11rem;width:20px;height:20px}.postbox .handlediv .toggle-indicator::before{width:20px;border-radius:50%}.postbox .handlediv .toggle-indicator::before{position:relative;top:.05rem;text-indent:-1px}.rtl .postbox .handlediv .toggle-indicator::before{text-indent:1px}.bulk-action-notice .toggle-indicator::before{line-height:16px;vertical-align:top;color:#787c82}.postbox .handle-order-higher:focus,.postbox .handle-order-lower:focus,.postbox .handlediv:focus{box-shadow:inset 0 0 0 2px #2271b1;border-radius:50%;outline:2px solid transparent}.postbox .handle-order-higher:focus .order-higher-indicator::before,.postbox .handle-order-lower:focus .order-lower-indicator::before,.postbox .handlediv:focus .toggle-indicator::before{box-shadow:none;outline:1px solid transparent}#photo-add-url-div input[type=text]{width:300px}.alignleft h2{margin:0}#template textarea{font-family:Consolas,Monaco,monospace;font-size:13px;background:#f6f7f7;tab-size:4}#template .CodeMirror,#template textarea{width:100%;min-height:60vh;height:calc(100vh - 295px);border:1px solid #dcdcde;box-sizing:border-box}#templateside>h2{padding-top:6px;padding-bottom:7px;margin:0}#templateside ol,#templateside ul{margin:0;padding:0}#templateside>ul{box-sizing:border-box;margin-top:0;overflow:auto;padding:0;min-height:60vh;height:calc(100vh - 295px);background-color:#f6f7f7;border:1px solid #dcdcde;border-left:none}#templateside ul ul{padding-left:12px}#templateside>ul>li>ul[role=group]{padding-left:0}[role=treeitem][aria-expanded=false]>ul{display:none}[role=treeitem] span[aria-hidden]{display:inline;font-family:dashicons;font-size:20px;position:absolute;pointer-events:none}[role=treeitem][aria-expanded=false]>.folder-label .icon:after{content:"\f139"}[role=treeitem][aria-expanded=true]>.folder-label .icon:after{content:"\f140"}[role=treeitem] .folder-label{display:block;padding:3px 3px 3px 12px;cursor:pointer}[role=treeitem]{outline:0}[role=treeitem] .folder-label.focus,[role=treeitem] a:focus{color:#043959;box-shadow:none;outline:2px solid #2271b1;outline-offset:-2px}[role=treeitem] .folder-label.hover,[role=treeitem].hover{background-color:#f0f0f1}.tree-folder{margin:0;position:relative}[role=treeitem] li{position:relative}.tree-folder .tree-folder::after{content:"";display:block;position:absolute;left:2px;border-left:1px solid #c3c4c7;top:-13px;bottom:10px}.tree-folder>li::before{content:"";position:absolute;display:block;border-left:1px solid #c3c4c7;left:2px;top:-5px;height:18px;width:7px;border-bottom:1px solid #c3c4c7}.tree-folder>li::after{content:"";position:absolute;display:block;border-left:1px solid #c3c4c7;left:2px;bottom:-7px;top:0}#templateside .current-file{margin:-4px 0 -2px}.tree-folder>.current-file::before{left:4px;height:15px;width:0;border-left:none;top:3px}.tree-folder>.current-file::after{bottom:-4px;height:7px;left:2px;top:auto}.tree-folder li:last-child>.tree-folder::after,.tree-folder>li:last-child::after{display:none}#documentation label,#theme-plugin-editor-label,#theme-plugin-editor-selector{font-weight:600}#theme-plugin-editor-label{display:inline-block;margin-bottom:1em}#docs-list,#template textarea{direction:ltr}.fileedit-sub #plugin,.fileedit-sub #theme{max-width:40%}.fileedit-sub .alignright{text-align:right}#template p{width:97%}#file-editor-linting-error{margin-top:1em;margin-bottom:1em}#file-editor-linting-error>.notice{margin:0;display:inline-block}#file-editor-linting-error>.notice>p{width:auto}#template .submit{margin-top:1em;padding:0}#template .submit input[type=submit][disabled]{cursor:not-allowed}#templateside{float:right;width:16em;word-wrap:break-word}#postcustomstuff p.submit{margin:0}#templateside h4{margin:1em 0 0}#templateside li{margin:4px 0}#templateside li:not(.howto) a,.theme-editor-php .highlight{display:block;padding:3px 0 3px 12px;text-decoration:none}#templateside li.current-file>a{padding-bottom:0}#templateside li:not(.howto)>a:first-of-type{padding-top:0}#templateside li.howto{padding:6px 12px 12px}.theme-editor-php .highlight{margin:-3px 3px -3px -12px}#templateside .highlight{border:none;font-weight:600}.nonessential{color:#646970;font-size:11px;font-style:italic;padding-left:12px}#documentation{margin-top:10px}#documentation label{line-height:1.8;vertical-align:baseline}.fileedit-sub{padding:10px 0 8px;line-height:180%}#file-editor-warning .file-editor-warning-content{margin:25px}.accordion-section-title:after,.control-section .accordion-section-title:after,.nav-menus-php .item-edit:before,.widget-top .widget-action .toggle-indicator:before{content:"\f140";font:normal 20px/1 dashicons;speak:never;display:block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}.widget-top .widget-action .toggle-indicator:before{padding:1px 2px 1px 0;border-radius:50%}.accordion-section-title:after,.handlediv,.item-edit,.postbox .handlediv.button-link,.toggle-indicator{color:#787c82}.widget-action{color:#50575e}.accordion-section-title:hover:after,.handlediv:focus,.handlediv:hover,.item-edit:focus,.item-edit:hover,.postbox .handlediv.button-link:focus,.postbox .handlediv.button-link:hover,.sidebar-name:hover .toggle-indicator,.widget-action:focus,.widget-top:hover .widget-action{color:#1d2327;outline:2px solid transparent}.widget-top .widget-action:focus .toggle-indicator:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.accordion-section-title:after,.control-section .accordion-section-title:after{float:right;right:20px;top:-2px}#customize-info.open .accordion-section-title:after,.control-section.open .accordion-section-title:after,.nav-menus-php .menu-item-edit-active .item-edit:before,.widget.open .widget-top .widget-action .toggle-indicator:before,.widget.widget-in-question .widget-top .widget-action .toggle-indicator:before{content:"\f142"}/*!
* jQuery UI Draggable/Sortable 1.11.4
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
- */.ui-draggable-handle,.ui-sortable-handle{touch-action:none}.accordion-section{border-bottom:1px solid #dcdcde;margin:0}.accordion-section.open .accordion-section-content,.no-js .accordion-section .accordion-section-content{display:block}.accordion-section.open:hover{border-bottom-color:#dcdcde}.accordion-section-content{display:none;padding:10px 20px 15px;overflow:hidden;background:#fff}.accordion-section-title{margin:0;padding:12px 15px 15px;position:relative;border-left:1px solid #dcdcde;border-right:1px solid #dcdcde;-webkit-user-select:none;user-select:none}.js .accordion-section-title{cursor:pointer}.js .accordion-section-title:after{position:absolute;top:12px;right:10px;z-index:1}.accordion-section-title:focus{outline:1px solid transparent}.accordion-section-title:focus:after,.accordion-section-title:hover:after{border-color:#a7aaad transparent;outline:1px solid transparent}.cannot-expand .accordion-section-title{cursor:auto}.cannot-expand .accordion-section-title:after{display:none}.control-section .accordion-section-title,.customize-pane-child .accordion-section-title{border-left:none;border-right:none;padding:10px 10px 11px 14px;line-height:1.55;background:#fff}.control-section .accordion-section-title:after,.customize-pane-child .accordion-section-title:after{top:calc(50% - 10px)}.js .control-section .accordion-section-title:focus,.js .control-section .accordion-section-title:hover,.js .control-section.open .accordion-section-title,.js .control-section:hover .accordion-section-title{color:#1d2327;background:#f6f7f7}.control-section.open .accordion-section-title{border-bottom:1px solid #dcdcde}.network-admin .edit-site-actions{margin-top:0}.my-sites{display:block;overflow:auto;zoom:1}.my-sites li{display:block;padding:8px 3%;min-height:130px;margin:0}@media only screen and (max-width:599px){.my-sites li{min-height:0}}@media only screen and (min-width:600px){.my-sites.striped li{background-color:#fff;position:relative}.my-sites.striped li:after{content:"";width:1px;height:100%;position:absolute;top:0;right:0;background:#c3c4c7}}@media only screen and (min-width:600px) and (max-width:699px){.my-sites li{float:left;width:44%}.my-sites.striped li{background-color:#fff}.my-sites.striped li:nth-of-type(odd){clear:left}.my-sites.striped li:nth-of-type(2n+2):after{content:none}.my-sites li:nth-of-type(4n+1),.my-sites li:nth-of-type(4n+2){background-color:#f6f7f7}}@media only screen and (min-width:700px) and (max-width:1199px){.my-sites li{float:left;width:27.333333%;background-color:#fff}.my-sites.striped li:nth-of-type(3n+3):after{content:none}.my-sites li:nth-of-type(6n+1),.my-sites li:nth-of-type(6n+2),.my-sites li:nth-of-type(6n+3){background-color:#f6f7f7}}@media only screen and (min-width:1200px) and (max-width:1399px){.my-sites li{float:left;width:21%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(4n+1){clear:left}.my-sites.striped li:nth-of-type(4n+4):after{content:none}.my-sites li:nth-of-type(8n+1),.my-sites li:nth-of-type(8n+2),.my-sites li:nth-of-type(8n+3),.my-sites li:nth-of-type(8n+4){background-color:#f6f7f7}}@media only screen and (min-width:1400px) and (max-width:1599px){.my-sites li{float:left;width:16%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(5n+1){clear:left}.my-sites.striped li:nth-of-type(5n+5):after{content:none}.my-sites li:nth-of-type(10n+1),.my-sites li:nth-of-type(10n+2),.my-sites li:nth-of-type(10n+3),.my-sites li:nth-of-type(10n+4),.my-sites li:nth-of-type(10n+5){background-color:#f6f7f7}}@media only screen and (min-width:1600px){.my-sites li{float:left;width:12.666666%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(6n+1){clear:left}.my-sites.striped li:nth-of-type(6n+6):after{content:none}.my-sites li:nth-of-type(12n+1),.my-sites li:nth-of-type(12n+2),.my-sites li:nth-of-type(12n+3),.my-sites li:nth-of-type(12n+4),.my-sites li:nth-of-type(12n+5),.my-sites li:nth-of-type(12n+6){background-color:#f6f7f7}}.my-sites li a{text-decoration:none}@media print,(min-resolution:120dpi){div.star-holder,div.star-holder .star-rating{background:url(../images/stars-2x.png?ver=20121108) repeat-x bottom left;background-size:21px 37px}.spinner{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){html.wp-toolbar{padding-top:46px}.screen-reader-shortcut:focus{top:-39px}body{min-width:240px;overflow-x:hidden}body *{-webkit-tap-highlight-color:transparent!important}#wpcontent{position:relative;margin-left:0;padding-left:10px}#wpbody-content{padding-bottom:100px}.wrap{clear:both;margin-right:12px;margin-left:0}#col-left,#col-right{float:none;width:auto}#col-left .col-wrap,#col-right .col-wrap{padding:0}#collapse-menu,.post-format-select{display:none!important}.wrap h1.wp-heading-inline{margin-bottom:.5em}.wrap .add-new-h2,.wrap .add-new-h2:active,.wrap .page-title-action,.wrap .page-title-action:active{padding:10px 15px;font-size:14px;white-space:nowrap}.media-upload-form div.error,.notice,.wrap div.error,.wrap div.updated{margin:20px 0 10px;padding:5px 10px;font-size:14px;line-height:175%}.wp-core-ui .notice.is-dismissible{padding-right:46px}.notice-dismiss{padding:13px}.wrap .icon32+h2{margin-top:-2px}.wp-responsive-open #wpbody{right:-16em}code{word-wrap:break-word;word-wrap:anywhere;word-break:break-word}.postbox{font-size:14px}.metabox-holder .postbox>h3,.metabox-holder .stuffbox>h3,.metabox-holder h2,.metabox-holder h3.hndle{padding:12px}.postbox .handlediv{margin-top:3px}.subsubsub{font-size:16px;text-align:center;margin-bottom:15px}#template .CodeMirror,#template textarea{box-sizing:border-box}#templateside{float:none;width:auto}#templateside>ul{border-left:1px solid #dcdcde}#templateside li{margin:0}#templateside li:not(.howto) a{display:block;padding:5px}#templateside li.howto{padding:12px}#templateside .highlight{padding:5px;margin-left:-5px;margin-top:-5px}#template .notice,#template>div{float:none;margin:1em 0;width:auto}#template .CodeMirror,#template textarea{width:100%}#templateside ul ul{padding-left:1.5em}[role=treeitem] .folder-label{display:block;padding:5px}.tree-folder .tree-folder::after,.tree-folder>li::after,.tree-folder>li::before{left:-8px}.tree-folder>li::before{top:0;height:13px}.tree-folder>.current-file::before{left:-5px;top:7px;width:4px}.tree-folder>.current-file::after{height:9px;left:-8px}.wrap #templateside span.notice{margin-left:-5px;width:100%}.fileedit-sub .alignright{float:left;margin-top:15px;width:100%;text-align:left}.fileedit-sub .alignright label{display:block}.fileedit-sub #plugin,.fileedit-sub #theme{margin-left:0;max-width:70%}.fileedit-sub input[type=submit]{margin-bottom:0}#documentation label[for=docs-list]{display:block}#documentation select[name=docs-list]{margin-left:0;max-width:60%}#documentation input[type=button]{margin-bottom:0}#wpfooter{display:none}#comments-form .checkforspam{display:none}.edit-comment-author{margin:2px 0 0}.filter-drawer .filter-group-feature input,.filter-drawer .filter-group-feature label{line-height:2.1}.filter-drawer .filter-group-feature label{margin-left:32px}.wp-filter .button.drawer-toggle{font-size:13px;line-height:2;height:28px}#screen-meta #contextual-help-wrap{overflow:visible}#screen-meta #contextual-help-back,#screen-meta .contextual-help-sidebar{display:none}#screen-meta .contextual-help-tabs{clear:both;width:100%;float:none}#screen-meta .contextual-help-tabs ul{margin:0 0 1em;padding:1em 0 0}#screen-meta .contextual-help-tabs .active{margin:0}#screen-meta .contextual-help-tabs-wrap{clear:both;max-width:100%;float:none}#screen-meta,#screen-meta-links{margin-right:10px}#screen-meta-links{margin-bottom:20px}.wp-filter .search-form input[type=search]{width:100%;font-size:1rem}.wp-filter .search-form.search-plugins{min-width:100%}}@media screen and (max-width:600px){#wpwrap.wp-responsive-open{overflow-x:hidden}html.wp-toolbar{padding-top:0}.screen-reader-shortcut:focus{top:7px}#wpbody{padding-top:46px}div#post-body.metabox-holder.columns-1{overflow-x:hidden}.nav-tab-wrapper,.wrap h2.nav-tab-wrapper,h1.nav-tab-wrapper{border-bottom:0}h1 .nav-tab,h2 .nav-tab,h3 .nav-tab,nav .nav-tab{margin:10px 10px 0 0;border-bottom:1px solid #c3c4c7}.nav-tab-active:focus,.nav-tab-active:focus:active,.nav-tab-active:hover{border-bottom:1px solid #c3c4c7}}@media screen and (max-width:480px){.metabox-prefs-container{display:grid}.metabox-prefs-container>*{display:inline-block;padding:2px}}@media screen and (max-width:320px){#network_dashboard_right_now .subsubsub{font-size:14px;text-align:left}} \ No newline at end of file
+ */.ui-draggable-handle,.ui-sortable-handle{touch-action:none}.accordion-section{border-bottom:1px solid #dcdcde;margin:0}.accordion-section.open .accordion-section-content,.no-js .accordion-section .accordion-section-content{display:block}.accordion-section.open:hover{border-bottom-color:#dcdcde}.accordion-section-content{display:none;padding:10px 20px 15px;overflow:hidden;background:#fff}.accordion-section-title{margin:0;padding:12px 15px 15px;position:relative;border-left:1px solid #dcdcde;border-right:1px solid #dcdcde;-webkit-user-select:none;user-select:none}.js .accordion-section-title{cursor:pointer}.js .accordion-section-title:after{position:absolute;top:12px;right:10px;z-index:1}.accordion-section-title:focus{outline:1px solid transparent}.accordion-section-title:focus:after,.accordion-section-title:hover:after{border-color:#a7aaad transparent;outline:1px solid transparent}.cannot-expand .accordion-section-title{cursor:auto}.cannot-expand .accordion-section-title:after{display:none}.control-section .accordion-section-title,.customize-pane-child .accordion-section-title{border-left:none;border-right:none;padding:10px 10px 11px 14px;line-height:1.55;background:#fff}.control-section .accordion-section-title:after,.customize-pane-child .accordion-section-title:after{top:calc(50% - 10px)}.js .control-section .accordion-section-title:focus,.js .control-section .accordion-section-title:hover,.js .control-section.open .accordion-section-title,.js .control-section:hover .accordion-section-title{color:#1d2327;background:#f6f7f7}.control-section.open .accordion-section-title{border-bottom:1px solid #dcdcde}.network-admin .edit-site-actions{margin-top:0}.my-sites{display:block;overflow:auto;zoom:1}.my-sites li{display:block;padding:8px 3%;min-height:130px;margin:0}@media only screen and (max-width:599px){.my-sites li{min-height:0}}@media only screen and (min-width:600px){.my-sites.striped li{background-color:#fff;position:relative}.my-sites.striped li:after{content:"";width:1px;height:100%;position:absolute;top:0;right:0;background:#c3c4c7}}@media only screen and (min-width:600px) and (max-width:699px){.my-sites li{float:left;width:44%}.my-sites.striped li{background-color:#fff}.my-sites.striped li:nth-of-type(odd){clear:left}.my-sites.striped li:nth-of-type(2n+2):after{content:none}.my-sites li:nth-of-type(4n+1),.my-sites li:nth-of-type(4n+2){background-color:#f6f7f7}}@media only screen and (min-width:700px) and (max-width:1199px){.my-sites li{float:left;width:27.333333%;background-color:#fff}.my-sites.striped li:nth-of-type(3n+3):after{content:none}.my-sites li:nth-of-type(6n+1),.my-sites li:nth-of-type(6n+2),.my-sites li:nth-of-type(6n+3){background-color:#f6f7f7}}@media only screen and (min-width:1200px) and (max-width:1399px){.my-sites li{float:left;width:21%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(4n+1){clear:left}.my-sites.striped li:nth-of-type(4n+4):after{content:none}.my-sites li:nth-of-type(8n+1),.my-sites li:nth-of-type(8n+2),.my-sites li:nth-of-type(8n+3),.my-sites li:nth-of-type(8n+4){background-color:#f6f7f7}}@media only screen and (min-width:1400px) and (max-width:1599px){.my-sites li{float:left;width:16%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(5n+1){clear:left}.my-sites.striped li:nth-of-type(5n+5):after{content:none}.my-sites li:nth-of-type(10n+1),.my-sites li:nth-of-type(10n+2),.my-sites li:nth-of-type(10n+3),.my-sites li:nth-of-type(10n+4),.my-sites li:nth-of-type(10n+5){background-color:#f6f7f7}}@media only screen and (min-width:1600px){.my-sites li{float:left;width:12.666666%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(6n+1){clear:left}.my-sites.striped li:nth-of-type(6n+6):after{content:none}.my-sites li:nth-of-type(12n+1),.my-sites li:nth-of-type(12n+2),.my-sites li:nth-of-type(12n+3),.my-sites li:nth-of-type(12n+4),.my-sites li:nth-of-type(12n+5),.my-sites li:nth-of-type(12n+6){background-color:#f6f7f7}}.my-sites li a{text-decoration:none}@media print,(min-resolution:120dpi){div.star-holder,div.star-holder .star-rating{background:url(../images/stars-2x.png?ver=20121108) repeat-x bottom left;background-size:21px 37px}.spinner{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){html.wp-toolbar{padding-top:46px}.screen-reader-shortcut:focus{top:-39px}body{min-width:240px;overflow-x:hidden}body *{-webkit-tap-highlight-color:transparent!important}#wpcontent{position:relative;margin-left:0;padding-left:10px}#wpbody-content{padding-bottom:100px}.wrap{clear:both;margin-right:12px;margin-left:0}#col-left,#col-right{float:none;width:auto}#col-left .col-wrap,#col-right .col-wrap{padding:0}#collapse-menu,.post-format-select{display:none!important}.wrap h1.wp-heading-inline{margin-bottom:.5em}.wrap .add-new-h2,.wrap .add-new-h2:active,.wrap .page-title-action,.wrap .page-title-action:active{padding:10px 15px;font-size:14px;white-space:nowrap}.media-upload-form div.error,.notice,.wrap div.error,.wrap div.updated{margin:20px 0 10px;padding:5px 10px;font-size:14px;line-height:175%}.wp-core-ui .notice.is-dismissible{padding-right:46px}.notice-dismiss{padding:13px}.wrap .icon32+h2{margin-top:-2px}.wp-responsive-open #wpbody{right:-16em}code{word-wrap:break-word;word-wrap:anywhere;word-break:break-word}.postbox{font-size:14px}.metabox-holder .postbox>h3,.metabox-holder .stuffbox>h3,.metabox-holder h2,.metabox-holder h3.hndle{padding:12px}.postbox .handlediv{margin-top:3px}.subsubsub{font-size:16px;text-align:center;margin-bottom:15px}#template .CodeMirror,#template textarea{box-sizing:border-box}#templateside{float:none;width:auto}#templateside>ul{border-left:1px solid #dcdcde}#templateside li{margin:0}#templateside li:not(.howto) a{display:block;padding:5px}#templateside li.howto{padding:12px}#templateside .highlight{padding:5px;margin-left:-5px;margin-top:-5px}#template .notice,#template>div{float:none;margin:1em 0;width:auto}#template .CodeMirror,#template textarea{width:100%}#templateside ul ul{padding-left:1.5em}[role=treeitem] .folder-label{display:block;padding:5px}.tree-folder .tree-folder::after,.tree-folder>li::after,.tree-folder>li::before{left:-8px}.tree-folder>li::before{top:0;height:13px}.tree-folder>.current-file::before{left:-5px;top:7px;width:4px}.tree-folder>.current-file::after{height:9px;left:-8px}.wrap #templateside span.notice{margin-left:-5px;width:100%}.fileedit-sub .alignright{float:left;margin-top:15px;width:100%;text-align:left}.fileedit-sub .alignright label{display:block}.fileedit-sub #plugin,.fileedit-sub #theme{margin-left:0;max-width:70%}.fileedit-sub input[type=submit]{margin-bottom:0}#documentation label[for=docs-list]{display:block}#documentation select[name=docs-list]{margin-left:0;max-width:60%}#documentation input[type=button]{margin-bottom:0}#wpfooter{display:none}#comments-form .checkforspam{display:none}.edit-comment-author{margin:2px 0 0}.filter-drawer .filter-group-feature input,.filter-drawer .filter-group-feature label{line-height:2.1}.filter-drawer .filter-group-feature label{margin-left:32px}.wp-filter .button.drawer-toggle{font-size:13px;line-height:2;height:28px}#screen-meta #contextual-help-wrap{overflow:visible}#screen-meta #contextual-help-back,#screen-meta .contextual-help-sidebar{display:none}#screen-meta .contextual-help-tabs{clear:both;width:100%;float:none}#screen-meta .contextual-help-tabs ul{margin:0 0 1em;padding:1em 0 0}#screen-meta .contextual-help-tabs .active{margin:0}#screen-meta .contextual-help-tabs-wrap{clear:both;max-width:100%;float:none}#screen-meta,#screen-meta-links{margin-right:10px}#screen-meta-links{margin-bottom:20px}.wp-filter .search-form input[type=search]{font-size:1rem}.wp-filter .search-form.search-plugins{min-width:100%}}@media screen and (max-width:600px){#wpwrap.wp-responsive-open{overflow-x:hidden}html.wp-toolbar{padding-top:0}.screen-reader-shortcut:focus{top:7px}#wpbody{padding-top:46px}div#post-body.metabox-holder.columns-1{overflow-x:hidden}.nav-tab-wrapper,.wrap h2.nav-tab-wrapper,h1.nav-tab-wrapper{border-bottom:0}h1 .nav-tab,h2 .nav-tab,h3 .nav-tab,nav .nav-tab{margin:10px 10px 0 0;border-bottom:1px solid #c3c4c7}.nav-tab-active:focus,.nav-tab-active:focus:active,.nav-tab-active:hover{border-bottom:1px solid #c3c4c7}.wp-filter .search-form.search-plugins label{width:100%}}@media screen and (max-width:480px){.metabox-prefs-container{display:grid}.metabox-prefs-container>*{display:inline-block;padding:2px}}@media screen and (max-width:320px){#network_dashboard_right_now .subsubsub{font-size:14px;text-align:left}} \ No newline at end of file
diff --git a/wp-admin/css/customize-controls-rtl.css b/wp-admin/css/customize-controls-rtl.css
index 53ade56..9bf7ab1 100644
--- a/wp-admin/css/customize-controls-rtl.css
+++ b/wp-admin/css/customize-controls-rtl.css
@@ -1083,14 +1083,24 @@ p.customize-section-description {
float: right;
}
-#available-menu-items .accordion-section-content .new-content-item,
-.customize-control-dropdown-pages .new-content-item {
+#available-menu-items .accordion-section-content .new-content-item-wrapper,
+.customize-control-dropdown-pages .new-content-item-wrapper {
width: calc(100% - 30px);
padding: 8px 15px;
position: absolute;
bottom: 0;
z-index: 10;
background: #f0f0f1;
+}
+
+.customize-control-dropdown-pages .new-content-item-wrapper {
+ width: 100%;
+ padding: 0;
+ position: static;
+}
+
+#available-menu-items .accordion-section-content .new-content-item,
+.customize-control-dropdown-pages .new-content-item {
display: flex;
}
@@ -1100,6 +1110,14 @@ p.customize-section-description {
position: relative;
}
+.customize-control-dropdown-pages .new-content-item-wrapper .new-content-item {
+ padding: 0;
+}
+
+.customize-control-dropdown-pages .new-content-item-wrapper .new-content-item label {
+ line-height: 1.6;
+}
+
#available-menu-items .new-content-item .create-item-input,
.customize-control-dropdown-pages .new-content-item .create-item-input {
flex-grow: 10;
@@ -1816,11 +1834,6 @@ p.customize-section-description {
bottom: 0;
}
-.themes-filter-bar .feature-filter-toggle {
- float: left;
- margin: 3px 25px 3px 0;
-}
-
.themes-filter-bar .feature-filter-toggle:before {
content: "\f111";
margin: 0 0 0 5px;
@@ -1881,12 +1894,6 @@ p.customize-section-description {
animation: .6s themes-fade-in 1;
}
-.control-panel-themes .filter-themes-count {
- position: relative;
- float: left;
- line-height: 2.6;
-}
-
.control-panel-themes .filter-themes-count .themes-displayed {
font-weight: 600;
color: #50575e;
@@ -2098,6 +2105,28 @@ p.customize-section-description {
box-sizing: border-box;
border-bottom: 1px solid #dcdcde;
}
+.customize-preview-header.themes-filter-bar,
+.customize-preview-header.themes-filter-bar .search-form {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ flex-wrap: wrap;
+}
+
+.customize-preview-header.themes-filter-bar .search-form-input {
+ position: relative;
+}
+
+.customize-preview-header .filter-themes-wrapper {
+ display: grid;
+ align-items: center;
+ gap: 10px;
+ grid-template-columns: auto 1fr;
+}
+
+.customize-preview-header .filter-themes-wrapper .filter-themes-count {
+ justify-self: end;
+}
@media screen and (min-width: 1670px) {
.customize-preview-header.themes-filter-bar {
@@ -2110,6 +2139,9 @@ p.customize-section-description {
.themes-filter-bar .themes-filter-container {
margin: 0;
padding: 0;
+ display: flex;
+ align-items: center;
+ gap: 10px;
}
.themes-filter-bar .wp-filter-search {
@@ -2118,11 +2150,10 @@ p.customize-section-description {
max-width: 100%;
width: 40%;
min-width: 300px;
- position: absolute;
- top: 6px;
- right: 25px;
height: 32px;
margin: 1px 0;
+ top: 0;
+ right: 0;
}
/* Unstick the filter bar on short windows/screens. This breakpoint is based on the
@@ -2156,18 +2187,31 @@ p.customize-section-description {
}
}
-@media screen and (max-width: 900px) {
+@media screen and (max-width: 960px) {
.customize-preview-header.themes-filter-bar {
- height: 86px;
- padding-top: 46px;
+ height: 96px;
}
+}
+@media screen and (max-width: 900px) {
.themes-filter-bar .wp-filter-search {
- width: calc(100% - 50px);
+ width: 100%;
margin: 0;
min-width: 200px;
}
+ .customize-preview-header.themes-filter-bar,
+ .customize-preview-header.themes-filter-bar .search-form
+ .themes-filter-bar .themes-filter-container {
+ display: grid;
+ gap: 4px;
+ }
+
+ .customize-preview-header.themes-filter-bar .search-form-input {
+ display: flex;
+ flex-grow: 1;
+ }
+
.filter-drawer {
top: 86px;
}
@@ -2581,7 +2625,7 @@ body.adding-widget .add-new-widget:before,
}
#available-widgets-list {
- top: 60px;
+ top: 82px;
position: absolute;
overflow: auto;
bottom: 0;
@@ -2625,7 +2669,7 @@ body.adding-widget .add-new-widget:before,
#available-widgets-filter .search-icon {
display: block;
position: absolute;
- top: 15px; /* 13 container padding +1 input margin +1 input border */
+ bottom: 15px; /* 13 container padding +1 input margin +1 input border */
right: 16px;
width: 30px;
height: 30px;
@@ -2635,9 +2679,9 @@ body.adding-widget .add-new-widget:before,
}
#available-widgets-filter .clear-results,
-#available-menu-items-search .clear-results {
+#available-menu-items-search .accordion-section-title .clear-results {
position: absolute;
- top: 15px; /* 13 container padding +1 input margin +1 input border */
+ top: 36px; /* 13 container padding +1 input margin +1 input border */
left: 16px;
width: 30px;
height: 30px;
@@ -2696,8 +2740,8 @@ body.adding-widget .add-new-widget:before,
.themes-filter-bar .search-icon {
position: absolute;
- top: 7px;
- right: 26px;
+ top: 2px;
+ right: 2px;
z-index: 1;
color: #646970;
height: 30px;
@@ -2815,8 +2859,8 @@ body.adding-widget .add-new-widget:before,
margin-top: 12px;
}
- .wp-core-ui .themes-filter-bar .feature-filter-toggle {
- margin: 3px 25px 3px 0;
+ .customize-preview-header.themes-filter-bar .search-icon {
+ top: 6px;
}
}
@@ -2953,22 +2997,18 @@ body.adding-widget .add-new-widget:before,
}
#available-widgets-list {
- top: 130px;
+ top: 152px;
}
- #available-menu-items-search .clear-results,
- #available-menu-items-search .search-icon {
- top: 85px; /* 70 section title height + 13 container padding +1 input margin +1 input border */
+ #available-menu-items-search .clear-results {
+ top: 36px;
+ left: 16px;
}
.reorder,
.reordering .reorder-done {
padding: 8px;
}
-
- .wp-core-ui .themes-filter-bar .feature-filter-toggle {
- margin: 0;
- }
}
@media screen and (max-width: 600px) {
diff --git a/wp-admin/css/customize-controls-rtl.min.css b/wp-admin/css/customize-controls-rtl.min.css
index 6becd82..0a76f00 100644
--- a/wp-admin/css/customize-controls-rtl.min.css
+++ b/wp-admin/css/customize-controls-rtl.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-body{overflow:hidden;-webkit-text-size-adjust:100%}.customize-controls-close,.widget-control-actions a{text-decoration:none}#customize-controls h3{font-size:14px}#customize-controls img{max-width:100%}#customize-controls .submit{text-align:center}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked{background-color:rgba(0,0,0,.7);padding:25px}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .customize-changeset-locked-message{margin-right:auto;margin-left:auto;max-width:366px;min-height:64px;width:auto;padding:25px 109px 25px 25px;position:relative;background:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);line-height:1.5;overflow-y:auto;text-align:right;top:calc(50% - 100px)}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .currently-editing{margin-top:0}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .action-buttons{margin-bottom:0}.customize-changeset-locked-avatar{width:64px;position:absolute;right:25px;top:25px}.wp-core-ui.wp-customizer .customize-changeset-locked-message a.button{margin-left:10px;margin-top:0}#customize-controls .description{color:#50575e}#customize-save-button-wrapper{float:left;margin-top:9px}body:not(.ready) #customize-save-button-wrapper .save{visibility:hidden}#customize-save-button-wrapper .save{float:right;border-radius:3px;box-shadow:none;margin-top:0}#customize-save-button-wrapper .save:focus,#publish-settings:focus{box-shadow:0 1px 0 #2271b1,0 0 2px 1px #72aee6}#customize-save-button-wrapper .save.has-next-sibling{border-radius:0 3px 3px 0}#customize-sidebar-outer-content{position:absolute;top:0;bottom:0;right:0;visibility:hidden;overflow-x:hidden;overflow-y:auto;width:100%;margin:0;z-index:-1;background:#f0f0f1;transition:right .18s;border-left:1px solid #dcdcde;border-right:1px solid #dcdcde;height:100%}@media (prefers-reduced-motion:reduce){#customize-sidebar-outer-content{transition:none}}#customize-theme-controls .control-section-outer{display:none!important}#customize-outer-theme-controls .accordion-section-content{padding:12px}#customize-outer-theme-controls .accordion-section-content.open{display:block}.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content{visibility:visible;right:100%;transition:right .18s}@media (prefers-reduced-motion:reduce){.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content{transition:none}}.customize-outer-pane-parent{margin:0}.outer-section-open .wp-full-overlay.expanded .wp-full-overlay-main{right:300px;opacity:.4}.adding-menu-items .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.adding-menu-items .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main,.adding-widget .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.adding-widget .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main,.outer-section-open .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.outer-section-open .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main{right:64%}#customize-outer-theme-controls li.notice{padding-top:8px;padding-bottom:8px;margin-right:0;margin-bottom:10px}#publish-settings{text-indent:0;border-radius:3px 0 0 3px;padding-right:0;padding-left:0;box-shadow:none;font-size:14px;width:30px;float:right;transform:none;margin-top:0;line-height:2}body.trashing #customize-save-button-wrapper .save,body.trashing #publish-settings,body:not(.ready) #publish-settings{display:none}#customize-header-actions .spinner{margin-top:13px;margin-left:4px}.saving #customize-header-actions .spinner,.trashing #customize-header-actions .spinner{visibility:visible}#customize-header-actions{border-bottom:1px solid #dcdcde}#customize-controls .wp-full-overlay-sidebar-content{overflow-y:auto;overflow-x:hidden}.outer-section-open #customize-controls .wp-full-overlay-sidebar-content{background:#f0f0f1}#customize-controls .customize-info{border:none;border-bottom:1px solid #dcdcde;margin-bottom:15px}#customize-control-changeset_preview_link input,#customize-control-changeset_status .customize-inside-control-row{background-color:#fff;border-bottom:1px solid #dcdcde;box-sizing:content-box;width:100%;margin-right:-12px;padding-right:12px;padding-left:12px}#customize-control-trash_changeset{margin-top:20px}#customize-control-trash_changeset .button-link{position:relative;padding-right:24px;display:inline-block}#customize-control-trash_changeset .button-link:before{content:"\f182";font:normal 22px dashicons;text-decoration:none;position:absolute;right:0;top:-2px}#customize-controls .date-input:invalid{border-color:#d63638}#customize-control-changeset_status .customize-inside-control-row{padding-top:10px;padding-bottom:10px;font-weight:500}#customize-control-changeset_status .customize-inside-control-row:first-of-type{border-top:1px solid #dcdcde}#customize-control-changeset_status .customize-control-title{margin-bottom:6px}#customize-control-changeset_status input{margin-right:0}#customize-control-changeset_preview_link{position:relative;display:block}.preview-link-wrapper .customize-copy-preview-link.preview-control-element.button{margin:0;position:absolute;bottom:9px;left:0}.preview-link-wrapper{position:relative}.customize-copy-preview-link:after,.customize-copy-preview-link:before{content:"";height:28px;position:absolute;background:#fff;top:-1px}.customize-copy-preview-link:before{right:-10px;width:9px;opacity:.75}.customize-copy-preview-link:after{right:-5px;width:4px;opacity:.8}#customize-control-changeset_preview_link input{line-height:2.85714286;border-top:1px solid #dcdcde;border-right:none;border-left:none;text-indent:-999px;color:#fff;min-height:40px}#customize-control-changeset_preview_link label{position:relative;display:block}#customize-control-changeset_preview_link a{display:inline-block;position:absolute;white-space:nowrap;overflow:hidden;width:90%;bottom:14px;font-size:14px;text-decoration:none}#customize-control-changeset_preview_link a.disabled,#customize-control-changeset_preview_link a.disabled:active,#customize-control-changeset_preview_link a.disabled:focus,#customize-control-changeset_preview_link a.disabled:visited{color:#000;opacity:.4;cursor:default;outline:0;box-shadow:none}#sub-accordion-section-publish_settings .customize-section-description-container{display:none}#customize-controls .customize-info.section-meta{margin-bottom:15px}.customize-control-date_time .customize-control-description+.date-time-fields.includes-time{margin-top:10px}.customize-control.customize-control-date_time .date-time-fields .date-input.day{margin-left:0}.date-time-fields .date-input.month{width:auto;margin:0}.date-time-fields .date-input.day,.date-time-fields .date-input.hour,.date-time-fields .date-input.minute{width:46px}.date-time-fields .date-input.year{width:65px}.date-time-fields .date-input.meridian{width:auto;margin:0}.date-time-fields .time-row{margin-top:12px}#customize-control-changeset_preview_link{margin-top:6px}#customize-control-changeset_status{margin-bottom:0;padding-bottom:0}#customize-control-changeset_scheduled_date{box-sizing:content-box;width:100%;margin-right:-12px;padding:12px;background:#fff;border-bottom:1px solid #dcdcde;margin-bottom:0}#customize-control-changeset_scheduled_date .customize-control-description{font-style:normal}#customize-controls .customize-info.is-in-view,#customize-controls .customize-section-title.is-in-view{position:absolute;z-index:9;width:100%;box-shadow:0 1px 0 rgba(0,0,0,.1)}#customize-controls .customize-section-title.is-in-view{margin-top:0}#customize-controls .customize-info.is-in-view+.accordion-section{margin-top:15px}#customize-controls .customize-info.is-sticky,#customize-controls .customize-section-title.is-sticky{position:fixed;top:46px}#customize-controls .customize-info .accordion-section-title{background:#fff;color:#50575e;border-right:none;border-left:none;border-bottom:none;cursor:default}#customize-controls .customize-info .accordion-section-title:focus:after,#customize-controls .customize-info .accordion-section-title:hover:after,#customize-controls .customize-info.open .accordion-section-title:after{color:#2c3338}#customize-controls .customize-info .accordion-section-title:after{display:none}#customize-controls .customize-info .preview-notice{font-size:13px;line-height:1.9}#customize-controls .customize-info .panel-title,#customize-controls .customize-pane-child .customize-section-title h3,#customize-controls .customize-pane-child h3.customize-section-title,#customize-outer-theme-controls .customize-pane-child .customize-section-title h3,#customize-outer-theme-controls .customize-pane-child h3.customize-section-title{font-size:20px;font-weight:200;line-height:26px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-section-title span.customize-action{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-info .customize-help-toggle{position:absolute;top:4px;left:1px;padding:20px 10px 10px 20px;width:20px;height:20px;cursor:pointer;box-shadow:none;background:0 0;color:#50575e;border:none}#customize-controls .customize-info .customize-help-toggle:before{position:absolute;top:5px;right:6px}#customize-controls .customize-info .customize-help-toggle:focus,#customize-controls .customize-info .customize-help-toggle:hover,#customize-controls .customize-info.open .customize-help-toggle{color:#2271b1}#customize-controls .customize-info .customize-panel-description,#customize-controls .customize-info .customize-section-description,#customize-controls .no-widget-areas-rendered-notice,#customize-outer-theme-controls .customize-info .customize-section-description{color:#50575e;display:none;background:#fff;padding:12px 15px;border-top:1px solid #dcdcde}#customize-controls .customize-info .customize-panel-description.open+.no-widget-areas-rendered-notice{border-top:none}.no-widget-areas-rendered-notice{font-style:italic}.no-widget-areas-rendered-notice p:first-child{margin-top:0}.no-widget-areas-rendered-notice p:last-child{margin-bottom:0}#customize-controls .customize-info .customize-section-description{margin-bottom:15px}#customize-controls .customize-info .customize-panel-description p:first-child,#customize-controls .customize-info .customize-section-description p:first-child{margin-top:0}#customize-controls .customize-info .customize-panel-description p:last-child,#customize-controls .customize-info .customize-section-description p:last-child{margin-bottom:0}#customize-controls .current-panel .control-section>h3.accordion-section-title{padding-left:30px}#customize-outer-theme-controls .control-section,#customize-theme-controls .control-section{border:none}#customize-outer-theme-controls .accordion-section-title,#customize-theme-controls .accordion-section-title{color:#50575e;background-color:#fff;border-bottom:1px solid #dcdcde;border-right:4px solid #fff;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out}@media (prefers-reduced-motion:reduce){#customize-outer-theme-controls .accordion-section-title,#customize-theme-controls .accordion-section-title{transition:none}}#customize-controls #customize-theme-controls .customize-themes-panel .accordion-section-title{color:#50575e;background-color:#fff;border-right:4px solid #fff}#customize-outer-theme-controls .accordion-section-title:after,#customize-theme-controls .accordion-section-title:after{content:"\f341";color:#a7aaad}#customize-outer-theme-controls .accordion-section-content,#customize-theme-controls .accordion-section-content{color:#50575e;background:0 0}#customize-controls .control-section .accordion-section-title:focus,#customize-controls .control-section .accordion-section-title:hover,#customize-controls .control-section.open .accordion-section-title,#customize-controls .control-section:hover>.accordion-section-title{color:#2271b1;background:#f6f7f7;border-right-color:#2271b1}#accordion-section-themes+.control-section{border-top:1px solid #dcdcde}.js .control-section .accordion-section-title:focus,.js .control-section .accordion-section-title:hover,.js .control-section.open .accordion-section-title,.js .control-section:hover .accordion-section-title{background:#f6f7f7}#customize-outer-theme-controls .control-section .accordion-section-title:focus:after,#customize-outer-theme-controls .control-section .accordion-section-title:hover:after,#customize-outer-theme-controls .control-section.open .accordion-section-title:after,#customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,#customize-theme-controls .control-section .accordion-section-title:focus:after,#customize-theme-controls .control-section .accordion-section-title:hover:after,#customize-theme-controls .control-section.open .accordion-section-title:after,#customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#2271b1}#customize-theme-controls .control-section.open{border-bottom:1px solid #f0f0f1}#customize-outer-theme-controls .control-section.open .accordion-section-title,#customize-theme-controls .control-section.open .accordion-section-title{border-bottom-color:#f0f0f1!important}#customize-theme-controls .control-section:last-of-type.open,#customize-theme-controls .control-section:last-of-type>.accordion-section-title{border-bottom-color:#dcdcde}#customize-theme-controls .control-panel-content:not(.control-panel-nav_menus) .control-section:nth-child(2),#customize-theme-controls .control-panel-nav_menus .control-section-nav_menu,#customize-theme-controls .control-section-nav_menu_locations .accordion-section-title{border-top:1px solid #dcdcde}#customize-theme-controls .control-panel-nav_menus .control-section-nav_menu+.control-section-nav_menu{border-top:none}#customize-theme-controls>ul{margin:0}#customize-theme-controls .accordion-section-content{position:absolute;top:0;right:100%;width:100%;margin:0;padding:12px;box-sizing:border-box}#customize-info,#customize-theme-controls .customize-pane-child,#customize-theme-controls .customize-pane-parent{overflow:visible;width:100%;margin:0;padding:0;box-sizing:border-box;transition:.18s transform cubic-bezier(.645, .045, .355, 1)}@media (prefers-reduced-motion:reduce){#customize-info,#customize-theme-controls .customize-pane-child,#customize-theme-controls .customize-pane-parent{transition:none}}#customize-theme-controls .customize-pane-child.skip-transition{transition:none}#customize-info,#customize-theme-controls .customize-pane-parent{position:relative;visibility:visible;height:auto;max-height:none;overflow:auto;transform:none}#customize-theme-controls .customize-pane-child{position:absolute;top:0;right:0;visibility:hidden;height:0;max-height:none;overflow:hidden;transform:translateX(-100%)}#customize-theme-controls .customize-pane-child.current-panel,#customize-theme-controls .customize-pane-child.open{transform:none}.in-sub-panel #customize-info,.in-sub-panel #customize-theme-controls .customize-pane-parent,.in-sub-panel.section-open #customize-theme-controls .customize-pane-child.current-panel,.section-open #customize-info,.section-open #customize-theme-controls .customize-pane-parent{visibility:hidden;height:0;overflow:hidden;transform:translateX(100%)}#customize-theme-controls .customize-pane-child.busy,#customize-theme-controls .customize-pane-child.current-panel,#customize-theme-controls .customize-pane-child.open,.busy.section-open.in-sub-panel #customize-theme-controls .customize-pane-child.current-panel,.in-sub-panel #customize-info.busy,.in-sub-panel #customize-theme-controls .customize-pane-parent.busy,.section-open #customize-info.busy,.section-open #customize-theme-controls .customize-pane-parent.busy{visibility:visible;height:auto;overflow:auto}#customize-theme-controls .customize-pane-child.accordion-section-content,#customize-theme-controls .customize-pane-child.accordion-sub-container{display:block;overflow-x:hidden}#customize-theme-controls .customize-pane-child.accordion-section-content{padding:12px}#customize-theme-controls .customize-pane-child.menu li{position:static}.control-section-nav_menu .customize-section-description-container,.control-section-new_menu .customize-section-description-container,.customize-section-description-container{margin-bottom:15px}.control-section-nav_menu .customize-control,.control-section-new_menu .customize-control{margin-bottom:0}.customize-section-title{margin:-12px -12px 0;border-bottom:1px solid #dcdcde;background:#fff}div.customize-section-description{margin-top:22px}.customize-info div.customize-section-description{margin-top:0}div.customize-section-description p:first-child{margin-top:0}div.customize-section-description p:last-child{margin-bottom:0}#customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child{border-bottom:1px solid #dcdcde;padding:12px}.ios #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child{padding:12px 12px 13px}.customize-section-title h3,h3.customize-section-title{padding:10px 14px 12px 10px;margin:0;line-height:21px;color:#50575e}.accordion-sub-container.control-panel-content{display:none;position:absolute;top:0;width:100%}.accordion-sub-container.control-panel-content.busy{display:block}.current-panel .accordion-sub-container.control-panel-content{width:100%}.customize-controls-close{display:block;position:absolute;top:0;right:0;width:45px;height:41px;padding:0 0 0 2px;background:#f0f0f1;border:none;border-top:4px solid #f0f0f1;border-left:1px solid #dcdcde;color:#3c434a;text-align:right;cursor:pointer;transition:color .15s ease-in-out,border-color .15s ease-in-out,background .15s ease-in-out;box-sizing:content-box}.customize-panel-back,.customize-section-back{display:block;float:right;width:48px;height:71px;padding:0 0 0 24px;margin:0;background:#fff;border:none;border-left:1px solid #dcdcde;border-right:4px solid #fff;box-shadow:none;cursor:pointer;transition:color .15s ease-in-out,border-color .15s ease-in-out,background .15s ease-in-out}.customize-section-back{height:74px}.ios .customize-panel-back{display:none}.ios .expanded.in-sub-panel .customize-panel-back{display:block}#customize-controls .panel-meta.customize-info .accordion-section-title{margin-right:48px;border-right:none}#customize-controls .cannot-expand:hover .accordion-section-title,#customize-controls .panel-meta.customize-info .accordion-section-title:hover{background:#fff;color:#50575e;border-right-color:#fff}.customize-controls-close:focus,.customize-controls-close:hover,.customize-controls-preview-toggle:focus,.customize-controls-preview-toggle:hover{background:#fff;color:#2271b1;border-top-color:#2271b1;box-shadow:none;outline:1px solid transparent}#customize-theme-controls .accordion-section-title:focus .customize-action{outline:1px solid transparent;outline-offset:1px}.customize-panel-back:focus,.customize-panel-back:hover,.customize-section-back:focus,.customize-section-back:hover{color:#2271b1;background:#f6f7f7;border-right-color:#2271b1;box-shadow:none;outline:2px solid transparent;outline-offset:-2px}.customize-controls-close:before{font:normal 22px/45px dashicons;content:"\f335";position:relative;top:-3px;right:13px}.customize-panel-back:before,.customize-section-back:before{font:normal 20px/72px dashicons;content:"\f345";position:relative;right:9px}.wp-full-overlay-sidebar .wp-full-overlay-header{background-color:#f0f0f1;transition:padding ease-in-out .18s}.in-sub-panel .wp-full-overlay-sidebar .wp-full-overlay-header{padding-right:62px}p.customize-section-description{font-style:normal;margin-top:22px;margin-bottom:0}.customize-section-description ul{margin-right:1em}.customize-section-description ul>li{list-style:disc}.section-description-buttons{text-align:left}.customize-control{width:100%;float:right;clear:both;margin-bottom:12px}.customize-control input[type=email],.customize-control input[type=number],.customize-control input[type=password],.customize-control input[type=range],.customize-control input[type=search],.customize-control input[type=tel],.customize-control input[type=text],.customize-control input[type=url]{width:100%;margin:0}.customize-control-hidden{margin:0}.customize-control-textarea textarea{width:100%;resize:vertical}.customize-control select{width:100%}.customize-control select[multiple]{height:auto}.customize-control-title{display:block;font-size:14px;line-height:1.75;font-weight:600;margin-bottom:4px}.customize-control-description{display:block;font-style:italic;line-height:1.4;margin-top:0;margin-bottom:5px}.customize-section-description a.external-link:after{font:16px/11px dashicons;content:"\f504";top:3px;position:relative;padding-right:3px;display:inline-block;text-decoration:none}.customize-control-color .color-picker,.customize-control-upload div{line-height:28px}.customize-control .customize-inside-control-row{line-height:1.6;display:block;margin-right:24px;padding-top:6px;padding-bottom:6px}.customize-control-checkbox input,.customize-control-nav_menu_auto_add input,.customize-control-radio input{margin-left:4px;margin-right:-24px}.customize-control-radio{padding:5px 0 10px}.customize-control-radio .customize-control-title{margin-bottom:0;line-height:1.6}.customize-control-radio .customize-control-title+.customize-control-description{margin-top:7px}.customize-control-checkbox label,.customize-control-radio label{vertical-align:top}.customize-control .attachment-thumb.type-icon{float:right;margin:10px;width:auto}.customize-control .attachment-title{font-weight:600;margin:0;padding:5px 10px}.customize-control .attachment-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;padding:0 10px}.customize-control .attachment-meta-title{padding-top:7px}.customize-control .thumbnail-image,.customize-control .wp-media-wrapper.wp-video,.customize-control-header .current{line-height:0}.customize-control-site_icon .favicon-preview .browser-preview{vertical-align:top}.customize-control .thumbnail-image img{cursor:pointer}#customize-controls .thumbnail-audio .thumbnail{max-width:64px;max-height:64px;margin:10px;float:right}#available-menu-items .accordion-section-content .new-content-item,.customize-control-dropdown-pages .new-content-item{width:calc(100% - 30px);padding:8px 15px;position:absolute;bottom:0;z-index:10;background:#f0f0f1;display:flex}.customize-control-dropdown-pages .new-content-item{width:100%;padding:5px 1px 5px 0;position:relative}#available-menu-items .new-content-item .create-item-input,.customize-control-dropdown-pages .new-content-item .create-item-input{flex-grow:10}#available-menu-items .new-content-item .add-content,.customize-control-dropdown-pages .new-content-item .add-content{margin:2px 6px 2px 0;flex-grow:1}.customize-control-dropdown-pages .new-content-item .create-item-input.invalid{border:1px solid #d63638}.customize-control-dropdown-pages .add-new-toggle{margin-right:1px;font-weight:600;line-height:2.2}#customize-preview iframe{width:100%;height:100%;position:absolute}#customize-preview iframe+iframe{visibility:hidden}.wp-full-overlay-sidebar{background:#f0f0f1;border-left:1px solid #dcdcde}#customize-controls .customize-control-notifications-container{margin:4px 0 8px;padding:0;cursor:default}#customize-controls .customize-control-widget_form.has-error .widget .widget-top,.customize-control-nav_menu_item.has-error .menu-item-bar .menu-item-handle{box-shadow:inset 0 0 0 2px #d63638;transition:.15s box-shadow linear}#customize-controls .customize-control-notifications-container li.notice{list-style:none;margin:0 0 6px;padding:9px 14px;overflow:hidden}#customize-controls .customize-control-notifications-container .notice.is-dismissible{padding-left:38px}.customize-control-notifications-container li.notice:last-child{margin-bottom:0}#customize-controls .customize-control-nav_menu_item .customize-control-notifications-container{margin-top:0}#customize-controls .customize-control-widget_form .customize-control-notifications-container{margin-top:8px}.customize-control-text.has-error input{outline:2px solid #d63638}#customize-controls #customize-notifications-area{position:absolute;top:46px;width:100%;border-bottom:1px solid #dcdcde;display:block;padding:0;margin:0}.wp-full-overlay.collapsed #customize-controls #customize-notifications-area{display:none!important}#customize-controls #customize-notifications-area:not(.has-overlay-notifications),#customize-controls .customize-section-title>.customize-control-notifications-container:not(.has-overlay-notifications),#customize-controls .panel-meta>.customize-control-notifications-container:not(.has-overlay-notifications){max-height:210px;overflow-x:hidden;overflow-y:auto}#customize-controls #customize-notifications-area .notice,#customize-controls #customize-notifications-area>ul,#customize-controls .customize-section-title>.customize-control-notifications-container,#customize-controls .customize-section-title>.customize-control-notifications-container .notice,#customize-controls .panel-meta>.customize-control-notifications-container,#customize-controls .panel-meta>.customize-control-notifications-container .notice{margin:0}#customize-controls .customize-section-title>.customize-control-notifications-container,#customize-controls .panel-meta>.customize-control-notifications-container{border-top:1px solid #dcdcde}#customize-controls #customize-notifications-area .notice,#customize-controls .customize-section-title>.customize-control-notifications-container .notice,#customize-controls .panel-meta>.customize-control-notifications-container .notice{padding:9px 14px}#customize-controls #customize-notifications-area .notice.is-dismissible,#customize-controls .customize-section-title>.customize-control-notifications-container .notice.is-dismissible,#customize-controls .panel-meta>.customize-control-notifications-container .notice.is-dismissible{padding-left:38px}#customize-controls #customize-notifications-area .notice+.notice,#customize-controls .customize-section-title>.customize-control-notifications-container .notice+.notice,#customize-controls .panel-meta>.customize-control-notifications-container .notice+.notice{margin-top:1px}@keyframes customize-fade-in{0%{opacity:0}100%{opacity:1}}#customize-controls #customize-notifications-area .notice.notification-overlay,#customize-controls .notice.notification-overlay{margin:0;border-right:0}#customize-controls .customize-control-notifications-container.has-overlay-notifications{animation:customize-fade-in .5s;z-index:30}#customize-controls #customize-notifications-area .notice.notification-overlay .notification-message{clear:both;color:#1d2327;font-size:18px;font-style:normal;margin:0;padding:2em 0;text-align:center;width:100%;display:block;top:50%;position:relative}#customize-control-show_on_front.has-error{margin-bottom:0}#customize-control-show_on_front.has-error .customize-control-notifications-container{margin-top:12px}.accordion-section .dropdown{float:right;display:block;position:relative;cursor:pointer}.accordion-section .dropdown-content{overflow:hidden;float:right;min-width:30px;height:16px;line-height:16px;margin-left:16px;padding:4px 5px;border:2px solid #f0f0f1;-webkit-user-select:none;user-select:none}.customize-control .dropdown-arrow{position:absolute;top:0;bottom:0;left:0;width:20px;background:#f0f0f1}.customize-control .dropdown-arrow:after{content:"\f140";font:normal 20px/1 dashicons;speak:never;display:block;padding:0;text-indent:0;text-align:center;position:relative;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#2c3338}.customize-control .dropdown-status{color:#2c3338;background:#f0f0f1;display:none;max-width:112px}.customize-control-color .dropdown{margin-left:5px;margin-bottom:5px}.customize-control-color .dropdown .dropdown-content{background-color:#50575e;border:1px solid rgba(0,0,0,.15)}.customize-control-color .dropdown:hover .dropdown-content{border-color:rgba(0,0,0,.25)}.ios .wp-full-overlay{position:relative}.ios #customize-controls .wp-full-overlay-sidebar-content{-webkit-overflow-scrolling:touch}.customize-control .actions .button{margin-top:12px}.customize-control-header .actions,.customize-control-header .uploaded{margin-bottom:18px}.customize-control-header .default button:not(.random),.customize-control-header .uploaded button:not(.random){width:100%;padding:0;margin:0;background:0 0;border:none;color:inherit;cursor:pointer}.customize-control-header button img{display:block}.customize-control .attachment-media-view .default-button,.customize-control .attachment-media-view .remove-button,.customize-control .attachment-media-view .upload-button,.customize-control-header button.new,.customize-control-header button.remove{width:auto;height:auto;white-space:normal}.customize-control .attachment-media-view .thumbnail,.customize-control-header .current .container{overflow:hidden}.customize-control .attachment-media-view .button-add-media,.customize-control .attachment-media-view .placeholder,.customize-control-header .placeholder{width:100%;position:relative;text-align:center;cursor:default;border:1px dashed #c3c4c7;box-sizing:border-box;padding:9px 0;line-height:1.6}.customize-control .attachment-media-view .button-add-media{cursor:pointer;background-color:#f0f0f1;color:#2c3338}.customize-control .attachment-media-view .button-add-media:hover{background-color:#fff}.customize-control .attachment-media-view .button-add-media:focus{background-color:#fff;border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.customize-control-header .inner{display:none;position:absolute;width:100%;color:#50575e;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.customize-control-header .inner,.customize-control-header .inner .dashicons{line-height:20px;top:8px}.customize-control-header .list .inner,.customize-control-header .list .inner .dashicons{top:9px}.customize-control-header .header-view{position:relative;width:100%;margin-bottom:12px}.customize-control-header .header-view:last-child{margin-bottom:0}.customize-control-header .header-view:after{border:0}.customize-control-header .header-view.selected .choice:focus{outline:0}.customize-control-header .header-view.selected:after{content:"";position:absolute;height:auto;top:0;right:0;bottom:0;left:0;border:4px solid #72aee6;border-radius:2px}.customize-control-header .header-view.button.selected{border:0}.customize-control-header .uploaded .header-view .close{font-size:20px;color:#fff;background:#50575e;background:rgba(0,0,0,.5);position:absolute;top:10px;right:-999px;z-index:1;width:26px;height:26px;cursor:pointer}.customize-control-header .header-view .close:focus,.customize-control-header .header-view:hover .close{right:auto;left:10px}.customize-control-header .header-view .close:focus{outline:1px solid #4f94d4}.customize-control-header .random.placeholder{cursor:pointer;border-radius:2px;height:40px}.customize-control-header button.random{width:100%;height:auto;min-height:40px;white-space:normal}.customize-control-header button.random .dice{margin-top:4px}.customize-control-header .header-view:hover>button.random .dice,.customize-control-header .placeholder:hover .dice{animation:dice-color-change 3s infinite}.button-see-me{animation:bounce .7s 1;transform-origin:center bottom}@keyframes bounce{20%,53%,80%,from,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);transform:translate3d(0,0,0)}40%,43%{animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);transform:translate3d(0,-12px,0)}70%{animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);transform:translate3d(0,-6px,0)}90%{transform:translate3d(0,-1px,0)}}.customize-control-header .choice{position:relative;display:block;margin-bottom:9px}.customize-control-header .choice:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.customize-control-header .uploaded div:last-child>.choice{margin-bottom:0}.customize-control .attachment-media-view .thumbnail-image img,.customize-control-header img{max-width:100%}.customize-control .attachment-media-view .default-button,.customize-control .attachment-media-view .remove-button,.customize-control-header .remove{margin-left:8px}.customize-control-background_position .background-position-control .button-group{display:block}.customize-control-code_editor textarea{width:100%;font-family:Consolas,Monaco,monospace;font-size:12px;padding:6px 8px;tab-size:2}.customize-control-code_editor .CodeMirror,.customize-control-code_editor textarea{height:14em}#customize-controls .customize-section-description-container.section-meta.customize-info{border-bottom:none}#sub-accordion-section-custom_css .customize-control-notifications-container{margin-bottom:15px}#customize-control-custom_css textarea{display:block;height:500px}.customize-section-description-container+#customize-control-custom_css .customize-control-title{margin-right:12px}.customize-section-description-container+#customize-control-custom_css:last-child textarea{border-left:0;border-right:0;height:calc(100vh - 185px);resize:none}.customize-section-description-container+#customize-control-custom_css:last-child{margin-right:-12px;width:299px;width:calc(100% + 24px);margin-bottom:-12px}.customize-section-description-container+#customize-control-custom_css:last-child .CodeMirror{height:calc(100vh - 185px)}.CodeMirror-hints,.CodeMirror-lint-tooltip{z-index:500000!important}.customize-section-description-container+#customize-control-custom_css:last-child .customize-control-notifications-container{margin-right:12px;margin-left:12px}.theme-browser .theme.active .theme-actions,.wp-customizer .theme-browser .theme .theme-actions{padding:9px 15px;box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}@media screen and (max-width:640px){.customize-section-description-container+#customize-control-custom_css:last-child{margin-left:0}.customize-section-description-container+#customize-control-custom_css:last-child textarea{height:calc(100vh - 140px)}}#customize-theme-controls .control-panel-themes{border-bottom:none}#customize-theme-controls .control-panel-themes>.accordion-section-title,#customize-theme-controls .control-panel-themes>.accordion-section-title:hover{cursor:default;background:#fff;color:#50575e;border-top:1px solid #dcdcde;border-bottom:1px solid #dcdcde;border-right:none;border-left:none;margin:0 0 15px;padding-left:100px}#customize-theme-controls .control-section-themes .customize-themes-panel .accordion-section-title:first-child,#customize-theme-controls .control-section-themes .customize-themes-panel .accordion-section-title:first-child:hover{border-top:0}#customize-theme-controls .control-section-themes>.accordion-section-title,#customize-theme-controls .control-section-themes>.accordion-section-title:hover{margin:0 0 15px}#customize-controls .customize-themes-panel .accordion-section-title,#customize-controls .customize-themes-panel .accordion-section-title:hover{margin:15px -8px}#customize-controls .control-section-themes .accordion-section-title,#customize-controls .customize-themes-panel .accordion-section-title{padding-left:100px}#customize-controls .control-section-themes .accordion-section-title span.customize-action,#customize-controls .customize-section-title span.customize-action,.control-panel-themes .accordion-section-title span.customize-action{font-size:13px;display:block;font-weight:400}#customize-theme-controls .control-panel-themes .accordion-section-title .change-theme{position:absolute;left:10px;top:50%;margin-top:-14px;font-weight:400}#customize-notifications-area .notification-message button.switch-to-editor{display:block;margin-top:6px;font-weight:400}#customize-theme-controls .control-panel-themes>.accordion-section-title:after{display:none}.control-panel-themes .customize-themes-full-container{position:fixed;top:0;right:0;transition:.18s right ease-in-out;margin:0 300px 0 0;padding:71px 0 25px;overflow-y:scroll;width:calc(100% - 300px);height:calc(100% - 96px);background:#f0f0f1;z-index:20}@media (prefers-reduced-motion:reduce){.control-panel-themes .customize-themes-full-container{transition:none}}@media screen and (min-width:1670px){.control-panel-themes .customize-themes-full-container{width:82%;left:0;right:initial}}.modal-open .control-panel-themes .customize-themes-full-container{overflow-y:visible}#customize-header-actions .customize-controls-preview-toggle,#customize-header-actions .spinner,#customize-save-button-wrapper{transition:.18s margin ease-in-out}#customize-footer-actions,#customize-footer-actions .collapse-sidebar{bottom:0;transition:.18s bottom ease-in-out}.in-themes-panel:not(.animating) #customize-footer-actions,.in-themes-panel:not(.animating) #customize-header-actions .customize-controls-preview-toggle,.in-themes-panel:not(.animating) #customize-header-actions .spinner,.in-themes-panel:not(.animating) #customize-preview{visibility:hidden}.wp-full-overlay.in-themes-panel{background:#f0f0f1}.in-themes-panel #customize-header-actions .customize-controls-preview-toggle,.in-themes-panel #customize-header-actions .spinner,.in-themes-panel #customize-save-button-wrapper{margin-top:-46px}.in-themes-panel #customize-footer-actions,.in-themes-panel #customize-footer-actions .collapse-sidebar{bottom:-45px}.in-themes-panel.animating .control-panel-themes .filter-themes-count{display:none}.in-themes-panel.wp-full-overlay .wp-full-overlay-sidebar-content{bottom:0}.themes-filter-bar .feature-filter-toggle{float:left;margin:3px 25px 3px 0}.themes-filter-bar .feature-filter-toggle:before{content:"\f111";margin:0 0 0 5px;font:normal 16px/1 dashicons;vertical-align:text-bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.themes-filter-bar .feature-filter-toggle.open{background:#f0f0f1;border-color:#8c8f94;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}.themes-filter-bar .feature-filter-toggle .filter-count-filters{display:none}.filter-drawer{box-sizing:border-box;width:100%;position:absolute;top:46px;right:0;padding:25px 25px 25px 0;border-top:0;margin:0;background:#f0f0f1;border-bottom:1px solid #dcdcde}.filter-drawer .filter-group{margin:0 0 0 25px;width:calc((100% - 75px)/ 3);min-width:200px;max-width:320px}@keyframes themes-fade-in{0%{opacity:0}50%{opacity:0}100%{opacity:1}}.control-panel-themes .customize-themes-full-container.animate{animation:.6s themes-fade-in 1}.in-themes-panel:not(.animating) .control-panel-themes .filter-themes-count{animation:.6s themes-fade-in 1}.control-panel-themes .filter-themes-count{position:relative;float:left;line-height:2.6}.control-panel-themes .filter-themes-count .themes-displayed{font-weight:600;color:#50575e}.customize-themes-notifications{margin:0}.control-panel-themes .customize-themes-notifications .notice{margin:0 0 25px}.customize-themes-full-container .customize-themes-section{display:none!important;overflow:hidden}.customize-themes-full-container .customize-themes-section.current-section{display:list-item!important}.control-section .customize-section-text-before{padding:0 15px 8px 0;margin:15px 0 0;line-height:16px;border-bottom:1px solid #dcdcde;color:#50575e}.control-panel-themes .customize-themes-section-title{width:100%;background:#fff;box-shadow:none;outline:0;border-top:none;border-bottom:1px solid #dcdcde;border-right:4px solid #fff;border-left:none;cursor:pointer;padding:10px 15px;position:relative;text-align:right;font-size:14px;font-weight:600;color:#50575e;text-shadow:none}.control-panel-themes #accordion-section-installed_themes{border-top:1px solid #dcdcde}.control-panel-themes .theme-section{margin:0;position:relative}.control-panel-themes .customize-themes-section-title:focus,.control-panel-themes .customize-themes-section-title:hover{border-right-color:#2271b1;color:#2271b1;background:#f6f7f7}.customize-themes-section-title:not(.selected):after{content:"";display:block;position:absolute;top:9px;left:15px;width:18px;height:18px;border-radius:100%;border:1px solid #c3c4c7;background:#fff}.control-panel-themes .theme-section .customize-themes-section-title.selected:after{content:"\f147";font:16px/1 dashicons;box-sizing:border-box;width:20px;height:20px;padding:3px 1px 1px 3px;border-radius:100%;position:absolute;top:9px;left:15px;background:#2271b1;color:#fff}.control-panel-themes .customize-themes-section-title.selected{color:#2271b1}#customize-theme-controls .themes.accordion-section-content{position:relative;right:0;padding:0;width:100%}.loading .customize-themes-section .spinner{display:block;visibility:visible;position:relative;clear:both;width:20px;height:20px;right:calc(50% - 10px);float:none;margin-top:50px}.customize-themes-section .no-themes,.customize-themes-section .no-themes-local{display:none}.themes-section-installed_themes .theme .notice-success:not(.updated-message){display:none}.customize-control-theme .theme{width:100%;margin:0;border:1px solid #dcdcde;background:#fff}.customize-control-theme .theme .theme-actions,.customize-control-theme .theme .theme-name{background:#fff;border:none}.customize-control.customize-control-theme{box-sizing:border-box;width:25%;max-width:600px;margin:0 0 25px 25px;padding:0;clear:none}@media screen and (min-width:2101px){.customize-control.customize-control-theme{width:calc((100% - 125px)/ 5 - 1px)}}@media screen and (min-width:1601px) and (max-width:2100px){.customize-control.customize-control-theme{width:calc((100% - 100px)/ 4 - 1px)}}@media screen and (min-width:1201px) and (max-width:1600px){.customize-control.customize-control-theme{width:calc((100% - 75px)/ 3 - 1px)}}@media screen and (min-width:851px) and (max-width:1200px){.customize-control.customize-control-theme{width:calc((100% - 50px)/ 2 - 1px)}}@media screen and (max-width:850px){.customize-control.customize-control-theme{width:100%}}.wp-customizer .theme-browser .themes{padding:0 25px 25px 0;transition:.18s margin-top linear}.wp-customizer .theme-browser .theme .theme-actions{opacity:1}#customize-controls h3.theme-name{font-size:15px}#customize-controls .theme-overlay .theme-name{font-size:32px}.customize-preview-header.themes-filter-bar{position:fixed;top:0;right:300px;width:calc(100% - 300px);height:46px;background:#f0f0f1;z-index:10;padding:6px 25px;box-sizing:border-box;border-bottom:1px solid #dcdcde}@media screen and (min-width:1670px){.customize-preview-header.themes-filter-bar{width:82%;left:0;right:initial}}.themes-filter-bar .themes-filter-container{margin:0;padding:0}.themes-filter-bar .wp-filter-search{line-height:1.8;padding:6px 30px 6px 10px;max-width:100%;width:40%;min-width:300px;position:absolute;top:6px;right:25px;height:32px;margin:1px 0}@media screen and (max-height:540px),screen and (max-width:1018px){.customize-preview-header.themes-filter-bar{position:relative;right:0;width:100%;margin:0 0 25px}.filter-drawer{top:46px}.wp-customizer .theme-browser .themes{padding:0 25px 25px 0;overflow:hidden}.control-panel-themes .customize-themes-full-container{margin-top:0;padding:0;height:100%;width:calc(100% - 300px)}}@media screen and (max-width:1018px){.filter-drawer .filter-group{width:calc((100% - 50px)/ 2)}}@media screen and (max-width:900px){.customize-preview-header.themes-filter-bar{height:86px;padding-top:46px}.themes-filter-bar .wp-filter-search{width:calc(100% - 50px);margin:0;min-width:200px}.filter-drawer{top:86px}.control-panel-themes .filter-themes-count{float:right}}@media screen and (max-width:792px){.filter-drawer .filter-group{width:calc(100% - 25px)}}.control-panel-themes .customize-themes-mobile-back{display:none}@media screen and (max-width:600px){.filter-drawer{top:132px}.wp-full-overlay.showing-themes .control-panel-themes .filter-themes-count .filter-themes{display:block;float:left}.control-panel-themes .customize-themes-full-container{width:100%;margin:0;padding-top:46px;height:calc(100% - 46px);z-index:1;display:none}.showing-themes .control-panel-themes .customize-themes-full-container{display:block}.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back{display:block;position:fixed;top:0;right:0;background:#f0f0f1;color:#3c434a;border-radius:0;box-shadow:none;border:none;height:46px;width:100%;z-index:10;text-align:right;text-shadow:none;border-bottom:1px solid #dcdcde;border-right:4px solid transparent;margin:0;padding:0;font-size:0;overflow:hidden}.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:before{right:0;top:0;height:46px;width:26px;display:block;line-height:2.3;padding:0 8px;border-left:1px solid #dcdcde}.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:focus,.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:hover{color:#2271b1;background:#f6f7f7;border-right-color:#2271b1;box-shadow:none;outline:2px solid transparent;outline-offset:-2px}.showing-themes #customize-header-actions{display:none}#customize-controls{width:100%}}.wp-customizer .theme-overlay{display:none}.wp-customizer.modal-open .theme-overlay{position:fixed;right:0;top:0;left:0;bottom:0;z-index:109}.wp-customizer.modal-open #customize-header-actions,.wp-customizer.modal-open .control-panel-themes .customize-themes-section-title.selected:after,.wp-customizer.modal-open .control-panel-themes .filter-themes-count{z-index:-1}.wp-full-overlay.in-themes-panel.themes-panel-expanded #customize-controls .wp-full-overlay-sidebar-content{overflow:visible}.wp-customizer .theme-overlay .theme-backdrop{background:rgba(240,240,241,.75);position:fixed;z-index:110}.wp-customizer .theme-overlay .star-rating{float:right;margin-left:8px}.wp-customizer .theme-rating .num-ratings{line-height:20px}.wp-customizer .theme-overlay .theme-wrap{right:90px;left:90px;top:45px;bottom:45px;z-index:120}.wp-customizer .theme-overlay .theme-actions{text-align:left;padding:10px 25px 5px;background:#f0f0f1;border-top:1px solid #dcdcde}.wp-customizer .theme-overlay .theme-actions .theme-install.preview{margin-right:8px}.modal-open .in-themes-panel #customize-controls .wp-full-overlay-sidebar-content{overflow:visible}.wp-customizer .theme-header{background:#f0f0f1}.wp-customizer .theme-overlay .theme-header .close:before,.wp-customizer .theme-overlay .theme-header button{color:#3c434a}.wp-customizer .theme-overlay .theme-header .close:focus,.wp-customizer .theme-overlay .theme-header .close:hover,.wp-customizer .theme-overlay .theme-header .left:focus,.wp-customizer .theme-overlay .theme-header .left:hover,.wp-customizer .theme-overlay .theme-header .right:focus,.wp-customizer .theme-overlay .theme-header .right:hover{background:#fff;border-bottom:4px solid #2271b1;color:#2271b1}.wp-customizer .theme-overlay .theme-header .close:focus:before,.wp-customizer .theme-overlay .theme-header .close:hover:before{color:#2271b1}.wp-customizer .theme-overlay .theme-header button.disabled,.wp-customizer .theme-overlay .theme-header button.disabled:focus,.wp-customizer .theme-overlay .theme-header button.disabled:hover{border-bottom:none;background:0 0;color:#c3c4c7}@media (max-width:850px),(max-height:472px){.wp-customizer .theme-overlay .theme-wrap{right:0;left:0;top:0;bottom:0}.wp-customizer .theme-browser .themes{padding-left:25px}}body.cheatin{font-size:medium;height:auto;background:#fff;border:1px solid #c3c4c7;margin:50px auto 2em;padding:1em 2em;max-width:700px;min-width:0;box-shadow:0 1px 1px rgba(0,0,0,.04)}body.cheatin h1{border-bottom:1px solid #dcdcde;clear:both;color:#50575e;font-size:24px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;margin:30px 0 0;padding:0 0 7px}body.cheatin p{font-size:14px;line-height:1.5;margin:25px 0 20px}#customize-theme-controls .add-new-menu-item,#customize-theme-controls .add-new-widget{cursor:pointer;float:left;margin:0 10px 0 0;transition:all .2s;-webkit-user-select:none;user-select:none;outline:0}.reordering .add-new-menu-item,.reordering .add-new-widget{opacity:.2;pointer-events:none;cursor:not-allowed}#available-menu-items .new-content-item .add-content:before,.add-new-menu-item:before,.add-new-widget:before{content:"\f132";display:inline-block;position:relative;right:-2px;top:0;font:normal 20px/1 dashicons;vertical-align:middle;transition:all .2s;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.reorder-toggle{float:left;padding:5px 8px;text-decoration:none;cursor:pointer;outline:0}.reorder,.reordering .reorder-done{display:block;padding:5px 8px}.reorder-done,.reordering .reorder{display:none}.menu-item-reorder-nav button,.widget-reorder-nav span{position:relative;overflow:hidden;float:right;display:block;width:33px;height:43px;color:#8c8f94;text-indent:-9999px;cursor:pointer;outline:0}.menu-item-reorder-nav button{width:30px;height:40px;background:0 0;border:none;box-shadow:none}.menu-item-reorder-nav button:before,.widget-reorder-nav span:before{display:inline-block;position:absolute;top:0;left:0;width:100%;height:100%;font:normal 20px/43px dashicons;text-align:center;text-indent:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.menu-item-reorder-nav button:focus,.menu-item-reorder-nav button:hover,.widget-reorder-nav span:focus,.widget-reorder-nav span:hover{color:#1d2327;background:#f0f0f1}.menus-move-down:before,.move-widget-down:before{content:"\f347"}.menus-move-up:before,.move-widget-up:before{content:"\f343"}#customize-theme-controls .first-widget .move-widget-up,#customize-theme-controls .last-widget .move-widget-down,.move-down-disabled .menus-move-down,.move-left-disabled .menus-move-left,.move-right-disabled .menus-move-right,.move-up-disabled .menus-move-up{color:#dcdcde;background-color:#fff;cursor:default;pointer-events:none}.wp-full-overlay-main{left:auto;width:100%}.add-menu-toggle.open,.add-menu-toggle.open:hover,.adding-menu-items .add-new-menu-item,.adding-menu-items .add-new-menu-item:hover,body.adding-widget .add-new-widget,body.adding-widget .add-new-widget:hover{background:#f0f0f1;border-color:#8c8f94;color:#2c3338;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}#accordion-section-add_menu .add-new-menu-item.open:before,.adding-menu-items .add-new-menu-item:before,body.adding-widget .add-new-widget:before{transform:rotate(-45deg)}#available-menu-items,#available-widgets{position:absolute;top:0;bottom:0;right:-301px;visibility:hidden;overflow-x:hidden;overflow-y:auto;width:300px;margin:0;z-index:4;background:#f0f0f1;transition:right .18s;border-left:1px solid #dcdcde}#available-menu-items .customize-section-title,#available-widgets .customize-section-title{display:none}#available-widgets-list{top:60px;position:absolute;overflow:auto;bottom:0;width:100%;border-top:1px solid #dcdcde}.no-widgets-found #available-widgets-list{border-top:none}#available-widgets-filter{position:fixed;top:0;z-index:1;width:300px;background:#f0f0f1}#available-menu-items-search .accordion-section-title,#available-widgets-filter{padding:13px 15px;box-sizing:border-box}#available-menu-items-search input,#available-widgets-filter input{width:100%;min-height:32px;margin:1px 0;padding:0 30px}#available-menu-items-search input::-ms-clear,#available-widgets-filter input::-ms-clear{display:none}#available-menu-items-search .search-icon,#available-widgets-filter .search-icon{display:block;position:absolute;top:15px;right:16px;width:30px;height:30px;line-height:2.1;text-align:center;color:#646970}#available-menu-items-search .clear-results,#available-widgets-filter .clear-results{position:absolute;top:15px;left:16px;width:30px;height:30px;padding:0;border:0;cursor:pointer;background:0 0;color:#d63638;text-decoration:none;outline:0}#available-menu-items-search .clear-results,#available-menu-items-search.loading .clear-results.is-visible,#available-widgets-filter .clear-results{display:none}#available-menu-items-search .clear-results.is-visible,#available-widgets-filter .clear-results.is-visible{display:block}#available-menu-items-search .clear-results:before,#available-widgets-filter .clear-results:before{content:"\f335";font:normal 20px/1 dashicons;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#available-menu-items-search .clear-results:focus,#available-menu-items-search .clear-results:hover,#available-widgets-filter .clear-results:focus,#available-widgets-filter .clear-results:hover{color:#d63638}#available-menu-items-search .clear-results:focus,#available-widgets-filter .clear-results:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}#available-menu-items-search .search-icon:after,#available-widgets-filter .search-icon:after,.themes-filter-bar .search-icon:after{content:"\f179";font:normal 20px/1 dashicons;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.themes-filter-bar .search-icon{position:absolute;top:7px;right:26px;z-index:1;color:#646970;height:30px;width:30px;line-height:2;text-align:center}.no-widgets-found-message{display:none;margin:0;padding:0 15px;line-height:inherit}.no-widgets-found .no-widgets-found-message{display:block}#available-menu-items .item-top,#available-menu-items .item-top:hover,#available-widgets .widget-top,#available-widgets .widget-top:hover{border:none;background:0 0;box-shadow:none}#available-menu-items .item-tpl,#available-widgets .widget-tpl{position:relative;padding:15px 60px 15px 15px;background:#fff;border-bottom:1px solid #dcdcde;border-right:4px solid #fff;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out;cursor:pointer;display:none}#available-menu-items .item,#available-widgets .widget{position:static}.customize-controls-preview-toggle{display:none}@media only screen and (max-width:782px){.wp-customizer .theme:not(.active):focus .theme-actions,.wp-customizer .theme:not(.active):hover .theme-actions{display:block}.wp-customizer .theme-browser .theme.active .theme-name span{display:inline}.customize-control-header button.random .dice{margin-top:0}.customize-control-checkbox .customize-inside-control-row,.customize-control-nav_menu_auto_add .customize-inside-control-row,.customize-control-radio .customize-inside-control-row{margin-right:32px}.customize-control-checkbox input,.customize-control-nav_menu_auto_add input,.customize-control-radio input{margin-right:-32px}.customize-control input[type=checkbox]+label+br,.customize-control input[type=radio]+label+br{line-height:2.5}.customize-control .date-time-fields select{height:39px}.date-time-fields .date-input.month{width:79px}.date-time-fields .date-input.day,.date-time-fields .date-input.hour,.date-time-fields .date-input.minute{width:55px}.date-time-fields .date-input.year{width:80px}#customize-control-changeset_preview_link a{bottom:16px}.preview-link-wrapper .customize-copy-preview-link.preview-control-element.button{bottom:10px}.media-widget-control .media-widget-buttons .button.change-media,.media-widget-control .media-widget-buttons .button.edit-media,.media-widget-control .media-widget-buttons .button.select-media{margin-top:12px}.wp-core-ui .themes-filter-bar .feature-filter-toggle{margin:3px 25px 3px 0}}@media screen and (max-width:1200px){.adding-menu-items .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.adding-widget .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.outer-section-open .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main{right:67%}}@media screen and (max-width:640px){.wp-full-overlay.collapsed #customize-controls{margin-right:0}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{bottom:0}.customize-controls-preview-toggle{display:block;position:absolute;top:0;right:48px;line-height:2.6;font-size:14px;padding:0 12px 4px;margin:0;height:45px;background:#f0f0f1;border:0;border-left:1px solid #dcdcde;border-top:4px solid #f0f0f1;color:#50575e;cursor:pointer;transition:color .1s ease-in-out,background .1s ease-in-out}#customize-footer-actions,.customize-controls-preview-toggle .controls,.preview-only .customize-controls-preview-toggle .preview,.preview-only .wp-full-overlay-sidebar-content{display:none}.preview-only #customize-save-button-wrapper{margin-top:-46px}.customize-controls-preview-toggle .controls:before,.customize-controls-preview-toggle .preview:before{font:normal 20px/1 dashicons;content:"\f177";position:relative;top:4px;margin-left:6px}.customize-controls-preview-toggle .controls:before{content:"\f540"}.preview-only #customize-controls{height:45px}.preview-only #customize-preview,.preview-only .customize-controls-preview-toggle .controls{display:block}.wp-core-ui.wp-customizer .button{min-height:30px;padding:0 14px;line-height:2;font-size:14px;vertical-align:middle}#customize-control-changeset_status .customize-inside-control-row{padding-top:15px}body.adding-menu-items div#available-menu-items,body.adding-widget div#available-widgets,body.outer-section-open div#customize-sidebar-outer-content{width:100%}#available-menu-items .customize-section-title,#available-widgets .customize-section-title{display:block;margin:0}#available-menu-items .customize-section-back,#available-widgets .customize-section-back{height:69px}#available-menu-items .customize-section-title h3,#available-widgets .customize-section-title h3{font-size:20px;font-weight:200;padding:9px 14px 12px 10px;margin:0;line-height:24px;color:#50575e;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#available-menu-items .customize-section-title .customize-action,#available-widgets .customize-section-title .customize-action{font-size:13px;display:block;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#available-widgets-filter{position:relative;width:100%;height:auto}#available-widgets-list{top:130px}#available-menu-items-search .clear-results,#available-menu-items-search .search-icon{top:85px}.reorder,.reordering .reorder-done{padding:8px}.wp-core-ui .themes-filter-bar .feature-filter-toggle{margin:0}}@media screen and (max-width:600px){.wp-full-overlay.expanded{margin-right:0}body.adding-menu-items div#available-menu-items,body.adding-widget div#available-widgets,body.outer-section-open div#customize-sidebar-outer-content{top:46px;z-index:10}body.wp-customizer .wp-full-overlay.expanded #customize-sidebar-outer-content{right:-100%}body.wp-customizer.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content{right:0}} \ No newline at end of file
+body{overflow:hidden;-webkit-text-size-adjust:100%}.customize-controls-close,.widget-control-actions a{text-decoration:none}#customize-controls h3{font-size:14px}#customize-controls img{max-width:100%}#customize-controls .submit{text-align:center}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked{background-color:rgba(0,0,0,.7);padding:25px}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .customize-changeset-locked-message{margin-right:auto;margin-left:auto;max-width:366px;min-height:64px;width:auto;padding:25px 109px 25px 25px;position:relative;background:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);line-height:1.5;overflow-y:auto;text-align:right;top:calc(50% - 100px)}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .currently-editing{margin-top:0}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .action-buttons{margin-bottom:0}.customize-changeset-locked-avatar{width:64px;position:absolute;right:25px;top:25px}.wp-core-ui.wp-customizer .customize-changeset-locked-message a.button{margin-left:10px;margin-top:0}#customize-controls .description{color:#50575e}#customize-save-button-wrapper{float:left;margin-top:9px}body:not(.ready) #customize-save-button-wrapper .save{visibility:hidden}#customize-save-button-wrapper .save{float:right;border-radius:3px;box-shadow:none;margin-top:0}#customize-save-button-wrapper .save:focus,#publish-settings:focus{box-shadow:0 1px 0 #2271b1,0 0 2px 1px #72aee6}#customize-save-button-wrapper .save.has-next-sibling{border-radius:0 3px 3px 0}#customize-sidebar-outer-content{position:absolute;top:0;bottom:0;right:0;visibility:hidden;overflow-x:hidden;overflow-y:auto;width:100%;margin:0;z-index:-1;background:#f0f0f1;transition:right .18s;border-left:1px solid #dcdcde;border-right:1px solid #dcdcde;height:100%}@media (prefers-reduced-motion:reduce){#customize-sidebar-outer-content{transition:none}}#customize-theme-controls .control-section-outer{display:none!important}#customize-outer-theme-controls .accordion-section-content{padding:12px}#customize-outer-theme-controls .accordion-section-content.open{display:block}.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content{visibility:visible;right:100%;transition:right .18s}@media (prefers-reduced-motion:reduce){.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content{transition:none}}.customize-outer-pane-parent{margin:0}.outer-section-open .wp-full-overlay.expanded .wp-full-overlay-main{right:300px;opacity:.4}.adding-menu-items .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.adding-menu-items .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main,.adding-widget .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.adding-widget .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main,.outer-section-open .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.outer-section-open .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main{right:64%}#customize-outer-theme-controls li.notice{padding-top:8px;padding-bottom:8px;margin-right:0;margin-bottom:10px}#publish-settings{text-indent:0;border-radius:3px 0 0 3px;padding-right:0;padding-left:0;box-shadow:none;font-size:14px;width:30px;float:right;transform:none;margin-top:0;line-height:2}body.trashing #customize-save-button-wrapper .save,body.trashing #publish-settings,body:not(.ready) #publish-settings{display:none}#customize-header-actions .spinner{margin-top:13px;margin-left:4px}.saving #customize-header-actions .spinner,.trashing #customize-header-actions .spinner{visibility:visible}#customize-header-actions{border-bottom:1px solid #dcdcde}#customize-controls .wp-full-overlay-sidebar-content{overflow-y:auto;overflow-x:hidden}.outer-section-open #customize-controls .wp-full-overlay-sidebar-content{background:#f0f0f1}#customize-controls .customize-info{border:none;border-bottom:1px solid #dcdcde;margin-bottom:15px}#customize-control-changeset_preview_link input,#customize-control-changeset_status .customize-inside-control-row{background-color:#fff;border-bottom:1px solid #dcdcde;box-sizing:content-box;width:100%;margin-right:-12px;padding-right:12px;padding-left:12px}#customize-control-trash_changeset{margin-top:20px}#customize-control-trash_changeset .button-link{position:relative;padding-right:24px;display:inline-block}#customize-control-trash_changeset .button-link:before{content:"\f182";font:normal 22px dashicons;text-decoration:none;position:absolute;right:0;top:-2px}#customize-controls .date-input:invalid{border-color:#d63638}#customize-control-changeset_status .customize-inside-control-row{padding-top:10px;padding-bottom:10px;font-weight:500}#customize-control-changeset_status .customize-inside-control-row:first-of-type{border-top:1px solid #dcdcde}#customize-control-changeset_status .customize-control-title{margin-bottom:6px}#customize-control-changeset_status input{margin-right:0}#customize-control-changeset_preview_link{position:relative;display:block}.preview-link-wrapper .customize-copy-preview-link.preview-control-element.button{margin:0;position:absolute;bottom:9px;left:0}.preview-link-wrapper{position:relative}.customize-copy-preview-link:after,.customize-copy-preview-link:before{content:"";height:28px;position:absolute;background:#fff;top:-1px}.customize-copy-preview-link:before{right:-10px;width:9px;opacity:.75}.customize-copy-preview-link:after{right:-5px;width:4px;opacity:.8}#customize-control-changeset_preview_link input{line-height:2.85714286;border-top:1px solid #dcdcde;border-right:none;border-left:none;text-indent:-999px;color:#fff;min-height:40px}#customize-control-changeset_preview_link label{position:relative;display:block}#customize-control-changeset_preview_link a{display:inline-block;position:absolute;white-space:nowrap;overflow:hidden;width:90%;bottom:14px;font-size:14px;text-decoration:none}#customize-control-changeset_preview_link a.disabled,#customize-control-changeset_preview_link a.disabled:active,#customize-control-changeset_preview_link a.disabled:focus,#customize-control-changeset_preview_link a.disabled:visited{color:#000;opacity:.4;cursor:default;outline:0;box-shadow:none}#sub-accordion-section-publish_settings .customize-section-description-container{display:none}#customize-controls .customize-info.section-meta{margin-bottom:15px}.customize-control-date_time .customize-control-description+.date-time-fields.includes-time{margin-top:10px}.customize-control.customize-control-date_time .date-time-fields .date-input.day{margin-left:0}.date-time-fields .date-input.month{width:auto;margin:0}.date-time-fields .date-input.day,.date-time-fields .date-input.hour,.date-time-fields .date-input.minute{width:46px}.date-time-fields .date-input.year{width:65px}.date-time-fields .date-input.meridian{width:auto;margin:0}.date-time-fields .time-row{margin-top:12px}#customize-control-changeset_preview_link{margin-top:6px}#customize-control-changeset_status{margin-bottom:0;padding-bottom:0}#customize-control-changeset_scheduled_date{box-sizing:content-box;width:100%;margin-right:-12px;padding:12px;background:#fff;border-bottom:1px solid #dcdcde;margin-bottom:0}#customize-control-changeset_scheduled_date .customize-control-description{font-style:normal}#customize-controls .customize-info.is-in-view,#customize-controls .customize-section-title.is-in-view{position:absolute;z-index:9;width:100%;box-shadow:0 1px 0 rgba(0,0,0,.1)}#customize-controls .customize-section-title.is-in-view{margin-top:0}#customize-controls .customize-info.is-in-view+.accordion-section{margin-top:15px}#customize-controls .customize-info.is-sticky,#customize-controls .customize-section-title.is-sticky{position:fixed;top:46px}#customize-controls .customize-info .accordion-section-title{background:#fff;color:#50575e;border-right:none;border-left:none;border-bottom:none;cursor:default}#customize-controls .customize-info .accordion-section-title:focus:after,#customize-controls .customize-info .accordion-section-title:hover:after,#customize-controls .customize-info.open .accordion-section-title:after{color:#2c3338}#customize-controls .customize-info .accordion-section-title:after{display:none}#customize-controls .customize-info .preview-notice{font-size:13px;line-height:1.9}#customize-controls .customize-info .panel-title,#customize-controls .customize-pane-child .customize-section-title h3,#customize-controls .customize-pane-child h3.customize-section-title,#customize-outer-theme-controls .customize-pane-child .customize-section-title h3,#customize-outer-theme-controls .customize-pane-child h3.customize-section-title{font-size:20px;font-weight:200;line-height:26px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-section-title span.customize-action{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-info .customize-help-toggle{position:absolute;top:4px;left:1px;padding:20px 10px 10px 20px;width:20px;height:20px;cursor:pointer;box-shadow:none;background:0 0;color:#50575e;border:none}#customize-controls .customize-info .customize-help-toggle:before{position:absolute;top:5px;right:6px}#customize-controls .customize-info .customize-help-toggle:focus,#customize-controls .customize-info .customize-help-toggle:hover,#customize-controls .customize-info.open .customize-help-toggle{color:#2271b1}#customize-controls .customize-info .customize-panel-description,#customize-controls .customize-info .customize-section-description,#customize-controls .no-widget-areas-rendered-notice,#customize-outer-theme-controls .customize-info .customize-section-description{color:#50575e;display:none;background:#fff;padding:12px 15px;border-top:1px solid #dcdcde}#customize-controls .customize-info .customize-panel-description.open+.no-widget-areas-rendered-notice{border-top:none}.no-widget-areas-rendered-notice{font-style:italic}.no-widget-areas-rendered-notice p:first-child{margin-top:0}.no-widget-areas-rendered-notice p:last-child{margin-bottom:0}#customize-controls .customize-info .customize-section-description{margin-bottom:15px}#customize-controls .customize-info .customize-panel-description p:first-child,#customize-controls .customize-info .customize-section-description p:first-child{margin-top:0}#customize-controls .customize-info .customize-panel-description p:last-child,#customize-controls .customize-info .customize-section-description p:last-child{margin-bottom:0}#customize-controls .current-panel .control-section>h3.accordion-section-title{padding-left:30px}#customize-outer-theme-controls .control-section,#customize-theme-controls .control-section{border:none}#customize-outer-theme-controls .accordion-section-title,#customize-theme-controls .accordion-section-title{color:#50575e;background-color:#fff;border-bottom:1px solid #dcdcde;border-right:4px solid #fff;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out}@media (prefers-reduced-motion:reduce){#customize-outer-theme-controls .accordion-section-title,#customize-theme-controls .accordion-section-title{transition:none}}#customize-controls #customize-theme-controls .customize-themes-panel .accordion-section-title{color:#50575e;background-color:#fff;border-right:4px solid #fff}#customize-outer-theme-controls .accordion-section-title:after,#customize-theme-controls .accordion-section-title:after{content:"\f341";color:#a7aaad}#customize-outer-theme-controls .accordion-section-content,#customize-theme-controls .accordion-section-content{color:#50575e;background:0 0}#customize-controls .control-section .accordion-section-title:focus,#customize-controls .control-section .accordion-section-title:hover,#customize-controls .control-section.open .accordion-section-title,#customize-controls .control-section:hover>.accordion-section-title{color:#2271b1;background:#f6f7f7;border-right-color:#2271b1}#accordion-section-themes+.control-section{border-top:1px solid #dcdcde}.js .control-section .accordion-section-title:focus,.js .control-section .accordion-section-title:hover,.js .control-section.open .accordion-section-title,.js .control-section:hover .accordion-section-title{background:#f6f7f7}#customize-outer-theme-controls .control-section .accordion-section-title:focus:after,#customize-outer-theme-controls .control-section .accordion-section-title:hover:after,#customize-outer-theme-controls .control-section.open .accordion-section-title:after,#customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,#customize-theme-controls .control-section .accordion-section-title:focus:after,#customize-theme-controls .control-section .accordion-section-title:hover:after,#customize-theme-controls .control-section.open .accordion-section-title:after,#customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#2271b1}#customize-theme-controls .control-section.open{border-bottom:1px solid #f0f0f1}#customize-outer-theme-controls .control-section.open .accordion-section-title,#customize-theme-controls .control-section.open .accordion-section-title{border-bottom-color:#f0f0f1!important}#customize-theme-controls .control-section:last-of-type.open,#customize-theme-controls .control-section:last-of-type>.accordion-section-title{border-bottom-color:#dcdcde}#customize-theme-controls .control-panel-content:not(.control-panel-nav_menus) .control-section:nth-child(2),#customize-theme-controls .control-panel-nav_menus .control-section-nav_menu,#customize-theme-controls .control-section-nav_menu_locations .accordion-section-title{border-top:1px solid #dcdcde}#customize-theme-controls .control-panel-nav_menus .control-section-nav_menu+.control-section-nav_menu{border-top:none}#customize-theme-controls>ul{margin:0}#customize-theme-controls .accordion-section-content{position:absolute;top:0;right:100%;width:100%;margin:0;padding:12px;box-sizing:border-box}#customize-info,#customize-theme-controls .customize-pane-child,#customize-theme-controls .customize-pane-parent{overflow:visible;width:100%;margin:0;padding:0;box-sizing:border-box;transition:.18s transform cubic-bezier(.645, .045, .355, 1)}@media (prefers-reduced-motion:reduce){#customize-info,#customize-theme-controls .customize-pane-child,#customize-theme-controls .customize-pane-parent{transition:none}}#customize-theme-controls .customize-pane-child.skip-transition{transition:none}#customize-info,#customize-theme-controls .customize-pane-parent{position:relative;visibility:visible;height:auto;max-height:none;overflow:auto;transform:none}#customize-theme-controls .customize-pane-child{position:absolute;top:0;right:0;visibility:hidden;height:0;max-height:none;overflow:hidden;transform:translateX(-100%)}#customize-theme-controls .customize-pane-child.current-panel,#customize-theme-controls .customize-pane-child.open{transform:none}.in-sub-panel #customize-info,.in-sub-panel #customize-theme-controls .customize-pane-parent,.in-sub-panel.section-open #customize-theme-controls .customize-pane-child.current-panel,.section-open #customize-info,.section-open #customize-theme-controls .customize-pane-parent{visibility:hidden;height:0;overflow:hidden;transform:translateX(100%)}#customize-theme-controls .customize-pane-child.busy,#customize-theme-controls .customize-pane-child.current-panel,#customize-theme-controls .customize-pane-child.open,.busy.section-open.in-sub-panel #customize-theme-controls .customize-pane-child.current-panel,.in-sub-panel #customize-info.busy,.in-sub-panel #customize-theme-controls .customize-pane-parent.busy,.section-open #customize-info.busy,.section-open #customize-theme-controls .customize-pane-parent.busy{visibility:visible;height:auto;overflow:auto}#customize-theme-controls .customize-pane-child.accordion-section-content,#customize-theme-controls .customize-pane-child.accordion-sub-container{display:block;overflow-x:hidden}#customize-theme-controls .customize-pane-child.accordion-section-content{padding:12px}#customize-theme-controls .customize-pane-child.menu li{position:static}.control-section-nav_menu .customize-section-description-container,.control-section-new_menu .customize-section-description-container,.customize-section-description-container{margin-bottom:15px}.control-section-nav_menu .customize-control,.control-section-new_menu .customize-control{margin-bottom:0}.customize-section-title{margin:-12px -12px 0;border-bottom:1px solid #dcdcde;background:#fff}div.customize-section-description{margin-top:22px}.customize-info div.customize-section-description{margin-top:0}div.customize-section-description p:first-child{margin-top:0}div.customize-section-description p:last-child{margin-bottom:0}#customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child{border-bottom:1px solid #dcdcde;padding:12px}.ios #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child{padding:12px 12px 13px}.customize-section-title h3,h3.customize-section-title{padding:10px 14px 12px 10px;margin:0;line-height:21px;color:#50575e}.accordion-sub-container.control-panel-content{display:none;position:absolute;top:0;width:100%}.accordion-sub-container.control-panel-content.busy{display:block}.current-panel .accordion-sub-container.control-panel-content{width:100%}.customize-controls-close{display:block;position:absolute;top:0;right:0;width:45px;height:41px;padding:0 0 0 2px;background:#f0f0f1;border:none;border-top:4px solid #f0f0f1;border-left:1px solid #dcdcde;color:#3c434a;text-align:right;cursor:pointer;transition:color .15s ease-in-out,border-color .15s ease-in-out,background .15s ease-in-out;box-sizing:content-box}.customize-panel-back,.customize-section-back{display:block;float:right;width:48px;height:71px;padding:0 0 0 24px;margin:0;background:#fff;border:none;border-left:1px solid #dcdcde;border-right:4px solid #fff;box-shadow:none;cursor:pointer;transition:color .15s ease-in-out,border-color .15s ease-in-out,background .15s ease-in-out}.customize-section-back{height:74px}.ios .customize-panel-back{display:none}.ios .expanded.in-sub-panel .customize-panel-back{display:block}#customize-controls .panel-meta.customize-info .accordion-section-title{margin-right:48px;border-right:none}#customize-controls .cannot-expand:hover .accordion-section-title,#customize-controls .panel-meta.customize-info .accordion-section-title:hover{background:#fff;color:#50575e;border-right-color:#fff}.customize-controls-close:focus,.customize-controls-close:hover,.customize-controls-preview-toggle:focus,.customize-controls-preview-toggle:hover{background:#fff;color:#2271b1;border-top-color:#2271b1;box-shadow:none;outline:1px solid transparent}#customize-theme-controls .accordion-section-title:focus .customize-action{outline:1px solid transparent;outline-offset:1px}.customize-panel-back:focus,.customize-panel-back:hover,.customize-section-back:focus,.customize-section-back:hover{color:#2271b1;background:#f6f7f7;border-right-color:#2271b1;box-shadow:none;outline:2px solid transparent;outline-offset:-2px}.customize-controls-close:before{font:normal 22px/45px dashicons;content:"\f335";position:relative;top:-3px;right:13px}.customize-panel-back:before,.customize-section-back:before{font:normal 20px/72px dashicons;content:"\f345";position:relative;right:9px}.wp-full-overlay-sidebar .wp-full-overlay-header{background-color:#f0f0f1;transition:padding ease-in-out .18s}.in-sub-panel .wp-full-overlay-sidebar .wp-full-overlay-header{padding-right:62px}p.customize-section-description{font-style:normal;margin-top:22px;margin-bottom:0}.customize-section-description ul{margin-right:1em}.customize-section-description ul>li{list-style:disc}.section-description-buttons{text-align:left}.customize-control{width:100%;float:right;clear:both;margin-bottom:12px}.customize-control input[type=email],.customize-control input[type=number],.customize-control input[type=password],.customize-control input[type=range],.customize-control input[type=search],.customize-control input[type=tel],.customize-control input[type=text],.customize-control input[type=url]{width:100%;margin:0}.customize-control-hidden{margin:0}.customize-control-textarea textarea{width:100%;resize:vertical}.customize-control select{width:100%}.customize-control select[multiple]{height:auto}.customize-control-title{display:block;font-size:14px;line-height:1.75;font-weight:600;margin-bottom:4px}.customize-control-description{display:block;font-style:italic;line-height:1.4;margin-top:0;margin-bottom:5px}.customize-section-description a.external-link:after{font:16px/11px dashicons;content:"\f504";top:3px;position:relative;padding-right:3px;display:inline-block;text-decoration:none}.customize-control-color .color-picker,.customize-control-upload div{line-height:28px}.customize-control .customize-inside-control-row{line-height:1.6;display:block;margin-right:24px;padding-top:6px;padding-bottom:6px}.customize-control-checkbox input,.customize-control-nav_menu_auto_add input,.customize-control-radio input{margin-left:4px;margin-right:-24px}.customize-control-radio{padding:5px 0 10px}.customize-control-radio .customize-control-title{margin-bottom:0;line-height:1.6}.customize-control-radio .customize-control-title+.customize-control-description{margin-top:7px}.customize-control-checkbox label,.customize-control-radio label{vertical-align:top}.customize-control .attachment-thumb.type-icon{float:right;margin:10px;width:auto}.customize-control .attachment-title{font-weight:600;margin:0;padding:5px 10px}.customize-control .attachment-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;padding:0 10px}.customize-control .attachment-meta-title{padding-top:7px}.customize-control .thumbnail-image,.customize-control .wp-media-wrapper.wp-video,.customize-control-header .current{line-height:0}.customize-control-site_icon .favicon-preview .browser-preview{vertical-align:top}.customize-control .thumbnail-image img{cursor:pointer}#customize-controls .thumbnail-audio .thumbnail{max-width:64px;max-height:64px;margin:10px;float:right}#available-menu-items .accordion-section-content .new-content-item-wrapper,.customize-control-dropdown-pages .new-content-item-wrapper{width:calc(100% - 30px);padding:8px 15px;position:absolute;bottom:0;z-index:10;background:#f0f0f1}.customize-control-dropdown-pages .new-content-item-wrapper{width:100%;padding:0;position:static}#available-menu-items .accordion-section-content .new-content-item,.customize-control-dropdown-pages .new-content-item{display:flex}.customize-control-dropdown-pages .new-content-item{width:100%;padding:5px 1px 5px 0;position:relative}.customize-control-dropdown-pages .new-content-item-wrapper .new-content-item{padding:0}.customize-control-dropdown-pages .new-content-item-wrapper .new-content-item label{line-height:1.6}#available-menu-items .new-content-item .create-item-input,.customize-control-dropdown-pages .new-content-item .create-item-input{flex-grow:10}#available-menu-items .new-content-item .add-content,.customize-control-dropdown-pages .new-content-item .add-content{margin:2px 6px 2px 0;flex-grow:1}.customize-control-dropdown-pages .new-content-item .create-item-input.invalid{border:1px solid #d63638}.customize-control-dropdown-pages .add-new-toggle{margin-right:1px;font-weight:600;line-height:2.2}#customize-preview iframe{width:100%;height:100%;position:absolute}#customize-preview iframe+iframe{visibility:hidden}.wp-full-overlay-sidebar{background:#f0f0f1;border-left:1px solid #dcdcde}#customize-controls .customize-control-notifications-container{margin:4px 0 8px;padding:0;cursor:default}#customize-controls .customize-control-widget_form.has-error .widget .widget-top,.customize-control-nav_menu_item.has-error .menu-item-bar .menu-item-handle{box-shadow:inset 0 0 0 2px #d63638;transition:.15s box-shadow linear}#customize-controls .customize-control-notifications-container li.notice{list-style:none;margin:0 0 6px;padding:9px 14px;overflow:hidden}#customize-controls .customize-control-notifications-container .notice.is-dismissible{padding-left:38px}.customize-control-notifications-container li.notice:last-child{margin-bottom:0}#customize-controls .customize-control-nav_menu_item .customize-control-notifications-container{margin-top:0}#customize-controls .customize-control-widget_form .customize-control-notifications-container{margin-top:8px}.customize-control-text.has-error input{outline:2px solid #d63638}#customize-controls #customize-notifications-area{position:absolute;top:46px;width:100%;border-bottom:1px solid #dcdcde;display:block;padding:0;margin:0}.wp-full-overlay.collapsed #customize-controls #customize-notifications-area{display:none!important}#customize-controls #customize-notifications-area:not(.has-overlay-notifications),#customize-controls .customize-section-title>.customize-control-notifications-container:not(.has-overlay-notifications),#customize-controls .panel-meta>.customize-control-notifications-container:not(.has-overlay-notifications){max-height:210px;overflow-x:hidden;overflow-y:auto}#customize-controls #customize-notifications-area .notice,#customize-controls #customize-notifications-area>ul,#customize-controls .customize-section-title>.customize-control-notifications-container,#customize-controls .customize-section-title>.customize-control-notifications-container .notice,#customize-controls .panel-meta>.customize-control-notifications-container,#customize-controls .panel-meta>.customize-control-notifications-container .notice{margin:0}#customize-controls .customize-section-title>.customize-control-notifications-container,#customize-controls .panel-meta>.customize-control-notifications-container{border-top:1px solid #dcdcde}#customize-controls #customize-notifications-area .notice,#customize-controls .customize-section-title>.customize-control-notifications-container .notice,#customize-controls .panel-meta>.customize-control-notifications-container .notice{padding:9px 14px}#customize-controls #customize-notifications-area .notice.is-dismissible,#customize-controls .customize-section-title>.customize-control-notifications-container .notice.is-dismissible,#customize-controls .panel-meta>.customize-control-notifications-container .notice.is-dismissible{padding-left:38px}#customize-controls #customize-notifications-area .notice+.notice,#customize-controls .customize-section-title>.customize-control-notifications-container .notice+.notice,#customize-controls .panel-meta>.customize-control-notifications-container .notice+.notice{margin-top:1px}@keyframes customize-fade-in{0%{opacity:0}100%{opacity:1}}#customize-controls #customize-notifications-area .notice.notification-overlay,#customize-controls .notice.notification-overlay{margin:0;border-right:0}#customize-controls .customize-control-notifications-container.has-overlay-notifications{animation:customize-fade-in .5s;z-index:30}#customize-controls #customize-notifications-area .notice.notification-overlay .notification-message{clear:both;color:#1d2327;font-size:18px;font-style:normal;margin:0;padding:2em 0;text-align:center;width:100%;display:block;top:50%;position:relative}#customize-control-show_on_front.has-error{margin-bottom:0}#customize-control-show_on_front.has-error .customize-control-notifications-container{margin-top:12px}.accordion-section .dropdown{float:right;display:block;position:relative;cursor:pointer}.accordion-section .dropdown-content{overflow:hidden;float:right;min-width:30px;height:16px;line-height:16px;margin-left:16px;padding:4px 5px;border:2px solid #f0f0f1;-webkit-user-select:none;user-select:none}.customize-control .dropdown-arrow{position:absolute;top:0;bottom:0;left:0;width:20px;background:#f0f0f1}.customize-control .dropdown-arrow:after{content:"\f140";font:normal 20px/1 dashicons;speak:never;display:block;padding:0;text-indent:0;text-align:center;position:relative;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#2c3338}.customize-control .dropdown-status{color:#2c3338;background:#f0f0f1;display:none;max-width:112px}.customize-control-color .dropdown{margin-left:5px;margin-bottom:5px}.customize-control-color .dropdown .dropdown-content{background-color:#50575e;border:1px solid rgba(0,0,0,.15)}.customize-control-color .dropdown:hover .dropdown-content{border-color:rgba(0,0,0,.25)}.ios .wp-full-overlay{position:relative}.ios #customize-controls .wp-full-overlay-sidebar-content{-webkit-overflow-scrolling:touch}.customize-control .actions .button{margin-top:12px}.customize-control-header .actions,.customize-control-header .uploaded{margin-bottom:18px}.customize-control-header .default button:not(.random),.customize-control-header .uploaded button:not(.random){width:100%;padding:0;margin:0;background:0 0;border:none;color:inherit;cursor:pointer}.customize-control-header button img{display:block}.customize-control .attachment-media-view .default-button,.customize-control .attachment-media-view .remove-button,.customize-control .attachment-media-view .upload-button,.customize-control-header button.new,.customize-control-header button.remove{width:auto;height:auto;white-space:normal}.customize-control .attachment-media-view .thumbnail,.customize-control-header .current .container{overflow:hidden}.customize-control .attachment-media-view .button-add-media,.customize-control .attachment-media-view .placeholder,.customize-control-header .placeholder{width:100%;position:relative;text-align:center;cursor:default;border:1px dashed #c3c4c7;box-sizing:border-box;padding:9px 0;line-height:1.6}.customize-control .attachment-media-view .button-add-media{cursor:pointer;background-color:#f0f0f1;color:#2c3338}.customize-control .attachment-media-view .button-add-media:hover{background-color:#fff}.customize-control .attachment-media-view .button-add-media:focus{background-color:#fff;border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.customize-control-header .inner{display:none;position:absolute;width:100%;color:#50575e;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.customize-control-header .inner,.customize-control-header .inner .dashicons{line-height:20px;top:8px}.customize-control-header .list .inner,.customize-control-header .list .inner .dashicons{top:9px}.customize-control-header .header-view{position:relative;width:100%;margin-bottom:12px}.customize-control-header .header-view:last-child{margin-bottom:0}.customize-control-header .header-view:after{border:0}.customize-control-header .header-view.selected .choice:focus{outline:0}.customize-control-header .header-view.selected:after{content:"";position:absolute;height:auto;top:0;right:0;bottom:0;left:0;border:4px solid #72aee6;border-radius:2px}.customize-control-header .header-view.button.selected{border:0}.customize-control-header .uploaded .header-view .close{font-size:20px;color:#fff;background:#50575e;background:rgba(0,0,0,.5);position:absolute;top:10px;right:-999px;z-index:1;width:26px;height:26px;cursor:pointer}.customize-control-header .header-view .close:focus,.customize-control-header .header-view:hover .close{right:auto;left:10px}.customize-control-header .header-view .close:focus{outline:1px solid #4f94d4}.customize-control-header .random.placeholder{cursor:pointer;border-radius:2px;height:40px}.customize-control-header button.random{width:100%;height:auto;min-height:40px;white-space:normal}.customize-control-header button.random .dice{margin-top:4px}.customize-control-header .header-view:hover>button.random .dice,.customize-control-header .placeholder:hover .dice{animation:dice-color-change 3s infinite}.button-see-me{animation:bounce .7s 1;transform-origin:center bottom}@keyframes bounce{20%,53%,80%,from,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);transform:translate3d(0,0,0)}40%,43%{animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);transform:translate3d(0,-12px,0)}70%{animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);transform:translate3d(0,-6px,0)}90%{transform:translate3d(0,-1px,0)}}.customize-control-header .choice{position:relative;display:block;margin-bottom:9px}.customize-control-header .choice:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.customize-control-header .uploaded div:last-child>.choice{margin-bottom:0}.customize-control .attachment-media-view .thumbnail-image img,.customize-control-header img{max-width:100%}.customize-control .attachment-media-view .default-button,.customize-control .attachment-media-view .remove-button,.customize-control-header .remove{margin-left:8px}.customize-control-background_position .background-position-control .button-group{display:block}.customize-control-code_editor textarea{width:100%;font-family:Consolas,Monaco,monospace;font-size:12px;padding:6px 8px;tab-size:2}.customize-control-code_editor .CodeMirror,.customize-control-code_editor textarea{height:14em}#customize-controls .customize-section-description-container.section-meta.customize-info{border-bottom:none}#sub-accordion-section-custom_css .customize-control-notifications-container{margin-bottom:15px}#customize-control-custom_css textarea{display:block;height:500px}.customize-section-description-container+#customize-control-custom_css .customize-control-title{margin-right:12px}.customize-section-description-container+#customize-control-custom_css:last-child textarea{border-left:0;border-right:0;height:calc(100vh - 185px);resize:none}.customize-section-description-container+#customize-control-custom_css:last-child{margin-right:-12px;width:299px;width:calc(100% + 24px);margin-bottom:-12px}.customize-section-description-container+#customize-control-custom_css:last-child .CodeMirror{height:calc(100vh - 185px)}.CodeMirror-hints,.CodeMirror-lint-tooltip{z-index:500000!important}.customize-section-description-container+#customize-control-custom_css:last-child .customize-control-notifications-container{margin-right:12px;margin-left:12px}.theme-browser .theme.active .theme-actions,.wp-customizer .theme-browser .theme .theme-actions{padding:9px 15px;box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}@media screen and (max-width:640px){.customize-section-description-container+#customize-control-custom_css:last-child{margin-left:0}.customize-section-description-container+#customize-control-custom_css:last-child textarea{height:calc(100vh - 140px)}}#customize-theme-controls .control-panel-themes{border-bottom:none}#customize-theme-controls .control-panel-themes>.accordion-section-title,#customize-theme-controls .control-panel-themes>.accordion-section-title:hover{cursor:default;background:#fff;color:#50575e;border-top:1px solid #dcdcde;border-bottom:1px solid #dcdcde;border-right:none;border-left:none;margin:0 0 15px;padding-left:100px}#customize-theme-controls .control-section-themes .customize-themes-panel .accordion-section-title:first-child,#customize-theme-controls .control-section-themes .customize-themes-panel .accordion-section-title:first-child:hover{border-top:0}#customize-theme-controls .control-section-themes>.accordion-section-title,#customize-theme-controls .control-section-themes>.accordion-section-title:hover{margin:0 0 15px}#customize-controls .customize-themes-panel .accordion-section-title,#customize-controls .customize-themes-panel .accordion-section-title:hover{margin:15px -8px}#customize-controls .control-section-themes .accordion-section-title,#customize-controls .customize-themes-panel .accordion-section-title{padding-left:100px}#customize-controls .control-section-themes .accordion-section-title span.customize-action,#customize-controls .customize-section-title span.customize-action,.control-panel-themes .accordion-section-title span.customize-action{font-size:13px;display:block;font-weight:400}#customize-theme-controls .control-panel-themes .accordion-section-title .change-theme{position:absolute;left:10px;top:50%;margin-top:-14px;font-weight:400}#customize-notifications-area .notification-message button.switch-to-editor{display:block;margin-top:6px;font-weight:400}#customize-theme-controls .control-panel-themes>.accordion-section-title:after{display:none}.control-panel-themes .customize-themes-full-container{position:fixed;top:0;right:0;transition:.18s right ease-in-out;margin:0 300px 0 0;padding:71px 0 25px;overflow-y:scroll;width:calc(100% - 300px);height:calc(100% - 96px);background:#f0f0f1;z-index:20}@media (prefers-reduced-motion:reduce){.control-panel-themes .customize-themes-full-container{transition:none}}@media screen and (min-width:1670px){.control-panel-themes .customize-themes-full-container{width:82%;left:0;right:initial}}.modal-open .control-panel-themes .customize-themes-full-container{overflow-y:visible}#customize-header-actions .customize-controls-preview-toggle,#customize-header-actions .spinner,#customize-save-button-wrapper{transition:.18s margin ease-in-out}#customize-footer-actions,#customize-footer-actions .collapse-sidebar{bottom:0;transition:.18s bottom ease-in-out}.in-themes-panel:not(.animating) #customize-footer-actions,.in-themes-panel:not(.animating) #customize-header-actions .customize-controls-preview-toggle,.in-themes-panel:not(.animating) #customize-header-actions .spinner,.in-themes-panel:not(.animating) #customize-preview{visibility:hidden}.wp-full-overlay.in-themes-panel{background:#f0f0f1}.in-themes-panel #customize-header-actions .customize-controls-preview-toggle,.in-themes-panel #customize-header-actions .spinner,.in-themes-panel #customize-save-button-wrapper{margin-top:-46px}.in-themes-panel #customize-footer-actions,.in-themes-panel #customize-footer-actions .collapse-sidebar{bottom:-45px}.in-themes-panel.animating .control-panel-themes .filter-themes-count{display:none}.in-themes-panel.wp-full-overlay .wp-full-overlay-sidebar-content{bottom:0}.themes-filter-bar .feature-filter-toggle:before{content:"\f111";margin:0 0 0 5px;font:normal 16px/1 dashicons;vertical-align:text-bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.themes-filter-bar .feature-filter-toggle.open{background:#f0f0f1;border-color:#8c8f94;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}.themes-filter-bar .feature-filter-toggle .filter-count-filters{display:none}.filter-drawer{box-sizing:border-box;width:100%;position:absolute;top:46px;right:0;padding:25px 25px 25px 0;border-top:0;margin:0;background:#f0f0f1;border-bottom:1px solid #dcdcde}.filter-drawer .filter-group{margin:0 0 0 25px;width:calc((100% - 75px)/ 3);min-width:200px;max-width:320px}@keyframes themes-fade-in{0%{opacity:0}50%{opacity:0}100%{opacity:1}}.control-panel-themes .customize-themes-full-container.animate{animation:.6s themes-fade-in 1}.in-themes-panel:not(.animating) .control-panel-themes .filter-themes-count{animation:.6s themes-fade-in 1}.control-panel-themes .filter-themes-count .themes-displayed{font-weight:600;color:#50575e}.customize-themes-notifications{margin:0}.control-panel-themes .customize-themes-notifications .notice{margin:0 0 25px}.customize-themes-full-container .customize-themes-section{display:none!important;overflow:hidden}.customize-themes-full-container .customize-themes-section.current-section{display:list-item!important}.control-section .customize-section-text-before{padding:0 15px 8px 0;margin:15px 0 0;line-height:16px;border-bottom:1px solid #dcdcde;color:#50575e}.control-panel-themes .customize-themes-section-title{width:100%;background:#fff;box-shadow:none;outline:0;border-top:none;border-bottom:1px solid #dcdcde;border-right:4px solid #fff;border-left:none;cursor:pointer;padding:10px 15px;position:relative;text-align:right;font-size:14px;font-weight:600;color:#50575e;text-shadow:none}.control-panel-themes #accordion-section-installed_themes{border-top:1px solid #dcdcde}.control-panel-themes .theme-section{margin:0;position:relative}.control-panel-themes .customize-themes-section-title:focus,.control-panel-themes .customize-themes-section-title:hover{border-right-color:#2271b1;color:#2271b1;background:#f6f7f7}.customize-themes-section-title:not(.selected):after{content:"";display:block;position:absolute;top:9px;left:15px;width:18px;height:18px;border-radius:100%;border:1px solid #c3c4c7;background:#fff}.control-panel-themes .theme-section .customize-themes-section-title.selected:after{content:"\f147";font:16px/1 dashicons;box-sizing:border-box;width:20px;height:20px;padding:3px 1px 1px 3px;border-radius:100%;position:absolute;top:9px;left:15px;background:#2271b1;color:#fff}.control-panel-themes .customize-themes-section-title.selected{color:#2271b1}#customize-theme-controls .themes.accordion-section-content{position:relative;right:0;padding:0;width:100%}.loading .customize-themes-section .spinner{display:block;visibility:visible;position:relative;clear:both;width:20px;height:20px;right:calc(50% - 10px);float:none;margin-top:50px}.customize-themes-section .no-themes,.customize-themes-section .no-themes-local{display:none}.themes-section-installed_themes .theme .notice-success:not(.updated-message){display:none}.customize-control-theme .theme{width:100%;margin:0;border:1px solid #dcdcde;background:#fff}.customize-control-theme .theme .theme-actions,.customize-control-theme .theme .theme-name{background:#fff;border:none}.customize-control.customize-control-theme{box-sizing:border-box;width:25%;max-width:600px;margin:0 0 25px 25px;padding:0;clear:none}@media screen and (min-width:2101px){.customize-control.customize-control-theme{width:calc((100% - 125px)/ 5 - 1px)}}@media screen and (min-width:1601px) and (max-width:2100px){.customize-control.customize-control-theme{width:calc((100% - 100px)/ 4 - 1px)}}@media screen and (min-width:1201px) and (max-width:1600px){.customize-control.customize-control-theme{width:calc((100% - 75px)/ 3 - 1px)}}@media screen and (min-width:851px) and (max-width:1200px){.customize-control.customize-control-theme{width:calc((100% - 50px)/ 2 - 1px)}}@media screen and (max-width:850px){.customize-control.customize-control-theme{width:100%}}.wp-customizer .theme-browser .themes{padding:0 25px 25px 0;transition:.18s margin-top linear}.wp-customizer .theme-browser .theme .theme-actions{opacity:1}#customize-controls h3.theme-name{font-size:15px}#customize-controls .theme-overlay .theme-name{font-size:32px}.customize-preview-header.themes-filter-bar{position:fixed;top:0;right:300px;width:calc(100% - 300px);height:46px;background:#f0f0f1;z-index:10;padding:6px 25px;box-sizing:border-box;border-bottom:1px solid #dcdcde}.customize-preview-header.themes-filter-bar,.customize-preview-header.themes-filter-bar .search-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.customize-preview-header.themes-filter-bar .search-form-input{position:relative}.customize-preview-header .filter-themes-wrapper{display:grid;align-items:center;gap:10px;grid-template-columns:auto 1fr}.customize-preview-header .filter-themes-wrapper .filter-themes-count{justify-self:end}@media screen and (min-width:1670px){.customize-preview-header.themes-filter-bar{width:82%;left:0;right:initial}}.themes-filter-bar .themes-filter-container{margin:0;padding:0;display:flex;align-items:center;gap:10px}.themes-filter-bar .wp-filter-search{line-height:1.8;padding:6px 30px 6px 10px;max-width:100%;width:40%;min-width:300px;height:32px;margin:1px 0;top:0;right:0}@media screen and (max-height:540px),screen and (max-width:1018px){.customize-preview-header.themes-filter-bar{position:relative;right:0;width:100%;margin:0 0 25px}.filter-drawer{top:46px}.wp-customizer .theme-browser .themes{padding:0 25px 25px 0;overflow:hidden}.control-panel-themes .customize-themes-full-container{margin-top:0;padding:0;height:100%;width:calc(100% - 300px)}}@media screen and (max-width:1018px){.filter-drawer .filter-group{width:calc((100% - 50px)/ 2)}}@media screen and (max-width:960px){.customize-preview-header.themes-filter-bar{height:96px}}@media screen and (max-width:900px){.themes-filter-bar .wp-filter-search{width:100%;margin:0;min-width:200px}.customize-preview-header.themes-filter-bar,.customize-preview-header.themes-filter-bar .search-form .themes-filter-bar .themes-filter-container{display:grid;gap:4px}.customize-preview-header.themes-filter-bar .search-form-input{display:flex;flex-grow:1}.filter-drawer{top:86px}.control-panel-themes .filter-themes-count{float:right}}@media screen and (max-width:792px){.filter-drawer .filter-group{width:calc(100% - 25px)}}.control-panel-themes .customize-themes-mobile-back{display:none}@media screen and (max-width:600px){.filter-drawer{top:132px}.wp-full-overlay.showing-themes .control-panel-themes .filter-themes-count .filter-themes{display:block;float:left}.control-panel-themes .customize-themes-full-container{width:100%;margin:0;padding-top:46px;height:calc(100% - 46px);z-index:1;display:none}.showing-themes .control-panel-themes .customize-themes-full-container{display:block}.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back{display:block;position:fixed;top:0;right:0;background:#f0f0f1;color:#3c434a;border-radius:0;box-shadow:none;border:none;height:46px;width:100%;z-index:10;text-align:right;text-shadow:none;border-bottom:1px solid #dcdcde;border-right:4px solid transparent;margin:0;padding:0;font-size:0;overflow:hidden}.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:before{right:0;top:0;height:46px;width:26px;display:block;line-height:2.3;padding:0 8px;border-left:1px solid #dcdcde}.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:focus,.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:hover{color:#2271b1;background:#f6f7f7;border-right-color:#2271b1;box-shadow:none;outline:2px solid transparent;outline-offset:-2px}.showing-themes #customize-header-actions{display:none}#customize-controls{width:100%}}.wp-customizer .theme-overlay{display:none}.wp-customizer.modal-open .theme-overlay{position:fixed;right:0;top:0;left:0;bottom:0;z-index:109}.wp-customizer.modal-open #customize-header-actions,.wp-customizer.modal-open .control-panel-themes .customize-themes-section-title.selected:after,.wp-customizer.modal-open .control-panel-themes .filter-themes-count{z-index:-1}.wp-full-overlay.in-themes-panel.themes-panel-expanded #customize-controls .wp-full-overlay-sidebar-content{overflow:visible}.wp-customizer .theme-overlay .theme-backdrop{background:rgba(240,240,241,.75);position:fixed;z-index:110}.wp-customizer .theme-overlay .star-rating{float:right;margin-left:8px}.wp-customizer .theme-rating .num-ratings{line-height:20px}.wp-customizer .theme-overlay .theme-wrap{right:90px;left:90px;top:45px;bottom:45px;z-index:120}.wp-customizer .theme-overlay .theme-actions{text-align:left;padding:10px 25px 5px;background:#f0f0f1;border-top:1px solid #dcdcde}.wp-customizer .theme-overlay .theme-actions .theme-install.preview{margin-right:8px}.modal-open .in-themes-panel #customize-controls .wp-full-overlay-sidebar-content{overflow:visible}.wp-customizer .theme-header{background:#f0f0f1}.wp-customizer .theme-overlay .theme-header .close:before,.wp-customizer .theme-overlay .theme-header button{color:#3c434a}.wp-customizer .theme-overlay .theme-header .close:focus,.wp-customizer .theme-overlay .theme-header .close:hover,.wp-customizer .theme-overlay .theme-header .left:focus,.wp-customizer .theme-overlay .theme-header .left:hover,.wp-customizer .theme-overlay .theme-header .right:focus,.wp-customizer .theme-overlay .theme-header .right:hover{background:#fff;border-bottom:4px solid #2271b1;color:#2271b1}.wp-customizer .theme-overlay .theme-header .close:focus:before,.wp-customizer .theme-overlay .theme-header .close:hover:before{color:#2271b1}.wp-customizer .theme-overlay .theme-header button.disabled,.wp-customizer .theme-overlay .theme-header button.disabled:focus,.wp-customizer .theme-overlay .theme-header button.disabled:hover{border-bottom:none;background:0 0;color:#c3c4c7}@media (max-width:850px),(max-height:472px){.wp-customizer .theme-overlay .theme-wrap{right:0;left:0;top:0;bottom:0}.wp-customizer .theme-browser .themes{padding-left:25px}}body.cheatin{font-size:medium;height:auto;background:#fff;border:1px solid #c3c4c7;margin:50px auto 2em;padding:1em 2em;max-width:700px;min-width:0;box-shadow:0 1px 1px rgba(0,0,0,.04)}body.cheatin h1{border-bottom:1px solid #dcdcde;clear:both;color:#50575e;font-size:24px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;margin:30px 0 0;padding:0 0 7px}body.cheatin p{font-size:14px;line-height:1.5;margin:25px 0 20px}#customize-theme-controls .add-new-menu-item,#customize-theme-controls .add-new-widget{cursor:pointer;float:left;margin:0 10px 0 0;transition:all .2s;-webkit-user-select:none;user-select:none;outline:0}.reordering .add-new-menu-item,.reordering .add-new-widget{opacity:.2;pointer-events:none;cursor:not-allowed}#available-menu-items .new-content-item .add-content:before,.add-new-menu-item:before,.add-new-widget:before{content:"\f132";display:inline-block;position:relative;right:-2px;top:0;font:normal 20px/1 dashicons;vertical-align:middle;transition:all .2s;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.reorder-toggle{float:left;padding:5px 8px;text-decoration:none;cursor:pointer;outline:0}.reorder,.reordering .reorder-done{display:block;padding:5px 8px}.reorder-done,.reordering .reorder{display:none}.menu-item-reorder-nav button,.widget-reorder-nav span{position:relative;overflow:hidden;float:right;display:block;width:33px;height:43px;color:#8c8f94;text-indent:-9999px;cursor:pointer;outline:0}.menu-item-reorder-nav button{width:30px;height:40px;background:0 0;border:none;box-shadow:none}.menu-item-reorder-nav button:before,.widget-reorder-nav span:before{display:inline-block;position:absolute;top:0;left:0;width:100%;height:100%;font:normal 20px/43px dashicons;text-align:center;text-indent:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.menu-item-reorder-nav button:focus,.menu-item-reorder-nav button:hover,.widget-reorder-nav span:focus,.widget-reorder-nav span:hover{color:#1d2327;background:#f0f0f1}.menus-move-down:before,.move-widget-down:before{content:"\f347"}.menus-move-up:before,.move-widget-up:before{content:"\f343"}#customize-theme-controls .first-widget .move-widget-up,#customize-theme-controls .last-widget .move-widget-down,.move-down-disabled .menus-move-down,.move-left-disabled .menus-move-left,.move-right-disabled .menus-move-right,.move-up-disabled .menus-move-up{color:#dcdcde;background-color:#fff;cursor:default;pointer-events:none}.wp-full-overlay-main{left:auto;width:100%}.add-menu-toggle.open,.add-menu-toggle.open:hover,.adding-menu-items .add-new-menu-item,.adding-menu-items .add-new-menu-item:hover,body.adding-widget .add-new-widget,body.adding-widget .add-new-widget:hover{background:#f0f0f1;border-color:#8c8f94;color:#2c3338;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}#accordion-section-add_menu .add-new-menu-item.open:before,.adding-menu-items .add-new-menu-item:before,body.adding-widget .add-new-widget:before{transform:rotate(-45deg)}#available-menu-items,#available-widgets{position:absolute;top:0;bottom:0;right:-301px;visibility:hidden;overflow-x:hidden;overflow-y:auto;width:300px;margin:0;z-index:4;background:#f0f0f1;transition:right .18s;border-left:1px solid #dcdcde}#available-menu-items .customize-section-title,#available-widgets .customize-section-title{display:none}#available-widgets-list{top:82px;position:absolute;overflow:auto;bottom:0;width:100%;border-top:1px solid #dcdcde}.no-widgets-found #available-widgets-list{border-top:none}#available-widgets-filter{position:fixed;top:0;z-index:1;width:300px;background:#f0f0f1}#available-menu-items-search .accordion-section-title,#available-widgets-filter{padding:13px 15px;box-sizing:border-box}#available-menu-items-search input,#available-widgets-filter input{width:100%;min-height:32px;margin:1px 0;padding:0 30px}#available-menu-items-search input::-ms-clear,#available-widgets-filter input::-ms-clear{display:none}#available-menu-items-search .search-icon,#available-widgets-filter .search-icon{display:block;position:absolute;bottom:15px;right:16px;width:30px;height:30px;line-height:2.1;text-align:center;color:#646970}#available-menu-items-search .accordion-section-title .clear-results,#available-widgets-filter .clear-results{position:absolute;top:36px;left:16px;width:30px;height:30px;padding:0;border:0;cursor:pointer;background:0 0;color:#d63638;text-decoration:none;outline:0}#available-menu-items-search .clear-results,#available-menu-items-search.loading .clear-results.is-visible,#available-widgets-filter .clear-results{display:none}#available-menu-items-search .clear-results.is-visible,#available-widgets-filter .clear-results.is-visible{display:block}#available-menu-items-search .clear-results:before,#available-widgets-filter .clear-results:before{content:"\f335";font:normal 20px/1 dashicons;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#available-menu-items-search .clear-results:focus,#available-menu-items-search .clear-results:hover,#available-widgets-filter .clear-results:focus,#available-widgets-filter .clear-results:hover{color:#d63638}#available-menu-items-search .clear-results:focus,#available-widgets-filter .clear-results:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}#available-menu-items-search .search-icon:after,#available-widgets-filter .search-icon:after,.themes-filter-bar .search-icon:after{content:"\f179";font:normal 20px/1 dashicons;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.themes-filter-bar .search-icon{position:absolute;top:2px;right:2px;z-index:1;color:#646970;height:30px;width:30px;line-height:2;text-align:center}.no-widgets-found-message{display:none;margin:0;padding:0 15px;line-height:inherit}.no-widgets-found .no-widgets-found-message{display:block}#available-menu-items .item-top,#available-menu-items .item-top:hover,#available-widgets .widget-top,#available-widgets .widget-top:hover{border:none;background:0 0;box-shadow:none}#available-menu-items .item-tpl,#available-widgets .widget-tpl{position:relative;padding:15px 60px 15px 15px;background:#fff;border-bottom:1px solid #dcdcde;border-right:4px solid #fff;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out;cursor:pointer;display:none}#available-menu-items .item,#available-widgets .widget{position:static}.customize-controls-preview-toggle{display:none}@media only screen and (max-width:782px){.wp-customizer .theme:not(.active):focus .theme-actions,.wp-customizer .theme:not(.active):hover .theme-actions{display:block}.wp-customizer .theme-browser .theme.active .theme-name span{display:inline}.customize-control-header button.random .dice{margin-top:0}.customize-control-checkbox .customize-inside-control-row,.customize-control-nav_menu_auto_add .customize-inside-control-row,.customize-control-radio .customize-inside-control-row{margin-right:32px}.customize-control-checkbox input,.customize-control-nav_menu_auto_add input,.customize-control-radio input{margin-right:-32px}.customize-control input[type=checkbox]+label+br,.customize-control input[type=radio]+label+br{line-height:2.5}.customize-control .date-time-fields select{height:39px}.date-time-fields .date-input.month{width:79px}.date-time-fields .date-input.day,.date-time-fields .date-input.hour,.date-time-fields .date-input.minute{width:55px}.date-time-fields .date-input.year{width:80px}#customize-control-changeset_preview_link a{bottom:16px}.preview-link-wrapper .customize-copy-preview-link.preview-control-element.button{bottom:10px}.media-widget-control .media-widget-buttons .button.change-media,.media-widget-control .media-widget-buttons .button.edit-media,.media-widget-control .media-widget-buttons .button.select-media{margin-top:12px}.customize-preview-header.themes-filter-bar .search-icon{top:6px}}@media screen and (max-width:1200px){.adding-menu-items .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.adding-widget .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.outer-section-open .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main{right:67%}}@media screen and (max-width:640px){.wp-full-overlay.collapsed #customize-controls{margin-right:0}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{bottom:0}.customize-controls-preview-toggle{display:block;position:absolute;top:0;right:48px;line-height:2.6;font-size:14px;padding:0 12px 4px;margin:0;height:45px;background:#f0f0f1;border:0;border-left:1px solid #dcdcde;border-top:4px solid #f0f0f1;color:#50575e;cursor:pointer;transition:color .1s ease-in-out,background .1s ease-in-out}#customize-footer-actions,.customize-controls-preview-toggle .controls,.preview-only .customize-controls-preview-toggle .preview,.preview-only .wp-full-overlay-sidebar-content{display:none}.preview-only #customize-save-button-wrapper{margin-top:-46px}.customize-controls-preview-toggle .controls:before,.customize-controls-preview-toggle .preview:before{font:normal 20px/1 dashicons;content:"\f177";position:relative;top:4px;margin-left:6px}.customize-controls-preview-toggle .controls:before{content:"\f540"}.preview-only #customize-controls{height:45px}.preview-only #customize-preview,.preview-only .customize-controls-preview-toggle .controls{display:block}.wp-core-ui.wp-customizer .button{min-height:30px;padding:0 14px;line-height:2;font-size:14px;vertical-align:middle}#customize-control-changeset_status .customize-inside-control-row{padding-top:15px}body.adding-menu-items div#available-menu-items,body.adding-widget div#available-widgets,body.outer-section-open div#customize-sidebar-outer-content{width:100%}#available-menu-items .customize-section-title,#available-widgets .customize-section-title{display:block;margin:0}#available-menu-items .customize-section-back,#available-widgets .customize-section-back{height:69px}#available-menu-items .customize-section-title h3,#available-widgets .customize-section-title h3{font-size:20px;font-weight:200;padding:9px 14px 12px 10px;margin:0;line-height:24px;color:#50575e;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#available-menu-items .customize-section-title .customize-action,#available-widgets .customize-section-title .customize-action{font-size:13px;display:block;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#available-widgets-filter{position:relative;width:100%;height:auto}#available-widgets-list{top:152px}#available-menu-items-search .clear-results{top:36px;left:16px}.reorder,.reordering .reorder-done{padding:8px}}@media screen and (max-width:600px){.wp-full-overlay.expanded{margin-right:0}body.adding-menu-items div#available-menu-items,body.adding-widget div#available-widgets,body.outer-section-open div#customize-sidebar-outer-content{top:46px;z-index:10}body.wp-customizer .wp-full-overlay.expanded #customize-sidebar-outer-content{right:-100%}body.wp-customizer.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content{right:0}} \ No newline at end of file
diff --git a/wp-admin/css/customize-controls.css b/wp-admin/css/customize-controls.css
index ca21fe2..c53bdc9 100644
--- a/wp-admin/css/customize-controls.css
+++ b/wp-admin/css/customize-controls.css
@@ -1082,14 +1082,24 @@ p.customize-section-description {
float: left;
}
-#available-menu-items .accordion-section-content .new-content-item,
-.customize-control-dropdown-pages .new-content-item {
+#available-menu-items .accordion-section-content .new-content-item-wrapper,
+.customize-control-dropdown-pages .new-content-item-wrapper {
width: calc(100% - 30px);
padding: 8px 15px;
position: absolute;
bottom: 0;
z-index: 10;
background: #f0f0f1;
+}
+
+.customize-control-dropdown-pages .new-content-item-wrapper {
+ width: 100%;
+ padding: 0;
+ position: static;
+}
+
+#available-menu-items .accordion-section-content .new-content-item,
+.customize-control-dropdown-pages .new-content-item {
display: flex;
}
@@ -1099,6 +1109,14 @@ p.customize-section-description {
position: relative;
}
+.customize-control-dropdown-pages .new-content-item-wrapper .new-content-item {
+ padding: 0;
+}
+
+.customize-control-dropdown-pages .new-content-item-wrapper .new-content-item label {
+ line-height: 1.6;
+}
+
#available-menu-items .new-content-item .create-item-input,
.customize-control-dropdown-pages .new-content-item .create-item-input {
flex-grow: 10;
@@ -1815,11 +1833,6 @@ p.customize-section-description {
bottom: 0;
}
-.themes-filter-bar .feature-filter-toggle {
- float: right;
- margin: 3px 0 3px 25px;
-}
-
.themes-filter-bar .feature-filter-toggle:before {
content: "\f111";
margin: 0 5px 0 0;
@@ -1880,12 +1893,6 @@ p.customize-section-description {
animation: .6s themes-fade-in 1;
}
-.control-panel-themes .filter-themes-count {
- position: relative;
- float: right;
- line-height: 2.6;
-}
-
.control-panel-themes .filter-themes-count .themes-displayed {
font-weight: 600;
color: #50575e;
@@ -2097,6 +2104,28 @@ p.customize-section-description {
box-sizing: border-box;
border-bottom: 1px solid #dcdcde;
}
+.customize-preview-header.themes-filter-bar,
+.customize-preview-header.themes-filter-bar .search-form {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ flex-wrap: wrap;
+}
+
+.customize-preview-header.themes-filter-bar .search-form-input {
+ position: relative;
+}
+
+.customize-preview-header .filter-themes-wrapper {
+ display: grid;
+ align-items: center;
+ gap: 10px;
+ grid-template-columns: auto 1fr;
+}
+
+.customize-preview-header .filter-themes-wrapper .filter-themes-count {
+ justify-self: end;
+}
@media screen and (min-width: 1670px) {
.customize-preview-header.themes-filter-bar {
@@ -2109,6 +2138,9 @@ p.customize-section-description {
.themes-filter-bar .themes-filter-container {
margin: 0;
padding: 0;
+ display: flex;
+ align-items: center;
+ gap: 10px;
}
.themes-filter-bar .wp-filter-search {
@@ -2117,11 +2149,10 @@ p.customize-section-description {
max-width: 100%;
width: 40%;
min-width: 300px;
- position: absolute;
- top: 6px;
- left: 25px;
height: 32px;
margin: 1px 0;
+ top: 0;
+ left: 0;
}
/* Unstick the filter bar on short windows/screens. This breakpoint is based on the
@@ -2155,18 +2186,31 @@ p.customize-section-description {
}
}
-@media screen and (max-width: 900px) {
+@media screen and (max-width: 960px) {
.customize-preview-header.themes-filter-bar {
- height: 86px;
- padding-top: 46px;
+ height: 96px;
}
+}
+@media screen and (max-width: 900px) {
.themes-filter-bar .wp-filter-search {
- width: calc(100% - 50px);
+ width: 100%;
margin: 0;
min-width: 200px;
}
+ .customize-preview-header.themes-filter-bar,
+ .customize-preview-header.themes-filter-bar .search-form
+ .themes-filter-bar .themes-filter-container {
+ display: grid;
+ gap: 4px;
+ }
+
+ .customize-preview-header.themes-filter-bar .search-form-input {
+ display: flex;
+ flex-grow: 1;
+ }
+
.filter-drawer {
top: 86px;
}
@@ -2580,7 +2624,7 @@ body.adding-widget .add-new-widget:before,
}
#available-widgets-list {
- top: 60px;
+ top: 82px;
position: absolute;
overflow: auto;
bottom: 0;
@@ -2624,7 +2668,7 @@ body.adding-widget .add-new-widget:before,
#available-widgets-filter .search-icon {
display: block;
position: absolute;
- top: 15px; /* 13 container padding +1 input margin +1 input border */
+ bottom: 15px; /* 13 container padding +1 input margin +1 input border */
left: 16px;
width: 30px;
height: 30px;
@@ -2634,9 +2678,9 @@ body.adding-widget .add-new-widget:before,
}
#available-widgets-filter .clear-results,
-#available-menu-items-search .clear-results {
+#available-menu-items-search .accordion-section-title .clear-results {
position: absolute;
- top: 15px; /* 13 container padding +1 input margin +1 input border */
+ top: 36px; /* 13 container padding +1 input margin +1 input border */
right: 16px;
width: 30px;
height: 30px;
@@ -2695,8 +2739,8 @@ body.adding-widget .add-new-widget:before,
.themes-filter-bar .search-icon {
position: absolute;
- top: 7px;
- left: 26px;
+ top: 2px;
+ left: 2px;
z-index: 1;
color: #646970;
height: 30px;
@@ -2814,8 +2858,8 @@ body.adding-widget .add-new-widget:before,
margin-top: 12px;
}
- .wp-core-ui .themes-filter-bar .feature-filter-toggle {
- margin: 3px 0 3px 25px;
+ .customize-preview-header.themes-filter-bar .search-icon {
+ top: 6px;
}
}
@@ -2952,22 +2996,18 @@ body.adding-widget .add-new-widget:before,
}
#available-widgets-list {
- top: 130px;
+ top: 152px;
}
- #available-menu-items-search .clear-results,
- #available-menu-items-search .search-icon {
- top: 85px; /* 70 section title height + 13 container padding +1 input margin +1 input border */
+ #available-menu-items-search .clear-results {
+ top: 36px;
+ right: 16px;
}
.reorder,
.reordering .reorder-done {
padding: 8px;
}
-
- .wp-core-ui .themes-filter-bar .feature-filter-toggle {
- margin: 0;
- }
}
@media screen and (max-width: 600px) {
diff --git a/wp-admin/css/customize-controls.min.css b/wp-admin/css/customize-controls.min.css
index 5d41479..90d6b0f 100644
--- a/wp-admin/css/customize-controls.min.css
+++ b/wp-admin/css/customize-controls.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-body{overflow:hidden;-webkit-text-size-adjust:100%}.customize-controls-close,.widget-control-actions a{text-decoration:none}#customize-controls h3{font-size:14px}#customize-controls img{max-width:100%}#customize-controls .submit{text-align:center}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked{background-color:rgba(0,0,0,.7);padding:25px}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .customize-changeset-locked-message{margin-left:auto;margin-right:auto;max-width:366px;min-height:64px;width:auto;padding:25px 25px 25px 109px;position:relative;background:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);line-height:1.5;overflow-y:auto;text-align:left;top:calc(50% - 100px)}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .currently-editing{margin-top:0}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .action-buttons{margin-bottom:0}.customize-changeset-locked-avatar{width:64px;position:absolute;left:25px;top:25px}.wp-core-ui.wp-customizer .customize-changeset-locked-message a.button{margin-right:10px;margin-top:0}#customize-controls .description{color:#50575e}#customize-save-button-wrapper{float:right;margin-top:9px}body:not(.ready) #customize-save-button-wrapper .save{visibility:hidden}#customize-save-button-wrapper .save{float:left;border-radius:3px;box-shadow:none;margin-top:0}#customize-save-button-wrapper .save:focus,#publish-settings:focus{box-shadow:0 1px 0 #2271b1,0 0 2px 1px #72aee6}#customize-save-button-wrapper .save.has-next-sibling{border-radius:3px 0 0 3px}#customize-sidebar-outer-content{position:absolute;top:0;bottom:0;left:0;visibility:hidden;overflow-x:hidden;overflow-y:auto;width:100%;margin:0;z-index:-1;background:#f0f0f1;transition:left .18s;border-right:1px solid #dcdcde;border-left:1px solid #dcdcde;height:100%}@media (prefers-reduced-motion:reduce){#customize-sidebar-outer-content{transition:none}}#customize-theme-controls .control-section-outer{display:none!important}#customize-outer-theme-controls .accordion-section-content{padding:12px}#customize-outer-theme-controls .accordion-section-content.open{display:block}.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content{visibility:visible;left:100%;transition:left .18s}@media (prefers-reduced-motion:reduce){.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content{transition:none}}.customize-outer-pane-parent{margin:0}.outer-section-open .wp-full-overlay.expanded .wp-full-overlay-main{left:300px;opacity:.4}.adding-menu-items .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.adding-menu-items .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main,.adding-widget .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.adding-widget .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main,.outer-section-open .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.outer-section-open .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main{left:64%}#customize-outer-theme-controls li.notice{padding-top:8px;padding-bottom:8px;margin-left:0;margin-bottom:10px}#publish-settings{text-indent:0;border-radius:0 3px 3px 0;padding-left:0;padding-right:0;box-shadow:none;font-size:14px;width:30px;float:left;transform:none;margin-top:0;line-height:2}body.trashing #customize-save-button-wrapper .save,body.trashing #publish-settings,body:not(.ready) #publish-settings{display:none}#customize-header-actions .spinner{margin-top:13px;margin-right:4px}.saving #customize-header-actions .spinner,.trashing #customize-header-actions .spinner{visibility:visible}#customize-header-actions{border-bottom:1px solid #dcdcde}#customize-controls .wp-full-overlay-sidebar-content{overflow-y:auto;overflow-x:hidden}.outer-section-open #customize-controls .wp-full-overlay-sidebar-content{background:#f0f0f1}#customize-controls .customize-info{border:none;border-bottom:1px solid #dcdcde;margin-bottom:15px}#customize-control-changeset_preview_link input,#customize-control-changeset_status .customize-inside-control-row{background-color:#fff;border-bottom:1px solid #dcdcde;box-sizing:content-box;width:100%;margin-left:-12px;padding-left:12px;padding-right:12px}#customize-control-trash_changeset{margin-top:20px}#customize-control-trash_changeset .button-link{position:relative;padding-left:24px;display:inline-block}#customize-control-trash_changeset .button-link:before{content:"\f182";font:normal 22px dashicons;text-decoration:none;position:absolute;left:0;top:-2px}#customize-controls .date-input:invalid{border-color:#d63638}#customize-control-changeset_status .customize-inside-control-row{padding-top:10px;padding-bottom:10px;font-weight:500}#customize-control-changeset_status .customize-inside-control-row:first-of-type{border-top:1px solid #dcdcde}#customize-control-changeset_status .customize-control-title{margin-bottom:6px}#customize-control-changeset_status input{margin-left:0}#customize-control-changeset_preview_link{position:relative;display:block}.preview-link-wrapper .customize-copy-preview-link.preview-control-element.button{margin:0;position:absolute;bottom:9px;right:0}.preview-link-wrapper{position:relative}.customize-copy-preview-link:after,.customize-copy-preview-link:before{content:"";height:28px;position:absolute;background:#fff;top:-1px}.customize-copy-preview-link:before{left:-10px;width:9px;opacity:.75}.customize-copy-preview-link:after{left:-5px;width:4px;opacity:.8}#customize-control-changeset_preview_link input{line-height:2.85714286;border-top:1px solid #dcdcde;border-left:none;border-right:none;text-indent:-999px;color:#fff;min-height:40px}#customize-control-changeset_preview_link label{position:relative;display:block}#customize-control-changeset_preview_link a{display:inline-block;position:absolute;white-space:nowrap;overflow:hidden;width:90%;bottom:14px;font-size:14px;text-decoration:none}#customize-control-changeset_preview_link a.disabled,#customize-control-changeset_preview_link a.disabled:active,#customize-control-changeset_preview_link a.disabled:focus,#customize-control-changeset_preview_link a.disabled:visited{color:#000;opacity:.4;cursor:default;outline:0;box-shadow:none}#sub-accordion-section-publish_settings .customize-section-description-container{display:none}#customize-controls .customize-info.section-meta{margin-bottom:15px}.customize-control-date_time .customize-control-description+.date-time-fields.includes-time{margin-top:10px}.customize-control.customize-control-date_time .date-time-fields .date-input.day{margin-right:0}.date-time-fields .date-input.month{width:auto;margin:0}.date-time-fields .date-input.day,.date-time-fields .date-input.hour,.date-time-fields .date-input.minute{width:46px}.date-time-fields .date-input.year{width:65px}.date-time-fields .date-input.meridian{width:auto;margin:0}.date-time-fields .time-row{margin-top:12px}#customize-control-changeset_preview_link{margin-top:6px}#customize-control-changeset_status{margin-bottom:0;padding-bottom:0}#customize-control-changeset_scheduled_date{box-sizing:content-box;width:100%;margin-left:-12px;padding:12px;background:#fff;border-bottom:1px solid #dcdcde;margin-bottom:0}#customize-control-changeset_scheduled_date .customize-control-description{font-style:normal}#customize-controls .customize-info.is-in-view,#customize-controls .customize-section-title.is-in-view{position:absolute;z-index:9;width:100%;box-shadow:0 1px 0 rgba(0,0,0,.1)}#customize-controls .customize-section-title.is-in-view{margin-top:0}#customize-controls .customize-info.is-in-view+.accordion-section{margin-top:15px}#customize-controls .customize-info.is-sticky,#customize-controls .customize-section-title.is-sticky{position:fixed;top:46px}#customize-controls .customize-info .accordion-section-title{background:#fff;color:#50575e;border-left:none;border-right:none;border-bottom:none;cursor:default}#customize-controls .customize-info .accordion-section-title:focus:after,#customize-controls .customize-info .accordion-section-title:hover:after,#customize-controls .customize-info.open .accordion-section-title:after{color:#2c3338}#customize-controls .customize-info .accordion-section-title:after{display:none}#customize-controls .customize-info .preview-notice{font-size:13px;line-height:1.9}#customize-controls .customize-info .panel-title,#customize-controls .customize-pane-child .customize-section-title h3,#customize-controls .customize-pane-child h3.customize-section-title,#customize-outer-theme-controls .customize-pane-child .customize-section-title h3,#customize-outer-theme-controls .customize-pane-child h3.customize-section-title{font-size:20px;font-weight:200;line-height:26px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-section-title span.customize-action{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-info .customize-help-toggle{position:absolute;top:4px;right:1px;padding:20px 20px 10px 10px;width:20px;height:20px;cursor:pointer;box-shadow:none;background:0 0;color:#50575e;border:none}#customize-controls .customize-info .customize-help-toggle:before{position:absolute;top:5px;left:6px}#customize-controls .customize-info .customize-help-toggle:focus,#customize-controls .customize-info .customize-help-toggle:hover,#customize-controls .customize-info.open .customize-help-toggle{color:#2271b1}#customize-controls .customize-info .customize-panel-description,#customize-controls .customize-info .customize-section-description,#customize-controls .no-widget-areas-rendered-notice,#customize-outer-theme-controls .customize-info .customize-section-description{color:#50575e;display:none;background:#fff;padding:12px 15px;border-top:1px solid #dcdcde}#customize-controls .customize-info .customize-panel-description.open+.no-widget-areas-rendered-notice{border-top:none}.no-widget-areas-rendered-notice{font-style:italic}.no-widget-areas-rendered-notice p:first-child{margin-top:0}.no-widget-areas-rendered-notice p:last-child{margin-bottom:0}#customize-controls .customize-info .customize-section-description{margin-bottom:15px}#customize-controls .customize-info .customize-panel-description p:first-child,#customize-controls .customize-info .customize-section-description p:first-child{margin-top:0}#customize-controls .customize-info .customize-panel-description p:last-child,#customize-controls .customize-info .customize-section-description p:last-child{margin-bottom:0}#customize-controls .current-panel .control-section>h3.accordion-section-title{padding-right:30px}#customize-outer-theme-controls .control-section,#customize-theme-controls .control-section{border:none}#customize-outer-theme-controls .accordion-section-title,#customize-theme-controls .accordion-section-title{color:#50575e;background-color:#fff;border-bottom:1px solid #dcdcde;border-left:4px solid #fff;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out}@media (prefers-reduced-motion:reduce){#customize-outer-theme-controls .accordion-section-title,#customize-theme-controls .accordion-section-title{transition:none}}#customize-controls #customize-theme-controls .customize-themes-panel .accordion-section-title{color:#50575e;background-color:#fff;border-left:4px solid #fff}#customize-outer-theme-controls .accordion-section-title:after,#customize-theme-controls .accordion-section-title:after{content:"\f345";color:#a7aaad}#customize-outer-theme-controls .accordion-section-content,#customize-theme-controls .accordion-section-content{color:#50575e;background:0 0}#customize-controls .control-section .accordion-section-title:focus,#customize-controls .control-section .accordion-section-title:hover,#customize-controls .control-section.open .accordion-section-title,#customize-controls .control-section:hover>.accordion-section-title{color:#2271b1;background:#f6f7f7;border-left-color:#2271b1}#accordion-section-themes+.control-section{border-top:1px solid #dcdcde}.js .control-section .accordion-section-title:focus,.js .control-section .accordion-section-title:hover,.js .control-section.open .accordion-section-title,.js .control-section:hover .accordion-section-title{background:#f6f7f7}#customize-outer-theme-controls .control-section .accordion-section-title:focus:after,#customize-outer-theme-controls .control-section .accordion-section-title:hover:after,#customize-outer-theme-controls .control-section.open .accordion-section-title:after,#customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,#customize-theme-controls .control-section .accordion-section-title:focus:after,#customize-theme-controls .control-section .accordion-section-title:hover:after,#customize-theme-controls .control-section.open .accordion-section-title:after,#customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#2271b1}#customize-theme-controls .control-section.open{border-bottom:1px solid #f0f0f1}#customize-outer-theme-controls .control-section.open .accordion-section-title,#customize-theme-controls .control-section.open .accordion-section-title{border-bottom-color:#f0f0f1!important}#customize-theme-controls .control-section:last-of-type.open,#customize-theme-controls .control-section:last-of-type>.accordion-section-title{border-bottom-color:#dcdcde}#customize-theme-controls .control-panel-content:not(.control-panel-nav_menus) .control-section:nth-child(2),#customize-theme-controls .control-panel-nav_menus .control-section-nav_menu,#customize-theme-controls .control-section-nav_menu_locations .accordion-section-title{border-top:1px solid #dcdcde}#customize-theme-controls .control-panel-nav_menus .control-section-nav_menu+.control-section-nav_menu{border-top:none}#customize-theme-controls>ul{margin:0}#customize-theme-controls .accordion-section-content{position:absolute;top:0;left:100%;width:100%;margin:0;padding:12px;box-sizing:border-box}#customize-info,#customize-theme-controls .customize-pane-child,#customize-theme-controls .customize-pane-parent{overflow:visible;width:100%;margin:0;padding:0;box-sizing:border-box;transition:.18s transform cubic-bezier(.645, .045, .355, 1)}@media (prefers-reduced-motion:reduce){#customize-info,#customize-theme-controls .customize-pane-child,#customize-theme-controls .customize-pane-parent{transition:none}}#customize-theme-controls .customize-pane-child.skip-transition{transition:none}#customize-info,#customize-theme-controls .customize-pane-parent{position:relative;visibility:visible;height:auto;max-height:none;overflow:auto;transform:none}#customize-theme-controls .customize-pane-child{position:absolute;top:0;left:0;visibility:hidden;height:0;max-height:none;overflow:hidden;transform:translateX(100%)}#customize-theme-controls .customize-pane-child.current-panel,#customize-theme-controls .customize-pane-child.open{transform:none}.in-sub-panel #customize-info,.in-sub-panel #customize-theme-controls .customize-pane-parent,.in-sub-panel.section-open #customize-theme-controls .customize-pane-child.current-panel,.section-open #customize-info,.section-open #customize-theme-controls .customize-pane-parent{visibility:hidden;height:0;overflow:hidden;transform:translateX(-100%)}#customize-theme-controls .customize-pane-child.busy,#customize-theme-controls .customize-pane-child.current-panel,#customize-theme-controls .customize-pane-child.open,.busy.section-open.in-sub-panel #customize-theme-controls .customize-pane-child.current-panel,.in-sub-panel #customize-info.busy,.in-sub-panel #customize-theme-controls .customize-pane-parent.busy,.section-open #customize-info.busy,.section-open #customize-theme-controls .customize-pane-parent.busy{visibility:visible;height:auto;overflow:auto}#customize-theme-controls .customize-pane-child.accordion-section-content,#customize-theme-controls .customize-pane-child.accordion-sub-container{display:block;overflow-x:hidden}#customize-theme-controls .customize-pane-child.accordion-section-content{padding:12px}#customize-theme-controls .customize-pane-child.menu li{position:static}.control-section-nav_menu .customize-section-description-container,.control-section-new_menu .customize-section-description-container,.customize-section-description-container{margin-bottom:15px}.control-section-nav_menu .customize-control,.control-section-new_menu .customize-control{margin-bottom:0}.customize-section-title{margin:-12px -12px 0;border-bottom:1px solid #dcdcde;background:#fff}div.customize-section-description{margin-top:22px}.customize-info div.customize-section-description{margin-top:0}div.customize-section-description p:first-child{margin-top:0}div.customize-section-description p:last-child{margin-bottom:0}#customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child{border-bottom:1px solid #dcdcde;padding:12px}.ios #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child{padding:12px 12px 13px}.customize-section-title h3,h3.customize-section-title{padding:10px 10px 12px 14px;margin:0;line-height:21px;color:#50575e}.accordion-sub-container.control-panel-content{display:none;position:absolute;top:0;width:100%}.accordion-sub-container.control-panel-content.busy{display:block}.current-panel .accordion-sub-container.control-panel-content{width:100%}.customize-controls-close{display:block;position:absolute;top:0;left:0;width:45px;height:41px;padding:0 2px 0 0;background:#f0f0f1;border:none;border-top:4px solid #f0f0f1;border-right:1px solid #dcdcde;color:#3c434a;text-align:left;cursor:pointer;transition:color .15s ease-in-out,border-color .15s ease-in-out,background .15s ease-in-out;box-sizing:content-box}.customize-panel-back,.customize-section-back{display:block;float:left;width:48px;height:71px;padding:0 24px 0 0;margin:0;background:#fff;border:none;border-right:1px solid #dcdcde;border-left:4px solid #fff;box-shadow:none;cursor:pointer;transition:color .15s ease-in-out,border-color .15s ease-in-out,background .15s ease-in-out}.customize-section-back{height:74px}.ios .customize-panel-back{display:none}.ios .expanded.in-sub-panel .customize-panel-back{display:block}#customize-controls .panel-meta.customize-info .accordion-section-title{margin-left:48px;border-left:none}#customize-controls .cannot-expand:hover .accordion-section-title,#customize-controls .panel-meta.customize-info .accordion-section-title:hover{background:#fff;color:#50575e;border-left-color:#fff}.customize-controls-close:focus,.customize-controls-close:hover,.customize-controls-preview-toggle:focus,.customize-controls-preview-toggle:hover{background:#fff;color:#2271b1;border-top-color:#2271b1;box-shadow:none;outline:1px solid transparent}#customize-theme-controls .accordion-section-title:focus .customize-action{outline:1px solid transparent;outline-offset:1px}.customize-panel-back:focus,.customize-panel-back:hover,.customize-section-back:focus,.customize-section-back:hover{color:#2271b1;background:#f6f7f7;border-left-color:#2271b1;box-shadow:none;outline:2px solid transparent;outline-offset:-2px}.customize-controls-close:before{font:normal 22px/45px dashicons;content:"\f335";position:relative;top:-3px;left:13px}.customize-panel-back:before,.customize-section-back:before{font:normal 20px/72px dashicons;content:"\f341";position:relative;left:9px}.wp-full-overlay-sidebar .wp-full-overlay-header{background-color:#f0f0f1;transition:padding ease-in-out .18s}.in-sub-panel .wp-full-overlay-sidebar .wp-full-overlay-header{padding-left:62px}p.customize-section-description{font-style:normal;margin-top:22px;margin-bottom:0}.customize-section-description ul{margin-left:1em}.customize-section-description ul>li{list-style:disc}.section-description-buttons{text-align:right}.customize-control{width:100%;float:left;clear:both;margin-bottom:12px}.customize-control input[type=email],.customize-control input[type=number],.customize-control input[type=password],.customize-control input[type=range],.customize-control input[type=search],.customize-control input[type=tel],.customize-control input[type=text],.customize-control input[type=url]{width:100%;margin:0}.customize-control-hidden{margin:0}.customize-control-textarea textarea{width:100%;resize:vertical}.customize-control select{width:100%}.customize-control select[multiple]{height:auto}.customize-control-title{display:block;font-size:14px;line-height:1.75;font-weight:600;margin-bottom:4px}.customize-control-description{display:block;font-style:italic;line-height:1.4;margin-top:0;margin-bottom:5px}.customize-section-description a.external-link:after{font:16px/11px dashicons;content:"\f504";top:3px;position:relative;padding-left:3px;display:inline-block;text-decoration:none}.customize-control-color .color-picker,.customize-control-upload div{line-height:28px}.customize-control .customize-inside-control-row{line-height:1.6;display:block;margin-left:24px;padding-top:6px;padding-bottom:6px}.customize-control-checkbox input,.customize-control-nav_menu_auto_add input,.customize-control-radio input{margin-right:4px;margin-left:-24px}.customize-control-radio{padding:5px 0 10px}.customize-control-radio .customize-control-title{margin-bottom:0;line-height:1.6}.customize-control-radio .customize-control-title+.customize-control-description{margin-top:7px}.customize-control-checkbox label,.customize-control-radio label{vertical-align:top}.customize-control .attachment-thumb.type-icon{float:left;margin:10px;width:auto}.customize-control .attachment-title{font-weight:600;margin:0;padding:5px 10px}.customize-control .attachment-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;padding:0 10px}.customize-control .attachment-meta-title{padding-top:7px}.customize-control .thumbnail-image,.customize-control .wp-media-wrapper.wp-video,.customize-control-header .current{line-height:0}.customize-control-site_icon .favicon-preview .browser-preview{vertical-align:top}.customize-control .thumbnail-image img{cursor:pointer}#customize-controls .thumbnail-audio .thumbnail{max-width:64px;max-height:64px;margin:10px;float:left}#available-menu-items .accordion-section-content .new-content-item,.customize-control-dropdown-pages .new-content-item{width:calc(100% - 30px);padding:8px 15px;position:absolute;bottom:0;z-index:10;background:#f0f0f1;display:flex}.customize-control-dropdown-pages .new-content-item{width:100%;padding:5px 0 5px 1px;position:relative}#available-menu-items .new-content-item .create-item-input,.customize-control-dropdown-pages .new-content-item .create-item-input{flex-grow:10}#available-menu-items .new-content-item .add-content,.customize-control-dropdown-pages .new-content-item .add-content{margin:2px 0 2px 6px;flex-grow:1}.customize-control-dropdown-pages .new-content-item .create-item-input.invalid{border:1px solid #d63638}.customize-control-dropdown-pages .add-new-toggle{margin-left:1px;font-weight:600;line-height:2.2}#customize-preview iframe{width:100%;height:100%;position:absolute}#customize-preview iframe+iframe{visibility:hidden}.wp-full-overlay-sidebar{background:#f0f0f1;border-right:1px solid #dcdcde}#customize-controls .customize-control-notifications-container{margin:4px 0 8px;padding:0;cursor:default}#customize-controls .customize-control-widget_form.has-error .widget .widget-top,.customize-control-nav_menu_item.has-error .menu-item-bar .menu-item-handle{box-shadow:inset 0 0 0 2px #d63638;transition:.15s box-shadow linear}#customize-controls .customize-control-notifications-container li.notice{list-style:none;margin:0 0 6px;padding:9px 14px;overflow:hidden}#customize-controls .customize-control-notifications-container .notice.is-dismissible{padding-right:38px}.customize-control-notifications-container li.notice:last-child{margin-bottom:0}#customize-controls .customize-control-nav_menu_item .customize-control-notifications-container{margin-top:0}#customize-controls .customize-control-widget_form .customize-control-notifications-container{margin-top:8px}.customize-control-text.has-error input{outline:2px solid #d63638}#customize-controls #customize-notifications-area{position:absolute;top:46px;width:100%;border-bottom:1px solid #dcdcde;display:block;padding:0;margin:0}.wp-full-overlay.collapsed #customize-controls #customize-notifications-area{display:none!important}#customize-controls #customize-notifications-area:not(.has-overlay-notifications),#customize-controls .customize-section-title>.customize-control-notifications-container:not(.has-overlay-notifications),#customize-controls .panel-meta>.customize-control-notifications-container:not(.has-overlay-notifications){max-height:210px;overflow-x:hidden;overflow-y:auto}#customize-controls #customize-notifications-area .notice,#customize-controls #customize-notifications-area>ul,#customize-controls .customize-section-title>.customize-control-notifications-container,#customize-controls .customize-section-title>.customize-control-notifications-container .notice,#customize-controls .panel-meta>.customize-control-notifications-container,#customize-controls .panel-meta>.customize-control-notifications-container .notice{margin:0}#customize-controls .customize-section-title>.customize-control-notifications-container,#customize-controls .panel-meta>.customize-control-notifications-container{border-top:1px solid #dcdcde}#customize-controls #customize-notifications-area .notice,#customize-controls .customize-section-title>.customize-control-notifications-container .notice,#customize-controls .panel-meta>.customize-control-notifications-container .notice{padding:9px 14px}#customize-controls #customize-notifications-area .notice.is-dismissible,#customize-controls .customize-section-title>.customize-control-notifications-container .notice.is-dismissible,#customize-controls .panel-meta>.customize-control-notifications-container .notice.is-dismissible{padding-right:38px}#customize-controls #customize-notifications-area .notice+.notice,#customize-controls .customize-section-title>.customize-control-notifications-container .notice+.notice,#customize-controls .panel-meta>.customize-control-notifications-container .notice+.notice{margin-top:1px}@keyframes customize-fade-in{0%{opacity:0}100%{opacity:1}}#customize-controls #customize-notifications-area .notice.notification-overlay,#customize-controls .notice.notification-overlay{margin:0;border-left:0}#customize-controls .customize-control-notifications-container.has-overlay-notifications{animation:customize-fade-in .5s;z-index:30}#customize-controls #customize-notifications-area .notice.notification-overlay .notification-message{clear:both;color:#1d2327;font-size:18px;font-style:normal;margin:0;padding:2em 0;text-align:center;width:100%;display:block;top:50%;position:relative}#customize-control-show_on_front.has-error{margin-bottom:0}#customize-control-show_on_front.has-error .customize-control-notifications-container{margin-top:12px}.accordion-section .dropdown{float:left;display:block;position:relative;cursor:pointer}.accordion-section .dropdown-content{overflow:hidden;float:left;min-width:30px;height:16px;line-height:16px;margin-right:16px;padding:4px 5px;border:2px solid #f0f0f1;-webkit-user-select:none;user-select:none}.customize-control .dropdown-arrow{position:absolute;top:0;bottom:0;right:0;width:20px;background:#f0f0f1}.customize-control .dropdown-arrow:after{content:"\f140";font:normal 20px/1 dashicons;speak:never;display:block;padding:0;text-indent:0;text-align:center;position:relative;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#2c3338}.customize-control .dropdown-status{color:#2c3338;background:#f0f0f1;display:none;max-width:112px}.customize-control-color .dropdown{margin-right:5px;margin-bottom:5px}.customize-control-color .dropdown .dropdown-content{background-color:#50575e;border:1px solid rgba(0,0,0,.15)}.customize-control-color .dropdown:hover .dropdown-content{border-color:rgba(0,0,0,.25)}.ios .wp-full-overlay{position:relative}.ios #customize-controls .wp-full-overlay-sidebar-content{-webkit-overflow-scrolling:touch}.customize-control .actions .button{margin-top:12px}.customize-control-header .actions,.customize-control-header .uploaded{margin-bottom:18px}.customize-control-header .default button:not(.random),.customize-control-header .uploaded button:not(.random){width:100%;padding:0;margin:0;background:0 0;border:none;color:inherit;cursor:pointer}.customize-control-header button img{display:block}.customize-control .attachment-media-view .default-button,.customize-control .attachment-media-view .remove-button,.customize-control .attachment-media-view .upload-button,.customize-control-header button.new,.customize-control-header button.remove{width:auto;height:auto;white-space:normal}.customize-control .attachment-media-view .thumbnail,.customize-control-header .current .container{overflow:hidden}.customize-control .attachment-media-view .button-add-media,.customize-control .attachment-media-view .placeholder,.customize-control-header .placeholder{width:100%;position:relative;text-align:center;cursor:default;border:1px dashed #c3c4c7;box-sizing:border-box;padding:9px 0;line-height:1.6}.customize-control .attachment-media-view .button-add-media{cursor:pointer;background-color:#f0f0f1;color:#2c3338}.customize-control .attachment-media-view .button-add-media:hover{background-color:#fff}.customize-control .attachment-media-view .button-add-media:focus{background-color:#fff;border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.customize-control-header .inner{display:none;position:absolute;width:100%;color:#50575e;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.customize-control-header .inner,.customize-control-header .inner .dashicons{line-height:20px;top:8px}.customize-control-header .list .inner,.customize-control-header .list .inner .dashicons{top:9px}.customize-control-header .header-view{position:relative;width:100%;margin-bottom:12px}.customize-control-header .header-view:last-child{margin-bottom:0}.customize-control-header .header-view:after{border:0}.customize-control-header .header-view.selected .choice:focus{outline:0}.customize-control-header .header-view.selected:after{content:"";position:absolute;height:auto;top:0;left:0;bottom:0;right:0;border:4px solid #72aee6;border-radius:2px}.customize-control-header .header-view.button.selected{border:0}.customize-control-header .uploaded .header-view .close{font-size:20px;color:#fff;background:#50575e;background:rgba(0,0,0,.5);position:absolute;top:10px;left:-999px;z-index:1;width:26px;height:26px;cursor:pointer}.customize-control-header .header-view .close:focus,.customize-control-header .header-view:hover .close{left:auto;right:10px}.customize-control-header .header-view .close:focus{outline:1px solid #4f94d4}.customize-control-header .random.placeholder{cursor:pointer;border-radius:2px;height:40px}.customize-control-header button.random{width:100%;height:auto;min-height:40px;white-space:normal}.customize-control-header button.random .dice{margin-top:4px}.customize-control-header .header-view:hover>button.random .dice,.customize-control-header .placeholder:hover .dice{animation:dice-color-change 3s infinite}.button-see-me{animation:bounce .7s 1;transform-origin:center bottom}@keyframes bounce{20%,53%,80%,from,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);transform:translate3d(0,0,0)}40%,43%{animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);transform:translate3d(0,-12px,0)}70%{animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);transform:translate3d(0,-6px,0)}90%{transform:translate3d(0,-1px,0)}}.customize-control-header .choice{position:relative;display:block;margin-bottom:9px}.customize-control-header .choice:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.customize-control-header .uploaded div:last-child>.choice{margin-bottom:0}.customize-control .attachment-media-view .thumbnail-image img,.customize-control-header img{max-width:100%}.customize-control .attachment-media-view .default-button,.customize-control .attachment-media-view .remove-button,.customize-control-header .remove{margin-right:8px}.customize-control-background_position .background-position-control .button-group{display:block}.customize-control-code_editor textarea{width:100%;font-family:Consolas,Monaco,monospace;font-size:12px;padding:6px 8px;tab-size:2}.customize-control-code_editor .CodeMirror,.customize-control-code_editor textarea{height:14em}#customize-controls .customize-section-description-container.section-meta.customize-info{border-bottom:none}#sub-accordion-section-custom_css .customize-control-notifications-container{margin-bottom:15px}#customize-control-custom_css textarea{display:block;height:500px}.customize-section-description-container+#customize-control-custom_css .customize-control-title{margin-left:12px}.customize-section-description-container+#customize-control-custom_css:last-child textarea{border-right:0;border-left:0;height:calc(100vh - 185px);resize:none}.customize-section-description-container+#customize-control-custom_css:last-child{margin-left:-12px;width:299px;width:calc(100% + 24px);margin-bottom:-12px}.customize-section-description-container+#customize-control-custom_css:last-child .CodeMirror{height:calc(100vh - 185px)}.CodeMirror-hints,.CodeMirror-lint-tooltip{z-index:500000!important}.customize-section-description-container+#customize-control-custom_css:last-child .customize-control-notifications-container{margin-left:12px;margin-right:12px}.theme-browser .theme.active .theme-actions,.wp-customizer .theme-browser .theme .theme-actions{padding:9px 15px;box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}@media screen and (max-width:640px){.customize-section-description-container+#customize-control-custom_css:last-child{margin-right:0}.customize-section-description-container+#customize-control-custom_css:last-child textarea{height:calc(100vh - 140px)}}#customize-theme-controls .control-panel-themes{border-bottom:none}#customize-theme-controls .control-panel-themes>.accordion-section-title,#customize-theme-controls .control-panel-themes>.accordion-section-title:hover{cursor:default;background:#fff;color:#50575e;border-top:1px solid #dcdcde;border-bottom:1px solid #dcdcde;border-left:none;border-right:none;margin:0 0 15px;padding-right:100px}#customize-theme-controls .control-section-themes .customize-themes-panel .accordion-section-title:first-child,#customize-theme-controls .control-section-themes .customize-themes-panel .accordion-section-title:first-child:hover{border-top:0}#customize-theme-controls .control-section-themes>.accordion-section-title,#customize-theme-controls .control-section-themes>.accordion-section-title:hover{margin:0 0 15px}#customize-controls .customize-themes-panel .accordion-section-title,#customize-controls .customize-themes-panel .accordion-section-title:hover{margin:15px -8px}#customize-controls .control-section-themes .accordion-section-title,#customize-controls .customize-themes-panel .accordion-section-title{padding-right:100px}#customize-controls .control-section-themes .accordion-section-title span.customize-action,#customize-controls .customize-section-title span.customize-action,.control-panel-themes .accordion-section-title span.customize-action{font-size:13px;display:block;font-weight:400}#customize-theme-controls .control-panel-themes .accordion-section-title .change-theme{position:absolute;right:10px;top:50%;margin-top:-14px;font-weight:400}#customize-notifications-area .notification-message button.switch-to-editor{display:block;margin-top:6px;font-weight:400}#customize-theme-controls .control-panel-themes>.accordion-section-title:after{display:none}.control-panel-themes .customize-themes-full-container{position:fixed;top:0;left:0;transition:.18s left ease-in-out;margin:0 0 0 300px;padding:71px 0 25px;overflow-y:scroll;width:calc(100% - 300px);height:calc(100% - 96px);background:#f0f0f1;z-index:20}@media (prefers-reduced-motion:reduce){.control-panel-themes .customize-themes-full-container{transition:none}}@media screen and (min-width:1670px){.control-panel-themes .customize-themes-full-container{width:82%;right:0;left:initial}}.modal-open .control-panel-themes .customize-themes-full-container{overflow-y:visible}#customize-header-actions .customize-controls-preview-toggle,#customize-header-actions .spinner,#customize-save-button-wrapper{transition:.18s margin ease-in-out}#customize-footer-actions,#customize-footer-actions .collapse-sidebar{bottom:0;transition:.18s bottom ease-in-out}.in-themes-panel:not(.animating) #customize-footer-actions,.in-themes-panel:not(.animating) #customize-header-actions .customize-controls-preview-toggle,.in-themes-panel:not(.animating) #customize-header-actions .spinner,.in-themes-panel:not(.animating) #customize-preview{visibility:hidden}.wp-full-overlay.in-themes-panel{background:#f0f0f1}.in-themes-panel #customize-header-actions .customize-controls-preview-toggle,.in-themes-panel #customize-header-actions .spinner,.in-themes-panel #customize-save-button-wrapper{margin-top:-46px}.in-themes-panel #customize-footer-actions,.in-themes-panel #customize-footer-actions .collapse-sidebar{bottom:-45px}.in-themes-panel.animating .control-panel-themes .filter-themes-count{display:none}.in-themes-panel.wp-full-overlay .wp-full-overlay-sidebar-content{bottom:0}.themes-filter-bar .feature-filter-toggle{float:right;margin:3px 0 3px 25px}.themes-filter-bar .feature-filter-toggle:before{content:"\f111";margin:0 5px 0 0;font:normal 16px/1 dashicons;vertical-align:text-bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.themes-filter-bar .feature-filter-toggle.open{background:#f0f0f1;border-color:#8c8f94;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}.themes-filter-bar .feature-filter-toggle .filter-count-filters{display:none}.filter-drawer{box-sizing:border-box;width:100%;position:absolute;top:46px;left:0;padding:25px 0 25px 25px;border-top:0;margin:0;background:#f0f0f1;border-bottom:1px solid #dcdcde}.filter-drawer .filter-group{margin:0 25px 0 0;width:calc((100% - 75px)/ 3);min-width:200px;max-width:320px}@keyframes themes-fade-in{0%{opacity:0}50%{opacity:0}100%{opacity:1}}.control-panel-themes .customize-themes-full-container.animate{animation:.6s themes-fade-in 1}.in-themes-panel:not(.animating) .control-panel-themes .filter-themes-count{animation:.6s themes-fade-in 1}.control-panel-themes .filter-themes-count{position:relative;float:right;line-height:2.6}.control-panel-themes .filter-themes-count .themes-displayed{font-weight:600;color:#50575e}.customize-themes-notifications{margin:0}.control-panel-themes .customize-themes-notifications .notice{margin:0 0 25px}.customize-themes-full-container .customize-themes-section{display:none!important;overflow:hidden}.customize-themes-full-container .customize-themes-section.current-section{display:list-item!important}.control-section .customize-section-text-before{padding:0 0 8px 15px;margin:15px 0 0;line-height:16px;border-bottom:1px solid #dcdcde;color:#50575e}.control-panel-themes .customize-themes-section-title{width:100%;background:#fff;box-shadow:none;outline:0;border-top:none;border-bottom:1px solid #dcdcde;border-left:4px solid #fff;border-right:none;cursor:pointer;padding:10px 15px;position:relative;text-align:left;font-size:14px;font-weight:600;color:#50575e;text-shadow:none}.control-panel-themes #accordion-section-installed_themes{border-top:1px solid #dcdcde}.control-panel-themes .theme-section{margin:0;position:relative}.control-panel-themes .customize-themes-section-title:focus,.control-panel-themes .customize-themes-section-title:hover{border-left-color:#2271b1;color:#2271b1;background:#f6f7f7}.customize-themes-section-title:not(.selected):after{content:"";display:block;position:absolute;top:9px;right:15px;width:18px;height:18px;border-radius:100%;border:1px solid #c3c4c7;background:#fff}.control-panel-themes .theme-section .customize-themes-section-title.selected:after{content:"\f147";font:16px/1 dashicons;box-sizing:border-box;width:20px;height:20px;padding:3px 3px 1px 1px;border-radius:100%;position:absolute;top:9px;right:15px;background:#2271b1;color:#fff}.control-panel-themes .customize-themes-section-title.selected{color:#2271b1}#customize-theme-controls .themes.accordion-section-content{position:relative;left:0;padding:0;width:100%}.loading .customize-themes-section .spinner{display:block;visibility:visible;position:relative;clear:both;width:20px;height:20px;left:calc(50% - 10px);float:none;margin-top:50px}.customize-themes-section .no-themes,.customize-themes-section .no-themes-local{display:none}.themes-section-installed_themes .theme .notice-success:not(.updated-message){display:none}.customize-control-theme .theme{width:100%;margin:0;border:1px solid #dcdcde;background:#fff}.customize-control-theme .theme .theme-actions,.customize-control-theme .theme .theme-name{background:#fff;border:none}.customize-control.customize-control-theme{box-sizing:border-box;width:25%;max-width:600px;margin:0 25px 25px 0;padding:0;clear:none}@media screen and (min-width:2101px){.customize-control.customize-control-theme{width:calc((100% - 125px)/ 5 - 1px)}}@media screen and (min-width:1601px) and (max-width:2100px){.customize-control.customize-control-theme{width:calc((100% - 100px)/ 4 - 1px)}}@media screen and (min-width:1201px) and (max-width:1600px){.customize-control.customize-control-theme{width:calc((100% - 75px)/ 3 - 1px)}}@media screen and (min-width:851px) and (max-width:1200px){.customize-control.customize-control-theme{width:calc((100% - 50px)/ 2 - 1px)}}@media screen and (max-width:850px){.customize-control.customize-control-theme{width:100%}}.wp-customizer .theme-browser .themes{padding:0 0 25px 25px;transition:.18s margin-top linear}.wp-customizer .theme-browser .theme .theme-actions{opacity:1}#customize-controls h3.theme-name{font-size:15px}#customize-controls .theme-overlay .theme-name{font-size:32px}.customize-preview-header.themes-filter-bar{position:fixed;top:0;left:300px;width:calc(100% - 300px);height:46px;background:#f0f0f1;z-index:10;padding:6px 25px;box-sizing:border-box;border-bottom:1px solid #dcdcde}@media screen and (min-width:1670px){.customize-preview-header.themes-filter-bar{width:82%;right:0;left:initial}}.themes-filter-bar .themes-filter-container{margin:0;padding:0}.themes-filter-bar .wp-filter-search{line-height:1.8;padding:6px 10px 6px 30px;max-width:100%;width:40%;min-width:300px;position:absolute;top:6px;left:25px;height:32px;margin:1px 0}@media screen and (max-height:540px),screen and (max-width:1018px){.customize-preview-header.themes-filter-bar{position:relative;left:0;width:100%;margin:0 0 25px}.filter-drawer{top:46px}.wp-customizer .theme-browser .themes{padding:0 0 25px 25px;overflow:hidden}.control-panel-themes .customize-themes-full-container{margin-top:0;padding:0;height:100%;width:calc(100% - 300px)}}@media screen and (max-width:1018px){.filter-drawer .filter-group{width:calc((100% - 50px)/ 2)}}@media screen and (max-width:900px){.customize-preview-header.themes-filter-bar{height:86px;padding-top:46px}.themes-filter-bar .wp-filter-search{width:calc(100% - 50px);margin:0;min-width:200px}.filter-drawer{top:86px}.control-panel-themes .filter-themes-count{float:left}}@media screen and (max-width:792px){.filter-drawer .filter-group{width:calc(100% - 25px)}}.control-panel-themes .customize-themes-mobile-back{display:none}@media screen and (max-width:600px){.filter-drawer{top:132px}.wp-full-overlay.showing-themes .control-panel-themes .filter-themes-count .filter-themes{display:block;float:right}.control-panel-themes .customize-themes-full-container{width:100%;margin:0;padding-top:46px;height:calc(100% - 46px);z-index:1;display:none}.showing-themes .control-panel-themes .customize-themes-full-container{display:block}.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back{display:block;position:fixed;top:0;left:0;background:#f0f0f1;color:#3c434a;border-radius:0;box-shadow:none;border:none;height:46px;width:100%;z-index:10;text-align:left;text-shadow:none;border-bottom:1px solid #dcdcde;border-left:4px solid transparent;margin:0;padding:0;font-size:0;overflow:hidden}.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:before{left:0;top:0;height:46px;width:26px;display:block;line-height:2.3;padding:0 8px;border-right:1px solid #dcdcde}.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:focus,.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:hover{color:#2271b1;background:#f6f7f7;border-left-color:#2271b1;box-shadow:none;outline:2px solid transparent;outline-offset:-2px}.showing-themes #customize-header-actions{display:none}#customize-controls{width:100%}}.wp-customizer .theme-overlay{display:none}.wp-customizer.modal-open .theme-overlay{position:fixed;left:0;top:0;right:0;bottom:0;z-index:109}.wp-customizer.modal-open #customize-header-actions,.wp-customizer.modal-open .control-panel-themes .customize-themes-section-title.selected:after,.wp-customizer.modal-open .control-panel-themes .filter-themes-count{z-index:-1}.wp-full-overlay.in-themes-panel.themes-panel-expanded #customize-controls .wp-full-overlay-sidebar-content{overflow:visible}.wp-customizer .theme-overlay .theme-backdrop{background:rgba(240,240,241,.75);position:fixed;z-index:110}.wp-customizer .theme-overlay .star-rating{float:left;margin-right:8px}.wp-customizer .theme-rating .num-ratings{line-height:20px}.wp-customizer .theme-overlay .theme-wrap{left:90px;right:90px;top:45px;bottom:45px;z-index:120}.wp-customizer .theme-overlay .theme-actions{text-align:right;padding:10px 25px 5px;background:#f0f0f1;border-top:1px solid #dcdcde}.wp-customizer .theme-overlay .theme-actions .theme-install.preview{margin-left:8px}.modal-open .in-themes-panel #customize-controls .wp-full-overlay-sidebar-content{overflow:visible}.wp-customizer .theme-header{background:#f0f0f1}.wp-customizer .theme-overlay .theme-header .close:before,.wp-customizer .theme-overlay .theme-header button{color:#3c434a}.wp-customizer .theme-overlay .theme-header .close:focus,.wp-customizer .theme-overlay .theme-header .close:hover,.wp-customizer .theme-overlay .theme-header .left:focus,.wp-customizer .theme-overlay .theme-header .left:hover,.wp-customizer .theme-overlay .theme-header .right:focus,.wp-customizer .theme-overlay .theme-header .right:hover{background:#fff;border-bottom:4px solid #2271b1;color:#2271b1}.wp-customizer .theme-overlay .theme-header .close:focus:before,.wp-customizer .theme-overlay .theme-header .close:hover:before{color:#2271b1}.wp-customizer .theme-overlay .theme-header button.disabled,.wp-customizer .theme-overlay .theme-header button.disabled:focus,.wp-customizer .theme-overlay .theme-header button.disabled:hover{border-bottom:none;background:0 0;color:#c3c4c7}@media (max-width:850px),(max-height:472px){.wp-customizer .theme-overlay .theme-wrap{left:0;right:0;top:0;bottom:0}.wp-customizer .theme-browser .themes{padding-right:25px}}body.cheatin{font-size:medium;height:auto;background:#fff;border:1px solid #c3c4c7;margin:50px auto 2em;padding:1em 2em;max-width:700px;min-width:0;box-shadow:0 1px 1px rgba(0,0,0,.04)}body.cheatin h1{border-bottom:1px solid #dcdcde;clear:both;color:#50575e;font-size:24px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;margin:30px 0 0;padding:0 0 7px}body.cheatin p{font-size:14px;line-height:1.5;margin:25px 0 20px}#customize-theme-controls .add-new-menu-item,#customize-theme-controls .add-new-widget{cursor:pointer;float:right;margin:0 0 0 10px;transition:all .2s;-webkit-user-select:none;user-select:none;outline:0}.reordering .add-new-menu-item,.reordering .add-new-widget{opacity:.2;pointer-events:none;cursor:not-allowed}#available-menu-items .new-content-item .add-content:before,.add-new-menu-item:before,.add-new-widget:before{content:"\f132";display:inline-block;position:relative;left:-2px;top:0;font:normal 20px/1 dashicons;vertical-align:middle;transition:all .2s;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.reorder-toggle{float:right;padding:5px 8px;text-decoration:none;cursor:pointer;outline:0}.reorder,.reordering .reorder-done{display:block;padding:5px 8px}.reorder-done,.reordering .reorder{display:none}.menu-item-reorder-nav button,.widget-reorder-nav span{position:relative;overflow:hidden;float:left;display:block;width:33px;height:43px;color:#8c8f94;text-indent:-9999px;cursor:pointer;outline:0}.menu-item-reorder-nav button{width:30px;height:40px;background:0 0;border:none;box-shadow:none}.menu-item-reorder-nav button:before,.widget-reorder-nav span:before{display:inline-block;position:absolute;top:0;right:0;width:100%;height:100%;font:normal 20px/43px dashicons;text-align:center;text-indent:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.menu-item-reorder-nav button:focus,.menu-item-reorder-nav button:hover,.widget-reorder-nav span:focus,.widget-reorder-nav span:hover{color:#1d2327;background:#f0f0f1}.menus-move-down:before,.move-widget-down:before{content:"\f347"}.menus-move-up:before,.move-widget-up:before{content:"\f343"}#customize-theme-controls .first-widget .move-widget-up,#customize-theme-controls .last-widget .move-widget-down,.move-down-disabled .menus-move-down,.move-left-disabled .menus-move-left,.move-right-disabled .menus-move-right,.move-up-disabled .menus-move-up{color:#dcdcde;background-color:#fff;cursor:default;pointer-events:none}.wp-full-overlay-main{right:auto;width:100%}.add-menu-toggle.open,.add-menu-toggle.open:hover,.adding-menu-items .add-new-menu-item,.adding-menu-items .add-new-menu-item:hover,body.adding-widget .add-new-widget,body.adding-widget .add-new-widget:hover{background:#f0f0f1;border-color:#8c8f94;color:#2c3338;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}#accordion-section-add_menu .add-new-menu-item.open:before,.adding-menu-items .add-new-menu-item:before,body.adding-widget .add-new-widget:before{transform:rotate(45deg)}#available-menu-items,#available-widgets{position:absolute;top:0;bottom:0;left:-301px;visibility:hidden;overflow-x:hidden;overflow-y:auto;width:300px;margin:0;z-index:4;background:#f0f0f1;transition:left .18s;border-right:1px solid #dcdcde}#available-menu-items .customize-section-title,#available-widgets .customize-section-title{display:none}#available-widgets-list{top:60px;position:absolute;overflow:auto;bottom:0;width:100%;border-top:1px solid #dcdcde}.no-widgets-found #available-widgets-list{border-top:none}#available-widgets-filter{position:fixed;top:0;z-index:1;width:300px;background:#f0f0f1}#available-menu-items-search .accordion-section-title,#available-widgets-filter{padding:13px 15px;box-sizing:border-box}#available-menu-items-search input,#available-widgets-filter input{width:100%;min-height:32px;margin:1px 0;padding:0 30px}#available-menu-items-search input::-ms-clear,#available-widgets-filter input::-ms-clear{display:none}#available-menu-items-search .search-icon,#available-widgets-filter .search-icon{display:block;position:absolute;top:15px;left:16px;width:30px;height:30px;line-height:2.1;text-align:center;color:#646970}#available-menu-items-search .clear-results,#available-widgets-filter .clear-results{position:absolute;top:15px;right:16px;width:30px;height:30px;padding:0;border:0;cursor:pointer;background:0 0;color:#d63638;text-decoration:none;outline:0}#available-menu-items-search .clear-results,#available-menu-items-search.loading .clear-results.is-visible,#available-widgets-filter .clear-results{display:none}#available-menu-items-search .clear-results.is-visible,#available-widgets-filter .clear-results.is-visible{display:block}#available-menu-items-search .clear-results:before,#available-widgets-filter .clear-results:before{content:"\f335";font:normal 20px/1 dashicons;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#available-menu-items-search .clear-results:focus,#available-menu-items-search .clear-results:hover,#available-widgets-filter .clear-results:focus,#available-widgets-filter .clear-results:hover{color:#d63638}#available-menu-items-search .clear-results:focus,#available-widgets-filter .clear-results:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}#available-menu-items-search .search-icon:after,#available-widgets-filter .search-icon:after,.themes-filter-bar .search-icon:after{content:"\f179";font:normal 20px/1 dashicons;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.themes-filter-bar .search-icon{position:absolute;top:7px;left:26px;z-index:1;color:#646970;height:30px;width:30px;line-height:2;text-align:center}.no-widgets-found-message{display:none;margin:0;padding:0 15px;line-height:inherit}.no-widgets-found .no-widgets-found-message{display:block}#available-menu-items .item-top,#available-menu-items .item-top:hover,#available-widgets .widget-top,#available-widgets .widget-top:hover{border:none;background:0 0;box-shadow:none}#available-menu-items .item-tpl,#available-widgets .widget-tpl{position:relative;padding:15px 15px 15px 60px;background:#fff;border-bottom:1px solid #dcdcde;border-left:4px solid #fff;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out;cursor:pointer;display:none}#available-menu-items .item,#available-widgets .widget{position:static}.customize-controls-preview-toggle{display:none}@media only screen and (max-width:782px){.wp-customizer .theme:not(.active):focus .theme-actions,.wp-customizer .theme:not(.active):hover .theme-actions{display:block}.wp-customizer .theme-browser .theme.active .theme-name span{display:inline}.customize-control-header button.random .dice{margin-top:0}.customize-control-checkbox .customize-inside-control-row,.customize-control-nav_menu_auto_add .customize-inside-control-row,.customize-control-radio .customize-inside-control-row{margin-left:32px}.customize-control-checkbox input,.customize-control-nav_menu_auto_add input,.customize-control-radio input{margin-left:-32px}.customize-control input[type=checkbox]+label+br,.customize-control input[type=radio]+label+br{line-height:2.5}.customize-control .date-time-fields select{height:39px}.date-time-fields .date-input.month{width:79px}.date-time-fields .date-input.day,.date-time-fields .date-input.hour,.date-time-fields .date-input.minute{width:55px}.date-time-fields .date-input.year{width:80px}#customize-control-changeset_preview_link a{bottom:16px}.preview-link-wrapper .customize-copy-preview-link.preview-control-element.button{bottom:10px}.media-widget-control .media-widget-buttons .button.change-media,.media-widget-control .media-widget-buttons .button.edit-media,.media-widget-control .media-widget-buttons .button.select-media{margin-top:12px}.wp-core-ui .themes-filter-bar .feature-filter-toggle{margin:3px 0 3px 25px}}@media screen and (max-width:1200px){.adding-menu-items .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.adding-widget .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.outer-section-open .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main{left:67%}}@media screen and (max-width:640px){.wp-full-overlay.collapsed #customize-controls{margin-left:0}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{bottom:0}.customize-controls-preview-toggle{display:block;position:absolute;top:0;left:48px;line-height:2.6;font-size:14px;padding:0 12px 4px;margin:0;height:45px;background:#f0f0f1;border:0;border-right:1px solid #dcdcde;border-top:4px solid #f0f0f1;color:#50575e;cursor:pointer;transition:color .1s ease-in-out,background .1s ease-in-out}#customize-footer-actions,.customize-controls-preview-toggle .controls,.preview-only .customize-controls-preview-toggle .preview,.preview-only .wp-full-overlay-sidebar-content{display:none}.preview-only #customize-save-button-wrapper{margin-top:-46px}.customize-controls-preview-toggle .controls:before,.customize-controls-preview-toggle .preview:before{font:normal 20px/1 dashicons;content:"\f177";position:relative;top:4px;margin-right:6px}.customize-controls-preview-toggle .controls:before{content:"\f540"}.preview-only #customize-controls{height:45px}.preview-only #customize-preview,.preview-only .customize-controls-preview-toggle .controls{display:block}.wp-core-ui.wp-customizer .button{min-height:30px;padding:0 14px;line-height:2;font-size:14px;vertical-align:middle}#customize-control-changeset_status .customize-inside-control-row{padding-top:15px}body.adding-menu-items div#available-menu-items,body.adding-widget div#available-widgets,body.outer-section-open div#customize-sidebar-outer-content{width:100%}#available-menu-items .customize-section-title,#available-widgets .customize-section-title{display:block;margin:0}#available-menu-items .customize-section-back,#available-widgets .customize-section-back{height:69px}#available-menu-items .customize-section-title h3,#available-widgets .customize-section-title h3{font-size:20px;font-weight:200;padding:9px 10px 12px 14px;margin:0;line-height:24px;color:#50575e;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#available-menu-items .customize-section-title .customize-action,#available-widgets .customize-section-title .customize-action{font-size:13px;display:block;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#available-widgets-filter{position:relative;width:100%;height:auto}#available-widgets-list{top:130px}#available-menu-items-search .clear-results,#available-menu-items-search .search-icon{top:85px}.reorder,.reordering .reorder-done{padding:8px}.wp-core-ui .themes-filter-bar .feature-filter-toggle{margin:0}}@media screen and (max-width:600px){.wp-full-overlay.expanded{margin-left:0}body.adding-menu-items div#available-menu-items,body.adding-widget div#available-widgets,body.outer-section-open div#customize-sidebar-outer-content{top:46px;z-index:10}body.wp-customizer .wp-full-overlay.expanded #customize-sidebar-outer-content{left:-100%}body.wp-customizer.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content{left:0}} \ No newline at end of file
+body{overflow:hidden;-webkit-text-size-adjust:100%}.customize-controls-close,.widget-control-actions a{text-decoration:none}#customize-controls h3{font-size:14px}#customize-controls img{max-width:100%}#customize-controls .submit{text-align:center}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked{background-color:rgba(0,0,0,.7);padding:25px}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .customize-changeset-locked-message{margin-left:auto;margin-right:auto;max-width:366px;min-height:64px;width:auto;padding:25px 25px 25px 109px;position:relative;background:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);line-height:1.5;overflow-y:auto;text-align:left;top:calc(50% - 100px)}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .currently-editing{margin-top:0}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .action-buttons{margin-bottom:0}.customize-changeset-locked-avatar{width:64px;position:absolute;left:25px;top:25px}.wp-core-ui.wp-customizer .customize-changeset-locked-message a.button{margin-right:10px;margin-top:0}#customize-controls .description{color:#50575e}#customize-save-button-wrapper{float:right;margin-top:9px}body:not(.ready) #customize-save-button-wrapper .save{visibility:hidden}#customize-save-button-wrapper .save{float:left;border-radius:3px;box-shadow:none;margin-top:0}#customize-save-button-wrapper .save:focus,#publish-settings:focus{box-shadow:0 1px 0 #2271b1,0 0 2px 1px #72aee6}#customize-save-button-wrapper .save.has-next-sibling{border-radius:3px 0 0 3px}#customize-sidebar-outer-content{position:absolute;top:0;bottom:0;left:0;visibility:hidden;overflow-x:hidden;overflow-y:auto;width:100%;margin:0;z-index:-1;background:#f0f0f1;transition:left .18s;border-right:1px solid #dcdcde;border-left:1px solid #dcdcde;height:100%}@media (prefers-reduced-motion:reduce){#customize-sidebar-outer-content{transition:none}}#customize-theme-controls .control-section-outer{display:none!important}#customize-outer-theme-controls .accordion-section-content{padding:12px}#customize-outer-theme-controls .accordion-section-content.open{display:block}.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content{visibility:visible;left:100%;transition:left .18s}@media (prefers-reduced-motion:reduce){.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content{transition:none}}.customize-outer-pane-parent{margin:0}.outer-section-open .wp-full-overlay.expanded .wp-full-overlay-main{left:300px;opacity:.4}.adding-menu-items .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.adding-menu-items .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main,.adding-widget .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.adding-widget .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main,.outer-section-open .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.outer-section-open .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main{left:64%}#customize-outer-theme-controls li.notice{padding-top:8px;padding-bottom:8px;margin-left:0;margin-bottom:10px}#publish-settings{text-indent:0;border-radius:0 3px 3px 0;padding-left:0;padding-right:0;box-shadow:none;font-size:14px;width:30px;float:left;transform:none;margin-top:0;line-height:2}body.trashing #customize-save-button-wrapper .save,body.trashing #publish-settings,body:not(.ready) #publish-settings{display:none}#customize-header-actions .spinner{margin-top:13px;margin-right:4px}.saving #customize-header-actions .spinner,.trashing #customize-header-actions .spinner{visibility:visible}#customize-header-actions{border-bottom:1px solid #dcdcde}#customize-controls .wp-full-overlay-sidebar-content{overflow-y:auto;overflow-x:hidden}.outer-section-open #customize-controls .wp-full-overlay-sidebar-content{background:#f0f0f1}#customize-controls .customize-info{border:none;border-bottom:1px solid #dcdcde;margin-bottom:15px}#customize-control-changeset_preview_link input,#customize-control-changeset_status .customize-inside-control-row{background-color:#fff;border-bottom:1px solid #dcdcde;box-sizing:content-box;width:100%;margin-left:-12px;padding-left:12px;padding-right:12px}#customize-control-trash_changeset{margin-top:20px}#customize-control-trash_changeset .button-link{position:relative;padding-left:24px;display:inline-block}#customize-control-trash_changeset .button-link:before{content:"\f182";font:normal 22px dashicons;text-decoration:none;position:absolute;left:0;top:-2px}#customize-controls .date-input:invalid{border-color:#d63638}#customize-control-changeset_status .customize-inside-control-row{padding-top:10px;padding-bottom:10px;font-weight:500}#customize-control-changeset_status .customize-inside-control-row:first-of-type{border-top:1px solid #dcdcde}#customize-control-changeset_status .customize-control-title{margin-bottom:6px}#customize-control-changeset_status input{margin-left:0}#customize-control-changeset_preview_link{position:relative;display:block}.preview-link-wrapper .customize-copy-preview-link.preview-control-element.button{margin:0;position:absolute;bottom:9px;right:0}.preview-link-wrapper{position:relative}.customize-copy-preview-link:after,.customize-copy-preview-link:before{content:"";height:28px;position:absolute;background:#fff;top:-1px}.customize-copy-preview-link:before{left:-10px;width:9px;opacity:.75}.customize-copy-preview-link:after{left:-5px;width:4px;opacity:.8}#customize-control-changeset_preview_link input{line-height:2.85714286;border-top:1px solid #dcdcde;border-left:none;border-right:none;text-indent:-999px;color:#fff;min-height:40px}#customize-control-changeset_preview_link label{position:relative;display:block}#customize-control-changeset_preview_link a{display:inline-block;position:absolute;white-space:nowrap;overflow:hidden;width:90%;bottom:14px;font-size:14px;text-decoration:none}#customize-control-changeset_preview_link a.disabled,#customize-control-changeset_preview_link a.disabled:active,#customize-control-changeset_preview_link a.disabled:focus,#customize-control-changeset_preview_link a.disabled:visited{color:#000;opacity:.4;cursor:default;outline:0;box-shadow:none}#sub-accordion-section-publish_settings .customize-section-description-container{display:none}#customize-controls .customize-info.section-meta{margin-bottom:15px}.customize-control-date_time .customize-control-description+.date-time-fields.includes-time{margin-top:10px}.customize-control.customize-control-date_time .date-time-fields .date-input.day{margin-right:0}.date-time-fields .date-input.month{width:auto;margin:0}.date-time-fields .date-input.day,.date-time-fields .date-input.hour,.date-time-fields .date-input.minute{width:46px}.date-time-fields .date-input.year{width:65px}.date-time-fields .date-input.meridian{width:auto;margin:0}.date-time-fields .time-row{margin-top:12px}#customize-control-changeset_preview_link{margin-top:6px}#customize-control-changeset_status{margin-bottom:0;padding-bottom:0}#customize-control-changeset_scheduled_date{box-sizing:content-box;width:100%;margin-left:-12px;padding:12px;background:#fff;border-bottom:1px solid #dcdcde;margin-bottom:0}#customize-control-changeset_scheduled_date .customize-control-description{font-style:normal}#customize-controls .customize-info.is-in-view,#customize-controls .customize-section-title.is-in-view{position:absolute;z-index:9;width:100%;box-shadow:0 1px 0 rgba(0,0,0,.1)}#customize-controls .customize-section-title.is-in-view{margin-top:0}#customize-controls .customize-info.is-in-view+.accordion-section{margin-top:15px}#customize-controls .customize-info.is-sticky,#customize-controls .customize-section-title.is-sticky{position:fixed;top:46px}#customize-controls .customize-info .accordion-section-title{background:#fff;color:#50575e;border-left:none;border-right:none;border-bottom:none;cursor:default}#customize-controls .customize-info .accordion-section-title:focus:after,#customize-controls .customize-info .accordion-section-title:hover:after,#customize-controls .customize-info.open .accordion-section-title:after{color:#2c3338}#customize-controls .customize-info .accordion-section-title:after{display:none}#customize-controls .customize-info .preview-notice{font-size:13px;line-height:1.9}#customize-controls .customize-info .panel-title,#customize-controls .customize-pane-child .customize-section-title h3,#customize-controls .customize-pane-child h3.customize-section-title,#customize-outer-theme-controls .customize-pane-child .customize-section-title h3,#customize-outer-theme-controls .customize-pane-child h3.customize-section-title{font-size:20px;font-weight:200;line-height:26px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-section-title span.customize-action{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-info .customize-help-toggle{position:absolute;top:4px;right:1px;padding:20px 20px 10px 10px;width:20px;height:20px;cursor:pointer;box-shadow:none;background:0 0;color:#50575e;border:none}#customize-controls .customize-info .customize-help-toggle:before{position:absolute;top:5px;left:6px}#customize-controls .customize-info .customize-help-toggle:focus,#customize-controls .customize-info .customize-help-toggle:hover,#customize-controls .customize-info.open .customize-help-toggle{color:#2271b1}#customize-controls .customize-info .customize-panel-description,#customize-controls .customize-info .customize-section-description,#customize-controls .no-widget-areas-rendered-notice,#customize-outer-theme-controls .customize-info .customize-section-description{color:#50575e;display:none;background:#fff;padding:12px 15px;border-top:1px solid #dcdcde}#customize-controls .customize-info .customize-panel-description.open+.no-widget-areas-rendered-notice{border-top:none}.no-widget-areas-rendered-notice{font-style:italic}.no-widget-areas-rendered-notice p:first-child{margin-top:0}.no-widget-areas-rendered-notice p:last-child{margin-bottom:0}#customize-controls .customize-info .customize-section-description{margin-bottom:15px}#customize-controls .customize-info .customize-panel-description p:first-child,#customize-controls .customize-info .customize-section-description p:first-child{margin-top:0}#customize-controls .customize-info .customize-panel-description p:last-child,#customize-controls .customize-info .customize-section-description p:last-child{margin-bottom:0}#customize-controls .current-panel .control-section>h3.accordion-section-title{padding-right:30px}#customize-outer-theme-controls .control-section,#customize-theme-controls .control-section{border:none}#customize-outer-theme-controls .accordion-section-title,#customize-theme-controls .accordion-section-title{color:#50575e;background-color:#fff;border-bottom:1px solid #dcdcde;border-left:4px solid #fff;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out}@media (prefers-reduced-motion:reduce){#customize-outer-theme-controls .accordion-section-title,#customize-theme-controls .accordion-section-title{transition:none}}#customize-controls #customize-theme-controls .customize-themes-panel .accordion-section-title{color:#50575e;background-color:#fff;border-left:4px solid #fff}#customize-outer-theme-controls .accordion-section-title:after,#customize-theme-controls .accordion-section-title:after{content:"\f345";color:#a7aaad}#customize-outer-theme-controls .accordion-section-content,#customize-theme-controls .accordion-section-content{color:#50575e;background:0 0}#customize-controls .control-section .accordion-section-title:focus,#customize-controls .control-section .accordion-section-title:hover,#customize-controls .control-section.open .accordion-section-title,#customize-controls .control-section:hover>.accordion-section-title{color:#2271b1;background:#f6f7f7;border-left-color:#2271b1}#accordion-section-themes+.control-section{border-top:1px solid #dcdcde}.js .control-section .accordion-section-title:focus,.js .control-section .accordion-section-title:hover,.js .control-section.open .accordion-section-title,.js .control-section:hover .accordion-section-title{background:#f6f7f7}#customize-outer-theme-controls .control-section .accordion-section-title:focus:after,#customize-outer-theme-controls .control-section .accordion-section-title:hover:after,#customize-outer-theme-controls .control-section.open .accordion-section-title:after,#customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,#customize-theme-controls .control-section .accordion-section-title:focus:after,#customize-theme-controls .control-section .accordion-section-title:hover:after,#customize-theme-controls .control-section.open .accordion-section-title:after,#customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#2271b1}#customize-theme-controls .control-section.open{border-bottom:1px solid #f0f0f1}#customize-outer-theme-controls .control-section.open .accordion-section-title,#customize-theme-controls .control-section.open .accordion-section-title{border-bottom-color:#f0f0f1!important}#customize-theme-controls .control-section:last-of-type.open,#customize-theme-controls .control-section:last-of-type>.accordion-section-title{border-bottom-color:#dcdcde}#customize-theme-controls .control-panel-content:not(.control-panel-nav_menus) .control-section:nth-child(2),#customize-theme-controls .control-panel-nav_menus .control-section-nav_menu,#customize-theme-controls .control-section-nav_menu_locations .accordion-section-title{border-top:1px solid #dcdcde}#customize-theme-controls .control-panel-nav_menus .control-section-nav_menu+.control-section-nav_menu{border-top:none}#customize-theme-controls>ul{margin:0}#customize-theme-controls .accordion-section-content{position:absolute;top:0;left:100%;width:100%;margin:0;padding:12px;box-sizing:border-box}#customize-info,#customize-theme-controls .customize-pane-child,#customize-theme-controls .customize-pane-parent{overflow:visible;width:100%;margin:0;padding:0;box-sizing:border-box;transition:.18s transform cubic-bezier(.645, .045, .355, 1)}@media (prefers-reduced-motion:reduce){#customize-info,#customize-theme-controls .customize-pane-child,#customize-theme-controls .customize-pane-parent{transition:none}}#customize-theme-controls .customize-pane-child.skip-transition{transition:none}#customize-info,#customize-theme-controls .customize-pane-parent{position:relative;visibility:visible;height:auto;max-height:none;overflow:auto;transform:none}#customize-theme-controls .customize-pane-child{position:absolute;top:0;left:0;visibility:hidden;height:0;max-height:none;overflow:hidden;transform:translateX(100%)}#customize-theme-controls .customize-pane-child.current-panel,#customize-theme-controls .customize-pane-child.open{transform:none}.in-sub-panel #customize-info,.in-sub-panel #customize-theme-controls .customize-pane-parent,.in-sub-panel.section-open #customize-theme-controls .customize-pane-child.current-panel,.section-open #customize-info,.section-open #customize-theme-controls .customize-pane-parent{visibility:hidden;height:0;overflow:hidden;transform:translateX(-100%)}#customize-theme-controls .customize-pane-child.busy,#customize-theme-controls .customize-pane-child.current-panel,#customize-theme-controls .customize-pane-child.open,.busy.section-open.in-sub-panel #customize-theme-controls .customize-pane-child.current-panel,.in-sub-panel #customize-info.busy,.in-sub-panel #customize-theme-controls .customize-pane-parent.busy,.section-open #customize-info.busy,.section-open #customize-theme-controls .customize-pane-parent.busy{visibility:visible;height:auto;overflow:auto}#customize-theme-controls .customize-pane-child.accordion-section-content,#customize-theme-controls .customize-pane-child.accordion-sub-container{display:block;overflow-x:hidden}#customize-theme-controls .customize-pane-child.accordion-section-content{padding:12px}#customize-theme-controls .customize-pane-child.menu li{position:static}.control-section-nav_menu .customize-section-description-container,.control-section-new_menu .customize-section-description-container,.customize-section-description-container{margin-bottom:15px}.control-section-nav_menu .customize-control,.control-section-new_menu .customize-control{margin-bottom:0}.customize-section-title{margin:-12px -12px 0;border-bottom:1px solid #dcdcde;background:#fff}div.customize-section-description{margin-top:22px}.customize-info div.customize-section-description{margin-top:0}div.customize-section-description p:first-child{margin-top:0}div.customize-section-description p:last-child{margin-bottom:0}#customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child{border-bottom:1px solid #dcdcde;padding:12px}.ios #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child{padding:12px 12px 13px}.customize-section-title h3,h3.customize-section-title{padding:10px 10px 12px 14px;margin:0;line-height:21px;color:#50575e}.accordion-sub-container.control-panel-content{display:none;position:absolute;top:0;width:100%}.accordion-sub-container.control-panel-content.busy{display:block}.current-panel .accordion-sub-container.control-panel-content{width:100%}.customize-controls-close{display:block;position:absolute;top:0;left:0;width:45px;height:41px;padding:0 2px 0 0;background:#f0f0f1;border:none;border-top:4px solid #f0f0f1;border-right:1px solid #dcdcde;color:#3c434a;text-align:left;cursor:pointer;transition:color .15s ease-in-out,border-color .15s ease-in-out,background .15s ease-in-out;box-sizing:content-box}.customize-panel-back,.customize-section-back{display:block;float:left;width:48px;height:71px;padding:0 24px 0 0;margin:0;background:#fff;border:none;border-right:1px solid #dcdcde;border-left:4px solid #fff;box-shadow:none;cursor:pointer;transition:color .15s ease-in-out,border-color .15s ease-in-out,background .15s ease-in-out}.customize-section-back{height:74px}.ios .customize-panel-back{display:none}.ios .expanded.in-sub-panel .customize-panel-back{display:block}#customize-controls .panel-meta.customize-info .accordion-section-title{margin-left:48px;border-left:none}#customize-controls .cannot-expand:hover .accordion-section-title,#customize-controls .panel-meta.customize-info .accordion-section-title:hover{background:#fff;color:#50575e;border-left-color:#fff}.customize-controls-close:focus,.customize-controls-close:hover,.customize-controls-preview-toggle:focus,.customize-controls-preview-toggle:hover{background:#fff;color:#2271b1;border-top-color:#2271b1;box-shadow:none;outline:1px solid transparent}#customize-theme-controls .accordion-section-title:focus .customize-action{outline:1px solid transparent;outline-offset:1px}.customize-panel-back:focus,.customize-panel-back:hover,.customize-section-back:focus,.customize-section-back:hover{color:#2271b1;background:#f6f7f7;border-left-color:#2271b1;box-shadow:none;outline:2px solid transparent;outline-offset:-2px}.customize-controls-close:before{font:normal 22px/45px dashicons;content:"\f335";position:relative;top:-3px;left:13px}.customize-panel-back:before,.customize-section-back:before{font:normal 20px/72px dashicons;content:"\f341";position:relative;left:9px}.wp-full-overlay-sidebar .wp-full-overlay-header{background-color:#f0f0f1;transition:padding ease-in-out .18s}.in-sub-panel .wp-full-overlay-sidebar .wp-full-overlay-header{padding-left:62px}p.customize-section-description{font-style:normal;margin-top:22px;margin-bottom:0}.customize-section-description ul{margin-left:1em}.customize-section-description ul>li{list-style:disc}.section-description-buttons{text-align:right}.customize-control{width:100%;float:left;clear:both;margin-bottom:12px}.customize-control input[type=email],.customize-control input[type=number],.customize-control input[type=password],.customize-control input[type=range],.customize-control input[type=search],.customize-control input[type=tel],.customize-control input[type=text],.customize-control input[type=url]{width:100%;margin:0}.customize-control-hidden{margin:0}.customize-control-textarea textarea{width:100%;resize:vertical}.customize-control select{width:100%}.customize-control select[multiple]{height:auto}.customize-control-title{display:block;font-size:14px;line-height:1.75;font-weight:600;margin-bottom:4px}.customize-control-description{display:block;font-style:italic;line-height:1.4;margin-top:0;margin-bottom:5px}.customize-section-description a.external-link:after{font:16px/11px dashicons;content:"\f504";top:3px;position:relative;padding-left:3px;display:inline-block;text-decoration:none}.customize-control-color .color-picker,.customize-control-upload div{line-height:28px}.customize-control .customize-inside-control-row{line-height:1.6;display:block;margin-left:24px;padding-top:6px;padding-bottom:6px}.customize-control-checkbox input,.customize-control-nav_menu_auto_add input,.customize-control-radio input{margin-right:4px;margin-left:-24px}.customize-control-radio{padding:5px 0 10px}.customize-control-radio .customize-control-title{margin-bottom:0;line-height:1.6}.customize-control-radio .customize-control-title+.customize-control-description{margin-top:7px}.customize-control-checkbox label,.customize-control-radio label{vertical-align:top}.customize-control .attachment-thumb.type-icon{float:left;margin:10px;width:auto}.customize-control .attachment-title{font-weight:600;margin:0;padding:5px 10px}.customize-control .attachment-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;padding:0 10px}.customize-control .attachment-meta-title{padding-top:7px}.customize-control .thumbnail-image,.customize-control .wp-media-wrapper.wp-video,.customize-control-header .current{line-height:0}.customize-control-site_icon .favicon-preview .browser-preview{vertical-align:top}.customize-control .thumbnail-image img{cursor:pointer}#customize-controls .thumbnail-audio .thumbnail{max-width:64px;max-height:64px;margin:10px;float:left}#available-menu-items .accordion-section-content .new-content-item-wrapper,.customize-control-dropdown-pages .new-content-item-wrapper{width:calc(100% - 30px);padding:8px 15px;position:absolute;bottom:0;z-index:10;background:#f0f0f1}.customize-control-dropdown-pages .new-content-item-wrapper{width:100%;padding:0;position:static}#available-menu-items .accordion-section-content .new-content-item,.customize-control-dropdown-pages .new-content-item{display:flex}.customize-control-dropdown-pages .new-content-item{width:100%;padding:5px 0 5px 1px;position:relative}.customize-control-dropdown-pages .new-content-item-wrapper .new-content-item{padding:0}.customize-control-dropdown-pages .new-content-item-wrapper .new-content-item label{line-height:1.6}#available-menu-items .new-content-item .create-item-input,.customize-control-dropdown-pages .new-content-item .create-item-input{flex-grow:10}#available-menu-items .new-content-item .add-content,.customize-control-dropdown-pages .new-content-item .add-content{margin:2px 0 2px 6px;flex-grow:1}.customize-control-dropdown-pages .new-content-item .create-item-input.invalid{border:1px solid #d63638}.customize-control-dropdown-pages .add-new-toggle{margin-left:1px;font-weight:600;line-height:2.2}#customize-preview iframe{width:100%;height:100%;position:absolute}#customize-preview iframe+iframe{visibility:hidden}.wp-full-overlay-sidebar{background:#f0f0f1;border-right:1px solid #dcdcde}#customize-controls .customize-control-notifications-container{margin:4px 0 8px;padding:0;cursor:default}#customize-controls .customize-control-widget_form.has-error .widget .widget-top,.customize-control-nav_menu_item.has-error .menu-item-bar .menu-item-handle{box-shadow:inset 0 0 0 2px #d63638;transition:.15s box-shadow linear}#customize-controls .customize-control-notifications-container li.notice{list-style:none;margin:0 0 6px;padding:9px 14px;overflow:hidden}#customize-controls .customize-control-notifications-container .notice.is-dismissible{padding-right:38px}.customize-control-notifications-container li.notice:last-child{margin-bottom:0}#customize-controls .customize-control-nav_menu_item .customize-control-notifications-container{margin-top:0}#customize-controls .customize-control-widget_form .customize-control-notifications-container{margin-top:8px}.customize-control-text.has-error input{outline:2px solid #d63638}#customize-controls #customize-notifications-area{position:absolute;top:46px;width:100%;border-bottom:1px solid #dcdcde;display:block;padding:0;margin:0}.wp-full-overlay.collapsed #customize-controls #customize-notifications-area{display:none!important}#customize-controls #customize-notifications-area:not(.has-overlay-notifications),#customize-controls .customize-section-title>.customize-control-notifications-container:not(.has-overlay-notifications),#customize-controls .panel-meta>.customize-control-notifications-container:not(.has-overlay-notifications){max-height:210px;overflow-x:hidden;overflow-y:auto}#customize-controls #customize-notifications-area .notice,#customize-controls #customize-notifications-area>ul,#customize-controls .customize-section-title>.customize-control-notifications-container,#customize-controls .customize-section-title>.customize-control-notifications-container .notice,#customize-controls .panel-meta>.customize-control-notifications-container,#customize-controls .panel-meta>.customize-control-notifications-container .notice{margin:0}#customize-controls .customize-section-title>.customize-control-notifications-container,#customize-controls .panel-meta>.customize-control-notifications-container{border-top:1px solid #dcdcde}#customize-controls #customize-notifications-area .notice,#customize-controls .customize-section-title>.customize-control-notifications-container .notice,#customize-controls .panel-meta>.customize-control-notifications-container .notice{padding:9px 14px}#customize-controls #customize-notifications-area .notice.is-dismissible,#customize-controls .customize-section-title>.customize-control-notifications-container .notice.is-dismissible,#customize-controls .panel-meta>.customize-control-notifications-container .notice.is-dismissible{padding-right:38px}#customize-controls #customize-notifications-area .notice+.notice,#customize-controls .customize-section-title>.customize-control-notifications-container .notice+.notice,#customize-controls .panel-meta>.customize-control-notifications-container .notice+.notice{margin-top:1px}@keyframes customize-fade-in{0%{opacity:0}100%{opacity:1}}#customize-controls #customize-notifications-area .notice.notification-overlay,#customize-controls .notice.notification-overlay{margin:0;border-left:0}#customize-controls .customize-control-notifications-container.has-overlay-notifications{animation:customize-fade-in .5s;z-index:30}#customize-controls #customize-notifications-area .notice.notification-overlay .notification-message{clear:both;color:#1d2327;font-size:18px;font-style:normal;margin:0;padding:2em 0;text-align:center;width:100%;display:block;top:50%;position:relative}#customize-control-show_on_front.has-error{margin-bottom:0}#customize-control-show_on_front.has-error .customize-control-notifications-container{margin-top:12px}.accordion-section .dropdown{float:left;display:block;position:relative;cursor:pointer}.accordion-section .dropdown-content{overflow:hidden;float:left;min-width:30px;height:16px;line-height:16px;margin-right:16px;padding:4px 5px;border:2px solid #f0f0f1;-webkit-user-select:none;user-select:none}.customize-control .dropdown-arrow{position:absolute;top:0;bottom:0;right:0;width:20px;background:#f0f0f1}.customize-control .dropdown-arrow:after{content:"\f140";font:normal 20px/1 dashicons;speak:never;display:block;padding:0;text-indent:0;text-align:center;position:relative;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#2c3338}.customize-control .dropdown-status{color:#2c3338;background:#f0f0f1;display:none;max-width:112px}.customize-control-color .dropdown{margin-right:5px;margin-bottom:5px}.customize-control-color .dropdown .dropdown-content{background-color:#50575e;border:1px solid rgba(0,0,0,.15)}.customize-control-color .dropdown:hover .dropdown-content{border-color:rgba(0,0,0,.25)}.ios .wp-full-overlay{position:relative}.ios #customize-controls .wp-full-overlay-sidebar-content{-webkit-overflow-scrolling:touch}.customize-control .actions .button{margin-top:12px}.customize-control-header .actions,.customize-control-header .uploaded{margin-bottom:18px}.customize-control-header .default button:not(.random),.customize-control-header .uploaded button:not(.random){width:100%;padding:0;margin:0;background:0 0;border:none;color:inherit;cursor:pointer}.customize-control-header button img{display:block}.customize-control .attachment-media-view .default-button,.customize-control .attachment-media-view .remove-button,.customize-control .attachment-media-view .upload-button,.customize-control-header button.new,.customize-control-header button.remove{width:auto;height:auto;white-space:normal}.customize-control .attachment-media-view .thumbnail,.customize-control-header .current .container{overflow:hidden}.customize-control .attachment-media-view .button-add-media,.customize-control .attachment-media-view .placeholder,.customize-control-header .placeholder{width:100%;position:relative;text-align:center;cursor:default;border:1px dashed #c3c4c7;box-sizing:border-box;padding:9px 0;line-height:1.6}.customize-control .attachment-media-view .button-add-media{cursor:pointer;background-color:#f0f0f1;color:#2c3338}.customize-control .attachment-media-view .button-add-media:hover{background-color:#fff}.customize-control .attachment-media-view .button-add-media:focus{background-color:#fff;border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.customize-control-header .inner{display:none;position:absolute;width:100%;color:#50575e;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.customize-control-header .inner,.customize-control-header .inner .dashicons{line-height:20px;top:8px}.customize-control-header .list .inner,.customize-control-header .list .inner .dashicons{top:9px}.customize-control-header .header-view{position:relative;width:100%;margin-bottom:12px}.customize-control-header .header-view:last-child{margin-bottom:0}.customize-control-header .header-view:after{border:0}.customize-control-header .header-view.selected .choice:focus{outline:0}.customize-control-header .header-view.selected:after{content:"";position:absolute;height:auto;top:0;left:0;bottom:0;right:0;border:4px solid #72aee6;border-radius:2px}.customize-control-header .header-view.button.selected{border:0}.customize-control-header .uploaded .header-view .close{font-size:20px;color:#fff;background:#50575e;background:rgba(0,0,0,.5);position:absolute;top:10px;left:-999px;z-index:1;width:26px;height:26px;cursor:pointer}.customize-control-header .header-view .close:focus,.customize-control-header .header-view:hover .close{left:auto;right:10px}.customize-control-header .header-view .close:focus{outline:1px solid #4f94d4}.customize-control-header .random.placeholder{cursor:pointer;border-radius:2px;height:40px}.customize-control-header button.random{width:100%;height:auto;min-height:40px;white-space:normal}.customize-control-header button.random .dice{margin-top:4px}.customize-control-header .header-view:hover>button.random .dice,.customize-control-header .placeholder:hover .dice{animation:dice-color-change 3s infinite}.button-see-me{animation:bounce .7s 1;transform-origin:center bottom}@keyframes bounce{20%,53%,80%,from,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);transform:translate3d(0,0,0)}40%,43%{animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);transform:translate3d(0,-12px,0)}70%{animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);transform:translate3d(0,-6px,0)}90%{transform:translate3d(0,-1px,0)}}.customize-control-header .choice{position:relative;display:block;margin-bottom:9px}.customize-control-header .choice:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.customize-control-header .uploaded div:last-child>.choice{margin-bottom:0}.customize-control .attachment-media-view .thumbnail-image img,.customize-control-header img{max-width:100%}.customize-control .attachment-media-view .default-button,.customize-control .attachment-media-view .remove-button,.customize-control-header .remove{margin-right:8px}.customize-control-background_position .background-position-control .button-group{display:block}.customize-control-code_editor textarea{width:100%;font-family:Consolas,Monaco,monospace;font-size:12px;padding:6px 8px;tab-size:2}.customize-control-code_editor .CodeMirror,.customize-control-code_editor textarea{height:14em}#customize-controls .customize-section-description-container.section-meta.customize-info{border-bottom:none}#sub-accordion-section-custom_css .customize-control-notifications-container{margin-bottom:15px}#customize-control-custom_css textarea{display:block;height:500px}.customize-section-description-container+#customize-control-custom_css .customize-control-title{margin-left:12px}.customize-section-description-container+#customize-control-custom_css:last-child textarea{border-right:0;border-left:0;height:calc(100vh - 185px);resize:none}.customize-section-description-container+#customize-control-custom_css:last-child{margin-left:-12px;width:299px;width:calc(100% + 24px);margin-bottom:-12px}.customize-section-description-container+#customize-control-custom_css:last-child .CodeMirror{height:calc(100vh - 185px)}.CodeMirror-hints,.CodeMirror-lint-tooltip{z-index:500000!important}.customize-section-description-container+#customize-control-custom_css:last-child .customize-control-notifications-container{margin-left:12px;margin-right:12px}.theme-browser .theme.active .theme-actions,.wp-customizer .theme-browser .theme .theme-actions{padding:9px 15px;box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}@media screen and (max-width:640px){.customize-section-description-container+#customize-control-custom_css:last-child{margin-right:0}.customize-section-description-container+#customize-control-custom_css:last-child textarea{height:calc(100vh - 140px)}}#customize-theme-controls .control-panel-themes{border-bottom:none}#customize-theme-controls .control-panel-themes>.accordion-section-title,#customize-theme-controls .control-panel-themes>.accordion-section-title:hover{cursor:default;background:#fff;color:#50575e;border-top:1px solid #dcdcde;border-bottom:1px solid #dcdcde;border-left:none;border-right:none;margin:0 0 15px;padding-right:100px}#customize-theme-controls .control-section-themes .customize-themes-panel .accordion-section-title:first-child,#customize-theme-controls .control-section-themes .customize-themes-panel .accordion-section-title:first-child:hover{border-top:0}#customize-theme-controls .control-section-themes>.accordion-section-title,#customize-theme-controls .control-section-themes>.accordion-section-title:hover{margin:0 0 15px}#customize-controls .customize-themes-panel .accordion-section-title,#customize-controls .customize-themes-panel .accordion-section-title:hover{margin:15px -8px}#customize-controls .control-section-themes .accordion-section-title,#customize-controls .customize-themes-panel .accordion-section-title{padding-right:100px}#customize-controls .control-section-themes .accordion-section-title span.customize-action,#customize-controls .customize-section-title span.customize-action,.control-panel-themes .accordion-section-title span.customize-action{font-size:13px;display:block;font-weight:400}#customize-theme-controls .control-panel-themes .accordion-section-title .change-theme{position:absolute;right:10px;top:50%;margin-top:-14px;font-weight:400}#customize-notifications-area .notification-message button.switch-to-editor{display:block;margin-top:6px;font-weight:400}#customize-theme-controls .control-panel-themes>.accordion-section-title:after{display:none}.control-panel-themes .customize-themes-full-container{position:fixed;top:0;left:0;transition:.18s left ease-in-out;margin:0 0 0 300px;padding:71px 0 25px;overflow-y:scroll;width:calc(100% - 300px);height:calc(100% - 96px);background:#f0f0f1;z-index:20}@media (prefers-reduced-motion:reduce){.control-panel-themes .customize-themes-full-container{transition:none}}@media screen and (min-width:1670px){.control-panel-themes .customize-themes-full-container{width:82%;right:0;left:initial}}.modal-open .control-panel-themes .customize-themes-full-container{overflow-y:visible}#customize-header-actions .customize-controls-preview-toggle,#customize-header-actions .spinner,#customize-save-button-wrapper{transition:.18s margin ease-in-out}#customize-footer-actions,#customize-footer-actions .collapse-sidebar{bottom:0;transition:.18s bottom ease-in-out}.in-themes-panel:not(.animating) #customize-footer-actions,.in-themes-panel:not(.animating) #customize-header-actions .customize-controls-preview-toggle,.in-themes-panel:not(.animating) #customize-header-actions .spinner,.in-themes-panel:not(.animating) #customize-preview{visibility:hidden}.wp-full-overlay.in-themes-panel{background:#f0f0f1}.in-themes-panel #customize-header-actions .customize-controls-preview-toggle,.in-themes-panel #customize-header-actions .spinner,.in-themes-panel #customize-save-button-wrapper{margin-top:-46px}.in-themes-panel #customize-footer-actions,.in-themes-panel #customize-footer-actions .collapse-sidebar{bottom:-45px}.in-themes-panel.animating .control-panel-themes .filter-themes-count{display:none}.in-themes-panel.wp-full-overlay .wp-full-overlay-sidebar-content{bottom:0}.themes-filter-bar .feature-filter-toggle:before{content:"\f111";margin:0 5px 0 0;font:normal 16px/1 dashicons;vertical-align:text-bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.themes-filter-bar .feature-filter-toggle.open{background:#f0f0f1;border-color:#8c8f94;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}.themes-filter-bar .feature-filter-toggle .filter-count-filters{display:none}.filter-drawer{box-sizing:border-box;width:100%;position:absolute;top:46px;left:0;padding:25px 0 25px 25px;border-top:0;margin:0;background:#f0f0f1;border-bottom:1px solid #dcdcde}.filter-drawer .filter-group{margin:0 25px 0 0;width:calc((100% - 75px)/ 3);min-width:200px;max-width:320px}@keyframes themes-fade-in{0%{opacity:0}50%{opacity:0}100%{opacity:1}}.control-panel-themes .customize-themes-full-container.animate{animation:.6s themes-fade-in 1}.in-themes-panel:not(.animating) .control-panel-themes .filter-themes-count{animation:.6s themes-fade-in 1}.control-panel-themes .filter-themes-count .themes-displayed{font-weight:600;color:#50575e}.customize-themes-notifications{margin:0}.control-panel-themes .customize-themes-notifications .notice{margin:0 0 25px}.customize-themes-full-container .customize-themes-section{display:none!important;overflow:hidden}.customize-themes-full-container .customize-themes-section.current-section{display:list-item!important}.control-section .customize-section-text-before{padding:0 0 8px 15px;margin:15px 0 0;line-height:16px;border-bottom:1px solid #dcdcde;color:#50575e}.control-panel-themes .customize-themes-section-title{width:100%;background:#fff;box-shadow:none;outline:0;border-top:none;border-bottom:1px solid #dcdcde;border-left:4px solid #fff;border-right:none;cursor:pointer;padding:10px 15px;position:relative;text-align:left;font-size:14px;font-weight:600;color:#50575e;text-shadow:none}.control-panel-themes #accordion-section-installed_themes{border-top:1px solid #dcdcde}.control-panel-themes .theme-section{margin:0;position:relative}.control-panel-themes .customize-themes-section-title:focus,.control-panel-themes .customize-themes-section-title:hover{border-left-color:#2271b1;color:#2271b1;background:#f6f7f7}.customize-themes-section-title:not(.selected):after{content:"";display:block;position:absolute;top:9px;right:15px;width:18px;height:18px;border-radius:100%;border:1px solid #c3c4c7;background:#fff}.control-panel-themes .theme-section .customize-themes-section-title.selected:after{content:"\f147";font:16px/1 dashicons;box-sizing:border-box;width:20px;height:20px;padding:3px 3px 1px 1px;border-radius:100%;position:absolute;top:9px;right:15px;background:#2271b1;color:#fff}.control-panel-themes .customize-themes-section-title.selected{color:#2271b1}#customize-theme-controls .themes.accordion-section-content{position:relative;left:0;padding:0;width:100%}.loading .customize-themes-section .spinner{display:block;visibility:visible;position:relative;clear:both;width:20px;height:20px;left:calc(50% - 10px);float:none;margin-top:50px}.customize-themes-section .no-themes,.customize-themes-section .no-themes-local{display:none}.themes-section-installed_themes .theme .notice-success:not(.updated-message){display:none}.customize-control-theme .theme{width:100%;margin:0;border:1px solid #dcdcde;background:#fff}.customize-control-theme .theme .theme-actions,.customize-control-theme .theme .theme-name{background:#fff;border:none}.customize-control.customize-control-theme{box-sizing:border-box;width:25%;max-width:600px;margin:0 25px 25px 0;padding:0;clear:none}@media screen and (min-width:2101px){.customize-control.customize-control-theme{width:calc((100% - 125px)/ 5 - 1px)}}@media screen and (min-width:1601px) and (max-width:2100px){.customize-control.customize-control-theme{width:calc((100% - 100px)/ 4 - 1px)}}@media screen and (min-width:1201px) and (max-width:1600px){.customize-control.customize-control-theme{width:calc((100% - 75px)/ 3 - 1px)}}@media screen and (min-width:851px) and (max-width:1200px){.customize-control.customize-control-theme{width:calc((100% - 50px)/ 2 - 1px)}}@media screen and (max-width:850px){.customize-control.customize-control-theme{width:100%}}.wp-customizer .theme-browser .themes{padding:0 0 25px 25px;transition:.18s margin-top linear}.wp-customizer .theme-browser .theme .theme-actions{opacity:1}#customize-controls h3.theme-name{font-size:15px}#customize-controls .theme-overlay .theme-name{font-size:32px}.customize-preview-header.themes-filter-bar{position:fixed;top:0;left:300px;width:calc(100% - 300px);height:46px;background:#f0f0f1;z-index:10;padding:6px 25px;box-sizing:border-box;border-bottom:1px solid #dcdcde}.customize-preview-header.themes-filter-bar,.customize-preview-header.themes-filter-bar .search-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.customize-preview-header.themes-filter-bar .search-form-input{position:relative}.customize-preview-header .filter-themes-wrapper{display:grid;align-items:center;gap:10px;grid-template-columns:auto 1fr}.customize-preview-header .filter-themes-wrapper .filter-themes-count{justify-self:end}@media screen and (min-width:1670px){.customize-preview-header.themes-filter-bar{width:82%;right:0;left:initial}}.themes-filter-bar .themes-filter-container{margin:0;padding:0;display:flex;align-items:center;gap:10px}.themes-filter-bar .wp-filter-search{line-height:1.8;padding:6px 10px 6px 30px;max-width:100%;width:40%;min-width:300px;height:32px;margin:1px 0;top:0;left:0}@media screen and (max-height:540px),screen and (max-width:1018px){.customize-preview-header.themes-filter-bar{position:relative;left:0;width:100%;margin:0 0 25px}.filter-drawer{top:46px}.wp-customizer .theme-browser .themes{padding:0 0 25px 25px;overflow:hidden}.control-panel-themes .customize-themes-full-container{margin-top:0;padding:0;height:100%;width:calc(100% - 300px)}}@media screen and (max-width:1018px){.filter-drawer .filter-group{width:calc((100% - 50px)/ 2)}}@media screen and (max-width:960px){.customize-preview-header.themes-filter-bar{height:96px}}@media screen and (max-width:900px){.themes-filter-bar .wp-filter-search{width:100%;margin:0;min-width:200px}.customize-preview-header.themes-filter-bar,.customize-preview-header.themes-filter-bar .search-form .themes-filter-bar .themes-filter-container{display:grid;gap:4px}.customize-preview-header.themes-filter-bar .search-form-input{display:flex;flex-grow:1}.filter-drawer{top:86px}.control-panel-themes .filter-themes-count{float:left}}@media screen and (max-width:792px){.filter-drawer .filter-group{width:calc(100% - 25px)}}.control-panel-themes .customize-themes-mobile-back{display:none}@media screen and (max-width:600px){.filter-drawer{top:132px}.wp-full-overlay.showing-themes .control-panel-themes .filter-themes-count .filter-themes{display:block;float:right}.control-panel-themes .customize-themes-full-container{width:100%;margin:0;padding-top:46px;height:calc(100% - 46px);z-index:1;display:none}.showing-themes .control-panel-themes .customize-themes-full-container{display:block}.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back{display:block;position:fixed;top:0;left:0;background:#f0f0f1;color:#3c434a;border-radius:0;box-shadow:none;border:none;height:46px;width:100%;z-index:10;text-align:left;text-shadow:none;border-bottom:1px solid #dcdcde;border-left:4px solid transparent;margin:0;padding:0;font-size:0;overflow:hidden}.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:before{left:0;top:0;height:46px;width:26px;display:block;line-height:2.3;padding:0 8px;border-right:1px solid #dcdcde}.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:focus,.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:hover{color:#2271b1;background:#f6f7f7;border-left-color:#2271b1;box-shadow:none;outline:2px solid transparent;outline-offset:-2px}.showing-themes #customize-header-actions{display:none}#customize-controls{width:100%}}.wp-customizer .theme-overlay{display:none}.wp-customizer.modal-open .theme-overlay{position:fixed;left:0;top:0;right:0;bottom:0;z-index:109}.wp-customizer.modal-open #customize-header-actions,.wp-customizer.modal-open .control-panel-themes .customize-themes-section-title.selected:after,.wp-customizer.modal-open .control-panel-themes .filter-themes-count{z-index:-1}.wp-full-overlay.in-themes-panel.themes-panel-expanded #customize-controls .wp-full-overlay-sidebar-content{overflow:visible}.wp-customizer .theme-overlay .theme-backdrop{background:rgba(240,240,241,.75);position:fixed;z-index:110}.wp-customizer .theme-overlay .star-rating{float:left;margin-right:8px}.wp-customizer .theme-rating .num-ratings{line-height:20px}.wp-customizer .theme-overlay .theme-wrap{left:90px;right:90px;top:45px;bottom:45px;z-index:120}.wp-customizer .theme-overlay .theme-actions{text-align:right;padding:10px 25px 5px;background:#f0f0f1;border-top:1px solid #dcdcde}.wp-customizer .theme-overlay .theme-actions .theme-install.preview{margin-left:8px}.modal-open .in-themes-panel #customize-controls .wp-full-overlay-sidebar-content{overflow:visible}.wp-customizer .theme-header{background:#f0f0f1}.wp-customizer .theme-overlay .theme-header .close:before,.wp-customizer .theme-overlay .theme-header button{color:#3c434a}.wp-customizer .theme-overlay .theme-header .close:focus,.wp-customizer .theme-overlay .theme-header .close:hover,.wp-customizer .theme-overlay .theme-header .left:focus,.wp-customizer .theme-overlay .theme-header .left:hover,.wp-customizer .theme-overlay .theme-header .right:focus,.wp-customizer .theme-overlay .theme-header .right:hover{background:#fff;border-bottom:4px solid #2271b1;color:#2271b1}.wp-customizer .theme-overlay .theme-header .close:focus:before,.wp-customizer .theme-overlay .theme-header .close:hover:before{color:#2271b1}.wp-customizer .theme-overlay .theme-header button.disabled,.wp-customizer .theme-overlay .theme-header button.disabled:focus,.wp-customizer .theme-overlay .theme-header button.disabled:hover{border-bottom:none;background:0 0;color:#c3c4c7}@media (max-width:850px),(max-height:472px){.wp-customizer .theme-overlay .theme-wrap{left:0;right:0;top:0;bottom:0}.wp-customizer .theme-browser .themes{padding-right:25px}}body.cheatin{font-size:medium;height:auto;background:#fff;border:1px solid #c3c4c7;margin:50px auto 2em;padding:1em 2em;max-width:700px;min-width:0;box-shadow:0 1px 1px rgba(0,0,0,.04)}body.cheatin h1{border-bottom:1px solid #dcdcde;clear:both;color:#50575e;font-size:24px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;margin:30px 0 0;padding:0 0 7px}body.cheatin p{font-size:14px;line-height:1.5;margin:25px 0 20px}#customize-theme-controls .add-new-menu-item,#customize-theme-controls .add-new-widget{cursor:pointer;float:right;margin:0 0 0 10px;transition:all .2s;-webkit-user-select:none;user-select:none;outline:0}.reordering .add-new-menu-item,.reordering .add-new-widget{opacity:.2;pointer-events:none;cursor:not-allowed}#available-menu-items .new-content-item .add-content:before,.add-new-menu-item:before,.add-new-widget:before{content:"\f132";display:inline-block;position:relative;left:-2px;top:0;font:normal 20px/1 dashicons;vertical-align:middle;transition:all .2s;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.reorder-toggle{float:right;padding:5px 8px;text-decoration:none;cursor:pointer;outline:0}.reorder,.reordering .reorder-done{display:block;padding:5px 8px}.reorder-done,.reordering .reorder{display:none}.menu-item-reorder-nav button,.widget-reorder-nav span{position:relative;overflow:hidden;float:left;display:block;width:33px;height:43px;color:#8c8f94;text-indent:-9999px;cursor:pointer;outline:0}.menu-item-reorder-nav button{width:30px;height:40px;background:0 0;border:none;box-shadow:none}.menu-item-reorder-nav button:before,.widget-reorder-nav span:before{display:inline-block;position:absolute;top:0;right:0;width:100%;height:100%;font:normal 20px/43px dashicons;text-align:center;text-indent:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.menu-item-reorder-nav button:focus,.menu-item-reorder-nav button:hover,.widget-reorder-nav span:focus,.widget-reorder-nav span:hover{color:#1d2327;background:#f0f0f1}.menus-move-down:before,.move-widget-down:before{content:"\f347"}.menus-move-up:before,.move-widget-up:before{content:"\f343"}#customize-theme-controls .first-widget .move-widget-up,#customize-theme-controls .last-widget .move-widget-down,.move-down-disabled .menus-move-down,.move-left-disabled .menus-move-left,.move-right-disabled .menus-move-right,.move-up-disabled .menus-move-up{color:#dcdcde;background-color:#fff;cursor:default;pointer-events:none}.wp-full-overlay-main{right:auto;width:100%}.add-menu-toggle.open,.add-menu-toggle.open:hover,.adding-menu-items .add-new-menu-item,.adding-menu-items .add-new-menu-item:hover,body.adding-widget .add-new-widget,body.adding-widget .add-new-widget:hover{background:#f0f0f1;border-color:#8c8f94;color:#2c3338;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}#accordion-section-add_menu .add-new-menu-item.open:before,.adding-menu-items .add-new-menu-item:before,body.adding-widget .add-new-widget:before{transform:rotate(45deg)}#available-menu-items,#available-widgets{position:absolute;top:0;bottom:0;left:-301px;visibility:hidden;overflow-x:hidden;overflow-y:auto;width:300px;margin:0;z-index:4;background:#f0f0f1;transition:left .18s;border-right:1px solid #dcdcde}#available-menu-items .customize-section-title,#available-widgets .customize-section-title{display:none}#available-widgets-list{top:82px;position:absolute;overflow:auto;bottom:0;width:100%;border-top:1px solid #dcdcde}.no-widgets-found #available-widgets-list{border-top:none}#available-widgets-filter{position:fixed;top:0;z-index:1;width:300px;background:#f0f0f1}#available-menu-items-search .accordion-section-title,#available-widgets-filter{padding:13px 15px;box-sizing:border-box}#available-menu-items-search input,#available-widgets-filter input{width:100%;min-height:32px;margin:1px 0;padding:0 30px}#available-menu-items-search input::-ms-clear,#available-widgets-filter input::-ms-clear{display:none}#available-menu-items-search .search-icon,#available-widgets-filter .search-icon{display:block;position:absolute;bottom:15px;left:16px;width:30px;height:30px;line-height:2.1;text-align:center;color:#646970}#available-menu-items-search .accordion-section-title .clear-results,#available-widgets-filter .clear-results{position:absolute;top:36px;right:16px;width:30px;height:30px;padding:0;border:0;cursor:pointer;background:0 0;color:#d63638;text-decoration:none;outline:0}#available-menu-items-search .clear-results,#available-menu-items-search.loading .clear-results.is-visible,#available-widgets-filter .clear-results{display:none}#available-menu-items-search .clear-results.is-visible,#available-widgets-filter .clear-results.is-visible{display:block}#available-menu-items-search .clear-results:before,#available-widgets-filter .clear-results:before{content:"\f335";font:normal 20px/1 dashicons;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#available-menu-items-search .clear-results:focus,#available-menu-items-search .clear-results:hover,#available-widgets-filter .clear-results:focus,#available-widgets-filter .clear-results:hover{color:#d63638}#available-menu-items-search .clear-results:focus,#available-widgets-filter .clear-results:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}#available-menu-items-search .search-icon:after,#available-widgets-filter .search-icon:after,.themes-filter-bar .search-icon:after{content:"\f179";font:normal 20px/1 dashicons;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.themes-filter-bar .search-icon{position:absolute;top:2px;left:2px;z-index:1;color:#646970;height:30px;width:30px;line-height:2;text-align:center}.no-widgets-found-message{display:none;margin:0;padding:0 15px;line-height:inherit}.no-widgets-found .no-widgets-found-message{display:block}#available-menu-items .item-top,#available-menu-items .item-top:hover,#available-widgets .widget-top,#available-widgets .widget-top:hover{border:none;background:0 0;box-shadow:none}#available-menu-items .item-tpl,#available-widgets .widget-tpl{position:relative;padding:15px 15px 15px 60px;background:#fff;border-bottom:1px solid #dcdcde;border-left:4px solid #fff;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out;cursor:pointer;display:none}#available-menu-items .item,#available-widgets .widget{position:static}.customize-controls-preview-toggle{display:none}@media only screen and (max-width:782px){.wp-customizer .theme:not(.active):focus .theme-actions,.wp-customizer .theme:not(.active):hover .theme-actions{display:block}.wp-customizer .theme-browser .theme.active .theme-name span{display:inline}.customize-control-header button.random .dice{margin-top:0}.customize-control-checkbox .customize-inside-control-row,.customize-control-nav_menu_auto_add .customize-inside-control-row,.customize-control-radio .customize-inside-control-row{margin-left:32px}.customize-control-checkbox input,.customize-control-nav_menu_auto_add input,.customize-control-radio input{margin-left:-32px}.customize-control input[type=checkbox]+label+br,.customize-control input[type=radio]+label+br{line-height:2.5}.customize-control .date-time-fields select{height:39px}.date-time-fields .date-input.month{width:79px}.date-time-fields .date-input.day,.date-time-fields .date-input.hour,.date-time-fields .date-input.minute{width:55px}.date-time-fields .date-input.year{width:80px}#customize-control-changeset_preview_link a{bottom:16px}.preview-link-wrapper .customize-copy-preview-link.preview-control-element.button{bottom:10px}.media-widget-control .media-widget-buttons .button.change-media,.media-widget-control .media-widget-buttons .button.edit-media,.media-widget-control .media-widget-buttons .button.select-media{margin-top:12px}.customize-preview-header.themes-filter-bar .search-icon{top:6px}}@media screen and (max-width:1200px){.adding-menu-items .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.adding-widget .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.outer-section-open .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main{left:67%}}@media screen and (max-width:640px){.wp-full-overlay.collapsed #customize-controls{margin-left:0}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{bottom:0}.customize-controls-preview-toggle{display:block;position:absolute;top:0;left:48px;line-height:2.6;font-size:14px;padding:0 12px 4px;margin:0;height:45px;background:#f0f0f1;border:0;border-right:1px solid #dcdcde;border-top:4px solid #f0f0f1;color:#50575e;cursor:pointer;transition:color .1s ease-in-out,background .1s ease-in-out}#customize-footer-actions,.customize-controls-preview-toggle .controls,.preview-only .customize-controls-preview-toggle .preview,.preview-only .wp-full-overlay-sidebar-content{display:none}.preview-only #customize-save-button-wrapper{margin-top:-46px}.customize-controls-preview-toggle .controls:before,.customize-controls-preview-toggle .preview:before{font:normal 20px/1 dashicons;content:"\f177";position:relative;top:4px;margin-right:6px}.customize-controls-preview-toggle .controls:before{content:"\f540"}.preview-only #customize-controls{height:45px}.preview-only #customize-preview,.preview-only .customize-controls-preview-toggle .controls{display:block}.wp-core-ui.wp-customizer .button{min-height:30px;padding:0 14px;line-height:2;font-size:14px;vertical-align:middle}#customize-control-changeset_status .customize-inside-control-row{padding-top:15px}body.adding-menu-items div#available-menu-items,body.adding-widget div#available-widgets,body.outer-section-open div#customize-sidebar-outer-content{width:100%}#available-menu-items .customize-section-title,#available-widgets .customize-section-title{display:block;margin:0}#available-menu-items .customize-section-back,#available-widgets .customize-section-back{height:69px}#available-menu-items .customize-section-title h3,#available-widgets .customize-section-title h3{font-size:20px;font-weight:200;padding:9px 10px 12px 14px;margin:0;line-height:24px;color:#50575e;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#available-menu-items .customize-section-title .customize-action,#available-widgets .customize-section-title .customize-action{font-size:13px;display:block;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#available-widgets-filter{position:relative;width:100%;height:auto}#available-widgets-list{top:152px}#available-menu-items-search .clear-results{top:36px;right:16px}.reorder,.reordering .reorder-done{padding:8px}}@media screen and (max-width:600px){.wp-full-overlay.expanded{margin-left:0}body.adding-menu-items div#available-menu-items,body.adding-widget div#available-widgets,body.outer-section-open div#customize-sidebar-outer-content{top:46px;z-index:10}body.wp-customizer .wp-full-overlay.expanded #customize-sidebar-outer-content{left:-100%}body.wp-customizer.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content{left:0}} \ No newline at end of file
diff --git a/wp-admin/css/customize-nav-menus-rtl.css b/wp-admin/css/customize-nav-menus-rtl.css
index c4ce1c1..827c95d 100644
--- a/wp-admin/css/customize-nav-menus-rtl.css
+++ b/wp-admin/css/customize-nav-menus-rtl.css
@@ -558,7 +558,7 @@
#available-menu-items .accordion-section-title .no-items,
#available-menu-items .cannot-expand .accordion-section-title .spinner,
-#available-menu-items .cannot-expand .accordion-section-title > button {
+#available-menu-items .cannot-expand .accordion-section-title > button:not(#available-menu-items-search button.is-visible) {
display: none;
}
@@ -582,7 +582,7 @@
}
#available-menu-items .accordion-section-content .available-menu-items-list {
- margin: 0 0 45px;
+ margin: 0 0 64px;
padding: 1px 15px 15px;
}
@@ -681,7 +681,7 @@
#available-menu-items-search .spinner {
position: absolute;
- top: 20px; /* 13 container padding +1 input margin +6 ( ( 32 input height - 20 spinner height ) / 2 ) */
+ bottom: 20px; /* 13 container padding +1 input margin +6 ( ( 32 input height - 20 spinner height ) / 2 ) */
left: 21px;
margin: 0 !important;
}
@@ -690,7 +690,7 @@
#available-menu-items #available-menu-items-search .accordion-section-content {
position: absolute;
right: 0;
- top: 60px; /* below title div / search input */
+ top: 75px; /* below title div / search input */
bottom: 0; /* 100% height that still triggers lazy load */
max-height: none;
width: 100%;
@@ -879,6 +879,6 @@ li.assigned-to-menu-location .add-new-menu-item {
@media screen and (max-width: 640px) {
#available-menu-items #available-menu-items-search .accordion-section-content {
- top: 130px;
+ top: 146px;
}
}
diff --git a/wp-admin/css/customize-nav-menus-rtl.min.css b/wp-admin/css/customize-nav-menus-rtl.min.css
index 87b3dc1..faa1e3b 100644
--- a/wp-admin/css/customize-nav-menus-rtl.min.css
+++ b/wp-admin/css/customize-nav-menus-rtl.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-#customize-theme-controls #accordion-section-menu_locations{position:relative;margin-top:30px}#customize-theme-controls #accordion-section-menu_locations>.accordion-section-title{border-bottom-color:#dcdcde;margin-top:15px}#customize-theme-controls .customize-section-title-menu_locations-description,#customize-theme-controls .customize-section-title-menu_locations-heading,#customize-theme-controls .customize-section-title-nav_menus-heading{padding:0 12px}#customize-theme-controls .customize-control-description.customize-section-title-menu_locations-description{font-style:normal}.menu-in-location,.menu-in-locations{display:block;font-weight:600;font-size:10px}#customize-controls .control-section .accordion-section-title:focus .menu-in-location,#customize-controls .control-section .accordion-section-title:hover .menu-in-location,#customize-controls .theme-location-set{color:#50575e}.customize-control-nav_menu_location .create-menu,.customize-control-nav_menu_location .edit-menu{margin-right:6px;vertical-align:middle;line-height:2.2}#customize-controls .customize-control-nav_menu_name{margin-bottom:12px}.customize-control-nav_menu_name p:last-of-type{margin-bottom:0}#customize-new-menu-submit{float:left;min-width:85px}.wp-customizer .menu-item-bar .menu-item-handle,.wp-customizer .menu-item-settings,.wp-customizer .menu-item-settings .description-thin{box-sizing:border-box}.wp-customizer .menu-item-bar{margin:0}.wp-customizer .menu-item-bar .menu-item-handle{width:100%;max-width:100%;background:#fff}.wp-customizer .menu-item-handle .item-title{margin-left:0}.wp-customizer .menu-item-handle .item-type{padding:1px 5px 0 21px;float:left;text-align:left}.wp-customizer .menu-item-handle:hover{z-index:8}.customize-control-nav_menu_item.has-notifications .menu-item-handle{border-right:4px solid #72aee6}.wp-customizer .menu-item-settings{max-width:100%;overflow:hidden;z-index:8;padding:10px;background:#f0f0f1;border:1px solid #8c8f94;border-top:none}.wp-customizer .menu-item-settings .description-thin{width:100%;height:auto;margin:0 0 8px}.wp-customizer .menu-item-settings input[type=text]{width:100%}.wp-customizer .menu-item-settings .submitbox{margin:0;padding:0}.wp-customizer .menu-item-settings .link-to-original{padding:5px 0;border:none;font-style:normal;margin:0;width:100%}.wp-customizer .menu-item .submitbox .submitdelete{float:right;margin:6px 0 0;padding:0;cursor:pointer}.menu-item-reorder-nav{display:none;background-color:#fff;position:absolute;top:0;left:0}.menus-move-left:before{content:"\f345"}.menus-move-right:before{content:"\f341"}.reordering .menu-item .item-controls,.reordering .menu-item .item-type{display:none}.reordering .menu-item-reorder-nav{display:block}.customize-control input.menu-name-field{width:100%}.wp-customizer .menu-item .item-edit{position:absolute;left:-19px;top:2px;display:block;width:30px;height:38px;margin-left:0!important;box-shadow:none;outline:0;overflow:hidden;cursor:pointer;text-align:center}.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:before{content:"\f142"}.wp-customizer .menu-item-settings p.description{font-style:normal}.wp-customizer .menu-settings dl{margin:12px 0 0;padding:0}.wp-customizer .menu-settings .checkbox-input{margin-top:8px}.wp-customizer .menu-settings .menu-theme-locations{border-top:1px solid #c3c4c7}.wp-customizer .menu-settings{margin-top:36px;border-top:none}.wp-customizer .menu-location-settings{margin-top:12px;border-top:none}.wp-customizer .control-section-nav_menu .menu-location-settings{margin-top:24px;border-top:1px solid #dcdcde}.customize-control-nav_menu_auto_add,.wp-customizer .control-section-nav_menu .menu-location-settings{padding-top:12px}.menu-location-settings .customize-control-checkbox .theme-location-set{line-height:1}.customize-control-nav_menu_auto_add label{vertical-align:top}.menu-location-settings .new-menu-locations-widget-note{display:block}.customize-control-menu{margin-top:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle{color:#50575e}.customize-screen-options-toggle{background:0 0;border:none;color:#50575e;cursor:pointer;margin:0;padding:20px;position:absolute;left:0;top:30px}#customize-controls .customize-info .customize-help-toggle{padding:20px}#customize-controls .customize-info .customize-help-toggle:before{padding:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.active-menu-screen-options .customize-screen-options-toggle,.customize-screen-options-toggle:active,.customize-screen-options-toggle:focus,.customize-screen-options-toggle:hover{color:#2271b1}#customize-controls .customize-info .customize-help-toggle:focus,.customize-screen-options-toggle:focus{outline:2px solid transparent}.customize-screen-options-toggle:before{-moz-osx-font-smoothing:grayscale;border:none;content:"\f111";display:block;font:18px/1 dashicons;padding:5px;text-align:center;text-decoration:none!important;text-indent:0;right:6px;position:absolute;top:6px}#customize-controls .customize-info .customize-help-toggle:focus:before,.customize-screen-options-toggle:focus:before{border-radius:100%}.wp-customizer #screen-options-wrap{display:none;background:#fff;border-top:1px solid #dcdcde;padding:4px 15px 15px}.wp-customizer .metabox-prefs label{display:block;padding-left:0;line-height:30px}.wp-customizer .toggle-indicator{display:inline-block;font-size:20px;line-height:1}.rtl .wp-customizer .toggle-indicator{text-indent:1px}#available-menu-items .accordion-section-title .toggle-indicator:before,.wp-customizer .menu-item .item-edit .toggle-indicator:before{content:"\f140";display:block;padding:1px 0 1px 2px;speak:never;border-radius:50%;color:#787c82;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}.control-section-nav_menu .field-css-classes,.control-section-nav_menu .field-description,.control-section-nav_menu .field-link-target,.control-section-nav_menu .field-title-attribute,.control-section-nav_menu .field-xfn{display:none}.control-section-nav_menu.field-css-classes-active .field-css-classes,.control-section-nav_menu.field-description-active .field-description,.control-section-nav_menu.field-link-target-active .field-link-target,.control-section-nav_menu.field-title-attribute-active .field-title-attribute,.control-section-nav_menu.field-xfn-active .field-xfn{display:block}.menu-item-depth-0{margin-right:0}.menu-item-depth-1{margin-right:20px}.menu-item-depth-2{margin-right:40px}.menu-item-depth-3{margin-right:60px}.menu-item-depth-4{margin-right:80px}.menu-item-depth-5{margin-right:100px}.menu-item-depth-6{margin-right:120px}.menu-item-depth-7{margin-right:140px}.menu-item-depth-8{margin-right:160px}.menu-item-depth-9{margin-right:180px}.menu-item-depth-10{margin-right:200px}.menu-item-depth-11{margin-right:220px}.menu-item-depth-0>.menu-item-bar{margin-left:0}.menu-item-depth-1>.menu-item-bar{margin-left:20px}.menu-item-depth-2>.menu-item-bar{margin-left:40px}.menu-item-depth-3>.menu-item-bar{margin-left:60px}.menu-item-depth-4>.menu-item-bar{margin-left:80px}.menu-item-depth-5>.menu-item-bar{margin-left:100px}.menu-item-depth-6>.menu-item-bar{margin-left:120px}.menu-item-depth-7>.menu-item-bar{margin-left:140px}.menu-item-depth-8>.menu-item-bar{margin-left:160px}.menu-item-depth-9>.menu-item-bar{margin-left:180px}.menu-item-depth-10>.menu-item-bar{margin-left:200px}.menu-item-depth-11>.menu-item-bar{margin-left:220px}.menu-item-depth-0 .menu-item-transport{margin-right:0}.menu-item-depth-1 .menu-item-transport{margin-right:-20px}.menu-item-depth-3 .menu-item-transport{margin-right:-60px}.menu-item-depth-4 .menu-item-transport{margin-right:-80px}.menu-item-depth-2 .menu-item-transport{margin-right:-40px}.menu-item-depth-5 .menu-item-transport{margin-right:-100px}.menu-item-depth-6 .menu-item-transport{margin-right:-120px}.menu-item-depth-7 .menu-item-transport{margin-right:-140px}.menu-item-depth-8 .menu-item-transport{margin-right:-160px}.menu-item-depth-9 .menu-item-transport{margin-right:-180px}.menu-item-depth-10 .menu-item-transport{margin-right:-200px}.menu-item-depth-11 .menu-item-transport{margin-right:-220px}.reordering .menu-item-depth-0{margin-right:0}.reordering .menu-item-depth-1{margin-right:15px}.reordering .menu-item-depth-2{margin-right:30px}.reordering .menu-item-depth-3{margin-right:45px}.reordering .menu-item-depth-4{margin-right:60px}.reordering .menu-item-depth-5{margin-right:75px}.reordering .menu-item-depth-6{margin-right:90px}.reordering .menu-item-depth-7{margin-right:105px}.reordering .menu-item-depth-8{margin-right:120px}.reordering .menu-item-depth-9{margin-right:135px}.reordering .menu-item-depth-10{margin-right:150px}.reordering .menu-item-depth-11{margin-right:165px}.reordering .menu-item-depth-0>.menu-item-bar{margin-left:0}.reordering .menu-item-depth-1>.menu-item-bar{margin-left:15px}.reordering .menu-item-depth-2>.menu-item-bar{margin-left:30px}.reordering .menu-item-depth-3>.menu-item-bar{margin-left:45px}.reordering .menu-item-depth-4>.menu-item-bar{margin-left:60px}.reordering .menu-item-depth-5>.menu-item-bar{margin-left:75px}.reordering .menu-item-depth-6>.menu-item-bar{margin-left:90px}.reordering .menu-item-depth-7>.menu-item-bar{margin-left:105px}.reordering .menu-item-depth-8>.menu-item-bar{margin-left:120px}.reordering .menu-item-depth-9>.menu-item-bar{margin-left:135px}.reordering .menu-item-depth-10>.menu-item-bar{margin-left:150px}.reordering .menu-item-depth-11>.menu-item-bar{margin-left:165px}.control-section-nav_menu.menu .menu-item-edit-active{margin-right:0}.control-section-nav_menu.menu .menu-item-edit-active .menu-item-bar{margin-left:0}.control-section-nav_menu.menu .sortable-placeholder{margin-top:0;margin-bottom:1px;max-width:calc(100% - 2px);float:right;display:list-item;border-color:#a7aaad}.menu-item-transport li.customize-control{float:none}.control-section-nav_menu.menu ul.menu-item-transport .menu-item-bar{margin-top:0}.adding-menu-items .control-section{opacity:.4}.adding-menu-items .control-panel.control-section,.adding-menu-items .control-section.open{opacity:1}.menu-item-bar .item-delete{color:#d63638;position:absolute;top:2px;left:-19px;width:30px;height:38px;cursor:pointer;display:none}.menu-item-bar .item-delete:before{content:"\f335";position:absolute;top:9px;right:5px;border-radius:50%;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.menu-item-bar .item-delete:focus,.menu-item-bar .item-delete:hover{box-shadow:none;outline:0;color:#d63638}.adding-menu-items .menu-item-bar .item-edit{display:none}.adding-menu-items .menu-item-bar .item-delete{display:block}#available-menu-items.opening{overflow-y:hidden}#available-menu-items #available-menu-items-search.open{height:100%;border-bottom:none}#available-menu-items .accordion-section-title{border-right:none;border-left:none;background:#fff;transition:background-color .15s;-webkit-user-select:auto;user-select:auto}#available-menu-items #available-menu-items-search .accordion-section-title,#available-menu-items .open .accordion-section-title{background:#f0f0f1}#available-menu-items .accordion-section-title:after{content:none!important}#available-menu-items .accordion-section-title:hover .toggle-indicator:before,#available-menu-items .button-link:focus .toggle-indicator:before,#available-menu-items .button-link:hover .toggle-indicator:before{color:#1d2327}#available-menu-items .open .accordion-section-title .toggle-indicator:before{content:"\f142";color:#1d2327}#available-menu-items .available-menu-items-list{overflow-y:auto;max-height:200px;background:0 0}#available-menu-items .accordion-section-title button{display:block;width:28px;height:35px;position:absolute;top:5px;left:5px;box-shadow:none;outline:0;cursor:pointer;text-align:center}#available-menu-items .accordion-section-title .no-items,#available-menu-items .cannot-expand .accordion-section-title .spinner,#available-menu-items .cannot-expand .accordion-section-title>button{display:none}#available-menu-items-search.cannot-expand .accordion-section-title .spinner{display:block}#available-menu-items .cannot-expand .accordion-section-title .no-items{float:left;color:#50575e;font-weight:400;margin-right:5px}#available-menu-items .accordion-section-content{max-height:290px;margin:0;padding:0;position:relative;background:0 0}#available-menu-items .accordion-section-content .available-menu-items-list{margin:0 0 45px;padding:1px 15px 15px}#available-menu-items .accordion-section-content .available-menu-items-list:only-child{margin-bottom:0}#new-custom-menu-item .accordion-section-content{padding:0 15px 15px}#available-menu-items .menu-item-tpl{margin:0}#available-menu-items .new-content-item .create-item-input.invalid,#available-menu-items .new-content-item .create-item-input.invalid:focus,#custom-menu-item-name.invalid,#custom-menu-item-url.invalid,.edit-menu-item-url.invalid,.menu-name-field.invalid,.menu-name-field.invalid:focus{border:1px solid #d63638}#available-menu-items .menu-item-handle .item-type{padding-left:0}#available-menu-items .menu-item-handle .item-title{padding-right:20px}#available-menu-items .menu-item-handle{cursor:pointer}#available-menu-items .menu-item-handle{box-shadow:none;margin-top:-1px}#available-menu-items .menu-item-handle:hover{z-index:1}#available-menu-items .item-title h4{padding:0 0 5px;font-size:14px}#available-menu-items .item-add{position:absolute;top:1px;right:1px;color:#8c8f94;width:30px;height:38px;box-shadow:none;outline:0;cursor:pointer;text-align:center}#available-menu-items .menu-item-handle .item-add:focus{color:#1d2327}#available-menu-items .item-add:before{content:"\f543";position:relative;right:2px;top:3px;display:inline-block;height:20px;border-radius:50%;font:normal 20px/1.05 dashicons}#available-menu-items .menu-item-handle.item-added .item-add:focus,#available-menu-items .menu-item-handle.item-added .item-title,#available-menu-items .menu-item-handle.item-added .item-type,#available-menu-items .menu-item-handle.item-added:hover .item-add{color:#8c8f94}#available-menu-items .menu-item-handle.item-added .item-add:before{content:"\f147"}#available-menu-items .accordion-section-title.loading .spinner,#available-menu-items-search.loading .accordion-section-title .spinner{visibility:visible;margin:0 20px}#available-menu-items-search .spinner{position:absolute;top:20px;left:21px;margin:0!important}#available-menu-items #available-menu-items-search .accordion-section-content{position:absolute;right:0;top:60px;bottom:0;max-height:none;width:100%;padding:1px 15px 15px;box-sizing:border-box}#available-menu-items-search .nothing-found{margin-top:-1px}#available-menu-items-search .accordion-section-title:after{display:none}#available-menu-items-search .accordion-section-content:empty{min-height:0;padding:0}#available-menu-items-search.loading .accordion-section-content div{opacity:.5}#available-menu-items-search.loading.loading-more .accordion-section-content div{opacity:1}#customize-preview{transition:all .2s}body.adding-menu-items #available-menu-items{right:0;visibility:visible}body.adding-menu-items .wp-full-overlay-main{right:300px}body.adding-menu-items #customize-preview{opacity:.4}body.adding-menu-items #customize-preview iframe{pointer-events:none}.menu-item-handle .spinner{display:none;float:right;margin:0 0 0 8px}.nav-menu-inserted-item-loading .spinner{display:block}.nav-menu-inserted-item-loading .menu-item-handle .item-type{padding:0 8px 0 0}.added-menu-item .menu-item-handle.loading,.nav-menu-inserted-item-loading .menu-item-handle{padding:10px 8px 10px 15px;cursor:default;opacity:.5;background:#fff;color:#787c82}.added-menu-item .menu-item-handle{transition-property:opacity,background,color;transition-duration:1.25s;transition-timing-function:cubic-bezier(.25,-2.5,.75,8)}#customize-theme-controls .control-panel-content .control-section-nav_menu:nth-last-child(2) .accordion-section-title{border-bottom-color:#dcdcde}#accordion-section-add_menu{margin:15px 12px}#accordion-section-add_menu h3{text-align:left}#accordion-section-add_menu .customize-add-menu-button,#accordion-section-add_menu h3{margin:0}#accordion-section-add_menu .customize-add-menu-button{font-weight:400}#create-new-menu-submit{float:left;margin:0 0 12px}.menu-delete-item{float:right;padding:1em 0;width:100%}.assigned-menu-locations-title p{margin:0 0 8px}li.assigned-to-menu-location .menu-delete-item{display:none}li.assigned-to-menu-location .add-new-menu-item{margin-bottom:1em}.menu-item-handle{margin-top:-1px}.ui-sortable-disabled .menu-item-handle{cursor:default}.menu-item-handle:hover{position:relative;z-index:10;color:#2271b1}#available-menu-items .menu-item-handle:hover .item-add,.menu-item-handle:hover .item-edit,.menu-item-handle:hover .item-type{color:#2271b1}.menu-item-edit-active .menu-item-handle{border-color:#8c8f94;border-bottom:none}.customize-control-nav_menu_item{margin-bottom:0}.customize-control-nav_menu .new-menu-item-invitation{margin-top:0;margin-bottom:0}.customize-control-nav_menu .customize-control-nav_menu-buttons{margin-top:12px}#available-menu-items .item-add:focus:before,#customize-controls .customize-info .customize-help-toggle:focus:before,.customize-screen-options-toggle:focus:before,.menu-delete:focus,.menu-item-bar .item-delete:focus:before,.wp-customizer .menu-item .submitbox .submitdelete:focus,.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}@media screen and (max-width:782px){#available-menu-items #available-menu-items-search .accordion-section-content{top:63px}}@media screen and (max-width:640px){#available-menu-items #available-menu-items-search .accordion-section-content{top:130px}} \ No newline at end of file
+#customize-theme-controls #accordion-section-menu_locations{position:relative;margin-top:30px}#customize-theme-controls #accordion-section-menu_locations>.accordion-section-title{border-bottom-color:#dcdcde;margin-top:15px}#customize-theme-controls .customize-section-title-menu_locations-description,#customize-theme-controls .customize-section-title-menu_locations-heading,#customize-theme-controls .customize-section-title-nav_menus-heading{padding:0 12px}#customize-theme-controls .customize-control-description.customize-section-title-menu_locations-description{font-style:normal}.menu-in-location,.menu-in-locations{display:block;font-weight:600;font-size:10px}#customize-controls .control-section .accordion-section-title:focus .menu-in-location,#customize-controls .control-section .accordion-section-title:hover .menu-in-location,#customize-controls .theme-location-set{color:#50575e}.customize-control-nav_menu_location .create-menu,.customize-control-nav_menu_location .edit-menu{margin-right:6px;vertical-align:middle;line-height:2.2}#customize-controls .customize-control-nav_menu_name{margin-bottom:12px}.customize-control-nav_menu_name p:last-of-type{margin-bottom:0}#customize-new-menu-submit{float:left;min-width:85px}.wp-customizer .menu-item-bar .menu-item-handle,.wp-customizer .menu-item-settings,.wp-customizer .menu-item-settings .description-thin{box-sizing:border-box}.wp-customizer .menu-item-bar{margin:0}.wp-customizer .menu-item-bar .menu-item-handle{width:100%;max-width:100%;background:#fff}.wp-customizer .menu-item-handle .item-title{margin-left:0}.wp-customizer .menu-item-handle .item-type{padding:1px 5px 0 21px;float:left;text-align:left}.wp-customizer .menu-item-handle:hover{z-index:8}.customize-control-nav_menu_item.has-notifications .menu-item-handle{border-right:4px solid #72aee6}.wp-customizer .menu-item-settings{max-width:100%;overflow:hidden;z-index:8;padding:10px;background:#f0f0f1;border:1px solid #8c8f94;border-top:none}.wp-customizer .menu-item-settings .description-thin{width:100%;height:auto;margin:0 0 8px}.wp-customizer .menu-item-settings input[type=text]{width:100%}.wp-customizer .menu-item-settings .submitbox{margin:0;padding:0}.wp-customizer .menu-item-settings .link-to-original{padding:5px 0;border:none;font-style:normal;margin:0;width:100%}.wp-customizer .menu-item .submitbox .submitdelete{float:right;margin:6px 0 0;padding:0;cursor:pointer}.menu-item-reorder-nav{display:none;background-color:#fff;position:absolute;top:0;left:0}.menus-move-left:before{content:"\f345"}.menus-move-right:before{content:"\f341"}.reordering .menu-item .item-controls,.reordering .menu-item .item-type{display:none}.reordering .menu-item-reorder-nav{display:block}.customize-control input.menu-name-field{width:100%}.wp-customizer .menu-item .item-edit{position:absolute;left:-19px;top:2px;display:block;width:30px;height:38px;margin-left:0!important;box-shadow:none;outline:0;overflow:hidden;cursor:pointer;text-align:center}.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:before{content:"\f142"}.wp-customizer .menu-item-settings p.description{font-style:normal}.wp-customizer .menu-settings dl{margin:12px 0 0;padding:0}.wp-customizer .menu-settings .checkbox-input{margin-top:8px}.wp-customizer .menu-settings .menu-theme-locations{border-top:1px solid #c3c4c7}.wp-customizer .menu-settings{margin-top:36px;border-top:none}.wp-customizer .menu-location-settings{margin-top:12px;border-top:none}.wp-customizer .control-section-nav_menu .menu-location-settings{margin-top:24px;border-top:1px solid #dcdcde}.customize-control-nav_menu_auto_add,.wp-customizer .control-section-nav_menu .menu-location-settings{padding-top:12px}.menu-location-settings .customize-control-checkbox .theme-location-set{line-height:1}.customize-control-nav_menu_auto_add label{vertical-align:top}.menu-location-settings .new-menu-locations-widget-note{display:block}.customize-control-menu{margin-top:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle{color:#50575e}.customize-screen-options-toggle{background:0 0;border:none;color:#50575e;cursor:pointer;margin:0;padding:20px;position:absolute;left:0;top:30px}#customize-controls .customize-info .customize-help-toggle{padding:20px}#customize-controls .customize-info .customize-help-toggle:before{padding:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.active-menu-screen-options .customize-screen-options-toggle,.customize-screen-options-toggle:active,.customize-screen-options-toggle:focus,.customize-screen-options-toggle:hover{color:#2271b1}#customize-controls .customize-info .customize-help-toggle:focus,.customize-screen-options-toggle:focus{outline:2px solid transparent}.customize-screen-options-toggle:before{-moz-osx-font-smoothing:grayscale;border:none;content:"\f111";display:block;font:18px/1 dashicons;padding:5px;text-align:center;text-decoration:none!important;text-indent:0;right:6px;position:absolute;top:6px}#customize-controls .customize-info .customize-help-toggle:focus:before,.customize-screen-options-toggle:focus:before{border-radius:100%}.wp-customizer #screen-options-wrap{display:none;background:#fff;border-top:1px solid #dcdcde;padding:4px 15px 15px}.wp-customizer .metabox-prefs label{display:block;padding-left:0;line-height:30px}.wp-customizer .toggle-indicator{display:inline-block;font-size:20px;line-height:1}.rtl .wp-customizer .toggle-indicator{text-indent:1px}#available-menu-items .accordion-section-title .toggle-indicator:before,.wp-customizer .menu-item .item-edit .toggle-indicator:before{content:"\f140";display:block;padding:1px 0 1px 2px;speak:never;border-radius:50%;color:#787c82;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}.control-section-nav_menu .field-css-classes,.control-section-nav_menu .field-description,.control-section-nav_menu .field-link-target,.control-section-nav_menu .field-title-attribute,.control-section-nav_menu .field-xfn{display:none}.control-section-nav_menu.field-css-classes-active .field-css-classes,.control-section-nav_menu.field-description-active .field-description,.control-section-nav_menu.field-link-target-active .field-link-target,.control-section-nav_menu.field-title-attribute-active .field-title-attribute,.control-section-nav_menu.field-xfn-active .field-xfn{display:block}.menu-item-depth-0{margin-right:0}.menu-item-depth-1{margin-right:20px}.menu-item-depth-2{margin-right:40px}.menu-item-depth-3{margin-right:60px}.menu-item-depth-4{margin-right:80px}.menu-item-depth-5{margin-right:100px}.menu-item-depth-6{margin-right:120px}.menu-item-depth-7{margin-right:140px}.menu-item-depth-8{margin-right:160px}.menu-item-depth-9{margin-right:180px}.menu-item-depth-10{margin-right:200px}.menu-item-depth-11{margin-right:220px}.menu-item-depth-0>.menu-item-bar{margin-left:0}.menu-item-depth-1>.menu-item-bar{margin-left:20px}.menu-item-depth-2>.menu-item-bar{margin-left:40px}.menu-item-depth-3>.menu-item-bar{margin-left:60px}.menu-item-depth-4>.menu-item-bar{margin-left:80px}.menu-item-depth-5>.menu-item-bar{margin-left:100px}.menu-item-depth-6>.menu-item-bar{margin-left:120px}.menu-item-depth-7>.menu-item-bar{margin-left:140px}.menu-item-depth-8>.menu-item-bar{margin-left:160px}.menu-item-depth-9>.menu-item-bar{margin-left:180px}.menu-item-depth-10>.menu-item-bar{margin-left:200px}.menu-item-depth-11>.menu-item-bar{margin-left:220px}.menu-item-depth-0 .menu-item-transport{margin-right:0}.menu-item-depth-1 .menu-item-transport{margin-right:-20px}.menu-item-depth-3 .menu-item-transport{margin-right:-60px}.menu-item-depth-4 .menu-item-transport{margin-right:-80px}.menu-item-depth-2 .menu-item-transport{margin-right:-40px}.menu-item-depth-5 .menu-item-transport{margin-right:-100px}.menu-item-depth-6 .menu-item-transport{margin-right:-120px}.menu-item-depth-7 .menu-item-transport{margin-right:-140px}.menu-item-depth-8 .menu-item-transport{margin-right:-160px}.menu-item-depth-9 .menu-item-transport{margin-right:-180px}.menu-item-depth-10 .menu-item-transport{margin-right:-200px}.menu-item-depth-11 .menu-item-transport{margin-right:-220px}.reordering .menu-item-depth-0{margin-right:0}.reordering .menu-item-depth-1{margin-right:15px}.reordering .menu-item-depth-2{margin-right:30px}.reordering .menu-item-depth-3{margin-right:45px}.reordering .menu-item-depth-4{margin-right:60px}.reordering .menu-item-depth-5{margin-right:75px}.reordering .menu-item-depth-6{margin-right:90px}.reordering .menu-item-depth-7{margin-right:105px}.reordering .menu-item-depth-8{margin-right:120px}.reordering .menu-item-depth-9{margin-right:135px}.reordering .menu-item-depth-10{margin-right:150px}.reordering .menu-item-depth-11{margin-right:165px}.reordering .menu-item-depth-0>.menu-item-bar{margin-left:0}.reordering .menu-item-depth-1>.menu-item-bar{margin-left:15px}.reordering .menu-item-depth-2>.menu-item-bar{margin-left:30px}.reordering .menu-item-depth-3>.menu-item-bar{margin-left:45px}.reordering .menu-item-depth-4>.menu-item-bar{margin-left:60px}.reordering .menu-item-depth-5>.menu-item-bar{margin-left:75px}.reordering .menu-item-depth-6>.menu-item-bar{margin-left:90px}.reordering .menu-item-depth-7>.menu-item-bar{margin-left:105px}.reordering .menu-item-depth-8>.menu-item-bar{margin-left:120px}.reordering .menu-item-depth-9>.menu-item-bar{margin-left:135px}.reordering .menu-item-depth-10>.menu-item-bar{margin-left:150px}.reordering .menu-item-depth-11>.menu-item-bar{margin-left:165px}.control-section-nav_menu.menu .menu-item-edit-active{margin-right:0}.control-section-nav_menu.menu .menu-item-edit-active .menu-item-bar{margin-left:0}.control-section-nav_menu.menu .sortable-placeholder{margin-top:0;margin-bottom:1px;max-width:calc(100% - 2px);float:right;display:list-item;border-color:#a7aaad}.menu-item-transport li.customize-control{float:none}.control-section-nav_menu.menu ul.menu-item-transport .menu-item-bar{margin-top:0}.adding-menu-items .control-section{opacity:.4}.adding-menu-items .control-panel.control-section,.adding-menu-items .control-section.open{opacity:1}.menu-item-bar .item-delete{color:#d63638;position:absolute;top:2px;left:-19px;width:30px;height:38px;cursor:pointer;display:none}.menu-item-bar .item-delete:before{content:"\f335";position:absolute;top:9px;right:5px;border-radius:50%;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.menu-item-bar .item-delete:focus,.menu-item-bar .item-delete:hover{box-shadow:none;outline:0;color:#d63638}.adding-menu-items .menu-item-bar .item-edit{display:none}.adding-menu-items .menu-item-bar .item-delete{display:block}#available-menu-items.opening{overflow-y:hidden}#available-menu-items #available-menu-items-search.open{height:100%;border-bottom:none}#available-menu-items .accordion-section-title{border-right:none;border-left:none;background:#fff;transition:background-color .15s;-webkit-user-select:auto;user-select:auto}#available-menu-items #available-menu-items-search .accordion-section-title,#available-menu-items .open .accordion-section-title{background:#f0f0f1}#available-menu-items .accordion-section-title:after{content:none!important}#available-menu-items .accordion-section-title:hover .toggle-indicator:before,#available-menu-items .button-link:focus .toggle-indicator:before,#available-menu-items .button-link:hover .toggle-indicator:before{color:#1d2327}#available-menu-items .open .accordion-section-title .toggle-indicator:before{content:"\f142";color:#1d2327}#available-menu-items .available-menu-items-list{overflow-y:auto;max-height:200px;background:0 0}#available-menu-items .accordion-section-title button{display:block;width:28px;height:35px;position:absolute;top:5px;left:5px;box-shadow:none;outline:0;cursor:pointer;text-align:center}#available-menu-items .accordion-section-title .no-items,#available-menu-items .cannot-expand .accordion-section-title .spinner,#available-menu-items .cannot-expand .accordion-section-title>button:not(#available-menu-items-search button.is-visible){display:none}#available-menu-items-search.cannot-expand .accordion-section-title .spinner{display:block}#available-menu-items .cannot-expand .accordion-section-title .no-items{float:left;color:#50575e;font-weight:400;margin-right:5px}#available-menu-items .accordion-section-content{max-height:290px;margin:0;padding:0;position:relative;background:0 0}#available-menu-items .accordion-section-content .available-menu-items-list{margin:0 0 64px;padding:1px 15px 15px}#available-menu-items .accordion-section-content .available-menu-items-list:only-child{margin-bottom:0}#new-custom-menu-item .accordion-section-content{padding:0 15px 15px}#available-menu-items .menu-item-tpl{margin:0}#available-menu-items .new-content-item .create-item-input.invalid,#available-menu-items .new-content-item .create-item-input.invalid:focus,#custom-menu-item-name.invalid,#custom-menu-item-url.invalid,.edit-menu-item-url.invalid,.menu-name-field.invalid,.menu-name-field.invalid:focus{border:1px solid #d63638}#available-menu-items .menu-item-handle .item-type{padding-left:0}#available-menu-items .menu-item-handle .item-title{padding-right:20px}#available-menu-items .menu-item-handle{cursor:pointer}#available-menu-items .menu-item-handle{box-shadow:none;margin-top:-1px}#available-menu-items .menu-item-handle:hover{z-index:1}#available-menu-items .item-title h4{padding:0 0 5px;font-size:14px}#available-menu-items .item-add{position:absolute;top:1px;right:1px;color:#8c8f94;width:30px;height:38px;box-shadow:none;outline:0;cursor:pointer;text-align:center}#available-menu-items .menu-item-handle .item-add:focus{color:#1d2327}#available-menu-items .item-add:before{content:"\f543";position:relative;right:2px;top:3px;display:inline-block;height:20px;border-radius:50%;font:normal 20px/1.05 dashicons}#available-menu-items .menu-item-handle.item-added .item-add:focus,#available-menu-items .menu-item-handle.item-added .item-title,#available-menu-items .menu-item-handle.item-added .item-type,#available-menu-items .menu-item-handle.item-added:hover .item-add{color:#8c8f94}#available-menu-items .menu-item-handle.item-added .item-add:before{content:"\f147"}#available-menu-items .accordion-section-title.loading .spinner,#available-menu-items-search.loading .accordion-section-title .spinner{visibility:visible;margin:0 20px}#available-menu-items-search .spinner{position:absolute;bottom:20px;left:21px;margin:0!important}#available-menu-items #available-menu-items-search .accordion-section-content{position:absolute;right:0;top:75px;bottom:0;max-height:none;width:100%;padding:1px 15px 15px;box-sizing:border-box}#available-menu-items-search .nothing-found{margin-top:-1px}#available-menu-items-search .accordion-section-title:after{display:none}#available-menu-items-search .accordion-section-content:empty{min-height:0;padding:0}#available-menu-items-search.loading .accordion-section-content div{opacity:.5}#available-menu-items-search.loading.loading-more .accordion-section-content div{opacity:1}#customize-preview{transition:all .2s}body.adding-menu-items #available-menu-items{right:0;visibility:visible}body.adding-menu-items .wp-full-overlay-main{right:300px}body.adding-menu-items #customize-preview{opacity:.4}body.adding-menu-items #customize-preview iframe{pointer-events:none}.menu-item-handle .spinner{display:none;float:right;margin:0 0 0 8px}.nav-menu-inserted-item-loading .spinner{display:block}.nav-menu-inserted-item-loading .menu-item-handle .item-type{padding:0 8px 0 0}.added-menu-item .menu-item-handle.loading,.nav-menu-inserted-item-loading .menu-item-handle{padding:10px 8px 10px 15px;cursor:default;opacity:.5;background:#fff;color:#787c82}.added-menu-item .menu-item-handle{transition-property:opacity,background,color;transition-duration:1.25s;transition-timing-function:cubic-bezier(.25,-2.5,.75,8)}#customize-theme-controls .control-panel-content .control-section-nav_menu:nth-last-child(2) .accordion-section-title{border-bottom-color:#dcdcde}#accordion-section-add_menu{margin:15px 12px}#accordion-section-add_menu h3{text-align:left}#accordion-section-add_menu .customize-add-menu-button,#accordion-section-add_menu h3{margin:0}#accordion-section-add_menu .customize-add-menu-button{font-weight:400}#create-new-menu-submit{float:left;margin:0 0 12px}.menu-delete-item{float:right;padding:1em 0;width:100%}.assigned-menu-locations-title p{margin:0 0 8px}li.assigned-to-menu-location .menu-delete-item{display:none}li.assigned-to-menu-location .add-new-menu-item{margin-bottom:1em}.menu-item-handle{margin-top:-1px}.ui-sortable-disabled .menu-item-handle{cursor:default}.menu-item-handle:hover{position:relative;z-index:10;color:#2271b1}#available-menu-items .menu-item-handle:hover .item-add,.menu-item-handle:hover .item-edit,.menu-item-handle:hover .item-type{color:#2271b1}.menu-item-edit-active .menu-item-handle{border-color:#8c8f94;border-bottom:none}.customize-control-nav_menu_item{margin-bottom:0}.customize-control-nav_menu .new-menu-item-invitation{margin-top:0;margin-bottom:0}.customize-control-nav_menu .customize-control-nav_menu-buttons{margin-top:12px}#available-menu-items .item-add:focus:before,#customize-controls .customize-info .customize-help-toggle:focus:before,.customize-screen-options-toggle:focus:before,.menu-delete:focus,.menu-item-bar .item-delete:focus:before,.wp-customizer .menu-item .submitbox .submitdelete:focus,.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}@media screen and (max-width:782px){#available-menu-items #available-menu-items-search .accordion-section-content{top:63px}}@media screen and (max-width:640px){#available-menu-items #available-menu-items-search .accordion-section-content{top:146px}} \ No newline at end of file
diff --git a/wp-admin/css/customize-nav-menus.css b/wp-admin/css/customize-nav-menus.css
index c645bb5..951bd87 100644
--- a/wp-admin/css/customize-nav-menus.css
+++ b/wp-admin/css/customize-nav-menus.css
@@ -557,7 +557,7 @@
#available-menu-items .accordion-section-title .no-items,
#available-menu-items .cannot-expand .accordion-section-title .spinner,
-#available-menu-items .cannot-expand .accordion-section-title > button {
+#available-menu-items .cannot-expand .accordion-section-title > button:not(#available-menu-items-search button.is-visible) {
display: none;
}
@@ -581,7 +581,7 @@
}
#available-menu-items .accordion-section-content .available-menu-items-list {
- margin: 0 0 45px;
+ margin: 0 0 64px;
padding: 1px 15px 15px;
}
@@ -680,7 +680,7 @@
#available-menu-items-search .spinner {
position: absolute;
- top: 20px; /* 13 container padding +1 input margin +6 ( ( 32 input height - 20 spinner height ) / 2 ) */
+ bottom: 20px; /* 13 container padding +1 input margin +6 ( ( 32 input height - 20 spinner height ) / 2 ) */
right: 21px;
margin: 0 !important;
}
@@ -689,7 +689,7 @@
#available-menu-items #available-menu-items-search .accordion-section-content {
position: absolute;
left: 0;
- top: 60px; /* below title div / search input */
+ top: 75px; /* below title div / search input */
bottom: 0; /* 100% height that still triggers lazy load */
max-height: none;
width: 100%;
@@ -878,6 +878,6 @@ li.assigned-to-menu-location .add-new-menu-item {
@media screen and (max-width: 640px) {
#available-menu-items #available-menu-items-search .accordion-section-content {
- top: 130px;
+ top: 146px;
}
}
diff --git a/wp-admin/css/customize-nav-menus.min.css b/wp-admin/css/customize-nav-menus.min.css
index 250c462..bbfbcdb 100644
--- a/wp-admin/css/customize-nav-menus.min.css
+++ b/wp-admin/css/customize-nav-menus.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-#customize-theme-controls #accordion-section-menu_locations{position:relative;margin-top:30px}#customize-theme-controls #accordion-section-menu_locations>.accordion-section-title{border-bottom-color:#dcdcde;margin-top:15px}#customize-theme-controls .customize-section-title-menu_locations-description,#customize-theme-controls .customize-section-title-menu_locations-heading,#customize-theme-controls .customize-section-title-nav_menus-heading{padding:0 12px}#customize-theme-controls .customize-control-description.customize-section-title-menu_locations-description{font-style:normal}.menu-in-location,.menu-in-locations{display:block;font-weight:600;font-size:10px}#customize-controls .control-section .accordion-section-title:focus .menu-in-location,#customize-controls .control-section .accordion-section-title:hover .menu-in-location,#customize-controls .theme-location-set{color:#50575e}.customize-control-nav_menu_location .create-menu,.customize-control-nav_menu_location .edit-menu{margin-left:6px;vertical-align:middle;line-height:2.2}#customize-controls .customize-control-nav_menu_name{margin-bottom:12px}.customize-control-nav_menu_name p:last-of-type{margin-bottom:0}#customize-new-menu-submit{float:right;min-width:85px}.wp-customizer .menu-item-bar .menu-item-handle,.wp-customizer .menu-item-settings,.wp-customizer .menu-item-settings .description-thin{box-sizing:border-box}.wp-customizer .menu-item-bar{margin:0}.wp-customizer .menu-item-bar .menu-item-handle{width:100%;max-width:100%;background:#fff}.wp-customizer .menu-item-handle .item-title{margin-right:0}.wp-customizer .menu-item-handle .item-type{padding:1px 21px 0 5px;float:right;text-align:right}.wp-customizer .menu-item-handle:hover{z-index:8}.customize-control-nav_menu_item.has-notifications .menu-item-handle{border-left:4px solid #72aee6}.wp-customizer .menu-item-settings{max-width:100%;overflow:hidden;z-index:8;padding:10px;background:#f0f0f1;border:1px solid #8c8f94;border-top:none}.wp-customizer .menu-item-settings .description-thin{width:100%;height:auto;margin:0 0 8px}.wp-customizer .menu-item-settings input[type=text]{width:100%}.wp-customizer .menu-item-settings .submitbox{margin:0;padding:0}.wp-customizer .menu-item-settings .link-to-original{padding:5px 0;border:none;font-style:normal;margin:0;width:100%}.wp-customizer .menu-item .submitbox .submitdelete{float:left;margin:6px 0 0;padding:0;cursor:pointer}.menu-item-reorder-nav{display:none;background-color:#fff;position:absolute;top:0;right:0}.menus-move-left:before{content:"\f341"}.menus-move-right:before{content:"\f345"}.reordering .menu-item .item-controls,.reordering .menu-item .item-type{display:none}.reordering .menu-item-reorder-nav{display:block}.customize-control input.menu-name-field{width:100%}.wp-customizer .menu-item .item-edit{position:absolute;right:-19px;top:2px;display:block;width:30px;height:38px;margin-right:0!important;box-shadow:none;outline:0;overflow:hidden;cursor:pointer;text-align:center}.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:before{content:"\f142"}.wp-customizer .menu-item-settings p.description{font-style:normal}.wp-customizer .menu-settings dl{margin:12px 0 0;padding:0}.wp-customizer .menu-settings .checkbox-input{margin-top:8px}.wp-customizer .menu-settings .menu-theme-locations{border-top:1px solid #c3c4c7}.wp-customizer .menu-settings{margin-top:36px;border-top:none}.wp-customizer .menu-location-settings{margin-top:12px;border-top:none}.wp-customizer .control-section-nav_menu .menu-location-settings{margin-top:24px;border-top:1px solid #dcdcde}.customize-control-nav_menu_auto_add,.wp-customizer .control-section-nav_menu .menu-location-settings{padding-top:12px}.menu-location-settings .customize-control-checkbox .theme-location-set{line-height:1}.customize-control-nav_menu_auto_add label{vertical-align:top}.menu-location-settings .new-menu-locations-widget-note{display:block}.customize-control-menu{margin-top:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle{color:#50575e}.customize-screen-options-toggle{background:0 0;border:none;color:#50575e;cursor:pointer;margin:0;padding:20px;position:absolute;right:0;top:30px}#customize-controls .customize-info .customize-help-toggle{padding:20px}#customize-controls .customize-info .customize-help-toggle:before{padding:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.active-menu-screen-options .customize-screen-options-toggle,.customize-screen-options-toggle:active,.customize-screen-options-toggle:focus,.customize-screen-options-toggle:hover{color:#2271b1}#customize-controls .customize-info .customize-help-toggle:focus,.customize-screen-options-toggle:focus{outline:2px solid transparent}.customize-screen-options-toggle:before{-moz-osx-font-smoothing:grayscale;border:none;content:"\f111";display:block;font:18px/1 dashicons;padding:5px;text-align:center;text-decoration:none!important;text-indent:0;left:6px;position:absolute;top:6px}#customize-controls .customize-info .customize-help-toggle:focus:before,.customize-screen-options-toggle:focus:before{border-radius:100%}.wp-customizer #screen-options-wrap{display:none;background:#fff;border-top:1px solid #dcdcde;padding:4px 15px 15px}.wp-customizer .metabox-prefs label{display:block;padding-right:0;line-height:30px}.wp-customizer .toggle-indicator{display:inline-block;font-size:20px;line-height:1}.rtl .wp-customizer .toggle-indicator{text-indent:1px}#available-menu-items .accordion-section-title .toggle-indicator:before,.wp-customizer .menu-item .item-edit .toggle-indicator:before{content:"\f140";display:block;padding:1px 2px 1px 0;speak:never;border-radius:50%;color:#787c82;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}.control-section-nav_menu .field-css-classes,.control-section-nav_menu .field-description,.control-section-nav_menu .field-link-target,.control-section-nav_menu .field-title-attribute,.control-section-nav_menu .field-xfn{display:none}.control-section-nav_menu.field-css-classes-active .field-css-classes,.control-section-nav_menu.field-description-active .field-description,.control-section-nav_menu.field-link-target-active .field-link-target,.control-section-nav_menu.field-title-attribute-active .field-title-attribute,.control-section-nav_menu.field-xfn-active .field-xfn{display:block}.menu-item-depth-0{margin-left:0}.menu-item-depth-1{margin-left:20px}.menu-item-depth-2{margin-left:40px}.menu-item-depth-3{margin-left:60px}.menu-item-depth-4{margin-left:80px}.menu-item-depth-5{margin-left:100px}.menu-item-depth-6{margin-left:120px}.menu-item-depth-7{margin-left:140px}.menu-item-depth-8{margin-left:160px}.menu-item-depth-9{margin-left:180px}.menu-item-depth-10{margin-left:200px}.menu-item-depth-11{margin-left:220px}.menu-item-depth-0>.menu-item-bar{margin-right:0}.menu-item-depth-1>.menu-item-bar{margin-right:20px}.menu-item-depth-2>.menu-item-bar{margin-right:40px}.menu-item-depth-3>.menu-item-bar{margin-right:60px}.menu-item-depth-4>.menu-item-bar{margin-right:80px}.menu-item-depth-5>.menu-item-bar{margin-right:100px}.menu-item-depth-6>.menu-item-bar{margin-right:120px}.menu-item-depth-7>.menu-item-bar{margin-right:140px}.menu-item-depth-8>.menu-item-bar{margin-right:160px}.menu-item-depth-9>.menu-item-bar{margin-right:180px}.menu-item-depth-10>.menu-item-bar{margin-right:200px}.menu-item-depth-11>.menu-item-bar{margin-right:220px}.menu-item-depth-0 .menu-item-transport{margin-left:0}.menu-item-depth-1 .menu-item-transport{margin-left:-20px}.menu-item-depth-3 .menu-item-transport{margin-left:-60px}.menu-item-depth-4 .menu-item-transport{margin-left:-80px}.menu-item-depth-2 .menu-item-transport{margin-left:-40px}.menu-item-depth-5 .menu-item-transport{margin-left:-100px}.menu-item-depth-6 .menu-item-transport{margin-left:-120px}.menu-item-depth-7 .menu-item-transport{margin-left:-140px}.menu-item-depth-8 .menu-item-transport{margin-left:-160px}.menu-item-depth-9 .menu-item-transport{margin-left:-180px}.menu-item-depth-10 .menu-item-transport{margin-left:-200px}.menu-item-depth-11 .menu-item-transport{margin-left:-220px}.reordering .menu-item-depth-0{margin-left:0}.reordering .menu-item-depth-1{margin-left:15px}.reordering .menu-item-depth-2{margin-left:30px}.reordering .menu-item-depth-3{margin-left:45px}.reordering .menu-item-depth-4{margin-left:60px}.reordering .menu-item-depth-5{margin-left:75px}.reordering .menu-item-depth-6{margin-left:90px}.reordering .menu-item-depth-7{margin-left:105px}.reordering .menu-item-depth-8{margin-left:120px}.reordering .menu-item-depth-9{margin-left:135px}.reordering .menu-item-depth-10{margin-left:150px}.reordering .menu-item-depth-11{margin-left:165px}.reordering .menu-item-depth-0>.menu-item-bar{margin-right:0}.reordering .menu-item-depth-1>.menu-item-bar{margin-right:15px}.reordering .menu-item-depth-2>.menu-item-bar{margin-right:30px}.reordering .menu-item-depth-3>.menu-item-bar{margin-right:45px}.reordering .menu-item-depth-4>.menu-item-bar{margin-right:60px}.reordering .menu-item-depth-5>.menu-item-bar{margin-right:75px}.reordering .menu-item-depth-6>.menu-item-bar{margin-right:90px}.reordering .menu-item-depth-7>.menu-item-bar{margin-right:105px}.reordering .menu-item-depth-8>.menu-item-bar{margin-right:120px}.reordering .menu-item-depth-9>.menu-item-bar{margin-right:135px}.reordering .menu-item-depth-10>.menu-item-bar{margin-right:150px}.reordering .menu-item-depth-11>.menu-item-bar{margin-right:165px}.control-section-nav_menu.menu .menu-item-edit-active{margin-left:0}.control-section-nav_menu.menu .menu-item-edit-active .menu-item-bar{margin-right:0}.control-section-nav_menu.menu .sortable-placeholder{margin-top:0;margin-bottom:1px;max-width:calc(100% - 2px);float:left;display:list-item;border-color:#a7aaad}.menu-item-transport li.customize-control{float:none}.control-section-nav_menu.menu ul.menu-item-transport .menu-item-bar{margin-top:0}.adding-menu-items .control-section{opacity:.4}.adding-menu-items .control-panel.control-section,.adding-menu-items .control-section.open{opacity:1}.menu-item-bar .item-delete{color:#d63638;position:absolute;top:2px;right:-19px;width:30px;height:38px;cursor:pointer;display:none}.menu-item-bar .item-delete:before{content:"\f335";position:absolute;top:9px;left:5px;border-radius:50%;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.menu-item-bar .item-delete:focus,.menu-item-bar .item-delete:hover{box-shadow:none;outline:0;color:#d63638}.adding-menu-items .menu-item-bar .item-edit{display:none}.adding-menu-items .menu-item-bar .item-delete{display:block}#available-menu-items.opening{overflow-y:hidden}#available-menu-items #available-menu-items-search.open{height:100%;border-bottom:none}#available-menu-items .accordion-section-title{border-left:none;border-right:none;background:#fff;transition:background-color .15s;-webkit-user-select:auto;user-select:auto}#available-menu-items #available-menu-items-search .accordion-section-title,#available-menu-items .open .accordion-section-title{background:#f0f0f1}#available-menu-items .accordion-section-title:after{content:none!important}#available-menu-items .accordion-section-title:hover .toggle-indicator:before,#available-menu-items .button-link:focus .toggle-indicator:before,#available-menu-items .button-link:hover .toggle-indicator:before{color:#1d2327}#available-menu-items .open .accordion-section-title .toggle-indicator:before{content:"\f142";color:#1d2327}#available-menu-items .available-menu-items-list{overflow-y:auto;max-height:200px;background:0 0}#available-menu-items .accordion-section-title button{display:block;width:28px;height:35px;position:absolute;top:5px;right:5px;box-shadow:none;outline:0;cursor:pointer;text-align:center}#available-menu-items .accordion-section-title .no-items,#available-menu-items .cannot-expand .accordion-section-title .spinner,#available-menu-items .cannot-expand .accordion-section-title>button{display:none}#available-menu-items-search.cannot-expand .accordion-section-title .spinner{display:block}#available-menu-items .cannot-expand .accordion-section-title .no-items{float:right;color:#50575e;font-weight:400;margin-left:5px}#available-menu-items .accordion-section-content{max-height:290px;margin:0;padding:0;position:relative;background:0 0}#available-menu-items .accordion-section-content .available-menu-items-list{margin:0 0 45px;padding:1px 15px 15px}#available-menu-items .accordion-section-content .available-menu-items-list:only-child{margin-bottom:0}#new-custom-menu-item .accordion-section-content{padding:0 15px 15px}#available-menu-items .menu-item-tpl{margin:0}#available-menu-items .new-content-item .create-item-input.invalid,#available-menu-items .new-content-item .create-item-input.invalid:focus,#custom-menu-item-name.invalid,#custom-menu-item-url.invalid,.edit-menu-item-url.invalid,.menu-name-field.invalid,.menu-name-field.invalid:focus{border:1px solid #d63638}#available-menu-items .menu-item-handle .item-type{padding-right:0}#available-menu-items .menu-item-handle .item-title{padding-left:20px}#available-menu-items .menu-item-handle{cursor:pointer}#available-menu-items .menu-item-handle{box-shadow:none;margin-top:-1px}#available-menu-items .menu-item-handle:hover{z-index:1}#available-menu-items .item-title h4{padding:0 0 5px;font-size:14px}#available-menu-items .item-add{position:absolute;top:1px;left:1px;color:#8c8f94;width:30px;height:38px;box-shadow:none;outline:0;cursor:pointer;text-align:center}#available-menu-items .menu-item-handle .item-add:focus{color:#1d2327}#available-menu-items .item-add:before{content:"\f543";position:relative;left:2px;top:3px;display:inline-block;height:20px;border-radius:50%;font:normal 20px/1.05 dashicons}#available-menu-items .menu-item-handle.item-added .item-add:focus,#available-menu-items .menu-item-handle.item-added .item-title,#available-menu-items .menu-item-handle.item-added .item-type,#available-menu-items .menu-item-handle.item-added:hover .item-add{color:#8c8f94}#available-menu-items .menu-item-handle.item-added .item-add:before{content:"\f147"}#available-menu-items .accordion-section-title.loading .spinner,#available-menu-items-search.loading .accordion-section-title .spinner{visibility:visible;margin:0 20px}#available-menu-items-search .spinner{position:absolute;top:20px;right:21px;margin:0!important}#available-menu-items #available-menu-items-search .accordion-section-content{position:absolute;left:0;top:60px;bottom:0;max-height:none;width:100%;padding:1px 15px 15px;box-sizing:border-box}#available-menu-items-search .nothing-found{margin-top:-1px}#available-menu-items-search .accordion-section-title:after{display:none}#available-menu-items-search .accordion-section-content:empty{min-height:0;padding:0}#available-menu-items-search.loading .accordion-section-content div{opacity:.5}#available-menu-items-search.loading.loading-more .accordion-section-content div{opacity:1}#customize-preview{transition:all .2s}body.adding-menu-items #available-menu-items{left:0;visibility:visible}body.adding-menu-items .wp-full-overlay-main{left:300px}body.adding-menu-items #customize-preview{opacity:.4}body.adding-menu-items #customize-preview iframe{pointer-events:none}.menu-item-handle .spinner{display:none;float:left;margin:0 8px 0 0}.nav-menu-inserted-item-loading .spinner{display:block}.nav-menu-inserted-item-loading .menu-item-handle .item-type{padding:0 0 0 8px}.added-menu-item .menu-item-handle.loading,.nav-menu-inserted-item-loading .menu-item-handle{padding:10px 15px 10px 8px;cursor:default;opacity:.5;background:#fff;color:#787c82}.added-menu-item .menu-item-handle{transition-property:opacity,background,color;transition-duration:1.25s;transition-timing-function:cubic-bezier(.25,-2.5,.75,8)}#customize-theme-controls .control-panel-content .control-section-nav_menu:nth-last-child(2) .accordion-section-title{border-bottom-color:#dcdcde}#accordion-section-add_menu{margin:15px 12px}#accordion-section-add_menu h3{text-align:right}#accordion-section-add_menu .customize-add-menu-button,#accordion-section-add_menu h3{margin:0}#accordion-section-add_menu .customize-add-menu-button{font-weight:400}#create-new-menu-submit{float:right;margin:0 0 12px}.menu-delete-item{float:left;padding:1em 0;width:100%}.assigned-menu-locations-title p{margin:0 0 8px}li.assigned-to-menu-location .menu-delete-item{display:none}li.assigned-to-menu-location .add-new-menu-item{margin-bottom:1em}.menu-item-handle{margin-top:-1px}.ui-sortable-disabled .menu-item-handle{cursor:default}.menu-item-handle:hover{position:relative;z-index:10;color:#2271b1}#available-menu-items .menu-item-handle:hover .item-add,.menu-item-handle:hover .item-edit,.menu-item-handle:hover .item-type{color:#2271b1}.menu-item-edit-active .menu-item-handle{border-color:#8c8f94;border-bottom:none}.customize-control-nav_menu_item{margin-bottom:0}.customize-control-nav_menu .new-menu-item-invitation{margin-top:0;margin-bottom:0}.customize-control-nav_menu .customize-control-nav_menu-buttons{margin-top:12px}#available-menu-items .item-add:focus:before,#customize-controls .customize-info .customize-help-toggle:focus:before,.customize-screen-options-toggle:focus:before,.menu-delete:focus,.menu-item-bar .item-delete:focus:before,.wp-customizer .menu-item .submitbox .submitdelete:focus,.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}@media screen and (max-width:782px){#available-menu-items #available-menu-items-search .accordion-section-content{top:63px}}@media screen and (max-width:640px){#available-menu-items #available-menu-items-search .accordion-section-content{top:130px}} \ No newline at end of file
+#customize-theme-controls #accordion-section-menu_locations{position:relative;margin-top:30px}#customize-theme-controls #accordion-section-menu_locations>.accordion-section-title{border-bottom-color:#dcdcde;margin-top:15px}#customize-theme-controls .customize-section-title-menu_locations-description,#customize-theme-controls .customize-section-title-menu_locations-heading,#customize-theme-controls .customize-section-title-nav_menus-heading{padding:0 12px}#customize-theme-controls .customize-control-description.customize-section-title-menu_locations-description{font-style:normal}.menu-in-location,.menu-in-locations{display:block;font-weight:600;font-size:10px}#customize-controls .control-section .accordion-section-title:focus .menu-in-location,#customize-controls .control-section .accordion-section-title:hover .menu-in-location,#customize-controls .theme-location-set{color:#50575e}.customize-control-nav_menu_location .create-menu,.customize-control-nav_menu_location .edit-menu{margin-left:6px;vertical-align:middle;line-height:2.2}#customize-controls .customize-control-nav_menu_name{margin-bottom:12px}.customize-control-nav_menu_name p:last-of-type{margin-bottom:0}#customize-new-menu-submit{float:right;min-width:85px}.wp-customizer .menu-item-bar .menu-item-handle,.wp-customizer .menu-item-settings,.wp-customizer .menu-item-settings .description-thin{box-sizing:border-box}.wp-customizer .menu-item-bar{margin:0}.wp-customizer .menu-item-bar .menu-item-handle{width:100%;max-width:100%;background:#fff}.wp-customizer .menu-item-handle .item-title{margin-right:0}.wp-customizer .menu-item-handle .item-type{padding:1px 21px 0 5px;float:right;text-align:right}.wp-customizer .menu-item-handle:hover{z-index:8}.customize-control-nav_menu_item.has-notifications .menu-item-handle{border-left:4px solid #72aee6}.wp-customizer .menu-item-settings{max-width:100%;overflow:hidden;z-index:8;padding:10px;background:#f0f0f1;border:1px solid #8c8f94;border-top:none}.wp-customizer .menu-item-settings .description-thin{width:100%;height:auto;margin:0 0 8px}.wp-customizer .menu-item-settings input[type=text]{width:100%}.wp-customizer .menu-item-settings .submitbox{margin:0;padding:0}.wp-customizer .menu-item-settings .link-to-original{padding:5px 0;border:none;font-style:normal;margin:0;width:100%}.wp-customizer .menu-item .submitbox .submitdelete{float:left;margin:6px 0 0;padding:0;cursor:pointer}.menu-item-reorder-nav{display:none;background-color:#fff;position:absolute;top:0;right:0}.menus-move-left:before{content:"\f341"}.menus-move-right:before{content:"\f345"}.reordering .menu-item .item-controls,.reordering .menu-item .item-type{display:none}.reordering .menu-item-reorder-nav{display:block}.customize-control input.menu-name-field{width:100%}.wp-customizer .menu-item .item-edit{position:absolute;right:-19px;top:2px;display:block;width:30px;height:38px;margin-right:0!important;box-shadow:none;outline:0;overflow:hidden;cursor:pointer;text-align:center}.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:before{content:"\f142"}.wp-customizer .menu-item-settings p.description{font-style:normal}.wp-customizer .menu-settings dl{margin:12px 0 0;padding:0}.wp-customizer .menu-settings .checkbox-input{margin-top:8px}.wp-customizer .menu-settings .menu-theme-locations{border-top:1px solid #c3c4c7}.wp-customizer .menu-settings{margin-top:36px;border-top:none}.wp-customizer .menu-location-settings{margin-top:12px;border-top:none}.wp-customizer .control-section-nav_menu .menu-location-settings{margin-top:24px;border-top:1px solid #dcdcde}.customize-control-nav_menu_auto_add,.wp-customizer .control-section-nav_menu .menu-location-settings{padding-top:12px}.menu-location-settings .customize-control-checkbox .theme-location-set{line-height:1}.customize-control-nav_menu_auto_add label{vertical-align:top}.menu-location-settings .new-menu-locations-widget-note{display:block}.customize-control-menu{margin-top:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle{color:#50575e}.customize-screen-options-toggle{background:0 0;border:none;color:#50575e;cursor:pointer;margin:0;padding:20px;position:absolute;right:0;top:30px}#customize-controls .customize-info .customize-help-toggle{padding:20px}#customize-controls .customize-info .customize-help-toggle:before{padding:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.active-menu-screen-options .customize-screen-options-toggle,.customize-screen-options-toggle:active,.customize-screen-options-toggle:focus,.customize-screen-options-toggle:hover{color:#2271b1}#customize-controls .customize-info .customize-help-toggle:focus,.customize-screen-options-toggle:focus{outline:2px solid transparent}.customize-screen-options-toggle:before{-moz-osx-font-smoothing:grayscale;border:none;content:"\f111";display:block;font:18px/1 dashicons;padding:5px;text-align:center;text-decoration:none!important;text-indent:0;left:6px;position:absolute;top:6px}#customize-controls .customize-info .customize-help-toggle:focus:before,.customize-screen-options-toggle:focus:before{border-radius:100%}.wp-customizer #screen-options-wrap{display:none;background:#fff;border-top:1px solid #dcdcde;padding:4px 15px 15px}.wp-customizer .metabox-prefs label{display:block;padding-right:0;line-height:30px}.wp-customizer .toggle-indicator{display:inline-block;font-size:20px;line-height:1}.rtl .wp-customizer .toggle-indicator{text-indent:1px}#available-menu-items .accordion-section-title .toggle-indicator:before,.wp-customizer .menu-item .item-edit .toggle-indicator:before{content:"\f140";display:block;padding:1px 2px 1px 0;speak:never;border-radius:50%;color:#787c82;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}.control-section-nav_menu .field-css-classes,.control-section-nav_menu .field-description,.control-section-nav_menu .field-link-target,.control-section-nav_menu .field-title-attribute,.control-section-nav_menu .field-xfn{display:none}.control-section-nav_menu.field-css-classes-active .field-css-classes,.control-section-nav_menu.field-description-active .field-description,.control-section-nav_menu.field-link-target-active .field-link-target,.control-section-nav_menu.field-title-attribute-active .field-title-attribute,.control-section-nav_menu.field-xfn-active .field-xfn{display:block}.menu-item-depth-0{margin-left:0}.menu-item-depth-1{margin-left:20px}.menu-item-depth-2{margin-left:40px}.menu-item-depth-3{margin-left:60px}.menu-item-depth-4{margin-left:80px}.menu-item-depth-5{margin-left:100px}.menu-item-depth-6{margin-left:120px}.menu-item-depth-7{margin-left:140px}.menu-item-depth-8{margin-left:160px}.menu-item-depth-9{margin-left:180px}.menu-item-depth-10{margin-left:200px}.menu-item-depth-11{margin-left:220px}.menu-item-depth-0>.menu-item-bar{margin-right:0}.menu-item-depth-1>.menu-item-bar{margin-right:20px}.menu-item-depth-2>.menu-item-bar{margin-right:40px}.menu-item-depth-3>.menu-item-bar{margin-right:60px}.menu-item-depth-4>.menu-item-bar{margin-right:80px}.menu-item-depth-5>.menu-item-bar{margin-right:100px}.menu-item-depth-6>.menu-item-bar{margin-right:120px}.menu-item-depth-7>.menu-item-bar{margin-right:140px}.menu-item-depth-8>.menu-item-bar{margin-right:160px}.menu-item-depth-9>.menu-item-bar{margin-right:180px}.menu-item-depth-10>.menu-item-bar{margin-right:200px}.menu-item-depth-11>.menu-item-bar{margin-right:220px}.menu-item-depth-0 .menu-item-transport{margin-left:0}.menu-item-depth-1 .menu-item-transport{margin-left:-20px}.menu-item-depth-3 .menu-item-transport{margin-left:-60px}.menu-item-depth-4 .menu-item-transport{margin-left:-80px}.menu-item-depth-2 .menu-item-transport{margin-left:-40px}.menu-item-depth-5 .menu-item-transport{margin-left:-100px}.menu-item-depth-6 .menu-item-transport{margin-left:-120px}.menu-item-depth-7 .menu-item-transport{margin-left:-140px}.menu-item-depth-8 .menu-item-transport{margin-left:-160px}.menu-item-depth-9 .menu-item-transport{margin-left:-180px}.menu-item-depth-10 .menu-item-transport{margin-left:-200px}.menu-item-depth-11 .menu-item-transport{margin-left:-220px}.reordering .menu-item-depth-0{margin-left:0}.reordering .menu-item-depth-1{margin-left:15px}.reordering .menu-item-depth-2{margin-left:30px}.reordering .menu-item-depth-3{margin-left:45px}.reordering .menu-item-depth-4{margin-left:60px}.reordering .menu-item-depth-5{margin-left:75px}.reordering .menu-item-depth-6{margin-left:90px}.reordering .menu-item-depth-7{margin-left:105px}.reordering .menu-item-depth-8{margin-left:120px}.reordering .menu-item-depth-9{margin-left:135px}.reordering .menu-item-depth-10{margin-left:150px}.reordering .menu-item-depth-11{margin-left:165px}.reordering .menu-item-depth-0>.menu-item-bar{margin-right:0}.reordering .menu-item-depth-1>.menu-item-bar{margin-right:15px}.reordering .menu-item-depth-2>.menu-item-bar{margin-right:30px}.reordering .menu-item-depth-3>.menu-item-bar{margin-right:45px}.reordering .menu-item-depth-4>.menu-item-bar{margin-right:60px}.reordering .menu-item-depth-5>.menu-item-bar{margin-right:75px}.reordering .menu-item-depth-6>.menu-item-bar{margin-right:90px}.reordering .menu-item-depth-7>.menu-item-bar{margin-right:105px}.reordering .menu-item-depth-8>.menu-item-bar{margin-right:120px}.reordering .menu-item-depth-9>.menu-item-bar{margin-right:135px}.reordering .menu-item-depth-10>.menu-item-bar{margin-right:150px}.reordering .menu-item-depth-11>.menu-item-bar{margin-right:165px}.control-section-nav_menu.menu .menu-item-edit-active{margin-left:0}.control-section-nav_menu.menu .menu-item-edit-active .menu-item-bar{margin-right:0}.control-section-nav_menu.menu .sortable-placeholder{margin-top:0;margin-bottom:1px;max-width:calc(100% - 2px);float:left;display:list-item;border-color:#a7aaad}.menu-item-transport li.customize-control{float:none}.control-section-nav_menu.menu ul.menu-item-transport .menu-item-bar{margin-top:0}.adding-menu-items .control-section{opacity:.4}.adding-menu-items .control-panel.control-section,.adding-menu-items .control-section.open{opacity:1}.menu-item-bar .item-delete{color:#d63638;position:absolute;top:2px;right:-19px;width:30px;height:38px;cursor:pointer;display:none}.menu-item-bar .item-delete:before{content:"\f335";position:absolute;top:9px;left:5px;border-radius:50%;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.menu-item-bar .item-delete:focus,.menu-item-bar .item-delete:hover{box-shadow:none;outline:0;color:#d63638}.adding-menu-items .menu-item-bar .item-edit{display:none}.adding-menu-items .menu-item-bar .item-delete{display:block}#available-menu-items.opening{overflow-y:hidden}#available-menu-items #available-menu-items-search.open{height:100%;border-bottom:none}#available-menu-items .accordion-section-title{border-left:none;border-right:none;background:#fff;transition:background-color .15s;-webkit-user-select:auto;user-select:auto}#available-menu-items #available-menu-items-search .accordion-section-title,#available-menu-items .open .accordion-section-title{background:#f0f0f1}#available-menu-items .accordion-section-title:after{content:none!important}#available-menu-items .accordion-section-title:hover .toggle-indicator:before,#available-menu-items .button-link:focus .toggle-indicator:before,#available-menu-items .button-link:hover .toggle-indicator:before{color:#1d2327}#available-menu-items .open .accordion-section-title .toggle-indicator:before{content:"\f142";color:#1d2327}#available-menu-items .available-menu-items-list{overflow-y:auto;max-height:200px;background:0 0}#available-menu-items .accordion-section-title button{display:block;width:28px;height:35px;position:absolute;top:5px;right:5px;box-shadow:none;outline:0;cursor:pointer;text-align:center}#available-menu-items .accordion-section-title .no-items,#available-menu-items .cannot-expand .accordion-section-title .spinner,#available-menu-items .cannot-expand .accordion-section-title>button:not(#available-menu-items-search button.is-visible){display:none}#available-menu-items-search.cannot-expand .accordion-section-title .spinner{display:block}#available-menu-items .cannot-expand .accordion-section-title .no-items{float:right;color:#50575e;font-weight:400;margin-left:5px}#available-menu-items .accordion-section-content{max-height:290px;margin:0;padding:0;position:relative;background:0 0}#available-menu-items .accordion-section-content .available-menu-items-list{margin:0 0 64px;padding:1px 15px 15px}#available-menu-items .accordion-section-content .available-menu-items-list:only-child{margin-bottom:0}#new-custom-menu-item .accordion-section-content{padding:0 15px 15px}#available-menu-items .menu-item-tpl{margin:0}#available-menu-items .new-content-item .create-item-input.invalid,#available-menu-items .new-content-item .create-item-input.invalid:focus,#custom-menu-item-name.invalid,#custom-menu-item-url.invalid,.edit-menu-item-url.invalid,.menu-name-field.invalid,.menu-name-field.invalid:focus{border:1px solid #d63638}#available-menu-items .menu-item-handle .item-type{padding-right:0}#available-menu-items .menu-item-handle .item-title{padding-left:20px}#available-menu-items .menu-item-handle{cursor:pointer}#available-menu-items .menu-item-handle{box-shadow:none;margin-top:-1px}#available-menu-items .menu-item-handle:hover{z-index:1}#available-menu-items .item-title h4{padding:0 0 5px;font-size:14px}#available-menu-items .item-add{position:absolute;top:1px;left:1px;color:#8c8f94;width:30px;height:38px;box-shadow:none;outline:0;cursor:pointer;text-align:center}#available-menu-items .menu-item-handle .item-add:focus{color:#1d2327}#available-menu-items .item-add:before{content:"\f543";position:relative;left:2px;top:3px;display:inline-block;height:20px;border-radius:50%;font:normal 20px/1.05 dashicons}#available-menu-items .menu-item-handle.item-added .item-add:focus,#available-menu-items .menu-item-handle.item-added .item-title,#available-menu-items .menu-item-handle.item-added .item-type,#available-menu-items .menu-item-handle.item-added:hover .item-add{color:#8c8f94}#available-menu-items .menu-item-handle.item-added .item-add:before{content:"\f147"}#available-menu-items .accordion-section-title.loading .spinner,#available-menu-items-search.loading .accordion-section-title .spinner{visibility:visible;margin:0 20px}#available-menu-items-search .spinner{position:absolute;bottom:20px;right:21px;margin:0!important}#available-menu-items #available-menu-items-search .accordion-section-content{position:absolute;left:0;top:75px;bottom:0;max-height:none;width:100%;padding:1px 15px 15px;box-sizing:border-box}#available-menu-items-search .nothing-found{margin-top:-1px}#available-menu-items-search .accordion-section-title:after{display:none}#available-menu-items-search .accordion-section-content:empty{min-height:0;padding:0}#available-menu-items-search.loading .accordion-section-content div{opacity:.5}#available-menu-items-search.loading.loading-more .accordion-section-content div{opacity:1}#customize-preview{transition:all .2s}body.adding-menu-items #available-menu-items{left:0;visibility:visible}body.adding-menu-items .wp-full-overlay-main{left:300px}body.adding-menu-items #customize-preview{opacity:.4}body.adding-menu-items #customize-preview iframe{pointer-events:none}.menu-item-handle .spinner{display:none;float:left;margin:0 8px 0 0}.nav-menu-inserted-item-loading .spinner{display:block}.nav-menu-inserted-item-loading .menu-item-handle .item-type{padding:0 0 0 8px}.added-menu-item .menu-item-handle.loading,.nav-menu-inserted-item-loading .menu-item-handle{padding:10px 15px 10px 8px;cursor:default;opacity:.5;background:#fff;color:#787c82}.added-menu-item .menu-item-handle{transition-property:opacity,background,color;transition-duration:1.25s;transition-timing-function:cubic-bezier(.25,-2.5,.75,8)}#customize-theme-controls .control-panel-content .control-section-nav_menu:nth-last-child(2) .accordion-section-title{border-bottom-color:#dcdcde}#accordion-section-add_menu{margin:15px 12px}#accordion-section-add_menu h3{text-align:right}#accordion-section-add_menu .customize-add-menu-button,#accordion-section-add_menu h3{margin:0}#accordion-section-add_menu .customize-add-menu-button{font-weight:400}#create-new-menu-submit{float:right;margin:0 0 12px}.menu-delete-item{float:left;padding:1em 0;width:100%}.assigned-menu-locations-title p{margin:0 0 8px}li.assigned-to-menu-location .menu-delete-item{display:none}li.assigned-to-menu-location .add-new-menu-item{margin-bottom:1em}.menu-item-handle{margin-top:-1px}.ui-sortable-disabled .menu-item-handle{cursor:default}.menu-item-handle:hover{position:relative;z-index:10;color:#2271b1}#available-menu-items .menu-item-handle:hover .item-add,.menu-item-handle:hover .item-edit,.menu-item-handle:hover .item-type{color:#2271b1}.menu-item-edit-active .menu-item-handle{border-color:#8c8f94;border-bottom:none}.customize-control-nav_menu_item{margin-bottom:0}.customize-control-nav_menu .new-menu-item-invitation{margin-top:0;margin-bottom:0}.customize-control-nav_menu .customize-control-nav_menu-buttons{margin-top:12px}#available-menu-items .item-add:focus:before,#customize-controls .customize-info .customize-help-toggle:focus:before,.customize-screen-options-toggle:focus:before,.menu-delete:focus,.menu-item-bar .item-delete:focus:before,.wp-customizer .menu-item .submitbox .submitdelete:focus,.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}@media screen and (max-width:782px){#available-menu-items #available-menu-items-search .accordion-section-content{top:63px}}@media screen and (max-width:640px){#available-menu-items #available-menu-items-search .accordion-section-content{top:146px}} \ No newline at end of file
diff --git a/wp-admin/css/forms-rtl.css b/wp-admin/css/forms-rtl.css
index caafa5d..19d2f98 100644
--- a/wp-admin/css/forms-rtl.css
+++ b/wp-admin/css/forms-rtl.css
@@ -721,8 +721,13 @@ fieldset label,
}
p.search-box {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ column-gap: 0.5rem;
+ position: relative;
float: left;
- margin: 0;
+ margin: 11px 0;
}
.network-admin.themes-php p.search-box {
diff --git a/wp-admin/css/forms-rtl.min.css b/wp-admin/css/forms-rtl.min.css
index 75a7db6..c2e846c 100644
--- a/wp-admin/css/forms-rtl.min.css
+++ b/wp-admin/css/forms-rtl.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-button,input,select,textarea{box-sizing:border-box;font-family:inherit;font-size:inherit;font-weight:inherit}input,textarea{font-size:14px}textarea{overflow:auto;padding:2px 6px;line-height:1.42857143;resize:vertical}input,select{margin:0 1px}textarea.code{padding:4px 6px 1px}input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,textarea{box-shadow:0 0 0 transparent;border-radius:4px;border:1px solid #8c8f94;background-color:#fff;color:#2c3338}input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week]{padding:0 8px;line-height:2;min-height:30px}::-webkit-datetime-edit{line-height:1.85714286}input[type=checkbox]:focus,input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=radio]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}input[type=email],input[type=url]{direction:ltr}input[type=checkbox],input[type=radio]{border:1px solid #8c8f94;border-radius:4px;background:#fff;color:#50575e;clear:none;cursor:pointer;display:inline-block;line-height:0;height:1rem;margin:-.25rem 0 0 .25rem;outline:0;padding:0!important;text-align:center;vertical-align:middle;width:1rem;min-width:1rem;-webkit-appearance:none;box-shadow:inset 0 1px 2px rgba(0,0,0,.1);transition:.05s border-color ease-in-out}input[type=radio]:checked+label:before{color:#8c8f94}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#135e96}.wp-admin p input[type=checkbox],.wp-admin p input[type=radio],td>input[type=checkbox]{margin-top:0}.wp-admin p label input[type=checkbox]{margin-top:-4px}.wp-admin p label input[type=radio]{margin-top:-2px}input[type=radio]{border-radius:50%;margin-left:.25rem;line-height:.71428571}input[type=checkbox]:checked::before,input[type=radio]:checked::before{float:right;display:inline-block;vertical-align:middle;width:1rem;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[type=checkbox]:checked::before{content:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%233582c4%27%2F%3E%3C%2Fsvg%3E");margin:-.1875rem -.25rem 0 0;height:1.3125rem;width:1.3125rem}input[type=radio]:checked::before{content:"";border-radius:50%;width:.5rem;height:.5rem;margin:.1875rem;background-color:#3582c4;line-height:1.14285714}@-moz-document url-prefix(){.form-table input.tog,input[type=checkbox],input[type=radio]{margin-bottom:-1px}}input[type=search]{-webkit-appearance:textfield}input[type=search]::-webkit-search-decoration{display:none}.wp-admin input[type=file]{padding:3px 0;cursor:pointer}input.readonly,input[readonly],textarea.readonly,textarea[readonly]{background-color:#f0f0f1}::-webkit-input-placeholder{color:#646970}::-moz-placeholder{color:#646970;opacity:1}:-ms-input-placeholder{color:#646970}.form-invalid .form-required,.form-invalid .form-required:focus,.form-invalid.form-required input,.form-invalid.form-required input:focus,.form-invalid.form-required select,.form-invalid.form-required select:focus{border-color:#d63638!important;box-shadow:0 0 2px rgba(214,54,56,.8)}.form-table .form-required.form-invalid td:after{content:"\f534";font:normal 20px/1 dashicons;color:#d63638;margin-right:-25px;vertical-align:middle}.form-table .form-required.user-pass1-wrap.form-invalid td:after{content:""}.form-table .form-required.user-pass1-wrap.form-invalid .password-input-wrapper:after{content:"\f534";font:normal 20px/1 dashicons;color:#d63638;margin:0 -29px 0 6px;vertical-align:middle}.form-input-tip{color:#646970}input.disabled,input:disabled,select.disabled,select:disabled,textarea.disabled,textarea:disabled{background:rgba(255,255,255,.5);border-color:rgba(220,220,222,.75);box-shadow:inset 0 1px 2px rgba(0,0,0,.04);color:rgba(44,51,56,.5)}input[type=file].disabled,input[type=file]:disabled,input[type=file][aria-disabled=true],input[type=range].disabled,input[type=range]:disabled,input[type=range][aria-disabled=true]{background:0 0;box-shadow:none;cursor:default}input[type=checkbox].disabled,input[type=checkbox].disabled:checked:before,input[type=checkbox]:disabled,input[type=checkbox]:disabled:checked:before,input[type=checkbox][aria-disabled=true],input[type=radio].disabled,input[type=radio].disabled:checked:before,input[type=radio]:disabled,input[type=radio]:disabled:checked:before,input[type=radio][aria-disabled=true]{opacity:.7;cursor:default}.wp-core-ui select{font-size:14px;line-height:2;color:#2c3338;border-color:#8c8f94;box-shadow:none;border-radius:3px;padding:0 8px 0 24px;min-height:30px;max-width:25rem;-webkit-appearance:none;background:#fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat left 5px top 55%;background-size:16px 16px;cursor:pointer;vertical-align:middle}.wp-core-ui select:hover{color:#2271b1}.wp-core-ui select:focus{border-color:#2271b1;color:#0a4b78;box-shadow:0 0 0 1px #2271b1}.wp-core-ui select:active{border-color:#8c8f94;box-shadow:none}.wp-core-ui select.disabled,.wp-core-ui select:disabled{color:#a7aaad;border-color:#dcdcde;background-color:#f6f7f7;background-image:url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23a0a5aa%22%2F%3E%3C%2Fsvg%3E');box-shadow:none;text-shadow:0 1px 0 #fff;cursor:default;transform:none}.wp-core-ui select[aria-disabled=true]{cursor:default}.wp-core-ui select:-moz-focusring{color:transparent;text-shadow:0 0 0 #0a4b78}.wp-core-ui select::-ms-value{background:0 0;color:#50575e}.wp-core-ui select:hover::-ms-value{color:#2271b1}.wp-core-ui select:focus::-ms-value{color:#0a4b78}.wp-core-ui select.disabled::-ms-value,.wp-core-ui select:disabled::-ms-value{color:#a7aaad}.wp-core-ui select::-ms-expand{display:none}.wp-admin .button-cancel{display:inline-block;min-height:28px;padding:0 5px;line-height:2}.meta-box-sortables select{max-width:100%}.meta-box-sortables input{vertical-align:middle}.misc-pub-post-status select{margin-top:0}.wp-core-ui select[multiple]{height:auto;padding-left:8px;background:#fff}.submit{padding:1.5em 0;margin:5px 0;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:none}form p.submit a.cancel:hover{text-decoration:none}p.submit{text-align:right;max-width:100%;margin-top:20px;padding-top:10px}.textright p.submit{border:none;text-align:left}table.form-table+input+input+p.submit,table.form-table+input+p.submit,table.form-table+p.submit{border-top:none;padding-top:0}#major-publishing-actions input,#minor-publishing-actions .preview,#minor-publishing-actions input{text-align:center}input.all-options,textarea.all-options{width:250px}input.large-text,textarea.large-text{width:99%}.regular-text{width:25em}input.small-text{width:50px;padding:0 6px}label input.small-text{margin-top:-4px}input[type=number].small-text{width:65px;padding-left:0}input.tiny-text{width:35px}input[type=number].tiny-text{width:45px;padding-left:0}#doaction,#doaction2,#post-query-submit{margin:0 0 0 8px}.no-js input#changeit2,.no-js input#doaction2,.no-js label[for=bulk-action-selector-bottom],.no-js label[for=new_role2],.no-js select#bulk-action-selector-bottom,.no-js select#new_role2{display:none}.tablenav .actions select{float:right;margin-left:6px;max-width:12.5rem}#timezone_string option{margin-right:1em}.wp-cancel-pw>.dashicons,.wp-hide-pw>.dashicons{position:relative;top:3px;width:1.25rem;height:1.25rem;top:.25rem;font-size:20px}.wp-cancel-pw .dashicons-no{display:none}#your-profile label+a,label{vertical-align:middle}#your-profile label+a,fieldset label{vertical-align:middle}.options-media-php [for*="_size_"]{min-width:10em;vertical-align:baseline}.options-media-php .small-text[name*="_size_"]{margin:0 0 1em}.wp-generate-pw{margin-top:1em;position:relative}.wp-pwd button{height:min-content}.wp-pwd button.pwd-toggle .dashicons{position:relative;top:.25rem}.wp-pwd{margin-top:1em;position:relative}.mailserver-pass-wrap .wp-pwd{display:inline-block;margin-top:0}#mailserver_pass{padding-right:2.5rem}.mailserver-pass-wrap .button.wp-hide-pw{background:0 0;border:1px solid transparent;box-shadow:none;font-size:14px;line-height:2;width:2.5rem;min-width:40px;margin:0;padding:0 9px;position:absolute;right:0;top:0}.mailserver-pass-wrap .button.wp-hide-pw:hover{background:0 0;border-color:transparent}.mailserver-pass-wrap .button.wp-hide-pw:focus{background:0 0;border-color:#3582c4;border-radius:4px;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.mailserver-pass-wrap .button.wp-hide-pw:active{background:0 0;box-shadow:none;transform:none}#misc-publishing-actions label{vertical-align:baseline}#pass-strength-result{background-color:#f0f0f1;border:1px solid #dcdcde;color:#1d2327;margin:-1px 1px 5px;padding:3px 5px;text-align:center;width:25em;box-sizing:border-box;opacity:0}#pass-strength-result.short{background-color:#ffabaf;border-color:#e65054;opacity:1}#pass-strength-result.bad{background-color:#facfd2;border-color:#f86368;opacity:1}#pass-strength-result.good{background-color:#f5e6ab;border-color:#f0c33c;opacity:1}#pass-strength-result.strong{background-color:#b8e6bf;border-color:#68de7c;opacity:1}.password-input-wrapper{display:inline-block}.password-input-wrapper input{font-family:Consolas,Monaco,monospace}#pass1-text.short,#pass1.short{border-color:#e65054}#pass1-text.bad,#pass1.bad{border-color:#f86368}#pass1-text.good,#pass1.good{border-color:#f0c33c}#pass1-text.strong,#pass1.strong{border-color:#68de7c}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.pw-weak{display:none}.indicator-hint{padding-top:8px}.wp-pwd [type=password],.wp-pwd [type=text]{margin-bottom:0;min-height:30px}.wp-pwd input::-ms-reveal{display:none}#pass1-text,.show-password #pass1{display:none}#pass1-text::-ms-clear{display:none}.show-password #pass1-text{display:inline-block}p.search-box{float:left;margin:0}.network-admin.themes-php p.search-box{clear:right}.search-box input[name="s"],.tablenav .search-plugins input[name="s"],.tagsdiv .newtag{float:right;margin:0 0 0 4px}.js.plugins-php .search-box .wp-filter-search{margin:0;width:280px}input[type=email].ui-autocomplete-loading,input[type=text].ui-autocomplete-loading{background-image:url(../images/loading.gif);background-repeat:no-repeat;background-position:left 5px center;visibility:visible}input.ui-autocomplete-input.open{border-bottom-color:transparent}ul#add-to-blog-users{margin:0 14px 0 0}.ui-autocomplete{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;border:1px solid #4f94d4;box-shadow:0 1px 2px rgba(79,148,212,.8);background-color:#fff}.ui-autocomplete li{margin-bottom:0;padding:4px 10px;white-space:nowrap;text-align:right;cursor:pointer}.ui-autocomplete .ui-state-focus{background-color:#dcdcde}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:#2271b1;color:#fff;outline:2px solid transparent}.button-add-site-icon{width:100%;cursor:pointer;text-align:center;border:1px dashed #c3c4c7;box-sizing:border-box;padding:9px 0;line-height:1.6;max-width:270px}.button-add-site-icon:focus,.button-add-site-icon:hover{background:#fff}.site-icon-section .favicon-preview{float:right}.site-icon-section .app-icon-preview{float:right;margin:0 20px}.site-icon-section .site-icon-preview img{max-width:100%}.button-add-site-icon:focus{background-color:#fff;border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.form-table{border-collapse:collapse;margin-top:.5em;width:100%;clear:both}.form-table,.form-table td,.form-table td p,.form-table th{font-size:14px}.form-table td{margin-bottom:9px;padding:15px 10px;line-height:1.3;vertical-align:middle}.form-table th,.form-wrap label{color:#1d2327;font-weight:400;text-shadow:none;vertical-align:baseline}.form-table th{vertical-align:top;text-align:right;padding:20px 0 20px 10px;width:200px;line-height:1.3;font-weight:600}.form-table .td-full,.form-table th.th-full{width:auto;padding:20px 0 20px 10px;font-weight:400}.form-table td p{margin-top:4px;margin-bottom:0}.form-table .date-time-doc{margin-top:1em}.form-table p.timezone-info{margin:1em 0;display:flex;flex-direction:column}#local-time{margin-top:.5em}.form-table td fieldset label{margin:.35em 0 .5em!important;display:inline-block}.form-table td fieldset p label{margin-top:0!important}.form-table td fieldset label,.form-table td fieldset li,.form-table td fieldset p{line-height:1.4}.form-table input.tog,.form-table input[type=radio]{margin-top:-4px;margin-left:4px;float:none}.form-table .pre{padding:8px;margin:0}table.form-table td .updated{font-size:13px}table.form-table td .updated p{font-size:13px;margin:.3em 0}#profile-page .form-table textarea{width:500px;margin-bottom:6px}#profile-page .form-table #rich_editing{margin-left:5px}#your-profile legend{font-size:22px}#display_name{width:15em}#adduser .form-field input,#createuser .form-field input{width:25em}.color-option{display:inline-block;width:24%;padding:5px 15px 15px;box-sizing:border-box;margin-bottom:3px}.color-option.selected,.color-option:hover{background:#dcdcde}.color-palette{display:table;width:100%;border-spacing:0;border-collapse:collapse}.color-palette .color-palette-shade,.color-palette td{display:table-cell;height:20px;padding:0;border:none}.color-option{cursor:pointer}.create-application-password .form-field{max-width:25em}.create-application-password label{font-weight:600}.create-application-password p.submit{margin-bottom:0;padding-bottom:0;display:block}#application-passwords-section .notice{margin-top:20px;margin-bottom:0;word-wrap:break-word}.application-password-display input.code{width:19em}.auth-app-card.card{max-width:768px}.authorize-application-php .form-wrap p{display:block}.tool-box .title{margin:8px 0;font-size:18px;font-weight:400;line-height:24px}.label-responsive{vertical-align:middle}#export-filters p{margin:0 0 1em}#export-filters p.submit{margin:7px 0 5px}.card{position:relative;margin-top:20px;padding:.7em 2em 1em;min-width:255px;max-width:520px;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff;box-sizing:border-box}.pressthis h4{margin:2em 0 1em}.pressthis textarea{width:100%;font-size:1em}#pressthis-code-wrap{overflow:auto}.pressthis-bookmarklet-wrapper{margin:20px 0 8px;vertical-align:top;position:relative;z-index:1}.pressthis-bookmarklet,.pressthis-bookmarklet:active,.pressthis-bookmarklet:focus,.pressthis-bookmarklet:hover{display:inline-block;position:relative;cursor:move;color:#2c3338;background:#dcdcde;border-radius:5px;border:1px solid #c3c4c7;font-style:normal;line-height:16px;font-size:14px;text-decoration:none}.pressthis-bookmarklet:active{outline:0}.pressthis-bookmarklet:after{content:"";width:70%;height:55%;z-index:-1;position:absolute;left:10px;bottom:9px;background:0 0;transform:skew(-20deg) rotate(-6deg);box-shadow:0 10px 8px rgba(0,0,0,.6)}.pressthis-bookmarklet:hover:after{transform:skew(-20deg) rotate(-9deg);box-shadow:0 10px 8px rgba(0,0,0,.7)}.pressthis-bookmarklet span{display:inline-block;margin:0;padding:0 9px 8px 12px}.pressthis-bookmarklet span:before{color:#787c82;font:normal 20px/1 dashicons;content:"\f157";position:relative;display:inline-block;top:4px;margin-left:4px}.pressthis-js-toggle{margin-right:10px;padding:0;height:auto;vertical-align:top}.pressthis-js-toggle.button.button{margin-right:10px;padding:0;height:auto;vertical-align:top}.pressthis-js-toggle .dashicons{margin:5px 7px 6px 8px;color:#50575e}.timezone-info code{white-space:nowrap}.defaultavatarpicker .avatar{margin:2px 0;vertical-align:middle}.options-general-php .date-time-text{display:inline-block;min-width:10em}.options-general-php input.small-text{width:56px;margin:-2px 0}.options-general-php .spinner{float:none;margin:-3px 3px 0}.options-general-php .language-install-spinner,.profile-php .language-install-spinner,.settings-php .language-install-spinner,.user-edit-php .language-install-spinner{display:inline-block;float:none;margin:-3px 5px 0;vertical-align:middle}.form-table.permalink-structure .available-structure-tags{margin-top:8px}.form-table.permalink-structure .available-structure-tags ul{display:flex;flex-wrap:wrap;margin:8px 0 0}.form-table.permalink-structure .available-structure-tags li{margin:6px 0 0 5px}.form-table.permalink-structure .available-structure-tags li:last-child{margin-left:0}.form-table.permalink-structure .structure-selection .row{margin-bottom:16px}.form-table.permalink-structure .structure-selection .row>div{max-width:calc(100% - 24px);display:inline-flex;flex-direction:column}.form-table.permalink-structure .structure-selection .row label{font-weight:600}.form-table.permalink-structure .structure-selection .row p{margin-top:0}.setup-php textarea{max-width:100%}.form-field #site-address{max-width:25em}.form-field #domain{max-width:22em}.form-field #admin-email,.form-field #blog_last_updated,.form-field #blog_registered,.form-field #path,.form-field #site-title{max-width:25em}.form-field #path{margin-bottom:5px}#search-sites,#search-users{max-width:60%}.configuration-rules-label{font-weight:600;margin-bottom:4px}.request-filesystem-credentials-dialog{display:none;visibility:visible}.request-filesystem-credentials-dialog .notification-dialog{top:10%;max-height:85%}.request-filesystem-credentials-dialog-content{margin:25px}#request-filesystem-credentials-title{font-size:1.3em;margin:1em 0}.request-filesystem-credentials-form legend{font-size:1em;padding:1.33em 0;font-weight:600}.request-filesystem-credentials-form input[type=password],.request-filesystem-credentials-form input[type=text]{display:block}.request-filesystem-credentials-dialog input[type=password],.request-filesystem-credentials-dialog input[type=text]{width:100%}.request-filesystem-credentials-form .field-title{font-weight:600}.request-filesystem-credentials-dialog label[for=hostname],.request-filesystem-credentials-dialog label[for=private_key],.request-filesystem-credentials-dialog label[for=public_key]{display:block;margin-bottom:1em}.request-filesystem-credentials-dialog .ftp-password,.request-filesystem-credentials-dialog .ftp-username{float:right;width:48%}.request-filesystem-credentials-dialog .ftp-password{margin-right:4%}.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons{text-align:left}.request-filesystem-credentials-dialog label[for=ftp]{margin-left:10px}.request-filesystem-credentials-dialog #auth-keys-desc{margin-bottom:0}#request-filesystem-credentials-dialog .button:not(:last-child){margin-left:10px}#request-filesystem-credentials-form .cancel-button{display:none}#request-filesystem-credentials-dialog .cancel-button{display:inline}.request-filesystem-credentials-dialog .ftp-password,.request-filesystem-credentials-dialog .ftp-username{float:none;width:auto}.request-filesystem-credentials-dialog .ftp-username{margin-bottom:1em}.request-filesystem-credentials-dialog .ftp-password{margin:0}.request-filesystem-credentials-dialog .ftp-password em{color:#8c8f94}.request-filesystem-credentials-dialog label{display:block;line-height:1.5;margin-bottom:1em}.request-filesystem-credentials-form legend{padding-bottom:0}.request-filesystem-credentials-form #ssh-keys legend{font-size:1.3em}.request-filesystem-credentials-form .notice{margin:0 0 20px;clear:both}.tools-privacy-policy-page form{margin-bottom:1.3em}.tools-privacy-policy-page input.button{margin:0 6px 0 1px}.tools-privacy-policy-page select{margin:0 6px .5em 1px}.tools-privacy-edit{margin:1.5em 0}.tools-privacy-policy-page span{line-height:2}.privacy_requests .column-email{width:40%}.privacy_requests .column-type{text-align:center}.privacy_requests tfoot td:first-child,.privacy_requests thead td:first-child{border-right:4px solid #fff}.privacy_requests tbody th{border-right:4px solid #fff;background:#fff;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.privacy_requests .row-actions{color:#787c82}.privacy_requests .row-actions.processing{position:static}.privacy_requests tbody .has-request-results th{box-shadow:none}.privacy_requests tbody .request-results th .notice{margin:0 0 5px}.privacy_requests tbody td{background:#fff;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.privacy_requests tbody .has-request-results td{box-shadow:none}.privacy_requests .next_steps .button{word-wrap:break-word;white-space:normal}.privacy_requests .status-request-confirmed td,.privacy_requests .status-request-confirmed th{background-color:#fff;border-right-color:#72aee6}.privacy_requests .status-request-failed td,.privacy_requests .status-request-failed th{background-color:#f6f7f7;border-right-color:#d63638}.privacy_requests .export_personal_data_failed a{vertical-align:baseline}.status-label{font-weight:600}.status-label.status-request-pending{font-weight:400;font-style:italic;color:#646970}.status-label.status-request-failed{color:#d63638;font-weight:600}.wp-privacy-request-form{clear:both}.wp-privacy-request-form-field{margin:1.5em 0}.wp-privacy-request-form input{margin:0}.email-personal-data::before{display:inline-block;font:normal 20px/1 dashicons;margin:3px -2px 0 5px;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.email-personal-data--sending::before{color:#d63638;content:"\f463";animation:rotation 2s infinite linear}.email-personal-data--sent::before{color:#68de7c;content:"\f147"}@media screen and (max-width:782px){textarea{-webkit-appearance:none}input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week]{-webkit-appearance:none;padding:3px 10px;min-height:40px}::-webkit-datetime-edit{line-height:1.875}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox],input[type=checkbox]{-webkit-appearance:none}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox]{margin-bottom:8px}.widefat tfoot td input[type=checkbox]:before,.widefat th input[type=checkbox]:before,.widefat thead td input[type=checkbox]:before,input[type=checkbox]:checked:before{width:1.875rem;height:1.875rem;margin:-.1875rem -.3125rem}input[type=checkbox],input[type=radio]{height:1.5625rem;width:1.5625rem}.wp-admin p input[type=checkbox],.wp-admin p input[type=radio]{margin-top:-.1875rem}input[type=radio]:checked:before{vertical-align:middle;width:.5625rem;height:.5625rem;margin:.4375rem;line-height:.76190476}.wp-upload-form input[type=submit]{margin-top:10px}.wp-admin .form-table select,.wp-core-ui select{min-height:40px;font-size:16px;line-height:1.625;padding:5px 8px 5px 24px}.wp-admin .button-cancel{margin-bottom:0;padding:2px 0;font-size:14px;vertical-align:middle}#adduser .form-field input,#createuser .form-field input{width:100%}.form-table{box-sizing:border-box}.form-table td,.form-table th,.label-responsive{display:block;width:auto;vertical-align:middle}.label-responsive{margin:.5em 0}.export-filters li{margin-bottom:0}.form-table .color-palette .color-palette-shade,.form-table .color-palette td{display:table-cell;width:15px;height:30px;padding:0}.form-table .color-palette{margin-left:10px}input,textarea{font-size:16px}#profile-page .form-table textarea,.form-table span.description,.form-table td input[type=email],.form-table td input[type=password],.form-table td input[type=text],.form-table td select,.form-table td textarea{width:100%;display:block;max-width:none;box-sizing:border-box}.form-table .form-required.form-invalid td:after{float:left;margin:-30px 0 0 3px}.form-table input[type=text].small-text,input[type=number].small-text,input[type=password].small-text,input[type=search].small-text,input[type=text].small-text{width:auto;max-width:4.375em;display:inline;padding:3px 6px;margin:0 3px}.form-table .regular-text~input[type=text].small-text{margin-top:5px}#pass-strength-result{width:100%;box-sizing:border-box;padding:8px}.password-input-wrapper{display:block}p.search-box{float:none;width:100%;margin-bottom:20px;display:flex}p.search-box input[name="s"]{float:none;width:100%;margin-bottom:10px;vertical-align:middle}p.search-box input[type=submit]{margin-bottom:10px}.form-table span.description{display:inline;padding:4px 0 0;line-height:1.4;font-size:14px}.form-table th{padding:10px 0 0;border-bottom:0}.form-table td{margin-bottom:0;padding:4px 0 6px}.form-table.permalink-structure td code{display:inline-block}.form-table.permalink-structure .structure-selection{margin-top:8px}.form-table.permalink-structure .structure-selection .row>div{max-width:calc(100% - 36px);width:100%}.form-table.permalink-structure td input[type=text]{margin-top:4px}.form-table input.regular-text{width:100%}.form-table label{font-size:14px}.form-table td>label:first-child{display:inline-block;margin-top:.35em}.background-position-control .button-group>label{font-size:0}.form-table fieldset label{display:block}.form-field #domain{max-width:none}.wp-pwd{position:relative}#profile-page .form-table #pass1{padding-left:90px}.wp-pwd button.button{background:0 0;border:1px solid transparent;box-shadow:none;line-height:2;margin:0;padding:5px 9px;position:absolute;left:0;top:0;width:2.375rem;height:2.375rem;min-width:40px;min-height:40px}.wp-pwd button.wp-hide-pw{left:2.5rem}body.user-new-php .wp-pwd button.wp-hide-pw{left:0}.wp-pwd button.button:focus,.wp-pwd button.button:hover{background:0 0}.wp-pwd button.button:active{background:0 0;box-shadow:none;transform:none}.wp-pwd .button .text{display:none}.wp-pwd [type=password],.wp-pwd [type=text]{line-height:2;padding-left:5rem}body.user-new-php .wp-pwd [type=password],body.user-new-php .wp-pwd [type=text]{padding-left:2.5rem}.wp-cancel-pw .dashicons-no{display:inline-block}.mailserver-pass-wrap .wp-pwd{display:block}#mailserver_pass{padding-left:10px}.options-general-php input[type=text].small-text{max-width:6.25em;margin:0}.tools-privacy-policy-page form.wp-create-privacy-page{margin-bottom:1em}.tools-privacy-policy-page input#set-page,.tools-privacy-policy-page select{margin:10px 0 0}.tools-privacy-policy-page .wp-create-privacy-page span{display:block;margin-bottom:1em}.tools-privacy-policy-page .wp-create-privacy-page .button{margin-right:0}.wp-list-table.privacy_requests tr:not(.inline-edit-row):not(.no-items) td.column-primary:not(.check-column){display:table-cell}.wp-list-table.privacy_requests.widefat th input,.wp-list-table.privacy_requests.widefat thead td input{margin-right:5px}.wp-privacy-request-form-field input[type=text]{width:100%;margin-bottom:10px;vertical-align:middle}.regular-text{max-width:100%}}@media only screen and (max-width:768px){.form-field input[type=email],.form-field input[type=password],.form-field input[type=text],.form-field select,.form-field textarea{width:99%}.form-wrap .form-field{padding:0}}@media only screen and (max-height:480px),screen and (max-width:450px){.file-editor-warning .notification-dialog,.request-filesystem-credentials-dialog .notification-dialog{width:100%;height:100%;max-height:100%;position:fixed;top:0;margin:0;right:0}}@media screen and (max-width:600px){.color-option{width:49%}}@media only screen and (max-width:320px){.options-general-php .date-time-text.date-time-custom-text{min-width:0;margin-left:.5em}}@keyframes rotation{0%{transform:rotate(0)}100%{transform:rotate(-359deg)}} \ No newline at end of file
+button,input,select,textarea{box-sizing:border-box;font-family:inherit;font-size:inherit;font-weight:inherit}input,textarea{font-size:14px}textarea{overflow:auto;padding:2px 6px;line-height:1.42857143;resize:vertical}input,select{margin:0 1px}textarea.code{padding:4px 6px 1px}input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,textarea{box-shadow:0 0 0 transparent;border-radius:4px;border:1px solid #8c8f94;background-color:#fff;color:#2c3338}input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week]{padding:0 8px;line-height:2;min-height:30px}::-webkit-datetime-edit{line-height:1.85714286}input[type=checkbox]:focus,input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=radio]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}input[type=email],input[type=url]{direction:ltr}input[type=checkbox],input[type=radio]{border:1px solid #8c8f94;border-radius:4px;background:#fff;color:#50575e;clear:none;cursor:pointer;display:inline-block;line-height:0;height:1rem;margin:-.25rem 0 0 .25rem;outline:0;padding:0!important;text-align:center;vertical-align:middle;width:1rem;min-width:1rem;-webkit-appearance:none;box-shadow:inset 0 1px 2px rgba(0,0,0,.1);transition:.05s border-color ease-in-out}input[type=radio]:checked+label:before{color:#8c8f94}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#135e96}.wp-admin p input[type=checkbox],.wp-admin p input[type=radio],td>input[type=checkbox]{margin-top:0}.wp-admin p label input[type=checkbox]{margin-top:-4px}.wp-admin p label input[type=radio]{margin-top:-2px}input[type=radio]{border-radius:50%;margin-left:.25rem;line-height:.71428571}input[type=checkbox]:checked::before,input[type=radio]:checked::before{float:right;display:inline-block;vertical-align:middle;width:1rem;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[type=checkbox]:checked::before{content:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%233582c4%27%2F%3E%3C%2Fsvg%3E");margin:-.1875rem -.25rem 0 0;height:1.3125rem;width:1.3125rem}input[type=radio]:checked::before{content:"";border-radius:50%;width:.5rem;height:.5rem;margin:.1875rem;background-color:#3582c4;line-height:1.14285714}@-moz-document url-prefix(){.form-table input.tog,input[type=checkbox],input[type=radio]{margin-bottom:-1px}}input[type=search]{-webkit-appearance:textfield}input[type=search]::-webkit-search-decoration{display:none}.wp-admin input[type=file]{padding:3px 0;cursor:pointer}input.readonly,input[readonly],textarea.readonly,textarea[readonly]{background-color:#f0f0f1}::-webkit-input-placeholder{color:#646970}::-moz-placeholder{color:#646970;opacity:1}:-ms-input-placeholder{color:#646970}.form-invalid .form-required,.form-invalid .form-required:focus,.form-invalid.form-required input,.form-invalid.form-required input:focus,.form-invalid.form-required select,.form-invalid.form-required select:focus{border-color:#d63638!important;box-shadow:0 0 2px rgba(214,54,56,.8)}.form-table .form-required.form-invalid td:after{content:"\f534";font:normal 20px/1 dashicons;color:#d63638;margin-right:-25px;vertical-align:middle}.form-table .form-required.user-pass1-wrap.form-invalid td:after{content:""}.form-table .form-required.user-pass1-wrap.form-invalid .password-input-wrapper:after{content:"\f534";font:normal 20px/1 dashicons;color:#d63638;margin:0 -29px 0 6px;vertical-align:middle}.form-input-tip{color:#646970}input.disabled,input:disabled,select.disabled,select:disabled,textarea.disabled,textarea:disabled{background:rgba(255,255,255,.5);border-color:rgba(220,220,222,.75);box-shadow:inset 0 1px 2px rgba(0,0,0,.04);color:rgba(44,51,56,.5)}input[type=file].disabled,input[type=file]:disabled,input[type=file][aria-disabled=true],input[type=range].disabled,input[type=range]:disabled,input[type=range][aria-disabled=true]{background:0 0;box-shadow:none;cursor:default}input[type=checkbox].disabled,input[type=checkbox].disabled:checked:before,input[type=checkbox]:disabled,input[type=checkbox]:disabled:checked:before,input[type=checkbox][aria-disabled=true],input[type=radio].disabled,input[type=radio].disabled:checked:before,input[type=radio]:disabled,input[type=radio]:disabled:checked:before,input[type=radio][aria-disabled=true]{opacity:.7;cursor:default}.wp-core-ui select{font-size:14px;line-height:2;color:#2c3338;border-color:#8c8f94;box-shadow:none;border-radius:3px;padding:0 8px 0 24px;min-height:30px;max-width:25rem;-webkit-appearance:none;background:#fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat left 5px top 55%;background-size:16px 16px;cursor:pointer;vertical-align:middle}.wp-core-ui select:hover{color:#2271b1}.wp-core-ui select:focus{border-color:#2271b1;color:#0a4b78;box-shadow:0 0 0 1px #2271b1}.wp-core-ui select:active{border-color:#8c8f94;box-shadow:none}.wp-core-ui select.disabled,.wp-core-ui select:disabled{color:#a7aaad;border-color:#dcdcde;background-color:#f6f7f7;background-image:url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23a0a5aa%22%2F%3E%3C%2Fsvg%3E');box-shadow:none;text-shadow:0 1px 0 #fff;cursor:default;transform:none}.wp-core-ui select[aria-disabled=true]{cursor:default}.wp-core-ui select:-moz-focusring{color:transparent;text-shadow:0 0 0 #0a4b78}.wp-core-ui select::-ms-value{background:0 0;color:#50575e}.wp-core-ui select:hover::-ms-value{color:#2271b1}.wp-core-ui select:focus::-ms-value{color:#0a4b78}.wp-core-ui select.disabled::-ms-value,.wp-core-ui select:disabled::-ms-value{color:#a7aaad}.wp-core-ui select::-ms-expand{display:none}.wp-admin .button-cancel{display:inline-block;min-height:28px;padding:0 5px;line-height:2}.meta-box-sortables select{max-width:100%}.meta-box-sortables input{vertical-align:middle}.misc-pub-post-status select{margin-top:0}.wp-core-ui select[multiple]{height:auto;padding-left:8px;background:#fff}.submit{padding:1.5em 0;margin:5px 0;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:none}form p.submit a.cancel:hover{text-decoration:none}p.submit{text-align:right;max-width:100%;margin-top:20px;padding-top:10px}.textright p.submit{border:none;text-align:left}table.form-table+input+input+p.submit,table.form-table+input+p.submit,table.form-table+p.submit{border-top:none;padding-top:0}#major-publishing-actions input,#minor-publishing-actions .preview,#minor-publishing-actions input{text-align:center}input.all-options,textarea.all-options{width:250px}input.large-text,textarea.large-text{width:99%}.regular-text{width:25em}input.small-text{width:50px;padding:0 6px}label input.small-text{margin-top:-4px}input[type=number].small-text{width:65px;padding-left:0}input.tiny-text{width:35px}input[type=number].tiny-text{width:45px;padding-left:0}#doaction,#doaction2,#post-query-submit{margin:0 0 0 8px}.no-js input#changeit2,.no-js input#doaction2,.no-js label[for=bulk-action-selector-bottom],.no-js label[for=new_role2],.no-js select#bulk-action-selector-bottom,.no-js select#new_role2{display:none}.tablenav .actions select{float:right;margin-left:6px;max-width:12.5rem}#timezone_string option{margin-right:1em}.wp-cancel-pw>.dashicons,.wp-hide-pw>.dashicons{position:relative;top:3px;width:1.25rem;height:1.25rem;top:.25rem;font-size:20px}.wp-cancel-pw .dashicons-no{display:none}#your-profile label+a,label{vertical-align:middle}#your-profile label+a,fieldset label{vertical-align:middle}.options-media-php [for*="_size_"]{min-width:10em;vertical-align:baseline}.options-media-php .small-text[name*="_size_"]{margin:0 0 1em}.wp-generate-pw{margin-top:1em;position:relative}.wp-pwd button{height:min-content}.wp-pwd button.pwd-toggle .dashicons{position:relative;top:.25rem}.wp-pwd{margin-top:1em;position:relative}.mailserver-pass-wrap .wp-pwd{display:inline-block;margin-top:0}#mailserver_pass{padding-right:2.5rem}.mailserver-pass-wrap .button.wp-hide-pw{background:0 0;border:1px solid transparent;box-shadow:none;font-size:14px;line-height:2;width:2.5rem;min-width:40px;margin:0;padding:0 9px;position:absolute;right:0;top:0}.mailserver-pass-wrap .button.wp-hide-pw:hover{background:0 0;border-color:transparent}.mailserver-pass-wrap .button.wp-hide-pw:focus{background:0 0;border-color:#3582c4;border-radius:4px;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.mailserver-pass-wrap .button.wp-hide-pw:active{background:0 0;box-shadow:none;transform:none}#misc-publishing-actions label{vertical-align:baseline}#pass-strength-result{background-color:#f0f0f1;border:1px solid #dcdcde;color:#1d2327;margin:-1px 1px 5px;padding:3px 5px;text-align:center;width:25em;box-sizing:border-box;opacity:0}#pass-strength-result.short{background-color:#ffabaf;border-color:#e65054;opacity:1}#pass-strength-result.bad{background-color:#facfd2;border-color:#f86368;opacity:1}#pass-strength-result.good{background-color:#f5e6ab;border-color:#f0c33c;opacity:1}#pass-strength-result.strong{background-color:#b8e6bf;border-color:#68de7c;opacity:1}.password-input-wrapper{display:inline-block}.password-input-wrapper input{font-family:Consolas,Monaco,monospace}#pass1-text.short,#pass1.short{border-color:#e65054}#pass1-text.bad,#pass1.bad{border-color:#f86368}#pass1-text.good,#pass1.good{border-color:#f0c33c}#pass1-text.strong,#pass1.strong{border-color:#68de7c}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.pw-weak{display:none}.indicator-hint{padding-top:8px}.wp-pwd [type=password],.wp-pwd [type=text]{margin-bottom:0;min-height:30px}.wp-pwd input::-ms-reveal{display:none}#pass1-text,.show-password #pass1{display:none}#pass1-text::-ms-clear{display:none}.show-password #pass1-text{display:inline-block}p.search-box{display:flex;flex-wrap:wrap;align-items:center;column-gap:.5rem;position:relative;float:left;margin:11px 0}.network-admin.themes-php p.search-box{clear:right}.search-box input[name="s"],.tablenav .search-plugins input[name="s"],.tagsdiv .newtag{float:right;margin:0 0 0 4px}.js.plugins-php .search-box .wp-filter-search{margin:0;width:280px}input[type=email].ui-autocomplete-loading,input[type=text].ui-autocomplete-loading{background-image:url(../images/loading.gif);background-repeat:no-repeat;background-position:left 5px center;visibility:visible}input.ui-autocomplete-input.open{border-bottom-color:transparent}ul#add-to-blog-users{margin:0 14px 0 0}.ui-autocomplete{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;border:1px solid #4f94d4;box-shadow:0 1px 2px rgba(79,148,212,.8);background-color:#fff}.ui-autocomplete li{margin-bottom:0;padding:4px 10px;white-space:nowrap;text-align:right;cursor:pointer}.ui-autocomplete .ui-state-focus{background-color:#dcdcde}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:#2271b1;color:#fff;outline:2px solid transparent}.button-add-site-icon{width:100%;cursor:pointer;text-align:center;border:1px dashed #c3c4c7;box-sizing:border-box;padding:9px 0;line-height:1.6;max-width:270px}.button-add-site-icon:focus,.button-add-site-icon:hover{background:#fff}.site-icon-section .favicon-preview{float:right}.site-icon-section .app-icon-preview{float:right;margin:0 20px}.site-icon-section .site-icon-preview img{max-width:100%}.button-add-site-icon:focus{background-color:#fff;border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.form-table{border-collapse:collapse;margin-top:.5em;width:100%;clear:both}.form-table,.form-table td,.form-table td p,.form-table th{font-size:14px}.form-table td{margin-bottom:9px;padding:15px 10px;line-height:1.3;vertical-align:middle}.form-table th,.form-wrap label{color:#1d2327;font-weight:400;text-shadow:none;vertical-align:baseline}.form-table th{vertical-align:top;text-align:right;padding:20px 0 20px 10px;width:200px;line-height:1.3;font-weight:600}.form-table .td-full,.form-table th.th-full{width:auto;padding:20px 0 20px 10px;font-weight:400}.form-table td p{margin-top:4px;margin-bottom:0}.form-table .date-time-doc{margin-top:1em}.form-table p.timezone-info{margin:1em 0;display:flex;flex-direction:column}#local-time{margin-top:.5em}.form-table td fieldset label{margin:.35em 0 .5em!important;display:inline-block}.form-table td fieldset p label{margin-top:0!important}.form-table td fieldset label,.form-table td fieldset li,.form-table td fieldset p{line-height:1.4}.form-table input.tog,.form-table input[type=radio]{margin-top:-4px;margin-left:4px;float:none}.form-table .pre{padding:8px;margin:0}table.form-table td .updated{font-size:13px}table.form-table td .updated p{font-size:13px;margin:.3em 0}#profile-page .form-table textarea{width:500px;margin-bottom:6px}#profile-page .form-table #rich_editing{margin-left:5px}#your-profile legend{font-size:22px}#display_name{width:15em}#adduser .form-field input,#createuser .form-field input{width:25em}.color-option{display:inline-block;width:24%;padding:5px 15px 15px;box-sizing:border-box;margin-bottom:3px}.color-option.selected,.color-option:hover{background:#dcdcde}.color-palette{display:table;width:100%;border-spacing:0;border-collapse:collapse}.color-palette .color-palette-shade,.color-palette td{display:table-cell;height:20px;padding:0;border:none}.color-option{cursor:pointer}.create-application-password .form-field{max-width:25em}.create-application-password label{font-weight:600}.create-application-password p.submit{margin-bottom:0;padding-bottom:0;display:block}#application-passwords-section .notice{margin-top:20px;margin-bottom:0;word-wrap:break-word}.application-password-display input.code{width:19em}.auth-app-card.card{max-width:768px}.authorize-application-php .form-wrap p{display:block}.tool-box .title{margin:8px 0;font-size:18px;font-weight:400;line-height:24px}.label-responsive{vertical-align:middle}#export-filters p{margin:0 0 1em}#export-filters p.submit{margin:7px 0 5px}.card{position:relative;margin-top:20px;padding:.7em 2em 1em;min-width:255px;max-width:520px;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff;box-sizing:border-box}.pressthis h4{margin:2em 0 1em}.pressthis textarea{width:100%;font-size:1em}#pressthis-code-wrap{overflow:auto}.pressthis-bookmarklet-wrapper{margin:20px 0 8px;vertical-align:top;position:relative;z-index:1}.pressthis-bookmarklet,.pressthis-bookmarklet:active,.pressthis-bookmarklet:focus,.pressthis-bookmarklet:hover{display:inline-block;position:relative;cursor:move;color:#2c3338;background:#dcdcde;border-radius:5px;border:1px solid #c3c4c7;font-style:normal;line-height:16px;font-size:14px;text-decoration:none}.pressthis-bookmarklet:active{outline:0}.pressthis-bookmarklet:after{content:"";width:70%;height:55%;z-index:-1;position:absolute;left:10px;bottom:9px;background:0 0;transform:skew(-20deg) rotate(-6deg);box-shadow:0 10px 8px rgba(0,0,0,.6)}.pressthis-bookmarklet:hover:after{transform:skew(-20deg) rotate(-9deg);box-shadow:0 10px 8px rgba(0,0,0,.7)}.pressthis-bookmarklet span{display:inline-block;margin:0;padding:0 9px 8px 12px}.pressthis-bookmarklet span:before{color:#787c82;font:normal 20px/1 dashicons;content:"\f157";position:relative;display:inline-block;top:4px;margin-left:4px}.pressthis-js-toggle{margin-right:10px;padding:0;height:auto;vertical-align:top}.pressthis-js-toggle.button.button{margin-right:10px;padding:0;height:auto;vertical-align:top}.pressthis-js-toggle .dashicons{margin:5px 7px 6px 8px;color:#50575e}.timezone-info code{white-space:nowrap}.defaultavatarpicker .avatar{margin:2px 0;vertical-align:middle}.options-general-php .date-time-text{display:inline-block;min-width:10em}.options-general-php input.small-text{width:56px;margin:-2px 0}.options-general-php .spinner{float:none;margin:-3px 3px 0}.options-general-php .language-install-spinner,.profile-php .language-install-spinner,.settings-php .language-install-spinner,.user-edit-php .language-install-spinner{display:inline-block;float:none;margin:-3px 5px 0;vertical-align:middle}.form-table.permalink-structure .available-structure-tags{margin-top:8px}.form-table.permalink-structure .available-structure-tags ul{display:flex;flex-wrap:wrap;margin:8px 0 0}.form-table.permalink-structure .available-structure-tags li{margin:6px 0 0 5px}.form-table.permalink-structure .available-structure-tags li:last-child{margin-left:0}.form-table.permalink-structure .structure-selection .row{margin-bottom:16px}.form-table.permalink-structure .structure-selection .row>div{max-width:calc(100% - 24px);display:inline-flex;flex-direction:column}.form-table.permalink-structure .structure-selection .row label{font-weight:600}.form-table.permalink-structure .structure-selection .row p{margin-top:0}.setup-php textarea{max-width:100%}.form-field #site-address{max-width:25em}.form-field #domain{max-width:22em}.form-field #admin-email,.form-field #blog_last_updated,.form-field #blog_registered,.form-field #path,.form-field #site-title{max-width:25em}.form-field #path{margin-bottom:5px}#search-sites,#search-users{max-width:60%}.configuration-rules-label{font-weight:600;margin-bottom:4px}.request-filesystem-credentials-dialog{display:none;visibility:visible}.request-filesystem-credentials-dialog .notification-dialog{top:10%;max-height:85%}.request-filesystem-credentials-dialog-content{margin:25px}#request-filesystem-credentials-title{font-size:1.3em;margin:1em 0}.request-filesystem-credentials-form legend{font-size:1em;padding:1.33em 0;font-weight:600}.request-filesystem-credentials-form input[type=password],.request-filesystem-credentials-form input[type=text]{display:block}.request-filesystem-credentials-dialog input[type=password],.request-filesystem-credentials-dialog input[type=text]{width:100%}.request-filesystem-credentials-form .field-title{font-weight:600}.request-filesystem-credentials-dialog label[for=hostname],.request-filesystem-credentials-dialog label[for=private_key],.request-filesystem-credentials-dialog label[for=public_key]{display:block;margin-bottom:1em}.request-filesystem-credentials-dialog .ftp-password,.request-filesystem-credentials-dialog .ftp-username{float:right;width:48%}.request-filesystem-credentials-dialog .ftp-password{margin-right:4%}.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons{text-align:left}.request-filesystem-credentials-dialog label[for=ftp]{margin-left:10px}.request-filesystem-credentials-dialog #auth-keys-desc{margin-bottom:0}#request-filesystem-credentials-dialog .button:not(:last-child){margin-left:10px}#request-filesystem-credentials-form .cancel-button{display:none}#request-filesystem-credentials-dialog .cancel-button{display:inline}.request-filesystem-credentials-dialog .ftp-password,.request-filesystem-credentials-dialog .ftp-username{float:none;width:auto}.request-filesystem-credentials-dialog .ftp-username{margin-bottom:1em}.request-filesystem-credentials-dialog .ftp-password{margin:0}.request-filesystem-credentials-dialog .ftp-password em{color:#8c8f94}.request-filesystem-credentials-dialog label{display:block;line-height:1.5;margin-bottom:1em}.request-filesystem-credentials-form legend{padding-bottom:0}.request-filesystem-credentials-form #ssh-keys legend{font-size:1.3em}.request-filesystem-credentials-form .notice{margin:0 0 20px;clear:both}.tools-privacy-policy-page form{margin-bottom:1.3em}.tools-privacy-policy-page input.button{margin:0 6px 0 1px}.tools-privacy-policy-page select{margin:0 6px .5em 1px}.tools-privacy-edit{margin:1.5em 0}.tools-privacy-policy-page span{line-height:2}.privacy_requests .column-email{width:40%}.privacy_requests .column-type{text-align:center}.privacy_requests tfoot td:first-child,.privacy_requests thead td:first-child{border-right:4px solid #fff}.privacy_requests tbody th{border-right:4px solid #fff;background:#fff;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.privacy_requests .row-actions{color:#787c82}.privacy_requests .row-actions.processing{position:static}.privacy_requests tbody .has-request-results th{box-shadow:none}.privacy_requests tbody .request-results th .notice{margin:0 0 5px}.privacy_requests tbody td{background:#fff;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.privacy_requests tbody .has-request-results td{box-shadow:none}.privacy_requests .next_steps .button{word-wrap:break-word;white-space:normal}.privacy_requests .status-request-confirmed td,.privacy_requests .status-request-confirmed th{background-color:#fff;border-right-color:#72aee6}.privacy_requests .status-request-failed td,.privacy_requests .status-request-failed th{background-color:#f6f7f7;border-right-color:#d63638}.privacy_requests .export_personal_data_failed a{vertical-align:baseline}.status-label{font-weight:600}.status-label.status-request-pending{font-weight:400;font-style:italic;color:#646970}.status-label.status-request-failed{color:#d63638;font-weight:600}.wp-privacy-request-form{clear:both}.wp-privacy-request-form-field{margin:1.5em 0}.wp-privacy-request-form input{margin:0}.email-personal-data::before{display:inline-block;font:normal 20px/1 dashicons;margin:3px -2px 0 5px;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.email-personal-data--sending::before{color:#d63638;content:"\f463";animation:rotation 2s infinite linear}.email-personal-data--sent::before{color:#68de7c;content:"\f147"}@media screen and (max-width:782px){textarea{-webkit-appearance:none}input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week]{-webkit-appearance:none;padding:3px 10px;min-height:40px}::-webkit-datetime-edit{line-height:1.875}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox],input[type=checkbox]{-webkit-appearance:none}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox]{margin-bottom:8px}.widefat tfoot td input[type=checkbox]:before,.widefat th input[type=checkbox]:before,.widefat thead td input[type=checkbox]:before,input[type=checkbox]:checked:before{width:1.875rem;height:1.875rem;margin:-.1875rem -.3125rem}input[type=checkbox],input[type=radio]{height:1.5625rem;width:1.5625rem}.wp-admin p input[type=checkbox],.wp-admin p input[type=radio]{margin-top:-.1875rem}input[type=radio]:checked:before{vertical-align:middle;width:.5625rem;height:.5625rem;margin:.4375rem;line-height:.76190476}.wp-upload-form input[type=submit]{margin-top:10px}.wp-admin .form-table select,.wp-core-ui select{min-height:40px;font-size:16px;line-height:1.625;padding:5px 8px 5px 24px}.wp-admin .button-cancel{margin-bottom:0;padding:2px 0;font-size:14px;vertical-align:middle}#adduser .form-field input,#createuser .form-field input{width:100%}.form-table{box-sizing:border-box}.form-table td,.form-table th,.label-responsive{display:block;width:auto;vertical-align:middle}.label-responsive{margin:.5em 0}.export-filters li{margin-bottom:0}.form-table .color-palette .color-palette-shade,.form-table .color-palette td{display:table-cell;width:15px;height:30px;padding:0}.form-table .color-palette{margin-left:10px}input,textarea{font-size:16px}#profile-page .form-table textarea,.form-table span.description,.form-table td input[type=email],.form-table td input[type=password],.form-table td input[type=text],.form-table td select,.form-table td textarea{width:100%;display:block;max-width:none;box-sizing:border-box}.form-table .form-required.form-invalid td:after{float:left;margin:-30px 0 0 3px}.form-table input[type=text].small-text,input[type=number].small-text,input[type=password].small-text,input[type=search].small-text,input[type=text].small-text{width:auto;max-width:4.375em;display:inline;padding:3px 6px;margin:0 3px}.form-table .regular-text~input[type=text].small-text{margin-top:5px}#pass-strength-result{width:100%;box-sizing:border-box;padding:8px}.password-input-wrapper{display:block}p.search-box{float:none;width:100%;margin-bottom:20px;display:flex}p.search-box input[name="s"]{float:none;width:100%;margin-bottom:10px;vertical-align:middle}p.search-box input[type=submit]{margin-bottom:10px}.form-table span.description{display:inline;padding:4px 0 0;line-height:1.4;font-size:14px}.form-table th{padding:10px 0 0;border-bottom:0}.form-table td{margin-bottom:0;padding:4px 0 6px}.form-table.permalink-structure td code{display:inline-block}.form-table.permalink-structure .structure-selection{margin-top:8px}.form-table.permalink-structure .structure-selection .row>div{max-width:calc(100% - 36px);width:100%}.form-table.permalink-structure td input[type=text]{margin-top:4px}.form-table input.regular-text{width:100%}.form-table label{font-size:14px}.form-table td>label:first-child{display:inline-block;margin-top:.35em}.background-position-control .button-group>label{font-size:0}.form-table fieldset label{display:block}.form-field #domain{max-width:none}.wp-pwd{position:relative}#profile-page .form-table #pass1{padding-left:90px}.wp-pwd button.button{background:0 0;border:1px solid transparent;box-shadow:none;line-height:2;margin:0;padding:5px 9px;position:absolute;left:0;top:0;width:2.375rem;height:2.375rem;min-width:40px;min-height:40px}.wp-pwd button.wp-hide-pw{left:2.5rem}body.user-new-php .wp-pwd button.wp-hide-pw{left:0}.wp-pwd button.button:focus,.wp-pwd button.button:hover{background:0 0}.wp-pwd button.button:active{background:0 0;box-shadow:none;transform:none}.wp-pwd .button .text{display:none}.wp-pwd [type=password],.wp-pwd [type=text]{line-height:2;padding-left:5rem}body.user-new-php .wp-pwd [type=password],body.user-new-php .wp-pwd [type=text]{padding-left:2.5rem}.wp-cancel-pw .dashicons-no{display:inline-block}.mailserver-pass-wrap .wp-pwd{display:block}#mailserver_pass{padding-left:10px}.options-general-php input[type=text].small-text{max-width:6.25em;margin:0}.tools-privacy-policy-page form.wp-create-privacy-page{margin-bottom:1em}.tools-privacy-policy-page input#set-page,.tools-privacy-policy-page select{margin:10px 0 0}.tools-privacy-policy-page .wp-create-privacy-page span{display:block;margin-bottom:1em}.tools-privacy-policy-page .wp-create-privacy-page .button{margin-right:0}.wp-list-table.privacy_requests tr:not(.inline-edit-row):not(.no-items) td.column-primary:not(.check-column){display:table-cell}.wp-list-table.privacy_requests.widefat th input,.wp-list-table.privacy_requests.widefat thead td input{margin-right:5px}.wp-privacy-request-form-field input[type=text]{width:100%;margin-bottom:10px;vertical-align:middle}.regular-text{max-width:100%}}@media only screen and (max-width:768px){.form-field input[type=email],.form-field input[type=password],.form-field input[type=text],.form-field select,.form-field textarea{width:99%}.form-wrap .form-field{padding:0}}@media only screen and (max-height:480px),screen and (max-width:450px){.file-editor-warning .notification-dialog,.request-filesystem-credentials-dialog .notification-dialog{width:100%;height:100%;max-height:100%;position:fixed;top:0;margin:0;right:0}}@media screen and (max-width:600px){.color-option{width:49%}}@media only screen and (max-width:320px){.options-general-php .date-time-text.date-time-custom-text{min-width:0;margin-left:.5em}}@keyframes rotation{0%{transform:rotate(0)}100%{transform:rotate(-359deg)}} \ No newline at end of file
diff --git a/wp-admin/css/forms.css b/wp-admin/css/forms.css
index 63eb3e8..29b9588 100644
--- a/wp-admin/css/forms.css
+++ b/wp-admin/css/forms.css
@@ -720,8 +720,13 @@ fieldset label,
}
p.search-box {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ column-gap: 0.5rem;
+ position: relative;
float: right;
- margin: 0;
+ margin: 11px 0;
}
.network-admin.themes-php p.search-box {
diff --git a/wp-admin/css/forms.min.css b/wp-admin/css/forms.min.css
index c401dc5..0418874 100644
--- a/wp-admin/css/forms.min.css
+++ b/wp-admin/css/forms.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-button,input,select,textarea{box-sizing:border-box;font-family:inherit;font-size:inherit;font-weight:inherit}input,textarea{font-size:14px}textarea{overflow:auto;padding:2px 6px;line-height:1.42857143;resize:vertical}input,select{margin:0 1px}textarea.code{padding:4px 6px 1px}input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,textarea{box-shadow:0 0 0 transparent;border-radius:4px;border:1px solid #8c8f94;background-color:#fff;color:#2c3338}input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week]{padding:0 8px;line-height:2;min-height:30px}::-webkit-datetime-edit{line-height:1.85714286}input[type=checkbox]:focus,input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=radio]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}input[type=email],input[type=url]{direction:ltr}input[type=checkbox],input[type=radio]{border:1px solid #8c8f94;border-radius:4px;background:#fff;color:#50575e;clear:none;cursor:pointer;display:inline-block;line-height:0;height:1rem;margin:-.25rem .25rem 0 0;outline:0;padding:0!important;text-align:center;vertical-align:middle;width:1rem;min-width:1rem;-webkit-appearance:none;box-shadow:inset 0 1px 2px rgba(0,0,0,.1);transition:.05s border-color ease-in-out}input[type=radio]:checked+label:before{color:#8c8f94}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#135e96}.wp-admin p input[type=checkbox],.wp-admin p input[type=radio],td>input[type=checkbox]{margin-top:0}.wp-admin p label input[type=checkbox]{margin-top:-4px}.wp-admin p label input[type=radio]{margin-top:-2px}input[type=radio]{border-radius:50%;margin-right:.25rem;line-height:.71428571}input[type=checkbox]:checked::before,input[type=radio]:checked::before{float:left;display:inline-block;vertical-align:middle;width:1rem;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[type=checkbox]:checked::before{content:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%233582c4%27%2F%3E%3C%2Fsvg%3E");margin:-.1875rem 0 0 -.25rem;height:1.3125rem;width:1.3125rem}input[type=radio]:checked::before{content:"";border-radius:50%;width:.5rem;height:.5rem;margin:.1875rem;background-color:#3582c4;line-height:1.14285714}@-moz-document url-prefix(){.form-table input.tog,input[type=checkbox],input[type=radio]{margin-bottom:-1px}}input[type=search]{-webkit-appearance:textfield}input[type=search]::-webkit-search-decoration{display:none}.wp-admin input[type=file]{padding:3px 0;cursor:pointer}input.readonly,input[readonly],textarea.readonly,textarea[readonly]{background-color:#f0f0f1}::-webkit-input-placeholder{color:#646970}::-moz-placeholder{color:#646970;opacity:1}:-ms-input-placeholder{color:#646970}.form-invalid .form-required,.form-invalid .form-required:focus,.form-invalid.form-required input,.form-invalid.form-required input:focus,.form-invalid.form-required select,.form-invalid.form-required select:focus{border-color:#d63638!important;box-shadow:0 0 2px rgba(214,54,56,.8)}.form-table .form-required.form-invalid td:after{content:"\f534";font:normal 20px/1 dashicons;color:#d63638;margin-left:-25px;vertical-align:middle}.form-table .form-required.user-pass1-wrap.form-invalid td:after{content:""}.form-table .form-required.user-pass1-wrap.form-invalid .password-input-wrapper:after{content:"\f534";font:normal 20px/1 dashicons;color:#d63638;margin:0 6px 0 -29px;vertical-align:middle}.form-input-tip{color:#646970}input.disabled,input:disabled,select.disabled,select:disabled,textarea.disabled,textarea:disabled{background:rgba(255,255,255,.5);border-color:rgba(220,220,222,.75);box-shadow:inset 0 1px 2px rgba(0,0,0,.04);color:rgba(44,51,56,.5)}input[type=file].disabled,input[type=file]:disabled,input[type=file][aria-disabled=true],input[type=range].disabled,input[type=range]:disabled,input[type=range][aria-disabled=true]{background:0 0;box-shadow:none;cursor:default}input[type=checkbox].disabled,input[type=checkbox].disabled:checked:before,input[type=checkbox]:disabled,input[type=checkbox]:disabled:checked:before,input[type=checkbox][aria-disabled=true],input[type=radio].disabled,input[type=radio].disabled:checked:before,input[type=radio]:disabled,input[type=radio]:disabled:checked:before,input[type=radio][aria-disabled=true]{opacity:.7;cursor:default}.wp-core-ui select{font-size:14px;line-height:2;color:#2c3338;border-color:#8c8f94;box-shadow:none;border-radius:3px;padding:0 24px 0 8px;min-height:30px;max-width:25rem;-webkit-appearance:none;background:#fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55%;background-size:16px 16px;cursor:pointer;vertical-align:middle}.wp-core-ui select:hover{color:#2271b1}.wp-core-ui select:focus{border-color:#2271b1;color:#0a4b78;box-shadow:0 0 0 1px #2271b1}.wp-core-ui select:active{border-color:#8c8f94;box-shadow:none}.wp-core-ui select.disabled,.wp-core-ui select:disabled{color:#a7aaad;border-color:#dcdcde;background-color:#f6f7f7;background-image:url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23a0a5aa%22%2F%3E%3C%2Fsvg%3E');box-shadow:none;text-shadow:0 1px 0 #fff;cursor:default;transform:none}.wp-core-ui select[aria-disabled=true]{cursor:default}.wp-core-ui select:-moz-focusring{color:transparent;text-shadow:0 0 0 #0a4b78}.wp-core-ui select::-ms-value{background:0 0;color:#50575e}.wp-core-ui select:hover::-ms-value{color:#2271b1}.wp-core-ui select:focus::-ms-value{color:#0a4b78}.wp-core-ui select.disabled::-ms-value,.wp-core-ui select:disabled::-ms-value{color:#a7aaad}.wp-core-ui select::-ms-expand{display:none}.wp-admin .button-cancel{display:inline-block;min-height:28px;padding:0 5px;line-height:2}.meta-box-sortables select{max-width:100%}.meta-box-sortables input{vertical-align:middle}.misc-pub-post-status select{margin-top:0}.wp-core-ui select[multiple]{height:auto;padding-right:8px;background:#fff}.submit{padding:1.5em 0;margin:5px 0;border-bottom-left-radius:3px;border-bottom-right-radius:3px;border:none}form p.submit a.cancel:hover{text-decoration:none}p.submit{text-align:left;max-width:100%;margin-top:20px;padding-top:10px}.textright p.submit{border:none;text-align:right}table.form-table+input+input+p.submit,table.form-table+input+p.submit,table.form-table+p.submit{border-top:none;padding-top:0}#major-publishing-actions input,#minor-publishing-actions .preview,#minor-publishing-actions input{text-align:center}input.all-options,textarea.all-options{width:250px}input.large-text,textarea.large-text{width:99%}.regular-text{width:25em}input.small-text{width:50px;padding:0 6px}label input.small-text{margin-top:-4px}input[type=number].small-text{width:65px;padding-right:0}input.tiny-text{width:35px}input[type=number].tiny-text{width:45px;padding-right:0}#doaction,#doaction2,#post-query-submit{margin:0 8px 0 0}.no-js input#changeit2,.no-js input#doaction2,.no-js label[for=bulk-action-selector-bottom],.no-js label[for=new_role2],.no-js select#bulk-action-selector-bottom,.no-js select#new_role2{display:none}.tablenav .actions select{float:left;margin-right:6px;max-width:12.5rem}#timezone_string option{margin-left:1em}.wp-cancel-pw>.dashicons,.wp-hide-pw>.dashicons{position:relative;top:3px;width:1.25rem;height:1.25rem;top:.25rem;font-size:20px}.wp-cancel-pw .dashicons-no{display:none}#your-profile label+a,label{vertical-align:middle}#your-profile label+a,fieldset label{vertical-align:middle}.options-media-php [for*="_size_"]{min-width:10em;vertical-align:baseline}.options-media-php .small-text[name*="_size_"]{margin:0 0 1em}.wp-generate-pw{margin-top:1em;position:relative}.wp-pwd button{height:min-content}.wp-pwd button.pwd-toggle .dashicons{position:relative;top:.25rem}.wp-pwd{margin-top:1em;position:relative}.mailserver-pass-wrap .wp-pwd{display:inline-block;margin-top:0}#mailserver_pass{padding-right:2.5rem}.mailserver-pass-wrap .button.wp-hide-pw{background:0 0;border:1px solid transparent;box-shadow:none;font-size:14px;line-height:2;width:2.5rem;min-width:40px;margin:0;padding:0 9px;position:absolute;right:0;top:0}.mailserver-pass-wrap .button.wp-hide-pw:hover{background:0 0;border-color:transparent}.mailserver-pass-wrap .button.wp-hide-pw:focus{background:0 0;border-color:#3582c4;border-radius:4px;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.mailserver-pass-wrap .button.wp-hide-pw:active{background:0 0;box-shadow:none;transform:none}#misc-publishing-actions label{vertical-align:baseline}#pass-strength-result{background-color:#f0f0f1;border:1px solid #dcdcde;color:#1d2327;margin:-1px 1px 5px;padding:3px 5px;text-align:center;width:25em;box-sizing:border-box;opacity:0}#pass-strength-result.short{background-color:#ffabaf;border-color:#e65054;opacity:1}#pass-strength-result.bad{background-color:#facfd2;border-color:#f86368;opacity:1}#pass-strength-result.good{background-color:#f5e6ab;border-color:#f0c33c;opacity:1}#pass-strength-result.strong{background-color:#b8e6bf;border-color:#68de7c;opacity:1}.password-input-wrapper{display:inline-block}.password-input-wrapper input{font-family:Consolas,Monaco,monospace}#pass1-text.short,#pass1.short{border-color:#e65054}#pass1-text.bad,#pass1.bad{border-color:#f86368}#pass1-text.good,#pass1.good{border-color:#f0c33c}#pass1-text.strong,#pass1.strong{border-color:#68de7c}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.pw-weak{display:none}.indicator-hint{padding-top:8px}.wp-pwd [type=password],.wp-pwd [type=text]{margin-bottom:0;min-height:30px}.wp-pwd input::-ms-reveal{display:none}#pass1-text,.show-password #pass1{display:none}#pass1-text::-ms-clear{display:none}.show-password #pass1-text{display:inline-block}p.search-box{float:right;margin:0}.network-admin.themes-php p.search-box{clear:left}.search-box input[name="s"],.tablenav .search-plugins input[name="s"],.tagsdiv .newtag{float:left;margin:0 4px 0 0}.js.plugins-php .search-box .wp-filter-search{margin:0;width:280px}input[type=email].ui-autocomplete-loading,input[type=text].ui-autocomplete-loading{background-image:url(../images/loading.gif);background-repeat:no-repeat;background-position:right 5px center;visibility:visible}input.ui-autocomplete-input.open{border-bottom-color:transparent}ul#add-to-blog-users{margin:0 0 0 14px}.ui-autocomplete{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;border:1px solid #4f94d4;box-shadow:0 1px 2px rgba(79,148,212,.8);background-color:#fff}.ui-autocomplete li{margin-bottom:0;padding:4px 10px;white-space:nowrap;text-align:left;cursor:pointer}.ui-autocomplete .ui-state-focus{background-color:#dcdcde}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:#2271b1;color:#fff;outline:2px solid transparent}.button-add-site-icon{width:100%;cursor:pointer;text-align:center;border:1px dashed #c3c4c7;box-sizing:border-box;padding:9px 0;line-height:1.6;max-width:270px}.button-add-site-icon:focus,.button-add-site-icon:hover{background:#fff}.site-icon-section .favicon-preview{float:left}.site-icon-section .app-icon-preview{float:left;margin:0 20px}.site-icon-section .site-icon-preview img{max-width:100%}.button-add-site-icon:focus{background-color:#fff;border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.form-table{border-collapse:collapse;margin-top:.5em;width:100%;clear:both}.form-table,.form-table td,.form-table td p,.form-table th{font-size:14px}.form-table td{margin-bottom:9px;padding:15px 10px;line-height:1.3;vertical-align:middle}.form-table th,.form-wrap label{color:#1d2327;font-weight:400;text-shadow:none;vertical-align:baseline}.form-table th{vertical-align:top;text-align:left;padding:20px 10px 20px 0;width:200px;line-height:1.3;font-weight:600}.form-table .td-full,.form-table th.th-full{width:auto;padding:20px 10px 20px 0;font-weight:400}.form-table td p{margin-top:4px;margin-bottom:0}.form-table .date-time-doc{margin-top:1em}.form-table p.timezone-info{margin:1em 0;display:flex;flex-direction:column}#local-time{margin-top:.5em}.form-table td fieldset label{margin:.35em 0 .5em!important;display:inline-block}.form-table td fieldset p label{margin-top:0!important}.form-table td fieldset label,.form-table td fieldset li,.form-table td fieldset p{line-height:1.4}.form-table input.tog,.form-table input[type=radio]{margin-top:-4px;margin-right:4px;float:none}.form-table .pre{padding:8px;margin:0}table.form-table td .updated{font-size:13px}table.form-table td .updated p{font-size:13px;margin:.3em 0}#profile-page .form-table textarea{width:500px;margin-bottom:6px}#profile-page .form-table #rich_editing{margin-right:5px}#your-profile legend{font-size:22px}#display_name{width:15em}#adduser .form-field input,#createuser .form-field input{width:25em}.color-option{display:inline-block;width:24%;padding:5px 15px 15px;box-sizing:border-box;margin-bottom:3px}.color-option.selected,.color-option:hover{background:#dcdcde}.color-palette{display:table;width:100%;border-spacing:0;border-collapse:collapse}.color-palette .color-palette-shade,.color-palette td{display:table-cell;height:20px;padding:0;border:none}.color-option{cursor:pointer}.create-application-password .form-field{max-width:25em}.create-application-password label{font-weight:600}.create-application-password p.submit{margin-bottom:0;padding-bottom:0;display:block}#application-passwords-section .notice{margin-top:20px;margin-bottom:0;word-wrap:break-word}.application-password-display input.code{width:19em}.auth-app-card.card{max-width:768px}.authorize-application-php .form-wrap p{display:block}.tool-box .title{margin:8px 0;font-size:18px;font-weight:400;line-height:24px}.label-responsive{vertical-align:middle}#export-filters p{margin:0 0 1em}#export-filters p.submit{margin:7px 0 5px}.card{position:relative;margin-top:20px;padding:.7em 2em 1em;min-width:255px;max-width:520px;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff;box-sizing:border-box}.pressthis h4{margin:2em 0 1em}.pressthis textarea{width:100%;font-size:1em}#pressthis-code-wrap{overflow:auto}.pressthis-bookmarklet-wrapper{margin:20px 0 8px;vertical-align:top;position:relative;z-index:1}.pressthis-bookmarklet,.pressthis-bookmarklet:active,.pressthis-bookmarklet:focus,.pressthis-bookmarklet:hover{display:inline-block;position:relative;cursor:move;color:#2c3338;background:#dcdcde;border-radius:5px;border:1px solid #c3c4c7;font-style:normal;line-height:16px;font-size:14px;text-decoration:none}.pressthis-bookmarklet:active{outline:0}.pressthis-bookmarklet:after{content:"";width:70%;height:55%;z-index:-1;position:absolute;right:10px;bottom:9px;background:0 0;transform:skew(20deg) rotate(6deg);box-shadow:0 10px 8px rgba(0,0,0,.6)}.pressthis-bookmarklet:hover:after{transform:skew(20deg) rotate(9deg);box-shadow:0 10px 8px rgba(0,0,0,.7)}.pressthis-bookmarklet span{display:inline-block;margin:0;padding:0 12px 8px 9px}.pressthis-bookmarklet span:before{color:#787c82;font:normal 20px/1 dashicons;content:"\f157";position:relative;display:inline-block;top:4px;margin-right:4px}.pressthis-js-toggle{margin-left:10px;padding:0;height:auto;vertical-align:top}.pressthis-js-toggle.button.button{margin-left:10px;padding:0;height:auto;vertical-align:top}.pressthis-js-toggle .dashicons{margin:5px 8px 6px 7px;color:#50575e}.timezone-info code{white-space:nowrap}.defaultavatarpicker .avatar{margin:2px 0;vertical-align:middle}.options-general-php .date-time-text{display:inline-block;min-width:10em}.options-general-php input.small-text{width:56px;margin:-2px 0}.options-general-php .spinner{float:none;margin:-3px 3px 0}.options-general-php .language-install-spinner,.profile-php .language-install-spinner,.settings-php .language-install-spinner,.user-edit-php .language-install-spinner{display:inline-block;float:none;margin:-3px 5px 0;vertical-align:middle}.form-table.permalink-structure .available-structure-tags{margin-top:8px}.form-table.permalink-structure .available-structure-tags ul{display:flex;flex-wrap:wrap;margin:8px 0 0}.form-table.permalink-structure .available-structure-tags li{margin:6px 5px 0 0}.form-table.permalink-structure .available-structure-tags li:last-child{margin-right:0}.form-table.permalink-structure .structure-selection .row{margin-bottom:16px}.form-table.permalink-structure .structure-selection .row>div{max-width:calc(100% - 24px);display:inline-flex;flex-direction:column}.form-table.permalink-structure .structure-selection .row label{font-weight:600}.form-table.permalink-structure .structure-selection .row p{margin-top:0}.setup-php textarea{max-width:100%}.form-field #site-address{max-width:25em}.form-field #domain{max-width:22em}.form-field #admin-email,.form-field #blog_last_updated,.form-field #blog_registered,.form-field #path,.form-field #site-title{max-width:25em}.form-field #path{margin-bottom:5px}#search-sites,#search-users{max-width:60%}.configuration-rules-label{font-weight:600;margin-bottom:4px}.request-filesystem-credentials-dialog{display:none;visibility:visible}.request-filesystem-credentials-dialog .notification-dialog{top:10%;max-height:85%}.request-filesystem-credentials-dialog-content{margin:25px}#request-filesystem-credentials-title{font-size:1.3em;margin:1em 0}.request-filesystem-credentials-form legend{font-size:1em;padding:1.33em 0;font-weight:600}.request-filesystem-credentials-form input[type=password],.request-filesystem-credentials-form input[type=text]{display:block}.request-filesystem-credentials-dialog input[type=password],.request-filesystem-credentials-dialog input[type=text]{width:100%}.request-filesystem-credentials-form .field-title{font-weight:600}.request-filesystem-credentials-dialog label[for=hostname],.request-filesystem-credentials-dialog label[for=private_key],.request-filesystem-credentials-dialog label[for=public_key]{display:block;margin-bottom:1em}.request-filesystem-credentials-dialog .ftp-password,.request-filesystem-credentials-dialog .ftp-username{float:left;width:48%}.request-filesystem-credentials-dialog .ftp-password{margin-left:4%}.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons{text-align:right}.request-filesystem-credentials-dialog label[for=ftp]{margin-right:10px}.request-filesystem-credentials-dialog #auth-keys-desc{margin-bottom:0}#request-filesystem-credentials-dialog .button:not(:last-child){margin-right:10px}#request-filesystem-credentials-form .cancel-button{display:none}#request-filesystem-credentials-dialog .cancel-button{display:inline}.request-filesystem-credentials-dialog .ftp-password,.request-filesystem-credentials-dialog .ftp-username{float:none;width:auto}.request-filesystem-credentials-dialog .ftp-username{margin-bottom:1em}.request-filesystem-credentials-dialog .ftp-password{margin:0}.request-filesystem-credentials-dialog .ftp-password em{color:#8c8f94}.request-filesystem-credentials-dialog label{display:block;line-height:1.5;margin-bottom:1em}.request-filesystem-credentials-form legend{padding-bottom:0}.request-filesystem-credentials-form #ssh-keys legend{font-size:1.3em}.request-filesystem-credentials-form .notice{margin:0 0 20px;clear:both}.tools-privacy-policy-page form{margin-bottom:1.3em}.tools-privacy-policy-page input.button{margin:0 1px 0 6px}.tools-privacy-policy-page select{margin:0 1px .5em 6px}.tools-privacy-edit{margin:1.5em 0}.tools-privacy-policy-page span{line-height:2}.privacy_requests .column-email{width:40%}.privacy_requests .column-type{text-align:center}.privacy_requests tfoot td:first-child,.privacy_requests thead td:first-child{border-left:4px solid #fff}.privacy_requests tbody th{border-left:4px solid #fff;background:#fff;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.privacy_requests .row-actions{color:#787c82}.privacy_requests .row-actions.processing{position:static}.privacy_requests tbody .has-request-results th{box-shadow:none}.privacy_requests tbody .request-results th .notice{margin:0 0 5px}.privacy_requests tbody td{background:#fff;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.privacy_requests tbody .has-request-results td{box-shadow:none}.privacy_requests .next_steps .button{word-wrap:break-word;white-space:normal}.privacy_requests .status-request-confirmed td,.privacy_requests .status-request-confirmed th{background-color:#fff;border-left-color:#72aee6}.privacy_requests .status-request-failed td,.privacy_requests .status-request-failed th{background-color:#f6f7f7;border-left-color:#d63638}.privacy_requests .export_personal_data_failed a{vertical-align:baseline}.status-label{font-weight:600}.status-label.status-request-pending{font-weight:400;font-style:italic;color:#646970}.status-label.status-request-failed{color:#d63638;font-weight:600}.wp-privacy-request-form{clear:both}.wp-privacy-request-form-field{margin:1.5em 0}.wp-privacy-request-form input{margin:0}.email-personal-data::before{display:inline-block;font:normal 20px/1 dashicons;margin:3px 5px 0 -2px;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.email-personal-data--sending::before{color:#d63638;content:"\f463";animation:rotation 2s infinite linear}.email-personal-data--sent::before{color:#68de7c;content:"\f147"}@media screen and (max-width:782px){textarea{-webkit-appearance:none}input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week]{-webkit-appearance:none;padding:3px 10px;min-height:40px}::-webkit-datetime-edit{line-height:1.875}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox],input[type=checkbox]{-webkit-appearance:none}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox]{margin-bottom:8px}.widefat tfoot td input[type=checkbox]:before,.widefat th input[type=checkbox]:before,.widefat thead td input[type=checkbox]:before,input[type=checkbox]:checked:before{width:1.875rem;height:1.875rem;margin:-.1875rem -.3125rem}input[type=checkbox],input[type=radio]{height:1.5625rem;width:1.5625rem}.wp-admin p input[type=checkbox],.wp-admin p input[type=radio]{margin-top:-.1875rem}input[type=radio]:checked:before{vertical-align:middle;width:.5625rem;height:.5625rem;margin:.4375rem;line-height:.76190476}.wp-upload-form input[type=submit]{margin-top:10px}.wp-admin .form-table select,.wp-core-ui select{min-height:40px;font-size:16px;line-height:1.625;padding:5px 24px 5px 8px}.wp-admin .button-cancel{margin-bottom:0;padding:2px 0;font-size:14px;vertical-align:middle}#adduser .form-field input,#createuser .form-field input{width:100%}.form-table{box-sizing:border-box}.form-table td,.form-table th,.label-responsive{display:block;width:auto;vertical-align:middle}.label-responsive{margin:.5em 0}.export-filters li{margin-bottom:0}.form-table .color-palette .color-palette-shade,.form-table .color-palette td{display:table-cell;width:15px;height:30px;padding:0}.form-table .color-palette{margin-right:10px}input,textarea{font-size:16px}#profile-page .form-table textarea,.form-table span.description,.form-table td input[type=email],.form-table td input[type=password],.form-table td input[type=text],.form-table td select,.form-table td textarea{width:100%;display:block;max-width:none;box-sizing:border-box}.form-table .form-required.form-invalid td:after{float:right;margin:-30px 3px 0 0}.form-table input[type=text].small-text,input[type=number].small-text,input[type=password].small-text,input[type=search].small-text,input[type=text].small-text{width:auto;max-width:4.375em;display:inline;padding:3px 6px;margin:0 3px}.form-table .regular-text~input[type=text].small-text{margin-top:5px}#pass-strength-result{width:100%;box-sizing:border-box;padding:8px}.password-input-wrapper{display:block}p.search-box{float:none;width:100%;margin-bottom:20px;display:flex}p.search-box input[name="s"]{float:none;width:100%;margin-bottom:10px;vertical-align:middle}p.search-box input[type=submit]{margin-bottom:10px}.form-table span.description{display:inline;padding:4px 0 0;line-height:1.4;font-size:14px}.form-table th{padding:10px 0 0;border-bottom:0}.form-table td{margin-bottom:0;padding:4px 0 6px}.form-table.permalink-structure td code{display:inline-block}.form-table.permalink-structure .structure-selection{margin-top:8px}.form-table.permalink-structure .structure-selection .row>div{max-width:calc(100% - 36px);width:100%}.form-table.permalink-structure td input[type=text]{margin-top:4px}.form-table input.regular-text{width:100%}.form-table label{font-size:14px}.form-table td>label:first-child{display:inline-block;margin-top:.35em}.background-position-control .button-group>label{font-size:0}.form-table fieldset label{display:block}.form-field #domain{max-width:none}.wp-pwd{position:relative}#profile-page .form-table #pass1{padding-right:90px}.wp-pwd button.button{background:0 0;border:1px solid transparent;box-shadow:none;line-height:2;margin:0;padding:5px 9px;position:absolute;right:0;top:0;width:2.375rem;height:2.375rem;min-width:40px;min-height:40px}.wp-pwd button.wp-hide-pw{right:2.5rem}body.user-new-php .wp-pwd button.wp-hide-pw{right:0}.wp-pwd button.button:focus,.wp-pwd button.button:hover{background:0 0}.wp-pwd button.button:active{background:0 0;box-shadow:none;transform:none}.wp-pwd .button .text{display:none}.wp-pwd [type=password],.wp-pwd [type=text]{line-height:2;padding-right:5rem}body.user-new-php .wp-pwd [type=password],body.user-new-php .wp-pwd [type=text]{padding-right:2.5rem}.wp-cancel-pw .dashicons-no{display:inline-block}.mailserver-pass-wrap .wp-pwd{display:block}#mailserver_pass{padding-left:10px}.options-general-php input[type=text].small-text{max-width:6.25em;margin:0}.tools-privacy-policy-page form.wp-create-privacy-page{margin-bottom:1em}.tools-privacy-policy-page input#set-page,.tools-privacy-policy-page select{margin:10px 0 0}.tools-privacy-policy-page .wp-create-privacy-page span{display:block;margin-bottom:1em}.tools-privacy-policy-page .wp-create-privacy-page .button{margin-left:0}.wp-list-table.privacy_requests tr:not(.inline-edit-row):not(.no-items) td.column-primary:not(.check-column){display:table-cell}.wp-list-table.privacy_requests.widefat th input,.wp-list-table.privacy_requests.widefat thead td input{margin-left:5px}.wp-privacy-request-form-field input[type=text]{width:100%;margin-bottom:10px;vertical-align:middle}.regular-text{max-width:100%}}@media only screen and (max-width:768px){.form-field input[type=email],.form-field input[type=password],.form-field input[type=text],.form-field select,.form-field textarea{width:99%}.form-wrap .form-field{padding:0}}@media only screen and (max-height:480px),screen and (max-width:450px){.file-editor-warning .notification-dialog,.request-filesystem-credentials-dialog .notification-dialog{width:100%;height:100%;max-height:100%;position:fixed;top:0;margin:0;left:0}}@media screen and (max-width:600px){.color-option{width:49%}}@media only screen and (max-width:320px){.options-general-php .date-time-text.date-time-custom-text{min-width:0;margin-right:.5em}}@keyframes rotation{0%{transform:rotate(0)}100%{transform:rotate(359deg)}} \ No newline at end of file
+button,input,select,textarea{box-sizing:border-box;font-family:inherit;font-size:inherit;font-weight:inherit}input,textarea{font-size:14px}textarea{overflow:auto;padding:2px 6px;line-height:1.42857143;resize:vertical}input,select{margin:0 1px}textarea.code{padding:4px 6px 1px}input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,textarea{box-shadow:0 0 0 transparent;border-radius:4px;border:1px solid #8c8f94;background-color:#fff;color:#2c3338}input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week]{padding:0 8px;line-height:2;min-height:30px}::-webkit-datetime-edit{line-height:1.85714286}input[type=checkbox]:focus,input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=radio]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}input[type=email],input[type=url]{direction:ltr}input[type=checkbox],input[type=radio]{border:1px solid #8c8f94;border-radius:4px;background:#fff;color:#50575e;clear:none;cursor:pointer;display:inline-block;line-height:0;height:1rem;margin:-.25rem .25rem 0 0;outline:0;padding:0!important;text-align:center;vertical-align:middle;width:1rem;min-width:1rem;-webkit-appearance:none;box-shadow:inset 0 1px 2px rgba(0,0,0,.1);transition:.05s border-color ease-in-out}input[type=radio]:checked+label:before{color:#8c8f94}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#135e96}.wp-admin p input[type=checkbox],.wp-admin p input[type=radio],td>input[type=checkbox]{margin-top:0}.wp-admin p label input[type=checkbox]{margin-top:-4px}.wp-admin p label input[type=radio]{margin-top:-2px}input[type=radio]{border-radius:50%;margin-right:.25rem;line-height:.71428571}input[type=checkbox]:checked::before,input[type=radio]:checked::before{float:left;display:inline-block;vertical-align:middle;width:1rem;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[type=checkbox]:checked::before{content:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%233582c4%27%2F%3E%3C%2Fsvg%3E");margin:-.1875rem 0 0 -.25rem;height:1.3125rem;width:1.3125rem}input[type=radio]:checked::before{content:"";border-radius:50%;width:.5rem;height:.5rem;margin:.1875rem;background-color:#3582c4;line-height:1.14285714}@-moz-document url-prefix(){.form-table input.tog,input[type=checkbox],input[type=radio]{margin-bottom:-1px}}input[type=search]{-webkit-appearance:textfield}input[type=search]::-webkit-search-decoration{display:none}.wp-admin input[type=file]{padding:3px 0;cursor:pointer}input.readonly,input[readonly],textarea.readonly,textarea[readonly]{background-color:#f0f0f1}::-webkit-input-placeholder{color:#646970}::-moz-placeholder{color:#646970;opacity:1}:-ms-input-placeholder{color:#646970}.form-invalid .form-required,.form-invalid .form-required:focus,.form-invalid.form-required input,.form-invalid.form-required input:focus,.form-invalid.form-required select,.form-invalid.form-required select:focus{border-color:#d63638!important;box-shadow:0 0 2px rgba(214,54,56,.8)}.form-table .form-required.form-invalid td:after{content:"\f534";font:normal 20px/1 dashicons;color:#d63638;margin-left:-25px;vertical-align:middle}.form-table .form-required.user-pass1-wrap.form-invalid td:after{content:""}.form-table .form-required.user-pass1-wrap.form-invalid .password-input-wrapper:after{content:"\f534";font:normal 20px/1 dashicons;color:#d63638;margin:0 6px 0 -29px;vertical-align:middle}.form-input-tip{color:#646970}input.disabled,input:disabled,select.disabled,select:disabled,textarea.disabled,textarea:disabled{background:rgba(255,255,255,.5);border-color:rgba(220,220,222,.75);box-shadow:inset 0 1px 2px rgba(0,0,0,.04);color:rgba(44,51,56,.5)}input[type=file].disabled,input[type=file]:disabled,input[type=file][aria-disabled=true],input[type=range].disabled,input[type=range]:disabled,input[type=range][aria-disabled=true]{background:0 0;box-shadow:none;cursor:default}input[type=checkbox].disabled,input[type=checkbox].disabled:checked:before,input[type=checkbox]:disabled,input[type=checkbox]:disabled:checked:before,input[type=checkbox][aria-disabled=true],input[type=radio].disabled,input[type=radio].disabled:checked:before,input[type=radio]:disabled,input[type=radio]:disabled:checked:before,input[type=radio][aria-disabled=true]{opacity:.7;cursor:default}.wp-core-ui select{font-size:14px;line-height:2;color:#2c3338;border-color:#8c8f94;box-shadow:none;border-radius:3px;padding:0 24px 0 8px;min-height:30px;max-width:25rem;-webkit-appearance:none;background:#fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55%;background-size:16px 16px;cursor:pointer;vertical-align:middle}.wp-core-ui select:hover{color:#2271b1}.wp-core-ui select:focus{border-color:#2271b1;color:#0a4b78;box-shadow:0 0 0 1px #2271b1}.wp-core-ui select:active{border-color:#8c8f94;box-shadow:none}.wp-core-ui select.disabled,.wp-core-ui select:disabled{color:#a7aaad;border-color:#dcdcde;background-color:#f6f7f7;background-image:url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23a0a5aa%22%2F%3E%3C%2Fsvg%3E');box-shadow:none;text-shadow:0 1px 0 #fff;cursor:default;transform:none}.wp-core-ui select[aria-disabled=true]{cursor:default}.wp-core-ui select:-moz-focusring{color:transparent;text-shadow:0 0 0 #0a4b78}.wp-core-ui select::-ms-value{background:0 0;color:#50575e}.wp-core-ui select:hover::-ms-value{color:#2271b1}.wp-core-ui select:focus::-ms-value{color:#0a4b78}.wp-core-ui select.disabled::-ms-value,.wp-core-ui select:disabled::-ms-value{color:#a7aaad}.wp-core-ui select::-ms-expand{display:none}.wp-admin .button-cancel{display:inline-block;min-height:28px;padding:0 5px;line-height:2}.meta-box-sortables select{max-width:100%}.meta-box-sortables input{vertical-align:middle}.misc-pub-post-status select{margin-top:0}.wp-core-ui select[multiple]{height:auto;padding-right:8px;background:#fff}.submit{padding:1.5em 0;margin:5px 0;border-bottom-left-radius:3px;border-bottom-right-radius:3px;border:none}form p.submit a.cancel:hover{text-decoration:none}p.submit{text-align:left;max-width:100%;margin-top:20px;padding-top:10px}.textright p.submit{border:none;text-align:right}table.form-table+input+input+p.submit,table.form-table+input+p.submit,table.form-table+p.submit{border-top:none;padding-top:0}#major-publishing-actions input,#minor-publishing-actions .preview,#minor-publishing-actions input{text-align:center}input.all-options,textarea.all-options{width:250px}input.large-text,textarea.large-text{width:99%}.regular-text{width:25em}input.small-text{width:50px;padding:0 6px}label input.small-text{margin-top:-4px}input[type=number].small-text{width:65px;padding-right:0}input.tiny-text{width:35px}input[type=number].tiny-text{width:45px;padding-right:0}#doaction,#doaction2,#post-query-submit{margin:0 8px 0 0}.no-js input#changeit2,.no-js input#doaction2,.no-js label[for=bulk-action-selector-bottom],.no-js label[for=new_role2],.no-js select#bulk-action-selector-bottom,.no-js select#new_role2{display:none}.tablenav .actions select{float:left;margin-right:6px;max-width:12.5rem}#timezone_string option{margin-left:1em}.wp-cancel-pw>.dashicons,.wp-hide-pw>.dashicons{position:relative;top:3px;width:1.25rem;height:1.25rem;top:.25rem;font-size:20px}.wp-cancel-pw .dashicons-no{display:none}#your-profile label+a,label{vertical-align:middle}#your-profile label+a,fieldset label{vertical-align:middle}.options-media-php [for*="_size_"]{min-width:10em;vertical-align:baseline}.options-media-php .small-text[name*="_size_"]{margin:0 0 1em}.wp-generate-pw{margin-top:1em;position:relative}.wp-pwd button{height:min-content}.wp-pwd button.pwd-toggle .dashicons{position:relative;top:.25rem}.wp-pwd{margin-top:1em;position:relative}.mailserver-pass-wrap .wp-pwd{display:inline-block;margin-top:0}#mailserver_pass{padding-right:2.5rem}.mailserver-pass-wrap .button.wp-hide-pw{background:0 0;border:1px solid transparent;box-shadow:none;font-size:14px;line-height:2;width:2.5rem;min-width:40px;margin:0;padding:0 9px;position:absolute;right:0;top:0}.mailserver-pass-wrap .button.wp-hide-pw:hover{background:0 0;border-color:transparent}.mailserver-pass-wrap .button.wp-hide-pw:focus{background:0 0;border-color:#3582c4;border-radius:4px;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.mailserver-pass-wrap .button.wp-hide-pw:active{background:0 0;box-shadow:none;transform:none}#misc-publishing-actions label{vertical-align:baseline}#pass-strength-result{background-color:#f0f0f1;border:1px solid #dcdcde;color:#1d2327;margin:-1px 1px 5px;padding:3px 5px;text-align:center;width:25em;box-sizing:border-box;opacity:0}#pass-strength-result.short{background-color:#ffabaf;border-color:#e65054;opacity:1}#pass-strength-result.bad{background-color:#facfd2;border-color:#f86368;opacity:1}#pass-strength-result.good{background-color:#f5e6ab;border-color:#f0c33c;opacity:1}#pass-strength-result.strong{background-color:#b8e6bf;border-color:#68de7c;opacity:1}.password-input-wrapper{display:inline-block}.password-input-wrapper input{font-family:Consolas,Monaco,monospace}#pass1-text.short,#pass1.short{border-color:#e65054}#pass1-text.bad,#pass1.bad{border-color:#f86368}#pass1-text.good,#pass1.good{border-color:#f0c33c}#pass1-text.strong,#pass1.strong{border-color:#68de7c}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.pw-weak{display:none}.indicator-hint{padding-top:8px}.wp-pwd [type=password],.wp-pwd [type=text]{margin-bottom:0;min-height:30px}.wp-pwd input::-ms-reveal{display:none}#pass1-text,.show-password #pass1{display:none}#pass1-text::-ms-clear{display:none}.show-password #pass1-text{display:inline-block}p.search-box{display:flex;flex-wrap:wrap;align-items:center;column-gap:.5rem;position:relative;float:right;margin:11px 0}.network-admin.themes-php p.search-box{clear:left}.search-box input[name="s"],.tablenav .search-plugins input[name="s"],.tagsdiv .newtag{float:left;margin:0 4px 0 0}.js.plugins-php .search-box .wp-filter-search{margin:0;width:280px}input[type=email].ui-autocomplete-loading,input[type=text].ui-autocomplete-loading{background-image:url(../images/loading.gif);background-repeat:no-repeat;background-position:right 5px center;visibility:visible}input.ui-autocomplete-input.open{border-bottom-color:transparent}ul#add-to-blog-users{margin:0 0 0 14px}.ui-autocomplete{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;border:1px solid #4f94d4;box-shadow:0 1px 2px rgba(79,148,212,.8);background-color:#fff}.ui-autocomplete li{margin-bottom:0;padding:4px 10px;white-space:nowrap;text-align:left;cursor:pointer}.ui-autocomplete .ui-state-focus{background-color:#dcdcde}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:#2271b1;color:#fff;outline:2px solid transparent}.button-add-site-icon{width:100%;cursor:pointer;text-align:center;border:1px dashed #c3c4c7;box-sizing:border-box;padding:9px 0;line-height:1.6;max-width:270px}.button-add-site-icon:focus,.button-add-site-icon:hover{background:#fff}.site-icon-section .favicon-preview{float:left}.site-icon-section .app-icon-preview{float:left;margin:0 20px}.site-icon-section .site-icon-preview img{max-width:100%}.button-add-site-icon:focus{background-color:#fff;border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.form-table{border-collapse:collapse;margin-top:.5em;width:100%;clear:both}.form-table,.form-table td,.form-table td p,.form-table th{font-size:14px}.form-table td{margin-bottom:9px;padding:15px 10px;line-height:1.3;vertical-align:middle}.form-table th,.form-wrap label{color:#1d2327;font-weight:400;text-shadow:none;vertical-align:baseline}.form-table th{vertical-align:top;text-align:left;padding:20px 10px 20px 0;width:200px;line-height:1.3;font-weight:600}.form-table .td-full,.form-table th.th-full{width:auto;padding:20px 10px 20px 0;font-weight:400}.form-table td p{margin-top:4px;margin-bottom:0}.form-table .date-time-doc{margin-top:1em}.form-table p.timezone-info{margin:1em 0;display:flex;flex-direction:column}#local-time{margin-top:.5em}.form-table td fieldset label{margin:.35em 0 .5em!important;display:inline-block}.form-table td fieldset p label{margin-top:0!important}.form-table td fieldset label,.form-table td fieldset li,.form-table td fieldset p{line-height:1.4}.form-table input.tog,.form-table input[type=radio]{margin-top:-4px;margin-right:4px;float:none}.form-table .pre{padding:8px;margin:0}table.form-table td .updated{font-size:13px}table.form-table td .updated p{font-size:13px;margin:.3em 0}#profile-page .form-table textarea{width:500px;margin-bottom:6px}#profile-page .form-table #rich_editing{margin-right:5px}#your-profile legend{font-size:22px}#display_name{width:15em}#adduser .form-field input,#createuser .form-field input{width:25em}.color-option{display:inline-block;width:24%;padding:5px 15px 15px;box-sizing:border-box;margin-bottom:3px}.color-option.selected,.color-option:hover{background:#dcdcde}.color-palette{display:table;width:100%;border-spacing:0;border-collapse:collapse}.color-palette .color-palette-shade,.color-palette td{display:table-cell;height:20px;padding:0;border:none}.color-option{cursor:pointer}.create-application-password .form-field{max-width:25em}.create-application-password label{font-weight:600}.create-application-password p.submit{margin-bottom:0;padding-bottom:0;display:block}#application-passwords-section .notice{margin-top:20px;margin-bottom:0;word-wrap:break-word}.application-password-display input.code{width:19em}.auth-app-card.card{max-width:768px}.authorize-application-php .form-wrap p{display:block}.tool-box .title{margin:8px 0;font-size:18px;font-weight:400;line-height:24px}.label-responsive{vertical-align:middle}#export-filters p{margin:0 0 1em}#export-filters p.submit{margin:7px 0 5px}.card{position:relative;margin-top:20px;padding:.7em 2em 1em;min-width:255px;max-width:520px;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff;box-sizing:border-box}.pressthis h4{margin:2em 0 1em}.pressthis textarea{width:100%;font-size:1em}#pressthis-code-wrap{overflow:auto}.pressthis-bookmarklet-wrapper{margin:20px 0 8px;vertical-align:top;position:relative;z-index:1}.pressthis-bookmarklet,.pressthis-bookmarklet:active,.pressthis-bookmarklet:focus,.pressthis-bookmarklet:hover{display:inline-block;position:relative;cursor:move;color:#2c3338;background:#dcdcde;border-radius:5px;border:1px solid #c3c4c7;font-style:normal;line-height:16px;font-size:14px;text-decoration:none}.pressthis-bookmarklet:active{outline:0}.pressthis-bookmarklet:after{content:"";width:70%;height:55%;z-index:-1;position:absolute;right:10px;bottom:9px;background:0 0;transform:skew(20deg) rotate(6deg);box-shadow:0 10px 8px rgba(0,0,0,.6)}.pressthis-bookmarklet:hover:after{transform:skew(20deg) rotate(9deg);box-shadow:0 10px 8px rgba(0,0,0,.7)}.pressthis-bookmarklet span{display:inline-block;margin:0;padding:0 12px 8px 9px}.pressthis-bookmarklet span:before{color:#787c82;font:normal 20px/1 dashicons;content:"\f157";position:relative;display:inline-block;top:4px;margin-right:4px}.pressthis-js-toggle{margin-left:10px;padding:0;height:auto;vertical-align:top}.pressthis-js-toggle.button.button{margin-left:10px;padding:0;height:auto;vertical-align:top}.pressthis-js-toggle .dashicons{margin:5px 8px 6px 7px;color:#50575e}.timezone-info code{white-space:nowrap}.defaultavatarpicker .avatar{margin:2px 0;vertical-align:middle}.options-general-php .date-time-text{display:inline-block;min-width:10em}.options-general-php input.small-text{width:56px;margin:-2px 0}.options-general-php .spinner{float:none;margin:-3px 3px 0}.options-general-php .language-install-spinner,.profile-php .language-install-spinner,.settings-php .language-install-spinner,.user-edit-php .language-install-spinner{display:inline-block;float:none;margin:-3px 5px 0;vertical-align:middle}.form-table.permalink-structure .available-structure-tags{margin-top:8px}.form-table.permalink-structure .available-structure-tags ul{display:flex;flex-wrap:wrap;margin:8px 0 0}.form-table.permalink-structure .available-structure-tags li{margin:6px 5px 0 0}.form-table.permalink-structure .available-structure-tags li:last-child{margin-right:0}.form-table.permalink-structure .structure-selection .row{margin-bottom:16px}.form-table.permalink-structure .structure-selection .row>div{max-width:calc(100% - 24px);display:inline-flex;flex-direction:column}.form-table.permalink-structure .structure-selection .row label{font-weight:600}.form-table.permalink-structure .structure-selection .row p{margin-top:0}.setup-php textarea{max-width:100%}.form-field #site-address{max-width:25em}.form-field #domain{max-width:22em}.form-field #admin-email,.form-field #blog_last_updated,.form-field #blog_registered,.form-field #path,.form-field #site-title{max-width:25em}.form-field #path{margin-bottom:5px}#search-sites,#search-users{max-width:60%}.configuration-rules-label{font-weight:600;margin-bottom:4px}.request-filesystem-credentials-dialog{display:none;visibility:visible}.request-filesystem-credentials-dialog .notification-dialog{top:10%;max-height:85%}.request-filesystem-credentials-dialog-content{margin:25px}#request-filesystem-credentials-title{font-size:1.3em;margin:1em 0}.request-filesystem-credentials-form legend{font-size:1em;padding:1.33em 0;font-weight:600}.request-filesystem-credentials-form input[type=password],.request-filesystem-credentials-form input[type=text]{display:block}.request-filesystem-credentials-dialog input[type=password],.request-filesystem-credentials-dialog input[type=text]{width:100%}.request-filesystem-credentials-form .field-title{font-weight:600}.request-filesystem-credentials-dialog label[for=hostname],.request-filesystem-credentials-dialog label[for=private_key],.request-filesystem-credentials-dialog label[for=public_key]{display:block;margin-bottom:1em}.request-filesystem-credentials-dialog .ftp-password,.request-filesystem-credentials-dialog .ftp-username{float:left;width:48%}.request-filesystem-credentials-dialog .ftp-password{margin-left:4%}.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons{text-align:right}.request-filesystem-credentials-dialog label[for=ftp]{margin-right:10px}.request-filesystem-credentials-dialog #auth-keys-desc{margin-bottom:0}#request-filesystem-credentials-dialog .button:not(:last-child){margin-right:10px}#request-filesystem-credentials-form .cancel-button{display:none}#request-filesystem-credentials-dialog .cancel-button{display:inline}.request-filesystem-credentials-dialog .ftp-password,.request-filesystem-credentials-dialog .ftp-username{float:none;width:auto}.request-filesystem-credentials-dialog .ftp-username{margin-bottom:1em}.request-filesystem-credentials-dialog .ftp-password{margin:0}.request-filesystem-credentials-dialog .ftp-password em{color:#8c8f94}.request-filesystem-credentials-dialog label{display:block;line-height:1.5;margin-bottom:1em}.request-filesystem-credentials-form legend{padding-bottom:0}.request-filesystem-credentials-form #ssh-keys legend{font-size:1.3em}.request-filesystem-credentials-form .notice{margin:0 0 20px;clear:both}.tools-privacy-policy-page form{margin-bottom:1.3em}.tools-privacy-policy-page input.button{margin:0 1px 0 6px}.tools-privacy-policy-page select{margin:0 1px .5em 6px}.tools-privacy-edit{margin:1.5em 0}.tools-privacy-policy-page span{line-height:2}.privacy_requests .column-email{width:40%}.privacy_requests .column-type{text-align:center}.privacy_requests tfoot td:first-child,.privacy_requests thead td:first-child{border-left:4px solid #fff}.privacy_requests tbody th{border-left:4px solid #fff;background:#fff;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.privacy_requests .row-actions{color:#787c82}.privacy_requests .row-actions.processing{position:static}.privacy_requests tbody .has-request-results th{box-shadow:none}.privacy_requests tbody .request-results th .notice{margin:0 0 5px}.privacy_requests tbody td{background:#fff;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.privacy_requests tbody .has-request-results td{box-shadow:none}.privacy_requests .next_steps .button{word-wrap:break-word;white-space:normal}.privacy_requests .status-request-confirmed td,.privacy_requests .status-request-confirmed th{background-color:#fff;border-left-color:#72aee6}.privacy_requests .status-request-failed td,.privacy_requests .status-request-failed th{background-color:#f6f7f7;border-left-color:#d63638}.privacy_requests .export_personal_data_failed a{vertical-align:baseline}.status-label{font-weight:600}.status-label.status-request-pending{font-weight:400;font-style:italic;color:#646970}.status-label.status-request-failed{color:#d63638;font-weight:600}.wp-privacy-request-form{clear:both}.wp-privacy-request-form-field{margin:1.5em 0}.wp-privacy-request-form input{margin:0}.email-personal-data::before{display:inline-block;font:normal 20px/1 dashicons;margin:3px 5px 0 -2px;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.email-personal-data--sending::before{color:#d63638;content:"\f463";animation:rotation 2s infinite linear}.email-personal-data--sent::before{color:#68de7c;content:"\f147"}@media screen and (max-width:782px){textarea{-webkit-appearance:none}input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week]{-webkit-appearance:none;padding:3px 10px;min-height:40px}::-webkit-datetime-edit{line-height:1.875}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox],input[type=checkbox]{-webkit-appearance:none}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox]{margin-bottom:8px}.widefat tfoot td input[type=checkbox]:before,.widefat th input[type=checkbox]:before,.widefat thead td input[type=checkbox]:before,input[type=checkbox]:checked:before{width:1.875rem;height:1.875rem;margin:-.1875rem -.3125rem}input[type=checkbox],input[type=radio]{height:1.5625rem;width:1.5625rem}.wp-admin p input[type=checkbox],.wp-admin p input[type=radio]{margin-top:-.1875rem}input[type=radio]:checked:before{vertical-align:middle;width:.5625rem;height:.5625rem;margin:.4375rem;line-height:.76190476}.wp-upload-form input[type=submit]{margin-top:10px}.wp-admin .form-table select,.wp-core-ui select{min-height:40px;font-size:16px;line-height:1.625;padding:5px 24px 5px 8px}.wp-admin .button-cancel{margin-bottom:0;padding:2px 0;font-size:14px;vertical-align:middle}#adduser .form-field input,#createuser .form-field input{width:100%}.form-table{box-sizing:border-box}.form-table td,.form-table th,.label-responsive{display:block;width:auto;vertical-align:middle}.label-responsive{margin:.5em 0}.export-filters li{margin-bottom:0}.form-table .color-palette .color-palette-shade,.form-table .color-palette td{display:table-cell;width:15px;height:30px;padding:0}.form-table .color-palette{margin-right:10px}input,textarea{font-size:16px}#profile-page .form-table textarea,.form-table span.description,.form-table td input[type=email],.form-table td input[type=password],.form-table td input[type=text],.form-table td select,.form-table td textarea{width:100%;display:block;max-width:none;box-sizing:border-box}.form-table .form-required.form-invalid td:after{float:right;margin:-30px 3px 0 0}.form-table input[type=text].small-text,input[type=number].small-text,input[type=password].small-text,input[type=search].small-text,input[type=text].small-text{width:auto;max-width:4.375em;display:inline;padding:3px 6px;margin:0 3px}.form-table .regular-text~input[type=text].small-text{margin-top:5px}#pass-strength-result{width:100%;box-sizing:border-box;padding:8px}.password-input-wrapper{display:block}p.search-box{float:none;width:100%;margin-bottom:20px;display:flex}p.search-box input[name="s"]{float:none;width:100%;margin-bottom:10px;vertical-align:middle}p.search-box input[type=submit]{margin-bottom:10px}.form-table span.description{display:inline;padding:4px 0 0;line-height:1.4;font-size:14px}.form-table th{padding:10px 0 0;border-bottom:0}.form-table td{margin-bottom:0;padding:4px 0 6px}.form-table.permalink-structure td code{display:inline-block}.form-table.permalink-structure .structure-selection{margin-top:8px}.form-table.permalink-structure .structure-selection .row>div{max-width:calc(100% - 36px);width:100%}.form-table.permalink-structure td input[type=text]{margin-top:4px}.form-table input.regular-text{width:100%}.form-table label{font-size:14px}.form-table td>label:first-child{display:inline-block;margin-top:.35em}.background-position-control .button-group>label{font-size:0}.form-table fieldset label{display:block}.form-field #domain{max-width:none}.wp-pwd{position:relative}#profile-page .form-table #pass1{padding-right:90px}.wp-pwd button.button{background:0 0;border:1px solid transparent;box-shadow:none;line-height:2;margin:0;padding:5px 9px;position:absolute;right:0;top:0;width:2.375rem;height:2.375rem;min-width:40px;min-height:40px}.wp-pwd button.wp-hide-pw{right:2.5rem}body.user-new-php .wp-pwd button.wp-hide-pw{right:0}.wp-pwd button.button:focus,.wp-pwd button.button:hover{background:0 0}.wp-pwd button.button:active{background:0 0;box-shadow:none;transform:none}.wp-pwd .button .text{display:none}.wp-pwd [type=password],.wp-pwd [type=text]{line-height:2;padding-right:5rem}body.user-new-php .wp-pwd [type=password],body.user-new-php .wp-pwd [type=text]{padding-right:2.5rem}.wp-cancel-pw .dashicons-no{display:inline-block}.mailserver-pass-wrap .wp-pwd{display:block}#mailserver_pass{padding-left:10px}.options-general-php input[type=text].small-text{max-width:6.25em;margin:0}.tools-privacy-policy-page form.wp-create-privacy-page{margin-bottom:1em}.tools-privacy-policy-page input#set-page,.tools-privacy-policy-page select{margin:10px 0 0}.tools-privacy-policy-page .wp-create-privacy-page span{display:block;margin-bottom:1em}.tools-privacy-policy-page .wp-create-privacy-page .button{margin-left:0}.wp-list-table.privacy_requests tr:not(.inline-edit-row):not(.no-items) td.column-primary:not(.check-column){display:table-cell}.wp-list-table.privacy_requests.widefat th input,.wp-list-table.privacy_requests.widefat thead td input{margin-left:5px}.wp-privacy-request-form-field input[type=text]{width:100%;margin-bottom:10px;vertical-align:middle}.regular-text{max-width:100%}}@media only screen and (max-width:768px){.form-field input[type=email],.form-field input[type=password],.form-field input[type=text],.form-field select,.form-field textarea{width:99%}.form-wrap .form-field{padding:0}}@media only screen and (max-height:480px),screen and (max-width:450px){.file-editor-warning .notification-dialog,.request-filesystem-credentials-dialog .notification-dialog{width:100%;height:100%;max-height:100%;position:fixed;top:0;margin:0;left:0}}@media screen and (max-width:600px){.color-option{width:49%}}@media only screen and (max-width:320px){.options-general-php .date-time-text.date-time-custom-text{min-width:0;margin-right:.5em}}@keyframes rotation{0%{transform:rotate(0)}100%{transform:rotate(359deg)}} \ No newline at end of file
diff --git a/wp-admin/css/install-rtl.css b/wp-admin/css/install-rtl.css
index 61eeaae..f9370f3 100644
--- a/wp-admin/css/install-rtl.css
+++ b/wp-admin/css/install-rtl.css
@@ -351,7 +351,6 @@ body.language-chooser {
.screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
- -webkit-clip-path: inset(50%);
clip-path: inset(50%);
height: 1px;
margin: -1px;
diff --git a/wp-admin/css/install-rtl.min.css b/wp-admin/css/install-rtl.min.css
index c2bef20..43dd10b 100644
--- a/wp-admin/css/install-rtl.min.css
+++ b/wp-admin/css/install-rtl.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-html{background:#f0f0f1;margin:0 20px}body{background:#fff;border:1px solid #c3c4c7;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;margin:140px auto 25px;padding:20px 20px 10px;max-width:700px;-webkit-font-smoothing:subpixel-antialiased;box-shadow:0 1px 1px rgba(0,0,0,.04)}a{color:#2271b1}a:active,a:hover{color:#135e96}a:focus{color:#043959;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}h1,h2{border-bottom:1px solid #dcdcde;clear:both;color:#646970;font-size:24px;padding:0 0 7px;font-weight:400}h3{font-size:16px}dd,dt,li,p{padding-bottom:2px;font-size:14px;line-height:1.5}.code,code{font-family:Consolas,Monaco,monospace}dl,ol,ul{padding:5px 22px 5px 5px}a img{border:0}abbr{border:0;font-variant:normal}fieldset{border:0;padding:0;margin:0}#logo{margin:-130px auto 25px;padding:0 0 25px;width:84px;height:84px;overflow:hidden;background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);background-size:84px;background-position:center top;background-repeat:no-repeat;color:#3c434a;font-size:20px;font-weight:400;line-height:1.3em;text-decoration:none;text-align:center;text-indent:-9999px;outline:0}.step{margin:20px 0 15px}.step,th{text-align:right;padding:0}.language-chooser.wp-core-ui .step .button.button-large{font-size:14px}textarea{border:1px solid #dcdcde;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;width:100%;box-sizing:border-box}.form-table{border-collapse:collapse;margin-top:1em;width:100%}.form-table td{margin-bottom:9px;padding:10px 0 10px 20px;font-size:14px;vertical-align:top}.form-table th{font-size:14px;text-align:right;padding:10px 0 10px 20px;width:115px;vertical-align:top}.form-table code{line-height:1.28571428;font-size:14px}.form-table p{margin:4px 0 0;font-size:11px}.form-table .setup-description{margin:4px 0 0;line-height:1.6}.form-table input{line-height:1.33333333;font-size:15px;padding:3px 5px}.wp-pwd{margin-top:0}.form-table .wp-pwd{display:flex;column-gap:4px}.form-table .password-input-wrapper{width:100%}input,submit{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}#pass-strength-result,.form-table input[type=email],.form-table input[type=password],.form-table input[type=text],.form-table input[type=url]{width:100%}.form-table th p{font-weight:400}.form-table.install-success td,.form-table.install-success th{vertical-align:middle;padding:16px 0 16px 20px}.form-table.install-success td p{margin:0;font-size:14px}.form-table.install-success td code{margin:0;font-size:18px}#error-page{margin-top:50px}#error-page p{font-size:14px;line-height:1.28571428;margin:25px 0 20px}#error-page code,.code{font-family:Consolas,Monaco,monospace}.message{border-right:4px solid #d63638;padding:.7em .6em;background-color:#fcf0f1}#admin_email,#dbhost,#dbname,#pass1,#pass2,#prefix,#pwd,#uname,#user_login{direction:ltr}.rtl input,.rtl submit,.rtl textarea,body.rtl{font-family:Tahoma,sans-serif}:lang(he-il) .rtl input,:lang(he-il) .rtl submit,:lang(he-il) .rtl textarea,:lang(he-il) body.rtl{font-family:Arial,sans-serif}@media only screen and (max-width:799px){body{margin-top:115px}#logo a{margin:-125px auto 30px}}@media screen and (max-width:782px){.form-table{margin-top:0}.form-table td,.form-table th{display:block;width:auto;vertical-align:middle}.form-table th{padding:20px 0 0}.form-table td{padding:5px 0;border:0;margin:0}input,textarea{font-size:16px}.form-table span.description,.form-table td input[type=email],.form-table td input[type=password],.form-table td input[type=text],.form-table td input[type=url],.form-table td select,.form-table td textarea{width:100%;font-size:16px;line-height:1.5;padding:7px 10px;display:block;max-width:none;box-sizing:border-box}#pwd{padding-left:2.5rem}.wp-pwd #pass1{padding-left:50px}.wp-pwd .button.wp-hide-pw{left:0}#pass-strength-result{width:100%}}body.language-chooser{max-width:300px}.language-chooser select{padding:8px;width:100%;display:block;border:1px solid #dcdcde;background:#fff;color:#2c3338;font-size:16px;font-family:Arial,sans-serif;font-weight:400}.language-chooser select:focus{color:#2c3338}.language-chooser select option:focus,.language-chooser select option:hover{color:#0a4b78}.language-chooser .step{text-align:left}.screen-reader-input,.screen-reader-text{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}.spinner{background:url(../images/spinner.gif) no-repeat;background-size:20px 20px;visibility:hidden;opacity:.7;width:20px;height:20px;margin:2px 5px 0}.step .spinner{display:inline-block;vertical-align:middle;margin-left:15px}.button.hide-if-no-js,.hide-if-no-js{display:none}@media print,(min-resolution:120dpi){.spinner{background-image:url(../images/spinner-2x.gif)}} \ No newline at end of file
+html{background:#f0f0f1;margin:0 20px}body{background:#fff;border:1px solid #c3c4c7;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;margin:140px auto 25px;padding:20px 20px 10px;max-width:700px;-webkit-font-smoothing:subpixel-antialiased;box-shadow:0 1px 1px rgba(0,0,0,.04)}a{color:#2271b1}a:active,a:hover{color:#135e96}a:focus{color:#043959;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}h1,h2{border-bottom:1px solid #dcdcde;clear:both;color:#646970;font-size:24px;padding:0 0 7px;font-weight:400}h3{font-size:16px}dd,dt,li,p{padding-bottom:2px;font-size:14px;line-height:1.5}.code,code{font-family:Consolas,Monaco,monospace}dl,ol,ul{padding:5px 22px 5px 5px}a img{border:0}abbr{border:0;font-variant:normal}fieldset{border:0;padding:0;margin:0}#logo{margin:-130px auto 25px;padding:0 0 25px;width:84px;height:84px;overflow:hidden;background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);background-size:84px;background-position:center top;background-repeat:no-repeat;color:#3c434a;font-size:20px;font-weight:400;line-height:1.3em;text-decoration:none;text-align:center;text-indent:-9999px;outline:0}.step{margin:20px 0 15px}.step,th{text-align:right;padding:0}.language-chooser.wp-core-ui .step .button.button-large{font-size:14px}textarea{border:1px solid #dcdcde;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;width:100%;box-sizing:border-box}.form-table{border-collapse:collapse;margin-top:1em;width:100%}.form-table td{margin-bottom:9px;padding:10px 0 10px 20px;font-size:14px;vertical-align:top}.form-table th{font-size:14px;text-align:right;padding:10px 0 10px 20px;width:115px;vertical-align:top}.form-table code{line-height:1.28571428;font-size:14px}.form-table p{margin:4px 0 0;font-size:11px}.form-table .setup-description{margin:4px 0 0;line-height:1.6}.form-table input{line-height:1.33333333;font-size:15px;padding:3px 5px}.wp-pwd{margin-top:0}.form-table .wp-pwd{display:flex;column-gap:4px}.form-table .password-input-wrapper{width:100%}input,submit{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}#pass-strength-result,.form-table input[type=email],.form-table input[type=password],.form-table input[type=text],.form-table input[type=url]{width:100%}.form-table th p{font-weight:400}.form-table.install-success td,.form-table.install-success th{vertical-align:middle;padding:16px 0 16px 20px}.form-table.install-success td p{margin:0;font-size:14px}.form-table.install-success td code{margin:0;font-size:18px}#error-page{margin-top:50px}#error-page p{font-size:14px;line-height:1.28571428;margin:25px 0 20px}#error-page code,.code{font-family:Consolas,Monaco,monospace}.message{border-right:4px solid #d63638;padding:.7em .6em;background-color:#fcf0f1}#admin_email,#dbhost,#dbname,#pass1,#pass2,#prefix,#pwd,#uname,#user_login{direction:ltr}.rtl input,.rtl submit,.rtl textarea,body.rtl{font-family:Tahoma,sans-serif}:lang(he-il) .rtl input,:lang(he-il) .rtl submit,:lang(he-il) .rtl textarea,:lang(he-il) body.rtl{font-family:Arial,sans-serif}@media only screen and (max-width:799px){body{margin-top:115px}#logo a{margin:-125px auto 30px}}@media screen and (max-width:782px){.form-table{margin-top:0}.form-table td,.form-table th{display:block;width:auto;vertical-align:middle}.form-table th{padding:20px 0 0}.form-table td{padding:5px 0;border:0;margin:0}input,textarea{font-size:16px}.form-table span.description,.form-table td input[type=email],.form-table td input[type=password],.form-table td input[type=text],.form-table td input[type=url],.form-table td select,.form-table td textarea{width:100%;font-size:16px;line-height:1.5;padding:7px 10px;display:block;max-width:none;box-sizing:border-box}#pwd{padding-left:2.5rem}.wp-pwd #pass1{padding-left:50px}.wp-pwd .button.wp-hide-pw{left:0}#pass-strength-result{width:100%}}body.language-chooser{max-width:300px}.language-chooser select{padding:8px;width:100%;display:block;border:1px solid #dcdcde;background:#fff;color:#2c3338;font-size:16px;font-family:Arial,sans-serif;font-weight:400}.language-chooser select:focus{color:#2c3338}.language-chooser select option:focus,.language-chooser select option:hover{color:#0a4b78}.language-chooser .step{text-align:left}.screen-reader-input,.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.spinner{background:url(../images/spinner.gif) no-repeat;background-size:20px 20px;visibility:hidden;opacity:.7;width:20px;height:20px;margin:2px 5px 0}.step .spinner{display:inline-block;vertical-align:middle;margin-left:15px}.button.hide-if-no-js,.hide-if-no-js{display:none}@media print,(min-resolution:120dpi){.spinner{background-image:url(../images/spinner-2x.gif)}} \ No newline at end of file
diff --git a/wp-admin/css/install.css b/wp-admin/css/install.css
index 29e8571..af77cdc 100644
--- a/wp-admin/css/install.css
+++ b/wp-admin/css/install.css
@@ -350,7 +350,6 @@ body.language-chooser {
.screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
- -webkit-clip-path: inset(50%);
clip-path: inset(50%);
height: 1px;
margin: -1px;
diff --git a/wp-admin/css/install.min.css b/wp-admin/css/install.min.css
index c7f3e03..4efd37c 100644
--- a/wp-admin/css/install.min.css
+++ b/wp-admin/css/install.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-html{background:#f0f0f1;margin:0 20px}body{background:#fff;border:1px solid #c3c4c7;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;margin:140px auto 25px;padding:20px 20px 10px;max-width:700px;-webkit-font-smoothing:subpixel-antialiased;box-shadow:0 1px 1px rgba(0,0,0,.04)}a{color:#2271b1}a:active,a:hover{color:#135e96}a:focus{color:#043959;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}h1,h2{border-bottom:1px solid #dcdcde;clear:both;color:#646970;font-size:24px;padding:0 0 7px;font-weight:400}h3{font-size:16px}dd,dt,li,p{padding-bottom:2px;font-size:14px;line-height:1.5}.code,code{font-family:Consolas,Monaco,monospace}dl,ol,ul{padding:5px 5px 5px 22px}a img{border:0}abbr{border:0;font-variant:normal}fieldset{border:0;padding:0;margin:0}#logo{margin:-130px auto 25px;padding:0 0 25px;width:84px;height:84px;overflow:hidden;background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);background-size:84px;background-position:center top;background-repeat:no-repeat;color:#3c434a;font-size:20px;font-weight:400;line-height:1.3em;text-decoration:none;text-align:center;text-indent:-9999px;outline:0}.step{margin:20px 0 15px}.step,th{text-align:left;padding:0}.language-chooser.wp-core-ui .step .button.button-large{font-size:14px}textarea{border:1px solid #dcdcde;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;width:100%;box-sizing:border-box}.form-table{border-collapse:collapse;margin-top:1em;width:100%}.form-table td{margin-bottom:9px;padding:10px 20px 10px 0;font-size:14px;vertical-align:top}.form-table th{font-size:14px;text-align:left;padding:10px 20px 10px 0;width:115px;vertical-align:top}.form-table code{line-height:1.28571428;font-size:14px}.form-table p{margin:4px 0 0;font-size:11px}.form-table .setup-description{margin:4px 0 0;line-height:1.6}.form-table input{line-height:1.33333333;font-size:15px;padding:3px 5px}.wp-pwd{margin-top:0}.form-table .wp-pwd{display:flex;column-gap:4px}.form-table .password-input-wrapper{width:100%}input,submit{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}#pass-strength-result,.form-table input[type=email],.form-table input[type=password],.form-table input[type=text],.form-table input[type=url]{width:100%}.form-table th p{font-weight:400}.form-table.install-success td,.form-table.install-success th{vertical-align:middle;padding:16px 20px 16px 0}.form-table.install-success td p{margin:0;font-size:14px}.form-table.install-success td code{margin:0;font-size:18px}#error-page{margin-top:50px}#error-page p{font-size:14px;line-height:1.28571428;margin:25px 0 20px}#error-page code,.code{font-family:Consolas,Monaco,monospace}.message{border-left:4px solid #d63638;padding:.7em .6em;background-color:#fcf0f1}#admin_email,#dbhost,#dbname,#pass1,#pass2,#prefix,#pwd,#uname,#user_login{direction:ltr}.rtl input,.rtl submit,.rtl textarea,body.rtl{font-family:Tahoma,sans-serif}:lang(he-il) .rtl input,:lang(he-il) .rtl submit,:lang(he-il) .rtl textarea,:lang(he-il) body.rtl{font-family:Arial,sans-serif}@media only screen and (max-width:799px){body{margin-top:115px}#logo a{margin:-125px auto 30px}}@media screen and (max-width:782px){.form-table{margin-top:0}.form-table td,.form-table th{display:block;width:auto;vertical-align:middle}.form-table th{padding:20px 0 0}.form-table td{padding:5px 0;border:0;margin:0}input,textarea{font-size:16px}.form-table span.description,.form-table td input[type=email],.form-table td input[type=password],.form-table td input[type=text],.form-table td input[type=url],.form-table td select,.form-table td textarea{width:100%;font-size:16px;line-height:1.5;padding:7px 10px;display:block;max-width:none;box-sizing:border-box}#pwd{padding-right:2.5rem}.wp-pwd #pass1{padding-right:50px}.wp-pwd .button.wp-hide-pw{right:0}#pass-strength-result{width:100%}}body.language-chooser{max-width:300px}.language-chooser select{padding:8px;width:100%;display:block;border:1px solid #dcdcde;background:#fff;color:#2c3338;font-size:16px;font-family:Arial,sans-serif;font-weight:400}.language-chooser select:focus{color:#2c3338}.language-chooser select option:focus,.language-chooser select option:hover{color:#0a4b78}.language-chooser .step{text-align:right}.screen-reader-input,.screen-reader-text{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}.spinner{background:url(../images/spinner.gif) no-repeat;background-size:20px 20px;visibility:hidden;opacity:.7;width:20px;height:20px;margin:2px 5px 0}.step .spinner{display:inline-block;vertical-align:middle;margin-right:15px}.button.hide-if-no-js,.hide-if-no-js{display:none}@media print,(min-resolution:120dpi){.spinner{background-image:url(../images/spinner-2x.gif)}} \ No newline at end of file
+html{background:#f0f0f1;margin:0 20px}body{background:#fff;border:1px solid #c3c4c7;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;margin:140px auto 25px;padding:20px 20px 10px;max-width:700px;-webkit-font-smoothing:subpixel-antialiased;box-shadow:0 1px 1px rgba(0,0,0,.04)}a{color:#2271b1}a:active,a:hover{color:#135e96}a:focus{color:#043959;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}h1,h2{border-bottom:1px solid #dcdcde;clear:both;color:#646970;font-size:24px;padding:0 0 7px;font-weight:400}h3{font-size:16px}dd,dt,li,p{padding-bottom:2px;font-size:14px;line-height:1.5}.code,code{font-family:Consolas,Monaco,monospace}dl,ol,ul{padding:5px 5px 5px 22px}a img{border:0}abbr{border:0;font-variant:normal}fieldset{border:0;padding:0;margin:0}#logo{margin:-130px auto 25px;padding:0 0 25px;width:84px;height:84px;overflow:hidden;background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);background-size:84px;background-position:center top;background-repeat:no-repeat;color:#3c434a;font-size:20px;font-weight:400;line-height:1.3em;text-decoration:none;text-align:center;text-indent:-9999px;outline:0}.step{margin:20px 0 15px}.step,th{text-align:left;padding:0}.language-chooser.wp-core-ui .step .button.button-large{font-size:14px}textarea{border:1px solid #dcdcde;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;width:100%;box-sizing:border-box}.form-table{border-collapse:collapse;margin-top:1em;width:100%}.form-table td{margin-bottom:9px;padding:10px 20px 10px 0;font-size:14px;vertical-align:top}.form-table th{font-size:14px;text-align:left;padding:10px 20px 10px 0;width:115px;vertical-align:top}.form-table code{line-height:1.28571428;font-size:14px}.form-table p{margin:4px 0 0;font-size:11px}.form-table .setup-description{margin:4px 0 0;line-height:1.6}.form-table input{line-height:1.33333333;font-size:15px;padding:3px 5px}.wp-pwd{margin-top:0}.form-table .wp-pwd{display:flex;column-gap:4px}.form-table .password-input-wrapper{width:100%}input,submit{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}#pass-strength-result,.form-table input[type=email],.form-table input[type=password],.form-table input[type=text],.form-table input[type=url]{width:100%}.form-table th p{font-weight:400}.form-table.install-success td,.form-table.install-success th{vertical-align:middle;padding:16px 20px 16px 0}.form-table.install-success td p{margin:0;font-size:14px}.form-table.install-success td code{margin:0;font-size:18px}#error-page{margin-top:50px}#error-page p{font-size:14px;line-height:1.28571428;margin:25px 0 20px}#error-page code,.code{font-family:Consolas,Monaco,monospace}.message{border-left:4px solid #d63638;padding:.7em .6em;background-color:#fcf0f1}#admin_email,#dbhost,#dbname,#pass1,#pass2,#prefix,#pwd,#uname,#user_login{direction:ltr}.rtl input,.rtl submit,.rtl textarea,body.rtl{font-family:Tahoma,sans-serif}:lang(he-il) .rtl input,:lang(he-il) .rtl submit,:lang(he-il) .rtl textarea,:lang(he-il) body.rtl{font-family:Arial,sans-serif}@media only screen and (max-width:799px){body{margin-top:115px}#logo a{margin:-125px auto 30px}}@media screen and (max-width:782px){.form-table{margin-top:0}.form-table td,.form-table th{display:block;width:auto;vertical-align:middle}.form-table th{padding:20px 0 0}.form-table td{padding:5px 0;border:0;margin:0}input,textarea{font-size:16px}.form-table span.description,.form-table td input[type=email],.form-table td input[type=password],.form-table td input[type=text],.form-table td input[type=url],.form-table td select,.form-table td textarea{width:100%;font-size:16px;line-height:1.5;padding:7px 10px;display:block;max-width:none;box-sizing:border-box}#pwd{padding-right:2.5rem}.wp-pwd #pass1{padding-right:50px}.wp-pwd .button.wp-hide-pw{right:0}#pass-strength-result{width:100%}}body.language-chooser{max-width:300px}.language-chooser select{padding:8px;width:100%;display:block;border:1px solid #dcdcde;background:#fff;color:#2c3338;font-size:16px;font-family:Arial,sans-serif;font-weight:400}.language-chooser select:focus{color:#2c3338}.language-chooser select option:focus,.language-chooser select option:hover{color:#0a4b78}.language-chooser .step{text-align:right}.screen-reader-input,.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.spinner{background:url(../images/spinner.gif) no-repeat;background-size:20px 20px;visibility:hidden;opacity:.7;width:20px;height:20px;margin:2px 5px 0}.step .spinner{display:inline-block;vertical-align:middle;margin-right:15px}.button.hide-if-no-js,.hide-if-no-js{display:none}@media print,(min-resolution:120dpi){.spinner{background-image:url(../images/spinner-2x.gif)}} \ No newline at end of file
diff --git a/wp-admin/css/l10n-rtl.css b/wp-admin/css/l10n-rtl.css
index eaefa4e..2cce5db 100644
--- a/wp-admin/css/l10n-rtl.css
+++ b/wp-admin/css/l10n-rtl.css
@@ -67,6 +67,14 @@ body.locale-he-il .press-this a.wp-switch-editor {
.locale-de-de-formal #customize-header-actions .spinner {
margin: 16px 3px 0; /* default 16px 4px 0 5px */
}
+body[class*="locale-de-"] .inline-edit-row fieldset label span.title,
+body[class*="locale-de-"] .inline-edit-row fieldset.inline-edit-date legend {
+ width: 7em; /* default 6em */
+}
+body[class*="locale-de-"] .inline-edit-row fieldset label span.input-text-wrap,
+body[class*="locale-de-"] .inline-edit-row fieldset .timestamp-wrap {
+ margin-right: 7em; /* default 6em */
+}
/* ru_RU: Text needs more room to breathe. */
.locale-ru-ru #adminmenu {
@@ -111,7 +119,16 @@ body.locale-he-il .press-this a.wp-switch-editor {
margin-right: 8em; /* default 6em */
}
+/* Fix overridden width for adjusted locales */
+body[class*="locale-de-"] .quick-edit-row-post fieldset.inline-edit-col-right label span.title,
+.locale-ru-ru .quick-edit-row-post fieldset.inline-edit-col-right label span.title,
+.locale-lt-lt .quick-edit-row-post fieldset.inline-edit-col-right label span.title {
+ width: auto;
+}
+
@media screen and (max-width: 782px) {
+ body[class*="locale-de-"] .inline-edit-row fieldset label span.input-text-wrap,
+ body[class*="locale-de-"] .inline-edit-row fieldset .timestamp-wrap,
.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap,
.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,
.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap,
diff --git a/wp-admin/css/l10n-rtl.min.css b/wp-admin/css/l10n-rtl.min.css
index 3ac11f8..4fca4c6 100644
--- a/wp-admin/css/l10n-rtl.min.css
+++ b/wp-admin/css/l10n-rtl.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-body.rtl,body.rtl .press-this a.wp-switch-editor{font-family:Tahoma,Arial,sans-serif}.rtl h1,.rtl h2,.rtl h3,.rtl h4,.rtl h5,.rtl h6{font-family:Arial,sans-serif;font-weight:600}body.locale-he-il,body.locale-he-il .press-this a.wp-switch-editor{font-family:Arial,sans-serif}.locale-he-il em{font-style:normal;font-weight:600}.locale-zh-cn #local-time,.locale-zh-cn #utc-time,.locale-zh-cn .form-wrap p,.locale-zh-cn .howto,.locale-zh-cn .inline-edit-row fieldset span.checkbox-title,.locale-zh-cn .inline-edit-row fieldset span.title,.locale-zh-cn .js .input-with-default-title,.locale-zh-cn .link-to-original,.locale-zh-cn .tablenav .displaying-num,.locale-zh-cn p.description,.locale-zh-cn p.help,.locale-zh-cn p.install-help,.locale-zh-cn span.description{font-style:normal}.locale-zh-cn .hdnle a{font-size:12px}.locale-zh-cn form.upgrade .hint{font-style:normal;font-size:100%}.locale-zh-cn #sort-buttons{font-size:1em!important}.locale-de-de #customize-header-actions .button,.locale-de-de-formal #customize-header-actions .button{padding:0 5px 1px}.locale-de-de #customize-header-actions .spinner,.locale-de-de-formal #customize-header-actions .spinner{margin:16px 3px 0}.locale-ru-ru #adminmenu{width:inherit}.locale-ru-ru #adminmenu,.locale-ru-ru #wpbody{margin-right:0}.locale-ru-ru .inline-edit-row fieldset label span.title,.locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-right:8em}.locale-ru-ru.post-new-php .tagsdiv .newtag,.locale-ru-ru.post-php .tagsdiv .newtag{width:165px}.locale-ru-ru.press-this .posting{margin-left:277px}.locale-ru-ru .press-this-sidebar{width:265px}.locale-ru-ru #customize-header-actions .button{padding:0 5px 1px}.locale-ru-ru #customize-header-actions .spinner{margin:16px 3px 0}.locale-lt-lt .inline-edit-row fieldset label span.title,.locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap{margin-right:8em}@media screen and (max-width:782px){.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap,.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-right:0}} \ No newline at end of file
+body.rtl,body.rtl .press-this a.wp-switch-editor{font-family:Tahoma,Arial,sans-serif}.rtl h1,.rtl h2,.rtl h3,.rtl h4,.rtl h5,.rtl h6{font-family:Arial,sans-serif;font-weight:600}body.locale-he-il,body.locale-he-il .press-this a.wp-switch-editor{font-family:Arial,sans-serif}.locale-he-il em{font-style:normal;font-weight:600}.locale-zh-cn #local-time,.locale-zh-cn #utc-time,.locale-zh-cn .form-wrap p,.locale-zh-cn .howto,.locale-zh-cn .inline-edit-row fieldset span.checkbox-title,.locale-zh-cn .inline-edit-row fieldset span.title,.locale-zh-cn .js .input-with-default-title,.locale-zh-cn .link-to-original,.locale-zh-cn .tablenav .displaying-num,.locale-zh-cn p.description,.locale-zh-cn p.help,.locale-zh-cn p.install-help,.locale-zh-cn span.description{font-style:normal}.locale-zh-cn .hdnle a{font-size:12px}.locale-zh-cn form.upgrade .hint{font-style:normal;font-size:100%}.locale-zh-cn #sort-buttons{font-size:1em!important}.locale-de-de #customize-header-actions .button,.locale-de-de-formal #customize-header-actions .button{padding:0 5px 1px}.locale-de-de #customize-header-actions .spinner,.locale-de-de-formal #customize-header-actions .spinner{margin:16px 3px 0}body[class*=locale-de-] .inline-edit-row fieldset label span.title,body[class*=locale-de-] .inline-edit-row fieldset.inline-edit-date legend{width:7em}body[class*=locale-de-] .inline-edit-row fieldset .timestamp-wrap,body[class*=locale-de-] .inline-edit-row fieldset label span.input-text-wrap{margin-right:7em}.locale-ru-ru #adminmenu{width:inherit}.locale-ru-ru #adminmenu,.locale-ru-ru #wpbody{margin-right:0}.locale-ru-ru .inline-edit-row fieldset label span.title,.locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-right:8em}.locale-ru-ru.post-new-php .tagsdiv .newtag,.locale-ru-ru.post-php .tagsdiv .newtag{width:165px}.locale-ru-ru.press-this .posting{margin-left:277px}.locale-ru-ru .press-this-sidebar{width:265px}.locale-ru-ru #customize-header-actions .button{padding:0 5px 1px}.locale-ru-ru #customize-header-actions .spinner{margin:16px 3px 0}.locale-lt-lt .inline-edit-row fieldset label span.title,.locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap{margin-right:8em}.locale-lt-lt .quick-edit-row-post fieldset.inline-edit-col-right label span.title,.locale-ru-ru .quick-edit-row-post fieldset.inline-edit-col-right label span.title,body[class*=locale-de-] .quick-edit-row-post fieldset.inline-edit-col-right label span.title{width:auto}@media screen and (max-width:782px){.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap,.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap,body[class*=locale-de-] .inline-edit-row fieldset .timestamp-wrap,body[class*=locale-de-] .inline-edit-row fieldset label span.input-text-wrap{margin-right:0}} \ No newline at end of file
diff --git a/wp-admin/css/l10n.css b/wp-admin/css/l10n.css
index 967fb4c..2d0b9b2 100644
--- a/wp-admin/css/l10n.css
+++ b/wp-admin/css/l10n.css
@@ -66,6 +66,14 @@ body.locale-he-il .press-this a.wp-switch-editor {
.locale-de-de-formal #customize-header-actions .spinner {
margin: 16px 3px 0; /* default 16px 4px 0 5px */
}
+body[class*="locale-de-"] .inline-edit-row fieldset label span.title,
+body[class*="locale-de-"] .inline-edit-row fieldset.inline-edit-date legend {
+ width: 7em; /* default 6em */
+}
+body[class*="locale-de-"] .inline-edit-row fieldset label span.input-text-wrap,
+body[class*="locale-de-"] .inline-edit-row fieldset .timestamp-wrap {
+ margin-left: 7em; /* default 6em */
+}
/* ru_RU: Text needs more room to breathe. */
.locale-ru-ru #adminmenu {
@@ -110,7 +118,16 @@ body.locale-he-il .press-this a.wp-switch-editor {
margin-left: 8em; /* default 6em */
}
+/* Fix overridden width for adjusted locales */
+body[class*="locale-de-"] .quick-edit-row-post fieldset.inline-edit-col-right label span.title,
+.locale-ru-ru .quick-edit-row-post fieldset.inline-edit-col-right label span.title,
+.locale-lt-lt .quick-edit-row-post fieldset.inline-edit-col-right label span.title {
+ width: auto;
+}
+
@media screen and (max-width: 782px) {
+ body[class*="locale-de-"] .inline-edit-row fieldset label span.input-text-wrap,
+ body[class*="locale-de-"] .inline-edit-row fieldset .timestamp-wrap,
.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap,
.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,
.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap,
diff --git a/wp-admin/css/l10n.min.css b/wp-admin/css/l10n.min.css
index 6a427f4..8b9d71c 100644
--- a/wp-admin/css/l10n.min.css
+++ b/wp-admin/css/l10n.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-body.rtl,body.rtl .press-this a.wp-switch-editor{font-family:Tahoma,Arial,sans-serif}.rtl h1,.rtl h2,.rtl h3,.rtl h4,.rtl h5,.rtl h6{font-family:Arial,sans-serif;font-weight:600}body.locale-he-il,body.locale-he-il .press-this a.wp-switch-editor{font-family:Arial,sans-serif}.locale-he-il em{font-style:normal;font-weight:600}.locale-zh-cn #local-time,.locale-zh-cn #utc-time,.locale-zh-cn .form-wrap p,.locale-zh-cn .howto,.locale-zh-cn .inline-edit-row fieldset span.checkbox-title,.locale-zh-cn .inline-edit-row fieldset span.title,.locale-zh-cn .js .input-with-default-title,.locale-zh-cn .link-to-original,.locale-zh-cn .tablenav .displaying-num,.locale-zh-cn p.description,.locale-zh-cn p.help,.locale-zh-cn p.install-help,.locale-zh-cn span.description{font-style:normal}.locale-zh-cn .hdnle a{font-size:12px}.locale-zh-cn form.upgrade .hint{font-style:normal;font-size:100%}.locale-zh-cn #sort-buttons{font-size:1em!important}.locale-de-de #customize-header-actions .button,.locale-de-de-formal #customize-header-actions .button{padding:0 5px 1px}.locale-de-de #customize-header-actions .spinner,.locale-de-de-formal #customize-header-actions .spinner{margin:16px 3px 0}.locale-ru-ru #adminmenu{width:inherit}.locale-ru-ru #adminmenu,.locale-ru-ru #wpbody{margin-left:0}.locale-ru-ru .inline-edit-row fieldset label span.title,.locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-left:8em}.locale-ru-ru.post-new-php .tagsdiv .newtag,.locale-ru-ru.post-php .tagsdiv .newtag{width:165px}.locale-ru-ru.press-this .posting{margin-right:277px}.locale-ru-ru .press-this-sidebar{width:265px}.locale-ru-ru #customize-header-actions .button{padding:0 5px 1px}.locale-ru-ru #customize-header-actions .spinner{margin:16px 3px 0}.locale-lt-lt .inline-edit-row fieldset label span.title,.locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap{margin-left:8em}@media screen and (max-width:782px){.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap,.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-left:0}} \ No newline at end of file
+body.rtl,body.rtl .press-this a.wp-switch-editor{font-family:Tahoma,Arial,sans-serif}.rtl h1,.rtl h2,.rtl h3,.rtl h4,.rtl h5,.rtl h6{font-family:Arial,sans-serif;font-weight:600}body.locale-he-il,body.locale-he-il .press-this a.wp-switch-editor{font-family:Arial,sans-serif}.locale-he-il em{font-style:normal;font-weight:600}.locale-zh-cn #local-time,.locale-zh-cn #utc-time,.locale-zh-cn .form-wrap p,.locale-zh-cn .howto,.locale-zh-cn .inline-edit-row fieldset span.checkbox-title,.locale-zh-cn .inline-edit-row fieldset span.title,.locale-zh-cn .js .input-with-default-title,.locale-zh-cn .link-to-original,.locale-zh-cn .tablenav .displaying-num,.locale-zh-cn p.description,.locale-zh-cn p.help,.locale-zh-cn p.install-help,.locale-zh-cn span.description{font-style:normal}.locale-zh-cn .hdnle a{font-size:12px}.locale-zh-cn form.upgrade .hint{font-style:normal;font-size:100%}.locale-zh-cn #sort-buttons{font-size:1em!important}.locale-de-de #customize-header-actions .button,.locale-de-de-formal #customize-header-actions .button{padding:0 5px 1px}.locale-de-de #customize-header-actions .spinner,.locale-de-de-formal #customize-header-actions .spinner{margin:16px 3px 0}body[class*=locale-de-] .inline-edit-row fieldset label span.title,body[class*=locale-de-] .inline-edit-row fieldset.inline-edit-date legend{width:7em}body[class*=locale-de-] .inline-edit-row fieldset .timestamp-wrap,body[class*=locale-de-] .inline-edit-row fieldset label span.input-text-wrap{margin-left:7em}.locale-ru-ru #adminmenu{width:inherit}.locale-ru-ru #adminmenu,.locale-ru-ru #wpbody{margin-left:0}.locale-ru-ru .inline-edit-row fieldset label span.title,.locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-left:8em}.locale-ru-ru.post-new-php .tagsdiv .newtag,.locale-ru-ru.post-php .tagsdiv .newtag{width:165px}.locale-ru-ru.press-this .posting{margin-right:277px}.locale-ru-ru .press-this-sidebar{width:265px}.locale-ru-ru #customize-header-actions .button{padding:0 5px 1px}.locale-ru-ru #customize-header-actions .spinner{margin:16px 3px 0}.locale-lt-lt .inline-edit-row fieldset label span.title,.locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap{margin-left:8em}.locale-lt-lt .quick-edit-row-post fieldset.inline-edit-col-right label span.title,.locale-ru-ru .quick-edit-row-post fieldset.inline-edit-col-right label span.title,body[class*=locale-de-] .quick-edit-row-post fieldset.inline-edit-col-right label span.title{width:auto}@media screen and (max-width:782px){.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap,.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap,body[class*=locale-de-] .inline-edit-row fieldset .timestamp-wrap,body[class*=locale-de-] .inline-edit-row fieldset label span.input-text-wrap{margin-left:0}} \ No newline at end of file
diff --git a/wp-admin/css/list-tables-rtl.css b/wp-admin/css/list-tables-rtl.css
index 71c78cb..f99e019 100644
--- a/wp-admin/css/list-tables-rtl.css
+++ b/wp-admin/css/list-tables-rtl.css
@@ -905,7 +905,7 @@ tr:hover .row-actions,
tr.inline-edit-row td {
padding: 0;
- /* Prevents the focus style on .inline-edit-wrapper from being cutted-off */
+ /* Prevents the focus style on .inline-edit-wrapper from being cut-off */
position: relative;
}
@@ -2004,7 +2004,6 @@ div.action-links,
/* Show comment bubble as text instead */
.post-com-count .screen-reader-text {
position: static;
- -webkit-clip-path: none;
clip-path: none;
width: auto;
height: auto;
diff --git a/wp-admin/css/list-tables-rtl.min.css b/wp-admin/css/list-tables-rtl.min.css
index 960ccb7..1431143 100644
--- a/wp-admin/css/list-tables-rtl.min.css
+++ b/wp-admin/css/list-tables-rtl.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-.response-links{display:block;margin-bottom:1em}.response-links a{display:block}.response-links a.comments-edit-item-link{font-weight:600}.response-links a.comments-view-item-link{font-size:12px}.post-com-count-wrapper strong{font-weight:400}.comments-view-item-link{display:inline-block;clear:both}.column-comments .post-com-count-wrapper,.column-response .post-com-count-wrapper{white-space:nowrap;word-wrap:normal}.column-comments .post-com-count,.column-response .post-com-count{display:inline-block;vertical-align:top}.column-comments .post-com-count-approved,.column-comments .post-com-count-no-comments,.column-response .post-com-count-approved,.column-response .post-com-count-no-comments{margin-top:5px}.column-comments .comment-count-approved,.column-comments .comment-count-no-comments,.column-response .comment-count-approved,.column-response .comment-count-no-comments{box-sizing:border-box;display:block;padding:0 8px;min-width:24px;height:2em;border-radius:5px;background-color:#646970;color:#fff;font-size:11px;line-height:1.90909090;text-align:center}.column-comments .post-com-count-approved:after,.column-comments .post-com-count-no-comments:after,.column-response .post-com-count-approved:after,.column-response .post-com-count-no-comments:after{content:"";display:block;margin-right:8px;width:0;height:0;border-top:5px solid #646970;border-left:5px solid transparent}.column-comments a.post-com-count-approved:focus .comment-count-approved,.column-comments a.post-com-count-approved:hover .comment-count-approved,.column-response a.post-com-count-approved:focus .comment-count-approved,.column-response a.post-com-count-approved:hover .comment-count-approved{background:#2271b1}.column-comments a.post-com-count-approved:focus:after,.column-comments a.post-com-count-approved:hover:after,.column-response a.post-com-count-approved:focus:after,.column-response a.post-com-count-approved:hover:after{border-top-color:#2271b1}.column-comments .post-com-count-pending,.column-response .post-com-count-pending{position:relative;right:-3px;padding:0 5px;min-width:7px;height:17px;border:2px solid #fff;border-radius:11px;background:#d63638;color:#fff;font-size:9px;line-height:1.88888888;text-align:center}.column-comments .post-com-count-no-pending,.column-response .post-com-count-no-pending{display:none}.commentlist li{padding:1em 1em .2em;margin:0;border-bottom:1px solid #c3c4c7}.commentlist li li{border-bottom:0;padding:0}.commentlist p{padding:0;margin:0 0 .8em}#submitted-on,.submitted-on{color:#50575e}#replyrow td{padding:2px}#replysubmit{margin:0;padding:5px 7px 10px;overflow:hidden}#replysubmit .reply-submit-buttons{margin-bottom:0}#replysubmit .button{margin-left:5px}#replysubmit .spinner{float:none;margin:-4px 0 0}#replyrow.inline-edit-row fieldset.comment-reply{font-size:inherit;line-height:inherit}#replyrow legend{margin:0;padding:.2em 5px 0;font-size:13px;line-height:1.4;font-weight:600}#replyrow.inline-edit-row label{display:inline;vertical-align:baseline;line-height:inherit}#commentsdiv #edithead .inside,#edithead .inside{float:right;padding:3px 5px 2px 0;margin:0;text-align:center}#edithead .inside input{width:180px}#edithead label{padding:2px 0}#replycontainer{padding:5px}#replycontent{height:120px;box-shadow:none}#replyerror{border-color:#dcdcde;background-color:#f6f7f7}.commentlist .avatar{vertical-align:text-top}#the-comment-list div.undo,#the-comment-list tr.undo{background-color:#f6f7f7}#the-comment-list .unapproved td,#the-comment-list .unapproved th{background-color:#fcf9e8}#the-comment-list .unapproved th.check-column{border-right:4px solid #d63638}#the-comment-list .unapproved th.check-column input{margin-right:4px}#the-comment-list .approve a{color:#007017}#the-comment-list .unapprove a{color:#996800}#the-comment-list td,#the-comment-list th{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}#the-comment-list tr:last-child td,#the-comment-list tr:last-child th{box-shadow:none}#the-comment-list tr.unapproved+tr.approved td,#the-comment-list tr.unapproved+tr.approved th{border-top:1px solid rgba(0,0,0,.03)}.vim-current,.vim-current td,.vim-current th{background-color:#f0f6fc!important}th .comment-grey-bubble{width:16px;position:relative;top:2px}th .comment-grey-bubble:before{content:"\f101";font:normal 20px/.5 dashicons;speak:never;display:inline-block;padding:0;top:4px;right:-4px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#3c434a}table.fixed{table-layout:fixed}.fixed .column-rating,.fixed .column-visible{width:8%}.fixed .column-author,.fixed .column-format,.fixed .column-links,.fixed .column-parent,.fixed .column-posts{width:10%}.fixed .column-date{width:14%}.column-date span[title]{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.fixed .column-posts{width:74px}.fixed .column-posts,.fixed .column-role{-webkit-hyphens:auto;hyphens:auto}.fixed .column-comment .comment-author{display:none}.fixed .column-categories,.fixed .column-rel,.fixed .column-response,.fixed .column-role,.fixed .column-tags{width:15%}.fixed .column-slug{width:25%}.fixed .column-locations{width:35%}.fixed .column-comments{width:5.5em;text-align:right}.fixed .column-comments .vers{padding-right:3px}td.column-title strong,td.plugin-title strong{display:block;margin-bottom:.2em;font-size:14px}td.column-title p,td.plugin-title p{margin:6px 0}table.media .column-title .media-icon{float:right;min-height:60px;margin:0 0 0 9px}table.media .column-title .media-icon img{max-width:60px;height:auto;vertical-align:top}table.media .column-title .has-media-icon~.row-actions{margin-right:70px}table.media .column-title .filename{margin-bottom:.2em}.media .row-actions .copy-to-clipboard-container{display:inline;position:relative}.media .row-actions .copy-to-clipboard-container .success{position:absolute;right:50%;transform:translate(50%,-100%);background:#000;color:#fff;border-radius:5px;margin:0;padding:2px 5px}.wp-list-table a{transition:none}#the-list tr:last-child td,#the-list tr:last-child th{border-bottom:none!important;box-shadow:none}#comments-form .fixed .column-author{width:20%}#commentsdiv.postbox .inside{margin:0;padding:0}#commentsdiv .inside .row-actions{line-height:1.38461538}#commentsdiv .inside .column-author{width:25%}#commentsdiv .column-comment p{margin:.6em 0;padding:0}#commentsdiv #replyrow td{padding:0}#commentsdiv p{padding:8px 10px;margin:0}#commentsdiv .comments-box{border:0 none}#commentsdiv .comments-box thead td,#commentsdiv .comments-box thead th{background:0 0;padding:0 7px 4px}#commentsdiv .comments-box tr:last-child td{border-bottom:0 none}#commentsdiv #edithead .inside input{width:160px}.sorting-indicators{display:grid}.sorting-indicator{display:block;width:10px;height:4px;margin-top:4px;margin-right:7px}.sorting-indicator:before{font:normal 20px/1 dashicons;speak:never;display:inline-block;padding:0;top:-4px;right:-8px;line-height:.5;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#a7aaad}.sorting-indicator.asc:before{content:"\f142"}.sorting-indicator.desc:before{content:"\f140"}th.sorted.desc .sorting-indicator.desc:before{color:#1d2327}th.sorted.asc .sorting-indicator.asc:before{color:#1d2327}th.sorted.asc a:focus .sorting-indicator.asc:before,th.sorted.asc:hover .sorting-indicator.asc:before,th.sorted.desc a:focus .sorting-indicator.desc:before,th.sorted.desc:hover .sorting-indicator.desc:before{color:#a7aaad}th.sorted.asc a:focus .sorting-indicator.desc:before,th.sorted.asc:hover .sorting-indicator.desc:before,th.sorted.desc a:focus .sorting-indicator.asc:before,th.sorted.desc:hover .sorting-indicator.asc:before{color:#1d2327}.wp-list-table .toggle-row{position:absolute;left:8px;top:10px;display:none;padding:0;width:40px;height:40px;border:none;outline:0;background:0 0}.wp-list-table .toggle-row:hover{cursor:pointer}.wp-list-table .toggle-row:focus:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.wp-list-table .toggle-row:active{box-shadow:none}.wp-list-table .toggle-row:before{position:absolute;top:-5px;right:10px;border-radius:50%;display:block;padding:1px 0 1px 2px;color:#3c434a;content:"\f140";font:normal 20px/1 dashicons;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;speak:never}.wp-list-table .is-expanded .toggle-row:before{content:"\f142"}.check-column{position:relative}.check-column label{box-sizing:border-box;width:100%;height:100%;display:block;position:absolute;top:0;right:0}.check-column input{position:relative;z-index:1}.check-column .label-covers-full-cell:hover+input:not(:disabled){box-shadow:0 0 0 1px #2271b1}.check-column input:hover+label,.check-column label:hover{background:rgba(0,0,0,.05)}.locked-indicator{display:none;margin-right:6px;height:20px;width:16px}.locked-indicator-icon:before{color:#8c8f94;content:"\f160";display:inline-block;font:normal 20px/1 dashicons;speak:never;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.locked-info{display:none;margin-top:4px}.locked-text{vertical-align:top}.wp-locked .locked-indicator,.wp-locked .locked-info{display:block}tr.wp-locked .check-column input[type=checkbox],tr.wp-locked .check-column label,tr.wp-locked .row-actions .inline,tr.wp-locked .row-actions .trash{display:none}#menu-locations-wrap .widefat{width:60%}.widefat th.sortable,.widefat th.sorted{padding:0}th.sortable a,th.sorted a{display:block;overflow:hidden;padding:8px}th.sortable a:focus,th.sorted a:focus{box-shadow:inset 0 0 0 2px #2271b1;outline:2px solid transparent}th.sortable a span,th.sorted a span{float:right;cursor:pointer}.tablenav-pages .current-page{margin:0 0 0 2px;font-size:13px;text-align:center}.tablenav .total-pages{margin-left:2px}.tablenav #table-paging{margin-right:2px}.tablenav{clear:both;height:30px;margin:6px 0 4px;padding-top:5px;vertical-align:middle}.tablenav.themes{max-width:98%}.tablenav .tablenav-pages{float:left;margin:0 0 9px}.tablenav .no-pages,.tablenav .one-page .pagination-links{display:none}.tablenav .tablenav-pages .button,.tablenav .tablenav-pages .tablenav-pages-navspan{display:inline-block;vertical-align:baseline;min-width:30px;min-height:30px;margin:0;padding:0 4px;font-size:16px;line-height:1.625;text-align:center}.tablenav .displaying-num{margin-left:7px}.tablenav .one-page .displaying-num{display:inline-block;margin:5px 0}.tablenav .actions{padding:0 0 0 8px}.wp-filter .actions{display:inline-block;vertical-align:middle}.tablenav .delete{margin-left:20px}.tablenav .view-switch{float:left;margin:0 5px;padding-top:3px}.wp-filter .view-switch{display:inline-block;vertical-align:middle;padding:12px 0;margin:0 2px 0 8px}.media-toolbar.wp-filter .view-switch{margin:0 2px 0 12px}.view-switch a{float:right;width:28px;height:28px;text-align:center;line-height:1.84615384;text-decoration:none}.view-switch a:before{color:#c3c4c7;display:inline-block;font:normal 20px/1 dashicons;speak:never;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.view-switch a:focus:before,.view-switch a:hover:before{color:#787c82}.view-switch a.current:before{color:#2271b1}.view-switch .view-list:before{content:"\f163"}.view-switch .view-excerpt:before{content:"\f164"}.view-switch .view-grid:before{content:"\f509"}.filter{float:right;margin:-5px 10px 0 0}.filter .subsubsub{margin-right:-10px;margin-top:13px}.screen-per-page{width:4em}#posts-filter .wp-filter{margin-bottom:0}#posts-filter fieldset{float:right;margin:0 0 1em 1.5ex;padding:0}#posts-filter fieldset legend{padding:0 1px .2em 0}p.pagenav{margin:0;display:inline}.pagenav span{font-weight:600;margin:0 6px}.row-title{font-size:14px!important;font-weight:600}.column-comment .comment-author{margin-bottom:.6em}.column-author img,.column-comment .comment-author img,.column-username img{float:right;margin-left:10px;margin-top:1px}.row-actions{color:#a7aaad;font-size:13px;padding:2px 0 0;position:relative;right:-9999em}.rtl .row-actions a{display:inline-block}.row-actions .network_active,.row-actions .network_only{color:#000}.comment-item:hover .row-actions,.mobile .row-actions,.no-js .row-actions,.row-actions.visible,tr:hover .row-actions{position:static}.row-actions-visible{padding:2px 0 0}#wpbody-content .inline-edit-row fieldset{float:right;margin:0;padding:0 0 0 12px;width:100%;box-sizing:border-box}#wpbody-content .inline-edit-row td fieldset:last-of-type{padding-left:0}tr.inline-edit-row td{padding:0;position:relative}.inline-edit-wrapper{display:flow-root;padding:0 12px;border:1px solid transparent;border-radius:4px}.inline-edit-wrapper:focus{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}#wpbody-content .quick-edit-row-post .inline-edit-col-left{width:40%}#wpbody-content .quick-edit-row-post .inline-edit-col-right{width:39%}#wpbody-content .inline-edit-row-post .inline-edit-col-center{width:20%}#wpbody-content .quick-edit-row-page .inline-edit-col-left{width:50%}#wpbody-content .bulk-edit-row-post .inline-edit-col-right,#wpbody-content .quick-edit-row-page .inline-edit-col-right{width:50%}#wpbody-content .bulk-edit-row .inline-edit-col-left{width:30%}#wpbody-content .bulk-edit-row-page .inline-edit-col-right{width:69%}#wpbody-content .bulk-edit-row .inline-edit-col-bottom{float:left;width:69%}#wpbody-content .inline-edit-row-page .inline-edit-col-right{margin-top:27px}.inline-edit-row fieldset .inline-edit-group{clear:both;line-height:2.5}.inline-edit-row .submit{display:flex;flex-wrap:wrap;align-items:center;clear:both;margin:0;padding:.5em 0 1em}.inline-edit-save.submit .button{margin-left:8px}.inline-edit-save .spinner{float:none;margin:0}.inline-edit-row .notice-error{box-sizing:border-box;min-width:100%;margin-top:1em}.inline-edit-row .notice-error .error{margin:.5em 0;padding:2px}#the-list .inline-edit-row .inline-edit-legend{margin:0;padding:.2em 0;line-height:2.5;font-weight:600}.inline-edit-row fieldset span.checkbox-title,.inline-edit-row fieldset span.title{margin:0;padding:0}.inline-edit-row fieldset label,.inline-edit-row fieldset span.inline-edit-categories-label{display:block;margin:.2em 0;line-height:2.5}.inline-edit-row fieldset.inline-edit-date label{display:inline-block;margin:0;vertical-align:baseline;line-height:2}.inline-edit-row fieldset label.inline-edit-tags{margin-top:0}.inline-edit-row fieldset label.inline-edit-tags span.title{margin:.2em 0;width:auto}.inline-edit-row fieldset label span.title,.inline-edit-row fieldset.inline-edit-date legend{display:block;float:right;width:6em;line-height:2.5}#posts-filter fieldset.inline-edit-date legend{padding:0}.inline-edit-row fieldset .timestamp-wrap,.inline-edit-row fieldset label span.input-text-wrap{display:block;margin-right:6em}.quick-edit-row-post fieldset.inline-edit-col-right label span.title{width:auto;padding-left:.5em}.inline-edit-row .inline-edit-or{margin:.2em 0 .2em 6px;line-height:2.5}.inline-edit-row .input-text-wrap input[type=text]{width:100%}.inline-edit-row fieldset label input[type=checkbox]{vertical-align:middle}.inline-edit-row fieldset label textarea{width:100%;height:4em;vertical-align:top}#wpbody-content .bulk-edit-row fieldset .inline-edit-group label{max-width:50%}#wpbody-content .quick-edit-row fieldset .inline-edit-group label.alignleft:first-child{margin-left:.5em}.inline-edit-col-right .input-text-wrap input.inline-edit-menu-order-input{width:6em}.inline-edit-row .inline-edit-legend{text-transform:uppercase}.inline-edit-row fieldset .inline-edit-date{float:right}.inline-edit-row fieldset input[name=aa],.inline-edit-row fieldset input[name=hh],.inline-edit-row fieldset input[name=jj],.inline-edit-row fieldset input[name=mn]{vertical-align:middle;text-align:center;padding:0 4px}.inline-edit-row fieldset label input.inline-edit-password-input{width:8em}#bulk-titles-list,#bulk-titles-list li,.inline-edit-row fieldset ul.cat-checklist input,.inline-edit-row fieldset ul.cat-checklist li{margin:0;position:relative}.inline-edit-row fieldset ul.cat-checklist input{margin-top:-1px;margin-right:3px}.inline-edit-row fieldset label input.inline-edit-menu-order-input{width:3em}.inline-edit-row fieldset label input.inline-edit-slug-input{width:75%}.inline-edit-row #post_parent,.inline-edit-row select[name=page_template]{max-width:80%}.quick-edit-row-post fieldset label.inline-edit-status{float:right}#bulk-titles,ul.cat-checklist{height:14em;border:1px solid #ddd;margin:0 0 5px;padding:.2em 5px;overflow-y:scroll}ul.cat-checklist input[name="post_category[]"]:indeterminate::before{content:'';border-top:2px solid grey;width:65%;height:2px;position:absolute;top:calc(50% + 1px);right:50%;transform:translate(50%,-50%)}#bulk-titles .ntdelbutton,#bulk-titles .ntdeltitle,.inline-edit-row fieldset ul.cat-checklist label{display:inline-block;margin:0;padding:3px 0;line-height:20px;vertical-align:top}#bulk-titles .ntdelitem{padding-right:23px}#bulk-titles .ntdelbutton{width:26px;height:26px;margin:0 -26px 0 0;text-align:center;border-radius:3px}#bulk-titles .ntdelbutton:before{display:inline-block;vertical-align:top}#bulk-titles .ntdelbutton:focus{box-shadow:0 0 0 2px #3582c4;outline:2px solid transparent;outline-offset:0}.plugins tbody,.plugins tbody th.check-column{padding:8px 2px 0 0}.plugins tbody th.check-column input[type=checkbox]{margin-top:4px}.updates-table .plugin-title p{margin-top:0}.plugins .inactive th.check-column,.plugins tfoot td.check-column,.plugins thead td.check-column{padding-right:6px}.plugins,.plugins td,.plugins th{color:#000}.plugins tr{background:#fff}.plugins p{margin:0 4px;padding:0}.plugins .desc p{margin:0 0 8px}.plugins td.desc{line-height:1.5}.plugins .desc ol,.plugins .desc ul{margin:0 2em 0 0}.plugins .desc ul{list-style-type:disc}.plugins .row-actions{font-size:13px;padding:0}.plugins .active td,.plugins .active th,.plugins .inactive td,.plugins .inactive th{padding:10px 9px}.plugins .active td,.plugins .active th{background-color:#f0f6fc}.plugins .update td,.plugins .update th{border-bottom:0}.plugin-install #the-list td,.plugins .active td,.plugins .active th,.plugins .inactive td,.plugins .inactive th,.upgrade .plugins td,.upgrade .plugins th{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugins tr.active+tr.inactive td,.plugins tr.active+tr.inactive th,.plugins tr.active.plugin-update-tr+tr.inactive td,.plugins tr.active.plugin-update-tr+tr.inactive th{border-top:1px solid rgba(0,0,0,.03);box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #dcdcde}.plugins .update td,.plugins .update th,.plugins .updated td,.plugins .updated th,.plugins tr.active+tr.inactive.update td,.plugins tr.active+tr.inactive.update th,.plugins tr.active+tr.inactive.updated td,.plugins tr.active+tr.inactive.updated th,.upgrade .plugins tr:last-of-type td,.upgrade .plugins tr:last-of-type th{box-shadow:none}.plugin-update-tr.active td,.plugins .active th.check-column{border-right:4px solid #72aee6}.wp-list-table.plugins .plugin-title,.wp-list-table.plugins .theme-title{padding-left:12px;white-space:nowrap}.plugins .plugin-title .dashicons,.plugins .plugin-title img{float:right;padding:0 0 0 10px;width:64px;height:64px}.plugins .plugin-title .dashicons:before{padding:2px;background-color:#f0f0f1;box-shadow:inset 0 0 10px rgba(167,170,173,.15);font-size:60px;color:#c3c4c7}#update-themes-table .plugin-title .dashicons,#update-themes-table .plugin-title img{width:85px}.plugins .column-auto-updates{width:14.2em}.plugins .inactive .plugin-title strong{font-weight:400}.plugins .row-actions,.plugins .second{padding:0 0 5px}.plugins .row-actions{white-space:normal;min-width:12em}.plugins .update .row-actions,.plugins .update .second,.plugins .updated .row-actions,.plugins .updated .second{padding-bottom:0}.plugins-php .widefat tfoot td,.plugins-php .widefat tfoot th{border-top-style:solid;border-top-width:1px}.plugins .plugin-update-tr .plugin-update{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);overflow:hidden;padding:0}.plugins .plugin-update-tr .notice,.plugins .plugin-update-tr div[class=update-message]{margin:5px 40px 15px 20px}.plugins .notice p{margin:.5em 0}.plugins .plugin-description a,.plugins .plugin-update a,.updates-table .plugin-title a{text-decoration:underline}.plugins tr.paused th.check-column{border-right:4px solid #b32d2e}.plugins tr.paused td,.plugins tr.paused th{background-color:#f6f7f7}.plugins .paused .dashicons-warning,.plugins tr.paused .plugin-title{color:#b32d2e}.plugins .paused .error-display code,.plugins .paused .error-display p{font-size:90%;color:rgba(0,0,0,.7)}.plugins .resume-link{color:#b32d2e}.plugin-card .update-now:before{color:#d63638;content:"\f463";display:inline-block;font:normal 20px/1 dashicons;margin:-3px -2px 0 5px;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.plugin-card .updating-message:before{content:"\f463";animation:rotation 2s infinite linear}@keyframes rotation{0%{transform:rotate(0)}100%{transform:rotate(-359deg)}}.plugin-card .updated-message:before{color:#68de7c;content:"\f147"}.plugin-install-php #the-list{display:flex;flex-wrap:wrap}.plugin-install-php .plugin-card{display:flex;flex-direction:column;justify-content:space-between}.plugin-install-php h2{clear:both}.plugin-install-php h3{margin:2.5em 0 8px}.plugin-install-php .wp-filter{margin-bottom:0}.plugin-group{overflow:hidden;margin-top:1.5em}.plugin-group h3{margin-top:0}.plugin-card{float:right;margin:0 8px 16px;width:48.5%;width:calc(50% - 8px);background-color:#fff;border:1px solid #dcdcde;box-sizing:border-box}.plugin-card:nth-child(odd){clear:both;margin-right:0}.plugin-card:nth-child(2n){margin-left:0}@media screen and (min-width:1600px) and (max-width:2299px){.plugin-card{width:30%;width:calc(33.1% - 8px)}.plugin-card:nth-child(odd){clear:none;margin-right:8px}.plugin-card:nth-child(2n){margin-left:8px}.plugin-card:nth-child(3n+1){clear:both;margin-right:0}.plugin-card:nth-child(3n){margin-left:0}}@media screen and (min-width:2300px){.plugin-card{width:25%;width:calc(25% - 12px)}.plugin-card:nth-child(odd){clear:none;margin-right:8px}.plugin-card:nth-child(2n){margin-left:8px}.plugin-card:nth-child(4n+1){clear:both;margin-right:0}.plugin-card:nth-child(4n){margin-left:0}}.plugin-card-top{position:relative;padding:20px 20px 10px;min-height:135px}.plugin-action-buttons,div.action-links{margin:0}.plugin-card h3{margin:0 0 12px 12px;font-size:18px;line-height:1.3}.plugin-card .desc{margin-inline:0}.plugin-card .desc>p,.plugin-card .name{margin-right:148px}@media (min-width:1101px){.plugin-card .desc>p,.plugin-card .name{margin-left:128px}}@media (min-width:481px) and (max-width:781px){.plugin-card .desc>p,.plugin-card .name{margin-left:128px}}.plugin-card .column-description{display:flex;flex-direction:column;justify-content:flex-start}.plugin-card .column-description>p{margin-top:0}.plugin-card .column-description p:empty{display:none}.plugin-card .notice.plugin-dependencies{margin:auto 20px 20px;padding:15px}.plugin-card .plugin-dependencies-explainer-text{margin-block:0}.plugin-card .plugin-dependency{align-items:center;display:flex;flex-wrap:wrap;margin-top:.5em;column-gap:1%;row-gap:.5em}.plugin-card .plugin-dependency:last-child,.plugin-card .plugin-dependency:nth-child(2){margin-top:1em}.plugin-card .plugin-dependency-name{flex-basis:74%}.plugin-card .plugin-dependency .more-details-link{margin-right:auto}.rtl .plugin-card .plugin-dependency .more-details-link{margin-left:auto}@media (max-width:939px){.plugin-card .plugin-dependency-name{flex-basis:69%}}.plugins #the-list .required-by,.plugins #the-list .requires{margin-top:1em}.plugin-card .action-links{position:absolute;top:20px;left:20px;width:120px}.plugin-action-buttons{clear:left;float:left;margin-bottom:1em;text-align:left}.plugin-action-buttons li{margin-bottom:10px}.plugin-card-bottom{clear:both;padding:12px 20px;background-color:#f6f7f7;border-top:1px solid #dcdcde;overflow:hidden}.plugin-card-bottom .star-rating{display:inline}.plugin-card-update-failed .update-now{font-weight:600}.plugin-card-update-failed .notice-error{margin:0;padding-right:16px;box-shadow:0 -1px 0 #dcdcde}.plugin-card-update-failed .plugin-card-bottom{display:none}.plugin-card .column-rating{line-height:1.76923076}.plugin-card .column-rating,.plugin-card .column-updated{margin-bottom:4px}.plugin-card .column-downloaded,.plugin-card .column-rating{float:right;clear:right;max-width:180px}.plugin-card .column-compatibility,.plugin-card .column-updated{text-align:left;float:left;clear:left;width:65%;width:calc(100% - 180px)}.plugin-card .column-compatibility span:before{font:normal 20px/.5 dashicons;speak:never;display:inline-block;padding:0;top:4px;right:-2px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#3c434a}.plugin-card .column-compatibility .compatibility-incompatible:before{content:"\f158";color:#d63638}.plugin-card .column-compatibility .compatibility-compatible:before{content:"\f147";color:#007017}.plugin-card .notice{margin:20px 20px 0}.plugin-icon{position:absolute;top:20px;right:20px;width:128px;height:128px;margin:0 0 20px 20px}.no-plugin-results{color:#646970;font-size:18px;font-style:normal;margin:0;padding:100px 0 0;width:100%;text-align:center}.wp-list-table .site-archived,.wp-list-table .site-deleted,.wp-list-table tr.site-archived,.wp-list-table tr.site-deleted{background:#fcf0f1}.wp-list-table .site-mature,.wp-list-table .site-spammed,.wp-list-table tr.site-mature,.wp-list-table tr.site-spammed{background:#fcf9e8}.sites.fixed .column-lastupdated,.sites.fixed .column-registered{width:20%}.sites.fixed .column-users{width:80px}@media screen and (max-width:1100px) and (min-width:782px),(max-width:480px){.plugin-card .action-links{position:static;margin-right:148px;width:auto}.plugin-action-buttons{float:none;margin:1em 0 0;text-align:right}.plugin-action-buttons li{display:inline-block;vertical-align:middle}.plugin-action-buttons li .button{margin-left:20px}.plugin-card h3{margin-left:24px}.plugin-card .desc,.plugin-card .name{margin-left:0}.plugin-card .desc p:first-of-type{margin-top:0}}@media screen and (max-width:782px){.tablenav{height:auto}.tablenav.top{margin:20px 0 5px}.tablenav.bottom{position:relative;margin-top:15px}.tablenav br{display:none}.tablenav br.clear{display:block}.tablenav .view-switch,.tablenav.top .actions{display:none}.view-switch a{width:36px;height:36px;line-height:2.53846153}.tablenav.top .displaying-num{display:none}.tablenav.bottom .displaying-num{position:absolute;left:0;top:11px;margin:0;font-size:14px}.tablenav .tablenav-pages{width:100%;text-align:center;margin:0 0 25px}.tablenav.bottom .tablenav-pages{margin-top:25px}.tablenav.top .tablenav-pages.one-page{display:none}.tablenav.bottom .actions select{margin-bottom:5px}.tablenav.bottom .actions.alignleft+.actions.alignleft{clear:right;margin-top:10px}.tablenav.bottom .tablenav-pages.one-page{margin-top:15px;height:0}.tablenav-pages .pagination-links{font-size:16px}.tablenav .tablenav-pages .button,.tablenav .tablenav-pages .tablenav-pages-navspan{min-width:44px;padding:12px 8px;font-size:18px;line-height:1}.tablenav-pages .pagination-links .current-page{min-width:44px;padding:12px 6px;font-size:16px;line-height:1.125}.form-wrap>p{display:none}.wp-list-table th.column-primary~th,.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column){display:none}.wp-list-table thead th.column-primary{width:100%}.wp-list-table tr th.check-column{display:table-cell}.wp-list-table .check-column{width:2.5em}.wp-list-table .column-primary .toggle-row{display:block}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column){position:relative;clear:both;width:auto!important}.wp-list-table td.column-primary{padding-left:50px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column){padding:3px 35% 3px 8px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before{position:absolute;right:10px;display:block;overflow:hidden;width:32%;content:attr(data-colname);white-space:nowrap;text-overflow:ellipsis}.wp-list-table .is-expanded td:not(.hidden){display:block!important;overflow:hidden}.column-posts,.widefat .num{text-align:right}#comments-form .fixed .column-author,#commentsdiv .fixed .column-author{display:none!important}.fixed .column-comment .comment-author{display:block}.fixed .column-author.hidden~.column-comment .comment-author{display:none}#the-comment-list .is-expanded td{box-shadow:none}#the-comment-list .is-expanded td:last-child{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.post-com-count .screen-reader-text{position:static;-webkit-clip-path:none;clip-path:none;width:auto;height:auto;margin:0}.column-comments .post-com-count-approved:after,.column-comments .post-com-count-no-comments:after,.column-response .post-com-count-approved:after,.column-response .post-com-count-no-comments:after{content:none}.column-comments .post-com-count [aria-hidden=true],.column-response .post-com-count [aria-hidden=true]{display:none}.column-comments .post-com-count-wrapper,.column-response .post-com-count-wrapper{white-space:normal}.column-comments .post-com-count-wrapper>a,.column-response .post-com-count-wrapper>a{display:block}.column-comments .post-com-count-approved,.column-comments .post-com-count-no-comments,.column-response .post-com-count-approved,.column-response .post-com-count-no-comments{margin-top:0;margin-left:.5em}.column-comments .post-com-count-pending,.column-response .post-com-count-pending{position:static;height:auto;min-width:0;padding:0;border:none;border-radius:0;background:0 0;color:#b32d2e;font-size:inherit;line-height:inherit;text-align:right}.column-comments .post-com-count-pending:hover,.column-response .post-com-count-pending:hover{color:#d63638}.widefat tfoot td.check-column,.widefat thead td.check-column{padding-top:10px}.row-actions{margin-right:-8px;margin-left:-8px;padding-top:4px}body:not(.plugins-php) .row-actions{display:flex;flex-wrap:wrap;gap:8px;color:transparent}.row-actions span .button-link,.row-actions span a{display:inline-block;padding:4px 8px;line-height:1.5}.row-actions span.approve:before,.row-actions span.unapprove:before{content:"| "}#wpbody-content .bulk-edit-row .inline-edit-col-bottom,#wpbody-content .bulk-edit-row .inline-edit-col-left,#wpbody-content .bulk-edit-row-page .inline-edit-col-right,#wpbody-content .bulk-edit-row-post .inline-edit-col-right,#wpbody-content .inline-edit-row-post .inline-edit-col-center,#wpbody-content .quick-edit-row-page .inline-edit-col-left,#wpbody-content .quick-edit-row-page .inline-edit-col-right,#wpbody-content .quick-edit-row-post .inline-edit-col-left,#wpbody-content .quick-edit-row-post .inline-edit-col-right{float:none;width:100%;padding:0}#the-list .inline-edit-row .inline-edit-legend,.inline-edit-row span.title{font-size:16px}.inline-edit-row p.howto{font-size:14px}#wpbody-content .inline-edit-row-page .inline-edit-col-right{margin-top:0}#wpbody-content .bulk-edit-row fieldset .inline-edit-col label,#wpbody-content .bulk-edit-row fieldset .inline-edit-group label,#wpbody-content .quick-edit-row fieldset .inline-edit-col label,#wpbody-content .quick-edit-row fieldset .inline-edit-group label{max-width:none;float:none;margin-bottom:5px}#wpbody .bulk-edit-row fieldset select{display:block;width:100%;max-width:none;box-sizing:border-box}.inline-edit-row fieldset input[name=aa],.inline-edit-row fieldset input[name=hh],.inline-edit-row fieldset input[name=jj],.inline-edit-row fieldset input[name=mn]{font-size:16px;line-height:2;padding:3px 4px}#bulk-titles .ntdelbutton,#bulk-titles .ntdeltitle,.inline-edit-row fieldset ul.cat-checklist label{padding:6px 0;font-size:16px;line-height:28px}#bulk-titles .ntdelitem{padding-right:37px}#bulk-titles .ntdelbutton{width:40px;height:40px;margin:0 -40px 0 0;overflow:hidden}#bulk-titles .ntdelbutton:before{font-size:20px;line-height:28px}.inline-edit-row fieldset label span.title,.inline-edit-row fieldset.inline-edit-date legend{float:none}.inline-edit-row fieldset .inline-edit-col label.inline-edit-tags{padding:0}.inline-edit-row fieldset .timestamp-wrap,.inline-edit-row fieldset label span.input-text-wrap{margin-right:0}.inline-edit-row .inline-edit-or{margin:0 0 0 6px}#commentsdiv #edithead .inside,#edithead .inside{float:none;text-align:right;padding:3px 5px}#commentsdiv #edithead .inside input,#edithead .inside input{width:100%}#edithead label{display:block}#wpbody-content .updates-table .plugin-title{width:auto;white-space:normal}.link-manager-php #posts-filter{margin-top:25px}.link-manager-php .tablenav.bottom{overflow:hidden}.comments-box .toggle-row,.wp-list-table.plugins .toggle-row{display:none}#wpbody-content .wp-list-table.plugins td{display:block;width:auto;padding:10px 9px}#wpbody-content .wp-list-table.plugins .no-items td,#wpbody-content .wp-list-table.plugins .plugin-deleted-tr td{display:table-cell}#wpbody-content .wp-list-table.plugins .desc.hidden{display:none}#wpbody-content .wp-list-table.plugins .column-description{padding-top:2px}#wpbody-content .wp-list-table.plugins .plugin-title,#wpbody-content .wp-list-table.plugins .theme-title{padding-left:12px;white-space:normal}.wp-list-table.plugins .plugin-title,.wp-list-table.plugins .theme-title{padding-top:13px;padding-bottom:4px}.plugins #the-list .update td,.plugins #the-list .update th,.plugins #the-list tr>td:not(:last-child),.wp-list-table.plugins #the-list .theme-title{box-shadow:none;border-top:none}.plugins #the-list tr td{border-top:none}.plugins tbody{padding:1px 0 0}.plugins .plugin-update-tr:before,.plugins tr.active+tr.inactive td.column-description,.plugins tr.active+tr.inactive th.check-column{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugins tr.active+tr.inactive td,.plugins tr.active+tr.inactive th.check-column{border-top:none}.plugins .plugin-update-tr:before{content:"";display:table-cell}.plugins #the-list .plugin-update-tr .plugin-update{border-right:none}.plugin-update-tr .update-message{margin-right:0}.plugins .active.update+.plugin-update-tr:before,.plugins .active.updated+.plugin-update-tr:before{background-color:#f0f6fc;border-right:4px solid #72aee6}.plugins .plugin-update-tr .update-message{margin-right:0}.wp-list-table.plugins .plugin-title strong,.wp-list-table.plugins .theme-title strong{font-size:1.4em;line-height:1.5}.plugins tbody th.check-column{padding:8px 5px 0 0}.plugins .inactive th.check-column,.plugins tfoot td.check-column,.plugins thead td.check-column{padding-right:9px}table.plugin-install .column-description,table.plugin-install .column-name,table.plugin-install .column-rating,table.plugin-install .column-version{display:block;width:auto}table.plugin-install th.column-description,table.plugin-install th.column-name,table.plugin-install th.column-rating,table.plugin-install th.column-version{display:none}table.plugin-install td.column-name strong{font-size:1.4em;line-height:1.6em}table.plugin-install #the-list td{box-shadow:none}table.plugin-install #the-list tr{display:block;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugin-card{margin-right:0;margin-left:0;width:100%}table.media .column-title .has-media-icon~.row-actions{margin-right:0;clear:both}}@media screen and (max-width:480px){.tablenav-pages .current-page{margin:0}.tablenav.bottom .displaying-num{position:relative;top:0;display:block;text-align:left;padding-bottom:.5em}.tablenav.bottom .tablenav-pages.one-page{height:auto}.tablenav-pages .tablenav-paging-text{float:right;width:100%;padding-top:.5em}} \ No newline at end of file
+.response-links{display:block;margin-bottom:1em}.response-links a{display:block}.response-links a.comments-edit-item-link{font-weight:600}.response-links a.comments-view-item-link{font-size:12px}.post-com-count-wrapper strong{font-weight:400}.comments-view-item-link{display:inline-block;clear:both}.column-comments .post-com-count-wrapper,.column-response .post-com-count-wrapper{white-space:nowrap;word-wrap:normal}.column-comments .post-com-count,.column-response .post-com-count{display:inline-block;vertical-align:top}.column-comments .post-com-count-approved,.column-comments .post-com-count-no-comments,.column-response .post-com-count-approved,.column-response .post-com-count-no-comments{margin-top:5px}.column-comments .comment-count-approved,.column-comments .comment-count-no-comments,.column-response .comment-count-approved,.column-response .comment-count-no-comments{box-sizing:border-box;display:block;padding:0 8px;min-width:24px;height:2em;border-radius:5px;background-color:#646970;color:#fff;font-size:11px;line-height:1.90909090;text-align:center}.column-comments .post-com-count-approved:after,.column-comments .post-com-count-no-comments:after,.column-response .post-com-count-approved:after,.column-response .post-com-count-no-comments:after{content:"";display:block;margin-right:8px;width:0;height:0;border-top:5px solid #646970;border-left:5px solid transparent}.column-comments a.post-com-count-approved:focus .comment-count-approved,.column-comments a.post-com-count-approved:hover .comment-count-approved,.column-response a.post-com-count-approved:focus .comment-count-approved,.column-response a.post-com-count-approved:hover .comment-count-approved{background:#2271b1}.column-comments a.post-com-count-approved:focus:after,.column-comments a.post-com-count-approved:hover:after,.column-response a.post-com-count-approved:focus:after,.column-response a.post-com-count-approved:hover:after{border-top-color:#2271b1}.column-comments .post-com-count-pending,.column-response .post-com-count-pending{position:relative;right:-3px;padding:0 5px;min-width:7px;height:17px;border:2px solid #fff;border-radius:11px;background:#d63638;color:#fff;font-size:9px;line-height:1.88888888;text-align:center}.column-comments .post-com-count-no-pending,.column-response .post-com-count-no-pending{display:none}.commentlist li{padding:1em 1em .2em;margin:0;border-bottom:1px solid #c3c4c7}.commentlist li li{border-bottom:0;padding:0}.commentlist p{padding:0;margin:0 0 .8em}#submitted-on,.submitted-on{color:#50575e}#replyrow td{padding:2px}#replysubmit{margin:0;padding:5px 7px 10px;overflow:hidden}#replysubmit .reply-submit-buttons{margin-bottom:0}#replysubmit .button{margin-left:5px}#replysubmit .spinner{float:none;margin:-4px 0 0}#replyrow.inline-edit-row fieldset.comment-reply{font-size:inherit;line-height:inherit}#replyrow legend{margin:0;padding:.2em 5px 0;font-size:13px;line-height:1.4;font-weight:600}#replyrow.inline-edit-row label{display:inline;vertical-align:baseline;line-height:inherit}#commentsdiv #edithead .inside,#edithead .inside{float:right;padding:3px 5px 2px 0;margin:0;text-align:center}#edithead .inside input{width:180px}#edithead label{padding:2px 0}#replycontainer{padding:5px}#replycontent{height:120px;box-shadow:none}#replyerror{border-color:#dcdcde;background-color:#f6f7f7}.commentlist .avatar{vertical-align:text-top}#the-comment-list div.undo,#the-comment-list tr.undo{background-color:#f6f7f7}#the-comment-list .unapproved td,#the-comment-list .unapproved th{background-color:#fcf9e8}#the-comment-list .unapproved th.check-column{border-right:4px solid #d63638}#the-comment-list .unapproved th.check-column input{margin-right:4px}#the-comment-list .approve a{color:#007017}#the-comment-list .unapprove a{color:#996800}#the-comment-list td,#the-comment-list th{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}#the-comment-list tr:last-child td,#the-comment-list tr:last-child th{box-shadow:none}#the-comment-list tr.unapproved+tr.approved td,#the-comment-list tr.unapproved+tr.approved th{border-top:1px solid rgba(0,0,0,.03)}.vim-current,.vim-current td,.vim-current th{background-color:#f0f6fc!important}th .comment-grey-bubble{width:16px;position:relative;top:2px}th .comment-grey-bubble:before{content:"\f101";font:normal 20px/.5 dashicons;speak:never;display:inline-block;padding:0;top:4px;right:-4px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#3c434a}table.fixed{table-layout:fixed}.fixed .column-rating,.fixed .column-visible{width:8%}.fixed .column-author,.fixed .column-format,.fixed .column-links,.fixed .column-parent,.fixed .column-posts{width:10%}.fixed .column-date{width:14%}.column-date span[title]{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.fixed .column-posts{width:74px}.fixed .column-posts,.fixed .column-role{-webkit-hyphens:auto;hyphens:auto}.fixed .column-comment .comment-author{display:none}.fixed .column-categories,.fixed .column-rel,.fixed .column-response,.fixed .column-role,.fixed .column-tags{width:15%}.fixed .column-slug{width:25%}.fixed .column-locations{width:35%}.fixed .column-comments{width:5.5em;text-align:right}.fixed .column-comments .vers{padding-right:3px}td.column-title strong,td.plugin-title strong{display:block;margin-bottom:.2em;font-size:14px}td.column-title p,td.plugin-title p{margin:6px 0}table.media .column-title .media-icon{float:right;min-height:60px;margin:0 0 0 9px}table.media .column-title .media-icon img{max-width:60px;height:auto;vertical-align:top}table.media .column-title .has-media-icon~.row-actions{margin-right:70px}table.media .column-title .filename{margin-bottom:.2em}.media .row-actions .copy-to-clipboard-container{display:inline;position:relative}.media .row-actions .copy-to-clipboard-container .success{position:absolute;right:50%;transform:translate(50%,-100%);background:#000;color:#fff;border-radius:5px;margin:0;padding:2px 5px}.wp-list-table a{transition:none}#the-list tr:last-child td,#the-list tr:last-child th{border-bottom:none!important;box-shadow:none}#comments-form .fixed .column-author{width:20%}#commentsdiv.postbox .inside{margin:0;padding:0}#commentsdiv .inside .row-actions{line-height:1.38461538}#commentsdiv .inside .column-author{width:25%}#commentsdiv .column-comment p{margin:.6em 0;padding:0}#commentsdiv #replyrow td{padding:0}#commentsdiv p{padding:8px 10px;margin:0}#commentsdiv .comments-box{border:0 none}#commentsdiv .comments-box thead td,#commentsdiv .comments-box thead th{background:0 0;padding:0 7px 4px}#commentsdiv .comments-box tr:last-child td{border-bottom:0 none}#commentsdiv #edithead .inside input{width:160px}.sorting-indicators{display:grid}.sorting-indicator{display:block;width:10px;height:4px;margin-top:4px;margin-right:7px}.sorting-indicator:before{font:normal 20px/1 dashicons;speak:never;display:inline-block;padding:0;top:-4px;right:-8px;line-height:.5;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#a7aaad}.sorting-indicator.asc:before{content:"\f142"}.sorting-indicator.desc:before{content:"\f140"}th.sorted.desc .sorting-indicator.desc:before{color:#1d2327}th.sorted.asc .sorting-indicator.asc:before{color:#1d2327}th.sorted.asc a:focus .sorting-indicator.asc:before,th.sorted.asc:hover .sorting-indicator.asc:before,th.sorted.desc a:focus .sorting-indicator.desc:before,th.sorted.desc:hover .sorting-indicator.desc:before{color:#a7aaad}th.sorted.asc a:focus .sorting-indicator.desc:before,th.sorted.asc:hover .sorting-indicator.desc:before,th.sorted.desc a:focus .sorting-indicator.asc:before,th.sorted.desc:hover .sorting-indicator.asc:before{color:#1d2327}.wp-list-table .toggle-row{position:absolute;left:8px;top:10px;display:none;padding:0;width:40px;height:40px;border:none;outline:0;background:0 0}.wp-list-table .toggle-row:hover{cursor:pointer}.wp-list-table .toggle-row:focus:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.wp-list-table .toggle-row:active{box-shadow:none}.wp-list-table .toggle-row:before{position:absolute;top:-5px;right:10px;border-radius:50%;display:block;padding:1px 0 1px 2px;color:#3c434a;content:"\f140";font:normal 20px/1 dashicons;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;speak:never}.wp-list-table .is-expanded .toggle-row:before{content:"\f142"}.check-column{position:relative}.check-column label{box-sizing:border-box;width:100%;height:100%;display:block;position:absolute;top:0;right:0}.check-column input{position:relative;z-index:1}.check-column .label-covers-full-cell:hover+input:not(:disabled){box-shadow:0 0 0 1px #2271b1}.check-column input:hover+label,.check-column label:hover{background:rgba(0,0,0,.05)}.locked-indicator{display:none;margin-right:6px;height:20px;width:16px}.locked-indicator-icon:before{color:#8c8f94;content:"\f160";display:inline-block;font:normal 20px/1 dashicons;speak:never;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.locked-info{display:none;margin-top:4px}.locked-text{vertical-align:top}.wp-locked .locked-indicator,.wp-locked .locked-info{display:block}tr.wp-locked .check-column input[type=checkbox],tr.wp-locked .check-column label,tr.wp-locked .row-actions .inline,tr.wp-locked .row-actions .trash{display:none}#menu-locations-wrap .widefat{width:60%}.widefat th.sortable,.widefat th.sorted{padding:0}th.sortable a,th.sorted a{display:block;overflow:hidden;padding:8px}th.sortable a:focus,th.sorted a:focus{box-shadow:inset 0 0 0 2px #2271b1;outline:2px solid transparent}th.sortable a span,th.sorted a span{float:right;cursor:pointer}.tablenav-pages .current-page{margin:0 0 0 2px;font-size:13px;text-align:center}.tablenav .total-pages{margin-left:2px}.tablenav #table-paging{margin-right:2px}.tablenav{clear:both;height:30px;margin:6px 0 4px;padding-top:5px;vertical-align:middle}.tablenav.themes{max-width:98%}.tablenav .tablenav-pages{float:left;margin:0 0 9px}.tablenav .no-pages,.tablenav .one-page .pagination-links{display:none}.tablenav .tablenav-pages .button,.tablenav .tablenav-pages .tablenav-pages-navspan{display:inline-block;vertical-align:baseline;min-width:30px;min-height:30px;margin:0;padding:0 4px;font-size:16px;line-height:1.625;text-align:center}.tablenav .displaying-num{margin-left:7px}.tablenav .one-page .displaying-num{display:inline-block;margin:5px 0}.tablenav .actions{padding:0 0 0 8px}.wp-filter .actions{display:inline-block;vertical-align:middle}.tablenav .delete{margin-left:20px}.tablenav .view-switch{float:left;margin:0 5px;padding-top:3px}.wp-filter .view-switch{display:inline-block;vertical-align:middle;padding:12px 0;margin:0 2px 0 8px}.media-toolbar.wp-filter .view-switch{margin:0 2px 0 12px}.view-switch a{float:right;width:28px;height:28px;text-align:center;line-height:1.84615384;text-decoration:none}.view-switch a:before{color:#c3c4c7;display:inline-block;font:normal 20px/1 dashicons;speak:never;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.view-switch a:focus:before,.view-switch a:hover:before{color:#787c82}.view-switch a.current:before{color:#2271b1}.view-switch .view-list:before{content:"\f163"}.view-switch .view-excerpt:before{content:"\f164"}.view-switch .view-grid:before{content:"\f509"}.filter{float:right;margin:-5px 10px 0 0}.filter .subsubsub{margin-right:-10px;margin-top:13px}.screen-per-page{width:4em}#posts-filter .wp-filter{margin-bottom:0}#posts-filter fieldset{float:right;margin:0 0 1em 1.5ex;padding:0}#posts-filter fieldset legend{padding:0 1px .2em 0}p.pagenav{margin:0;display:inline}.pagenav span{font-weight:600;margin:0 6px}.row-title{font-size:14px!important;font-weight:600}.column-comment .comment-author{margin-bottom:.6em}.column-author img,.column-comment .comment-author img,.column-username img{float:right;margin-left:10px;margin-top:1px}.row-actions{color:#a7aaad;font-size:13px;padding:2px 0 0;position:relative;right:-9999em}.rtl .row-actions a{display:inline-block}.row-actions .network_active,.row-actions .network_only{color:#000}.comment-item:hover .row-actions,.mobile .row-actions,.no-js .row-actions,.row-actions.visible,tr:hover .row-actions{position:static}.row-actions-visible{padding:2px 0 0}#wpbody-content .inline-edit-row fieldset{float:right;margin:0;padding:0 0 0 12px;width:100%;box-sizing:border-box}#wpbody-content .inline-edit-row td fieldset:last-of-type{padding-left:0}tr.inline-edit-row td{padding:0;position:relative}.inline-edit-wrapper{display:flow-root;padding:0 12px;border:1px solid transparent;border-radius:4px}.inline-edit-wrapper:focus{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}#wpbody-content .quick-edit-row-post .inline-edit-col-left{width:40%}#wpbody-content .quick-edit-row-post .inline-edit-col-right{width:39%}#wpbody-content .inline-edit-row-post .inline-edit-col-center{width:20%}#wpbody-content .quick-edit-row-page .inline-edit-col-left{width:50%}#wpbody-content .bulk-edit-row-post .inline-edit-col-right,#wpbody-content .quick-edit-row-page .inline-edit-col-right{width:50%}#wpbody-content .bulk-edit-row .inline-edit-col-left{width:30%}#wpbody-content .bulk-edit-row-page .inline-edit-col-right{width:69%}#wpbody-content .bulk-edit-row .inline-edit-col-bottom{float:left;width:69%}#wpbody-content .inline-edit-row-page .inline-edit-col-right{margin-top:27px}.inline-edit-row fieldset .inline-edit-group{clear:both;line-height:2.5}.inline-edit-row .submit{display:flex;flex-wrap:wrap;align-items:center;clear:both;margin:0;padding:.5em 0 1em}.inline-edit-save.submit .button{margin-left:8px}.inline-edit-save .spinner{float:none;margin:0}.inline-edit-row .notice-error{box-sizing:border-box;min-width:100%;margin-top:1em}.inline-edit-row .notice-error .error{margin:.5em 0;padding:2px}#the-list .inline-edit-row .inline-edit-legend{margin:0;padding:.2em 0;line-height:2.5;font-weight:600}.inline-edit-row fieldset span.checkbox-title,.inline-edit-row fieldset span.title{margin:0;padding:0}.inline-edit-row fieldset label,.inline-edit-row fieldset span.inline-edit-categories-label{display:block;margin:.2em 0;line-height:2.5}.inline-edit-row fieldset.inline-edit-date label{display:inline-block;margin:0;vertical-align:baseline;line-height:2}.inline-edit-row fieldset label.inline-edit-tags{margin-top:0}.inline-edit-row fieldset label.inline-edit-tags span.title{margin:.2em 0;width:auto}.inline-edit-row fieldset label span.title,.inline-edit-row fieldset.inline-edit-date legend{display:block;float:right;width:6em;line-height:2.5}#posts-filter fieldset.inline-edit-date legend{padding:0}.inline-edit-row fieldset .timestamp-wrap,.inline-edit-row fieldset label span.input-text-wrap{display:block;margin-right:6em}.quick-edit-row-post fieldset.inline-edit-col-right label span.title{width:auto;padding-left:.5em}.inline-edit-row .inline-edit-or{margin:.2em 0 .2em 6px;line-height:2.5}.inline-edit-row .input-text-wrap input[type=text]{width:100%}.inline-edit-row fieldset label input[type=checkbox]{vertical-align:middle}.inline-edit-row fieldset label textarea{width:100%;height:4em;vertical-align:top}#wpbody-content .bulk-edit-row fieldset .inline-edit-group label{max-width:50%}#wpbody-content .quick-edit-row fieldset .inline-edit-group label.alignleft:first-child{margin-left:.5em}.inline-edit-col-right .input-text-wrap input.inline-edit-menu-order-input{width:6em}.inline-edit-row .inline-edit-legend{text-transform:uppercase}.inline-edit-row fieldset .inline-edit-date{float:right}.inline-edit-row fieldset input[name=aa],.inline-edit-row fieldset input[name=hh],.inline-edit-row fieldset input[name=jj],.inline-edit-row fieldset input[name=mn]{vertical-align:middle;text-align:center;padding:0 4px}.inline-edit-row fieldset label input.inline-edit-password-input{width:8em}#bulk-titles-list,#bulk-titles-list li,.inline-edit-row fieldset ul.cat-checklist input,.inline-edit-row fieldset ul.cat-checklist li{margin:0;position:relative}.inline-edit-row fieldset ul.cat-checklist input{margin-top:-1px;margin-right:3px}.inline-edit-row fieldset label input.inline-edit-menu-order-input{width:3em}.inline-edit-row fieldset label input.inline-edit-slug-input{width:75%}.inline-edit-row #post_parent,.inline-edit-row select[name=page_template]{max-width:80%}.quick-edit-row-post fieldset label.inline-edit-status{float:right}#bulk-titles,ul.cat-checklist{height:14em;border:1px solid #ddd;margin:0 0 5px;padding:.2em 5px;overflow-y:scroll}ul.cat-checklist input[name="post_category[]"]:indeterminate::before{content:'';border-top:2px solid grey;width:65%;height:2px;position:absolute;top:calc(50% + 1px);right:50%;transform:translate(50%,-50%)}#bulk-titles .ntdelbutton,#bulk-titles .ntdeltitle,.inline-edit-row fieldset ul.cat-checklist label{display:inline-block;margin:0;padding:3px 0;line-height:20px;vertical-align:top}#bulk-titles .ntdelitem{padding-right:23px}#bulk-titles .ntdelbutton{width:26px;height:26px;margin:0 -26px 0 0;text-align:center;border-radius:3px}#bulk-titles .ntdelbutton:before{display:inline-block;vertical-align:top}#bulk-titles .ntdelbutton:focus{box-shadow:0 0 0 2px #3582c4;outline:2px solid transparent;outline-offset:0}.plugins tbody,.plugins tbody th.check-column{padding:8px 2px 0 0}.plugins tbody th.check-column input[type=checkbox]{margin-top:4px}.updates-table .plugin-title p{margin-top:0}.plugins .inactive th.check-column,.plugins tfoot td.check-column,.plugins thead td.check-column{padding-right:6px}.plugins,.plugins td,.plugins th{color:#000}.plugins tr{background:#fff}.plugins p{margin:0 4px;padding:0}.plugins .desc p{margin:0 0 8px}.plugins td.desc{line-height:1.5}.plugins .desc ol,.plugins .desc ul{margin:0 2em 0 0}.plugins .desc ul{list-style-type:disc}.plugins .row-actions{font-size:13px;padding:0}.plugins .active td,.plugins .active th,.plugins .inactive td,.plugins .inactive th{padding:10px 9px}.plugins .active td,.plugins .active th{background-color:#f0f6fc}.plugins .update td,.plugins .update th{border-bottom:0}.plugin-install #the-list td,.plugins .active td,.plugins .active th,.plugins .inactive td,.plugins .inactive th,.upgrade .plugins td,.upgrade .plugins th{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugins tr.active+tr.inactive td,.plugins tr.active+tr.inactive th,.plugins tr.active.plugin-update-tr+tr.inactive td,.plugins tr.active.plugin-update-tr+tr.inactive th{border-top:1px solid rgba(0,0,0,.03);box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #dcdcde}.plugins .update td,.plugins .update th,.plugins .updated td,.plugins .updated th,.plugins tr.active+tr.inactive.update td,.plugins tr.active+tr.inactive.update th,.plugins tr.active+tr.inactive.updated td,.plugins tr.active+tr.inactive.updated th,.upgrade .plugins tr:last-of-type td,.upgrade .plugins tr:last-of-type th{box-shadow:none}.plugin-update-tr.active td,.plugins .active th.check-column{border-right:4px solid #72aee6}.wp-list-table.plugins .plugin-title,.wp-list-table.plugins .theme-title{padding-left:12px;white-space:nowrap}.plugins .plugin-title .dashicons,.plugins .plugin-title img{float:right;padding:0 0 0 10px;width:64px;height:64px}.plugins .plugin-title .dashicons:before{padding:2px;background-color:#f0f0f1;box-shadow:inset 0 0 10px rgba(167,170,173,.15);font-size:60px;color:#c3c4c7}#update-themes-table .plugin-title .dashicons,#update-themes-table .plugin-title img{width:85px}.plugins .column-auto-updates{width:14.2em}.plugins .inactive .plugin-title strong{font-weight:400}.plugins .row-actions,.plugins .second{padding:0 0 5px}.plugins .row-actions{white-space:normal;min-width:12em}.plugins .update .row-actions,.plugins .update .second,.plugins .updated .row-actions,.plugins .updated .second{padding-bottom:0}.plugins-php .widefat tfoot td,.plugins-php .widefat tfoot th{border-top-style:solid;border-top-width:1px}.plugins .plugin-update-tr .plugin-update{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);overflow:hidden;padding:0}.plugins .plugin-update-tr .notice,.plugins .plugin-update-tr div[class=update-message]{margin:5px 40px 15px 20px}.plugins .notice p{margin:.5em 0}.plugins .plugin-description a,.plugins .plugin-update a,.updates-table .plugin-title a{text-decoration:underline}.plugins tr.paused th.check-column{border-right:4px solid #b32d2e}.plugins tr.paused td,.plugins tr.paused th{background-color:#f6f7f7}.plugins .paused .dashicons-warning,.plugins tr.paused .plugin-title{color:#b32d2e}.plugins .paused .error-display code,.plugins .paused .error-display p{font-size:90%;color:rgba(0,0,0,.7)}.plugins .resume-link{color:#b32d2e}.plugin-card .update-now:before{color:#d63638;content:"\f463";display:inline-block;font:normal 20px/1 dashicons;margin:-3px -2px 0 5px;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.plugin-card .updating-message:before{content:"\f463";animation:rotation 2s infinite linear}@keyframes rotation{0%{transform:rotate(0)}100%{transform:rotate(-359deg)}}.plugin-card .updated-message:before{color:#68de7c;content:"\f147"}.plugin-install-php #the-list{display:flex;flex-wrap:wrap}.plugin-install-php .plugin-card{display:flex;flex-direction:column;justify-content:space-between}.plugin-install-php h2{clear:both}.plugin-install-php h3{margin:2.5em 0 8px}.plugin-install-php .wp-filter{margin-bottom:0}.plugin-group{overflow:hidden;margin-top:1.5em}.plugin-group h3{margin-top:0}.plugin-card{float:right;margin:0 8px 16px;width:48.5%;width:calc(50% - 8px);background-color:#fff;border:1px solid #dcdcde;box-sizing:border-box}.plugin-card:nth-child(odd){clear:both;margin-right:0}.plugin-card:nth-child(2n){margin-left:0}@media screen and (min-width:1600px) and (max-width:2299px){.plugin-card{width:30%;width:calc(33.1% - 8px)}.plugin-card:nth-child(odd){clear:none;margin-right:8px}.plugin-card:nth-child(2n){margin-left:8px}.plugin-card:nth-child(3n+1){clear:both;margin-right:0}.plugin-card:nth-child(3n){margin-left:0}}@media screen and (min-width:2300px){.plugin-card{width:25%;width:calc(25% - 12px)}.plugin-card:nth-child(odd){clear:none;margin-right:8px}.plugin-card:nth-child(2n){margin-left:8px}.plugin-card:nth-child(4n+1){clear:both;margin-right:0}.plugin-card:nth-child(4n){margin-left:0}}.plugin-card-top{position:relative;padding:20px 20px 10px;min-height:135px}.plugin-action-buttons,div.action-links{margin:0}.plugin-card h3{margin:0 0 12px 12px;font-size:18px;line-height:1.3}.plugin-card .desc{margin-inline:0}.plugin-card .desc>p,.plugin-card .name{margin-right:148px}@media (min-width:1101px){.plugin-card .desc>p,.plugin-card .name{margin-left:128px}}@media (min-width:481px) and (max-width:781px){.plugin-card .desc>p,.plugin-card .name{margin-left:128px}}.plugin-card .column-description{display:flex;flex-direction:column;justify-content:flex-start}.plugin-card .column-description>p{margin-top:0}.plugin-card .column-description p:empty{display:none}.plugin-card .notice.plugin-dependencies{margin:auto 20px 20px;padding:15px}.plugin-card .plugin-dependencies-explainer-text{margin-block:0}.plugin-card .plugin-dependency{align-items:center;display:flex;flex-wrap:wrap;margin-top:.5em;column-gap:1%;row-gap:.5em}.plugin-card .plugin-dependency:last-child,.plugin-card .plugin-dependency:nth-child(2){margin-top:1em}.plugin-card .plugin-dependency-name{flex-basis:74%}.plugin-card .plugin-dependency .more-details-link{margin-right:auto}.rtl .plugin-card .plugin-dependency .more-details-link{margin-left:auto}@media (max-width:939px){.plugin-card .plugin-dependency-name{flex-basis:69%}}.plugins #the-list .required-by,.plugins #the-list .requires{margin-top:1em}.plugin-card .action-links{position:absolute;top:20px;left:20px;width:120px}.plugin-action-buttons{clear:left;float:left;margin-bottom:1em;text-align:left}.plugin-action-buttons li{margin-bottom:10px}.plugin-card-bottom{clear:both;padding:12px 20px;background-color:#f6f7f7;border-top:1px solid #dcdcde;overflow:hidden}.plugin-card-bottom .star-rating{display:inline}.plugin-card-update-failed .update-now{font-weight:600}.plugin-card-update-failed .notice-error{margin:0;padding-right:16px;box-shadow:0 -1px 0 #dcdcde}.plugin-card-update-failed .plugin-card-bottom{display:none}.plugin-card .column-rating{line-height:1.76923076}.plugin-card .column-rating,.plugin-card .column-updated{margin-bottom:4px}.plugin-card .column-downloaded,.plugin-card .column-rating{float:right;clear:right;max-width:180px}.plugin-card .column-compatibility,.plugin-card .column-updated{text-align:left;float:left;clear:left;width:65%;width:calc(100% - 180px)}.plugin-card .column-compatibility span:before{font:normal 20px/.5 dashicons;speak:never;display:inline-block;padding:0;top:4px;right:-2px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#3c434a}.plugin-card .column-compatibility .compatibility-incompatible:before{content:"\f158";color:#d63638}.plugin-card .column-compatibility .compatibility-compatible:before{content:"\f147";color:#007017}.plugin-card .notice{margin:20px 20px 0}.plugin-icon{position:absolute;top:20px;right:20px;width:128px;height:128px;margin:0 0 20px 20px}.no-plugin-results{color:#646970;font-size:18px;font-style:normal;margin:0;padding:100px 0 0;width:100%;text-align:center}.wp-list-table .site-archived,.wp-list-table .site-deleted,.wp-list-table tr.site-archived,.wp-list-table tr.site-deleted{background:#fcf0f1}.wp-list-table .site-mature,.wp-list-table .site-spammed,.wp-list-table tr.site-mature,.wp-list-table tr.site-spammed{background:#fcf9e8}.sites.fixed .column-lastupdated,.sites.fixed .column-registered{width:20%}.sites.fixed .column-users{width:80px}@media screen and (max-width:1100px) and (min-width:782px),(max-width:480px){.plugin-card .action-links{position:static;margin-right:148px;width:auto}.plugin-action-buttons{float:none;margin:1em 0 0;text-align:right}.plugin-action-buttons li{display:inline-block;vertical-align:middle}.plugin-action-buttons li .button{margin-left:20px}.plugin-card h3{margin-left:24px}.plugin-card .desc,.plugin-card .name{margin-left:0}.plugin-card .desc p:first-of-type{margin-top:0}}@media screen and (max-width:782px){.tablenav{height:auto}.tablenav.top{margin:20px 0 5px}.tablenav.bottom{position:relative;margin-top:15px}.tablenav br{display:none}.tablenav br.clear{display:block}.tablenav .view-switch,.tablenav.top .actions{display:none}.view-switch a{width:36px;height:36px;line-height:2.53846153}.tablenav.top .displaying-num{display:none}.tablenav.bottom .displaying-num{position:absolute;left:0;top:11px;margin:0;font-size:14px}.tablenav .tablenav-pages{width:100%;text-align:center;margin:0 0 25px}.tablenav.bottom .tablenav-pages{margin-top:25px}.tablenav.top .tablenav-pages.one-page{display:none}.tablenav.bottom .actions select{margin-bottom:5px}.tablenav.bottom .actions.alignleft+.actions.alignleft{clear:right;margin-top:10px}.tablenav.bottom .tablenav-pages.one-page{margin-top:15px;height:0}.tablenav-pages .pagination-links{font-size:16px}.tablenav .tablenav-pages .button,.tablenav .tablenav-pages .tablenav-pages-navspan{min-width:44px;padding:12px 8px;font-size:18px;line-height:1}.tablenav-pages .pagination-links .current-page{min-width:44px;padding:12px 6px;font-size:16px;line-height:1.125}.form-wrap>p{display:none}.wp-list-table th.column-primary~th,.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column){display:none}.wp-list-table thead th.column-primary{width:100%}.wp-list-table tr th.check-column{display:table-cell}.wp-list-table .check-column{width:2.5em}.wp-list-table .column-primary .toggle-row{display:block}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column){position:relative;clear:both;width:auto!important}.wp-list-table td.column-primary{padding-left:50px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column){padding:3px 35% 3px 8px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before{position:absolute;right:10px;display:block;overflow:hidden;width:32%;content:attr(data-colname);white-space:nowrap;text-overflow:ellipsis}.wp-list-table .is-expanded td:not(.hidden){display:block!important;overflow:hidden}.column-posts,.widefat .num{text-align:right}#comments-form .fixed .column-author,#commentsdiv .fixed .column-author{display:none!important}.fixed .column-comment .comment-author{display:block}.fixed .column-author.hidden~.column-comment .comment-author{display:none}#the-comment-list .is-expanded td{box-shadow:none}#the-comment-list .is-expanded td:last-child{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.post-com-count .screen-reader-text{position:static;clip-path:none;width:auto;height:auto;margin:0}.column-comments .post-com-count-approved:after,.column-comments .post-com-count-no-comments:after,.column-response .post-com-count-approved:after,.column-response .post-com-count-no-comments:after{content:none}.column-comments .post-com-count [aria-hidden=true],.column-response .post-com-count [aria-hidden=true]{display:none}.column-comments .post-com-count-wrapper,.column-response .post-com-count-wrapper{white-space:normal}.column-comments .post-com-count-wrapper>a,.column-response .post-com-count-wrapper>a{display:block}.column-comments .post-com-count-approved,.column-comments .post-com-count-no-comments,.column-response .post-com-count-approved,.column-response .post-com-count-no-comments{margin-top:0;margin-left:.5em}.column-comments .post-com-count-pending,.column-response .post-com-count-pending{position:static;height:auto;min-width:0;padding:0;border:none;border-radius:0;background:0 0;color:#b32d2e;font-size:inherit;line-height:inherit;text-align:right}.column-comments .post-com-count-pending:hover,.column-response .post-com-count-pending:hover{color:#d63638}.widefat tfoot td.check-column,.widefat thead td.check-column{padding-top:10px}.row-actions{margin-right:-8px;margin-left:-8px;padding-top:4px}body:not(.plugins-php) .row-actions{display:flex;flex-wrap:wrap;gap:8px;color:transparent}.row-actions span .button-link,.row-actions span a{display:inline-block;padding:4px 8px;line-height:1.5}.row-actions span.approve:before,.row-actions span.unapprove:before{content:"| "}#wpbody-content .bulk-edit-row .inline-edit-col-bottom,#wpbody-content .bulk-edit-row .inline-edit-col-left,#wpbody-content .bulk-edit-row-page .inline-edit-col-right,#wpbody-content .bulk-edit-row-post .inline-edit-col-right,#wpbody-content .inline-edit-row-post .inline-edit-col-center,#wpbody-content .quick-edit-row-page .inline-edit-col-left,#wpbody-content .quick-edit-row-page .inline-edit-col-right,#wpbody-content .quick-edit-row-post .inline-edit-col-left,#wpbody-content .quick-edit-row-post .inline-edit-col-right{float:none;width:100%;padding:0}#the-list .inline-edit-row .inline-edit-legend,.inline-edit-row span.title{font-size:16px}.inline-edit-row p.howto{font-size:14px}#wpbody-content .inline-edit-row-page .inline-edit-col-right{margin-top:0}#wpbody-content .bulk-edit-row fieldset .inline-edit-col label,#wpbody-content .bulk-edit-row fieldset .inline-edit-group label,#wpbody-content .quick-edit-row fieldset .inline-edit-col label,#wpbody-content .quick-edit-row fieldset .inline-edit-group label{max-width:none;float:none;margin-bottom:5px}#wpbody .bulk-edit-row fieldset select{display:block;width:100%;max-width:none;box-sizing:border-box}.inline-edit-row fieldset input[name=aa],.inline-edit-row fieldset input[name=hh],.inline-edit-row fieldset input[name=jj],.inline-edit-row fieldset input[name=mn]{font-size:16px;line-height:2;padding:3px 4px}#bulk-titles .ntdelbutton,#bulk-titles .ntdeltitle,.inline-edit-row fieldset ul.cat-checklist label{padding:6px 0;font-size:16px;line-height:28px}#bulk-titles .ntdelitem{padding-right:37px}#bulk-titles .ntdelbutton{width:40px;height:40px;margin:0 -40px 0 0;overflow:hidden}#bulk-titles .ntdelbutton:before{font-size:20px;line-height:28px}.inline-edit-row fieldset label span.title,.inline-edit-row fieldset.inline-edit-date legend{float:none}.inline-edit-row fieldset .inline-edit-col label.inline-edit-tags{padding:0}.inline-edit-row fieldset .timestamp-wrap,.inline-edit-row fieldset label span.input-text-wrap{margin-right:0}.inline-edit-row .inline-edit-or{margin:0 0 0 6px}#commentsdiv #edithead .inside,#edithead .inside{float:none;text-align:right;padding:3px 5px}#commentsdiv #edithead .inside input,#edithead .inside input{width:100%}#edithead label{display:block}#wpbody-content .updates-table .plugin-title{width:auto;white-space:normal}.link-manager-php #posts-filter{margin-top:25px}.link-manager-php .tablenav.bottom{overflow:hidden}.comments-box .toggle-row,.wp-list-table.plugins .toggle-row{display:none}#wpbody-content .wp-list-table.plugins td{display:block;width:auto;padding:10px 9px}#wpbody-content .wp-list-table.plugins .no-items td,#wpbody-content .wp-list-table.plugins .plugin-deleted-tr td{display:table-cell}#wpbody-content .wp-list-table.plugins .desc.hidden{display:none}#wpbody-content .wp-list-table.plugins .column-description{padding-top:2px}#wpbody-content .wp-list-table.plugins .plugin-title,#wpbody-content .wp-list-table.plugins .theme-title{padding-left:12px;white-space:normal}.wp-list-table.plugins .plugin-title,.wp-list-table.plugins .theme-title{padding-top:13px;padding-bottom:4px}.plugins #the-list .update td,.plugins #the-list .update th,.plugins #the-list tr>td:not(:last-child),.wp-list-table.plugins #the-list .theme-title{box-shadow:none;border-top:none}.plugins #the-list tr td{border-top:none}.plugins tbody{padding:1px 0 0}.plugins .plugin-update-tr:before,.plugins tr.active+tr.inactive td.column-description,.plugins tr.active+tr.inactive th.check-column{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugins tr.active+tr.inactive td,.plugins tr.active+tr.inactive th.check-column{border-top:none}.plugins .plugin-update-tr:before{content:"";display:table-cell}.plugins #the-list .plugin-update-tr .plugin-update{border-right:none}.plugin-update-tr .update-message{margin-right:0}.plugins .active.update+.plugin-update-tr:before,.plugins .active.updated+.plugin-update-tr:before{background-color:#f0f6fc;border-right:4px solid #72aee6}.plugins .plugin-update-tr .update-message{margin-right:0}.wp-list-table.plugins .plugin-title strong,.wp-list-table.plugins .theme-title strong{font-size:1.4em;line-height:1.5}.plugins tbody th.check-column{padding:8px 5px 0 0}.plugins .inactive th.check-column,.plugins tfoot td.check-column,.plugins thead td.check-column{padding-right:9px}table.plugin-install .column-description,table.plugin-install .column-name,table.plugin-install .column-rating,table.plugin-install .column-version{display:block;width:auto}table.plugin-install th.column-description,table.plugin-install th.column-name,table.plugin-install th.column-rating,table.plugin-install th.column-version{display:none}table.plugin-install td.column-name strong{font-size:1.4em;line-height:1.6em}table.plugin-install #the-list td{box-shadow:none}table.plugin-install #the-list tr{display:block;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugin-card{margin-right:0;margin-left:0;width:100%}table.media .column-title .has-media-icon~.row-actions{margin-right:0;clear:both}}@media screen and (max-width:480px){.tablenav-pages .current-page{margin:0}.tablenav.bottom .displaying-num{position:relative;top:0;display:block;text-align:left;padding-bottom:.5em}.tablenav.bottom .tablenav-pages.one-page{height:auto}.tablenav-pages .tablenav-paging-text{float:right;width:100%;padding-top:.5em}} \ No newline at end of file
diff --git a/wp-admin/css/list-tables.css b/wp-admin/css/list-tables.css
index f5db523..de36190 100644
--- a/wp-admin/css/list-tables.css
+++ b/wp-admin/css/list-tables.css
@@ -904,7 +904,7 @@ tr:hover .row-actions,
tr.inline-edit-row td {
padding: 0;
- /* Prevents the focus style on .inline-edit-wrapper from being cutted-off */
+ /* Prevents the focus style on .inline-edit-wrapper from being cut-off */
position: relative;
}
@@ -2003,7 +2003,6 @@ div.action-links,
/* Show comment bubble as text instead */
.post-com-count .screen-reader-text {
position: static;
- -webkit-clip-path: none;
clip-path: none;
width: auto;
height: auto;
diff --git a/wp-admin/css/list-tables.min.css b/wp-admin/css/list-tables.min.css
index 41a8e1f..02ddbac 100644
--- a/wp-admin/css/list-tables.min.css
+++ b/wp-admin/css/list-tables.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-.response-links{display:block;margin-bottom:1em}.response-links a{display:block}.response-links a.comments-edit-item-link{font-weight:600}.response-links a.comments-view-item-link{font-size:12px}.post-com-count-wrapper strong{font-weight:400}.comments-view-item-link{display:inline-block;clear:both}.column-comments .post-com-count-wrapper,.column-response .post-com-count-wrapper{white-space:nowrap;word-wrap:normal}.column-comments .post-com-count,.column-response .post-com-count{display:inline-block;vertical-align:top}.column-comments .post-com-count-approved,.column-comments .post-com-count-no-comments,.column-response .post-com-count-approved,.column-response .post-com-count-no-comments{margin-top:5px}.column-comments .comment-count-approved,.column-comments .comment-count-no-comments,.column-response .comment-count-approved,.column-response .comment-count-no-comments{box-sizing:border-box;display:block;padding:0 8px;min-width:24px;height:2em;border-radius:5px;background-color:#646970;color:#fff;font-size:11px;line-height:1.90909090;text-align:center}.column-comments .post-com-count-approved:after,.column-comments .post-com-count-no-comments:after,.column-response .post-com-count-approved:after,.column-response .post-com-count-no-comments:after{content:"";display:block;margin-left:8px;width:0;height:0;border-top:5px solid #646970;border-right:5px solid transparent}.column-comments a.post-com-count-approved:focus .comment-count-approved,.column-comments a.post-com-count-approved:hover .comment-count-approved,.column-response a.post-com-count-approved:focus .comment-count-approved,.column-response a.post-com-count-approved:hover .comment-count-approved{background:#2271b1}.column-comments a.post-com-count-approved:focus:after,.column-comments a.post-com-count-approved:hover:after,.column-response a.post-com-count-approved:focus:after,.column-response a.post-com-count-approved:hover:after{border-top-color:#2271b1}.column-comments .post-com-count-pending,.column-response .post-com-count-pending{position:relative;left:-3px;padding:0 5px;min-width:7px;height:17px;border:2px solid #fff;border-radius:11px;background:#d63638;color:#fff;font-size:9px;line-height:1.88888888;text-align:center}.column-comments .post-com-count-no-pending,.column-response .post-com-count-no-pending{display:none}.commentlist li{padding:1em 1em .2em;margin:0;border-bottom:1px solid #c3c4c7}.commentlist li li{border-bottom:0;padding:0}.commentlist p{padding:0;margin:0 0 .8em}#submitted-on,.submitted-on{color:#50575e}#replyrow td{padding:2px}#replysubmit{margin:0;padding:5px 7px 10px;overflow:hidden}#replysubmit .reply-submit-buttons{margin-bottom:0}#replysubmit .button{margin-right:5px}#replysubmit .spinner{float:none;margin:-4px 0 0}#replyrow.inline-edit-row fieldset.comment-reply{font-size:inherit;line-height:inherit}#replyrow legend{margin:0;padding:.2em 5px 0;font-size:13px;line-height:1.4;font-weight:600}#replyrow.inline-edit-row label{display:inline;vertical-align:baseline;line-height:inherit}#commentsdiv #edithead .inside,#edithead .inside{float:left;padding:3px 0 2px 5px;margin:0;text-align:center}#edithead .inside input{width:180px}#edithead label{padding:2px 0}#replycontainer{padding:5px}#replycontent{height:120px;box-shadow:none}#replyerror{border-color:#dcdcde;background-color:#f6f7f7}.commentlist .avatar{vertical-align:text-top}#the-comment-list div.undo,#the-comment-list tr.undo{background-color:#f6f7f7}#the-comment-list .unapproved td,#the-comment-list .unapproved th{background-color:#fcf9e8}#the-comment-list .unapproved th.check-column{border-left:4px solid #d63638}#the-comment-list .unapproved th.check-column input{margin-left:4px}#the-comment-list .approve a{color:#007017}#the-comment-list .unapprove a{color:#996800}#the-comment-list td,#the-comment-list th{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}#the-comment-list tr:last-child td,#the-comment-list tr:last-child th{box-shadow:none}#the-comment-list tr.unapproved+tr.approved td,#the-comment-list tr.unapproved+tr.approved th{border-top:1px solid rgba(0,0,0,.03)}.vim-current,.vim-current td,.vim-current th{background-color:#f0f6fc!important}th .comment-grey-bubble{width:16px;position:relative;top:2px}th .comment-grey-bubble:before{content:"\f101";font:normal 20px/.5 dashicons;speak:never;display:inline-block;padding:0;top:4px;left:-4px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#3c434a}table.fixed{table-layout:fixed}.fixed .column-rating,.fixed .column-visible{width:8%}.fixed .column-author,.fixed .column-format,.fixed .column-links,.fixed .column-parent,.fixed .column-posts{width:10%}.fixed .column-date{width:14%}.column-date span[title]{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.fixed .column-posts{width:74px}.fixed .column-posts,.fixed .column-role{-webkit-hyphens:auto;hyphens:auto}.fixed .column-comment .comment-author{display:none}.fixed .column-categories,.fixed .column-rel,.fixed .column-response,.fixed .column-role,.fixed .column-tags{width:15%}.fixed .column-slug{width:25%}.fixed .column-locations{width:35%}.fixed .column-comments{width:5.5em;text-align:left}.fixed .column-comments .vers{padding-left:3px}td.column-title strong,td.plugin-title strong{display:block;margin-bottom:.2em;font-size:14px}td.column-title p,td.plugin-title p{margin:6px 0}table.media .column-title .media-icon{float:left;min-height:60px;margin:0 9px 0 0}table.media .column-title .media-icon img{max-width:60px;height:auto;vertical-align:top}table.media .column-title .has-media-icon~.row-actions{margin-left:70px}table.media .column-title .filename{margin-bottom:.2em}.media .row-actions .copy-to-clipboard-container{display:inline;position:relative}.media .row-actions .copy-to-clipboard-container .success{position:absolute;left:50%;transform:translate(-50%,-100%);background:#000;color:#fff;border-radius:5px;margin:0;padding:2px 5px}.wp-list-table a{transition:none}#the-list tr:last-child td,#the-list tr:last-child th{border-bottom:none!important;box-shadow:none}#comments-form .fixed .column-author{width:20%}#commentsdiv.postbox .inside{margin:0;padding:0}#commentsdiv .inside .row-actions{line-height:1.38461538}#commentsdiv .inside .column-author{width:25%}#commentsdiv .column-comment p{margin:.6em 0;padding:0}#commentsdiv #replyrow td{padding:0}#commentsdiv p{padding:8px 10px;margin:0}#commentsdiv .comments-box{border:0 none}#commentsdiv .comments-box thead td,#commentsdiv .comments-box thead th{background:0 0;padding:0 7px 4px}#commentsdiv .comments-box tr:last-child td{border-bottom:0 none}#commentsdiv #edithead .inside input{width:160px}.sorting-indicators{display:grid}.sorting-indicator{display:block;width:10px;height:4px;margin-top:4px;margin-left:7px}.sorting-indicator:before{font:normal 20px/1 dashicons;speak:never;display:inline-block;padding:0;top:-4px;left:-8px;line-height:.5;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#a7aaad}.sorting-indicator.asc:before{content:"\f142"}.sorting-indicator.desc:before{content:"\f140"}th.sorted.desc .sorting-indicator.desc:before{color:#1d2327}th.sorted.asc .sorting-indicator.asc:before{color:#1d2327}th.sorted.asc a:focus .sorting-indicator.asc:before,th.sorted.asc:hover .sorting-indicator.asc:before,th.sorted.desc a:focus .sorting-indicator.desc:before,th.sorted.desc:hover .sorting-indicator.desc:before{color:#a7aaad}th.sorted.asc a:focus .sorting-indicator.desc:before,th.sorted.asc:hover .sorting-indicator.desc:before,th.sorted.desc a:focus .sorting-indicator.asc:before,th.sorted.desc:hover .sorting-indicator.asc:before{color:#1d2327}.wp-list-table .toggle-row{position:absolute;right:8px;top:10px;display:none;padding:0;width:40px;height:40px;border:none;outline:0;background:0 0}.wp-list-table .toggle-row:hover{cursor:pointer}.wp-list-table .toggle-row:focus:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.wp-list-table .toggle-row:active{box-shadow:none}.wp-list-table .toggle-row:before{position:absolute;top:-5px;left:10px;border-radius:50%;display:block;padding:1px 2px 1px 0;color:#3c434a;content:"\f140";font:normal 20px/1 dashicons;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;speak:never}.wp-list-table .is-expanded .toggle-row:before{content:"\f142"}.check-column{position:relative}.check-column label{box-sizing:border-box;width:100%;height:100%;display:block;position:absolute;top:0;left:0}.check-column input{position:relative;z-index:1}.check-column .label-covers-full-cell:hover+input:not(:disabled){box-shadow:0 0 0 1px #2271b1}.check-column input:hover+label,.check-column label:hover{background:rgba(0,0,0,.05)}.locked-indicator{display:none;margin-left:6px;height:20px;width:16px}.locked-indicator-icon:before{color:#8c8f94;content:"\f160";display:inline-block;font:normal 20px/1 dashicons;speak:never;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.locked-info{display:none;margin-top:4px}.locked-text{vertical-align:top}.wp-locked .locked-indicator,.wp-locked .locked-info{display:block}tr.wp-locked .check-column input[type=checkbox],tr.wp-locked .check-column label,tr.wp-locked .row-actions .inline,tr.wp-locked .row-actions .trash{display:none}#menu-locations-wrap .widefat{width:60%}.widefat th.sortable,.widefat th.sorted{padding:0}th.sortable a,th.sorted a{display:block;overflow:hidden;padding:8px}th.sortable a:focus,th.sorted a:focus{box-shadow:inset 0 0 0 2px #2271b1;outline:2px solid transparent}th.sortable a span,th.sorted a span{float:left;cursor:pointer}.tablenav-pages .current-page{margin:0 2px 0 0;font-size:13px;text-align:center}.tablenav .total-pages{margin-right:2px}.tablenav #table-paging{margin-left:2px}.tablenav{clear:both;height:30px;margin:6px 0 4px;padding-top:5px;vertical-align:middle}.tablenav.themes{max-width:98%}.tablenav .tablenav-pages{float:right;margin:0 0 9px}.tablenav .no-pages,.tablenav .one-page .pagination-links{display:none}.tablenav .tablenav-pages .button,.tablenav .tablenav-pages .tablenav-pages-navspan{display:inline-block;vertical-align:baseline;min-width:30px;min-height:30px;margin:0;padding:0 4px;font-size:16px;line-height:1.625;text-align:center}.tablenav .displaying-num{margin-right:7px}.tablenav .one-page .displaying-num{display:inline-block;margin:5px 0}.tablenav .actions{padding:0 8px 0 0}.wp-filter .actions{display:inline-block;vertical-align:middle}.tablenav .delete{margin-right:20px}.tablenav .view-switch{float:right;margin:0 5px;padding-top:3px}.wp-filter .view-switch{display:inline-block;vertical-align:middle;padding:12px 0;margin:0 8px 0 2px}.media-toolbar.wp-filter .view-switch{margin:0 12px 0 2px}.view-switch a{float:left;width:28px;height:28px;text-align:center;line-height:1.84615384;text-decoration:none}.view-switch a:before{color:#c3c4c7;display:inline-block;font:normal 20px/1 dashicons;speak:never;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.view-switch a:focus:before,.view-switch a:hover:before{color:#787c82}.view-switch a.current:before{color:#2271b1}.view-switch .view-list:before{content:"\f163"}.view-switch .view-excerpt:before{content:"\f164"}.view-switch .view-grid:before{content:"\f509"}.filter{float:left;margin:-5px 0 0 10px}.filter .subsubsub{margin-left:-10px;margin-top:13px}.screen-per-page{width:4em}#posts-filter .wp-filter{margin-bottom:0}#posts-filter fieldset{float:left;margin:0 1.5ex 1em 0;padding:0}#posts-filter fieldset legend{padding:0 0 .2em 1px}p.pagenav{margin:0;display:inline}.pagenav span{font-weight:600;margin:0 6px}.row-title{font-size:14px!important;font-weight:600}.column-comment .comment-author{margin-bottom:.6em}.column-author img,.column-comment .comment-author img,.column-username img{float:left;margin-right:10px;margin-top:1px}.row-actions{color:#a7aaad;font-size:13px;padding:2px 0 0;position:relative;left:-9999em}.rtl .row-actions a{display:inline-block}.row-actions .network_active,.row-actions .network_only{color:#000}.comment-item:hover .row-actions,.mobile .row-actions,.no-js .row-actions,.row-actions.visible,tr:hover .row-actions{position:static}.row-actions-visible{padding:2px 0 0}#wpbody-content .inline-edit-row fieldset{float:left;margin:0;padding:0 12px 0 0;width:100%;box-sizing:border-box}#wpbody-content .inline-edit-row td fieldset:last-of-type{padding-right:0}tr.inline-edit-row td{padding:0;position:relative}.inline-edit-wrapper{display:flow-root;padding:0 12px;border:1px solid transparent;border-radius:4px}.inline-edit-wrapper:focus{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}#wpbody-content .quick-edit-row-post .inline-edit-col-left{width:40%}#wpbody-content .quick-edit-row-post .inline-edit-col-right{width:39%}#wpbody-content .inline-edit-row-post .inline-edit-col-center{width:20%}#wpbody-content .quick-edit-row-page .inline-edit-col-left{width:50%}#wpbody-content .bulk-edit-row-post .inline-edit-col-right,#wpbody-content .quick-edit-row-page .inline-edit-col-right{width:50%}#wpbody-content .bulk-edit-row .inline-edit-col-left{width:30%}#wpbody-content .bulk-edit-row-page .inline-edit-col-right{width:69%}#wpbody-content .bulk-edit-row .inline-edit-col-bottom{float:right;width:69%}#wpbody-content .inline-edit-row-page .inline-edit-col-right{margin-top:27px}.inline-edit-row fieldset .inline-edit-group{clear:both;line-height:2.5}.inline-edit-row .submit{display:flex;flex-wrap:wrap;align-items:center;clear:both;margin:0;padding:.5em 0 1em}.inline-edit-save.submit .button{margin-right:8px}.inline-edit-save .spinner{float:none;margin:0}.inline-edit-row .notice-error{box-sizing:border-box;min-width:100%;margin-top:1em}.inline-edit-row .notice-error .error{margin:.5em 0;padding:2px}#the-list .inline-edit-row .inline-edit-legend{margin:0;padding:.2em 0;line-height:2.5;font-weight:600}.inline-edit-row fieldset span.checkbox-title,.inline-edit-row fieldset span.title{margin:0;padding:0}.inline-edit-row fieldset label,.inline-edit-row fieldset span.inline-edit-categories-label{display:block;margin:.2em 0;line-height:2.5}.inline-edit-row fieldset.inline-edit-date label{display:inline-block;margin:0;vertical-align:baseline;line-height:2}.inline-edit-row fieldset label.inline-edit-tags{margin-top:0}.inline-edit-row fieldset label.inline-edit-tags span.title{margin:.2em 0;width:auto}.inline-edit-row fieldset label span.title,.inline-edit-row fieldset.inline-edit-date legend{display:block;float:left;width:6em;line-height:2.5}#posts-filter fieldset.inline-edit-date legend{padding:0}.inline-edit-row fieldset .timestamp-wrap,.inline-edit-row fieldset label span.input-text-wrap{display:block;margin-left:6em}.quick-edit-row-post fieldset.inline-edit-col-right label span.title{width:auto;padding-right:.5em}.inline-edit-row .inline-edit-or{margin:.2em 6px .2em 0;line-height:2.5}.inline-edit-row .input-text-wrap input[type=text]{width:100%}.inline-edit-row fieldset label input[type=checkbox]{vertical-align:middle}.inline-edit-row fieldset label textarea{width:100%;height:4em;vertical-align:top}#wpbody-content .bulk-edit-row fieldset .inline-edit-group label{max-width:50%}#wpbody-content .quick-edit-row fieldset .inline-edit-group label.alignleft:first-child{margin-right:.5em}.inline-edit-col-right .input-text-wrap input.inline-edit-menu-order-input{width:6em}.inline-edit-row .inline-edit-legend{text-transform:uppercase}.inline-edit-row fieldset .inline-edit-date{float:left}.inline-edit-row fieldset input[name=aa],.inline-edit-row fieldset input[name=hh],.inline-edit-row fieldset input[name=jj],.inline-edit-row fieldset input[name=mn]{vertical-align:middle;text-align:center;padding:0 4px}.inline-edit-row fieldset label input.inline-edit-password-input{width:8em}#bulk-titles-list,#bulk-titles-list li,.inline-edit-row fieldset ul.cat-checklist input,.inline-edit-row fieldset ul.cat-checklist li{margin:0;position:relative}.inline-edit-row fieldset ul.cat-checklist input{margin-top:-1px;margin-left:3px}.inline-edit-row fieldset label input.inline-edit-menu-order-input{width:3em}.inline-edit-row fieldset label input.inline-edit-slug-input{width:75%}.inline-edit-row #post_parent,.inline-edit-row select[name=page_template]{max-width:80%}.quick-edit-row-post fieldset label.inline-edit-status{float:left}#bulk-titles,ul.cat-checklist{height:14em;border:1px solid #ddd;margin:0 0 5px;padding:.2em 5px;overflow-y:scroll}ul.cat-checklist input[name="post_category[]"]:indeterminate::before{content:'';border-top:2px solid grey;width:65%;height:2px;position:absolute;top:calc(50% + 1px);left:50%;transform:translate(-50%,-50%)}#bulk-titles .ntdelbutton,#bulk-titles .ntdeltitle,.inline-edit-row fieldset ul.cat-checklist label{display:inline-block;margin:0;padding:3px 0;line-height:20px;vertical-align:top}#bulk-titles .ntdelitem{padding-left:23px}#bulk-titles .ntdelbutton{width:26px;height:26px;margin:0 0 0 -26px;text-align:center;border-radius:3px}#bulk-titles .ntdelbutton:before{display:inline-block;vertical-align:top}#bulk-titles .ntdelbutton:focus{box-shadow:0 0 0 2px #3582c4;outline:2px solid transparent;outline-offset:0}.plugins tbody,.plugins tbody th.check-column{padding:8px 0 0 2px}.plugins tbody th.check-column input[type=checkbox]{margin-top:4px}.updates-table .plugin-title p{margin-top:0}.plugins .inactive th.check-column,.plugins tfoot td.check-column,.plugins thead td.check-column{padding-left:6px}.plugins,.plugins td,.plugins th{color:#000}.plugins tr{background:#fff}.plugins p{margin:0 4px;padding:0}.plugins .desc p{margin:0 0 8px}.plugins td.desc{line-height:1.5}.plugins .desc ol,.plugins .desc ul{margin:0 0 0 2em}.plugins .desc ul{list-style-type:disc}.plugins .row-actions{font-size:13px;padding:0}.plugins .active td,.plugins .active th,.plugins .inactive td,.plugins .inactive th{padding:10px 9px}.plugins .active td,.plugins .active th{background-color:#f0f6fc}.plugins .update td,.plugins .update th{border-bottom:0}.plugin-install #the-list td,.plugins .active td,.plugins .active th,.plugins .inactive td,.plugins .inactive th,.upgrade .plugins td,.upgrade .plugins th{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugins tr.active+tr.inactive td,.plugins tr.active+tr.inactive th,.plugins tr.active.plugin-update-tr+tr.inactive td,.plugins tr.active.plugin-update-tr+tr.inactive th{border-top:1px solid rgba(0,0,0,.03);box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #dcdcde}.plugins .update td,.plugins .update th,.plugins .updated td,.plugins .updated th,.plugins tr.active+tr.inactive.update td,.plugins tr.active+tr.inactive.update th,.plugins tr.active+tr.inactive.updated td,.plugins tr.active+tr.inactive.updated th,.upgrade .plugins tr:last-of-type td,.upgrade .plugins tr:last-of-type th{box-shadow:none}.plugin-update-tr.active td,.plugins .active th.check-column{border-left:4px solid #72aee6}.wp-list-table.plugins .plugin-title,.wp-list-table.plugins .theme-title{padding-right:12px;white-space:nowrap}.plugins .plugin-title .dashicons,.plugins .plugin-title img{float:left;padding:0 10px 0 0;width:64px;height:64px}.plugins .plugin-title .dashicons:before{padding:2px;background-color:#f0f0f1;box-shadow:inset 0 0 10px rgba(167,170,173,.15);font-size:60px;color:#c3c4c7}#update-themes-table .plugin-title .dashicons,#update-themes-table .plugin-title img{width:85px}.plugins .column-auto-updates{width:14.2em}.plugins .inactive .plugin-title strong{font-weight:400}.plugins .row-actions,.plugins .second{padding:0 0 5px}.plugins .row-actions{white-space:normal;min-width:12em}.plugins .update .row-actions,.plugins .update .second,.plugins .updated .row-actions,.plugins .updated .second{padding-bottom:0}.plugins-php .widefat tfoot td,.plugins-php .widefat tfoot th{border-top-style:solid;border-top-width:1px}.plugins .plugin-update-tr .plugin-update{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);overflow:hidden;padding:0}.plugins .plugin-update-tr .notice,.plugins .plugin-update-tr div[class=update-message]{margin:5px 20px 15px 40px}.plugins .notice p{margin:.5em 0}.plugins .plugin-description a,.plugins .plugin-update a,.updates-table .plugin-title a{text-decoration:underline}.plugins tr.paused th.check-column{border-left:4px solid #b32d2e}.plugins tr.paused td,.plugins tr.paused th{background-color:#f6f7f7}.plugins .paused .dashicons-warning,.plugins tr.paused .plugin-title{color:#b32d2e}.plugins .paused .error-display code,.plugins .paused .error-display p{font-size:90%;color:rgba(0,0,0,.7)}.plugins .resume-link{color:#b32d2e}.plugin-card .update-now:before{color:#d63638;content:"\f463";display:inline-block;font:normal 20px/1 dashicons;margin:-3px 5px 0 -2px;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.plugin-card .updating-message:before{content:"\f463";animation:rotation 2s infinite linear}@keyframes rotation{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}.plugin-card .updated-message:before{color:#68de7c;content:"\f147"}.plugin-install-php #the-list{display:flex;flex-wrap:wrap}.plugin-install-php .plugin-card{display:flex;flex-direction:column;justify-content:space-between}.plugin-install-php h2{clear:both}.plugin-install-php h3{margin:2.5em 0 8px}.plugin-install-php .wp-filter{margin-bottom:0}.plugin-group{overflow:hidden;margin-top:1.5em}.plugin-group h3{margin-top:0}.plugin-card{float:left;margin:0 8px 16px;width:48.5%;width:calc(50% - 8px);background-color:#fff;border:1px solid #dcdcde;box-sizing:border-box}.plugin-card:nth-child(odd){clear:both;margin-left:0}.plugin-card:nth-child(2n){margin-right:0}@media screen and (min-width:1600px) and (max-width:2299px){.plugin-card{width:30%;width:calc(33.1% - 8px)}.plugin-card:nth-child(odd){clear:none;margin-left:8px}.plugin-card:nth-child(2n){margin-right:8px}.plugin-card:nth-child(3n+1){clear:both;margin-left:0}.plugin-card:nth-child(3n){margin-right:0}}@media screen and (min-width:2300px){.plugin-card{width:25%;width:calc(25% - 12px)}.plugin-card:nth-child(odd){clear:none;margin-left:8px}.plugin-card:nth-child(2n){margin-right:8px}.plugin-card:nth-child(4n+1){clear:both;margin-left:0}.plugin-card:nth-child(4n){margin-right:0}}.plugin-card-top{position:relative;padding:20px 20px 10px;min-height:135px}.plugin-action-buttons,div.action-links{margin:0}.plugin-card h3{margin:0 12px 12px 0;font-size:18px;line-height:1.3}.plugin-card .desc{margin-inline:0}.plugin-card .desc>p,.plugin-card .name{margin-left:148px}@media (min-width:1101px){.plugin-card .desc>p,.plugin-card .name{margin-right:128px}}@media (min-width:481px) and (max-width:781px){.plugin-card .desc>p,.plugin-card .name{margin-right:128px}}.plugin-card .column-description{display:flex;flex-direction:column;justify-content:flex-start}.plugin-card .column-description>p{margin-top:0}.plugin-card .column-description p:empty{display:none}.plugin-card .notice.plugin-dependencies{margin:auto 20px 20px;padding:15px}.plugin-card .plugin-dependencies-explainer-text{margin-block:0}.plugin-card .plugin-dependency{align-items:center;display:flex;flex-wrap:wrap;margin-top:.5em;column-gap:1%;row-gap:.5em}.plugin-card .plugin-dependency:last-child,.plugin-card .plugin-dependency:nth-child(2){margin-top:1em}.plugin-card .plugin-dependency-name{flex-basis:74%}.plugin-card .plugin-dependency .more-details-link{margin-left:auto}.rtl .plugin-card .plugin-dependency .more-details-link{margin-right:auto}@media (max-width:939px){.plugin-card .plugin-dependency-name{flex-basis:69%}}.plugins #the-list .required-by,.plugins #the-list .requires{margin-top:1em}.plugin-card .action-links{position:absolute;top:20px;right:20px;width:120px}.plugin-action-buttons{clear:right;float:right;margin-bottom:1em;text-align:right}.plugin-action-buttons li{margin-bottom:10px}.plugin-card-bottom{clear:both;padding:12px 20px;background-color:#f6f7f7;border-top:1px solid #dcdcde;overflow:hidden}.plugin-card-bottom .star-rating{display:inline}.plugin-card-update-failed .update-now{font-weight:600}.plugin-card-update-failed .notice-error{margin:0;padding-left:16px;box-shadow:0 -1px 0 #dcdcde}.plugin-card-update-failed .plugin-card-bottom{display:none}.plugin-card .column-rating{line-height:1.76923076}.plugin-card .column-rating,.plugin-card .column-updated{margin-bottom:4px}.plugin-card .column-downloaded,.plugin-card .column-rating{float:left;clear:left;max-width:180px}.plugin-card .column-compatibility,.plugin-card .column-updated{text-align:right;float:right;clear:right;width:65%;width:calc(100% - 180px)}.plugin-card .column-compatibility span:before{font:normal 20px/.5 dashicons;speak:never;display:inline-block;padding:0;top:4px;left:-2px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#3c434a}.plugin-card .column-compatibility .compatibility-incompatible:before{content:"\f158";color:#d63638}.plugin-card .column-compatibility .compatibility-compatible:before{content:"\f147";color:#007017}.plugin-card .notice{margin:20px 20px 0}.plugin-icon{position:absolute;top:20px;left:20px;width:128px;height:128px;margin:0 20px 20px 0}.no-plugin-results{color:#646970;font-size:18px;font-style:normal;margin:0;padding:100px 0 0;width:100%;text-align:center}.wp-list-table .site-archived,.wp-list-table .site-deleted,.wp-list-table tr.site-archived,.wp-list-table tr.site-deleted{background:#fcf0f1}.wp-list-table .site-mature,.wp-list-table .site-spammed,.wp-list-table tr.site-mature,.wp-list-table tr.site-spammed{background:#fcf9e8}.sites.fixed .column-lastupdated,.sites.fixed .column-registered{width:20%}.sites.fixed .column-users{width:80px}@media screen and (max-width:1100px) and (min-width:782px),(max-width:480px){.plugin-card .action-links{position:static;margin-left:148px;width:auto}.plugin-action-buttons{float:none;margin:1em 0 0;text-align:left}.plugin-action-buttons li{display:inline-block;vertical-align:middle}.plugin-action-buttons li .button{margin-right:20px}.plugin-card h3{margin-right:24px}.plugin-card .desc,.plugin-card .name{margin-right:0}.plugin-card .desc p:first-of-type{margin-top:0}}@media screen and (max-width:782px){.tablenav{height:auto}.tablenav.top{margin:20px 0 5px}.tablenav.bottom{position:relative;margin-top:15px}.tablenav br{display:none}.tablenav br.clear{display:block}.tablenav .view-switch,.tablenav.top .actions{display:none}.view-switch a{width:36px;height:36px;line-height:2.53846153}.tablenav.top .displaying-num{display:none}.tablenav.bottom .displaying-num{position:absolute;right:0;top:11px;margin:0;font-size:14px}.tablenav .tablenav-pages{width:100%;text-align:center;margin:0 0 25px}.tablenav.bottom .tablenav-pages{margin-top:25px}.tablenav.top .tablenav-pages.one-page{display:none}.tablenav.bottom .actions select{margin-bottom:5px}.tablenav.bottom .actions.alignleft+.actions.alignleft{clear:left;margin-top:10px}.tablenav.bottom .tablenav-pages.one-page{margin-top:15px;height:0}.tablenav-pages .pagination-links{font-size:16px}.tablenav .tablenav-pages .button,.tablenav .tablenav-pages .tablenav-pages-navspan{min-width:44px;padding:12px 8px;font-size:18px;line-height:1}.tablenav-pages .pagination-links .current-page{min-width:44px;padding:12px 6px;font-size:16px;line-height:1.125}.form-wrap>p{display:none}.wp-list-table th.column-primary~th,.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column){display:none}.wp-list-table thead th.column-primary{width:100%}.wp-list-table tr th.check-column{display:table-cell}.wp-list-table .check-column{width:2.5em}.wp-list-table .column-primary .toggle-row{display:block}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column){position:relative;clear:both;width:auto!important}.wp-list-table td.column-primary{padding-right:50px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column){padding:3px 8px 3px 35%}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before{position:absolute;left:10px;display:block;overflow:hidden;width:32%;content:attr(data-colname);white-space:nowrap;text-overflow:ellipsis}.wp-list-table .is-expanded td:not(.hidden){display:block!important;overflow:hidden}.column-posts,.widefat .num{text-align:left}#comments-form .fixed .column-author,#commentsdiv .fixed .column-author{display:none!important}.fixed .column-comment .comment-author{display:block}.fixed .column-author.hidden~.column-comment .comment-author{display:none}#the-comment-list .is-expanded td{box-shadow:none}#the-comment-list .is-expanded td:last-child{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.post-com-count .screen-reader-text{position:static;-webkit-clip-path:none;clip-path:none;width:auto;height:auto;margin:0}.column-comments .post-com-count-approved:after,.column-comments .post-com-count-no-comments:after,.column-response .post-com-count-approved:after,.column-response .post-com-count-no-comments:after{content:none}.column-comments .post-com-count [aria-hidden=true],.column-response .post-com-count [aria-hidden=true]{display:none}.column-comments .post-com-count-wrapper,.column-response .post-com-count-wrapper{white-space:normal}.column-comments .post-com-count-wrapper>a,.column-response .post-com-count-wrapper>a{display:block}.column-comments .post-com-count-approved,.column-comments .post-com-count-no-comments,.column-response .post-com-count-approved,.column-response .post-com-count-no-comments{margin-top:0;margin-right:.5em}.column-comments .post-com-count-pending,.column-response .post-com-count-pending{position:static;height:auto;min-width:0;padding:0;border:none;border-radius:0;background:0 0;color:#b32d2e;font-size:inherit;line-height:inherit;text-align:left}.column-comments .post-com-count-pending:hover,.column-response .post-com-count-pending:hover{color:#d63638}.widefat tfoot td.check-column,.widefat thead td.check-column{padding-top:10px}.row-actions{margin-left:-8px;margin-right:-8px;padding-top:4px}body:not(.plugins-php) .row-actions{display:flex;flex-wrap:wrap;gap:8px;color:transparent}.row-actions span .button-link,.row-actions span a{display:inline-block;padding:4px 8px;line-height:1.5}.row-actions span.approve:before,.row-actions span.unapprove:before{content:"| "}#wpbody-content .bulk-edit-row .inline-edit-col-bottom,#wpbody-content .bulk-edit-row .inline-edit-col-left,#wpbody-content .bulk-edit-row-page .inline-edit-col-right,#wpbody-content .bulk-edit-row-post .inline-edit-col-right,#wpbody-content .inline-edit-row-post .inline-edit-col-center,#wpbody-content .quick-edit-row-page .inline-edit-col-left,#wpbody-content .quick-edit-row-page .inline-edit-col-right,#wpbody-content .quick-edit-row-post .inline-edit-col-left,#wpbody-content .quick-edit-row-post .inline-edit-col-right{float:none;width:100%;padding:0}#the-list .inline-edit-row .inline-edit-legend,.inline-edit-row span.title{font-size:16px}.inline-edit-row p.howto{font-size:14px}#wpbody-content .inline-edit-row-page .inline-edit-col-right{margin-top:0}#wpbody-content .bulk-edit-row fieldset .inline-edit-col label,#wpbody-content .bulk-edit-row fieldset .inline-edit-group label,#wpbody-content .quick-edit-row fieldset .inline-edit-col label,#wpbody-content .quick-edit-row fieldset .inline-edit-group label{max-width:none;float:none;margin-bottom:5px}#wpbody .bulk-edit-row fieldset select{display:block;width:100%;max-width:none;box-sizing:border-box}.inline-edit-row fieldset input[name=aa],.inline-edit-row fieldset input[name=hh],.inline-edit-row fieldset input[name=jj],.inline-edit-row fieldset input[name=mn]{font-size:16px;line-height:2;padding:3px 4px}#bulk-titles .ntdelbutton,#bulk-titles .ntdeltitle,.inline-edit-row fieldset ul.cat-checklist label{padding:6px 0;font-size:16px;line-height:28px}#bulk-titles .ntdelitem{padding-left:37px}#bulk-titles .ntdelbutton{width:40px;height:40px;margin:0 0 0 -40px;overflow:hidden}#bulk-titles .ntdelbutton:before{font-size:20px;line-height:28px}.inline-edit-row fieldset label span.title,.inline-edit-row fieldset.inline-edit-date legend{float:none}.inline-edit-row fieldset .inline-edit-col label.inline-edit-tags{padding:0}.inline-edit-row fieldset .timestamp-wrap,.inline-edit-row fieldset label span.input-text-wrap{margin-left:0}.inline-edit-row .inline-edit-or{margin:0 6px 0 0}#commentsdiv #edithead .inside,#edithead .inside{float:none;text-align:left;padding:3px 5px}#commentsdiv #edithead .inside input,#edithead .inside input{width:100%}#edithead label{display:block}#wpbody-content .updates-table .plugin-title{width:auto;white-space:normal}.link-manager-php #posts-filter{margin-top:25px}.link-manager-php .tablenav.bottom{overflow:hidden}.comments-box .toggle-row,.wp-list-table.plugins .toggle-row{display:none}#wpbody-content .wp-list-table.plugins td{display:block;width:auto;padding:10px 9px}#wpbody-content .wp-list-table.plugins .no-items td,#wpbody-content .wp-list-table.plugins .plugin-deleted-tr td{display:table-cell}#wpbody-content .wp-list-table.plugins .desc.hidden{display:none}#wpbody-content .wp-list-table.plugins .column-description{padding-top:2px}#wpbody-content .wp-list-table.plugins .plugin-title,#wpbody-content .wp-list-table.plugins .theme-title{padding-right:12px;white-space:normal}.wp-list-table.plugins .plugin-title,.wp-list-table.plugins .theme-title{padding-top:13px;padding-bottom:4px}.plugins #the-list .update td,.plugins #the-list .update th,.plugins #the-list tr>td:not(:last-child),.wp-list-table.plugins #the-list .theme-title{box-shadow:none;border-top:none}.plugins #the-list tr td{border-top:none}.plugins tbody{padding:1px 0 0}.plugins .plugin-update-tr:before,.plugins tr.active+tr.inactive td.column-description,.plugins tr.active+tr.inactive th.check-column{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugins tr.active+tr.inactive td,.plugins tr.active+tr.inactive th.check-column{border-top:none}.plugins .plugin-update-tr:before{content:"";display:table-cell}.plugins #the-list .plugin-update-tr .plugin-update{border-left:none}.plugin-update-tr .update-message{margin-left:0}.plugins .active.update+.plugin-update-tr:before,.plugins .active.updated+.plugin-update-tr:before{background-color:#f0f6fc;border-left:4px solid #72aee6}.plugins .plugin-update-tr .update-message{margin-left:0}.wp-list-table.plugins .plugin-title strong,.wp-list-table.plugins .theme-title strong{font-size:1.4em;line-height:1.5}.plugins tbody th.check-column{padding:8px 0 0 5px}.plugins .inactive th.check-column,.plugins tfoot td.check-column,.plugins thead td.check-column{padding-left:9px}table.plugin-install .column-description,table.plugin-install .column-name,table.plugin-install .column-rating,table.plugin-install .column-version{display:block;width:auto}table.plugin-install th.column-description,table.plugin-install th.column-name,table.plugin-install th.column-rating,table.plugin-install th.column-version{display:none}table.plugin-install td.column-name strong{font-size:1.4em;line-height:1.6em}table.plugin-install #the-list td{box-shadow:none}table.plugin-install #the-list tr{display:block;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugin-card{margin-left:0;margin-right:0;width:100%}table.media .column-title .has-media-icon~.row-actions{margin-left:0;clear:both}}@media screen and (max-width:480px){.tablenav-pages .current-page{margin:0}.tablenav.bottom .displaying-num{position:relative;top:0;display:block;text-align:right;padding-bottom:.5em}.tablenav.bottom .tablenav-pages.one-page{height:auto}.tablenav-pages .tablenav-paging-text{float:left;width:100%;padding-top:.5em}} \ No newline at end of file
+.response-links{display:block;margin-bottom:1em}.response-links a{display:block}.response-links a.comments-edit-item-link{font-weight:600}.response-links a.comments-view-item-link{font-size:12px}.post-com-count-wrapper strong{font-weight:400}.comments-view-item-link{display:inline-block;clear:both}.column-comments .post-com-count-wrapper,.column-response .post-com-count-wrapper{white-space:nowrap;word-wrap:normal}.column-comments .post-com-count,.column-response .post-com-count{display:inline-block;vertical-align:top}.column-comments .post-com-count-approved,.column-comments .post-com-count-no-comments,.column-response .post-com-count-approved,.column-response .post-com-count-no-comments{margin-top:5px}.column-comments .comment-count-approved,.column-comments .comment-count-no-comments,.column-response .comment-count-approved,.column-response .comment-count-no-comments{box-sizing:border-box;display:block;padding:0 8px;min-width:24px;height:2em;border-radius:5px;background-color:#646970;color:#fff;font-size:11px;line-height:1.90909090;text-align:center}.column-comments .post-com-count-approved:after,.column-comments .post-com-count-no-comments:after,.column-response .post-com-count-approved:after,.column-response .post-com-count-no-comments:after{content:"";display:block;margin-left:8px;width:0;height:0;border-top:5px solid #646970;border-right:5px solid transparent}.column-comments a.post-com-count-approved:focus .comment-count-approved,.column-comments a.post-com-count-approved:hover .comment-count-approved,.column-response a.post-com-count-approved:focus .comment-count-approved,.column-response a.post-com-count-approved:hover .comment-count-approved{background:#2271b1}.column-comments a.post-com-count-approved:focus:after,.column-comments a.post-com-count-approved:hover:after,.column-response a.post-com-count-approved:focus:after,.column-response a.post-com-count-approved:hover:after{border-top-color:#2271b1}.column-comments .post-com-count-pending,.column-response .post-com-count-pending{position:relative;left:-3px;padding:0 5px;min-width:7px;height:17px;border:2px solid #fff;border-radius:11px;background:#d63638;color:#fff;font-size:9px;line-height:1.88888888;text-align:center}.column-comments .post-com-count-no-pending,.column-response .post-com-count-no-pending{display:none}.commentlist li{padding:1em 1em .2em;margin:0;border-bottom:1px solid #c3c4c7}.commentlist li li{border-bottom:0;padding:0}.commentlist p{padding:0;margin:0 0 .8em}#submitted-on,.submitted-on{color:#50575e}#replyrow td{padding:2px}#replysubmit{margin:0;padding:5px 7px 10px;overflow:hidden}#replysubmit .reply-submit-buttons{margin-bottom:0}#replysubmit .button{margin-right:5px}#replysubmit .spinner{float:none;margin:-4px 0 0}#replyrow.inline-edit-row fieldset.comment-reply{font-size:inherit;line-height:inherit}#replyrow legend{margin:0;padding:.2em 5px 0;font-size:13px;line-height:1.4;font-weight:600}#replyrow.inline-edit-row label{display:inline;vertical-align:baseline;line-height:inherit}#commentsdiv #edithead .inside,#edithead .inside{float:left;padding:3px 0 2px 5px;margin:0;text-align:center}#edithead .inside input{width:180px}#edithead label{padding:2px 0}#replycontainer{padding:5px}#replycontent{height:120px;box-shadow:none}#replyerror{border-color:#dcdcde;background-color:#f6f7f7}.commentlist .avatar{vertical-align:text-top}#the-comment-list div.undo,#the-comment-list tr.undo{background-color:#f6f7f7}#the-comment-list .unapproved td,#the-comment-list .unapproved th{background-color:#fcf9e8}#the-comment-list .unapproved th.check-column{border-left:4px solid #d63638}#the-comment-list .unapproved th.check-column input{margin-left:4px}#the-comment-list .approve a{color:#007017}#the-comment-list .unapprove a{color:#996800}#the-comment-list td,#the-comment-list th{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}#the-comment-list tr:last-child td,#the-comment-list tr:last-child th{box-shadow:none}#the-comment-list tr.unapproved+tr.approved td,#the-comment-list tr.unapproved+tr.approved th{border-top:1px solid rgba(0,0,0,.03)}.vim-current,.vim-current td,.vim-current th{background-color:#f0f6fc!important}th .comment-grey-bubble{width:16px;position:relative;top:2px}th .comment-grey-bubble:before{content:"\f101";font:normal 20px/.5 dashicons;speak:never;display:inline-block;padding:0;top:4px;left:-4px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#3c434a}table.fixed{table-layout:fixed}.fixed .column-rating,.fixed .column-visible{width:8%}.fixed .column-author,.fixed .column-format,.fixed .column-links,.fixed .column-parent,.fixed .column-posts{width:10%}.fixed .column-date{width:14%}.column-date span[title]{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.fixed .column-posts{width:74px}.fixed .column-posts,.fixed .column-role{-webkit-hyphens:auto;hyphens:auto}.fixed .column-comment .comment-author{display:none}.fixed .column-categories,.fixed .column-rel,.fixed .column-response,.fixed .column-role,.fixed .column-tags{width:15%}.fixed .column-slug{width:25%}.fixed .column-locations{width:35%}.fixed .column-comments{width:5.5em;text-align:left}.fixed .column-comments .vers{padding-left:3px}td.column-title strong,td.plugin-title strong{display:block;margin-bottom:.2em;font-size:14px}td.column-title p,td.plugin-title p{margin:6px 0}table.media .column-title .media-icon{float:left;min-height:60px;margin:0 9px 0 0}table.media .column-title .media-icon img{max-width:60px;height:auto;vertical-align:top}table.media .column-title .has-media-icon~.row-actions{margin-left:70px}table.media .column-title .filename{margin-bottom:.2em}.media .row-actions .copy-to-clipboard-container{display:inline;position:relative}.media .row-actions .copy-to-clipboard-container .success{position:absolute;left:50%;transform:translate(-50%,-100%);background:#000;color:#fff;border-radius:5px;margin:0;padding:2px 5px}.wp-list-table a{transition:none}#the-list tr:last-child td,#the-list tr:last-child th{border-bottom:none!important;box-shadow:none}#comments-form .fixed .column-author{width:20%}#commentsdiv.postbox .inside{margin:0;padding:0}#commentsdiv .inside .row-actions{line-height:1.38461538}#commentsdiv .inside .column-author{width:25%}#commentsdiv .column-comment p{margin:.6em 0;padding:0}#commentsdiv #replyrow td{padding:0}#commentsdiv p{padding:8px 10px;margin:0}#commentsdiv .comments-box{border:0 none}#commentsdiv .comments-box thead td,#commentsdiv .comments-box thead th{background:0 0;padding:0 7px 4px}#commentsdiv .comments-box tr:last-child td{border-bottom:0 none}#commentsdiv #edithead .inside input{width:160px}.sorting-indicators{display:grid}.sorting-indicator{display:block;width:10px;height:4px;margin-top:4px;margin-left:7px}.sorting-indicator:before{font:normal 20px/1 dashicons;speak:never;display:inline-block;padding:0;top:-4px;left:-8px;line-height:.5;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#a7aaad}.sorting-indicator.asc:before{content:"\f142"}.sorting-indicator.desc:before{content:"\f140"}th.sorted.desc .sorting-indicator.desc:before{color:#1d2327}th.sorted.asc .sorting-indicator.asc:before{color:#1d2327}th.sorted.asc a:focus .sorting-indicator.asc:before,th.sorted.asc:hover .sorting-indicator.asc:before,th.sorted.desc a:focus .sorting-indicator.desc:before,th.sorted.desc:hover .sorting-indicator.desc:before{color:#a7aaad}th.sorted.asc a:focus .sorting-indicator.desc:before,th.sorted.asc:hover .sorting-indicator.desc:before,th.sorted.desc a:focus .sorting-indicator.asc:before,th.sorted.desc:hover .sorting-indicator.asc:before{color:#1d2327}.wp-list-table .toggle-row{position:absolute;right:8px;top:10px;display:none;padding:0;width:40px;height:40px;border:none;outline:0;background:0 0}.wp-list-table .toggle-row:hover{cursor:pointer}.wp-list-table .toggle-row:focus:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.wp-list-table .toggle-row:active{box-shadow:none}.wp-list-table .toggle-row:before{position:absolute;top:-5px;left:10px;border-radius:50%;display:block;padding:1px 2px 1px 0;color:#3c434a;content:"\f140";font:normal 20px/1 dashicons;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;speak:never}.wp-list-table .is-expanded .toggle-row:before{content:"\f142"}.check-column{position:relative}.check-column label{box-sizing:border-box;width:100%;height:100%;display:block;position:absolute;top:0;left:0}.check-column input{position:relative;z-index:1}.check-column .label-covers-full-cell:hover+input:not(:disabled){box-shadow:0 0 0 1px #2271b1}.check-column input:hover+label,.check-column label:hover{background:rgba(0,0,0,.05)}.locked-indicator{display:none;margin-left:6px;height:20px;width:16px}.locked-indicator-icon:before{color:#8c8f94;content:"\f160";display:inline-block;font:normal 20px/1 dashicons;speak:never;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.locked-info{display:none;margin-top:4px}.locked-text{vertical-align:top}.wp-locked .locked-indicator,.wp-locked .locked-info{display:block}tr.wp-locked .check-column input[type=checkbox],tr.wp-locked .check-column label,tr.wp-locked .row-actions .inline,tr.wp-locked .row-actions .trash{display:none}#menu-locations-wrap .widefat{width:60%}.widefat th.sortable,.widefat th.sorted{padding:0}th.sortable a,th.sorted a{display:block;overflow:hidden;padding:8px}th.sortable a:focus,th.sorted a:focus{box-shadow:inset 0 0 0 2px #2271b1;outline:2px solid transparent}th.sortable a span,th.sorted a span{float:left;cursor:pointer}.tablenav-pages .current-page{margin:0 2px 0 0;font-size:13px;text-align:center}.tablenav .total-pages{margin-right:2px}.tablenav #table-paging{margin-left:2px}.tablenav{clear:both;height:30px;margin:6px 0 4px;padding-top:5px;vertical-align:middle}.tablenav.themes{max-width:98%}.tablenav .tablenav-pages{float:right;margin:0 0 9px}.tablenav .no-pages,.tablenav .one-page .pagination-links{display:none}.tablenav .tablenav-pages .button,.tablenav .tablenav-pages .tablenav-pages-navspan{display:inline-block;vertical-align:baseline;min-width:30px;min-height:30px;margin:0;padding:0 4px;font-size:16px;line-height:1.625;text-align:center}.tablenav .displaying-num{margin-right:7px}.tablenav .one-page .displaying-num{display:inline-block;margin:5px 0}.tablenav .actions{padding:0 8px 0 0}.wp-filter .actions{display:inline-block;vertical-align:middle}.tablenav .delete{margin-right:20px}.tablenav .view-switch{float:right;margin:0 5px;padding-top:3px}.wp-filter .view-switch{display:inline-block;vertical-align:middle;padding:12px 0;margin:0 8px 0 2px}.media-toolbar.wp-filter .view-switch{margin:0 12px 0 2px}.view-switch a{float:left;width:28px;height:28px;text-align:center;line-height:1.84615384;text-decoration:none}.view-switch a:before{color:#c3c4c7;display:inline-block;font:normal 20px/1 dashicons;speak:never;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.view-switch a:focus:before,.view-switch a:hover:before{color:#787c82}.view-switch a.current:before{color:#2271b1}.view-switch .view-list:before{content:"\f163"}.view-switch .view-excerpt:before{content:"\f164"}.view-switch .view-grid:before{content:"\f509"}.filter{float:left;margin:-5px 0 0 10px}.filter .subsubsub{margin-left:-10px;margin-top:13px}.screen-per-page{width:4em}#posts-filter .wp-filter{margin-bottom:0}#posts-filter fieldset{float:left;margin:0 1.5ex 1em 0;padding:0}#posts-filter fieldset legend{padding:0 0 .2em 1px}p.pagenav{margin:0;display:inline}.pagenav span{font-weight:600;margin:0 6px}.row-title{font-size:14px!important;font-weight:600}.column-comment .comment-author{margin-bottom:.6em}.column-author img,.column-comment .comment-author img,.column-username img{float:left;margin-right:10px;margin-top:1px}.row-actions{color:#a7aaad;font-size:13px;padding:2px 0 0;position:relative;left:-9999em}.rtl .row-actions a{display:inline-block}.row-actions .network_active,.row-actions .network_only{color:#000}.comment-item:hover .row-actions,.mobile .row-actions,.no-js .row-actions,.row-actions.visible,tr:hover .row-actions{position:static}.row-actions-visible{padding:2px 0 0}#wpbody-content .inline-edit-row fieldset{float:left;margin:0;padding:0 12px 0 0;width:100%;box-sizing:border-box}#wpbody-content .inline-edit-row td fieldset:last-of-type{padding-right:0}tr.inline-edit-row td{padding:0;position:relative}.inline-edit-wrapper{display:flow-root;padding:0 12px;border:1px solid transparent;border-radius:4px}.inline-edit-wrapper:focus{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}#wpbody-content .quick-edit-row-post .inline-edit-col-left{width:40%}#wpbody-content .quick-edit-row-post .inline-edit-col-right{width:39%}#wpbody-content .inline-edit-row-post .inline-edit-col-center{width:20%}#wpbody-content .quick-edit-row-page .inline-edit-col-left{width:50%}#wpbody-content .bulk-edit-row-post .inline-edit-col-right,#wpbody-content .quick-edit-row-page .inline-edit-col-right{width:50%}#wpbody-content .bulk-edit-row .inline-edit-col-left{width:30%}#wpbody-content .bulk-edit-row-page .inline-edit-col-right{width:69%}#wpbody-content .bulk-edit-row .inline-edit-col-bottom{float:right;width:69%}#wpbody-content .inline-edit-row-page .inline-edit-col-right{margin-top:27px}.inline-edit-row fieldset .inline-edit-group{clear:both;line-height:2.5}.inline-edit-row .submit{display:flex;flex-wrap:wrap;align-items:center;clear:both;margin:0;padding:.5em 0 1em}.inline-edit-save.submit .button{margin-right:8px}.inline-edit-save .spinner{float:none;margin:0}.inline-edit-row .notice-error{box-sizing:border-box;min-width:100%;margin-top:1em}.inline-edit-row .notice-error .error{margin:.5em 0;padding:2px}#the-list .inline-edit-row .inline-edit-legend{margin:0;padding:.2em 0;line-height:2.5;font-weight:600}.inline-edit-row fieldset span.checkbox-title,.inline-edit-row fieldset span.title{margin:0;padding:0}.inline-edit-row fieldset label,.inline-edit-row fieldset span.inline-edit-categories-label{display:block;margin:.2em 0;line-height:2.5}.inline-edit-row fieldset.inline-edit-date label{display:inline-block;margin:0;vertical-align:baseline;line-height:2}.inline-edit-row fieldset label.inline-edit-tags{margin-top:0}.inline-edit-row fieldset label.inline-edit-tags span.title{margin:.2em 0;width:auto}.inline-edit-row fieldset label span.title,.inline-edit-row fieldset.inline-edit-date legend{display:block;float:left;width:6em;line-height:2.5}#posts-filter fieldset.inline-edit-date legend{padding:0}.inline-edit-row fieldset .timestamp-wrap,.inline-edit-row fieldset label span.input-text-wrap{display:block;margin-left:6em}.quick-edit-row-post fieldset.inline-edit-col-right label span.title{width:auto;padding-right:.5em}.inline-edit-row .inline-edit-or{margin:.2em 6px .2em 0;line-height:2.5}.inline-edit-row .input-text-wrap input[type=text]{width:100%}.inline-edit-row fieldset label input[type=checkbox]{vertical-align:middle}.inline-edit-row fieldset label textarea{width:100%;height:4em;vertical-align:top}#wpbody-content .bulk-edit-row fieldset .inline-edit-group label{max-width:50%}#wpbody-content .quick-edit-row fieldset .inline-edit-group label.alignleft:first-child{margin-right:.5em}.inline-edit-col-right .input-text-wrap input.inline-edit-menu-order-input{width:6em}.inline-edit-row .inline-edit-legend{text-transform:uppercase}.inline-edit-row fieldset .inline-edit-date{float:left}.inline-edit-row fieldset input[name=aa],.inline-edit-row fieldset input[name=hh],.inline-edit-row fieldset input[name=jj],.inline-edit-row fieldset input[name=mn]{vertical-align:middle;text-align:center;padding:0 4px}.inline-edit-row fieldset label input.inline-edit-password-input{width:8em}#bulk-titles-list,#bulk-titles-list li,.inline-edit-row fieldset ul.cat-checklist input,.inline-edit-row fieldset ul.cat-checklist li{margin:0;position:relative}.inline-edit-row fieldset ul.cat-checklist input{margin-top:-1px;margin-left:3px}.inline-edit-row fieldset label input.inline-edit-menu-order-input{width:3em}.inline-edit-row fieldset label input.inline-edit-slug-input{width:75%}.inline-edit-row #post_parent,.inline-edit-row select[name=page_template]{max-width:80%}.quick-edit-row-post fieldset label.inline-edit-status{float:left}#bulk-titles,ul.cat-checklist{height:14em;border:1px solid #ddd;margin:0 0 5px;padding:.2em 5px;overflow-y:scroll}ul.cat-checklist input[name="post_category[]"]:indeterminate::before{content:'';border-top:2px solid grey;width:65%;height:2px;position:absolute;top:calc(50% + 1px);left:50%;transform:translate(-50%,-50%)}#bulk-titles .ntdelbutton,#bulk-titles .ntdeltitle,.inline-edit-row fieldset ul.cat-checklist label{display:inline-block;margin:0;padding:3px 0;line-height:20px;vertical-align:top}#bulk-titles .ntdelitem{padding-left:23px}#bulk-titles .ntdelbutton{width:26px;height:26px;margin:0 0 0 -26px;text-align:center;border-radius:3px}#bulk-titles .ntdelbutton:before{display:inline-block;vertical-align:top}#bulk-titles .ntdelbutton:focus{box-shadow:0 0 0 2px #3582c4;outline:2px solid transparent;outline-offset:0}.plugins tbody,.plugins tbody th.check-column{padding:8px 0 0 2px}.plugins tbody th.check-column input[type=checkbox]{margin-top:4px}.updates-table .plugin-title p{margin-top:0}.plugins .inactive th.check-column,.plugins tfoot td.check-column,.plugins thead td.check-column{padding-left:6px}.plugins,.plugins td,.plugins th{color:#000}.plugins tr{background:#fff}.plugins p{margin:0 4px;padding:0}.plugins .desc p{margin:0 0 8px}.plugins td.desc{line-height:1.5}.plugins .desc ol,.plugins .desc ul{margin:0 0 0 2em}.plugins .desc ul{list-style-type:disc}.plugins .row-actions{font-size:13px;padding:0}.plugins .active td,.plugins .active th,.plugins .inactive td,.plugins .inactive th{padding:10px 9px}.plugins .active td,.plugins .active th{background-color:#f0f6fc}.plugins .update td,.plugins .update th{border-bottom:0}.plugin-install #the-list td,.plugins .active td,.plugins .active th,.plugins .inactive td,.plugins .inactive th,.upgrade .plugins td,.upgrade .plugins th{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugins tr.active+tr.inactive td,.plugins tr.active+tr.inactive th,.plugins tr.active.plugin-update-tr+tr.inactive td,.plugins tr.active.plugin-update-tr+tr.inactive th{border-top:1px solid rgba(0,0,0,.03);box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #dcdcde}.plugins .update td,.plugins .update th,.plugins .updated td,.plugins .updated th,.plugins tr.active+tr.inactive.update td,.plugins tr.active+tr.inactive.update th,.plugins tr.active+tr.inactive.updated td,.plugins tr.active+tr.inactive.updated th,.upgrade .plugins tr:last-of-type td,.upgrade .plugins tr:last-of-type th{box-shadow:none}.plugin-update-tr.active td,.plugins .active th.check-column{border-left:4px solid #72aee6}.wp-list-table.plugins .plugin-title,.wp-list-table.plugins .theme-title{padding-right:12px;white-space:nowrap}.plugins .plugin-title .dashicons,.plugins .plugin-title img{float:left;padding:0 10px 0 0;width:64px;height:64px}.plugins .plugin-title .dashicons:before{padding:2px;background-color:#f0f0f1;box-shadow:inset 0 0 10px rgba(167,170,173,.15);font-size:60px;color:#c3c4c7}#update-themes-table .plugin-title .dashicons,#update-themes-table .plugin-title img{width:85px}.plugins .column-auto-updates{width:14.2em}.plugins .inactive .plugin-title strong{font-weight:400}.plugins .row-actions,.plugins .second{padding:0 0 5px}.plugins .row-actions{white-space:normal;min-width:12em}.plugins .update .row-actions,.plugins .update .second,.plugins .updated .row-actions,.plugins .updated .second{padding-bottom:0}.plugins-php .widefat tfoot td,.plugins-php .widefat tfoot th{border-top-style:solid;border-top-width:1px}.plugins .plugin-update-tr .plugin-update{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);overflow:hidden;padding:0}.plugins .plugin-update-tr .notice,.plugins .plugin-update-tr div[class=update-message]{margin:5px 20px 15px 40px}.plugins .notice p{margin:.5em 0}.plugins .plugin-description a,.plugins .plugin-update a,.updates-table .plugin-title a{text-decoration:underline}.plugins tr.paused th.check-column{border-left:4px solid #b32d2e}.plugins tr.paused td,.plugins tr.paused th{background-color:#f6f7f7}.plugins .paused .dashicons-warning,.plugins tr.paused .plugin-title{color:#b32d2e}.plugins .paused .error-display code,.plugins .paused .error-display p{font-size:90%;color:rgba(0,0,0,.7)}.plugins .resume-link{color:#b32d2e}.plugin-card .update-now:before{color:#d63638;content:"\f463";display:inline-block;font:normal 20px/1 dashicons;margin:-3px 5px 0 -2px;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.plugin-card .updating-message:before{content:"\f463";animation:rotation 2s infinite linear}@keyframes rotation{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}.plugin-card .updated-message:before{color:#68de7c;content:"\f147"}.plugin-install-php #the-list{display:flex;flex-wrap:wrap}.plugin-install-php .plugin-card{display:flex;flex-direction:column;justify-content:space-between}.plugin-install-php h2{clear:both}.plugin-install-php h3{margin:2.5em 0 8px}.plugin-install-php .wp-filter{margin-bottom:0}.plugin-group{overflow:hidden;margin-top:1.5em}.plugin-group h3{margin-top:0}.plugin-card{float:left;margin:0 8px 16px;width:48.5%;width:calc(50% - 8px);background-color:#fff;border:1px solid #dcdcde;box-sizing:border-box}.plugin-card:nth-child(odd){clear:both;margin-left:0}.plugin-card:nth-child(2n){margin-right:0}@media screen and (min-width:1600px) and (max-width:2299px){.plugin-card{width:30%;width:calc(33.1% - 8px)}.plugin-card:nth-child(odd){clear:none;margin-left:8px}.plugin-card:nth-child(2n){margin-right:8px}.plugin-card:nth-child(3n+1){clear:both;margin-left:0}.plugin-card:nth-child(3n){margin-right:0}}@media screen and (min-width:2300px){.plugin-card{width:25%;width:calc(25% - 12px)}.plugin-card:nth-child(odd){clear:none;margin-left:8px}.plugin-card:nth-child(2n){margin-right:8px}.plugin-card:nth-child(4n+1){clear:both;margin-left:0}.plugin-card:nth-child(4n){margin-right:0}}.plugin-card-top{position:relative;padding:20px 20px 10px;min-height:135px}.plugin-action-buttons,div.action-links{margin:0}.plugin-card h3{margin:0 12px 12px 0;font-size:18px;line-height:1.3}.plugin-card .desc{margin-inline:0}.plugin-card .desc>p,.plugin-card .name{margin-left:148px}@media (min-width:1101px){.plugin-card .desc>p,.plugin-card .name{margin-right:128px}}@media (min-width:481px) and (max-width:781px){.plugin-card .desc>p,.plugin-card .name{margin-right:128px}}.plugin-card .column-description{display:flex;flex-direction:column;justify-content:flex-start}.plugin-card .column-description>p{margin-top:0}.plugin-card .column-description p:empty{display:none}.plugin-card .notice.plugin-dependencies{margin:auto 20px 20px;padding:15px}.plugin-card .plugin-dependencies-explainer-text{margin-block:0}.plugin-card .plugin-dependency{align-items:center;display:flex;flex-wrap:wrap;margin-top:.5em;column-gap:1%;row-gap:.5em}.plugin-card .plugin-dependency:last-child,.plugin-card .plugin-dependency:nth-child(2){margin-top:1em}.plugin-card .plugin-dependency-name{flex-basis:74%}.plugin-card .plugin-dependency .more-details-link{margin-left:auto}.rtl .plugin-card .plugin-dependency .more-details-link{margin-right:auto}@media (max-width:939px){.plugin-card .plugin-dependency-name{flex-basis:69%}}.plugins #the-list .required-by,.plugins #the-list .requires{margin-top:1em}.plugin-card .action-links{position:absolute;top:20px;right:20px;width:120px}.plugin-action-buttons{clear:right;float:right;margin-bottom:1em;text-align:right}.plugin-action-buttons li{margin-bottom:10px}.plugin-card-bottom{clear:both;padding:12px 20px;background-color:#f6f7f7;border-top:1px solid #dcdcde;overflow:hidden}.plugin-card-bottom .star-rating{display:inline}.plugin-card-update-failed .update-now{font-weight:600}.plugin-card-update-failed .notice-error{margin:0;padding-left:16px;box-shadow:0 -1px 0 #dcdcde}.plugin-card-update-failed .plugin-card-bottom{display:none}.plugin-card .column-rating{line-height:1.76923076}.plugin-card .column-rating,.plugin-card .column-updated{margin-bottom:4px}.plugin-card .column-downloaded,.plugin-card .column-rating{float:left;clear:left;max-width:180px}.plugin-card .column-compatibility,.plugin-card .column-updated{text-align:right;float:right;clear:right;width:65%;width:calc(100% - 180px)}.plugin-card .column-compatibility span:before{font:normal 20px/.5 dashicons;speak:never;display:inline-block;padding:0;top:4px;left:-2px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#3c434a}.plugin-card .column-compatibility .compatibility-incompatible:before{content:"\f158";color:#d63638}.plugin-card .column-compatibility .compatibility-compatible:before{content:"\f147";color:#007017}.plugin-card .notice{margin:20px 20px 0}.plugin-icon{position:absolute;top:20px;left:20px;width:128px;height:128px;margin:0 20px 20px 0}.no-plugin-results{color:#646970;font-size:18px;font-style:normal;margin:0;padding:100px 0 0;width:100%;text-align:center}.wp-list-table .site-archived,.wp-list-table .site-deleted,.wp-list-table tr.site-archived,.wp-list-table tr.site-deleted{background:#fcf0f1}.wp-list-table .site-mature,.wp-list-table .site-spammed,.wp-list-table tr.site-mature,.wp-list-table tr.site-spammed{background:#fcf9e8}.sites.fixed .column-lastupdated,.sites.fixed .column-registered{width:20%}.sites.fixed .column-users{width:80px}@media screen and (max-width:1100px) and (min-width:782px),(max-width:480px){.plugin-card .action-links{position:static;margin-left:148px;width:auto}.plugin-action-buttons{float:none;margin:1em 0 0;text-align:left}.plugin-action-buttons li{display:inline-block;vertical-align:middle}.plugin-action-buttons li .button{margin-right:20px}.plugin-card h3{margin-right:24px}.plugin-card .desc,.plugin-card .name{margin-right:0}.plugin-card .desc p:first-of-type{margin-top:0}}@media screen and (max-width:782px){.tablenav{height:auto}.tablenav.top{margin:20px 0 5px}.tablenav.bottom{position:relative;margin-top:15px}.tablenav br{display:none}.tablenav br.clear{display:block}.tablenav .view-switch,.tablenav.top .actions{display:none}.view-switch a{width:36px;height:36px;line-height:2.53846153}.tablenav.top .displaying-num{display:none}.tablenav.bottom .displaying-num{position:absolute;right:0;top:11px;margin:0;font-size:14px}.tablenav .tablenav-pages{width:100%;text-align:center;margin:0 0 25px}.tablenav.bottom .tablenav-pages{margin-top:25px}.tablenav.top .tablenav-pages.one-page{display:none}.tablenav.bottom .actions select{margin-bottom:5px}.tablenav.bottom .actions.alignleft+.actions.alignleft{clear:left;margin-top:10px}.tablenav.bottom .tablenav-pages.one-page{margin-top:15px;height:0}.tablenav-pages .pagination-links{font-size:16px}.tablenav .tablenav-pages .button,.tablenav .tablenav-pages .tablenav-pages-navspan{min-width:44px;padding:12px 8px;font-size:18px;line-height:1}.tablenav-pages .pagination-links .current-page{min-width:44px;padding:12px 6px;font-size:16px;line-height:1.125}.form-wrap>p{display:none}.wp-list-table th.column-primary~th,.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column){display:none}.wp-list-table thead th.column-primary{width:100%}.wp-list-table tr th.check-column{display:table-cell}.wp-list-table .check-column{width:2.5em}.wp-list-table .column-primary .toggle-row{display:block}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column){position:relative;clear:both;width:auto!important}.wp-list-table td.column-primary{padding-right:50px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column){padding:3px 8px 3px 35%}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before{position:absolute;left:10px;display:block;overflow:hidden;width:32%;content:attr(data-colname);white-space:nowrap;text-overflow:ellipsis}.wp-list-table .is-expanded td:not(.hidden){display:block!important;overflow:hidden}.column-posts,.widefat .num{text-align:left}#comments-form .fixed .column-author,#commentsdiv .fixed .column-author{display:none!important}.fixed .column-comment .comment-author{display:block}.fixed .column-author.hidden~.column-comment .comment-author{display:none}#the-comment-list .is-expanded td{box-shadow:none}#the-comment-list .is-expanded td:last-child{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.post-com-count .screen-reader-text{position:static;clip-path:none;width:auto;height:auto;margin:0}.column-comments .post-com-count-approved:after,.column-comments .post-com-count-no-comments:after,.column-response .post-com-count-approved:after,.column-response .post-com-count-no-comments:after{content:none}.column-comments .post-com-count [aria-hidden=true],.column-response .post-com-count [aria-hidden=true]{display:none}.column-comments .post-com-count-wrapper,.column-response .post-com-count-wrapper{white-space:normal}.column-comments .post-com-count-wrapper>a,.column-response .post-com-count-wrapper>a{display:block}.column-comments .post-com-count-approved,.column-comments .post-com-count-no-comments,.column-response .post-com-count-approved,.column-response .post-com-count-no-comments{margin-top:0;margin-right:.5em}.column-comments .post-com-count-pending,.column-response .post-com-count-pending{position:static;height:auto;min-width:0;padding:0;border:none;border-radius:0;background:0 0;color:#b32d2e;font-size:inherit;line-height:inherit;text-align:left}.column-comments .post-com-count-pending:hover,.column-response .post-com-count-pending:hover{color:#d63638}.widefat tfoot td.check-column,.widefat thead td.check-column{padding-top:10px}.row-actions{margin-left:-8px;margin-right:-8px;padding-top:4px}body:not(.plugins-php) .row-actions{display:flex;flex-wrap:wrap;gap:8px;color:transparent}.row-actions span .button-link,.row-actions span a{display:inline-block;padding:4px 8px;line-height:1.5}.row-actions span.approve:before,.row-actions span.unapprove:before{content:"| "}#wpbody-content .bulk-edit-row .inline-edit-col-bottom,#wpbody-content .bulk-edit-row .inline-edit-col-left,#wpbody-content .bulk-edit-row-page .inline-edit-col-right,#wpbody-content .bulk-edit-row-post .inline-edit-col-right,#wpbody-content .inline-edit-row-post .inline-edit-col-center,#wpbody-content .quick-edit-row-page .inline-edit-col-left,#wpbody-content .quick-edit-row-page .inline-edit-col-right,#wpbody-content .quick-edit-row-post .inline-edit-col-left,#wpbody-content .quick-edit-row-post .inline-edit-col-right{float:none;width:100%;padding:0}#the-list .inline-edit-row .inline-edit-legend,.inline-edit-row span.title{font-size:16px}.inline-edit-row p.howto{font-size:14px}#wpbody-content .inline-edit-row-page .inline-edit-col-right{margin-top:0}#wpbody-content .bulk-edit-row fieldset .inline-edit-col label,#wpbody-content .bulk-edit-row fieldset .inline-edit-group label,#wpbody-content .quick-edit-row fieldset .inline-edit-col label,#wpbody-content .quick-edit-row fieldset .inline-edit-group label{max-width:none;float:none;margin-bottom:5px}#wpbody .bulk-edit-row fieldset select{display:block;width:100%;max-width:none;box-sizing:border-box}.inline-edit-row fieldset input[name=aa],.inline-edit-row fieldset input[name=hh],.inline-edit-row fieldset input[name=jj],.inline-edit-row fieldset input[name=mn]{font-size:16px;line-height:2;padding:3px 4px}#bulk-titles .ntdelbutton,#bulk-titles .ntdeltitle,.inline-edit-row fieldset ul.cat-checklist label{padding:6px 0;font-size:16px;line-height:28px}#bulk-titles .ntdelitem{padding-left:37px}#bulk-titles .ntdelbutton{width:40px;height:40px;margin:0 0 0 -40px;overflow:hidden}#bulk-titles .ntdelbutton:before{font-size:20px;line-height:28px}.inline-edit-row fieldset label span.title,.inline-edit-row fieldset.inline-edit-date legend{float:none}.inline-edit-row fieldset .inline-edit-col label.inline-edit-tags{padding:0}.inline-edit-row fieldset .timestamp-wrap,.inline-edit-row fieldset label span.input-text-wrap{margin-left:0}.inline-edit-row .inline-edit-or{margin:0 6px 0 0}#commentsdiv #edithead .inside,#edithead .inside{float:none;text-align:left;padding:3px 5px}#commentsdiv #edithead .inside input,#edithead .inside input{width:100%}#edithead label{display:block}#wpbody-content .updates-table .plugin-title{width:auto;white-space:normal}.link-manager-php #posts-filter{margin-top:25px}.link-manager-php .tablenav.bottom{overflow:hidden}.comments-box .toggle-row,.wp-list-table.plugins .toggle-row{display:none}#wpbody-content .wp-list-table.plugins td{display:block;width:auto;padding:10px 9px}#wpbody-content .wp-list-table.plugins .no-items td,#wpbody-content .wp-list-table.plugins .plugin-deleted-tr td{display:table-cell}#wpbody-content .wp-list-table.plugins .desc.hidden{display:none}#wpbody-content .wp-list-table.plugins .column-description{padding-top:2px}#wpbody-content .wp-list-table.plugins .plugin-title,#wpbody-content .wp-list-table.plugins .theme-title{padding-right:12px;white-space:normal}.wp-list-table.plugins .plugin-title,.wp-list-table.plugins .theme-title{padding-top:13px;padding-bottom:4px}.plugins #the-list .update td,.plugins #the-list .update th,.plugins #the-list tr>td:not(:last-child),.wp-list-table.plugins #the-list .theme-title{box-shadow:none;border-top:none}.plugins #the-list tr td{border-top:none}.plugins tbody{padding:1px 0 0}.plugins .plugin-update-tr:before,.plugins tr.active+tr.inactive td.column-description,.plugins tr.active+tr.inactive th.check-column{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugins tr.active+tr.inactive td,.plugins tr.active+tr.inactive th.check-column{border-top:none}.plugins .plugin-update-tr:before{content:"";display:table-cell}.plugins #the-list .plugin-update-tr .plugin-update{border-left:none}.plugin-update-tr .update-message{margin-left:0}.plugins .active.update+.plugin-update-tr:before,.plugins .active.updated+.plugin-update-tr:before{background-color:#f0f6fc;border-left:4px solid #72aee6}.plugins .plugin-update-tr .update-message{margin-left:0}.wp-list-table.plugins .plugin-title strong,.wp-list-table.plugins .theme-title strong{font-size:1.4em;line-height:1.5}.plugins tbody th.check-column{padding:8px 0 0 5px}.plugins .inactive th.check-column,.plugins tfoot td.check-column,.plugins thead td.check-column{padding-left:9px}table.plugin-install .column-description,table.plugin-install .column-name,table.plugin-install .column-rating,table.plugin-install .column-version{display:block;width:auto}table.plugin-install th.column-description,table.plugin-install th.column-name,table.plugin-install th.column-rating,table.plugin-install th.column-version{display:none}table.plugin-install td.column-name strong{font-size:1.4em;line-height:1.6em}table.plugin-install #the-list td{box-shadow:none}table.plugin-install #the-list tr{display:block;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugin-card{margin-left:0;margin-right:0;width:100%}table.media .column-title .has-media-icon~.row-actions{margin-left:0;clear:both}}@media screen and (max-width:480px){.tablenav-pages .current-page{margin:0}.tablenav.bottom .displaying-num{position:relative;top:0;display:block;text-align:right;padding-bottom:.5em}.tablenav.bottom .tablenav-pages.one-page{height:auto}.tablenav-pages .tablenav-paging-text{float:left;width:100%;padding-top:.5em}} \ No newline at end of file
diff --git a/wp-admin/css/login-rtl.css b/wp-admin/css/login-rtl.css
index 5dfb937..7751675 100644
--- a/wp-admin/css/login-rtl.css
+++ b/wp-admin/css/login-rtl.css
@@ -142,7 +142,7 @@ p {
.login form {
margin-top: 20px;
margin-right: 0;
- padding: 26px 24px 34px;
+ padding: 26px 24px;
font-weight: 400;
overflow: hidden;
background: #fff;
@@ -409,7 +409,6 @@ body.interim-login {
.screen-reader-text span {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
- -webkit-clip-path: inset(50%);
clip-path: inset(50%);
height: 1px;
margin: -1px;
diff --git a/wp-admin/css/login-rtl.min.css b/wp-admin/css/login-rtl.min.css
index ddfa785..d4b26cf 100644
--- a/wp-admin/css/login-rtl.min.css
+++ b/wp-admin/css/login-rtl.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-body,html{height:100%;margin:0;padding:0}body{background:#f0f0f1;min-width:0;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4}a{color:#2271b1;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}a{outline:0}a:active,a:hover{color:#135e96}a:focus{color:#043959;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}p{line-height:1.5}.login .message,.login .notice,.login .success{border-right:4px solid #72aee6;padding:12px;margin-right:0;margin-bottom:20px;background-color:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);word-wrap:break-word}.login .success{border-right-color:#00a32a}.login .notice-error{border-right-color:#d63638}.login .login-error-list{list-style:none}.login .login-error-list li+li{margin-top:4px}#loginform p.submit,.login-action-lostpassword p.submit{border:none;margin:-10px 0 20px}.login *{margin:0;padding:0}.login .input::-ms-clear{display:none}.login .pw-weak{margin-bottom:15px}.login .button.wp-hide-pw{background:0 0;border:1px solid transparent;box-shadow:none;font-size:14px;line-height:2;width:2.5rem;height:2.5rem;min-width:40px;min-height:40px;margin:0;padding:5px 9px;position:absolute;left:0;top:0}.login .button.wp-hide-pw:hover{background:0 0}.login .button.wp-hide-pw:focus{background:0 0;border-color:#3582c4;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.login .button.wp-hide-pw:active{background:0 0;box-shadow:none;transform:none}.login .button.wp-hide-pw .dashicons{width:1.25rem;height:1.25rem;top:.25rem}.login .wp-pwd{position:relative}.no-js .hide-if-no-js{display:none}.login form{margin-top:20px;margin-right:0;padding:26px 24px 34px;font-weight:400;overflow:hidden;background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 3px rgba(0,0,0,.04)}.login form.shake{animation:shake .2s cubic-bezier(.19,.49,.38,.79) both;animation-iteration-count:3;transform:translateX(0)}@keyframes shake{25%{transform:translateX(20px)}75%{transform:translateX(-20px)}100%{transform:translateX(0)}}@media (prefers-reduced-motion:reduce){.login form.shake{animation:none;transform:none}}.login-action-confirm_admin_email #login{width:60vw;max-width:650px;margin-top:-2vh}@media screen and (max-width:782px){.login-action-confirm_admin_email #login{box-sizing:border-box;margin-top:0;padding-right:4vw;padding-left:4vw;width:100vw}}.login form .forgetmenot{font-weight:400;float:right;margin-bottom:0}.login .button-primary{float:left}.login .reset-pass-submit{display:flex;flex-flow:row wrap;justify-content:space-between}.login .reset-pass-submit .button{display:inline-block;float:none;margin-bottom:6px}.login .admin-email-confirm-form .submit{text-align:center}.admin-email__later{text-align:right}.login form p.admin-email__details{margin:1.1em 0}.login h1.admin-email__heading{border-bottom:1px #f0f0f1 solid;color:#50575e;font-weight:400;padding-bottom:.5em;text-align:right}.admin-email__actions div{padding-top:1.5em}.login .admin-email__actions .button-primary{float:none;margin-right:.25em;margin-left:.25em}#login form p{margin-bottom:0}#login #reg_passmail,#login form .indicator-hint{margin-bottom:16px}#login form p.submit{margin:0;padding:0}.login label{font-size:14px;line-height:1.5;display:inline-block;margin-bottom:3px}.login .forgetmenot label,.login .pw-weak label{line-height:1.5;vertical-align:baseline}.login h1{text-align:center}.login h1 a{background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);background-size:84px;background-position:center top;background-repeat:no-repeat;color:#3c434a;height:84px;font-size:20px;font-weight:400;line-height:1.3;margin:0 auto 25px;padding:0;text-decoration:none;width:84px;text-indent:-9999px;outline:0;overflow:hidden;display:block}#login{width:320px;padding:5% 0 0;margin:auto}.login #backtoblog,.login #nav{font-size:13px;padding:0 24px}.login #nav{margin:24px 0 0}#backtoblog{margin:16px 0;word-wrap:break-word}.login #backtoblog a,.login #nav a{text-decoration:none;color:#50575e}.login #backtoblog a:hover,.login #nav a:hover,.login h1 a:hover{color:#135e96}.login #backtoblog a:focus,.login #nav a:focus,.login h1 a:focus{color:#043959}.login .privacy-policy-page-link{text-align:center;width:100%;margin:3em 0 2em}.login form .input,.login input[type=password],.login input[type=text]{font-size:24px;line-height:1.33333333;width:100%;border-width:.0625rem;padding:.1875rem .3125rem;margin:0 0 16px 6px;min-height:40px;max-height:none}.login input.password-input{font-family:Consolas,Monaco,monospace}.js.login input.password-input{padding-left:2.5rem}.login form .input,.login form input[type=checkbox],.login input[type=text]{background:#fff}.js.login-action-resetpass input[type=password],.js.login-action-resetpass input[type=text],.js.login-action-rp input[type=password],.js.login-action-rp input[type=text]{margin-bottom:0}.login #pass-strength-result{font-weight:600;margin:-1px 0 16px 5px;padding:6px 5px;text-align:center;width:100%}body.interim-login{height:auto}.interim-login #login{padding:0;margin:5px auto 20px}.interim-login.login h1 a{width:auto}.interim-login #login_error,.interim-login.login .message{margin:0 0 16px}.interim-login.login form{margin:0}.screen-reader-text,.screen-reader-text span{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}input::-ms-reveal{display:none}#language-switcher{padding:0;overflow:visible;background:0 0;border:none;box-shadow:none}#language-switcher select{margin-left:.25em}.language-switcher{margin:0 auto;padding:0 0 24px;text-align:center}.language-switcher label{margin-left:.25em}.language-switcher label .dashicons{width:auto;height:auto}.login .language-switcher .button{margin-bottom:0}@media screen and (max-height:550px){#login{padding:20px 0}#language-switcher{margin-top:0}}@media screen and (max-width:782px){.interim-login input[type=checkbox]{width:1rem;height:1rem}.interim-login input[type=checkbox]:checked:before{width:1.3125rem;height:1.3125rem;margin:-.1875rem -.25rem 0 0}#language-switcher label,#language-switcher select{margin-left:0}}@media screen and (max-width:400px){.login .language-switcher .button{display:block;margin:5px auto 0}} \ No newline at end of file
+body,html{height:100%;margin:0;padding:0}body{background:#f0f0f1;min-width:0;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4}a{color:#2271b1;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}a{outline:0}a:active,a:hover{color:#135e96}a:focus{color:#043959;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}p{line-height:1.5}.login .message,.login .notice,.login .success{border-right:4px solid #72aee6;padding:12px;margin-right:0;margin-bottom:20px;background-color:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);word-wrap:break-word}.login .success{border-right-color:#00a32a}.login .notice-error{border-right-color:#d63638}.login .login-error-list{list-style:none}.login .login-error-list li+li{margin-top:4px}#loginform p.submit,.login-action-lostpassword p.submit{border:none;margin:-10px 0 20px}.login *{margin:0;padding:0}.login .input::-ms-clear{display:none}.login .pw-weak{margin-bottom:15px}.login .button.wp-hide-pw{background:0 0;border:1px solid transparent;box-shadow:none;font-size:14px;line-height:2;width:2.5rem;height:2.5rem;min-width:40px;min-height:40px;margin:0;padding:5px 9px;position:absolute;left:0;top:0}.login .button.wp-hide-pw:hover{background:0 0}.login .button.wp-hide-pw:focus{background:0 0;border-color:#3582c4;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.login .button.wp-hide-pw:active{background:0 0;box-shadow:none;transform:none}.login .button.wp-hide-pw .dashicons{width:1.25rem;height:1.25rem;top:.25rem}.login .wp-pwd{position:relative}.no-js .hide-if-no-js{display:none}.login form{margin-top:20px;margin-right:0;padding:26px 24px;font-weight:400;overflow:hidden;background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 3px rgba(0,0,0,.04)}.login form.shake{animation:shake .2s cubic-bezier(.19,.49,.38,.79) both;animation-iteration-count:3;transform:translateX(0)}@keyframes shake{25%{transform:translateX(20px)}75%{transform:translateX(-20px)}100%{transform:translateX(0)}}@media (prefers-reduced-motion:reduce){.login form.shake{animation:none;transform:none}}.login-action-confirm_admin_email #login{width:60vw;max-width:650px;margin-top:-2vh}@media screen and (max-width:782px){.login-action-confirm_admin_email #login{box-sizing:border-box;margin-top:0;padding-right:4vw;padding-left:4vw;width:100vw}}.login form .forgetmenot{font-weight:400;float:right;margin-bottom:0}.login .button-primary{float:left}.login .reset-pass-submit{display:flex;flex-flow:row wrap;justify-content:space-between}.login .reset-pass-submit .button{display:inline-block;float:none;margin-bottom:6px}.login .admin-email-confirm-form .submit{text-align:center}.admin-email__later{text-align:right}.login form p.admin-email__details{margin:1.1em 0}.login h1.admin-email__heading{border-bottom:1px #f0f0f1 solid;color:#50575e;font-weight:400;padding-bottom:.5em;text-align:right}.admin-email__actions div{padding-top:1.5em}.login .admin-email__actions .button-primary{float:none;margin-right:.25em;margin-left:.25em}#login form p{margin-bottom:0}#login #reg_passmail,#login form .indicator-hint{margin-bottom:16px}#login form p.submit{margin:0;padding:0}.login label{font-size:14px;line-height:1.5;display:inline-block;margin-bottom:3px}.login .forgetmenot label,.login .pw-weak label{line-height:1.5;vertical-align:baseline}.login h1{text-align:center}.login h1 a{background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);background-size:84px;background-position:center top;background-repeat:no-repeat;color:#3c434a;height:84px;font-size:20px;font-weight:400;line-height:1.3;margin:0 auto 25px;padding:0;text-decoration:none;width:84px;text-indent:-9999px;outline:0;overflow:hidden;display:block}#login{width:320px;padding:5% 0 0;margin:auto}.login #backtoblog,.login #nav{font-size:13px;padding:0 24px}.login #nav{margin:24px 0 0}#backtoblog{margin:16px 0;word-wrap:break-word}.login #backtoblog a,.login #nav a{text-decoration:none;color:#50575e}.login #backtoblog a:hover,.login #nav a:hover,.login h1 a:hover{color:#135e96}.login #backtoblog a:focus,.login #nav a:focus,.login h1 a:focus{color:#043959}.login .privacy-policy-page-link{text-align:center;width:100%;margin:3em 0 2em}.login form .input,.login input[type=password],.login input[type=text]{font-size:24px;line-height:1.33333333;width:100%;border-width:.0625rem;padding:.1875rem .3125rem;margin:0 0 16px 6px;min-height:40px;max-height:none}.login input.password-input{font-family:Consolas,Monaco,monospace}.js.login input.password-input{padding-left:2.5rem}.login form .input,.login form input[type=checkbox],.login input[type=text]{background:#fff}.js.login-action-resetpass input[type=password],.js.login-action-resetpass input[type=text],.js.login-action-rp input[type=password],.js.login-action-rp input[type=text]{margin-bottom:0}.login #pass-strength-result{font-weight:600;margin:-1px 0 16px 5px;padding:6px 5px;text-align:center;width:100%}body.interim-login{height:auto}.interim-login #login{padding:0;margin:5px auto 20px}.interim-login.login h1 a{width:auto}.interim-login #login_error,.interim-login.login .message{margin:0 0 16px}.interim-login.login form{margin:0}.screen-reader-text,.screen-reader-text span{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}input::-ms-reveal{display:none}#language-switcher{padding:0;overflow:visible;background:0 0;border:none;box-shadow:none}#language-switcher select{margin-left:.25em}.language-switcher{margin:0 auto;padding:0 0 24px;text-align:center}.language-switcher label{margin-left:.25em}.language-switcher label .dashicons{width:auto;height:auto}.login .language-switcher .button{margin-bottom:0}@media screen and (max-height:550px){#login{padding:20px 0}#language-switcher{margin-top:0}}@media screen and (max-width:782px){.interim-login input[type=checkbox]{width:1rem;height:1rem}.interim-login input[type=checkbox]:checked:before{width:1.3125rem;height:1.3125rem;margin:-.1875rem -.25rem 0 0}#language-switcher label,#language-switcher select{margin-left:0}}@media screen and (max-width:400px){.login .language-switcher .button{display:block;margin:5px auto 0}} \ No newline at end of file
diff --git a/wp-admin/css/login.css b/wp-admin/css/login.css
index b9f488b..22f7198 100644
--- a/wp-admin/css/login.css
+++ b/wp-admin/css/login.css
@@ -141,7 +141,7 @@ p {
.login form {
margin-top: 20px;
margin-left: 0;
- padding: 26px 24px 34px;
+ padding: 26px 24px;
font-weight: 400;
overflow: hidden;
background: #fff;
@@ -408,7 +408,6 @@ body.interim-login {
.screen-reader-text span {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
- -webkit-clip-path: inset(50%);
clip-path: inset(50%);
height: 1px;
margin: -1px;
diff --git a/wp-admin/css/login.min.css b/wp-admin/css/login.min.css
index bf406ac..3d11067 100644
--- a/wp-admin/css/login.min.css
+++ b/wp-admin/css/login.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-body,html{height:100%;margin:0;padding:0}body{background:#f0f0f1;min-width:0;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4}a{color:#2271b1;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}a{outline:0}a:active,a:hover{color:#135e96}a:focus{color:#043959;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}p{line-height:1.5}.login .message,.login .notice,.login .success{border-left:4px solid #72aee6;padding:12px;margin-left:0;margin-bottom:20px;background-color:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);word-wrap:break-word}.login .success{border-left-color:#00a32a}.login .notice-error{border-left-color:#d63638}.login .login-error-list{list-style:none}.login .login-error-list li+li{margin-top:4px}#loginform p.submit,.login-action-lostpassword p.submit{border:none;margin:-10px 0 20px}.login *{margin:0;padding:0}.login .input::-ms-clear{display:none}.login .pw-weak{margin-bottom:15px}.login .button.wp-hide-pw{background:0 0;border:1px solid transparent;box-shadow:none;font-size:14px;line-height:2;width:2.5rem;height:2.5rem;min-width:40px;min-height:40px;margin:0;padding:5px 9px;position:absolute;right:0;top:0}.login .button.wp-hide-pw:hover{background:0 0}.login .button.wp-hide-pw:focus{background:0 0;border-color:#3582c4;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.login .button.wp-hide-pw:active{background:0 0;box-shadow:none;transform:none}.login .button.wp-hide-pw .dashicons{width:1.25rem;height:1.25rem;top:.25rem}.login .wp-pwd{position:relative}.no-js .hide-if-no-js{display:none}.login form{margin-top:20px;margin-left:0;padding:26px 24px 34px;font-weight:400;overflow:hidden;background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 3px rgba(0,0,0,.04)}.login form.shake{animation:shake .2s cubic-bezier(.19,.49,.38,.79) both;animation-iteration-count:3;transform:translateX(0)}@keyframes shake{25%{transform:translateX(-20px)}75%{transform:translateX(20px)}100%{transform:translateX(0)}}@media (prefers-reduced-motion:reduce){.login form.shake{animation:none;transform:none}}.login-action-confirm_admin_email #login{width:60vw;max-width:650px;margin-top:-2vh}@media screen and (max-width:782px){.login-action-confirm_admin_email #login{box-sizing:border-box;margin-top:0;padding-left:4vw;padding-right:4vw;width:100vw}}.login form .forgetmenot{font-weight:400;float:left;margin-bottom:0}.login .button-primary{float:right}.login .reset-pass-submit{display:flex;flex-flow:row wrap;justify-content:space-between}.login .reset-pass-submit .button{display:inline-block;float:none;margin-bottom:6px}.login .admin-email-confirm-form .submit{text-align:center}.admin-email__later{text-align:left}.login form p.admin-email__details{margin:1.1em 0}.login h1.admin-email__heading{border-bottom:1px #f0f0f1 solid;color:#50575e;font-weight:400;padding-bottom:.5em;text-align:left}.admin-email__actions div{padding-top:1.5em}.login .admin-email__actions .button-primary{float:none;margin-left:.25em;margin-right:.25em}#login form p{margin-bottom:0}#login #reg_passmail,#login form .indicator-hint{margin-bottom:16px}#login form p.submit{margin:0;padding:0}.login label{font-size:14px;line-height:1.5;display:inline-block;margin-bottom:3px}.login .forgetmenot label,.login .pw-weak label{line-height:1.5;vertical-align:baseline}.login h1{text-align:center}.login h1 a{background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);background-size:84px;background-position:center top;background-repeat:no-repeat;color:#3c434a;height:84px;font-size:20px;font-weight:400;line-height:1.3;margin:0 auto 25px;padding:0;text-decoration:none;width:84px;text-indent:-9999px;outline:0;overflow:hidden;display:block}#login{width:320px;padding:5% 0 0;margin:auto}.login #backtoblog,.login #nav{font-size:13px;padding:0 24px}.login #nav{margin:24px 0 0}#backtoblog{margin:16px 0;word-wrap:break-word}.login #backtoblog a,.login #nav a{text-decoration:none;color:#50575e}.login #backtoblog a:hover,.login #nav a:hover,.login h1 a:hover{color:#135e96}.login #backtoblog a:focus,.login #nav a:focus,.login h1 a:focus{color:#043959}.login .privacy-policy-page-link{text-align:center;width:100%;margin:3em 0 2em}.login form .input,.login input[type=password],.login input[type=text]{font-size:24px;line-height:1.33333333;width:100%;border-width:.0625rem;padding:.1875rem .3125rem;margin:0 6px 16px 0;min-height:40px;max-height:none}.login input.password-input{font-family:Consolas,Monaco,monospace}.js.login input.password-input{padding-right:2.5rem}.login form .input,.login form input[type=checkbox],.login input[type=text]{background:#fff}.js.login-action-resetpass input[type=password],.js.login-action-resetpass input[type=text],.js.login-action-rp input[type=password],.js.login-action-rp input[type=text]{margin-bottom:0}.login #pass-strength-result{font-weight:600;margin:-1px 5px 16px 0;padding:6px 5px;text-align:center;width:100%}body.interim-login{height:auto}.interim-login #login{padding:0;margin:5px auto 20px}.interim-login.login h1 a{width:auto}.interim-login #login_error,.interim-login.login .message{margin:0 0 16px}.interim-login.login form{margin:0}.screen-reader-text,.screen-reader-text span{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}input::-ms-reveal{display:none}#language-switcher{padding:0;overflow:visible;background:0 0;border:none;box-shadow:none}#language-switcher select{margin-right:.25em}.language-switcher{margin:0 auto;padding:0 0 24px;text-align:center}.language-switcher label{margin-right:.25em}.language-switcher label .dashicons{width:auto;height:auto}.login .language-switcher .button{margin-bottom:0}@media screen and (max-height:550px){#login{padding:20px 0}#language-switcher{margin-top:0}}@media screen and (max-width:782px){.interim-login input[type=checkbox]{width:1rem;height:1rem}.interim-login input[type=checkbox]:checked:before{width:1.3125rem;height:1.3125rem;margin:-.1875rem 0 0 -.25rem}#language-switcher label,#language-switcher select{margin-right:0}}@media screen and (max-width:400px){.login .language-switcher .button{display:block;margin:5px auto 0}} \ No newline at end of file
+body,html{height:100%;margin:0;padding:0}body{background:#f0f0f1;min-width:0;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4}a{color:#2271b1;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}a{outline:0}a:active,a:hover{color:#135e96}a:focus{color:#043959;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}p{line-height:1.5}.login .message,.login .notice,.login .success{border-left:4px solid #72aee6;padding:12px;margin-left:0;margin-bottom:20px;background-color:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);word-wrap:break-word}.login .success{border-left-color:#00a32a}.login .notice-error{border-left-color:#d63638}.login .login-error-list{list-style:none}.login .login-error-list li+li{margin-top:4px}#loginform p.submit,.login-action-lostpassword p.submit{border:none;margin:-10px 0 20px}.login *{margin:0;padding:0}.login .input::-ms-clear{display:none}.login .pw-weak{margin-bottom:15px}.login .button.wp-hide-pw{background:0 0;border:1px solid transparent;box-shadow:none;font-size:14px;line-height:2;width:2.5rem;height:2.5rem;min-width:40px;min-height:40px;margin:0;padding:5px 9px;position:absolute;right:0;top:0}.login .button.wp-hide-pw:hover{background:0 0}.login .button.wp-hide-pw:focus{background:0 0;border-color:#3582c4;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.login .button.wp-hide-pw:active{background:0 0;box-shadow:none;transform:none}.login .button.wp-hide-pw .dashicons{width:1.25rem;height:1.25rem;top:.25rem}.login .wp-pwd{position:relative}.no-js .hide-if-no-js{display:none}.login form{margin-top:20px;margin-left:0;padding:26px 24px;font-weight:400;overflow:hidden;background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 3px rgba(0,0,0,.04)}.login form.shake{animation:shake .2s cubic-bezier(.19,.49,.38,.79) both;animation-iteration-count:3;transform:translateX(0)}@keyframes shake{25%{transform:translateX(-20px)}75%{transform:translateX(20px)}100%{transform:translateX(0)}}@media (prefers-reduced-motion:reduce){.login form.shake{animation:none;transform:none}}.login-action-confirm_admin_email #login{width:60vw;max-width:650px;margin-top:-2vh}@media screen and (max-width:782px){.login-action-confirm_admin_email #login{box-sizing:border-box;margin-top:0;padding-left:4vw;padding-right:4vw;width:100vw}}.login form .forgetmenot{font-weight:400;float:left;margin-bottom:0}.login .button-primary{float:right}.login .reset-pass-submit{display:flex;flex-flow:row wrap;justify-content:space-between}.login .reset-pass-submit .button{display:inline-block;float:none;margin-bottom:6px}.login .admin-email-confirm-form .submit{text-align:center}.admin-email__later{text-align:left}.login form p.admin-email__details{margin:1.1em 0}.login h1.admin-email__heading{border-bottom:1px #f0f0f1 solid;color:#50575e;font-weight:400;padding-bottom:.5em;text-align:left}.admin-email__actions div{padding-top:1.5em}.login .admin-email__actions .button-primary{float:none;margin-left:.25em;margin-right:.25em}#login form p{margin-bottom:0}#login #reg_passmail,#login form .indicator-hint{margin-bottom:16px}#login form p.submit{margin:0;padding:0}.login label{font-size:14px;line-height:1.5;display:inline-block;margin-bottom:3px}.login .forgetmenot label,.login .pw-weak label{line-height:1.5;vertical-align:baseline}.login h1{text-align:center}.login h1 a{background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);background-size:84px;background-position:center top;background-repeat:no-repeat;color:#3c434a;height:84px;font-size:20px;font-weight:400;line-height:1.3;margin:0 auto 25px;padding:0;text-decoration:none;width:84px;text-indent:-9999px;outline:0;overflow:hidden;display:block}#login{width:320px;padding:5% 0 0;margin:auto}.login #backtoblog,.login #nav{font-size:13px;padding:0 24px}.login #nav{margin:24px 0 0}#backtoblog{margin:16px 0;word-wrap:break-word}.login #backtoblog a,.login #nav a{text-decoration:none;color:#50575e}.login #backtoblog a:hover,.login #nav a:hover,.login h1 a:hover{color:#135e96}.login #backtoblog a:focus,.login #nav a:focus,.login h1 a:focus{color:#043959}.login .privacy-policy-page-link{text-align:center;width:100%;margin:3em 0 2em}.login form .input,.login input[type=password],.login input[type=text]{font-size:24px;line-height:1.33333333;width:100%;border-width:.0625rem;padding:.1875rem .3125rem;margin:0 6px 16px 0;min-height:40px;max-height:none}.login input.password-input{font-family:Consolas,Monaco,monospace}.js.login input.password-input{padding-right:2.5rem}.login form .input,.login form input[type=checkbox],.login input[type=text]{background:#fff}.js.login-action-resetpass input[type=password],.js.login-action-resetpass input[type=text],.js.login-action-rp input[type=password],.js.login-action-rp input[type=text]{margin-bottom:0}.login #pass-strength-result{font-weight:600;margin:-1px 5px 16px 0;padding:6px 5px;text-align:center;width:100%}body.interim-login{height:auto}.interim-login #login{padding:0;margin:5px auto 20px}.interim-login.login h1 a{width:auto}.interim-login #login_error,.interim-login.login .message{margin:0 0 16px}.interim-login.login form{margin:0}.screen-reader-text,.screen-reader-text span{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}input::-ms-reveal{display:none}#language-switcher{padding:0;overflow:visible;background:0 0;border:none;box-shadow:none}#language-switcher select{margin-right:.25em}.language-switcher{margin:0 auto;padding:0 0 24px;text-align:center}.language-switcher label{margin-right:.25em}.language-switcher label .dashicons{width:auto;height:auto}.login .language-switcher .button{margin-bottom:0}@media screen and (max-height:550px){#login{padding:20px 0}#language-switcher{margin-top:0}}@media screen and (max-width:782px){.interim-login input[type=checkbox]{width:1rem;height:1rem}.interim-login input[type=checkbox]:checked:before{width:1.3125rem;height:1.3125rem;margin:-.1875rem 0 0 -.25rem}#language-switcher label,#language-switcher select{margin-right:0}}@media screen and (max-width:400px){.login .language-switcher .button{display:block;margin:5px auto 0}} \ No newline at end of file
diff --git a/wp-admin/css/media-rtl.css b/wp-admin/css/media-rtl.css
index 8dcd46e..42a195a 100644
--- a/wp-admin/css/media-rtl.css
+++ b/wp-admin/css/media-rtl.css
@@ -113,14 +113,8 @@
margin-left: 10px;
}
-.media-item-wrapper {
- display: grid;
- grid-template-columns: 1fr 1fr;
-}
-
.media-item .attachment-tools {
display: flex;
- justify-content: flex-end;
align-items: center;
}
@@ -191,15 +185,10 @@
display: none;
}
-.media-item .original {
- position: relative;
- min-height: 34px;
-}
-
.media-item .progress {
- float: left;
+ display: inline-block;
height: 22px;
- margin: 7px 6px;
+ margin: 0 6px 7px;
width: 200px;
line-height: 2em;
padding: 0;
@@ -586,15 +575,9 @@ border color while dragging a file over the uploader drop area */
}
.media-frame-content .media-search-input-label {
- margin: 0 0 0 .2em;
vertical-align: baseline;
}
-.media-frame.mode-grid .media-search-input-label {
- position: static;
- margin: 0 0 0 .5em;
-}
-
.attachments-browser .media-toolbar-secondary > .media-button {
margin-left: 10px;
}
@@ -908,7 +891,7 @@ border color while dragging a file over the uploader drop area */
}
.imgedit-settings {
- max-width: 400px; /* Prevent reflow when help info is expanded. */
+ max-width: 240px; /* Prevent reflow when help info is expanded. */
}
.imgedit-group-controls > * {
@@ -1374,6 +1357,12 @@ audio, video {
width: 100%;
margin-bottom: 20px;
display: flex;
+ flex-wrap: nowrap;
+ column-gap: 0;
+ }
+
+ .wp-filter p.search-box #media-search-input {
+ width: 100%;
}
}
@@ -1437,3 +1426,17 @@ audio, video {
max-width: 100%;
}
}
+
+@media only screen and (max-width: 375px) {
+ .media-item .attachment-tools {
+ align-items: baseline;
+ }
+ .media-item .edit-attachment.copy-to-clipboard-container {
+ flex-direction: column;
+ }
+
+ .copy-to-clipboard-container .success {
+ line-height: normal;
+ margin-top: 10px;
+ }
+}
diff --git a/wp-admin/css/media-rtl.min.css b/wp-admin/css/media-rtl.min.css
index 3a9e5f5..55e1750 100644
--- a/wp-admin/css/media-rtl.min.css
+++ b/wp-admin/css/media-rtl.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-.media-item .describe{border-collapse:collapse;width:100%;border-top:1px solid #dcdcde;clear:both;cursor:default}.media-item.media-blank .describe{border:0}.media-item .describe th{vertical-align:top;text-align:right;padding:5px 10px 10px;width:140px}.media-item .describe .align th{padding-top:0}.media-item .media-item-info tr{background-color:transparent}.media-item .describe td{padding:0 0 8px 8px;vertical-align:top}.media-item thead.media-item-info td{padding:4px 10px 0}.media-item .media-item-info .A1B1{padding:0 10px 0 0}.media-item td.savesend{padding-bottom:15px}.media-item .thumbnail{max-height:128px;max-width:128px}.media-list-subtitle{display:block}.media-list-title{display:block}#wpbody-content #async-upload-wrap a{display:none}.media-upload-form{margin-top:20px}.media-upload-form td label{margin-left:6px;margin-right:2px}.media-upload-form .align .field label{display:inline;padding:0 23px 0 0;margin:0 3px 0 1em;font-weight:600}.media-upload-form tr.image-size label{margin:0 5px 0 0;font-weight:600}.media-upload-form th.label label{font-weight:600;margin:.5em;font-size:13px}.media-upload-form th.label label span{padding:0 5px}.media-item .describe input[type=text],.media-item .describe textarea{width:460px}.media-item .describe p.help{margin:0;padding:0 5px 0 0}.describe-toggle-off,.describe-toggle-on{display:block;line-height:2.76923076;float:left;margin-left:10px}.media-item-wrapper{display:grid;grid-template-columns:1fr 1fr}.media-item .attachment-tools{display:flex;justify-content:flex-end;align-items:center}.media-item .edit-attachment{padding:14px 0;display:block;margin-left:10px}.media-item .edit-attachment.copy-to-clipboard-container{display:flex;margin-top:0}.media-item-copy-container .success{line-height:0}.media-item button .copy-attachment-url{margin-top:14px}.media-item .copy-to-clipboard-container{margin-top:7px}.media-item .describe-toggle-off,.media-item.open .describe-toggle-on{display:none}.media-item.open .describe-toggle-off{display:block}.media-upload-form .media-item{min-height:70px;margin-bottom:1px;position:relative;width:100%;background:#fff}.media-upload-form .media-item,.media-upload-form .media-item .error{box-shadow:0 1px 0 #dcdcde}#media-items:empty{border:0 none}.media-item .filename{padding:14px 0;overflow:hidden;margin-right:6px}.media-item .pinkynail{float:right;margin:0 0 0 10px;max-height:70px;max-width:70px}.media-item .startclosed,.media-item .startopen{display:none}.media-item .original{position:relative;min-height:34px}.media-item .progress{float:left;height:22px;margin:7px 6px;width:200px;line-height:2em;padding:0;overflow:hidden;border-radius:22px;background:#dcdcde;box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.media-item .bar{z-index:9;width:0;height:100%;margin-top:-22px;border-radius:22px;background-color:#2271b1;box-shadow:inset 0 0 2px rgba(0,0,0,.3)}.media-item .progress .percent{z-index:10;position:relative;width:200px;padding:0;color:#fff;text-align:center;line-height:22px;font-weight:400;text-shadow:0 1px 2px rgba(0,0,0,.2)}.upload-php .fixed .column-parent{width:15%}.js .html-uploader #plupload-upload-ui{display:none}.js .html-uploader #html-upload-ui{display:block}#html-upload-ui #async-upload{font-size:1em}.media-upload-form .media-item .error,.media-upload-form .media-item.error{width:auto;margin:0 0 1px}.media-upload-form .media-item .error{padding:10px 14px 10px 0;min-height:50px}.media-item .error-div button.dismiss{float:left;margin:0 15px 0 10px}.find-box{background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);width:600px;overflow:hidden;margin-right:-300px;position:fixed;top:30px;bottom:30px;right:50%;z-index:100105}.find-box-head{background:#fff;border-bottom:1px solid #dcdcde;height:36px;font-size:18px;font-weight:600;line-height:2;padding:0 16px 0 36px;position:absolute;top:0;right:0;left:0}.find-box-inside{overflow:auto;padding:16px;background-color:#fff;position:absolute;top:37px;bottom:45px;overflow-y:scroll;width:100%;box-sizing:border-box}.find-box-search{padding-bottom:16px}.find-box-search .spinner{float:none;right:105px;position:absolute}#find-posts-response,.find-box-search{position:relative}#find-posts-input,#find-posts-search{float:right}#find-posts-input{width:140px;height:28px;margin:0 0 0 4px}.widefat .found-radio{padding-left:0;width:16px}#find-posts-close{width:36px;height:36px;border:none;padding:0;position:absolute;top:0;left:0;cursor:pointer;text-align:center;background:0 0;color:#646970}#find-posts-close:focus,#find-posts-close:hover{color:#135e96}#find-posts-close:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent;outline-offset:-2px}#find-posts-close:before{font:normal 20px/36px dashicons;vertical-align:top;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f158"}.find-box-buttons{padding:8px 16px;background:#fff;border-top:1px solid #dcdcde;position:absolute;bottom:0;right:0;left:0}@media screen and (max-width:782px){.find-box-inside{bottom:57px}}@media screen and (max-width:660px){.find-box{top:0;bottom:0;right:0;left:0;margin:0;width:100%}}.ui-find-overlay{position:fixed;top:0;right:0;left:0;bottom:0;background:#000;opacity:.7;z-index:100100}.drag-drop #drag-drop-area{border:4px dashed #c3c4c7;height:200px}.drag-drop .drag-drop-inside{margin:60px auto 0;width:250px}.drag-drop-inside p{font-size:14px;margin:5px 0;display:none}.drag-drop .drag-drop-inside p{text-align:center}.drag-drop-inside p.drag-drop-info{font-size:20px}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.drag-drop.drag-over #drag-drop-area{border-color:#9ec2e6}#plupload-upload-ui{position:relative}.post-type-attachment .wp-filter select{margin:0 0 0 6px}.media-frame.mode-grid,.media-frame.mode-grid .attachments-browser.has-load-more .attachments-wrapper,.media-frame.mode-grid .attachments-browser:not(.has-load-more) .attachments,.media-frame.mode-grid .media-frame-content,.media-frame.mode-grid .uploader-inline-content{position:static}.media-frame.mode-grid .media-frame-menu,.media-frame.mode-grid .media-frame-router,.media-frame.mode-grid .media-frame-title{display:none}.media-frame.mode-grid .media-frame-content{background-color:transparent;border:none}.upload-php .mode-grid .media-sidebar{position:relative;width:auto;margin-top:12px;padding:0 16px;border-right:4px solid #d63638;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);background-color:#fff}.upload-php .mode-grid .hide-sidebar .media-sidebar{display:none}.upload-php .mode-grid .media-sidebar .media-uploader-status{border-bottom:none;padding-bottom:0;max-width:100%}.upload-php .mode-grid .media-sidebar .upload-error{margin:12px 0;padding:4px 0 0;border:none;box-shadow:none;background:0 0}.upload-php .mode-grid .media-sidebar .media-uploader-status.errors h2{display:none}.media-frame.mode-grid .uploader-inline{position:relative;top:auto;left:auto;right:auto;bottom:auto;padding-top:0;margin-top:20px;border:4px dashed #c3c4c7}.media-frame.mode-select .attachments-browser.fixed:not(.has-load-more) .attachments,.media-frame.mode-select .attachments-browser.has-load-more.fixed .attachments-wrapper{position:relative;top:94px;padding-bottom:94px}.media-frame.mode-grid .attachment.details:focus,.media-frame.mode-grid .attachment:focus,.media-frame.mode-grid .selected.attachment:focus{box-shadow:inset 0 0 0 2px #2271b1;outline:2px solid transparent;outline-offset:-6px}.media-frame.mode-grid .selected.attachment{box-shadow:inset 0 0 0 5px #f0f0f1,inset 0 0 0 7px #c3c4c7}.media-frame.mode-grid .attachment.details{box-shadow:inset 0 0 0 3px #f0f0f1,inset 0 0 0 7px #4f94d4}.media-frame.mode-grid.mode-select .attachment .thumbnail{opacity:.65}.media-frame.mode-select .attachment.selected .thumbnail{opacity:1}.media-frame.mode-grid .media-toolbar{margin-bottom:15px;height:auto}.media-frame.mode-grid .media-toolbar select{margin:0 0 0 10px}.media-frame.mode-grid.mode-edit .media-toolbar-secondary>.select-mode-toggle-button{margin:0 0 0 8px;vertical-align:middle}.media-frame.mode-grid .attachments-browser .bulk-select{display:inline-block;margin:0 0 0 10px}.media-frame.mode-grid .search{margin-top:0}.media-frame-content .media-search-input-label{margin:0 0 0 .2em;vertical-align:baseline}.media-frame.mode-grid .media-search-input-label{position:static;margin:0 0 0 .5em}.attachments-browser .media-toolbar-secondary>.media-button{margin-left:10px}.media-frame.mode-select .attachments-browser.fixed .media-toolbar{position:fixed;top:32px;right:auto;left:20px;margin-top:0}.media-frame.mode-grid .attachments-browser{padding:0}.media-frame.mode-grid .attachments-browser .attachments{padding:2px}.media-frame.mode-grid .attachments-browser .no-media{color:#646970;font-size:18px;font-style:normal;margin:0;padding:100px 0 0;text-align:center}.edit-attachment-frame{display:block;height:100%;width:100%}.edit-attachment-frame .edit-media-header{overflow:hidden}.upload-php .media-modal-close .media-modal-icon:before{content:"\f335";font-size:22px}.edit-attachment-frame .edit-media-header .left,.edit-attachment-frame .edit-media-header .right,.upload-php .media-modal-close{cursor:pointer;color:#787c82;background-color:transparent;height:50px;width:50px;padding:0;position:absolute;text-align:center;border:0;border-right:1px solid #dcdcde;transition:color .1s ease-in-out,background .1s ease-in-out}.upload-php .media-modal-close{top:0;left:0}.edit-attachment-frame .edit-media-header .left{left:102px}.edit-attachment-frame .edit-media-header .right{left:51px}.edit-attachment-frame .media-frame-title{right:0;left:150px}.edit-attachment-frame .edit-media-header .left:before,.edit-attachment-frame .edit-media-header .right:before{font:normal 20px/50px dashicons!important;display:inline;font-weight:300}.edit-attachment-frame .edit-media-header .left:focus,.edit-attachment-frame .edit-media-header .left:hover,.edit-attachment-frame .edit-media-header .right:focus,.edit-attachment-frame .edit-media-header .right:hover,.upload-php .media-modal-close:focus,.upload-php .media-modal-close:hover{background:#dcdcde;border-color:#c3c4c7;color:#000;outline:0;box-shadow:none}.edit-attachment-frame .edit-media-header .left:focus,.edit-attachment-frame .edit-media-header .right:focus,.upload-php .media-modal-close:focus{outline:2px solid transparent;outline-offset:-2px}.upload-php .media-modal-close:focus .media-modal-icon:before,.upload-php .media-modal-close:hover .media-modal-icon:before{color:#000}.edit-attachment-frame .edit-media-header .left:before{content:"\f345"}.edit-attachment-frame .edit-media-header .right:before{content:"\f341"}.edit-attachment-frame .edit-media-header [disabled],.edit-attachment-frame .edit-media-header [disabled]:hover{color:#c3c4c7;background:inherit;cursor:default}.edit-attachment-frame .media-frame-content,.edit-attachment-frame .media-frame-router{right:0}.edit-attachment-frame .media-frame-content{border-bottom:none;bottom:0;top:50px}.edit-attachment-frame .attachment-details{position:absolute;overflow:auto;top:0;bottom:0;left:0;right:0;box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1)}.edit-attachment-frame .attachment-media-view{float:right;width:65%;height:100%}.edit-attachment-frame .attachment-media-view .thumbnail{box-sizing:border-box;padding:16px;height:100%}.edit-attachment-frame .attachment-media-view .details-image{display:block;margin:0 auto 16px;max-width:100%;max-height:90%;max-height:calc(100% - 42px);background-image:linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:100% 0,10px 10px;background-size:20px 20px}.edit-attachment-frame .attachment-media-view .details-image.icon{background:0 0}.edit-attachment-frame .attachment-media-view .attachment-actions{text-align:center}.edit-attachment-frame .wp-media-wrapper{margin-bottom:12px}.edit-attachment-frame input,.edit-attachment-frame textarea{padding:4px 8px;line-height:1.42857143}.edit-attachment-frame .attachment-info{overflow:auto;box-sizing:border-box;margin-bottom:0;padding:12px 16px 0;width:35%;height:100%;box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1);border-bottom:0;border-right:1px solid #dcdcde;background:#f6f7f7}.edit-attachment-frame .attachment-info .details,.edit-attachment-frame .attachment-info .settings{position:relative;overflow:hidden;float:none;margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid #dcdcde}.edit-attachment-frame .attachment-info .filename{font-weight:400;color:#646970}.edit-attachment-frame .attachment-info .thumbnail{margin-bottom:12px}.attachment-info .actions{margin-bottom:16px}.attachment-info .actions a{display:inline;text-decoration:none}.copy-to-clipboard-container{display:flex;align-items:center;margin-top:8px;clear:both}.copy-to-clipboard-container .copy-attachment-url{white-space:normal}.copy-to-clipboard-container .success{color:#007017;margin-right:8px}.wp_attachment_details .attachment-alt-text{margin-bottom:5px}.wp_attachment_details #attachment_alt{max-width:500px;height:3.28571428em}.wp_attachment_details .attachment-alt-text-description{margin-top:5px}.wp_attachment_details label[for=content]{font-size:13px;line-height:1.5;margin:1em 0}.wp_attachment_details #attachment_caption{height:4em}.describe .image-editor{vertical-align:top}.imgedit-wrap{position:relative;padding-top:10px}.image-editor fieldset,.image-editor p{margin:8px 0}.image-editor legend{margin-bottom:5px}.describe .imgedit-wrap .image-editor{padding:0 5px}.wp_attachment_holder div.updated{margin-top:0}.wp_attachment_holder .imgedit-wrap>div{height:auto}.imgedit-panel-content{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:20px}.imgedit-settings{max-width:400px}.imgedit-group-controls>*{display:none}.imgedit-panel-active .imgedit-group-controls>*{display:block}.wp_attachment_holder .imgedit-wrap .image-editor{float:left;width:250px}.image-editor input{margin-top:0;vertical-align:middle}.imgedit-wait{position:absolute;top:0;bottom:0;width:100%;background:#fff;opacity:.7;display:none}.imgedit-wait:before{content:"";display:block;width:20px;height:20px;position:absolute;right:50%;top:50%;margin:-10px -10px 0 0;background:transparent url(../images/spinner.gif) no-repeat center;background-size:20px 20px;transform:translateZ(0)}.no-float{float:none}.image-editor .disabled,.media-disabled{color:#a7aaad}.A1B1{overflow:hidden}.A1B1 .button,.wp_attachment_image .button{float:right}.no-js .wp_attachment_image .button{display:none}.A1B1 .spinner,.wp_attachment_image .spinner{float:right}.imgedit-menu .note-no-rotate{clear:both;margin:0;padding:1em 0 0}.image-editor .imgedit-menu .button{display:inline-block;width:auto;min-height:28px;font-size:13px;line-height:2;padding:0 10px}.imgedit-menu .button:after,.imgedit-menu .button:before{font:normal 16px/1 dashicons;margin-left:8px;speak:never;vertical-align:middle;position:relative;top:-2px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.imgedit-menu .imgedit-rotate.button:after{content:'\f140';margin-right:2px;margin-left:0}.imgedit-menu .imgedit-rotate.button[aria-expanded=true]:after{content:'\f142'}.imgedit-menu .button.disabled{color:#a7aaad;border-color:#dcdcde;background:#f6f7f7;box-shadow:none;text-shadow:0 1px 0 #fff;cursor:default;transform:none}.imgedit-crop:before{content:"\f165"}.imgedit-scale:before{content:"\f211"}.imgedit-rotate:before{content:"\f167"}.imgedit-undo:before{content:"\f171"}.imgedit-redo:before{content:"\f172"}.imgedit-crop-wrap{position:relative}.imgedit-crop-wrap img{background-image:linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:100% 0,10px 10px;background-size:20px 20px}.imgedit-crop-wrap{padding:20px;background-image:linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:100% 0,10px 10px;background-size:20px 20px}.imgedit-crop{margin:0 0 0 8px}.imgedit-rotate{margin:0 3px 0 8px}.imgedit-undo{margin:0 3px}.imgedit-redo{margin:0 3px 0 8px}.imgedit-thumbnail-preview-group{display:flex;flex-wrap:wrap;column-gap:10px}.imgedit-thumbnail-preview{margin:10px 0 0 8px}.imgedit-thumbnail-preview-caption{display:block}#poststuff .imgedit-group-top h2{display:inline-block;margin:0;padding:0;font-size:14px;line-height:1.4}#poststuff .imgedit-group-top .button-link{text-decoration:none;color:#1d2327}.imgedit-applyto .imgedit-label{display:block;padding:.5em 0 0}.imgedit-help,.imgedit-popup-menu{display:none;padding-bottom:8px}.imgedit-panel-tools>.imgedit-menu{display:flex;column-gap:4px;align-items:flex-start;flex-wrap:wrap}.imgedit-popup-menu{width:calc(100% - 20px);position:absolute;background:#fff;padding:10px;box-shadow:0 3px 6px rgba(0,0,0,.3)}.image-editor .imgedit-menu .imgedit-popup-menu button{display:block;margin:2px 0;width:100%;white-space:break-spaces;line-height:1.5;padding-top:3px;padding-bottom:2px}.imgedit-rotate-menu-container{position:relative}.imgedit-help.imgedit-restore{padding-bottom:0}.image-editor .imgedit-settings .imgedit-help-toggle,.image-editor .imgedit-settings .imgedit-help-toggle:active,.image-editor .imgedit-settings .imgedit-help-toggle:hover{border:1px solid transparent;margin:-1px -1px 0 0;padding:0;background:0 0;color:#2271b1;font-size:20px;line-height:1;cursor:pointer;box-sizing:content-box;box-shadow:none}.image-editor .imgedit-settings .imgedit-help-toggle:focus{color:#2271b1;border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}.form-table td.imgedit-response{padding:0}.imgedit-submit-btn{margin-right:20px}.imgedit-wrap .nowrap{white-space:nowrap;font-size:12px;line-height:inherit}span.imgedit-scale-warn{display:flex;align-items:center;margin:4px;gap:4px;color:#b32d2e;font-style:normal;visibility:hidden;vertical-align:middle}.imgedit-save-target{margin:8px 0}.imgedit-save-target legend{font-weight:600}.imgedit-group{margin-bottom:20px}.image-editor .imgedit-original-dimensions{display:inline-block}.image-editor .imgedit-crop-ratio input[type=number],.image-editor .imgedit-crop-ratio input[type=text],.image-editor .imgedit-crop-sel input[type=number],.image-editor .imgedit-crop-sel input[type=text],.image-editor .imgedit-scale-controls input[type=number],.image-editor .imgedit-scale-controls input[type=text]{width:80px;font-size:14px;padding:0 8px}.imgedit-separator{display:inline-block;width:7px;text-align:center;font-size:13px;color:#3c434a}.image-editor .imgedit-scale-button-wrapper{margin-top:.3077em;display:block}.image-editor .imgedit-scale-controls .button{margin-bottom:0}audio,video{display:inline-block;max-width:100%}.wp-core-ui .mejs-container{width:100%;max-width:100%}.wp-core-ui .mejs-container *{box-sizing:border-box}.wp-core-ui .mejs-time{box-sizing:content-box}@media print,(min-resolution:120dpi){.imgedit-wait:before{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){.edit-attachment-frame input,.edit-attachment-frame textarea{line-height:1.5}.wp_attachment_details label[for=content]{font-size:14px;line-height:1.5}.wp_attachment_details textarea{line-height:1.5}.wp_attachment_details #attachment_alt{height:3.375em}.media-upload-form .media-item .error,.media-upload-form .media-item.error{font-size:13px;line-height:1.5}.media-upload-form .media-item.error{padding:1px 10px}.media-upload-form .media-item .error{padding:10px 12px 10px 0}.image-editor .imgedit-crop-ratio input[type=text],.image-editor .imgedit-crop-sel input[type=text],.image-editor .imgedit-scale input[type=text]{font-size:16px;padding:6px 10px}.wp_attachment_holder .imgedit-wrap .image-editor,.wp_attachment_holder .imgedit-wrap .imgedit-panel-content{float:none;width:auto;max-width:none;padding-bottom:16px}.copy-to-clipboard-container .success{font-size:14px}.imgedit-crop-wrap img{width:100%}.media-modal .imgedit-wrap .image-editor,.media-modal .imgedit-wrap .imgedit-panel-content{position:initial!important}.media-modal .imgedit-wrap .image-editor{box-sizing:border-box;width:100%!important}.image-editor .imgedit-scale-button-wrapper{display:inline-block}}@media only screen and (max-width:600px){.media-item-wrapper{grid-template-columns:1fr}}@media only screen and (max-width:1120px){#wp-media-grid .wp-filter .attachment-filters{max-width:100%}}@media only screen and (max-width:1000px){.wp-filter p.search-box{float:none;width:100%;margin-bottom:20px;display:flex}}@media only screen and (max-width:782px){.media-frame.mode-select .attachments-browser.fixed .media-toolbar{top:46px;left:10px}}@media only screen and (max-width:600px){.media-frame.mode-select .attachments-browser.fixed .media-toolbar{top:0}}@media only screen and (max-width:480px){.edit-attachment-frame .media-frame-title{left:110px}.edit-attachment-frame .edit-media-header .left,.edit-attachment-frame .edit-media-header .right,.upload-php .media-modal-close{width:40px;height:40px}.edit-attachment-frame .edit-media-header .left:before,.edit-attachment-frame .edit-media-header .right:before{line-height:40px!important}.edit-attachment-frame .edit-media-header .left{left:82px}.edit-attachment-frame .edit-media-header .right{left:41px}.edit-attachment-frame .media-frame-content{top:40px}.edit-attachment-frame .attachment-media-view{float:none;height:auto;width:100%}.edit-attachment-frame .attachment-info{height:auto;width:100%}}@media only screen and (max-width:640px),screen and (max-height:400px){.upload-php .mode-grid .media-sidebar{max-width:100%}} \ No newline at end of file
+.media-item .describe{border-collapse:collapse;width:100%;border-top:1px solid #dcdcde;clear:both;cursor:default}.media-item.media-blank .describe{border:0}.media-item .describe th{vertical-align:top;text-align:right;padding:5px 10px 10px;width:140px}.media-item .describe .align th{padding-top:0}.media-item .media-item-info tr{background-color:transparent}.media-item .describe td{padding:0 0 8px 8px;vertical-align:top}.media-item thead.media-item-info td{padding:4px 10px 0}.media-item .media-item-info .A1B1{padding:0 10px 0 0}.media-item td.savesend{padding-bottom:15px}.media-item .thumbnail{max-height:128px;max-width:128px}.media-list-subtitle{display:block}.media-list-title{display:block}#wpbody-content #async-upload-wrap a{display:none}.media-upload-form{margin-top:20px}.media-upload-form td label{margin-left:6px;margin-right:2px}.media-upload-form .align .field label{display:inline;padding:0 23px 0 0;margin:0 3px 0 1em;font-weight:600}.media-upload-form tr.image-size label{margin:0 5px 0 0;font-weight:600}.media-upload-form th.label label{font-weight:600;margin:.5em;font-size:13px}.media-upload-form th.label label span{padding:0 5px}.media-item .describe input[type=text],.media-item .describe textarea{width:460px}.media-item .describe p.help{margin:0;padding:0 5px 0 0}.describe-toggle-off,.describe-toggle-on{display:block;line-height:2.76923076;float:left;margin-left:10px}.media-item .attachment-tools{display:flex;align-items:center}.media-item .edit-attachment{padding:14px 0;display:block;margin-left:10px}.media-item .edit-attachment.copy-to-clipboard-container{display:flex;margin-top:0}.media-item-copy-container .success{line-height:0}.media-item button .copy-attachment-url{margin-top:14px}.media-item .copy-to-clipboard-container{margin-top:7px}.media-item .describe-toggle-off,.media-item.open .describe-toggle-on{display:none}.media-item.open .describe-toggle-off{display:block}.media-upload-form .media-item{min-height:70px;margin-bottom:1px;position:relative;width:100%;background:#fff}.media-upload-form .media-item,.media-upload-form .media-item .error{box-shadow:0 1px 0 #dcdcde}#media-items:empty{border:0 none}.media-item .filename{padding:14px 0;overflow:hidden;margin-right:6px}.media-item .pinkynail{float:right;margin:0 0 0 10px;max-height:70px;max-width:70px}.media-item .startclosed,.media-item .startopen{display:none}.media-item .progress{display:inline-block;height:22px;margin:0 6px 7px;width:200px;line-height:2em;padding:0;overflow:hidden;border-radius:22px;background:#dcdcde;box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.media-item .bar{z-index:9;width:0;height:100%;margin-top:-22px;border-radius:22px;background-color:#2271b1;box-shadow:inset 0 0 2px rgba(0,0,0,.3)}.media-item .progress .percent{z-index:10;position:relative;width:200px;padding:0;color:#fff;text-align:center;line-height:22px;font-weight:400;text-shadow:0 1px 2px rgba(0,0,0,.2)}.upload-php .fixed .column-parent{width:15%}.js .html-uploader #plupload-upload-ui{display:none}.js .html-uploader #html-upload-ui{display:block}#html-upload-ui #async-upload{font-size:1em}.media-upload-form .media-item .error,.media-upload-form .media-item.error{width:auto;margin:0 0 1px}.media-upload-form .media-item .error{padding:10px 14px 10px 0;min-height:50px}.media-item .error-div button.dismiss{float:left;margin:0 15px 0 10px}.find-box{background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);width:600px;overflow:hidden;margin-right:-300px;position:fixed;top:30px;bottom:30px;right:50%;z-index:100105}.find-box-head{background:#fff;border-bottom:1px solid #dcdcde;height:36px;font-size:18px;font-weight:600;line-height:2;padding:0 16px 0 36px;position:absolute;top:0;right:0;left:0}.find-box-inside{overflow:auto;padding:16px;background-color:#fff;position:absolute;top:37px;bottom:45px;overflow-y:scroll;width:100%;box-sizing:border-box}.find-box-search{padding-bottom:16px}.find-box-search .spinner{float:none;right:105px;position:absolute}#find-posts-response,.find-box-search{position:relative}#find-posts-input,#find-posts-search{float:right}#find-posts-input{width:140px;height:28px;margin:0 0 0 4px}.widefat .found-radio{padding-left:0;width:16px}#find-posts-close{width:36px;height:36px;border:none;padding:0;position:absolute;top:0;left:0;cursor:pointer;text-align:center;background:0 0;color:#646970}#find-posts-close:focus,#find-posts-close:hover{color:#135e96}#find-posts-close:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent;outline-offset:-2px}#find-posts-close:before{font:normal 20px/36px dashicons;vertical-align:top;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f158"}.find-box-buttons{padding:8px 16px;background:#fff;border-top:1px solid #dcdcde;position:absolute;bottom:0;right:0;left:0}@media screen and (max-width:782px){.find-box-inside{bottom:57px}}@media screen and (max-width:660px){.find-box{top:0;bottom:0;right:0;left:0;margin:0;width:100%}}.ui-find-overlay{position:fixed;top:0;right:0;left:0;bottom:0;background:#000;opacity:.7;z-index:100100}.drag-drop #drag-drop-area{border:4px dashed #c3c4c7;height:200px}.drag-drop .drag-drop-inside{margin:60px auto 0;width:250px}.drag-drop-inside p{font-size:14px;margin:5px 0;display:none}.drag-drop .drag-drop-inside p{text-align:center}.drag-drop-inside p.drag-drop-info{font-size:20px}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.drag-drop.drag-over #drag-drop-area{border-color:#9ec2e6}#plupload-upload-ui{position:relative}.post-type-attachment .wp-filter select{margin:0 0 0 6px}.media-frame.mode-grid,.media-frame.mode-grid .attachments-browser.has-load-more .attachments-wrapper,.media-frame.mode-grid .attachments-browser:not(.has-load-more) .attachments,.media-frame.mode-grid .media-frame-content,.media-frame.mode-grid .uploader-inline-content{position:static}.media-frame.mode-grid .media-frame-menu,.media-frame.mode-grid .media-frame-router,.media-frame.mode-grid .media-frame-title{display:none}.media-frame.mode-grid .media-frame-content{background-color:transparent;border:none}.upload-php .mode-grid .media-sidebar{position:relative;width:auto;margin-top:12px;padding:0 16px;border-right:4px solid #d63638;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);background-color:#fff}.upload-php .mode-grid .hide-sidebar .media-sidebar{display:none}.upload-php .mode-grid .media-sidebar .media-uploader-status{border-bottom:none;padding-bottom:0;max-width:100%}.upload-php .mode-grid .media-sidebar .upload-error{margin:12px 0;padding:4px 0 0;border:none;box-shadow:none;background:0 0}.upload-php .mode-grid .media-sidebar .media-uploader-status.errors h2{display:none}.media-frame.mode-grid .uploader-inline{position:relative;top:auto;left:auto;right:auto;bottom:auto;padding-top:0;margin-top:20px;border:4px dashed #c3c4c7}.media-frame.mode-select .attachments-browser.fixed:not(.has-load-more) .attachments,.media-frame.mode-select .attachments-browser.has-load-more.fixed .attachments-wrapper{position:relative;top:94px;padding-bottom:94px}.media-frame.mode-grid .attachment.details:focus,.media-frame.mode-grid .attachment:focus,.media-frame.mode-grid .selected.attachment:focus{box-shadow:inset 0 0 0 2px #2271b1;outline:2px solid transparent;outline-offset:-6px}.media-frame.mode-grid .selected.attachment{box-shadow:inset 0 0 0 5px #f0f0f1,inset 0 0 0 7px #c3c4c7}.media-frame.mode-grid .attachment.details{box-shadow:inset 0 0 0 3px #f0f0f1,inset 0 0 0 7px #4f94d4}.media-frame.mode-grid.mode-select .attachment .thumbnail{opacity:.65}.media-frame.mode-select .attachment.selected .thumbnail{opacity:1}.media-frame.mode-grid .media-toolbar{margin-bottom:15px;height:auto}.media-frame.mode-grid .media-toolbar select{margin:0 0 0 10px}.media-frame.mode-grid.mode-edit .media-toolbar-secondary>.select-mode-toggle-button{margin:0 0 0 8px;vertical-align:middle}.media-frame.mode-grid .attachments-browser .bulk-select{display:inline-block;margin:0 0 0 10px}.media-frame.mode-grid .search{margin-top:0}.media-frame-content .media-search-input-label{vertical-align:baseline}.attachments-browser .media-toolbar-secondary>.media-button{margin-left:10px}.media-frame.mode-select .attachments-browser.fixed .media-toolbar{position:fixed;top:32px;right:auto;left:20px;margin-top:0}.media-frame.mode-grid .attachments-browser{padding:0}.media-frame.mode-grid .attachments-browser .attachments{padding:2px}.media-frame.mode-grid .attachments-browser .no-media{color:#646970;font-size:18px;font-style:normal;margin:0;padding:100px 0 0;text-align:center}.edit-attachment-frame{display:block;height:100%;width:100%}.edit-attachment-frame .edit-media-header{overflow:hidden}.upload-php .media-modal-close .media-modal-icon:before{content:"\f335";font-size:22px}.edit-attachment-frame .edit-media-header .left,.edit-attachment-frame .edit-media-header .right,.upload-php .media-modal-close{cursor:pointer;color:#787c82;background-color:transparent;height:50px;width:50px;padding:0;position:absolute;text-align:center;border:0;border-right:1px solid #dcdcde;transition:color .1s ease-in-out,background .1s ease-in-out}.upload-php .media-modal-close{top:0;left:0}.edit-attachment-frame .edit-media-header .left{left:102px}.edit-attachment-frame .edit-media-header .right{left:51px}.edit-attachment-frame .media-frame-title{right:0;left:150px}.edit-attachment-frame .edit-media-header .left:before,.edit-attachment-frame .edit-media-header .right:before{font:normal 20px/50px dashicons!important;display:inline;font-weight:300}.edit-attachment-frame .edit-media-header .left:focus,.edit-attachment-frame .edit-media-header .left:hover,.edit-attachment-frame .edit-media-header .right:focus,.edit-attachment-frame .edit-media-header .right:hover,.upload-php .media-modal-close:focus,.upload-php .media-modal-close:hover{background:#dcdcde;border-color:#c3c4c7;color:#000;outline:0;box-shadow:none}.edit-attachment-frame .edit-media-header .left:focus,.edit-attachment-frame .edit-media-header .right:focus,.upload-php .media-modal-close:focus{outline:2px solid transparent;outline-offset:-2px}.upload-php .media-modal-close:focus .media-modal-icon:before,.upload-php .media-modal-close:hover .media-modal-icon:before{color:#000}.edit-attachment-frame .edit-media-header .left:before{content:"\f345"}.edit-attachment-frame .edit-media-header .right:before{content:"\f341"}.edit-attachment-frame .edit-media-header [disabled],.edit-attachment-frame .edit-media-header [disabled]:hover{color:#c3c4c7;background:inherit;cursor:default}.edit-attachment-frame .media-frame-content,.edit-attachment-frame .media-frame-router{right:0}.edit-attachment-frame .media-frame-content{border-bottom:none;bottom:0;top:50px}.edit-attachment-frame .attachment-details{position:absolute;overflow:auto;top:0;bottom:0;left:0;right:0;box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1)}.edit-attachment-frame .attachment-media-view{float:right;width:65%;height:100%}.edit-attachment-frame .attachment-media-view .thumbnail{box-sizing:border-box;padding:16px;height:100%}.edit-attachment-frame .attachment-media-view .details-image{display:block;margin:0 auto 16px;max-width:100%;max-height:90%;max-height:calc(100% - 42px);background-image:linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:100% 0,10px 10px;background-size:20px 20px}.edit-attachment-frame .attachment-media-view .details-image.icon{background:0 0}.edit-attachment-frame .attachment-media-view .attachment-actions{text-align:center}.edit-attachment-frame .wp-media-wrapper{margin-bottom:12px}.edit-attachment-frame input,.edit-attachment-frame textarea{padding:4px 8px;line-height:1.42857143}.edit-attachment-frame .attachment-info{overflow:auto;box-sizing:border-box;margin-bottom:0;padding:12px 16px 0;width:35%;height:100%;box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1);border-bottom:0;border-right:1px solid #dcdcde;background:#f6f7f7}.edit-attachment-frame .attachment-info .details,.edit-attachment-frame .attachment-info .settings{position:relative;overflow:hidden;float:none;margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid #dcdcde}.edit-attachment-frame .attachment-info .filename{font-weight:400;color:#646970}.edit-attachment-frame .attachment-info .thumbnail{margin-bottom:12px}.attachment-info .actions{margin-bottom:16px}.attachment-info .actions a{display:inline;text-decoration:none}.copy-to-clipboard-container{display:flex;align-items:center;margin-top:8px;clear:both}.copy-to-clipboard-container .copy-attachment-url{white-space:normal}.copy-to-clipboard-container .success{color:#007017;margin-right:8px}.wp_attachment_details .attachment-alt-text{margin-bottom:5px}.wp_attachment_details #attachment_alt{max-width:500px;height:3.28571428em}.wp_attachment_details .attachment-alt-text-description{margin-top:5px}.wp_attachment_details label[for=content]{font-size:13px;line-height:1.5;margin:1em 0}.wp_attachment_details #attachment_caption{height:4em}.describe .image-editor{vertical-align:top}.imgedit-wrap{position:relative;padding-top:10px}.image-editor fieldset,.image-editor p{margin:8px 0}.image-editor legend{margin-bottom:5px}.describe .imgedit-wrap .image-editor{padding:0 5px}.wp_attachment_holder div.updated{margin-top:0}.wp_attachment_holder .imgedit-wrap>div{height:auto}.imgedit-panel-content{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:20px}.imgedit-settings{max-width:240px}.imgedit-group-controls>*{display:none}.imgedit-panel-active .imgedit-group-controls>*{display:block}.wp_attachment_holder .imgedit-wrap .image-editor{float:left;width:250px}.image-editor input{margin-top:0;vertical-align:middle}.imgedit-wait{position:absolute;top:0;bottom:0;width:100%;background:#fff;opacity:.7;display:none}.imgedit-wait:before{content:"";display:block;width:20px;height:20px;position:absolute;right:50%;top:50%;margin:-10px -10px 0 0;background:transparent url(../images/spinner.gif) no-repeat center;background-size:20px 20px;transform:translateZ(0)}.no-float{float:none}.image-editor .disabled,.media-disabled{color:#a7aaad}.A1B1{overflow:hidden}.A1B1 .button,.wp_attachment_image .button{float:right}.no-js .wp_attachment_image .button{display:none}.A1B1 .spinner,.wp_attachment_image .spinner{float:right}.imgedit-menu .note-no-rotate{clear:both;margin:0;padding:1em 0 0}.image-editor .imgedit-menu .button{display:inline-block;width:auto;min-height:28px;font-size:13px;line-height:2;padding:0 10px}.imgedit-menu .button:after,.imgedit-menu .button:before{font:normal 16px/1 dashicons;margin-left:8px;speak:never;vertical-align:middle;position:relative;top:-2px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.imgedit-menu .imgedit-rotate.button:after{content:'\f140';margin-right:2px;margin-left:0}.imgedit-menu .imgedit-rotate.button[aria-expanded=true]:after{content:'\f142'}.imgedit-menu .button.disabled{color:#a7aaad;border-color:#dcdcde;background:#f6f7f7;box-shadow:none;text-shadow:0 1px 0 #fff;cursor:default;transform:none}.imgedit-crop:before{content:"\f165"}.imgedit-scale:before{content:"\f211"}.imgedit-rotate:before{content:"\f167"}.imgedit-undo:before{content:"\f171"}.imgedit-redo:before{content:"\f172"}.imgedit-crop-wrap{position:relative}.imgedit-crop-wrap img{background-image:linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:100% 0,10px 10px;background-size:20px 20px}.imgedit-crop-wrap{padding:20px;background-image:linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:100% 0,10px 10px;background-size:20px 20px}.imgedit-crop{margin:0 0 0 8px}.imgedit-rotate{margin:0 3px 0 8px}.imgedit-undo{margin:0 3px}.imgedit-redo{margin:0 3px 0 8px}.imgedit-thumbnail-preview-group{display:flex;flex-wrap:wrap;column-gap:10px}.imgedit-thumbnail-preview{margin:10px 0 0 8px}.imgedit-thumbnail-preview-caption{display:block}#poststuff .imgedit-group-top h2{display:inline-block;margin:0;padding:0;font-size:14px;line-height:1.4}#poststuff .imgedit-group-top .button-link{text-decoration:none;color:#1d2327}.imgedit-applyto .imgedit-label{display:block;padding:.5em 0 0}.imgedit-help,.imgedit-popup-menu{display:none;padding-bottom:8px}.imgedit-panel-tools>.imgedit-menu{display:flex;column-gap:4px;align-items:flex-start;flex-wrap:wrap}.imgedit-popup-menu{width:calc(100% - 20px);position:absolute;background:#fff;padding:10px;box-shadow:0 3px 6px rgba(0,0,0,.3)}.image-editor .imgedit-menu .imgedit-popup-menu button{display:block;margin:2px 0;width:100%;white-space:break-spaces;line-height:1.5;padding-top:3px;padding-bottom:2px}.imgedit-rotate-menu-container{position:relative}.imgedit-help.imgedit-restore{padding-bottom:0}.image-editor .imgedit-settings .imgedit-help-toggle,.image-editor .imgedit-settings .imgedit-help-toggle:active,.image-editor .imgedit-settings .imgedit-help-toggle:hover{border:1px solid transparent;margin:-1px -1px 0 0;padding:0;background:0 0;color:#2271b1;font-size:20px;line-height:1;cursor:pointer;box-sizing:content-box;box-shadow:none}.image-editor .imgedit-settings .imgedit-help-toggle:focus{color:#2271b1;border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}.form-table td.imgedit-response{padding:0}.imgedit-submit-btn{margin-right:20px}.imgedit-wrap .nowrap{white-space:nowrap;font-size:12px;line-height:inherit}span.imgedit-scale-warn{display:flex;align-items:center;margin:4px;gap:4px;color:#b32d2e;font-style:normal;visibility:hidden;vertical-align:middle}.imgedit-save-target{margin:8px 0}.imgedit-save-target legend{font-weight:600}.imgedit-group{margin-bottom:20px}.image-editor .imgedit-original-dimensions{display:inline-block}.image-editor .imgedit-crop-ratio input[type=number],.image-editor .imgedit-crop-ratio input[type=text],.image-editor .imgedit-crop-sel input[type=number],.image-editor .imgedit-crop-sel input[type=text],.image-editor .imgedit-scale-controls input[type=number],.image-editor .imgedit-scale-controls input[type=text]{width:80px;font-size:14px;padding:0 8px}.imgedit-separator{display:inline-block;width:7px;text-align:center;font-size:13px;color:#3c434a}.image-editor .imgedit-scale-button-wrapper{margin-top:.3077em;display:block}.image-editor .imgedit-scale-controls .button{margin-bottom:0}audio,video{display:inline-block;max-width:100%}.wp-core-ui .mejs-container{width:100%;max-width:100%}.wp-core-ui .mejs-container *{box-sizing:border-box}.wp-core-ui .mejs-time{box-sizing:content-box}@media print,(min-resolution:120dpi){.imgedit-wait:before{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){.edit-attachment-frame input,.edit-attachment-frame textarea{line-height:1.5}.wp_attachment_details label[for=content]{font-size:14px;line-height:1.5}.wp_attachment_details textarea{line-height:1.5}.wp_attachment_details #attachment_alt{height:3.375em}.media-upload-form .media-item .error,.media-upload-form .media-item.error{font-size:13px;line-height:1.5}.media-upload-form .media-item.error{padding:1px 10px}.media-upload-form .media-item .error{padding:10px 12px 10px 0}.image-editor .imgedit-crop-ratio input[type=text],.image-editor .imgedit-crop-sel input[type=text],.image-editor .imgedit-scale input[type=text]{font-size:16px;padding:6px 10px}.wp_attachment_holder .imgedit-wrap .image-editor,.wp_attachment_holder .imgedit-wrap .imgedit-panel-content{float:none;width:auto;max-width:none;padding-bottom:16px}.copy-to-clipboard-container .success{font-size:14px}.imgedit-crop-wrap img{width:100%}.media-modal .imgedit-wrap .image-editor,.media-modal .imgedit-wrap .imgedit-panel-content{position:initial!important}.media-modal .imgedit-wrap .image-editor{box-sizing:border-box;width:100%!important}.image-editor .imgedit-scale-button-wrapper{display:inline-block}}@media only screen and (max-width:600px){.media-item-wrapper{grid-template-columns:1fr}}@media only screen and (max-width:1120px){#wp-media-grid .wp-filter .attachment-filters{max-width:100%}}@media only screen and (max-width:1000px){.wp-filter p.search-box{float:none;width:100%;margin-bottom:20px;display:flex;flex-wrap:nowrap;column-gap:0}.wp-filter p.search-box #media-search-input{width:100%}}@media only screen and (max-width:782px){.media-frame.mode-select .attachments-browser.fixed .media-toolbar{top:46px;left:10px}}@media only screen and (max-width:600px){.media-frame.mode-select .attachments-browser.fixed .media-toolbar{top:0}}@media only screen and (max-width:480px){.edit-attachment-frame .media-frame-title{left:110px}.edit-attachment-frame .edit-media-header .left,.edit-attachment-frame .edit-media-header .right,.upload-php .media-modal-close{width:40px;height:40px}.edit-attachment-frame .edit-media-header .left:before,.edit-attachment-frame .edit-media-header .right:before{line-height:40px!important}.edit-attachment-frame .edit-media-header .left{left:82px}.edit-attachment-frame .edit-media-header .right{left:41px}.edit-attachment-frame .media-frame-content{top:40px}.edit-attachment-frame .attachment-media-view{float:none;height:auto;width:100%}.edit-attachment-frame .attachment-info{height:auto;width:100%}}@media only screen and (max-width:640px),screen and (max-height:400px){.upload-php .mode-grid .media-sidebar{max-width:100%}}@media only screen and (max-width:375px){.media-item .attachment-tools{align-items:baseline}.media-item .edit-attachment.copy-to-clipboard-container{flex-direction:column}.copy-to-clipboard-container .success{line-height:normal;margin-top:10px}} \ No newline at end of file
diff --git a/wp-admin/css/media.css b/wp-admin/css/media.css
index 78bb42d..41beffc 100644
--- a/wp-admin/css/media.css
+++ b/wp-admin/css/media.css
@@ -112,14 +112,8 @@
margin-right: 10px;
}
-.media-item-wrapper {
- display: grid;
- grid-template-columns: 1fr 1fr;
-}
-
.media-item .attachment-tools {
display: flex;
- justify-content: flex-end;
align-items: center;
}
@@ -190,15 +184,10 @@
display: none;
}
-.media-item .original {
- position: relative;
- min-height: 34px;
-}
-
.media-item .progress {
- float: right;
+ display: inline-block;
height: 22px;
- margin: 7px 6px;
+ margin: 0 6px 7px;
width: 200px;
line-height: 2em;
padding: 0;
@@ -585,15 +574,9 @@ border color while dragging a file over the uploader drop area */
}
.media-frame-content .media-search-input-label {
- margin: 0 .2em 0 0;
vertical-align: baseline;
}
-.media-frame.mode-grid .media-search-input-label {
- position: static;
- margin: 0 .5em 0 0;
-}
-
.attachments-browser .media-toolbar-secondary > .media-button {
margin-right: 10px;
}
@@ -907,7 +890,7 @@ border color while dragging a file over the uploader drop area */
}
.imgedit-settings {
- max-width: 400px; /* Prevent reflow when help info is expanded. */
+ max-width: 240px; /* Prevent reflow when help info is expanded. */
}
.imgedit-group-controls > * {
@@ -1373,6 +1356,12 @@ audio, video {
width: 100%;
margin-bottom: 20px;
display: flex;
+ flex-wrap: nowrap;
+ column-gap: 0;
+ }
+
+ .wp-filter p.search-box #media-search-input {
+ width: 100%;
}
}
@@ -1436,3 +1425,17 @@ audio, video {
max-width: 100%;
}
}
+
+@media only screen and (max-width: 375px) {
+ .media-item .attachment-tools {
+ align-items: baseline;
+ }
+ .media-item .edit-attachment.copy-to-clipboard-container {
+ flex-direction: column;
+ }
+
+ .copy-to-clipboard-container .success {
+ line-height: normal;
+ margin-top: 10px;
+ }
+}
diff --git a/wp-admin/css/media.min.css b/wp-admin/css/media.min.css
index 5cd6ae0..ea0960f 100644
--- a/wp-admin/css/media.min.css
+++ b/wp-admin/css/media.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-.media-item .describe{border-collapse:collapse;width:100%;border-top:1px solid #dcdcde;clear:both;cursor:default}.media-item.media-blank .describe{border:0}.media-item .describe th{vertical-align:top;text-align:left;padding:5px 10px 10px;width:140px}.media-item .describe .align th{padding-top:0}.media-item .media-item-info tr{background-color:transparent}.media-item .describe td{padding:0 8px 8px 0;vertical-align:top}.media-item thead.media-item-info td{padding:4px 10px 0}.media-item .media-item-info .A1B1{padding:0 0 0 10px}.media-item td.savesend{padding-bottom:15px}.media-item .thumbnail{max-height:128px;max-width:128px}.media-list-subtitle{display:block}.media-list-title{display:block}#wpbody-content #async-upload-wrap a{display:none}.media-upload-form{margin-top:20px}.media-upload-form td label{margin-right:6px;margin-left:2px}.media-upload-form .align .field label{display:inline;padding:0 0 0 23px;margin:0 1em 0 3px;font-weight:600}.media-upload-form tr.image-size label{margin:0 0 0 5px;font-weight:600}.media-upload-form th.label label{font-weight:600;margin:.5em;font-size:13px}.media-upload-form th.label label span{padding:0 5px}.media-item .describe input[type=text],.media-item .describe textarea{width:460px}.media-item .describe p.help{margin:0;padding:0 0 0 5px}.describe-toggle-off,.describe-toggle-on{display:block;line-height:2.76923076;float:right;margin-right:10px}.media-item-wrapper{display:grid;grid-template-columns:1fr 1fr}.media-item .attachment-tools{display:flex;justify-content:flex-end;align-items:center}.media-item .edit-attachment{padding:14px 0;display:block;margin-right:10px}.media-item .edit-attachment.copy-to-clipboard-container{display:flex;margin-top:0}.media-item-copy-container .success{line-height:0}.media-item button .copy-attachment-url{margin-top:14px}.media-item .copy-to-clipboard-container{margin-top:7px}.media-item .describe-toggle-off,.media-item.open .describe-toggle-on{display:none}.media-item.open .describe-toggle-off{display:block}.media-upload-form .media-item{min-height:70px;margin-bottom:1px;position:relative;width:100%;background:#fff}.media-upload-form .media-item,.media-upload-form .media-item .error{box-shadow:0 1px 0 #dcdcde}#media-items:empty{border:0 none}.media-item .filename{padding:14px 0;overflow:hidden;margin-left:6px}.media-item .pinkynail{float:left;margin:0 10px 0 0;max-height:70px;max-width:70px}.media-item .startclosed,.media-item .startopen{display:none}.media-item .original{position:relative;min-height:34px}.media-item .progress{float:right;height:22px;margin:7px 6px;width:200px;line-height:2em;padding:0;overflow:hidden;border-radius:22px;background:#dcdcde;box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.media-item .bar{z-index:9;width:0;height:100%;margin-top:-22px;border-radius:22px;background-color:#2271b1;box-shadow:inset 0 0 2px rgba(0,0,0,.3)}.media-item .progress .percent{z-index:10;position:relative;width:200px;padding:0;color:#fff;text-align:center;line-height:22px;font-weight:400;text-shadow:0 1px 2px rgba(0,0,0,.2)}.upload-php .fixed .column-parent{width:15%}.js .html-uploader #plupload-upload-ui{display:none}.js .html-uploader #html-upload-ui{display:block}#html-upload-ui #async-upload{font-size:1em}.media-upload-form .media-item .error,.media-upload-form .media-item.error{width:auto;margin:0 0 1px}.media-upload-form .media-item .error{padding:10px 0 10px 14px;min-height:50px}.media-item .error-div button.dismiss{float:right;margin:0 10px 0 15px}.find-box{background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);width:600px;overflow:hidden;margin-left:-300px;position:fixed;top:30px;bottom:30px;left:50%;z-index:100105}.find-box-head{background:#fff;border-bottom:1px solid #dcdcde;height:36px;font-size:18px;font-weight:600;line-height:2;padding:0 36px 0 16px;position:absolute;top:0;left:0;right:0}.find-box-inside{overflow:auto;padding:16px;background-color:#fff;position:absolute;top:37px;bottom:45px;overflow-y:scroll;width:100%;box-sizing:border-box}.find-box-search{padding-bottom:16px}.find-box-search .spinner{float:none;left:105px;position:absolute}#find-posts-response,.find-box-search{position:relative}#find-posts-input,#find-posts-search{float:left}#find-posts-input{width:140px;height:28px;margin:0 4px 0 0}.widefat .found-radio{padding-right:0;width:16px}#find-posts-close{width:36px;height:36px;border:none;padding:0;position:absolute;top:0;right:0;cursor:pointer;text-align:center;background:0 0;color:#646970}#find-posts-close:focus,#find-posts-close:hover{color:#135e96}#find-posts-close:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent;outline-offset:-2px}#find-posts-close:before{font:normal 20px/36px dashicons;vertical-align:top;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f158"}.find-box-buttons{padding:8px 16px;background:#fff;border-top:1px solid #dcdcde;position:absolute;bottom:0;left:0;right:0}@media screen and (max-width:782px){.find-box-inside{bottom:57px}}@media screen and (max-width:660px){.find-box{top:0;bottom:0;left:0;right:0;margin:0;width:100%}}.ui-find-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000;opacity:.7;z-index:100100}.drag-drop #drag-drop-area{border:4px dashed #c3c4c7;height:200px}.drag-drop .drag-drop-inside{margin:60px auto 0;width:250px}.drag-drop-inside p{font-size:14px;margin:5px 0;display:none}.drag-drop .drag-drop-inside p{text-align:center}.drag-drop-inside p.drag-drop-info{font-size:20px}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.drag-drop.drag-over #drag-drop-area{border-color:#9ec2e6}#plupload-upload-ui{position:relative}.post-type-attachment .wp-filter select{margin:0 6px 0 0}.media-frame.mode-grid,.media-frame.mode-grid .attachments-browser.has-load-more .attachments-wrapper,.media-frame.mode-grid .attachments-browser:not(.has-load-more) .attachments,.media-frame.mode-grid .media-frame-content,.media-frame.mode-grid .uploader-inline-content{position:static}.media-frame.mode-grid .media-frame-menu,.media-frame.mode-grid .media-frame-router,.media-frame.mode-grid .media-frame-title{display:none}.media-frame.mode-grid .media-frame-content{background-color:transparent;border:none}.upload-php .mode-grid .media-sidebar{position:relative;width:auto;margin-top:12px;padding:0 16px;border-left:4px solid #d63638;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);background-color:#fff}.upload-php .mode-grid .hide-sidebar .media-sidebar{display:none}.upload-php .mode-grid .media-sidebar .media-uploader-status{border-bottom:none;padding-bottom:0;max-width:100%}.upload-php .mode-grid .media-sidebar .upload-error{margin:12px 0;padding:4px 0 0;border:none;box-shadow:none;background:0 0}.upload-php .mode-grid .media-sidebar .media-uploader-status.errors h2{display:none}.media-frame.mode-grid .uploader-inline{position:relative;top:auto;right:auto;left:auto;bottom:auto;padding-top:0;margin-top:20px;border:4px dashed #c3c4c7}.media-frame.mode-select .attachments-browser.fixed:not(.has-load-more) .attachments,.media-frame.mode-select .attachments-browser.has-load-more.fixed .attachments-wrapper{position:relative;top:94px;padding-bottom:94px}.media-frame.mode-grid .attachment.details:focus,.media-frame.mode-grid .attachment:focus,.media-frame.mode-grid .selected.attachment:focus{box-shadow:inset 0 0 0 2px #2271b1;outline:2px solid transparent;outline-offset:-6px}.media-frame.mode-grid .selected.attachment{box-shadow:inset 0 0 0 5px #f0f0f1,inset 0 0 0 7px #c3c4c7}.media-frame.mode-grid .attachment.details{box-shadow:inset 0 0 0 3px #f0f0f1,inset 0 0 0 7px #4f94d4}.media-frame.mode-grid.mode-select .attachment .thumbnail{opacity:.65}.media-frame.mode-select .attachment.selected .thumbnail{opacity:1}.media-frame.mode-grid .media-toolbar{margin-bottom:15px;height:auto}.media-frame.mode-grid .media-toolbar select{margin:0 10px 0 0}.media-frame.mode-grid.mode-edit .media-toolbar-secondary>.select-mode-toggle-button{margin:0 8px 0 0;vertical-align:middle}.media-frame.mode-grid .attachments-browser .bulk-select{display:inline-block;margin:0 10px 0 0}.media-frame.mode-grid .search{margin-top:0}.media-frame-content .media-search-input-label{margin:0 .2em 0 0;vertical-align:baseline}.media-frame.mode-grid .media-search-input-label{position:static;margin:0 .5em 0 0}.attachments-browser .media-toolbar-secondary>.media-button{margin-right:10px}.media-frame.mode-select .attachments-browser.fixed .media-toolbar{position:fixed;top:32px;left:auto;right:20px;margin-top:0}.media-frame.mode-grid .attachments-browser{padding:0}.media-frame.mode-grid .attachments-browser .attachments{padding:2px}.media-frame.mode-grid .attachments-browser .no-media{color:#646970;font-size:18px;font-style:normal;margin:0;padding:100px 0 0;text-align:center}.edit-attachment-frame{display:block;height:100%;width:100%}.edit-attachment-frame .edit-media-header{overflow:hidden}.upload-php .media-modal-close .media-modal-icon:before{content:"\f335";font-size:22px}.edit-attachment-frame .edit-media-header .left,.edit-attachment-frame .edit-media-header .right,.upload-php .media-modal-close{cursor:pointer;color:#787c82;background-color:transparent;height:50px;width:50px;padding:0;position:absolute;text-align:center;border:0;border-left:1px solid #dcdcde;transition:color .1s ease-in-out,background .1s ease-in-out}.upload-php .media-modal-close{top:0;right:0}.edit-attachment-frame .edit-media-header .left{right:102px}.edit-attachment-frame .edit-media-header .right{right:51px}.edit-attachment-frame .media-frame-title{left:0;right:150px}.edit-attachment-frame .edit-media-header .left:before,.edit-attachment-frame .edit-media-header .right:before{font:normal 20px/50px dashicons!important;display:inline;font-weight:300}.edit-attachment-frame .edit-media-header .left:focus,.edit-attachment-frame .edit-media-header .left:hover,.edit-attachment-frame .edit-media-header .right:focus,.edit-attachment-frame .edit-media-header .right:hover,.upload-php .media-modal-close:focus,.upload-php .media-modal-close:hover{background:#dcdcde;border-color:#c3c4c7;color:#000;outline:0;box-shadow:none}.edit-attachment-frame .edit-media-header .left:focus,.edit-attachment-frame .edit-media-header .right:focus,.upload-php .media-modal-close:focus{outline:2px solid transparent;outline-offset:-2px}.upload-php .media-modal-close:focus .media-modal-icon:before,.upload-php .media-modal-close:hover .media-modal-icon:before{color:#000}.edit-attachment-frame .edit-media-header .left:before{content:"\f341"}.edit-attachment-frame .edit-media-header .right:before{content:"\f345"}.edit-attachment-frame .edit-media-header [disabled],.edit-attachment-frame .edit-media-header [disabled]:hover{color:#c3c4c7;background:inherit;cursor:default}.edit-attachment-frame .media-frame-content,.edit-attachment-frame .media-frame-router{left:0}.edit-attachment-frame .media-frame-content{border-bottom:none;bottom:0;top:50px}.edit-attachment-frame .attachment-details{position:absolute;overflow:auto;top:0;bottom:0;right:0;left:0;box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1)}.edit-attachment-frame .attachment-media-view{float:left;width:65%;height:100%}.edit-attachment-frame .attachment-media-view .thumbnail{box-sizing:border-box;padding:16px;height:100%}.edit-attachment-frame .attachment-media-view .details-image{display:block;margin:0 auto 16px;max-width:100%;max-height:90%;max-height:calc(100% - 42px);background-image:linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:0 0,10px 10px;background-size:20px 20px}.edit-attachment-frame .attachment-media-view .details-image.icon{background:0 0}.edit-attachment-frame .attachment-media-view .attachment-actions{text-align:center}.edit-attachment-frame .wp-media-wrapper{margin-bottom:12px}.edit-attachment-frame input,.edit-attachment-frame textarea{padding:4px 8px;line-height:1.42857143}.edit-attachment-frame .attachment-info{overflow:auto;box-sizing:border-box;margin-bottom:0;padding:12px 16px 0;width:35%;height:100%;box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1);border-bottom:0;border-left:1px solid #dcdcde;background:#f6f7f7}.edit-attachment-frame .attachment-info .details,.edit-attachment-frame .attachment-info .settings{position:relative;overflow:hidden;float:none;margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid #dcdcde}.edit-attachment-frame .attachment-info .filename{font-weight:400;color:#646970}.edit-attachment-frame .attachment-info .thumbnail{margin-bottom:12px}.attachment-info .actions{margin-bottom:16px}.attachment-info .actions a{display:inline;text-decoration:none}.copy-to-clipboard-container{display:flex;align-items:center;margin-top:8px;clear:both}.copy-to-clipboard-container .copy-attachment-url{white-space:normal}.copy-to-clipboard-container .success{color:#007017;margin-left:8px}.wp_attachment_details .attachment-alt-text{margin-bottom:5px}.wp_attachment_details #attachment_alt{max-width:500px;height:3.28571428em}.wp_attachment_details .attachment-alt-text-description{margin-top:5px}.wp_attachment_details label[for=content]{font-size:13px;line-height:1.5;margin:1em 0}.wp_attachment_details #attachment_caption{height:4em}.describe .image-editor{vertical-align:top}.imgedit-wrap{position:relative;padding-top:10px}.image-editor fieldset,.image-editor p{margin:8px 0}.image-editor legend{margin-bottom:5px}.describe .imgedit-wrap .image-editor{padding:0 5px}.wp_attachment_holder div.updated{margin-top:0}.wp_attachment_holder .imgedit-wrap>div{height:auto}.imgedit-panel-content{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:20px}.imgedit-settings{max-width:400px}.imgedit-group-controls>*{display:none}.imgedit-panel-active .imgedit-group-controls>*{display:block}.wp_attachment_holder .imgedit-wrap .image-editor{float:right;width:250px}.image-editor input{margin-top:0;vertical-align:middle}.imgedit-wait{position:absolute;top:0;bottom:0;width:100%;background:#fff;opacity:.7;display:none}.imgedit-wait:before{content:"";display:block;width:20px;height:20px;position:absolute;left:50%;top:50%;margin:-10px 0 0 -10px;background:transparent url(../images/spinner.gif) no-repeat center;background-size:20px 20px;transform:translateZ(0)}.no-float{float:none}.image-editor .disabled,.media-disabled{color:#a7aaad}.A1B1{overflow:hidden}.A1B1 .button,.wp_attachment_image .button{float:left}.no-js .wp_attachment_image .button{display:none}.A1B1 .spinner,.wp_attachment_image .spinner{float:left}.imgedit-menu .note-no-rotate{clear:both;margin:0;padding:1em 0 0}.image-editor .imgedit-menu .button{display:inline-block;width:auto;min-height:28px;font-size:13px;line-height:2;padding:0 10px}.imgedit-menu .button:after,.imgedit-menu .button:before{font:normal 16px/1 dashicons;margin-right:8px;speak:never;vertical-align:middle;position:relative;top:-2px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.imgedit-menu .imgedit-rotate.button:after{content:'\f140';margin-left:2px;margin-right:0}.imgedit-menu .imgedit-rotate.button[aria-expanded=true]:after{content:'\f142'}.imgedit-menu .button.disabled{color:#a7aaad;border-color:#dcdcde;background:#f6f7f7;box-shadow:none;text-shadow:0 1px 0 #fff;cursor:default;transform:none}.imgedit-crop:before{content:"\f165"}.imgedit-scale:before{content:"\f211"}.imgedit-rotate:before{content:"\f167"}.imgedit-undo:before{content:"\f171"}.imgedit-redo:before{content:"\f172"}.imgedit-crop-wrap{position:relative}.imgedit-crop-wrap img{background-image:linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:0 0,10px 10px;background-size:20px 20px}.imgedit-crop-wrap{padding:20px;background-image:linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:0 0,10px 10px;background-size:20px 20px}.imgedit-crop{margin:0 8px 0 0}.imgedit-rotate{margin:0 8px 0 3px}.imgedit-undo{margin:0 3px}.imgedit-redo{margin:0 8px 0 3px}.imgedit-thumbnail-preview-group{display:flex;flex-wrap:wrap;column-gap:10px}.imgedit-thumbnail-preview{margin:10px 8px 0 0}.imgedit-thumbnail-preview-caption{display:block}#poststuff .imgedit-group-top h2{display:inline-block;margin:0;padding:0;font-size:14px;line-height:1.4}#poststuff .imgedit-group-top .button-link{text-decoration:none;color:#1d2327}.imgedit-applyto .imgedit-label{display:block;padding:.5em 0 0}.imgedit-help,.imgedit-popup-menu{display:none;padding-bottom:8px}.imgedit-panel-tools>.imgedit-menu{display:flex;column-gap:4px;align-items:flex-start;flex-wrap:wrap}.imgedit-popup-menu{width:calc(100% - 20px);position:absolute;background:#fff;padding:10px;box-shadow:0 3px 6px rgba(0,0,0,.3)}.image-editor .imgedit-menu .imgedit-popup-menu button{display:block;margin:2px 0;width:100%;white-space:break-spaces;line-height:1.5;padding-top:3px;padding-bottom:2px}.imgedit-rotate-menu-container{position:relative}.imgedit-help.imgedit-restore{padding-bottom:0}.image-editor .imgedit-settings .imgedit-help-toggle,.image-editor .imgedit-settings .imgedit-help-toggle:active,.image-editor .imgedit-settings .imgedit-help-toggle:hover{border:1px solid transparent;margin:-1px 0 0 -1px;padding:0;background:0 0;color:#2271b1;font-size:20px;line-height:1;cursor:pointer;box-sizing:content-box;box-shadow:none}.image-editor .imgedit-settings .imgedit-help-toggle:focus{color:#2271b1;border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}.form-table td.imgedit-response{padding:0}.imgedit-submit-btn{margin-left:20px}.imgedit-wrap .nowrap{white-space:nowrap;font-size:12px;line-height:inherit}span.imgedit-scale-warn{display:flex;align-items:center;margin:4px;gap:4px;color:#b32d2e;font-style:normal;visibility:hidden;vertical-align:middle}.imgedit-save-target{margin:8px 0}.imgedit-save-target legend{font-weight:600}.imgedit-group{margin-bottom:20px}.image-editor .imgedit-original-dimensions{display:inline-block}.image-editor .imgedit-crop-ratio input[type=number],.image-editor .imgedit-crop-ratio input[type=text],.image-editor .imgedit-crop-sel input[type=number],.image-editor .imgedit-crop-sel input[type=text],.image-editor .imgedit-scale-controls input[type=number],.image-editor .imgedit-scale-controls input[type=text]{width:80px;font-size:14px;padding:0 8px}.imgedit-separator{display:inline-block;width:7px;text-align:center;font-size:13px;color:#3c434a}.image-editor .imgedit-scale-button-wrapper{margin-top:.3077em;display:block}.image-editor .imgedit-scale-controls .button{margin-bottom:0}audio,video{display:inline-block;max-width:100%}.wp-core-ui .mejs-container{width:100%;max-width:100%}.wp-core-ui .mejs-container *{box-sizing:border-box}.wp-core-ui .mejs-time{box-sizing:content-box}@media print,(min-resolution:120dpi){.imgedit-wait:before{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){.edit-attachment-frame input,.edit-attachment-frame textarea{line-height:1.5}.wp_attachment_details label[for=content]{font-size:14px;line-height:1.5}.wp_attachment_details textarea{line-height:1.5}.wp_attachment_details #attachment_alt{height:3.375em}.media-upload-form .media-item .error,.media-upload-form .media-item.error{font-size:13px;line-height:1.5}.media-upload-form .media-item.error{padding:1px 10px}.media-upload-form .media-item .error{padding:10px 0 10px 12px}.image-editor .imgedit-crop-ratio input[type=text],.image-editor .imgedit-crop-sel input[type=text],.image-editor .imgedit-scale input[type=text]{font-size:16px;padding:6px 10px}.wp_attachment_holder .imgedit-wrap .image-editor,.wp_attachment_holder .imgedit-wrap .imgedit-panel-content{float:none;width:auto;max-width:none;padding-bottom:16px}.copy-to-clipboard-container .success{font-size:14px}.imgedit-crop-wrap img{width:100%}.media-modal .imgedit-wrap .image-editor,.media-modal .imgedit-wrap .imgedit-panel-content{position:initial!important}.media-modal .imgedit-wrap .image-editor{box-sizing:border-box;width:100%!important}.image-editor .imgedit-scale-button-wrapper{display:inline-block}}@media only screen and (max-width:600px){.media-item-wrapper{grid-template-columns:1fr}}@media only screen and (max-width:1120px){#wp-media-grid .wp-filter .attachment-filters{max-width:100%}}@media only screen and (max-width:1000px){.wp-filter p.search-box{float:none;width:100%;margin-bottom:20px;display:flex}}@media only screen and (max-width:782px){.media-frame.mode-select .attachments-browser.fixed .media-toolbar{top:46px;right:10px}}@media only screen and (max-width:600px){.media-frame.mode-select .attachments-browser.fixed .media-toolbar{top:0}}@media only screen and (max-width:480px){.edit-attachment-frame .media-frame-title{right:110px}.edit-attachment-frame .edit-media-header .left,.edit-attachment-frame .edit-media-header .right,.upload-php .media-modal-close{width:40px;height:40px}.edit-attachment-frame .edit-media-header .left:before,.edit-attachment-frame .edit-media-header .right:before{line-height:40px!important}.edit-attachment-frame .edit-media-header .left{right:82px}.edit-attachment-frame .edit-media-header .right{right:41px}.edit-attachment-frame .media-frame-content{top:40px}.edit-attachment-frame .attachment-media-view{float:none;height:auto;width:100%}.edit-attachment-frame .attachment-info{height:auto;width:100%}}@media only screen and (max-width:640px),screen and (max-height:400px){.upload-php .mode-grid .media-sidebar{max-width:100%}} \ No newline at end of file
+.media-item .describe{border-collapse:collapse;width:100%;border-top:1px solid #dcdcde;clear:both;cursor:default}.media-item.media-blank .describe{border:0}.media-item .describe th{vertical-align:top;text-align:left;padding:5px 10px 10px;width:140px}.media-item .describe .align th{padding-top:0}.media-item .media-item-info tr{background-color:transparent}.media-item .describe td{padding:0 8px 8px 0;vertical-align:top}.media-item thead.media-item-info td{padding:4px 10px 0}.media-item .media-item-info .A1B1{padding:0 0 0 10px}.media-item td.savesend{padding-bottom:15px}.media-item .thumbnail{max-height:128px;max-width:128px}.media-list-subtitle{display:block}.media-list-title{display:block}#wpbody-content #async-upload-wrap a{display:none}.media-upload-form{margin-top:20px}.media-upload-form td label{margin-right:6px;margin-left:2px}.media-upload-form .align .field label{display:inline;padding:0 0 0 23px;margin:0 1em 0 3px;font-weight:600}.media-upload-form tr.image-size label{margin:0 0 0 5px;font-weight:600}.media-upload-form th.label label{font-weight:600;margin:.5em;font-size:13px}.media-upload-form th.label label span{padding:0 5px}.media-item .describe input[type=text],.media-item .describe textarea{width:460px}.media-item .describe p.help{margin:0;padding:0 0 0 5px}.describe-toggle-off,.describe-toggle-on{display:block;line-height:2.76923076;float:right;margin-right:10px}.media-item .attachment-tools{display:flex;align-items:center}.media-item .edit-attachment{padding:14px 0;display:block;margin-right:10px}.media-item .edit-attachment.copy-to-clipboard-container{display:flex;margin-top:0}.media-item-copy-container .success{line-height:0}.media-item button .copy-attachment-url{margin-top:14px}.media-item .copy-to-clipboard-container{margin-top:7px}.media-item .describe-toggle-off,.media-item.open .describe-toggle-on{display:none}.media-item.open .describe-toggle-off{display:block}.media-upload-form .media-item{min-height:70px;margin-bottom:1px;position:relative;width:100%;background:#fff}.media-upload-form .media-item,.media-upload-form .media-item .error{box-shadow:0 1px 0 #dcdcde}#media-items:empty{border:0 none}.media-item .filename{padding:14px 0;overflow:hidden;margin-left:6px}.media-item .pinkynail{float:left;margin:0 10px 0 0;max-height:70px;max-width:70px}.media-item .startclosed,.media-item .startopen{display:none}.media-item .progress{display:inline-block;height:22px;margin:0 6px 7px;width:200px;line-height:2em;padding:0;overflow:hidden;border-radius:22px;background:#dcdcde;box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.media-item .bar{z-index:9;width:0;height:100%;margin-top:-22px;border-radius:22px;background-color:#2271b1;box-shadow:inset 0 0 2px rgba(0,0,0,.3)}.media-item .progress .percent{z-index:10;position:relative;width:200px;padding:0;color:#fff;text-align:center;line-height:22px;font-weight:400;text-shadow:0 1px 2px rgba(0,0,0,.2)}.upload-php .fixed .column-parent{width:15%}.js .html-uploader #plupload-upload-ui{display:none}.js .html-uploader #html-upload-ui{display:block}#html-upload-ui #async-upload{font-size:1em}.media-upload-form .media-item .error,.media-upload-form .media-item.error{width:auto;margin:0 0 1px}.media-upload-form .media-item .error{padding:10px 0 10px 14px;min-height:50px}.media-item .error-div button.dismiss{float:right;margin:0 10px 0 15px}.find-box{background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);width:600px;overflow:hidden;margin-left:-300px;position:fixed;top:30px;bottom:30px;left:50%;z-index:100105}.find-box-head{background:#fff;border-bottom:1px solid #dcdcde;height:36px;font-size:18px;font-weight:600;line-height:2;padding:0 36px 0 16px;position:absolute;top:0;left:0;right:0}.find-box-inside{overflow:auto;padding:16px;background-color:#fff;position:absolute;top:37px;bottom:45px;overflow-y:scroll;width:100%;box-sizing:border-box}.find-box-search{padding-bottom:16px}.find-box-search .spinner{float:none;left:105px;position:absolute}#find-posts-response,.find-box-search{position:relative}#find-posts-input,#find-posts-search{float:left}#find-posts-input{width:140px;height:28px;margin:0 4px 0 0}.widefat .found-radio{padding-right:0;width:16px}#find-posts-close{width:36px;height:36px;border:none;padding:0;position:absolute;top:0;right:0;cursor:pointer;text-align:center;background:0 0;color:#646970}#find-posts-close:focus,#find-posts-close:hover{color:#135e96}#find-posts-close:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent;outline-offset:-2px}#find-posts-close:before{font:normal 20px/36px dashicons;vertical-align:top;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f158"}.find-box-buttons{padding:8px 16px;background:#fff;border-top:1px solid #dcdcde;position:absolute;bottom:0;left:0;right:0}@media screen and (max-width:782px){.find-box-inside{bottom:57px}}@media screen and (max-width:660px){.find-box{top:0;bottom:0;left:0;right:0;margin:0;width:100%}}.ui-find-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000;opacity:.7;z-index:100100}.drag-drop #drag-drop-area{border:4px dashed #c3c4c7;height:200px}.drag-drop .drag-drop-inside{margin:60px auto 0;width:250px}.drag-drop-inside p{font-size:14px;margin:5px 0;display:none}.drag-drop .drag-drop-inside p{text-align:center}.drag-drop-inside p.drag-drop-info{font-size:20px}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.drag-drop.drag-over #drag-drop-area{border-color:#9ec2e6}#plupload-upload-ui{position:relative}.post-type-attachment .wp-filter select{margin:0 6px 0 0}.media-frame.mode-grid,.media-frame.mode-grid .attachments-browser.has-load-more .attachments-wrapper,.media-frame.mode-grid .attachments-browser:not(.has-load-more) .attachments,.media-frame.mode-grid .media-frame-content,.media-frame.mode-grid .uploader-inline-content{position:static}.media-frame.mode-grid .media-frame-menu,.media-frame.mode-grid .media-frame-router,.media-frame.mode-grid .media-frame-title{display:none}.media-frame.mode-grid .media-frame-content{background-color:transparent;border:none}.upload-php .mode-grid .media-sidebar{position:relative;width:auto;margin-top:12px;padding:0 16px;border-left:4px solid #d63638;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);background-color:#fff}.upload-php .mode-grid .hide-sidebar .media-sidebar{display:none}.upload-php .mode-grid .media-sidebar .media-uploader-status{border-bottom:none;padding-bottom:0;max-width:100%}.upload-php .mode-grid .media-sidebar .upload-error{margin:12px 0;padding:4px 0 0;border:none;box-shadow:none;background:0 0}.upload-php .mode-grid .media-sidebar .media-uploader-status.errors h2{display:none}.media-frame.mode-grid .uploader-inline{position:relative;top:auto;right:auto;left:auto;bottom:auto;padding-top:0;margin-top:20px;border:4px dashed #c3c4c7}.media-frame.mode-select .attachments-browser.fixed:not(.has-load-more) .attachments,.media-frame.mode-select .attachments-browser.has-load-more.fixed .attachments-wrapper{position:relative;top:94px;padding-bottom:94px}.media-frame.mode-grid .attachment.details:focus,.media-frame.mode-grid .attachment:focus,.media-frame.mode-grid .selected.attachment:focus{box-shadow:inset 0 0 0 2px #2271b1;outline:2px solid transparent;outline-offset:-6px}.media-frame.mode-grid .selected.attachment{box-shadow:inset 0 0 0 5px #f0f0f1,inset 0 0 0 7px #c3c4c7}.media-frame.mode-grid .attachment.details{box-shadow:inset 0 0 0 3px #f0f0f1,inset 0 0 0 7px #4f94d4}.media-frame.mode-grid.mode-select .attachment .thumbnail{opacity:.65}.media-frame.mode-select .attachment.selected .thumbnail{opacity:1}.media-frame.mode-grid .media-toolbar{margin-bottom:15px;height:auto}.media-frame.mode-grid .media-toolbar select{margin:0 10px 0 0}.media-frame.mode-grid.mode-edit .media-toolbar-secondary>.select-mode-toggle-button{margin:0 8px 0 0;vertical-align:middle}.media-frame.mode-grid .attachments-browser .bulk-select{display:inline-block;margin:0 10px 0 0}.media-frame.mode-grid .search{margin-top:0}.media-frame-content .media-search-input-label{vertical-align:baseline}.attachments-browser .media-toolbar-secondary>.media-button{margin-right:10px}.media-frame.mode-select .attachments-browser.fixed .media-toolbar{position:fixed;top:32px;left:auto;right:20px;margin-top:0}.media-frame.mode-grid .attachments-browser{padding:0}.media-frame.mode-grid .attachments-browser .attachments{padding:2px}.media-frame.mode-grid .attachments-browser .no-media{color:#646970;font-size:18px;font-style:normal;margin:0;padding:100px 0 0;text-align:center}.edit-attachment-frame{display:block;height:100%;width:100%}.edit-attachment-frame .edit-media-header{overflow:hidden}.upload-php .media-modal-close .media-modal-icon:before{content:"\f335";font-size:22px}.edit-attachment-frame .edit-media-header .left,.edit-attachment-frame .edit-media-header .right,.upload-php .media-modal-close{cursor:pointer;color:#787c82;background-color:transparent;height:50px;width:50px;padding:0;position:absolute;text-align:center;border:0;border-left:1px solid #dcdcde;transition:color .1s ease-in-out,background .1s ease-in-out}.upload-php .media-modal-close{top:0;right:0}.edit-attachment-frame .edit-media-header .left{right:102px}.edit-attachment-frame .edit-media-header .right{right:51px}.edit-attachment-frame .media-frame-title{left:0;right:150px}.edit-attachment-frame .edit-media-header .left:before,.edit-attachment-frame .edit-media-header .right:before{font:normal 20px/50px dashicons!important;display:inline;font-weight:300}.edit-attachment-frame .edit-media-header .left:focus,.edit-attachment-frame .edit-media-header .left:hover,.edit-attachment-frame .edit-media-header .right:focus,.edit-attachment-frame .edit-media-header .right:hover,.upload-php .media-modal-close:focus,.upload-php .media-modal-close:hover{background:#dcdcde;border-color:#c3c4c7;color:#000;outline:0;box-shadow:none}.edit-attachment-frame .edit-media-header .left:focus,.edit-attachment-frame .edit-media-header .right:focus,.upload-php .media-modal-close:focus{outline:2px solid transparent;outline-offset:-2px}.upload-php .media-modal-close:focus .media-modal-icon:before,.upload-php .media-modal-close:hover .media-modal-icon:before{color:#000}.edit-attachment-frame .edit-media-header .left:before{content:"\f341"}.edit-attachment-frame .edit-media-header .right:before{content:"\f345"}.edit-attachment-frame .edit-media-header [disabled],.edit-attachment-frame .edit-media-header [disabled]:hover{color:#c3c4c7;background:inherit;cursor:default}.edit-attachment-frame .media-frame-content,.edit-attachment-frame .media-frame-router{left:0}.edit-attachment-frame .media-frame-content{border-bottom:none;bottom:0;top:50px}.edit-attachment-frame .attachment-details{position:absolute;overflow:auto;top:0;bottom:0;right:0;left:0;box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1)}.edit-attachment-frame .attachment-media-view{float:left;width:65%;height:100%}.edit-attachment-frame .attachment-media-view .thumbnail{box-sizing:border-box;padding:16px;height:100%}.edit-attachment-frame .attachment-media-view .details-image{display:block;margin:0 auto 16px;max-width:100%;max-height:90%;max-height:calc(100% - 42px);background-image:linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:0 0,10px 10px;background-size:20px 20px}.edit-attachment-frame .attachment-media-view .details-image.icon{background:0 0}.edit-attachment-frame .attachment-media-view .attachment-actions{text-align:center}.edit-attachment-frame .wp-media-wrapper{margin-bottom:12px}.edit-attachment-frame input,.edit-attachment-frame textarea{padding:4px 8px;line-height:1.42857143}.edit-attachment-frame .attachment-info{overflow:auto;box-sizing:border-box;margin-bottom:0;padding:12px 16px 0;width:35%;height:100%;box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1);border-bottom:0;border-left:1px solid #dcdcde;background:#f6f7f7}.edit-attachment-frame .attachment-info .details,.edit-attachment-frame .attachment-info .settings{position:relative;overflow:hidden;float:none;margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid #dcdcde}.edit-attachment-frame .attachment-info .filename{font-weight:400;color:#646970}.edit-attachment-frame .attachment-info .thumbnail{margin-bottom:12px}.attachment-info .actions{margin-bottom:16px}.attachment-info .actions a{display:inline;text-decoration:none}.copy-to-clipboard-container{display:flex;align-items:center;margin-top:8px;clear:both}.copy-to-clipboard-container .copy-attachment-url{white-space:normal}.copy-to-clipboard-container .success{color:#007017;margin-left:8px}.wp_attachment_details .attachment-alt-text{margin-bottom:5px}.wp_attachment_details #attachment_alt{max-width:500px;height:3.28571428em}.wp_attachment_details .attachment-alt-text-description{margin-top:5px}.wp_attachment_details label[for=content]{font-size:13px;line-height:1.5;margin:1em 0}.wp_attachment_details #attachment_caption{height:4em}.describe .image-editor{vertical-align:top}.imgedit-wrap{position:relative;padding-top:10px}.image-editor fieldset,.image-editor p{margin:8px 0}.image-editor legend{margin-bottom:5px}.describe .imgedit-wrap .image-editor{padding:0 5px}.wp_attachment_holder div.updated{margin-top:0}.wp_attachment_holder .imgedit-wrap>div{height:auto}.imgedit-panel-content{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:20px}.imgedit-settings{max-width:240px}.imgedit-group-controls>*{display:none}.imgedit-panel-active .imgedit-group-controls>*{display:block}.wp_attachment_holder .imgedit-wrap .image-editor{float:right;width:250px}.image-editor input{margin-top:0;vertical-align:middle}.imgedit-wait{position:absolute;top:0;bottom:0;width:100%;background:#fff;opacity:.7;display:none}.imgedit-wait:before{content:"";display:block;width:20px;height:20px;position:absolute;left:50%;top:50%;margin:-10px 0 0 -10px;background:transparent url(../images/spinner.gif) no-repeat center;background-size:20px 20px;transform:translateZ(0)}.no-float{float:none}.image-editor .disabled,.media-disabled{color:#a7aaad}.A1B1{overflow:hidden}.A1B1 .button,.wp_attachment_image .button{float:left}.no-js .wp_attachment_image .button{display:none}.A1B1 .spinner,.wp_attachment_image .spinner{float:left}.imgedit-menu .note-no-rotate{clear:both;margin:0;padding:1em 0 0}.image-editor .imgedit-menu .button{display:inline-block;width:auto;min-height:28px;font-size:13px;line-height:2;padding:0 10px}.imgedit-menu .button:after,.imgedit-menu .button:before{font:normal 16px/1 dashicons;margin-right:8px;speak:never;vertical-align:middle;position:relative;top:-2px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.imgedit-menu .imgedit-rotate.button:after{content:'\f140';margin-left:2px;margin-right:0}.imgedit-menu .imgedit-rotate.button[aria-expanded=true]:after{content:'\f142'}.imgedit-menu .button.disabled{color:#a7aaad;border-color:#dcdcde;background:#f6f7f7;box-shadow:none;text-shadow:0 1px 0 #fff;cursor:default;transform:none}.imgedit-crop:before{content:"\f165"}.imgedit-scale:before{content:"\f211"}.imgedit-rotate:before{content:"\f167"}.imgedit-undo:before{content:"\f171"}.imgedit-redo:before{content:"\f172"}.imgedit-crop-wrap{position:relative}.imgedit-crop-wrap img{background-image:linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:0 0,10px 10px;background-size:20px 20px}.imgedit-crop-wrap{padding:20px;background-image:linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:0 0,10px 10px;background-size:20px 20px}.imgedit-crop{margin:0 8px 0 0}.imgedit-rotate{margin:0 8px 0 3px}.imgedit-undo{margin:0 3px}.imgedit-redo{margin:0 8px 0 3px}.imgedit-thumbnail-preview-group{display:flex;flex-wrap:wrap;column-gap:10px}.imgedit-thumbnail-preview{margin:10px 8px 0 0}.imgedit-thumbnail-preview-caption{display:block}#poststuff .imgedit-group-top h2{display:inline-block;margin:0;padding:0;font-size:14px;line-height:1.4}#poststuff .imgedit-group-top .button-link{text-decoration:none;color:#1d2327}.imgedit-applyto .imgedit-label{display:block;padding:.5em 0 0}.imgedit-help,.imgedit-popup-menu{display:none;padding-bottom:8px}.imgedit-panel-tools>.imgedit-menu{display:flex;column-gap:4px;align-items:flex-start;flex-wrap:wrap}.imgedit-popup-menu{width:calc(100% - 20px);position:absolute;background:#fff;padding:10px;box-shadow:0 3px 6px rgba(0,0,0,.3)}.image-editor .imgedit-menu .imgedit-popup-menu button{display:block;margin:2px 0;width:100%;white-space:break-spaces;line-height:1.5;padding-top:3px;padding-bottom:2px}.imgedit-rotate-menu-container{position:relative}.imgedit-help.imgedit-restore{padding-bottom:0}.image-editor .imgedit-settings .imgedit-help-toggle,.image-editor .imgedit-settings .imgedit-help-toggle:active,.image-editor .imgedit-settings .imgedit-help-toggle:hover{border:1px solid transparent;margin:-1px 0 0 -1px;padding:0;background:0 0;color:#2271b1;font-size:20px;line-height:1;cursor:pointer;box-sizing:content-box;box-shadow:none}.image-editor .imgedit-settings .imgedit-help-toggle:focus{color:#2271b1;border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}.form-table td.imgedit-response{padding:0}.imgedit-submit-btn{margin-left:20px}.imgedit-wrap .nowrap{white-space:nowrap;font-size:12px;line-height:inherit}span.imgedit-scale-warn{display:flex;align-items:center;margin:4px;gap:4px;color:#b32d2e;font-style:normal;visibility:hidden;vertical-align:middle}.imgedit-save-target{margin:8px 0}.imgedit-save-target legend{font-weight:600}.imgedit-group{margin-bottom:20px}.image-editor .imgedit-original-dimensions{display:inline-block}.image-editor .imgedit-crop-ratio input[type=number],.image-editor .imgedit-crop-ratio input[type=text],.image-editor .imgedit-crop-sel input[type=number],.image-editor .imgedit-crop-sel input[type=text],.image-editor .imgedit-scale-controls input[type=number],.image-editor .imgedit-scale-controls input[type=text]{width:80px;font-size:14px;padding:0 8px}.imgedit-separator{display:inline-block;width:7px;text-align:center;font-size:13px;color:#3c434a}.image-editor .imgedit-scale-button-wrapper{margin-top:.3077em;display:block}.image-editor .imgedit-scale-controls .button{margin-bottom:0}audio,video{display:inline-block;max-width:100%}.wp-core-ui .mejs-container{width:100%;max-width:100%}.wp-core-ui .mejs-container *{box-sizing:border-box}.wp-core-ui .mejs-time{box-sizing:content-box}@media print,(min-resolution:120dpi){.imgedit-wait:before{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){.edit-attachment-frame input,.edit-attachment-frame textarea{line-height:1.5}.wp_attachment_details label[for=content]{font-size:14px;line-height:1.5}.wp_attachment_details textarea{line-height:1.5}.wp_attachment_details #attachment_alt{height:3.375em}.media-upload-form .media-item .error,.media-upload-form .media-item.error{font-size:13px;line-height:1.5}.media-upload-form .media-item.error{padding:1px 10px}.media-upload-form .media-item .error{padding:10px 0 10px 12px}.image-editor .imgedit-crop-ratio input[type=text],.image-editor .imgedit-crop-sel input[type=text],.image-editor .imgedit-scale input[type=text]{font-size:16px;padding:6px 10px}.wp_attachment_holder .imgedit-wrap .image-editor,.wp_attachment_holder .imgedit-wrap .imgedit-panel-content{float:none;width:auto;max-width:none;padding-bottom:16px}.copy-to-clipboard-container .success{font-size:14px}.imgedit-crop-wrap img{width:100%}.media-modal .imgedit-wrap .image-editor,.media-modal .imgedit-wrap .imgedit-panel-content{position:initial!important}.media-modal .imgedit-wrap .image-editor{box-sizing:border-box;width:100%!important}.image-editor .imgedit-scale-button-wrapper{display:inline-block}}@media only screen and (max-width:600px){.media-item-wrapper{grid-template-columns:1fr}}@media only screen and (max-width:1120px){#wp-media-grid .wp-filter .attachment-filters{max-width:100%}}@media only screen and (max-width:1000px){.wp-filter p.search-box{float:none;width:100%;margin-bottom:20px;display:flex;flex-wrap:nowrap;column-gap:0}.wp-filter p.search-box #media-search-input{width:100%}}@media only screen and (max-width:782px){.media-frame.mode-select .attachments-browser.fixed .media-toolbar{top:46px;right:10px}}@media only screen and (max-width:600px){.media-frame.mode-select .attachments-browser.fixed .media-toolbar{top:0}}@media only screen and (max-width:480px){.edit-attachment-frame .media-frame-title{right:110px}.edit-attachment-frame .edit-media-header .left,.edit-attachment-frame .edit-media-header .right,.upload-php .media-modal-close{width:40px;height:40px}.edit-attachment-frame .edit-media-header .left:before,.edit-attachment-frame .edit-media-header .right:before{line-height:40px!important}.edit-attachment-frame .edit-media-header .left{right:82px}.edit-attachment-frame .edit-media-header .right{right:41px}.edit-attachment-frame .media-frame-content{top:40px}.edit-attachment-frame .attachment-media-view{float:none;height:auto;width:100%}.edit-attachment-frame .attachment-info{height:auto;width:100%}}@media only screen and (max-width:640px),screen and (max-height:400px){.upload-php .mode-grid .media-sidebar{max-width:100%}}@media only screen and (max-width:375px){.media-item .attachment-tools{align-items:baseline}.media-item .edit-attachment.copy-to-clipboard-container{flex-direction:column}.copy-to-clipboard-container .success{line-height:normal;margin-top:10px}} \ No newline at end of file
diff --git a/wp-admin/css/nav-menus-rtl.css b/wp-admin/css/nav-menus-rtl.css
index 7575c8d..3cb9870 100644
--- a/wp-admin/css/nav-menus-rtl.css
+++ b/wp-admin/css/nav-menus-rtl.css
@@ -22,6 +22,7 @@ ul.add-menu-item-tabs li {
#nav-menu-meta .accordion-section-content {
padding: 18px 13px;
+ resize: vertical;
}
#nav-menu-meta .button-controls {
@@ -49,6 +50,26 @@ ul.add-menu-item-tabs li {
#menu-settings-column .inside {
clear: both;
margin: 10px 0 0;
+ height: 100%;
+ max-height: inherit;
+}
+
+#menu-settings-column .categorydiv,
+#menu-settings-column .customlinkdiv,
+#menu-settings-column .posttypediv,
+#menu-settings-column .taxonomydiv {
+ max-height: inherit;
+ height: 100%;
+}
+
+#menu-settings-column .wp-tab-panel,
+#menu-settings-column .categorydiv div.tabs-panel,
+#menu-settings-column .customlinkdiv div.tabs-panel,
+#menu-settings-column .posttypediv div.tabs-panel,
+#menu-settings-column .taxonomydiv div.tabs-panel {
+ /* Allow space for content after tab panels in nav menu editor. */
+ max-height: calc( 100% - 75px );
+ height: 100%;
}
.metabox-holder-disabled .postbox,
@@ -175,7 +196,6 @@ input.bulk-select-switcher:focus + .bulk-select-button-label {
}
.bulk-actions input.menu-items-delete {
- -webkit-appearance: none;
appearance: none;
font-size: inherit;
border: 0;
@@ -705,7 +725,6 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
.no-js.nav-menus-php .item-edit .screen-reader-text {
position: static;
- -webkit-clip-path: none;
clip-path: none;
width: auto;
height: auto;
diff --git a/wp-admin/css/nav-menus-rtl.min.css b/wp-admin/css/nav-menus-rtl.min.css
index 8e7cb95..4b6996d 100644
--- a/wp-admin/css/nav-menus-rtl.min.css
+++ b/wp-admin/css/nav-menus-rtl.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-.no-js #message{display:block}ul.add-menu-item-tabs li{padding:3px 8px 4px 5px}.accordion-section ul.add-menu-item-tabs,.accordion-section ul.category-tabs,.accordion-section ul.wp-tab-bar{margin:0}.accordion-section .categorychecklist{margin:13px 0}#nav-menu-meta .accordion-section-content{padding:18px 13px}#nav-menu-meta .button-controls{margin-bottom:0}.has-no-menu-item .button-controls{display:none}#nav-menus-frame{margin-right:300px;margin-top:23px}#wpbody-content #menu-settings-column{display:inline;width:281px;margin-right:-300px;clear:both;float:right;padding-top:0}#menu-settings-column .inside{clear:both;margin:10px 0 0}.metabox-holder-disabled .accordion-section-content,.metabox-holder-disabled .accordion-section-title,.metabox-holder-disabled .postbox{opacity:.5}.metabox-holder-disabled .button-controls .select-all{display:none}#wpbody{position:relative}.is-submenu{color:#50575e;font-style:italic;font-weight:400;margin-right:4px}.manage-menus{margin-top:23px;padding:10px;overflow:hidden;background:#fff}.manage-menus .selected-menu,.manage-menus .submit-btn,.manage-menus select,.nav-menus-php .add-new-menu-action{display:inline-block;margin-left:3px;vertical-align:middle}.manage-menus select,.menu-location-menus select{max-width:100%}.menu-edit #post-body-content h3{margin:1em 0 10px}#nav-menu-bulk-actions-top{margin:1em 0}#nav-menu-bulk-actions-bottom{margin:1em 0;margin:calc(1em + 9px) 0}.bulk-actions input.button{margin-left:12px}.bulk-select-button{position:relative;display:inline-block;padding:0 10px;font-size:13px;line-height:2.15384615;height:auto;min-height:30px;background:#f6f7f7;vertical-align:top;border:1px solid #dcdcde;margin:0;cursor:pointer;border-radius:3px;white-space:nowrap;box-sizing:border-box}.bulk-selection .bulk-select-button{color:#2271b1;border-color:#2271b1;background:#f6f7f7;vertical-align:top}#pending-menu-items-to-delete{display:none}.bulk-selection #pending-menu-items-to-delete{display:block;margin-top:1em}#pending-menu-items-to-delete p{margin-bottom:0}#pending-menu-items-to-delete ul{margin-top:0;list-style:none}#pending-menu-items-to-delete ul li{display:inline}input.bulk-select-switcher+.bulk-select-button-label{vertical-align:inherit}label.bulk-select-button:active,label.bulk-select-button:focus-within,label.bulk-select-button:hover{background:#f0f0f1;border-color:#0a4b78;color:#0a4b78}input.bulk-select-switcher:focus+.bulk-select-button-label{color:#0a4b78}.bulk-actions input.menu-items-delete{-webkit-appearance:none;appearance:none;font-size:inherit;border:0;line-height:2.1em;background:0 0;cursor:pointer;text-decoration:underline;color:#b32d2e}.bulk-actions input.menu-items-delete:hover{color:#b32d2e;border:none}.bulk-actions input.menu-items-delete.disabled{display:none}.menu-settings{border-top:1px solid #f0f0f1;margin-top:2em}.menu-settings-group{margin:0 0 10px;overflow:hidden;padding-right:20%}.menu-settings-group:last-of-type{margin-bottom:0}.menu-settings-input{float:right;margin:0;width:100%}.menu-settings-group-name{float:right;clear:both;width:25%;padding:3px 0 0;margin-right:-25%}.menu-settings label{vertical-align:baseline}.menu-edit .checkbox-input{margin-top:4px}.theme-location-set{color:#646970;font-size:11px}#menu-management-liquid{float:right;min-width:100%;margin-top:3px}#menu-management{position:relative;margin-left:20px;margin-top:-3px;width:100%}#menu-management .menu-edit{margin-bottom:20px}.nav-menus-php #post-body{padding:0 10px;border-top:1px solid #fff;border-bottom:1px solid #dcdcde;background:#fff}#nav-menu-footer,#nav-menu-header{padding:0 10px;background:#f6f7f7}#nav-menu-header{border-bottom:1px solid #dcdcde;margin-bottom:0}#nav-menu-header .menu-name-label{display:inline-block;vertical-align:middle;margin-left:7px}.nav-menus-php #post-body div.error,.nav-menus-php #post-body div.updated{margin:0}.nav-menus-php #post-body-content{position:relative;float:none}.nav-menus-php #post-body-content .post-body-plain{margin-bottom:0}#menu-management .menu-add-new abbr{font-weight:600}#select-nav-menu-container{text-align:left;padding:0 10px 3px;margin-bottom:5px}#select-nav-menu{width:100px;display:inline}#menu-name-label{margin-top:-2px}.widefat .menu-locations .menu-location-title{padding:13px 10px 0}.menu-location-title label{font-weight:600}.menu-location-menus select{float:right}#locations-nav-menu-wrapper{padding:5px 0}.locations-nav-menu-select select{float:right;width:160px;margin-left:5px}.locations-row-links{float:right;margin:6px 6px 0 0}.locations-add-menu-link,.locations-edit-menu-link{margin:0 3px}.locations-edit-menu-link{padding-left:3px;border-left:1px solid #c3c4c7}#menu-management .inside{padding:0 10px}.customlinkdiv .menu-item-textbox,.postbox .howto input{width:180px;float:left}.accordion-container .outer-border{margin:0}.customlinkdiv p{margin-top:0}#nav-menu-theme-locations .howto select{width:100%}#nav-menu-theme-locations .button-controls{text-align:left}.add-menu-item-view-all{height:400px}#menu-container .submit{margin:0 0 10px;padding:0}#cancel-save{text-decoration:underline;font-size:12px;margin-right:20px;margin-top:5px}.button-primary.right,.button-secondary.right,.button.right{float:left}.list-controls{float:right;margin-top:5px}.add-to-menu{float:left}.button-controls{clear:both;margin:10px 0}.hide-all,.show-all{cursor:pointer}.hide-all{display:none}#menu-name{width:270px;vertical-align:middle}#manage-menu .inside{padding:0}#available-links dt{display:block}#add-custom-link .howto{font-size:12px}#add-custom-link label span{display:block;float:right;margin-top:5px;padding-left:5px}.menu-item-textbox{width:180px}.customlinkdiv label,.nav-menus-php .howto span{float:right;margin-top:6px}.quick-search{width:190px}.quick-search-wrap .spinner{float:none;margin:-3px 0 0 -10px}.nav-menus-php .list-wrap{display:none;clear:both;margin-bottom:10px}.nav-menus-php .postbox p.submit{margin-bottom:0}.nav-menus-php .list li{display:none;margin:0 0 5px}.nav-menus-php .list li .menu-item-title{cursor:pointer;display:block}.nav-menus-php .list li .menu-item-title input{margin-left:3px;margin-top:-3px}.menu-item-title input[type=checkbox]{display:inline-block;margin-top:-4px}.menu-item-title .post-state{font-weight:600}#menu-container .inside{padding-bottom:10px}.menu{padding-top:1em}#menu-to-edit{margin:0;padding:.1em 0}.menu ul{width:100%}.menu li{margin-bottom:0;position:relative}.menu-item-bar{clear:both;line-height:1.5;position:relative;margin:9px 0 0}.menu-item-bar .menu-item-handle{border:1px solid #dcdcde;position:relative;padding:10px 15px;height:auto;min-height:20px;max-width:382px;line-height:2.30769230;overflow:hidden;word-wrap:break-word}.menu-item-bar .menu-item-handle:hover{border-color:#8c8f94}#menu-to-edit .menu-item-invalid .menu-item-handle{background:#fcf0f1;border-color:#d63638}.no-js .menu-item-edit-active .item-edit{display:none}.js .menu-item-handle{cursor:move}.menu li.deleting .menu-item-handle{background-image:none;background-color:#f86368}.menu-item-handle .item-title{font-size:13px;font-weight:600;line-height:1.53846153;display:block;margin-left:13em}.menu-item-handle .menu-item-checkbox{display:none}.bulk-selection .menu-item-handle .menu-item-checkbox{display:inline-block;margin-left:6px}.menu-item-handle .menu-item-title.no-title{color:#646970}li.menu-item.ui-sortable-helper .menu-item-bar{margin-top:0}li.menu-item.ui-sortable-helper .menu-item-transport .menu-item-bar{margin-top:9px}.menu .sortable-placeholder{height:35px;width:410px;margin-top:9px}.menu-item .menu-item-transport:empty{display:none}.menu-item-depth-0{margin-right:0}.menu-item-depth-1{margin-right:30px}.menu-item-depth-2{margin-right:60px}.menu-item-depth-3{margin-right:90px}.menu-item-depth-4{margin-right:120px}.menu-item-depth-5{margin-right:150px}.menu-item-depth-6{margin-right:180px}.menu-item-depth-7{margin-right:210px}.menu-item-depth-8{margin-right:240px}.menu-item-depth-9{margin-right:270px}.menu-item-depth-10{margin-right:300px}.menu-item-depth-11{margin-right:330px}.menu-item-depth-0 .menu-item-transport{margin-right:0}.menu-item-depth-1 .menu-item-transport{margin-right:-30px}.menu-item-depth-2 .menu-item-transport{margin-right:-60px}.menu-item-depth-3 .menu-item-transport{margin-right:-90px}.menu-item-depth-4 .menu-item-transport{margin-right:-120px}.menu-item-depth-5 .menu-item-transport{margin-right:-150px}.menu-item-depth-6 .menu-item-transport{margin-right:-180px}.menu-item-depth-7 .menu-item-transport{margin-right:-210px}.menu-item-depth-8 .menu-item-transport{margin-right:-240px}.menu-item-depth-9 .menu-item-transport{margin-right:-270px}.menu-item-depth-10 .menu-item-transport{margin-right:-300px}.menu-item-depth-11 .menu-item-transport{margin-right:-330px}body.menu-max-depth-0{min-width:950px!important}body.menu-max-depth-1{min-width:980px!important}body.menu-max-depth-2{min-width:1010px!important}body.menu-max-depth-3{min-width:1040px!important}body.menu-max-depth-4{min-width:1070px!important}body.menu-max-depth-5{min-width:1100px!important}body.menu-max-depth-6{min-width:1130px!important}body.menu-max-depth-7{min-width:1160px!important}body.menu-max-depth-8{min-width:1190px!important}body.menu-max-depth-9{min-width:1220px!important}body.menu-max-depth-10{min-width:1250px!important}body.menu-max-depth-11{min-width:1280px!important}.item-type{display:inline-block;padding:12px 16px;color:#646970;font-size:12px;line-height:1.5}.item-controls{font-size:12px;position:absolute;left:20px;top:-1px}.item-controls a{text-decoration:none}.item-controls a:hover{cursor:pointer}.item-controls .item-order{padding-left:10px}.nav-menus-php .item-edit{position:absolute;left:-20px;top:0;display:block;width:30px;height:40px;outline:0}.no-js.nav-menus-php .item-edit{position:static;float:left;width:auto;height:auto;margin:12px 0 12px -10px;padding:0;color:#2271b1;text-decoration:underline;font-size:12px;line-height:1.5}.no-js.nav-menus-php .item-edit .screen-reader-text{position:static;-webkit-clip-path:none;clip-path:none;width:auto;height:auto;margin:0}.nav-menus-php .item-edit:before{margin-top:10px;margin-right:4px;width:20px;border-radius:50%;text-indent:-1px}.no-js.nav-menus-php .item-edit:before{display:none}.rtl .nav-menus-php .item-edit:before{text-indent:1px}.js.nav-menus-php .item-edit:focus{box-shadow:none}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.menu-instructions-inactive{display:none}.menu-item-settings{display:block;max-width:392px;padding:10px;position:relative;z-index:10;border:1px solid #c3c4c7;border-top:none;box-shadow:0 1px 1px rgba(0,0,0,.04)}.menu-item-settings .field-move{margin:3px 0 5px;line-height:1.5}.field-move-visual-label{float:right;margin-left:4px}.menu-item-settings .field-move .button-link{display:none;margin:0 2px}.menu-item-edit-active .menu-item-settings{display:block}.menu-item-edit-inactive .menu-item-settings{display:none}.add-menu-item-pagelinks{margin:.5em -10px;text-align:center}.add-menu-item-pagelinks .page-numbers{display:inline-block;min-width:20px}.add-menu-item-pagelinks .page-numbers.dots{min-width:0}.link-to-original{display:block;margin:0 0 15px;padding:3px 5px 5px;border:1px solid #dcdcde;color:#646970;font-size:12px}.link-to-original a{padding-right:4px;font-style:normal}.hidden-field{display:none}.menu-item-settings .description-thin,.menu-item-settings .description-wide{margin-left:10px;float:right}.description-thin{width:calc(50% - 5px)}.menu-item-settings .description-thin+.description-thin{margin-left:0}.description-wide{width:100%}.menu-item-actions{padding-top:15px;padding-bottom:7px}#cancel-save{cursor:pointer}.nav-menus-php .major-publishing-actions{padding:10px 0;display:flex;align-items:center}.nav-menus-php .major-publishing-actions>*{margin-left:10px}.nav-menus-php .major-publishing-actions .form-invalid{padding-right:4px;margin-right:-4px}#menu-item-name-wrap,#menu-item-url-wrap,#nav-menus-frame,.button-controls{display:block}@media only screen and (min-width:769px) and (max-width:1000px){body.menu-max-depth-0{min-width:0!important}#menu-management-liquid{width:100%}.nav-menus-php #post-body-content{min-width:0}}@media screen and (max-width:782px){body.nav-menus-php,body.wp-customizer{min-width:0!important}#nav-menus-frame{margin-right:0;float:none;width:100%}#wpbody-content #menu-settings-column{display:block;width:100%;float:none;margin-right:0}#side-sortables .add-menu-item-tabs{margin:15px 0 14px}ul.add-menu-item-tabs li.tabs{padding:13px 15px 14px}.nav-menus-php .customlinkdiv .howto input{width:65%}.nav-menus-php .quick-search{width:85%}#menu-management-liquid{margin-top:25px}.nav-menus-php .menu-name-label.howto span{margin-top:13px}#menu-name{width:100%}.nav-menus-php #nav-menu-header .major-publishing-actions .publishing-action{padding-top:1em}.nav-menus-php .delete-action{font-size:14px;line-height:2.14285714}.description-wide,.menu-item-bar .menu-item-handle,.menu-item-settings{width:auto}.menu-item-settings{padding:10px}.menu-item-settings .description-thin,.menu-item-settings .description-wide{width:100%}.menu-item-settings input{width:100%}.menu-item-settings input[type=checkbox],.menu-item-settings input[type=radio]{width:25px}.menu-settings-group{padding-right:0;overflow:visible}.menu-settings-group-name{float:none;width:auto;margin-right:0;margin-bottom:15px}.menu-settings-input{float:none;margin-bottom:15px}.menu-edit .checkbox-input{margin-top:0}.manage-menus select{margin:.5em 0}.wp-core-ui .manage-menus .button{margin-bottom:0}.widefat .menu-locations .menu-location-title{padding-top:16px}}@media only screen and (min-width:783px){@supports (position:sticky) and (scroll-margin-bottom:130px){#nav-menu-footer{position:sticky;bottom:0;z-index:10;box-shadow:0 -1px 0 0 #ddd}#save_menu_header{display:none}}}@media only screen and (max-width:768px){#menu-locations-wrap .widefat{width:100%}.bulk-select-button{padding:5px 10px}} \ No newline at end of file
+.no-js #message{display:block}ul.add-menu-item-tabs li{padding:3px 8px 4px 5px}.accordion-section ul.add-menu-item-tabs,.accordion-section ul.category-tabs,.accordion-section ul.wp-tab-bar{margin:0}.accordion-section .categorychecklist{margin:13px 0}#nav-menu-meta .accordion-section-content{padding:18px 13px;resize:vertical}#nav-menu-meta .button-controls{margin-bottom:0}.has-no-menu-item .button-controls{display:none}#nav-menus-frame{margin-right:300px;margin-top:23px}#wpbody-content #menu-settings-column{display:inline;width:281px;margin-right:-300px;clear:both;float:right;padding-top:0}#menu-settings-column .inside{clear:both;margin:10px 0 0;height:100%;max-height:inherit}#menu-settings-column .categorydiv,#menu-settings-column .customlinkdiv,#menu-settings-column .posttypediv,#menu-settings-column .taxonomydiv{max-height:inherit;height:100%}#menu-settings-column .categorydiv div.tabs-panel,#menu-settings-column .customlinkdiv div.tabs-panel,#menu-settings-column .posttypediv div.tabs-panel,#menu-settings-column .taxonomydiv div.tabs-panel,#menu-settings-column .wp-tab-panel{max-height:calc(100% - 75px);height:100%}.metabox-holder-disabled .accordion-section-content,.metabox-holder-disabled .accordion-section-title,.metabox-holder-disabled .postbox{opacity:.5}.metabox-holder-disabled .button-controls .select-all{display:none}#wpbody{position:relative}.is-submenu{color:#50575e;font-style:italic;font-weight:400;margin-right:4px}.manage-menus{margin-top:23px;padding:10px;overflow:hidden;background:#fff}.manage-menus .selected-menu,.manage-menus .submit-btn,.manage-menus select,.nav-menus-php .add-new-menu-action{display:inline-block;margin-left:3px;vertical-align:middle}.manage-menus select,.menu-location-menus select{max-width:100%}.menu-edit #post-body-content h3{margin:1em 0 10px}#nav-menu-bulk-actions-top{margin:1em 0}#nav-menu-bulk-actions-bottom{margin:1em 0;margin:calc(1em + 9px) 0}.bulk-actions input.button{margin-left:12px}.bulk-select-button{position:relative;display:inline-block;padding:0 10px;font-size:13px;line-height:2.15384615;height:auto;min-height:30px;background:#f6f7f7;vertical-align:top;border:1px solid #dcdcde;margin:0;cursor:pointer;border-radius:3px;white-space:nowrap;box-sizing:border-box}.bulk-selection .bulk-select-button{color:#2271b1;border-color:#2271b1;background:#f6f7f7;vertical-align:top}#pending-menu-items-to-delete{display:none}.bulk-selection #pending-menu-items-to-delete{display:block;margin-top:1em}#pending-menu-items-to-delete p{margin-bottom:0}#pending-menu-items-to-delete ul{margin-top:0;list-style:none}#pending-menu-items-to-delete ul li{display:inline}input.bulk-select-switcher+.bulk-select-button-label{vertical-align:inherit}label.bulk-select-button:active,label.bulk-select-button:focus-within,label.bulk-select-button:hover{background:#f0f0f1;border-color:#0a4b78;color:#0a4b78}input.bulk-select-switcher:focus+.bulk-select-button-label{color:#0a4b78}.bulk-actions input.menu-items-delete{appearance:none;font-size:inherit;border:0;line-height:2.1em;background:0 0;cursor:pointer;text-decoration:underline;color:#b32d2e}.bulk-actions input.menu-items-delete:hover{color:#b32d2e;border:none}.bulk-actions input.menu-items-delete.disabled{display:none}.menu-settings{border-top:1px solid #f0f0f1;margin-top:2em}.menu-settings-group{margin:0 0 10px;overflow:hidden;padding-right:20%}.menu-settings-group:last-of-type{margin-bottom:0}.menu-settings-input{float:right;margin:0;width:100%}.menu-settings-group-name{float:right;clear:both;width:25%;padding:3px 0 0;margin-right:-25%}.menu-settings label{vertical-align:baseline}.menu-edit .checkbox-input{margin-top:4px}.theme-location-set{color:#646970;font-size:11px}#menu-management-liquid{float:right;min-width:100%;margin-top:3px}#menu-management{position:relative;margin-left:20px;margin-top:-3px;width:100%}#menu-management .menu-edit{margin-bottom:20px}.nav-menus-php #post-body{padding:0 10px;border-top:1px solid #fff;border-bottom:1px solid #dcdcde;background:#fff}#nav-menu-footer,#nav-menu-header{padding:0 10px;background:#f6f7f7}#nav-menu-header{border-bottom:1px solid #dcdcde;margin-bottom:0}#nav-menu-header .menu-name-label{display:inline-block;vertical-align:middle;margin-left:7px}.nav-menus-php #post-body div.error,.nav-menus-php #post-body div.updated{margin:0}.nav-menus-php #post-body-content{position:relative;float:none}.nav-menus-php #post-body-content .post-body-plain{margin-bottom:0}#menu-management .menu-add-new abbr{font-weight:600}#select-nav-menu-container{text-align:left;padding:0 10px 3px;margin-bottom:5px}#select-nav-menu{width:100px;display:inline}#menu-name-label{margin-top:-2px}.widefat .menu-locations .menu-location-title{padding:13px 10px 0}.menu-location-title label{font-weight:600}.menu-location-menus select{float:right}#locations-nav-menu-wrapper{padding:5px 0}.locations-nav-menu-select select{float:right;width:160px;margin-left:5px}.locations-row-links{float:right;margin:6px 6px 0 0}.locations-add-menu-link,.locations-edit-menu-link{margin:0 3px}.locations-edit-menu-link{padding-left:3px;border-left:1px solid #c3c4c7}#menu-management .inside{padding:0 10px}.customlinkdiv .menu-item-textbox,.postbox .howto input{width:180px;float:left}.accordion-container .outer-border{margin:0}.customlinkdiv p{margin-top:0}#nav-menu-theme-locations .howto select{width:100%}#nav-menu-theme-locations .button-controls{text-align:left}.add-menu-item-view-all{height:400px}#menu-container .submit{margin:0 0 10px;padding:0}#cancel-save{text-decoration:underline;font-size:12px;margin-right:20px;margin-top:5px}.button-primary.right,.button-secondary.right,.button.right{float:left}.list-controls{float:right;margin-top:5px}.add-to-menu{float:left}.button-controls{clear:both;margin:10px 0}.hide-all,.show-all{cursor:pointer}.hide-all{display:none}#menu-name{width:270px;vertical-align:middle}#manage-menu .inside{padding:0}#available-links dt{display:block}#add-custom-link .howto{font-size:12px}#add-custom-link label span{display:block;float:right;margin-top:5px;padding-left:5px}.menu-item-textbox{width:180px}.customlinkdiv label,.nav-menus-php .howto span{float:right;margin-top:6px}.quick-search{width:190px}.quick-search-wrap .spinner{float:none;margin:-3px 0 0 -10px}.nav-menus-php .list-wrap{display:none;clear:both;margin-bottom:10px}.nav-menus-php .postbox p.submit{margin-bottom:0}.nav-menus-php .list li{display:none;margin:0 0 5px}.nav-menus-php .list li .menu-item-title{cursor:pointer;display:block}.nav-menus-php .list li .menu-item-title input{margin-left:3px;margin-top:-3px}.menu-item-title input[type=checkbox]{display:inline-block;margin-top:-4px}.menu-item-title .post-state{font-weight:600}#menu-container .inside{padding-bottom:10px}.menu{padding-top:1em}#menu-to-edit{margin:0;padding:.1em 0}.menu ul{width:100%}.menu li{margin-bottom:0;position:relative}.menu-item-bar{clear:both;line-height:1.5;position:relative;margin:9px 0 0}.menu-item-bar .menu-item-handle{border:1px solid #dcdcde;position:relative;padding:10px 15px;height:auto;min-height:20px;max-width:382px;line-height:2.30769230;overflow:hidden;word-wrap:break-word}.menu-item-bar .menu-item-handle:hover{border-color:#8c8f94}#menu-to-edit .menu-item-invalid .menu-item-handle{background:#fcf0f1;border-color:#d63638}.no-js .menu-item-edit-active .item-edit{display:none}.js .menu-item-handle{cursor:move}.menu li.deleting .menu-item-handle{background-image:none;background-color:#f86368}.menu-item-handle .item-title{font-size:13px;font-weight:600;line-height:1.53846153;display:block;margin-left:13em}.menu-item-handle .menu-item-checkbox{display:none}.bulk-selection .menu-item-handle .menu-item-checkbox{display:inline-block;margin-left:6px}.menu-item-handle .menu-item-title.no-title{color:#646970}li.menu-item.ui-sortable-helper .menu-item-bar{margin-top:0}li.menu-item.ui-sortable-helper .menu-item-transport .menu-item-bar{margin-top:9px}.menu .sortable-placeholder{height:35px;width:410px;margin-top:9px}.menu-item .menu-item-transport:empty{display:none}.menu-item-depth-0{margin-right:0}.menu-item-depth-1{margin-right:30px}.menu-item-depth-2{margin-right:60px}.menu-item-depth-3{margin-right:90px}.menu-item-depth-4{margin-right:120px}.menu-item-depth-5{margin-right:150px}.menu-item-depth-6{margin-right:180px}.menu-item-depth-7{margin-right:210px}.menu-item-depth-8{margin-right:240px}.menu-item-depth-9{margin-right:270px}.menu-item-depth-10{margin-right:300px}.menu-item-depth-11{margin-right:330px}.menu-item-depth-0 .menu-item-transport{margin-right:0}.menu-item-depth-1 .menu-item-transport{margin-right:-30px}.menu-item-depth-2 .menu-item-transport{margin-right:-60px}.menu-item-depth-3 .menu-item-transport{margin-right:-90px}.menu-item-depth-4 .menu-item-transport{margin-right:-120px}.menu-item-depth-5 .menu-item-transport{margin-right:-150px}.menu-item-depth-6 .menu-item-transport{margin-right:-180px}.menu-item-depth-7 .menu-item-transport{margin-right:-210px}.menu-item-depth-8 .menu-item-transport{margin-right:-240px}.menu-item-depth-9 .menu-item-transport{margin-right:-270px}.menu-item-depth-10 .menu-item-transport{margin-right:-300px}.menu-item-depth-11 .menu-item-transport{margin-right:-330px}body.menu-max-depth-0{min-width:950px!important}body.menu-max-depth-1{min-width:980px!important}body.menu-max-depth-2{min-width:1010px!important}body.menu-max-depth-3{min-width:1040px!important}body.menu-max-depth-4{min-width:1070px!important}body.menu-max-depth-5{min-width:1100px!important}body.menu-max-depth-6{min-width:1130px!important}body.menu-max-depth-7{min-width:1160px!important}body.menu-max-depth-8{min-width:1190px!important}body.menu-max-depth-9{min-width:1220px!important}body.menu-max-depth-10{min-width:1250px!important}body.menu-max-depth-11{min-width:1280px!important}.item-type{display:inline-block;padding:12px 16px;color:#646970;font-size:12px;line-height:1.5}.item-controls{font-size:12px;position:absolute;left:20px;top:-1px}.item-controls a{text-decoration:none}.item-controls a:hover{cursor:pointer}.item-controls .item-order{padding-left:10px}.nav-menus-php .item-edit{position:absolute;left:-20px;top:0;display:block;width:30px;height:40px;outline:0}.no-js.nav-menus-php .item-edit{position:static;float:left;width:auto;height:auto;margin:12px 0 12px -10px;padding:0;color:#2271b1;text-decoration:underline;font-size:12px;line-height:1.5}.no-js.nav-menus-php .item-edit .screen-reader-text{position:static;clip-path:none;width:auto;height:auto;margin:0}.nav-menus-php .item-edit:before{margin-top:10px;margin-right:4px;width:20px;border-radius:50%;text-indent:-1px}.no-js.nav-menus-php .item-edit:before{display:none}.rtl .nav-menus-php .item-edit:before{text-indent:1px}.js.nav-menus-php .item-edit:focus{box-shadow:none}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.menu-instructions-inactive{display:none}.menu-item-settings{display:block;max-width:392px;padding:10px;position:relative;z-index:10;border:1px solid #c3c4c7;border-top:none;box-shadow:0 1px 1px rgba(0,0,0,.04)}.menu-item-settings .field-move{margin:3px 0 5px;line-height:1.5}.field-move-visual-label{float:right;margin-left:4px}.menu-item-settings .field-move .button-link{display:none;margin:0 2px}.menu-item-edit-active .menu-item-settings{display:block}.menu-item-edit-inactive .menu-item-settings{display:none}.add-menu-item-pagelinks{margin:.5em -10px;text-align:center}.add-menu-item-pagelinks .page-numbers{display:inline-block;min-width:20px}.add-menu-item-pagelinks .page-numbers.dots{min-width:0}.link-to-original{display:block;margin:0 0 15px;padding:3px 5px 5px;border:1px solid #dcdcde;color:#646970;font-size:12px}.link-to-original a{padding-right:4px;font-style:normal}.hidden-field{display:none}.menu-item-settings .description-thin,.menu-item-settings .description-wide{margin-left:10px;float:right}.description-thin{width:calc(50% - 5px)}.menu-item-settings .description-thin+.description-thin{margin-left:0}.description-wide{width:100%}.menu-item-actions{padding-top:15px;padding-bottom:7px}#cancel-save{cursor:pointer}.nav-menus-php .major-publishing-actions{padding:10px 0;display:flex;align-items:center}.nav-menus-php .major-publishing-actions>*{margin-left:10px}.nav-menus-php .major-publishing-actions .form-invalid{padding-right:4px;margin-right:-4px}#menu-item-name-wrap,#menu-item-url-wrap,#nav-menus-frame,.button-controls{display:block}@media only screen and (min-width:769px) and (max-width:1000px){body.menu-max-depth-0{min-width:0!important}#menu-management-liquid{width:100%}.nav-menus-php #post-body-content{min-width:0}}@media screen and (max-width:782px){body.nav-menus-php,body.wp-customizer{min-width:0!important}#nav-menus-frame{margin-right:0;float:none;width:100%}#wpbody-content #menu-settings-column{display:block;width:100%;float:none;margin-right:0}#side-sortables .add-menu-item-tabs{margin:15px 0 14px}ul.add-menu-item-tabs li.tabs{padding:13px 15px 14px}.nav-menus-php .customlinkdiv .howto input{width:65%}.nav-menus-php .quick-search{width:85%}#menu-management-liquid{margin-top:25px}.nav-menus-php .menu-name-label.howto span{margin-top:13px}#menu-name{width:100%}.nav-menus-php #nav-menu-header .major-publishing-actions .publishing-action{padding-top:1em}.nav-menus-php .delete-action{font-size:14px;line-height:2.14285714}.description-wide,.menu-item-bar .menu-item-handle,.menu-item-settings{width:auto}.menu-item-settings{padding:10px}.menu-item-settings .description-thin,.menu-item-settings .description-wide{width:100%}.menu-item-settings input{width:100%}.menu-item-settings input[type=checkbox],.menu-item-settings input[type=radio]{width:25px}.menu-settings-group{padding-right:0;overflow:visible}.menu-settings-group-name{float:none;width:auto;margin-right:0;margin-bottom:15px}.menu-settings-input{float:none;margin-bottom:15px}.menu-edit .checkbox-input{margin-top:0}.manage-menus select{margin:.5em 0}.wp-core-ui .manage-menus .button{margin-bottom:0}.widefat .menu-locations .menu-location-title{padding-top:16px}}@media only screen and (min-width:783px){@supports (position:sticky) and (scroll-margin-bottom:130px){#nav-menu-footer{position:sticky;bottom:0;z-index:10;box-shadow:0 -1px 0 0 #ddd}#save_menu_header{display:none}}}@media only screen and (max-width:768px){#menu-locations-wrap .widefat{width:100%}.bulk-select-button{padding:5px 10px}} \ No newline at end of file
diff --git a/wp-admin/css/nav-menus.css b/wp-admin/css/nav-menus.css
index ff586a4..7e9cf57 100644
--- a/wp-admin/css/nav-menus.css
+++ b/wp-admin/css/nav-menus.css
@@ -21,6 +21,7 @@ ul.add-menu-item-tabs li {
#nav-menu-meta .accordion-section-content {
padding: 18px 13px;
+ resize: vertical;
}
#nav-menu-meta .button-controls {
@@ -48,6 +49,26 @@ ul.add-menu-item-tabs li {
#menu-settings-column .inside {
clear: both;
margin: 10px 0 0;
+ height: 100%;
+ max-height: inherit;
+}
+
+#menu-settings-column .categorydiv,
+#menu-settings-column .customlinkdiv,
+#menu-settings-column .posttypediv,
+#menu-settings-column .taxonomydiv {
+ max-height: inherit;
+ height: 100%;
+}
+
+#menu-settings-column .wp-tab-panel,
+#menu-settings-column .categorydiv div.tabs-panel,
+#menu-settings-column .customlinkdiv div.tabs-panel,
+#menu-settings-column .posttypediv div.tabs-panel,
+#menu-settings-column .taxonomydiv div.tabs-panel {
+ /* Allow space for content after tab panels in nav menu editor. */
+ max-height: calc( 100% - 75px );
+ height: 100%;
}
.metabox-holder-disabled .postbox,
@@ -174,7 +195,6 @@ input.bulk-select-switcher:focus + .bulk-select-button-label {
}
.bulk-actions input.menu-items-delete {
- -webkit-appearance: none;
appearance: none;
font-size: inherit;
border: 0;
@@ -704,7 +724,6 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
.no-js.nav-menus-php .item-edit .screen-reader-text {
position: static;
- -webkit-clip-path: none;
clip-path: none;
width: auto;
height: auto;
diff --git a/wp-admin/css/nav-menus.min.css b/wp-admin/css/nav-menus.min.css
index 5fb5809..0e7401c 100644
--- a/wp-admin/css/nav-menus.min.css
+++ b/wp-admin/css/nav-menus.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-.no-js #message{display:block}ul.add-menu-item-tabs li{padding:3px 5px 4px 8px}.accordion-section ul.add-menu-item-tabs,.accordion-section ul.category-tabs,.accordion-section ul.wp-tab-bar{margin:0}.accordion-section .categorychecklist{margin:13px 0}#nav-menu-meta .accordion-section-content{padding:18px 13px}#nav-menu-meta .button-controls{margin-bottom:0}.has-no-menu-item .button-controls{display:none}#nav-menus-frame{margin-left:300px;margin-top:23px}#wpbody-content #menu-settings-column{display:inline;width:281px;margin-left:-300px;clear:both;float:left;padding-top:0}#menu-settings-column .inside{clear:both;margin:10px 0 0}.metabox-holder-disabled .accordion-section-content,.metabox-holder-disabled .accordion-section-title,.metabox-holder-disabled .postbox{opacity:.5}.metabox-holder-disabled .button-controls .select-all{display:none}#wpbody{position:relative}.is-submenu{color:#50575e;font-style:italic;font-weight:400;margin-left:4px}.manage-menus{margin-top:23px;padding:10px;overflow:hidden;background:#fff}.manage-menus .selected-menu,.manage-menus .submit-btn,.manage-menus select,.nav-menus-php .add-new-menu-action{display:inline-block;margin-right:3px;vertical-align:middle}.manage-menus select,.menu-location-menus select{max-width:100%}.menu-edit #post-body-content h3{margin:1em 0 10px}#nav-menu-bulk-actions-top{margin:1em 0}#nav-menu-bulk-actions-bottom{margin:1em 0;margin:calc(1em + 9px) 0}.bulk-actions input.button{margin-right:12px}.bulk-select-button{position:relative;display:inline-block;padding:0 10px;font-size:13px;line-height:2.15384615;height:auto;min-height:30px;background:#f6f7f7;vertical-align:top;border:1px solid #dcdcde;margin:0;cursor:pointer;border-radius:3px;white-space:nowrap;box-sizing:border-box}.bulk-selection .bulk-select-button{color:#2271b1;border-color:#2271b1;background:#f6f7f7;vertical-align:top}#pending-menu-items-to-delete{display:none}.bulk-selection #pending-menu-items-to-delete{display:block;margin-top:1em}#pending-menu-items-to-delete p{margin-bottom:0}#pending-menu-items-to-delete ul{margin-top:0;list-style:none}#pending-menu-items-to-delete ul li{display:inline}input.bulk-select-switcher+.bulk-select-button-label{vertical-align:inherit}label.bulk-select-button:active,label.bulk-select-button:focus-within,label.bulk-select-button:hover{background:#f0f0f1;border-color:#0a4b78;color:#0a4b78}input.bulk-select-switcher:focus+.bulk-select-button-label{color:#0a4b78}.bulk-actions input.menu-items-delete{-webkit-appearance:none;appearance:none;font-size:inherit;border:0;line-height:2.1em;background:0 0;cursor:pointer;text-decoration:underline;color:#b32d2e}.bulk-actions input.menu-items-delete:hover{color:#b32d2e;border:none}.bulk-actions input.menu-items-delete.disabled{display:none}.menu-settings{border-top:1px solid #f0f0f1;margin-top:2em}.menu-settings-group{margin:0 0 10px;overflow:hidden;padding-left:20%}.menu-settings-group:last-of-type{margin-bottom:0}.menu-settings-input{float:left;margin:0;width:100%}.menu-settings-group-name{float:left;clear:both;width:25%;padding:3px 0 0;margin-left:-25%}.menu-settings label{vertical-align:baseline}.menu-edit .checkbox-input{margin-top:4px}.theme-location-set{color:#646970;font-size:11px}#menu-management-liquid{float:left;min-width:100%;margin-top:3px}#menu-management{position:relative;margin-right:20px;margin-top:-3px;width:100%}#menu-management .menu-edit{margin-bottom:20px}.nav-menus-php #post-body{padding:0 10px;border-top:1px solid #fff;border-bottom:1px solid #dcdcde;background:#fff}#nav-menu-footer,#nav-menu-header{padding:0 10px;background:#f6f7f7}#nav-menu-header{border-bottom:1px solid #dcdcde;margin-bottom:0}#nav-menu-header .menu-name-label{display:inline-block;vertical-align:middle;margin-right:7px}.nav-menus-php #post-body div.error,.nav-menus-php #post-body div.updated{margin:0}.nav-menus-php #post-body-content{position:relative;float:none}.nav-menus-php #post-body-content .post-body-plain{margin-bottom:0}#menu-management .menu-add-new abbr{font-weight:600}#select-nav-menu-container{text-align:right;padding:0 10px 3px;margin-bottom:5px}#select-nav-menu{width:100px;display:inline}#menu-name-label{margin-top:-2px}.widefat .menu-locations .menu-location-title{padding:13px 10px 0}.menu-location-title label{font-weight:600}.menu-location-menus select{float:left}#locations-nav-menu-wrapper{padding:5px 0}.locations-nav-menu-select select{float:left;width:160px;margin-right:5px}.locations-row-links{float:left;margin:6px 0 0 6px}.locations-add-menu-link,.locations-edit-menu-link{margin:0 3px}.locations-edit-menu-link{padding-right:3px;border-right:1px solid #c3c4c7}#menu-management .inside{padding:0 10px}.customlinkdiv .menu-item-textbox,.postbox .howto input{width:180px;float:right}.accordion-container .outer-border{margin:0}.customlinkdiv p{margin-top:0}#nav-menu-theme-locations .howto select{width:100%}#nav-menu-theme-locations .button-controls{text-align:right}.add-menu-item-view-all{height:400px}#menu-container .submit{margin:0 0 10px;padding:0}#cancel-save{text-decoration:underline;font-size:12px;margin-left:20px;margin-top:5px}.button-primary.right,.button-secondary.right,.button.right{float:right}.list-controls{float:left;margin-top:5px}.add-to-menu{float:right}.button-controls{clear:both;margin:10px 0}.hide-all,.show-all{cursor:pointer}.hide-all{display:none}#menu-name{width:270px;vertical-align:middle}#manage-menu .inside{padding:0}#available-links dt{display:block}#add-custom-link .howto{font-size:12px}#add-custom-link label span{display:block;float:left;margin-top:5px;padding-right:5px}.menu-item-textbox{width:180px}.customlinkdiv label,.nav-menus-php .howto span{float:left;margin-top:6px}.quick-search{width:190px}.quick-search-wrap .spinner{float:none;margin:-3px -10px 0 0}.nav-menus-php .list-wrap{display:none;clear:both;margin-bottom:10px}.nav-menus-php .postbox p.submit{margin-bottom:0}.nav-menus-php .list li{display:none;margin:0 0 5px}.nav-menus-php .list li .menu-item-title{cursor:pointer;display:block}.nav-menus-php .list li .menu-item-title input{margin-right:3px;margin-top:-3px}.menu-item-title input[type=checkbox]{display:inline-block;margin-top:-4px}.menu-item-title .post-state{font-weight:600}#menu-container .inside{padding-bottom:10px}.menu{padding-top:1em}#menu-to-edit{margin:0;padding:.1em 0}.menu ul{width:100%}.menu li{margin-bottom:0;position:relative}.menu-item-bar{clear:both;line-height:1.5;position:relative;margin:9px 0 0}.menu-item-bar .menu-item-handle{border:1px solid #dcdcde;position:relative;padding:10px 15px;height:auto;min-height:20px;max-width:382px;line-height:2.30769230;overflow:hidden;word-wrap:break-word}.menu-item-bar .menu-item-handle:hover{border-color:#8c8f94}#menu-to-edit .menu-item-invalid .menu-item-handle{background:#fcf0f1;border-color:#d63638}.no-js .menu-item-edit-active .item-edit{display:none}.js .menu-item-handle{cursor:move}.menu li.deleting .menu-item-handle{background-image:none;background-color:#f86368}.menu-item-handle .item-title{font-size:13px;font-weight:600;line-height:1.53846153;display:block;margin-right:13em}.menu-item-handle .menu-item-checkbox{display:none}.bulk-selection .menu-item-handle .menu-item-checkbox{display:inline-block;margin-right:6px}.menu-item-handle .menu-item-title.no-title{color:#646970}li.menu-item.ui-sortable-helper .menu-item-bar{margin-top:0}li.menu-item.ui-sortable-helper .menu-item-transport .menu-item-bar{margin-top:9px}.menu .sortable-placeholder{height:35px;width:410px;margin-top:9px}.menu-item .menu-item-transport:empty{display:none}.menu-item-depth-0{margin-left:0}.menu-item-depth-1{margin-left:30px}.menu-item-depth-2{margin-left:60px}.menu-item-depth-3{margin-left:90px}.menu-item-depth-4{margin-left:120px}.menu-item-depth-5{margin-left:150px}.menu-item-depth-6{margin-left:180px}.menu-item-depth-7{margin-left:210px}.menu-item-depth-8{margin-left:240px}.menu-item-depth-9{margin-left:270px}.menu-item-depth-10{margin-left:300px}.menu-item-depth-11{margin-left:330px}.menu-item-depth-0 .menu-item-transport{margin-left:0}.menu-item-depth-1 .menu-item-transport{margin-left:-30px}.menu-item-depth-2 .menu-item-transport{margin-left:-60px}.menu-item-depth-3 .menu-item-transport{margin-left:-90px}.menu-item-depth-4 .menu-item-transport{margin-left:-120px}.menu-item-depth-5 .menu-item-transport{margin-left:-150px}.menu-item-depth-6 .menu-item-transport{margin-left:-180px}.menu-item-depth-7 .menu-item-transport{margin-left:-210px}.menu-item-depth-8 .menu-item-transport{margin-left:-240px}.menu-item-depth-9 .menu-item-transport{margin-left:-270px}.menu-item-depth-10 .menu-item-transport{margin-left:-300px}.menu-item-depth-11 .menu-item-transport{margin-left:-330px}body.menu-max-depth-0{min-width:950px!important}body.menu-max-depth-1{min-width:980px!important}body.menu-max-depth-2{min-width:1010px!important}body.menu-max-depth-3{min-width:1040px!important}body.menu-max-depth-4{min-width:1070px!important}body.menu-max-depth-5{min-width:1100px!important}body.menu-max-depth-6{min-width:1130px!important}body.menu-max-depth-7{min-width:1160px!important}body.menu-max-depth-8{min-width:1190px!important}body.menu-max-depth-9{min-width:1220px!important}body.menu-max-depth-10{min-width:1250px!important}body.menu-max-depth-11{min-width:1280px!important}.item-type{display:inline-block;padding:12px 16px;color:#646970;font-size:12px;line-height:1.5}.item-controls{font-size:12px;position:absolute;right:20px;top:-1px}.item-controls a{text-decoration:none}.item-controls a:hover{cursor:pointer}.item-controls .item-order{padding-right:10px}.nav-menus-php .item-edit{position:absolute;right:-20px;top:0;display:block;width:30px;height:40px;outline:0}.no-js.nav-menus-php .item-edit{position:static;float:right;width:auto;height:auto;margin:12px -10px 12px 0;padding:0;color:#2271b1;text-decoration:underline;font-size:12px;line-height:1.5}.no-js.nav-menus-php .item-edit .screen-reader-text{position:static;-webkit-clip-path:none;clip-path:none;width:auto;height:auto;margin:0}.nav-menus-php .item-edit:before{margin-top:10px;margin-left:4px;width:20px;border-radius:50%;text-indent:-1px}.no-js.nav-menus-php .item-edit:before{display:none}.rtl .nav-menus-php .item-edit:before{text-indent:1px}.js.nav-menus-php .item-edit:focus{box-shadow:none}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.menu-instructions-inactive{display:none}.menu-item-settings{display:block;max-width:392px;padding:10px;position:relative;z-index:10;border:1px solid #c3c4c7;border-top:none;box-shadow:0 1px 1px rgba(0,0,0,.04)}.menu-item-settings .field-move{margin:3px 0 5px;line-height:1.5}.field-move-visual-label{float:left;margin-right:4px}.menu-item-settings .field-move .button-link{display:none;margin:0 2px}.menu-item-edit-active .menu-item-settings{display:block}.menu-item-edit-inactive .menu-item-settings{display:none}.add-menu-item-pagelinks{margin:.5em -10px;text-align:center}.add-menu-item-pagelinks .page-numbers{display:inline-block;min-width:20px}.add-menu-item-pagelinks .page-numbers.dots{min-width:0}.link-to-original{display:block;margin:0 0 15px;padding:3px 5px 5px;border:1px solid #dcdcde;color:#646970;font-size:12px}.link-to-original a{padding-left:4px;font-style:normal}.hidden-field{display:none}.menu-item-settings .description-thin,.menu-item-settings .description-wide{margin-right:10px;float:left}.description-thin{width:calc(50% - 5px)}.menu-item-settings .description-thin+.description-thin{margin-right:0}.description-wide{width:100%}.menu-item-actions{padding-top:15px;padding-bottom:7px}#cancel-save{cursor:pointer}.nav-menus-php .major-publishing-actions{padding:10px 0;display:flex;align-items:center}.nav-menus-php .major-publishing-actions>*{margin-right:10px}.nav-menus-php .major-publishing-actions .form-invalid{padding-left:4px;margin-left:-4px}#menu-item-name-wrap,#menu-item-url-wrap,#nav-menus-frame,.button-controls{display:block}@media only screen and (min-width:769px) and (max-width:1000px){body.menu-max-depth-0{min-width:0!important}#menu-management-liquid{width:100%}.nav-menus-php #post-body-content{min-width:0}}@media screen and (max-width:782px){body.nav-menus-php,body.wp-customizer{min-width:0!important}#nav-menus-frame{margin-left:0;float:none;width:100%}#wpbody-content #menu-settings-column{display:block;width:100%;float:none;margin-left:0}#side-sortables .add-menu-item-tabs{margin:15px 0 14px}ul.add-menu-item-tabs li.tabs{padding:13px 15px 14px}.nav-menus-php .customlinkdiv .howto input{width:65%}.nav-menus-php .quick-search{width:85%}#menu-management-liquid{margin-top:25px}.nav-menus-php .menu-name-label.howto span{margin-top:13px}#menu-name{width:100%}.nav-menus-php #nav-menu-header .major-publishing-actions .publishing-action{padding-top:1em}.nav-menus-php .delete-action{font-size:14px;line-height:2.14285714}.description-wide,.menu-item-bar .menu-item-handle,.menu-item-settings{width:auto}.menu-item-settings{padding:10px}.menu-item-settings .description-thin,.menu-item-settings .description-wide{width:100%}.menu-item-settings input{width:100%}.menu-item-settings input[type=checkbox],.menu-item-settings input[type=radio]{width:25px}.menu-settings-group{padding-left:0;overflow:visible}.menu-settings-group-name{float:none;width:auto;margin-left:0;margin-bottom:15px}.menu-settings-input{float:none;margin-bottom:15px}.menu-edit .checkbox-input{margin-top:0}.manage-menus select{margin:.5em 0}.wp-core-ui .manage-menus .button{margin-bottom:0}.widefat .menu-locations .menu-location-title{padding-top:16px}}@media only screen and (min-width:783px){@supports (position:sticky) and (scroll-margin-bottom:130px){#nav-menu-footer{position:sticky;bottom:0;z-index:10;box-shadow:0 -1px 0 0 #ddd}#save_menu_header{display:none}}}@media only screen and (max-width:768px){#menu-locations-wrap .widefat{width:100%}.bulk-select-button{padding:5px 10px}} \ No newline at end of file
+.no-js #message{display:block}ul.add-menu-item-tabs li{padding:3px 5px 4px 8px}.accordion-section ul.add-menu-item-tabs,.accordion-section ul.category-tabs,.accordion-section ul.wp-tab-bar{margin:0}.accordion-section .categorychecklist{margin:13px 0}#nav-menu-meta .accordion-section-content{padding:18px 13px;resize:vertical}#nav-menu-meta .button-controls{margin-bottom:0}.has-no-menu-item .button-controls{display:none}#nav-menus-frame{margin-left:300px;margin-top:23px}#wpbody-content #menu-settings-column{display:inline;width:281px;margin-left:-300px;clear:both;float:left;padding-top:0}#menu-settings-column .inside{clear:both;margin:10px 0 0;height:100%;max-height:inherit}#menu-settings-column .categorydiv,#menu-settings-column .customlinkdiv,#menu-settings-column .posttypediv,#menu-settings-column .taxonomydiv{max-height:inherit;height:100%}#menu-settings-column .categorydiv div.tabs-panel,#menu-settings-column .customlinkdiv div.tabs-panel,#menu-settings-column .posttypediv div.tabs-panel,#menu-settings-column .taxonomydiv div.tabs-panel,#menu-settings-column .wp-tab-panel{max-height:calc(100% - 75px);height:100%}.metabox-holder-disabled .accordion-section-content,.metabox-holder-disabled .accordion-section-title,.metabox-holder-disabled .postbox{opacity:.5}.metabox-holder-disabled .button-controls .select-all{display:none}#wpbody{position:relative}.is-submenu{color:#50575e;font-style:italic;font-weight:400;margin-left:4px}.manage-menus{margin-top:23px;padding:10px;overflow:hidden;background:#fff}.manage-menus .selected-menu,.manage-menus .submit-btn,.manage-menus select,.nav-menus-php .add-new-menu-action{display:inline-block;margin-right:3px;vertical-align:middle}.manage-menus select,.menu-location-menus select{max-width:100%}.menu-edit #post-body-content h3{margin:1em 0 10px}#nav-menu-bulk-actions-top{margin:1em 0}#nav-menu-bulk-actions-bottom{margin:1em 0;margin:calc(1em + 9px) 0}.bulk-actions input.button{margin-right:12px}.bulk-select-button{position:relative;display:inline-block;padding:0 10px;font-size:13px;line-height:2.15384615;height:auto;min-height:30px;background:#f6f7f7;vertical-align:top;border:1px solid #dcdcde;margin:0;cursor:pointer;border-radius:3px;white-space:nowrap;box-sizing:border-box}.bulk-selection .bulk-select-button{color:#2271b1;border-color:#2271b1;background:#f6f7f7;vertical-align:top}#pending-menu-items-to-delete{display:none}.bulk-selection #pending-menu-items-to-delete{display:block;margin-top:1em}#pending-menu-items-to-delete p{margin-bottom:0}#pending-menu-items-to-delete ul{margin-top:0;list-style:none}#pending-menu-items-to-delete ul li{display:inline}input.bulk-select-switcher+.bulk-select-button-label{vertical-align:inherit}label.bulk-select-button:active,label.bulk-select-button:focus-within,label.bulk-select-button:hover{background:#f0f0f1;border-color:#0a4b78;color:#0a4b78}input.bulk-select-switcher:focus+.bulk-select-button-label{color:#0a4b78}.bulk-actions input.menu-items-delete{appearance:none;font-size:inherit;border:0;line-height:2.1em;background:0 0;cursor:pointer;text-decoration:underline;color:#b32d2e}.bulk-actions input.menu-items-delete:hover{color:#b32d2e;border:none}.bulk-actions input.menu-items-delete.disabled{display:none}.menu-settings{border-top:1px solid #f0f0f1;margin-top:2em}.menu-settings-group{margin:0 0 10px;overflow:hidden;padding-left:20%}.menu-settings-group:last-of-type{margin-bottom:0}.menu-settings-input{float:left;margin:0;width:100%}.menu-settings-group-name{float:left;clear:both;width:25%;padding:3px 0 0;margin-left:-25%}.menu-settings label{vertical-align:baseline}.menu-edit .checkbox-input{margin-top:4px}.theme-location-set{color:#646970;font-size:11px}#menu-management-liquid{float:left;min-width:100%;margin-top:3px}#menu-management{position:relative;margin-right:20px;margin-top:-3px;width:100%}#menu-management .menu-edit{margin-bottom:20px}.nav-menus-php #post-body{padding:0 10px;border-top:1px solid #fff;border-bottom:1px solid #dcdcde;background:#fff}#nav-menu-footer,#nav-menu-header{padding:0 10px;background:#f6f7f7}#nav-menu-header{border-bottom:1px solid #dcdcde;margin-bottom:0}#nav-menu-header .menu-name-label{display:inline-block;vertical-align:middle;margin-right:7px}.nav-menus-php #post-body div.error,.nav-menus-php #post-body div.updated{margin:0}.nav-menus-php #post-body-content{position:relative;float:none}.nav-menus-php #post-body-content .post-body-plain{margin-bottom:0}#menu-management .menu-add-new abbr{font-weight:600}#select-nav-menu-container{text-align:right;padding:0 10px 3px;margin-bottom:5px}#select-nav-menu{width:100px;display:inline}#menu-name-label{margin-top:-2px}.widefat .menu-locations .menu-location-title{padding:13px 10px 0}.menu-location-title label{font-weight:600}.menu-location-menus select{float:left}#locations-nav-menu-wrapper{padding:5px 0}.locations-nav-menu-select select{float:left;width:160px;margin-right:5px}.locations-row-links{float:left;margin:6px 0 0 6px}.locations-add-menu-link,.locations-edit-menu-link{margin:0 3px}.locations-edit-menu-link{padding-right:3px;border-right:1px solid #c3c4c7}#menu-management .inside{padding:0 10px}.customlinkdiv .menu-item-textbox,.postbox .howto input{width:180px;float:right}.accordion-container .outer-border{margin:0}.customlinkdiv p{margin-top:0}#nav-menu-theme-locations .howto select{width:100%}#nav-menu-theme-locations .button-controls{text-align:right}.add-menu-item-view-all{height:400px}#menu-container .submit{margin:0 0 10px;padding:0}#cancel-save{text-decoration:underline;font-size:12px;margin-left:20px;margin-top:5px}.button-primary.right,.button-secondary.right,.button.right{float:right}.list-controls{float:left;margin-top:5px}.add-to-menu{float:right}.button-controls{clear:both;margin:10px 0}.hide-all,.show-all{cursor:pointer}.hide-all{display:none}#menu-name{width:270px;vertical-align:middle}#manage-menu .inside{padding:0}#available-links dt{display:block}#add-custom-link .howto{font-size:12px}#add-custom-link label span{display:block;float:left;margin-top:5px;padding-right:5px}.menu-item-textbox{width:180px}.customlinkdiv label,.nav-menus-php .howto span{float:left;margin-top:6px}.quick-search{width:190px}.quick-search-wrap .spinner{float:none;margin:-3px -10px 0 0}.nav-menus-php .list-wrap{display:none;clear:both;margin-bottom:10px}.nav-menus-php .postbox p.submit{margin-bottom:0}.nav-menus-php .list li{display:none;margin:0 0 5px}.nav-menus-php .list li .menu-item-title{cursor:pointer;display:block}.nav-menus-php .list li .menu-item-title input{margin-right:3px;margin-top:-3px}.menu-item-title input[type=checkbox]{display:inline-block;margin-top:-4px}.menu-item-title .post-state{font-weight:600}#menu-container .inside{padding-bottom:10px}.menu{padding-top:1em}#menu-to-edit{margin:0;padding:.1em 0}.menu ul{width:100%}.menu li{margin-bottom:0;position:relative}.menu-item-bar{clear:both;line-height:1.5;position:relative;margin:9px 0 0}.menu-item-bar .menu-item-handle{border:1px solid #dcdcde;position:relative;padding:10px 15px;height:auto;min-height:20px;max-width:382px;line-height:2.30769230;overflow:hidden;word-wrap:break-word}.menu-item-bar .menu-item-handle:hover{border-color:#8c8f94}#menu-to-edit .menu-item-invalid .menu-item-handle{background:#fcf0f1;border-color:#d63638}.no-js .menu-item-edit-active .item-edit{display:none}.js .menu-item-handle{cursor:move}.menu li.deleting .menu-item-handle{background-image:none;background-color:#f86368}.menu-item-handle .item-title{font-size:13px;font-weight:600;line-height:1.53846153;display:block;margin-right:13em}.menu-item-handle .menu-item-checkbox{display:none}.bulk-selection .menu-item-handle .menu-item-checkbox{display:inline-block;margin-right:6px}.menu-item-handle .menu-item-title.no-title{color:#646970}li.menu-item.ui-sortable-helper .menu-item-bar{margin-top:0}li.menu-item.ui-sortable-helper .menu-item-transport .menu-item-bar{margin-top:9px}.menu .sortable-placeholder{height:35px;width:410px;margin-top:9px}.menu-item .menu-item-transport:empty{display:none}.menu-item-depth-0{margin-left:0}.menu-item-depth-1{margin-left:30px}.menu-item-depth-2{margin-left:60px}.menu-item-depth-3{margin-left:90px}.menu-item-depth-4{margin-left:120px}.menu-item-depth-5{margin-left:150px}.menu-item-depth-6{margin-left:180px}.menu-item-depth-7{margin-left:210px}.menu-item-depth-8{margin-left:240px}.menu-item-depth-9{margin-left:270px}.menu-item-depth-10{margin-left:300px}.menu-item-depth-11{margin-left:330px}.menu-item-depth-0 .menu-item-transport{margin-left:0}.menu-item-depth-1 .menu-item-transport{margin-left:-30px}.menu-item-depth-2 .menu-item-transport{margin-left:-60px}.menu-item-depth-3 .menu-item-transport{margin-left:-90px}.menu-item-depth-4 .menu-item-transport{margin-left:-120px}.menu-item-depth-5 .menu-item-transport{margin-left:-150px}.menu-item-depth-6 .menu-item-transport{margin-left:-180px}.menu-item-depth-7 .menu-item-transport{margin-left:-210px}.menu-item-depth-8 .menu-item-transport{margin-left:-240px}.menu-item-depth-9 .menu-item-transport{margin-left:-270px}.menu-item-depth-10 .menu-item-transport{margin-left:-300px}.menu-item-depth-11 .menu-item-transport{margin-left:-330px}body.menu-max-depth-0{min-width:950px!important}body.menu-max-depth-1{min-width:980px!important}body.menu-max-depth-2{min-width:1010px!important}body.menu-max-depth-3{min-width:1040px!important}body.menu-max-depth-4{min-width:1070px!important}body.menu-max-depth-5{min-width:1100px!important}body.menu-max-depth-6{min-width:1130px!important}body.menu-max-depth-7{min-width:1160px!important}body.menu-max-depth-8{min-width:1190px!important}body.menu-max-depth-9{min-width:1220px!important}body.menu-max-depth-10{min-width:1250px!important}body.menu-max-depth-11{min-width:1280px!important}.item-type{display:inline-block;padding:12px 16px;color:#646970;font-size:12px;line-height:1.5}.item-controls{font-size:12px;position:absolute;right:20px;top:-1px}.item-controls a{text-decoration:none}.item-controls a:hover{cursor:pointer}.item-controls .item-order{padding-right:10px}.nav-menus-php .item-edit{position:absolute;right:-20px;top:0;display:block;width:30px;height:40px;outline:0}.no-js.nav-menus-php .item-edit{position:static;float:right;width:auto;height:auto;margin:12px -10px 12px 0;padding:0;color:#2271b1;text-decoration:underline;font-size:12px;line-height:1.5}.no-js.nav-menus-php .item-edit .screen-reader-text{position:static;clip-path:none;width:auto;height:auto;margin:0}.nav-menus-php .item-edit:before{margin-top:10px;margin-left:4px;width:20px;border-radius:50%;text-indent:-1px}.no-js.nav-menus-php .item-edit:before{display:none}.rtl .nav-menus-php .item-edit:before{text-indent:1px}.js.nav-menus-php .item-edit:focus{box-shadow:none}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.menu-instructions-inactive{display:none}.menu-item-settings{display:block;max-width:392px;padding:10px;position:relative;z-index:10;border:1px solid #c3c4c7;border-top:none;box-shadow:0 1px 1px rgba(0,0,0,.04)}.menu-item-settings .field-move{margin:3px 0 5px;line-height:1.5}.field-move-visual-label{float:left;margin-right:4px}.menu-item-settings .field-move .button-link{display:none;margin:0 2px}.menu-item-edit-active .menu-item-settings{display:block}.menu-item-edit-inactive .menu-item-settings{display:none}.add-menu-item-pagelinks{margin:.5em -10px;text-align:center}.add-menu-item-pagelinks .page-numbers{display:inline-block;min-width:20px}.add-menu-item-pagelinks .page-numbers.dots{min-width:0}.link-to-original{display:block;margin:0 0 15px;padding:3px 5px 5px;border:1px solid #dcdcde;color:#646970;font-size:12px}.link-to-original a{padding-left:4px;font-style:normal}.hidden-field{display:none}.menu-item-settings .description-thin,.menu-item-settings .description-wide{margin-right:10px;float:left}.description-thin{width:calc(50% - 5px)}.menu-item-settings .description-thin+.description-thin{margin-right:0}.description-wide{width:100%}.menu-item-actions{padding-top:15px;padding-bottom:7px}#cancel-save{cursor:pointer}.nav-menus-php .major-publishing-actions{padding:10px 0;display:flex;align-items:center}.nav-menus-php .major-publishing-actions>*{margin-right:10px}.nav-menus-php .major-publishing-actions .form-invalid{padding-left:4px;margin-left:-4px}#menu-item-name-wrap,#menu-item-url-wrap,#nav-menus-frame,.button-controls{display:block}@media only screen and (min-width:769px) and (max-width:1000px){body.menu-max-depth-0{min-width:0!important}#menu-management-liquid{width:100%}.nav-menus-php #post-body-content{min-width:0}}@media screen and (max-width:782px){body.nav-menus-php,body.wp-customizer{min-width:0!important}#nav-menus-frame{margin-left:0;float:none;width:100%}#wpbody-content #menu-settings-column{display:block;width:100%;float:none;margin-left:0}#side-sortables .add-menu-item-tabs{margin:15px 0 14px}ul.add-menu-item-tabs li.tabs{padding:13px 15px 14px}.nav-menus-php .customlinkdiv .howto input{width:65%}.nav-menus-php .quick-search{width:85%}#menu-management-liquid{margin-top:25px}.nav-menus-php .menu-name-label.howto span{margin-top:13px}#menu-name{width:100%}.nav-menus-php #nav-menu-header .major-publishing-actions .publishing-action{padding-top:1em}.nav-menus-php .delete-action{font-size:14px;line-height:2.14285714}.description-wide,.menu-item-bar .menu-item-handle,.menu-item-settings{width:auto}.menu-item-settings{padding:10px}.menu-item-settings .description-thin,.menu-item-settings .description-wide{width:100%}.menu-item-settings input{width:100%}.menu-item-settings input[type=checkbox],.menu-item-settings input[type=radio]{width:25px}.menu-settings-group{padding-left:0;overflow:visible}.menu-settings-group-name{float:none;width:auto;margin-left:0;margin-bottom:15px}.menu-settings-input{float:none;margin-bottom:15px}.menu-edit .checkbox-input{margin-top:0}.manage-menus select{margin:.5em 0}.wp-core-ui .manage-menus .button{margin-bottom:0}.widefat .menu-locations .menu-location-title{padding-top:16px}}@media only screen and (min-width:783px){@supports (position:sticky) and (scroll-margin-bottom:130px){#nav-menu-footer{position:sticky;bottom:0;z-index:10;box-shadow:0 -1px 0 0 #ddd}#save_menu_header{display:none}}}@media only screen and (max-width:768px){#menu-locations-wrap .widefat{width:100%}.bulk-select-button{padding:5px 10px}} \ No newline at end of file
diff --git a/wp-admin/css/themes-rtl.css b/wp-admin/css/themes-rtl.css
index 3b8d7da..e591eda 100644
--- a/wp-admin/css/themes-rtl.css
+++ b/wp-admin/css/themes-rtl.css
@@ -20,23 +20,23 @@ body.js .theme-browser.search-loading {
clear: both;
}
-.themes-php:not(.network-admin) .wrap h1 {
- margin-bottom: 15px;
-}
-
.themes-php .wrap h1 .button {
margin-right: 20px;
}
/* Search form */
.themes-php .search-form {
- display: inline;
+ display: inline-flex;
+ align-items: center;
+ position: relative;
+ top: 0;
+ gap: .5rem;
+ width: 100%;
+ justify-content: end;
}
.themes-php .wp-filter-search {
position: relative;
- top: -2px;
- right: 20px;
margin: 0;
width: 280px;
}
@@ -956,11 +956,15 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
clear: both;
right: 0;
left: 0;
- margin: -5px 0 20px;
width: 100%;
max-width: 280px;
}
+ .theme-install-php .wp-filter p.search-box {
+ display: grid;
+ row-gap: .5rem;
+ }
+
.theme-browser .theme.add-new-theme span:after {
font: normal 60px/90px dashicons;
width: 80px;
@@ -1030,6 +1034,13 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
padding-right: 20px;
}
+/* Override column gap adjustment in media library. */
+@media only screen and (max-width: 1000px) {
+ .theme-install-php .wp-filter p.search-box {
+ column-gap: .5rem;
+ }
+}
+
.theme-install-php a.upload,
.theme-install-php a.browse-themes {
cursor: pointer;
diff --git a/wp-admin/css/themes-rtl.min.css b/wp-admin/css/themes-rtl.min.css
index 375a034..ee6edd2 100644
--- a/wp-admin/css/themes-rtl.min.css
+++ b/wp-admin/css/themes-rtl.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-.themes-php{overflow-y:scroll}body.js .theme-browser.search-loading{display:none}.theme-browser .themes{clear:both}.themes-php:not(.network-admin) .wrap h1{margin-bottom:15px}.themes-php .wrap h1 .button{margin-right:20px}.themes-php .search-form{display:inline}.themes-php .wp-filter-search{position:relative;top:-2px;right:20px;margin:0;width:280px}.theme .notice,.theme .notice.is-dismissible{right:0;margin:0;position:absolute;left:0;top:0}.theme-browser .theme{cursor:pointer;float:right;margin:0 0 4% 4%;position:relative;width:30.6%;border:1px solid #dcdcde;box-shadow:0 1px 1px -1px rgba(0,0,0,.1);box-sizing:border-box}.theme-browser .theme:nth-child(3n){margin-left:0}.theme-browser .theme.focus,.theme-browser .theme:hover{cursor:pointer}.theme-browser .theme .theme-name{font-size:15px;font-weight:600;height:18px;margin:0;padding:15px;box-shadow:inset 0 1px 0 rgba(0,0,0,.1);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#fff;background:rgba(255,255,255,.65)}.theme-browser .theme .theme-actions{opacity:0;transition:opacity .1s ease-in-out;height:auto;background:rgba(246,247,247,.7);border-right:1px solid rgba(0,0,0,.05)}.theme-browser .theme.focus .theme-actions,.theme-browser .theme:hover .theme-actions{opacity:1}.theme-browser .theme .theme-actions .button-primary{margin-left:3px}.theme-browser .theme .theme-actions .button{float:none;margin-right:3px}.theme-browser .theme .theme-screenshot{display:block;overflow:hidden;position:relative;-webkit-backface-visibility:hidden;transition:opacity .2s ease-in-out}.theme-browser .theme .theme-screenshot:after{content:"";display:block;padding-top:66.66666%}.theme-browser .theme .theme-screenshot img{height:auto;position:absolute;right:0;top:0;width:100%;transition:opacity .2s ease-in-out}.theme-browser .theme.focus .theme-screenshot,.theme-browser .theme:hover .theme-screenshot{background:#fff}.theme-browser.rendered .theme.focus .theme-screenshot img,.theme-browser.rendered .theme:hover .theme-screenshot img{opacity:.4}.theme-browser .theme .more-details{opacity:0;position:absolute;top:35%;left:20%;right:20%;width:60%;background:#1d2327;background:rgba(0,0,0,.7);color:#fff;font-size:15px;text-shadow:0 1px 0 rgba(0,0,0,.6);-webkit-font-smoothing:antialiased;font-weight:600;padding:15px 12px;text-align:center;border-radius:3px;border:none;transition:opacity .1s ease-in-out;cursor:pointer}.theme-browser .theme .more-details:focus{box-shadow:0 0 0 2px #2271b1}.theme-browser .theme.focus{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}.theme-browser .theme.focus .more-details{opacity:1}.theme-browser .theme.active.focus .theme-actions{display:block}.theme-browser.rendered .theme.focus .more-details,.theme-browser.rendered .theme:hover .more-details{opacity:1}.theme-browser .theme.active .theme-name{background:#1d2327;color:#fff;padding-left:110px;font-weight:300;box-shadow:inset 0 1px 1px rgba(0,0,0,.5)}.theme-browser .customize-control .theme.active .theme-name{padding-left:15px}.theme-browser .theme.active .theme-name span{font-weight:600}.theme-browser .theme.active .theme-actions{background:rgba(44,51,56,.7);border-right:none;opacity:1}.theme-id-container{position:relative}.theme-browser .theme .theme-actions,.theme-browser .theme.active .theme-actions{position:absolute;top:50%;transform:translateY(-50%);left:0;padding:9px 15px;box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}.theme-browser .theme.active .theme-actions .button-primary{margin-left:0}.theme-browser .theme .theme-author{background:#1d2327;color:#f0f0f1;display:none;font-size:14px;margin:0 10px;padding:5px 10px;position:absolute;bottom:56px}.theme-browser .theme.display-author .theme-author{display:block}.theme-browser .theme.display-author .theme-author a{color:inherit}.theme-browser .theme.add-new-theme{border:none;box-shadow:none}.theme-browser .theme.add-new-theme a{text-decoration:none;display:block;position:relative;z-index:1}.theme-browser .theme.add-new-theme a:after{display:block;content:"";background:0 0;background:rgba(0,0,0,0);position:absolute;top:0;right:0;left:0;bottom:0;padding:0;text-shadow:none;border:5px dashed #dcdcde;border:5px dashed rgba(0,0,0,.1);box-sizing:border-box}.theme-browser .theme.add-new-theme span:after{background:#dcdcde;background:rgba(140,143,148,.1);border-radius:50%;display:inline-block;content:"\f132";-webkit-font-smoothing:antialiased;font:normal 74px/115px dashicons;width:100px;height:100px;vertical-align:middle;text-align:center;color:#8c8f94;position:absolute;top:30%;right:50%;margin-right:-50px;text-indent:-4px;padding:0;text-shadow:none;z-index:4}.rtl .theme-browser .theme.add-new-theme span:after{text-indent:4px}.theme-browser .theme.add-new-theme a:focus .theme-screenshot,.theme-browser .theme.add-new-theme a:hover .theme-screenshot{background:0 0}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{background:#fff;color:#2271b1}.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{border-color:transparent;color:#fff;background:#2271b1;content:""}.theme-browser .theme.add-new-theme .theme-name{background:0 0;text-align:center;box-shadow:none;font-weight:400;position:relative;top:0;margin-top:-18px;padding-top:0;padding-bottom:48px}.theme-browser .theme.add-new-theme a:focus .theme-name,.theme-browser .theme.add-new-theme a:hover .theme-name{color:#fff;z-index:2}.theme-overlay .theme-backdrop{position:absolute;right:-20px;left:0;top:0;bottom:0;background:#f0f0f1;background:rgba(240,240,241,.9);z-index:10000}.theme-overlay .theme-header{position:absolute;top:0;right:0;left:0;height:48px;border-bottom:1px solid #dcdcde}.theme-overlay .theme-header button{padding:0}.theme-overlay .theme-header .close{cursor:pointer;height:48px;width:50px;text-align:center;float:left;border:0;border-right:1px solid #dcdcde;background-color:transparent;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-overlay .theme-header .close:before{font:normal 22px/50px dashicons!important;color:#787c82;display:inline-block;content:"\f335";font-weight:300}.theme-overlay .theme-header .left,.theme-overlay .theme-header .right{cursor:pointer;color:#787c82;background-color:transparent;height:48px;width:54px;float:right;text-align:center;border:0;border-left:1px solid #dcdcde;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-overlay .theme-header .close:focus,.theme-overlay .theme-header .close:hover,.theme-overlay .theme-header .left:focus,.theme-overlay .theme-header .left:hover,.theme-overlay .theme-header .right:focus,.theme-overlay .theme-header .right:hover{background:#dcdcde;border-color:#c3c4c7;color:#000}.theme-overlay .theme-header .close:focus:before,.theme-overlay .theme-header .close:hover:before{color:#000}.theme-overlay .theme-header .close:focus,.theme-overlay .theme-header .left:focus,.theme-overlay .theme-header .right:focus{box-shadow:none;outline:0}.theme-overlay .theme-header .left.disabled,.theme-overlay .theme-header .left.disabled:hover,.theme-overlay .theme-header .right.disabled,.theme-overlay .theme-header .right.disabled:hover{color:#c3c4c7;background:inherit;cursor:inherit}.theme-overlay .theme-header .left:before,.theme-overlay .theme-header .right:before{font:normal 20px/50px dashicons!important;display:inline;font-weight:300}.theme-overlay .theme-header .left:before{content:"\f345"}.theme-overlay .theme-header .right:before{content:"\f341"}.theme-overlay .theme-wrap{clear:both;position:fixed;top:9%;right:190px;left:30px;bottom:3%;background:#fff;box-shadow:0 1px 20px 5px rgba(0,0,0,.1);z-index:10000;box-sizing:border-box;-webkit-overflow-scrolling:touch}body.folded .theme-browser~.theme-overlay .theme-wrap{right:70px}.theme-overlay .theme-about{position:absolute;top:49px;bottom:57px;right:0;left:0;overflow:auto;padding:2% 4%}.theme-overlay .theme-actions{position:absolute;text-align:center;bottom:0;right:0;left:0;padding:10px 25px 5px;background:#f6f7f7;z-index:30;box-sizing:border-box;border-top:1px solid #f0f0f1;display:flex;justify-content:center;gap:5px}.theme-overlay .theme-actions .button{margin-bottom:5px}.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-background"],.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-header"]{display:none}.broken-themes a.delete-theme,.theme-overlay .theme-actions .delete-theme{color:#b32d2e;text-decoration:none;border-color:transparent;box-shadow:none;background:0 0}.broken-themes a.delete-theme:focus,.broken-themes a.delete-theme:hover,.theme-overlay .theme-actions .delete-theme:focus,.theme-overlay .theme-actions .delete-theme:hover{background:#b32d2e;color:#fff;border-color:#b32d2e;box-shadow:0 0 0 1px #b32d2e}.theme-overlay .theme-actions .active-theme,.theme-overlay.active .theme-actions .inactive-theme{display:none}.theme-overlay .theme-actions .inactive-theme,.theme-overlay.active .theme-actions .active-theme{display:block}.theme-overlay .theme-screenshots{float:right;margin:0 0 0 30px;width:55%;max-width:1200px;text-align:center}.theme-overlay .screenshot{border:1px solid #fff;box-sizing:border-box;overflow:hidden;position:relative;box-shadow:0 0 0 1px rgba(0,0,0,.2)}.theme-overlay .screenshot:after{content:"";display:block;padding-top:75%}.theme-overlay .screenshot img{height:auto;position:absolute;right:0;top:0;width:100%}.theme-overlay.small-screenshot .theme-screenshots{position:absolute;width:302px}.theme-overlay.small-screenshot .theme-info{margin-right:350px;width:auto}.theme-overlay .screenshot.thumb{background:#c3c4c7;border:1px solid #f0f0f1;float:none;display:inline-block;margin:10px 5px 0;width:140px;height:80px;cursor:pointer}.theme-overlay .screenshot.thumb:after{content:"";display:block;padding-top:100%}.theme-overlay .screenshot.thumb img{cursor:pointer;height:auto;position:absolute;right:0;top:0;width:100%;height:auto}.theme-overlay .screenshot.selected{background:0 0;border:2px solid #72aee6}.theme-overlay .screenshot.selected img{opacity:.8}.theme-browser .theme .theme-screenshot.blank,.theme-overlay .screenshot.blank{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=)}.theme-overlay .theme-info{width:40%;float:right}.theme-overlay .current-label{background:#2c3338;color:#fff;font-size:11px;display:inline-block;padding:2px 8px;border-radius:2px;margin:0 0 -10px;-webkit-user-select:none;user-select:none}.theme-overlay .theme-name{color:#1d2327;font-size:32px;font-weight:100;margin:10px 0 0;line-height:1.3;word-wrap:break-word;overflow-wrap:break-word}.theme-overlay .theme-version{color:#646970;font-size:13px;font-weight:400;float:none;display:inline-block;margin-right:10px}.theme-overlay .theme-author{margin:15px 0 25px;color:#646970;font-size:16px;font-weight:400;line-height:inherit}.theme-overlay .toggle-auto-update{display:inline-flex;align-items:center;min-height:20px;vertical-align:top}.theme-overlay .theme-autoupdate .toggle-auto-update{text-decoration:none}.theme-overlay .theme-autoupdate .toggle-auto-update .label{text-decoration:underline}.theme-overlay .theme-description{color:#50575e;font-size:15px;font-weight:400;line-height:1.5;margin:30px 0 0}.theme-overlay .theme-tags{border-top:3px solid #f0f0f1;color:#646970;font-size:13px;font-weight:400;margin:30px 0 0;padding-top:20px}.theme-overlay .theme-tags span{color:#3c434a;font-weight:600;margin-left:5px}.theme-overlay .parent-theme{background:#fff;border:1px solid #f0f0f1;border-right:4px solid #72aee6;font-size:14px;font-weight:400;margin-top:30px;padding:10px 20px 10px 10px}.theme-overlay .parent-theme strong{font-weight:600}.single-theme .theme,.single-theme .theme-overlay .theme-backdrop,.single-theme .theme-overlay .theme-header{display:none}.single-theme .theme-overlay .theme-wrap{clear:both;min-height:330px;position:relative;right:auto;left:auto;top:auto;bottom:auto;z-index:10}.single-theme .theme-overlay .theme-about{padding:30px 30px 70px;position:static}.single-theme .theme-overlay .theme-actions{position:absolute}@media only screen and (min-width:2000px){#wpwrap .theme-browser .theme{width:17.6%;margin:0 0 3% 3%}#wpwrap .theme-browser .theme:nth-child(3n),#wpwrap .theme-browser .theme:nth-child(4n){margin-left:3%}#wpwrap .theme-browser .theme:nth-child(5n){margin-left:0}}@media only screen and (min-width:1680px){.theme-overlay .theme-wrap{width:1450px;margin:0 auto}}@media only screen and (min-width:1640px){.theme-browser .theme{width:22.7%;margin:0 0 3% 3%}.theme-browser .theme .theme-screenshot:after{padding-top:75%}.theme-browser .theme:nth-child(3n){margin-left:3%}.theme-browser .theme:nth-child(4n){margin-left:0}}@media only screen and (max-width:1120px){.theme-browser .theme{width:47.5%;margin-left:0}.theme-browser .theme:nth-child(2n){margin-left:0}.theme-browser .theme:nth-child(odd){margin-left:5%}}@media only screen and (max-width:960px){.theme-overlay .theme-wrap{right:65px}}@media only screen and (max-width:782px){.theme-overlay .theme-wrap,body.folded .theme-overlay .theme-wrap{top:0;left:0;bottom:0;right:0;padding:70px 20px 20px;border:none;z-index:100000;position:fixed}.theme-browser .theme.active .theme-name span{display:none}.theme-overlay .theme-screenshots{width:40%}.theme-overlay .theme-info{width:50%}.single-theme .theme-wrap{padding:10px}.theme-browser .theme .theme-actions{padding:5px 10px 4px}.theme-overlay.small-screenshot .theme-screenshots{position:static;float:none;max-width:302px}.theme-overlay.small-screenshot .theme-info{margin-right:0;width:auto}.theme.focus .more-details,.theme:hover .more-details,.theme:not(.active):focus .theme-actions,.theme:not(.active):hover .theme-actions{display:none}.theme-browser.rendered .theme.focus .theme-screenshot img,.theme-browser.rendered .theme:hover .theme-screenshot img{opacity:1}}@media only screen and (max-width:480px){.theme-browser .theme{width:100%;margin-left:0}.theme-browser .theme:nth-child(2n),.theme-browser .theme:nth-child(3n){margin-left:0}.theme-overlay .theme-about{bottom:105px}.theme-overlay .theme-actions{padding-right:4%;padding-left:4%}}@media only screen and (max-width:650px){.theme-overlay .theme-description{margin-right:0}.theme-overlay .theme-actions .delete-theme{position:relative;left:auto;bottom:auto}.theme-overlay .theme-actions .inactive-theme{display:inline}.theme-overlay .theme-screenshots{width:100%;float:none}.theme-overlay .theme-info{width:100%}.theme-overlay .theme-author{margin:5px 0 15px}.theme-overlay .current-label{margin-top:10px;font-size:13px}.themes-php .wp-filter-search{float:none;clear:both;right:0;left:0;margin:-5px 0 20px;width:100%;max-width:280px}.theme-browser .theme.add-new-theme span:after{font:normal 60px/90px dashicons;width:80px;height:80px;top:30%;right:50%;text-indent:0;margin-right:-40px}.single-theme .theme-wrap{margin:0 -10px 0 -12px;padding:10px}.single-theme .theme-overlay .theme-about{padding:10px;overflow:visible}.single-theme .current-label{display:none}.single-theme .theme-overlay .theme-actions{position:static}}.broken-themes{clear:both}.broken-themes table{text-align:right;width:50%;border-spacing:3px;padding:3px}.update-php .wrap{max-width:40rem}.theme-browser .theme .theme-installed{background:#2271b1}.theme-browser .theme .notice-success p:before{color:#68de7c;content:"\f147";display:inline-block;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.theme-install.updated-message:before{content:""}.theme-install-php .wp-filter{padding-right:20px}.theme-install-php a.browse-themes,.theme-install-php a.upload{cursor:pointer}.plugin-install-tab-upload .upload-view-toggle .upload,.upload-view-toggle .browse{display:none}.plugin-install-tab-upload .upload-view-toggle .browse{display:inline}.upload-plugin,.upload-theme{box-sizing:border-box;display:none;margin:0;padding:50px 0;width:100%;overflow:hidden;position:relative;top:10px;text-align:center}.plugin-install-tab-upload .upload-plugin,.show-upload-view .upload-plugin,.show-upload-view .upload-plugin-wrap,.show-upload-view .upload-theme{display:block}.upload-plugin .wp-upload-form,.upload-theme .wp-upload-form{background:#f6f7f7;border:1px solid #c3c4c7;padding:30px;margin:30px auto;display:inline-flex;justify-content:space-between;align-items:center}.upload-plugin .wp-upload-form input[type=file],.upload-theme .wp-upload-form input[type=file]{margin-left:10px}.upload-plugin .install-help,.upload-theme .install-help{color:#50575e;font-size:18px;font-style:normal;margin:0;padding:0;text-align:center}p.no-themes,p.no-themes-local{clear:both;color:#646970;font-size:18px;font-style:normal;margin:0;padding:100px 0;text-align:center;display:none}.no-results p.no-themes{display:block}.theme-install-php .add-new-theme{display:none!important}@media only screen and (max-width:1120px){.upload-theme .wp-upload-form{margin:20px 0;max-width:100%}.upload-theme .install-help{font-size:15px;padding:20px 0 0}}.theme-details .theme-rating{line-height:1.9}.theme-details .star-rating{display:inline}.theme-details .no-rating,.theme-details .num-ratings{font-size:11px;color:#646970}.theme-details .no-rating{display:block;line-height:1.9}.update-from-upload-comparison{border-top:1px solid #dcdcde;border-bottom:1px solid #dcdcde;text-align:right;margin:1rem 0 1.4rem;border-collapse:collapse;width:100%}.update-from-upload-comparison tr:last-child td{height:1.4rem;vertical-align:top}.update-from-upload-comparison tr:first-child th{font-weight:700;height:1.4rem;vertical-align:bottom}.update-from-upload-comparison td.name-label{text-align:left}.update-from-upload-comparison td,.update-from-upload-comparison th{padding:.4rem 1.4rem}.update-from-upload-comparison td.warning{color:#d63638}.update-from-upload-actions{margin-top:1.4rem}.appearance_page_custom-header #headimg{border:1px solid #dcdcde;overflow:hidden;width:100%}.appearance_page_custom-header #upload-form p label{font-size:12px}.appearance_page_custom-header .available-headers .default-header{float:right;margin:0 0 20px 20px}.appearance_page_custom-header .random-header{clear:both;margin:0 0 20px 20px;vertical-align:middle}.appearance_page_custom-header .available-headers label input,.appearance_page_custom-header .random-header label input{margin-left:10px}.appearance_page_custom-header .available-headers label img{vertical-align:middle}div#custom-background-image{min-height:100px;border:1px solid #dcdcde}div#custom-background-image img{max-width:400px;max-height:300px}.background-position-control input[type=radio]:checked~.button{background:#f0f0f1;border-color:#8c8f94;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);z-index:1}.background-position-control input[type=radio]:focus~.button{border-color:#4f94d4;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 3px rgba(34,113,177,.8);color:#1d2327}.background-position-control .background-position-center-icon,.background-position-control .background-position-center-icon:before{display:inline-block;line-height:1;text-align:center;transition:background-color .1s ease-in}.background-position-control .background-position-center-icon{height:20px;margin-top:13px;vertical-align:top;width:20px}.background-position-control .background-position-center-icon:before{background-color:#50575e;border-radius:50%;content:"";height:12px;width:12px}.background-position-control .button:hover .background-position-center-icon:before,.background-position-control input[type=radio]:focus~.button .background-position-center-icon:before{background-color:#1d2327}.background-position-control .button-group{display:block}.background-position-control .button-group .button{border-radius:0;box-shadow:none;height:40px!important;line-height:2.9!important;margin:0 0 0 -1px!important;padding:0 10px 1px!important;position:relative}.background-position-control .button-group .button:active,.background-position-control .button-group .button:focus,.background-position-control .button-group .button:hover{z-index:1}.background-position-control .button-group:last-child .button{box-shadow:0 1px 0 #c3c4c7}.background-position-control .button-group>label{margin:0!important}.background-position-control .button-group:first-child>label:first-child .button{border-radius:0 3px 0 0}.background-position-control .button-group:first-child>label:first-child .dashicons{transform:rotate(-45deg)}.background-position-control .button-group:first-child>label:last-child .button{border-radius:3px 0 0 0}.background-position-control .button-group:first-child>label:last-child .dashicons{transform:rotate(45deg)}.background-position-control .button-group:last-child>label:first-child .button{border-radius:0 0 3px 0}.background-position-control .button-group:last-child>label:first-child .dashicons{transform:rotate(45deg)}.background-position-control .button-group:last-child>label:last-child .button{border-radius:0 0 0 3px}.background-position-control .button-group:last-child>label:last-child .dashicons{transform:rotate(-45deg)}.background-position-control .button-group .dashicons{margin-top:9px}.background-position-control .button-group+.button-group{margin-top:-1px}body.full-overlay-active{overflow:hidden;visibility:hidden}.wp-full-overlay{background:0 0;z-index:500000;position:fixed;overflow:visible;top:0;bottom:0;right:0;left:0;height:100%;min-width:0}.wp-full-overlay-sidebar{box-sizing:border-box;position:fixed;min-width:300px;max-width:600px;width:18%;height:100%;top:0;bottom:0;right:0;padding:0;margin:0;z-index:10;background:#f0f0f1;border-left:none}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{overflow:visible}.wp-full-overlay.collapsed,.wp-full-overlay.expanded .wp-full-overlay-sidebar{margin-right:0!important}.wp-full-overlay.expanded{margin-right:300px}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-right:-300px}@media screen and (min-width:1667px){.wp-full-overlay.expanded{margin-right:18%}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-right:-18%}}@media screen and (min-width:3333px){.wp-full-overlay.expanded{margin-right:600px}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-right:-600px}}.wp-full-overlay-sidebar:after{content:"";display:block;position:absolute;top:0;bottom:0;left:0;width:3px;z-index:1000}.wp-full-overlay-main{position:absolute;right:0;left:0;top:0;bottom:0;height:100%}.wp-full-overlay-sidebar .wp-full-overlay-header{position:absolute;right:0;left:0;height:45px;padding:0 15px;line-height:3.2;z-index:10;margin:0;border-top:none;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-header a.back{margin-top:9px}.wp-full-overlay-sidebar .wp-full-overlay-footer{bottom:0;border-bottom:none;border-top:none;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{position:absolute;top:45px;bottom:45px;right:0;left:0;overflow:auto}.theme-install-overlay .wp-full-overlay-sidebar .wp-full-overlay-header{padding:0}.theme-install-overlay .close-full-overlay,.theme-install-overlay .next-theme,.theme-install-overlay .previous-theme{display:block;position:relative;float:right;width:45px;height:45px;background:#f0f0f1;border-left:1px solid #dcdcde;color:#3c434a;cursor:pointer;text-decoration:none;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-install-overlay .close-full-overlay:focus,.theme-install-overlay .close-full-overlay:hover,.theme-install-overlay .next-theme:focus,.theme-install-overlay .next-theme:hover,.theme-install-overlay .previous-theme:focus,.theme-install-overlay .previous-theme:hover{background:#dcdcde;border-color:#c3c4c7;color:#000;outline:0;box-shadow:none}.theme-install-overlay .close-full-overlay:before{font:normal 22px/1 dashicons;content:"\f335";position:relative;top:7px;right:13px}.theme-install-overlay .previous-theme:before{font:normal 20px/1 dashicons;content:"\f345";position:relative;top:6px;right:14px}.theme-install-overlay .next-theme:before{font:normal 20px/1 dashicons;content:"\f341";position:relative;top:6px;right:13px}.theme-install-overlay .next-theme.disabled,.theme-install-overlay .next-theme.disabled:focus,.theme-install-overlay .next-theme.disabled:hover,.theme-install-overlay .previous-theme.disabled,.theme-install-overlay .previous-theme.disabled:focus,.theme-install-overlay .previous-theme.disabled:hover{color:#c3c4c7;background:#f0f0f1;cursor:default;pointer-events:none}.theme-install-overlay .close-full-overlay,.theme-install-overlay .next-theme,.theme-install-overlay .previous-theme{border-right:0;border-top:0;border-bottom:0}.theme-install-overlay .close-full-overlay:before,.theme-install-overlay .next-theme:before,.theme-install-overlay .previous-theme:before{top:2px;right:0}.wp-core-ui .wp-full-overlay .collapse-sidebar{position:fixed;bottom:0;right:0;padding:9px 10px 9px 0;height:45px;color:#646970;outline:0;line-height:1;background-color:transparent!important;border:none!important;box-shadow:none!important;border-radius:0!important}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#2271b1}.wp-full-overlay .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar-label{display:inline-block;vertical-align:middle;line-height:1.6}.wp-full-overlay .collapse-sidebar-arrow{width:20px;height:20px;margin:0 2px;border-radius:50%;overflow:hidden}.wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.wp-full-overlay .collapse-sidebar-label{margin-right:3px}.wp-full-overlay.collapsed .collapse-sidebar-label{display:none}.wp-full-overlay .collapse-sidebar-arrow:before{display:block;content:"\f148";background:#f0f0f1;font:normal 20px/1 dashicons;speak:never;padding:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-core-ui .wp-full-overlay.collapsed .collapse-sidebar{padding:9px 10px}.rtl .wp-full-overlay .collapse-sidebar-arrow:before,.wp-full-overlay.collapsed .collapse-sidebar-arrow:before{transform:rotate(180.001deg)}.rtl .wp-full-overlay.collapsed .collapse-sidebar-arrow:before{transform:none}.wp-full-overlay,.wp-full-overlay .collapse-sidebar,.wp-full-overlay-main,.wp-full-overlay-sidebar{transition-property:right,left,top,bottom,width,margin;transition-duration:.2s}.wp-full-overlay{background:#1d2327}.wp-full-overlay-main{background-color:#f0f0f1}.expanded .wp-full-overlay-footer{position:fixed;bottom:0;right:0;min-width:299px;max-width:599px;width:18%;width:calc(18% - 1px);height:45px;border-top:1px solid #dcdcde;background:#f0f0f1}.wp-full-overlay-footer .devices-wrapper{float:left}.wp-full-overlay-footer .devices{position:relative;background:#f0f0f1;box-shadow:20px 0 10px -5px #f0f0f1}.wp-full-overlay-footer .devices button{cursor:pointer;background:0 0;border:none;height:45px;padding:0 3px;margin:0 -4px 0 0;box-shadow:none;border-top:1px solid transparent;border-bottom:4px solid transparent;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out}.wp-full-overlay-footer .devices button:focus{box-shadow:none;outline:0}.wp-full-overlay-footer .devices button:before{display:inline-block;-webkit-font-smoothing:antialiased;font:normal 20px/30px dashicons;vertical-align:top;margin:3px 0;padding:4px 8px;color:#646970}.wp-full-overlay-footer .devices button.active{border-bottom-color:#1d2327}.wp-full-overlay-footer .devices button:focus,.wp-full-overlay-footer .devices button:hover{background-color:#fff}.wp-full-overlay-footer .devices button.active:hover,.wp-full-overlay-footer .devices button:focus{border-bottom-color:#2271b1}.wp-full-overlay-footer .devices button.active:before{color:#1d2327}.wp-full-overlay-footer .devices button:focus:before,.wp-full-overlay-footer .devices button:hover:before{color:#2271b1}.wp-full-overlay-footer .devices .preview-desktop:before{content:"\f472"}.wp-full-overlay-footer .devices .preview-tablet:before{content:"\f471"}.wp-full-overlay-footer .devices .preview-mobile:before{content:"\f470"}@media screen and (max-width:1024px){.wp-full-overlay-footer .devices{display:none}}.collapsed .wp-full-overlay-footer .devices button:before{display:none}.preview-mobile .wp-full-overlay-main{margin:auto -160px auto 0;width:320px;height:480px;max-height:100%;max-width:100%;right:50%}.preview-tablet .wp-full-overlay-main{margin:auto -360px auto 0;width:720px;height:1080px;max-height:100%;max-width:100%;right:50%}.customize-support .hide-if-customize,.customize-support .wp-core-ui .hide-if-customize,.customize-support.wp-core-ui .hide-if-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .wp-core-ui .hide-if-no-customize,.no-customize-support.wp-core-ui .hide-if-no-customize{display:none}#customize-container,#customize-controls .notice.notification-overlay{background:#f0f0f1;z-index:500000;position:fixed;overflow:visible;top:0;bottom:0;right:0;left:0;height:100%}#customize-container{display:none}#customize-container,.theme-install-overlay{visibility:visible}.customize-loading #customize-container iframe{opacity:0}#customize-container iframe,.theme-install-overlay iframe{height:100%;width:100%;z-index:20;transition:opacity .3s}#customize-controls{margin-top:0}.theme-install-overlay{display:none}.theme-install-overlay.single-theme{display:block}.install-theme-info{display:none;padding:10px 20px 60px}.single-theme .install-theme-info{padding-top:15px}.theme-install-overlay .install-theme-info{display:block}.install-theme-info .theme-install{float:left;margin-top:18px}.install-theme-info .theme-name{font-size:16px;line-height:1.5;margin-bottom:0;margin-top:0}.install-theme-info .theme-screenshot{margin:15px 0;width:258px;border:1px solid #c3c4c7;position:relative;overflow:hidden}.install-theme-info .theme-screenshot>img{width:100%;height:auto;position:absolute;right:0;top:0}.install-theme-info .theme-screenshot:after{content:"";display:block;padding-top:66.66666666%}.install-theme-info .theme-details{overflow:hidden}.theme-details .theme-version{margin:15px 0}.theme-details .theme-description{float:right;color:#646970;line-height:1.6;max-width:100%}.theme-install-overlay .wp-full-overlay-header .button{float:left;margin:8px 0 0 10px}.theme-install-overlay .wp-full-overlay-sidebar{background:#f0f0f1;border-left:1px solid #dcdcde}.theme-install-overlay .wp-full-overlay-sidebar-content{background:#fff;border-top:1px solid #dcdcde;border-bottom:1px solid #dcdcde}.theme-install-overlay .wp-full-overlay-main{position:absolute;z-index:0;background-color:#f0f0f1}.customize-loading #customize-container{background-color:#f0f0f1}#customize-controls .notice.notification-overlay.notification-loading:before,#customize-preview.wp-full-overlay-main:before,.customize-loading #customize-container:before,.theme-install-overlay .wp-full-overlay-main:before{content:"";display:block;width:20px;height:20px;position:absolute;right:50%;top:50%;z-index:-1;margin:-10px -10px 0 0;transform:translateZ(0);background:transparent url(../images/spinner.gif) no-repeat center center;background-size:20px 20px}#customize-preview.wp-full-overlay-main.iframe-ready:before,.theme-install-overlay.iframe-ready .wp-full-overlay-main:before{background-image:none}@media print,(min-resolution:120dpi){.wp-full-overlay .collapse-sidebar-arrow{background-image:url(../images/arrows-2x.png);background-size:15px 123px}#customize-controls .notice.notification-overlay.notification-loading:before,#customize-preview.wp-full-overlay-main:before,.customize-loading #customize-container:before,.theme-install-overlay .wp-full-overlay-main:before{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){.available-theme .action-links .delete-theme{float:none;margin:0;padding:0;clear:both}.available-theme .action-links .delete-theme a{padding:0}.broken-themes table{width:100%}.theme-install-overlay .wp-full-overlay-header .button{font-size:13px;line-height:2.15384615;min-height:30px}.theme-browser .theme .theme-actions .button{margin-bottom:0}.theme-browser .theme .theme-actions,.theme-browser .theme.active .theme-actions{padding-top:4px;padding-bottom:4px}.upload-plugin .wp-upload-form,.upload-theme .wp-upload-form{display:block}}@media aural{.theme .notice:before,.theme-info .updated-message:before,.theme-info .updating-message:before,.theme-install.updating-message:before{speak:never}} \ No newline at end of file
+.themes-php{overflow-y:scroll}body.js .theme-browser.search-loading{display:none}.theme-browser .themes{clear:both}.themes-php .wrap h1 .button{margin-right:20px}.themes-php .search-form{display:inline-flex;align-items:center;position:relative;top:0;gap:.5rem;width:100%;justify-content:end}.themes-php .wp-filter-search{position:relative;margin:0;width:280px}.theme .notice,.theme .notice.is-dismissible{right:0;margin:0;position:absolute;left:0;top:0}.theme-browser .theme{cursor:pointer;float:right;margin:0 0 4% 4%;position:relative;width:30.6%;border:1px solid #dcdcde;box-shadow:0 1px 1px -1px rgba(0,0,0,.1);box-sizing:border-box}.theme-browser .theme:nth-child(3n){margin-left:0}.theme-browser .theme.focus,.theme-browser .theme:hover{cursor:pointer}.theme-browser .theme .theme-name{font-size:15px;font-weight:600;height:18px;margin:0;padding:15px;box-shadow:inset 0 1px 0 rgba(0,0,0,.1);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#fff;background:rgba(255,255,255,.65)}.theme-browser .theme .theme-actions{opacity:0;transition:opacity .1s ease-in-out;height:auto;background:rgba(246,247,247,.7);border-right:1px solid rgba(0,0,0,.05)}.theme-browser .theme.focus .theme-actions,.theme-browser .theme:hover .theme-actions{opacity:1}.theme-browser .theme .theme-actions .button-primary{margin-left:3px}.theme-browser .theme .theme-actions .button{float:none;margin-right:3px}.theme-browser .theme .theme-screenshot{display:block;overflow:hidden;position:relative;-webkit-backface-visibility:hidden;transition:opacity .2s ease-in-out}.theme-browser .theme .theme-screenshot:after{content:"";display:block;padding-top:66.66666%}.theme-browser .theme .theme-screenshot img{height:auto;position:absolute;right:0;top:0;width:100%;transition:opacity .2s ease-in-out}.theme-browser .theme.focus .theme-screenshot,.theme-browser .theme:hover .theme-screenshot{background:#fff}.theme-browser.rendered .theme.focus .theme-screenshot img,.theme-browser.rendered .theme:hover .theme-screenshot img{opacity:.4}.theme-browser .theme .more-details{opacity:0;position:absolute;top:35%;left:20%;right:20%;width:60%;background:#1d2327;background:rgba(0,0,0,.7);color:#fff;font-size:15px;text-shadow:0 1px 0 rgba(0,0,0,.6);-webkit-font-smoothing:antialiased;font-weight:600;padding:15px 12px;text-align:center;border-radius:3px;border:none;transition:opacity .1s ease-in-out;cursor:pointer}.theme-browser .theme .more-details:focus{box-shadow:0 0 0 2px #2271b1}.theme-browser .theme.focus{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}.theme-browser .theme.focus .more-details{opacity:1}.theme-browser .theme.active.focus .theme-actions{display:block}.theme-browser.rendered .theme.focus .more-details,.theme-browser.rendered .theme:hover .more-details{opacity:1}.theme-browser .theme.active .theme-name{background:#1d2327;color:#fff;padding-left:110px;font-weight:300;box-shadow:inset 0 1px 1px rgba(0,0,0,.5)}.theme-browser .customize-control .theme.active .theme-name{padding-left:15px}.theme-browser .theme.active .theme-name span{font-weight:600}.theme-browser .theme.active .theme-actions{background:rgba(44,51,56,.7);border-right:none;opacity:1}.theme-id-container{position:relative}.theme-browser .theme .theme-actions,.theme-browser .theme.active .theme-actions{position:absolute;top:50%;transform:translateY(-50%);left:0;padding:9px 15px;box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}.theme-browser .theme.active .theme-actions .button-primary{margin-left:0}.theme-browser .theme .theme-author{background:#1d2327;color:#f0f0f1;display:none;font-size:14px;margin:0 10px;padding:5px 10px;position:absolute;bottom:56px}.theme-browser .theme.display-author .theme-author{display:block}.theme-browser .theme.display-author .theme-author a{color:inherit}.theme-browser .theme.add-new-theme{border:none;box-shadow:none}.theme-browser .theme.add-new-theme a{text-decoration:none;display:block;position:relative;z-index:1}.theme-browser .theme.add-new-theme a:after{display:block;content:"";background:0 0;background:rgba(0,0,0,0);position:absolute;top:0;right:0;left:0;bottom:0;padding:0;text-shadow:none;border:5px dashed #dcdcde;border:5px dashed rgba(0,0,0,.1);box-sizing:border-box}.theme-browser .theme.add-new-theme span:after{background:#dcdcde;background:rgba(140,143,148,.1);border-radius:50%;display:inline-block;content:"\f132";-webkit-font-smoothing:antialiased;font:normal 74px/115px dashicons;width:100px;height:100px;vertical-align:middle;text-align:center;color:#8c8f94;position:absolute;top:30%;right:50%;margin-right:-50px;text-indent:-4px;padding:0;text-shadow:none;z-index:4}.rtl .theme-browser .theme.add-new-theme span:after{text-indent:4px}.theme-browser .theme.add-new-theme a:focus .theme-screenshot,.theme-browser .theme.add-new-theme a:hover .theme-screenshot{background:0 0}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{background:#fff;color:#2271b1}.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{border-color:transparent;color:#fff;background:#2271b1;content:""}.theme-browser .theme.add-new-theme .theme-name{background:0 0;text-align:center;box-shadow:none;font-weight:400;position:relative;top:0;margin-top:-18px;padding-top:0;padding-bottom:48px}.theme-browser .theme.add-new-theme a:focus .theme-name,.theme-browser .theme.add-new-theme a:hover .theme-name{color:#fff;z-index:2}.theme-overlay .theme-backdrop{position:absolute;right:-20px;left:0;top:0;bottom:0;background:#f0f0f1;background:rgba(240,240,241,.9);z-index:10000}.theme-overlay .theme-header{position:absolute;top:0;right:0;left:0;height:48px;border-bottom:1px solid #dcdcde}.theme-overlay .theme-header button{padding:0}.theme-overlay .theme-header .close{cursor:pointer;height:48px;width:50px;text-align:center;float:left;border:0;border-right:1px solid #dcdcde;background-color:transparent;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-overlay .theme-header .close:before{font:normal 22px/50px dashicons!important;color:#787c82;display:inline-block;content:"\f335";font-weight:300}.theme-overlay .theme-header .left,.theme-overlay .theme-header .right{cursor:pointer;color:#787c82;background-color:transparent;height:48px;width:54px;float:right;text-align:center;border:0;border-left:1px solid #dcdcde;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-overlay .theme-header .close:focus,.theme-overlay .theme-header .close:hover,.theme-overlay .theme-header .left:focus,.theme-overlay .theme-header .left:hover,.theme-overlay .theme-header .right:focus,.theme-overlay .theme-header .right:hover{background:#dcdcde;border-color:#c3c4c7;color:#000}.theme-overlay .theme-header .close:focus:before,.theme-overlay .theme-header .close:hover:before{color:#000}.theme-overlay .theme-header .close:focus,.theme-overlay .theme-header .left:focus,.theme-overlay .theme-header .right:focus{box-shadow:none;outline:0}.theme-overlay .theme-header .left.disabled,.theme-overlay .theme-header .left.disabled:hover,.theme-overlay .theme-header .right.disabled,.theme-overlay .theme-header .right.disabled:hover{color:#c3c4c7;background:inherit;cursor:inherit}.theme-overlay .theme-header .left:before,.theme-overlay .theme-header .right:before{font:normal 20px/50px dashicons!important;display:inline;font-weight:300}.theme-overlay .theme-header .left:before{content:"\f345"}.theme-overlay .theme-header .right:before{content:"\f341"}.theme-overlay .theme-wrap{clear:both;position:fixed;top:9%;right:190px;left:30px;bottom:3%;background:#fff;box-shadow:0 1px 20px 5px rgba(0,0,0,.1);z-index:10000;box-sizing:border-box;-webkit-overflow-scrolling:touch}body.folded .theme-browser~.theme-overlay .theme-wrap{right:70px}.theme-overlay .theme-about{position:absolute;top:49px;bottom:57px;right:0;left:0;overflow:auto;padding:2% 4%}.theme-overlay .theme-actions{position:absolute;text-align:center;bottom:0;right:0;left:0;padding:10px 25px 5px;background:#f6f7f7;z-index:30;box-sizing:border-box;border-top:1px solid #f0f0f1;display:flex;justify-content:center;gap:5px}.theme-overlay .theme-actions .button{margin-bottom:5px}.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-background"],.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-header"]{display:none}.broken-themes a.delete-theme,.theme-overlay .theme-actions .delete-theme{color:#b32d2e;text-decoration:none;border-color:transparent;box-shadow:none;background:0 0}.broken-themes a.delete-theme:focus,.broken-themes a.delete-theme:hover,.theme-overlay .theme-actions .delete-theme:focus,.theme-overlay .theme-actions .delete-theme:hover{background:#b32d2e;color:#fff;border-color:#b32d2e;box-shadow:0 0 0 1px #b32d2e}.theme-overlay .theme-actions .active-theme,.theme-overlay.active .theme-actions .inactive-theme{display:none}.theme-overlay .theme-actions .inactive-theme,.theme-overlay.active .theme-actions .active-theme{display:block}.theme-overlay .theme-screenshots{float:right;margin:0 0 0 30px;width:55%;max-width:1200px;text-align:center}.theme-overlay .screenshot{border:1px solid #fff;box-sizing:border-box;overflow:hidden;position:relative;box-shadow:0 0 0 1px rgba(0,0,0,.2)}.theme-overlay .screenshot:after{content:"";display:block;padding-top:75%}.theme-overlay .screenshot img{height:auto;position:absolute;right:0;top:0;width:100%}.theme-overlay.small-screenshot .theme-screenshots{position:absolute;width:302px}.theme-overlay.small-screenshot .theme-info{margin-right:350px;width:auto}.theme-overlay .screenshot.thumb{background:#c3c4c7;border:1px solid #f0f0f1;float:none;display:inline-block;margin:10px 5px 0;width:140px;height:80px;cursor:pointer}.theme-overlay .screenshot.thumb:after{content:"";display:block;padding-top:100%}.theme-overlay .screenshot.thumb img{cursor:pointer;height:auto;position:absolute;right:0;top:0;width:100%;height:auto}.theme-overlay .screenshot.selected{background:0 0;border:2px solid #72aee6}.theme-overlay .screenshot.selected img{opacity:.8}.theme-browser .theme .theme-screenshot.blank,.theme-overlay .screenshot.blank{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=)}.theme-overlay .theme-info{width:40%;float:right}.theme-overlay .current-label{background:#2c3338;color:#fff;font-size:11px;display:inline-block;padding:2px 8px;border-radius:2px;margin:0 0 -10px;-webkit-user-select:none;user-select:none}.theme-overlay .theme-name{color:#1d2327;font-size:32px;font-weight:100;margin:10px 0 0;line-height:1.3;word-wrap:break-word;overflow-wrap:break-word}.theme-overlay .theme-version{color:#646970;font-size:13px;font-weight:400;float:none;display:inline-block;margin-right:10px}.theme-overlay .theme-author{margin:15px 0 25px;color:#646970;font-size:16px;font-weight:400;line-height:inherit}.theme-overlay .toggle-auto-update{display:inline-flex;align-items:center;min-height:20px;vertical-align:top}.theme-overlay .theme-autoupdate .toggle-auto-update{text-decoration:none}.theme-overlay .theme-autoupdate .toggle-auto-update .label{text-decoration:underline}.theme-overlay .theme-description{color:#50575e;font-size:15px;font-weight:400;line-height:1.5;margin:30px 0 0}.theme-overlay .theme-tags{border-top:3px solid #f0f0f1;color:#646970;font-size:13px;font-weight:400;margin:30px 0 0;padding-top:20px}.theme-overlay .theme-tags span{color:#3c434a;font-weight:600;margin-left:5px}.theme-overlay .parent-theme{background:#fff;border:1px solid #f0f0f1;border-right:4px solid #72aee6;font-size:14px;font-weight:400;margin-top:30px;padding:10px 20px 10px 10px}.theme-overlay .parent-theme strong{font-weight:600}.single-theme .theme,.single-theme .theme-overlay .theme-backdrop,.single-theme .theme-overlay .theme-header{display:none}.single-theme .theme-overlay .theme-wrap{clear:both;min-height:330px;position:relative;right:auto;left:auto;top:auto;bottom:auto;z-index:10}.single-theme .theme-overlay .theme-about{padding:30px 30px 70px;position:static}.single-theme .theme-overlay .theme-actions{position:absolute}@media only screen and (min-width:2000px){#wpwrap .theme-browser .theme{width:17.6%;margin:0 0 3% 3%}#wpwrap .theme-browser .theme:nth-child(3n),#wpwrap .theme-browser .theme:nth-child(4n){margin-left:3%}#wpwrap .theme-browser .theme:nth-child(5n){margin-left:0}}@media only screen and (min-width:1680px){.theme-overlay .theme-wrap{width:1450px;margin:0 auto}}@media only screen and (min-width:1640px){.theme-browser .theme{width:22.7%;margin:0 0 3% 3%}.theme-browser .theme .theme-screenshot:after{padding-top:75%}.theme-browser .theme:nth-child(3n){margin-left:3%}.theme-browser .theme:nth-child(4n){margin-left:0}}@media only screen and (max-width:1120px){.theme-browser .theme{width:47.5%;margin-left:0}.theme-browser .theme:nth-child(2n){margin-left:0}.theme-browser .theme:nth-child(odd){margin-left:5%}}@media only screen and (max-width:960px){.theme-overlay .theme-wrap{right:65px}}@media only screen and (max-width:782px){.theme-overlay .theme-wrap,body.folded .theme-overlay .theme-wrap{top:0;left:0;bottom:0;right:0;padding:70px 20px 20px;border:none;z-index:100000;position:fixed}.theme-browser .theme.active .theme-name span{display:none}.theme-overlay .theme-screenshots{width:40%}.theme-overlay .theme-info{width:50%}.single-theme .theme-wrap{padding:10px}.theme-browser .theme .theme-actions{padding:5px 10px 4px}.theme-overlay.small-screenshot .theme-screenshots{position:static;float:none;max-width:302px}.theme-overlay.small-screenshot .theme-info{margin-right:0;width:auto}.theme.focus .more-details,.theme:hover .more-details,.theme:not(.active):focus .theme-actions,.theme:not(.active):hover .theme-actions{display:none}.theme-browser.rendered .theme.focus .theme-screenshot img,.theme-browser.rendered .theme:hover .theme-screenshot img{opacity:1}}@media only screen and (max-width:480px){.theme-browser .theme{width:100%;margin-left:0}.theme-browser .theme:nth-child(2n),.theme-browser .theme:nth-child(3n){margin-left:0}.theme-overlay .theme-about{bottom:105px}.theme-overlay .theme-actions{padding-right:4%;padding-left:4%}}@media only screen and (max-width:650px){.theme-overlay .theme-description{margin-right:0}.theme-overlay .theme-actions .delete-theme{position:relative;left:auto;bottom:auto}.theme-overlay .theme-actions .inactive-theme{display:inline}.theme-overlay .theme-screenshots{width:100%;float:none}.theme-overlay .theme-info{width:100%}.theme-overlay .theme-author{margin:5px 0 15px}.theme-overlay .current-label{margin-top:10px;font-size:13px}.themes-php .wp-filter-search{float:none;clear:both;right:0;left:0;width:100%;max-width:280px}.theme-install-php .wp-filter p.search-box{display:grid;row-gap:.5rem}.theme-browser .theme.add-new-theme span:after{font:normal 60px/90px dashicons;width:80px;height:80px;top:30%;right:50%;text-indent:0;margin-right:-40px}.single-theme .theme-wrap{margin:0 -10px 0 -12px;padding:10px}.single-theme .theme-overlay .theme-about{padding:10px;overflow:visible}.single-theme .current-label{display:none}.single-theme .theme-overlay .theme-actions{position:static}}.broken-themes{clear:both}.broken-themes table{text-align:right;width:50%;border-spacing:3px;padding:3px}.update-php .wrap{max-width:40rem}.theme-browser .theme .theme-installed{background:#2271b1}.theme-browser .theme .notice-success p:before{color:#68de7c;content:"\f147";display:inline-block;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.theme-install.updated-message:before{content:""}.theme-install-php .wp-filter{padding-right:20px}@media only screen and (max-width:1000px){.theme-install-php .wp-filter p.search-box{column-gap:.5rem}}.theme-install-php a.browse-themes,.theme-install-php a.upload{cursor:pointer}.plugin-install-tab-upload .upload-view-toggle .upload,.upload-view-toggle .browse{display:none}.plugin-install-tab-upload .upload-view-toggle .browse{display:inline}.upload-plugin,.upload-theme{box-sizing:border-box;display:none;margin:0;padding:50px 0;width:100%;overflow:hidden;position:relative;top:10px;text-align:center}.plugin-install-tab-upload .upload-plugin,.show-upload-view .upload-plugin,.show-upload-view .upload-plugin-wrap,.show-upload-view .upload-theme{display:block}.upload-plugin .wp-upload-form,.upload-theme .wp-upload-form{background:#f6f7f7;border:1px solid #c3c4c7;padding:30px;margin:30px auto;display:inline-flex;justify-content:space-between;align-items:center}.upload-plugin .wp-upload-form input[type=file],.upload-theme .wp-upload-form input[type=file]{margin-left:10px}.upload-plugin .install-help,.upload-theme .install-help{color:#50575e;font-size:18px;font-style:normal;margin:0;padding:0;text-align:center}p.no-themes,p.no-themes-local{clear:both;color:#646970;font-size:18px;font-style:normal;margin:0;padding:100px 0;text-align:center;display:none}.no-results p.no-themes{display:block}.theme-install-php .add-new-theme{display:none!important}@media only screen and (max-width:1120px){.upload-theme .wp-upload-form{margin:20px 0;max-width:100%}.upload-theme .install-help{font-size:15px;padding:20px 0 0}}.theme-details .theme-rating{line-height:1.9}.theme-details .star-rating{display:inline}.theme-details .no-rating,.theme-details .num-ratings{font-size:11px;color:#646970}.theme-details .no-rating{display:block;line-height:1.9}.update-from-upload-comparison{border-top:1px solid #dcdcde;border-bottom:1px solid #dcdcde;text-align:right;margin:1rem 0 1.4rem;border-collapse:collapse;width:100%}.update-from-upload-comparison tr:last-child td{height:1.4rem;vertical-align:top}.update-from-upload-comparison tr:first-child th{font-weight:700;height:1.4rem;vertical-align:bottom}.update-from-upload-comparison td.name-label{text-align:left}.update-from-upload-comparison td,.update-from-upload-comparison th{padding:.4rem 1.4rem}.update-from-upload-comparison td.warning{color:#d63638}.update-from-upload-actions{margin-top:1.4rem}.appearance_page_custom-header #headimg{border:1px solid #dcdcde;overflow:hidden;width:100%}.appearance_page_custom-header #upload-form p label{font-size:12px}.appearance_page_custom-header .available-headers .default-header{float:right;margin:0 0 20px 20px}.appearance_page_custom-header .random-header{clear:both;margin:0 0 20px 20px;vertical-align:middle}.appearance_page_custom-header .available-headers label input,.appearance_page_custom-header .random-header label input{margin-left:10px}.appearance_page_custom-header .available-headers label img{vertical-align:middle}div#custom-background-image{min-height:100px;border:1px solid #dcdcde}div#custom-background-image img{max-width:400px;max-height:300px}.background-position-control input[type=radio]:checked~.button{background:#f0f0f1;border-color:#8c8f94;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);z-index:1}.background-position-control input[type=radio]:focus~.button{border-color:#4f94d4;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 3px rgba(34,113,177,.8);color:#1d2327}.background-position-control .background-position-center-icon,.background-position-control .background-position-center-icon:before{display:inline-block;line-height:1;text-align:center;transition:background-color .1s ease-in}.background-position-control .background-position-center-icon{height:20px;margin-top:13px;vertical-align:top;width:20px}.background-position-control .background-position-center-icon:before{background-color:#50575e;border-radius:50%;content:"";height:12px;width:12px}.background-position-control .button:hover .background-position-center-icon:before,.background-position-control input[type=radio]:focus~.button .background-position-center-icon:before{background-color:#1d2327}.background-position-control .button-group{display:block}.background-position-control .button-group .button{border-radius:0;box-shadow:none;height:40px!important;line-height:2.9!important;margin:0 0 0 -1px!important;padding:0 10px 1px!important;position:relative}.background-position-control .button-group .button:active,.background-position-control .button-group .button:focus,.background-position-control .button-group .button:hover{z-index:1}.background-position-control .button-group:last-child .button{box-shadow:0 1px 0 #c3c4c7}.background-position-control .button-group>label{margin:0!important}.background-position-control .button-group:first-child>label:first-child .button{border-radius:0 3px 0 0}.background-position-control .button-group:first-child>label:first-child .dashicons{transform:rotate(-45deg)}.background-position-control .button-group:first-child>label:last-child .button{border-radius:3px 0 0 0}.background-position-control .button-group:first-child>label:last-child .dashicons{transform:rotate(45deg)}.background-position-control .button-group:last-child>label:first-child .button{border-radius:0 0 3px 0}.background-position-control .button-group:last-child>label:first-child .dashicons{transform:rotate(45deg)}.background-position-control .button-group:last-child>label:last-child .button{border-radius:0 0 0 3px}.background-position-control .button-group:last-child>label:last-child .dashicons{transform:rotate(-45deg)}.background-position-control .button-group .dashicons{margin-top:9px}.background-position-control .button-group+.button-group{margin-top:-1px}body.full-overlay-active{overflow:hidden;visibility:hidden}.wp-full-overlay{background:0 0;z-index:500000;position:fixed;overflow:visible;top:0;bottom:0;right:0;left:0;height:100%;min-width:0}.wp-full-overlay-sidebar{box-sizing:border-box;position:fixed;min-width:300px;max-width:600px;width:18%;height:100%;top:0;bottom:0;right:0;padding:0;margin:0;z-index:10;background:#f0f0f1;border-left:none}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{overflow:visible}.wp-full-overlay.collapsed,.wp-full-overlay.expanded .wp-full-overlay-sidebar{margin-right:0!important}.wp-full-overlay.expanded{margin-right:300px}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-right:-300px}@media screen and (min-width:1667px){.wp-full-overlay.expanded{margin-right:18%}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-right:-18%}}@media screen and (min-width:3333px){.wp-full-overlay.expanded{margin-right:600px}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-right:-600px}}.wp-full-overlay-sidebar:after{content:"";display:block;position:absolute;top:0;bottom:0;left:0;width:3px;z-index:1000}.wp-full-overlay-main{position:absolute;right:0;left:0;top:0;bottom:0;height:100%}.wp-full-overlay-sidebar .wp-full-overlay-header{position:absolute;right:0;left:0;height:45px;padding:0 15px;line-height:3.2;z-index:10;margin:0;border-top:none;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-header a.back{margin-top:9px}.wp-full-overlay-sidebar .wp-full-overlay-footer{bottom:0;border-bottom:none;border-top:none;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{position:absolute;top:45px;bottom:45px;right:0;left:0;overflow:auto}.theme-install-overlay .wp-full-overlay-sidebar .wp-full-overlay-header{padding:0}.theme-install-overlay .close-full-overlay,.theme-install-overlay .next-theme,.theme-install-overlay .previous-theme{display:block;position:relative;float:right;width:45px;height:45px;background:#f0f0f1;border-left:1px solid #dcdcde;color:#3c434a;cursor:pointer;text-decoration:none;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-install-overlay .close-full-overlay:focus,.theme-install-overlay .close-full-overlay:hover,.theme-install-overlay .next-theme:focus,.theme-install-overlay .next-theme:hover,.theme-install-overlay .previous-theme:focus,.theme-install-overlay .previous-theme:hover{background:#dcdcde;border-color:#c3c4c7;color:#000;outline:0;box-shadow:none}.theme-install-overlay .close-full-overlay:before{font:normal 22px/1 dashicons;content:"\f335";position:relative;top:7px;right:13px}.theme-install-overlay .previous-theme:before{font:normal 20px/1 dashicons;content:"\f345";position:relative;top:6px;right:14px}.theme-install-overlay .next-theme:before{font:normal 20px/1 dashicons;content:"\f341";position:relative;top:6px;right:13px}.theme-install-overlay .next-theme.disabled,.theme-install-overlay .next-theme.disabled:focus,.theme-install-overlay .next-theme.disabled:hover,.theme-install-overlay .previous-theme.disabled,.theme-install-overlay .previous-theme.disabled:focus,.theme-install-overlay .previous-theme.disabled:hover{color:#c3c4c7;background:#f0f0f1;cursor:default;pointer-events:none}.theme-install-overlay .close-full-overlay,.theme-install-overlay .next-theme,.theme-install-overlay .previous-theme{border-right:0;border-top:0;border-bottom:0}.theme-install-overlay .close-full-overlay:before,.theme-install-overlay .next-theme:before,.theme-install-overlay .previous-theme:before{top:2px;right:0}.wp-core-ui .wp-full-overlay .collapse-sidebar{position:fixed;bottom:0;right:0;padding:9px 10px 9px 0;height:45px;color:#646970;outline:0;line-height:1;background-color:transparent!important;border:none!important;box-shadow:none!important;border-radius:0!important}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#2271b1}.wp-full-overlay .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar-label{display:inline-block;vertical-align:middle;line-height:1.6}.wp-full-overlay .collapse-sidebar-arrow{width:20px;height:20px;margin:0 2px;border-radius:50%;overflow:hidden}.wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.wp-full-overlay .collapse-sidebar-label{margin-right:3px}.wp-full-overlay.collapsed .collapse-sidebar-label{display:none}.wp-full-overlay .collapse-sidebar-arrow:before{display:block;content:"\f148";background:#f0f0f1;font:normal 20px/1 dashicons;speak:never;padding:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-core-ui .wp-full-overlay.collapsed .collapse-sidebar{padding:9px 10px}.rtl .wp-full-overlay .collapse-sidebar-arrow:before,.wp-full-overlay.collapsed .collapse-sidebar-arrow:before{transform:rotate(180.001deg)}.rtl .wp-full-overlay.collapsed .collapse-sidebar-arrow:before{transform:none}.wp-full-overlay,.wp-full-overlay .collapse-sidebar,.wp-full-overlay-main,.wp-full-overlay-sidebar{transition-property:right,left,top,bottom,width,margin;transition-duration:.2s}.wp-full-overlay{background:#1d2327}.wp-full-overlay-main{background-color:#f0f0f1}.expanded .wp-full-overlay-footer{position:fixed;bottom:0;right:0;min-width:299px;max-width:599px;width:18%;width:calc(18% - 1px);height:45px;border-top:1px solid #dcdcde;background:#f0f0f1}.wp-full-overlay-footer .devices-wrapper{float:left}.wp-full-overlay-footer .devices{position:relative;background:#f0f0f1;box-shadow:20px 0 10px -5px #f0f0f1}.wp-full-overlay-footer .devices button{cursor:pointer;background:0 0;border:none;height:45px;padding:0 3px;margin:0 -4px 0 0;box-shadow:none;border-top:1px solid transparent;border-bottom:4px solid transparent;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out}.wp-full-overlay-footer .devices button:focus{box-shadow:none;outline:0}.wp-full-overlay-footer .devices button:before{display:inline-block;-webkit-font-smoothing:antialiased;font:normal 20px/30px dashicons;vertical-align:top;margin:3px 0;padding:4px 8px;color:#646970}.wp-full-overlay-footer .devices button.active{border-bottom-color:#1d2327}.wp-full-overlay-footer .devices button:focus,.wp-full-overlay-footer .devices button:hover{background-color:#fff}.wp-full-overlay-footer .devices button.active:hover,.wp-full-overlay-footer .devices button:focus{border-bottom-color:#2271b1}.wp-full-overlay-footer .devices button.active:before{color:#1d2327}.wp-full-overlay-footer .devices button:focus:before,.wp-full-overlay-footer .devices button:hover:before{color:#2271b1}.wp-full-overlay-footer .devices .preview-desktop:before{content:"\f472"}.wp-full-overlay-footer .devices .preview-tablet:before{content:"\f471"}.wp-full-overlay-footer .devices .preview-mobile:before{content:"\f470"}@media screen and (max-width:1024px){.wp-full-overlay-footer .devices{display:none}}.collapsed .wp-full-overlay-footer .devices button:before{display:none}.preview-mobile .wp-full-overlay-main{margin:auto -160px auto 0;width:320px;height:480px;max-height:100%;max-width:100%;right:50%}.preview-tablet .wp-full-overlay-main{margin:auto -360px auto 0;width:720px;height:1080px;max-height:100%;max-width:100%;right:50%}.customize-support .hide-if-customize,.customize-support .wp-core-ui .hide-if-customize,.customize-support.wp-core-ui .hide-if-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .wp-core-ui .hide-if-no-customize,.no-customize-support.wp-core-ui .hide-if-no-customize{display:none}#customize-container,#customize-controls .notice.notification-overlay{background:#f0f0f1;z-index:500000;position:fixed;overflow:visible;top:0;bottom:0;right:0;left:0;height:100%}#customize-container{display:none}#customize-container,.theme-install-overlay{visibility:visible}.customize-loading #customize-container iframe{opacity:0}#customize-container iframe,.theme-install-overlay iframe{height:100%;width:100%;z-index:20;transition:opacity .3s}#customize-controls{margin-top:0}.theme-install-overlay{display:none}.theme-install-overlay.single-theme{display:block}.install-theme-info{display:none;padding:10px 20px 60px}.single-theme .install-theme-info{padding-top:15px}.theme-install-overlay .install-theme-info{display:block}.install-theme-info .theme-install{float:left;margin-top:18px}.install-theme-info .theme-name{font-size:16px;line-height:1.5;margin-bottom:0;margin-top:0}.install-theme-info .theme-screenshot{margin:15px 0;width:258px;border:1px solid #c3c4c7;position:relative;overflow:hidden}.install-theme-info .theme-screenshot>img{width:100%;height:auto;position:absolute;right:0;top:0}.install-theme-info .theme-screenshot:after{content:"";display:block;padding-top:66.66666666%}.install-theme-info .theme-details{overflow:hidden}.theme-details .theme-version{margin:15px 0}.theme-details .theme-description{float:right;color:#646970;line-height:1.6;max-width:100%}.theme-install-overlay .wp-full-overlay-header .button{float:left;margin:8px 0 0 10px}.theme-install-overlay .wp-full-overlay-sidebar{background:#f0f0f1;border-left:1px solid #dcdcde}.theme-install-overlay .wp-full-overlay-sidebar-content{background:#fff;border-top:1px solid #dcdcde;border-bottom:1px solid #dcdcde}.theme-install-overlay .wp-full-overlay-main{position:absolute;z-index:0;background-color:#f0f0f1}.customize-loading #customize-container{background-color:#f0f0f1}#customize-controls .notice.notification-overlay.notification-loading:before,#customize-preview.wp-full-overlay-main:before,.customize-loading #customize-container:before,.theme-install-overlay .wp-full-overlay-main:before{content:"";display:block;width:20px;height:20px;position:absolute;right:50%;top:50%;z-index:-1;margin:-10px -10px 0 0;transform:translateZ(0);background:transparent url(../images/spinner.gif) no-repeat center center;background-size:20px 20px}#customize-preview.wp-full-overlay-main.iframe-ready:before,.theme-install-overlay.iframe-ready .wp-full-overlay-main:before{background-image:none}@media print,(min-resolution:120dpi){.wp-full-overlay .collapse-sidebar-arrow{background-image:url(../images/arrows-2x.png);background-size:15px 123px}#customize-controls .notice.notification-overlay.notification-loading:before,#customize-preview.wp-full-overlay-main:before,.customize-loading #customize-container:before,.theme-install-overlay .wp-full-overlay-main:before{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){.available-theme .action-links .delete-theme{float:none;margin:0;padding:0;clear:both}.available-theme .action-links .delete-theme a{padding:0}.broken-themes table{width:100%}.theme-install-overlay .wp-full-overlay-header .button{font-size:13px;line-height:2.15384615;min-height:30px}.theme-browser .theme .theme-actions .button{margin-bottom:0}.theme-browser .theme .theme-actions,.theme-browser .theme.active .theme-actions{padding-top:4px;padding-bottom:4px}.upload-plugin .wp-upload-form,.upload-theme .wp-upload-form{display:block}}@media aural{.theme .notice:before,.theme-info .updated-message:before,.theme-info .updating-message:before,.theme-install.updating-message:before{speak:never}} \ No newline at end of file
diff --git a/wp-admin/css/themes.css b/wp-admin/css/themes.css
index a68abbc..e7c58b2 100644
--- a/wp-admin/css/themes.css
+++ b/wp-admin/css/themes.css
@@ -19,23 +19,23 @@ body.js .theme-browser.search-loading {
clear: both;
}
-.themes-php:not(.network-admin) .wrap h1 {
- margin-bottom: 15px;
-}
-
.themes-php .wrap h1 .button {
margin-left: 20px;
}
/* Search form */
.themes-php .search-form {
- display: inline;
+ display: inline-flex;
+ align-items: center;
+ position: relative;
+ top: 0;
+ gap: .5rem;
+ width: 100%;
+ justify-content: end;
}
.themes-php .wp-filter-search {
position: relative;
- top: -2px;
- left: 20px;
margin: 0;
width: 280px;
}
@@ -955,11 +955,15 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
clear: both;
left: 0;
right: 0;
- margin: -5px 0 20px;
width: 100%;
max-width: 280px;
}
+ .theme-install-php .wp-filter p.search-box {
+ display: grid;
+ row-gap: .5rem;
+ }
+
.theme-browser .theme.add-new-theme span:after {
font: normal 60px/90px dashicons;
width: 80px;
@@ -1029,6 +1033,13 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
padding-left: 20px;
}
+/* Override column gap adjustment in media library. */
+@media only screen and (max-width: 1000px) {
+ .theme-install-php .wp-filter p.search-box {
+ column-gap: .5rem;
+ }
+}
+
.theme-install-php a.upload,
.theme-install-php a.browse-themes {
cursor: pointer;
diff --git a/wp-admin/css/themes.min.css b/wp-admin/css/themes.min.css
index c9788f0..9ebc2e7 100644
--- a/wp-admin/css/themes.min.css
+++ b/wp-admin/css/themes.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-.themes-php{overflow-y:scroll}body.js .theme-browser.search-loading{display:none}.theme-browser .themes{clear:both}.themes-php:not(.network-admin) .wrap h1{margin-bottom:15px}.themes-php .wrap h1 .button{margin-left:20px}.themes-php .search-form{display:inline}.themes-php .wp-filter-search{position:relative;top:-2px;left:20px;margin:0;width:280px}.theme .notice,.theme .notice.is-dismissible{left:0;margin:0;position:absolute;right:0;top:0}.theme-browser .theme{cursor:pointer;float:left;margin:0 4% 4% 0;position:relative;width:30.6%;border:1px solid #dcdcde;box-shadow:0 1px 1px -1px rgba(0,0,0,.1);box-sizing:border-box}.theme-browser .theme:nth-child(3n){margin-right:0}.theme-browser .theme.focus,.theme-browser .theme:hover{cursor:pointer}.theme-browser .theme .theme-name{font-size:15px;font-weight:600;height:18px;margin:0;padding:15px;box-shadow:inset 0 1px 0 rgba(0,0,0,.1);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#fff;background:rgba(255,255,255,.65)}.theme-browser .theme .theme-actions{opacity:0;transition:opacity .1s ease-in-out;height:auto;background:rgba(246,247,247,.7);border-left:1px solid rgba(0,0,0,.05)}.theme-browser .theme.focus .theme-actions,.theme-browser .theme:hover .theme-actions{opacity:1}.theme-browser .theme .theme-actions .button-primary{margin-right:3px}.theme-browser .theme .theme-actions .button{float:none;margin-left:3px}.theme-browser .theme .theme-screenshot{display:block;overflow:hidden;position:relative;-webkit-backface-visibility:hidden;transition:opacity .2s ease-in-out}.theme-browser .theme .theme-screenshot:after{content:"";display:block;padding-top:66.66666%}.theme-browser .theme .theme-screenshot img{height:auto;position:absolute;left:0;top:0;width:100%;transition:opacity .2s ease-in-out}.theme-browser .theme.focus .theme-screenshot,.theme-browser .theme:hover .theme-screenshot{background:#fff}.theme-browser.rendered .theme.focus .theme-screenshot img,.theme-browser.rendered .theme:hover .theme-screenshot img{opacity:.4}.theme-browser .theme .more-details{opacity:0;position:absolute;top:35%;right:20%;left:20%;width:60%;background:#1d2327;background:rgba(0,0,0,.7);color:#fff;font-size:15px;text-shadow:0 1px 0 rgba(0,0,0,.6);-webkit-font-smoothing:antialiased;font-weight:600;padding:15px 12px;text-align:center;border-radius:3px;border:none;transition:opacity .1s ease-in-out;cursor:pointer}.theme-browser .theme .more-details:focus{box-shadow:0 0 0 2px #2271b1}.theme-browser .theme.focus{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}.theme-browser .theme.focus .more-details{opacity:1}.theme-browser .theme.active.focus .theme-actions{display:block}.theme-browser.rendered .theme.focus .more-details,.theme-browser.rendered .theme:hover .more-details{opacity:1}.theme-browser .theme.active .theme-name{background:#1d2327;color:#fff;padding-right:110px;font-weight:300;box-shadow:inset 0 1px 1px rgba(0,0,0,.5)}.theme-browser .customize-control .theme.active .theme-name{padding-right:15px}.theme-browser .theme.active .theme-name span{font-weight:600}.theme-browser .theme.active .theme-actions{background:rgba(44,51,56,.7);border-left:none;opacity:1}.theme-id-container{position:relative}.theme-browser .theme .theme-actions,.theme-browser .theme.active .theme-actions{position:absolute;top:50%;transform:translateY(-50%);right:0;padding:9px 15px;box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}.theme-browser .theme.active .theme-actions .button-primary{margin-right:0}.theme-browser .theme .theme-author{background:#1d2327;color:#f0f0f1;display:none;font-size:14px;margin:0 10px;padding:5px 10px;position:absolute;bottom:56px}.theme-browser .theme.display-author .theme-author{display:block}.theme-browser .theme.display-author .theme-author a{color:inherit}.theme-browser .theme.add-new-theme{border:none;box-shadow:none}.theme-browser .theme.add-new-theme a{text-decoration:none;display:block;position:relative;z-index:1}.theme-browser .theme.add-new-theme a:after{display:block;content:"";background:0 0;background:rgba(0,0,0,0);position:absolute;top:0;left:0;right:0;bottom:0;padding:0;text-shadow:none;border:5px dashed #dcdcde;border:5px dashed rgba(0,0,0,.1);box-sizing:border-box}.theme-browser .theme.add-new-theme span:after{background:#dcdcde;background:rgba(140,143,148,.1);border-radius:50%;display:inline-block;content:"\f132";-webkit-font-smoothing:antialiased;font:normal 74px/115px dashicons;width:100px;height:100px;vertical-align:middle;text-align:center;color:#8c8f94;position:absolute;top:30%;left:50%;margin-left:-50px;text-indent:-4px;padding:0;text-shadow:none;z-index:4}.rtl .theme-browser .theme.add-new-theme span:after{text-indent:4px}.theme-browser .theme.add-new-theme a:focus .theme-screenshot,.theme-browser .theme.add-new-theme a:hover .theme-screenshot{background:0 0}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{background:#fff;color:#2271b1}.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{border-color:transparent;color:#fff;background:#2271b1;content:""}.theme-browser .theme.add-new-theme .theme-name{background:0 0;text-align:center;box-shadow:none;font-weight:400;position:relative;top:0;margin-top:-18px;padding-top:0;padding-bottom:48px}.theme-browser .theme.add-new-theme a:focus .theme-name,.theme-browser .theme.add-new-theme a:hover .theme-name{color:#fff;z-index:2}.theme-overlay .theme-backdrop{position:absolute;left:-20px;right:0;top:0;bottom:0;background:#f0f0f1;background:rgba(240,240,241,.9);z-index:10000}.theme-overlay .theme-header{position:absolute;top:0;left:0;right:0;height:48px;border-bottom:1px solid #dcdcde}.theme-overlay .theme-header button{padding:0}.theme-overlay .theme-header .close{cursor:pointer;height:48px;width:50px;text-align:center;float:right;border:0;border-left:1px solid #dcdcde;background-color:transparent;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-overlay .theme-header .close:before{font:normal 22px/50px dashicons!important;color:#787c82;display:inline-block;content:"\f335";font-weight:300}.theme-overlay .theme-header .left,.theme-overlay .theme-header .right{cursor:pointer;color:#787c82;background-color:transparent;height:48px;width:54px;float:left;text-align:center;border:0;border-right:1px solid #dcdcde;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-overlay .theme-header .close:focus,.theme-overlay .theme-header .close:hover,.theme-overlay .theme-header .left:focus,.theme-overlay .theme-header .left:hover,.theme-overlay .theme-header .right:focus,.theme-overlay .theme-header .right:hover{background:#dcdcde;border-color:#c3c4c7;color:#000}.theme-overlay .theme-header .close:focus:before,.theme-overlay .theme-header .close:hover:before{color:#000}.theme-overlay .theme-header .close:focus,.theme-overlay .theme-header .left:focus,.theme-overlay .theme-header .right:focus{box-shadow:none;outline:0}.theme-overlay .theme-header .left.disabled,.theme-overlay .theme-header .left.disabled:hover,.theme-overlay .theme-header .right.disabled,.theme-overlay .theme-header .right.disabled:hover{color:#c3c4c7;background:inherit;cursor:inherit}.theme-overlay .theme-header .left:before,.theme-overlay .theme-header .right:before{font:normal 20px/50px dashicons!important;display:inline;font-weight:300}.theme-overlay .theme-header .left:before{content:"\f341"}.theme-overlay .theme-header .right:before{content:"\f345"}.theme-overlay .theme-wrap{clear:both;position:fixed;top:9%;left:190px;right:30px;bottom:3%;background:#fff;box-shadow:0 1px 20px 5px rgba(0,0,0,.1);z-index:10000;box-sizing:border-box;-webkit-overflow-scrolling:touch}body.folded .theme-browser~.theme-overlay .theme-wrap{left:70px}.theme-overlay .theme-about{position:absolute;top:49px;bottom:57px;left:0;right:0;overflow:auto;padding:2% 4%}.theme-overlay .theme-actions{position:absolute;text-align:center;bottom:0;left:0;right:0;padding:10px 25px 5px;background:#f6f7f7;z-index:30;box-sizing:border-box;border-top:1px solid #f0f0f1;display:flex;justify-content:center;gap:5px}.theme-overlay .theme-actions .button{margin-bottom:5px}.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-background"],.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-header"]{display:none}.broken-themes a.delete-theme,.theme-overlay .theme-actions .delete-theme{color:#b32d2e;text-decoration:none;border-color:transparent;box-shadow:none;background:0 0}.broken-themes a.delete-theme:focus,.broken-themes a.delete-theme:hover,.theme-overlay .theme-actions .delete-theme:focus,.theme-overlay .theme-actions .delete-theme:hover{background:#b32d2e;color:#fff;border-color:#b32d2e;box-shadow:0 0 0 1px #b32d2e}.theme-overlay .theme-actions .active-theme,.theme-overlay.active .theme-actions .inactive-theme{display:none}.theme-overlay .theme-actions .inactive-theme,.theme-overlay.active .theme-actions .active-theme{display:block}.theme-overlay .theme-screenshots{float:left;margin:0 30px 0 0;width:55%;max-width:1200px;text-align:center}.theme-overlay .screenshot{border:1px solid #fff;box-sizing:border-box;overflow:hidden;position:relative;box-shadow:0 0 0 1px rgba(0,0,0,.2)}.theme-overlay .screenshot:after{content:"";display:block;padding-top:75%}.theme-overlay .screenshot img{height:auto;position:absolute;left:0;top:0;width:100%}.theme-overlay.small-screenshot .theme-screenshots{position:absolute;width:302px}.theme-overlay.small-screenshot .theme-info{margin-left:350px;width:auto}.theme-overlay .screenshot.thumb{background:#c3c4c7;border:1px solid #f0f0f1;float:none;display:inline-block;margin:10px 5px 0;width:140px;height:80px;cursor:pointer}.theme-overlay .screenshot.thumb:after{content:"";display:block;padding-top:100%}.theme-overlay .screenshot.thumb img{cursor:pointer;height:auto;position:absolute;left:0;top:0;width:100%;height:auto}.theme-overlay .screenshot.selected{background:0 0;border:2px solid #72aee6}.theme-overlay .screenshot.selected img{opacity:.8}.theme-browser .theme .theme-screenshot.blank,.theme-overlay .screenshot.blank{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=)}.theme-overlay .theme-info{width:40%;float:left}.theme-overlay .current-label{background:#2c3338;color:#fff;font-size:11px;display:inline-block;padding:2px 8px;border-radius:2px;margin:0 0 -10px;-webkit-user-select:none;user-select:none}.theme-overlay .theme-name{color:#1d2327;font-size:32px;font-weight:100;margin:10px 0 0;line-height:1.3;word-wrap:break-word;overflow-wrap:break-word}.theme-overlay .theme-version{color:#646970;font-size:13px;font-weight:400;float:none;display:inline-block;margin-left:10px}.theme-overlay .theme-author{margin:15px 0 25px;color:#646970;font-size:16px;font-weight:400;line-height:inherit}.theme-overlay .toggle-auto-update{display:inline-flex;align-items:center;min-height:20px;vertical-align:top}.theme-overlay .theme-autoupdate .toggle-auto-update{text-decoration:none}.theme-overlay .theme-autoupdate .toggle-auto-update .label{text-decoration:underline}.theme-overlay .theme-description{color:#50575e;font-size:15px;font-weight:400;line-height:1.5;margin:30px 0 0}.theme-overlay .theme-tags{border-top:3px solid #f0f0f1;color:#646970;font-size:13px;font-weight:400;margin:30px 0 0;padding-top:20px}.theme-overlay .theme-tags span{color:#3c434a;font-weight:600;margin-right:5px}.theme-overlay .parent-theme{background:#fff;border:1px solid #f0f0f1;border-left:4px solid #72aee6;font-size:14px;font-weight:400;margin-top:30px;padding:10px 10px 10px 20px}.theme-overlay .parent-theme strong{font-weight:600}.single-theme .theme,.single-theme .theme-overlay .theme-backdrop,.single-theme .theme-overlay .theme-header{display:none}.single-theme .theme-overlay .theme-wrap{clear:both;min-height:330px;position:relative;left:auto;right:auto;top:auto;bottom:auto;z-index:10}.single-theme .theme-overlay .theme-about{padding:30px 30px 70px;position:static}.single-theme .theme-overlay .theme-actions{position:absolute}@media only screen and (min-width:2000px){#wpwrap .theme-browser .theme{width:17.6%;margin:0 3% 3% 0}#wpwrap .theme-browser .theme:nth-child(3n),#wpwrap .theme-browser .theme:nth-child(4n){margin-right:3%}#wpwrap .theme-browser .theme:nth-child(5n){margin-right:0}}@media only screen and (min-width:1680px){.theme-overlay .theme-wrap{width:1450px;margin:0 auto}}@media only screen and (min-width:1640px){.theme-browser .theme{width:22.7%;margin:0 3% 3% 0}.theme-browser .theme .theme-screenshot:after{padding-top:75%}.theme-browser .theme:nth-child(3n){margin-right:3%}.theme-browser .theme:nth-child(4n){margin-right:0}}@media only screen and (max-width:1120px){.theme-browser .theme{width:47.5%;margin-right:0}.theme-browser .theme:nth-child(2n){margin-right:0}.theme-browser .theme:nth-child(odd){margin-right:5%}}@media only screen and (max-width:960px){.theme-overlay .theme-wrap{left:65px}}@media only screen and (max-width:782px){.theme-overlay .theme-wrap,body.folded .theme-overlay .theme-wrap{top:0;right:0;bottom:0;left:0;padding:70px 20px 20px;border:none;z-index:100000;position:fixed}.theme-browser .theme.active .theme-name span{display:none}.theme-overlay .theme-screenshots{width:40%}.theme-overlay .theme-info{width:50%}.single-theme .theme-wrap{padding:10px}.theme-browser .theme .theme-actions{padding:5px 10px 4px}.theme-overlay.small-screenshot .theme-screenshots{position:static;float:none;max-width:302px}.theme-overlay.small-screenshot .theme-info{margin-left:0;width:auto}.theme.focus .more-details,.theme:hover .more-details,.theme:not(.active):focus .theme-actions,.theme:not(.active):hover .theme-actions{display:none}.theme-browser.rendered .theme.focus .theme-screenshot img,.theme-browser.rendered .theme:hover .theme-screenshot img{opacity:1}}@media only screen and (max-width:480px){.theme-browser .theme{width:100%;margin-right:0}.theme-browser .theme:nth-child(2n),.theme-browser .theme:nth-child(3n){margin-right:0}.theme-overlay .theme-about{bottom:105px}.theme-overlay .theme-actions{padding-left:4%;padding-right:4%}}@media only screen and (max-width:650px){.theme-overlay .theme-description{margin-left:0}.theme-overlay .theme-actions .delete-theme{position:relative;right:auto;bottom:auto}.theme-overlay .theme-actions .inactive-theme{display:inline}.theme-overlay .theme-screenshots{width:100%;float:none}.theme-overlay .theme-info{width:100%}.theme-overlay .theme-author{margin:5px 0 15px}.theme-overlay .current-label{margin-top:10px;font-size:13px}.themes-php .wp-filter-search{float:none;clear:both;left:0;right:0;margin:-5px 0 20px;width:100%;max-width:280px}.theme-browser .theme.add-new-theme span:after{font:normal 60px/90px dashicons;width:80px;height:80px;top:30%;left:50%;text-indent:0;margin-left:-40px}.single-theme .theme-wrap{margin:0 -12px 0 -10px;padding:10px}.single-theme .theme-overlay .theme-about{padding:10px;overflow:visible}.single-theme .current-label{display:none}.single-theme .theme-overlay .theme-actions{position:static}}.broken-themes{clear:both}.broken-themes table{text-align:left;width:50%;border-spacing:3px;padding:3px}.update-php .wrap{max-width:40rem}.theme-browser .theme .theme-installed{background:#2271b1}.theme-browser .theme .notice-success p:before{color:#68de7c;content:"\f147";display:inline-block;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.theme-install.updated-message:before{content:""}.theme-install-php .wp-filter{padding-left:20px}.theme-install-php a.browse-themes,.theme-install-php a.upload{cursor:pointer}.plugin-install-tab-upload .upload-view-toggle .upload,.upload-view-toggle .browse{display:none}.plugin-install-tab-upload .upload-view-toggle .browse{display:inline}.upload-plugin,.upload-theme{box-sizing:border-box;display:none;margin:0;padding:50px 0;width:100%;overflow:hidden;position:relative;top:10px;text-align:center}.plugin-install-tab-upload .upload-plugin,.show-upload-view .upload-plugin,.show-upload-view .upload-plugin-wrap,.show-upload-view .upload-theme{display:block}.upload-plugin .wp-upload-form,.upload-theme .wp-upload-form{background:#f6f7f7;border:1px solid #c3c4c7;padding:30px;margin:30px auto;display:inline-flex;justify-content:space-between;align-items:center}.upload-plugin .wp-upload-form input[type=file],.upload-theme .wp-upload-form input[type=file]{margin-right:10px}.upload-plugin .install-help,.upload-theme .install-help{color:#50575e;font-size:18px;font-style:normal;margin:0;padding:0;text-align:center}p.no-themes,p.no-themes-local{clear:both;color:#646970;font-size:18px;font-style:normal;margin:0;padding:100px 0;text-align:center;display:none}.no-results p.no-themes{display:block}.theme-install-php .add-new-theme{display:none!important}@media only screen and (max-width:1120px){.upload-theme .wp-upload-form{margin:20px 0;max-width:100%}.upload-theme .install-help{font-size:15px;padding:20px 0 0}}.theme-details .theme-rating{line-height:1.9}.theme-details .star-rating{display:inline}.theme-details .no-rating,.theme-details .num-ratings{font-size:11px;color:#646970}.theme-details .no-rating{display:block;line-height:1.9}.update-from-upload-comparison{border-top:1px solid #dcdcde;border-bottom:1px solid #dcdcde;text-align:left;margin:1rem 0 1.4rem;border-collapse:collapse;width:100%}.update-from-upload-comparison tr:last-child td{height:1.4rem;vertical-align:top}.update-from-upload-comparison tr:first-child th{font-weight:700;height:1.4rem;vertical-align:bottom}.update-from-upload-comparison td.name-label{text-align:right}.update-from-upload-comparison td,.update-from-upload-comparison th{padding:.4rem 1.4rem}.update-from-upload-comparison td.warning{color:#d63638}.update-from-upload-actions{margin-top:1.4rem}.appearance_page_custom-header #headimg{border:1px solid #dcdcde;overflow:hidden;width:100%}.appearance_page_custom-header #upload-form p label{font-size:12px}.appearance_page_custom-header .available-headers .default-header{float:left;margin:0 20px 20px 0}.appearance_page_custom-header .random-header{clear:both;margin:0 20px 20px 0;vertical-align:middle}.appearance_page_custom-header .available-headers label input,.appearance_page_custom-header .random-header label input{margin-right:10px}.appearance_page_custom-header .available-headers label img{vertical-align:middle}div#custom-background-image{min-height:100px;border:1px solid #dcdcde}div#custom-background-image img{max-width:400px;max-height:300px}.background-position-control input[type=radio]:checked~.button{background:#f0f0f1;border-color:#8c8f94;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);z-index:1}.background-position-control input[type=radio]:focus~.button{border-color:#4f94d4;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 3px rgba(34,113,177,.8);color:#1d2327}.background-position-control .background-position-center-icon,.background-position-control .background-position-center-icon:before{display:inline-block;line-height:1;text-align:center;transition:background-color .1s ease-in}.background-position-control .background-position-center-icon{height:20px;margin-top:13px;vertical-align:top;width:20px}.background-position-control .background-position-center-icon:before{background-color:#50575e;border-radius:50%;content:"";height:12px;width:12px}.background-position-control .button:hover .background-position-center-icon:before,.background-position-control input[type=radio]:focus~.button .background-position-center-icon:before{background-color:#1d2327}.background-position-control .button-group{display:block}.background-position-control .button-group .button{border-radius:0;box-shadow:none;height:40px!important;line-height:2.9!important;margin:0 -1px 0 0!important;padding:0 10px 1px!important;position:relative}.background-position-control .button-group .button:active,.background-position-control .button-group .button:focus,.background-position-control .button-group .button:hover{z-index:1}.background-position-control .button-group:last-child .button{box-shadow:0 1px 0 #c3c4c7}.background-position-control .button-group>label{margin:0!important}.background-position-control .button-group:first-child>label:first-child .button{border-radius:3px 0 0}.background-position-control .button-group:first-child>label:first-child .dashicons{transform:rotate(45deg)}.background-position-control .button-group:first-child>label:last-child .button{border-radius:0 3px 0 0}.background-position-control .button-group:first-child>label:last-child .dashicons{transform:rotate(-45deg)}.background-position-control .button-group:last-child>label:first-child .button{border-radius:0 0 0 3px}.background-position-control .button-group:last-child>label:first-child .dashicons{transform:rotate(-45deg)}.background-position-control .button-group:last-child>label:last-child .button{border-radius:0 0 3px}.background-position-control .button-group:last-child>label:last-child .dashicons{transform:rotate(45deg)}.background-position-control .button-group .dashicons{margin-top:9px}.background-position-control .button-group+.button-group{margin-top:-1px}body.full-overlay-active{overflow:hidden;visibility:hidden}.wp-full-overlay{background:0 0;z-index:500000;position:fixed;overflow:visible;top:0;bottom:0;left:0;right:0;height:100%;min-width:0}.wp-full-overlay-sidebar{box-sizing:border-box;position:fixed;min-width:300px;max-width:600px;width:18%;height:100%;top:0;bottom:0;left:0;padding:0;margin:0;z-index:10;background:#f0f0f1;border-right:none}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{overflow:visible}.wp-full-overlay.collapsed,.wp-full-overlay.expanded .wp-full-overlay-sidebar{margin-left:0!important}.wp-full-overlay.expanded{margin-left:300px}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-left:-300px}@media screen and (min-width:1667px){.wp-full-overlay.expanded{margin-left:18%}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-left:-18%}}@media screen and (min-width:3333px){.wp-full-overlay.expanded{margin-left:600px}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-left:-600px}}.wp-full-overlay-sidebar:after{content:"";display:block;position:absolute;top:0;bottom:0;right:0;width:3px;z-index:1000}.wp-full-overlay-main{position:absolute;left:0;right:0;top:0;bottom:0;height:100%}.wp-full-overlay-sidebar .wp-full-overlay-header{position:absolute;left:0;right:0;height:45px;padding:0 15px;line-height:3.2;z-index:10;margin:0;border-top:none;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-header a.back{margin-top:9px}.wp-full-overlay-sidebar .wp-full-overlay-footer{bottom:0;border-bottom:none;border-top:none;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{position:absolute;top:45px;bottom:45px;left:0;right:0;overflow:auto}.theme-install-overlay .wp-full-overlay-sidebar .wp-full-overlay-header{padding:0}.theme-install-overlay .close-full-overlay,.theme-install-overlay .next-theme,.theme-install-overlay .previous-theme{display:block;position:relative;float:left;width:45px;height:45px;background:#f0f0f1;border-right:1px solid #dcdcde;color:#3c434a;cursor:pointer;text-decoration:none;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-install-overlay .close-full-overlay:focus,.theme-install-overlay .close-full-overlay:hover,.theme-install-overlay .next-theme:focus,.theme-install-overlay .next-theme:hover,.theme-install-overlay .previous-theme:focus,.theme-install-overlay .previous-theme:hover{background:#dcdcde;border-color:#c3c4c7;color:#000;outline:0;box-shadow:none}.theme-install-overlay .close-full-overlay:before{font:normal 22px/1 dashicons;content:"\f335";position:relative;top:7px;left:13px}.theme-install-overlay .previous-theme:before{font:normal 20px/1 dashicons;content:"\f341";position:relative;top:6px;left:14px}.theme-install-overlay .next-theme:before{font:normal 20px/1 dashicons;content:"\f345";position:relative;top:6px;left:13px}.theme-install-overlay .next-theme.disabled,.theme-install-overlay .next-theme.disabled:focus,.theme-install-overlay .next-theme.disabled:hover,.theme-install-overlay .previous-theme.disabled,.theme-install-overlay .previous-theme.disabled:focus,.theme-install-overlay .previous-theme.disabled:hover{color:#c3c4c7;background:#f0f0f1;cursor:default;pointer-events:none}.theme-install-overlay .close-full-overlay,.theme-install-overlay .next-theme,.theme-install-overlay .previous-theme{border-left:0;border-top:0;border-bottom:0}.theme-install-overlay .close-full-overlay:before,.theme-install-overlay .next-theme:before,.theme-install-overlay .previous-theme:before{top:2px;left:0}.wp-core-ui .wp-full-overlay .collapse-sidebar{position:fixed;bottom:0;left:0;padding:9px 0 9px 10px;height:45px;color:#646970;outline:0;line-height:1;background-color:transparent!important;border:none!important;box-shadow:none!important;border-radius:0!important}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#2271b1}.wp-full-overlay .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar-label{display:inline-block;vertical-align:middle;line-height:1.6}.wp-full-overlay .collapse-sidebar-arrow{width:20px;height:20px;margin:0 2px;border-radius:50%;overflow:hidden}.wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.wp-full-overlay .collapse-sidebar-label{margin-left:3px}.wp-full-overlay.collapsed .collapse-sidebar-label{display:none}.wp-full-overlay .collapse-sidebar-arrow:before{display:block;content:"\f148";background:#f0f0f1;font:normal 20px/1 dashicons;speak:never;padding:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-core-ui .wp-full-overlay.collapsed .collapse-sidebar{padding:9px 10px}.rtl .wp-full-overlay .collapse-sidebar-arrow:before,.wp-full-overlay.collapsed .collapse-sidebar-arrow:before{transform:rotate(180.001deg)}.rtl .wp-full-overlay.collapsed .collapse-sidebar-arrow:before{transform:none}.wp-full-overlay,.wp-full-overlay .collapse-sidebar,.wp-full-overlay-main,.wp-full-overlay-sidebar{transition-property:left,right,top,bottom,width,margin;transition-duration:.2s}.wp-full-overlay{background:#1d2327}.wp-full-overlay-main{background-color:#f0f0f1}.expanded .wp-full-overlay-footer{position:fixed;bottom:0;left:0;min-width:299px;max-width:599px;width:18%;width:calc(18% - 1px);height:45px;border-top:1px solid #dcdcde;background:#f0f0f1}.wp-full-overlay-footer .devices-wrapper{float:right}.wp-full-overlay-footer .devices{position:relative;background:#f0f0f1;box-shadow:-20px 0 10px -5px #f0f0f1}.wp-full-overlay-footer .devices button{cursor:pointer;background:0 0;border:none;height:45px;padding:0 3px;margin:0 0 0 -4px;box-shadow:none;border-top:1px solid transparent;border-bottom:4px solid transparent;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out}.wp-full-overlay-footer .devices button:focus{box-shadow:none;outline:0}.wp-full-overlay-footer .devices button:before{display:inline-block;-webkit-font-smoothing:antialiased;font:normal 20px/30px dashicons;vertical-align:top;margin:3px 0;padding:4px 8px;color:#646970}.wp-full-overlay-footer .devices button.active{border-bottom-color:#1d2327}.wp-full-overlay-footer .devices button:focus,.wp-full-overlay-footer .devices button:hover{background-color:#fff}.wp-full-overlay-footer .devices button.active:hover,.wp-full-overlay-footer .devices button:focus{border-bottom-color:#2271b1}.wp-full-overlay-footer .devices button.active:before{color:#1d2327}.wp-full-overlay-footer .devices button:focus:before,.wp-full-overlay-footer .devices button:hover:before{color:#2271b1}.wp-full-overlay-footer .devices .preview-desktop:before{content:"\f472"}.wp-full-overlay-footer .devices .preview-tablet:before{content:"\f471"}.wp-full-overlay-footer .devices .preview-mobile:before{content:"\f470"}@media screen and (max-width:1024px){.wp-full-overlay-footer .devices{display:none}}.collapsed .wp-full-overlay-footer .devices button:before{display:none}.preview-mobile .wp-full-overlay-main{margin:auto 0 auto -160px;width:320px;height:480px;max-height:100%;max-width:100%;left:50%}.preview-tablet .wp-full-overlay-main{margin:auto 0 auto -360px;width:720px;height:1080px;max-height:100%;max-width:100%;left:50%}.customize-support .hide-if-customize,.customize-support .wp-core-ui .hide-if-customize,.customize-support.wp-core-ui .hide-if-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .wp-core-ui .hide-if-no-customize,.no-customize-support.wp-core-ui .hide-if-no-customize{display:none}#customize-container,#customize-controls .notice.notification-overlay{background:#f0f0f1;z-index:500000;position:fixed;overflow:visible;top:0;bottom:0;left:0;right:0;height:100%}#customize-container{display:none}#customize-container,.theme-install-overlay{visibility:visible}.customize-loading #customize-container iframe{opacity:0}#customize-container iframe,.theme-install-overlay iframe{height:100%;width:100%;z-index:20;transition:opacity .3s}#customize-controls{margin-top:0}.theme-install-overlay{display:none}.theme-install-overlay.single-theme{display:block}.install-theme-info{display:none;padding:10px 20px 60px}.single-theme .install-theme-info{padding-top:15px}.theme-install-overlay .install-theme-info{display:block}.install-theme-info .theme-install{float:right;margin-top:18px}.install-theme-info .theme-name{font-size:16px;line-height:1.5;margin-bottom:0;margin-top:0}.install-theme-info .theme-screenshot{margin:15px 0;width:258px;border:1px solid #c3c4c7;position:relative;overflow:hidden}.install-theme-info .theme-screenshot>img{width:100%;height:auto;position:absolute;left:0;top:0}.install-theme-info .theme-screenshot:after{content:"";display:block;padding-top:66.66666666%}.install-theme-info .theme-details{overflow:hidden}.theme-details .theme-version{margin:15px 0}.theme-details .theme-description{float:left;color:#646970;line-height:1.6;max-width:100%}.theme-install-overlay .wp-full-overlay-header .button{float:right;margin:8px 10px 0 0}.theme-install-overlay .wp-full-overlay-sidebar{background:#f0f0f1;border-right:1px solid #dcdcde}.theme-install-overlay .wp-full-overlay-sidebar-content{background:#fff;border-top:1px solid #dcdcde;border-bottom:1px solid #dcdcde}.theme-install-overlay .wp-full-overlay-main{position:absolute;z-index:0;background-color:#f0f0f1}.customize-loading #customize-container{background-color:#f0f0f1}#customize-controls .notice.notification-overlay.notification-loading:before,#customize-preview.wp-full-overlay-main:before,.customize-loading #customize-container:before,.theme-install-overlay .wp-full-overlay-main:before{content:"";display:block;width:20px;height:20px;position:absolute;left:50%;top:50%;z-index:-1;margin:-10px 0 0 -10px;transform:translateZ(0);background:transparent url(../images/spinner.gif) no-repeat center center;background-size:20px 20px}#customize-preview.wp-full-overlay-main.iframe-ready:before,.theme-install-overlay.iframe-ready .wp-full-overlay-main:before{background-image:none}@media print,(min-resolution:120dpi){.wp-full-overlay .collapse-sidebar-arrow{background-image:url(../images/arrows-2x.png);background-size:15px 123px}#customize-controls .notice.notification-overlay.notification-loading:before,#customize-preview.wp-full-overlay-main:before,.customize-loading #customize-container:before,.theme-install-overlay .wp-full-overlay-main:before{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){.available-theme .action-links .delete-theme{float:none;margin:0;padding:0;clear:both}.available-theme .action-links .delete-theme a{padding:0}.broken-themes table{width:100%}.theme-install-overlay .wp-full-overlay-header .button{font-size:13px;line-height:2.15384615;min-height:30px}.theme-browser .theme .theme-actions .button{margin-bottom:0}.theme-browser .theme .theme-actions,.theme-browser .theme.active .theme-actions{padding-top:4px;padding-bottom:4px}.upload-plugin .wp-upload-form,.upload-theme .wp-upload-form{display:block}}@media aural{.theme .notice:before,.theme-info .updated-message:before,.theme-info .updating-message:before,.theme-install.updating-message:before{speak:never}} \ No newline at end of file
+.themes-php{overflow-y:scroll}body.js .theme-browser.search-loading{display:none}.theme-browser .themes{clear:both}.themes-php .wrap h1 .button{margin-left:20px}.themes-php .search-form{display:inline-flex;align-items:center;position:relative;top:0;gap:.5rem;width:100%;justify-content:end}.themes-php .wp-filter-search{position:relative;margin:0;width:280px}.theme .notice,.theme .notice.is-dismissible{left:0;margin:0;position:absolute;right:0;top:0}.theme-browser .theme{cursor:pointer;float:left;margin:0 4% 4% 0;position:relative;width:30.6%;border:1px solid #dcdcde;box-shadow:0 1px 1px -1px rgba(0,0,0,.1);box-sizing:border-box}.theme-browser .theme:nth-child(3n){margin-right:0}.theme-browser .theme.focus,.theme-browser .theme:hover{cursor:pointer}.theme-browser .theme .theme-name{font-size:15px;font-weight:600;height:18px;margin:0;padding:15px;box-shadow:inset 0 1px 0 rgba(0,0,0,.1);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#fff;background:rgba(255,255,255,.65)}.theme-browser .theme .theme-actions{opacity:0;transition:opacity .1s ease-in-out;height:auto;background:rgba(246,247,247,.7);border-left:1px solid rgba(0,0,0,.05)}.theme-browser .theme.focus .theme-actions,.theme-browser .theme:hover .theme-actions{opacity:1}.theme-browser .theme .theme-actions .button-primary{margin-right:3px}.theme-browser .theme .theme-actions .button{float:none;margin-left:3px}.theme-browser .theme .theme-screenshot{display:block;overflow:hidden;position:relative;-webkit-backface-visibility:hidden;transition:opacity .2s ease-in-out}.theme-browser .theme .theme-screenshot:after{content:"";display:block;padding-top:66.66666%}.theme-browser .theme .theme-screenshot img{height:auto;position:absolute;left:0;top:0;width:100%;transition:opacity .2s ease-in-out}.theme-browser .theme.focus .theme-screenshot,.theme-browser .theme:hover .theme-screenshot{background:#fff}.theme-browser.rendered .theme.focus .theme-screenshot img,.theme-browser.rendered .theme:hover .theme-screenshot img{opacity:.4}.theme-browser .theme .more-details{opacity:0;position:absolute;top:35%;right:20%;left:20%;width:60%;background:#1d2327;background:rgba(0,0,0,.7);color:#fff;font-size:15px;text-shadow:0 1px 0 rgba(0,0,0,.6);-webkit-font-smoothing:antialiased;font-weight:600;padding:15px 12px;text-align:center;border-radius:3px;border:none;transition:opacity .1s ease-in-out;cursor:pointer}.theme-browser .theme .more-details:focus{box-shadow:0 0 0 2px #2271b1}.theme-browser .theme.focus{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}.theme-browser .theme.focus .more-details{opacity:1}.theme-browser .theme.active.focus .theme-actions{display:block}.theme-browser.rendered .theme.focus .more-details,.theme-browser.rendered .theme:hover .more-details{opacity:1}.theme-browser .theme.active .theme-name{background:#1d2327;color:#fff;padding-right:110px;font-weight:300;box-shadow:inset 0 1px 1px rgba(0,0,0,.5)}.theme-browser .customize-control .theme.active .theme-name{padding-right:15px}.theme-browser .theme.active .theme-name span{font-weight:600}.theme-browser .theme.active .theme-actions{background:rgba(44,51,56,.7);border-left:none;opacity:1}.theme-id-container{position:relative}.theme-browser .theme .theme-actions,.theme-browser .theme.active .theme-actions{position:absolute;top:50%;transform:translateY(-50%);right:0;padding:9px 15px;box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}.theme-browser .theme.active .theme-actions .button-primary{margin-right:0}.theme-browser .theme .theme-author{background:#1d2327;color:#f0f0f1;display:none;font-size:14px;margin:0 10px;padding:5px 10px;position:absolute;bottom:56px}.theme-browser .theme.display-author .theme-author{display:block}.theme-browser .theme.display-author .theme-author a{color:inherit}.theme-browser .theme.add-new-theme{border:none;box-shadow:none}.theme-browser .theme.add-new-theme a{text-decoration:none;display:block;position:relative;z-index:1}.theme-browser .theme.add-new-theme a:after{display:block;content:"";background:0 0;background:rgba(0,0,0,0);position:absolute;top:0;left:0;right:0;bottom:0;padding:0;text-shadow:none;border:5px dashed #dcdcde;border:5px dashed rgba(0,0,0,.1);box-sizing:border-box}.theme-browser .theme.add-new-theme span:after{background:#dcdcde;background:rgba(140,143,148,.1);border-radius:50%;display:inline-block;content:"\f132";-webkit-font-smoothing:antialiased;font:normal 74px/115px dashicons;width:100px;height:100px;vertical-align:middle;text-align:center;color:#8c8f94;position:absolute;top:30%;left:50%;margin-left:-50px;text-indent:-4px;padding:0;text-shadow:none;z-index:4}.rtl .theme-browser .theme.add-new-theme span:after{text-indent:4px}.theme-browser .theme.add-new-theme a:focus .theme-screenshot,.theme-browser .theme.add-new-theme a:hover .theme-screenshot{background:0 0}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{background:#fff;color:#2271b1}.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{border-color:transparent;color:#fff;background:#2271b1;content:""}.theme-browser .theme.add-new-theme .theme-name{background:0 0;text-align:center;box-shadow:none;font-weight:400;position:relative;top:0;margin-top:-18px;padding-top:0;padding-bottom:48px}.theme-browser .theme.add-new-theme a:focus .theme-name,.theme-browser .theme.add-new-theme a:hover .theme-name{color:#fff;z-index:2}.theme-overlay .theme-backdrop{position:absolute;left:-20px;right:0;top:0;bottom:0;background:#f0f0f1;background:rgba(240,240,241,.9);z-index:10000}.theme-overlay .theme-header{position:absolute;top:0;left:0;right:0;height:48px;border-bottom:1px solid #dcdcde}.theme-overlay .theme-header button{padding:0}.theme-overlay .theme-header .close{cursor:pointer;height:48px;width:50px;text-align:center;float:right;border:0;border-left:1px solid #dcdcde;background-color:transparent;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-overlay .theme-header .close:before{font:normal 22px/50px dashicons!important;color:#787c82;display:inline-block;content:"\f335";font-weight:300}.theme-overlay .theme-header .left,.theme-overlay .theme-header .right{cursor:pointer;color:#787c82;background-color:transparent;height:48px;width:54px;float:left;text-align:center;border:0;border-right:1px solid #dcdcde;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-overlay .theme-header .close:focus,.theme-overlay .theme-header .close:hover,.theme-overlay .theme-header .left:focus,.theme-overlay .theme-header .left:hover,.theme-overlay .theme-header .right:focus,.theme-overlay .theme-header .right:hover{background:#dcdcde;border-color:#c3c4c7;color:#000}.theme-overlay .theme-header .close:focus:before,.theme-overlay .theme-header .close:hover:before{color:#000}.theme-overlay .theme-header .close:focus,.theme-overlay .theme-header .left:focus,.theme-overlay .theme-header .right:focus{box-shadow:none;outline:0}.theme-overlay .theme-header .left.disabled,.theme-overlay .theme-header .left.disabled:hover,.theme-overlay .theme-header .right.disabled,.theme-overlay .theme-header .right.disabled:hover{color:#c3c4c7;background:inherit;cursor:inherit}.theme-overlay .theme-header .left:before,.theme-overlay .theme-header .right:before{font:normal 20px/50px dashicons!important;display:inline;font-weight:300}.theme-overlay .theme-header .left:before{content:"\f341"}.theme-overlay .theme-header .right:before{content:"\f345"}.theme-overlay .theme-wrap{clear:both;position:fixed;top:9%;left:190px;right:30px;bottom:3%;background:#fff;box-shadow:0 1px 20px 5px rgba(0,0,0,.1);z-index:10000;box-sizing:border-box;-webkit-overflow-scrolling:touch}body.folded .theme-browser~.theme-overlay .theme-wrap{left:70px}.theme-overlay .theme-about{position:absolute;top:49px;bottom:57px;left:0;right:0;overflow:auto;padding:2% 4%}.theme-overlay .theme-actions{position:absolute;text-align:center;bottom:0;left:0;right:0;padding:10px 25px 5px;background:#f6f7f7;z-index:30;box-sizing:border-box;border-top:1px solid #f0f0f1;display:flex;justify-content:center;gap:5px}.theme-overlay .theme-actions .button{margin-bottom:5px}.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-background"],.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-header"]{display:none}.broken-themes a.delete-theme,.theme-overlay .theme-actions .delete-theme{color:#b32d2e;text-decoration:none;border-color:transparent;box-shadow:none;background:0 0}.broken-themes a.delete-theme:focus,.broken-themes a.delete-theme:hover,.theme-overlay .theme-actions .delete-theme:focus,.theme-overlay .theme-actions .delete-theme:hover{background:#b32d2e;color:#fff;border-color:#b32d2e;box-shadow:0 0 0 1px #b32d2e}.theme-overlay .theme-actions .active-theme,.theme-overlay.active .theme-actions .inactive-theme{display:none}.theme-overlay .theme-actions .inactive-theme,.theme-overlay.active .theme-actions .active-theme{display:block}.theme-overlay .theme-screenshots{float:left;margin:0 30px 0 0;width:55%;max-width:1200px;text-align:center}.theme-overlay .screenshot{border:1px solid #fff;box-sizing:border-box;overflow:hidden;position:relative;box-shadow:0 0 0 1px rgba(0,0,0,.2)}.theme-overlay .screenshot:after{content:"";display:block;padding-top:75%}.theme-overlay .screenshot img{height:auto;position:absolute;left:0;top:0;width:100%}.theme-overlay.small-screenshot .theme-screenshots{position:absolute;width:302px}.theme-overlay.small-screenshot .theme-info{margin-left:350px;width:auto}.theme-overlay .screenshot.thumb{background:#c3c4c7;border:1px solid #f0f0f1;float:none;display:inline-block;margin:10px 5px 0;width:140px;height:80px;cursor:pointer}.theme-overlay .screenshot.thumb:after{content:"";display:block;padding-top:100%}.theme-overlay .screenshot.thumb img{cursor:pointer;height:auto;position:absolute;left:0;top:0;width:100%;height:auto}.theme-overlay .screenshot.selected{background:0 0;border:2px solid #72aee6}.theme-overlay .screenshot.selected img{opacity:.8}.theme-browser .theme .theme-screenshot.blank,.theme-overlay .screenshot.blank{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=)}.theme-overlay .theme-info{width:40%;float:left}.theme-overlay .current-label{background:#2c3338;color:#fff;font-size:11px;display:inline-block;padding:2px 8px;border-radius:2px;margin:0 0 -10px;-webkit-user-select:none;user-select:none}.theme-overlay .theme-name{color:#1d2327;font-size:32px;font-weight:100;margin:10px 0 0;line-height:1.3;word-wrap:break-word;overflow-wrap:break-word}.theme-overlay .theme-version{color:#646970;font-size:13px;font-weight:400;float:none;display:inline-block;margin-left:10px}.theme-overlay .theme-author{margin:15px 0 25px;color:#646970;font-size:16px;font-weight:400;line-height:inherit}.theme-overlay .toggle-auto-update{display:inline-flex;align-items:center;min-height:20px;vertical-align:top}.theme-overlay .theme-autoupdate .toggle-auto-update{text-decoration:none}.theme-overlay .theme-autoupdate .toggle-auto-update .label{text-decoration:underline}.theme-overlay .theme-description{color:#50575e;font-size:15px;font-weight:400;line-height:1.5;margin:30px 0 0}.theme-overlay .theme-tags{border-top:3px solid #f0f0f1;color:#646970;font-size:13px;font-weight:400;margin:30px 0 0;padding-top:20px}.theme-overlay .theme-tags span{color:#3c434a;font-weight:600;margin-right:5px}.theme-overlay .parent-theme{background:#fff;border:1px solid #f0f0f1;border-left:4px solid #72aee6;font-size:14px;font-weight:400;margin-top:30px;padding:10px 10px 10px 20px}.theme-overlay .parent-theme strong{font-weight:600}.single-theme .theme,.single-theme .theme-overlay .theme-backdrop,.single-theme .theme-overlay .theme-header{display:none}.single-theme .theme-overlay .theme-wrap{clear:both;min-height:330px;position:relative;left:auto;right:auto;top:auto;bottom:auto;z-index:10}.single-theme .theme-overlay .theme-about{padding:30px 30px 70px;position:static}.single-theme .theme-overlay .theme-actions{position:absolute}@media only screen and (min-width:2000px){#wpwrap .theme-browser .theme{width:17.6%;margin:0 3% 3% 0}#wpwrap .theme-browser .theme:nth-child(3n),#wpwrap .theme-browser .theme:nth-child(4n){margin-right:3%}#wpwrap .theme-browser .theme:nth-child(5n){margin-right:0}}@media only screen and (min-width:1680px){.theme-overlay .theme-wrap{width:1450px;margin:0 auto}}@media only screen and (min-width:1640px){.theme-browser .theme{width:22.7%;margin:0 3% 3% 0}.theme-browser .theme .theme-screenshot:after{padding-top:75%}.theme-browser .theme:nth-child(3n){margin-right:3%}.theme-browser .theme:nth-child(4n){margin-right:0}}@media only screen and (max-width:1120px){.theme-browser .theme{width:47.5%;margin-right:0}.theme-browser .theme:nth-child(2n){margin-right:0}.theme-browser .theme:nth-child(odd){margin-right:5%}}@media only screen and (max-width:960px){.theme-overlay .theme-wrap{left:65px}}@media only screen and (max-width:782px){.theme-overlay .theme-wrap,body.folded .theme-overlay .theme-wrap{top:0;right:0;bottom:0;left:0;padding:70px 20px 20px;border:none;z-index:100000;position:fixed}.theme-browser .theme.active .theme-name span{display:none}.theme-overlay .theme-screenshots{width:40%}.theme-overlay .theme-info{width:50%}.single-theme .theme-wrap{padding:10px}.theme-browser .theme .theme-actions{padding:5px 10px 4px}.theme-overlay.small-screenshot .theme-screenshots{position:static;float:none;max-width:302px}.theme-overlay.small-screenshot .theme-info{margin-left:0;width:auto}.theme.focus .more-details,.theme:hover .more-details,.theme:not(.active):focus .theme-actions,.theme:not(.active):hover .theme-actions{display:none}.theme-browser.rendered .theme.focus .theme-screenshot img,.theme-browser.rendered .theme:hover .theme-screenshot img{opacity:1}}@media only screen and (max-width:480px){.theme-browser .theme{width:100%;margin-right:0}.theme-browser .theme:nth-child(2n),.theme-browser .theme:nth-child(3n){margin-right:0}.theme-overlay .theme-about{bottom:105px}.theme-overlay .theme-actions{padding-left:4%;padding-right:4%}}@media only screen and (max-width:650px){.theme-overlay .theme-description{margin-left:0}.theme-overlay .theme-actions .delete-theme{position:relative;right:auto;bottom:auto}.theme-overlay .theme-actions .inactive-theme{display:inline}.theme-overlay .theme-screenshots{width:100%;float:none}.theme-overlay .theme-info{width:100%}.theme-overlay .theme-author{margin:5px 0 15px}.theme-overlay .current-label{margin-top:10px;font-size:13px}.themes-php .wp-filter-search{float:none;clear:both;left:0;right:0;width:100%;max-width:280px}.theme-install-php .wp-filter p.search-box{display:grid;row-gap:.5rem}.theme-browser .theme.add-new-theme span:after{font:normal 60px/90px dashicons;width:80px;height:80px;top:30%;left:50%;text-indent:0;margin-left:-40px}.single-theme .theme-wrap{margin:0 -12px 0 -10px;padding:10px}.single-theme .theme-overlay .theme-about{padding:10px;overflow:visible}.single-theme .current-label{display:none}.single-theme .theme-overlay .theme-actions{position:static}}.broken-themes{clear:both}.broken-themes table{text-align:left;width:50%;border-spacing:3px;padding:3px}.update-php .wrap{max-width:40rem}.theme-browser .theme .theme-installed{background:#2271b1}.theme-browser .theme .notice-success p:before{color:#68de7c;content:"\f147";display:inline-block;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.theme-install.updated-message:before{content:""}.theme-install-php .wp-filter{padding-left:20px}@media only screen and (max-width:1000px){.theme-install-php .wp-filter p.search-box{column-gap:.5rem}}.theme-install-php a.browse-themes,.theme-install-php a.upload{cursor:pointer}.plugin-install-tab-upload .upload-view-toggle .upload,.upload-view-toggle .browse{display:none}.plugin-install-tab-upload .upload-view-toggle .browse{display:inline}.upload-plugin,.upload-theme{box-sizing:border-box;display:none;margin:0;padding:50px 0;width:100%;overflow:hidden;position:relative;top:10px;text-align:center}.plugin-install-tab-upload .upload-plugin,.show-upload-view .upload-plugin,.show-upload-view .upload-plugin-wrap,.show-upload-view .upload-theme{display:block}.upload-plugin .wp-upload-form,.upload-theme .wp-upload-form{background:#f6f7f7;border:1px solid #c3c4c7;padding:30px;margin:30px auto;display:inline-flex;justify-content:space-between;align-items:center}.upload-plugin .wp-upload-form input[type=file],.upload-theme .wp-upload-form input[type=file]{margin-right:10px}.upload-plugin .install-help,.upload-theme .install-help{color:#50575e;font-size:18px;font-style:normal;margin:0;padding:0;text-align:center}p.no-themes,p.no-themes-local{clear:both;color:#646970;font-size:18px;font-style:normal;margin:0;padding:100px 0;text-align:center;display:none}.no-results p.no-themes{display:block}.theme-install-php .add-new-theme{display:none!important}@media only screen and (max-width:1120px){.upload-theme .wp-upload-form{margin:20px 0;max-width:100%}.upload-theme .install-help{font-size:15px;padding:20px 0 0}}.theme-details .theme-rating{line-height:1.9}.theme-details .star-rating{display:inline}.theme-details .no-rating,.theme-details .num-ratings{font-size:11px;color:#646970}.theme-details .no-rating{display:block;line-height:1.9}.update-from-upload-comparison{border-top:1px solid #dcdcde;border-bottom:1px solid #dcdcde;text-align:left;margin:1rem 0 1.4rem;border-collapse:collapse;width:100%}.update-from-upload-comparison tr:last-child td{height:1.4rem;vertical-align:top}.update-from-upload-comparison tr:first-child th{font-weight:700;height:1.4rem;vertical-align:bottom}.update-from-upload-comparison td.name-label{text-align:right}.update-from-upload-comparison td,.update-from-upload-comparison th{padding:.4rem 1.4rem}.update-from-upload-comparison td.warning{color:#d63638}.update-from-upload-actions{margin-top:1.4rem}.appearance_page_custom-header #headimg{border:1px solid #dcdcde;overflow:hidden;width:100%}.appearance_page_custom-header #upload-form p label{font-size:12px}.appearance_page_custom-header .available-headers .default-header{float:left;margin:0 20px 20px 0}.appearance_page_custom-header .random-header{clear:both;margin:0 20px 20px 0;vertical-align:middle}.appearance_page_custom-header .available-headers label input,.appearance_page_custom-header .random-header label input{margin-right:10px}.appearance_page_custom-header .available-headers label img{vertical-align:middle}div#custom-background-image{min-height:100px;border:1px solid #dcdcde}div#custom-background-image img{max-width:400px;max-height:300px}.background-position-control input[type=radio]:checked~.button{background:#f0f0f1;border-color:#8c8f94;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);z-index:1}.background-position-control input[type=radio]:focus~.button{border-color:#4f94d4;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 3px rgba(34,113,177,.8);color:#1d2327}.background-position-control .background-position-center-icon,.background-position-control .background-position-center-icon:before{display:inline-block;line-height:1;text-align:center;transition:background-color .1s ease-in}.background-position-control .background-position-center-icon{height:20px;margin-top:13px;vertical-align:top;width:20px}.background-position-control .background-position-center-icon:before{background-color:#50575e;border-radius:50%;content:"";height:12px;width:12px}.background-position-control .button:hover .background-position-center-icon:before,.background-position-control input[type=radio]:focus~.button .background-position-center-icon:before{background-color:#1d2327}.background-position-control .button-group{display:block}.background-position-control .button-group .button{border-radius:0;box-shadow:none;height:40px!important;line-height:2.9!important;margin:0 -1px 0 0!important;padding:0 10px 1px!important;position:relative}.background-position-control .button-group .button:active,.background-position-control .button-group .button:focus,.background-position-control .button-group .button:hover{z-index:1}.background-position-control .button-group:last-child .button{box-shadow:0 1px 0 #c3c4c7}.background-position-control .button-group>label{margin:0!important}.background-position-control .button-group:first-child>label:first-child .button{border-radius:3px 0 0}.background-position-control .button-group:first-child>label:first-child .dashicons{transform:rotate(45deg)}.background-position-control .button-group:first-child>label:last-child .button{border-radius:0 3px 0 0}.background-position-control .button-group:first-child>label:last-child .dashicons{transform:rotate(-45deg)}.background-position-control .button-group:last-child>label:first-child .button{border-radius:0 0 0 3px}.background-position-control .button-group:last-child>label:first-child .dashicons{transform:rotate(-45deg)}.background-position-control .button-group:last-child>label:last-child .button{border-radius:0 0 3px}.background-position-control .button-group:last-child>label:last-child .dashicons{transform:rotate(45deg)}.background-position-control .button-group .dashicons{margin-top:9px}.background-position-control .button-group+.button-group{margin-top:-1px}body.full-overlay-active{overflow:hidden;visibility:hidden}.wp-full-overlay{background:0 0;z-index:500000;position:fixed;overflow:visible;top:0;bottom:0;left:0;right:0;height:100%;min-width:0}.wp-full-overlay-sidebar{box-sizing:border-box;position:fixed;min-width:300px;max-width:600px;width:18%;height:100%;top:0;bottom:0;left:0;padding:0;margin:0;z-index:10;background:#f0f0f1;border-right:none}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{overflow:visible}.wp-full-overlay.collapsed,.wp-full-overlay.expanded .wp-full-overlay-sidebar{margin-left:0!important}.wp-full-overlay.expanded{margin-left:300px}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-left:-300px}@media screen and (min-width:1667px){.wp-full-overlay.expanded{margin-left:18%}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-left:-18%}}@media screen and (min-width:3333px){.wp-full-overlay.expanded{margin-left:600px}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-left:-600px}}.wp-full-overlay-sidebar:after{content:"";display:block;position:absolute;top:0;bottom:0;right:0;width:3px;z-index:1000}.wp-full-overlay-main{position:absolute;left:0;right:0;top:0;bottom:0;height:100%}.wp-full-overlay-sidebar .wp-full-overlay-header{position:absolute;left:0;right:0;height:45px;padding:0 15px;line-height:3.2;z-index:10;margin:0;border-top:none;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-header a.back{margin-top:9px}.wp-full-overlay-sidebar .wp-full-overlay-footer{bottom:0;border-bottom:none;border-top:none;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{position:absolute;top:45px;bottom:45px;left:0;right:0;overflow:auto}.theme-install-overlay .wp-full-overlay-sidebar .wp-full-overlay-header{padding:0}.theme-install-overlay .close-full-overlay,.theme-install-overlay .next-theme,.theme-install-overlay .previous-theme{display:block;position:relative;float:left;width:45px;height:45px;background:#f0f0f1;border-right:1px solid #dcdcde;color:#3c434a;cursor:pointer;text-decoration:none;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-install-overlay .close-full-overlay:focus,.theme-install-overlay .close-full-overlay:hover,.theme-install-overlay .next-theme:focus,.theme-install-overlay .next-theme:hover,.theme-install-overlay .previous-theme:focus,.theme-install-overlay .previous-theme:hover{background:#dcdcde;border-color:#c3c4c7;color:#000;outline:0;box-shadow:none}.theme-install-overlay .close-full-overlay:before{font:normal 22px/1 dashicons;content:"\f335";position:relative;top:7px;left:13px}.theme-install-overlay .previous-theme:before{font:normal 20px/1 dashicons;content:"\f341";position:relative;top:6px;left:14px}.theme-install-overlay .next-theme:before{font:normal 20px/1 dashicons;content:"\f345";position:relative;top:6px;left:13px}.theme-install-overlay .next-theme.disabled,.theme-install-overlay .next-theme.disabled:focus,.theme-install-overlay .next-theme.disabled:hover,.theme-install-overlay .previous-theme.disabled,.theme-install-overlay .previous-theme.disabled:focus,.theme-install-overlay .previous-theme.disabled:hover{color:#c3c4c7;background:#f0f0f1;cursor:default;pointer-events:none}.theme-install-overlay .close-full-overlay,.theme-install-overlay .next-theme,.theme-install-overlay .previous-theme{border-left:0;border-top:0;border-bottom:0}.theme-install-overlay .close-full-overlay:before,.theme-install-overlay .next-theme:before,.theme-install-overlay .previous-theme:before{top:2px;left:0}.wp-core-ui .wp-full-overlay .collapse-sidebar{position:fixed;bottom:0;left:0;padding:9px 0 9px 10px;height:45px;color:#646970;outline:0;line-height:1;background-color:transparent!important;border:none!important;box-shadow:none!important;border-radius:0!important}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#2271b1}.wp-full-overlay .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar-label{display:inline-block;vertical-align:middle;line-height:1.6}.wp-full-overlay .collapse-sidebar-arrow{width:20px;height:20px;margin:0 2px;border-radius:50%;overflow:hidden}.wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.wp-full-overlay .collapse-sidebar-label{margin-left:3px}.wp-full-overlay.collapsed .collapse-sidebar-label{display:none}.wp-full-overlay .collapse-sidebar-arrow:before{display:block;content:"\f148";background:#f0f0f1;font:normal 20px/1 dashicons;speak:never;padding:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-core-ui .wp-full-overlay.collapsed .collapse-sidebar{padding:9px 10px}.rtl .wp-full-overlay .collapse-sidebar-arrow:before,.wp-full-overlay.collapsed .collapse-sidebar-arrow:before{transform:rotate(180.001deg)}.rtl .wp-full-overlay.collapsed .collapse-sidebar-arrow:before{transform:none}.wp-full-overlay,.wp-full-overlay .collapse-sidebar,.wp-full-overlay-main,.wp-full-overlay-sidebar{transition-property:left,right,top,bottom,width,margin;transition-duration:.2s}.wp-full-overlay{background:#1d2327}.wp-full-overlay-main{background-color:#f0f0f1}.expanded .wp-full-overlay-footer{position:fixed;bottom:0;left:0;min-width:299px;max-width:599px;width:18%;width:calc(18% - 1px);height:45px;border-top:1px solid #dcdcde;background:#f0f0f1}.wp-full-overlay-footer .devices-wrapper{float:right}.wp-full-overlay-footer .devices{position:relative;background:#f0f0f1;box-shadow:-20px 0 10px -5px #f0f0f1}.wp-full-overlay-footer .devices button{cursor:pointer;background:0 0;border:none;height:45px;padding:0 3px;margin:0 0 0 -4px;box-shadow:none;border-top:1px solid transparent;border-bottom:4px solid transparent;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out}.wp-full-overlay-footer .devices button:focus{box-shadow:none;outline:0}.wp-full-overlay-footer .devices button:before{display:inline-block;-webkit-font-smoothing:antialiased;font:normal 20px/30px dashicons;vertical-align:top;margin:3px 0;padding:4px 8px;color:#646970}.wp-full-overlay-footer .devices button.active{border-bottom-color:#1d2327}.wp-full-overlay-footer .devices button:focus,.wp-full-overlay-footer .devices button:hover{background-color:#fff}.wp-full-overlay-footer .devices button.active:hover,.wp-full-overlay-footer .devices button:focus{border-bottom-color:#2271b1}.wp-full-overlay-footer .devices button.active:before{color:#1d2327}.wp-full-overlay-footer .devices button:focus:before,.wp-full-overlay-footer .devices button:hover:before{color:#2271b1}.wp-full-overlay-footer .devices .preview-desktop:before{content:"\f472"}.wp-full-overlay-footer .devices .preview-tablet:before{content:"\f471"}.wp-full-overlay-footer .devices .preview-mobile:before{content:"\f470"}@media screen and (max-width:1024px){.wp-full-overlay-footer .devices{display:none}}.collapsed .wp-full-overlay-footer .devices button:before{display:none}.preview-mobile .wp-full-overlay-main{margin:auto 0 auto -160px;width:320px;height:480px;max-height:100%;max-width:100%;left:50%}.preview-tablet .wp-full-overlay-main{margin:auto 0 auto -360px;width:720px;height:1080px;max-height:100%;max-width:100%;left:50%}.customize-support .hide-if-customize,.customize-support .wp-core-ui .hide-if-customize,.customize-support.wp-core-ui .hide-if-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .wp-core-ui .hide-if-no-customize,.no-customize-support.wp-core-ui .hide-if-no-customize{display:none}#customize-container,#customize-controls .notice.notification-overlay{background:#f0f0f1;z-index:500000;position:fixed;overflow:visible;top:0;bottom:0;left:0;right:0;height:100%}#customize-container{display:none}#customize-container,.theme-install-overlay{visibility:visible}.customize-loading #customize-container iframe{opacity:0}#customize-container iframe,.theme-install-overlay iframe{height:100%;width:100%;z-index:20;transition:opacity .3s}#customize-controls{margin-top:0}.theme-install-overlay{display:none}.theme-install-overlay.single-theme{display:block}.install-theme-info{display:none;padding:10px 20px 60px}.single-theme .install-theme-info{padding-top:15px}.theme-install-overlay .install-theme-info{display:block}.install-theme-info .theme-install{float:right;margin-top:18px}.install-theme-info .theme-name{font-size:16px;line-height:1.5;margin-bottom:0;margin-top:0}.install-theme-info .theme-screenshot{margin:15px 0;width:258px;border:1px solid #c3c4c7;position:relative;overflow:hidden}.install-theme-info .theme-screenshot>img{width:100%;height:auto;position:absolute;left:0;top:0}.install-theme-info .theme-screenshot:after{content:"";display:block;padding-top:66.66666666%}.install-theme-info .theme-details{overflow:hidden}.theme-details .theme-version{margin:15px 0}.theme-details .theme-description{float:left;color:#646970;line-height:1.6;max-width:100%}.theme-install-overlay .wp-full-overlay-header .button{float:right;margin:8px 10px 0 0}.theme-install-overlay .wp-full-overlay-sidebar{background:#f0f0f1;border-right:1px solid #dcdcde}.theme-install-overlay .wp-full-overlay-sidebar-content{background:#fff;border-top:1px solid #dcdcde;border-bottom:1px solid #dcdcde}.theme-install-overlay .wp-full-overlay-main{position:absolute;z-index:0;background-color:#f0f0f1}.customize-loading #customize-container{background-color:#f0f0f1}#customize-controls .notice.notification-overlay.notification-loading:before,#customize-preview.wp-full-overlay-main:before,.customize-loading #customize-container:before,.theme-install-overlay .wp-full-overlay-main:before{content:"";display:block;width:20px;height:20px;position:absolute;left:50%;top:50%;z-index:-1;margin:-10px 0 0 -10px;transform:translateZ(0);background:transparent url(../images/spinner.gif) no-repeat center center;background-size:20px 20px}#customize-preview.wp-full-overlay-main.iframe-ready:before,.theme-install-overlay.iframe-ready .wp-full-overlay-main:before{background-image:none}@media print,(min-resolution:120dpi){.wp-full-overlay .collapse-sidebar-arrow{background-image:url(../images/arrows-2x.png);background-size:15px 123px}#customize-controls .notice.notification-overlay.notification-loading:before,#customize-preview.wp-full-overlay-main:before,.customize-loading #customize-container:before,.theme-install-overlay .wp-full-overlay-main:before{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){.available-theme .action-links .delete-theme{float:none;margin:0;padding:0;clear:both}.available-theme .action-links .delete-theme a{padding:0}.broken-themes table{width:100%}.theme-install-overlay .wp-full-overlay-header .button{font-size:13px;line-height:2.15384615;min-height:30px}.theme-browser .theme .theme-actions .button{margin-bottom:0}.theme-browser .theme .theme-actions,.theme-browser .theme.active .theme-actions{padding-top:4px;padding-bottom:4px}.upload-plugin .wp-upload-form,.upload-theme .wp-upload-form{display:block}}@media aural{.theme .notice:before,.theme-info .updated-message:before,.theme-info .updating-message:before,.theme-install.updating-message:before{speak:never}} \ No newline at end of file
diff --git a/wp-admin/customize.php b/wp-admin/customize.php
index 2f0bc87..2a53480 100644
--- a/wp-admin/customize.php
+++ b/wp-admin/customize.php
@@ -84,8 +84,10 @@ if ( $wp_customize->changeset_post_id() ) {
}
}
+$url = ! empty( $_REQUEST['url'] ) ? sanitize_text_field( $_REQUEST['url'] ) : '';
+$return = ! empty( $_REQUEST['return'] ) ? sanitize_text_field( $_REQUEST['return'] ) : '';
+$autofocus = ! empty( $_REQUEST['autofocus'] ) ? sanitize_text_field( $_REQUEST['autofocus'] ) : '';
-wp_reset_vars( array( 'url', 'return', 'autofocus' ) );
if ( ! empty( $url ) ) {
$wp_customize->set_preview_url( wp_unslash( $url ) );
}
diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php
index 16b699c..9178037 100644
--- a/wp-admin/edit-form-advanced.php
+++ b/wp-admin/edit-form-advanced.php
@@ -12,8 +12,8 @@ if ( ! defined( 'ABSPATH' ) ) {
}
/**
- * @global string $post_type
- * @global WP_Post_Type $post_type_object
+ * @global string $post_type Global post type.
+ * @global WP_Post_Type $post_type_object Global post type object.
* @global WP_Post $post Global post object.
*/
global $post_type, $post_type_object, $post;
@@ -377,7 +377,7 @@ if ( 'post' === $post_type ) {
'</li>';
if ( current_theme_supports( 'post-formats' ) && post_type_supports( 'post', 'post-formats' ) ) {
- $publish_box .= '<li>' . __( '<strong>Format</strong> &mdash; Post Formats designate how your theme will display a specific post. For example, you could have a <em>standard</em> blog post with a title and paragraphs, or a short <em>aside</em> that omits the title and contains a short text blurb. Your theme could enable all or some of 10 possible formats. <a href="https://wordpress.org/documentation/article/post-formats/#supported-formats">Learn more about each post format</a>.' ) . '</li>';
+ $publish_box .= '<li>' . __( '<strong>Format</strong> &mdash; Post Formats designate how your theme will display a specific post. For example, you could have a <em>standard</em> blog post with a title and paragraphs, or a short <em>aside</em> that omits the title and contains a short text blurb. Your theme could enable all or some of 10 possible formats. <a href="https://developer.wordpress.org/advanced-administration/wordpress/post-formats/#supported-formats">Learn more about each post format</a>.' ) . '</li>';
}
if ( current_theme_supports( 'post-thumbnails' ) && post_type_supports( 'post', 'thumbnail' ) ) {
diff --git a/wp-admin/edit-form-blocks.php b/wp-admin/edit-form-blocks.php
index 93dea2e..ecf83f2 100644
--- a/wp-admin/edit-form-blocks.php
+++ b/wp-admin/edit-form-blocks.php
@@ -14,11 +14,11 @@ if ( ! defined( 'ABSPATH' ) ) {
}
/**
- * @global string $post_type
- * @global WP_Post_Type $post_type_object
+ * @global string $post_type Global post type.
+ * @global WP_Post_Type $post_type_object Global post type object.
* @global WP_Post $post Global post object.
- * @global string $title
- * @global array $wp_meta_boxes
+ * @global string $title The title of the current screen.
+ * @global array $wp_meta_boxes Global meta box state.
*/
global $post_type, $post_type_object, $post, $title, $wp_meta_boxes;
@@ -72,6 +72,9 @@ $preload_paths = array(
sprintf( '%s/autosaves?context=edit', $rest_path ),
'/wp/v2/settings',
array( '/wp/v2/settings', 'OPTIONS' ),
+ '/wp/v2/global-styles/themes/' . get_stylesheet(),
+ '/wp/v2/themes?context=edit&status=active',
+ '/wp/v2/global-styles/' . WP_Theme_JSON_Resolver::get_user_global_styles_post_id() . '?context=edit',
);
block_editor_rest_api_preload( $preload_paths, $block_editor_context );
diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php
index 8126f84..ba2e187 100644
--- a/wp-admin/edit-tag-form.php
+++ b/wp-admin/edit-tag-form.php
@@ -44,11 +44,7 @@ if ( 'category' === $taxonomy ) {
do_action_deprecated( 'edit_tag_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' );
}
-/**
- * Use with caution, see https://developer.wordpress.org/reference/functions/wp_reset_vars/
- */
-wp_reset_vars( array( 'wp_http_referer' ) );
-
+$wp_http_referer = ! empty( $_REQUEST['wp_http_referer'] ) ? sanitize_text_field( $_REQUEST['wp_http_referer'] ) : '';
$wp_http_referer = remove_query_arg( array( 'action', 'message', 'tag_ID' ), $wp_http_referer );
// Also used by Edit Tags.
diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php
index 947db5f..db2a13f 100644
--- a/wp-admin/edit-tags.php
+++ b/wp-admin/edit-tags.php
@@ -32,9 +32,9 @@ if ( ! current_user_can( $tax->cap->manage_terms ) ) {
}
/**
- * $post_type is set when the WP_Terms_List_Table instance is created
+ * $post_type is set when the WP_Terms_List_Table instance is created.
*
- * @global string $post_type
+ * @global string $post_type Global post type.
*/
global $post_type;
diff --git a/wp-admin/edit.php b/wp-admin/edit.php
index 6e4a05e..93bcef7 100644
--- a/wp-admin/edit.php
+++ b/wp-admin/edit.php
@@ -29,8 +29,8 @@ if ( 'attachment' === $typenow ) {
}
/**
- * @global string $post_type
- * @global WP_Post_Type $post_type_object
+ * @global string $post_type Global post type.
+ * @global WP_Post_Type $post_type_object Global post type object.
*/
global $post_type, $post_type_object;
diff --git a/wp-admin/erase-personal-data.php b/wp-admin/erase-personal-data.php
index 9a17c2b..c96d80a 100644
--- a/wp-admin/erase-personal-data.php
+++ b/wp-admin/erase-personal-data.php
@@ -55,8 +55,8 @@ get_current_screen()->add_help_tab(
'title' => __( 'Plugin Data' ),
'content' =>
'<p>' . __( 'Many plugins may collect or store personal data either in the WordPress database or remotely. Any Erase Personal Data request should delete data from plugins as well.' ) . '</p>' .
- '<p>' . __( 'If you are a plugin author, you can <a href="https://developer.wordpress.org/plugins/privacy/adding-the-personal-data-eraser-to-your-plugin/" target="_blank">learn more about how to add support for the Personal Data Eraser to a plugin here</a>.' ) . '</p>' .
- $privacy_policy_guide,
+ $privacy_policy_guide .
+ '<p>' . __( 'If you are a plugin author, you can learn more about <a href="https://developer.wordpress.org/plugins/privacy/adding-the-personal-data-eraser-to-your-plugin/">how to add the Personal Data Eraser to a plugin</a>.' ) . '</p>',
)
);
diff --git a/wp-admin/export-personal-data.php b/wp-admin/export-personal-data.php
index 2eedd90..64b9653 100644
--- a/wp-admin/export-personal-data.php
+++ b/wp-admin/export-personal-data.php
@@ -55,8 +55,8 @@ get_current_screen()->add_help_tab(
'title' => __( 'Plugin Data' ),
'content' =>
'<p>' . __( 'Many plugins may collect or store personal data either in the WordPress database or remotely. Any Export Personal Data request should include data from plugins as well.' ) . '</p>' .
- '<p>' . __( 'Plugin authors can <a href="https://developer.wordpress.org/plugins/privacy/adding-the-personal-data-exporter-to-your-plugin/" target="_blank">learn more about how to add the Personal Data Exporter to a plugin here</a>.' ) . '</p>' .
- $privacy_policy_guide,
+ $privacy_policy_guide .
+ '<p>' . __( 'If you are a plugin author, you can learn more about <a href="https://developer.wordpress.org/plugins/privacy/adding-the-personal-data-exporter-to-your-plugin/">how to add the Personal Data Exporter to a plugin</a>.' ) . '</p>',
)
);
diff --git a/wp-admin/export.php b/wp-admin/export.php
index 7f1dd43..945eb59 100644
--- a/wp-admin/export.php
+++ b/wp-admin/export.php
@@ -129,11 +129,11 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
/**
* Creates the date options fields for exporting a given post type.
*
+ * @since 3.1.0
+ *
* @global wpdb $wpdb WordPress database abstraction object.
* @global WP_Locale $wp_locale WordPress date and time locale object.
*
- * @since 3.1.0
- *
* @param string $post_type The post type. Default 'post'.
*/
function export_date_options( $post_type = 'post' ) {
@@ -238,8 +238,8 @@ function export_date_options( $post_type = 'post' ) {
<select name="post_status" id="post-status">
<option value="0"><?php _e( 'All' ); ?></option>
<?php
- $post_stati = get_post_stati( array( 'internal' => false ), 'objects' );
- foreach ( $post_stati as $status ) :
+ $post_statuses = get_post_stati( array( 'internal' => false ), 'objects' );
+ foreach ( $post_statuses as $status ) :
?>
<option value="<?php echo esc_attr( $status->name ); ?>"><?php echo esc_html( $status->label ); ?></option>
<?php endforeach; ?>
@@ -289,7 +289,7 @@ function export_date_options( $post_type = 'post' ) {
<label for="page-status" class="label-responsive"><?php _e( 'Status:' ); ?></label>
<select name="page_status" id="page-status">
<option value="0"><?php _e( 'All' ); ?></option>
- <?php foreach ( $post_stati as $status ) : ?>
+ <?php foreach ( $post_statuses as $status ) : ?>
<option value="<?php echo esc_attr( $status->name ); ?>"><?php echo esc_html( $status->label ); ?></option>
<?php endforeach; ?>
</select>
diff --git a/wp-admin/images/about-release-badge.svg b/wp-admin/images/about-release-badge.svg
index 8ca71d6..3afbbb6 100644
--- a/wp-admin/images/about-release-badge.svg
+++ b/wp-admin/images/about-release-badge.svg
@@ -1,4 +1,4 @@
<svg width="280" height="280" viewBox="0 0 280 280" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M0 16C0 7.16344 7.16344 0 16 0H264C272.837 0 280 7.16344 280 16V264C280 272.837 272.837 280 264 280H16C7.16344 280 0 272.837 0 264V16Z" fill="#EDEDED"/>
-<path d="M97.5341 176.994C94.054 176.971 90.6567 176.367 87.3423 175.183C84.0279 173.976 81.045 172.023 78.3935 169.324C75.742 166.601 73.6349 162.991 72.0724 158.493C70.5099 153.971 69.7405 148.372 69.7642 141.696C69.7642 135.47 70.4271 129.918 71.7528 125.041C73.0786 120.164 74.9844 116.045 77.4702 112.683C79.956 109.298 82.9508 106.717 86.4545 104.942C89.982 103.166 93.9238 102.278 98.2798 102.278C102.849 102.278 106.897 103.178 110.425 104.977C113.976 106.777 116.84 109.239 119.018 112.364C121.196 115.465 122.546 118.969 123.067 122.875H110.105C109.442 120.081 108.081 117.856 106.021 116.199C103.985 114.518 101.405 113.678 98.2798 113.678C93.2372 113.678 89.3546 115.867 86.6321 120.247C83.9332 124.627 82.572 130.64 82.5483 138.287H83.0455C84.2055 136.204 85.7088 134.416 87.5554 132.925C89.402 131.433 91.4853 130.285 93.8054 129.48C96.1491 128.652 98.6231 128.237 101.227 128.237C105.489 128.237 109.312 129.255 112.697 131.291C116.107 133.327 118.805 136.133 120.794 139.707C122.783 143.259 123.765 147.33 123.741 151.923C123.765 156.705 122.676 161.002 120.474 164.814C118.273 168.602 115.207 171.585 111.277 173.763C107.347 175.941 102.766 177.018 97.5341 176.994ZM97.4631 166.341C100.044 166.341 102.352 165.714 104.388 164.459C106.424 163.204 108.034 161.511 109.217 159.381C110.401 157.25 110.981 154.859 110.957 152.207C110.981 149.603 110.413 147.248 109.253 145.141C108.116 143.034 106.542 141.365 104.53 140.134C102.518 138.902 100.221 138.287 97.6406 138.287C95.723 138.287 93.9356 138.654 92.2784 139.388C90.6212 140.122 89.1771 141.14 87.946 142.442C86.715 143.72 85.7443 145.212 85.0341 146.916C84.3475 148.597 83.9924 150.396 83.9688 152.314C83.9924 154.847 84.5843 157.179 85.7443 159.31C86.9044 161.44 88.5024 163.145 90.5384 164.423C92.5743 165.702 94.8826 166.341 97.4631 166.341ZM138.68 176.781C136.526 176.781 134.679 176.024 133.141 174.509C131.602 172.993 130.844 171.147 130.868 168.969C130.844 166.838 131.602 165.015 133.141 163.5C134.679 161.985 136.526 161.227 138.68 161.227C140.764 161.227 142.575 161.985 144.114 163.5C145.676 165.015 146.469 166.838 146.493 168.969C146.469 170.413 146.09 171.727 145.357 172.911C144.646 174.094 143.699 175.041 142.516 175.751C141.356 176.438 140.077 176.781 138.68 176.781ZM182.028 176.994C177.294 176.994 173.056 176.107 169.315 174.331C165.575 172.532 162.604 170.07 160.402 166.945C158.224 163.82 157.064 160.245 156.922 156.22H169.706C169.943 159.203 171.233 161.642 173.577 163.536C175.92 165.406 178.738 166.341 182.028 166.341C184.609 166.341 186.905 165.749 188.918 164.565C190.93 163.382 192.516 161.736 193.676 159.629C194.836 157.522 195.404 155.119 195.381 152.42C195.404 149.674 194.824 147.236 193.641 145.105C192.457 142.974 190.835 141.305 188.776 140.098C186.716 138.867 184.348 138.251 181.673 138.251C179.495 138.228 177.353 138.63 175.246 139.459C173.139 140.287 171.47 141.376 170.239 142.726L158.342 140.773L162.142 103.273H204.33V114.281H173.044L170.949 133.564H171.375C172.724 131.978 174.63 130.664 177.092 129.622C179.554 128.557 182.253 128.024 185.189 128.024C189.592 128.024 193.522 129.066 196.979 131.149C200.435 133.209 203.158 136.05 205.146 139.672C207.135 143.294 208.129 147.437 208.129 152.101C208.129 156.907 207.017 161.192 204.791 164.956C202.589 168.696 199.524 171.644 195.594 173.798C191.688 175.929 187.166 176.994 182.028 176.994Z" fill="#1E1E1E"/>
+<path d="M0 16C0 7.16344 7.16344 0 16 0H264C272.837 0 280 7.16344 280 16V264C280 272.837 272.837 280 264 280H16C7.16344 280 0 272.837 0 264V16Z" fill="#ECECEC"/>
+<path d="M103.026 173C99.9002 172.979 96.8486 172.437 93.8715 171.374C90.8943 170.289 88.2149 168.535 85.8332 166.11C83.4515 163.665 81.5588 160.422 80.1553 156.381C78.7518 152.32 78.0607 147.291 78.082 141.294C78.082 135.701 78.6774 130.714 79.8683 126.334C81.0591 121.953 82.771 118.253 85.0038 115.233C87.2367 112.192 89.9268 109.874 93.074 108.279C96.2426 106.684 99.7833 105.887 103.696 105.887C107.8 105.887 111.437 106.695 114.605 108.311C117.795 109.927 120.368 112.139 122.325 114.946C124.281 117.732 125.493 120.879 125.961 124.388H114.318C113.723 121.878 112.5 119.879 110.65 118.391C108.821 116.881 106.503 116.126 103.696 116.126C99.1666 116.126 95.679 118.093 93.2335 122.027C90.8093 125.961 89.5865 131.363 89.5653 138.231H90.0118C91.0538 136.36 92.4042 134.755 94.0629 133.415C95.7216 132.075 97.5929 131.044 99.6769 130.321C101.782 129.576 104.004 129.204 106.344 129.204C110.171 129.204 113.606 130.119 116.647 131.948C119.709 133.776 122.133 136.296 123.919 139.507C125.706 142.697 126.588 146.355 126.567 150.48C126.588 154.776 125.61 158.636 123.632 162.059C121.655 165.462 118.901 168.141 115.371 170.098C111.841 172.054 107.726 173.022 103.026 173ZM102.962 163.431C105.28 163.431 107.354 162.867 109.183 161.74C111.011 160.613 112.457 159.093 113.521 157.179C114.584 155.265 115.105 153.117 115.084 150.735C115.105 148.396 114.595 146.28 113.553 144.388C112.532 142.495 111.118 140.996 109.31 139.89C107.503 138.784 105.44 138.231 103.122 138.231C101.399 138.231 99.7939 138.561 98.3053 139.22C96.8167 139.88 95.5196 140.794 94.4138 141.964C93.308 143.112 92.4361 144.452 91.7981 145.983C91.1814 147.493 90.8624 149.109 90.8412 150.831C90.8624 153.107 91.3941 155.201 92.4361 157.115C93.4781 159.029 94.9135 160.56 96.7423 161.708C98.5711 162.857 100.644 163.431 102.962 163.431ZM139.088 172.809C137.152 172.809 135.494 172.128 134.111 170.767C132.729 169.406 132.049 167.748 132.07 165.791C132.049 163.877 132.729 162.24 134.111 160.879C135.494 159.518 137.152 158.838 139.088 158.838C140.959 158.838 142.586 159.518 143.968 160.879C145.371 162.24 146.084 163.877 146.105 165.791C146.084 167.089 145.744 168.269 145.084 169.332C144.446 170.395 143.596 171.246 142.533 171.884C141.491 172.501 140.342 172.809 139.088 172.809ZM176.584 173C173.458 172.979 170.407 172.437 167.43 171.374C164.452 170.289 161.773 168.535 159.391 166.11C157.01 163.665 155.117 160.422 153.713 156.381C152.31 152.32 151.619 147.291 151.64 141.294C151.64 135.701 152.236 130.714 153.426 126.334C154.617 121.953 156.329 118.253 158.562 115.233C160.795 112.192 163.485 109.874 166.632 108.279C169.801 106.684 173.341 105.887 177.254 105.887C181.358 105.887 184.995 106.695 188.163 108.311C191.353 109.927 193.926 112.139 195.883 114.946C197.839 117.732 199.051 120.879 199.519 124.388H187.876C187.281 121.878 186.058 119.879 184.208 118.391C182.379 116.881 180.061 116.126 177.254 116.126C172.725 116.126 169.237 118.093 166.792 122.027C164.367 125.961 163.145 131.363 163.123 138.231H163.57C164.612 136.36 165.962 134.755 167.621 133.415C169.28 132.075 171.151 131.044 173.235 130.321C175.34 129.576 177.563 129.204 179.902 129.204C183.73 129.204 187.164 130.119 190.205 131.948C193.267 133.776 195.691 136.296 197.478 139.507C199.264 142.697 200.146 146.355 200.125 150.48C200.146 154.776 199.168 158.636 197.19 162.059C195.213 165.462 192.459 168.141 188.929 170.098C185.399 172.054 181.284 173.022 176.584 173ZM176.521 163.431C178.838 163.431 180.912 162.867 182.741 161.74C184.569 160.613 186.016 159.093 187.079 157.179C188.142 155.265 188.663 153.117 188.642 150.735C188.663 148.396 188.153 146.28 187.111 144.388C186.09 142.495 184.676 140.996 182.868 139.89C181.061 138.784 178.998 138.231 176.68 138.231C174.958 138.231 173.352 138.561 171.863 139.22C170.375 139.88 169.078 140.794 167.972 141.964C166.866 143.112 165.994 144.452 165.356 145.983C164.74 147.493 164.421 149.109 164.399 150.831C164.421 153.107 164.952 155.201 165.994 157.115C167.036 159.029 168.472 160.56 170.3 161.708C172.129 162.857 174.203 163.431 176.521 163.431Z" fill="black"/>
</svg>
diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php
index 30aab70..62feaff 100644
--- a/wp-admin/includes/ajax-actions.php
+++ b/wp-admin/includes/ajax-actions.php
@@ -148,7 +148,7 @@ function wp_ajax_ajax_tag_search() {
* Require $term_search_min_chars chars for matching (default: 2)
* ensure it's a non-negative, non-zero integer.
*/
- if ( ( 0 == $term_search_min_chars ) || ( strlen( $search ) < $term_search_min_chars ) ) {
+ if ( ( 0 === $term_search_min_chars ) || ( strlen( $search ) < $term_search_min_chars ) ) {
wp_die();
}
@@ -192,7 +192,7 @@ function wp_ajax_wp_compression_test() {
if ( is_multisite() ) {
update_site_option( 'can_compress_scripts', 0 );
} else {
- update_option( 'can_compress_scripts', 0, 'yes' );
+ update_option( 'can_compress_scripts', 0, true );
}
wp_die( 0 );
}
@@ -205,10 +205,10 @@ function wp_ajax_wp_compression_test() {
$force_gzip = ( defined( 'ENFORCE_GZIP' ) && ENFORCE_GZIP );
$test_str = '"wpCompressionTest Lorem ipsum dolor sit amet consectetuer mollis sapien urna ut a. Eu nonummy condimentum fringilla tempor pretium platea vel nibh netus Maecenas. Hac molestie amet justo quis pellentesque est ultrices interdum nibh Morbi. Cras mattis pretium Phasellus ante ipsum ipsum ut sociis Suspendisse Lorem. Ante et non molestie. Porta urna Vestibulum egestas id congue nibh eu risus gravida sit. Ac augue auctor Ut et non a elit massa id sodales. Elit eu Nulla at nibh adipiscing mattis lacus mauris at tempus. Netus nibh quis suscipit nec feugiat eget sed lorem et urna. Pellentesque lacus at ut massa consectetuer ligula ut auctor semper Pellentesque. Ut metus massa nibh quam Curabitur molestie nec mauris congue. Volutpat molestie elit justo facilisis neque ac risus Ut nascetur tristique. Vitae sit lorem tellus et quis Phasellus lacus tincidunt nunc Fusce. Pharetra wisi Suspendisse mus sagittis libero lacinia Integer consequat ac Phasellus. Et urna ac cursus tortor aliquam Aliquam amet tellus volutpat Vestibulum. Justo interdum condimentum In augue congue tellus sollicitudin Quisque quis nibh."';
- if ( 1 == $_GET['test'] ) {
+ if ( '1' === $_GET['test'] ) {
echo $test_str;
wp_die();
- } elseif ( 2 == $_GET['test'] ) {
+ } elseif ( '2' === $_GET['test'] ) {
if ( ! isset( $_SERVER['HTTP_ACCEPT_ENCODING'] ) ) {
wp_die( -1 );
}
@@ -231,7 +231,7 @@ function wp_ajax_wp_compression_test() {
if ( is_multisite() ) {
update_site_option( 'can_compress_scripts', 0 );
} else {
- update_option( 'can_compress_scripts', 0, 'yes' );
+ update_option( 'can_compress_scripts', 0, true );
}
} elseif ( 'yes' === $_GET['test'] ) {
check_ajax_referer( 'update_can_compress_scripts' );
@@ -239,7 +239,7 @@ function wp_ajax_wp_compression_test() {
if ( is_multisite() ) {
update_site_option( 'can_compress_scripts', 1 );
} else {
- update_option( 'can_compress_scripts', 1, 'yes' );
+ update_option( 'can_compress_scripts', 1, true );
}
}
}
@@ -274,7 +274,7 @@ function wp_ajax_imgedit_preview() {
*
* @since 3.1.0
*
- * @global WP_Embed $wp_embed
+ * @global WP_Embed $wp_embed WordPress Embed object.
*/
function wp_ajax_oembed_cache() {
$GLOBALS['wp_embed']->cache_oembed( $_GET['post'] );
@@ -513,7 +513,7 @@ function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) {
}
// Only do the expensive stuff on a page-break, and about 1 other time per page.
- if ( 0 == $total % $per_page || 1 == mt_rand( 1, $per_page ) ) {
+ if ( 0 === $total % $per_page || 1 === mt_rand( 1, $per_page ) ) {
$post_id = 0;
// What type of comment count are we looking for?
$status = 'all';
@@ -733,13 +733,13 @@ function wp_ajax_delete_comment() {
$status = wp_get_comment_status( $comment );
$delta = -1;
- if ( isset( $_POST['trash'] ) && 1 == $_POST['trash'] ) {
+ if ( isset( $_POST['trash'] ) && '1' === $_POST['trash'] ) {
if ( 'trash' === $status ) {
wp_die( time() );
}
$r = wp_trash_comment( $comment );
- } elseif ( isset( $_POST['untrash'] ) && 1 == $_POST['untrash'] ) {
+ } elseif ( isset( $_POST['untrash'] ) && '1' === $_POST['untrash'] ) {
if ( 'trash' !== $status ) {
wp_die( time() );
}
@@ -750,13 +750,13 @@ function wp_ajax_delete_comment() {
if ( ! isset( $_POST['comment_status'] ) || 'trash' !== $_POST['comment_status'] ) {
$delta = 1;
}
- } elseif ( isset( $_POST['spam'] ) && 1 == $_POST['spam'] ) {
+ } elseif ( isset( $_POST['spam'] ) && '1' === $_POST['spam'] ) {
if ( 'spam' === $status ) {
wp_die( time() );
}
$r = wp_spam_comment( $comment );
- } elseif ( isset( $_POST['unspam'] ) && 1 == $_POST['unspam'] ) {
+ } elseif ( isset( $_POST['unspam'] ) && '1' === $_POST['unspam'] ) {
if ( 'spam' !== $status ) {
wp_die( time() );
}
@@ -767,7 +767,7 @@ function wp_ajax_delete_comment() {
if ( ! isset( $_POST['comment_status'] ) || 'spam' !== $_POST['comment_status'] ) {
$delta = 1;
}
- } elseif ( isset( $_POST['delete'] ) && 1 == $_POST['delete'] ) {
+ } elseif ( isset( $_POST['delete'] ) && '1' === $_POST['delete'] ) {
$r = wp_delete_comment( $comment );
} else {
wp_die( -1 );
@@ -1000,7 +1000,7 @@ function wp_ajax_dim_comment() {
$current = wp_get_comment_status( $comment );
- if ( isset( $_POST['new'] ) && $_POST['new'] == $current ) {
+ if ( isset( $_POST['new'] ) && $_POST['new'] === $current ) {
wp_die( time() );
}
@@ -1339,7 +1339,7 @@ function wp_ajax_replyto_comment( $action ) {
$_POST['_wp_unfiltered_html_comment'] = '';
}
- if ( wp_create_nonce( 'unfiltered-html-comment' ) != $_POST['_wp_unfiltered_html_comment'] ) {
+ if ( wp_create_nonce( 'unfiltered-html-comment' ) !== $_POST['_wp_unfiltered_html_comment'] ) {
kses_remove_filters(); // Start with a clean slate.
kses_init_filters(); // Set up the filters.
remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
@@ -1384,7 +1384,7 @@ function wp_ajax_replyto_comment( $action ) {
if ( ! empty( $_POST['approve_parent'] ) ) {
$parent = get_comment( $comment_parent );
- if ( $parent && '0' === $parent->comment_approved && $parent->comment_post_ID == $comment_post_id ) {
+ if ( $parent && '0' === $parent->comment_approved && (int) $parent->comment_post_ID === $comment_post_id ) {
if ( ! current_user_can( 'edit_comment', $parent->comment_ID ) ) {
wp_die( -1 );
}
@@ -1482,8 +1482,12 @@ function wp_ajax_edit_comment() {
wp_die( $updated->get_error_message() );
}
- $position = ( isset( $_POST['position'] ) && (int) $_POST['position'] ) ? (int) $_POST['position'] : '-1';
- $checkbox = ( isset( $_POST['checkbox'] ) && true == $_POST['checkbox'] ) ? 1 : 0;
+ $position = ( isset( $_POST['position'] ) && (int) $_POST['position'] ) ? (int) $_POST['position'] : '-1';
+ /*
+ * Checkbox is used to differentiate between the Edit Comments screen (1)
+ * and the Comments section on the Edit Post screen (0).
+ */
+ $checkbox = ( isset( $_POST['checkbox'] ) && '1' === $_POST['checkbox'] ) ? 1 : 0;
$wp_list_table = _get_list_table( $checkbox ? 'WP_Comments_List_Table' : 'WP_Post_Comments_List_Table', array( 'screen' => 'edit-comments' ) );
$comment = get_comment( $comment_id );
@@ -1699,7 +1703,7 @@ function wp_ajax_add_meta() {
wp_die( -1 );
}
- if ( $meta->meta_value != $value || $meta->meta_key != $key ) {
+ if ( $meta->meta_value !== $value || $meta->meta_key !== $key ) {
$u = update_metadata_by_mid( 'post', $mid, $value, $key );
if ( ! $u ) {
wp_die( 0 ); // We know meta exists; we also know it's unchanged (or DB error, in which case there are bigger problems).
@@ -1797,7 +1801,7 @@ function wp_ajax_closed_postboxes() {
$page = isset( $_POST['page'] ) ? $_POST['page'] : '';
- if ( sanitize_key( $page ) != $page ) {
+ if ( sanitize_key( $page ) !== $page ) {
wp_die( 0 );
}
@@ -1828,7 +1832,7 @@ function wp_ajax_hidden_columns() {
check_ajax_referer( 'screen-options-nonce', 'screenoptionnonce' );
$page = isset( $_POST['page'] ) ? $_POST['page'] : '';
- if ( sanitize_key( $page ) != $page ) {
+ if ( sanitize_key( $page ) !== $page ) {
wp_die( 0 );
}
@@ -1983,7 +1987,7 @@ function wp_ajax_meta_box_order() {
$page = isset( $_POST['page'] ) ? $_POST['page'] : '';
- if ( sanitize_key( $page ) != $page ) {
+ if ( sanitize_key( $page ) !== $page ) {
wp_die( 0 );
}
@@ -2412,7 +2416,7 @@ function wp_ajax_save_widget() {
foreach ( (array) $wp_registered_widget_updates as $name => $control ) {
- if ( $name == $id_base ) {
+ if ( $name === $id_base ) {
if ( ! is_callable( $control['callback'] ) ) {
continue;
}
@@ -2742,7 +2746,7 @@ function wp_ajax_set_post_thumbnail() {
check_ajax_referer( "set_post_thumbnail-$post_id" );
}
- if ( '-1' == $thumbnail_id ) {
+ if ( -1 === $thumbnail_id ) {
if ( delete_post_thumbnail( $post_id ) ) {
$return = _wp_post_thumbnail_html( null, $post_id );
$json ? wp_send_json_success( $return ) : wp_die( $return );
@@ -2926,7 +2930,7 @@ function wp_ajax_wp_remove_post_lock() {
$active_lock = array_map( 'absint', explode( ':', $_POST['active_post_lock'] ) );
- if ( get_current_user_id() != $active_lock[1] ) {
+ if ( get_current_user_id() !== $active_lock[1] ) {
wp_die( 0 );
}
@@ -2951,7 +2955,7 @@ function wp_ajax_wp_remove_post_lock() {
function wp_ajax_dismiss_wp_pointer() {
$pointer = $_POST['pointer'];
- if ( sanitize_key( $pointer ) != $pointer ) {
+ if ( sanitize_key( $pointer ) !== $pointer ) {
wp_die( 0 );
}
@@ -3323,7 +3327,7 @@ function wp_ajax_send_attachment_to_editor() {
// If this attachment is unattached, attach it. Primarily a back compat thing.
$insert_into_post_id = (int) $_POST['post_id'];
- if ( 0 == $post->post_parent && $insert_into_post_id ) {
+ if ( 0 === $post->post_parent && $insert_into_post_id ) {
wp_update_post(
array(
'ID' => $id,
@@ -3381,7 +3385,7 @@ function wp_ajax_send_attachment_to_editor() {
* @since 3.5.0
*
* @global WP_Post $post Global post object.
- * @global WP_Embed $wp_embed
+ * @global WP_Embed $wp_embed WordPress Embed object.
*/
function wp_ajax_send_link_to_editor() {
global $post, $wp_embed;
@@ -3733,8 +3737,8 @@ function wp_ajax_query_themes() {
*
* @since 4.0.0
*
- * @global WP_Post $post Global post object.
- * @global WP_Embed $wp_embed Embed API instance.
+ * @global WP_Post $post Global post object.
+ * @global WP_Embed $wp_embed WordPress Embed object.
* @global WP_Scripts $wp_scripts
* @global int $content_width
*/
@@ -4024,7 +4028,7 @@ function wp_ajax_crop_image() {
$wp_site_icon = new WP_Site_Icon();
// Skip creating a new attachment if the attachment is a Site Icon.
- if ( get_post_meta( $attachment_id, '_wp_attachment_context', true ) == $context ) {
+ if ( get_post_meta( $attachment_id, '_wp_attachment_context', true ) === $context ) {
// Delete the temporary cropped file, we don't need it.
wp_delete_file( $cropped );
diff --git a/wp-admin/includes/class-bulk-plugin-upgrader-skin.php b/wp-admin/includes/class-bulk-plugin-upgrader-skin.php
index 7cbf334..bb62928 100644
--- a/wp-admin/includes/class-bulk-plugin-upgrader-skin.php
+++ b/wp-admin/includes/class-bulk-plugin-upgrader-skin.php
@@ -23,10 +23,16 @@ class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {
* The Plugin_Upgrader::bulk_upgrade() method will fill this in
* with info retrieved from the get_plugin_data() function.
*
+ * @since 3.0.0
* @var array Plugin data. Values will be empty if not supplied by the plugin.
*/
public $plugin_info = array();
+ /**
+ * Sets up the strings used in the update process.
+ *
+ * @since 3.0.0
+ */
public function add_strings() {
parent::add_strings();
/* translators: 1: Plugin name, 2: Number of the plugin, 3: Total number of plugins being updated. */
@@ -34,6 +40,10 @@ class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {
}
/**
+ * Performs an action before a bulk plugin update.
+ *
+ * @since 3.0.0
+ *
* @param string $title
*/
public function before( $title = '' ) {
@@ -41,6 +51,10 @@ class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {
}
/**
+ * Performs an action following a bulk plugin update.
+ *
+ * @since 3.0.0
+ *
* @param string $title
*/
public function after( $title = '' ) {
@@ -49,6 +63,9 @@ class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {
}
/**
+ * Displays the footer following the bulk update process.
+ *
+ * @since 3.0.0
*/
public function bulk_footer() {
parent::bulk_footer();
diff --git a/wp-admin/includes/class-bulk-theme-upgrader-skin.php b/wp-admin/includes/class-bulk-theme-upgrader-skin.php
index 8ec3bbf..f2b9b95 100644
--- a/wp-admin/includes/class-bulk-theme-upgrader-skin.php
+++ b/wp-admin/includes/class-bulk-theme-upgrader-skin.php
@@ -24,10 +24,16 @@ class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
* with info retrieved from the Theme_Upgrader::theme_info() method,
* which in turn calls the wp_get_theme() function.
*
+ * @since 3.0.0
* @var WP_Theme|false The theme's info object, or false.
*/
public $theme_info = false;
+ /**
+ * Sets up the strings used in the update process.
+ *
+ * @since 3.0.0
+ */
public function add_strings() {
parent::add_strings();
/* translators: 1: Theme name, 2: Number of the theme, 3: Total number of themes being updated. */
@@ -35,6 +41,10 @@ class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
}
/**
+ * Performs an action before a bulk theme update.
+ *
+ * @since 3.0.0
+ *
* @param string $title
*/
public function before( $title = '' ) {
@@ -42,6 +52,10 @@ class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
}
/**
+ * Performs an action following a bulk theme update.
+ *
+ * @since 3.0.0
+ *
* @param string $title
*/
public function after( $title = '' ) {
@@ -50,6 +64,9 @@ class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
}
/**
+ * Displays the footer following the bulk update process.
+ *
+ * @since 3.0.0
*/
public function bulk_footer() {
parent::bulk_footer();
diff --git a/wp-admin/includes/class-bulk-upgrader-skin.php b/wp-admin/includes/class-bulk-upgrader-skin.php
index 4613119..5cdd2a5 100644
--- a/wp-admin/includes/class-bulk-upgrader-skin.php
+++ b/wp-admin/includes/class-bulk-upgrader-skin.php
@@ -16,13 +16,30 @@
* @see WP_Upgrader_Skin
*/
class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
+
+ /**
+ * Whether the bulk update process has started.
+ *
+ * @since 3.0.0
+ * @var bool
+ */
public $in_loop = false;
+
/**
+ * Stores an error message about the update.
+ *
+ * @since 3.0.0
* @var string|false
*/
public $error = false;
/**
+ * Constructor.
+ *
+ * Sets up the generic skin for the Bulk Upgrader classes.
+ *
+ * @since 3.0.0
+ *
* @param array $args
*/
public function __construct( $args = array() ) {
@@ -36,6 +53,9 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
}
/**
+ * Sets up the strings used in the update process.
+ *
+ * @since 3.0.0
*/
public function add_strings() {
$this->upgrader->strings['skin_upgrade_start'] = __( 'The update process is starting. This process may take a while on some hosts, so please be patient.' );
@@ -49,6 +69,9 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
}
/**
+ * Displays a message about the update.
+ *
+ * @since 3.0.0
* @since 5.9.0 Renamed `$string` (a PHP reserved keyword) to `$feedback` for PHP 8 named parameter support.
*
* @param string $feedback Message data.
@@ -77,18 +100,27 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
}
/**
+ * Displays the header before the update process.
+ *
+ * @since 3.0.0
*/
public function header() {
// Nothing. This will be displayed within an iframe.
}
/**
+ * Displays the footer following the update process.
+ *
+ * @since 3.0.0
*/
public function footer() {
// Nothing. This will be displayed within an iframe.
}
/**
+ * Displays an error message about the update.
+ *
+ * @since 3.0.0
* @since 5.9.0 Renamed `$error` to `$errors` for PHP 8 named parameter support.
*
* @param string|WP_Error $errors Errors.
@@ -113,18 +145,28 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
}
/**
+ * Displays the header before the bulk update process.
+ *
+ * @since 3.0.0
*/
public function bulk_header() {
$this->feedback( 'skin_upgrade_start' );
}
/**
+ * Displays the footer following the bulk update process.
+ *
+ * @since 3.0.0
*/
public function bulk_footer() {
$this->feedback( 'skin_upgrade_end' );
}
/**
+ * Performs an action before a bulk update.
+ *
+ * @since 3.0.0
+ *
* @param string $title
*/
public function before( $title = '' ) {
@@ -137,6 +179,10 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
}
/**
+ * Performs an action following a bulk update.
+ *
+ * @since 3.0.0
+ *
* @param string $title
*/
public function after( $title = '' ) {
@@ -172,6 +218,9 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
}
/**
+ * Resets the properties used in the update process.
+ *
+ * @since 3.0.0
*/
public function reset() {
$this->in_loop = false;
@@ -179,6 +228,9 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
}
/**
+ * Flushes all output buffers.
+ *
+ * @since 3.0.0
*/
public function flush_output() {
wp_ob_end_flush_all();
diff --git a/wp-admin/includes/class-core-upgrader.php b/wp-admin/includes/class-core-upgrader.php
index 165e1f7..2655c27 100644
--- a/wp-admin/includes/class-core-upgrader.php
+++ b/wp-admin/includes/class-core-upgrader.php
@@ -121,7 +121,7 @@ class Core_Upgrader extends WP_Upgrader {
return new WP_Error( 'locked', $this->strings['locked'] );
}
- $download = $this->download_package( $current->packages->$to_download, true );
+ $download = $this->download_package( $current->packages->$to_download, false );
/*
* Allow for signature soft-fail.
diff --git a/wp-admin/includes/class-file-upload-upgrader.php b/wp-admin/includes/class-file-upload-upgrader.php
index 1201c6d..48e1aac 100644
--- a/wp-admin/includes/class-file-upload-upgrader.php
+++ b/wp-admin/includes/class-file-upload-upgrader.php
@@ -72,7 +72,24 @@ class File_Upload_Upgrader {
if ( 'pluginzip' === $form || 'themezip' === $form ) {
if ( ! wp_zip_file_is_valid( $file['file'] ) ) {
wp_delete_file( $file['file'] );
- wp_die( __( 'Incompatible Archive.' ) );
+
+ if ( 'pluginzip' === $form ) {
+ $plugins_page = sprintf(
+ '<a href="%s">%s</a>',
+ self_admin_url( 'plugin-install.php' ),
+ __( 'Return to the Plugin Installer' )
+ );
+ wp_die( __( 'Incompatible Archive.' ) . '<br />' . $plugins_page );
+ }
+
+ if ( 'themezip' === $form ) {
+ $themes_page = sprintf(
+ '<a href="%s" target="_parent">%s</a>',
+ self_admin_url( 'theme-install.php' ),
+ __( 'Return to the Theme Installer' )
+ );
+ wp_die( __( 'Incompatible Archive.' ) . '<br />' . $themes_page );
+ }
}
}
diff --git a/wp-admin/includes/class-language-pack-upgrader-skin.php b/wp-admin/includes/class-language-pack-upgrader-skin.php
index 57b0a1c..b93ed6c 100644
--- a/wp-admin/includes/class-language-pack-upgrader-skin.php
+++ b/wp-admin/includes/class-language-pack-upgrader-skin.php
@@ -22,6 +22,12 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
public $display_footer_actions = true;
/**
+ * Constructor.
+ *
+ * Sets up the language pack upgrader skin.
+ *
+ * @since 3.7.0
+ *
* @param array $args
*/
public function __construct( $args = array() ) {
@@ -41,6 +47,9 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
}
/**
+ * Performs an action before a language pack update.
+ *
+ * @since 3.7.0
*/
public function before() {
$name = $this->upgrader->get_name_for_update( $this->language_update );
@@ -52,6 +61,9 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
}
/**
+ * Displays an error message about the update.
+ *
+ * @since 3.7.0
* @since 5.9.0 Renamed `$error` to `$errors` for PHP 8 named parameter support.
*
* @param string|WP_Error $errors Errors.
@@ -63,12 +75,18 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
}
/**
+ * Performs an action following a language pack update.
+ *
+ * @since 3.7.0
*/
public function after() {
echo '</div>';
}
/**
+ * Displays the footer following the bulk update process.
+ *
+ * @since 3.7.0
*/
public function bulk_footer() {
$this->decrement_update_count( 'translation' );
diff --git a/wp-admin/includes/class-language-pack-upgrader.php b/wp-admin/includes/class-language-pack-upgrader.php
index 855dbe6..6f7cf74 100644
--- a/wp-admin/includes/class-language-pack-upgrader.php
+++ b/wp-admin/includes/class-language-pack-upgrader.php
@@ -332,26 +332,34 @@ class Language_Pack_Upgrader extends WP_Upgrader {
// Check that the folder contains a valid language.
$files = $wp_filesystem->dirlist( $remote_source );
- // Check to see if a .po and .mo exist in the folder.
- $po = false;
- $mo = false;
+ // Check to see if the expected files exist in the folder.
+ $po = false;
+ $mo = false;
+ $php = false;
foreach ( (array) $files as $file => $filedata ) {
if ( str_ends_with( $file, '.po' ) ) {
$po = true;
} elseif ( str_ends_with( $file, '.mo' ) ) {
$mo = true;
+ } elseif ( str_ends_with( $file, '.l10n.php' ) ) {
+ $php = true;
}
}
+ if ( $php ) {
+ return $source;
+ }
+
if ( ! $mo || ! $po ) {
return new WP_Error(
'incompatible_archive_pomo',
$this->strings['incompatible_archive'],
sprintf(
- /* translators: 1: .po, 2: .mo */
- __( 'The language pack is missing either the %1$s or %2$s files.' ),
+ /* translators: 1: .po, 2: .mo, 3: .l10n.php */
+ __( 'The language pack is missing either the %1$s, %2$s, or %3$s files.' ),
'<code>.po</code>',
- '<code>.mo</code>'
+ '<code>.mo</code>',
+ '<code>.l10n.php</code>'
)
);
}
diff --git a/wp-admin/includes/class-pclzip.php b/wp-admin/includes/class-pclzip.php
index 963f311..658fda5 100644
--- a/wp-admin/includes/class-pclzip.php
+++ b/wp-admin/includes/class-pclzip.php
@@ -48,7 +48,7 @@
// 0 : PclZip Class integrated error handling
// 1 : PclError external library error handling. By enabling this
// you must ensure that you have included PclError library.
- // [2,...] : reserved for futur use
+ // [2,...] : reserved for future use
if (!defined('PCLZIP_ERROR_EXTERNAL')) {
define( 'PCLZIP_ERROR_EXTERNAL', 0 );
}
@@ -166,7 +166,7 @@
define( 'PCLZIP_CB_POST_EXTRACT', 78002 );
define( 'PCLZIP_CB_PRE_ADD', 78003 );
define( 'PCLZIP_CB_POST_ADD', 78004 );
- /* For futur use
+ /* For future use
define( 'PCLZIP_CB_PRE_LIST', 78005 );
define( 'PCLZIP_CB_POST_LIST', 78006 );
define( 'PCLZIP_CB_PRE_DELETE', 78007 );
@@ -1364,12 +1364,12 @@
// Function : privCheckFormat()
// Description :
// This method check that the archive exists and is a valid zip archive.
- // Several level of check exists. (futur)
+ // Several level of check exists. (future)
// Parameters :
// $p_level : Level of check. Default 0.
// 0 : Check the first bytes (magic codes) (default value))
- // 1 : 0 + Check the central directory (futur)
- // 2 : 1 + Check each file header (futur)
+ // 1 : 0 + Check the central directory (future)
+ // 2 : 1 + Check each file header (future)
// Return Values :
// true on success,
// false on error, the error code is set.
@@ -1748,7 +1748,7 @@
case PCLZIP_CB_POST_EXTRACT :
case PCLZIP_CB_PRE_ADD :
case PCLZIP_CB_POST_ADD :
- /* for futur use
+ /* for future use
case PCLZIP_CB_PRE_DELETE :
case PCLZIP_CB_POST_DELETE :
case PCLZIP_CB_PRE_LIST :
diff --git a/wp-admin/includes/class-plugin-installer-skin.php b/wp-admin/includes/class-plugin-installer-skin.php
index 20cd15f..d8e7e3e 100644
--- a/wp-admin/includes/class-plugin-installer-skin.php
+++ b/wp-admin/includes/class-plugin-installer-skin.php
@@ -24,6 +24,12 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
private $is_downgrading = false;
/**
+ * Constructor.
+ *
+ * Sets up the plugin installer skin.
+ *
+ * @since 2.8.0
+ *
* @param array $args
*/
public function __construct( $args = array() ) {
@@ -293,13 +299,13 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
$warning = sprintf(
/* translators: %s: Documentation URL. */
__( 'You are uploading an older version of a current plugin. You can continue to install the older version, but be sure to <a href="%s">back up your database and files</a> first.' ),
- __( 'https://wordpress.org/documentation/article/wordpress-backups/' )
+ __( 'https://developer.wordpress.org/advanced-administration/security/backup/' )
);
} else {
$warning = sprintf(
/* translators: %s: Documentation URL. */
__( 'You are updating a plugin. Be sure to <a href="%s">back up your database and files</a> first.' ),
- __( 'https://wordpress.org/documentation/article/wordpress-backups/' )
+ __( 'https://developer.wordpress.org/advanced-administration/security/backup/' )
);
}
diff --git a/wp-admin/includes/class-theme-installer-skin.php b/wp-admin/includes/class-theme-installer-skin.php
index d83e038..85f8797 100644
--- a/wp-admin/includes/class-theme-installer-skin.php
+++ b/wp-admin/includes/class-theme-installer-skin.php
@@ -24,6 +24,12 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
private $is_downgrading = false;
/**
+ * Constructor.
+ *
+ * Sets up the theme installer skin.
+ *
+ * @since 2.8.0
+ *
* @param array $args
*/
public function __construct( $args = array() ) {
@@ -328,13 +334,13 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
$warning = sprintf(
/* translators: %s: Documentation URL. */
__( 'You are uploading an older version of the active theme. You can continue to install the older version, but be sure to <a href="%s">back up your database and files</a> first.' ),
- __( 'https://wordpress.org/documentation/article/wordpress-backups/' )
+ __( 'https://developer.wordpress.org/advanced-administration/security/backup/' )
);
} else {
$warning = sprintf(
/* translators: %s: Documentation URL. */
__( 'You are updating a theme. Be sure to <a href="%s">back up your database and files</a> first.' ),
- __( 'https://wordpress.org/documentation/article/wordpress-backups/' )
+ __( 'https://developer.wordpress.org/advanced-administration/security/backup/' )
);
}
diff --git a/wp-admin/includes/class-wp-automatic-updater.php b/wp-admin/includes/class-wp-automatic-updater.php
index bb8cb40..c96bede 100644
--- a/wp-admin/includes/class-wp-automatic-updater.php
+++ b/wp-admin/includes/class-wp-automatic-updater.php
@@ -233,7 +233,7 @@ class WP_Automatic_Updater {
// If the `disable_autoupdate` flag is set, override any user-choice, but allow filters.
if ( ! empty( $item->disable_autoupdate ) ) {
- $update = $item->disable_autoupdate;
+ $update = false;
}
/**
@@ -446,6 +446,34 @@ class WP_Automatic_Updater {
$allow_relaxed_file_ownership = true;
}
+ $is_debug = WP_DEBUG && WP_DEBUG_LOG;
+ if ( 'plugin' === $type ) {
+ $was_active = is_plugin_active( $upgrader_item );
+ if ( $is_debug ) {
+ error_log( ' Upgrading plugin ' . var_export( $item->slug, true ) . '...' );
+ }
+ }
+
+ if ( 'theme' === $type && $is_debug ) {
+ error_log( ' Upgrading theme ' . var_export( $item->theme, true ) . '...' );
+ }
+
+ /*
+ * Enable maintenance mode before upgrading the plugin or theme.
+ *
+ * This avoids potential non-fatal errors being detected
+ * while scraping for a fatal error if some files are still
+ * being moved.
+ *
+ * While these checks are intended only for plugins,
+ * maintenance mode is enabled for all upgrade types as any
+ * update could contain an error or warning, which could cause
+ * the scrape to miss a fatal error in the plugin update.
+ */
+ if ( 'translation' !== $type ) {
+ $upgrader->maintenance_mode( true );
+ }
+
// Boom, this site's about to get a whole new splash of paint!
$upgrade_result = $upgrader->upgrade(
$upgrader_item,
@@ -460,6 +488,19 @@ class WP_Automatic_Updater {
)
);
+ /*
+ * After WP_Upgrader::upgrade() completes, maintenance mode is disabled.
+ *
+ * Re-enable maintenance mode while attempting to detect fatal errors
+ * and potentially rolling back.
+ *
+ * This avoids errors if the site is visited while fatal errors exist
+ * or while files are still being moved.
+ */
+ if ( 'translation' !== $type ) {
+ $upgrader->maintenance_mode( true );
+ }
+
// If the filesystem is unavailable, false is returned.
if ( false === $upgrade_result ) {
$upgrade_result = new WP_Error( 'fs_unavailable', __( 'Could not access filesystem.' ) );
@@ -470,6 +511,9 @@ class WP_Automatic_Updater {
&& ( 'up_to_date' === $upgrade_result->get_error_code()
|| 'locked' === $upgrade_result->get_error_code() )
) {
+ // Allow visitors to browse the site again.
+ $upgrader->maintenance_mode( false );
+
/*
* These aren't actual errors, treat it as a skipped-update instead
* to avoid triggering the post-core update failure routines.
@@ -486,6 +530,100 @@ class WP_Automatic_Updater {
}
}
+ $is_debug = WP_DEBUG && WP_DEBUG_LOG;
+
+ if ( 'theme' === $type && $is_debug ) {
+ error_log( ' Theme ' . var_export( $item->theme, true ) . ' has been upgraded.' );
+ }
+
+ if ( 'plugin' === $type ) {
+ if ( $is_debug ) {
+ error_log( ' Plugin ' . var_export( $item->slug, true ) . ' has been upgraded.' );
+ if ( is_plugin_inactive( $upgrader_item ) ) {
+ error_log( ' ' . var_export( $upgrader_item, true ) . ' is inactive and will not be checked for fatal errors.' );
+ }
+ }
+
+ if ( $was_active && ! is_wp_error( $upgrade_result ) ) {
+
+ /*
+ * The usual time limit is five minutes. However, as a loopback request
+ * is about to be performed, increase the time limit to account for this.
+ */
+ if ( function_exists( 'set_time_limit' ) ) {
+ set_time_limit( 10 * MINUTE_IN_SECONDS );
+ }
+
+ /*
+ * Avoids a race condition when there are 2 sequential plugins that have
+ * fatal errors. It seems a slight delay is required for the loopback to
+ * use the updated plugin code in the request. This can cause the second
+ * plugin's fatal error checking to be inaccurate, and may also affect
+ * subsequent plugin checks.
+ */
+ sleep( 2 );
+
+ if ( $this->has_fatal_error() ) {
+ $upgrade_result = new WP_Error();
+ $temp_backup = array(
+ array(
+ 'dir' => 'plugins',
+ 'slug' => $item->slug,
+ 'src' => WP_PLUGIN_DIR,
+ ),
+ );
+
+ $backup_restored = $upgrader->restore_temp_backup( $temp_backup );
+ if ( is_wp_error( $backup_restored ) ) {
+ $upgrade_result->add(
+ 'plugin_update_fatal_error_rollback_failed',
+ sprintf(
+ /* translators: %s: The plugin's slug. */
+ __( "The update for '%s' contained a fatal error. The previously installed version could not be restored." ),
+ $item->slug
+ )
+ );
+
+ $upgrade_result->merge_from( $backup_restored );
+ } else {
+ $upgrade_result->add(
+ 'plugin_update_fatal_error_rollback_successful',
+ sprintf(
+ /* translators: %s: The plugin's slug. */
+ __( "The update for '%s' contained a fatal error. The previously installed version has been restored." ),
+ $item->slug
+ )
+ );
+
+ $backup_deleted = $upgrader->delete_temp_backup( $temp_backup );
+ if ( is_wp_error( $backup_deleted ) ) {
+ $upgrade_result->merge_from( $backup_deleted );
+ }
+ }
+
+ /*
+ * Should emails not be working, log the message(s) so that
+ * the log file contains context for the fatal error,
+ * and whether a rollback was performed.
+ *
+ * `trigger_error()` is not used as it outputs a stack trace
+ * to this location rather than to the fatal error, which will
+ * appear above this entry in the log file.
+ */
+ if ( $is_debug ) {
+ error_log( ' ' . implode( "\n", $upgrade_result->get_error_messages() ) );
+ }
+ } elseif ( $is_debug ) {
+ error_log( ' The update for ' . var_export( $item->slug, true ) . ' has no fatal errors.' );
+ }
+ }
+ }
+
+ // All processes are complete. Allow visitors to browse the site again.
+ if ( 'translation' !== $type ) {
+ $upgrader->maintenance_mode( false );
+ }
+
$this->update_results[ $type ][] = (object) array(
'item' => $item,
'result' => $upgrade_result,
@@ -514,6 +652,12 @@ class WP_Automatic_Updater {
return;
}
+ $is_debug = WP_DEBUG && WP_DEBUG_LOG;
+
+ if ( $is_debug ) {
+ error_log( 'Automatic updates starting...' );
+ }
+
// Don't automatically run these things, as we'll handle it ourselves.
remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
remove_action( 'upgrader_process_complete', 'wp_version_check' );
@@ -524,22 +668,43 @@ class WP_Automatic_Updater {
wp_update_plugins(); // Check for plugin updates.
$plugin_updates = get_site_transient( 'update_plugins' );
if ( $plugin_updates && ! empty( $plugin_updates->response ) ) {
+ if ( $is_debug ) {
+ error_log( ' Automatic plugin updates starting...' );
+ }
+
foreach ( $plugin_updates->response as $plugin ) {
$this->update( 'plugin', $plugin );
}
+
// Force refresh of plugin update information.
wp_clean_plugins_cache();
+
+ if ( $is_debug ) {
+ error_log( ' Automatic plugin updates complete.' );
+ }
}
// Next, those themes we all love.
wp_update_themes(); // Check for theme updates.
$theme_updates = get_site_transient( 'update_themes' );
if ( $theme_updates && ! empty( $theme_updates->response ) ) {
+ if ( $is_debug ) {
+ error_log( ' Automatic theme updates starting...' );
+ }
+
foreach ( $theme_updates->response as $theme ) {
$this->update( 'theme', (object) $theme );
}
// Force refresh of theme update information.
wp_clean_themes_cache();
+
+ if ( $is_debug ) {
+ error_log( ' Automatic theme updates complete.' );
+ }
+ }
+
+ if ( $is_debug ) {
+ error_log( 'Automatic updates complete.' );
}
// Next, process any core update.
@@ -1163,7 +1328,7 @@ class WP_Automatic_Updater {
// List failed plugin updates.
if ( ! empty( $failed_updates['plugin'] ) ) {
- $body[] = __( 'These plugins failed to update:' );
+ $body[] = __( 'The following plugins failed to update. If there was a fatal error in the update, the previously installed version has been restored.' );
foreach ( $failed_updates['plugin'] as $item ) {
$body_message = '';
@@ -1551,4 +1716,91 @@ Thanks! -- The WordPress Team"
wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] );
}
+
+ /**
+ * Performs a loopback request to check for potential fatal errors.
+ *
+ * Fatal errors cannot be detected unless maintenance mode is enabled.
+ *
+ * @since 6.6.0
+ *
+ * @global int $upgrading The Unix timestamp marking when upgrading WordPress began.
+ *
+ * @return bool Whether a fatal error was detected.
+ */
+ protected function has_fatal_error() {
+ global $upgrading;
+
+ $maintenance_file = ABSPATH . '.maintenance';
+ if ( ! file_exists( $maintenance_file ) ) {
+ return false;
+ }
+
+ require $maintenance_file;
+ if ( ! is_int( $upgrading ) ) {
+ return false;
+ }
+
+ $scrape_key = md5( $upgrading );
+ $scrape_nonce = (string) $upgrading;
+ $transient = 'scrape_key_' . $scrape_key;
+ set_transient( $transient, $scrape_nonce, 30 );
+
+ $cookies = wp_unslash( $_COOKIE );
+ $scrape_params = array(
+ 'wp_scrape_key' => $scrape_key,
+ 'wp_scrape_nonce' => $scrape_nonce,
+ );
+ $headers = array(
+ 'Cache-Control' => 'no-cache',
+ );
+
+ /** This filter is documented in wp-includes/class-wp-http-streams.php */
+ $sslverify = apply_filters( 'https_local_ssl_verify', false );
+
+ // Include Basic auth in the loopback request.
+ if ( isset( $_SERVER['PHP_AUTH_USER'] ) && isset( $_SERVER['PHP_AUTH_PW'] ) ) {
+ $headers['Authorization'] = 'Basic ' . base64_encode( wp_unslash( $_SERVER['PHP_AUTH_USER'] ) . ':' . wp_unslash( $_SERVER['PHP_AUTH_PW'] ) );
+ }
+
+ // Time to wait for loopback request to finish.
+ $timeout = 50; // 50 seconds.
+
+ $is_debug = WP_DEBUG && WP_DEBUG_LOG;
+ if ( $is_debug ) {
+ error_log( ' Scraping home page...' );
+ }
+
+ $needle_start = "###### wp_scraping_result_start:$scrape_key ######";
+ $needle_end = "###### wp_scraping_result_end:$scrape_key ######";
+ $url = add_query_arg( $scrape_params, home_url( '/' ) );
+ $response = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout', 'sslverify' ) );
+
+ if ( is_wp_error( $response ) ) {
+ if ( $is_debug ) {
+ error_log( 'Loopback request failed: ' . $response->get_error_message() );
+ }
+ return true;
+ }
+
+ // If this outputs `true` in the log, it means there were no fatal errors detected.
+ if ( $is_debug ) {
+ error_log( var_export( substr( $response['body'], strpos( $response['body'], '###### wp_scraping_result_start:' ) ), true ) );
+ }
+
+ $body = wp_remote_retrieve_body( $response );
+ $scrape_result_position = strpos( $body, $needle_start );
+ $result = null;
+
+ if ( false !== $scrape_result_position ) {
+ $error_output = substr( $body, $scrape_result_position + strlen( $needle_start ) );
+ $error_output = substr( $error_output, 0, strpos( $error_output, $needle_end ) );
+ $result = json_decode( trim( $error_output ), true );
+ }
+
+ delete_transient( $transient );
+
+ // Only fatal errors will result in a 'type' key.
+ return isset( $result['type'] );
+ }
}
diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php
index d4970e2..6c45a4e 100644
--- a/wp-admin/includes/class-wp-comments-list-table.php
+++ b/wp-admin/includes/class-wp-comments-list-table.php
@@ -237,7 +237,7 @@ class WP_Comments_List_Table extends WP_List_Table {
$status_links = array();
$num_comments = ( $post_id ) ? wp_count_comments( $post_id ) : wp_count_comments();
- $stati = array(
+ $statuses = array(
/* translators: %s: Number of comments. */
'all' => _nx_noop(
'All <span class="count">(%s)</span>',
@@ -282,7 +282,7 @@ class WP_Comments_List_Table extends WP_List_Table {
);
if ( ! EMPTY_TRASH_DAYS ) {
- unset( $stati['trash'] );
+ unset( $statuses['trash'] );
}
$link = admin_url( 'edit-comments.php' );
@@ -291,7 +291,7 @@ class WP_Comments_List_Table extends WP_List_Table {
$link = add_query_arg( 'comment_type', $comment_type, $link );
}
- foreach ( $stati as $status => $label ) {
+ foreach ( $statuses as $status => $label ) {
if ( 'mine' === $status ) {
$current_user_id = get_current_user_id();
$num_comments->mine = get_comments(
diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php
index ed6a9e7..2d6fb41 100644
--- a/wp-admin/includes/class-wp-debug-data.php
+++ b/wp-admin/includes/class-wp-debug-data.php
@@ -134,6 +134,7 @@ class WP_Debug_Data {
if ( ! $is_multisite ) {
$info['wp-paths-sizes'] = array(
+ /* translators: Filesystem directory paths and storage sizes. */
'label' => __( 'Directories and Sizes' ),
'fields' => array(),
);
@@ -346,6 +347,7 @@ class WP_Debug_Data {
$is_writable_upload_dir = wp_is_writable( $upload_dir['basedir'] );
$is_writable_wp_plugin_dir = wp_is_writable( WP_PLUGIN_DIR );
$is_writable_template_directory = wp_is_writable( get_theme_root( get_template() ) );
+ $is_writable_fonts_dir = wp_is_writable( wp_get_font_dir()['basedir'] );
$info['wp-filesystem'] = array(
'label' => __( 'Filesystem Permissions' ),
@@ -376,6 +378,11 @@ class WP_Debug_Data {
'value' => ( $is_writable_template_directory ? __( 'Writable' ) : __( 'Not writable' ) ),
'debug' => ( $is_writable_template_directory ? 'writable' : 'not writable' ),
),
+ 'fonts' => array(
+ 'label' => __( 'The fonts directory' ),
+ 'value' => ( $is_writable_fonts_dir ? __( 'Writable' ) : __( 'Not writable' ) ),
+ 'debug' => ( $is_writable_fonts_dir ? 'writable' : 'not writable' ),
+ ),
),
);
@@ -482,6 +489,15 @@ class WP_Debug_Data {
'value' => $loading,
'debug' => 'loading...',
),
+ 'fonts_path' => array(
+ 'label' => __( 'Fonts directory location' ),
+ 'value' => wp_get_font_dir()['basedir'],
+ ),
+ 'fonts_size' => array(
+ 'label' => __( 'Fonts directory size' ),
+ 'value' => $loading,
+ 'debug' => 'loading...',
+ ),
'database_size' => array(
'label' => __( 'Database size' ),
'value' => $loading,
@@ -1636,6 +1652,7 @@ class WP_Debug_Data {
'themes_size' => get_theme_root(),
'plugins_size' => WP_PLUGIN_DIR,
'uploads_size' => $upload_dir['basedir'],
+ 'fonts_size' => wp_get_font_dir()['basedir'],
);
$exclude = $paths;
diff --git a/wp-admin/includes/class-wp-links-list-table.php b/wp-admin/includes/class-wp-links-list-table.php
index 5159c1c..66c4990 100644
--- a/wp-admin/includes/class-wp-links-list-table.php
+++ b/wp-admin/includes/class-wp-links-list-table.php
@@ -50,7 +50,10 @@ class WP_Links_List_Table extends WP_List_Table {
public function prepare_items() {
global $cat_id, $s, $orderby, $order;
- wp_reset_vars( array( 'action', 'cat_id', 'link_id', 'orderby', 'order', 's' ) );
+ $cat_id = ! empty( $_REQUEST['cat_id'] ) ? absint( $_REQUEST['cat_id'] ) : 0;
+ $orderby = ! empty( $_REQUEST['orderby'] ) ? sanitize_text_field( $_REQUEST['orderby'] ) : '';
+ $order = ! empty( $_REQUEST['order'] ) ? sanitize_text_field( $_REQUEST['order'] ) : '';
+ $s = ! empty( $_REQUEST['s'] ) ? sanitize_text_field( $_REQUEST['s'] ) : '';
$args = array(
'hide_invisible' => 0,
diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php
index 4e6aaa4..2879a0a 100644
--- a/wp-admin/includes/class-wp-list-table.php
+++ b/wp-admin/includes/class-wp-list-table.php
@@ -388,7 +388,13 @@ class WP_List_Table {
$input_id = $input_id . '-search-input';
if ( ! empty( $_REQUEST['orderby'] ) ) {
- echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) . '" />';
+ if ( is_array( $_REQUEST['orderby'] ) ) {
+ foreach ( $_REQUEST['orderby'] as $key => $value ) {
+ echo '<input type="hidden" name="orderby[' . esc_attr( $key ) . ']" value="' . esc_attr( $value ) . '" />';
+ }
+ } else {
+ echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) . '" />';
+ }
}
if ( ! empty( $_REQUEST['order'] ) ) {
echo '<input type="hidden" name="order" value="' . esc_attr( $_REQUEST['order'] ) . '" />';
@@ -635,7 +641,7 @@ class WP_List_Table {
return false;
}
- if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) {
+ if ( isset( $_REQUEST['action'] ) && '-1' !== $_REQUEST['action'] ) {
return $_REQUEST['action'];
}
@@ -753,7 +759,7 @@ class WP_List_Table {
$month_count = count( $months );
- if ( ! $month_count || ( 1 == $month_count && 0 == $months[0]->month ) ) {
+ if ( ! $month_count || ( 1 === $month_count && 0 === (int) $months[0]->month ) ) {
return;
}
@@ -764,7 +770,7 @@ class WP_List_Table {
<option<?php selected( $m, 0 ); ?> value="0"><?php _e( 'All dates' ); ?></option>
<?php
foreach ( $months as $arc_row ) {
- if ( 0 == $arc_row->year ) {
+ if ( 0 === (int) $arc_row->year ) {
continue;
}
@@ -989,10 +995,10 @@ class WP_List_Table {
* - `edit_comments_per_page`
* - `sites_network_per_page`
* - `site_themes_network_per_page`
- * - `themes_network_per_page'`
+ * - `themes_network_per_page`
* - `users_network_per_page`
* - `edit_post_per_page`
- * - `edit_page_per_page'`
+ * - `edit_page_per_page`
* - `edit_{$post_type}_per_page`
* - `edit_post_tag_per_page`
* - `edit_category_per_page`
@@ -1053,11 +1059,11 @@ class WP_List_Table {
$disable_prev = false;
$disable_next = false;
- if ( 1 == $current ) {
+ if ( 1 === $current ) {
$disable_first = true;
$disable_prev = true;
}
- if ( $total_pages == $current ) {
+ if ( $total_pages === $current ) {
$disable_last = true;
$disable_next = true;
}
diff --git a/wp-admin/includes/class-wp-ms-themes-list-table.php b/wp-admin/includes/class-wp-ms-themes-list-table.php
index cc0206e..96a1d99 100644
--- a/wp-admin/includes/class-wp-ms-themes-list-table.php
+++ b/wp-admin/includes/class-wp-ms-themes-list-table.php
@@ -99,7 +99,9 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
public function prepare_items() {
global $status, $totals, $page, $orderby, $order, $s;
- wp_reset_vars( array( 'orderby', 'order', 's' ) );
+ $orderby = ! empty( $_REQUEST['orderby'] ) ? sanitize_text_field( $_REQUEST['orderby'] ) : '';
+ $order = ! empty( $_REQUEST['order'] ) ? sanitize_text_field( $_REQUEST['order'] ) : '';
+ $s = ! empty( $_REQUEST['s'] ) ? sanitize_text_field( $_REQUEST['s'] ) : '';
$themes = array(
/**
diff --git a/wp-admin/includes/class-wp-plugin-install-list-table.php b/wp-admin/includes/class-wp-plugin-install-list-table.php
index f3452a7..1a318d3 100644
--- a/wp-admin/includes/class-wp-plugin-install-list-table.php
+++ b/wp-admin/includes/class-wp-plugin-install-list-table.php
@@ -92,7 +92,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
global $tabs, $tab, $paged, $type, $term;
- wp_reset_vars( array( 'tab' ) );
+ $tab = ! empty( $_REQUEST['tab'] ) ? sanitize_text_field( $_REQUEST['tab'] ) : '';
$paged = $this->get_pagenum();
@@ -626,7 +626,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
} elseif ( ! $compatible_wp ) {
$incompatible_notice_message .= __( 'This plugin does not work with your version of WordPress.' );
if ( current_user_can( 'update_core' ) ) {
- $incompatible_notice_message .= printf(
+ $incompatible_notice_message .= sprintf(
/* translators: %s: URL to WordPress Updates screen. */
' ' . __( '<a href="%s">Please update WordPress</a>.' ),
self_admin_url( 'update-core.php' )
diff --git a/wp-admin/includes/class-wp-plugins-list-table.php b/wp-admin/includes/class-wp-plugins-list-table.php
index 4cc0132..379cf56 100644
--- a/wp-admin/includes/class-wp-plugins-list-table.php
+++ b/wp-admin/includes/class-wp-plugins-list-table.php
@@ -90,7 +90,8 @@ class WP_Plugins_List_Table extends WP_List_Table {
public function prepare_items() {
global $status, $plugins, $totals, $page, $orderby, $order, $s;
- wp_reset_vars( array( 'orderby', 'order' ) );
+ $orderby = ! empty( $_REQUEST['orderby'] ) ? sanitize_text_field( $_REQUEST['orderby'] ) : '';
+ $order = ! empty( $_REQUEST['order'] ) ? sanitize_text_field( $_REQUEST['order'] ) : '';
/**
* Filters the full array of plugins to list in the Plugins list table.
@@ -452,8 +453,8 @@ class WP_Plugins_List_Table extends WP_List_Table {
}
?>
<p class="search-box">
- <label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label>
- <input type="search" id="<?php echo esc_attr( $input_id ); ?>" class="wp-filter-search" name="s" value="<?php _admin_search_query(); ?>" placeholder="<?php esc_attr_e( 'Search installed plugins...' ); ?>" />
+ <label for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?></label>
+ <input type="search" id="<?php echo esc_attr( $input_id ); ?>" class="wp-filter-search" name="s" value="<?php _admin_search_query(); ?>" />
<?php submit_button( $text, 'hide-if-js', '', false, array( 'id' => 'search-submit' ) ); ?>
</p>
<?php
diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php
index baf3ef6..826be9b 100644
--- a/wp-admin/includes/class-wp-posts-list-table.php
+++ b/wp-admin/includes/class-wp-posts-list-table.php
@@ -65,7 +65,7 @@ class WP_Posts_List_Table extends WP_List_Table {
*
* @see WP_List_Table::__construct() for more information on default arguments.
*
- * @global WP_Post_Type $post_type_object
+ * @global WP_Post_Type $post_type_object Global post type object.
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param array $args An associative array of arguments.
diff --git a/wp-admin/includes/class-wp-screen.php b/wp-admin/includes/class-wp-screen.php
index 67bceef..4bb5995 100644
--- a/wp-admin/includes/class-wp-screen.php
+++ b/wp-admin/includes/class-wp-screen.php
@@ -984,7 +984,7 @@ final class WP_Screen {
}
/**
- * @global array $wp_meta_boxes
+ * @global array $wp_meta_boxes Global meta box state.
*
* @return bool
*/
@@ -1103,7 +1103,7 @@ final class WP_Screen {
*
* @since 4.4.0
*
- * @global array $wp_meta_boxes
+ * @global array $wp_meta_boxes Global meta box state.
*/
public function render_meta_boxes_preferences() {
global $wp_meta_boxes;
diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php
index da6c81e..12ca7f7 100644
--- a/wp-admin/includes/class-wp-site-health.php
+++ b/wp-admin/includes/class-wp-site-health.php
@@ -18,7 +18,7 @@ class WP_Site_Health {
private $mysql_server_version = '';
private $mysql_required_version = '5.5';
private $mysql_recommended_version = '8.0';
- private $mariadb_recommended_version = '10.4';
+ private $mariadb_recommended_version = '10.5';
public $php_memory_limit;
@@ -1284,120 +1284,6 @@ class WP_Site_Health {
}
/**
- * Tests if the database server is capable of using utf8mb4.
- *
- * @since 5.2.0
- *
- * @return array The test results.
- */
- public function get_test_utf8mb4_support() {
- if ( ! $this->mysql_server_version ) {
- $this->prepare_sql_data();
- }
-
- $result = array(
- 'label' => __( 'UTF8MB4 is supported' ),
- 'status' => 'good',
- 'badge' => array(
- 'label' => __( 'Performance' ),
- 'color' => 'blue',
- ),
- 'description' => sprintf(
- '<p>%s</p>',
- __( 'UTF8MB4 is the character set WordPress prefers for database storage because it safely supports the widest set of characters and encodings, including Emoji, enabling better support for non-English languages.' )
- ),
- 'actions' => '',
- 'test' => 'utf8mb4_support',
- );
-
- if ( ! $this->is_mariadb ) {
- if ( version_compare( $this->mysql_server_version, '5.5.3', '<' ) ) {
- $result['status'] = 'recommended';
-
- $result['label'] = __( 'utf8mb4 requires a MySQL update' );
-
- $result['description'] .= sprintf(
- '<p>%s</p>',
- sprintf(
- /* translators: %s: Version number. */
- __( 'WordPress&#8217; utf8mb4 support requires MySQL version %s or greater. Please contact your server administrator.' ),
- '5.5.3'
- )
- );
- } else {
- $result['description'] .= sprintf(
- '<p>%s</p>',
- __( 'Your MySQL version supports utf8mb4.' )
- );
- }
- } else { // MariaDB introduced utf8mb4 support in 5.5.0.
- if ( version_compare( $this->mysql_server_version, '5.5.0', '<' ) ) {
- $result['status'] = 'recommended';
-
- $result['label'] = __( 'utf8mb4 requires a MariaDB update' );
-
- $result['description'] .= sprintf(
- '<p>%s</p>',
- sprintf(
- /* translators: %s: Version number. */
- __( 'WordPress&#8217; utf8mb4 support requires MariaDB version %s or greater. Please contact your server administrator.' ),
- '5.5.0'
- )
- );
- } else {
- $result['description'] .= sprintf(
- '<p>%s</p>',
- __( 'Your MariaDB version supports utf8mb4.' )
- );
- }
- }
-
- // phpcs:ignore WordPress.DB.RestrictedFunctions.mysql_mysqli_get_client_info
- $mysql_client_version = mysqli_get_client_info();
-
- /*
- * libmysql has supported utf8mb4 since 5.5.3, same as the MySQL server.
- * mysqlnd has supported utf8mb4 since 5.0.9.
- */
- if ( str_contains( $mysql_client_version, 'mysqlnd' ) ) {
- $mysql_client_version = preg_replace( '/^\D+([\d.]+).*/', '$1', $mysql_client_version );
- if ( version_compare( $mysql_client_version, '5.0.9', '<' ) ) {
- $result['status'] = 'recommended';
-
- $result['label'] = __( 'utf8mb4 requires a newer client library' );
-
- $result['description'] .= sprintf(
- '<p>%s</p>',
- sprintf(
- /* translators: 1: Name of the library, 2: Number of version. */
- __( 'WordPress&#8217; utf8mb4 support requires MySQL client library (%1$s) version %2$s or newer. Please contact your server administrator.' ),
- 'mysqlnd',
- '5.0.9'
- )
- );
- }
- } else {
- if ( version_compare( $mysql_client_version, '5.5.3', '<' ) ) {
- $result['status'] = 'recommended';
-
- $result['label'] = __( 'utf8mb4 requires a newer client library' );
-
- $result['description'] .= sprintf(
- '<p>%s</p>',
- sprintf(
- /* translators: 1: Name of the library, 2: Number of version. */
- __( 'WordPress&#8217; utf8mb4 support requires MySQL client library (%1$s) version %2$s or newer. Please contact your server administrator.' ),
- 'libmysql',
- '5.5.3'
- )
- );
- }
- }
-
- return $result;
- }
-
- /**
* Tests if the site can communicate with WordPress.org.
*
* @since 5.2.0
@@ -1489,7 +1375,7 @@ class WP_Site_Health {
'actions' => sprintf(
'<p><a href="%s" target="_blank" rel="noopener">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
/* translators: Documentation explaining debugging in WordPress. */
- esc_url( __( 'https://wordpress.org/documentation/article/debugging-in-wordpress/' ) ),
+ esc_url( __( 'https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/' ) ),
__( 'Learn more about debugging in WordPress.' ),
/* translators: Hidden accessibility text. */
__( '(opens in a new tab)' )
@@ -1953,11 +1839,19 @@ class WP_Site_Health {
$result['description'] = __( 'Could not determine available disk space for updates.' );
$result['status'] = 'recommended';
} elseif ( $available_space < 20 * MB_IN_BYTES ) {
- $result['description'] = __( 'Available disk space is critically low, less than 20 MB available. Proceed with caution, updates may fail.' );
- $result['status'] = 'critical';
+ $result['description'] = sprintf(
+ /* translators: %s: Available disk space in MB or GB. */
+ __( 'Available disk space is critically low, less than %s available. Proceed with caution, updates may fail.' ),
+ size_format( 20 * MB_IN_BYTES )
+ );
+ $result['status'] = 'critical';
} elseif ( $available_space < 100 * MB_IN_BYTES ) {
- $result['description'] = __( 'Available disk space is low, less than 100 MB available.' );
- $result['status'] = 'recommended';
+ $result['description'] = sprintf(
+ /* translators: %s: Available disk space in MB or GB. */
+ __( 'Available disk space is low, less than %s available.' ),
+ size_format( 100 * MB_IN_BYTES )
+ );
+ $result['status'] = 'recommended';
}
return $result;
@@ -2504,7 +2398,7 @@ class WP_Site_Health {
'label' => '',
'actions' => sprintf(
'<p><a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s<span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
- __( 'https://wordpress.org/documentation/article/optimization/#Caching' ),
+ __( 'https://developer.wordpress.org/advanced-administration/performance/optimization/#caching' ),
__( 'Learn more about page cache' ),
/* translators: Hidden accessibility text. */
__( '(opens in a new tab)' )
@@ -2613,7 +2507,7 @@ class WP_Site_Health {
$action_url = apply_filters(
'site_status_persistent_object_cache_url',
/* translators: Localized Support reference. */
- __( 'https://wordpress.org/documentation/article/optimization/#persistent-object-cache' )
+ __( 'https://developer.wordpress.org/advanced-administration/performance/optimization/#persistent-object-cache' )
);
$result = array(
@@ -2693,6 +2587,107 @@ class WP_Site_Health {
}
/**
+ * Calculates total amount of autoloaded data.
+ *
+ * @since 6.6.0
+ *
+ * @return int Autoloaded data in bytes.
+ */
+ public function get_autoloaded_options_size() {
+ $alloptions = wp_load_alloptions();
+
+ $total_length = 0;
+
+ foreach ( $alloptions as $option_value ) {
+ if ( is_array( $option_value ) || is_object( $option_value ) ) {
+ $option_value = maybe_serialize( $option_value );
+ }
+ $total_length += strlen( (string) $option_value );
+ }
+
+ return $total_length;
+ }
+
+ /**
+ * Tests the number of autoloaded options.
+ *
+ * @since 6.6.0
+ *
+ * @return array The test results.
+ */
+ public function get_test_autoloaded_options() {
+ $autoloaded_options_size = $this->get_autoloaded_options_size();
+ $autoloaded_options_count = count( wp_load_alloptions() );
+
+ $base_description = __( 'Autoloaded options are configuration settings for plugins and themes that are automatically loaded with every page load in WordPress. Having too many autoloaded options can slow down your site.' );
+
+ $result = array(
+ 'label' => __( 'Autoloaded options are acceptable' ),
+ 'status' => 'good',
+ 'badge' => array(
+ 'label' => __( 'Performance' ),
+ 'color' => 'blue',
+ ),
+ 'description' => sprintf(
+ /* translators: 1: Number of autoloaded options, 2: Autoloaded options size. */
+ '<p>' . esc_html( $base_description ) . ' ' . __( 'Your site has %1$s autoloaded options (size: %2$s) in the options table, which is acceptable.' ) . '</p>',
+ $autoloaded_options_count,
+ size_format( $autoloaded_options_size )
+ ),
+ 'actions' => '',
+ 'test' => 'autoloaded_options',
+ );
+
+ /**
+ * Filters max bytes threshold to trigger warning in Site Health.
+ *
+ * @since 6.6.0
+ *
+ * @param int $limit Autoloaded options threshold size. Default 800000.
+ */
+ $limit = apply_filters( 'site_status_autoloaded_options_size_limit', 800000 );
+
+ if ( $autoloaded_options_size < $limit ) {
+ return $result;
+ }
+
+ $result['status'] = 'critical';
+ $result['label'] = __( 'Autoloaded options could affect performance' );
+ $result['description'] = sprintf(
+ /* translators: 1: Number of autoloaded options, 2: Autoloaded options size. */
+ '<p>' . esc_html( $base_description ) . ' ' . __( 'Your site has %1$s autoloaded options (size: %2$s) in the options table, which could cause your site to be slow. You can review the options being autoloaded in your database and remove any options that are no longer needed by your site.' ) . '</p>',
+ $autoloaded_options_count,
+ size_format( $autoloaded_options_size )
+ );
+
+ /**
+ * Filters description to be shown on Site Health warning when threshold is met.
+ *
+ * @since 6.6.0
+ *
+ * @param string $description Description message when autoloaded options bigger than threshold.
+ */
+ $result['description'] = apply_filters( 'site_status_autoloaded_options_limit_description', $result['description'] );
+
+ $result['actions'] = sprintf(
+ /* translators: 1: HelpHub URL, 2: Link description. */
+ '<p><a target="_blank" rel="noopener" href="%1$s">%2$s</a></p>',
+ esc_url( __( 'https://developer.wordpress.org/advanced-administration/performance/optimization/#autoloaded-options' ) ),
+ __( 'More info about optimizing autoloaded options' )
+ );
+
+ /**
+ * Filters actionable information to tackle the problem. It can be a link to an external guide.
+ *
+ * @since 6.6.0
+ *
+ * @param string $actions Call to Action to be used to point to the right direction to solve the issue.
+ */
+ $result['actions'] = apply_filters( 'site_status_autoloaded_options_action_to_perform', $result['actions'] );
+ return $result;
+ }
+
+ /**
* Returns a set of tests that belong to the site status page.
*
* Each site status test is defined here, they may be `direct` tests, that run on page load, or `async` tests
@@ -2739,10 +2734,6 @@ class WP_Site_Health {
'label' => __( 'Database Server version' ),
'test' => 'sql_server',
),
- 'utf8mb4_support' => array(
- 'label' => __( 'MySQL utf8mb4 support' ),
- 'test' => 'utf8mb4_support',
- ),
'ssl_support' => array(
'label' => __( 'Secure communication' ),
'test' => 'ssl_support',
@@ -2780,6 +2771,10 @@ class WP_Site_Health {
'label' => __( 'Available disk space' ),
'test' => 'available_updates_disk_space',
),
+ 'autoloaded_options' => array(
+ 'label' => __( 'Autoloaded options' ),
+ 'test' => 'autoloaded_options',
+ ),
),
'async' => array(
'dotorg_communication' => array(
@@ -3443,12 +3438,12 @@ class WP_Site_Health {
* @since 6.1.0
*
* @return WP_Error|array {
- * Page cache detail or else a WP_Error if unable to determine.
+ * Page cache detail or else a WP_Error if unable to determine.
*
- * @type string $status Page cache status. Good, Recommended or Critical.
- * @type bool $advanced_cache_present Whether page cache plugin is available or not.
- * @type string[] $headers Client caching response headers detected.
- * @type float $response_time Response time of site.
+ * @type string $status Page cache status. Good, Recommended or Critical.
+ * @type bool $advanced_cache_present Whether page cache plugin is available or not.
+ * @type string[] $headers Client caching response headers detected.
+ * @type float $response_time Response time of site.
* }
*/
private function get_page_cache_detail() {
diff --git a/wp-admin/includes/class-wp-terms-list-table.php b/wp-admin/includes/class-wp-terms-list-table.php
index b3d9ec5..c7f3463 100644
--- a/wp-admin/includes/class-wp-terms-list-table.php
+++ b/wp-admin/includes/class-wp-terms-list-table.php
@@ -27,8 +27,8 @@ class WP_Terms_List_Table extends WP_List_Table {
*
* @see WP_List_Table::__construct() for more information on default arguments.
*
- * @global string $post_type
- * @global string $taxonomy
+ * @global string $post_type Global post type.
+ * @global string $taxonomy Global taxonomy.
* @global string $action
* @global object $tax
*
@@ -330,7 +330,8 @@ class WP_Terms_List_Table extends WP_List_Table {
}
/**
- * @global string $taxonomy
+ * @global string $taxonomy Global taxonomy.
+ *
* @param WP_Term $tag Term object.
* @param int $level
*/
diff --git a/wp-admin/includes/class-wp-theme-install-list-table.php b/wp-admin/includes/class-wp-theme-install-list-table.php
index 945fb6e..e273d4b 100644
--- a/wp-admin/includes/class-wp-theme-install-list-table.php
+++ b/wp-admin/includes/class-wp-theme-install-list-table.php
@@ -36,7 +36,8 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
require ABSPATH . 'wp-admin/includes/theme-install.php';
global $tabs, $tab, $paged, $type, $theme_field_defaults;
- wp_reset_vars( array( 'tab' ) );
+
+ $tab = ! empty( $_REQUEST['tab'] ) ? sanitize_text_field( $_REQUEST['tab'] ) : '';
$search_terms = array();
$search_string = '';
diff --git a/wp-admin/includes/class-wp-upgrader-skin.php b/wp-admin/includes/class-wp-upgrader-skin.php
index 83b4ba4..a5c80fa 100644
--- a/wp-admin/includes/class-wp-upgrader-skin.php
+++ b/wp-admin/includes/class-wp-upgrader-skin.php
@@ -20,7 +20,6 @@ class WP_Upgrader_Skin {
* Holds the upgrader data.
*
* @since 2.8.0
- *
* @var WP_Upgrader
*/
public $upgrader;
@@ -29,7 +28,6 @@ class WP_Upgrader_Skin {
* Whether header is done.
*
* @since 2.8.0
- *
* @var bool
*/
public $done_header = false;
@@ -38,7 +36,6 @@ class WP_Upgrader_Skin {
* Whether footer is done.
*
* @since 2.8.0
- *
* @var bool
*/
public $done_footer = false;
@@ -47,7 +44,6 @@ class WP_Upgrader_Skin {
* Holds the result of an upgrade.
*
* @since 2.8.0
- *
* @var string|bool|WP_Error
*/
public $result = false;
@@ -56,7 +52,6 @@ class WP_Upgrader_Skin {
* Holds the options of an upgrade.
*
* @since 2.8.0
- *
* @var array
*/
public $options = array();
@@ -82,6 +77,8 @@ class WP_Upgrader_Skin {
}
/**
+ * Sets the relationship between the skin being used and the upgrader.
+ *
* @since 2.8.0
*
* @param WP_Upgrader $upgrader
@@ -94,6 +91,8 @@ class WP_Upgrader_Skin {
}
/**
+ * Sets up the strings used in the update process.
+ *
* @since 3.0.0
*/
public function add_strings() {
@@ -141,6 +140,8 @@ class WP_Upgrader_Skin {
}
/**
+ * Displays the header before the update process.
+ *
* @since 2.8.0
*/
public function header() {
@@ -153,6 +154,8 @@ class WP_Upgrader_Skin {
}
/**
+ * Displays the footer following the update process.
+ *
* @since 2.8.0
*/
public function footer() {
@@ -164,6 +167,8 @@ class WP_Upgrader_Skin {
}
/**
+ * Displays an error message about the update.
+ *
* @since 2.8.0
*
* @param string|WP_Error $errors Errors.
@@ -186,6 +191,8 @@ class WP_Upgrader_Skin {
}
/**
+ * Displays a message about the update.
+ *
* @since 2.8.0
* @since 5.9.0 Renamed `$string` (a PHP reserved keyword) to `$feedback` for PHP 8 named parameter support.
*
@@ -218,7 +225,7 @@ class WP_Upgrader_Skin {
public function before() {}
/**
- * Performs and action following an update.
+ * Performs an action following an update.
*
* @since 2.8.0
*/
@@ -262,11 +269,15 @@ class WP_Upgrader_Skin {
}
/**
+ * Displays the header before the bulk update process.
+ *
* @since 3.0.0
*/
public function bulk_header() {}
/**
+ * Displays the footer following the bulk update process.
+ *
* @since 3.0.0
*/
public function bulk_footer() {}
diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php
index 1fbfa99..9474ce0 100644
--- a/wp-admin/includes/class-wp-upgrader.php
+++ b/wp-admin/includes/class-wp-upgrader.php
@@ -196,6 +196,7 @@ class WP_Upgrader {
/* translators: %s: Directory name. */
$this->strings['fs_no_folder'] = __( 'Unable to locate needed folder (%s).' );
+ $this->strings['no_package'] = __( 'Package not available.' );
$this->strings['download_failed'] = __( 'Download failed.' );
$this->strings['installing_package'] = __( 'Installing the latest version&#8230;' );
$this->strings['no_files'] = __( 'The package contains no files.' );
@@ -527,7 +528,10 @@ class WP_Upgrader {
set_time_limit( 300 );
}
- if ( empty( $source ) || empty( $destination ) ) {
+ if (
+ ( ! is_string( $source ) || '' === $source || trim( $source ) !== $source ) ||
+ ( ! is_string( $destination ) || '' === $destination || trim( $destination ) !== $destination )
+ ) {
return new WP_Error( 'bad_request', $this->strings['bad_request'] );
}
$this->skin->feedback( 'installing_package' );
@@ -824,7 +828,7 @@ class WP_Upgrader {
* Download the package. Note: If the package is the full path
* to an existing local file, it will be returned untouched.
*/
- $download = $this->download_package( $options['package'], true, $options['hook_extra'] );
+ $download = $this->download_package( $options['package'], false, $options['hook_extra'] );
/*
* Allow for signature soft-fail.
@@ -897,6 +901,7 @@ class WP_Upgrader {
$this->skin->set_result( $result );
if ( is_wp_error( $result ) ) {
+ // An automatic plugin update will have already performed its rollback.
if ( ! empty( $options['hook_extra']['temp_backup'] ) ) {
$this->temp_restores[] = $options['hook_extra']['temp_backup'];
@@ -905,8 +910,12 @@ class WP_Upgrader {
* Actions running on `shutdown` are immune to PHP timeouts,
* so in case the failure was due to a PHP timeout,
* it will still be able to properly restore the previous version.
+ *
+ * Zero arguments are accepted as a string can sometimes be passed
+ * internally during actions, causing an error because
+ * `WP_Upgrader::restore_temp_backup()` expects an array.
*/
- add_action( 'shutdown', array( $this, 'restore_temp_backup' ) );
+ add_action( 'shutdown', array( $this, 'restore_temp_backup' ), 10, 0 );
}
$this->skin->error( $result );
@@ -979,15 +988,25 @@ class WP_Upgrader {
*/
public function maintenance_mode( $enable = false ) {
global $wp_filesystem;
+
+ if ( ! $wp_filesystem ) {
+ require_once ABSPATH . 'wp-admin/includes/file.php';
+ WP_Filesystem();
+ }
+
$file = $wp_filesystem->abspath() . '.maintenance';
if ( $enable ) {
- $this->skin->feedback( 'maintenance_start' );
+ if ( ! wp_doing_cron() ) {
+ $this->skin->feedback( 'maintenance_start' );
+ }
// Create maintenance file to signal that we are upgrading.
$maintenance_string = '<?php $upgrading = ' . time() . '; ?>';
$wp_filesystem->delete( $file );
$wp_filesystem->put_contents( $file, $maintenance_string, FS_CHMOD_FILE );
} elseif ( ! $enable && $wp_filesystem->exists( $file ) ) {
- $this->skin->feedback( 'maintenance_end' );
+ if ( ! wp_doing_cron() ) {
+ $this->skin->feedback( 'maintenance_end' );
+ }
$wp_filesystem->delete( $file );
}
}
@@ -1012,7 +1031,7 @@ class WP_Upgrader {
$lock_option = $lock_name . '.lock';
// Try to lock.
- $lock_result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` ( `option_name`, `option_value`, `autoload` ) VALUES (%s, %s, 'no') /* LOCK */", $lock_option, time() ) );
+ $lock_result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` ( `option_name`, `option_value`, `autoload` ) VALUES (%s, %s, 'off') /* LOCK */", $lock_option, time() ) );
if ( ! $lock_result ) {
$lock_result = get_option( $lock_option );
@@ -1129,17 +1148,33 @@ class WP_Upgrader {
* Restores the plugin or theme from temporary backup.
*
* @since 6.3.0
+ * @since 6.6.0 Added the `$temp_backups` parameter.
*
* @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
*
+ * @param array[] $temp_backups {
+ * Optional. An array of temporary backups.
+ *
+ * @type array ...$0 {
+ * Information about the backup.
+ *
+ * @type string $dir The temporary backup location in the upgrade-temp-backup directory.
+ * @type string $slug The item's slug.
+ * @type string $src The directory where the original is stored. For example, `WP_PLUGIN_DIR`.
+ * }
+ * }
* @return bool|WP_Error True on success, false on early exit, otherwise WP_Error.
*/
- public function restore_temp_backup() {
+ public function restore_temp_backup( array $temp_backups = array() ) {
global $wp_filesystem;
$errors = new WP_Error();
- foreach ( $this->temp_restores as $args ) {
+ if ( empty( $temp_backups ) ) {
+ $temp_backups = $this->temp_restores;
+ }
+
+ foreach ( $temp_backups as $args ) {
if ( empty( $args['slug'] ) || empty( $args['src'] ) || empty( $args['dir'] ) ) {
return false;
}
@@ -1182,17 +1217,33 @@ class WP_Upgrader {
* Deletes a temporary backup.
*
* @since 6.3.0
+ * @since 6.6.0 Added the `$temp_backups` parameter.
*
* @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
*
+ * @param array[] $temp_backups {
+ * Optional. An array of temporary backups.
+ *
+ * @type array ...$0 {
+ * Information about the backup.
+ *
+ * @type string $dir The temporary backup location in the upgrade-temp-backup directory.
+ * @type string $slug The item's slug.
+ * @type string $src The directory where the original is stored. For example, `WP_PLUGIN_DIR`.
+ * }
+ * }
* @return bool|WP_Error True on success, false on early exit, otherwise WP_Error.
*/
- public function delete_temp_backup() {
+ public function delete_temp_backup( array $temp_backups = array() ) {
global $wp_filesystem;
$errors = new WP_Error();
- foreach ( $this->temp_backups as $args ) {
+ if ( empty( $temp_backups ) ) {
+ $temp_backups = $this->temp_backups;
+ }
+
+ foreach ( $temp_backups as $args ) {
if ( empty( $args['slug'] ) || empty( $args['dir'] ) ) {
return false;
}
diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php
index d05f98f..277231a 100644
--- a/wp-admin/includes/export.php
+++ b/wp-admin/includes/export.php
@@ -401,7 +401,7 @@ function export_wp( $args = array() ) {
*
* @param int[] $post_ids Optional. Array of post IDs to filter the query by.
*/
- function wxr_authors_list( array $post_ids = null ) {
+ function wxr_authors_list( ?array $post_ids = null ) {
global $wpdb;
if ( ! empty( $post_ids ) ) {
diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php
index 5832569..bc5ef44 100644
--- a/wp-admin/includes/file.php
+++ b/wp-admin/includes/file.php
@@ -326,7 +326,7 @@ function wp_print_file_editor_templates() {
printf(
/* translators: %s: Documentation URL. */
__( 'You need to make this file writable before you can save your changes. See <a href="%s">Changing File Permissions</a> for more information.' ),
- __( 'https://wordpress.org/documentation/article/changing-file-permissions/' )
+ __( 'https://developer.wordpress.org/advanced-administration/server/file-permissions/' )
);
?>
</p>
@@ -1089,7 +1089,7 @@ function _wp_handle_upload( &$file, $overrides, $time, $action ) {
* @param array|false $overrides Optional. An associative array of names => values
* to override default variables. Default false.
* See _wp_handle_upload() for accepted values.
- * @param string $time Optional. Time formatted in 'yyyy/mm'. Default null.
+ * @param string|null $time Optional. Time formatted in 'yyyy/mm'. Default null.
* @return array See _wp_handle_upload() for return value.
*/
function wp_handle_upload( &$file, $overrides = false, $time = null ) {
@@ -1120,7 +1120,7 @@ function wp_handle_upload( &$file, $overrides = false, $time = null ) {
* @param array|false $overrides Optional. An associative array of names => values
* to override default variables. Default false.
* See _wp_handle_upload() for accepted values.
- * @param string $time Optional. Time formatted in 'yyyy/mm'. Default null.
+ * @param string|null $time Optional. Time formatted in 'yyyy/mm'. Default null.
* @return array See _wp_handle_upload() for return value.
*/
function wp_handle_sideload( &$file, $overrides = false, $time = null ) {
@@ -1155,7 +1155,7 @@ function wp_handle_sideload( &$file, $overrides = false, $time = null ) {
function download_url( $url, $timeout = 300, $signature_verification = false ) {
// WARNING: The file is not automatically deleted, the script must delete or move the file.
if ( ! $url ) {
- return new WP_Error( 'http_no_url', __( 'Invalid URL Provided.' ) );
+ return new WP_Error( 'http_no_url', __( 'No URL Provided.' ) );
}
$url_path = parse_url( $url, PHP_URL_PATH );
@@ -2249,7 +2249,7 @@ function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_own
* The return value can be overridden by defining the `FS_METHOD` constant in `wp-config.php`,
* or filtering via {@see 'filesystem_method'}.
*
- * @link https://wordpress.org/documentation/article/editing-wp-config-php/#wordpress-upgrade-constants
+ * @link https://developer.wordpress.org/advanced-administration/wordpress/wp-config/#wordpress-upgrade-constants
*
* Plugins may define a custom transport handler, See WP_Filesystem().
*
@@ -2664,7 +2664,7 @@ function request_filesystem_credentials( $form_post, $type = '', $error = false,
<p class="request-filesystem-credentials-action-buttons">
<?php wp_nonce_field( 'filesystem-credentials', '_fs_nonce', false, true ); ?>
<button class="button cancel-button" data-js-action="close" type="button"><?php _e( 'Cancel' ); ?></button>
- <?php submit_button( __( 'Proceed' ), '', 'upgrade', false ); ?>
+ <?php submit_button( __( 'Proceed' ), 'primary', 'upgrade', false ); ?>
</p>
</div>
</form>
@@ -2795,7 +2795,7 @@ function wp_opcache_invalidate_directory( $dir ) {
__( '%s expects a non-empty string.' ),
'<code>wp_opcache_invalidate_directory()</code>'
);
- trigger_error( $error_message );
+ wp_trigger_error( '', $error_message );
}
return;
}
diff --git a/wp-admin/includes/image-edit.php b/wp-admin/includes/image-edit.php
index 2d150e6..d3a4147 100644
--- a/wp-admin/includes/image-edit.php
+++ b/wp-admin/includes/image-edit.php
@@ -159,8 +159,8 @@ function wp_image_editor( $post_id, $msg = false ) {
<label for="imgedit-scale-height-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'scale height' ); ?></label>
<input type="number" step="1" min="0" max="<?php echo isset( $meta['height'] ) ? $meta['height'] : ''; ?>" aria-describedby="imgedit-scale-warn-<?php echo $post_id; ?>" id="imgedit-scale-height-<?php echo $post_id; ?>" onkeyup="imageEdit.scaleChanged(<?php echo $post_id; ?>, 0, this)" onblur="imageEdit.scaleChanged(<?php echo $post_id; ?>, 0, this)" value="<?php echo isset( $meta['height'] ) ? $meta['height'] : 0; ?>" />
<button id="imgedit-scale-button" type="button" onclick="imageEdit.action(<?php echo "$post_id, '$nonce'"; ?>, 'scale')" class="button button-primary"><?php esc_html_e( 'Scale' ); ?></button>
- <span class="imgedit-scale-warn" id="imgedit-scale-warn-<?php echo $post_id; ?>"><span class="dashicons dashicons-warning" aria-hidden="true"></span><?php esc_html_e( 'Images cannot be scaled to a size larger than the original.' ); ?></span>
</div>
+ <span class="imgedit-scale-warn" id="imgedit-scale-warn-<?php echo $post_id; ?>"><span class="dashicons dashicons-warning" aria-hidden="true"></span><?php esc_html_e( 'Images cannot be scaled to a size larger than the original.' ); ?></span>
</fieldset>
</div>
</div>
@@ -736,7 +736,7 @@ function image_edit_apply_changes( $image, $changes ) {
$h = $size['height'];
$scale = 1 / _image_get_preview_ratio( $w, $h ); // Discard preview scaling.
- $image->crop( $sel->x * $scale, $sel->y * $scale, $sel->w * $scale, $sel->h * $scale );
+ $image->crop( (int) ( $sel->x * $scale ), (int) ( $sel->y * $scale ), (int) ( $sel->w * $scale ), (int) ( $sel->h * $scale ) );
} else {
$scale = 1 / _image_get_preview_ratio( imagesx( $image ), imagesy( $image ) ); // Discard preview scaling.
$image = _crop_image_resource( $image, $sel->x * $scale, $sel->y * $scale, $sel->w * $scale, $sel->h * $scale );
diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php
index 3de25dc..6ec4b66 100644
--- a/wp-admin/includes/media.php
+++ b/wp-admin/includes/media.php
@@ -1664,7 +1664,8 @@ function get_media_item( $attachment_id, $args = null ) {
$meta = wp_get_attachment_metadata( $post->ID );
if ( isset( $meta['width'], $meta['height'] ) ) {
- $media_dims .= "<span id='media-dims-$post->ID'>{$meta['width']}&nbsp;&times;&nbsp;{$meta['height']}</span> ";
+ /* translators: 1: A number of pixels wide, 2: A number of pixels tall. */
+ $media_dims .= "<span id='media-dims-$post->ID'>" . sprintf( __( '%1$s by %2$s pixels' ), $meta['width'], $meta['height'] ) . '</span>';
}
/**
@@ -3240,7 +3241,8 @@ function edit_form_image_editor( $post ) {
printf(
/* translators: 1: Link to tutorial, 2: Additional link attributes, 3: Accessibility text. */
__( '<a href="%1$s" %2$s>Learn how to describe the purpose of the image%3$s</a>. Leave empty if the image is purely decorative.' ),
- esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ),
+ /* translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations. */
+ esc_url( __( 'https://www.w3.org/WAI/tutorials/images/decision-tree/' ) ),
'target="_blank" rel="noopener"',
sprintf(
'<span class="screen-reader-text"> %s</span>',
@@ -3265,7 +3267,14 @@ function edit_form_image_editor( $post ) {
'textarea_name' => 'content',
'textarea_rows' => 5,
'media_buttons' => false,
- 'tinymce' => false,
+ /**
+ * Filters the TinyMCE argument for the media description field on the attachment details screen.
+ *
+ * @since 6.6.0
+ *
+ * @param bool $tinymce Whether to activate TinyMCE in media description field. Default false.
+ */
+ 'tinymce' => apply_filters( 'activate_tinymce_for_media_description', false ),
'quicktags' => $quicktags_settings,
);
@@ -3306,7 +3315,8 @@ function attachment_submitbox_metadata() {
$meta = wp_get_attachment_metadata( $attachment_id );
if ( isset( $meta['width'], $meta['height'] ) ) {
- $media_dims .= "<span id='media-dims-$attachment_id'>{$meta['width']}&nbsp;&times;&nbsp;{$meta['height']}</span> ";
+ /* translators: 1: A number of pixels wide, 2: A number of pixels tall. */
+ $media_dims .= "<span id='media-dims-$attachment_id'>" . sprintf( __( '%1$s by %2$s pixels' ), $meta['width'], $meta['height'] ) . '</span>';
}
/** This filter is documented in wp-admin/includes/media.php */
$media_dims = apply_filters( 'media_meta', $media_dims, $post );
@@ -3441,6 +3451,9 @@ function attachment_submitbox_metadata() {
echo ' ' . strtoupper( esc_html( $meta['bitrate_mode'] ) );
}
break;
+ case 'length_formatted':
+ echo human_readable_duration( $meta['length_formatted'] );
+ break;
default:
echo esc_html( $meta[ $key ] );
break;
diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php
index 387910e..43e3344 100644
--- a/wp-admin/includes/meta-boxes.php
+++ b/wp-admin/includes/meta-boxes.php
@@ -1354,7 +1354,7 @@ function link_xfn_meta_box( $link ) {
<input class="valinp" type="radio" name="friendship" value="friend" id="friend" <?php xfn_check( 'friendship', 'friend' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'friend' ); ?>
</label>
<label for="friendship">
- <input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check( 'friendship' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'none' ); ?>
+ <input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check( 'friendship' ); ?> />&nbsp;<?php /* translators: xfn (friendship relation): http://gmpg.org/xfn/ */ _x( 'none', 'Type of relation' ); ?>
</label>
</fieldset></td>
</tr>
@@ -1405,7 +1405,7 @@ function link_xfn_meta_box( $link ) {
<input class="valinp" type="radio" name="geographical" value="neighbor" id="neighbor" <?php xfn_check( 'geographical', 'neighbor' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'neighbor' ); ?>
</label>
<label for="geographical">
- <input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check( 'geographical' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'none' ); ?>
+ <input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check( 'geographical' ); ?> />&nbsp;<?php /* translators: xfn (geographical relation): http://gmpg.org/xfn/ */ _x( 'none', 'Type of relation' ); ?>
</label>
</fieldset></td>
</tr>
@@ -1434,7 +1434,7 @@ function link_xfn_meta_box( $link ) {
<input class="valinp" type="radio" name="family" value="spouse" id="spouse" <?php xfn_check( 'family', 'spouse' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'spouse' ); ?>
</label>
<label for="family">
- <input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check( 'family' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'none' ); ?>
+ <input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check( 'family' ); ?> />&nbsp;<?php /* translators: xfn (family relation): http://gmpg.org/xfn/ */ _x( 'none', 'Type of relation' ); ?>
</label>
</fieldset></td>
</tr>
@@ -1679,13 +1679,15 @@ function register_and_do_post_meta_boxes( $post ) {
add_meta_box( 'commentstatusdiv', __( 'Discussion' ), 'post_comment_status_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) );
}
- $stati = get_post_stati( array( 'public' => true ) );
- if ( empty( $stati ) ) {
- $stati = array( 'publish' );
+ $statuses = get_post_stati( array( 'public' => true ) );
+
+ if ( empty( $statuses ) ) {
+ $statuses = array( 'publish' );
}
- $stati[] = 'private';
- if ( in_array( get_post_status( $post ), $stati, true ) ) {
+ $statuses[] = 'private';
+
+ if ( in_array( get_post_status( $post ), $statuses, true ) ) {
/*
* If the post type support comments, or the post has comments,
* allow the Comments meta box.
diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php
index f950821..06fc294 100644
--- a/wp-admin/includes/misc.php
+++ b/wp-admin/includes/misc.php
@@ -556,7 +556,7 @@ function wp_print_plugin_file_tree( $tree, $label = '', $level = 2, $size = 1, $
}
/**
- * Flushes rewrite rules if siteurl, home or page_on_front changed.
+ * Flushes rewrite rules if `siteurl`, `home` or `page_on_front` changed.
*
* @since 2.1.0
*
@@ -575,13 +575,12 @@ function update_home_siteurl( $old_value, $value ) {
}
}
-
/**
- * Resets global variables based on $_GET and $_POST.
+ * Resets global variables based on `$_GET` and `$_POST`.
*
* This function resets global variables based on the names passed
- * in the $vars array to the value of $_POST[$var] or $_GET[$var] or ''
- * if neither is defined.
+ * in the `$vars` array to the value of `$_POST[$var]` or `$_GET[$var]` or an
+ * empty string if neither is defined.
*
* @since 2.0.0
*
@@ -755,7 +754,7 @@ function set_screen_options() {
/**
* Filters a screen option value before it is set.
*
- * The filter can also be used to modify non-standard [items]_per_page
+ * The filter can also be used to modify non-standard `[items]_per_page`
* settings. See the parent function for a full list of standard options.
*
* Returning false from the filter will skip saving the current option.
@@ -1305,7 +1304,7 @@ function wp_refresh_metabox_loader_nonces( $response, $data ) {
}
/**
- * Adds the latest Heartbeat and REST-API nonce to the Heartbeat response.
+ * Adds the latest Heartbeat and REST API nonce to the Heartbeat response.
*
* @since 5.0.0
*
@@ -1399,11 +1398,11 @@ function wp_admin_canonical_url() {
$filtered_url = remove_query_arg( $removable_query_args, $current_url );
/**
- * Filters the admin canonical url value.
+ * Filters the admin canonical URL value.
*
* @since 6.5.0
*
- * @param string $filtered_url The admin canonical url value.
+ * @param string $filtered_url The admin canonical URL value.
*/
$filtered_url = apply_filters( 'wp_admin_canonical_url', $filtered_url );
?>
@@ -1647,8 +1646,8 @@ function wp_check_php_version() {
$response['is_lower_than_future_minimum'] = false;
- // The minimum supported PHP version will be updated to 7.2. Check if the current version is lower.
- if ( version_compare( $version, '7.2', '<' ) ) {
+ // The minimum supported PHP version will be updated to 7.4 in the future. Check if the current version is lower.
+ if ( version_compare( $version, '7.4', '<' ) ) {
$response['is_lower_than_future_minimum'] = true;
// Force showing of warnings.
diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php
index 02ddf94..6814d11 100644
--- a/wp-admin/includes/ms.php
+++ b/wp-admin/includes/ms.php
@@ -1169,6 +1169,6 @@ function get_site_screen_help_tab_args() {
*/
function get_site_screen_help_sidebar_content() {
return '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
- '<p>' . __( '<a href="https://wordpress.org/documentation/article/network-admin-sites-screen/">Documentation on Site Management</a>' ) . '</p>' .
+ '<p>' . __( '<a href="https://developer.wordpress.org/advanced-administration/multisite/admin/#network-admin-sites-screen">Documentation on Site Management</a>' ) . '</p>' .
'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support forums</a>' ) . '</p>';
}
diff --git a/wp-admin/includes/nav-menu.php b/wp-admin/includes/nav-menu.php
index 8f18057..aa72117 100644
--- a/wp-admin/includes/nav-menu.php
+++ b/wp-admin/includes/nav-menu.php
@@ -204,7 +204,7 @@ function wp_nav_menu_setup() {
*
* @since 3.0.0
*
- * @global array $wp_meta_boxes
+ * @global array $wp_meta_boxes Global meta box state.
*/
function wp_initial_nav_menu_meta_boxes() {
global $wp_meta_boxes;
diff --git a/wp-admin/includes/network.php b/wp-admin/includes/network.php
index 6a85b6f..fb3d8d2 100644
--- a/wp-admin/includes/network.php
+++ b/wp-admin/includes/network.php
@@ -33,8 +33,9 @@ function network_domain_check() {
* @return bool Whether subdomain installation is allowed
*/
function allow_subdomain_install() {
- $domain = preg_replace( '|https?://([^/]+)|', '$1', get_option( 'home' ) );
- if ( parse_url( get_option( 'home' ), PHP_URL_PATH ) || 'localhost' === $domain || preg_match( '|^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$|', $domain ) ) {
+ $home = get_option( 'home' );
+ $domain = parse_url( $home, PHP_URL_HOST );
+ if ( parse_url( $home, PHP_URL_PATH ) || 'localhost' === $domain || preg_match( '|^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$|', $domain ) ) {
return false;
}
@@ -148,26 +149,8 @@ function network_step1( $errors = false ) {
die();
}
- $hostname = get_clean_basedomain();
- $has_ports = strstr( $hostname, ':' );
- if ( ( false !== $has_ports && ! in_array( $has_ports, array( ':80', ':443' ), true ) ) ) {
- wp_admin_notice(
- '<strong>' . __( 'Error:' ) . '</strong> ' . __( 'You cannot install a network of sites with your server address.' ),
- array(
- 'additional_classes' => array( 'error' ),
- )
- );
-
- echo '<p>' . sprintf(
- /* translators: %s: Port number. */
- __( 'You cannot use port numbers such as %s.' ),
- '<code>' . $has_ports . '</code>'
- ) . '</p>';
- echo '<a href="' . esc_url( admin_url() ) . '">' . __( 'Go to Dashboard' ) . '</a>';
- echo '</div>';
- require_once ABSPATH . 'wp-admin/admin-footer.php';
- die();
- }
+ // Strip standard port from hostname.
+ $hostname = preg_replace( '/(?::80|:443)$/', '', get_clean_basedomain() );
echo '<form method="post">';
@@ -694,7 +677,7 @@ define( 'BLOG_ID_CURRENT_SITE', 1 );
printf(
/* translators: %s: Documentation URL. */
__( 'It seems your network is running with Nginx web server. <a href="%s">Learn more about further configuration</a>.' ),
- __( 'https://wordpress.org/documentation/article/nginx/' )
+ __( 'https://developer.wordpress.org/advanced-administration/server/web-server/nginx/' )
);
echo '</p></li>';
diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php
index 704d81b..59537e2 100644
--- a/wp-admin/includes/plugin-install.php
+++ b/wp-admin/includes/plugin-install.php
@@ -174,7 +174,8 @@ function plugins_api( $action, $args = array() ) {
if ( $ssl && is_wp_error( $request ) ) {
if ( ! wp_is_json_request() ) {
- trigger_error(
+ wp_trigger_error(
+ __FUNCTION__,
sprintf(
/* translators: %s: Support forums URL. */
__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
@@ -320,6 +321,8 @@ function install_search_form( $deprecated = true ) {
?>
<form class="search-form search-plugins" method="get">
<input type="hidden" name="tab" value="search" />
+ <label for="search-plugins"><?php _e( 'Search Plugins' ); ?></label>
+ <input type="search" name="s" id="search-plugins" value="<?php echo esc_attr( $term ); ?>" class="wp-filter-search" />
<label class="screen-reader-text" for="typeselector">
<?php
/* translators: Hidden accessibility text. */
@@ -331,13 +334,6 @@ function install_search_form( $deprecated = true ) {
<option value="author"<?php selected( 'author', $type ); ?>><?php _e( 'Author' ); ?></option>
<option value="tag"<?php selected( 'tag', $type ); ?>><?php _ex( 'Tag', 'Plugin Installer' ); ?></option>
</select>
- <label class="screen-reader-text" for="search-plugins">
- <?php
- /* translators: Hidden accessibility text. */
- _e( 'Search Plugins' );
- ?>
- </label>
- <input type="search" name="s" id="search-plugins" value="<?php echo esc_attr( $term ); ?>" class="wp-filter-search" placeholder="<?php esc_attr_e( 'Search plugins...' ); ?>" />
<?php submit_button( __( 'Search Plugins' ), 'hide-if-js', false, false, array( 'id' => 'search-submit' ) ); ?>
</form>
<?php
@@ -953,7 +949,7 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
if ( $status['url'] ) {
if ( $compatible_php && $compatible_wp && $all_plugin_dependencies_installed && ! empty( $data->download_link ) ) {
$button = sprintf(
- '<a class="install-now button" data-slug="%s" href="%s" aria-label="%s" data-name="%s">%s</a>',
+ '<a class="install-now button" data-slug="%s" href="%s" aria-label="%s" data-name="%s" role="button">%s</a>',
esc_attr( $data->slug ),
esc_url( $status['url'] ),
/* translators: %s: Plugin name and version. */
@@ -974,7 +970,7 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
if ( $status['url'] ) {
if ( $compatible_php && $compatible_wp ) {
$button = sprintf(
- '<a class="update-now button aria-button-if-js" data-plugin="%s" data-slug="%s" href="%s" aria-label="%s" data-name="%s">%s</a>',
+ '<a class="update-now button aria-button-if-js" data-plugin="%s" data-slug="%s" href="%s" aria-label="%s" data-name="%s" role="button">%s</a>',
esc_attr( $status['file'] ),
esc_attr( $data->slug ),
esc_url( $status['url'] ),
@@ -1021,7 +1017,7 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
}
$button = sprintf(
- '<a href="%1$s" data-name="%2$s" data-slug="%3$s" data-plugin="%4$s" class="button button-primary activate-now" aria-label="%5$s">%6$s</a>',
+ '<a href="%1$s" data-name="%2$s" data-slug="%3$s" data-plugin="%4$s" class="button button-primary activate-now" aria-label="%5$s" role="button">%6$s</a>',
esc_url( $activate_url ),
esc_attr( $name ),
esc_attr( $data->slug ),
diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php
index bcae273..5b63855 100644
--- a/wp-admin/includes/plugin.php
+++ b/wp-admin/includes/plugin.php
@@ -319,10 +319,8 @@ function get_plugins( $plugin_folder = '' ) {
closedir( $plugins_subdir );
}
- } else {
- if ( str_ends_with( $file, '.php' ) ) {
- $plugin_files[] = $file;
- }
+ } elseif ( str_ends_with( $file, '.php' ) ) {
+ $plugin_files[] = $file;
}
}
@@ -2032,7 +2030,7 @@ function get_admin_page_parent( $parent_page = '' ) {
*
* @since 1.5.0
*
- * @global string $title
+ * @global string $title The title of the current screen.
* @global array $menu
* @global array $submenu
* @global string $pagenow The filename of the current screen.
diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php
index a313324..2102064 100644
--- a/wp-admin/includes/post.php
+++ b/wp-admin/includes/post.php
@@ -72,7 +72,7 @@ function _wp_translate_postdata( $update = false, $post_data = null ) {
}
}
- if ( isset( $post_data['user_ID'] ) && ( $post_data['post_author'] != $post_data['user_ID'] )
+ if ( isset( $post_data['user_ID'] ) && ( $post_data['post_author'] !== $post_data['user_ID'] )
&& ! current_user_can( $ptype->cap->edit_others_posts ) ) {
if ( $update ) {
@@ -165,7 +165,7 @@ function _wp_translate_postdata( $update = false, $post_data = null ) {
}
foreach ( array( 'aa', 'mm', 'jj', 'hh', 'mn' ) as $timeunit ) {
- if ( ! empty( $post_data[ 'hidden_' . $timeunit ] ) && $post_data[ 'hidden_' . $timeunit ] != $post_data[ $timeunit ] ) {
+ if ( ! empty( $post_data[ 'hidden_' . $timeunit ] ) && $post_data[ 'hidden_' . $timeunit ] !== $post_data[ $timeunit ] ) {
$post_data['edit_date'] = '1';
break;
}
@@ -375,7 +375,7 @@ function edit_post( $post_data = null ) {
continue;
}
- if ( $meta->post_id != $post_id ) {
+ if ( (int) $meta->post_id !== $post_id ) {
continue;
}
@@ -402,7 +402,7 @@ function edit_post( $post_data = null ) {
continue;
}
- if ( $meta->post_id != $post_id ) {
+ if ( (int) $meta->post_id !== $post_id ) {
continue;
}
@@ -516,7 +516,7 @@ function bulk_edit_posts( $post_data = null ) {
}
}
- if ( -1 == $post_data['_status'] ) {
+ if ( '-1' === $post_data['_status'] ) {
$post_data['post_status'] = null;
unset( $post_data['post_status'] );
} else {
@@ -550,7 +550,7 @@ function bulk_edit_posts( $post_data = null ) {
);
foreach ( $reset as $field ) {
- if ( isset( $post_data[ $field ] ) && ( '' === $post_data[ $field ] || -1 == $post_data[ $field ] ) ) {
+ if ( isset( $post_data[ $field ] ) && ( '' === $post_data[ $field ] || '-1' === $post_data[ $field ] ) ) {
unset( $post_data[ $field ] );
}
}
@@ -1084,7 +1084,7 @@ function get_post_meta_by_id( $mid ) {
*
* @global wpdb $wpdb WordPress database abstraction object.
*
- * @param int $postid A post ID.
+ * @param int $post_id A post ID.
* @return array[] {
* Array of meta data arrays for the given post ID.
*
@@ -1098,7 +1098,7 @@ function get_post_meta_by_id( $mid ) {
* }
* }
*/
-function has_meta( $postid ) {
+function has_meta( $post_id ) {
global $wpdb;
return $wpdb->get_results(
@@ -1106,7 +1106,7 @@ function has_meta( $postid ) {
"SELECT meta_key, meta_value, meta_id, post_id
FROM $wpdb->postmeta WHERE post_id = %d
ORDER BY meta_key,meta_id",
- $postid
+ $post_id
),
ARRAY_A
);
@@ -1139,7 +1139,7 @@ function update_meta( $meta_id, $meta_key, $meta_value ) {
* @since 2.3.0
* @access private
*
- * @param int|object $post Post ID or post object.
+ * @param int|WP_Post $post Post ID or post object.
* @return void|int|WP_Error Void if nothing fixed. 0 or WP_Error on update failure. The post ID on update success.
*/
function _fix_attachment_links( $post ) {
@@ -1199,9 +1199,9 @@ function _fix_attachment_links( $post ) {
* @return string[] An array of all the statuses for the supplied post type.
*/
function get_available_post_statuses( $type = 'post' ) {
- $stati = wp_count_posts( $type );
+ $statuses = wp_count_posts( $type );
- return array_keys( get_object_vars( $stati ) );
+ return array_keys( get_object_vars( $statuses ) );
}
/**
@@ -1217,9 +1217,11 @@ function wp_edit_posts_query( $q = false ) {
if ( false === $q ) {
$q = $_GET;
}
- $q['m'] = isset( $q['m'] ) ? (int) $q['m'] : 0;
- $q['cat'] = isset( $q['cat'] ) ? (int) $q['cat'] : 0;
- $post_stati = get_post_stati();
+
+ $q['m'] = isset( $q['m'] ) ? (int) $q['m'] : 0;
+ $q['cat'] = isset( $q['cat'] ) ? (int) $q['cat'] : 0;
+
+ $post_statuses = get_post_stati();
if ( isset( $q['post_type'] ) && in_array( $q['post_type'], get_post_types(), true ) ) {
$post_type = $q['post_type'];
@@ -1231,7 +1233,7 @@ function wp_edit_posts_query( $q = false ) {
$post_status = '';
$perm = '';
- if ( isset( $q['post_status'] ) && in_array( $q['post_status'], $post_stati, true ) ) {
+ if ( isset( $q['post_status'] ) && in_array( $q['post_status'], $post_statuses, true ) ) {
$post_status = $q['post_status'];
$perm = 'readable';
}
@@ -1402,7 +1404,7 @@ function wp_edit_attachments_query( $q = false ) {
* @return string Space-separated string of class names.
*/
function postbox_classes( $box_id, $screen_id ) {
- if ( isset( $_GET['edit'] ) && $_GET['edit'] == $box_id ) {
+ if ( isset( $_GET['edit'] ) && $_GET['edit'] === $box_id ) {
$classes = array( '' );
} elseif ( get_user_option( 'closedpostboxes_' . $screen_id ) ) {
$closed = get_user_option( 'closedpostboxes_' . $screen_id );
@@ -1461,7 +1463,7 @@ function get_sample_permalink( $post, $title = null, $name = null ) {
$original_filter = $post->filter;
// Hack: get_permalink() would return plain permalink for drafts, so we will fake that our post is published.
- if ( in_array( $post->post_status, array( 'draft', 'pending', 'future' ), true ) ) {
+ if ( in_array( $post->post_status, array( 'auto-draft', 'draft', 'pending', 'future' ), true ) ) {
$post->post_status = 'publish';
$post->post_name = sanitize_title( $post->post_name ? $post->post_name : $post->post_title, $post->ID );
}
@@ -1575,7 +1577,7 @@ function get_sample_permalink_html( $post, $new_title = null, $new_slug = null )
// Encourage a pretty permalink setting.
if ( ! get_option( 'permalink_structure' ) && current_user_can( 'manage_options' )
- && ! ( 'page' === get_option( 'show_on_front' ) && get_option( 'page_on_front' ) == $post->ID )
+ && ! ( 'page' === get_option( 'show_on_front' ) && (int) get_option( 'page_on_front' ) === $post->ID )
) {
$return .= '<span id="change-permalinks"><a href="options-permalink.php" class="button button-small">' . __( 'Change Permalink Structure' ) . "</a></span>\n";
}
@@ -1711,7 +1713,7 @@ function wp_check_post_lock( $post ) {
$lock = explode( ':', $lock );
$time = $lock[0];
- $user = isset( $lock[1] ) ? $lock[1] : get_post_meta( $post->ID, '_edit_last', true );
+ $user = isset( $lock[1] ) ? (int) $lock[1] : (int) get_post_meta( $post->ID, '_edit_last', true );
if ( ! get_userdata( $user ) ) {
return false;
@@ -1720,7 +1722,7 @@ function wp_check_post_lock( $post ) {
/** This filter is documented in wp-admin/includes/ajax-actions.php */
$time_window = apply_filters( 'wp_check_post_lock_window', 150 );
- if ( $time && $time > time() - $time_window && get_current_user_id() != $user ) {
+ if ( $time && $time > time() - $time_window && get_current_user_id() !== $user ) {
return $user;
}
@@ -1750,7 +1752,7 @@ function wp_set_post_lock( $post ) {
$user_id = get_current_user_id();
- if ( 0 == $user_id ) {
+ if ( 0 === $user_id ) {
return false;
}
@@ -1827,7 +1829,7 @@ function _admin_notice_post_locked() {
if ( $locked ) {
$query_args = array();
if ( get_post_type_object( $post->post_type )->public ) {
- if ( 'publish' === $post->post_status || $user->ID != $post->post_author ) {
+ if ( 'publish' === $post->post_status || $user->ID !== (int) $post->post_author ) {
// Latest content is in autosave.
$nonce = wp_create_nonce( 'post_preview_' . $post->ID );
$query_args['preview_id'] = $post->ID;
@@ -2079,7 +2081,7 @@ function post_preview() {
$is_autosave = false;
- if ( ! wp_check_post_lock( $post->ID ) && get_current_user_id() == $post->post_author
+ if ( ! wp_check_post_lock( $post->ID ) && get_current_user_id() === (int) $post->post_author
&& ( 'draft' === $post->post_status || 'auto-draft' === $post->post_status )
) {
$saved_post_id = edit_post();
@@ -2154,7 +2156,7 @@ function wp_autosave( $post_data ) {
$post_data['post_category'] = explode( ',', $post_data['catslist'] );
}
- if ( ! wp_check_post_lock( $post->ID ) && get_current_user_id() == $post->post_author
+ if ( ! wp_check_post_lock( $post->ID ) && get_current_user_id() === (int) $post->post_author
&& ( 'auto-draft' === $post->post_status || 'draft' === $post->post_status )
) {
// Drafts and auto-drafts are just overwritten by autosave for the same user if the post is not locked.
@@ -2179,19 +2181,19 @@ function redirect_post( $post_id = '' ) {
if ( isset( $_POST['save'] ) || isset( $_POST['publish'] ) ) {
$status = get_post_status( $post_id );
- if ( isset( $_POST['publish'] ) ) {
- switch ( $status ) {
- case 'pending':
- $message = 8;
- break;
- case 'future':
- $message = 9;
- break;
- default:
- $message = 6;
- }
- } else {
- $message = 'draft' === $status ? 10 : 1;
+ switch ( $status ) {
+ case 'pending':
+ $message = 8;
+ break;
+ case 'future':
+ $message = 9;
+ break;
+ case 'draft':
+ $message = 10;
+ break;
+ default:
+ $message = isset( $_POST['publish'] ) ? 6 : 1;
+ break;
}
$location = add_query_arg( 'message', $message, get_edit_post_link( $post_id, 'url' ) );
@@ -2343,7 +2345,7 @@ function get_block_editor_server_block_settings() {
*
* @global WP_Post $post Global post object.
* @global WP_Screen $current_screen WordPress current screen object.
- * @global array $wp_meta_boxes
+ * @global array $wp_meta_boxes Global meta box state.
*/
function the_block_editor_meta_boxes() {
global $post, $current_screen, $wp_meta_boxes;
@@ -2406,7 +2408,7 @@ function the_block_editor_meta_boxes() {
$meta_boxes = (array) $wp_meta_boxes[ $current_screen->id ][ $location ][ $priority ];
foreach ( $meta_boxes as $meta_box ) {
- if ( false == $meta_box || ! $meta_box['title'] ) {
+ if ( false === $meta_box || ! $meta_box['title'] ) {
continue;
}
diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php
index 63655cc..33e90a9 100644
--- a/wp-admin/includes/schema.php
+++ b/wp-admin/includes/schema.php
@@ -594,9 +594,9 @@ function populate_options( array $options = array() ) {
}
if ( in_array( $option, $fat_options, true ) ) {
- $autoload = 'no';
+ $autoload = 'off';
} else {
- $autoload = 'yes';
+ $autoload = 'on';
}
if ( ! empty( $insert ) ) {
@@ -1243,39 +1243,13 @@ We hope you enjoy your new site. Thanks!
--The Team @ SITE_NAME'
);
- $misc_exts = array(
- // Images.
- 'jpg',
- 'jpeg',
- 'png',
- 'gif',
- 'webp',
- 'avif',
- // Video.
- 'mov',
- 'avi',
- 'mpg',
- '3gp',
- '3g2',
- // "audio".
- 'midi',
- 'mid',
- // Miscellaneous.
- 'pdf',
- 'doc',
- 'ppt',
- 'odt',
- 'pptx',
- 'docx',
- 'pps',
- 'ppsx',
- 'xls',
- 'xlsx',
- 'key',
- );
- $audio_exts = wp_get_audio_extensions();
- $video_exts = wp_get_video_extensions();
- $upload_filetypes = array_unique( array_merge( $misc_exts, $audio_exts, $video_exts ) );
+ $allowed_file_types = array();
+ $all_mime_types = get_allowed_mime_types();
+
+ foreach ( $all_mime_types as $ext => $mime ) {
+ array_push( $allowed_file_types, ...explode( '|', $ext ) );
+ }
+ $upload_filetypes = array_unique( $allowed_file_types );
$sitemeta = array(
'site_name' => __( 'My Network' ),
diff --git a/wp-admin/includes/screen.php b/wp-admin/includes/screen.php
index bf5aefc..a3a41a6 100644
--- a/wp-admin/includes/screen.php
+++ b/wp-admin/includes/screen.php
@@ -89,7 +89,7 @@ function get_hidden_columns( $screen ) {
*
* @since 2.7.0
*
- * @global array $wp_meta_boxes
+ * @global array $wp_meta_boxes Global meta box state.
*
* @param WP_Screen $screen
*/
diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
index 90b375e..f78acff 100644
--- a/wp-admin/includes/template.php
+++ b/wp-admin/includes/template.php
@@ -1050,7 +1050,7 @@ function wp_import_upload_form( $action ) {
* @since 2.5.0
* @since 4.4.0 The `$screen` parameter now accepts an array of screen IDs.
*
- * @global array $wp_meta_boxes
+ * @global array $wp_meta_boxes Global meta box state.
*
* @param string $id Meta box ID (used in the 'id' attribute for the meta box).
* @param string $title Title of the meta box.
@@ -1287,7 +1287,7 @@ function _get_plugin_from_callback( $callback ) {
*
* @since 2.5.0
*
- * @global array $wp_meta_boxes
+ * @global array $wp_meta_boxes Global meta box state.
*
* @param string|WP_Screen $screen The screen identifier. If you have used add_menu_page() or
* add_submenu_page() to create a new screen (and hence screen_id)
@@ -1472,7 +1472,7 @@ function do_meta_boxes( $screen, $context, $data_object ) {
* @since 2.6.0
* @since 4.4.0 The `$screen` parameter now accepts an array of screen IDs.
*
- * @global array $wp_meta_boxes
+ * @global array $wp_meta_boxes Global meta box state.
*
* @param string $id Meta box ID (used in the 'id' attribute for the meta box).
* @param string|array|WP_Screen $screen The screen or screens on which the meta box is shown (such as a
diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php
index 36dc28b..64ef380 100644
--- a/wp-admin/includes/theme.php
+++ b/wp-admin/includes/theme.php
@@ -568,7 +568,8 @@ function themes_api( $action, $args = array() ) {
if ( $ssl && is_wp_error( $request ) ) {
if ( ! wp_doing_ajax() ) {
- trigger_error(
+ wp_trigger_error(
+ __FUNCTION__,
sprintf(
/* translators: %s: Support forums URL. */
__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
diff --git a/wp-admin/includes/translation-install.php b/wp-admin/includes/translation-install.php
index 01c61bb..ef9fcc6 100644
--- a/wp-admin/includes/translation-install.php
+++ b/wp-admin/includes/translation-install.php
@@ -59,7 +59,8 @@ function translations_api( $type, $args = null ) {
$request = wp_remote_post( $url, $options );
if ( $ssl && is_wp_error( $request ) ) {
- trigger_error(
+ wp_trigger_error(
+ __FUNCTION__,
sprintf(
/* translators: %s: Support forums URL. */
__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
diff --git a/wp-admin/includes/update-core.php b/wp-admin/includes/update-core.php
index fd00326..9b6ece8 100644
--- a/wp-admin/includes/update-core.php
+++ b/wp-admin/includes/update-core.php
@@ -765,6 +765,11 @@ $_old_files = array(
'wp-admin/images/about-header-freedoms.svg',
'wp-admin/images/about-header-contribute.svg',
'wp-admin/images/about-header-background.svg',
+ // 6.6
+ 'wp-includes/blocks/block/editor.css',
+ 'wp-includes/blocks/block/editor.min.css',
+ 'wp-includes/blocks/block/editor-rtl.css',
+ 'wp-includes/blocks/block/editor-rtl.min.css',
);
/**
diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php
index ba27ddd..312289f 100644
--- a/wp-admin/includes/update.php
+++ b/wp-admin/includes/update.php
@@ -145,7 +145,8 @@ function get_core_checksums( $version, $locale ) {
$response = wp_remote_get( $url, $options );
if ( $ssl && is_wp_error( $response ) ) {
- trigger_error(
+ wp_trigger_error(
+ __FUNCTION__,
sprintf(
/* translators: %s: Support forums URL. */
__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
@@ -923,48 +924,14 @@ function wp_print_admin_notice_templates() {
<div <# if ( data.id ) { #>id="{{ data.id }}"<# } #> class="notice {{ data.className }}"><p>{{{ data.message }}}</p></div>
</script>
<script id="tmpl-wp-bulk-updates-admin-notice" type="text/html">
- <div id="{{ data.id }}" class="{{ data.className }} notice <# if ( data.errors ) { #>notice-error<# } else { #>notice-success<# } #>">
+ <div id="{{ data.id }}" class="{{ data.className }} notice <# if ( data.errorMessage ) { #>notice-error<# } else { #>notice-success<# } #>">
<p>
- <# if ( data.successes ) { #>
- <# if ( 1 === data.successes ) { #>
- <# if ( 'plugin' === data.type ) { #>
- <?php
- /* translators: %s: Number of plugins. */
- printf( __( '%s plugin successfully updated.' ), '{{ data.successes }}' );
- ?>
- <# } else { #>
- <?php
- /* translators: %s: Number of themes. */
- printf( __( '%s theme successfully updated.' ), '{{ data.successes }}' );
- ?>
- <# } #>
- <# } else { #>
- <# if ( 'plugin' === data.type ) { #>
- <?php
- /* translators: %s: Number of plugins. */
- printf( __( '%s plugins successfully updated.' ), '{{ data.successes }}' );
- ?>
- <# } else { #>
- <?php
- /* translators: %s: Number of themes. */
- printf( __( '%s themes successfully updated.' ), '{{ data.successes }}' );
- ?>
- <# } #>
- <# } #>
+ <# if ( data.successMessage ) { #>
+ {{{ data.successMessage }}}
<# } #>
- <# if ( data.errors ) { #>
+ <# if ( data.errorMessage ) { #>
<button class="button-link bulk-action-errors-collapsed" aria-expanded="false">
- <# if ( 1 === data.errors ) { #>
- <?php
- /* translators: %s: Number of failed updates. */
- printf( __( '%s update failed.' ), '{{ data.errors }}' );
- ?>
- <# } else { #>
- <?php
- /* translators: %s: Number of failed updates. */
- printf( __( '%s updates failed.' ), '{{ data.errors }}' );
- ?>
- <# } #>
+ {{{ data.errorMessage }}}
<span class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
@@ -975,7 +942,7 @@ function wp_print_admin_notice_templates() {
</button>
<# } #>
</p>
- <# if ( data.errors ) { #>
+ <# if ( data.errorMessages ) { #>
<ul class="bulk-action-errors hidden">
<# _.each( data.errorMessages, function( errorMessage ) { #>
<li>{{ errorMessage }}</li>
diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php
index cb39391..715f5e2 100644
--- a/wp-admin/includes/upgrade.php
+++ b/wp-admin/includes/upgrade.php
@@ -52,6 +52,21 @@ if ( ! function_exists( 'wp_install' ) ) :
wp_check_mysql_version();
wp_cache_flush();
make_db_current_silent();
+
+ /*
+ * Ensure update checks are delayed after installation.
+ *
+ * This prevents users being presented with a maintenance mode screen
+ * immediately after installation.
+ */
+ wp_unschedule_hook( 'wp_version_check' );
+ wp_unschedule_hook( 'wp_update_plugins' );
+ wp_unschedule_hook( 'wp_update_themes' );
+
+ wp_schedule_event( time() + HOUR_IN_SECONDS, 'twicedaily', 'wp_version_check' );
+ wp_schedule_event( time() + ( 1.5 * HOUR_IN_SECONDS ), 'twicedaily', 'wp_update_plugins' );
+ wp_schedule_event( time() + ( 2 * HOUR_IN_SECONDS ), 'twicedaily', 'wp_update_themes' );
+
populate_options();
populate_roles();
@@ -147,7 +162,7 @@ if ( ! function_exists( 'wp_install_defaults' ) ) :
*
* @global wpdb $wpdb WordPress database abstraction object.
* @global WP_Rewrite $wp_rewrite WordPress rewrite component.
- * @global string $table_prefix
+ * @global string $table_prefix The database table prefix.
*
* @param int $user_id User ID.
*/
diff --git a/wp-admin/js/common.js b/wp-admin/js/common.js
index af6cedc..b2d8b56 100644
--- a/wp-admin/js/common.js
+++ b/wp-admin/js/common.js
@@ -903,27 +903,6 @@ $( function() {
});
/**
- * Handles the `aria-haspopup` attribute on the current menu item when it has a submenu.
- *
- * @since 4.4.0
- *
- * @return {void}
- */
- function currentMenuItemHasPopup() {
- var $current = $( 'a.wp-has-current-submenu' );
-
- if ( 'folded' === menuState ) {
- // When folded or auto-folded and not responsive view, the current menu item does have a fly-out sub-menu.
- $current.attr( 'aria-haspopup', 'true' );
- } else {
- // When expanded or in responsive view, reset aria-haspopup.
- $current.attr( 'aria-haspopup', 'false' );
- }
- }
-
- $document.on( 'wp-menu-state-set wp-collapse-menu wp-responsive-activate wp-responsive-deactivate', currentMenuItemHasPopup );
-
- /**
* Ensures an admin submenu is within the visual viewport.
*
* @since 4.1.0
@@ -1169,7 +1148,7 @@ $( function() {
lastClicked = this;
// Toggle the "Select all" checkboxes depending if the other ones are all checked or not.
- var unchecked = $(this).closest('tbody').find('tr.iedit').find(':checkbox').filter(':visible:enabled').not(':checked');
+ var unchecked = $(this).closest('tbody').find('tr').find(':checkbox').filter(':visible:enabled').not(':checked');
/**
* Determines if all checkboxes are checked.
@@ -1695,8 +1674,10 @@ $( function() {
// Modify functionality based on custom activate/deactivate event.
$document.on( 'wp-responsive-activate.wp-responsive', function() {
self.activate();
+ self.toggleAriaHasPopup( 'add' );
}).on( 'wp-responsive-deactivate.wp-responsive', function() {
self.deactivate();
+ self.toggleAriaHasPopup( 'remove' );
});
$( '#wp-admin-bar-menu-toggle a' ).attr( 'aria-expanded', 'false' );
@@ -1748,7 +1729,7 @@ $( function() {
setTimeout( function() {
var focusIsInToggle = $.contains( toggleButton, focusedElement );
var focusIsInSidebar = $.contains( sidebar, focusedElement );
-
+
if ( ! focusIsInToggle && ! focusIsInSidebar ) {
$( toggleButton ).trigger( 'click.wp-responsive' );
}
@@ -1762,8 +1743,9 @@ $( function() {
if ( ! $adminmenu.data('wp-responsive') ) {
return;
}
-
+ let state = ( 'false' === $( this ).attr( 'aria-expanded' ) ) ? 'true' : 'false';
$( this ).parent( 'li' ).toggleClass( 'selected' );
+ $( this ).attr( 'aria-expanded', state );
$( this ).trigger( 'focus' );
event.preventDefault();
});
@@ -1838,6 +1820,34 @@ $( function() {
},
/**
+ * Toggles the aria-haspopup attribute for the responsive admin menu.
+ *
+ * The aria-haspopup attribute is only necessary for the responsive menu.
+ * See ticket https://core.trac.wordpress.org/ticket/43095
+ *
+ * @since 6.6.0
+ *
+ * @param {string} action Whether to add or remove the aria-haspopup attribute.
+ *
+ * @return {void}
+ */
+ toggleAriaHasPopup: function( action ) {
+ var elements = $adminmenu.find( '[data-ariahaspopup]' );
+
+ if ( action === 'add' ) {
+ elements.each( function() {
+ $( this ).attr( 'aria-haspopup', 'menu' ).attr( 'aria-expanded', 'false' );
+ } );
+
+ return;
+ }
+
+ elements.each( function() {
+ $( this ).removeAttr( 'aria-haspopup' ).removeAttr( 'aria-expanded' );
+ } );
+ },
+
+ /**
* Sets the responsiveness and enables the overlay based on the viewport width.
*
* @since 3.8.0
@@ -2034,7 +2044,6 @@ $( function() {
window.wpResponsive.init();
setPinMenu();
setMenuState();
- currentMenuItemHasPopup();
makeNoticesDismissible();
aria_button_if_js();
diff --git a/wp-admin/js/common.min.js b/wp-admin/js/common.min.js
index c994b69..e20ff95 100644
--- a/wp-admin/js/common.min.js
+++ b/wp-admin/js/common.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-!function(W,$){var Q=W(document),V=W($),q=W(document.body),H=wp.i18n.__,i=wp.i18n.sprintf;function r(e,t,n){n=void 0!==n?i(H("%1$s is deprecated since version %2$s! Use %3$s instead."),e,t,n):i(H("%1$s is deprecated since version %2$s with no alternative available."),e,t);$.console.warn(n)}function e(i,o,a){var s={};return Object.keys(o).forEach(function(e){var t=o[e],n=i+"."+e;"object"==typeof t?Object.defineProperty(s,e,{get:function(){return r(n,a,t.alternative),t.func()}}):Object.defineProperty(s,e,{get:function(){return r(n,a,"wp.i18n"),t}})}),s}$.wp.deprecateL10nObject=e,$.commonL10n=$.commonL10n||{warnDelete:"",dismiss:"",collapseMenu:"",expandMenu:""},$.commonL10n=e("commonL10n",$.commonL10n,"5.5.0"),$.wpPointerL10n=$.wpPointerL10n||{dismiss:""},$.wpPointerL10n=e("wpPointerL10n",$.wpPointerL10n,"5.5.0"),$.userProfileL10n=$.userProfileL10n||{warn:"",warnWeak:"",show:"",hide:"",cancel:"",ariaShow:"",ariaHide:""},$.userProfileL10n=e("userProfileL10n",$.userProfileL10n,"5.5.0"),$.privacyToolsL10n=$.privacyToolsL10n||{noDataFound:"",foundAndRemoved:"",noneRemoved:"",someNotRemoved:"",removalError:"",emailSent:"",noExportFile:"",exportError:""},$.privacyToolsL10n=e("privacyToolsL10n",$.privacyToolsL10n,"5.5.0"),$.authcheckL10n={beforeunload:""},$.authcheckL10n=$.authcheckL10n||e("authcheckL10n",$.authcheckL10n,"5.5.0"),$.tagsl10n={noPerm:"",broken:""},$.tagsl10n=$.tagsl10n||e("tagsl10n",$.tagsl10n,"5.5.0"),$.adminCommentsL10n=$.adminCommentsL10n||{hotkeys_highlight_first:{alternative:"window.adminCommentsSettings.hotkeys_highlight_first",func:function(){return $.adminCommentsSettings.hotkeys_highlight_first}},hotkeys_highlight_last:{alternative:"window.adminCommentsSettings.hotkeys_highlight_last",func:function(){return $.adminCommentsSettings.hotkeys_highlight_last}},replyApprove:"",reply:"",warnQuickEdit:"",warnCommentChanges:"",docTitleComments:"",docTitleCommentsCount:""},$.adminCommentsL10n=e("adminCommentsL10n",$.adminCommentsL10n,"5.5.0"),$.tagsSuggestL10n=$.tagsSuggestL10n||{tagDelimiter:"",removeTerm:"",termSelected:"",termAdded:"",termRemoved:""},$.tagsSuggestL10n=e("tagsSuggestL10n",$.tagsSuggestL10n,"5.5.0"),$.wpColorPickerL10n=$.wpColorPickerL10n||{clear:"",clearAriaLabel:"",defaultString:"",defaultAriaLabel:"",pick:"",defaultLabel:""},$.wpColorPickerL10n=e("wpColorPickerL10n",$.wpColorPickerL10n,"5.5.0"),$.attachMediaBoxL10n=$.attachMediaBoxL10n||{error:""},$.attachMediaBoxL10n=e("attachMediaBoxL10n",$.attachMediaBoxL10n,"5.5.0"),$.postL10n=$.postL10n||{ok:"",cancel:"",publishOn:"",publishOnFuture:"",publishOnPast:"",dateFormat:"",showcomm:"",endcomm:"",publish:"",schedule:"",update:"",savePending:"",saveDraft:"",private:"",public:"",publicSticky:"",password:"",privatelyPublished:"",published:"",saveAlert:"",savingText:"",permalinkSaved:""},$.postL10n=e("postL10n",$.postL10n,"5.5.0"),$.inlineEditL10n=$.inlineEditL10n||{error:"",ntdeltitle:"",notitle:"",comma:"",saved:""},$.inlineEditL10n=e("inlineEditL10n",$.inlineEditL10n,"5.5.0"),$.plugininstallL10n=$.plugininstallL10n||{plugin_information:"",plugin_modal_label:"",ays:""},$.plugininstallL10n=e("plugininstallL10n",$.plugininstallL10n,"5.5.0"),$.navMenuL10n=$.navMenuL10n||{noResultsFound:"",warnDeleteMenu:"",saveAlert:"",untitled:""},$.navMenuL10n=e("navMenuL10n",$.navMenuL10n,"5.5.0"),$.commentL10n=$.commentL10n||{submittedOn:"",dateFormat:""},$.commentL10n=e("commentL10n",$.commentL10n,"5.5.0"),$.setPostThumbnailL10n=$.setPostThumbnailL10n||{setThumbnail:"",saving:"",error:"",done:""},$.setPostThumbnailL10n=e("setPostThumbnailL10n",$.setPostThumbnailL10n,"5.5.0"),$.uiAutocompleteL10n=$.uiAutocompleteL10n||{noResults:"",oneResult:"",manyResults:"",itemSelected:""},$.uiAutocompleteL10n=e("uiAutocompleteL10n",$.uiAutocompleteL10n,"6.5.0"),$.adminMenu={init:function(){},fold:function(){},restoreMenuState:function(){},toggle:function(){},favorites:function(){}},$.columns={init:function(){var n=this;W(".hide-column-tog","#adv-settings").on("click",function(){var e=W(this),t=e.val();e.prop("checked")?n.checked(t):n.unchecked(t),columns.saveManageColumnsState()})},saveManageColumnsState:function(){var e=this.hidden();W.post(ajaxurl,{action:"hidden-columns",hidden:e,screenoptionnonce:W("#screenoptionnonce").val(),page:pagenow})},checked:function(e){W(".column-"+e).removeClass("hidden"),this.colSpanChange(1)},unchecked:function(e){W(".column-"+e).addClass("hidden"),this.colSpanChange(-1)},hidden:function(){return W(".manage-column[id]").filter(".hidden").map(function(){return this.id}).get().join(",")},useCheckboxesForHidden:function(){this.hidden=function(){return W(".hide-column-tog").not(":checked").map(function(){var e=this.id;return e.substring(e,e.length-5)}).get().join(",")}},colSpanChange:function(e){var t=W("table").find(".colspanchange");t.length&&(e=parseInt(t.attr("colspan"),10)+e,t.attr("colspan",e.toString()))}},W(function(){columns.init()}),$.validateForm=function(e){return!W(e).find(".form-required").filter(function(){return""===W(":input:visible",this).val()}).addClass("form-invalid").find(":input:visible").on("change",function(){W(this).closest(".form-invalid").removeClass("form-invalid")}).length},$.showNotice={warn:function(){return!!confirm(H("You are about to permanently delete these items from your site.\nThis action cannot be undone.\n'Cancel' to stop, 'OK' to delete."))},note:function(e){alert(e)}},$.screenMeta={element:null,toggles:null,page:null,init:function(){this.element=W("#screen-meta"),this.toggles=W("#screen-meta-links").find(".show-settings"),this.page=W("#wpcontent"),this.toggles.on("click",this.toggleEvent)},toggleEvent:function(){var e=W("#"+W(this).attr("aria-controls"));e.length&&(e.is(":visible")?screenMeta.close(e,W(this)):screenMeta.open(e,W(this)))},open:function(e,t){W("#screen-meta-links").find(".screen-meta-toggle").not(t.parent()).css("visibility","hidden"),e.parent().show(),e.slideDown("fast",function(){e.removeClass("hidden").trigger("focus"),t.addClass("screen-meta-active").attr("aria-expanded",!0)}),Q.trigger("screen:options:open")},close:function(e,t){e.slideUp("fast",function(){t.removeClass("screen-meta-active").attr("aria-expanded",!1),W(".screen-meta-toggle").css("visibility",""),e.parent().hide(),e.addClass("hidden")}),Q.trigger("screen:options:close")}},W(".contextual-help-tabs").on("click","a",function(e){var t=W(this);if(e.preventDefault(),t.is(".active a"))return!1;W(".contextual-help-tabs .active").removeClass("active"),t.parent("li").addClass("active"),e=W(t.attr("href")),W(".help-tab-content").not(e).removeClass("active").hide(),e.addClass("active").show()});var t,a=!1,s=W("#permalink_structure"),n=W(".permalink-structure input:radio"),l=W("#custom_selection"),o=W(".form-table.permalink-structure .available-structure-tags button");function c(e){-1!==s.val().indexOf(e.text().trim())?(e.attr("data-label",e.attr("aria-label")),e.attr("aria-label",e.attr("data-used")),e.attr("aria-pressed",!0),e.addClass("active")):e.attr("data-label")&&(e.attr("aria-label",e.attr("data-label")),e.attr("aria-pressed",!1),e.removeClass("active"))}function d(){Q.trigger("wp-window-resized")}n.on("change",function(){"custom"!==this.value&&(s.val(this.value),o.each(function(){c(W(this))}))}),s.on("click input",function(){l.prop("checked",!0)}),s.on("focus",function(e){a=!0,W(this).off(e)}),o.each(function(){c(W(this))}),s.on("change",function(){o.each(function(){c(W(this))})}),o.on("click",function(){var e=s.val(),t=s[0].selectionStart,n=s[0].selectionEnd,i=W(this).text().trim(),o=W(this).hasClass("active")?W(this).attr("data-removed"):W(this).attr("data-added");-1!==e.indexOf(i)?(e=e.replace(i+"/",""),s.val("/"===e?"":e),W("#custom_selection_updated").text(o),c(W(this))):(a||0!==t||0!==n||(t=n=e.length),l.prop("checked",!0),"/"!==e.substr(0,t).substr(-1)&&(i="/"+i),"/"!==e.substr(n,1)&&(i+="/"),s.val(e.substr(0,t)+i+e.substr(n)),W("#custom_selection_updated").text(o),c(W(this)),a&&s[0].setSelectionRange&&(n=(e.substr(0,t)+i).length,s[0].setSelectionRange(n,n),s.trigger("focus")))}),W(function(){var n,i,o,a,e,t,s,r,l,c,d=!1,u=W("input.current-page"),R=u.val(),p=/iPhone|iPad|iPod/.test(navigator.userAgent),z=-1!==navigator.userAgent.indexOf("Android"),m=W("#adminmenuwrap"),h=W("#wpwrap"),f=W("#adminmenu"),g=W("#wp-responsive-overlay"),v=W("#wp-toolbar"),b=v.find('a[aria-haspopup="true"]'),w=W(".meta-box-sortables"),k=!1,C=W("#wpadminbar"),y=0,L=!1,x=!1,S=0,A=!1,P={window:V.height(),wpwrap:h.height(),adminbar:C.height(),menu:m.height()},T=W(".wp-header-end");function M(){var e=W("a.wp-has-current-submenu");"folded"===s?e.attr("aria-haspopup","true"):e.attr("aria-haspopup","false")}function _(e){var t=e.find(".wp-submenu"),e=e.offset().top,n=V.scrollTop(),i=e-n-30,e=e+t.height()+1,o=60+e-h.height(),n=V.height()+n-50;1<(o=i<(o=n<e-o?e-n:o)?i:o)&&W("#wp-admin-bar-menu-toggle").is(":hidden")?t.css("margin-top","-"+o+"px"):t.css("margin-top","")}function D(){W(".notice.is-dismissible").each(function(){var t=W(this),e=W('<button type="button" class="notice-dismiss"><span class="screen-reader-text"></span></button>');t.find(".notice-dismiss").length||(e.find(".screen-reader-text").text(H("Dismiss this notice.")),e.on("click.wp-dismiss-notice",function(e){e.preventDefault(),t.fadeTo(100,0,function(){t.slideUp(100,function(){t.remove()})})}),t.append(e))})}function E(e,t,n,i){n.on("change",function(){e.val(W(this).val())}),e.on("change",function(){n.val(W(this).val())}),i.on("click",function(e){e.preventDefault(),e.stopPropagation(),t.trigger("click")})}function N(){r.prop("disabled",""===l.map(function(){return W(this).val()}).get().join(""))}function F(e){var t=V.scrollTop(),e=!e||"scroll"!==e.type;if(!p&&!f.data("wp-responsive"))if(P.menu+P.adminbar<P.window||P.menu+P.adminbar+20>P.wpwrap)j();else{if(A=!0,P.menu+P.adminbar>P.window){if(t<0)return void(L||(x=!(L=!0),m.css({position:"fixed",top:"",bottom:""})));if(t+P.window>Q.height()-1)return void(x||(L=!(x=!0),m.css({position:"fixed",top:"",bottom:0})));y<t?L?(L=!1,(S=m.offset().top-P.adminbar-(t-y))+P.menu+P.adminbar<t+P.window&&(S=t+P.window-P.menu-P.adminbar),m.css({position:"absolute",top:S,bottom:""})):!x&&m.offset().top+P.menu<t+P.window&&(x=!0,m.css({position:"fixed",top:"",bottom:0})):t<y?x?(x=!1,(S=m.offset().top-P.adminbar+(y-t))+P.menu>t+P.window&&(S=t),m.css({position:"absolute",top:S,bottom:""})):!L&&m.offset().top>=t+P.adminbar&&(L=!0,m.css({position:"fixed",top:"",bottom:""})):e&&(L=x=!1,0<(S=t+P.window-P.menu-P.adminbar-1)?m.css({position:"absolute",top:S,bottom:""}):j())}y=t}}function U(){P={window:V.height(),wpwrap:h.height(),adminbar:C.height(),menu:m.height()}}function j(){!p&&A&&(L=x=A=!1,m.css({position:"",top:"",bottom:""}))}function O(){U(),f.data("wp-responsive")?(q.removeClass("sticky-menu"),j()):P.menu+P.adminbar>P.window?(F(),q.removeClass("sticky-menu")):(q.addClass("sticky-menu"),j())}function K(){W(".aria-button-if-js").attr("role","button")}function I(){var e=!1;return e=$.innerWidth?Math.max($.innerWidth,document.documentElement.clientWidth):e}function B(){var e=I()||961;s=e<=782?"responsive":q.hasClass("folded")||q.hasClass("auto-fold")&&e<=960&&782<e?"folded":"open",Q.trigger("wp-menu-state-set",{state:s})}f.on("click.wp-submenu-head",".wp-submenu-head",function(e){W(e.target).parent().siblings("a").get(0).click()}),W("#collapse-button").on("click.collapse-menu",function(){var e=I()||961;W("#adminmenu div.wp-submenu").css("margin-top",""),s=e<=960?q.hasClass("auto-fold")?(q.removeClass("auto-fold").removeClass("folded"),setUserSetting("unfold",1),setUserSetting("mfold","o"),"open"):(q.addClass("auto-fold"),setUserSetting("unfold",0),"folded"):q.hasClass("folded")?(q.removeClass("folded"),setUserSetting("mfold","o"),"open"):(q.addClass("folded"),setUserSetting("mfold","f"),"folded"),Q.trigger("wp-collapse-menu",{state:s})}),Q.on("wp-menu-state-set wp-collapse-menu wp-responsive-activate wp-responsive-deactivate",M),("ontouchstart"in $||/IEMobile\/[1-9]/.test(navigator.userAgent))&&(q.on((c=p?"touchstart":"click")+".wp-mobile-hover",function(e){f.data("wp-responsive")||W(e.target).closest("#adminmenu").length||f.find("li.opensub").removeClass("opensub")}),f.find("a.wp-has-submenu").on(c+".wp-mobile-hover",function(e){var t=W(this).parent();f.data("wp-responsive")||t.hasClass("opensub")||t.hasClass("wp-menu-open")&&!(t.width()<40)||(e.preventDefault(),_(t),f.find("li.opensub").removeClass("opensub"),t.addClass("opensub"))})),p||z||(f.find("li.wp-has-submenu").hoverIntent({over:function(){var e=W(this),t=e.find(".wp-submenu"),t=parseInt(t.css("top"),10);isNaN(t)||-5<t||f.data("wp-responsive")||(_(e),f.find("li.opensub").removeClass("opensub"),e.addClass("opensub"))},out:function(){f.data("wp-responsive")||W(this).removeClass("opensub").find(".wp-submenu").css("margin-top","")},timeout:200,sensitivity:7,interval:90}),f.on("focus.adminmenu",".wp-submenu a",function(e){f.data("wp-responsive")||W(e.target).closest("li.menu-top").addClass("opensub")}).on("blur.adminmenu",".wp-submenu a",function(e){f.data("wp-responsive")||W(e.target).closest("li.menu-top").removeClass("opensub")}).find("li.wp-has-submenu.wp-not-current-submenu").on("focusin.adminmenu",function(){_(W(this))})),T.length||(T=W(".wrap h1, .wrap h2").first()),W("div.updated, div.error, div.notice").not(".inline, .below-h2").insertAfter(T),Q.on("wp-updates-notice-added wp-plugin-install-error wp-plugin-update-error wp-plugin-delete-error wp-theme-install-error wp-theme-delete-error",D),screenMeta.init(),q.on("click","tbody > tr > .check-column :checkbox",function(e){if("undefined"!=e.shiftKey){if(e.shiftKey){if(!d)return!0;n=W(d).closest("form").find(":checkbox").filter(":visible:enabled"),i=n.index(d),o=n.index(this),a=W(this).prop("checked"),0<i&&0<o&&i!=o&&(i<o?n.slice(i,o):n.slice(o,i)).prop("checked",function(){return!!W(this).closest("tr").is(":visible")&&a})}var t=W(d=this).closest("tbody").find("tr.iedit").find(":checkbox").filter(":visible:enabled").not(":checked");W(this).closest("table").children("thead, tfoot").find(":checkbox").prop("checked",function(){return 0===t.length})}return!0}),q.on("click.wp-toggle-checkboxes","thead .check-column :checkbox, tfoot .check-column :checkbox",function(e){var t=W(this),n=t.closest("table"),i=t.prop("checked"),o=e.shiftKey||t.data("wp-toggle");n.children("tbody").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){return!W(this).is(":hidden,:disabled")&&(o?!W(this).prop("checked"):!!i)}),n.children("thead, tfoot").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){return!o&&!!i})}),E(W("#bulk-action-selector-top"),W("#doaction"),W("#bulk-action-selector-bottom"),W("#doaction2")),E(W("#new_role"),W("#changeit"),W("#new_role2"),W("#changeit2")),W("#wpbody-content").on({focusin:function(){clearTimeout(e),t=W(this).find(".row-actions"),W(".row-actions").not(this).removeClass("visible"),t.addClass("visible")},focusout:function(){e=setTimeout(function(){t.removeClass("visible")},30)}},".table-view-list .has-row-actions"),W("tbody").on("click",".toggle-row",function(){W(this).closest("tr").toggleClass("is-expanded")}),W("#default-password-nag-no").on("click",function(){return setUserSetting("default_password_nag","hide"),W("div.default-password-nag").hide(),!1}),W("#newcontent").on("keydown.wpevent_InsertTab",function(e){var t,n,i,o,a=e.target;27==e.keyCode?(e.preventDefault(),W(a).data("tab-out",!0)):9!=e.keyCode||e.ctrlKey||e.altKey||e.shiftKey||(W(a).data("tab-out")?W(a).data("tab-out",!1):(t=a.selectionStart,n=a.selectionEnd,i=a.value,document.selection?(a.focus(),document.selection.createRange().text="\t"):0<=t&&(o=this.scrollTop,a.value=i.substring(0,t).concat("\t",i.substring(n)),a.selectionStart=a.selectionEnd=t+1,this.scrollTop=o),e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()))}),u.length&&u.closest("form").on("submit",function(){-1==W('select[name="action"]').val()&&u.val()==R&&u.val("1")}),W('.search-box input[type="search"], .search-box input[type="submit"]').on("mousedown",function(){W('select[name^="action"]').val("-1")}),W("#contextual-help-link, #show-settings-link").on("focus.scroll-into-view",function(e){e.target.scrollIntoViewIfNeeded&&e.target.scrollIntoViewIfNeeded(!1)}),(c=W("form.wp-upload-form")).length&&(r=c.find('input[type="submit"]'),l=c.find('input[type="file"]'),N(),l.on("change",N)),p||(V.on("scroll.pin-menu",F),Q.on("tinymce-editor-init.pin-menu",function(e,t){t.on("wp-autoresize",U)})),$.wpResponsive={init:function(){var e=this;this.maybeDisableSortables=this.maybeDisableSortables.bind(this),Q.on("wp-responsive-activate.wp-responsive",function(){e.activate()}).on("wp-responsive-deactivate.wp-responsive",function(){e.deactivate()}),W("#wp-admin-bar-menu-toggle a").attr("aria-expanded","false"),W("#wp-admin-bar-menu-toggle").on("click.wp-responsive",function(e){e.preventDefault(),C.find(".hover").removeClass("hover"),h.toggleClass("wp-responsive-open"),h.hasClass("wp-responsive-open")?(W(this).find("a").attr("aria-expanded","true"),W("#adminmenu a:first").trigger("focus")):W(this).find("a").attr("aria-expanded","false")}),W(document).on("click",function(e){var t;h.hasClass("wp-responsive-open")&&document.hasFocus()&&(t=W.contains(W("#wp-admin-bar-menu-toggle")[0],e.target),e=W.contains(W("#adminmenuwrap")[0],e.target),t||e||W("#wp-admin-bar-menu-toggle").trigger("click.wp-responsive"))}),W(document).on("keyup",function(e){var n,i,o=W("#wp-admin-bar-menu-toggle")[0];h.hasClass("wp-responsive-open")&&(27===e.keyCode?(W(o).trigger("click.wp-responsive"),W(o).find("a").trigger("focus")):9===e.keyCode&&(n=W("#adminmenuwrap")[0],i=e.relatedTarget||document.activeElement,setTimeout(function(){var e=W.contains(o,i),t=W.contains(n,i);e||t||W(o).trigger("click.wp-responsive")},10)))}),f.on("click.wp-responsive","li.wp-has-submenu > a",function(e){f.data("wp-responsive")&&(W(this).parent("li").toggleClass("selected"),W(this).trigger("focus"),e.preventDefault())}),e.trigger(),Q.on("wp-window-resized.wp-responsive",this.trigger.bind(this)),V.on("load.wp-responsive",this.maybeDisableSortables),Q.on("postbox-toggled",this.maybeDisableSortables),W("#screen-options-wrap input").on("click",this.maybeDisableSortables)},maybeDisableSortables:function(){(-1<navigator.userAgent.indexOf("AppleWebKit/")?V.width():$.innerWidth)<=782||w.find(".ui-sortable-handle:visible").length<=1&&jQuery(".columns-prefs-1 input").prop("checked")?this.disableSortables():this.enableSortables()},activate:function(){O(),q.hasClass("auto-fold")||q.addClass("auto-fold"),f.data("wp-responsive",1),this.disableSortables()},deactivate:function(){O(),f.removeData("wp-responsive"),this.maybeDisableSortables()},trigger:function(){var e=I();e&&(e<=782?k||(Q.trigger("wp-responsive-activate"),k=!0):k&&(Q.trigger("wp-responsive-deactivate"),k=!1),e<=480?this.enableOverlay():this.disableOverlay(),this.maybeDisableSortables())},enableOverlay:function(){0===g.length&&(g=W('<div id="wp-responsive-overlay"></div>').insertAfter("#wpcontent").hide().on("click.wp-responsive",function(){v.find(".menupop.hover").removeClass("hover"),W(this).hide()})),b.on("click.wp-responsive",function(){g.show()})},disableOverlay:function(){b.off("click.wp-responsive"),g.hide()},disableSortables:function(){if(w.length)try{w.sortable("disable"),w.find(".ui-sortable-handle").addClass("is-non-sortable")}catch(e){}},enableSortables:function(){if(w.length)try{w.sortable("enable"),w.find(".ui-sortable-handle").removeClass("is-non-sortable")}catch(e){}}},W(document).on("ajaxComplete",function(){K()}),Q.on("wp-window-resized.set-menu-state",B),Q.on("wp-menu-state-set wp-collapse-menu",function(e,t){var n,i=W("#collapse-button"),t="folded"===t.state?(n="false",H("Expand Main menu")):(n="true",H("Collapse Main menu"));i.attr({"aria-expanded":n,"aria-label":t})}),$.wpResponsive.init(),O(),B(),M(),D(),K(),Q.on("wp-pin-menu wp-window-resized.pin-menu postboxes-columnchange.pin-menu postbox-toggled.pin-menu wp-collapse-menu.pin-menu wp-scroll-start.pin-menu",O),W(".wp-initial-focus").trigger("focus"),q.on("click",".js-update-details-toggle",function(){var e=W(this).closest(".js-update-details"),t=W("#"+e.data("update-details"));t.hasClass("update-details-moved")||t.insertAfter(e).addClass("update-details-moved"),t.toggle(),W(this).attr("aria-expanded",t.is(":visible"))})}),W(function(e){var t,n;q.hasClass("update-php")&&(t=e("a.update-from-upload-overwrite"),n=e(".update-from-upload-expired"),t.length)&&n.length&&$.setTimeout(function(){t.hide(),n.removeClass("hidden"),$.wp&&$.wp.a11y&&$.wp.a11y.speak(n.text())},714e4)}),V.on("resize.wp-fire-once",function(){$.clearTimeout(t),t=$.setTimeout(d,200)}),"-ms-user-select"in document.documentElement.style&&navigator.userAgent.match(/IEMobile\/10\.0/)&&((n=document.createElement("style")).appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.getElementsByTagName("head")[0].appendChild(n))}(jQuery,window),function(){var e,i={},o={};i.pauseAll=!1,!window.matchMedia||(e=window.matchMedia("(prefers-reduced-motion: reduce)"))&&!e.matches||(i.pauseAll=!0),i.freezeAnimatedPluginIcons=function(l){function e(){var e=l.width,t=l.height,n=document.createElement("canvas");if(n.width=e,n.height=t,n.className=l.className,l.closest("#update-plugins-table"))for(var i=window.getComputedStyle(l),o=0,a=i.length;o<a;o++){var s=i[o],r=i.getPropertyValue(s);n.style[s]=r}n.getContext("2d").drawImage(l,0,0,e,t),n.setAttribute("aria-hidden","true"),n.setAttribute("role","presentation"),l.parentNode.insertBefore(n,l),l.style.opacity=.01,l.style.width="0px",l.style.height="0px"}l.complete?e():l.addEventListener("load",e,!0)},o.freezeAll=function(){for(var e=document.querySelectorAll(".plugin-icon, #update-plugins-table img"),t=0;t<e.length;t++)/\.gif(?:\?|$)/i.test(e[t].src)&&i.freezeAnimatedPluginIcons(e[t])},!0===i.pauseAll&&o.freezeAll(),e=jQuery,"plugin-install"===window.pagenow&&e(document).ajaxComplete(function(e,t,n){n.data&&"string"==typeof n.data&&n.data.includes("action=search-install-plugins")&&(window.matchMedia?window.matchMedia("(prefers-reduced-motion: reduce)").matches&&o.freezeAll():!0===i.pauseAll&&o.freezeAll())})}(); \ No newline at end of file
+!function(B,W){var $=B(document),H=B(W),Q=B(document.body),V=wp.i18n.__,i=wp.i18n.sprintf;function r(e,t,n){n=void 0!==n?i(V("%1$s is deprecated since version %2$s! Use %3$s instead."),e,t,n):i(V("%1$s is deprecated since version %2$s with no alternative available."),e,t);W.console.warn(n)}function e(i,o,a){var s={};return Object.keys(o).forEach(function(e){var t=o[e],n=i+"."+e;"object"==typeof t?Object.defineProperty(s,e,{get:function(){return r(n,a,t.alternative),t.func()}}):Object.defineProperty(s,e,{get:function(){return r(n,a,"wp.i18n"),t}})}),s}W.wp.deprecateL10nObject=e,W.commonL10n=W.commonL10n||{warnDelete:"",dismiss:"",collapseMenu:"",expandMenu:""},W.commonL10n=e("commonL10n",W.commonL10n,"5.5.0"),W.wpPointerL10n=W.wpPointerL10n||{dismiss:""},W.wpPointerL10n=e("wpPointerL10n",W.wpPointerL10n,"5.5.0"),W.userProfileL10n=W.userProfileL10n||{warn:"",warnWeak:"",show:"",hide:"",cancel:"",ariaShow:"",ariaHide:""},W.userProfileL10n=e("userProfileL10n",W.userProfileL10n,"5.5.0"),W.privacyToolsL10n=W.privacyToolsL10n||{noDataFound:"",foundAndRemoved:"",noneRemoved:"",someNotRemoved:"",removalError:"",emailSent:"",noExportFile:"",exportError:""},W.privacyToolsL10n=e("privacyToolsL10n",W.privacyToolsL10n,"5.5.0"),W.authcheckL10n={beforeunload:""},W.authcheckL10n=W.authcheckL10n||e("authcheckL10n",W.authcheckL10n,"5.5.0"),W.tagsl10n={noPerm:"",broken:""},W.tagsl10n=W.tagsl10n||e("tagsl10n",W.tagsl10n,"5.5.0"),W.adminCommentsL10n=W.adminCommentsL10n||{hotkeys_highlight_first:{alternative:"window.adminCommentsSettings.hotkeys_highlight_first",func:function(){return W.adminCommentsSettings.hotkeys_highlight_first}},hotkeys_highlight_last:{alternative:"window.adminCommentsSettings.hotkeys_highlight_last",func:function(){return W.adminCommentsSettings.hotkeys_highlight_last}},replyApprove:"",reply:"",warnQuickEdit:"",warnCommentChanges:"",docTitleComments:"",docTitleCommentsCount:""},W.adminCommentsL10n=e("adminCommentsL10n",W.adminCommentsL10n,"5.5.0"),W.tagsSuggestL10n=W.tagsSuggestL10n||{tagDelimiter:"",removeTerm:"",termSelected:"",termAdded:"",termRemoved:""},W.tagsSuggestL10n=e("tagsSuggestL10n",W.tagsSuggestL10n,"5.5.0"),W.wpColorPickerL10n=W.wpColorPickerL10n||{clear:"",clearAriaLabel:"",defaultString:"",defaultAriaLabel:"",pick:"",defaultLabel:""},W.wpColorPickerL10n=e("wpColorPickerL10n",W.wpColorPickerL10n,"5.5.0"),W.attachMediaBoxL10n=W.attachMediaBoxL10n||{error:""},W.attachMediaBoxL10n=e("attachMediaBoxL10n",W.attachMediaBoxL10n,"5.5.0"),W.postL10n=W.postL10n||{ok:"",cancel:"",publishOn:"",publishOnFuture:"",publishOnPast:"",dateFormat:"",showcomm:"",endcomm:"",publish:"",schedule:"",update:"",savePending:"",saveDraft:"",private:"",public:"",publicSticky:"",password:"",privatelyPublished:"",published:"",saveAlert:"",savingText:"",permalinkSaved:""},W.postL10n=e("postL10n",W.postL10n,"5.5.0"),W.inlineEditL10n=W.inlineEditL10n||{error:"",ntdeltitle:"",notitle:"",comma:"",saved:""},W.inlineEditL10n=e("inlineEditL10n",W.inlineEditL10n,"5.5.0"),W.plugininstallL10n=W.plugininstallL10n||{plugin_information:"",plugin_modal_label:"",ays:""},W.plugininstallL10n=e("plugininstallL10n",W.plugininstallL10n,"5.5.0"),W.navMenuL10n=W.navMenuL10n||{noResultsFound:"",warnDeleteMenu:"",saveAlert:"",untitled:""},W.navMenuL10n=e("navMenuL10n",W.navMenuL10n,"5.5.0"),W.commentL10n=W.commentL10n||{submittedOn:"",dateFormat:""},W.commentL10n=e("commentL10n",W.commentL10n,"5.5.0"),W.setPostThumbnailL10n=W.setPostThumbnailL10n||{setThumbnail:"",saving:"",error:"",done:""},W.setPostThumbnailL10n=e("setPostThumbnailL10n",W.setPostThumbnailL10n,"5.5.0"),W.uiAutocompleteL10n=W.uiAutocompleteL10n||{noResults:"",oneResult:"",manyResults:"",itemSelected:""},W.uiAutocompleteL10n=e("uiAutocompleteL10n",W.uiAutocompleteL10n,"6.5.0"),W.adminMenu={init:function(){},fold:function(){},restoreMenuState:function(){},toggle:function(){},favorites:function(){}},W.columns={init:function(){var n=this;B(".hide-column-tog","#adv-settings").on("click",function(){var e=B(this),t=e.val();e.prop("checked")?n.checked(t):n.unchecked(t),columns.saveManageColumnsState()})},saveManageColumnsState:function(){var e=this.hidden();B.post(ajaxurl,{action:"hidden-columns",hidden:e,screenoptionnonce:B("#screenoptionnonce").val(),page:pagenow})},checked:function(e){B(".column-"+e).removeClass("hidden"),this.colSpanChange(1)},unchecked:function(e){B(".column-"+e).addClass("hidden"),this.colSpanChange(-1)},hidden:function(){return B(".manage-column[id]").filter(".hidden").map(function(){return this.id}).get().join(",")},useCheckboxesForHidden:function(){this.hidden=function(){return B(".hide-column-tog").not(":checked").map(function(){var e=this.id;return e.substring(e,e.length-5)}).get().join(",")}},colSpanChange:function(e){var t=B("table").find(".colspanchange");t.length&&(e=parseInt(t.attr("colspan"),10)+e,t.attr("colspan",e.toString()))}},B(function(){columns.init()}),W.validateForm=function(e){return!B(e).find(".form-required").filter(function(){return""===B(":input:visible",this).val()}).addClass("form-invalid").find(":input:visible").on("change",function(){B(this).closest(".form-invalid").removeClass("form-invalid")}).length},W.showNotice={warn:function(){return!!confirm(V("You are about to permanently delete these items from your site.\nThis action cannot be undone.\n'Cancel' to stop, 'OK' to delete."))},note:function(e){alert(e)}},W.screenMeta={element:null,toggles:null,page:null,init:function(){this.element=B("#screen-meta"),this.toggles=B("#screen-meta-links").find(".show-settings"),this.page=B("#wpcontent"),this.toggles.on("click",this.toggleEvent)},toggleEvent:function(){var e=B("#"+B(this).attr("aria-controls"));e.length&&(e.is(":visible")?screenMeta.close(e,B(this)):screenMeta.open(e,B(this)))},open:function(e,t){B("#screen-meta-links").find(".screen-meta-toggle").not(t.parent()).css("visibility","hidden"),e.parent().show(),e.slideDown("fast",function(){e.removeClass("hidden").trigger("focus"),t.addClass("screen-meta-active").attr("aria-expanded",!0)}),$.trigger("screen:options:open")},close:function(e,t){e.slideUp("fast",function(){t.removeClass("screen-meta-active").attr("aria-expanded",!1),B(".screen-meta-toggle").css("visibility",""),e.parent().hide(),e.addClass("hidden")}),$.trigger("screen:options:close")}},B(".contextual-help-tabs").on("click","a",function(e){var t=B(this);if(e.preventDefault(),t.is(".active a"))return!1;B(".contextual-help-tabs .active").removeClass("active"),t.parent("li").addClass("active"),e=B(t.attr("href")),B(".help-tab-content").not(e).removeClass("active").hide(),e.addClass("active").show()});var t,a=!1,s=B("#permalink_structure"),n=B(".permalink-structure input:radio"),l=B("#custom_selection"),o=B(".form-table.permalink-structure .available-structure-tags button");function c(e){-1!==s.val().indexOf(e.text().trim())?(e.attr("data-label",e.attr("aria-label")),e.attr("aria-label",e.attr("data-used")),e.attr("aria-pressed",!0),e.addClass("active")):e.attr("data-label")&&(e.attr("aria-label",e.attr("data-label")),e.attr("aria-pressed",!1),e.removeClass("active"))}function d(){$.trigger("wp-window-resized")}n.on("change",function(){"custom"!==this.value&&(s.val(this.value),o.each(function(){c(B(this))}))}),s.on("click input",function(){l.prop("checked",!0)}),s.on("focus",function(e){a=!0,B(this).off(e)}),o.each(function(){c(B(this))}),s.on("change",function(){o.each(function(){c(B(this))})}),o.on("click",function(){var e=s.val(),t=s[0].selectionStart,n=s[0].selectionEnd,i=B(this).text().trim(),o=B(this).hasClass("active")?B(this).attr("data-removed"):B(this).attr("data-added");-1!==e.indexOf(i)?(e=e.replace(i+"/",""),s.val("/"===e?"":e),B("#custom_selection_updated").text(o),c(B(this))):(a||0!==t||0!==n||(t=n=e.length),l.prop("checked",!0),"/"!==e.substr(0,t).substr(-1)&&(i="/"+i),"/"!==e.substr(n,1)&&(i+="/"),s.val(e.substr(0,t)+i+e.substr(n)),B("#custom_selection_updated").text(o),c(B(this)),a&&s[0].setSelectionRange&&(n=(e.substr(0,t)+i).length,s[0].setSelectionRange(n,n),s.trigger("focus")))}),B(function(){var n,i,o,a,e,t,s,r,l,c,d=!1,u=B("input.current-page"),R=u.val(),p=/iPhone|iPad|iPod/.test(navigator.userAgent),z=-1!==navigator.userAgent.indexOf("Android"),m=B("#adminmenuwrap"),h=B("#wpwrap"),f=B("#adminmenu"),g=B("#wp-responsive-overlay"),v=B("#wp-toolbar"),b=v.find('a[aria-haspopup="true"]'),w=B(".meta-box-sortables"),k=!1,C=B("#wpadminbar"),y=0,L=!1,x=!1,S=0,A=!1,P={window:H.height(),wpwrap:h.height(),adminbar:C.height(),menu:m.height()},T=B(".wp-header-end");function M(e){var t=e.find(".wp-submenu"),e=e.offset().top,n=H.scrollTop(),i=e-n-30,e=e+t.height()+1,o=60+e-h.height(),n=H.height()+n-50;1<(o=i<(o=n<e-o?e-n:o)?i:o)&&B("#wp-admin-bar-menu-toggle").is(":hidden")?t.css("margin-top","-"+o+"px"):t.css("margin-top","")}function _(){B(".notice.is-dismissible").each(function(){var t=B(this),e=B('<button type="button" class="notice-dismiss"><span class="screen-reader-text"></span></button>');t.find(".notice-dismiss").length||(e.find(".screen-reader-text").text(V("Dismiss this notice.")),e.on("click.wp-dismiss-notice",function(e){e.preventDefault(),t.fadeTo(100,0,function(){t.slideUp(100,function(){t.remove()})})}),t.append(e))})}function D(e,t,n,i){n.on("change",function(){e.val(B(this).val())}),e.on("change",function(){n.val(B(this).val())}),i.on("click",function(e){e.preventDefault(),e.stopPropagation(),t.trigger("click")})}function E(){r.prop("disabled",""===l.map(function(){return B(this).val()}).get().join(""))}function N(e){var t=H.scrollTop(),e=!e||"scroll"!==e.type;if(!p&&!f.data("wp-responsive"))if(P.menu+P.adminbar<P.window||P.menu+P.adminbar+20>P.wpwrap)j();else{if(A=!0,P.menu+P.adminbar>P.window){if(t<0)return void(L||(x=!(L=!0),m.css({position:"fixed",top:"",bottom:""})));if(t+P.window>$.height()-1)return void(x||(L=!(x=!0),m.css({position:"fixed",top:"",bottom:0})));y<t?L?(L=!1,(S=m.offset().top-P.adminbar-(t-y))+P.menu+P.adminbar<t+P.window&&(S=t+P.window-P.menu-P.adminbar),m.css({position:"absolute",top:S,bottom:""})):!x&&m.offset().top+P.menu<t+P.window&&(x=!0,m.css({position:"fixed",top:"",bottom:0})):t<y?x?(x=!1,(S=m.offset().top-P.adminbar+(y-t))+P.menu>t+P.window&&(S=t),m.css({position:"absolute",top:S,bottom:""})):!L&&m.offset().top>=t+P.adminbar&&(L=!0,m.css({position:"fixed",top:"",bottom:""})):e&&(L=x=!1,0<(S=t+P.window-P.menu-P.adminbar-1)?m.css({position:"absolute",top:S,bottom:""}):j())}y=t}}function F(){P={window:H.height(),wpwrap:h.height(),adminbar:C.height(),menu:m.height()}}function j(){!p&&A&&(L=x=A=!1,m.css({position:"",top:"",bottom:""}))}function O(){F(),f.data("wp-responsive")?(Q.removeClass("sticky-menu"),j()):P.menu+P.adminbar>P.window?(N(),Q.removeClass("sticky-menu")):(Q.addClass("sticky-menu"),j())}function U(){B(".aria-button-if-js").attr("role","button")}function I(){var e=!1;return e=W.innerWidth?Math.max(W.innerWidth,document.documentElement.clientWidth):e}function K(){var e=I()||961;s=e<=782?"responsive":Q.hasClass("folded")||Q.hasClass("auto-fold")&&e<=960&&782<e?"folded":"open",$.trigger("wp-menu-state-set",{state:s})}f.on("click.wp-submenu-head",".wp-submenu-head",function(e){B(e.target).parent().siblings("a").get(0).click()}),B("#collapse-button").on("click.collapse-menu",function(){var e=I()||961;B("#adminmenu div.wp-submenu").css("margin-top",""),s=e<=960?Q.hasClass("auto-fold")?(Q.removeClass("auto-fold").removeClass("folded"),setUserSetting("unfold",1),setUserSetting("mfold","o"),"open"):(Q.addClass("auto-fold"),setUserSetting("unfold",0),"folded"):Q.hasClass("folded")?(Q.removeClass("folded"),setUserSetting("mfold","o"),"open"):(Q.addClass("folded"),setUserSetting("mfold","f"),"folded"),$.trigger("wp-collapse-menu",{state:s})}),("ontouchstart"in W||/IEMobile\/[1-9]/.test(navigator.userAgent))&&(Q.on((c=p?"touchstart":"click")+".wp-mobile-hover",function(e){f.data("wp-responsive")||B(e.target).closest("#adminmenu").length||f.find("li.opensub").removeClass("opensub")}),f.find("a.wp-has-submenu").on(c+".wp-mobile-hover",function(e){var t=B(this).parent();f.data("wp-responsive")||t.hasClass("opensub")||t.hasClass("wp-menu-open")&&!(t.width()<40)||(e.preventDefault(),M(t),f.find("li.opensub").removeClass("opensub"),t.addClass("opensub"))})),p||z||(f.find("li.wp-has-submenu").hoverIntent({over:function(){var e=B(this),t=e.find(".wp-submenu"),t=parseInt(t.css("top"),10);isNaN(t)||-5<t||f.data("wp-responsive")||(M(e),f.find("li.opensub").removeClass("opensub"),e.addClass("opensub"))},out:function(){f.data("wp-responsive")||B(this).removeClass("opensub").find(".wp-submenu").css("margin-top","")},timeout:200,sensitivity:7,interval:90}),f.on("focus.adminmenu",".wp-submenu a",function(e){f.data("wp-responsive")||B(e.target).closest("li.menu-top").addClass("opensub")}).on("blur.adminmenu",".wp-submenu a",function(e){f.data("wp-responsive")||B(e.target).closest("li.menu-top").removeClass("opensub")}).find("li.wp-has-submenu.wp-not-current-submenu").on("focusin.adminmenu",function(){M(B(this))})),T.length||(T=B(".wrap h1, .wrap h2").first()),B("div.updated, div.error, div.notice").not(".inline, .below-h2").insertAfter(T),$.on("wp-updates-notice-added wp-plugin-install-error wp-plugin-update-error wp-plugin-delete-error wp-theme-install-error wp-theme-delete-error",_),screenMeta.init(),Q.on("click","tbody > tr > .check-column :checkbox",function(e){if("undefined"!=e.shiftKey){if(e.shiftKey){if(!d)return!0;n=B(d).closest("form").find(":checkbox").filter(":visible:enabled"),i=n.index(d),o=n.index(this),a=B(this).prop("checked"),0<i&&0<o&&i!=o&&(i<o?n.slice(i,o):n.slice(o,i)).prop("checked",function(){return!!B(this).closest("tr").is(":visible")&&a})}var t=B(d=this).closest("tbody").find("tr").find(":checkbox").filter(":visible:enabled").not(":checked");B(this).closest("table").children("thead, tfoot").find(":checkbox").prop("checked",function(){return 0===t.length})}return!0}),Q.on("click.wp-toggle-checkboxes","thead .check-column :checkbox, tfoot .check-column :checkbox",function(e){var t=B(this),n=t.closest("table"),i=t.prop("checked"),o=e.shiftKey||t.data("wp-toggle");n.children("tbody").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){return!B(this).is(":hidden,:disabled")&&(o?!B(this).prop("checked"):!!i)}),n.children("thead, tfoot").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){return!o&&!!i})}),D(B("#bulk-action-selector-top"),B("#doaction"),B("#bulk-action-selector-bottom"),B("#doaction2")),D(B("#new_role"),B("#changeit"),B("#new_role2"),B("#changeit2")),B("#wpbody-content").on({focusin:function(){clearTimeout(e),t=B(this).find(".row-actions"),B(".row-actions").not(this).removeClass("visible"),t.addClass("visible")},focusout:function(){e=setTimeout(function(){t.removeClass("visible")},30)}},".table-view-list .has-row-actions"),B("tbody").on("click",".toggle-row",function(){B(this).closest("tr").toggleClass("is-expanded")}),B("#default-password-nag-no").on("click",function(){return setUserSetting("default_password_nag","hide"),B("div.default-password-nag").hide(),!1}),B("#newcontent").on("keydown.wpevent_InsertTab",function(e){var t,n,i,o,a=e.target;27==e.keyCode?(e.preventDefault(),B(a).data("tab-out",!0)):9!=e.keyCode||e.ctrlKey||e.altKey||e.shiftKey||(B(a).data("tab-out")?B(a).data("tab-out",!1):(t=a.selectionStart,n=a.selectionEnd,i=a.value,document.selection?(a.focus(),document.selection.createRange().text="\t"):0<=t&&(o=this.scrollTop,a.value=i.substring(0,t).concat("\t",i.substring(n)),a.selectionStart=a.selectionEnd=t+1,this.scrollTop=o),e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()))}),u.length&&u.closest("form").on("submit",function(){-1==B('select[name="action"]').val()&&u.val()==R&&u.val("1")}),B('.search-box input[type="search"], .search-box input[type="submit"]').on("mousedown",function(){B('select[name^="action"]').val("-1")}),B("#contextual-help-link, #show-settings-link").on("focus.scroll-into-view",function(e){e.target.scrollIntoViewIfNeeded&&e.target.scrollIntoViewIfNeeded(!1)}),(c=B("form.wp-upload-form")).length&&(r=c.find('input[type="submit"]'),l=c.find('input[type="file"]'),E(),l.on("change",E)),p||(H.on("scroll.pin-menu",N),$.on("tinymce-editor-init.pin-menu",function(e,t){t.on("wp-autoresize",F)})),W.wpResponsive={init:function(){var e=this;this.maybeDisableSortables=this.maybeDisableSortables.bind(this),$.on("wp-responsive-activate.wp-responsive",function(){e.activate(),e.toggleAriaHasPopup("add")}).on("wp-responsive-deactivate.wp-responsive",function(){e.deactivate(),e.toggleAriaHasPopup("remove")}),B("#wp-admin-bar-menu-toggle a").attr("aria-expanded","false"),B("#wp-admin-bar-menu-toggle").on("click.wp-responsive",function(e){e.preventDefault(),C.find(".hover").removeClass("hover"),h.toggleClass("wp-responsive-open"),h.hasClass("wp-responsive-open")?(B(this).find("a").attr("aria-expanded","true"),B("#adminmenu a:first").trigger("focus")):B(this).find("a").attr("aria-expanded","false")}),B(document).on("click",function(e){var t;h.hasClass("wp-responsive-open")&&document.hasFocus()&&(t=B.contains(B("#wp-admin-bar-menu-toggle")[0],e.target),e=B.contains(B("#adminmenuwrap")[0],e.target),t||e||B("#wp-admin-bar-menu-toggle").trigger("click.wp-responsive"))}),B(document).on("keyup",function(e){var n,i,o=B("#wp-admin-bar-menu-toggle")[0];h.hasClass("wp-responsive-open")&&(27===e.keyCode?(B(o).trigger("click.wp-responsive"),B(o).find("a").trigger("focus")):9===e.keyCode&&(n=B("#adminmenuwrap")[0],i=e.relatedTarget||document.activeElement,setTimeout(function(){var e=B.contains(o,i),t=B.contains(n,i);e||t||B(o).trigger("click.wp-responsive")},10)))}),f.on("click.wp-responsive","li.wp-has-submenu > a",function(e){var t;f.data("wp-responsive")&&(t="false"===B(this).attr("aria-expanded")?"true":"false",B(this).parent("li").toggleClass("selected"),B(this).attr("aria-expanded",t),B(this).trigger("focus"),e.preventDefault())}),e.trigger(),$.on("wp-window-resized.wp-responsive",this.trigger.bind(this)),H.on("load.wp-responsive",this.maybeDisableSortables),$.on("postbox-toggled",this.maybeDisableSortables),B("#screen-options-wrap input").on("click",this.maybeDisableSortables)},maybeDisableSortables:function(){(-1<navigator.userAgent.indexOf("AppleWebKit/")?H.width():W.innerWidth)<=782||w.find(".ui-sortable-handle:visible").length<=1&&jQuery(".columns-prefs-1 input").prop("checked")?this.disableSortables():this.enableSortables()},activate:function(){O(),Q.hasClass("auto-fold")||Q.addClass("auto-fold"),f.data("wp-responsive",1),this.disableSortables()},deactivate:function(){O(),f.removeData("wp-responsive"),this.maybeDisableSortables()},toggleAriaHasPopup:function(e){var t=f.find("[data-ariahaspopup]");"add"===e?t.each(function(){B(this).attr("aria-haspopup","menu").attr("aria-expanded","false")}):t.each(function(){B(this).removeAttr("aria-haspopup").removeAttr("aria-expanded")})},trigger:function(){var e=I();e&&(e<=782?k||($.trigger("wp-responsive-activate"),k=!0):k&&($.trigger("wp-responsive-deactivate"),k=!1),e<=480?this.enableOverlay():this.disableOverlay(),this.maybeDisableSortables())},enableOverlay:function(){0===g.length&&(g=B('<div id="wp-responsive-overlay"></div>').insertAfter("#wpcontent").hide().on("click.wp-responsive",function(){v.find(".menupop.hover").removeClass("hover"),B(this).hide()})),b.on("click.wp-responsive",function(){g.show()})},disableOverlay:function(){b.off("click.wp-responsive"),g.hide()},disableSortables:function(){if(w.length)try{w.sortable("disable"),w.find(".ui-sortable-handle").addClass("is-non-sortable")}catch(e){}},enableSortables:function(){if(w.length)try{w.sortable("enable"),w.find(".ui-sortable-handle").removeClass("is-non-sortable")}catch(e){}}},B(document).on("ajaxComplete",function(){U()}),$.on("wp-window-resized.set-menu-state",K),$.on("wp-menu-state-set wp-collapse-menu",function(e,t){var n,i=B("#collapse-button"),t="folded"===t.state?(n="false",V("Expand Main menu")):(n="true",V("Collapse Main menu"));i.attr({"aria-expanded":n,"aria-label":t})}),W.wpResponsive.init(),O(),K(),_(),U(),$.on("wp-pin-menu wp-window-resized.pin-menu postboxes-columnchange.pin-menu postbox-toggled.pin-menu wp-collapse-menu.pin-menu wp-scroll-start.pin-menu",O),B(".wp-initial-focus").trigger("focus"),Q.on("click",".js-update-details-toggle",function(){var e=B(this).closest(".js-update-details"),t=B("#"+e.data("update-details"));t.hasClass("update-details-moved")||t.insertAfter(e).addClass("update-details-moved"),t.toggle(),B(this).attr("aria-expanded",t.is(":visible"))})}),B(function(e){var t,n;Q.hasClass("update-php")&&(t=e("a.update-from-upload-overwrite"),n=e(".update-from-upload-expired"),t.length)&&n.length&&W.setTimeout(function(){t.hide(),n.removeClass("hidden"),W.wp&&W.wp.a11y&&W.wp.a11y.speak(n.text())},714e4)}),H.on("resize.wp-fire-once",function(){W.clearTimeout(t),t=W.setTimeout(d,200)}),"-ms-user-select"in document.documentElement.style&&navigator.userAgent.match(/IEMobile\/10\.0/)&&((n=document.createElement("style")).appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.getElementsByTagName("head")[0].appendChild(n))}(jQuery,window),function(){var e,i={},o={};i.pauseAll=!1,!window.matchMedia||(e=window.matchMedia("(prefers-reduced-motion: reduce)"))&&!e.matches||(i.pauseAll=!0),i.freezeAnimatedPluginIcons=function(l){function e(){var e=l.width,t=l.height,n=document.createElement("canvas");if(n.width=e,n.height=t,n.className=l.className,l.closest("#update-plugins-table"))for(var i=window.getComputedStyle(l),o=0,a=i.length;o<a;o++){var s=i[o],r=i.getPropertyValue(s);n.style[s]=r}n.getContext("2d").drawImage(l,0,0,e,t),n.setAttribute("aria-hidden","true"),n.setAttribute("role","presentation"),l.parentNode.insertBefore(n,l),l.style.opacity=.01,l.style.width="0px",l.style.height="0px"}l.complete?e():l.addEventListener("load",e,!0)},o.freezeAll=function(){for(var e=document.querySelectorAll(".plugin-icon, #update-plugins-table img"),t=0;t<e.length;t++)/\.gif(?:\?|$)/i.test(e[t].src)&&i.freezeAnimatedPluginIcons(e[t])},!0===i.pauseAll&&o.freezeAll(),e=jQuery,"plugin-install"===window.pagenow&&e(document).ajaxComplete(function(e,t,n){n.data&&"string"==typeof n.data&&n.data.includes("action=search-install-plugins")&&(window.matchMedia?window.matchMedia("(prefers-reduced-motion: reduce)").matches&&o.freezeAll():!0===i.pauseAll&&o.freezeAll())})}(); \ No newline at end of file
diff --git a/wp-admin/js/customize-controls.js b/wp-admin/js/customize-controls.js
index 650ac8a..5ed89af 100644
--- a/wp-admin/js/customize-controls.js
+++ b/wp-admin/js/customize-controls.js
@@ -1799,7 +1799,7 @@
section.closeDetails();
} else {
- // Escape from the inifinite scroll list.
+ // Escape from the infinite scroll list.
section.headerContainer.find( '.customize-themes-section-title' ).focus();
}
event.stopPropagation(); // Prevent section from being collapsed.
@@ -1917,7 +1917,7 @@
section.contentContainer.on( 'click', '.feature-filter-toggle', function( e ) {
var $themeContainer = $( '.customize-themes-full-container' ),
$filterToggle = $( e.currentTarget );
- section.filtersHeight = $filterToggle.parent().next( '.filter-drawer' ).height();
+ section.filtersHeight = $filterToggle.parents( '.themes-filter-bar' ).next( '.filter-drawer' ).height();
if ( 0 < $themeContainer.scrollTop() ) {
$themeContainer.animate( { scrollTop: 0 }, 400 );
@@ -1932,7 +1932,7 @@
.attr( 'aria-expanded', function( i, attr ) {
return 'true' === attr ? 'false' : 'true';
})
- .parent().next( '.filter-drawer' ).slideToggle( 180, 'linear' );
+ .parents( '.themes-filter-bar' ).next( '.filter-drawer' ).slideToggle( 180, 'linear' );
if ( $filterToggle.hasClass( 'open' ) ) {
var marginOffset = 1018 < window.innerWidth ? 50 : 76;
@@ -3739,7 +3739,7 @@
ready: function() {
var control = this, newItem;
if ( 'dropdown-pages' === control.params.type && control.params.allow_addition ) {
- newItem = control.container.find( '.new-content-item' );
+ newItem = control.container.find( '.new-content-item-wrapper' );
newItem.hide(); // Hide in JS to preserve flex display when showing.
control.container.on( 'click', '.add-new-toggle', function( e ) {
$( e.currentTarget ).slideUp( 180 );
@@ -4085,7 +4085,7 @@
}
toggle = control.container.find( '.add-new-toggle' );
- container = control.container.find( '.new-content-item' );
+ container = control.container.find( '.new-content-item-wrapper' );
input = control.container.find( '.create-item-input' );
title = input.val();
select = control.container.find( 'select' );
@@ -7199,7 +7199,7 @@
} ) );
/**
- * Return whether the pubish settings section should be active.
+ * Return whether the publish settings section should be active.
*
* @return {boolean} Is section active.
*/
diff --git a/wp-admin/js/customize-controls.min.js b/wp-admin/js/customize-controls.min.js
index 3485f50..5ffb1fa 100644
--- a/wp-admin/js/customize-controls.min.js
+++ b/wp-admin/js/customize-controls.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-!function(J){var a,s,t,e,n,i,Y=wp.customize,o=window.matchMedia("(prefers-reduced-motion: reduce)"),r=o.matches;o.addEventListener("change",function(e){r=e.matches}),Y.OverlayNotification=Y.Notification.extend({loading:!1,initialize:function(e,t){var n=this;Y.Notification.prototype.initialize.call(n,e,t),n.containerClasses+=" notification-overlay",n.loading&&(n.containerClasses+=" notification-loading")},render:function(){var e=Y.Notification.prototype.render.call(this);return e.on("keydown",_.bind(this.handleEscape,this)),e},handleEscape:function(e){var t=this;27===e.which&&(e.stopPropagation(),t.dismissible)&&t.parent&&t.parent.remove(t.code)}}),Y.Notifications=Y.Values.extend({alt:!1,defaultConstructor:Y.Notification,initialize:function(e){var t=this;Y.Values.prototype.initialize.call(t,e),_.bindAll(t,"constrainFocus"),t._addedIncrement=0,t._addedOrder={},t.bind("add",function(e){t.trigger("change",e)}),t.bind("removed",function(e){t.trigger("change",e)})},count:function(){return _.size(this._value)},add:function(e,t){var n,i=this,t="string"==typeof e?(n=e,t):(n=e.code,e);return i.has(n)||(i._addedIncrement+=1,i._addedOrder[n]=i._addedIncrement),Y.Values.prototype.add.call(i,n,t)},remove:function(e){return delete this._addedOrder[e],Y.Values.prototype.remove.call(this,e)},get:function(e){var a,o=this,t=_.values(o._value);return _.extend({sort:!1},e).sort&&(a={error:4,warning:3,success:2,info:1},t.sort(function(e,t){var n=0,i=0;return(n=_.isUndefined(a[e.type])?n:a[e.type])!==(i=_.isUndefined(a[t.type])?i:a[t.type])?i-n:o._addedOrder[t.code]-o._addedOrder[e.code]})),t},render:function(){var e,t,n,i=this,a=!1,o=[],s={};i.container&&i.container.length&&(e=i.get({sort:!0}),i.container.toggle(0!==e.length),i.container.is(i.previousContainer)&&_.isEqual(e,i.previousNotifications)||((n=i.container.children("ul").first()).length||(n=J("<ul></ul>"),i.container.append(n)),n.find("> [data-code]").remove(),_.each(i.previousNotifications,function(e){s[e.code]=e}),_.each(e,function(e){var t;!wp.a11y||s[e.code]&&_.isEqual(e.message,s[e.code].message)||wp.a11y.speak(e.message,"assertive"),t=J(e.render()),e.container=t,n.append(t),e.extended(Y.OverlayNotification)&&o.push(e)}),(t=Boolean(o.length))!==(a=i.previousNotifications?Boolean(_.find(i.previousNotifications,function(e){return e.extended(Y.OverlayNotification)})):a)&&(J(document.body).toggleClass("customize-loading",t),i.container.toggleClass("has-overlay-notifications",t),t?(i.previousActiveElement=document.activeElement,J(document).on("keydown",i.constrainFocus)):J(document).off("keydown",i.constrainFocus)),t?(i.focusContainer=o[o.length-1].container,i.focusContainer.prop("tabIndex",-1),((a=i.focusContainer.find(":focusable")).length?a.first():i.focusContainer).focus()):i.previousActiveElement&&(J(i.previousActiveElement).trigger("focus"),i.previousActiveElement=null),i.previousNotifications=e,i.previousContainer=i.container,i.trigger("rendered")))},constrainFocus:function(e){var t,n=this;e.stopPropagation(),9===e.which&&(0===(t=n.focusContainer.find(":focusable")).length&&(t=n.focusContainer),!J.contains(n.focusContainer[0],e.target)||!J.contains(n.focusContainer[0],document.activeElement)||t.last().is(e.target)&&!e.shiftKey?(e.preventDefault(),t.first().focus()):t.first().is(e.target)&&e.shiftKey&&(e.preventDefault(),t.last().focus()))}}),Y.Setting=Y.Value.extend({defaults:{transport:"refresh",dirty:!1},initialize:function(e,t,n){var i=this,n=_.extend({previewer:Y.previewer},i.defaults,n||{});Y.Value.prototype.initialize.call(i,t,n),i.id=e,i._dirty=n.dirty,i.notifications=new Y.Notifications,i.bind(i.preview)},preview:function(){var e=this,t=e.transport;"postMessage"===(t="postMessage"!==t||Y.state("previewerAlive").get()?t:"refresh")?e.previewer.send("setting",[e.id,e()]):"refresh"===t&&e.previewer.refresh()},findControls:function(){var n=this,i=[];return Y.control.each(function(t){_.each(t.settings,function(e){e.id===n.id&&i.push(t)})}),i}}),Y._latestRevision=0,Y._lastSavedRevision=0,Y._latestSettingRevisions={},Y.bind("change",function(e){Y._latestRevision+=1,Y._latestSettingRevisions[e.id]=Y._latestRevision}),Y.bind("ready",function(){Y.bind("add",function(e){e._dirty&&(Y._latestRevision+=1,Y._latestSettingRevisions[e.id]=Y._latestRevision)})}),Y.dirtyValues=function(n){var i={};return Y.each(function(e){var t;e._dirty&&(t=Y._latestSettingRevisions[e.id],Y.state("changesetStatus").get()&&n&&n.unsaved&&(_.isUndefined(t)||t<=Y._lastSavedRevision)||(i[e.id]=e.get()))}),i},Y.requestChangesetUpdate=function(n,e){var t,i={},a=new J.Deferred;if(0!==Y.state("processing").get())a.reject("already_processing");else if(e=_.extend({title:null,date:null,autosave:!1,force:!1},e),n&&_.extend(i,n),_.each(Y.dirtyValues({unsaved:!0}),function(e,t){n&&null===n[t]||(i[t]=_.extend({},i[t]||{},{value:e}))}),Y.trigger("changeset-save",i,e),!e.force&&_.isEmpty(i)&&null===e.title&&null===e.date)a.resolve({});else{if(e.status)return a.reject({code:"illegal_status_in_changeset_update"}).promise();if(e.date&&e.autosave)return a.reject({code:"illegal_autosave_with_date_gmt"}).promise();Y.state("processing").set(Y.state("processing").get()+1),a.always(function(){Y.state("processing").set(Y.state("processing").get()-1)}),delete(t=Y.previewer.query({excludeCustomizedSaved:!0})).customized,_.extend(t,{nonce:Y.settings.nonce.save,customize_theme:Y.settings.theme.stylesheet,customize_changeset_data:JSON.stringify(i)}),null!==e.title&&(t.customize_changeset_title=e.title),null!==e.date&&(t.customize_changeset_date=e.date),!1!==e.autosave&&(t.customize_changeset_autosave="true"),Y.trigger("save-request-params",t),(e=wp.ajax.post("customize_save",t)).done(function(e){var n={};Y._lastSavedRevision=Math.max(Y._latestRevision,Y._lastSavedRevision),Y.state("changesetStatus").set(e.changeset_status),e.changeset_date&&Y.state("changesetDate").set(e.changeset_date),a.resolve(e),Y.trigger("changeset-saved",e),e.setting_validities&&_.each(e.setting_validities,function(e,t){!0===e&&_.isObject(i[t])&&!_.isUndefined(i[t].value)&&(n[t]=i[t].value)}),Y.previewer.send("changeset-saved",_.extend({},e,{saved_changeset_values:n}))}),e.fail(function(e){a.reject(e),Y.trigger("changeset-error",e)}),e.always(function(e){e.setting_validities&&Y._handleSettingValidities({settingValidities:e.setting_validities})})}return a.promise()},Y.utils.bubbleChildValueChanges=function(n,e){J.each(e,function(e,t){n[t].bind(function(e,t){n.parent&&e!==t&&n.parent.trigger("change",n)})})},o=function(e){var t,n,i=this,a=function(){var e;i.extended(Y.Panel)&&1<(n=i.sections()).length&&n.forEach(function(e){e.expanded()&&e.collapse()}),e=(i.extended(Y.Panel)||i.extended(Y.Section))&&i.expanded&&i.expanded()?i.contentContainer:i.container,(n=0===(n=e.find(".control-focus:first")).length?e.find("input, select, textarea, button, object, a[href], [tabindex]").filter(":visible").first():n).focus()};(e=e||{}).completeCallback?(t=e.completeCallback,e.completeCallback=function(){a(),t()}):e.completeCallback=a,Y.state("paneVisible").set(!0),i.expand?i.expand(e):e.completeCallback()},Y.utils.prioritySort=function(e,t){return e.priority()===t.priority()&&"number"==typeof e.params.instanceNumber&&"number"==typeof t.params.instanceNumber?e.params.instanceNumber-t.params.instanceNumber:e.priority()-t.priority()},Y.utils.isKeydownButNotEnterEvent=function(e){return"keydown"===e.type&&13!==e.which},Y.utils.areElementListsEqual=function(e,t){return e.length===t.length&&-1===_.indexOf(_.map(_.zip(e,t),function(e){return J(e[0]).is(e[1])}),!1)},Y.utils.highlightButton=function(e,t){var n,i="button-see-me",a=!1;function o(){a=!0}return(n=_.extend({delay:0,focusTarget:e},t)).focusTarget.on("focusin",o),setTimeout(function(){n.focusTarget.off("focusin",o),a||(e.addClass(i),e.one("animationend",function(){e.removeClass(i)}))},n.delay),o},Y.utils.getCurrentTimestamp=function(){var e=_.now(),t=new Date(Y.settings.initialServerDate.replace(/-/g,"/")),e=e-Y.settings.initialClientTimestamp;return e+=Y.settings.initialClientTimestamp-Y.settings.initialServerTimestamp,t.setTime(t.getTime()+e),t.getTime()},Y.utils.getRemainingTime=function(e){e=e instanceof Date?e.getTime():"string"==typeof e?new Date(e.replace(/-/g,"/")).getTime():e,e-=Y.utils.getCurrentTimestamp();return Math.ceil(e/1e3)},t=document.createElement("div"),e={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},n=_.find(_.keys(e),function(e){return!_.isUndefined(t.style[e])}),s=n?e[n]:null,a=Y.Class.extend({defaultActiveArguments:{duration:"fast",completeCallback:J.noop},defaultExpandedArguments:{duration:"fast",completeCallback:J.noop},containerType:"container",defaults:{title:"",description:"",priority:100,type:"default",content:null,active:!0,instanceNumber:null},initialize:function(e,t){var n=this;n.id=e,a.instanceCounter||(a.instanceCounter=0),a.instanceCounter++,J.extend(n,{params:_.defaults(t.params||t,n.defaults)}),n.params.instanceNumber||(n.params.instanceNumber=a.instanceCounter),n.notifications=new Y.Notifications,n.templateSelector=n.params.templateId||"customize-"+n.containerType+"-"+n.params.type,n.container=J(n.params.content),0===n.container.length&&(n.container=J(n.getContainer())),n.headContainer=n.container,n.contentContainer=n.getContent(),n.container=n.container.add(n.contentContainer),n.deferred={embedded:new J.Deferred},n.priority=new Y.Value,n.active=new Y.Value,n.activeArgumentsQueue=[],n.expanded=new Y.Value,n.expandedArgumentsQueue=[],n.active.bind(function(e){var t=n.activeArgumentsQueue.shift(),t=J.extend({},n.defaultActiveArguments,t);e=e&&n.isContextuallyActive(),n.onChangeActive(e,t)}),n.expanded.bind(function(e){var t=n.expandedArgumentsQueue.shift(),t=J.extend({},n.defaultExpandedArguments,t);n.onChangeExpanded(e,t)}),n.deferred.embedded.done(function(){n.setupNotifications(),n.attachEvents()}),Y.utils.bubbleChildValueChanges(n,["priority","active"]),n.priority.set(n.params.priority),n.active.set(n.params.active),n.expanded.set(!1)},getNotificationsContainerElement:function(){return this.contentContainer.find(".customize-control-notifications-container:first")},setupNotifications:function(){var e,t=this;t.notifications.container=t.getNotificationsContainerElement(),t.expanded.bind(e=function(){t.expanded.get()&&t.notifications.render()}),e(),t.notifications.bind("change",_.debounce(e))},ready:function(){},_children:function(t,e){var n=this,i=[];return Y[e].each(function(e){e[t].get()===n.id&&i.push(e)}),i.sort(Y.utils.prioritySort),i},isContextuallyActive:function(){throw new Error("Container.isContextuallyActive() must be overridden in a subclass.")},onChangeActive:function(e,t){var n,i=this,a=i.headContainer;t.unchanged?t.completeCallback&&t.completeCallback():(n="resolved"===Y.previewer.deferred.active.state()?t.duration:0,i.extended(Y.Panel)&&(Y.panel.each(function(e){e!==i&&e.expanded()&&(n=0)}),e||_.each(i.sections(),function(e){e.collapse({duration:0})})),J.contains(document,a.get(0))?e?a.slideDown(n,t.completeCallback):i.expanded()?i.collapse({duration:n,completeCallback:function(){a.slideUp(n,t.completeCallback)}}):a.slideUp(n,t.completeCallback):(a.toggle(e),t.completeCallback&&t.completeCallback()))},_toggleActive:function(e,t){return t=t||{},e&&this.active.get()||!e&&!this.active.get()?(t.unchanged=!0,this.onChangeActive(this.active.get(),t),!1):(t.unchanged=!1,this.activeArgumentsQueue.push(t),this.active.set(e),!0)},activate:function(e){return this._toggleActive(!0,e)},deactivate:function(e){return this._toggleActive(!1,e)},onChangeExpanded:function(){throw new Error("Must override with subclass.")},_toggleExpanded:function(e,t){var n,i=this;return n=(t=t||{}).completeCallback,!(e&&!i.active()||(Y.state("paneVisible").set(!0),t.completeCallback=function(){n&&n.apply(i,arguments),e?i.container.trigger("expanded"):i.container.trigger("collapsed")},e&&i.expanded.get()||!e&&!i.expanded.get()?(t.unchanged=!0,i.onChangeExpanded(i.expanded.get(),t),1):(t.unchanged=!1,i.expandedArgumentsQueue.push(t),i.expanded.set(e),0)))},expand:function(e){return this._toggleExpanded(!0,e)},collapse:function(e){return this._toggleExpanded(!1,e)},_animateChangeExpanded:function(t){var a,o,n,i;!s||r?_.defer(function(){t&&t()}):(o=(a=this).contentContainer,i=o.closest(".wp-full-overlay").add(o),a.panel&&""!==a.panel()&&!Y.panel(a.panel()).contentContainer.hasClass("skip-transition")||(i=i.add("#customize-info, .customize-pane-parent")),n=function(e){2===e.eventPhase&&J(e.target).is(o)&&(o.off(s,n),i.removeClass("busy"),t)&&t()},o.on(s,n),i.addClass("busy"),_.defer(function(){var e=o.closest(".wp-full-overlay-sidebar-content"),t=e.scrollTop(),n=o.data("previous-scrollTop")||0,i=a.expanded();i&&0<t?(o.css("top",t+"px"),o.data("previous-scrollTop",t)):!i&&0<t+n&&(o.css("top",n-t+"px"),e.scrollTop(n))}))},focus:o,getContainer:function(){var e=this,t=0!==J("#tmpl-"+e.templateSelector).length?wp.template(e.templateSelector):wp.template("customize-"+e.containerType+"-default");return t&&e.container?t(_.extend({id:e.id},e.params)).toString().trim():"<li></li>"},getContent:function(){var e=this.container,t=e.find(".accordion-section-content, .control-panel-content").first(),n="sub-"+e.attr("id"),i=n,a=e.attr("aria-owns");return e.attr("aria-owns",i=a?i+" "+a:i),t.detach().attr({id:n,class:"customize-pane-child "+t.attr("class")+" "+e.attr("class")})}}),Y.Section=a.extend({containerType:"section",containerParent:"#customize-theme-controls",containerPaneParent:".customize-pane-parent",defaults:{title:"",description:"",priority:100,type:"default",content:null,active:!0,instanceNumber:null,panel:null,customizeAction:""},initialize:function(e,t){var n=this,i=t.params||t;i.type||_.find(Y.sectionConstructor,function(e,t){return e===n.constructor&&(i.type=t,!0)}),a.prototype.initialize.call(n,e,i),n.id=e,n.panel=new Y.Value,n.panel.bind(function(e){J(n.headContainer).toggleClass("control-subsection",!!e)}),n.panel.set(n.params.panel||""),Y.utils.bubbleChildValueChanges(n,["panel"]),n.embed(),n.deferred.embedded.done(function(){n.ready()})},embed:function(){var e,n=this;n.containerParent=Y.ensure(n.containerParent),n.panel.bind(e=function(e){var t;e?Y.panel(e,function(e){e.deferred.embedded.done(function(){t=e.contentContainer,n.headContainer.parent().is(t)||t.append(n.headContainer),n.contentContainer.parent().is(n.headContainer)||n.containerParent.append(n.contentContainer),n.deferred.embedded.resolve()})}):(t=Y.ensure(n.containerPaneParent),n.headContainer.parent().is(t)||t.append(n.headContainer),n.contentContainer.parent().is(n.headContainer)||n.containerParent.append(n.contentContainer),n.deferred.embedded.resolve())}),e(n.panel.get())},attachEvents:function(){var e,t,n=this;n.container.hasClass("cannot-expand")||(n.container.find(".accordion-section-title, .customize-section-back").on("click keydown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.expanded()?n.collapse():n.expand())}),n.container.find(".customize-section-title .customize-help-toggle").on("click",function(){(e=n.container.find(".section-meta")).hasClass("cannot-expand")||((t=e.find(".customize-section-description:first")).toggleClass("open"),t.slideToggle(n.defaultExpandedArguments.duration,function(){t.trigger("toggled")}),J(this).attr("aria-expanded",function(e,t){return"true"===t?"false":"true"}))}))},isContextuallyActive:function(){var e=this.controls(),t=0;return _(e).each(function(e){e.active()&&(t+=1)}),0!==t},controls:function(){return this._children("section","control")},onChangeExpanded:function(e,t){var n,i=this,a=i.headContainer.closest(".wp-full-overlay-sidebar-content"),o=i.contentContainer,s=i.headContainer.closest(".wp-full-overlay"),r=o.find(".customize-section-back"),c=i.headContainer.find(".accordion-section-title").first();e&&!o.hasClass("open")?(n=t.unchanged?t.completeCallback:function(){i._animateChangeExpanded(function(){c.attr("tabindex","-1"),r.attr("tabindex","0"),r.trigger("focus"),o.css("top",""),a.scrollTop(0),t.completeCallback&&t.completeCallback()}),o.addClass("open"),s.addClass("section-open"),Y.state("expandedSection").set(i)}.bind(this),t.allowMultiple||Y.section.each(function(e){e!==i&&e.collapse({duration:t.duration})}),i.panel()?Y.panel(i.panel()).expand({duration:t.duration,completeCallback:n}):(t.allowMultiple||Y.panel.each(function(e){e.collapse()}),n())):!e&&o.hasClass("open")?(i.panel()&&(n=Y.panel(i.panel())).contentContainer.hasClass("skip-transition")&&n.collapse(),i._animateChangeExpanded(function(){r.attr("tabindex","-1"),c.attr("tabindex","0"),c.trigger("focus"),o.css("top",""),t.completeCallback&&t.completeCallback()}),o.removeClass("open"),s.removeClass("section-open"),i===Y.state("expandedSection").get()&&Y.state("expandedSection").set(!1)):t.completeCallback&&t.completeCallback()}}),Y.ThemesSection=Y.Section.extend({currentTheme:"",overlay:"",template:"",screenshotQueue:null,$window:null,$body:null,loaded:0,loading:!1,fullyLoaded:!1,term:"",tags:"",nextTerm:"",nextTags:"",filtersHeight:0,headerContainer:null,updateCountDebounced:null,initialize:function(e,t){var n=this;n.headerContainer=J(),n.$window=J(window),n.$body=J(document.body),Y.Section.prototype.initialize.call(n,e,t),n.updateCountDebounced=_.debounce(n.updateCount,500)},embed:function(){var n=this,e=function(e){var t;Y.panel(e,function(e){e.deferred.embedded.done(function(){t=e.contentContainer,n.headContainer.parent().is(t)||t.find(".customize-themes-full-container-container").before(n.headContainer),n.contentContainer.parent().is(n.headContainer)||n.containerParent.append(n.contentContainer),n.deferred.embedded.resolve()})})};n.panel.bind(e),e(n.panel.get())},ready:function(){var t=this;t.overlay=t.container.find(".theme-overlay"),t.template=wp.template("customize-themes-details-view"),t.container.on("keydown",function(e){t.overlay.find(".theme-wrap").is(":visible")&&(39===e.keyCode&&t.nextTheme(),37===e.keyCode&&t.previousTheme(),27===e.keyCode)&&(t.$body.hasClass("modal-open")?t.closeDetails():t.headerContainer.find(".customize-themes-section-title").focus(),e.stopPropagation())}),t.renderScreenshots=_.throttle(t.renderScreenshots,100),_.bindAll(t,"renderScreenshots","loadMore","checkTerm","filtersChecked")},isContextuallyActive:function(){return this.active()},attachEvents:function(){var e,n=this;function t(){var e=n.headerContainer.find(".customize-themes-section-title");e.toggleClass("selected",n.expanded()),e.attr("aria-expanded",n.expanded()?"true":"false"),n.expanded()||e.removeClass("details-open")}n.container.find(".customize-section-back").on("click keydown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.collapse())}),n.headerContainer=J("#accordion-section-"+n.id),n.headerContainer.on("click",".customize-themes-section-title",function(){n.headerContainer.find(".filter-details").length&&(n.headerContainer.find(".customize-themes-section-title").toggleClass("details-open").attr("aria-expanded",function(e,t){return"true"===t?"false":"true"}),n.headerContainer.find(".filter-details").slideToggle(180)),n.expanded()||n.expand()}),n.container.on("click",".theme-actions .preview-theme",function(){Y.panel("themes").loadThemePreview(J(this).data("slug"))}),n.container.on("click",".left",function(){n.previousTheme()}),n.container.on("click",".right",function(){n.nextTheme()}),n.container.on("click",".theme-backdrop, .close",function(){n.closeDetails()}),"local"===n.params.filter_type?n.container.on("input",".wp-filter-search-themes",function(e){n.filterSearch(e.currentTarget.value)}):"remote"===n.params.filter_type&&(e=_.debounce(n.checkTerm,500),n.contentContainer.on("input",".wp-filter-search",function(){Y.panel("themes").expanded()&&(e(n),n.expanded()||n.expand())}),n.contentContainer.on("click",".filter-group input",function(){n.filtersChecked(),n.checkTerm(n)})),n.contentContainer.on("click",".feature-filter-toggle",function(e){var t=J(".customize-themes-full-container"),e=J(e.currentTarget);n.filtersHeight=e.parent().next(".filter-drawer").height(),0<t.scrollTop()&&(t.animate({scrollTop:0},400),e.hasClass("open"))||(e.toggleClass("open").attr("aria-expanded",function(e,t){return"true"===t?"false":"true"}).parent().next(".filter-drawer").slideToggle(180,"linear"),e.hasClass("open")?(t=1018<window.innerWidth?50:76,n.contentContainer.find(".themes").css("margin-top",n.filtersHeight+t)):n.contentContainer.find(".themes").css("margin-top",0))}),n.contentContainer.on("click",".no-themes-local .search-dotorg-themes",function(){Y.section("wporg_themes").focus()}),n.expanded.bind(t),t(),Y.bind("ready",function(){n.contentContainer=n.container.find(".customize-themes-section"),n.contentContainer.appendTo(J(".customize-themes-full-container")),n.container.add(n.headerContainer)})},onChangeExpanded:function(e,n){var i=this,t=i.contentContainer.closest(".customize-themes-full-container");function a(){0===i.loaded&&i.loadThemes(),Y.section.each(function(e){var t;e!==i&&"themes"===e.params.type&&(t=e.contentContainer.find(".wp-filter-search").val(),i.contentContainer.find(".wp-filter-search").val(t),""===t&&""!==i.term&&"local"!==i.params.filter_type?(i.term="",i.initializeNewQuery(i.term,i.tags)):"remote"===i.params.filter_type?i.checkTerm(i):"local"===i.params.filter_type&&i.filterSearch(t),e.collapse({duration:n.duration}))}),i.contentContainer.addClass("current-section"),t.scrollTop(),t.on("scroll",_.throttle(i.renderScreenshots,300)),t.on("scroll",_.throttle(i.loadMore,300)),n.completeCallback&&n.completeCallback(),i.updateCount()}n.unchanged?n.completeCallback&&n.completeCallback():e?i.panel()&&Y.panel.has(i.panel())?Y.panel(i.panel()).expand({duration:n.duration,completeCallback:a}):a():(i.contentContainer.removeClass("current-section"),i.headerContainer.find(".filter-details").slideUp(180),t.off("scroll"),n.completeCallback&&n.completeCallback())},getContent:function(){return this.container.find(".control-section-content")},loadThemes:function(){var n,e,i=this;i.loading||(n=Math.ceil(i.loaded/100)+1,e={nonce:Y.settings.nonce.switch_themes,wp_customize:"on",theme_action:i.params.action,customized_theme:Y.settings.theme.stylesheet,page:n},"remote"===i.params.filter_type&&(e.search=i.term,e.tags=i.tags),i.headContainer.closest(".wp-full-overlay").addClass("loading"),i.loading=!0,i.container.find(".no-themes").hide(),(e=wp.ajax.post("customize_load_themes",e)).done(function(e){var t=e.themes;""!==i.nextTerm||""!==i.nextTags?(i.nextTerm&&(i.term=i.nextTerm),i.nextTags&&(i.tags=i.nextTags),i.nextTerm="",i.nextTags="",i.loading=!1,i.loadThemes()):(0!==t.length?(i.loadControls(t,n),1===n&&(_.each(i.controls().slice(0,3),function(e){e=e.params.theme.screenshot[0];e&&((new Image).src=e)}),"local"!==i.params.filter_type)&&wp.a11y.speak(Y.settings.l10n.themeSearchResults.replace("%d",e.info.results)),_.delay(i.renderScreenshots,100),("local"===i.params.filter_type||t.length<100)&&(i.fullyLoaded=!0)):0===i.loaded?(i.container.find(".no-themes").show(),wp.a11y.speak(i.container.find(".no-themes").text())):i.fullyLoaded=!0,"local"===i.params.filter_type?i.updateCount():i.updateCount(e.info.results),i.container.find(".unexpected-error").hide(),i.headContainer.closest(".wp-full-overlay").removeClass("loading"),i.loading=!1)}),e.fail(function(e){void 0===e?(i.container.find(".unexpected-error").show(),wp.a11y.speak(i.container.find(".unexpected-error").text())):"undefined"!=typeof console&&console.error&&console.error(e),i.headContainer.closest(".wp-full-overlay").removeClass("loading"),i.loading=!1}))},loadControls:function(e,t){var n=[],i=this;_.each(e,function(e){e=new Y.controlConstructor.theme(i.params.action+"_theme_"+e.id,{type:"theme",section:i.params.id,theme:e,priority:i.loaded+1});Y.control.add(e),n.push(e),i.loaded=i.loaded+1}),1!==t&&Array.prototype.push.apply(i.screenshotQueue,n)},loadMore:function(){var e,t;this.fullyLoaded||this.loading||(t=(e=this.container.closest(".customize-themes-full-container")).scrollTop()+e.height(),e.prop("scrollHeight")-3e3<t&&this.loadThemes())},filterSearch:function(e){var t,n=0,i=this,a=Y.section.has("wporg_themes")&&"remote"!==i.params.filter_type?".no-themes-local":".no-themes",o=i.controls();i.loading||(t=e.toLowerCase().trim().replace(/-/g," ").split(" "),_.each(o,function(e){e.filter(t)&&(n+=1)}),0===n?(i.container.find(a).show(),wp.a11y.speak(i.container.find(a).text())):i.container.find(a).hide(),i.renderScreenshots(),Y.reflowPaneContents(),i.updateCountDebounced(n))},checkTerm:function(e){var t;"remote"===e.params.filter_type&&(t=e.contentContainer.find(".wp-filter-search").val(),e.term!==t.trim())&&e.initializeNewQuery(t,e.tags)},filtersChecked:function(){var e=this,t=e.container.find(".filter-group").find(":checkbox"),n=[];_.each(t.filter(":checked"),function(e){n.push(J(e).prop("value"))}),0===n.length?(n="",e.contentContainer.find(".feature-filter-toggle .filter-count-0").show(),e.contentContainer.find(".feature-filter-toggle .filter-count-filters").hide()):(e.contentContainer.find(".feature-filter-toggle .theme-filter-count").text(n.length),e.contentContainer.find(".feature-filter-toggle .filter-count-0").hide(),e.contentContainer.find(".feature-filter-toggle .filter-count-filters").show()),_.isEqual(e.tags,n)||(e.loading?e.nextTags=n:"remote"===e.params.filter_type?e.initializeNewQuery(e.term,n):"local"===e.params.filter_type&&e.filterSearch(n.join(" ")))},initializeNewQuery:function(e,t){var n=this;_.each(n.controls(),function(e){e.container.remove(),Y.control.remove(e.id)}),n.loaded=0,n.fullyLoaded=!1,n.screenshotQueue=null,n.loading?(n.nextTerm=e,n.nextTags=t):(n.term=e,n.tags=t,n.loadThemes()),n.expanded()||n.expand()},renderScreenshots:function(){var o=this;null!==o.screenshotQueue&&0!==o.screenshotQueue.length||(o.screenshotQueue=_.filter(o.controls(),function(e){return!e.screenshotRendered})),o.screenshotQueue.length&&(o.screenshotQueue=_.filter(o.screenshotQueue,function(e){var t,n,i=e.container.find(".theme-screenshot"),a=i.find("img");return!(!a.length||!a.is(":hidden")&&(t=(n=o.$window.scrollTop())+o.$window.height(),a=a.offset().top,(n=n-(i=3*(n=i.height()))<=a+n&&a<=t+i)&&e.container.trigger("render-screenshot"),n))}))},getVisibleCount:function(){return this.contentContainer.find("li.customize-control:visible").length},updateCount:function(e){var t,n;e||0===e||(e=this.getVisibleCount()),n=this.contentContainer.find(".themes-displayed"),t=this.contentContainer.find(".theme-count"),0===e?t.text("0"):(n.fadeOut(180,function(){t.text(e),n.fadeIn(180)}),wp.a11y.speak(Y.settings.l10n.announceThemeCount.replace("%d",e)))},nextTheme:function(){var e=this;e.getNextTheme()&&e.showDetails(e.getNextTheme(),function(){e.overlay.find(".right").focus()})},getNextTheme:function(){var e=Y.control(this.params.action+"_theme_"+this.currentTheme),t=this.controls(),e=_.indexOf(t,e);return-1!==e&&!!(t=t[e+1])&&t.params.theme},previousTheme:function(){var e=this;e.getPreviousTheme()&&e.showDetails(e.getPreviousTheme(),function(){e.overlay.find(".left").focus()})},getPreviousTheme:function(){var e=Y.control(this.params.action+"_theme_"+this.currentTheme),t=this.controls(),e=_.indexOf(t,e);return-1!==e&&!!(t=t[e-1])&&t.params.theme},updateLimits:function(){this.getNextTheme()||this.overlay.find(".right").addClass("disabled"),this.getPreviousTheme()||this.overlay.find(".left").addClass("disabled")},loadThemePreview:function(e){return Y.ThemesPanel.prototype.loadThemePreview.call(this,e)},showDetails:function(e,t){var n=this,i=Y.panel("themes");function a(){return!i.canSwitchTheme(e.id)}n.currentTheme=e.id,n.overlay.html(n.template(e)).fadeIn("fast").focus(),n.overlay.find("button.preview, button.preview-theme").toggleClass("disabled",a()),n.overlay.find("button.theme-install").toggleClass("disabled",a()||!1===Y.settings.theme._canInstall||!0===Y.settings.theme._filesystemCredentialsNeeded),n.$body.addClass("modal-open"),n.containFocus(n.overlay),n.updateLimits(),wp.a11y.speak(Y.settings.l10n.announceThemeDetails.replace("%s",e.name)),t&&t()},closeDetails:function(){this.$body.removeClass("modal-open"),this.overlay.fadeOut("fast"),Y.control(this.params.action+"_theme_"+this.currentTheme).container.find(".theme").focus()},containFocus:function(t){var n;t.on("keydown",function(e){if(9===e.keyCode)return(n=J(":tabbable",t)).last()[0]!==e.target||e.shiftKey?n.first()[0]===e.target&&e.shiftKey?(n.last().focus(),!1):void 0:(n.first().focus(),!1)})}}),Y.OuterSection=Y.Section.extend({initialize:function(){this.containerParent="#customize-outer-theme-controls",this.containerPaneParent=".customize-outer-pane-parent",Y.Section.prototype.initialize.apply(this,arguments)},onChangeExpanded:function(e,t){var n,i=this,a=i.headContainer.closest(".wp-full-overlay-sidebar-content"),o=i.contentContainer,s=o.find(".customize-section-back"),r=i.headContainer.find(".accordion-section-title").first();J(document.body).toggleClass("outer-section-open",e),i.container.toggleClass("open",e),i.container.removeClass("busy"),Y.section.each(function(e){"outer"===e.params.type&&e.id!==i.id&&e.container.removeClass("open")}),e&&!o.hasClass("open")?(n=t.unchanged?t.completeCallback:function(){i._animateChangeExpanded(function(){r.attr("tabindex","-1"),s.attr("tabindex","0"),s.trigger("focus"),o.css("top",""),a.scrollTop(0),t.completeCallback&&t.completeCallback()}),o.addClass("open")}.bind(this),i.panel()?Y.panel(i.panel()).expand({duration:t.duration,completeCallback:n}):n()):!e&&o.hasClass("open")?(i.panel()&&(n=Y.panel(i.panel())).contentContainer.hasClass("skip-transition")&&n.collapse(),i._animateChangeExpanded(function(){s.attr("tabindex","-1"),r.attr("tabindex","0"),r.trigger("focus"),o.css("top",""),t.completeCallback&&t.completeCallback()}),o.removeClass("open")):t.completeCallback&&t.completeCallback()}}),Y.Panel=a.extend({containerType:"panel",initialize:function(e,t){var n=this,i=t.params||t;i.type||_.find(Y.panelConstructor,function(e,t){return e===n.constructor&&(i.type=t,!0)}),a.prototype.initialize.call(n,e,i),n.embed(),n.deferred.embedded.done(function(){n.ready()})},embed:function(){var e=this,t=J("#customize-theme-controls"),n=J(".customize-pane-parent");e.headContainer.parent().is(n)||n.append(e.headContainer),e.contentContainer.parent().is(e.headContainer)||t.append(e.contentContainer),e.renderContent(),e.deferred.embedded.resolve()},attachEvents:function(){var t,n=this;n.headContainer.find(".accordion-section-title").on("click keydown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.expanded())||n.expand()}),n.container.find(".customize-panel-back").on("click keydown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.expanded()&&n.collapse())}),(t=n.container.find(".panel-meta:first")).find("> .accordion-section-title .customize-help-toggle").on("click",function(){var e;t.hasClass("cannot-expand")||(e=t.find(".customize-panel-description:first"),t.hasClass("open")?(t.toggleClass("open"),e.slideUp(n.defaultExpandedArguments.duration,function(){e.trigger("toggled")}),J(this).attr("aria-expanded",!1)):(e.slideDown(n.defaultExpandedArguments.duration,function(){e.trigger("toggled")}),t.toggleClass("open"),J(this).attr("aria-expanded",!0)))})},sections:function(){return this._children("panel","section")},isContextuallyActive:function(){var e=this.sections(),t=0;return _(e).each(function(e){e.active()&&e.isContextuallyActive()&&(t+=1)}),0!==t},onChangeExpanded:function(e,t){var n,i,a,o,s,r,c;t.unchanged?t.completeCallback&&t.completeCallback():(a=(i=(n=this).contentContainer).closest(".wp-full-overlay"),o=i.closest(".wp-full-overlay-sidebar-content"),s=n.headContainer.find(".accordion-section-title"),r=i.find(".customize-panel-back"),c=n.sections(),e&&!i.hasClass("current-panel")?(Y.section.each(function(e){n.id!==e.panel()&&e.collapse({duration:0})}),Y.panel.each(function(e){n!==e&&e.collapse({duration:0})}),n.params.autoExpandSoleSection&&1===c.length&&c[0].active.get()?(i.addClass("current-panel skip-transition"),a.addClass("in-sub-panel"),c[0].expand({completeCallback:t.completeCallback})):(n._animateChangeExpanded(function(){s.attr("tabindex","-1"),r.attr("tabindex","0"),r.trigger("focus"),i.css("top",""),o.scrollTop(0),t.completeCallback&&t.completeCallback()}),i.addClass("current-panel"),a.addClass("in-sub-panel")),Y.state("expandedPanel").set(n)):!e&&i.hasClass("current-panel")&&(i.hasClass("skip-transition")?i.removeClass("skip-transition"):n._animateChangeExpanded(function(){s.attr("tabindex","0"),r.attr("tabindex","-1"),s.focus(),i.css("top",""),t.completeCallback&&t.completeCallback()}),a.removeClass("in-sub-panel"),i.removeClass("current-panel"),n===Y.state("expandedPanel").get())&&Y.state("expandedPanel").set(!1))},renderContent:function(){var e=this,t=0!==J("#tmpl-"+e.templateSelector+"-content").length?wp.template(e.templateSelector+"-content"):wp.template("customize-panel-default-content");t&&e.headContainer&&e.contentContainer.html(t(_.extend({id:e.id},e.params)))}}),Y.ThemesPanel=Y.Panel.extend({initialize:function(e,t){this.installingThemes=[],Y.Panel.prototype.initialize.call(this,e,t)},canSwitchTheme:function(e){return!(!e||e!==Y.settings.theme.stylesheet)||"publish"===Y.state("selectedChangesetStatus").get()&&(""===Y.state("changesetStatus").get()||"auto-draft"===Y.state("changesetStatus").get())},attachEvents:function(){var t=this;function e(){t.canSwitchTheme()?t.notifications.remove("theme_switch_unavailable"):t.notifications.add(new Y.Notification("theme_switch_unavailable",{message:Y.l10n.themePreviewUnavailable,type:"warning"}))}Y.Panel.prototype.attachEvents.apply(t),Y.settings.theme._canInstall&&Y.settings.theme._filesystemCredentialsNeeded&&t.notifications.add(new Y.Notification("theme_install_unavailable",{message:Y.l10n.themeInstallUnavailable,type:"info",dismissible:!0})),e(),Y.state("selectedChangesetStatus").bind(e),Y.state("changesetStatus").bind(e),t.contentContainer.on("click",".customize-theme",function(){t.collapse()}),t.contentContainer.on("click",".customize-themes-section-title, .customize-themes-mobile-back",function(){J(".wp-full-overlay").toggleClass("showing-themes")}),t.contentContainer.on("click",".theme-install",function(e){t.installTheme(e)}),t.contentContainer.on("click",".update-theme, #update-theme",function(e){e.preventDefault(),e.stopPropagation(),t.updateTheme(e)}),t.contentContainer.on("click",".delete-theme",function(e){t.deleteTheme(e)}),_.bindAll(t,"installTheme","updateTheme")},onChangeExpanded:function(e,t){var n,i=!1;Y.Panel.prototype.onChangeExpanded.apply(this,[e,t]),t.unchanged?t.completeCallback&&t.completeCallback():(n=this.headContainer.closest(".wp-full-overlay"),e?(n.addClass("in-themes-panel").delay(200).find(".customize-themes-full-container").addClass("animate"),_.delay(function(){n.addClass("themes-panel-expanded")},200),600<window.innerWidth&&(t=this.sections(),_.each(t,function(e){e.expanded()&&(i=!0)}),!i)&&0<t.length&&t[0].expand()):n.removeClass("in-themes-panel themes-panel-expanded").find(".customize-themes-full-container").removeClass("animate"))},installTheme:function(e){var t,i=this,a=J(e.target).data("slug"),o=J.Deferred(),s=J(e.target).hasClass("preview");return Y.settings.theme._filesystemCredentialsNeeded?o.reject({errorCode:"theme_install_unavailable"}):i.canSwitchTheme(a)?_.contains(i.installingThemes,a)?o.reject({errorCode:"theme_already_installing"}):(wp.updates.maybeRequestFilesystemCredentials(e),e=function(t){var e,n=!1;if(s)Y.notifications.remove("theme_installing"),i.loadThemePreview(a);else{if(Y.control.each(function(e){"theme"===e.params.type&&e.params.theme.id===t.slug&&(n=e.params.theme,e.rerenderAsInstalled(!0))}),!n||Y.control.has("installed_theme_"+n.id))return void o.resolve(t);n.type="installed",e=new Y.controlConstructor.theme("installed_theme_"+n.id,{type:"theme",section:"installed_themes",theme:n,priority:0}),Y.control.add(e),Y.control(e.id).container.trigger("render-screenshot"),Y.section.each(function(e){"themes"===e.params.type&&n.id===e.currentTheme&&e.closeDetails()})}o.resolve(t)},i.installingThemes.push(a),t=wp.updates.installTheme({slug:a}),s&&Y.notifications.add(new Y.OverlayNotification("theme_installing",{message:Y.l10n.themeDownloading,type:"info",loading:!0})),t.done(e),t.fail(function(){Y.notifications.remove("theme_installing")})):o.reject({errorCode:"theme_switch_unavailable"}),o.promise()},loadThemePreview:function(e){var t,n,i=J.Deferred();return this.canSwitchTheme(e)?((n=document.createElement("a")).href=location.href,e=_.extend(Y.utils.parseQueryString(n.search.substr(1)),{theme:e,changeset_uuid:Y.settings.changeset.uuid,return:Y.settings.url.return}),Y.state("saved").get()||(e.customize_autosaved="on"),n.search=J.param(e),Y.notifications.add(new Y.OverlayNotification("theme_previewing",{message:Y.l10n.themePreviewWait,type:"info",loading:!0})),t=function(){var e;0<Y.state("processing").get()||(Y.state("processing").unbind(t),(e=Y.requestChangesetUpdate({},{autosave:!0})).done(function(){i.resolve(),J(window).off("beforeunload.customize-confirm"),location.replace(n.href)}),e.fail(function(){Y.notifications.remove("theme_previewing"),i.reject()}))},0===Y.state("processing").get()?t():Y.state("processing").bind(t)):i.reject({errorCode:"theme_switch_unavailable"}),i.promise()},updateTheme:function(e){wp.updates.maybeRequestFilesystemCredentials(e),J(document).one("wp-theme-update-success",function(e,t){Y.control.each(function(e){"theme"===e.params.type&&e.params.theme.id===t.slug&&(e.params.theme.hasUpdate=!1,e.params.theme.version=t.newVersion,setTimeout(function(){e.rerenderAsInstalled(!0)},2e3))})}),wp.updates.updateTheme({slug:J(e.target).closest(".notice").data("slug")})},deleteTheme:function(e){var t=J(e.target).data("slug"),n=Y.section("installed_themes");e.preventDefault(),Y.settings.theme._filesystemCredentialsNeeded||window.confirm(Y.settings.l10n.confirmDeleteTheme)&&(wp.updates.maybeRequestFilesystemCredentials(e),J(document).one("wp-theme-delete-success",function(){var e=Y.control("installed_theme_"+t);e.container.remove(),Y.control.remove(e.id),n.loaded=n.loaded-1,n.updateCount(),Y.control.each(function(e){"theme"===e.params.type&&e.params.theme.id===t&&e.rerenderAsInstalled(!1)})}),wp.updates.deleteTheme({slug:t}),n.closeDetails(),n.focus())}}),Y.Control=Y.Class.extend({defaultActiveArguments:{duration:"fast",completeCallback:J.noop},defaults:{label:"",description:"",active:!0,priority:10},initialize:function(e,t){var n,i=this,a=[];i.params=_.extend({},i.defaults,i.params||{},t.params||t||{}),Y.Control.instanceCounter||(Y.Control.instanceCounter=0),Y.Control.instanceCounter++,i.params.instanceNumber||(i.params.instanceNumber=Y.Control.instanceCounter),i.params.type||_.find(Y.controlConstructor,function(e,t){return e===i.constructor&&(i.params.type=t,!0)}),i.params.content||(i.params.content=J("<li></li>",{id:"customize-control-"+e.replace(/]/g,"").replace(/\[/g,"-"),class:"customize-control customize-control-"+i.params.type})),i.id=e,i.selector="#customize-control-"+e.replace(/\]/g,"").replace(/\[/g,"-"),i.params.content?i.container=J(i.params.content):i.container=J(i.selector),i.params.templateId?i.templateSelector=i.params.templateId:i.templateSelector="customize-control-"+i.params.type+"-content",i.deferred=_.extend(i.deferred||{},{embedded:new J.Deferred}),i.section=new Y.Value,i.priority=new Y.Value,i.active=new Y.Value,i.activeArgumentsQueue=[],i.notifications=new Y.Notifications({alt:i.altNotice}),i.elements=[],i.active.bind(function(e){var t=i.activeArgumentsQueue.shift(),t=J.extend({},i.defaultActiveArguments,t);i.onChangeActive(e,t)}),i.section.set(i.params.section),i.priority.set(isNaN(i.params.priority)?10:i.params.priority),i.active.set(i.params.active),Y.utils.bubbleChildValueChanges(i,["section","priority","active"]),i.settings={},n={},i.params.setting&&(n.default=i.params.setting),_.extend(n,i.params.settings),_.each(n,function(e,t){var n;_.isObject(e)&&_.isFunction(e.extended)&&e.extended(Y.Value)?i.settings[t]=e:_.isString(e)&&((n=Y(e))?i.settings[t]=n:a.push(e))}),t=function(){_.each(n,function(e,t){!i.settings[t]&&_.isString(e)&&(i.settings[t]=Y(e))}),i.settings[0]&&!i.settings.default&&(i.settings.default=i.settings[0]),i.setting=i.settings.default||null,i.linkElements(),i.embed()},0===a.length?t():Y.apply(Y,a.concat(t)),i.deferred.embedded.done(function(){i.linkElements(),i.setupNotifications(),i.ready()})},linkElements:function(){var i,a=this,o=a.container.find("[data-customize-setting-link], [data-customize-setting-key-link]"),s={};o.each(function(){var e,t,n=J(this);if(!n.data("customizeSettingLinked")){if(n.data("customizeSettingLinked",!0),n.is(":radio")){if(e=n.prop("name"),s[e])return;s[e]=!0,n=o.filter('[name="'+e+'"]')}n.data("customizeSettingLink")?t=Y(n.data("customizeSettingLink")):n.data("customizeSettingKeyLink")&&(t=a.settings[n.data("customizeSettingKeyLink")]),t&&(i=new Y.Element(n),a.elements.push(i),i.sync(t),i.set(t()))}})},embed:function(){var n=this,e=function(e){var t;e&&Y.section(e,function(e){e.deferred.embedded.done(function(){t=e.contentContainer.is("ul")?e.contentContainer:e.contentContainer.find("ul:first"),n.container.parent().is(t)||t.append(n.container),n.renderContent(),n.deferred.embedded.resolve()})})};n.section.bind(e),e(n.section.get())},ready:function(){var t,n=this;"dropdown-pages"===n.params.type&&n.params.allow_addition&&((t=n.container.find(".new-content-item")).hide(),n.container.on("click",".add-new-toggle",function(e){J(e.currentTarget).slideUp(180),t.slideDown(180),t.find(".create-item-input").focus()}),n.container.on("click",".add-content",function(){n.addNewPage()}),n.container.on("keydown",".create-item-input",function(e){13===e.which&&n.addNewPage()}))},getNotificationsContainerElement:function(){var e,t=this,n=t.container.find(".customize-control-notifications-container:first");return n.length||(n=J('<div class="customize-control-notifications-container"></div>'),t.container.hasClass("customize-control-nav_menu_item")?t.container.find(".menu-item-settings:first").prepend(n):t.container.hasClass("customize-control-widget_form")?t.container.find(".widget-inside:first").prepend(n):(e=t.container.find(".customize-control-title")).length?e.after(n):t.container.prepend(n)),n},setupNotifications:function(){var n,e,i=this;_.each(i.settings,function(n){n.notifications&&(n.notifications.bind("add",function(e){var t=_.extend({},e,{setting:n.id});i.notifications.add(new Y.Notification(n.id+":"+e.code,t))}),n.notifications.bind("remove",function(e){i.notifications.remove(n.id+":"+e.code)}))}),n=function(){var e=i.section();(!e||Y.section.has(e)&&Y.section(e).expanded())&&i.notifications.render()},i.notifications.bind("rendered",function(){var e=i.notifications.get();i.container.toggleClass("has-notifications",0!==e.length),i.container.toggleClass("has-error",0!==_.where(e,{type:"error"}).length)}),i.section.bind(e=function(e,t){t&&Y.section.has(t)&&Y.section(t).expanded.unbind(n),e&&Y.section(e,function(e){e.expanded.bind(n),n()})}),e(i.section.get()),i.notifications.bind("change",_.debounce(n))},renderNotifications:function(){var e,t,n=this,i=!1;"undefined"!=typeof console&&console.warn&&console.warn("[DEPRECATED] wp.customize.Control.prototype.renderNotifications() is deprecated in favor of instantiating a wp.customize.Notifications and calling its render() method."),(e=n.getNotificationsContainerElement())&&e.length&&(t=[],n.notifications.each(function(e){t.push(e),"error"===e.type&&(i=!0)}),0===t.length?e.stop().slideUp("fast"):e.stop().slideDown("fast",null,function(){J(this).css("height","auto")}),n.notificationsTemplate||(n.notificationsTemplate=wp.template("customize-control-notifications")),n.container.toggleClass("has-notifications",0!==t.length),n.container.toggleClass("has-error",i),e.empty().append(n.notificationsTemplate({notifications:t,altNotice:Boolean(n.altNotice)}).trim()))},expand:function(e){Y.section(this.section()).expand(e)},focus:o,onChangeActive:function(e,t){t.unchanged?t.completeCallback&&t.completeCallback():J.contains(document,this.container[0])?e?this.container.slideDown(t.duration,t.completeCallback):this.container.slideUp(t.duration,t.completeCallback):(this.container.toggle(e),t.completeCallback&&t.completeCallback())},toggle:function(e){return this.onChangeActive(e,this.defaultActiveArguments)},activate:a.prototype.activate,deactivate:a.prototype.deactivate,_toggleActive:a.prototype._toggleActive,dropdownInit:function(){function e(e){"string"==typeof e&&i.statuses&&i.statuses[e]?n.html(i.statuses[e]).show():n.hide()}var t=this,n=this.container.find(".dropdown-status"),i=this.params,a=!1;this.container.on("click keydown",".dropdown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),a||t.container.toggleClass("open"),t.container.hasClass("open")&&t.container.parent().parent().find("li.library-selected").focus(),a=!0,setTimeout(function(){a=!1},400))}),this.setting.bind(e),e(this.setting())},renderContent:function(){var e=this,t=e.templateSelector;t==="customize-control-"+e.params.type+"-content"&&_.contains(["button","checkbox","date","datetime-local","email","month","number","password","radio","range","search","select","tel","time","text","textarea","week","url"],e.params.type)&&!document.getElementById("tmpl-"+t)&&0===e.container.children().length&&(t="customize-control-default-content"),document.getElementById("tmpl-"+t)&&(t=wp.template(t))&&e.container&&e.container.html(t(e.params)),e.notifications.container=e.getNotificationsContainerElement(),(!(t=e.section())||Y.section.has(t)&&Y.section(t).expanded())&&e.notifications.render()},addNewPage:function(){var e,a,o,t,s,r,c=this;"dropdown-pages"===c.params.type&&c.params.allow_addition&&Y.Menus&&(a=c.container.find(".add-new-toggle"),o=c.container.find(".new-content-item"),t=c.container.find(".create-item-input"),s=t.val(),r=c.container.find("select"),s?(t.removeClass("invalid"),t.attr("disabled","disabled"),(e=Y.Menus.insertAutoDraftPost({post_title:s,post_type:"page"})).done(function(e){var t,n,i=new Y.Menus.AvailableItemModel({id:"post-"+e.post_id,title:s,type:"post_type",type_label:Y.Menus.data.l10n.page_label,object:"page",object_id:e.post_id,url:e.url});Y.Menus.availableMenuItemsPanel.collection.add(i),t=J("#available-menu-items-post_type-page").find(".available-menu-items-list"),n=wp.template("available-menu-item"),t.prepend(n(i.attributes)),r.focus(),c.setting.set(String(e.post_id)),o.slideUp(180),a.slideDown(180)}),e.always(function(){t.val("").removeAttr("disabled")})):t.addClass("invalid"))}}),Y.ColorControl=Y.Control.extend({ready:function(){var t,n=this,e="hue"===this.params.mode,i=!1;e?(t=this.container.find(".color-picker-hue")).val(n.setting()).wpColorPicker({change:function(e,t){i=!0,n.setting(t.color.h()),i=!1}}):(t=this.container.find(".color-picker-hex")).val(n.setting()).wpColorPicker({change:function(){i=!0,n.setting.set(t.wpColorPicker("color")),i=!1},clear:function(){i=!0,n.setting.set(""),i=!1}}),n.setting.bind(function(e){i||(t.val(e),t.wpColorPicker("color",e))}),n.container.on("keydown",function(e){27===e.which&&n.container.find(".wp-picker-container").hasClass("wp-picker-active")&&(t.wpColorPicker("close"),n.container.find(".wp-color-result").focus(),e.stopPropagation())})}}),Y.MediaControl=Y.Control.extend({ready:function(){var n=this;function e(e){var t=J.Deferred();n.extended(Y.UploadControl)?t.resolve():(e=parseInt(e,10),_.isNaN(e)||e<=0?(delete n.params.attachment,t.resolve()):n.params.attachment&&n.params.attachment.id===e&&t.resolve()),"pending"===t.state()&&wp.media.attachment(e).fetch().done(function(){n.params.attachment=this.attributes,t.resolve(),wp.customize.previewer.send(n.setting.id+"-attachment-data",this.attributes)}),t.done(function(){n.renderContent()})}_.bindAll(n,"restoreDefault","removeFile","openFrame","select","pausePlayer"),n.container.on("click keydown",".upload-button",n.openFrame),n.container.on("click keydown",".upload-button",n.pausePlayer),n.container.on("click keydown",".thumbnail-image img",n.openFrame),n.container.on("click keydown",".default-button",n.restoreDefault),n.container.on("click keydown",".remove-button",n.pausePlayer),n.container.on("click keydown",".remove-button",n.removeFile),n.container.on("click keydown",".remove-button",n.cleanupPlayer),Y.section(n.section()).container.on("expanded",function(){n.player&&n.player.setControlsSize()}).on("collapsed",function(){n.pausePlayer()}),e(n.setting()),n.setting.bind(e)},pausePlayer:function(){this.player&&this.player.pause()},cleanupPlayer:function(){this.player&&wp.media.mixin.removePlayer(this.player)},openFrame:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.frame||this.initFrame(),this.frame.open())},initFrame:function(){this.frame=wp.media({button:{text:this.params.button_labels.frame_button},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:this.params.mime_type}),multiple:!1,date:!1})]}),this.frame.on("select",this.select)},select:function(){var e=this.frame.state().get("selection").first().toJSON(),t=window._wpmejsSettings||{};this.params.attachment=e,this.setting(e.id),(e=this.container.find("audio, video").get(0))?this.player=new MediaElementPlayer(e,t):this.cleanupPlayer()},restoreDefault:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.params.attachment=this.params.defaultAttachment,this.setting(this.params.defaultAttachment.url))},removeFile:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.params.attachment={},this.setting(""),this.renderContent())}}),Y.UploadControl=Y.MediaControl.extend({select:function(){var e=this.frame.state().get("selection").first().toJSON(),t=window._wpmejsSettings||{};this.params.attachment=e,this.setting(e.url),(e=this.container.find("audio, video").get(0))?this.player=new MediaElementPlayer(e,t):this.cleanupPlayer()},success:function(){},removerVisibility:function(){}}),Y.ImageControl=Y.UploadControl.extend({thumbnailSrc:function(){}}),Y.BackgroundControl=Y.UploadControl.extend({ready:function(){Y.UploadControl.prototype.ready.apply(this,arguments)},select:function(){Y.UploadControl.prototype.select.apply(this,arguments),wp.ajax.post("custom-background-add",{nonce:_wpCustomizeBackground.nonces.add,wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,attachment_id:this.params.attachment.id})}}),Y.BackgroundPositionControl=Y.Control.extend({ready:function(){var e,n=this;n.container.on("change",'input[name="background-position"]',function(){var e=J(this).val().split(" ");n.settings.x(e[0]),n.settings.y(e[1])}),e=_.debounce(function(){var e=n.settings.x.get(),t=n.settings.y.get(),e=String(e)+" "+String(t);n.container.find('input[name="background-position"][value="'+e+'"]').trigger("click")}),n.settings.x.bind(e),n.settings.y.bind(e),e()}}),Y.CroppedImageControl=Y.MediaControl.extend({openFrame:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(this.initFrame(),this.frame.setState("library").open())},initFrame:function(){var e=_wpMediaViewsL10n;this.frame=wp.media({button:{text:e.select,close:!1},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:this.params.width,suggestedHeight:this.params.height}),new wp.media.controller.CustomizeImageCropper({imgSelectOptions:this.calculateImageSelectOptions,control:this})]}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)},onSelect:function(){var e=this.frame.state().get("selection").first().toJSON();this.params.width!==e.width||this.params.height!==e.height||this.params.flex_width||this.params.flex_height?this.frame.setState("cropper"):(this.setImageFromAttachment(e),this.frame.close())},onCropped:function(e){this.setImageFromAttachment(e)},calculateImageSelectOptions:function(e,t){var n=t.get("control"),i=!!parseInt(n.params.flex_width,10),a=!!parseInt(n.params.flex_height,10),o=e.get("width"),e=e.get("height"),s=parseInt(n.params.width,10),r=parseInt(n.params.height,10),c=s/r,l=s,d=r;return t.set("canSkipCrop",!n.mustBeCropped(i,a,s,r,o,e)),c<o/e?s=(r=e)*c:r=(s=o)/c,!(c={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:o,imageHeight:e,minWidth:s<l?s:l,minHeight:r<d?r:d,x1:t=(o-s)/2,y1:n=(e-r)/2,x2:s+t,y2:r+n})==a&&!1==i&&(c.aspectRatio=s+":"+r),!0==a&&(delete c.minHeight,c.maxWidth=o),!0==i&&(delete c.minWidth,c.maxHeight=e),c},mustBeCropped:function(e,t,n,i,a,o){return(!0!==e||!0!==t)&&!(!0===e&&i===o||!0===t&&n===a||n===a&&i===o||a<=n)},onSkippedCrop:function(){var e=this.frame.state().get("selection").first().toJSON();this.setImageFromAttachment(e)},setImageFromAttachment:function(e){this.params.attachment=e,this.setting(e.id)}}),Y.SiteIconControl=Y.CroppedImageControl.extend({initFrame:function(){var e=_wpMediaViewsL10n;this.frame=wp.media({button:{text:e.select,close:!1},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:this.params.width,suggestedHeight:this.params.height}),new wp.media.controller.SiteIconCropper({imgSelectOptions:this.calculateImageSelectOptions,control:this})]}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)},onSelect:function(){var e=this.frame.state().get("selection").first().toJSON(),t=this;this.params.width!==e.width||this.params.height!==e.height||this.params.flex_width||this.params.flex_height?this.frame.setState("cropper"):wp.ajax.post("crop-image",{nonce:e.nonces.edit,id:e.id,context:"site-icon",cropDetails:{x1:0,y1:0,width:this.params.width,height:this.params.height,dst_width:this.params.width,dst_height:this.params.height}}).done(function(e){t.setImageFromAttachment(e),t.frame.close()}).fail(function(){t.frame.trigger("content:error:crop")})},setImageFromAttachment:function(t){var n;_.each(["site_icon-32","thumbnail","full"],function(e){n||_.isUndefined(t.sizes[e])||(n=t.sizes[e])}),this.params.attachment=t,this.setting(t.id),n&&J('link[rel="icon"][sizes="32x32"]').attr("href",n.url)},removeFile:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.params.attachment={},this.setting(""),this.renderContent(),J('link[rel="icon"][sizes="32x32"]').attr("href","/favicon.ico"))}}),Y.HeaderControl=Y.Control.extend({ready:function(){this.btnRemove=J("#customize-control-header_image .actions .remove"),this.btnNew=J("#customize-control-header_image .actions .new"),_.bindAll(this,"openMedia","removeImage"),this.btnNew.on("click",this.openMedia),this.btnRemove.on("click",this.removeImage),Y.HeaderTool.currentHeader=this.getInitialHeaderImage(),new Y.HeaderTool.CurrentView({model:Y.HeaderTool.currentHeader,el:"#customize-control-header_image .current .container"}),new Y.HeaderTool.ChoiceListView({collection:Y.HeaderTool.UploadsList=new Y.HeaderTool.ChoiceList,el:"#customize-control-header_image .choices .uploaded .list"}),new Y.HeaderTool.ChoiceListView({collection:Y.HeaderTool.DefaultsList=new Y.HeaderTool.DefaultsList,el:"#customize-control-header_image .choices .default .list"}),Y.HeaderTool.combinedList=Y.HeaderTool.CombinedList=new Y.HeaderTool.CombinedList([Y.HeaderTool.UploadsList,Y.HeaderTool.DefaultsList]),wp.media.controller.Cropper.prototype.defaults.doCropArgs.wp_customize="on",wp.media.controller.Cropper.prototype.defaults.doCropArgs.customize_theme=Y.settings.theme.stylesheet},getInitialHeaderImage:function(){var e;return Y.get().header_image&&Y.get().header_image_data&&!_.contains(["remove-header","random-default-image","random-uploaded-image"],Y.get().header_image)?(e=(e=_.find(_wpCustomizeHeader.uploads,function(e){return e.attachment_id===Y.get().header_image_data.attachment_id}))||{url:Y.get().header_image,thumbnail_url:Y.get().header_image,attachment_id:Y.get().header_image_data.attachment_id},new Y.HeaderTool.ImageModel({header:e,choice:e.url.split("/").pop()})):new Y.HeaderTool.ImageModel},calculateImageSelectOptions:function(e,t){var n=parseInt(_wpCustomizeHeader.data.width,10),i=parseInt(_wpCustomizeHeader.data.height,10),a=!!parseInt(_wpCustomizeHeader.data["flex-width"],10),o=!!parseInt(_wpCustomizeHeader.data["flex-height"],10),s=e.get("width"),e=e.get("height");return this.headerImage=new Y.HeaderTool.ImageModel,this.headerImage.set({themeWidth:n,themeHeight:i,themeFlexWidth:a,themeFlexHeight:o,imageWidth:s,imageHeight:e}),t.set("canSkipCrop",!this.headerImage.shouldBeCropped()),(t=n/i)<s/e?n=(i=e)*t:i=(n=s)/t,!(t={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:s,imageHeight:e,x1:0,y1:0,x2:n,y2:i})==o&&!1==a&&(t.aspectRatio=n+":"+i),!1==o&&(t.maxHeight=i),!1==a&&(t.maxWidth=n),t},openMedia:function(e){var t=_wpMediaViewsL10n;e.preventDefault(),this.frame=wp.media({button:{text:t.selectAndCrop,close:!1},states:[new wp.media.controller.Library({title:t.chooseImage,library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:_wpCustomizeHeader.data.width,suggestedHeight:_wpCustomizeHeader.data.height}),new wp.media.controller.Cropper({imgSelectOptions:this.calculateImageSelectOptions})]}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this),this.frame.open()},onSelect:function(){this.frame.setState("cropper")},onCropped:function(e){var t=e.url,n=e.attachment_id,i=e.width,e=e.height;this.setImageFromURL(t,n,i,e)},onSkippedCrop:function(e){var t=e.get("url"),n=e.get("width"),i=e.get("height");this.setImageFromURL(t,e.id,n,i)},setImageFromURL:function(e,t,n,i){var a={};a.url=e,a.thumbnail_url=e,a.timestamp=_.now(),t&&(a.attachment_id=t),n&&(a.width=n),i&&(a.height=i),t=new Y.HeaderTool.ImageModel({header:a,choice:e.split("/").pop()}),Y.HeaderTool.UploadsList.add(t),Y.HeaderTool.currentHeader.set(t.toJSON()),t.save(),t.importImage()},removeImage:function(){Y.HeaderTool.currentHeader.trigger("hide"),Y.HeaderTool.CombinedList.trigger("control:removeImage")}}),Y.ThemeControl=Y.Control.extend({touchDrag:!1,screenshotRendered:!1,ready:function(){var n=this,e=Y.panel("themes");function t(){return!e.canSwitchTheme(n.params.theme.id)}function i(){n.container.find("button.preview, button.preview-theme").toggleClass("disabled",t()),n.container.find("button.theme-install").toggleClass("disabled",t()||!1===Y.settings.theme._canInstall||!0===Y.settings.theme._filesystemCredentialsNeeded)}Y.state("selectedChangesetStatus").bind(i),Y.state("changesetStatus").bind(i),i(),n.container.on("touchmove",".theme",function(){n.touchDrag=!0}),n.container.on("click keydown touchend",".theme",function(e){var t;if(!Y.utils.isKeydownButNotEnterEvent(e))return!0===n.touchDrag?n.touchDrag=!1:void(J(e.target).is(".theme-actions .button, .update-theme")||(e.preventDefault(),(t=Y.section(n.section())).showDetails(n.params.theme,function(){Y.settings.theme._filesystemCredentialsNeeded&&t.overlay.find(".theme-actions .delete-theme").remove()})))}),n.container.on("render-screenshot",function(){var e=J(this).find("img"),t=e.data("src");t&&e.attr("src",t),n.screenshotRendered=!0})},filter:function(e){var t=this,n=0,i=(i=t.params.theme.name+" "+t.params.theme.description+" "+t.params.theme.tags+" "+t.params.theme.author+" ").toLowerCase().replace("-"," ");return _.isArray(e)||(e=[e]),t.params.theme.name.toLowerCase()===e.join(" ")?n=100:(n+=10*(i.split(e.join(" ")).length-1),_.each(e,function(e){n=(n+=2*(i.split(e+" ").length-1))+i.split(e).length-1}),99<n&&(n=99)),0!==n?(t.activate(),t.params.priority=101-n,!0):(t.deactivate(),!(t.params.priority=101))},rerenderAsInstalled:function(e){var t=this;e?t.params.theme.type="installed":(e=Y.section(t.params.section),t.params.theme.type=e.params.action),t.renderContent(),t.container.trigger("render-screenshot")}}),Y.CodeEditorControl=Y.Control.extend({initialize:function(e,t){var n=this;n.deferred=_.extend(n.deferred||{},{codemirror:J.Deferred()}),Y.Control.prototype.initialize.call(n,e,t),n.notifications.bind("add",function(e){var t;e.code===n.setting.id+":csslint_error"&&(e.templateId="customize-code-editor-lint-error-notification",e.render=(t=e.render,function(){var e=t.call(this);return e.find("input[type=checkbox]").on("click",function(){n.setting.notifications.remove("csslint_error")}),e}))})},ready:function(){var i=this;i.section()?Y.section(i.section(),function(n){n.deferred.embedded.done(function(){var t;n.expanded()?i.initEditor():n.expanded.bind(t=function(e){e&&(i.initEditor(),n.expanded.unbind(t))})})}):i.initEditor()},initEditor:function(){var e,t=this,n=!1;wp.codeEditor&&(_.isUndefined(t.params.editor_settings)||!1!==t.params.editor_settings)&&((n=wp.codeEditor.defaultSettings?_.clone(wp.codeEditor.defaultSettings):{}).codemirror=_.extend({},n.codemirror,{indentUnit:2,tabSize:2}),_.isObject(t.params.editor_settings))&&_.each(t.params.editor_settings,function(e,t){_.isObject(e)&&(n[t]=_.extend({},n[t],e))}),e=new Y.Element(t.container.find("textarea")),t.elements.push(e),e.sync(t.setting),e.set(t.setting()),n?t.initSyntaxHighlightingEditor(n):t.initPlainTextareaEditor()},focus:function(e){var t=this,e=_.extend({},e),n=e.completeCallback;e.completeCallback=function(){n&&n(),t.editor&&t.editor.codemirror.focus()},Y.Control.prototype.focus.call(t,e)},initSyntaxHighlightingEditor:function(e){var t=this,n=t.container.find("textarea"),i=!1,e=_.extend({},e,{onTabNext:_.bind(t.onTabNext,t),onTabPrevious:_.bind(t.onTabPrevious,t),onUpdateErrorNotice:_.bind(t.onUpdateErrorNotice,t)});t.editor=wp.codeEditor.initialize(n,e),J(t.editor.codemirror.display.lineDiv).attr({role:"textbox","aria-multiline":"true","aria-label":t.params.label,"aria-describedby":"editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4"}),t.container.find("label").on("click",function(){t.editor.codemirror.focus()}),t.editor.codemirror.on("change",function(e){i=!0,n.val(e.getValue()).trigger("change"),i=!1}),t.setting.bind(function(e){i||t.editor.codemirror.setValue(e)}),t.editor.codemirror.on("keydown",function(e,t){27===t.keyCode&&t.stopPropagation()}),t.deferred.codemirror.resolveWith(t,[t.editor.codemirror])},onTabNext:function(){var e=Y.section(this.section()).controls(),t=e.indexOf(this);e.length===t+1?J("#customize-footer-actions .collapse-sidebar").trigger("focus"):e[t+1].container.find(":focusable:first").focus()},onTabPrevious:function(){var e=Y.section(this.section()),t=e.controls(),n=t.indexOf(this);(0===n?e.contentContainer.find(".customize-section-title .customize-help-toggle, .customize-section-title .customize-section-description.open .section-description-close").last():t[n-1].contentContainer.find(":focusable:first")).focus()},onUpdateErrorNotice:function(e){this.setting.notifications.remove("csslint_error"),0!==e.length&&(e=1===e.length?Y.l10n.customCssError.singular.replace("%d","1"):Y.l10n.customCssError.plural.replace("%d",String(e.length)),this.setting.notifications.add(new Y.Notification("csslint_error",{message:e,type:"error"})))},initPlainTextareaEditor:function(){var a=this.container.find("textarea"),o=a[0];a.on("blur",function(){a.data("next-tab-blurs",!1)}),a.on("keydown",function(e){var t,n,i;27===e.keyCode?a.data("next-tab-blurs")||(a.data("next-tab-blurs",!0),e.stopPropagation()):9!==e.keyCode||e.ctrlKey||e.altKey||e.shiftKey||a.data("next-tab-blurs")||(t=o.selectionStart,n=o.selectionEnd,i=o.value,0<=t&&(o.value=i.substring(0,t).concat("\t",i.substring(n)),a.selectionStart=o.selectionEnd=t+1),e.stopPropagation(),e.preventDefault())}),this.deferred.codemirror.rejectWith(this)}}),Y.DateTimeControl=Y.Control.extend({ready:function(){var i=this;if(i.inputElements={},i.invalidDate=!1,_.bindAll(i,"populateSetting","updateDaysForMonth","populateDateInputs"),!i.setting)throw new Error("Missing setting");i.container.find(".date-input").each(function(){var e=J(this),t=e.data("component"),n=new Y.Element(e);i.inputElements[t]=n,i.elements.push(n),e.on("change",function(){i.invalidDate&&i.notifications.add(new Y.Notification("invalid_date",{message:Y.l10n.invalidDate}))}),e.on("input",_.debounce(function(){i.invalidDate||i.notifications.remove("invalid_date")})),e.on("blur",_.debounce(function(){i.invalidDate||i.populateDateInputs()}))}),i.inputElements.month.bind(i.updateDaysForMonth),i.inputElements.year.bind(i.updateDaysForMonth),i.populateDateInputs(),i.setting.bind(i.populateDateInputs),_.each(i.inputElements,function(e){e.bind(i.populateSetting)})},parseDateTime:function(e){var t;return(t=e?e.match(/^(\d\d\d\d)-(\d\d)-(\d\d)(?: (\d\d):(\d\d)(?::(\d\d))?)?$/):t)?(t.shift(),e={year:t.shift(),month:t.shift(),day:t.shift(),hour:t.shift()||"00",minute:t.shift()||"00",second:t.shift()||"00"},this.params.includeTime&&this.params.twelveHourFormat&&(e.hour=parseInt(e.hour,10),e.meridian=12<=e.hour?"pm":"am",e.hour=e.hour%12?String(e.hour%12):String(12),delete e.second),e):null},validateInputs:function(){var e,i,a=this;return a.invalidDate=!1,e=["year","day"],a.params.includeTime&&e.push("hour","minute"),_.find(e,function(e){var t,n,e=a.inputElements[e];return i=e.element.get(0),t=parseInt(e.element.attr("max"),10),n=parseInt(e.element.attr("min"),10),e=parseInt(e(),10),a.invalidDate=isNaN(e)||t<e||e<n,a.invalidDate||i.setCustomValidity(""),a.invalidDate}),a.inputElements.meridian&&!a.invalidDate&&(i=a.inputElements.meridian.element.get(0),"am"!==a.inputElements.meridian.get()&&"pm"!==a.inputElements.meridian.get()?a.invalidDate=!0:i.setCustomValidity("")),a.invalidDate?i.setCustomValidity(Y.l10n.invalidValue):i.setCustomValidity(""),(!a.section()||Y.section.has(a.section())&&Y.section(a.section()).expanded())&&_.result(i,"reportValidity"),a.invalidDate},updateDaysForMonth:function(){var e=this,t=parseInt(e.inputElements.month(),10),n=parseInt(e.inputElements.year(),10),i=parseInt(e.inputElements.day(),10);t&&n&&(n=new Date(n,t,0).getDate(),e.inputElements.day.element.attr("max",n),n<i)&&e.inputElements.day(String(n))},populateSetting:function(){var e,t=this;return!(t.validateInputs()||!t.params.allowPastDate&&!t.isFutureDate()||(e=t.convertInputDateToString(),t.setting.set(e),0))},convertInputDateToString:function(){var e,n=this,t="",i=function(e,t){return String(e).length<t&&(t=t-String(e).length,e=Math.pow(10,t).toString().substr(1)+String(e)),e},a=function(e){var t=parseInt(n.inputElements[e].get(),10);return _.contains(["month","day","hour","minute"],e)?t=i(t,2):"year"===e&&(t=i(t,4)),t},o=["year","-","month","-","day"];return n.params.includeTime&&(e=n.inputElements.meridian?n.convertHourToTwentyFourHourFormat(n.inputElements.hour(),n.inputElements.meridian()):n.inputElements.hour(),o=o.concat([" ",i(e,2),":","minute",":","00"])),_.each(o,function(e){t+=n.inputElements[e]?a(e):e}),t},isFutureDate:function(){return 0<Y.utils.getRemainingTime(this.convertInputDateToString())},convertHourToTwentyFourHourFormat:function(e,t){e=parseInt(e,10);return isNaN(e)?"":(t="pm"===t&&e<12?e+12:"am"===t&&12===e?e-12:e,String(t))},populateDateInputs:function(){var i=this.parseDateTime(this.setting.get());return!!i&&(_.each(this.inputElements,function(e,t){var n=i[t];"month"===t||"meridian"===t?(n=n.replace(/^0/,""),e.set(n)):(n=parseInt(n,10),e.element.is(document.activeElement)?n!==parseInt(e(),10)&&e.set(String(n)):e.set(i[t]))}),!0)},toggleFutureDateNotification:function(e){var t="not_future_date";return e?(e=new Y.Notification(t,{type:"error",message:Y.l10n.futureDateError}),this.notifications.add(e)):this.notifications.remove(t),this}}),Y.PreviewLinkControl=Y.Control.extend({defaults:_.extend({},Y.Control.prototype.defaults,{templateId:"customize-preview-link-control"}),ready:function(){var e,t,n,i,a,o=this;_.bindAll(o,"updatePreviewLink"),o.setting||(o.setting=new Y.Value),o.previewElements={},o.container.find(".preview-control-element").each(function(){t=J(this),e=t.data("component"),t=new Y.Element(t),o.previewElements[e]=t,o.elements.push(t)}),n=o.previewElements.url,i=o.previewElements.input,a=o.previewElements.button,i.link(o.setting),n.link(o.setting),n.bind(function(e){n.element.parent().attr({href:e,target:Y.settings.changeset.uuid})}),Y.bind("ready",o.updatePreviewLink),Y.state("saved").bind(o.updatePreviewLink),Y.state("changesetStatus").bind(o.updatePreviewLink),Y.state("activated").bind(o.updatePreviewLink),Y.previewer.previewUrl.bind(o.updatePreviewLink),a.element.on("click",function(e){e.preventDefault(),o.setting()&&(i.element.select(),document.execCommand("copy"),a(a.element.data("copied-text")))}),n.element.parent().on("click",function(e){J(this).hasClass("disabled")&&e.preventDefault()}),a.element.on("mouseenter",function(){o.setting()&&a(a.element.data("copy-text"))})},updatePreviewLink:function(){var e=!Y.state("saved").get()||""===Y.state("changesetStatus").get()||"auto-draft"===Y.state("changesetStatus").get();this.toggleSaveNotification(e),this.previewElements.url.element.parent().toggleClass("disabled",e),this.previewElements.button.element.prop("disabled",e),this.setting.set(Y.previewer.getFrontendPreviewUrl())},toggleSaveNotification:function(e){var t="changes_not_saved";e?(e=new Y.Notification(t,{type:"info",message:Y.l10n.saveBeforeShare}),this.notifications.add(e)):this.notifications.remove(t)}}),Y.defaultConstructor=Y.Setting,Y.control=new Y.Values({defaultConstructor:Y.Control}),Y.section=new Y.Values({defaultConstructor:Y.Section}),Y.panel=new Y.Values({defaultConstructor:Y.Panel}),Y.notifications=new Y.Notifications,Y.PreviewFrame=Y.Messenger.extend({sensitivity:null,initialize:function(e,t){var n=J.Deferred();n.promise(this),this.container=e.container,J.extend(e,{channel:Y.PreviewFrame.uuid()}),Y.Messenger.prototype.initialize.call(this,e,t),this.add("previewUrl",e.previewUrl),this.query=J.extend(e.query||{},{customize_messenger_channel:this.channel()}),this.run(n)},run:function(t){var e,n,i,a=this,o=!1,s=!1,r=null,c="{}"!==a.query.customized;a._ready&&a.unbind("ready",a._ready),a._ready=function(e){s=!0,r=e,a.container.addClass("iframe-ready"),e&&o&&t.resolveWith(a,[e])},a.bind("ready",a._ready),(e=document.createElement("a")).href=a.previewUrl(),n=_.extend(Y.utils.parseQueryString(e.search.substr(1)),{customize_changeset_uuid:a.query.customize_changeset_uuid,customize_theme:a.query.customize_theme,customize_messenger_channel:a.query.customize_messenger_channel}),!Y.settings.changeset.autosaved&&Y.state("saved").get()||(n.customize_autosaved="on"),e.search=J.param(n),a.iframe=J("<iframe />",{title:Y.l10n.previewIframeTitle,name:"customize-"+a.channel()}),a.iframe.attr("onmousewheel",""),a.iframe.attr("sandbox","allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts"),c?a.iframe.attr("data-src",e.href):a.iframe.attr("src",e.href),a.iframe.appendTo(a.container),a.targetWindow(a.iframe[0].contentWindow),c&&((i=J("<form>",{action:e.href,target:a.iframe.attr("name"),method:"post",hidden:"hidden"})).append(J("<input>",{type:"hidden",name:"_method",value:"GET"})),_.each(a.query,function(e,t){i.append(J("<input>",{type:"hidden",name:t,value:e}))}),a.container.append(i),i.trigger("submit"),i.remove()),a.bind("iframe-loading-error",function(e){a.iframe.remove(),0===e?a.login(t):-1===e?t.rejectWith(a,["cheatin"]):t.rejectWith(a,["request failure"])}),a.iframe.one("load",function(){o=!0,s?t.resolveWith(a,[r]):setTimeout(function(){t.rejectWith(a,["ready timeout"])},a.sensitivity)})},login:function(n){var i=this,a=function(){n.rejectWith(i,["logged out"])};if(this.triedLogin)return a();J.get(Y.settings.url.ajax,{action:"logged-in"}).fail(a).done(function(e){var t;"1"!==e&&a(),(t=J("<iframe />",{src:i.previewUrl(),title:Y.l10n.previewIframeTitle}).hide()).appendTo(i.container),t.on("load",function(){i.triedLogin=!0,t.remove(),i.run(n)})})},destroy:function(){Y.Messenger.prototype.destroy.call(this),this.iframe&&this.iframe.remove(),delete this.iframe,delete this.targetWindow}}),i=0,Y.PreviewFrame.uuid=function(){return"preview-"+String(i++)},Y.setDocumentTitle=function(e){e=Y.settings.documentTitleTmpl.replace("%s",e);document.title=e,Y.trigger("title",e)},Y.Previewer=Y.Messenger.extend({refreshBuffer:null,initialize:function(e,t){var n,o=this,i=document.createElement("a");J.extend(o,t||{}),o.deferred={active:J.Deferred()},o.refresh=_.debounce((n=o.refresh,function(){var e,t=function(){return 0===Y.state("processing").get()};t()?n.call(o):(e=function(){t()&&(n.call(o),Y.state("processing").unbind(e))},Y.state("processing").bind(e))}),o.refreshBuffer),o.container=Y.ensure(e.container),o.allowedUrls=e.allowedUrls,e.url=window.location.href,Y.Messenger.prototype.initialize.call(o,e),i.href=o.origin(),o.add("scheme",i.protocol.replace(/:$/,"")),o.add("previewUrl",e.previewUrl).setter(function(e){var n,i=null,t=[],a=document.createElement("a");return a.href=e,/\/wp-(admin|includes|content)(\/|$)/.test(a.pathname)?null:(1<a.search.length&&(delete(e=Y.utils.parseQueryString(a.search.substr(1))).customize_changeset_uuid,delete e.customize_theme,delete e.customize_messenger_channel,delete e.customize_autosaved,_.isEmpty(e)?a.search="":a.search=J.param(e)),t.push(a),o.scheme.get()+":"!==a.protocol&&((a=document.createElement("a")).href=t[0].href,a.protocol=o.scheme.get()+":",t.unshift(a)),n=document.createElement("a"),_.find(t,function(t){return!_.isUndefined(_.find(o.allowedUrls,function(e){if(n.href=e,a.protocol===n.protocol&&a.host===n.host&&0===a.pathname.indexOf(n.pathname.replace(/\/$/,"")))return i=t.href,!0}))}),i)}),o.bind("ready",o.ready),o.deferred.active.done(_.bind(o.keepPreviewAlive,o)),o.bind("synced",function(){o.send("active")}),o.previewUrl.bind(o.refresh),o.scroll=0,o.bind("scroll",function(e){o.scroll=e}),o.bind("url",function(e){var t,n=!1;o.scroll=0,o.previewUrl.bind(t=function(){n=!0}),o.previewUrl.set(e),o.previewUrl.unbind(t),n||o.refresh()}),o.bind("documentTitle",function(e){Y.setDocumentTitle(e)})},ready:function(e){var t=this,n={};n.settings=Y.get(),n["settings-modified-while-loading"]=t.settingsModifiedWhileLoading,"resolved"===t.deferred.active.state()&&!t.loading||(n.scroll=t.scroll),n["edit-shortcut-visibility"]=Y.state("editShortcutVisibility").get(),t.send("sync",n),e.currentUrl&&(t.previewUrl.unbind(t.refresh),t.previewUrl.set(e.currentUrl),t.previewUrl.bind(t.refresh)),n={panel:e.activePanels,section:e.activeSections,control:e.activeControls},_(n).each(function(n,i){Y[i].each(function(e,t){_.isUndefined(Y.settings[i+"s"][t])&&_.isUndefined(n[t])||(n[t]?e.activate():e.deactivate())})}),e.settingValidities&&Y._handleSettingValidities({settingValidities:e.settingValidities,focusInvalidControl:!1})},keepPreviewAlive:function(){var e,t=function(){e=setTimeout(i,Y.settings.timeouts.keepAliveCheck)},n=function(){Y.state("previewerAlive").set(!0),clearTimeout(e),t()},i=function(){Y.state("previewerAlive").set(!1)};t(),this.bind("ready",n),this.bind("keep-alive",n)},query:function(){},abort:function(){this.loading&&(this.loading.destroy(),delete this.loading)},refresh:function(){var e,i=this;i.send("loading-initiated"),i.abort(),i.loading=new Y.PreviewFrame({url:i.url(),previewUrl:i.previewUrl(),query:i.query({excludeCustomizedSaved:!0})||{},container:i.container}),i.settingsModifiedWhileLoading={},Y.bind("change",e=function(e){i.settingsModifiedWhileLoading[e.id]=!0}),i.loading.always(function(){Y.unbind("change",e)}),i.loading.done(function(e){var t,n=this;i.preview=n,i.targetWindow(n.targetWindow()),i.channel(n.channel()),t=function(){n.unbind("synced",t),i._previousPreview&&i._previousPreview.destroy(),i._previousPreview=i.preview,i.deferred.active.resolve(),delete i.loading},n.bind("synced",t),i.trigger("ready",e)}),i.loading.fail(function(e){i.send("loading-failed"),"logged out"===e&&(i.preview&&(i.preview.destroy(),delete i.preview),i.login().done(i.refresh)),"cheatin"===e&&i.cheatin()})},login:function(){var t,n,i,a=this;return this._login||(t=J.Deferred(),this._login=t.promise(),n=new Y.Messenger({channel:"login",url:Y.settings.url.login}),i=J("<iframe />",{src:Y.settings.url.login,title:Y.l10n.loginIframeTitle}).appendTo(this.container),n.targetWindow(i[0].contentWindow),n.bind("login",function(){var e=a.refreshNonces();e.always(function(){i.remove(),n.destroy(),delete a._login}),e.done(function(){t.resolve()}),e.fail(function(){a.cheatin(),t.reject()})})),this._login},cheatin:function(){J(document.body).empty().addClass("cheatin").append("<h1>"+Y.l10n.notAllowedHeading+"</h1><p>"+Y.l10n.notAllowed+"</p>")},refreshNonces:function(){var e,t=J.Deferred();return t.promise(),(e=wp.ajax.post("customize_refresh_nonces",{wp_customize:"on",customize_theme:Y.settings.theme.stylesheet})).done(function(e){Y.trigger("nonce-refresh",e),t.resolve()}),e.fail(function(){t.reject()}),t}}),Y.settingConstructor={},Y.controlConstructor={color:Y.ColorControl,media:Y.MediaControl,upload:Y.UploadControl,image:Y.ImageControl,cropped_image:Y.CroppedImageControl,site_icon:Y.SiteIconControl,header:Y.HeaderControl,background:Y.BackgroundControl,background_position:Y.BackgroundPositionControl,theme:Y.ThemeControl,date_time:Y.DateTimeControl,code_editor:Y.CodeEditorControl},Y.panelConstructor={themes:Y.ThemesPanel},Y.sectionConstructor={themes:Y.ThemesSection,outer:Y.OuterSection},Y._handleSettingValidities=function(e){var o=[],n=!1;_.each(e.settingValidities,function(t,e){var a=Y(e);a&&(_.isObject(t)&&_.each(t,function(e,t){var n=!1,e=new Y.Notification(t,_.extend({fromServer:!0},e)),i=a.notifications(e.code);(n=i?e.type!==i.type||e.message!==i.message||!_.isEqual(e.data,i.data):n)&&a.notifications.remove(t),a.notifications.has(e.code)||a.notifications.add(e),o.push(a.id)}),a.notifications.each(function(e){!e.fromServer||"error"!==e.type||!0!==t&&t[e.code]||a.notifications.remove(e.code)}))}),e.focusInvalidControl&&(e=Y.findControlsForSettings(o),_(_.values(e)).find(function(e){return _(e).find(function(e){var t=e.section()&&Y.section.has(e.section())&&Y.section(e.section()).expanded();return(t=t&&e.expanded?e.expanded():t)&&(e.focus(),n=!0),n})}),n||_.isEmpty(e)||_.values(e)[0][0].focus())},Y.findControlsForSettings=function(e){var n,i={};return _.each(_.unique(e),function(e){var t=Y(e);t&&(n=t.findControls())&&0<n.length&&(i[e]=n)}),i},Y.reflowPaneContents=_.bind(function(){var i,e,t,a=[],o=!1;document.activeElement&&(e=J(document.activeElement)),Y.panel.each(function(e){var t,n;"themes"===e.id||(t=e.sections(),n=_.pluck(t,"headContainer"),a.push(e),i=e.contentContainer.is("ul")?e.contentContainer:e.contentContainer.find("ul:first"),Y.utils.areElementListsEqual(n,i.children("[id]")))||(_(t).each(function(e){i.append(e.headContainer)}),o=!0)}),Y.section.each(function(e){var t=e.controls(),n=_.pluck(t,"container");e.panel()||a.push(e),i=e.contentContainer.is("ul")?e.contentContainer:e.contentContainer.find("ul:first"),Y.utils.areElementListsEqual(n,i.children("[id]"))||(_(t).each(function(e){i.append(e.container)}),o=!0)}),a.sort(Y.utils.prioritySort),t=_.pluck(a,"headContainer"),i=J("#customize-theme-controls .customize-pane-parent"),Y.utils.areElementListsEqual(t,i.children())||(_(a).each(function(e){i.append(e.headContainer)}),o=!0),Y.panel.each(function(e){var t=e.active();e.active.callbacks.fireWith(e.active,[t,t])}),Y.section.each(function(e){var t=e.active();e.active.callbacks.fireWith(e.active,[t,t])}),o&&e&&e.trigger("focus"),Y.trigger("pane-contents-reflowed")},Y),Y.state=new Y.Values,_.each(["saved","saving","trashing","activated","processing","paneVisible","expandedPanel","expandedSection","changesetDate","selectedChangesetDate","changesetStatus","selectedChangesetStatus","remainingTimeToPublish","previewerAlive","editShortcutVisibility","changesetLocked","previewedDevice"],function(e){Y.state.create(e)}),J(function(){var h,o,t,n,i,d,u,p,a,s,r,c,l,f,m,H,L,g,v,w,b,M,O,C,j,y,e,x,k,z,S,T,E,R,B,W,D,N,P,I,U,A;function F(e){e&&e.lockUser&&(Y.settings.changeset.lockUser=e.lockUser),Y.state("changesetLocked").set(!0),Y.notifications.add(new j("changeset_locked",{lockUser:Y.settings.changeset.lockUser,allowOverride:Boolean(e&&e.allowOverride)}))}function q(){var e,t=document.createElement("a");return t.href=location.href,e=Y.utils.parseQueryString(t.search.substr(1)),Y.settings.changeset.latestAutoDraftUuid?e.changeset_uuid=Y.settings.changeset.latestAutoDraftUuid:e.customize_autosaved="on",e.return=Y.settings.url.return,t.search=J.param(e),t.href}function Q(){T||(wp.ajax.post("customize_dismiss_autosave_or_lock",{wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.dismiss_autosave_or_lock,dismiss_autosave:!0}),T=!0)}function K(){var e;return Y.state("activated").get()?(""!==(e=Y.state("changesetStatus").get())&&"auto-draft"!==e||(e="publish"),Y.state("selectedChangesetStatus").get()===e&&("future"!==Y.state("selectedChangesetStatus").get()||Y.state("selectedChangesetDate").get()===Y.state("changesetDate").get())&&Y.state("saved").get()&&"auto-draft"!==Y.state("changesetStatus").get()):0===Y._latestRevision}function V(){Y.unbind("change",V),Y.state("selectedChangesetStatus").unbind(V),Y.state("selectedChangesetDate").unbind(V),J(window).on("beforeunload.customize-confirm",function(){if(!K()&&!Y.state("changesetLocked").get())return setTimeout(function(){t.removeClass("customize-loading")},1),Y.l10n.saveAlert})}function $(){var e=J.Deferred(),t=!1,n=!1;return K()?n=!0:confirm(Y.l10n.saveAlert)?(n=!0,Y.each(function(e){e._dirty=!1}),J(document).off("visibilitychange.wp-customize-changeset-update"),J(window).off("beforeunload.wp-customize-changeset-update"),i.css("cursor","progress"),""!==Y.state("changesetStatus").get()&&(t=!0)):e.reject(),(n||t)&&wp.ajax.send("customize_dismiss_autosave_or_lock",{timeout:500,data:{wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.dismiss_autosave_or_lock,dismiss_autosave:t,dismiss_lock:n}}).always(function(){e.resolve()}),e.promise()}Y.settings=window._wpCustomizeSettings,Y.l10n=window._wpCustomizeControlsL10n,Y.settings&&J.support.postMessage&&(J.support.cors||!Y.settings.isCrossDomain)&&(null===Y.PreviewFrame.prototype.sensitivity&&(Y.PreviewFrame.prototype.sensitivity=Y.settings.timeouts.previewFrameSensitivity),null===Y.Previewer.prototype.refreshBuffer&&(Y.Previewer.prototype.refreshBuffer=Y.settings.timeouts.windowRefresh),o=J(document.body),t=o.children(".wp-full-overlay"),n=J("#customize-info .panel-title.site-title"),i=J(".customize-controls-close"),d=J("#save"),u=J("#customize-save-button-wrapper"),p=J("#publish-settings"),a=J("#customize-footer-actions"),Y.bind("ready",function(){Y.section.add(new Y.OuterSection("publish_settings",{title:Y.l10n.publishSettings,priority:0,active:Y.settings.theme.active}))}),Y.section("publish_settings",function(t){var e,n,i,a,o,s,r;function c(){r=r||Y.utils.highlightButton(u,{delay:1e3,focusTarget:d})}function l(){r&&(r(),r=null)}e=new Y.Control("trash_changeset",{type:"button",section:t.id,priority:30,input_attrs:{class:"button-link button-link-delete",value:Y.l10n.discardChanges}}),Y.control.add(e),e.deferred.embedded.done(function(){e.container.find(".button-link").on("click",function(){confirm(Y.l10n.trashConfirm)&&wp.customize.previewer.trash()})}),Y.control.add(new Y.PreviewLinkControl("changeset_preview_link",{section:t.id,priority:100})),t.active.validate=n=function(){return!!Y.state("activated").get()&&!(Y.state("trashing").get()||"trash"===Y.state("changesetStatus").get()||""===Y.state("changesetStatus").get()&&Y.state("saved").get())},s=function(){t.active.set(n())},Y.state("activated").bind(s),Y.state("trashing").bind(s),Y.state("saved").bind(s),Y.state("changesetStatus").bind(s),s(),(s=function(){p.toggle(t.active.get()),d.toggleClass("has-next-sibling",t.active.get())})(),t.active.bind(s),Y.state("selectedChangesetStatus").bind(l),t.contentContainer.find(".customize-action").text(Y.l10n.updating),t.contentContainer.find(".customize-section-back").removeAttr("tabindex"),p.prop("disabled",!1),p.on("click",function(e){e.preventDefault(),t.expanded.set(!t.expanded.get())}),t.expanded.bind(function(e){p.attr("aria-expanded",String(e)),p.toggleClass("active",e),e?l():(""!==(e=Y.state("changesetStatus").get())&&"auto-draft"!==e||(e="publish"),(Y.state("selectedChangesetStatus").get()!==e||"future"===Y.state("selectedChangesetStatus").get()&&Y.state("selectedChangesetDate").get()!==Y.state("changesetDate").get())&&c())}),s=new Y.Control("changeset_status",{priority:10,type:"radio",section:"publish_settings",setting:Y.state("selectedChangesetStatus"),templateId:"customize-selected-changeset-status-control",label:Y.l10n.action,choices:Y.settings.changeset.statusChoices}),Y.control.add(s),(i=new Y.DateTimeControl("changeset_scheduled_date",{priority:20,section:"publish_settings",setting:Y.state("selectedChangesetDate"),minYear:(new Date).getFullYear(),allowPastDate:!1,includeTime:!0,twelveHourFormat:/a/i.test(Y.settings.timeFormat),description:Y.l10n.scheduleDescription})).notifications.alt=!0,Y.control.add(i),a=function(){Y.state("selectedChangesetStatus").set("publish"),Y.previewer.save()},s=function(){var e="future"===Y.state("changesetStatus").get()&&"future"===Y.state("selectedChangesetStatus").get()&&Y.state("changesetDate").get()&&Y.state("selectedChangesetDate").get()===Y.state("changesetDate").get()&&0<=Y.utils.getRemainingTime(Y.state("changesetDate").get());e&&!o?o=setInterval(function(){var e=Y.utils.getRemainingTime(Y.state("changesetDate").get());Y.state("remainingTimeToPublish").set(e),e<=0&&(clearInterval(o),o=0,a())},1e3):!e&&o&&(clearInterval(o),o=0)},Y.state("changesetDate").bind(s),Y.state("selectedChangesetDate").bind(s),Y.state("changesetStatus").bind(s),Y.state("selectedChangesetStatus").bind(s),s(),i.active.validate=function(){return"future"===Y.state("selectedChangesetStatus").get()},(s=function(e){i.active.set("future"===e)})(Y.state("selectedChangesetStatus").get()),Y.state("selectedChangesetStatus").bind(s),Y.state("saving").bind(function(e){e&&"future"===Y.state("selectedChangesetStatus").get()&&i.toggleFutureDateNotification(!i.isFutureDate())})}),J("#customize-controls").on("keydown",function(e){var t=13===e.which,n=J(e.target);t&&(n.is("input:not([type=button])")||n.is("select"))&&e.preventDefault()}),J(".customize-info").find("> .accordion-section-title .customize-help-toggle").on("click",function(){var e=J(this).closest(".accordion-section"),t=e.find(".customize-panel-description:first");e.hasClass("cannot-expand")||(e.hasClass("open")?(e.toggleClass("open"),t.slideUp(Y.Panel.prototype.defaultExpandedArguments.duration,function(){t.trigger("toggled")}),J(this).attr("aria-expanded",!1)):(t.slideDown(Y.Panel.prototype.defaultExpandedArguments.duration,function(){t.trigger("toggled")}),e.toggleClass("open"),J(this).attr("aria-expanded",!0)))}),Y.previewer=new Y.Previewer({container:"#customize-preview",form:"#customize-controls",previewUrl:Y.settings.url.preview,allowedUrls:Y.settings.url.allowed},{nonce:Y.settings.nonce,query:function(e){var t={wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,nonce:this.nonce.preview,customize_changeset_uuid:Y.settings.changeset.uuid};return!Y.settings.changeset.autosaved&&Y.state("saved").get()||(t.customize_autosaved="on"),t.customized=JSON.stringify(Y.dirtyValues({unsaved:e&&e.excludeCustomizedSaved})),t},save:function(i){var e,t,a=this,o=J.Deferred(),s=Y.state("selectedChangesetStatus").get(),r=Y.state("selectedChangesetDate").get(),n=Y.state("processing"),c={},l=[],d=[],u=[];function p(e){c[e.id]=!0}return i&&i.status&&(s=i.status),Y.state("saving").get()&&(o.reject("already_saving"),o.promise()),Y.state("saving").set(!0),t=function(){var n={},t=Y._latestRevision,e="client_side_error";if(Y.bind("change",p),Y.notifications.remove(e),Y.each(function(t){t.notifications.each(function(e){"error"!==e.type||e.fromServer||(l.push(t.id),n[t.id]||(n[t.id]={}),n[t.id][e.code]=e)})}),Y.control.each(function(t){t.setting&&(t.setting.id||!t.active.get())||t.notifications.each(function(e){"error"===e.type&&u.push([t])})}),d=_.union(u,_.values(Y.findControlsForSettings(l))),!_.isEmpty(d))return d[0][0].focus(),Y.unbind("change",p),l.length&&Y.notifications.add(new Y.Notification(e,{message:(1===l.length?Y.l10n.saveBlockedError.singular:Y.l10n.saveBlockedError.plural).replace(/%s/g,String(l.length)),type:"error",dismissible:!0,saveFailure:!0})),o.rejectWith(a,[{setting_invalidities:n}]),Y.state("saving").set(!1),o.promise();e=J.extend(a.query({excludeCustomizedSaved:!1}),{nonce:a.nonce.save,customize_changeset_status:s}),i&&i.date?e.customize_changeset_date=i.date:"future"===s&&r&&(e.customize_changeset_date=r),i&&i.title&&(e.customize_changeset_title=i.title),Y.trigger("save-request-params",e),e=wp.ajax.post("customize_save",e),Y.state("processing").set(Y.state("processing").get()+1),Y.trigger("save",e),e.always(function(){Y.state("processing").set(Y.state("processing").get()-1),Y.state("saving").set(!1),Y.unbind("change",p)}),Y.notifications.each(function(e){e.saveFailure&&Y.notifications.remove(e.code)}),e.fail(function(e){var t,n={type:"error",dismissible:!0,fromServer:!0,saveFailure:!0};"0"===e?e="not_logged_in":"-1"===e&&(e="invalid_nonce"),"invalid_nonce"===e?a.cheatin():"not_logged_in"===e?(a.preview.iframe.hide(),a.login().done(function(){a.save(),a.preview.iframe.show()})):e.code?"not_future_date"===e.code&&Y.section.has("publish_settings")&&Y.section("publish_settings").active.get()&&Y.control.has("changeset_scheduled_date")?Y.control("changeset_scheduled_date").toggleFutureDateNotification(!0).focus():"changeset_locked"!==e.code&&(t=new Y.Notification(e.code,_.extend(n,{message:e.message}))):t=new Y.Notification("unknown_error",_.extend(n,{message:Y.l10n.unknownRequestFail})),t&&Y.notifications.add(t),e.setting_validities&&Y._handleSettingValidities({settingValidities:e.setting_validities,focusInvalidControl:!0}),o.rejectWith(a,[e]),Y.trigger("error",e),"changeset_already_published"===e.code&&e.next_changeset_uuid&&(Y.settings.changeset.uuid=e.next_changeset_uuid,Y.state("changesetStatus").set(""),Y.settings.changeset.branching&&h.send("changeset-uuid",Y.settings.changeset.uuid),Y.previewer.send("changeset-uuid",Y.settings.changeset.uuid))}),e.done(function(e){a.send("saved",e),Y.state("changesetStatus").set(e.changeset_status),e.changeset_date&&Y.state("changesetDate").set(e.changeset_date),"publish"===e.changeset_status&&(Y.each(function(e){e._dirty&&(_.isUndefined(Y._latestSettingRevisions[e.id])||Y._latestSettingRevisions[e.id]<=t)&&(e._dirty=!1)}),Y.state("changesetStatus").set(""),Y.settings.changeset.uuid=e.next_changeset_uuid,Y.settings.changeset.branching)&&h.send("changeset-uuid",Y.settings.changeset.uuid),Y._lastSavedRevision=Math.max(t,Y._lastSavedRevision),e.setting_validities&&Y._handleSettingValidities({settingValidities:e.setting_validities,focusInvalidControl:!0}),o.resolveWith(a,[e]),Y.trigger("saved",e),_.isEmpty(c)||Y.state("saved").set(!1)})},0===n()?t():(e=function(){0===n()&&(Y.state.unbind("change",e),t())},Y.state.bind("change",e)),o.promise()},trash:function(){var e,n,i;Y.state("trashing").set(!0),Y.state("processing").set(Y.state("processing").get()+1),e=wp.ajax.post("customize_trash",{customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.trash}),Y.notifications.add(new Y.OverlayNotification("changeset_trashing",{type:"info",message:Y.l10n.revertingChanges,loading:!0})),n=function(){var e,t=document.createElement("a");Y.state("changesetStatus").set("trash"),Y.each(function(e){e._dirty=!1}),Y.state("saved").set(!0),t.href=location.href,delete(e=Y.utils.parseQueryString(t.search.substr(1))).changeset_uuid,e.return=Y.settings.url.return,t.search=J.param(e),location.replace(t.href)},i=function(e,t){e=e||"unknown_error";Y.state("processing").set(Y.state("processing").get()-1),Y.state("trashing").set(!1),Y.notifications.remove("changeset_trashing"),Y.notifications.add(new Y.Notification(e,{message:t||Y.l10n.unknownError,dismissible:!0,type:"error"}))},e.done(function(e){n(e.message)}),e.fail(function(e){var t=e.code||"trashing_failed";e.success||"non_existent_changeset"===t||"changeset_already_trashed"===t?n(e.message):i(t,e.message)})},getFrontendPreviewUrl:function(){var e,t=document.createElement("a");return t.href=this.previewUrl.get(),e=Y.utils.parseQueryString(t.search.substr(1)),Y.state("changesetStatus").get()&&"publish"!==Y.state("changesetStatus").get()&&(e.customize_changeset_uuid=Y.settings.changeset.uuid),Y.state("activated").get()||(e.customize_theme=Y.settings.theme.stylesheet),t.search=J.param(e),t.href}}),J.ajaxPrefilter(function(e){/wp_customize=on/.test(e.data)&&(e.data+="&"+J.param({customize_preview_nonce:Y.settings.nonce.preview}))}),Y.previewer.bind("nonce",function(e){J.extend(this.nonce,e)}),Y.bind("nonce-refresh",function(e){J.extend(Y.settings.nonce,e),J.extend(Y.previewer.nonce,e),Y.previewer.send("nonce-refresh",e)}),J.each(Y.settings.settings,function(e,t){var n=Y.settingConstructor[t.type]||Y.Setting;Y.add(new n(e,t.value,{transport:t.transport,previewer:Y.previewer,dirty:!!t.dirty}))}),J.each(Y.settings.panels,function(e,t){var n=Y.panelConstructor[t.type]||Y.Panel,t=_.extend({params:t},t);Y.panel.add(new n(e,t))}),J.each(Y.settings.sections,function(e,t){var n=Y.sectionConstructor[t.type]||Y.Section,t=_.extend({params:t},t);Y.section.add(new n(e,t))}),J.each(Y.settings.controls,function(e,t){var n=Y.controlConstructor[t.type]||Y.Control,t=_.extend({params:t},t);Y.control.add(new n(e,t))}),_.each(["panel","section","control"],function(e){var t=Y.settings.autofocus[e];t&&Y[e](t,function(e){e.deferred.embedded.done(function(){Y.previewer.deferred.active.done(function(){e.focus()})})})}),Y.bind("ready",Y.reflowPaneContents),J([Y.panel,Y.section,Y.control]).each(function(e,t){var n=_.debounce(Y.reflowPaneContents,Y.settings.timeouts.reflowPaneContents);t.bind("add",n),t.bind("change",n),t.bind("remove",n)}),Y.bind("ready",function(){var e,t,n;Y.notifications.container=J("#customize-notifications-area"),Y.notifications.bind("change",_.debounce(function(){Y.notifications.render()})),e=J(".wp-full-overlay-sidebar-content"),Y.notifications.bind("rendered",function(){e.css("top",""),0!==Y.notifications.count()&&(t=Y.notifications.container.outerHeight()+1,n=parseInt(e.css("top"),10),e.css("top",n+t+"px")),Y.notifications.trigger("sidebarTopUpdated")}),Y.notifications.render()}),s=Y.state,c=s.instance("saved"),l=s.instance("saving"),f=s.instance("trashing"),m=s.instance("activated"),e=s.instance("processing"),I=s.instance("paneVisible"),H=s.instance("expandedPanel"),L=s.instance("expandedSection"),g=s.instance("changesetStatus"),v=s.instance("selectedChangesetStatus"),w=s.instance("changesetDate"),b=s.instance("selectedChangesetDate"),M=s.instance("previewerAlive"),O=s.instance("editShortcutVisibility"),C=s.instance("changesetLocked"),s.bind("change",function(){var e;m()?""===g.get()&&c()?(Y.settings.changeset.currentUserCanPublish?d.val(Y.l10n.published):d.val(Y.l10n.saved),i.find(".screen-reader-text").text(Y.l10n.close)):("draft"===v()?c()&&v()===g()?d.val(Y.l10n.draftSaved):d.val(Y.l10n.saveDraft):"future"===v()?!c()||v()!==g()||w.get()!==b.get()?d.val(Y.l10n.schedule):d.val(Y.l10n.scheduled):Y.settings.changeset.currentUserCanPublish&&d.val(Y.l10n.publish),i.find(".screen-reader-text").text(Y.l10n.cancel)):(d.val(Y.l10n.activate),i.find(".screen-reader-text").text(Y.l10n.cancel)),e=!l()&&!f()&&!C()&&(!m()||!c()||g()!==v()&&""!==g()||"future"===v()&&w.get()!==b.get()),d.prop("disabled",!e)}),v.validate=function(e){return""===e||"auto-draft"===e?null:e},S=Y.settings.changeset.currentUserCanPublish?"publish":"draft",g(Y.settings.changeset.status),C(Boolean(Y.settings.changeset.lockUser)),w(Y.settings.changeset.publishDate),b(Y.settings.changeset.publishDate),v(""===Y.settings.changeset.status||"auto-draft"===Y.settings.changeset.status?S:Y.settings.changeset.status),v.link(g),c(!0),""===g()&&Y.each(function(e){e._dirty&&c(!1)}),l(!1),m(Y.settings.theme.active),e(0),I(!0),H(!1),L(!1),M(!0),O("visible"),Y.bind("change",function(){s("saved").get()&&s("saved").set(!1)}),Y.settings.changeset.branching&&c.bind(function(e){e||r(!0)}),l.bind(function(e){o.toggleClass("saving",e)}),f.bind(function(e){o.toggleClass("trashing",e)}),Y.bind("saved",function(e){s("saved").set(!0),"publish"===e.changeset_status&&s("activated").set(!0)}),m.bind(function(e){e&&Y.trigger("activated")}),r=function(e){var t,n;if(history.replaceState){if((t=document.createElement("a")).href=location.href,n=Y.utils.parseQueryString(t.search.substr(1)),e){if(n.changeset_uuid===Y.settings.changeset.uuid)return;n.changeset_uuid=Y.settings.changeset.uuid}else{if(!n.changeset_uuid)return;delete n.changeset_uuid}t.search=J.param(n),history.replaceState({},document.title,t.href)}},Y.settings.changeset.branching&&g.bind(function(e){r(""!==e&&"publish"!==e&&"trash"!==e)}),j=Y.OverlayNotification.extend({templateId:"customize-changeset-locked-notification",lockUser:null,initialize:function(e,t){e=e||"changeset_locked",t=_.extend({message:"",type:"warning",containerClasses:"",lockUser:{}},t);t.containerClasses+=" notification-changeset-locked",Y.OverlayNotification.prototype.initialize.call(this,e,t)},render:function(){var t,n,i=this,e=_.extend({allowOverride:!1,returnUrl:Y.settings.url.return,previewUrl:Y.previewer.previewUrl.get(),frontendPreviewUrl:Y.previewer.getFrontendPreviewUrl()},this),a=Y.OverlayNotification.prototype.render.call(e);return Y.requestChangesetUpdate({},{autosave:!0}).fail(function(e){e.autosaved||a.find(".notice-error").prop("hidden",!1).text(e.message||Y.l10n.unknownRequestFail)}),(t=a.find(".customize-notice-take-over-button")).on("click",function(e){e.preventDefault(),n||(t.addClass("disabled"),(n=wp.ajax.post("customize_override_changeset_lock",{wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.override_lock})).done(function(){Y.notifications.remove(i.code),Y.state("changesetLocked").set(!1)}),n.fail(function(e){e=e.message||Y.l10n.unknownRequestFail;a.find(".notice-error").prop("hidden",!1).text(e),n.always(function(){t.removeClass("disabled")})}),n.always(function(){n=null}))}),a}}),Y.settings.changeset.lockUser&&F({allowOverride:!0}),J(document).on("heartbeat-send.update_lock_notice",function(e,t){t.check_changeset_lock=!0,t.changeset_uuid=Y.settings.changeset.uuid}),J(document).on("heartbeat-tick.update_lock_notice",function(e,t){var n,i="changeset_locked";t.customize_changeset_lock_user&&((n=Y.notifications(i))&&n.lockUser.id!==Y.settings.changeset.lockUser.id&&Y.notifications.remove(i),F({lockUser:t.customize_changeset_lock_user}))}),Y.bind("error",function(e){"changeset_locked"===e.code&&e.lock_user&&F({lockUser:e.lock_user})}),T=!(S=[]),Y.settings.changeset.autosaved&&(Y.state("saved").set(!1),S.push("customize_autosaved")),Y.settings.changeset.branching||Y.settings.changeset.status&&"auto-draft"!==Y.settings.changeset.status||S.push("changeset_uuid"),0<S.length&&(S=S,e=document.createElement("a"),x=0,e.href=location.href,y=Y.utils.parseQueryString(e.search.substr(1)),_.each(S,function(e){void 0!==y[e]&&(x+=1,delete y[e])}),0!==x)&&(e.search=J.param(y),history.replaceState({},document.title,e.href)),(Y.settings.changeset.latestAutoDraftUuid||Y.settings.changeset.hasAutosaveRevision)&&(z="autosave_available",Y.notifications.add(new Y.Notification(z,{message:Y.l10n.autosaveNotice,type:"warning",dismissible:!0,render:function(){var e=Y.Notification.prototype.render.call(this),t=e.find("a");return t.prop("href",q()),t.on("click",function(e){e.preventDefault(),location.replace(q())}),e.find(".notice-dismiss").on("click",Q),e}})),Y.bind("change",k=function(){Q(),Y.notifications.remove(z),Y.unbind("change",k),Y.state("changesetStatus").unbind(k)}),Y.state("changesetStatus").bind(k)),parseInt(J("#customize-info").data("block-theme"),10)&&(S=Y.l10n.blockThemeNotification,Y.notifications.add(new Y.Notification("site_editor_block_theme_notice",{message:S,type:"info",dismissible:!1,render:function(){var e=Y.Notification.prototype.render.call(this),t=e.find("button.switch-to-editor");return t.on("click",function(e){e.preventDefault(),location.assign(t.data("action"))}),e}}))),Y.previewer.previewUrl()?Y.previewer.refresh():Y.previewer.previewUrl(Y.settings.url.home),d.on("click",function(e){Y.previewer.save(),e.preventDefault()}).on("keydown",function(e){9!==e.which&&(13===e.which&&Y.previewer.save(),e.preventDefault())}),i.on("keydown",function(e){9!==e.which&&(13===e.which&&this.click(),e.preventDefault())}),J(".collapse-sidebar").on("click",function(){Y.state("paneVisible").set(!Y.state("paneVisible").get())}),Y.state("paneVisible").bind(function(e){t.toggleClass("preview-only",!e),t.toggleClass("expanded",e),t.toggleClass("collapsed",!e),e?J(".collapse-sidebar").attr({"aria-expanded":"true","aria-label":Y.l10n.collapseSidebar}):J(".collapse-sidebar").attr({"aria-expanded":"false","aria-label":Y.l10n.expandSidebar})}),o.on("keydown",function(e){var t,n=[],i=[],a=[];27===e.which&&(J(e.target).is("body")||J.contains(J("#customize-controls")[0],e.target))&&null===e.target.closest(".block-editor-writing-flow")&&null===e.target.closest(".block-editor-block-list__block-popover")&&(Y.control.each(function(e){e.expanded&&e.expanded()&&_.isFunction(e.collapse)&&n.push(e)}),Y.section.each(function(e){e.expanded()&&i.push(e)}),Y.panel.each(function(e){e.expanded()&&a.push(e)}),0<n.length&&0===i.length&&(n.length=0),t=n[0]||i[0]||a[0])&&("themes"===t.params.type?o.hasClass("modal-open")?t.closeDetails():Y.panel.has("themes")&&Y.panel("themes").collapse():(t.collapse(),e.preventDefault()))}),J(".customize-controls-preview-toggle").on("click",function(){Y.state("paneVisible").set(!Y.state("paneVisible").get())}),P=J(".wp-full-overlay-sidebar-content"),I=function(e){var t=Y.state("expandedSection").get(),n=Y.state("expandedPanel").get();if(D&&D.element&&(R(D.element),D.element.find(".description").off("toggled",E)),!e)if(!t&&n&&n.contentContainer)e=n;else{if(n||!t||!t.contentContainer)return void(D=!1);e=t}(n=e.contentContainer.find(".customize-section-title, .panel-meta").first()).length?((D={instance:e,element:n,parent:n.closest(".customize-pane-child"),height:n.outerHeight()}).element.find(".description").on("toggled",E),t&&B(D.element,D.parent)):D=!1},Y.state("expandedSection").bind(I),Y.state("expandedPanel").bind(I),P.on("scroll",_.throttle(function(){var e,t;D&&(e=P.scrollTop(),t=N?e===N?0:N<e?1:-1:1,N=e,0!==t)&&W(D,e,t)},8)),Y.notifications.bind("sidebarTopUpdated",function(){D&&D.element.hasClass("is-sticky")&&D.element.css("top",P.css("top"))}),R=function(e){e.hasClass("is-sticky")&&e.removeClass("is-sticky").addClass("maybe-sticky is-in-view").css("top",P.scrollTop()+"px")},B=function(e,t){e.hasClass("is-in-view")&&(e.removeClass("maybe-sticky is-in-view").css({width:"",top:""}),t.css("padding-top",""))},E=function(){D.height=D.element.outerHeight()},W=function(e,t,n){var i=e.element,a=e.parent,e=e.height,o=parseInt(i.css("top"),10),s=i.hasClass("maybe-sticky"),r=i.hasClass("is-sticky"),c=i.hasClass("is-in-view");if(-1===n){if(!s&&e<=t)s=!0,i.addClass("maybe-sticky");else if(0===t)return i.removeClass("maybe-sticky is-in-view is-sticky").css({top:"",width:""}),void a.css("padding-top","");c&&!r?t<=o&&i.addClass("is-sticky").css({top:P.css("top"),width:a.outerWidth()+"px"}):s&&!c&&(i.addClass("is-in-view").css("top",t-e+"px"),a.css("padding-top",e+"px"))}else r&&(o=t,i.removeClass("is-sticky").css({top:o+"px",width:""})),c&&o+e<t&&(i.removeClass("is-in-view"),a.css("padding-top",""))},Y.previewedDevice=Y.state("previewedDevice"),Y.bind("ready",function(){_.find(Y.settings.previewableDevices,function(e,t){if(!0===e.default)return Y.previewedDevice.set(t),!0})}),a.find(".devices button").on("click",function(e){Y.previewedDevice.set(J(e.currentTarget).data("device"))}),Y.previewedDevice.bind(function(e){var t=J(".wp-full-overlay"),n="";a.find(".devices button").removeClass("active").attr("aria-pressed",!1),a.find(".devices .preview-"+e).addClass("active").attr("aria-pressed",!0),J.each(Y.settings.previewableDevices,function(e){n+=" preview-"+e}),t.removeClass(n).addClass("preview-"+e)}),n.length&&Y("blogname",function(t){function e(){var e=t()||"";n.text(e.toString().trim()||Y.l10n.untitledBlogName)}t.bind(e),e()}),h=new Y.Messenger({url:Y.settings.url.parent,channel:"loader"}),U=!1,h.bind("back",function(){U=!0}),Y.bind("change",V),Y.state("selectedChangesetStatus").bind(V),Y.state("selectedChangesetDate").bind(V),h.bind("confirm-close",function(){$().done(function(){h.send("confirmed-close",!0)}).fail(function(){h.send("confirmed-close",!1)})}),i.on("click.customize-controls-close",function(e){e.preventDefault(),U?h.send("close"):$().done(function(){J(window).off("beforeunload.customize-confirm"),window.location.href=i.prop("href")})}),J.each(["saved","change"],function(e,t){Y.bind(t,function(){h.send(t)})}),Y.bind("title",function(e){h.send("title",e)}),Y.settings.changeset.branching&&h.send("changeset-uuid",Y.settings.changeset.uuid),h.send("ready"),J.each({background_image:{controls:["background_preset","background_position","background_size","background_repeat","background_attachment"],callback:function(e){return!!e}},show_on_front:{controls:["page_on_front","page_for_posts"],callback:function(e){return"page"===e}},header_textcolor:{controls:["header_textcolor"],callback:function(e){return"blank"!==e}}},function(e,i){Y(e,function(n){J.each(i.controls,function(e,t){Y.control(t,function(t){function e(e){t.container.toggle(i.callback(e))}e(n.get()),n.bind(e)})})})}),Y.control("background_preset",function(e){var i={default:[!1,!1,!1,!1],fill:[!0,!1,!1,!1],fit:[!0,!1,!0,!1],repeat:[!0,!1,!1,!0],custom:[!0,!0,!0,!0]},a={default:[_wpCustomizeBackground.defaults["default-position-x"],_wpCustomizeBackground.defaults["default-position-y"],_wpCustomizeBackground.defaults["default-size"],_wpCustomizeBackground.defaults["default-repeat"],_wpCustomizeBackground.defaults["default-attachment"]],fill:["left","top","cover","no-repeat","fixed"],fit:["left","top","contain","no-repeat","fixed"],repeat:["left","top","auto","repeat","scroll"]},t=function(n){_.each(["background_position","background_size","background_repeat","background_attachment"],function(e,t){e=Y.control(e);e&&e.container.toggle(i[n][t])})},n=function(n){_.each(["background_position_x","background_position_y","background_size","background_repeat","background_attachment"],function(e,t){e=Y(e);e&&e.set(a[n][t])})},o=e.setting.get();t(o),e.setting.bind("change",function(e){t(e),"custom"!==e&&n(e)})}),Y.control("background_repeat",function(t){t.elements[0].unsync(Y("background_repeat")),t.element=new Y.Element(t.container.find("input")),t.element.set("no-repeat"!==t.setting()),t.element.bind(function(e){t.setting.set(e?"repeat":"no-repeat")}),t.setting.bind(function(e){t.element.set("no-repeat"!==e)})}),Y.control("background_attachment",function(t){t.elements[0].unsync(Y("background_attachment")),t.element=new Y.Element(t.container.find("input")),t.element.set("fixed"!==t.setting()),t.element.bind(function(e){t.setting.set(e?"scroll":"fixed")}),t.setting.bind(function(e){t.element.set("fixed"!==e)})}),Y.control("display_header_text",function(t){var n="";t.elements[0].unsync(Y("header_textcolor")),t.element=new Y.Element(t.container.find("input")),t.element.set("blank"!==t.setting()),t.element.bind(function(e){e||(n=Y("header_textcolor").get()),t.setting.set(e?n:"blank")}),t.setting.bind(function(e){t.element.set("blank"!==e)})}),Y("show_on_front","page_on_front","page_for_posts",function(i,a,o){function e(){var e="show_on_front_page_collision",t=parseInt(a(),10),n=parseInt(o(),10);"page"===i()&&(this===a&&0<t&&Y.previewer.previewUrl.set(Y.settings.url.home),this===o)&&0<n&&Y.previewer.previewUrl.set(Y.settings.url.home+"?page_id="+n),"page"===i()&&t&&n&&t===n?i.notifications.add(new Y.Notification(e,{type:"error",message:Y.l10n.pageOnFrontError})):i.notifications.remove(e)}i.bind(e),a.bind(e),o.bind(e),e.call(i,i()),Y.control("show_on_front",function(e){e.deferred.embedded.done(function(){e.container.append(e.getNotificationsContainerElement())})})}),A=J.Deferred(),Y.section("custom_css",function(t){t.deferred.embedded.done(function(){t.expanded()?A.resolve(t):t.expanded.bind(function(e){e&&A.resolve(t)})})}),A.done(function(e){var t=Y.control("custom_css");t.container.find(".customize-control-title:first").addClass("screen-reader-text"),e.container.find(".section-description-buttons .section-description-close").on("click",function(){e.container.find(".section-meta .customize-section-description:first").removeClass("open").slideUp(),e.container.find(".customize-help-toggle").attr("aria-expanded","false").focus()}),t&&!t.setting.get()&&(e.container.find(".section-meta .customize-section-description:first").addClass("open").show().trigger("toggled"),e.container.find(".customize-help-toggle").attr("aria-expanded","true"))}),Y.control("header_video",function(n){n.deferred.embedded.done(function(){function e(){var e=Y.section(n.section()),t="video_header_not_available";e&&(n.active.get()?e.notifications.remove(t):e.notifications.add(new Y.Notification(t,{type:"info",message:Y.l10n.videoHeaderNotice})))}e(),n.active.bind(e)})}),Y.previewer.bind("selective-refresh-setting-validities",function(e){Y._handleSettingValidities({settingValidities:e,focusInvalidControl:!1})}),Y.previewer.bind("focus-control-for-setting",function(n){var i=[];Y.control.each(function(e){var t=_.pluck(e.settings,"id");-1!==_.indexOf(t,n)&&i.push(e)}),i.length&&(i.sort(function(e,t){return e.priority()-t.priority()}),i[0].focus())}),Y.previewer.bind("refresh",function(){Y.previewer.refresh()}),Y.state("paneVisible").bind(function(e){var t=window.matchMedia?window.matchMedia("screen and ( max-width: 640px )").matches:J(window).width()<=640;Y.state("editShortcutVisibility").set(e||t?"visible":"hidden")}),window.matchMedia&&window.matchMedia("screen and ( max-width: 640px )").addListener(function(){var e=Y.state("paneVisible");e.callbacks.fireWith(e,[e.get(),e.get()])}),Y.previewer.bind("edit-shortcut-visibility",function(e){Y.state("editShortcutVisibility").set(e)}),Y.state("editShortcutVisibility").bind(function(e){Y.previewer.send("edit-shortcut-visibility",e)}),Y.bind("change",function e(){var t,n,i,a=!1;function o(e){e||Y.settings.changeset.autosaved||(Y.settings.changeset.autosaved=!0,Y.previewer.send("autosaving"))}Y.unbind("change",e),Y.state("saved").bind(o),o(Y.state("saved").get()),n=function(){a||(a=!0,Y.requestChangesetUpdate({},{autosave:!0}).always(function(){a=!1})),i()},(i=function(){clearTimeout(t),t=setTimeout(function(){n()},Y.settings.timeouts.changesetAutoSave)})(),J(document).on("visibilitychange.wp-customize-changeset-update",function(){document.hidden&&n()}),J(window).on("beforeunload.wp-customize-changeset-update",function(){n()})}),J(document).one("tinymce-editor-setup",function(){window.tinymce.ui.FloatPanel&&(!window.tinymce.ui.FloatPanel.zIndex||window.tinymce.ui.FloatPanel.zIndex<500001)&&(window.tinymce.ui.FloatPanel.zIndex=500001)}),o.addClass("ready"),Y.trigger("ready"))})}((wp,jQuery)); \ No newline at end of file
+!function(J){var a,s,t,e,n,i,Y=wp.customize,o=window.matchMedia("(prefers-reduced-motion: reduce)"),r=o.matches;o.addEventListener("change",function(e){r=e.matches}),Y.OverlayNotification=Y.Notification.extend({loading:!1,initialize:function(e,t){var n=this;Y.Notification.prototype.initialize.call(n,e,t),n.containerClasses+=" notification-overlay",n.loading&&(n.containerClasses+=" notification-loading")},render:function(){var e=Y.Notification.prototype.render.call(this);return e.on("keydown",_.bind(this.handleEscape,this)),e},handleEscape:function(e){var t=this;27===e.which&&(e.stopPropagation(),t.dismissible)&&t.parent&&t.parent.remove(t.code)}}),Y.Notifications=Y.Values.extend({alt:!1,defaultConstructor:Y.Notification,initialize:function(e){var t=this;Y.Values.prototype.initialize.call(t,e),_.bindAll(t,"constrainFocus"),t._addedIncrement=0,t._addedOrder={},t.bind("add",function(e){t.trigger("change",e)}),t.bind("removed",function(e){t.trigger("change",e)})},count:function(){return _.size(this._value)},add:function(e,t){var n,i=this,t="string"==typeof e?(n=e,t):(n=e.code,e);return i.has(n)||(i._addedIncrement+=1,i._addedOrder[n]=i._addedIncrement),Y.Values.prototype.add.call(i,n,t)},remove:function(e){return delete this._addedOrder[e],Y.Values.prototype.remove.call(this,e)},get:function(e){var a,o=this,t=_.values(o._value);return _.extend({sort:!1},e).sort&&(a={error:4,warning:3,success:2,info:1},t.sort(function(e,t){var n=0,i=0;return(n=_.isUndefined(a[e.type])?n:a[e.type])!==(i=_.isUndefined(a[t.type])?i:a[t.type])?i-n:o._addedOrder[t.code]-o._addedOrder[e.code]})),t},render:function(){var e,t,n,i=this,a=!1,o=[],s={};i.container&&i.container.length&&(e=i.get({sort:!0}),i.container.toggle(0!==e.length),i.container.is(i.previousContainer)&&_.isEqual(e,i.previousNotifications)||((n=i.container.children("ul").first()).length||(n=J("<ul></ul>"),i.container.append(n)),n.find("> [data-code]").remove(),_.each(i.previousNotifications,function(e){s[e.code]=e}),_.each(e,function(e){var t;!wp.a11y||s[e.code]&&_.isEqual(e.message,s[e.code].message)||wp.a11y.speak(e.message,"assertive"),t=J(e.render()),e.container=t,n.append(t),e.extended(Y.OverlayNotification)&&o.push(e)}),(t=Boolean(o.length))!==(a=i.previousNotifications?Boolean(_.find(i.previousNotifications,function(e){return e.extended(Y.OverlayNotification)})):a)&&(J(document.body).toggleClass("customize-loading",t),i.container.toggleClass("has-overlay-notifications",t),t?(i.previousActiveElement=document.activeElement,J(document).on("keydown",i.constrainFocus)):J(document).off("keydown",i.constrainFocus)),t?(i.focusContainer=o[o.length-1].container,i.focusContainer.prop("tabIndex",-1),((a=i.focusContainer.find(":focusable")).length?a.first():i.focusContainer).focus()):i.previousActiveElement&&(J(i.previousActiveElement).trigger("focus"),i.previousActiveElement=null),i.previousNotifications=e,i.previousContainer=i.container,i.trigger("rendered")))},constrainFocus:function(e){var t,n=this;e.stopPropagation(),9===e.which&&(0===(t=n.focusContainer.find(":focusable")).length&&(t=n.focusContainer),!J.contains(n.focusContainer[0],e.target)||!J.contains(n.focusContainer[0],document.activeElement)||t.last().is(e.target)&&!e.shiftKey?(e.preventDefault(),t.first().focus()):t.first().is(e.target)&&e.shiftKey&&(e.preventDefault(),t.last().focus()))}}),Y.Setting=Y.Value.extend({defaults:{transport:"refresh",dirty:!1},initialize:function(e,t,n){var i=this,n=_.extend({previewer:Y.previewer},i.defaults,n||{});Y.Value.prototype.initialize.call(i,t,n),i.id=e,i._dirty=n.dirty,i.notifications=new Y.Notifications,i.bind(i.preview)},preview:function(){var e=this,t=e.transport;"postMessage"===(t="postMessage"!==t||Y.state("previewerAlive").get()?t:"refresh")?e.previewer.send("setting",[e.id,e()]):"refresh"===t&&e.previewer.refresh()},findControls:function(){var n=this,i=[];return Y.control.each(function(t){_.each(t.settings,function(e){e.id===n.id&&i.push(t)})}),i}}),Y._latestRevision=0,Y._lastSavedRevision=0,Y._latestSettingRevisions={},Y.bind("change",function(e){Y._latestRevision+=1,Y._latestSettingRevisions[e.id]=Y._latestRevision}),Y.bind("ready",function(){Y.bind("add",function(e){e._dirty&&(Y._latestRevision+=1,Y._latestSettingRevisions[e.id]=Y._latestRevision)})}),Y.dirtyValues=function(n){var i={};return Y.each(function(e){var t;e._dirty&&(t=Y._latestSettingRevisions[e.id],Y.state("changesetStatus").get()&&n&&n.unsaved&&(_.isUndefined(t)||t<=Y._lastSavedRevision)||(i[e.id]=e.get()))}),i},Y.requestChangesetUpdate=function(n,e){var t,i={},a=new J.Deferred;if(0!==Y.state("processing").get())a.reject("already_processing");else if(e=_.extend({title:null,date:null,autosave:!1,force:!1},e),n&&_.extend(i,n),_.each(Y.dirtyValues({unsaved:!0}),function(e,t){n&&null===n[t]||(i[t]=_.extend({},i[t]||{},{value:e}))}),Y.trigger("changeset-save",i,e),!e.force&&_.isEmpty(i)&&null===e.title&&null===e.date)a.resolve({});else{if(e.status)return a.reject({code:"illegal_status_in_changeset_update"}).promise();if(e.date&&e.autosave)return a.reject({code:"illegal_autosave_with_date_gmt"}).promise();Y.state("processing").set(Y.state("processing").get()+1),a.always(function(){Y.state("processing").set(Y.state("processing").get()-1)}),delete(t=Y.previewer.query({excludeCustomizedSaved:!0})).customized,_.extend(t,{nonce:Y.settings.nonce.save,customize_theme:Y.settings.theme.stylesheet,customize_changeset_data:JSON.stringify(i)}),null!==e.title&&(t.customize_changeset_title=e.title),null!==e.date&&(t.customize_changeset_date=e.date),!1!==e.autosave&&(t.customize_changeset_autosave="true"),Y.trigger("save-request-params",t),(e=wp.ajax.post("customize_save",t)).done(function(e){var n={};Y._lastSavedRevision=Math.max(Y._latestRevision,Y._lastSavedRevision),Y.state("changesetStatus").set(e.changeset_status),e.changeset_date&&Y.state("changesetDate").set(e.changeset_date),a.resolve(e),Y.trigger("changeset-saved",e),e.setting_validities&&_.each(e.setting_validities,function(e,t){!0===e&&_.isObject(i[t])&&!_.isUndefined(i[t].value)&&(n[t]=i[t].value)}),Y.previewer.send("changeset-saved",_.extend({},e,{saved_changeset_values:n}))}),e.fail(function(e){a.reject(e),Y.trigger("changeset-error",e)}),e.always(function(e){e.setting_validities&&Y._handleSettingValidities({settingValidities:e.setting_validities})})}return a.promise()},Y.utils.bubbleChildValueChanges=function(n,e){J.each(e,function(e,t){n[t].bind(function(e,t){n.parent&&e!==t&&n.parent.trigger("change",n)})})},o=function(e){var t,n,i=this,a=function(){var e;i.extended(Y.Panel)&&1<(n=i.sections()).length&&n.forEach(function(e){e.expanded()&&e.collapse()}),e=(i.extended(Y.Panel)||i.extended(Y.Section))&&i.expanded&&i.expanded()?i.contentContainer:i.container,(n=0===(n=e.find(".control-focus:first")).length?e.find("input, select, textarea, button, object, a[href], [tabindex]").filter(":visible").first():n).focus()};(e=e||{}).completeCallback?(t=e.completeCallback,e.completeCallback=function(){a(),t()}):e.completeCallback=a,Y.state("paneVisible").set(!0),i.expand?i.expand(e):e.completeCallback()},Y.utils.prioritySort=function(e,t){return e.priority()===t.priority()&&"number"==typeof e.params.instanceNumber&&"number"==typeof t.params.instanceNumber?e.params.instanceNumber-t.params.instanceNumber:e.priority()-t.priority()},Y.utils.isKeydownButNotEnterEvent=function(e){return"keydown"===e.type&&13!==e.which},Y.utils.areElementListsEqual=function(e,t){return e.length===t.length&&-1===_.indexOf(_.map(_.zip(e,t),function(e){return J(e[0]).is(e[1])}),!1)},Y.utils.highlightButton=function(e,t){var n,i="button-see-me",a=!1;function o(){a=!0}return(n=_.extend({delay:0,focusTarget:e},t)).focusTarget.on("focusin",o),setTimeout(function(){n.focusTarget.off("focusin",o),a||(e.addClass(i),e.one("animationend",function(){e.removeClass(i)}))},n.delay),o},Y.utils.getCurrentTimestamp=function(){var e=_.now(),t=new Date(Y.settings.initialServerDate.replace(/-/g,"/")),e=e-Y.settings.initialClientTimestamp;return e+=Y.settings.initialClientTimestamp-Y.settings.initialServerTimestamp,t.setTime(t.getTime()+e),t.getTime()},Y.utils.getRemainingTime=function(e){e=e instanceof Date?e.getTime():"string"==typeof e?new Date(e.replace(/-/g,"/")).getTime():e,e-=Y.utils.getCurrentTimestamp();return Math.ceil(e/1e3)},t=document.createElement("div"),e={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},n=_.find(_.keys(e),function(e){return!_.isUndefined(t.style[e])}),s=n?e[n]:null,a=Y.Class.extend({defaultActiveArguments:{duration:"fast",completeCallback:J.noop},defaultExpandedArguments:{duration:"fast",completeCallback:J.noop},containerType:"container",defaults:{title:"",description:"",priority:100,type:"default",content:null,active:!0,instanceNumber:null},initialize:function(e,t){var n=this;n.id=e,a.instanceCounter||(a.instanceCounter=0),a.instanceCounter++,J.extend(n,{params:_.defaults(t.params||t,n.defaults)}),n.params.instanceNumber||(n.params.instanceNumber=a.instanceCounter),n.notifications=new Y.Notifications,n.templateSelector=n.params.templateId||"customize-"+n.containerType+"-"+n.params.type,n.container=J(n.params.content),0===n.container.length&&(n.container=J(n.getContainer())),n.headContainer=n.container,n.contentContainer=n.getContent(),n.container=n.container.add(n.contentContainer),n.deferred={embedded:new J.Deferred},n.priority=new Y.Value,n.active=new Y.Value,n.activeArgumentsQueue=[],n.expanded=new Y.Value,n.expandedArgumentsQueue=[],n.active.bind(function(e){var t=n.activeArgumentsQueue.shift(),t=J.extend({},n.defaultActiveArguments,t);e=e&&n.isContextuallyActive(),n.onChangeActive(e,t)}),n.expanded.bind(function(e){var t=n.expandedArgumentsQueue.shift(),t=J.extend({},n.defaultExpandedArguments,t);n.onChangeExpanded(e,t)}),n.deferred.embedded.done(function(){n.setupNotifications(),n.attachEvents()}),Y.utils.bubbleChildValueChanges(n,["priority","active"]),n.priority.set(n.params.priority),n.active.set(n.params.active),n.expanded.set(!1)},getNotificationsContainerElement:function(){return this.contentContainer.find(".customize-control-notifications-container:first")},setupNotifications:function(){var e,t=this;t.notifications.container=t.getNotificationsContainerElement(),t.expanded.bind(e=function(){t.expanded.get()&&t.notifications.render()}),e(),t.notifications.bind("change",_.debounce(e))},ready:function(){},_children:function(t,e){var n=this,i=[];return Y[e].each(function(e){e[t].get()===n.id&&i.push(e)}),i.sort(Y.utils.prioritySort),i},isContextuallyActive:function(){throw new Error("Container.isContextuallyActive() must be overridden in a subclass.")},onChangeActive:function(e,t){var n,i=this,a=i.headContainer;t.unchanged?t.completeCallback&&t.completeCallback():(n="resolved"===Y.previewer.deferred.active.state()?t.duration:0,i.extended(Y.Panel)&&(Y.panel.each(function(e){e!==i&&e.expanded()&&(n=0)}),e||_.each(i.sections(),function(e){e.collapse({duration:0})})),J.contains(document,a.get(0))?e?a.slideDown(n,t.completeCallback):i.expanded()?i.collapse({duration:n,completeCallback:function(){a.slideUp(n,t.completeCallback)}}):a.slideUp(n,t.completeCallback):(a.toggle(e),t.completeCallback&&t.completeCallback()))},_toggleActive:function(e,t){return t=t||{},e&&this.active.get()||!e&&!this.active.get()?(t.unchanged=!0,this.onChangeActive(this.active.get(),t),!1):(t.unchanged=!1,this.activeArgumentsQueue.push(t),this.active.set(e),!0)},activate:function(e){return this._toggleActive(!0,e)},deactivate:function(e){return this._toggleActive(!1,e)},onChangeExpanded:function(){throw new Error("Must override with subclass.")},_toggleExpanded:function(e,t){var n,i=this;return n=(t=t||{}).completeCallback,!(e&&!i.active()||(Y.state("paneVisible").set(!0),t.completeCallback=function(){n&&n.apply(i,arguments),e?i.container.trigger("expanded"):i.container.trigger("collapsed")},e&&i.expanded.get()||!e&&!i.expanded.get()?(t.unchanged=!0,i.onChangeExpanded(i.expanded.get(),t),1):(t.unchanged=!1,i.expandedArgumentsQueue.push(t),i.expanded.set(e),0)))},expand:function(e){return this._toggleExpanded(!0,e)},collapse:function(e){return this._toggleExpanded(!1,e)},_animateChangeExpanded:function(t){var a,o,n,i;!s||r?_.defer(function(){t&&t()}):(o=(a=this).contentContainer,i=o.closest(".wp-full-overlay").add(o),a.panel&&""!==a.panel()&&!Y.panel(a.panel()).contentContainer.hasClass("skip-transition")||(i=i.add("#customize-info, .customize-pane-parent")),n=function(e){2===e.eventPhase&&J(e.target).is(o)&&(o.off(s,n),i.removeClass("busy"),t)&&t()},o.on(s,n),i.addClass("busy"),_.defer(function(){var e=o.closest(".wp-full-overlay-sidebar-content"),t=e.scrollTop(),n=o.data("previous-scrollTop")||0,i=a.expanded();i&&0<t?(o.css("top",t+"px"),o.data("previous-scrollTop",t)):!i&&0<t+n&&(o.css("top",n-t+"px"),e.scrollTop(n))}))},focus:o,getContainer:function(){var e=this,t=0!==J("#tmpl-"+e.templateSelector).length?wp.template(e.templateSelector):wp.template("customize-"+e.containerType+"-default");return t&&e.container?t(_.extend({id:e.id},e.params)).toString().trim():"<li></li>"},getContent:function(){var e=this.container,t=e.find(".accordion-section-content, .control-panel-content").first(),n="sub-"+e.attr("id"),i=n,a=e.attr("aria-owns");return e.attr("aria-owns",i=a?i+" "+a:i),t.detach().attr({id:n,class:"customize-pane-child "+t.attr("class")+" "+e.attr("class")})}}),Y.Section=a.extend({containerType:"section",containerParent:"#customize-theme-controls",containerPaneParent:".customize-pane-parent",defaults:{title:"",description:"",priority:100,type:"default",content:null,active:!0,instanceNumber:null,panel:null,customizeAction:""},initialize:function(e,t){var n=this,i=t.params||t;i.type||_.find(Y.sectionConstructor,function(e,t){return e===n.constructor&&(i.type=t,!0)}),a.prototype.initialize.call(n,e,i),n.id=e,n.panel=new Y.Value,n.panel.bind(function(e){J(n.headContainer).toggleClass("control-subsection",!!e)}),n.panel.set(n.params.panel||""),Y.utils.bubbleChildValueChanges(n,["panel"]),n.embed(),n.deferred.embedded.done(function(){n.ready()})},embed:function(){var e,n=this;n.containerParent=Y.ensure(n.containerParent),n.panel.bind(e=function(e){var t;e?Y.panel(e,function(e){e.deferred.embedded.done(function(){t=e.contentContainer,n.headContainer.parent().is(t)||t.append(n.headContainer),n.contentContainer.parent().is(n.headContainer)||n.containerParent.append(n.contentContainer),n.deferred.embedded.resolve()})}):(t=Y.ensure(n.containerPaneParent),n.headContainer.parent().is(t)||t.append(n.headContainer),n.contentContainer.parent().is(n.headContainer)||n.containerParent.append(n.contentContainer),n.deferred.embedded.resolve())}),e(n.panel.get())},attachEvents:function(){var e,t,n=this;n.container.hasClass("cannot-expand")||(n.container.find(".accordion-section-title, .customize-section-back").on("click keydown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.expanded()?n.collapse():n.expand())}),n.container.find(".customize-section-title .customize-help-toggle").on("click",function(){(e=n.container.find(".section-meta")).hasClass("cannot-expand")||((t=e.find(".customize-section-description:first")).toggleClass("open"),t.slideToggle(n.defaultExpandedArguments.duration,function(){t.trigger("toggled")}),J(this).attr("aria-expanded",function(e,t){return"true"===t?"false":"true"}))}))},isContextuallyActive:function(){var e=this.controls(),t=0;return _(e).each(function(e){e.active()&&(t+=1)}),0!==t},controls:function(){return this._children("section","control")},onChangeExpanded:function(e,t){var n,i=this,a=i.headContainer.closest(".wp-full-overlay-sidebar-content"),o=i.contentContainer,s=i.headContainer.closest(".wp-full-overlay"),r=o.find(".customize-section-back"),c=i.headContainer.find(".accordion-section-title").first();e&&!o.hasClass("open")?(n=t.unchanged?t.completeCallback:function(){i._animateChangeExpanded(function(){c.attr("tabindex","-1"),r.attr("tabindex","0"),r.trigger("focus"),o.css("top",""),a.scrollTop(0),t.completeCallback&&t.completeCallback()}),o.addClass("open"),s.addClass("section-open"),Y.state("expandedSection").set(i)}.bind(this),t.allowMultiple||Y.section.each(function(e){e!==i&&e.collapse({duration:t.duration})}),i.panel()?Y.panel(i.panel()).expand({duration:t.duration,completeCallback:n}):(t.allowMultiple||Y.panel.each(function(e){e.collapse()}),n())):!e&&o.hasClass("open")?(i.panel()&&(n=Y.panel(i.panel())).contentContainer.hasClass("skip-transition")&&n.collapse(),i._animateChangeExpanded(function(){r.attr("tabindex","-1"),c.attr("tabindex","0"),c.trigger("focus"),o.css("top",""),t.completeCallback&&t.completeCallback()}),o.removeClass("open"),s.removeClass("section-open"),i===Y.state("expandedSection").get()&&Y.state("expandedSection").set(!1)):t.completeCallback&&t.completeCallback()}}),Y.ThemesSection=Y.Section.extend({currentTheme:"",overlay:"",template:"",screenshotQueue:null,$window:null,$body:null,loaded:0,loading:!1,fullyLoaded:!1,term:"",tags:"",nextTerm:"",nextTags:"",filtersHeight:0,headerContainer:null,updateCountDebounced:null,initialize:function(e,t){var n=this;n.headerContainer=J(),n.$window=J(window),n.$body=J(document.body),Y.Section.prototype.initialize.call(n,e,t),n.updateCountDebounced=_.debounce(n.updateCount,500)},embed:function(){var n=this,e=function(e){var t;Y.panel(e,function(e){e.deferred.embedded.done(function(){t=e.contentContainer,n.headContainer.parent().is(t)||t.find(".customize-themes-full-container-container").before(n.headContainer),n.contentContainer.parent().is(n.headContainer)||n.containerParent.append(n.contentContainer),n.deferred.embedded.resolve()})})};n.panel.bind(e),e(n.panel.get())},ready:function(){var t=this;t.overlay=t.container.find(".theme-overlay"),t.template=wp.template("customize-themes-details-view"),t.container.on("keydown",function(e){t.overlay.find(".theme-wrap").is(":visible")&&(39===e.keyCode&&t.nextTheme(),37===e.keyCode&&t.previousTheme(),27===e.keyCode)&&(t.$body.hasClass("modal-open")?t.closeDetails():t.headerContainer.find(".customize-themes-section-title").focus(),e.stopPropagation())}),t.renderScreenshots=_.throttle(t.renderScreenshots,100),_.bindAll(t,"renderScreenshots","loadMore","checkTerm","filtersChecked")},isContextuallyActive:function(){return this.active()},attachEvents:function(){var e,n=this;function t(){var e=n.headerContainer.find(".customize-themes-section-title");e.toggleClass("selected",n.expanded()),e.attr("aria-expanded",n.expanded()?"true":"false"),n.expanded()||e.removeClass("details-open")}n.container.find(".customize-section-back").on("click keydown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.collapse())}),n.headerContainer=J("#accordion-section-"+n.id),n.headerContainer.on("click",".customize-themes-section-title",function(){n.headerContainer.find(".filter-details").length&&(n.headerContainer.find(".customize-themes-section-title").toggleClass("details-open").attr("aria-expanded",function(e,t){return"true"===t?"false":"true"}),n.headerContainer.find(".filter-details").slideToggle(180)),n.expanded()||n.expand()}),n.container.on("click",".theme-actions .preview-theme",function(){Y.panel("themes").loadThemePreview(J(this).data("slug"))}),n.container.on("click",".left",function(){n.previousTheme()}),n.container.on("click",".right",function(){n.nextTheme()}),n.container.on("click",".theme-backdrop, .close",function(){n.closeDetails()}),"local"===n.params.filter_type?n.container.on("input",".wp-filter-search-themes",function(e){n.filterSearch(e.currentTarget.value)}):"remote"===n.params.filter_type&&(e=_.debounce(n.checkTerm,500),n.contentContainer.on("input",".wp-filter-search",function(){Y.panel("themes").expanded()&&(e(n),n.expanded()||n.expand())}),n.contentContainer.on("click",".filter-group input",function(){n.filtersChecked(),n.checkTerm(n)})),n.contentContainer.on("click",".feature-filter-toggle",function(e){var t=J(".customize-themes-full-container"),e=J(e.currentTarget);n.filtersHeight=e.parents(".themes-filter-bar").next(".filter-drawer").height(),0<t.scrollTop()&&(t.animate({scrollTop:0},400),e.hasClass("open"))||(e.toggleClass("open").attr("aria-expanded",function(e,t){return"true"===t?"false":"true"}).parents(".themes-filter-bar").next(".filter-drawer").slideToggle(180,"linear"),e.hasClass("open")?(t=1018<window.innerWidth?50:76,n.contentContainer.find(".themes").css("margin-top",n.filtersHeight+t)):n.contentContainer.find(".themes").css("margin-top",0))}),n.contentContainer.on("click",".no-themes-local .search-dotorg-themes",function(){Y.section("wporg_themes").focus()}),n.expanded.bind(t),t(),Y.bind("ready",function(){n.contentContainer=n.container.find(".customize-themes-section"),n.contentContainer.appendTo(J(".customize-themes-full-container")),n.container.add(n.headerContainer)})},onChangeExpanded:function(e,n){var i=this,t=i.contentContainer.closest(".customize-themes-full-container");function a(){0===i.loaded&&i.loadThemes(),Y.section.each(function(e){var t;e!==i&&"themes"===e.params.type&&(t=e.contentContainer.find(".wp-filter-search").val(),i.contentContainer.find(".wp-filter-search").val(t),""===t&&""!==i.term&&"local"!==i.params.filter_type?(i.term="",i.initializeNewQuery(i.term,i.tags)):"remote"===i.params.filter_type?i.checkTerm(i):"local"===i.params.filter_type&&i.filterSearch(t),e.collapse({duration:n.duration}))}),i.contentContainer.addClass("current-section"),t.scrollTop(),t.on("scroll",_.throttle(i.renderScreenshots,300)),t.on("scroll",_.throttle(i.loadMore,300)),n.completeCallback&&n.completeCallback(),i.updateCount()}n.unchanged?n.completeCallback&&n.completeCallback():e?i.panel()&&Y.panel.has(i.panel())?Y.panel(i.panel()).expand({duration:n.duration,completeCallback:a}):a():(i.contentContainer.removeClass("current-section"),i.headerContainer.find(".filter-details").slideUp(180),t.off("scroll"),n.completeCallback&&n.completeCallback())},getContent:function(){return this.container.find(".control-section-content")},loadThemes:function(){var n,e,i=this;i.loading||(n=Math.ceil(i.loaded/100)+1,e={nonce:Y.settings.nonce.switch_themes,wp_customize:"on",theme_action:i.params.action,customized_theme:Y.settings.theme.stylesheet,page:n},"remote"===i.params.filter_type&&(e.search=i.term,e.tags=i.tags),i.headContainer.closest(".wp-full-overlay").addClass("loading"),i.loading=!0,i.container.find(".no-themes").hide(),(e=wp.ajax.post("customize_load_themes",e)).done(function(e){var t=e.themes;""!==i.nextTerm||""!==i.nextTags?(i.nextTerm&&(i.term=i.nextTerm),i.nextTags&&(i.tags=i.nextTags),i.nextTerm="",i.nextTags="",i.loading=!1,i.loadThemes()):(0!==t.length?(i.loadControls(t,n),1===n&&(_.each(i.controls().slice(0,3),function(e){e=e.params.theme.screenshot[0];e&&((new Image).src=e)}),"local"!==i.params.filter_type)&&wp.a11y.speak(Y.settings.l10n.themeSearchResults.replace("%d",e.info.results)),_.delay(i.renderScreenshots,100),("local"===i.params.filter_type||t.length<100)&&(i.fullyLoaded=!0)):0===i.loaded?(i.container.find(".no-themes").show(),wp.a11y.speak(i.container.find(".no-themes").text())):i.fullyLoaded=!0,"local"===i.params.filter_type?i.updateCount():i.updateCount(e.info.results),i.container.find(".unexpected-error").hide(),i.headContainer.closest(".wp-full-overlay").removeClass("loading"),i.loading=!1)}),e.fail(function(e){void 0===e?(i.container.find(".unexpected-error").show(),wp.a11y.speak(i.container.find(".unexpected-error").text())):"undefined"!=typeof console&&console.error&&console.error(e),i.headContainer.closest(".wp-full-overlay").removeClass("loading"),i.loading=!1}))},loadControls:function(e,t){var n=[],i=this;_.each(e,function(e){e=new Y.controlConstructor.theme(i.params.action+"_theme_"+e.id,{type:"theme",section:i.params.id,theme:e,priority:i.loaded+1});Y.control.add(e),n.push(e),i.loaded=i.loaded+1}),1!==t&&Array.prototype.push.apply(i.screenshotQueue,n)},loadMore:function(){var e,t;this.fullyLoaded||this.loading||(t=(e=this.container.closest(".customize-themes-full-container")).scrollTop()+e.height(),e.prop("scrollHeight")-3e3<t&&this.loadThemes())},filterSearch:function(e){var t,n=0,i=this,a=Y.section.has("wporg_themes")&&"remote"!==i.params.filter_type?".no-themes-local":".no-themes",o=i.controls();i.loading||(t=e.toLowerCase().trim().replace(/-/g," ").split(" "),_.each(o,function(e){e.filter(t)&&(n+=1)}),0===n?(i.container.find(a).show(),wp.a11y.speak(i.container.find(a).text())):i.container.find(a).hide(),i.renderScreenshots(),Y.reflowPaneContents(),i.updateCountDebounced(n))},checkTerm:function(e){var t;"remote"===e.params.filter_type&&(t=e.contentContainer.find(".wp-filter-search").val(),e.term!==t.trim())&&e.initializeNewQuery(t,e.tags)},filtersChecked:function(){var e=this,t=e.container.find(".filter-group").find(":checkbox"),n=[];_.each(t.filter(":checked"),function(e){n.push(J(e).prop("value"))}),0===n.length?(n="",e.contentContainer.find(".feature-filter-toggle .filter-count-0").show(),e.contentContainer.find(".feature-filter-toggle .filter-count-filters").hide()):(e.contentContainer.find(".feature-filter-toggle .theme-filter-count").text(n.length),e.contentContainer.find(".feature-filter-toggle .filter-count-0").hide(),e.contentContainer.find(".feature-filter-toggle .filter-count-filters").show()),_.isEqual(e.tags,n)||(e.loading?e.nextTags=n:"remote"===e.params.filter_type?e.initializeNewQuery(e.term,n):"local"===e.params.filter_type&&e.filterSearch(n.join(" ")))},initializeNewQuery:function(e,t){var n=this;_.each(n.controls(),function(e){e.container.remove(),Y.control.remove(e.id)}),n.loaded=0,n.fullyLoaded=!1,n.screenshotQueue=null,n.loading?(n.nextTerm=e,n.nextTags=t):(n.term=e,n.tags=t,n.loadThemes()),n.expanded()||n.expand()},renderScreenshots:function(){var o=this;null!==o.screenshotQueue&&0!==o.screenshotQueue.length||(o.screenshotQueue=_.filter(o.controls(),function(e){return!e.screenshotRendered})),o.screenshotQueue.length&&(o.screenshotQueue=_.filter(o.screenshotQueue,function(e){var t,n,i=e.container.find(".theme-screenshot"),a=i.find("img");return!(!a.length||!a.is(":hidden")&&(t=(n=o.$window.scrollTop())+o.$window.height(),a=a.offset().top,(n=n-(i=3*(n=i.height()))<=a+n&&a<=t+i)&&e.container.trigger("render-screenshot"),n))}))},getVisibleCount:function(){return this.contentContainer.find("li.customize-control:visible").length},updateCount:function(e){var t,n;e||0===e||(e=this.getVisibleCount()),n=this.contentContainer.find(".themes-displayed"),t=this.contentContainer.find(".theme-count"),0===e?t.text("0"):(n.fadeOut(180,function(){t.text(e),n.fadeIn(180)}),wp.a11y.speak(Y.settings.l10n.announceThemeCount.replace("%d",e)))},nextTheme:function(){var e=this;e.getNextTheme()&&e.showDetails(e.getNextTheme(),function(){e.overlay.find(".right").focus()})},getNextTheme:function(){var e=Y.control(this.params.action+"_theme_"+this.currentTheme),t=this.controls(),e=_.indexOf(t,e);return-1!==e&&!!(t=t[e+1])&&t.params.theme},previousTheme:function(){var e=this;e.getPreviousTheme()&&e.showDetails(e.getPreviousTheme(),function(){e.overlay.find(".left").focus()})},getPreviousTheme:function(){var e=Y.control(this.params.action+"_theme_"+this.currentTheme),t=this.controls(),e=_.indexOf(t,e);return-1!==e&&!!(t=t[e-1])&&t.params.theme},updateLimits:function(){this.getNextTheme()||this.overlay.find(".right").addClass("disabled"),this.getPreviousTheme()||this.overlay.find(".left").addClass("disabled")},loadThemePreview:function(e){return Y.ThemesPanel.prototype.loadThemePreview.call(this,e)},showDetails:function(e,t){var n=this,i=Y.panel("themes");function a(){return!i.canSwitchTheme(e.id)}n.currentTheme=e.id,n.overlay.html(n.template(e)).fadeIn("fast").focus(),n.overlay.find("button.preview, button.preview-theme").toggleClass("disabled",a()),n.overlay.find("button.theme-install").toggleClass("disabled",a()||!1===Y.settings.theme._canInstall||!0===Y.settings.theme._filesystemCredentialsNeeded),n.$body.addClass("modal-open"),n.containFocus(n.overlay),n.updateLimits(),wp.a11y.speak(Y.settings.l10n.announceThemeDetails.replace("%s",e.name)),t&&t()},closeDetails:function(){this.$body.removeClass("modal-open"),this.overlay.fadeOut("fast"),Y.control(this.params.action+"_theme_"+this.currentTheme).container.find(".theme").focus()},containFocus:function(t){var n;t.on("keydown",function(e){if(9===e.keyCode)return(n=J(":tabbable",t)).last()[0]!==e.target||e.shiftKey?n.first()[0]===e.target&&e.shiftKey?(n.last().focus(),!1):void 0:(n.first().focus(),!1)})}}),Y.OuterSection=Y.Section.extend({initialize:function(){this.containerParent="#customize-outer-theme-controls",this.containerPaneParent=".customize-outer-pane-parent",Y.Section.prototype.initialize.apply(this,arguments)},onChangeExpanded:function(e,t){var n,i=this,a=i.headContainer.closest(".wp-full-overlay-sidebar-content"),o=i.contentContainer,s=o.find(".customize-section-back"),r=i.headContainer.find(".accordion-section-title").first();J(document.body).toggleClass("outer-section-open",e),i.container.toggleClass("open",e),i.container.removeClass("busy"),Y.section.each(function(e){"outer"===e.params.type&&e.id!==i.id&&e.container.removeClass("open")}),e&&!o.hasClass("open")?(n=t.unchanged?t.completeCallback:function(){i._animateChangeExpanded(function(){r.attr("tabindex","-1"),s.attr("tabindex","0"),s.trigger("focus"),o.css("top",""),a.scrollTop(0),t.completeCallback&&t.completeCallback()}),o.addClass("open")}.bind(this),i.panel()?Y.panel(i.panel()).expand({duration:t.duration,completeCallback:n}):n()):!e&&o.hasClass("open")?(i.panel()&&(n=Y.panel(i.panel())).contentContainer.hasClass("skip-transition")&&n.collapse(),i._animateChangeExpanded(function(){s.attr("tabindex","-1"),r.attr("tabindex","0"),r.trigger("focus"),o.css("top",""),t.completeCallback&&t.completeCallback()}),o.removeClass("open")):t.completeCallback&&t.completeCallback()}}),Y.Panel=a.extend({containerType:"panel",initialize:function(e,t){var n=this,i=t.params||t;i.type||_.find(Y.panelConstructor,function(e,t){return e===n.constructor&&(i.type=t,!0)}),a.prototype.initialize.call(n,e,i),n.embed(),n.deferred.embedded.done(function(){n.ready()})},embed:function(){var e=this,t=J("#customize-theme-controls"),n=J(".customize-pane-parent");e.headContainer.parent().is(n)||n.append(e.headContainer),e.contentContainer.parent().is(e.headContainer)||t.append(e.contentContainer),e.renderContent(),e.deferred.embedded.resolve()},attachEvents:function(){var t,n=this;n.headContainer.find(".accordion-section-title").on("click keydown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.expanded())||n.expand()}),n.container.find(".customize-panel-back").on("click keydown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.expanded()&&n.collapse())}),(t=n.container.find(".panel-meta:first")).find("> .accordion-section-title .customize-help-toggle").on("click",function(){var e;t.hasClass("cannot-expand")||(e=t.find(".customize-panel-description:first"),t.hasClass("open")?(t.toggleClass("open"),e.slideUp(n.defaultExpandedArguments.duration,function(){e.trigger("toggled")}),J(this).attr("aria-expanded",!1)):(e.slideDown(n.defaultExpandedArguments.duration,function(){e.trigger("toggled")}),t.toggleClass("open"),J(this).attr("aria-expanded",!0)))})},sections:function(){return this._children("panel","section")},isContextuallyActive:function(){var e=this.sections(),t=0;return _(e).each(function(e){e.active()&&e.isContextuallyActive()&&(t+=1)}),0!==t},onChangeExpanded:function(e,t){var n,i,a,o,s,r,c;t.unchanged?t.completeCallback&&t.completeCallback():(a=(i=(n=this).contentContainer).closest(".wp-full-overlay"),o=i.closest(".wp-full-overlay-sidebar-content"),s=n.headContainer.find(".accordion-section-title"),r=i.find(".customize-panel-back"),c=n.sections(),e&&!i.hasClass("current-panel")?(Y.section.each(function(e){n.id!==e.panel()&&e.collapse({duration:0})}),Y.panel.each(function(e){n!==e&&e.collapse({duration:0})}),n.params.autoExpandSoleSection&&1===c.length&&c[0].active.get()?(i.addClass("current-panel skip-transition"),a.addClass("in-sub-panel"),c[0].expand({completeCallback:t.completeCallback})):(n._animateChangeExpanded(function(){s.attr("tabindex","-1"),r.attr("tabindex","0"),r.trigger("focus"),i.css("top",""),o.scrollTop(0),t.completeCallback&&t.completeCallback()}),i.addClass("current-panel"),a.addClass("in-sub-panel")),Y.state("expandedPanel").set(n)):!e&&i.hasClass("current-panel")&&(i.hasClass("skip-transition")?i.removeClass("skip-transition"):n._animateChangeExpanded(function(){s.attr("tabindex","0"),r.attr("tabindex","-1"),s.focus(),i.css("top",""),t.completeCallback&&t.completeCallback()}),a.removeClass("in-sub-panel"),i.removeClass("current-panel"),n===Y.state("expandedPanel").get())&&Y.state("expandedPanel").set(!1))},renderContent:function(){var e=this,t=0!==J("#tmpl-"+e.templateSelector+"-content").length?wp.template(e.templateSelector+"-content"):wp.template("customize-panel-default-content");t&&e.headContainer&&e.contentContainer.html(t(_.extend({id:e.id},e.params)))}}),Y.ThemesPanel=Y.Panel.extend({initialize:function(e,t){this.installingThemes=[],Y.Panel.prototype.initialize.call(this,e,t)},canSwitchTheme:function(e){return!(!e||e!==Y.settings.theme.stylesheet)||"publish"===Y.state("selectedChangesetStatus").get()&&(""===Y.state("changesetStatus").get()||"auto-draft"===Y.state("changesetStatus").get())},attachEvents:function(){var t=this;function e(){t.canSwitchTheme()?t.notifications.remove("theme_switch_unavailable"):t.notifications.add(new Y.Notification("theme_switch_unavailable",{message:Y.l10n.themePreviewUnavailable,type:"warning"}))}Y.Panel.prototype.attachEvents.apply(t),Y.settings.theme._canInstall&&Y.settings.theme._filesystemCredentialsNeeded&&t.notifications.add(new Y.Notification("theme_install_unavailable",{message:Y.l10n.themeInstallUnavailable,type:"info",dismissible:!0})),e(),Y.state("selectedChangesetStatus").bind(e),Y.state("changesetStatus").bind(e),t.contentContainer.on("click",".customize-theme",function(){t.collapse()}),t.contentContainer.on("click",".customize-themes-section-title, .customize-themes-mobile-back",function(){J(".wp-full-overlay").toggleClass("showing-themes")}),t.contentContainer.on("click",".theme-install",function(e){t.installTheme(e)}),t.contentContainer.on("click",".update-theme, #update-theme",function(e){e.preventDefault(),e.stopPropagation(),t.updateTheme(e)}),t.contentContainer.on("click",".delete-theme",function(e){t.deleteTheme(e)}),_.bindAll(t,"installTheme","updateTheme")},onChangeExpanded:function(e,t){var n,i=!1;Y.Panel.prototype.onChangeExpanded.apply(this,[e,t]),t.unchanged?t.completeCallback&&t.completeCallback():(n=this.headContainer.closest(".wp-full-overlay"),e?(n.addClass("in-themes-panel").delay(200).find(".customize-themes-full-container").addClass("animate"),_.delay(function(){n.addClass("themes-panel-expanded")},200),600<window.innerWidth&&(t=this.sections(),_.each(t,function(e){e.expanded()&&(i=!0)}),!i)&&0<t.length&&t[0].expand()):n.removeClass("in-themes-panel themes-panel-expanded").find(".customize-themes-full-container").removeClass("animate"))},installTheme:function(e){var t,i=this,a=J(e.target).data("slug"),o=J.Deferred(),s=J(e.target).hasClass("preview");return Y.settings.theme._filesystemCredentialsNeeded?o.reject({errorCode:"theme_install_unavailable"}):i.canSwitchTheme(a)?_.contains(i.installingThemes,a)?o.reject({errorCode:"theme_already_installing"}):(wp.updates.maybeRequestFilesystemCredentials(e),e=function(t){var e,n=!1;if(s)Y.notifications.remove("theme_installing"),i.loadThemePreview(a);else{if(Y.control.each(function(e){"theme"===e.params.type&&e.params.theme.id===t.slug&&(n=e.params.theme,e.rerenderAsInstalled(!0))}),!n||Y.control.has("installed_theme_"+n.id))return void o.resolve(t);n.type="installed",e=new Y.controlConstructor.theme("installed_theme_"+n.id,{type:"theme",section:"installed_themes",theme:n,priority:0}),Y.control.add(e),Y.control(e.id).container.trigger("render-screenshot"),Y.section.each(function(e){"themes"===e.params.type&&n.id===e.currentTheme&&e.closeDetails()})}o.resolve(t)},i.installingThemes.push(a),t=wp.updates.installTheme({slug:a}),s&&Y.notifications.add(new Y.OverlayNotification("theme_installing",{message:Y.l10n.themeDownloading,type:"info",loading:!0})),t.done(e),t.fail(function(){Y.notifications.remove("theme_installing")})):o.reject({errorCode:"theme_switch_unavailable"}),o.promise()},loadThemePreview:function(e){var t,n,i=J.Deferred();return this.canSwitchTheme(e)?((n=document.createElement("a")).href=location.href,e=_.extend(Y.utils.parseQueryString(n.search.substr(1)),{theme:e,changeset_uuid:Y.settings.changeset.uuid,return:Y.settings.url.return}),Y.state("saved").get()||(e.customize_autosaved="on"),n.search=J.param(e),Y.notifications.add(new Y.OverlayNotification("theme_previewing",{message:Y.l10n.themePreviewWait,type:"info",loading:!0})),t=function(){var e;0<Y.state("processing").get()||(Y.state("processing").unbind(t),(e=Y.requestChangesetUpdate({},{autosave:!0})).done(function(){i.resolve(),J(window).off("beforeunload.customize-confirm"),location.replace(n.href)}),e.fail(function(){Y.notifications.remove("theme_previewing"),i.reject()}))},0===Y.state("processing").get()?t():Y.state("processing").bind(t)):i.reject({errorCode:"theme_switch_unavailable"}),i.promise()},updateTheme:function(e){wp.updates.maybeRequestFilesystemCredentials(e),J(document).one("wp-theme-update-success",function(e,t){Y.control.each(function(e){"theme"===e.params.type&&e.params.theme.id===t.slug&&(e.params.theme.hasUpdate=!1,e.params.theme.version=t.newVersion,setTimeout(function(){e.rerenderAsInstalled(!0)},2e3))})}),wp.updates.updateTheme({slug:J(e.target).closest(".notice").data("slug")})},deleteTheme:function(e){var t=J(e.target).data("slug"),n=Y.section("installed_themes");e.preventDefault(),Y.settings.theme._filesystemCredentialsNeeded||window.confirm(Y.settings.l10n.confirmDeleteTheme)&&(wp.updates.maybeRequestFilesystemCredentials(e),J(document).one("wp-theme-delete-success",function(){var e=Y.control("installed_theme_"+t);e.container.remove(),Y.control.remove(e.id),n.loaded=n.loaded-1,n.updateCount(),Y.control.each(function(e){"theme"===e.params.type&&e.params.theme.id===t&&e.rerenderAsInstalled(!1)})}),wp.updates.deleteTheme({slug:t}),n.closeDetails(),n.focus())}}),Y.Control=Y.Class.extend({defaultActiveArguments:{duration:"fast",completeCallback:J.noop},defaults:{label:"",description:"",active:!0,priority:10},initialize:function(e,t){var n,i=this,a=[];i.params=_.extend({},i.defaults,i.params||{},t.params||t||{}),Y.Control.instanceCounter||(Y.Control.instanceCounter=0),Y.Control.instanceCounter++,i.params.instanceNumber||(i.params.instanceNumber=Y.Control.instanceCounter),i.params.type||_.find(Y.controlConstructor,function(e,t){return e===i.constructor&&(i.params.type=t,!0)}),i.params.content||(i.params.content=J("<li></li>",{id:"customize-control-"+e.replace(/]/g,"").replace(/\[/g,"-"),class:"customize-control customize-control-"+i.params.type})),i.id=e,i.selector="#customize-control-"+e.replace(/\]/g,"").replace(/\[/g,"-"),i.params.content?i.container=J(i.params.content):i.container=J(i.selector),i.params.templateId?i.templateSelector=i.params.templateId:i.templateSelector="customize-control-"+i.params.type+"-content",i.deferred=_.extend(i.deferred||{},{embedded:new J.Deferred}),i.section=new Y.Value,i.priority=new Y.Value,i.active=new Y.Value,i.activeArgumentsQueue=[],i.notifications=new Y.Notifications({alt:i.altNotice}),i.elements=[],i.active.bind(function(e){var t=i.activeArgumentsQueue.shift(),t=J.extend({},i.defaultActiveArguments,t);i.onChangeActive(e,t)}),i.section.set(i.params.section),i.priority.set(isNaN(i.params.priority)?10:i.params.priority),i.active.set(i.params.active),Y.utils.bubbleChildValueChanges(i,["section","priority","active"]),i.settings={},n={},i.params.setting&&(n.default=i.params.setting),_.extend(n,i.params.settings),_.each(n,function(e,t){var n;_.isObject(e)&&_.isFunction(e.extended)&&e.extended(Y.Value)?i.settings[t]=e:_.isString(e)&&((n=Y(e))?i.settings[t]=n:a.push(e))}),t=function(){_.each(n,function(e,t){!i.settings[t]&&_.isString(e)&&(i.settings[t]=Y(e))}),i.settings[0]&&!i.settings.default&&(i.settings.default=i.settings[0]),i.setting=i.settings.default||null,i.linkElements(),i.embed()},0===a.length?t():Y.apply(Y,a.concat(t)),i.deferred.embedded.done(function(){i.linkElements(),i.setupNotifications(),i.ready()})},linkElements:function(){var i,a=this,o=a.container.find("[data-customize-setting-link], [data-customize-setting-key-link]"),s={};o.each(function(){var e,t,n=J(this);if(!n.data("customizeSettingLinked")){if(n.data("customizeSettingLinked",!0),n.is(":radio")){if(e=n.prop("name"),s[e])return;s[e]=!0,n=o.filter('[name="'+e+'"]')}n.data("customizeSettingLink")?t=Y(n.data("customizeSettingLink")):n.data("customizeSettingKeyLink")&&(t=a.settings[n.data("customizeSettingKeyLink")]),t&&(i=new Y.Element(n),a.elements.push(i),i.sync(t),i.set(t()))}})},embed:function(){var n=this,e=function(e){var t;e&&Y.section(e,function(e){e.deferred.embedded.done(function(){t=e.contentContainer.is("ul")?e.contentContainer:e.contentContainer.find("ul:first"),n.container.parent().is(t)||t.append(n.container),n.renderContent(),n.deferred.embedded.resolve()})})};n.section.bind(e),e(n.section.get())},ready:function(){var t,n=this;"dropdown-pages"===n.params.type&&n.params.allow_addition&&((t=n.container.find(".new-content-item-wrapper")).hide(),n.container.on("click",".add-new-toggle",function(e){J(e.currentTarget).slideUp(180),t.slideDown(180),t.find(".create-item-input").focus()}),n.container.on("click",".add-content",function(){n.addNewPage()}),n.container.on("keydown",".create-item-input",function(e){13===e.which&&n.addNewPage()}))},getNotificationsContainerElement:function(){var e,t=this,n=t.container.find(".customize-control-notifications-container:first");return n.length||(n=J('<div class="customize-control-notifications-container"></div>'),t.container.hasClass("customize-control-nav_menu_item")?t.container.find(".menu-item-settings:first").prepend(n):t.container.hasClass("customize-control-widget_form")?t.container.find(".widget-inside:first").prepend(n):(e=t.container.find(".customize-control-title")).length?e.after(n):t.container.prepend(n)),n},setupNotifications:function(){var n,e,i=this;_.each(i.settings,function(n){n.notifications&&(n.notifications.bind("add",function(e){var t=_.extend({},e,{setting:n.id});i.notifications.add(new Y.Notification(n.id+":"+e.code,t))}),n.notifications.bind("remove",function(e){i.notifications.remove(n.id+":"+e.code)}))}),n=function(){var e=i.section();(!e||Y.section.has(e)&&Y.section(e).expanded())&&i.notifications.render()},i.notifications.bind("rendered",function(){var e=i.notifications.get();i.container.toggleClass("has-notifications",0!==e.length),i.container.toggleClass("has-error",0!==_.where(e,{type:"error"}).length)}),i.section.bind(e=function(e,t){t&&Y.section.has(t)&&Y.section(t).expanded.unbind(n),e&&Y.section(e,function(e){e.expanded.bind(n),n()})}),e(i.section.get()),i.notifications.bind("change",_.debounce(n))},renderNotifications:function(){var e,t,n=this,i=!1;"undefined"!=typeof console&&console.warn&&console.warn("[DEPRECATED] wp.customize.Control.prototype.renderNotifications() is deprecated in favor of instantiating a wp.customize.Notifications and calling its render() method."),(e=n.getNotificationsContainerElement())&&e.length&&(t=[],n.notifications.each(function(e){t.push(e),"error"===e.type&&(i=!0)}),0===t.length?e.stop().slideUp("fast"):e.stop().slideDown("fast",null,function(){J(this).css("height","auto")}),n.notificationsTemplate||(n.notificationsTemplate=wp.template("customize-control-notifications")),n.container.toggleClass("has-notifications",0!==t.length),n.container.toggleClass("has-error",i),e.empty().append(n.notificationsTemplate({notifications:t,altNotice:Boolean(n.altNotice)}).trim()))},expand:function(e){Y.section(this.section()).expand(e)},focus:o,onChangeActive:function(e,t){t.unchanged?t.completeCallback&&t.completeCallback():J.contains(document,this.container[0])?e?this.container.slideDown(t.duration,t.completeCallback):this.container.slideUp(t.duration,t.completeCallback):(this.container.toggle(e),t.completeCallback&&t.completeCallback())},toggle:function(e){return this.onChangeActive(e,this.defaultActiveArguments)},activate:a.prototype.activate,deactivate:a.prototype.deactivate,_toggleActive:a.prototype._toggleActive,dropdownInit:function(){function e(e){"string"==typeof e&&i.statuses&&i.statuses[e]?n.html(i.statuses[e]).show():n.hide()}var t=this,n=this.container.find(".dropdown-status"),i=this.params,a=!1;this.container.on("click keydown",".dropdown",function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),a||t.container.toggleClass("open"),t.container.hasClass("open")&&t.container.parent().parent().find("li.library-selected").focus(),a=!0,setTimeout(function(){a=!1},400))}),this.setting.bind(e),e(this.setting())},renderContent:function(){var e=this,t=e.templateSelector;t==="customize-control-"+e.params.type+"-content"&&_.contains(["button","checkbox","date","datetime-local","email","month","number","password","radio","range","search","select","tel","time","text","textarea","week","url"],e.params.type)&&!document.getElementById("tmpl-"+t)&&0===e.container.children().length&&(t="customize-control-default-content"),document.getElementById("tmpl-"+t)&&(t=wp.template(t))&&e.container&&e.container.html(t(e.params)),e.notifications.container=e.getNotificationsContainerElement(),(!(t=e.section())||Y.section.has(t)&&Y.section(t).expanded())&&e.notifications.render()},addNewPage:function(){var e,a,o,t,s,r,c=this;"dropdown-pages"===c.params.type&&c.params.allow_addition&&Y.Menus&&(a=c.container.find(".add-new-toggle"),o=c.container.find(".new-content-item-wrapper"),t=c.container.find(".create-item-input"),s=t.val(),r=c.container.find("select"),s?(t.removeClass("invalid"),t.attr("disabled","disabled"),(e=Y.Menus.insertAutoDraftPost({post_title:s,post_type:"page"})).done(function(e){var t,n,i=new Y.Menus.AvailableItemModel({id:"post-"+e.post_id,title:s,type:"post_type",type_label:Y.Menus.data.l10n.page_label,object:"page",object_id:e.post_id,url:e.url});Y.Menus.availableMenuItemsPanel.collection.add(i),t=J("#available-menu-items-post_type-page").find(".available-menu-items-list"),n=wp.template("available-menu-item"),t.prepend(n(i.attributes)),r.focus(),c.setting.set(String(e.post_id)),o.slideUp(180),a.slideDown(180)}),e.always(function(){t.val("").removeAttr("disabled")})):t.addClass("invalid"))}}),Y.ColorControl=Y.Control.extend({ready:function(){var t,n=this,e="hue"===this.params.mode,i=!1;e?(t=this.container.find(".color-picker-hue")).val(n.setting()).wpColorPicker({change:function(e,t){i=!0,n.setting(t.color.h()),i=!1}}):(t=this.container.find(".color-picker-hex")).val(n.setting()).wpColorPicker({change:function(){i=!0,n.setting.set(t.wpColorPicker("color")),i=!1},clear:function(){i=!0,n.setting.set(""),i=!1}}),n.setting.bind(function(e){i||(t.val(e),t.wpColorPicker("color",e))}),n.container.on("keydown",function(e){27===e.which&&n.container.find(".wp-picker-container").hasClass("wp-picker-active")&&(t.wpColorPicker("close"),n.container.find(".wp-color-result").focus(),e.stopPropagation())})}}),Y.MediaControl=Y.Control.extend({ready:function(){var n=this;function e(e){var t=J.Deferred();n.extended(Y.UploadControl)?t.resolve():(e=parseInt(e,10),_.isNaN(e)||e<=0?(delete n.params.attachment,t.resolve()):n.params.attachment&&n.params.attachment.id===e&&t.resolve()),"pending"===t.state()&&wp.media.attachment(e).fetch().done(function(){n.params.attachment=this.attributes,t.resolve(),wp.customize.previewer.send(n.setting.id+"-attachment-data",this.attributes)}),t.done(function(){n.renderContent()})}_.bindAll(n,"restoreDefault","removeFile","openFrame","select","pausePlayer"),n.container.on("click keydown",".upload-button",n.openFrame),n.container.on("click keydown",".upload-button",n.pausePlayer),n.container.on("click keydown",".thumbnail-image img",n.openFrame),n.container.on("click keydown",".default-button",n.restoreDefault),n.container.on("click keydown",".remove-button",n.pausePlayer),n.container.on("click keydown",".remove-button",n.removeFile),n.container.on("click keydown",".remove-button",n.cleanupPlayer),Y.section(n.section()).container.on("expanded",function(){n.player&&n.player.setControlsSize()}).on("collapsed",function(){n.pausePlayer()}),e(n.setting()),n.setting.bind(e)},pausePlayer:function(){this.player&&this.player.pause()},cleanupPlayer:function(){this.player&&wp.media.mixin.removePlayer(this.player)},openFrame:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.frame||this.initFrame(),this.frame.open())},initFrame:function(){this.frame=wp.media({button:{text:this.params.button_labels.frame_button},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:this.params.mime_type}),multiple:!1,date:!1})]}),this.frame.on("select",this.select)},select:function(){var e=this.frame.state().get("selection").first().toJSON(),t=window._wpmejsSettings||{};this.params.attachment=e,this.setting(e.id),(e=this.container.find("audio, video").get(0))?this.player=new MediaElementPlayer(e,t):this.cleanupPlayer()},restoreDefault:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.params.attachment=this.params.defaultAttachment,this.setting(this.params.defaultAttachment.url))},removeFile:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.params.attachment={},this.setting(""),this.renderContent())}}),Y.UploadControl=Y.MediaControl.extend({select:function(){var e=this.frame.state().get("selection").first().toJSON(),t=window._wpmejsSettings||{};this.params.attachment=e,this.setting(e.url),(e=this.container.find("audio, video").get(0))?this.player=new MediaElementPlayer(e,t):this.cleanupPlayer()},success:function(){},removerVisibility:function(){}}),Y.ImageControl=Y.UploadControl.extend({thumbnailSrc:function(){}}),Y.BackgroundControl=Y.UploadControl.extend({ready:function(){Y.UploadControl.prototype.ready.apply(this,arguments)},select:function(){Y.UploadControl.prototype.select.apply(this,arguments),wp.ajax.post("custom-background-add",{nonce:_wpCustomizeBackground.nonces.add,wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,attachment_id:this.params.attachment.id})}}),Y.BackgroundPositionControl=Y.Control.extend({ready:function(){var e,n=this;n.container.on("change",'input[name="background-position"]',function(){var e=J(this).val().split(" ");n.settings.x(e[0]),n.settings.y(e[1])}),e=_.debounce(function(){var e=n.settings.x.get(),t=n.settings.y.get(),e=String(e)+" "+String(t);n.container.find('input[name="background-position"][value="'+e+'"]').trigger("click")}),n.settings.x.bind(e),n.settings.y.bind(e),e()}}),Y.CroppedImageControl=Y.MediaControl.extend({openFrame:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(this.initFrame(),this.frame.setState("library").open())},initFrame:function(){var e=_wpMediaViewsL10n;this.frame=wp.media({button:{text:e.select,close:!1},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:this.params.width,suggestedHeight:this.params.height}),new wp.media.controller.CustomizeImageCropper({imgSelectOptions:this.calculateImageSelectOptions,control:this})]}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)},onSelect:function(){var e=this.frame.state().get("selection").first().toJSON();this.params.width!==e.width||this.params.height!==e.height||this.params.flex_width||this.params.flex_height?this.frame.setState("cropper"):(this.setImageFromAttachment(e),this.frame.close())},onCropped:function(e){this.setImageFromAttachment(e)},calculateImageSelectOptions:function(e,t){var n=t.get("control"),i=!!parseInt(n.params.flex_width,10),a=!!parseInt(n.params.flex_height,10),o=e.get("width"),e=e.get("height"),s=parseInt(n.params.width,10),r=parseInt(n.params.height,10),c=s/r,l=s,d=r;return t.set("canSkipCrop",!n.mustBeCropped(i,a,s,r,o,e)),c<o/e?s=(r=e)*c:r=(s=o)/c,!(c={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:o,imageHeight:e,minWidth:s<l?s:l,minHeight:r<d?r:d,x1:t=(o-s)/2,y1:n=(e-r)/2,x2:s+t,y2:r+n})==a&&!1==i&&(c.aspectRatio=s+":"+r),!0==a&&(delete c.minHeight,c.maxWidth=o),!0==i&&(delete c.minWidth,c.maxHeight=e),c},mustBeCropped:function(e,t,n,i,a,o){return(!0!==e||!0!==t)&&!(!0===e&&i===o||!0===t&&n===a||n===a&&i===o||a<=n)},onSkippedCrop:function(){var e=this.frame.state().get("selection").first().toJSON();this.setImageFromAttachment(e)},setImageFromAttachment:function(e){this.params.attachment=e,this.setting(e.id)}}),Y.SiteIconControl=Y.CroppedImageControl.extend({initFrame:function(){var e=_wpMediaViewsL10n;this.frame=wp.media({button:{text:e.select,close:!1},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:this.params.width,suggestedHeight:this.params.height}),new wp.media.controller.SiteIconCropper({imgSelectOptions:this.calculateImageSelectOptions,control:this})]}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)},onSelect:function(){var e=this.frame.state().get("selection").first().toJSON(),t=this;this.params.width!==e.width||this.params.height!==e.height||this.params.flex_width||this.params.flex_height?this.frame.setState("cropper"):wp.ajax.post("crop-image",{nonce:e.nonces.edit,id:e.id,context:"site-icon",cropDetails:{x1:0,y1:0,width:this.params.width,height:this.params.height,dst_width:this.params.width,dst_height:this.params.height}}).done(function(e){t.setImageFromAttachment(e),t.frame.close()}).fail(function(){t.frame.trigger("content:error:crop")})},setImageFromAttachment:function(t){var n;_.each(["site_icon-32","thumbnail","full"],function(e){n||_.isUndefined(t.sizes[e])||(n=t.sizes[e])}),this.params.attachment=t,this.setting(t.id),n&&J('link[rel="icon"][sizes="32x32"]').attr("href",n.url)},removeFile:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.params.attachment={},this.setting(""),this.renderContent(),J('link[rel="icon"][sizes="32x32"]').attr("href","/favicon.ico"))}}),Y.HeaderControl=Y.Control.extend({ready:function(){this.btnRemove=J("#customize-control-header_image .actions .remove"),this.btnNew=J("#customize-control-header_image .actions .new"),_.bindAll(this,"openMedia","removeImage"),this.btnNew.on("click",this.openMedia),this.btnRemove.on("click",this.removeImage),Y.HeaderTool.currentHeader=this.getInitialHeaderImage(),new Y.HeaderTool.CurrentView({model:Y.HeaderTool.currentHeader,el:"#customize-control-header_image .current .container"}),new Y.HeaderTool.ChoiceListView({collection:Y.HeaderTool.UploadsList=new Y.HeaderTool.ChoiceList,el:"#customize-control-header_image .choices .uploaded .list"}),new Y.HeaderTool.ChoiceListView({collection:Y.HeaderTool.DefaultsList=new Y.HeaderTool.DefaultsList,el:"#customize-control-header_image .choices .default .list"}),Y.HeaderTool.combinedList=Y.HeaderTool.CombinedList=new Y.HeaderTool.CombinedList([Y.HeaderTool.UploadsList,Y.HeaderTool.DefaultsList]),wp.media.controller.Cropper.prototype.defaults.doCropArgs.wp_customize="on",wp.media.controller.Cropper.prototype.defaults.doCropArgs.customize_theme=Y.settings.theme.stylesheet},getInitialHeaderImage:function(){var e;return Y.get().header_image&&Y.get().header_image_data&&!_.contains(["remove-header","random-default-image","random-uploaded-image"],Y.get().header_image)?(e=(e=_.find(_wpCustomizeHeader.uploads,function(e){return e.attachment_id===Y.get().header_image_data.attachment_id}))||{url:Y.get().header_image,thumbnail_url:Y.get().header_image,attachment_id:Y.get().header_image_data.attachment_id},new Y.HeaderTool.ImageModel({header:e,choice:e.url.split("/").pop()})):new Y.HeaderTool.ImageModel},calculateImageSelectOptions:function(e,t){var n=parseInt(_wpCustomizeHeader.data.width,10),i=parseInt(_wpCustomizeHeader.data.height,10),a=!!parseInt(_wpCustomizeHeader.data["flex-width"],10),o=!!parseInt(_wpCustomizeHeader.data["flex-height"],10),s=e.get("width"),e=e.get("height");return this.headerImage=new Y.HeaderTool.ImageModel,this.headerImage.set({themeWidth:n,themeHeight:i,themeFlexWidth:a,themeFlexHeight:o,imageWidth:s,imageHeight:e}),t.set("canSkipCrop",!this.headerImage.shouldBeCropped()),(t=n/i)<s/e?n=(i=e)*t:i=(n=s)/t,!(t={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:s,imageHeight:e,x1:0,y1:0,x2:n,y2:i})==o&&!1==a&&(t.aspectRatio=n+":"+i),!1==o&&(t.maxHeight=i),!1==a&&(t.maxWidth=n),t},openMedia:function(e){var t=_wpMediaViewsL10n;e.preventDefault(),this.frame=wp.media({button:{text:t.selectAndCrop,close:!1},states:[new wp.media.controller.Library({title:t.chooseImage,library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:_wpCustomizeHeader.data.width,suggestedHeight:_wpCustomizeHeader.data.height}),new wp.media.controller.Cropper({imgSelectOptions:this.calculateImageSelectOptions})]}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this),this.frame.open()},onSelect:function(){this.frame.setState("cropper")},onCropped:function(e){var t=e.url,n=e.attachment_id,i=e.width,e=e.height;this.setImageFromURL(t,n,i,e)},onSkippedCrop:function(e){var t=e.get("url"),n=e.get("width"),i=e.get("height");this.setImageFromURL(t,e.id,n,i)},setImageFromURL:function(e,t,n,i){var a={};a.url=e,a.thumbnail_url=e,a.timestamp=_.now(),t&&(a.attachment_id=t),n&&(a.width=n),i&&(a.height=i),t=new Y.HeaderTool.ImageModel({header:a,choice:e.split("/").pop()}),Y.HeaderTool.UploadsList.add(t),Y.HeaderTool.currentHeader.set(t.toJSON()),t.save(),t.importImage()},removeImage:function(){Y.HeaderTool.currentHeader.trigger("hide"),Y.HeaderTool.CombinedList.trigger("control:removeImage")}}),Y.ThemeControl=Y.Control.extend({touchDrag:!1,screenshotRendered:!1,ready:function(){var n=this,e=Y.panel("themes");function t(){return!e.canSwitchTheme(n.params.theme.id)}function i(){n.container.find("button.preview, button.preview-theme").toggleClass("disabled",t()),n.container.find("button.theme-install").toggleClass("disabled",t()||!1===Y.settings.theme._canInstall||!0===Y.settings.theme._filesystemCredentialsNeeded)}Y.state("selectedChangesetStatus").bind(i),Y.state("changesetStatus").bind(i),i(),n.container.on("touchmove",".theme",function(){n.touchDrag=!0}),n.container.on("click keydown touchend",".theme",function(e){var t;if(!Y.utils.isKeydownButNotEnterEvent(e))return!0===n.touchDrag?n.touchDrag=!1:void(J(e.target).is(".theme-actions .button, .update-theme")||(e.preventDefault(),(t=Y.section(n.section())).showDetails(n.params.theme,function(){Y.settings.theme._filesystemCredentialsNeeded&&t.overlay.find(".theme-actions .delete-theme").remove()})))}),n.container.on("render-screenshot",function(){var e=J(this).find("img"),t=e.data("src");t&&e.attr("src",t),n.screenshotRendered=!0})},filter:function(e){var t=this,n=0,i=(i=t.params.theme.name+" "+t.params.theme.description+" "+t.params.theme.tags+" "+t.params.theme.author+" ").toLowerCase().replace("-"," ");return _.isArray(e)||(e=[e]),t.params.theme.name.toLowerCase()===e.join(" ")?n=100:(n+=10*(i.split(e.join(" ")).length-1),_.each(e,function(e){n=(n+=2*(i.split(e+" ").length-1))+i.split(e).length-1}),99<n&&(n=99)),0!==n?(t.activate(),t.params.priority=101-n,!0):(t.deactivate(),!(t.params.priority=101))},rerenderAsInstalled:function(e){var t=this;e?t.params.theme.type="installed":(e=Y.section(t.params.section),t.params.theme.type=e.params.action),t.renderContent(),t.container.trigger("render-screenshot")}}),Y.CodeEditorControl=Y.Control.extend({initialize:function(e,t){var n=this;n.deferred=_.extend(n.deferred||{},{codemirror:J.Deferred()}),Y.Control.prototype.initialize.call(n,e,t),n.notifications.bind("add",function(e){var t;e.code===n.setting.id+":csslint_error"&&(e.templateId="customize-code-editor-lint-error-notification",e.render=(t=e.render,function(){var e=t.call(this);return e.find("input[type=checkbox]").on("click",function(){n.setting.notifications.remove("csslint_error")}),e}))})},ready:function(){var i=this;i.section()?Y.section(i.section(),function(n){n.deferred.embedded.done(function(){var t;n.expanded()?i.initEditor():n.expanded.bind(t=function(e){e&&(i.initEditor(),n.expanded.unbind(t))})})}):i.initEditor()},initEditor:function(){var e,t=this,n=!1;wp.codeEditor&&(_.isUndefined(t.params.editor_settings)||!1!==t.params.editor_settings)&&((n=wp.codeEditor.defaultSettings?_.clone(wp.codeEditor.defaultSettings):{}).codemirror=_.extend({},n.codemirror,{indentUnit:2,tabSize:2}),_.isObject(t.params.editor_settings))&&_.each(t.params.editor_settings,function(e,t){_.isObject(e)&&(n[t]=_.extend({},n[t],e))}),e=new Y.Element(t.container.find("textarea")),t.elements.push(e),e.sync(t.setting),e.set(t.setting()),n?t.initSyntaxHighlightingEditor(n):t.initPlainTextareaEditor()},focus:function(e){var t=this,e=_.extend({},e),n=e.completeCallback;e.completeCallback=function(){n&&n(),t.editor&&t.editor.codemirror.focus()},Y.Control.prototype.focus.call(t,e)},initSyntaxHighlightingEditor:function(e){var t=this,n=t.container.find("textarea"),i=!1,e=_.extend({},e,{onTabNext:_.bind(t.onTabNext,t),onTabPrevious:_.bind(t.onTabPrevious,t),onUpdateErrorNotice:_.bind(t.onUpdateErrorNotice,t)});t.editor=wp.codeEditor.initialize(n,e),J(t.editor.codemirror.display.lineDiv).attr({role:"textbox","aria-multiline":"true","aria-label":t.params.label,"aria-describedby":"editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4"}),t.container.find("label").on("click",function(){t.editor.codemirror.focus()}),t.editor.codemirror.on("change",function(e){i=!0,n.val(e.getValue()).trigger("change"),i=!1}),t.setting.bind(function(e){i||t.editor.codemirror.setValue(e)}),t.editor.codemirror.on("keydown",function(e,t){27===t.keyCode&&t.stopPropagation()}),t.deferred.codemirror.resolveWith(t,[t.editor.codemirror])},onTabNext:function(){var e=Y.section(this.section()).controls(),t=e.indexOf(this);e.length===t+1?J("#customize-footer-actions .collapse-sidebar").trigger("focus"):e[t+1].container.find(":focusable:first").focus()},onTabPrevious:function(){var e=Y.section(this.section()),t=e.controls(),n=t.indexOf(this);(0===n?e.contentContainer.find(".customize-section-title .customize-help-toggle, .customize-section-title .customize-section-description.open .section-description-close").last():t[n-1].contentContainer.find(":focusable:first")).focus()},onUpdateErrorNotice:function(e){this.setting.notifications.remove("csslint_error"),0!==e.length&&(e=1===e.length?Y.l10n.customCssError.singular.replace("%d","1"):Y.l10n.customCssError.plural.replace("%d",String(e.length)),this.setting.notifications.add(new Y.Notification("csslint_error",{message:e,type:"error"})))},initPlainTextareaEditor:function(){var a=this.container.find("textarea"),o=a[0];a.on("blur",function(){a.data("next-tab-blurs",!1)}),a.on("keydown",function(e){var t,n,i;27===e.keyCode?a.data("next-tab-blurs")||(a.data("next-tab-blurs",!0),e.stopPropagation()):9!==e.keyCode||e.ctrlKey||e.altKey||e.shiftKey||a.data("next-tab-blurs")||(t=o.selectionStart,n=o.selectionEnd,i=o.value,0<=t&&(o.value=i.substring(0,t).concat("\t",i.substring(n)),a.selectionStart=o.selectionEnd=t+1),e.stopPropagation(),e.preventDefault())}),this.deferred.codemirror.rejectWith(this)}}),Y.DateTimeControl=Y.Control.extend({ready:function(){var i=this;if(i.inputElements={},i.invalidDate=!1,_.bindAll(i,"populateSetting","updateDaysForMonth","populateDateInputs"),!i.setting)throw new Error("Missing setting");i.container.find(".date-input").each(function(){var e=J(this),t=e.data("component"),n=new Y.Element(e);i.inputElements[t]=n,i.elements.push(n),e.on("change",function(){i.invalidDate&&i.notifications.add(new Y.Notification("invalid_date",{message:Y.l10n.invalidDate}))}),e.on("input",_.debounce(function(){i.invalidDate||i.notifications.remove("invalid_date")})),e.on("blur",_.debounce(function(){i.invalidDate||i.populateDateInputs()}))}),i.inputElements.month.bind(i.updateDaysForMonth),i.inputElements.year.bind(i.updateDaysForMonth),i.populateDateInputs(),i.setting.bind(i.populateDateInputs),_.each(i.inputElements,function(e){e.bind(i.populateSetting)})},parseDateTime:function(e){var t;return(t=e?e.match(/^(\d\d\d\d)-(\d\d)-(\d\d)(?: (\d\d):(\d\d)(?::(\d\d))?)?$/):t)?(t.shift(),e={year:t.shift(),month:t.shift(),day:t.shift(),hour:t.shift()||"00",minute:t.shift()||"00",second:t.shift()||"00"},this.params.includeTime&&this.params.twelveHourFormat&&(e.hour=parseInt(e.hour,10),e.meridian=12<=e.hour?"pm":"am",e.hour=e.hour%12?String(e.hour%12):String(12),delete e.second),e):null},validateInputs:function(){var e,i,a=this;return a.invalidDate=!1,e=["year","day"],a.params.includeTime&&e.push("hour","minute"),_.find(e,function(e){var t,n,e=a.inputElements[e];return i=e.element.get(0),t=parseInt(e.element.attr("max"),10),n=parseInt(e.element.attr("min"),10),e=parseInt(e(),10),a.invalidDate=isNaN(e)||t<e||e<n,a.invalidDate||i.setCustomValidity(""),a.invalidDate}),a.inputElements.meridian&&!a.invalidDate&&(i=a.inputElements.meridian.element.get(0),"am"!==a.inputElements.meridian.get()&&"pm"!==a.inputElements.meridian.get()?a.invalidDate=!0:i.setCustomValidity("")),a.invalidDate?i.setCustomValidity(Y.l10n.invalidValue):i.setCustomValidity(""),(!a.section()||Y.section.has(a.section())&&Y.section(a.section()).expanded())&&_.result(i,"reportValidity"),a.invalidDate},updateDaysForMonth:function(){var e=this,t=parseInt(e.inputElements.month(),10),n=parseInt(e.inputElements.year(),10),i=parseInt(e.inputElements.day(),10);t&&n&&(n=new Date(n,t,0).getDate(),e.inputElements.day.element.attr("max",n),n<i)&&e.inputElements.day(String(n))},populateSetting:function(){var e,t=this;return!(t.validateInputs()||!t.params.allowPastDate&&!t.isFutureDate()||(e=t.convertInputDateToString(),t.setting.set(e),0))},convertInputDateToString:function(){var e,n=this,t="",i=function(e,t){return String(e).length<t&&(t=t-String(e).length,e=Math.pow(10,t).toString().substr(1)+String(e)),e},a=function(e){var t=parseInt(n.inputElements[e].get(),10);return _.contains(["month","day","hour","minute"],e)?t=i(t,2):"year"===e&&(t=i(t,4)),t},o=["year","-","month","-","day"];return n.params.includeTime&&(e=n.inputElements.meridian?n.convertHourToTwentyFourHourFormat(n.inputElements.hour(),n.inputElements.meridian()):n.inputElements.hour(),o=o.concat([" ",i(e,2),":","minute",":","00"])),_.each(o,function(e){t+=n.inputElements[e]?a(e):e}),t},isFutureDate:function(){return 0<Y.utils.getRemainingTime(this.convertInputDateToString())},convertHourToTwentyFourHourFormat:function(e,t){e=parseInt(e,10);return isNaN(e)?"":(t="pm"===t&&e<12?e+12:"am"===t&&12===e?e-12:e,String(t))},populateDateInputs:function(){var i=this.parseDateTime(this.setting.get());return!!i&&(_.each(this.inputElements,function(e,t){var n=i[t];"month"===t||"meridian"===t?(n=n.replace(/^0/,""),e.set(n)):(n=parseInt(n,10),e.element.is(document.activeElement)?n!==parseInt(e(),10)&&e.set(String(n)):e.set(i[t]))}),!0)},toggleFutureDateNotification:function(e){var t="not_future_date";return e?(e=new Y.Notification(t,{type:"error",message:Y.l10n.futureDateError}),this.notifications.add(e)):this.notifications.remove(t),this}}),Y.PreviewLinkControl=Y.Control.extend({defaults:_.extend({},Y.Control.prototype.defaults,{templateId:"customize-preview-link-control"}),ready:function(){var e,t,n,i,a,o=this;_.bindAll(o,"updatePreviewLink"),o.setting||(o.setting=new Y.Value),o.previewElements={},o.container.find(".preview-control-element").each(function(){t=J(this),e=t.data("component"),t=new Y.Element(t),o.previewElements[e]=t,o.elements.push(t)}),n=o.previewElements.url,i=o.previewElements.input,a=o.previewElements.button,i.link(o.setting),n.link(o.setting),n.bind(function(e){n.element.parent().attr({href:e,target:Y.settings.changeset.uuid})}),Y.bind("ready",o.updatePreviewLink),Y.state("saved").bind(o.updatePreviewLink),Y.state("changesetStatus").bind(o.updatePreviewLink),Y.state("activated").bind(o.updatePreviewLink),Y.previewer.previewUrl.bind(o.updatePreviewLink),a.element.on("click",function(e){e.preventDefault(),o.setting()&&(i.element.select(),document.execCommand("copy"),a(a.element.data("copied-text")))}),n.element.parent().on("click",function(e){J(this).hasClass("disabled")&&e.preventDefault()}),a.element.on("mouseenter",function(){o.setting()&&a(a.element.data("copy-text"))})},updatePreviewLink:function(){var e=!Y.state("saved").get()||""===Y.state("changesetStatus").get()||"auto-draft"===Y.state("changesetStatus").get();this.toggleSaveNotification(e),this.previewElements.url.element.parent().toggleClass("disabled",e),this.previewElements.button.element.prop("disabled",e),this.setting.set(Y.previewer.getFrontendPreviewUrl())},toggleSaveNotification:function(e){var t="changes_not_saved";e?(e=new Y.Notification(t,{type:"info",message:Y.l10n.saveBeforeShare}),this.notifications.add(e)):this.notifications.remove(t)}}),Y.defaultConstructor=Y.Setting,Y.control=new Y.Values({defaultConstructor:Y.Control}),Y.section=new Y.Values({defaultConstructor:Y.Section}),Y.panel=new Y.Values({defaultConstructor:Y.Panel}),Y.notifications=new Y.Notifications,Y.PreviewFrame=Y.Messenger.extend({sensitivity:null,initialize:function(e,t){var n=J.Deferred();n.promise(this),this.container=e.container,J.extend(e,{channel:Y.PreviewFrame.uuid()}),Y.Messenger.prototype.initialize.call(this,e,t),this.add("previewUrl",e.previewUrl),this.query=J.extend(e.query||{},{customize_messenger_channel:this.channel()}),this.run(n)},run:function(t){var e,n,i,a=this,o=!1,s=!1,r=null,c="{}"!==a.query.customized;a._ready&&a.unbind("ready",a._ready),a._ready=function(e){s=!0,r=e,a.container.addClass("iframe-ready"),e&&o&&t.resolveWith(a,[e])},a.bind("ready",a._ready),(e=document.createElement("a")).href=a.previewUrl(),n=_.extend(Y.utils.parseQueryString(e.search.substr(1)),{customize_changeset_uuid:a.query.customize_changeset_uuid,customize_theme:a.query.customize_theme,customize_messenger_channel:a.query.customize_messenger_channel}),!Y.settings.changeset.autosaved&&Y.state("saved").get()||(n.customize_autosaved="on"),e.search=J.param(n),a.iframe=J("<iframe />",{title:Y.l10n.previewIframeTitle,name:"customize-"+a.channel()}),a.iframe.attr("onmousewheel",""),a.iframe.attr("sandbox","allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts"),c?a.iframe.attr("data-src",e.href):a.iframe.attr("src",e.href),a.iframe.appendTo(a.container),a.targetWindow(a.iframe[0].contentWindow),c&&((i=J("<form>",{action:e.href,target:a.iframe.attr("name"),method:"post",hidden:"hidden"})).append(J("<input>",{type:"hidden",name:"_method",value:"GET"})),_.each(a.query,function(e,t){i.append(J("<input>",{type:"hidden",name:t,value:e}))}),a.container.append(i),i.trigger("submit"),i.remove()),a.bind("iframe-loading-error",function(e){a.iframe.remove(),0===e?a.login(t):-1===e?t.rejectWith(a,["cheatin"]):t.rejectWith(a,["request failure"])}),a.iframe.one("load",function(){o=!0,s?t.resolveWith(a,[r]):setTimeout(function(){t.rejectWith(a,["ready timeout"])},a.sensitivity)})},login:function(n){var i=this,a=function(){n.rejectWith(i,["logged out"])};if(this.triedLogin)return a();J.get(Y.settings.url.ajax,{action:"logged-in"}).fail(a).done(function(e){var t;"1"!==e&&a(),(t=J("<iframe />",{src:i.previewUrl(),title:Y.l10n.previewIframeTitle}).hide()).appendTo(i.container),t.on("load",function(){i.triedLogin=!0,t.remove(),i.run(n)})})},destroy:function(){Y.Messenger.prototype.destroy.call(this),this.iframe&&this.iframe.remove(),delete this.iframe,delete this.targetWindow}}),i=0,Y.PreviewFrame.uuid=function(){return"preview-"+String(i++)},Y.setDocumentTitle=function(e){e=Y.settings.documentTitleTmpl.replace("%s",e);document.title=e,Y.trigger("title",e)},Y.Previewer=Y.Messenger.extend({refreshBuffer:null,initialize:function(e,t){var n,o=this,i=document.createElement("a");J.extend(o,t||{}),o.deferred={active:J.Deferred()},o.refresh=_.debounce((n=o.refresh,function(){var e,t=function(){return 0===Y.state("processing").get()};t()?n.call(o):(e=function(){t()&&(n.call(o),Y.state("processing").unbind(e))},Y.state("processing").bind(e))}),o.refreshBuffer),o.container=Y.ensure(e.container),o.allowedUrls=e.allowedUrls,e.url=window.location.href,Y.Messenger.prototype.initialize.call(o,e),i.href=o.origin(),o.add("scheme",i.protocol.replace(/:$/,"")),o.add("previewUrl",e.previewUrl).setter(function(e){var n,i=null,t=[],a=document.createElement("a");return a.href=e,/\/wp-(admin|includes|content)(\/|$)/.test(a.pathname)?null:(1<a.search.length&&(delete(e=Y.utils.parseQueryString(a.search.substr(1))).customize_changeset_uuid,delete e.customize_theme,delete e.customize_messenger_channel,delete e.customize_autosaved,_.isEmpty(e)?a.search="":a.search=J.param(e)),t.push(a),o.scheme.get()+":"!==a.protocol&&((a=document.createElement("a")).href=t[0].href,a.protocol=o.scheme.get()+":",t.unshift(a)),n=document.createElement("a"),_.find(t,function(t){return!_.isUndefined(_.find(o.allowedUrls,function(e){if(n.href=e,a.protocol===n.protocol&&a.host===n.host&&0===a.pathname.indexOf(n.pathname.replace(/\/$/,"")))return i=t.href,!0}))}),i)}),o.bind("ready",o.ready),o.deferred.active.done(_.bind(o.keepPreviewAlive,o)),o.bind("synced",function(){o.send("active")}),o.previewUrl.bind(o.refresh),o.scroll=0,o.bind("scroll",function(e){o.scroll=e}),o.bind("url",function(e){var t,n=!1;o.scroll=0,o.previewUrl.bind(t=function(){n=!0}),o.previewUrl.set(e),o.previewUrl.unbind(t),n||o.refresh()}),o.bind("documentTitle",function(e){Y.setDocumentTitle(e)})},ready:function(e){var t=this,n={};n.settings=Y.get(),n["settings-modified-while-loading"]=t.settingsModifiedWhileLoading,"resolved"===t.deferred.active.state()&&!t.loading||(n.scroll=t.scroll),n["edit-shortcut-visibility"]=Y.state("editShortcutVisibility").get(),t.send("sync",n),e.currentUrl&&(t.previewUrl.unbind(t.refresh),t.previewUrl.set(e.currentUrl),t.previewUrl.bind(t.refresh)),n={panel:e.activePanels,section:e.activeSections,control:e.activeControls},_(n).each(function(n,i){Y[i].each(function(e,t){_.isUndefined(Y.settings[i+"s"][t])&&_.isUndefined(n[t])||(n[t]?e.activate():e.deactivate())})}),e.settingValidities&&Y._handleSettingValidities({settingValidities:e.settingValidities,focusInvalidControl:!1})},keepPreviewAlive:function(){var e,t=function(){e=setTimeout(i,Y.settings.timeouts.keepAliveCheck)},n=function(){Y.state("previewerAlive").set(!0),clearTimeout(e),t()},i=function(){Y.state("previewerAlive").set(!1)};t(),this.bind("ready",n),this.bind("keep-alive",n)},query:function(){},abort:function(){this.loading&&(this.loading.destroy(),delete this.loading)},refresh:function(){var e,i=this;i.send("loading-initiated"),i.abort(),i.loading=new Y.PreviewFrame({url:i.url(),previewUrl:i.previewUrl(),query:i.query({excludeCustomizedSaved:!0})||{},container:i.container}),i.settingsModifiedWhileLoading={},Y.bind("change",e=function(e){i.settingsModifiedWhileLoading[e.id]=!0}),i.loading.always(function(){Y.unbind("change",e)}),i.loading.done(function(e){var t,n=this;i.preview=n,i.targetWindow(n.targetWindow()),i.channel(n.channel()),t=function(){n.unbind("synced",t),i._previousPreview&&i._previousPreview.destroy(),i._previousPreview=i.preview,i.deferred.active.resolve(),delete i.loading},n.bind("synced",t),i.trigger("ready",e)}),i.loading.fail(function(e){i.send("loading-failed"),"logged out"===e&&(i.preview&&(i.preview.destroy(),delete i.preview),i.login().done(i.refresh)),"cheatin"===e&&i.cheatin()})},login:function(){var t,n,i,a=this;return this._login||(t=J.Deferred(),this._login=t.promise(),n=new Y.Messenger({channel:"login",url:Y.settings.url.login}),i=J("<iframe />",{src:Y.settings.url.login,title:Y.l10n.loginIframeTitle}).appendTo(this.container),n.targetWindow(i[0].contentWindow),n.bind("login",function(){var e=a.refreshNonces();e.always(function(){i.remove(),n.destroy(),delete a._login}),e.done(function(){t.resolve()}),e.fail(function(){a.cheatin(),t.reject()})})),this._login},cheatin:function(){J(document.body).empty().addClass("cheatin").append("<h1>"+Y.l10n.notAllowedHeading+"</h1><p>"+Y.l10n.notAllowed+"</p>")},refreshNonces:function(){var e,t=J.Deferred();return t.promise(),(e=wp.ajax.post("customize_refresh_nonces",{wp_customize:"on",customize_theme:Y.settings.theme.stylesheet})).done(function(e){Y.trigger("nonce-refresh",e),t.resolve()}),e.fail(function(){t.reject()}),t}}),Y.settingConstructor={},Y.controlConstructor={color:Y.ColorControl,media:Y.MediaControl,upload:Y.UploadControl,image:Y.ImageControl,cropped_image:Y.CroppedImageControl,site_icon:Y.SiteIconControl,header:Y.HeaderControl,background:Y.BackgroundControl,background_position:Y.BackgroundPositionControl,theme:Y.ThemeControl,date_time:Y.DateTimeControl,code_editor:Y.CodeEditorControl},Y.panelConstructor={themes:Y.ThemesPanel},Y.sectionConstructor={themes:Y.ThemesSection,outer:Y.OuterSection},Y._handleSettingValidities=function(e){var o=[],n=!1;_.each(e.settingValidities,function(t,e){var a=Y(e);a&&(_.isObject(t)&&_.each(t,function(e,t){var n=!1,e=new Y.Notification(t,_.extend({fromServer:!0},e)),i=a.notifications(e.code);(n=i?e.type!==i.type||e.message!==i.message||!_.isEqual(e.data,i.data):n)&&a.notifications.remove(t),a.notifications.has(e.code)||a.notifications.add(e),o.push(a.id)}),a.notifications.each(function(e){!e.fromServer||"error"!==e.type||!0!==t&&t[e.code]||a.notifications.remove(e.code)}))}),e.focusInvalidControl&&(e=Y.findControlsForSettings(o),_(_.values(e)).find(function(e){return _(e).find(function(e){var t=e.section()&&Y.section.has(e.section())&&Y.section(e.section()).expanded();return(t=t&&e.expanded?e.expanded():t)&&(e.focus(),n=!0),n})}),n||_.isEmpty(e)||_.values(e)[0][0].focus())},Y.findControlsForSettings=function(e){var n,i={};return _.each(_.unique(e),function(e){var t=Y(e);t&&(n=t.findControls())&&0<n.length&&(i[e]=n)}),i},Y.reflowPaneContents=_.bind(function(){var i,e,t,a=[],o=!1;document.activeElement&&(e=J(document.activeElement)),Y.panel.each(function(e){var t,n;"themes"===e.id||(t=e.sections(),n=_.pluck(t,"headContainer"),a.push(e),i=e.contentContainer.is("ul")?e.contentContainer:e.contentContainer.find("ul:first"),Y.utils.areElementListsEqual(n,i.children("[id]")))||(_(t).each(function(e){i.append(e.headContainer)}),o=!0)}),Y.section.each(function(e){var t=e.controls(),n=_.pluck(t,"container");e.panel()||a.push(e),i=e.contentContainer.is("ul")?e.contentContainer:e.contentContainer.find("ul:first"),Y.utils.areElementListsEqual(n,i.children("[id]"))||(_(t).each(function(e){i.append(e.container)}),o=!0)}),a.sort(Y.utils.prioritySort),t=_.pluck(a,"headContainer"),i=J("#customize-theme-controls .customize-pane-parent"),Y.utils.areElementListsEqual(t,i.children())||(_(a).each(function(e){i.append(e.headContainer)}),o=!0),Y.panel.each(function(e){var t=e.active();e.active.callbacks.fireWith(e.active,[t,t])}),Y.section.each(function(e){var t=e.active();e.active.callbacks.fireWith(e.active,[t,t])}),o&&e&&e.trigger("focus"),Y.trigger("pane-contents-reflowed")},Y),Y.state=new Y.Values,_.each(["saved","saving","trashing","activated","processing","paneVisible","expandedPanel","expandedSection","changesetDate","selectedChangesetDate","changesetStatus","selectedChangesetStatus","remainingTimeToPublish","previewerAlive","editShortcutVisibility","changesetLocked","previewedDevice"],function(e){Y.state.create(e)}),J(function(){var h,o,t,n,i,d,u,p,a,s,r,c,l,f,m,H,L,g,v,w,b,M,O,C,j,y,e,x,k,z,S,T,E,R,B,W,D,N,P,I,U,A;function F(e){e&&e.lockUser&&(Y.settings.changeset.lockUser=e.lockUser),Y.state("changesetLocked").set(!0),Y.notifications.add(new j("changeset_locked",{lockUser:Y.settings.changeset.lockUser,allowOverride:Boolean(e&&e.allowOverride)}))}function q(){var e,t=document.createElement("a");return t.href=location.href,e=Y.utils.parseQueryString(t.search.substr(1)),Y.settings.changeset.latestAutoDraftUuid?e.changeset_uuid=Y.settings.changeset.latestAutoDraftUuid:e.customize_autosaved="on",e.return=Y.settings.url.return,t.search=J.param(e),t.href}function Q(){T||(wp.ajax.post("customize_dismiss_autosave_or_lock",{wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.dismiss_autosave_or_lock,dismiss_autosave:!0}),T=!0)}function K(){var e;return Y.state("activated").get()?(""!==(e=Y.state("changesetStatus").get())&&"auto-draft"!==e||(e="publish"),Y.state("selectedChangesetStatus").get()===e&&("future"!==Y.state("selectedChangesetStatus").get()||Y.state("selectedChangesetDate").get()===Y.state("changesetDate").get())&&Y.state("saved").get()&&"auto-draft"!==Y.state("changesetStatus").get()):0===Y._latestRevision}function V(){Y.unbind("change",V),Y.state("selectedChangesetStatus").unbind(V),Y.state("selectedChangesetDate").unbind(V),J(window).on("beforeunload.customize-confirm",function(){if(!K()&&!Y.state("changesetLocked").get())return setTimeout(function(){t.removeClass("customize-loading")},1),Y.l10n.saveAlert})}function $(){var e=J.Deferred(),t=!1,n=!1;return K()?n=!0:confirm(Y.l10n.saveAlert)?(n=!0,Y.each(function(e){e._dirty=!1}),J(document).off("visibilitychange.wp-customize-changeset-update"),J(window).off("beforeunload.wp-customize-changeset-update"),i.css("cursor","progress"),""!==Y.state("changesetStatus").get()&&(t=!0)):e.reject(),(n||t)&&wp.ajax.send("customize_dismiss_autosave_or_lock",{timeout:500,data:{wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.dismiss_autosave_or_lock,dismiss_autosave:t,dismiss_lock:n}}).always(function(){e.resolve()}),e.promise()}Y.settings=window._wpCustomizeSettings,Y.l10n=window._wpCustomizeControlsL10n,Y.settings&&J.support.postMessage&&(J.support.cors||!Y.settings.isCrossDomain)&&(null===Y.PreviewFrame.prototype.sensitivity&&(Y.PreviewFrame.prototype.sensitivity=Y.settings.timeouts.previewFrameSensitivity),null===Y.Previewer.prototype.refreshBuffer&&(Y.Previewer.prototype.refreshBuffer=Y.settings.timeouts.windowRefresh),o=J(document.body),t=o.children(".wp-full-overlay"),n=J("#customize-info .panel-title.site-title"),i=J(".customize-controls-close"),d=J("#save"),u=J("#customize-save-button-wrapper"),p=J("#publish-settings"),a=J("#customize-footer-actions"),Y.bind("ready",function(){Y.section.add(new Y.OuterSection("publish_settings",{title:Y.l10n.publishSettings,priority:0,active:Y.settings.theme.active}))}),Y.section("publish_settings",function(t){var e,n,i,a,o,s,r;function c(){r=r||Y.utils.highlightButton(u,{delay:1e3,focusTarget:d})}function l(){r&&(r(),r=null)}e=new Y.Control("trash_changeset",{type:"button",section:t.id,priority:30,input_attrs:{class:"button-link button-link-delete",value:Y.l10n.discardChanges}}),Y.control.add(e),e.deferred.embedded.done(function(){e.container.find(".button-link").on("click",function(){confirm(Y.l10n.trashConfirm)&&wp.customize.previewer.trash()})}),Y.control.add(new Y.PreviewLinkControl("changeset_preview_link",{section:t.id,priority:100})),t.active.validate=n=function(){return!!Y.state("activated").get()&&!(Y.state("trashing").get()||"trash"===Y.state("changesetStatus").get()||""===Y.state("changesetStatus").get()&&Y.state("saved").get())},s=function(){t.active.set(n())},Y.state("activated").bind(s),Y.state("trashing").bind(s),Y.state("saved").bind(s),Y.state("changesetStatus").bind(s),s(),(s=function(){p.toggle(t.active.get()),d.toggleClass("has-next-sibling",t.active.get())})(),t.active.bind(s),Y.state("selectedChangesetStatus").bind(l),t.contentContainer.find(".customize-action").text(Y.l10n.updating),t.contentContainer.find(".customize-section-back").removeAttr("tabindex"),p.prop("disabled",!1),p.on("click",function(e){e.preventDefault(),t.expanded.set(!t.expanded.get())}),t.expanded.bind(function(e){p.attr("aria-expanded",String(e)),p.toggleClass("active",e),e?l():(""!==(e=Y.state("changesetStatus").get())&&"auto-draft"!==e||(e="publish"),(Y.state("selectedChangesetStatus").get()!==e||"future"===Y.state("selectedChangesetStatus").get()&&Y.state("selectedChangesetDate").get()!==Y.state("changesetDate").get())&&c())}),s=new Y.Control("changeset_status",{priority:10,type:"radio",section:"publish_settings",setting:Y.state("selectedChangesetStatus"),templateId:"customize-selected-changeset-status-control",label:Y.l10n.action,choices:Y.settings.changeset.statusChoices}),Y.control.add(s),(i=new Y.DateTimeControl("changeset_scheduled_date",{priority:20,section:"publish_settings",setting:Y.state("selectedChangesetDate"),minYear:(new Date).getFullYear(),allowPastDate:!1,includeTime:!0,twelveHourFormat:/a/i.test(Y.settings.timeFormat),description:Y.l10n.scheduleDescription})).notifications.alt=!0,Y.control.add(i),a=function(){Y.state("selectedChangesetStatus").set("publish"),Y.previewer.save()},s=function(){var e="future"===Y.state("changesetStatus").get()&&"future"===Y.state("selectedChangesetStatus").get()&&Y.state("changesetDate").get()&&Y.state("selectedChangesetDate").get()===Y.state("changesetDate").get()&&0<=Y.utils.getRemainingTime(Y.state("changesetDate").get());e&&!o?o=setInterval(function(){var e=Y.utils.getRemainingTime(Y.state("changesetDate").get());Y.state("remainingTimeToPublish").set(e),e<=0&&(clearInterval(o),o=0,a())},1e3):!e&&o&&(clearInterval(o),o=0)},Y.state("changesetDate").bind(s),Y.state("selectedChangesetDate").bind(s),Y.state("changesetStatus").bind(s),Y.state("selectedChangesetStatus").bind(s),s(),i.active.validate=function(){return"future"===Y.state("selectedChangesetStatus").get()},(s=function(e){i.active.set("future"===e)})(Y.state("selectedChangesetStatus").get()),Y.state("selectedChangesetStatus").bind(s),Y.state("saving").bind(function(e){e&&"future"===Y.state("selectedChangesetStatus").get()&&i.toggleFutureDateNotification(!i.isFutureDate())})}),J("#customize-controls").on("keydown",function(e){var t=13===e.which,n=J(e.target);t&&(n.is("input:not([type=button])")||n.is("select"))&&e.preventDefault()}),J(".customize-info").find("> .accordion-section-title .customize-help-toggle").on("click",function(){var e=J(this).closest(".accordion-section"),t=e.find(".customize-panel-description:first");e.hasClass("cannot-expand")||(e.hasClass("open")?(e.toggleClass("open"),t.slideUp(Y.Panel.prototype.defaultExpandedArguments.duration,function(){t.trigger("toggled")}),J(this).attr("aria-expanded",!1)):(t.slideDown(Y.Panel.prototype.defaultExpandedArguments.duration,function(){t.trigger("toggled")}),e.toggleClass("open"),J(this).attr("aria-expanded",!0)))}),Y.previewer=new Y.Previewer({container:"#customize-preview",form:"#customize-controls",previewUrl:Y.settings.url.preview,allowedUrls:Y.settings.url.allowed},{nonce:Y.settings.nonce,query:function(e){var t={wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,nonce:this.nonce.preview,customize_changeset_uuid:Y.settings.changeset.uuid};return!Y.settings.changeset.autosaved&&Y.state("saved").get()||(t.customize_autosaved="on"),t.customized=JSON.stringify(Y.dirtyValues({unsaved:e&&e.excludeCustomizedSaved})),t},save:function(i){var e,t,a=this,o=J.Deferred(),s=Y.state("selectedChangesetStatus").get(),r=Y.state("selectedChangesetDate").get(),n=Y.state("processing"),c={},l=[],d=[],u=[];function p(e){c[e.id]=!0}return i&&i.status&&(s=i.status),Y.state("saving").get()&&(o.reject("already_saving"),o.promise()),Y.state("saving").set(!0),t=function(){var n={},t=Y._latestRevision,e="client_side_error";if(Y.bind("change",p),Y.notifications.remove(e),Y.each(function(t){t.notifications.each(function(e){"error"!==e.type||e.fromServer||(l.push(t.id),n[t.id]||(n[t.id]={}),n[t.id][e.code]=e)})}),Y.control.each(function(t){t.setting&&(t.setting.id||!t.active.get())||t.notifications.each(function(e){"error"===e.type&&u.push([t])})}),d=_.union(u,_.values(Y.findControlsForSettings(l))),!_.isEmpty(d))return d[0][0].focus(),Y.unbind("change",p),l.length&&Y.notifications.add(new Y.Notification(e,{message:(1===l.length?Y.l10n.saveBlockedError.singular:Y.l10n.saveBlockedError.plural).replace(/%s/g,String(l.length)),type:"error",dismissible:!0,saveFailure:!0})),o.rejectWith(a,[{setting_invalidities:n}]),Y.state("saving").set(!1),o.promise();e=J.extend(a.query({excludeCustomizedSaved:!1}),{nonce:a.nonce.save,customize_changeset_status:s}),i&&i.date?e.customize_changeset_date=i.date:"future"===s&&r&&(e.customize_changeset_date=r),i&&i.title&&(e.customize_changeset_title=i.title),Y.trigger("save-request-params",e),e=wp.ajax.post("customize_save",e),Y.state("processing").set(Y.state("processing").get()+1),Y.trigger("save",e),e.always(function(){Y.state("processing").set(Y.state("processing").get()-1),Y.state("saving").set(!1),Y.unbind("change",p)}),Y.notifications.each(function(e){e.saveFailure&&Y.notifications.remove(e.code)}),e.fail(function(e){var t,n={type:"error",dismissible:!0,fromServer:!0,saveFailure:!0};"0"===e?e="not_logged_in":"-1"===e&&(e="invalid_nonce"),"invalid_nonce"===e?a.cheatin():"not_logged_in"===e?(a.preview.iframe.hide(),a.login().done(function(){a.save(),a.preview.iframe.show()})):e.code?"not_future_date"===e.code&&Y.section.has("publish_settings")&&Y.section("publish_settings").active.get()&&Y.control.has("changeset_scheduled_date")?Y.control("changeset_scheduled_date").toggleFutureDateNotification(!0).focus():"changeset_locked"!==e.code&&(t=new Y.Notification(e.code,_.extend(n,{message:e.message}))):t=new Y.Notification("unknown_error",_.extend(n,{message:Y.l10n.unknownRequestFail})),t&&Y.notifications.add(t),e.setting_validities&&Y._handleSettingValidities({settingValidities:e.setting_validities,focusInvalidControl:!0}),o.rejectWith(a,[e]),Y.trigger("error",e),"changeset_already_published"===e.code&&e.next_changeset_uuid&&(Y.settings.changeset.uuid=e.next_changeset_uuid,Y.state("changesetStatus").set(""),Y.settings.changeset.branching&&h.send("changeset-uuid",Y.settings.changeset.uuid),Y.previewer.send("changeset-uuid",Y.settings.changeset.uuid))}),e.done(function(e){a.send("saved",e),Y.state("changesetStatus").set(e.changeset_status),e.changeset_date&&Y.state("changesetDate").set(e.changeset_date),"publish"===e.changeset_status&&(Y.each(function(e){e._dirty&&(_.isUndefined(Y._latestSettingRevisions[e.id])||Y._latestSettingRevisions[e.id]<=t)&&(e._dirty=!1)}),Y.state("changesetStatus").set(""),Y.settings.changeset.uuid=e.next_changeset_uuid,Y.settings.changeset.branching)&&h.send("changeset-uuid",Y.settings.changeset.uuid),Y._lastSavedRevision=Math.max(t,Y._lastSavedRevision),e.setting_validities&&Y._handleSettingValidities({settingValidities:e.setting_validities,focusInvalidControl:!0}),o.resolveWith(a,[e]),Y.trigger("saved",e),_.isEmpty(c)||Y.state("saved").set(!1)})},0===n()?t():(e=function(){0===n()&&(Y.state.unbind("change",e),t())},Y.state.bind("change",e)),o.promise()},trash:function(){var e,n,i;Y.state("trashing").set(!0),Y.state("processing").set(Y.state("processing").get()+1),e=wp.ajax.post("customize_trash",{customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.trash}),Y.notifications.add(new Y.OverlayNotification("changeset_trashing",{type:"info",message:Y.l10n.revertingChanges,loading:!0})),n=function(){var e,t=document.createElement("a");Y.state("changesetStatus").set("trash"),Y.each(function(e){e._dirty=!1}),Y.state("saved").set(!0),t.href=location.href,delete(e=Y.utils.parseQueryString(t.search.substr(1))).changeset_uuid,e.return=Y.settings.url.return,t.search=J.param(e),location.replace(t.href)},i=function(e,t){e=e||"unknown_error";Y.state("processing").set(Y.state("processing").get()-1),Y.state("trashing").set(!1),Y.notifications.remove("changeset_trashing"),Y.notifications.add(new Y.Notification(e,{message:t||Y.l10n.unknownError,dismissible:!0,type:"error"}))},e.done(function(e){n(e.message)}),e.fail(function(e){var t=e.code||"trashing_failed";e.success||"non_existent_changeset"===t||"changeset_already_trashed"===t?n(e.message):i(t,e.message)})},getFrontendPreviewUrl:function(){var e,t=document.createElement("a");return t.href=this.previewUrl.get(),e=Y.utils.parseQueryString(t.search.substr(1)),Y.state("changesetStatus").get()&&"publish"!==Y.state("changesetStatus").get()&&(e.customize_changeset_uuid=Y.settings.changeset.uuid),Y.state("activated").get()||(e.customize_theme=Y.settings.theme.stylesheet),t.search=J.param(e),t.href}}),J.ajaxPrefilter(function(e){/wp_customize=on/.test(e.data)&&(e.data+="&"+J.param({customize_preview_nonce:Y.settings.nonce.preview}))}),Y.previewer.bind("nonce",function(e){J.extend(this.nonce,e)}),Y.bind("nonce-refresh",function(e){J.extend(Y.settings.nonce,e),J.extend(Y.previewer.nonce,e),Y.previewer.send("nonce-refresh",e)}),J.each(Y.settings.settings,function(e,t){var n=Y.settingConstructor[t.type]||Y.Setting;Y.add(new n(e,t.value,{transport:t.transport,previewer:Y.previewer,dirty:!!t.dirty}))}),J.each(Y.settings.panels,function(e,t){var n=Y.panelConstructor[t.type]||Y.Panel,t=_.extend({params:t},t);Y.panel.add(new n(e,t))}),J.each(Y.settings.sections,function(e,t){var n=Y.sectionConstructor[t.type]||Y.Section,t=_.extend({params:t},t);Y.section.add(new n(e,t))}),J.each(Y.settings.controls,function(e,t){var n=Y.controlConstructor[t.type]||Y.Control,t=_.extend({params:t},t);Y.control.add(new n(e,t))}),_.each(["panel","section","control"],function(e){var t=Y.settings.autofocus[e];t&&Y[e](t,function(e){e.deferred.embedded.done(function(){Y.previewer.deferred.active.done(function(){e.focus()})})})}),Y.bind("ready",Y.reflowPaneContents),J([Y.panel,Y.section,Y.control]).each(function(e,t){var n=_.debounce(Y.reflowPaneContents,Y.settings.timeouts.reflowPaneContents);t.bind("add",n),t.bind("change",n),t.bind("remove",n)}),Y.bind("ready",function(){var e,t,n;Y.notifications.container=J("#customize-notifications-area"),Y.notifications.bind("change",_.debounce(function(){Y.notifications.render()})),e=J(".wp-full-overlay-sidebar-content"),Y.notifications.bind("rendered",function(){e.css("top",""),0!==Y.notifications.count()&&(t=Y.notifications.container.outerHeight()+1,n=parseInt(e.css("top"),10),e.css("top",n+t+"px")),Y.notifications.trigger("sidebarTopUpdated")}),Y.notifications.render()}),s=Y.state,c=s.instance("saved"),l=s.instance("saving"),f=s.instance("trashing"),m=s.instance("activated"),e=s.instance("processing"),I=s.instance("paneVisible"),H=s.instance("expandedPanel"),L=s.instance("expandedSection"),g=s.instance("changesetStatus"),v=s.instance("selectedChangesetStatus"),w=s.instance("changesetDate"),b=s.instance("selectedChangesetDate"),M=s.instance("previewerAlive"),O=s.instance("editShortcutVisibility"),C=s.instance("changesetLocked"),s.bind("change",function(){var e;m()?""===g.get()&&c()?(Y.settings.changeset.currentUserCanPublish?d.val(Y.l10n.published):d.val(Y.l10n.saved),i.find(".screen-reader-text").text(Y.l10n.close)):("draft"===v()?c()&&v()===g()?d.val(Y.l10n.draftSaved):d.val(Y.l10n.saveDraft):"future"===v()?!c()||v()!==g()||w.get()!==b.get()?d.val(Y.l10n.schedule):d.val(Y.l10n.scheduled):Y.settings.changeset.currentUserCanPublish&&d.val(Y.l10n.publish),i.find(".screen-reader-text").text(Y.l10n.cancel)):(d.val(Y.l10n.activate),i.find(".screen-reader-text").text(Y.l10n.cancel)),e=!l()&&!f()&&!C()&&(!m()||!c()||g()!==v()&&""!==g()||"future"===v()&&w.get()!==b.get()),d.prop("disabled",!e)}),v.validate=function(e){return""===e||"auto-draft"===e?null:e},S=Y.settings.changeset.currentUserCanPublish?"publish":"draft",g(Y.settings.changeset.status),C(Boolean(Y.settings.changeset.lockUser)),w(Y.settings.changeset.publishDate),b(Y.settings.changeset.publishDate),v(""===Y.settings.changeset.status||"auto-draft"===Y.settings.changeset.status?S:Y.settings.changeset.status),v.link(g),c(!0),""===g()&&Y.each(function(e){e._dirty&&c(!1)}),l(!1),m(Y.settings.theme.active),e(0),I(!0),H(!1),L(!1),M(!0),O("visible"),Y.bind("change",function(){s("saved").get()&&s("saved").set(!1)}),Y.settings.changeset.branching&&c.bind(function(e){e||r(!0)}),l.bind(function(e){o.toggleClass("saving",e)}),f.bind(function(e){o.toggleClass("trashing",e)}),Y.bind("saved",function(e){s("saved").set(!0),"publish"===e.changeset_status&&s("activated").set(!0)}),m.bind(function(e){e&&Y.trigger("activated")}),r=function(e){var t,n;if(history.replaceState){if((t=document.createElement("a")).href=location.href,n=Y.utils.parseQueryString(t.search.substr(1)),e){if(n.changeset_uuid===Y.settings.changeset.uuid)return;n.changeset_uuid=Y.settings.changeset.uuid}else{if(!n.changeset_uuid)return;delete n.changeset_uuid}t.search=J.param(n),history.replaceState({},document.title,t.href)}},Y.settings.changeset.branching&&g.bind(function(e){r(""!==e&&"publish"!==e&&"trash"!==e)}),j=Y.OverlayNotification.extend({templateId:"customize-changeset-locked-notification",lockUser:null,initialize:function(e,t){e=e||"changeset_locked",t=_.extend({message:"",type:"warning",containerClasses:"",lockUser:{}},t);t.containerClasses+=" notification-changeset-locked",Y.OverlayNotification.prototype.initialize.call(this,e,t)},render:function(){var t,n,i=this,e=_.extend({allowOverride:!1,returnUrl:Y.settings.url.return,previewUrl:Y.previewer.previewUrl.get(),frontendPreviewUrl:Y.previewer.getFrontendPreviewUrl()},this),a=Y.OverlayNotification.prototype.render.call(e);return Y.requestChangesetUpdate({},{autosave:!0}).fail(function(e){e.autosaved||a.find(".notice-error").prop("hidden",!1).text(e.message||Y.l10n.unknownRequestFail)}),(t=a.find(".customize-notice-take-over-button")).on("click",function(e){e.preventDefault(),n||(t.addClass("disabled"),(n=wp.ajax.post("customize_override_changeset_lock",{wp_customize:"on",customize_theme:Y.settings.theme.stylesheet,customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.override_lock})).done(function(){Y.notifications.remove(i.code),Y.state("changesetLocked").set(!1)}),n.fail(function(e){e=e.message||Y.l10n.unknownRequestFail;a.find(".notice-error").prop("hidden",!1).text(e),n.always(function(){t.removeClass("disabled")})}),n.always(function(){n=null}))}),a}}),Y.settings.changeset.lockUser&&F({allowOverride:!0}),J(document).on("heartbeat-send.update_lock_notice",function(e,t){t.check_changeset_lock=!0,t.changeset_uuid=Y.settings.changeset.uuid}),J(document).on("heartbeat-tick.update_lock_notice",function(e,t){var n,i="changeset_locked";t.customize_changeset_lock_user&&((n=Y.notifications(i))&&n.lockUser.id!==Y.settings.changeset.lockUser.id&&Y.notifications.remove(i),F({lockUser:t.customize_changeset_lock_user}))}),Y.bind("error",function(e){"changeset_locked"===e.code&&e.lock_user&&F({lockUser:e.lock_user})}),T=!(S=[]),Y.settings.changeset.autosaved&&(Y.state("saved").set(!1),S.push("customize_autosaved")),Y.settings.changeset.branching||Y.settings.changeset.status&&"auto-draft"!==Y.settings.changeset.status||S.push("changeset_uuid"),0<S.length&&(S=S,e=document.createElement("a"),x=0,e.href=location.href,y=Y.utils.parseQueryString(e.search.substr(1)),_.each(S,function(e){void 0!==y[e]&&(x+=1,delete y[e])}),0!==x)&&(e.search=J.param(y),history.replaceState({},document.title,e.href)),(Y.settings.changeset.latestAutoDraftUuid||Y.settings.changeset.hasAutosaveRevision)&&(z="autosave_available",Y.notifications.add(new Y.Notification(z,{message:Y.l10n.autosaveNotice,type:"warning",dismissible:!0,render:function(){var e=Y.Notification.prototype.render.call(this),t=e.find("a");return t.prop("href",q()),t.on("click",function(e){e.preventDefault(),location.replace(q())}),e.find(".notice-dismiss").on("click",Q),e}})),Y.bind("change",k=function(){Q(),Y.notifications.remove(z),Y.unbind("change",k),Y.state("changesetStatus").unbind(k)}),Y.state("changesetStatus").bind(k)),parseInt(J("#customize-info").data("block-theme"),10)&&(S=Y.l10n.blockThemeNotification,Y.notifications.add(new Y.Notification("site_editor_block_theme_notice",{message:S,type:"info",dismissible:!1,render:function(){var e=Y.Notification.prototype.render.call(this),t=e.find("button.switch-to-editor");return t.on("click",function(e){e.preventDefault(),location.assign(t.data("action"))}),e}}))),Y.previewer.previewUrl()?Y.previewer.refresh():Y.previewer.previewUrl(Y.settings.url.home),d.on("click",function(e){Y.previewer.save(),e.preventDefault()}).on("keydown",function(e){9!==e.which&&(13===e.which&&Y.previewer.save(),e.preventDefault())}),i.on("keydown",function(e){9!==e.which&&(13===e.which&&this.click(),e.preventDefault())}),J(".collapse-sidebar").on("click",function(){Y.state("paneVisible").set(!Y.state("paneVisible").get())}),Y.state("paneVisible").bind(function(e){t.toggleClass("preview-only",!e),t.toggleClass("expanded",e),t.toggleClass("collapsed",!e),e?J(".collapse-sidebar").attr({"aria-expanded":"true","aria-label":Y.l10n.collapseSidebar}):J(".collapse-sidebar").attr({"aria-expanded":"false","aria-label":Y.l10n.expandSidebar})}),o.on("keydown",function(e){var t,n=[],i=[],a=[];27===e.which&&(J(e.target).is("body")||J.contains(J("#customize-controls")[0],e.target))&&null===e.target.closest(".block-editor-writing-flow")&&null===e.target.closest(".block-editor-block-list__block-popover")&&(Y.control.each(function(e){e.expanded&&e.expanded()&&_.isFunction(e.collapse)&&n.push(e)}),Y.section.each(function(e){e.expanded()&&i.push(e)}),Y.panel.each(function(e){e.expanded()&&a.push(e)}),0<n.length&&0===i.length&&(n.length=0),t=n[0]||i[0]||a[0])&&("themes"===t.params.type?o.hasClass("modal-open")?t.closeDetails():Y.panel.has("themes")&&Y.panel("themes").collapse():(t.collapse(),e.preventDefault()))}),J(".customize-controls-preview-toggle").on("click",function(){Y.state("paneVisible").set(!Y.state("paneVisible").get())}),P=J(".wp-full-overlay-sidebar-content"),I=function(e){var t=Y.state("expandedSection").get(),n=Y.state("expandedPanel").get();if(D&&D.element&&(R(D.element),D.element.find(".description").off("toggled",E)),!e)if(!t&&n&&n.contentContainer)e=n;else{if(n||!t||!t.contentContainer)return void(D=!1);e=t}(n=e.contentContainer.find(".customize-section-title, .panel-meta").first()).length?((D={instance:e,element:n,parent:n.closest(".customize-pane-child"),height:n.outerHeight()}).element.find(".description").on("toggled",E),t&&B(D.element,D.parent)):D=!1},Y.state("expandedSection").bind(I),Y.state("expandedPanel").bind(I),P.on("scroll",_.throttle(function(){var e,t;D&&(e=P.scrollTop(),t=N?e===N?0:N<e?1:-1:1,N=e,0!==t)&&W(D,e,t)},8)),Y.notifications.bind("sidebarTopUpdated",function(){D&&D.element.hasClass("is-sticky")&&D.element.css("top",P.css("top"))}),R=function(e){e.hasClass("is-sticky")&&e.removeClass("is-sticky").addClass("maybe-sticky is-in-view").css("top",P.scrollTop()+"px")},B=function(e,t){e.hasClass("is-in-view")&&(e.removeClass("maybe-sticky is-in-view").css({width:"",top:""}),t.css("padding-top",""))},E=function(){D.height=D.element.outerHeight()},W=function(e,t,n){var i=e.element,a=e.parent,e=e.height,o=parseInt(i.css("top"),10),s=i.hasClass("maybe-sticky"),r=i.hasClass("is-sticky"),c=i.hasClass("is-in-view");if(-1===n){if(!s&&e<=t)s=!0,i.addClass("maybe-sticky");else if(0===t)return i.removeClass("maybe-sticky is-in-view is-sticky").css({top:"",width:""}),void a.css("padding-top","");c&&!r?t<=o&&i.addClass("is-sticky").css({top:P.css("top"),width:a.outerWidth()+"px"}):s&&!c&&(i.addClass("is-in-view").css("top",t-e+"px"),a.css("padding-top",e+"px"))}else r&&(o=t,i.removeClass("is-sticky").css({top:o+"px",width:""})),c&&o+e<t&&(i.removeClass("is-in-view"),a.css("padding-top",""))},Y.previewedDevice=Y.state("previewedDevice"),Y.bind("ready",function(){_.find(Y.settings.previewableDevices,function(e,t){if(!0===e.default)return Y.previewedDevice.set(t),!0})}),a.find(".devices button").on("click",function(e){Y.previewedDevice.set(J(e.currentTarget).data("device"))}),Y.previewedDevice.bind(function(e){var t=J(".wp-full-overlay"),n="";a.find(".devices button").removeClass("active").attr("aria-pressed",!1),a.find(".devices .preview-"+e).addClass("active").attr("aria-pressed",!0),J.each(Y.settings.previewableDevices,function(e){n+=" preview-"+e}),t.removeClass(n).addClass("preview-"+e)}),n.length&&Y("blogname",function(t){function e(){var e=t()||"";n.text(e.toString().trim()||Y.l10n.untitledBlogName)}t.bind(e),e()}),h=new Y.Messenger({url:Y.settings.url.parent,channel:"loader"}),U=!1,h.bind("back",function(){U=!0}),Y.bind("change",V),Y.state("selectedChangesetStatus").bind(V),Y.state("selectedChangesetDate").bind(V),h.bind("confirm-close",function(){$().done(function(){h.send("confirmed-close",!0)}).fail(function(){h.send("confirmed-close",!1)})}),i.on("click.customize-controls-close",function(e){e.preventDefault(),U?h.send("close"):$().done(function(){J(window).off("beforeunload.customize-confirm"),window.location.href=i.prop("href")})}),J.each(["saved","change"],function(e,t){Y.bind(t,function(){h.send(t)})}),Y.bind("title",function(e){h.send("title",e)}),Y.settings.changeset.branching&&h.send("changeset-uuid",Y.settings.changeset.uuid),h.send("ready"),J.each({background_image:{controls:["background_preset","background_position","background_size","background_repeat","background_attachment"],callback:function(e){return!!e}},show_on_front:{controls:["page_on_front","page_for_posts"],callback:function(e){return"page"===e}},header_textcolor:{controls:["header_textcolor"],callback:function(e){return"blank"!==e}}},function(e,i){Y(e,function(n){J.each(i.controls,function(e,t){Y.control(t,function(t){function e(e){t.container.toggle(i.callback(e))}e(n.get()),n.bind(e)})})})}),Y.control("background_preset",function(e){var i={default:[!1,!1,!1,!1],fill:[!0,!1,!1,!1],fit:[!0,!1,!0,!1],repeat:[!0,!1,!1,!0],custom:[!0,!0,!0,!0]},a={default:[_wpCustomizeBackground.defaults["default-position-x"],_wpCustomizeBackground.defaults["default-position-y"],_wpCustomizeBackground.defaults["default-size"],_wpCustomizeBackground.defaults["default-repeat"],_wpCustomizeBackground.defaults["default-attachment"]],fill:["left","top","cover","no-repeat","fixed"],fit:["left","top","contain","no-repeat","fixed"],repeat:["left","top","auto","repeat","scroll"]},t=function(n){_.each(["background_position","background_size","background_repeat","background_attachment"],function(e,t){e=Y.control(e);e&&e.container.toggle(i[n][t])})},n=function(n){_.each(["background_position_x","background_position_y","background_size","background_repeat","background_attachment"],function(e,t){e=Y(e);e&&e.set(a[n][t])})},o=e.setting.get();t(o),e.setting.bind("change",function(e){t(e),"custom"!==e&&n(e)})}),Y.control("background_repeat",function(t){t.elements[0].unsync(Y("background_repeat")),t.element=new Y.Element(t.container.find("input")),t.element.set("no-repeat"!==t.setting()),t.element.bind(function(e){t.setting.set(e?"repeat":"no-repeat")}),t.setting.bind(function(e){t.element.set("no-repeat"!==e)})}),Y.control("background_attachment",function(t){t.elements[0].unsync(Y("background_attachment")),t.element=new Y.Element(t.container.find("input")),t.element.set("fixed"!==t.setting()),t.element.bind(function(e){t.setting.set(e?"scroll":"fixed")}),t.setting.bind(function(e){t.element.set("fixed"!==e)})}),Y.control("display_header_text",function(t){var n="";t.elements[0].unsync(Y("header_textcolor")),t.element=new Y.Element(t.container.find("input")),t.element.set("blank"!==t.setting()),t.element.bind(function(e){e||(n=Y("header_textcolor").get()),t.setting.set(e?n:"blank")}),t.setting.bind(function(e){t.element.set("blank"!==e)})}),Y("show_on_front","page_on_front","page_for_posts",function(i,a,o){function e(){var e="show_on_front_page_collision",t=parseInt(a(),10),n=parseInt(o(),10);"page"===i()&&(this===a&&0<t&&Y.previewer.previewUrl.set(Y.settings.url.home),this===o)&&0<n&&Y.previewer.previewUrl.set(Y.settings.url.home+"?page_id="+n),"page"===i()&&t&&n&&t===n?i.notifications.add(new Y.Notification(e,{type:"error",message:Y.l10n.pageOnFrontError})):i.notifications.remove(e)}i.bind(e),a.bind(e),o.bind(e),e.call(i,i()),Y.control("show_on_front",function(e){e.deferred.embedded.done(function(){e.container.append(e.getNotificationsContainerElement())})})}),A=J.Deferred(),Y.section("custom_css",function(t){t.deferred.embedded.done(function(){t.expanded()?A.resolve(t):t.expanded.bind(function(e){e&&A.resolve(t)})})}),A.done(function(e){var t=Y.control("custom_css");t.container.find(".customize-control-title:first").addClass("screen-reader-text"),e.container.find(".section-description-buttons .section-description-close").on("click",function(){e.container.find(".section-meta .customize-section-description:first").removeClass("open").slideUp(),e.container.find(".customize-help-toggle").attr("aria-expanded","false").focus()}),t&&!t.setting.get()&&(e.container.find(".section-meta .customize-section-description:first").addClass("open").show().trigger("toggled"),e.container.find(".customize-help-toggle").attr("aria-expanded","true"))}),Y.control("header_video",function(n){n.deferred.embedded.done(function(){function e(){var e=Y.section(n.section()),t="video_header_not_available";e&&(n.active.get()?e.notifications.remove(t):e.notifications.add(new Y.Notification(t,{type:"info",message:Y.l10n.videoHeaderNotice})))}e(),n.active.bind(e)})}),Y.previewer.bind("selective-refresh-setting-validities",function(e){Y._handleSettingValidities({settingValidities:e,focusInvalidControl:!1})}),Y.previewer.bind("focus-control-for-setting",function(n){var i=[];Y.control.each(function(e){var t=_.pluck(e.settings,"id");-1!==_.indexOf(t,n)&&i.push(e)}),i.length&&(i.sort(function(e,t){return e.priority()-t.priority()}),i[0].focus())}),Y.previewer.bind("refresh",function(){Y.previewer.refresh()}),Y.state("paneVisible").bind(function(e){var t=window.matchMedia?window.matchMedia("screen and ( max-width: 640px )").matches:J(window).width()<=640;Y.state("editShortcutVisibility").set(e||t?"visible":"hidden")}),window.matchMedia&&window.matchMedia("screen and ( max-width: 640px )").addListener(function(){var e=Y.state("paneVisible");e.callbacks.fireWith(e,[e.get(),e.get()])}),Y.previewer.bind("edit-shortcut-visibility",function(e){Y.state("editShortcutVisibility").set(e)}),Y.state("editShortcutVisibility").bind(function(e){Y.previewer.send("edit-shortcut-visibility",e)}),Y.bind("change",function e(){var t,n,i,a=!1;function o(e){e||Y.settings.changeset.autosaved||(Y.settings.changeset.autosaved=!0,Y.previewer.send("autosaving"))}Y.unbind("change",e),Y.state("saved").bind(o),o(Y.state("saved").get()),n=function(){a||(a=!0,Y.requestChangesetUpdate({},{autosave:!0}).always(function(){a=!1})),i()},(i=function(){clearTimeout(t),t=setTimeout(function(){n()},Y.settings.timeouts.changesetAutoSave)})(),J(document).on("visibilitychange.wp-customize-changeset-update",function(){document.hidden&&n()}),J(window).on("beforeunload.wp-customize-changeset-update",function(){n()})}),J(document).one("tinymce-editor-setup",function(){window.tinymce.ui.FloatPanel&&(!window.tinymce.ui.FloatPanel.zIndex||window.tinymce.ui.FloatPanel.zIndex<500001)&&(window.tinymce.ui.FloatPanel.zIndex=500001)}),o.addClass("ready"),Y.trigger("ready"))})}((wp,jQuery)); \ No newline at end of file
diff --git a/wp-admin/js/customize-nav-menus.js b/wp-admin/js/customize-nav-menus.js
index 9dad3e1..2b5cea3 100644
--- a/wp-admin/js/customize-nav-menus.js
+++ b/wp-admin/js/customize-nav-menus.js
@@ -2,7 +2,7 @@
* @output wp-admin/js/customize-nav-menus.js
*/
-/* global _wpCustomizeNavMenusSettings, wpNavMenu, console */
+/* global menus, _wpCustomizeNavMenusSettings, wpNavMenu, console */
( function( api, wp, $ ) {
'use strict';
@@ -1132,6 +1132,8 @@
$( '#menu-to-edit' ).removeAttr( 'id' );
wpNavMenu.menuList.attr( 'id', 'menu-to-edit' ).addClass( 'menu' );
+ api.Menus.MenuItemControl.prototype.initAccessibility();
+
_.each( api.section( section.id ).controls(), function( control ) {
if ( 'nav_menu_item' === control.params.type ) {
control.actuallyEmbed();
@@ -1575,6 +1577,80 @@
},
/**
+ * Set up the initial state of the screen reader accessibility information for menu items.
+ *
+ * @since 6.6.0
+ */
+ initAccessibility: function() {
+ var control = this,
+ menu = $( '#menu-to-edit' );
+
+ // Refresh the accessibility when the user comes close to the item in any way.
+ menu.on( 'mouseenter.refreshAccessibility focus.refreshAccessibility touchstart.refreshAccessibility', '.menu-item', function(){
+ control.refreshAdvancedAccessibilityOfItem( $( this ).find( 'button.item-edit' ) );
+ } );
+
+ // We have to update on click as well because we might hover first, change the item, and then click.
+ menu.on( 'click', 'button.item-edit', function() {
+ control.refreshAdvancedAccessibilityOfItem( $( this ) );
+ } );
+ },
+
+ /**
+ * refreshAdvancedAccessibilityOfItem( [itemToRefresh] )
+ *
+ * Refreshes advanced accessibility buttons for one menu item.
+ * Shows or hides buttons based on the location of the menu item.
+ *
+ * @param {Object} itemToRefresh The menu item that might need its advanced accessibility buttons refreshed
+ *
+ * @since 6.6.0
+ */
+ refreshAdvancedAccessibilityOfItem: function( itemToRefresh ) {
+ // Only refresh accessibility when necessary.
+ if ( true !== $( itemToRefresh ).data( 'needs_accessibility_refresh' ) ) {
+ return;
+ }
+
+ var primaryItems, itemPosition, title,
+ parentItem, parentItemId, parentItemName, subItems, totalSubItems,
+ $this = $( itemToRefresh ),
+ menuItem = $this.closest( 'li.menu-item' ).first(),
+ depth = menuItem.menuItemDepth(),
+ isPrimaryMenuItem = ( 0 === depth ),
+ itemName = $this.closest( '.menu-item-handle' ).find( '.menu-item-title' ).text(),
+ menuItemType = $this.closest( '.menu-item-handle' ).find( '.item-type' ).text(),
+ totalMenuItems = $( '#menu-to-edit li' ).length;
+
+ if ( isPrimaryMenuItem ) {
+ primaryItems = $( '.menu-item-depth-0' ),
+ itemPosition = primaryItems.index( menuItem ) + 1,
+ totalMenuItems = primaryItems.length,
+ // String together help text for primary menu items.
+ title = menus.menuFocus.replace( '%1$s', itemName ).replace( '%2$s', menuItemType ).replace( '%3$d', itemPosition ).replace( '%4$d', totalMenuItems );
+ } else {
+ parentItem = menuItem.prevAll( '.menu-item-depth-' + parseInt( depth - 1, 10 ) ).first(),
+ parentItemId = parentItem.find( '.menu-item-data-db-id' ).val(),
+ parentItemName = parentItem.find( '.menu-item-title' ).text(),
+ subItems = $( '.menu-item .menu-item-data-parent-id[value="' + parentItemId + '"]' ),
+ totalSubItems = subItems.length,
+ itemPosition = $( subItems.parents( '.menu-item' ).get().reverse() ).index( menuItem ) + 1;
+
+ // String together help text for sub menu items.
+ if ( depth < 2 ) {
+ title = menus.subMenuFocus.replace( '%1$s', itemName ).replace( '%2$s', menuItemType ).replace( '%3$d', itemPosition ).replace( '%4$d', totalSubItems ).replace( '%5$s', parentItemName );
+ } else {
+ title = menus.subMenuMoreDepthFocus.replace( '%1$s', itemName ).replace( '%2$s', menuItemType ).replace( '%3$d', itemPosition ).replace( '%4$d', totalSubItems ).replace( '%5$s', parentItemName ).replace( '%6$d', depth );
+ }
+ }
+
+ $this.find( '.screen-reader-text' ).text( title );
+
+ // Mark this item's accessibility as refreshed.
+ $this.data( 'needs_accessibility_refresh', false );
+ },
+
+ /**
* Override the embed() method to do nothing,
* so that the control isn't embedded on load,
* unless the containing section is already expanded.
@@ -1607,6 +1683,9 @@
}
control.renderContent();
control.deferred.embedded.resolve(); // This triggers control.ready().
+
+ // Mark all menu items as unprocessed.
+ $( 'button.item-edit' ).data( 'needs_accessibility_refresh', true );
},
/**
@@ -1679,22 +1758,15 @@
control.moveDown();
} else if ( isMoveLeft ) {
control.moveLeft();
- if ( 1 === control.params.depth ) {
- control.container.find( '.is-submenu' ).hide();
- } else {
- control.container.find( '.is-submenu' ).show();
- }
} else if ( isMoveRight ) {
control.moveRight();
control.params.depth += 1;
- if ( 0 === control.params.depth ) {
- control.container.find( '.is-submenu' ).hide();
- } else {
- control.container.find( '.is-submenu' ).show();
- }
}
-
+
moveBtn.focus(); // Re-focus after the container was moved.
+
+ // Mark all menu items as unprocessed.
+ $( 'button.item-edit' ).data( 'needs_accessibility_refresh', true );
} );
},
@@ -2726,6 +2798,9 @@
menuItemControl.setting.set( setting );
});
+
+ // Mark all menu items as unprocessed.
+ $( 'button.item-edit' ).data( 'needs_accessibility_refresh', true );
});
});
diff --git a/wp-admin/js/customize-nav-menus.min.js b/wp-admin/js/customize-nav-menus.min.js
index 56d54b3..e0c0ca4 100644
--- a/wp-admin/js/customize-nav-menus.min.js
+++ b/wp-admin/js/customize-nav-menus.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-!function(c,l,m){"use strict";function u(e){return(e=(e=l.sanitize.stripTagsAndEncodeText(e=e||"")).toString().trim())||c.Menus.data.l10n.unnamed}wpNavMenu.originalInit=wpNavMenu.init,wpNavMenu.options.menuItemDepthPerLevel=20,wpNavMenu.options.sortableItems="> .customize-control-nav_menu_item",wpNavMenu.options.targetTolerance=10,wpNavMenu.init=function(){this.jQueryExtensions()},c.Menus=c.Menus||{},c.Menus.data={itemTypes:[],l10n:{},settingTransport:"refresh",phpIntMax:0,defaultSettingValues:{nav_menu:{},nav_menu_item:{}},locationSlugMappedToName:{}},"undefined"!=typeof _wpCustomizeNavMenusSettings&&m.extend(c.Menus.data,_wpCustomizeNavMenusSettings),c.Menus.generatePlaceholderAutoIncrementId=function(){return-Math.ceil(c.Menus.data.phpIntMax*Math.random())},c.Menus.AvailableItemModel=Backbone.Model.extend(m.extend({id:null},c.Menus.data.defaultSettingValues.nav_menu_item)),c.Menus.AvailableItemCollection=Backbone.Collection.extend({model:c.Menus.AvailableItemModel,sort_key:"order",comparator:function(e){return-e.get(this.sort_key)},sortByField:function(e){this.sort_key=e,this.sort()}}),c.Menus.availableMenuItems=new c.Menus.AvailableItemCollection(c.Menus.data.availableMenuItems),c.Menus.insertAutoDraftPost=function(n){var i=m.Deferred(),e=l.ajax.post("customize-nav-menus-insert-auto-draft",{"customize-menus-nonce":c.settings.nonce["customize-menus"],wp_customize:"on",customize_changeset_uuid:c.settings.changeset.uuid,params:n});return e.done(function(t){t.post_id&&(c("nav_menus_created_posts").set(c("nav_menus_created_posts").get().concat([t.post_id])),"page"===n.post_type&&(c.section.has("static_front_page")&&c.section("static_front_page").activate(),c.control.each(function(e){"dropdown-pages"===e.params.type&&e.container.find('select[name^="_customize-dropdown-pages-"]').append(new Option(n.post_title,t.post_id))})),i.resolve(t))}),e.fail(function(e){var t=e||"";void 0!==e.message&&(t=e.message),console.error(t),i.rejectWith(t)}),i.promise()},c.Menus.AvailableMenuItemsPanelView=l.Backbone.View.extend({el:"#available-menu-items",events:{"input #menu-items-search":"debounceSearch","focus .menu-item-tpl":"focus","click .menu-item-tpl":"_submit","click #custom-menu-item-submit":"_submitLink","keypress #custom-menu-item-name":"_submitLink","click .new-content-item .add-content":"_submitNew","keypress .create-item-input":"_submitNew",keydown:"keyboardAccessible"},selected:null,currentMenuControl:null,debounceSearch:null,$search:null,$clearResults:null,searchTerm:"",rendered:!1,pages:{},sectionContent:"",loading:!1,addingNew:!1,initialize:function(){var n=this;c.panel.has("nav_menus")&&(this.$search=m("#menu-items-search"),this.$clearResults=this.$el.find(".clear-results"),this.sectionContent=this.$el.find(".available-menu-items-list"),this.debounceSearch=_.debounce(n.search,500),_.bindAll(this,"close"),m("#customize-controls, .customize-section-back").on("click keydown",function(e){var t=m(e.target).is(".item-delete, .item-delete *"),e=m(e.target).is(".add-new-menu-item, .add-new-menu-item *");!m("body").hasClass("adding-menu-items")||t||e||n.close()}),this.$clearResults.on("click",function(){n.$search.val("").trigger("focus").trigger("input")}),this.$el.on("input","#custom-menu-item-name.invalid, #custom-menu-item-url.invalid",function(){m(this).removeClass("invalid")}),c.panel("nav_menus").container.on("expanded",function(){n.rendered||(n.initList(),n.rendered=!0)}),this.sectionContent.on("scroll",function(){var e=n.$el.find(".accordion-section.open .available-menu-items-list").prop("scrollHeight"),t=n.$el.find(".accordion-section.open").height();!n.loading&&m(this).scrollTop()>.75*e-t&&(e=m(this).data("type"),t=m(this).data("object"),"search"===e?n.searchTerm&&n.doSearch(n.pages.search):n.loadItems([{type:e,object:t}]))}),c.previewer.bind("url",this.close),n.delegateEvents())},search:function(e){var t=m("#available-menu-items-search"),n=m("#available-menu-items .accordion-section").not(t);e&&this.searchTerm!==e.target.value&&(""===e.target.value||t.hasClass("open")?""===e.target.value&&(t.removeClass("open"),n.show(),this.$clearResults.removeClass("is-visible")):(n.fadeOut(100),t.find(".accordion-section-content").slideDown("fast"),t.addClass("open"),this.$clearResults.addClass("is-visible")),this.searchTerm=e.target.value,this.pages.search=1,this.doSearch(1))},doSearch:function(t){var e,n=this,i=m("#available-menu-items-search"),a=i.find(".accordion-section-content"),o=l.template("available-menu-item");if(n.currentRequest&&n.currentRequest.abort(),!(t<0)){if(1<t)i.addClass("loading-more"),a.attr("aria-busy","true"),l.a11y.speak(c.Menus.data.l10n.itemsLoadingMore);else if(""===n.searchTerm)return a.html(""),void l.a11y.speak("");i.addClass("loading"),n.loading=!0,e=c.previewer.query({excludeCustomizedSaved:!0}),_.extend(e,{"customize-menus-nonce":c.settings.nonce["customize-menus"],wp_customize:"on",search:n.searchTerm,page:t}),n.currentRequest=l.ajax.post("search-available-menu-items-customizer",e),n.currentRequest.done(function(e){1===t&&a.empty(),i.removeClass("loading loading-more"),a.attr("aria-busy","false"),i.addClass("open"),n.loading=!1,e=new c.Menus.AvailableItemCollection(e.items),n.collection.add(e.models),e.each(function(e){a.append(o(e.attributes))}),e.length<20?n.pages.search=-1:n.pages.search=n.pages.search+1,e&&1<t?l.a11y.speak(c.Menus.data.l10n.itemsFoundMore.replace("%d",e.length)):e&&1===t&&l.a11y.speak(c.Menus.data.l10n.itemsFound.replace("%d",e.length))}),n.currentRequest.fail(function(e){e.message&&(a.empty().append(m('<li class="nothing-found"></li>').text(e.message)),l.a11y.speak(e.message)),n.pages.search=-1}),n.currentRequest.always(function(){i.removeClass("loading loading-more"),a.attr("aria-busy","false"),n.loading=!1,n.currentRequest=null})}},initList:function(){var t=this;_.each(c.Menus.data.itemTypes,function(e){t.pages[e.type+":"+e.object]=0}),t.loadItems(c.Menus.data.itemTypes)},loadItems:function(e,t){var i=this,a=[],o={},s=l.template("available-menu-item"),t=_.isString(e)&&_.isString(t)?[{type:e,object:t}]:e;_.each(t,function(e){var t,n=e.type+":"+e.object;-1!==i.pages[n]&&((t=m("#available-menu-items-"+e.type+"-"+e.object)).find(".accordion-section-title").addClass("loading"),o[n]=t,a.push({object:e.object,type:e.type,page:i.pages[n]}))}),0!==a.length&&(i.loading=!0,e=c.previewer.query({excludeCustomizedSaved:!0}),_.extend(e,{"customize-menus-nonce":c.settings.nonce["customize-menus"],wp_customize:"on",item_types:a}),(t=l.ajax.post("load-available-menu-items-customizer",e)).done(function(e){var n;_.each(e.items,function(e,t){0===e.length?(0===i.pages[t]&&o[t].find(".accordion-section-title").addClass("cannot-expand").removeClass("loading").find(".accordion-section-title > button").prop("tabIndex",-1),i.pages[t]=-1):("post_type:page"!==t||o[t].hasClass("open")||o[t].find(".accordion-section-title > button").trigger("click"),e=new c.Menus.AvailableItemCollection(e),i.collection.add(e.models),n=o[t].find(".available-menu-items-list"),e.each(function(e){n.append(s(e.attributes))}),i.pages[t]+=1)})}),t.fail(function(e){"undefined"!=typeof console&&console.error&&console.error(e)}),t.always(function(){_.each(o,function(e){e.find(".accordion-section-title").removeClass("loading")}),i.loading=!1}))},itemSectionHeight:function(){var e=window.innerHeight,t=this.$el.find(".accordion-section:not( #available-menu-items-search ) .accordion-section-content"),n=this.$el.find('.accordion-section:not( #available-menu-items-search ) .available-menu-items-list:not(":only-child")'),e=e-(46*(1+t.length)+14);120<e&&e<290&&(t.css("max-height",e),n.css("max-height",e-60))},select:function(e){this.selected=m(e),this.selected.siblings(".menu-item-tpl").removeClass("selected"),this.selected.addClass("selected")},focus:function(e){this.select(m(e.currentTarget))},_submit:function(e){"keypress"===e.type&&13!==e.which&&32!==e.which||this.submit(m(e.currentTarget))},submit:function(e){var t;(e=e||this.selected)&&this.currentMenuControl&&(this.select(e),t=m(this.selected).data("menu-item-id"),t=this.collection.findWhere({id:t}))&&(this.currentMenuControl.addItemToMenu(t.attributes),m(e).find(".menu-item-handle").addClass("item-added"))},_submitLink:function(e){"keypress"===e.type&&13!==e.which||this.submitLink()},submitLink:function(){var e,t=m("#custom-menu-item-name"),n=m("#custom-menu-item-url"),i=n.val().trim();this.currentMenuControl&&(e=/^((\w+:)?\/\/\w.*|\w+:(?!\/\/$)|\/|\?|#)/,""===t.val()?t.addClass("invalid"):e.test(i)?(e={title:t.val(),url:i,type:"custom",type_label:c.Menus.data.l10n.custom_label,object:"custom"},this.currentMenuControl.addItemToMenu(e),n.val("").attr("placeholder","https://"),t.val("")):n.addClass("invalid"))},_submitNew:function(e){"keypress"===e.type&&13!==e.which||this.addingNew||(e=m(e.target).closest(".accordion-section"),this.submitNew(e))},submitNew:function(n){var i=this,a=n.find(".create-item-input"),e=a.val(),t=n.find(".available-menu-items-list"),o=t.data("type"),s=t.data("object"),r=t.data("type_label");this.currentMenuControl&&"post_type"===o&&(""===a.val().trim()?(a.addClass("invalid"),a.focus()):(a.removeClass("invalid"),n.find(".accordion-section-title").addClass("loading"),i.addingNew=!0,a.attr("disabled","disabled"),c.Menus.insertAutoDraftPost({post_title:e,post_type:s}).done(function(e){var t,e=new c.Menus.AvailableItemModel({id:"post-"+e.post_id,title:a.val(),type:o,type_label:r,object:s,object_id:e.post_id,url:e.url});i.currentMenuControl.addItemToMenu(e.attributes),c.Menus.availableMenuItemsPanel.collection.add(e),t=n.find(".available-menu-items-list"),(e=m(l.template("available-menu-item")(e.attributes))).find(".menu-item-handle:first").addClass("item-added"),t.prepend(e),t.scrollTop(),a.val("").removeAttr("disabled"),i.addingNew=!1,n.find(".accordion-section-title").removeClass("loading")})))},open:function(e){var t,n=this;this.currentMenuControl=e,this.itemSectionHeight(),c.section.has("publish_settings")&&c.section("publish_settings").collapse(),m("body").addClass("adding-menu-items"),t=function(){n.close(),m(this).off("click",t)},m("#customize-preview").on("click",t),_(this.currentMenuControl.getMenuItemControls()).each(function(e){e.collapseForm()}),this.$el.find(".selected").removeClass("selected"),this.$search.trigger("focus")},close:function(e){(e=e||{}).returnFocus&&this.currentMenuControl&&this.currentMenuControl.container.find(".add-new-menu-item").focus(),this.currentMenuControl=null,this.selected=null,m("body").removeClass("adding-menu-items"),m("#available-menu-items .menu-item-handle.item-added").removeClass("item-added"),this.$search.val("").trigger("input")},keyboardAccessible:function(e){var t=13===e.which,n=27===e.which,i=9===e.which&&e.shiftKey,a=m(e.target).is(this.$search);t&&!this.$search.val()||(a&&i?(this.currentMenuControl.container.find(".add-new-menu-item").focus(),e.preventDefault()):n&&this.close({returnFocus:!0}))}}),c.Menus.MenusPanel=c.Panel.extend({attachEvents:function(){c.Panel.prototype.attachEvents.call(this);var t=this.container.find(".panel-meta"),n=t.find(".customize-help-toggle"),i=t.find(".customize-panel-description"),a=m("#screen-options-wrap"),o=t.find(".customize-screen-options-toggle");o.on("click keydown",function(e){if(!c.utils.isKeydownButNotEnterEvent(e))return e.preventDefault(),i.not(":hidden")&&(i.slideUp("fast"),n.attr("aria-expanded","false")),"true"===o.attr("aria-expanded")?(o.attr("aria-expanded","false"),t.removeClass("open"),t.removeClass("active-menu-screen-options"),a.slideUp("fast")):(o.attr("aria-expanded","true"),t.addClass("open"),t.addClass("active-menu-screen-options"),a.slideDown("fast")),!1}),n.on("click keydown",function(e){c.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),"true"===o.attr("aria-expanded")&&(o.attr("aria-expanded","false"),n.attr("aria-expanded","true"),t.addClass("open"),t.removeClass("active-menu-screen-options"),a.slideUp("fast"),i.slideDown("fast")))})},ready:function(){var e=this;e.container.find(".hide-column-tog").on("click",function(){e.saveManageColumnsState()}),c.section("menu_locations",function(e){e.headContainer.prepend(l.template("nav-menu-locations-header")(c.Menus.data))})},saveManageColumnsState:_.debounce(function(){var e=this;e._updateHiddenColumnsRequest&&e._updateHiddenColumnsRequest.abort(),e._updateHiddenColumnsRequest=l.ajax.post("hidden-columns",{hidden:e.hidden(),screenoptionnonce:m("#screenoptionnonce").val(),page:"nav-menus"}),e._updateHiddenColumnsRequest.always(function(){e._updateHiddenColumnsRequest=null})},2e3),checked:function(){},unchecked:function(){},hidden:function(){return m(".hide-column-tog").not(":checked").map(function(){var e=this.id;return e.substring(0,e.length-5)}).get().join(",")}}),c.Menus.MenuSection=c.Section.extend({initialize:function(e,t){c.Section.prototype.initialize.call(this,e,t),this.deferred.initSortables=m.Deferred()},ready:function(){var e,t,n=this;if(void 0===n.params.menu_id)throw new Error("params.menu_id was not defined");n.active.validate=function(){return!!c.has(n.id)&&!!c(n.id).get()},n.populateControls(),n.navMenuLocationSettings={},n.assignedLocations=new c.Value([]),c.each(function(e,t){t=t.match(/^nav_menu_locations\[(.+?)]/);t&&(n.navMenuLocationSettings[t[1]]=e).bind(function(){n.refreshAssignedLocations()})}),n.assignedLocations.bind(function(e){n.updateAssignedLocationsInSectionTitle(e)}),n.refreshAssignedLocations(),c.bind("pane-contents-reflowed",function(){n.contentContainer.parent().length&&(n.container.find(".menu-item .menu-item-reorder-nav button").attr({tabindex:"0","aria-hidden":"false"}),n.container.find(".menu-item.move-up-disabled .menus-move-up").attr({tabindex:"-1","aria-hidden":"true"}),n.container.find(".menu-item.move-down-disabled .menus-move-down").attr({tabindex:"-1","aria-hidden":"true"}),n.container.find(".menu-item.move-left-disabled .menus-move-left").attr({tabindex:"-1","aria-hidden":"true"}),n.container.find(".menu-item.move-right-disabled .menus-move-right").attr({tabindex:"-1","aria-hidden":"true"}))}),t=function(){var e="field-"+m(this).val()+"-active";n.contentContainer.toggleClass(e,m(this).prop("checked"))},(e=c.panel("nav_menus").contentContainer.find(".metabox-prefs:first").find(".hide-column-tog")).each(t),e.on("click",t)},populateControls:function(){var e,t=this,n=t.id+"[name]",i=c.control(n);i||(i=new c.controlConstructor.nav_menu_name(n,{type:"nav_menu_name",label:c.Menus.data.l10n.menuNameLabel,section:t.id,priority:0,settings:{default:t.id}}),c.control.add(i),i.active.set(!0)),(n=c.control(t.id))||(n=new c.controlConstructor.nav_menu(t.id,{type:"nav_menu",section:t.id,priority:998,settings:{default:t.id},menu_id:t.params.menu_id}),c.control.add(n),n.active.set(!0)),i=t.id+"[locations]",c.control(i)||(i=new c.controlConstructor.nav_menu_locations(i,{section:t.id,priority:999,settings:{default:t.id},menu_id:t.params.menu_id}),c.control.add(i.id,i),n.active.set(!0)),i=t.id+"[auto_add]",(n=c.control(i))||(n=new c.controlConstructor.nav_menu_auto_add(i,{type:"nav_menu_auto_add",label:"",section:t.id,priority:1e3,settings:{default:t.id}}),c.control.add(n),n.active.set(!0)),i=t.id+"[delete]",(e=c.control(i))||(e=new c.Control(i,{section:t.id,priority:1001,templateId:"nav-menu-delete-button"}),c.control.add(e.id,e),e.active.set(!0),e.deferred.embedded.done(function(){e.container.find("button").on("click",function(){var e=t.params.menu_id;c.Menus.getMenuControl(e).setting.set(!1)})}))},refreshAssignedLocations:function(){var n=this.params.menu_id,i=[];_.each(this.navMenuLocationSettings,function(e,t){e()===n&&i.push(t)}),this.assignedLocations.set(i)},updateAssignedLocationsInSectionTitle:function(e){var n=this.container.find(".accordion-section-title:first");n.find(".menu-in-location").remove(),_.each(e,function(e){var t=m('<span class="menu-in-location"></span>'),e=c.Menus.data.locationSlugMappedToName[e];t.text(c.Menus.data.l10n.menuLocation.replace("%s",e)),n.append(t)}),this.container.toggleClass("assigned-to-menu-location",0!==e.length)},onChangeExpanded:function(e,t){var n,i=this;e&&(wpNavMenu.menuList=i.contentContainer,wpNavMenu.targetList=wpNavMenu.menuList,m("#menu-to-edit").removeAttr("id"),wpNavMenu.menuList.attr("id","menu-to-edit").addClass("menu"),_.each(c.section(i.id).controls(),function(e){"nav_menu_item"===e.params.type&&e.actuallyEmbed()}),t.completeCallback&&(n=t.completeCallback),t.completeCallback=function(){"resolved"!==i.deferred.initSortables.state()&&(wpNavMenu.initSortables(),i.deferred.initSortables.resolve(wpNavMenu.menuList),c.control("nav_menu["+String(i.params.menu_id)+"]").reflowMenuItems()),_.isFunction(n)&&n()}),c.Section.prototype.onChangeExpanded.call(i,e,t)},highlightNewItemButton:function(){c.utils.highlightButton(this.contentContainer.find(".add-new-menu-item"),{delay:2e3})}}),c.Menus.createNavMenu=function(e){var t=c.Menus.generatePlaceholderAutoIncrementId(),n="nav_menu["+String(t)+"]";return c.create(n,n,{},{type:"nav_menu",transport:c.Menus.data.settingTransport,previewer:c.previewer}).set(m.extend({},c.Menus.data.defaultSettingValues.nav_menu,{name:e||""})),c.section.add(new c.Menus.MenuSection(n,{panel:"nav_menus",title:u(e),customizeAction:c.Menus.data.l10n.customizingMenus,priority:10,menu_id:t}))},c.Menus.NewMenuSection=c.Section.extend({attachEvents:function(){var t=this,e=t.container,n=t.contentContainer,i=/^nav_menu\[/;function a(){var t;e.find(".add-new-menu-notice").prop("hidden",(t=0,c.each(function(e){i.test(e.id)&&!1!==e.get()&&(t+=1)}),0<t))}function o(e){i.test(e.id)&&(e.bind(a),a())}t.headContainer.find(".accordion-section-title").replaceWith(l.template("nav-menu-create-menu-section-title")),e.on("click",".customize-add-menu-button",function(){t.expand()}),n.on("keydown",".menu-name-field",function(e){13===e.which&&t.submit()}),n.on("click","#customize-new-menu-submit",function(e){t.submit(),e.stopPropagation(),e.preventDefault()}),c.each(o),c.bind("add",o),c.bind("removed",function(e){i.test(e.id)&&(e.unbind(a),a())}),a(),c.Section.prototype.attachEvents.apply(t,arguments)},ready:function(){this.populateControls()},populateControls:function(){var e=this,t=e.id+"[name]",n=c.control(t);n||(n=new c.controlConstructor.nav_menu_name(t,{label:c.Menus.data.l10n.menuNameLabel,description:c.Menus.data.l10n.newMenuNameDescription,section:e.id,priority:0}),c.control.add(n.id,n),n.active.set(!0)),t=e.id+"[locations]",(n=c.control(t))||(n=new c.controlConstructor.nav_menu_locations(t,{section:e.id,priority:1,menu_id:"",isCreating:!0}),c.control.add(t,n),n.active.set(!0)),t=e.id+"[submit]",(n=c.control(t))||(n=new c.Control(t,{section:e.id,priority:1,templateId:"nav-menu-submit-new-button"}),c.control.add(t,n),n.active.set(!0))},submit:function(){var t,e=this.contentContainer,n=e.find(".menu-name-field").first(),i=n.val();i?(t=c.Menus.createNavMenu(i),n.val(""),n.removeClass("invalid"),e.find(".assigned-menu-location input[type=checkbox]").each(function(){var e=m(this);e.prop("checked")&&(c("nav_menu_locations["+e.data("location-id")+"]").set(t.params.menu_id),e.prop("checked",!1))}),l.a11y.speak(c.Menus.data.l10n.menuAdded),t.focus({completeCallback:function(){t.highlightNewItemButton()}})):(n.addClass("invalid"),n.focus())},selectDefaultLocation:function(e){var t=c.control(this.id+"[locations]"),n={};null!==e&&(n[e]=!0),t.setSelections(n)}}),c.Menus.MenuLocationControl=c.Control.extend({initialize:function(e,t){var n=e.match(/^nav_menu_locations\[(.+?)]/);this.themeLocation=n[1],c.Control.prototype.initialize.call(this,e,t)},ready:function(){var n=this,i=/^nav_menu\[(-?\d+)]/;n.setting.validate=function(e){return""===e?0:parseInt(e,10)},n.container.find(".create-menu").on("click",function(){var e=c.section("add_menu");e.selectDefaultLocation(this.dataset.locationId),e.focus()}),n.container.find(".edit-menu").on("click",function(){var e=n.setting();c.section("nav_menu["+e+"]").focus()}),n.setting.bind("change",function(){var e=0!==n.setting();n.container.find(".create-menu").toggleClass("hidden",e),n.container.find(".edit-menu").toggleClass("hidden",!e)}),c.bind("add",function(e){var t=e.id.match(i);t&&!1!==e()&&(t=t[1],e=new Option(u(e().name),t),n.container.find("select").append(e))}),c.bind("remove",function(e){var e=e.id.match(i);e&&(e=parseInt(e[1],10),n.setting()===e&&n.setting.set(""),n.container.find("option[value="+e+"]").remove())}),c.bind("change",function(e){var t=e.id.match(i);t&&(t=parseInt(t[1],10),!1===e()?(n.setting()===t&&n.setting.set(""),n.container.find("option[value="+t+"]").remove()):n.container.find("option[value="+t+"]").text(u(e().name)))})}}),c.Menus.MenuItemControl=c.Control.extend({initialize:function(e,t){var n=this;n.expanded=new c.Value(!1),n.expandedArgumentsQueue=[],n.expanded.bind(function(e){var t=n.expandedArgumentsQueue.shift(),t=m.extend({},n.defaultExpandedArguments,t);n.onChangeExpanded(e,t)}),c.Control.prototype.initialize.call(n,e,t),n.active.validate=function(){var e=c.section(n.section()),e=!!e&&e.active();return e}},embed:function(){var e=this.section();e&&((e=c.section(e))&&e.expanded()||c.settings.autofocus.control===this.id)&&this.actuallyEmbed()},actuallyEmbed:function(){"resolved"!==this.deferred.embedded.state()&&(this.renderContent(),this.deferred.embedded.resolve())},ready:function(){if(void 0===this.params.menu_item_id)throw new Error("params.menu_item_id was not defined");this._setupControlToggle(),this._setupReorderUI(),this._setupUpdateUI(),this._setupRemoveUI(),this._setupLinksUI(),this._setupTitleUI()},_setupControlToggle:function(){var i=this;this.container.find(".menu-item-handle").on("click",function(e){e.preventDefault(),e.stopPropagation();var t=i.getMenuControl(),n=m(e.target).is(".item-delete, .item-delete *"),e=m(e.target).is(".add-new-menu-item, .add-new-menu-item *");!m("body").hasClass("adding-menu-items")||n||e||c.Menus.availableMenuItemsPanel.close(),t.isReordering||t.isSorting||i.toggleForm()})},_setupReorderUI:function(){var o=this,e=l.template("menu-item-reorder-nav");o.container.find(".item-controls").after(e),o.container.find(".menu-item-reorder-nav").find(".menus-move-up, .menus-move-down, .menus-move-left, .menus-move-right").on("click",function(){var e=m(this),t=(o.params.depth=o.getDepth(),e.focus(),e.is(".menus-move-up")),n=e.is(".menus-move-down"),i=e.is(".menus-move-left"),a=e.is(".menus-move-right");t?o.moveUp():n?o.moveDown():i?(o.moveLeft(),1===o.params.depth?o.container.find(".is-submenu").hide():o.container.find(".is-submenu").show()):a&&(o.moveRight(),o.params.depth+=1,0===o.params.depth?o.container.find(".is-submenu").hide():o.container.find(".is-submenu").show()),e.focus()})},_setupUpdateUI:function(){var e,s=this,t=s.setting();s.elements={},s.elements.url=new c.Element(s.container.find(".edit-menu-item-url")),s.elements.title=new c.Element(s.container.find(".edit-menu-item-title")),s.elements.attr_title=new c.Element(s.container.find(".edit-menu-item-attr-title")),s.elements.target=new c.Element(s.container.find(".edit-menu-item-target")),s.elements.classes=new c.Element(s.container.find(".edit-menu-item-classes")),s.elements.xfn=new c.Element(s.container.find(".edit-menu-item-xfn")),s.elements.description=new c.Element(s.container.find(".edit-menu-item-description")),_.each(s.elements,function(n,i){n.bind(function(e){n.element.is("input[type=checkbox]")&&(e=e?n.element.val():"");var t=s.setting();t&&t[i]!==e&&((t=_.clone(t))[i]=e,s.setting.set(t))}),t&&("classes"!==i&&"xfn"!==i||!_.isArray(t[i])?n.set(t[i]):n.set(t[i].join(" ")))}),s.setting.bind(function(n,i){var e,t=s.params.menu_item_id,a=[],o=[];!1===n?(e=c.control("nav_menu["+String(i.nav_menu_term_id)+"]"),s.container.remove(),_.each(e.getMenuItemControls(),function(e){i.menu_item_parent===e.setting().menu_item_parent&&e.setting().position>i.position?a.push(e):e.setting().menu_item_parent===t&&o.push(e)}),_.each(a,function(e){var t=_.clone(e.setting());t.position+=o.length,e.setting.set(t)}),_.each(o,function(e,t){var n=_.clone(e.setting());n.position=i.position+t,n.menu_item_parent=i.menu_item_parent,e.setting.set(n)}),e.debouncedReflowMenuItems()):(_.each(n,function(e,t){s.elements[t]&&s.elements[t].set(n[t])}),s.container.find(".menu-item-data-parent-id").val(n.menu_item_parent),n.position===i.position&&n.menu_item_parent===i.menu_item_parent||s.getMenuControl().debouncedReflowMenuItems())}),s.setting.notifications.bind("add",e=function(){s.elements.url.element.toggleClass("invalid",s.setting.notifications.has("invalid_url"))}),s.setting.notifications.bind("removed",e)},_setupRemoveUI:function(){var r=this;r.container.find(".item-delete").on("click",function(){var e,t,n,i=!0,a=0,o=r.params.original_item_id,s=r.getMenuControl().$sectionContent.find(".menu-item");m("body").hasClass("adding-menu-items")||(i=!1),n=r.container.nextAll(".customize-control-nav_menu_item:visible").first(),t=r.container.prevAll(".customize-control-nav_menu_item:visible").first(),e=(n.length?n.find(!1===i?".item-edit":".item-delete"):t.length?t.find(!1===i?".item-edit":".item-delete"):r.container.nextAll(".customize-control-nav_menu").find(".add-new-menu-item")).first(),_.each(s,function(e){m(e).is(":visible")&&(e=e.getAttribute("id").match(/^customize-control-nav_menu_item-(-?\d+)$/,""))&&(e=parseInt(e[1],10),e=c.control("nav_menu_item["+String(e)+"]"))&&o==e.params.original_item_id&&a++}),a<=1&&((n=m("#menu-item-tpl-"+r.params.original_item_id)).removeClass("selected"),n.find(".menu-item-handle").removeClass("item-added")),r.container.slideUp(function(){r.setting.set(!1),l.a11y.speak(c.Menus.data.l10n.itemDeleted),e.focus()}),r.setting.set(!1)})},_setupLinksUI:function(){this.container.find("a.original-link").on("click",function(e){e.preventDefault(),c.previewer.previewUrl(e.target.toString())})},_setupTitleUI:function(){var i;this.container.find(".edit-menu-item-title").on("blur",function(){m(this).val(m(this).val().trim())}),i=this.container.find(".menu-item-title"),this.setting.bind(function(e){var t,n;e&&(e.title=e.title||"",n=(t=e.title.trim())||e.original_title||c.Menus.data.l10n.untitled,e._invalid&&(n=c.Menus.data.l10n.invalidTitleTpl.replace("%s",n)),t||e.original_title?i.text(n).removeClass("no-title"):i.text(n).addClass("no-title"))})},getDepth:function(){var e=this,t=e.setting(),n=0;if(!t)return 0;for(;t&&t.menu_item_parent&&(n+=1,e=c.control("nav_menu_item["+t.menu_item_parent+"]"));)t=e.setting();return n},renderContent:function(){var e,t=this,n=t.setting();t.params.title=n.title||"",t.params.depth=t.getDepth(),t.container.data("item-depth",t.params.depth),e=["menu-item","menu-item-depth-"+String(t.params.depth),"menu-item-"+n.object,"menu-item-edit-inactive"],n._invalid?(e.push("menu-item-invalid"),t.params.title=c.Menus.data.l10n.invalidTitleTpl.replace("%s",t.params.title)):"draft"===n.status&&(e.push("pending"),t.params.title=c.Menus.data.pendingTitleTpl.replace("%s",t.params.title)),t.params.el_classes=e.join(" "),t.params.item_type_label=n.type_label,t.params.item_type=n.type,t.params.url=n.url,t.params.target=n.target,t.params.attr_title=n.attr_title,t.params.classes=_.isArray(n.classes)?n.classes.join(" "):n.classes,t.params.xfn=n.xfn,t.params.description=n.description,t.params.parent=n.menu_item_parent,t.params.original_title=n.original_title||"",t.container.addClass(t.params.el_classes),c.Control.prototype.renderContent.call(t)},getMenuControl:function(){var e=this.setting();return e&&e.nav_menu_term_id?c.control("nav_menu["+e.nav_menu_term_id+"]"):null},expandControlSection:function(){var e=this.container.closest(".accordion-section");e.hasClass("open")||e.find(".accordion-section-title:first").trigger("click")},_toggleExpanded:c.Section.prototype._toggleExpanded,expand:c.Section.prototype.expand,expandForm:function(e){this.expand(e)},collapse:c.Section.prototype.collapse,collapseForm:function(e){this.collapse(e)},toggleForm:function(e,t){(e=void 0===e?!this.expanded():e)?this.expand(t):this.collapse(t)},onChangeExpanded:function(e,t){var n,i=this,a=this.container,o=a.find(".menu-item-settings:first");void 0===e&&(e=!o.is(":visible")),o.is(":visible")===e?t&&t.completeCallback&&t.completeCallback():e?(c.control.each(function(e){i.params.type===e.params.type&&i!==e&&e.collapseForm()}),n=function(){a.removeClass("menu-item-edit-inactive").addClass("menu-item-edit-active"),i.container.trigger("expanded"),t&&t.completeCallback&&t.completeCallback()},a.find(".item-edit").attr("aria-expanded","true"),o.slideDown("fast",n),i.container.trigger("expand")):(n=function(){a.addClass("menu-item-edit-inactive").removeClass("menu-item-edit-active"),i.container.trigger("collapsed"),t&&t.completeCallback&&t.completeCallback()},i.container.trigger("collapse"),a.find(".item-edit").attr("aria-expanded","false"),o.slideUp("fast",n))},focus:function(e){var t=this,n=(e=e||{}).completeCallback,i=function(){t.expandControlSection(),e.completeCallback=function(){t.container.find(".menu-item-settings").find("input, select, textarea, button, object, a[href], [tabindex]").filter(":visible").first().focus(),n&&n()},t.expandForm(e)};c.section.has(t.section())?c.section(t.section()).expand({completeCallback:i}):i()},moveUp:function(){this._changePosition(-1),l.a11y.speak(c.Menus.data.l10n.movedUp)},moveDown:function(){this._changePosition(1),l.a11y.speak(c.Menus.data.l10n.movedDown)},moveLeft:function(){this._changeDepth(-1),l.a11y.speak(c.Menus.data.l10n.movedLeft)},moveRight:function(){this._changeDepth(1),l.a11y.speak(c.Menus.data.l10n.movedRight)},_changePosition:function(e){var t,n=this,i=_.clone(n.setting()),a=[];if(1!==e&&-1!==e)throw new Error("Offset changes by 1 are only supported.");if(n.setting()){if(_(n.getMenuControl().getMenuItemControls()).each(function(e){e.setting().menu_item_parent===i.menu_item_parent&&a.push(e.setting)}),a.sort(function(e,t){return e().position-t().position}),-1===(t=_.indexOf(a,n.setting)))throw new Error("Expected setting to be among siblings.");0===t&&e<0||t===a.length-1&&0<e||((t=a[t+e])&&t.set(m.extend(_.clone(t()),{position:i.position})),i.position+=e,n.setting.set(i))}},_changeDepth:function(e){if(1!==e&&-1!==e)throw new Error("Offset changes by 1 are only supported.");var t,n,i=this,a=_.clone(i.setting()),o=[];if(_(i.getMenuControl().getMenuItemControls()).each(function(e){e.setting().menu_item_parent===a.menu_item_parent&&o.push(e)}),o.sort(function(e,t){return e.setting().position-t.setting().position}),-1===(t=_.indexOf(o,i)))throw new Error("Expected control to be among siblings.");-1===e?a.menu_item_parent&&(n=c.control("nav_menu_item["+a.menu_item_parent+"]"),_(o).chain().slice(t).each(function(e,t){e.setting.set(m.extend({},e.setting(),{menu_item_parent:i.params.menu_item_id,position:t}))}),_(i.getMenuControl().getMenuItemControls()).each(function(e){var t;e.setting().menu_item_parent===n.setting().menu_item_parent&&e.setting().position>n.setting().position&&(t=_.clone(e.setting()),e.setting.set(m.extend(t,{position:t.position+1})))}),a.position=n.setting().position+1,a.menu_item_parent=n.setting().menu_item_parent,i.setting.set(a)):1===e&&0!==t&&(a.menu_item_parent=o[t-1].params.menu_item_id,a.position=0,_(i.getMenuControl().getMenuItemControls()).each(function(e){e.setting().menu_item_parent===a.menu_item_parent&&(a.position=Math.max(a.position,e.setting().position))}),a.position+=1,i.setting.set(a))}}),c.Menus.MenuNameControl=c.Control.extend({ready:function(){var e,n=this;n.setting&&(e=n.setting(),n.nameElement=new c.Element(n.container.find(".menu-name-field")),n.nameElement.bind(function(e){var t=n.setting();t&&t.name!==e&&((t=_.clone(t)).name=e,n.setting.set(t))}),e&&n.nameElement.set(e.name),n.setting.bind(function(e){e&&n.nameElement.set(e.name)}))}}),c.Menus.MenuLocationsControl=c.Control.extend({ready:function(){var d=this;d.container.find(".assigned-menu-location").each(function(){function t(e){var t=c("nav_menu["+String(e)+"]");e&&t&&t()?n.find(".theme-location-set").show().find("span").text(u(t().name)):n.find(".theme-location-set").hide()}var n=m(this),e=n.find("input[type=checkbox]"),i=new c.Element(e),a=c("nav_menu_locations["+e.data("location-id")+"]"),o=""===d.params.menu_id,s=o?_.noop:function(e){i.set(e)},r=o?_.noop:function(e){a.set(e?d.params.menu_id:0)};s(a.get()===d.params.menu_id),e.on("change",function(){r(this.checked)}),a.bind(function(e){s(e===d.params.menu_id),t(e)}),t(a.get())})},setSelections:function(i){this.container.find(".menu-location").each(function(e,t){var n=t.dataset.locationId;t.checked=n in i&&i[n]})}}),c.Menus.MenuAutoAddControl=c.Control.extend({ready:function(){var n=this,e=n.setting();n.active.validate=function(){var e=c.section(n.section()),e=!!e&&e.active();return e},n.autoAddElement=new c.Element(n.container.find("input[type=checkbox].auto_add")),n.autoAddElement.bind(function(e){var t=n.setting();t&&t.name!==e&&((t=_.clone(t)).auto_add=e,n.setting.set(t))}),e&&n.autoAddElement.set(e.auto_add),n.setting.bind(function(e){e&&n.autoAddElement.set(e.auto_add)})}}),c.Menus.MenuControl=c.Control.extend({ready:function(){var t,n,i=this,a=c.section(i.section()),o=i.params.menu_id,e=i.setting();if(void 0===this.params.menu_id)throw new Error("params.menu_id was not defined");i.active.validate=function(){var e=!!a&&a.active();return e},i.$controlSection=a.headContainer,i.$sectionContent=i.container.closest(".accordion-section-content"),this._setupModel(),c.section(i.section(),function(e){e.deferred.initSortables.done(function(e){i._setupSortable(e)})}),this._setupAddition(),this._setupTitle(),e&&(t=u(e.name),c.control.each(function(e){e.extended(c.controlConstructor.widget_form)&&"nav_menu"===e.params.widget_id_base&&(e.container.find(".nav-menu-widget-form-controls:first").show(),e.container.find(".nav-menu-widget-no-menus-message:first").hide(),0===(n=e.container.find("select")).find("option[value="+String(o)+"]").length)&&n.append(new Option(t,o))}),(e=m("#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )")).find(".nav-menu-widget-form-controls:first").show(),e.find(".nav-menu-widget-no-menus-message:first").hide(),0===(n=e.find(".widget-inside select:first")).find("option[value="+String(o)+"]").length)&&n.append(new Option(t,o)),_.defer(function(){i.updateInvitationVisibility()})},_setupModel:function(){var n=this,i=n.params.menu_id;n.setting.bind(function(e){var t;!1===e?n._handleDeletion():(t=u(e.name),c.control.each(function(e){e.extended(c.controlConstructor.widget_form)&&"nav_menu"===e.params.widget_id_base&&e.container.find("select").find("option[value="+String(i)+"]").text(t)}))})},_setupSortable:function(e){var a=this;if(!e.is(a.$sectionContent))throw new Error("Unexpected menuList.");e.on("sortstart",function(){a.isSorting=!0}),e.on("sortstop",function(){setTimeout(function(){var e=a.$sectionContent.sortable("toArray"),t=[],n=0,i=10;a.isSorting=!1,a.$sectionContent.scrollLeft(0),_.each(e,function(e){var e=e.match(/^customize-control-nav_menu_item-(-?\d+)$/,"");e&&(e=parseInt(e[1],10),e=c.control("nav_menu_item["+String(e)+"]"))&&t.push(e)}),_.each(t,function(e){var t;!1!==e.setting()&&(t=_.clone(e.setting()),n+=1,i+=1,t.position=n,e.priority(i),t.menu_item_parent=parseInt(e.container.find(".menu-item-data-parent-id").val(),10),t.menu_item_parent||(t.menu_item_parent=0),e.setting.set(t))})})}),a.isReordering=!1,this.container.find(".reorder-toggle").on("click",function(){a.toggleReordering(!a.isReordering)})},_setupAddition:function(){var t=this;this.container.find(".add-new-menu-item").on("click",function(e){t.$sectionContent.hasClass("reordering")||(m("body").hasClass("adding-menu-items")?(m(this).attr("aria-expanded","false"),c.Menus.availableMenuItemsPanel.close(),e.stopPropagation()):(m(this).attr("aria-expanded","true"),c.Menus.availableMenuItemsPanel.open(t)))})},_handleDeletion:function(){var e,n=this.params.menu_id,i=0,t=c.section(this.section()),a=function(){t.container.remove(),c.section.remove(t.id)};t&&t.expanded()?t.collapse({completeCallback:function(){a(),l.a11y.speak(c.Menus.data.l10n.menuDeleted),c.panel("nav_menus").focus()}}):a(),c.each(function(e){/^nav_menu\[/.test(e.id)&&!1!==e()&&(i+=1)}),c.control.each(function(e){var t;e.extended(c.controlConstructor.widget_form)&&"nav_menu"===e.params.widget_id_base&&((t=e.container.find("select")).val()===String(n)&&t.prop("selectedIndex",0).trigger("change"),e.container.find(".nav-menu-widget-form-controls:first").toggle(0!==i),e.container.find(".nav-menu-widget-no-menus-message:first").toggle(0===i),e.container.find("option[value="+String(n)+"]").remove())}),(e=m("#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )")).find(".nav-menu-widget-form-controls:first").toggle(0!==i),e.find(".nav-menu-widget-no-menus-message:first").toggle(0===i),e.find("option[value="+String(n)+"]").remove()},_setupTitle:function(){var d=this;d.setting.bind(function(e){var t,n,i,a,o,s,r;e&&(t=c.section(d.section()),n=d.params.menu_id,i=t.headContainer.find(".accordion-section-title"),a=t.contentContainer.find(".customize-section-title h3"),o=t.headContainer.find(".menu-in-location"),s=a.find(".customize-action"),r=u(e.name),i.text(r),o.length&&o.appendTo(i),a.text(r),s.length&&s.prependTo(a),c.control.each(function(e){/^nav_menu_locations\[/.test(e.id)&&e.container.find("option[value="+n+"]").text(r)}),t.contentContainer.find(".customize-control-checkbox input").each(function(){m(this).prop("checked")&&m(".current-menu-location-name-"+m(this).data("location-id")).text(r)}))})},toggleReordering:function(e){var t=this.container.find(".add-new-menu-item"),n=this.container.find(".reorder-toggle"),i=this.$sectionContent.find(".item-title");(e=Boolean(e))!==this.$sectionContent.hasClass("reordering")&&(this.isReordering=e,this.$sectionContent.toggleClass("reordering",e),this.$sectionContent.sortable(this.isReordering?"disable":"enable"),this.isReordering?(t.attr({tabindex:"-1","aria-hidden":"true"}),n.attr("aria-label",c.Menus.data.l10n.reorderLabelOff),l.a11y.speak(c.Menus.data.l10n.reorderModeOn),i.attr("aria-hidden","false")):(t.removeAttr("tabindex aria-hidden"),n.attr("aria-label",c.Menus.data.l10n.reorderLabelOn),l.a11y.speak(c.Menus.data.l10n.reorderModeOff),i.attr("aria-hidden","true")),e)&&_(this.getMenuItemControls()).each(function(e){e.collapseForm()})},getMenuItemControls:function(){var t=[],n=this.params.menu_id;return c.control.each(function(e){"nav_menu_item"===e.params.type&&e.setting()&&n===e.setting().nav_menu_term_id&&t.push(e)}),t},reflowMenuItems:function(){var e=this.getMenuItemControls(),a=function(n){var t=[],i=n.currentParent;_.each(n.menuItemControls,function(e){i===e.setting().menu_item_parent&&t.push(e)}),t.sort(function(e,t){return e.setting().position-t.setting().position}),_.each(t,function(t){n.currentAbsolutePosition+=1,t.priority.set(n.currentAbsolutePosition),t.container.hasClass("menu-item-depth-"+String(n.currentDepth))||(_.each(t.container.prop("className").match(/menu-item-depth-\d+/g),function(e){t.container.removeClass(e)}),t.container.addClass("menu-item-depth-"+String(n.currentDepth))),t.container.data("item-depth",n.currentDepth),n.currentDepth+=1,n.currentParent=t.params.menu_item_id,a(n),--n.currentDepth,n.currentParent=i}),t.length&&(_(t).each(function(e){e.container.removeClass("move-up-disabled move-down-disabled move-left-disabled move-right-disabled"),0===n.currentDepth?e.container.addClass("move-left-disabled"):10===n.currentDepth&&e.container.addClass("move-right-disabled")}),t[0].container.addClass("move-up-disabled").addClass("move-right-disabled").toggleClass("move-down-disabled",1===t.length),t[t.length-1].container.addClass("move-down-disabled").toggleClass("move-up-disabled",1===t.length))};a({menuItemControls:e,currentParent:0,currentDepth:0,currentAbsolutePosition:0}),this.updateInvitationVisibility(e),this.container.find(".reorder-toggle").toggle(1<e.length)},debouncedReflowMenuItems:_.debounce(function(){this.reflowMenuItems.apply(this,arguments)},0),addItemToMenu:function(e){var t,n,i,a=0,o=10,s=e.id||"";return _.each(this.getMenuItemControls(),function(e){!1!==e.setting()&&(o=Math.max(o,e.priority()),0===e.setting().menu_item_parent)&&(a=Math.max(a,e.setting().position))}),a+=1,o+=1,delete(e=m.extend({},c.Menus.data.defaultSettingValues.nav_menu_item,e,{nav_menu_term_id:this.params.menu_id,original_title:e.title,position:a})).id,i=c.Menus.generatePlaceholderAutoIncrementId(),t="nav_menu_item["+String(i)+"]",n={type:"nav_menu_item",transport:c.Menus.data.settingTransport,previewer:c.previewer},(n=c.create(t,t,{},n)).set(e),e=new c.controlConstructor.nav_menu_item(t,{type:"nav_menu_item",section:this.id,priority:o,settings:{default:t},menu_item_id:i,original_item_id:s}),c.control.add(e),n.preview(),this.debouncedReflowMenuItems(),l.a11y.speak(c.Menus.data.l10n.itemAdded),e},updateInvitationVisibility:function(e){e=e||this.getMenuItemControls();this.container.find(".new-menu-item-invitation").toggle(0===e.length)}}),m.extend(c.controlConstructor,{nav_menu_location:c.Menus.MenuLocationControl,nav_menu_item:c.Menus.MenuItemControl,nav_menu:c.Menus.MenuControl,nav_menu_name:c.Menus.MenuNameControl,nav_menu_locations:c.Menus.MenuLocationsControl,nav_menu_auto_add:c.Menus.MenuAutoAddControl}),m.extend(c.panelConstructor,{nav_menus:c.Menus.MenusPanel}),m.extend(c.sectionConstructor,{nav_menu:c.Menus.MenuSection,new_menu:c.Menus.NewMenuSection}),c.bind("ready",function(){c.Menus.availableMenuItemsPanel=new c.Menus.AvailableMenuItemsPanelView({collection:c.Menus.availableMenuItems}),c.bind("saved",function(e){(e.nav_menu_updates||e.nav_menu_item_updates)&&c.Menus.applySavedData(e)}),c.state("changesetStatus").bind(function(e){"publish"===e&&(c("nav_menus_created_posts")._value=[])}),c.previewer.bind("focus-nav-menu-item-control",c.Menus.focusMenuItemControl)}),c.Menus.applySavedData=function(e){var u={},r={};_(e.nav_menu_updates).each(function(n){var e,t,i,a,o,s,r,d;if("inserted"===n.status){if(!n.previous_term_id)throw new Error("Expected previous_term_id");if(!n.term_id)throw new Error("Expected term_id");if(e="nav_menu["+String(n.previous_term_id)+"]",!c.has(e))throw new Error("Expected setting to exist: "+e);if(i=c(e),!c.section.has(e))throw new Error("Expected control to exist: "+e);if(o=c.section(e),!(s=i.get()))throw new Error("Did not expect setting to be empty (deleted).");s=m.extend(_.clone(s),n.saved_value),u[n.previous_term_id]=n.term_id,a="nav_menu["+String(n.term_id)+"]",t=c.create(a,a,s,{type:"nav_menu",transport:c.Menus.data.settingTransport,previewer:c.previewer}),(d=o.expanded())&&o.collapse(),a=new c.Menus.MenuSection(a,{panel:"nav_menus",title:s.name,customizeAction:c.Menus.data.l10n.customizingMenus,type:"nav_menu",priority:o.priority.get(),menu_id:n.term_id}),c.section.add(a),c.control.each(function(e){var t;e.extended(c.controlConstructor.widget_form)&&"nav_menu"===e.params.widget_id_base&&(t=(e=e.container.find("select")).find("option[value="+String(n.previous_term_id)+"]"),e.find("option[value="+String(n.term_id)+"]").prop("selected",t.prop("selected")),t.remove())}),i.callbacks.disable(),i.set(!1),i.preview(),t.preview(),i._dirty=!1,o.container.remove(),c.section.remove(e),r=0,c.each(function(e){/^nav_menu\[/.test(e.id)&&!1!==e()&&(r+=1)}),(s=m("#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )")).find(".nav-menu-widget-form-controls:first").toggle(0!==r),s.find(".nav-menu-widget-no-menus-message:first").toggle(0===r),s.find("option[value="+String(n.previous_term_id)+"]").remove(),l.customize.control.each(function(e){/^nav_menu_locations\[/.test(e.id)&&e.container.find("option[value="+String(n.previous_term_id)+"]").remove()}),c.each(function(e){var t=c.state("saved").get();/^nav_menu_locations\[/.test(e.id)&&e.get()===n.previous_term_id&&(e.set(n.term_id),e._dirty=!1,c.state("saved").set(t),e.preview())}),d&&a.expand()}else if("updated"===n.status){if(t="nav_menu["+String(n.term_id)+"]",!c.has(t))throw new Error("Expected setting to exist: "+t);i=c(t),_.isEqual(n.saved_value,i.get())||(o=c.state("saved").get(),i.set(n.saved_value),i._dirty=!1,c.state("saved").set(o))}}),_(e.nav_menu_item_updates).each(function(e){e.previous_post_id&&(r[e.previous_post_id]=e.post_id)}),_(e.nav_menu_item_updates).each(function(e){var t,n,i,a,o,s;if("inserted"===e.status){if(!e.previous_post_id)throw new Error("Expected previous_post_id");if(!e.post_id)throw new Error("Expected post_id");if(t="nav_menu_item["+String(e.previous_post_id)+"]",!c.has(t))throw new Error("Expected setting to exist: "+t);if(i=c(t),!c.control.has(t))throw new Error("Expected control to exist: "+t);if(o=c.control(t),!(s=i.get()))throw new Error("Did not expect setting to be empty (deleted).");if((s=_.clone(s)).menu_item_parent<0){if(!r[s.menu_item_parent])throw new Error("inserted ID for menu_item_parent not available");s.menu_item_parent=r[s.menu_item_parent]}u[s.nav_menu_term_id]&&(s.nav_menu_term_id=u[s.nav_menu_term_id]),n="nav_menu_item["+String(e.post_id)+"]",a=c.create(n,n,s,{type:"nav_menu_item",transport:c.Menus.data.settingTransport,previewer:c.previewer}),s=new c.controlConstructor.nav_menu_item(n,{type:"nav_menu_item",menu_id:e.post_id,section:"nav_menu["+String(s.nav_menu_term_id)+"]",priority:o.priority.get(),settings:{default:n},menu_item_id:e.post_id}),o.container.remove(),c.control.remove(t),c.control.add(s),i.callbacks.disable(),i.set(!1),i.preview(),a.preview(),i._dirty=!1,s.container.toggleClass("menu-item-edit-inactive",o.container.hasClass("menu-item-edit-inactive"))}}),_.each(e.widget_nav_menu_updates,function(e,t){t=c(t);t&&(t._value=e,t.preview())})},c.Menus.focusMenuItemControl=function(e){e=c.Menus.getMenuItemControl(e);e&&e.focus()},c.Menus.getMenuControl=function(e){return c.control("nav_menu["+e+"]")},c.Menus.getMenuItemControl=function(e){return c.control("nav_menu_item["+e+"]")}}(wp.customize,wp,jQuery); \ No newline at end of file
+!function(u,l,m){"use strict";function c(e){return(e=(e=l.sanitize.stripTagsAndEncodeText(e=e||"")).toString().trim())||u.Menus.data.l10n.unnamed}wpNavMenu.originalInit=wpNavMenu.init,wpNavMenu.options.menuItemDepthPerLevel=20,wpNavMenu.options.sortableItems="> .customize-control-nav_menu_item",wpNavMenu.options.targetTolerance=10,wpNavMenu.init=function(){this.jQueryExtensions()},u.Menus=u.Menus||{},u.Menus.data={itemTypes:[],l10n:{},settingTransport:"refresh",phpIntMax:0,defaultSettingValues:{nav_menu:{},nav_menu_item:{}},locationSlugMappedToName:{}},"undefined"!=typeof _wpCustomizeNavMenusSettings&&m.extend(u.Menus.data,_wpCustomizeNavMenusSettings),u.Menus.generatePlaceholderAutoIncrementId=function(){return-Math.ceil(u.Menus.data.phpIntMax*Math.random())},u.Menus.AvailableItemModel=Backbone.Model.extend(m.extend({id:null},u.Menus.data.defaultSettingValues.nav_menu_item)),u.Menus.AvailableItemCollection=Backbone.Collection.extend({model:u.Menus.AvailableItemModel,sort_key:"order",comparator:function(e){return-e.get(this.sort_key)},sortByField:function(e){this.sort_key=e,this.sort()}}),u.Menus.availableMenuItems=new u.Menus.AvailableItemCollection(u.Menus.data.availableMenuItems),u.Menus.insertAutoDraftPost=function(n){var i=m.Deferred(),e=l.ajax.post("customize-nav-menus-insert-auto-draft",{"customize-menus-nonce":u.settings.nonce["customize-menus"],wp_customize:"on",customize_changeset_uuid:u.settings.changeset.uuid,params:n});return e.done(function(t){t.post_id&&(u("nav_menus_created_posts").set(u("nav_menus_created_posts").get().concat([t.post_id])),"page"===n.post_type&&(u.section.has("static_front_page")&&u.section("static_front_page").activate(),u.control.each(function(e){"dropdown-pages"===e.params.type&&e.container.find('select[name^="_customize-dropdown-pages-"]').append(new Option(n.post_title,t.post_id))})),i.resolve(t))}),e.fail(function(e){var t=e||"";void 0!==e.message&&(t=e.message),console.error(t),i.rejectWith(t)}),i.promise()},u.Menus.AvailableMenuItemsPanelView=l.Backbone.View.extend({el:"#available-menu-items",events:{"input #menu-items-search":"debounceSearch","focus .menu-item-tpl":"focus","click .menu-item-tpl":"_submit","click #custom-menu-item-submit":"_submitLink","keypress #custom-menu-item-name":"_submitLink","click .new-content-item .add-content":"_submitNew","keypress .create-item-input":"_submitNew",keydown:"keyboardAccessible"},selected:null,currentMenuControl:null,debounceSearch:null,$search:null,$clearResults:null,searchTerm:"",rendered:!1,pages:{},sectionContent:"",loading:!1,addingNew:!1,initialize:function(){var n=this;u.panel.has("nav_menus")&&(this.$search=m("#menu-items-search"),this.$clearResults=this.$el.find(".clear-results"),this.sectionContent=this.$el.find(".available-menu-items-list"),this.debounceSearch=_.debounce(n.search,500),_.bindAll(this,"close"),m("#customize-controls, .customize-section-back").on("click keydown",function(e){var t=m(e.target).is(".item-delete, .item-delete *"),e=m(e.target).is(".add-new-menu-item, .add-new-menu-item *");!m("body").hasClass("adding-menu-items")||t||e||n.close()}),this.$clearResults.on("click",function(){n.$search.val("").trigger("focus").trigger("input")}),this.$el.on("input","#custom-menu-item-name.invalid, #custom-menu-item-url.invalid",function(){m(this).removeClass("invalid")}),u.panel("nav_menus").container.on("expanded",function(){n.rendered||(n.initList(),n.rendered=!0)}),this.sectionContent.on("scroll",function(){var e=n.$el.find(".accordion-section.open .available-menu-items-list").prop("scrollHeight"),t=n.$el.find(".accordion-section.open").height();!n.loading&&m(this).scrollTop()>.75*e-t&&(e=m(this).data("type"),t=m(this).data("object"),"search"===e?n.searchTerm&&n.doSearch(n.pages.search):n.loadItems([{type:e,object:t}]))}),u.previewer.bind("url",this.close),n.delegateEvents())},search:function(e){var t=m("#available-menu-items-search"),n=m("#available-menu-items .accordion-section").not(t);e&&this.searchTerm!==e.target.value&&(""===e.target.value||t.hasClass("open")?""===e.target.value&&(t.removeClass("open"),n.show(),this.$clearResults.removeClass("is-visible")):(n.fadeOut(100),t.find(".accordion-section-content").slideDown("fast"),t.addClass("open"),this.$clearResults.addClass("is-visible")),this.searchTerm=e.target.value,this.pages.search=1,this.doSearch(1))},doSearch:function(t){var e,n=this,i=m("#available-menu-items-search"),a=i.find(".accordion-section-content"),o=l.template("available-menu-item");if(n.currentRequest&&n.currentRequest.abort(),!(t<0)){if(1<t)i.addClass("loading-more"),a.attr("aria-busy","true"),l.a11y.speak(u.Menus.data.l10n.itemsLoadingMore);else if(""===n.searchTerm)return a.html(""),void l.a11y.speak("");i.addClass("loading"),n.loading=!0,e=u.previewer.query({excludeCustomizedSaved:!0}),_.extend(e,{"customize-menus-nonce":u.settings.nonce["customize-menus"],wp_customize:"on",search:n.searchTerm,page:t}),n.currentRequest=l.ajax.post("search-available-menu-items-customizer",e),n.currentRequest.done(function(e){1===t&&a.empty(),i.removeClass("loading loading-more"),a.attr("aria-busy","false"),i.addClass("open"),n.loading=!1,e=new u.Menus.AvailableItemCollection(e.items),n.collection.add(e.models),e.each(function(e){a.append(o(e.attributes))}),e.length<20?n.pages.search=-1:n.pages.search=n.pages.search+1,e&&1<t?l.a11y.speak(u.Menus.data.l10n.itemsFoundMore.replace("%d",e.length)):e&&1===t&&l.a11y.speak(u.Menus.data.l10n.itemsFound.replace("%d",e.length))}),n.currentRequest.fail(function(e){e.message&&(a.empty().append(m('<li class="nothing-found"></li>').text(e.message)),l.a11y.speak(e.message)),n.pages.search=-1}),n.currentRequest.always(function(){i.removeClass("loading loading-more"),a.attr("aria-busy","false"),n.loading=!1,n.currentRequest=null})}},initList:function(){var t=this;_.each(u.Menus.data.itemTypes,function(e){t.pages[e.type+":"+e.object]=0}),t.loadItems(u.Menus.data.itemTypes)},loadItems:function(e,t){var i=this,a=[],o={},s=l.template("available-menu-item"),t=_.isString(e)&&_.isString(t)?[{type:e,object:t}]:e;_.each(t,function(e){var t,n=e.type+":"+e.object;-1!==i.pages[n]&&((t=m("#available-menu-items-"+e.type+"-"+e.object)).find(".accordion-section-title").addClass("loading"),o[n]=t,a.push({object:e.object,type:e.type,page:i.pages[n]}))}),0!==a.length&&(i.loading=!0,e=u.previewer.query({excludeCustomizedSaved:!0}),_.extend(e,{"customize-menus-nonce":u.settings.nonce["customize-menus"],wp_customize:"on",item_types:a}),(t=l.ajax.post("load-available-menu-items-customizer",e)).done(function(e){var n;_.each(e.items,function(e,t){0===e.length?(0===i.pages[t]&&o[t].find(".accordion-section-title").addClass("cannot-expand").removeClass("loading").find(".accordion-section-title > button").prop("tabIndex",-1),i.pages[t]=-1):("post_type:page"!==t||o[t].hasClass("open")||o[t].find(".accordion-section-title > button").trigger("click"),e=new u.Menus.AvailableItemCollection(e),i.collection.add(e.models),n=o[t].find(".available-menu-items-list"),e.each(function(e){n.append(s(e.attributes))}),i.pages[t]+=1)})}),t.fail(function(e){"undefined"!=typeof console&&console.error&&console.error(e)}),t.always(function(){_.each(o,function(e){e.find(".accordion-section-title").removeClass("loading")}),i.loading=!1}))},itemSectionHeight:function(){var e=window.innerHeight,t=this.$el.find(".accordion-section:not( #available-menu-items-search ) .accordion-section-content"),n=this.$el.find('.accordion-section:not( #available-menu-items-search ) .available-menu-items-list:not(":only-child")'),e=e-(46*(1+t.length)+14);120<e&&e<290&&(t.css("max-height",e),n.css("max-height",e-60))},select:function(e){this.selected=m(e),this.selected.siblings(".menu-item-tpl").removeClass("selected"),this.selected.addClass("selected")},focus:function(e){this.select(m(e.currentTarget))},_submit:function(e){"keypress"===e.type&&13!==e.which&&32!==e.which||this.submit(m(e.currentTarget))},submit:function(e){var t;(e=e||this.selected)&&this.currentMenuControl&&(this.select(e),t=m(this.selected).data("menu-item-id"),t=this.collection.findWhere({id:t}))&&(this.currentMenuControl.addItemToMenu(t.attributes),m(e).find(".menu-item-handle").addClass("item-added"))},_submitLink:function(e){"keypress"===e.type&&13!==e.which||this.submitLink()},submitLink:function(){var e,t=m("#custom-menu-item-name"),n=m("#custom-menu-item-url"),i=n.val().trim();this.currentMenuControl&&(e=/^((\w+:)?\/\/\w.*|\w+:(?!\/\/$)|\/|\?|#)/,""===t.val()?t.addClass("invalid"):e.test(i)?(e={title:t.val(),url:i,type:"custom",type_label:u.Menus.data.l10n.custom_label,object:"custom"},this.currentMenuControl.addItemToMenu(e),n.val("").attr("placeholder","https://"),t.val("")):n.addClass("invalid"))},_submitNew:function(e){"keypress"===e.type&&13!==e.which||this.addingNew||(e=m(e.target).closest(".accordion-section"),this.submitNew(e))},submitNew:function(n){var i=this,a=n.find(".create-item-input"),e=a.val(),t=n.find(".available-menu-items-list"),o=t.data("type"),s=t.data("object"),r=t.data("type_label");this.currentMenuControl&&"post_type"===o&&(""===a.val().trim()?(a.addClass("invalid"),a.focus()):(a.removeClass("invalid"),n.find(".accordion-section-title").addClass("loading"),i.addingNew=!0,a.attr("disabled","disabled"),u.Menus.insertAutoDraftPost({post_title:e,post_type:s}).done(function(e){var t,e=new u.Menus.AvailableItemModel({id:"post-"+e.post_id,title:a.val(),type:o,type_label:r,object:s,object_id:e.post_id,url:e.url});i.currentMenuControl.addItemToMenu(e.attributes),u.Menus.availableMenuItemsPanel.collection.add(e),t=n.find(".available-menu-items-list"),(e=m(l.template("available-menu-item")(e.attributes))).find(".menu-item-handle:first").addClass("item-added"),t.prepend(e),t.scrollTop(),a.val("").removeAttr("disabled"),i.addingNew=!1,n.find(".accordion-section-title").removeClass("loading")})))},open:function(e){var t,n=this;this.currentMenuControl=e,this.itemSectionHeight(),u.section.has("publish_settings")&&u.section("publish_settings").collapse(),m("body").addClass("adding-menu-items"),t=function(){n.close(),m(this).off("click",t)},m("#customize-preview").on("click",t),_(this.currentMenuControl.getMenuItemControls()).each(function(e){e.collapseForm()}),this.$el.find(".selected").removeClass("selected"),this.$search.trigger("focus")},close:function(e){(e=e||{}).returnFocus&&this.currentMenuControl&&this.currentMenuControl.container.find(".add-new-menu-item").focus(),this.currentMenuControl=null,this.selected=null,m("body").removeClass("adding-menu-items"),m("#available-menu-items .menu-item-handle.item-added").removeClass("item-added"),this.$search.val("").trigger("input")},keyboardAccessible:function(e){var t=13===e.which,n=27===e.which,i=9===e.which&&e.shiftKey,a=m(e.target).is(this.$search);t&&!this.$search.val()||(a&&i?(this.currentMenuControl.container.find(".add-new-menu-item").focus(),e.preventDefault()):n&&this.close({returnFocus:!0}))}}),u.Menus.MenusPanel=u.Panel.extend({attachEvents:function(){u.Panel.prototype.attachEvents.call(this);var t=this.container.find(".panel-meta"),n=t.find(".customize-help-toggle"),i=t.find(".customize-panel-description"),a=m("#screen-options-wrap"),o=t.find(".customize-screen-options-toggle");o.on("click keydown",function(e){if(!u.utils.isKeydownButNotEnterEvent(e))return e.preventDefault(),i.not(":hidden")&&(i.slideUp("fast"),n.attr("aria-expanded","false")),"true"===o.attr("aria-expanded")?(o.attr("aria-expanded","false"),t.removeClass("open"),t.removeClass("active-menu-screen-options"),a.slideUp("fast")):(o.attr("aria-expanded","true"),t.addClass("open"),t.addClass("active-menu-screen-options"),a.slideDown("fast")),!1}),n.on("click keydown",function(e){u.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),"true"===o.attr("aria-expanded")&&(o.attr("aria-expanded","false"),n.attr("aria-expanded","true"),t.addClass("open"),t.removeClass("active-menu-screen-options"),a.slideUp("fast"),i.slideDown("fast")))})},ready:function(){var e=this;e.container.find(".hide-column-tog").on("click",function(){e.saveManageColumnsState()}),u.section("menu_locations",function(e){e.headContainer.prepend(l.template("nav-menu-locations-header")(u.Menus.data))})},saveManageColumnsState:_.debounce(function(){var e=this;e._updateHiddenColumnsRequest&&e._updateHiddenColumnsRequest.abort(),e._updateHiddenColumnsRequest=l.ajax.post("hidden-columns",{hidden:e.hidden(),screenoptionnonce:m("#screenoptionnonce").val(),page:"nav-menus"}),e._updateHiddenColumnsRequest.always(function(){e._updateHiddenColumnsRequest=null})},2e3),checked:function(){},unchecked:function(){},hidden:function(){return m(".hide-column-tog").not(":checked").map(function(){var e=this.id;return e.substring(0,e.length-5)}).get().join(",")}}),u.Menus.MenuSection=u.Section.extend({initialize:function(e,t){u.Section.prototype.initialize.call(this,e,t),this.deferred.initSortables=m.Deferred()},ready:function(){var e,t,n=this;if(void 0===n.params.menu_id)throw new Error("params.menu_id was not defined");n.active.validate=function(){return!!u.has(n.id)&&!!u(n.id).get()},n.populateControls(),n.navMenuLocationSettings={},n.assignedLocations=new u.Value([]),u.each(function(e,t){t=t.match(/^nav_menu_locations\[(.+?)]/);t&&(n.navMenuLocationSettings[t[1]]=e).bind(function(){n.refreshAssignedLocations()})}),n.assignedLocations.bind(function(e){n.updateAssignedLocationsInSectionTitle(e)}),n.refreshAssignedLocations(),u.bind("pane-contents-reflowed",function(){n.contentContainer.parent().length&&(n.container.find(".menu-item .menu-item-reorder-nav button").attr({tabindex:"0","aria-hidden":"false"}),n.container.find(".menu-item.move-up-disabled .menus-move-up").attr({tabindex:"-1","aria-hidden":"true"}),n.container.find(".menu-item.move-down-disabled .menus-move-down").attr({tabindex:"-1","aria-hidden":"true"}),n.container.find(".menu-item.move-left-disabled .menus-move-left").attr({tabindex:"-1","aria-hidden":"true"}),n.container.find(".menu-item.move-right-disabled .menus-move-right").attr({tabindex:"-1","aria-hidden":"true"}))}),t=function(){var e="field-"+m(this).val()+"-active";n.contentContainer.toggleClass(e,m(this).prop("checked"))},(e=u.panel("nav_menus").contentContainer.find(".metabox-prefs:first").find(".hide-column-tog")).each(t),e.on("click",t)},populateControls:function(){var e,t=this,n=t.id+"[name]",i=u.control(n);i||(i=new u.controlConstructor.nav_menu_name(n,{type:"nav_menu_name",label:u.Menus.data.l10n.menuNameLabel,section:t.id,priority:0,settings:{default:t.id}}),u.control.add(i),i.active.set(!0)),(n=u.control(t.id))||(n=new u.controlConstructor.nav_menu(t.id,{type:"nav_menu",section:t.id,priority:998,settings:{default:t.id},menu_id:t.params.menu_id}),u.control.add(n),n.active.set(!0)),i=t.id+"[locations]",u.control(i)||(i=new u.controlConstructor.nav_menu_locations(i,{section:t.id,priority:999,settings:{default:t.id},menu_id:t.params.menu_id}),u.control.add(i.id,i),n.active.set(!0)),i=t.id+"[auto_add]",(n=u.control(i))||(n=new u.controlConstructor.nav_menu_auto_add(i,{type:"nav_menu_auto_add",label:"",section:t.id,priority:1e3,settings:{default:t.id}}),u.control.add(n),n.active.set(!0)),i=t.id+"[delete]",(e=u.control(i))||(e=new u.Control(i,{section:t.id,priority:1001,templateId:"nav-menu-delete-button"}),u.control.add(e.id,e),e.active.set(!0),e.deferred.embedded.done(function(){e.container.find("button").on("click",function(){var e=t.params.menu_id;u.Menus.getMenuControl(e).setting.set(!1)})}))},refreshAssignedLocations:function(){var n=this.params.menu_id,i=[];_.each(this.navMenuLocationSettings,function(e,t){e()===n&&i.push(t)}),this.assignedLocations.set(i)},updateAssignedLocationsInSectionTitle:function(e){var n=this.container.find(".accordion-section-title:first");n.find(".menu-in-location").remove(),_.each(e,function(e){var t=m('<span class="menu-in-location"></span>'),e=u.Menus.data.locationSlugMappedToName[e];t.text(u.Menus.data.l10n.menuLocation.replace("%s",e)),n.append(t)}),this.container.toggleClass("assigned-to-menu-location",0!==e.length)},onChangeExpanded:function(e,t){var n,i=this;e&&(wpNavMenu.menuList=i.contentContainer,wpNavMenu.targetList=wpNavMenu.menuList,m("#menu-to-edit").removeAttr("id"),wpNavMenu.menuList.attr("id","menu-to-edit").addClass("menu"),u.Menus.MenuItemControl.prototype.initAccessibility(),_.each(u.section(i.id).controls(),function(e){"nav_menu_item"===e.params.type&&e.actuallyEmbed()}),t.completeCallback&&(n=t.completeCallback),t.completeCallback=function(){"resolved"!==i.deferred.initSortables.state()&&(wpNavMenu.initSortables(),i.deferred.initSortables.resolve(wpNavMenu.menuList),u.control("nav_menu["+String(i.params.menu_id)+"]").reflowMenuItems()),_.isFunction(n)&&n()}),u.Section.prototype.onChangeExpanded.call(i,e,t)},highlightNewItemButton:function(){u.utils.highlightButton(this.contentContainer.find(".add-new-menu-item"),{delay:2e3})}}),u.Menus.createNavMenu=function(e){var t=u.Menus.generatePlaceholderAutoIncrementId(),n="nav_menu["+String(t)+"]";return u.create(n,n,{},{type:"nav_menu",transport:u.Menus.data.settingTransport,previewer:u.previewer}).set(m.extend({},u.Menus.data.defaultSettingValues.nav_menu,{name:e||""})),u.section.add(new u.Menus.MenuSection(n,{panel:"nav_menus",title:c(e),customizeAction:u.Menus.data.l10n.customizingMenus,priority:10,menu_id:t}))},u.Menus.NewMenuSection=u.Section.extend({attachEvents:function(){var t=this,e=t.container,n=t.contentContainer,i=/^nav_menu\[/;function a(){var t;e.find(".add-new-menu-notice").prop("hidden",(t=0,u.each(function(e){i.test(e.id)&&!1!==e.get()&&(t+=1)}),0<t))}function o(e){i.test(e.id)&&(e.bind(a),a())}t.headContainer.find(".accordion-section-title").replaceWith(l.template("nav-menu-create-menu-section-title")),e.on("click",".customize-add-menu-button",function(){t.expand()}),n.on("keydown",".menu-name-field",function(e){13===e.which&&t.submit()}),n.on("click","#customize-new-menu-submit",function(e){t.submit(),e.stopPropagation(),e.preventDefault()}),u.each(o),u.bind("add",o),u.bind("removed",function(e){i.test(e.id)&&(e.unbind(a),a())}),a(),u.Section.prototype.attachEvents.apply(t,arguments)},ready:function(){this.populateControls()},populateControls:function(){var e=this,t=e.id+"[name]",n=u.control(t);n||(n=new u.controlConstructor.nav_menu_name(t,{label:u.Menus.data.l10n.menuNameLabel,description:u.Menus.data.l10n.newMenuNameDescription,section:e.id,priority:0}),u.control.add(n.id,n),n.active.set(!0)),t=e.id+"[locations]",(n=u.control(t))||(n=new u.controlConstructor.nav_menu_locations(t,{section:e.id,priority:1,menu_id:"",isCreating:!0}),u.control.add(t,n),n.active.set(!0)),t=e.id+"[submit]",(n=u.control(t))||(n=new u.Control(t,{section:e.id,priority:1,templateId:"nav-menu-submit-new-button"}),u.control.add(t,n),n.active.set(!0))},submit:function(){var t,e=this.contentContainer,n=e.find(".menu-name-field").first(),i=n.val();i?(t=u.Menus.createNavMenu(i),n.val(""),n.removeClass("invalid"),e.find(".assigned-menu-location input[type=checkbox]").each(function(){var e=m(this);e.prop("checked")&&(u("nav_menu_locations["+e.data("location-id")+"]").set(t.params.menu_id),e.prop("checked",!1))}),l.a11y.speak(u.Menus.data.l10n.menuAdded),t.focus({completeCallback:function(){t.highlightNewItemButton()}})):(n.addClass("invalid"),n.focus())},selectDefaultLocation:function(e){var t=u.control(this.id+"[locations]"),n={};null!==e&&(n[e]=!0),t.setSelections(n)}}),u.Menus.MenuLocationControl=u.Control.extend({initialize:function(e,t){var n=e.match(/^nav_menu_locations\[(.+?)]/);this.themeLocation=n[1],u.Control.prototype.initialize.call(this,e,t)},ready:function(){var n=this,i=/^nav_menu\[(-?\d+)]/;n.setting.validate=function(e){return""===e?0:parseInt(e,10)},n.container.find(".create-menu").on("click",function(){var e=u.section("add_menu");e.selectDefaultLocation(this.dataset.locationId),e.focus()}),n.container.find(".edit-menu").on("click",function(){var e=n.setting();u.section("nav_menu["+e+"]").focus()}),n.setting.bind("change",function(){var e=0!==n.setting();n.container.find(".create-menu").toggleClass("hidden",e),n.container.find(".edit-menu").toggleClass("hidden",!e)}),u.bind("add",function(e){var t=e.id.match(i);t&&!1!==e()&&(t=t[1],e=new Option(c(e().name),t),n.container.find("select").append(e))}),u.bind("remove",function(e){var e=e.id.match(i);e&&(e=parseInt(e[1],10),n.setting()===e&&n.setting.set(""),n.container.find("option[value="+e+"]").remove())}),u.bind("change",function(e){var t=e.id.match(i);t&&(t=parseInt(t[1],10),!1===e()?(n.setting()===t&&n.setting.set(""),n.container.find("option[value="+t+"]").remove()):n.container.find("option[value="+t+"]").text(c(e().name)))})}}),u.Menus.MenuItemControl=u.Control.extend({initialize:function(e,t){var n=this;n.expanded=new u.Value(!1),n.expandedArgumentsQueue=[],n.expanded.bind(function(e){var t=n.expandedArgumentsQueue.shift(),t=m.extend({},n.defaultExpandedArguments,t);n.onChangeExpanded(e,t)}),u.Control.prototype.initialize.call(n,e,t),n.active.validate=function(){var e=u.section(n.section()),e=!!e&&e.active();return e}},initAccessibility:function(){var e=this,t=m("#menu-to-edit");t.on("mouseenter.refreshAccessibility focus.refreshAccessibility touchstart.refreshAccessibility",".menu-item",function(){e.refreshAdvancedAccessibilityOfItem(m(this).find("button.item-edit"))}),t.on("click","button.item-edit",function(){e.refreshAdvancedAccessibilityOfItem(m(this))})},refreshAdvancedAccessibilityOfItem:function(e){var t,n,i,a,o,s,r,d;!0===m(e).data("needs_accessibility_refresh")&&(o=0===(a=(i=(e=m(e)).closest("li.menu-item").first()).menuItemDepth()),s=e.closest(".menu-item-handle").find(".menu-item-title").text(),r=e.closest(".menu-item-handle").find(".item-type").text(),d=m("#menu-to-edit li").length,d=o?(t=(o=m(".menu-item-depth-0")).index(i)+1,d=o.length,menus.menuFocus.replace("%1$s",s).replace("%2$s",r).replace("%3$d",t).replace("%4$d",d)):(d=(o=i.prevAll(".menu-item-depth-"+parseInt(a-1,10)).first()).find(".menu-item-data-db-id").val(),o=o.find(".menu-item-title").text(),n=(d=m('.menu-item .menu-item-data-parent-id[value="'+d+'"]')).length,t=m(d.parents(".menu-item").get().reverse()).index(i)+1,a<2?menus.subMenuFocus.replace("%1$s",s).replace("%2$s",r).replace("%3$d",t).replace("%4$d",n).replace("%5$s",o):menus.subMenuMoreDepthFocus.replace("%1$s",s).replace("%2$s",r).replace("%3$d",t).replace("%4$d",n).replace("%5$s",o).replace("%6$d",a)),e.find(".screen-reader-text").text(d),e.data("needs_accessibility_refresh",!1))},embed:function(){var e=this.section();e&&((e=u.section(e))&&e.expanded()||u.settings.autofocus.control===this.id)&&this.actuallyEmbed()},actuallyEmbed:function(){"resolved"!==this.deferred.embedded.state()&&(this.renderContent(),this.deferred.embedded.resolve(),m("button.item-edit").data("needs_accessibility_refresh",!0))},ready:function(){if(void 0===this.params.menu_item_id)throw new Error("params.menu_item_id was not defined");this._setupControlToggle(),this._setupReorderUI(),this._setupUpdateUI(),this._setupRemoveUI(),this._setupLinksUI(),this._setupTitleUI()},_setupControlToggle:function(){var i=this;this.container.find(".menu-item-handle").on("click",function(e){e.preventDefault(),e.stopPropagation();var t=i.getMenuControl(),n=m(e.target).is(".item-delete, .item-delete *"),e=m(e.target).is(".add-new-menu-item, .add-new-menu-item *");!m("body").hasClass("adding-menu-items")||n||e||u.Menus.availableMenuItemsPanel.close(),t.isReordering||t.isSorting||i.toggleForm()})},_setupReorderUI:function(){var o=this,e=l.template("menu-item-reorder-nav");o.container.find(".item-controls").after(e),o.container.find(".menu-item-reorder-nav").find(".menus-move-up, .menus-move-down, .menus-move-left, .menus-move-right").on("click",function(){var e=m(this),t=(o.params.depth=o.getDepth(),e.focus(),e.is(".menus-move-up")),n=e.is(".menus-move-down"),i=e.is(".menus-move-left"),a=e.is(".menus-move-right");t?o.moveUp():n?o.moveDown():i?o.moveLeft():a&&(o.moveRight(),o.params.depth+=1),e.focus(),m("button.item-edit").data("needs_accessibility_refresh",!0)})},_setupUpdateUI:function(){var e,s=this,t=s.setting();s.elements={},s.elements.url=new u.Element(s.container.find(".edit-menu-item-url")),s.elements.title=new u.Element(s.container.find(".edit-menu-item-title")),s.elements.attr_title=new u.Element(s.container.find(".edit-menu-item-attr-title")),s.elements.target=new u.Element(s.container.find(".edit-menu-item-target")),s.elements.classes=new u.Element(s.container.find(".edit-menu-item-classes")),s.elements.xfn=new u.Element(s.container.find(".edit-menu-item-xfn")),s.elements.description=new u.Element(s.container.find(".edit-menu-item-description")),_.each(s.elements,function(n,i){n.bind(function(e){n.element.is("input[type=checkbox]")&&(e=e?n.element.val():"");var t=s.setting();t&&t[i]!==e&&((t=_.clone(t))[i]=e,s.setting.set(t))}),t&&("classes"!==i&&"xfn"!==i||!_.isArray(t[i])?n.set(t[i]):n.set(t[i].join(" ")))}),s.setting.bind(function(n,i){var e,t=s.params.menu_item_id,a=[],o=[];!1===n?(e=u.control("nav_menu["+String(i.nav_menu_term_id)+"]"),s.container.remove(),_.each(e.getMenuItemControls(),function(e){i.menu_item_parent===e.setting().menu_item_parent&&e.setting().position>i.position?a.push(e):e.setting().menu_item_parent===t&&o.push(e)}),_.each(a,function(e){var t=_.clone(e.setting());t.position+=o.length,e.setting.set(t)}),_.each(o,function(e,t){var n=_.clone(e.setting());n.position=i.position+t,n.menu_item_parent=i.menu_item_parent,e.setting.set(n)}),e.debouncedReflowMenuItems()):(_.each(n,function(e,t){s.elements[t]&&s.elements[t].set(n[t])}),s.container.find(".menu-item-data-parent-id").val(n.menu_item_parent),n.position===i.position&&n.menu_item_parent===i.menu_item_parent||s.getMenuControl().debouncedReflowMenuItems())}),s.setting.notifications.bind("add",e=function(){s.elements.url.element.toggleClass("invalid",s.setting.notifications.has("invalid_url"))}),s.setting.notifications.bind("removed",e)},_setupRemoveUI:function(){var r=this;r.container.find(".item-delete").on("click",function(){var e,t,n,i=!0,a=0,o=r.params.original_item_id,s=r.getMenuControl().$sectionContent.find(".menu-item");m("body").hasClass("adding-menu-items")||(i=!1),n=r.container.nextAll(".customize-control-nav_menu_item:visible").first(),t=r.container.prevAll(".customize-control-nav_menu_item:visible").first(),e=(n.length?n.find(!1===i?".item-edit":".item-delete"):t.length?t.find(!1===i?".item-edit":".item-delete"):r.container.nextAll(".customize-control-nav_menu").find(".add-new-menu-item")).first(),_.each(s,function(e){m(e).is(":visible")&&(e=e.getAttribute("id").match(/^customize-control-nav_menu_item-(-?\d+)$/,""))&&(e=parseInt(e[1],10),e=u.control("nav_menu_item["+String(e)+"]"))&&o==e.params.original_item_id&&a++}),a<=1&&((n=m("#menu-item-tpl-"+r.params.original_item_id)).removeClass("selected"),n.find(".menu-item-handle").removeClass("item-added")),r.container.slideUp(function(){r.setting.set(!1),l.a11y.speak(u.Menus.data.l10n.itemDeleted),e.focus()}),r.setting.set(!1)})},_setupLinksUI:function(){this.container.find("a.original-link").on("click",function(e){e.preventDefault(),u.previewer.previewUrl(e.target.toString())})},_setupTitleUI:function(){var i;this.container.find(".edit-menu-item-title").on("blur",function(){m(this).val(m(this).val().trim())}),i=this.container.find(".menu-item-title"),this.setting.bind(function(e){var t,n;e&&(e.title=e.title||"",n=(t=e.title.trim())||e.original_title||u.Menus.data.l10n.untitled,e._invalid&&(n=u.Menus.data.l10n.invalidTitleTpl.replace("%s",n)),t||e.original_title?i.text(n).removeClass("no-title"):i.text(n).addClass("no-title"))})},getDepth:function(){var e=this,t=e.setting(),n=0;if(!t)return 0;for(;t&&t.menu_item_parent&&(n+=1,e=u.control("nav_menu_item["+t.menu_item_parent+"]"));)t=e.setting();return n},renderContent:function(){var e,t=this,n=t.setting();t.params.title=n.title||"",t.params.depth=t.getDepth(),t.container.data("item-depth",t.params.depth),e=["menu-item","menu-item-depth-"+String(t.params.depth),"menu-item-"+n.object,"menu-item-edit-inactive"],n._invalid?(e.push("menu-item-invalid"),t.params.title=u.Menus.data.l10n.invalidTitleTpl.replace("%s",t.params.title)):"draft"===n.status&&(e.push("pending"),t.params.title=u.Menus.data.pendingTitleTpl.replace("%s",t.params.title)),t.params.el_classes=e.join(" "),t.params.item_type_label=n.type_label,t.params.item_type=n.type,t.params.url=n.url,t.params.target=n.target,t.params.attr_title=n.attr_title,t.params.classes=_.isArray(n.classes)?n.classes.join(" "):n.classes,t.params.xfn=n.xfn,t.params.description=n.description,t.params.parent=n.menu_item_parent,t.params.original_title=n.original_title||"",t.container.addClass(t.params.el_classes),u.Control.prototype.renderContent.call(t)},getMenuControl:function(){var e=this.setting();return e&&e.nav_menu_term_id?u.control("nav_menu["+e.nav_menu_term_id+"]"):null},expandControlSection:function(){var e=this.container.closest(".accordion-section");e.hasClass("open")||e.find(".accordion-section-title:first").trigger("click")},_toggleExpanded:u.Section.prototype._toggleExpanded,expand:u.Section.prototype.expand,expandForm:function(e){this.expand(e)},collapse:u.Section.prototype.collapse,collapseForm:function(e){this.collapse(e)},toggleForm:function(e,t){(e=void 0===e?!this.expanded():e)?this.expand(t):this.collapse(t)},onChangeExpanded:function(e,t){var n,i=this,a=this.container,o=a.find(".menu-item-settings:first");void 0===e&&(e=!o.is(":visible")),o.is(":visible")===e?t&&t.completeCallback&&t.completeCallback():e?(u.control.each(function(e){i.params.type===e.params.type&&i!==e&&e.collapseForm()}),n=function(){a.removeClass("menu-item-edit-inactive").addClass("menu-item-edit-active"),i.container.trigger("expanded"),t&&t.completeCallback&&t.completeCallback()},a.find(".item-edit").attr("aria-expanded","true"),o.slideDown("fast",n),i.container.trigger("expand")):(n=function(){a.addClass("menu-item-edit-inactive").removeClass("menu-item-edit-active"),i.container.trigger("collapsed"),t&&t.completeCallback&&t.completeCallback()},i.container.trigger("collapse"),a.find(".item-edit").attr("aria-expanded","false"),o.slideUp("fast",n))},focus:function(e){var t=this,n=(e=e||{}).completeCallback,i=function(){t.expandControlSection(),e.completeCallback=function(){t.container.find(".menu-item-settings").find("input, select, textarea, button, object, a[href], [tabindex]").filter(":visible").first().focus(),n&&n()},t.expandForm(e)};u.section.has(t.section())?u.section(t.section()).expand({completeCallback:i}):i()},moveUp:function(){this._changePosition(-1),l.a11y.speak(u.Menus.data.l10n.movedUp)},moveDown:function(){this._changePosition(1),l.a11y.speak(u.Menus.data.l10n.movedDown)},moveLeft:function(){this._changeDepth(-1),l.a11y.speak(u.Menus.data.l10n.movedLeft)},moveRight:function(){this._changeDepth(1),l.a11y.speak(u.Menus.data.l10n.movedRight)},_changePosition:function(e){var t,n=this,i=_.clone(n.setting()),a=[];if(1!==e&&-1!==e)throw new Error("Offset changes by 1 are only supported.");if(n.setting()){if(_(n.getMenuControl().getMenuItemControls()).each(function(e){e.setting().menu_item_parent===i.menu_item_parent&&a.push(e.setting)}),a.sort(function(e,t){return e().position-t().position}),-1===(t=_.indexOf(a,n.setting)))throw new Error("Expected setting to be among siblings.");0===t&&e<0||t===a.length-1&&0<e||((t=a[t+e])&&t.set(m.extend(_.clone(t()),{position:i.position})),i.position+=e,n.setting.set(i))}},_changeDepth:function(e){if(1!==e&&-1!==e)throw new Error("Offset changes by 1 are only supported.");var t,n,i=this,a=_.clone(i.setting()),o=[];if(_(i.getMenuControl().getMenuItemControls()).each(function(e){e.setting().menu_item_parent===a.menu_item_parent&&o.push(e)}),o.sort(function(e,t){return e.setting().position-t.setting().position}),-1===(t=_.indexOf(o,i)))throw new Error("Expected control to be among siblings.");-1===e?a.menu_item_parent&&(n=u.control("nav_menu_item["+a.menu_item_parent+"]"),_(o).chain().slice(t).each(function(e,t){e.setting.set(m.extend({},e.setting(),{menu_item_parent:i.params.menu_item_id,position:t}))}),_(i.getMenuControl().getMenuItemControls()).each(function(e){var t;e.setting().menu_item_parent===n.setting().menu_item_parent&&e.setting().position>n.setting().position&&(t=_.clone(e.setting()),e.setting.set(m.extend(t,{position:t.position+1})))}),a.position=n.setting().position+1,a.menu_item_parent=n.setting().menu_item_parent,i.setting.set(a)):1===e&&0!==t&&(a.menu_item_parent=o[t-1].params.menu_item_id,a.position=0,_(i.getMenuControl().getMenuItemControls()).each(function(e){e.setting().menu_item_parent===a.menu_item_parent&&(a.position=Math.max(a.position,e.setting().position))}),a.position+=1,i.setting.set(a))}}),u.Menus.MenuNameControl=u.Control.extend({ready:function(){var e,n=this;n.setting&&(e=n.setting(),n.nameElement=new u.Element(n.container.find(".menu-name-field")),n.nameElement.bind(function(e){var t=n.setting();t&&t.name!==e&&((t=_.clone(t)).name=e,n.setting.set(t))}),e&&n.nameElement.set(e.name),n.setting.bind(function(e){e&&n.nameElement.set(e.name)}))}}),u.Menus.MenuLocationsControl=u.Control.extend({ready:function(){var d=this;d.container.find(".assigned-menu-location").each(function(){function t(e){var t=u("nav_menu["+String(e)+"]");e&&t&&t()?n.find(".theme-location-set").show().find("span").text(c(t().name)):n.find(".theme-location-set").hide()}var n=m(this),e=n.find("input[type=checkbox]"),i=new u.Element(e),a=u("nav_menu_locations["+e.data("location-id")+"]"),o=""===d.params.menu_id,s=o?_.noop:function(e){i.set(e)},r=o?_.noop:function(e){a.set(e?d.params.menu_id:0)};s(a.get()===d.params.menu_id),e.on("change",function(){r(this.checked)}),a.bind(function(e){s(e===d.params.menu_id),t(e)}),t(a.get())})},setSelections:function(i){this.container.find(".menu-location").each(function(e,t){var n=t.dataset.locationId;t.checked=n in i&&i[n]})}}),u.Menus.MenuAutoAddControl=u.Control.extend({ready:function(){var n=this,e=n.setting();n.active.validate=function(){var e=u.section(n.section()),e=!!e&&e.active();return e},n.autoAddElement=new u.Element(n.container.find("input[type=checkbox].auto_add")),n.autoAddElement.bind(function(e){var t=n.setting();t&&t.name!==e&&((t=_.clone(t)).auto_add=e,n.setting.set(t))}),e&&n.autoAddElement.set(e.auto_add),n.setting.bind(function(e){e&&n.autoAddElement.set(e.auto_add)})}}),u.Menus.MenuControl=u.Control.extend({ready:function(){var t,n,i=this,a=u.section(i.section()),o=i.params.menu_id,e=i.setting();if(void 0===this.params.menu_id)throw new Error("params.menu_id was not defined");i.active.validate=function(){var e=!!a&&a.active();return e},i.$controlSection=a.headContainer,i.$sectionContent=i.container.closest(".accordion-section-content"),this._setupModel(),u.section(i.section(),function(e){e.deferred.initSortables.done(function(e){i._setupSortable(e)})}),this._setupAddition(),this._setupTitle(),e&&(t=c(e.name),u.control.each(function(e){e.extended(u.controlConstructor.widget_form)&&"nav_menu"===e.params.widget_id_base&&(e.container.find(".nav-menu-widget-form-controls:first").show(),e.container.find(".nav-menu-widget-no-menus-message:first").hide(),0===(n=e.container.find("select")).find("option[value="+String(o)+"]").length)&&n.append(new Option(t,o))}),(e=m("#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )")).find(".nav-menu-widget-form-controls:first").show(),e.find(".nav-menu-widget-no-menus-message:first").hide(),0===(n=e.find(".widget-inside select:first")).find("option[value="+String(o)+"]").length)&&n.append(new Option(t,o)),_.defer(function(){i.updateInvitationVisibility()})},_setupModel:function(){var n=this,i=n.params.menu_id;n.setting.bind(function(e){var t;!1===e?n._handleDeletion():(t=c(e.name),u.control.each(function(e){e.extended(u.controlConstructor.widget_form)&&"nav_menu"===e.params.widget_id_base&&e.container.find("select").find("option[value="+String(i)+"]").text(t)}))})},_setupSortable:function(e){var a=this;if(!e.is(a.$sectionContent))throw new Error("Unexpected menuList.");e.on("sortstart",function(){a.isSorting=!0}),e.on("sortstop",function(){setTimeout(function(){var e=a.$sectionContent.sortable("toArray"),t=[],n=0,i=10;a.isSorting=!1,a.$sectionContent.scrollLeft(0),_.each(e,function(e){var e=e.match(/^customize-control-nav_menu_item-(-?\d+)$/,"");e&&(e=parseInt(e[1],10),e=u.control("nav_menu_item["+String(e)+"]"))&&t.push(e)}),_.each(t,function(e){var t;!1!==e.setting()&&(t=_.clone(e.setting()),n+=1,i+=1,t.position=n,e.priority(i),t.menu_item_parent=parseInt(e.container.find(".menu-item-data-parent-id").val(),10),t.menu_item_parent||(t.menu_item_parent=0),e.setting.set(t))}),m("button.item-edit").data("needs_accessibility_refresh",!0)})}),a.isReordering=!1,this.container.find(".reorder-toggle").on("click",function(){a.toggleReordering(!a.isReordering)})},_setupAddition:function(){var t=this;this.container.find(".add-new-menu-item").on("click",function(e){t.$sectionContent.hasClass("reordering")||(m("body").hasClass("adding-menu-items")?(m(this).attr("aria-expanded","false"),u.Menus.availableMenuItemsPanel.close(),e.stopPropagation()):(m(this).attr("aria-expanded","true"),u.Menus.availableMenuItemsPanel.open(t)))})},_handleDeletion:function(){var e,n=this.params.menu_id,i=0,t=u.section(this.section()),a=function(){t.container.remove(),u.section.remove(t.id)};t&&t.expanded()?t.collapse({completeCallback:function(){a(),l.a11y.speak(u.Menus.data.l10n.menuDeleted),u.panel("nav_menus").focus()}}):a(),u.each(function(e){/^nav_menu\[/.test(e.id)&&!1!==e()&&(i+=1)}),u.control.each(function(e){var t;e.extended(u.controlConstructor.widget_form)&&"nav_menu"===e.params.widget_id_base&&((t=e.container.find("select")).val()===String(n)&&t.prop("selectedIndex",0).trigger("change"),e.container.find(".nav-menu-widget-form-controls:first").toggle(0!==i),e.container.find(".nav-menu-widget-no-menus-message:first").toggle(0===i),e.container.find("option[value="+String(n)+"]").remove())}),(e=m("#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )")).find(".nav-menu-widget-form-controls:first").toggle(0!==i),e.find(".nav-menu-widget-no-menus-message:first").toggle(0===i),e.find("option[value="+String(n)+"]").remove()},_setupTitle:function(){var d=this;d.setting.bind(function(e){var t,n,i,a,o,s,r;e&&(t=u.section(d.section()),n=d.params.menu_id,i=t.headContainer.find(".accordion-section-title"),a=t.contentContainer.find(".customize-section-title h3"),o=t.headContainer.find(".menu-in-location"),s=a.find(".customize-action"),r=c(e.name),i.text(r),o.length&&o.appendTo(i),a.text(r),s.length&&s.prependTo(a),u.control.each(function(e){/^nav_menu_locations\[/.test(e.id)&&e.container.find("option[value="+n+"]").text(r)}),t.contentContainer.find(".customize-control-checkbox input").each(function(){m(this).prop("checked")&&m(".current-menu-location-name-"+m(this).data("location-id")).text(r)}))})},toggleReordering:function(e){var t=this.container.find(".add-new-menu-item"),n=this.container.find(".reorder-toggle"),i=this.$sectionContent.find(".item-title");(e=Boolean(e))!==this.$sectionContent.hasClass("reordering")&&(this.isReordering=e,this.$sectionContent.toggleClass("reordering",e),this.$sectionContent.sortable(this.isReordering?"disable":"enable"),this.isReordering?(t.attr({tabindex:"-1","aria-hidden":"true"}),n.attr("aria-label",u.Menus.data.l10n.reorderLabelOff),l.a11y.speak(u.Menus.data.l10n.reorderModeOn),i.attr("aria-hidden","false")):(t.removeAttr("tabindex aria-hidden"),n.attr("aria-label",u.Menus.data.l10n.reorderLabelOn),l.a11y.speak(u.Menus.data.l10n.reorderModeOff),i.attr("aria-hidden","true")),e)&&_(this.getMenuItemControls()).each(function(e){e.collapseForm()})},getMenuItemControls:function(){var t=[],n=this.params.menu_id;return u.control.each(function(e){"nav_menu_item"===e.params.type&&e.setting()&&n===e.setting().nav_menu_term_id&&t.push(e)}),t},reflowMenuItems:function(){var e=this.getMenuItemControls(),a=function(n){var t=[],i=n.currentParent;_.each(n.menuItemControls,function(e){i===e.setting().menu_item_parent&&t.push(e)}),t.sort(function(e,t){return e.setting().position-t.setting().position}),_.each(t,function(t){n.currentAbsolutePosition+=1,t.priority.set(n.currentAbsolutePosition),t.container.hasClass("menu-item-depth-"+String(n.currentDepth))||(_.each(t.container.prop("className").match(/menu-item-depth-\d+/g),function(e){t.container.removeClass(e)}),t.container.addClass("menu-item-depth-"+String(n.currentDepth))),t.container.data("item-depth",n.currentDepth),n.currentDepth+=1,n.currentParent=t.params.menu_item_id,a(n),--n.currentDepth,n.currentParent=i}),t.length&&(_(t).each(function(e){e.container.removeClass("move-up-disabled move-down-disabled move-left-disabled move-right-disabled"),0===n.currentDepth?e.container.addClass("move-left-disabled"):10===n.currentDepth&&e.container.addClass("move-right-disabled")}),t[0].container.addClass("move-up-disabled").addClass("move-right-disabled").toggleClass("move-down-disabled",1===t.length),t[t.length-1].container.addClass("move-down-disabled").toggleClass("move-up-disabled",1===t.length))};a({menuItemControls:e,currentParent:0,currentDepth:0,currentAbsolutePosition:0}),this.updateInvitationVisibility(e),this.container.find(".reorder-toggle").toggle(1<e.length)},debouncedReflowMenuItems:_.debounce(function(){this.reflowMenuItems.apply(this,arguments)},0),addItemToMenu:function(e){var t,n,i,a=0,o=10,s=e.id||"";return _.each(this.getMenuItemControls(),function(e){!1!==e.setting()&&(o=Math.max(o,e.priority()),0===e.setting().menu_item_parent)&&(a=Math.max(a,e.setting().position))}),a+=1,o+=1,delete(e=m.extend({},u.Menus.data.defaultSettingValues.nav_menu_item,e,{nav_menu_term_id:this.params.menu_id,original_title:e.title,position:a})).id,i=u.Menus.generatePlaceholderAutoIncrementId(),t="nav_menu_item["+String(i)+"]",n={type:"nav_menu_item",transport:u.Menus.data.settingTransport,previewer:u.previewer},(n=u.create(t,t,{},n)).set(e),e=new u.controlConstructor.nav_menu_item(t,{type:"nav_menu_item",section:this.id,priority:o,settings:{default:t},menu_item_id:i,original_item_id:s}),u.control.add(e),n.preview(),this.debouncedReflowMenuItems(),l.a11y.speak(u.Menus.data.l10n.itemAdded),e},updateInvitationVisibility:function(e){e=e||this.getMenuItemControls();this.container.find(".new-menu-item-invitation").toggle(0===e.length)}}),m.extend(u.controlConstructor,{nav_menu_location:u.Menus.MenuLocationControl,nav_menu_item:u.Menus.MenuItemControl,nav_menu:u.Menus.MenuControl,nav_menu_name:u.Menus.MenuNameControl,nav_menu_locations:u.Menus.MenuLocationsControl,nav_menu_auto_add:u.Menus.MenuAutoAddControl}),m.extend(u.panelConstructor,{nav_menus:u.Menus.MenusPanel}),m.extend(u.sectionConstructor,{nav_menu:u.Menus.MenuSection,new_menu:u.Menus.NewMenuSection}),u.bind("ready",function(){u.Menus.availableMenuItemsPanel=new u.Menus.AvailableMenuItemsPanelView({collection:u.Menus.availableMenuItems}),u.bind("saved",function(e){(e.nav_menu_updates||e.nav_menu_item_updates)&&u.Menus.applySavedData(e)}),u.state("changesetStatus").bind(function(e){"publish"===e&&(u("nav_menus_created_posts")._value=[])}),u.previewer.bind("focus-nav-menu-item-control",u.Menus.focusMenuItemControl)}),u.Menus.applySavedData=function(e){var c={},r={};_(e.nav_menu_updates).each(function(n){var e,t,i,a,o,s,r,d;if("inserted"===n.status){if(!n.previous_term_id)throw new Error("Expected previous_term_id");if(!n.term_id)throw new Error("Expected term_id");if(e="nav_menu["+String(n.previous_term_id)+"]",!u.has(e))throw new Error("Expected setting to exist: "+e);if(i=u(e),!u.section.has(e))throw new Error("Expected control to exist: "+e);if(o=u.section(e),!(s=i.get()))throw new Error("Did not expect setting to be empty (deleted).");s=m.extend(_.clone(s),n.saved_value),c[n.previous_term_id]=n.term_id,a="nav_menu["+String(n.term_id)+"]",t=u.create(a,a,s,{type:"nav_menu",transport:u.Menus.data.settingTransport,previewer:u.previewer}),(d=o.expanded())&&o.collapse(),a=new u.Menus.MenuSection(a,{panel:"nav_menus",title:s.name,customizeAction:u.Menus.data.l10n.customizingMenus,type:"nav_menu",priority:o.priority.get(),menu_id:n.term_id}),u.section.add(a),u.control.each(function(e){var t;e.extended(u.controlConstructor.widget_form)&&"nav_menu"===e.params.widget_id_base&&(t=(e=e.container.find("select")).find("option[value="+String(n.previous_term_id)+"]"),e.find("option[value="+String(n.term_id)+"]").prop("selected",t.prop("selected")),t.remove())}),i.callbacks.disable(),i.set(!1),i.preview(),t.preview(),i._dirty=!1,o.container.remove(),u.section.remove(e),r=0,u.each(function(e){/^nav_menu\[/.test(e.id)&&!1!==e()&&(r+=1)}),(s=m("#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )")).find(".nav-menu-widget-form-controls:first").toggle(0!==r),s.find(".nav-menu-widget-no-menus-message:first").toggle(0===r),s.find("option[value="+String(n.previous_term_id)+"]").remove(),l.customize.control.each(function(e){/^nav_menu_locations\[/.test(e.id)&&e.container.find("option[value="+String(n.previous_term_id)+"]").remove()}),u.each(function(e){var t=u.state("saved").get();/^nav_menu_locations\[/.test(e.id)&&e.get()===n.previous_term_id&&(e.set(n.term_id),e._dirty=!1,u.state("saved").set(t),e.preview())}),d&&a.expand()}else if("updated"===n.status){if(t="nav_menu["+String(n.term_id)+"]",!u.has(t))throw new Error("Expected setting to exist: "+t);i=u(t),_.isEqual(n.saved_value,i.get())||(o=u.state("saved").get(),i.set(n.saved_value),i._dirty=!1,u.state("saved").set(o))}}),_(e.nav_menu_item_updates).each(function(e){e.previous_post_id&&(r[e.previous_post_id]=e.post_id)}),_(e.nav_menu_item_updates).each(function(e){var t,n,i,a,o,s;if("inserted"===e.status){if(!e.previous_post_id)throw new Error("Expected previous_post_id");if(!e.post_id)throw new Error("Expected post_id");if(t="nav_menu_item["+String(e.previous_post_id)+"]",!u.has(t))throw new Error("Expected setting to exist: "+t);if(i=u(t),!u.control.has(t))throw new Error("Expected control to exist: "+t);if(o=u.control(t),!(s=i.get()))throw new Error("Did not expect setting to be empty (deleted).");if((s=_.clone(s)).menu_item_parent<0){if(!r[s.menu_item_parent])throw new Error("inserted ID for menu_item_parent not available");s.menu_item_parent=r[s.menu_item_parent]}c[s.nav_menu_term_id]&&(s.nav_menu_term_id=c[s.nav_menu_term_id]),n="nav_menu_item["+String(e.post_id)+"]",a=u.create(n,n,s,{type:"nav_menu_item",transport:u.Menus.data.settingTransport,previewer:u.previewer}),s=new u.controlConstructor.nav_menu_item(n,{type:"nav_menu_item",menu_id:e.post_id,section:"nav_menu["+String(s.nav_menu_term_id)+"]",priority:o.priority.get(),settings:{default:n},menu_item_id:e.post_id}),o.container.remove(),u.control.remove(t),u.control.add(s),i.callbacks.disable(),i.set(!1),i.preview(),a.preview(),i._dirty=!1,s.container.toggleClass("menu-item-edit-inactive",o.container.hasClass("menu-item-edit-inactive"))}}),_.each(e.widget_nav_menu_updates,function(e,t){t=u(t);t&&(t._value=e,t.preview())})},u.Menus.focusMenuItemControl=function(e){e=u.Menus.getMenuItemControl(e);e&&e.focus()},u.Menus.getMenuControl=function(e){return u.control("nav_menu["+e+"]")},u.Menus.getMenuItemControl=function(e){return u.control("nav_menu_item["+e+"]")}}(wp.customize,wp,jQuery); \ No newline at end of file
diff --git a/wp-admin/js/customize-widgets.js b/wp-admin/js/customize-widgets.js
index 2ba8aee..56459ad 100644
--- a/wp-admin/js/customize-widgets.js
+++ b/wp-admin/js/customize-widgets.js
@@ -388,7 +388,7 @@
},
/**
- * Adds keyboard accessiblity to the panel.
+ * Adds keyboard accessibility to the panel.
*/
keyboardAccessible: function( event ) {
var isEnter = ( event.which === 13 ),
@@ -1623,7 +1623,8 @@
// @todo This should use the Notifications API introduced to panels. See <https://core.trac.wordpress.org/ticket/38794>.
noticeContainer = $( '<div></div>', {
- 'class': 'no-widget-areas-rendered-notice'
+ 'class': 'no-widget-areas-rendered-notice',
+ 'role': 'alert'
});
panelMetaContainer.append( noticeContainer );
diff --git a/wp-admin/js/customize-widgets.min.js b/wp-admin/js/customize-widgets.min.js
index 83179a9..8111ac8 100644
--- a/wp-admin/js/customize-widgets.min.js
+++ b/wp-admin/js/customize-widgets.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-!function(u,h){var p,f;function c(e){var t={number:null,id_base:null},i=e.match(/^(.+)-(\d+)$/);return i?(t.id_base=i[1],t.number=parseInt(i[2],10)):t.id_base=e,t}u&&u.customize&&((p=u.customize).Widgets=p.Widgets||{},p.Widgets.savedWidgetIds={},p.Widgets.data=_wpCustomizeWidgetsSettings||{},f=p.Widgets.data.l10n,p.Widgets.WidgetModel=Backbone.Model.extend({id:null,temp_id:null,classname:null,control_tpl:null,description:null,is_disabled:null,is_multi:null,multi_number:null,name:null,id_base:null,transport:null,params:[],width:null,height:null,search_matched:!0}),p.Widgets.WidgetCollection=Backbone.Collection.extend({model:p.Widgets.WidgetModel,doSearch:function(e){this.terms!==e&&(this.terms=e,0<this.terms.length&&this.search(this.terms),""===this.terms)&&this.each(function(e){e.set("search_matched",!0)})},search:function(e){var t,i;e=(e=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")).replace(/ /g,")(?=.*"),t=new RegExp("^(?=.*"+e+").+","i"),this.each(function(e){i=[e.get("name"),e.get("description")].join(" "),e.set("search_matched",t.test(i))})}}),p.Widgets.availableWidgets=new p.Widgets.WidgetCollection(p.Widgets.data.availableWidgets),p.Widgets.SidebarModel=Backbone.Model.extend({after_title:null,after_widget:null,before_title:null,before_widget:null,class:null,description:null,id:null,name:null,is_rendered:!1}),p.Widgets.SidebarCollection=Backbone.Collection.extend({model:p.Widgets.SidebarModel}),p.Widgets.registeredSidebars=new p.Widgets.SidebarCollection(p.Widgets.data.registeredSidebars),p.Widgets.AvailableWidgetsPanelView=u.Backbone.View.extend({el:"#available-widgets",events:{"input #widgets-search":"search","focus .widget-tpl":"focus","click .widget-tpl":"_submit","keypress .widget-tpl":"_submit",keydown:"keyboardAccessible"},selected:null,currentSidebarControl:null,$search:null,$clearResults:null,searchMatchesCount:null,initialize:function(){var t=this;this.$search=h("#widgets-search"),this.$clearResults=this.$el.find(".clear-results"),_.bindAll(this,"close"),this.listenTo(this.collection,"change",this.updateList),this.updateList(),this.searchMatchesCount=this.collection.length,h("#customize-controls, #available-widgets .customize-section-title").on("click keydown",function(e){e=h(e.target).is(".add-new-widget, .add-new-widget *");h("body").hasClass("adding-widget")&&!e&&t.close()}),this.$clearResults.on("click",function(){t.$search.val("").trigger("focus").trigger("input")}),p.previewer.bind("url",this.close)},search:_.debounce(function(e){var t;this.collection.doSearch(e.target.value),this.updateSearchMatchesCount(),this.announceSearchMatches(),this.selected&&!this.selected.is(":visible")&&(this.selected.removeClass("selected"),this.selected=null),this.selected&&!e.target.value&&(this.selected.removeClass("selected"),this.selected=null),!this.selected&&e.target.value&&(t=this.$el.find("> .widget-tpl:visible:first")).length&&this.select(t),""!==e.target.value?this.$clearResults.addClass("is-visible"):""===e.target.value&&this.$clearResults.removeClass("is-visible"),this.searchMatchesCount?this.$el.removeClass("no-widgets-found"):this.$el.addClass("no-widgets-found")},500),updateSearchMatchesCount:function(){this.searchMatchesCount=this.collection.where({search_matched:!0}).length},announceSearchMatches:function(){var e=f.widgetsFound.replace("%d",this.searchMatchesCount);this.searchMatchesCount||(e=f.noWidgetsFound),u.a11y.speak(e)},updateList:function(){this.collection.each(function(e){var t=h("#widget-tpl-"+e.id);t.toggle(e.get("search_matched")&&!e.get("is_disabled")),e.get("is_disabled")&&t.is(this.selected)&&(this.selected=null)})},select:function(e){this.selected=h(e),this.selected.siblings(".widget-tpl").removeClass("selected"),this.selected.addClass("selected")},focus:function(e){this.select(h(e.currentTarget))},_submit:function(e){"keypress"===e.type&&13!==e.which&&32!==e.which||this.submit(h(e.currentTarget))},submit:function(e){(e=e||this.selected)&&this.currentSidebarControl&&(this.select(e),e=h(this.selected).data("widget-id"),e=this.collection.findWhere({id:e}))&&((e=this.currentSidebarControl.addWidget(e.get("id_base")))&&e.focus(),this.close())},open:function(e){this.currentSidebarControl=e,_(this.currentSidebarControl.getWidgetFormControls()).each(function(e){e.params.is_wide&&e.collapseForm()}),p.section.has("publish_settings")&&p.section("publish_settings").collapse(),h("body").addClass("adding-widget"),this.$el.find(".selected").removeClass("selected"),this.collection.doSearch(""),p.settings.browser.mobile||this.$search.trigger("focus")},close:function(e){(e=e||{}).returnFocus&&this.currentSidebarControl&&this.currentSidebarControl.container.find(".add-new-widget").focus(),this.currentSidebarControl=null,this.selected=null,h("body").removeClass("adding-widget"),this.$search.val("").trigger("input")},keyboardAccessible:function(e){var t=13===e.which,i=27===e.which,n=40===e.which,s=38===e.which,d=9===e.which,a=e.shiftKey,o=null,r=this.$el.find("> .widget-tpl:visible:first"),l=this.$el.find("> .widget-tpl:visible:last"),c=h(e.target).is(this.$search),g=h(e.target).is(".widget-tpl:visible:last");n||s?(n?c?o=r:this.selected&&0!==this.selected.nextAll(".widget-tpl:visible").length&&(o=this.selected.nextAll(".widget-tpl:visible:first")):s&&(c?o=l:this.selected&&0!==this.selected.prevAll(".widget-tpl:visible").length&&(o=this.selected.prevAll(".widget-tpl:visible:first"))),this.select(o),(o||this.$search).trigger("focus")):t&&!this.$search.val()||(t?this.submit():i&&this.close({returnFocus:!0}),this.currentSidebarControl&&d&&(a&&c||!a&&g)&&(this.currentSidebarControl.container.find(".add-new-widget").focus(),e.preventDefault()))}}),p.Widgets.formSyncHandlers={rss:function(e,t,i){var n=t.find(".widget-error:first"),i=h("<div>"+i+"</div>").find(".widget-error:first");n.length&&i.length?n.replaceWith(i):n.length?n.remove():i.length&&t.find(".widget-content:first").prepend(i)}},p.Widgets.WidgetControl=p.Control.extend({defaultExpandedArguments:{duration:"fast",completeCallback:h.noop},initialize:function(e,t){var i=this;i.widgetControlEmbedded=!1,i.widgetContentEmbedded=!1,i.expanded=new p.Value(!1),i.expandedArgumentsQueue=[],i.expanded.bind(function(e){var t=i.expandedArgumentsQueue.shift(),t=h.extend({},i.defaultExpandedArguments,t);i.onChangeExpanded(e,t)}),i.altNotice=!0,p.Control.prototype.initialize.call(i,e,t)},ready:function(){var n=this;n.section()?p.section(n.section(),function(t){function i(e){e&&(n.embedWidgetControl(),t.expanded.unbind(i))}t.expanded()?i(!0):t.expanded.bind(i)}):n.embedWidgetControl()},embedWidgetControl:function(){var e,t=this;t.widgetControlEmbedded||(t.widgetControlEmbedded=!0,e=h(t.params.widget_control),t.container.append(e),t._setupModel(),t._setupWideWidget(),t._setupControlToggle(),t._setupWidgetTitle(),t._setupReorderUI(),t._setupHighlightEffects(),t._setupUpdateUI(),t._setupRemoveUI())},embedWidgetContent:function(){var e,t=this;t.embedWidgetControl(),t.widgetContentEmbedded||(t.widgetContentEmbedded=!0,t.notifications.container=t.getNotificationsContainerElement(),t.notifications.render(),e=h(t.params.widget_content),t.container.find(".widget-content:first").append(e),h(document).trigger("widget-added",[t.container.find(".widget:first")]))},_setupModel:function(){var i=this,e=function(){p.Widgets.savedWidgetIds[i.params.widget_id]=!0};p.bind("ready",e),p.bind("saved",e),this._updateCount=0,this.isWidgetUpdating=!1,this.liveUpdateMode=!0,this.setting.bind(function(e,t){_(t).isEqual(e)||i.isWidgetUpdating||i.updateWidget({instance:e})})},_setupWideWidget:function(){var n,s,e,t,i,d=this;!this.params.is_wide||h(window).width()<=640||(n=this.container.find(".widget-inside"),s=n.find("> .form"),e=h(".wp-full-overlay-sidebar-content:first"),this.container.addClass("wide-widget-control"),this.container.find(".form:first").css({"max-width":this.params.width,"min-height":this.params.height}),i=function(){var e=d.container.offset().top,t=h(window).height(),i=s.outerHeight();n.css("max-height",t),e=Math.max(0,Math.min(Math.max(e,0),t-i)),n.css("top",e)},t=h("#customize-theme-controls"),this.container.on("expand",function(){i(),e.on("scroll",i),h(window).on("resize",i),t.on("expanded collapsed",i)}),this.container.on("collapsed",function(){e.off("scroll",i),h(window).off("resize",i),t.off("expanded collapsed",i)}),p.each(function(e){0===e.id.indexOf("sidebars_widgets[")&&e.bind(function(){d.container.hasClass("expanded")&&i()})}))},_setupControlToggle:function(){var t=this;this.container.find(".widget-top").on("click",function(e){e.preventDefault(),t.getSidebarWidgetsControl().isReordering||t.expanded(!t.expanded())}),this.container.find(".widget-control-close").on("click",function(){t.collapse(),t.container.find(".widget-top .widget-action:first").focus()})},_setupWidgetTitle:function(){var i=this,e=function(){var e=i.setting().title,t=i.container.find(".in-widget-title");e?t.text(": "+e):t.text("")};this.setting.bind(e),e()},_setupReorderUI:function(){var t,e,d=this,s=function(e){e.siblings(".selected").removeClass("selected"),e.addClass("selected");e=e.data("id")===d.params.sidebar_id;d.container.find(".move-widget-btn").prop("disabled",e)};this.container.find(".widget-title-action").after(h(p.Widgets.data.tpl.widgetReorderNav)),e=_.template(p.Widgets.data.tpl.moveWidgetArea),t=h(e({sidebars:_(p.Widgets.registeredSidebars.toArray()).pluck("attributes")})),this.container.find(".widget-top").after(t),(e=function(){var e=t.find("li"),i=0,n=e.filter(function(){return h(this).data("id")===d.params.sidebar_id});e.each(function(){var e=h(this),t=e.data("id"),t=p.Widgets.registeredSidebars.get(t).get("is_rendered");e.toggle(t),t&&(i+=1),e.hasClass("selected")&&!t&&s(n)}),1<i?d.container.find(".move-widget").show():d.container.find(".move-widget").hide()})(),p.Widgets.registeredSidebars.on("change:is_rendered",e),this.container.find(".widget-reorder-nav").find(".move-widget, .move-widget-down, .move-widget-up").each(function(){h(this).prepend(d.container.find(".widget-title").text()+": ")}).on("click keypress",function(e){var t,i;"keypress"===e.type&&13!==e.which&&32!==e.which||(h(this).trigger("focus"),h(this).is(".move-widget")?d.toggleWidgetMoveArea():(e=h(this).is(".move-widget-down"),t=h(this).is(".move-widget-up"),i=d.getWidgetSidebarPosition(),t&&0===i||e&&i===d.getSidebarWidgetsControl().setting().length-1||(t?(d.moveUp(),u.a11y.speak(f.widgetMovedUp)):(d.moveDown(),u.a11y.speak(f.widgetMovedDown)),h(this).trigger("focus"))))}),this.container.find(".widget-area-select").on("click keypress","li",function(e){"keypress"===e.type&&13!==e.which&&32!==e.which||(e.preventDefault(),s(h(this)))}),this.container.find(".move-widget-btn").click(function(){d.getSidebarWidgetsControl().toggleReordering(!1);var e=d.params.sidebar_id,t=d.container.find(".widget-area-select li.selected").data("id"),e=p("sidebars_widgets["+e+"]"),t=p("sidebars_widgets["+t+"]"),i=Array.prototype.slice.call(e()),n=Array.prototype.slice.call(t()),s=d.getWidgetSidebarPosition();i.splice(s,1),n.push(d.params.widget_id),e(i),t(n),d.focus()})},_setupHighlightEffects:function(){var e=this;this.container.on("mouseenter click",function(){e.setting.previewer.send("highlight-widget",e.params.widget_id)}),this.setting.bind(function(){e.setting.previewer.send("highlight-widget",e.params.widget_id)})},_setupUpdateUI:function(){var t,i,n=this,s=this.container.find(".widget:first"),e=s.find(".widget-content:first"),d=this.container.find(".widget-control-save");d.val(f.saveBtnLabel),d.attr("title",f.saveBtnTooltip),d.removeClass("button-primary"),d.on("click",function(e){e.preventDefault(),n.updateWidget({disable_form:!0})}),t=_.debounce(function(){n.updateWidget()},250),e.on("keydown","input",function(e){13===e.which&&(e.preventDefault(),n.updateWidget({ignoreActiveElement:!0}))}),e.on("change input propertychange",":input",function(e){n.liveUpdateMode&&("change"===e.type||this.checkValidity&&this.checkValidity())&&t()}),this.setting.previewer.channel.bind("synced",function(){n.container.removeClass("previewer-loading")}),p.previewer.bind("widget-updated",function(e){e===n.params.widget_id&&n.container.removeClass("previewer-loading")}),(i=p.Widgets.formSyncHandlers[this.params.widget_id_base])&&h(document).on("widget-synced",function(e,t){s.is(t)&&i.apply(document,arguments)})},onChangeActive:function(e,t){this.container.toggleClass("widget-rendered",e),t.completeCallback&&t.completeCallback()},_setupRemoveUI:function(){var e,s=this,t=this.container.find(".widget-control-remove");t.on("click",function(){var n=s.container.next().is(".customize-control-widget_form")?s.container.next().find(".widget-action:first"):s.container.prev().is(".customize-control-widget_form")?s.container.prev().find(".widget-action:first"):s.container.next(".customize-control-sidebar_widgets").find(".add-new-widget:first");s.container.slideUp(function(){var e,t,i=p.Widgets.getSidebarWidgetControlContainingWidget(s.params.widget_id);i&&(e=i.setting().slice(),-1!==(t=_.indexOf(e,s.params.widget_id)))&&(e.splice(t,1),i.setting(e),n.focus())})}),e=function(){t.text(f.removeBtnLabel),t.attr("title",f.removeBtnTooltip)},this.params.is_new?p.bind("saved",e):e()},_getInputs:function(e){return h(e).find(":input[name]")},_getInputsSignature:function(e){return _(e).map(function(e){e=h(e),e=e.is(":checkbox, :radio")?[e.attr("id"),e.attr("name"),e.prop("value")]:[e.attr("id"),e.attr("name")];return e.join(",")}).join(";")},_getInputState:function(e){return(e=h(e)).is(":radio, :checkbox")?e.prop("checked"):e.is("select[multiple]")?e.find("option:selected").map(function(){return h(this).val()}).get():e.val()},_setInputState:function(e,t){(e=h(e)).is(":radio, :checkbox")?e.prop("checked",t):e.is("select[multiple]")?(t=Array.isArray(t)?_.map(t,function(e){return String(e)}):[],e.find("option").each(function(){h(this).prop("selected",-1!==_.indexOf(t,String(this.value)))})):e.val(t)},getSidebarWidgetsControl:function(){var e="sidebars_widgets["+this.params.sidebar_id+"]",e=p.control(e);if(e)return e},updateWidget:function(s){var d,a,o,r,e,l,t,i,c,g=this;g.embedWidgetContent(),i=(s=h.extend({instance:null,complete:null,ignoreActiveElement:!1},s)).instance,d=s.complete,this._updateCount+=1,r=this._updateCount,a=this.container.find(".widget:first"),(o=a.find(".widget-content:first")).find(".widget-error").remove(),this.container.addClass("widget-form-loading"),this.container.addClass("previewer-loading"),(t=p.state("processing"))(t()+1),this.liveUpdateMode||this.container.addClass("widget-form-disabled"),(e={action:"update-widget",wp_customize:"on"}).nonce=p.settings.nonce["update-widget"],e.customize_theme=p.settings.theme.stylesheet,e.customized=u.customize.previewer.query().customized,e=h.param(e),(l=this._getInputs(o)).each(function(){h(this).data("state"+r,g._getInputState(this))}),e=(e+=i?"&"+h.param({sanitized_widget_setting:JSON.stringify(i)}):"&"+l.serialize())+"&"+o.find("~ :input").serialize(),this._previousUpdateRequest&&this._previousUpdateRequest.abort(),i=h.post(u.ajax.settings.url,e),(this._previousUpdateRequest=i).done(function(e){var n,t,i=!1;"0"===e?(p.previewer.preview.iframe.hide(),p.previewer.login().done(function(){g.updateWidget(s),p.previewer.preview.iframe.show()})):"-1"===e?p.previewer.cheatin():e.success?(t=h("<div>"+e.data.form+"</div>"),n=g._getInputs(t),(t=g._getInputsSignature(l)===g._getInputsSignature(n))&&!g.liveUpdateMode&&(g.liveUpdateMode=!0,g.container.removeClass("widget-form-disabled"),g.container.find('input[name="savewidget"]').hide()),t&&g.liveUpdateMode?(l.each(function(e){var t=h(this),e=h(n[e]),i=t.data("state"+r),e=g._getInputState(e);t.data("sanitized",e),_.isEqual(i,e)||!s.ignoreActiveElement&&t.is(document.activeElement)||g._setInputState(t,e)}),h(document).trigger("widget-synced",[a,e.data.form])):g.liveUpdateMode?(g.liveUpdateMode=!1,g.container.find('input[name="savewidget"]').show(),i=!0):(o.html(e.data.form),g.container.removeClass("widget-form-disabled"),h(document).trigger("widget-updated",[a])),(c=!i&&!_(g.setting()).isEqual(e.data.instance))?(g.isWidgetUpdating=!0,g.setting(e.data.instance),g.isWidgetUpdating=!1):g.container.removeClass("previewer-loading"),d&&d.call(g,null,{noChange:!c,ajaxFinished:!0})):(t=f.error,e.data&&e.data.message&&(t=e.data.message),d?d.call(g,t):o.prepend('<p class="widget-error"><strong>'+t+"</strong></p>"))}),i.fail(function(e,t){d&&d.call(g,t)}),i.always(function(){g.container.removeClass("widget-form-loading"),l.each(function(){h(this).removeData("state"+r)}),t(t()-1)})},expandControlSection:function(){p.Control.prototype.expand.call(this)},_toggleExpanded:p.Section.prototype._toggleExpanded,expand:p.Section.prototype.expand,expandForm:function(){this.expand()},collapse:p.Section.prototype.collapse,collapseForm:function(){this.collapse()},toggleForm:function(e){void 0===e&&(e=!this.expanded()),this.expanded(e)},onChangeExpanded:function(e,t){var i,n,s,d,a,o=this;o.embedWidgetControl(),e&&o.embedWidgetContent(),t.unchanged?e&&p.Control.prototype.expand.call(o,{completeCallback:t.completeCallback}):(i=this.container.find("div.widget:first"),n=i.find(".widget-inside:first"),e=function(){p.control.each(function(e){o.params.type===e.params.type&&o!==e&&e.collapse()}),s=function(){o.container.removeClass("expanding"),o.container.addClass("expanded"),i.addClass("open"),a.attr("aria-expanded","true"),o.container.trigger("expanded")},t.completeCallback&&(d=s,s=function(){d(),t.completeCallback()}),o.params.is_wide?n.fadeIn(t.duration,s):n.slideDown(t.duration,s),o.container.trigger("expand"),o.container.addClass("expanding")},"false"===(a=this.container.find(".widget-top button.widget-action")).attr("aria-expanded")?p.section.has(o.section())?p.section(o.section()).expand({completeCallback:e}):e():(s=function(){o.container.removeClass("collapsing"),o.container.removeClass("expanded"),i.removeClass("open"),a.attr("aria-expanded","false"),o.container.trigger("collapsed")},t.completeCallback&&(d=s,s=function(){d(),t.completeCallback()}),o.container.trigger("collapse"),o.container.addClass("collapsing"),o.params.is_wide?n.fadeOut(t.duration,s):n.slideUp(t.duration,function(){i.css({width:"",margin:""}),s()})))},getWidgetSidebarPosition:function(){var e=this.getSidebarWidgetsControl().setting(),e=_.indexOf(e,this.params.widget_id);if(-1!==e)return e},moveUp:function(){this._moveWidgetByOne(-1)},moveDown:function(){this._moveWidgetByOne(1)},_moveWidgetByOne:function(e){var t=this.getWidgetSidebarPosition(),i=this.getSidebarWidgetsControl().setting,n=Array.prototype.slice.call(i()),s=n[t+e];n[t+e]=this.params.widget_id,n[t]=s,i(n)},toggleWidgetMoveArea:function(e){var t=this,i=this.container.find(".move-widget-area");(e=void 0===e?!i.hasClass("active"):e)&&(i.find(".selected").removeClass("selected"),i.find("li").filter(function(){return h(this).data("id")===t.params.sidebar_id}).addClass("selected"),this.container.find(".move-widget-btn").prop("disabled",!0)),i.toggleClass("active",e)},highlightSectionAndControl:function(){var e=this.container.is(":hidden")?this.container.closest(".control-section"):this.container;h(".highlighted").removeClass("highlighted"),e.addClass("highlighted"),setTimeout(function(){e.removeClass("highlighted")},500)}}),p.Widgets.WidgetsPanel=p.Panel.extend({ready:function(){var d=this;p.Panel.prototype.ready.call(d),d.deferred.embedded.done(function(){var t,i,n,e=d.container.find(".panel-meta"),s=h("<div></div>",{class:"no-widget-areas-rendered-notice"});e.append(s),i=function(){return _.filter(d.sections(),function(e){return"sidebar"===e.params.type&&e.active()}).length},n=function(){var e=i();return 0===e||e!==p.Widgets.data.registeredSidebars.length},(t=function(){var e,t=i();s.empty(),t!==(e=p.Widgets.data.registeredSidebars.length)&&((e=0!==t?f.someAreasShown[e-t]:f.noAreasShown)&&s.append(h("<p></p>",{text:e})),s.append(h("<p></p>",{text:f.navigatePreview})))})(),s.toggle(n()),p.previewer.deferred.active.done(function(){s.toggle(n())}),p.bind("pane-contents-reflowed",function(){var e="resolved"===p.previewer.deferred.active.state()?"fast":0;t(),n()?s.slideDown(e):s.slideUp(e)})})},isContextuallyActive:function(){return this.active()}}),p.Widgets.SidebarSection=p.Section.extend({ready:function(){var t;p.Section.prototype.ready.call(this),t=p.Widgets.registeredSidebars.get(this.params.sidebarId),this.active.bind(function(e){t.set("is_rendered",e)}),t.set("is_rendered",this.active())}}),p.Widgets.SidebarControl=p.Control.extend({ready:function(){this.$controlSection=this.container.closest(".control-section"),this.$sectionContent=this.container.closest(".accordion-section-content"),this._setupModel(),this._setupSortable(),this._setupAddition(),this._applyCardinalOrderClassNames()},_setupModel:function(){var s=this;this.setting.bind(function(i,e){var t,n,e=_(e).difference(i);i=_(i).filter(function(e){e=c(e);return!!p.Widgets.availableWidgets.findWhere({id_base:e.id_base})}),(t=_(i).map(function(e){return p.Widgets.getWidgetFormControlForWidget(e)||s.addWidget(e)})).sort(function(e,t){return _.indexOf(i,e.params.widget_id)-_.indexOf(i,t.params.widget_id)}),n=0,_(t).each(function(e){e.priority(n),e.section(s.section()),n+=1}),s.priority(n),s._applyCardinalOrderClassNames(),_(t).each(function(e){e.params.sidebar_id=s.params.sidebar_id}),_(e).each(function(n){setTimeout(function(){var e,t,i=!1;p.each(function(e){e.id!==s.setting.id&&0===e.id.indexOf("sidebars_widgets[")&&"sidebars_widgets[wp_inactive_widgets]"!==e.id&&(e=e(),-1!==_.indexOf(e,n))&&(i=!0)}),i||(t=(e=p.Widgets.getWidgetFormControlForWidget(n))&&h.contains(document,e.container[0])&&!h.contains(s.$sectionContent[0],e.container[0]),e&&!t&&(p.control.remove(e.id),e.container.remove()),p.Widgets.savedWidgetIds[n]&&((t=p.value("sidebars_widgets[wp_inactive_widgets]")().slice()).push(n),p.value("sidebars_widgets[wp_inactive_widgets]")(_(t).unique())),e=c(n).id_base,(t=p.Widgets.availableWidgets.findWhere({id_base:e}))&&!t.get("is_multi")&&t.set("is_disabled",!1))})})})},_setupSortable:function(){var t=this;this.isReordering=!1,this.$sectionContent.sortable({items:"> .customize-control-widget_form",handle:".widget-top",axis:"y",tolerance:"pointer",connectWith:".accordion-section-content:has(.customize-control-sidebar_widgets)",update:function(){var e=t.$sectionContent.sortable("toArray"),e=h.map(e,function(e){return h("#"+e).find(":input[name=widget-id]").val()});t.setting(e)}}),this.$controlSection.find(".accordion-section-title").droppable({accept:".customize-control-widget_form",over:function(){p.section(t.section.get()).expand({allowMultiple:!0,completeCallback:function(){p.section.each(function(e){e.container.find(".customize-control-sidebar_widgets").length&&e.container.find(".accordion-section-content:first").sortable("refreshPositions")})}})}}),this.container.find(".reorder-toggle").on("click",function(){t.toggleReordering(!t.isReordering)})},_setupAddition:function(){var t=this;this.container.find(".add-new-widget").on("click",function(){var e=h(this);t.$sectionContent.hasClass("reordering")||(h("body").hasClass("adding-widget")?(e.attr("aria-expanded","false"),p.Widgets.availableWidgetsPanel.close()):(e.attr("aria-expanded","true"),p.Widgets.availableWidgetsPanel.open(t)))})},_applyCardinalOrderClassNames:function(){var t=[];_.each(this.setting(),function(e){e=p.Widgets.getWidgetFormControlForWidget(e);e&&t.push(e)}),0===t.length||1===p.Widgets.registeredSidebars.length&&t.length<=1?this.container.find(".reorder-toggle").hide():(this.container.find(".reorder-toggle").show(),h(t).each(function(){h(this.container).removeClass("first-widget").removeClass("last-widget").find(".move-widget-down, .move-widget-up").prop("tabIndex",0)}),_.first(t).container.addClass("first-widget").find(".move-widget-up").prop("tabIndex",-1),_.last(t).container.addClass("last-widget").find(".move-widget-down").prop("tabIndex",-1))},toggleReordering:function(e){var t=this.$sectionContent.find(".add-new-widget"),i=this.container.find(".reorder-toggle"),n=this.$sectionContent.find(".widget-title");(e=Boolean(e))!==this.$sectionContent.hasClass("reordering")&&(this.isReordering=e,this.$sectionContent.toggleClass("reordering",e),e?(_(this.getWidgetFormControls()).each(function(e){e.collapse()}),t.attr({tabindex:"-1","aria-hidden":"true"}),i.attr("aria-label",f.reorderLabelOff),u.a11y.speak(f.reorderModeOn),n.attr("aria-hidden","true")):(t.removeAttr("tabindex aria-hidden"),i.attr("aria-label",f.reorderLabelOn),u.a11y.speak(f.reorderModeOff),n.attr("aria-hidden","false")))},getWidgetFormControls:function(){var t=[];return _(this.setting()).each(function(e){e=function(e){var t,e=c(e);t="widget_"+e.id_base,e.number&&(t+="["+e.number+"]");return t}(e),e=p.control(e);e&&t.push(e)}),t},addWidget:function(n){var e,t,i,s,d,a=this,o="widget_form",r=c(n),l=r.number,r=r.id_base,r=p.Widgets.availableWidgets.findWhere({id_base:r});return!(!r||l&&!r.get("is_multi"))&&(r.get("is_multi")&&!l&&(r.set("multi_number",r.get("multi_number")+1),l=r.get("multi_number")),e=h("#widget-tpl-"+r.get("id")).html().trim(),r.get("is_multi")?e=e.replace(/<[^<>]+>/g,function(e){return e.replace(/__i__|%i%/g,l)}):r.set("is_disabled",!0),e=h(e),(e=h("<li/>").addClass("customize-control").addClass("customize-control-"+o).append(e)).find("> .widget-icon").remove(),r.get("is_multi")&&(e.find('input[name="widget_number"]').val(l),e.find('input[name="multi_number"]').val(l)),n=e.find('[name="widget-id"]').val(),e.hide(),t="widget_"+r.get("id_base"),r.get("is_multi")&&(t+="["+l+"]"),e.attr("id","customize-control-"+t.replace(/\]/g,"").replace(/\[/g,"-")),(i=p.has(t))||(d={transport:p.Widgets.data.selectiveRefreshableWidgets[r.get("id_base")]?"postMessage":"refresh",previewer:this.setting.previewer},p.create(t,t,"",d).set({})),d=p.controlConstructor[o],s=new d(t,{settings:{default:t},content:e,sidebar_id:a.params.sidebar_id,widget_id:n,widget_id_base:r.get("id_base"),type:o,is_new:!i,width:r.get("width"),height:r.get("height"),is_wide:r.get("is_wide")}),p.control.add(s),p.each(function(e){var t,i;e.id!==a.setting.id&&0===e.id.indexOf("sidebars_widgets[")&&(t=e().slice(),-1!==(i=_.indexOf(t,n)))&&(t.splice(i),e(t))}),d=this.setting().slice(),-1===_.indexOf(d,n)&&(d.push(n),this.setting(d)),e.slideDown(function(){i&&s.updateWidget({instance:s.setting()})}),s)}}),h.extend(p.panelConstructor,{widgets:p.Widgets.WidgetsPanel}),h.extend(p.sectionConstructor,{sidebar:p.Widgets.SidebarSection}),h.extend(p.controlConstructor,{widget_form:p.Widgets.WidgetControl,sidebar_widgets:p.Widgets.SidebarControl}),p.bind("ready",function(){p.Widgets.availableWidgetsPanel=new p.Widgets.AvailableWidgetsPanelView({collection:p.Widgets.availableWidgets}),p.previewer.bind("highlight-widget-control",p.Widgets.highlightWidgetFormControl),p.previewer.bind("focus-widget-control",p.Widgets.focusWidgetFormControl)}),p.Widgets.highlightWidgetFormControl=function(e){e=p.Widgets.getWidgetFormControlForWidget(e);e&&e.highlightSectionAndControl()},p.Widgets.focusWidgetFormControl=function(e){e=p.Widgets.getWidgetFormControlForWidget(e);e&&e.focus()},p.Widgets.getSidebarWidgetControlContainingWidget=function(t){var i=null;return p.control.each(function(e){"sidebar_widgets"===e.params.type&&-1!==_.indexOf(e.setting(),t)&&(i=e)}),i},p.Widgets.getWidgetFormControlForWidget=function(t){var i=null;return p.control.each(function(e){"widget_form"===e.params.type&&e.params.widget_id===t&&(i=e)}),i},h(document).on("widget-added",function(e,t){var s,d,i,n=c(t.find("> .widget-inside > .form > .widget-id").val());"nav_menu"===n.id_base&&(s=p.control("widget_nav_menu["+String(n.number)+"]"))&&(d=t.find('select[name*="nav_menu"]'),i=t.find(".edit-selected-nav-menu > button"),0!==d.length)&&0!==i.length&&(d.on("change",function(){p.section.has("nav_menu["+d.val()+"]")?i.parent().show():i.parent().hide()}),i.on("click",function(){var i,n,e=p.section("nav_menu["+d.val()+"]");e&&(n=s,(i=e).focus(),i.expanded.bind(function e(t){t||(i.expanded.unbind(e),n.focus())}))}))}))}(window.wp,jQuery); \ No newline at end of file
+!function(u,h){var p,f;function c(e){var t={number:null,id_base:null},i=e.match(/^(.+)-(\d+)$/);return i?(t.id_base=i[1],t.number=parseInt(i[2],10)):t.id_base=e,t}u&&u.customize&&((p=u.customize).Widgets=p.Widgets||{},p.Widgets.savedWidgetIds={},p.Widgets.data=_wpCustomizeWidgetsSettings||{},f=p.Widgets.data.l10n,p.Widgets.WidgetModel=Backbone.Model.extend({id:null,temp_id:null,classname:null,control_tpl:null,description:null,is_disabled:null,is_multi:null,multi_number:null,name:null,id_base:null,transport:null,params:[],width:null,height:null,search_matched:!0}),p.Widgets.WidgetCollection=Backbone.Collection.extend({model:p.Widgets.WidgetModel,doSearch:function(e){this.terms!==e&&(this.terms=e,0<this.terms.length&&this.search(this.terms),""===this.terms)&&this.each(function(e){e.set("search_matched",!0)})},search:function(e){var t,i;e=(e=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")).replace(/ /g,")(?=.*"),t=new RegExp("^(?=.*"+e+").+","i"),this.each(function(e){i=[e.get("name"),e.get("description")].join(" "),e.set("search_matched",t.test(i))})}}),p.Widgets.availableWidgets=new p.Widgets.WidgetCollection(p.Widgets.data.availableWidgets),p.Widgets.SidebarModel=Backbone.Model.extend({after_title:null,after_widget:null,before_title:null,before_widget:null,class:null,description:null,id:null,name:null,is_rendered:!1}),p.Widgets.SidebarCollection=Backbone.Collection.extend({model:p.Widgets.SidebarModel}),p.Widgets.registeredSidebars=new p.Widgets.SidebarCollection(p.Widgets.data.registeredSidebars),p.Widgets.AvailableWidgetsPanelView=u.Backbone.View.extend({el:"#available-widgets",events:{"input #widgets-search":"search","focus .widget-tpl":"focus","click .widget-tpl":"_submit","keypress .widget-tpl":"_submit",keydown:"keyboardAccessible"},selected:null,currentSidebarControl:null,$search:null,$clearResults:null,searchMatchesCount:null,initialize:function(){var t=this;this.$search=h("#widgets-search"),this.$clearResults=this.$el.find(".clear-results"),_.bindAll(this,"close"),this.listenTo(this.collection,"change",this.updateList),this.updateList(),this.searchMatchesCount=this.collection.length,h("#customize-controls, #available-widgets .customize-section-title").on("click keydown",function(e){e=h(e.target).is(".add-new-widget, .add-new-widget *");h("body").hasClass("adding-widget")&&!e&&t.close()}),this.$clearResults.on("click",function(){t.$search.val("").trigger("focus").trigger("input")}),p.previewer.bind("url",this.close)},search:_.debounce(function(e){var t;this.collection.doSearch(e.target.value),this.updateSearchMatchesCount(),this.announceSearchMatches(),this.selected&&!this.selected.is(":visible")&&(this.selected.removeClass("selected"),this.selected=null),this.selected&&!e.target.value&&(this.selected.removeClass("selected"),this.selected=null),!this.selected&&e.target.value&&(t=this.$el.find("> .widget-tpl:visible:first")).length&&this.select(t),""!==e.target.value?this.$clearResults.addClass("is-visible"):""===e.target.value&&this.$clearResults.removeClass("is-visible"),this.searchMatchesCount?this.$el.removeClass("no-widgets-found"):this.$el.addClass("no-widgets-found")},500),updateSearchMatchesCount:function(){this.searchMatchesCount=this.collection.where({search_matched:!0}).length},announceSearchMatches:function(){var e=f.widgetsFound.replace("%d",this.searchMatchesCount);this.searchMatchesCount||(e=f.noWidgetsFound),u.a11y.speak(e)},updateList:function(){this.collection.each(function(e){var t=h("#widget-tpl-"+e.id);t.toggle(e.get("search_matched")&&!e.get("is_disabled")),e.get("is_disabled")&&t.is(this.selected)&&(this.selected=null)})},select:function(e){this.selected=h(e),this.selected.siblings(".widget-tpl").removeClass("selected"),this.selected.addClass("selected")},focus:function(e){this.select(h(e.currentTarget))},_submit:function(e){"keypress"===e.type&&13!==e.which&&32!==e.which||this.submit(h(e.currentTarget))},submit:function(e){(e=e||this.selected)&&this.currentSidebarControl&&(this.select(e),e=h(this.selected).data("widget-id"),e=this.collection.findWhere({id:e}))&&((e=this.currentSidebarControl.addWidget(e.get("id_base")))&&e.focus(),this.close())},open:function(e){this.currentSidebarControl=e,_(this.currentSidebarControl.getWidgetFormControls()).each(function(e){e.params.is_wide&&e.collapseForm()}),p.section.has("publish_settings")&&p.section("publish_settings").collapse(),h("body").addClass("adding-widget"),this.$el.find(".selected").removeClass("selected"),this.collection.doSearch(""),p.settings.browser.mobile||this.$search.trigger("focus")},close:function(e){(e=e||{}).returnFocus&&this.currentSidebarControl&&this.currentSidebarControl.container.find(".add-new-widget").focus(),this.currentSidebarControl=null,this.selected=null,h("body").removeClass("adding-widget"),this.$search.val("").trigger("input")},keyboardAccessible:function(e){var t=13===e.which,i=27===e.which,n=40===e.which,s=38===e.which,d=9===e.which,a=e.shiftKey,o=null,r=this.$el.find("> .widget-tpl:visible:first"),l=this.$el.find("> .widget-tpl:visible:last"),c=h(e.target).is(this.$search),g=h(e.target).is(".widget-tpl:visible:last");n||s?(n?c?o=r:this.selected&&0!==this.selected.nextAll(".widget-tpl:visible").length&&(o=this.selected.nextAll(".widget-tpl:visible:first")):s&&(c?o=l:this.selected&&0!==this.selected.prevAll(".widget-tpl:visible").length&&(o=this.selected.prevAll(".widget-tpl:visible:first"))),this.select(o),(o||this.$search).trigger("focus")):t&&!this.$search.val()||(t?this.submit():i&&this.close({returnFocus:!0}),this.currentSidebarControl&&d&&(a&&c||!a&&g)&&(this.currentSidebarControl.container.find(".add-new-widget").focus(),e.preventDefault()))}}),p.Widgets.formSyncHandlers={rss:function(e,t,i){var n=t.find(".widget-error:first"),i=h("<div>"+i+"</div>").find(".widget-error:first");n.length&&i.length?n.replaceWith(i):n.length?n.remove():i.length&&t.find(".widget-content:first").prepend(i)}},p.Widgets.WidgetControl=p.Control.extend({defaultExpandedArguments:{duration:"fast",completeCallback:h.noop},initialize:function(e,t){var i=this;i.widgetControlEmbedded=!1,i.widgetContentEmbedded=!1,i.expanded=new p.Value(!1),i.expandedArgumentsQueue=[],i.expanded.bind(function(e){var t=i.expandedArgumentsQueue.shift(),t=h.extend({},i.defaultExpandedArguments,t);i.onChangeExpanded(e,t)}),i.altNotice=!0,p.Control.prototype.initialize.call(i,e,t)},ready:function(){var n=this;n.section()?p.section(n.section(),function(t){function i(e){e&&(n.embedWidgetControl(),t.expanded.unbind(i))}t.expanded()?i(!0):t.expanded.bind(i)}):n.embedWidgetControl()},embedWidgetControl:function(){var e,t=this;t.widgetControlEmbedded||(t.widgetControlEmbedded=!0,e=h(t.params.widget_control),t.container.append(e),t._setupModel(),t._setupWideWidget(),t._setupControlToggle(),t._setupWidgetTitle(),t._setupReorderUI(),t._setupHighlightEffects(),t._setupUpdateUI(),t._setupRemoveUI())},embedWidgetContent:function(){var e,t=this;t.embedWidgetControl(),t.widgetContentEmbedded||(t.widgetContentEmbedded=!0,t.notifications.container=t.getNotificationsContainerElement(),t.notifications.render(),e=h(t.params.widget_content),t.container.find(".widget-content:first").append(e),h(document).trigger("widget-added",[t.container.find(".widget:first")]))},_setupModel:function(){var i=this,e=function(){p.Widgets.savedWidgetIds[i.params.widget_id]=!0};p.bind("ready",e),p.bind("saved",e),this._updateCount=0,this.isWidgetUpdating=!1,this.liveUpdateMode=!0,this.setting.bind(function(e,t){_(t).isEqual(e)||i.isWidgetUpdating||i.updateWidget({instance:e})})},_setupWideWidget:function(){var n,s,e,t,i,d=this;!this.params.is_wide||h(window).width()<=640||(n=this.container.find(".widget-inside"),s=n.find("> .form"),e=h(".wp-full-overlay-sidebar-content:first"),this.container.addClass("wide-widget-control"),this.container.find(".form:first").css({"max-width":this.params.width,"min-height":this.params.height}),i=function(){var e=d.container.offset().top,t=h(window).height(),i=s.outerHeight();n.css("max-height",t),e=Math.max(0,Math.min(Math.max(e,0),t-i)),n.css("top",e)},t=h("#customize-theme-controls"),this.container.on("expand",function(){i(),e.on("scroll",i),h(window).on("resize",i),t.on("expanded collapsed",i)}),this.container.on("collapsed",function(){e.off("scroll",i),h(window).off("resize",i),t.off("expanded collapsed",i)}),p.each(function(e){0===e.id.indexOf("sidebars_widgets[")&&e.bind(function(){d.container.hasClass("expanded")&&i()})}))},_setupControlToggle:function(){var t=this;this.container.find(".widget-top").on("click",function(e){e.preventDefault(),t.getSidebarWidgetsControl().isReordering||t.expanded(!t.expanded())}),this.container.find(".widget-control-close").on("click",function(){t.collapse(),t.container.find(".widget-top .widget-action:first").focus()})},_setupWidgetTitle:function(){var i=this,e=function(){var e=i.setting().title,t=i.container.find(".in-widget-title");e?t.text(": "+e):t.text("")};this.setting.bind(e),e()},_setupReorderUI:function(){var t,e,d=this,s=function(e){e.siblings(".selected").removeClass("selected"),e.addClass("selected");e=e.data("id")===d.params.sidebar_id;d.container.find(".move-widget-btn").prop("disabled",e)};this.container.find(".widget-title-action").after(h(p.Widgets.data.tpl.widgetReorderNav)),e=_.template(p.Widgets.data.tpl.moveWidgetArea),t=h(e({sidebars:_(p.Widgets.registeredSidebars.toArray()).pluck("attributes")})),this.container.find(".widget-top").after(t),(e=function(){var e=t.find("li"),i=0,n=e.filter(function(){return h(this).data("id")===d.params.sidebar_id});e.each(function(){var e=h(this),t=e.data("id"),t=p.Widgets.registeredSidebars.get(t).get("is_rendered");e.toggle(t),t&&(i+=1),e.hasClass("selected")&&!t&&s(n)}),1<i?d.container.find(".move-widget").show():d.container.find(".move-widget").hide()})(),p.Widgets.registeredSidebars.on("change:is_rendered",e),this.container.find(".widget-reorder-nav").find(".move-widget, .move-widget-down, .move-widget-up").each(function(){h(this).prepend(d.container.find(".widget-title").text()+": ")}).on("click keypress",function(e){var t,i;"keypress"===e.type&&13!==e.which&&32!==e.which||(h(this).trigger("focus"),h(this).is(".move-widget")?d.toggleWidgetMoveArea():(e=h(this).is(".move-widget-down"),t=h(this).is(".move-widget-up"),i=d.getWidgetSidebarPosition(),t&&0===i||e&&i===d.getSidebarWidgetsControl().setting().length-1||(t?(d.moveUp(),u.a11y.speak(f.widgetMovedUp)):(d.moveDown(),u.a11y.speak(f.widgetMovedDown)),h(this).trigger("focus"))))}),this.container.find(".widget-area-select").on("click keypress","li",function(e){"keypress"===e.type&&13!==e.which&&32!==e.which||(e.preventDefault(),s(h(this)))}),this.container.find(".move-widget-btn").click(function(){d.getSidebarWidgetsControl().toggleReordering(!1);var e=d.params.sidebar_id,t=d.container.find(".widget-area-select li.selected").data("id"),e=p("sidebars_widgets["+e+"]"),t=p("sidebars_widgets["+t+"]"),i=Array.prototype.slice.call(e()),n=Array.prototype.slice.call(t()),s=d.getWidgetSidebarPosition();i.splice(s,1),n.push(d.params.widget_id),e(i),t(n),d.focus()})},_setupHighlightEffects:function(){var e=this;this.container.on("mouseenter click",function(){e.setting.previewer.send("highlight-widget",e.params.widget_id)}),this.setting.bind(function(){e.setting.previewer.send("highlight-widget",e.params.widget_id)})},_setupUpdateUI:function(){var t,i,n=this,s=this.container.find(".widget:first"),e=s.find(".widget-content:first"),d=this.container.find(".widget-control-save");d.val(f.saveBtnLabel),d.attr("title",f.saveBtnTooltip),d.removeClass("button-primary"),d.on("click",function(e){e.preventDefault(),n.updateWidget({disable_form:!0})}),t=_.debounce(function(){n.updateWidget()},250),e.on("keydown","input",function(e){13===e.which&&(e.preventDefault(),n.updateWidget({ignoreActiveElement:!0}))}),e.on("change input propertychange",":input",function(e){n.liveUpdateMode&&("change"===e.type||this.checkValidity&&this.checkValidity())&&t()}),this.setting.previewer.channel.bind("synced",function(){n.container.removeClass("previewer-loading")}),p.previewer.bind("widget-updated",function(e){e===n.params.widget_id&&n.container.removeClass("previewer-loading")}),(i=p.Widgets.formSyncHandlers[this.params.widget_id_base])&&h(document).on("widget-synced",function(e,t){s.is(t)&&i.apply(document,arguments)})},onChangeActive:function(e,t){this.container.toggleClass("widget-rendered",e),t.completeCallback&&t.completeCallback()},_setupRemoveUI:function(){var e,s=this,t=this.container.find(".widget-control-remove");t.on("click",function(){var n=s.container.next().is(".customize-control-widget_form")?s.container.next().find(".widget-action:first"):s.container.prev().is(".customize-control-widget_form")?s.container.prev().find(".widget-action:first"):s.container.next(".customize-control-sidebar_widgets").find(".add-new-widget:first");s.container.slideUp(function(){var e,t,i=p.Widgets.getSidebarWidgetControlContainingWidget(s.params.widget_id);i&&(e=i.setting().slice(),-1!==(t=_.indexOf(e,s.params.widget_id)))&&(e.splice(t,1),i.setting(e),n.focus())})}),e=function(){t.text(f.removeBtnLabel),t.attr("title",f.removeBtnTooltip)},this.params.is_new?p.bind("saved",e):e()},_getInputs:function(e){return h(e).find(":input[name]")},_getInputsSignature:function(e){return _(e).map(function(e){e=h(e),e=e.is(":checkbox, :radio")?[e.attr("id"),e.attr("name"),e.prop("value")]:[e.attr("id"),e.attr("name")];return e.join(",")}).join(";")},_getInputState:function(e){return(e=h(e)).is(":radio, :checkbox")?e.prop("checked"):e.is("select[multiple]")?e.find("option:selected").map(function(){return h(this).val()}).get():e.val()},_setInputState:function(e,t){(e=h(e)).is(":radio, :checkbox")?e.prop("checked",t):e.is("select[multiple]")?(t=Array.isArray(t)?_.map(t,function(e){return String(e)}):[],e.find("option").each(function(){h(this).prop("selected",-1!==_.indexOf(t,String(this.value)))})):e.val(t)},getSidebarWidgetsControl:function(){var e="sidebars_widgets["+this.params.sidebar_id+"]",e=p.control(e);if(e)return e},updateWidget:function(s){var d,a,o,r,e,l,t,i,c,g=this;g.embedWidgetContent(),i=(s=h.extend({instance:null,complete:null,ignoreActiveElement:!1},s)).instance,d=s.complete,this._updateCount+=1,r=this._updateCount,a=this.container.find(".widget:first"),(o=a.find(".widget-content:first")).find(".widget-error").remove(),this.container.addClass("widget-form-loading"),this.container.addClass("previewer-loading"),(t=p.state("processing"))(t()+1),this.liveUpdateMode||this.container.addClass("widget-form-disabled"),(e={action:"update-widget",wp_customize:"on"}).nonce=p.settings.nonce["update-widget"],e.customize_theme=p.settings.theme.stylesheet,e.customized=u.customize.previewer.query().customized,e=h.param(e),(l=this._getInputs(o)).each(function(){h(this).data("state"+r,g._getInputState(this))}),e=(e+=i?"&"+h.param({sanitized_widget_setting:JSON.stringify(i)}):"&"+l.serialize())+"&"+o.find("~ :input").serialize(),this._previousUpdateRequest&&this._previousUpdateRequest.abort(),i=h.post(u.ajax.settings.url,e),(this._previousUpdateRequest=i).done(function(e){var n,t,i=!1;"0"===e?(p.previewer.preview.iframe.hide(),p.previewer.login().done(function(){g.updateWidget(s),p.previewer.preview.iframe.show()})):"-1"===e?p.previewer.cheatin():e.success?(t=h("<div>"+e.data.form+"</div>"),n=g._getInputs(t),(t=g._getInputsSignature(l)===g._getInputsSignature(n))&&!g.liveUpdateMode&&(g.liveUpdateMode=!0,g.container.removeClass("widget-form-disabled"),g.container.find('input[name="savewidget"]').hide()),t&&g.liveUpdateMode?(l.each(function(e){var t=h(this),e=h(n[e]),i=t.data("state"+r),e=g._getInputState(e);t.data("sanitized",e),_.isEqual(i,e)||!s.ignoreActiveElement&&t.is(document.activeElement)||g._setInputState(t,e)}),h(document).trigger("widget-synced",[a,e.data.form])):g.liveUpdateMode?(g.liveUpdateMode=!1,g.container.find('input[name="savewidget"]').show(),i=!0):(o.html(e.data.form),g.container.removeClass("widget-form-disabled"),h(document).trigger("widget-updated",[a])),(c=!i&&!_(g.setting()).isEqual(e.data.instance))?(g.isWidgetUpdating=!0,g.setting(e.data.instance),g.isWidgetUpdating=!1):g.container.removeClass("previewer-loading"),d&&d.call(g,null,{noChange:!c,ajaxFinished:!0})):(t=f.error,e.data&&e.data.message&&(t=e.data.message),d?d.call(g,t):o.prepend('<p class="widget-error"><strong>'+t+"</strong></p>"))}),i.fail(function(e,t){d&&d.call(g,t)}),i.always(function(){g.container.removeClass("widget-form-loading"),l.each(function(){h(this).removeData("state"+r)}),t(t()-1)})},expandControlSection:function(){p.Control.prototype.expand.call(this)},_toggleExpanded:p.Section.prototype._toggleExpanded,expand:p.Section.prototype.expand,expandForm:function(){this.expand()},collapse:p.Section.prototype.collapse,collapseForm:function(){this.collapse()},toggleForm:function(e){void 0===e&&(e=!this.expanded()),this.expanded(e)},onChangeExpanded:function(e,t){var i,n,s,d,a,o=this;o.embedWidgetControl(),e&&o.embedWidgetContent(),t.unchanged?e&&p.Control.prototype.expand.call(o,{completeCallback:t.completeCallback}):(i=this.container.find("div.widget:first"),n=i.find(".widget-inside:first"),e=function(){p.control.each(function(e){o.params.type===e.params.type&&o!==e&&e.collapse()}),s=function(){o.container.removeClass("expanding"),o.container.addClass("expanded"),i.addClass("open"),a.attr("aria-expanded","true"),o.container.trigger("expanded")},t.completeCallback&&(d=s,s=function(){d(),t.completeCallback()}),o.params.is_wide?n.fadeIn(t.duration,s):n.slideDown(t.duration,s),o.container.trigger("expand"),o.container.addClass("expanding")},"false"===(a=this.container.find(".widget-top button.widget-action")).attr("aria-expanded")?p.section.has(o.section())?p.section(o.section()).expand({completeCallback:e}):e():(s=function(){o.container.removeClass("collapsing"),o.container.removeClass("expanded"),i.removeClass("open"),a.attr("aria-expanded","false"),o.container.trigger("collapsed")},t.completeCallback&&(d=s,s=function(){d(),t.completeCallback()}),o.container.trigger("collapse"),o.container.addClass("collapsing"),o.params.is_wide?n.fadeOut(t.duration,s):n.slideUp(t.duration,function(){i.css({width:"",margin:""}),s()})))},getWidgetSidebarPosition:function(){var e=this.getSidebarWidgetsControl().setting(),e=_.indexOf(e,this.params.widget_id);if(-1!==e)return e},moveUp:function(){this._moveWidgetByOne(-1)},moveDown:function(){this._moveWidgetByOne(1)},_moveWidgetByOne:function(e){var t=this.getWidgetSidebarPosition(),i=this.getSidebarWidgetsControl().setting,n=Array.prototype.slice.call(i()),s=n[t+e];n[t+e]=this.params.widget_id,n[t]=s,i(n)},toggleWidgetMoveArea:function(e){var t=this,i=this.container.find(".move-widget-area");(e=void 0===e?!i.hasClass("active"):e)&&(i.find(".selected").removeClass("selected"),i.find("li").filter(function(){return h(this).data("id")===t.params.sidebar_id}).addClass("selected"),this.container.find(".move-widget-btn").prop("disabled",!0)),i.toggleClass("active",e)},highlightSectionAndControl:function(){var e=this.container.is(":hidden")?this.container.closest(".control-section"):this.container;h(".highlighted").removeClass("highlighted"),e.addClass("highlighted"),setTimeout(function(){e.removeClass("highlighted")},500)}}),p.Widgets.WidgetsPanel=p.Panel.extend({ready:function(){var d=this;p.Panel.prototype.ready.call(d),d.deferred.embedded.done(function(){var t,i,n,e=d.container.find(".panel-meta"),s=h("<div></div>",{class:"no-widget-areas-rendered-notice",role:"alert"});e.append(s),i=function(){return _.filter(d.sections(),function(e){return"sidebar"===e.params.type&&e.active()}).length},n=function(){var e=i();return 0===e||e!==p.Widgets.data.registeredSidebars.length},(t=function(){var e,t=i();s.empty(),t!==(e=p.Widgets.data.registeredSidebars.length)&&((e=0!==t?f.someAreasShown[e-t]:f.noAreasShown)&&s.append(h("<p></p>",{text:e})),s.append(h("<p></p>",{text:f.navigatePreview})))})(),s.toggle(n()),p.previewer.deferred.active.done(function(){s.toggle(n())}),p.bind("pane-contents-reflowed",function(){var e="resolved"===p.previewer.deferred.active.state()?"fast":0;t(),n()?s.slideDown(e):s.slideUp(e)})})},isContextuallyActive:function(){return this.active()}}),p.Widgets.SidebarSection=p.Section.extend({ready:function(){var t;p.Section.prototype.ready.call(this),t=p.Widgets.registeredSidebars.get(this.params.sidebarId),this.active.bind(function(e){t.set("is_rendered",e)}),t.set("is_rendered",this.active())}}),p.Widgets.SidebarControl=p.Control.extend({ready:function(){this.$controlSection=this.container.closest(".control-section"),this.$sectionContent=this.container.closest(".accordion-section-content"),this._setupModel(),this._setupSortable(),this._setupAddition(),this._applyCardinalOrderClassNames()},_setupModel:function(){var s=this;this.setting.bind(function(i,e){var t,n,e=_(e).difference(i);i=_(i).filter(function(e){e=c(e);return!!p.Widgets.availableWidgets.findWhere({id_base:e.id_base})}),(t=_(i).map(function(e){return p.Widgets.getWidgetFormControlForWidget(e)||s.addWidget(e)})).sort(function(e,t){return _.indexOf(i,e.params.widget_id)-_.indexOf(i,t.params.widget_id)}),n=0,_(t).each(function(e){e.priority(n),e.section(s.section()),n+=1}),s.priority(n),s._applyCardinalOrderClassNames(),_(t).each(function(e){e.params.sidebar_id=s.params.sidebar_id}),_(e).each(function(n){setTimeout(function(){var e,t,i=!1;p.each(function(e){e.id!==s.setting.id&&0===e.id.indexOf("sidebars_widgets[")&&"sidebars_widgets[wp_inactive_widgets]"!==e.id&&(e=e(),-1!==_.indexOf(e,n))&&(i=!0)}),i||(t=(e=p.Widgets.getWidgetFormControlForWidget(n))&&h.contains(document,e.container[0])&&!h.contains(s.$sectionContent[0],e.container[0]),e&&!t&&(p.control.remove(e.id),e.container.remove()),p.Widgets.savedWidgetIds[n]&&((t=p.value("sidebars_widgets[wp_inactive_widgets]")().slice()).push(n),p.value("sidebars_widgets[wp_inactive_widgets]")(_(t).unique())),e=c(n).id_base,(t=p.Widgets.availableWidgets.findWhere({id_base:e}))&&!t.get("is_multi")&&t.set("is_disabled",!1))})})})},_setupSortable:function(){var t=this;this.isReordering=!1,this.$sectionContent.sortable({items:"> .customize-control-widget_form",handle:".widget-top",axis:"y",tolerance:"pointer",connectWith:".accordion-section-content:has(.customize-control-sidebar_widgets)",update:function(){var e=t.$sectionContent.sortable("toArray"),e=h.map(e,function(e){return h("#"+e).find(":input[name=widget-id]").val()});t.setting(e)}}),this.$controlSection.find(".accordion-section-title").droppable({accept:".customize-control-widget_form",over:function(){p.section(t.section.get()).expand({allowMultiple:!0,completeCallback:function(){p.section.each(function(e){e.container.find(".customize-control-sidebar_widgets").length&&e.container.find(".accordion-section-content:first").sortable("refreshPositions")})}})}}),this.container.find(".reorder-toggle").on("click",function(){t.toggleReordering(!t.isReordering)})},_setupAddition:function(){var t=this;this.container.find(".add-new-widget").on("click",function(){var e=h(this);t.$sectionContent.hasClass("reordering")||(h("body").hasClass("adding-widget")?(e.attr("aria-expanded","false"),p.Widgets.availableWidgetsPanel.close()):(e.attr("aria-expanded","true"),p.Widgets.availableWidgetsPanel.open(t)))})},_applyCardinalOrderClassNames:function(){var t=[];_.each(this.setting(),function(e){e=p.Widgets.getWidgetFormControlForWidget(e);e&&t.push(e)}),0===t.length||1===p.Widgets.registeredSidebars.length&&t.length<=1?this.container.find(".reorder-toggle").hide():(this.container.find(".reorder-toggle").show(),h(t).each(function(){h(this.container).removeClass("first-widget").removeClass("last-widget").find(".move-widget-down, .move-widget-up").prop("tabIndex",0)}),_.first(t).container.addClass("first-widget").find(".move-widget-up").prop("tabIndex",-1),_.last(t).container.addClass("last-widget").find(".move-widget-down").prop("tabIndex",-1))},toggleReordering:function(e){var t=this.$sectionContent.find(".add-new-widget"),i=this.container.find(".reorder-toggle"),n=this.$sectionContent.find(".widget-title");(e=Boolean(e))!==this.$sectionContent.hasClass("reordering")&&(this.isReordering=e,this.$sectionContent.toggleClass("reordering",e),e?(_(this.getWidgetFormControls()).each(function(e){e.collapse()}),t.attr({tabindex:"-1","aria-hidden":"true"}),i.attr("aria-label",f.reorderLabelOff),u.a11y.speak(f.reorderModeOn),n.attr("aria-hidden","true")):(t.removeAttr("tabindex aria-hidden"),i.attr("aria-label",f.reorderLabelOn),u.a11y.speak(f.reorderModeOff),n.attr("aria-hidden","false")))},getWidgetFormControls:function(){var t=[];return _(this.setting()).each(function(e){e=function(e){var t,e=c(e);t="widget_"+e.id_base,e.number&&(t+="["+e.number+"]");return t}(e),e=p.control(e);e&&t.push(e)}),t},addWidget:function(n){var e,t,i,s,d,a=this,o="widget_form",r=c(n),l=r.number,r=r.id_base,r=p.Widgets.availableWidgets.findWhere({id_base:r});return!(!r||l&&!r.get("is_multi"))&&(r.get("is_multi")&&!l&&(r.set("multi_number",r.get("multi_number")+1),l=r.get("multi_number")),e=h("#widget-tpl-"+r.get("id")).html().trim(),r.get("is_multi")?e=e.replace(/<[^<>]+>/g,function(e){return e.replace(/__i__|%i%/g,l)}):r.set("is_disabled",!0),e=h(e),(e=h("<li/>").addClass("customize-control").addClass("customize-control-"+o).append(e)).find("> .widget-icon").remove(),r.get("is_multi")&&(e.find('input[name="widget_number"]').val(l),e.find('input[name="multi_number"]').val(l)),n=e.find('[name="widget-id"]').val(),e.hide(),t="widget_"+r.get("id_base"),r.get("is_multi")&&(t+="["+l+"]"),e.attr("id","customize-control-"+t.replace(/\]/g,"").replace(/\[/g,"-")),(i=p.has(t))||(d={transport:p.Widgets.data.selectiveRefreshableWidgets[r.get("id_base")]?"postMessage":"refresh",previewer:this.setting.previewer},p.create(t,t,"",d).set({})),d=p.controlConstructor[o],s=new d(t,{settings:{default:t},content:e,sidebar_id:a.params.sidebar_id,widget_id:n,widget_id_base:r.get("id_base"),type:o,is_new:!i,width:r.get("width"),height:r.get("height"),is_wide:r.get("is_wide")}),p.control.add(s),p.each(function(e){var t,i;e.id!==a.setting.id&&0===e.id.indexOf("sidebars_widgets[")&&(t=e().slice(),-1!==(i=_.indexOf(t,n)))&&(t.splice(i),e(t))}),d=this.setting().slice(),-1===_.indexOf(d,n)&&(d.push(n),this.setting(d)),e.slideDown(function(){i&&s.updateWidget({instance:s.setting()})}),s)}}),h.extend(p.panelConstructor,{widgets:p.Widgets.WidgetsPanel}),h.extend(p.sectionConstructor,{sidebar:p.Widgets.SidebarSection}),h.extend(p.controlConstructor,{widget_form:p.Widgets.WidgetControl,sidebar_widgets:p.Widgets.SidebarControl}),p.bind("ready",function(){p.Widgets.availableWidgetsPanel=new p.Widgets.AvailableWidgetsPanelView({collection:p.Widgets.availableWidgets}),p.previewer.bind("highlight-widget-control",p.Widgets.highlightWidgetFormControl),p.previewer.bind("focus-widget-control",p.Widgets.focusWidgetFormControl)}),p.Widgets.highlightWidgetFormControl=function(e){e=p.Widgets.getWidgetFormControlForWidget(e);e&&e.highlightSectionAndControl()},p.Widgets.focusWidgetFormControl=function(e){e=p.Widgets.getWidgetFormControlForWidget(e);e&&e.focus()},p.Widgets.getSidebarWidgetControlContainingWidget=function(t){var i=null;return p.control.each(function(e){"sidebar_widgets"===e.params.type&&-1!==_.indexOf(e.setting(),t)&&(i=e)}),i},p.Widgets.getWidgetFormControlForWidget=function(t){var i=null;return p.control.each(function(e){"widget_form"===e.params.type&&e.params.widget_id===t&&(i=e)}),i},h(document).on("widget-added",function(e,t){var s,d,i,n=c(t.find("> .widget-inside > .form > .widget-id").val());"nav_menu"===n.id_base&&(s=p.control("widget_nav_menu["+String(n.number)+"]"))&&(d=t.find('select[name*="nav_menu"]'),i=t.find(".edit-selected-nav-menu > button"),0!==d.length)&&0!==i.length&&(d.on("change",function(){p.section.has("nav_menu["+d.val()+"]")?i.parent().show():i.parent().hide()}),i.on("click",function(){var i,n,e=p.section("nav_menu["+d.val()+"]");e&&(n=s,(i=e).focus(),i.expanded.bind(function e(t){t||(i.expanded.unbind(e),n.focus())}))}))}))}(window.wp,jQuery); \ No newline at end of file
diff --git a/wp-admin/js/dashboard.js b/wp-admin/js/dashboard.js
index 3354790..0115611 100644
--- a/wp-admin/js/dashboard.js
+++ b/wp-admin/js/dashboard.js
@@ -92,7 +92,7 @@ jQuery( function($) {
setTimeout( function(){
// Request the widget content.
p.load( ajaxurl + '?action=dashboard-widgets&widget=' + id + '&pagenow=' + pagenow, '', function() {
- // Hide the parent and slide it out for visual fancyness.
+ // Hide the parent and slide it out for visual fanciness.
p.hide().slideDown('normal', function(){
$(this).css('display', '');
});
diff --git a/wp-admin/js/editor-expand.js b/wp-admin/js/editor-expand.js
index a47c548..04b001e 100644
--- a/wp-admin/js/editor-expand.js
+++ b/wp-admin/js/editor-expand.js
@@ -1552,7 +1552,7 @@
// Bind and unbind based on the distraction free writing focus.
$document.on( 'dfw-on.focus', mceBind ).on( 'dfw-off.focus', mceUnbind );
- // Focuse the editor when it is the target of the click event.
+ // Focus the editor when it is the target of the click event.
editor.on( 'click', function( event ) {
if ( event.target === editor.getDoc().documentElement ) {
editor.focus();
diff --git a/wp-admin/js/editor.js b/wp-admin/js/editor.js
index d5fe958..2465af3 100644
--- a/wp-admin/js/editor.js
+++ b/wp-admin/js/editor.js
@@ -265,7 +265,7 @@ window.wp = window.wp || {};
}
/**
- * Gets a list of unique shortcodes or shortcode-look-alikes in the content.
+ * Gets a list of unique shortcodes or shortcode-lookalikes in the content.
*
* @param {string} content The content we want to scan for shortcodes.
*/
@@ -561,7 +561,7 @@ window.wp = window.wp || {};
* By default TinyMCE wraps loose inline tags in a `<p>`.
* When removing selection markers an empty `<p>` may be left behind, remove it.
*
- * @param {Object} $marker The marker to be removed from the editor DOM, wrapped in an instnce of `editor.$`
+ * @param {Object} $marker The marker to be removed from the editor DOM, wrapped in an instance of `editor.$`
*/
function removeSelectionMarker( $marker ) {
var $markerParent = $marker.parent();
diff --git a/wp-admin/js/nav-menu.js b/wp-admin/js/nav-menu.js
index 9877f78..789c3b6 100644
--- a/wp-admin/js/nav-menu.js
+++ b/wp-admin/js/nav-menu.js
@@ -449,12 +449,13 @@
}
var thisLink, thisLinkText, primaryItems, itemPosition, title,
- parentItem, parentItemId, parentItemName, subItems,
+ parentItem, parentItemId, parentItemName, subItems, totalSubItems,
$this = $( itemToRefresh ),
menuItem = $this.closest( 'li.menu-item' ).first(),
depth = menuItem.menuItemDepth(),
isPrimaryMenuItem = ( 0 === depth ),
itemName = $this.closest( '.menu-item-handle' ).find( '.menu-item-title' ).text(),
+ menuItemType = $this.closest( '.menu-item-handle' ).find( '.item-controls' ).find( '.item-type' ).text(),
position = parseInt( menuItem.index(), 10 ),
prevItemDepth = ( isPrimaryMenuItem ) ? depth : parseInt( depth - 1, 10 ),
prevItemNameLeft = menuItem.prevAll('.menu-item-depth-' + prevItemDepth).first().find( '.menu-item-title' ).text(),
@@ -503,18 +504,22 @@
primaryItems = $( '.menu-item-depth-0' ),
itemPosition = primaryItems.index( menuItem ) + 1,
totalMenuItems = primaryItems.length,
-
// String together help text for primary menu items.
- title = menus.menuFocus.replace( '%1$s', itemName ).replace( '%2$d', itemPosition ).replace( '%3$d', totalMenuItems );
+ title = menus.menuFocus.replace( '%1$s', itemName ).replace( '%2$s', menuItemType ).replace( '%3$d', itemPosition ).replace( '%4$d', totalMenuItems );
} else {
parentItem = menuItem.prevAll( '.menu-item-depth-' + parseInt( depth - 1, 10 ) ).first(),
parentItemId = parentItem.find( '.menu-item-data-db-id' ).val(),
parentItemName = parentItem.find( '.menu-item-title' ).text(),
subItems = $( '.menu-item .menu-item-data-parent-id[value="' + parentItemId + '"]' ),
+ totalSubItems = subItems.length,
itemPosition = $( subItems.parents('.menu-item').get().reverse() ).index( menuItem ) + 1;
// String together help text for sub menu items.
- title = menus.subMenuFocus.replace( '%1$s', itemName ).replace( '%2$d', itemPosition ).replace( '%3$s', parentItemName );
+ if ( depth < 2 ) {
+ title = menus.subMenuFocus.replace( '%1$s', itemName ).replace( '%2$s', menuItemType ).replace( '%3$d', itemPosition ).replace( '%4$d', totalSubItems ).replace( '%5$s', parentItemName );
+ } else {
+ title = menus.subMenuMoreDepthFocus.replace( '%1$s', itemName ).replace( '%2$s', menuItemType ).replace( '%3$d', itemPosition ).replace( '%4$d', totalSubItems ).replace( '%5$s', parentItemName ).replace( '%6$d', depth );
+ }
}
$this.attr( 'aria-label', title );
@@ -732,6 +737,7 @@
api.refreshKeyboardAccessibility();
api.refreshAdvancedAccessibility();
+ api.refreshAdvancedAccessibilityOfItem( ui.item.find( 'a.item-edit' ) );
},
change: function(e, ui) {
// Make sure the placeholder is inside the menu.
diff --git a/wp-admin/js/nav-menu.min.js b/wp-admin/js/nav-menu.min.js
index ce28b70..e644243 100644
--- a/wp-admin/js/nav-menu.min.js
+++ b/wp-admin/js/nav-menu.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-!function(k){var I=window.wpNavMenu={options:{menuItemDepthPerLevel:30,globalMaxDepth:11,sortableItems:"> *",targetTolerance:0},menuList:void 0,targetList:void 0,menusChanged:!1,isRTL:!("undefined"==typeof isRtl||!isRtl),negateIfRTL:"undefined"!=typeof isRtl&&isRtl?-1:1,lastSearch:"",init:function(){I.menuList=k("#menu-to-edit"),I.targetList=I.menuList,this.jQueryExtensions(),this.attachMenuEditListeners(),this.attachBulkSelectButtonListeners(),this.attachMenuCheckBoxListeners(),this.attachMenuItemDeleteButton(),this.attachPendingMenuItemsListForDeletion(),this.attachQuickSearchListeners(),this.attachThemeLocationsListeners(),this.attachMenuSaveSubmitListeners(),this.attachTabsPanelListeners(),this.attachUnsavedChangesListener(),I.menuList.length&&this.initSortables(),menus.oneThemeLocationNoMenus&&k("#posttype-page").addSelectedToMenu(I.addMenuItemToBottom),this.initManageLocations(),this.initAccessibility(),this.initToggles(),this.initPreviewing()},jQueryExtensions:function(){k.fn.extend({menuItemDepth:function(){var e=I.isRTL?this.eq(0).css("margin-right"):this.eq(0).css("margin-left");return I.pxToDepth(e&&-1!=e.indexOf("px")?e.slice(0,-2):0)},updateDepthClass:function(t,n){return this.each(function(){var e=k(this);n=n||e.menuItemDepth(),k(this).removeClass("menu-item-depth-"+n).addClass("menu-item-depth-"+t)})},shiftDepthClass:function(i){return this.each(function(){var e=k(this),t=e.menuItemDepth(),n=t+i;e.removeClass("menu-item-depth-"+t).addClass("menu-item-depth-"+n),0===n&&e.find(".is-submenu").hide()})},childMenuItems:function(){var i=k();return this.each(function(){for(var e=k(this),t=e.menuItemDepth(),n=e.next(".menu-item");n.length&&n.menuItemDepth()>t;)i=i.add(n),n=n.next(".menu-item")}),i},shiftHorizontally:function(n){return this.each(function(){var e=k(this),t=e.menuItemDepth();e.moveHorizontally(t+n,t)})},moveHorizontally:function(a,s){return this.each(function(){var e=k(this),t=e.childMenuItems(),n=a-s,i=e.find(".is-submenu");e.updateDepthClass(a,s).updateParentMenuItemDBId(),t&&t.each(function(){var e=k(this),t=e.menuItemDepth();e.updateDepthClass(t+n,t).updateParentMenuItemDBId()}),0===a?i.hide():i.show()})},updateParentMenuItemDBId:function(){return this.each(function(){var e=k(this),t=e.find(".menu-item-data-parent-id"),n=parseInt(e.menuItemDepth(),10),e=e.prevAll(".menu-item-depth-"+(n-1)).first();0===n?t.val(0):t.val(e.find(".menu-item-data-db-id").val())})},hideAdvancedMenuItemFields:function(){return this.each(function(){var e=k(this);k(".hide-column-tog").not(":checked").each(function(){e.find(".field-"+k(this).val()).addClass("hidden-field")})})},addSelectedToMenu:function(a){return 0!==k("#menu-to-edit").length&&this.each(function(){var e=k(this),n={},t=menus.oneThemeLocationNoMenus&&0===e.find(".tabs-panel-active .categorychecklist li input:checked").length?e.find('#page-all li input[type="checkbox"]'):e.find(".tabs-panel-active .categorychecklist li input:checked"),i=/menu-item\[([^\]]*)/;if(a=a||I.addMenuItemToBottom,!t.length)return!1;e.find(".button-controls .spinner").addClass("is-active"),k(t).each(function(){var e=k(this),t=i.exec(e.attr("name")),t=void 0===t[1]?0:parseInt(t[1],10);this.className&&-1!=this.className.indexOf("add-to-top")&&(a=I.addMenuItemToTop),n[t]=e.closest("li").getItemData("add-menu-item",t)}),I.addItemToMenu(n,a,function(){t.prop("checked",!1),e.find(".button-controls .select-all").prop("checked",!1),e.find(".button-controls .spinner").removeClass("is-active")})})},getItemData:function(t,n){t=t||"menu-item";var i,a={},s=["menu-item-db-id","menu-item-object-id","menu-item-object","menu-item-parent-id","menu-item-position","menu-item-type","menu-item-title","menu-item-url","menu-item-description","menu-item-attr-title","menu-item-target","menu-item-classes","menu-item-xfn"];return(n=n||"menu-item"!=t?n:this.find(".menu-item-data-db-id").val())&&this.find("input").each(function(){var e;for(i=s.length;i--;)"menu-item"==t?e=s[i]+"["+n+"]":"add-menu-item"==t&&(e="menu-item["+n+"]["+s[i]+"]"),this.name&&e==this.name&&(a[s[i]]=this.value)}),a},setItemData:function(e,a,s){return a=a||"menu-item",(s=s||"menu-item"!=a?s:k(".menu-item-data-db-id",this).val())&&this.find("input").each(function(){var n,i=k(this);k.each(e,function(e,t){"menu-item"==a?n=e+"["+s+"]":"add-menu-item"==a&&(n="menu-item["+s+"]["+e+"]"),n==i.attr("name")&&i.val(t)})}),this}})},countMenuItems:function(e){return k(".menu-item-depth-"+e).length},moveMenuItem:function(e,t){var n,i,a=k("#menu-to-edit li"),s=a.length,m=e.parents("li.menu-item"),o=m.childMenuItems(),u=m.getItemData(),c=parseInt(m.menuItemDepth(),10),l=parseInt(m.index(),10),d=m.next(),r=d.childMenuItems(),h=parseInt(d.menuItemDepth(),10)+1,p=m.prev(),f=parseInt(p.menuItemDepth(),10),v=p.getItemData()["menu-item-db-id"],p=menus["moved"+t.charAt(0).toUpperCase()+t.slice(1)];switch(t){case"up":i=l-1,0!==l&&(0==i&&0!==c&&m.moveHorizontally(0,c),0!==f&&m.moveHorizontally(f,c),(o?n=m.add(o):m).detach().insertBefore(a.eq(i)).updateParentMenuItemDBId());break;case"down":if(o){if(n=m.add(o),(r=0!==(d=a.eq(n.length+l)).childMenuItems().length)&&(i=parseInt(d.menuItemDepth(),10)+1,m.moveHorizontally(i,c)),s===l+n.length)break;n.detach().insertAfter(a.eq(l+n.length)).updateParentMenuItemDBId()}else{if(0!==r.length&&m.moveHorizontally(h,c),s===l+1)break;m.detach().insertAfter(a.eq(l+1)).updateParentMenuItemDBId()}break;case"top":0!==l&&(o?n=m.add(o):m).detach().insertBefore(a.eq(0)).updateParentMenuItemDBId();break;case"left":0!==c&&m.shiftHorizontally(-1);break;case"right":0!==l&&u["menu-item-parent-id"]!==v&&m.shiftHorizontally(1)}e.trigger("focus"),I.registerChange(),I.refreshKeyboardAccessibility(),I.refreshAdvancedAccessibility(),p&&wp.a11y.speak(p)},initAccessibility:function(){var e=k("#menu-to-edit");I.refreshKeyboardAccessibility(),I.refreshAdvancedAccessibility(),e.on("mouseenter.refreshAccessibility focus.refreshAccessibility touchstart.refreshAccessibility",".menu-item",function(){I.refreshAdvancedAccessibilityOfItem(k(this).find("a.item-edit"))}),e.on("click","a.item-edit",function(){I.refreshAdvancedAccessibilityOfItem(k(this))}),e.on("click",".menus-move",function(){var e=k(this).data("dir");void 0!==e&&I.moveMenuItem(k(this).parents("li.menu-item").find("a.item-edit"),e)})},refreshAdvancedAccessibilityOfItem:function(e){var t,n,i,a,s,m,o,u,c,l,d,r;!0===k(e).data("needs_accessibility_refresh")&&(m=0===(s=(a=(e=k(e)).closest("li.menu-item").first()).menuItemDepth()),o=e.closest(".menu-item-handle").find(".menu-item-title").text(),u=parseInt(a.index(),10),c=m?s:parseInt(s-1,10),c=a.prevAll(".menu-item-depth-"+c).first().find(".menu-item-title").text(),l=a.prevAll(".menu-item-depth-"+s).first().find(".menu-item-title").text(),d=k("#menu-to-edit li").length,r=a.nextAll(".menu-item-depth-"+s).length,a.find(".field-move").toggle(1<d),0!==u&&(i=a.find(".menus-move-up")).attr("aria-label",menus.moveUp).css("display","inline"),0!==u&&m&&(i=a.find(".menus-move-top")).attr("aria-label",menus.moveToTop).css("display","inline"),u+1!==d&&0!==u&&(i=a.find(".menus-move-down")).attr("aria-label",menus.moveDown).css("display","inline"),0===u&&0!==r&&(i=a.find(".menus-move-down")).attr("aria-label",menus.moveDown).css("display","inline"),m||(i=a.find(".menus-move-left"),n=menus.outFrom.replace("%s",c),i.attr("aria-label",menus.moveOutFrom.replace("%s",c)).text(n).css("display","inline")),0!==u&&a.find(".menu-item-data-parent-id").val()!==a.prev().find(".menu-item-data-db-id").val()&&(i=a.find(".menus-move-right"),n=menus.under.replace("%s",l),i.attr("aria-label",menus.moveUnder.replace("%s",l)).text(n).css("display","inline")),n=m?(t=(r=k(".menu-item-depth-0")).index(a)+1,d=r.length,menus.menuFocus.replace("%1$s",o).replace("%2$d",t).replace("%3$d",d)):(u=(c=a.prevAll(".menu-item-depth-"+parseInt(s-1,10)).first()).find(".menu-item-data-db-id").val(),i=c.find(".menu-item-title").text(),l=k('.menu-item .menu-item-data-parent-id[value="'+u+'"]'),t=k(l.parents(".menu-item").get().reverse()).index(a)+1,menus.subMenuFocus.replace("%1$s",o).replace("%2$d",t).replace("%3$s",i)),e.attr("aria-label",n),e.data("needs_accessibility_refresh",!1))},refreshAdvancedAccessibility:function(){k(".menu-item-settings .field-move .menus-move").hide(),k("a.item-edit").data("needs_accessibility_refresh",!0),k(".menu-item-edit-active a.item-edit").each(function(){I.refreshAdvancedAccessibilityOfItem(this)})},refreshKeyboardAccessibility:function(){k("a.item-edit").off("focus").on("focus",function(){k(this).off("keydown").on("keydown",function(e){var t,n=k(this),i=n.parents("li.menu-item").getItemData();if((37==e.which||38==e.which||39==e.which||40==e.which)&&(n.off("keydown"),1!==k("#menu-to-edit li").length)){switch(t={38:"up",40:"down",37:"left",39:"right"},(t=k("body").hasClass("rtl")?{38:"up",40:"down",39:"left",37:"right"}:t)[e.which]){case"up":I.moveMenuItem(n,"up");break;case"down":I.moveMenuItem(n,"down");break;case"left":I.moveMenuItem(n,"left");break;case"right":I.moveMenuItem(n,"right")}return k("#edit-"+i["menu-item-db-id"]).trigger("focus"),!1}})})},initPreviewing:function(){k("#menu-to-edit").on("change input",".edit-menu-item-title",function(e){var e=k(e.currentTarget),t=e.val(),e=e.closest(".menu-item").find(".menu-item-title");t?e.text(t).removeClass("no-title"):e.text(wp.i18n._x("(no label)","missing menu item navigation label")).addClass("no-title")})},initToggles:function(){postboxes.add_postbox_toggles("nav-menus"),columns.useCheckboxesForHidden(),columns.checked=function(e){k(".field-"+e).removeClass("hidden-field")},columns.unchecked=function(e){k(".field-"+e).addClass("hidden-field")},I.menuList.hideAdvancedMenuItemFields(),k(".hide-postbox-tog").on("click",function(){var e=k(".accordion-container li.accordion-section").filter(":hidden").map(function(){return this.id}).get().join(",");k.post(ajaxurl,{action:"closed-postboxes",hidden:e,closedpostboxesnonce:jQuery("#closedpostboxesnonce").val(),page:"nav-menus"})})},initSortables:function(){var m,a,s,n,o,u,c,l,d,r,e,h=0,p=I.menuList.offset().left,f=k("body"),v=f[0].className&&(e=f[0].className.match(/menu-max-depth-(\d+)/))&&e[1]?parseInt(e[1],10):0;function g(e){n=e.placeholder.prev(".menu-item"),o=e.placeholder.next(".menu-item"),n[0]==e.item[0]&&(n=n.prev(".menu-item")),o[0]==e.item[0]&&(o=o.next(".menu-item")),u=n.length?n.offset().top+n.height():0,c=o.length?o.offset().top+o.height()/3:0,a=o.length?o.menuItemDepth():0,s=n.length?(e=n.menuItemDepth()+1)>I.options.globalMaxDepth?I.options.globalMaxDepth:e:0}function b(e,t){e.placeholder.updateDepthClass(t,h),h=t}0!==k("#menu-to-edit li").length&&k(".drag-instructions").show(),p+=I.isRTL?I.menuList.width():0,I.menuList.sortable({handle:".menu-item-handle",placeholder:"sortable-placeholder",items:I.options.sortableItems,start:function(e,t){var n,i;I.isRTL&&(t.item[0].style.right="auto"),d=t.item.children(".menu-item-transport"),m=t.item.menuItemDepth(),b(t,m),i=(t.item.next()[0]==t.placeholder[0]?t.item.next():t.item).childMenuItems(),d.append(i),n=d.outerHeight(),n=(n+=0<n?+t.placeholder.css("margin-top").slice(0,-2):0)+t.helper.outerHeight(),l=n,t.placeholder.height(n-=2),r=m,i.each(function(){var e=k(this).menuItemDepth();r=r<e?e:r}),n=t.helper.find(".menu-item-handle").outerWidth(),n+=I.depthToPx(r-m),t.placeholder.width(n-=2),(i=t.placeholder.next(".menu-item")).css("margin-top",l+"px"),t.placeholder.detach(),k(this).sortable("refresh"),t.item.after(t.placeholder),i.css("margin-top",0),g(t)},stop:function(e,t){var n=h-m,i=d.children().insertAfter(t.item),a=t.item.find(".item-title .is-submenu");if(0<h?a.show():a.hide(),0!=n){t.item.updateDepthClass(h),i.shiftDepthClass(n);var a=n,s=v;if(0!==a){if(0<a)v<(i=r+a)&&(s=i);else if(a<0&&r==v)for(;!k(".menu-item-depth-"+s,I.menuList).length&&0<s;)s--;f.removeClass("menu-max-depth-"+v).addClass("menu-max-depth-"+s),v=s}}I.registerChange(),t.item.updateParentMenuItemDBId(),t.item[0].style.top=0,I.isRTL&&(t.item[0].style.left="auto",t.item[0].style.right=0),I.refreshKeyboardAccessibility(),I.refreshAdvancedAccessibility()},change:function(e,t){t.placeholder.parent().hasClass("menu")||(n.length?n.after(t.placeholder):I.menuList.prepend(t.placeholder)),g(t)},sort:function(e,t){var n=t.helper.offset(),i=I.isRTL?n.left+t.helper.width():n.left,i=I.negateIfRTL*I.pxToDepth(i-p);s<i||n.top<u-I.options.targetTolerance?i=s:i<a&&(i=a),i!=h&&b(t,i),c&&n.top+l>c&&(o.after(t.placeholder),g(t),k(this).sortable("refreshPositions"))}})},initManageLocations:function(){k("#menu-locations-wrap form").on("submit",function(){window.onbeforeunload=null}),k(".menu-location-menus select").on("change",function(){var e=k(this).closest("tr").find(".locations-edit-menu-link");k(this).find("option:selected").data("orig")?e.show():e.hide()})},attachMenuEditListeners:function(){var t=this;k("#update-nav-menu").on("click",function(e){if(e.target&&e.target.className)return-1!=e.target.className.indexOf("item-edit")?t.eventOnClickEditLink(e.target):-1!=e.target.className.indexOf("menu-save")?t.eventOnClickMenuSave(e.target):-1!=e.target.className.indexOf("menu-delete")?t.eventOnClickMenuDelete(e.target):-1!=e.target.className.indexOf("item-delete")?t.eventOnClickMenuItemDelete(e.target):-1!=e.target.className.indexOf("item-cancel")?t.eventOnClickCancelLink(e.target):void 0}),k("#menu-name").on("input",_.debounce(function(){var e=k(document.getElementById("menu-name")),t=e.val();t&&t.replace(/\s+/,"")?e.parent().removeClass("form-invalid"):e.parent().addClass("form-invalid")},500)),k('#add-custom-links input[type="text"]').on("keypress",function(e){k("#customlinkdiv").removeClass("form-invalid"),13===e.keyCode&&(e.preventDefault(),k("#submit-customlinkdiv").trigger("click"))})},attachBulkSelectButtonListeners:function(){var e=this;k(".bulk-select-switcher").on("change",function(){this.checked?(k(".bulk-select-switcher").prop("checked",!0),e.enableBulkSelection()):(k(".bulk-select-switcher").prop("checked",!1),e.disableBulkSelection())})},enableBulkSelection:function(){var e=k("#menu-to-edit .menu-item-checkbox");k("#menu-to-edit").addClass("bulk-selection"),k("#nav-menu-bulk-actions-top").addClass("bulk-selection"),k("#nav-menu-bulk-actions-bottom").addClass("bulk-selection"),k.each(e,function(){k(this).prop("disabled",!1)})},disableBulkSelection:function(){var e=k("#menu-to-edit .menu-item-checkbox");k("#menu-to-edit").removeClass("bulk-selection"),k("#nav-menu-bulk-actions-top").removeClass("bulk-selection"),k("#nav-menu-bulk-actions-bottom").removeClass("bulk-selection"),k(".menu-items-delete").is('[aria-describedby="pending-menu-items-to-delete"]')&&k(".menu-items-delete").removeAttr("aria-describedby"),k.each(e,function(){k(this).prop("disabled",!0).prop("checked",!1)}),k(".menu-items-delete").addClass("disabled"),k("#pending-menu-items-to-delete ul").empty()},attachMenuCheckBoxListeners:function(){var e=this;k("#menu-to-edit").on("change",".menu-item-checkbox",function(){e.setRemoveSelectedButtonStatus()})},attachMenuItemDeleteButton:function(){var t=this;k(document).on("click",".menu-items-delete",function(e){var n,i;e.preventDefault(),k(this).hasClass("disabled")||(k.each(k(".menu-item-checkbox:checked"),function(e,t){k(t).parents("li").find("a.item-delete").trigger("click")}),k(".menu-items-delete").addClass("disabled"),k(".bulk-select-switcher").prop("checked",!1),n="",i=k("#pending-menu-items-to-delete ul li"),k.each(i,function(e,t){t=k(t).find(".pending-menu-item-name").text(),t=menus.menuItemDeletion.replace("%s",t);n+=t,e+1<i.length&&(n+=", ")}),e=menus.itemsDeleted.replace("%s",n),wp.a11y.speak(e,"polite"),t.disableBulkSelection())})},attachPendingMenuItemsListForDeletion:function(){k("#post-body-content").on("change",".menu-item-checkbox",function(){var e,t,n,i;k(".menu-items-delete").is('[aria-describedby="pending-menu-items-to-delete"]')||k(".menu-items-delete").attr("aria-describedby","pending-menu-items-to-delete"),e=k(this).next().text(),t=k(this).parent().next(".item-controls").find(".item-type").text(),n=k(this).attr("data-menu-item-id"),0<(i=k("#pending-menu-items-to-delete ul").find("[data-menu-item-id="+n+"]")).length&&i.remove(),!0===this.checked&&k("#pending-menu-items-to-delete ul").append('<li data-menu-item-id="'+n+'"><span class="pending-menu-item-name">'+e+'</span> <span class="pending-menu-item-type">('+t+')</span><span class="separator"></span></li>'),k("#pending-menu-items-to-delete li .separator").html(", "),k("#pending-menu-items-to-delete li .separator").last().html(".")})},setBulkDeleteCheckboxStatus:function(){var e=k("#menu-to-edit .menu-item-checkbox");k.each(e,function(){k(this).prop("disabled")?k(this).prop("disabled",!1):k(this).prop("disabled",!0),k(this).is(":checked")&&k(this).prop("checked",!1)}),this.setRemoveSelectedButtonStatus()},setRemoveSelectedButtonStatus:function(){var e=k(".menu-items-delete");0<k(".menu-item-checkbox:checked").length?e.removeClass("disabled"):e.addClass("disabled")},attachMenuSaveSubmitListeners:function(){k("#update-nav-menu").on("submit",function(){var e=k("#update-nav-menu").serializeArray();k('[name="nav-menu-data"]').val(JSON.stringify(e))})},attachThemeLocationsListeners:function(){var e=k("#nav-menu-theme-locations"),t={action:"menu-locations-save"};t["menu-settings-column-nonce"]=k("#menu-settings-column-nonce").val(),e.find('input[type="submit"]').on("click",function(){return e.find("select").each(function(){t[this.name]=k(this).val()}),e.find(".spinner").addClass("is-active"),k.post(ajaxurl,t,function(){e.find(".spinner").removeClass("is-active")}),!1})},attachQuickSearchListeners:function(){var t;k("#nav-menu-meta").on("submit",function(e){e.preventDefault()}),k("#nav-menu-meta").on("input",".quick-search",function(){var e=k(this);e.attr("autocomplete","off"),t&&clearTimeout(t),t=setTimeout(function(){I.updateQuickSearchResults(e)},500)}).on("blur",".quick-search",function(){I.lastSearch=""})},updateQuickSearchResults:function(e){var t,n,i=e.val();i.length<2||I.lastSearch==i||(I.lastSearch=i,t=e.parents(".tabs-panel"),n={action:"menu-quick-search","response-format":"markup",menu:k("#menu").val(),"menu-settings-column-nonce":k("#menu-settings-column-nonce").val(),q:i,type:e.attr("name")},k(".spinner",t).addClass("is-active"),k.post(ajaxurl,n,function(e){I.processQuickSearchQueryResponse(e,n,t)}))},addCustomLink:function(e){var t=k("#custom-menu-item-url").val().toString(),n=k("#custom-menu-item-name").val();if(""!==t&&(t=t.trim()),e=e||I.addMenuItemToBottom,""===t||"https://"==t||"http://"==t)return k("#customlinkdiv").addClass("form-invalid"),!1;k(".customlinkdiv .spinner").addClass("is-active"),this.addLinkToMenu(t,n,e,function(){k(".customlinkdiv .spinner").removeClass("is-active"),k("#custom-menu-item-name").val("").trigger("blur"),k("#custom-menu-item-url").val("").attr("placeholder","https://")})},addLinkToMenu:function(e,t,n,i){n=n||I.addMenuItemToBottom,I.addItemToMenu({"-1":{"menu-item-type":"custom","menu-item-url":e,"menu-item-title":t}},n,i=i||function(){})},addItemToMenu:function(e,n,i){var a,t=k("#menu").val(),s=k("#menu-settings-column-nonce").val();n=n||function(){},i=i||function(){},a={action:"add-menu-item",menu:t,"menu-settings-column-nonce":s,"menu-item":e},k.post(ajaxurl,a,function(e){var t=k("#menu-instructions");e=(e=e||"").toString().trim(),n(e,a),k("li.pending").hide().fadeIn("slow"),k(".drag-instructions").show(),!t.hasClass("menu-instructions-inactive")&&t.siblings().length&&t.addClass("menu-instructions-inactive"),i()})},addMenuItemToBottom:function(e){e=k(e);e.hideAdvancedMenuItemFields().appendTo(I.targetList),I.refreshKeyboardAccessibility(),I.refreshAdvancedAccessibility(),wp.a11y.speak(menus.itemAdded),k(document).trigger("menu-item-added",[e])},addMenuItemToTop:function(e){e=k(e);e.hideAdvancedMenuItemFields().prependTo(I.targetList),I.refreshKeyboardAccessibility(),I.refreshAdvancedAccessibility(),wp.a11y.speak(menus.itemAdded),k(document).trigger("menu-item-added",[e])},attachUnsavedChangesListener:function(){k("#menu-management input, #menu-management select, #menu-management, #menu-management textarea, .menu-location-menus select").on("change",function(){I.registerChange()}),0!==k("#menu-to-edit").length||0!==k(".menu-location-menus select").length?window.onbeforeunload=function(){if(I.menusChanged)return wp.i18n.__("The changes you made will be lost if you navigate away from this page.")}:k("#menu-settings-column").find("input,select").end().find("a").attr("href","#").off("click")},registerChange:function(){I.menusChanged=!0},attachTabsPanelListeners:function(){k("#menu-settings-column").on("click",function(e){var t,n,i,a,s=k(e.target);if(s.hasClass("nav-tab-link"))n=s.data("type"),i=s.parents(".accordion-section-content").first(),k("input",i).prop("checked",!1),k(".tabs-panel-active",i).removeClass("tabs-panel-active").addClass("tabs-panel-inactive"),k("#"+n,i).removeClass("tabs-panel-inactive").addClass("tabs-panel-active"),k(".tabs",i).removeClass("tabs"),s.parent().addClass("tabs"),k(".quick-search",i).trigger("focus"),i.find(".tabs-panel-active .menu-item-title").length?i.removeClass("has-no-menu-item"):i.addClass("has-no-menu-item"),e.preventDefault();else if(s.hasClass("select-all"))(t=s.closest(".button-controls").data("items-type"))&&((a=k("#"+t+" .tabs-panel-active .menu-item-title input")).length!==a.filter(":checked").length||s.is(":checked")?s.is(":checked")&&a.prop("checked",!0):a.prop("checked",!1));else if(s.hasClass("menu-item-checkbox"))(t=s.closest(".tabs-panel-active").parent().attr("id"))&&(a=k("#"+t+" .tabs-panel-active .menu-item-title input"),n=k('.button-controls[data-items-type="'+t+'"] .select-all'),a.length!==a.filter(":checked").length||n.is(":checked")?n.is(":checked")&&n.prop("checked",!1):n.prop("checked",!0));else if(s.hasClass("submit-add-to-menu"))return I.registerChange(),e.target.id&&"submit-customlinkdiv"==e.target.id?I.addCustomLink(I.addMenuItemToBottom):e.target.id&&-1!=e.target.id.indexOf("submit-")&&k("#"+e.target.id.replace(/submit-/,"")).addSelectedToMenu(I.addMenuItemToBottom),!1}),k("#nav-menu-meta").on("click","a.page-numbers",function(){var n=k(this).closest(".inside");return k.post(ajaxurl,this.href.replace(/.*\?/,"").replace(/action=([^&]*)/,"")+"&action=menu-get-metabox",function(e){var t=JSON.parse(e);-1!==e.indexOf("replace-id")&&(e=document.getElementById(t["replace-id"]),t.markup)&&e&&n.html(t.markup)}),!1})},eventOnClickEditLink:function(e){var t,e=/#(.*)$/.exec(e.href);if(e&&e[1]&&0!==(t=(e=k("#"+e[1])).parent()).length)return t.hasClass("menu-item-edit-inactive")?(e.data("menu-item-data")||e.data("menu-item-data",e.getItemData()),e.slideDown("fast"),t.removeClass("menu-item-edit-inactive").addClass("menu-item-edit-active")):(e.slideUp("fast"),t.removeClass("menu-item-edit-active").addClass("menu-item-edit-inactive")),!1},eventOnClickCancelLink:function(e){var t=k(e).closest(".menu-item-settings"),e=k(e).closest(".menu-item");return e.removeClass("menu-item-edit-active").addClass("menu-item-edit-inactive"),t.setItemData(t.data("menu-item-data")).hide(),e.find(".menu-item-title").text(t.data("menu-item-data")["menu-item-title"]),!1},eventOnClickMenuSave:function(){var e="",t=k("#menu-name"),n=t.val();return n&&n.replace(/\s+/,"")?(k("#nav-menu-theme-locations select").each(function(){e+='<input type="hidden" name="'+this.name+'" value="'+k(this).val()+'" />'}),k("#update-nav-menu").append(e),I.menuList.find(".menu-item-data-position").val(function(e){return e+1}),!(window.onbeforeunload=null)):(t.parent().addClass("form-invalid"),!1)},eventOnClickMenuDelete:function(){return!!window.confirm(wp.i18n.__("You are about to permanently delete this menu.\n'Cancel' to stop, 'OK' to delete."))&&!(window.onbeforeunload=null)},eventOnClickMenuItemDelete:function(e){e=parseInt(e.id.replace("delete-",""),10);return I.removeMenuItem(k("#menu-item-"+e)),I.registerChange(),!1},processQuickSearchQueryResponse:function(e,t,n){var i,a,s,m={},o=document.getElementById("nav-menu-meta"),u=/menu-item[(\[^]\]*/,e=k("<div>").html(e).find("li"),c=n.closest(".accordion-section-content"),l=c.find(".button-controls .select-all");e.length?(e.each(function(){if(s=k(this),(i=u.exec(s.html()))&&i[1]){for(a=i[1];o.elements["menu-item["+a+"][menu-item-type]"]||m[a];)a--;m[a]=!0,a!=i[1]&&s.html(s.html().replace(new RegExp("menu-item\\["+i[1]+"\\]","g"),"menu-item["+a+"]"))}}),k(".categorychecklist",n).html(e),k(".spinner",n).removeClass("is-active"),c.removeClass("has-no-menu-item"),l.is(":checked")&&l.prop("checked",!1)):(k(".categorychecklist",n).html("<li><p>"+wp.i18n.__("No results found.")+"</p></li>"),k(".spinner",n).removeClass("is-active"),c.addClass("has-no-menu-item"))},removeMenuItem:function(t){var n=t.childMenuItems();k(document).trigger("menu-removing-item",[t]),t.addClass("deleting").animate({opacity:0,height:0},350,function(){var e=k("#menu-instructions");t.remove(),n.shiftDepthClass(-1).updateParentMenuItemDBId(),0===k("#menu-to-edit li").length&&(k(".drag-instructions").hide(),e.removeClass("menu-instructions-inactive")),I.refreshAdvancedAccessibility(),wp.a11y.speak(menus.itemRemoved)})},depthToPx:function(e){return e*I.options.menuItemDepthPerLevel},pxToDepth:function(e){return Math.floor(e/I.options.menuItemDepthPerLevel)}};k(function(){wpNavMenu.init(),k(".menu-edit a, .menu-edit button, .menu-edit input, .menu-edit textarea, .menu-edit select").on("focus",function(){var e,t,n;783<=window.innerWidth&&(e=k("#nav-menu-footer").height()+20,0<(t=k(this).offset().top-(k(window).scrollTop()+k(window).height()-k(this).height()))&&(t=0),(t*=-1)<e)&&(n=k(document).scrollTop(),k(document).scrollTop(n+(e-t)))})}),k(document).on("menu-item-added",function(){k(".bulk-actions").is(":visible")||k(".bulk-actions").show()}),k(document).on("menu-removing-item",function(e,t){1===k(t).parents("#menu-to-edit").find("li").length&&k(".bulk-actions").is(":visible")&&k(".bulk-actions").hide()})}(jQuery); \ No newline at end of file
+!function(k){var I=window.wpNavMenu={options:{menuItemDepthPerLevel:30,globalMaxDepth:11,sortableItems:"> *",targetTolerance:0},menuList:void 0,targetList:void 0,menusChanged:!1,isRTL:!("undefined"==typeof isRtl||!isRtl),negateIfRTL:"undefined"!=typeof isRtl&&isRtl?-1:1,lastSearch:"",init:function(){I.menuList=k("#menu-to-edit"),I.targetList=I.menuList,this.jQueryExtensions(),this.attachMenuEditListeners(),this.attachBulkSelectButtonListeners(),this.attachMenuCheckBoxListeners(),this.attachMenuItemDeleteButton(),this.attachPendingMenuItemsListForDeletion(),this.attachQuickSearchListeners(),this.attachThemeLocationsListeners(),this.attachMenuSaveSubmitListeners(),this.attachTabsPanelListeners(),this.attachUnsavedChangesListener(),I.menuList.length&&this.initSortables(),menus.oneThemeLocationNoMenus&&k("#posttype-page").addSelectedToMenu(I.addMenuItemToBottom),this.initManageLocations(),this.initAccessibility(),this.initToggles(),this.initPreviewing()},jQueryExtensions:function(){k.fn.extend({menuItemDepth:function(){var e=I.isRTL?this.eq(0).css("margin-right"):this.eq(0).css("margin-left");return I.pxToDepth(e&&-1!=e.indexOf("px")?e.slice(0,-2):0)},updateDepthClass:function(t,n){return this.each(function(){var e=k(this);n=n||e.menuItemDepth(),k(this).removeClass("menu-item-depth-"+n).addClass("menu-item-depth-"+t)})},shiftDepthClass:function(i){return this.each(function(){var e=k(this),t=e.menuItemDepth(),n=t+i;e.removeClass("menu-item-depth-"+t).addClass("menu-item-depth-"+n),0===n&&e.find(".is-submenu").hide()})},childMenuItems:function(){var i=k();return this.each(function(){for(var e=k(this),t=e.menuItemDepth(),n=e.next(".menu-item");n.length&&n.menuItemDepth()>t;)i=i.add(n),n=n.next(".menu-item")}),i},shiftHorizontally:function(n){return this.each(function(){var e=k(this),t=e.menuItemDepth();e.moveHorizontally(t+n,t)})},moveHorizontally:function(a,s){return this.each(function(){var e=k(this),t=e.childMenuItems(),n=a-s,i=e.find(".is-submenu");e.updateDepthClass(a,s).updateParentMenuItemDBId(),t&&t.each(function(){var e=k(this),t=e.menuItemDepth();e.updateDepthClass(t+n,t).updateParentMenuItemDBId()}),0===a?i.hide():i.show()})},updateParentMenuItemDBId:function(){return this.each(function(){var e=k(this),t=e.find(".menu-item-data-parent-id"),n=parseInt(e.menuItemDepth(),10),e=e.prevAll(".menu-item-depth-"+(n-1)).first();0===n?t.val(0):t.val(e.find(".menu-item-data-db-id").val())})},hideAdvancedMenuItemFields:function(){return this.each(function(){var e=k(this);k(".hide-column-tog").not(":checked").each(function(){e.find(".field-"+k(this).val()).addClass("hidden-field")})})},addSelectedToMenu:function(a){return 0!==k("#menu-to-edit").length&&this.each(function(){var e=k(this),n={},t=menus.oneThemeLocationNoMenus&&0===e.find(".tabs-panel-active .categorychecklist li input:checked").length?e.find('#page-all li input[type="checkbox"]'):e.find(".tabs-panel-active .categorychecklist li input:checked"),i=/menu-item\[([^\]]*)/;if(a=a||I.addMenuItemToBottom,!t.length)return!1;e.find(".button-controls .spinner").addClass("is-active"),k(t).each(function(){var e=k(this),t=i.exec(e.attr("name")),t=void 0===t[1]?0:parseInt(t[1],10);this.className&&-1!=this.className.indexOf("add-to-top")&&(a=I.addMenuItemToTop),n[t]=e.closest("li").getItemData("add-menu-item",t)}),I.addItemToMenu(n,a,function(){t.prop("checked",!1),e.find(".button-controls .select-all").prop("checked",!1),e.find(".button-controls .spinner").removeClass("is-active")})})},getItemData:function(t,n){t=t||"menu-item";var i,a={},s=["menu-item-db-id","menu-item-object-id","menu-item-object","menu-item-parent-id","menu-item-position","menu-item-type","menu-item-title","menu-item-url","menu-item-description","menu-item-attr-title","menu-item-target","menu-item-classes","menu-item-xfn"];return(n=n||"menu-item"!=t?n:this.find(".menu-item-data-db-id").val())&&this.find("input").each(function(){var e;for(i=s.length;i--;)"menu-item"==t?e=s[i]+"["+n+"]":"add-menu-item"==t&&(e="menu-item["+n+"]["+s[i]+"]"),this.name&&e==this.name&&(a[s[i]]=this.value)}),a},setItemData:function(e,a,s){return a=a||"menu-item",(s=s||"menu-item"!=a?s:k(".menu-item-data-db-id",this).val())&&this.find("input").each(function(){var n,i=k(this);k.each(e,function(e,t){"menu-item"==a?n=e+"["+s+"]":"add-menu-item"==a&&(n="menu-item["+s+"]["+e+"]"),n==i.attr("name")&&i.val(t)})}),this}})},countMenuItems:function(e){return k(".menu-item-depth-"+e).length},moveMenuItem:function(e,t){var n,i,a=k("#menu-to-edit li"),s=a.length,m=e.parents("li.menu-item"),o=m.childMenuItems(),u=m.getItemData(),c=parseInt(m.menuItemDepth(),10),l=parseInt(m.index(),10),d=m.next(),r=d.childMenuItems(),h=parseInt(d.menuItemDepth(),10)+1,p=m.prev(),f=parseInt(p.menuItemDepth(),10),v=p.getItemData()["menu-item-db-id"],p=menus["moved"+t.charAt(0).toUpperCase()+t.slice(1)];switch(t){case"up":i=l-1,0!==l&&(0==i&&0!==c&&m.moveHorizontally(0,c),0!==f&&m.moveHorizontally(f,c),(o?n=m.add(o):m).detach().insertBefore(a.eq(i)).updateParentMenuItemDBId());break;case"down":if(o){if(n=m.add(o),(r=0!==(d=a.eq(n.length+l)).childMenuItems().length)&&(i=parseInt(d.menuItemDepth(),10)+1,m.moveHorizontally(i,c)),s===l+n.length)break;n.detach().insertAfter(a.eq(l+n.length)).updateParentMenuItemDBId()}else{if(0!==r.length&&m.moveHorizontally(h,c),s===l+1)break;m.detach().insertAfter(a.eq(l+1)).updateParentMenuItemDBId()}break;case"top":0!==l&&(o?n=m.add(o):m).detach().insertBefore(a.eq(0)).updateParentMenuItemDBId();break;case"left":0!==c&&m.shiftHorizontally(-1);break;case"right":0!==l&&u["menu-item-parent-id"]!==v&&m.shiftHorizontally(1)}e.trigger("focus"),I.registerChange(),I.refreshKeyboardAccessibility(),I.refreshAdvancedAccessibility(),p&&wp.a11y.speak(p)},initAccessibility:function(){var e=k("#menu-to-edit");I.refreshKeyboardAccessibility(),I.refreshAdvancedAccessibility(),e.on("mouseenter.refreshAccessibility focus.refreshAccessibility touchstart.refreshAccessibility",".menu-item",function(){I.refreshAdvancedAccessibilityOfItem(k(this).find("a.item-edit"))}),e.on("click","a.item-edit",function(){I.refreshAdvancedAccessibilityOfItem(k(this))}),e.on("click",".menus-move",function(){var e=k(this).data("dir");void 0!==e&&I.moveMenuItem(k(this).parents("li.menu-item").find("a.item-edit"),e)})},refreshAdvancedAccessibilityOfItem:function(e){var t,n,i,a,s,m,o,u,c,l,d,r,h;!0===k(e).data("needs_accessibility_refresh")&&(m=0===(s=(a=(e=k(e)).closest("li.menu-item").first()).menuItemDepth()),o=e.closest(".menu-item-handle").find(".menu-item-title").text(),u=e.closest(".menu-item-handle").find(".item-controls").find(".item-type").text(),c=parseInt(a.index(),10),l=m?s:parseInt(s-1,10),l=a.prevAll(".menu-item-depth-"+l).first().find(".menu-item-title").text(),d=a.prevAll(".menu-item-depth-"+s).first().find(".menu-item-title").text(),r=k("#menu-to-edit li").length,h=a.nextAll(".menu-item-depth-"+s).length,a.find(".field-move").toggle(1<r),0!==c&&(n=a.find(".menus-move-up")).attr("aria-label",menus.moveUp).css("display","inline"),0!==c&&m&&(n=a.find(".menus-move-top")).attr("aria-label",menus.moveToTop).css("display","inline"),c+1!==r&&0!==c&&(n=a.find(".menus-move-down")).attr("aria-label",menus.moveDown).css("display","inline"),0===c&&0!==h&&(n=a.find(".menus-move-down")).attr("aria-label",menus.moveDown).css("display","inline"),m||(n=a.find(".menus-move-left"),i=menus.outFrom.replace("%s",l),n.attr("aria-label",menus.moveOutFrom.replace("%s",l)).text(i).css("display","inline")),0!==c&&a.find(".menu-item-data-parent-id").val()!==a.prev().find(".menu-item-data-db-id").val()&&(n=a.find(".menus-move-right"),i=menus.under.replace("%s",d),n.attr("aria-label",menus.moveUnder.replace("%s",d)).text(i).css("display","inline")),m=m?(t=(h=k(".menu-item-depth-0")).index(a)+1,r=h.length,menus.menuFocus.replace("%1$s",o).replace("%2$s",u).replace("%3$d",t).replace("%4$d",r)):(c=(l=a.prevAll(".menu-item-depth-"+parseInt(s-1,10)).first()).find(".menu-item-data-db-id").val(),n=l.find(".menu-item-title").text(),i=(d=k('.menu-item .menu-item-data-parent-id[value="'+c+'"]')).length,t=k(d.parents(".menu-item").get().reverse()).index(a)+1,s<2?menus.subMenuFocus.replace("%1$s",o).replace("%2$s",u).replace("%3$d",t).replace("%4$d",i).replace("%5$s",n):menus.subMenuMoreDepthFocus.replace("%1$s",o).replace("%2$s",u).replace("%3$d",t).replace("%4$d",i).replace("%5$s",n).replace("%6$d",s)),e.attr("aria-label",m),e.data("needs_accessibility_refresh",!1))},refreshAdvancedAccessibility:function(){k(".menu-item-settings .field-move .menus-move").hide(),k("a.item-edit").data("needs_accessibility_refresh",!0),k(".menu-item-edit-active a.item-edit").each(function(){I.refreshAdvancedAccessibilityOfItem(this)})},refreshKeyboardAccessibility:function(){k("a.item-edit").off("focus").on("focus",function(){k(this).off("keydown").on("keydown",function(e){var t,n=k(this),i=n.parents("li.menu-item").getItemData();if((37==e.which||38==e.which||39==e.which||40==e.which)&&(n.off("keydown"),1!==k("#menu-to-edit li").length)){switch(t={38:"up",40:"down",37:"left",39:"right"},(t=k("body").hasClass("rtl")?{38:"up",40:"down",39:"left",37:"right"}:t)[e.which]){case"up":I.moveMenuItem(n,"up");break;case"down":I.moveMenuItem(n,"down");break;case"left":I.moveMenuItem(n,"left");break;case"right":I.moveMenuItem(n,"right")}return k("#edit-"+i["menu-item-db-id"]).trigger("focus"),!1}})})},initPreviewing:function(){k("#menu-to-edit").on("change input",".edit-menu-item-title",function(e){var e=k(e.currentTarget),t=e.val(),e=e.closest(".menu-item").find(".menu-item-title");t?e.text(t).removeClass("no-title"):e.text(wp.i18n._x("(no label)","missing menu item navigation label")).addClass("no-title")})},initToggles:function(){postboxes.add_postbox_toggles("nav-menus"),columns.useCheckboxesForHidden(),columns.checked=function(e){k(".field-"+e).removeClass("hidden-field")},columns.unchecked=function(e){k(".field-"+e).addClass("hidden-field")},I.menuList.hideAdvancedMenuItemFields(),k(".hide-postbox-tog").on("click",function(){var e=k(".accordion-container li.accordion-section").filter(":hidden").map(function(){return this.id}).get().join(",");k.post(ajaxurl,{action:"closed-postboxes",hidden:e,closedpostboxesnonce:jQuery("#closedpostboxesnonce").val(),page:"nav-menus"})})},initSortables:function(){var m,a,s,n,o,u,c,l,d,r,e,h=0,p=I.menuList.offset().left,f=k("body"),v=f[0].className&&(e=f[0].className.match(/menu-max-depth-(\d+)/))&&e[1]?parseInt(e[1],10):0;function g(e){n=e.placeholder.prev(".menu-item"),o=e.placeholder.next(".menu-item"),n[0]==e.item[0]&&(n=n.prev(".menu-item")),o[0]==e.item[0]&&(o=o.next(".menu-item")),u=n.length?n.offset().top+n.height():0,c=o.length?o.offset().top+o.height()/3:0,a=o.length?o.menuItemDepth():0,s=n.length?(e=n.menuItemDepth()+1)>I.options.globalMaxDepth?I.options.globalMaxDepth:e:0}function b(e,t){e.placeholder.updateDepthClass(t,h),h=t}0!==k("#menu-to-edit li").length&&k(".drag-instructions").show(),p+=I.isRTL?I.menuList.width():0,I.menuList.sortable({handle:".menu-item-handle",placeholder:"sortable-placeholder",items:I.options.sortableItems,start:function(e,t){var n,i;I.isRTL&&(t.item[0].style.right="auto"),d=t.item.children(".menu-item-transport"),m=t.item.menuItemDepth(),b(t,m),i=(t.item.next()[0]==t.placeholder[0]?t.item.next():t.item).childMenuItems(),d.append(i),n=d.outerHeight(),n=(n+=0<n?+t.placeholder.css("margin-top").slice(0,-2):0)+t.helper.outerHeight(),l=n,t.placeholder.height(n-=2),r=m,i.each(function(){var e=k(this).menuItemDepth();r=r<e?e:r}),n=t.helper.find(".menu-item-handle").outerWidth(),n+=I.depthToPx(r-m),t.placeholder.width(n-=2),(i=t.placeholder.next(".menu-item")).css("margin-top",l+"px"),t.placeholder.detach(),k(this).sortable("refresh"),t.item.after(t.placeholder),i.css("margin-top",0),g(t)},stop:function(e,t){var n=h-m,i=d.children().insertAfter(t.item),a=t.item.find(".item-title .is-submenu");if(0<h?a.show():a.hide(),0!=n){t.item.updateDepthClass(h),i.shiftDepthClass(n);var a=n,s=v;if(0!==a){if(0<a)v<(i=r+a)&&(s=i);else if(a<0&&r==v)for(;!k(".menu-item-depth-"+s,I.menuList).length&&0<s;)s--;f.removeClass("menu-max-depth-"+v).addClass("menu-max-depth-"+s),v=s}}I.registerChange(),t.item.updateParentMenuItemDBId(),t.item[0].style.top=0,I.isRTL&&(t.item[0].style.left="auto",t.item[0].style.right=0),I.refreshKeyboardAccessibility(),I.refreshAdvancedAccessibility(),I.refreshAdvancedAccessibilityOfItem(t.item.find("a.item-edit"))},change:function(e,t){t.placeholder.parent().hasClass("menu")||(n.length?n.after(t.placeholder):I.menuList.prepend(t.placeholder)),g(t)},sort:function(e,t){var n=t.helper.offset(),i=I.isRTL?n.left+t.helper.width():n.left,i=I.negateIfRTL*I.pxToDepth(i-p);s<i||n.top<u-I.options.targetTolerance?i=s:i<a&&(i=a),i!=h&&b(t,i),c&&n.top+l>c&&(o.after(t.placeholder),g(t),k(this).sortable("refreshPositions"))}})},initManageLocations:function(){k("#menu-locations-wrap form").on("submit",function(){window.onbeforeunload=null}),k(".menu-location-menus select").on("change",function(){var e=k(this).closest("tr").find(".locations-edit-menu-link");k(this).find("option:selected").data("orig")?e.show():e.hide()})},attachMenuEditListeners:function(){var t=this;k("#update-nav-menu").on("click",function(e){if(e.target&&e.target.className)return-1!=e.target.className.indexOf("item-edit")?t.eventOnClickEditLink(e.target):-1!=e.target.className.indexOf("menu-save")?t.eventOnClickMenuSave(e.target):-1!=e.target.className.indexOf("menu-delete")?t.eventOnClickMenuDelete(e.target):-1!=e.target.className.indexOf("item-delete")?t.eventOnClickMenuItemDelete(e.target):-1!=e.target.className.indexOf("item-cancel")?t.eventOnClickCancelLink(e.target):void 0}),k("#menu-name").on("input",_.debounce(function(){var e=k(document.getElementById("menu-name")),t=e.val();t&&t.replace(/\s+/,"")?e.parent().removeClass("form-invalid"):e.parent().addClass("form-invalid")},500)),k('#add-custom-links input[type="text"]').on("keypress",function(e){k("#customlinkdiv").removeClass("form-invalid"),13===e.keyCode&&(e.preventDefault(),k("#submit-customlinkdiv").trigger("click"))})},attachBulkSelectButtonListeners:function(){var e=this;k(".bulk-select-switcher").on("change",function(){this.checked?(k(".bulk-select-switcher").prop("checked",!0),e.enableBulkSelection()):(k(".bulk-select-switcher").prop("checked",!1),e.disableBulkSelection())})},enableBulkSelection:function(){var e=k("#menu-to-edit .menu-item-checkbox");k("#menu-to-edit").addClass("bulk-selection"),k("#nav-menu-bulk-actions-top").addClass("bulk-selection"),k("#nav-menu-bulk-actions-bottom").addClass("bulk-selection"),k.each(e,function(){k(this).prop("disabled",!1)})},disableBulkSelection:function(){var e=k("#menu-to-edit .menu-item-checkbox");k("#menu-to-edit").removeClass("bulk-selection"),k("#nav-menu-bulk-actions-top").removeClass("bulk-selection"),k("#nav-menu-bulk-actions-bottom").removeClass("bulk-selection"),k(".menu-items-delete").is('[aria-describedby="pending-menu-items-to-delete"]')&&k(".menu-items-delete").removeAttr("aria-describedby"),k.each(e,function(){k(this).prop("disabled",!0).prop("checked",!1)}),k(".menu-items-delete").addClass("disabled"),k("#pending-menu-items-to-delete ul").empty()},attachMenuCheckBoxListeners:function(){var e=this;k("#menu-to-edit").on("change",".menu-item-checkbox",function(){e.setRemoveSelectedButtonStatus()})},attachMenuItemDeleteButton:function(){var t=this;k(document).on("click",".menu-items-delete",function(e){var n,i;e.preventDefault(),k(this).hasClass("disabled")||(k.each(k(".menu-item-checkbox:checked"),function(e,t){k(t).parents("li").find("a.item-delete").trigger("click")}),k(".menu-items-delete").addClass("disabled"),k(".bulk-select-switcher").prop("checked",!1),n="",i=k("#pending-menu-items-to-delete ul li"),k.each(i,function(e,t){t=k(t).find(".pending-menu-item-name").text(),t=menus.menuItemDeletion.replace("%s",t);n+=t,e+1<i.length&&(n+=", ")}),e=menus.itemsDeleted.replace("%s",n),wp.a11y.speak(e,"polite"),t.disableBulkSelection())})},attachPendingMenuItemsListForDeletion:function(){k("#post-body-content").on("change",".menu-item-checkbox",function(){var e,t,n,i;k(".menu-items-delete").is('[aria-describedby="pending-menu-items-to-delete"]')||k(".menu-items-delete").attr("aria-describedby","pending-menu-items-to-delete"),e=k(this).next().text(),t=k(this).parent().next(".item-controls").find(".item-type").text(),n=k(this).attr("data-menu-item-id"),0<(i=k("#pending-menu-items-to-delete ul").find("[data-menu-item-id="+n+"]")).length&&i.remove(),!0===this.checked&&k("#pending-menu-items-to-delete ul").append('<li data-menu-item-id="'+n+'"><span class="pending-menu-item-name">'+e+'</span> <span class="pending-menu-item-type">('+t+')</span><span class="separator"></span></li>'),k("#pending-menu-items-to-delete li .separator").html(", "),k("#pending-menu-items-to-delete li .separator").last().html(".")})},setBulkDeleteCheckboxStatus:function(){var e=k("#menu-to-edit .menu-item-checkbox");k.each(e,function(){k(this).prop("disabled")?k(this).prop("disabled",!1):k(this).prop("disabled",!0),k(this).is(":checked")&&k(this).prop("checked",!1)}),this.setRemoveSelectedButtonStatus()},setRemoveSelectedButtonStatus:function(){var e=k(".menu-items-delete");0<k(".menu-item-checkbox:checked").length?e.removeClass("disabled"):e.addClass("disabled")},attachMenuSaveSubmitListeners:function(){k("#update-nav-menu").on("submit",function(){var e=k("#update-nav-menu").serializeArray();k('[name="nav-menu-data"]').val(JSON.stringify(e))})},attachThemeLocationsListeners:function(){var e=k("#nav-menu-theme-locations"),t={action:"menu-locations-save"};t["menu-settings-column-nonce"]=k("#menu-settings-column-nonce").val(),e.find('input[type="submit"]').on("click",function(){return e.find("select").each(function(){t[this.name]=k(this).val()}),e.find(".spinner").addClass("is-active"),k.post(ajaxurl,t,function(){e.find(".spinner").removeClass("is-active")}),!1})},attachQuickSearchListeners:function(){var t;k("#nav-menu-meta").on("submit",function(e){e.preventDefault()}),k("#nav-menu-meta").on("input",".quick-search",function(){var e=k(this);e.attr("autocomplete","off"),t&&clearTimeout(t),t=setTimeout(function(){I.updateQuickSearchResults(e)},500)}).on("blur",".quick-search",function(){I.lastSearch=""})},updateQuickSearchResults:function(e){var t,n,i=e.val();i.length<2||I.lastSearch==i||(I.lastSearch=i,t=e.parents(".tabs-panel"),n={action:"menu-quick-search","response-format":"markup",menu:k("#menu").val(),"menu-settings-column-nonce":k("#menu-settings-column-nonce").val(),q:i,type:e.attr("name")},k(".spinner",t).addClass("is-active"),k.post(ajaxurl,n,function(e){I.processQuickSearchQueryResponse(e,n,t)}))},addCustomLink:function(e){var t=k("#custom-menu-item-url").val().toString(),n=k("#custom-menu-item-name").val();if(""!==t&&(t=t.trim()),e=e||I.addMenuItemToBottom,""===t||"https://"==t||"http://"==t)return k("#customlinkdiv").addClass("form-invalid"),!1;k(".customlinkdiv .spinner").addClass("is-active"),this.addLinkToMenu(t,n,e,function(){k(".customlinkdiv .spinner").removeClass("is-active"),k("#custom-menu-item-name").val("").trigger("blur"),k("#custom-menu-item-url").val("").attr("placeholder","https://")})},addLinkToMenu:function(e,t,n,i){n=n||I.addMenuItemToBottom,I.addItemToMenu({"-1":{"menu-item-type":"custom","menu-item-url":e,"menu-item-title":t}},n,i=i||function(){})},addItemToMenu:function(e,n,i){var a,t=k("#menu").val(),s=k("#menu-settings-column-nonce").val();n=n||function(){},i=i||function(){},a={action:"add-menu-item",menu:t,"menu-settings-column-nonce":s,"menu-item":e},k.post(ajaxurl,a,function(e){var t=k("#menu-instructions");e=(e=e||"").toString().trim(),n(e,a),k("li.pending").hide().fadeIn("slow"),k(".drag-instructions").show(),!t.hasClass("menu-instructions-inactive")&&t.siblings().length&&t.addClass("menu-instructions-inactive"),i()})},addMenuItemToBottom:function(e){e=k(e);e.hideAdvancedMenuItemFields().appendTo(I.targetList),I.refreshKeyboardAccessibility(),I.refreshAdvancedAccessibility(),wp.a11y.speak(menus.itemAdded),k(document).trigger("menu-item-added",[e])},addMenuItemToTop:function(e){e=k(e);e.hideAdvancedMenuItemFields().prependTo(I.targetList),I.refreshKeyboardAccessibility(),I.refreshAdvancedAccessibility(),wp.a11y.speak(menus.itemAdded),k(document).trigger("menu-item-added",[e])},attachUnsavedChangesListener:function(){k("#menu-management input, #menu-management select, #menu-management, #menu-management textarea, .menu-location-menus select").on("change",function(){I.registerChange()}),0!==k("#menu-to-edit").length||0!==k(".menu-location-menus select").length?window.onbeforeunload=function(){if(I.menusChanged)return wp.i18n.__("The changes you made will be lost if you navigate away from this page.")}:k("#menu-settings-column").find("input,select").end().find("a").attr("href","#").off("click")},registerChange:function(){I.menusChanged=!0},attachTabsPanelListeners:function(){k("#menu-settings-column").on("click",function(e){var t,n,i,a,s=k(e.target);if(s.hasClass("nav-tab-link"))n=s.data("type"),i=s.parents(".accordion-section-content").first(),k("input",i).prop("checked",!1),k(".tabs-panel-active",i).removeClass("tabs-panel-active").addClass("tabs-panel-inactive"),k("#"+n,i).removeClass("tabs-panel-inactive").addClass("tabs-panel-active"),k(".tabs",i).removeClass("tabs"),s.parent().addClass("tabs"),k(".quick-search",i).trigger("focus"),i.find(".tabs-panel-active .menu-item-title").length?i.removeClass("has-no-menu-item"):i.addClass("has-no-menu-item"),e.preventDefault();else if(s.hasClass("select-all"))(t=s.closest(".button-controls").data("items-type"))&&((a=k("#"+t+" .tabs-panel-active .menu-item-title input")).length!==a.filter(":checked").length||s.is(":checked")?s.is(":checked")&&a.prop("checked",!0):a.prop("checked",!1));else if(s.hasClass("menu-item-checkbox"))(t=s.closest(".tabs-panel-active").parent().attr("id"))&&(a=k("#"+t+" .tabs-panel-active .menu-item-title input"),n=k('.button-controls[data-items-type="'+t+'"] .select-all'),a.length!==a.filter(":checked").length||n.is(":checked")?n.is(":checked")&&n.prop("checked",!1):n.prop("checked",!0));else if(s.hasClass("submit-add-to-menu"))return I.registerChange(),e.target.id&&"submit-customlinkdiv"==e.target.id?I.addCustomLink(I.addMenuItemToBottom):e.target.id&&-1!=e.target.id.indexOf("submit-")&&k("#"+e.target.id.replace(/submit-/,"")).addSelectedToMenu(I.addMenuItemToBottom),!1}),k("#nav-menu-meta").on("click","a.page-numbers",function(){var n=k(this).closest(".inside");return k.post(ajaxurl,this.href.replace(/.*\?/,"").replace(/action=([^&]*)/,"")+"&action=menu-get-metabox",function(e){var t=JSON.parse(e);-1!==e.indexOf("replace-id")&&(e=document.getElementById(t["replace-id"]),t.markup)&&e&&n.html(t.markup)}),!1})},eventOnClickEditLink:function(e){var t,e=/#(.*)$/.exec(e.href);if(e&&e[1]&&0!==(t=(e=k("#"+e[1])).parent()).length)return t.hasClass("menu-item-edit-inactive")?(e.data("menu-item-data")||e.data("menu-item-data",e.getItemData()),e.slideDown("fast"),t.removeClass("menu-item-edit-inactive").addClass("menu-item-edit-active")):(e.slideUp("fast"),t.removeClass("menu-item-edit-active").addClass("menu-item-edit-inactive")),!1},eventOnClickCancelLink:function(e){var t=k(e).closest(".menu-item-settings"),e=k(e).closest(".menu-item");return e.removeClass("menu-item-edit-active").addClass("menu-item-edit-inactive"),t.setItemData(t.data("menu-item-data")).hide(),e.find(".menu-item-title").text(t.data("menu-item-data")["menu-item-title"]),!1},eventOnClickMenuSave:function(){var e="",t=k("#menu-name"),n=t.val();return n&&n.replace(/\s+/,"")?(k("#nav-menu-theme-locations select").each(function(){e+='<input type="hidden" name="'+this.name+'" value="'+k(this).val()+'" />'}),k("#update-nav-menu").append(e),I.menuList.find(".menu-item-data-position").val(function(e){return e+1}),!(window.onbeforeunload=null)):(t.parent().addClass("form-invalid"),!1)},eventOnClickMenuDelete:function(){return!!window.confirm(wp.i18n.__("You are about to permanently delete this menu.\n'Cancel' to stop, 'OK' to delete."))&&!(window.onbeforeunload=null)},eventOnClickMenuItemDelete:function(e){e=parseInt(e.id.replace("delete-",""),10);return I.removeMenuItem(k("#menu-item-"+e)),I.registerChange(),!1},processQuickSearchQueryResponse:function(e,t,n){var i,a,s,m={},o=document.getElementById("nav-menu-meta"),u=/menu-item[(\[^]\]*/,e=k("<div>").html(e).find("li"),c=n.closest(".accordion-section-content"),l=c.find(".button-controls .select-all");e.length?(e.each(function(){if(s=k(this),(i=u.exec(s.html()))&&i[1]){for(a=i[1];o.elements["menu-item["+a+"][menu-item-type]"]||m[a];)a--;m[a]=!0,a!=i[1]&&s.html(s.html().replace(new RegExp("menu-item\\["+i[1]+"\\]","g"),"menu-item["+a+"]"))}}),k(".categorychecklist",n).html(e),k(".spinner",n).removeClass("is-active"),c.removeClass("has-no-menu-item"),l.is(":checked")&&l.prop("checked",!1)):(k(".categorychecklist",n).html("<li><p>"+wp.i18n.__("No results found.")+"</p></li>"),k(".spinner",n).removeClass("is-active"),c.addClass("has-no-menu-item"))},removeMenuItem:function(t){var n=t.childMenuItems();k(document).trigger("menu-removing-item",[t]),t.addClass("deleting").animate({opacity:0,height:0},350,function(){var e=k("#menu-instructions");t.remove(),n.shiftDepthClass(-1).updateParentMenuItemDBId(),0===k("#menu-to-edit li").length&&(k(".drag-instructions").hide(),e.removeClass("menu-instructions-inactive")),I.refreshAdvancedAccessibility(),wp.a11y.speak(menus.itemRemoved)})},depthToPx:function(e){return e*I.options.menuItemDepthPerLevel},pxToDepth:function(e){return Math.floor(e/I.options.menuItemDepthPerLevel)}};k(function(){wpNavMenu.init(),k(".menu-edit a, .menu-edit button, .menu-edit input, .menu-edit textarea, .menu-edit select").on("focus",function(){var e,t,n;783<=window.innerWidth&&(e=k("#nav-menu-footer").height()+20,0<(t=k(this).offset().top-(k(window).scrollTop()+k(window).height()-k(this).height()))&&(t=0),(t*=-1)<e)&&(n=k(document).scrollTop(),k(document).scrollTop(n+(e-t)))})}),k(document).on("menu-item-added",function(){k(".bulk-actions").is(":visible")||k(".bulk-actions").show()}),k(document).on("menu-removing-item",function(e,t){1===k(t).parents("#menu-to-edit").find("li").length&&k(".bulk-actions").is(":visible")&&k(".bulk-actions").hide()})}(jQuery); \ No newline at end of file
diff --git a/wp-admin/js/privacy-tools.js b/wp-admin/js/privacy-tools.js
index e5fceb8..4e12939 100644
--- a/wp-admin/js/privacy-tools.js
+++ b/wp-admin/js/privacy-tools.js
@@ -47,7 +47,7 @@ jQuery( function( $ ) {
$requestRow.after( function() {
return '<tr class="' + resultRowClasses + '"><th colspan="5">' +
- '<div class="notice inline notice-alt ' + classes + '">' +
+ '<div class="notice inline notice-alt ' + classes + '" role="alert">' +
'<p>' + summaryMessage + '</p>' +
itemList +
'</div>' +
diff --git a/wp-admin/js/privacy-tools.min.js b/wp-admin/js/privacy-tools.min.js
index 41596c3..7e53cce 100644
--- a/wp-admin/js/privacy-tools.min.js
+++ b/wp-admin/js/privacy-tools.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-jQuery(function(v){var r,h=wp.i18n.__;function w(e,t){e.children().addClass("hidden"),e.children("."+t).removeClass("hidden")}function x(e){e.removeClass("has-request-results"),e.next().hasClass("request-results")&&e.next().remove()}function T(e,t,a,o){var s="",n="request-results";x(e),o.length&&(v.each(o,function(e,t){s=s+"<li>"+t+"</li>"}),s="<ul>"+s+"</ul>"),e.addClass("has-request-results"),e.hasClass("status-request-confirmed")&&(n+=" status-request-confirmed"),e.hasClass("status-request-failed")&&(n+=" status-request-failed"),e.after(function(){return'<tr class="'+n+'"><th colspan="5"><div class="notice inline notice-alt '+t+'"><p>'+a+"</p>"+s+"</div></td></tr>"})}v(".export-personal-data-handle").on("click",function(e){var t=v(this),n=t.parents(".export-personal-data"),r=t.parents("tr"),a=r.find(".export-progress"),i=t.parents(".row-actions"),c=n.data("request-id"),d=n.data("nonce"),l=n.data("exporters-count"),u=!!n.data("send-as-email");function p(e){var t=h("An error occurred while attempting to export personal data.");w(n,"export-personal-data-failed"),e&&T(r,"notice-error",t,[e]),setTimeout(function(){i.removeClass("processing")},500)}function m(e){e=Math.round(100*(0<l?e/l:0)).toString()+"%";a.html(e)}e.preventDefault(),e.stopPropagation(),i.addClass("processing"),n.trigger("blur"),x(r),m(0),w(n,"export-personal-data-processing"),function t(o,s){v.ajax({url:window.ajaxurl,data:{action:"wp-privacy-export-personal-data",exporter:o,id:c,page:s,security:d,sendAsEmail:u},method:"post"}).done(function(e){var a=e.data;e.success?a.done?(m(o),o<l?setTimeout(t(o+1,1)):setTimeout(function(){var e,t;e=a.url,t=h("This user&#8217;s personal data export link was sent."),void 0!==e&&(t=h("This user&#8217;s personal data export file was downloaded.")),w(n,"export-personal-data-success"),T(r,"notice-success",t,[]),void 0!==e?window.location=e:u||p(h("No personal data export file was generated.")),setTimeout(function(){i.removeClass("processing")},500)},500)):setTimeout(t(o,s+1)):setTimeout(function(){p(e.data)},500)}).fail(function(e,t,a){setTimeout(function(){p(a)},500)})}(1,1)}),v(".remove-personal-data-handle").on("click",function(e){var t=v(this),n=t.parents(".remove-personal-data"),r=t.parents("tr"),a=r.find(".erasure-progress"),i=t.parents(".row-actions"),c=n.data("request-id"),d=n.data("nonce"),l=n.data("erasers-count"),u=!1,p=!1,m=[];function f(){var e=h("An error occurred while attempting to find and erase personal data.");w(n,"remove-personal-data-failed"),T(r,"notice-error",e,[]),setTimeout(function(){i.removeClass("processing")},500)}function g(e){e=Math.round(100*(0<l?e/l:0)).toString()+"%";a.html(e)}e.preventDefault(),e.stopPropagation(),i.addClass("processing"),n.trigger("blur"),x(r),g(0),w(n,"remove-personal-data-processing"),function a(o,s){v.ajax({url:window.ajaxurl,data:{action:"wp-privacy-erase-personal-data",eraser:o,id:c,page:s,security:d},method:"post"}).done(function(e){var t=e.data;e.success?(t.items_removed&&(u=u||t.items_removed),t.items_retained&&(p=p||t.items_retained),t.messages&&(m=m.concat(t.messages)),t.done?(g(o),o<l?setTimeout(a(o+1,1)):setTimeout(function(){var e,t;e=h("No personal data was found for this user."),t="notice-success",w(n,"remove-personal-data-success"),!1===u?!1===p?e=h("No personal data was found for this user."):(e=h("Personal data was found for this user but was not erased."),t="notice-warning"):!1===p?e=h("All of the personal data found for this user was erased."):(e=h("Personal data was found for this user but some of the personal data found was not erased."),t="notice-warning"),T(r,t,e,m),setTimeout(function(){i.removeClass("processing")},500)},500)):setTimeout(a(o,s+1))):setTimeout(function(){f()},500)}).fail(function(){setTimeout(function(){f()},500)})}(1,1)}),v(document).on("click",function(e){var t,a,e=v(e.target),o=e.siblings(".success");if(clearTimeout(r),e.is("button.privacy-text-copy")&&(t=e.closest(".privacy-settings-accordion-panel")).length)try{var s=document.documentElement.scrollTop,n=document.body.scrollTop;window.getSelection().removeAllRanges(),a=document.createRange(),t.addClass("hide-privacy-policy-tutorial"),a.selectNodeContents(t[0]),window.getSelection().addRange(a),document.execCommand("copy"),t.removeClass("hide-privacy-policy-tutorial"),window.getSelection().removeAllRanges(),0<s&&s!==document.documentElement.scrollTop?document.documentElement.scrollTop=s:0<n&&n!==document.body.scrollTop&&(document.body.scrollTop=n),o.addClass("visible"),wp.a11y.speak(h("The suggested policy text has been copied to your clipboard.")),r=setTimeout(function(){o.removeClass("visible")},3e3)}catch(e){}}),v("body.options-privacy-php label[for=create-page]").on("click",function(e){e.preventDefault(),v("input#create-page").trigger("focus")}),v(".privacy-settings-accordion").on("click",".privacy-settings-accordion-trigger",function(){"true"===v(this).attr("aria-expanded")?(v(this).attr("aria-expanded","false"),v("#"+v(this).attr("aria-controls")).attr("hidden",!0)):(v(this).attr("aria-expanded","true"),v("#"+v(this).attr("aria-controls")).attr("hidden",!1))})}); \ No newline at end of file
+jQuery(function(v){var r,h=wp.i18n.__;function w(e,t){e.children().addClass("hidden"),e.children("."+t).removeClass("hidden")}function x(e){e.removeClass("has-request-results"),e.next().hasClass("request-results")&&e.next().remove()}function T(e,t,a,o){var s="",n="request-results";x(e),o.length&&(v.each(o,function(e,t){s=s+"<li>"+t+"</li>"}),s="<ul>"+s+"</ul>"),e.addClass("has-request-results"),e.hasClass("status-request-confirmed")&&(n+=" status-request-confirmed"),e.hasClass("status-request-failed")&&(n+=" status-request-failed"),e.after(function(){return'<tr class="'+n+'"><th colspan="5"><div class="notice inline notice-alt '+t+'" role="alert"><p>'+a+"</p>"+s+"</div></td></tr>"})}v(".export-personal-data-handle").on("click",function(e){var t=v(this),n=t.parents(".export-personal-data"),r=t.parents("tr"),a=r.find(".export-progress"),i=t.parents(".row-actions"),c=n.data("request-id"),d=n.data("nonce"),l=n.data("exporters-count"),u=!!n.data("send-as-email");function p(e){var t=h("An error occurred while attempting to export personal data.");w(n,"export-personal-data-failed"),e&&T(r,"notice-error",t,[e]),setTimeout(function(){i.removeClass("processing")},500)}function m(e){e=Math.round(100*(0<l?e/l:0)).toString()+"%";a.html(e)}e.preventDefault(),e.stopPropagation(),i.addClass("processing"),n.trigger("blur"),x(r),m(0),w(n,"export-personal-data-processing"),function t(o,s){v.ajax({url:window.ajaxurl,data:{action:"wp-privacy-export-personal-data",exporter:o,id:c,page:s,security:d,sendAsEmail:u},method:"post"}).done(function(e){var a=e.data;e.success?a.done?(m(o),o<l?setTimeout(t(o+1,1)):setTimeout(function(){var e,t;e=a.url,t=h("This user&#8217;s personal data export link was sent."),void 0!==e&&(t=h("This user&#8217;s personal data export file was downloaded.")),w(n,"export-personal-data-success"),T(r,"notice-success",t,[]),void 0!==e?window.location=e:u||p(h("No personal data export file was generated.")),setTimeout(function(){i.removeClass("processing")},500)},500)):setTimeout(t(o,s+1)):setTimeout(function(){p(e.data)},500)}).fail(function(e,t,a){setTimeout(function(){p(a)},500)})}(1,1)}),v(".remove-personal-data-handle").on("click",function(e){var t=v(this),n=t.parents(".remove-personal-data"),r=t.parents("tr"),a=r.find(".erasure-progress"),i=t.parents(".row-actions"),c=n.data("request-id"),d=n.data("nonce"),l=n.data("erasers-count"),u=!1,p=!1,m=[];function f(){var e=h("An error occurred while attempting to find and erase personal data.");w(n,"remove-personal-data-failed"),T(r,"notice-error",e,[]),setTimeout(function(){i.removeClass("processing")},500)}function g(e){e=Math.round(100*(0<l?e/l:0)).toString()+"%";a.html(e)}e.preventDefault(),e.stopPropagation(),i.addClass("processing"),n.trigger("blur"),x(r),g(0),w(n,"remove-personal-data-processing"),function a(o,s){v.ajax({url:window.ajaxurl,data:{action:"wp-privacy-erase-personal-data",eraser:o,id:c,page:s,security:d},method:"post"}).done(function(e){var t=e.data;e.success?(t.items_removed&&(u=u||t.items_removed),t.items_retained&&(p=p||t.items_retained),t.messages&&(m=m.concat(t.messages)),t.done?(g(o),o<l?setTimeout(a(o+1,1)):setTimeout(function(){var e,t;e=h("No personal data was found for this user."),t="notice-success",w(n,"remove-personal-data-success"),!1===u?!1===p?e=h("No personal data was found for this user."):(e=h("Personal data was found for this user but was not erased."),t="notice-warning"):!1===p?e=h("All of the personal data found for this user was erased."):(e=h("Personal data was found for this user but some of the personal data found was not erased."),t="notice-warning"),T(r,t,e,m),setTimeout(function(){i.removeClass("processing")},500)},500)):setTimeout(a(o,s+1))):setTimeout(function(){f()},500)}).fail(function(){setTimeout(function(){f()},500)})}(1,1)}),v(document).on("click",function(e){var t,a,e=v(e.target),o=e.siblings(".success");if(clearTimeout(r),e.is("button.privacy-text-copy")&&(t=e.closest(".privacy-settings-accordion-panel")).length)try{var s=document.documentElement.scrollTop,n=document.body.scrollTop;window.getSelection().removeAllRanges(),a=document.createRange(),t.addClass("hide-privacy-policy-tutorial"),a.selectNodeContents(t[0]),window.getSelection().addRange(a),document.execCommand("copy"),t.removeClass("hide-privacy-policy-tutorial"),window.getSelection().removeAllRanges(),0<s&&s!==document.documentElement.scrollTop?document.documentElement.scrollTop=s:0<n&&n!==document.body.scrollTop&&(document.body.scrollTop=n),o.addClass("visible"),wp.a11y.speak(h("The suggested policy text has been copied to your clipboard.")),r=setTimeout(function(){o.removeClass("visible")},3e3)}catch(e){}}),v("body.options-privacy-php label[for=create-page]").on("click",function(e){e.preventDefault(),v("input#create-page").trigger("focus")}),v(".privacy-settings-accordion").on("click",".privacy-settings-accordion-trigger",function(){"true"===v(this).attr("aria-expanded")?(v(this).attr("aria-expanded","false"),v("#"+v(this).attr("aria-controls")).attr("hidden",!0)):(v(this).attr("aria-expanded","true"),v("#"+v(this).attr("aria-controls")).attr("hidden",!1))})}); \ No newline at end of file
diff --git a/wp-admin/js/theme-plugin-editor.js b/wp-admin/js/theme-plugin-editor.js
index 8871b04..2fd8665 100644
--- a/wp-admin/js/theme-plugin-editor.js
+++ b/wp-admin/js/theme-plugin-editor.js
@@ -191,7 +191,7 @@ wp.themePluginEditor = (function( $ ) {
return;
}
- // Scroll ot the line that has the error.
+ // Scroll to the line that has the error.
if ( component.lintErrors.length ) {
component.instance.codemirror.setCursor( component.lintErrors[0].from.line );
return;
diff --git a/wp-admin/js/theme.js b/wp-admin/js/theme.js
index 13ed5aa..65b5b4c 100644
--- a/wp-admin/js/theme.js
+++ b/wp-admin/js/theme.js
@@ -96,7 +96,7 @@ themes.view.Appearance = wp.Backbone.View.extend({
},
// Defines search element container.
- searchContainer: $( '.search-form' ),
+ searchContainer: $( '.search-form .search-box' ),
// Search input and view
// for current theme collection.
@@ -118,7 +118,7 @@ themes.view.Appearance = wp.Backbone.View.extend({
// Render and append after screen title.
view.render();
this.searchContainer
- .append( $.parseHTML( '<label class="screen-reader-text" for="wp-filter-search-input">' + l10n.search + '</label>' ) )
+ .append( $.parseHTML( '<label for="wp-filter-search-input">' + l10n.search + '</label>' ) )
.append( view.el )
.on( 'submit', function( event ) {
event.preventDefault();
@@ -926,7 +926,7 @@ themes.view.Preview = themes.view.Details.extend({
currentPreviewDevice = this.$el.data( 'current-preview-device' );
if ( currentPreviewDevice ) {
- self.tooglePreviewDeviceButtons( currentPreviewDevice );
+ self.togglePreviewDeviceButtons( currentPreviewDevice );
}
themes.router.navigate( themes.router.baseUrl( themes.router.themePath + this.model.get( 'id' ) ), { replace: false } );
@@ -988,10 +988,10 @@ themes.view.Preview = themes.view.Details.extend({
.addClass( 'preview-' + device )
.data( 'current-preview-device', device );
- this.tooglePreviewDeviceButtons( device );
+ this.togglePreviewDeviceButtons( device );
},
- tooglePreviewDeviceButtons: function( newDevice ) {
+ togglePreviewDeviceButtons: function( newDevice ) {
var $devices = $( '.wp-full-overlay-footer .devices' );
$devices.find( 'button' )
@@ -1359,7 +1359,6 @@ themes.view.Search = wp.Backbone.View.extend({
searching: false,
attributes: {
- placeholder: l10n.searchPlaceholder,
type: 'search',
'aria-describedby': 'live-search-desc'
},
diff --git a/wp-admin/js/theme.min.js b/wp-admin/js/theme.min.js
index 8f26e38..e8745ff 100644
--- a/wp-admin/js/theme.min.js
+++ b/wp-admin/js/theme.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-window.wp=window.wp||{},function(n){var o,a;function e(e,t){Backbone.history._hasPushState&&Backbone.Router.prototype.navigate.call(this,e,t)}(o=wp.themes=wp.themes||{}).data=_wpThemeSettings,a=o.data.l10n,o.isInstall=!!o.data.settings.isInstall,_.extend(o,{model:{},view:{},routes:{},router:{},template:wp.template}),o.Model=Backbone.Model.extend({initialize:function(){var e;this.get("slug")&&(-1!==_.indexOf(o.data.installedThemes,this.get("slug"))&&this.set({installed:!0}),o.data.activeTheme===this.get("slug"))&&this.set({active:!0}),this.set({id:this.get("slug")||this.get("id")}),this.has("sections")&&(e=this.get("sections").description,this.set({description:e}))}}),o.view.Appearance=wp.Backbone.View.extend({el:"#wpbody-content .wrap .theme-browser",window:n(window),page:0,initialize:function(e){_.bindAll(this,"scroller"),this.SearchView=e.SearchView||o.view.Search,this.window.on("scroll",_.throttle(this.scroller,300))},render:function(){this.view=new o.view.Themes({collection:this.collection,parent:this}),this.search(),this.$el.removeClass("search-loading"),this.view.render(),this.$el.empty().append(this.view.el).addClass("rendered")},searchContainer:n(".search-form"),search:function(){var e;1!==o.data.themes.length&&(e=new this.SearchView({collection:this.collection,parent:this}),(this.SearchView=e).render(),this.searchContainer.append(n.parseHTML('<label class="screen-reader-text" for="wp-filter-search-input">'+a.search+"</label>")).append(e.el).on("submit",function(e){e.preventDefault()}))},scroller:function(){var e=this,t=this.window.scrollTop()+e.window.height(),e=e.$el.offset().top+e.$el.outerHeight(!1)-e.window.height();Math.round(.9*e)<t&&this.trigger("theme:scroll")}}),o.Collection=Backbone.Collection.extend({model:o.Model,terms:"",doSearch:function(e){this.terms!==e&&(this.terms=e,0<this.terms.length&&this.search(this.terms),""===this.terms&&(this.reset(o.data.themes),n("body").removeClass("no-results")),this.trigger("themes:update"))},search:function(t){var i,e,s,r,a;this.reset(o.data.themes,{silent:!0}),t=(t=(t=t.trim()).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")).replace(/ /g,")(?=.*"),i=new RegExp("^(?=.*"+t+").+","i"),0===(e=this.filter(function(e){return s=e.get("name").replace(/(<([^>]+)>)/gi,""),r=e.get("description").replace(/(<([^>]+)>)/gi,""),a=e.get("author").replace(/(<([^>]+)>)/gi,""),s=_.union([s,e.get("id"),r,a,e.get("tags")]),i.test(e.get("author"))&&2<t.length&&e.set("displayAuthor",!0),i.test(s)})).length?this.trigger("query:empty"):n("body").removeClass("no-results"),this.reset(e)},paginate:function(e){var t=this;return e=e||0,t=_(t.rest(20*e)),t=_(t.first(20))},count:!1,query:function(t){var e,i,s,r=this.queries,a=this;if(this.currentQuery.request=t,e=_.find(r,function(e){return _.isEqual(e.request,t)}),(i=_.has(t,"page"))||(this.currentQuery.page=1),e||i){if(i)return this.apiCall(t,i).done(function(e){a.add(e.themes),a.trigger("query:success"),a.loadingThemes=!1}).fail(function(){a.trigger("query:fail")});0===e.themes.length?a.trigger("query:empty"):n("body").removeClass("no-results"),_.isNumber(e.total)&&(this.count=e.total),this.reset(e.themes),e.total||(this.count=this.length),this.trigger("themes:update"),this.trigger("query:success",this.count)}else this.apiCall(t).done(function(e){e.themes&&(a.reset(e.themes),s=e.info.results,r.push({themes:e.themes,request:t,total:s})),a.trigger("themes:update"),a.trigger("query:success",s),e.themes&&0===e.themes.length&&a.trigger("query:empty")}).fail(function(){a.trigger("query:fail")})},queries:[],currentQuery:{page:1,request:{}},apiCall:function(e,t){return wp.ajax.send("query-themes",{data:{request:_.extend({per_page:100},e)},beforeSend:function(){t||n("body").addClass("loading-content").removeClass("no-results")}})},loadingThemes:!1}),o.view.Theme=wp.Backbone.View.extend({className:"theme",state:"grid",html:o.template("theme"),events:{click:o.isInstall?"preview":"expand",keydown:o.isInstall?"preview":"expand",touchend:o.isInstall?"preview":"expand",keyup:"addFocus",touchmove:"preventExpand","click .theme-install":"installTheme","click .update-message":"updateTheme"},touchDrag:!1,initialize:function(){this.model.on("change",this.render,this)},render:function(){var e=this.model.toJSON();this.$el.html(this.html(e)).attr("data-slug",e.id),this.activeTheme(),this.model.get("displayAuthor")&&this.$el.addClass("display-author")},activeTheme:function(){this.model.get("active")&&this.$el.addClass("active")},addFocus:function(){var e=n(":focus").hasClass("theme")?n(":focus"):n(":focus").parents(".theme");n(".theme.focus").removeClass("focus"),e.addClass("focus")},expand:function(e){if("keydown"!==(e=e||window.event).type||13===e.which||32===e.which)return!0===this.touchDrag?this.touchDrag=!1:void(n(e.target).is(".theme-actions a")||n(e.target).is(".theme-actions a, .update-message, .button-link, .notice-dismiss")||(o.focusedTheme=this.$el,this.trigger("theme:expand",this.model.cid)))},preventExpand:function(){this.touchDrag=!0},preview:function(e){var t,i,s=this;if(e=e||window.event,!0===this.touchDrag)return this.touchDrag=!1;n(e.target).not(".install-theme-preview").parents(".theme-actions").length||"keydown"===e.type&&13!==e.which&&32!==e.which||"keydown"===e.type&&13!==e.which&&n(":focus").hasClass("button")||(e.preventDefault(),e=e||window.event,o.focusedTheme=this.$el,o.preview=i=new o.view.Preview({model:this.model}),i.render(),this.setNavButtonsState(),1===this.model.collection.length?i.$el.addClass("no-navigation"):i.$el.removeClass("no-navigation"),n("div.wrap").append(i.el),this.listenTo(i,"theme:next",function(){if(t=s.model,_.isUndefined(s.current)||(t=s.current),s.current=s.model.collection.at(s.model.collection.indexOf(t)+1),_.isUndefined(s.current))return s.options.parent.parent.trigger("theme:end"),s.current=t;i.model=s.current,i.render(),this.setNavButtonsState(),n(".next-theme").trigger("focus")}).listenTo(i,"theme:previous",function(){t=s.model,0===s.model.collection.indexOf(s.current)||(_.isUndefined(s.current)||(t=s.current),s.current=s.model.collection.at(s.model.collection.indexOf(t)-1),_.isUndefined(s.current))||(i.model=s.current,i.render(),this.setNavButtonsState(),n(".previous-theme").trigger("focus"))}),this.listenTo(i,"preview:close",function(){s.current=s.model}))},setNavButtonsState:function(){var e=n(".theme-install-overlay"),t=_.isUndefined(this.current)?this.model:this.current,i=e.find(".previous-theme"),e=e.find(".next-theme");0===this.model.collection.indexOf(t)&&(i.addClass("disabled").prop("disabled",!0),e.trigger("focus")),_.isUndefined(this.model.collection.at(this.model.collection.indexOf(t)+1))&&(e.addClass("disabled").prop("disabled",!0),i.trigger("focus"))},installTheme:function(e){var i=this;e.preventDefault(),wp.updates.maybeRequestFilesystemCredentials(e),n(document).on("wp-theme-install-success",function(e,t){i.model.get("id")===t.slug&&i.model.set({installed:!0}),t.blockTheme&&i.model.set({block_theme:!0})}),wp.updates.installTheme({slug:n(e.target).data("slug")})},updateTheme:function(e){var i=this;this.model.get("hasPackage")&&(e.preventDefault(),wp.updates.maybeRequestFilesystemCredentials(e),n(document).on("wp-theme-update-success",function(e,t){i.model.off("change",i.render,i),i.model.get("id")===t.slug&&i.model.set({hasUpdate:!1,version:t.newVersion}),i.model.on("change",i.render,i)}),wp.updates.updateTheme({slug:n(e.target).parents("div.theme").first().data("slug")}))}}),o.view.Details=wp.Backbone.View.extend({className:"theme-overlay",events:{click:"collapse","click .delete-theme":"deleteTheme","click .left":"previousTheme","click .right":"nextTheme","click #update-theme":"updateTheme","click .toggle-auto-update":"autoupdateState"},html:o.template("theme-single"),render:function(){var e=this.model.toJSON();this.$el.html(this.html(e)),this.activeTheme(),this.navigation(),this.screenshotCheck(this.$el),this.containFocus(this.$el)},activeTheme:function(){this.$el.toggleClass("active",this.model.get("active"))},containFocus:function(s){_.delay(function(){n(".theme-overlay").trigger("focus")},100),s.on("keydown.wp-themes",function(e){var t=s.find(".theme-header button:not(.disabled)").first(),i=s.find(".theme-actions a:visible").last();9===e.which&&(t[0]===e.target&&e.shiftKey?(i.trigger("focus"),e.preventDefault()):i[0]!==e.target||e.shiftKey||(t.trigger("focus"),e.preventDefault()))})},collapse:function(e){var t,i=this;e=e||window.event,1!==o.data.themes.length&&(n(e.target).is(".theme-backdrop")||n(e.target).is(".close")||27===e.keyCode)&&(n("body").addClass("closing-overlay"),this.$el.fadeOut(130,function(){n("body").removeClass("closing-overlay"),i.closeOverlay(),t=document.body.scrollTop,o.router.navigate(o.router.baseUrl("")),document.body.scrollTop=t,o.focusedTheme&&o.focusedTheme.find(".more-details").trigger("focus")}))},navigation:function(){this.model.cid===this.model.collection.at(0).cid&&this.$el.find(".left").addClass("disabled").prop("disabled",!0),this.model.cid===this.model.collection.at(this.model.collection.length-1).cid&&this.$el.find(".right").addClass("disabled").prop("disabled",!0)},closeOverlay:function(){n("body").removeClass("modal-open"),this.remove(),this.unbind(),this.trigger("theme:collapse")},autoupdateState:function(){var s=this,r=function(e,t){var i;s.model.get("id")===t.asset&&((i=s.model.get("autoupdate")).enabled="enable"===t.state,s.model.set({autoupdate:i}),n(document).off("wp-auto-update-setting-changed",r))};n(document).on("wp-auto-update-setting-changed",r)},updateTheme:function(e){var i=this;e.preventDefault(),wp.updates.maybeRequestFilesystemCredentials(e),n(document).on("wp-theme-update-success",function(e,t){i.model.get("id")===t.slug&&i.model.set({hasUpdate:!1,version:t.newVersion}),i.render()}),wp.updates.updateTheme({slug:n(e.target).data("slug")})},deleteTheme:function(e){var i=this,s=i.model.collection,r=o;e.preventDefault(),window.confirm(wp.themes.data.settings.confirmDelete)&&(wp.updates.maybeRequestFilesystemCredentials(e),n(document).one("wp-theme-delete-success",function(e,t){i.$el.find(".close").trigger("click"),n('[data-slug="'+t.slug+'"]').css({backgroundColor:"#faafaa"}).fadeOut(350,function(){n(this).remove(),r.data.themes=_.without(r.data.themes,_.findWhere(r.data.themes,{id:t.slug})),n(".wp-filter-search").val(""),s.doSearch(""),s.remove(i.model),s.trigger("themes:update")})}),wp.updates.deleteTheme({slug:this.model.get("id")}))},nextTheme:function(){return this.trigger("theme:next",this.model.cid),!1},previousTheme:function(){return this.trigger("theme:previous",this.model.cid),!1},screenshotCheck:function(e){var t=e.find(".screenshot img"),i=new Image;i.src=t.attr("src"),i.width&&i.width<=300&&e.addClass("small-screenshot")}}),o.view.Preview=o.view.Details.extend({className:"wp-full-overlay expanded",el:".theme-install-overlay",events:{"click .close-full-overlay":"close","click .collapse-sidebar":"collapse","click .devices button":"previewDevice","click .previous-theme":"previousTheme","click .next-theme":"nextTheme",keyup:"keyEvent","click .theme-install":"installTheme"},html:o.template("theme-preview"),render:function(){var e=this,t=this.model.toJSON(),i=n(document.body);i.attr("aria-busy","true"),this.$el.removeClass("iframe-ready").html(this.html(t)),(t=this.$el.data("current-preview-device"))&&e.tooglePreviewDeviceButtons(t),o.router.navigate(o.router.baseUrl(o.router.themePath+this.model.get("id")),{replace:!1}),this.$el.fadeIn(200,function(){i.addClass("theme-installer-active full-overlay-active")}),this.$el.find("iframe").one("load",function(){e.iframeLoaded()})},iframeLoaded:function(){this.$el.addClass("iframe-ready"),n(document.body).attr("aria-busy","false")},close:function(){return this.$el.fadeOut(200,function(){n("body").removeClass("theme-installer-active full-overlay-active"),o.focusedTheme&&o.focusedTheme.find(".more-details").trigger("focus")}).removeClass("iframe-ready"),o.router.selectedTab?(o.router.navigate(o.router.baseUrl("?browse="+o.router.selectedTab)),o.router.selectedTab=!1):o.router.navigate(o.router.baseUrl("")),this.trigger("preview:close"),this.undelegateEvents(),this.unbind(),!1},collapse:function(e){e=n(e.currentTarget);return"true"===e.attr("aria-expanded")?e.attr({"aria-expanded":"false","aria-label":a.expandSidebar}):e.attr({"aria-expanded":"true","aria-label":a.collapseSidebar}),this.$el.toggleClass("collapsed").toggleClass("expanded"),!1},previewDevice:function(e){e=n(e.currentTarget).data("device");this.$el.removeClass("preview-desktop preview-tablet preview-mobile").addClass("preview-"+e).data("current-preview-device",e),this.tooglePreviewDeviceButtons(e)},tooglePreviewDeviceButtons:function(e){var t=n(".wp-full-overlay-footer .devices");t.find("button").removeClass("active").attr("aria-pressed",!1),t.find("button.preview-"+e).addClass("active").attr("aria-pressed",!0)},keyEvent:function(e){27===e.keyCode&&(this.undelegateEvents(),this.close()),39===e.keyCode&&_.once(this.nextTheme()),37===e.keyCode&&this.previousTheme()},installTheme:function(e){var t=this,i=n(e.target);e.preventDefault(),i.hasClass("disabled")||(wp.updates.maybeRequestFilesystemCredentials(e),n(document).on("wp-theme-install-success",function(){t.model.set({installed:!0})}),wp.updates.installTheme({slug:i.data("slug")}))}}),o.view.Themes=wp.Backbone.View.extend({className:"themes wp-clearfix",$overlay:n("div.theme-overlay"),index:0,count:n(".wrap .theme-count"),liveThemeCount:0,initialize:function(e){var t=this;this.parent=e.parent,this.setView("grid"),t.currentTheme(),this.listenTo(t.collection,"themes:update",function(){t.parent.page=0,t.currentTheme(),t.render(this)}),this.listenTo(t.collection,"query:success",function(e){_.isNumber(e)?(t.count.text(e),t.announceSearchResults(e)):(t.count.text(t.collection.length),t.announceSearchResults(t.collection.length))}),this.listenTo(t.collection,"query:empty",function(){n("body").addClass("no-results")}),this.listenTo(this.parent,"theme:scroll",function(){t.renderThemes(t.parent.page)}),this.listenTo(this.parent,"theme:close",function(){t.overlay&&t.overlay.closeOverlay()}),n("body").on("keyup",function(e){!t.overlay||n("#request-filesystem-credentials-dialog").is(":visible")||(39===e.keyCode&&t.overlay.nextTheme(),37===e.keyCode&&t.overlay.previousTheme(),27===e.keyCode&&t.overlay.collapse(e))})},render:function(){this.$el.empty(),1===o.data.themes.length&&(this.singleTheme=new o.view.Details({model:this.collection.models[0]}),this.singleTheme.render(),this.$el.addClass("single-theme"),this.$el.append(this.singleTheme.el)),0<this.options.collection.size()&&this.renderThemes(this.parent.page),this.liveThemeCount=this.collection.count||this.collection.length,this.count.text(this.liveThemeCount),o.isInstall||this.announceSearchResults(this.liveThemeCount)},renderThemes:function(e){var t=this;t.instance=t.collection.paginate(e),0===t.instance.size()?this.parent.trigger("theme:end"):(!o.isInstall&&1<=e&&n(".add-new-theme").remove(),t.instance.each(function(e){t.theme=new o.view.Theme({model:e,parent:t}),t.theme.render(),t.$el.append(t.theme.el),t.listenTo(t.theme,"theme:expand",t.expand,t)}),!o.isInstall&&o.data.settings.canInstall&&this.$el.append('<div class="theme add-new-theme"><a href="'+o.data.settings.installURI+'"><div class="theme-screenshot"><span></span></div><h2 class="theme-name">'+a.addNew+"</h2></a></div>"),this.parent.page++)},currentTheme:function(){var e=this.collection.findWhere({active:!0});e&&(this.collection.remove(e),this.collection.add(e,{at:0}))},setView:function(e){return e},expand:function(e){var t,i=this;this.model=i.collection.get(e),o.router.navigate(o.router.baseUrl(o.router.themePath+this.model.id)),this.setView("detail"),n("body").addClass("modal-open"),this.overlay=new o.view.Details({model:i.model}),this.overlay.render(),this.model.get("hasUpdate")&&(e=n('[data-slug="'+this.model.id+'"]'),t=n(this.overlay.el),e.find(".updating-message").length?(t.find(".notice-warning h3").remove(),t.find(".notice-warning").removeClass("notice-large").addClass("updating-message").find("p").text(wp.updates.l10n.updating)):e.find(".notice-error").length&&t.find(".notice-warning").remove()),this.$overlay.html(this.overlay.el),this.listenTo(this.overlay,"theme:next",function(){i.next([i.model.cid])}).listenTo(this.overlay,"theme:previous",function(){i.previous([i.model.cid])})},next:function(e){e=this.collection.get(e[0]),e=this.collection.at(this.collection.indexOf(e)+1);void 0!==e&&(this.overlay.closeOverlay(),this.theme.trigger("theme:expand",e.cid))},previous:function(e){e=this.collection.get(e[0]),e=this.collection.at(this.collection.indexOf(e)-1);void 0!==e&&(this.overlay.closeOverlay(),this.theme.trigger("theme:expand",e.cid))},announceSearchResults:function(e){0===e?wp.a11y.speak(a.noThemesFound):wp.a11y.speak(a.themesFound.replace("%d",e))}}),o.view.Search=wp.Backbone.View.extend({tagName:"input",className:"wp-filter-search",id:"wp-filter-search-input",searching:!1,attributes:{placeholder:a.searchPlaceholder,type:"search","aria-describedby":"live-search-desc"},events:{input:"search",keyup:"search",blur:"pushState"},initialize:function(e){this.parent=e.parent,this.listenTo(this.parent,"theme:close",function(){this.searching=!1})},search:function(e){"keyup"===e.type&&27===e.which&&(e.target.value=""),this.doSearch(e)},doSearch:function(e){var t={};this.collection.doSearch(e.target.value.replace(/\+/g," ")),this.searching&&13!==e.which?t.replace=!0:this.searching=!0,e.target.value?o.router.navigate(o.router.baseUrl(o.router.searchPath+e.target.value),t):o.router.navigate(o.router.baseUrl(""))},pushState:function(e){var t=o.router.baseUrl("");e.target.value&&(t=o.router.baseUrl(o.router.searchPath+encodeURIComponent(e.target.value))),this.searching=!1,o.router.navigate(t)}}),o.Router=Backbone.Router.extend({routes:{"themes.php?theme=:slug":"theme","themes.php?search=:query":"search","themes.php?s=:query":"search","themes.php":"themes","":"themes"},baseUrl:function(e){return"themes.php"+e},themePath:"?theme=",searchPath:"?search=",search:function(e){n(".wp-filter-search").val(e.replace(/\+/g," "))},themes:function(){n(".wp-filter-search").val("")},navigate:e}),o.Run={init:function(){this.themes=new o.Collection(o.data.themes),this.view=new o.view.Appearance({collection:this.themes}),this.render(),this.view.SearchView.doSearch=_.debounce(this.view.SearchView.doSearch,500)},render:function(){this.view.render(),this.routes(),Backbone.History.started&&Backbone.history.stop(),Backbone.history.start({root:o.data.settings.adminUrl,pushState:!0,hashChange:!1})},routes:function(){var t=this;o.router=new o.Router,o.router.on("route:theme",function(e){t.view.view.expand(e)}),o.router.on("route:themes",function(){t.themes.doSearch(""),t.view.trigger("theme:close")}),o.router.on("route:search",function(){n(".wp-filter-search").trigger("keyup")}),this.extraRoutes()},extraRoutes:function(){return!1}},o.view.InstallerSearch=o.view.Search.extend({events:{input:"search",keyup:"search"},terms:"",search:function(e){("keyup"!==e.type||9!==e.which&&16!==e.which)&&(this.collection=this.options.parent.view.collection,"keyup"===e.type&&27===e.which&&(e.target.value=""),this.doSearch(e.target.value))},doSearch:function(e){var t={};this.terms!==e&&(this.terms=e,"author:"===(t.search=e).substring(0,7)&&(t.search="",t.author=e.slice(7)),"tag:"===e.substring(0,4)&&(t.search="",t.tag=[e.slice(4)]),n(".filter-links li > a.current").removeClass("current").removeAttr("aria-current"),n("body").removeClass("show-filters filters-applied show-favorites-form"),n(".drawer-toggle").attr("aria-expanded","false"),this.collection.query(t),o.router.navigate(o.router.baseUrl(o.router.searchPath+encodeURIComponent(e)),{replace:!0}))}}),o.view.Installer=o.view.Appearance.extend({el:"#wpbody-content .wrap",events:{"click .filter-links li > a":"onSort","click .theme-filter":"onFilter","click .drawer-toggle":"moreFilters","click .filter-drawer .apply-filters":"applyFilters",'click .filter-group [type="checkbox"]':"addFilter","click .filter-drawer .clear-filters":"clearFilters","click .edit-filters":"backToFilters","click .favorites-form-submit":"saveUsername","keyup #wporg-username-input":"saveUsername"},render:function(){var e=this;this.search(),this.uploader(),this.collection=new o.Collection,this.listenTo(this,"theme:end",function(){e.collection.loadingThemes||(e.collection.loadingThemes=!0,e.collection.currentQuery.page++,_.extend(e.collection.currentQuery.request,{page:e.collection.currentQuery.page}),e.collection.query(e.collection.currentQuery.request))}),this.listenTo(this.collection,"query:success",function(){n("body").removeClass("loading-content"),n(".theme-browser").find("div.error").remove()}),this.listenTo(this.collection,"query:fail",function(){n("body").removeClass("loading-content"),n(".theme-browser").find("div.error").remove(),n(".theme-browser").find("div.themes").before('<div class="error"><p>'+a.error+'</p><p><button class="button try-again">'+a.tryAgain+"</button></p></div>"),n(".theme-browser .error .try-again").on("click",function(e){e.preventDefault(),n("input.wp-filter-search").trigger("input")})}),this.view&&this.view.remove(),this.view=new o.view.Themes({collection:this.collection,parent:this}),this.page=0,this.$el.find(".themes").remove(),this.view.render(),this.$el.find(".theme-browser").append(this.view.el).addClass("rendered")},browse:function(e){"block-themes"===e?this.collection.query({tag:"full-site-editing"}):this.collection.query({browse:e})},onSort:function(e){var t=n(e.target),i=t.data("sort");e.preventDefault(),n("body").removeClass("filters-applied show-filters"),n(".drawer-toggle").attr("aria-expanded","false"),t.hasClass(this.activeClass)||(this.sort(i),o.router.navigate(o.router.baseUrl(o.router.browsePath+i)))},sort:function(e){this.clearSearch(),o.router.selectedTab=e,n(".filter-links li > a, .theme-filter").removeClass(this.activeClass).removeAttr("aria-current"),n('[data-sort="'+e+'"]').addClass(this.activeClass).attr("aria-current","page"),"favorites"===e?n("body").addClass("show-favorites-form"):n("body").removeClass("show-favorites-form"),this.browse(e)},onFilter:function(e){var e=n(e.target),t=e.data("filter");e.hasClass(this.activeClass)||(n(".filter-links li > a, .theme-section").removeClass(this.activeClass).removeAttr("aria-current"),e.addClass(this.activeClass).attr("aria-current","page"),t&&(t=_.union([t,this.filtersChecked()]),this.collection.query({tag:[t]})))},addFilter:function(){this.filtersChecked()},applyFilters:function(e){var t,i=this.filtersChecked(),s={tag:i},r=n(".filtered-by .tags");e&&e.preventDefault(),i?(n("body").addClass("filters-applied"),n(".filter-links li > a.current").removeClass("current").removeAttr("aria-current"),r.empty(),_.each(i,function(e){t=n('label[for="filter-id-'+e+'"]').text(),r.append('<span class="tag">'+t+"</span>")}),this.collection.query(s)):wp.a11y.speak(a.selectFeatureFilter)},saveUsername:function(e){var t=n("#wporg-username-input").val(),i=n("#wporg-username-nonce").val(),s={browse:"favorites",user:t},r=this;if(e&&e.preventDefault(),"keyup"!==e.type||13===e.which)return wp.ajax.send("save-wporg-username",{data:{_wpnonce:i,username:t},success:function(){r.collection.query(s)}})},filtersChecked:function(){var e=n(".filter-group").find(":checkbox"),t=[];return _.each(e.filter(":checked"),function(e){t.push(n(e).prop("value"))}),0===t.length?(n(".filter-drawer .apply-filters").find("span").text(""),n(".filter-drawer .clear-filters").hide(),n("body").removeClass("filters-applied"),!1):(n(".filter-drawer .apply-filters").find("span").text(t.length),n(".filter-drawer .clear-filters").css("display","inline-block"),t)},activeClass:"current",uploader:function(){var e=n(".upload-view-toggle"),t=n(document.body);e.on("click",function(){t.toggleClass("show-upload-view"),e.attr("aria-expanded",t.hasClass("show-upload-view"))})},moreFilters:function(e){var t=n("body"),i=n(".drawer-toggle");if(e.preventDefault(),t.hasClass("filters-applied"))return this.backToFilters();this.clearSearch(),o.router.navigate(o.router.baseUrl("")),t.toggleClass("show-filters"),i.attr("aria-expanded",t.hasClass("show-filters"))},clearFilters:function(e){var t=n(".filter-group").find(":checkbox"),i=this;e.preventDefault(),_.each(t.filter(":checked"),function(e){return n(e).prop("checked",!1),i.filtersChecked()})},backToFilters:function(e){e&&e.preventDefault(),n("body").removeClass("filters-applied")},clearSearch:function(){n("#wp-filter-search-input").val("")}}),o.InstallerRouter=Backbone.Router.extend({routes:{"theme-install.php?theme=:slug":"preview","theme-install.php?browse=:sort":"sort","theme-install.php?search=:query":"search","theme-install.php":"sort"},baseUrl:function(e){return"theme-install.php"+e},themePath:"?theme=",browsePath:"?browse=",searchPath:"?search=",search:function(e){n(".wp-filter-search").val(e.replace(/\+/g," "))},navigate:e}),o.RunInstaller={init:function(){this.view=new o.view.Installer({section:"popular",SearchView:o.view.InstallerSearch}),this.render(),this.view.SearchView.doSearch=_.debounce(this.view.SearchView.doSearch,500)},render:function(){this.view.render(),this.routes(),Backbone.History.started&&Backbone.history.stop(),Backbone.history.start({root:o.data.settings.adminUrl,pushState:!0,hashChange:!1})},routes:function(){var t=this,i={};o.router=new o.InstallerRouter,o.router.on("route:preview",function(e){o.preview&&(o.preview.undelegateEvents(),o.preview.unbind()),t.view.view.theme&&t.view.view.theme.preview?(t.view.view.theme.model=t.view.collection.findWhere({slug:e}),t.view.view.theme.preview()):(i.theme=e,t.view.collection.query(i),t.view.collection.trigger("update"),t.view.collection.once("query:success",function(){n('div[data-slug="'+e+'"]').trigger("click")}))}),o.router.on("route:sort",function(e){e||(e="popular",o.router.navigate(o.router.baseUrl("?browse=popular"),{replace:!0})),t.view.sort(e),o.preview&&o.preview.close()}),o.router.on("route:search",function(){n(".wp-filter-search").trigger("focus").trigger("keyup")}),this.extraRoutes()},extraRoutes:function(){return!1}},n(function(){(o.isInstall?o.RunInstaller:o.Run).init(),n(document.body).on("click",".load-customize",function(){var e=n(this),t=document.createElement("a");t.href=e.prop("href"),t.search=n.param(_.extend(wp.customize.utils.parseQueryString(t.search.substr(1)),{return:window.location.href})),e.prop("href",t.href)}),n(".broken-themes .delete-theme").on("click",function(){return confirm(_wpThemeSettings.settings.confirmDelete)})})}(jQuery),jQuery(function(r){window.tb_position=function(){var e=r("#TB_window"),t=r(window).width(),i=r(window).height(),t=1040<t?1040:t,s=0;r("#wpadminbar").length&&(s=parseInt(r("#wpadminbar").css("height"),10)),1<=e.length&&(e.width(t-50).height(i-45-s),r("#TB_iframeContent").width(t-50).height(i-75-s),e.css({"margin-left":"-"+parseInt((t-50)/2,10)+"px"}),void 0!==document.body.style.maxWidth)&&e.css({top:20+s+"px","margin-top":"0"})},r(window).on("resize",function(){tb_position()})}); \ No newline at end of file
+window.wp=window.wp||{},function(n){var o,a;function e(e,t){Backbone.history._hasPushState&&Backbone.Router.prototype.navigate.call(this,e,t)}(o=wp.themes=wp.themes||{}).data=_wpThemeSettings,a=o.data.l10n,o.isInstall=!!o.data.settings.isInstall,_.extend(o,{model:{},view:{},routes:{},router:{},template:wp.template}),o.Model=Backbone.Model.extend({initialize:function(){var e;this.get("slug")&&(-1!==_.indexOf(o.data.installedThemes,this.get("slug"))&&this.set({installed:!0}),o.data.activeTheme===this.get("slug"))&&this.set({active:!0}),this.set({id:this.get("slug")||this.get("id")}),this.has("sections")&&(e=this.get("sections").description,this.set({description:e}))}}),o.view.Appearance=wp.Backbone.View.extend({el:"#wpbody-content .wrap .theme-browser",window:n(window),page:0,initialize:function(e){_.bindAll(this,"scroller"),this.SearchView=e.SearchView||o.view.Search,this.window.on("scroll",_.throttle(this.scroller,300))},render:function(){this.view=new o.view.Themes({collection:this.collection,parent:this}),this.search(),this.$el.removeClass("search-loading"),this.view.render(),this.$el.empty().append(this.view.el).addClass("rendered")},searchContainer:n(".search-form .search-box"),search:function(){var e;1!==o.data.themes.length&&(e=new this.SearchView({collection:this.collection,parent:this}),(this.SearchView=e).render(),this.searchContainer.append(n.parseHTML('<label for="wp-filter-search-input">'+a.search+"</label>")).append(e.el).on("submit",function(e){e.preventDefault()}))},scroller:function(){var e=this,t=this.window.scrollTop()+e.window.height(),e=e.$el.offset().top+e.$el.outerHeight(!1)-e.window.height();Math.round(.9*e)<t&&this.trigger("theme:scroll")}}),o.Collection=Backbone.Collection.extend({model:o.Model,terms:"",doSearch:function(e){this.terms!==e&&(this.terms=e,0<this.terms.length&&this.search(this.terms),""===this.terms&&(this.reset(o.data.themes),n("body").removeClass("no-results")),this.trigger("themes:update"))},search:function(t){var i,e,s,r,a;this.reset(o.data.themes,{silent:!0}),t=(t=(t=t.trim()).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")).replace(/ /g,")(?=.*"),i=new RegExp("^(?=.*"+t+").+","i"),0===(e=this.filter(function(e){return s=e.get("name").replace(/(<([^>]+)>)/gi,""),r=e.get("description").replace(/(<([^>]+)>)/gi,""),a=e.get("author").replace(/(<([^>]+)>)/gi,""),s=_.union([s,e.get("id"),r,a,e.get("tags")]),i.test(e.get("author"))&&2<t.length&&e.set("displayAuthor",!0),i.test(s)})).length?this.trigger("query:empty"):n("body").removeClass("no-results"),this.reset(e)},paginate:function(e){var t=this;return e=e||0,t=_(t.rest(20*e)),t=_(t.first(20))},count:!1,query:function(t){var e,i,s,r=this.queries,a=this;if(this.currentQuery.request=t,e=_.find(r,function(e){return _.isEqual(e.request,t)}),(i=_.has(t,"page"))||(this.currentQuery.page=1),e||i){if(i)return this.apiCall(t,i).done(function(e){a.add(e.themes),a.trigger("query:success"),a.loadingThemes=!1}).fail(function(){a.trigger("query:fail")});0===e.themes.length?a.trigger("query:empty"):n("body").removeClass("no-results"),_.isNumber(e.total)&&(this.count=e.total),this.reset(e.themes),e.total||(this.count=this.length),this.trigger("themes:update"),this.trigger("query:success",this.count)}else this.apiCall(t).done(function(e){e.themes&&(a.reset(e.themes),s=e.info.results,r.push({themes:e.themes,request:t,total:s})),a.trigger("themes:update"),a.trigger("query:success",s),e.themes&&0===e.themes.length&&a.trigger("query:empty")}).fail(function(){a.trigger("query:fail")})},queries:[],currentQuery:{page:1,request:{}},apiCall:function(e,t){return wp.ajax.send("query-themes",{data:{request:_.extend({per_page:100},e)},beforeSend:function(){t||n("body").addClass("loading-content").removeClass("no-results")}})},loadingThemes:!1}),o.view.Theme=wp.Backbone.View.extend({className:"theme",state:"grid",html:o.template("theme"),events:{click:o.isInstall?"preview":"expand",keydown:o.isInstall?"preview":"expand",touchend:o.isInstall?"preview":"expand",keyup:"addFocus",touchmove:"preventExpand","click .theme-install":"installTheme","click .update-message":"updateTheme"},touchDrag:!1,initialize:function(){this.model.on("change",this.render,this)},render:function(){var e=this.model.toJSON();this.$el.html(this.html(e)).attr("data-slug",e.id),this.activeTheme(),this.model.get("displayAuthor")&&this.$el.addClass("display-author")},activeTheme:function(){this.model.get("active")&&this.$el.addClass("active")},addFocus:function(){var e=n(":focus").hasClass("theme")?n(":focus"):n(":focus").parents(".theme");n(".theme.focus").removeClass("focus"),e.addClass("focus")},expand:function(e){if("keydown"!==(e=e||window.event).type||13===e.which||32===e.which)return!0===this.touchDrag?this.touchDrag=!1:void(n(e.target).is(".theme-actions a")||n(e.target).is(".theme-actions a, .update-message, .button-link, .notice-dismiss")||(o.focusedTheme=this.$el,this.trigger("theme:expand",this.model.cid)))},preventExpand:function(){this.touchDrag=!0},preview:function(e){var t,i,s=this;if(e=e||window.event,!0===this.touchDrag)return this.touchDrag=!1;n(e.target).not(".install-theme-preview").parents(".theme-actions").length||"keydown"===e.type&&13!==e.which&&32!==e.which||"keydown"===e.type&&13!==e.which&&n(":focus").hasClass("button")||(e.preventDefault(),e=e||window.event,o.focusedTheme=this.$el,o.preview=i=new o.view.Preview({model:this.model}),i.render(),this.setNavButtonsState(),1===this.model.collection.length?i.$el.addClass("no-navigation"):i.$el.removeClass("no-navigation"),n("div.wrap").append(i.el),this.listenTo(i,"theme:next",function(){if(t=s.model,_.isUndefined(s.current)||(t=s.current),s.current=s.model.collection.at(s.model.collection.indexOf(t)+1),_.isUndefined(s.current))return s.options.parent.parent.trigger("theme:end"),s.current=t;i.model=s.current,i.render(),this.setNavButtonsState(),n(".next-theme").trigger("focus")}).listenTo(i,"theme:previous",function(){t=s.model,0===s.model.collection.indexOf(s.current)||(_.isUndefined(s.current)||(t=s.current),s.current=s.model.collection.at(s.model.collection.indexOf(t)-1),_.isUndefined(s.current))||(i.model=s.current,i.render(),this.setNavButtonsState(),n(".previous-theme").trigger("focus"))}),this.listenTo(i,"preview:close",function(){s.current=s.model}))},setNavButtonsState:function(){var e=n(".theme-install-overlay"),t=_.isUndefined(this.current)?this.model:this.current,i=e.find(".previous-theme"),e=e.find(".next-theme");0===this.model.collection.indexOf(t)&&(i.addClass("disabled").prop("disabled",!0),e.trigger("focus")),_.isUndefined(this.model.collection.at(this.model.collection.indexOf(t)+1))&&(e.addClass("disabled").prop("disabled",!0),i.trigger("focus"))},installTheme:function(e){var i=this;e.preventDefault(),wp.updates.maybeRequestFilesystemCredentials(e),n(document).on("wp-theme-install-success",function(e,t){i.model.get("id")===t.slug&&i.model.set({installed:!0}),t.blockTheme&&i.model.set({block_theme:!0})}),wp.updates.installTheme({slug:n(e.target).data("slug")})},updateTheme:function(e){var i=this;this.model.get("hasPackage")&&(e.preventDefault(),wp.updates.maybeRequestFilesystemCredentials(e),n(document).on("wp-theme-update-success",function(e,t){i.model.off("change",i.render,i),i.model.get("id")===t.slug&&i.model.set({hasUpdate:!1,version:t.newVersion}),i.model.on("change",i.render,i)}),wp.updates.updateTheme({slug:n(e.target).parents("div.theme").first().data("slug")}))}}),o.view.Details=wp.Backbone.View.extend({className:"theme-overlay",events:{click:"collapse","click .delete-theme":"deleteTheme","click .left":"previousTheme","click .right":"nextTheme","click #update-theme":"updateTheme","click .toggle-auto-update":"autoupdateState"},html:o.template("theme-single"),render:function(){var e=this.model.toJSON();this.$el.html(this.html(e)),this.activeTheme(),this.navigation(),this.screenshotCheck(this.$el),this.containFocus(this.$el)},activeTheme:function(){this.$el.toggleClass("active",this.model.get("active"))},containFocus:function(s){_.delay(function(){n(".theme-overlay").trigger("focus")},100),s.on("keydown.wp-themes",function(e){var t=s.find(".theme-header button:not(.disabled)").first(),i=s.find(".theme-actions a:visible").last();9===e.which&&(t[0]===e.target&&e.shiftKey?(i.trigger("focus"),e.preventDefault()):i[0]!==e.target||e.shiftKey||(t.trigger("focus"),e.preventDefault()))})},collapse:function(e){var t,i=this;e=e||window.event,1!==o.data.themes.length&&(n(e.target).is(".theme-backdrop")||n(e.target).is(".close")||27===e.keyCode)&&(n("body").addClass("closing-overlay"),this.$el.fadeOut(130,function(){n("body").removeClass("closing-overlay"),i.closeOverlay(),t=document.body.scrollTop,o.router.navigate(o.router.baseUrl("")),document.body.scrollTop=t,o.focusedTheme&&o.focusedTheme.find(".more-details").trigger("focus")}))},navigation:function(){this.model.cid===this.model.collection.at(0).cid&&this.$el.find(".left").addClass("disabled").prop("disabled",!0),this.model.cid===this.model.collection.at(this.model.collection.length-1).cid&&this.$el.find(".right").addClass("disabled").prop("disabled",!0)},closeOverlay:function(){n("body").removeClass("modal-open"),this.remove(),this.unbind(),this.trigger("theme:collapse")},autoupdateState:function(){var s=this,r=function(e,t){var i;s.model.get("id")===t.asset&&((i=s.model.get("autoupdate")).enabled="enable"===t.state,s.model.set({autoupdate:i}),n(document).off("wp-auto-update-setting-changed",r))};n(document).on("wp-auto-update-setting-changed",r)},updateTheme:function(e){var i=this;e.preventDefault(),wp.updates.maybeRequestFilesystemCredentials(e),n(document).on("wp-theme-update-success",function(e,t){i.model.get("id")===t.slug&&i.model.set({hasUpdate:!1,version:t.newVersion}),i.render()}),wp.updates.updateTheme({slug:n(e.target).data("slug")})},deleteTheme:function(e){var i=this,s=i.model.collection,r=o;e.preventDefault(),window.confirm(wp.themes.data.settings.confirmDelete)&&(wp.updates.maybeRequestFilesystemCredentials(e),n(document).one("wp-theme-delete-success",function(e,t){i.$el.find(".close").trigger("click"),n('[data-slug="'+t.slug+'"]').css({backgroundColor:"#faafaa"}).fadeOut(350,function(){n(this).remove(),r.data.themes=_.without(r.data.themes,_.findWhere(r.data.themes,{id:t.slug})),n(".wp-filter-search").val(""),s.doSearch(""),s.remove(i.model),s.trigger("themes:update")})}),wp.updates.deleteTheme({slug:this.model.get("id")}))},nextTheme:function(){return this.trigger("theme:next",this.model.cid),!1},previousTheme:function(){return this.trigger("theme:previous",this.model.cid),!1},screenshotCheck:function(e){var t=e.find(".screenshot img"),i=new Image;i.src=t.attr("src"),i.width&&i.width<=300&&e.addClass("small-screenshot")}}),o.view.Preview=o.view.Details.extend({className:"wp-full-overlay expanded",el:".theme-install-overlay",events:{"click .close-full-overlay":"close","click .collapse-sidebar":"collapse","click .devices button":"previewDevice","click .previous-theme":"previousTheme","click .next-theme":"nextTheme",keyup:"keyEvent","click .theme-install":"installTheme"},html:o.template("theme-preview"),render:function(){var e=this,t=this.model.toJSON(),i=n(document.body);i.attr("aria-busy","true"),this.$el.removeClass("iframe-ready").html(this.html(t)),(t=this.$el.data("current-preview-device"))&&e.togglePreviewDeviceButtons(t),o.router.navigate(o.router.baseUrl(o.router.themePath+this.model.get("id")),{replace:!1}),this.$el.fadeIn(200,function(){i.addClass("theme-installer-active full-overlay-active")}),this.$el.find("iframe").one("load",function(){e.iframeLoaded()})},iframeLoaded:function(){this.$el.addClass("iframe-ready"),n(document.body).attr("aria-busy","false")},close:function(){return this.$el.fadeOut(200,function(){n("body").removeClass("theme-installer-active full-overlay-active"),o.focusedTheme&&o.focusedTheme.find(".more-details").trigger("focus")}).removeClass("iframe-ready"),o.router.selectedTab?(o.router.navigate(o.router.baseUrl("?browse="+o.router.selectedTab)),o.router.selectedTab=!1):o.router.navigate(o.router.baseUrl("")),this.trigger("preview:close"),this.undelegateEvents(),this.unbind(),!1},collapse:function(e){e=n(e.currentTarget);return"true"===e.attr("aria-expanded")?e.attr({"aria-expanded":"false","aria-label":a.expandSidebar}):e.attr({"aria-expanded":"true","aria-label":a.collapseSidebar}),this.$el.toggleClass("collapsed").toggleClass("expanded"),!1},previewDevice:function(e){e=n(e.currentTarget).data("device");this.$el.removeClass("preview-desktop preview-tablet preview-mobile").addClass("preview-"+e).data("current-preview-device",e),this.togglePreviewDeviceButtons(e)},togglePreviewDeviceButtons:function(e){var t=n(".wp-full-overlay-footer .devices");t.find("button").removeClass("active").attr("aria-pressed",!1),t.find("button.preview-"+e).addClass("active").attr("aria-pressed",!0)},keyEvent:function(e){27===e.keyCode&&(this.undelegateEvents(),this.close()),39===e.keyCode&&_.once(this.nextTheme()),37===e.keyCode&&this.previousTheme()},installTheme:function(e){var t=this,i=n(e.target);e.preventDefault(),i.hasClass("disabled")||(wp.updates.maybeRequestFilesystemCredentials(e),n(document).on("wp-theme-install-success",function(){t.model.set({installed:!0})}),wp.updates.installTheme({slug:i.data("slug")}))}}),o.view.Themes=wp.Backbone.View.extend({className:"themes wp-clearfix",$overlay:n("div.theme-overlay"),index:0,count:n(".wrap .theme-count"),liveThemeCount:0,initialize:function(e){var t=this;this.parent=e.parent,this.setView("grid"),t.currentTheme(),this.listenTo(t.collection,"themes:update",function(){t.parent.page=0,t.currentTheme(),t.render(this)}),this.listenTo(t.collection,"query:success",function(e){_.isNumber(e)?(t.count.text(e),t.announceSearchResults(e)):(t.count.text(t.collection.length),t.announceSearchResults(t.collection.length))}),this.listenTo(t.collection,"query:empty",function(){n("body").addClass("no-results")}),this.listenTo(this.parent,"theme:scroll",function(){t.renderThemes(t.parent.page)}),this.listenTo(this.parent,"theme:close",function(){t.overlay&&t.overlay.closeOverlay()}),n("body").on("keyup",function(e){!t.overlay||n("#request-filesystem-credentials-dialog").is(":visible")||(39===e.keyCode&&t.overlay.nextTheme(),37===e.keyCode&&t.overlay.previousTheme(),27===e.keyCode&&t.overlay.collapse(e))})},render:function(){this.$el.empty(),1===o.data.themes.length&&(this.singleTheme=new o.view.Details({model:this.collection.models[0]}),this.singleTheme.render(),this.$el.addClass("single-theme"),this.$el.append(this.singleTheme.el)),0<this.options.collection.size()&&this.renderThemes(this.parent.page),this.liveThemeCount=this.collection.count||this.collection.length,this.count.text(this.liveThemeCount),o.isInstall||this.announceSearchResults(this.liveThemeCount)},renderThemes:function(e){var t=this;t.instance=t.collection.paginate(e),0===t.instance.size()?this.parent.trigger("theme:end"):(!o.isInstall&&1<=e&&n(".add-new-theme").remove(),t.instance.each(function(e){t.theme=new o.view.Theme({model:e,parent:t}),t.theme.render(),t.$el.append(t.theme.el),t.listenTo(t.theme,"theme:expand",t.expand,t)}),!o.isInstall&&o.data.settings.canInstall&&this.$el.append('<div class="theme add-new-theme"><a href="'+o.data.settings.installURI+'"><div class="theme-screenshot"><span></span></div><h2 class="theme-name">'+a.addNew+"</h2></a></div>"),this.parent.page++)},currentTheme:function(){var e=this.collection.findWhere({active:!0});e&&(this.collection.remove(e),this.collection.add(e,{at:0}))},setView:function(e){return e},expand:function(e){var t,i=this;this.model=i.collection.get(e),o.router.navigate(o.router.baseUrl(o.router.themePath+this.model.id)),this.setView("detail"),n("body").addClass("modal-open"),this.overlay=new o.view.Details({model:i.model}),this.overlay.render(),this.model.get("hasUpdate")&&(e=n('[data-slug="'+this.model.id+'"]'),t=n(this.overlay.el),e.find(".updating-message").length?(t.find(".notice-warning h3").remove(),t.find(".notice-warning").removeClass("notice-large").addClass("updating-message").find("p").text(wp.updates.l10n.updating)):e.find(".notice-error").length&&t.find(".notice-warning").remove()),this.$overlay.html(this.overlay.el),this.listenTo(this.overlay,"theme:next",function(){i.next([i.model.cid])}).listenTo(this.overlay,"theme:previous",function(){i.previous([i.model.cid])})},next:function(e){e=this.collection.get(e[0]),e=this.collection.at(this.collection.indexOf(e)+1);void 0!==e&&(this.overlay.closeOverlay(),this.theme.trigger("theme:expand",e.cid))},previous:function(e){e=this.collection.get(e[0]),e=this.collection.at(this.collection.indexOf(e)-1);void 0!==e&&(this.overlay.closeOverlay(),this.theme.trigger("theme:expand",e.cid))},announceSearchResults:function(e){0===e?wp.a11y.speak(a.noThemesFound):wp.a11y.speak(a.themesFound.replace("%d",e))}}),o.view.Search=wp.Backbone.View.extend({tagName:"input",className:"wp-filter-search",id:"wp-filter-search-input",searching:!1,attributes:{type:"search","aria-describedby":"live-search-desc"},events:{input:"search",keyup:"search",blur:"pushState"},initialize:function(e){this.parent=e.parent,this.listenTo(this.parent,"theme:close",function(){this.searching=!1})},search:function(e){"keyup"===e.type&&27===e.which&&(e.target.value=""),this.doSearch(e)},doSearch:function(e){var t={};this.collection.doSearch(e.target.value.replace(/\+/g," ")),this.searching&&13!==e.which?t.replace=!0:this.searching=!0,e.target.value?o.router.navigate(o.router.baseUrl(o.router.searchPath+e.target.value),t):o.router.navigate(o.router.baseUrl(""))},pushState:function(e){var t=o.router.baseUrl("");e.target.value&&(t=o.router.baseUrl(o.router.searchPath+encodeURIComponent(e.target.value))),this.searching=!1,o.router.navigate(t)}}),o.Router=Backbone.Router.extend({routes:{"themes.php?theme=:slug":"theme","themes.php?search=:query":"search","themes.php?s=:query":"search","themes.php":"themes","":"themes"},baseUrl:function(e){return"themes.php"+e},themePath:"?theme=",searchPath:"?search=",search:function(e){n(".wp-filter-search").val(e.replace(/\+/g," "))},themes:function(){n(".wp-filter-search").val("")},navigate:e}),o.Run={init:function(){this.themes=new o.Collection(o.data.themes),this.view=new o.view.Appearance({collection:this.themes}),this.render(),this.view.SearchView.doSearch=_.debounce(this.view.SearchView.doSearch,500)},render:function(){this.view.render(),this.routes(),Backbone.History.started&&Backbone.history.stop(),Backbone.history.start({root:o.data.settings.adminUrl,pushState:!0,hashChange:!1})},routes:function(){var t=this;o.router=new o.Router,o.router.on("route:theme",function(e){t.view.view.expand(e)}),o.router.on("route:themes",function(){t.themes.doSearch(""),t.view.trigger("theme:close")}),o.router.on("route:search",function(){n(".wp-filter-search").trigger("keyup")}),this.extraRoutes()},extraRoutes:function(){return!1}},o.view.InstallerSearch=o.view.Search.extend({events:{input:"search",keyup:"search"},terms:"",search:function(e){("keyup"!==e.type||9!==e.which&&16!==e.which)&&(this.collection=this.options.parent.view.collection,"keyup"===e.type&&27===e.which&&(e.target.value=""),this.doSearch(e.target.value))},doSearch:function(e){var t={};this.terms!==e&&(this.terms=e,"author:"===(t.search=e).substring(0,7)&&(t.search="",t.author=e.slice(7)),"tag:"===e.substring(0,4)&&(t.search="",t.tag=[e.slice(4)]),n(".filter-links li > a.current").removeClass("current").removeAttr("aria-current"),n("body").removeClass("show-filters filters-applied show-favorites-form"),n(".drawer-toggle").attr("aria-expanded","false"),this.collection.query(t),o.router.navigate(o.router.baseUrl(o.router.searchPath+encodeURIComponent(e)),{replace:!0}))}}),o.view.Installer=o.view.Appearance.extend({el:"#wpbody-content .wrap",events:{"click .filter-links li > a":"onSort","click .theme-filter":"onFilter","click .drawer-toggle":"moreFilters","click .filter-drawer .apply-filters":"applyFilters",'click .filter-group [type="checkbox"]':"addFilter","click .filter-drawer .clear-filters":"clearFilters","click .edit-filters":"backToFilters","click .favorites-form-submit":"saveUsername","keyup #wporg-username-input":"saveUsername"},render:function(){var e=this;this.search(),this.uploader(),this.collection=new o.Collection,this.listenTo(this,"theme:end",function(){e.collection.loadingThemes||(e.collection.loadingThemes=!0,e.collection.currentQuery.page++,_.extend(e.collection.currentQuery.request,{page:e.collection.currentQuery.page}),e.collection.query(e.collection.currentQuery.request))}),this.listenTo(this.collection,"query:success",function(){n("body").removeClass("loading-content"),n(".theme-browser").find("div.error").remove()}),this.listenTo(this.collection,"query:fail",function(){n("body").removeClass("loading-content"),n(".theme-browser").find("div.error").remove(),n(".theme-browser").find("div.themes").before('<div class="error"><p>'+a.error+'</p><p><button class="button try-again">'+a.tryAgain+"</button></p></div>"),n(".theme-browser .error .try-again").on("click",function(e){e.preventDefault(),n("input.wp-filter-search").trigger("input")})}),this.view&&this.view.remove(),this.view=new o.view.Themes({collection:this.collection,parent:this}),this.page=0,this.$el.find(".themes").remove(),this.view.render(),this.$el.find(".theme-browser").append(this.view.el).addClass("rendered")},browse:function(e){"block-themes"===e?this.collection.query({tag:"full-site-editing"}):this.collection.query({browse:e})},onSort:function(e){var t=n(e.target),i=t.data("sort");e.preventDefault(),n("body").removeClass("filters-applied show-filters"),n(".drawer-toggle").attr("aria-expanded","false"),t.hasClass(this.activeClass)||(this.sort(i),o.router.navigate(o.router.baseUrl(o.router.browsePath+i)))},sort:function(e){this.clearSearch(),o.router.selectedTab=e,n(".filter-links li > a, .theme-filter").removeClass(this.activeClass).removeAttr("aria-current"),n('[data-sort="'+e+'"]').addClass(this.activeClass).attr("aria-current","page"),"favorites"===e?n("body").addClass("show-favorites-form"):n("body").removeClass("show-favorites-form"),this.browse(e)},onFilter:function(e){var e=n(e.target),t=e.data("filter");e.hasClass(this.activeClass)||(n(".filter-links li > a, .theme-section").removeClass(this.activeClass).removeAttr("aria-current"),e.addClass(this.activeClass).attr("aria-current","page"),t&&(t=_.union([t,this.filtersChecked()]),this.collection.query({tag:[t]})))},addFilter:function(){this.filtersChecked()},applyFilters:function(e){var t,i=this.filtersChecked(),s={tag:i},r=n(".filtered-by .tags");e&&e.preventDefault(),i?(n("body").addClass("filters-applied"),n(".filter-links li > a.current").removeClass("current").removeAttr("aria-current"),r.empty(),_.each(i,function(e){t=n('label[for="filter-id-'+e+'"]').text(),r.append('<span class="tag">'+t+"</span>")}),this.collection.query(s)):wp.a11y.speak(a.selectFeatureFilter)},saveUsername:function(e){var t=n("#wporg-username-input").val(),i=n("#wporg-username-nonce").val(),s={browse:"favorites",user:t},r=this;if(e&&e.preventDefault(),"keyup"!==e.type||13===e.which)return wp.ajax.send("save-wporg-username",{data:{_wpnonce:i,username:t},success:function(){r.collection.query(s)}})},filtersChecked:function(){var e=n(".filter-group").find(":checkbox"),t=[];return _.each(e.filter(":checked"),function(e){t.push(n(e).prop("value"))}),0===t.length?(n(".filter-drawer .apply-filters").find("span").text(""),n(".filter-drawer .clear-filters").hide(),n("body").removeClass("filters-applied"),!1):(n(".filter-drawer .apply-filters").find("span").text(t.length),n(".filter-drawer .clear-filters").css("display","inline-block"),t)},activeClass:"current",uploader:function(){var e=n(".upload-view-toggle"),t=n(document.body);e.on("click",function(){t.toggleClass("show-upload-view"),e.attr("aria-expanded",t.hasClass("show-upload-view"))})},moreFilters:function(e){var t=n("body"),i=n(".drawer-toggle");if(e.preventDefault(),t.hasClass("filters-applied"))return this.backToFilters();this.clearSearch(),o.router.navigate(o.router.baseUrl("")),t.toggleClass("show-filters"),i.attr("aria-expanded",t.hasClass("show-filters"))},clearFilters:function(e){var t=n(".filter-group").find(":checkbox"),i=this;e.preventDefault(),_.each(t.filter(":checked"),function(e){return n(e).prop("checked",!1),i.filtersChecked()})},backToFilters:function(e){e&&e.preventDefault(),n("body").removeClass("filters-applied")},clearSearch:function(){n("#wp-filter-search-input").val("")}}),o.InstallerRouter=Backbone.Router.extend({routes:{"theme-install.php?theme=:slug":"preview","theme-install.php?browse=:sort":"sort","theme-install.php?search=:query":"search","theme-install.php":"sort"},baseUrl:function(e){return"theme-install.php"+e},themePath:"?theme=",browsePath:"?browse=",searchPath:"?search=",search:function(e){n(".wp-filter-search").val(e.replace(/\+/g," "))},navigate:e}),o.RunInstaller={init:function(){this.view=new o.view.Installer({section:"popular",SearchView:o.view.InstallerSearch}),this.render(),this.view.SearchView.doSearch=_.debounce(this.view.SearchView.doSearch,500)},render:function(){this.view.render(),this.routes(),Backbone.History.started&&Backbone.history.stop(),Backbone.history.start({root:o.data.settings.adminUrl,pushState:!0,hashChange:!1})},routes:function(){var t=this,i={};o.router=new o.InstallerRouter,o.router.on("route:preview",function(e){o.preview&&(o.preview.undelegateEvents(),o.preview.unbind()),t.view.view.theme&&t.view.view.theme.preview?(t.view.view.theme.model=t.view.collection.findWhere({slug:e}),t.view.view.theme.preview()):(i.theme=e,t.view.collection.query(i),t.view.collection.trigger("update"),t.view.collection.once("query:success",function(){n('div[data-slug="'+e+'"]').trigger("click")}))}),o.router.on("route:sort",function(e){e||(e="popular",o.router.navigate(o.router.baseUrl("?browse=popular"),{replace:!0})),t.view.sort(e),o.preview&&o.preview.close()}),o.router.on("route:search",function(){n(".wp-filter-search").trigger("focus").trigger("keyup")}),this.extraRoutes()},extraRoutes:function(){return!1}},n(function(){(o.isInstall?o.RunInstaller:o.Run).init(),n(document.body).on("click",".load-customize",function(){var e=n(this),t=document.createElement("a");t.href=e.prop("href"),t.search=n.param(_.extend(wp.customize.utils.parseQueryString(t.search.substr(1)),{return:window.location.href})),e.prop("href",t.href)}),n(".broken-themes .delete-theme").on("click",function(){return confirm(_wpThemeSettings.settings.confirmDelete)})})}(jQuery),jQuery(function(r){window.tb_position=function(){var e=r("#TB_window"),t=r(window).width(),i=r(window).height(),t=1040<t?1040:t,s=0;r("#wpadminbar").length&&(s=parseInt(r("#wpadminbar").css("height"),10)),1<=e.length&&(e.width(t-50).height(i-45-s),r("#TB_iframeContent").width(t-50).height(i-75-s),e.css({"margin-left":"-"+parseInt((t-50)/2,10)+"px"}),void 0!==document.body.style.maxWidth)&&e.css({top:20+s+"px","margin-top":"0"})},r(window).on("resize",function(){tb_position()})}); \ No newline at end of file
diff --git a/wp-admin/js/updates.js b/wp-admin/js/updates.js
index a7c949a..806dd62 100644
--- a/wp-admin/js/updates.js
+++ b/wp-admin/js/updates.js
@@ -875,7 +875,7 @@
$card
.addClass( 'plugin-card-update-failed' )
- .append( '<div class="notice notice-error notice-alt is-dismissible"><p>' + errorMessage + '</p></div>' );
+ .append( '<div class="notice notice-error notice-alt is-dismissible" role="alert"><p>' + errorMessage + '</p></div>' );
$card.on( 'click', '.notice.is-dismissible .notice-dismiss', function() {
@@ -2260,7 +2260,7 @@
// Remove any existing error.
$filesystemForm.find( '.notice' ).remove();
- $filesystemForm.find( '#request-filesystem-credentials-title' ).after( '<div class="notice notice-alt notice-error"><p>' + message + '</p></div>' );
+ $filesystemForm.find( '#request-filesystem-credentials-title' ).after( '<div class="notice notice-alt notice-error" role="alert"><p>' + message + '</p></div>' );
};
/**
@@ -2913,13 +2913,41 @@
wp.updates.adminNotice = wp.template( 'wp-bulk-updates-admin-notice' );
+ var successMessage = null;
+
+ if ( success ) {
+ if ( 'plugin' === response.update ) {
+ successMessage = sprintf(
+ /* translators: %s: Number of plugins. */
+ _n( '%s plugin successfully updated.', '%s plugins successfully updated.', success ),
+ success
+ );
+ } else {
+ successMessage = sprintf(
+ /* translators: %s: Number of themes. */
+ _n( '%s theme successfully updated.', '%s themes successfully updated.', success ),
+ success
+ );
+ }
+ }
+
+ var errorMessage = null;
+
+ if ( error ) {
+ errorMessage = sprintf(
+ /* translators: %s: Number of failed updates. */
+ _n( '%s update failed.', '%s updates failed.', error ),
+ error
+ );
+ }
+
wp.updates.addAdminNotice( {
id: 'bulk-action-notice',
className: 'bulk-action-notice',
- successes: success,
- errors: error,
- errorMessages: errorMessages,
- type: response.update
+ successMessage: successMessage,
+ errorMessage: errorMessage,
+ errorMessages: errorMessages,
+ type: response.update
} );
$bulkActionNotice = $( '#bulk-action-notice' ).on( 'click', 'button', function() {
diff --git a/wp-admin/js/updates.min.js b/wp-admin/js/updates.min.js
index 5f34e5b..d53b501 100644
--- a/wp-admin/js/updates.min.js
+++ b/wp-admin/js/updates.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-!function(c,g,m){var f=c(document),h=g.i18n.__,d=g.i18n._x,i=g.i18n._n,o=g.i18n._nx,r=g.i18n.sprintf;(g=g||{}).updates={},g.updates.l10n={searchResults:"",searchResultsLabel:"",noPlugins:"",noItemsSelected:"",updating:"",pluginUpdated:"",themeUpdated:"",update:"",updateNow:"",pluginUpdateNowLabel:"",updateFailedShort:"",updateFailed:"",pluginUpdatingLabel:"",pluginUpdatedLabel:"",pluginUpdateFailedLabel:"",updatingMsg:"",updatedMsg:"",updateCancel:"",beforeunload:"",installNow:"",pluginInstallNowLabel:"",installing:"",pluginInstalled:"",themeInstalled:"",installFailedShort:"",installFailed:"",pluginInstallingLabel:"",themeInstallingLabel:"",pluginInstalledLabel:"",themeInstalledLabel:"",pluginInstallFailedLabel:"",themeInstallFailedLabel:"",installingMsg:"",installedMsg:"",importerInstalledMsg:"",aysDelete:"",aysDeleteUninstall:"",aysBulkDelete:"",aysBulkDeleteThemes:"",deleting:"",deleteFailed:"",pluginDeleted:"",themeDeleted:"",livePreview:"",activatePlugin:"",activateTheme:"",activatePluginLabel:"",activateThemeLabel:"",activateImporter:"",activateImporterLabel:"",unknownError:"",connectionError:"",nonceError:"",pluginsFound:"",noPluginsFound:"",autoUpdatesEnable:"",autoUpdatesEnabling:"",autoUpdatesEnabled:"",autoUpdatesDisable:"",autoUpdatesDisabling:"",autoUpdatesDisabled:"",autoUpdatesError:""},g.updates.l10n=window.wp.deprecateL10nObject("wp.updates.l10n",g.updates.l10n,"5.5.0"),g.updates.ajaxNonce=m.ajax_nonce,g.updates.searchTerm="",g.updates.shouldRequestFilesystemCredentials=!1,g.updates.filesystemCredentials={ftp:{host:"",username:"",password:"",connectionType:""},ssh:{publicKey:"",privateKey:""},fsNonce:"",available:!1},g.updates.ajaxLocked=!1,g.updates.adminNotice=g.template("wp-updates-admin-notice"),g.updates.queue=[],g.updates.$elToReturnFocusToFromCredentialsModal=void 0,g.updates.addAdminNotice=function(e){var t,a=c(e.selector),s=c(".wp-header-end");delete e.selector,t=g.updates.adminNotice(e),(a=a.length?a:c("#"+e.id)).length?a.replaceWith(t):s.length?s.after(t):"customize"===pagenow?c(".customize-themes-notifications").append(t):c(".wrap").find("> h1").after(t),f.trigger("wp-updates-notice-added")},g.updates.ajax=function(e,t){var a={};return g.updates.ajaxLocked?(g.updates.queue.push({action:e,data:t}),c.Deferred()):(g.updates.ajaxLocked=!0,t.success&&(a.success=t.success,delete t.success),t.error&&(a.error=t.error,delete t.error),a.data=_.extend(t,{action:e,_ajax_nonce:g.updates.ajaxNonce,_fs_nonce:g.updates.filesystemCredentials.fsNonce,username:g.updates.filesystemCredentials.ftp.username,password:g.updates.filesystemCredentials.ftp.password,hostname:g.updates.filesystemCredentials.ftp.hostname,connection_type:g.updates.filesystemCredentials.ftp.connectionType,public_key:g.updates.filesystemCredentials.ssh.publicKey,private_key:g.updates.filesystemCredentials.ssh.privateKey}),g.ajax.send(a).always(g.updates.ajaxAlways))},g.updates.ajaxAlways=function(e){e.errorCode&&"unable_to_connect_to_filesystem"===e.errorCode||(g.updates.ajaxLocked=!1,g.updates.queueChecker()),void 0!==e.debug&&window.console&&window.console.log&&_.map(e.debug,function(e){window.console.log(g.sanitize.stripTagsAndEncodeText(e))})},g.updates.refreshCount=function(){var e,t=c("#wp-admin-bar-updates"),a=c('a[href="update-core.php"] .update-plugins'),s=c('a[href="plugins.php"] .update-plugins'),n=c('a[href="themes.php"] .update-plugins');t.find(".ab-label").text(m.totals.counts.total),t.find(".updates-available-text").text(r(i("%s update available","%s updates available",m.totals.counts.total),m.totals.counts.total)),0===m.totals.counts.total&&t.find(".ab-label").parents("li").remove(),a.each(function(e,t){t.className=t.className.replace(/count-\d+/,"count-"+m.totals.counts.total)}),0<m.totals.counts.total?a.find(".update-count").text(m.totals.counts.total):a.remove(),s.each(function(e,t){t.className=t.className.replace(/count-\d+/,"count-"+m.totals.counts.plugins)}),0<m.totals.counts.total?s.find(".plugin-count").text(m.totals.counts.plugins):s.remove(),n.each(function(e,t){t.className=t.className.replace(/count-\d+/,"count-"+m.totals.counts.themes)}),0<m.totals.counts.total?n.find(".theme-count").text(m.totals.counts.themes):n.remove(),"plugins"===pagenow||"plugins-network"===pagenow?e=m.totals.counts.plugins:"themes"!==pagenow&&"themes-network"!==pagenow||(e=m.totals.counts.themes),0<e?c(".subsubsub .upgrade .count").text("("+e+")"):(c(".subsubsub .upgrade").remove(),c(".subsubsub li:last").html(function(){return c(this).children()}))},g.updates.setCardButtonStatus=function(e){var t=window.parent===window?null:window.parent;c.support.postMessage=!!window.postMessage,!1!==c.support.postMessage&&null!==t&&-1===window.parent.location.pathname.indexOf("index.php")&&t.postMessage(JSON.stringify(e),window.location.origin)},g.updates.decrementCount=function(e){m.totals.counts.total=Math.max(--m.totals.counts.total,0),"plugin"===e?m.totals.counts.plugins=Math.max(--m.totals.counts.plugins,0):"theme"===e&&(m.totals.counts.themes=Math.max(--m.totals.counts.themes,0)),g.updates.refreshCount(e)},g.updates.updatePlugin=function(e){var t,a,s,n=c("#wp-admin-bar-updates"),i=h("Updating..."),l="plugin-install"===pagenow||"plugin-install-network"===pagenow;return e=_.extend({success:g.updates.updatePluginSuccess,error:g.updates.updatePluginError},e),"plugins"===pagenow||"plugins-network"===pagenow?(a=(s=c('tr[data-plugin="'+e.plugin+'"]')).find(".update-message").removeClass("notice-error").addClass("updating-message notice-warning").find("p"),s=r(d("Updating %s...","plugin"),s.find(".plugin-title strong").text())):l&&(a=(t=c(".plugin-card-"+e.slug+", #plugin-information-footer")).find(".update-now").addClass("updating-message"),s=r(d("Updating %s...","plugin"),a.data("name")),t.removeClass("plugin-card-update-failed").find(".notice.notice-error").remove()),n.addClass("spin"),a.html()!==h("Updating...")&&a.data("originaltext",a.html()),a.attr("aria-label",s).text(i),f.trigger("wp-plugin-updating",e),l&&"plugin-information-footer"===t.attr("id")&&g.updates.setCardButtonStatus({status:"updating-plugin",slug:e.slug,addClasses:"updating-message",text:i,ariaLabel:s}),g.updates.ajax("update-plugin",e)},g.updates.updatePluginSuccess=function(e){var t,a,s,n=c("#wp-admin-bar-updates"),i=d("Updated!","plugin"),l=r(d("%s updated!","plugin"),e.pluginName);"plugins"===pagenow||"plugins-network"===pagenow?(a=(t=c('tr[data-plugin="'+e.plugin+'"]').removeClass("update is-enqueued").addClass("updated")).find(".update-message").removeClass("updating-message notice-warning").addClass("updated-message notice-success").find("p"),s=t.find(".plugin-version-author-uri").html().replace(e.oldVersion,e.newVersion),t.find(".plugin-version-author-uri").html(s),t.find(".auto-update-time").empty()):"plugin-install"!==pagenow&&"plugin-install-network"!==pagenow||(a=c(".plugin-card-"+e.slug+", #plugin-information-footer").find(".update-now").removeClass("updating-message").addClass("button-disabled updated-message")),n.removeClass("spin"),a.attr("aria-label",l).text(i),g.a11y.speak(h("Update completed successfully.")),"plugin_install_from_iframe"!==a.attr("id")?g.updates.decrementCount("plugin"):g.updates.setCardButtonStatus({status:"updated-plugin",slug:e.slug,removeClasses:"updating-message",addClasses:"button-disabled updated-message",text:i,ariaLabel:l}),f.trigger("wp-plugin-update-success",e)},g.updates.updatePluginError=function(e){var t,a,s,n,i,l=c("#wp-admin-bar-updates");g.updates.isValidResponse(e,"update")&&!g.updates.maybeHandleCredentialError(e,"update-plugin")&&(s=r(h("Update failed: %s"),e.errorMessage),"plugins"===pagenow||"plugins-network"===pagenow?(c('tr[data-plugin="'+e.plugin+'"]').removeClass("is-enqueued"),(a=(e.plugin?c('tr[data-plugin="'+e.plugin+'"]'):c('tr[data-slug="'+e.slug+'"]')).find(".update-message")).removeClass("updating-message notice-warning").addClass("notice-error").find("p").html(s),e.pluginName?a.find("p").attr("aria-label",r(d("%s update failed.","plugin"),e.pluginName)):a.find("p").removeAttr("aria-label")):"plugin-install"!==pagenow&&"plugin-install-network"!==pagenow||(n=h("Update failed."),(t=c(".plugin-card-"+e.slug+", #plugin-information-footer").append(g.updates.adminNotice({className:"update-message notice-error notice-alt is-dismissible",message:s}))).hasClass("plugin-card-"+e.slug)&&t.addClass("plugin-card-update-failed"),t.find(".update-now").text(n).removeClass("updating-message"),e.pluginName?(i=r(d("%s update failed.","plugin"),e.pluginName),t.find(".update-now").attr("aria-label",i)):(i="",t.find(".update-now").removeAttr("aria-label")),t.on("click",".notice.is-dismissible .notice-dismiss",function(){setTimeout(function(){t.removeClass("plugin-card-update-failed").find(".column-name a").trigger("focus"),t.find(".update-now").attr("aria-label",!1).text(h("Update Now"))},200)})),l.removeClass("spin"),g.a11y.speak(s,"assertive"),"plugin-information-footer"===t.attr("id")&&g.updates.setCardButtonStatus({status:"plugin-update-failed",slug:e.slug,removeClasses:"updating-message",text:n,ariaLabel:i}),f.trigger("wp-plugin-update-error",e))},g.updates.installPlugin=function(e){var t,a=c(".plugin-card-"+e.slug+", #plugin-information-footer"),s=a.find(".install-now"),n=h("Installing...");return e=_.extend({success:g.updates.installPluginSuccess,error:g.updates.installPluginError},e),(s="import"===pagenow?c('[data-slug="'+e.slug+'"]'):s).html()!==h("Installing...")&&s.data("originaltext",s.html()),t=r(d("Installing %s...","plugin"),s.data("name")),s.addClass("updating-message").attr("aria-label",t).text(n),g.a11y.speak(h("Installing... please wait.")),a.removeClass("plugin-card-install-failed").find(".notice.notice-error").remove(),f.trigger("wp-plugin-installing",e),"plugin-information-footer"===s.parent().attr("id")&&g.updates.setCardButtonStatus({status:"installing-plugin",slug:e.slug,addClasses:"updating-message",text:n,ariaLabel:t}),g.updates.ajax("install-plugin",e)},g.updates.installPluginSuccess=function(e){var t=c(".plugin-card-"+e.slug+", #plugin-information-footer").find(".install-now"),a=d("Installed!","plugin"),s=r(d("%s installed!","plugin"),e.pluginName);t.removeClass("updating-message").addClass("updated-message installed button-disabled").attr("aria-label",s).text(a),g.a11y.speak(h("Installation completed successfully.")),f.trigger("wp-plugin-install-success",e),e.activateUrl&&setTimeout(function(){g.updates.checkPluginDependencies({slug:e.slug})},1e3),"plugin-information-footer"===t.parent().attr("id")&&g.updates.setCardButtonStatus({status:"installed-plugin",slug:e.slug,removeClasses:"updating-message",addClasses:"updated-message installed button-disabled",text:a,ariaLabel:s})},g.updates.installPluginError=function(e){var t,a=c(".plugin-card-"+e.slug+", #plugin-information-footer"),s=a.find(".install-now"),n=h("Installation failed."),i=r(d("%s installation failed","plugin"),s.data("name"));g.updates.isValidResponse(e,"install")&&!g.updates.maybeHandleCredentialError(e,"install-plugin")&&(t=r(h("Installation failed: %s"),e.errorMessage),a.addClass("plugin-card-update-failed").append('<div class="notice notice-error notice-alt is-dismissible"><p>'+t+"</p></div>"),a.on("click",".notice.is-dismissible .notice-dismiss",function(){setTimeout(function(){a.removeClass("plugin-card-update-failed").find(".column-name a").trigger("focus")},200)}),s.removeClass("updating-message").addClass("button-disabled").attr("aria-label",i).text(n),g.a11y.speak(t,"assertive"),g.updates.setCardButtonStatus({status:"plugin-install-failed",slug:e.slug,removeClasses:"updating-message",addClasses:"button-disabled",text:n,ariaLabel:i}),f.trigger("wp-plugin-install-error",e))},g.updates.checkPluginDependencies=function(e){return e=_.extend({success:g.updates.checkPluginDependenciesSuccess,error:g.updates.checkPluginDependenciesError},e),g.a11y.speak(h("Checking plugin dependencies... please wait.")),f.trigger("wp-checking-plugin-dependencies",e),g.updates.ajax("check_plugin_dependencies",e)},g.updates.checkPluginDependenciesSuccess=function(e){var t,a,s=c(".plugin-card-"+e.slug+", #plugin-information-footer").find(".install-now");s.removeClass("install-now installed button-disabled updated-message").addClass("activate-now button-primary").attr("href",e.activateUrl),g.a11y.speak(h("Plugin dependencies check completed successfully.")),f.trigger("wp-check-plugin-dependencies-success",e),("plugins-network"===pagenow?(t=d("Network Activate","plugin"),a=r(d("Network Activate %s","plugin"),e.pluginName),s.attr("aria-label",a)):(t=d("Activate","plugin"),a=r(d("Activate %s","plugin"),e.pluginName),s.attr("aria-label",a).attr("data-name",e.pluginName).attr("data-slug",e.slug).attr("data-plugin",e.plugin))).text(t),"plugin-information-footer"===s.parent().attr("id")&&g.updates.setCardButtonStatus({status:"dependencies-check-success",slug:e.slug,removeClasses:"install-now installed button-disabled updated-message",addClasses:"activate-now button-primary",text:t,ariaLabel:a,pluginName:e.pluginName,plugin:e.plugin,href:e.activateUrl})},g.updates.checkPluginDependenciesError=function(e){var t,a=c(".plugin-card-"+e.slug+", #plugin-information-footer").find(".install-now"),s=d("Activate","plugin"),n=r(d("Cannot activate %1$s. %2$s","plugin"),e.pluginName,e.errorMessage);g.updates.isValidResponse(e,"check-dependencies")&&(t=r(h("Activation failed: %s"),e.errorMessage),g.a11y.speak(t,"assertive"),f.trigger("wp-check-plugin-dependencies-error",e),a.removeClass("install-now installed updated-message").addClass("activate-now button-primary").attr("aria-label",n).text(s),"plugin-information-footer"===a.parent().attr("id"))&&g.updates.setCardButtonStatus({status:"dependencies-check-failed",slug:e.slug,removeClasses:"install-now installed updated-message",addClasses:"activate-now button-primary",text:s,ariaLabel:n})},g.updates.activatePlugin=function(e){var t=c(".plugin-card-"+e.slug+", #plugin-information-footer").find(".activate-now, .activating-message");return e=_.extend({success:g.updates.activatePluginSuccess,error:g.updates.activatePluginError},e),g.a11y.speak(h("Activating... please wait.")),f.trigger("wp-activating-plugin",e),"plugin-information-footer"===t.parent().attr("id")&&g.updates.setCardButtonStatus({status:"activating-plugin",slug:e.slug,removeClasses:"installed updated-message button-primary",addClasses:"activating-message",text:h("Activating..."),ariaLabel:r(d("Activating %s","plugin"),e.name)}),g.updates.ajax("activate-plugin",e)},g.updates.activatePluginSuccess=function(e){var t=c(".plugin-card-"+e.slug+", #plugin-information-footer").find(".activating-message"),a=d("Activated!","plugin"),s=r("%s activated successfully.",e.pluginName);g.a11y.speak(h("Activation completed successfully.")),f.trigger("wp-plugin-activate-success",e),t.removeClass("activating-message").addClass("activated-message button-disabled").attr("aria-label",s).text(a),"plugin-information-footer"===t.parent().attr("id")&&g.updates.setCardButtonStatus({status:"activated-plugin",slug:e.slug,removeClasses:"activating-message",addClasses:"activated-message button-disabled",text:a,ariaLabel:s}),setTimeout(function(){t.removeClass("activated-message").text(d("Active","plugin")),"plugin-information-footer"===t.parent().attr("id")&&g.updates.setCardButtonStatus({status:"plugin-active",slug:e.slug,removeClasses:"activated-message",text:d("Active","plugin"),ariaLabel:r("%s is active.",e.pluginName)})},1e3)},g.updates.activatePluginError=function(e){var t,a=c(".plugin-card-"+e.slug+", #plugin-information-footer").find(".activating-message"),s=h("Activation failed."),n=r(d("%s activation failed","plugin"),e.pluginName);g.updates.isValidResponse(e,"activate")&&(t=r(h("Activation failed: %s"),e.errorMessage),g.a11y.speak(t,"assertive"),f.trigger("wp-plugin-activate-error",e),a.removeClass("install-now installed activating-message").addClass("button-disabled").attr("aria-label",n).text(s),"plugin-information-footer"===a.parent().attr("id"))&&g.updates.setCardButtonStatus({status:"plugin-activation-failed",slug:e.slug,removeClasses:"install-now installed activating-message",addClasses:"button-disabled",text:s,ariaLabel:n})},g.updates.installImporterSuccess=function(e){g.updates.addAdminNotice({id:"install-success",className:"notice-success is-dismissible",message:r(h('Importer installed successfully. <a href="%s">Run importer</a>'),e.activateUrl+"&from=import")}),c('[data-slug="'+e.slug+'"]').removeClass("install-now updating-message").addClass("activate-now").attr({href:e.activateUrl+"&from=import","aria-label":r(h("Run %s"),e.pluginName)}).text(h("Run Importer")),g.a11y.speak(h("Installation completed successfully.")),f.trigger("wp-importer-install-success",e)},g.updates.installImporterError=function(e){var t=r(h("Installation failed: %s"),e.errorMessage),a=c('[data-slug="'+e.slug+'"]'),s=a.data("name");g.updates.isValidResponse(e,"install")&&!g.updates.maybeHandleCredentialError(e,"install-plugin")&&(g.updates.addAdminNotice({id:e.errorCode,className:"notice-error is-dismissible",message:t}),a.removeClass("updating-message").attr("aria-label",r(d("Install %s now","plugin"),s)).text(d("Install Now","plugin")),g.a11y.speak(t,"assertive"),f.trigger("wp-importer-install-error",e))},g.updates.deletePlugin=function(e){var t=c('[data-plugin="'+e.plugin+'"]').find(".row-actions a.delete");return e=_.extend({success:g.updates.deletePluginSuccess,error:g.updates.deletePluginError},e),t.html()!==h("Deleting...")&&t.data("originaltext",t.html()).text(h("Deleting...")),g.a11y.speak(h("Deleting...")),f.trigger("wp-plugin-deleting",e),g.updates.ajax("delete-plugin",e)},g.updates.deletePluginSuccess=function(u){c('[data-plugin="'+u.plugin+'"]').css({backgroundColor:"#faafaa"}).fadeOut(350,function(){var e=c("#bulk-action-form"),t=c(".subsubsub"),a=c(this),s=t.find('[aria-current="page"]'),n=c(".displaying-num"),i=e.find("thead th:not(.hidden), thead td").length,l=g.template("item-deleted-row"),d=m.plugins;a.hasClass("plugin-update-tr")||a.after(l({slug:u.slug,plugin:u.plugin,colspan:i,name:u.pluginName})),a.remove(),-1!==_.indexOf(d.upgrade,u.plugin)&&(d.upgrade=_.without(d.upgrade,u.plugin),g.updates.decrementCount("plugin")),-1!==_.indexOf(d.inactive,u.plugin)&&(d.inactive=_.without(d.inactive,u.plugin),d.inactive.length?t.find(".inactive .count").text("("+d.inactive.length+")"):t.find(".inactive").remove()),-1!==_.indexOf(d.active,u.plugin)&&(d.active=_.without(d.active,u.plugin),d.active.length?t.find(".active .count").text("("+d.active.length+")"):t.find(".active").remove()),-1!==_.indexOf(d.recently_activated,u.plugin)&&(d.recently_activated=_.without(d.recently_activated,u.plugin),d.recently_activated.length?t.find(".recently_activated .count").text("("+d.recently_activated.length+")"):t.find(".recently_activated").remove()),-1!==_.indexOf(d["auto-update-enabled"],u.plugin)&&(d["auto-update-enabled"]=_.without(d["auto-update-enabled"],u.plugin),d["auto-update-enabled"].length?t.find(".auto-update-enabled .count").text("("+d["auto-update-enabled"].length+")"):t.find(".auto-update-enabled").remove()),-1!==_.indexOf(d["auto-update-disabled"],u.plugin)&&(d["auto-update-disabled"]=_.without(d["auto-update-disabled"],u.plugin),d["auto-update-disabled"].length?t.find(".auto-update-disabled .count").text("("+d["auto-update-disabled"].length+")"):t.find(".auto-update-disabled").remove()),d.all=_.without(d.all,u.plugin),d.all.length?t.find(".all .count").text("("+d.all.length+")"):(e.find(".tablenav").css({visibility:"hidden"}),t.find(".all").remove(),e.find("tr.no-items").length||e.find("#the-list").append('<tr class="no-items"><td class="colspanchange" colspan="'+i+'">'+h("No plugins are currently available.")+"</td></tr>")),n.length&&s.length&&(l=d[s.parent("li").attr("class")].length,n.text(r(o("%s item","%s items",l,"plugin/plugins"),l)))}),g.a11y.speak(d("Deleted!","plugin")),f.trigger("wp-plugin-delete-success",u)},g.updates.deletePluginError=function(e){var t,a=g.template("item-update-row"),s=g.updates.adminNotice({className:"update-message notice-error notice-alt",message:e.errorMessage}),n=e.plugin?(t=c('tr.inactive[data-plugin="'+e.plugin+'"]')).siblings('[data-plugin="'+e.plugin+'"]'):(t=c('tr.inactive[data-slug="'+e.slug+'"]')).siblings('[data-slug="'+e.slug+'"]');g.updates.isValidResponse(e,"delete")&&!g.updates.maybeHandleCredentialError(e,"delete-plugin")&&(n.length?(n.find(".notice-error").remove(),n.find(".plugin-update").append(s)):t.addClass("update").after(a({slug:e.slug,plugin:e.plugin||e.slug,colspan:c("#bulk-action-form").find("thead th:not(.hidden), thead td").length,content:s})),f.trigger("wp-plugin-delete-error",e))},g.updates.updateTheme=function(e){var t;return e=_.extend({success:g.updates.updateThemeSuccess,error:g.updates.updateThemeError},e),(t=("themes-network"===pagenow?c('[data-slug="'+e.slug+'"]').find(".update-message").removeClass("notice-error").addClass("updating-message notice-warning"):(t="customize"===pagenow?((t=c('[data-slug="'+e.slug+'"].notice').removeClass("notice-large")).find("h3").remove(),t.add(c("#customize-control-installed_theme_"+e.slug).find(".update-message"))):((t=c("#update-theme").closest(".notice").removeClass("notice-large")).find("h3").remove(),t.add(c('[data-slug="'+e.slug+'"]').find(".update-message")))).addClass("updating-message")).find("p")).html()!==h("Updating...")&&t.data("originaltext",t.html()),g.a11y.speak(h("Updating... please wait.")),t.text(h("Updating...")),f.trigger("wp-theme-updating",e),g.updates.ajax("update-theme",e)},g.updates.updateThemeSuccess=function(e){var t,a,s=c("body.modal-open").length,n=c('[data-slug="'+e.slug+'"]'),i={className:"updated-message notice-success notice-alt",message:d("Updated!","theme")};"customize"===pagenow?((n=c(".updating-message").siblings(".theme-name")).length&&(a=n.html().replace(e.oldVersion,e.newVersion),n.html(a)),t=c(".theme-info .notice").add(g.customize.control("installed_theme_"+e.slug).container.find(".theme").find(".update-message"))):"themes-network"===pagenow?(t=n.find(".update-message"),a=n.find(".theme-version-author-uri").html().replace(e.oldVersion,e.newVersion),n.find(".theme-version-author-uri").html(a),n.find(".auto-update-time").empty()):(t=c(".theme-info .notice").add(n.find(".update-message")),s?(c(".load-customize:visible").trigger("focus"),c(".theme-info .theme-autoupdate").find(".auto-update-time").empty()):n.find(".load-customize").trigger("focus")),g.updates.addAdminNotice(_.extend({selector:t},i)),g.a11y.speak(h("Update completed successfully.")),g.updates.decrementCount("theme"),f.trigger("wp-theme-update-success",e),s&&"customize"!==pagenow&&c(".theme-info .theme-author").after(g.updates.adminNotice(i))},g.updates.updateThemeError=function(e){var t,a=c('[data-slug="'+e.slug+'"]'),s=r(h("Update failed: %s"),e.errorMessage);g.updates.isValidResponse(e,"update")&&!g.updates.maybeHandleCredentialError(e,"update-theme")&&("customize"===pagenow&&(a=g.customize.control("installed_theme_"+e.slug).container.find(".theme")),"themes-network"===pagenow?t=a.find(".update-message "):(t=c(".theme-info .notice").add(a.find(".notice")),(c("body.modal-open").length?c(".load-customize:visible"):a.find(".load-customize")).trigger("focus")),g.updates.addAdminNotice({selector:t,className:"update-message notice-error notice-alt is-dismissible",message:s}),g.a11y.speak(s),f.trigger("wp-theme-update-error",e))},g.updates.installTheme=function(e){var t=c('.theme-install[data-slug="'+e.slug+'"]');return e=_.extend({success:g.updates.installThemeSuccess,error:g.updates.installThemeError},e),t.addClass("updating-message"),t.parents(".theme").addClass("focus"),t.html()!==h("Installing...")&&t.data("originaltext",t.html()),t.attr("aria-label",r(d("Installing %s...","theme"),t.data("name"))).text(h("Installing...")),g.a11y.speak(h("Installing... please wait.")),c('.install-theme-info, [data-slug="'+e.slug+'"]').removeClass("theme-install-failed").find(".notice.notice-error").remove(),f.trigger("wp-theme-installing",e),g.updates.ajax("install-theme",e)},g.updates.installThemeSuccess=function(e){var t,a=c(".wp-full-overlay-header, [data-slug="+e.slug+"]");f.trigger("wp-theme-install-success",e),t=a.find(".button-primary").removeClass("updating-message").addClass("updated-message disabled").attr("aria-label",r(d("%s installed!","theme"),e.themeName)).text(d("Installed!","theme")),g.a11y.speak(h("Installation completed successfully.")),setTimeout(function(){e.activateUrl&&(t.attr("href",e.activateUrl).removeClass("theme-install updated-message disabled").addClass("activate"),"themes-network"===pagenow?t.attr("aria-label",r(d("Network Activate %s","theme"),e.themeName)).text(h("Network Enable")):t.attr("aria-label",r(d("Activate %s","theme"),e.themeName)).text(d("Activate","theme"))),e.customizeUrl&&t.siblings(".preview").replaceWith(function(){return c("<a>").attr("href",e.customizeUrl).addClass("button load-customize").text(h("Live Preview"))})},1e3)},g.updates.installThemeError=function(e){var t,a=r(h("Installation failed: %s"),e.errorMessage),s=g.updates.adminNotice({className:"update-message notice-error notice-alt",message:a});g.updates.isValidResponse(e,"install")&&!g.updates.maybeHandleCredentialError(e,"install-theme")&&("customize"===pagenow?(f.find("body").hasClass("modal-open")?(t=c('.theme-install[data-slug="'+e.slug+'"]'),c(".theme-overlay .theme-info").prepend(s)):(t=c('.theme-install[data-slug="'+e.slug+'"]')).closest(".theme").addClass("theme-install-failed").append(s),g.customize.notifications.remove("theme_installing")):f.find("body").hasClass("full-overlay-active")?(t=c('.theme-install[data-slug="'+e.slug+'"]'),c(".install-theme-info").prepend(s)):t=c('[data-slug="'+e.slug+'"]').removeClass("focus").addClass("theme-install-failed").append(s).find(".theme-install"),t.removeClass("updating-message").attr("aria-label",r(d("%s installation failed","theme"),t.data("name"))).text(h("Installation failed.")),g.a11y.speak(a,"assertive"),f.trigger("wp-theme-install-error",e))},g.updates.deleteTheme=function(e){var t;return"themes"===pagenow?t=c(".theme-actions .delete-theme"):"themes-network"===pagenow&&(t=c('[data-slug="'+e.slug+'"]').find(".row-actions a.delete")),e=_.extend({success:g.updates.deleteThemeSuccess,error:g.updates.deleteThemeError},e),t&&t.html()!==h("Deleting...")&&t.data("originaltext",t.html()).text(h("Deleting...")),g.a11y.speak(h("Deleting...")),c(".theme-info .update-message").remove(),f.trigger("wp-theme-deleting",e),g.updates.ajax("delete-theme",e)},g.updates.deleteThemeSuccess=function(n){var e=c('[data-slug="'+n.slug+'"]');"themes-network"===pagenow&&e.css({backgroundColor:"#faafaa"}).fadeOut(350,function(){var e=c(".subsubsub"),t=c(this),a=m.themes,s=g.template("item-deleted-row");t.hasClass("plugin-update-tr")||t.after(s({slug:n.slug,colspan:c("#bulk-action-form").find("thead th:not(.hidden), thead td").length,name:t.find(".theme-title strong").text()})),t.remove(),-1!==_.indexOf(a.upgrade,n.slug)&&(a.upgrade=_.without(a.upgrade,n.slug),g.updates.decrementCount("theme")),-1!==_.indexOf(a.disabled,n.slug)&&(a.disabled=_.without(a.disabled,n.slug),a.disabled.length?e.find(".disabled .count").text("("+a.disabled.length+")"):e.find(".disabled").remove()),-1!==_.indexOf(a["auto-update-enabled"],n.slug)&&(a["auto-update-enabled"]=_.without(a["auto-update-enabled"],n.slug),a["auto-update-enabled"].length?e.find(".auto-update-enabled .count").text("("+a["auto-update-enabled"].length+")"):e.find(".auto-update-enabled").remove()),-1!==_.indexOf(a["auto-update-disabled"],n.slug)&&(a["auto-update-disabled"]=_.without(a["auto-update-disabled"],n.slug),a["auto-update-disabled"].length?e.find(".auto-update-disabled .count").text("("+a["auto-update-disabled"].length+")"):e.find(".auto-update-disabled").remove()),a.all=_.without(a.all,n.slug),e.find(".all .count").text("("+a.all.length+")")}),"themes"===pagenow&&_.find(_wpThemeSettings.themes,{id:n.slug}).hasUpdate&&g.updates.decrementCount("theme"),g.a11y.speak(d("Deleted!","theme")),f.trigger("wp-theme-delete-success",n)},g.updates.deleteThemeError=function(e){var t=c('tr.inactive[data-slug="'+e.slug+'"]'),a=c(".theme-actions .delete-theme"),s=g.template("item-update-row"),n=t.siblings("#"+e.slug+"-update"),i=r(h("Deletion failed: %s"),e.errorMessage),l=g.updates.adminNotice({className:"update-message notice-error notice-alt",message:i});g.updates.maybeHandleCredentialError(e,"delete-theme")||("themes-network"===pagenow?n.length?(n.find(".notice-error").remove(),n.find(".plugin-update").append(l)):t.addClass("update").after(s({slug:e.slug,colspan:c("#bulk-action-form").find("thead th:not(.hidden), thead td").length,content:l})):c(".theme-info .theme-description").before(l),a.html(a.data("originaltext")),g.a11y.speak(i,"assertive"),f.trigger("wp-theme-delete-error",e))},g.updates._addCallbacks=function(e,t){return"import"===pagenow&&"install-plugin"===t&&(e.success=g.updates.installImporterSuccess,e.error=g.updates.installImporterError),e},g.updates.queueChecker=function(){var e;if(!g.updates.ajaxLocked&&g.updates.queue.length)switch((e=g.updates.queue.shift()).action){case"install-plugin":g.updates.installPlugin(e.data);break;case"update-plugin":g.updates.updatePlugin(e.data);break;case"delete-plugin":g.updates.deletePlugin(e.data);break;case"install-theme":g.updates.installTheme(e.data);break;case"update-theme":g.updates.updateTheme(e.data);break;case"delete-theme":g.updates.deleteTheme(e.data)}},g.updates.requestFilesystemCredentials=function(e){!1===g.updates.filesystemCredentials.available&&(e&&!g.updates.$elToReturnFocusToFromCredentialsModal&&(g.updates.$elToReturnFocusToFromCredentialsModal=c(e.target)),g.updates.ajaxLocked=!0,g.updates.requestForCredentialsModalOpen())},g.updates.maybeRequestFilesystemCredentials=function(e){g.updates.shouldRequestFilesystemCredentials&&!g.updates.ajaxLocked&&g.updates.requestFilesystemCredentials(e)},g.updates.keydown=function(e){27===e.keyCode?g.updates.requestForCredentialsModalCancel():9===e.keyCode&&("upgrade"!==e.target.id||e.shiftKey?"hostname"===e.target.id&&e.shiftKey&&(c("#upgrade").trigger("focus"),e.preventDefault()):(c("#hostname").trigger("focus"),e.preventDefault()))},g.updates.requestForCredentialsModalOpen=function(){var e=c("#request-filesystem-credentials-dialog");c("body").addClass("modal-open"),e.show(),e.find("input:enabled:first").trigger("focus"),e.on("keydown",g.updates.keydown)},g.updates.requestForCredentialsModalClose=function(){c("#request-filesystem-credentials-dialog").hide(),c("body").removeClass("modal-open"),g.updates.$elToReturnFocusToFromCredentialsModal&&g.updates.$elToReturnFocusToFromCredentialsModal.trigger("focus")},g.updates.requestForCredentialsModalCancel=function(){(g.updates.ajaxLocked||g.updates.queue.length)&&(_.each(g.updates.queue,function(e){f.trigger("credential-modal-cancel",e)}),g.updates.ajaxLocked=!1,g.updates.queue=[],g.updates.requestForCredentialsModalClose())},g.updates.showErrorInCredentialsForm=function(e){var t=c("#request-filesystem-credentials-form");t.find(".notice").remove(),t.find("#request-filesystem-credentials-title").after('<div class="notice notice-alt notice-error"><p>'+e+"</p></div>")},g.updates.credentialError=function(e,t){e=g.updates._addCallbacks(e,t),g.updates.queue.unshift({action:t,data:e}),g.updates.filesystemCredentials.available=!1,g.updates.showErrorInCredentialsForm(e.errorMessage),g.updates.requestFilesystemCredentials()},g.updates.maybeHandleCredentialError=function(e,t){return!(!g.updates.shouldRequestFilesystemCredentials||!e.errorCode||"unable_to_connect_to_filesystem"!==e.errorCode||(g.updates.credentialError(e,t),0))},g.updates.isValidResponse=function(e,t){var a,s=h("Something went wrong.");if(_.isObject(e)&&!_.isFunction(e.always))return!0;switch(_.isString(e)&&"-1"===e?s=h("An error has occurred. Please reload the page and try again."):_.isString(e)?s=e:void 0!==e.readyState&&0===e.readyState?s=h("Connection lost or the server is busy. Please try again later."):_.isString(e.responseText)&&""!==e.responseText?s=e.responseText:_.isString(e.statusText)&&(s=e.statusText),t){case"update":a=h("Update failed: %s");break;case"install":a=h("Installation failed: %s");break;case"check-dependencies":a=h("Dependencies check failed: %s");break;case"activate":a=h("Activation failed: %s");break;case"delete":a=h("Deletion failed: %s")}return s=s.replace(/<[\/a-z][^<>]*>/gi,""),a=a.replace("%s",s),g.updates.addAdminNotice({id:"unknown_error",className:"notice-error is-dismissible",message:_.escape(a)}),g.updates.ajaxLocked=!1,g.updates.queue=[],c(".button.updating-message").removeClass("updating-message").removeAttr("aria-label").prop("disabled",!0).text(h("Update failed.")),c(".updating-message:not(.button):not(.thickbox)").removeClass("updating-message notice-warning").addClass("notice-error").find("p").removeAttr("aria-label").text(a),g.a11y.speak(a,"assertive"),!1},g.updates.beforeunload=function(){if(g.updates.ajaxLocked)return h("Updates may not complete if you navigate away from this page.")},c(function(){var i=c("#plugin-filter, #plugin-information-footer"),o=c("#bulk-action-form"),e=c("#request-filesystem-credentials-form"),t=c("#request-filesystem-credentials-dialog"),a=c(".plugins-php .wp-filter-search"),s=c(".plugin-install-php .wp-filter-search");(m=_.extend(m,window._wpUpdatesItemCounts||{})).totals&&g.updates.refreshCount(),g.updates.shouldRequestFilesystemCredentials=0<t.length,t.on("submit","form",function(e){e.preventDefault(),g.updates.filesystemCredentials.ftp.hostname=c("#hostname").val(),g.updates.filesystemCredentials.ftp.username=c("#username").val(),g.updates.filesystemCredentials.ftp.password=c("#password").val(),g.updates.filesystemCredentials.ftp.connectionType=c('input[name="connection_type"]:checked').val(),g.updates.filesystemCredentials.ssh.publicKey=c("#public_key").val(),g.updates.filesystemCredentials.ssh.privateKey=c("#private_key").val(),g.updates.filesystemCredentials.fsNonce=c("#_fs_nonce").val(),g.updates.filesystemCredentials.available=!0,g.updates.ajaxLocked=!1,g.updates.queueChecker(),g.updates.requestForCredentialsModalClose()}),t.on("click",'[data-js-action="close"], .notification-dialog-background',g.updates.requestForCredentialsModalCancel),e.on("change",'input[name="connection_type"]',function(){c("#ssh-keys").toggleClass("hidden","ssh"!==c(this).val())}).trigger("change"),f.on("credential-modal-cancel",function(e,t){var a,s=c(".updating-message");"import"===pagenow?s.removeClass("updating-message"):"plugins"===pagenow||"plugins-network"===pagenow?"update-plugin"===t.action?a=c('tr[data-plugin="'+t.data.plugin+'"]').find(".update-message"):"delete-plugin"===t.action&&(a=c('[data-plugin="'+t.data.plugin+'"]').find(".row-actions a.delete")):"themes"===pagenow||"themes-network"===pagenow?"update-theme"===t.action?a=c('[data-slug="'+t.data.slug+'"]').find(".update-message"):"delete-theme"===t.action&&"themes-network"===pagenow?a=c('[data-slug="'+t.data.slug+'"]').find(".row-actions a.delete"):"delete-theme"===t.action&&"themes"===pagenow&&(a=c(".theme-actions .delete-theme")):a=s,a&&a.hasClass("updating-message")&&(void 0===(s=a.data("originaltext"))&&(s=c("<p>").html(a.find("p").data("originaltext"))),a.removeClass("updating-message").html(s),"plugin-install"!==pagenow&&"plugin-install-network"!==pagenow||("update-plugin"===t.action?a.attr("aria-label",r(d("Update %s now","plugin"),a.data("name"))):"install-plugin"===t.action&&a.attr("aria-label",r(d("Install %s now","plugin"),a.data("name"))))),g.a11y.speak(h("Update canceled."))}),o.on("click","[data-plugin] .update-link",function(e){var t=c(e.target),a=t.parents("tr");e.preventDefault(),t.hasClass("updating-message")||t.hasClass("button-disabled")||(g.updates.maybeRequestFilesystemCredentials(e),g.updates.$elToReturnFocusToFromCredentialsModal=a.find(".check-column input"),g.updates.updatePlugin({plugin:a.data("plugin"),slug:a.data("slug")}))}),i.on("click",".update-now",function(e){var t=c(e.target);e.preventDefault(),t.hasClass("updating-message")||t.hasClass("button-disabled")||(g.updates.maybeRequestFilesystemCredentials(e),g.updates.updatePlugin({plugin:t.data("plugin"),slug:t.data("slug")}))}),i.on("click",".install-now",function(e){var t=c(e.target);e.preventDefault(),t.hasClass("updating-message")||t.hasClass("button-disabled")||(g.updates.shouldRequestFilesystemCredentials&&!g.updates.ajaxLocked&&(g.updates.requestFilesystemCredentials(e),f.on("credential-modal-cancel",function(){c(".install-now.updating-message").removeClass("updating-message").text(d("Install Now","plugin")),g.a11y.speak(h("Update canceled."))})),g.updates.installPlugin({slug:t.data("slug")}))}),f.on("click","#plugin-information-footer .activate-now",function(e){e.preventDefault(),window.parent.location.href=c(e.target).attr("href")}),f.on("click",".importer-item .install-now",function(e){var t=c(e.target),a=c(this).data("name");e.preventDefault(),t.hasClass("updating-message")||(g.updates.shouldRequestFilesystemCredentials&&!g.updates.ajaxLocked&&(g.updates.requestFilesystemCredentials(e),f.on("credential-modal-cancel",function(){t.removeClass("updating-message").attr("aria-label",r(d("Install %s now","plugin"),a)).text(d("Install Now","plugin")),g.a11y.speak(h("Update canceled."))})),g.updates.installPlugin({slug:t.data("slug"),pagenow:pagenow,success:g.updates.installImporterSuccess,error:g.updates.installImporterError}))}),o.on("click","[data-plugin] a.delete",function(e){var t=c(e.target).parents("tr"),a=t.hasClass("is-uninstallable")?r(h("Are you sure you want to delete %s and its data?"),t.find(".plugin-title strong").text()):r(h("Are you sure you want to delete %s?"),t.find(".plugin-title strong").text());e.preventDefault(),window.confirm(a)&&(g.updates.maybeRequestFilesystemCredentials(e),g.updates.deletePlugin({plugin:t.data("plugin"),slug:t.data("slug")}))}),f.on("click",".themes-php.network-admin .update-link",function(e){var t=c(e.target),a=t.parents("tr");e.preventDefault(),t.hasClass("updating-message")||t.hasClass("button-disabled")||(g.updates.maybeRequestFilesystemCredentials(e),g.updates.$elToReturnFocusToFromCredentialsModal=a.find(".check-column input"),g.updates.updateTheme({slug:a.data("slug")}))}),f.on("click",".themes-php.network-admin a.delete",function(e){var t=c(e.target).parents("tr"),a=r(h("Are you sure you want to delete %s?"),t.find(".theme-title strong").text());e.preventDefault(),window.confirm(a)&&(g.updates.maybeRequestFilesystemCredentials(e),g.updates.deleteTheme({slug:t.data("slug")}))}),o.on("click",'[type="submit"]:not([name="clear-recent-list"])',function(e){var t,s,n=c(e.target).siblings("select").val(),a=o.find('input[name="checked[]"]:checked'),i=0,l=0,d=[];switch(pagenow){case"plugins":case"plugins-network":t="plugin";break;case"themes-network":t="theme";break;default:return}if(!a.length)return e.preventDefault(),c("html, body").animate({scrollTop:0}),g.updates.addAdminNotice({id:"no-items-selected",className:"notice-error is-dismissible",message:h("Please select at least one item to perform this action on.")});switch(n){case"update-selected":s=n.replace("selected",t);break;case"delete-selected":var u=h("plugin"===t?"Are you sure you want to delete the selected plugins and their data?":"Caution: These themes may be active on other sites in the network. Are you sure you want to proceed?");if(!window.confirm(u))return void e.preventDefault();s=n.replace("selected",t);break;default:return}g.updates.maybeRequestFilesystemCredentials(e),e.preventDefault(),o.find('.manage-column [type="checkbox"]').prop("checked",!1),f.trigger("wp-"+t+"-bulk-"+n,a),a.each(function(e,t){var t=c(t),a=t.parents("tr");"update-selected"!==n||a.hasClass("update")&&!a.find("notice-error").length?"update-selected"===n&&a.hasClass("is-enqueued")||(a.addClass("is-enqueued"),g.updates.queue.push({action:s,data:{plugin:a.data("plugin"),slug:a.data("slug")}})):t.prop("checked",!1)}),f.on("wp-plugin-update-success wp-plugin-update-error wp-theme-update-success wp-theme-update-error",function(e,t){var a,s=c('[data-slug="'+t.slug+'"]');"wp-"+t.update+"-update-success"===e.type?i++:(e=t.pluginName||s.find(".column-primary strong").text(),l++,d.push(e+": "+t.errorMessage)),s.find('input[name="checked[]"]:checked').prop("checked",!1),g.updates.adminNotice=g.template("wp-bulk-updates-admin-notice"),g.updates.addAdminNotice({id:"bulk-action-notice",className:"bulk-action-notice",successes:i,errors:l,errorMessages:d,type:t.update}),a=c("#bulk-action-notice").on("click","button",function(){c(this).toggleClass("bulk-action-errors-collapsed").attr("aria-expanded",!c(this).hasClass("bulk-action-errors-collapsed")),a.find(".bulk-action-errors").toggleClass("hidden")}),0<l&&!g.updates.queue.length&&c("html, body").animate({scrollTop:0})}),f.on("wp-updates-notice-added",function(){g.updates.adminNotice=g.template("wp-updates-admin-notice")}),g.updates.queueChecker()}),s.length&&s.attr("aria-describedby","live-search-desc"),s.on("keyup input",_.debounce(function(e,t){var a=c(".plugin-install-search"),s={_ajax_nonce:g.updates.ajaxNonce,s:encodeURIComponent(e.target.value),tab:"search",type:c("#typeselector").val(),pagenow:pagenow},n=location.href.split("?")[0]+"?"+c.param(_.omit(s,["_ajax_nonce","pagenow"]));"keyup"===e.type&&27===e.which&&(e.target.value=""),g.updates.searchTerm===s.s&&"typechange"!==t||(i.empty(),g.updates.searchTerm=s.s,window.history&&window.history.replaceState&&window.history.replaceState(null,"",n),a.length||(a=c('<li class="plugin-install-search" />').append(c("<a />",{class:"current",href:n,text:h("Search Results")})),c(".wp-filter .filter-links .current").removeClass("current").parents(".filter-links").prepend(a),i.prev("p").remove(),c(".plugins-popular-tags-wrapper").remove()),void 0!==g.updates.searchRequest&&g.updates.searchRequest.abort(),c("body").addClass("loading-content"),g.updates.searchRequest=g.ajax.post("search-install-plugins",s).done(function(e){c("body").removeClass("loading-content"),i.append(e.items),delete g.updates.searchRequest,0===e.count?g.a11y.speak(h("You do not appear to have any plugins available at this time.")):g.a11y.speak(r(h("Number of plugins found: %d"),e.count))}))},1e3)),a.length&&a.attr("aria-describedby","live-search-desc"),a.on("keyup input",_.debounce(function(e){var s={_ajax_nonce:g.updates.ajaxNonce,s:encodeURIComponent(e.target.value),pagenow:pagenow,plugin_status:"all"};"keyup"===e.type&&27===e.which&&(e.target.value=""),g.updates.searchTerm!==s.s&&(g.updates.searchTerm=s.s,e=_.object(_.compact(_.map(location.search.slice(1).split("&"),function(e){if(e)return e.split("=")}))),s.plugin_status=e.plugin_status||"all",window.history&&window.history.replaceState&&window.history.replaceState(null,"",location.href.split("?")[0]+"?s="+s.s+"&plugin_status="+s.plugin_status),void 0!==g.updates.searchRequest&&g.updates.searchRequest.abort(),o.empty(),c("body").addClass("loading-content"),c(".subsubsub .current").removeClass("current"),g.updates.searchRequest=g.ajax.post("search-plugins",s).done(function(e){var t=c("<span />").addClass("subtitle").html(r(h("Search results for: %s"),"<strong>"+_.escape(decodeURIComponent(s.s))+"</strong>")),a=c(".wrap .subtitle");s.s.length?a.length?a.replaceWith(t):c(".wp-header-end").before(t):(a.remove(),c(".subsubsub ."+s.plugin_status+" a").addClass("current")),c("body").removeClass("loading-content"),o.append(e.items),delete g.updates.searchRequest,0===e.count?g.a11y.speak(h("No plugins found. Try a different search.")):g.a11y.speak(r(h("Number of plugins found: %d"),e.count))}))},500)),f.on("submit",".search-plugins",function(e){e.preventDefault(),c("input.wp-filter-search").trigger("input")}),f.on("click",".try-again",function(e){e.preventDefault(),s.trigger("input")}),c("#typeselector").on("change",function(){var e=c('input[name="s"]');e.val().length&&e.trigger("input","typechange")}),c("#plugin_update_from_iframe").on("click",function(e){var t=window.parent===window?null:window.parent;c.support.postMessage=!!window.postMessage,!1!==c.support.postMessage&&null!==t&&-1===window.parent.location.pathname.indexOf("update-core.php")&&(e.preventDefault(),e={action:"update-plugin",data:{plugin:c(this).data("plugin"),slug:c(this).data("slug")}},t.postMessage(JSON.stringify(e),window.location.origin))}),c(window).on("message",function(e){var t,e=e.originalEvent,a=document.location.protocol+"//"+document.location.host;if(e.origin===a){try{t=JSON.parse(e.data)}catch(e){return}if(t)if(void 0!==t.status&&void 0!==t.slug&&void 0!==t.text&&void 0!==t.ariaLabel&&(a=c(".plugin-card-"+t.slug).find('[data-slug="'+t.slug+'"]'),void 0!==t.removeClasses&&a.removeClass(t.removeClasses),void 0!==t.addClasses&&a.addClass(t.addClasses),""===t.ariaLabel?a.removeAttr("aria-label"):a.attr("aria-label",t.ariaLabel),"dependencies-check-success"===t.status&&a.attr("data-name",t.pluginName).attr("data-slug",t.slug).attr("data-plugin",t.plugin).attr("href",t.href),a.text(t.text)),void 0!==t.action)switch(t.action){case"decrementUpdateCount":g.updates.decrementCount(t.upgradeType);break;case"install-plugin":case"update-plugin":void 0!==t.data&&void 0!==t.data.slug&&(t.data=g.updates._addCallbacks(t.data,t.action),g.updates.queue.push(t),g.updates.queueChecker())}}}),c(window).on("beforeunload",g.updates.beforeunload),f.on("keydown",".column-auto-updates .toggle-auto-update, .theme-overlay .toggle-auto-update",function(e){32===e.which&&e.preventDefault()}),f.on("click keyup",".column-auto-updates .toggle-auto-update, .theme-overlay .toggle-auto-update",function(e){var l,d,u,o=c(this),r=o.attr("data-wp-action"),p=o.find(".label");if(("keyup"!==e.type||32===e.which)&&(u="themes"!==pagenow?o.closest(".column-auto-updates"):o.closest(".theme-autoupdate"),e.preventDefault(),"yes"!==o.attr("data-doing-ajax"))){switch(o.attr("data-doing-ajax","yes"),pagenow){case"plugins":case"plugins-network":d="plugin",l=o.closest("tr").attr("data-plugin");break;case"themes-network":d="theme",l=o.closest("tr").attr("data-slug");break;case"themes":d="theme",l=o.attr("data-slug")}u.find(".notice.notice-error").addClass("hidden"),"enable"===r?p.text(h("Enabling...")):p.text(h("Disabling...")),o.find(".dashicons-update").removeClass("hidden"),e={action:"toggle-auto-updates",_ajax_nonce:m.ajax_nonce,state:r,type:d,asset:l},c.post(window.ajaxurl,e).done(function(e){var t,a,s,n,i=o.attr("href");if(e.success){if("themes"!==pagenow){switch(n=c(".auto-update-enabled span"),t=c(".auto-update-disabled span"),a=parseInt(n.text().replace(/[^\d]+/g,""),10)||0,s=parseInt(t.text().replace(/[^\d]+/g,""),10)||0,r){case"enable":++a,--s;break;case"disable":--a,++s}a=Math.max(0,a),s=Math.max(0,s),n.text("("+a+")"),t.text("("+s+")")}"enable"===r?(o[0].hasAttribute("href")&&(i=i.replace("action=enable-auto-update","action=disable-auto-update"),o.attr("href",i)),o.attr("data-wp-action","disable"),p.text(h("Disable auto-updates")),u.find(".auto-update-time").removeClass("hidden"),g.a11y.speak(h("Auto-updates enabled"))):(o[0].hasAttribute("href")&&(i=i.replace("action=disable-auto-update","action=enable-auto-update"),o.attr("href",i)),o.attr("data-wp-action","enable"),p.text(h("Enable auto-updates")),u.find(".auto-update-time").addClass("hidden"),g.a11y.speak(h("Auto-updates disabled"))),f.trigger("wp-auto-update-setting-changed",{state:r,type:d,asset:l})}else n=e.data&&e.data.error?e.data.error:h("The request could not be completed."),u.find(".notice.notice-error").removeClass("hidden").find("p").text(n),g.a11y.speak(n,"assertive")}).fail(function(){u.find(".notice.notice-error").removeClass("hidden").find("p").text(h("The request could not be completed.")),g.a11y.speak(h("The request could not be completed."),"assertive")}).always(function(){o.removeAttr("data-doing-ajax").find(".dashicons-update").addClass("hidden")})}})})}(jQuery,window.wp,window._wpUpdatesSettings); \ No newline at end of file
+!function(c,g,m){var f=c(document),h=g.i18n.__,d=g.i18n._x,r=g.i18n._n,o=g.i18n._nx,p=g.i18n.sprintf;(g=g||{}).updates={},g.updates.l10n={searchResults:"",searchResultsLabel:"",noPlugins:"",noItemsSelected:"",updating:"",pluginUpdated:"",themeUpdated:"",update:"",updateNow:"",pluginUpdateNowLabel:"",updateFailedShort:"",updateFailed:"",pluginUpdatingLabel:"",pluginUpdatedLabel:"",pluginUpdateFailedLabel:"",updatingMsg:"",updatedMsg:"",updateCancel:"",beforeunload:"",installNow:"",pluginInstallNowLabel:"",installing:"",pluginInstalled:"",themeInstalled:"",installFailedShort:"",installFailed:"",pluginInstallingLabel:"",themeInstallingLabel:"",pluginInstalledLabel:"",themeInstalledLabel:"",pluginInstallFailedLabel:"",themeInstallFailedLabel:"",installingMsg:"",installedMsg:"",importerInstalledMsg:"",aysDelete:"",aysDeleteUninstall:"",aysBulkDelete:"",aysBulkDeleteThemes:"",deleting:"",deleteFailed:"",pluginDeleted:"",themeDeleted:"",livePreview:"",activatePlugin:"",activateTheme:"",activatePluginLabel:"",activateThemeLabel:"",activateImporter:"",activateImporterLabel:"",unknownError:"",connectionError:"",nonceError:"",pluginsFound:"",noPluginsFound:"",autoUpdatesEnable:"",autoUpdatesEnabling:"",autoUpdatesEnabled:"",autoUpdatesDisable:"",autoUpdatesDisabling:"",autoUpdatesDisabled:"",autoUpdatesError:""},g.updates.l10n=window.wp.deprecateL10nObject("wp.updates.l10n",g.updates.l10n,"5.5.0"),g.updates.ajaxNonce=m.ajax_nonce,g.updates.searchTerm="",g.updates.shouldRequestFilesystemCredentials=!1,g.updates.filesystemCredentials={ftp:{host:"",username:"",password:"",connectionType:""},ssh:{publicKey:"",privateKey:""},fsNonce:"",available:!1},g.updates.ajaxLocked=!1,g.updates.adminNotice=g.template("wp-updates-admin-notice"),g.updates.queue=[],g.updates.$elToReturnFocusToFromCredentialsModal=void 0,g.updates.addAdminNotice=function(e){var t,a=c(e.selector),s=c(".wp-header-end");delete e.selector,t=g.updates.adminNotice(e),(a=a.length?a:c("#"+e.id)).length?a.replaceWith(t):s.length?s.after(t):"customize"===pagenow?c(".customize-themes-notifications").append(t):c(".wrap").find("> h1").after(t),f.trigger("wp-updates-notice-added")},g.updates.ajax=function(e,t){var a={};return g.updates.ajaxLocked?(g.updates.queue.push({action:e,data:t}),c.Deferred()):(g.updates.ajaxLocked=!0,t.success&&(a.success=t.success,delete t.success),t.error&&(a.error=t.error,delete t.error),a.data=_.extend(t,{action:e,_ajax_nonce:g.updates.ajaxNonce,_fs_nonce:g.updates.filesystemCredentials.fsNonce,username:g.updates.filesystemCredentials.ftp.username,password:g.updates.filesystemCredentials.ftp.password,hostname:g.updates.filesystemCredentials.ftp.hostname,connection_type:g.updates.filesystemCredentials.ftp.connectionType,public_key:g.updates.filesystemCredentials.ssh.publicKey,private_key:g.updates.filesystemCredentials.ssh.privateKey}),g.ajax.send(a).always(g.updates.ajaxAlways))},g.updates.ajaxAlways=function(e){e.errorCode&&"unable_to_connect_to_filesystem"===e.errorCode||(g.updates.ajaxLocked=!1,g.updates.queueChecker()),void 0!==e.debug&&window.console&&window.console.log&&_.map(e.debug,function(e){window.console.log(g.sanitize.stripTagsAndEncodeText(e))})},g.updates.refreshCount=function(){var e,t=c("#wp-admin-bar-updates"),a=c('a[href="update-core.php"] .update-plugins'),s=c('a[href="plugins.php"] .update-plugins'),n=c('a[href="themes.php"] .update-plugins');t.find(".ab-label").text(m.totals.counts.total),t.find(".updates-available-text").text(p(r("%s update available","%s updates available",m.totals.counts.total),m.totals.counts.total)),0===m.totals.counts.total&&t.find(".ab-label").parents("li").remove(),a.each(function(e,t){t.className=t.className.replace(/count-\d+/,"count-"+m.totals.counts.total)}),0<m.totals.counts.total?a.find(".update-count").text(m.totals.counts.total):a.remove(),s.each(function(e,t){t.className=t.className.replace(/count-\d+/,"count-"+m.totals.counts.plugins)}),0<m.totals.counts.total?s.find(".plugin-count").text(m.totals.counts.plugins):s.remove(),n.each(function(e,t){t.className=t.className.replace(/count-\d+/,"count-"+m.totals.counts.themes)}),0<m.totals.counts.total?n.find(".theme-count").text(m.totals.counts.themes):n.remove(),"plugins"===pagenow||"plugins-network"===pagenow?e=m.totals.counts.plugins:"themes"!==pagenow&&"themes-network"!==pagenow||(e=m.totals.counts.themes),0<e?c(".subsubsub .upgrade .count").text("("+e+")"):(c(".subsubsub .upgrade").remove(),c(".subsubsub li:last").html(function(){return c(this).children()}))},g.updates.setCardButtonStatus=function(e){var t=window.parent===window?null:window.parent;c.support.postMessage=!!window.postMessage,!1!==c.support.postMessage&&null!==t&&-1===window.parent.location.pathname.indexOf("index.php")&&t.postMessage(JSON.stringify(e),window.location.origin)},g.updates.decrementCount=function(e){m.totals.counts.total=Math.max(--m.totals.counts.total,0),"plugin"===e?m.totals.counts.plugins=Math.max(--m.totals.counts.plugins,0):"theme"===e&&(m.totals.counts.themes=Math.max(--m.totals.counts.themes,0)),g.updates.refreshCount(e)},g.updates.updatePlugin=function(e){var t,a,s,n=c("#wp-admin-bar-updates"),i=h("Updating..."),l="plugin-install"===pagenow||"plugin-install-network"===pagenow;return e=_.extend({success:g.updates.updatePluginSuccess,error:g.updates.updatePluginError},e),"plugins"===pagenow||"plugins-network"===pagenow?(a=(s=c('tr[data-plugin="'+e.plugin+'"]')).find(".update-message").removeClass("notice-error").addClass("updating-message notice-warning").find("p"),s=p(d("Updating %s...","plugin"),s.find(".plugin-title strong").text())):l&&(a=(t=c(".plugin-card-"+e.slug+", #plugin-information-footer")).find(".update-now").addClass("updating-message"),s=p(d("Updating %s...","plugin"),a.data("name")),t.removeClass("plugin-card-update-failed").find(".notice.notice-error").remove()),n.addClass("spin"),a.html()!==h("Updating...")&&a.data("originaltext",a.html()),a.attr("aria-label",s).text(i),f.trigger("wp-plugin-updating",e),l&&"plugin-information-footer"===t.attr("id")&&g.updates.setCardButtonStatus({status:"updating-plugin",slug:e.slug,addClasses:"updating-message",text:i,ariaLabel:s}),g.updates.ajax("update-plugin",e)},g.updates.updatePluginSuccess=function(e){var t,a,s,n=c("#wp-admin-bar-updates"),i=d("Updated!","plugin"),l=p(d("%s updated!","plugin"),e.pluginName);"plugins"===pagenow||"plugins-network"===pagenow?(a=(t=c('tr[data-plugin="'+e.plugin+'"]').removeClass("update is-enqueued").addClass("updated")).find(".update-message").removeClass("updating-message notice-warning").addClass("updated-message notice-success").find("p"),s=t.find(".plugin-version-author-uri").html().replace(e.oldVersion,e.newVersion),t.find(".plugin-version-author-uri").html(s),t.find(".auto-update-time").empty()):"plugin-install"!==pagenow&&"plugin-install-network"!==pagenow||(a=c(".plugin-card-"+e.slug+", #plugin-information-footer").find(".update-now").removeClass("updating-message").addClass("button-disabled updated-message")),n.removeClass("spin"),a.attr("aria-label",l).text(i),g.a11y.speak(h("Update completed successfully.")),"plugin_install_from_iframe"!==a.attr("id")?g.updates.decrementCount("plugin"):g.updates.setCardButtonStatus({status:"updated-plugin",slug:e.slug,removeClasses:"updating-message",addClasses:"button-disabled updated-message",text:i,ariaLabel:l}),f.trigger("wp-plugin-update-success",e)},g.updates.updatePluginError=function(e){var t,a,s,n,i,l=c("#wp-admin-bar-updates");g.updates.isValidResponse(e,"update")&&!g.updates.maybeHandleCredentialError(e,"update-plugin")&&(s=p(h("Update failed: %s"),e.errorMessage),"plugins"===pagenow||"plugins-network"===pagenow?(c('tr[data-plugin="'+e.plugin+'"]').removeClass("is-enqueued"),(a=(e.plugin?c('tr[data-plugin="'+e.plugin+'"]'):c('tr[data-slug="'+e.slug+'"]')).find(".update-message")).removeClass("updating-message notice-warning").addClass("notice-error").find("p").html(s),e.pluginName?a.find("p").attr("aria-label",p(d("%s update failed.","plugin"),e.pluginName)):a.find("p").removeAttr("aria-label")):"plugin-install"!==pagenow&&"plugin-install-network"!==pagenow||(n=h("Update failed."),(t=c(".plugin-card-"+e.slug+", #plugin-information-footer").append(g.updates.adminNotice({className:"update-message notice-error notice-alt is-dismissible",message:s}))).hasClass("plugin-card-"+e.slug)&&t.addClass("plugin-card-update-failed"),t.find(".update-now").text(n).removeClass("updating-message"),e.pluginName?(i=p(d("%s update failed.","plugin"),e.pluginName),t.find(".update-now").attr("aria-label",i)):(i="",t.find(".update-now").removeAttr("aria-label")),t.on("click",".notice.is-dismissible .notice-dismiss",function(){setTimeout(function(){t.removeClass("plugin-card-update-failed").find(".column-name a").trigger("focus"),t.find(".update-now").attr("aria-label",!1).text(h("Update Now"))},200)})),l.removeClass("spin"),g.a11y.speak(s,"assertive"),"plugin-information-footer"===t.attr("id")&&g.updates.setCardButtonStatus({status:"plugin-update-failed",slug:e.slug,removeClasses:"updating-message",text:n,ariaLabel:i}),f.trigger("wp-plugin-update-error",e))},g.updates.installPlugin=function(e){var t,a=c(".plugin-card-"+e.slug+", #plugin-information-footer"),s=a.find(".install-now"),n=h("Installing...");return e=_.extend({success:g.updates.installPluginSuccess,error:g.updates.installPluginError},e),(s="import"===pagenow?c('[data-slug="'+e.slug+'"]'):s).html()!==h("Installing...")&&s.data("originaltext",s.html()),t=p(d("Installing %s...","plugin"),s.data("name")),s.addClass("updating-message").attr("aria-label",t).text(n),g.a11y.speak(h("Installing... please wait.")),a.removeClass("plugin-card-install-failed").find(".notice.notice-error").remove(),f.trigger("wp-plugin-installing",e),"plugin-information-footer"===s.parent().attr("id")&&g.updates.setCardButtonStatus({status:"installing-plugin",slug:e.slug,addClasses:"updating-message",text:n,ariaLabel:t}),g.updates.ajax("install-plugin",e)},g.updates.installPluginSuccess=function(e){var t=c(".plugin-card-"+e.slug+", #plugin-information-footer").find(".install-now"),a=d("Installed!","plugin"),s=p(d("%s installed!","plugin"),e.pluginName);t.removeClass("updating-message").addClass("updated-message installed button-disabled").attr("aria-label",s).text(a),g.a11y.speak(h("Installation completed successfully.")),f.trigger("wp-plugin-install-success",e),e.activateUrl&&setTimeout(function(){g.updates.checkPluginDependencies({slug:e.slug})},1e3),"plugin-information-footer"===t.parent().attr("id")&&g.updates.setCardButtonStatus({status:"installed-plugin",slug:e.slug,removeClasses:"updating-message",addClasses:"updated-message installed button-disabled",text:a,ariaLabel:s})},g.updates.installPluginError=function(e){var t,a=c(".plugin-card-"+e.slug+", #plugin-information-footer"),s=a.find(".install-now"),n=h("Installation failed."),i=p(d("%s installation failed","plugin"),s.data("name"));g.updates.isValidResponse(e,"install")&&!g.updates.maybeHandleCredentialError(e,"install-plugin")&&(t=p(h("Installation failed: %s"),e.errorMessage),a.addClass("plugin-card-update-failed").append('<div class="notice notice-error notice-alt is-dismissible" role="alert"><p>'+t+"</p></div>"),a.on("click",".notice.is-dismissible .notice-dismiss",function(){setTimeout(function(){a.removeClass("plugin-card-update-failed").find(".column-name a").trigger("focus")},200)}),s.removeClass("updating-message").addClass("button-disabled").attr("aria-label",i).text(n),g.a11y.speak(t,"assertive"),g.updates.setCardButtonStatus({status:"plugin-install-failed",slug:e.slug,removeClasses:"updating-message",addClasses:"button-disabled",text:n,ariaLabel:i}),f.trigger("wp-plugin-install-error",e))},g.updates.checkPluginDependencies=function(e){return e=_.extend({success:g.updates.checkPluginDependenciesSuccess,error:g.updates.checkPluginDependenciesError},e),g.a11y.speak(h("Checking plugin dependencies... please wait.")),f.trigger("wp-checking-plugin-dependencies",e),g.updates.ajax("check_plugin_dependencies",e)},g.updates.checkPluginDependenciesSuccess=function(e){var t,a,s=c(".plugin-card-"+e.slug+", #plugin-information-footer").find(".install-now");s.removeClass("install-now installed button-disabled updated-message").addClass("activate-now button-primary").attr("href",e.activateUrl),g.a11y.speak(h("Plugin dependencies check completed successfully.")),f.trigger("wp-check-plugin-dependencies-success",e),("plugins-network"===pagenow?(t=d("Network Activate","plugin"),a=p(d("Network Activate %s","plugin"),e.pluginName),s.attr("aria-label",a)):(t=d("Activate","plugin"),a=p(d("Activate %s","plugin"),e.pluginName),s.attr("aria-label",a).attr("data-name",e.pluginName).attr("data-slug",e.slug).attr("data-plugin",e.plugin))).text(t),"plugin-information-footer"===s.parent().attr("id")&&g.updates.setCardButtonStatus({status:"dependencies-check-success",slug:e.slug,removeClasses:"install-now installed button-disabled updated-message",addClasses:"activate-now button-primary",text:t,ariaLabel:a,pluginName:e.pluginName,plugin:e.plugin,href:e.activateUrl})},g.updates.checkPluginDependenciesError=function(e){var t,a=c(".plugin-card-"+e.slug+", #plugin-information-footer").find(".install-now"),s=d("Activate","plugin"),n=p(d("Cannot activate %1$s. %2$s","plugin"),e.pluginName,e.errorMessage);g.updates.isValidResponse(e,"check-dependencies")&&(t=p(h("Activation failed: %s"),e.errorMessage),g.a11y.speak(t,"assertive"),f.trigger("wp-check-plugin-dependencies-error",e),a.removeClass("install-now installed updated-message").addClass("activate-now button-primary").attr("aria-label",n).text(s),"plugin-information-footer"===a.parent().attr("id"))&&g.updates.setCardButtonStatus({status:"dependencies-check-failed",slug:e.slug,removeClasses:"install-now installed updated-message",addClasses:"activate-now button-primary",text:s,ariaLabel:n})},g.updates.activatePlugin=function(e){var t=c(".plugin-card-"+e.slug+", #plugin-information-footer").find(".activate-now, .activating-message");return e=_.extend({success:g.updates.activatePluginSuccess,error:g.updates.activatePluginError},e),g.a11y.speak(h("Activating... please wait.")),f.trigger("wp-activating-plugin",e),"plugin-information-footer"===t.parent().attr("id")&&g.updates.setCardButtonStatus({status:"activating-plugin",slug:e.slug,removeClasses:"installed updated-message button-primary",addClasses:"activating-message",text:h("Activating..."),ariaLabel:p(d("Activating %s","plugin"),e.name)}),g.updates.ajax("activate-plugin",e)},g.updates.activatePluginSuccess=function(e){var t=c(".plugin-card-"+e.slug+", #plugin-information-footer").find(".activating-message"),a=d("Activated!","plugin"),s=p("%s activated successfully.",e.pluginName);g.a11y.speak(h("Activation completed successfully.")),f.trigger("wp-plugin-activate-success",e),t.removeClass("activating-message").addClass("activated-message button-disabled").attr("aria-label",s).text(a),"plugin-information-footer"===t.parent().attr("id")&&g.updates.setCardButtonStatus({status:"activated-plugin",slug:e.slug,removeClasses:"activating-message",addClasses:"activated-message button-disabled",text:a,ariaLabel:s}),setTimeout(function(){t.removeClass("activated-message").text(d("Active","plugin")),"plugin-information-footer"===t.parent().attr("id")&&g.updates.setCardButtonStatus({status:"plugin-active",slug:e.slug,removeClasses:"activated-message",text:d("Active","plugin"),ariaLabel:p("%s is active.",e.pluginName)})},1e3)},g.updates.activatePluginError=function(e){var t,a=c(".plugin-card-"+e.slug+", #plugin-information-footer").find(".activating-message"),s=h("Activation failed."),n=p(d("%s activation failed","plugin"),e.pluginName);g.updates.isValidResponse(e,"activate")&&(t=p(h("Activation failed: %s"),e.errorMessage),g.a11y.speak(t,"assertive"),f.trigger("wp-plugin-activate-error",e),a.removeClass("install-now installed activating-message").addClass("button-disabled").attr("aria-label",n).text(s),"plugin-information-footer"===a.parent().attr("id"))&&g.updates.setCardButtonStatus({status:"plugin-activation-failed",slug:e.slug,removeClasses:"install-now installed activating-message",addClasses:"button-disabled",text:s,ariaLabel:n})},g.updates.installImporterSuccess=function(e){g.updates.addAdminNotice({id:"install-success",className:"notice-success is-dismissible",message:p(h('Importer installed successfully. <a href="%s">Run importer</a>'),e.activateUrl+"&from=import")}),c('[data-slug="'+e.slug+'"]').removeClass("install-now updating-message").addClass("activate-now").attr({href:e.activateUrl+"&from=import","aria-label":p(h("Run %s"),e.pluginName)}).text(h("Run Importer")),g.a11y.speak(h("Installation completed successfully.")),f.trigger("wp-importer-install-success",e)},g.updates.installImporterError=function(e){var t=p(h("Installation failed: %s"),e.errorMessage),a=c('[data-slug="'+e.slug+'"]'),s=a.data("name");g.updates.isValidResponse(e,"install")&&!g.updates.maybeHandleCredentialError(e,"install-plugin")&&(g.updates.addAdminNotice({id:e.errorCode,className:"notice-error is-dismissible",message:t}),a.removeClass("updating-message").attr("aria-label",p(d("Install %s now","plugin"),s)).text(d("Install Now","plugin")),g.a11y.speak(t,"assertive"),f.trigger("wp-importer-install-error",e))},g.updates.deletePlugin=function(e){var t=c('[data-plugin="'+e.plugin+'"]').find(".row-actions a.delete");return e=_.extend({success:g.updates.deletePluginSuccess,error:g.updates.deletePluginError},e),t.html()!==h("Deleting...")&&t.data("originaltext",t.html()).text(h("Deleting...")),g.a11y.speak(h("Deleting...")),f.trigger("wp-plugin-deleting",e),g.updates.ajax("delete-plugin",e)},g.updates.deletePluginSuccess=function(u){c('[data-plugin="'+u.plugin+'"]').css({backgroundColor:"#faafaa"}).fadeOut(350,function(){var e=c("#bulk-action-form"),t=c(".subsubsub"),a=c(this),s=t.find('[aria-current="page"]'),n=c(".displaying-num"),i=e.find("thead th:not(.hidden), thead td").length,l=g.template("item-deleted-row"),d=m.plugins;a.hasClass("plugin-update-tr")||a.after(l({slug:u.slug,plugin:u.plugin,colspan:i,name:u.pluginName})),a.remove(),-1!==_.indexOf(d.upgrade,u.plugin)&&(d.upgrade=_.without(d.upgrade,u.plugin),g.updates.decrementCount("plugin")),-1!==_.indexOf(d.inactive,u.plugin)&&(d.inactive=_.without(d.inactive,u.plugin),d.inactive.length?t.find(".inactive .count").text("("+d.inactive.length+")"):t.find(".inactive").remove()),-1!==_.indexOf(d.active,u.plugin)&&(d.active=_.without(d.active,u.plugin),d.active.length?t.find(".active .count").text("("+d.active.length+")"):t.find(".active").remove()),-1!==_.indexOf(d.recently_activated,u.plugin)&&(d.recently_activated=_.without(d.recently_activated,u.plugin),d.recently_activated.length?t.find(".recently_activated .count").text("("+d.recently_activated.length+")"):t.find(".recently_activated").remove()),-1!==_.indexOf(d["auto-update-enabled"],u.plugin)&&(d["auto-update-enabled"]=_.without(d["auto-update-enabled"],u.plugin),d["auto-update-enabled"].length?t.find(".auto-update-enabled .count").text("("+d["auto-update-enabled"].length+")"):t.find(".auto-update-enabled").remove()),-1!==_.indexOf(d["auto-update-disabled"],u.plugin)&&(d["auto-update-disabled"]=_.without(d["auto-update-disabled"],u.plugin),d["auto-update-disabled"].length?t.find(".auto-update-disabled .count").text("("+d["auto-update-disabled"].length+")"):t.find(".auto-update-disabled").remove()),d.all=_.without(d.all,u.plugin),d.all.length?t.find(".all .count").text("("+d.all.length+")"):(e.find(".tablenav").css({visibility:"hidden"}),t.find(".all").remove(),e.find("tr.no-items").length||e.find("#the-list").append('<tr class="no-items"><td class="colspanchange" colspan="'+i+'">'+h("No plugins are currently available.")+"</td></tr>")),n.length&&s.length&&(l=d[s.parent("li").attr("class")].length,n.text(p(o("%s item","%s items",l,"plugin/plugins"),l)))}),g.a11y.speak(d("Deleted!","plugin")),f.trigger("wp-plugin-delete-success",u)},g.updates.deletePluginError=function(e){var t,a=g.template("item-update-row"),s=g.updates.adminNotice({className:"update-message notice-error notice-alt",message:e.errorMessage}),n=e.plugin?(t=c('tr.inactive[data-plugin="'+e.plugin+'"]')).siblings('[data-plugin="'+e.plugin+'"]'):(t=c('tr.inactive[data-slug="'+e.slug+'"]')).siblings('[data-slug="'+e.slug+'"]');g.updates.isValidResponse(e,"delete")&&!g.updates.maybeHandleCredentialError(e,"delete-plugin")&&(n.length?(n.find(".notice-error").remove(),n.find(".plugin-update").append(s)):t.addClass("update").after(a({slug:e.slug,plugin:e.plugin||e.slug,colspan:c("#bulk-action-form").find("thead th:not(.hidden), thead td").length,content:s})),f.trigger("wp-plugin-delete-error",e))},g.updates.updateTheme=function(e){var t;return e=_.extend({success:g.updates.updateThemeSuccess,error:g.updates.updateThemeError},e),(t=("themes-network"===pagenow?c('[data-slug="'+e.slug+'"]').find(".update-message").removeClass("notice-error").addClass("updating-message notice-warning"):(t="customize"===pagenow?((t=c('[data-slug="'+e.slug+'"].notice').removeClass("notice-large")).find("h3").remove(),t.add(c("#customize-control-installed_theme_"+e.slug).find(".update-message"))):((t=c("#update-theme").closest(".notice").removeClass("notice-large")).find("h3").remove(),t.add(c('[data-slug="'+e.slug+'"]').find(".update-message")))).addClass("updating-message")).find("p")).html()!==h("Updating...")&&t.data("originaltext",t.html()),g.a11y.speak(h("Updating... please wait.")),t.text(h("Updating...")),f.trigger("wp-theme-updating",e),g.updates.ajax("update-theme",e)},g.updates.updateThemeSuccess=function(e){var t,a,s=c("body.modal-open").length,n=c('[data-slug="'+e.slug+'"]'),i={className:"updated-message notice-success notice-alt",message:d("Updated!","theme")};"customize"===pagenow?((n=c(".updating-message").siblings(".theme-name")).length&&(a=n.html().replace(e.oldVersion,e.newVersion),n.html(a)),t=c(".theme-info .notice").add(g.customize.control("installed_theme_"+e.slug).container.find(".theme").find(".update-message"))):"themes-network"===pagenow?(t=n.find(".update-message"),a=n.find(".theme-version-author-uri").html().replace(e.oldVersion,e.newVersion),n.find(".theme-version-author-uri").html(a),n.find(".auto-update-time").empty()):(t=c(".theme-info .notice").add(n.find(".update-message")),s?(c(".load-customize:visible").trigger("focus"),c(".theme-info .theme-autoupdate").find(".auto-update-time").empty()):n.find(".load-customize").trigger("focus")),g.updates.addAdminNotice(_.extend({selector:t},i)),g.a11y.speak(h("Update completed successfully.")),g.updates.decrementCount("theme"),f.trigger("wp-theme-update-success",e),s&&"customize"!==pagenow&&c(".theme-info .theme-author").after(g.updates.adminNotice(i))},g.updates.updateThemeError=function(e){var t,a=c('[data-slug="'+e.slug+'"]'),s=p(h("Update failed: %s"),e.errorMessage);g.updates.isValidResponse(e,"update")&&!g.updates.maybeHandleCredentialError(e,"update-theme")&&("customize"===pagenow&&(a=g.customize.control("installed_theme_"+e.slug).container.find(".theme")),"themes-network"===pagenow?t=a.find(".update-message "):(t=c(".theme-info .notice").add(a.find(".notice")),(c("body.modal-open").length?c(".load-customize:visible"):a.find(".load-customize")).trigger("focus")),g.updates.addAdminNotice({selector:t,className:"update-message notice-error notice-alt is-dismissible",message:s}),g.a11y.speak(s),f.trigger("wp-theme-update-error",e))},g.updates.installTheme=function(e){var t=c('.theme-install[data-slug="'+e.slug+'"]');return e=_.extend({success:g.updates.installThemeSuccess,error:g.updates.installThemeError},e),t.addClass("updating-message"),t.parents(".theme").addClass("focus"),t.html()!==h("Installing...")&&t.data("originaltext",t.html()),t.attr("aria-label",p(d("Installing %s...","theme"),t.data("name"))).text(h("Installing...")),g.a11y.speak(h("Installing... please wait.")),c('.install-theme-info, [data-slug="'+e.slug+'"]').removeClass("theme-install-failed").find(".notice.notice-error").remove(),f.trigger("wp-theme-installing",e),g.updates.ajax("install-theme",e)},g.updates.installThemeSuccess=function(e){var t,a=c(".wp-full-overlay-header, [data-slug="+e.slug+"]");f.trigger("wp-theme-install-success",e),t=a.find(".button-primary").removeClass("updating-message").addClass("updated-message disabled").attr("aria-label",p(d("%s installed!","theme"),e.themeName)).text(d("Installed!","theme")),g.a11y.speak(h("Installation completed successfully.")),setTimeout(function(){e.activateUrl&&(t.attr("href",e.activateUrl).removeClass("theme-install updated-message disabled").addClass("activate"),"themes-network"===pagenow?t.attr("aria-label",p(d("Network Activate %s","theme"),e.themeName)).text(h("Network Enable")):t.attr("aria-label",p(d("Activate %s","theme"),e.themeName)).text(d("Activate","theme"))),e.customizeUrl&&t.siblings(".preview").replaceWith(function(){return c("<a>").attr("href",e.customizeUrl).addClass("button load-customize").text(h("Live Preview"))})},1e3)},g.updates.installThemeError=function(e){var t,a=p(h("Installation failed: %s"),e.errorMessage),s=g.updates.adminNotice({className:"update-message notice-error notice-alt",message:a});g.updates.isValidResponse(e,"install")&&!g.updates.maybeHandleCredentialError(e,"install-theme")&&("customize"===pagenow?(f.find("body").hasClass("modal-open")?(t=c('.theme-install[data-slug="'+e.slug+'"]'),c(".theme-overlay .theme-info").prepend(s)):(t=c('.theme-install[data-slug="'+e.slug+'"]')).closest(".theme").addClass("theme-install-failed").append(s),g.customize.notifications.remove("theme_installing")):f.find("body").hasClass("full-overlay-active")?(t=c('.theme-install[data-slug="'+e.slug+'"]'),c(".install-theme-info").prepend(s)):t=c('[data-slug="'+e.slug+'"]').removeClass("focus").addClass("theme-install-failed").append(s).find(".theme-install"),t.removeClass("updating-message").attr("aria-label",p(d("%s installation failed","theme"),t.data("name"))).text(h("Installation failed.")),g.a11y.speak(a,"assertive"),f.trigger("wp-theme-install-error",e))},g.updates.deleteTheme=function(e){var t;return"themes"===pagenow?t=c(".theme-actions .delete-theme"):"themes-network"===pagenow&&(t=c('[data-slug="'+e.slug+'"]').find(".row-actions a.delete")),e=_.extend({success:g.updates.deleteThemeSuccess,error:g.updates.deleteThemeError},e),t&&t.html()!==h("Deleting...")&&t.data("originaltext",t.html()).text(h("Deleting...")),g.a11y.speak(h("Deleting...")),c(".theme-info .update-message").remove(),f.trigger("wp-theme-deleting",e),g.updates.ajax("delete-theme",e)},g.updates.deleteThemeSuccess=function(n){var e=c('[data-slug="'+n.slug+'"]');"themes-network"===pagenow&&e.css({backgroundColor:"#faafaa"}).fadeOut(350,function(){var e=c(".subsubsub"),t=c(this),a=m.themes,s=g.template("item-deleted-row");t.hasClass("plugin-update-tr")||t.after(s({slug:n.slug,colspan:c("#bulk-action-form").find("thead th:not(.hidden), thead td").length,name:t.find(".theme-title strong").text()})),t.remove(),-1!==_.indexOf(a.upgrade,n.slug)&&(a.upgrade=_.without(a.upgrade,n.slug),g.updates.decrementCount("theme")),-1!==_.indexOf(a.disabled,n.slug)&&(a.disabled=_.without(a.disabled,n.slug),a.disabled.length?e.find(".disabled .count").text("("+a.disabled.length+")"):e.find(".disabled").remove()),-1!==_.indexOf(a["auto-update-enabled"],n.slug)&&(a["auto-update-enabled"]=_.without(a["auto-update-enabled"],n.slug),a["auto-update-enabled"].length?e.find(".auto-update-enabled .count").text("("+a["auto-update-enabled"].length+")"):e.find(".auto-update-enabled").remove()),-1!==_.indexOf(a["auto-update-disabled"],n.slug)&&(a["auto-update-disabled"]=_.without(a["auto-update-disabled"],n.slug),a["auto-update-disabled"].length?e.find(".auto-update-disabled .count").text("("+a["auto-update-disabled"].length+")"):e.find(".auto-update-disabled").remove()),a.all=_.without(a.all,n.slug),e.find(".all .count").text("("+a.all.length+")")}),"themes"===pagenow&&_.find(_wpThemeSettings.themes,{id:n.slug}).hasUpdate&&g.updates.decrementCount("theme"),g.a11y.speak(d("Deleted!","theme")),f.trigger("wp-theme-delete-success",n)},g.updates.deleteThemeError=function(e){var t=c('tr.inactive[data-slug="'+e.slug+'"]'),a=c(".theme-actions .delete-theme"),s=g.template("item-update-row"),n=t.siblings("#"+e.slug+"-update"),i=p(h("Deletion failed: %s"),e.errorMessage),l=g.updates.adminNotice({className:"update-message notice-error notice-alt",message:i});g.updates.maybeHandleCredentialError(e,"delete-theme")||("themes-network"===pagenow?n.length?(n.find(".notice-error").remove(),n.find(".plugin-update").append(l)):t.addClass("update").after(s({slug:e.slug,colspan:c("#bulk-action-form").find("thead th:not(.hidden), thead td").length,content:l})):c(".theme-info .theme-description").before(l),a.html(a.data("originaltext")),g.a11y.speak(i,"assertive"),f.trigger("wp-theme-delete-error",e))},g.updates._addCallbacks=function(e,t){return"import"===pagenow&&"install-plugin"===t&&(e.success=g.updates.installImporterSuccess,e.error=g.updates.installImporterError),e},g.updates.queueChecker=function(){var e;if(!g.updates.ajaxLocked&&g.updates.queue.length)switch((e=g.updates.queue.shift()).action){case"install-plugin":g.updates.installPlugin(e.data);break;case"update-plugin":g.updates.updatePlugin(e.data);break;case"delete-plugin":g.updates.deletePlugin(e.data);break;case"install-theme":g.updates.installTheme(e.data);break;case"update-theme":g.updates.updateTheme(e.data);break;case"delete-theme":g.updates.deleteTheme(e.data)}},g.updates.requestFilesystemCredentials=function(e){!1===g.updates.filesystemCredentials.available&&(e&&!g.updates.$elToReturnFocusToFromCredentialsModal&&(g.updates.$elToReturnFocusToFromCredentialsModal=c(e.target)),g.updates.ajaxLocked=!0,g.updates.requestForCredentialsModalOpen())},g.updates.maybeRequestFilesystemCredentials=function(e){g.updates.shouldRequestFilesystemCredentials&&!g.updates.ajaxLocked&&g.updates.requestFilesystemCredentials(e)},g.updates.keydown=function(e){27===e.keyCode?g.updates.requestForCredentialsModalCancel():9===e.keyCode&&("upgrade"!==e.target.id||e.shiftKey?"hostname"===e.target.id&&e.shiftKey&&(c("#upgrade").trigger("focus"),e.preventDefault()):(c("#hostname").trigger("focus"),e.preventDefault()))},g.updates.requestForCredentialsModalOpen=function(){var e=c("#request-filesystem-credentials-dialog");c("body").addClass("modal-open"),e.show(),e.find("input:enabled:first").trigger("focus"),e.on("keydown",g.updates.keydown)},g.updates.requestForCredentialsModalClose=function(){c("#request-filesystem-credentials-dialog").hide(),c("body").removeClass("modal-open"),g.updates.$elToReturnFocusToFromCredentialsModal&&g.updates.$elToReturnFocusToFromCredentialsModal.trigger("focus")},g.updates.requestForCredentialsModalCancel=function(){(g.updates.ajaxLocked||g.updates.queue.length)&&(_.each(g.updates.queue,function(e){f.trigger("credential-modal-cancel",e)}),g.updates.ajaxLocked=!1,g.updates.queue=[],g.updates.requestForCredentialsModalClose())},g.updates.showErrorInCredentialsForm=function(e){var t=c("#request-filesystem-credentials-form");t.find(".notice").remove(),t.find("#request-filesystem-credentials-title").after('<div class="notice notice-alt notice-error" role="alert"><p>'+e+"</p></div>")},g.updates.credentialError=function(e,t){e=g.updates._addCallbacks(e,t),g.updates.queue.unshift({action:t,data:e}),g.updates.filesystemCredentials.available=!1,g.updates.showErrorInCredentialsForm(e.errorMessage),g.updates.requestFilesystemCredentials()},g.updates.maybeHandleCredentialError=function(e,t){return!(!g.updates.shouldRequestFilesystemCredentials||!e.errorCode||"unable_to_connect_to_filesystem"!==e.errorCode||(g.updates.credentialError(e,t),0))},g.updates.isValidResponse=function(e,t){var a,s=h("Something went wrong.");if(_.isObject(e)&&!_.isFunction(e.always))return!0;switch(_.isString(e)&&"-1"===e?s=h("An error has occurred. Please reload the page and try again."):_.isString(e)?s=e:void 0!==e.readyState&&0===e.readyState?s=h("Connection lost or the server is busy. Please try again later."):_.isString(e.responseText)&&""!==e.responseText?s=e.responseText:_.isString(e.statusText)&&(s=e.statusText),t){case"update":a=h("Update failed: %s");break;case"install":a=h("Installation failed: %s");break;case"check-dependencies":a=h("Dependencies check failed: %s");break;case"activate":a=h("Activation failed: %s");break;case"delete":a=h("Deletion failed: %s")}return s=s.replace(/<[\/a-z][^<>]*>/gi,""),a=a.replace("%s",s),g.updates.addAdminNotice({id:"unknown_error",className:"notice-error is-dismissible",message:_.escape(a)}),g.updates.ajaxLocked=!1,g.updates.queue=[],c(".button.updating-message").removeClass("updating-message").removeAttr("aria-label").prop("disabled",!0).text(h("Update failed.")),c(".updating-message:not(.button):not(.thickbox)").removeClass("updating-message notice-warning").addClass("notice-error").find("p").removeAttr("aria-label").text(a),g.a11y.speak(a,"assertive"),!1},g.updates.beforeunload=function(){if(g.updates.ajaxLocked)return h("Updates may not complete if you navigate away from this page.")},c(function(){var i=c("#plugin-filter, #plugin-information-footer"),o=c("#bulk-action-form"),e=c("#request-filesystem-credentials-form"),t=c("#request-filesystem-credentials-dialog"),a=c(".plugins-php .wp-filter-search"),s=c(".plugin-install-php .wp-filter-search");(m=_.extend(m,window._wpUpdatesItemCounts||{})).totals&&g.updates.refreshCount(),g.updates.shouldRequestFilesystemCredentials=0<t.length,t.on("submit","form",function(e){e.preventDefault(),g.updates.filesystemCredentials.ftp.hostname=c("#hostname").val(),g.updates.filesystemCredentials.ftp.username=c("#username").val(),g.updates.filesystemCredentials.ftp.password=c("#password").val(),g.updates.filesystemCredentials.ftp.connectionType=c('input[name="connection_type"]:checked').val(),g.updates.filesystemCredentials.ssh.publicKey=c("#public_key").val(),g.updates.filesystemCredentials.ssh.privateKey=c("#private_key").val(),g.updates.filesystemCredentials.fsNonce=c("#_fs_nonce").val(),g.updates.filesystemCredentials.available=!0,g.updates.ajaxLocked=!1,g.updates.queueChecker(),g.updates.requestForCredentialsModalClose()}),t.on("click",'[data-js-action="close"], .notification-dialog-background',g.updates.requestForCredentialsModalCancel),e.on("change",'input[name="connection_type"]',function(){c("#ssh-keys").toggleClass("hidden","ssh"!==c(this).val())}).trigger("change"),f.on("credential-modal-cancel",function(e,t){var a,s=c(".updating-message");"import"===pagenow?s.removeClass("updating-message"):"plugins"===pagenow||"plugins-network"===pagenow?"update-plugin"===t.action?a=c('tr[data-plugin="'+t.data.plugin+'"]').find(".update-message"):"delete-plugin"===t.action&&(a=c('[data-plugin="'+t.data.plugin+'"]').find(".row-actions a.delete")):"themes"===pagenow||"themes-network"===pagenow?"update-theme"===t.action?a=c('[data-slug="'+t.data.slug+'"]').find(".update-message"):"delete-theme"===t.action&&"themes-network"===pagenow?a=c('[data-slug="'+t.data.slug+'"]').find(".row-actions a.delete"):"delete-theme"===t.action&&"themes"===pagenow&&(a=c(".theme-actions .delete-theme")):a=s,a&&a.hasClass("updating-message")&&(void 0===(s=a.data("originaltext"))&&(s=c("<p>").html(a.find("p").data("originaltext"))),a.removeClass("updating-message").html(s),"plugin-install"!==pagenow&&"plugin-install-network"!==pagenow||("update-plugin"===t.action?a.attr("aria-label",p(d("Update %s now","plugin"),a.data("name"))):"install-plugin"===t.action&&a.attr("aria-label",p(d("Install %s now","plugin"),a.data("name"))))),g.a11y.speak(h("Update canceled."))}),o.on("click","[data-plugin] .update-link",function(e){var t=c(e.target),a=t.parents("tr");e.preventDefault(),t.hasClass("updating-message")||t.hasClass("button-disabled")||(g.updates.maybeRequestFilesystemCredentials(e),g.updates.$elToReturnFocusToFromCredentialsModal=a.find(".check-column input"),g.updates.updatePlugin({plugin:a.data("plugin"),slug:a.data("slug")}))}),i.on("click",".update-now",function(e){var t=c(e.target);e.preventDefault(),t.hasClass("updating-message")||t.hasClass("button-disabled")||(g.updates.maybeRequestFilesystemCredentials(e),g.updates.updatePlugin({plugin:t.data("plugin"),slug:t.data("slug")}))}),i.on("click",".install-now",function(e){var t=c(e.target);e.preventDefault(),t.hasClass("updating-message")||t.hasClass("button-disabled")||(g.updates.shouldRequestFilesystemCredentials&&!g.updates.ajaxLocked&&(g.updates.requestFilesystemCredentials(e),f.on("credential-modal-cancel",function(){c(".install-now.updating-message").removeClass("updating-message").text(d("Install Now","plugin")),g.a11y.speak(h("Update canceled."))})),g.updates.installPlugin({slug:t.data("slug")}))}),f.on("click","#plugin-information-footer .activate-now",function(e){e.preventDefault(),window.parent.location.href=c(e.target).attr("href")}),f.on("click",".importer-item .install-now",function(e){var t=c(e.target),a=c(this).data("name");e.preventDefault(),t.hasClass("updating-message")||(g.updates.shouldRequestFilesystemCredentials&&!g.updates.ajaxLocked&&(g.updates.requestFilesystemCredentials(e),f.on("credential-modal-cancel",function(){t.removeClass("updating-message").attr("aria-label",p(d("Install %s now","plugin"),a)).text(d("Install Now","plugin")),g.a11y.speak(h("Update canceled."))})),g.updates.installPlugin({slug:t.data("slug"),pagenow:pagenow,success:g.updates.installImporterSuccess,error:g.updates.installImporterError}))}),o.on("click","[data-plugin] a.delete",function(e){var t=c(e.target).parents("tr"),a=t.hasClass("is-uninstallable")?p(h("Are you sure you want to delete %s and its data?"),t.find(".plugin-title strong").text()):p(h("Are you sure you want to delete %s?"),t.find(".plugin-title strong").text());e.preventDefault(),window.confirm(a)&&(g.updates.maybeRequestFilesystemCredentials(e),g.updates.deletePlugin({plugin:t.data("plugin"),slug:t.data("slug")}))}),f.on("click",".themes-php.network-admin .update-link",function(e){var t=c(e.target),a=t.parents("tr");e.preventDefault(),t.hasClass("updating-message")||t.hasClass("button-disabled")||(g.updates.maybeRequestFilesystemCredentials(e),g.updates.$elToReturnFocusToFromCredentialsModal=a.find(".check-column input"),g.updates.updateTheme({slug:a.data("slug")}))}),f.on("click",".themes-php.network-admin a.delete",function(e){var t=c(e.target).parents("tr"),a=p(h("Are you sure you want to delete %s?"),t.find(".theme-title strong").text());e.preventDefault(),window.confirm(a)&&(g.updates.maybeRequestFilesystemCredentials(e),g.updates.deleteTheme({slug:t.data("slug")}))}),o.on("click",'[type="submit"]:not([name="clear-recent-list"])',function(e){var t,s,n=c(e.target).siblings("select").val(),a=o.find('input[name="checked[]"]:checked'),i=0,l=0,d=[];switch(pagenow){case"plugins":case"plugins-network":t="plugin";break;case"themes-network":t="theme";break;default:return}if(!a.length)return e.preventDefault(),c("html, body").animate({scrollTop:0}),g.updates.addAdminNotice({id:"no-items-selected",className:"notice-error is-dismissible",message:h("Please select at least one item to perform this action on.")});switch(n){case"update-selected":s=n.replace("selected",t);break;case"delete-selected":var u=h("plugin"===t?"Are you sure you want to delete the selected plugins and their data?":"Caution: These themes may be active on other sites in the network. Are you sure you want to proceed?");if(!window.confirm(u))return void e.preventDefault();s=n.replace("selected",t);break;default:return}g.updates.maybeRequestFilesystemCredentials(e),e.preventDefault(),o.find('.manage-column [type="checkbox"]').prop("checked",!1),f.trigger("wp-"+t+"-bulk-"+n,a),a.each(function(e,t){var t=c(t),a=t.parents("tr");"update-selected"!==n||a.hasClass("update")&&!a.find("notice-error").length?"update-selected"===n&&a.hasClass("is-enqueued")||(a.addClass("is-enqueued"),g.updates.queue.push({action:s,data:{plugin:a.data("plugin"),slug:a.data("slug")}})):t.prop("checked",!1)}),f.on("wp-plugin-update-success wp-plugin-update-error wp-theme-update-success wp-theme-update-error",function(e,t){var a,s=c('[data-slug="'+t.slug+'"]'),e=("wp-"+t.update+"-update-success"===e.type?i++:(e=t.pluginName||s.find(".column-primary strong").text(),l++,d.push(e+": "+t.errorMessage)),s.find('input[name="checked[]"]:checked').prop("checked",!1),g.updates.adminNotice=g.template("wp-bulk-updates-admin-notice"),null),s=(i&&(e="plugin"===t.update?p(r("%s plugin successfully updated.","%s plugins successfully updated.",i),i):p(r("%s theme successfully updated.","%s themes successfully updated.",i),i)),null);l&&(s=p(r("%s update failed.","%s updates failed.",l),l)),g.updates.addAdminNotice({id:"bulk-action-notice",className:"bulk-action-notice",successMessage:e,errorMessage:s,errorMessages:d,type:t.update}),a=c("#bulk-action-notice").on("click","button",function(){c(this).toggleClass("bulk-action-errors-collapsed").attr("aria-expanded",!c(this).hasClass("bulk-action-errors-collapsed")),a.find(".bulk-action-errors").toggleClass("hidden")}),0<l&&!g.updates.queue.length&&c("html, body").animate({scrollTop:0})}),f.on("wp-updates-notice-added",function(){g.updates.adminNotice=g.template("wp-updates-admin-notice")}),g.updates.queueChecker()}),s.length&&s.attr("aria-describedby","live-search-desc"),s.on("keyup input",_.debounce(function(e,t){var a=c(".plugin-install-search"),s={_ajax_nonce:g.updates.ajaxNonce,s:encodeURIComponent(e.target.value),tab:"search",type:c("#typeselector").val(),pagenow:pagenow},n=location.href.split("?")[0]+"?"+c.param(_.omit(s,["_ajax_nonce","pagenow"]));"keyup"===e.type&&27===e.which&&(e.target.value=""),g.updates.searchTerm===s.s&&"typechange"!==t||(i.empty(),g.updates.searchTerm=s.s,window.history&&window.history.replaceState&&window.history.replaceState(null,"",n),a.length||(a=c('<li class="plugin-install-search" />').append(c("<a />",{class:"current",href:n,text:h("Search Results")})),c(".wp-filter .filter-links .current").removeClass("current").parents(".filter-links").prepend(a),i.prev("p").remove(),c(".plugins-popular-tags-wrapper").remove()),void 0!==g.updates.searchRequest&&g.updates.searchRequest.abort(),c("body").addClass("loading-content"),g.updates.searchRequest=g.ajax.post("search-install-plugins",s).done(function(e){c("body").removeClass("loading-content"),i.append(e.items),delete g.updates.searchRequest,0===e.count?g.a11y.speak(h("You do not appear to have any plugins available at this time.")):g.a11y.speak(p(h("Number of plugins found: %d"),e.count))}))},1e3)),a.length&&a.attr("aria-describedby","live-search-desc"),a.on("keyup input",_.debounce(function(e){var s={_ajax_nonce:g.updates.ajaxNonce,s:encodeURIComponent(e.target.value),pagenow:pagenow,plugin_status:"all"};"keyup"===e.type&&27===e.which&&(e.target.value=""),g.updates.searchTerm!==s.s&&(g.updates.searchTerm=s.s,e=_.object(_.compact(_.map(location.search.slice(1).split("&"),function(e){if(e)return e.split("=")}))),s.plugin_status=e.plugin_status||"all",window.history&&window.history.replaceState&&window.history.replaceState(null,"",location.href.split("?")[0]+"?s="+s.s+"&plugin_status="+s.plugin_status),void 0!==g.updates.searchRequest&&g.updates.searchRequest.abort(),o.empty(),c("body").addClass("loading-content"),c(".subsubsub .current").removeClass("current"),g.updates.searchRequest=g.ajax.post("search-plugins",s).done(function(e){var t=c("<span />").addClass("subtitle").html(p(h("Search results for: %s"),"<strong>"+_.escape(decodeURIComponent(s.s))+"</strong>")),a=c(".wrap .subtitle");s.s.length?a.length?a.replaceWith(t):c(".wp-header-end").before(t):(a.remove(),c(".subsubsub ."+s.plugin_status+" a").addClass("current")),c("body").removeClass("loading-content"),o.append(e.items),delete g.updates.searchRequest,0===e.count?g.a11y.speak(h("No plugins found. Try a different search.")):g.a11y.speak(p(h("Number of plugins found: %d"),e.count))}))},500)),f.on("submit",".search-plugins",function(e){e.preventDefault(),c("input.wp-filter-search").trigger("input")}),f.on("click",".try-again",function(e){e.preventDefault(),s.trigger("input")}),c("#typeselector").on("change",function(){var e=c('input[name="s"]');e.val().length&&e.trigger("input","typechange")}),c("#plugin_update_from_iframe").on("click",function(e){var t=window.parent===window?null:window.parent;c.support.postMessage=!!window.postMessage,!1!==c.support.postMessage&&null!==t&&-1===window.parent.location.pathname.indexOf("update-core.php")&&(e.preventDefault(),e={action:"update-plugin",data:{plugin:c(this).data("plugin"),slug:c(this).data("slug")}},t.postMessage(JSON.stringify(e),window.location.origin))}),c(window).on("message",function(e){var t,e=e.originalEvent,a=document.location.protocol+"//"+document.location.host;if(e.origin===a){try{t=JSON.parse(e.data)}catch(e){return}if(t)if(void 0!==t.status&&void 0!==t.slug&&void 0!==t.text&&void 0!==t.ariaLabel&&(a=c(".plugin-card-"+t.slug).find('[data-slug="'+t.slug+'"]'),void 0!==t.removeClasses&&a.removeClass(t.removeClasses),void 0!==t.addClasses&&a.addClass(t.addClasses),""===t.ariaLabel?a.removeAttr("aria-label"):a.attr("aria-label",t.ariaLabel),"dependencies-check-success"===t.status&&a.attr("data-name",t.pluginName).attr("data-slug",t.slug).attr("data-plugin",t.plugin).attr("href",t.href),a.text(t.text)),void 0!==t.action)switch(t.action){case"decrementUpdateCount":g.updates.decrementCount(t.upgradeType);break;case"install-plugin":case"update-plugin":void 0!==t.data&&void 0!==t.data.slug&&(t.data=g.updates._addCallbacks(t.data,t.action),g.updates.queue.push(t),g.updates.queueChecker())}}}),c(window).on("beforeunload",g.updates.beforeunload),f.on("keydown",".column-auto-updates .toggle-auto-update, .theme-overlay .toggle-auto-update",function(e){32===e.which&&e.preventDefault()}),f.on("click keyup",".column-auto-updates .toggle-auto-update, .theme-overlay .toggle-auto-update",function(e){var l,d,u,o=c(this),r=o.attr("data-wp-action"),p=o.find(".label");if(("keyup"!==e.type||32===e.which)&&(u="themes"!==pagenow?o.closest(".column-auto-updates"):o.closest(".theme-autoupdate"),e.preventDefault(),"yes"!==o.attr("data-doing-ajax"))){switch(o.attr("data-doing-ajax","yes"),pagenow){case"plugins":case"plugins-network":d="plugin",l=o.closest("tr").attr("data-plugin");break;case"themes-network":d="theme",l=o.closest("tr").attr("data-slug");break;case"themes":d="theme",l=o.attr("data-slug")}u.find(".notice.notice-error").addClass("hidden"),"enable"===r?p.text(h("Enabling...")):p.text(h("Disabling...")),o.find(".dashicons-update").removeClass("hidden"),e={action:"toggle-auto-updates",_ajax_nonce:m.ajax_nonce,state:r,type:d,asset:l},c.post(window.ajaxurl,e).done(function(e){var t,a,s,n,i=o.attr("href");if(e.success){if("themes"!==pagenow){switch(n=c(".auto-update-enabled span"),t=c(".auto-update-disabled span"),a=parseInt(n.text().replace(/[^\d]+/g,""),10)||0,s=parseInt(t.text().replace(/[^\d]+/g,""),10)||0,r){case"enable":++a,--s;break;case"disable":--a,++s}a=Math.max(0,a),s=Math.max(0,s),n.text("("+a+")"),t.text("("+s+")")}"enable"===r?(o[0].hasAttribute("href")&&(i=i.replace("action=enable-auto-update","action=disable-auto-update"),o.attr("href",i)),o.attr("data-wp-action","disable"),p.text(h("Disable auto-updates")),u.find(".auto-update-time").removeClass("hidden"),g.a11y.speak(h("Auto-updates enabled"))):(o[0].hasAttribute("href")&&(i=i.replace("action=disable-auto-update","action=enable-auto-update"),o.attr("href",i)),o.attr("data-wp-action","enable"),p.text(h("Enable auto-updates")),u.find(".auto-update-time").addClass("hidden"),g.a11y.speak(h("Auto-updates disabled"))),f.trigger("wp-auto-update-setting-changed",{state:r,type:d,asset:l})}else n=e.data&&e.data.error?e.data.error:h("The request could not be completed."),u.find(".notice.notice-error").removeClass("hidden").find("p").text(n),g.a11y.speak(n,"assertive")}).fail(function(){u.find(".notice.notice-error").removeClass("hidden").find("p").text(h("The request could not be completed.")),g.a11y.speak(h("The request could not be completed."),"assertive")}).always(function(){o.removeAttr("data-doing-ajax").find(".dashicons-update").addClass("hidden")})}})})}(jQuery,window.wp,window._wpUpdatesSettings); \ No newline at end of file
diff --git a/wp-admin/js/user-profile.js b/wp-admin/js/user-profile.js
index e4f249f..54215c7 100644
--- a/wp-admin/js/user-profile.js
+++ b/wp-admin/js/user-profile.js
@@ -5,6 +5,7 @@
/* global ajaxurl, pwsL10n, userProfileL10n */
(function($) {
var updateLock = false,
+ isSubmitting = false,
__ = wp.i18n.__,
$pass1Row,
$pass1,
@@ -15,6 +16,8 @@
$submitButtons,
$submitButton,
currentPass,
+ $form,
+ originalFormContent,
$passwordWrapper;
function generatePassword() {
@@ -148,7 +151,9 @@
* @param {string} message The message to insert.
*/
function addInlineNotice( $this, success, message ) {
- var resultDiv = $( '<div />' );
+ var resultDiv = $( '<div />', {
+ role: 'alert'
+ } );
// Set up the notice div.
resultDiv.addClass( 'notice inline' );
@@ -454,6 +459,12 @@
bindPasswordForm();
bindPasswordResetLink();
+ $submitButtons.on( 'click', function() {
+ isSubmitting = true;
+ });
+
+ $form = $( '#your-profile, #createuser' );
+ originalFormContent = $form.serialize();
});
$( '#destroy-sessions' ).on( 'click', function( e ) {
@@ -465,10 +476,10 @@
}).done( function( response ) {
$this.prop( 'disabled', true );
$this.siblings( '.notice' ).remove();
- $this.before( '<div class="notice notice-success inline"><p>' + response.message + '</p></div>' );
+ $this.before( '<div class="notice notice-success inline" role="alert"><p>' + response.message + '</p></div>' );
}).fail( function( response ) {
$this.siblings( '.notice' ).remove();
- $this.before( '<div class="notice notice-error inline"><p>' + response.message + '</p></div>' );
+ $this.before( '<div class="notice notice-error inline" role="alert"><p>' + response.message + '</p></div>' );
});
e.preventDefault();
@@ -481,7 +492,10 @@
if ( true === updateLock ) {
return __( 'Your new password has not been saved.' );
}
- } );
+ if ( originalFormContent !== $form.serialize() && ! isSubmitting ) {
+ return __( 'The changes you made will be lost if you navigate away from this page.' );
+ }
+ });
/*
* We need to generate a password as soon as the Reset Password page is loaded,
diff --git a/wp-admin/js/user-profile.min.js b/wp-admin/js/user-profile.min.js
index 31f3609..4fac7e9 100644
--- a/wp-admin/js/user-profile.min.js
+++ b/wp-admin/js/user-profile.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-!function(o){var e,a,t,n,i,r,p,d,l,c,u=!1,h=wp.i18n.__;function f(){"function"!=typeof zxcvbn?setTimeout(f,50):(!a.val()||c.hasClass("is-open")?(a.val(a.data("pw")),a.trigger("pwupdate")):b(),_(),m(),1!==parseInt(r.data("start-masked"),10)?a.attr("type","text"):r.trigger("click"),o("#pw-weak-text-label").text(h("Confirm use of weak password")),"mailserver_pass"!==a.prop("id")&&o(a).trigger("focus"))}function w(s){r.attr({"aria-label":h(s?"Show password":"Hide password")}).find(".text").text(h(s?"Show":"Hide")).end().find(".dashicons").removeClass(s?"dashicons-hidden":"dashicons-visibility").addClass(s?"dashicons-visibility":"dashicons-hidden")}function m(){r||(r=e.find(".wp-hide-pw")).show().on("click",function(){"password"===a.attr("type")?(a.attr("type","text"),w(!1)):(a.attr("type","password"),w(!0))})}function v(s,e,a){var t=o("<div />");t.addClass("notice inline"),t.addClass("notice-"+(e?"success":"error")),t.text(o(o.parseHTML(a)).text()).wrapInner("<p />"),s.prop("disabled",e),s.siblings(".notice").remove(),s.before(t)}function g(){var s;e=o(".user-pass1-wrap, .user-pass-wrap, .mailserver-pass-wrap, .reset-pass-submit"),o(".user-pass2-wrap").hide(),d=o("#submit, #wp-submit").on("click",function(){u=!1}),p=d.add(" #createusersub"),n=o(".pw-weak"),(i=n.find(".pw-checkbox")).on("change",function(){p.prop("disabled",!i.prop("checked"))}),(a=o("#pass1, #mailserver_pass")).length?(l=a.val(),1===parseInt(a.data("reveal"),10)&&f(),a.on("input pwupdate",function(){a.val()!==l&&(l=a.val(),a.removeClass("short bad good strong"),_())})):a=o("#user_pass"),t=o("#pass2").on("input",function(){0<t.val().length&&(a.val(t.val()),t.val(""),l="",a.trigger("pwupdate"))}),a.is(":hidden")&&(a.prop("disabled",!0),t.prop("disabled",!0)),c=e.find(".wp-pwd"),s=e.find("button.wp-generate-pw"),m(),s.show(),s.on("click",function(){u=!0,s.not(".skip-aria-expanded").attr("aria-expanded","true"),c.show().addClass("is-open"),a.attr("disabled",!1),t.attr("disabled",!1),f(),w(!1),wp.ajax.post("generate-password").done(function(s){a.data("pw",s)})}),e.find("button.wp-cancel-pw").on("click",function(){u=!1,a.prop("disabled",!0),t.prop("disabled",!0),a.val("").trigger("pwupdate"),w(!1),c.hide().removeClass("is-open"),p.prop("disabled",!1),s.attr("aria-expanded","false")}),e.closest("form").on("submit",function(){u=!1,a.prop("disabled",!1),t.prop("disabled",!1),t.val(a.val())})}function b(){var s=o("#pass1").val();if(o("#pass-strength-result").removeClass("short bad good strong empty"),s&&""!==s.trim())switch(wp.passwordStrength.meter(s,wp.passwordStrength.userInputDisallowedList(),s)){case-1:o("#pass-strength-result").addClass("bad").html(pwsL10n.unknown);break;case 2:o("#pass-strength-result").addClass("bad").html(pwsL10n.bad);break;case 3:o("#pass-strength-result").addClass("good").html(pwsL10n.good);break;case 4:o("#pass-strength-result").addClass("strong").html(pwsL10n.strong);break;case 5:o("#pass-strength-result").addClass("short").html(pwsL10n.mismatch);break;default:o("#pass-strength-result").addClass("short").html(pwsL10n.short)}else o("#pass-strength-result").addClass("empty").html("&nbsp;")}function _(){var s=o("#pass-strength-result");s.length&&(s=s[0]).className&&(a.addClass(s.className),o(s).is(".short, .bad")?(i.prop("checked")||p.prop("disabled",!0),n.show()):(o(s).is(".empty")?(p.prop("disabled",!0),i.prop("checked",!1)):p.prop("disabled",!1),n.hide()))}o(function(){var s,a,t,n,i=o("#display_name"),e=i.val(),r=o("#wp-admin-bar-my-account").find(".display-name");o("#pass1").val("").on("input pwupdate",b),o("#pass-strength-result").show(),o(".color-palette").on("click",function(){o(this).siblings('input[name="admin_color"]').prop("checked",!0)}),i.length&&(o("#first_name, #last_name, #nickname").on("blur.user_profile",function(){var a=[],t={display_nickname:o("#nickname").val()||"",display_username:o("#user_login").val()||"",display_firstname:o("#first_name").val()||"",display_lastname:o("#last_name").val()||""};t.display_firstname&&t.display_lastname&&(t.display_firstlast=t.display_firstname+" "+t.display_lastname,t.display_lastfirst=t.display_lastname+" "+t.display_firstname),o.each(o("option",i),function(s,e){a.push(e.value)}),o.each(t,function(s,e){e&&(e=e.replace(/<\/?[a-z][^>]*>/gi,""),t[s].length)&&-1===o.inArray(e,a)&&(a.push(e),o("<option />",{text:e}).appendTo(i))})}),i.on("change",function(){var s;t===n&&(s=this.value.trim()||e,r.text(s))})),s=o("#color-picker"),a=o("#colors-css"),t=o("input#user_id").val(),n=o('input[name="checkuser_id"]').val(),s.on("click.colorpicker",".color-option",function(){var s,e=o(this);if(!e.hasClass("selected")&&(e.siblings(".selected").removeClass("selected"),e.addClass("selected").find('input[type="radio"]').prop("checked",!0),t===n)){if((a=0===a.length?o('<link rel="stylesheet" />').appendTo("head"):a).attr("href",e.children(".css_url").val()),"undefined"!=typeof wp&&wp.svgPainter){try{s=JSON.parse(e.children(".icon_colors").val())}catch(s){}s&&(wp.svgPainter.setColors(s),wp.svgPainter.paint())}o.post(ajaxurl,{action:"save-user-color-scheme",color_scheme:e.children('input[name="admin_color"]').val(),nonce:o("#color-nonce").val()}).done(function(s){s.success&&o("body").removeClass(s.data.previousScheme).addClass(s.data.currentScheme)})}}),g(),o("#generate-reset-link").on("click",function(){var e=o(this),s={user_id:userProfileL10n.user_id,nonce:userProfileL10n.nonce},s=(e.parent().find(".notice-error").remove(),wp.ajax.post("send-password-reset",s));s.done(function(s){v(e,!0,s)}),s.fail(function(s){v(e,!1,s)})})}),o("#destroy-sessions").on("click",function(s){var e=o(this);wp.ajax.post("destroy-sessions",{nonce:o("#_wpnonce").val(),user_id:o("#user_id").val()}).done(function(s){e.prop("disabled",!0),e.siblings(".notice").remove(),e.before('<div class="notice notice-success inline"><p>'+s.message+"</p></div>")}).fail(function(s){e.siblings(".notice").remove(),e.before('<div class="notice notice-error inline"><p>'+s.message+"</p></div>")}),s.preventDefault()}),window.generatePassword=f,o(window).on("beforeunload",function(){if(!0===u)return h("Your new password has not been saved.")}),o(function(){o(".reset-pass-submit").length&&o(".reset-pass-submit button.wp-generate-pw").trigger("click")})}(jQuery); \ No newline at end of file
+!function(o){var s,a,t,n,i,r,l,p,d,c,u,h,f=!1,w=!1,m=wp.i18n.__;function v(){"function"!=typeof zxcvbn?setTimeout(v,50):(!a.val()||h.hasClass("is-open")?(a.val(a.data("pw")),a.trigger("pwupdate")):_(),C(),b(),1!==parseInt(r.data("start-masked"),10)?a.attr("type","text"):r.trigger("click"),o("#pw-weak-text-label").text(m("Confirm use of weak password")),"mailserver_pass"!==a.prop("id")&&o(a).trigger("focus"))}function g(e){r.attr({"aria-label":m(e?"Show password":"Hide password")}).find(".text").text(m(e?"Show":"Hide")).end().find(".dashicons").removeClass(e?"dashicons-hidden":"dashicons-visibility").addClass(e?"dashicons-visibility":"dashicons-hidden")}function b(){r||(r=s.find(".wp-hide-pw")).show().on("click",function(){"password"===a.attr("type")?(a.attr("type","text"),g(!1)):(a.attr("type","password"),g(!0))})}function y(e,s,a){var t=o("<div />",{role:"alert"});t.addClass("notice inline"),t.addClass("notice-"+(s?"success":"error")),t.text(o(o.parseHTML(a)).text()).wrapInner("<p />"),e.prop("disabled",s),e.siblings(".notice").remove(),e.before(t)}function k(){var e;s=o(".user-pass1-wrap, .user-pass-wrap, .mailserver-pass-wrap, .reset-pass-submit"),o(".user-pass2-wrap").hide(),p=o("#submit, #wp-submit").on("click",function(){f=!1}),l=p.add(" #createusersub"),n=o(".pw-weak"),(i=n.find(".pw-checkbox")).on("change",function(){l.prop("disabled",!i.prop("checked"))}),(a=o("#pass1, #mailserver_pass")).length?(d=a.val(),1===parseInt(a.data("reveal"),10)&&v(),a.on("input pwupdate",function(){a.val()!==d&&(d=a.val(),a.removeClass("short bad good strong"),C())})):a=o("#user_pass"),t=o("#pass2").on("input",function(){0<t.val().length&&(a.val(t.val()),t.val(""),d="",a.trigger("pwupdate"))}),a.is(":hidden")&&(a.prop("disabled",!0),t.prop("disabled",!0)),h=s.find(".wp-pwd"),e=s.find("button.wp-generate-pw"),b(),e.show(),e.on("click",function(){f=!0,e.not(".skip-aria-expanded").attr("aria-expanded","true"),h.show().addClass("is-open"),a.attr("disabled",!1),t.attr("disabled",!1),v(),g(!1),wp.ajax.post("generate-password").done(function(e){a.data("pw",e)})}),s.find("button.wp-cancel-pw").on("click",function(){f=!1,a.prop("disabled",!0),t.prop("disabled",!0),a.val("").trigger("pwupdate"),g(!1),h.hide().removeClass("is-open"),l.prop("disabled",!1),e.attr("aria-expanded","false")}),s.closest("form").on("submit",function(){f=!1,a.prop("disabled",!1),t.prop("disabled",!1),t.val(a.val())})}function _(){var e=o("#pass1").val();if(o("#pass-strength-result").removeClass("short bad good strong empty"),e&&""!==e.trim())switch(wp.passwordStrength.meter(e,wp.passwordStrength.userInputDisallowedList(),e)){case-1:o("#pass-strength-result").addClass("bad").html(pwsL10n.unknown);break;case 2:o("#pass-strength-result").addClass("bad").html(pwsL10n.bad);break;case 3:o("#pass-strength-result").addClass("good").html(pwsL10n.good);break;case 4:o("#pass-strength-result").addClass("strong").html(pwsL10n.strong);break;case 5:o("#pass-strength-result").addClass("short").html(pwsL10n.mismatch);break;default:o("#pass-strength-result").addClass("short").html(pwsL10n.short)}else o("#pass-strength-result").addClass("empty").html("&nbsp;")}function C(){var e=o("#pass-strength-result");e.length&&(e=e[0]).className&&(a.addClass(e.className),o(e).is(".short, .bad")?(i.prop("checked")||l.prop("disabled",!0),n.show()):(o(e).is(".empty")?(l.prop("disabled",!0),i.prop("checked",!1)):l.prop("disabled",!1),n.hide()))}o(function(){var e,a,t,n,i=o("#display_name"),s=i.val(),r=o("#wp-admin-bar-my-account").find(".display-name");o("#pass1").val("").on("input pwupdate",_),o("#pass-strength-result").show(),o(".color-palette").on("click",function(){o(this).siblings('input[name="admin_color"]').prop("checked",!0)}),i.length&&(o("#first_name, #last_name, #nickname").on("blur.user_profile",function(){var a=[],t={display_nickname:o("#nickname").val()||"",display_username:o("#user_login").val()||"",display_firstname:o("#first_name").val()||"",display_lastname:o("#last_name").val()||""};t.display_firstname&&t.display_lastname&&(t.display_firstlast=t.display_firstname+" "+t.display_lastname,t.display_lastfirst=t.display_lastname+" "+t.display_firstname),o.each(o("option",i),function(e,s){a.push(s.value)}),o.each(t,function(e,s){s&&(s=s.replace(/<\/?[a-z][^>]*>/gi,""),t[e].length)&&-1===o.inArray(s,a)&&(a.push(s),o("<option />",{text:s}).appendTo(i))})}),i.on("change",function(){var e;t===n&&(e=this.value.trim()||s,r.text(e))})),e=o("#color-picker"),a=o("#colors-css"),t=o("input#user_id").val(),n=o('input[name="checkuser_id"]').val(),e.on("click.colorpicker",".color-option",function(){var e,s=o(this);if(!s.hasClass("selected")&&(s.siblings(".selected").removeClass("selected"),s.addClass("selected").find('input[type="radio"]').prop("checked",!0),t===n)){if((a=0===a.length?o('<link rel="stylesheet" />').appendTo("head"):a).attr("href",s.children(".css_url").val()),"undefined"!=typeof wp&&wp.svgPainter){try{e=JSON.parse(s.children(".icon_colors").val())}catch(e){}e&&(wp.svgPainter.setColors(e),wp.svgPainter.paint())}o.post(ajaxurl,{action:"save-user-color-scheme",color_scheme:s.children('input[name="admin_color"]').val(),nonce:o("#color-nonce").val()}).done(function(e){e.success&&o("body").removeClass(e.data.previousScheme).addClass(e.data.currentScheme)})}}),k(),o("#generate-reset-link").on("click",function(){var s=o(this),e={user_id:userProfileL10n.user_id,nonce:userProfileL10n.nonce},e=(s.parent().find(".notice-error").remove(),wp.ajax.post("send-password-reset",e));e.done(function(e){y(s,!0,e)}),e.fail(function(e){y(s,!1,e)})}),l.on("click",function(){w=!0}),c=o("#your-profile, #createuser"),u=c.serialize()}),o("#destroy-sessions").on("click",function(e){var s=o(this);wp.ajax.post("destroy-sessions",{nonce:o("#_wpnonce").val(),user_id:o("#user_id").val()}).done(function(e){s.prop("disabled",!0),s.siblings(".notice").remove(),s.before('<div class="notice notice-success inline" role="alert"><p>'+e.message+"</p></div>")}).fail(function(e){s.siblings(".notice").remove(),s.before('<div class="notice notice-error inline" role="alert"><p>'+e.message+"</p></div>")}),e.preventDefault()}),window.generatePassword=v,o(window).on("beforeunload",function(){return!0===f?m("Your new password has not been saved."):u===c.serialize()||w?void 0:m("The changes you made will be lost if you navigate away from this page.")}),o(function(){o(".reset-pass-submit").length&&o(".reset-pass-submit button.wp-generate-pw").trigger("click")})}(jQuery); \ No newline at end of file
diff --git a/wp-admin/js/widgets/custom-html-widgets.js b/wp-admin/js/widgets/custom-html-widgets.js
index e36d115..3987eb4 100644
--- a/wp-admin/js/widgets/custom-html-widgets.js
+++ b/wp-admin/js/widgets/custom-html-widgets.js
@@ -148,7 +148,7 @@ wp.customHtmlWidgets = ( function( $ ) {
} ) );
}
} else if ( 0 !== errorAnnotations.length ) {
- errorNotice = $( '<div class="inline notice notice-error notice-alt"></div>' );
+ errorNotice = $( '<div class="inline notice notice-error notice-alt" role="alert"></div>' );
errorNotice.append( $( '<p></p>', {
text: message
} ) );
diff --git a/wp-admin/js/widgets/custom-html-widgets.min.js b/wp-admin/js/widgets/custom-html-widgets.min.js
index 8baa98f..e34397c 100644
--- a/wp-admin/js/widgets/custom-html-widgets.min.js
+++ b/wp-admin/js/widgets/custom-html-widgets.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-wp.customHtmlWidgets=function(a){"use strict";var s={idBases:["custom_html"],codeEditorSettings:{},l10n:{errorNotice:{singular:"",plural:""}}};return s.CustomHtmlWidgetControl=Backbone.View.extend({events:{},initialize:function(e){var n=this;if(!e.el)throw new Error("Missing options.el");if(!e.syncContainer)throw new Error("Missing options.syncContainer");Backbone.View.prototype.initialize.call(n,e),n.syncContainer=e.syncContainer,n.widgetIdBase=n.syncContainer.parent().find(".id_base").val(),n.widgetNumber=n.syncContainer.parent().find(".widget_number").val(),n.customizeSettingId="widget_"+n.widgetIdBase+"["+String(n.widgetNumber)+"]",n.$el.addClass("custom-html-widget-fields"),n.$el.html(wp.template("widget-custom-html-control-fields")({codeEditorDisabled:s.codeEditorSettings.disabled})),n.errorNoticeContainer=n.$el.find(".code-editor-error-container"),n.currentErrorAnnotations=[],n.saveButton=n.syncContainer.add(n.syncContainer.parent().find(".widget-control-actions")).find(".widget-control-save, #savewidget"),n.saveButton.addClass("custom-html-widget-save-button"),n.fields={title:n.$el.find(".title"),content:n.$el.find(".content")},_.each(n.fields,function(t,i){t.on("input change",function(){var e=n.syncContainer.find(".sync-input."+i);e.val()!==t.val()&&(e.val(t.val()),e.trigger("change"))}),t.val(n.syncContainer.find(".sync-input."+i).val())})},updateFields:function(){var e,t=this;t.fields.title.is(document.activeElement)||(e=t.syncContainer.find(".sync-input.title"),t.fields.title.val(e.val())),t.contentUpdateBypassed=t.fields.content.is(document.activeElement)||t.editor&&t.editor.codemirror.state.focused||0!==t.currentErrorAnnotations.length,t.contentUpdateBypassed||(e=t.syncContainer.find(".sync-input.content"),t.fields.content.val(e.val()))},updateErrorNotice:function(e){var t,i=this,n="";1===e.length?n=s.l10n.errorNotice.singular.replace("%d","1"):1<e.length&&(n=s.l10n.errorNotice.plural.replace("%d",String(e.length))),i.fields.content[0].setCustomValidity&&i.fields.content[0].setCustomValidity(n),wp.customize&&wp.customize.has(i.customizeSettingId)?((t=wp.customize(i.customizeSettingId)).notifications.remove("htmlhint_error"),0!==e.length&&t.notifications.add("htmlhint_error",new wp.customize.Notification("htmlhint_error",{message:n,type:"error"}))):0!==e.length?((t=a('<div class="inline notice notice-error notice-alt"></div>')).append(a("<p></p>",{text:n})),i.errorNoticeContainer.empty(),i.errorNoticeContainer.append(t),i.errorNoticeContainer.slideDown("fast"),wp.a11y.speak(n)):i.errorNoticeContainer.slideUp("fast")},initializeEditor:function(){var e,t=this;s.codeEditorSettings.disabled||(e=_.extend({},s.codeEditorSettings,{onTabPrevious:function(){t.fields.title.focus()},onTabNext:function(){t.syncContainer.add(t.syncContainer.parent().find(".widget-position, .widget-control-actions")).find(":tabbable").first().focus()},onChangeLintingErrors:function(e){t.currentErrorAnnotations=e},onUpdateErrorNotice:function(e){t.saveButton.toggleClass("validation-blocked disabled",0<e.length),t.updateErrorNotice(e)}}),t.editor=wp.codeEditor.initialize(t.fields.content,e),a(t.editor.codemirror.display.lineDiv).attr({role:"textbox","aria-multiline":"true","aria-labelledby":t.fields.content[0].id+"-label","aria-describedby":"editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4"}),a("#"+t.fields.content[0].id+"-label").on("click",function(){t.editor.codemirror.focus()}),t.fields.content.on("change",function(){this.value!==t.editor.codemirror.getValue()&&t.editor.codemirror.setValue(this.value)}),t.editor.codemirror.on("change",function(){var e=t.editor.codemirror.getValue();e!==t.fields.content.val()&&t.fields.content.val(e).trigger("change")}),t.editor.codemirror.on("blur",function(){t.contentUpdateBypassed&&t.syncContainer.find(".sync-input.content").trigger("change")}),wp.customize&&t.editor.codemirror.on("keydown",function(e,t){27===t.keyCode&&t.stopPropagation()}))}}),s.widgetControls={},s.handleWidgetAdded=function(e,t){var i,n,o,d=t.find("> .widget-inside > .form, > .widget-inside > form"),r=d.find("> .id_base").val();-1===s.idBases.indexOf(r)||(r=d.find(".widget-id").val(),s.widgetControls[r])||(d=a("<div></div>"),(o=t.find(".widget-content:first")).before(d),i=new s.CustomHtmlWidgetControl({el:d,syncContainer:o}),s.widgetControls[r]=i,(n=function(){(wp.customize?t.parent().hasClass("expanded"):t.hasClass("open"))?i.initializeEditor():setTimeout(n,50)})())},s.setupAccessibleMode=function(){var e,t=a(".editwidget > form");0!==t.length&&(e=t.find(".id_base").val(),-1!==s.idBases.indexOf(e))&&(e=a("<div></div>"),(t=t.find("> .widget-inside")).before(e),new s.CustomHtmlWidgetControl({el:e,syncContainer:t}).initializeEditor())},s.handleWidgetUpdated=function(e,t){var t=t.find("> .widget-inside > .form, > .widget-inside > form"),i=t.find("> .id_base").val();-1!==s.idBases.indexOf(i)&&(i=t.find("> .widget-id").val(),t=s.widgetControls[i])&&t.updateFields()},s.init=function(e){var t=a(document);_.extend(s.codeEditorSettings,e),t.on("widget-added",s.handleWidgetAdded),t.on("widget-synced widget-updated",s.handleWidgetUpdated),a(function(){"widgets"===window.pagenow&&(a(".widgets-holder-wrap:not(#available-widgets)").find("div.widget").one("click.toggle-widget-expanded",function(){var e=a(this);s.handleWidgetAdded(new jQuery.Event("widget-added"),e)}),"complete"===document.readyState?s.setupAccessibleMode():a(window).on("load",function(){s.setupAccessibleMode()}))})},s}(jQuery); \ No newline at end of file
+wp.customHtmlWidgets=function(a){"use strict";var s={idBases:["custom_html"],codeEditorSettings:{},l10n:{errorNotice:{singular:"",plural:""}}};return s.CustomHtmlWidgetControl=Backbone.View.extend({events:{},initialize:function(e){var n=this;if(!e.el)throw new Error("Missing options.el");if(!e.syncContainer)throw new Error("Missing options.syncContainer");Backbone.View.prototype.initialize.call(n,e),n.syncContainer=e.syncContainer,n.widgetIdBase=n.syncContainer.parent().find(".id_base").val(),n.widgetNumber=n.syncContainer.parent().find(".widget_number").val(),n.customizeSettingId="widget_"+n.widgetIdBase+"["+String(n.widgetNumber)+"]",n.$el.addClass("custom-html-widget-fields"),n.$el.html(wp.template("widget-custom-html-control-fields")({codeEditorDisabled:s.codeEditorSettings.disabled})),n.errorNoticeContainer=n.$el.find(".code-editor-error-container"),n.currentErrorAnnotations=[],n.saveButton=n.syncContainer.add(n.syncContainer.parent().find(".widget-control-actions")).find(".widget-control-save, #savewidget"),n.saveButton.addClass("custom-html-widget-save-button"),n.fields={title:n.$el.find(".title"),content:n.$el.find(".content")},_.each(n.fields,function(t,i){t.on("input change",function(){var e=n.syncContainer.find(".sync-input."+i);e.val()!==t.val()&&(e.val(t.val()),e.trigger("change"))}),t.val(n.syncContainer.find(".sync-input."+i).val())})},updateFields:function(){var e,t=this;t.fields.title.is(document.activeElement)||(e=t.syncContainer.find(".sync-input.title"),t.fields.title.val(e.val())),t.contentUpdateBypassed=t.fields.content.is(document.activeElement)||t.editor&&t.editor.codemirror.state.focused||0!==t.currentErrorAnnotations.length,t.contentUpdateBypassed||(e=t.syncContainer.find(".sync-input.content"),t.fields.content.val(e.val()))},updateErrorNotice:function(e){var t,i=this,n="";1===e.length?n=s.l10n.errorNotice.singular.replace("%d","1"):1<e.length&&(n=s.l10n.errorNotice.plural.replace("%d",String(e.length))),i.fields.content[0].setCustomValidity&&i.fields.content[0].setCustomValidity(n),wp.customize&&wp.customize.has(i.customizeSettingId)?((t=wp.customize(i.customizeSettingId)).notifications.remove("htmlhint_error"),0!==e.length&&t.notifications.add("htmlhint_error",new wp.customize.Notification("htmlhint_error",{message:n,type:"error"}))):0!==e.length?((t=a('<div class="inline notice notice-error notice-alt" role="alert"></div>')).append(a("<p></p>",{text:n})),i.errorNoticeContainer.empty(),i.errorNoticeContainer.append(t),i.errorNoticeContainer.slideDown("fast"),wp.a11y.speak(n)):i.errorNoticeContainer.slideUp("fast")},initializeEditor:function(){var e,t=this;s.codeEditorSettings.disabled||(e=_.extend({},s.codeEditorSettings,{onTabPrevious:function(){t.fields.title.focus()},onTabNext:function(){t.syncContainer.add(t.syncContainer.parent().find(".widget-position, .widget-control-actions")).find(":tabbable").first().focus()},onChangeLintingErrors:function(e){t.currentErrorAnnotations=e},onUpdateErrorNotice:function(e){t.saveButton.toggleClass("validation-blocked disabled",0<e.length),t.updateErrorNotice(e)}}),t.editor=wp.codeEditor.initialize(t.fields.content,e),a(t.editor.codemirror.display.lineDiv).attr({role:"textbox","aria-multiline":"true","aria-labelledby":t.fields.content[0].id+"-label","aria-describedby":"editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4"}),a("#"+t.fields.content[0].id+"-label").on("click",function(){t.editor.codemirror.focus()}),t.fields.content.on("change",function(){this.value!==t.editor.codemirror.getValue()&&t.editor.codemirror.setValue(this.value)}),t.editor.codemirror.on("change",function(){var e=t.editor.codemirror.getValue();e!==t.fields.content.val()&&t.fields.content.val(e).trigger("change")}),t.editor.codemirror.on("blur",function(){t.contentUpdateBypassed&&t.syncContainer.find(".sync-input.content").trigger("change")}),wp.customize&&t.editor.codemirror.on("keydown",function(e,t){27===t.keyCode&&t.stopPropagation()}))}}),s.widgetControls={},s.handleWidgetAdded=function(e,t){var i,n,o,d=t.find("> .widget-inside > .form, > .widget-inside > form"),r=d.find("> .id_base").val();-1===s.idBases.indexOf(r)||(r=d.find(".widget-id").val(),s.widgetControls[r])||(d=a("<div></div>"),(o=t.find(".widget-content:first")).before(d),i=new s.CustomHtmlWidgetControl({el:d,syncContainer:o}),s.widgetControls[r]=i,(n=function(){(wp.customize?t.parent().hasClass("expanded"):t.hasClass("open"))?i.initializeEditor():setTimeout(n,50)})())},s.setupAccessibleMode=function(){var e,t=a(".editwidget > form");0!==t.length&&(e=t.find(".id_base").val(),-1!==s.idBases.indexOf(e))&&(e=a("<div></div>"),(t=t.find("> .widget-inside")).before(e),new s.CustomHtmlWidgetControl({el:e,syncContainer:t}).initializeEditor())},s.handleWidgetUpdated=function(e,t){var t=t.find("> .widget-inside > .form, > .widget-inside > form"),i=t.find("> .id_base").val();-1!==s.idBases.indexOf(i)&&(i=t.find("> .widget-id").val(),t=s.widgetControls[i])&&t.updateFields()},s.init=function(e){var t=a(document);_.extend(s.codeEditorSettings,e),t.on("widget-added",s.handleWidgetAdded),t.on("widget-synced widget-updated",s.handleWidgetUpdated),a(function(){"widgets"===window.pagenow&&(a(".widgets-holder-wrap:not(#available-widgets)").find("div.widget").one("click.toggle-widget-expanded",function(){var e=a(this);s.handleWidgetAdded(new jQuery.Event("widget-added"),e)}),"complete"===document.readyState?s.setupAccessibleMode():a(window).on("load",function(){s.setupAccessibleMode()}))})},s}(jQuery); \ No newline at end of file
diff --git a/wp-admin/js/widgets/media-widgets.js b/wp-admin/js/widgets/media-widgets.js
index 2ee00a8..d67e71f 100644
--- a/wp-admin/js/widgets/media-widgets.js
+++ b/wp-admin/js/widgets/media-widgets.js
@@ -158,7 +158,7 @@ wp.mediaWidgets = ( function( $ ) {
}
} else {
if ( ! noticeContainer.length ) {
- noticeContainer = $( '<div class="media-widget-embed-notice notice notice-error notice-alt"></div>' );
+ noticeContainer = $( '<div class="media-widget-embed-notice notice notice-error notice-alt" role="alert"></div>' );
noticeContainer.hide();
embedLinkView.views.parent.$el.prepend( noticeContainer );
}
diff --git a/wp-admin/js/widgets/media-widgets.min.js b/wp-admin/js/widgets/media-widgets.min.js
index 1e3b45d..936b3cd 100644
--- a/wp-admin/js/widgets/media-widgets.min.js
+++ b/wp-admin/js/widgets/media-widgets.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-wp.mediaWidgets=function(c){"use strict";var m={controlConstructors:{},modelConstructors:{}};return m.PersistentDisplaySettingsLibrary=wp.media.controller.Library.extend({initialize:function(e){_.bindAll(this,"handleDisplaySettingChange"),wp.media.controller.Library.prototype.initialize.call(this,e)},handleDisplaySettingChange:function(e){this.get("selectedDisplaySettings").set(e.attributes)},display:function(e){var t=this.get("selectedDisplaySettings"),e=wp.media.controller.Library.prototype.display.call(this,e);return e.off("change",this.handleDisplaySettingChange),e.set(t.attributes),"custom"===t.get("link_type")&&(e.linkUrl=t.get("link_url")),e.on("change",this.handleDisplaySettingChange),e}}),m.MediaEmbedView=wp.media.view.Embed.extend({initialize:function(e){var t=this;wp.media.view.Embed.prototype.initialize.call(t,e),"image"!==t.controller.options.mimeType&&(e=t.controller.states.get("embed")).off("scan",e.scanImage,e)},refresh:function(){var e="image"===this.controller.options.mimeType?wp.media.view.EmbedImage:wp.media.view.EmbedLink.extend({setAddToWidgetButtonDisabled:function(e){this.views.parent.views.parent.views.get(".media-frame-toolbar")[0].$el.find(".media-button-select").prop("disabled",e)},setErrorNotice:function(e){var t=this.views.parent.$el.find("> .notice:first-child");e?(t.length||((t=c('<div class="media-widget-embed-notice notice notice-error notice-alt"></div>')).hide(),this.views.parent.$el.prepend(t)),t.empty(),t.append(c("<p>",{html:e})),t.slideDown("fast")):t.length&&t.slideUp("fast")},updateoEmbed:function(){var e=this,t=e.model.get("url");t?(t.match(/^(http|https):\/\/.+\//)||(e.controller.$el.find("#embed-url-field").addClass("invalid"),e.setAddToWidgetButtonDisabled(!0)),wp.media.view.EmbedLink.prototype.updateoEmbed.call(e)):(e.setErrorNotice(""),e.setAddToWidgetButtonDisabled(!0))},fetch:function(){var t,e,i=this,n=i.model.get("url");i.dfd&&"pending"===i.dfd.state()&&i.dfd.abort(),t=function(e){i.renderoEmbed({data:{body:e}}),i.controller.$el.find("#embed-url-field").removeClass("invalid"),i.setErrorNotice(""),i.setAddToWidgetButtonDisabled(!1)},(e=document.createElement("a")).href=n,(e=e.pathname.toLowerCase().match(/\.(\w+)$/))?(e=e[1],!wp.media.view.settings.embedMimes[e]||0!==wp.media.view.settings.embedMimes[e].indexOf(i.controller.options.mimeType)?i.renderFail():t("\x3c!--success--\x3e")):((e=/https?:\/\/www\.youtube\.com\/embed\/([^/]+)/.exec(n))&&(n="https://www.youtube.com/watch?v="+e[1],i.model.attributes.url=n),i.dfd=wp.apiRequest({url:wp.media.view.settings.oEmbedProxyUrl,data:{url:n,maxwidth:i.model.get("width"),maxheight:i.model.get("height"),discover:!1},type:"GET",dataType:"json",context:i}),i.dfd.done(function(e){i.controller.options.mimeType!==e.type?i.renderFail():t(e.html)}),i.dfd.fail(_.bind(i.renderFail,i)))},renderFail:function(){var e=this;e.controller.$el.find("#embed-url-field").addClass("invalid"),e.setErrorNotice(e.controller.options.invalidEmbedTypeError||"ERROR"),e.setAddToWidgetButtonDisabled(!0)}});this.settings(new e({controller:this.controller,model:this.model.props,priority:40}))}}),m.MediaFrameSelect=wp.media.view.MediaFrame.Post.extend({createStates:function(){var t=this.options.mimeType,i=[];_.each(wp.media.view.settings.embedMimes,function(e){0===e.indexOf(t)&&i.push(e)}),0<i.length&&(t=i),this.states.add([new m.PersistentDisplaySettingsLibrary({id:"insert",title:this.options.title,selection:this.options.selection,priority:20,toolbar:"main-insert",filterable:"dates",library:wp.media.query({type:t}),multiple:!1,editable:!0,selectedDisplaySettings:this.options.selectedDisplaySettings,displaySettings:!!_.isUndefined(this.options.showDisplaySettings)||this.options.showDisplaySettings,displayUserSettings:!1}),new wp.media.controller.EditImage({model:this.options.editImage}),new wp.media.controller.Embed({metadata:this.options.metadata,type:"image"===this.options.mimeType?"image":"link",invalidEmbedTypeError:this.options.invalidEmbedTypeError})])},mainInsertToolbar:function(e){var i=this;e.set("insert",{style:"primary",priority:80,text:i.options.text,requires:{selection:!0},click:function(){var e=i.state(),t=e.get("selection");i.close(),e.trigger("insert",t).reset()}})},mainEmbedToolbar:function(e){e.view=new wp.media.view.Toolbar.Embed({controller:this,text:this.options.text,event:"insert"})},embedContent:function(){var e=new m.MediaEmbedView({controller:this,model:this.state()}).render();this.content.set(e)}}),m.MediaWidgetControl=Backbone.View.extend({l10n:{add_to_widget:"{{add_to_widget}}",add_media:"{{add_media}}"},id_base:"",mime_type:"",events:{"click .notice-missing-attachment a":"handleMediaLibraryLinkClick","click .select-media":"selectMedia","click .placeholder":"selectMedia","click .edit-media":"editMedia"},showDisplaySettings:!0,initialize:function(e){var i=this;if(Backbone.View.prototype.initialize.call(i,e),!(i.model instanceof m.MediaWidgetModel))throw new Error("Missing options.model");if(!e.el)throw new Error("Missing options.el");if(!e.syncContainer)throw new Error("Missing options.syncContainer");if(i.syncContainer=e.syncContainer,i.$el.addClass("media-widget-control"),_.bindAll(i,"syncModelToInputs","render","updateSelectedAttachment","renderPreview"),!i.id_base&&(_.find(m.controlConstructors,function(e,t){return i instanceof e&&(i.id_base=t,!0)}),!i.id_base))throw new Error("Missing id_base.");i.previewTemplateProps=new Backbone.Model(i.mapModelToPreviewTemplateProps()),i.selectedAttachment=new wp.media.model.Attachment,i.renderPreview=_.debounce(i.renderPreview),i.listenTo(i.previewTemplateProps,"change",i.renderPreview),i.model.on("change:attachment_id",i.updateSelectedAttachment),i.model.on("change:url",i.updateSelectedAttachment),i.updateSelectedAttachment(),i.listenTo(i.model,"change",i.syncModelToInputs),i.listenTo(i.model,"change",i.syncModelToPreviewProps),i.listenTo(i.model,"change",i.render),i.$el.on("input change",".title",function(){i.model.set({title:c(this).val().trim()})}),i.$el.on("input change",".link",function(){var e=c(this).val().trim(),t="custom";i.selectedAttachment.get("linkUrl")===e||i.selectedAttachment.get("link")===e?t="post":i.selectedAttachment.get("url")===e&&(t="file"),i.model.set({link_url:e,link_type:t}),i.displaySettings.set({link:t,linkUrl:e})}),i.displaySettings=new Backbone.Model(_.pick(i.mapModelToMediaFrameProps(_.extend(i.model.defaults(),i.model.toJSON())),_.keys(wp.media.view.settings.defaultProps)))},updateSelectedAttachment:function(){var e,t=this;0===t.model.get("attachment_id")?(t.selectedAttachment.clear(),t.model.set("error",!1)):t.model.get("attachment_id")!==t.selectedAttachment.get("id")&&(e=new wp.media.model.Attachment({id:t.model.get("attachment_id")})).fetch().done(function(){t.model.set("error",!1),t.selectedAttachment.set(e.toJSON())}).fail(function(){t.model.set("error","missing_attachment")})},syncModelToPreviewProps:function(){this.previewTemplateProps.set(this.mapModelToPreviewTemplateProps())},syncModelToInputs:function(){var n=this;n.syncContainer.find(".media-widget-instance-property").each(function(){var e=c(this),t=e.data("property"),i=n.model.get(t);_.isUndefined(i)||(i="array"===n.model.schema[t].type&&_.isArray(i)?i.join(","):"boolean"===n.model.schema[t].type?i?"1":"":String(i),e.val()!==i&&(e.val(i),e.trigger("change")))})},template:function(){if(c("#tmpl-widget-media-"+this.id_base+"-control").length)return wp.template("widget-media-"+this.id_base+"-control");throw new Error("Missing widget control template for "+this.id_base)},render:function(){var e,t=this;t.templateRendered||(t.$el.html(t.template()(t.model.toJSON())),t.renderPreview(),t.templateRendered=!0),(e=t.$el.find(".title")).is(document.activeElement)||e.val(t.model.get("title")),t.$el.toggleClass("selected",t.isSelected())},renderPreview:function(){throw new Error("renderPreview must be implemented")},isSelected:function(){return!this.model.get("error")&&Boolean(this.model.get("attachment_id")||this.model.get("url"))},handleMediaLibraryLinkClick:function(e){e.preventDefault(),this.selectMedia()},selectMedia:function(){var i,t,e,n=this,d=[];n.isSelected()&&0!==n.model.get("attachment_id")&&d.push(n.selectedAttachment),d=new wp.media.model.Selection(d,{multiple:!1}),(e=n.mapModelToMediaFrameProps(n.model.toJSON())).size&&n.displaySettings.set("size",e.size),i=new m.MediaFrameSelect({title:n.l10n.add_media,frame:"post",text:n.l10n.add_to_widget,selection:d,mimeType:n.mime_type,selectedDisplaySettings:n.displaySettings,showDisplaySettings:n.showDisplaySettings,metadata:e,state:n.isSelected()&&0===n.model.get("attachment_id")?"embed":"insert",invalidEmbedTypeError:n.l10n.unsupported_file_type}),(wp.media.frame=i).on("insert",function(){var e={},t=i.state();"embed"===t.get("id")?_.extend(e,{id:0},t.props.toJSON()):_.extend(e,t.get("selection").first().toJSON()),n.selectedAttachment.set(e),n.model.set("error",!1),n.model.set(n.getModelPropsFromMediaFrame(i))}),t=wp.media.model.Attachment.prototype.sync,wp.media.model.Attachment.prototype.sync=function(e){return"delete"===e?t.apply(this,arguments):c.Deferred().rejectWith(this).promise()},i.on("close",function(){wp.media.model.Attachment.prototype.sync=t}),i.$el.addClass("media-widget"),i.open(),d&&d.on("destroy",function(e){n.model.get("attachment_id")===e.get("id")&&n.model.set({attachment_id:0,url:""})}),i.$el.find(".media-frame-menu .media-menu-item.active").focus()},getModelPropsFromMediaFrame:function(e){var t,i,n=this,d=e.state();if("insert"===d.get("id"))(t=d.get("selection").first().toJSON()).postUrl=t.link,n.showDisplaySettings&&_.extend(t,e.content.get(".attachments-browser").sidebar.get("display").model.toJSON()),t.sizes&&t.size&&t.sizes[t.size]&&(t.url=t.sizes[t.size].url);else{if("embed"!==d.get("id"))throw new Error("Unexpected state: "+d.get("id"));t=_.extend(d.props.toJSON(),{attachment_id:0},n.model.getEmbedResetProps())}return t.id&&(t.attachment_id=t.id),i=n.mapMediaToModelProps(t),_.each(wp.media.view.settings.embedExts,function(e){e in n.model.schema&&i.url!==i[e]&&(i[e]="")}),i},mapMediaToModelProps:function(e){var t,i=this,n={},d={};return _.each(i.model.schema,function(e,t){"title"!==t&&(n[e.media_prop||t]=t)}),_.each(e,function(e,t){t=n[t]||t;i.model.schema[t]&&(d[t]=e)}),"custom"===e.size&&(d.width=e.customWidth,d.height=e.customHeight),"post"===e.link?d.link_url=e.postUrl||e.linkUrl:"file"===e.link&&(d.link_url=e.url),!e.attachment_id&&e.id&&(d.attachment_id=e.id),e.url&&(t=e.url.replace(/#.*$/,"").replace(/\?.*$/,"").split(".").pop().toLowerCase())in i.model.schema&&(d[t]=e.url),_.omit(d,"title")},mapModelToMediaFrameProps:function(e){var n=this,d={};return _.each(e,function(e,t){var i=n.model.schema[t]||{};d[i.media_prop||t]=e}),d.attachment_id=d.id,"custom"===d.size&&(d.customWidth=n.model.get("width"),d.customHeight=n.model.get("height")),d},mapModelToPreviewTemplateProps:function(){var i=this,n={};return _.each(i.model.schema,function(e,t){e.hasOwnProperty("should_preview_update")&&!e.should_preview_update||(n[t]=i.model.get(t))}),n.error=i.model.get("error"),n},editMedia:function(){throw new Error("editMedia not implemented")}}),m.MediaWidgetModel=Backbone.Model.extend({idAttribute:"widget_id",schema:{title:{type:"string",default:""},attachment_id:{type:"integer",default:0},url:{type:"string",default:""}},defaults:function(){var i={};return _.each(this.schema,function(e,t){i[t]=e.default}),i},set:function(e,t,i){var n,d,o=this;return null===e?o:(e="object"==typeof e?(n=e,t):((n={})[e]=t,i),d={},_.each(n,function(e,t){var i;o.schema[t]?"array"===(i=o.schema[t].type)?(d[t]=e,_.isArray(d[t])||(d[t]=d[t].split(/,/)),o.schema[t].items&&"integer"===o.schema[t].items.type&&(d[t]=_.filter(_.map(d[t],function(e){return parseInt(e,10)},function(e){return"number"==typeof e})))):d[t]="integer"===i?parseInt(e,10):"boolean"===i?!(!e||"0"===e||"false"===e):e:d[t]=e}),Backbone.Model.prototype.set.call(this,d,e))},getEmbedResetProps:function(){return{id:0}}}),m.modelCollection=new(Backbone.Collection.extend({model:m.MediaWidgetModel})),m.widgetControls={},m.handleWidgetAdded=function(e,t){var i,n,d,o,a,s,r=t.find("> .widget-inside > .form, > .widget-inside > form"),l=r.find("> .id_base").val(),r=r.find("> .widget-id").val();m.widgetControls[r]||(d=m.controlConstructors[l])&&(l=m.modelConstructors[l]||m.MediaWidgetModel,i=c("<div></div>"),(n=t.find(".widget-content:first")).before(i),o={},n.find(".media-widget-instance-property").each(function(){var e=c(this);o[e.data("property")]=e.val()}),o.widget_id=r,r=new l(o),a=new d({el:i,syncContainer:n,model:r}),(s=function(){t.hasClass("open")?a.render():setTimeout(s,50)})(),m.modelCollection.add([r]),m.widgetControls[r.get("widget_id")]=a)},m.setupAccessibleMode=function(){var e,t,i,n,d,o=c(".editwidget > form");0!==o.length&&(i=o.find(".id_base").val(),t=m.controlConstructors[i])&&(e=o.find("> .widget-control-actions > .widget-id").val(),i=m.modelConstructors[i]||m.MediaWidgetModel,d=c("<div></div>"),(o=o.find("> .widget-inside")).before(d),n={},o.find(".media-widget-instance-property").each(function(){var e=c(this);n[e.data("property")]=e.val()}),n.widget_id=e,e=new t({el:d,syncContainer:o,model:new i(n)}),m.modelCollection.add([e.model]),(m.widgetControls[e.model.get("widget_id")]=e).render())},m.handleWidgetUpdated=function(e,t){var i={},t=t.find("> .widget-inside > .form, > .widget-inside > form"),n=t.find("> .widget-id").val(),n=m.widgetControls[n];n&&(t.find("> .widget-content").find(".media-widget-instance-property").each(function(){var e=c(this).data("property");i[e]=c(this).val()}),n.stopListening(n.model,"change",n.syncModelToInputs),n.model.set(i),n.listenTo(n.model,"change",n.syncModelToInputs))},m.init=function(){var e=c(document);e.on("widget-added",m.handleWidgetAdded),e.on("widget-synced widget-updated",m.handleWidgetUpdated),c(function(){"widgets"===window.pagenow&&(c(".widgets-holder-wrap:not(#available-widgets)").find("div.widget").one("click.toggle-widget-expanded",function(){var e=c(this);m.handleWidgetAdded(new jQuery.Event("widget-added"),e)}),"complete"===document.readyState?m.setupAccessibleMode():c(window).on("load",function(){m.setupAccessibleMode()}))})},m}(jQuery); \ No newline at end of file
+wp.mediaWidgets=function(c){"use strict";var m={controlConstructors:{},modelConstructors:{}};return m.PersistentDisplaySettingsLibrary=wp.media.controller.Library.extend({initialize:function(e){_.bindAll(this,"handleDisplaySettingChange"),wp.media.controller.Library.prototype.initialize.call(this,e)},handleDisplaySettingChange:function(e){this.get("selectedDisplaySettings").set(e.attributes)},display:function(e){var t=this.get("selectedDisplaySettings"),e=wp.media.controller.Library.prototype.display.call(this,e);return e.off("change",this.handleDisplaySettingChange),e.set(t.attributes),"custom"===t.get("link_type")&&(e.linkUrl=t.get("link_url")),e.on("change",this.handleDisplaySettingChange),e}}),m.MediaEmbedView=wp.media.view.Embed.extend({initialize:function(e){var t=this;wp.media.view.Embed.prototype.initialize.call(t,e),"image"!==t.controller.options.mimeType&&(e=t.controller.states.get("embed")).off("scan",e.scanImage,e)},refresh:function(){var e="image"===this.controller.options.mimeType?wp.media.view.EmbedImage:wp.media.view.EmbedLink.extend({setAddToWidgetButtonDisabled:function(e){this.views.parent.views.parent.views.get(".media-frame-toolbar")[0].$el.find(".media-button-select").prop("disabled",e)},setErrorNotice:function(e){var t=this.views.parent.$el.find("> .notice:first-child");e?(t.length||((t=c('<div class="media-widget-embed-notice notice notice-error notice-alt" role="alert"></div>')).hide(),this.views.parent.$el.prepend(t)),t.empty(),t.append(c("<p>",{html:e})),t.slideDown("fast")):t.length&&t.slideUp("fast")},updateoEmbed:function(){var e=this,t=e.model.get("url");t?(t.match(/^(http|https):\/\/.+\//)||(e.controller.$el.find("#embed-url-field").addClass("invalid"),e.setAddToWidgetButtonDisabled(!0)),wp.media.view.EmbedLink.prototype.updateoEmbed.call(e)):(e.setErrorNotice(""),e.setAddToWidgetButtonDisabled(!0))},fetch:function(){var t,e,i=this,n=i.model.get("url");i.dfd&&"pending"===i.dfd.state()&&i.dfd.abort(),t=function(e){i.renderoEmbed({data:{body:e}}),i.controller.$el.find("#embed-url-field").removeClass("invalid"),i.setErrorNotice(""),i.setAddToWidgetButtonDisabled(!1)},(e=document.createElement("a")).href=n,(e=e.pathname.toLowerCase().match(/\.(\w+)$/))?(e=e[1],!wp.media.view.settings.embedMimes[e]||0!==wp.media.view.settings.embedMimes[e].indexOf(i.controller.options.mimeType)?i.renderFail():t("\x3c!--success--\x3e")):((e=/https?:\/\/www\.youtube\.com\/embed\/([^/]+)/.exec(n))&&(n="https://www.youtube.com/watch?v="+e[1],i.model.attributes.url=n),i.dfd=wp.apiRequest({url:wp.media.view.settings.oEmbedProxyUrl,data:{url:n,maxwidth:i.model.get("width"),maxheight:i.model.get("height"),discover:!1},type:"GET",dataType:"json",context:i}),i.dfd.done(function(e){i.controller.options.mimeType!==e.type?i.renderFail():t(e.html)}),i.dfd.fail(_.bind(i.renderFail,i)))},renderFail:function(){var e=this;e.controller.$el.find("#embed-url-field").addClass("invalid"),e.setErrorNotice(e.controller.options.invalidEmbedTypeError||"ERROR"),e.setAddToWidgetButtonDisabled(!0)}});this.settings(new e({controller:this.controller,model:this.model.props,priority:40}))}}),m.MediaFrameSelect=wp.media.view.MediaFrame.Post.extend({createStates:function(){var t=this.options.mimeType,i=[];_.each(wp.media.view.settings.embedMimes,function(e){0===e.indexOf(t)&&i.push(e)}),0<i.length&&(t=i),this.states.add([new m.PersistentDisplaySettingsLibrary({id:"insert",title:this.options.title,selection:this.options.selection,priority:20,toolbar:"main-insert",filterable:"dates",library:wp.media.query({type:t}),multiple:!1,editable:!0,selectedDisplaySettings:this.options.selectedDisplaySettings,displaySettings:!!_.isUndefined(this.options.showDisplaySettings)||this.options.showDisplaySettings,displayUserSettings:!1}),new wp.media.controller.EditImage({model:this.options.editImage}),new wp.media.controller.Embed({metadata:this.options.metadata,type:"image"===this.options.mimeType?"image":"link",invalidEmbedTypeError:this.options.invalidEmbedTypeError})])},mainInsertToolbar:function(e){var i=this;e.set("insert",{style:"primary",priority:80,text:i.options.text,requires:{selection:!0},click:function(){var e=i.state(),t=e.get("selection");i.close(),e.trigger("insert",t).reset()}})},mainEmbedToolbar:function(e){e.view=new wp.media.view.Toolbar.Embed({controller:this,text:this.options.text,event:"insert"})},embedContent:function(){var e=new m.MediaEmbedView({controller:this,model:this.state()}).render();this.content.set(e)}}),m.MediaWidgetControl=Backbone.View.extend({l10n:{add_to_widget:"{{add_to_widget}}",add_media:"{{add_media}}"},id_base:"",mime_type:"",events:{"click .notice-missing-attachment a":"handleMediaLibraryLinkClick","click .select-media":"selectMedia","click .placeholder":"selectMedia","click .edit-media":"editMedia"},showDisplaySettings:!0,initialize:function(e){var i=this;if(Backbone.View.prototype.initialize.call(i,e),!(i.model instanceof m.MediaWidgetModel))throw new Error("Missing options.model");if(!e.el)throw new Error("Missing options.el");if(!e.syncContainer)throw new Error("Missing options.syncContainer");if(i.syncContainer=e.syncContainer,i.$el.addClass("media-widget-control"),_.bindAll(i,"syncModelToInputs","render","updateSelectedAttachment","renderPreview"),!i.id_base&&(_.find(m.controlConstructors,function(e,t){return i instanceof e&&(i.id_base=t,!0)}),!i.id_base))throw new Error("Missing id_base.");i.previewTemplateProps=new Backbone.Model(i.mapModelToPreviewTemplateProps()),i.selectedAttachment=new wp.media.model.Attachment,i.renderPreview=_.debounce(i.renderPreview),i.listenTo(i.previewTemplateProps,"change",i.renderPreview),i.model.on("change:attachment_id",i.updateSelectedAttachment),i.model.on("change:url",i.updateSelectedAttachment),i.updateSelectedAttachment(),i.listenTo(i.model,"change",i.syncModelToInputs),i.listenTo(i.model,"change",i.syncModelToPreviewProps),i.listenTo(i.model,"change",i.render),i.$el.on("input change",".title",function(){i.model.set({title:c(this).val().trim()})}),i.$el.on("input change",".link",function(){var e=c(this).val().trim(),t="custom";i.selectedAttachment.get("linkUrl")===e||i.selectedAttachment.get("link")===e?t="post":i.selectedAttachment.get("url")===e&&(t="file"),i.model.set({link_url:e,link_type:t}),i.displaySettings.set({link:t,linkUrl:e})}),i.displaySettings=new Backbone.Model(_.pick(i.mapModelToMediaFrameProps(_.extend(i.model.defaults(),i.model.toJSON())),_.keys(wp.media.view.settings.defaultProps)))},updateSelectedAttachment:function(){var e,t=this;0===t.model.get("attachment_id")?(t.selectedAttachment.clear(),t.model.set("error",!1)):t.model.get("attachment_id")!==t.selectedAttachment.get("id")&&(e=new wp.media.model.Attachment({id:t.model.get("attachment_id")})).fetch().done(function(){t.model.set("error",!1),t.selectedAttachment.set(e.toJSON())}).fail(function(){t.model.set("error","missing_attachment")})},syncModelToPreviewProps:function(){this.previewTemplateProps.set(this.mapModelToPreviewTemplateProps())},syncModelToInputs:function(){var n=this;n.syncContainer.find(".media-widget-instance-property").each(function(){var e=c(this),t=e.data("property"),i=n.model.get(t);_.isUndefined(i)||(i="array"===n.model.schema[t].type&&_.isArray(i)?i.join(","):"boolean"===n.model.schema[t].type?i?"1":"":String(i),e.val()!==i&&(e.val(i),e.trigger("change")))})},template:function(){if(c("#tmpl-widget-media-"+this.id_base+"-control").length)return wp.template("widget-media-"+this.id_base+"-control");throw new Error("Missing widget control template for "+this.id_base)},render:function(){var e,t=this;t.templateRendered||(t.$el.html(t.template()(t.model.toJSON())),t.renderPreview(),t.templateRendered=!0),(e=t.$el.find(".title")).is(document.activeElement)||e.val(t.model.get("title")),t.$el.toggleClass("selected",t.isSelected())},renderPreview:function(){throw new Error("renderPreview must be implemented")},isSelected:function(){return!this.model.get("error")&&Boolean(this.model.get("attachment_id")||this.model.get("url"))},handleMediaLibraryLinkClick:function(e){e.preventDefault(),this.selectMedia()},selectMedia:function(){var i,t,e,n=this,d=[];n.isSelected()&&0!==n.model.get("attachment_id")&&d.push(n.selectedAttachment),d=new wp.media.model.Selection(d,{multiple:!1}),(e=n.mapModelToMediaFrameProps(n.model.toJSON())).size&&n.displaySettings.set("size",e.size),i=new m.MediaFrameSelect({title:n.l10n.add_media,frame:"post",text:n.l10n.add_to_widget,selection:d,mimeType:n.mime_type,selectedDisplaySettings:n.displaySettings,showDisplaySettings:n.showDisplaySettings,metadata:e,state:n.isSelected()&&0===n.model.get("attachment_id")?"embed":"insert",invalidEmbedTypeError:n.l10n.unsupported_file_type}),(wp.media.frame=i).on("insert",function(){var e={},t=i.state();"embed"===t.get("id")?_.extend(e,{id:0},t.props.toJSON()):_.extend(e,t.get("selection").first().toJSON()),n.selectedAttachment.set(e),n.model.set("error",!1),n.model.set(n.getModelPropsFromMediaFrame(i))}),t=wp.media.model.Attachment.prototype.sync,wp.media.model.Attachment.prototype.sync=function(e){return"delete"===e?t.apply(this,arguments):c.Deferred().rejectWith(this).promise()},i.on("close",function(){wp.media.model.Attachment.prototype.sync=t}),i.$el.addClass("media-widget"),i.open(),d&&d.on("destroy",function(e){n.model.get("attachment_id")===e.get("id")&&n.model.set({attachment_id:0,url:""})}),i.$el.find(".media-frame-menu .media-menu-item.active").focus()},getModelPropsFromMediaFrame:function(e){var t,i,n=this,d=e.state();if("insert"===d.get("id"))(t=d.get("selection").first().toJSON()).postUrl=t.link,n.showDisplaySettings&&_.extend(t,e.content.get(".attachments-browser").sidebar.get("display").model.toJSON()),t.sizes&&t.size&&t.sizes[t.size]&&(t.url=t.sizes[t.size].url);else{if("embed"!==d.get("id"))throw new Error("Unexpected state: "+d.get("id"));t=_.extend(d.props.toJSON(),{attachment_id:0},n.model.getEmbedResetProps())}return t.id&&(t.attachment_id=t.id),i=n.mapMediaToModelProps(t),_.each(wp.media.view.settings.embedExts,function(e){e in n.model.schema&&i.url!==i[e]&&(i[e]="")}),i},mapMediaToModelProps:function(e){var t,i=this,n={},d={};return _.each(i.model.schema,function(e,t){"title"!==t&&(n[e.media_prop||t]=t)}),_.each(e,function(e,t){t=n[t]||t;i.model.schema[t]&&(d[t]=e)}),"custom"===e.size&&(d.width=e.customWidth,d.height=e.customHeight),"post"===e.link?d.link_url=e.postUrl||e.linkUrl:"file"===e.link&&(d.link_url=e.url),!e.attachment_id&&e.id&&(d.attachment_id=e.id),e.url&&(t=e.url.replace(/#.*$/,"").replace(/\?.*$/,"").split(".").pop().toLowerCase())in i.model.schema&&(d[t]=e.url),_.omit(d,"title")},mapModelToMediaFrameProps:function(e){var n=this,d={};return _.each(e,function(e,t){var i=n.model.schema[t]||{};d[i.media_prop||t]=e}),d.attachment_id=d.id,"custom"===d.size&&(d.customWidth=n.model.get("width"),d.customHeight=n.model.get("height")),d},mapModelToPreviewTemplateProps:function(){var i=this,n={};return _.each(i.model.schema,function(e,t){e.hasOwnProperty("should_preview_update")&&!e.should_preview_update||(n[t]=i.model.get(t))}),n.error=i.model.get("error"),n},editMedia:function(){throw new Error("editMedia not implemented")}}),m.MediaWidgetModel=Backbone.Model.extend({idAttribute:"widget_id",schema:{title:{type:"string",default:""},attachment_id:{type:"integer",default:0},url:{type:"string",default:""}},defaults:function(){var i={};return _.each(this.schema,function(e,t){i[t]=e.default}),i},set:function(e,t,i){var n,d,o=this;return null===e?o:(e="object"==typeof e?(n=e,t):((n={})[e]=t,i),d={},_.each(n,function(e,t){var i;o.schema[t]?"array"===(i=o.schema[t].type)?(d[t]=e,_.isArray(d[t])||(d[t]=d[t].split(/,/)),o.schema[t].items&&"integer"===o.schema[t].items.type&&(d[t]=_.filter(_.map(d[t],function(e){return parseInt(e,10)},function(e){return"number"==typeof e})))):d[t]="integer"===i?parseInt(e,10):"boolean"===i?!(!e||"0"===e||"false"===e):e:d[t]=e}),Backbone.Model.prototype.set.call(this,d,e))},getEmbedResetProps:function(){return{id:0}}}),m.modelCollection=new(Backbone.Collection.extend({model:m.MediaWidgetModel})),m.widgetControls={},m.handleWidgetAdded=function(e,t){var i,n,d,o,a,s,r=t.find("> .widget-inside > .form, > .widget-inside > form"),l=r.find("> .id_base").val(),r=r.find("> .widget-id").val();m.widgetControls[r]||(d=m.controlConstructors[l])&&(l=m.modelConstructors[l]||m.MediaWidgetModel,i=c("<div></div>"),(n=t.find(".widget-content:first")).before(i),o={},n.find(".media-widget-instance-property").each(function(){var e=c(this);o[e.data("property")]=e.val()}),o.widget_id=r,r=new l(o),a=new d({el:i,syncContainer:n,model:r}),(s=function(){t.hasClass("open")?a.render():setTimeout(s,50)})(),m.modelCollection.add([r]),m.widgetControls[r.get("widget_id")]=a)},m.setupAccessibleMode=function(){var e,t,i,n,d,o=c(".editwidget > form");0!==o.length&&(i=o.find(".id_base").val(),t=m.controlConstructors[i])&&(e=o.find("> .widget-control-actions > .widget-id").val(),i=m.modelConstructors[i]||m.MediaWidgetModel,d=c("<div></div>"),(o=o.find("> .widget-inside")).before(d),n={},o.find(".media-widget-instance-property").each(function(){var e=c(this);n[e.data("property")]=e.val()}),n.widget_id=e,e=new t({el:d,syncContainer:o,model:new i(n)}),m.modelCollection.add([e.model]),(m.widgetControls[e.model.get("widget_id")]=e).render())},m.handleWidgetUpdated=function(e,t){var i={},t=t.find("> .widget-inside > .form, > .widget-inside > form"),n=t.find("> .widget-id").val(),n=m.widgetControls[n];n&&(t.find("> .widget-content").find(".media-widget-instance-property").each(function(){var e=c(this).data("property");i[e]=c(this).val()}),n.stopListening(n.model,"change",n.syncModelToInputs),n.model.set(i),n.listenTo(n.model,"change",n.syncModelToInputs))},m.init=function(){var e=c(document);e.on("widget-added",m.handleWidgetAdded),e.on("widget-synced widget-updated",m.handleWidgetUpdated),c(function(){"widgets"===window.pagenow&&(c(".widgets-holder-wrap:not(#available-widgets)").find("div.widget").one("click.toggle-widget-expanded",function(){var e=c(this);m.handleWidgetAdded(new jQuery.Event("widget-added"),e)}),"complete"===document.readyState?m.setupAccessibleMode():c(window).on("load",function(){m.setupAccessibleMode()}))})},m}(jQuery); \ No newline at end of file
diff --git a/wp-admin/link-add.php b/wp-admin/link-add.php
index d8c98bb..57450f0 100644
--- a/wp-admin/link-add.php
+++ b/wp-admin/link-add.php
@@ -17,7 +17,9 @@ if ( ! current_user_can( 'manage_links' ) ) {
$title = __( 'Add New Link' );
$parent_file = 'link-manager.php';
-wp_reset_vars( array( 'action', 'cat_id', 'link_id' ) );
+$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
+$cat_id = ! empty( $_REQUEST['cat_id'] ) ? absint( $_REQUEST['cat_id'] ) : 0;
+$link_id = ! empty( $_REQUEST['link_id'] ) ? absint( $_REQUEST['link_id'] ) : 0;
wp_enqueue_script( 'link' );
wp_enqueue_script( 'xfn' );
diff --git a/wp-admin/link-parse-opml.php b/wp-admin/link-parse-opml.php
index c0f02bd..f71b65f 100644
--- a/wp-admin/link-parse-opml.php
+++ b/wp-admin/link-parse-opml.php
@@ -78,7 +78,7 @@ function endElement( $parser, $tag_name ) { // phpcs:ignore WordPress.NamingConv
// Create an XML parser.
if ( ! function_exists( 'xml_parser_create' ) ) {
- trigger_error( __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) );
+ wp_trigger_error( '', __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) );
wp_die( __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) );
}
diff --git a/wp-admin/link.php b/wp-admin/link.php
index f07cc58..36a023a 100644
--- a/wp-admin/link.php
+++ b/wp-admin/link.php
@@ -12,7 +12,9 @@
/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';
-wp_reset_vars( array( 'action', 'cat_id', 'link_id' ) );
+$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
+$cat_id = ! empty( $_REQUEST['cat_id'] ) ? absint( $_REQUEST['cat_id'] ) : 0;
+$link_id = ! empty( $_REQUEST['link_id'] ) ? absint( $_REQUEST['link_id'] ) : 0;
if ( ! current_user_can( 'manage_links' ) ) {
wp_link_manager_disabled_message();
diff --git a/wp-admin/load-scripts.php b/wp-admin/load-scripts.php
index 5675b86..c7c952f 100644
--- a/wp-admin/load-scripts.php
+++ b/wp-admin/load-scripts.php
@@ -45,7 +45,26 @@ wp_default_scripts( $wp_scripts );
wp_default_packages_vendor( $wp_scripts );
wp_default_packages_scripts( $wp_scripts );
-if ( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) && stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) === $wp_version ) {
+$etag = "WP:{$wp_version};";
+
+foreach ( $load as $handle ) {
+ if ( ! array_key_exists( $handle, $wp_scripts->registered ) ) {
+ continue;
+ }
+
+ $ver = $wp_scripts->registered[ $handle ]->ver ? $wp_scripts->registered[ $handle ]->ver : $wp_version;
+ $etag .= "{$handle}:{$ver};";
+}
+
+/*
+ * This is not intended to be cryptographically secure, just a fast way to get
+ * a fixed length string based on the script versions. As this file does not
+ * load the full WordPress environment, it is not possible to use the salted
+ * wp_hash() function.
+ */
+$etag = 'W/"' . md5( $etag ) . '"';
+
+if ( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) && stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) === $etag ) {
header( "$protocol 304 Not Modified" );
exit;
}
@@ -59,7 +78,7 @@ foreach ( $load as $handle ) {
$out .= get_file( $path ) . "\n";
}
-header( "Etag: $wp_version" );
+header( "Etag: $etag" );
header( 'Content-Type: application/javascript; charset=UTF-8' );
header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + $expires_offset ) . ' GMT' );
header( "Cache-Control: public, max-age=$expires_offset" );
diff --git a/wp-admin/load-styles.php b/wp-admin/load-styles.php
index fe4a4ee..9fd0fc1 100644
--- a/wp-admin/load-styles.php
+++ b/wp-admin/load-styles.php
@@ -48,7 +48,26 @@ $out = '';
$wp_styles = new WP_Styles();
wp_default_styles( $wp_styles );
-if ( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) && stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) === $wp_version ) {
+$etag = "WP:{$wp_version};";
+
+foreach ( $load as $handle ) {
+ if ( ! array_key_exists( $handle, $wp_styles->registered ) ) {
+ continue;
+ }
+
+ $ver = $wp_styles->registered[ $handle ]->ver ? $wp_styles->registered[ $handle ]->ver : $wp_version;
+ $etag .= "{$handle}:{$ver};";
+}
+
+/*
+ * This is not intended to be cryptographically secure, just a fast way to get
+ * a fixed length string based on the script versions. As this file does not
+ * load the full WordPress environment, it is not possible to use the salted
+ * wp_hash() function.
+ */
+$etag = 'W/"' . md5( $etag ) . '"';
+
+if ( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) && stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) === $etag ) {
header( "$protocol 304 Not Modified" );
exit;
}
@@ -84,7 +103,7 @@ foreach ( $load as $handle ) {
}
}
-header( "Etag: $wp_version" );
+header( "Etag: $etag" );
header( 'Content-Type: text/css; charset=UTF-8' );
header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + $expires_offset ) . ' GMT' );
header( "Cache-Control: public, max-age=$expires_offset" );
diff --git a/wp-admin/media.php b/wp-admin/media.php
index 5b7ac35..ab8952f 100644
--- a/wp-admin/media.php
+++ b/wp-admin/media.php
@@ -15,7 +15,7 @@ require_once __DIR__ . '/admin.php';
$parent_file = 'upload.php';
$submenu_file = 'upload.php';
-wp_reset_vars( array( 'action' ) );
+$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
switch ( $action ) {
case 'editattachment':
diff --git a/wp-admin/menu-header.php b/wp-admin/menu-header.php
index 9b38e6f..878779d 100644
--- a/wp-admin/menu-header.php
+++ b/wp-admin/menu-header.php
@@ -98,7 +98,7 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
} else {
$class[] = 'wp-not-current-submenu';
if ( ! empty( $submenu_items ) ) {
- $aria_attributes .= 'aria-haspopup="true"';
+ $aria_attributes .= 'data-ariahaspopup';
}
}
diff --git a/wp-admin/menu.php b/wp-admin/menu.php
index 8076479..03a2ed8 100644
--- a/wp-admin/menu.php
+++ b/wp-admin/menu.php
@@ -206,15 +206,7 @@ if ( ! is_multisite() && current_user_can( 'update_themes' ) ) {
if ( wp_is_block_theme() ) {
$submenu['themes.php'][6] = array( _x( 'Editor', 'site editor menu item' ), 'edit_theme_options', 'site-editor.php' );
} else {
- $submenu['themes.php'][6] = array( _x( 'Patterns', 'patterns menu item' ), 'edit_theme_options', 'edit.php?post_type=wp_block' );
-}
-
-if ( ! wp_is_block_theme() && current_theme_supports( 'block-template-parts' ) ) {
- $submenu['themes.php'][7] = array(
- __( 'Template Parts' ),
- 'edit_theme_options',
- 'site-editor.php?path=/wp_template_part/all',
- );
+ $submenu['themes.php'][6] = array( _x( 'Patterns', 'patterns menu item' ), 'edit_theme_options', 'site-editor.php?path=/patterns' );
}
$customize_url = add_query_arg( 'return', urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), 'customize.php' );
@@ -222,9 +214,7 @@ $customize_url = add_query_arg( 'return', urlencode( remove_query_arg( wp_remova
// Hide Customize link on block themes unless a plugin or theme
// is using 'customize_register' to add a setting.
if ( ! wp_is_block_theme() || has_action( 'customize_register' ) ) {
- $position = ! wp_is_block_theme() && current_theme_supports( 'block-template-parts' ) ? 8 : 7;
-
- $submenu['themes.php'][ $position ] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' );
+ $submenu['themes.php'][7] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' );
}
if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) {
diff --git a/wp-admin/ms-options.php b/wp-admin/ms-options.php
index ebc8529..8899a35 100644
--- a/wp-admin/ms-options.php
+++ b/wp-admin/ms-options.php
@@ -10,3 +10,4 @@
require_once __DIR__ . '/admin.php';
wp_redirect( network_admin_url( 'settings.php' ) );
+exit;
diff --git a/wp-admin/nav-menus.php b/wp-admin/nav-menus.php
index 93b3c5e..7f22e4f 100644
--- a/wp-admin/nav-menus.php
+++ b/wp-admin/nav-menus.php
@@ -580,10 +580,12 @@ $nav_menus_l10n = array(
'under' => __( 'Under %s' ),
/* translators: %s: Previous item name. */
'outFrom' => __( 'Out from under %s' ),
- /* translators: 1: Item name, 2: Item position, 3: Total number of items. */
- 'menuFocus' => __( '%1$s. Menu item %2$d of %3$d.' ),
- /* translators: 1: Item name, 2: Item position, 3: Parent item name. */
- 'subMenuFocus' => __( '%1$s. Sub item number %2$d under %3$s.' ),
+ /* translators: 1: Item name, 2: Item type, 3: Item index, 4: Total items. */
+ 'menuFocus' => __( 'Edit %1$s (%2$s, %3$d of %4$d)' ),
+ /* translators: 1: Item name, 2: Item type, 3: Item index, 4: Total items, 5: Item parent. */
+ 'subMenuFocus' => __( 'Edit %1$s (%2$s, sub-item %3$d of %4$d under %5$s)' ),
+ /* translators: 1: Item name, 2: Item type, 3: Item index, 4: Total items, 5: Item parent, 6: Item depth. */
+ 'subMenuMoreDepthFocus' => __( 'Edit %1$s (%2$s, sub-item %3$d of %4$d under %5$s, level %6$d)' ),
/* translators: %s: Item name. */
'menuItemDeletion' => __( 'item %s' ),
/* translators: %s: Item name. */
diff --git a/wp-admin/network.php b/wp-admin/network.php
index 40c5ffc..99638da 100644
--- a/wp-admin/network.php
+++ b/wp-admin/network.php
@@ -65,7 +65,7 @@ $network_help = '<p>' . __( 'This screen allows you to configure a network as ha
'<p>' . __( 'Once you add this code and refresh your browser, multisite should be enabled. This screen, now in the Network Admin navigation menu, will keep an archive of the added code. You can toggle between Network Admin and Site Admin by clicking on the Network Admin or an individual site name under the My Sites dropdown in the Toolbar.' ) . '</p>' .
'<p>' . __( 'The choice of subdirectory sites is disabled if this setup is more than a month old because of permalink problems with &#8220;/blog/&#8221; from the main site. This disabling will be addressed in a future version.' ) . '</p>' .
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
- '<p>' . __( '<a href="https://wordpress.org/documentation/article/create-a-network/">Documentation on Creating a Network</a>' ) . '</p>' .
+ '<p>' . __( '<a href="https://developer.wordpress.org/advanced-administration/multisite/create-network/">Documentation on Creating a Network</a>' ) . '</p>' .
'<p>' . __( '<a href="https://wordpress.org/documentation/article/tools-network-screen/">Documentation on the Network Screen</a>' ) . '</p>';
get_current_screen()->add_help_tab(
@@ -78,7 +78,7 @@ get_current_screen()->add_help_tab(
get_current_screen()->set_help_sidebar(
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
- '<p>' . __( '<a href="https://wordpress.org/documentation/article/create-a-network/">Documentation on Creating a Network</a>' ) . '</p>' .
+ '<p>' . __( '<a href="https://developer.wordpress.org/advanced-administration/multisite/create-network/">Documentation on Creating a Network</a>' ) . '</p>' .
'<p>' . __( '<a href="https://wordpress.org/documentation/article/tools-network-screen/">Documentation on the Network Screen</a>' ) . '</p>' .
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
);
diff --git a/wp-admin/network/index.php b/wp-admin/network/index.php
index b51fc4e..96f4f68 100644
--- a/wp-admin/network/index.php
+++ b/wp-admin/network/index.php
@@ -53,7 +53,7 @@ get_current_screen()->add_help_tab(
get_current_screen()->set_help_sidebar(
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
- '<p>' . __( '<a href="https://wordpress.org/documentation/article/network-admin/">Documentation on the Network Admin</a>' ) . '</p>' .
+ '<p>' . __( '<a href="https://developer.wordpress.org/advanced-administration/multisite/admin/">Documentation on the Network Admin</a>' ) . '</p>' .
'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support forums</a>' ) . '</p>'
);
diff --git a/wp-admin/network/settings.php b/wp-admin/network/settings.php
index 7dff74d..a8504e4 100644
--- a/wp-admin/network/settings.php
+++ b/wp-admin/network/settings.php
@@ -61,7 +61,7 @@ get_current_screen()->add_help_tab(
get_current_screen()->set_help_sidebar(
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
- '<p>' . __( '<a href="https://wordpress.org/documentation/article/network-admin-settings-screen/">Documentation on Network Settings</a>' ) . '</p>' .
+ '<p>' . __( '<a href="https://developer.wordpress.org/advanced-administration/multisite/admin/settings/">Documentation on Network Settings</a>' ) . '</p>' .
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
);
diff --git a/wp-admin/network/site-info.php b/wp-admin/network/site-info.php
index defcc26..46f67cc 100644
--- a/wp-admin/network/site-info.php
+++ b/wp-admin/network/site-info.php
@@ -66,8 +66,14 @@ if ( isset( $_REQUEST['action'] ) && 'update-site' === $_REQUEST['action'] ) {
}
$blog_data['scheme'] = $update_parsed_url['scheme'];
+
+ // Make sure to not lose the port if it was provided.
$blog_data['domain'] = $update_parsed_url['host'];
- $blog_data['path'] = $update_parsed_url['path'];
+ if ( isset( $update_parsed_url['port'] ) ) {
+ $blog_data['domain'] .= ':' . $update_parsed_url['port'];
+ }
+
+ $blog_data['path'] = $update_parsed_url['path'];
}
$existing_details = get_site( $id );
@@ -88,16 +94,18 @@ if ( isset( $_REQUEST['action'] ) && 'update-site' === $_REQUEST['action'] ) {
$old_home_url = trailingslashit( esc_url( get_option( 'home' ) ) );
$old_home_parsed = parse_url( $old_home_url );
+ $old_home_host = $old_home_parsed['host'] . ( isset( $old_home_parsed['port'] ) ? ':' . $old_home_parsed['port'] : '' );
- if ( $old_home_parsed['host'] === $existing_details->domain && $old_home_parsed['path'] === $existing_details->path ) {
+ if ( $old_home_host === $existing_details->domain && $old_home_parsed['path'] === $existing_details->path ) {
$new_home_url = untrailingslashit( sanitize_url( $blog_data['scheme'] . '://' . $new_details->domain . $new_details->path ) );
update_option( 'home', $new_home_url );
}
$old_site_url = trailingslashit( esc_url( get_option( 'siteurl' ) ) );
$old_site_parsed = parse_url( $old_site_url );
+ $old_site_host = $old_site_parsed['host'] . ( isset( $old_site_parsed['port'] ) ? ':' . $old_site_parsed['port'] : '' );
- if ( $old_site_parsed['host'] === $existing_details->domain && $old_site_parsed['path'] === $existing_details->path ) {
+ if ( $old_site_host === $existing_details->domain && $old_site_parsed['path'] === $existing_details->path ) {
$new_site_url = untrailingslashit( sanitize_url( $blog_data['scheme'] . '://' . $new_details->domain . $new_details->path ) );
update_option( 'siteurl', $new_site_url );
}
diff --git a/wp-admin/network/site-new.php b/wp-admin/network/site-new.php
index 4bdd559..25500de 100644
--- a/wp-admin/network/site-new.php
+++ b/wp-admin/network/site-new.php
@@ -29,7 +29,7 @@ get_current_screen()->add_help_tab(
get_current_screen()->set_help_sidebar(
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
- '<p>' . __( '<a href="https://wordpress.org/documentation/article/network-admin-sites-screen/">Documentation on Site Management</a>' ) . '</p>' .
+ '<p>' . __( '<a href="https://developer.wordpress.org/advanced-administration/multisite/admin/#network-admin-sites-screen">Documentation on Site Management</a>' ) . '</p>' .
'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support forums</a>' ) . '</p>'
);
diff --git a/wp-admin/network/site-themes.php b/wp-admin/network/site-themes.php
index 79fe4d5..8d76efc 100644
--- a/wp-admin/network/site-themes.php
+++ b/wp-admin/network/site-themes.php
@@ -237,7 +237,7 @@ if ( isset( $_GET['enabled'] ) ) {
<p><?php _e( 'Network enabled themes are not shown on this screen.' ); ?></p>
<form method="get">
-<?php $wp_list_table->search_box( __( 'Search Installed Themes' ), 'theme' ); ?>
+<?php $wp_list_table->search_box( __( 'Search installed themes' ), 'theme' ); ?>
<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
</form>
diff --git a/wp-admin/network/sites.php b/wp-admin/network/sites.php
index 402c047..b583509 100644
--- a/wp-admin/network/sites.php
+++ b/wp-admin/network/sites.php
@@ -28,22 +28,20 @@ get_current_screen()->add_help_tab(
'id' => 'overview',
'title' => __( 'Overview' ),
'content' =>
- '<p>' . __( 'Add New takes you to the Add New Site screen. You can search for a site by Name, ID number, or IP address. Screen Options allows you to choose how many sites to display on one page.' ) . '</p>' .
- '<p>' . __( 'This is the main table of all sites on this network. Switch between list and excerpt views by using the icons above the right side of the table.' ) . '</p>' .
+ '<p>' . __( 'Add New Site takes you to the screen for adding a new site to the network. You can search for a site by Name, ID number, or IP address. Screen Options allows you to choose how many sites to display on one page.' ) . '</p>' .
+ '<p>' . __( 'This is the main table of all sites on this network. Switch between list and excerpt views by using the icons above the right side of the table.' ) . '</p>' .
'<p>' . __( 'Hovering over each site reveals seven options (three for the primary site):' ) . '</p>' .
'<ul><li>' . __( 'An Edit link to a separate Edit Site screen.' ) . '</li>' .
'<li>' . __( 'Dashboard leads to the Dashboard for that site.' ) . '</li>' .
'<li>' . __( 'Deactivate, Archive, and Spam which lead to confirmation screens. These actions can be reversed later.' ) . '</li>' .
- '<li>' . __( 'Delete which is a permanent action after the confirmation screens.' ) . '</li>' .
- '<li>' . __( 'Visit to go to the front-end site live.' ) . '</li></ul>' .
- '<p>' . __( 'The site ID is used internally, and is not shown on the front end of the site or to users/viewers.' ) . '</p>' .
- '<p>' . __( 'Clicking on bold headings can re-sort this table.' ) . '</p>',
+ '<li>' . __( 'Delete which is a permanent action after the confirmation screen.' ) . '</li>' .
+ '<li>' . __( 'Visit to go to the front-end of the live site.' ) . '</li></ul>',
)
);
get_current_screen()->set_help_sidebar(
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
- '<p>' . __( '<a href="https://wordpress.org/documentation/article/network-admin-sites-screen/">Documentation on Site Management</a>' ) . '</p>' .
+ '<p>' . __( '<a href="https://developer.wordpress.org/advanced-administration/multisite/admin/#network-admin-sites-screen">Documentation on Site Management</a>' ) . '</p>' .
'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support forums</a>' ) . '</p>'
);
@@ -118,8 +116,20 @@ if ( isset( $_GET['action'] ) ) {
<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
<input type="hidden" name="_wp_http_referer" value="<?php echo esc_attr( wp_get_referer() ); ?>" />
<?php wp_nonce_field( $site_action . '_' . $id, '_wpnonce', false ); ?>
- <p><?php printf( $manage_actions[ $site_action ], $site_address ); ?></p>
- <?php submit_button( __( 'Confirm' ), 'primary' ); ?>
+ <?php
+ if ( 'deleteblog' === $site_action ) {
+ $submit = __( 'Delete this site permanently' );
+ ?>
+ <div class="notice notice-warning inline">
+ <p><?php _e( 'Deleting a site is a permanent action that cannot be undone. This will delete the entire site and its uploads directory.' ); ?>
+ </div>
+ <?php
+ } else {
+ $submit = __( 'Confirm' );
+ }
+ ?>
+ <p><?php printf( $manage_actions[ $site_action ], "<strong>{$site_address}</strong>" ); ?></p>
+ <?php submit_button( $submit, 'primary' ); ?>
</form>
</div>
<?php
diff --git a/wp-admin/network/themes.php b/wp-admin/network/themes.php
index 4c6febe..7252fa7 100644
--- a/wp-admin/network/themes.php
+++ b/wp-admin/network/themes.php
@@ -460,7 +460,7 @@ if ( '' !== $message ) {
?>
<form method="get">
-<?php $wp_list_table->search_box( __( 'Search Installed Themes' ), 'theme' ); ?>
+<?php $wp_list_table->search_box( __( 'Search installed themes' ), 'theme' ); ?>
</form>
<?php
diff --git a/wp-admin/network/upgrade.php b/wp-admin/network/upgrade.php
index 55cbedd..d7a9e43 100644
--- a/wp-admin/network/upgrade.php
+++ b/wp-admin/network/upgrade.php
@@ -29,7 +29,7 @@ get_current_screen()->add_help_tab(
get_current_screen()->set_help_sidebar(
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
- '<p>' . __( '<a href="https://wordpress.org/documentation/article/network-admin-updates-screen/">Documentation on Upgrade Network</a>' ) . '</p>' .
+ '<p>' . __( '<a href="https://developer.wordpress.org/advanced-administration/multisite/admin/#network-admin-updates-screen">Documentation on Upgrade Network</a>' ) . '</p>' .
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
);
diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php
index 28aa16c..9515f71 100644
--- a/wp-admin/options-general.php
+++ b/wp-admin/options-general.php
@@ -32,7 +32,7 @@ if ( ! is_multisite() ) {
'<p>' . sprintf(
/* translators: %s: Documentation URL. */
__( 'Though the terms refer to two different concepts, in practice, they can be the same address or different. For example, you can have the core WordPress installation files in the root directory (<code>https://example.com</code>), in which case the two URLs would be the same. Or the <a href="%s">WordPress files can be in a subdirectory</a> (<code>https://example.com/wordpress</code>). In that case, the WordPress URL and the site URL would be different.' ),
- __( 'https://wordpress.org/documentation/article/giving-wordpress-its-own-directory/' )
+ __( 'https://developer.wordpress.org/advanced-administration/server/wordpress-in-directory/' )
) . '</p>' .
'<p>' . sprintf(
/* translators: 1: http://, 2: https:// */
@@ -235,7 +235,7 @@ if ( ! is_multisite() ) {
printf(
/* translators: %s: Documentation URL. */
__( 'Enter the same address here unless you <a href="%s">want your site home page to be different from your WordPress installation directory</a>.' ),
- __( 'https://wordpress.org/documentation/article/giving-wordpress-its-own-directory/' )
+ __( 'https://developer.wordpress.org/advanced-administration/server/wordpress-in-directory/' )
);
?>
</p>
@@ -354,7 +354,7 @@ if ( str_contains( $tzstring, 'Etc/GMT' ) ) {
if ( empty( $tzstring ) ) { // Create a UTC+- zone if no timezone string exists.
$check_zone_info = false;
- if ( 0 == $current_offset ) {
+ if ( 0 === (int) $current_offset ) {
$tzstring = 'UTC+0';
} elseif ( $current_offset < 0 ) {
$tzstring = 'UTC' . $current_offset;
@@ -554,7 +554,7 @@ foreach ( $time_formats as $format ) {
global $wp_locale;
for ( $day_index = 0; $day_index <= 6; $day_index++ ) :
- $selected = ( get_option( 'start_of_week' ) == $day_index ) ? 'selected="selected"' : '';
+ $selected = ( (int) get_option( 'start_of_week' ) === $day_index ) ? 'selected="selected"' : '';
echo "\n\t<option value='" . esc_attr( $day_index ) . "' $selected>" . $wp_locale->get_weekday( $day_index ) . '</option>';
endfor;
?>
diff --git a/wp-admin/options-head.php b/wp-admin/options-head.php
index d96978b..9dba370 100644
--- a/wp-admin/options-head.php
+++ b/wp-admin/options-head.php
@@ -8,7 +8,7 @@
* @subpackage Administration
*/
-wp_reset_vars( array( 'action' ) );
+$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
if ( isset( $_GET['updated'] ) && isset( $_GET['page'] ) ) {
// For back-compat with plugins that don't use the Settings API and just set updated=1 in the redirect.
diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php
index 46da9be..a22cdb0 100644
--- a/wp-admin/options-permalink.php
+++ b/wp-admin/options-permalink.php
@@ -61,7 +61,7 @@ $help_sidebar_content = '<p><strong>' . __( 'For more information:' ) . '</stron
'<p>' . __( '<a href="https://wordpress.org/documentation/article/customize-permalinks/">Documentation on Using Permalinks</a>' ) . '</p>';
if ( $is_nginx ) {
- $help_sidebar_content .= '<p>' . __( '<a href="https://wordpress.org/documentation/article/nginx/">Documentation on Nginx configuration</a>.' ) . '</p>';
+ $help_sidebar_content .= '<p>' . __( '<a href="https://developer.wordpress.org/advanced-administration/server/web-server/nginx/">Documentation on Nginx configuration</a>.' ) . '</p>';
}
$help_sidebar_content .= '<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>';
@@ -465,7 +465,7 @@ printf(
/* translators: 1: web.config, 2: Documentation URL, 3: Ctrl + A, 4: ⌘ + A, 5: Element code. */
__( '<strong>Error:</strong> Your %1$s file is not <a href="%2$s">writable</a>, so updating it automatically was not possible. This is the URL rewrite rule you should have in your %1$s file. Click in the field and press %3$s (or %4$s on Mac) to select all. Then insert this rule inside of the %5$s element in %1$s file.' ),
'<code>web.config</code>',
- __( 'https://wordpress.org/documentation/article/changing-file-permissions/' ),
+ __( 'https://developer.wordpress.org/advanced-administration/server/file-permissions/' ),
'<kbd>Ctrl + A</kbd>',
'<kbd>⌘ + A</kbd>',
'<code>/&lt;configuration&gt;/&lt;system.webServer&gt;/&lt;rewrite&gt;/&lt;rules&gt;</code>'
@@ -497,7 +497,7 @@ printf(
printf(
/* translators: 1: Documentation URL, 2: web.config, 3: Ctrl + A, 4: ⌘ + A */
__( '<strong>Error:</strong> The root directory of your site is not <a href="%1$s">writable</a>, so creating a file automatically was not possible. This is the URL rewrite rule you should have in your %2$s file. Create a new file called %2$s in the root directory of your site. Click in the field and press %3$s (or %4$s on Mac) to select all. Then insert this code into the %2$s file.' ),
- __( 'https://wordpress.org/documentation/article/changing-file-permissions/' ),
+ __( 'https://developer.wordpress.org/advanced-administration/server/file-permissions/' ),
'<code>web.config</code>',
'<kbd>Ctrl + A</kbd>',
'<kbd>⌘ + A</kbd>'
@@ -533,7 +533,7 @@ printf(
/* translators: 1: .htaccess, 2: Documentation URL, 3: Ctrl + A, 4: ⌘ + A */
__( '<strong>Error:</strong> Your %1$s file is not <a href="%2$s">writable</a>, so updating it automatically was not possible. These are the mod_rewrite rules you should have in your %1$s file. Click in the field and press %3$s (or %4$s on Mac) to select all.' ),
'<code>.htaccess</code>',
- __( 'https://wordpress.org/documentation/article/changing-file-permissions/' ),
+ __( 'https://developer.wordpress.org/advanced-administration/server/file-permissions/' ),
'<kbd>Ctrl + A</kbd>',
'<kbd>⌘ + A</kbd>'
);
diff --git a/wp-admin/options-reading.php b/wp-admin/options-reading.php
index c2ee28d..8f3ba83 100644
--- a/wp-admin/options-reading.php
+++ b/wp-admin/options-reading.php
@@ -32,7 +32,7 @@ get_current_screen()->add_help_tab(
'<p>' . sprintf(
/* translators: %s: Documentation URL. */
__( 'You can also control the display of your content in RSS feeds, including the maximum number of posts to display and whether to show full text or an excerpt. <a href="%s">Learn more about feeds</a>.' ),
- __( 'https://wordpress.org/documentation/article/wordpress-feeds/' )
+ __( 'https://developer.wordpress.org/advanced-administration/wordpress/feeds/' )
) . '</p>' .
'<p>' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '</p>',
)
@@ -64,7 +64,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<?php
settings_fields( 'reading' );
-if ( ! in_array( get_option( 'blog_charset' ), array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ), true ) ) {
+if ( ! is_utf8_charset() ) {
add_settings_field( 'blog_charset', __( 'Encoding for pages and feeds' ), 'options_reading_blog_charset', 'reading', 'default', array( 'label_for' => 'blog_charset' ) );
}
?>
@@ -197,7 +197,7 @@ else :
printf(
/* translators: %s: Documentation URL. */
__( 'Your theme determines how content is displayed in browsers. <a href="%s">Learn more about feeds</a>.' ),
- __( 'https://wordpress.org/documentation/article/wordpress-feeds/' )
+ __( 'https://developer.wordpress.org/advanced-administration/wordpress/feeds/' )
);
?>
</p>
diff --git a/wp-admin/options-writing.php b/wp-admin/options-writing.php
index b65f19e..21adf26 100644
--- a/wp-admin/options-writing.php
+++ b/wp-admin/options-writing.php
@@ -225,7 +225,7 @@ if ( apply_filters( 'enable_update_services_configuration', true ) ) {
printf(
/* translators: %s: Documentation URL. */
__( 'When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see the <a href="%s">Update Services</a> documentation article. Separate multiple service URLs with line breaks.' ),
- __( 'https://wordpress.org/documentation/article/update-services/' )
+ __( 'https://developer.wordpress.org/advanced-administration/wordpress/update-services/' )
);
?>
</label></p>
@@ -239,7 +239,7 @@ if ( apply_filters( 'enable_update_services_configuration', true ) ) {
printf(
/* translators: 1: Documentation URL, 2: URL to Reading Settings screen. */
__( 'WordPress is not notifying any <a href="%1$s">Update Services</a> because of your site&#8217;s <a href="%2$s">visibility settings</a>.' ),
- __( 'https://wordpress.org/documentation/article/update-services/' ),
+ __( 'https://developer.wordpress.org/advanced-administration/wordpress/update-services/' ),
'options-reading.php'
);
?>
diff --git a/wp-admin/options.php b/wp-admin/options.php
index 33779a7..6916e2e 100644
--- a/wp-admin/options.php
+++ b/wp-admin/options.php
@@ -23,7 +23,8 @@ $title = __( 'Settings' );
$this_file = 'options.php';
$parent_file = 'options-general.php';
-wp_reset_vars( array( 'action', 'option_page' ) );
+$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
+$option_page = ! empty( $_REQUEST['option_page'] ) ? sanitize_text_field( $_REQUEST['option_page'] ) : '';
$capability = 'manage_options';
@@ -159,7 +160,7 @@ $allowed_options['privacy'] = array();
$mail_options = array( 'mailserver_url', 'mailserver_port', 'mailserver_login', 'mailserver_pass' );
-if ( ! in_array( get_option( 'blog_charset' ), array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ), true ) ) {
+if ( ! is_utf8_charset() ) {
$allowed_options['reading'][] = 'blog_charset';
}
@@ -180,7 +181,9 @@ if ( ! is_multisite() ) {
$allowed_options['general'][] = 'default_role';
$allowed_options['writing'] = array_merge( $allowed_options['writing'], $mail_options );
- $allowed_options['writing'][] = 'ping_sites';
+ if ( '1' === get_option( 'blog_public' ) ) {
+ $allowed_options['writing'][] = 'ping_sites';
+ }
$allowed_options['media'][] = 'uploads_use_yearmonth_folders';
@@ -321,9 +324,10 @@ if ( 'update' === $action ) { // We are saving settings sent from a settings pag
'options.php',
'2.7.0',
sprintf(
- /* translators: %s: The option/setting. */
- __( 'The %s setting is unregistered. Unregistered settings are deprecated. See https://developer.wordpress.org/plugins/settings/settings-api/' ),
- '<code>' . esc_html( $option ) . '</code>'
+ /* translators: 1: The option/setting, 2: Documentation URL. */
+ __( 'The %1$s setting is unregistered. Unregistered settings are deprecated. See <a href="%2$s">documentation on the Settings API</a>.' ),
+ '<code>' . esc_html( $option ) . '</code>',
+ __( 'https://developer.wordpress.org/plugins/settings/settings-api/' )
)
);
}
diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php
index da57d95..73017ca 100644
--- a/wp-admin/plugin-editor.php
+++ b/wp-admin/plugin-editor.php
@@ -148,7 +148,7 @@ get_current_screen()->add_help_tab(
get_current_screen()->set_help_sidebar(
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
- '<p>' . __( '<a href="https://wordpress.org/documentation/article/plugins-editor-screen/">Documentation on Editing Plugins</a>' ) . '</p>' .
+ '<p>' . __( '<a href="https://developer.wordpress.org/advanced-administration/plugins/editor-screen/">Documentation on Editing Plugins</a>' ) . '</p>' .
'<p>' . __( '<a href="https://developer.wordpress.org/plugins/">Documentation on Writing Plugins</a>' ) . '</p>' .
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
);
@@ -323,7 +323,7 @@ endif;
printf(
/* translators: %s: Documentation URL. */
__( 'You need to make this file writable before you can save your changes. See <a href="%s">Changing File Permissions</a> for more information.' ),
- __( 'https://wordpress.org/documentation/article/changing-file-permissions/' )
+ __( 'https://developer.wordpress.org/advanced-administration/server/file-permissions/' )
);
?>
</p>
diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php
index e8f1074..7045f16 100644
--- a/wp-admin/plugins.php
+++ b/wp-admin/plugins.php
@@ -790,7 +790,7 @@ do_action( 'pre_current_active_plugins', $plugins['all'] );
<?php $wp_list_table->views(); ?>
<form class="search-form search-plugins" method="get">
-<?php $wp_list_table->search_box( __( 'Search Installed Plugins' ), 'plugin' ); ?>
+<?php $wp_list_table->search_box( __( 'Search installed plugins' ), 'plugin' ); ?>
</form>
<form method="post" id="bulk-action-form">
diff --git a/wp-admin/post-new.php b/wp-admin/post-new.php
index 521ef9e..5bf9e7c 100644
--- a/wp-admin/post-new.php
+++ b/wp-admin/post-new.php
@@ -10,9 +10,9 @@
require_once __DIR__ . '/admin.php';
/**
- * @global string $post_type
- * @global object $post_type_object
- * @global WP_Post $post Global post object.
+ * @global string $post_type Global post type.
+ * @global WP_Post_Type $post_type_object Global post type object.
+ * @global WP_Post $post Global post object.
*/
global $post_type, $post_type_object, $post;
diff --git a/wp-admin/post.php b/wp-admin/post.php
index 17875cb..1b8214c 100644
--- a/wp-admin/post.php
+++ b/wp-admin/post.php
@@ -14,7 +14,7 @@ require_once __DIR__ . '/admin.php';
$parent_file = 'edit.php';
$submenu_file = 'edit.php';
-wp_reset_vars( array( 'action' ) );
+$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
if ( isset( $_GET['post'] ) && isset( $_POST['post_ID'] ) && (int) $_GET['post'] !== (int) $_POST['post_ID'] ) {
wp_die( __( 'A post ID mismatch has been detected.' ), __( 'Sorry, you are not allowed to edit this item.' ), 400 );
@@ -28,9 +28,9 @@ if ( isset( $_GET['post'] ) && isset( $_POST['post_ID'] ) && (int) $_GET['post']
$post_ID = $post_id;
/**
- * @global string $post_type
- * @global object $post_type_object
- * @global WP_Post $post Global post object.
+ * @global string $post_type Global post type.
+ * @global WP_Post_Type $post_type_object Global post type object.
+ * @global WP_Post $post Global post object.
*/
global $post_type, $post_type_object, $post;
diff --git a/wp-admin/revision.php b/wp-admin/revision.php
index 72b8e74..12ec2b6 100644
--- a/wp-admin/revision.php
+++ b/wp-admin/revision.php
@@ -21,14 +21,16 @@ require ABSPATH . 'wp-admin/includes/revision.php';
* @global int $from The revision to compare from.
* @global int $to Optional, required if revision missing. The revision to compare to.
*/
-wp_reset_vars( array( 'revision', 'action', 'from', 'to' ) );
-$revision_id = absint( $revision );
+$revision_id = ! empty( $_REQUEST['revision'] ) ? absint( $_REQUEST['revision'] ) : 0;
+$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
+$from = ! empty( $_REQUEST['from'] ) && is_numeric( $_REQUEST['from'] ) ? absint( $_REQUEST['from'] ) : null;
+$to = ! empty( $_REQUEST['to'] ) && is_numeric( $_REQUEST['to'] ) ? absint( $_REQUEST['to'] ) : null;
-$from = is_numeric( $from ) ? absint( $from ) : null;
if ( ! $revision_id ) {
- $revision_id = absint( $to );
+ $revision_id = $to;
}
+
$redirect = 'edit.php';
switch ( $action ) {
diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php
index 5fd805e..b394de8 100644
--- a/wp-admin/setup-config.php
+++ b/wp-admin/setup-config.php
@@ -197,7 +197,7 @@ switch ( $step ) {
printf(
/* translators: 1: Documentation URL, 2: wp-config.php */
__( 'Need more help? <a href="%1$s">Read the support article on %2$s</a>.' ),
- __( 'https://wordpress.org/documentation/article/editing-wp-config-php/' ),
+ __( 'https://developer.wordpress.org/advanced-administration/wordpress/wp-config/' ),
'<code>wp-config.php</code>'
);
?>
@@ -396,7 +396,7 @@ switch ( $step ) {
$config_file[ $line_num ] = "define( '" . $constant . "'," . $padding . "'" . addcslashes( constant( $constant ), "\\'" ) . "' );\r\n";
break;
case 'DB_CHARSET':
- if ( 'utf8mb4' === $wpdb->charset || ( ! $wpdb->charset && $wpdb->has_cap( 'utf8mb4' ) ) ) {
+ if ( 'utf8mb4' === $wpdb->charset || ( ! $wpdb->charset ) ) {
$config_file[ $line_num ] = "define( '" . $constant . "'," . $padding . "'utf8mb4' );\r\n";
}
break;
@@ -484,7 +484,7 @@ if ( ! /iPad|iPod|iPhone/.test( navigator.userAgent ) ) {
/* translators: 1: wp-config.php, 2: Documentation URL. */
__( 'You need to make the file %1$s writable before you can save your changes. See <a href="%2$s">Changing File Permissions</a> for more information.' ),
'<code>wp-config.php</code>',
- __( 'https://wordpress.org/documentation/article/changing-file-permissions/' )
+ __( 'https://developer.wordpress.org/advanced-administration/server/file-permissions/' )
);
} else {
$error_message = sprintf(
diff --git a/wp-admin/site-health-info.php b/wp-admin/site-health-info.php
index 46b329a..2f23f83 100644
--- a/wp-admin/site-health-info.php
+++ b/wp-admin/site-health-info.php
@@ -64,7 +64,7 @@ wp_admin_notice(
<?php
- $sizes_fields = array( 'uploads_size', 'themes_size', 'plugins_size', 'wordpress_size', 'database_size', 'total_size' );
+ $sizes_fields = array( 'uploads_size', 'themes_size', 'plugins_size', 'fonts_size', 'wordpress_size', 'database_size', 'total_size' );
foreach ( $info as $section => $details ) {
if ( ! isset( $details['fields'] ) || empty( $details['fields'] ) ) {
diff --git a/wp-admin/site-health.php b/wp-admin/site-health.php
index ededbf0..0fd7fef 100644
--- a/wp-admin/site-health.php
+++ b/wp-admin/site-health.php
@@ -9,7 +9,7 @@
/** WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';
-wp_reset_vars( array( 'action' ) );
+$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
$tabs = array(
/* translators: Tab heading for Site Health Status page. */
diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php
index 868df4b..bf869f4 100644
--- a/wp-admin/theme-editor.php
+++ b/wp-admin/theme-editor.php
@@ -51,12 +51,15 @@ get_current_screen()->set_help_sidebar(
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
'<p>' . __( '<a href="https://developer.wordpress.org/themes/">Documentation on Theme Development</a>' ) . '</p>' .
'<p>' . __( '<a href="https://wordpress.org/documentation/article/appearance-theme-file-editor-screen/">Documentation on Editing Themes</a>' ) . '</p>' .
- '<p>' . __( '<a href="https://wordpress.org/documentation/article/editing-files/">Documentation on Editing Files</a>' ) . '</p>' .
+ '<p>' . __( '<a href="https://developer.wordpress.org/advanced-administration/wordpress/edit-files/">Documentation on Editing Files</a>' ) . '</p>' .
'<p>' . __( '<a href="https://developer.wordpress.org/themes/basics/template-tags/">Documentation on Template Tags</a>' ) . '</p>' .
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
);
-wp_reset_vars( array( 'action', 'error', 'file', 'theme' ) );
+$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
+$theme = ! empty( $_REQUEST['theme'] ) ? sanitize_text_field( $_REQUEST['theme'] ) : '';
+$file = ! empty( $_REQUEST['file'] ) ? sanitize_text_field( $_REQUEST['file'] ) : '';
+$error = ! empty( $_REQUEST['error'] );
if ( $theme ) {
$stylesheet = $theme;
@@ -356,7 +359,7 @@ else :
printf(
/* translators: %s: Documentation URL. */
__( 'You need to make this file writable before you can save your changes. See <a href="%s">Changing File Permissions</a> for more information.' ),
- __( 'https://wordpress.org/documentation/article/changing-file-permissions/' )
+ __( 'https://developer.wordpress.org/advanced-administration/server/file-permissions/' )
);
?>
</p>
diff --git a/wp-admin/theme-install.php b/wp-admin/theme-install.php
index 2521297..1cebf34 100644
--- a/wp-admin/theme-install.php
+++ b/wp-admin/theme-install.php
@@ -10,7 +10,7 @@
require_once __DIR__ . '/admin.php';
require ABSPATH . 'wp-admin/includes/theme-install.php';
-wp_reset_vars( array( 'tab' ) );
+$tab = ! empty( $_REQUEST['tab'] ) ? sanitize_text_field( $_REQUEST['tab'] ) : '';
if ( ! current_user_can( 'install_themes' ) ) {
wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) );
@@ -56,7 +56,6 @@ wp_localize_script(
'l10n' => array(
'addNew' => __( 'Add New Theme' ),
'search' => __( 'Search Themes' ),
- 'searchPlaceholder' => __( 'Search themes...' ), // Placeholder (no ellipsis).
'upload' => __( 'Upload Theme' ),
'back' => __( 'Back' ),
'error' => sprintf(
@@ -217,7 +216,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<button type="button" class="button drawer-toggle" aria-expanded="false"><?php _e( 'Feature Filter' ); ?></button>
- <form class="search-form"></form>
+ <form class="search-form"><p class="search-box"></p></form>
<div class="favorites-form">
<?php
diff --git a/wp-admin/themes.php b/wp-admin/themes.php
index 31a2e26..59d3689 100644
--- a/wp-admin/themes.php
+++ b/wp-admin/themes.php
@@ -215,7 +215,9 @@ if ( current_user_can( 'switch_themes' ) ) {
} else {
$themes = wp_prepare_themes_for_js( array( wp_get_theme() ) );
}
-wp_reset_vars( array( 'theme', 'search' ) );
+
+$theme = ! empty( $_REQUEST['theme'] ) ? sanitize_text_field( $_REQUEST['theme'] ) : '';
+$search = ! empty( $_REQUEST['search'] ) ? sanitize_text_field( $_REQUEST['search'] ) : '';
wp_localize_script(
'theme',
@@ -229,12 +231,11 @@ wp_localize_script(
'adminUrl' => parse_url( admin_url(), PHP_URL_PATH ),
),
'l10n' => array(
- 'addNew' => __( 'Add New Theme' ),
- 'search' => __( 'Search Installed Themes' ),
- 'searchPlaceholder' => __( 'Search installed themes...' ), // Placeholder (no ellipsis).
+ 'addNew' => __( 'Add New Theme' ),
+ 'search' => __( 'Search installed themes' ),
/* translators: %d: Number of themes. */
- 'themesFound' => __( 'Number of Themes found: %d' ),
- 'noThemesFound' => __( 'No themes found. Try a different search.' ),
+ 'themesFound' => __( 'Number of Themes found: %d' ),
+ 'noThemesFound' => __( 'No themes found. Try a different search.' ),
),
)
);
@@ -250,14 +251,12 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<h1 class="wp-heading-inline"><?php esc_html_e( 'Themes' ); ?>
<span class="title-count theme-count"><?php echo ! empty( $_GET['search'] ) ? __( '&hellip;' ) : count( $themes ); ?></span>
</h1>
-
<?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
<a href="<?php echo esc_url( admin_url( 'theme-install.php' ) ); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html__( 'Add New Theme' ); ?></a>
<?php endif; ?>
-
- <form class="search-form"></form>
-
<hr class="wp-header-end">
+ <form class="search-form search-themes"><p class="search-box"></p></form>
+
<?php
if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) {
wp_admin_notice(
diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php
index 80fbd53..3e48bae 100644
--- a/wp-admin/update-core.php
+++ b/wp-admin/update-core.php
@@ -258,7 +258,7 @@ function core_upgrade_preamble() {
$message = sprintf(
/* translators: 1: Documentation on WordPress backups, 2: Documentation on updating WordPress. */
__( '<strong>Important:</strong> Before updating, please <a href="%1$s">back up your database and files</a>. For help with updates, visit the <a href="%2$s">Updating WordPress</a> documentation page.' ),
- __( 'https://wordpress.org/documentation/article/wordpress-backups/' ),
+ __( 'https://developer.wordpress.org/advanced-administration/security/backup/' ),
__( 'https://wordpress.org/documentation/article/updating-wordpress/' )
);
wp_admin_notice(
@@ -1045,7 +1045,7 @@ if ( current_user_can( 'update_themes' ) || current_user_can( 'update_plugins' )
)
);
- $help_sidebar_rollback = '<p>' . __( '<a href="https://wordpress.org/documentation/article/common-wordpress-errors/">Common Errors</a>' ) . '</p>';
+ $help_sidebar_rollback = '<p>' . __( '<a href="https://developer.wordpress.org/advanced-administration/wordpress/common-errors/">Common Errors</a>' ) . '</p>';
}
get_current_screen()->set_help_sidebar(
diff --git a/wp-admin/upload.php b/wp-admin/upload.php
index 3c48cc9..8267ad5 100644
--- a/wp-admin/upload.php
+++ b/wp-admin/upload.php
@@ -128,12 +128,13 @@ if ( ! empty( $_GET['message'] ) && isset( $messages[ $_GET['message'] ] ) ) {
$_SERVER['REQUEST_URI'] = remove_query_arg( array( 'message' ), $_SERVER['REQUEST_URI'] );
}
-$mode = get_user_option( 'media_library_mode', get_current_user_id() ) ? get_user_option( 'media_library_mode', get_current_user_id() ) : 'grid';
$modes = array( 'grid', 'list' );
if ( isset( $_GET['mode'] ) && in_array( $_GET['mode'], $modes, true ) ) {
$mode = $_GET['mode'];
update_user_option( get_current_user_id(), 'media_library_mode', $mode );
+} else {
+ $mode = get_user_option( 'media_library_mode', get_current_user_id() ) ? get_user_option( 'media_library_mode', get_current_user_id() ) : 'grid';
}
if ( 'grid' === $mode ) {
diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php
index bbb321a..0ab9aec 100644
--- a/wp-admin/user-edit.php
+++ b/wp-admin/user-edit.php
@@ -12,9 +12,10 @@ require_once __DIR__ . '/admin.php';
/** WordPress Translation Installation API */
require_once ABSPATH . 'wp-admin/includes/translation-install.php';
-wp_reset_vars( array( 'action', 'user_id', 'wp_http_referer' ) );
+$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
+$user_id = ! empty( $_REQUEST['user_id'] ) ? absint( $_REQUEST['user_id'] ) : 0;
+$wp_http_referer = ! empty( $_REQUEST['wp_http_referer'] ) ? sanitize_text_field( $_REQUEST['wp_http_referer'] ) : '';
-$user_id = (int) $user_id;
$current_user = wp_get_current_user();
if ( ! defined( 'IS_PROFILE_PAGE' ) ) {
@@ -437,7 +438,7 @@ switch ( $action ) {
<table class="form-table" role="presentation">
<tr class="user-user-login-wrap">
<th><label for="user_login"><?php _e( 'Username' ); ?></label></th>
- <td><input type="text" name="user_login" id="user_login" value="<?php echo esc_attr( $profile_user->user_login ); ?>" disabled="disabled" class="regular-text" /> <span class="description"><?php _e( 'Usernames cannot be changed.' ); ?></span></td>
+ <td><input type="text" name="user_login" id="user_login" value="<?php echo esc_attr( $profile_user->user_login ); ?>" readonly="readonly" class="regular-text" /> <span class="description"><?php _e( 'Usernames cannot be changed.' ); ?></span></td>
</tr>
<?php if ( ! IS_PROFILE_PAGE && ! is_network_admin() && current_user_can( 'promote_user', $profile_user->ID ) ) : ?>
diff --git a/wp-admin/user/contribute.php b/wp-admin/user/contribute.php
new file mode 100644
index 0000000..22dc300
--- /dev/null
+++ b/wp-admin/user/contribute.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * User Dashboard Contribute administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ * @since 6.6.0
+ */
+
+/** Load WordPress Administration Bootstrap */
+require_once __DIR__ . '/admin.php';
+
+require ABSPATH . 'wp-admin/contribute.php';
diff --git a/wp-admin/users.php b/wp-admin/users.php
index 94d891a..4951a7e 100644
--- a/wp-admin/users.php
+++ b/wp-admin/users.php
@@ -33,7 +33,7 @@ get_current_screen()->add_help_tab(
'id' => 'overview',
'title' => __( 'Overview' ),
'content' => '<p>' . __( 'This screen lists all the existing users for your site. Each user has one of five defined roles as set by the site admin: Site Administrator, Editor, Author, Contributor, or Subscriber. Users with roles other than Administrator will see fewer options in the dashboard navigation when they are logged in, based on their role.' ) . '</p>' .
- '<p>' . __( 'To add a new user for your site, click the Add New button at the top of the screen or Add New in the Users menu section.' ) . '</p>',
+ '<p>' . __( 'To add a new user for your site, click the Add New User button at the top of the screen or Add New User in the Users menu section.' ) . '</p>',
)
);
diff --git a/wp-config-sample.php b/wp-config-sample.php
index 6c4ea5f..bdea5cd 100644
--- a/wp-config-sample.php
+++ b/wp-config-sample.php
@@ -13,7 +13,7 @@
* * Database table prefix
* * ABSPATH
*
- * @link https://wordpress.org/documentation/article/editing-wp-config-php/
+ * @link https://developer.wordpress.org/advanced-administration/wordpress/wp-config/
*
* @package WordPress
*/
@@ -77,7 +77,7 @@ $table_prefix = 'wp_';
* For information on other constants that can be used for debugging,
* visit the documentation.
*
- * @link https://wordpress.org/documentation/article/debugging-in-wordpress/
+ * @link https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
*/
define( 'WP_DEBUG', false );
diff --git a/wp-content/plugins/akismet/akismet.php b/wp-content/plugins/akismet/akismet.php
index b62fddd..bca9a4a 100644
--- a/wp-content/plugins/akismet/akismet.php
+++ b/wp-content/plugins/akismet/akismet.php
@@ -6,7 +6,7 @@
Plugin Name: Akismet Anti-spam: Spam Protection
Plugin URI: https://akismet.com/
Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. Akismet Anti-spam keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key.
-Version: 5.3.2
+Version: 5.3.3
Requires at least: 5.8
Requires PHP: 5.6.20
Author: Automattic - Anti-spam Team
@@ -39,7 +39,7 @@ if ( !function_exists( 'add_action' ) ) {
exit;
}
-define( 'AKISMET_VERSION', '5.3.2' );
+define( 'AKISMET_VERSION', '5.3.3' );
define( 'AKISMET__MINIMUM_WP_VERSION', '5.8' );
define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'AKISMET_DELETE_LIMIT', 10000 );
@@ -47,22 +47,22 @@ define( 'AKISMET_DELETE_LIMIT', 10000 );
register_activation_hook( __FILE__, array( 'Akismet', 'plugin_activation' ) );
register_deactivation_hook( __FILE__, array( 'Akismet', 'plugin_deactivation' ) );
-require_once( AKISMET__PLUGIN_DIR . 'class.akismet.php' );
-require_once( AKISMET__PLUGIN_DIR . 'class.akismet-widget.php' );
-require_once( AKISMET__PLUGIN_DIR . 'class.akismet-rest-api.php' );
+require_once AKISMET__PLUGIN_DIR . 'class.akismet.php';
+require_once AKISMET__PLUGIN_DIR . 'class.akismet-widget.php';
+require_once AKISMET__PLUGIN_DIR . 'class.akismet-rest-api.php';
add_action( 'init', array( 'Akismet', 'init' ) );
add_action( 'rest_api_init', array( 'Akismet_REST_API', 'init' ) );
if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
- require_once( AKISMET__PLUGIN_DIR . 'class.akismet-admin.php' );
+ require_once AKISMET__PLUGIN_DIR . 'class.akismet-admin.php';
add_action( 'init', array( 'Akismet_Admin', 'init' ) );
}
//add wrapper class around deprecated akismet functions that are referenced elsewhere
-require_once( AKISMET__PLUGIN_DIR . 'wrapper.php' );
+require_once AKISMET__PLUGIN_DIR . 'wrapper.php';
if ( defined( 'WP_CLI' ) && WP_CLI ) {
- require_once( AKISMET__PLUGIN_DIR . 'class.akismet-cli.php' );
+ require_once AKISMET__PLUGIN_DIR . 'class.akismet-cli.php';
}
diff --git a/wp-content/plugins/akismet/class.akismet-admin.php b/wp-content/plugins/akismet/class.akismet-admin.php
index dd39104..d1dabcf 100644
--- a/wp-content/plugins/akismet/class.akismet-admin.php
+++ b/wp-content/plugins/akismet/class.akismet-admin.php
@@ -533,9 +533,13 @@ class Akismet_Admin {
}
public static function comment_row_action( $a, $comment ) {
- $akismet_result = get_comment_meta( $comment->comment_ID, 'akismet_result', true );
+ $akismet_result = get_comment_meta( $comment->comment_ID, 'akismet_result', true );
+ if ( ! $akismet_result && get_comment_meta( $comment->comment_ID, 'akismet_skipped', true ) ) {
+ $akismet_result = 'skipped'; // Akismet chose to skip the comment-check request.
+ }
+
$akismet_error = get_comment_meta( $comment->comment_ID, 'akismet_error', true );
- $user_result = get_comment_meta( $comment->comment_ID, 'akismet_user_result', true);
+ $user_result = get_comment_meta( $comment->comment_ID, 'akismet_user_result', true );
$comment_status = wp_get_comment_status( $comment->comment_ID );
$desc = null;
if ( $akismet_error ) {
@@ -679,6 +683,12 @@ class Akismet_Admin {
case 'webhook-ham-noaction':
$message = esc_html( __( 'Akismet cleared this comment during a recheck. It did not update the comment status because it had already been modified by another user or plugin.', 'akismet' ) );
break;
+ case 'akismet-skipped':
+ $message = esc_html( __( 'This comment was not sent to Akismet when it was submitted because it was caught by something else.', 'akismet' ) );
+ break;
+ case 'akismet-skipped-disallowed':
+ $message = esc_html( __( 'This comment was not sent to Akismet when it was submitted because it was caught by the comment disallowed list.', 'akismet' ) );
+ break;
default:
if ( preg_match( '/^status-changed/', $row['event'] ) ) {
// Half of these used to be saved without the dash after 'status-changed'.
@@ -897,7 +907,14 @@ class Akismet_Admin {
$response = Akismet::http_post( Akismet::build_query( $request_args ), 'get-stats' );
if ( ! empty( $response[1] ) ) {
- $stat_totals[$interval] = json_decode( $response[1] );
+ $data = json_decode( $response[1] );
+ /*
+ * The json decoded response should be an object. If it's not an object, something's wrong, and the data
+ * shouldn't be added to the stats_totals array.
+ */
+ if ( is_object( $data ) ) {
+ $stat_totals[ $interval ] = $data;
+ }
}
}
@@ -952,14 +969,15 @@ class Akismet_Admin {
public static function get_usage_limit_alert_data() {
return array(
- 'type' => 'usage-limit',
- 'code' => (int) get_option( 'akismet_alert_code' ),
- 'msg' => get_option( 'akismet_alert_msg' ),
- 'api_calls' => get_option( 'akismet_alert_api_calls' ),
- 'usage_limit' => get_option( 'akismet_alert_usage_limit' ),
- 'upgrade_plan' => get_option( 'akismet_alert_upgrade_plan' ),
- 'upgrade_url' => get_option( 'akismet_alert_upgrade_url' ),
- 'upgrade_type' => get_option( 'akismet_alert_upgrade_type' ),
+ 'type' => 'usage-limit',
+ 'code' => (int) get_option( 'akismet_alert_code' ),
+ 'msg' => get_option( 'akismet_alert_msg' ),
+ 'api_calls' => get_option( 'akismet_alert_api_calls' ),
+ 'usage_limit' => get_option( 'akismet_alert_usage_limit' ),
+ 'upgrade_plan' => get_option( 'akismet_alert_upgrade_plan' ),
+ 'upgrade_url' => get_option( 'akismet_alert_upgrade_url' ),
+ 'upgrade_type' => get_option( 'akismet_alert_upgrade_type' ),
+ 'upgrade_via_support' => get_option( 'akismet_alert_upgrade_via_support' ) === 'true',
);
}
@@ -1107,6 +1125,12 @@ class Akismet_Admin {
$alert_code = get_option( 'akismet_alert_code' );
if ( isset( Akismet::$limit_notices[ $alert_code ] ) ) {
$notices[] = self::get_usage_limit_alert_data();
+ } elseif ( $alert_code > 0 ) {
+ $notices[] = array(
+ 'type' => 'alert',
+ 'code' => (int) get_option( 'akismet_alert_code' ),
+ 'msg' => get_option( 'akismet_alert_msg' ),
+ );
}
/*
@@ -1117,7 +1141,6 @@ class Akismet_Admin {
*/
// $notices[] = array( 'type' => 'active-notice', 'time_saved' => 'Cleaning up spam takes time. Akismet has saved you 1 minute!' );
// $notices[] = array( 'type' => 'plugin' );
- // $notices[] = array( 'type' => 'spam-check', 'link_text' => 'Link text.' );
// $notices[] = array( 'type' => 'notice', 'notice_header' => 'This is the notice header.', 'notice_text' => 'This is the notice text.' );
// $notices[] = array( 'type' => 'missing-functions' );
// $notices[] = array( 'type' => 'servers-be-down' );
@@ -1131,6 +1154,7 @@ class Akismet_Admin {
// $notices[] = array( 'type' => 'existing-key-invalid' );
// $notices[] = array( 'type' => 'new-key-failed' );
// $notices[] = array( 'type' => 'usage-limit', 'api_calls' => '15000', 'usage_limit' => '10000', 'upgrade_plan' => 'Enterprise', 'upgrade_url' => 'https://akismet.com/account/', 'code' => 10502 );
+ // $notices[] = array( 'type' => 'spam-check', 'link_text' => 'Link text.' );
// $notices[] = array( 'type' => 'spam-check-cron-disabled' );
// $notices[] = array( 'type' => 'alert', 'code' => 123 );
@@ -1146,6 +1170,11 @@ class Akismet_Admin {
return;
}
+ // To see notice variants while testing.
+ // Akismet::view( 'notice', array( 'type' => 'spam-check-cron-disabled' ) );
+ // Akismet::view( 'notice', array( 'type' => 'spam-check' ) );
+ // Akismet::view( 'notice', array( 'type' => 'alert', 'code' => 123, 'msg' => 'Message' ) );
+
if ( in_array( $hook_suffix, array( 'edit-comments.php' ) ) && (int) get_option( 'akismet_alert_code' ) > 0 ) {
Akismet::verify_key( Akismet::get_api_key() ); //verify that the key is still in alert state
diff --git a/wp-content/plugins/akismet/class.akismet.php b/wp-content/plugins/akismet/class.akismet.php
index 7a89f61..0367d21 100644
--- a/wp-content/plugins/akismet/class.akismet.php
+++ b/wp-content/plugins/akismet/class.akismet.php
@@ -53,7 +53,7 @@ class Akismet {
add_action( 'transition_comment_status', array( 'Akismet', 'transition_comment_status' ), 10, 3 );
// Run this early in the pingback call, before doing a remote fetch of the source uri
- add_action( 'xmlrpc_call', array( 'Akismet', 'pre_check_pingback' ) );
+ add_action( 'xmlrpc_call', array( 'Akismet', 'pre_check_pingback' ), 10, 3 );
// Jetpack compatibility
add_filter( 'jetpack_options_whitelist', array( 'Akismet', 'add_to_jetpack_options_whitelist' ) );
@@ -224,6 +224,21 @@ class Akismet {
self::$last_comment_result = null;
+ // Skip the Akismet check if the comment matches the Disallowed Keys list.
+ if ( function_exists( 'wp_check_comment_disallowed_list' ) ) {
+ $comment_author = isset( $commentdata['comment_author'] ) ? $commentdata['comment_author'] : '';
+ $comment_author_email = isset( $commentdata['comment_author_email'] ) ? $commentdata['comment_author_email'] : '';
+ $comment_author_url = isset( $commentdata['comment_author_url'] ) ? $commentdata['comment_author_url'] : '';
+ $comment_content = isset( $commentdata['comment_content'] ) ? $commentdata['comment_content'] : '';
+ $comment_author_ip = isset( $commentdata['comment_author_IP'] ) ? $commentdata['comment_author_IP'] : '';
+ $comment_agent = isset( $commentdata['comment_agent'] ) ? $commentdata['comment_agent'] : '';
+
+ if ( wp_check_comment_disallowed_list( $comment_author, $comment_author_email, $comment_author_url, $comment_content, $comment_author_ip, $comment_agent ) ) {
+ self::set_last_comment( $commentdata );
+ return $commentdata;
+ }
+ }
+
$comment = $commentdata;
$comment['user_ip'] = self::get_ip_address();
@@ -427,7 +442,7 @@ class Akismet {
load_plugin_textdomain( 'akismet' );
// normal result: true or false
- if ( self::$last_comment['akismet_result'] == 'true' ) {
+ if ( isset( self::$last_comment['akismet_result'] ) && self::$last_comment['akismet_result'] == 'true' ) {
update_comment_meta( $comment->comment_ID, 'akismet_result', 'true' );
self::update_comment_history( $comment->comment_ID, '', 'check-spam' );
if ( $comment->comment_approved != 'spam' ) {
@@ -437,7 +452,7 @@ class Akismet {
'status-changed-' . $comment->comment_approved
);
}
- } elseif ( self::$last_comment['akismet_result'] == 'false' ) {
+ } elseif ( isset( self::$last_comment['akismet_result'] ) && self::$last_comment['akismet_result'] == 'false' ) {
update_comment_meta( $comment->comment_ID, 'akismet_result', 'false' );
self::update_comment_history( $comment->comment_ID, '', 'check-ham' );
// Status could be spam or trash, depending on the WP version and whether this change applies:
@@ -449,12 +464,26 @@ class Akismet {
} else {
self::update_comment_history( $comment->comment_ID, '', 'status-changed-' . $comment->comment_approved );
}
- } else if ( function_exists( 'wp_blacklist_check' ) && wp_blacklist_check( $comment->comment_author, $comment->comment_author_email, $comment->comment_author_url, $comment->comment_content, $comment->comment_author_IP, $comment->comment_agent ) ) {
- self::update_comment_history( $comment->comment_ID, '', 'wp-blacklisted' );
} else {
self::update_comment_history( $comment->comment_ID, '', 'status-changed-' . $comment->comment_approved );
}
}
+ } elseif ( ! isset( self::$last_comment['akismet_result'] ) ) {
+ // akismet_result isn't set, so the comment wasn't sent to Akismet.
+ update_comment_meta( $comment->comment_ID, 'akismet_skipped', 'true' );
+ $caught_by_disallowed_list = false;
+
+ if ( function_exists( 'wp_check_comment_disallowed_list' ) ) {
+ $caught_by_disallowed_list = wp_check_comment_disallowed_list( $comment->comment_author, $comment->comment_author_email, $comment->comment_author_url, $comment->comment_content, $comment->comment_author_IP, $comment->comment_agent );
+ }
+
+ if ( $caught_by_disallowed_list ) {
+ self::update_comment_history( $comment->comment_ID, '', 'wp-disallowed' );
+ self::update_comment_history( $comment->comment_ID, '', 'akismet-skipped-disallowed' );
+ } else {
+ // Add a generic skipped history item.
+ self::update_comment_history( $comment->comment_ID, '', 'akismet-skipped' );
+ }
} else {
// abnormal result: error
update_comment_meta( $comment->comment_ID, 'akismet_error', time() );
@@ -887,13 +916,16 @@ class Akismet {
$comment_id = (int) $comment_id;
- $comment = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->comments} WHERE comment_ID = %d", $comment_id ) );
+ $comment = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->comments} WHERE comment_ID = %d", $comment_id ), ARRAY_A );
- if ( !$comment ) // it was deleted
+ if ( ! $comment ) {
+ // it was deleted
return;
+ }
- if ( 'spam' != $comment->comment_approved )
+ if ( 'spam' != $comment['comment_approved'] ) {
return;
+ }
self::update_comment_history( $comment_id, '', 'report-spam' );
@@ -905,32 +937,36 @@ class Akismet {
// use the original version stored in comment_meta if available
$as_submitted = self::sanitize_comment_as_submitted( get_comment_meta( $comment_id, 'akismet_as_submitted', true ) );
- if ( $as_submitted && is_array( $as_submitted ) && isset( $as_submitted['comment_content'] ) )
- $comment = (object) array_merge( (array)$comment, $as_submitted );
+ if ( $as_submitted && is_array( $as_submitted ) && isset( $as_submitted['comment_content'] ) ) {
+ $comment = array_merge( $comment, $as_submitted );
+ }
- $comment->blog = get_option( 'home' );
- $comment->blog_lang = get_locale();
- $comment->blog_charset = get_option('blog_charset');
- $comment->permalink = get_permalink($comment->comment_post_ID);
+ $comment['blog'] = get_option( 'home' );
+ $comment['blog_lang'] = get_locale();
+ $comment['blog_charset'] = get_option( 'blog_charset' );
+ $comment['permalink'] = get_permalink( $comment['comment_post_ID'] );
- if ( is_object($current_user) )
- $comment->reporter = $current_user->user_login;
+ if ( is_object( $current_user ) ) {
+ $comment['reporter'] = $current_user->user_login;
+ }
- if ( is_object($current_site) )
- $comment->site_domain = $current_site->domain;
+ if ( is_object( $current_site ) ) {
+ $comment['site_domain'] = $current_site->domain;
+ }
- $comment->user_role = '';
- if ( ! empty( $comment->user_ID ) ) {
- $comment->user_role = Akismet::get_user_roles( $comment->user_ID );
+ $comment['user_role'] = '';
+ if ( ! empty( $comment['user_ID'] ) ) {
+ $comment['user_role'] = self::get_user_roles( $comment['user_ID'] );
}
- if ( self::is_test_mode() )
- $comment->is_test = 'true';
+ if ( self::is_test_mode() ) {
+ $comment['is_test'] = 'true';
+ }
- $post = get_post( $comment->comment_post_ID );
+ $post = get_post( $comment['comment_post_ID'] );
if ( ! is_null( $post ) ) {
- $comment->comment_post_modified_gmt = $post->post_modified_gmt;
+ $comment['comment_post_modified_gmt'] = $post->post_modified_gmt;
}
$comment = apply_filters( 'akismet_request_args', $comment, 'submit-spam' );
@@ -939,8 +975,8 @@ class Akismet {
update_comment_meta( $comment_id, 'akismet_user_result', 'true' );
- if ( $comment->reporter ) {
- update_comment_meta( $comment_id, 'akismet_user', $comment->reporter );
+ if ( $comment['reporter'] ) {
+ update_comment_meta( $comment_id, 'akismet_user', $comment['reporter'] );
}
do_action('akismet_submit_spam_comment', $comment_id, $response[1]);
@@ -951,9 +987,12 @@ class Akismet {
$comment_id = (int) $comment_id;
- $comment = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->comments} WHERE comment_ID = %d", $comment_id ) );
- if ( !$comment ) // it was deleted
+ $comment = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->comments} WHERE comment_ID = %d", $comment_id ), ARRAY_A );
+
+ if ( ! $comment ) {
+ // it was deleted
return;
+ }
self::update_comment_history( $comment_id, '', 'report-ham' );
@@ -965,32 +1004,36 @@ class Akismet {
// use the original version stored in comment_meta if available
$as_submitted = self::sanitize_comment_as_submitted( get_comment_meta( $comment_id, 'akismet_as_submitted', true ) );
- if ( $as_submitted && is_array($as_submitted) && isset($as_submitted['comment_content']) )
- $comment = (object) array_merge( (array)$comment, $as_submitted );
+ if ( $as_submitted && is_array( $as_submitted ) && isset( $as_submitted['comment_content'] ) ) {
+ $comment = array_merge( $comment, $as_submitted );
+ }
- $comment->blog = get_option( 'home' );
- $comment->blog_lang = get_locale();
- $comment->blog_charset = get_option('blog_charset');
- $comment->permalink = get_permalink( $comment->comment_post_ID );
- $comment->user_role = '';
+ $comment['blog'] = get_option( 'home' );
+ $comment['blog_lang'] = get_locale();
+ $comment['blog_charset'] = get_option( 'blog_charset' );
+ $comment['permalink'] = get_permalink( $comment['comment_post_ID'] );
+ $comment['user_role'] = '';
- if ( is_object($current_user) )
- $comment->reporter = $current_user->user_login;
+ if ( is_object( $current_user ) ) {
+ $comment['reporter'] = $current_user->user_login;
+ }
- if ( is_object($current_site) )
- $comment->site_domain = $current_site->domain;
+ if ( is_object( $current_site ) ) {
+ $comment['site_domain'] = $current_site->domain;
+ }
- if ( ! empty( $comment->user_ID ) ) {
- $comment->user_role = Akismet::get_user_roles( $comment->user_ID );
+ if ( ! empty( $comment['user_ID'] ) ) {
+ $comment['user_role'] = self::get_user_roles( $comment['user_ID'] );
}
- if ( Akismet::is_test_mode() )
- $comment->is_test = 'true';
+ if ( self::is_test_mode() ) {
+ $comment['is_test'] = 'true';
+ }
- $post = get_post( $comment->comment_post_ID );
+ $post = get_post( $comment['comment_post_ID'] );
if ( ! is_null( $post ) ) {
- $comment->comment_post_modified_gmt = $post->post_modified_gmt;
+ $comment['comment_post_modified_gmt'] = $post->post_modified_gmt;
}
$comment = apply_filters( 'akismet_request_args', $comment, 'submit-ham' );
@@ -999,8 +1042,8 @@ class Akismet {
update_comment_meta( $comment_id, 'akismet_user_result', 'false' );
- if ( $comment->reporter ) {
- update_comment_meta( $comment_id, 'akismet_user', $comment->reporter );
+ if ( $comment['reporter'] ) {
+ update_comment_meta( $comment_id, 'akismet_user', $comment['reporter'] );
}
do_action('akismet_submit_nonspam_comment', $comment_id, $response[1]);
@@ -1424,8 +1467,16 @@ class Akismet {
}
$simplified_response = array( $response['headers'], $response['body'] );
-
- self::update_alert( $simplified_response );
+
+ $alert_code_check_paths = array(
+ 'verify-key',
+ 'comment-check',
+ 'get-stats',
+ );
+
+ if ( in_array( $path, $alert_code_check_paths ) ) {
+ self::update_alert( $simplified_response );
+ }
return $simplified_response;
}
@@ -1442,6 +1493,7 @@ class Akismet {
'upgrade-plan',
'upgrade-url',
'upgrade-type',
+ 'upgrade-via-support',
);
foreach ( $alert_header_names as $alert_header_name ) {
@@ -1679,126 +1731,60 @@ p {
}
}
- public static function pre_check_pingback( $method ) {
- $pingback_args = array();
- if ( $method !== 'pingback.ping' )
+ /**
+ * Check pingbacks for spam before they're saved to the DB.
+ *
+ * @param string $method The XML-RPC method that was called.
+ * @param array $args This and the $server arg are marked as optional since plugins might still be
+ * calling do_action( 'xmlrpc_action', [...] ) without the arguments that were added in WP 5.7.
+ * @param wp_xmlrpc_server $server
+ */
+ public static function pre_check_pingback( $method, $args = array(), $server = null ) {
+ if ( $method !== 'pingback.ping' ) {
return;
+ }
- // A lot of this code is tightly coupled with the IXR class because the xmlrpc_call action doesn't pass along any information besides the method name.
- // This ticket should hopefully fix that: https://core.trac.wordpress.org/ticket/52524
- // Until that happens, when it's a system.multicall, pre_check_pingback will be called once for every internal pingback call.
- // Keep track of how many times this function has been called so we know which call to reference in the XML.
- static $call_count = 0;
-
- $call_count++;
-
- global $wp_xmlrpc_server;
-
- if ( !is_object( $wp_xmlrpc_server ) )
- return false;
-
- $is_multicall = false;
- $multicall_count = 0;
-
- if ( 'system.multicall' === $wp_xmlrpc_server->message->methodName ) {
- $is_multicall = true;
-
- if ( 0 === $call_count ) {
- // Only pass along the number of entries in the multicall the first time we see it.
- $multicall_count = is_countable( $wp_xmlrpc_server->message->params ) ? count( $wp_xmlrpc_server->message->params ) : 0;
- }
-
- /*
- * $wp_xmlrpc_server->message looks like this:
- *
- (
- [message] =>
- [messageType] => methodCall
- [faultCode] =>
- [faultString] =>
- [methodName] => system.multicall
- [params] => Array
- (
- [0] => Array
- (
- [methodName] => pingback.ping
- [params] => Array
- (
- [0] => http://www.example.net/?p=1 // Site that created the pingback.
- [1] => https://www.example.com/?p=1 // Post being pingback'd on this site.
- )
- )
- [1] => Array
- (
- [methodName] => pingback.ping
- [params] => Array
- (
- [0] => http://www.example.net/?p=1 // Site that created the pingback.
- [1] => https://www.example.com/?p=2 // Post being pingback'd on this site.
- )
- )
- )
- )
- */
-
- // Use the params from the nth pingback.ping call in the multicall.
- $pingback_calls_found = 0;
+ /*
+ * $args looks like this:
+ *
+ * Array
+ * (
+ * [0] => http://www.example.net/?p=1 // Site that created the pingback.
+ * [1] => https://www.example.com/?p=2 // Post being pingback'd on this site.
+ * )
+ */
- foreach ( $wp_xmlrpc_server->message->params as $xmlrpc_action ) {
- if ( 'pingback.ping' === $xmlrpc_action['methodName'] ) {
- $pingback_calls_found++;
- }
+ if ( ! is_null( $server ) && ! empty( $args[1] ) ) {
+ $is_multicall = false;
+ $multicall_count = 0;
- if ( $call_count === $pingback_calls_found ) {
- $pingback_args = $xmlrpc_action['params'];
- break;
- }
+ if ( 'system.multicall' === $server->message->methodName ) {
+ $is_multicall = true;
+ $multicall_count = is_countable( $server->message->params ) ? count( $server->message->params ) : 0;
}
- } else {
- /*
- * $wp_xmlrpc_server->message looks like this:
- *
- (
- [message] =>
- [messageType] => methodCall
- [faultCode] =>
- [faultString] =>
- [methodName] => pingback.ping
- [params] => Array
- (
- [0] => http://www.example.net/?p=1 // Site that created the pingback.
- [1] => https://www.example.com/?p=2 // Post being pingback'd on this site.
- )
- )
- */
- $pingback_args = $wp_xmlrpc_server->message->params;
- }
- if ( ! empty( $pingback_args[1] ) ) {
- $post_id = url_to_postid( $pingback_args[1] );
+ $post_id = url_to_postid( $args[1] );
// If pingbacks aren't open on this post, we'll still check whether this request is part of a potential DDOS,
// but indicate to the server that pingbacks are indeed closed so we don't include this request in the user's stats,
// since the user has already done their part by disabling pingbacks.
$pingbacks_closed = false;
-
+
$post = get_post( $post_id );
-
+
if ( ! $post || ! pings_open( $post ) ) {
$pingbacks_closed = true;
}
- // Note: If is_multicall is true and multicall_count=0, then we know this is at least the 2nd pingback we've processed in this multicall.
-
$comment = array(
- 'comment_author_url' => $pingback_args[0],
+ 'comment_author_url' => $args[0],
'comment_post_ID' => $post_id,
'comment_author' => '',
'comment_author_email' => '',
'comment_content' => '',
'comment_type' => 'pingback',
'akismet_pre_check' => '1',
- 'comment_pingback_target' => $pingback_args[1],
+ 'comment_pingback_target' => $args[1],
'pingbacks_closed' => $pingbacks_closed ? '1' : '0',
'is_multicall' => $is_multicall,
'multicall_count' => $multicall_count,
@@ -1808,7 +1794,7 @@ p {
if ( isset( $comment['akismet_result'] ) && 'true' == $comment['akismet_result'] ) {
// Sad: tightly coupled with the IXR classes. Unfortunately the action provides no context and no way to return anything.
- $wp_xmlrpc_server->error( new IXR_Error( 0, 'Invalid discovery target' ) );
+ $server->error( new IXR_Error( 0, 'Invalid discovery target' ) );
// Also note that if this was part of a multicall, a spam result will prevent the subsequent calls from being executed.
// This is probably fine, but it raises the bar for what should be acceptable as a false positive.
diff --git a/wp-content/plugins/akismet/readme.txt b/wp-content/plugins/akismet/readme.txt
index 37e57be..9b19fbb 100644
--- a/wp-content/plugins/akismet/readme.txt
+++ b/wp-content/plugins/akismet/readme.txt
@@ -1,9 +1,9 @@
=== Akismet Anti-spam: Spam Protection ===
Contributors: matt, ryan, andy, mdawaffe, tellyworth, josephscott, lessbloat, eoigal, cfinke, automattic, jgs, procifer, stephdau, kbrownkd, bluefuton, akismetantispam
-Tags: comments, spam, antispam, anti-spam, contact form, anti spam, comment moderation, comment spam, contact form spam, spam comments
+Tags: comments, spam, antispam, anti-spam, contact form
Requires at least: 5.8
Tested up to: 6.5.3
-Stable tag: 5.3.2
+Stable tag: 5.3.3
License: GPLv2 or later
The best anti-spam protection to block spam comments and spam in a contact form. The most trusted antispam solution for WordPress and WooCommerce.
@@ -32,6 +32,14 @@ Upload the Akismet plugin to your blog, activate it, and then enter your Akismet
== Changelog ==
+= 5.3.3 =
+*Release Date - 10 July 2024*
+
+* Make setup step clearer for new users.
+* Remove the stats section from the configuration page if the site has been revoked from the key.
+* Skip the Akismet comment check when the comment matches something in the disallowed list.
+* Prompt users on legacy plans to contact Akismet support for upgrades.
+
= 5.3.2 =
*Release Date - 21 March 2024*
diff --git a/wp-content/plugins/akismet/views/config.php b/wp-content/plugins/akismet/views/config.php
index b9e4457..23ad5c7 100644
--- a/wp-content/plugins/akismet/views/config.php
+++ b/wp-content/plugins/akismet/views/config.php
@@ -20,55 +20,57 @@ $kses_allow_link_href = array(
<?php } ?>
<?php if ( ! empty( $notices ) ) { ?>
<?php foreach ( $notices as $notice ) { ?>
- <?php Akismet::view( 'notice', $notice ); ?>
+ <?php Akismet::view( 'notice', array_merge( $notice, array( 'parent_view' => $name ) ) ); ?>
<?php } ?>
<?php } ?>
- <div class="akismet-card">
- <div class="akismet-section-header">
- <h2 class="akismet-section-header__label">
- <span><?php esc_html_e( 'Statistics', 'akismet' ); ?></span>
- </h2>
+ <?php if ( isset( $stat_totals['all'] ) && isset( $stat_totals['6-months'] ) ) : ?>
+ <div class="akismet-card">
+ <div class="akismet-section-header">
+ <h2 class="akismet-section-header__label">
+ <span><?php esc_html_e( 'Statistics', 'akismet' ); ?></span>
+ </h2>
- <div class="akismet-section-header__actions">
- <a href="<?php echo esc_url( Akismet_Admin::get_page_url( 'stats' ) ); ?>">
- <?php esc_html_e( 'Detailed stats', 'akismet' ); ?>
- </a>
- </div>
- </div> <!-- close akismet-section-header -->
+ <div class="akismet-section-header__actions">
+ <a href="<?php echo esc_url( Akismet_Admin::get_page_url( 'stats' ) ); ?>">
+ <?php esc_html_e( 'Detailed stats', 'akismet' ); ?>
+ </a>
+ </div>
+ </div> <!-- close akismet-section-header -->
- <div class="akismet-new-snapshot">
- <?php /* name attribute on iframe is used as a cache-buster here to force Firefox to load the new style charts: https://bugzilla.mozilla.org/show_bug.cgi?id=356558 */ ?>
- <div class="akismet-new-snapshot__chart">
- <iframe id="stats-iframe" allowtransparency="true" scrolling="no" frameborder="0" style="width: 100%; height: 220px; overflow: hidden;" src="<?php echo esc_url( sprintf( 'https://tools.akismet.com/1.0/snapshot.php?blog=%s&token=%s&height=200&locale=%s&is_redecorated=1', rawurlencode( get_option( 'home' ) ), rawurlencode( Akismet::get_access_token() ), get_locale() ) ); ?>" name="<?php echo esc_attr( 'snapshot-' . filemtime( __FILE__ ) ); ?>" title="<?php echo esc_attr__( 'Akismet stats' ); ?>"></iframe>
- </div>
- <ul class="akismet-new-snapshot__list">
- <li class="akismet-new-snapshot__item">
- <h3 class="akismet-new-snapshot__header"><?php esc_html_e( 'Past six months', 'akismet' ); ?></h3>
- <span class="akismet-new-snapshot__number"><?php echo number_format( $stat_totals['6-months']->spam ); ?></span>
- <span class="akismet-new-snapshot__text"><?php echo esc_html( _n( 'Spam blocked', 'Spam blocked', $stat_totals['6-months']->spam, 'akismet' ) ); ?></span>
- </li>
- <li class="akismet-new-snapshot__item">
- <h3 class="akismet-new-snapshot__header"><?php esc_html_e( 'All time', 'akismet' ); ?></h3>
- <span class="akismet-new-snapshot__number"><?php echo number_format( $stat_totals['all']->spam ); ?></span>
- <span class="akismet-new-snapshot__text"><?php echo esc_html( _n( 'Spam blocked', 'Spam blocked', $stat_totals['all']->spam, 'akismet' ) ); ?></span>
- </li>
- <li class="akismet-new-snapshot__item">
- <h3 class="akismet-new-snapshot__header"><?php esc_html_e( 'Accuracy', 'akismet' ); ?></h3>
- <span class="akismet-new-snapshot__number"><?php echo floatval( $stat_totals['all']->accuracy ); ?>%</span>
- <span class="akismet-new-snapshot__text">
- <?php
- /* translators: %s: number of spam missed by Akismet */
- echo esc_html( sprintf( _n( '%s missed spam', '%s missed spam', $stat_totals['all']->missed_spam, 'akismet' ), number_format( $stat_totals['all']->missed_spam ) ) ) . ', ';
- /* translators: %s: number of false positive spam flagged by Akismet */
- echo esc_html( sprintf( _n( '%s false positive', '%s false positives', $stat_totals['all']->false_positives, 'akismet' ), number_format( $stat_totals['all']->false_positives ) ) );
- ?>
- </span>
- </li>
- </ul>
- </div> <!-- close akismet-new-snapshot -->
+ <div class="akismet-new-snapshot">
+ <?php /* name attribute on iframe is used as a cache-buster here to force Firefox to load the new style charts: https://bugzilla.mozilla.org/show_bug.cgi?id=356558 */ ?>
+ <div class="akismet-new-snapshot__chart">
+ <iframe id="stats-iframe" allowtransparency="true" scrolling="no" frameborder="0" style="width: 100%; height: 220px; overflow: hidden;" src="<?php echo esc_url( sprintf( 'https://tools.akismet.com/1.0/snapshot.php?blog=%s&token=%s&height=200&locale=%s&is_redecorated=1', rawurlencode( get_option( 'home' ) ), rawurlencode( Akismet::get_access_token() ), get_locale() ) ); ?>" name="<?php echo esc_attr( 'snapshot-' . filemtime( __FILE__ ) ); ?>" title="<?php echo esc_attr__( 'Akismet stats' ); ?>"></iframe>
+ </div>
- </div> <!-- close akismet-card -->
+ <ul class="akismet-new-snapshot__list">
+ <li class="akismet-new-snapshot__item">
+ <h3 class="akismet-new-snapshot__header"><?php esc_html_e( 'Past six months', 'akismet' ); ?></h3>
+ <span class="akismet-new-snapshot__number"><?php echo number_format( $stat_totals['6-months']->spam ); ?></span>
+ <span class="akismet-new-snapshot__text"><?php echo esc_html( _n( 'Spam blocked', 'Spam blocked', $stat_totals['6-months']->spam, 'akismet' ) ); ?></span>
+ </li>
+ <li class="akismet-new-snapshot__item">
+ <h3 class="akismet-new-snapshot__header"><?php esc_html_e( 'All time', 'akismet' ); ?></h3>
+ <span class="akismet-new-snapshot__number"><?php echo number_format( $stat_totals['all']->spam ); ?></span>
+ <span class="akismet-new-snapshot__text"><?php echo esc_html( _n( 'Spam blocked', 'Spam blocked', $stat_totals['all']->spam, 'akismet' ) ); ?></span>
+ </li>
+ <li class="akismet-new-snapshot__item">
+ <h3 class="akismet-new-snapshot__header"><?php esc_html_e( 'Accuracy', 'akismet' ); ?></h3>
+ <span class="akismet-new-snapshot__number"><?php echo floatval( $stat_totals['all']->accuracy ); ?>%</span>
+ <span class="akismet-new-snapshot__text">
+ <?php
+ /* translators: %s: number of spam missed by Akismet */
+ echo esc_html( sprintf( _n( '%s missed spam', '%s missed spam', $stat_totals['all']->missed_spam, 'akismet' ), number_format( $stat_totals['all']->missed_spam ) ) ) . ', ';
+ /* translators: %s: number of false positive spam flagged by Akismet */
+ echo esc_html( sprintf( _n( '%s false positive', '%s false positives', $stat_totals['all']->false_positives, 'akismet' ), number_format( $stat_totals['all']->false_positives ) ) );
+ ?>
+ </span>
+ </li>
+ </ul>
+ </div> <!-- close akismet-new-snapshot -->
+ </div> <!-- close akismet-card -->
+ <?php endif; ?>
<?php if ( $akismet_user ) : ?>
<div class="akismet-card">
diff --git a/wp-content/plugins/akismet/views/notice.php b/wp-content/plugins/akismet/views/notice.php
index 466a322..be10ab2 100644
--- a/wp-content/plugins/akismet/views/notice.php
+++ b/wp-content/plugins/akismet/views/notice.php
@@ -9,9 +9,12 @@ $kses_allow_link = array(
);
$kses_allow_strong = array( 'strong' => true );
+if ( ! isset( $type ) ) {
+ $type = false; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
+}
+
/*
- * Some notices (plugin, spam-check, spam-check-cron-disabled, alert and usage-limit) are shown elsewhere in wp-admin,
- * so look different to the standard notices.
+ * Some notices (plugin, spam-check, spam-check-cron-disabled, alert and usage-limit) are also shown elsewhere in wp-admin, so have different classes applied so that they match the standard WordPress notice format.
*/
?>
<?php if ( $type === 'plugin' ) : ?>
@@ -37,25 +40,27 @@ $kses_allow_strong = array( 'strong' => true );
</div>
<?php elseif ( $type === 'spam-check' ) : ?>
-<div class="notice notice-warning">
- <p><strong><?php esc_html_e( 'Akismet has detected a problem.', 'akismet' ); ?></strong></p>
- <p><?php esc_html_e( 'Some comments have not yet been checked for spam by Akismet. They have been temporarily held for moderation and will automatically be rechecked later.', 'akismet' ); ?></p>
- <?php if ( $link_text ) : ?>
- <p><?php echo wp_kses( $link_text, $kses_allow_link ); ?></p>
- <?php endif; ?>
-</div>
+ <?php // This notice is only displayed on edit-comments.php. ?>
+ <div class="notice notice-warning">
+ <p><strong><?php esc_html_e( 'Akismet has detected a problem.', 'akismet' ); ?></strong></p>
+ <p><?php esc_html_e( 'Some comments have not yet been checked for spam by Akismet. They have been temporarily held for moderation and will automatically be rechecked later.', 'akismet' ); ?></p>
+ <?php if ( ! empty( $link_text ) ) : ?>
+ <p><?php echo wp_kses( $link_text, $kses_allow_link ); ?></p>
+ <?php endif; ?>
+ </div>
<?php elseif ( $type === 'spam-check-cron-disabled' ) : ?>
-<div class="notice notice-warning">
- <p><strong><?php esc_html_e( 'Akismet has detected a problem.', 'akismet' ); ?></strong></p>
- <p><?php esc_html_e( 'WP-Cron has been disabled using the DISABLE_WP_CRON constant. Comment rechecks may not work properly.', 'akismet' ); ?></p>
-</div>
-
+ <?php // This notice is only displayed on edit-comments.php. ?>
+ <div class="notice notice-warning">
+ <p><strong><?php esc_html_e( 'Akismet has detected a problem.', 'akismet' ); ?></strong></p>
+ <p><?php esc_html_e( 'WP-Cron has been disabled using the DISABLE_WP_CRON constant. Comment rechecks may not work properly.', 'akismet' ); ?></p>
+ </div>
+
<?php elseif ( $type === 'alert' ) : ?>
-<div class="error">
+<div class="<?php echo isset( $parent_view ) && $parent_view === 'config' ? 'akismet-alert is-bad' : 'error'; ?>">
<?php /* translators: The placeholder is an error code returned by Akismet. */ ?>
<p><strong><?php printf( esc_html__( 'Akismet error code: %s', 'akismet' ), esc_html( $code ) ); ?></strong></p>
- <p><?php echo esc_html( $msg ); ?></p>
+ <p><?php echo isset( $msg ) ? esc_html( $msg ) : ''; ?></p>
<p>
<?php
/* translators: the placeholder is a clickable URL that leads to more information regarding an error code. */
@@ -307,8 +312,11 @@ $kses_allow_strong = array( 'strong' => true );
<div class="akismet-usage-limit-cta">
<a href="<?php echo esc_attr( $upgrade_url ); ?>" class="button" target="_blank">
<?php
- // If only a qty upgrade is required, show a more generic message.
- if ( ! empty( $upgrade_type ) && 'qty' === $upgrade_type ) {
+ if ( isset( $upgrade_via_support ) && $upgrade_via_support ) {
+ // Direct user to contact support.
+ esc_html_e( 'Contact Akismet support', 'akismet' );
+ } elseif ( ! empty( $upgrade_type ) && 'qty' === $upgrade_type ) {
+ // If only a qty upgrade is required, show a more generic message.
esc_html_e( 'Upgrade your subscription level', 'akismet' );
} else {
echo esc_html(
diff --git a/wp-content/plugins/akismet/views/setup.php b/wp-content/plugins/akismet/views/setup.php
index 5078009..f4ddaf1 100644
--- a/wp-content/plugins/akismet/views/setup.php
+++ b/wp-content/plugins/akismet/views/setup.php
@@ -1,4 +1,4 @@
<div class="akismet-setup-instructions">
<p><?php esc_html_e( 'Set up your Akismet account to enable spam filtering on this site.', 'akismet' ); ?></p>
- <?php Akismet::view( 'get', array( 'text' => __( 'Set up your Akismet account' , 'akismet' ), 'classes' => array( 'akismet-button', 'akismet-is-primary' ) ) ); ?>
+ <?php Akismet::view( 'get', array( 'text' => __( 'Choose an Akismet plan', 'akismet' ), 'classes' => array( 'akismet-button', 'akismet-is-primary' ) ) ); ?>
</div>
diff --git a/wp-content/themes/twentytwentyfour/patterns/banner-hero.php b/wp-content/themes/twentytwentyfour/patterns/banner-hero.php
index 4587ac8..9971884 100644
--- a/wp-content/themes/twentytwentyfour/patterns/banner-hero.php
+++ b/wp-content/themes/twentytwentyfour/patterns/banner-hero.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/banner-hero
* Categories: banner, call-to-action, featured
* Viewport width: 1400
+ * Description: A hero section with a title, a paragraph, a CTA button, and an image.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/banner-project-description.php b/wp-content/themes/twentytwentyfour/patterns/banner-project-description.php
index 31a44fc..7ddeea7 100644
--- a/wp-content/themes/twentytwentyfour/patterns/banner-project-description.php
+++ b/wp-content/themes/twentytwentyfour/patterns/banner-project-description.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/banner-project-description
* Categories: featured, banner, about, portfolio
* Viewport width: 1400
+ * Description: Project description section with title, paragraph, and an image.
*/
?>
<!-- wp:group {"align":"full","style":{"spacing":{"margin":{"top":"0","bottom":"0"},"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"backgroundColor":"accent-2","layout":{"type":"constrained"}} -->
diff --git a/wp-content/themes/twentytwentyfour/patterns/cta-content-image-on-right.php b/wp-content/themes/twentytwentyfour/patterns/cta-content-image-on-right.php
index f46ecbc..49bceb2 100644
--- a/wp-content/themes/twentytwentyfour/patterns/cta-content-image-on-right.php
+++ b/wp-content/themes/twentytwentyfour/patterns/cta-content-image-on-right.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/cta-content-image-on-right
* Categories: call-to-action, banner
* Viewport width: 1400
+ * Description: A title, paragraph, two CTA buttons, and an image for a general CTA section.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/cta-pricing.php b/wp-content/themes/twentytwentyfour/patterns/cta-pricing.php
index 45f85f5..4ba3937 100644
--- a/wp-content/themes/twentytwentyfour/patterns/cta-pricing.php
+++ b/wp-content/themes/twentytwentyfour/patterns/cta-pricing.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/cta-pricing
* Categories: call-to-action, services
* Viewport width: 1400
+ * Description: A pricing section with a title, a paragraph and three pricing levels.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/cta-rsvp.php b/wp-content/themes/twentytwentyfour/patterns/cta-rsvp.php
index 9981065..a123869 100644
--- a/wp-content/themes/twentytwentyfour/patterns/cta-rsvp.php
+++ b/wp-content/themes/twentytwentyfour/patterns/cta-rsvp.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/cta-rsvp
* Categories: call-to-action, featured
* Viewport width: 1100
+ * Description: A large RSVP heading sideways, a description, and a CTA button.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/cta-services-image-left.php b/wp-content/themes/twentytwentyfour/patterns/cta-services-image-left.php
index 87f3c9f..b6315b0 100644
--- a/wp-content/themes/twentytwentyfour/patterns/cta-services-image-left.php
+++ b/wp-content/themes/twentytwentyfour/patterns/cta-services-image-left.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/cta-services-image-left
* Categories: call-to-action, banner, featured, services
* Viewport width: 1400
+ * Description: An image, title, paragraph and a CTA button to describe services.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/cta-subscribe-centered.php b/wp-content/themes/twentytwentyfour/patterns/cta-subscribe-centered.php
index b65eac5..c11b913 100644
--- a/wp-content/themes/twentytwentyfour/patterns/cta-subscribe-centered.php
+++ b/wp-content/themes/twentytwentyfour/patterns/cta-subscribe-centered.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/cta-subscribe-centered
* Categories: call-to-action
* Keywords: newsletter, subscribe, button
+ * Description: Subscribers CTA section with a title, a paragraph and a CTA button.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/footer-centered-logo-nav.php b/wp-content/themes/twentytwentyfour/patterns/footer-centered-logo-nav.php
index 4370eac..3925876 100644
--- a/wp-content/themes/twentytwentyfour/patterns/footer-centered-logo-nav.php
+++ b/wp-content/themes/twentytwentyfour/patterns/footer-centered-logo-nav.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/footer-centered-logo-nav
* Categories: footer
* Block Types: core/template-part/footer
+ * Description: A footer section with a centered logo, navigation, and WordPress credits.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/footer-colophon-3-col.php b/wp-content/themes/twentytwentyfour/patterns/footer-colophon-3-col.php
index cfb15db..e0de63b 100644
--- a/wp-content/themes/twentytwentyfour/patterns/footer-colophon-3-col.php
+++ b/wp-content/themes/twentytwentyfour/patterns/footer-colophon-3-col.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/footer-colophon-3-col
* Categories: footer
* Block Types: core/template-part/footer
+ * Description: A footer section with a colophon and 3 columns.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/footer.php b/wp-content/themes/twentytwentyfour/patterns/footer.php
index 85f310d..4b8aeb2 100644
--- a/wp-content/themes/twentytwentyfour/patterns/footer.php
+++ b/wp-content/themes/twentytwentyfour/patterns/footer.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/footer
* Categories: footer
* Block Types: core/template-part/footer
+ * Description: A footer section with a colophon and 4 columns.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/gallery-full-screen-image.php b/wp-content/themes/twentytwentyfour/patterns/gallery-full-screen-image.php
index ee26fca..dc9cc5d 100644
--- a/wp-content/themes/twentytwentyfour/patterns/gallery-full-screen-image.php
+++ b/wp-content/themes/twentytwentyfour/patterns/gallery-full-screen-image.php
@@ -3,6 +3,7 @@
* Title: Full screen image
* Slug: twentytwentyfour/gallery-full-screen-image
* Categories: gallery, portfolio
+ * Description: A cover image section that covers the entire width.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-2-col.php b/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-2-col.php
index 67ea044..8e2222e 100644
--- a/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-2-col.php
+++ b/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-2-col.php
@@ -5,6 +5,7 @@
* Categories: gallery, portfolio
* Keywords: project, images, media, masonry, columns
* Viewport width: 1400
+ * Description: A gallery section with 2 columns and offset images.
*/
?>
<!-- wp:group {"metadata":{"name":"Portfolio Images"},"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50","top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
diff --git a/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-3-col.php b/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-3-col.php
index 3280317..5f32f7f 100644
--- a/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-3-col.php
+++ b/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-3-col.php
@@ -5,6 +5,7 @@
* Categories: gallery, portfolio
* Keywords: project, images, media, masonry, columns
* Viewport width: 1400
+ * Description: A gallery section with 3 columns and offset images.
*/
?>
<!-- wp:group {"metadata":{"name":"Portfolio Images"},"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50","top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
diff --git a/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-4-col.php b/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-4-col.php
index 8c89db8..df9341d 100644
--- a/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-4-col.php
+++ b/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-4-col.php
@@ -5,6 +5,7 @@
* Categories: gallery, featured, portfolio
* Keywords: project, images, media, masonry, columns
* Viewport width: 1400
+ * Description: A gallery section with 4 columns and offset images.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/gallery-project-layout.php b/wp-content/themes/twentytwentyfour/patterns/gallery-project-layout.php
index 27d6f74..143d61b 100644
--- a/wp-content/themes/twentytwentyfour/patterns/gallery-project-layout.php
+++ b/wp-content/themes/twentytwentyfour/patterns/gallery-project-layout.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/gallery-project-layout
* Categories: gallery, featured, portfolio
* Viewport width: 1600
+ * Description: A gallery section with a project layout with 2 images.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/page-about-business.php b/wp-content/themes/twentytwentyfour/patterns/page-about-business.php
index ad62698..7b662c2 100644
--- a/wp-content/themes/twentytwentyfour/patterns/page-about-business.php
+++ b/wp-content/themes/twentytwentyfour/patterns/page-about-business.php
@@ -7,6 +7,7 @@
* Block Types: core/post-content
* Post Types: page, wp_template
* Viewport width: 1400
+ * Description: A business about page with a hero section, a text section, a services section, a team section, a clients section, a FAQ section, and a CTA section.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/page-home-blogging.php b/wp-content/themes/twentytwentyfour/patterns/page-home-blogging.php
index 5cef5d4..bd08b6e 100644
--- a/wp-content/themes/twentytwentyfour/patterns/page-home-blogging.php
+++ b/wp-content/themes/twentytwentyfour/patterns/page-home-blogging.php
@@ -6,6 +6,7 @@
* Keywords: page, starter
* Post Types: page, wp_template
* Viewport width: 1400
+ * Description: A blogging home page with a hero section, a text section, a blog section, and a CTA section.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/page-home-business.php b/wp-content/themes/twentytwentyfour/patterns/page-home-business.php
index 415c42f..3f2c748 100644
--- a/wp-content/themes/twentytwentyfour/patterns/page-home-business.php
+++ b/wp-content/themes/twentytwentyfour/patterns/page-home-business.php
@@ -7,6 +7,7 @@
* Block Types: core/post-content
* Post Types: page, wp_template
* Viewport width: 1400
+ * Description: A business home page with a hero section, a text section, a services section, a team section, a clients section, a FAQ section, and a CTA section.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/page-home-portfolio-gallery.php b/wp-content/themes/twentytwentyfour/patterns/page-home-portfolio-gallery.php
index a9ce9d7..511a3b8 100644
--- a/wp-content/themes/twentytwentyfour/patterns/page-home-portfolio-gallery.php
+++ b/wp-content/themes/twentytwentyfour/patterns/page-home-portfolio-gallery.php
@@ -7,6 +7,7 @@
* Block Types: core/post-content
* Post Types: page, wp_template
* Viewport width: 1400
+ * Description: A porfolio home page that features a gallery.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/page-home-portfolio.php b/wp-content/themes/twentytwentyfour/patterns/page-home-portfolio.php
index 40d4fa1..c03d1b1 100644
--- a/wp-content/themes/twentytwentyfour/patterns/page-home-portfolio.php
+++ b/wp-content/themes/twentytwentyfour/patterns/page-home-portfolio.php
@@ -7,6 +7,7 @@
* Block Types: core/post-content
* Post Types: page, wp_template
* Viewport width: 1400
+ * Description: A portfolio home page with a description and a 4-column post section with only feature images.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/page-newsletter-landing.php b/wp-content/themes/twentytwentyfour/patterns/page-newsletter-landing.php
index 5ee552e..6ad69ff 100644
--- a/wp-content/themes/twentytwentyfour/patterns/page-newsletter-landing.php
+++ b/wp-content/themes/twentytwentyfour/patterns/page-newsletter-landing.php
@@ -7,6 +7,7 @@
* Block Types: core/post-content
* Post Types: page, wp_template
* Viewport width: 1100
+ * Description: A block with a newsletter subscription CTA for a landing page.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/page-portfolio-overview.php b/wp-content/themes/twentytwentyfour/patterns/page-portfolio-overview.php
index b0bf21b..6aee66b 100644
--- a/wp-content/themes/twentytwentyfour/patterns/page-portfolio-overview.php
+++ b/wp-content/themes/twentytwentyfour/patterns/page-portfolio-overview.php
@@ -7,6 +7,7 @@
* Block Types: core/post-content
* Post Types: page, wp_template
* Viewport width: 1400
+ * Description: A full portfolio page with a section for project description, project details, a full screen image, and a gallery section with two images.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/page-rsvp-landing.php b/wp-content/themes/twentytwentyfour/patterns/page-rsvp-landing.php
index 8b3ba83..6ec6732 100644
--- a/wp-content/themes/twentytwentyfour/patterns/page-rsvp-landing.php
+++ b/wp-content/themes/twentytwentyfour/patterns/page-rsvp-landing.php
@@ -7,6 +7,7 @@
* Block Types: core/post-content
* Post Types: page, wp_template
* Viewport width: 1100
+ * Description: A large RSVP heading sideways, a description, and a CTA button.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/posts-1-col.php b/wp-content/themes/twentytwentyfour/patterns/posts-1-col.php
index 051ed14..f2bbaa1 100644
--- a/wp-content/themes/twentytwentyfour/patterns/posts-1-col.php
+++ b/wp-content/themes/twentytwentyfour/patterns/posts-1-col.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/posts-1-col
* Categories: query
* Block Types: core/query
+ * Description: A list of posts, 1 column.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/posts-3-col.php b/wp-content/themes/twentytwentyfour/patterns/posts-3-col.php
index 62a48c4..8556154 100644
--- a/wp-content/themes/twentytwentyfour/patterns/posts-3-col.php
+++ b/wp-content/themes/twentytwentyfour/patterns/posts-3-col.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/posts-3-col
* Categories: query
* Block Types: core/query
+ * Description: A list of posts, 3 columns.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/posts-grid-2-col.php b/wp-content/themes/twentytwentyfour/patterns/posts-grid-2-col.php
index dd2881d..d6a584f 100644
--- a/wp-content/themes/twentytwentyfour/patterns/posts-grid-2-col.php
+++ b/wp-content/themes/twentytwentyfour/patterns/posts-grid-2-col.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/posts-grid-2-col
* Categories: query
* Block Types: core/query
+ * Description: A grid of posts featuring the first post, 2 columns.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/posts-images-only-3-col.php b/wp-content/themes/twentytwentyfour/patterns/posts-images-only-3-col.php
index 48bf4d0..7aee493 100644
--- a/wp-content/themes/twentytwentyfour/patterns/posts-images-only-3-col.php
+++ b/wp-content/themes/twentytwentyfour/patterns/posts-images-only-3-col.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/posts-images-only-3-col
* Categories: query
* Block Types: core/query
+ * Description: A list of posts with featured images only, 3 columns.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/posts-images-only-offset-4-col.php b/wp-content/themes/twentytwentyfour/patterns/posts-images-only-offset-4-col.php
index 808754b..2cbcaff 100644
--- a/wp-content/themes/twentytwentyfour/patterns/posts-images-only-offset-4-col.php
+++ b/wp-content/themes/twentytwentyfour/patterns/posts-images-only-offset-4-col.php
@@ -3,6 +3,7 @@
* Title: Offset posts with featured images only, 4 columns
* Slug: twentytwentyfour/posts-images-only-offset-4-col
* Categories: posts
+ * Description: A list of posts with featured images only, 4 columns.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/posts-list.php b/wp-content/themes/twentytwentyfour/patterns/posts-list.php
index 5db93af..e298a54 100644
--- a/wp-content/themes/twentytwentyfour/patterns/posts-list.php
+++ b/wp-content/themes/twentytwentyfour/patterns/posts-list.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/posts-list
* Categories: query, posts
* Block Types: core/query
+ * Description: A list of posts without images, 1 column.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/team-4-col.php b/wp-content/themes/twentytwentyfour/patterns/team-4-col.php
index 78211d2..86a8bfa 100644
--- a/wp-content/themes/twentytwentyfour/patterns/team-4-col.php
+++ b/wp-content/themes/twentytwentyfour/patterns/team-4-col.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/team-4-col
* Categories: team, about
* Viewport width: 1400
+ * Description: A team section, with a heading, a paragraph, and 4 columns for team members.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/testimonial-centered.php b/wp-content/themes/twentytwentyfour/patterns/testimonial-centered.php
index 8e63924..7ca8275 100644
--- a/wp-content/themes/twentytwentyfour/patterns/testimonial-centered.php
+++ b/wp-content/themes/twentytwentyfour/patterns/testimonial-centered.php
@@ -5,10 +5,11 @@
* Keywords: quote, review, about
* Categories: testimonials, text
* Viewport width: 1300
+ * Description: A centered testimonial section with a avatar, name, and job title.
*/
?>
-<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Testimonial', 'Name of testimonal pattern', 'twentytwentyfour' ); ?>"},"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60","left":"var:preset|spacing|60","right":"var:preset|spacing|60"},"margin":{"top":"0","bottom":"0"}}},"backgroundColor":"contrast","textColor":"base","layout":{"type":"constrained","contentSize":""}} -->
+<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Testimonial', 'Name of testimonial pattern', 'twentytwentyfour' ); ?>"},"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60","left":"var:preset|spacing|60","right":"var:preset|spacing|60"},"margin":{"top":"0","bottom":"0"}}},"backgroundColor":"contrast","textColor":"base","layout":{"type":"constrained","contentSize":""}} -->
<div class="wp-block-group alignfull has-base-color has-contrast-background-color has-text-color has-background" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--60)">
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group">
diff --git a/wp-content/themes/twentytwentyfour/patterns/text-alternating-images.php b/wp-content/themes/twentytwentyfour/patterns/text-alternating-images.php
index 12a0772..105ac2a 100644
--- a/wp-content/themes/twentytwentyfour/patterns/text-alternating-images.php
+++ b/wp-content/themes/twentytwentyfour/patterns/text-alternating-images.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/text-alternating-images
* Categories: text, about
* Viewport width: 1400
+ * Description: A text section, then a two column section with text in one and image in another.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/text-centered-statement-small.php b/wp-content/themes/twentytwentyfour/patterns/text-centered-statement-small.php
index c24a51a..5408463 100644
--- a/wp-content/themes/twentytwentyfour/patterns/text-centered-statement-small.php
+++ b/wp-content/themes/twentytwentyfour/patterns/text-centered-statement-small.php
@@ -5,6 +5,7 @@
* Categories: text, about
* Keywords: mission, introduction
* Viewport width: 1200
+ * Description: A centered itallic text statement with compact padding.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/text-centered-statement.php b/wp-content/themes/twentytwentyfour/patterns/text-centered-statement.php
index ce7751e..f8fbb4d 100644
--- a/wp-content/themes/twentytwentyfour/patterns/text-centered-statement.php
+++ b/wp-content/themes/twentytwentyfour/patterns/text-centered-statement.php
@@ -5,6 +5,7 @@
* Categories: text, about, featured
* Keywords: mission, introduction
* Viewport width: 1400
+ * Description: A centered text statement with a large paddings.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/text-faq.php b/wp-content/themes/twentytwentyfour/patterns/text-faq.php
index 8bf0428..000aa61 100644
--- a/wp-content/themes/twentytwentyfour/patterns/text-faq.php
+++ b/wp-content/themes/twentytwentyfour/patterns/text-faq.php
@@ -5,6 +5,7 @@
* Categories: text, about, featured
* Keywords: faq, about, frequently asked
* Viewport width: 1400
+ * Description: A FAQ section with a large FAQ heading and list of toggle questions and answers.
*/
?>
@@ -16,45 +17,48 @@
<!-- wp:group {"align":"wide","layout":{"type":"default"}} -->
<div class="wp-block-group alignwide">
- <!-- wp:separator {"backgroundColor":"base","className":"is-style-wide"} -->
- <hr class="wp-block-separator has-text-color has-base-color has-alpha-channel-opacity has-base-background-color has-background is-style-wide"/>
+ <!-- wp:separator {"style":{"spacing":{"margin":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"backgroundColor":"base","className":"is-style-wide"} -->
+ <hr class="wp-block-separator has-text-color has-base-color has-alpha-channel-opacity has-base-background-color has-background is-style-wide" style="margin-top:var(--wp--preset--spacing--30);margin-bottom:var(--wp--preset--spacing--30)"/>
<!-- /wp:separator -->
+ <!-- wp:heading {"level":3,"align":"wide","style":{"elements":{"link":{"color":{"text":"var:preset|color|base-2"}}}},"textColor":"base-2"} -->
+ <h3 class="wp-block-heading alignwide has-base-2-color has-text-color has-link-color"><?php echo esc_html_x( 'What is your process working in smaller projects?', 'Question in the FAQ pattern', 'twentytwentyfour' ); ?></h3>
+ <!-- /wp:heading -->
+ <!-- wp:paragraph {"placeholder":"Type / to add a hidden block","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast-1"}}}},"textColor":"contrast-1"} -->
+ <p class="has-contrast-1-color has-text-color has-link-color"><?php echo esc_html_x( 'Études offers comprehensive consulting, management, design, and research solutions. Our vision is to be at the forefront of architectural innovation, fostering a global community of architects and enthusiasts united by a passion for creating spaces. Every architectural endeavor is an opportunity to shape the future.', 'Answer in the FAQ pattern', 'twentytwentyfour' ); ?></p>
+ <!-- /wp:paragraph -->
- <!-- wp:details {"style":{"spacing":{"margin":{"top":"0"}},"border":{"top":{"width":"0px","style":"none"},"right":{"width":"0px","style":"none"},"bottom":{"color":"var:preset|color|base","style":"solid","width":"1px"},"left":{"width":"0px","style":"none"}}},"className":"is-style-arrow-icon-details","fontSize":"medium"} -->
- <details class="wp-block-details is-style-arrow-icon-details has-medium-font-size" style="border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-color:var(--wp--preset--color--base);border-bottom-style:solid;border-bottom-width:1px;border-left-style:none;border-left-width:0px;margin-top:0">
- <summary><?php echo esc_html_x( 'What is your process working in smaller projects?', 'Question on the details block', 'twentytwentyfour' ); ?></summary>
- <!-- wp:paragraph {"placeholder":"Type / to add a hidden block","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast-1"}}}},"textColor":"contrast-1"} -->
- <p class="has-contrast-1-color has-text-color has-link-color"><?php echo esc_html_x( 'Études offers comprehensive consulting, management, design, and research solutions. Our vision is to be at the forefront of architectural innovation, fostering a global community of architects and enthusiasts united by a passion for creating spaces. Every architectural endeavor is an opportunity to shape the future.', 'Hidden answer on the details block', 'twentytwentyfour' ); ?></p>
- <!-- /wp:paragraph -->
- </details>
- <!-- /wp:details -->
+ <!-- wp:separator {"style":{"spacing":{"margin":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"backgroundColor":"base","className":"is-style-wide"} -->
+ <hr class="wp-block-separator has-text-color has-base-color has-alpha-channel-opacity has-base-background-color has-background is-style-wide" style="margin-top:var(--wp--preset--spacing--30);margin-bottom:var(--wp--preset--spacing--30)"/>
+ <!-- /wp:separator -->
+
+ <!-- wp:heading {"level":3,"align":"wide","style":{"elements":{"link":{"color":{"text":"var:preset|color|base-2"}}}},"textColor":"base-2"} -->
+ <h3 class="wp-block-heading alignwide has-base-2-color has-text-color has-link-color"><?php echo esc_html_x( 'Who is behind Études?', 'Question in the FAQ pattern', 'twentytwentyfour' ); ?></h3>
+ <!-- /wp:heading -->
+ <!-- wp:paragraph {"placeholder":"Type / to add a hidden block","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast-1"}}}},"textColor":"contrast-1"} -->
+ <p class="has-contrast-1-color has-text-color has-link-color"><?php echo esc_html_x( 'Études offers comprehensive consulting, management, design, and research solutions. Our vision is to be at the forefront of architectural innovation, fostering a global community of architects and enthusiasts united by a passion for creating spaces. Every architectural endeavor is an opportunity to shape the future.', 'Answer in the FAQ pattern', 'twentytwentyfour' ); ?></p>
+ <!-- /wp:paragraph -->
- <!-- wp:details {"style":{"spacing":{"margin":{"top":"0"}},"border":{"top":{"width":"0px","style":"none"},"right":{"width":"0px","style":"none"},"bottom":{"color":"var:preset|color|base","style":"solid","width":"1px"},"left":{"width":"0px","style":"none"}}},"className":"is-style-arrow-icon-details","fontSize":"medium"} -->
- <details class="wp-block-details is-style-arrow-icon-details has-medium-font-size" style="border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-color:var(--wp--preset--color--base);border-bottom-style:solid;border-bottom-width:1px;border-left-style:none;border-left-width:0px;margin-top:0">
- <summary><?php echo esc_html_x( 'Who is behind Études?', 'Question on the details block', 'twentytwentyfour' ); ?></summary>
- <!-- wp:paragraph {"placeholder":"Type / to add a hidden block","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast-1"}}}},"textColor":"contrast-1"} -->
- <p class="has-contrast-1-color has-text-color has-link-color"><?php echo esc_html_x( 'Études offers comprehensive consulting, management, design, and research solutions. Our vision is to be at the forefront of architectural innovation, fostering a global community of architects and enthusiasts united by a passion for creating spaces. Every architectural endeavor is an opportunity to shape the future.', 'Hidden answer on the details block', 'twentytwentyfour' ); ?></p>
- <!-- /wp:paragraph -->
- </details>
- <!-- /wp:details -->
+ <!-- wp:separator {"style":{"spacing":{"margin":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"backgroundColor":"base","className":"is-style-wide"} -->
+ <hr class="wp-block-separator has-text-color has-base-color has-alpha-channel-opacity has-base-background-color has-background is-style-wide" style="margin-top:var(--wp--preset--spacing--30);margin-bottom:var(--wp--preset--spacing--30)"/>
+ <!-- /wp:separator -->
- <!-- wp:details {"style":{"spacing":{"margin":{"top":"0"}},"border":{"top":{"width":"0px","style":"none"},"right":{"width":"0px","style":"none"},"bottom":{"color":"var:preset|color|base","style":"solid","width":"1px"},"left":{"width":"0px","style":"none"}}},"className":"is-style-arrow-icon-details","fontSize":"medium"} -->
- <details class="wp-block-details is-style-arrow-icon-details has-medium-font-size" style="border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-color:var(--wp--preset--color--base);border-bottom-style:solid;border-bottom-width:1px;border-left-style:none;border-left-width:0px;margin-top:0">
- <summary><?php echo esc_html_x( 'I\'d like to get to meet fellow architects, how can I do that?', 'Question on the details block', 'twentytwentyfour' ); ?></summary>
- <!-- wp:paragraph {"placeholder":"Type / to add a hidden block","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast-1"}}}},"textColor":"contrast-1"} -->
- <p class="has-contrast-1-color has-text-color has-link-color"><?php echo esc_html_x( 'Études offers comprehensive consulting, management, design, and research solutions. Our vision is to be at the forefront of architectural innovation, fostering a global community of architects and enthusiasts united by a passion for creating spaces. Every architectural endeavor is an opportunity to shape the future.', 'Hidden answer on the details block', 'twentytwentyfour' ); ?></p>
- <!-- /wp:paragraph -->
- </details>
- <!-- /wp:details -->
+ <!-- wp:heading {"level":3,"align":"wide","style":{"elements":{"link":{"color":{"text":"var:preset|color|base-2"}}}},"textColor":"base-2"} -->
+ <h3 class="wp-block-heading alignwide has-base-2-color has-text-color has-link-color"><?php echo esc_html_x( 'I\'d like to get to meet fellow architects, how can I do that?', 'Question in the FAQ pattern', 'twentytwentyfour' ); ?></h3>
+ <!-- /wp:heading -->
+ <!-- wp:paragraph {"placeholder":"Type / to add a hidden block","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast-1"}}}},"textColor":"contrast-1"} -->
+ <p class="has-contrast-1-color has-text-color has-link-color"><?php echo esc_html_x( 'Études offers comprehensive consulting, management, design, and research solutions. Our vision is to be at the forefront of architectural innovation, fostering a global community of architects and enthusiasts united by a passion for creating spaces. Every architectural endeavor is an opportunity to shape the future.', 'Answer in the FAQ pattern', 'twentytwentyfour' ); ?></p>
+ <!-- /wp:paragraph -->
+
+ <!-- wp:separator {"style":{"spacing":{"margin":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"backgroundColor":"base","className":"is-style-wide"} -->
+ <hr class="wp-block-separator has-text-color has-base-color has-alpha-channel-opacity has-base-background-color has-background is-style-wide" style="margin-top:var(--wp--preset--spacing--30);margin-bottom:var(--wp--preset--spacing--30)"/>
+ <!-- /wp:separator -->
- <!-- wp:details {"style":{"spacing":{"margin":{"top":"0"}},"border":{"top":{"width":"0px","style":"none"},"right":{"width":"0px","style":"none"},"bottom":{"color":"var:preset|color|base","style":"solid","width":"1px"},"left":{"width":"0px","style":"none"}}},"className":"is-style-arrow-icon-details","fontSize":"medium"} -->
- <details class="wp-block-details is-style-arrow-icon-details has-medium-font-size" style="border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-color:var(--wp--preset--color--base);border-bottom-style:solid;border-bottom-width:1px;border-left-style:none;border-left-width:0px;margin-top:0">
- <summary><?php echo esc_html_x( 'Can I apply to be a part of the team or work as a contractor?', 'Question on the details block', 'twentytwentyfour' ); ?></summary>
- <!-- wp:paragraph {"placeholder":"Type / to add a hidden block","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast-1"}}}},"textColor":"contrast-1"} -->
- <p class="has-contrast-1-color has-text-color has-link-color"><?php echo esc_html_x( 'Études offers comprehensive consulting, management, design, and research solutions. Our vision is to be at the forefront of architectural innovation, fostering a global community of architects and enthusiasts united by a passion for creating spaces. Every architectural endeavor is an opportunity to shape the future.', 'Hidden answer on the details block', 'twentytwentyfour' ); ?></p>
- <!-- /wp:paragraph -->
- </details>
- <!-- /wp:details -->
+ <!-- wp:heading {"level":3,"align":"wide","style":{"elements":{"link":{"color":{"text":"var:preset|color|base-2"}}}},"textColor":"base-2"} -->
+ <h3 class="wp-block-heading alignwide has-base-2-color has-text-color has-link-color"><?php echo esc_html_x( 'Can I apply to be a part of the team or work as a contractor?', 'Question in the FAQ pattern', 'twentytwentyfour' ); ?></h3>
+ <!-- /wp:heading -->
+ <!-- wp:paragraph {"placeholder":"Type / to add a hidden block","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast-1"}}}},"textColor":"contrast-1"} -->
+ <p class="has-contrast-1-color has-text-color has-link-color"><?php echo esc_html_x( 'Études offers comprehensive consulting, management, design, and research solutions. Our vision is to be at the forefront of architectural innovation, fostering a global community of architects and enthusiasts united by a passion for creating spaces. Every architectural endeavor is an opportunity to shape the future.', 'Answer in the FAQ pattern', 'twentytwentyfour' ); ?></p>
+ <!-- /wp:paragraph -->
<!-- wp:spacer {"height":"var:preset|spacing|10","style":{"spacing":{"margin":{"top":"var:preset|spacing|10","bottom":"0"}}}} -->
<div style="margin-top:var(--wp--preset--spacing--10);margin-bottom:0;height:var(--wp--preset--spacing--10)" aria-hidden="true" class="wp-block-spacer"></div>
diff --git a/wp-content/themes/twentytwentyfour/patterns/text-feature-grid-3-col.php b/wp-content/themes/twentytwentyfour/patterns/text-feature-grid-3-col.php
index f03eaf3..03310f5 100644
--- a/wp-content/themes/twentytwentyfour/patterns/text-feature-grid-3-col.php
+++ b/wp-content/themes/twentytwentyfour/patterns/text-feature-grid-3-col.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/text-feature-grid-3-col
* Categories: text, about
* Viewport width: 1400
+ * Description: A feature grid of 2 rows and 3 columns with headings and text.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/text-project-details.php b/wp-content/themes/twentytwentyfour/patterns/text-project-details.php
index b75f869..a6a54c1 100644
--- a/wp-content/themes/twentytwentyfour/patterns/text-project-details.php
+++ b/wp-content/themes/twentytwentyfour/patterns/text-project-details.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/text-project-details
* Categories: text, portfolio
* Viewport width: 1400
+ * Description: A text only section for project details.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/patterns/text-title-left-image-right.php b/wp-content/themes/twentytwentyfour/patterns/text-title-left-image-right.php
index f4c48f7..cfcbf6d 100644
--- a/wp-content/themes/twentytwentyfour/patterns/text-title-left-image-right.php
+++ b/wp-content/themes/twentytwentyfour/patterns/text-title-left-image-right.php
@@ -4,6 +4,7 @@
* Slug: twentytwentyfour/text-title-left-image-right
* Categories: banner, about, featured
* Viewport width: 1400
+ * Description: A title, a paragraph and a CTA button on the left with an image on the right.
*/
?>
diff --git a/wp-content/themes/twentytwentyfour/readme.txt b/wp-content/themes/twentytwentyfour/readme.txt
index 50c9ff5..81a72a6 100644
--- a/wp-content/themes/twentytwentyfour/readme.txt
+++ b/wp-content/themes/twentytwentyfour/readme.txt
@@ -1,9 +1,9 @@
=== Twenty Twenty-Four ===
Contributors: wordpressdotorg
Requires at least: 6.4
-Tested up to: 6.5
+Tested up to: 6.6
Requires PHP: 7.0
-Stable tag: 1.1
+Stable tag: 1.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -13,6 +13,11 @@ Twenty Twenty-Four is designed to be flexible, versatile and applicable to any w
== Changelog ==
+= 1.2 =
+* Released: July 16, 2024
+
+https://wordpress.org/documentation/article/twenty-twenty-four-changelog/#Version_1.2
+
= 1.1 =
* Released: April 2, 2024
diff --git a/wp-content/themes/twentytwentyfour/screenshot.png b/wp-content/themes/twentytwentyfour/screenshot.png
index 74fa4c7..0bce237 100644
--- a/wp-content/themes/twentytwentyfour/screenshot.png
+++ b/wp-content/themes/twentytwentyfour/screenshot.png
Binary files differ
diff --git a/wp-content/themes/twentytwentyfour/style.css b/wp-content/themes/twentytwentyfour/style.css
index 75c9804..3fa6a6a 100644
--- a/wp-content/themes/twentytwentyfour/style.css
+++ b/wp-content/themes/twentytwentyfour/style.css
@@ -5,9 +5,9 @@ Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Four is designed to be flexible, versatile and applicable to any website. Its collection of templates and patterns tailor to different needs, such as presenting a business, blogging and writing or showcasing work. A multitude of possibilities open up with just a few adjustments to color and typography. Twenty Twenty-Four comes with style variations and full page designs to help speed up the site building process, is fully compatible with the site editor, and takes advantage of new design tools introduced in WordPress 6.4.
Requires at least: 6.4
-Tested up to: 6.5
+Tested up to: 6.6
Requires PHP: 7.0
-Version: 1.1
+Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfour
diff --git a/wp-content/themes/twentytwentyfour/templates/home.html b/wp-content/themes/twentytwentyfour/templates/home.html
index 7c364b8..196f82e 100644
--- a/wp-content/themes/twentytwentyfour/templates/home.html
+++ b/wp-content/themes/twentytwentyfour/templates/home.html
@@ -1 +1,9 @@
-<!-- wp:pattern {"slug":"twentytwentyfour/template-home-business"} /-->
+<!-- wp:template-part {"slug":"header","area":"header","tagName":"header"} /-->
+
+<!-- wp:group {"tagName":"main","style":{"spacing":{"blockGap":"0","margin":{"top":"0"}}},"layout":{"type":"default"}} -->
+<main class="wp-block-group" style="margin-top:0">
+ <!-- wp:pattern {"slug":"twentytwentyfour/page-home-business"} /-->
+</main>
+<!-- /wp:group -->
+
+<!-- wp:template-part {"slug":"footer","area":"footer","tagName":"footer"} /-->
diff --git a/wp-content/themes/twentytwentyfour/theme.json b/wp-content/themes/twentytwentyfour/theme.json
index fe6bd3b..134da28 100644
--- a/wp-content/themes/twentytwentyfour/theme.json
+++ b/wp-content/themes/twentytwentyfour/theme.json
@@ -1,5 +1,5 @@
{
- "$schema": "https://schemas.wp.org/trunk/theme.json",
+ "$schema": "https://schemas.wp.org/wp/6.5/theme.json",
"version": 2,
"patterns": [
"three-columns-of-services",
diff --git a/wp-content/themes/twentytwentythree/parts/header.html b/wp-content/themes/twentytwentythree/parts/header.html
index 8e4f17b..8a94130 100644
--- a/wp-content/themes/twentytwentythree/parts/header.html
+++ b/wp-content/themes/twentytwentythree/parts/header.html
@@ -3,7 +3,11 @@
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"var:preset|spacing|40"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
<div class="wp-block-group alignwide" style="padding-bottom:var(--wp--preset--spacing--40)">
<!-- wp:site-title {"level":0} /-->
- <!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"}} /-->
+ <!-- wp:group {"layout":{"type":"flex","flexWrap":"wrap","justifyContent":"left"}} -->
+ <div class="wp-block-group">
+ <!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"}} /-->
+ </div>
+ <!-- /wp:group -->
</div>
<!-- /wp:group -->
</div>
diff --git a/wp-content/themes/twentytwentythree/patterns/call-to-action.php b/wp-content/themes/twentytwentythree/patterns/call-to-action.php
index 119677d..1542790 100644
--- a/wp-content/themes/twentytwentythree/patterns/call-to-action.php
+++ b/wp-content/themes/twentytwentythree/patterns/call-to-action.php
@@ -5,6 +5,7 @@
* Categories: featured
* Keywords: Call to action
* Block Types: core/buttons
+ * Description: Left-aligned text with a CTA button and a separator.
*/
?>
<!-- wp:columns {"align":"wide"} -->
diff --git a/wp-content/themes/twentytwentythree/patterns/footer-default.php b/wp-content/themes/twentytwentythree/patterns/footer-default.php
index d197bf5..e382724 100644
--- a/wp-content/themes/twentytwentythree/patterns/footer-default.php
+++ b/wp-content/themes/twentytwentythree/patterns/footer-default.php
@@ -4,6 +4,7 @@
* Slug: twentytwentythree/footer-default
* Categories: footer
* Block Types: core/template-part/footer
+ * Description: Footer with site title and powered by WordPress.
*/
?>
<!-- wp:group {"layout":{"type":"constrained"}} -->
diff --git a/wp-content/themes/twentytwentythree/patterns/post-meta.php b/wp-content/themes/twentytwentythree/patterns/post-meta.php
index b704064..a1a9226 100644
--- a/wp-content/themes/twentytwentythree/patterns/post-meta.php
+++ b/wp-content/themes/twentytwentythree/patterns/post-meta.php
@@ -5,6 +5,7 @@
* Categories: query
* Keywords: post meta
* Block Types: core/template-part/post-meta
+ * Description: Post meta information with separator on the top.
*/
?>
<!-- wp:spacer {"height":"0"} -->
diff --git a/wp-content/themes/twentytwentythree/readme.txt b/wp-content/themes/twentytwentythree/readme.txt
index c845ea5..3eef248 100644
--- a/wp-content/themes/twentytwentythree/readme.txt
+++ b/wp-content/themes/twentytwentythree/readme.txt
@@ -1,9 +1,9 @@
=== Twenty Twenty-Three ===
Contributors: wordpressdotorg
Requires at least: 6.1
-Tested up to: 6.5
+Tested up to: 6.6
Requires PHP: 5.6
-Stable tag: 1.4
+Stable tag: 1.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -15,6 +15,11 @@ Whether you want to build a complex or incredibly simple website, you can do it
== Changelog ==
+= 1.5 =
+* Released: July 16, 2024
+
+https://wordpress.org/documentation/article/twenty-twenty-three-changelog/#Version_1.5
+
= 1.4 =
* Released: April 2, 2024
diff --git a/wp-content/themes/twentytwentythree/screenshot.png b/wp-content/themes/twentytwentythree/screenshot.png
index dee93e4..417d979 100644
--- a/wp-content/themes/twentytwentythree/screenshot.png
+++ b/wp-content/themes/twentytwentythree/screenshot.png
Binary files differ
diff --git a/wp-content/themes/twentytwentythree/style.css b/wp-content/themes/twentytwentythree/style.css
index 273c757..94a23fc 100644
--- a/wp-content/themes/twentytwentythree/style.css
+++ b/wp-content/themes/twentytwentythree/style.css
@@ -5,9 +5,9 @@ Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Three is designed to take advantage of the new design tools introduced in WordPress 6.1. With a clean, blank base as a starting point, this default theme includes ten diverse style variations created by members of the WordPress community. Whether you want to build a complex or incredibly simple website, you can do it quickly and intuitively through the bundled styles or dive into creation and full customization yourself.
Requires at least: 6.1
-Tested up to: 6.5
+Tested up to: 6.6
Requires PHP: 5.6
-Version: 1.4
+Version: 1.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: twentytwentythree
diff --git a/wp-content/themes/twentytwentythree/styles/aubergine.json b/wp-content/themes/twentytwentythree/styles/aubergine.json
index 235b04b2..485eaf5 100644
--- a/wp-content/themes/twentytwentythree/styles/aubergine.json
+++ b/wp-content/themes/twentytwentythree/styles/aubergine.json
@@ -11,7 +11,7 @@
"slug": "secondary-base"
},
{
- "gradient": "linear-gradient(180deg, var(--wp--preset--color--base) 0 min(24rem, 10%), var(--wp--preset--color--secondary) 0% 30%, var(--wp--preset--color--base) 100%)",
+ "gradient": "linear-gradient(180deg, var(--wp--preset--color--base) 0 clamp(10vh, 24rem, 14vh), var(--wp--preset--color--secondary) 0% 30%, var(--wp--preset--color--base) 100%)",
"name": "Base to Secondary to Base",
"slug": "base-secondary-base"
},
diff --git a/wp-content/themes/twentytwentythree/templates/archive.html b/wp-content/themes/twentytwentythree/templates/archive.html
index 74a8a5c..c09d1b9 100644
--- a/wp-content/themes/twentytwentythree/templates/archive.html
+++ b/wp-content/themes/twentytwentythree/templates/archive.html
@@ -18,8 +18,8 @@
<!-- /wp:post-template -->
<!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
- <!-- wp:query-pagination-previous {"label":"Newer Posts"} /-->
- <!-- wp:query-pagination-next {"label":"Older Posts"} /-->
+ <!-- wp:query-pagination-previous /-->
+ <!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination -->
</div>
<!-- /wp:query -->
diff --git a/wp-content/themes/twentytwentythree/templates/home.html b/wp-content/themes/twentytwentythree/templates/home.html
index 9b84d2b..23fc5cf 100644
--- a/wp-content/themes/twentytwentythree/templates/home.html
+++ b/wp-content/themes/twentytwentythree/templates/home.html
@@ -20,8 +20,8 @@
<!-- /wp:post-template -->
<!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
- <!-- wp:query-pagination-previous {"label":"Newer Posts"} /-->
- <!-- wp:query-pagination-next {"label":"Older Posts"} /-->
+ <!-- wp:query-pagination-previous /-->
+ <!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination -->
</div>
<!-- /wp:query -->
diff --git a/wp-content/themes/twentytwentythree/templates/search.html b/wp-content/themes/twentytwentythree/templates/search.html
index c80325d..53ec6ba 100644
--- a/wp-content/themes/twentytwentythree/templates/search.html
+++ b/wp-content/themes/twentytwentythree/templates/search.html
@@ -18,8 +18,8 @@
<!-- /wp:post-template -->
<!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
- <!-- wp:query-pagination-previous {"label":"Newer Posts"} /-->
- <!-- wp:query-pagination-next {"label":"Older Posts"} /-->
+ <!-- wp:query-pagination-previous /-->
+ <!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination -->
<!-- wp:query-no-results -->
diff --git a/wp-content/themes/twentytwentythree/theme.json b/wp-content/themes/twentytwentythree/theme.json
index 32eb7ed..4ac5ac8 100644
--- a/wp-content/themes/twentytwentythree/theme.json
+++ b/wp-content/themes/twentytwentythree/theme.json
@@ -1,5 +1,5 @@
{
- "$schema": "https://schemas.wp.org/trunk/theme.json",
+ "$schema": "https://schemas.wp.org/wp/6.5/theme.json",
"version": 2,
"customTemplates": [
{
diff --git a/wp-content/themes/twentytwentytwo/parts/header.html b/wp-content/themes/twentytwentytwo/parts/header.html
index 27568c1..9d0a314 100644
--- a/wp-content/themes/twentytwentytwo/parts/header.html
+++ b/wp-content/themes/twentytwentytwo/parts/header.html
@@ -5,9 +5,11 @@
<!-- wp:site-title /--></div>
<!-- /wp:group -->
-
+<!-- wp:group {"layout":{"type":"flex","flexWrap":"wrap","justifyContent":"left"}} -->
+<div class="wp-block-group">
<!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"}} -->
<!-- wp:page-list {"isNavigationChild":true,"showSubmenuIcon":true,"openSubmenusOnClick":false} /-->
<!-- /wp:navigation --></div>
<!-- /wp:group --></div>
+<!-- /wp:group --></div>
<!-- /wp:group --> \ No newline at end of file
diff --git a/wp-content/themes/twentytwentytwo/readme.txt b/wp-content/themes/twentytwentytwo/readme.txt
index 61bbb8f..74e6092 100644
--- a/wp-content/themes/twentytwentytwo/readme.txt
+++ b/wp-content/themes/twentytwentytwo/readme.txt
@@ -1,9 +1,9 @@
=== Twenty Twenty-Two ===
Contributors: wordpressdotorg
Requires at least: 5.9
-Tested up to: 6.5
+Tested up to: 6.6
Requires PHP: 5.6
-Stable tag: 1.7
+Stable tag: 1.8
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -17,6 +17,11 @@ Whether you’re building a single-page website, a blog, a business website, or
== Changelog ==
+= 1.8 =
+* Released: July 16, 2024
+
+https://wordpress.org/documentation/article/twenty-twenty-two-changelog/#Version_1.8
+
= 1.7 =
* Released: April 2, 2024
diff --git a/wp-content/themes/twentytwentytwo/style.css b/wp-content/themes/twentytwentytwo/style.css
index e1e26e9..3b41660 100644
--- a/wp-content/themes/twentytwentytwo/style.css
+++ b/wp-content/themes/twentytwentytwo/style.css
@@ -5,9 +5,9 @@ Author: the WordPress team
Author URI: https://wordpress.org/
Description: Built on a solidly designed foundation, Twenty Twenty-Two embraces the idea that everyone deserves a truly unique website. The theme’s subtle styles are inspired by the diversity and versatility of birds: its typography is lightweight yet strong, its color palette is drawn from nature, and its layout elements sit gently on the page. The true richness of Twenty Twenty-Two lies in its opportunity for customization. The theme is built to take advantage of the Site Editor features introduced in WordPress 5.9, which means that colors, typography, and the layout of every single page on your site can be customized to suit your vision. It also includes dozens of block patterns, opening the door to a wide range of professionally designed layouts in just a few clicks. Whether you’re building a single-page website, a blog, a business website, or a portfolio, Twenty Twenty-Two will help you create a site that is uniquely yours.
Requires at least: 5.9
-Tested up to: 6.5
+Tested up to: 6.6
Requires PHP: 5.6
-Version: 1.7
+Version: 1.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentytwo
diff --git a/wp-content/themes/twentytwentytwo/theme.json b/wp-content/themes/twentytwentytwo/theme.json
index ec9ff86..da4e623 100644
--- a/wp-content/themes/twentytwentytwo/theme.json
+++ b/wp-content/themes/twentytwentytwo/theme.json
@@ -1,5 +1,5 @@
{
- "$schema": "https://schemas.wp.org/trunk/theme.json",
+ "$schema": "https://schemas.wp.org/wp/6.5/theme.json",
"version": 2,
"customTemplates": [
{
diff --git a/wp-includes/Requests/src/Cookie.php b/wp-includes/Requests/src/Cookie.php
index 6f971d6..2cc821d 100644
--- a/wp-includes/Requests/src/Cookie.php
+++ b/wp-includes/Requests/src/Cookie.php
@@ -470,13 +470,19 @@ class Cookie {
* @param \WpOrg\Requests\Iri|null $origin URI for comparing cookie origins
* @param int|null $time Reference time for expiration calculation
* @return array
+ *
+ * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $origin argument is not null or an instance of the Iri class.
*/
- public static function parse_from_headers(Headers $headers, Iri $origin = null, $time = null) {
+ public static function parse_from_headers(Headers $headers, $origin = null, $time = null) {
$cookie_headers = $headers->getValues('Set-Cookie');
if (empty($cookie_headers)) {
return [];
}
+ if ($origin !== null && !($origin instanceof Iri)) {
+ throw InvalidArgument::create(2, '$origin', Iri::class . ' or null', gettype($origin));
+ }
+
$cookies = [];
foreach ($cookie_headers as $header) {
$parsed = self::parse($header, '', $time);
diff --git a/wp-includes/Requests/src/Requests.php b/wp-includes/Requests/src/Requests.php
index bb5292a..5c6f13e 100644
--- a/wp-includes/Requests/src/Requests.php
+++ b/wp-includes/Requests/src/Requests.php
@@ -148,7 +148,7 @@ class Requests {
*
* @var string
*/
- const VERSION = '2.0.9';
+ const VERSION = '2.0.11';
/**
* Selected transport name
diff --git a/wp-includes/Requests/src/Transport/Fsockopen.php b/wp-includes/Requests/src/Transport/Fsockopen.php
index 2b53d0c..6bd82a3 100644
--- a/wp-includes/Requests/src/Transport/Fsockopen.php
+++ b/wp-includes/Requests/src/Transport/Fsockopen.php
@@ -144,7 +144,15 @@ final class Fsockopen implements Transport {
$verifyname = false;
}
- stream_context_set_option($context, ['ssl' => $context_options]);
+ // Handle the PHP 8.4 deprecation (PHP 9.0 removal) of the function signature we use for stream_context_set_option().
+ // Ref: https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures#stream_context_set_option
+ if (function_exists('stream_context_set_options')) {
+ // PHP 8.3+.
+ stream_context_set_options($context, ['ssl' => $context_options]);
+ } else {
+ // PHP < 8.3.
+ stream_context_set_option($context, ['ssl' => $context_options]);
+ }
} else {
$remote_socket = 'tcp://' . $host;
}
diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php
index d709de1..39c8a0e 100644
--- a/wp-includes/admin-bar.php
+++ b/wp-includes/admin-bar.php
@@ -417,7 +417,7 @@ function wp_admin_bar_site_menu( $wp_admin_bar ) {
array(
'parent' => 'site-name',
'id' => 'edit-site',
- 'title' => __( 'Edit Site' ),
+ 'title' => __( 'Manage Site' ),
'href' => network_admin_url( 'site-info.php?id=' . get_current_blog_id() ),
)
);
@@ -455,6 +455,7 @@ function wp_admin_bar_site_menu( $wp_admin_bar ) {
*
* @since 5.9.0
* @since 6.3.0 Added `$_wp_current_template_id` global for editing of current template directly from the admin bar.
+ * @since 6.6.0 Added the `canvas` query arg to the Site Editor link.
*
* @global string $_wp_current_template_id
*
@@ -481,6 +482,7 @@ function wp_admin_bar_edit_site_menu( $wp_admin_bar ) {
array(
'postType' => 'wp_template',
'postId' => $_wp_current_template_id,
+ 'canvas' => 'edit',
),
admin_url( 'site-editor.php' )
),
diff --git a/wp-includes/assets/script-loader-packages.min.php b/wp-includes/assets/script-loader-packages.min.php
index b50b9f9..c39418a 100644
--- a/wp-includes/assets/script-loader-packages.min.php
+++ b/wp-includes/assets/script-loader-packages.min.php
@@ -1 +1 @@
-<?php return array('a11y.min.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'd90eebea464f6c09bfd5'), 'annotations.min.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'ffc4fc3374b0ab000805'), 'api-fetch.min.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '4c185334c5ec26e149cc'), 'autop.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '9fb50649848277dd318d'), 'blob.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '9113eed771d446f4a556'), 'block-directory.min.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => '9159053f41b8ec09d91b'), 'block-editor.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '868d782fcb169133c92b'), 'block-library.min.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-patterns', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => 'd124c0efe2b7eb5bf914'), 'block-serialization-default-parser.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '14d44daebf663d05d330'), 'blocks.min.js' => array('dependencies' => array('react', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode'), 'version' => '6612d078dfaf28b875b8'), 'commands.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-polyfill', 'wp-primitives', 'wp-private-apis'), 'version' => 'e4060e55811e7824feb9'), 'components.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => 'c4b2ef1c62202e4e2d1e'), 'compose.min.js' => array('dependencies' => array('react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '1339d3318cd44440dccb'), 'core-commands.min.js' => array('dependencies' => array('react', 'wp-commands', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '4ee9c423b71a59459ca6'), 'core-data.min.js' => array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-rich-text', 'wp-url'), 'version' => 'ff4b03fefe97d027b7fd'), 'customize-widgets.min.js' => array('dependencies' => array('react', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => '137692724827d41c9fb5'), 'data.min.js' => array('dependencies' => array('react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => 'e6595ba1a7cd34429f66'), 'data-controls.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => '49f5587e8b90f9e7cc7e'), 'date.min.js' => array('dependencies' => array('moment', 'wp-deprecated', 'wp-polyfill'), 'version' => 'aaca6387d1cf924acc51'), 'deprecated.min.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'e1f84915c5e8ae38964c'), 'dom.min.js' => array('dependencies' => array('wp-deprecated', 'wp-polyfill'), 'version' => '4ecffbffba91b10c5c7a'), 'dom-ready.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f77871ff7694fffea381'), 'edit-post.min.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-widgets'), 'version' => '56343a8764383c7af560'), 'edit-site.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-router', 'wp-url', 'wp-viewport', 'wp-widgets', 'wp-wordcount'), 'version' => '5a330f801e7e3583faa8'), 'edit-widgets.min.js' => array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '96a3b30b85133de96871'), 'editor.min.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '6497dd814badef65e728'), 'element.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'cb762d190aebbec25b27'), 'escape-html.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6561a406d2d232a6fbd2'), 'format-library.min.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-url'), 'version' => '66ea4e17a9a3f539c9d5'), 'hooks.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '2810c76e705dd1a53b18'), 'html-entities.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '2cd3358363e0675638fb'), 'i18n.min.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '5e580eb46a90c2b997e6'), 'is-shallow-equal.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e0f9f1d78d83f5196979'), 'keyboard-shortcuts.min.js' => array('dependencies' => array('react', 'wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '4d239ebc17efd846a168'), 'keycodes.min.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '034ff647a54b018581d3'), 'list-reusable-blocks.min.js' => array('dependencies' => array('react', 'wp-api-fetch', 'wp-blob', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'b9d73b532124daefd2c7'), 'media-utils.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '1cf582d3c080c8694c8c'), 'notices.min.js' => array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => '673a68a7ac2f556ed50b'), 'nux.min.js' => array('dependencies' => array('react', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '46c93a71c3e2c2bf37f0'), 'patterns.min.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => 'ee72aaa0806b06909b48'), 'plugins.min.js' => array('dependencies' => array('react', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives'), 'version' => '2d369cbfdcb887111e06'), 'preferences.min.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis'), 'version' => 'e1544c6f06a9639c4c31'), 'preferences-persistence.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '3f5184d775ed9dfb154f'), 'primitives.min.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'a41bfd5835f583ae838a'), 'priority-queue.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '9c21c957c7e50ffdbf48'), 'private-apis.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5e7fdf55d04b8c2aadef'), 'redux-routine.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b14553dce2bee5c0f064'), 'reusable-blocks.min.js' => array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => '008366ba172a4f4b92b4'), 'rich-text.min.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => 'dd125966cf6cc0394ae0'), 'router.min.js' => array('dependencies' => array('react', 'wp-element', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '92fd517f31b92695552a'), 'server-side-render.min.js' => array('dependencies' => array('react', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '04ce502cc4eef9b49ce7'), 'shortcode.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b7747eee0efafd2f0c3b'), 'style-engine.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '03f13c515060de24b556'), 'token-list.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '05f8a6df6258f0081718'), 'undo-manager.min.js' => array('dependencies' => array('wp-is-shallow-equal', 'wp-polyfill'), 'version' => 'f0698003cb0f0a7bd794'), 'url.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '421139b01f33e5b327d8'), 'viewport.min.js' => array('dependencies' => array('react', 'wp-compose', 'wp-data', 'wp-polyfill'), 'version' => 'e555fda1d93ecf1fb1e0'), 'warning.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'ed7c8b0940914f4fe44b'), 'widgets.min.js' => array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '4c7bfc488be9e26d6488'), 'wordcount.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '55d8c2bf3dc99e7ea5ec'));
+<?php return array('a11y.min.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n'), 'version' => 'd90eebea464f6c09bfd5'), 'annotations.min.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-rich-text'), 'version' => '238360e96c76d37a2468'), 'api-fetch.min.js' => array('dependencies' => array('wp-i18n', 'wp-url'), 'version' => '4c185334c5ec26e149cc'), 'autop.min.js' => array('dependencies' => array(), 'version' => '9fb50649848277dd318d'), 'blob.min.js' => array('dependencies' => array(), 'version' => '9113eed771d446f4a556'), 'block-directory.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => '286a70e45f3a8522a72a'), 'block-editor.min.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => 'f989eae66982c6c90d6e'), 'block-library.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-patterns', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '96b614e020e4ab48838d'), 'block-serialization-default-parser.min.js' => array('dependencies' => array(), 'version' => '14d44daebf663d05d330'), 'blocks.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode'), 'version' => '0d232d232463200f5cfd'), 'commands.min.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-primitives', 'wp-private-apis'), 'version' => '73d702f6367f60b06d89'), 'components.min.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => '36b97398bf090476214e'), 'compose.min.js' => array('dependencies' => array('react', 'react-jsx-runtime', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-priority-queue'), 'version' => 'b8d54449305350b51869'), 'core-commands.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-commands', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => 'c81574a3c95e631df2a9'), 'core-data.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-private-apis', 'wp-rich-text', 'wp-url'), 'version' => '07feee0ca98b13ab617d'), 'customize-widgets.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => '9b7db92a95af0a39ae98'), 'data.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => '7c62e39de0308c73d50c'), 'data-controls.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated'), 'version' => '49f5587e8b90f9e7cc7e'), 'date.min.js' => array('dependencies' => array('moment', 'wp-deprecated'), 'version' => 'aaca6387d1cf924acc51'), 'deprecated.min.js' => array('dependencies' => array('wp-hooks'), 'version' => 'e1f84915c5e8ae38964c'), 'dom.min.js' => array('dependencies' => array('wp-deprecated'), 'version' => '4ecffbffba91b10c5c7a'), 'dom-ready.min.js' => array('dependencies' => array(), 'version' => 'f77871ff7694fffea381'), 'edit-post.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-widgets'), 'version' => 'bf7b57a061aad9bf9020'), 'edit-site.min.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-priority-queue', 'wp-private-apis', 'wp-router', 'wp-url', 'wp-widgets'), 'version' => '908b9738a38cdf931130'), 'edit-widgets.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '974884730aac247c3a3e'), 'editor.min.js' => array('dependencies' => array('react', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-wordcount'), 'version' => '8607251058f984a77c8f'), 'element.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html'), 'version' => 'cb762d190aebbec25b27'), 'escape-html.min.js' => array('dependencies' => array(), 'version' => '6561a406d2d232a6fbd2'), 'format-library.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-url'), 'version' => 'e3618e6d17a1146f03e4'), 'hooks.min.js' => array('dependencies' => array(), 'version' => '2810c76e705dd1a53b18'), 'html-entities.min.js' => array('dependencies' => array(), 'version' => '2cd3358363e0675638fb'), 'i18n.min.js' => array('dependencies' => array('wp-hooks'), 'version' => '5e580eb46a90c2b997e6'), 'is-shallow-equal.min.js' => array('dependencies' => array(), 'version' => 'e0f9f1d78d83f5196979'), 'keyboard-shortcuts.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-data', 'wp-element', 'wp-keycodes'), 'version' => '32686e58e84193ce808b'), 'keycodes.min.js' => array('dependencies' => array('wp-i18n'), 'version' => '034ff647a54b018581d3'), 'list-reusable-blocks.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-blob', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n'), 'version' => '0eaedbf902a3af0eee37'), 'media-utils.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n'), 'version' => '1cf582d3c080c8694c8c'), 'notices.min.js' => array('dependencies' => array('wp-data'), 'version' => '673a68a7ac2f556ed50b'), 'nux.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'b8f02a77b1489668fb50'), 'patterns.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => '74acf014a3907af88267'), 'plugins.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-primitives'), 'version' => 'ef6da4a9b2747b62c09c'), 'preferences.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-private-apis'), 'version' => 'e7b06b8f8bdd714600e9'), 'preferences-persistence.min.js' => array('dependencies' => array('wp-api-fetch'), 'version' => '9307a8c9e3254140a223'), 'primitives.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-element'), 'version' => 'aef2543ab60c8c9bb609'), 'priority-queue.min.js' => array('dependencies' => array(), 'version' => '9c21c957c7e50ffdbf48'), 'private-apis.min.js' => array('dependencies' => array(), 'version' => '17a2e640b653d742da6e'), 'redux-routine.min.js' => array('dependencies' => array(), 'version' => 'a0a172871afaeb261566'), 'reusable-blocks.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => '5c420cb83017d586169a'), 'rich-text.min.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes'), 'version' => '4021b9e4e9ef4d3cd868'), 'router.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-element', 'wp-private-apis', 'wp-url'), 'version' => 'e4887fecc16ef03e908f'), 'server-side-render.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '1e0f25c205ebeb30bcd2'), 'shortcode.min.js' => array('dependencies' => array(), 'version' => 'b7747eee0efafd2f0c3b'), 'style-engine.min.js' => array('dependencies' => array(), 'version' => '86ba6721a03e5b921dfe'), 'token-list.min.js' => array('dependencies' => array(), 'version' => '05f8a6df6258f0081718'), 'undo-manager.min.js' => array('dependencies' => array('wp-is-shallow-equal'), 'version' => 'f0698003cb0f0a7bd794'), 'url.min.js' => array('dependencies' => array(), 'version' => '36ae0e4dd9043bb8749b'), 'viewport.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-data'), 'version' => '829c9a30d366e1e5054c'), 'warning.min.js' => array('dependencies' => array(), 'version' => 'ed7c8b0940914f4fe44b'), 'widgets.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives'), 'version' => '53f9d5d5df6f21e39834'), 'wordcount.min.js' => array('dependencies' => array(), 'version' => '55d8c2bf3dc99e7ea5ec'));
diff --git a/wp-includes/assets/script-loader-packages.php b/wp-includes/assets/script-loader-packages.php
index ecf0f58..7f6431e 100644
--- a/wp-includes/assets/script-loader-packages.php
+++ b/wp-includes/assets/script-loader-packages.php
@@ -1 +1 @@
-<?php return array('a11y.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'e4f0f9508f80ce638f3d'), 'annotations.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'c136c5f6e2a48de059bb'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'eb5e80d6477f0bc94063'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5f6a2604c6641fff16b1'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => '80e277c58e09d6b7e47b'), 'block-directory.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => '209d97720556b43a7657'), 'block-editor.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => 'cf9655a2e901e5354782'), 'block-library.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-patterns', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => 'd5a0be9af25610c04444'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '1d1bef54e84a98f3efb9'), 'blocks.js' => array('dependencies' => array('react', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode'), 'version' => '1cdc1594170000ce87b5'), 'commands.js' => array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-polyfill', 'wp-primitives', 'wp-private-apis'), 'version' => '27b86e4aeb0b50354c31'), 'components.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => 'fd3882637f2f48054bd3'), 'compose.js' => array('dependencies' => array('react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '26d30733522e03eb136b'), 'core-commands.js' => array('dependencies' => array('react', 'wp-commands', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '62e17505b49f6c5f07de'), 'core-data.js' => array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-rich-text', 'wp-url'), 'version' => 'a0865df67c20b77269ba'), 'customize-widgets.js' => array('dependencies' => array('react', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => 'cbc5b5252cd0e7ed0fe9'), 'data.js' => array('dependencies' => array('react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => 'f32512eb1197234b3023'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => '06af18ace9a4aeb126e9'), 'date.js' => array('dependencies' => array('moment', 'wp-deprecated', 'wp-polyfill'), 'version' => 'dd508f9121b7db4da62d'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '1aa7a2722e5853bb3a37'), 'dom.js' => array('dependencies' => array('wp-deprecated', 'wp-polyfill'), 'version' => '0f3d03e15247ad13ae5f'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5b9fa8df0892dc9a7c41'), 'edit-post.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-widgets'), 'version' => '5fb6406633137d60070c'), 'edit-site.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-router', 'wp-url', 'wp-viewport', 'wp-widgets', 'wp-wordcount'), 'version' => '24f5843875e12e83a4ff'), 'edit-widgets.js' => array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '23a493f9632cfb0e053f'), 'editor.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => 'a49c9bfd0070c49a3a53'), 'element.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'c577659ff26c570d2a90'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6f9dc571b7e633ab5cbb'), 'format-library.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-url'), 'version' => 'ebbf484376382a0eeb31'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => '2e6d63e772894a800ba8'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '62cf41703df6e2ca5d99'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '2aff907006e2aa00e26e'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e70dad7478a6d81b381b'), 'keyboard-shortcuts.js' => array('dependencies' => array('react', 'wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '7587027656d32413e40f'), 'keycodes.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => 'bdac64cae9b64d2585cf'), 'list-reusable-blocks.js' => array('dependencies' => array('react', 'wp-api-fetch', 'wp-blob', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'ec798cf371656a653e30'), 'media-utils.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '53965ea93ce50bae2cfe'), 'notices.js' => array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => 'bb4dbe982e6a0739f30e'), 'nux.js' => array('dependencies' => array('react', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'dd10494e806aeb6eec56'), 'patterns.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => '9690971c7186889b0866'), 'plugins.js' => array('dependencies' => array('react', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives'), 'version' => '0dd2604d62f853fd21af'), 'preferences.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis'), 'version' => 'c7db68394abefb140261'), 'preferences-persistence.js' => array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '83944af7a2948c080ade'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '1ed6f4c180042c213439'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0ac29e2c7d9453425a64'), 'private-apis.js' => array('dependencies' => array('wp-polyfill'), 'version' => '29e3213b61725f319df2'), 'redux-routine.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4bdc61ccdb5bc3ee2797'), 'reusable-blocks.js' => array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => '63a91ba189f1153db074'), 'rich-text.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => 'a1ca7da0915d540c4afa'), 'router.js' => array('dependencies' => array('react', 'wp-element', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '24ab4c66bbafbf045980'), 'server-side-render.js' => array('dependencies' => array('react', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '6526ab69ac6cf7429453'), 'shortcode.js' => array('dependencies' => array('wp-polyfill'), 'version' => '577c74513f927a05a979'), 'style-engine.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c68ace0b6b90cb4df22b'), 'token-list.js' => array('dependencies' => array('wp-polyfill'), 'version' => '9fb6d95fd24788d0ac39'), 'undo-manager.js' => array('dependencies' => array('wp-is-shallow-equal', 'wp-polyfill'), 'version' => '131d70acce3788278416'), 'url.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f943a48db99be5ac9628'), 'viewport.js' => array('dependencies' => array('react', 'wp-compose', 'wp-data', 'wp-polyfill'), 'version' => 'e311816805c0e934f485'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4ed38eab9265c3cf0e08'), 'widgets.js' => array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '8f2a3dc9d192c501ace8'), 'wordcount.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c67f865e3ce4abde9fdb'));
+<?php return array('a11y.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n'), 'version' => 'e4f0f9508f80ce638f3d'), 'annotations.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-rich-text'), 'version' => '471e036ab9d70fb8aae4'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-url'), 'version' => 'eb5e80d6477f0bc94063'), 'autop.js' => array('dependencies' => array(), 'version' => '5f6a2604c6641fff16b1'), 'blob.js' => array('dependencies' => array(), 'version' => '80e277c58e09d6b7e47b'), 'block-directory.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => '7244cefbbd6ad7ab589f'), 'block-editor.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '2cb36d67922bfdc27a1d'), 'block-library.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-patterns', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '445b71117cb841894281'), 'block-serialization-default-parser.js' => array('dependencies' => array(), 'version' => '1d1bef54e84a98f3efb9'), 'blocks.js' => array('dependencies' => array('react-jsx-runtime', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode'), 'version' => 'e7ff9693ca4887018781'), 'commands.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-primitives', 'wp-private-apis'), 'version' => '31f33f4975f0bcc7a875'), 'components.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => '54eab95952fe254d64e9'), 'compose.js' => array('dependencies' => array('react', 'react-jsx-runtime', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-priority-queue'), 'version' => '5da03170a54cb446b827'), 'core-commands.js' => array('dependencies' => array('react-jsx-runtime', 'wp-commands', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '4274d6a112ab08474f3d'), 'core-data.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-private-apis', 'wp-rich-text', 'wp-url'), 'version' => '1b304f4025915ff3c84b'), 'customize-widgets.js' => array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => '5e7c31fe6bae342bf481'), 'data.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => '6f178ef23ef546c51cae'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated'), 'version' => '06af18ace9a4aeb126e9'), 'date.js' => array('dependencies' => array('moment', 'wp-deprecated'), 'version' => 'dd508f9121b7db4da62d'), 'deprecated.js' => array('dependencies' => array('wp-hooks'), 'version' => '1aa7a2722e5853bb3a37'), 'dom.js' => array('dependencies' => array('wp-deprecated'), 'version' => '3535f9fef866398881eb'), 'dom-ready.js' => array('dependencies' => array(), 'version' => '5b9fa8df0892dc9a7c41'), 'edit-post.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-widgets'), 'version' => '31dde9e0afebadcf425c'), 'edit-site.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-priority-queue', 'wp-private-apis', 'wp-router', 'wp-url', 'wp-widgets'), 'version' => 'be992a2a06c05b011294'), 'edit-widgets.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => 'fd891dd8acc79192c86b'), 'editor.js' => array('dependencies' => array('react', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-wordcount'), 'version' => 'e15506639990b108fc28'), 'element.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html'), 'version' => 'd7780f15e252c57e8726'), 'escape-html.js' => array('dependencies' => array(), 'version' => '6f9dc571b7e633ab5cbb'), 'format-library.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-url'), 'version' => '0fb3f26ba6bccdb9fe98'), 'hooks.js' => array('dependencies' => array(), 'version' => '2e6d63e772894a800ba8'), 'html-entities.js' => array('dependencies' => array(), 'version' => '0d1913e5b8fb9137bad2'), 'i18n.js' => array('dependencies' => array('wp-hooks'), 'version' => '2aff907006e2aa00e26e'), 'is-shallow-equal.js' => array('dependencies' => array(), 'version' => 'e70dad7478a6d81b381b'), 'keyboard-shortcuts.js' => array('dependencies' => array('react-jsx-runtime', 'wp-data', 'wp-element', 'wp-keycodes'), 'version' => '3c4007037248f1a54578'), 'keycodes.js' => array('dependencies' => array('wp-i18n'), 'version' => 'bdac64cae9b64d2585cf'), 'list-reusable-blocks.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-blob', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n'), 'version' => 'fa94f059386d5b308d24'), 'media-utils.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n'), 'version' => '53965ea93ce50bae2cfe'), 'notices.js' => array('dependencies' => array('wp-data'), 'version' => 'bb4dbe982e6a0739f30e'), 'nux.js' => array('dependencies' => array('react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '144fc42853cf8ebbde91'), 'patterns.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => 'd5e34abedadac889e404'), 'plugins.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-primitives'), 'version' => 'cd5358b6369eff6f7b85'), 'preferences.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-private-apis'), 'version' => 'ee011cd455649dac4293'), 'preferences-persistence.js' => array('dependencies' => array('wp-api-fetch'), 'version' => '2a0eed407631381ede85'), 'primitives.js' => array('dependencies' => array('react-jsx-runtime', 'wp-element'), 'version' => 'b0b42d3e72e5c4ecd741'), 'priority-queue.js' => array('dependencies' => array(), 'version' => '0ac29e2c7d9453425a64'), 'private-apis.js' => array('dependencies' => array(), 'version' => '53100b466d825a8b9022'), 'redux-routine.js' => array('dependencies' => array(), 'version' => '5f3792bc38d48a9d5db7'), 'reusable-blocks.js' => array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => 'ef3a04afbb3359be59b6'), 'rich-text.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes'), 'version' => '9988fecf32c29c7254e1'), 'router.js' => array('dependencies' => array('react-jsx-runtime', 'wp-element', 'wp-private-apis', 'wp-url'), 'version' => 'bce4a12305810093635e'), 'server-side-render.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '3dce81021856a751c1dd'), 'shortcode.js' => array('dependencies' => array(), 'version' => '577c74513f927a05a979'), 'style-engine.js' => array('dependencies' => array(), 'version' => 'bbed01376e4e96b0ec48'), 'token-list.js' => array('dependencies' => array(), 'version' => '9fb6d95fd24788d0ac39'), 'undo-manager.js' => array('dependencies' => array('wp-is-shallow-equal'), 'version' => '131d70acce3788278416'), 'url.js' => array('dependencies' => array(), 'version' => 'bfd40019fbc498d38067'), 'viewport.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-data'), 'version' => 'c65a5cb114e86d027c76'), 'warning.js' => array('dependencies' => array(), 'version' => '6d61a5e89d39a08460ef'), 'widgets.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives'), 'version' => '17c11e266dfab2bbcc8b'), 'wordcount.js' => array('dependencies' => array(), 'version' => 'c67f865e3ce4abde9fdb'));
diff --git a/wp-includes/block-bindings.php b/wp-includes/block-bindings.php
index cee00e2..ff8db5f 100644
--- a/wp-includes/block-bindings.php
+++ b/wp-includes/block-bindings.php
@@ -75,19 +75,19 @@
* @param array $source_properties {
* The array of arguments that are used to register a source.
*
- * @type string $label The label of the source.
- * @type callback $get_value_callback A callback executed when the source is processed during block rendering.
- * The callback should have the following signature:
- *
- * `function ($source_args, $block_instance,$attribute_name): mixed`
- * - @param array $source_args Array containing source arguments
- * used to look up the override value,
- * i.e. {"key": "foo"}.
- * - @param WP_Block $block_instance The block instance.
- * - @param string $attribute_name The name of an attribute .
- * The callback has a mixed return type; it may return a string to override
- * the block's original value, null, false to remove an attribute, etc.
- * @type array $uses_context (optional) Array of values to add to block `uses_context` needed by the source.
+ * @type string $label The label of the source.
+ * @type callable $get_value_callback A callback executed when the source is processed during block rendering.
+ * The callback should have the following signature:
+ *
+ * `function( $source_args, $block_instance, $attribute_name ): mixed`
+ * - @param array $source_args Array containing source arguments
+ * used to look up the override value,
+ * i.e. {"key": "foo"}.
+ * - @param WP_Block $block_instance The block instance.
+ * - @param string $attribute_name The name of an attribute.
+ * The callback has a mixed return type; it may return a string to override
+ * the block's original value, null, false to remove an attribute, etc.
+ * @type string[] $uses_context Optional. Array of values to add to block `uses_context` needed by the source.
* }
* @return WP_Block_Bindings_Source|false Source when the registration was successful, or `false` on failure.
*/
diff --git a/wp-includes/block-editor.php b/wp-includes/block-editor.php
index e04b012..fdc4846 100644
--- a/wp-includes/block-editor.php
+++ b/wp-includes/block-editor.php
@@ -814,6 +814,7 @@ function get_block_editor_theme_styles() {
* Returns the classic theme supports settings for block editor.
*
* @since 6.2.0
+ * @since 6.6.0 Add support for 'editor-spacing-sizes' theme support.
*
* @return array The classic theme supports settings.
*/
@@ -844,5 +845,10 @@ function get_classic_theme_supports_block_editor_settings() {
$theme_settings['gradients'] = $gradient_presets;
}
+ $spacing_sizes = current( (array) get_theme_support( 'editor-spacing-sizes' ) );
+ if ( false !== $spacing_sizes ) {
+ $theme_settings['spacingSizes'] = $spacing_sizes;
+ }
+
return $theme_settings;
}
diff --git a/wp-includes/block-supports/background.php b/wp-includes/block-supports/background.php
index 9b82e6a..ff50be3 100644
--- a/wp-includes/block-supports/background.php
+++ b/wp-includes/block-supports/background.php
@@ -41,6 +41,8 @@ function wp_register_background_support( $block_type ) {
*
* @since 6.4.0
* @since 6.5.0 Added support for `backgroundPosition` and `backgroundRepeat` output.
+ * @since 6.6.0 Removed requirement for `backgroundImage.source`. A file/url is the default.
+ *
* @access private
*
* @param string $block_content Rendered block content.
@@ -54,52 +56,27 @@ function wp_render_background_support( $block_content, $block ) {
if (
! $has_background_image_support ||
- wp_should_skip_block_supports_serialization( $block_type, 'background', 'backgroundImage' )
+ wp_should_skip_block_supports_serialization( $block_type, 'background', 'backgroundImage' ) ||
+ ! isset( $block_attributes['style']['background'] )
) {
return $block_content;
}
- $background_image_source = isset( $block_attributes['style']['background']['backgroundImage']['source'] )
- ? $block_attributes['style']['background']['backgroundImage']['source']
- : null;
- $background_image_url = isset( $block_attributes['style']['background']['backgroundImage']['url'] )
- ? $block_attributes['style']['background']['backgroundImage']['url']
- : null;
-
- if ( ! $background_image_source && ! $background_image_url ) {
- return $block_content;
- }
-
- $background_size = isset( $block_attributes['style']['background']['backgroundSize'] )
- ? $block_attributes['style']['background']['backgroundSize']
- : 'cover';
- $background_position = isset( $block_attributes['style']['background']['backgroundPosition'] )
- ? $block_attributes['style']['background']['backgroundPosition']
- : null;
- $background_repeat = isset( $block_attributes['style']['background']['backgroundRepeat'] )
- ? $block_attributes['style']['background']['backgroundRepeat']
- : null;
-
- $background_block_styles = array();
+ $background_styles = array();
+ $background_styles['backgroundImage'] = isset( $block_attributes['style']['background']['backgroundImage'] ) ? $block_attributes['style']['background']['backgroundImage'] : array();
- if (
- 'file' === $background_image_source &&
- $background_image_url
- ) {
- // Set file based background URL.
- $background_block_styles['backgroundImage']['url'] = $background_image_url;
- // Only output the background size and repeat when an image url is set.
- $background_block_styles['backgroundSize'] = $background_size;
- $background_block_styles['backgroundRepeat'] = $background_repeat;
- $background_block_styles['backgroundPosition'] = $background_position;
+ if ( ! empty( $background_styles['backgroundImage'] ) ) {
+ $background_styles['backgroundSize'] = isset( $block_attributes['style']['background']['backgroundSize'] ) ? $block_attributes['style']['background']['backgroundSize'] : 'cover';
+ $background_styles['backgroundPosition'] = isset( $block_attributes['style']['background']['backgroundPosition'] ) ? $block_attributes['style']['background']['backgroundPosition'] : null;
+ $background_styles['backgroundRepeat'] = isset( $block_attributes['style']['background']['backgroundRepeat'] ) ? $block_attributes['style']['background']['backgroundRepeat'] : null;
// If the background size is set to `contain` and no position is set, set the position to `center`.
- if ( 'contain' === $background_size && ! isset( $background_position ) ) {
- $background_block_styles['backgroundPosition'] = 'center';
+ if ( 'contain' === $background_styles['backgroundSize'] && ! $background_styles['backgroundPosition'] ) {
+ $background_styles['backgroundPosition'] = 'center';
}
}
- $styles = wp_style_engine_get_styles( array( 'background' => $background_block_styles ) );
+ $styles = wp_style_engine_get_styles( array( 'background' => $background_styles ) );
if ( ! empty( $styles['css'] ) ) {
// Inject background styles to the first element, presuming it's the wrapper, if it exists.
diff --git a/wp-includes/block-supports/block-style-variations.php b/wp-includes/block-supports/block-style-variations.php
new file mode 100644
index 0000000..77659bf
--- /dev/null
+++ b/wp-includes/block-supports/block-style-variations.php
@@ -0,0 +1,312 @@
+<?php
+/**
+ * Block support to enable per-section styling of block types via
+ * block style variations.
+ *
+ * @package WordPress
+ * @since 6.6.0
+ */
+
+/**
+ * Generate block style variation instance name.
+ *
+ * @since 6.6.0
+ * @access private
+ *
+ * @param array $block Block object.
+ * @param string $variation Slug for the block style variation.
+ *
+ * @return string The unique variation name.
+ */
+function wp_create_block_style_variation_instance_name( $block, $variation ) {
+ return $variation . '--' . md5( serialize( $block ) );
+}
+
+/**
+ * Determines the block style variation names within a CSS class string.
+ *
+ * @since 6.6.0
+ *
+ * @param string $class_string CSS class string to look for a variation in.
+ *
+ * @return array|null The block style variation name if found.
+ */
+function wp_get_block_style_variation_name_from_class( $class_string ) {
+ if ( ! is_string( $class_string ) ) {
+ return null;
+ }
+
+ preg_match_all( '/\bis-style-(?!default)(\S+)\b/', $class_string, $matches );
+ return $matches[1] ?? null;
+}
+
+/**
+ * Recursively resolves any `ref` values within a block style variation's data.
+ *
+ * @since 6.6.0
+ * @access private
+ *
+ * @param array $variation_data Reference to the variation data being processed.
+ * @param array $theme_json Theme.json data to retrieve referenced values from.
+ */
+function wp_resolve_block_style_variation_ref_values( &$variation_data, $theme_json ) {
+ foreach ( $variation_data as $key => &$value ) {
+ // Only need to potentially process arrays.
+ if ( is_array( $value ) ) {
+ // If ref value is set, attempt to find its matching value and update it.
+ if ( array_key_exists( 'ref', $value ) ) {
+ // Clean up any invalid ref value.
+ if ( empty( $value['ref'] ) || ! is_string( $value['ref'] ) ) {
+ unset( $variation_data[ $key ] );
+ }
+
+ $value_path = explode( '.', $value['ref'] ?? '' );
+ $ref_value = _wp_array_get( $theme_json, $value_path );
+
+ // Only update the current value if the referenced path matched a value.
+ if ( null === $ref_value ) {
+ unset( $variation_data[ $key ] );
+ } else {
+ $value = $ref_value;
+ }
+ } else {
+ // Recursively look for ref instances.
+ wp_resolve_block_style_variation_ref_values( $value, $theme_json );
+ }
+ }
+ }
+}
+/**
+ * Render the block style variation's styles.
+ *
+ * In the case of nested blocks with variations applied, we want the parent
+ * variation's styles to be rendered before their descendants. This solves the
+ * issue of a block type being styled in both the parent and descendant: we want
+ * the descendant style to take priority, and this is done by loading it after,
+ * in the DOM order. This is why the variation stylesheet generation is in a
+ * different filter.
+ *
+ * @since 6.6.0
+ * @access private
+ *
+ * @param array $parsed_block The parsed block.
+ *
+ * @return array The parsed block with block style variation classname added.
+ */
+function wp_render_block_style_variation_support_styles( $parsed_block ) {
+ $classes = $parsed_block['attrs']['className'] ?? null;
+ $variations = wp_get_block_style_variation_name_from_class( $classes );
+
+ if ( ! $variations ) {
+ return $parsed_block;
+ }
+
+ $tree = WP_Theme_JSON_Resolver::get_merged_data();
+ $theme_json = $tree->get_raw_data();
+
+ // Only the first block style variation with data is supported.
+ $variation_data = array();
+ foreach ( $variations as $variation ) {
+ $variation_data = $theme_json['styles']['blocks'][ $parsed_block['blockName'] ]['variations'][ $variation ] ?? array();
+
+ if ( ! empty( $variation_data ) ) {
+ break;
+ }
+ }
+
+ if ( empty( $variation_data ) ) {
+ return $parsed_block;
+ }
+
+ /*
+ * Recursively resolve any ref values with the appropriate value within the
+ * theme_json data.
+ */
+ wp_resolve_block_style_variation_ref_values( $variation_data, $theme_json );
+
+ $variation_instance = wp_create_block_style_variation_instance_name( $parsed_block, $variation );
+ $class_name = "is-style-$variation_instance";
+ $updated_class_name = $parsed_block['attrs']['className'] . " $class_name";
+
+ /*
+ * Even though block style variations are effectively theme.json partials,
+ * they can't be processed completely as though they are.
+ *
+ * Block styles support custom selectors to direct specific types of styles
+ * to inner elements. For example, borders on Image block's get applied to
+ * the inner `img` element rather than the wrapping `figure`.
+ *
+ * The following relocates the "root" block style variation styles to
+ * under an appropriate blocks property to leverage the preexisting style
+ * generation for simple block style variations. This way they get the
+ * custom selectors they need.
+ *
+ * The inner elements and block styles for the variation itself are
+ * still included at the top level but scoped by the variation's selector
+ * when the stylesheet is generated.
+ */
+ $elements_data = $variation_data['elements'] ?? array();
+ $blocks_data = $variation_data['blocks'] ?? array();
+ unset( $variation_data['elements'] );
+ unset( $variation_data['blocks'] );
+
+ _wp_array_set(
+ $blocks_data,
+ array( $parsed_block['blockName'], 'variations', $variation_instance ),
+ $variation_data
+ );
+
+ $config = array(
+ 'version' => WP_Theme_JSON::LATEST_SCHEMA,
+ 'styles' => array(
+ 'elements' => $elements_data,
+ 'blocks' => $blocks_data,
+ ),
+ );
+
+ // Turn off filter that excludes block nodes. They are needed here for the variation's inner block types.
+ if ( ! is_admin() ) {
+ remove_filter( 'wp_theme_json_get_style_nodes', 'wp_filter_out_block_nodes' );
+ }
+
+ // Temporarily prevent variation instance from being sanitized while processing theme.json.
+ $styles_registry = WP_Block_Styles_Registry::get_instance();
+ $styles_registry->register( $parsed_block['blockName'], array( 'name' => $variation_instance ) );
+
+ $variation_theme_json = new WP_Theme_JSON( $config, 'blocks' );
+ $variation_styles = $variation_theme_json->get_stylesheet(
+ array( 'styles' ),
+ array( 'custom' ),
+ array(
+ 'include_block_style_variations' => true,
+ 'skip_root_layout_styles' => true,
+ 'scope' => ".$class_name",
+ )
+ );
+
+ // Clean up temporary block style now instance styles have been processed.
+ $styles_registry->unregister( $parsed_block['blockName'], $variation_instance );
+
+ // Restore filter that excludes block nodes.
+ if ( ! is_admin() ) {
+ add_filter( 'wp_theme_json_get_style_nodes', 'wp_filter_out_block_nodes' );
+ }
+
+ if ( empty( $variation_styles ) ) {
+ return $parsed_block;
+ }
+
+ wp_register_style( 'block-style-variation-styles', false, array( 'global-styles', 'wp-block-library' ) );
+ wp_add_inline_style( 'block-style-variation-styles', $variation_styles );
+
+ /*
+ * Add variation instance class name to block's className string so it can
+ * be enforced in the block markup via render_block filter.
+ */
+ _wp_array_set( $parsed_block, array( 'attrs', 'className' ), $updated_class_name );
+
+ return $parsed_block;
+}
+
+/**
+ * Ensure the variation block support class name generated and added to
+ * block attributes in the `render_block_data` filter gets applied to the
+ * block's markup.
+ *
+ * @see wp_render_block_style_variation_support_styles
+ *
+ * @since 6.6.0
+ * @access private
+ *
+ * @param string $block_content Rendered block content.
+ * @param array $block Block object.
+ *
+ * @return string Filtered block content.
+ */
+function wp_render_block_style_variation_class_name( $block_content, $block ) {
+ if ( ! $block_content || empty( $block['attrs']['className'] ) ) {
+ return $block_content;
+ }
+
+ /*
+ * Matches a class prefixed by `is-style`, followed by the
+ * variation slug, then `--`, and finally a hash.
+ *
+ * See `wp_create_block_style_variation_instance_name` for class generation.
+ */
+ preg_match( '/\bis-style-(\S+?--\w+)\b/', $block['attrs']['className'], $matches );
+
+ if ( empty( $matches ) ) {
+ return $block_content;
+ }
+
+ $tags = new WP_HTML_Tag_Processor( $block_content );
+
+ if ( $tags->next_tag() ) {
+ /*
+ * Ensure the variation instance class name set in the
+ * `render_block_data` filter is applied in markup.
+ * See `wp_render_block_style_variation_support_styles`.
+ */
+ $tags->add_class( $matches[0] );
+ }
+
+ return $tags->get_updated_html();
+}
+
+/**
+ * Enqueues styles for block style variations.
+ *
+ * @since 6.6.0
+ * @access private
+ */
+function wp_enqueue_block_style_variation_styles() {
+ wp_enqueue_style( 'block-style-variation-styles' );
+}
+
+// Register the block support.
+WP_Block_Supports::get_instance()->register( 'block-style-variation', array() );
+
+add_filter( 'render_block_data', 'wp_render_block_style_variation_support_styles', 10, 2 );
+add_filter( 'render_block', 'wp_render_block_style_variation_class_name', 10, 2 );
+add_action( 'wp_enqueue_scripts', 'wp_enqueue_block_style_variation_styles', 1 );
+
+/**
+ * Registers block style variations read in from theme.json partials.
+ *
+ * @since 6.6.0
+ * @access private
+ *
+ * @param array $variations Shared block style variations.
+ */
+function wp_register_block_style_variations_from_theme_json_partials( $variations ) {
+ if ( empty( $variations ) ) {
+ return;
+ }
+
+ $registry = WP_Block_Styles_Registry::get_instance();
+
+ foreach ( $variations as $variation ) {
+ if ( empty( $variation['blockTypes'] ) || empty( $variation['styles'] ) ) {
+ continue;
+ }
+
+ $variation_name = $variation['slug'] ?? _wp_to_kebab_case( $variation['title'] );
+ $variation_label = $variation['title'] ?? $variation_name;
+
+ foreach ( $variation['blockTypes'] as $block_type ) {
+ $registered_styles = $registry->get_registered_styles_for_block( $block_type );
+
+ // Register block style variation if it hasn't already been registered.
+ if ( ! array_key_exists( $variation_name, $registered_styles ) ) {
+ register_block_style(
+ $block_type,
+ array(
+ 'name' => $variation_name,
+ 'label' => $variation_label,
+ )
+ );
+ }
+ }
+ }
+}
diff --git a/wp-includes/block-supports/duotone.php b/wp-includes/block-supports/duotone.php
index a90eb76..df328c3 100644
--- a/wp-includes/block-supports/duotone.php
+++ b/wp-includes/block-supports/duotone.php
@@ -42,6 +42,7 @@ WP_Block_Supports::get_instance()->register(
// Add classnames to blocks using duotone support.
add_filter( 'render_block', array( 'WP_Duotone', 'render_duotone_support' ), 10, 3 );
+add_filter( 'render_block_core/image', array( 'WP_Duotone', 'restore_image_outer_container' ), 10, 1 );
// Enqueue styles.
// Block styles (core-block-supports-inline-css) before the style engine (wp_enqueue_stored_styles).
diff --git a/wp-includes/block-supports/elements.php b/wp-includes/block-supports/elements.php
index e7fa76a..5678dfc 100644
--- a/wp-includes/block-supports/elements.php
+++ b/wp-includes/block-supports/elements.php
@@ -20,29 +20,23 @@ function wp_get_elements_class_name( $block ) {
}
/**
- * Updates the block content with elements class names.
+ * Determines whether an elements class name should be added to the block.
*
- * @since 5.8.0
- * @since 6.4.0 Added support for button and heading element styling.
+ * @since 6.6.0
* @access private
*
- * @param string $block_content Rendered block content.
- * @param array $block Block object.
- * @return string Filtered block content.
+ * @param array $block Block object.
+ * @param array $options Per element type options e.g. whether to skip serialization.
+ * @return boolean Whether the block needs an elements class name.
*/
-function wp_render_elements_support( $block_content, $block ) {
- if ( ! $block_content || ! isset( $block['attrs']['style']['elements'] ) ) {
- return $block_content;
- }
-
- $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] );
- if ( ! $block_type ) {
- return $block_content;
+function wp_should_add_elements_class_name( $block, $options ) {
+ if ( ! isset( $block['attrs']['style']['elements'] ) ) {
+ return false;
}
$element_color_properties = array(
'button' => array(
- 'skip' => wp_should_skip_block_supports_serialization( $block_type, 'color', 'button' ),
+ 'skip' => isset( $options['button']['skip'] ) ? $options['button']['skip'] : false,
'paths' => array(
array( 'button', 'color', 'text' ),
array( 'button', 'color', 'background' ),
@@ -50,14 +44,14 @@ function wp_render_elements_support( $block_content, $block ) {
),
),
'link' => array(
- 'skip' => wp_should_skip_block_supports_serialization( $block_type, 'color', 'link' ),
+ 'skip' => isset( $options['link']['skip'] ) ? $options['link']['skip'] : false,
'paths' => array(
array( 'link', 'color', 'text' ),
array( 'link', ':hover', 'color', 'text' ),
),
),
'heading' => array(
- 'skip' => wp_should_skip_block_supports_serialization( $block_type, 'color', 'heading' ),
+ 'skip' => isset( $options['heading']['skip'] ) ? $options['heading']['skip'] : false,
'paths' => array(
array( 'heading', 'color', 'text' ),
array( 'heading', 'color', 'background' ),
@@ -84,14 +78,6 @@ function wp_render_elements_support( $block_content, $block ) {
),
);
- $skip_all_element_color_serialization = $element_color_properties['button']['skip'] &&
- $element_color_properties['link']['skip'] &&
- $element_color_properties['heading']['skip'];
-
- if ( $skip_all_element_color_serialization ) {
- return $block_content;
- }
-
$elements_style_attributes = $block['attrs']['style']['elements'];
foreach ( $element_color_properties as $element_config ) {
@@ -101,31 +87,16 @@ function wp_render_elements_support( $block_content, $block ) {
foreach ( $element_config['paths'] as $path ) {
if ( null !== _wp_array_get( $elements_style_attributes, $path, null ) ) {
- /*
- * It only takes a single custom attribute to require that the custom
- * class name be added to the block, so once one is found there's no
- * need to continue looking for others.
- *
- * As is done with the layout hook, this code assumes that the block
- * contains a single wrapper and that it's the first element in the
- * rendered output. That first element, if it exists, gets the class.
- */
- $tags = new WP_HTML_Tag_Processor( $block_content );
- if ( $tags->next_tag() ) {
- $tags->add_class( wp_get_elements_class_name( $block ) );
- }
-
- return $tags->get_updated_html();
+ return true;
}
}
}
- // If no custom attributes were found then there's nothing to modify.
- return $block_content;
+ return false;
}
/**
- * Renders the elements stylesheet.
+ * Render the elements stylesheet and adds elements class name to block as required.
*
* In the case of nested blocks we want the parent element styles to be rendered before their descendants.
* This solves the issue of an element (e.g.: link color) being styled in both the parent and a descendant:
@@ -133,18 +104,36 @@ function wp_render_elements_support( $block_content, $block ) {
*
* @since 6.0.0
* @since 6.1.0 Implemented the style engine to generate CSS and classnames.
+ * @since 6.6.0 Element block support class and styles are generated via the `render_block_data` filter instead of `pre_render_block`.
* @access private
*
- * @param string|null $pre_render The pre-rendered content. Default null.
- * @param array $block The block being rendered.
- * @return null
+ * @param array $parsed_block The parsed block.
+ * @return array The same parsed block with elements classname added if appropriate.
*/
-function wp_render_elements_support_styles( $pre_render, $block ) {
- $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] );
- $element_block_styles = isset( $block['attrs']['style']['elements'] ) ? $block['attrs']['style']['elements'] : null;
+function wp_render_elements_support_styles( $parsed_block ) {
+ /*
+ * The generation of element styles and classname were moved to the
+ * `render_block_data` filter in 6.6.0 to avoid filtered attributes
+ * breaking the application of the elements CSS class.
+ *
+ * @see https://github.com/WordPress/gutenberg/pull/59535
+ *
+ * The change in filter means, the argument types for this function
+ * have changed and require deprecating.
+ */
+ if ( is_string( $parsed_block ) ) {
+ _deprecated_argument(
+ __FUNCTION__,
+ '6.6.0',
+ __( 'Use as a `pre_render_block` filter is deprecated. Use with `render_block_data` instead.' )
+ );
+ }
+
+ $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $parsed_block['blockName'] );
+ $element_block_styles = isset( $parsed_block['attrs']['style']['elements'] ) ? $parsed_block['attrs']['style']['elements'] : null;
if ( ! $element_block_styles ) {
- return null;
+ return $parsed_block;
}
$skip_link_color_serialization = wp_should_skip_block_supports_serialization( $block_type, 'color', 'link' );
@@ -155,11 +144,25 @@ function wp_render_elements_support_styles( $pre_render, $block ) {
$skip_button_color_serialization;
if ( $skips_all_element_color_serialization ) {
- return null;
+ return $parsed_block;
}
- $class_name = wp_get_elements_class_name( $block );
+ $options = array(
+ 'button' => array( 'skip' => $skip_button_color_serialization ),
+ 'link' => array( 'skip' => $skip_link_color_serialization ),
+ 'heading' => array( 'skip' => $skip_heading_color_serialization ),
+ );
+
+ if ( ! wp_should_add_elements_class_name( $parsed_block, $options ) ) {
+ return $parsed_block;
+ }
+ $class_name = wp_get_elements_class_name( $parsed_block );
+ $updated_class_name = isset( $parsed_block['attrs']['className'] ) ? $parsed_block['attrs']['className'] . " $class_name" : $class_name;
+
+ _wp_array_set( $parsed_block, array( 'attrs', 'className' ), $updated_class_name );
+
+ // Generate element styles based on selector and store in style engine for enqueuing.
$element_types = array(
'button' => array(
'selector' => ".$class_name .wp-element-button, .$class_name .wp-block-button__link",
@@ -225,8 +228,37 @@ function wp_render_elements_support_styles( $pre_render, $block ) {
}
}
- return null;
+ return $parsed_block;
+}
+
+/**
+ * Ensure the elements block support class name generated, and added to
+ * block attributes, in the `render_block_data` filter gets applied to the
+ * block's markup.
+ *
+ * @see wp_render_elements_support_styles
+ * @since 6.6.0
+ *
+ * @param string $block_content Rendered block content.
+ * @param array $block Block object.
+ * @return string Filtered block content.
+ */
+function wp_render_elements_class_name( $block_content, $block ) {
+ $class_string = $block['attrs']['className'] ?? '';
+ preg_match( '/\bwp-elements-\S+\b/', $class_string, $matches );
+
+ if ( empty( $matches ) ) {
+ return $block_content;
+ }
+
+ $tags = new WP_HTML_Tag_Processor( $block_content );
+
+ if ( $tags->next_tag() ) {
+ $tags->add_class( $matches[0] );
+ }
+
+ return $tags->get_updated_html();
}
-add_filter( 'render_block', 'wp_render_elements_support', 10, 2 );
-add_filter( 'pre_render_block', 'wp_render_elements_support_styles', 10, 2 );
+add_filter( 'render_block', 'wp_render_elements_class_name', 10, 2 );
+add_filter( 'render_block_data', 'wp_render_elements_support_styles', 10, 1 );
diff --git a/wp-includes/block-supports/layout.php b/wp-includes/block-supports/layout.php
index f5acd75..ccfb200 100644
--- a/wp-includes/block-supports/layout.php
+++ b/wp-includes/block-supports/layout.php
@@ -14,6 +14,7 @@
* also be updated.
*
* @since 6.3.0
+ * @since 6.6.0 Updated specificity for compatibility with 0-1-0 global styles specificity.
* @access private
*
* @return array[] Layout definitions.
@@ -51,13 +52,13 @@ function wp_get_layout_definitions() {
),
'spacingStyles' => array(
array(
- 'selector' => ' > :first-child:first-child',
+ 'selector' => ' > :first-child',
'rules' => array(
'margin-block-start' => '0',
),
),
array(
- 'selector' => ' > :last-child:last-child',
+ 'selector' => ' > :last-child',
'rules' => array(
'margin-block-end' => '0',
),
@@ -116,13 +117,13 @@ function wp_get_layout_definitions() {
),
'spacingStyles' => array(
array(
- 'selector' => ' > :first-child:first-child',
+ 'selector' => ' > :first-child',
'rules' => array(
'margin-block-start' => '0',
),
),
array(
- 'selector' => ' > :last-child:last-child',
+ 'selector' => ' > :last-child',
'rules' => array(
'margin-block-end' => '0',
),
@@ -150,7 +151,7 @@ function wp_get_layout_definitions() {
),
),
array(
- 'selector' => ' > *',
+ 'selector' => ' > :is(*, div)', // :is(*, div) instead of just * increases the specificity by 001.
'rules' => array(
'margin' => '0',
),
@@ -172,7 +173,7 @@ function wp_get_layout_definitions() {
'displayMode' => 'grid',
'baseStyles' => array(
array(
- 'selector' => ' > *',
+ 'selector' => ' > :is(*, div)', // :is(*, div) instead of just * increases the specificity by 001.
'rules' => array(
'margin' => '0',
),
@@ -222,6 +223,8 @@ function wp_register_layout_support( $block_type ) {
* @since 5.9.0
* @since 6.1.0 Added `$block_spacing` param, use style engine to enqueue styles.
* @since 6.3.0 Added grid layout type.
+ * @since 6.6.0 Removed duplicated selector from layout styles.
+ * Enabled negative margins for alignfull children of blocks with custom padding.
* @access private
*
* @param string $selector CSS selector.
@@ -261,7 +264,7 @@ function wp_get_layout_style( $selector, $layout, $has_block_gap_support = false
),
),
array(
- 'selector' => "$selector$selector > * + *",
+ 'selector' => "$selector > * + *",
'declarations' => array(
'margin-block-start' => $gap_value,
'margin-block-end' => '0',
@@ -305,32 +308,40 @@ function wp_get_layout_style( $selector, $layout, $has_block_gap_support = false
'declarations' => array( 'max-width' => 'none' ),
)
);
+ }
- if ( isset( $block_spacing ) ) {
- $block_spacing_values = wp_style_engine_get_styles(
- array(
- 'spacing' => $block_spacing,
- )
- );
+ if ( isset( $block_spacing ) ) {
+ $block_spacing_values = wp_style_engine_get_styles(
+ array(
+ 'spacing' => $block_spacing,
+ )
+ );
- /*
- * Handle negative margins for alignfull children of blocks with custom padding set.
- * They're added separately because padding might only be set on one side.
- */
- if ( isset( $block_spacing_values['declarations']['padding-right'] ) ) {
- $padding_right = $block_spacing_values['declarations']['padding-right'];
- $layout_styles[] = array(
- 'selector' => "$selector > .alignfull",
- 'declarations' => array( 'margin-right' => "calc($padding_right * -1)" ),
- );
+ /*
+ * Handle negative margins for alignfull children of blocks with custom padding set.
+ * They're added separately because padding might only be set on one side.
+ */
+ if ( isset( $block_spacing_values['declarations']['padding-right'] ) ) {
+ $padding_right = $block_spacing_values['declarations']['padding-right'];
+ // Add unit if 0.
+ if ( '0' === $padding_right ) {
+ $padding_right = '0px';
}
- if ( isset( $block_spacing_values['declarations']['padding-left'] ) ) {
- $padding_left = $block_spacing_values['declarations']['padding-left'];
- $layout_styles[] = array(
- 'selector' => "$selector > .alignfull",
- 'declarations' => array( 'margin-left' => "calc($padding_left * -1)" ),
- );
+ $layout_styles[] = array(
+ 'selector' => "$selector > .alignfull",
+ 'declarations' => array( 'margin-right' => "calc($padding_right * -1)" ),
+ );
+ }
+ if ( isset( $block_spacing_values['declarations']['padding-left'] ) ) {
+ $padding_left = $block_spacing_values['declarations']['padding-left'];
+ // Add unit if 0.
+ if ( '0' === $padding_left ) {
+ $padding_left = '0px';
}
+ $layout_styles[] = array(
+ 'selector' => "$selector > .alignfull",
+ 'declarations' => array( 'margin-left' => "calc($padding_left * -1)" ),
+ );
}
}
@@ -370,7 +381,7 @@ function wp_get_layout_style( $selector, $layout, $has_block_gap_support = false
),
),
array(
- 'selector' => "$selector$selector > * + *",
+ 'selector' => "$selector > * + *",
'declarations' => array(
'margin-block-start' => $gap_value,
'margin-block-end' => '0',
@@ -489,7 +500,10 @@ function wp_get_layout_style( $selector, $layout, $has_block_gap_support = false
$layout_styles[] = array(
'selector' => $selector,
- 'declarations' => array( 'grid-template-columns' => 'repeat(auto-fill, minmax(min(' . $minimum_column_width . ', 100%), 1fr))' ),
+ 'declarations' => array(
+ 'grid-template-columns' => 'repeat(auto-fill, minmax(min(' . $minimum_column_width . ', 100%), 1fr))',
+ 'container-type' => 'inline-size',
+ ),
);
}
@@ -546,6 +560,7 @@ function wp_get_layout_style( $selector, $layout, $has_block_gap_support = false
* @since 5.8.0
* @since 6.3.0 Adds compound class to layout wrapper for global spacing styles.
* @since 6.3.0 Check for layout support via the `layout` key with fallback to `__experimentalLayout`.
+ * @since 6.6.0 Removed duplicate container class from layout styles.
* @access private
*
* @param string $block_content Rendered block content.
@@ -555,37 +570,92 @@ function wp_get_layout_style( $selector, $layout, $has_block_gap_support = false
function wp_render_layout_support_flag( $block_content, $block ) {
$block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] );
$block_supports_layout = block_has_support( $block_type, 'layout', false ) || block_has_support( $block_type, '__experimentalLayout', false );
- $layout_from_parent = isset( $block['attrs']['style']['layout']['selfStretch'] ) ? $block['attrs']['style']['layout']['selfStretch'] : null;
+ $child_layout = isset( $block['attrs']['style']['layout'] ) ? $block['attrs']['style']['layout'] : null;
- if ( ! $block_supports_layout && ! $layout_from_parent ) {
+ if ( ! $block_supports_layout && ! $child_layout ) {
return $block_content;
}
$outer_class_names = array();
- if ( 'fixed' === $layout_from_parent || 'fill' === $layout_from_parent ) {
- $container_content_class = wp_unique_id( 'wp-container-content-' );
+ // Child layout specific logic.
+ if ( $child_layout ) {
+ $container_content_class = wp_unique_prefixed_id( 'wp-container-content-' );
+ $child_layout_declarations = array();
+ $child_layout_styles = array();
- $child_layout_styles = array();
+ $self_stretch = isset( $child_layout['selfStretch'] ) ? $child_layout['selfStretch'] : null;
+
+ if ( 'fixed' === $self_stretch && isset( $child_layout['flexSize'] ) ) {
+ $child_layout_declarations['flex-basis'] = $child_layout['flexSize'];
+ $child_layout_declarations['box-sizing'] = 'border-box';
+ } elseif ( 'fill' === $self_stretch ) {
+ $child_layout_declarations['flex-grow'] = '1';
+ }
+
+ if ( isset( $child_layout['columnSpan'] ) ) {
+ $column_span = $child_layout['columnSpan'];
+ $child_layout_declarations['grid-column'] = "span $column_span";
+ }
+ if ( isset( $child_layout['rowSpan'] ) ) {
+ $row_span = $child_layout['rowSpan'];
+ $child_layout_declarations['grid-row'] = "span $row_span";
+ }
+ $child_layout_styles[] = array(
+ 'selector' => ".$container_content_class",
+ 'declarations' => $child_layout_declarations,
+ );
+
+ /*
+ * If columnSpan is set, and the parent grid is responsive, i.e. if it has a minimumColumnWidth set,
+ * the columnSpan should be removed on small grids. If there's a minimumColumnWidth, the grid is responsive.
+ * But if the minimumColumnWidth value wasn't changed, it won't be set. In that case, if columnCount doesn't
+ * exist, we can assume that the grid is responsive.
+ */
+ if ( isset( $child_layout['columnSpan'] ) && ( isset( $block['parentLayout']['minimumColumnWidth'] ) || ! isset( $block['parentLayout']['columnCount'] ) ) ) {
+ $column_span_number = floatval( $child_layout['columnSpan'] );
+ $parent_column_width = isset( $block['parentLayout']['minimumColumnWidth'] ) ? $block['parentLayout']['minimumColumnWidth'] : '12rem';
+ $parent_column_value = floatval( $parent_column_width );
+ $parent_column_unit = explode( $parent_column_value, $parent_column_width );
+
+ /*
+ * If there is no unit, the width has somehow been mangled so we reset both unit and value
+ * to defaults.
+ * Additionally, the unit should be one of px, rem or em, so that also needs to be checked.
+ */
+ if ( count( $parent_column_unit ) <= 1 ) {
+ $parent_column_unit = 'rem';
+ $parent_column_value = 12;
+ } else {
+ $parent_column_unit = $parent_column_unit[1];
+
+ if ( ! in_array( $parent_column_unit, array( 'px', 'rem', 'em' ), true ) ) {
+ $parent_column_unit = 'rem';
+ }
+ }
+
+ /*
+ * A default gap value is used for this computation because custom gap values may not be
+ * viable to use in the computation of the container query value.
+ */
+ $default_gap_value = 'px' === $parent_column_unit ? 24 : 1.5;
+ $container_query_value = $column_span_number * $parent_column_value + ( $column_span_number - 1 ) * $default_gap_value;
+ $container_query_value = $container_query_value . $parent_column_unit;
- if ( 'fixed' === $layout_from_parent && isset( $block['attrs']['style']['layout']['flexSize'] ) ) {
- $child_layout_styles[] = array(
- 'selector' => ".$container_content_class",
- 'declarations' => array(
- 'flex-basis' => $block['attrs']['style']['layout']['flexSize'],
- 'box-sizing' => 'border-box',
- ),
- );
- } elseif ( 'fill' === $layout_from_parent ) {
$child_layout_styles[] = array(
+ 'rules_group' => "@container (max-width: $container_query_value )",
'selector' => ".$container_content_class",
'declarations' => array(
- 'flex-grow' => '1',
+ 'grid-column' => '1/-1',
),
);
}
- wp_style_engine_get_stylesheet_from_css_rules(
+ /*
+ * Add to the style engine store to enqueue and render layout styles.
+ * Return styles here just to check if any exist.
+ */
+ $child_css = wp_style_engine_get_stylesheet_from_css_rules(
$child_layout_styles,
array(
'context' => 'block-supports',
@@ -593,7 +663,9 @@ function wp_render_layout_support_flag( $block_content, $block ) {
)
);
- $outer_class_names[] = $container_content_class;
+ if ( $child_css ) {
+ $outer_class_names[] = $container_content_class;
+ }
}
// Prep the processor for modifying the block output.
@@ -735,7 +807,7 @@ function wp_render_layout_support_flag( $block_content, $block ) {
$has_block_gap_support = isset( $block_gap );
$style = wp_get_layout_style(
- ".$container_class.$container_class",
+ ".$container_class",
$used_layout,
$has_block_gap_support,
$gap_value,
@@ -851,6 +923,27 @@ function wp_render_layout_support_flag( $block_content, $block ) {
return $processor->get_updated_html();
}
+/**
+ * Check if the parent block exists and if it has a layout attribute.
+ * If it does, add the parent layout to the parsed block
+ *
+ * @since 6.6.0
+ * @access private
+ *
+ * @param array $parsed_block The parsed block.
+ * @param array $source_block The source block.
+ * @param WP_Block $parent_block The parent block.
+ * @return array The parsed block with parent layout attribute if it exists.
+ */
+function wp_add_parent_layout_to_parsed_block( $parsed_block, $source_block, $parent_block ) {
+ if ( $parent_block && isset( $parent_block->parsed_block['attrs']['layout'] ) ) {
+ $parsed_block['parentLayout'] = $parent_block->parsed_block['attrs']['layout'];
+ }
+ return $parsed_block;
+}
+
+add_filter( 'render_block_data', 'wp_add_parent_layout_to_parsed_block', 10, 3 );
+
// Register the block support.
WP_Block_Supports::get_instance()->register(
'layout',
diff --git a/wp-includes/block-supports/shadow.php b/wp-includes/block-supports/shadow.php
index 0ccaf3f..fffc72e 100644
--- a/wp-includes/block-supports/shadow.php
+++ b/wp-includes/block-supports/shadow.php
@@ -43,6 +43,7 @@ function wp_register_shadow_support( $block_type ) {
* This will be applied to the block markup in the front-end.
*
* @since 6.3.0
+ * @since 6.6.0 Return early if __experimentalSkipSerialization is true.
* @access private
*
* @param WP_Block_Type $block_type Block type.
@@ -52,7 +53,10 @@ function wp_register_shadow_support( $block_type ) {
function wp_apply_shadow_support( $block_type, $block_attributes ) {
$has_shadow_support = block_has_support( $block_type, 'shadow', false );
- if ( ! $has_shadow_support ) {
+ if (
+ ! $has_shadow_support ||
+ wp_should_skip_block_supports_serialization( $block_type, 'shadow' )
+ ) {
return array();
}
diff --git a/wp-includes/block-supports/typography.php b/wp-includes/block-supports/typography.php
index e7d081c..334c019 100644
--- a/wp-includes/block-supports/typography.php
+++ b/wp-includes/block-supports/typography.php
@@ -31,6 +31,7 @@ function wp_register_typography_support( $block_type ) {
$has_font_weight_support = isset( $typography_supports['__experimentalFontWeight'] ) ? $typography_supports['__experimentalFontWeight'] : false;
$has_letter_spacing_support = isset( $typography_supports['__experimentalLetterSpacing'] ) ? $typography_supports['__experimentalLetterSpacing'] : false;
$has_line_height_support = isset( $typography_supports['lineHeight'] ) ? $typography_supports['lineHeight'] : false;
+ $has_text_align_support = isset( $typography_supports['textAlign'] ) ? $typography_supports['textAlign'] : false;
$has_text_columns_support = isset( $typography_supports['textColumns'] ) ? $typography_supports['textColumns'] : false;
$has_text_decoration_support = isset( $typography_supports['__experimentalTextDecoration'] ) ? $typography_supports['__experimentalTextDecoration'] : false;
$has_text_transform_support = isset( $typography_supports['__experimentalTextTransform'] ) ? $typography_supports['__experimentalTextTransform'] : false;
@@ -42,6 +43,7 @@ function wp_register_typography_support( $block_type ) {
|| $has_font_weight_support
|| $has_letter_spacing_support
|| $has_line_height_support
+ || $has_text_align_support
|| $has_text_columns_support
|| $has_text_decoration_support
|| $has_text_transform_support
@@ -106,6 +108,7 @@ function wp_apply_typography_support( $block_type, $block_attributes ) {
$has_font_weight_support = isset( $typography_supports['__experimentalFontWeight'] ) ? $typography_supports['__experimentalFontWeight'] : false;
$has_letter_spacing_support = isset( $typography_supports['__experimentalLetterSpacing'] ) ? $typography_supports['__experimentalLetterSpacing'] : false;
$has_line_height_support = isset( $typography_supports['lineHeight'] ) ? $typography_supports['lineHeight'] : false;
+ $has_text_align_support = isset( $typography_supports['textAlign'] ) ? $typography_supports['textAlign'] : false;
$has_text_columns_support = isset( $typography_supports['textColumns'] ) ? $typography_supports['textColumns'] : false;
$has_text_decoration_support = isset( $typography_supports['__experimentalTextDecoration'] ) ? $typography_supports['__experimentalTextDecoration'] : false;
$has_text_transform_support = isset( $typography_supports['__experimentalTextTransform'] ) ? $typography_supports['__experimentalTextTransform'] : false;
@@ -117,6 +120,7 @@ function wp_apply_typography_support( $block_type, $block_attributes ) {
$should_skip_font_style = wp_should_skip_block_supports_serialization( $block_type, 'typography', 'fontStyle' );
$should_skip_font_weight = wp_should_skip_block_supports_serialization( $block_type, 'typography', 'fontWeight' );
$should_skip_line_height = wp_should_skip_block_supports_serialization( $block_type, 'typography', 'lineHeight' );
+ $should_skip_text_align = wp_should_skip_block_supports_serialization( $block_type, 'typography', 'textAlign' );
$should_skip_text_columns = wp_should_skip_block_supports_serialization( $block_type, 'typography', 'textColumns' );
$should_skip_text_decoration = wp_should_skip_block_supports_serialization( $block_type, 'typography', 'textDecoration' );
$should_skip_text_transform = wp_should_skip_block_supports_serialization( $block_type, 'typography', 'textTransform' );
@@ -176,6 +180,12 @@ function wp_apply_typography_support( $block_type, $block_attributes ) {
: null;
}
+ if ( $has_text_align_support && ! $should_skip_text_align ) {
+ $typography_block_styles['textAlign'] = isset( $block_attributes['style']['typography']['textAlign'] )
+ ? $block_attributes['style']['typography']['textAlign']
+ : null;
+ }
+
if ( $has_text_columns_support && ! $should_skip_text_columns && isset( $block_attributes['style']['typography']['textColumns'] ) ) {
$typography_block_styles['textColumns'] = isset( $block_attributes['style']['typography']['textColumns'] )
? $block_attributes['style']['typography']['textColumns']
@@ -225,13 +235,22 @@ function wp_apply_typography_support( $block_type, $block_attributes ) {
}
$attributes = array();
+ $classnames = array();
$styles = wp_style_engine_get_styles(
array( 'typography' => $typography_block_styles ),
array( 'convert_vars_to_classnames' => true )
);
if ( ! empty( $styles['classnames'] ) ) {
- $attributes['class'] = $styles['classnames'];
+ $classnames[] = $styles['classnames'];
+ }
+
+ if ( $has_text_align_support && ! $should_skip_text_align && isset( $block_attributes['style']['typography']['textAlign'] ) ) {
+ $classnames[] = 'has-text-align-' . $block_attributes['style']['typography']['textAlign'];
+ }
+
+ if ( ! empty( $classnames ) ) {
+ $attributes['class'] = implode( ' ', $classnames );
}
if ( ! empty( $styles['css'] ) ) {
@@ -498,19 +517,22 @@ function wp_get_computed_fluid_typography_value( $args = array() ) {
* @since 6.2.0 Added 'settings.typography.fluid.minFontSize' support.
* @since 6.3.0 Using layout.wideSize as max viewport width, and logarithmic scale factor to calculate minimum font scale.
* @since 6.4.0 Added configurable min and max viewport width values to the typography.fluid theme.json schema.
+ * @since 6.6.0 Deprecated bool argument $should_use_fluid_typography.
*
- * @param array $preset {
+ * @param array $preset {
* Required. fontSizes preset value as seen in theme.json.
*
* @type string $name Name of the font size preset.
* @type string $slug Kebab-case, unique identifier for the font size preset.
* @type string|int|float $size CSS font-size value, including units if applicable.
* }
- * @param bool $should_use_fluid_typography An override to switch fluid typography "on". Can be used for unit testing.
- * Default is false.
+ * @param bool|array $settings Optional Theme JSON settings array that overrides any global theme settings.
+ * Default is false.
* @return string|null Font-size value or null if a size is not passed in $preset.
*/
-function wp_get_typography_font_size_value( $preset, $should_use_fluid_typography = false ) {
+
+
+function wp_get_typography_font_size_value( $preset, $settings = array() ) {
if ( ! isset( $preset['size'] ) ) {
return null;
}
@@ -523,25 +545,35 @@ function wp_get_typography_font_size_value( $preset, $should_use_fluid_typograph
return $preset['size'];
}
- // Checks if fluid font sizes are activated.
- $global_settings = wp_get_global_settings();
- $typography_settings = isset( $global_settings['typography'] ) ? $global_settings['typography'] : array();
- $layout_settings = isset( $global_settings['layout'] ) ? $global_settings['layout'] : array();
-
- if (
- isset( $typography_settings['fluid'] ) &&
- ( true === $typography_settings['fluid'] || is_array( $typography_settings['fluid'] ) )
- ) {
- $should_use_fluid_typography = true;
+ /*
+ * As a boolean (deprecated since 6.6), $settings acts as an override to switch fluid typography "on" (`true`) or "off" (`false`).
+ */
+ if ( is_bool( $settings ) ) {
+ _deprecated_argument( __FUNCTION__, '6.6.0', __( '`boolean` type for second argument `$settings` is deprecated. Use `array()` instead.' ) );
+ $settings = array(
+ 'typography' => array(
+ 'fluid' => $settings,
+ ),
+ );
}
+ // Fallback to global settings as default.
+ $global_settings = wp_get_global_settings();
+ $settings = wp_parse_args(
+ $settings,
+ $global_settings
+ );
+
+ $typography_settings = isset( $settings['typography'] ) ? $settings['typography'] : array();
+ $should_use_fluid_typography = ! empty( $typography_settings['fluid'] );
+
if ( ! $should_use_fluid_typography ) {
return $preset['size'];
}
- $fluid_settings = isset( $typography_settings['fluid'] ) && is_array( $typography_settings['fluid'] )
- ? $typography_settings['fluid']
- : array();
+ // $typography_settings['fluid'] can be a bool or an array. Normalize to array.
+ $fluid_settings = is_array( $typography_settings['fluid'] ) ? $typography_settings['fluid'] : array();
+ $layout_settings = isset( $settings['layout'] ) ? $settings['layout'] : array();
// Defaults.
$default_maximum_viewport_width = '1600px';
diff --git a/wp-includes/block-template-utils.php b/wp-includes/block-template-utils.php
index 72ac83f..2681acb 100644
--- a/wp-includes/block-template-utils.php
+++ b/wp-includes/block-template-utils.php
@@ -53,7 +53,19 @@ function get_block_theme_folders( $theme_stylesheet = null ) {
*
* @since 5.9.0
*
- * @return array[] The supported template part area values.
+ * @return array[] {
+ * The allowed template part area values.
+ *
+ * @type array ...$0 {
+ * Data for the allowed template part area.
+ *
+ * @type string $area Template part area name.
+ * @type string $label Template part area label.
+ * @type string $description Template part area description.
+ * @type string $icon Template part area icon.
+ * @type string $area_tag Template part area tag.
+ * }
+ * }
*/
function get_allowed_block_template_part_areas() {
$default_area_definitions = array(
@@ -91,7 +103,19 @@ function get_allowed_block_template_part_areas() {
*
* @since 5.9.0
*
- * @param array[] $default_area_definitions An array of supported area objects.
+ * @param array[] $default_area_definitions {
+ * The allowed template part area values.
+ *
+ * @type array ...$0 {
+ * Data for the template part area.
+ *
+ * @type string $area Template part area name.
+ * @type string $label Template part area label.
+ * @type string $description Template part area description.
+ * @type string $icon Template part area icon.
+ * @type string $area_tag Template part area tag.
+ * }
+ * }
*/
return apply_filters( 'default_wp_template_part_areas', $default_area_definitions );
}
@@ -103,7 +127,16 @@ function get_allowed_block_template_part_areas() {
*
* @since 5.9.0
*
- * @return array[] The default template types.
+ * @return array[] {
+ * The default template types.
+ *
+ * @type array ...$0 {
+ * Data for the template type.
+ *
+ * @type string $title Template type title.
+ * @type string $description Template type description.
+ * }
+ * }
*/
function get_default_block_template_types() {
$default_template_types = array(
@@ -178,7 +211,16 @@ function get_default_block_template_types() {
*
* @since 5.9.0
*
- * @param array[] $default_template_types An array of template types, formatted as [ slug => [ title, description ] ].
+ * @param array[] $default_template_types {
+ * The default template types.
+ *
+ * @type array ...$0 {
+ * Data for the template type.
+ *
+ * @type string $title Template type title.
+ * @type string $description Template type description.
+ * }
+ * }
*/
return apply_filters( 'default_template_types', $default_template_types );
}
@@ -210,7 +252,7 @@ function _filter_block_template_part_area( $type ) {
$type,
WP_TEMPLATE_PART_AREA_UNCATEGORIZED
);
- trigger_error( $warning_message, E_USER_NOTICE );
+ wp_trigger_error( __FUNCTION__, $warning_message );
return WP_TEMPLATE_PART_AREA_UNCATEGORIZED;
}
@@ -249,16 +291,16 @@ function _get_block_templates_paths( $base_directory ) {
* @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'.
* @param string $slug Template slug.
* @return array|null {
- * Array with template metadata if $template_type is one of 'wp_template' or 'wp_template_part',
- * null otherwise.
- *
- * @type string $slug Template slug.
- * @type string $path Template file path.
- * @type string $theme Theme slug.
- * @type string $type Template type.
- * @type string $area Template area. Only for 'wp_template_part'.
- * @type string $title Optional. Template title.
- * @type string[] $postTypes Optional. List of post types that the template supports. Only for 'wp_template'.
+ * Array with template metadata if $template_type is one of 'wp_template' or 'wp_template_part',
+ * null otherwise.
+ *
+ * @type string $slug Template slug.
+ * @type string $path Template file path.
+ * @type string $theme Theme slug.
+ * @type string $type Template type.
+ * @type string $area Template area. Only for 'wp_template_part'.
+ * @type string $title Optional. Template title.
+ * @type string[] $postTypes Optional. List of post types that the template supports. Only for 'wp_template'.
* }
*/
function _get_block_template_file( $template_type, $slug ) {
@@ -320,6 +362,11 @@ function _get_block_templates_files( $template_type, $query = array() ) {
return null;
}
+ $default_template_types = array();
+ if ( 'wp_template' === $template_type ) {
+ $default_template_types = get_default_block_template_types();
+ }
+
// Prepare metadata from $query.
$slugs_to_include = isset( $query['slug__in'] ) ? $query['slug__in'] : array();
$slugs_to_skip = isset( $query['slug__not_in'] ) ? $query['slug__not_in'] : array();
@@ -383,12 +430,19 @@ function _get_block_templates_files( $template_type, $query = array() ) {
if ( 'wp_template' === $template_type ) {
$candidate = _add_block_template_info( $new_template_item );
+ $is_custom = ! isset( $default_template_types[ $candidate['slug'] ] );
+
if (
! $post_type ||
( $post_type && isset( $candidate['postTypes'] ) && in_array( $post_type, $candidate['postTypes'], true ) )
) {
$template_files[ $template_slug ] = $candidate;
}
+
+ // The custom templates with no associated post types are available for all post types.
+ if ( $post_type && ! isset( $candidate['postTypes'] ) && $is_custom ) {
+ $template_files[ $template_slug ] = $candidate;
+ }
}
}
}
@@ -556,8 +610,8 @@ function _build_block_template_result_from_file( $template_file, $template_type
$after_block_visitor = null;
$hooked_blocks = get_hooked_blocks();
if ( ! empty( $hooked_blocks ) || has_filter( 'hooked_block_types' ) ) {
- $before_block_visitor = make_before_block_visitor( $hooked_blocks, $template );
- $after_block_visitor = make_after_block_visitor( $hooked_blocks, $template );
+ $before_block_visitor = make_before_block_visitor( $hooked_blocks, $template, 'insert_hooked_blocks_and_set_ignored_hooked_blocks_metadata' );
+ $after_block_visitor = make_after_block_visitor( $hooked_blocks, $template, 'insert_hooked_blocks_and_set_ignored_hooked_blocks_metadata' );
}
$blocks = parse_blocks( $template->content );
$template->content = traverse_and_serialize_blocks( $blocks, $before_block_visitor, $after_block_visitor );
@@ -942,8 +996,8 @@ function _build_block_template_result_from_post( $post ) {
$hooked_blocks = get_hooked_blocks();
if ( ! empty( $hooked_blocks ) || has_filter( 'hooked_block_types' ) ) {
- $before_block_visitor = make_before_block_visitor( $hooked_blocks, $template );
- $after_block_visitor = make_after_block_visitor( $hooked_blocks, $template );
+ $before_block_visitor = make_before_block_visitor( $hooked_blocks, $template, 'insert_hooked_blocks_and_set_ignored_hooked_blocks_metadata' );
+ $after_block_visitor = make_after_block_visitor( $hooked_blocks, $template, 'insert_hooked_blocks_and_set_ignored_hooked_blocks_metadata' );
$blocks = parse_blocks( $template->content );
$template->content = traverse_and_serialize_blocks( $blocks, $before_block_visitor, $after_block_visitor );
}
@@ -1223,7 +1277,7 @@ function get_block_file_template( $id, $template_type = 'wp_template' ) {
*
* @since 5.9.0
*
- * @param string $part The block template part to print. Either 'header' or 'footer'.
+ * @param string $part The block template part to print, for example 'header' or 'footer'.
*/
function block_template_part( $part ) {
$template_part = get_block_template( get_stylesheet() . '//' . $part, 'wp_template_part' );
@@ -1397,13 +1451,16 @@ function wp_generate_block_templates_export_file() {
*/
function get_template_hierarchy( $slug, $is_custom = false, $template_prefix = '' ) {
if ( 'index' === $slug ) {
- return array( 'index' );
+ /** This filter is documented in wp-includes/template.php */
+ return apply_filters( 'index_template_hierarchy', array( 'index' ) );
}
if ( $is_custom ) {
- return array( 'page', 'singular', 'index' );
+ /** This filter is documented in wp-includes/template.php */
+ return apply_filters( 'page_template_hierarchy', array( 'page', 'singular', 'index' ) );
}
if ( 'front-page' === $slug ) {
- return array( 'front-page', 'home', 'index' );
+ /** This filter is documented in wp-includes/template.php */
+ return apply_filters( 'frontpage_template_hierarchy', array( 'front-page', 'home', 'index' ) );
}
$matches = array();
@@ -1469,6 +1526,18 @@ function get_template_hierarchy( $slug, $is_custom = false, $template_prefix = '
$template_hierarchy[] = 'singular';
}
$template_hierarchy[] = 'index';
+
+ $template_type = '';
+ if ( ! empty( $template_prefix ) ) {
+ list( $template_type ) = explode( '-', $template_prefix );
+ } else {
+ list( $template_type ) = explode( '-', $slug );
+ }
+ $valid_template_types = array( '404', 'archive', 'attachment', 'author', 'category', 'date', 'embed', 'frontpage', 'home', 'index', 'page', 'paged', 'privacypolicy', 'search', 'single', 'singular', 'tag', 'taxonomy' );
+ if ( in_array( $template_type, $valid_template_types, true ) ) {
+ /** This filter is documented in wp-includes/template.php */
+ return apply_filters( "{$template_type}_template_hierarchy", $template_hierarchy );
+ }
return $template_hierarchy;
}
@@ -1542,11 +1611,7 @@ function inject_ignored_hooked_blocks_metadata_attributes( $changes, $deprecated
return $template;
}
- $before_block_visitor = make_before_block_visitor( $hooked_blocks, $template, 'set_ignored_hooked_blocks_metadata' );
- $after_block_visitor = make_after_block_visitor( $hooked_blocks, $template, 'set_ignored_hooked_blocks_metadata' );
-
- $blocks = parse_blocks( $changes->post_content );
- $changes->post_content = traverse_and_serialize_blocks( $blocks, $before_block_visitor, $after_block_visitor );
+ $changes->post_content = apply_block_hooks_to_content( $changes->post_content, $template, 'set_ignored_hooked_blocks_metadata' );
return $changes;
}
diff --git a/wp-includes/block-template.php b/wp-includes/block-template.php
index 7030e2e..0a4d85a 100644
--- a/wp-includes/block-template.php
+++ b/wp-includes/block-template.php
@@ -210,8 +210,8 @@ function _block_template_render_title_tag() {
*
* @global string $_wp_current_template_id
* @global string $_wp_current_template_content
- * @global WP_Embed $wp_embed
- * @global WP_Query $wp_query
+ * @global WP_Embed $wp_embed WordPress Embed object.
+ * @global WP_Query $wp_query WordPress Query object.
*
* @return string Block template markup.
*/
diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php
index 5b452c6..26e5e0c 100644
--- a/wp-includes/blocks.php
+++ b/wp-includes/blocks.php
@@ -858,11 +858,11 @@ function get_hooked_blocks() {
* @since 6.5.0
* @access private
*
- * @param array $parsed_anchor_block The anchor block, in parsed block array format.
- * @param string $relative_position The relative position of the hooked blocks.
- * Can be one of 'before', 'after', 'first_child', or 'last_child'.
- * @param array $hooked_blocks An array of hooked block types, grouped by anchor block and relative position.
- * @param WP_Block_Template|array $context The block template, template part, or pattern that the anchor block belongs to.
+ * @param array $parsed_anchor_block The anchor block, in parsed block array format.
+ * @param string $relative_position The relative position of the hooked blocks.
+ * Can be one of 'before', 'after', 'first_child', or 'last_child'.
+ * @param array $hooked_blocks An array of hooked block types, grouped by anchor block and relative position.
+ * @param WP_Block_Template|WP_Post|array $context The block template, template part, or pattern that the anchor block belongs to.
* @return string
*/
function insert_hooked_blocks( &$parsed_anchor_block, $relative_position, $hooked_blocks, $context ) {
@@ -949,12 +949,12 @@ function insert_hooked_blocks( &$parsed_anchor_block, $relative_position, $hooke
* @since 6.5.0
* @access private
*
- * @param array $parsed_anchor_block The anchor block, in parsed block array format.
- * @param string $relative_position The relative position of the hooked blocks.
- * Can be one of 'before', 'after', 'first_child', or 'last_child'.
- * @param array $hooked_blocks An array of hooked block types, grouped by anchor block and relative position.
- * @param WP_Block_Template|array $context The block template, template part, or pattern that the anchor block belongs to.
- * @return string An empty string.
+ * @param array $parsed_anchor_block The anchor block, in parsed block array format.
+ * @param string $relative_position The relative position of the hooked blocks.
+ * Can be one of 'before', 'after', 'first_child', or 'last_child'.
+ * @param array $hooked_blocks An array of hooked block types, grouped by anchor block and relative position.
+ * @param WP_Block_Template|WP_Post|array $context The block template, template part, or pattern that the anchor block belongs to.
+ * @return string Empty string.
*/
function set_ignored_hooked_blocks_metadata( &$parsed_anchor_block, $relative_position, $hooked_blocks, $context ) {
$anchor_block_type = $parsed_anchor_block['blockName'];
@@ -1003,6 +1003,183 @@ function set_ignored_hooked_blocks_metadata( &$parsed_anchor_block, $relative_po
}
/**
+ * Runs the hooked blocks algorithm on the given content.
+ *
+ * @since 6.6.0
+ * @access private
+ *
+ * @param string $content Serialized content.
+ * @param WP_Block_Template|WP_Post|array $context A block template, template part, `wp_navigation` post object,
+ * or pattern that the blocks belong to.
+ * @param callable $callback A function that will be called for each block to generate
+ * the markup for a given list of blocks that are hooked to it.
+ * Default: 'insert_hooked_blocks'.
+ * @return string The serialized markup.
+ */
+function apply_block_hooks_to_content( $content, $context, $callback = 'insert_hooked_blocks' ) {
+ $hooked_blocks = get_hooked_blocks();
+ if ( empty( $hooked_blocks ) && ! has_filter( 'hooked_block_types' ) ) {
+ return $content;
+ }
+
+ $blocks = parse_blocks( $content );
+
+ $before_block_visitor = make_before_block_visitor( $hooked_blocks, $context, $callback );
+ $after_block_visitor = make_after_block_visitor( $hooked_blocks, $context, $callback );
+
+ return traverse_and_serialize_blocks( $blocks, $before_block_visitor, $after_block_visitor );
+}
+
+/**
+ * Accepts the serialized markup of a block and its inner blocks, and returns serialized markup of the inner blocks.
+ *
+ * @since 6.6.0
+ * @access private
+ *
+ * @param string $serialized_block The serialized markup of a block and its inner blocks.
+ * @return string The serialized markup of the inner blocks.
+ */
+function remove_serialized_parent_block( $serialized_block ) {
+ $start = strpos( $serialized_block, '-->' ) + strlen( '-->' );
+ $end = strrpos( $serialized_block, '<!--' );
+ return substr( $serialized_block, $start, $end - $start );
+}
+
+/**
+ * Updates the wp_postmeta with the list of ignored hooked blocks where the inner blocks are stored as post content.
+ * Currently only supports `wp_navigation` post types.
+ *
+ * @since 6.6.0
+ * @access private
+ *
+ * @param stdClass $post Post object.
+ * @return stdClass The updated post object.
+ */
+function update_ignored_hooked_blocks_postmeta( $post ) {
+ /*
+ * In this scenario the user has likely tried to create a navigation via the REST API.
+ * In which case we won't have a post ID to work with and store meta against.
+ */
+ if ( empty( $post->ID ) ) {
+ return $post;
+ }
+
+ /*
+ * Skip meta generation when consumers intentionally update specific Navigation fields
+ * and omit the content update.
+ */
+ if ( ! isset( $post->post_content ) ) {
+ return $post;
+ }
+
+ /*
+ * Skip meta generation when the post content is not a navigation block.
+ */
+ if ( ! isset( $post->post_type ) || 'wp_navigation' !== $post->post_type ) {
+ return $post;
+ }
+
+ $attributes = array();
+
+ $ignored_hooked_blocks = get_post_meta( $post->ID, '_wp_ignored_hooked_blocks', true );
+ if ( ! empty( $ignored_hooked_blocks ) ) {
+ $ignored_hooked_blocks = json_decode( $ignored_hooked_blocks, true );
+ $attributes['metadata'] = array(
+ 'ignoredHookedBlocks' => $ignored_hooked_blocks,
+ );
+ }
+
+ $markup = get_comment_delimited_block_content(
+ 'core/navigation',
+ $attributes,
+ $post->post_content
+ );
+
+ $serialized_block = apply_block_hooks_to_content( $markup, get_post( $post->ID ), 'set_ignored_hooked_blocks_metadata' );
+ $root_block = parse_blocks( $serialized_block )[0];
+
+ $ignored_hooked_blocks = isset( $root_block['attrs']['metadata']['ignoredHookedBlocks'] )
+ ? $root_block['attrs']['metadata']['ignoredHookedBlocks']
+ : array();
+
+ if ( ! empty( $ignored_hooked_blocks ) ) {
+ $existing_ignored_hooked_blocks = get_post_meta( $post->ID, '_wp_ignored_hooked_blocks', true );
+ if ( ! empty( $existing_ignored_hooked_blocks ) ) {
+ $existing_ignored_hooked_blocks = json_decode( $existing_ignored_hooked_blocks, true );
+ $ignored_hooked_blocks = array_unique( array_merge( $ignored_hooked_blocks, $existing_ignored_hooked_blocks ) );
+ }
+ update_post_meta( $post->ID, '_wp_ignored_hooked_blocks', json_encode( $ignored_hooked_blocks ) );
+ }
+
+ $post->post_content = remove_serialized_parent_block( $serialized_block );
+ return $post;
+}
+
+/**
+ * Returns the markup for blocks hooked to the given anchor block in a specific relative position and then
+ * adds a list of hooked block types to an anchor block's ignored hooked block types.
+ *
+ * This function is meant for internal use only.
+ *
+ * @since 6.6.0
+ * @access private
+ *
+ * @param array $parsed_anchor_block The anchor block, in parsed block array format.
+ * @param string $relative_position The relative position of the hooked blocks.
+ * Can be one of 'before', 'after', 'first_child', or 'last_child'.
+ * @param array $hooked_blocks An array of hooked block types, grouped by anchor block and relative position.
+ * @param WP_Block_Template|WP_Post|array $context The block template, template part, or pattern that the anchor block belongs to.
+ * @return string
+ */
+function insert_hooked_blocks_and_set_ignored_hooked_blocks_metadata( &$parsed_anchor_block, $relative_position, $hooked_blocks, $context ) {
+ $markup = insert_hooked_blocks( $parsed_anchor_block, $relative_position, $hooked_blocks, $context );
+ $markup .= set_ignored_hooked_blocks_metadata( $parsed_anchor_block, $relative_position, $hooked_blocks, $context );
+
+ return $markup;
+}
+
+/**
+ * Hooks into the REST API response for the core/navigation block and adds the first and last inner blocks.
+ *
+ * @since 6.6.0
+ *
+ * @param WP_REST_Response $response The response object.
+ * @param WP_Post $post Post object.
+ * @return WP_REST_Response The response object.
+ */
+function insert_hooked_blocks_into_rest_response( $response, $post ) {
+ if ( ! isset( $response->data['content']['raw'] ) || ! isset( $response->data['content']['rendered'] ) ) {
+ return $response;
+ }
+
+ $attributes = array();
+ $ignored_hooked_blocks = get_post_meta( $post->ID, '_wp_ignored_hooked_blocks', true );
+ if ( ! empty( $ignored_hooked_blocks ) ) {
+ $ignored_hooked_blocks = json_decode( $ignored_hooked_blocks, true );
+ $attributes['metadata'] = array(
+ 'ignoredHookedBlocks' => $ignored_hooked_blocks,
+ );
+ }
+ $content = get_comment_delimited_block_content(
+ 'core/navigation',
+ $attributes,
+ $response->data['content']['raw']
+ );
+
+ $content = apply_block_hooks_to_content( $content, $post );
+
+ // Remove mock Navigation block wrapper.
+ $content = remove_serialized_parent_block( $content );
+
+ $response->data['content']['raw'] = $content;
+
+ /** This filter is documented in wp-includes/post-template.php */
+ $response->data['content']['rendered'] = apply_filters( 'the_content', $content );
+
+ return $response;
+}
+
+/**
* Returns a function that injects the theme attribute into, and hooked blocks before, a given block.
*
* The returned function can be used as `$pre_callback` argument to `traverse_and_serialize_block(s)`,
@@ -1201,7 +1378,17 @@ function get_comment_delimited_block_content( $block_name, $block_attributes, $b
*
* @since 5.3.1
*
- * @param array $block A representative array of a single parsed block object. See WP_Block_Parser_Block.
+ * @param array $block {
+ * A representative array of a single parsed block object. See WP_Block_Parser_Block.
+ *
+ * @type string $blockName Name of block.
+ * @type array $attrs Attributes from block comment delimiters.
+ * @type array[] $innerBlocks List of inner blocks. An array of arrays that
+ * have the same structure as this one.
+ * @type string $innerHTML HTML from inside block comment delimiters.
+ * @type array $innerContent List of string fragments and null markers where
+ * inner blocks were found.
+ * }
* @return string String of rendered HTML.
*/
function serialize_block( $block ) {
@@ -1229,7 +1416,21 @@ function serialize_block( $block ) {
*
* @since 5.3.1
*
- * @param array[] $blocks An array of representative arrays of parsed block objects. See serialize_block().
+ * @param array[] $blocks {
+ * Array of block structures.
+ *
+ * @type array ...$0 {
+ * A representative array of a single parsed block object. See WP_Block_Parser_Block.
+ *
+ * @type string $blockName Name of block.
+ * @type array $attrs Attributes from block comment delimiters.
+ * @type array[] $innerBlocks List of inner blocks. An array of arrays that
+ * have the same structure as this one.
+ * @type string $innerHTML HTML from inside block comment delimiters.
+ * @type array $innerContent List of string fragments and null markers where
+ * inner blocks were found.
+ * }
+ * }
* @return string String of rendered HTML.
*/
function serialize_blocks( $blocks ) {
@@ -1321,6 +1522,83 @@ function traverse_and_serialize_block( $block, $pre_callback = null, $post_callb
}
/**
+ * Replaces patterns in a block tree with their content.
+ *
+ * @since 6.6.0
+ *
+ * @param array $blocks An array blocks.
+ *
+ * @return array An array of blocks with patterns replaced by their content.
+ */
+function resolve_pattern_blocks( $blocks ) {
+ static $inner_content;
+ // Keep track of seen references to avoid infinite loops.
+ static $seen_refs = array();
+ $i = 0;
+ while ( $i < count( $blocks ) ) {
+ if ( 'core/pattern' === $blocks[ $i ]['blockName'] ) {
+ $attrs = $blocks[ $i ]['attrs'];
+
+ if ( empty( $attrs['slug'] ) ) {
+ ++$i;
+ continue;
+ }
+
+ $slug = $attrs['slug'];
+
+ if ( isset( $seen_refs[ $slug ] ) ) {
+ // Skip recursive patterns.
+ array_splice( $blocks, $i, 1 );
+ continue;
+ }
+
+ $registry = WP_Block_Patterns_Registry::get_instance();
+ $pattern = $registry->get_registered( $slug );
+
+ // Skip unknown patterns.
+ if ( ! $pattern ) {
+ ++$i;
+ continue;
+ }
+
+ $blocks_to_insert = parse_blocks( $pattern['content'] );
+ $seen_refs[ $slug ] = true;
+ $prev_inner_content = $inner_content;
+ $inner_content = null;
+ $blocks_to_insert = resolve_pattern_blocks( $blocks_to_insert );
+ $inner_content = $prev_inner_content;
+ unset( $seen_refs[ $slug ] );
+ array_splice( $blocks, $i, 1, $blocks_to_insert );
+
+ // If we have inner content, we need to insert nulls in the
+ // inner content array, otherwise serialize_blocks will skip
+ // blocks.
+ if ( $inner_content ) {
+ $null_indices = array_keys( $inner_content, null, true );
+ $content_index = $null_indices[ $i ];
+ $nulls = array_fill( 0, count( $blocks_to_insert ), null );
+ array_splice( $inner_content, $content_index, 1, $nulls );
+ }
+
+ // Skip inserted blocks.
+ $i += count( $blocks_to_insert );
+ } else {
+ if ( ! empty( $blocks[ $i ]['innerBlocks'] ) ) {
+ $prev_inner_content = $inner_content;
+ $inner_content = $blocks[ $i ]['innerContent'];
+ $blocks[ $i ]['innerBlocks'] = resolve_pattern_blocks(
+ $blocks[ $i ]['innerBlocks']
+ );
+ $blocks[ $i ]['innerContent'] = $inner_content;
+ $inner_content = $prev_inner_content;
+ }
+ ++$i;
+ }
+ }
+ return $blocks;
+}
+
+/**
* Given an array of parsed block trees, applies callbacks before and after serializing them and
* returns their concatenated output.
*
@@ -1483,7 +1761,6 @@ function filter_block_kses_value( $value, $allowed_html, $allowed_protocols = ar
if ( isset( $block_context['blockName'] ) && 'core/template-part' === $block_context['blockName'] ) {
$filtered_value = filter_block_core_template_part_attributes( $filtered_value, $filtered_key, $allowed_html );
}
-
if ( $filtered_key !== $key ) {
unset( $value[ $key ] );
}
@@ -1502,11 +1779,11 @@ function filter_block_kses_value( $value, $allowed_html, $allowed_protocols = ar
*
* @since 6.5.5
*
- * @param string $attribute_value The attribute value to filter.
- * @param string $attribute_name The attribute name.
- * @param array[]|string $allowed_html An array of allowed HTML elements and attributes,
- * or a context name such as 'post'. See wp_kses_allowed_html()
- * for the list of accepted context names.
+ * @param string $attribute_value The attribute value to filter.
+ * @param string $attribute_name The attribute name.
+ * @param array[]|string $allowed_html An array of allowed HTML elements and attributes,
+ * or a context name such as 'post'. See wp_kses_allowed_html()
+ * for the list of accepted context names.
* @return string The sanitized attribute value.
*/
function filter_block_core_template_part_attributes( $attribute_value, $attribute_name, $allowed_html ) {
@@ -1666,7 +1943,17 @@ function _excerpt_render_inner_blocks( $parsed_block, $allowed_blocks ) {
*
* @global WP_Post $post The post to edit.
*
- * @param array $parsed_block A single parsed block object.
+ * @param array $parsed_block {
+ * A representative array of the block being rendered. See WP_Block_Parser_Block.
+ *
+ * @type string $blockName Name of block.
+ * @type array $attrs Attributes from block comment delimiters.
+ * @type array[] $innerBlocks List of inner blocks. An array of arrays that
+ * have the same structure as this one.
+ * @type string $innerHTML HTML from inside block comment delimiters.
+ * @type array $innerContent List of string fragments and null markers where
+ * inner blocks were found.
+ * }
* @return string String of rendered HTML.
*/
function render_block( $parsed_block ) {
@@ -1680,7 +1967,17 @@ function render_block( $parsed_block ) {
* @since 5.9.0 The `$parent_block` parameter was added.
*
* @param string|null $pre_render The pre-rendered content. Default null.
- * @param array $parsed_block The block being rendered.
+ * @param array $parsed_block {
+ * A representative array of the block being rendered. See WP_Block_Parser_Block.
+ *
+ * @type string $blockName Name of block.
+ * @type array $attrs Attributes from block comment delimiters.
+ * @type array[] $innerBlocks List of inner blocks. An array of arrays that
+ * have the same structure as this one.
+ * @type string $innerHTML HTML from inside block comment delimiters.
+ * @type array $innerContent List of string fragments and null markers where
+ * inner blocks were found.
+ * }
* @param WP_Block|null $parent_block If this is a nested block, a reference to the parent block.
*/
$pre_render = apply_filters( 'pre_render_block', null, $parsed_block, $parent_block );
@@ -1696,8 +1993,29 @@ function render_block( $parsed_block ) {
* @since 5.1.0
* @since 5.9.0 The `$parent_block` parameter was added.
*
- * @param array $parsed_block The block being rendered.
- * @param array $source_block An un-modified copy of $parsed_block, as it appeared in the source content.
+ * @param array $parsed_block {
+ * A representative array of the block being rendered. See WP_Block_Parser_Block.
+ *
+ * @type string $blockName Name of block.
+ * @type array $attrs Attributes from block comment delimiters.
+ * @type array[] $innerBlocks List of inner blocks. An array of arrays that
+ * have the same structure as this one.
+ * @type string $innerHTML HTML from inside block comment delimiters.
+ * @type array $innerContent List of string fragments and null markers where
+ * inner blocks were found.
+ * }
+ * @param array $source_block {
+ * An un-modified copy of `$parsed_block`, as it appeared in the source content.
+ * See WP_Block_Parser_Block.
+ *
+ * @type string $blockName Name of block.
+ * @type array $attrs Attributes from block comment delimiters.
+ * @type array[] $innerBlocks List of inner blocks. An array of arrays that
+ * have the same structure as this one.
+ * @type string $innerHTML HTML from inside block comment delimiters.
+ * @type array $innerContent List of string fragments and null markers where
+ * inner blocks were found.
+ * }
* @param WP_Block|null $parent_block If this is a nested block, a reference to the parent block.
*/
$parsed_block = apply_filters( 'render_block_data', $parsed_block, $source_block, $parent_block );
@@ -1723,7 +2041,17 @@ function render_block( $parsed_block ) {
* @since 5.9.0 The `$parent_block` parameter was added.
*
* @param array $context Default context.
- * @param array $parsed_block Block being rendered, filtered by `render_block_data`.
+ * @param array $parsed_block {
+ * A representative array of the block being rendered. See WP_Block_Parser_Block.
+ *
+ * @type string $blockName Name of block.
+ * @type array $attrs Attributes from block comment delimiters.
+ * @type array[] $innerBlocks List of inner blocks. An array of arrays that
+ * have the same structure as this one.
+ * @type string $innerHTML HTML from inside block comment delimiters.
+ * @type array $innerContent List of string fragments and null markers where
+ * inner blocks were found.
+ * }
* @param WP_Block|null $parent_block If this is a nested block, a reference to the parent block.
*/
$context = apply_filters( 'render_block_context', $context, $parsed_block, $parent_block );
@@ -1739,7 +2067,21 @@ function render_block( $parsed_block ) {
* @since 5.0.0
*
* @param string $content Post content.
- * @return array[] Array of parsed block objects.
+ * @return array[] {
+ * Array of block structures.
+ *
+ * @type array ...$0 {
+ * A representative array of a single parsed block object. See WP_Block_Parser_Block.
+ *
+ * @type string $blockName Name of block.
+ * @type array $attrs Attributes from block comment delimiters.
+ * @type array[] $innerBlocks List of inner blocks. An array of arrays that
+ * have the same structure as this one.
+ * @type string $innerHTML HTML from inside block comment delimiters.
+ * @type array $innerContent List of string fragments and null markers where
+ * inner blocks were found.
+ * }
+ * }
*/
function parse_blocks( $content ) {
/**
@@ -1818,14 +2160,16 @@ function block_version( $content ) {
* Registers a new block style.
*
* @since 5.3.0
+ * @since 6.6.0 Added support for registering styles for multiple block types.
*
* @link https://developer.wordpress.org/block-editor/reference-guides/block-api/block-styles/
*
- * @param string $block_name Block type name including namespace.
- * @param array $style_properties Array containing the properties of the style name, label,
- * style_handle (name of the stylesheet to be enqueued),
- * inline_style (string containing the CSS to be added).
- * See WP_Block_Styles_Registry::register().
+ * @param string|string[] $block_name Block type name including namespace or array of namespaced block type names.
+ * @param array $style_properties Array containing the properties of the style name, label,
+ * style_handle (name of the stylesheet to be enqueued),
+ * inline_style (string containing the CSS to be added),
+ * style_data (theme.json-like array to generate CSS from).
+ * See WP_Block_Styles_Registry::register().
* @return bool True if the block style was registered with success and false otherwise.
*/
function register_block_style( $block_name, $style_properties ) {
diff --git a/wp-includes/blocks/archives.php b/wp-includes/blocks/archives.php
index 695affd..2846b6c 100644
--- a/wp-includes/blocks/archives.php
+++ b/wp-includes/blocks/archives.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/archives` block on server.
*
+ * @since 5.0.0
+ *
* @see WP_Widget_Archives
*
* @param array $attributes The block attributes.
@@ -106,6 +108,8 @@ function render_block_core_archives( $attributes ) {
/**
* Register archives block.
+ *
+ * @since 5.0.0
*/
function register_block_core_archives() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/audio/style-rtl.css b/wp-includes/blocks/audio/style-rtl.css
index 015fc69..78fb008 100644
--- a/wp-includes/blocks/audio/style-rtl.css
+++ b/wp-includes/blocks/audio/style-rtl.css
@@ -1,7 +1,7 @@
.wp-block-audio{
box-sizing:border-box;
}
-.wp-block-audio figcaption{
+.wp-block-audio :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
diff --git a/wp-includes/blocks/audio/style-rtl.min.css b/wp-includes/blocks/audio/style-rtl.min.css
index 1d18616..d2a2e81 100644
--- a/wp-includes/blocks/audio/style-rtl.min.css
+++ b/wp-includes/blocks/audio/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-audio{box-sizing:border-box}.wp-block-audio figcaption{margin-bottom:1em;margin-top:.5em}.wp-block-audio audio{min-width:300px;width:100%} \ No newline at end of file
+.wp-block-audio{box-sizing:border-box}.wp-block-audio :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-audio audio{min-width:300px;width:100%} \ No newline at end of file
diff --git a/wp-includes/blocks/audio/style.css b/wp-includes/blocks/audio/style.css
index 015fc69..78fb008 100644
--- a/wp-includes/blocks/audio/style.css
+++ b/wp-includes/blocks/audio/style.css
@@ -1,7 +1,7 @@
.wp-block-audio{
box-sizing:border-box;
}
-.wp-block-audio figcaption{
+.wp-block-audio :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
diff --git a/wp-includes/blocks/audio/style.min.css b/wp-includes/blocks/audio/style.min.css
index 1d18616..d2a2e81 100644
--- a/wp-includes/blocks/audio/style.min.css
+++ b/wp-includes/blocks/audio/style.min.css
@@ -1 +1 @@
-.wp-block-audio{box-sizing:border-box}.wp-block-audio figcaption{margin-bottom:1em;margin-top:.5em}.wp-block-audio audio{min-width:300px;width:100%} \ No newline at end of file
+.wp-block-audio{box-sizing:border-box}.wp-block-audio :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-audio audio{min-width:300px;width:100%} \ No newline at end of file
diff --git a/wp-includes/blocks/audio/theme-rtl.css b/wp-includes/blocks/audio/theme-rtl.css
index a6b7d46..bf8dc07 100644
--- a/wp-includes/blocks/audio/theme-rtl.css
+++ b/wp-includes/blocks/audio/theme-rtl.css
@@ -1,9 +1,9 @@
-.wp-block-audio figcaption{
+.wp-block-audio :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-audio figcaption{
+.is-dark-theme .wp-block-audio :where(figcaption){
color:#ffffffa6;
}
diff --git a/wp-includes/blocks/audio/theme-rtl.min.css b/wp-includes/blocks/audio/theme-rtl.min.css
index 24c36ae..919bdd3 100644
--- a/wp-includes/blocks/audio/theme-rtl.min.css
+++ b/wp-includes/blocks/audio/theme-rtl.min.css
@@ -1 +1 @@
-.wp-block-audio figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio figcaption{color:#ffffffa6}.wp-block-audio{margin:0 0 1em} \ No newline at end of file
+.wp-block-audio :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio :where(figcaption){color:#ffffffa6}.wp-block-audio{margin:0 0 1em} \ No newline at end of file
diff --git a/wp-includes/blocks/audio/theme.css b/wp-includes/blocks/audio/theme.css
index a6b7d46..bf8dc07 100644
--- a/wp-includes/blocks/audio/theme.css
+++ b/wp-includes/blocks/audio/theme.css
@@ -1,9 +1,9 @@
-.wp-block-audio figcaption{
+.wp-block-audio :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-audio figcaption{
+.is-dark-theme .wp-block-audio :where(figcaption){
color:#ffffffa6;
}
diff --git a/wp-includes/blocks/audio/theme.min.css b/wp-includes/blocks/audio/theme.min.css
index 24c36ae..919bdd3 100644
--- a/wp-includes/blocks/audio/theme.min.css
+++ b/wp-includes/blocks/audio/theme.min.css
@@ -1 +1 @@
-.wp-block-audio figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio figcaption{color:#ffffffa6}.wp-block-audio{margin:0 0 1em} \ No newline at end of file
+.wp-block-audio :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio :where(figcaption){color:#ffffffa6}.wp-block-audio{margin:0 0 1em} \ No newline at end of file
diff --git a/wp-includes/blocks/avatar.php b/wp-includes/blocks/avatar.php
index ba6a5e0..cc86052 100644
--- a/wp-includes/blocks/avatar.php
+++ b/wp-includes/blocks/avatar.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/avatar` block on the server.
*
+ * @since 6.0.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -31,7 +33,18 @@ function render_block_core_avatar( $attributes, $content, $block ) {
: '';
if ( ! isset( $block->context['commentId'] ) ) {
- $author_id = isset( $attributes['userId'] ) ? $attributes['userId'] : get_post_field( 'post_author', $block->context['postId'] );
+ if ( isset( $attributes['userId'] ) ) {
+ $author_id = $attributes['userId'];
+ } elseif ( isset( $block->context['postId'] ) ) {
+ $author_id = get_post_field( 'post_author', $block->context['postId'] );
+ } else {
+ $author_id = get_query_var( 'author' );
+ }
+
+ if ( empty( $author_id ) ) {
+ return '';
+ }
+
$author_name = get_the_author_meta( 'display_name', $author_id );
// translators: %s is the Author name.
$alt = sprintf( __( '%s Avatar' ), $author_name );
@@ -88,6 +101,8 @@ function render_block_core_avatar( $attributes, $content, $block ) {
* Generates class names and styles to apply the border support styles for
* the Avatar block.
*
+ * @since 6.3.0
+ *
* @param array $attributes The block attributes.
* @return array The border-related classnames and styles for the block.
*/
@@ -138,6 +153,8 @@ function get_block_core_avatar_border_attributes( $attributes ) {
/**
* Registers the `core/avatar` block on the server.
+ *
+ * @since 6.0.0
*/
function register_block_core_avatar() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/block.php b/wp-includes/blocks/block.php
index 4886373..8beef97 100644
--- a/wp-includes/blocks/block.php
+++ b/wp-includes/blocks/block.php
@@ -8,6 +8,10 @@
/**
* Renders the `core/block` block on server.
*
+ * @since 5.0.0
+ *
+ * @global WP_Embed $wp_embed
+ *
* @param array $attributes The block attributes.
*
* @return string Rendered HTML of the referenced block.
@@ -74,7 +78,7 @@ function render_block_core_block( $attributes ) {
* filter so that it is available when a pattern's inner blocks are
* rendering via do_blocks given it only receives the inner content.
*/
- $has_pattern_overrides = isset( $attributes['content'] );
+ $has_pattern_overrides = isset( $attributes['content'] ) && null !== get_block_bindings_source( 'core/pattern-overrides' );
if ( $has_pattern_overrides ) {
$filter_block_context = static function ( $context ) use ( $attributes ) {
$context['pattern/overrides'] = $attributes['content'];
@@ -95,6 +99,8 @@ function render_block_core_block( $attributes ) {
/**
* Registers the `core/block` block.
+ *
+ * @since 5.3.0
*/
function register_block_core_block() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/block/block.json b/wp-includes/blocks/block/block.json
index 34dcb9a..fdce3bc 100644
--- a/wp-includes/blocks/block/block.json
+++ b/wp-includes/blocks/block/block.json
@@ -12,9 +12,13 @@
"type": "number"
},
"content": {
- "type": "object"
+ "type": "object",
+ "default": {}
}
},
+ "providesContext": {
+ "pattern/overrides": "content"
+ },
"supports": {
"customClassName": false,
"html": false,
diff --git a/wp-includes/blocks/block/editor-rtl.css b/wp-includes/blocks/block/editor-rtl.css
deleted file mode 100644
index da6bc36..0000000
--- a/wp-includes/blocks/block/editor-rtl.css
+++ /dev/null
@@ -1,20 +0,0 @@
-.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;
-}
-.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{
- display:none;
-}
-
-.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected{
- box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
-}
-.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
-}
-.is-dark-theme .edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff;
-} \ No newline at end of file
diff --git a/wp-includes/blocks/block/editor-rtl.min.css b/wp-includes/blocks/block/editor-rtl.min.css
deleted file mode 100644
index cd6495b..0000000
--- a/wp-includes/blocks/block/editor-rtl.min.css
+++ /dev/null
@@ -1 +0,0 @@
-.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}.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{display:none}.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.is-dark-theme .edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff} \ No newline at end of file
diff --git a/wp-includes/blocks/block/editor.css b/wp-includes/blocks/block/editor.css
deleted file mode 100644
index da6bc36..0000000
--- a/wp-includes/blocks/block/editor.css
+++ /dev/null
@@ -1,20 +0,0 @@
-.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;
-}
-.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{
- display:none;
-}
-
-.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected{
- box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
-}
-.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
-}
-.is-dark-theme .edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff;
-} \ No newline at end of file
diff --git a/wp-includes/blocks/block/editor.min.css b/wp-includes/blocks/block/editor.min.css
deleted file mode 100644
index cd6495b..0000000
--- a/wp-includes/blocks/block/editor.min.css
+++ /dev/null
@@ -1 +0,0 @@
-.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}.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{display:none}.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.is-dark-theme .edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff} \ No newline at end of file
diff --git a/wp-includes/blocks/blocks-json.php b/wp-includes/blocks/blocks-json.php
index ad2b43e..46e8470 100644
--- a/wp-includes/blocks/blocks-json.php
+++ b/wp-includes/blocks/blocks-json.php
@@ -207,9 +207,15 @@
'type' => 'number'
),
'content' => array(
- 'type' => 'object'
+ 'type' => 'object',
+ 'default' => array(
+
+ )
)
),
+ 'providesContext' => array(
+ 'pattern/overrides' => 'content'
+ ),
'supports' => array(
'customClassName' => false,
'html' => false,
@@ -302,6 +308,7 @@
),
'supports' => array(
'anchor' => true,
+ 'splitting' => true,
'align' => false,
'alignWide' => false,
'color' => array(
@@ -1557,6 +1564,7 @@
'anchor' => true,
'align' => true,
'html' => false,
+ 'shadow' => true,
'spacing' => array(
'padding' => true,
'margin' => array(
@@ -1643,6 +1651,7 @@
)
),
'supports' => array(
+ '__experimentalOnEnter' => true,
'align' => array(
'wide',
'full'
@@ -2240,6 +2249,7 @@
),
'anchor' => true,
'className' => true,
+ 'splitting' => true,
'color' => array(
'gradients' => true,
'link' => true,
@@ -2770,7 +2780,7 @@
),
'supports' => array(
'anchor' => true,
- 'className' => false,
+ 'html' => false,
'typography' => array(
'fontSize' => true,
'lineHeight' => true,
@@ -2801,7 +2811,6 @@
)
),
'__unstablePasteTextInline' => true,
- '__experimentalSelector' => 'ol,ul',
'__experimentalOnMerge' => true,
'__experimentalSlashInserter' => true,
'interactivity' => array(
@@ -2838,7 +2847,8 @@
),
'supports' => array(
'className' => false,
- '__experimentalSelector' => 'li',
+ '__experimentalSelector' => '.wp-block-list > li',
+ 'splitting' => true,
'spacing' => array(
'margin' => true,
'padding' => true,
@@ -3013,8 +3023,16 @@
),
'allowedBlocks' => array(
'type' => 'array'
+ ),
+ 'useFeaturedImage' => array(
+ 'type' => 'boolean',
+ 'default' => false
)
),
+ 'usesContext' => array(
+ 'postId',
+ 'postType'
+ ),
'supports' => array(
'anchor' => true,
'align' => array(
@@ -3099,7 +3117,8 @@
'textdomain' => 'default',
'attributes' => array(
'customText' => array(
- 'type' => 'string'
+ 'type' => 'string',
+ 'default' => ''
),
'noTeaser' => array(
'type' => 'boolean',
@@ -3279,15 +3298,6 @@
'type' => 'flex'
)
),
- '__experimentalStyle' => array(
- 'elements' => array(
- 'link' => array(
- 'color' => array(
- 'text' => 'inherit'
- )
- )
- )
- ),
'interactivity' => true,
'renaming' => false
),
@@ -3613,9 +3623,6 @@
'text'
),
'textdomain' => 'default',
- 'usesContext' => array(
- 'postId'
- ),
'attributes' => array(
'align' => array(
'type' => 'string'
@@ -3642,6 +3649,7 @@
)
),
'supports' => array(
+ 'splitting' => true,
'anchor' => true,
'className' => false,
'color' => array(
@@ -4185,7 +4193,6 @@
'full'
),
'color' => array(
- '__experimentalDuotone' => 'img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before',
'text' => false,
'background' => false
),
@@ -4193,7 +4200,6 @@
'color' => true,
'radius' => true,
'width' => true,
- '__experimentalSelector' => 'img, .block-editor-media-placeholder, .wp-block-post-featured-image__overlay',
'__experimentalSkipSerialization' => true,
'__experimentalDefaultControls' => array(
'color' => true,
@@ -4201,6 +4207,12 @@
'width' => true
)
),
+ 'filter' => array(
+ 'duotone' => true
+ ),
+ 'shadow' => array(
+ '__experimentalSkipSerialization' => true
+ ),
'html' => false,
'spacing' => array(
'margin' => true,
@@ -4210,6 +4222,13 @@
'clientNavigation' => true
)
),
+ 'selectors' => array(
+ 'border' => '.wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay',
+ 'shadow' => '.wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder',
+ 'filter' => array(
+ 'duotone' => '.wp-block-post-featured-image img, .wp-block-post-featured-image .wp-block-post-featured-image__placeholder, .wp-block-post-featured-image .components-placeholder__illustration, .wp-block-post-featured-image .components-placeholder::before'
+ )
+ ),
'editorStyle' => 'wp-block-post-featured-image-editor',
'style' => 'wp-block-post-featured-image'
),
@@ -5035,7 +5054,7 @@
'selector' => 'cite',
'__experimentalRole' => 'content'
),
- 'align' => array(
+ 'textAlign' => array(
'type' => 'string'
)
),
@@ -5475,6 +5494,10 @@
'attributes' => array(
'textAlign' => array(
'type' => 'string'
+ ),
+ 'level' => array(
+ 'type' => 'number',
+ 'default' => 0
)
),
'example' => array(
@@ -5600,7 +5623,7 @@
'parent' => array(
'core/social-links'
),
- 'description' => 'Display an icon linking to a social media profile or site.',
+ 'description' => 'Display an icon linking to a social profile or site.',
'textdomain' => 'default',
'attributes' => array(
'url' => array(
@@ -5642,7 +5665,7 @@
'allowedBlocks' => array(
'core/social-link'
),
- 'description' => 'Display icons linking to your social media profiles or sites.',
+ 'description' => 'Display icons linking to your social profiles or sites.',
'keywords' => array(
'links'
),
@@ -5802,7 +5825,7 @@
'attributes' => array(
'hasFixedLayout' => array(
'type' => 'boolean',
- 'default' => false
+ 'default' => true
),
'caption' => array(
'type' => 'rich-text',
@@ -6384,6 +6407,7 @@
'$schema' => 'https://schemas.wp.org/trunk/block.json',
'apiVersion' => 3,
'name' => 'core/widget-group',
+ 'title' => 'Widget Group',
'category' => 'widgets',
'attributes' => array(
'title' => array(
diff --git a/wp-includes/blocks/button.php b/wp-includes/blocks/button.php
new file mode 100644
index 0000000..f272fa9
--- /dev/null
+++ b/wp-includes/blocks/button.php
@@ -0,0 +1,80 @@
+<?php
+/**
+ * Server-side rendering of the `core/button` block.
+ *
+ * @package WordPress
+ */
+
+/**
+ * Renders the `core/button` block on the server,
+ *
+ * @since 6.6.0
+ *
+ * @param array $attributes The block attributes.
+ * @param string $content The block content.
+ * @param WP_Block $block The block object.
+ *
+ * @return string The block content.
+ */
+function render_block_core_button( $attributes, $content ) {
+ $p = new WP_HTML_Tag_Processor( $content );
+
+ /*
+ * The button block can render an `<a>` or `<button>` and also has a
+ * `<div>` wrapper. Find the a or button tag.
+ */
+ $tag = null;
+ while ( $p->next_tag() ) {
+ $tag = $p->get_tag();
+ if ( 'A' === $tag || 'BUTTON' === $tag ) {
+ break;
+ }
+ }
+
+ /*
+ * If this happens, the likelihood is there's no block content,
+ * or the block has been modified by a plugin.
+ */
+ if ( null === $tag ) {
+ return $content;
+ }
+
+ // If the next token is the closing tag, the button is empty.
+ $is_empty = true;
+ while ( $p->next_token() && $tag !== $p->get_token_name() && $is_empty ) {
+ if ( '#comment' !== $p->get_token_type() ) {
+ /**
+ * Anything else implies this is not empty.
+ * This might include any text content (including a space),
+ * inline images or other HTML.
+ */
+ $is_empty = false;
+ }
+ }
+
+ /*
+ * When there's no text, render nothing for the block.
+ * See https://github.com/WordPress/gutenberg/issues/17221 for the
+ * reasoning behind this.
+ */
+ if ( $is_empty ) {
+ return '';
+ }
+
+ return $content;
+}
+
+/**
+ * Registers the `core/button` block on server.
+ *
+ * @since 6.6.0
+ */
+function register_block_core_button() {
+ register_block_type_from_metadata(
+ __DIR__ . '/button',
+ array(
+ 'render_callback' => 'render_block_core_button',
+ )
+ );
+}
+add_action( 'init', 'register_block_core_button' );
diff --git a/wp-includes/blocks/button/block.json b/wp-includes/blocks/button/block.json
index ec9f042..740f3e5 100644
--- a/wp-includes/blocks/button/block.json
+++ b/wp-includes/blocks/button/block.json
@@ -73,6 +73,7 @@
},
"supports": {
"anchor": true,
+ "splitting": true,
"align": false,
"alignWide": false,
"color": {
diff --git a/wp-includes/blocks/button/editor-rtl.css b/wp-includes/blocks/button/editor-rtl.css
index 71feb23..c1b7012 100644
--- a/wp-includes/blocks/button/editor-rtl.css
+++ b/wp-includes/blocks/button/editor-rtl.css
@@ -27,35 +27,4 @@ div[data-type="core/button"]{
.editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link{
text-decoration:inherit;
-}
-
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where(.has-border-color){
- border-width:initial;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-color]){
- border-top-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-color]){
- border-left-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){
- border-bottom-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-color]){
- border-right-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-style]){
- border-width:initial;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-style]){
- border-top-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-style]){
- border-left-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){
- border-bottom-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-style]){
- border-right-width:medium;
} \ No newline at end of file
diff --git a/wp-includes/blocks/button/editor-rtl.min.css b/wp-includes/blocks/button/editor-rtl.min.css
index da7d296..0b7ff96 100644
--- a/wp-includes/blocks/button/editor-rtl.min.css
+++ b/wp-includes/blocks/button/editor-rtl.min.css
@@ -1 +1 @@
-.wp-block[data-align=center]>.wp-block-button{margin-left:auto;margin-right:auto;text-align:center}.wp-block[data-align=right]>.wp-block-button{text-align:right}.wp-block-button{cursor:text;position:relative}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}div[data-type="core/button"]{display:table}.editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where(.has-border-color){border-width:initial}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-color]){border-top-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-color]){border-left-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){border-bottom-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-color]){border-right-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-style]){border-width:initial}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-style]){border-top-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-style]){border-left-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){border-bottom-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-style]){border-right-width:medium} \ No newline at end of file
+.wp-block[data-align=center]>.wp-block-button{margin-left:auto;margin-right:auto;text-align:center}.wp-block[data-align=right]>.wp-block-button{text-align:right}.wp-block-button{cursor:text;position:relative}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}div[data-type="core/button"]{display:table}.editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit} \ No newline at end of file
diff --git a/wp-includes/blocks/button/editor.css b/wp-includes/blocks/button/editor.css
index 63dad57..c1b7012 100644
--- a/wp-includes/blocks/button/editor.css
+++ b/wp-includes/blocks/button/editor.css
@@ -27,35 +27,4 @@ div[data-type="core/button"]{
.editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link{
text-decoration:inherit;
-}
-
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where(.has-border-color){
- border-width:initial;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-color]){
- border-top-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-color]){
- border-right-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){
- border-bottom-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-color]){
- border-left-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-style]){
- border-width:initial;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-style]){
- border-top-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-style]){
- border-right-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){
- border-bottom-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-style]){
- border-left-width:medium;
} \ No newline at end of file
diff --git a/wp-includes/blocks/button/editor.min.css b/wp-includes/blocks/button/editor.min.css
index 2390917..37c30e3 100644
--- a/wp-includes/blocks/button/editor.min.css
+++ b/wp-includes/blocks/button/editor.min.css
@@ -1,2 +1,2 @@
.wp-block[data-align=center]>.wp-block-button{margin-left:auto;margin-right:auto;text-align:center}.wp-block[data-align=right]>.wp-block-button{
- /*!rtl:ignore*/text-align:right}.wp-block-button{cursor:text;position:relative}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}div[data-type="core/button"]{display:table}.editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where(.has-border-color){border-width:initial}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-color]){border-top-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-color]){border-right-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){border-bottom-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-color]){border-left-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-style]){border-width:initial}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-style]){border-top-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-style]){border-right-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){border-bottom-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-style]){border-left-width:medium} \ No newline at end of file
+ /*!rtl:ignore*/text-align:right}.wp-block-button{cursor:text;position:relative}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}div[data-type="core/button"]{display:table}.editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit} \ No newline at end of file
diff --git a/wp-includes/blocks/button/style-rtl.css b/wp-includes/blocks/button/style-rtl.css
index d916925..007cfc4 100644
--- a/wp-includes/blocks/button/style-rtl.css
+++ b/wp-includes/blocks/button/style-rtl.css
@@ -64,47 +64,14 @@
border-radius:0 !important;
}
-.wp-block-button .wp-block-button__link:where(.is-style-outline),.wp-block-button:where(.is-style-outline)>.wp-block-button__link{
+:root :where(.wp-block-button .wp-block-button__link.is-style-outline),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link){
border:2px solid;
padding:.667em 1.333em;
}
-
-.wp-block-button .wp-block-button__link:where(.is-style-outline):not(.has-text-color),.wp-block-button:where(.is-style-outline)>.wp-block-button__link:not(.has-text-color){
+:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color)){
color:currentColor;
}
-
-.wp-block-button .wp-block-button__link:where(.is-style-outline):not(.has-background),.wp-block-button:where(.is-style-outline)>.wp-block-button__link:not(.has-background){
+:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background)){
background-color:initial;
background-image:none;
-}
-
-.wp-block-button .wp-block-button__link:where(.has-border-color){
- border-width:initial;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-top-color]){
- border-top-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-right-color]){
- border-left-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){
- border-bottom-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-left-color]){
- border-right-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-style]){
- border-width:initial;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-top-style]){
- border-top-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-right-style]){
- border-left-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){
- border-bottom-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-left-style]){
- border-right-width:medium;
} \ No newline at end of file
diff --git a/wp-includes/blocks/button/style-rtl.min.css b/wp-includes/blocks/button/style-rtl.min.css
index 590b89f..da03e95 100644
--- a/wp-includes/blocks/button/style-rtl.min.css
+++ b/wp-includes/blocks/button/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-button__link{box-sizing:border-box;cursor:pointer;display:inline-block;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.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 .wp-block-button__link:where(.is-style-outline),.wp-block-button:where(.is-style-outline)>.wp-block-button__link{border:2px solid;padding:.667em 1.333em}.wp-block-button .wp-block-button__link:where(.is-style-outline):not(.has-text-color),.wp-block-button:where(.is-style-outline)>.wp-block-button__link:not(.has-text-color){color:currentColor}.wp-block-button .wp-block-button__link:where(.is-style-outline):not(.has-background),.wp-block-button:where(.is-style-outline)>.wp-block-button__link:not(.has-background){background-color:initial;background-image:none}.wp-block-button .wp-block-button__link:where(.has-border-color){border-width:initial}.wp-block-button .wp-block-button__link:where([style*=border-top-color]){border-top-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-right-color]){border-left-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){border-bottom-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-left-color]){border-right-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-style]){border-width:initial}.wp-block-button .wp-block-button__link:where([style*=border-top-style]){border-top-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-right-style]){border-left-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){border-bottom-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-left-style]){border-right-width:medium} \ No newline at end of file
+.wp-block-button__link{box-sizing:border-box;cursor:pointer;display:inline-block;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.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}:root :where(.wp-block-button .wp-block-button__link.is-style-outline),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link){border:2px solid;padding:.667em 1.333em}:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color)){color:currentColor}:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background)){background-color:initial;background-image:none} \ No newline at end of file
diff --git a/wp-includes/blocks/button/style.css b/wp-includes/blocks/button/style.css
index c05e649..007cfc4 100644
--- a/wp-includes/blocks/button/style.css
+++ b/wp-includes/blocks/button/style.css
@@ -64,47 +64,14 @@
border-radius:0 !important;
}
-.wp-block-button .wp-block-button__link:where(.is-style-outline),.wp-block-button:where(.is-style-outline)>.wp-block-button__link{
+:root :where(.wp-block-button .wp-block-button__link.is-style-outline),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link){
border:2px solid;
padding:.667em 1.333em;
}
-
-.wp-block-button .wp-block-button__link:where(.is-style-outline):not(.has-text-color),.wp-block-button:where(.is-style-outline)>.wp-block-button__link:not(.has-text-color){
+:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color)){
color:currentColor;
}
-
-.wp-block-button .wp-block-button__link:where(.is-style-outline):not(.has-background),.wp-block-button:where(.is-style-outline)>.wp-block-button__link:not(.has-background){
+:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background)){
background-color:initial;
background-image:none;
-}
-
-.wp-block-button .wp-block-button__link:where(.has-border-color){
- border-width:initial;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-top-color]){
- border-top-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-right-color]){
- border-right-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){
- border-bottom-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-left-color]){
- border-left-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-style]){
- border-width:initial;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-top-style]){
- border-top-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-right-style]){
- border-right-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){
- border-bottom-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-left-style]){
- border-left-width:medium;
} \ No newline at end of file
diff --git a/wp-includes/blocks/button/style.min.css b/wp-includes/blocks/button/style.min.css
index 086e515..da03e95 100644
--- a/wp-includes/blocks/button/style.min.css
+++ b/wp-includes/blocks/button/style.min.css
@@ -1 +1 @@
-.wp-block-button__link{box-sizing:border-box;cursor:pointer;display:inline-block;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.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 .wp-block-button__link:where(.is-style-outline),.wp-block-button:where(.is-style-outline)>.wp-block-button__link{border:2px solid;padding:.667em 1.333em}.wp-block-button .wp-block-button__link:where(.is-style-outline):not(.has-text-color),.wp-block-button:where(.is-style-outline)>.wp-block-button__link:not(.has-text-color){color:currentColor}.wp-block-button .wp-block-button__link:where(.is-style-outline):not(.has-background),.wp-block-button:where(.is-style-outline)>.wp-block-button__link:not(.has-background){background-color:initial;background-image:none}.wp-block-button .wp-block-button__link:where(.has-border-color){border-width:initial}.wp-block-button .wp-block-button__link:where([style*=border-top-color]){border-top-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-right-color]){border-right-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){border-bottom-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-left-color]){border-left-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-style]){border-width:initial}.wp-block-button .wp-block-button__link:where([style*=border-top-style]){border-top-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-right-style]){border-right-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){border-bottom-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-left-style]){border-left-width:medium} \ No newline at end of file
+.wp-block-button__link{box-sizing:border-box;cursor:pointer;display:inline-block;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.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}:root :where(.wp-block-button .wp-block-button__link.is-style-outline),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link){border:2px solid;padding:.667em 1.333em}:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color)){color:currentColor}:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background)){background-color:initial;background-image:none} \ No newline at end of file
diff --git a/wp-includes/blocks/calendar.php b/wp-includes/blocks/calendar.php
index 04b8889..44b56af 100644
--- a/wp-includes/blocks/calendar.php
+++ b/wp-includes/blocks/calendar.php
@@ -8,6 +8,11 @@
/**
* Renders the `core/calendar` block on server.
*
+ * @since 5.2.0
+ *
+ * @global int $monthnum.
+ * @global int $year.
+ *
* @param array $attributes The block attributes.
*
* @return string Returns the block content.
@@ -76,6 +81,8 @@ function render_block_core_calendar( $attributes ) {
/**
* Registers the `core/calendar` block on server.
+ *
+ * @since 5.2.0
*/
function register_block_core_calendar() {
register_block_type_from_metadata(
@@ -94,6 +101,8 @@ add_action( 'init', 'register_block_core_calendar' );
* Used to hide the calendar block when there are no published posts.
* This compensates for a known Core bug: https://core.trac.wordpress.org/ticket/12016
*
+ * @since 5.9.0
+ *
* @return bool Has any published posts or not.
*/
function block_core_calendar_has_published_posts() {
@@ -117,6 +126,10 @@ function block_core_calendar_has_published_posts() {
* Queries the database for any published post and saves
* a flag whether any published post exists or not.
*
+ * @since 5.9.0
+ *
+ * @global wpdb $wpdb WordPress database abstraction object.
+ *
* @return bool Has any published posts or not.
*/
function block_core_calendar_update_has_published_posts() {
@@ -132,6 +145,8 @@ if ( ! is_multisite() ) {
/**
* Handler for updating the has published posts flag when a post is deleted.
*
+ * @since 5.9.0
+ *
* @param int $post_id Deleted post ID.
*/
function block_core_calendar_update_has_published_post_on_delete( $post_id ) {
@@ -147,6 +162,8 @@ if ( ! is_multisite() ) {
/**
* Handler for updating the has published posts flag when a post status changes.
*
+ * @since 5.9.0
+ *
* @param string $new_status The status the post is changing to.
* @param string $old_status The status the post is changing from.
* @param WP_Post $post Post object.
diff --git a/wp-includes/blocks/categories.php b/wp-includes/blocks/categories.php
index c353765..1a6e6f4 100644
--- a/wp-includes/blocks/categories.php
+++ b/wp-includes/blocks/categories.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/categories` block on server.
*
+ * @since 5.0.0
+ *
* @param array $attributes The block attributes.
*
* @return string Returns the categories list/dropdown markup.
@@ -63,6 +65,8 @@ function render_block_core_categories( $attributes ) {
/**
* Generates the inline script for a categories dropdown field.
*
+ * @since 5.0.0
+ *
* @param string $dropdown_id ID of the dropdown field.
*
* @return string Returns the dropdown onChange redirection script.
@@ -87,6 +91,8 @@ function build_dropdown_script_block_core_categories( $dropdown_id ) {
/**
* Registers the `core/categories` block on server.
+ *
+ * @since 5.0.0
*/
function register_block_core_categories() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/comment-author-name.php b/wp-includes/blocks/comment-author-name.php
index d3cd68c..2f92279 100644
--- a/wp-includes/blocks/comment-author-name.php
+++ b/wp-includes/blocks/comment-author-name.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/comment-author-name` block on the server.
*
+ * @since 6.0.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -53,6 +55,8 @@ function render_block_core_comment_author_name( $attributes, $content, $block )
/**
* Registers the `core/comment-author-name` block on the server.
+ *
+ * @since 6.0.0
*/
function register_block_core_comment_author_name() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/comment-content.php b/wp-includes/blocks/comment-content.php
index 50bca40..3f7f5e1 100644
--- a/wp-includes/blocks/comment-content.php
+++ b/wp-includes/blocks/comment-content.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/comment-content` block on the server.
*
+ * @since 6.0.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -69,6 +71,8 @@ function render_block_core_comment_content( $attributes, $content, $block ) {
/**
* Registers the `core/comment-content` block on the server.
+ *
+ * @since 6.0.0
*/
function register_block_core_comment_content() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/comment-date.php b/wp-includes/blocks/comment-date.php
index 0f9c18b..f5876bb 100644
--- a/wp-includes/blocks/comment-date.php
+++ b/wp-includes/blocks/comment-date.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/comment-date` block on the server.
*
+ * @since 6.0.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -46,6 +48,8 @@ function render_block_core_comment_date( $attributes, $content, $block ) {
/**
* Registers the `core/comment-date` block on the server.
+ *
+ * @since 6.0.0
*/
function register_block_core_comment_date() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/comment-edit-link.php b/wp-includes/blocks/comment-edit-link.php
index ce7ad9b..53eaf9a 100644
--- a/wp-includes/blocks/comment-edit-link.php
+++ b/wp-includes/blocks/comment-edit-link.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/comment-edit-link` block on the server.
*
+ * @since 6.0.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -48,6 +50,8 @@ function render_block_core_comment_edit_link( $attributes, $content, $block ) {
/**
* Registers the `core/comment-edit-link` block on the server.
+ *
+ * @since 6.0.0
*/
function register_block_core_comment_edit_link() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/comment-reply-link.php b/wp-includes/blocks/comment-reply-link.php
index 3f7b6e4..7121b6f 100644
--- a/wp-includes/blocks/comment-reply-link.php
+++ b/wp-includes/blocks/comment-reply-link.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/comment-reply-link` block on the server.
*
+ * @since 6.0.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -70,6 +72,8 @@ function render_block_core_comment_reply_link( $attributes, $content, $block ) {
/**
* Registers the `core/comment-reply-link` block on the server.
+ *
+ * @since 6.0.0
*/
function register_block_core_comment_reply_link() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/comment-template.php b/wp-includes/blocks/comment-template.php
index 915c588..ec462e6 100644
--- a/wp-includes/blocks/comment-template.php
+++ b/wp-includes/blocks/comment-template.php
@@ -92,6 +92,8 @@ function block_core_comment_template_render_comments( $comments, $block ) {
/**
* Renders the `core/comment-template` block on the server.
*
+ * @since 6.0.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -136,6 +138,8 @@ function render_block_core_comment_template( $attributes, $content, $block ) {
/**
* Registers the `core/comment-template` block on the server.
+ *
+ * @since 6.0.0
*/
function register_block_core_comment_template() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/comments-pagination-next.php b/wp-includes/blocks/comments-pagination-next.php
index 51d1f75..cb8350e 100644
--- a/wp-includes/blocks/comments-pagination-next.php
+++ b/wp-includes/blocks/comments-pagination-next.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/comments-pagination-next` block on the server.
*
+ * @since 6.0.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -48,6 +50,8 @@ function render_block_core_comments_pagination_next( $attributes, $content, $blo
/**
* Registers the `core/comments-pagination-next` block on the server.
+ *
+ * @since 6.0.0
*/
function register_block_core_comments_pagination_next() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/comments-pagination-numbers.php b/wp-includes/blocks/comments-pagination-numbers.php
index b172e0c..093a645 100644
--- a/wp-includes/blocks/comments-pagination-numbers.php
+++ b/wp-includes/blocks/comments-pagination-numbers.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/comments-pagination-numbers` block on the server.
*
+ * @since 6.0.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -50,6 +52,8 @@ function render_block_core_comments_pagination_numbers( $attributes, $content, $
/**
* Registers the `core/comments-pagination-numbers` block on the server.
+ *
+ * @since 6.0.0
*/
function register_block_core_comments_pagination_numbers() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/comments-pagination-previous.php b/wp-includes/blocks/comments-pagination-previous.php
index f194e8a..092a28d 100644
--- a/wp-includes/blocks/comments-pagination-previous.php
+++ b/wp-includes/blocks/comments-pagination-previous.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/comments-pagination-previous` block on the server.
*
+ * @since 6.0.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -40,6 +42,8 @@ function render_block_core_comments_pagination_previous( $attributes, $content,
/**
* Registers the `core/comments-pagination-previous` block on the server.
+ *
+ * @since 6.0.0
*/
function register_block_core_comments_pagination_previous() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/comments-pagination.php b/wp-includes/blocks/comments-pagination.php
index 2f9cef2..1543fc0 100644
--- a/wp-includes/blocks/comments-pagination.php
+++ b/wp-includes/blocks/comments-pagination.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/comments-pagination` block on the server.
*
+ * @since 6.0.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
*
@@ -34,6 +36,8 @@ function render_block_core_comments_pagination( $attributes, $content ) {
/**
* Registers the `core/comments-pagination` block on the server.
+ *
+ * @since 6.0.0
*/
function register_block_core_comments_pagination() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/comments-title.php b/wp-includes/blocks/comments-title.php
index 62119fc..130132e 100644
--- a/wp-includes/blocks/comments-title.php
+++ b/wp-includes/blocks/comments-title.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/comments-title` block on the server.
*
+ * @since 6.0.0
+ *
* @param array $attributes Block attributes.
*
* @return string Return the post comments title.
@@ -84,6 +86,8 @@ function render_block_core_comments_title( $attributes ) {
/**
* Registers the `core/comments-title` block on the server.
+ *
+ * @since 6.0.0
*/
function register_block_core_comments_title() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/comments.php b/wp-includes/blocks/comments.php
index 48aac15..f61490a 100644
--- a/wp-includes/blocks/comments.php
+++ b/wp-includes/blocks/comments.php
@@ -16,6 +16,10 @@
* the block is in legacy mode. If not, the HTML generated in the editor is
* returned instead.
*
+ * @since 6.1.0
+ *
+ * @global WP_Post $post Global post object.
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -83,6 +87,8 @@ function render_block_core_comments( $attributes, $content, $block ) {
/**
* Registers the `core/comments` block on the server.
+ *
+ * @since 6.1.0
*/
function register_block_core_comments() {
register_block_type_from_metadata(
@@ -98,6 +104,8 @@ add_action( 'init', 'register_block_core_comments' );
/**
* Use the button block classes for the form-submit button.
*
+ * @since 6.1.0
+ *
* @param array $fields The default comment form arguments.
*
* @return array Returns the modified fields.
@@ -116,6 +124,8 @@ add_filter( 'comment_form_defaults', 'comments_block_form_defaults' );
* Enqueues styles from the legacy `core/post-comments` block. These styles are
* required only by the block's fallback.
*
+ * @since 6.1.0
+ *
* @param string $block_name Name of the new block type.
*/
function enqueue_legacy_post_comments_block_styles( $block_name ) {
@@ -141,6 +151,8 @@ function enqueue_legacy_post_comments_block_styles( $block_name ) {
* The same approach was followed when core/query-loop was renamed to
* core/post-template.
*
+ * @since 6.1.0
+ *
* @see https://github.com/WordPress/gutenberg/pull/41807
* @see https://github.com/WordPress/gutenberg/pull/32514
*/
diff --git a/wp-includes/blocks/cover.php b/wp-includes/blocks/cover.php
index 5f6b2ca..2fca0b0 100644
--- a/wp-includes/blocks/cover.php
+++ b/wp-includes/blocks/cover.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/cover` block on server.
*
+ * @since 6.0.0
+ *
* @param array $attributes The block attributes.
* @param string $content The block rendered content.
*
@@ -66,6 +68,8 @@ function render_block_core_cover( $attributes, $content ) {
/**
* Registers the `core/cover` block renderer on server.
+ *
+ * @since 6.0.0
*/
function register_block_core_cover() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/cover/block.json b/wp-includes/blocks/cover/block.json
index eb55a8d..0ce80ca 100644
--- a/wp-includes/blocks/cover/block.json
+++ b/wp-includes/blocks/cover/block.json
@@ -85,6 +85,7 @@
"anchor": true,
"align": true,
"html": false,
+ "shadow": true,
"spacing": {
"padding": true,
"margin": [ "top", "bottom" ],
diff --git a/wp-includes/blocks/cover/editor-rtl.css b/wp-includes/blocks/cover/editor-rtl.css
index ef0c8a8..8649e4c 100644
--- a/wp-includes/blocks/cover/editor-rtl.css
+++ b/wp-includes/blocks/cover/editor-rtl.css
@@ -17,9 +17,17 @@
.wp-block-cover.components-placeholder h2{
color:inherit;
}
+.wp-block-cover.is-transient{
+ position:relative;
+}
.wp-block-cover.is-transient:before{
background-color:#fff;
+ content:"";
+ height:100%;
opacity:.3;
+ position:absolute;
+ width:100%;
+ z-index:1;
}
.wp-block-cover .components-spinner{
margin:0;
@@ -78,8 +86,4 @@
.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){
margin-top:24px;
-}
-
-.wp-block-cover:after{
- min-height:auto;
} \ No newline at end of file
diff --git a/wp-includes/blocks/cover/editor-rtl.min.css b/wp-includes/blocks/cover/editor-rtl.min.css
index 0e57f82..82c7597 100644
--- a/wp-includes/blocks/cover/editor-rtl.min.css
+++ b/wp-includes/blocks/cover/editor-rtl.min.css
@@ -1 +1 @@
-.editor-styles-wrapper .wp-block-cover{box-sizing:border-box}.wp-block-cover.is-placeholder{align-items:stretch;display:flex;min-height:240px;padding:0!important}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient:before{background-color:#fff;opacity:.3}.wp-block-cover .components-spinner{margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);z-index:1}.wp-block-cover .wp-block-cover__inner-container{margin-left:0;margin-right:0;text-align:right}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{bottom:0;left:0;position:absolute;right:0;top:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-right:auto}.block-library-cover__resize-container{bottom:0;left:0;min-height:50px;position:absolute!important;right:0;top:0}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div{overflow:visible;pointer-events:none}.wp-block-cover>.components-drop-zone .components-drop-zone__content{opacity:.8!important}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px}.wp-block-cover:after{min-height:auto} \ No newline at end of file
+.editor-styles-wrapper .wp-block-cover{box-sizing:border-box}.wp-block-cover.is-placeholder{align-items:stretch;display:flex;min-height:240px;padding:0!important}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient{position:relative}.wp-block-cover.is-transient:before{background-color:#fff;content:"";height:100%;opacity:.3;position:absolute;width:100%;z-index:1}.wp-block-cover .components-spinner{margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);z-index:1}.wp-block-cover .wp-block-cover__inner-container{margin-left:0;margin-right:0;text-align:right}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{bottom:0;left:0;position:absolute;right:0;top:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-right:auto}.block-library-cover__resize-container{bottom:0;left:0;min-height:50px;position:absolute!important;right:0;top:0}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div{overflow:visible;pointer-events:none}.wp-block-cover>.components-drop-zone .components-drop-zone__content{opacity:.8!important}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px} \ No newline at end of file
diff --git a/wp-includes/blocks/cover/editor.css b/wp-includes/blocks/cover/editor.css
index 23d4345..4cd7420 100644
--- a/wp-includes/blocks/cover/editor.css
+++ b/wp-includes/blocks/cover/editor.css
@@ -17,9 +17,17 @@
.wp-block-cover.components-placeholder h2{
color:inherit;
}
+.wp-block-cover.is-transient{
+ position:relative;
+}
.wp-block-cover.is-transient:before{
background-color:#fff;
+ content:"";
+ height:100%;
opacity:.3;
+ position:absolute;
+ width:100%;
+ z-index:1;
}
.wp-block-cover .components-spinner{
left:50%;
@@ -78,8 +86,4 @@
.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){
margin-top:24px;
-}
-
-.wp-block-cover:after{
- min-height:auto;
} \ No newline at end of file
diff --git a/wp-includes/blocks/cover/editor.min.css b/wp-includes/blocks/cover/editor.min.css
index 5b54b34..2a7c1bf 100644
--- a/wp-includes/blocks/cover/editor.min.css
+++ b/wp-includes/blocks/cover/editor.min.css
@@ -1 +1 @@
-.editor-styles-wrapper .wp-block-cover{box-sizing:border-box}.wp-block-cover.is-placeholder{align-items:stretch;display:flex;min-height:240px;padding:0!important}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient:before{background-color:#fff;opacity:.3}.wp-block-cover .components-spinner{left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:1}.wp-block-cover .wp-block-cover__inner-container{margin-left:0;margin-right:0;text-align:left}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{bottom:0;left:0;position:absolute;right:0;top:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container{bottom:0;left:0;min-height:50px;position:absolute!important;right:0;top:0}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div{overflow:visible;pointer-events:none}.wp-block-cover>.components-drop-zone .components-drop-zone__content{opacity:.8!important}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px}.wp-block-cover:after{min-height:auto} \ No newline at end of file
+.editor-styles-wrapper .wp-block-cover{box-sizing:border-box}.wp-block-cover.is-placeholder{align-items:stretch;display:flex;min-height:240px;padding:0!important}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient{position:relative}.wp-block-cover.is-transient:before{background-color:#fff;content:"";height:100%;opacity:.3;position:absolute;width:100%;z-index:1}.wp-block-cover .components-spinner{left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:1}.wp-block-cover .wp-block-cover__inner-container{margin-left:0;margin-right:0;text-align:left}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{bottom:0;left:0;position:absolute;right:0;top:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container{bottom:0;left:0;min-height:50px;position:absolute!important;right:0;top:0}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div{overflow:visible;pointer-events:none}.wp-block-cover>.components-drop-zone .components-drop-zone__content{opacity:.8!important}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px} \ No newline at end of file
diff --git a/wp-includes/blocks/cover/style-rtl.css b/wp-includes/blocks/cover/style-rtl.css
index 4ea24d4..ca73e15 100644
--- a/wp-includes/blocks/cover/style-rtl.css
+++ b/wp-includes/blocks/cover/style-rtl.css
@@ -96,17 +96,6 @@
max-width:420px;
width:100%;
}
-.wp-block-cover-image:after,.wp-block-cover:after{
- content:"";
- display:block;
- font-size:0;
- min-height:inherit;
-}
-@supports (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;
}
@@ -115,9 +104,6 @@
width:100%;
z-index:1;
}
-.wp-block-cover h1:where(:not(.has-text-color)),.wp-block-cover h2:where(:not(.has-text-color)),.wp-block-cover h3:where(:not(.has-text-color)),.wp-block-cover h4:where(:not(.has-text-color)),.wp-block-cover h5:where(:not(.has-text-color)),.wp-block-cover h6:where(:not(.has-text-color)),.wp-block-cover p:where(:not(.has-text-color)),.wp-block-cover-image h1:where(:not(.has-text-color)),.wp-block-cover-image h2:where(:not(.has-text-color)),.wp-block-cover-image h3:where(:not(.has-text-color)),.wp-block-cover-image h4:where(:not(.has-text-color)),.wp-block-cover-image h5:where(:not(.has-text-color)),.wp-block-cover-image h6:where(:not(.has-text-color)),.wp-block-cover-image p:where(: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;
@@ -239,4 +225,8 @@
:where(.wp-block-cover-image.is-light:not(.has-text-color)),:where(.wp-block-cover.is-light:not(.has-text-color)){
color:#000;
+}
+
+:root :where(.wp-block-cover h1:not(.has-text-color)),:root :where(.wp-block-cover h2:not(.has-text-color)),:root :where(.wp-block-cover h3:not(.has-text-color)),:root :where(.wp-block-cover h4:not(.has-text-color)),:root :where(.wp-block-cover h5:not(.has-text-color)),:root :where(.wp-block-cover h6:not(.has-text-color)),:root :where(.wp-block-cover p:not(.has-text-color)){
+ color:inherit;
} \ No newline at end of file
diff --git a/wp-includes/blocks/cover/style-rtl.min.css b/wp-includes/blocks/cover/style-rtl.min.css
index 9874746..f0bbb2f 100644
--- a/wp-includes/blocks/cover/style-rtl.min.css
+++ b/wp-includes/blocks/cover/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-cover,.wp-block-cover-image{align-items:center;background-position:50%;box-sizing:border-box;direction:ltr;display:flex;justify-content:center;min-height:430px;overflow:hidden;overflow:clip;padding:1em;position:relative}.wp-block-cover .has-background-dim:not([class*=-background-color]),.wp-block-cover-image .has-background-dim:not([class*=-background-color]),.wp-block-cover-image.has-background-dim:not([class*=-background-color]),.wp-block-cover.has-background-dim:not([class*=-background-color]){background-color:#000}.wp-block-cover .has-background-dim.has-background-gradient,.wp-block-cover-image .has-background-dim.has-background-gradient{background-color:initial}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{background-color:inherit;content:""}.wp-block-cover .wp-block-cover__background,.wp-block-cover .wp-block-cover__gradient-background,.wp-block-cover-image .wp-block-cover__background,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover.has-background-dim:not(.has-background-gradient):before{bottom:0;left:0;opacity:.5;position:absolute;right:0;top:0;z-index:1}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.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-20 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.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-30 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.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-40 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.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-50 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.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-60 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.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-70 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.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-80 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.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-90 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.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-100 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0{opacity:0}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10{opacity:.1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20{opacity:.2}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30{opacity:.3}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40{opacity:.4}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50{opacity:.5}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60{opacity:.6}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70{opacity:.7}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80{opacity:.8}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90{opacity:.9}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:420px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{content:"";display:block;font-size:0;min-height:inherit}@supports (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 .wp-block-cover__inner-container,.wp-block-cover-image .wp-block-cover__inner-container{color:inherit;direction:rtl;width:100%;z-index:1}.wp-block-cover h1:where(:not(.has-text-color)),.wp-block-cover h2:where(:not(.has-text-color)),.wp-block-cover h3:where(:not(.has-text-color)),.wp-block-cover h4:where(:not(.has-text-color)),.wp-block-cover h5:where(:not(.has-text-color)),.wp-block-cover h6:where(:not(.has-text-color)),.wp-block-cover p:where(:not(.has-text-color)),.wp-block-cover-image h1:where(:not(.has-text-color)),.wp-block-cover-image h2:where(:not(.has-text-color)),.wp-block-cover-image h3:where(:not(.has-text-color)),.wp-block-cover-image h4:where(:not(.has-text-color)),.wp-block-cover-image h5:where(:not(.has-text-color)),.wp-block-cover-image h6:where(:not(.has-text-color)),.wp-block-cover-image p:where(: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}.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover .wp-block-cover__image-background,.wp-block-cover video.wp-block-cover__video-background,.wp-block-cover-image .wp-block-cover__image-background,.wp-block-cover-image video.wp-block-cover__video-background{border:none;bottom:0;box-shadow:none;height:100%;left:0;margin:0;max-height:none;max-width:none;object-fit:cover;outline:none;padding:0;position:absolute;right:0;top:0;width:100%}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:fixed;background-repeat:no-repeat;background-size:cover}@supports (-webkit-touch-callout:inherit){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated,.wp-block-cover__image-background.is-repeated,video.wp-block-cover__video-background.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover__image-background,.wp-block-cover__video-background{z-index:0}.wp-block-cover-image-text,.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,.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,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 .wp-block-cover-text,.wp-block-cover-image .wp-block-cover-image-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;margin-bottom:0;max-width:840px;padding:.44em;text-align:center;z-index:1}:where(.wp-block-cover-image:not(.has-text-color)),:where(.wp-block-cover:not(.has-text-color)){color:#fff}:where(.wp-block-cover-image.is-light:not(.has-text-color)),:where(.wp-block-cover.is-light:not(.has-text-color)){color:#000} \ No newline at end of file
+.wp-block-cover,.wp-block-cover-image{align-items:center;background-position:50%;box-sizing:border-box;direction:ltr;display:flex;justify-content:center;min-height:430px;overflow:hidden;overflow:clip;padding:1em;position:relative}.wp-block-cover .has-background-dim:not([class*=-background-color]),.wp-block-cover-image .has-background-dim:not([class*=-background-color]),.wp-block-cover-image.has-background-dim:not([class*=-background-color]),.wp-block-cover.has-background-dim:not([class*=-background-color]){background-color:#000}.wp-block-cover .has-background-dim.has-background-gradient,.wp-block-cover-image .has-background-dim.has-background-gradient{background-color:initial}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{background-color:inherit;content:""}.wp-block-cover .wp-block-cover__background,.wp-block-cover .wp-block-cover__gradient-background,.wp-block-cover-image .wp-block-cover__background,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover.has-background-dim:not(.has-background-gradient):before{bottom:0;left:0;opacity:.5;position:absolute;right:0;top:0;z-index:1}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.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-20 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.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-30 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.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-40 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.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-50 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.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-60 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.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-70 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.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-80 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.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-90 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.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-100 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0{opacity:0}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10{opacity:.1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20{opacity:.2}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30{opacity:.3}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40{opacity:.4}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50{opacity:.5}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60{opacity:.6}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70{opacity:.7}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80{opacity:.8}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90{opacity:.9}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:420px;width:100%}.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 .wp-block-cover__inner-container,.wp-block-cover-image .wp-block-cover__inner-container{color:inherit;direction:rtl;width:100%;z-index:1}.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}.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover .wp-block-cover__image-background,.wp-block-cover video.wp-block-cover__video-background,.wp-block-cover-image .wp-block-cover__image-background,.wp-block-cover-image video.wp-block-cover__video-background{border:none;bottom:0;box-shadow:none;height:100%;left:0;margin:0;max-height:none;max-width:none;object-fit:cover;outline:none;padding:0;position:absolute;right:0;top:0;width:100%}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:fixed;background-repeat:no-repeat;background-size:cover}@supports (-webkit-touch-callout:inherit){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated,.wp-block-cover__image-background.is-repeated,video.wp-block-cover__video-background.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover__image-background,.wp-block-cover__video-background{z-index:0}.wp-block-cover-image-text,.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,.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,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 .wp-block-cover-text,.wp-block-cover-image .wp-block-cover-image-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;margin-bottom:0;max-width:840px;padding:.44em;text-align:center;z-index:1}:where(.wp-block-cover-image:not(.has-text-color)),:where(.wp-block-cover:not(.has-text-color)){color:#fff}:where(.wp-block-cover-image.is-light:not(.has-text-color)),:where(.wp-block-cover.is-light:not(.has-text-color)){color:#000}:root :where(.wp-block-cover h1:not(.has-text-color)),:root :where(.wp-block-cover h2:not(.has-text-color)),:root :where(.wp-block-cover h3:not(.has-text-color)),:root :where(.wp-block-cover h4:not(.has-text-color)),:root :where(.wp-block-cover h5:not(.has-text-color)),:root :where(.wp-block-cover h6:not(.has-text-color)),:root :where(.wp-block-cover p:not(.has-text-color)){color:inherit} \ No newline at end of file
diff --git a/wp-includes/blocks/cover/style.css b/wp-includes/blocks/cover/style.css
index 806370e..d3b2b3b 100644
--- a/wp-includes/blocks/cover/style.css
+++ b/wp-includes/blocks/cover/style.css
@@ -96,17 +96,6 @@
max-width:420px;
width:100%;
}
-.wp-block-cover-image:after,.wp-block-cover:after{
- content:"";
- display:block;
- font-size:0;
- min-height:inherit;
-}
-@supports (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;
}
@@ -115,9 +104,6 @@
width:100%;
z-index:1;
}
-.wp-block-cover h1:where(:not(.has-text-color)),.wp-block-cover h2:where(:not(.has-text-color)),.wp-block-cover h3:where(:not(.has-text-color)),.wp-block-cover h4:where(:not(.has-text-color)),.wp-block-cover h5:where(:not(.has-text-color)),.wp-block-cover h6:where(:not(.has-text-color)),.wp-block-cover p:where(:not(.has-text-color)),.wp-block-cover-image h1:where(:not(.has-text-color)),.wp-block-cover-image h2:where(:not(.has-text-color)),.wp-block-cover-image h3:where(:not(.has-text-color)),.wp-block-cover-image h4:where(:not(.has-text-color)),.wp-block-cover-image h5:where(:not(.has-text-color)),.wp-block-cover-image h6:where(:not(.has-text-color)),.wp-block-cover-image p:where(: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;
@@ -239,4 +225,8 @@
:where(.wp-block-cover-image.is-light:not(.has-text-color)),:where(.wp-block-cover.is-light:not(.has-text-color)){
color:#000;
+}
+
+:root :where(.wp-block-cover h1:not(.has-text-color)),:root :where(.wp-block-cover h2:not(.has-text-color)),:root :where(.wp-block-cover h3:not(.has-text-color)),:root :where(.wp-block-cover h4:not(.has-text-color)),:root :where(.wp-block-cover h5:not(.has-text-color)),:root :where(.wp-block-cover h6:not(.has-text-color)),:root :where(.wp-block-cover p:not(.has-text-color)){
+ color:inherit;
} \ No newline at end of file
diff --git a/wp-includes/blocks/cover/style.min.css b/wp-includes/blocks/cover/style.min.css
index 6dc6023..7aacd4c 100644
--- a/wp-includes/blocks/cover/style.min.css
+++ b/wp-includes/blocks/cover/style.min.css
@@ -1 +1 @@
-.wp-block-cover,.wp-block-cover-image{align-items:center;background-position:50%;box-sizing:border-box;display:flex;justify-content:center;min-height:430px;overflow:hidden;overflow:clip;padding:1em;position:relative}.wp-block-cover .has-background-dim:not([class*=-background-color]),.wp-block-cover-image .has-background-dim:not([class*=-background-color]),.wp-block-cover-image.has-background-dim:not([class*=-background-color]),.wp-block-cover.has-background-dim:not([class*=-background-color]){background-color:#000}.wp-block-cover .has-background-dim.has-background-gradient,.wp-block-cover-image .has-background-dim.has-background-gradient{background-color:initial}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{background-color:inherit;content:""}.wp-block-cover .wp-block-cover__background,.wp-block-cover .wp-block-cover__gradient-background,.wp-block-cover-image .wp-block-cover__background,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover.has-background-dim:not(.has-background-gradient):before{bottom:0;left:0;opacity:.5;position:absolute;right:0;top:0;z-index:1}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.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-20 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.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-30 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.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-40 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.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-50 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.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-60 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.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-70 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.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-80 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.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-90 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.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-100 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0{opacity:0}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10{opacity:.1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20{opacity:.2}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30{opacity:.3}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40{opacity:.4}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50{opacity:.5}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60{opacity:.6}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70{opacity:.7}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80{opacity:.8}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90{opacity:.9}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:420px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{content:"";display:block;font-size:0;min-height:inherit}@supports (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 .wp-block-cover__inner-container,.wp-block-cover-image .wp-block-cover__inner-container{color:inherit;width:100%;z-index:1}.wp-block-cover h1:where(:not(.has-text-color)),.wp-block-cover h2:where(:not(.has-text-color)),.wp-block-cover h3:where(:not(.has-text-color)),.wp-block-cover h4:where(:not(.has-text-color)),.wp-block-cover h5:where(:not(.has-text-color)),.wp-block-cover h6:where(:not(.has-text-color)),.wp-block-cover p:where(:not(.has-text-color)),.wp-block-cover-image h1:where(:not(.has-text-color)),.wp-block-cover-image h2:where(:not(.has-text-color)),.wp-block-cover-image h3:where(:not(.has-text-color)),.wp-block-cover-image h4:where(:not(.has-text-color)),.wp-block-cover-image h5:where(:not(.has-text-color)),.wp-block-cover-image h6:where(:not(.has-text-color)),.wp-block-cover-image p:where(: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}.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover .wp-block-cover__image-background,.wp-block-cover video.wp-block-cover__video-background,.wp-block-cover-image .wp-block-cover__image-background,.wp-block-cover-image video.wp-block-cover__video-background{border:none;bottom:0;box-shadow:none;height:100%;left:0;margin:0;max-height:none;max-width:none;object-fit:cover;outline:none;padding:0;position:absolute;right:0;top:0;width:100%}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:fixed;background-repeat:no-repeat;background-size:cover}@supports (-webkit-touch-callout:inherit){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated,.wp-block-cover__image-background.is-repeated,video.wp-block-cover__video-background.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover__image-background,.wp-block-cover__video-background{z-index:0}.wp-block-cover-image-text,.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,.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,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 .wp-block-cover-text,.wp-block-cover-image .wp-block-cover-image-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;margin-bottom:0;max-width:840px;padding:.44em;text-align:center;z-index:1}:where(.wp-block-cover-image:not(.has-text-color)),:where(.wp-block-cover:not(.has-text-color)){color:#fff}:where(.wp-block-cover-image.is-light:not(.has-text-color)),:where(.wp-block-cover.is-light:not(.has-text-color)){color:#000} \ No newline at end of file
+.wp-block-cover,.wp-block-cover-image{align-items:center;background-position:50%;box-sizing:border-box;display:flex;justify-content:center;min-height:430px;overflow:hidden;overflow:clip;padding:1em;position:relative}.wp-block-cover .has-background-dim:not([class*=-background-color]),.wp-block-cover-image .has-background-dim:not([class*=-background-color]),.wp-block-cover-image.has-background-dim:not([class*=-background-color]),.wp-block-cover.has-background-dim:not([class*=-background-color]){background-color:#000}.wp-block-cover .has-background-dim.has-background-gradient,.wp-block-cover-image .has-background-dim.has-background-gradient{background-color:initial}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{background-color:inherit;content:""}.wp-block-cover .wp-block-cover__background,.wp-block-cover .wp-block-cover__gradient-background,.wp-block-cover-image .wp-block-cover__background,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover.has-background-dim:not(.has-background-gradient):before{bottom:0;left:0;opacity:.5;position:absolute;right:0;top:0;z-index:1}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.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-20 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.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-30 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.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-40 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.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-50 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.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-60 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.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-70 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.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-80 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.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-90 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.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-100 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0{opacity:0}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10{opacity:.1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20{opacity:.2}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30{opacity:.3}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40{opacity:.4}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50{opacity:.5}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60{opacity:.6}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70{opacity:.7}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80{opacity:.8}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90{opacity:.9}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:420px;width:100%}.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 .wp-block-cover__inner-container,.wp-block-cover-image .wp-block-cover__inner-container{color:inherit;width:100%;z-index:1}.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}.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover .wp-block-cover__image-background,.wp-block-cover video.wp-block-cover__video-background,.wp-block-cover-image .wp-block-cover__image-background,.wp-block-cover-image video.wp-block-cover__video-background{border:none;bottom:0;box-shadow:none;height:100%;left:0;margin:0;max-height:none;max-width:none;object-fit:cover;outline:none;padding:0;position:absolute;right:0;top:0;width:100%}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:fixed;background-repeat:no-repeat;background-size:cover}@supports (-webkit-touch-callout:inherit){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated,.wp-block-cover__image-background.is-repeated,video.wp-block-cover__video-background.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover__image-background,.wp-block-cover__video-background{z-index:0}.wp-block-cover-image-text,.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,.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,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 .wp-block-cover-text,.wp-block-cover-image .wp-block-cover-image-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;margin-bottom:0;max-width:840px;padding:.44em;text-align:center;z-index:1}:where(.wp-block-cover-image:not(.has-text-color)),:where(.wp-block-cover:not(.has-text-color)){color:#fff}:where(.wp-block-cover-image.is-light:not(.has-text-color)),:where(.wp-block-cover.is-light:not(.has-text-color)){color:#000}:root :where(.wp-block-cover h1:not(.has-text-color)),:root :where(.wp-block-cover h2:not(.has-text-color)),:root :where(.wp-block-cover h3:not(.has-text-color)),:root :where(.wp-block-cover h4:not(.has-text-color)),:root :where(.wp-block-cover h5:not(.has-text-color)),:root :where(.wp-block-cover h6:not(.has-text-color)),:root :where(.wp-block-cover p:not(.has-text-color)){color:inherit} \ No newline at end of file
diff --git a/wp-includes/blocks/details/block.json b/wp-includes/blocks/details/block.json
index 868307d..a488ae1 100644
--- a/wp-includes/blocks/details/block.json
+++ b/wp-includes/blocks/details/block.json
@@ -19,6 +19,7 @@
}
},
"supports": {
+ "__experimentalOnEnter": true,
"align": [ "wide", "full" ],
"color": {
"gradients": true,
diff --git a/wp-includes/blocks/details/style-rtl.css b/wp-includes/blocks/details/style-rtl.css
index 4e36410..789812c 100644
--- a/wp-includes/blocks/details/style-rtl.css
+++ b/wp-includes/blocks/details/style-rtl.css
@@ -1,6 +1,5 @@
.wp-block-details{
box-sizing:border-box;
- overflow:hidden;
}
.wp-block-details summary{
diff --git a/wp-includes/blocks/details/style-rtl.min.css b/wp-includes/blocks/details/style-rtl.min.css
index dc382dc..450a184 100644
--- a/wp-includes/blocks/details/style-rtl.min.css
+++ b/wp-includes/blocks/details/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-details{box-sizing:border-box;overflow:hidden}.wp-block-details summary{cursor:pointer} \ No newline at end of file
+.wp-block-details{box-sizing:border-box}.wp-block-details summary{cursor:pointer} \ No newline at end of file
diff --git a/wp-includes/blocks/details/style.css b/wp-includes/blocks/details/style.css
index 4e36410..789812c 100644
--- a/wp-includes/blocks/details/style.css
+++ b/wp-includes/blocks/details/style.css
@@ -1,6 +1,5 @@
.wp-block-details{
box-sizing:border-box;
- overflow:hidden;
}
.wp-block-details summary{
diff --git a/wp-includes/blocks/details/style.min.css b/wp-includes/blocks/details/style.min.css
index dc382dc..450a184 100644
--- a/wp-includes/blocks/details/style.min.css
+++ b/wp-includes/blocks/details/style.min.css
@@ -1 +1 @@
-.wp-block-details{box-sizing:border-box;overflow:hidden}.wp-block-details summary{cursor:pointer} \ No newline at end of file
+.wp-block-details{box-sizing:border-box}.wp-block-details summary{cursor:pointer} \ No newline at end of file
diff --git a/wp-includes/blocks/embed/editor-rtl.css b/wp-includes/blocks/embed/editor-rtl.css
index f7ece7d..92f34fc 100644
--- a/wp-includes/blocks/embed/editor-rtl.css
+++ b/wp-includes/blocks/embed/editor-rtl.css
@@ -11,9 +11,6 @@
word-break:break-word;
}
-.wp-block-embed__learn-more{
- margin-top:1em;
-}
.wp-block-post-content .wp-block-embed__learn-more a{
color:var(--wp-admin-theme-color);
}
diff --git a/wp-includes/blocks/embed/editor-rtl.min.css b/wp-includes/blocks/embed/editor-rtl.min.css
index 511e429..1b956ac 100644
--- a/wp-includes/blocks/embed/editor-rtl.min.css
+++ b/wp-includes/blocks/embed/editor-rtl.min.css
@@ -1 +1 @@
-.wp-block-embed{clear:both;margin-left:0;margin-right:0}.wp-block-embed.is-loading{display:flex;justify-content:center}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed__learn-more{margin-top:1em}.wp-block-post-content .wp-block-embed__learn-more a{color:var(--wp-admin-theme-color)}.block-library-embed__interactive-overlay{bottom:0;left:0;opacity:0;position:absolute;right:0;top:0}.wp-block[data-align=left]>.wp-block-embed,.wp-block[data-align=right]>.wp-block-embed{max-width:360px;width:100%}.wp-block[data-align=left]>.wp-block-embed .wp-block-embed__wrapper,.wp-block[data-align=right]>.wp-block-embed .wp-block-embed__wrapper{min-width:280px} \ No newline at end of file
+.wp-block-embed{clear:both;margin-left:0;margin-right:0}.wp-block-embed.is-loading{display:flex;justify-content:center}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-post-content .wp-block-embed__learn-more a{color:var(--wp-admin-theme-color)}.block-library-embed__interactive-overlay{bottom:0;left:0;opacity:0;position:absolute;right:0;top:0}.wp-block[data-align=left]>.wp-block-embed,.wp-block[data-align=right]>.wp-block-embed{max-width:360px;width:100%}.wp-block[data-align=left]>.wp-block-embed .wp-block-embed__wrapper,.wp-block[data-align=right]>.wp-block-embed .wp-block-embed__wrapper{min-width:280px} \ No newline at end of file
diff --git a/wp-includes/blocks/embed/editor.css b/wp-includes/blocks/embed/editor.css
index f7ece7d..92f34fc 100644
--- a/wp-includes/blocks/embed/editor.css
+++ b/wp-includes/blocks/embed/editor.css
@@ -11,9 +11,6 @@
word-break:break-word;
}
-.wp-block-embed__learn-more{
- margin-top:1em;
-}
.wp-block-post-content .wp-block-embed__learn-more a{
color:var(--wp-admin-theme-color);
}
diff --git a/wp-includes/blocks/embed/editor.min.css b/wp-includes/blocks/embed/editor.min.css
index 511e429..1b956ac 100644
--- a/wp-includes/blocks/embed/editor.min.css
+++ b/wp-includes/blocks/embed/editor.min.css
@@ -1 +1 @@
-.wp-block-embed{clear:both;margin-left:0;margin-right:0}.wp-block-embed.is-loading{display:flex;justify-content:center}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed__learn-more{margin-top:1em}.wp-block-post-content .wp-block-embed__learn-more a{color:var(--wp-admin-theme-color)}.block-library-embed__interactive-overlay{bottom:0;left:0;opacity:0;position:absolute;right:0;top:0}.wp-block[data-align=left]>.wp-block-embed,.wp-block[data-align=right]>.wp-block-embed{max-width:360px;width:100%}.wp-block[data-align=left]>.wp-block-embed .wp-block-embed__wrapper,.wp-block[data-align=right]>.wp-block-embed .wp-block-embed__wrapper{min-width:280px} \ No newline at end of file
+.wp-block-embed{clear:both;margin-left:0;margin-right:0}.wp-block-embed.is-loading{display:flex;justify-content:center}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-post-content .wp-block-embed__learn-more a{color:var(--wp-admin-theme-color)}.block-library-embed__interactive-overlay{bottom:0;left:0;opacity:0;position:absolute;right:0;top:0}.wp-block[data-align=left]>.wp-block-embed,.wp-block[data-align=right]>.wp-block-embed{max-width:360px;width:100%}.wp-block[data-align=left]>.wp-block-embed .wp-block-embed__wrapper,.wp-block[data-align=right]>.wp-block-embed .wp-block-embed__wrapper{min-width:280px} \ No newline at end of file
diff --git a/wp-includes/blocks/embed/style-rtl.css b/wp-includes/blocks/embed/style-rtl.css
index 65a1112..2faa797 100644
--- a/wp-includes/blocks/embed/style-rtl.css
+++ b/wp-includes/blocks/embed/style-rtl.css
@@ -14,7 +14,7 @@
.wp-block-embed{
overflow-wrap:break-word;
}
-.wp-block-embed figcaption{
+.wp-block-embed :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
diff --git a/wp-includes/blocks/embed/style-rtl.min.css b/wp-includes/blocks/embed/style-rtl.min.css
index e3dea7f..d707daa 100644
--- a/wp-includes/blocks/embed/style-rtl.min.css
+++ b/wp-includes/blocks/embed/style-rtl.min.css
@@ -1 +1 @@
-.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-cover .wp-block-embed{min-height:240px;min-width:320px}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed figcaption{margin-bottom:1em;margin-top:.5em}.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{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;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-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%} \ No newline at end of file
+.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-cover .wp-block-embed{min-height:240px;min-width:320px}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed :where(figcaption){margin-bottom:1em;margin-top:.5em}.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{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;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-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%} \ No newline at end of file
diff --git a/wp-includes/blocks/embed/style.css b/wp-includes/blocks/embed/style.css
index 65a1112..2faa797 100644
--- a/wp-includes/blocks/embed/style.css
+++ b/wp-includes/blocks/embed/style.css
@@ -14,7 +14,7 @@
.wp-block-embed{
overflow-wrap:break-word;
}
-.wp-block-embed figcaption{
+.wp-block-embed :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
diff --git a/wp-includes/blocks/embed/style.min.css b/wp-includes/blocks/embed/style.min.css
index e3dea7f..d707daa 100644
--- a/wp-includes/blocks/embed/style.min.css
+++ b/wp-includes/blocks/embed/style.min.css
@@ -1 +1 @@
-.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-cover .wp-block-embed{min-height:240px;min-width:320px}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed figcaption{margin-bottom:1em;margin-top:.5em}.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{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;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-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%} \ No newline at end of file
+.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-cover .wp-block-embed{min-height:240px;min-width:320px}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed :where(figcaption){margin-bottom:1em;margin-top:.5em}.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{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;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-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%} \ No newline at end of file
diff --git a/wp-includes/blocks/embed/theme-rtl.css b/wp-includes/blocks/embed/theme-rtl.css
index 5114165..341093a 100644
--- a/wp-includes/blocks/embed/theme-rtl.css
+++ b/wp-includes/blocks/embed/theme-rtl.css
@@ -1,9 +1,9 @@
-.wp-block-embed figcaption{
+.wp-block-embed :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-embed figcaption{
+.is-dark-theme .wp-block-embed :where(figcaption){
color:#ffffffa6;
}
diff --git a/wp-includes/blocks/embed/theme-rtl.min.css b/wp-includes/blocks/embed/theme-rtl.min.css
index d84a916..54dc2f1 100644
--- a/wp-includes/blocks/embed/theme-rtl.min.css
+++ b/wp-includes/blocks/embed/theme-rtl.min.css
@@ -1 +1 @@
-.wp-block-embed figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed figcaption{color:#ffffffa6}.wp-block-embed{margin:0 0 1em} \ No newline at end of file
+.wp-block-embed :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed :where(figcaption){color:#ffffffa6}.wp-block-embed{margin:0 0 1em} \ No newline at end of file
diff --git a/wp-includes/blocks/embed/theme.css b/wp-includes/blocks/embed/theme.css
index 5114165..341093a 100644
--- a/wp-includes/blocks/embed/theme.css
+++ b/wp-includes/blocks/embed/theme.css
@@ -1,9 +1,9 @@
-.wp-block-embed figcaption{
+.wp-block-embed :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-embed figcaption{
+.is-dark-theme .wp-block-embed :where(figcaption){
color:#ffffffa6;
}
diff --git a/wp-includes/blocks/embed/theme.min.css b/wp-includes/blocks/embed/theme.min.css
index d84a916..54dc2f1 100644
--- a/wp-includes/blocks/embed/theme.min.css
+++ b/wp-includes/blocks/embed/theme.min.css
@@ -1 +1 @@
-.wp-block-embed figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed figcaption{color:#ffffffa6}.wp-block-embed{margin:0 0 1em} \ No newline at end of file
+.wp-block-embed :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed :where(figcaption){color:#ffffffa6}.wp-block-embed{margin:0 0 1em} \ No newline at end of file
diff --git a/wp-includes/blocks/file.php b/wp-includes/blocks/file.php
index ba0343a..87910f0 100644
--- a/wp-includes/blocks/file.php
+++ b/wp-includes/blocks/file.php
@@ -8,6 +8,8 @@
/**
* When the `core/file` block is rendering, check if we need to enqueue the `wp-block-file-view` script.
*
+ * @since 5.8.0
+ *
* @param array $attributes The block attributes.
* @param string $content The block content.
* @param WP_Block $block The parsed block.
@@ -15,27 +17,6 @@
* @return string Returns the block content.
*/
function render_block_core_file( $attributes, $content ) {
- // Update object's aria-label attribute if present in block HTML.
- // Match an aria-label attribute from an object tag.
- $pattern = '@<object.+(?<attribute>aria-label="(?<filename>[^"]+)?")@i';
- $content = preg_replace_callback(
- $pattern,
- static function ( $matches ) {
- $filename = ! empty( $matches['filename'] ) ? $matches['filename'] : '';
- $has_filename = ! empty( $filename ) && 'PDF embed' !== $filename;
- $label = $has_filename ?
- sprintf(
- /* translators: %s: filename. */
- __( 'Embed of %s.' ),
- $filename
- )
- : __( 'PDF embed' );
-
- return str_replace( $matches['attribute'], sprintf( 'aria-label="%s"', $label ), $matches[0] );
- },
- $content
- );
-
// If it's interactive, enqueue the script module and add the directives.
if ( ! empty( $attributes['displayPreview'] ) ) {
$suffix = wp_scripts_get_suffix();
@@ -57,6 +38,19 @@ function render_block_core_file( $attributes, $content ) {
$processor->next_tag( 'object' );
$processor->set_attribute( 'data-wp-bind--hidden', '!state.hasPdfPreview' );
$processor->set_attribute( 'hidden', true );
+
+ $filename = $processor->get_attribute( 'aria-label' );
+ $has_filename = ! empty( $filename ) && 'PDF embed' !== $filename;
+ $label = $has_filename ? sprintf(
+ /* translators: %s: filename. */
+ __( 'Embed of %s.' ),
+ $filename
+ ) : __( 'PDF embed' );
+
+ // Update object's aria-label attribute if present in block HTML.
+ // Match an aria-label attribute from an object tag.
+ $processor->set_attribute( 'aria-label', $label );
+
return $processor->get_updated_html();
}
@@ -65,6 +59,8 @@ function render_block_core_file( $attributes, $content ) {
/**
* Registers the `core/file` block on server.
+ *
+ * @since 5.8.0
*/
function register_block_core_file() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/file/editor-rtl.css b/wp-includes/blocks/file/editor-rtl.css
index a606f31..4a919a5 100644
--- a/wp-includes/blocks/file/editor-rtl.css
+++ b/wp-includes/blocks/file/editor-rtl.css
@@ -8,6 +8,9 @@
.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{
height:auto;
}
+.wp-block[data-align=center]>.wp-block-file{
+ text-align:center;
+}
.wp-block-file .components-resizable-box__container{
margin-bottom:1em;
}
diff --git a/wp-includes/blocks/file/editor-rtl.min.css b/wp-includes/blocks/file/editor-rtl.min.css
index cd00681..637eeed 100644
--- a/wp-includes/blocks/file/editor-rtl.min.css
+++ b/wp-includes/blocks/file/editor-rtl.min.css
@@ -1 +1 @@
-.wp-block-file{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:0}.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{height:auto}.wp-block-file .components-resizable-box__container{margin-bottom:1em}.wp-block-file .wp-block-file__preview{height:100%;margin-bottom:1em;width:100%}.wp-block-file .wp-block-file__preview-overlay{bottom:0;left:0;position:absolute;right:0;top:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file a{min-width:1em}.wp-block-file a:not(.wp-block-file__button){display:inline-block}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-right:.75em} \ No newline at end of file
+.wp-block-file{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:0}.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{height:auto}.wp-block[data-align=center]>.wp-block-file{text-align:center}.wp-block-file .components-resizable-box__container{margin-bottom:1em}.wp-block-file .wp-block-file__preview{height:100%;margin-bottom:1em;width:100%}.wp-block-file .wp-block-file__preview-overlay{bottom:0;left:0;position:absolute;right:0;top:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file a{min-width:1em}.wp-block-file a:not(.wp-block-file__button){display:inline-block}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-right:.75em} \ No newline at end of file
diff --git a/wp-includes/blocks/file/editor.css b/wp-includes/blocks/file/editor.css
index 94638c0..90fb0e5 100644
--- a/wp-includes/blocks/file/editor.css
+++ b/wp-includes/blocks/file/editor.css
@@ -8,6 +8,9 @@
.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{
height:auto;
}
+.wp-block[data-align=center]>.wp-block-file{
+ text-align:center;
+}
.wp-block-file .components-resizable-box__container{
margin-bottom:1em;
}
diff --git a/wp-includes/blocks/file/editor.min.css b/wp-includes/blocks/file/editor.min.css
index df5ac14..307d747 100644
--- a/wp-includes/blocks/file/editor.min.css
+++ b/wp-includes/blocks/file/editor.min.css
@@ -1 +1 @@
-.wp-block-file{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:0}.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{height:auto}.wp-block-file .components-resizable-box__container{margin-bottom:1em}.wp-block-file .wp-block-file__preview{height:100%;margin-bottom:1em;width:100%}.wp-block-file .wp-block-file__preview-overlay{bottom:0;left:0;position:absolute;right:0;top:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file a{min-width:1em}.wp-block-file a:not(.wp-block-file__button){display:inline-block}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-left:.75em} \ No newline at end of file
+.wp-block-file{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:0}.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{height:auto}.wp-block[data-align=center]>.wp-block-file{text-align:center}.wp-block-file .components-resizable-box__container{margin-bottom:1em}.wp-block-file .wp-block-file__preview{height:100%;margin-bottom:1em;width:100%}.wp-block-file .wp-block-file__preview-overlay{bottom:0;left:0;position:absolute;right:0;top:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file a{min-width:1em}.wp-block-file a:not(.wp-block-file__button){display:inline-block}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-left:.75em} \ No newline at end of file
diff --git a/wp-includes/blocks/gallery.php b/wp-includes/blocks/gallery.php
index 292ddea..5af6be1 100644
--- a/wp-includes/blocks/gallery.php
+++ b/wp-includes/blocks/gallery.php
@@ -13,6 +13,8 @@
* we add a custom `data-id` attribute before rendering the gallery
* so that the Image Block can pick it up in its render_callback.
*
+ * @since 5.9.0
+ *
* @param array $parsed_block The block being rendered.
* @return array The migrated block object.
*/
@@ -35,6 +37,8 @@ add_filter( 'render_block_data', 'block_core_gallery_data_id_backcompatibility'
/**
* Renders the `core/gallery` block on the server.
*
+ * @since 6.0.0
+ *
* @param array $attributes Attributes of the block being rendered.
* @param string $content Content of the block being rendered.
* @return string The content of the block being rendered.
@@ -127,7 +131,7 @@ function block_core_gallery_render( $attributes, $content ) {
* the `$parsed_block['innerBlocks']` via the `render_block_data` hook.
* However, this hook doesn't apply inner block updates when blocks are
* nested.
- * @todo: In the future, if this hook supports updating innerBlocks in
+ * @todo In the future, if this hook supports updating innerBlocks in
* nested blocks, it should be refactored.
*
* @see: https://github.com/WordPress/gutenberg/pull/58733
@@ -164,6 +168,8 @@ function block_core_gallery_render( $attributes, $content ) {
}
/**
* Registers the `core/gallery` block on server.
+ *
+ * @since 5.9.0
*/
function register_block_core_gallery() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/gallery/editor-rtl.css b/wp-includes/blocks/gallery/editor-rtl.css
index fae133a..f2f6c9b 100644
--- a/wp-includes/blocks/gallery/editor-rtl.css
+++ b/wp-includes/blocks/gallery/editor-rtl.css
@@ -1,39 +1,39 @@
-figure.wp-block-gallery{
+:root :where(figure.wp-block-gallery){
display:block;
}
-figure.wp-block-gallery>.blocks-gallery-caption{
+:root :where(figure.wp-block-gallery)>.blocks-gallery-caption{
flex:0 0 100%;
}
-figure.wp-block-gallery>.blocks-gallery-media-placeholder-wrapper{
+:root :where(figure.wp-block-gallery)>.blocks-gallery-media-placeholder-wrapper{
flex-basis:100%;
}
-figure.wp-block-gallery .wp-block-image .components-notice.is-error{
+:root :where(figure.wp-block-gallery) .wp-block-image .components-notice.is-error{
display:block;
}
-figure.wp-block-gallery .wp-block-image .components-notice__content{
+:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__content{
margin:4px 0;
}
-figure.wp-block-gallery .wp-block-image .components-notice__dismiss{
+:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__dismiss{
left:5px;
position:absolute;
top:0;
}
-figure.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .components-placeholder__label{
display:none;
}
-figure.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{
margin-bottom:0;
}
-figure.wp-block-gallery .block-editor-media-placeholder{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder{
margin:0;
}
-figure.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder .components-placeholder__label{
display:flex;
}
-figure.wp-block-gallery .block-editor-media-placeholder figcaption{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder figcaption{
z-index:2;
}
-figure.wp-block-gallery .components-spinner{
+:root :where(figure.wp-block-gallery) .components-spinner{
margin-right:-9px;
margin-top:-9px;
position:absolute;
diff --git a/wp-includes/blocks/gallery/editor-rtl.min.css b/wp-includes/blocks/gallery/editor-rtl.min.css
index 69dff9f..81f438a 100644
--- a/wp-includes/blocks/gallery/editor-rtl.min.css
+++ b/wp-includes/blocks/gallery/editor-rtl.min.css
@@ -1 +1 @@
-figure.wp-block-gallery{display:block}figure.wp-block-gallery>.blocks-gallery-caption{flex:0 0 100%}figure.wp-block-gallery>.blocks-gallery-media-placeholder-wrapper{flex-basis:100%}figure.wp-block-gallery .wp-block-image .components-notice.is-error{display:block}figure.wp-block-gallery .wp-block-image .components-notice__content{margin:4px 0}figure.wp-block-gallery .wp-block-image .components-notice__dismiss{left:5px;position:absolute;top:0}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}figure.wp-block-gallery .block-editor-media-placeholder{margin:0}figure.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:flex}figure.wp-block-gallery .block-editor-media-placeholder figcaption{z-index:2}figure.wp-block-gallery .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.gallery-settings-buttons .components-button:first-child{margin-left:8px}.gallery-image-sizes .components-base-control__label{display:block;margin-bottom:4px}.gallery-image-sizes .gallery-image-sizes__loading{align-items:center;color:#757575;display:flex;font-size:12px}.gallery-image-sizes .components-spinner{margin:0 4px 0 8px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{bottom:0;box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";left:0;outline:2px solid #0000;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{height:100%;margin:0}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{background:#fff;border:1px solid #1e1e1e;border-radius:2px;display:none;margin:8px;position:absolute;top:-2px;transition:box-shadow .2s ease-out;z-index:20}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-delay:0s;transition-duration:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{height:inherit;padding:0;width:inherit}}.block-library-gallery-item__inline-menu.is-left{right:-2px}.block-library-gallery-item__inline-menu.is-right{left:-2px}.wp-block-gallery ul.blocks-gallery-grid{margin:0;padding:0}@media (min-width:600px){.wp-block-update-gallery-modal{max-width:480px}}.wp-block-update-gallery-modal-buttons{display:flex;gap:12px;justify-content:flex-end} \ No newline at end of file
+:root :where(figure.wp-block-gallery){display:block}:root :where(figure.wp-block-gallery)>.blocks-gallery-caption{flex:0 0 100%}:root :where(figure.wp-block-gallery)>.blocks-gallery-media-placeholder-wrapper{flex-basis:100%}:root :where(figure.wp-block-gallery) .wp-block-image .components-notice.is-error{display:block}:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__content{margin:4px 0}:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__dismiss{left:5px;position:absolute;top:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder{margin:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder .components-placeholder__label{display:flex}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder figcaption{z-index:2}:root :where(figure.wp-block-gallery) .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.gallery-settings-buttons .components-button:first-child{margin-left:8px}.gallery-image-sizes .components-base-control__label{display:block;margin-bottom:4px}.gallery-image-sizes .gallery-image-sizes__loading{align-items:center;color:#757575;display:flex;font-size:12px}.gallery-image-sizes .components-spinner{margin:0 4px 0 8px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{bottom:0;box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";left:0;outline:2px solid #0000;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{height:100%;margin:0}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{background:#fff;border:1px solid #1e1e1e;border-radius:2px;display:none;margin:8px;position:absolute;top:-2px;transition:box-shadow .2s ease-out;z-index:20}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-delay:0s;transition-duration:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{height:inherit;padding:0;width:inherit}}.block-library-gallery-item__inline-menu.is-left{right:-2px}.block-library-gallery-item__inline-menu.is-right{left:-2px}.wp-block-gallery ul.blocks-gallery-grid{margin:0;padding:0}@media (min-width:600px){.wp-block-update-gallery-modal{max-width:480px}}.wp-block-update-gallery-modal-buttons{display:flex;gap:12px;justify-content:flex-end} \ No newline at end of file
diff --git a/wp-includes/blocks/gallery/editor.css b/wp-includes/blocks/gallery/editor.css
index 9d78df9..cd85074 100644
--- a/wp-includes/blocks/gallery/editor.css
+++ b/wp-includes/blocks/gallery/editor.css
@@ -1,39 +1,39 @@
-figure.wp-block-gallery{
+:root :where(figure.wp-block-gallery){
display:block;
}
-figure.wp-block-gallery>.blocks-gallery-caption{
+:root :where(figure.wp-block-gallery)>.blocks-gallery-caption{
flex:0 0 100%;
}
-figure.wp-block-gallery>.blocks-gallery-media-placeholder-wrapper{
+:root :where(figure.wp-block-gallery)>.blocks-gallery-media-placeholder-wrapper{
flex-basis:100%;
}
-figure.wp-block-gallery .wp-block-image .components-notice.is-error{
+:root :where(figure.wp-block-gallery) .wp-block-image .components-notice.is-error{
display:block;
}
-figure.wp-block-gallery .wp-block-image .components-notice__content{
+:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__content{
margin:4px 0;
}
-figure.wp-block-gallery .wp-block-image .components-notice__dismiss{
+:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__dismiss{
position:absolute;
right:5px;
top:0;
}
-figure.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .components-placeholder__label{
display:none;
}
-figure.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{
margin-bottom:0;
}
-figure.wp-block-gallery .block-editor-media-placeholder{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder{
margin:0;
}
-figure.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder .components-placeholder__label{
display:flex;
}
-figure.wp-block-gallery .block-editor-media-placeholder figcaption{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder figcaption{
z-index:2;
}
-figure.wp-block-gallery .components-spinner{
+:root :where(figure.wp-block-gallery) .components-spinner{
left:50%;
margin-left:-9px;
margin-top:-9px;
diff --git a/wp-includes/blocks/gallery/editor.min.css b/wp-includes/blocks/gallery/editor.min.css
index e58f034..b8d1239 100644
--- a/wp-includes/blocks/gallery/editor.min.css
+++ b/wp-includes/blocks/gallery/editor.min.css
@@ -1 +1 @@
-figure.wp-block-gallery{display:block}figure.wp-block-gallery>.blocks-gallery-caption{flex:0 0 100%}figure.wp-block-gallery>.blocks-gallery-media-placeholder-wrapper{flex-basis:100%}figure.wp-block-gallery .wp-block-image .components-notice.is-error{display:block}figure.wp-block-gallery .wp-block-image .components-notice__content{margin:4px 0}figure.wp-block-gallery .wp-block-image .components-notice__dismiss{position:absolute;right:5px;top:0}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}figure.wp-block-gallery .block-editor-media-placeholder{margin:0}figure.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:flex}figure.wp-block-gallery .block-editor-media-placeholder figcaption{z-index:2}figure.wp-block-gallery .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.gallery-settings-buttons .components-button:first-child{margin-right:8px}.gallery-image-sizes .components-base-control__label{display:block;margin-bottom:4px}.gallery-image-sizes .gallery-image-sizes__loading{align-items:center;color:#757575;display:flex;font-size:12px}.gallery-image-sizes .components-spinner{margin:0 8px 0 4px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{bottom:0;box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";left:0;outline:2px solid #0000;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{height:100%;margin:0}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{background:#fff;border:1px solid #1e1e1e;border-radius:2px;display:none;margin:8px;position:absolute;top:-2px;transition:box-shadow .2s ease-out;z-index:20}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-delay:0s;transition-duration:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{height:inherit;padding:0;width:inherit}}.block-library-gallery-item__inline-menu.is-left{left:-2px}.block-library-gallery-item__inline-menu.is-right{right:-2px}.wp-block-gallery ul.blocks-gallery-grid{margin:0;padding:0}@media (min-width:600px){.wp-block-update-gallery-modal{max-width:480px}}.wp-block-update-gallery-modal-buttons{display:flex;gap:12px;justify-content:flex-end} \ No newline at end of file
+:root :where(figure.wp-block-gallery){display:block}:root :where(figure.wp-block-gallery)>.blocks-gallery-caption{flex:0 0 100%}:root :where(figure.wp-block-gallery)>.blocks-gallery-media-placeholder-wrapper{flex-basis:100%}:root :where(figure.wp-block-gallery) .wp-block-image .components-notice.is-error{display:block}:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__content{margin:4px 0}:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__dismiss{position:absolute;right:5px;top:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder{margin:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder .components-placeholder__label{display:flex}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder figcaption{z-index:2}:root :where(figure.wp-block-gallery) .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.gallery-settings-buttons .components-button:first-child{margin-right:8px}.gallery-image-sizes .components-base-control__label{display:block;margin-bottom:4px}.gallery-image-sizes .gallery-image-sizes__loading{align-items:center;color:#757575;display:flex;font-size:12px}.gallery-image-sizes .components-spinner{margin:0 8px 0 4px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{bottom:0;box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";left:0;outline:2px solid #0000;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{height:100%;margin:0}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{background:#fff;border:1px solid #1e1e1e;border-radius:2px;display:none;margin:8px;position:absolute;top:-2px;transition:box-shadow .2s ease-out;z-index:20}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-delay:0s;transition-duration:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{height:inherit;padding:0;width:inherit}}.block-library-gallery-item__inline-menu.is-left{left:-2px}.block-library-gallery-item__inline-menu.is-right{right:-2px}.wp-block-gallery ul.blocks-gallery-grid{margin:0;padding:0}@media (min-width:600px){.wp-block-update-gallery-modal{max-width:480px}}.wp-block-update-gallery-modal-buttons{display:flex;gap:12px;justify-content:flex-end} \ No newline at end of file
diff --git a/wp-includes/blocks/group/editor-rtl.css b/wp-includes/blocks/group/editor-rtl.css
index 78cb04e..9b7cfe5 100644
--- a/wp-includes/blocks/group/editor-rtl.css
+++ b/wp-includes/blocks/group/editor-rtl.css
@@ -42,49 +42,6 @@
right:0;
top:0;
}
-.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{
+.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{
pointer-events:all;
-}
-
-.wp-block-group__placeholder .wp-block-group-placeholder__variations{
- display:flex;
- flex-direction:row;
- flex-wrap:wrap;
- justify-content:center;
- list-style:none;
- margin:0;
- padding:0;
- width:100%;
-}
-.wp-block-group__placeholder .components-placeholder__instructions{
- margin-bottom:18px;
- text-align:center;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations svg{
- fill:#ccc !important;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations svg:hover{
- fill:var(--wp-admin-theme-color) !important;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations>li{
- align-items:center;
- display:flex;
- flex-direction:column;
- margin:0 12px 12px;
- width:auto;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button{
- height:32px;
- padding:0;
- width:44px;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button:hover{
- box-shadow:none;
-}
-.wp-block-group__placeholder .components-placeholder{
- min-height:auto;
- padding:24px;
-}
-.wp-block-group__placeholder .is-medium .wp-block-group-placeholder__variations>li,.wp-block-group__placeholder .is-small .wp-block-group-placeholder__variations>li{
- margin:12px;
} \ No newline at end of file
diff --git a/wp-includes/blocks/group/editor-rtl.min.css b/wp-includes/blocks/group/editor-rtl.min.css
index ff863a8..d3c2208 100644
--- a/wp-includes/blocks/group/editor-rtl.min.css
+++ b/wp-includes/blocks/group/editor-rtl.min.css
@@ -1 +1 @@
-.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[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-bottom:18px;margin-top:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;flex:1;flex-direction:inherit;width:100%}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{border:1px dashed;border-radius:2px;content:"";display:flex;flex:1 0 48px;min-height:46px;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all}.wp-block-group__placeholder .wp-block-group-placeholder__variations{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;list-style:none;margin:0;padding:0;width:100%}.wp-block-group__placeholder .components-placeholder__instructions{margin-bottom:18px;text-align:center}.wp-block-group__placeholder .wp-block-group-placeholder__variations svg{fill:#ccc!important}.wp-block-group__placeholder .wp-block-group-placeholder__variations svg:hover{fill:var(--wp-admin-theme-color)!important}.wp-block-group__placeholder .wp-block-group-placeholder__variations>li{align-items:center;display:flex;flex-direction:column;margin:0 12px 12px;width:auto}.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button{height:32px;padding:0;width:44px}.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button:hover{box-shadow:none}.wp-block-group__placeholder .components-placeholder{min-height:auto;padding:24px}.wp-block-group__placeholder .is-medium .wp-block-group-placeholder__variations>li,.wp-block-group__placeholder .is-small .wp-block-group-placeholder__variations>li{margin:12px} \ No newline at end of file
+.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[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-bottom:18px;margin-top:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;flex:1;flex-direction:inherit;width:100%}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{border:1px dashed;border-radius:2px;content:"";display:flex;flex:1 0 48px;min-height:46px;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all} \ No newline at end of file
diff --git a/wp-includes/blocks/group/editor.css b/wp-includes/blocks/group/editor.css
index 78cb04e..9b7cfe5 100644
--- a/wp-includes/blocks/group/editor.css
+++ b/wp-includes/blocks/group/editor.css
@@ -42,49 +42,6 @@
right:0;
top:0;
}
-.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{
+.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{
pointer-events:all;
-}
-
-.wp-block-group__placeholder .wp-block-group-placeholder__variations{
- display:flex;
- flex-direction:row;
- flex-wrap:wrap;
- justify-content:center;
- list-style:none;
- margin:0;
- padding:0;
- width:100%;
-}
-.wp-block-group__placeholder .components-placeholder__instructions{
- margin-bottom:18px;
- text-align:center;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations svg{
- fill:#ccc !important;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations svg:hover{
- fill:var(--wp-admin-theme-color) !important;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations>li{
- align-items:center;
- display:flex;
- flex-direction:column;
- margin:0 12px 12px;
- width:auto;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button{
- height:32px;
- padding:0;
- width:44px;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button:hover{
- box-shadow:none;
-}
-.wp-block-group__placeholder .components-placeholder{
- min-height:auto;
- padding:24px;
-}
-.wp-block-group__placeholder .is-medium .wp-block-group-placeholder__variations>li,.wp-block-group__placeholder .is-small .wp-block-group-placeholder__variations>li{
- margin:12px;
} \ No newline at end of file
diff --git a/wp-includes/blocks/group/editor.min.css b/wp-includes/blocks/group/editor.min.css
index ff863a8..d3c2208 100644
--- a/wp-includes/blocks/group/editor.min.css
+++ b/wp-includes/blocks/group/editor.min.css
@@ -1 +1 @@
-.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[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-bottom:18px;margin-top:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;flex:1;flex-direction:inherit;width:100%}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{border:1px dashed;border-radius:2px;content:"";display:flex;flex:1 0 48px;min-height:46px;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all}.wp-block-group__placeholder .wp-block-group-placeholder__variations{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;list-style:none;margin:0;padding:0;width:100%}.wp-block-group__placeholder .components-placeholder__instructions{margin-bottom:18px;text-align:center}.wp-block-group__placeholder .wp-block-group-placeholder__variations svg{fill:#ccc!important}.wp-block-group__placeholder .wp-block-group-placeholder__variations svg:hover{fill:var(--wp-admin-theme-color)!important}.wp-block-group__placeholder .wp-block-group-placeholder__variations>li{align-items:center;display:flex;flex-direction:column;margin:0 12px 12px;width:auto}.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button{height:32px;padding:0;width:44px}.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button:hover{box-shadow:none}.wp-block-group__placeholder .components-placeholder{min-height:auto;padding:24px}.wp-block-group__placeholder .is-medium .wp-block-group-placeholder__variations>li,.wp-block-group__placeholder .is-small .wp-block-group-placeholder__variations>li{margin:12px} \ No newline at end of file
+.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[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-bottom:18px;margin-top:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;flex:1;flex-direction:inherit;width:100%}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{border:1px dashed;border-radius:2px;content:"";display:flex;flex:1 0 48px;min-height:46px;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all} \ No newline at end of file
diff --git a/wp-includes/blocks/group/style-rtl.css b/wp-includes/blocks/group/style-rtl.css
index 5128c34..30d868c 100644
--- a/wp-includes/blocks/group/style-rtl.css
+++ b/wp-includes/blocks/group/style-rtl.css
@@ -1,3 +1,7 @@
.wp-block-group{
box-sizing:border-box;
+}
+
+:where(.wp-block-group.wp-block-group-is-layout-constrained){
+ position:relative;
} \ No newline at end of file
diff --git a/wp-includes/blocks/group/style-rtl.min.css b/wp-includes/blocks/group/style-rtl.min.css
index 9124e9b..ab565fe 100644
--- a/wp-includes/blocks/group/style-rtl.min.css
+++ b/wp-includes/blocks/group/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-group{box-sizing:border-box} \ No newline at end of file
+.wp-block-group{box-sizing:border-box}:where(.wp-block-group.wp-block-group-is-layout-constrained){position:relative} \ No newline at end of file
diff --git a/wp-includes/blocks/group/style.css b/wp-includes/blocks/group/style.css
index 5128c34..30d868c 100644
--- a/wp-includes/blocks/group/style.css
+++ b/wp-includes/blocks/group/style.css
@@ -1,3 +1,7 @@
.wp-block-group{
box-sizing:border-box;
+}
+
+:where(.wp-block-group.wp-block-group-is-layout-constrained){
+ position:relative;
} \ No newline at end of file
diff --git a/wp-includes/blocks/group/style.min.css b/wp-includes/blocks/group/style.min.css
index 9124e9b..ab565fe 100644
--- a/wp-includes/blocks/group/style.min.css
+++ b/wp-includes/blocks/group/style.min.css
@@ -1 +1 @@
-.wp-block-group{box-sizing:border-box} \ No newline at end of file
+.wp-block-group{box-sizing:border-box}:where(.wp-block-group.wp-block-group-is-layout-constrained){position:relative} \ No newline at end of file
diff --git a/wp-includes/blocks/heading.php b/wp-includes/blocks/heading.php
index 5a7e8db..471e31f 100644
--- a/wp-includes/blocks/heading.php
+++ b/wp-includes/blocks/heading.php
@@ -14,6 +14,8 @@
* Would be transformed to:
* <h2 class="align-left wp-block-heading">Hello World</h2>
*
+ * @since 6.2.0
+ *
* @param array $attributes Attributes of the block being rendered.
* @param string $content Content of the block being rendered.
*
@@ -39,6 +41,8 @@ function block_core_heading_render( $attributes, $content ) {
/**
* Registers the `core/heading` block on server.
+ *
+ * @since 6.2.0
*/
function register_block_core_heading() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/heading/block.json b/wp-includes/blocks/heading/block.json
index 9990ef5..39e9850 100644
--- a/wp-includes/blocks/heading/block.json
+++ b/wp-includes/blocks/heading/block.json
@@ -29,6 +29,7 @@
"align": [ "wide", "full" ],
"anchor": true,
"className": true,
+ "splitting": true,
"color": {
"gradients": true,
"link": true,
diff --git a/wp-includes/blocks/home-link.php b/wp-includes/blocks/home-link.php
index 9ec0c18..fb72358 100644
--- a/wp-includes/blocks/home-link.php
+++ b/wp-includes/blocks/home-link.php
@@ -9,6 +9,8 @@
* Build an array with CSS classes and inline styles defining the colors
* which will be applied to the home link markup in the front-end.
*
+ * @since 6.0.0
+ *
* @param array $context home link block context.
* @return array Colors CSS classes and inline styles.
*/
@@ -61,6 +63,8 @@ function block_core_home_link_build_css_colors( $context ) {
* Build an array with CSS classes and inline styles defining the font sizes
* which will be applied to the home link markup in the front-end.
*
+ * @since 6.0.0
+ *
* @param array $context Home link block context.
* @return array Font size CSS classes and inline styles.
*/
@@ -88,6 +92,8 @@ function block_core_home_link_build_css_font_sizes( $context ) {
/**
* Builds an array with classes and style for the li wrapper
*
+ * @since 6.0.0
+ *
* @param array $context Home link block context.
* @return string The li wrapper attributes.
*/
@@ -121,6 +127,8 @@ function block_core_home_link_build_li_wrapper_attributes( $context ) {
/**
* Renders the `core/home-link` block.
*
+ * @since 6.0.0
+ *
* @param array $attributes The block attributes.
* @param string $content The saved content.
* @param WP_Block $block The parsed block.
@@ -155,6 +163,8 @@ function render_block_core_home_link( $attributes, $content, $block ) {
/**
* Register the home block
*
+ * @since 6.0.0
+ *
* @uses render_block_core_home_link()
* @throws WP_Error An WP_Error exception parsing the block definition.
*/
diff --git a/wp-includes/blocks/html/editor-rtl.css b/wp-includes/blocks/html/editor-rtl.css
index dfca958..b5e84c3 100644
--- a/wp-includes/blocks/html/editor-rtl.css
+++ b/wp-includes/blocks/html/editor-rtl.css
@@ -12,6 +12,7 @@
box-shadow:none !important;
box-sizing:border-box;
color:#1e1e1e !important;
+ direction:ltr;
font-family:Menlo,Consolas,monaco,monospace !important;
font-size:16px !important;
max-height:250px;
diff --git a/wp-includes/blocks/html/editor-rtl.min.css b/wp-includes/blocks/html/editor-rtl.min.css
index edf9b38..a7069dd 100644
--- a/wp-includes/blocks/html/editor-rtl.min.css
+++ b/wp-includes/blocks/html/editor-rtl.min.css
@@ -1 +1 @@
-.block-library-html__edit .block-library-html__preview-overlay{height:100%;position:absolute;right:0;top:0;width:100%}.block-library-html__edit .block-editor-plain-text{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important}@media (min-width:600px){.block-library-html__edit .block-editor-plain-text{font-size:13px!important}}.block-library-html__edit .block-editor-plain-text:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid #0000!important} \ No newline at end of file
+.block-library-html__edit .block-library-html__preview-overlay{height:100%;position:absolute;right:0;top:0;width:100%}.block-library-html__edit .block-editor-plain-text{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;direction:ltr;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important}@media (min-width:600px){.block-library-html__edit .block-editor-plain-text{font-size:13px!important}}.block-library-html__edit .block-editor-plain-text:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid #0000!important} \ No newline at end of file
diff --git a/wp-includes/blocks/html/editor.css b/wp-includes/blocks/html/editor.css
index ea52ca0..365198e 100644
--- a/wp-includes/blocks/html/editor.css
+++ b/wp-includes/blocks/html/editor.css
@@ -12,6 +12,7 @@
box-shadow:none !important;
box-sizing:border-box;
color:#1e1e1e !important;
+ direction:ltr;
font-family:Menlo,Consolas,monaco,monospace !important;
font-size:16px !important;
max-height:250px;
diff --git a/wp-includes/blocks/html/editor.min.css b/wp-includes/blocks/html/editor.min.css
index 61973b1..5125aa4 100644
--- a/wp-includes/blocks/html/editor.min.css
+++ b/wp-includes/blocks/html/editor.min.css
@@ -1 +1 @@
-.block-library-html__edit .block-library-html__preview-overlay{height:100%;left:0;position:absolute;top:0;width:100%}.block-library-html__edit .block-editor-plain-text{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important}@media (min-width:600px){.block-library-html__edit .block-editor-plain-text{font-size:13px!important}}.block-library-html__edit .block-editor-plain-text:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid #0000!important} \ No newline at end of file
+.block-library-html__edit .block-library-html__preview-overlay{height:100%;left:0;position:absolute;top:0;width:100%}.block-library-html__edit .block-editor-plain-text{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;direction:ltr;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important}@media (min-width:600px){.block-library-html__edit .block-editor-plain-text{font-size:13px!important}}.block-library-html__edit .block-editor-plain-text:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid #0000!important} \ No newline at end of file
diff --git a/wp-includes/blocks/image.php b/wp-includes/blocks/image.php
index 0b75bf9..584318b 100644
--- a/wp-includes/blocks/image.php
+++ b/wp-includes/blocks/image.php
@@ -9,6 +9,8 @@
* Renders the `core/image` block on the server,
* adding a data-id attribute to the element if core/gallery has added on pre-render.
*
+ * @since 5.9.0
+ *
* @param array $attributes The block attributes.
* @param string $content The block content.
* @param WP_Block $block The block object.
@@ -26,12 +28,33 @@ function render_block_core_image( $attributes, $content, $block ) {
return '';
}
+ $has_id_binding = isset( $attributes['metadata']['bindings']['id'] ) && isset( $attributes['id'] );
+
+ // Ensure the `wp-image-id` classname on the image block supports block bindings.
+ if ( $has_id_binding ) {
+ // If there's a mismatch with the 'wp-image-' class and the actual id, the id was
+ // probably overridden by block bindings. Update it to the correct value.
+ // See https://github.com/WordPress/gutenberg/issues/62886 for why this is needed.
+ $id = $attributes['id'];
+ $image_classnames = $p->get_attribute( 'class' );
+ $class_with_binding_value = "wp-image-$id";
+ if ( is_string( $image_classnames ) && ! str_contains( $image_classnames, $class_with_binding_value ) ) {
+ $image_classnames = preg_replace( '/wp-image-(\d+)/', $class_with_binding_value, $image_classnames );
+ $p->set_attribute( 'class', $image_classnames );
+ }
+ }
+
+ // For backwards compatibility, the data-id html attribute is only set for
+ // image blocks nested in a gallery. Detect if the image is in a gallery by
+ // checking the data-id attribute.
+ // See the `block_core_gallery_data_id_backcompatibility` function.
if ( isset( $attributes['data-id'] ) ) {
- // Adds the data-id="$id" attribute to the img element to provide backwards
- // compatibility for the Gallery Block, which now wraps Image Blocks within
- // innerBlocks. The data-id attribute is added in a core/gallery
- // `render_block_data` hook.
- $p->set_attribute( 'data-id', $attributes['data-id'] );
+ // If there's a binding for the `id`, the `id` attribute is used for the
+ // value, since `data-id` does not support block bindings.
+ // Else the `data-id` is used for backwards compatibility, since
+ // third parties may be filtering its value.
+ $data_id = $has_id_binding ? $attributes['id'] : $attributes['data-id'];
+ $p->set_attribute( 'data-id', $data_id );
}
$link_destination = isset( $attributes['linkDestination'] ) ? $attributes['linkDestination'] : 'none';
@@ -85,6 +108,8 @@ function render_block_core_image( $attributes, $content, $block ) {
*
* This is used to determine whether the lightbox should be rendered or not.
*
+ * @since 6.4.0
+ *
* @param array $block Block data.
*
* @return array Filtered block data.
@@ -115,6 +140,8 @@ function block_core_image_get_lightbox_settings( $block ) {
/**
* Adds the directives and layout needed for the lightbox behavior.
*
+ * @since 6.4.0
+ *
* @param string $block_content Rendered block content.
* @param array $block Block object.
*
@@ -182,12 +209,12 @@ function block_core_image_render_lightbox( $block_content, $block ) {
// Image.
$p->next_tag( 'img' );
$p->set_attribute( 'data-wp-init', 'callbacks.setButtonStyles' );
- $p->set_attribute( 'data-wp-on--load', 'callbacks.setButtonStyles' );
- $p->set_attribute( 'data-wp-on-window--resize', 'callbacks.setButtonStyles' );
+ $p->set_attribute( 'data-wp-on-async--load', 'callbacks.setButtonStyles' );
+ $p->set_attribute( 'data-wp-on-async-window--resize', 'callbacks.setButtonStyles' );
// Sets an event callback on the `img` because the `figure` element can also
// contain a caption, and we don't want to trigger the lightbox when the
// caption is clicked.
- $p->set_attribute( 'data-wp-on--click', 'actions.showLightbox' );
+ $p->set_attribute( 'data-wp-on-async--click', 'actions.showLightbox' );
$body_content = $p->get_updated_html();
@@ -203,7 +230,7 @@ function block_core_image_render_lightbox( $block_content, $block ) {
aria-haspopup="dialog"
aria-label="' . esc_attr( $aria_label ) . '"
data-wp-init="callbacks.initTriggerButton"
- data-wp-on--click="actions.showLightbox"
+ data-wp-on-async--click="actions.showLightbox"
data-wp-style--right="context.imageButtonRight"
data-wp-style--top="context.imageButtonTop"
>
@@ -219,6 +246,9 @@ function block_core_image_render_lightbox( $block_content, $block ) {
return $body_content;
}
+/**
+ * @since 6.5.0
+ */
function block_core_image_print_lightbox_overlay() {
$close_button_label = esc_attr__( 'Close' );
@@ -238,7 +268,7 @@ function block_core_image_print_lightbox_overlay() {
}
echo <<<HTML
- <div
+ <div
class="wp-lightbox-overlay zoom"
data-wp-interactive="core/image"
data-wp-context='{}'
@@ -249,12 +279,12 @@ function block_core_image_print_lightbox_overlay() {
data-wp-class--show-closing-animation="state.showClosingAnimation"
data-wp-watch="callbacks.setOverlayFocus"
data-wp-on--keydown="actions.handleKeydown"
- data-wp-on--touchstart="actions.handleTouchStart"
+ data-wp-on-async--touchstart="actions.handleTouchStart"
data-wp-on--touchmove="actions.handleTouchMove"
- data-wp-on--touchend="actions.handleTouchEnd"
- data-wp-on--click="actions.hideLightbox"
- data-wp-on-window--resize="callbacks.setOverlayStyles"
- data-wp-on-window--scroll="actions.handleScroll"
+ data-wp-on-async--touchend="actions.handleTouchEnd"
+ data-wp-on-async--click="actions.hideLightbox"
+ data-wp-on-async-window--resize="callbacks.setOverlayStyles"
+ data-wp-on-async-window--scroll="actions.handleScroll"
tabindex="-1"
>
<button type="button" aria-label="$close_button_label" style="fill: $close_button_color" class="close-button">
@@ -278,6 +308,8 @@ HTML;
/**
* Registers the `core/image` block on server.
+ *
+ * @since 5.9.0
*/
function register_block_core_image() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/image/editor-rtl.css b/wp-includes/blocks/image/editor-rtl.css
index 7f43104..b4bc06b 100644
--- a/wp-includes/blocks/image/editor-rtl.css
+++ b/wp-includes/blocks/image/editor-rtl.css
@@ -96,6 +96,9 @@ figure.wp-block-image:not(.wp-block){
position:relative;
width:100%;
}
+.wp-block-image__crop-area .reactEasyCrop_Container{
+ pointer-events:auto;
+}
.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{
border:none;
border-radius:0;
@@ -117,18 +120,6 @@ figure.wp-block-image:not(.wp-block){
overflow:visible !important;
}
-.wp-block-image__aspect-ratio{
- align-items:center;
- display:flex;
- height:46px;
- margin-bottom:-8px;
-}
-.wp-block-image__aspect-ratio .components-button{
- padding-left:0;
- padding-right:0;
- width:36px;
-}
-
.wp-block-image__toolbar_content_textarea{
width:250px;
} \ No newline at end of file
diff --git a/wp-includes/blocks/image/editor-rtl.min.css b/wp-includes/blocks/image/editor-rtl.min.css
index d6bf9e0..4400dd5 100644
--- a/wp-includes/blocks/image/editor-rtl.min.css
+++ b/wp-includes/blocks/image/editor-rtl.min.css
@@ -1 +1 @@
-.wp-block-image.wp-block-image.is-selected .components-placeholder{background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;filter:none!important}.wp-block-image.wp-block-image.is-selected .components-placeholder>svg{opacity:0}.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration{display:none}.wp-block-image.wp-block-image .block-bindings-media-placeholder-message,.wp-block-image.wp-block-image.is-selected .components-placeholder:before{opacity:0}.wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message{opacity:1}.wp-block-image.wp-block-image .components-button,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-placeholder__label{transition: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;right:50%;top:50%;transform:translate(50%,-50%)}.wp-block-image .components-resizable-box__container{display:table}.wp-block-image .components-resizable-box__container img{display:block;height:inherit;width:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{left:0;margin:-1px 0;position:absolute;right: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{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{caption-side:bottom;display:table-caption}.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-left:auto;margin-right:auto;text-align:center}.wp-block-image__crop-area{max-width:100%;overflow:hidden;position:relative;width:100%}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none;border-radius:0}.wp-block-image__crop-icon{align-items:center;display:flex;justify-content:center;min-width:48px;padding:0 8px}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.wp-block-image__aspect-ratio{align-items:center;display:flex;height:46px;margin-bottom:-8px}.wp-block-image__aspect-ratio .components-button{padding-left:0;padding-right:0;width:36px}.wp-block-image__toolbar_content_textarea{width:250px} \ No newline at end of file
+.wp-block-image.wp-block-image.is-selected .components-placeholder{background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;filter:none!important}.wp-block-image.wp-block-image.is-selected .components-placeholder>svg{opacity:0}.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration{display:none}.wp-block-image.wp-block-image .block-bindings-media-placeholder-message,.wp-block-image.wp-block-image.is-selected .components-placeholder:before{opacity:0}.wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message{opacity:1}.wp-block-image.wp-block-image .components-button,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-placeholder__label{transition: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;right:50%;top:50%;transform:translate(50%,-50%)}.wp-block-image .components-resizable-box__container{display:table}.wp-block-image .components-resizable-box__container img{display:block;height:inherit;width:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{left:0;margin:-1px 0;position:absolute;right: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{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{caption-side:bottom;display:table-caption}.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-left:auto;margin-right:auto;text-align:center}.wp-block-image__crop-area{max-width:100%;overflow:hidden;position:relative;width:100%}.wp-block-image__crop-area .reactEasyCrop_Container{pointer-events:auto}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none;border-radius:0}.wp-block-image__crop-icon{align-items:center;display:flex;justify-content:center;min-width:48px;padding:0 8px}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.wp-block-image__toolbar_content_textarea{width:250px} \ No newline at end of file
diff --git a/wp-includes/blocks/image/editor.css b/wp-includes/blocks/image/editor.css
index 6bdd1cd..09ec05a 100644
--- a/wp-includes/blocks/image/editor.css
+++ b/wp-includes/blocks/image/editor.css
@@ -96,6 +96,9 @@ figure.wp-block-image:not(.wp-block){
position:relative;
width:100%;
}
+.wp-block-image__crop-area .reactEasyCrop_Container{
+ pointer-events:auto;
+}
.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{
border:none;
border-radius:0;
@@ -117,18 +120,6 @@ figure.wp-block-image:not(.wp-block){
overflow:visible !important;
}
-.wp-block-image__aspect-ratio{
- align-items:center;
- display:flex;
- height:46px;
- margin-bottom:-8px;
-}
-.wp-block-image__aspect-ratio .components-button{
- padding-left:0;
- padding-right:0;
- width:36px;
-}
-
.wp-block-image__toolbar_content_textarea{
width:250px;
} \ No newline at end of file
diff --git a/wp-includes/blocks/image/editor.min.css b/wp-includes/blocks/image/editor.min.css
index 3f06bfb..31b4ccc 100644
--- a/wp-includes/blocks/image/editor.min.css
+++ b/wp-includes/blocks/image/editor.min.css
@@ -1 +1 @@
-.wp-block-image.wp-block-image.is-selected .components-placeholder{background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;filter:none!important}.wp-block-image.wp-block-image.is-selected .components-placeholder>svg{opacity:0}.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration{display:none}.wp-block-image.wp-block-image .block-bindings-media-placeholder-message,.wp-block-image.wp-block-image.is-selected .components-placeholder:before{opacity:0}.wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message{opacity:1}.wp-block-image.wp-block-image .components-button,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-placeholder__label{transition: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{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.wp-block-image .components-resizable-box__container{display:table}.wp-block-image .components-resizable-box__container img{display:block;height:inherit;width:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{left:0;margin:-1px 0;position:absolute;right: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{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{caption-side:bottom;display:table-caption}.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}.wp-block-image__crop-area{max-width:100%;overflow:hidden;position:relative;width:100%}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none;border-radius:0}.wp-block-image__crop-icon{align-items:center;display:flex;justify-content:center;min-width:48px;padding:0 8px}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.wp-block-image__aspect-ratio{align-items:center;display:flex;height:46px;margin-bottom:-8px}.wp-block-image__aspect-ratio .components-button{padding-left:0;padding-right:0;width:36px}.wp-block-image__toolbar_content_textarea{width:250px} \ No newline at end of file
+.wp-block-image.wp-block-image.is-selected .components-placeholder{background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;filter:none!important}.wp-block-image.wp-block-image.is-selected .components-placeholder>svg{opacity:0}.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration{display:none}.wp-block-image.wp-block-image .block-bindings-media-placeholder-message,.wp-block-image.wp-block-image.is-selected .components-placeholder:before{opacity:0}.wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message{opacity:1}.wp-block-image.wp-block-image .components-button,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-placeholder__label{transition: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{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.wp-block-image .components-resizable-box__container{display:table}.wp-block-image .components-resizable-box__container img{display:block;height:inherit;width:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{left:0;margin:-1px 0;position:absolute;right: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{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{caption-side:bottom;display:table-caption}.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}.wp-block-image__crop-area{max-width:100%;overflow:hidden;position:relative;width:100%}.wp-block-image__crop-area .reactEasyCrop_Container{pointer-events:auto}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none;border-radius:0}.wp-block-image__crop-icon{align-items:center;display:flex;justify-content:center;min-width:48px;padding:0 8px}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.wp-block-image__toolbar_content_textarea{width:250px} \ No newline at end of file
diff --git a/wp-includes/blocks/image/style-rtl.css b/wp-includes/blocks/image/style-rtl.css
index 82b0717..b423748 100644
--- a/wp-includes/blocks/image/style-rtl.css
+++ b/wp-includes/blocks/image/style-rtl.css
@@ -36,11 +36,11 @@
margin-left:auto;
margin-right:auto;
}
-.wp-block-image figcaption{
+.wp-block-image :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
-.wp-block-image .is-style-rounded img,.wp-block-image.is-style-circle-mask img,.wp-block-image.is-style-rounded img{
+.wp-block-image.is-style-circle-mask img{
border-radius:9999px;
}
@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){
@@ -57,35 +57,9 @@
mask-size:contain;
}
}
-.wp-block-image :where(.has-border-color){
- border-style:solid;
-}
-.wp-block-image :where([style*=border-top-color]){
- border-top-style:solid;
-}
-.wp-block-image :where([style*=border-right-color]){
- border-left-style:solid;
-}
-.wp-block-image :where([style*=border-bottom-color]){
- border-bottom-style:solid;
-}
-.wp-block-image :where([style*=border-left-color]){
- border-right-style:solid;
-}
-.wp-block-image :where([style*=border-width]){
- border-style:solid;
-}
-.wp-block-image :where([style*=border-top-width]){
- border-top-style:solid;
-}
-.wp-block-image :where([style*=border-right-width]){
- border-left-style:solid;
-}
-.wp-block-image :where([style*=border-bottom-width]){
- border-bottom-style:solid;
-}
-.wp-block-image :where([style*=border-left-width]){
- border-right-style:solid;
+
+:root :where(.wp-block-image.is-style-rounded img,.wp-block-image .is-style-rounded img){
+ border-radius:9999px;
}
.wp-block-image figure{
diff --git a/wp-includes/blocks/image/style-rtl.min.css b/wp-includes/blocks/image/style-rtl.min.css
index 6246874..2251786 100644
--- a/wp-includes/blocks/image/style-rtl.min.css
+++ b/wp-includes/blocks/image/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}.wp-block-image[style*=border-radius] img,.wp-block-image[style*=border-radius]>a{border-radius:inherit}.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{caption-side:bottom;display:table-caption}.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-bottom:1em;margin-top:.5em}.wp-block-image .is-style-rounded img,.wp-block-image.is-style-circle-mask img,.wp-block-image.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-image.is-style-circle-mask img{border-radius:0;-webkit-mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-mode:alpha;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}}.wp-block-image :where(.has-border-color){border-style:solid}.wp-block-image :where([style*=border-top-color]){border-top-style:solid}.wp-block-image :where([style*=border-right-color]){border-left-style:solid}.wp-block-image :where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-color]){border-right-style:solid}.wp-block-image :where([style*=border-width]){border-style:solid}.wp-block-image :where([style*=border-top-width]){border-top-style:solid}.wp-block-image :where([style*=border-right-width]){border-left-style:solid}.wp-block-image :where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-width]){border-right-style:solid}.wp-block-image figure{margin:0}.wp-lightbox-container{display:flex;flex-direction:column;position:relative}.wp-lightbox-container img{cursor:zoom-in}.wp-lightbox-container img:hover+button{opacity:1}.wp-lightbox-container button{align-items:center;-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background-color:#5a5a5a40;border:none;border-radius:4px;cursor:zoom-in;display:flex;height:20px;justify-content:center;left:16px;opacity:0;padding:0;position:absolute;text-align:center;top:16px;transition:opacity .2s ease;width:20px;z-index:100}.wp-lightbox-container button:focus-visible{outline:3px auto #5a5a5a40;outline:3px auto -webkit-focus-ring-color;outline-offset:3px}.wp-lightbox-container button:hover{cursor:pointer;opacity:1}.wp-lightbox-container button:focus{opacity:1}.wp-lightbox-container button:focus,.wp-lightbox-container button:hover,.wp-lightbox-container button:not(:hover):not(:active):not(.has-background){background-color:#5a5a5a40;border:none}.wp-lightbox-overlay{box-sizing:border-box;cursor:zoom-out;height:100vh;overflow:hidden;position:fixed;right:0;top:0;visibility:hidden;width:100%;z-index:100000}.wp-lightbox-overlay .close-button{align-items:center;cursor:pointer;display:flex;justify-content:center;left:calc(env(safe-area-inset-left) + 16px);min-height:40px;min-width:40px;padding:0;position:absolute;top:calc(env(safe-area-inset-top) + 16px);z-index:5000000}.wp-lightbox-overlay .close-button:focus,.wp-lightbox-overlay .close-button:hover,.wp-lightbox-overlay .close-button:not(:hover):not(:active):not(.has-background){background:none;border:none}.wp-lightbox-overlay .lightbox-image-container{height:var(--wp--lightbox-container-height);overflow:hidden;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);transform-origin:top right;width:var(--wp--lightbox-container-width);z-index:9999999999}.wp-lightbox-overlay .wp-block-image{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;margin:0;position:relative;transform-origin:100% 0;width:100%;z-index:3000000}.wp-lightbox-overlay .wp-block-image img{height:var(--wp--lightbox-image-height);min-height:var(--wp--lightbox-image-height);min-width:var(--wp--lightbox-image-width);width:var(--wp--lightbox-image-width)}.wp-lightbox-overlay .wp-block-image figcaption{display:none}.wp-lightbox-overlay button{background:none;border:none}.wp-lightbox-overlay .scrim{background-color:#fff;height:100%;opacity:.9;position:absolute;width:100%;z-index:2000000}.wp-lightbox-overlay.active{animation:turn-on-visibility .25s both;visibility:visible}.wp-lightbox-overlay.active img{animation:turn-on-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active){animation:turn-off-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active) img{animation:turn-off-visibility .25s both}@media (prefers-reduced-motion:no-preference){.wp-lightbox-overlay.zoom.active{animation:none;opacity:1;visibility:visible}.wp-lightbox-overlay.zoom.active .lightbox-image-container{animation:lightbox-zoom-in .4s}.wp-lightbox-overlay.zoom.active .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.active .scrim{animation:turn-on-visibility .4s forwards}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active){animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container{animation:lightbox-zoom-out .4s}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .scrim{animation:turn-off-visibility .4s forwards}}@keyframes turn-on-visibility{0%{opacity:0}to{opacity:1}}@keyframes turn-off-visibility{0%{opacity:1;visibility:visible}99%{opacity:0;visibility:visible}to{opacity:0;visibility:hidden}}@keyframes lightbox-zoom-in{0%{transform:translate(calc(((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position))*-1),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale))}to{transform:translate(50%,-50%) scale(1)}}@keyframes lightbox-zoom-out{0%{transform:translate(50%,-50%) scale(1);visibility:visible}99%{visibility:visible}to{transform:translate(calc(((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position))*-1),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale));visibility:hidden}} \ No newline at end of file
+.wp-block-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}.wp-block-image[style*=border-radius] img,.wp-block-image[style*=border-radius]>a{border-radius:inherit}.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{caption-side:bottom;display:table-caption}.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 :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-image.is-style-circle-mask img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-image.is-style-circle-mask img{border-radius:0;-webkit-mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-mode:alpha;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}}:root :where(.wp-block-image.is-style-rounded img,.wp-block-image .is-style-rounded img){border-radius:9999px}.wp-block-image figure{margin:0}.wp-lightbox-container{display:flex;flex-direction:column;position:relative}.wp-lightbox-container img{cursor:zoom-in}.wp-lightbox-container img:hover+button{opacity:1}.wp-lightbox-container button{align-items:center;-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background-color:#5a5a5a40;border:none;border-radius:4px;cursor:zoom-in;display:flex;height:20px;justify-content:center;left:16px;opacity:0;padding:0;position:absolute;text-align:center;top:16px;transition:opacity .2s ease;width:20px;z-index:100}.wp-lightbox-container button:focus-visible{outline:3px auto #5a5a5a40;outline:3px auto -webkit-focus-ring-color;outline-offset:3px}.wp-lightbox-container button:hover{cursor:pointer;opacity:1}.wp-lightbox-container button:focus{opacity:1}.wp-lightbox-container button:focus,.wp-lightbox-container button:hover,.wp-lightbox-container button:not(:hover):not(:active):not(.has-background){background-color:#5a5a5a40;border:none}.wp-lightbox-overlay{box-sizing:border-box;cursor:zoom-out;height:100vh;overflow:hidden;position:fixed;right:0;top:0;visibility:hidden;width:100%;z-index:100000}.wp-lightbox-overlay .close-button{align-items:center;cursor:pointer;display:flex;justify-content:center;left:calc(env(safe-area-inset-left) + 16px);min-height:40px;min-width:40px;padding:0;position:absolute;top:calc(env(safe-area-inset-top) + 16px);z-index:5000000}.wp-lightbox-overlay .close-button:focus,.wp-lightbox-overlay .close-button:hover,.wp-lightbox-overlay .close-button:not(:hover):not(:active):not(.has-background){background:none;border:none}.wp-lightbox-overlay .lightbox-image-container{height:var(--wp--lightbox-container-height);overflow:hidden;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);transform-origin:top right;width:var(--wp--lightbox-container-width);z-index:9999999999}.wp-lightbox-overlay .wp-block-image{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;margin:0;position:relative;transform-origin:100% 0;width:100%;z-index:3000000}.wp-lightbox-overlay .wp-block-image img{height:var(--wp--lightbox-image-height);min-height:var(--wp--lightbox-image-height);min-width:var(--wp--lightbox-image-width);width:var(--wp--lightbox-image-width)}.wp-lightbox-overlay .wp-block-image figcaption{display:none}.wp-lightbox-overlay button{background:none;border:none}.wp-lightbox-overlay .scrim{background-color:#fff;height:100%;opacity:.9;position:absolute;width:100%;z-index:2000000}.wp-lightbox-overlay.active{animation:turn-on-visibility .25s both;visibility:visible}.wp-lightbox-overlay.active img{animation:turn-on-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active){animation:turn-off-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active) img{animation:turn-off-visibility .25s both}@media (prefers-reduced-motion:no-preference){.wp-lightbox-overlay.zoom.active{animation:none;opacity:1;visibility:visible}.wp-lightbox-overlay.zoom.active .lightbox-image-container{animation:lightbox-zoom-in .4s}.wp-lightbox-overlay.zoom.active .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.active .scrim{animation:turn-on-visibility .4s forwards}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active){animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container{animation:lightbox-zoom-out .4s}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .scrim{animation:turn-off-visibility .4s forwards}}@keyframes turn-on-visibility{0%{opacity:0}to{opacity:1}}@keyframes turn-off-visibility{0%{opacity:1;visibility:visible}99%{opacity:0;visibility:visible}to{opacity:0;visibility:hidden}}@keyframes lightbox-zoom-in{0%{transform:translate(calc(((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position))*-1),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale))}to{transform:translate(50%,-50%) scale(1)}}@keyframes lightbox-zoom-out{0%{transform:translate(50%,-50%) scale(1);visibility:visible}99%{visibility:visible}to{transform:translate(calc(((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position))*-1),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale));visibility:hidden}} \ No newline at end of file
diff --git a/wp-includes/blocks/image/style.css b/wp-includes/blocks/image/style.css
index 526ae27..827347c 100644
--- a/wp-includes/blocks/image/style.css
+++ b/wp-includes/blocks/image/style.css
@@ -36,11 +36,11 @@
margin-left:auto;
margin-right:auto;
}
-.wp-block-image figcaption{
+.wp-block-image :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
-.wp-block-image .is-style-rounded img,.wp-block-image.is-style-circle-mask img,.wp-block-image.is-style-rounded img{
+.wp-block-image.is-style-circle-mask img{
border-radius:9999px;
}
@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){
@@ -57,35 +57,9 @@
mask-size:contain;
}
}
-.wp-block-image :where(.has-border-color){
- border-style:solid;
-}
-.wp-block-image :where([style*=border-top-color]){
- border-top-style:solid;
-}
-.wp-block-image :where([style*=border-right-color]){
- border-right-style:solid;
-}
-.wp-block-image :where([style*=border-bottom-color]){
- border-bottom-style:solid;
-}
-.wp-block-image :where([style*=border-left-color]){
- border-left-style:solid;
-}
-.wp-block-image :where([style*=border-width]){
- border-style:solid;
-}
-.wp-block-image :where([style*=border-top-width]){
- border-top-style:solid;
-}
-.wp-block-image :where([style*=border-right-width]){
- border-right-style:solid;
-}
-.wp-block-image :where([style*=border-bottom-width]){
- border-bottom-style:solid;
-}
-.wp-block-image :where([style*=border-left-width]){
- border-left-style:solid;
+
+:root :where(.wp-block-image.is-style-rounded img,.wp-block-image .is-style-rounded img){
+ border-radius:9999px;
}
.wp-block-image figure{
diff --git a/wp-includes/blocks/image/style.min.css b/wp-includes/blocks/image/style.min.css
index fce742c..afd6dbc 100644
--- a/wp-includes/blocks/image/style.min.css
+++ b/wp-includes/blocks/image/style.min.css
@@ -1 +1 @@
-.wp-block-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}.wp-block-image[style*=border-radius] img,.wp-block-image[style*=border-radius]>a{border-radius:inherit}.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{caption-side:bottom;display:table-caption}.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-bottom:1em;margin-top:.5em}.wp-block-image .is-style-rounded img,.wp-block-image.is-style-circle-mask img,.wp-block-image.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-image.is-style-circle-mask img{border-radius:0;-webkit-mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-mode:alpha;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}}.wp-block-image :where(.has-border-color){border-style:solid}.wp-block-image :where([style*=border-top-color]){border-top-style:solid}.wp-block-image :where([style*=border-right-color]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-color]){border-left-style:solid}.wp-block-image :where([style*=border-width]){border-style:solid}.wp-block-image :where([style*=border-top-width]){border-top-style:solid}.wp-block-image :where([style*=border-right-width]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-width]){border-left-style:solid}.wp-block-image figure{margin:0}.wp-lightbox-container{display:flex;flex-direction:column;position:relative}.wp-lightbox-container img{cursor:zoom-in}.wp-lightbox-container img:hover+button{opacity:1}.wp-lightbox-container button{align-items:center;-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background-color:#5a5a5a40;border:none;border-radius:4px;cursor:zoom-in;display:flex;height:20px;justify-content:center;opacity:0;padding:0;position:absolute;right:16px;text-align:center;top:16px;transition:opacity .2s ease;width:20px;z-index:100}.wp-lightbox-container button:focus-visible{outline:3px auto #5a5a5a40;outline:3px auto -webkit-focus-ring-color;outline-offset:3px}.wp-lightbox-container button:hover{cursor:pointer;opacity:1}.wp-lightbox-container button:focus{opacity:1}.wp-lightbox-container button:focus,.wp-lightbox-container button:hover,.wp-lightbox-container button:not(:hover):not(:active):not(.has-background){background-color:#5a5a5a40;border:none}.wp-lightbox-overlay{box-sizing:border-box;cursor:zoom-out;height:100vh;left:0;overflow:hidden;position:fixed;top:0;visibility:hidden;width:100%;z-index:100000}.wp-lightbox-overlay .close-button{align-items:center;cursor:pointer;display:flex;justify-content:center;min-height:40px;min-width:40px;padding:0;position:absolute;right:calc(env(safe-area-inset-right) + 16px);top:calc(env(safe-area-inset-top) + 16px);z-index:5000000}.wp-lightbox-overlay .close-button:focus,.wp-lightbox-overlay .close-button:hover,.wp-lightbox-overlay .close-button:not(:hover):not(:active):not(.has-background){background:none;border:none}.wp-lightbox-overlay .lightbox-image-container{height:var(--wp--lightbox-container-height);left:50%;overflow:hidden;position:absolute;top:50%;transform:translate(-50%,-50%);transform-origin:top left;width:var(--wp--lightbox-container-width);z-index:9999999999}.wp-lightbox-overlay .wp-block-image{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;margin:0;position:relative;transform-origin:0 0;width:100%;z-index:3000000}.wp-lightbox-overlay .wp-block-image img{height:var(--wp--lightbox-image-height);min-height:var(--wp--lightbox-image-height);min-width:var(--wp--lightbox-image-width);width:var(--wp--lightbox-image-width)}.wp-lightbox-overlay .wp-block-image figcaption{display:none}.wp-lightbox-overlay button{background:none;border:none}.wp-lightbox-overlay .scrim{background-color:#fff;height:100%;opacity:.9;position:absolute;width:100%;z-index:2000000}.wp-lightbox-overlay.active{animation:turn-on-visibility .25s both;visibility:visible}.wp-lightbox-overlay.active img{animation:turn-on-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active){animation:turn-off-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active) img{animation:turn-off-visibility .25s both}@media (prefers-reduced-motion:no-preference){.wp-lightbox-overlay.zoom.active{animation:none;opacity:1;visibility:visible}.wp-lightbox-overlay.zoom.active .lightbox-image-container{animation:lightbox-zoom-in .4s}.wp-lightbox-overlay.zoom.active .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.active .scrim{animation:turn-on-visibility .4s forwards}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active){animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container{animation:lightbox-zoom-out .4s}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .scrim{animation:turn-off-visibility .4s forwards}}@keyframes turn-on-visibility{0%{opacity:0}to{opacity:1}}@keyframes turn-off-visibility{0%{opacity:1;visibility:visible}99%{opacity:0;visibility:visible}to{opacity:0;visibility:hidden}}@keyframes lightbox-zoom-in{0%{transform:translate(calc((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position)),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale))}to{transform:translate(-50%,-50%) scale(1)}}@keyframes lightbox-zoom-out{0%{transform:translate(-50%,-50%) scale(1);visibility:visible}99%{visibility:visible}to{transform:translate(calc((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position)),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale));visibility:hidden}} \ No newline at end of file
+.wp-block-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}.wp-block-image[style*=border-radius] img,.wp-block-image[style*=border-radius]>a{border-radius:inherit}.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{caption-side:bottom;display:table-caption}.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 :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-image.is-style-circle-mask img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-image.is-style-circle-mask img{border-radius:0;-webkit-mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-mode:alpha;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}}:root :where(.wp-block-image.is-style-rounded img,.wp-block-image .is-style-rounded img){border-radius:9999px}.wp-block-image figure{margin:0}.wp-lightbox-container{display:flex;flex-direction:column;position:relative}.wp-lightbox-container img{cursor:zoom-in}.wp-lightbox-container img:hover+button{opacity:1}.wp-lightbox-container button{align-items:center;-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background-color:#5a5a5a40;border:none;border-radius:4px;cursor:zoom-in;display:flex;height:20px;justify-content:center;opacity:0;padding:0;position:absolute;right:16px;text-align:center;top:16px;transition:opacity .2s ease;width:20px;z-index:100}.wp-lightbox-container button:focus-visible{outline:3px auto #5a5a5a40;outline:3px auto -webkit-focus-ring-color;outline-offset:3px}.wp-lightbox-container button:hover{cursor:pointer;opacity:1}.wp-lightbox-container button:focus{opacity:1}.wp-lightbox-container button:focus,.wp-lightbox-container button:hover,.wp-lightbox-container button:not(:hover):not(:active):not(.has-background){background-color:#5a5a5a40;border:none}.wp-lightbox-overlay{box-sizing:border-box;cursor:zoom-out;height:100vh;left:0;overflow:hidden;position:fixed;top:0;visibility:hidden;width:100%;z-index:100000}.wp-lightbox-overlay .close-button{align-items:center;cursor:pointer;display:flex;justify-content:center;min-height:40px;min-width:40px;padding:0;position:absolute;right:calc(env(safe-area-inset-right) + 16px);top:calc(env(safe-area-inset-top) + 16px);z-index:5000000}.wp-lightbox-overlay .close-button:focus,.wp-lightbox-overlay .close-button:hover,.wp-lightbox-overlay .close-button:not(:hover):not(:active):not(.has-background){background:none;border:none}.wp-lightbox-overlay .lightbox-image-container{height:var(--wp--lightbox-container-height);left:50%;overflow:hidden;position:absolute;top:50%;transform:translate(-50%,-50%);transform-origin:top left;width:var(--wp--lightbox-container-width);z-index:9999999999}.wp-lightbox-overlay .wp-block-image{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;margin:0;position:relative;transform-origin:0 0;width:100%;z-index:3000000}.wp-lightbox-overlay .wp-block-image img{height:var(--wp--lightbox-image-height);min-height:var(--wp--lightbox-image-height);min-width:var(--wp--lightbox-image-width);width:var(--wp--lightbox-image-width)}.wp-lightbox-overlay .wp-block-image figcaption{display:none}.wp-lightbox-overlay button{background:none;border:none}.wp-lightbox-overlay .scrim{background-color:#fff;height:100%;opacity:.9;position:absolute;width:100%;z-index:2000000}.wp-lightbox-overlay.active{animation:turn-on-visibility .25s both;visibility:visible}.wp-lightbox-overlay.active img{animation:turn-on-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active){animation:turn-off-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active) img{animation:turn-off-visibility .25s both}@media (prefers-reduced-motion:no-preference){.wp-lightbox-overlay.zoom.active{animation:none;opacity:1;visibility:visible}.wp-lightbox-overlay.zoom.active .lightbox-image-container{animation:lightbox-zoom-in .4s}.wp-lightbox-overlay.zoom.active .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.active .scrim{animation:turn-on-visibility .4s forwards}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active){animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container{animation:lightbox-zoom-out .4s}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .scrim{animation:turn-off-visibility .4s forwards}}@keyframes turn-on-visibility{0%{opacity:0}to{opacity:1}}@keyframes turn-off-visibility{0%{opacity:1;visibility:visible}99%{opacity:0;visibility:visible}to{opacity:0;visibility:hidden}}@keyframes lightbox-zoom-in{0%{transform:translate(calc((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position)),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale))}to{transform:translate(-50%,-50%) scale(1)}}@keyframes lightbox-zoom-out{0%{transform:translate(-50%,-50%) scale(1);visibility:visible}99%{visibility:visible}to{transform:translate(calc((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position)),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale));visibility:hidden}} \ No newline at end of file
diff --git a/wp-includes/blocks/image/theme-rtl.css b/wp-includes/blocks/image/theme-rtl.css
index 07819c7..fe23ade 100644
--- a/wp-includes/blocks/image/theme-rtl.css
+++ b/wp-includes/blocks/image/theme-rtl.css
@@ -1,9 +1,9 @@
-.wp-block-image figcaption{
+:root :where(.wp-block-image figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-image figcaption{
+.is-dark-theme :root :where(.wp-block-image figcaption){
color:#ffffffa6;
}
diff --git a/wp-includes/blocks/image/theme-rtl.min.css b/wp-includes/blocks/image/theme-rtl.min.css
index 4f11dcb..4921cb6 100644
--- a/wp-includes/blocks/image/theme-rtl.min.css
+++ b/wp-includes/blocks/image/theme-rtl.min.css
@@ -1 +1 @@
-.wp-block-image figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-image figcaption{color:#ffffffa6}.wp-block-image{margin:0 0 1em} \ No newline at end of file
+:root :where(.wp-block-image figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme :root :where(.wp-block-image figcaption){color:#ffffffa6}.wp-block-image{margin:0 0 1em} \ No newline at end of file
diff --git a/wp-includes/blocks/image/theme.css b/wp-includes/blocks/image/theme.css
index 07819c7..fe23ade 100644
--- a/wp-includes/blocks/image/theme.css
+++ b/wp-includes/blocks/image/theme.css
@@ -1,9 +1,9 @@
-.wp-block-image figcaption{
+:root :where(.wp-block-image figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-image figcaption{
+.is-dark-theme :root :where(.wp-block-image figcaption){
color:#ffffffa6;
}
diff --git a/wp-includes/blocks/image/theme.min.css b/wp-includes/blocks/image/theme.min.css
index 4f11dcb..4921cb6 100644
--- a/wp-includes/blocks/image/theme.min.css
+++ b/wp-includes/blocks/image/theme.min.css
@@ -1 +1 @@
-.wp-block-image figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-image figcaption{color:#ffffffa6}.wp-block-image{margin:0 0 1em} \ No newline at end of file
+:root :where(.wp-block-image figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme :root :where(.wp-block-image figcaption){color:#ffffffa6}.wp-block-image{margin:0 0 1em} \ No newline at end of file
diff --git a/wp-includes/blocks/image/view.js b/wp-includes/blocks/image/view.js
index 88b4815..62c1f50 100644
--- a/wp-includes/blocks/image/view.js
+++ b/wp-includes/blocks/image/view.js
@@ -197,7 +197,9 @@ const {
},
callbacks: {
setOverlayStyles() {
- if (!imageRef) return;
+ if (!imageRef) {
+ return;
+ }
let {
naturalWidth,
naturalHeight,
diff --git a/wp-includes/blocks/latest-comments.php b/wp-includes/blocks/latest-comments.php
index 830e22a..5b6023c 100644
--- a/wp-includes/blocks/latest-comments.php
+++ b/wp-includes/blocks/latest-comments.php
@@ -36,6 +36,8 @@ function wp_latest_comments_draft_or_post_title( $post = 0 ) {
/**
* Renders the `core/latest-comments` block on server.
*
+ * @since 5.1.0
+ *
* @param array $attributes The block attributes.
*
* @return string Returns the post content with latest comments added.
@@ -145,6 +147,8 @@ function render_block_core_latest_comments( $attributes = array() ) {
/**
* Registers the `core/latest-comments` block.
+ *
+ * @since 5.3.0
*/
function register_block_core_latest_comments() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/latest-posts.php b/wp-includes/blocks/latest-posts.php
index adc51d0..85c7b58 100644
--- a/wp-includes/blocks/latest-posts.php
+++ b/wp-includes/blocks/latest-posts.php
@@ -18,6 +18,8 @@ $block_core_latest_posts_excerpt_length = 0;
* Callback for the excerpt_length filter used by
* the Latest Posts block at render time.
*
+ * @since 5.4.0
+ *
* @return int Returns the global $block_core_latest_posts_excerpt_length variable
* to allow the excerpt_length filter respect the Latest Block setting.
*/
@@ -29,6 +31,8 @@ function block_core_latest_posts_get_excerpt_length() {
/**
* Renders the `core/latest-posts` block on server.
*
+ * @since 5.0.0
+ *
* @param array $attributes The block attributes.
*
* @return string Returns the post content with latest posts added.
@@ -148,12 +152,13 @@ function render_block_core_latest_posts( $attributes ) {
* [&hellip;] is the default excerpt ending from wp_trim_excerpt() in Core.
*/
if ( str_ends_with( $trimmed_excerpt, ' [&hellip;]' ) ) {
+ /** This filter is documented in wp-includes/formatting.php */
$excerpt_length = (int) apply_filters( 'excerpt_length', $block_core_latest_posts_excerpt_length );
if ( $excerpt_length <= $block_core_latest_posts_excerpt_length ) {
$trimmed_excerpt = substr( $trimmed_excerpt, 0, -11 );
$trimmed_excerpt .= sprintf(
/* translators: 1: A URL to a post, 2: Hidden accessibility text: Post title */
- __( '… <a href="%1$s" rel="noopener noreferrer">Read more<span class="screen-reader-text">: %2$s</span></a>' ),
+ __( '… <a class="wp-block-latest-posts__read-more" href="%1$s" rel="noopener noreferrer">Read more<span class="screen-reader-text">: %2$s</span></a>' ),
esc_url( $post_link ),
esc_html( $title )
);
@@ -218,6 +223,8 @@ function render_block_core_latest_posts( $attributes ) {
/**
* Registers the `core/latest-posts` block on server.
+ *
+ * @since 5.0.0
*/
function register_block_core_latest_posts() {
register_block_type_from_metadata(
@@ -241,6 +248,8 @@ add_action( 'init', 'register_block_core_latest_posts' );
* TODO: Remove when and if the bottom client-side deprecation for this block
* is removed.
*
+ * @since 5.5.0
+ *
* @param array $block A single parsed block object.
*
* @return array The migrated block object.
diff --git a/wp-includes/blocks/latest-posts/editor-rtl.css b/wp-includes/blocks/latest-posts/editor-rtl.css
index 4b51e11..fc67c75 100644
--- a/wp-includes/blocks/latest-posts/editor-rtl.css
+++ b/wp-includes/blocks/latest-posts/editor-rtl.css
@@ -1,9 +1,3 @@
-.wp-block-latest-posts{
- padding-right:2.5em;
-}
-.wp-block-latest-posts.is-grid{
- padding-right:0;
-}
.wp-block-latest-posts>li{
overflow:hidden;
}
@@ -12,13 +6,17 @@
display:inline;
}
-.edit-post-visual-editor .wp-block-latest-posts.is-grid li{
- margin-bottom:20px;
-}
-
.editor-latest-posts-image-alignment-control .components-base-control__label{
display:block;
}
.editor-latest-posts-image-alignment-control .components-toolbar{
border-radius:2px;
+}
+
+:root :where(.wp-block-latest-posts){
+ padding-right:2.5em;
+}
+
+:root :where(.wp-block-latest-posts.is-grid),:root :where(.wp-block-latest-posts__list){
+ padding-right:0;
} \ No newline at end of file
diff --git a/wp-includes/blocks/latest-posts/editor-rtl.min.css b/wp-includes/blocks/latest-posts/editor-rtl.min.css
index b389b8e..5d0b3f4 100644
--- a/wp-includes/blocks/latest-posts/editor-rtl.min.css
+++ b/wp-includes/blocks/latest-posts/editor-rtl.min.css
@@ -1 +1 @@
-.wp-block-latest-posts{padding-right:2.5em}.wp-block-latest-posts.is-grid{padding-right:0}.wp-block-latest-posts>li{overflow:hidden}.wp-block-latest-posts li a>div{display:inline}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}.editor-latest-posts-image-alignment-control .components-base-control__label{display:block}.editor-latest-posts-image-alignment-control .components-toolbar{border-radius:2px} \ No newline at end of file
+.wp-block-latest-posts>li{overflow:hidden}.wp-block-latest-posts li a>div{display:inline}.editor-latest-posts-image-alignment-control .components-base-control__label{display:block}.editor-latest-posts-image-alignment-control .components-toolbar{border-radius:2px}:root :where(.wp-block-latest-posts){padding-right:2.5em}:root :where(.wp-block-latest-posts.is-grid),:root :where(.wp-block-latest-posts__list){padding-right:0} \ No newline at end of file
diff --git a/wp-includes/blocks/latest-posts/editor.css b/wp-includes/blocks/latest-posts/editor.css
index 850c367..67af7df 100644
--- a/wp-includes/blocks/latest-posts/editor.css
+++ b/wp-includes/blocks/latest-posts/editor.css
@@ -1,9 +1,3 @@
-.wp-block-latest-posts{
- padding-left:2.5em;
-}
-.wp-block-latest-posts.is-grid{
- padding-left:0;
-}
.wp-block-latest-posts>li{
overflow:hidden;
}
@@ -12,13 +6,17 @@
display:inline;
}
-.edit-post-visual-editor .wp-block-latest-posts.is-grid li{
- margin-bottom:20px;
-}
-
.editor-latest-posts-image-alignment-control .components-base-control__label{
display:block;
}
.editor-latest-posts-image-alignment-control .components-toolbar{
border-radius:2px;
+}
+
+:root :where(.wp-block-latest-posts){
+ padding-left:2.5em;
+}
+
+:root :where(.wp-block-latest-posts.is-grid),:root :where(.wp-block-latest-posts__list){
+ padding-left:0;
} \ No newline at end of file
diff --git a/wp-includes/blocks/latest-posts/editor.min.css b/wp-includes/blocks/latest-posts/editor.min.css
index b34b815..8c02afe 100644
--- a/wp-includes/blocks/latest-posts/editor.min.css
+++ b/wp-includes/blocks/latest-posts/editor.min.css
@@ -1 +1 @@
-.wp-block-latest-posts{padding-left:2.5em}.wp-block-latest-posts.is-grid{padding-left:0}.wp-block-latest-posts>li{overflow:hidden}.wp-block-latest-posts li a>div{display:inline}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}.editor-latest-posts-image-alignment-control .components-base-control__label{display:block}.editor-latest-posts-image-alignment-control .components-toolbar{border-radius:2px} \ No newline at end of file
+.wp-block-latest-posts>li{overflow:hidden}.wp-block-latest-posts li a>div{display:inline}.editor-latest-posts-image-alignment-control .components-base-control__label{display:block}.editor-latest-posts-image-alignment-control .components-toolbar{border-radius:2px}:root :where(.wp-block-latest-posts){padding-left:2.5em}:root :where(.wp-block-latest-posts.is-grid),:root :where(.wp-block-latest-posts__list){padding-left:0} \ No newline at end of file
diff --git a/wp-includes/blocks/latest-posts/style-rtl.css b/wp-includes/blocks/latest-posts/style-rtl.css
index cad7683..3e42eaa 100644
--- a/wp-includes/blocks/latest-posts/style-rtl.css
+++ b/wp-includes/blocks/latest-posts/style-rtl.css
@@ -9,15 +9,14 @@
}
.wp-block-latest-posts.wp-block-latest-posts__list{
list-style:none;
- padding-right:0;
}
.wp-block-latest-posts.wp-block-latest-posts__list li{
clear:both;
+ overflow-wrap:break-word;
}
.wp-block-latest-posts.is-grid{
display:flex;
flex-wrap:wrap;
- padding:0;
}
.wp-block-latest-posts.is-grid li{
margin:0 0 1.25em 1.25em;
@@ -56,6 +55,13 @@
}
}
+:root :where(.wp-block-latest-posts.is-grid){
+ padding:0;
+}
+:root :where(.wp-block-latest-posts.wp-block-latest-posts__list){
+ padding-right:0;
+}
+
.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{
display:block;
font-size:.8125em;
diff --git a/wp-includes/blocks/latest-posts/style-rtl.min.css b/wp-includes/blocks/latest-posts/style-rtl.min.css
index ff16e58..ef567be 100644
--- a/wp-includes/blocks/latest-posts/style-rtl.min.css
+++ b/wp-includes/blocks/latest-posts/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-latest-posts{box-sizing:border-box}.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;padding-right:0}.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 1.25em 1.25em;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-left:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-left:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-left:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-left:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-left:0}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-bottom:1em;margin-top:.5em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;max-width:100%;width:auto}.wp-block-latest-posts__featured-image.alignleft{float:left;margin-right:1em}.wp-block-latest-posts__featured-image.alignright{float:right;margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center} \ No newline at end of file
+.wp-block-latest-posts{box-sizing:border-box}.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;overflow-wrap:break-word}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap}.wp-block-latest-posts.is-grid li{margin:0 0 1.25em 1.25em;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-left:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-left:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-left:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-left:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-left:0}}:root :where(.wp-block-latest-posts.is-grid){padding:0}:root :where(.wp-block-latest-posts.wp-block-latest-posts__list){padding-right:0}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-bottom:1em;margin-top:.5em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;max-width:100%;width:auto}.wp-block-latest-posts__featured-image.alignleft{float:left;margin-right:1em}.wp-block-latest-posts__featured-image.alignright{float:right;margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center} \ No newline at end of file
diff --git a/wp-includes/blocks/latest-posts/style.css b/wp-includes/blocks/latest-posts/style.css
index 63f0115..a9c15ad 100644
--- a/wp-includes/blocks/latest-posts/style.css
+++ b/wp-includes/blocks/latest-posts/style.css
@@ -9,15 +9,14 @@
}
.wp-block-latest-posts.wp-block-latest-posts__list{
list-style:none;
- padding-left:0;
}
.wp-block-latest-posts.wp-block-latest-posts__list li{
clear:both;
+ overflow-wrap:break-word;
}
.wp-block-latest-posts.is-grid{
display:flex;
flex-wrap:wrap;
- padding:0;
}
.wp-block-latest-posts.is-grid li{
margin:0 1.25em 1.25em 0;
@@ -56,6 +55,13 @@
}
}
+:root :where(.wp-block-latest-posts.is-grid){
+ padding:0;
+}
+:root :where(.wp-block-latest-posts.wp-block-latest-posts__list){
+ padding-left:0;
+}
+
.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{
display:block;
font-size:.8125em;
diff --git a/wp-includes/blocks/latest-posts/style.min.css b/wp-includes/blocks/latest-posts/style.min.css
index a71b476..e9403e4 100644
--- a/wp-includes/blocks/latest-posts/style.min.css
+++ b/wp-includes/blocks/latest-posts/style.min.css
@@ -1 +1 @@
-.wp-block-latest-posts{box-sizing:border-box}.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;padding-left:0}.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 1.25em 1.25em 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-right:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-right:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-right:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-right:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-right:0}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-bottom:1em;margin-top:.5em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;max-width:100%;width:auto}.wp-block-latest-posts__featured-image.alignleft{float:left;margin-right:1em}.wp-block-latest-posts__featured-image.alignright{float:right;margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center} \ No newline at end of file
+.wp-block-latest-posts{box-sizing:border-box}.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;overflow-wrap:break-word}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap}.wp-block-latest-posts.is-grid li{margin:0 1.25em 1.25em 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-right:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-right:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-right:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-right:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-right:0}}:root :where(.wp-block-latest-posts.is-grid){padding:0}:root :where(.wp-block-latest-posts.wp-block-latest-posts__list){padding-left:0}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-bottom:1em;margin-top:.5em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;max-width:100%;width:auto}.wp-block-latest-posts__featured-image.alignleft{float:left;margin-right:1em}.wp-block-latest-posts__featured-image.alignright{float:right;margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center} \ No newline at end of file
diff --git a/wp-includes/blocks/legacy-widget.php b/wp-includes/blocks/legacy-widget.php
index 94cfb9b..ee13ae9 100644
--- a/wp-includes/blocks/legacy-widget.php
+++ b/wp-includes/blocks/legacy-widget.php
@@ -8,6 +8,10 @@
/**
* Renders the 'core/legacy-widget' block.
*
+ * @since 5.8.0
+ *
+ * @global int $wp_widget_factory.
+ *
* @param array $attributes The block attributes.
*
* @return string Rendered block.
@@ -54,6 +58,8 @@ function render_block_core_legacy_widget( $attributes ) {
/**
* Registers the 'core/legacy-widget' block.
+ *
+ * @since 5.8.0
*/
function register_block_core_legacy_widget() {
register_block_type_from_metadata(
@@ -70,6 +76,8 @@ add_action( 'init', 'register_block_core_legacy_widget' );
* Intercepts any request with legacy-widget-preview in the query param and, if
* set, renders a page containing a preview of the requested Legacy Widget
* block.
+ *
+ * @since 5.8.0
*/
function handle_legacy_widget_preview_iframe() {
if ( empty( $_GET['legacy-widget-preview'] ) ) {
diff --git a/wp-includes/blocks/list-item/block.json b/wp-includes/blocks/list-item/block.json
index 61c6eec..92822c9 100644
--- a/wp-includes/blocks/list-item/block.json
+++ b/wp-includes/blocks/list-item/block.json
@@ -21,7 +21,8 @@
},
"supports": {
"className": false,
- "__experimentalSelector": "li",
+ "__experimentalSelector": ".wp-block-list > li",
+ "splitting": true,
"spacing": {
"margin": true,
"padding": true,
diff --git a/wp-includes/blocks/list.php b/wp-includes/blocks/list.php
new file mode 100644
index 0000000..1bffd81
--- /dev/null
+++ b/wp-includes/blocks/list.php
@@ -0,0 +1,54 @@
+<?php
+/**
+ * Adds the wp-block-list class to the rendered list block.
+ *
+ * @package WordPress
+ */
+
+/**
+ * Adds the wp-block-list class to the rendered list block.
+ * Ensures that pre-existing list blocks use the class name on the front.
+ * For example, <ol> is transformed to <ol class="wp-block-list">.
+ *
+ * @since 6.6.0
+ *
+ * @see https://github.com/WordPress/gutenberg/issues/12420
+ *
+ * @param array $attributes Attributes of the block being rendered.
+ * @param string $content Content of the block being rendered.
+ *
+ * @return string The content of the block being rendered.
+ */
+function block_core_list_render( $attributes, $content ) {
+ if ( ! $content ) {
+ return $content;
+ }
+
+ $processor = new WP_HTML_Tag_Processor( $content );
+
+ $list_tags = array( 'OL', 'UL' );
+ while ( $processor->next_tag() ) {
+ if ( in_array( $processor->get_tag(), $list_tags, true ) ) {
+ $processor->add_class( 'wp-block-list' );
+ break;
+ }
+ }
+
+ return $processor->get_updated_html();
+}
+
+/**
+ * Registers the `core/list` block on server.
+ *
+ * @since 6.6.0
+ */
+function register_block_core_list() {
+ register_block_type_from_metadata(
+ __DIR__ . '/list',
+ array(
+ 'render_callback' => 'block_core_list_render',
+ )
+ );
+}
+
+add_action( 'init', 'register_block_core_list' );
diff --git a/wp-includes/blocks/list/block.json b/wp-includes/blocks/list/block.json
index 7d2de95..157aaf7 100644
--- a/wp-includes/blocks/list/block.json
+++ b/wp-includes/blocks/list/block.json
@@ -38,7 +38,7 @@
},
"supports": {
"anchor": true,
- "className": false,
+ "html": false,
"typography": {
"fontSize": true,
"lineHeight": true,
@@ -69,7 +69,6 @@
}
},
"__unstablePasteTextInline": true,
- "__experimentalSelector": "ol,ul",
"__experimentalOnMerge": true,
"__experimentalSlashInserter": true,
"interactivity": {
diff --git a/wp-includes/blocks/list/style-rtl.css b/wp-includes/blocks/list/style-rtl.css
index aef9754..bd5ee34 100644
--- a/wp-includes/blocks/list/style-rtl.css
+++ b/wp-includes/blocks/list/style-rtl.css
@@ -1,6 +1,7 @@
ol,ul{
box-sizing:border-box;
}
-ol.has-background,ul.has-background{
+
+:root :where(ul.has-background,ol.has-background){
padding:1.25em 2.375em;
} \ No newline at end of file
diff --git a/wp-includes/blocks/list/style-rtl.min.css b/wp-includes/blocks/list/style-rtl.min.css
index d840bee..a8054c4 100644
--- a/wp-includes/blocks/list/style-rtl.min.css
+++ b/wp-includes/blocks/list/style-rtl.min.css
@@ -1 +1 @@
-ol,ul{box-sizing:border-box}ol.has-background,ul.has-background{padding:1.25em 2.375em} \ No newline at end of file
+ol,ul{box-sizing:border-box}:root :where(ul.has-background,ol.has-background){padding:1.25em 2.375em} \ No newline at end of file
diff --git a/wp-includes/blocks/list/style.css b/wp-includes/blocks/list/style.css
index aef9754..bd5ee34 100644
--- a/wp-includes/blocks/list/style.css
+++ b/wp-includes/blocks/list/style.css
@@ -1,6 +1,7 @@
ol,ul{
box-sizing:border-box;
}
-ol.has-background,ul.has-background{
+
+:root :where(ul.has-background,ol.has-background){
padding:1.25em 2.375em;
} \ No newline at end of file
diff --git a/wp-includes/blocks/list/style.min.css b/wp-includes/blocks/list/style.min.css
index d840bee..a8054c4 100644
--- a/wp-includes/blocks/list/style.min.css
+++ b/wp-includes/blocks/list/style.min.css
@@ -1 +1 @@
-ol,ul{box-sizing:border-box}ol.has-background,ul.has-background{padding:1.25em 2.375em} \ No newline at end of file
+ol,ul{box-sizing:border-box}:root :where(ul.has-background,ol.has-background){padding:1.25em 2.375em} \ No newline at end of file
diff --git a/wp-includes/blocks/loginout.php b/wp-includes/blocks/loginout.php
index ac10ced..de90ebc 100644
--- a/wp-includes/blocks/loginout.php
+++ b/wp-includes/blocks/loginout.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/loginout` block on server.
*
+ * @since 5.8.0
+ *
* @param array $attributes The block attributes.
*
* @return string Returns the login-out link or form.
@@ -39,6 +41,8 @@ function render_block_core_loginout( $attributes ) {
/**
* Registers the `core/loginout` block on server.
+ *
+ * @since 5.8.0
*/
function register_block_core_loginout() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/media-text.php b/wp-includes/blocks/media-text.php
new file mode 100644
index 0000000..87be164
--- /dev/null
+++ b/wp-includes/blocks/media-text.php
@@ -0,0 +1,121 @@
+<?php
+/**
+ * Server-side rendering of the `core/media-text` block.
+ *
+ * @package WordPress
+ */
+
+/**
+ * Renders the `core/media-text` block on server.
+ *
+ * @since 6.6.0
+ *
+ * @param array $attributes The block attributes.
+ * @param string $content The block rendered content.
+ *
+ * @return string Returns the Media & Text block markup, if useFeaturedImage is true.
+ */
+function render_block_core_media_text( $attributes, $content ) {
+ if ( false === $attributes['useFeaturedImage'] ) {
+ return $content;
+ }
+
+ if ( in_the_loop() ) {
+ update_post_thumbnail_cache();
+ }
+
+ $current_featured_image = get_the_post_thumbnail_url();
+ if ( ! $current_featured_image ) {
+ return $content;
+ }
+
+ $media_tag_processor = new WP_HTML_Tag_Processor( $content );
+ $wrapping_figure_query = array(
+ 'tag_name' => 'figure',
+ 'class_name' => 'wp-block-media-text__media',
+ );
+ $has_media_on_right = isset( $attributes['mediaPosition'] ) && 'right' === $attributes['mediaPosition'];
+ $image_fill = isset( $attributes['imageFill'] ) && $attributes['imageFill'];
+ $focal_point = isset( $attributes['focalPoint'] ) ? round( $attributes['focalPoint']['x'] * 100 ) . '% ' . round( $attributes['focalPoint']['y'] * 100 ) . '%' : '50% 50%';
+ $unique_id = 'wp-block-media-text__media-' . wp_unique_id();
+
+ if ( $has_media_on_right ) {
+ // Loop through all the figure tags and set a bookmark on the last figure tag.
+ while ( $media_tag_processor->next_tag( $wrapping_figure_query ) ) {
+ $media_tag_processor->set_bookmark( 'last_figure' );
+ }
+ if ( $media_tag_processor->has_bookmark( 'last_figure' ) ) {
+ $media_tag_processor->seek( 'last_figure' );
+ if ( $image_fill ) {
+ $media_tag_processor->set_attribute( 'style', 'background-image:url(' . esc_url( $current_featured_image ) . ');background-position:' . $focal_point . ';' );
+ } else {
+ // Insert a unique ID to identify the figure tag.
+ $media_tag_processor->set_attribute( 'id', $unique_id );
+ }
+ }
+ } else {
+ if ( $media_tag_processor->next_tag( $wrapping_figure_query ) ) {
+ if ( $image_fill ) {
+ $media_tag_processor->set_attribute( 'style', 'background-image:url(' . esc_url( $current_featured_image ) . ');background-position:' . $focal_point . ';' );
+ } else {
+ // Insert a unique ID to identify the figure tag.
+ $media_tag_processor->set_attribute( 'id', $unique_id );
+ }
+ }
+ }
+
+ $content = $media_tag_processor->get_updated_html();
+
+ // If the image is not set to fill, add the image tag inside the figure tag,
+ // and update the image attributes in order to display the featured image.
+ if ( ! $image_fill ) {
+ $media_size_slug = isset( $attributes['mediaSizeSlug'] ) ? $attributes['mediaSizeSlug'] : 'full';
+ $image_tag = '<img class="wp-block-media-text__featured_image">';
+ $content = preg_replace(
+ '/(<figure\s+id="' . preg_quote( $unique_id, '/' ) . '"\s+class="wp-block-media-text__media"\s*>)/',
+ '$1' . $image_tag,
+ $content
+ );
+
+ $image_tag_processor = new WP_HTML_Tag_Processor( $content );
+ if ( $image_tag_processor->next_tag(
+ array(
+ 'tag_name' => 'figure',
+ 'id' => $unique_id,
+ )
+ ) ) {
+ // The ID is only used to ensure that the correct figure tag is selected,
+ // and can now be removed.
+ $image_tag_processor->remove_attribute( 'id' );
+ if ( $image_tag_processor->next_tag(
+ array(
+ 'tag_name' => 'img',
+ 'class_name' => 'wp-block-media-text__featured_image',
+ )
+ ) ) {
+ $image_tag_processor->set_attribute( 'src', esc_url( $current_featured_image ) );
+ $image_tag_processor->set_attribute( 'class', 'wp-image-' . get_post_thumbnail_id() . ' size-' . $media_size_slug );
+ $image_tag_processor->set_attribute( 'alt', trim( strip_tags( get_post_meta( get_post_thumbnail_id(), '_wp_attachment_image_alt', true ) ) ) );
+
+ $content = $image_tag_processor->get_updated_html();
+ }
+ }
+ }
+
+ return $content;
+}
+
+/**
+ * Registers the `core/media-text` block renderer on server.
+ *
+ * @since 6.6.0
+ */
+function register_block_core_media_text() {
+ register_block_type_from_metadata(
+ __DIR__ . '/media-text',
+ array(
+ 'render_callback' => 'render_block_core_media_text',
+ )
+ );
+}
+add_action( 'init', 'register_block_core_media_text' );
diff --git a/wp-includes/blocks/media-text/block.json b/wp-includes/blocks/media-text/block.json
index e320101..0f3519a 100644
--- a/wp-includes/blocks/media-text/block.json
+++ b/wp-includes/blocks/media-text/block.json
@@ -92,8 +92,13 @@
},
"allowedBlocks": {
"type": "array"
+ },
+ "useFeaturedImage": {
+ "type": "boolean",
+ "default": false
}
},
+ "usesContext": [ "postId", "postType" ],
"supports": {
"anchor": true,
"align": [ "wide", "full" ],
diff --git a/wp-includes/blocks/media-text/editor-rtl.css b/wp-includes/blocks/media-text/editor-rtl.css
index de69c8b..c8c9a29 100644
--- a/wp-includes/blocks/media-text/editor-rtl.css
+++ b/wp-includes/blocks/media-text/editor-rtl.css
@@ -21,10 +21,13 @@
width:100% !important;
}
-.wp-block-media-text.is-image-fill .editor-media-container__resizer{
+.wp-block-media-text.is-image-fill .components-placeholder.has-illustration,.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;
+}
+.wp-block-media-text--placeholder-image{
+ min-height:205px;
} \ No newline at end of file
diff --git a/wp-includes/blocks/media-text/editor-rtl.min.css b/wp-includes/blocks/media-text/editor-rtl.min.css
index 2532ed3..7f817a7 100644
--- a/wp-includes/blocks/media-text/editor-rtl.min.css
+++ b/wp-includes/blocks/media-text/editor-rtl.min.css
@@ -1 +1 @@
-.wp-block-media-text__media{position:relative}.wp-block-media-text__media.is-transient img{opacity:.3}.wp-block-media-text__media .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.wp-block-media-text .__resizable_base__{grid-column:1/span 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} \ No newline at end of file
+.wp-block-media-text__media{position:relative}.wp-block-media-text__media.is-transient img{opacity:.3}.wp-block-media-text__media .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.wp-block-media-text .__resizable_base__{grid-column:1/span 2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .components-placeholder.has-illustration,.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}.wp-block-media-text--placeholder-image{min-height:205px} \ No newline at end of file
diff --git a/wp-includes/blocks/media-text/editor.css b/wp-includes/blocks/media-text/editor.css
index 5cf1785..b6062c8 100644
--- a/wp-includes/blocks/media-text/editor.css
+++ b/wp-includes/blocks/media-text/editor.css
@@ -21,10 +21,13 @@
width:100% !important;
}
-.wp-block-media-text.is-image-fill .editor-media-container__resizer{
+.wp-block-media-text.is-image-fill .components-placeholder.has-illustration,.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;
+}
+.wp-block-media-text--placeholder-image{
+ min-height:205px;
} \ No newline at end of file
diff --git a/wp-includes/blocks/media-text/editor.min.css b/wp-includes/blocks/media-text/editor.min.css
index 743ac03..5283718 100644
--- a/wp-includes/blocks/media-text/editor.min.css
+++ b/wp-includes/blocks/media-text/editor.min.css
@@ -1 +1 @@
-.wp-block-media-text__media{position:relative}.wp-block-media-text__media.is-transient img{opacity:.3}.wp-block-media-text__media .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.wp-block-media-text .__resizable_base__{grid-column:1/span 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} \ No newline at end of file
+.wp-block-media-text__media{position:relative}.wp-block-media-text__media.is-transient img{opacity:.3}.wp-block-media-text__media .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.wp-block-media-text .__resizable_base__{grid-column:1/span 2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .components-placeholder.has-illustration,.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}.wp-block-media-text--placeholder-image{min-height:205px} \ No newline at end of file
diff --git a/wp-includes/blocks/media-text/style-rtl.css b/wp-includes/blocks/media-text/style-rtl.css
index 63f0dba..4d29d8a 100644
--- a/wp-includes/blocks/media-text/style-rtl.css
+++ b/wp-includes/blocks/media-text/style-rtl.css
@@ -9,25 +9,25 @@
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{
+.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{
align-self:start;
}
-.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media,.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.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{
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{
+.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{
align-self:end;
}
-.wp-block-media-text .wp-block-media-text__media{
+.wp-block-media-text>.wp-block-media-text__media{
grid-column:1;
grid-row:1;
margin:0;
}
-.wp-block-media-text .wp-block-media-text__content{
+.wp-block-media-text>.wp-block-media-text__content{
direction:rtl;
grid-column:2;
grid-row:1;
@@ -35,12 +35,12 @@
word-break:break-word;
}
-.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media{
+.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{
grid-column:2;
grid-row:1;
}
-.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{
+.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{
grid-column:1;
grid-row:1;
}
@@ -52,18 +52,18 @@
width:100%;
}
-.wp-block-media-text.is-image-fill .wp-block-media-text__media{
+.wp-block-media-text.is-image-fill>.wp-block-media-text__media{
background-size:cover;
height:100%;
min-height:250px;
}
-.wp-block-media-text.is-image-fill .wp-block-media-text__media>a{
+.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{
display:block;
height:100%;
}
-.wp-block-media-text.is-image-fill .wp-block-media-text__media img{
+.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{
height:1px;
margin:-1px;
overflow:hidden;
@@ -77,11 +77,11 @@
.wp-block-media-text.is-stacked-on-mobile{
grid-template-columns:100% !important;
}
- .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{
+ .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{
grid-column:1;
grid-row:1;
}
- .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{
+ .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{
grid-column:1;
grid-row:2;
}
diff --git a/wp-includes/blocks/media-text/style-rtl.min.css b/wp-includes/blocks/media-text/style-rtl.min.css
index 852cae9..7d5c3c7 100644
--- a/wp-includes/blocks/media-text/style-rtl.min.css
+++ b/wp-includes/blocks/media-text/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-media-text{box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:50% 1fr;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{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{align-self:start}.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media,.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{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{align-self:end}.wp-block-media-text .wp-block-media-text__media{grid-column:1;grid-row:1;margin:0}.wp-block-media-text .wp-block-media-text__content{direction:rtl;grid-column:2;grid-row:1;padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media{grid-column:2;grid-row:1}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{grid-column:1;grid-row:1}.wp-block-media-text__media img,.wp-block-media-text__media video{height:auto;max-width:unset;vertical-align:middle;width:100%}.wp-block-media-text.is-image-fill .wp-block-media-text__media{background-size:cover;height:100%;min-height:250px}.wp-block-media-text.is-image-fill .wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill .wp-block-media-text__media img{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{grid-column:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{grid-column:1;grid-row:2}} \ No newline at end of file
+.wp-block-media-text{box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:50% 1fr;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{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{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{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{align-self:end}.wp-block-media-text>.wp-block-media-text__media{grid-column:1;grid-row:1;margin:0}.wp-block-media-text>.wp-block-media-text__content{direction:rtl;grid-column:2;grid-row:1;padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{grid-column:2;grid-row:1}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{grid-column:1;grid-row:1}.wp-block-media-text__media img,.wp-block-media-text__media video{height:auto;max-width:unset;vertical-align:middle;width:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media{background-size:cover;height:100%;min-height:250px}.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{grid-column:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{grid-column:1;grid-row:2}} \ No newline at end of file
diff --git a/wp-includes/blocks/media-text/style.css b/wp-includes/blocks/media-text/style.css
index 93afd7e..b994117 100644
--- a/wp-includes/blocks/media-text/style.css
+++ b/wp-includes/blocks/media-text/style.css
@@ -9,25 +9,25 @@
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{
+.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{
align-self:start;
}
-.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media,.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.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{
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{
+.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{
align-self:end;
}
-.wp-block-media-text .wp-block-media-text__media{
+.wp-block-media-text>.wp-block-media-text__media{
grid-column:1;
grid-row:1;
margin:0;
}
-.wp-block-media-text .wp-block-media-text__content{
+.wp-block-media-text>.wp-block-media-text__content{
direction:ltr;
grid-column:2;
grid-row:1;
@@ -35,12 +35,12 @@
word-break:break-word;
}
-.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media{
+.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{
grid-column:2;
grid-row:1;
}
-.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{
+.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{
grid-column:1;
grid-row:1;
}
@@ -52,18 +52,18 @@
width:100%;
}
-.wp-block-media-text.is-image-fill .wp-block-media-text__media{
+.wp-block-media-text.is-image-fill>.wp-block-media-text__media{
background-size:cover;
height:100%;
min-height:250px;
}
-.wp-block-media-text.is-image-fill .wp-block-media-text__media>a{
+.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{
display:block;
height:100%;
}
-.wp-block-media-text.is-image-fill .wp-block-media-text__media img{
+.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{
height:1px;
margin:-1px;
overflow:hidden;
@@ -77,11 +77,11 @@
.wp-block-media-text.is-stacked-on-mobile{
grid-template-columns:100% !important;
}
- .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{
+ .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{
grid-column:1;
grid-row:1;
}
- .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{
+ .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{
grid-column:1;
grid-row:2;
}
diff --git a/wp-includes/blocks/media-text/style.min.css b/wp-includes/blocks/media-text/style.min.css
index 624613e..d2bc44d 100644
--- a/wp-includes/blocks/media-text/style.min.css
+++ b/wp-includes/blocks/media-text/style.min.css
@@ -1,11 +1,11 @@
.wp-block-media-text{box-sizing:border-box;
/*!rtl:begin:ignore*/direction:ltr;
- /*!rtl:end:ignore*/display:grid;grid-template-columns:50% 1fr;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{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{align-self:start}.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media,.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{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{align-self:end}.wp-block-media-text .wp-block-media-text__media{
+ /*!rtl:end:ignore*/display:grid;grid-template-columns:50% 1fr;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{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{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{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{align-self:end}.wp-block-media-text>.wp-block-media-text__media{
/*!rtl:begin:ignore*/grid-column:1;grid-row:1;
- /*!rtl:end:ignore*/margin:0}.wp-block-media-text .wp-block-media-text__content{direction:ltr;
+ /*!rtl:end:ignore*/margin:0}.wp-block-media-text>.wp-block-media-text__content{direction:ltr;
/*!rtl:begin:ignore*/grid-column:2;grid-row:1;
- /*!rtl:end:ignore*/padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media{
+ /*!rtl:end:ignore*/padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{
/*!rtl:begin:ignore*/grid-column:2;grid-row:1
- /*!rtl:end:ignore*/}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{
+ /*!rtl:end:ignore*/}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{
/*!rtl:begin:ignore*/grid-column:1;grid-row:1
- /*!rtl:end:ignore*/}.wp-block-media-text__media img,.wp-block-media-text__media video{height:auto;max-width:unset;vertical-align:middle;width:100%}.wp-block-media-text.is-image-fill .wp-block-media-text__media{background-size:cover;height:100%;min-height:250px}.wp-block-media-text.is-image-fill .wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill .wp-block-media-text__media img{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{grid-column:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{grid-column:1;grid-row:2}} \ No newline at end of file
+ /*!rtl:end:ignore*/}.wp-block-media-text__media img,.wp-block-media-text__media video{height:auto;max-width:unset;vertical-align:middle;width:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media{background-size:cover;height:100%;min-height:250px}.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{grid-column:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{grid-column:1;grid-row:2}} \ No newline at end of file
diff --git a/wp-includes/blocks/more/block.json b/wp-includes/blocks/more/block.json
index b071f6b..d1153ca 100644
--- a/wp-includes/blocks/more/block.json
+++ b/wp-includes/blocks/more/block.json
@@ -9,7 +9,8 @@
"textdomain": "default",
"attributes": {
"customText": {
- "type": "string"
+ "type": "string",
+ "default": ""
},
"noTeaser": {
"type": "boolean",
diff --git a/wp-includes/blocks/navigation-link.php b/wp-includes/blocks/navigation-link.php
index 4ed54fc..5653e04 100644
--- a/wp-includes/blocks/navigation-link.php
+++ b/wp-includes/blocks/navigation-link.php
@@ -9,6 +9,8 @@
* Build an array with CSS classes and inline styles defining the colors
* which will be applied to the navigation markup in the front-end.
*
+ * @since 5.9.0
+ *
* @param array $context Navigation block context.
* @param array $attributes Block attributes.
* @param bool $is_sub_menu Whether the link is part of a sub-menu.
@@ -79,6 +81,8 @@ function block_core_navigation_link_build_css_colors( $context, $attributes, $is
* Build an array with CSS classes and inline styles defining the font sizes
* which will be applied to the navigation markup in the front-end.
*
+ * @since 5.9.0
+ *
* @param array $context Navigation block context.
* @return array Font size CSS classes and inline styles.
*/
@@ -113,6 +117,8 @@ function block_core_navigation_link_build_css_font_sizes( $context ) {
/**
* Returns the top-level submenu SVG chevron icon.
*
+ * @since 5.9.0
+ *
* @return string
*/
function block_core_navigation_link_render_submenu_icon() {
@@ -122,6 +128,8 @@ function block_core_navigation_link_render_submenu_icon() {
/**
* Decodes a url if it's encoded, returning the same url if not.
*
+ * @since 6.2.0
+ *
* @param string $url The url to decode.
*
* @return string $url Returns the decoded url.
@@ -153,6 +161,8 @@ function block_core_navigation_link_maybe_urldecode( $url ) {
/**
* Renders the `core/navigation-link` block.
*
+ * @since 5.9.0
+ *
* @param array $attributes The block attributes.
* @param string $content The saved content.
* @param WP_Block $block The parsed block.
@@ -188,6 +198,13 @@ function render_block_core_navigation_link( $attributes, $content, $block ) {
$kind = empty( $attributes['kind'] ) ? 'post_type' : str_replace( '-', '_', $attributes['kind'] );
$is_active = ! empty( $attributes['id'] ) && get_queried_object_id() === (int) $attributes['id'] && ! empty( get_queried_object()->$kind );
+ if ( is_post_type_archive() ) {
+ $queried_archive_link = get_post_type_archive_link( get_queried_object()->name );
+ if ( $attributes['url'] === $queried_archive_link ) {
+ $is_active = true;
+ }
+ }
+
$wrapper_attributes = get_block_wrapper_attributes(
array(
'class' => $css_classes . ' wp-block-navigation-item' . ( $has_submenu ? ' has-child' : '' ) .
@@ -269,6 +286,8 @@ function render_block_core_navigation_link( $attributes, $content, $block ) {
/**
* Returns a navigation link variation
*
+ * @since 5.9.0
+ *
* @param WP_Taxonomy|WP_Post_Type $entity post type or taxonomy entity.
* @param string $kind string of value 'taxonomy' or 'post-type'.
*
@@ -391,6 +410,8 @@ function block_core_navigation_link_build_variations() {
/**
* Registers the navigation link block.
*
+ * @since 5.9.0
+ *
* @uses render_block_core_navigation_link()
* @throws WP_Error An WP_Error exception parsing the block definition.
*/
diff --git a/wp-includes/blocks/navigation-link/style-rtl.css b/wp-includes/blocks/navigation-link/style-rtl.css
index ffeffa5..edd8b04 100644
--- a/wp-includes/blocks/navigation-link/style-rtl.css
+++ b/wp-includes/blocks/navigation-link/style-rtl.css
@@ -17,12 +17,4 @@
.link-ui-block-inserter__back{
margin-right:8px;
text-transform:uppercase;
-}
-
-.components-popover-pointer-events-trap{
- background-color:initial;
- cursor:pointer;
- inset:0;
- position:fixed;
- z-index:1000000;
} \ No newline at end of file
diff --git a/wp-includes/blocks/navigation-link/style-rtl.min.css b/wp-includes/blocks/navigation-link/style-rtl.min.css
index 752908c..2c1dd63 100644
--- a/wp-includes/blocks/navigation-link/style-rtl.min.css
+++ b/wp-includes/blocks/navigation-link/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-navigation .wp-block-navigation-item__label{overflow-wrap:break-word}.wp-block-navigation .wp-block-navigation-item__description{display:none}.link-ui-tools{border-top:1px solid #f0f0f0;padding:8px}.link-ui-block-inserter{padding-top:8px}.link-ui-block-inserter__back{margin-right:8px;text-transform:uppercase}.components-popover-pointer-events-trap{background-color:initial;cursor:pointer;inset:0;position:fixed;z-index:1000000} \ No newline at end of file
+.wp-block-navigation .wp-block-navigation-item__label{overflow-wrap:break-word}.wp-block-navigation .wp-block-navigation-item__description{display:none}.link-ui-tools{border-top:1px solid #f0f0f0;padding:8px}.link-ui-block-inserter{padding-top:8px}.link-ui-block-inserter__back{margin-right:8px;text-transform:uppercase} \ No newline at end of file
diff --git a/wp-includes/blocks/navigation-link/style.css b/wp-includes/blocks/navigation-link/style.css
index a136b2c..13d2043 100644
--- a/wp-includes/blocks/navigation-link/style.css
+++ b/wp-includes/blocks/navigation-link/style.css
@@ -17,12 +17,4 @@
.link-ui-block-inserter__back{
margin-left:8px;
text-transform:uppercase;
-}
-
-.components-popover-pointer-events-trap{
- background-color:initial;
- cursor:pointer;
- inset:0;
- position:fixed;
- z-index:1000000;
} \ No newline at end of file
diff --git a/wp-includes/blocks/navigation-link/style.min.css b/wp-includes/blocks/navigation-link/style.min.css
index c58d937..fbcf607 100644
--- a/wp-includes/blocks/navigation-link/style.min.css
+++ b/wp-includes/blocks/navigation-link/style.min.css
@@ -1 +1 @@
-.wp-block-navigation .wp-block-navigation-item__label{overflow-wrap:break-word}.wp-block-navigation .wp-block-navigation-item__description{display:none}.link-ui-tools{border-top:1px solid #f0f0f0;padding:8px}.link-ui-block-inserter{padding-top:8px}.link-ui-block-inserter__back{margin-left:8px;text-transform:uppercase}.components-popover-pointer-events-trap{background-color:initial;cursor:pointer;inset:0;position:fixed;z-index:1000000} \ No newline at end of file
+.wp-block-navigation .wp-block-navigation-item__label{overflow-wrap:break-word}.wp-block-navigation .wp-block-navigation-item__description{display:none}.link-ui-tools{border-top:1px solid #f0f0f0;padding:8px}.link-ui-block-inserter{padding-top:8px}.link-ui-block-inserter__back{margin-left:8px;text-transform:uppercase} \ No newline at end of file
diff --git a/wp-includes/blocks/navigation-submenu.php b/wp-includes/blocks/navigation-submenu.php
index 2ae23a9..92b55e2 100644
--- a/wp-includes/blocks/navigation-submenu.php
+++ b/wp-includes/blocks/navigation-submenu.php
@@ -9,6 +9,8 @@
* Build an array with CSS classes and inline styles defining the font sizes
* which will be applied to the navigation markup in the front-end.
*
+ * @since 5.9.0
+ *
* @param array $context Navigation block context.
* @return array Font size CSS classes and inline styles.
*/
@@ -43,6 +45,8 @@ function block_core_navigation_submenu_build_css_font_sizes( $context ) {
/**
* Returns the top-level submenu SVG chevron icon.
*
+ * @since 5.9.0
+ *
* @return string
*/
function block_core_navigation_submenu_render_submenu_icon() {
@@ -52,6 +56,8 @@ function block_core_navigation_submenu_render_submenu_icon() {
/**
* Renders the `core/navigation-submenu` block.
*
+ * @since 5.9.0
+ *
* @param array $attributes The block attributes.
* @param string $content The saved content.
* @param WP_Block $block The parsed block.
@@ -81,6 +87,13 @@ function render_block_core_navigation_submenu( $attributes, $content, $block ) {
$kind = empty( $attributes['kind'] ) ? 'post_type' : str_replace( '-', '_', $attributes['kind'] );
$is_active = ! empty( $attributes['id'] ) && get_queried_object_id() === (int) $attributes['id'] && ! empty( get_queried_object()->$kind );
+ if ( is_post_type_archive() ) {
+ $queried_archive_link = get_post_type_archive_link( get_queried_object()->name );
+ if ( $attributes['url'] === $queried_archive_link ) {
+ $is_active = true;
+ }
+ }
+
$show_submenu_indicators = isset( $block->context['showSubmenuIcon'] ) && $block->context['showSubmenuIcon'];
$open_on_click = isset( $block->context['openSubmenusOnClick'] ) && $block->context['openSubmenusOnClick'];
$open_on_hover_and_click = isset( $block->context['openSubmenusOnClick'] ) && ! $block->context['openSubmenusOnClick'] &&
@@ -238,6 +251,8 @@ function render_block_core_navigation_submenu( $attributes, $content, $block ) {
/**
* Register the navigation submenu block.
*
+ * @since 5.9.0
+ *
* @uses render_block_core_navigation_submenu()
* @throws WP_Error An WP_Error exception parsing the block definition.
*/
diff --git a/wp-includes/blocks/navigation.php b/wp-includes/blocks/navigation.php
index ba1644c..99feef9 100644
--- a/wp-includes/blocks/navigation.php
+++ b/wp-includes/blocks/navigation.php
@@ -7,27 +7,36 @@
/**
* Helper functions used to render the navigation block.
+ *
+ * @since 6.5.0
*/
class WP_Navigation_Block_Renderer {
/**
* Used to determine whether or not a navigation has submenus.
+ *
+ * @since 6.5.0
*/
private static $has_submenus = false;
/**
* Used to determine which blocks need an <li> wrapper.
*
+ * @since 6.5.0
+ *
* @var array
*/
private static $needs_list_item_wrapper = array(
'core/site-title',
'core/site-logo',
+ 'core/social-links',
);
/**
* Keeps track of all the navigation names that have been seen.
*
+ * @since 6.5.0
+ *
* @var array
*/
private static $seen_menu_names = array();
@@ -35,6 +44,8 @@ class WP_Navigation_Block_Renderer {
/**
* Returns whether or not this is responsive navigation.
*
+ * @since 6.5.0
+ *
* @param array $attributes The block attributes.
* @return bool Returns whether or not this is responsive navigation.
*/
@@ -50,6 +61,8 @@ class WP_Navigation_Block_Renderer {
/**
* Returns whether or not a navigation has a submenu.
*
+ * @since 6.5.0
+ *
* @param WP_Block_List $inner_blocks The list of inner blocks.
* @return bool Returns whether or not a navigation has a submenu and also sets the member variable.
*/
@@ -87,6 +100,8 @@ class WP_Navigation_Block_Renderer {
/**
* Determine whether the navigation blocks is interactive.
*
+ * @since 6.5.0
+ *
* @param array $attributes The block attributes.
* @param WP_Block_List $inner_blocks The list of inner blocks.
* @return bool Returns whether or not to load the view script.
@@ -100,6 +115,8 @@ class WP_Navigation_Block_Renderer {
/**
* Returns whether or not a block needs a list item wrapper.
*
+ * @since 6.5.0
+ *
* @param WP_Block $block The block.
* @return bool Returns whether or not a block needs a list item wrapper.
*/
@@ -126,6 +143,8 @@ class WP_Navigation_Block_Renderer {
/**
* Returns the markup for a single inner block.
*
+ * @since 6.5.0
+ *
* @param WP_Block $inner_block The inner block.
* @return string Returns the markup for a single inner block.
*/
@@ -143,6 +162,8 @@ class WP_Navigation_Block_Renderer {
/**
* Returns the html for the inner blocks of the navigation block.
*
+ * @since 6.5.0
+ *
* @param array $attributes The block attributes.
* @param WP_Block_List $inner_blocks The list of inner blocks.
* @return string Returns the html for the inner blocks of the navigation block.
@@ -200,6 +221,8 @@ class WP_Navigation_Block_Renderer {
/**
* Gets the inner blocks for the navigation block from the navigation post.
*
+ * @since 6.5.0
+ *
* @param array $attributes The block attributes.
* @return WP_Block_List Returns the inner blocks for the navigation block.
*/
@@ -235,6 +258,8 @@ class WP_Navigation_Block_Renderer {
/**
* Gets the inner blocks for the navigation block from the fallback.
*
+ * @since 6.5.0
+ *
* @param array $attributes The block attributes.
* @return WP_Block_List Returns the inner blocks for the navigation block.
*/
@@ -252,6 +277,8 @@ class WP_Navigation_Block_Renderer {
/**
* Gets the inner blocks for the navigation block.
*
+ * @since 6.5.0
+ *
* @param array $attributes The block attributes.
* @param WP_Block $block The parsed block.
* @return WP_Block_List Returns the inner blocks for the navigation block.
@@ -310,6 +337,8 @@ class WP_Navigation_Block_Renderer {
/**
* Gets the name of the current navigation, if it has one.
*
+ * @since 6.5.0
+ *
* @param array $attributes The block attributes.
* @return string Returns the name of the navigation.
*/
@@ -345,6 +374,8 @@ class WP_Navigation_Block_Renderer {
/**
* Returns the layout class for the navigation block.
*
+ * @since 6.5.0
+ *
* @param array $attributes The block attributes.
* @return string Returns the layout class for the navigation block.
*/
@@ -376,6 +407,8 @@ class WP_Navigation_Block_Renderer {
/**
* Return classes for the navigation block.
*
+ * @since 6.5.0
+ *
* @param array $attributes The block attributes.
* @return string Returns the classes for the navigation block.
*/
@@ -403,6 +436,8 @@ class WP_Navigation_Block_Renderer {
/**
* Get styles for the navigation block.
*
+ * @since 6.5.0
+ *
* @param array $attributes The block attributes.
* @return string Returns the styles for the navigation block.
*/
@@ -416,6 +451,8 @@ class WP_Navigation_Block_Renderer {
/**
* Get the responsive container markup
*
+ * @since 6.5.0
+ *
* @param array $attributes The block attributes.
* @param WP_Block_List $inner_blocks The list of inner blocks.
* @param string $inner_blocks_html The markup for the inner blocks.
@@ -458,7 +495,7 @@ class WP_Navigation_Block_Renderer {
$close_button_directives = '';
if ( $is_interactive ) {
$open_button_directives = '
- data-wp-on--click="actions.openMenuOnClick"
+ data-wp-on-async--click="actions.openMenuOnClick"
data-wp-on--keydown="actions.handleMenuKeydown"
';
$responsive_container_directives = '
@@ -466,7 +503,7 @@ class WP_Navigation_Block_Renderer {
data-wp-class--is-menu-open="state.isMenuOpen"
data-wp-watch="callbacks.initMenu"
data-wp-on--keydown="actions.handleMenuKeydown"
- data-wp-on--focusout="actions.handleMenuFocusout"
+ data-wp-on-async--focusout="actions.handleMenuFocusout"
tabindex="-1"
';
$responsive_dialog_directives = '
@@ -475,16 +512,18 @@ class WP_Navigation_Block_Renderer {
data-wp-bind--role="state.roleAttribute"
';
$close_button_directives = '
- data-wp-on--click="actions.closeMenuOnClick"
+ data-wp-on-async--click="actions.closeMenuOnClick"
';
$responsive_container_content_directives = '
data-wp-watch="callbacks.focusFirstElement"
';
}
+ $overlay_inline_styles = esc_attr( safecss_filter_attr( $colors['overlay_inline_styles'] ) );
+
return sprintf(
'<button aria-haspopup="dialog" %3$s class="%6$s" %10$s>%8$s</button>
- <div class="%5$s" style="%7$s" id="%1$s" %11$s>
+ <div class="%5$s" %7$s id="%1$s" %11$s>
<div class="wp-block-navigation__responsive-close" tabindex="-1">
<div class="wp-block-navigation__responsive-dialog" %12$s>
<button %4$s class="wp-block-navigation__responsive-container-close" %13$s>%9$s</button>
@@ -500,7 +539,7 @@ class WP_Navigation_Block_Renderer {
$toggle_aria_label_close,
esc_attr( implode( ' ', $responsive_container_classes ) ),
esc_attr( implode( ' ', $open_button_classes ) ),
- esc_attr( safecss_filter_attr( $colors['overlay_inline_styles'] ) ),
+ ( ! empty( $overlay_inline_styles ) ) ? "style=\"$overlay_inline_styles\"" : '',
$toggle_button_content,
$toggle_close_button_content,
$open_button_directives,
@@ -514,6 +553,8 @@ class WP_Navigation_Block_Renderer {
/**
* Get the wrapper attributes
*
+ * @since 6.5.0
+ *
* @param array $attributes The block attributes.
* @param WP_Block_List $inner_blocks A list of inner blocks.
* @return string Returns the navigation block markup.
@@ -543,6 +584,8 @@ class WP_Navigation_Block_Renderer {
/**
* Gets the nav element directives.
*
+ * @since 6.5.0
+ *
* @param bool $is_interactive Whether the block is interactive.
* @return string the directives for the navigation element.
*/
@@ -573,6 +616,8 @@ class WP_Navigation_Block_Renderer {
/**
* Handle view script module loading.
*
+ * @since 6.5.0
+ *
* @param array $attributes The block attributes.
* @param WP_Block $block The parsed block.
* @param WP_Block_List $inner_blocks The list of inner blocks.
@@ -597,6 +642,8 @@ class WP_Navigation_Block_Renderer {
/**
* Returns the markup for the navigation block.
*
+ * @since 6.5.0
+ *
* @param array $attributes The block attributes.
* @param WP_Block_List $inner_blocks The list of inner blocks.
* @return string Returns the navigation wrapper markup.
@@ -612,6 +659,8 @@ class WP_Navigation_Block_Renderer {
/**
* Returns a unique name for the navigation.
*
+ * @since 6.5.0
+ *
* @param array $attributes The block attributes.
* @return string Returns a unique name for the navigation.
*/
@@ -631,6 +680,8 @@ class WP_Navigation_Block_Renderer {
/**
* Renders the navigation block.
*
+ * @since 6.5.0
+ *
* @param array $attributes The block attributes.
* @param string $content The saved content.
* @param WP_Block $block The parsed block.
@@ -676,6 +727,8 @@ if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
/**
* Returns the menu items for a WordPress menu location.
*
+ * @since 5.9.0
+ *
* @param string $location The menu location.
* @return array Menu items for the location.
*/
@@ -712,6 +765,8 @@ if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
* Sorts a standard array of menu items into a nested structure keyed by the
* id of the parent menu.
*
+ * @since 5.9.0
+ *
* @param array $menu_items Menu items to sort.
* @return array An array keyed by the id of the parent menu where each element
* is an array of menu items that belong to that parent.
@@ -734,6 +789,8 @@ if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
/**
* Gets the inner blocks for the navigation block from the unstable location attribute.
*
+ * @since 6.5.0
+ *
* @param array $attributes The block attributes.
* @return WP_Block_List Returns the inner blocks for the navigation block.
*/
@@ -753,6 +810,8 @@ if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
* Add Interactivity API directives to the navigation-submenu and page-list
* blocks markup using the Tag Processor.
*
+ * @since 6.3.0
+ *
* @param WP_HTML_Tag_Processor $tags Markup of the navigation block.
* @param array $block_attributes Block attributes.
*
@@ -779,8 +838,8 @@ function block_core_navigation_add_directives_to_submenu( $tags, $block_attribut
$tags->set_attribute( 'tabindex', '-1' );
if ( ! isset( $block_attributes['openSubmenusOnClick'] ) || false === $block_attributes['openSubmenusOnClick'] ) {
- $tags->set_attribute( 'data-wp-on--mouseenter', 'actions.openMenuOnHover' );
- $tags->set_attribute( 'data-wp-on--mouseleave', 'actions.closeMenuOnHover' );
+ $tags->set_attribute( 'data-wp-on-async--mouseenter', 'actions.openMenuOnHover' );
+ $tags->set_attribute( 'data-wp-on-async--mouseleave', 'actions.closeMenuOnHover' );
}
// Add directives to the toggle submenu button.
@@ -790,7 +849,7 @@ function block_core_navigation_add_directives_to_submenu( $tags, $block_attribut
'class_name' => 'wp-block-navigation-submenu__toggle',
)
) ) {
- $tags->set_attribute( 'data-wp-on--click', 'actions.toggleMenuOnClick' );
+ $tags->set_attribute( 'data-wp-on-async--click', 'actions.toggleMenuOnClick' );
$tags->set_attribute( 'data-wp-bind--aria-expanded', 'state.isMenuOpen' );
// The `aria-expanded` attribute for SSR is already added in the submenu block.
}
@@ -801,7 +860,7 @@ function block_core_navigation_add_directives_to_submenu( $tags, $block_attribut
'class_name' => 'wp-block-navigation__submenu-container',
)
) ) {
- $tags->set_attribute( 'data-wp-on--focus', 'actions.openMenuOnFocus' );
+ $tags->set_attribute( 'data-wp-on-async--focus', 'actions.openMenuOnFocus' );
}
// Iterate through subitems if exist.
@@ -814,6 +873,8 @@ function block_core_navigation_add_directives_to_submenu( $tags, $block_attribut
* Build an array with CSS classes and inline styles defining the colors
* which will be applied to the navigation markup in the front-end.
*
+ * @since 5.9.0
+ *
* @param array $attributes Navigation block attributes.
*
* @return array Colors CSS classes and inline styles.
@@ -905,6 +966,8 @@ function block_core_navigation_build_css_colors( $attributes ) {
* Build an array with CSS classes and inline styles defining the font sizes
* which will be applied to the navigation markup in the front-end.
*
+ * @since 5.9.0
+ *
* @param array $attributes Navigation block attributes.
*
* @return array Font size CSS classes and inline styles.
@@ -933,6 +996,8 @@ function block_core_navigation_build_css_font_sizes( $attributes ) {
/**
* Returns the top-level submenu SVG chevron icon.
*
+ * @since 5.9.0
+ *
* @return string
*/
function block_core_navigation_render_submenu_icon() {
@@ -945,6 +1010,8 @@ function block_core_navigation_render_submenu_icon() {
* it encounters whitespace. This is not a bug but rather how the parser
* is designed.
*
+ * @since 5.9.0
+ *
* @param array $parsed_blocks the parsed blocks to be normalized.
* @return array the normalized parsed blocks.
*/
@@ -963,6 +1030,8 @@ function block_core_navigation_filter_out_empty_blocks( $parsed_blocks ) {
/**
* Returns true if the navigation block contains a nested navigation block.
*
+ * @since 6.2.0
+ *
* @param WP_Block_List $inner_blocks Inner block instance to be normalized.
* @return bool true if the navigation block contains a nested navigation block.
*/
@@ -986,6 +1055,8 @@ function block_core_navigation_block_contains_core_navigation( $inner_blocks ) {
* This aims to mirror how the fallback mechanic for wp_nav_menu works.
* See https://developer.wordpress.org/reference/functions/wp_nav_menu/#more-information.
*
+ * @since 5.9.0
+ *
* @return array the array of blocks to be used as a fallback.
*/
function block_core_navigation_get_fallback_blocks() {
@@ -1041,6 +1112,8 @@ function block_core_navigation_get_fallback_blocks() {
/**
* Iterate through all inner blocks recursively and get navigation link block's post IDs.
*
+ * @since 6.0.0
+ *
* @param WP_Block_List $inner_blocks Block list class instance.
*
* @return array Array of post IDs.
@@ -1053,6 +1126,8 @@ function block_core_navigation_get_post_ids( $inner_blocks ) {
/**
* Get post IDs from a navigation link block instance.
*
+ * @since 6.0.0
+ *
* @param WP_Block $block Instance of a block.
*
* @return array Array of post IDs.
@@ -1076,6 +1151,8 @@ function block_core_navigation_from_block_get_post_ids( $block ) {
/**
* Renders the `core/navigation` block on server.
*
+ * @since 5.9.0
+ *
* @param array $attributes The block attributes.
* @param string $content The saved content.
* @param WP_Block $block The parsed block.
@@ -1089,6 +1166,8 @@ function render_block_core_navigation( $attributes, $content, $block ) {
/**
* Register the navigation block.
*
+ * @since 5.9.0
+ *
* @uses render_block_core_navigation()
* @throws WP_Error An WP_Error exception parsing the block definition.
*/
@@ -1106,6 +1185,8 @@ add_action( 'init', 'register_block_core_navigation' );
/**
* Filter that changes the parsed attribute values of navigation blocks contain typographic presets to contain the values directly.
*
+ * @since 5.9.0
+ *
* @param array $parsed_block The block being rendered.
*
* @return array The block being rendered without typographic presets.
@@ -1140,6 +1221,8 @@ add_filter( 'render_block_data', 'block_core_navigation_typographic_presets_back
/**
* Turns menu item data into a nested array of parsed blocks
*
+ * @since 5.9.0
+ *
* @deprecated 6.3.0 Use WP_Navigation_Fallback::parse_blocks_from_menu_items() instead.
*
* @param array $menu_items An array of menu items that represent
@@ -1197,6 +1280,8 @@ function block_core_navigation_parse_blocks_from_menu_items( $menu_items, $menu_
/**
* Get the classic navigation menu to use as a fallback.
*
+ * @since 6.2.0
+ *
* @deprecated 6.3.0 Use WP_Navigation_Fallback::get_classic_menu_fallback() instead.
*
* @return object WP_Term The classic navigation.
@@ -1241,6 +1326,8 @@ function block_core_navigation_get_classic_menu_fallback() {
/**
* Converts a classic navigation to blocks.
*
+ * @since 6.2.0
+ *
* @deprecated 6.3.0 Use WP_Navigation_Fallback::get_classic_menu_fallback_blocks() instead.
*
* @param object $classic_nav_menu WP_Term The classic navigation object to convert.
@@ -1283,6 +1370,8 @@ function block_core_navigation_get_classic_menu_fallback_blocks( $classic_nav_me
/**
* If there's a classic menu then use it as a fallback.
*
+ * @since 6.2.0
+ *
* @deprecated 6.3.0 Use WP_Navigation_Fallback::create_classic_menu_fallback() instead.
*
* @return array the normalized parsed blocks.
@@ -1328,6 +1417,8 @@ function block_core_navigation_maybe_use_classic_menu_fallback() {
/**
* Finds the most recently published `wp_navigation` Post.
*
+ * @since 6.1.0
+ *
* @deprecated 6.3.0 Use WP_Navigation_Fallback::get_most_recently_published_navigation() instead.
*
* @return WP_Post|null the first non-empty Navigation or null.
@@ -1359,6 +1450,8 @@ function block_core_navigation_get_most_recently_published_navigation() {
/**
* Accepts the serialized markup of a block and its inner blocks, and returns serialized markup of the inner blocks.
*
+ * @since 6.5.0
+ *
* @param string $serialized_block The serialized markup of a block and its inner blocks.
* @return string
*/
@@ -1372,6 +1465,8 @@ function block_core_navigation_remove_serialized_parent_block( $serialized_block
* Mock a parsed block for the Navigation block given its inner blocks and the `wp_navigation` post object.
* The `wp_navigation` post's `_wp_ignored_hooked_blocks` meta is queried to add the `metadata.ignoredHookedBlocks` attribute.
*
+ * @since 6.5.0
+ *
* @param array $inner_blocks Parsed inner blocks of a Navigation block.
* @param WP_Post $post `wp_navigation` post object corresponding to the block.
*
@@ -1411,6 +1506,8 @@ function block_core_navigation_mock_parsed_block( $inner_blocks, $post ) {
* children, the `wp_navigation` post's `_wp_ignored_hooked_blocks` meta is checked to see if any
* of those hooked blocks should be exempted from insertion.
*
+ * @since 6.5.0
+ *
* @param array $inner_blocks Parsed inner blocks of a Navigation block.
* @param WP_Post $post `wp_navigation` post object corresponding to the block.
* @return string Serialized inner blocks in mock Navigation block wrapper, with hooked blocks inserted, if any.
@@ -1436,6 +1533,8 @@ function block_core_navigation_insert_hooked_blocks( $inner_blocks, $post ) {
* this function inserts ignoredHookedBlocks meta into it, and returns the serialized inner blocks in a
* mock Navigation block wrapper.
*
+ * @since 6.5.0
+ *
* @param array $inner_blocks Parsed inner blocks of a Navigation block.
* @param WP_Post $post `wp_navigation` post object corresponding to the block.
* @return string Serialized inner blocks in mock Navigation block wrapper, with hooked blocks inserted, if any.
@@ -1520,10 +1619,16 @@ function block_core_navigation_update_ignore_hooked_blocks_meta( $post ) {
$rest_insert_wp_navigation_core_callback = 'block_core_navigation_' . 'update_ignore_hooked_blocks_meta'; // phpcs:ignore Generic.Strings.UnnecessaryStringConcat.Found
/*
- * Injection of hooked blocks into the Navigation block relies on some functions present in WP >= 6.5
- * that are not present in Gutenberg's WP 6.5 compatibility layer.
+ * Do not add the `block_core_navigation_update_ignore_hooked_blocks_meta` filter in the following cases:
+ * - If Core has added the `update_ignored_hooked_blocks_postmeta` filter already (WP >= 6.6);
+ * - or if the `set_ignored_hooked_blocks_metadata` function is unavailable (which is required for the filter to work. It was introduced by WP 6.5 but is not present in Gutenberg's WP 6.5 compatibility layer);
+ * - or if the `$rest_insert_wp_navigation_core_callback` filter has already been added.
*/
-if ( function_exists( 'set_ignored_hooked_blocks_metadata' ) && ! has_filter( 'rest_pre_insert_wp_navigation', $rest_insert_wp_navigation_core_callback ) ) {
+if (
+ ! has_filter( 'rest_pre_insert_wp_navigation', 'update_ignored_hooked_blocks_postmeta' ) &&
+ function_exists( 'set_ignored_hooked_blocks_metadata' ) &&
+ ! has_filter( 'rest_pre_insert_wp_navigation', $rest_insert_wp_navigation_core_callback )
+) {
add_filter( 'rest_pre_insert_wp_navigation', 'block_core_navigation_update_ignore_hooked_blocks_meta' );
}
@@ -1539,6 +1644,8 @@ if ( has_filter( 'rest_insert_wp_navigation', $rest_insert_wp_navigation_core_ca
/**
* Hooks into the REST API response for the core/navigation block and adds the first and last inner blocks.
*
+ * @since 6.5.0
+ *
* @param WP_REST_Response $response The response object.
* @param WP_Post $post Post object.
* @return WP_REST_Response The response object.
@@ -1553,7 +1660,9 @@ function block_core_navigation_insert_hooked_blocks_into_rest_response( $respons
// Remove mock Navigation block wrapper.
$content = block_core_navigation_remove_serialized_parent_block( $content );
- $response->data['content']['raw'] = $content;
+ $response->data['content']['raw'] = $content;
+
+ /** This filter is documented in wp-includes/post-template.php */
$response->data['content']['rendered'] = apply_filters( 'the_content', $content );
return $response;
@@ -1567,9 +1676,15 @@ function block_core_navigation_insert_hooked_blocks_into_rest_response( $respons
$rest_prepare_wp_navigation_core_callback = 'block_core_navigation_' . 'insert_hooked_blocks_into_rest_response';
/*
- * Injection of hooked blocks into the Navigation block relies on some functions present in WP >= 6.5
- * that are not present in Gutenberg's WP 6.5 compatibility layer.
+ * Do not add the `block_core_navigation_insert_hooked_blocks_into_rest_response` filter in the following cases:
+ * - If Core has added the `insert_hooked_blocks_into_rest_response` filter already (WP >= 6.6);
+ * - or if the `set_ignored_hooked_blocks_metadata` function is unavailable (which is required for the filter to work. It was introduced by WP 6.5 but is not present in Gutenberg's WP 6.5 compatibility layer);
+ * - or if the `$rest_prepare_wp_navigation_core_callback` filter has already been added.
*/
-if ( function_exists( 'set_ignored_hooked_blocks_metadata' ) && ! has_filter( 'rest_prepare_wp_navigation', $rest_prepare_wp_navigation_core_callback ) ) {
+if (
+ ! has_filter( 'rest_prepare_wp_navigation', 'insert_hooked_blocks_into_rest_response' ) &&
+ function_exists( 'set_ignored_hooked_blocks_metadata' ) &&
+ ! has_filter( 'rest_prepare_wp_navigation', $rest_prepare_wp_navigation_core_callback )
+) {
add_filter( 'rest_prepare_wp_navigation', 'block_core_navigation_insert_hooked_blocks_into_rest_response', 10, 3 );
}
diff --git a/wp-includes/blocks/navigation/block.json b/wp-includes/blocks/navigation/block.json
index eef6af3..c65e0c6 100644
--- a/wp-includes/blocks/navigation/block.json
+++ b/wp-includes/blocks/navigation/block.json
@@ -137,15 +137,6 @@
"type": "flex"
}
},
- "__experimentalStyle": {
- "elements": {
- "link": {
- "color": {
- "text": "inherit"
- }
- }
- }
- },
"interactivity": true,
"renaming": false
},
diff --git a/wp-includes/blocks/navigation/editor-rtl.css b/wp-includes/blocks/navigation/editor-rtl.css
index 0afd89a..487b4a7 100644
--- a/wp-includes/blocks/navigation/editor-rtl.css
+++ b/wp-includes/blocks/navigation/editor-rtl.css
@@ -309,10 +309,6 @@
top:141px;
}
-.is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open{
- left:280px;
-}
-
.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{
right:0;
top:155px;
diff --git a/wp-includes/blocks/navigation/editor-rtl.min.css b/wp-includes/blocks/navigation/editor-rtl.min.css
index fbddbbf..ccd211f 100644
--- a/wp-includes/blocks/navigation/editor-rtl.min.css
+++ b/wp-includes/blocks/navigation/editor-rtl.min.css
@@ -1 +1 @@
-.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-right:0;margin-top:0;padding-right:0}.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block{margin:revert}.wp-block-navigation-item__label{display:inline}.wp-block-navigation-item,.wp-block-navigation__container{background-color:inherit}.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__submenu-container,.has-child.is-selected>.wp-block-navigation__submenu-container{display:flex;opacity:1;visibility:visible}.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__submenu-container{opacity:1;visibility:visible}.is-editing>.wp-block-navigation__container{display:flex;flex-direction:column;opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender{display:block;position:static;width:100%}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender .block-editor-button-block-appender{background:#1e1e1e;border-radius:2px;color:#fff;margin-left:0;margin-right:auto;padding:0;width:24px}.wp-block-navigation__submenu-container .block-list-appender{display:none}.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{align-items:center;border-radius:4px;display:flex;height:30px;margin:0 auto;padding:3px;position:relative}.block-library-colors-selector .block-library-colors-selector__state-selection{border-radius:11px;box-shadow:inset 0 0 0 1px #0003;height:22px;line-height:20px;margin-left:auto;margin-right:auto;min-height:22px;min-width:22px;padding:2px;width:22px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.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 .wp-block+.block-list-appender .block-editor-button-block-appender{background-color:#1e1e1e;color:#fff}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender.block-editor-button-block-appender.block-editor-button-block-appender{padding:0}.wp-block-navigation .wp-block .wp-block .block-editor-button-block-appender{background-color:initial;color:#1e1e1e}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.components-placeholder.wp-block-navigation-placeholder{background:none;box-shadow:none;color:inherit;min-height:0;outline:none;padding:0}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset{font-size:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button{margin-bottom:0}.wp-block-navigation.is-selected .components-placeholder.wp-block-navigation-placeholder{color:#1e1e1e}.wp-block-navigation-placeholder__preview{align-items:center;background:#0000;color:currentColor;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;min-width:96px}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview{display:none}.wp-block-navigation-placeholder__preview:before{border:1px dashed;border-radius:2px;border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview:before:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview>svg{fill:currentColor}.wp-block-navigation.is-vertical .is-medium .components-placeholder__fieldset,.wp-block-navigation.is-vertical .is-small .components-placeholder__fieldset{min-height:90px}.wp-block-navigation.is-vertical .is-large .components-placeholder__fieldset{min-height:132px}.wp-block-navigation-placeholder__controls,.wp-block-navigation-placeholder__preview{align-items:flex-start;flex-direction:row;padding:6px 8px}.wp-block-navigation-placeholder__controls{background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:none;float:right;position:relative;width:100%;z-index:1}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls{display:flex}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr{display:none}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions{align-items:flex-start;flex-direction:column}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr{display:none}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon{height:36px;margin-left:12px}.wp-block-navigation-placeholder__actions__indicator{align-items:center;display:flex;height:36px;justify-content:flex-start;line-height:0;margin-right:4px;padding:0 0 0 6px}.wp-block-navigation-placeholder__actions__indicator svg{margin-left:4px;fill:currentColor}.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset{flex-direction:row!important}.wp-block-navigation-placeholder__actions{align-items:center;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;gap:6px;height:100%}.wp-block-navigation-placeholder__actions .components-dropdown,.wp-block-navigation-placeholder__actions>.components-button{margin-left:0}.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr{background-color:#1e1e1e;border:0;height:100%;margin:auto 0;max-height:16px;min-height:1px;min-width:1px}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close{display:none}}.wp-block-navigation__responsive-container.is-menu-open{position:fixed;top:155px}@media (min-width:782px){.wp-block-navigation__responsive-container.is-menu-open{right:36px;top:93px}}@media (min-width:960px){.wp-block-navigation__responsive-container.is-menu-open{right:160px}}@media (min-width:782px){.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:141px}}.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:141px}.is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open{left:280px}.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{right:0;top:155px}@media (min-width:782px){.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{top:61px}.is-fullscreen-mode .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:109px}}.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:109px}body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open{bottom:0;left:0;right:0;top:0}.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close,.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{color:inherit;height:auto;padding:0}.components-heading.wp-block-navigation-off-canvas-editor__title{margin:0}.wp-block-navigation-off-canvas-editor__header{margin-bottom:8px}.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender{margin-top:16px}@keyframes fadein{0%{opacity:0}to{opacity:1}}.wp-block-navigation__loading-indicator-container{padding:8px 12px}.wp-block-navigation .wp-block-navigation__uncontrolled-inner-blocks-loading-indicator{margin-top:0}@keyframes fadeouthalf{0%{opacity:1}to{opacity:.5}}.wp-block-navigation-delete-menu-button{justify-content:center;margin-bottom:16px;width:100%}.components-button.is-link.wp-block-navigation-manage-menus-button{margin-bottom:16px}.wp-block-navigation__overlay-menu-preview{align-items:center;background-color:#f0f0f0;display:flex;height:64px;justify-content:space-between;margin-bottom:12px;padding:0 24px;width:100%}.wp-block-navigation__overlay-menu-preview.open{background-color:#fff;box-shadow:inset 0 0 0 1px #e0e0e0;outline:1px solid #0000}.wp-block-navigation-placeholder__actions hr+hr,.wp-block-navigation__toolbar-menu-selector.components-toolbar-group:empty{display:none}.wp-block-navigation__navigation-selector{margin-bottom:16px;width:100%}.wp-block-navigation__navigation-selector-button{border:1px solid;justify-content:space-between;width:100%}.wp-block-navigation__navigation-selector-button__icon{flex:0 0 auto}.wp-block-navigation__navigation-selector-button__label{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wp-block-navigation__navigation-selector-button--createnew{border:1px solid;margin-bottom:16px;width:100%}.wp-block-navigation__responsive-container-open.components-button{opacity:1}.wp-block-navigation__menu-inspector-controls{overflow-x:auto;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin;will-change:transform}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar{height:12px;width:12px}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-track{background-color:initial}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.wp-block-navigation__menu-inspector-controls:focus-within::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:focus::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:hover::-webkit-scrollbar-thumb{background-color:#949494}.wp-block-navigation__menu-inspector-controls:focus,.wp-block-navigation__menu-inspector-controls:focus-within,.wp-block-navigation__menu-inspector-controls:hover{scrollbar-color:#949494 #0000}@media (hover:none){.wp-block-navigation__menu-inspector-controls{scrollbar-color:#949494 #0000}}.wp-block-navigation__menu-inspector-controls__empty-message{margin-right:24px} \ No newline at end of file
+.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-right:0;margin-top:0;padding-right:0}.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block{margin:revert}.wp-block-navigation-item__label{display:inline}.wp-block-navigation-item,.wp-block-navigation__container{background-color:inherit}.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__submenu-container,.has-child.is-selected>.wp-block-navigation__submenu-container{display:flex;opacity:1;visibility:visible}.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__submenu-container{opacity:1;visibility:visible}.is-editing>.wp-block-navigation__container{display:flex;flex-direction:column;opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender{display:block;position:static;width:100%}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender .block-editor-button-block-appender{background:#1e1e1e;border-radius:2px;color:#fff;margin-left:0;margin-right:auto;padding:0;width:24px}.wp-block-navigation__submenu-container .block-list-appender{display:none}.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{align-items:center;border-radius:4px;display:flex;height:30px;margin:0 auto;padding:3px;position:relative}.block-library-colors-selector .block-library-colors-selector__state-selection{border-radius:11px;box-shadow:inset 0 0 0 1px #0003;height:22px;line-height:20px;margin-left:auto;margin-right:auto;min-height:22px;min-width:22px;padding:2px;width:22px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.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 .wp-block+.block-list-appender .block-editor-button-block-appender{background-color:#1e1e1e;color:#fff}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender.block-editor-button-block-appender.block-editor-button-block-appender{padding:0}.wp-block-navigation .wp-block .wp-block .block-editor-button-block-appender{background-color:initial;color:#1e1e1e}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.components-placeholder.wp-block-navigation-placeholder{background:none;box-shadow:none;color:inherit;min-height:0;outline:none;padding:0}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset{font-size:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button{margin-bottom:0}.wp-block-navigation.is-selected .components-placeholder.wp-block-navigation-placeholder{color:#1e1e1e}.wp-block-navigation-placeholder__preview{align-items:center;background:#0000;color:currentColor;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;min-width:96px}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview{display:none}.wp-block-navigation-placeholder__preview:before{border:1px dashed;border-radius:2px;border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview:before:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview>svg{fill:currentColor}.wp-block-navigation.is-vertical .is-medium .components-placeholder__fieldset,.wp-block-navigation.is-vertical .is-small .components-placeholder__fieldset{min-height:90px}.wp-block-navigation.is-vertical .is-large .components-placeholder__fieldset{min-height:132px}.wp-block-navigation-placeholder__controls,.wp-block-navigation-placeholder__preview{align-items:flex-start;flex-direction:row;padding:6px 8px}.wp-block-navigation-placeholder__controls{background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:none;float:right;position:relative;width:100%;z-index:1}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls{display:flex}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr{display:none}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions{align-items:flex-start;flex-direction:column}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr{display:none}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon{height:36px;margin-left:12px}.wp-block-navigation-placeholder__actions__indicator{align-items:center;display:flex;height:36px;justify-content:flex-start;line-height:0;margin-right:4px;padding:0 0 0 6px}.wp-block-navigation-placeholder__actions__indicator svg{margin-left:4px;fill:currentColor}.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset{flex-direction:row!important}.wp-block-navigation-placeholder__actions{align-items:center;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;gap:6px;height:100%}.wp-block-navigation-placeholder__actions .components-dropdown,.wp-block-navigation-placeholder__actions>.components-button{margin-left:0}.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr{background-color:#1e1e1e;border:0;height:100%;margin:auto 0;max-height:16px;min-height:1px;min-width:1px}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close{display:none}}.wp-block-navigation__responsive-container.is-menu-open{position:fixed;top:155px}@media (min-width:782px){.wp-block-navigation__responsive-container.is-menu-open{right:36px;top:93px}}@media (min-width:960px){.wp-block-navigation__responsive-container.is-menu-open{right:160px}}@media (min-width:782px){.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:141px}}.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:141px}.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{right:0;top:155px}@media (min-width:782px){.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{top:61px}.is-fullscreen-mode .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:109px}}.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:109px}body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open{bottom:0;left:0;right:0;top:0}.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close,.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{color:inherit;height:auto;padding:0}.components-heading.wp-block-navigation-off-canvas-editor__title{margin:0}.wp-block-navigation-off-canvas-editor__header{margin-bottom:8px}.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender{margin-top:16px}@keyframes fadein{0%{opacity:0}to{opacity:1}}.wp-block-navigation__loading-indicator-container{padding:8px 12px}.wp-block-navigation .wp-block-navigation__uncontrolled-inner-blocks-loading-indicator{margin-top:0}@keyframes fadeouthalf{0%{opacity:1}to{opacity:.5}}.wp-block-navigation-delete-menu-button{justify-content:center;margin-bottom:16px;width:100%}.components-button.is-link.wp-block-navigation-manage-menus-button{margin-bottom:16px}.wp-block-navigation__overlay-menu-preview{align-items:center;background-color:#f0f0f0;display:flex;height:64px;justify-content:space-between;margin-bottom:12px;padding:0 24px;width:100%}.wp-block-navigation__overlay-menu-preview.open{background-color:#fff;box-shadow:inset 0 0 0 1px #e0e0e0;outline:1px solid #0000}.wp-block-navigation-placeholder__actions hr+hr,.wp-block-navigation__toolbar-menu-selector.components-toolbar-group:empty{display:none}.wp-block-navigation__navigation-selector{margin-bottom:16px;width:100%}.wp-block-navigation__navigation-selector-button{border:1px solid;justify-content:space-between;width:100%}.wp-block-navigation__navigation-selector-button__icon{flex:0 0 auto}.wp-block-navigation__navigation-selector-button__label{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wp-block-navigation__navigation-selector-button--createnew{border:1px solid;margin-bottom:16px;width:100%}.wp-block-navigation__responsive-container-open.components-button{opacity:1}.wp-block-navigation__menu-inspector-controls{overflow-x:auto;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin;will-change:transform}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar{height:12px;width:12px}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-track{background-color:initial}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.wp-block-navigation__menu-inspector-controls:focus-within::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:focus::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:hover::-webkit-scrollbar-thumb{background-color:#949494}.wp-block-navigation__menu-inspector-controls:focus,.wp-block-navigation__menu-inspector-controls:focus-within,.wp-block-navigation__menu-inspector-controls:hover{scrollbar-color:#949494 #0000}@media (hover:none){.wp-block-navigation__menu-inspector-controls{scrollbar-color:#949494 #0000}}.wp-block-navigation__menu-inspector-controls__empty-message{margin-right:24px} \ No newline at end of file
diff --git a/wp-includes/blocks/navigation/editor.css b/wp-includes/blocks/navigation/editor.css
index e9dafe4..e3c29d5 100644
--- a/wp-includes/blocks/navigation/editor.css
+++ b/wp-includes/blocks/navigation/editor.css
@@ -309,10 +309,6 @@
top:141px;
}
-.is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open{
- right:280px;
-}
-
.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{
left:0;
top:155px;
diff --git a/wp-includes/blocks/navigation/editor.min.css b/wp-includes/blocks/navigation/editor.min.css
index a6b5232..f27e940 100644
--- a/wp-includes/blocks/navigation/editor.min.css
+++ b/wp-includes/blocks/navigation/editor.min.css
@@ -1 +1 @@
-.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-left:0;margin-top:0;padding-left:0}.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block{margin:revert}.wp-block-navigation-item__label{display:inline}.wp-block-navigation-item,.wp-block-navigation__container{background-color:inherit}.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__submenu-container,.has-child.is-selected>.wp-block-navigation__submenu-container{display:flex;opacity:1;visibility:visible}.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__submenu-container{opacity:1;visibility:visible}.is-editing>.wp-block-navigation__container{display:flex;flex-direction:column;opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender{display:block;position:static;width:100%}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender .block-editor-button-block-appender{background:#1e1e1e;border-radius:2px;color:#fff;margin-left:auto;margin-right:0;padding:0;width:24px}.wp-block-navigation__submenu-container .block-list-appender{display:none}.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{align-items:center;border-radius:4px;display:flex;height:30px;margin:0 auto;padding:3px;position:relative}.block-library-colors-selector .block-library-colors-selector__state-selection{border-radius:11px;box-shadow:inset 0 0 0 1px #0003;height:22px;line-height:20px;margin-left:auto;margin-right:auto;min-height:22px;min-width:22px;padding:2px;width:22px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.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 .wp-block+.block-list-appender .block-editor-button-block-appender{background-color:#1e1e1e;color:#fff}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender.block-editor-button-block-appender.block-editor-button-block-appender{padding:0}.wp-block-navigation .wp-block .wp-block .block-editor-button-block-appender{background-color:initial;color:#1e1e1e}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.components-placeholder.wp-block-navigation-placeholder{background:none;box-shadow:none;color:inherit;min-height:0;outline:none;padding:0}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset{font-size:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button{margin-bottom:0}.wp-block-navigation.is-selected .components-placeholder.wp-block-navigation-placeholder{color:#1e1e1e}.wp-block-navigation-placeholder__preview{align-items:center;background:#0000;color:currentColor;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;min-width:96px}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview{display:none}.wp-block-navigation-placeholder__preview:before{border:1px dashed;border-radius:2px;border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview:before:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview>svg{fill:currentColor}.wp-block-navigation.is-vertical .is-medium .components-placeholder__fieldset,.wp-block-navigation.is-vertical .is-small .components-placeholder__fieldset{min-height:90px}.wp-block-navigation.is-vertical .is-large .components-placeholder__fieldset{min-height:132px}.wp-block-navigation-placeholder__controls,.wp-block-navigation-placeholder__preview{align-items:flex-start;flex-direction:row;padding:6px 8px}.wp-block-navigation-placeholder__controls{background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:none;float:left;position:relative;width:100%;z-index:1}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls{display:flex}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr{display:none}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions{align-items:flex-start;flex-direction:column}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr{display:none}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon{height:36px;margin-right:12px}.wp-block-navigation-placeholder__actions__indicator{align-items:center;display:flex;height:36px;justify-content:flex-start;line-height:0;margin-left:4px;padding:0 6px 0 0}.wp-block-navigation-placeholder__actions__indicator svg{margin-right:4px;fill:currentColor}.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset{flex-direction:row!important}.wp-block-navigation-placeholder__actions{align-items:center;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;gap:6px;height:100%}.wp-block-navigation-placeholder__actions .components-dropdown,.wp-block-navigation-placeholder__actions>.components-button{margin-right:0}.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr{background-color:#1e1e1e;border:0;height:100%;margin:auto 0;max-height:16px;min-height:1px;min-width:1px}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close{display:none}}.wp-block-navigation__responsive-container.is-menu-open{position:fixed;top:155px}@media (min-width:782px){.wp-block-navigation__responsive-container.is-menu-open{left:36px;top:93px}}@media (min-width:960px){.wp-block-navigation__responsive-container.is-menu-open{left:160px}}@media (min-width:782px){.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:141px}}.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:141px}.is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open{right:280px}.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{left:0;top:155px}@media (min-width:782px){.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{top:61px}.is-fullscreen-mode .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:109px}}.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:109px}body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open{bottom:0;left:0;right:0;top:0}.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close,.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{color:inherit;height:auto;padding:0}.components-heading.wp-block-navigation-off-canvas-editor__title{margin:0}.wp-block-navigation-off-canvas-editor__header{margin-bottom:8px}.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender{margin-top:16px}@keyframes fadein{0%{opacity:0}to{opacity:1}}.wp-block-navigation__loading-indicator-container{padding:8px 12px}.wp-block-navigation .wp-block-navigation__uncontrolled-inner-blocks-loading-indicator{margin-top:0}@keyframes fadeouthalf{0%{opacity:1}to{opacity:.5}}.wp-block-navigation-delete-menu-button{justify-content:center;margin-bottom:16px;width:100%}.components-button.is-link.wp-block-navigation-manage-menus-button{margin-bottom:16px}.wp-block-navigation__overlay-menu-preview{align-items:center;background-color:#f0f0f0;display:flex;height:64px;justify-content:space-between;margin-bottom:12px;padding:0 24px;width:100%}.wp-block-navigation__overlay-menu-preview.open{background-color:#fff;box-shadow:inset 0 0 0 1px #e0e0e0;outline:1px solid #0000}.wp-block-navigation-placeholder__actions hr+hr,.wp-block-navigation__toolbar-menu-selector.components-toolbar-group:empty{display:none}.wp-block-navigation__navigation-selector{margin-bottom:16px;width:100%}.wp-block-navigation__navigation-selector-button{border:1px solid;justify-content:space-between;width:100%}.wp-block-navigation__navigation-selector-button__icon{flex:0 0 auto}.wp-block-navigation__navigation-selector-button__label{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wp-block-navigation__navigation-selector-button--createnew{border:1px solid;margin-bottom:16px;width:100%}.wp-block-navigation__responsive-container-open.components-button{opacity:1}.wp-block-navigation__menu-inspector-controls{overflow-x:auto;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin;will-change:transform}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar{height:12px;width:12px}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-track{background-color:initial}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.wp-block-navigation__menu-inspector-controls:focus-within::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:focus::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:hover::-webkit-scrollbar-thumb{background-color:#949494}.wp-block-navigation__menu-inspector-controls:focus,.wp-block-navigation__menu-inspector-controls:focus-within,.wp-block-navigation__menu-inspector-controls:hover{scrollbar-color:#949494 #0000}@media (hover:none){.wp-block-navigation__menu-inspector-controls{scrollbar-color:#949494 #0000}}.wp-block-navigation__menu-inspector-controls__empty-message{margin-left:24px} \ No newline at end of file
+.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-left:0;margin-top:0;padding-left:0}.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block{margin:revert}.wp-block-navigation-item__label{display:inline}.wp-block-navigation-item,.wp-block-navigation__container{background-color:inherit}.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__submenu-container,.has-child.is-selected>.wp-block-navigation__submenu-container{display:flex;opacity:1;visibility:visible}.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__submenu-container{opacity:1;visibility:visible}.is-editing>.wp-block-navigation__container{display:flex;flex-direction:column;opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender{display:block;position:static;width:100%}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender .block-editor-button-block-appender{background:#1e1e1e;border-radius:2px;color:#fff;margin-left:auto;margin-right:0;padding:0;width:24px}.wp-block-navigation__submenu-container .block-list-appender{display:none}.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{align-items:center;border-radius:4px;display:flex;height:30px;margin:0 auto;padding:3px;position:relative}.block-library-colors-selector .block-library-colors-selector__state-selection{border-radius:11px;box-shadow:inset 0 0 0 1px #0003;height:22px;line-height:20px;margin-left:auto;margin-right:auto;min-height:22px;min-width:22px;padding:2px;width:22px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.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 .wp-block+.block-list-appender .block-editor-button-block-appender{background-color:#1e1e1e;color:#fff}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender.block-editor-button-block-appender.block-editor-button-block-appender{padding:0}.wp-block-navigation .wp-block .wp-block .block-editor-button-block-appender{background-color:initial;color:#1e1e1e}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.components-placeholder.wp-block-navigation-placeholder{background:none;box-shadow:none;color:inherit;min-height:0;outline:none;padding:0}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset{font-size:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button{margin-bottom:0}.wp-block-navigation.is-selected .components-placeholder.wp-block-navigation-placeholder{color:#1e1e1e}.wp-block-navigation-placeholder__preview{align-items:center;background:#0000;color:currentColor;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;min-width:96px}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview{display:none}.wp-block-navigation-placeholder__preview:before{border:1px dashed;border-radius:2px;border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview:before:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview>svg{fill:currentColor}.wp-block-navigation.is-vertical .is-medium .components-placeholder__fieldset,.wp-block-navigation.is-vertical .is-small .components-placeholder__fieldset{min-height:90px}.wp-block-navigation.is-vertical .is-large .components-placeholder__fieldset{min-height:132px}.wp-block-navigation-placeholder__controls,.wp-block-navigation-placeholder__preview{align-items:flex-start;flex-direction:row;padding:6px 8px}.wp-block-navigation-placeholder__controls{background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:none;float:left;position:relative;width:100%;z-index:1}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls{display:flex}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr{display:none}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions{align-items:flex-start;flex-direction:column}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr{display:none}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon{height:36px;margin-right:12px}.wp-block-navigation-placeholder__actions__indicator{align-items:center;display:flex;height:36px;justify-content:flex-start;line-height:0;margin-left:4px;padding:0 6px 0 0}.wp-block-navigation-placeholder__actions__indicator svg{margin-right:4px;fill:currentColor}.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset{flex-direction:row!important}.wp-block-navigation-placeholder__actions{align-items:center;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;gap:6px;height:100%}.wp-block-navigation-placeholder__actions .components-dropdown,.wp-block-navigation-placeholder__actions>.components-button{margin-right:0}.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr{background-color:#1e1e1e;border:0;height:100%;margin:auto 0;max-height:16px;min-height:1px;min-width:1px}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close{display:none}}.wp-block-navigation__responsive-container.is-menu-open{position:fixed;top:155px}@media (min-width:782px){.wp-block-navigation__responsive-container.is-menu-open{left:36px;top:93px}}@media (min-width:960px){.wp-block-navigation__responsive-container.is-menu-open{left:160px}}@media (min-width:782px){.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:141px}}.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:141px}.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{left:0;top:155px}@media (min-width:782px){.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{top:61px}.is-fullscreen-mode .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:109px}}.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:109px}body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open{bottom:0;left:0;right:0;top:0}.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close,.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{color:inherit;height:auto;padding:0}.components-heading.wp-block-navigation-off-canvas-editor__title{margin:0}.wp-block-navigation-off-canvas-editor__header{margin-bottom:8px}.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender{margin-top:16px}@keyframes fadein{0%{opacity:0}to{opacity:1}}.wp-block-navigation__loading-indicator-container{padding:8px 12px}.wp-block-navigation .wp-block-navigation__uncontrolled-inner-blocks-loading-indicator{margin-top:0}@keyframes fadeouthalf{0%{opacity:1}to{opacity:.5}}.wp-block-navigation-delete-menu-button{justify-content:center;margin-bottom:16px;width:100%}.components-button.is-link.wp-block-navigation-manage-menus-button{margin-bottom:16px}.wp-block-navigation__overlay-menu-preview{align-items:center;background-color:#f0f0f0;display:flex;height:64px;justify-content:space-between;margin-bottom:12px;padding:0 24px;width:100%}.wp-block-navigation__overlay-menu-preview.open{background-color:#fff;box-shadow:inset 0 0 0 1px #e0e0e0;outline:1px solid #0000}.wp-block-navigation-placeholder__actions hr+hr,.wp-block-navigation__toolbar-menu-selector.components-toolbar-group:empty{display:none}.wp-block-navigation__navigation-selector{margin-bottom:16px;width:100%}.wp-block-navigation__navigation-selector-button{border:1px solid;justify-content:space-between;width:100%}.wp-block-navigation__navigation-selector-button__icon{flex:0 0 auto}.wp-block-navigation__navigation-selector-button__label{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wp-block-navigation__navigation-selector-button--createnew{border:1px solid;margin-bottom:16px;width:100%}.wp-block-navigation__responsive-container-open.components-button{opacity:1}.wp-block-navigation__menu-inspector-controls{overflow-x:auto;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin;will-change:transform}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar{height:12px;width:12px}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-track{background-color:initial}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.wp-block-navigation__menu-inspector-controls:focus-within::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:focus::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:hover::-webkit-scrollbar-thumb{background-color:#949494}.wp-block-navigation__menu-inspector-controls:focus,.wp-block-navigation__menu-inspector-controls:focus-within,.wp-block-navigation__menu-inspector-controls:hover{scrollbar-color:#949494 #0000}@media (hover:none){.wp-block-navigation__menu-inspector-controls{scrollbar-color:#949494 #0000}}.wp-block-navigation__menu-inspector-controls__empty-message{margin-left:24px} \ No newline at end of file
diff --git a/wp-includes/blocks/navigation/style-rtl.css b/wp-includes/blocks/navigation/style-rtl.css
index 7904fc4..98ed5b5 100644
--- a/wp-includes/blocks/navigation/style-rtl.css
+++ b/wp-includes/blocks/navigation/style-rtl.css
@@ -37,10 +37,7 @@
.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{
text-decoration:line-through;
}
-.wp-block-navigation:where(:not([class*=has-text-decoration])) a{
- text-decoration:none;
-}
-.wp-block-navigation:where(:not([class*=has-text-decoration])) a:active,.wp-block-navigation:where(:not([class*=has-text-decoration])) a:focus{
+.wp-block-navigation :where(a),.wp-block-navigation :where(a:active),.wp-block-navigation :where(a:focus){
text-decoration:none;
}
.wp-block-navigation .wp-block-navigation__submenu-icon{
@@ -175,6 +172,7 @@ button.wp-block-navigation-item__content{
font-size:inherit;
font-style:inherit;
font-weight:inherit;
+ letter-spacing:inherit;
line-height:inherit;
text-align:right;
text-transform:inherit;
diff --git a/wp-includes/blocks/navigation/style-rtl.min.css b/wp-includes/blocks/navigation/style-rtl.min.css
index 6c74307..fcbb9f1 100644
--- a/wp-includes/blocks/navigation/style-rtl.min.css
+++ b/wp-includes/blocks/navigation/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-navigation{position:relative;--navigation-layout-justification-setting:flex-start;--navigation-layout-direction:row;--navigation-layout-wrap:wrap;--navigation-layout-justify:flex-start;--navigation-layout-align:center}.wp-block-navigation ul{margin-bottom:0;margin-right:0;margin-top:0;padding-right:0}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none;padding:0}.wp-block-navigation .wp-block-navigation-item{align-items:center;background-color:inherit;display:flex;position:relative}.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container:empty{display:none}.wp-block-navigation .wp-block-navigation-item__content{display:block}.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{color:inherit}.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:focus{text-decoration:underline}.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{text-decoration:line-through}.wp-block-navigation:where(:not([class*=has-text-decoration])) a{text-decoration:none}.wp-block-navigation:where(:not([class*=has-text-decoration])) a:active,.wp-block-navigation:where(:not([class*=has-text-decoration])) a:focus{text-decoration:none}.wp-block-navigation .wp-block-navigation__submenu-icon{align-self:center;background-color:inherit;border:none;color:currentColor;display:inline-block;font-size:inherit;height:.6em;line-height:0;margin-right:.25em;padding:0;width:.6em}.wp-block-navigation .wp-block-navigation__submenu-icon svg{display:inline-block;stroke:currentColor;height:inherit;margin-top:.075em;width:inherit}.wp-block-navigation.is-vertical{--navigation-layout-direction:column;--navigation-layout-justify:initial;--navigation-layout-align:flex-start}.wp-block-navigation.no-wrap{--navigation-layout-wrap:nowrap}.wp-block-navigation.items-justified-center{--navigation-layout-justification-setting:center;--navigation-layout-justify:center}.wp-block-navigation.items-justified-center.is-vertical{--navigation-layout-align:center}.wp-block-navigation.items-justified-right{--navigation-layout-justification-setting:flex-end;--navigation-layout-justify:flex-end}.wp-block-navigation.items-justified-right.is-vertical{--navigation-layout-align:flex-end}.wp-block-navigation.items-justified-space-between{--navigation-layout-justification-setting:space-between;--navigation-layout-justify:space-between}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{align-items:normal;background-color:inherit;color:inherit;display:flex;flex-direction:column;height:0;opacity:0;overflow:hidden;position:absolute;right:-1px;top:100%;transition:opacity .1s linear;visibility:hidden;width:0;z-index:2}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content{display:flex;flex-grow:1}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content .wp-block-navigation__submenu-icon{margin-left:0;margin-right:auto}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content{margin:0}@media (min-width:782px){.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{right:100%;top:-1px}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:#0000;content:"";display:block;height:100%;left:100%;position:absolute;width:.5em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon{margin-left:.25em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon svg{transform:rotate(90deg)}}.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;overflow:visible;visibility:visible;width:auto}.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container{right:0;top:100%}@media (min-width:782px){.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{right:100%;top:0}}.wp-block-navigation-submenu{display:flex;position:relative}.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg{stroke:currentColor}button.wp-block-navigation-item__content{background-color:initial;border:none;color:currentColor;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;text-align:right;text-transform:inherit}.wp-block-navigation-submenu__toggle{cursor:pointer}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle{padding-left:.85em;padding-right:0}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle+.wp-block-navigation__submenu-icon{margin-right:-.6em;pointer-events:none}.wp-block-navigation-item.open-on-click button.wp-block-navigation-item__content:not(.wp-block-navigation-submenu__toggle){padding:0}.wp-block-navigation .wp-block-page-list,.wp-block-navigation__container,.wp-block-navigation__responsive-close,.wp-block-navigation__responsive-container,.wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-dialog{gap:inherit}:where(.wp-block-navigation.has-background .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation.has-background .wp-block-navigation-submenu a:not(.wp-element-button)){padding:.5em 1em}:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu button.wp-block-navigation-item__content),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-pages-list__item button.wp-block-navigation-item__content){padding:.5em 1em}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container{left:0;right:auto}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:-1px;right:-1px}@media (min-width:782px){.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;right:auto}}.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container{background-color:#fff;border:1px solid #00000026}.wp-block-navigation.has-background .wp-block-navigation__submenu-container{background-color:inherit}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container{color:#000}.wp-block-navigation__container{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial);list-style:none;margin:0;padding-right:0}.wp-block-navigation__container .is-responsive{display:none}.wp-block-navigation__container:only-child,.wp-block-page-list:only-child{flex-grow:1}@keyframes overlay-menu__fade-in-animation{0%{opacity:0;transform:translateY(.5em)}to{opacity:1;transform:translateY(0)}}.wp-block-navigation__responsive-container{bottom:0;display:none;left:0;position:fixed;right:0;top:0}.wp-block-navigation__responsive-container :where(.wp-block-navigation-item a){color:inherit}.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open){background-color:inherit!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open{animation:overlay-menu__fade-in-animation .1s ease-out;animation-fill-mode:forwards;background-color:inherit;display:flex;flex-direction:column;overflow:auto;padding:clamp(1rem,var(--wp--style--root--padding-top),20rem) clamp(1rem,var(--wp--style--root--padding-left),20em) clamp(1rem,var(--wp--style--root--padding-bottom),20rem) clamp(1rem,var(--wp--style--root--padding-right),20rem);z-index:100000}@media (prefers-reduced-motion:reduce){.wp-block-navigation__responsive-container.is-menu-open{animation-delay:0s;animation-duration:1ms}}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-justification-setting,inherit);display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible;padding-top:calc(2rem + 24px)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list{justify-content:flex-start}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container{border:none;height:auto;min-width:200px;opacity:1;overflow:initial;padding-left:2rem;padding-right:2rem;position:static;visibility:visible;width:auto}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{gap:inherit}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{padding-top:var(--wp--style--block-gap,2em)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content{padding:0}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list{align-items:var(--navigation-layout-justification-setting,initial);display:flex;flex-direction:column}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list{background:#0000!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:auto;right:auto}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){background-color:inherit;display:block;position:relative;width:100%;z-index:auto}.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{right:0}}.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open{background-color:#fff}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open{color:#000}.wp-block-navigation__toggle_button_label{font-size:1rem;font-weight:700}.wp-block-navigation__responsive-container-close,.wp-block-navigation__responsive-container-open{background:#0000;border:none;color:currentColor;cursor:pointer;margin:0;padding:0;text-transform:inherit;vertical-align:middle}.wp-block-navigation__responsive-container-close svg,.wp-block-navigation__responsive-container-open svg{fill:currentColor;display:block;height:24px;pointer-events:none;width:24px}.wp-block-navigation__responsive-container-open{display:flex}.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{font-family:inherit;font-size:inherit;font-weight:inherit}@media (min-width:600px){.wp-block-navigation__responsive-container-open:not(.always-shown){display:none}}.wp-block-navigation__responsive-container-close{left:0;position:absolute;top:0;z-index:2}.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close{font-family:inherit;font-size:inherit;font-weight:inherit}.wp-block-navigation__responsive-close{width:100%}.has-modal-open .wp-block-navigation__responsive-close{margin-left:auto;margin-right:auto;max-width:var(--wp--style--global--wide-size,100%)}.wp-block-navigation__responsive-close:focus{outline:none}.is-menu-open .wp-block-navigation__responsive-close,.is-menu-open .wp-block-navigation__responsive-container-content,.is-menu-open .wp-block-navigation__responsive-dialog{box-sizing:border-box}.wp-block-navigation__responsive-dialog{position:relative}.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:46px}@media (min-width:782px){.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:32px}}html.has-modal-open{overflow:hidden} \ No newline at end of file
+.wp-block-navigation{position:relative;--navigation-layout-justification-setting:flex-start;--navigation-layout-direction:row;--navigation-layout-wrap:wrap;--navigation-layout-justify:flex-start;--navigation-layout-align:center}.wp-block-navigation ul{margin-bottom:0;margin-right:0;margin-top:0;padding-right:0}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none;padding:0}.wp-block-navigation .wp-block-navigation-item{align-items:center;background-color:inherit;display:flex;position:relative}.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container:empty{display:none}.wp-block-navigation .wp-block-navigation-item__content{display:block}.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{color:inherit}.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:focus{text-decoration:underline}.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{text-decoration:line-through}.wp-block-navigation :where(a),.wp-block-navigation :where(a:active),.wp-block-navigation :where(a:focus){text-decoration:none}.wp-block-navigation .wp-block-navigation__submenu-icon{align-self:center;background-color:inherit;border:none;color:currentColor;display:inline-block;font-size:inherit;height:.6em;line-height:0;margin-right:.25em;padding:0;width:.6em}.wp-block-navigation .wp-block-navigation__submenu-icon svg{display:inline-block;stroke:currentColor;height:inherit;margin-top:.075em;width:inherit}.wp-block-navigation.is-vertical{--navigation-layout-direction:column;--navigation-layout-justify:initial;--navigation-layout-align:flex-start}.wp-block-navigation.no-wrap{--navigation-layout-wrap:nowrap}.wp-block-navigation.items-justified-center{--navigation-layout-justification-setting:center;--navigation-layout-justify:center}.wp-block-navigation.items-justified-center.is-vertical{--navigation-layout-align:center}.wp-block-navigation.items-justified-right{--navigation-layout-justification-setting:flex-end;--navigation-layout-justify:flex-end}.wp-block-navigation.items-justified-right.is-vertical{--navigation-layout-align:flex-end}.wp-block-navigation.items-justified-space-between{--navigation-layout-justification-setting:space-between;--navigation-layout-justify:space-between}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{align-items:normal;background-color:inherit;color:inherit;display:flex;flex-direction:column;height:0;opacity:0;overflow:hidden;position:absolute;right:-1px;top:100%;transition:opacity .1s linear;visibility:hidden;width:0;z-index:2}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content{display:flex;flex-grow:1}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content .wp-block-navigation__submenu-icon{margin-left:0;margin-right:auto}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content{margin:0}@media (min-width:782px){.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{right:100%;top:-1px}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:#0000;content:"";display:block;height:100%;left:100%;position:absolute;width:.5em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon{margin-left:.25em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon svg{transform:rotate(90deg)}}.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;overflow:visible;visibility:visible;width:auto}.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container{right:0;top:100%}@media (min-width:782px){.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{right:100%;top:0}}.wp-block-navigation-submenu{display:flex;position:relative}.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg{stroke:currentColor}button.wp-block-navigation-item__content{background-color:initial;border:none;color:currentColor;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-align:right;text-transform:inherit}.wp-block-navigation-submenu__toggle{cursor:pointer}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle{padding-left:.85em;padding-right:0}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle+.wp-block-navigation__submenu-icon{margin-right:-.6em;pointer-events:none}.wp-block-navigation-item.open-on-click button.wp-block-navigation-item__content:not(.wp-block-navigation-submenu__toggle){padding:0}.wp-block-navigation .wp-block-page-list,.wp-block-navigation__container,.wp-block-navigation__responsive-close,.wp-block-navigation__responsive-container,.wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-dialog{gap:inherit}:where(.wp-block-navigation.has-background .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation.has-background .wp-block-navigation-submenu a:not(.wp-element-button)){padding:.5em 1em}:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu button.wp-block-navigation-item__content),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-pages-list__item button.wp-block-navigation-item__content){padding:.5em 1em}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container{left:0;right:auto}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:-1px;right:-1px}@media (min-width:782px){.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;right:auto}}.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container{background-color:#fff;border:1px solid #00000026}.wp-block-navigation.has-background .wp-block-navigation__submenu-container{background-color:inherit}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container{color:#000}.wp-block-navigation__container{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial);list-style:none;margin:0;padding-right:0}.wp-block-navigation__container .is-responsive{display:none}.wp-block-navigation__container:only-child,.wp-block-page-list:only-child{flex-grow:1}@keyframes overlay-menu__fade-in-animation{0%{opacity:0;transform:translateY(.5em)}to{opacity:1;transform:translateY(0)}}.wp-block-navigation__responsive-container{bottom:0;display:none;left:0;position:fixed;right:0;top:0}.wp-block-navigation__responsive-container :where(.wp-block-navigation-item a){color:inherit}.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open){background-color:inherit!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open{animation:overlay-menu__fade-in-animation .1s ease-out;animation-fill-mode:forwards;background-color:inherit;display:flex;flex-direction:column;overflow:auto;padding:clamp(1rem,var(--wp--style--root--padding-top),20rem) clamp(1rem,var(--wp--style--root--padding-left),20em) clamp(1rem,var(--wp--style--root--padding-bottom),20rem) clamp(1rem,var(--wp--style--root--padding-right),20rem);z-index:100000}@media (prefers-reduced-motion:reduce){.wp-block-navigation__responsive-container.is-menu-open{animation-delay:0s;animation-duration:1ms}}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-justification-setting,inherit);display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible;padding-top:calc(2rem + 24px)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list{justify-content:flex-start}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container{border:none;height:auto;min-width:200px;opacity:1;overflow:initial;padding-left:2rem;padding-right:2rem;position:static;visibility:visible;width:auto}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{gap:inherit}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{padding-top:var(--wp--style--block-gap,2em)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content{padding:0}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list{align-items:var(--navigation-layout-justification-setting,initial);display:flex;flex-direction:column}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list{background:#0000!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:auto;right:auto}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){background-color:inherit;display:block;position:relative;width:100%;z-index:auto}.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{right:0}}.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open{background-color:#fff}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open{color:#000}.wp-block-navigation__toggle_button_label{font-size:1rem;font-weight:700}.wp-block-navigation__responsive-container-close,.wp-block-navigation__responsive-container-open{background:#0000;border:none;color:currentColor;cursor:pointer;margin:0;padding:0;text-transform:inherit;vertical-align:middle}.wp-block-navigation__responsive-container-close svg,.wp-block-navigation__responsive-container-open svg{fill:currentColor;display:block;height:24px;pointer-events:none;width:24px}.wp-block-navigation__responsive-container-open{display:flex}.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{font-family:inherit;font-size:inherit;font-weight:inherit}@media (min-width:600px){.wp-block-navigation__responsive-container-open:not(.always-shown){display:none}}.wp-block-navigation__responsive-container-close{left:0;position:absolute;top:0;z-index:2}.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close{font-family:inherit;font-size:inherit;font-weight:inherit}.wp-block-navigation__responsive-close{width:100%}.has-modal-open .wp-block-navigation__responsive-close{margin-left:auto;margin-right:auto;max-width:var(--wp--style--global--wide-size,100%)}.wp-block-navigation__responsive-close:focus{outline:none}.is-menu-open .wp-block-navigation__responsive-close,.is-menu-open .wp-block-navigation__responsive-container-content,.is-menu-open .wp-block-navigation__responsive-dialog{box-sizing:border-box}.wp-block-navigation__responsive-dialog{position:relative}.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:46px}@media (min-width:782px){.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:32px}}html.has-modal-open{overflow:hidden} \ No newline at end of file
diff --git a/wp-includes/blocks/navigation/style.css b/wp-includes/blocks/navigation/style.css
index fd30aff..b072745 100644
--- a/wp-includes/blocks/navigation/style.css
+++ b/wp-includes/blocks/navigation/style.css
@@ -37,10 +37,7 @@
.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{
text-decoration:line-through;
}
-.wp-block-navigation:where(:not([class*=has-text-decoration])) a{
- text-decoration:none;
-}
-.wp-block-navigation:where(:not([class*=has-text-decoration])) a:active,.wp-block-navigation:where(:not([class*=has-text-decoration])) a:focus{
+.wp-block-navigation :where(a),.wp-block-navigation :where(a:active),.wp-block-navigation :where(a:focus){
text-decoration:none;
}
.wp-block-navigation .wp-block-navigation__submenu-icon{
@@ -175,6 +172,7 @@ button.wp-block-navigation-item__content{
font-size:inherit;
font-style:inherit;
font-weight:inherit;
+ letter-spacing:inherit;
line-height:inherit;
text-align:left;
text-transform:inherit;
diff --git a/wp-includes/blocks/navigation/style.min.css b/wp-includes/blocks/navigation/style.min.css
index cd0be83..d9bb119 100644
--- a/wp-includes/blocks/navigation/style.min.css
+++ b/wp-includes/blocks/navigation/style.min.css
@@ -1 +1 @@
-.wp-block-navigation{position:relative;--navigation-layout-justification-setting:flex-start;--navigation-layout-direction:row;--navigation-layout-wrap:wrap;--navigation-layout-justify:flex-start;--navigation-layout-align:center}.wp-block-navigation ul{margin-bottom:0;margin-left:0;margin-top:0;padding-left:0}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none;padding:0}.wp-block-navigation .wp-block-navigation-item{align-items:center;background-color:inherit;display:flex;position:relative}.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container:empty{display:none}.wp-block-navigation .wp-block-navigation-item__content{display:block}.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{color:inherit}.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:focus{text-decoration:underline}.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{text-decoration:line-through}.wp-block-navigation:where(:not([class*=has-text-decoration])) a{text-decoration:none}.wp-block-navigation:where(:not([class*=has-text-decoration])) a:active,.wp-block-navigation:where(:not([class*=has-text-decoration])) a:focus{text-decoration:none}.wp-block-navigation .wp-block-navigation__submenu-icon{align-self:center;background-color:inherit;border:none;color:currentColor;display:inline-block;font-size:inherit;height:.6em;line-height:0;margin-left:.25em;padding:0;width:.6em}.wp-block-navigation .wp-block-navigation__submenu-icon svg{display:inline-block;stroke:currentColor;height:inherit;margin-top:.075em;width:inherit}.wp-block-navigation.is-vertical{--navigation-layout-direction:column;--navigation-layout-justify:initial;--navigation-layout-align:flex-start}.wp-block-navigation.no-wrap{--navigation-layout-wrap:nowrap}.wp-block-navigation.items-justified-center{--navigation-layout-justification-setting:center;--navigation-layout-justify:center}.wp-block-navigation.items-justified-center.is-vertical{--navigation-layout-align:center}.wp-block-navigation.items-justified-right{--navigation-layout-justification-setting:flex-end;--navigation-layout-justify:flex-end}.wp-block-navigation.items-justified-right.is-vertical{--navigation-layout-align:flex-end}.wp-block-navigation.items-justified-space-between{--navigation-layout-justification-setting:space-between;--navigation-layout-justify:space-between}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{align-items:normal;background-color:inherit;color:inherit;display:flex;flex-direction:column;height:0;left:-1px;opacity:0;overflow:hidden;position:absolute;top:100%;transition:opacity .1s linear;visibility:hidden;width:0;z-index:2}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content{display:flex;flex-grow:1}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content .wp-block-navigation__submenu-icon{margin-left:auto;margin-right:0}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content{margin:0}@media (min-width:782px){.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:-1px}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:#0000;content:"";display:block;height:100%;position:absolute;right:100%;width:.5em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon{margin-right:.25em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon svg{transform:rotate(-90deg)}}.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;overflow:visible;visibility:visible;width:auto}.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container{left:0;top:100%}@media (min-width:782px){.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:0}}.wp-block-navigation-submenu{display:flex;position:relative}.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg{stroke:currentColor}button.wp-block-navigation-item__content{background-color:initial;border:none;color:currentColor;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;text-align:left;text-transform:inherit}.wp-block-navigation-submenu__toggle{cursor:pointer}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle{padding-left:0;padding-right:.85em}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle+.wp-block-navigation__submenu-icon{margin-left:-.6em;pointer-events:none}.wp-block-navigation-item.open-on-click button.wp-block-navigation-item__content:not(.wp-block-navigation-submenu__toggle){padding:0}.wp-block-navigation .wp-block-page-list,.wp-block-navigation__container,.wp-block-navigation__responsive-close,.wp-block-navigation__responsive-container,.wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-dialog{gap:inherit}:where(.wp-block-navigation.has-background .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation.has-background .wp-block-navigation-submenu a:not(.wp-element-button)){padding:.5em 1em}:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu button.wp-block-navigation-item__content),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-pages-list__item button.wp-block-navigation-item__content){padding:.5em 1em}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container{left:auto;right:0}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:-1px;right:-1px}@media (min-width:782px){.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:auto;right:100%}}.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container{background-color:#fff;border:1px solid #00000026}.wp-block-navigation.has-background .wp-block-navigation__submenu-container{background-color:inherit}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container{color:#000}.wp-block-navigation__container{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial);list-style:none;margin:0;padding-left:0}.wp-block-navigation__container .is-responsive{display:none}.wp-block-navigation__container:only-child,.wp-block-page-list:only-child{flex-grow:1}@keyframes overlay-menu__fade-in-animation{0%{opacity:0;transform:translateY(.5em)}to{opacity:1;transform:translateY(0)}}.wp-block-navigation__responsive-container{bottom:0;display:none;left:0;position:fixed;right:0;top:0}.wp-block-navigation__responsive-container :where(.wp-block-navigation-item a){color:inherit}.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open){background-color:inherit!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open{animation:overlay-menu__fade-in-animation .1s ease-out;animation-fill-mode:forwards;background-color:inherit;display:flex;flex-direction:column;overflow:auto;padding:clamp(1rem,var(--wp--style--root--padding-top),20rem) clamp(1rem,var(--wp--style--root--padding-right),20rem) clamp(1rem,var(--wp--style--root--padding-bottom),20rem) clamp(1rem,var(--wp--style--root--padding-left),20em);z-index:100000}@media (prefers-reduced-motion:reduce){.wp-block-navigation__responsive-container.is-menu-open{animation-delay:0s;animation-duration:1ms}}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-justification-setting,inherit);display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible;padding-top:calc(2rem + 24px)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list{justify-content:flex-start}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container{border:none;height:auto;min-width:200px;opacity:1;overflow:initial;padding-left:2rem;padding-right:2rem;position:static;visibility:visible;width:auto}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{gap:inherit}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{padding-top:var(--wp--style--block-gap,2em)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content{padding:0}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list{align-items:var(--navigation-layout-justification-setting,initial);display:flex;flex-direction:column}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list{background:#0000!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:auto;right:auto}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){background-color:inherit;display:block;position:relative;width:100%;z-index:auto}.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:0}}.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open{background-color:#fff}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open{color:#000}.wp-block-navigation__toggle_button_label{font-size:1rem;font-weight:700}.wp-block-navigation__responsive-container-close,.wp-block-navigation__responsive-container-open{background:#0000;border:none;color:currentColor;cursor:pointer;margin:0;padding:0;text-transform:inherit;vertical-align:middle}.wp-block-navigation__responsive-container-close svg,.wp-block-navigation__responsive-container-open svg{fill:currentColor;display:block;height:24px;pointer-events:none;width:24px}.wp-block-navigation__responsive-container-open{display:flex}.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{font-family:inherit;font-size:inherit;font-weight:inherit}@media (min-width:600px){.wp-block-navigation__responsive-container-open:not(.always-shown){display:none}}.wp-block-navigation__responsive-container-close{position:absolute;right:0;top:0;z-index:2}.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close{font-family:inherit;font-size:inherit;font-weight:inherit}.wp-block-navigation__responsive-close{width:100%}.has-modal-open .wp-block-navigation__responsive-close{margin-left:auto;margin-right:auto;max-width:var(--wp--style--global--wide-size,100%)}.wp-block-navigation__responsive-close:focus{outline:none}.is-menu-open .wp-block-navigation__responsive-close,.is-menu-open .wp-block-navigation__responsive-container-content,.is-menu-open .wp-block-navigation__responsive-dialog{box-sizing:border-box}.wp-block-navigation__responsive-dialog{position:relative}.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:46px}@media (min-width:782px){.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:32px}}html.has-modal-open{overflow:hidden} \ No newline at end of file
+.wp-block-navigation{position:relative;--navigation-layout-justification-setting:flex-start;--navigation-layout-direction:row;--navigation-layout-wrap:wrap;--navigation-layout-justify:flex-start;--navigation-layout-align:center}.wp-block-navigation ul{margin-bottom:0;margin-left:0;margin-top:0;padding-left:0}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none;padding:0}.wp-block-navigation .wp-block-navigation-item{align-items:center;background-color:inherit;display:flex;position:relative}.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container:empty{display:none}.wp-block-navigation .wp-block-navigation-item__content{display:block}.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{color:inherit}.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:focus{text-decoration:underline}.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{text-decoration:line-through}.wp-block-navigation :where(a),.wp-block-navigation :where(a:active),.wp-block-navigation :where(a:focus){text-decoration:none}.wp-block-navigation .wp-block-navigation__submenu-icon{align-self:center;background-color:inherit;border:none;color:currentColor;display:inline-block;font-size:inherit;height:.6em;line-height:0;margin-left:.25em;padding:0;width:.6em}.wp-block-navigation .wp-block-navigation__submenu-icon svg{display:inline-block;stroke:currentColor;height:inherit;margin-top:.075em;width:inherit}.wp-block-navigation.is-vertical{--navigation-layout-direction:column;--navigation-layout-justify:initial;--navigation-layout-align:flex-start}.wp-block-navigation.no-wrap{--navigation-layout-wrap:nowrap}.wp-block-navigation.items-justified-center{--navigation-layout-justification-setting:center;--navigation-layout-justify:center}.wp-block-navigation.items-justified-center.is-vertical{--navigation-layout-align:center}.wp-block-navigation.items-justified-right{--navigation-layout-justification-setting:flex-end;--navigation-layout-justify:flex-end}.wp-block-navigation.items-justified-right.is-vertical{--navigation-layout-align:flex-end}.wp-block-navigation.items-justified-space-between{--navigation-layout-justification-setting:space-between;--navigation-layout-justify:space-between}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{align-items:normal;background-color:inherit;color:inherit;display:flex;flex-direction:column;height:0;left:-1px;opacity:0;overflow:hidden;position:absolute;top:100%;transition:opacity .1s linear;visibility:hidden;width:0;z-index:2}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content{display:flex;flex-grow:1}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content .wp-block-navigation__submenu-icon{margin-left:auto;margin-right:0}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content{margin:0}@media (min-width:782px){.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:-1px}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:#0000;content:"";display:block;height:100%;position:absolute;right:100%;width:.5em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon{margin-right:.25em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon svg{transform:rotate(-90deg)}}.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;overflow:visible;visibility:visible;width:auto}.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container{left:0;top:100%}@media (min-width:782px){.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:0}}.wp-block-navigation-submenu{display:flex;position:relative}.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg{stroke:currentColor}button.wp-block-navigation-item__content{background-color:initial;border:none;color:currentColor;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-align:left;text-transform:inherit}.wp-block-navigation-submenu__toggle{cursor:pointer}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle{padding-left:0;padding-right:.85em}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle+.wp-block-navigation__submenu-icon{margin-left:-.6em;pointer-events:none}.wp-block-navigation-item.open-on-click button.wp-block-navigation-item__content:not(.wp-block-navigation-submenu__toggle){padding:0}.wp-block-navigation .wp-block-page-list,.wp-block-navigation__container,.wp-block-navigation__responsive-close,.wp-block-navigation__responsive-container,.wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-dialog{gap:inherit}:where(.wp-block-navigation.has-background .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation.has-background .wp-block-navigation-submenu a:not(.wp-element-button)){padding:.5em 1em}:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu button.wp-block-navigation-item__content),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-pages-list__item button.wp-block-navigation-item__content){padding:.5em 1em}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container{left:auto;right:0}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:-1px;right:-1px}@media (min-width:782px){.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:auto;right:100%}}.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container{background-color:#fff;border:1px solid #00000026}.wp-block-navigation.has-background .wp-block-navigation__submenu-container{background-color:inherit}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container{color:#000}.wp-block-navigation__container{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial);list-style:none;margin:0;padding-left:0}.wp-block-navigation__container .is-responsive{display:none}.wp-block-navigation__container:only-child,.wp-block-page-list:only-child{flex-grow:1}@keyframes overlay-menu__fade-in-animation{0%{opacity:0;transform:translateY(.5em)}to{opacity:1;transform:translateY(0)}}.wp-block-navigation__responsive-container{bottom:0;display:none;left:0;position:fixed;right:0;top:0}.wp-block-navigation__responsive-container :where(.wp-block-navigation-item a){color:inherit}.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open){background-color:inherit!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open{animation:overlay-menu__fade-in-animation .1s ease-out;animation-fill-mode:forwards;background-color:inherit;display:flex;flex-direction:column;overflow:auto;padding:clamp(1rem,var(--wp--style--root--padding-top),20rem) clamp(1rem,var(--wp--style--root--padding-right),20rem) clamp(1rem,var(--wp--style--root--padding-bottom),20rem) clamp(1rem,var(--wp--style--root--padding-left),20em);z-index:100000}@media (prefers-reduced-motion:reduce){.wp-block-navigation__responsive-container.is-menu-open{animation-delay:0s;animation-duration:1ms}}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-justification-setting,inherit);display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible;padding-top:calc(2rem + 24px)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list{justify-content:flex-start}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container{border:none;height:auto;min-width:200px;opacity:1;overflow:initial;padding-left:2rem;padding-right:2rem;position:static;visibility:visible;width:auto}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{gap:inherit}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{padding-top:var(--wp--style--block-gap,2em)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content{padding:0}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list{align-items:var(--navigation-layout-justification-setting,initial);display:flex;flex-direction:column}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list{background:#0000!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:auto;right:auto}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){background-color:inherit;display:block;position:relative;width:100%;z-index:auto}.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:0}}.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open{background-color:#fff}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open{color:#000}.wp-block-navigation__toggle_button_label{font-size:1rem;font-weight:700}.wp-block-navigation__responsive-container-close,.wp-block-navigation__responsive-container-open{background:#0000;border:none;color:currentColor;cursor:pointer;margin:0;padding:0;text-transform:inherit;vertical-align:middle}.wp-block-navigation__responsive-container-close svg,.wp-block-navigation__responsive-container-open svg{fill:currentColor;display:block;height:24px;pointer-events:none;width:24px}.wp-block-navigation__responsive-container-open{display:flex}.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{font-family:inherit;font-size:inherit;font-weight:inherit}@media (min-width:600px){.wp-block-navigation__responsive-container-open:not(.always-shown){display:none}}.wp-block-navigation__responsive-container-close{position:absolute;right:0;top:0;z-index:2}.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close{font-family:inherit;font-size:inherit;font-weight:inherit}.wp-block-navigation__responsive-close{width:100%}.has-modal-open .wp-block-navigation__responsive-close{margin-left:auto;margin-right:auto;max-width:var(--wp--style--global--wide-size,100%)}.wp-block-navigation__responsive-close:focus{outline:none}.is-menu-open .wp-block-navigation__responsive-close,.is-menu-open .wp-block-navigation__responsive-container-content,.is-menu-open .wp-block-navigation__responsive-dialog{box-sizing:border-box}.wp-block-navigation__responsive-dialog{position:relative}.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:46px}@media (min-width:782px){.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:32px}}html.has-modal-open{overflow:hidden} \ No newline at end of file
diff --git a/wp-includes/blocks/navigation/view.js b/wp-includes/blocks/navigation/view.js
index 553deda..5722eb6 100644
--- a/wp-includes/blocks/navigation/view.js
+++ b/wp-includes/blocks/navigation/view.js
@@ -110,7 +110,9 @@ const {
ref
} = (0,interactivity_namespaceObject.getElement)();
// Safari won't send focus to the clicked element, so we need to manually place it: https://bugs.webkit.org/show_bug.cgi?id=22261
- if (window.document.activeElement !== ref) ref.focus();
+ if (window.document.activeElement !== ref) {
+ ref.focus();
+ }
const {
menuOpenedBy
} = state;
@@ -157,7 +159,7 @@ const {
// If focus is outside modal, and in the document, close menu
// event.target === The element losing focus
// event.relatedTarget === The element receiving focus (if any)
- // When focusout is outsite the document,
+ // When focusout is outside the document,
// `window.document.activeElement` doesn't change.
// The event.relatedTarget is null when something outside the navigation menu is clicked. This is only necessary for Safari.
diff --git a/wp-includes/blocks/page-list-item.php b/wp-includes/blocks/page-list-item.php
index 2955c79..121d2db 100644
--- a/wp-includes/blocks/page-list-item.php
+++ b/wp-includes/blocks/page-list-item.php
@@ -7,6 +7,8 @@
/**
* Registers the `core/page-list-item` block on server.
+ *
+ * @since 6.3.0
*/
function register_block_core_page_list_item() {
register_block_type_from_metadata( __DIR__ . '/page-list-item' );
diff --git a/wp-includes/blocks/page-list.php b/wp-includes/blocks/page-list.php
index b9ef8bf..4ff57e1 100644
--- a/wp-includes/blocks/page-list.php
+++ b/wp-includes/blocks/page-list.php
@@ -9,6 +9,8 @@
* Build an array with CSS classes and inline styles defining the colors
* which will be applied to the pages markup in the front-end when it is a descendant of navigation.
*
+ * @since 5.8.0
+ *
* @param array $attributes Block attributes.
* @param array $context Navigation block context.
* @return array Colors CSS classes and inline styles.
@@ -101,6 +103,8 @@ function block_core_page_list_build_css_colors( $attributes, $context ) {
* Build an array with CSS classes and inline styles defining the font sizes
* which will be applied to the pages markup in the front-end when it is a descendant of navigation.
*
+ * @since 5.8.0
+ *
* @param array $context Navigation block context.
* @return array Font size CSS classes and inline styles.
*/
@@ -135,6 +139,8 @@ function block_core_page_list_build_css_font_sizes( $context ) {
/**
* Outputs Page list markup from an array of pages with nested children.
*
+ * @since 5.8.0
+ *
* @param boolean $open_submenus_on_click Whether to open submenus on click instead of hover.
* @param boolean $show_submenu_icons Whether to show submenu indicator icons.
* @param boolean $is_navigation_child If block is a child of Navigation block.
@@ -220,6 +226,8 @@ function block_core_page_list_render_nested_page_list( $open_submenus_on_click,
/**
* Outputs nested array of pages
*
+ * @since 5.8.0
+ *
* @param array $current_level The level being iterated through.
* @param array $children The children grouped by parent post ID.
*
@@ -240,6 +248,8 @@ function block_core_page_list_nest_pages( $current_level, $children ) {
/**
* Renders the `core/page-list` block on server.
*
+ * @since 5.8.0
+ *
* @param array $attributes The block attributes.
* @param string $content The saved content.
* @param WP_Block $block The parsed block.
@@ -345,6 +355,8 @@ function render_block_core_page_list( $attributes, $content, $block ) {
/**
* Registers the `core/pages` block on server.
+ *
+ * @since 5.8.0
*/
function register_block_core_page_list() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/paragraph/block.json b/wp-includes/blocks/paragraph/block.json
index 7cfe785..6f11baf 100644
--- a/wp-includes/blocks/paragraph/block.json
+++ b/wp-includes/blocks/paragraph/block.json
@@ -7,7 +7,6 @@
"description": "Start with the basic building block of all narrative.",
"keywords": [ "text" ],
"textdomain": "default",
- "usesContext": [ "postId" ],
"attributes": {
"align": {
"type": "string"
@@ -31,6 +30,7 @@
}
},
"supports": {
+ "splitting": true,
"anchor": true,
"className": false,
"color": {
diff --git a/wp-includes/blocks/paragraph/style-rtl.css b/wp-includes/blocks/paragraph/style-rtl.css
index b420b54..ab1a9a4 100644
--- a/wp-includes/blocks/paragraph/style-rtl.css
+++ b/wp-includes/blocks/paragraph/style-rtl.css
@@ -33,7 +33,7 @@ p.has-drop-cap.has-background{
overflow:hidden;
}
-p.has-background{
+:root :where(p.has-background){
padding:1.25em 2.375em;
}
diff --git a/wp-includes/blocks/paragraph/style-rtl.min.css b/wp-includes/blocks/paragraph/style-rtl.min.css
index d48810f..50049ba 100644
--- a/wp-includes/blocks/paragraph/style-rtl.min.css
+++ b/wp-includes/blocks/paragraph/style-rtl.min.css
@@ -1 +1 @@
-.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:right;font-size:8.4em;font-style:normal;font-weight:100;line-height:.68;margin:.05em 0 0 .1em;text-transform:uppercase}body.rtl .has-drop-cap:not(:focus):first-letter{float:none;margin-right:.1em}p.has-drop-cap.has-background{overflow:hidden}p.has-background{padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{rotate:180deg} \ No newline at end of file
+.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:right;font-size:8.4em;font-style:normal;font-weight:100;line-height:.68;margin:.05em 0 0 .1em;text-transform:uppercase}body.rtl .has-drop-cap:not(:focus):first-letter{float:none;margin-right:.1em}p.has-drop-cap.has-background{overflow:hidden}:root :where(p.has-background){padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{rotate:180deg} \ No newline at end of file
diff --git a/wp-includes/blocks/paragraph/style.css b/wp-includes/blocks/paragraph/style.css
index 849c89a..ad28631 100644
--- a/wp-includes/blocks/paragraph/style.css
+++ b/wp-includes/blocks/paragraph/style.css
@@ -33,7 +33,7 @@ p.has-drop-cap.has-background{
overflow:hidden;
}
-p.has-background{
+:root :where(p.has-background){
padding:1.25em 2.375em;
}
diff --git a/wp-includes/blocks/paragraph/style.min.css b/wp-includes/blocks/paragraph/style.min.css
index 5a0f9cb..40c17c6 100644
--- a/wp-includes/blocks/paragraph/style.min.css
+++ b/wp-includes/blocks/paragraph/style.min.css
@@ -1 +1 @@
-.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;font-style:normal;font-weight:100;line-height:.68;margin:.05em .1em 0 0;text-transform:uppercase}body.rtl .has-drop-cap:not(:focus):first-letter{float:none;margin-left:.1em}p.has-drop-cap.has-background{overflow:hidden}p.has-background{padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{rotate:180deg} \ No newline at end of file
+.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;font-style:normal;font-weight:100;line-height:.68;margin:.05em .1em 0 0;text-transform:uppercase}body.rtl .has-drop-cap:not(:focus):first-letter{float:none;margin-left:.1em}p.has-drop-cap.has-background{overflow:hidden}:root :where(p.has-background){padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{rotate:180deg} \ No newline at end of file
diff --git a/wp-includes/blocks/pattern.php b/wp-includes/blocks/pattern.php
index 9a4d4c0..5595818 100644
--- a/wp-includes/blocks/pattern.php
+++ b/wp-includes/blocks/pattern.php
@@ -7,6 +7,8 @@
/**
* Registers the `core/pattern` block on the server.
+ *
+ * @since 5.9.0
*/
function register_block_core_pattern() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/post-author-biography.php b/wp-includes/blocks/post-author-biography.php
index 3ea6ecb..bd983f7 100644
--- a/wp-includes/blocks/post-author-biography.php
+++ b/wp-includes/blocks/post-author-biography.php
@@ -8,17 +8,20 @@
/**
* Renders the `core/post-author-biography` block on the server.
*
+ * @since 6.0.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
* @return string Returns the rendered post author biography block.
*/
function render_block_core_post_author_biography( $attributes, $content, $block ) {
- if ( ! isset( $block->context['postId'] ) ) {
- return '';
+ if ( isset( $block->context['postId'] ) ) {
+ $author_id = get_post_field( 'post_author', $block->context['postId'] );
+ } else {
+ $author_id = get_query_var( 'author' );
}
- $author_id = get_post_field( 'post_author', $block->context['postId'] );
if ( empty( $author_id ) ) {
return '';
}
@@ -36,6 +39,8 @@ function render_block_core_post_author_biography( $attributes, $content, $block
/**
* Registers the `core/post-author-biography` block on the server.
+ *
+ * @since 6.0.0
*/
function register_block_core_post_author_biography() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/post-author-name.php b/wp-includes/blocks/post-author-name.php
index c5c6d14..effc839 100644
--- a/wp-includes/blocks/post-author-name.php
+++ b/wp-includes/blocks/post-author-name.php
@@ -8,17 +8,20 @@
/**
* Renders the `core/post-author-name` block on the server.
*
+ * @since 6.2.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
* @return string Returns the rendered post author name block.
*/
function render_block_core_post_author_name( $attributes, $content, $block ) {
- if ( ! isset( $block->context['postId'] ) ) {
- return '';
+ if ( isset( $block->context['postId'] ) ) {
+ $author_id = get_post_field( 'post_author', $block->context['postId'] );
+ } else {
+ $author_id = get_query_var( 'author' );
}
- $author_id = get_post_field( 'post_author', $block->context['postId'] );
if ( empty( $author_id ) ) {
return '';
}
@@ -42,6 +45,8 @@ function render_block_core_post_author_name( $attributes, $content, $block ) {
/**
* Registers the `core/post-author-name` block on the server.
+ *
+ * @since 6.2.0
*/
function register_block_core_post_author_name() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/post-author.php b/wp-includes/blocks/post-author.php
index 898d947..faf894d 100644
--- a/wp-includes/blocks/post-author.php
+++ b/wp-includes/blocks/post-author.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/post-author` block on the server.
*
+ * @since 5.9.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -61,6 +63,8 @@ function render_block_core_post_author( $attributes, $content, $block ) {
/**
* Registers the `core/post-author` block on the server.
+ *
+ * @since 5.9.0
*/
function register_block_core_post_author() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/post-comments-form.php b/wp-includes/blocks/post-comments-form.php
index 644b02a..dfbf4c5 100644
--- a/wp-includes/blocks/post-comments-form.php
+++ b/wp-includes/blocks/post-comments-form.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/post-comments-form` block on the server.
*
+ * @since 6.0.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -54,6 +56,8 @@ function render_block_core_post_comments_form( $attributes, $content, $block ) {
/**
* Registers the `core/post-comments-form` block on the server.
+ *
+ * @since 6.0.0
*/
function register_block_core_post_comments_form() {
register_block_type_from_metadata(
@@ -68,6 +72,8 @@ add_action( 'init', 'register_block_core_post_comments_form' );
/**
* Use the button block classes for the form-submit button.
*
+ * @since 6.0.0
+ *
* @param array $fields The default comment form arguments.
*
* @return array Returns the modified fields.
diff --git a/wp-includes/blocks/post-comments-form/style-rtl.css b/wp-includes/blocks/post-comments-form/style-rtl.css
index 7e14dd1..149ea22 100644
--- a/wp-includes/blocks/post-comments-form/style-rtl.css
+++ b/wp-includes/blocks/post-comments-form/style-rtl.css
@@ -1,3 +1,12 @@
+:where(.wp-block-post-comments-form) input:not([type=submit]),:where(.wp-block-post-comments-form) textarea{
+ border:1px solid #949494;
+ font-family:inherit;
+ font-size:1em;
+}
+:where(.wp-block-post-comments-form) input:where(:not([type=submit]):not([type=checkbox])),:where(.wp-block-post-comments-form) textarea{
+ padding:calc(.667em + 2px);
+}
+
.wp-block-post-comments-form{
box-sizing:border-box;
}
@@ -26,14 +35,6 @@
overflow-wrap:break-word;
text-align:center;
}
-.wp-block-post-comments-form input:not([type=submit]),.wp-block-post-comments-form textarea{
- border:1px solid #949494;
- font-family:inherit;
- font-size:1em;
-}
-.wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments-form textarea{
- padding:calc(.667em + 2px);
-}
.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{
box-sizing:border-box;
display:block;
diff --git a/wp-includes/blocks/post-comments-form/style-rtl.min.css b/wp-includes/blocks/post-comments-form/style-rtl.min.css
index 8195389..5716d3b 100644
--- a/wp-includes/blocks/post-comments-form/style-rtl.min.css
+++ b/wp-includes/blocks/post-comments-form/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-post-comments-form{box-sizing:border-box}.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title){font-weight:inherit}.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title){font-family:inherit}.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title),.wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title){font-size:inherit}.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title){line-height:inherit}.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title){font-style:inherit}.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title){letter-spacing:inherit}.wp-block-post-comments-form input[type=submit]{box-shadow:none;cursor:pointer;display:inline-block;overflow-wrap:break-word;text-align:center}.wp-block-post-comments-form input:not([type=submit]),.wp-block-post-comments-form textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments-form textarea{padding:calc(.667em + 2px)}.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments-form .comment-form-author label,.wp-block-post-comments-form .comment-form-email label,.wp-block-post-comments-form .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments-form .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments-form .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments-form .comment-reply-title{margin-bottom:0}.wp-block-post-comments-form .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-right:.5em} \ No newline at end of file
+:where(.wp-block-post-comments-form) input:not([type=submit]),:where(.wp-block-post-comments-form) textarea{border:1px solid #949494;font-family:inherit;font-size:1em}:where(.wp-block-post-comments-form) input:where(:not([type=submit]):not([type=checkbox])),:where(.wp-block-post-comments-form) textarea{padding:calc(.667em + 2px)}.wp-block-post-comments-form{box-sizing:border-box}.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title){font-weight:inherit}.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title){font-family:inherit}.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title),.wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title){font-size:inherit}.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title){line-height:inherit}.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title){font-style:inherit}.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title){letter-spacing:inherit}.wp-block-post-comments-form input[type=submit]{box-shadow:none;cursor:pointer;display:inline-block;overflow-wrap:break-word;text-align:center}.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments-form .comment-form-author label,.wp-block-post-comments-form .comment-form-email label,.wp-block-post-comments-form .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments-form .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments-form .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments-form .comment-reply-title{margin-bottom:0}.wp-block-post-comments-form .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-right:.5em} \ No newline at end of file
diff --git a/wp-includes/blocks/post-comments-form/style.css b/wp-includes/blocks/post-comments-form/style.css
index fac2c07..5de971d 100644
--- a/wp-includes/blocks/post-comments-form/style.css
+++ b/wp-includes/blocks/post-comments-form/style.css
@@ -1,3 +1,12 @@
+:where(.wp-block-post-comments-form) input:not([type=submit]),:where(.wp-block-post-comments-form) textarea{
+ border:1px solid #949494;
+ font-family:inherit;
+ font-size:1em;
+}
+:where(.wp-block-post-comments-form) input:where(:not([type=submit]):not([type=checkbox])),:where(.wp-block-post-comments-form) textarea{
+ padding:calc(.667em + 2px);
+}
+
.wp-block-post-comments-form{
box-sizing:border-box;
}
@@ -26,14 +35,6 @@
overflow-wrap:break-word;
text-align:center;
}
-.wp-block-post-comments-form input:not([type=submit]),.wp-block-post-comments-form textarea{
- border:1px solid #949494;
- font-family:inherit;
- font-size:1em;
-}
-.wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments-form textarea{
- padding:calc(.667em + 2px);
-}
.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{
box-sizing:border-box;
display:block;
diff --git a/wp-includes/blocks/post-comments-form/style.min.css b/wp-includes/blocks/post-comments-form/style.min.css
index db9afc1..e6e8785 100644
--- a/wp-includes/blocks/post-comments-form/style.min.css
+++ b/wp-includes/blocks/post-comments-form/style.min.css
@@ -1 +1 @@
-.wp-block-post-comments-form{box-sizing:border-box}.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title){font-weight:inherit}.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title){font-family:inherit}.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title),.wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title){font-size:inherit}.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title){line-height:inherit}.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title){font-style:inherit}.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title){letter-spacing:inherit}.wp-block-post-comments-form input[type=submit]{box-shadow:none;cursor:pointer;display:inline-block;overflow-wrap:break-word;text-align:center}.wp-block-post-comments-form input:not([type=submit]),.wp-block-post-comments-form textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments-form textarea{padding:calc(.667em + 2px)}.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments-form .comment-form-author label,.wp-block-post-comments-form .comment-form-email label,.wp-block-post-comments-form .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments-form .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments-form .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments-form .comment-reply-title{margin-bottom:0}.wp-block-post-comments-form .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-left:.5em} \ No newline at end of file
+:where(.wp-block-post-comments-form) input:not([type=submit]),:where(.wp-block-post-comments-form) textarea{border:1px solid #949494;font-family:inherit;font-size:1em}:where(.wp-block-post-comments-form) input:where(:not([type=submit]):not([type=checkbox])),:where(.wp-block-post-comments-form) textarea{padding:calc(.667em + 2px)}.wp-block-post-comments-form{box-sizing:border-box}.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title){font-weight:inherit}.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title){font-family:inherit}.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title),.wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title){font-size:inherit}.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title){line-height:inherit}.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title){font-style:inherit}.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title){letter-spacing:inherit}.wp-block-post-comments-form input[type=submit]{box-shadow:none;cursor:pointer;display:inline-block;overflow-wrap:break-word;text-align:center}.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments-form .comment-form-author label,.wp-block-post-comments-form .comment-form-email label,.wp-block-post-comments-form .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments-form .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments-form .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments-form .comment-reply-title{margin-bottom:0}.wp-block-post-comments-form .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-left:.5em} \ No newline at end of file
diff --git a/wp-includes/blocks/post-content.php b/wp-includes/blocks/post-content.php
index dd84574..25be880 100644
--- a/wp-includes/blocks/post-content.php
+++ b/wp-includes/blocks/post-content.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/post-content` block on the server.
*
+ * @since 5.8.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -63,6 +65,8 @@ function render_block_core_post_content( $attributes, $content, $block ) {
/**
* Registers the `core/post-content` block on the server.
+ *
+ * @since 5.8.0
*/
function register_block_core_post_content() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/post-date.php b/wp-includes/blocks/post-date.php
index b59db80..bcfff02 100644
--- a/wp-includes/blocks/post-date.php
+++ b/wp-includes/blocks/post-date.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/post-date` block on the server.
*
+ * @since 5.8.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -60,6 +62,8 @@ function render_block_core_post_date( $attributes, $content, $block ) {
/**
* Registers the `core/post-date` block on the server.
+ *
+ * @since 5.8.0
*/
function register_block_core_post_date() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/post-excerpt.php b/wp-includes/blocks/post-excerpt.php
index 09d6b6f..c8882b4 100644
--- a/wp-includes/blocks/post-excerpt.php
+++ b/wp-includes/blocks/post-excerpt.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/post-excerpt` block on the server.
*
+ * @since 5.8.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -66,6 +68,8 @@ function render_block_core_post_excerpt( $attributes, $content, $block ) {
/**
* Registers the `core/post-excerpt` block on the server.
+ *
+ * @since 5.8.0
*/
function register_block_core_post_excerpt() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/post-featured-image.php b/wp-includes/blocks/post-featured-image.php
index 9a1fd31..815da4e 100644
--- a/wp-includes/blocks/post-featured-image.php
+++ b/wp-includes/blocks/post-featured-image.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/post-featured-image` block on the server.
*
+ * @since 5.8.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -48,6 +50,13 @@ function render_block_core_post_featured_image( $attributes, $content, $block )
if ( ! empty( $attributes['scale'] ) ) {
$extra_styles .= "object-fit:{$attributes['scale']};";
}
+ if ( ! empty( $attributes['style']['shadow'] ) ) {
+ $shadow_styles = wp_style_engine_get_styles( array( 'shadow' => $attributes['style']['shadow'] ) );
+
+ if ( ! empty( $shadow_styles['css'] ) ) {
+ $extra_styles .= $shadow_styles['css'];
+ }
+ }
if ( ! empty( $extra_styles ) ) {
$attr['style'] = empty( $attr['style'] ) ? $extra_styles : $attr['style'] . $extra_styles;
@@ -125,6 +134,8 @@ function render_block_core_post_featured_image( $attributes, $content, $block )
/**
* Generate markup for the HTML element that will be used for the overlay.
*
+ * @since 6.1.0
+ *
* @param array $attributes Block attributes.
*
* @return string HTML markup in string format.
@@ -191,6 +202,8 @@ function get_block_core_post_featured_image_overlay_element_markup( $attributes
* Generates class names and styles to apply the border support styles for
* the Post Featured Image block.
*
+ * @since 6.1.0
+ *
* @param array $attributes The block attributes.
* @return array The border-related classnames and styles for the block.
*/
@@ -241,6 +254,8 @@ function get_block_core_post_featured_image_border_attributes( $attributes ) {
/**
* Registers the `core/post-featured-image` block on the server.
+ *
+ * @since 5.8.0
*/
function register_block_core_post_featured_image() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/post-featured-image/block.json b/wp-includes/blocks/post-featured-image/block.json
index 75f5bec..078b791 100644
--- a/wp-includes/blocks/post-featured-image/block.json
+++ b/wp-includes/blocks/post-featured-image/block.json
@@ -61,7 +61,6 @@
"supports": {
"align": [ "left", "right", "center", "wide", "full" ],
"color": {
- "__experimentalDuotone": "img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before",
"text": false,
"background": false
},
@@ -69,7 +68,6 @@
"color": true,
"radius": true,
"width": true,
- "__experimentalSelector": "img, .block-editor-media-placeholder, .wp-block-post-featured-image__overlay",
"__experimentalSkipSerialization": true,
"__experimentalDefaultControls": {
"color": true,
@@ -77,6 +75,12 @@
"width": true
}
},
+ "filter": {
+ "duotone": true
+ },
+ "shadow": {
+ "__experimentalSkipSerialization": true
+ },
"html": false,
"spacing": {
"margin": true,
@@ -86,6 +90,13 @@
"clientNavigation": true
}
},
+ "selectors": {
+ "border": ".wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay",
+ "shadow": ".wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder",
+ "filter": {
+ "duotone": ".wp-block-post-featured-image img, .wp-block-post-featured-image .wp-block-post-featured-image__placeholder, .wp-block-post-featured-image .components-placeholder__illustration, .wp-block-post-featured-image .components-placeholder::before"
+ }
+ },
"editorStyle": "wp-block-post-featured-image-editor",
"style": "wp-block-post-featured-image"
}
diff --git a/wp-includes/blocks/post-featured-image/editor-rtl.css b/wp-includes/blocks/post-featured-image/editor-rtl.css
index c6cd467..55fae71 100644
--- a/wp-includes/blocks/post-featured-image/editor-rtl.css
+++ b/wp-includes/blocks/post-featured-image/editor-rtl.css
@@ -23,6 +23,7 @@
display:flex;
height:48px;
justify-content:center;
+ margin:auto;
padding:0;
position:relative;
width:48px;
@@ -73,6 +74,18 @@
opacity:1;
pointer-events:auto;
}
+.wp-block-post-featured-image.is-transient{
+ position:relative;
+}
+.wp-block-post-featured-image.is-transient img{
+ opacity:.3;
+}
+.wp-block-post-featured-image.is-transient .components-spinner{
+ position:absolute;
+ right:50%;
+ top:50%;
+ transform:translate(50%, -50%);
+}
div[data-type="core/post-featured-image"] img{
display:block;
diff --git a/wp-includes/blocks/post-featured-image/editor-rtl.min.css b/wp-includes/blocks/post-featured-image/editor-rtl.min.css
index 0979445..9aa0d90 100644
--- a/wp-includes/blocks/post-featured-image/editor-rtl.min.css
+++ b/wp-includes/blocks/post-featured-image/editor-rtl.min.css
@@ -1 +1 @@
-.wp-block-post-featured-image .block-editor-media-placeholder{-webkit-backdrop-filter:none;backdrop-filter:none;z-index:1}.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{align-items:center;display:flex;justify-content:center;min-height:200px;padding:0}.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image .components-placeholder .components-button,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;padding:0;position:relative;width:48px}.wp-block-post-featured-image .components-placeholder .components-button>svg,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button>svg{color:inherit}.wp-block-post-featured-image .components-placeholder:where(.has-border-color),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where(.has-border-color),.wp-block-post-featured-image img:where(.has-border-color){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-color]),.wp-block-post-featured-image img:where([style*=border-top-color]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-color]),.wp-block-post-featured-image img:where([style*=border-right-color]){border-left-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image img:where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-color]),.wp-block-post-featured-image img:where([style*=border-left-color]){border-right-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-width]),.wp-block-post-featured-image img:where([style*=border-width]){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-width]),.wp-block-post-featured-image img:where([style*=border-top-width]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-width]),.wp-block-post-featured-image img:where([style*=border-right-width]){border-left-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image img:where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-width]),.wp-block-post-featured-image img:where([style*=border-left-width]){border-right-style:solid}.wp-block-post-featured-image[style*=height] .components-placeholder{height:100%;min-height:48px;min-width:48px;width:100%}.wp-block-post-featured-image>a{cursor:default}.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-button,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__instructions,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}div[data-type="core/post-featured-image"] img{display:block;height:auto;max-width:100%} \ No newline at end of file
+.wp-block-post-featured-image .block-editor-media-placeholder{-webkit-backdrop-filter:none;backdrop-filter:none;z-index:1}.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{align-items:center;display:flex;justify-content:center;min-height:200px;padding:0}.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image .components-placeholder .components-button,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;margin:auto;padding:0;position:relative;width:48px}.wp-block-post-featured-image .components-placeholder .components-button>svg,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button>svg{color:inherit}.wp-block-post-featured-image .components-placeholder:where(.has-border-color),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where(.has-border-color),.wp-block-post-featured-image img:where(.has-border-color){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-color]),.wp-block-post-featured-image img:where([style*=border-top-color]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-color]),.wp-block-post-featured-image img:where([style*=border-right-color]){border-left-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image img:where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-color]),.wp-block-post-featured-image img:where([style*=border-left-color]){border-right-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-width]),.wp-block-post-featured-image img:where([style*=border-width]){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-width]),.wp-block-post-featured-image img:where([style*=border-top-width]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-width]),.wp-block-post-featured-image img:where([style*=border-right-width]){border-left-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image img:where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-width]),.wp-block-post-featured-image img:where([style*=border-left-width]){border-right-style:solid}.wp-block-post-featured-image[style*=height] .components-placeholder{height:100%;min-height:48px;min-width:48px;width:100%}.wp-block-post-featured-image>a{cursor:default}.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-button,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__instructions,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.wp-block-post-featured-image.is-transient{position:relative}.wp-block-post-featured-image.is-transient img{opacity:.3}.wp-block-post-featured-image.is-transient .components-spinner{position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}div[data-type="core/post-featured-image"] img{display:block;height:auto;max-width:100%} \ No newline at end of file
diff --git a/wp-includes/blocks/post-featured-image/editor.css b/wp-includes/blocks/post-featured-image/editor.css
index 110aaa0..30f0bcf 100644
--- a/wp-includes/blocks/post-featured-image/editor.css
+++ b/wp-includes/blocks/post-featured-image/editor.css
@@ -23,6 +23,7 @@
display:flex;
height:48px;
justify-content:center;
+ margin:auto;
padding:0;
position:relative;
width:48px;
@@ -73,6 +74,18 @@
opacity:1;
pointer-events:auto;
}
+.wp-block-post-featured-image.is-transient{
+ position:relative;
+}
+.wp-block-post-featured-image.is-transient img{
+ opacity:.3;
+}
+.wp-block-post-featured-image.is-transient .components-spinner{
+ left:50%;
+ position:absolute;
+ top:50%;
+ transform:translate(-50%, -50%);
+}
div[data-type="core/post-featured-image"] img{
display:block;
diff --git a/wp-includes/blocks/post-featured-image/editor.min.css b/wp-includes/blocks/post-featured-image/editor.min.css
index 59f9786..93f8d21 100644
--- a/wp-includes/blocks/post-featured-image/editor.min.css
+++ b/wp-includes/blocks/post-featured-image/editor.min.css
@@ -1 +1 @@
-.wp-block-post-featured-image .block-editor-media-placeholder{-webkit-backdrop-filter:none;backdrop-filter:none;z-index:1}.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{align-items:center;display:flex;justify-content:center;min-height:200px;padding:0}.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image .components-placeholder .components-button,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;padding:0;position:relative;width:48px}.wp-block-post-featured-image .components-placeholder .components-button>svg,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button>svg{color:inherit}.wp-block-post-featured-image .components-placeholder:where(.has-border-color),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where(.has-border-color),.wp-block-post-featured-image img:where(.has-border-color){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-color]),.wp-block-post-featured-image img:where([style*=border-top-color]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-color]),.wp-block-post-featured-image img:where([style*=border-right-color]){border-right-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image img:where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-color]),.wp-block-post-featured-image img:where([style*=border-left-color]){border-left-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-width]),.wp-block-post-featured-image img:where([style*=border-width]){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-width]),.wp-block-post-featured-image img:where([style*=border-top-width]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-width]),.wp-block-post-featured-image img:where([style*=border-right-width]){border-right-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image img:where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-width]),.wp-block-post-featured-image img:where([style*=border-left-width]){border-left-style:solid}.wp-block-post-featured-image[style*=height] .components-placeholder{height:100%;min-height:48px;min-width:48px;width:100%}.wp-block-post-featured-image>a{cursor:default}.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-button,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__instructions,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}div[data-type="core/post-featured-image"] img{display:block;height:auto;max-width:100%} \ No newline at end of file
+.wp-block-post-featured-image .block-editor-media-placeholder{-webkit-backdrop-filter:none;backdrop-filter:none;z-index:1}.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{align-items:center;display:flex;justify-content:center;min-height:200px;padding:0}.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image .components-placeholder .components-button,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;margin:auto;padding:0;position:relative;width:48px}.wp-block-post-featured-image .components-placeholder .components-button>svg,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button>svg{color:inherit}.wp-block-post-featured-image .components-placeholder:where(.has-border-color),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where(.has-border-color),.wp-block-post-featured-image img:where(.has-border-color){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-color]),.wp-block-post-featured-image img:where([style*=border-top-color]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-color]),.wp-block-post-featured-image img:where([style*=border-right-color]){border-right-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image img:where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-color]),.wp-block-post-featured-image img:where([style*=border-left-color]){border-left-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-width]),.wp-block-post-featured-image img:where([style*=border-width]){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-width]),.wp-block-post-featured-image img:where([style*=border-top-width]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-width]),.wp-block-post-featured-image img:where([style*=border-right-width]){border-right-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image img:where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-width]),.wp-block-post-featured-image img:where([style*=border-left-width]){border-left-style:solid}.wp-block-post-featured-image[style*=height] .components-placeholder{height:100%;min-height:48px;min-width:48px;width:100%}.wp-block-post-featured-image>a{cursor:default}.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-button,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__instructions,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.wp-block-post-featured-image.is-transient{position:relative}.wp-block-post-featured-image.is-transient img{opacity:.3}.wp-block-post-featured-image.is-transient .components-spinner{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}div[data-type="core/post-featured-image"] img{display:block;height:auto;max-width:100%} \ No newline at end of file
diff --git a/wp-includes/blocks/post-navigation-link.php b/wp-includes/blocks/post-navigation-link.php
index 5bbc87e..8162b74 100644
--- a/wp-includes/blocks/post-navigation-link.php
+++ b/wp-includes/blocks/post-navigation-link.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/post-navigation-link` block on the server.
*
+ * @since 5.9.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
*
@@ -123,6 +125,8 @@ function render_block_core_post_navigation_link( $attributes, $content ) {
/**
* Registers the `core/post-navigation-link` block on the server.
+ *
+ * @since 5.9.0
*/
function register_block_core_post_navigation_link() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/post-template.php b/wp-includes/blocks/post-template.php
index 2c7502c..9126355 100644
--- a/wp-includes/blocks/post-template.php
+++ b/wp-includes/blocks/post-template.php
@@ -8,6 +8,8 @@
/**
* Determines whether a block list contains a block that uses the featured image.
*
+ * @since 6.0.0
+ *
* @param WP_Block_List $inner_blocks Inner block instance.
*
* @return bool Whether the block list contains a block that uses the featured image.
@@ -36,6 +38,8 @@ function block_core_post_template_uses_featured_image( $inner_blocks ) {
*
* @since 6.3.0 Changed render_block_context priority to `1`.
*
+ * @global WP_Query $wp_query WordPress Query object.
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -143,6 +147,8 @@ function render_block_core_post_template( $attributes, $content, $block ) {
/**
* Registers the `core/post-template` block on the server.
+ *
+ * @since 5.8.0
*/
function register_block_core_post_template() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/post-template/style-rtl.css b/wp-includes/blocks/post-template/style-rtl.css
index fe211d9..024a235 100644
--- a/wp-includes/blocks/post-template/style-rtl.css
+++ b/wp-includes/blocks/post-template/style-rtl.css
@@ -5,9 +5,6 @@
max-width:100%;
padding:0;
}
-.wp-block-post-template.wp-block-post-template{
- background:none;
-}
.wp-block-post-template.is-flex-container{
display:flex;
flex-direction:row;
diff --git a/wp-includes/blocks/post-template/style-rtl.min.css b/wp-includes/blocks/post-template/style-rtl.min.css
index d4e9d48..cbb46f7 100644
--- a/wp-includes/blocks/post-template/style-rtl.min.css
+++ b/wp-includes/blocks/post-template/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-post-template{list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}.wp-block-post-template.wp-block-post-template{background:none}.wp-block-post-template.is-flex-container{display:flex;flex-direction:row;flex-wrap:wrap;gap:1.25em}.wp-block-post-template.is-flex-container>li{margin:0;width:100%}@media (min-width:600px){.wp-block-post-template.is-flex-container.is-flex-container.columns-2>li{width:calc(50% - .625em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-3>li{width:calc(33.33333% - .83333em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-4>li{width:calc(25% - .9375em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-5>li{width:calc(20% - 1em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-6>li{width:calc(16.66667% - 1.04167em)}}@media (max-width:600px){.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid{grid-template-columns:1fr}}.wp-block-post-template-is-layout-constrained>li>.alignright,.wp-block-post-template-is-layout-flow>li>.alignright{float:left;margin-inline-end:0;margin-inline-start:2em}.wp-block-post-template-is-layout-constrained>li>.alignleft,.wp-block-post-template-is-layout-flow>li>.alignleft{float:right;margin-inline-end:2em;margin-inline-start:0}.wp-block-post-template-is-layout-constrained>li>.aligncenter,.wp-block-post-template-is-layout-flow>li>.aligncenter{margin-inline-end:auto;margin-inline-start:auto} \ No newline at end of file
+.wp-block-post-template{list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}.wp-block-post-template.is-flex-container{display:flex;flex-direction:row;flex-wrap:wrap;gap:1.25em}.wp-block-post-template.is-flex-container>li{margin:0;width:100%}@media (min-width:600px){.wp-block-post-template.is-flex-container.is-flex-container.columns-2>li{width:calc(50% - .625em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-3>li{width:calc(33.33333% - .83333em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-4>li{width:calc(25% - .9375em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-5>li{width:calc(20% - 1em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-6>li{width:calc(16.66667% - 1.04167em)}}@media (max-width:600px){.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid{grid-template-columns:1fr}}.wp-block-post-template-is-layout-constrained>li>.alignright,.wp-block-post-template-is-layout-flow>li>.alignright{float:left;margin-inline-end:0;margin-inline-start:2em}.wp-block-post-template-is-layout-constrained>li>.alignleft,.wp-block-post-template-is-layout-flow>li>.alignleft{float:right;margin-inline-end:2em;margin-inline-start:0}.wp-block-post-template-is-layout-constrained>li>.aligncenter,.wp-block-post-template-is-layout-flow>li>.aligncenter{margin-inline-end:auto;margin-inline-start:auto} \ No newline at end of file
diff --git a/wp-includes/blocks/post-template/style.css b/wp-includes/blocks/post-template/style.css
index 49af81d..9240a8e 100644
--- a/wp-includes/blocks/post-template/style.css
+++ b/wp-includes/blocks/post-template/style.css
@@ -5,9 +5,6 @@
max-width:100%;
padding:0;
}
-.wp-block-post-template.wp-block-post-template{
- background:none;
-}
.wp-block-post-template.is-flex-container{
display:flex;
flex-direction:row;
diff --git a/wp-includes/blocks/post-template/style.min.css b/wp-includes/blocks/post-template/style.min.css
index b6746a1..85da02c 100644
--- a/wp-includes/blocks/post-template/style.min.css
+++ b/wp-includes/blocks/post-template/style.min.css
@@ -1 +1 @@
-.wp-block-post-template{list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}.wp-block-post-template.wp-block-post-template{background:none}.wp-block-post-template.is-flex-container{display:flex;flex-direction:row;flex-wrap:wrap;gap:1.25em}.wp-block-post-template.is-flex-container>li{margin:0;width:100%}@media (min-width:600px){.wp-block-post-template.is-flex-container.is-flex-container.columns-2>li{width:calc(50% - .625em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-3>li{width:calc(33.33333% - .83333em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-4>li{width:calc(25% - .9375em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-5>li{width:calc(20% - 1em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-6>li{width:calc(16.66667% - 1.04167em)}}@media (max-width:600px){.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid{grid-template-columns:1fr}}.wp-block-post-template-is-layout-constrained>li>.alignright,.wp-block-post-template-is-layout-flow>li>.alignright{float:right;margin-inline-end:0;margin-inline-start:2em}.wp-block-post-template-is-layout-constrained>li>.alignleft,.wp-block-post-template-is-layout-flow>li>.alignleft{float:left;margin-inline-end:2em;margin-inline-start:0}.wp-block-post-template-is-layout-constrained>li>.aligncenter,.wp-block-post-template-is-layout-flow>li>.aligncenter{margin-inline-end:auto;margin-inline-start:auto} \ No newline at end of file
+.wp-block-post-template{list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}.wp-block-post-template.is-flex-container{display:flex;flex-direction:row;flex-wrap:wrap;gap:1.25em}.wp-block-post-template.is-flex-container>li{margin:0;width:100%}@media (min-width:600px){.wp-block-post-template.is-flex-container.is-flex-container.columns-2>li{width:calc(50% - .625em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-3>li{width:calc(33.33333% - .83333em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-4>li{width:calc(25% - .9375em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-5>li{width:calc(20% - 1em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-6>li{width:calc(16.66667% - 1.04167em)}}@media (max-width:600px){.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid{grid-template-columns:1fr}}.wp-block-post-template-is-layout-constrained>li>.alignright,.wp-block-post-template-is-layout-flow>li>.alignright{float:right;margin-inline-end:0;margin-inline-start:2em}.wp-block-post-template-is-layout-constrained>li>.alignleft,.wp-block-post-template-is-layout-flow>li>.alignleft{float:left;margin-inline-end:2em;margin-inline-start:0}.wp-block-post-template-is-layout-constrained>li>.aligncenter,.wp-block-post-template-is-layout-flow>li>.aligncenter{margin-inline-end:auto;margin-inline-start:auto} \ No newline at end of file
diff --git a/wp-includes/blocks/post-terms.php b/wp-includes/blocks/post-terms.php
index c919db9..69d7b04 100644
--- a/wp-includes/blocks/post-terms.php
+++ b/wp-includes/blocks/post-terms.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/post-terms` block on the server.
*
+ * @since 5.8.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -61,6 +63,8 @@ function render_block_core_post_terms( $attributes, $content, $block ) {
/**
* Returns the available variations for the `core/post-terms` block.
*
+ * @since 6.5.0
+ *
* @return array The available variations for the block.
*/
function block_core_post_terms_build_variations() {
@@ -110,6 +114,8 @@ function block_core_post_terms_build_variations() {
/**
* Registers the `core/post-terms` block on the server.
+ *
+ * @since 5.8.0
*/
function register_block_core_post_terms() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/post-title.php b/wp-includes/blocks/post-title.php
index d0eef85..ed27f2e 100644
--- a/wp-includes/blocks/post-title.php
+++ b/wp-includes/blocks/post-title.php
@@ -33,7 +33,7 @@ function render_block_core_post_title( $attributes, $content, $block ) {
$tag_name = 'h2';
if ( isset( $attributes['level'] ) ) {
- $tag_name = 'h' . $attributes['level'];
+ $tag_name = 0 === $attributes['level'] ? 'p' : 'h' . (int) $attributes['level'];
}
if ( isset( $attributes['isLink'] ) && $attributes['isLink'] ) {
@@ -60,6 +60,8 @@ function render_block_core_post_title( $attributes, $content, $block ) {
/**
* Registers the `core/post-title` block on the server.
+ *
+ * @since 5.8.0
*/
function register_block_core_post_title() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/pullquote/style-rtl.css b/wp-includes/blocks/pullquote/style-rtl.css
index 7aad4a0..f43e894 100644
--- a/wp-includes/blocks/pullquote/style-rtl.css
+++ b/wp-includes/blocks/pullquote/style-rtl.css
@@ -1,5 +1,6 @@
.wp-block-pullquote{
box-sizing:border-box;
+ margin:0 0 1em;
overflow-wrap:break-word;
padding:4em 0;
text-align:center;
@@ -26,10 +27,6 @@
color:inherit;
}
-:where(.wp-block-pullquote){
- margin:0 0 1em;
-}
-
.wp-block-pullquote.has-text-align-left blockquote{
text-align:right;
}
diff --git a/wp-includes/blocks/pullquote/style-rtl.min.css b/wp-includes/blocks/pullquote/style-rtl.min.css
index e54146c..6fd6764 100644
--- a/wp-includes/blocks/pullquote/style-rtl.min.css
+++ b/wp-includes/blocks/pullquote/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-pullquote{box-sizing:border-box;overflow-wrap:break-word;padding:4em 0;text-align:center}.wp-block-pullquote blockquote,.wp-block-pullquote cite,.wp-block-pullquote p{color:inherit}.wp-block-pullquote blockquote{margin:0}.wp-block-pullquote p{margin-top:0}.wp-block-pullquote p:last-child{margin-bottom:0}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:420px}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}:where(.wp-block-pullquote){margin:0 0 1em}.wp-block-pullquote.has-text-align-left blockquote{text-align:right}.wp-block-pullquote.has-text-align-right blockquote{text-align:left}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:2em;margin-bottom:0;margin-top:0}.wp-block-pullquote.is-style-solid-color blockquote cite{font-style:normal;text-transform:none}.wp-block-pullquote cite{color:inherit} \ No newline at end of file
+.wp-block-pullquote{box-sizing:border-box;margin:0 0 1em;overflow-wrap:break-word;padding:4em 0;text-align:center}.wp-block-pullquote blockquote,.wp-block-pullquote cite,.wp-block-pullquote p{color:inherit}.wp-block-pullquote blockquote{margin:0}.wp-block-pullquote p{margin-top:0}.wp-block-pullquote p:last-child{margin-bottom:0}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:420px}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote.has-text-align-left blockquote{text-align:right}.wp-block-pullquote.has-text-align-right blockquote{text-align:left}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:2em;margin-bottom:0;margin-top:0}.wp-block-pullquote.is-style-solid-color blockquote cite{font-style:normal;text-transform:none}.wp-block-pullquote cite{color:inherit} \ No newline at end of file
diff --git a/wp-includes/blocks/pullquote/style.css b/wp-includes/blocks/pullquote/style.css
index dfcec33..3432841 100644
--- a/wp-includes/blocks/pullquote/style.css
+++ b/wp-includes/blocks/pullquote/style.css
@@ -1,5 +1,6 @@
.wp-block-pullquote{
box-sizing:border-box;
+ margin:0 0 1em;
overflow-wrap:break-word;
padding:4em 0;
text-align:center;
@@ -26,10 +27,6 @@
color:inherit;
}
-:where(.wp-block-pullquote){
- margin:0 0 1em;
-}
-
.wp-block-pullquote.has-text-align-left blockquote{
text-align:left;
}
diff --git a/wp-includes/blocks/pullquote/style.min.css b/wp-includes/blocks/pullquote/style.min.css
index 506b1e9..4388536 100644
--- a/wp-includes/blocks/pullquote/style.min.css
+++ b/wp-includes/blocks/pullquote/style.min.css
@@ -1 +1 @@
-.wp-block-pullquote{box-sizing:border-box;overflow-wrap:break-word;padding:4em 0;text-align:center}.wp-block-pullquote blockquote,.wp-block-pullquote cite,.wp-block-pullquote p{color:inherit}.wp-block-pullquote blockquote{margin:0}.wp-block-pullquote p{margin-top:0}.wp-block-pullquote p:last-child{margin-bottom:0}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:420px}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}:where(.wp-block-pullquote){margin:0 0 1em}.wp-block-pullquote.has-text-align-left blockquote{text-align:left}.wp-block-pullquote.has-text-align-right blockquote{text-align:right}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:2em;margin-bottom:0;margin-top:0}.wp-block-pullquote.is-style-solid-color blockquote cite{font-style:normal;text-transform:none}.wp-block-pullquote cite{color:inherit} \ No newline at end of file
+.wp-block-pullquote{box-sizing:border-box;margin:0 0 1em;overflow-wrap:break-word;padding:4em 0;text-align:center}.wp-block-pullquote blockquote,.wp-block-pullquote cite,.wp-block-pullquote p{color:inherit}.wp-block-pullquote blockquote{margin:0}.wp-block-pullquote p{margin-top:0}.wp-block-pullquote p:last-child{margin-bottom:0}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:420px}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote.has-text-align-left blockquote{text-align:left}.wp-block-pullquote.has-text-align-right blockquote{text-align:right}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:2em;margin-bottom:0;margin-top:0}.wp-block-pullquote.is-style-solid-color blockquote cite{font-style:normal;text-transform:none}.wp-block-pullquote cite{color:inherit} \ No newline at end of file
diff --git a/wp-includes/blocks/query-no-results.php b/wp-includes/blocks/query-no-results.php
index a6f4bd1..34d6b32 100644
--- a/wp-includes/blocks/query-no-results.php
+++ b/wp-includes/blocks/query-no-results.php
@@ -8,6 +8,10 @@
/**
* Renders the `core/query-no-results` block on the server.
*
+ * @since 6.0.0
+ *
+ * @global WP_Query $wp_query WordPress Query object.
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -47,6 +51,8 @@ function render_block_core_query_no_results( $attributes, $content, $block ) {
/**
* Registers the `core/query-no-results` block on the server.
+ *
+ * @since 6.0.0
*/
function register_block_core_query_no_results() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/query-pagination-next.php b/wp-includes/blocks/query-pagination-next.php
index ca134f6..3b5be47 100644
--- a/wp-includes/blocks/query-pagination-next.php
+++ b/wp-includes/blocks/query-pagination-next.php
@@ -8,6 +8,10 @@
/**
* Renders the `core/query-pagination-next` block on the server.
*
+ * @since 5.8.0
+ *
+ * @global WP_Query $wp_query WordPress Query object.
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -73,7 +77,7 @@ function render_block_core_query_pagination_next( $attributes, $content, $block
) ) {
$p->set_attribute( 'data-wp-key', 'query-pagination-next' );
$p->set_attribute( 'data-wp-on--click', 'core/query::actions.navigate' );
- $p->set_attribute( 'data-wp-on--mouseenter', 'core/query::actions.prefetch' );
+ $p->set_attribute( 'data-wp-on-async--mouseenter', 'core/query::actions.prefetch' );
$p->set_attribute( 'data-wp-watch', 'core/query::callbacks.prefetch' );
$content = $p->get_updated_html();
}
@@ -84,6 +88,8 @@ function render_block_core_query_pagination_next( $attributes, $content, $block
/**
* Registers the `core/query-pagination-next` block on the server.
+ *
+ * @since 5.8.0
*/
function register_block_core_query_pagination_next() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/query-pagination-numbers.php b/wp-includes/blocks/query-pagination-numbers.php
index e6f8b46..fddf286 100644
--- a/wp-includes/blocks/query-pagination-numbers.php
+++ b/wp-includes/blocks/query-pagination-numbers.php
@@ -8,6 +8,10 @@
/**
* Renders the `core/query-pagination-numbers` block on the server.
*
+ * @since 5.8.0
+ *
+ * @global WP_Query $wp_query WordPress Query object.
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -115,6 +119,8 @@ function render_block_core_query_pagination_numbers( $attributes, $content, $blo
/**
* Registers the `core/query-pagination-numbers` block on the server.
+ *
+ * @since 5.8.0
*/
function register_block_core_query_pagination_numbers() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/query-pagination-previous.php b/wp-includes/blocks/query-pagination-previous.php
index b49130a..1592f0a 100644
--- a/wp-includes/blocks/query-pagination-previous.php
+++ b/wp-includes/blocks/query-pagination-previous.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/query-pagination-previous` block on the server.
*
+ * @since 5.8.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -61,7 +63,7 @@ function render_block_core_query_pagination_previous( $attributes, $content, $bl
) ) {
$p->set_attribute( 'data-wp-key', 'query-pagination-previous' );
$p->set_attribute( 'data-wp-on--click', 'core/query::actions.navigate' );
- $p->set_attribute( 'data-wp-on--mouseenter', 'core/query::actions.prefetch' );
+ $p->set_attribute( 'data-wp-on-async--mouseenter', 'core/query::actions.prefetch' );
$p->set_attribute( 'data-wp-watch', 'core/query::callbacks.prefetch' );
$content = $p->get_updated_html();
}
@@ -72,6 +74,8 @@ function render_block_core_query_pagination_previous( $attributes, $content, $bl
/**
* Registers the `core/query-pagination-previous` block on the server.
+ *
+ * @since 5.8.0
*/
function register_block_core_query_pagination_previous() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/query-pagination.php b/wp-includes/blocks/query-pagination.php
index 9b7289e..acafe96 100644
--- a/wp-includes/blocks/query-pagination.php
+++ b/wp-includes/blocks/query-pagination.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/query-pagination` block on the server.
*
+ * @since 5.9.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
*
@@ -35,6 +37,8 @@ function render_block_core_query_pagination( $attributes, $content ) {
/**
* Registers the `core/query-pagination` block on the server.
+ *
+ * @since 5.8.0
*/
function register_block_core_query_pagination() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/query-title.php b/wp-includes/blocks/query-title.php
index 29793e5..88a9455 100644
--- a/wp-includes/blocks/query-title.php
+++ b/wp-includes/blocks/query-title.php
@@ -10,6 +10,8 @@
* For now it only supports Archive title,
* using queried object information
*
+ * @since 5.8.0
+ *
* @param array $attributes Block attributes.
*
* @return string Returns the query title based on the queried object.
@@ -60,6 +62,8 @@ function render_block_core_query_title( $attributes ) {
/**
* Registers the `core/query-title` block on the server.
+ *
+ * @since 5.8.0
*/
function register_block_core_query_title() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/query.php b/wp-includes/blocks/query.php
index b6c34eb..6cc57dc 100644
--- a/wp-includes/blocks/query.php
+++ b/wp-includes/blocks/query.php
@@ -51,8 +51,8 @@ function render_block_core_query( $attributes, $content, $block ) {
// Add the necessary directives.
$p->set_attribute( 'data-wp-interactive', 'core/query' );
$p->set_attribute( 'data-wp-router-region', 'query-' . $attributes['queryId'] );
- $p->set_attribute( 'data-wp-init', 'callbacks.setQueryRef' );
$p->set_attribute( 'data-wp-context', '{}' );
+ $p->set_attribute( 'data-wp-key', $attributes['queryId'] );
$content = $p->get_updated_html();
}
}
@@ -77,6 +77,8 @@ function render_block_core_query( $attributes, $content, $block ) {
/**
* Registers the `core/query` block on the server.
+ *
+ * @since 5.8.0
*/
function register_block_core_query() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/query/editor-rtl.css b/wp-includes/blocks/query/editor-rtl.css
index a185b56..c8c3c92 100644
--- a/wp-includes/blocks/query/editor-rtl.css
+++ b/wp-includes/blocks/query/editor-rtl.css
@@ -32,10 +32,11 @@
}
.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{
background:#fff;
- margin-bottom:2px;
+ margin-bottom:-4px;
padding:16px 0;
position:sticky;
top:0;
+ transform:translateY(-4px);
z-index:2;
}
diff --git a/wp-includes/blocks/query/editor-rtl.min.css b/wp-includes/blocks/query/editor-rtl.min.css
index 83ec92e..163c416 100644
--- a/wp-includes/blocks/query/editor-rtl.min.css
+++ b/wp-includes/blocks/query/editor-rtl.min.css
@@ -1 +1 @@
-.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 52px 16px 16px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:8px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:2px;padding:16px 0;position:sticky;top:0;z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.wp-block-query__enhanced-pagination-notice{margin:0} \ No newline at end of file
+.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 52px 16px 16px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:8px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:-4px;padding:16px 0;position:sticky;top:0;transform:translateY(-4px);z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.wp-block-query__enhanced-pagination-notice{margin:0} \ No newline at end of file
diff --git a/wp-includes/blocks/query/editor.css b/wp-includes/blocks/query/editor.css
index 9e5af92..57a9307 100644
--- a/wp-includes/blocks/query/editor.css
+++ b/wp-includes/blocks/query/editor.css
@@ -32,10 +32,11 @@
}
.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{
background:#fff;
- margin-bottom:2px;
+ margin-bottom:-4px;
padding:16px 0;
position:sticky;
top:0;
+ transform:translateY(-4px);
z-index:2;
}
diff --git a/wp-includes/blocks/query/editor.min.css b/wp-includes/blocks/query/editor.min.css
index 7fa4668..04f45f3 100644
--- a/wp-includes/blocks/query/editor.min.css
+++ b/wp-includes/blocks/query/editor.min.css
@@ -1 +1 @@
-.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 16px 16px 52px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:8px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:2px;padding:16px 0;position:sticky;top:0;z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.wp-block-query__enhanced-pagination-notice{margin:0} \ No newline at end of file
+.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 16px 16px 52px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:8px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:-4px;padding:16px 0;position:sticky;top:0;transform:translateY(-4px);z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.wp-block-query__enhanced-pagination-notice{margin:0} \ No newline at end of file
diff --git a/wp-includes/blocks/quote/block.json b/wp-includes/blocks/quote/block.json
index b66e64b..7ad713a 100644
--- a/wp-includes/blocks/quote/block.json
+++ b/wp-includes/blocks/quote/block.json
@@ -22,7 +22,7 @@
"selector": "cite",
"__experimentalRole": "content"
},
- "align": {
+ "textAlign": {
"type": "string"
}
},
diff --git a/wp-includes/blocks/read-more.php b/wp-includes/blocks/read-more.php
index c59dd2b..c01a0a3 100644
--- a/wp-includes/blocks/read-more.php
+++ b/wp-includes/blocks/read-more.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/read-more` block on the server.
*
+ * @since 6.0.0
+ *
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
@@ -47,6 +49,8 @@ function render_block_core_read_more( $attributes, $content, $block ) {
/**
* Registers the `core/read-more` block on the server.
+ *
+ * @since 6.0.0
*/
function register_block_core_read_more() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/require-dynamic-blocks.php b/wp-includes/blocks/require-dynamic-blocks.php
index 229a031..47c39e2 100644
--- a/wp-includes/blocks/require-dynamic-blocks.php
+++ b/wp-includes/blocks/require-dynamic-blocks.php
@@ -5,6 +5,7 @@
require_once ABSPATH . WPINC . '/blocks/archives.php';
require_once ABSPATH . WPINC . '/blocks/avatar.php';
require_once ABSPATH . WPINC . '/blocks/block.php';
+require_once ABSPATH . WPINC . '/blocks/button.php';
require_once ABSPATH . WPINC . '/blocks/calendar.php';
require_once ABSPATH . WPINC . '/blocks/categories.php';
require_once ABSPATH . WPINC . '/blocks/comment-author-name.php';
@@ -28,7 +29,9 @@ require_once ABSPATH . WPINC . '/blocks/home-link.php';
require_once ABSPATH . WPINC . '/blocks/image.php';
require_once ABSPATH . WPINC . '/blocks/latest-comments.php';
require_once ABSPATH . WPINC . '/blocks/latest-posts.php';
+require_once ABSPATH . WPINC . '/blocks/list.php';
require_once ABSPATH . WPINC . '/blocks/loginout.php';
+require_once ABSPATH . WPINC . '/blocks/media-text.php';
require_once ABSPATH . WPINC . '/blocks/navigation.php';
require_once ABSPATH . WPINC . '/blocks/navigation-link.php';
require_once ABSPATH . WPINC . '/blocks/navigation-submenu.php';
diff --git a/wp-includes/blocks/require-static-blocks.php b/wp-includes/blocks/require-static-blocks.php
index 69f6d68..7f83010 100644
--- a/wp-includes/blocks/require-static-blocks.php
+++ b/wp-includes/blocks/require-static-blocks.php
@@ -4,7 +4,6 @@
// Returns folder names for static blocks necessary for core blocks registration.
return array(
'audio',
- 'button',
'buttons',
'code',
'column',
@@ -14,9 +13,7 @@ return array(
'freeform',
'group',
'html',
- 'list',
'list-item',
- 'media-text',
'missing',
'more',
'nextpage',
diff --git a/wp-includes/blocks/rss.php b/wp-includes/blocks/rss.php
index 91cdab3..3e8231d 100644
--- a/wp-includes/blocks/rss.php
+++ b/wp-includes/blocks/rss.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/rss` block on server.
*
+ * @since 5.2.0
+ *
* @param array $attributes The block attributes.
*
* @return string Returns the block content with received rss items.
@@ -107,6 +109,8 @@ function render_block_core_rss( $attributes ) {
/**
* Registers the `core/rss` block on server.
+ *
+ * @since 5.2.0
*/
function register_block_core_rss() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/rss/editor-rtl.css b/wp-includes/blocks/rss/editor-rtl.css
index 43815b9..617afc3 100644
--- a/wp-includes/blocks/rss/editor-rtl.css
+++ b/wp-includes/blocks/rss/editor-rtl.css
@@ -2,15 +2,6 @@
display:inline;
}
-.wp-block-rss__placeholder-form>*{
- margin-bottom:8px;
-}
-@media (min-width:782px){
- .wp-block-rss__placeholder-form>*{
- margin-bottom:0;
- }
-}
.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{
- flex:1;
- min-width:80%;
+ flex:1 1 auto;
} \ No newline at end of file
diff --git a/wp-includes/blocks/rss/editor-rtl.min.css b/wp-includes/blocks/rss/editor-rtl.min.css
index 25774d0..464f52f 100644
--- a/wp-includes/blocks/rss/editor-rtl.min.css
+++ b/wp-includes/blocks/rss/editor-rtl.min.css
@@ -1 +1 @@
-.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{flex:1;min-width:80%} \ No newline at end of file
+.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{flex:1 1 auto} \ No newline at end of file
diff --git a/wp-includes/blocks/rss/editor.css b/wp-includes/blocks/rss/editor.css
index 43815b9..617afc3 100644
--- a/wp-includes/blocks/rss/editor.css
+++ b/wp-includes/blocks/rss/editor.css
@@ -2,15 +2,6 @@
display:inline;
}
-.wp-block-rss__placeholder-form>*{
- margin-bottom:8px;
-}
-@media (min-width:782px){
- .wp-block-rss__placeholder-form>*{
- margin-bottom:0;
- }
-}
.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{
- flex:1;
- min-width:80%;
+ flex:1 1 auto;
} \ No newline at end of file
diff --git a/wp-includes/blocks/rss/editor.min.css b/wp-includes/blocks/rss/editor.min.css
index 25774d0..464f52f 100644
--- a/wp-includes/blocks/rss/editor.min.css
+++ b/wp-includes/blocks/rss/editor.min.css
@@ -1 +1 @@
-.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{flex:1;min-width:80%} \ No newline at end of file
+.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{flex:1 1 auto} \ No newline at end of file
diff --git a/wp-includes/blocks/search.php b/wp-includes/blocks/search.php
index ca8c70e..39b8591 100644
--- a/wp-includes/blocks/search.php
+++ b/wp-includes/blocks/search.php
@@ -191,8 +191,8 @@ function render_block_core_search( $attributes ) {
data-wp-interactive="core/search"'
. $form_context .
'data-wp-class--wp-block-search__searchfield-hidden="!context.isSearchInputVisible"
- data-wp-on--keydown="actions.handleSearchKeydown"
- data-wp-on--focusout="actions.handleSearchFocusout"
+ data-wp-on-async--keydown="actions.handleSearchKeydown"
+ data-wp-on-async--focusout="actions.handleSearchFocusout"
';
}
@@ -207,6 +207,8 @@ function render_block_core_search( $attributes ) {
/**
* Registers the `core/search` block on the server.
+ *
+ * @since 5.2.0
*/
function register_block_core_search() {
register_block_type_from_metadata(
@@ -221,6 +223,8 @@ add_action( 'init', 'register_block_core_search' );
/**
* Builds the correct top level classnames for the 'core/search' block.
*
+ * @since 5.6.0
+ *
* @param array $attributes The block attributes.
*
* @return string The classnames used in the block.
@@ -265,6 +269,8 @@ function classnames_for_block_core_search( $attributes ) {
* or not, the generated rule is injected into the appropriate collection of
* styles for later application in the block's markup.
*
+ * @since 6.1.0
+ *
* @param array $attributes The block attributes.
* @param string $property Border property to generate rule for e.g. width or color.
* @param string $side Optional side border. The dictates the value retrieved and final CSS property.
@@ -310,6 +316,8 @@ function apply_block_core_search_border_style( $attributes, $property, $side, &$
* injects rules into the provided wrapper, button and input style arrays for
* uniform "flat" borders or those with individual sides configured.
*
+ * @since 6.1.0
+ *
* @param array $attributes The block attributes.
* @param string $property Border property to generate rule for e.g. width or color.
* @param array $wrapper_styles Current collection of wrapper styles.
@@ -331,6 +339,8 @@ function apply_block_core_search_border_styles( $attributes, $property, &$wrappe
* inner input or button and a second for the inner wrapper should the block
* be positioning the button "inside".
*
+ * @since 5.8.0
+ *
* @param array $attributes The block attributes.
*
* @return array Style HTML attribute.
@@ -457,7 +467,9 @@ function styles_for_block_core_search( $attributes ) {
}
/**
- * Returns typography classnames depending on whether there are named font sizes/families .
+ * Returns typography classnames depending on whether there are named font sizes/families.
+ *
+ * @since 6.1.0
*
* @param array $attributes The block attributes.
*
@@ -483,6 +495,8 @@ function get_typography_classes_for_block_core_search( $attributes ) {
* Returns typography styles to be included in an HTML style tag.
* This excludes text-decoration, which is applied only to the label and button elements of the search block.
*
+ * @since 6.1.0
+ *
* @param array $attributes The block attributes.
*
* @return string A string of typography CSS declarations.
@@ -533,6 +547,8 @@ function get_typography_styles_for_block_core_search( $attributes ) {
/**
* Returns border color classnames depending on whether there are named or custom border colors.
*
+ * @since 5.9.0
+ *
* @param array $attributes The block attributes.
*
* @return string The border color classnames to be applied to the block elements.
@@ -556,6 +572,8 @@ function get_border_color_classes_for_block_core_search( $attributes ) {
/**
* Returns color classnames depending on whether there are named or custom text and background colors.
*
+ * @since 5.9.0
+ *
* @param array $attributes The block attributes.
*
* @return string The color classnames to be applied to the block elements.
diff --git a/wp-includes/blocks/search/style-rtl.css b/wp-includes/blocks/search/style-rtl.css
index 755681c..9c23acb 100644
--- a/wp-includes/blocks/search/style-rtl.css
+++ b/wp-includes/blocks/search/style-rtl.css
@@ -31,8 +31,7 @@
}
.wp-block-search__input{
- -webkit-appearance:initial;
- appearance:none;
+ appearance:none;
border:1px solid #949494;
flex-grow:1;
margin-left:0;
@@ -73,6 +72,16 @@
width:0 !important;
}
+:where(.wp-block-search__input){
+ font-family:inherit;
+ font-size:inherit;
+ font-style:inherit;
+ font-weight:inherit;
+ letter-spacing:inherit;
+ line-height:inherit;
+ text-transform:inherit;
+}
+
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){
border:1px solid #949494;
box-sizing:border-box;
diff --git a/wp-includes/blocks/search/style-rtl.min.css b/wp-includes/blocks/search/style-rtl.min.css
index 19f9266..d4b4ae7 100644
--- a/wp-includes/blocks/search/style-rtl.min.css
+++ b/wp-includes/blocks/search/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-search__button{margin-right:10px;word-break:normal}.wp-block-search__button.has-icon{line-height:0}.wp-block-search__button svg{height:1.25em;min-height:24px;min-width:24px;width:1.25em;fill:currentColor;vertical-align:text-bottom}:where(.wp-block-search__button){border:1px solid #ccc;padding:6px 10px}.wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search__label{width:100%}.wp-block-search__input{-webkit-appearance:initial;appearance:none;border:1px solid #949494;flex-grow:1;margin-left:0;margin-right:0;min-width:3rem;padding:8px;text-decoration:unset!important}.wp-block-search.wp-block-search__button-only .wp-block-search__button{flex-shrink:0;margin-right:0;max-width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__button[aria-expanded=true]{max-width:calc(100% - 100px)}.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{min-width:0!important;transition-property:width}.wp-block-search.wp-block-search__button-only .wp-block-search__input{flex-basis:100%;transition-duration:.3s}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden,.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{overflow:hidden}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__input{border-left-width:0!important;border-right-width:0!important;flex-basis:0;flex-grow:0;margin:0;min-width:0!important;padding-left:0!important;padding-right:0!important;width:0!important}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){border:1px solid #949494;box-sizing:border-box;padding:4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input{border:none;border-radius:0;padding:0 4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus{outline:none}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button){padding:4px 8px}.wp-block-search.aligncenter .wp-block-search__inside-wrapper{margin:auto}.wp-block[data-align=right] .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{float:left} \ No newline at end of file
+.wp-block-search__button{margin-right:10px;word-break:normal}.wp-block-search__button.has-icon{line-height:0}.wp-block-search__button svg{height:1.25em;min-height:24px;min-width:24px;width:1.25em;fill:currentColor;vertical-align:text-bottom}:where(.wp-block-search__button){border:1px solid #ccc;padding:6px 10px}.wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search__label{width:100%}.wp-block-search__input{appearance:none;border:1px solid #949494;flex-grow:1;margin-left:0;margin-right:0;min-width:3rem;padding:8px;text-decoration:unset!important}.wp-block-search.wp-block-search__button-only .wp-block-search__button{flex-shrink:0;margin-right:0;max-width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__button[aria-expanded=true]{max-width:calc(100% - 100px)}.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{min-width:0!important;transition-property:width}.wp-block-search.wp-block-search__button-only .wp-block-search__input{flex-basis:100%;transition-duration:.3s}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden,.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{overflow:hidden}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__input{border-left-width:0!important;border-right-width:0!important;flex-basis:0;flex-grow:0;margin:0;min-width:0!important;padding-left:0!important;padding-right:0!important;width:0!important}:where(.wp-block-search__input){font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-transform:inherit}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){border:1px solid #949494;box-sizing:border-box;padding:4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input{border:none;border-radius:0;padding:0 4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus{outline:none}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button){padding:4px 8px}.wp-block-search.aligncenter .wp-block-search__inside-wrapper{margin:auto}.wp-block[data-align=right] .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{float:left} \ No newline at end of file
diff --git a/wp-includes/blocks/search/style.css b/wp-includes/blocks/search/style.css
index 536a2d1..298d116 100644
--- a/wp-includes/blocks/search/style.css
+++ b/wp-includes/blocks/search/style.css
@@ -31,8 +31,7 @@
}
.wp-block-search__input{
- -webkit-appearance:initial;
- appearance:none;
+ appearance:none;
border:1px solid #949494;
flex-grow:1;
margin-left:0;
@@ -73,6 +72,16 @@
width:0 !important;
}
+:where(.wp-block-search__input){
+ font-family:inherit;
+ font-size:inherit;
+ font-style:inherit;
+ font-weight:inherit;
+ letter-spacing:inherit;
+ line-height:inherit;
+ text-transform:inherit;
+}
+
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){
border:1px solid #949494;
box-sizing:border-box;
diff --git a/wp-includes/blocks/search/style.min.css b/wp-includes/blocks/search/style.min.css
index 82d39a5..daf0449 100644
--- a/wp-includes/blocks/search/style.min.css
+++ b/wp-includes/blocks/search/style.min.css
@@ -1 +1 @@
-.wp-block-search__button{margin-left:10px;word-break:normal}.wp-block-search__button.has-icon{line-height:0}.wp-block-search__button svg{height:1.25em;min-height:24px;min-width:24px;width:1.25em;fill:currentColor;vertical-align:text-bottom}:where(.wp-block-search__button){border:1px solid #ccc;padding:6px 10px}.wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search__label{width:100%}.wp-block-search__input{-webkit-appearance:initial;appearance:none;border:1px solid #949494;flex-grow:1;margin-left:0;margin-right:0;min-width:3rem;padding:8px;text-decoration:unset!important}.wp-block-search.wp-block-search__button-only .wp-block-search__button{flex-shrink:0;margin-left:0;max-width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__button[aria-expanded=true]{max-width:calc(100% - 100px)}.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{min-width:0!important;transition-property:width}.wp-block-search.wp-block-search__button-only .wp-block-search__input{flex-basis:100%;transition-duration:.3s}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden,.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{overflow:hidden}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__input{border-left-width:0!important;border-right-width:0!important;flex-basis:0;flex-grow:0;margin:0;min-width:0!important;padding-left:0!important;padding-right:0!important;width:0!important}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){border:1px solid #949494;box-sizing:border-box;padding:4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input{border:none;border-radius:0;padding:0 4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus{outline:none}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button){padding:4px 8px}.wp-block-search.aligncenter .wp-block-search__inside-wrapper{margin:auto}.wp-block[data-align=right] .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{float:right} \ No newline at end of file
+.wp-block-search__button{margin-left:10px;word-break:normal}.wp-block-search__button.has-icon{line-height:0}.wp-block-search__button svg{height:1.25em;min-height:24px;min-width:24px;width:1.25em;fill:currentColor;vertical-align:text-bottom}:where(.wp-block-search__button){border:1px solid #ccc;padding:6px 10px}.wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search__label{width:100%}.wp-block-search__input{appearance:none;border:1px solid #949494;flex-grow:1;margin-left:0;margin-right:0;min-width:3rem;padding:8px;text-decoration:unset!important}.wp-block-search.wp-block-search__button-only .wp-block-search__button{flex-shrink:0;margin-left:0;max-width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__button[aria-expanded=true]{max-width:calc(100% - 100px)}.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{min-width:0!important;transition-property:width}.wp-block-search.wp-block-search__button-only .wp-block-search__input{flex-basis:100%;transition-duration:.3s}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden,.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{overflow:hidden}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__input{border-left-width:0!important;border-right-width:0!important;flex-basis:0;flex-grow:0;margin:0;min-width:0!important;padding-left:0!important;padding-right:0!important;width:0!important}:where(.wp-block-search__input){font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-transform:inherit}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){border:1px solid #949494;box-sizing:border-box;padding:4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input{border:none;border-radius:0;padding:0 4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus{outline:none}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button){padding:4px 8px}.wp-block-search.aligncenter .wp-block-search__inside-wrapper{margin:auto}.wp-block[data-align=right] .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{float:right} \ No newline at end of file
diff --git a/wp-includes/blocks/separator/editor-rtl.css b/wp-includes/blocks/separator/editor-rtl.css
index 61ef708..7e8b53f 100644
--- a/wp-includes/blocks/separator/editor-rtl.css
+++ b/wp-includes/blocks/separator/editor-rtl.css
@@ -1,8 +1,4 @@
.block-editor-block-list__block[data-type="core/separator"]{
padding-bottom:.1px;
padding-top:.1px;
-}
-.block-editor-block-list__block[data-type="core/separator"].wp-block-separator.is-style-dots{
- background:none !important;
- border:none;
} \ No newline at end of file
diff --git a/wp-includes/blocks/separator/editor-rtl.min.css b/wp-includes/blocks/separator/editor-rtl.min.css
index 2f5b244..00ddf61 100644
--- a/wp-includes/blocks/separator/editor-rtl.min.css
+++ b/wp-includes/blocks/separator/editor-rtl.min.css
@@ -1 +1 @@
-.block-editor-block-list__block[data-type="core/separator"]{padding-bottom:.1px;padding-top:.1px}.block-editor-block-list__block[data-type="core/separator"].wp-block-separator.is-style-dots{background:none!important;border:none} \ No newline at end of file
+.block-editor-block-list__block[data-type="core/separator"]{padding-bottom:.1px;padding-top:.1px} \ No newline at end of file
diff --git a/wp-includes/blocks/separator/editor.css b/wp-includes/blocks/separator/editor.css
index 61ef708..7e8b53f 100644
--- a/wp-includes/blocks/separator/editor.css
+++ b/wp-includes/blocks/separator/editor.css
@@ -1,8 +1,4 @@
.block-editor-block-list__block[data-type="core/separator"]{
padding-bottom:.1px;
padding-top:.1px;
-}
-.block-editor-block-list__block[data-type="core/separator"].wp-block-separator.is-style-dots{
- background:none !important;
- border:none;
} \ No newline at end of file
diff --git a/wp-includes/blocks/separator/editor.min.css b/wp-includes/blocks/separator/editor.min.css
index 2f5b244..00ddf61 100644
--- a/wp-includes/blocks/separator/editor.min.css
+++ b/wp-includes/blocks/separator/editor.min.css
@@ -1 +1 @@
-.block-editor-block-list__block[data-type="core/separator"]{padding-bottom:.1px;padding-top:.1px}.block-editor-block-list__block[data-type="core/separator"].wp-block-separator.is-style-dots{background:none!important;border:none} \ No newline at end of file
+.block-editor-block-list__block[data-type="core/separator"]{padding-bottom:.1px;padding-top:.1px} \ No newline at end of file
diff --git a/wp-includes/blocks/separator/style-rtl.css b/wp-includes/blocks/separator/style-rtl.css
index f9ca0b5..4530019 100644
--- a/wp-includes/blocks/separator/style-rtl.css
+++ b/wp-includes/blocks/separator/style-rtl.css
@@ -1,20 +1,25 @@
@charset "UTF-8";
+
.wp-block-separator{
border:none;
border-top:2px solid;
}
-.wp-block-separator.is-style-dots{
- background:none !important;
- border:none;
+
+:root :where(.wp-block-separator.is-style-dots){
height:auto;
line-height:1;
text-align:center;
}
-.wp-block-separator.is-style-dots:before{
+:root :where(.wp-block-separator.is-style-dots):before{
color:currentColor;
content:"···";
font-family:serif;
font-size:1.5em;
letter-spacing:2em;
padding-left:2em;
+}
+
+.wp-block-separator.is-style-dots{
+ background:none !important;
+ border:none !important;
} \ No newline at end of file
diff --git a/wp-includes/blocks/separator/style-rtl.min.css b/wp-includes/blocks/separator/style-rtl.min.css
index d1c2dbf..843bfe9 100644
--- a/wp-includes/blocks/separator/style-rtl.min.css
+++ b/wp-includes/blocks/separator/style-rtl.min.css
@@ -1 +1 @@
-@charset "UTF-8";.wp-block-separator{border:none;border-top:2px solid}.wp-block-separator.is-style-dots{background:none!important;border:none;height:auto;line-height:1;text-align:center}.wp-block-separator.is-style-dots:before{color:currentColor;content:"···";font-family:serif;font-size:1.5em;letter-spacing:2em;padding-left:2em} \ No newline at end of file
+@charset "UTF-8";.wp-block-separator{border:none;border-top:2px solid}:root :where(.wp-block-separator.is-style-dots){height:auto;line-height:1;text-align:center}:root :where(.wp-block-separator.is-style-dots):before{color:currentColor;content:"···";font-family:serif;font-size:1.5em;letter-spacing:2em;padding-left:2em}.wp-block-separator.is-style-dots{background:none!important;border:none!important} \ No newline at end of file
diff --git a/wp-includes/blocks/separator/style.css b/wp-includes/blocks/separator/style.css
index f9ca0b5..4530019 100644
--- a/wp-includes/blocks/separator/style.css
+++ b/wp-includes/blocks/separator/style.css
@@ -1,20 +1,25 @@
@charset "UTF-8";
+
.wp-block-separator{
border:none;
border-top:2px solid;
}
-.wp-block-separator.is-style-dots{
- background:none !important;
- border:none;
+
+:root :where(.wp-block-separator.is-style-dots){
height:auto;
line-height:1;
text-align:center;
}
-.wp-block-separator.is-style-dots:before{
+:root :where(.wp-block-separator.is-style-dots):before{
color:currentColor;
content:"···";
font-family:serif;
font-size:1.5em;
letter-spacing:2em;
padding-left:2em;
+}
+
+.wp-block-separator.is-style-dots{
+ background:none !important;
+ border:none !important;
} \ No newline at end of file
diff --git a/wp-includes/blocks/separator/style.min.css b/wp-includes/blocks/separator/style.min.css
index d1c2dbf..843bfe9 100644
--- a/wp-includes/blocks/separator/style.min.css
+++ b/wp-includes/blocks/separator/style.min.css
@@ -1 +1 @@
-@charset "UTF-8";.wp-block-separator{border:none;border-top:2px solid}.wp-block-separator.is-style-dots{background:none!important;border:none;height:auto;line-height:1;text-align:center}.wp-block-separator.is-style-dots:before{color:currentColor;content:"···";font-family:serif;font-size:1.5em;letter-spacing:2em;padding-left:2em} \ No newline at end of file
+@charset "UTF-8";.wp-block-separator{border:none;border-top:2px solid}:root :where(.wp-block-separator.is-style-dots){height:auto;line-height:1;text-align:center}:root :where(.wp-block-separator.is-style-dots):before{color:currentColor;content:"···";font-family:serif;font-size:1.5em;letter-spacing:2em;padding-left:2em}.wp-block-separator.is-style-dots{background:none!important;border:none!important} \ No newline at end of file
diff --git a/wp-includes/blocks/shortcode.php b/wp-includes/blocks/shortcode.php
index 97a40b3..d96acfc 100644
--- a/wp-includes/blocks/shortcode.php
+++ b/wp-includes/blocks/shortcode.php
@@ -8,6 +8,8 @@
/**
* Performs wpautop() on the shortcode block content.
*
+ * @since 5.0.0
+ *
* @param array $attributes The block attributes.
* @param string $content The block content.
*
@@ -19,6 +21,8 @@ function render_block_core_shortcode( $attributes, $content ) {
/**
* Registers the `core/shortcode` block on server.
+ *
+ * @since 5.0.0
*/
function register_block_core_shortcode() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/shortcode/editor-rtl.css b/wp-includes/blocks/shortcode/editor-rtl.css
index 548a369..c534399 100644
--- a/wp-includes/blocks/shortcode/editor-rtl.css
+++ b/wp-includes/blocks/shortcode/editor-rtl.css
@@ -1,7 +1,3 @@
-[data-type="core/shortcode"].components-placeholder{
- min-height:0;
-}
-
.blocks-shortcode__textarea{
background:#fff !important;
border:1px solid #1e1e1e !important;
diff --git a/wp-includes/blocks/shortcode/editor-rtl.min.css b/wp-includes/blocks/shortcode/editor-rtl.min.css
index 0917162..28f6323 100644
--- a/wp-includes/blocks/shortcode/editor-rtl.min.css
+++ b/wp-includes/blocks/shortcode/editor-rtl.min.css
@@ -1 +1 @@
-[data-type="core/shortcode"].components-placeholder{min-height:0}.blocks-shortcode__textarea{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important;resize:none}@media (min-width:600px){.blocks-shortcode__textarea{font-size:13px!important}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid #0000!important} \ No newline at end of file
+.blocks-shortcode__textarea{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important;resize:none}@media (min-width:600px){.blocks-shortcode__textarea{font-size:13px!important}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid #0000!important} \ No newline at end of file
diff --git a/wp-includes/blocks/shortcode/editor.css b/wp-includes/blocks/shortcode/editor.css
index 548a369..c534399 100644
--- a/wp-includes/blocks/shortcode/editor.css
+++ b/wp-includes/blocks/shortcode/editor.css
@@ -1,7 +1,3 @@
-[data-type="core/shortcode"].components-placeholder{
- min-height:0;
-}
-
.blocks-shortcode__textarea{
background:#fff !important;
border:1px solid #1e1e1e !important;
diff --git a/wp-includes/blocks/shortcode/editor.min.css b/wp-includes/blocks/shortcode/editor.min.css
index 0917162..28f6323 100644
--- a/wp-includes/blocks/shortcode/editor.min.css
+++ b/wp-includes/blocks/shortcode/editor.min.css
@@ -1 +1 @@
-[data-type="core/shortcode"].components-placeholder{min-height:0}.blocks-shortcode__textarea{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important;resize:none}@media (min-width:600px){.blocks-shortcode__textarea{font-size:13px!important}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid #0000!important} \ No newline at end of file
+.blocks-shortcode__textarea{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important;resize:none}@media (min-width:600px){.blocks-shortcode__textarea{font-size:13px!important}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid #0000!important} \ No newline at end of file
diff --git a/wp-includes/blocks/site-logo.php b/wp-includes/blocks/site-logo.php
index f1819fc..ea6d9f1 100644
--- a/wp-includes/blocks/site-logo.php
+++ b/wp-includes/blocks/site-logo.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/site-logo` block on the server.
*
+ * @since 5.8.0
+ *
* @param array $attributes The block attributes.
*
* @return string The render.
@@ -60,6 +62,8 @@ function render_block_core_site_logo( $attributes ) {
/**
* Register a core site setting for a site logo
+ *
+ * @since 5.8.0
*/
function register_block_core_site_logo_setting() {
register_setting(
@@ -70,6 +74,7 @@ function register_block_core_site_logo_setting() {
'name' => 'site_logo',
),
'type' => 'integer',
+ 'label' => __( 'Logo' ),
'description' => __( 'Site logo.' ),
)
);
@@ -79,6 +84,8 @@ add_action( 'rest_api_init', 'register_block_core_site_logo_setting', 10 );
/**
* Register a core site setting for a site icon
+ *
+ * @since 5.9.0
*/
function register_block_core_site_icon_setting() {
register_setting(
@@ -87,6 +94,7 @@ function register_block_core_site_icon_setting() {
array(
'show_in_rest' => true,
'type' => 'integer',
+ 'label' => __( 'Icon' ),
'description' => __( 'Site icon.' ),
)
);
@@ -96,6 +104,8 @@ add_action( 'rest_api_init', 'register_block_core_site_icon_setting', 10 );
/**
* Registers the `core/site-logo` block on the server.
+ *
+ * @since 5.8.0
*/
function register_block_core_site_logo() {
register_block_type_from_metadata(
@@ -111,6 +121,8 @@ add_action( 'init', 'register_block_core_site_logo' );
/**
* Overrides the custom logo with a site logo, if the option is set.
*
+ * @since 5.8.0
+ *
* @param string $custom_logo The custom logo set by a theme.
*
* @return string The site logo if set.
@@ -125,6 +137,8 @@ add_filter( 'theme_mod_custom_logo', '_override_custom_logo_theme_mod' );
/**
* Updates the site_logo option when the custom_logo theme-mod gets updated.
*
+ * @since 5.8.0
+ *
* @param mixed $value Attachment ID of the custom logo or an empty value.
* @return mixed
*/
@@ -143,6 +157,8 @@ add_filter( 'pre_set_theme_mod_custom_logo', '_sync_custom_logo_to_site_logo' );
/**
* Deletes the site_logo when the custom_logo theme mod is removed.
*
+ * @since 5.8.0
+ *
* @param array $old_value Previous theme mod settings.
* @param array $value Updated theme mod settings.
*/
@@ -161,6 +177,8 @@ function _delete_site_logo_on_remove_custom_logo( $old_value, $value ) {
/**
* Deletes the site logo when all theme mods are being removed.
+ *
+ * @since 5.8.0
*/
function _delete_site_logo_on_remove_theme_mods() {
global $_ignore_site_logo_changes;
@@ -179,6 +197,8 @@ function _delete_site_logo_on_remove_theme_mods() {
* Hooks `_delete_site_logo_on_remove_theme_mods` in `delete_option_theme_mods_$theme`.
*
* Runs on `setup_theme` to account for dynamically-switched themes in the Customizer.
+ *
+ * @since 5.8.0
*/
function _delete_site_logo_on_remove_custom_logo_on_setup_theme() {
$theme = get_option( 'stylesheet' );
@@ -189,6 +209,8 @@ add_action( 'setup_theme', '_delete_site_logo_on_remove_custom_logo_on_setup_the
/**
* Removes the custom_logo theme-mod when the site_logo option gets deleted.
+ *
+ * @since 5.9.0
*/
function _delete_custom_logo_on_remove_site_logo() {
global $_ignore_site_logo_changes;
diff --git a/wp-includes/blocks/site-logo/editor-rtl.css b/wp-includes/blocks/site-logo/editor-rtl.css
index 08710ac..9405d97 100644
--- a/wp-includes/blocks/site-logo/editor-rtl.css
+++ b/wp-includes/blocks/site-logo/editor-rtl.css
@@ -13,14 +13,24 @@
.wp-block-site-logo .custom-logo-link:focus{
box-shadow:none;
}
-.wp-block-site-logo .custom-logo-link.is-transient img{
- opacity:.3;
-}
.wp-block-site-logo img{
display:block;
height:auto;
max-width:100%;
}
+.wp-block-site-logo.is-transient{
+ position:relative;
+}
+.wp-block-site-logo.is-transient img{
+ opacity:.3;
+}
+.wp-block-site-logo.is-transient .components-spinner{
+ margin:0;
+ position:absolute;
+ right:50%;
+ top:50%;
+ transform:translate(50%, -50%);
+}
.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{
height:60px;
@@ -53,6 +63,7 @@
display:flex;
height:48px;
justify-content:center;
+ margin:auto;
padding:0;
position:relative;
width:48px;
diff --git a/wp-includes/blocks/site-logo/editor-rtl.min.css b/wp-includes/blocks/site-logo/editor-rtl.min.css
index 01f56f2..dbfe441 100644
--- a/wp-includes/blocks/site-logo/editor-rtl.min.css
+++ b/wp-includes/blocks/site-logo/editor-rtl.min.css
@@ -1 +1 @@
-.wp-block-site-logo.aligncenter>div,.wp-block[data-align=center]>.wp-block-site-logo{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:60px;width:60px}.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder{align-items:center;border-radius:inherit;display:flex;height:100%;justify-content:center;min-height:48px;min-width:48px;padding:0;width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text,.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;padding:0;position:relative;width:48px}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:inherit}.block-library-site-logo__inspector-upload-container{position:relative}.block-library-site-logo__inspector-upload-container .components-drop-zone__content-icon{display:none}.block-library-site-logo__inspector-media-replace-container button.components-button,.block-library-site-logo__inspector-upload-container button.components-button{box-shadow:inset 0 0 0 1px #ccc;color:#1e1e1e;display:block;height:40px;width:100%}.block-library-site-logo__inspector-media-replace-container button.components-button:hover,.block-library-site-logo__inspector-upload-container button.components-button:hover{color:var(--wp-admin-theme-color)}.block-library-site-logo__inspector-media-replace-container button.components-button:focus,.block-library-site-logo__inspector-upload-container button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-media-replace-title,.block-library-site-logo__inspector-upload-container .block-library-site-logo__inspector-media-replace-title{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-library-site-logo__inspector-media-replace-container .components-dropdown{display:block}.block-library-site-logo__inspector-media-replace-container img{aspect-ratio:1;border-radius:50%!important;box-shadow:inset 0 0 0 1px #0003;min-width:20px;width:20px}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-readonly-logo-preview{display:flex;height:40px;padding:6px 12px} \ No newline at end of file
+.wp-block-site-logo.aligncenter>div,.wp-block[data-align=center]>.wp-block-site-logo{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.is-transient{position:relative}.wp-block-site-logo.is-transient img{opacity:.3}.wp-block-site-logo.is-transient .components-spinner{margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:60px;width:60px}.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder{align-items:center;border-radius:inherit;display:flex;height:100%;justify-content:center;min-height:48px;min-width:48px;padding:0;width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text,.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;margin:auto;padding:0;position:relative;width:48px}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:inherit}.block-library-site-logo__inspector-upload-container{position:relative}.block-library-site-logo__inspector-upload-container .components-drop-zone__content-icon{display:none}.block-library-site-logo__inspector-media-replace-container button.components-button,.block-library-site-logo__inspector-upload-container button.components-button{box-shadow:inset 0 0 0 1px #ccc;color:#1e1e1e;display:block;height:40px;width:100%}.block-library-site-logo__inspector-media-replace-container button.components-button:hover,.block-library-site-logo__inspector-upload-container button.components-button:hover{color:var(--wp-admin-theme-color)}.block-library-site-logo__inspector-media-replace-container button.components-button:focus,.block-library-site-logo__inspector-upload-container button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-media-replace-title,.block-library-site-logo__inspector-upload-container .block-library-site-logo__inspector-media-replace-title{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-library-site-logo__inspector-media-replace-container .components-dropdown{display:block}.block-library-site-logo__inspector-media-replace-container img{aspect-ratio:1;border-radius:50%!important;box-shadow:inset 0 0 0 1px #0003;min-width:20px;width:20px}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-readonly-logo-preview{display:flex;height:40px;padding:6px 12px} \ No newline at end of file
diff --git a/wp-includes/blocks/site-logo/editor.css b/wp-includes/blocks/site-logo/editor.css
index 08710ac..1aacff8 100644
--- a/wp-includes/blocks/site-logo/editor.css
+++ b/wp-includes/blocks/site-logo/editor.css
@@ -13,14 +13,24 @@
.wp-block-site-logo .custom-logo-link:focus{
box-shadow:none;
}
-.wp-block-site-logo .custom-logo-link.is-transient img{
- opacity:.3;
-}
.wp-block-site-logo img{
display:block;
height:auto;
max-width:100%;
}
+.wp-block-site-logo.is-transient{
+ position:relative;
+}
+.wp-block-site-logo.is-transient img{
+ opacity:.3;
+}
+.wp-block-site-logo.is-transient .components-spinner{
+ left:50%;
+ margin:0;
+ position:absolute;
+ top:50%;
+ transform:translate(-50%, -50%);
+}
.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{
height:60px;
@@ -53,6 +63,7 @@
display:flex;
height:48px;
justify-content:center;
+ margin:auto;
padding:0;
position:relative;
width:48px;
diff --git a/wp-includes/blocks/site-logo/editor.min.css b/wp-includes/blocks/site-logo/editor.min.css
index 01f56f2..b440393 100644
--- a/wp-includes/blocks/site-logo/editor.min.css
+++ b/wp-includes/blocks/site-logo/editor.min.css
@@ -1 +1 @@
-.wp-block-site-logo.aligncenter>div,.wp-block[data-align=center]>.wp-block-site-logo{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:60px;width:60px}.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder{align-items:center;border-radius:inherit;display:flex;height:100%;justify-content:center;min-height:48px;min-width:48px;padding:0;width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text,.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;padding:0;position:relative;width:48px}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:inherit}.block-library-site-logo__inspector-upload-container{position:relative}.block-library-site-logo__inspector-upload-container .components-drop-zone__content-icon{display:none}.block-library-site-logo__inspector-media-replace-container button.components-button,.block-library-site-logo__inspector-upload-container button.components-button{box-shadow:inset 0 0 0 1px #ccc;color:#1e1e1e;display:block;height:40px;width:100%}.block-library-site-logo__inspector-media-replace-container button.components-button:hover,.block-library-site-logo__inspector-upload-container button.components-button:hover{color:var(--wp-admin-theme-color)}.block-library-site-logo__inspector-media-replace-container button.components-button:focus,.block-library-site-logo__inspector-upload-container button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-media-replace-title,.block-library-site-logo__inspector-upload-container .block-library-site-logo__inspector-media-replace-title{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-library-site-logo__inspector-media-replace-container .components-dropdown{display:block}.block-library-site-logo__inspector-media-replace-container img{aspect-ratio:1;border-radius:50%!important;box-shadow:inset 0 0 0 1px #0003;min-width:20px;width:20px}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-readonly-logo-preview{display:flex;height:40px;padding:6px 12px} \ No newline at end of file
+.wp-block-site-logo.aligncenter>div,.wp-block[data-align=center]>.wp-block-site-logo{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.is-transient{position:relative}.wp-block-site-logo.is-transient img{opacity:.3}.wp-block-site-logo.is-transient .components-spinner{left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%)}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:60px;width:60px}.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder{align-items:center;border-radius:inherit;display:flex;height:100%;justify-content:center;min-height:48px;min-width:48px;padding:0;width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text,.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;margin:auto;padding:0;position:relative;width:48px}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:inherit}.block-library-site-logo__inspector-upload-container{position:relative}.block-library-site-logo__inspector-upload-container .components-drop-zone__content-icon{display:none}.block-library-site-logo__inspector-media-replace-container button.components-button,.block-library-site-logo__inspector-upload-container button.components-button{box-shadow:inset 0 0 0 1px #ccc;color:#1e1e1e;display:block;height:40px;width:100%}.block-library-site-logo__inspector-media-replace-container button.components-button:hover,.block-library-site-logo__inspector-upload-container button.components-button:hover{color:var(--wp-admin-theme-color)}.block-library-site-logo__inspector-media-replace-container button.components-button:focus,.block-library-site-logo__inspector-upload-container button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-media-replace-title,.block-library-site-logo__inspector-upload-container .block-library-site-logo__inspector-media-replace-title{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-library-site-logo__inspector-media-replace-container .components-dropdown{display:block}.block-library-site-logo__inspector-media-replace-container img{aspect-ratio:1;border-radius:50%!important;box-shadow:inset 0 0 0 1px #0003;min-width:20px;width:20px}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-readonly-logo-preview{display:flex;height:40px;padding:6px 12px} \ No newline at end of file
diff --git a/wp-includes/blocks/site-logo/style-rtl.css b/wp-includes/blocks/site-logo/style-rtl.css
index 560a5cd..8acc72b 100644
--- a/wp-includes/blocks/site-logo/style-rtl.css
+++ b/wp-includes/blocks/site-logo/style-rtl.css
@@ -22,6 +22,7 @@
margin-right:auto;
text-align:center;
}
-.wp-block-site-logo.is-style-rounded{
+
+:root :where(.wp-block-site-logo.is-style-rounded){
border-radius:9999px;
} \ No newline at end of file
diff --git a/wp-includes/blocks/site-logo/style-rtl.min.css b/wp-includes/blocks/site-logo/style-rtl.min.css
index 1339639..f40a8e2 100644
--- a/wp-includes/blocks/site-logo/style-rtl.min.css
+++ b/wp-includes/blocks/site-logo/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-site-logo{box-sizing:border-box;line-height:0}.wp-block-site-logo a{display:inline-block;line-height:0}.wp-block-site-logo.is-default-size img{height:auto;width:120px}.wp-block-site-logo img{height:auto;max-width:100%}.wp-block-site-logo a,.wp-block-site-logo img{border-radius:inherit}.wp-block-site-logo.aligncenter{margin-left:auto;margin-right:auto;text-align:center}.wp-block-site-logo.is-style-rounded{border-radius:9999px} \ No newline at end of file
+.wp-block-site-logo{box-sizing:border-box;line-height:0}.wp-block-site-logo a{display:inline-block;line-height:0}.wp-block-site-logo.is-default-size img{height:auto;width:120px}.wp-block-site-logo img{height:auto;max-width:100%}.wp-block-site-logo a,.wp-block-site-logo img{border-radius:inherit}.wp-block-site-logo.aligncenter{margin-left:auto;margin-right:auto;text-align:center}:root :where(.wp-block-site-logo.is-style-rounded){border-radius:9999px} \ No newline at end of file
diff --git a/wp-includes/blocks/site-logo/style.css b/wp-includes/blocks/site-logo/style.css
index 560a5cd..8acc72b 100644
--- a/wp-includes/blocks/site-logo/style.css
+++ b/wp-includes/blocks/site-logo/style.css
@@ -22,6 +22,7 @@
margin-right:auto;
text-align:center;
}
-.wp-block-site-logo.is-style-rounded{
+
+:root :where(.wp-block-site-logo.is-style-rounded){
border-radius:9999px;
} \ No newline at end of file
diff --git a/wp-includes/blocks/site-logo/style.min.css b/wp-includes/blocks/site-logo/style.min.css
index 1339639..f40a8e2 100644
--- a/wp-includes/blocks/site-logo/style.min.css
+++ b/wp-includes/blocks/site-logo/style.min.css
@@ -1 +1 @@
-.wp-block-site-logo{box-sizing:border-box;line-height:0}.wp-block-site-logo a{display:inline-block;line-height:0}.wp-block-site-logo.is-default-size img{height:auto;width:120px}.wp-block-site-logo img{height:auto;max-width:100%}.wp-block-site-logo a,.wp-block-site-logo img{border-radius:inherit}.wp-block-site-logo.aligncenter{margin-left:auto;margin-right:auto;text-align:center}.wp-block-site-logo.is-style-rounded{border-radius:9999px} \ No newline at end of file
+.wp-block-site-logo{box-sizing:border-box;line-height:0}.wp-block-site-logo a{display:inline-block;line-height:0}.wp-block-site-logo.is-default-size img{height:auto;width:120px}.wp-block-site-logo img{height:auto;max-width:100%}.wp-block-site-logo a,.wp-block-site-logo img{border-radius:inherit}.wp-block-site-logo.aligncenter{margin-left:auto;margin-right:auto;text-align:center}:root :where(.wp-block-site-logo.is-style-rounded){border-radius:9999px} \ No newline at end of file
diff --git a/wp-includes/blocks/site-tagline.php b/wp-includes/blocks/site-tagline.php
index 75375e5..b59e1e5 100644
--- a/wp-includes/blocks/site-tagline.php
+++ b/wp-includes/blocks/site-tagline.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/site-tagline` block on the server.
*
+ * @since 5.8.0
+ *
* @param array $attributes The block attributes.
*
* @return string The render.
@@ -17,11 +19,18 @@ function render_block_core_site_tagline( $attributes ) {
if ( ! $site_tagline ) {
return;
}
+
+ $tag_name = 'p';
$align_class_name = empty( $attributes['textAlign'] ) ? '' : "has-text-align-{$attributes['textAlign']}";
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $align_class_name ) );
+ if ( isset( $attributes['level'] ) && 0 !== $attributes['level'] ) {
+ $tag_name = 'h' . (int) $attributes['level'];
+ }
+
return sprintf(
- '<p %1$s>%2$s</p>',
+ '<%1$s %2$s>%3$s</%1$s>',
+ $tag_name,
$wrapper_attributes,
$site_tagline
);
@@ -29,6 +38,8 @@ function render_block_core_site_tagline( $attributes ) {
/**
* Registers the `core/site-tagline` block on the server.
+ *
+ * @since 5.8.0
*/
function register_block_core_site_tagline() {
register_block_type_from_metadata(
@@ -38,4 +49,5 @@ function register_block_core_site_tagline() {
)
);
}
+
add_action( 'init', 'register_block_core_site_tagline' );
diff --git a/wp-includes/blocks/site-tagline/block.json b/wp-includes/blocks/site-tagline/block.json
index 2361be9..01ec727 100644
--- a/wp-includes/blocks/site-tagline/block.json
+++ b/wp-includes/blocks/site-tagline/block.json
@@ -10,6 +10,10 @@
"attributes": {
"textAlign": {
"type": "string"
+ },
+ "level": {
+ "type": "number",
+ "default": 0
}
},
"example": {},
diff --git a/wp-includes/blocks/site-title.php b/wp-includes/blocks/site-title.php
index 255615b..f90c3a6 100644
--- a/wp-includes/blocks/site-title.php
+++ b/wp-includes/blocks/site-title.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/site-title` block on the server.
*
+ * @since 5.8.0
+ *
* @param array $attributes The block attributes.
*
* @return string The render.
@@ -53,6 +55,8 @@ function render_block_core_site_title( $attributes ) {
/**
* Registers the `core/site-title` block on the server.
+ *
+ * @since 5.8.0
*/
function register_block_core_site_title() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/site-title/editor-rtl.css b/wp-includes/blocks/site-title/editor-rtl.css
index 173e08f..6102ce9 100644
--- a/wp-includes/blocks/site-title/editor-rtl.css
+++ b/wp-includes/blocks/site-title/editor-rtl.css
@@ -3,6 +3,6 @@
padding:1em 0;
}
-.editor-styles-wrapper .wp-block-site-title a{
+.editor-styles-wrapper :where(.wp-block-site-title a){
color:inherit;
} \ No newline at end of file
diff --git a/wp-includes/blocks/site-title/editor-rtl.min.css b/wp-includes/blocks/site-title/editor-rtl.min.css
index 84aabb4..9aa0b71 100644
--- a/wp-includes/blocks/site-title/editor-rtl.min.css
+++ b/wp-includes/blocks/site-title/editor-rtl.min.css
@@ -1 +1 @@
-.wp-block-site-title__placeholder{border:1px dashed;padding:1em 0}.editor-styles-wrapper .wp-block-site-title a{color:inherit} \ No newline at end of file
+.wp-block-site-title__placeholder{border:1px dashed;padding:1em 0}.editor-styles-wrapper :where(.wp-block-site-title a){color:inherit} \ No newline at end of file
diff --git a/wp-includes/blocks/site-title/editor.css b/wp-includes/blocks/site-title/editor.css
index 173e08f..6102ce9 100644
--- a/wp-includes/blocks/site-title/editor.css
+++ b/wp-includes/blocks/site-title/editor.css
@@ -3,6 +3,6 @@
padding:1em 0;
}
-.editor-styles-wrapper .wp-block-site-title a{
+.editor-styles-wrapper :where(.wp-block-site-title a){
color:inherit;
} \ No newline at end of file
diff --git a/wp-includes/blocks/site-title/editor.min.css b/wp-includes/blocks/site-title/editor.min.css
index 84aabb4..9aa0b71 100644
--- a/wp-includes/blocks/site-title/editor.min.css
+++ b/wp-includes/blocks/site-title/editor.min.css
@@ -1 +1 @@
-.wp-block-site-title__placeholder{border:1px dashed;padding:1em 0}.editor-styles-wrapper .wp-block-site-title a{color:inherit} \ No newline at end of file
+.wp-block-site-title__placeholder{border:1px dashed;padding:1em 0}.editor-styles-wrapper :where(.wp-block-site-title a){color:inherit} \ No newline at end of file
diff --git a/wp-includes/blocks/site-title/style-rtl.css b/wp-includes/blocks/site-title/style-rtl.css
index eacca37..d0d398e 100644
--- a/wp-includes/blocks/site-title/style-rtl.css
+++ b/wp-includes/blocks/site-title/style-rtl.css
@@ -1,3 +1,3 @@
-.wp-block-site-title a{
+:root :where(.wp-block-site-title a){
color:inherit;
} \ No newline at end of file
diff --git a/wp-includes/blocks/site-title/style-rtl.min.css b/wp-includes/blocks/site-title/style-rtl.min.css
index 1f01948..14fa28c 100644
--- a/wp-includes/blocks/site-title/style-rtl.min.css
+++ b/wp-includes/blocks/site-title/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-site-title a{color:inherit} \ No newline at end of file
+:root :where(.wp-block-site-title a){color:inherit} \ No newline at end of file
diff --git a/wp-includes/blocks/site-title/style.css b/wp-includes/blocks/site-title/style.css
index eacca37..d0d398e 100644
--- a/wp-includes/blocks/site-title/style.css
+++ b/wp-includes/blocks/site-title/style.css
@@ -1,3 +1,3 @@
-.wp-block-site-title a{
+:root :where(.wp-block-site-title a){
color:inherit;
} \ No newline at end of file
diff --git a/wp-includes/blocks/site-title/style.min.css b/wp-includes/blocks/site-title/style.min.css
index 1f01948..14fa28c 100644
--- a/wp-includes/blocks/site-title/style.min.css
+++ b/wp-includes/blocks/site-title/style.min.css
@@ -1 +1 @@
-.wp-block-site-title a{color:inherit} \ No newline at end of file
+:root :where(.wp-block-site-title a){color:inherit} \ No newline at end of file
diff --git a/wp-includes/blocks/social-link.php b/wp-includes/blocks/social-link.php
index 12c2904..da28034 100644
--- a/wp-includes/blocks/social-link.php
+++ b/wp-includes/blocks/social-link.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/social-link` block on server.
*
+ * @since 5.4.0
+ *
* @param Array $attributes The block attributes.
* @param String $content InnerBlocks content of the Block.
* @param WP_Block $block Block object.
@@ -17,10 +19,12 @@
function render_block_core_social_link( $attributes, $content, $block ) {
$open_in_new_tab = isset( $block->context['openInNewTab'] ) ? $block->context['openInNewTab'] : false;
- $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 );
- $rel = ( isset( $attributes['rel'] ) ) ? $attributes['rel'] : '';
+ $text = ! empty( $attributes['label'] ) ? trim( $attributes['label'] ) : '';
+
+ $service = isset( $attributes['service'] ) ? $attributes['service'] : 'Icon';
+ $url = isset( $attributes['url'] ) ? $attributes['url'] : false;
+ $text = $text ? $text : block_core_social_link_get_name( $service );
+ $rel = isset( $attributes['rel'] ) ? $attributes['rel'] : '';
$show_labels = array_key_exists( 'showLabels', $block->context ) ? $block->context['showLabels'] : false;
// Don't render a link if there is no URL set.
@@ -55,9 +59,8 @@ function render_block_core_social_link( $attributes, $content, $block ) {
$link = '<li ' . $wrapper_attributes . '>';
$link .= '<a href="' . esc_url( $url ) . '" class="wp-block-social-link-anchor">';
$link .= $icon;
- $link .= '<span class="wp-block-social-link-label' . ( $show_labels ? '' : ' screen-reader-text' ) . '">';
- $link .= esc_html( $label );
- $link .= '</span></a></li>';
+ $link .= '<span class="wp-block-social-link-label' . ( $show_labels ? '' : ' screen-reader-text' ) . '">' . esc_html( $text ) . '</span>';
+ $link .= '</a></li>';
$processor = new WP_HTML_Tag_Processor( $link );
$processor->next_tag( 'a' );
@@ -72,6 +75,8 @@ function render_block_core_social_link( $attributes, $content, $block ) {
/**
* Registers the `core/social-link` blocks.
+ *
+ * @since 5.4.0
*/
function register_block_core_social_link() {
register_block_type_from_metadata(
@@ -87,6 +92,8 @@ add_action( 'init', 'register_block_core_social_link' );
/**
* Returns the SVG for social link.
*
+ * @since 5.4.0
+ *
* @param string $service The service icon.
*
* @return string SVG Element for service icon.
@@ -103,6 +110,8 @@ function block_core_social_link_get_icon( $service ) {
/**
* Returns the brand name for social link.
*
+ * @since 5.4.0
+ *
* @param string $service The service icon.
*
* @return string Brand label.
@@ -119,6 +128,8 @@ function block_core_social_link_get_name( $service ) {
/**
* Returns the SVG for social link.
*
+ * @since 5.4.0
+ *
* @param string $service The service slug to extract data from.
* @param string $field The field ('name', 'icon', etc) to extract for a service.
*
@@ -142,6 +153,10 @@ function block_core_social_link_services( $service = '', $field = '' ) {
'name' => 'Behance',
'icon' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><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"></path></svg>',
),
+ 'bluesky' => array(
+ 'name' => 'Bluesky',
+ 'icon' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"></path></svg>',
+ ),
'chain' => array(
'name' => 'Link',
'icon' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><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"></path></svg>',
@@ -224,7 +239,7 @@ function block_core_social_link_services( $service = '', $field = '' ) {
),
'medium' => array(
'name' => 'Medium',
- 'icon' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><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"></path></svg>',
+ 'icon' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M13.2,12c0,3-2.4,5.4-5.3,5.4S2.6,15,2.6,12s2.4-5.4,5.3-5.4S13.2,9,13.2,12 M19.1,12c0,2.8-1.2,5-2.7,5s-2.7-2.3-2.7-5s1.2-5,2.7-5C17.9,7,19.1,9.2,19.1,12 M21.4,12c0,2.5-0.4,4.5-0.9,4.5c-0.5,0-0.9-2-0.9-4.5s0.4-4.5,0.9-4.5C21,7.5,21.4,9.5,21.4,12"></path></svg>',
),
'patreon' => array(
'name' => 'Patreon',
@@ -240,7 +255,7 @@ function block_core_social_link_services( $service = '', $field = '' ) {
),
'reddit' => array(
'name' => 'Reddit',
- 'icon' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"></path></svg>',
+ 'icon' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M5.27 9.221A2.775 2.775 0 0 0 2.498 11.993a2.785 2.785 0 0 0 1.6 2.511 5.337 5.337 0 0 0 2.374 4.11 9.386 9.386 0 0 0 5.539 1.7 9.386 9.386 0 0 0 5.541-1.7 5.331 5.331 0 0 0 2.372-4.114 2.787 2.787 0 0 0 1.583-2.5 2.775 2.775 0 0 0-2.772-2.772 2.742 2.742 0 0 0-1.688.574 9.482 9.482 0 0 0-4.637-1.348v-.008a2.349 2.349 0 0 1 2.011-2.316 1.97 1.97 0 0 0 1.926 1.521 1.98 1.98 0 0 0 1.978-1.978 1.98 1.98 0 0 0-1.978-1.978 1.985 1.985 0 0 0-1.938 1.578 3.183 3.183 0 0 0-2.849 3.172v.011a9.463 9.463 0 0 0-4.59 1.35 2.741 2.741 0 0 0-1.688-.574Zm6.736 9.1a3.162 3.162 0 0 1-2.921-1.944.215.215 0 0 1 .014-.2.219.219 0 0 1 .168-.106 27.327 27.327 0 0 1 2.74-.133 27.357 27.357 0 0 1 2.74.133.219.219 0 0 1 .168.106.215.215 0 0 1 .014.2 3.158 3.158 0 0 1-2.921 1.944Zm3.743-3.157a1.265 1.265 0 0 1-1.4-1.371 1.954 1.954 0 0 1 .482-1.442 1.15 1.15 0 0 1 .842-.379 1.7 1.7 0 0 1 1.49 1.777 1.323 1.323 0 0 1-.325 1.015 1.476 1.476 0 0 1-1.089.4Zm-7.485 0a1.476 1.476 0 0 1-1.086-.4 1.323 1.323 0 0 1-.325-1.016 1.7 1.7 0 0 1 1.49-1.777 1.151 1.151 0 0 1 .843.379 1.951 1.951 0 0 1 .481 1.441 1.276 1.276 0 0 1-1.403 1.373Z"></path></svg>',
),
'share' => array(
'name' => 'Share Icon',
@@ -332,6 +347,8 @@ function block_core_social_link_services( $service = '', $field = '' ) {
/**
* Returns CSS styles for icon and icon background colors.
*
+ * @since 5.7.0
+ *
* @param array $context Block context passed to Social Link.
*
* @return string Inline CSS styles for link's icon and background colors.
@@ -353,6 +370,8 @@ function block_core_social_link_get_color_styles( $context ) {
/**
* Returns CSS classes for icon and icon background colors.
*
+ * @since 6.3.0
+ *
* @param array $context Block context passed to Social Sharing Link.
*
* @return string CSS classes for link's icon and background colors.
diff --git a/wp-includes/blocks/social-link/block.json b/wp-includes/blocks/social-link/block.json
index d487465..37e8376 100644
--- a/wp-includes/blocks/social-link/block.json
+++ b/wp-includes/blocks/social-link/block.json
@@ -5,7 +5,7 @@
"title": "Social Icon",
"category": "widgets",
"parent": [ "core/social-links" ],
- "description": "Display an icon linking to a social media profile or site.",
+ "description": "Display an icon linking to a social profile or site.",
"textdomain": "default",
"attributes": {
"url": {
diff --git a/wp-includes/blocks/social-link/editor-rtl.css b/wp-includes/blocks/social-link/editor-rtl.css
index 8c16bcf..eb34ba8 100644
--- a/wp-includes/blocks/social-link/editor-rtl.css
+++ b/wp-includes/blocks/social-link/editor-rtl.css
@@ -1,20 +1,31 @@
.wp-block-social-links .wp-social-link{
line-height:0;
}
-.wp-block-social-links .wp-social-link button{
+
+.wp-block-social-link-anchor{
+ align-items:center;
+ background:none;
+ border:0;
+ box-sizing:border-box;
color:currentColor;
+ cursor:pointer;
+ display:inline-flex;
font-size:inherit;
height:auto;
- line-height:0;
opacity:1;
padding:.25em;
}
+.wp-block-social-link-anchor:focus:not(:disabled){
+ border-radius:2px;
+ box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+ outline:3px solid #0000;
+}
-.wp-block-social-links.is-style-pill-shape .wp-social-link button{
+:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link button){
padding-left:.66667em;
padding-right:.66667em;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link button{
+:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link button){
padding:0;
} \ No newline at end of file
diff --git a/wp-includes/blocks/social-link/editor-rtl.min.css b/wp-includes/blocks/social-link/editor-rtl.min.css
index ff5a4b8..f8fa440 100644
--- a/wp-includes/blocks/social-link/editor-rtl.min.css
+++ b/wp-includes/blocks/social-link/editor-rtl.min.css
@@ -1 +1 @@
-.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-links .wp-social-link button{color:currentColor;font-size:inherit;height:auto;line-height:0;opacity:1;padding:.25em}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-left:.66667em;padding-right:.66667em}.wp-block-social-links.is-style-logos-only .wp-social-link button{padding:0} \ No newline at end of file
+.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-link-anchor{align-items:center;background:none;border:0;box-sizing:border-box;color:currentColor;cursor:pointer;display:inline-flex;font-size:inherit;height:auto;opacity:1;padding:.25em}.wp-block-social-link-anchor:focus:not(:disabled){border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid #0000}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link button){padding-left:.66667em;padding-right:.66667em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link button){padding:0} \ No newline at end of file
diff --git a/wp-includes/blocks/social-link/editor.css b/wp-includes/blocks/social-link/editor.css
index 8c16bcf..eb34ba8 100644
--- a/wp-includes/blocks/social-link/editor.css
+++ b/wp-includes/blocks/social-link/editor.css
@@ -1,20 +1,31 @@
.wp-block-social-links .wp-social-link{
line-height:0;
}
-.wp-block-social-links .wp-social-link button{
+
+.wp-block-social-link-anchor{
+ align-items:center;
+ background:none;
+ border:0;
+ box-sizing:border-box;
color:currentColor;
+ cursor:pointer;
+ display:inline-flex;
font-size:inherit;
height:auto;
- line-height:0;
opacity:1;
padding:.25em;
}
+.wp-block-social-link-anchor:focus:not(:disabled){
+ border-radius:2px;
+ box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+ outline:3px solid #0000;
+}
-.wp-block-social-links.is-style-pill-shape .wp-social-link button{
+:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link button){
padding-left:.66667em;
padding-right:.66667em;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link button{
+:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link button){
padding:0;
} \ No newline at end of file
diff --git a/wp-includes/blocks/social-link/editor.min.css b/wp-includes/blocks/social-link/editor.min.css
index ff5a4b8..f8fa440 100644
--- a/wp-includes/blocks/social-link/editor.min.css
+++ b/wp-includes/blocks/social-link/editor.min.css
@@ -1 +1 @@
-.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-links .wp-social-link button{color:currentColor;font-size:inherit;height:auto;line-height:0;opacity:1;padding:.25em}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-left:.66667em;padding-right:.66667em}.wp-block-social-links.is-style-logos-only .wp-social-link button{padding:0} \ No newline at end of file
+.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-link-anchor{align-items:center;background:none;border:0;box-sizing:border-box;color:currentColor;cursor:pointer;display:inline-flex;font-size:inherit;height:auto;opacity:1;padding:.25em}.wp-block-social-link-anchor:focus:not(:disabled){border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid #0000}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link button){padding-left:.66667em;padding-right:.66667em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link button){padding:0} \ No newline at end of file
diff --git a/wp-includes/blocks/social-links/block.json b/wp-includes/blocks/social-links/block.json
index 0c8c7be..45dbd9d 100644
--- a/wp-includes/blocks/social-links/block.json
+++ b/wp-includes/blocks/social-links/block.json
@@ -5,7 +5,7 @@
"title": "Social Icons",
"category": "widgets",
"allowedBlocks": [ "core/social-link" ],
- "description": "Display icons linking to your social media profiles or sites.",
+ "description": "Display icons linking to your social profiles or sites.",
"keywords": [ "links" ],
"textdomain": "default",
"attributes": {
diff --git a/wp-includes/blocks/social-links/editor-rtl.css b/wp-includes/blocks/social-links/editor-rtl.css
index 87d1c65..36d79e8 100644
--- a/wp-includes/blocks/social-links/editor-rtl.css
+++ b/wp-includes/blocks/social-links/editor-rtl.css
@@ -2,18 +2,24 @@
display:inline-block;
margin-right:8px;
}
-.wp-block-social-links.wp-block-social-links{
- background:none;
-}
.wp-social-link:hover{
transform:none;
}
-.editor-styles-wrapper .wp-block-social-links{
+:root :where(.wp-block-social-links),:root :where(.wp-block-social-links.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link){
padding:0;
}
+:root :where(.wp-block-social-links__social-placeholder .wp-social-link){
+ padding:.25em;
+}
+
+:root :where(.wp-block-social-links.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link){
+ padding-left:.66667em;
+ padding-right:.66667em;
+}
+
.wp-block-social-links__social-placeholder{
display:flex;
list-style:none;
@@ -30,16 +36,6 @@
.wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{
display:flex;
}
-.wp-block-social-links__social-placeholder .wp-social-link{
- padding:.25em;
-}
-.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link{
- padding-left:.66667em;
- padding-right:.66667em;
-}
-.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link{
- padding:0;
-}
.wp-block-social-links__social-placeholder .wp-social-link:before{
border-radius:50%;
content:"";
@@ -60,7 +56,6 @@
margin-bottom:auto;
margin-top:auto;
min-height:24px;
- order:2;
padding-left:8px;
}
diff --git a/wp-includes/blocks/social-links/editor-rtl.min.css b/wp-includes/blocks/social-links/editor-rtl.min.css
index 3e65466..517bd4c 100644
--- a/wp-includes/blocks/social-links/editor-rtl.min.css
+++ b/wp-includes/blocks/social-links/editor-rtl.min.css
@@ -1 +1 @@
-.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-right:8px}.wp-block-social-links.wp-block-social-links{background:none}.wp-social-link:hover{transform:none}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links__social-placeholder{display:flex;list-style:none;opacity:.8}.wp-block-social-links__social-placeholder>.wp-social-link{margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;visibility:hidden;width:0!important}.wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{display:flex}.wp-block-social-links__social-placeholder .wp-social-link{padding:.25em}.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link{padding-left:.66667em;padding-right:.66667em}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link{padding:0}.wp-block-social-links__social-placeholder .wp-social-link:before{border-radius:50%;content:"";display:block;height:1em;width:1em}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link:before{background:currentColor}.wp-block-social-links .wp-block-social-links__social-prompt{cursor:default;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:24px;list-style:none;margin-bottom:auto;margin-top:auto;min-height:24px;order:2;padding-left:8px}.wp-block.wp-block-social-links.aligncenter,.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .components-button:disabled{opacity:1}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-delay:0s;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} \ No newline at end of file
+.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-right:8px}.wp-social-link:hover{transform:none}:root :where(.wp-block-social-links),:root :where(.wp-block-social-links.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link){padding:0}:root :where(.wp-block-social-links__social-placeholder .wp-social-link){padding:.25em}:root :where(.wp-block-social-links.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link){padding-left:.66667em;padding-right:.66667em}.wp-block-social-links__social-placeholder{display:flex;list-style:none;opacity:.8}.wp-block-social-links__social-placeholder>.wp-social-link{margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;visibility:hidden;width:0!important}.wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{display:flex}.wp-block-social-links__social-placeholder .wp-social-link:before{border-radius:50%;content:"";display:block;height:1em;width:1em}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link:before{background:currentColor}.wp-block-social-links .wp-block-social-links__social-prompt{cursor:default;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:24px;list-style:none;margin-bottom:auto;margin-top:auto;min-height:24px;padding-left:8px}.wp-block.wp-block-social-links.aligncenter,.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .components-button:disabled{opacity:1}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-delay:0s;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} \ No newline at end of file
diff --git a/wp-includes/blocks/social-links/editor.css b/wp-includes/blocks/social-links/editor.css
index c75a75c..bac5c47 100644
--- a/wp-includes/blocks/social-links/editor.css
+++ b/wp-includes/blocks/social-links/editor.css
@@ -2,18 +2,24 @@
display:inline-block;
margin-left:8px;
}
-.wp-block-social-links.wp-block-social-links{
- background:none;
-}
.wp-social-link:hover{
transform:none;
}
-.editor-styles-wrapper .wp-block-social-links{
+:root :where(.wp-block-social-links),:root :where(.wp-block-social-links.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link){
padding:0;
}
+:root :where(.wp-block-social-links__social-placeholder .wp-social-link){
+ padding:.25em;
+}
+
+:root :where(.wp-block-social-links.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link){
+ padding-left:.66667em;
+ padding-right:.66667em;
+}
+
.wp-block-social-links__social-placeholder{
display:flex;
list-style:none;
@@ -30,16 +36,6 @@
.wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{
display:flex;
}
-.wp-block-social-links__social-placeholder .wp-social-link{
- padding:.25em;
-}
-.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link{
- padding-left:.66667em;
- padding-right:.66667em;
-}
-.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link{
- padding:0;
-}
.wp-block-social-links__social-placeholder .wp-social-link:before{
border-radius:50%;
content:"";
@@ -60,7 +56,6 @@
margin-bottom:auto;
margin-top:auto;
min-height:24px;
- order:2;
padding-right:8px;
}
diff --git a/wp-includes/blocks/social-links/editor.min.css b/wp-includes/blocks/social-links/editor.min.css
index e265ec2..b99ab62 100644
--- a/wp-includes/blocks/social-links/editor.min.css
+++ b/wp-includes/blocks/social-links/editor.min.css
@@ -1 +1 @@
-.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-left:8px}.wp-block-social-links.wp-block-social-links{background:none}.wp-social-link:hover{transform:none}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links__social-placeholder{display:flex;list-style:none;opacity:.8}.wp-block-social-links__social-placeholder>.wp-social-link{margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;visibility:hidden;width:0!important}.wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{display:flex}.wp-block-social-links__social-placeholder .wp-social-link{padding:.25em}.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link{padding-left:.66667em;padding-right:.66667em}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link{padding:0}.wp-block-social-links__social-placeholder .wp-social-link:before{border-radius:50%;content:"";display:block;height:1em;width:1em}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link:before{background:currentColor}.wp-block-social-links .wp-block-social-links__social-prompt{cursor:default;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:24px;list-style:none;margin-bottom:auto;margin-top:auto;min-height:24px;order:2;padding-right:8px}.wp-block.wp-block-social-links.aligncenter,.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .components-button:disabled{opacity:1}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-delay:0s;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} \ No newline at end of file
+.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-left:8px}.wp-social-link:hover{transform:none}:root :where(.wp-block-social-links),:root :where(.wp-block-social-links.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link){padding:0}:root :where(.wp-block-social-links__social-placeholder .wp-social-link){padding:.25em}:root :where(.wp-block-social-links.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link){padding-left:.66667em;padding-right:.66667em}.wp-block-social-links__social-placeholder{display:flex;list-style:none;opacity:.8}.wp-block-social-links__social-placeholder>.wp-social-link{margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;visibility:hidden;width:0!important}.wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{display:flex}.wp-block-social-links__social-placeholder .wp-social-link:before{border-radius:50%;content:"";display:block;height:1em;width:1em}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link:before{background:currentColor}.wp-block-social-links .wp-block-social-links__social-prompt{cursor:default;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:24px;list-style:none;margin-bottom:auto;margin-top:auto;min-height:24px;padding-right:8px}.wp-block.wp-block-social-links.aligncenter,.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .components-button:disabled{opacity:1}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-delay:0s;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} \ No newline at end of file
diff --git a/wp-includes/blocks/social-links/style-rtl.css b/wp-includes/blocks/social-links/style-rtl.css
index c564d34..46563c1 100644
--- a/wp-includes/blocks/social-links/style-rtl.css
+++ b/wp-includes/blocks/social-links/style-rtl.css
@@ -11,9 +11,6 @@
box-shadow:none;
text-decoration:none;
}
-.wp-block-social-links .wp-social-link a{
- padding:.25em;
-}
.wp-block-social-links .wp-social-link svg{
height:1em;
width:1em;
@@ -75,322 +72,342 @@
fill:currentColor;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bluesky{
+ background-color:#0a7aff;
+ color:#fff;
+}
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-gravatar{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-gravatar{
background-color:#1d4fc4;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-instagram{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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;
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-medium{
+ background-color:#000;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-meetup{
+:where(.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-patreon{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-patreon{
background-color:#000;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pinterest{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-reddit{
background-color:#ff4500;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-skype{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-telegram{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-telegram{
background-color:#2aabee;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-threads,.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tiktok{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-threads{
background-color:#000;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tumblr{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tiktok{
+ background-color:#000;
+ color:#fff;
+}
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-whatsapp{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-whatsapp{
background-color:#25d366;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-x{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-x{
background-color:#000;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link{
background:none;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link a{
- padding:0;
-}
-.wp-block-social-links.is-style-logos-only .wp-social-link svg{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link svg{
height:1.25em;
width:1.25em;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-amazon{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bluesky{
+ color:#0a7aff;
+}
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-gravatar{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-gravatar{
color:#1d4fc4;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-instagram{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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;
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-medium{
+ color:#000;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-meetup{
+:where(.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-patreon{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-patreon{
color:#000;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-pinterest{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-reddit{
color:#ff4500;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-skype{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-telegram{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-telegram{
color:#2aabee;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-threads,.wp-block-social-links.is-style-logos-only .wp-social-link-tiktok{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-threads{
+ color:#000;
+}
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tiktok{
color:#000;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-tumblr{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-whatsapp{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-whatsapp{
color:#25d366;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-wordpress{
+:where(.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-x{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-x{
color:#000;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-yelp{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-yelp{
color:#d32422;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-youtube{
+:where(.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{
+
+:root :where(.wp-block-social-links .wp-social-link a){
+ padding:.25em;
+}
+
+:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link a){
+ padding:0;
+}
+
+:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link a){
padding-left:.66667em;
padding-right:.66667em;
}
diff --git a/wp-includes/blocks/social-links/style-rtl.min.css b/wp-includes/blocks/social-links/style-rtl.min.css
index ac85bbe..0ed88c9 100644
--- a/wp-includes/blocks/social-links/style-rtl.min.css
+++ b/wp-includes/blocks/social-links/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-social-links{background:none;box-sizing:border-box;margin-right:0;padding-left:0;padding-right:0;text-indent:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{border-bottom:0;box-shadow:none;text-decoration:none}.wp-block-social-links .wp-social-link a{padding:.25em}.wp-block-social-links .wp-social-link svg{height:1em;width:1em}.wp-block-social-links .wp-social-link span:not(.screen-reader-text){font-size:.65em;margin-left:.5em;margin-right:.5em}.wp-block-social-links.has-small-icon-size{font-size:16px}.wp-block-social-links,.wp-block-social-links.has-normal-icon-size{font-size:24px}.wp-block-social-links.has-large-icon-size{font-size:36px}.wp-block-social-links.has-huge-icon-size{font-size:48px}.wp-block-social-links.aligncenter{display:flex;justify-content:center}.wp-block-social-links.alignright{justify-content:flex-end}.wp-block-social-link{border-radius:9999px;display:block;height:auto;transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.wp-block-social-link{transition-delay:0s;transition-duration:0s}}.wp-block-social-link a{align-items:center;display:flex;line-height:0;transition:transform .1s ease}.wp-block-social-link:hover{transform:scale(1.1)}.wp-block-social-links .wp-block-social-link.wp-social-link{display:inline-block;margin:0;padding:0}.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:active,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:visited{color:currentColor;fill:currentColor}.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-gravatar{background-color:#1d4fc4;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-patreon{background-color:#000;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:#ff4500;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-telegram{background-color:#2aabee;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-threads,.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tiktok{background-color:#000;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-whatsapp{background-color:#25d366;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-x{background-color:#000;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}.wp-block-social-links.is-style-logos-only .wp-social-link a{padding:0}.wp-block-social-links.is-style-logos-only .wp-social-link svg{height:1.25em;width:1.25em}.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-gravatar{color:#1d4fc4}.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-patreon{color:#000}.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:#ff4500}.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-telegram{color:#2aabee}.wp-block-social-links.is-style-logos-only .wp-social-link-threads,.wp-block-social-links.is-style-logos-only .wp-social-link-tiktok{color:#000}.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-whatsapp{color:#25d366}.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-x{color:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-yelp{color:#d32422}.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:.66667em;padding-right:.66667em}.wp-block-social-links:not(.has-icon-color):not(.has-icon-background-color) .wp-social-link-snapchat .wp-block-social-link-label{color:#000} \ No newline at end of file
+.wp-block-social-links{background:none;box-sizing:border-box;margin-right:0;padding-left:0;padding-right:0;text-indent:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{border-bottom:0;box-shadow:none;text-decoration:none}.wp-block-social-links .wp-social-link svg{height:1em;width:1em}.wp-block-social-links .wp-social-link span:not(.screen-reader-text){font-size:.65em;margin-left:.5em;margin-right:.5em}.wp-block-social-links.has-small-icon-size{font-size:16px}.wp-block-social-links,.wp-block-social-links.has-normal-icon-size{font-size:24px}.wp-block-social-links.has-large-icon-size{font-size:36px}.wp-block-social-links.has-huge-icon-size{font-size:48px}.wp-block-social-links.aligncenter{display:flex;justify-content:center}.wp-block-social-links.alignright{justify-content:flex-end}.wp-block-social-link{border-radius:9999px;display:block;height:auto;transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.wp-block-social-link{transition-delay:0s;transition-duration:0s}}.wp-block-social-link a{align-items:center;display:flex;line-height:0;transition:transform .1s ease}.wp-block-social-link:hover{transform:scale(1.1)}.wp-block-social-links .wp-block-social-link.wp-social-link{display:inline-block;margin:0;padding:0}.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:active,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:visited{color:currentColor;fill:currentColor}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link{background-color:#f0f0f0;color:#444}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-amazon{background-color:#f90;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-behance{background-color:#0757fe;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bluesky{background-color:#0a7aff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-etsy{background-color:#f45800;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-facebook{background-color:#1778f2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-flickr{background-color:#0461dd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-foursquare{background-color:#e65678;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-github{background-color:#24292d;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-google{background-color:#ea4434;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-gravatar{background-color:#1d4fc4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-instagram{background-color:#f00075;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-linkedin{background-color:#0d66c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-medium{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-meetup{background-color:#f6405f;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-patreon{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pinterest{background-color:#e60122;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pocket{background-color:#ef4155;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-reddit{background-color:#ff4500;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-skype{background-color:#0478d7;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-snapchat{background-color:#fefc00;color:#fff;stroke:#000}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-spotify{background-color:#1bd760;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-telegram{background-color:#2aabee;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-threads{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tiktok{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tumblr{background-color:#011835;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitch{background-color:#6440a4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitter{background-color:#1da1f2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vk{background-color:#4680c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-whatsapp{background-color:#25d366;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-x{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-yelp{background-color:#d32422;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-youtube{background-color:red;color:#fff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link{background:none}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link svg{height:1.25em;width:1.25em}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-amazon{color:#f90}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bandcamp{color:#1ea0c3}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-behance{color:#0757fe}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bluesky{color:#0a7aff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-codepen{color:#1e1f26}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-deviantart{color:#02e49b}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dribbble{color:#e94c89}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dropbox{color:#4280ff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-etsy{color:#f45800}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-facebook{color:#1778f2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-fivehundredpx{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-flickr{color:#0461dd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-foursquare{color:#e65678}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-github{color:#24292d}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-goodreads{color:#382110}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-google{color:#ea4434}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-gravatar{color:#1d4fc4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-instagram{color:#f00075}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-lastfm{color:#e21b24}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-linkedin{color:#0d66c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-mastodon{color:#3288d4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-medium{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-meetup{color:#f6405f}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-patreon{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pinterest{color:#e60122}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pocket{color:#ef4155}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-reddit{color:#ff4500}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-skype{color:#0478d7}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-snapchat{color:#fff;stroke:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-soundcloud{color:#ff5600}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-spotify{color:#1bd760}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-telegram{color:#2aabee}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-threads{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tiktok{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tumblr{color:#011835}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitch{color:#6440a4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitter{color:#1da1f2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vimeo{color:#1eb7ea}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vk{color:#4680c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-whatsapp{color:#25d366}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-wordpress{color:#3499cd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-x{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-yelp{color:#d32422}:where(.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}:root :where(.wp-block-social-links .wp-social-link a){padding:.25em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link a){padding:0}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link a){padding-left:.66667em;padding-right:.66667em}.wp-block-social-links:not(.has-icon-color):not(.has-icon-background-color) .wp-social-link-snapchat .wp-block-social-link-label{color:#000} \ No newline at end of file
diff --git a/wp-includes/blocks/social-links/style.css b/wp-includes/blocks/social-links/style.css
index f86085d..3c2dbe5 100644
--- a/wp-includes/blocks/social-links/style.css
+++ b/wp-includes/blocks/social-links/style.css
@@ -11,9 +11,6 @@
box-shadow:none;
text-decoration:none;
}
-.wp-block-social-links .wp-social-link a{
- padding:.25em;
-}
.wp-block-social-links .wp-social-link svg{
height:1em;
width:1em;
@@ -75,322 +72,342 @@
fill:currentColor;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bluesky{
+ background-color:#0a7aff;
+ color:#fff;
+}
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-gravatar{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-gravatar{
background-color:#1d4fc4;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-instagram{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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;
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-medium{
+ background-color:#000;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-meetup{
+:where(.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-patreon{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-patreon{
background-color:#000;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pinterest{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-reddit{
background-color:#ff4500;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-skype{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-telegram{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-telegram{
background-color:#2aabee;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-threads,.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tiktok{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-threads{
background-color:#000;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tumblr{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tiktok{
+ background-color:#000;
+ color:#fff;
+}
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-whatsapp{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-whatsapp{
background-color:#25d366;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-x{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-x{
background-color:#000;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link{
background:none;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link a{
- padding:0;
-}
-.wp-block-social-links.is-style-logos-only .wp-social-link svg{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link svg{
height:1.25em;
width:1.25em;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-amazon{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bluesky{
+ color:#0a7aff;
+}
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-gravatar{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-gravatar{
color:#1d4fc4;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-instagram{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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;
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-medium{
+ color:#000;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-meetup{
+:where(.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-patreon{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-patreon{
color:#000;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-pinterest{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-reddit{
color:#ff4500;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-skype{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-telegram{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-telegram{
color:#2aabee;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-threads,.wp-block-social-links.is-style-logos-only .wp-social-link-tiktok{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-threads{
+ color:#000;
+}
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tiktok{
color:#000;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-tumblr{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-whatsapp{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-whatsapp{
color:#25d366;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-wordpress{
+:where(.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-x{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-x{
color:#000;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-yelp{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-yelp{
color:#d32422;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-youtube{
+:where(.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{
+
+:root :where(.wp-block-social-links .wp-social-link a){
+ padding:.25em;
+}
+
+:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link a){
+ padding:0;
+}
+
+:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link a){
padding-left:.66667em;
padding-right:.66667em;
}
diff --git a/wp-includes/blocks/social-links/style.min.css b/wp-includes/blocks/social-links/style.min.css
index fdb8c92..cb9548f 100644
--- a/wp-includes/blocks/social-links/style.min.css
+++ b/wp-includes/blocks/social-links/style.min.css
@@ -1 +1 @@
-.wp-block-social-links{background:none;box-sizing:border-box;margin-left:0;padding-left:0;padding-right:0;text-indent:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{border-bottom:0;box-shadow:none;text-decoration:none}.wp-block-social-links .wp-social-link a{padding:.25em}.wp-block-social-links .wp-social-link svg{height:1em;width:1em}.wp-block-social-links .wp-social-link span:not(.screen-reader-text){font-size:.65em;margin-left:.5em;margin-right:.5em}.wp-block-social-links.has-small-icon-size{font-size:16px}.wp-block-social-links,.wp-block-social-links.has-normal-icon-size{font-size:24px}.wp-block-social-links.has-large-icon-size{font-size:36px}.wp-block-social-links.has-huge-icon-size{font-size:48px}.wp-block-social-links.aligncenter{display:flex;justify-content:center}.wp-block-social-links.alignright{justify-content:flex-end}.wp-block-social-link{border-radius:9999px;display:block;height:auto;transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.wp-block-social-link{transition-delay:0s;transition-duration:0s}}.wp-block-social-link a{align-items:center;display:flex;line-height:0;transition:transform .1s ease}.wp-block-social-link:hover{transform:scale(1.1)}.wp-block-social-links .wp-block-social-link.wp-social-link{display:inline-block;margin:0;padding:0}.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:active,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:visited{color:currentColor;fill:currentColor}.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-gravatar{background-color:#1d4fc4;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-patreon{background-color:#000;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:#ff4500;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-telegram{background-color:#2aabee;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-threads,.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tiktok{background-color:#000;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-whatsapp{background-color:#25d366;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-x{background-color:#000;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}.wp-block-social-links.is-style-logos-only .wp-social-link a{padding:0}.wp-block-social-links.is-style-logos-only .wp-social-link svg{height:1.25em;width:1.25em}.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-gravatar{color:#1d4fc4}.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-patreon{color:#000}.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:#ff4500}.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-telegram{color:#2aabee}.wp-block-social-links.is-style-logos-only .wp-social-link-threads,.wp-block-social-links.is-style-logos-only .wp-social-link-tiktok{color:#000}.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-whatsapp{color:#25d366}.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-x{color:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-yelp{color:#d32422}.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:.66667em;padding-right:.66667em}.wp-block-social-links:not(.has-icon-color):not(.has-icon-background-color) .wp-social-link-snapchat .wp-block-social-link-label{color:#000} \ No newline at end of file
+.wp-block-social-links{background:none;box-sizing:border-box;margin-left:0;padding-left:0;padding-right:0;text-indent:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{border-bottom:0;box-shadow:none;text-decoration:none}.wp-block-social-links .wp-social-link svg{height:1em;width:1em}.wp-block-social-links .wp-social-link span:not(.screen-reader-text){font-size:.65em;margin-left:.5em;margin-right:.5em}.wp-block-social-links.has-small-icon-size{font-size:16px}.wp-block-social-links,.wp-block-social-links.has-normal-icon-size{font-size:24px}.wp-block-social-links.has-large-icon-size{font-size:36px}.wp-block-social-links.has-huge-icon-size{font-size:48px}.wp-block-social-links.aligncenter{display:flex;justify-content:center}.wp-block-social-links.alignright{justify-content:flex-end}.wp-block-social-link{border-radius:9999px;display:block;height:auto;transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.wp-block-social-link{transition-delay:0s;transition-duration:0s}}.wp-block-social-link a{align-items:center;display:flex;line-height:0;transition:transform .1s ease}.wp-block-social-link:hover{transform:scale(1.1)}.wp-block-social-links .wp-block-social-link.wp-social-link{display:inline-block;margin:0;padding:0}.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:active,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:visited{color:currentColor;fill:currentColor}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link{background-color:#f0f0f0;color:#444}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-amazon{background-color:#f90;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-behance{background-color:#0757fe;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bluesky{background-color:#0a7aff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-etsy{background-color:#f45800;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-facebook{background-color:#1778f2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-flickr{background-color:#0461dd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-foursquare{background-color:#e65678;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-github{background-color:#24292d;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-google{background-color:#ea4434;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-gravatar{background-color:#1d4fc4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-instagram{background-color:#f00075;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-linkedin{background-color:#0d66c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-medium{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-meetup{background-color:#f6405f;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-patreon{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pinterest{background-color:#e60122;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pocket{background-color:#ef4155;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-reddit{background-color:#ff4500;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-skype{background-color:#0478d7;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-snapchat{background-color:#fefc00;color:#fff;stroke:#000}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-spotify{background-color:#1bd760;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-telegram{background-color:#2aabee;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-threads{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tiktok{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tumblr{background-color:#011835;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitch{background-color:#6440a4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitter{background-color:#1da1f2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vk{background-color:#4680c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-whatsapp{background-color:#25d366;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-x{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-yelp{background-color:#d32422;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-youtube{background-color:red;color:#fff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link{background:none}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link svg{height:1.25em;width:1.25em}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-amazon{color:#f90}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bandcamp{color:#1ea0c3}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-behance{color:#0757fe}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bluesky{color:#0a7aff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-codepen{color:#1e1f26}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-deviantart{color:#02e49b}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dribbble{color:#e94c89}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dropbox{color:#4280ff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-etsy{color:#f45800}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-facebook{color:#1778f2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-fivehundredpx{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-flickr{color:#0461dd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-foursquare{color:#e65678}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-github{color:#24292d}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-goodreads{color:#382110}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-google{color:#ea4434}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-gravatar{color:#1d4fc4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-instagram{color:#f00075}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-lastfm{color:#e21b24}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-linkedin{color:#0d66c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-mastodon{color:#3288d4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-medium{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-meetup{color:#f6405f}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-patreon{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pinterest{color:#e60122}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pocket{color:#ef4155}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-reddit{color:#ff4500}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-skype{color:#0478d7}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-snapchat{color:#fff;stroke:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-soundcloud{color:#ff5600}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-spotify{color:#1bd760}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-telegram{color:#2aabee}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-threads{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tiktok{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tumblr{color:#011835}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitch{color:#6440a4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitter{color:#1da1f2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vimeo{color:#1eb7ea}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vk{color:#4680c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-whatsapp{color:#25d366}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-wordpress{color:#3499cd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-x{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-yelp{color:#d32422}:where(.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}:root :where(.wp-block-social-links .wp-social-link a){padding:.25em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link a){padding:0}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link a){padding-left:.66667em;padding-right:.66667em}.wp-block-social-links:not(.has-icon-color):not(.has-icon-background-color) .wp-social-link-snapchat .wp-block-social-link-label{color:#000} \ No newline at end of file
diff --git a/wp-includes/blocks/table/block.json b/wp-includes/blocks/table/block.json
index 44177ef..11dd5b5 100644
--- a/wp-includes/blocks/table/block.json
+++ b/wp-includes/blocks/table/block.json
@@ -9,7 +9,7 @@
"attributes": {
"hasFixedLayout": {
"type": "boolean",
- "default": false
+ "default": true
},
"caption": {
"type": "rich-text",
diff --git a/wp-includes/blocks/table/theme-rtl.css b/wp-includes/blocks/table/theme-rtl.css
index f8b6627..55e7a24 100644
--- a/wp-includes/blocks/table/theme-rtl.css
+++ b/wp-includes/blocks/table/theme-rtl.css
@@ -4,11 +4,11 @@
.wp-block-table td,.wp-block-table th{
word-break:normal;
}
-.wp-block-table figcaption{
+.wp-block-table :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-table figcaption{
+.is-dark-theme .wp-block-table :where(figcaption){
color:#ffffffa6;
} \ No newline at end of file
diff --git a/wp-includes/blocks/table/theme-rtl.min.css b/wp-includes/blocks/table/theme-rtl.min.css
index ca464b7..43b6381 100644
--- a/wp-includes/blocks/table/theme-rtl.min.css
+++ b/wp-includes/blocks/table/theme-rtl.min.css
@@ -1 +1 @@
-.wp-block-table{margin:0 0 1em}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:#ffffffa6} \ No newline at end of file
+.wp-block-table{margin:0 0 1em}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table :where(figcaption){color:#ffffffa6} \ No newline at end of file
diff --git a/wp-includes/blocks/table/theme.css b/wp-includes/blocks/table/theme.css
index f8b6627..55e7a24 100644
--- a/wp-includes/blocks/table/theme.css
+++ b/wp-includes/blocks/table/theme.css
@@ -4,11 +4,11 @@
.wp-block-table td,.wp-block-table th{
word-break:normal;
}
-.wp-block-table figcaption{
+.wp-block-table :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-table figcaption{
+.is-dark-theme .wp-block-table :where(figcaption){
color:#ffffffa6;
} \ No newline at end of file
diff --git a/wp-includes/blocks/table/theme.min.css b/wp-includes/blocks/table/theme.min.css
index ca464b7..43b6381 100644
--- a/wp-includes/blocks/table/theme.min.css
+++ b/wp-includes/blocks/table/theme.min.css
@@ -1 +1 @@
-.wp-block-table{margin:0 0 1em}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:#ffffffa6} \ No newline at end of file
+.wp-block-table{margin:0 0 1em}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table :where(figcaption){color:#ffffffa6} \ No newline at end of file
diff --git a/wp-includes/blocks/tag-cloud.php b/wp-includes/blocks/tag-cloud.php
index 7ff5f78..69b8c25 100644
--- a/wp-includes/blocks/tag-cloud.php
+++ b/wp-includes/blocks/tag-cloud.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/tag-cloud` block on server.
*
+ * @since 5.2.0
+ *
* @param array $attributes The block attributes.
*
* @return string Returns the tag cloud for selected taxonomy.
@@ -42,6 +44,8 @@ function render_block_core_tag_cloud( $attributes ) {
/**
* Registers the `core/tag-cloud` block on server.
+ *
+ * @since 5.2.0
*/
function register_block_core_tag_cloud() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/tag-cloud/style-rtl.css b/wp-includes/blocks/tag-cloud/style-rtl.css
index 3384c5d..5067dd1 100644
--- a/wp-includes/blocks/tag-cloud/style-rtl.css
+++ b/wp-includes/blocks/tag-cloud/style-rtl.css
@@ -18,12 +18,14 @@
margin-right:5px;
text-decoration:none;
}
-.wp-block-tag-cloud.is-style-outline{
+
+:root :where(.wp-block-tag-cloud.is-style-outline){
display:flex;
flex-wrap:wrap;
gap:1ch;
}
-.wp-block-tag-cloud.is-style-outline a{
+
+:root :where(.wp-block-tag-cloud.is-style-outline a){
border:1px solid;
font-size:unset !important;
margin-left:0;
diff --git a/wp-includes/blocks/tag-cloud/style-rtl.min.css b/wp-includes/blocks/tag-cloud/style-rtl.min.css
index 3d540b2..8bb9b6e 100644
--- a/wp-includes/blocks/tag-cloud/style-rtl.min.css
+++ b/wp-includes/blocks/tag-cloud/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-tag-cloud{box-sizing:border-box}.wp-block-tag-cloud.aligncenter{justify-content:center;text-align:center}.wp-block-tag-cloud.alignfull{padding-left:1em;padding-right:1em}.wp-block-tag-cloud a{display:inline-block;margin-left:5px}.wp-block-tag-cloud span{display:inline-block;margin-right:5px;text-decoration:none}.wp-block-tag-cloud.is-style-outline{display:flex;flex-wrap:wrap;gap:1ch}.wp-block-tag-cloud.is-style-outline a{border:1px solid;font-size:unset!important;margin-left:0;padding:1ch 2ch;text-decoration:none!important} \ No newline at end of file
+.wp-block-tag-cloud{box-sizing:border-box}.wp-block-tag-cloud.aligncenter{justify-content:center;text-align:center}.wp-block-tag-cloud.alignfull{padding-left:1em;padding-right:1em}.wp-block-tag-cloud a{display:inline-block;margin-left:5px}.wp-block-tag-cloud span{display:inline-block;margin-right:5px;text-decoration:none}:root :where(.wp-block-tag-cloud.is-style-outline){display:flex;flex-wrap:wrap;gap:1ch}:root :where(.wp-block-tag-cloud.is-style-outline a){border:1px solid;font-size:unset!important;margin-left:0;padding:1ch 2ch;text-decoration:none!important} \ No newline at end of file
diff --git a/wp-includes/blocks/tag-cloud/style.css b/wp-includes/blocks/tag-cloud/style.css
index 4b4c71e..6542c79 100644
--- a/wp-includes/blocks/tag-cloud/style.css
+++ b/wp-includes/blocks/tag-cloud/style.css
@@ -18,12 +18,14 @@
margin-left:5px;
text-decoration:none;
}
-.wp-block-tag-cloud.is-style-outline{
+
+:root :where(.wp-block-tag-cloud.is-style-outline){
display:flex;
flex-wrap:wrap;
gap:1ch;
}
-.wp-block-tag-cloud.is-style-outline a{
+
+:root :where(.wp-block-tag-cloud.is-style-outline a){
border:1px solid;
font-size:unset !important;
margin-right:0;
diff --git a/wp-includes/blocks/tag-cloud/style.min.css b/wp-includes/blocks/tag-cloud/style.min.css
index ac30a79..34c85d3 100644
--- a/wp-includes/blocks/tag-cloud/style.min.css
+++ b/wp-includes/blocks/tag-cloud/style.min.css
@@ -1 +1 @@
-.wp-block-tag-cloud{box-sizing:border-box}.wp-block-tag-cloud.aligncenter{justify-content:center;text-align:center}.wp-block-tag-cloud.alignfull{padding-left:1em;padding-right:1em}.wp-block-tag-cloud a{display:inline-block;margin-right:5px}.wp-block-tag-cloud span{display:inline-block;margin-left:5px;text-decoration:none}.wp-block-tag-cloud.is-style-outline{display:flex;flex-wrap:wrap;gap:1ch}.wp-block-tag-cloud.is-style-outline a{border:1px solid;font-size:unset!important;margin-right:0;padding:1ch 2ch;text-decoration:none!important} \ No newline at end of file
+.wp-block-tag-cloud{box-sizing:border-box}.wp-block-tag-cloud.aligncenter{justify-content:center;text-align:center}.wp-block-tag-cloud.alignfull{padding-left:1em;padding-right:1em}.wp-block-tag-cloud a{display:inline-block;margin-right:5px}.wp-block-tag-cloud span{display:inline-block;margin-left:5px;text-decoration:none}:root :where(.wp-block-tag-cloud.is-style-outline){display:flex;flex-wrap:wrap;gap:1ch}:root :where(.wp-block-tag-cloud.is-style-outline a){border:1px solid;font-size:unset!important;margin-right:0;padding:1ch 2ch;text-decoration:none!important} \ No newline at end of file
diff --git a/wp-includes/blocks/template-part.php b/wp-includes/blocks/template-part.php
index 4332bb3..be867c4 100644
--- a/wp-includes/blocks/template-part.php
+++ b/wp-includes/blocks/template-part.php
@@ -8,6 +8,10 @@
/**
* Renders the `core/template-part` block on the server.
*
+ * @since 5.9.0
+ *
+ * @global WP_Embed $wp_embed WordPress Embed object.
+ *
* @param array $attributes The block attributes.
*
* @return string The render.
@@ -174,6 +178,8 @@ function render_block_core_template_part( $attributes ) {
/**
* Returns an array of area variation objects for the template part block.
*
+ * @since 6.1.0
+ *
* @param array $instance_variations The variations for instances.
*
* @return array Array containing the block variation objects.
@@ -212,6 +218,8 @@ function build_template_part_block_area_variations( $instance_variations ) {
/**
* Returns an array of instance variation objects for the template part block
*
+ * @since 6.1.0
+ *
* @return array Array containing the block variation objects.
*/
function build_template_part_block_instance_variations() {
@@ -266,6 +274,8 @@ function build_template_part_block_instance_variations() {
/**
* Returns an array of all template part block variations.
*
+ * @since 5.9.0
+ *
* @return array Array containing the block variation objects.
*/
function build_template_part_block_variations() {
@@ -276,6 +286,8 @@ function build_template_part_block_variations() {
/**
* Registers the `core/template-part` block on the server.
+ *
+ * @since 5.9.0
*/
function register_block_core_template_part() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/template-part/editor-rtl.css b/wp-includes/blocks/template-part/editor-rtl.css
index 71fdf32..583fcad 100644
--- a/wp-includes/blocks/template-part/editor-rtl.css
+++ b/wp-includes/blocks/template-part/editor-rtl.css
@@ -21,13 +21,13 @@
top:0;
z-index:2;
}
-
-.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected{
- box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
+.block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{
+ outline-color:var(--wp-block-synced-color);
}
-.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
+.is-dark-theme .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{
+ outline-color:#fff;
}
-.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff;
+
+.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.has-editable-outline:after{
+ border:none;
} \ No newline at end of file
diff --git a/wp-includes/blocks/template-part/editor-rtl.min.css b/wp-includes/blocks/template-part/editor-rtl.min.css
index a3af03d..dc59dbc 100644
--- a/wp-includes/blocks/template-part/editor-rtl.min.css
+++ b/wp-includes/blocks/template-part/editor-rtl.min.css
@@ -1 +1 @@
-.block-editor-template-part__selection-modal{z-index:1000001}.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-editor-template-part__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-template-part__selection-search{background:#fff;padding:16px 0;position:sticky;top:0;z-index:2}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff} \ No newline at end of file
+.block-editor-template-part__selection-modal{z-index:1000001}.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-editor-template-part__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-template-part__selection-search{background:#fff;padding:16px 0;position:sticky;top:0;z-index:2}.block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{outline-color:var(--wp-block-synced-color)}.is-dark-theme .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{outline-color:#fff}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.has-editable-outline:after{border:none} \ No newline at end of file
diff --git a/wp-includes/blocks/template-part/editor.css b/wp-includes/blocks/template-part/editor.css
index 71fdf32..583fcad 100644
--- a/wp-includes/blocks/template-part/editor.css
+++ b/wp-includes/blocks/template-part/editor.css
@@ -21,13 +21,13 @@
top:0;
z-index:2;
}
-
-.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected{
- box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
+.block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{
+ outline-color:var(--wp-block-synced-color);
}
-.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
+.is-dark-theme .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{
+ outline-color:#fff;
}
-.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff;
+
+.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.has-editable-outline:after{
+ border:none;
} \ No newline at end of file
diff --git a/wp-includes/blocks/template-part/editor.min.css b/wp-includes/blocks/template-part/editor.min.css
index a3af03d..dc59dbc 100644
--- a/wp-includes/blocks/template-part/editor.min.css
+++ b/wp-includes/blocks/template-part/editor.min.css
@@ -1 +1 @@
-.block-editor-template-part__selection-modal{z-index:1000001}.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-editor-template-part__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-template-part__selection-search{background:#fff;padding:16px 0;position:sticky;top:0;z-index:2}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff} \ No newline at end of file
+.block-editor-template-part__selection-modal{z-index:1000001}.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-editor-template-part__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-template-part__selection-search{background:#fff;padding:16px 0;position:sticky;top:0;z-index:2}.block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{outline-color:var(--wp-block-synced-color)}.is-dark-theme .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{outline-color:#fff}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.has-editable-outline:after{border:none} \ No newline at end of file
diff --git a/wp-includes/blocks/template-part/theme-rtl.css b/wp-includes/blocks/template-part/theme-rtl.css
index 6c5262c..50aa465 100644
--- a/wp-includes/blocks/template-part/theme-rtl.css
+++ b/wp-includes/blocks/template-part/theme-rtl.css
@@ -1,4 +1,4 @@
-.wp-block-template-part.has-background{
+:root :where(.wp-block-template-part.has-background){
margin-bottom:0;
margin-top:0;
padding:1.25em 2.375em;
diff --git a/wp-includes/blocks/template-part/theme-rtl.min.css b/wp-includes/blocks/template-part/theme-rtl.min.css
index 551636b..289918a 100644
--- a/wp-includes/blocks/template-part/theme-rtl.min.css
+++ b/wp-includes/blocks/template-part/theme-rtl.min.css
@@ -1 +1 @@
-.wp-block-template-part.has-background{margin-bottom:0;margin-top:0;padding:1.25em 2.375em} \ No newline at end of file
+:root :where(.wp-block-template-part.has-background){margin-bottom:0;margin-top:0;padding:1.25em 2.375em} \ No newline at end of file
diff --git a/wp-includes/blocks/template-part/theme.css b/wp-includes/blocks/template-part/theme.css
index 6c5262c..50aa465 100644
--- a/wp-includes/blocks/template-part/theme.css
+++ b/wp-includes/blocks/template-part/theme.css
@@ -1,4 +1,4 @@
-.wp-block-template-part.has-background{
+:root :where(.wp-block-template-part.has-background){
margin-bottom:0;
margin-top:0;
padding:1.25em 2.375em;
diff --git a/wp-includes/blocks/template-part/theme.min.css b/wp-includes/blocks/template-part/theme.min.css
index 551636b..289918a 100644
--- a/wp-includes/blocks/template-part/theme.min.css
+++ b/wp-includes/blocks/template-part/theme.min.css
@@ -1 +1 @@
-.wp-block-template-part.has-background{margin-bottom:0;margin-top:0;padding:1.25em 2.375em} \ No newline at end of file
+:root :where(.wp-block-template-part.has-background){margin-bottom:0;margin-top:0;padding:1.25em 2.375em} \ No newline at end of file
diff --git a/wp-includes/blocks/term-description.php b/wp-includes/blocks/term-description.php
index 011ec28..925b37f 100644
--- a/wp-includes/blocks/term-description.php
+++ b/wp-includes/blocks/term-description.php
@@ -8,6 +8,8 @@
/**
* Renders the `core/term-description` block on the server.
*
+ * @since 5.9.0
+ *
* @param array $attributes Block attributes.
*
* @return string Returns the description of the current taxonomy term, if available
@@ -37,6 +39,8 @@ function render_block_core_term_description( $attributes ) {
/**
* Registers the `core/term-description` block on the server.
+ *
+ * @since 5.9.0
*/
function register_block_core_term_description() {
register_block_type_from_metadata(
diff --git a/wp-includes/blocks/video/style-rtl.css b/wp-includes/blocks/video/style-rtl.css
index e10f427..ae4ac83 100644
--- a/wp-includes/blocks/video/style-rtl.css
+++ b/wp-includes/blocks/video/style-rtl.css
@@ -13,7 +13,7 @@
.wp-block-video.aligncenter{
text-align:center;
}
-.wp-block-video figcaption{
+.wp-block-video :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
} \ No newline at end of file
diff --git a/wp-includes/blocks/video/style-rtl.min.css b/wp-includes/blocks/video/style-rtl.min.css
index 43eb94a..0131406 100644
--- a/wp-includes/blocks/video/style-rtl.min.css
+++ b/wp-includes/blocks/video/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-video{box-sizing:border-box}.wp-block-video video{vertical-align:middle;width:100%}@supports (position:sticky){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-bottom:1em;margin-top:.5em} \ No newline at end of file
+.wp-block-video{box-sizing:border-box}.wp-block-video video{vertical-align:middle;width:100%}@supports (position:sticky){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video :where(figcaption){margin-bottom:1em;margin-top:.5em} \ No newline at end of file
diff --git a/wp-includes/blocks/video/style.css b/wp-includes/blocks/video/style.css
index e10f427..ae4ac83 100644
--- a/wp-includes/blocks/video/style.css
+++ b/wp-includes/blocks/video/style.css
@@ -13,7 +13,7 @@
.wp-block-video.aligncenter{
text-align:center;
}
-.wp-block-video figcaption{
+.wp-block-video :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
} \ No newline at end of file
diff --git a/wp-includes/blocks/video/style.min.css b/wp-includes/blocks/video/style.min.css
index 43eb94a..0131406 100644
--- a/wp-includes/blocks/video/style.min.css
+++ b/wp-includes/blocks/video/style.min.css
@@ -1 +1 @@
-.wp-block-video{box-sizing:border-box}.wp-block-video video{vertical-align:middle;width:100%}@supports (position:sticky){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-bottom:1em;margin-top:.5em} \ No newline at end of file
+.wp-block-video{box-sizing:border-box}.wp-block-video video{vertical-align:middle;width:100%}@supports (position:sticky){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video :where(figcaption){margin-bottom:1em;margin-top:.5em} \ No newline at end of file
diff --git a/wp-includes/blocks/video/theme-rtl.css b/wp-includes/blocks/video/theme-rtl.css
index 4578628..affc918 100644
--- a/wp-includes/blocks/video/theme-rtl.css
+++ b/wp-includes/blocks/video/theme-rtl.css
@@ -1,9 +1,9 @@
-.wp-block-video figcaption{
+.wp-block-video :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-video figcaption{
+.is-dark-theme .wp-block-video :where(figcaption){
color:#ffffffa6;
}
diff --git a/wp-includes/blocks/video/theme-rtl.min.css b/wp-includes/blocks/video/theme-rtl.min.css
index 84c9cee..6bf3645 100644
--- a/wp-includes/blocks/video/theme-rtl.min.css
+++ b/wp-includes/blocks/video/theme-rtl.min.css
@@ -1 +1 @@
-.wp-block-video figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video figcaption{color:#ffffffa6}.wp-block-video{margin:0 0 1em} \ No newline at end of file
+.wp-block-video :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video :where(figcaption){color:#ffffffa6}.wp-block-video{margin:0 0 1em} \ No newline at end of file
diff --git a/wp-includes/blocks/video/theme.css b/wp-includes/blocks/video/theme.css
index 4578628..affc918 100644
--- a/wp-includes/blocks/video/theme.css
+++ b/wp-includes/blocks/video/theme.css
@@ -1,9 +1,9 @@
-.wp-block-video figcaption{
+.wp-block-video :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-video figcaption{
+.is-dark-theme .wp-block-video :where(figcaption){
color:#ffffffa6;
}
diff --git a/wp-includes/blocks/video/theme.min.css b/wp-includes/blocks/video/theme.min.css
index 84c9cee..6bf3645 100644
--- a/wp-includes/blocks/video/theme.min.css
+++ b/wp-includes/blocks/video/theme.min.css
@@ -1 +1 @@
-.wp-block-video figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video figcaption{color:#ffffffa6}.wp-block-video{margin:0 0 1em} \ No newline at end of file
+.wp-block-video :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video :where(figcaption){color:#ffffffa6}.wp-block-video{margin:0 0 1em} \ No newline at end of file
diff --git a/wp-includes/blocks/widget-group.php b/wp-includes/blocks/widget-group.php
index 8c8584b..e876961 100644
--- a/wp-includes/blocks/widget-group.php
+++ b/wp-includes/blocks/widget-group.php
@@ -8,6 +8,11 @@
/**
* Renders the 'core/widget-group' block.
*
+ * @since 5.9.0
+ *
+ * @global array $wp_registered_sidebars
+ * @global int|string $_sidebar_being_rendered
+ *
* @param array $attributes The block attributes.
* @param string $content The block content.
* @param WP_Block $block The block.
@@ -42,6 +47,8 @@ function render_block_core_widget_group( $attributes, $content, $block ) {
/**
* Registers the 'core/widget-group' block.
+ *
+ * @since 5.9.0
*/
function register_block_core_widget_group() {
register_block_type_from_metadata(
@@ -59,6 +66,10 @@ add_action( 'init', 'register_block_core_widget_group' );
* it. This lets us get to the current sidebar in
* render_block_core_widget_group().
*
+ * @since 5.9.0
+ *
+ * @global int|string $_sidebar_being_rendered
+ *
* @param int|string $index Index, name, or ID of the dynamic sidebar.
*/
function note_sidebar_being_rendered( $index ) {
@@ -70,6 +81,10 @@ add_action( 'dynamic_sidebar_before', 'note_sidebar_being_rendered' );
/**
* Clear whatever we set in note_sidebar_being_rendered() after WordPress
* finishes rendering a sidebar.
+ *
+ * @since 5.9.0
+ *
+ * @global int|string $_sidebar_being_rendered
*/
function discard_sidebar_being_rendered() {
global $_sidebar_being_rendered;
diff --git a/wp-includes/blocks/widget-group/block.json b/wp-includes/blocks/widget-group/block.json
index 0e59e58..6e7ba57 100644
--- a/wp-includes/blocks/widget-group/block.json
+++ b/wp-includes/blocks/widget-group/block.json
@@ -2,6 +2,7 @@
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "core/widget-group",
+ "title": "Widget Group",
"category": "widgets",
"attributes": {
"title": {
diff --git a/wp-includes/bookmark-template.php b/wp-includes/bookmark-template.php
index d9bca2b..d587888 100644
--- a/wp-includes/bookmark-template.php
+++ b/wp-includes/bookmark-template.php
@@ -124,11 +124,11 @@ function _walk_bookmarks( $bookmarks, $args = '' ) {
$output .= $parsed_args['link_before'];
- if ( null != $bookmark->link_image && $parsed_args['show_images'] ) {
+ if ( '' !== $bookmark->link_image && $parsed_args['show_images'] ) {
if ( str_starts_with( $bookmark->link_image, 'http' ) ) {
- $output .= "<img src=\"$bookmark->link_image\" $alt $title />";
+ $output .= '<img src="' . $bookmark->link_image . '"' . $alt . $title . ' />';
} else { // If it's a relative path.
- $output .= '<img src="' . get_option( 'siteurl' ) . "$bookmark->link_image\" $alt $title />";
+ $output .= '<img src="' . get_option( 'siteurl' ) . $bookmark->link_image . '"' . $alt . $title . ' />';
}
if ( $parsed_args['show_name'] ) {
$output .= " $name";
diff --git a/wp-includes/bookmark.php b/wp-includes/bookmark.php
index 7513a56..d4b5978 100644
--- a/wp-includes/bookmark.php
+++ b/wp-includes/bookmark.php
@@ -34,7 +34,7 @@ function get_bookmark( $bookmark, $output = OBJECT, $filter = 'raw' ) {
wp_cache_add( $bookmark->link_id, $bookmark, 'bookmark' );
$_bookmark = $bookmark;
} else {
- if ( isset( $GLOBALS['link'] ) && ( $GLOBALS['link']->link_id == $bookmark ) ) {
+ if ( isset( $GLOBALS['link'] ) && ( $GLOBALS['link']->link_id === $bookmark ) ) {
$_bookmark = & $GLOBALS['link'];
} else {
$_bookmark = wp_cache_get( $bookmark, 'bookmark' );
@@ -307,7 +307,7 @@ function get_bookmarks( $args = '' ) {
$query = "SELECT * $length $recently_updated_test $get_updated FROM $wpdb->links $join WHERE 1=1 $visible $category_query";
$query .= " $exclusions $inclusions $search";
$query .= " ORDER BY $orderby $order";
- if ( -1 != $parsed_args['limit'] ) {
+ if ( -1 !== $parsed_args['limit'] ) {
$query .= ' LIMIT ' . absint( $parsed_args['limit'] );
}
diff --git a/wp-includes/capabilities.php b/wp-includes/capabilities.php
index 26b150f..1263208 100644
--- a/wp-includes/capabilities.php
+++ b/wp-includes/capabilities.php
@@ -1088,10 +1088,8 @@ function is_super_admin( $user_id = false ) {
if ( is_array( $super_admins ) && in_array( $user->user_login, $super_admins, true ) ) {
return true;
}
- } else {
- if ( $user->has_cap( 'delete_users' ) ) {
- return true;
- }
+ } elseif ( $user->has_cap( 'delete_users' ) ) {
+ return true;
}
return false;
diff --git a/wp-includes/class-walker-comment.php b/wp-includes/class-walker-comment.php
index 825a283..3d2eb01 100644
--- a/wp-includes/class-walker-comment.php
+++ b/wp-includes/class-walker-comment.php
@@ -278,7 +278,7 @@ class Walker_Comment extends Walker {
$commenter = wp_get_current_commenter();
$show_pending_links = ! empty( $commenter['comment_author'] );
- if ( $comment && '0' == $comment->comment_approved && ! $show_pending_links ) {
+ if ( $comment && '0' === $comment->comment_approved && ! $show_pending_links ) {
$comment_text = wp_kses( $comment_text, array() );
}
@@ -320,14 +320,14 @@ class Walker_Comment extends Walker {
<?php endif; ?>
<div class="comment-author vcard">
<?php
- if ( 0 != $args['avatar_size'] ) {
+ if ( 0 !== $args['avatar_size'] ) {
echo get_avatar( $comment, $args['avatar_size'] );
}
?>
<?php
$comment_author = get_comment_author_link( $comment );
- if ( '0' == $comment->comment_approved && ! $show_pending_links ) {
+ if ( '0' === $comment->comment_approved && ! $show_pending_links ) {
$comment_author = get_comment_author( $comment );
}
@@ -338,7 +338,7 @@ class Walker_Comment extends Walker {
);
?>
</div>
- <?php if ( '0' == $comment->comment_approved ) : ?>
+ <?php if ( '0' === $comment->comment_approved ) : ?>
<em class="comment-awaiting-moderation"><?php echo $moderation_note; ?></em>
<br />
<?php endif; ?>
@@ -423,14 +423,14 @@ class Walker_Comment extends Walker {
<footer class="comment-meta">
<div class="comment-author vcard">
<?php
- if ( 0 != $args['avatar_size'] ) {
+ if ( 0 !== $args['avatar_size'] ) {
echo get_avatar( $comment, $args['avatar_size'] );
}
?>
<?php
$comment_author = get_comment_author_link( $comment );
- if ( '0' == $comment->comment_approved && ! $show_pending_links ) {
+ if ( '0' === $comment->comment_approved && ! $show_pending_links ) {
$comment_author = get_comment_author( $comment );
}
@@ -460,7 +460,7 @@ class Walker_Comment extends Walker {
?>
</div><!-- .comment-metadata -->
- <?php if ( '0' == $comment->comment_approved ) : ?>
+ <?php if ( '0' === $comment->comment_approved ) : ?>
<em class="comment-awaiting-moderation"><?php echo $moderation_note; ?></em>
<?php endif; ?>
</footer><!-- .comment-meta -->
@@ -470,7 +470,7 @@ class Walker_Comment extends Walker {
</div><!-- .comment-content -->
<?php
- if ( '1' == $comment->comment_approved || $show_pending_links ) {
+ if ( '1' === $comment->comment_approved || $show_pending_links ) {
comment_reply_link(
array_merge(
$args,
diff --git a/wp-includes/class-wp-admin-bar.php b/wp-includes/class-wp-admin-bar.php
index 093ed01..dfebbb2 100644
--- a/wp-includes/class-wp-admin-bar.php
+++ b/wp-includes/class-wp-admin-bar.php
@@ -575,7 +575,7 @@ class WP_Admin_Bar {
$menuclass = ' class="' . esc_attr( trim( $menuclass ) ) . '"';
}
- echo "<li id='" . esc_attr( 'wp-admin-bar-' . $node->id ) . "'$menuclass>";
+ echo "<li role='group' id='" . esc_attr( 'wp-admin-bar-' . $node->id ) . "'$menuclass>";
if ( $has_link ) {
$attributes = array( 'onclick', 'target', 'title', 'rel', 'lang', 'dir' );
@@ -648,9 +648,9 @@ class WP_Admin_Bar {
public function add_menus() {
// User-related, aligned right.
add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 0 );
- add_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 4 );
- add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_item', 7 );
- add_action( 'admin_bar_menu', 'wp_admin_bar_recovery_mode_menu', 8 );
+ add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_item', 9991 );
+ add_action( 'admin_bar_menu', 'wp_admin_bar_recovery_mode_menu', 9992 );
+ add_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 9999 );
// Site-related.
add_action( 'admin_bar_menu', 'wp_admin_bar_sidebar_toggle', 0 );
diff --git a/wp-includes/class-wp-block-bindings-registry.php b/wp-includes/class-wp-block-bindings-registry.php
index 6ec5ac8..14c1b89 100644
--- a/wp-includes/class-wp-block-bindings-registry.php
+++ b/wp-includes/class-wp-block-bindings-registry.php
@@ -12,7 +12,7 @@
/**
* Core class used for interacting with block bindings sources.
*
- * @since 6.5.0
+ * @since 6.5.0
*/
final class WP_Block_Bindings_Registry {
@@ -36,7 +36,7 @@ final class WP_Block_Bindings_Registry {
* Supported source properties that can be passed to the registered source.
*
* @since 6.5.0
- * @var array
+ * @var string[]
*/
private $allowed_source_properties = array(
'label',
@@ -48,7 +48,7 @@ final class WP_Block_Bindings_Registry {
* Supported blocks that can use the block bindings API.
*
* @since 6.5.0
- * @var array
+ * @var string[]
*/
private $supported_blocks = array(
'core/paragraph',
@@ -72,25 +72,25 @@ final class WP_Block_Bindings_Registry {
*
* @since 6.5.0
*
- * @param string $source_name The name of the source. It must be a string containing a namespace prefix, i.e.
- * `my-plugin/my-custom-source`. It must only contain lowercase alphanumeric
- * characters, the forward slash `/` and dashes.
- * @param array $source_properties {
+ * @param string $source_name The name of the source. It must be a string containing a namespace prefix, i.e.
+ * `my-plugin/my-custom-source`. It must only contain lowercase alphanumeric
+ * characters, the forward slash `/` and dashes.
+ * @param array $source_properties {
* The array of arguments that are used to register a source.
*
- * @type string $label The label of the source.
- * @type callback $get_value_callback A callback executed when the source is processed during block rendering.
- * The callback should have the following signature:
+ * @type string $label The label of the source.
+ * @type callable $get_value_callback A callback executed when the source is processed during block rendering.
+ * The callback should have the following signature:
*
- * `function ($source_args, $block_instance,$attribute_name): mixed`
- * - @param array $source_args Array containing source arguments
- * used to look up the override value,
- * i.e. {"key": "foo"}.
- * - @param WP_Block $block_instance The block instance.
- * - @param string $attribute_name The name of the target attribute.
- * The callback has a mixed return type; it may return a string to override
- * the block's original value, null, false to remove an attribute, etc.
- * @type array $uses_context (optional) Array of values to add to block `uses_context` needed by the source.
+ * `function( $source_args, $block_instance, $attribute_name ): mixed`
+ * - @param array $source_args Array containing source arguments
+ * used to look up the override value,
+ * i.e. {"key": "foo"}.
+ * - @param WP_Block $block_instance The block instance.
+ * - @param string $attribute_name The name of the target attribute.
+ * The callback has a mixed return type; it may return a string to override
+ * the block's original value, null, false to remove an attribute, etc.
+ * @type string[] $uses_context Optional. Array of values to add to block `uses_context` needed by the source.
* }
* @return WP_Block_Bindings_Source|false Source when the registration was successful, or `false` on failure.
*/
diff --git a/wp-includes/class-wp-block-bindings-source.php b/wp-includes/class-wp-block-bindings-source.php
index 036e17c..c1b479f 100644
--- a/wp-includes/class-wp-block-bindings-source.php
+++ b/wp-includes/class-wp-block-bindings-source.php
@@ -36,7 +36,6 @@ final class WP_Block_Bindings_Source {
*/
public $label;
-
/**
* The function used to get the value from the source.
*
@@ -49,7 +48,7 @@ final class WP_Block_Bindings_Source {
* The context added to the blocks needed by the source.
*
* @since 6.5.0
- * @var array|null
+ * @var string[]|null
*/
public $uses_context = null;
diff --git a/wp-includes/class-wp-block-patterns-registry.php b/wp-includes/class-wp-block-patterns-registry.php
index bee9746..6317bc8 100644
--- a/wp-includes/class-wp-block-patterns-registry.php
+++ b/wp-includes/class-wp-block-patterns-registry.php
@@ -174,8 +174,8 @@ final class WP_Block_Patterns_Registry {
$before_block_visitor = '_inject_theme_attribute_in_template_part_block';
$after_block_visitor = null;
if ( ! empty( $hooked_blocks ) || has_filter( 'hooked_block_types' ) ) {
- $before_block_visitor = make_before_block_visitor( $hooked_blocks, $pattern );
- $after_block_visitor = make_after_block_visitor( $hooked_blocks, $pattern );
+ $before_block_visitor = make_before_block_visitor( $hooked_blocks, $pattern, 'insert_hooked_blocks_and_set_ignored_hooked_blocks_metadata' );
+ $after_block_visitor = make_after_block_visitor( $hooked_blocks, $pattern, 'insert_hooked_blocks_and_set_ignored_hooked_blocks_metadata' );
}
$blocks = parse_blocks( $content );
$content = traverse_and_serialize_blocks( $blocks, $before_block_visitor, $after_block_visitor );
diff --git a/wp-includes/class-wp-block-styles-registry.php b/wp-includes/class-wp-block-styles-registry.php
index 317c648..2d16e0e 100644
--- a/wp-includes/class-wp-block-styles-registry.php
+++ b/wp-includes/class-wp-block-styles-registry.php
@@ -42,11 +42,12 @@ final class WP_Block_Styles_Registry {
* or with an inline tag.
*
* @since 5.3.0
+ * @since 6.6.0 Added ability to register style across multiple block types along with theme.json-like style data.
*
* @link https://developer.wordpress.org/block-editor/reference-guides/block-api/block-styles/
*
- * @param string $block_name Block type name including namespace.
- * @param array $style_properties {
+ * @param string|string[] $block_name Block type name including namespace or array of namespaced block type names.
+ * @param array $style_properties {
* Array containing the properties of the style.
*
* @type string $name The identifier of the style used to compute a CSS class.
@@ -56,16 +57,17 @@ final class WP_Block_Styles_Registry {
* @type string $style_handle The handle to an already registered style that should be
* enqueued in places where block styles are needed.
* @type bool $is_default Whether this is the default style for the block type.
+ * @type array $style_data Theme.json-like object to generate CSS from.
* }
* @return bool True if the block style was registered with success and false otherwise.
*/
public function register( $block_name, $style_properties ) {
- if ( ! isset( $block_name ) || ! is_string( $block_name ) ) {
+ if ( ! is_string( $block_name ) && ! is_array( $block_name ) ) {
_doing_it_wrong(
__METHOD__,
- __( 'Block name must be a string.' ),
- '5.3.0'
+ __( 'Block name must be a string or array.' ),
+ '6.6.0'
);
return false;
}
@@ -89,11 +91,14 @@ final class WP_Block_Styles_Registry {
}
$block_style_name = $style_properties['name'];
+ $block_names = is_string( $block_name ) ? array( $block_name ) : $block_name;
- if ( ! isset( $this->registered_block_styles[ $block_name ] ) ) {
- $this->registered_block_styles[ $block_name ] = array();
+ foreach ( $block_names as $name ) {
+ if ( ! isset( $this->registered_block_styles[ $name ] ) ) {
+ $this->registered_block_styles[ $name ] = array();
+ }
+ $this->registered_block_styles[ $name ][ $block_style_name ] = $style_properties;
}
- $this->registered_block_styles[ $block_name ][ $block_style_name ] = $style_properties;
return true;
}
diff --git a/wp-includes/class-wp-block-supports.php b/wp-includes/class-wp-block-supports.php
index afc0118..c90b5e0 100644
--- a/wp-includes/class-wp-block-supports.php
+++ b/wp-includes/class-wp-block-supports.php
@@ -103,7 +103,7 @@ class WP_Block_Supports {
return array();
}
- $block_attributes = array_key_exists( 'attrs', self::$block_to_render )
+ $block_attributes = array_key_exists( 'attrs', self::$block_to_render ) && is_array( self::$block_to_render['attrs'] )
? self::$block_to_render['attrs']
: array();
diff --git a/wp-includes/class-wp-block-type.php b/wp-includes/class-wp-block-type.php
index 3242653..6916f6a 100644
--- a/wp-includes/class-wp-block-type.php
+++ b/wp-includes/class-wp-block-type.php
@@ -297,12 +297,12 @@ class WP_Block_Type {
* @since 5.8.0 Added the `variations` property.
* @since 5.9.0 Added the `view_script` property.
* @since 6.0.0 Added the `ancestor` property.
- * @since 6.1.0 Added the `editor_script_handles`, `script_handles`, `view_script_handles,
+ * @since 6.1.0 Added the `editor_script_handles`, `script_handles`, `view_script_handles`,
* `editor_style_handles`, and `style_handles` properties.
* Deprecated the `editor_script`, `script`, `view_script`, `editor_style`, and `style` properties.
* @since 6.3.0 Added the `selectors` property.
* @since 6.4.0 Added the `block_hooks` property.
- * @since 6.5.0 Added the `view_style_handles` property.
+ * @since 6.5.0 Added the `allowed_blocks`, `variation_callback`, and `view_style_handles` properties.
*
* @see register_block_type()
*
@@ -621,7 +621,7 @@ class WP_Block_Type {
*
* @since 6.5.0
*
- * @return array[]
+ * @return string[]
*/
public function get_uses_context() {
/**
@@ -629,7 +629,7 @@ class WP_Block_Type {
*
* @since 6.5.0
*
- * @param array $uses_context Array of registered uses context for a block type.
+ * @param string[] $uses_context Array of registered uses context for a block type.
* @param WP_Block_Type $block_type The full block type object.
*/
return apply_filters( 'get_block_type_uses_context', $this->uses_context, $this );
diff --git a/wp-includes/class-wp-block.php b/wp-includes/class-wp-block.php
index 60c026e..c6ca8a3 100644
--- a/wp-includes/class-wp-block.php
+++ b/wp-includes/class-wp-block.php
@@ -113,7 +113,16 @@ class WP_Block {
*
* @since 5.5.0
*
- * @param array $block Array of parsed block properties.
+ * @param array $block {
+ * A representative array of a single parsed block object. See WP_Block_Parser_Block.
+ *
+ * @type string $blockName Name of block.
+ * @type array $attrs Attributes from block comment delimiters.
+ * @type array $innerBlocks List of inner blocks. An array of arrays that
+ * have the same structure as this one.
+ * @type string $innerHTML HTML from inside block comment delimiters.
+ * @type array $innerContent List of string fragments and null markers where inner blocks were found.
+ * }
* @param array $available_context Optional array of ancestry context values.
* @param WP_Block_Type_Registry $registry Optional block type registry.
*/
@@ -227,6 +236,7 @@ class WP_Block {
* block with the values of the `text_custom_field` and `url_custom_field` post meta.
*
* @since 6.5.0
+ * @since 6.6.0 Handle the `__default` attribute for pattern overrides.
*
* @return array The computed block attributes for the provided block bindings.
*/
@@ -250,7 +260,33 @@ class WP_Block {
return $computed_attributes;
}
- foreach ( $parsed_block['attrs']['metadata']['bindings'] as $attribute_name => $block_binding ) {
+ $bindings = $parsed_block['attrs']['metadata']['bindings'];
+
+ /*
+ * If the default binding is set for pattern overrides, replace it
+ * with a pattern override binding for all supported attributes.
+ */
+ if (
+ isset( $bindings['__default']['source'] ) &&
+ 'core/pattern-overrides' === $bindings['__default']['source']
+ ) {
+ $updated_bindings = array();
+
+ /*
+ * Build a binding array of all supported attributes.
+ * Note that this also omits the `__default` attribute from the
+ * resulting array.
+ */
+ foreach ( $supported_block_attributes[ $parsed_block['blockName'] ] as $attribute_name ) {
+ // Retain any non-pattern override bindings that might be present.
+ $updated_bindings[ $attribute_name ] = isset( $bindings[ $attribute_name ] )
+ ? $bindings[ $attribute_name ]
+ : array( 'source' => 'core/pattern-overrides' );
+ }
+ $bindings = $updated_bindings;
+ }
+
+ foreach ( $bindings as $attribute_name => $block_binding ) {
// If the attribute is not in the supported list, process next attribute.
if ( ! in_array( $attribute_name, $supported_block_attributes[ $this->name ], true ) ) {
continue;
@@ -372,13 +408,10 @@ class WP_Block {
}
$amended_content->set_attribute( $block_type->attributes[ $attribute_name ]['attribute'], $source_value );
return $amended_content->get_updated_html();
- break;
default:
return $block_content;
- break;
}
- return;
}
@@ -399,6 +432,29 @@ class WP_Block {
*/
public function render( $options = array() ) {
global $post;
+
+ /*
+ * There can be only one root interactive block at a time because the rendered HTML of that block contains
+ * the rendered HTML of all its inner blocks, including any interactive block.
+ */
+ static $root_interactive_block = null;
+ /**
+ * Filters whether Interactivity API should process directives.
+ *
+ * @since 6.6.0
+ *
+ * @param bool $enabled Whether the directives processing is enabled.
+ */
+ $interactivity_process_directives_enabled = apply_filters( 'interactivity_process_directives', true );
+ if (
+ $interactivity_process_directives_enabled && null === $root_interactive_block && (
+ ( isset( $this->block_type->supports['interactivity'] ) && true === $this->block_type->supports['interactivity'] ) ||
+ ! empty( $this->block_type->supports['interactivity']['interactive'] )
+ )
+ ) {
+ $root_interactive_block = $this;
+ }
+
$options = wp_parse_args(
$options,
array(
@@ -524,6 +580,12 @@ class WP_Block {
*/
$block_content = apply_filters( "render_block_{$this->name}", $block_content, $this->parsed_block, $this );
+ if ( $root_interactive_block === $this ) {
+ // The root interactive block has finished rendering. Time to process directives.
+ $block_content = wp_interactivity_process_directives( $block_content );
+ $root_interactive_block = null;
+ }
+
return $block_content;
}
}
diff --git a/wp-includes/class-wp-comment-query.php b/wp-includes/class-wp-comment-query.php
index 6c4a86b..6a72c0d 100644
--- a/wp-includes/class-wp-comment-query.php
+++ b/wp-includes/class-wp-comment-query.php
@@ -927,7 +927,16 @@ class WP_Comment_Query {
*
* @since 3.1.0
*
- * @param string[] $clauses An associative array of comment query clauses.
+ * @param string[] $clauses {
+ * Associative array of the clauses for the query.
+ *
+ * @type string $fields The SELECT clause of the query.
+ * @type string $join The JOIN clause of the query.
+ * @type string $where The WHERE clause of the query.
+ * @type string $orderby The ORDER BY clause of the query.
+ * @type string $limits The LIMIT clause of the query.
+ * @type string $groupby The GROUP BY clause of the query.
+ * }
* @param WP_Comment_Query $query Current instance of WP_Comment_Query (passed by reference).
*/
$clauses = apply_filters_ref_array( 'comments_clauses', array( compact( $pieces ), &$this ) );
diff --git a/wp-includes/class-wp-customize-control.php b/wp-includes/class-wp-customize-control.php
index 055f6cf..596c6e3 100644
--- a/wp-includes/class-wp-customize-control.php
+++ b/wp-includes/class-wp-customize-control.php
@@ -635,15 +635,12 @@ class WP_Customize_Control {
printf( __( '+ %s' ), get_post_type_object( 'page' )->labels->add_new_item );
?>
</button>
- <div class="new-content-item">
- <label for="create-input-<?php echo esc_attr( $this->id ); ?>"><span class="screen-reader-text">
- <?php
- /* translators: Hidden accessibility text. */
- _e( 'New page title' );
- ?>
- </span></label>
- <input type="text" id="create-input-<?php echo esc_attr( $this->id ); ?>" class="create-item-input" placeholder="<?php esc_attr_e( 'New page title&hellip;' ); ?>">
- <button type="button" class="button add-content"><?php _e( 'Add' ); ?></button>
+ <div class="new-content-item-wrapper">
+ <label for="create-input-<?php echo esc_attr( $this->id ); ?>"><?php _e( 'New page title' ); ?></label>
+ <div class="new-content-item">
+ <input type="text" id="create-input-<?php echo esc_attr( $this->id ); ?>" class="create-item-input" >
+ <button type="button" class="button add-content"><?php _e( 'Add' ); ?></button>
+ </div>
</div>
<?php endif; ?>
<?php
diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php
index baad9fe..8efcfc1 100644
--- a/wp-includes/class-wp-customize-manager.php
+++ b/wp-includes/class-wp-customize-manager.php
@@ -100,7 +100,7 @@ final class WP_Customize_Manager {
* @since 4.5.0
* @var array
*/
- protected $components = array( 'widgets', 'nav_menus' );
+ protected $components = array( 'nav_menus' );
/**
* Registered instances of WP_Customize_Section.
@@ -286,6 +286,11 @@ final class WP_Customize_Manager {
$args['messenger_channel'] = sanitize_key( wp_unslash( $_REQUEST['customize_messenger_channel'] ) );
}
+ // Do not load 'widgets' component if a block theme is activated.
+ if ( ! wp_is_block_theme() ) {
+ $this->components[] = 'widgets';
+ }
+
$this->original_stylesheet = get_stylesheet();
$this->theme = wp_get_theme( 0 === validate_file( $args['theme'] ) ? $args['theme'] : null );
$this->messenger_channel = $args['messenger_channel'];
@@ -5695,7 +5700,7 @@ final class WP_Customize_Manager {
$section_description .= __( 'Add your own CSS code here to customize the appearance and layout of your site.' );
$section_description .= sprintf(
' <a href="%1$s" class="external-link" target="_blank">%2$s<span class="screen-reader-text"> %3$s</span></a>',
- esc_url( __( 'https://wordpress.org/documentation/article/css/' ) ),
+ esc_url( __( 'https://developer.wordpress.org/advanced-administration/wordpress/css/' ) ),
__( 'Learn more about CSS' ),
/* translators: Hidden accessibility text. */
__( '(opens in a new tab)' )
diff --git a/wp-includes/class-wp-customize-nav-menus.php b/wp-includes/class-wp-customize-nav-menus.php
index 019ebe7..0603fe7 100644
--- a/wp-includes/class-wp-customize-nav-menus.php
+++ b/wp-includes/class-wp-customize-nav-menus.php
@@ -562,10 +562,12 @@ final class WP_Customize_Nav_Menus {
'under' => __( 'Under %s' ),
/* translators: %s: Previous item name. */
'outFrom' => __( 'Out from under %s' ),
- /* translators: 1: Item name, 2: Item position, 3: Total number of items. */
- 'menuFocus' => __( '%1$s. Menu item %2$d of %3$d.' ),
- /* translators: 1: Item name, 2: Item position, 3: Parent item name. */
- 'subMenuFocus' => __( '%1$s. Sub item number %2$d under %3$s.' ),
+ /* translators: 1: Item name, 2: Item type, 3: Item index, 4: Total items. */
+ 'menuFocus' => __( 'Edit %1$s (%2$s, %3$d of %4$d)' ),
+ /* translators: 1: Item name, 2: Item type, 3: Item index, 4: Total items, 5: Item parent. */
+ 'subMenuFocus' => __( 'Edit %1$s (%2$s, sub-item %3$d of %4$d under %5$s)' ),
+ /* translators: 1: Item name, 2: Item type, 3: Item index, 4: Total items, 5: Item parent, 6: Item depth. */
+ 'subMenuMoreDepthFocus' => __( 'Edit %1$s (%2$s, sub-item %3$d of %4$d under %5$s, level %6$d)' ),
);
wp_localize_script( 'nav-menu', 'menus', $nav_menus_l10n );
}
@@ -1163,13 +1165,8 @@ final class WP_Customize_Nav_Menus {
</div>
<div id="available-menu-items-search" class="accordion-section cannot-expand">
<div class="accordion-section-title">
- <label class="screen-reader-text" for="menu-items-search">
- <?php
- /* translators: Hidden accessibility text. */
- _e( 'Search Menu Items' );
- ?>
- </label>
- <input type="text" id="menu-items-search" placeholder="<?php esc_attr_e( 'Search menu items&hellip;' ); ?>" aria-describedby="menu-items-search-desc" />
+ <label for="menu-items-search"><?php _e( 'Search Menu Items' ); ?></label>
+ <input type="text" id="menu-items-search" aria-describedby="menu-items-search-desc" />
<p class="screen-reader-text" id="menu-items-search-desc">
<?php
/* translators: Hidden accessibility text. */
@@ -1177,14 +1174,14 @@ final class WP_Customize_Nav_Menus {
?>
</p>
<span class="spinner"></span>
+ <div class="search-icon" aria-hidden="true"></div>
+ <button type="button" class="clear-results"><span class="screen-reader-text">
+ <?php
+ /* translators: Hidden accessibility text. */
+ _e( 'Clear Results' );
+ ?>
+ </span></button>
</div>
- <div class="search-icon" aria-hidden="true"></div>
- <button type="button" class="clear-results"><span class="screen-reader-text">
- <?php
- /* translators: Hidden accessibility text. */
- _e( 'Clear Results' );
- ?>
- </span></button>
<ul class="accordion-section-content available-menu-items-list" data-type="search"></ul>
</div>
<?php
@@ -1243,10 +1240,12 @@ final class WP_Customize_Nav_Menus {
<?php if ( 'post_type' === $available_item_type['type'] ) : ?>
<?php $post_type_obj = get_post_type_object( $available_item_type['object'] ); ?>
<?php if ( current_user_can( $post_type_obj->cap->create_posts ) && current_user_can( $post_type_obj->cap->publish_posts ) ) : ?>
- <div class="new-content-item">
- <label for="<?php echo esc_attr( 'create-item-input-' . $available_item_type['object'] ); ?>" class="screen-reader-text"><?php echo esc_html( $post_type_obj->labels->add_new_item ); ?></label>
- <input type="text" id="<?php echo esc_attr( 'create-item-input-' . $available_item_type['object'] ); ?>" class="create-item-input" placeholder="<?php echo esc_attr( $post_type_obj->labels->add_new_item ); ?>">
- <button type="button" class="button add-content"><?php _e( 'Add' ); ?></button>
+ <div class="new-content-item-wrapper">
+ <label for="<?php echo esc_attr( 'create-item-input-' . $available_item_type['object'] ); ?>"><?php echo esc_html( $post_type_obj->labels->add_new_item ); ?></label>
+ <div class="new-content-item">
+ <input type="text" id="<?php echo esc_attr( 'create-item-input-' . $available_item_type['object'] ); ?>" class="create-item-input">
+ <button type="button" class="button add-content"><?php _e( 'Add' ); ?></button>
+ </div>
</div>
<?php endif; ?>
<?php endif; ?>
diff --git a/wp-includes/class-wp-customize-widgets.php b/wp-includes/class-wp-customize-widgets.php
index 8c822ea..7ddc8de 100644
--- a/wp-includes/class-wp-customize-widgets.php
+++ b/wp-includes/class-wp-customize-widgets.php
@@ -909,13 +909,13 @@ final class WP_Customize_Widgets {
</h3>
</div>
<div id="available-widgets-filter">
- <label class="screen-reader-text" for="widgets-search">
+ <label for="widgets-search">
<?php
/* translators: Hidden accessibility text. */
_e( 'Search Widgets' );
?>
</label>
- <input type="text" id="widgets-search" placeholder="<?php esc_attr_e( 'Search widgets&hellip;' ); ?>" aria-describedby="widgets-search-desc" />
+ <input type="text" id="widgets-search" aria-describedby="widgets-search-desc" />
<div class="search-icon" aria-hidden="true"></div>
<button type="button" class="clear-results"><span class="screen-reader-text">
<?php
diff --git a/wp-includes/class-wp-duotone.php b/wp-includes/class-wp-duotone.php
index 40e9f75..a22745d 100644
--- a/wp-includes/class-wp-duotone.php
+++ b/wp-includes/class-wp-duotone.php
@@ -215,7 +215,7 @@ class WP_Duotone {
}
/**
- * Parses any valid Hex3, Hex4, Hex6 or Hex8 string and converts it to an RGBA object
+ * Parses any valid Hex3, Hex4, Hex6 or Hex8 string and converts it to an RGBA object.
*
* Direct port of colord's parseHex function.
*
@@ -286,7 +286,7 @@ class WP_Duotone {
}
/**
- * Parses a valid RGB[A] CSS color function/string
+ * Parses a valid RGB[A] CSS color function/string.
*
* Direct port of colord's parseRgbaString function.
*
@@ -809,12 +809,13 @@ class WP_Duotone {
* @internal
*
* @since 6.3.0
+ * @since 6.6.0 Replaced body selector with `WP_Theme_JSON::ROOT_CSS_PROPERTIES_SELECTOR`.
*
* @param array $sources The duotone presets.
* @return string The CSS for global styles.
*/
private static function get_global_styles_presets( $sources ) {
- $css = 'body{';
+ $css = WP_Theme_JSON::ROOT_CSS_PROPERTIES_SELECTOR . '{';
foreach ( $sources as $filter_id => $filter_data ) {
$slug = $filter_data['slug'];
$colors = $filter_data['colors'];
@@ -1154,6 +1155,45 @@ class WP_Duotone {
}
/**
+ * Fixes the issue with our generated class name not being added to the block's outer container
+ * in classic themes due to gutenberg_restore_image_outer_container from layout block supports.
+ *
+ * @since 6.6.0
+ *
+ * @param string $block_content Rendered block content.
+ * @return string Filtered block content.
+ */
+ public static function restore_image_outer_container( $block_content ) {
+ if ( wp_theme_has_theme_json() ) {
+ return $block_content;
+ }
+
+ $tags = new WP_HTML_Tag_Processor( $block_content );
+ $wrapper_query = array(
+ 'tag_name' => 'div',
+ 'class_name' => 'wp-block-image',
+ );
+ if ( ! $tags->next_tag( $wrapper_query ) ) {
+ return $block_content;
+ }
+
+ $tags->set_bookmark( 'wrapper-div' );
+ $tags->next_tag();
+
+ $inner_classnames = explode( ' ', $tags->get_attribute( 'class' ) );
+ foreach ( $inner_classnames as $classname ) {
+ if ( 0 === strpos( $classname, 'wp-duotone' ) ) {
+ $tags->remove_class( $classname );
+ $tags->seek( 'wrapper-div' );
+ $tags->add_class( $classname );
+ break;
+ }
+ }
+
+ return $tags->get_updated_html();
+ }
+
+ /**
* Appends the used block duotone filter declarations to the inline block supports CSS.
*
* Uses the declarations saved in earlier calls to self::enqueue_block_css.
diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php
index 5d7ba22..7a7c8c2 100644
--- a/wp-includes/class-wp-editor.php
+++ b/wp-includes/class-wp-editor.php
@@ -1875,7 +1875,7 @@ final class _WP_Editors {
// `display: none` is required here, see #WP27605.
?>
<div id="wp-link-backdrop" style="display: none"></div>
- <div id="wp-link-wrap" class="wp-core-ui" style="display: none" role="dialog" aria-labelledby="link-modal-title">
+ <div id="wp-link-wrap" class="wp-core-ui" style="display: none" role="dialog" aria-modal="true" aria-labelledby="link-modal-title">
<form id="wp-link" tabindex="-1">
<?php wp_nonce_field( 'internal-linking', '_ajax_linking_nonce', false ); ?>
<h1 id="link-modal-title"><?php _e( 'Insert/edit link' ); ?></h1>
diff --git a/wp-includes/class-wp-http.php b/wp-includes/class-wp-http.php
index 4858068..ea8adde 100644
--- a/wp-includes/class-wp-http.php
+++ b/wp-includes/class-wp-http.php
@@ -77,6 +77,7 @@ class WP_Http {
const UNPROCESSABLE_ENTITY = 422;
const LOCKED = 423;
const FAILED_DEPENDENCY = 424;
+ const TOO_EARLY = 425;
const UPGRADE_REQUIRED = 426;
const PRECONDITION_REQUIRED = 428;
const TOO_MANY_REQUESTS = 429;
diff --git a/wp-includes/class-wp-image-editor-gd.php b/wp-includes/class-wp-image-editor-gd.php
index cbfa6db..acb3dd5 100644
--- a/wp-includes/class-wp-image-editor-gd.php
+++ b/wp-includes/class-wp-image-editor-gd.php
@@ -64,15 +64,15 @@ class WP_Image_Editor_GD extends WP_Image_Editor {
$image_types = imagetypes();
switch ( $mime_type ) {
case 'image/jpeg':
- return ( $image_types & IMG_JPG ) != 0;
+ return ( $image_types & IMG_JPG ) !== 0;
case 'image/png':
- return ( $image_types & IMG_PNG ) != 0;
+ return ( $image_types & IMG_PNG ) !== 0;
case 'image/gif':
- return ( $image_types & IMG_GIF ) != 0;
+ return ( $image_types & IMG_GIF ) !== 0;
case 'image/webp':
- return ( $image_types & IMG_WEBP ) != 0;
+ return ( $image_types & IMG_WEBP ) !== 0;
case 'image/avif':
- return ( $image_types & IMG_AVIF ) != 0;
+ return ( $image_types & IMG_AVIF ) !== 0 && function_exists( 'imageavif' );
}
return false;
@@ -188,7 +188,7 @@ class WP_Image_Editor_GD extends WP_Image_Editor {
* @return true|WP_Error
*/
public function resize( $max_w, $max_h, $crop = false ) {
- if ( ( $this->size['width'] == $max_w ) && ( $this->size['height'] == $max_h ) ) {
+ if ( ( $this->size['width'] === $max_w ) && ( $this->size['height'] === $max_h ) ) {
return true;
}
@@ -533,12 +533,16 @@ class WP_Image_Editor_GD extends WP_Image_Editor {
if ( ! $this->make_image( $filename, 'imagejpeg', array( $image, $filename, $this->get_quality() ) ) ) {
return new WP_Error( 'image_save_error', __( 'Image Editor Save Failed' ) );
}
- } elseif ( 'image/webp' == $mime_type ) {
- if ( ! function_exists( 'imagewebp' ) || ! $this->make_image( $filename, 'imagewebp', array( $image, $filename, $this->get_quality() ) ) ) {
+ } elseif ( 'image/webp' === $mime_type ) {
+ if ( ! function_exists( 'imagewebp' )
+ || ! $this->make_image( $filename, 'imagewebp', array( $image, $filename, $this->get_quality() ) )
+ ) {
return new WP_Error( 'image_save_error', __( 'Image Editor Save Failed' ) );
}
- } elseif ( 'image/avif' == $mime_type ) {
- if ( ! function_exists( 'imageavif' ) || ! $this->make_image( $filename, 'imageavif', array( $image, $filename, $this->get_quality() ) ) ) {
+ } elseif ( 'image/avif' === $mime_type ) {
+ if ( ! function_exists( 'imageavif' )
+ || ! $this->make_image( $filename, 'imageavif', array( $image, $filename, $this->get_quality() ) )
+ ) {
return new WP_Error( 'image_save_error', __( 'Image Editor Save Failed' ) );
}
} else {
diff --git a/wp-includes/class-wp-image-editor-imagick.php b/wp-includes/class-wp-image-editor-imagick.php
index 5de01d7..d38ee6f 100644
--- a/wp-includes/class-wp-image-editor-imagick.php
+++ b/wp-includes/class-wp-image-editor-imagick.php
@@ -342,7 +342,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
* @return true|WP_Error
*/
public function resize( $max_w, $max_h, $crop = false ) {
- if ( ( $this->size['width'] == $max_w ) && ( $this->size['height'] == $max_h ) ) {
+ if ( ( $this->size['width'] === $max_w ) && ( $this->size['height'] === $max_h ) ) {
return true;
}
diff --git a/wp-includes/class-wp-locale.php b/wp-includes/class-wp-locale.php
index 36be8ee..87af36a 100644
--- a/wp-includes/class-wp-locale.php
+++ b/wp-includes/class-wp-locale.php
@@ -355,6 +355,7 @@ class WP_Locale {
*
* For backward compatibility only.
*
+ * @since 2.1.0
* @deprecated For backward compatibility only.
*
* @global array $weekday
@@ -362,8 +363,6 @@ class WP_Locale {
* @global array $weekday_abbrev
* @global array $month
* @global array $month_abbrev
- *
- * @since 2.1.0
*/
public function register_globals() {
$GLOBALS['weekday'] = $this->weekday;
diff --git a/wp-includes/class-wp-meta-query.php b/wp-includes/class-wp-meta-query.php
index 69dde01..df4c8c5 100644
--- a/wp-includes/class-wp-meta-query.php
+++ b/wp-includes/class-wp-meta-query.php
@@ -123,7 +123,7 @@ class WP_Meta_Query {
* - 'NOT IN'
* - 'REGEXP'
* - 'NOT REGEXP'
- * - 'RLIKE',
+ * - 'RLIKE'
* - 'EXISTS' (alias of '=')
* - 'NOT EXISTS' (alias of '!=')
* Default is 'IN' when `$key` is an array, '=' otherwise.
@@ -132,7 +132,7 @@ class WP_Meta_Query {
* comparisons. Default is ''.
* @type string|string[] $value Meta value or values to filter by.
* @type string $compare MySQL operator used for comparing the $value. Accepts:
- * - '=',
+ * - '='
* - '!='
* - '>'
* - '>='
diff --git a/wp-includes/class-wp-network-query.php b/wp-includes/class-wp-network-query.php
index 27ab483..d69f1a9 100644
--- a/wp-includes/class-wp-network-query.php
+++ b/wp-includes/class-wp-network-query.php
@@ -446,7 +446,16 @@ class WP_Network_Query {
*
* @since 4.6.0
*
- * @param string[] $clauses An associative array of network query clauses.
+ * @param string[] $clauses {
+ * Associative array of the clauses for the query.
+ *
+ * @type string $fields The SELECT clause of the query.
+ * @type string $join The JOIN clause of the query.
+ * @type string $where The WHERE clause of the query.
+ * @type string $orderby The ORDER BY clause of the query.
+ * @type string $limits The LIMIT clause of the query.
+ * @type string $groupby The GROUP BY clause of the query.
+ * }
* @param WP_Network_Query $query Current instance of WP_Network_Query (passed by reference).
*/
$clauses = apply_filters_ref_array( 'networks_clauses', array( compact( $pieces ), &$this ) );
diff --git a/wp-includes/class-wp-network.php b/wp-includes/class-wp-network.php
index d33f210..d835765 100644
--- a/wp-includes/class-wp-network.php
+++ b/wp-includes/class-wp-network.php
@@ -307,8 +307,8 @@ class WP_Network {
if ( ! empty( $this->cookie_domain ) ) {
return;
}
-
- $this->cookie_domain = $this->domain;
+ $domain = parse_url( $this->domain, PHP_URL_HOST );
+ $this->cookie_domain = is_string( $domain ) ? $domain : $this->domain;
if ( str_starts_with( $this->cookie_domain, 'www.' ) ) {
$this->cookie_domain = substr( $this->cookie_domain, 4 );
}
diff --git a/wp-includes/class-wp-oembed-controller.php b/wp-includes/class-wp-oembed-controller.php
index a36fff9..d78a76d 100644
--- a/wp-includes/class-wp-oembed-controller.php
+++ b/wp-includes/class-wp-oembed-controller.php
@@ -160,7 +160,7 @@ final class WP_oEmbed_Controller {
* @since 4.8.0
*
* @see WP_oEmbed::get_html()
- * @global WP_Embed $wp_embed
+ * @global WP_Embed $wp_embed WordPress Embed object.
* @global WP_Scripts $wp_scripts
*
* @param WP_REST_Request $request Full data about the request.
diff --git a/wp-includes/class-wp-oembed.php b/wp-includes/class-wp-oembed.php
index 91f9cd6..5b699e9 100644
--- a/wp-includes/class-wp-oembed.php
+++ b/wp-includes/class-wp-oembed.php
@@ -4,7 +4,7 @@
*
* Used internally by the WP_Embed class, but is designed to be generic.
*
- * @link https://wordpress.org/documentation/article/embeds/
+ * @link https://developer.wordpress.org/advanced-administration/wordpress/oembed/
* @link http://oembed.com/
*
* @package WordPress
@@ -75,7 +75,6 @@ class WP_oEmbed {
'#https?://(www\.)?twitter\.com/\w{1,15}/timelines/.*#i' => array( 'https://publish.twitter.com/oembed', true ),
'#https?://(www\.)?twitter\.com/i/moments/.*#i' => array( 'https://publish.twitter.com/oembed', true ),
'#https?://(www\.)?soundcloud\.com/.*#i' => array( 'https://soundcloud.com/oembed', true ),
- '#https?://(.+?\.)?slideshare\.net/.*#i' => array( 'https://www.slideshare.net/api/oembed/2', true ),
'#https?://(open|play)\.spotify\.com/.*#i' => array( 'https://embed.spotify.com/oembed/', true ),
'#https?://(.+\.)?imgur\.com/.*#i' => array( 'https://api.imgur.com/oembed', true ),
'#https?://(www\.)?issuu\.com/.+/docs/.+#i' => array( 'https://issuu.com/oembed_wp', true ),
@@ -110,6 +109,7 @@ class WP_oEmbed {
'#https?://(www\.)?wolframcloud\.com/obj/.+#i' => array( 'https://www.wolframcloud.com/oembed', true ),
'#https?://pca\.st/.+#i' => array( 'https://pca.st/oembed.json', true ),
'#https?://((play|www)\.)?anghami\.com/.*#i' => array( 'https://api.anghami.com/rest/v1/oembed.view', true ),
+ '#https?://bsky.app/profile/.*/post/.*#i' => array( 'https://embed.bsky.app/oembed', true ),
);
if ( ! empty( self::$early_providers['add'] ) ) {
@@ -147,7 +147,6 @@ class WP_oEmbed {
* | SmugMug | smugmug.com | 3.0.0 |
* | YouTube | youtu.be | 3.0.0 |
* | Twitter | twitter.com | 3.4.0 |
- * | Slideshare | slideshare.net | 3.5.0 |
* | SoundCloud | soundcloud.com | 3.5.0 |
* | Dailymotion | dai.ly | 3.6.0 |
* | Flickr | flic.kr | 3.6.0 |
@@ -190,6 +189,7 @@ class WP_oEmbed {
* | Pocket Casts | pocketcasts.com | 6.1.0 |
* | Crowdsignal | crowdsignal.net | 6.2.0 |
* | Anghami | anghami.com | 6.3.0 |
+ * | Bluesky | bsky.app | 6.6.0 |
*
* No longer supported providers:
*
@@ -213,6 +213,7 @@ class WP_oEmbed {
* | Facebook | facebook.com | 4.7.0 | 5.5.2 |
* | Meetup.com | meetup.com | 3.9.0 | 6.0.1 |
* | Meetup.com | meetu.ps | 3.9.0 | 6.0.1 |
+ * | SlideShare | slideshare.net | 3.5.0 | 6.6.0 |
*
* @see wp_oembed_add_provider()
*
diff --git a/wp-includes/class-wp-plugin-dependencies.php b/wp-includes/class-wp-plugin-dependencies.php
index d373b4e..0850ffd 100644
--- a/wp-includes/class-wp-plugin-dependencies.php
+++ b/wp-includes/class-wp-plugin-dependencies.php
@@ -554,8 +554,6 @@ class WP_Plugin_Dependencies {
* Reads and stores dependency slugs from a plugin's 'Requires Plugins' header.
*
* @since 6.5.0
- *
- * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
*/
protected static function read_dependencies_from_plugin_headers() {
self::$dependencies = array();
diff --git a/wp-includes/class-wp-post-type.php b/wp-includes/class-wp-post-type.php
index 7a2769e..69a6db3 100644
--- a/wp-includes/class-wp-post-type.php
+++ b/wp-includes/class-wp-post-type.php
@@ -670,9 +670,20 @@ final class WP_Post_Type {
}
}
unset( $this->supports );
+
+ /*
+ * 'editor' support implies 'autosave' support for backward compatibility.
+ * 'autosave' support needs to be explicitly removed if not desired.
+ */
+ if (
+ post_type_supports( $this->name, 'editor' ) &&
+ ! post_type_supports( $this->name, 'autosave' )
+ ) {
+ add_post_type_support( $this->name, 'autosave' );
+ }
} elseif ( false !== $this->supports ) {
// Add default features.
- add_post_type_support( $this->name, array( 'title', 'editor' ) );
+ add_post_type_support( $this->name, array( 'title', 'editor', 'autosave' ) );
}
}
@@ -922,7 +933,7 @@ final class WP_Post_Type {
return null;
}
- if ( 'attachment' === $this->name ) {
+ if ( ! post_type_supports( $this->name, 'autosave' ) ) {
return null;
}
diff --git a/wp-includes/class-wp-query.php b/wp-includes/class-wp-query.php
index 66c8280..d25493d 100644
--- a/wp-includes/class-wp-query.php
+++ b/wp-includes/class-wp-query.php
@@ -2264,6 +2264,9 @@ class WP_Query {
$post_type = 'any';
} elseif ( count( $post_type ) === 1 ) {
$post_type = $post_type[0];
+ } else {
+ // Sort post types to ensure same cache key generation.
+ sort( $post_type );
}
$post_status_join = true;
@@ -2542,6 +2545,8 @@ class WP_Query {
$post_type_where = " AND {$wpdb->posts}.post_type IN ('" . implode( "', '", array_map( 'esc_sql', $in_search_post_types ) ) . "')";
}
} elseif ( ! empty( $post_type ) && is_array( $post_type ) ) {
+ // Sort post types to ensure same cache key generation.
+ sort( $post_type );
$post_type_where = " AND {$wpdb->posts}.post_type IN ('" . implode( "', '", esc_sql( $post_type ) ) . "')";
} elseif ( ! empty( $post_type ) ) {
$post_type_where = $wpdb->prepare( " AND {$wpdb->posts}.post_type = %s", $post_type );
@@ -2647,7 +2652,7 @@ class WP_Query {
}
if ( ! empty( $queried_post_types ) ) {
-
+ sort( $queried_post_types );
$status_type_clauses = array();
foreach ( $queried_post_types as $queried_post_type ) {
@@ -3104,14 +3109,24 @@ class WP_Query {
$found_rows = 'SQL_CALC_FOUND_ROWS';
}
- // Beginning of the string is on a new line to prevent leading whitespace. See https://core.trac.wordpress.org/ticket/56841.
+ /*
+ * Beginning of the string is on a new line to prevent leading whitespace.
+ *
+ * The additional indentation of subsequent lines is to ensure the SQL
+ * queries are identical to those generated when splitting queries. This
+ * improves caching of the query by ensuring the same cache key is
+ * generated for the same database queries functionally.
+ *
+ * See https://core.trac.wordpress.org/ticket/56841.
+ * See https://github.com/WordPress/wordpress-develop/pull/6393#issuecomment-2088217429
+ */
$old_request =
"SELECT $found_rows $distinct $fields
- FROM {$wpdb->posts} $join
- WHERE 1=1 $where
- $groupby
- $orderby
- $limits";
+ FROM {$wpdb->posts} $join
+ WHERE 1=1 $where
+ $groupby
+ $orderby
+ $limits";
$this->request = $old_request;
@@ -3298,11 +3313,24 @@ class WP_Query {
* complete row at once. One massive result vs. many small results.
*
* @since 3.4.0
+ * @since 6.6.0 Added the `$old_request` and `$clauses` parameters.
*
* @param bool $split_the_query Whether or not to split the query.
* @param WP_Query $query The WP_Query instance.
+ * @param string $old_request The complete SQL query before filtering.
+ * @param string[] $clauses {
+ * Associative array of the clauses for the query.
+ *
+ * @type string $where The WHERE clause of the query.
+ * @type string $groupby The GROUP BY clause of the query.
+ * @type string $join The JOIN clause of the query.
+ * @type string $orderby The ORDER BY clause of the query.
+ * @type string $distinct The DISTINCT clause of the query.
+ * @type string $fields The SELECT clause of the query.
+ * @type string $limits The LIMIT clause of the query.
+ * }
*/
- $split_the_query = apply_filters( 'split_the_query', $split_the_query, $this );
+ $split_the_query = apply_filters( 'split_the_query', $split_the_query, $this, $old_request, compact( $pieces ) );
if ( $split_the_query ) {
// First get the IDs and then fill in the objects.
@@ -4856,6 +4884,32 @@ class WP_Query {
$args['suppress_filters']
);
+ if ( empty( $args['post_type'] ) ) {
+ if ( $this->is_attachment ) {
+ $args['post_type'] = 'attachment';
+ } elseif ( $this->is_page ) {
+ $args['post_type'] = 'page';
+ } else {
+ $args['post_type'] = 'post';
+ }
+ } elseif ( 'any' === $args['post_type'] ) {
+ $args['post_type'] = array_values( get_post_types( array( 'exclude_from_search' => false ) ) );
+ }
+ $args['post_type'] = (array) $args['post_type'];
+ // Sort post types to ensure same cache key generation.
+ sort( $args['post_type'] );
+
+ if ( isset( $args['post_status'] ) ) {
+ $args['post_status'] = (array) $args['post_status'];
+ // Sort post status to ensure same cache key generation.
+ sort( $args['post_status'] );
+ }
+
+ // Add a default orderby value of date to ensure same cache key generation.
+ if ( ! isset( $q['orderby'] ) ) {
+ $args['orderby'] = 'date';
+ }
+
$placeholder = $wpdb->placeholder_escape();
array_walk_recursive(
$args,
@@ -4874,6 +4928,8 @@ class WP_Query {
}
);
+ ksort( $args );
+
// Replace wpdb placeholder in the SQL statement used by the cache key.
$sql = $wpdb->remove_placeholder_escape( $sql );
$key = md5( serialize( $args ) . $sql );
diff --git a/wp-includes/class-wp-script-modules.php b/wp-includes/class-wp-script-modules.php
index 89d12a6..b7e843e 100644
--- a/wp-includes/class-wp-script-modules.php
+++ b/wp-includes/class-wp-script-modules.php
@@ -18,7 +18,7 @@ class WP_Script_Modules {
* Holds the registered script modules, keyed by script module identifier.
*
* @since 6.5.0
- * @var array
+ * @var array[]
*/
private $registered = array();
@@ -178,6 +178,10 @@ class WP_Script_Modules {
add_action( $position, array( $this, 'print_import_map' ) );
add_action( $position, array( $this, 'print_enqueued_script_modules' ) );
add_action( $position, array( $this, 'print_script_module_preloads' ) );
+
+ add_action( 'admin_print_footer_scripts', array( $this, 'print_import_map' ) );
+ add_action( 'admin_print_footer_scripts', array( $this, 'print_enqueued_script_modules' ) );
+ add_action( 'admin_print_footer_scripts', array( $this, 'print_script_module_preloads' ) );
}
/**
@@ -274,7 +278,7 @@ class WP_Script_Modules {
*
* @since 6.5.0
*
- * @return array Script modules marked for enqueue, keyed by script module identifier.
+ * @return array[] Script modules marked for enqueue, keyed by script module identifier.
*/
private function get_marked_for_enqueue(): array {
$enqueued = array();
@@ -296,11 +300,10 @@ class WP_Script_Modules {
*
* @since 6.5.0
*
-
* @param string[] $ids The identifiers of the script modules for which to gather dependencies.
- * @param array $import_types Optional. Import types of dependencies to retrieve: 'static', 'dynamic', or both.
+ * @param string[] $import_types Optional. Import types of dependencies to retrieve: 'static', 'dynamic', or both.
* Default is both.
- * @return array List of dependencies, keyed by script module identifier.
+ * @return array[] List of dependencies, keyed by script module identifier.
*/
private function get_dependencies( array $ids, array $import_types = array( 'static', 'dynamic' ) ) {
return array_reduce(
@@ -353,7 +356,7 @@ class WP_Script_Modules {
*
* @since 6.5.0
*
- * @param string $src Module source url.
+ * @param string $src Module source URL.
* @param string $id Module identifier.
*/
$src = apply_filters( 'script_module_loader_src', $src, $id );
diff --git a/wp-includes/class-wp-site-query.php b/wp-includes/class-wp-site-query.php
index fb3a6d2..8c097fc 100644
--- a/wp-includes/class-wp-site-query.php
+++ b/wp-includes/class-wp-site-query.php
@@ -660,7 +660,16 @@ class WP_Site_Query {
*
* @since 4.6.0
*
- * @param string[] $clauses An associative array of site query clauses.
+ * @param string[] $clauses {
+ * Associative array of the clauses for the query.
+ *
+ * @type string $fields The SELECT clause of the query.
+ * @type string $join The JOIN clause of the query.
+ * @type string $where The WHERE clause of the query.
+ * @type string $orderby The ORDER BY clause of the query.
+ * @type string $limits The LIMIT clause of the query.
+ * @type string $groupby The GROUP BY clause of the query.
+ * }
* @param WP_Site_Query $query Current instance of WP_Site_Query (passed by reference).
*/
$clauses = apply_filters_ref_array( 'sites_clauses', array( compact( $pieces ), &$this ) );
diff --git a/wp-includes/class-wp-textdomain-registry.php b/wp-includes/class-wp-textdomain-registry.php
index fe6d04b..7037b2b 100644
--- a/wp-includes/class-wp-textdomain-registry.php
+++ b/wp-includes/class-wp-textdomain-registry.php
@@ -88,14 +88,21 @@ class WP_Textdomain_Registry {
* @param string $domain Text domain.
* @param string $locale Locale.
*
- * @return string|false MO file path or false if there is none available.
+ * @return string|false Languages directory path or false if there is none available.
*/
public function get( $domain, $locale ) {
- if ( isset( $this->all[ $domain ][ $locale ] ) ) {
- return $this->all[ $domain ][ $locale ];
- }
+ $path = $this->all[ $domain ][ $locale ] ?? $this->get_path_from_lang_dir( $domain, $locale );
- return $this->get_path_from_lang_dir( $domain, $locale );
+ /**
+ * Filters the determined languages directory path for a specific domain and locale.
+ *
+ * @since 6.6.0
+ *
+ * @param string|false $path Languages directory path for the given domain and locale.
+ * @param string $domain Text domain.
+ * @param string $locale Locale.
+ */
+ return apply_filters( 'lang_dir_for_domain', $path, $domain, $locale );
}
/**
diff --git a/wp-includes/class-wp-theme-json-data.php b/wp-includes/class-wp-theme-json-data.php
index 6aa8a39..ca72ae8 100644
--- a/wp-includes/class-wp-theme-json-data.php
+++ b/wp-includes/class-wp-theme-json-data.php
@@ -39,7 +39,7 @@ class WP_Theme_JSON_Data {
* @param array $data Array following the theme.json specification.
* @param string $origin The origin of the data: default, theme, user.
*/
- public function __construct( $data = array(), $origin = 'theme' ) {
+ public function __construct( $data = array( 'version' => WP_Theme_JSON::LATEST_SCHEMA ), $origin = 'theme' ) {
$this->origin = $origin;
$this->theme_json = new WP_Theme_JSON( $data, $this->origin );
}
@@ -69,4 +69,15 @@ class WP_Theme_JSON_Data {
public function get_data() {
return $this->theme_json->get_raw_data();
}
+
+ /**
+ * Returns theme JSON object.
+ *
+ * @since 6.6.0
+ *
+ * @return WP_Theme_JSON The theme JSON structure stored in this data object.
+ */
+ public function get_theme_json() {
+ return $this->theme_json;
+ }
}
diff --git a/wp-includes/class-wp-theme-json-resolver.php b/wp-includes/class-wp-theme-json-resolver.php
index 3ad5ecf..5caaf0b 100644
--- a/wp-includes/class-wp-theme-json-resolver.php
+++ b/wp-includes/class-wp-theme-json-resolver.php
@@ -172,9 +172,18 @@ class WP_Theme_JSON_Resolver {
*
* @param WP_Theme_JSON_Data $theme_json Class to access and update the underlying data.
*/
- $theme_json = apply_filters( 'wp_theme_json_data_default', new WP_Theme_JSON_Data( $config, 'default' ) );
- $config = $theme_json->get_data();
- static::$core = new WP_Theme_JSON( $config, 'default' );
+ $theme_json = apply_filters( 'wp_theme_json_data_default', new WP_Theme_JSON_Data( $config, 'default' ) );
+
+ /*
+ * Backward compatibility for extenders returning a WP_Theme_JSON_Data
+ * compatible class that is not a WP_Theme_JSON_Data object.
+ */
+ if ( $theme_json instanceof WP_Theme_JSON_Data ) {
+ static::$core = $theme_json->get_theme_json();
+ } else {
+ $config = $theme_json->get_data();
+ static::$core = new WP_Theme_JSON( $config, 'default' );
+ }
return static::$core;
}
@@ -221,6 +230,8 @@ class WP_Theme_JSON_Resolver {
* @since 5.8.0
* @since 5.9.0 Theme supports have been inlined and the `$theme_support_data` argument removed.
* @since 6.0.0 Added an `$options` parameter to allow the theme data to be returned without theme supports.
+ * @since 6.6.0 Add support for 'default-font-sizes' and 'default-spacing-sizes' theme supports.
+ * Added registration and merging of block style variations from partial theme.json files and the block styles registry.
*
* @param array $deprecated Deprecated. Not used.
* @param array $options {
@@ -244,9 +255,33 @@ class WP_Theme_JSON_Resolver {
$theme_json_data = static::read_json_file( $theme_json_file );
$theme_json_data = static::translate( $theme_json_data, $wp_theme->get( 'TextDomain' ) );
} else {
- $theme_json_data = array();
+ $theme_json_data = array( 'version' => WP_Theme_JSON::LATEST_SCHEMA );
}
+ /*
+ * Register variations defined by theme partials (theme.json files in the styles directory).
+ * This is required so the variations pass sanitization of theme.json data.
+ */
+ $variations = static::get_style_variations( 'block' );
+ wp_register_block_style_variations_from_theme_json_partials( $variations );
+
+ /*
+ * Source variations from the block registry and block style variation files. Then, merge them into the existing theme.json data.
+ *
+ * In case the same style properties are defined in several sources, this is how we should resolve the values,
+ * from higher to lower priority:
+ *
+ * - styles.blocks.blockType.variations from theme.json
+ * - styles.variations from theme.json
+ * - variations from block style variation files
+ * - variations from block styles registry
+ *
+ * See test_add_registered_block_styles_to_theme_data and test_unwraps_block_style_variations.
+ *
+ */
+ $theme_json_data = static::inject_variations_from_block_style_variation_files( $theme_json_data, $variations );
+ $theme_json_data = static::inject_variations_from_block_styles_registry( $theme_json_data );
+
/**
* Filters the data provided by the theme for global styles and settings.
*
@@ -254,9 +289,18 @@ class WP_Theme_JSON_Resolver {
*
* @param WP_Theme_JSON_Data $theme_json Class to access and update the underlying data.
*/
- $theme_json = apply_filters( 'wp_theme_json_data_theme', new WP_Theme_JSON_Data( $theme_json_data, 'theme' ) );
- $theme_json_data = $theme_json->get_data();
- static::$theme = new WP_Theme_JSON( $theme_json_data );
+ $theme_json = apply_filters( 'wp_theme_json_data_theme', new WP_Theme_JSON_Data( $theme_json_data, 'theme' ) );
+
+ /*
+ * Backward compatibility for extenders returning a WP_Theme_JSON_Data
+ * compatible class that is not a WP_Theme_JSON_Data object.
+ */
+ if ( $theme_json instanceof WP_Theme_JSON_Data ) {
+ static::$theme = $theme_json->get_theme_json();
+ } else {
+ $config = $theme_json->get_data();
+ static::$theme = new WP_Theme_JSON( $config );
+ }
if ( $wp_theme->parent() ) {
// Get parent theme.json.
@@ -288,33 +332,25 @@ class WP_Theme_JSON_Resolver {
*/
$theme_support_data = WP_Theme_JSON::get_from_editor_settings( get_classic_theme_supports_block_editor_settings() );
if ( ! wp_theme_has_theme_json() ) {
- if ( ! isset( $theme_support_data['settings']['color'] ) ) {
- $theme_support_data['settings']['color'] = array();
- }
-
- $default_palette = false;
- if ( current_theme_supports( 'default-color-palette' ) ) {
- $default_palette = true;
- }
- if ( ! isset( $theme_support_data['settings']['color']['palette'] ) ) {
- // If the theme does not have any palette, we still want to show the core one.
- $default_palette = true;
- }
- $theme_support_data['settings']['color']['defaultPalette'] = $default_palette;
-
- $default_gradients = false;
- if ( current_theme_supports( 'default-gradient-presets' ) ) {
- $default_gradients = true;
- }
- if ( ! isset( $theme_support_data['settings']['color']['gradients'] ) ) {
- // If the theme does not have any gradients, we still want to show the core ones.
- $default_gradients = true;
- }
- $theme_support_data['settings']['color']['defaultGradients'] = $default_gradients;
+ /*
+ * Unlike block themes, classic themes without a theme.json disable
+ * default presets when custom preset theme support is added. This
+ * behavior can be overridden by using the corresponding default
+ * preset theme support.
+ */
+ $theme_support_data['settings']['color']['defaultPalette'] =
+ ! isset( $theme_support_data['settings']['color']['palette'] ) ||
+ current_theme_supports( 'default-color-palette' );
+ $theme_support_data['settings']['color']['defaultGradients'] =
+ ! isset( $theme_support_data['settings']['color']['gradients'] ) ||
+ current_theme_supports( 'default-gradient-presets' );
+ $theme_support_data['settings']['typography']['defaultFontSizes'] =
+ ! isset( $theme_support_data['settings']['typography']['fontSizes'] ) ||
+ current_theme_supports( 'default-font-sizes' );
+ $theme_support_data['settings']['spacing']['defaultSpacingSizes'] =
+ ! isset( $theme_support_data['settings']['spacing']['spacingSizes'] ) ||
+ current_theme_supports( 'default-spacing-sizes' );
- if ( ! isset( $theme_support_data['settings']['shadow'] ) ) {
- $theme_support_data['settings']['shadow'] = array();
- }
/*
* Shadow presets are explicitly disabled for classic themes until a
* decision is made for whether the default presets should match the
@@ -361,7 +397,7 @@ class WP_Theme_JSON_Resolver {
return static::$blocks;
}
- $config = array( 'version' => 2 );
+ $config = array( 'version' => WP_Theme_JSON::LATEST_SCHEMA );
foreach ( $blocks as $block_name => $block_type ) {
if ( isset( $block_type->supports['__experimentalStyle'] ) ) {
$config['styles']['blocks'][ $block_name ] = static::remove_json_comments( $block_type->supports['__experimentalStyle'] );
@@ -387,9 +423,18 @@ class WP_Theme_JSON_Resolver {
* @param WP_Theme_JSON_Data $theme_json Class to access and update the underlying data.
*/
$theme_json = apply_filters( 'wp_theme_json_data_blocks', new WP_Theme_JSON_Data( $config, 'blocks' ) );
- $config = $theme_json->get_data();
- static::$blocks = new WP_Theme_JSON( $config, 'blocks' );
+ /*
+ * Backward compatibility for extenders returning a WP_Theme_JSON_Data
+ * compatible class that is not a WP_Theme_JSON_Data object.
+ */
+ if ( $theme_json instanceof WP_Theme_JSON_Data ) {
+ static::$blocks = $theme_json->get_theme_json();
+ } else {
+ $config = $theme_json->get_data();
+ static::$blocks = new WP_Theme_JSON( $config, 'blocks' );
+ }
+
return static::$blocks;
}
@@ -498,6 +543,8 @@ class WP_Theme_JSON_Resolver {
* Returns the user's origin config.
*
* @since 5.9.0
+ * @since 6.6.0 The 'isGlobalStylesUserThemeJSON' flag is left on the user data.
+ * Register the block style variations coming from the user data.
*
* @return WP_Theme_JSON Entity that holds styles for user data.
*/
@@ -514,7 +561,7 @@ class WP_Theme_JSON_Resolver {
$json_decoding_error = json_last_error();
if ( JSON_ERROR_NONE !== $json_decoding_error ) {
- trigger_error( 'Error when decoding a theme.json schema for user data. ' . json_last_error_msg() );
+ wp_trigger_error( __METHOD__, 'Error when decoding a theme.json schema for user data. ' . json_last_error_msg() );
/**
* Filters the data provided by the user for global styles & settings.
*
@@ -523,8 +570,17 @@ class WP_Theme_JSON_Resolver {
* @param WP_Theme_JSON_Data $theme_json Class to access and update the underlying data.
*/
$theme_json = apply_filters( 'wp_theme_json_data_user', new WP_Theme_JSON_Data( $config, 'custom' ) );
- $config = $theme_json->get_data();
- return new WP_Theme_JSON( $config, 'custom' );
+
+ /*
+ * Backward compatibility for extenders returning a WP_Theme_JSON_Data
+ * compatible class that is not a WP_Theme_JSON_Data object.
+ */
+ if ( $theme_json instanceof WP_Theme_JSON_Data ) {
+ return $theme_json->get_theme_json();
+ } else {
+ $config = $theme_json->get_data();
+ return new WP_Theme_JSON( $config, 'custom' );
+ }
}
/*
@@ -542,9 +598,18 @@ class WP_Theme_JSON_Resolver {
}
/** This filter is documented in wp-includes/class-wp-theme-json-resolver.php */
- $theme_json = apply_filters( 'wp_theme_json_data_user', new WP_Theme_JSON_Data( $config, 'custom' ) );
- $config = $theme_json->get_data();
- static::$user = new WP_Theme_JSON( $config, 'custom' );
+ $theme_json = apply_filters( 'wp_theme_json_data_user', new WP_Theme_JSON_Data( $config, 'custom' ) );
+
+ /*
+ * Backward compatibility for extenders returning a WP_Theme_JSON_Data
+ * compatible class that is not a WP_Theme_JSON_Data object.
+ */
+ if ( $theme_json instanceof WP_Theme_JSON_Data ) {
+ static::$user = $theme_json->get_theme_json();
+ } else {
+ $config = $theme_json->get_data();
+ static::$user = new WP_Theme_JSON( $config, 'custom' );
+ }
return static::$user;
}
@@ -592,7 +657,6 @@ class WP_Theme_JSON_Resolver {
$result = new WP_Theme_JSON();
$result->merge( static::get_core_data() );
if ( 'default' === $origin ) {
- $result->set_spacing_sizes();
return $result;
}
@@ -603,12 +667,10 @@ class WP_Theme_JSON_Resolver {
$result->merge( static::get_theme_data() );
if ( 'theme' === $origin ) {
- $result->set_spacing_sizes();
return $result;
}
$result->merge( static::get_user_data() );
- $result->set_spacing_sizes();
return $result;
}
@@ -707,16 +769,45 @@ class WP_Theme_JSON_Resolver {
return $nested_json_files;
}
+ /**
+ * Determines if a supplied style variation matches the provided scope.
+ *
+ * For backwards compatibility, if a variation does not define any scope
+ * related property, e.g. `blockTypes`, it is assumed to be a theme style
+ * variation.
+ *
+ * @since 6.6.0
+ *
+ * @param array $variation Theme.json shaped style variation object.
+ * @param string $scope Scope to check e.g. theme, block etc.
+ * @return boolean
+ */
+ private static function style_variation_has_scope( $variation, $scope ) {
+ if ( 'block' === $scope ) {
+ return isset( $variation['blockTypes'] );
+ }
+
+ if ( 'theme' === $scope ) {
+ return ! isset( $variation['blockTypes'] );
+ }
+
+ return false;
+ }
/**
* Returns the style variations defined by the theme.
*
* @since 6.0.0
* @since 6.2.0 Returns parent theme variations if theme is a child.
+ * @since 6.6.0 Added configurable scope parameter to allow filtering
+ * theme.json partial files by the scope to which they
+ * can be applied e.g. theme vs block etc.
+ * Added basic caching for read theme.json partial files.
*
+ * @param string $scope The scope or type of style variation to retrieve e.g. theme, block etc.
* @return array
*/
- public static function get_style_variations() {
+ public static function get_style_variations( $scope = 'theme' ) {
$variation_files = array();
$variations = array();
$base_directory = get_stylesheet_directory() . '/styles';
@@ -738,8 +829,8 @@ class WP_Theme_JSON_Resolver {
}
ksort( $variation_files );
foreach ( $variation_files as $path => $file ) {
- $decoded_file = wp_json_file_decode( $path, array( 'associative' => true ) );
- if ( is_array( $decoded_file ) ) {
+ $decoded_file = self::read_json_file( $path );
+ if ( is_array( $decoded_file ) && static::style_variation_has_scope( $decoded_file, $scope ) ) {
$translated = static::translate( $decoded_file, wp_get_theme()->get( 'TextDomain' ) );
$variation = ( new WP_Theme_JSON( $translated ) )->get_raw_data();
if ( empty( $variation['title'] ) ) {
@@ -750,4 +841,162 @@ class WP_Theme_JSON_Resolver {
}
return $variations;
}
+
+ /**
+ * Resolves relative paths in theme.json styles to theme absolute paths
+ * and returns them in an array that can be embedded
+ * as the value of `_link` object in REST API responses.
+ *
+ * @since 6.6.0
+ *
+ * @param WP_Theme_JSON $theme_json A theme json instance.
+ * @return array An array of resolved paths.
+ */
+ public static function get_resolved_theme_uris( $theme_json ) {
+ $resolved_theme_uris = array();
+
+ if ( ! $theme_json instanceof WP_Theme_JSON ) {
+ return $resolved_theme_uris;
+ }
+
+ $theme_json_data = $theme_json->get_raw_data();
+
+ // Top level styles.
+ $background_image_url = isset( $theme_json_data['styles']['background']['backgroundImage']['url'] ) ? $theme_json_data['styles']['background']['backgroundImage']['url'] : null;
+
+ /*
+ * The same file convention when registering web fonts.
+ * See: WP_Font_Face_Resolver::to_theme_file_uri.
+ */
+ $placeholder = 'file:./';
+ if (
+ isset( $background_image_url ) &&
+ is_string( $background_image_url ) &&
+ // Skip if the src doesn't start with the placeholder, as there's nothing to replace.
+ str_starts_with( $background_image_url, $placeholder )
+ ) {
+ $file_type = wp_check_filetype( $background_image_url );
+ $src_url = str_replace( $placeholder, '', $background_image_url );
+ $resolved_theme_uri = array(
+ 'name' => $background_image_url,
+ 'href' => sanitize_url( get_theme_file_uri( $src_url ) ),
+ 'target' => 'styles.background.backgroundImage.url',
+ );
+ if ( isset( $file_type['type'] ) ) {
+ $resolved_theme_uri['type'] = $file_type['type'];
+ }
+ $resolved_theme_uris[] = $resolved_theme_uri;
+ }
+
+ return $resolved_theme_uris;
+ }
+
+ /**
+ * Resolves relative paths in theme.json styles to theme absolute paths
+ * and merges them with incoming theme JSON.
+ *
+ * @since 6.6.0
+ *
+ * @param WP_Theme_JSON $theme_json A theme json instance.
+ * @return WP_Theme_JSON Theme merged with resolved paths, if any found.
+ */
+ public static function resolve_theme_file_uris( $theme_json ) {
+ $resolved_urls = static::get_resolved_theme_uris( $theme_json );
+ if ( empty( $resolved_urls ) ) {
+ return $theme_json;
+ }
+
+ $resolved_theme_json_data = array(
+ 'version' => WP_Theme_JSON::LATEST_SCHEMA,
+ );
+
+ foreach ( $resolved_urls as $resolved_url ) {
+ $path = explode( '.', $resolved_url['target'] );
+ _wp_array_set( $resolved_theme_json_data, $path, $resolved_url['href'] );
+ }
+
+ $theme_json->merge( new WP_Theme_JSON( $resolved_theme_json_data ) );
+
+ return $theme_json;
+ }
+
+ /**
+ * Adds variations sourced from block style variations files to the supplied theme.json data.
+ *
+ * @since 6.6.0
+ *
+ * @param array $data Array following the theme.json specification.
+ * @param array $variations Shared block style variations.
+ * @return array Theme json data including shared block style variation definitions.
+ */
+ private static function inject_variations_from_block_style_variation_files( $data, $variations ) {
+ if ( empty( $variations ) ) {
+ return $data;
+ }
+
+ foreach ( $variations as $variation ) {
+ if ( empty( $variation['styles'] ) || empty( $variation['blockTypes'] ) ) {
+ continue;
+ }
+
+ $variation_name = $variation['slug'] ?? _wp_to_kebab_case( $variation['title'] );
+
+ foreach ( $variation['blockTypes'] as $block_type ) {
+ // First, override partial styles with any top-level styles.
+ $top_level_data = $data['styles']['variations'][ $variation_name ] ?? array();
+ if ( ! empty( $top_level_data ) ) {
+ $variation['styles'] = array_replace_recursive( $variation['styles'], $top_level_data );
+ }
+
+ // Then, override styles so far with any block-level styles.
+ $block_level_data = $data['styles']['blocks'][ $block_type ]['variations'][ $variation_name ] ?? array();
+ if ( ! empty( $block_level_data ) ) {
+ $variation['styles'] = array_replace_recursive( $variation['styles'], $block_level_data );
+ }
+
+ $path = array( 'styles', 'blocks', $block_type, 'variations', $variation_name );
+ _wp_array_set( $data, $path, $variation['styles'] );
+ }
+ }
+
+ return $data;
+ }
+
+ /**
+ * Adds variations sourced from the block styles registry to the supplied theme.json data.
+ *
+ * @since 6.6.0
+ *
+ * @param array $data Array following the theme.json specification.
+ * @return array Theme json data including shared block style variation definitions.
+ */
+ private static function inject_variations_from_block_styles_registry( $data ) {
+ $registry = WP_Block_Styles_Registry::get_instance();
+ $styles = $registry->get_all_registered();
+
+ foreach ( $styles as $block_type => $variations ) {
+ foreach ( $variations as $variation_name => $variation ) {
+ if ( empty( $variation['style_data'] ) ) {
+ continue;
+ }
+
+ // First, override registry styles with any top-level styles.
+ $top_level_data = $data['styles']['variations'][ $variation_name ] ?? array();
+ if ( ! empty( $top_level_data ) ) {
+ $variation['style_data'] = array_replace_recursive( $variation['style_data'], $top_level_data );
+ }
+
+ // Then, override styles so far with any block-level styles.
+ $block_level_data = $data['styles']['blocks'][ $block_type ]['variations'][ $variation_name ] ?? array();
+ if ( ! empty( $block_level_data ) ) {
+ $variation['style_data'] = array_replace_recursive( $variation['style_data'], $block_level_data );
+ }
+
+ $path = array( 'styles', 'blocks', $block_type, 'variations', $variation_name );
+ _wp_array_set( $data, $path, $variation['style_data'] );
+ }
+ }
+
+ return $data;
+ }
}
diff --git a/wp-includes/class-wp-theme-json-schema.php b/wp-includes/class-wp-theme-json-schema.php
index 46712a0..aaa2f96 100644
--- a/wp-includes/class-wp-theme-json-schema.php
+++ b/wp-includes/class-wp-theme-json-schema.php
@@ -35,20 +35,27 @@ class WP_Theme_JSON_Schema {
* Function that migrates a given theme.json structure to the last version.
*
* @since 5.9.0
+ * @since 6.6.0 Migrate up to v3 and add $origin parameter.
*
* @param array $theme_json The structure to migrate.
- *
+ * @param string $origin Optional. What source of data this object represents.
+ * One of 'blocks', 'default', 'theme', or 'custom'. Default 'theme'.
* @return array The structure in the last version.
*/
- public static function migrate( $theme_json ) {
+ public static function migrate( $theme_json, $origin = 'theme' ) {
if ( ! isset( $theme_json['version'] ) ) {
$theme_json = array(
'version' => WP_Theme_JSON::LATEST_SCHEMA,
);
}
- if ( 1 === $theme_json['version'] ) {
- $theme_json = self::migrate_v1_to_v2( $theme_json );
+ // Migrate each version in order starting with the current version.
+ switch ( $theme_json['version'] ) {
+ case 1:
+ $theme_json = self::migrate_v1_to_v2( $theme_json );
+ // Deliberate fall through. Once migrated to v2, also migrate to v3.
+ case 2:
+ $theme_json = self::migrate_v2_to_v3( $theme_json, $origin );
}
return $theme_json;
@@ -85,6 +92,77 @@ class WP_Theme_JSON_Schema {
}
/**
+ * Migrates from v2 to v3.
+ *
+ * - Sets settings.typography.defaultFontSizes to false if settings.typography.fontSizes are defined.
+ * - Sets settings.spacing.defaultSpacingSizes to false if settings.spacing.spacingSizes are defined.
+ * - Prevents settings.spacing.spacingSizes from merging with settings.spacing.spacingScale by
+ * unsetting spacingScale when spacingSizes are defined.
+ *
+ * @since 6.6.0
+ *
+ * @param array $old Data to migrate.
+ * @param string $origin What source of data this object represents.
+ * One of 'blocks', 'default', 'theme', or 'custom'.
+ * @return array Data with defaultFontSizes set to false.
+ */
+ private static function migrate_v2_to_v3( $old, $origin ) {
+ // Copy everything.
+ $new = $old;
+
+ // Set the new version.
+ $new['version'] = 3;
+
+ /*
+ * Remaining changes do not need to be applied to the custom origin,
+ * as they should take on the value of the theme origin.
+ */
+ if ( 'custom' === $origin ) {
+ return $new;
+ }
+
+ /*
+ * Even though defaultFontSizes and defaultSpacingSizes are new
+ * settings, we need to migrate them as they each control
+ * PRESETS_METADATA prevent_override values which were previously
+ * hardcoded to false. This only needs to happen when the theme provides
+ * fontSizes or spacingSizes as they could match the default ones and
+ * affect the generated CSS.
+ */
+ if ( isset( $old['settings']['typography']['fontSizes'] ) ) {
+ $new['settings']['typography']['defaultFontSizes'] = false;
+ }
+
+ /*
+ * Similarly to defaultFontSizes, we need to migrate defaultSpacingSizes
+ * as it controls the PRESETS_METADATA prevent_override which was
+ * previously hardcoded to false. This only needs to happen when the
+ * theme provided spacing sizes via spacingSizes or spacingScale.
+ */
+ if (
+ isset( $old['settings']['spacing']['spacingSizes'] ) ||
+ isset( $old['settings']['spacing']['spacingScale'] )
+ ) {
+ $new['settings']['spacing']['defaultSpacingSizes'] = false;
+ }
+
+ /*
+ * In v3 spacingSizes is merged with the generated spacingScale sizes
+ * instead of completely replacing them. The v3 behavior is what was
+ * documented for the v2 schema, but the code never actually did work
+ * that way. Instead of surprising users with a behavior change two
+ * years after the fact at the same time as a v3 update is introduced,
+ * we'll continue using the "bugged" behavior for v2 themes. And treat
+ * the "bug fix" as a breaking change for v3.
+ */
+ if ( isset( $old['settings']['spacing']['spacingSizes'] ) ) {
+ unset( $new['settings']['spacing']['spacingScale'] );
+ }
+
+ return $new;
+ }
+
+ /**
* Processes the settings subtree.
*
* @since 5.9.0
diff --git a/wp-includes/class-wp-theme-json.php b/wp-includes/class-wp-theme-json.php
index 6500b44..458a23d 100644
--- a/wp-includes/class-wp-theme-json.php
+++ b/wp-includes/class-wp-theme-json.php
@@ -39,6 +39,14 @@ class WP_Theme_JSON {
protected static $blocks_metadata = array();
/**
+ * The CSS selector for the top-level preset settings.
+ *
+ * @since 6.6.0
+ * @var string
+ */
+ const ROOT_CSS_PROPERTIES_SELECTOR = ':root';
+
+ /**
* The CSS selector for the top-level styles.
*
* @since 5.8.0
@@ -115,10 +123,22 @@ class WP_Theme_JSON {
* `prevent_override` value for `color.duotone` to use `color.defaultDuotone`.
* @since 6.2.0 Added 'shadow' presets.
* @since 6.3.0 Replaced value_func for duotone with `null`. Custom properties are handled by class-wp-duotone.php.
+ * @since 6.6.0 Added the `dimensions.aspectRatios` and `dimensions.defaultAspectRatios` presets.
+ * Updated the 'prevent_override' value for font size presets to use 'typography.defaultFontSizes'
+ * and spacing size presets to use `spacing.defaultSpacingSizes`.
* @var array
*/
const PRESETS_METADATA = array(
array(
+ 'path' => array( 'dimensions', 'aspectRatios' ),
+ 'prevent_override' => array( 'dimensions', 'defaultAspectRatios' ),
+ 'use_default_names' => false,
+ 'value_key' => 'ratio',
+ 'css_vars' => '--wp--preset--aspect-ratio--$slug',
+ 'classes' => array(),
+ 'properties' => array( 'aspect-ratio' ),
+ ),
+ array(
'path' => array( 'color', 'palette' ),
'prevent_override' => array( 'color', 'defaultPalette' ),
'use_default_names' => false,
@@ -151,7 +171,7 @@ class WP_Theme_JSON {
),
array(
'path' => array( 'typography', 'fontSizes' ),
- 'prevent_override' => false,
+ 'prevent_override' => array( 'typography', 'defaultFontSizes' ),
'use_default_names' => true,
'value_func' => 'wp_get_typography_font_size_value',
'css_vars' => '--wp--preset--font-size--$slug',
@@ -169,7 +189,7 @@ class WP_Theme_JSON {
),
array(
'path' => array( 'spacing', 'spacingSizes' ),
- 'prevent_override' => false,
+ 'prevent_override' => array( 'spacing', 'defaultSpacingSizes' ),
'use_default_names' => true,
'value_key' => 'size',
'css_vars' => '--wp--preset--spacing--$slug',
@@ -205,6 +225,7 @@ class WP_Theme_JSON {
* @since 6.3.0 Added `column-count` property.
* @since 6.4.0 Added `writing-mode` property.
* @since 6.5.0 Added `aspect-ratio` property.
+ * @since 6.6.0 Added `background-[image|position|repeat|size]` properties.
*
* @var array
*/
@@ -212,6 +233,10 @@ class WP_Theme_JSON {
'aspect-ratio' => array( 'dimensions', 'aspectRatio' ),
'background' => array( 'color', 'gradient' ),
'background-color' => array( 'color', 'background' ),
+ 'background-image' => array( 'background', 'backgroundImage' ),
+ 'background-position' => array( 'background', 'backgroundPosition' ),
+ 'background-repeat' => array( 'background', 'backgroundRepeat' ),
+ 'background-size' => array( 'background', 'backgroundSize' ),
'border-radius' => array( 'border', 'radius' ),
'border-top-left-radius' => array( 'border', 'radius', 'topLeft' ),
'border-top-right-radius' => array( 'border', 'radius', 'topRight' ),
@@ -233,6 +258,7 @@ class WP_Theme_JSON {
'border-left-width' => array( 'border', 'left', 'width' ),
'border-left-style' => array( 'border', 'left', 'style' ),
'color' => array( 'color', 'text' ),
+ 'text-align' => array( 'typography', 'textAlign' ),
'column-count' => array( 'typography', 'textColumns' ),
'font-family' => array( 'typography', 'fontFamily' ),
'font-size' => array( 'typography', 'fontSize' ),
@@ -275,26 +301,30 @@ class WP_Theme_JSON {
*
* Indirect properties are not output directly by `compute_style_properties`,
* but are used elsewhere in the processing of global styles. The indirect
- * property is used to validate whether or not a style value is allowed.
+ * property is used to validate whether a style value is allowed.
*
* @since 6.2.0
+ * @since 6.6.0 Added background-image properties.
*
* @var array
*/
const INDIRECT_PROPERTIES_METADATA = array(
- 'gap' => array(
+ 'gap' => array(
array( 'spacing', 'blockGap' ),
),
- 'column-gap' => array(
+ 'column-gap' => array(
array( 'spacing', 'blockGap', 'left' ),
),
- 'row-gap' => array(
+ 'row-gap' => array(
array( 'spacing', 'blockGap', 'top' ),
),
- 'max-width' => array(
+ 'max-width' => array(
array( 'layout', 'contentSize' ),
array( 'layout', 'wideSize' ),
),
+ 'background-image' => array(
+ array( 'background', 'backgroundImage', 'url' ),
+ ),
);
/**
@@ -319,13 +349,16 @@ class WP_Theme_JSON {
* @since 5.9.0 Renamed from `ALLOWED_TOP_LEVEL_KEYS` to `VALID_TOP_LEVEL_KEYS`,
* added the `customTemplates` and `templateParts` values.
* @since 6.3.0 Added the `description` value.
+ * @since 6.6.0 Added `blockTypes` to support block style variation theme.json partials.
* @var string[]
*/
const VALID_TOP_LEVEL_KEYS = array(
+ 'blockTypes',
'customTemplates',
'description',
'patterns',
'settings',
+ 'slug',
'styles',
'templateParts',
'title',
@@ -348,6 +381,8 @@ class WP_Theme_JSON {
* `typography.writingMode`, `lightbox.enabled` and `lightbox.allowEditing`.
* @since 6.5.0 Added support for `layout.allowCustomContentAndWideSize`,
* `background.backgroundSize` and `dimensions.aspectRatio`.
+ * @since 6.6.0 Added support for 'dimensions.aspectRatios', 'dimensions.defaultAspectRatios',
+ * 'typography.defaultFontSizes', and 'spacing.defaultSpacingSizes'.
* @var array
*/
const VALID_SETTINGS = array(
@@ -382,8 +417,10 @@ class WP_Theme_JSON {
),
'custom' => null,
'dimensions' => array(
- 'aspectRatio' => null,
- 'minHeight' => null,
+ 'aspectRatio' => null,
+ 'aspectRatios' => null,
+ 'defaultAspectRatios' => null,
+ 'minHeight' => null,
),
'layout' => array(
'contentSize' => null,
@@ -400,32 +437,35 @@ class WP_Theme_JSON {
'sticky' => null,
),
'spacing' => array(
- 'customSpacingSize' => null,
- 'spacingSizes' => null,
- 'spacingScale' => null,
- 'blockGap' => null,
- 'margin' => null,
- 'padding' => null,
- 'units' => null,
+ 'customSpacingSize' => null,
+ 'defaultSpacingSizes' => null,
+ 'spacingSizes' => null,
+ 'spacingScale' => null,
+ 'blockGap' => null,
+ 'margin' => null,
+ 'padding' => null,
+ 'units' => null,
),
'shadow' => array(
'presets' => null,
'defaultPresets' => null,
),
'typography' => array(
- 'fluid' => null,
- 'customFontSize' => null,
- 'dropCap' => null,
- 'fontFamilies' => null,
- 'fontSizes' => null,
- 'fontStyle' => null,
- 'fontWeight' => null,
- 'letterSpacing' => null,
- 'lineHeight' => null,
- 'textColumns' => null,
- 'textDecoration' => null,
- 'textTransform' => null,
- 'writingMode' => null,
+ 'fluid' => null,
+ 'customFontSize' => null,
+ 'defaultFontSizes' => null,
+ 'dropCap' => null,
+ 'fontFamilies' => null,
+ 'fontSizes' => null,
+ 'fontStyle' => null,
+ 'fontWeight' => null,
+ 'letterSpacing' => null,
+ 'lineHeight' => null,
+ 'textAlign' => null,
+ 'textColumns' => null,
+ 'textDecoration' => null,
+ 'textTransform' => null,
+ 'writingMode' => null,
),
);
@@ -474,10 +514,17 @@ class WP_Theme_JSON {
* @since 6.2.0 Added `outline`, and `minHeight` properties.
* @since 6.3.0 Added support for `typography.textColumns`.
* @since 6.5.0 Added support for `dimensions.aspectRatio`.
+ * @since 6.6.0 Added `background` sub properties to top-level only.
*
* @var array
*/
const VALID_STYLES = array(
+ 'background' => array(
+ 'backgroundImage' => 'top',
+ 'backgroundPosition' => 'top',
+ 'backgroundRepeat' => 'top',
+ 'backgroundSize' => 'top',
+ ),
'border' => array(
'color' => null,
'radius' => null,
@@ -519,6 +566,7 @@ class WP_Theme_JSON {
'fontWeight' => null,
'letterSpacing' => null,
'lineHeight' => null,
+ 'textAlign' => null,
'textColumns' => null,
'textDecoration' => null,
'textTransform' => null,
@@ -686,36 +734,34 @@ class WP_Theme_JSON {
*
* @since 5.8.0
* @since 5.9.0 Changed value from 1 to 2.
+ * @since 6.6.0 Changed value from 2 to 3.
* @var int
*/
- const LATEST_SCHEMA = 2;
+ const LATEST_SCHEMA = 3;
/**
* Constructor.
*
* @since 5.8.0
+ * @since 6.6.0 Key spacingScale by origin, and Pre-generate the spacingSizes from spacingScale.
+ * Added unwrapping of shared block style variations into block type variations if registered.
*
* @param array $theme_json A structure that follows the theme.json schema.
* @param string $origin Optional. What source of data this object represents.
- * One of 'default', 'theme', or 'custom'. Default 'theme'.
+ * One of 'blocks', 'default', 'theme', or 'custom'. Default 'theme'.
*/
- public function __construct( $theme_json = array(), $origin = 'theme' ) {
+ public function __construct( $theme_json = array( 'version' => self::LATEST_SCHEMA ), $origin = 'theme' ) {
if ( ! in_array( $origin, static::VALID_ORIGINS, true ) ) {
$origin = 'theme';
}
- $this->theme_json = WP_Theme_JSON_Schema::migrate( $theme_json );
+ $this->theme_json = WP_Theme_JSON_Schema::migrate( $theme_json, $origin );
$valid_block_names = array_keys( static::get_blocks_metadata() );
$valid_element_names = array_keys( static::ELEMENTS );
- $valid_variations = array();
- foreach ( self::get_blocks_metadata() as $block_name => $block_meta ) {
- if ( ! isset( $block_meta['styleVariations'] ) ) {
- continue;
- }
- $valid_variations[ $block_name ] = array_keys( $block_meta['styleVariations'] );
- }
- $theme_json = static::sanitize( $this->theme_json, $valid_block_names, $valid_element_names, $valid_variations );
- $this->theme_json = static::maybe_opt_in_into_settings( $theme_json );
+ $valid_variations = static::get_valid_block_style_variations();
+ $this->theme_json = static::unwrap_shared_block_style_variations( $this->theme_json, $valid_variations );
+ $this->theme_json = static::sanitize( $this->theme_json, $valid_block_names, $valid_element_names, $valid_variations );
+ $this->theme_json = static::maybe_opt_in_into_settings( $this->theme_json );
// Internally, presets are keyed by origin.
$nodes = static::get_setting_nodes( $this->theme_json );
@@ -734,6 +780,94 @@ class WP_Theme_JSON {
}
}
}
+
+ // In addition to presets, spacingScale (which generates presets) is also keyed by origin.
+ $scale_path = array( 'settings', 'spacing', 'spacingScale' );
+ $spacing_scale = _wp_array_get( $this->theme_json, $scale_path, null );
+ if ( null !== $spacing_scale ) {
+ // If the spacingScale is not already keyed by origin.
+ if ( empty( array_intersect( array_keys( $spacing_scale ), static::VALID_ORIGINS ) ) ) {
+ _wp_array_set( $this->theme_json, $scale_path, array( $origin => $spacing_scale ) );
+ }
+ }
+
+ // Pre-generate the spacingSizes from spacingScale.
+ $scale_path = array( 'settings', 'spacing', 'spacingScale', $origin );
+ $spacing_scale = _wp_array_get( $this->theme_json, $scale_path, null );
+ if ( isset( $spacing_scale ) ) {
+ $sizes_path = array( 'settings', 'spacing', 'spacingSizes', $origin );
+ $spacing_sizes = _wp_array_get( $this->theme_json, $sizes_path, array() );
+ $spacing_scale_sizes = static::compute_spacing_sizes( $spacing_scale );
+ $merged_spacing_sizes = static::merge_spacing_sizes( $spacing_scale_sizes, $spacing_sizes );
+ _wp_array_set( $this->theme_json, $sizes_path, $merged_spacing_sizes );
+ }
+ }
+
+ /**
+ * Unwraps shared block style variations.
+ *
+ * It takes the shared variations (styles.variations.variationName) and
+ * applies them to all the blocks that have the given variation registered
+ * (styles.blocks.blockType.variations.variationName).
+ *
+ * For example, given the `core/paragraph` and `core/group` blocks have
+ * registered the `section-a` style variation, and given the following input:
+ *
+ * {
+ * "styles": {
+ * "variations": {
+ * "section-a": { "color": { "background": "backgroundColor" } }
+ * }
+ * }
+ * }
+ *
+ * It returns the following output:
+ *
+ * {
+ * "styles": {
+ * "blocks": {
+ * "core/paragraph": {
+ * "variations": {
+ * "section-a": { "color": { "background": "backgroundColor" } }
+ * },
+ * },
+ * "core/group": {
+ * "variations": {
+ * "section-a": { "color": { "background": "backgroundColor" } }
+ * }
+ * }
+ * }
+ * }
+ * }
+ *
+ * @since 6.6.0
+ *
+ * @param array $theme_json A structure that follows the theme.json schema.
+ * @param array $valid_variations Valid block style variations.
+ * @return array Theme json data with shared variation definitions unwrapped under appropriate block types.
+ */
+ private static function unwrap_shared_block_style_variations( $theme_json, $valid_variations ) {
+ if ( empty( $theme_json['styles']['variations'] ) || empty( $valid_variations ) ) {
+ return $theme_json;
+ }
+
+ $new_theme_json = $theme_json;
+ $variations = $new_theme_json['styles']['variations'];
+
+ foreach ( $valid_variations as $block_type => $registered_variations ) {
+ foreach ( $registered_variations as $variation_name ) {
+ $block_level_data = $new_theme_json['styles']['blocks'][ $block_type ]['variations'][ $variation_name ] ?? array();
+ $top_level_data = $variations[ $variation_name ] ?? array();
+ $merged_data = array_replace_recursive( $top_level_data, $block_level_data );
+ if ( ! empty( $merged_data ) ) {
+ _wp_array_set( $new_theme_json, array( 'styles', 'blocks', $block_type, 'variations', $variation_name ), $merged_data );
+ }
+ }
+ }
+
+ unset( $new_theme_json['styles']['variations'] );
+
+ return $new_theme_json;
}
/**
@@ -792,6 +926,7 @@ class WP_Theme_JSON {
* @since 5.8.0
* @since 5.9.0 Added the `$valid_block_names` and `$valid_element_name` parameters.
* @since 6.3.0 Added the `$valid_variations` parameter.
+ * @since 6.6.0 Updated schema to allow extended block style variations.
*
* @param array $input Structure to sanitize.
* @param array $valid_block_names List of valid block names.
@@ -850,6 +985,27 @@ class WP_Theme_JSON {
$schema_styles_blocks = array();
$schema_settings_blocks = array();
+
+ /*
+ * Generate a schema for blocks.
+ * - Block styles can contain `elements` & `variations` definitions.
+ * - Variations definitions cannot be nested.
+ * - Variations can contain styles for inner `blocks`.
+ * - Variation inner `blocks` styles can contain `elements`.
+ *
+ * As each variation needs a `blocks` schema but further nested
+ * inner `blocks`, the overall schema will be generated in multiple passes.
+ */
+ foreach ( $valid_block_names as $block ) {
+ $schema_settings_blocks[ $block ] = static::VALID_SETTINGS;
+ $schema_styles_blocks[ $block ] = $styles_non_top_level;
+ $schema_styles_blocks[ $block ]['elements'] = $schema_styles_elements;
+ }
+
+ $block_style_variation_styles = static::VALID_STYLES;
+ $block_style_variation_styles['blocks'] = $schema_styles_blocks;
+ $block_style_variation_styles['elements'] = $schema_styles_elements;
+
foreach ( $valid_block_names as $block ) {
// Build the schema for each block style variation.
$style_variation_names = array();
@@ -866,12 +1022,9 @@ class WP_Theme_JSON {
$schema_styles_variations = array();
if ( ! empty( $style_variation_names ) ) {
- $schema_styles_variations = array_fill_keys( $style_variation_names, $styles_non_top_level );
+ $schema_styles_variations = array_fill_keys( $style_variation_names, $block_style_variation_styles );
}
- $schema_settings_blocks[ $block ] = static::VALID_SETTINGS;
- $schema_styles_blocks[ $block ] = $styles_non_top_level;
- $schema_styles_blocks[ $block ]['elements'] = $schema_styles_elements;
$schema_styles_blocks[ $block ]['variations'] = $schema_styles_variations;
}
@@ -985,16 +1138,36 @@ class WP_Theme_JSON {
* @since 5.9.0 Added `duotone` key with CSS selector.
* @since 6.1.0 Added `features` key with block support feature level selectors.
* @since 6.3.0 Refactored and stabilized selectors API.
+ * @since 6.6.0 Updated to include block style variations from the block styles registry.
*
* @return array Block metadata.
*/
protected static function get_blocks_metadata() {
- $registry = WP_Block_Type_Registry::get_instance();
- $blocks = $registry->get_all_registered();
+ $registry = WP_Block_Type_Registry::get_instance();
+ $blocks = $registry->get_all_registered();
+ $style_registry = WP_Block_Styles_Registry::get_instance();
// Is there metadata for all currently registered blocks?
$blocks = array_diff_key( $blocks, static::$blocks_metadata );
if ( empty( $blocks ) ) {
+ /*
+ * New block styles may have been registered within WP_Block_Styles_Registry.
+ * Update block metadata for any new block style variations.
+ */
+ $registered_styles = $style_registry->get_all_registered();
+ foreach ( static::$blocks_metadata as $block_name => $block_metadata ) {
+ if ( ! empty( $registered_styles[ $block_name ] ) ) {
+ $style_selectors = $block_metadata['styleVariations'] ?? array();
+
+ foreach ( $registered_styles[ $block_name ] as $block_style ) {
+ if ( ! isset( $style_selectors[ $block_style['name'] ] ) ) {
+ $style_selectors[ $block_style['name'] ] = static::get_block_style_variation_selector( $block_style['name'], $block_metadata['selector'] );
+ }
+ }
+
+ static::$blocks_metadata[ $block_name ]['styleVariations'] = $style_selectors;
+ }
+ }
return static::$blocks_metadata;
}
@@ -1029,11 +1202,20 @@ class WP_Theme_JSON {
}
// If the block has style variations, append their selectors to the block metadata.
+ $style_selectors = array();
if ( ! empty( $block_type->styles ) ) {
- $style_selectors = array();
foreach ( $block_type->styles as $style ) {
$style_selectors[ $style['name'] ] = static::get_block_style_variation_selector( $style['name'], static::$blocks_metadata[ $block_name ]['selector'] );
}
+ }
+
+ // Block style variations can be registered through the WP_Block_Styles_Registry as well as block.json.
+ $registered_styles = $style_registry->get_registered_styles_for_block( $block_name );
+ foreach ( $registered_styles as $style ) {
+ $style_selectors[ $style['name'] ] = static::get_block_style_variation_selector( $style['name'], static::$blocks_metadata[ $block_name ]['selector'] );
+ }
+
+ if ( ! empty( $style_selectors ) ) {
static::$blocks_metadata[ $block_name ]['styleVariations'] = $style_selectors;
}
}
@@ -1127,16 +1309,22 @@ class WP_Theme_JSON {
* @since 5.8.0
* @since 5.9.0 Removed the `$type` parameter, added the `$types` and `$origins` parameters.
* @since 6.3.0 Add fallback layout styles for Post Template when block gap support isn't available.
+ * @since 6.6.0 Added boolean `skip_root_layout_styles` and `include_block_style_variations` options
+ * to control styles output as desired.
*
* @param string[] $types Types of styles to load. Will load all by default. It accepts:
* - `variables`: only the CSS Custom Properties for presets & custom ones.
* - `styles`: only the styles section in theme.json.
* - `presets`: only the classes for the presets.
* @param string[] $origins A list of origins to include. By default it includes VALID_ORIGINS.
- * @param array $options An array of options for now used for internal purposes only (may change without notice).
- * The options currently supported are 'scope' that makes sure all style are scoped to a
- * given selector, and root_selector which overwrites and forces a given selector to be
- * used on the root node.
+ * @param array $options {
+ * Optional. An array of options for now used for internal purposes only (may change without notice).
+ *
+ * @type string $scope Makes sure all style are scoped to a given selector
+ * @type string $root_selector Overwrites and forces a given selector to be used on the root node
+ * @type bool $skip_root_layout_styles Omits root layout styles from the generated stylesheet. Default false.
+ * @type bool $include_block_style_variations Includes styles for block style variations in the generated stylesheet. Default false.
+ * }
* @return string The resulting stylesheet.
*/
public function get_stylesheet( $types = array( 'variables', 'styles', 'presets' ), $origins = null, $options = array() ) {
@@ -1157,7 +1345,7 @@ class WP_Theme_JSON {
}
$blocks_metadata = static::get_blocks_metadata();
- $style_nodes = static::get_style_nodes( $this->theme_json, $blocks_metadata );
+ $style_nodes = static::get_style_nodes( $this->theme_json, $blocks_metadata, $options );
$setting_nodes = static::get_setting_nodes( $this->theme_json, $blocks_metadata );
$root_style_key = array_search( static::ROOT_BLOCK_SELECTOR, array_column( $style_nodes, 'selector' ), true );
@@ -1168,7 +1356,7 @@ class WP_Theme_JSON {
$node['selector'] = static::scope_selector( $options['scope'], $node['selector'] );
}
foreach ( $style_nodes as &$node ) {
- $node['selector'] = static::scope_selector( $options['scope'], $node['selector'] );
+ $node = static::scope_style_node_selectors( $options['scope'], $node );
}
unset( $node );
}
@@ -1189,7 +1377,7 @@ class WP_Theme_JSON {
}
if ( in_array( 'styles', $types, true ) ) {
- if ( false !== $root_style_key ) {
+ if ( false !== $root_style_key && empty( $options['skip_root_layout_styles'] ) ) {
$stylesheet .= $this->get_root_layout_rules( $style_nodes[ $root_style_key ]['selector'], $style_nodes[ $root_style_key ] );
}
$stylesheet .= $this->get_block_classes( $style_nodes );
@@ -1242,6 +1430,7 @@ class WP_Theme_JSON {
* Processes the CSS, to apply nesting.
*
* @since 6.2.0
+ * @since 6.6.0 Enforced 0-1-0 specificity for block custom CSS selectors.
*
* @param string $css The CSS to process.
* @param string $selector The selector to nest.
@@ -1256,7 +1445,7 @@ class WP_Theme_JSON {
$is_root_css = ( ! str_contains( $part, '{' ) );
if ( $is_root_css ) {
// If the part doesn't contain braces, it applies to the root level.
- $processed_css .= trim( $selector ) . '{' . trim( $part ) . '}';
+ $processed_css .= ':root :where(' . trim( $selector ) . '){' . trim( $part ) . '}';
} else {
// If the part contains braces, it's a nested CSS rule.
$part = explode( '{', str_replace( '}', '', $part ) );
@@ -1268,8 +1457,8 @@ class WP_Theme_JSON {
$part_selector = str_starts_with( $nested_selector, ' ' )
? static::scope_selector( $selector, $nested_selector )
: static::append_to_selector( $selector, $nested_selector );
- $processed_css .= $part_selector . '{' . trim( $css_value ) . '}';
- }
+ $final_selector = ":root :where($part_selector)";
+ $processed_css .= $final_selector . '{' . trim( $css_value ) . '}';}
}
return $processed_css;
}
@@ -1390,6 +1579,7 @@ class WP_Theme_JSON {
* @since 6.3.0 Reduced specificity for layout margin rules.
* @since 6.5.1 Only output rules referencing content and wide sizes when values exist.
* @since 6.5.3 Add types parameter to check if only base layout styles are needed.
+ * @since 6.6.0 Updated layout style specificity to be compatible with overall 0-1-0 specificity in global styles.
*
* @param array $block_metadata Metadata about the block to get styles for.
* @param array $types Optional. Types of styles to output. If empty, all styles will be output.
@@ -1416,7 +1606,7 @@ class WP_Theme_JSON {
$has_fallback_gap_support = ! $has_block_gap_support; // This setting isn't useful yet: it exists as a placeholder for a future explicit fallback gap styles support.
$node = _wp_array_get( $this->theme_json, $block_metadata['path'], array() );
$layout_definitions = wp_get_layout_definitions();
- $layout_selector_pattern = '/^[a-zA-Z0-9\-\.\ *+>:\(\)]*$/'; // Allow alphanumeric classnames, spaces, wildcard, sibling, child combinator and pseudo class selectors.
+ $layout_selector_pattern = '/^[a-zA-Z0-9\-\.\,\ *+>:\(\)]*$/'; // Allow alphanumeric classnames, spaces, wildcard, sibling, child combinator and pseudo class selectors.
/*
* Gap styles will only be output if the theme has block gap support, or supports a fallback gap.
@@ -1491,7 +1681,7 @@ class WP_Theme_JSON {
$spacing_rule['selector']
);
} else {
- $format = static::ROOT_BLOCK_SELECTOR === $selector ? ':where(%s .%s) %s' : '%s-%s%s';
+ $format = static::ROOT_BLOCK_SELECTOR === $selector ? '.%2$s %3$s' : '%1$s-%2$s %3$s';
$layout_selector = sprintf(
$format,
$selector,
@@ -1575,8 +1765,7 @@ class WP_Theme_JSON {
}
$layout_selector = sprintf(
- '%s .%s%s',
- $selector,
+ '.%s%s',
$class_name,
$base_style_rule['selector']
);
@@ -1708,6 +1897,7 @@ class WP_Theme_JSON {
*
* @since 5.8.0
* @since 5.9.0 Added the `$origins` parameter.
+ * @since 6.6.0 Added check for root CSS properties selector.
*
* @param array $settings Settings to process.
* @param string $selector Selector wrapping the classes.
@@ -1715,7 +1905,7 @@ class WP_Theme_JSON {
* @return string The result of processing the presets.
*/
protected static function compute_preset_classes( $settings, $selector, $origins ) {
- if ( static::ROOT_BLOCK_SELECTOR === $selector ) {
+ if ( static::ROOT_BLOCK_SELECTOR === $selector || static::ROOT_CSS_PROPERTIES_SELECTOR === $selector ) {
/*
* Classes at the global level do not need any CSS prefixed,
* and we don't want to increase its specificity.
@@ -1764,12 +1954,17 @@ class WP_Theme_JSON {
* </code>
*
* @since 5.9.0
+ * @since 6.6.0 Added early return if missing scope or selector.
*
* @param string $scope Selector to scope to.
* @param string $selector Original selector.
* @return string Scoped selector.
*/
public static function scope_selector( $scope, $selector ) {
+ if ( ! $scope || ! $selector ) {
+ return $selector;
+ }
+
$scopes = explode( ',', $scope );
$selectors = explode( ',', $selector );
@@ -1793,6 +1988,39 @@ class WP_Theme_JSON {
}
/**
+ * Scopes the selectors for a given style node.
+ *
+ * This includes the primary selector, i.e. `$node['selector']`, as well as any custom
+ * selectors for features and subfeatures, e.g. `$node['selectors']['border']` etc.
+ *
+ * @since 6.6.0
+ *
+ * @param string $scope Selector to scope to.
+ * @param array $node Style node with selectors to scope.
+ * @return array Node with updated selectors.
+ */
+ protected static function scope_style_node_selectors( $scope, $node ) {
+ $node['selector'] = static::scope_selector( $scope, $node['selector'] );
+
+ if ( empty( $node['selectors'] ) ) {
+ return $node;
+ }
+
+ foreach ( $node['selectors'] as $feature => $selector ) {
+ if ( is_string( $selector ) ) {
+ $node['selectors'][ $feature ] = static::scope_selector( $scope, $selector );
+ }
+ if ( is_array( $selector ) ) {
+ foreach ( $selector as $subfeature => $subfeature_selector ) {
+ $node['selectors'][ $feature ][ $subfeature ] = static::scope_selector( $scope, $subfeature_selector );
+ }
+ }
+ }
+
+ return $node;
+ }
+
+ /**
* Gets preset values keyed by slugs based on settings and metadata.
*
* <code>
@@ -1822,6 +2050,7 @@ class WP_Theme_JSON {
* </code>
*
* @since 5.9.0
+ * @since 6.6.0 Passing $settings to the callbacks defined in static::PRESETS_METADATA.
*
* @param array $settings Settings to process.
* @param array $preset_metadata One of the PRESETS_METADATA values.
@@ -1848,7 +2077,7 @@ class WP_Theme_JSON {
is_callable( $preset_metadata['value_func'] )
) {
$value_func = $preset_metadata['value_func'];
- $value = call_user_func( $value_func, $preset );
+ $value = call_user_func( $value_func, $preset, $settings );
} else {
// If we don't have a value, then don't add it to the result.
continue;
@@ -2041,6 +2270,7 @@ class WP_Theme_JSON {
* @since 5.9.0 Added the `$settings` and `$properties` parameters.
* @since 6.1.0 Added `$theme_json`, `$selector`, and `$use_root_padding` parameters.
* @since 6.5.0 Output a `min-height: unset` rule when `aspect-ratio` is set.
+ * @since 6.6.0 Pass current theme JSON settings to wp_get_typography_font_size_value(), and process background properties.
*
* @param array $styles Styles to process.
* @param array $settings Theme settings.
@@ -2094,6 +2324,12 @@ class WP_Theme_JSON {
}
}
+ // Processes background styles.
+ if ( 'background' === $value_path[0] && isset( $styles['background'] ) ) {
+ $background_styles = wp_style_engine_get_styles( array( 'background' => $styles['background'] ) );
+ $value = isset( $background_styles['declarations'][ $css_property ] ) ? $background_styles['declarations'][ $css_property ] : $value;
+ }
+
// Skip if empty and not "0" or value represents array of longhand values.
$has_missing_value = empty( $value ) && ! is_numeric( $value );
if ( $has_missing_value || is_array( $value ) ) {
@@ -2108,8 +2344,9 @@ class WP_Theme_JSON {
* whether the incoming value can be converted to a fluid value.
* Values that already have a clamp() function will not pass the test,
* and therefore the original $value will be returned.
+ * Pass the current theme_json settings to override any global settings.
*/
- $value = wp_get_typography_font_size_value( array( 'size' => $value ) );
+ $value = wp_get_typography_font_size_value( array( 'size' => $value ), $settings );
}
if ( 'aspect-ratio' === $css_property ) {
@@ -2233,7 +2470,7 @@ class WP_Theme_JSON {
// Top-level.
$nodes[] = array(
'path' => array( 'settings' ),
- 'selector' => static::ROOT_BLOCK_SELECTOR,
+ 'selector' => static::ROOT_CSS_PROPERTIES_SELECTOR,
);
// Calculate paths for blocks.
@@ -2273,12 +2510,18 @@ class WP_Theme_JSON {
* ]
*
* @since 5.8.0
+ * @since 6.6.0 Added options array for modifying generated nodes.
*
* @param array $theme_json The tree to extract style nodes from.
* @param array $selectors List of selectors per block.
+ * @param array $options {
+ * Optional. An array of options for now used for internal purposes only (may change without notice).
+ *
+ * @type bool $include_block_style_variations Includes style nodes for block style variations. Default false.
+ * }
* @return array An array of style nodes metadata.
*/
- protected static function get_style_nodes( $theme_json, $selectors = array() ) {
+ protected static function get_style_nodes( $theme_json, $selectors = array(), $options = array() ) {
$nodes = array();
if ( ! isset( $theme_json['styles'] ) ) {
return $nodes;
@@ -2320,7 +2563,7 @@ class WP_Theme_JSON {
return $nodes;
}
- $block_nodes = static::get_block_nodes( $theme_json );
+ $block_nodes = static::get_block_nodes( $theme_json, $selectors, $options );
foreach ( $block_nodes as $block_node ) {
$nodes[] = $block_node;
}
@@ -2391,12 +2634,19 @@ class WP_Theme_JSON {
*
* @since 6.1.0
* @since 6.3.0 Refactored and stabilized selectors API.
+ * @since 6.6.0 Added optional selectors and options for generating block nodes.
*
* @param array $theme_json The theme.json converted to an array.
+ * @param array $selectors Optional list of selectors per block.
+ * @param array $options {
+ * Optional. An array of options for now used for internal purposes only (may change without notice).
+ *
+ * @type bool $include_block_style_variations Includes nodes for block style variations. Default false.
+ * }
* @return array The block nodes in theme.json.
*/
- private static function get_block_nodes( $theme_json ) {
- $selectors = static::get_blocks_metadata();
+ private static function get_block_nodes( $theme_json, $selectors = array(), $options = array() ) {
+ $selectors = empty( $selectors ) ? static::get_blocks_metadata() : $selectors;
$nodes = array();
if ( ! isset( $theme_json['styles'] ) ) {
return $nodes;
@@ -2424,7 +2674,8 @@ class WP_Theme_JSON {
}
$variation_selectors = array();
- if ( isset( $node['variations'] ) ) {
+ $include_variations = $options['include_block_style_variations'] ?? false;
+ if ( $include_variations && isset( $node['variations'] ) ) {
foreach ( $node['variations'] as $variation => $node ) {
$variation_selectors[] = array(
'path' => array( 'styles', 'blocks', $name, 'variations', $variation ),
@@ -2472,6 +2723,9 @@ class WP_Theme_JSON {
* Gets the CSS rules for a particular block from theme.json.
*
* @since 6.1.0
+ * @since 6.6.0 Setting a min-height of HTML when root styles have a background gradient or image.
+ * Updated general global styles specificity to 0-1-0.
+ * Fixed custom CSS output in block style variations.
*
* @param array $block_metadata Metadata about the block to get styles for.
*
@@ -2483,9 +2737,11 @@ class WP_Theme_JSON {
$selector = $block_metadata['selector'];
$settings = isset( $this->theme_json['settings'] ) ? $this->theme_json['settings'] : array();
$feature_declarations = static::get_feature_declarations_for_node( $block_metadata, $node );
+ $is_root_selector = static::ROOT_BLOCK_SELECTOR === $selector;
// If there are style variations, generate the declarations for them, including any feature selectors the block may have.
$style_variation_declarations = array();
+ $style_variation_custom_css = array();
if ( ! empty( $block_metadata['variations'] ) ) {
foreach ( $block_metadata['variations'] as $style_variation ) {
$style_variation_node = _wp_array_get( $this->theme_json, $style_variation['path'], array() );
@@ -2515,6 +2771,10 @@ class WP_Theme_JSON {
// Compute declarations for remaining styles not covered by feature level selectors.
$style_variation_declarations[ $style_variation['selector'] ] = static::compute_style_properties( $style_variation_node, $settings, null, $this->theme_json );
+ // Store custom CSS for the style variation.
+ if ( isset( $style_variation_node['css'] ) ) {
+ $style_variation_custom_css[ $style_variation['selector'] ] = $this->process_blocks_custom_css( $style_variation_node['css'], $style_variation['selector'] );
+ }
}
}
/*
@@ -2565,24 +2825,77 @@ class WP_Theme_JSON {
$block_rules = '';
/*
- * 1. Separate the declarations that use the general selector
+ * 1. Bespoke declaration modifiers:
+ * - 'filter': Separate the declarations that use the general selector
* from the ones using the duotone selector.
+ * - 'background|background-image': set the html min-height to 100%
+ * to ensure the background covers the entire viewport.
*/
- $declarations_duotone = array();
+ $declarations_duotone = array();
+ $should_set_root_min_height = false;
+
foreach ( $declarations as $index => $declaration ) {
if ( 'filter' === $declaration['name'] ) {
+ /*
+ * 'unset' filters happen when a filter is unset
+ * in the site-editor UI. Because the 'unset' value
+ * in the user origin overrides the value in the
+ * theme origin, we can skip rendering anything
+ * here as no filter needs to be applied anymore.
+ * So only add declarations to with values other
+ * than 'unset'.
+ */
+ if ( 'unset' !== $declaration['value'] ) {
+ $declarations_duotone[] = $declaration;
+ }
unset( $declarations[ $index ] );
- $declarations_duotone[] = $declaration;
+ }
+
+ if ( $is_root_selector && ( 'background-image' === $declaration['name'] || 'background' === $declaration['name'] ) ) {
+ $should_set_root_min_height = true;
}
}
+ /*
+ * If root styles has a background-image or a background (gradient) set,
+ * set the min-height to '100%'. Minus `--wp-admin--admin-bar--height` for logged-in view.
+ * Setting the CSS rule on the HTML tag ensures background gradients and images behave similarly,
+ * and matches the behavior of the site editor.
+ */
+ if ( $should_set_root_min_height ) {
+ $block_rules .= static::to_ruleset(
+ 'html',
+ array(
+ array(
+ 'name' => 'min-height',
+ 'value' => 'calc(100% - var(--wp-admin--admin-bar--height, 0px))',
+ ),
+ )
+ );
+ }
+
// Update declarations if there are separators with only background color defined.
if ( '.wp-block-separator' === $selector ) {
$declarations = static::update_separator_declarations( $declarations );
}
+ /*
+ * Top-level element styles using element-only specificity selectors should
+ * not get wrapped in `:root :where()` to maintain backwards compatibility.
+ *
+ * Pseudo classes, e.g. :hover, :focus etc., are a class-level selector so
+ * still need to be wrapped in `:root :where` to cap specificity for nested
+ * variations etc. Pseudo selectors won't match the ELEMENTS selector exactly.
+ */
+ $element_only_selector = $current_element &&
+ isset( static::ELEMENTS[ $current_element ] ) &&
+ // buttons, captions etc. still need `:root :where()` as they are class based selectors.
+ ! isset( static::__EXPERIMENTAL_ELEMENT_CLASS_NAMES[ $current_element ] ) &&
+ static::ELEMENTS[ $current_element ] === $selector;
+
// 2. Generate and append the rules that use the general selector.
- $block_rules .= static::to_ruleset( $selector, $declarations );
+ $general_selector = $element_only_selector ? $selector : ":root :where($selector)";
+ $block_rules .= static::to_ruleset( $general_selector, $declarations );
// 3. Generate and append the rules that use the duotone selector.
if ( isset( $block_metadata['duotone'] ) && ! empty( $declarations_duotone ) ) {
@@ -2591,7 +2904,7 @@ class WP_Theme_JSON {
// 4. Generate Layout block gap styles.
if (
- static::ROOT_BLOCK_SELECTOR !== $selector &&
+ ! $is_root_selector &&
! empty( $block_metadata['name'] )
) {
$block_rules .= $this->get_layout_styles( $block_metadata );
@@ -2599,12 +2912,20 @@ class WP_Theme_JSON {
// 5. Generate and append the feature level rulesets.
foreach ( $feature_declarations as $feature_selector => $individual_feature_declarations ) {
- $block_rules .= static::to_ruleset( $feature_selector, $individual_feature_declarations );
+ $block_rules .= static::to_ruleset( ":root :where($feature_selector)", $individual_feature_declarations );
}
// 6. Generate and append the style variation rulesets.
foreach ( $style_variation_declarations as $style_variation_selector => $individual_style_variation_declarations ) {
- $block_rules .= static::to_ruleset( $style_variation_selector, $individual_style_variation_declarations );
+ $block_rules .= static::to_ruleset( ":root :where($style_variation_selector)", $individual_style_variation_declarations );
+ if ( isset( $style_variation_custom_css[ $style_variation_selector ] ) ) {
+ $block_rules .= $style_variation_custom_css[ $style_variation_selector ];
+ }
+ }
+
+ // 7. Generate and append any custom CSS rules pertaining to nested block style variations.
+ if ( isset( $node['css'] ) && ! $is_root_selector ) {
+ $block_rules .= $this->process_blocks_custom_css( $node['css'], $selector );
}
return $block_rules;
@@ -2614,6 +2935,8 @@ class WP_Theme_JSON {
* Outputs the CSS for layout rules on the root.
*
* @since 6.1.0
+ * @since 6.6.0 Use `ROOT_CSS_PROPERTIES_SELECTOR` for CSS custom properties and improved consistency of root padding rules.
+ * Updated specificity of body margin reset and first/last child selectors.
*
* @param string $selector The root node selector.
* @param array $block_metadata The metadata for the root block.
@@ -2625,16 +2948,6 @@ class WP_Theme_JSON {
$use_root_padding = isset( $this->theme_json['settings']['useRootPaddingAwareAlignments'] ) && true === $this->theme_json['settings']['useRootPaddingAwareAlignments'];
/*
- * Reset default browser margin on the root body element.
- * This is set on the root selector **before** generating the ruleset
- * from the `theme.json`. This is to ensure that if the `theme.json` declares
- * `margin` in its `spacing` declaration for the `body` element then these
- * user-generated values take precedence in the CSS cascade.
- * @link https://github.com/WordPress/gutenberg/issues/36147.
- */
- $css .= 'body { margin: 0;';
-
- /*
* If there are content and wide widths in theme.json, output them
* as custom properties on the body element so all blocks can use them.
*/
@@ -2643,43 +2956,46 @@ class WP_Theme_JSON {
$content_size = static::is_safe_css_declaration( 'max-width', $content_size ) ? $content_size : 'initial';
$wide_size = isset( $settings['layout']['wideSize'] ) ? $settings['layout']['wideSize'] : $settings['layout']['contentSize'];
$wide_size = static::is_safe_css_declaration( 'max-width', $wide_size ) ? $wide_size : 'initial';
- $css .= '--wp--style--global--content-size: ' . $content_size . ';';
- $css .= '--wp--style--global--wide-size: ' . $wide_size . ';';
+ $css .= static::ROOT_CSS_PROPERTIES_SELECTOR . ' { --wp--style--global--content-size: ' . $content_size . ';';
+ $css .= '--wp--style--global--wide-size: ' . $wide_size . '; }';
}
- $css .= ' }';
+ /*
+ * Reset default browser margin on the body element.
+ * This is set on the body selector **before** generating the ruleset
+ * from the `theme.json`. This is to ensure that if the `theme.json` declares
+ * `margin` in its `spacing` declaration for the `body` element then these
+ * user-generated values take precedence in the CSS cascade.
+ * @link https://github.com/WordPress/gutenberg/issues/36147.
+ */
+ $css .= ':where(body) { margin: 0; }';
if ( $use_root_padding ) {
// Top and bottom padding are applied to the outer block container.
$css .= '.wp-site-blocks { padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom); }';
// Right and left padding are applied to the first container with `.has-global-padding` class.
$css .= '.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }';
- // Nested containers with `.has-global-padding` class do not get padding.
- $css .= '.has-global-padding :where(.has-global-padding:not(.wp-block-block)) { padding-right: 0; padding-left: 0; }';
// Alignfull children of the container with left and right padding have negative margins so they can still be full width.
$css .= '.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }';
- // The above rule is negated for alignfull children of nested containers.
- $css .= '.has-global-padding :where(.has-global-padding:not(.wp-block-block)) > .alignfull { margin-right: 0; margin-left: 0; }';
- // Some of the children of alignfull blocks without content width should also get padding: text blocks and non-alignfull container blocks.
- $css .= '.has-global-padding > .alignfull:where(:not(.has-global-padding):not(.is-layout-flex):not(.is-layout-grid)) > :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }';
- // The above rule also has to be negated for blocks inside nested `.has-global-padding` blocks.
- $css .= '.has-global-padding :where(.has-global-padding) > .alignfull:where(:not(.has-global-padding)) > :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: 0; padding-left: 0; }';
+ // Nested children of the container with left and right padding that are not full aligned do not get padding, unless they are direct children of an alignfull flow container.
+ $css .= '.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; }';
+ // Alignfull direct children of the containers that are targeted by the rule above do not need negative margins.
+ $css .= '.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0; }';
}
$css .= '.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }';
$css .= '.wp-site-blocks > .alignright { float: right; margin-left: 2em; }';
$css .= '.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }';
- $block_gap_value = isset( $this->theme_json['styles']['spacing']['blockGap'] ) ? $this->theme_json['styles']['spacing']['blockGap'] : '0.5em';
- $has_block_gap_support = isset( $this->theme_json['settings']['spacing']['blockGap'] );
- if ( $has_block_gap_support ) {
+ // Block gap styles will be output unless explicitly set to `null`. See static::PROTECTED_PROPERTIES.
+ if ( isset( $this->theme_json['settings']['spacing']['blockGap'] ) ) {
$block_gap_value = static::get_property_value( $this->theme_json, array( 'styles', 'spacing', 'blockGap' ) );
$css .= ":where(.wp-site-blocks) > * { margin-block-start: $block_gap_value; margin-block-end: 0; }";
- $css .= ':where(.wp-site-blocks) > :first-child:first-child { margin-block-start: 0; }';
- $css .= ':where(.wp-site-blocks) > :last-child:last-child { margin-block-end: 0; }';
+ $css .= ':where(.wp-site-blocks) > :first-child { margin-block-start: 0; }';
+ $css .= ':where(.wp-site-blocks) > :last-child { margin-block-end: 0; }';
// For backwards compatibility, ensure the legacy block gap CSS variable is still available.
- $css .= "$selector { --wp--style--block-gap: $block_gap_value; }";
+ $css .= static::ROOT_CSS_PROPERTIES_SELECTOR . " { --wp--style--block-gap: $block_gap_value; }";
}
$css .= $this->get_layout_styles( $block_metadata );
@@ -2737,6 +3053,40 @@ class WP_Theme_JSON {
$this->theme_json = array_replace_recursive( $this->theme_json, $incoming_data );
/*
+ * Recompute all the spacing sizes based on the new hierarchy of data. In the constructor
+ * spacingScale and spacingSizes are both keyed by origin and VALID_ORIGINS is ordered, so
+ * we can allow partial spacingScale data to inherit missing data from earlier layers when
+ * computing the spacing sizes.
+ *
+ * This happens before the presets are merged to ensure that default spacing sizes can be
+ * removed from the theme origin if $prevent_override is true.
+ */
+ $flattened_spacing_scale = array();
+ foreach ( static::VALID_ORIGINS as $origin ) {
+ $scale_path = array( 'settings', 'spacing', 'spacingScale', $origin );
+
+ // Apply the base spacing scale to the current layer.
+ $base_spacing_scale = _wp_array_get( $this->theme_json, $scale_path, array() );
+ $flattened_spacing_scale = array_replace( $flattened_spacing_scale, $base_spacing_scale );
+
+ $spacing_scale = _wp_array_get( $incoming_data, $scale_path, null );
+ if ( ! isset( $spacing_scale ) ) {
+ continue;
+ }
+
+ // Allow partial scale settings by merging with lower layers.
+ $flattened_spacing_scale = array_replace( $flattened_spacing_scale, $spacing_scale );
+
+ // Generate and merge the scales for this layer.
+ $sizes_path = array( 'settings', 'spacing', 'spacingSizes', $origin );
+ $spacing_sizes = _wp_array_get( $incoming_data, $sizes_path, array() );
+ $spacing_scale_sizes = static::compute_spacing_sizes( $flattened_spacing_scale );
+ $merged_spacing_sizes = static::merge_spacing_sizes( $spacing_scale_sizes, $spacing_sizes );
+
+ _wp_array_set( $incoming_data, $sizes_path, $merged_spacing_sizes );
+ }
+
+ /*
* The array_replace_recursive algorithm merges at the leaf level,
* but we don't want leaf arrays to be merged, so we overwrite it.
*
@@ -2772,12 +3122,15 @@ class WP_Theme_JSON {
}
// Replace the presets.
- foreach ( static::PRESETS_METADATA as $preset ) {
- $override_preset = ! static::get_metadata_boolean( $this->theme_json['settings'], $preset['prevent_override'], true );
+ foreach ( static::PRESETS_METADATA as $preset_metadata ) {
+ $prevent_override = $preset_metadata['prevent_override'];
+ if ( is_array( $prevent_override ) ) {
+ $prevent_override = _wp_array_get( $this->theme_json['settings'], $preset_metadata['prevent_override'] );
+ }
foreach ( static::VALID_ORIGINS as $origin ) {
$base_path = $node['path'];
- foreach ( $preset['path'] as $leaf ) {
+ foreach ( $preset_metadata['path'] as $leaf ) {
$base_path[] = $leaf;
}
@@ -2789,7 +3142,8 @@ class WP_Theme_JSON {
continue;
}
- if ( 'theme' === $origin && $preset['use_default_names'] ) {
+ // Set names for theme presets based on the slug if they are not set and can use default names.
+ if ( 'theme' === $origin && $preset_metadata['use_default_names'] ) {
foreach ( $content as $key => $item ) {
if ( ! isset( $item['name'] ) ) {
$name = static::get_name_from_defaults( $item['slug'], $base_path );
@@ -2800,19 +3154,17 @@ class WP_Theme_JSON {
}
}
- if (
- ( 'theme' !== $origin ) ||
- ( 'theme' === $origin && $override_preset )
- ) {
- _wp_array_set( $this->theme_json, $path, $content );
- } else {
- $slugs_node = static::get_default_slugs( $this->theme_json, $node['path'] );
- $slugs = array_merge_recursive( $slugs_global, $slugs_node );
+ // Filter out default slugs from theme presets when defaults should not be overridden.
+ if ( 'theme' === $origin && $prevent_override ) {
+ $slugs_node = static::get_default_slugs( $this->theme_json, $node['path'] );
+ $preset_global = _wp_array_get( $slugs_global, $preset_metadata['path'], array() );
+ $preset_node = _wp_array_get( $slugs_node, $preset_metadata['path'], array() );
+ $preset_slugs = array_merge_recursive( $preset_global, $preset_node );
- $slugs_for_preset = _wp_array_get( $slugs, $preset['path'], array() );
- $content = static::filter_slugs( $content, $slugs_for_preset );
- _wp_array_set( $this->theme_json, $path, $content );
+ $content = static::filter_slugs( $content, $preset_slugs );
}
+
+ _wp_array_set( $this->theme_json, $path, $content );
}
}
}
@@ -2900,7 +3252,7 @@ class WP_Theme_JSON {
/**
* Returns the default slugs for all the presets in an associative array
- * whose keys are the preset paths and the leafs is the list of slugs.
+ * whose keys are the preset paths and the leaves is the list of slugs.
*
* For example:
*
@@ -2998,29 +3350,31 @@ class WP_Theme_JSON {
*
* @since 5.9.0
* @since 6.3.2 Preserves global styles block variations when securing styles.
+ * @since 6.6.0 Updated to allow variation element styles and $origin parameter.
*
- * @param array $theme_json Structure to sanitize.
+ * @param array $theme_json Structure to sanitize.
+ * @param string $origin Optional. What source of data this object represents.
+ * One of 'blocks', 'default', 'theme', or 'custom'. Default 'theme'.
* @return array Sanitized structure.
*/
- public static function remove_insecure_properties( $theme_json ) {
+ public static function remove_insecure_properties( $theme_json, $origin = 'theme' ) {
+ if ( ! in_array( $origin, static::VALID_ORIGINS, true ) ) {
+ $origin = 'theme';
+ }
+
$sanitized = array();
- $theme_json = WP_Theme_JSON_Schema::migrate( $theme_json );
+ $theme_json = WP_Theme_JSON_Schema::migrate( $theme_json, $origin );
$valid_block_names = array_keys( static::get_blocks_metadata() );
$valid_element_names = array_keys( static::ELEMENTS );
- $valid_variations = array();
- foreach ( self::get_blocks_metadata() as $block_name => $block_meta ) {
- if ( ! isset( $block_meta['styleVariations'] ) ) {
- continue;
- }
- $valid_variations[ $block_name ] = array_keys( $block_meta['styleVariations'] );
- }
+ $valid_variations = static::get_valid_block_style_variations();
$theme_json = static::sanitize( $theme_json, $valid_block_names, $valid_element_names, $valid_variations );
$blocks_metadata = static::get_blocks_metadata();
- $style_nodes = static::get_style_nodes( $theme_json, $blocks_metadata );
+ $style_options = array( 'include_block_style_variations' => true ); // Allow variations data.
+ $style_nodes = static::get_style_nodes( $theme_json, $blocks_metadata, $style_options );
foreach ( $style_nodes as $metadata ) {
$input = _wp_array_get( $theme_json, $metadata['path'], array() );
@@ -3065,6 +3419,29 @@ class WP_Theme_JSON {
}
$variation_output = static::remove_insecure_styles( $variation_input );
+
+ // Process a variation's elements and element pseudo selector styles.
+ if ( isset( $variation_input['elements'] ) ) {
+ foreach ( $valid_element_names as $element_name ) {
+ $element_input = $variation_input['elements'][ $element_name ] ?? null;
+ if ( $element_input ) {
+ $element_output = static::remove_insecure_styles( $element_input );
+
+ if ( isset( static::VALID_ELEMENT_PSEUDO_SELECTORS[ $element_name ] ) ) {
+ foreach ( static::VALID_ELEMENT_PSEUDO_SELECTORS[ $element_name ] as $pseudo_selector ) {
+ if ( isset( $element_input[ $pseudo_selector ] ) ) {
+ $element_output[ $pseudo_selector ] = static::remove_insecure_styles( $element_input[ $pseudo_selector ] );
+ }
+ }
+ }
+
+ if ( ! empty( $element_output ) ) {
+ _wp_array_set( $variation_output, array( 'elements', $element_name ), $element_output );
+ }
+ }
+ }
+ }
+
if ( ! empty( $variation_output ) ) {
_wp_array_set( $sanitized, $variation['path'], $variation_output );
}
@@ -3262,53 +3639,32 @@ class WP_Theme_JSON {
// Deprecated theme supports.
if ( isset( $settings['disableCustomColors'] ) ) {
- if ( ! isset( $theme_settings['settings']['color'] ) ) {
- $theme_settings['settings']['color'] = array();
- }
$theme_settings['settings']['color']['custom'] = ! $settings['disableCustomColors'];
}
if ( isset( $settings['disableCustomGradients'] ) ) {
- if ( ! isset( $theme_settings['settings']['color'] ) ) {
- $theme_settings['settings']['color'] = array();
- }
$theme_settings['settings']['color']['customGradient'] = ! $settings['disableCustomGradients'];
}
if ( isset( $settings['disableCustomFontSizes'] ) ) {
- if ( ! isset( $theme_settings['settings']['typography'] ) ) {
- $theme_settings['settings']['typography'] = array();
- }
$theme_settings['settings']['typography']['customFontSize'] = ! $settings['disableCustomFontSizes'];
}
if ( isset( $settings['enableCustomLineHeight'] ) ) {
- if ( ! isset( $theme_settings['settings']['typography'] ) ) {
- $theme_settings['settings']['typography'] = array();
- }
$theme_settings['settings']['typography']['lineHeight'] = $settings['enableCustomLineHeight'];
}
if ( isset( $settings['enableCustomUnits'] ) ) {
- if ( ! isset( $theme_settings['settings']['spacing'] ) ) {
- $theme_settings['settings']['spacing'] = array();
- }
$theme_settings['settings']['spacing']['units'] = ( true === $settings['enableCustomUnits'] ) ?
array( 'px', 'em', 'rem', 'vh', 'vw', '%' ) :
$settings['enableCustomUnits'];
}
if ( isset( $settings['colors'] ) ) {
- if ( ! isset( $theme_settings['settings']['color'] ) ) {
- $theme_settings['settings']['color'] = array();
- }
$theme_settings['settings']['color']['palette'] = $settings['colors'];
}
if ( isset( $settings['gradients'] ) ) {
- if ( ! isset( $theme_settings['settings']['color'] ) ) {
- $theme_settings['settings']['color'] = array();
- }
$theme_settings['settings']['color']['gradients'] = $settings['gradients'];
}
@@ -3320,19 +3676,17 @@ class WP_Theme_JSON {
$font_sizes[ $key ]['size'] = $font_size['size'] . 'px';
}
}
- if ( ! isset( $theme_settings['settings']['typography'] ) ) {
- $theme_settings['settings']['typography'] = array();
- }
$theme_settings['settings']['typography']['fontSizes'] = $font_sizes;
}
if ( isset( $settings['enableCustomSpacing'] ) ) {
- if ( ! isset( $theme_settings['settings']['spacing'] ) ) {
- $theme_settings['settings']['spacing'] = array();
- }
$theme_settings['settings']['spacing']['padding'] = $settings['enableCustomSpacing'];
}
+ if ( isset( $settings['spacingSizes'] ) ) {
+ $theme_settings['settings']['spacing']['spacingSizes'] = $settings['spacingSizes'];
+ }
+
return $theme_settings;
}
@@ -3506,10 +3860,15 @@ class WP_Theme_JSON {
* Sets the spacingSizes array based on the spacingScale values from theme.json.
*
* @since 6.1.0
+ * @deprecated 6.6.0 No longer used as the spacingSizes are automatically
+ * generated in the constructor and merge methods instead
+ * of manually after instantiation.
*
* @return null|void
*/
public function set_spacing_sizes() {
+ _deprecated_function( __METHOD__, '6.6.0' );
+
$spacing_scale = isset( $this->theme_json['settings']['spacing']['spacingScale'] )
? $this->theme_json['settings']['spacing']['spacingScale']
: array();
@@ -3525,7 +3884,8 @@ class WP_Theme_JSON {
|| ! is_numeric( $spacing_scale['mediumStep'] )
|| ( '+' !== $spacing_scale['operator'] && '*' !== $spacing_scale['operator'] ) ) {
if ( ! empty( $spacing_scale ) ) {
- trigger_error(
+ wp_trigger_error(
+ __METHOD__,
sprintf(
/* translators: 1: theme.json, 2: settings.spacing.spacingScale */
__( 'Some of the %1$s %2$s values are invalid' ),
@@ -3543,6 +3903,99 @@ class WP_Theme_JSON {
return null;
}
+ $spacing_sizes = static::compute_spacing_sizes( $spacing_scale );
+
+ // If there are 7 or fewer steps in the scale revert to numbers for labels instead of t-shirt sizes.
+ if ( $spacing_scale['steps'] <= 7 ) {
+ for ( $spacing_sizes_count = 0; $spacing_sizes_count < count( $spacing_sizes ); $spacing_sizes_count++ ) {
+ $spacing_sizes[ $spacing_sizes_count ]['name'] = (string) ( $spacing_sizes_count + 1 );
+ }
+ }
+
+ _wp_array_set( $this->theme_json, array( 'settings', 'spacing', 'spacingSizes', 'default' ), $spacing_sizes );
+ }
+
+ /**
+ * Merges two sets of spacing size presets.
+ *
+ * @since 6.6.0
+ *
+ * @param array $base The base set of spacing sizes.
+ * @param array $incoming The set of spacing sizes to merge with the base. Duplicate slugs will override the base values.
+ * @return array The merged set of spacing sizes.
+ */
+ private static function merge_spacing_sizes( $base, $incoming ) {
+ // Preserve the order if there are no base (spacingScale) values.
+ if ( empty( $base ) ) {
+ return $incoming;
+ }
+ $merged = array();
+ foreach ( $base as $item ) {
+ $merged[ $item['slug'] ] = $item;
+ }
+ foreach ( $incoming as $item ) {
+ $merged[ $item['slug'] ] = $item;
+ }
+ ksort( $merged, SORT_NUMERIC );
+ return array_values( $merged );
+ }
+
+ /**
+ * Generates a set of spacing sizes by starting with a medium size and
+ * applying an operator with an increment value to generate the rest of the
+ * sizes outward from the medium size. The medium slug is '50' with the rest
+ * of the slugs being 10 apart. The generated names use t-shirt sizing.
+ *
+ * Example:
+ *
+ * $spacing_scale = array(
+ * 'steps' => 4,
+ * 'mediumStep' => 16,
+ * 'unit' => 'px',
+ * 'operator' => '+',
+ * 'increment' => 2,
+ * );
+ * $spacing_sizes = static::compute_spacing_sizes( $spacing_scale );
+ * // -> array(
+ * // array( 'name' => 'Small', 'slug' => '40', 'size' => '14px' ),
+ * // array( 'name' => 'Medium', 'slug' => '50', 'size' => '16px' ),
+ * // array( 'name' => 'Large', 'slug' => '60', 'size' => '18px' ),
+ * // array( 'name' => 'X-Large', 'slug' => '70', 'size' => '20px' ),
+ * // )
+ *
+ * @since 6.6.0
+ *
+ * @param array $spacing_scale {
+ * The spacing scale values. All are required.
+ *
+ * @type int $steps The number of steps in the scale. (up to 10 steps are supported.)
+ * @type float $mediumStep The middle value that gets the slug '50'. (For even number of steps, this becomes the first middle value.)
+ * @type string $unit The CSS unit to use for the sizes.
+ * @type string $operator The mathematical operator to apply to generate the other sizes. Either '+' or '*'.
+ * @type float $increment The value used with the operator to generate the other sizes.
+ * }
+ * @return array The spacing sizes presets or an empty array if some spacing scale values are missing or invalid.
+ */
+ private static function compute_spacing_sizes( $spacing_scale ) {
+ /*
+ * This condition is intentionally missing some checks on ranges for the values in order to
+ * keep backwards compatibility with the previous implementation.
+ */
+ if (
+ ! isset( $spacing_scale['steps'] ) ||
+ ! is_numeric( $spacing_scale['steps'] ) ||
+ 0 === $spacing_scale['steps'] ||
+ ! isset( $spacing_scale['mediumStep'] ) ||
+ ! is_numeric( $spacing_scale['mediumStep'] ) ||
+ ! isset( $spacing_scale['unit'] ) ||
+ ! isset( $spacing_scale['operator'] ) ||
+ ( '+' !== $spacing_scale['operator'] && '*' !== $spacing_scale['operator'] ) ||
+ ! isset( $spacing_scale['increment'] ) ||
+ ! is_numeric( $spacing_scale['increment'] )
+ ) {
+ return array();
+ }
+
$unit = '%' === $spacing_scale['unit'] ? '%' : sanitize_title( $spacing_scale['unit'] );
$current_step = $spacing_scale['mediumStep'];
$steps_mid_point = round( $spacing_scale['steps'] / 2, 0 );
@@ -3625,14 +4078,7 @@ class WP_Theme_JSON {
$spacing_sizes[] = $above_sizes_item;
}
- // If there are 7 or fewer steps in the scale revert to numbers for labels instead of t-shirt sizes.
- if ( $spacing_scale['steps'] <= 7 ) {
- for ( $spacing_sizes_count = 0; $spacing_sizes_count < count( $spacing_sizes ); $spacing_sizes_count++ ) {
- $spacing_sizes[ $spacing_sizes_count ]['name'] = (string) ( $spacing_sizes_count + 1 );
- }
- }
-
- _wp_array_set( $this->theme_json, array( 'settings', 'spacing', 'spacingSizes', 'default' ), $spacing_sizes );
+ return $spacing_sizes;
}
/**
@@ -3964,4 +4410,23 @@ class WP_Theme_JSON {
return implode( ',', $result );
}
+
+ /**
+ * Collects valid block style variations keyed by block type.
+ *
+ * @since 6.6.0
+ *
+ * @return array Valid block style variations by block type.
+ */
+ protected static function get_valid_block_style_variations() {
+ $valid_variations = array();
+ foreach ( self::get_blocks_metadata() as $block_name => $block_meta ) {
+ if ( ! isset( $block_meta['styleVariations'] ) ) {
+ continue;
+ }
+ $valid_variations[ $block_name ] = array_keys( $block_meta['styleVariations'] );
+ }
+
+ return $valid_variations;
+ }
}
diff --git a/wp-includes/class-wp-theme.php b/wp-includes/class-wp-theme.php
index e6eeb8c..6db75e4 100644
--- a/wp-includes/class-wp-theme.php
+++ b/wp-includes/class-wp-theme.php
@@ -352,7 +352,7 @@ final class WP_Theme implements ArrayAccess {
*/
$default_theme_slug = array_search( $this->headers['Name'], self::$default_themes, true );
if ( $default_theme_slug ) {
- if ( basename( $this->stylesheet ) != $default_theme_slug ) {
+ if ( basename( $this->stylesheet ) !== $default_theme_slug ) {
$this->headers['Name'] .= '/' . $this->stylesheet;
}
}
@@ -417,7 +417,10 @@ final class WP_Theme implements ArrayAccess {
}
// If we got our data from cache, we can assume that 'template' is pointing to the right place.
- if ( ! is_array( $cache ) && $this->template != $this->stylesheet && ! file_exists( $this->theme_root . '/' . $this->template . '/index.php' ) ) {
+ if ( ! is_array( $cache )
+ && $this->template !== $this->stylesheet
+ && ! file_exists( $this->theme_root . '/' . $this->template . '/index.php' )
+ ) {
/*
* If we're in a directory of themes inside /themes, look for the parent nearby.
* wp-content/themes/directory-of-themes/*
@@ -425,7 +428,9 @@ final class WP_Theme implements ArrayAccess {
$parent_dir = dirname( $this->stylesheet );
$directories = search_theme_directories();
- if ( '.' !== $parent_dir && file_exists( $this->theme_root . '/' . $parent_dir . '/' . $this->template . '/index.php' ) ) {
+ if ( '.' !== $parent_dir
+ && file_exists( $this->theme_root . '/' . $parent_dir . '/' . $this->template . '/index.php' )
+ ) {
$this->template = $parent_dir . '/' . $this->template;
} elseif ( $directories && isset( $directories[ $this->template ] ) ) {
/*
@@ -460,9 +465,9 @@ final class WP_Theme implements ArrayAccess {
}
// Set the parent, if we're a child theme.
- if ( $this->template != $this->stylesheet ) {
+ if ( $this->template !== $this->stylesheet ) {
// If we are a parent, then there is a problem. Only two generations allowed! Cancel things out.
- if ( $_child instanceof WP_Theme && $_child->template == $this->stylesheet ) {
+ if ( $_child instanceof WP_Theme && $_child->template === $this->stylesheet ) {
$_child->parent = null;
$_child->errors = new WP_Error(
'theme_parent_invalid',
@@ -484,7 +489,7 @@ final class WP_Theme implements ArrayAccess {
)
);
// The two themes actually reference each other with the Template header.
- if ( $_child->stylesheet == $this->template ) {
+ if ( $_child->stylesheet === $this->template ) {
$this->errors = new WP_Error(
'theme_parent_invalid',
sprintf(
@@ -1714,7 +1719,7 @@ final class WP_Theme implements ArrayAccess {
return (array) apply_filters( 'site_allowed_themes', $allowed_themes[ $blog_id ], $blog_id );
}
- $current = get_current_blog_id() == $blog_id;
+ $current = get_current_blog_id() === $blog_id;
if ( $current ) {
$allowed_themes[ $blog_id ] = get_option( 'allowedthemes' );
@@ -1967,6 +1972,7 @@ final class WP_Theme implements ArrayAccess {
* Gets block pattern cache.
*
* @since 6.4.0
+ * @since 6.6.0 Uses transients to cache regardless of site environment.
*
* @return array|false Returns an array of patterns if cache is found, otherwise false.
*/
@@ -1974,7 +1980,9 @@ final class WP_Theme implements ArrayAccess {
if ( ! $this->exists() ) {
return false;
}
- $pattern_data = wp_cache_get( 'wp_theme_patterns_' . $this->stylesheet, 'theme_files' );
+
+ $pattern_data = get_site_transient( 'wp_theme_files_patterns-' . $this->cache_hash );
+
if ( is_array( $pattern_data ) && $pattern_data['version'] === $this->get( 'Version' ) ) {
return $pattern_data['patterns'];
}
@@ -1985,6 +1993,7 @@ final class WP_Theme implements ArrayAccess {
* Sets block pattern cache.
*
* @since 6.4.0
+ * @since 6.6.0 Uses transients to cache regardless of site environment.
*
* @param array $patterns Block patterns data to set in cache.
*/
@@ -1993,16 +2002,43 @@ final class WP_Theme implements ArrayAccess {
'version' => $this->get( 'Version' ),
'patterns' => $patterns,
);
- wp_cache_set( 'wp_theme_patterns_' . $this->stylesheet, $pattern_data, 'theme_files' );
+
+ /**
+ * Filters the cache expiration time for theme files.
+ *
+ * @since 6.6.0
+ *
+ * @param int $cache_expiration Cache expiration time in seconds.
+ * @param string $cache_type Type of cache being set.
+ */
+ $cache_expiration = (int) apply_filters( 'wp_theme_files_cache_ttl', self::$cache_expiration, 'theme_block_patterns' );
+
+ // We don't want to cache patterns infinitely.
+ if ( $cache_expiration <= 0 ) {
+ _doing_it_wrong(
+ __METHOD__,
+ sprintf(
+ /* translators: %1$s: The filter name.*/
+ __( 'The %1$s filter must return an integer value greater than 0.' ),
+ '<code>wp_theme_files_cache_ttl</code>'
+ ),
+ '6.6.0'
+ );
+
+ $cache_expiration = self::$cache_expiration;
+ }
+
+ set_site_transient( 'wp_theme_files_patterns-' . $this->cache_hash, $pattern_data, $cache_expiration );
}
/**
* Clears block pattern cache.
*
* @since 6.4.0
+ * @since 6.6.0 Uses transients to cache regardless of site environment.
*/
public function delete_pattern_cache() {
- wp_cache_delete( 'wp_theme_patterns_' . $this->stylesheet, 'theme_files' );
+ delete_site_transient( 'wp_theme_files_patterns-' . $this->cache_hash );
}
/**
diff --git a/wp-includes/class-wp-token-map.php b/wp-includes/class-wp-token-map.php
new file mode 100644
index 0000000..a932f4c
--- /dev/null
+++ b/wp-includes/class-wp-token-map.php
@@ -0,0 +1,818 @@
+<?php
+
+/**
+ * Class for efficiently looking up and mapping string keys to string values, with limits.
+ *
+ * @package WordPress
+ * @since 6.6.0
+ */
+
+/**
+ * WP_Token_Map class.
+ *
+ * Use this class in specific circumstances with a static set of lookup keys which map to
+ * a static set of transformed values. For example, this class is used to map HTML named
+ * character references to their equivalent UTF-8 values.
+ *
+ * This class works differently than code calling `in_array()` and other methods. It
+ * internalizes lookup logic and provides helper interfaces to optimize lookup and
+ * transformation. It provides a method for precomputing the lookup tables and storing
+ * them as PHP source code.
+ *
+ * All tokens and substitutions must be shorter than 256 bytes.
+ *
+ * Example:
+ *
+ * $smilies = WP_Token_Map::from_array( array(
+ * '8O' => '😯',
+ * ':(' => '🙁',
+ * ':)' => '🙂',
+ * ':?' => '😕',
+ * ) );
+ *
+ * true === $smilies->contains( ':)' );
+ * false === $smilies->contains( 'simile' );
+ *
+ * '😕' === $smilies->read_token( 'Not sure :?.', 9, $length_of_smily_syntax );
+ * 2 === $length_of_smily_syntax;
+ *
+ * ## Precomputing the Token Map.
+ *
+ * Creating the class involves some work sorting and organizing the tokens and their
+ * replacement values. In order to skip this, it's possible for the class to export
+ * its state and be used as actual PHP source code.
+ *
+ * Example:
+ *
+ * // Export with four spaces as the indent, only for the sake of this docblock.
+ * // The default indent is a tab character.
+ * $indent = ' ';
+ * echo $smilies->precomputed_php_source_table( $indent );
+ *
+ * // Output, to be pasted into a PHP source file:
+ * WP_Token_Map::from_precomputed_table(
+ * array(
+ * "storage_version" => "6.6.0",
+ * "key_length" => 2,
+ * "groups" => "",
+ * "long_words" => array(),
+ * "small_words" => "8O\x00:)\x00:(\x00:?\x00",
+ * "small_mappings" => array( "😯", "🙂", "🙁", "😕" )
+ * )
+ * );
+ *
+ * ## Large vs. small words.
+ *
+ * This class uses a short prefix called the "key" to optimize lookup of its tokens.
+ * This means that some tokens may be shorter than or equal in length to that key.
+ * Those words that are longer than the key are called "large" while those shorter
+ * than or equal to the key length are called "small."
+ *
+ * This separation of large and small words is incidental to the way this class
+ * optimizes lookup, and should be considered an internal implementation detail
+ * of the class. It may still be important to be aware of it, however.
+ *
+ * ## Determining Key Length.
+ *
+ * The choice of the size of the key length should be based on the data being stored in
+ * the token map. It should divide the data as evenly as possible, but should not create
+ * so many groups that a large fraction of the groups only contain a single token.
+ *
+ * For the HTML5 named character references, a key length of 2 was found to provide a
+ * sufficient spread and should be a good default for relatively large sets of tokens.
+ *
+ * However, for some data sets this might be too long. For example, a list of smilies
+ * may be too small for a key length of 2. Perhaps 1 would be more appropriate. It's
+ * best to experiment and determine empirically which values are appropriate.
+ *
+ * ## Generate Pre-Computed Source Code.
+ *
+ * Since the `WP_Token_Map` is designed for relatively static lookups, it can be
+ * advantageous to precompute the values and instantiate a table that has already
+ * sorted and grouped the tokens and built the lookup strings.
+ *
+ * This can be done with `WP_Token_Map::precomputed_php_source_table()`.
+ *
+ * Note that if there is a leading character that all tokens need, such as `&` for
+ * HTML named character references, it can be beneficial to exclude this from the
+ * token map. Instead, find occurrences of the leading character and then use the
+ * token map to see if the following characters complete the token.
+ *
+ * Example:
+ *
+ * $map = WP_Token_Map::from_array( array( 'simple_smile:' => '🙂', 'sob:' => '😭', 'soba:' => '🍜' ) );
+ * echo $map->precomputed_php_source_table();
+ * // Output
+ * WP_Token_Map::from_precomputed_table(
+ * array(
+ * "storage_version" => "6.6.0",
+ * "key_length" => 2,
+ * "groups" => "si\x00so\x00",
+ * "long_words" => array(
+ * // simple_smile:[🙂].
+ * "\x0bmple_smile:\x04🙂",
+ * // soba:[🍜] sob:[😭].
+ * "\x03ba:\x04🍜\x02b:\x04😭",
+ * ),
+ * "short_words" => "",
+ * "short_mappings" => array()
+ * }
+ * );
+ *
+ * This precomputed value can be stored directly in source code and will skip the
+ * startup cost of generating the lookup strings. See `$html5_named_character_entities`.
+ *
+ * Note that any updates to the precomputed format should update the storage version
+ * constant. It would also be best to provide an update function to take older known
+ * versions and upgrade them in place when loading into `from_precomputed_table()`.
+ *
+ * ## Future Direction.
+ *
+ * It may be viable to dynamically increase the length limits such that there's no need to impose them.
+ * The limit appears because of the packing structure, which indicates how many bytes each segment of
+ * text in the lookup tables spans. If, however, care were taken to track the longest word length, then
+ * the packing structure could change its representation to allow for that. Each additional byte storing
+ * length, however, increases the memory overhead and lookup runtime.
+ *
+ * An alternative approach could be to borrow the UTF-8 variable-length encoding and store lengths of less
+ * than 127 as a single byte with the high bit unset, storing longer lengths as the combination of
+ * continuation bytes.
+ *
+ * Since it has not been shown during the development of this class that longer strings are required, this
+ * update is deferred until such a need is clear.
+ *
+ * @since 6.6.0
+ */
+class WP_Token_Map {
+ /**
+ * Denotes the version of the code which produces pre-computed source tables.
+ *
+ * This version will be used not only to verify pre-computed data, but also
+ * to upgrade pre-computed data from older versions. Choosing a name that
+ * corresponds to the WordPress release will help people identify where an
+ * old copy of data came from.
+ */
+ const STORAGE_VERSION = '6.6.0-trunk';
+
+ /**
+ * Maximum length for each key and each transformed value in the table (in bytes).
+ *
+ * @since 6.6.0
+ */
+ const MAX_LENGTH = 256;
+
+ /**
+ * How many bytes of each key are used to form a group key for lookup.
+ * This also determines whether a word is considered short or long.
+ *
+ * @since 6.6.0
+ *
+ * @var int
+ */
+ private $key_length = 2;
+
+ /**
+ * Stores an optimized form of the word set, where words are grouped
+ * by a prefix of the `$key_length` and then collapsed into a string.
+ *
+ * In each group, the keys and lookups form a packed data structure.
+ * The keys in the string are stripped of their "group key," which is
+ * the prefix of length `$this->key_length` shared by all of the items
+ * in the group. Each word in the string is prefixed by a single byte
+ * whose raw unsigned integer value represents how many bytes follow.
+ *
+ * ┌────────────────┬───────────────┬─────────────────┬────────┐
+ * │ Length of rest │ Rest of key │ Length of value │ Value │
+ * │ of key (bytes) │ │ (bytes) │ │
+ * ├────────────────┼───────────────┼─────────────────┼────────┤
+ * │ 0x08 │ nterDot; │ 0x02 │ · │
+ * └────────────────┴───────────────┴─────────────────┴────────┘
+ *
+ * In this example, the key `CenterDot;` has a group key `Ce`, leaving
+ * eight bytes for the rest of the key, `nterDot;`, and two bytes for
+ * the transformed value `·` (or U+B7 or "\xC2\xB7").
+ *
+ * Example:
+ *
+ * // Stores array( 'CenterDot;' => '·', 'Cedilla;' => '¸' ).
+ * $groups = "Ce\x00";
+ * $large_words = array( "\x08nterDot;\x02·\x06dilla;\x02¸" )
+ *
+ * The prefixes appear in the `$groups` string, each followed by a null
+ * byte. This makes for quick lookup of where in the group string the key
+ * is found, and then a simple division converts that offset into the index
+ * in the `$large_words` array where the group string is to be found.
+ *
+ * This lookup data structure is designed to optimize cache locality and
+ * minimize indirect memory reads when matching strings in the set.
+ *
+ * @since 6.6.0
+ *
+ * @var array
+ */
+ private $large_words = array();
+
+ /**
+ * Stores the group keys for sequential string lookup.
+ *
+ * The offset into this string where the group key appears corresponds with the index
+ * into the group array where the rest of the group string appears. This is an optimization
+ * to improve cache locality while searching and minimize indirect memory accesses.
+ *
+ * @since 6.6.0
+ *
+ * @var string
+ */
+ private $groups = '';
+
+ /**
+ * Stores an optimized row of small words, where every entry is
+ * `$this->key_size + 1` bytes long and zero-extended.
+ *
+ * This packing allows for direct lookup of a short word followed
+ * by the null byte, if extended to `$this->key_size + 1`.
+ *
+ * Example:
+ *
+ * // Stores array( 'GT', 'LT', 'gt', 'lt' ).
+ * "GT\x00LT\x00gt\x00lt\x00"
+ *
+ * @since 6.6.0
+ *
+ * @var string
+ */
+ private $small_words = '';
+
+ /**
+ * Replacements for the small words, in the same order they appear.
+ *
+ * With the position of a small word it's possible to index the translation
+ * directly, as its position in the `$small_words` string corresponds to
+ * the index of the replacement in the `$small_mapping` array.
+ *
+ * Example:
+ *
+ * array( '>', '<', '>', '<' )
+ *
+ * @since 6.6.0
+ *
+ * @var string[]
+ */
+ private $small_mappings = array();
+
+ /**
+ * Create a token map using an associative array of key/value pairs as the input.
+ *
+ * Example:
+ *
+ * $smilies = WP_Token_Map::from_array( array(
+ * '8O' => '😯',
+ * ':(' => '🙁',
+ * ':)' => '🙂',
+ * ':?' => '😕',
+ * ) );
+ *
+ * @since 6.6.0
+ *
+ * @param array $mappings The keys transform into the values, both are strings.
+ * @param int $key_length Determines the group key length. Leave at the default value
+ * of 2 unless there's an empirical reason to change it.
+ *
+ * @return WP_Token_Map|null Token map, unless unable to create it.
+ */
+ public static function from_array( $mappings, $key_length = 2 ) {
+ $map = new WP_Token_Map();
+ $map->key_length = $key_length;
+
+ // Start by grouping words.
+
+ $groups = array();
+ $shorts = array();
+ foreach ( $mappings as $word => $mapping ) {
+ if (
+ self::MAX_LENGTH <= strlen( $word ) ||
+ self::MAX_LENGTH <= strlen( $mapping )
+ ) {
+ _doing_it_wrong(
+ __METHOD__,
+ sprintf(
+ /* translators: 1: maximum byte length (a count) */
+ __( 'Token Map tokens and substitutions must all be shorter than %1$d bytes.' ),
+ self::MAX_LENGTH
+ ),
+ '6.6.0'
+ );
+ return null;
+ }
+
+ $length = strlen( $word );
+
+ if ( $key_length >= $length ) {
+ $shorts[] = $word;
+ } else {
+ $group = substr( $word, 0, $key_length );
+
+ if ( ! isset( $groups[ $group ] ) ) {
+ $groups[ $group ] = array();
+ }
+
+ $groups[ $group ][] = array( substr( $word, $key_length ), $mapping );
+ }
+ }
+
+ /*
+ * Sort the words to ensure that no smaller substring of a match masks the full match.
+ * For example, `Cap` should not match before `CapitalDifferentialD`.
+ */
+ usort( $shorts, 'WP_Token_Map::longest_first_then_alphabetical' );
+ foreach ( $groups as $group_key => $group ) {
+ usort(
+ $groups[ $group_key ],
+ static function ( $a, $b ) {
+ return self::longest_first_then_alphabetical( $a[0], $b[0] );
+ }
+ );
+ }
+
+ // Finally construct the optimized lookups.
+
+ foreach ( $shorts as $word ) {
+ $map->small_words .= str_pad( $word, $key_length + 1, "\x00", STR_PAD_RIGHT );
+ $map->small_mappings[] = $mappings[ $word ];
+ }
+
+ $group_keys = array_keys( $groups );
+ sort( $group_keys );
+
+ foreach ( $group_keys as $group ) {
+ $map->groups .= "{$group}\x00";
+
+ $group_string = '';
+
+ foreach ( $groups[ $group ] as $group_word ) {
+ list( $word, $mapping ) = $group_word;
+
+ $word_length = pack( 'C', strlen( $word ) );
+ $mapping_length = pack( 'C', strlen( $mapping ) );
+ $group_string .= "{$word_length}{$word}{$mapping_length}{$mapping}";
+ }
+
+ $map->large_words[] = $group_string;
+ }
+
+ return $map;
+ }
+
+ /**
+ * Creates a token map from a pre-computed table.
+ * This skips the initialization cost of generating the table.
+ *
+ * This function should only be used to load data created with
+ * WP_Token_Map::precomputed_php_source_tag().
+ *
+ * @since 6.6.0
+ *
+ * @param array $state {
+ * Stores pre-computed state for directly loading into a Token Map.
+ *
+ * @type string $storage_version Which version of the code produced this state.
+ * @type int $key_length Group key length.
+ * @type string $groups Group lookup index.
+ * @type array $large_words Large word groups and packed strings.
+ * @type string $small_words Small words packed string.
+ * @type array $small_mappings Small word mappings.
+ * }
+ *
+ * @return WP_Token_Map Map with precomputed data loaded.
+ */
+ public static function from_precomputed_table( $state ) {
+ $has_necessary_state = isset(
+ $state['storage_version'],
+ $state['key_length'],
+ $state['groups'],
+ $state['large_words'],
+ $state['small_words'],
+ $state['small_mappings']
+ );
+
+ if ( ! $has_necessary_state ) {
+ _doing_it_wrong(
+ __METHOD__,
+ __( 'Missing required inputs to pre-computed WP_Token_Map.' ),
+ '6.6.0'
+ );
+ return null;
+ }
+
+ if ( self::STORAGE_VERSION !== $state['storage_version'] ) {
+ _doing_it_wrong(
+ __METHOD__,
+ /* translators: 1: version string, 2: version string. */
+ sprintf( __( 'Loaded version \'%1$s\' incompatible with expected version \'%2$s\'.' ), $state['storage_version'], self::STORAGE_VERSION ),
+ '6.6.0'
+ );
+ return null;
+ }
+
+ $map = new WP_Token_Map();
+
+ $map->key_length = $state['key_length'];
+ $map->groups = $state['groups'];
+ $map->large_words = $state['large_words'];
+ $map->small_words = $state['small_words'];
+ $map->small_mappings = $state['small_mappings'];
+
+ return $map;
+ }
+
+ /**
+ * Indicates if a given word is a lookup key in the map.
+ *
+ * Example:
+ *
+ * true === $smilies->contains( ':)' );
+ * false === $smilies->contains( 'simile' );
+ *
+ * @since 6.6.0
+ *
+ * @param string $word Determine if this word is a lookup key in the map.
+ * @param string $case_sensitivity Optional. Pass 'ascii-case-insensitive' to ignore ASCII case when matching. Default 'case-sensitive'.
+ * @return bool Whether there's an entry for the given word in the map.
+ */
+ public function contains( $word, $case_sensitivity = 'case-sensitive' ) {
+ $ignore_case = 'ascii-case-insensitive' === $case_sensitivity;
+
+ if ( $this->key_length >= strlen( $word ) ) {
+ if ( 0 === strlen( $this->small_words ) ) {
+ return false;
+ }
+
+ $term = str_pad( $word, $this->key_length + 1, "\x00", STR_PAD_RIGHT );
+ $word_at = $ignore_case ? stripos( $this->small_words, $term ) : strpos( $this->small_words, $term );
+ if ( false === $word_at ) {
+ return false;
+ }
+
+ return true;
+ }
+
+ $group_key = substr( $word, 0, $this->key_length );
+ $group_at = $ignore_case ? stripos( $this->groups, $group_key ) : strpos( $this->groups, $group_key );
+ if ( false === $group_at ) {
+ return false;
+ }
+ $group = $this->large_words[ $group_at / ( $this->key_length + 1 ) ];
+ $group_length = strlen( $group );
+ $slug = substr( $word, $this->key_length );
+ $length = strlen( $slug );
+ $at = 0;
+
+ while ( $at < $group_length ) {
+ $token_length = unpack( 'C', $group[ $at++ ] )[1];
+ $token_at = $at;
+ $at += $token_length;
+ $mapping_length = unpack( 'C', $group[ $at++ ] )[1];
+ $mapping_at = $at;
+
+ if ( $token_length === $length && 0 === substr_compare( $group, $slug, $token_at, $token_length, $ignore_case ) ) {
+ return true;
+ }
+
+ $at = $mapping_at + $mapping_length;
+ }
+
+ return false;
+ }
+
+ /**
+ * If the text starting at a given offset is a lookup key in the map,
+ * return the corresponding transformation from the map, else `false`.
+ *
+ * This function returns the translated string, but accepts an optional
+ * parameter `$matched_token_byte_length`, which communicates how many
+ * bytes long the lookup key was, if it found one. This can be used to
+ * advance a cursor in calling code if a lookup key was found.
+ *
+ * Example:
+ *
+ * false === $smilies->read_token( 'Not sure :?.', 0, $token_byte_length );
+ * '😕' === $smilies->read_token( 'Not sure :?.', 9, $token_byte_length );
+ * 2 === $token_byte_length;
+ *
+ * Example:
+ *
+ * while ( $at < strlen( $input ) ) {
+ * $next_at = strpos( $input, ':', $at );
+ * if ( false === $next_at ) {
+ * break;
+ * }
+ *
+ * $smily = $smilies->read_token( $input, $next_at, $token_byte_length );
+ * if ( false === $next_at ) {
+ * ++$at;
+ * continue;
+ * }
+ *
+ * $prefix = substr( $input, $at, $next_at - $at );
+ * $at += $token_byte_length;
+ * $output .= "{$prefix}{$smily}";
+ * }
+ *
+ * @since 6.6.0
+ *
+ * @param string $text String in which to search for a lookup key.
+ * @param int $offset Optional. How many bytes into the string where the lookup key ought to start. Default 0.
+ * @param ?int &$matched_token_byte_length Optional. Holds byte-length of found token matched, otherwise not set. Default null.
+ * @param string $case_sensitivity Optional. Pass 'ascii-case-insensitive' to ignore ASCII case when matching. Default 'case-sensitive'.
+ * @return string|null Mapped value of lookup key if found, otherwise `null`.
+ */
+ public function read_token( $text, $offset = 0, &$matched_token_byte_length = null, $case_sensitivity = 'case-sensitive' ) {
+ $ignore_case = 'ascii-case-insensitive' === $case_sensitivity;
+ $text_length = strlen( $text );
+
+ // Search for a long word first, if the text is long enough, and if that fails, a short one.
+ if ( $text_length > $this->key_length ) {
+ $group_key = substr( $text, $offset, $this->key_length );
+
+ $group_at = $ignore_case ? stripos( $this->groups, $group_key ) : strpos( $this->groups, $group_key );
+ if ( false === $group_at ) {
+ // Perhaps a short word then.
+ return strlen( $this->small_words ) > 0
+ ? $this->read_small_token( $text, $offset, $matched_token_byte_length, $case_sensitivity )
+ : null;
+ }
+
+ $group = $this->large_words[ $group_at / ( $this->key_length + 1 ) ];
+ $group_length = strlen( $group );
+ $at = 0;
+ while ( $at < $group_length ) {
+ $token_length = unpack( 'C', $group[ $at++ ] )[1];
+ $token = substr( $group, $at, $token_length );
+ $at += $token_length;
+ $mapping_length = unpack( 'C', $group[ $at++ ] )[1];
+ $mapping_at = $at;
+
+ if ( 0 === substr_compare( $text, $token, $offset + $this->key_length, $token_length, $ignore_case ) ) {
+ $matched_token_byte_length = $this->key_length + $token_length;
+ return substr( $group, $mapping_at, $mapping_length );
+ }
+
+ $at = $mapping_at + $mapping_length;
+ }
+ }
+
+ // Perhaps a short word then.
+ return strlen( $this->small_words ) > 0
+ ? $this->read_small_token( $text, $offset, $matched_token_byte_length, $case_sensitivity )
+ : null;
+ }
+
+ /**
+ * Finds a match for a short word at the index.
+ *
+ * @since 6.6.0.
+ *
+ * @param string $text String in which to search for a lookup key.
+ * @param int $offset Optional. How many bytes into the string where the lookup key ought to start. Default 0.
+ * @param ?int &$matched_token_byte_length Optional. Holds byte-length of found lookup key if matched, otherwise not set. Default null.
+ * @param string $case_sensitivity Optional. Pass 'ascii-case-insensitive' to ignore ASCII case when matching. Default 'case-sensitive'.
+ * @return string|null Mapped value of lookup key if found, otherwise `null`.
+ */
+ private function read_small_token( $text, $offset, &$matched_token_byte_length, $case_sensitivity = 'case-sensitive' ) {
+ $ignore_case = 'ascii-case-insensitive' === $case_sensitivity;
+ $small_length = strlen( $this->small_words );
+ $search_text = substr( $text, $offset, $this->key_length );
+ if ( $ignore_case ) {
+ $search_text = strtoupper( $search_text );
+ }
+ $starting_char = $search_text[0];
+
+ $at = 0;
+ while ( $at < $small_length ) {
+ if (
+ $starting_char !== $this->small_words[ $at ] &&
+ ( ! $ignore_case || strtoupper( $this->small_words[ $at ] ) !== $starting_char )
+ ) {
+ $at += $this->key_length + 1;
+ continue;
+ }
+
+ for ( $adjust = 1; $adjust < $this->key_length; $adjust++ ) {
+ if ( "\x00" === $this->small_words[ $at + $adjust ] ) {
+ $matched_token_byte_length = $adjust;
+ return $this->small_mappings[ $at / ( $this->key_length + 1 ) ];
+ }
+
+ if (
+ $search_text[ $adjust ] !== $this->small_words[ $at + $adjust ] &&
+ ( ! $ignore_case || strtoupper( $this->small_words[ $at + $adjust ] !== $search_text[ $adjust ] ) )
+ ) {
+ $at += $this->key_length + 1;
+ continue 2;
+ }
+ }
+
+ $matched_token_byte_length = $adjust;
+ return $this->small_mappings[ $at / ( $this->key_length + 1 ) ];
+ }
+
+ return null;
+ }
+
+ /**
+ * Exports the token map into an associate array of key/value pairs.
+ *
+ * Example:
+ *
+ * $smilies->to_array() === array(
+ * '8O' => '😯',
+ * ':(' => '🙁',
+ * ':)' => '🙂',
+ * ':?' => '😕',
+ * );
+ *
+ * @return array The lookup key/substitution values as an associate array.
+ */
+ public function to_array() {
+ $tokens = array();
+
+ $at = 0;
+ $small_mapping = 0;
+ $small_length = strlen( $this->small_words );
+ while ( $at < $small_length ) {
+ $key = rtrim( substr( $this->small_words, $at, $this->key_length + 1 ), "\x00" );
+ $value = $this->small_mappings[ $small_mapping++ ];
+ $tokens[ $key ] = $value;
+
+ $at += $this->key_length + 1;
+ }
+
+ foreach ( $this->large_words as $index => $group ) {
+ $prefix = substr( $this->groups, $index * ( $this->key_length + 1 ), 2 );
+ $group_length = strlen( $group );
+ $at = 0;
+ while ( $at < $group_length ) {
+ $length = unpack( 'C', $group[ $at++ ] )[1];
+ $key = $prefix . substr( $group, $at, $length );
+
+ $at += $length;
+ $length = unpack( 'C', $group[ $at++ ] )[1];
+ $value = substr( $group, $at, $length );
+
+ $tokens[ $key ] = $value;
+ $at += $length;
+ }
+ }
+
+ return $tokens;
+ }
+
+ /**
+ * Export the token map for quick loading in PHP source code.
+ *
+ * This function has a specific purpose, to make loading of static token maps fast.
+ * It's used to ensure that the HTML character reference lookups add a minimal cost
+ * to initializing the PHP process.
+ *
+ * Example:
+ *
+ * echo $smilies->precomputed_php_source_table();
+ *
+ * // Output.
+ * WP_Token_Map::from_precomputed_table(
+ * array(
+ * "storage_version" => "6.6.0",
+ * "key_length" => 2,
+ * "groups" => "",
+ * "long_words" => array(),
+ * "small_words" => "8O\x00:)\x00:(\x00:?\x00",
+ * "small_mappings" => array( "😯", "🙂", "🙁", "😕" )
+ * )
+ * );
+ *
+ * @since 6.6.0
+ *
+ * @param string $indent Optional. Use this string for indentation, or rely on the default horizontal tab character. Default "\t".
+ * @return string Value which can be pasted into a PHP source file for quick loading of table.
+ */
+ public function precomputed_php_source_table( $indent = "\t" ) {
+ $i1 = $indent;
+ $i2 = $i1 . $indent;
+ $i3 = $i2 . $indent;
+
+ $class_version = self::STORAGE_VERSION;
+
+ $output = self::class . "::from_precomputed_table(\n";
+ $output .= "{$i1}array(\n";
+ $output .= "{$i2}\"storage_version\" => \"{$class_version}\",\n";
+ $output .= "{$i2}\"key_length\" => {$this->key_length},\n";
+
+ $group_line = str_replace( "\x00", "\\x00", $this->groups );
+ $output .= "{$i2}\"groups\" => \"{$group_line}\",\n";
+
+ $output .= "{$i2}\"large_words\" => array(\n";
+
+ $prefixes = explode( "\x00", $this->groups );
+ foreach ( $prefixes as $index => $prefix ) {
+ if ( '' === $prefix ) {
+ break;
+ }
+ $group = $this->large_words[ $index ];
+ $group_length = strlen( $group );
+ $comment_line = "{$i3}//";
+ $data_line = "{$i3}\"";
+ $at = 0;
+ while ( $at < $group_length ) {
+ $token_length = unpack( 'C', $group[ $at++ ] )[1];
+ $token = substr( $group, $at, $token_length );
+ $at += $token_length;
+ $mapping_length = unpack( 'C', $group[ $at++ ] )[1];
+ $mapping = substr( $group, $at, $mapping_length );
+ $at += $mapping_length;
+
+ $token_digits = str_pad( dechex( $token_length ), 2, '0', STR_PAD_LEFT );
+ $mapping_digits = str_pad( dechex( $mapping_length ), 2, '0', STR_PAD_LEFT );
+
+ $mapping = preg_replace_callback(
+ "~[\\x00-\\x1f\\x22\\x5c]~",
+ static function ( $match_result ) {
+ switch ( $match_result[0] ) {
+ case '"':
+ return '\\"';
+
+ case '\\':
+ return '\\\\';
+
+ default:
+ $hex = dechex( ord( $match_result[0] ) );
+ return "\\x{$hex}";
+ }
+ },
+ $mapping
+ );
+
+ $comment_line .= " {$prefix}{$token}[{$mapping}]";
+ $data_line .= "\\x{$token_digits}{$token}\\x{$mapping_digits}{$mapping}";
+ }
+ $comment_line .= ".\n";
+ $data_line .= "\",\n";
+
+ $output .= $comment_line;
+ $output .= $data_line;
+ }
+
+ $output .= "{$i2}),\n";
+
+ $small_words = array();
+ $small_length = strlen( $this->small_words );
+ $at = 0;
+ while ( $at < $small_length ) {
+ $small_words[] = substr( $this->small_words, $at, $this->key_length + 1 );
+ $at += $this->key_length + 1;
+ }
+
+ $small_text = str_replace( "\x00", '\x00', implode( '', $small_words ) );
+ $output .= "{$i2}\"small_words\" => \"{$small_text}\",\n";
+
+ $output .= "{$i2}\"small_mappings\" => array(\n";
+ foreach ( $this->small_mappings as $mapping ) {
+ $output .= "{$i3}\"{$mapping}\",\n";
+ }
+ $output .= "{$i2})\n";
+ $output .= "{$i1})\n";
+ $output .= ')';
+
+ return $output;
+ }
+
+ /**
+ * Compares two strings, returning the longest, or whichever
+ * is first alphabetically if they are the same length.
+ *
+ * This is an important sort when building the token map because
+ * it should not form a match on a substring of a longer potential
+ * match. For example, it should not detect `Cap` when matching
+ * against the string `CapitalDifferentialD`.
+ *
+ * @since 6.6.0
+ *
+ * @param string $a First string to compare.
+ * @param string $b Second string to compare.
+ * @return int -1 or lower if `$a` is less than `$b`; 1 or greater if `$a` is greater than `$b`, and 0 if they are equal.
+ */
+ private static function longest_first_then_alphabetical( $a, $b ) {
+ if ( $a === $b ) {
+ return 0;
+ }
+
+ $length_a = strlen( $a );
+ $length_b = strlen( $b );
+
+ // Longer strings are less-than for comparison's sake.
+ if ( $length_a !== $length_b ) {
+ return $length_b - $length_a;
+ }
+
+ return strcmp( $a, $b );
+ }
+}
diff --git a/wp-includes/class-wp-user-query.php b/wp-includes/class-wp-user-query.php
index 0d2c0de..f9bb823 100644
--- a/wp-includes/class-wp-user-query.php
+++ b/wp-includes/class-wp-user-query.php
@@ -142,6 +142,7 @@ class WP_User_Query {
* @since 5.1.0 Introduced the 'meta_compare_key' parameter.
* @since 5.3.0 Introduced the 'meta_type_key' parameter.
* @since 5.9.0 Added 'capability', 'capability__in', and 'capability__not_in' parameters.
+ * Deprecated the 'who' parameter.
* @since 6.3.0 Added 'cache_results' parameter.
*
* @global wpdb $wpdb WordPress database abstraction object.
@@ -151,13 +152,13 @@ class WP_User_Query {
* Optional. Array or string of query parameters.
*
* @type int $blog_id The site ID. Default is the current site.
- * @type string|string[] $role An array or a comma-separated list of role names that users must match
- * to be included in results. Note that this is an inclusive list: users
- * must match *each* role. Default empty.
- * @type string[] $role__in An array of role names. Matched users must have at least one of these
- * roles. Default empty array.
- * @type string[] $role__not_in An array of role names to exclude. Users matching one or more of these
- * roles will not be included in results. Default empty array.
+ * @type string|string[] $role An array or a comma-separated list of role names that users
+ * must match to be included in results. Note that this is
+ * an inclusive list: users must match *each* role. Default empty.
+ * @type string[] $role__in An array of role names. Matched users must have at least one
+ * of these roles. Default empty array.
+ * @type string[] $role__not_in An array of role names to exclude. Users matching one or more
+ * of these roles will not be included in results. Default empty array.
* @type string|string[] $meta_key Meta key or keys to filter by.
* @type string|string[] $meta_value Meta value or values to filter by.
* @type string $meta_compare MySQL operator used for comparing the meta value.
@@ -170,19 +171,19 @@ class WP_User_Query {
* See WP_Meta_Query::__construct() for accepted values and default value.
* @type array $meta_query An associative array of WP_Meta_Query arguments.
* See WP_Meta_Query::__construct() for accepted values.
- * @type string|string[] $capability An array or a comma-separated list of capability names that users must match
- * to be included in results. Note that this is an inclusive list: users
- * must match *each* capability.
- * Does NOT work for capabilities not in the database or filtered via {@see 'map_meta_cap'}.
- * Default empty.
- * @type string[] $capability__in An array of capability names. Matched users must have at least one of these
- * capabilities.
- * Does NOT work for capabilities not in the database or filtered via {@see 'map_meta_cap'}.
- * Default empty array.
- * @type string[] $capability__not_in An array of capability names to exclude. Users matching one or more of these
- * capabilities will not be included in results.
- * Does NOT work for capabilities not in the database or filtered via {@see 'map_meta_cap'}.
- * Default empty array.
+ * @type string|string[] $capability An array or a comma-separated list of capability names that users
+ * must match to be included in results. Note that this is
+ * an inclusive list: users must match *each* capability.
+ * Does NOT work for capabilities not in the database or filtered
+ * via {@see 'map_meta_cap'}. Default empty.
+ * @type string[] $capability__in An array of capability names. Matched users must have at least one
+ * of these capabilities.
+ * Does NOT work for capabilities not in the database or filtered
+ * via {@see 'map_meta_cap'}. Default empty array.
+ * @type string[] $capability__not_in An array of capability names to exclude. Users matching one or more
+ * of these capabilities will not be included in results.
+ * Does NOT work for capabilities not in the database or filtered
+ * via {@see 'map_meta_cap'}. Default empty array.
* @type int[] $include An array of user IDs to include. Default empty array.
* @type int[] $exclude An array of user IDs to exclude. Default empty array.
* @type string $search Search keyword. Searches for possible string matches on columns.
@@ -199,13 +200,13 @@ class WP_User_Query {
* - 'include'
* - 'user_login' (or 'login')
* - 'login__in'
- * - 'user_nicename' (or 'nicename'),
+ * - 'user_nicename' (or 'nicename')
* - 'nicename__in'
* - 'user_email (or 'email')
- * - 'user_url' (or 'url'),
+ * - 'user_url' (or 'url')
* - 'user_registered' (or 'registered')
* - 'post_count'
- * - 'meta_value',
+ * - 'meta_value'
* - 'meta_value_num'
* - The value of `$meta_key`
* - An array key of `$meta_query`
@@ -242,7 +243,8 @@ class WP_User_Query {
* - 'all' for all fields and loads user meta.
* - 'all_with_meta' Deprecated. Use 'all'.
* Default 'all'.
- * @type string $who Type of users to query. Accepts 'authors'.
+ * @type string $who Deprecated, use `$capability` instead.
+ * Type of users to query. Accepts 'authors'.
* Default empty (all users).
* @type bool|string[] $has_published_posts Pass an array of post types to filter results to users who have
* published posts in those post types. `true` is an alias for all
diff --git a/wp-includes/class-wp-walker.php b/wp-includes/class-wp-walker.php
index e44907e..ff5eac2 100644
--- a/wp-includes/class-wp-walker.php
+++ b/wp-includes/class-wp-walker.php
@@ -147,7 +147,7 @@ class Walker {
$this->start_el( $output, $element, $depth, ...array_values( $args ) );
// Descend only when the depth is right and there are children for this element.
- if ( ( 0 == $max_depth || $max_depth > $depth + 1 ) && isset( $children_elements[ $id ] ) ) {
+ if ( ( 0 === $max_depth || $max_depth > $depth + 1 ) && isset( $children_elements[ $id ] ) ) {
foreach ( $children_elements[ $id ] as $child ) {
@@ -199,7 +199,7 @@ class Walker {
$parent_field = $this->db_fields['parent'];
// Flat display.
- if ( -1 == $max_depth ) {
+ if ( -1 === $max_depth ) {
$empty_array = array();
foreach ( $elements as $e ) {
$this->display_element( $e, $empty_array, 1, 0, $args, $output );
@@ -235,7 +235,7 @@ class Walker {
$top_level_elements = array();
$children_elements = array();
foreach ( $elements as $e ) {
- if ( $root->$parent_field == $e->$parent_field ) {
+ if ( $root->$parent_field === $e->$parent_field ) {
$top_level_elements[] = $e;
} else {
$children_elements[ $e->$parent_field ][] = $e;
@@ -251,7 +251,7 @@ class Walker {
* If we are displaying all levels, and remaining children_elements is not empty,
* then we got orphans, which should be displayed regardless.
*/
- if ( ( 0 == $max_depth ) && count( $children_elements ) > 0 ) {
+ if ( ( 0 === $max_depth ) && count( $children_elements ) > 0 ) {
$empty_array = array();
foreach ( $children_elements as $orphans ) {
foreach ( $orphans as $op ) {
@@ -294,14 +294,14 @@ class Walker {
$parent_field = $this->db_fields['parent'];
$count = -1;
- if ( -1 == $max_depth ) {
+ if ( -1 === $max_depth ) {
$total_top = count( $elements );
}
if ( $page_num < 1 || $per_page < 0 ) {
// No paging.
$paging = false;
$start = 0;
- if ( -1 == $max_depth ) {
+ if ( -1 === $max_depth ) {
$end = $total_top;
}
$this->max_pages = 1;
@@ -309,13 +309,13 @@ class Walker {
$paging = true;
$start = ( (int) $page_num - 1 ) * (int) $per_page;
$end = $start + $per_page;
- if ( -1 == $max_depth ) {
+ if ( -1 === $max_depth ) {
$this->max_pages = (int) ceil( $total_top / $per_page );
}
}
// Flat display.
- if ( -1 == $max_depth ) {
+ if ( -1 === $max_depth ) {
if ( ! empty( $args[0]['reverse_top_level'] ) ) {
$elements = array_reverse( $elements );
$oldstart = $start;
diff --git a/wp-includes/class-wpdb.php b/wp-includes/class-wpdb.php
index d9186b9..aeb9679 100644
--- a/wp-includes/class-wpdb.php
+++ b/wp-includes/class-wpdb.php
@@ -878,15 +878,10 @@ class wpdb {
return compact( 'charset', 'collate' );
}
- if ( 'utf8' === $charset && $this->has_cap( 'utf8mb4' ) ) {
+ if ( 'utf8' === $charset ) {
$charset = 'utf8mb4';
}
- if ( 'utf8mb4' === $charset && ! $this->has_cap( 'utf8mb4' ) ) {
- $charset = 'utf8';
- $collate = str_replace( 'utf8mb4_', 'utf8_', $collate );
- }
-
if ( 'utf8mb4' === $charset ) {
// _general_ is outdated, so we can upgrade it to _unicode_, instead.
if ( ! $collate || 'utf8_general_ci' === $collate ) {
@@ -3242,11 +3237,6 @@ class wpdb {
if ( ! empty( $column->Collation ) ) {
list( $charset ) = explode( '_', $column->Collation );
- // If the current connection can't support utf8mb4 characters, let's only send 3-byte utf8 characters.
- if ( 'utf8mb4' === $charset && ! $this->has_cap( 'utf8mb4' ) ) {
- $charset = 'utf8';
- }
-
$charsets[ strtolower( $charset ) ] = true;
}
@@ -4057,6 +4047,7 @@ class wpdb {
* @since 4.1.0 Added support for the 'utf8mb4' feature.
* @since 4.6.0 Added support for the 'utf8mb4_520' feature.
* @since 6.2.0 Added support for the 'identifier_placeholders' feature.
+ * @since 6.6.0 The `utf8mb4` feature now always returns true.
*
* @see wpdb::db_version()
*
@@ -4092,26 +4083,7 @@ class wpdb {
case 'set_charset':
return version_compare( $db_version, '5.0.7', '>=' );
case 'utf8mb4': // @since 4.1.0
- if ( version_compare( $db_version, '5.5.3', '<' ) ) {
- return false;
- }
-
- $client_version = mysqli_get_client_info();
-
- /*
- * libmysql has supported utf8mb4 since 5.5.3, same as the MySQL server.
- * mysqlnd has supported utf8mb4 since 5.0.9.
- *
- * Note: str_contains() is not used here, as this file can be included
- * directly outside of WordPress core, e.g. by HyperDB, in which case
- * the polyfills from wp-includes/compat.php are not loaded.
- */
- if ( false !== strpos( $client_version, 'mysqlnd' ) ) {
- $client_version = preg_replace( '/^\D+([\d.]+).*/', '$1', $client_version );
- return version_compare( $client_version, '5.0.9', '>=' );
- } else {
- return version_compare( $client_version, '5.5.3', '>=' );
- }
+ return true;
case 'utf8mb4_520': // @since 4.6.0
return version_compare( $db_version, '5.6', '>=' );
case 'identifier_placeholders': // @since 6.2.0
diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php
index d125f0c..fed6568 100644
--- a/wp-includes/comment-template.php
+++ b/wp-includes/comment-template.php
@@ -24,7 +24,13 @@
function get_comment_author( $comment_id = 0 ) {
$comment = get_comment( $comment_id );
- $comment_id = ! empty( $comment->comment_ID ) ? $comment->comment_ID : $comment_id;
+ if ( ! empty( $comment->comment_ID ) ) {
+ $comment_id = $comment->comment_ID;
+ } elseif ( is_scalar( $comment_id ) ) {
+ $comment_id = (string) $comment_id;
+ } else {
+ $comment_id = '';
+ }
if ( empty( $comment->comment_author ) ) {
$user = ! empty( $comment->user_id ) ? get_userdata( $comment->user_id ) : false;
diff --git a/wp-includes/comment.php b/wp-includes/comment.php
index cca3901..748dd61 100644
--- a/wp-includes/comment.php
+++ b/wp-includes/comment.php
@@ -557,10 +557,11 @@ function wp_set_comment_cookies( $comment, $user, $cookies_consent = true ) {
* Filters the lifetime of the comment cookie in seconds.
*
* @since 2.8.0
+ * @since 6.6.0 The default $seconds value changed from 30000000 to YEAR_IN_SECONDS.
*
- * @param int $seconds Comment cookie lifetime. Default 30000000.
+ * @param int $seconds Comment cookie lifetime. Default YEAR_IN_SECONDS.
*/
- $comment_cookie_lifetime = time() + apply_filters( 'comment_cookie_lifetime', 30000000 );
+ $comment_cookie_lifetime = time() + apply_filters( 'comment_cookie_lifetime', YEAR_IN_SECONDS );
$secure = ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) );
diff --git a/wp-includes/compat.php b/wp-includes/compat.php
index 95c4af4..900a799 100644
--- a/wp-includes/compat.php
+++ b/wp-includes/compat.php
@@ -40,6 +40,43 @@ function _wp_can_use_pcre_u( $set = null ) {
return $utf8_pcre;
}
+/**
+ * Indicates if a given slug for a character set represents the UTF-8 text encoding.
+ *
+ * A charset is considered to represent UTF-8 if it is a case-insensitive match
+ * of "UTF-8" with or without the hyphen.
+ *
+ * Example:
+ *
+ * true === _is_utf8_charset( 'UTF-8' );
+ * true === _is_utf8_charset( 'utf8' );
+ * false === _is_utf8_charset( 'latin1' );
+ * false === _is_utf8_charset( 'UTF 8' );
+ *
+ * // Only strings match.
+ * false === _is_utf8_charset( [ 'charset' => 'utf-8' ] );
+ *
+ * `is_utf8_charset` should be used outside of this file.
+ *
+ * @ignore
+ * @since 6.6.1
+ *
+ * @param string $charset_slug Slug representing a text character encoding, or "charset".
+ * E.g. "UTF-8", "Windows-1252", "ISO-8859-1", "SJIS".
+ *
+ * @return bool Whether the slug represents the UTF-8 encoding.
+ */
+function _is_utf8_charset( $charset_slug ) {
+ if ( ! is_string( $charset_slug ) ) {
+ return false;
+ }
+
+ return (
+ 0 === strcasecmp( 'UTF-8', $charset_slug ) ||
+ 0 === strcasecmp( 'UTF8', $charset_slug )
+ );
+}
+
if ( ! function_exists( 'mb_substr' ) ) :
/**
* Compat function to mimic mb_substr().
@@ -91,7 +128,7 @@ function _mb_substr( $str, $start, $length = null, $encoding = null ) {
* The solution below works only for UTF-8, so in case of a different
* charset just use built-in substr().
*/
- if ( ! in_array( $encoding, array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ), true ) ) {
+ if ( ! _is_utf8_charset( $encoding ) ) {
return is_null( $length ) ? substr( $str, $start ) : substr( $str, $start, $length );
}
@@ -176,7 +213,7 @@ function _mb_strlen( $str, $encoding = null ) {
* The solution below works only for UTF-8, so in case of a different charset
* just use built-in strlen().
*/
- if ( ! in_array( $encoding, array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ), true ) ) {
+ if ( ! _is_utf8_charset( $encoding ) ) {
return strlen( $str );
}
@@ -359,23 +396,6 @@ if ( ! function_exists( 'is_countable' ) ) {
}
}
-if ( ! function_exists( 'is_iterable' ) ) {
- /**
- * Polyfill for is_iterable() function added in PHP 7.1.
- *
- * Verify that the content of a variable is an array or an object
- * implementing the Traversable interface.
- *
- * @since 4.9.6
- *
- * @param mixed $value The value to check.
- * @return bool True if `$value` is iterable, false otherwise.
- */
- function is_iterable( $value ) {
- return ( is_array( $value ) || $value instanceof Traversable );
- }
-}
-
if ( ! function_exists( 'array_key_first' ) ) {
/**
* Polyfill for array_key_first() function added in PHP 7.3.
@@ -520,16 +540,6 @@ if ( ! function_exists( 'str_ends_with' ) ) {
}
}
-// IMAGETYPE_WEBP constant is only defined in PHP 7.1 or later.
-if ( ! defined( 'IMAGETYPE_WEBP' ) ) {
- define( 'IMAGETYPE_WEBP', 18 );
-}
-
-// IMG_WEBP constant is only defined in PHP 7.0.10 or later.
-if ( ! defined( 'IMG_WEBP' ) ) {
- define( 'IMG_WEBP', IMAGETYPE_WEBP );
-}
-
// IMAGETYPE_AVIF constant is only defined in PHP 8.x or later.
if ( ! defined( 'IMAGETYPE_AVIF' ) ) {
define( 'IMAGETYPE_AVIF', 19 );
diff --git a/wp-includes/cron.php b/wp-includes/cron.php
index aadc22b..9371515 100644
--- a/wp-includes/cron.php
+++ b/wp-includes/cron.php
@@ -659,8 +659,9 @@ function wp_unschedule_hook( $hook, $wp_error = false ) {
* process, causing the function to return the filtered value instead.
*
* For plugins replacing wp-cron, return the number of events successfully
- * unscheduled (zero if no events were registered with the hook) or false
- * if unscheduling one or more events fails.
+ * unscheduled (zero if no events were registered with the hook). If unscheduling
+ * one or more events fails then return either a WP_Error object or false depending
+ * on the value of the `$wp_error` parameter.
*
* @since 5.1.0
* @since 5.7.0 The `$wp_error` parameter was added, and a `WP_Error` object can now be returned.
@@ -1047,14 +1048,14 @@ function _wp_cron() {
* one is 'interval' and the other is 'display'.
*
* The 'interval' is a number in seconds of when the cron job should run.
- * So for 'hourly' the time is `HOUR_IN_SECONDS` (60 * 60 or 3600). For 'monthly',
- * the value would be `MONTH_IN_SECONDS` (30 * 24 * 60 * 60 or 2592000).
+ * So for 'hourly' the time is `HOUR_IN_SECONDS` (`60 * 60` or `3600`). For 'monthly',
+ * the value would be `MONTH_IN_SECONDS` (`30 * 24 * 60 * 60` or `2592000`).
*
* The 'display' is the description. For the 'monthly' key, the 'display'
* would be `__( 'Once Monthly' )`.
*
- * For your plugin, you will be passed an array. You can easily add your
- * schedule by doing the following.
+ * For your plugin, you will be passed an array. You can add your
+ * schedule by doing the following:
*
* // Filter parameter variable name is 'array'.
* $array['monthly'] = array(
diff --git a/wp-includes/css/admin-bar-rtl.css b/wp-includes/css/admin-bar-rtl.css
index 6a932f8..4257cdb 100644
--- a/wp-includes/css/admin-bar-rtl.css
+++ b/wp-includes/css/admin-bar-rtl.css
@@ -129,10 +129,6 @@ html:lang(he-il) .rtl #wpadminbar * {
outline: none;
}
-#wpadminbar .quicklinks .ab-top-secondary > li {
- float: left;
-}
-
#wpadminbar .quicklinks a,
#wpadminbar .quicklinks .ab-empty-item,
#wpadminbar .shortlink-input {
@@ -706,7 +702,6 @@ html:lang(he-il) .rtl #wpadminbar * {
#wpadminbar .screen-reader-text span {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
- -webkit-clip-path: inset(50%);
clip-path: inset(50%);
height: 1px;
margin: -1px;
@@ -800,7 +795,6 @@ html:lang(he-il) .rtl #wpadminbar * {
#wpadminbar .ab-label {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
- -webkit-clip-path: inset(50%);
clip-path: inset(50%);
height: 1px;
margin: -1px;
@@ -1039,10 +1033,6 @@ html:lang(he-il) .rtl #wpadminbar * {
position: static;
}
- #wpadminbar #wp-admin-bar-my-account {
- float: left;
- }
-
.network-admin #wpadminbar ul#wp-admin-bar-top-secondary > li#wp-admin-bar-my-account {
margin-left: 0;
}
diff --git a/wp-includes/css/admin-bar-rtl.min.css b/wp-includes/css/admin-bar-rtl.min.css
index 81ef8da..b1ba8a4 100644
--- a/wp-includes/css/admin-bar-rtl.min.css
+++ b/wp-includes/css/admin-bar-rtl.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-html{--wp-admin--admin-bar--height:32px;scroll-padding-top:var(--wp-admin--admin-bar--height)}#wpadminbar *{height:auto;width:auto;margin:0;padding:0;position:static;text-shadow:none;text-transform:none;letter-spacing:normal;font-size:13px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-style:normal;line-height:2.46153846;border-radius:0;box-sizing:content-box;transition:none;-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto}.rtl #wpadminbar *{font-family:Tahoma,sans-serif}html:lang(he-il) .rtl #wpadminbar *{font-family:Arial,sans-serif}#wpadminbar .ab-empty-item{cursor:default}#wpadminbar .ab-empty-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#f0f0f1}#wpadminbar #wp-admin-bar-my-sites a.ab-item,#wpadminbar #wp-admin-bar-site-name a.ab-item{white-space:nowrap}#wpadminbar ul li:after,#wpadminbar ul li:before{content:normal}#wpadminbar a,#wpadminbar a img,#wpadminbar a img:hover,#wpadminbar a:hover{border:none;text-decoration:none;background:0 0;box-shadow:none}#wpadminbar a:active,#wpadminbar a:focus,#wpadminbar div,#wpadminbar input[type=email],#wpadminbar input[type=number],#wpadminbar input[type=password],#wpadminbar input[type=search],#wpadminbar input[type=text],#wpadminbar input[type=url],#wpadminbar select,#wpadminbar textarea{box-shadow:none}#wpadminbar a:focus{outline-offset:-1px}#wpadminbar{direction:rtl;color:#c3c4c7;font-size:13px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:2.46153846;height:32px;position:fixed;top:0;right:0;width:100%;min-width:600px;z-index:99999;background:#1d2327}#wpadminbar .ab-sub-wrapper,#wpadminbar ul,#wpadminbar ul li{background:0 0;clear:none;list-style:none;margin:0;padding:0;position:relative;text-indent:0;z-index:99999}#wpadminbar ul#wp-admin-bar-root-default>li{margin-left:0}#wpadminbar .quicklinks ul{text-align:right}#wpadminbar li{float:right}#wpadminbar .ab-empty-item{outline:0}#wpadminbar .quicklinks .ab-top-secondary>li{float:left}#wpadminbar .quicklinks .ab-empty-item,#wpadminbar .quicklinks a,#wpadminbar .shortlink-input{height:32px;display:block;padding:0 10px;margin:0}#wpadminbar .quicklinks>ul>li>a{padding:0 7px 0 8px}#wpadminbar .menupop .ab-sub-wrapper,#wpadminbar .shortlink-input{margin:0;padding:0;box-shadow:0 3px 5px rgba(0,0,0,.2);background:#2c3338;display:none;position:absolute;float:none}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper{min-width:100%}#wpadminbar .ab-top-secondary .menupop .ab-sub-wrapper{left:0;right:auto}#wpadminbar .ab-submenu{padding:6px 0}#wpadminbar .selected .shortlink-input{display:block}#wpadminbar .quicklinks .menupop ul li{float:none}#wpadminbar .quicklinks .menupop ul li a strong{font-weight:600}#wpadminbar .quicklinks .menupop ul li .ab-item,#wpadminbar .quicklinks .menupop ul li a strong,#wpadminbar .quicklinks .menupop.hover ul li .ab-item,#wpadminbar .shortlink-input,#wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item{line-height:2;height:26px;white-space:nowrap;min-width:140px}#wpadminbar .shortlink-input{width:200px}#wpadminbar li.hover>.ab-sub-wrapper,#wpadminbar.nojs li:hover>.ab-sub-wrapper{display:block}#wpadminbar .menupop li.hover>.ab-sub-wrapper,#wpadminbar .menupop li:hover>.ab-sub-wrapper{margin-right:100%;margin-top:-32px}#wpadminbar .ab-top-secondary .menupop li.hover>.ab-sub-wrapper,#wpadminbar .ab-top-secondary .menupop li:hover>.ab-sub-wrapper{margin-right:0;right:inherit;left:100%}#wpadminbar .ab-top-menu>li.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{background:#2c3338;color:#72aee6}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label,#wpadminbar>#wp-toolbar li.hover span.ab-label{color:#72aee6}#wpadminbar .ab-icon,#wpadminbar .ab-item:before,#wpadminbar>#wp-toolbar>#wp-admin-bar-root-default .ab-icon,.wp-admin-bar-arrow{position:relative;float:right;font:normal 20px/1 dashicons;speak:never;padding:4px 0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none!important;margin-left:6px}#wpadminbar #adminbarsearch:before,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:before{color:#a7aaad;color:rgba(240,246,252,.6)}#wpadminbar #adminbarsearch:before,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:before{position:relative;transition:color .1s ease-in-out}#wpadminbar .ab-label{display:inline-block;height:32px}#wpadminbar .ab-submenu .ab-item{color:#c3c4c7;color:rgba(240,246,252,.7)}#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop ul li a strong,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#c3c4c7;color:rgba(240,246,252,.7)}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar .quicklinks .menupop.hover ul li div[tabindex]:focus,#wpadminbar .quicklinks .menupop.hover ul li div[tabindex]:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#72aee6}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:#c3c4c7}#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#72aee6}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item:before,#wpadminbar .menupop .menupop>.ab-item .wp-admin-bar-arrow:before{position:absolute;font:normal 17px/1 dashicons;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#wpadminbar .menupop .menupop>.ab-item{display:block;padding-left:2em}#wpadminbar .menupop .menupop>.ab-item .wp-admin-bar-arrow:before{top:1px;left:10px;padding:4px 0;content:"\f141";color:inherit}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item{padding-right:2em;padding-left:1em}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item .wp-admin-bar-arrow:before{top:1px;right:6px;content:"\f139"}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary{display:block;position:relative;left:auto;margin:0;box-shadow:none}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#3c434a}#wpadminbar .quicklinks .menupop .ab-sub-secondary>li .ab-item:focus a,#wpadminbar .quicklinks .menupop .ab-sub-secondary>li>a:hover{color:#72aee6}#wpadminbar .quicklinks a span#ab-updates{background:#f0f0f1;color:#2c3338;display:inline;padding:2px 5px;font-size:10px;font-weight:600;border-radius:10px}#wpadminbar .quicklinks a:hover span#ab-updates{background:#fff;color:#000}#wpadminbar .ab-top-secondary{float:left}#wpadminbar ul li:last-child,#wpadminbar ul li:last-child .ab-item{box-shadow:none}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#d63638}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:#d63638}#wp-admin-bar-my-account>ul{min-width:198px}#wp-admin-bar-my-account:not(.with-avatar)>.ab-item{display:inline-block}#wp-admin-bar-my-account>.ab-item:before{content:"\f110";top:2px;float:left;margin-right:6px;margin-left:0}#wp-admin-bar-my-account.with-avatar>.ab-item:before{display:none;content:none}#wp-admin-bar-my-account.with-avatar>ul{min-width:270px}#wpadminbar #wp-admin-bar-user-actions>li{margin-right:16px;margin-left:16px}#wpadminbar #wp-admin-bar-user-actions.ab-submenu{padding:6px 0 12px}#wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions>li{margin-right:88px}#wpadminbar #wp-admin-bar-user-info{margin-top:6px;margin-bottom:15px;height:auto;background:0 0}#wp-admin-bar-user-info .avatar{position:absolute;right:-72px;top:4px;width:64px;height:64px}#wpadminbar #wp-admin-bar-user-info a{background:0 0;height:auto}#wpadminbar #wp-admin-bar-user-info span{background:0 0;padding:0;height:18px}#wpadminbar #wp-admin-bar-user-info .display-name,#wpadminbar #wp-admin-bar-user-info .username{display:block}#wpadminbar #wp-admin-bar-user-info .username{color:#a7aaad;font-size:11px}#wpadminbar #wp-admin-bar-my-account.with-avatar>.ab-empty-item img,#wpadminbar #wp-admin-bar-my-account.with-avatar>a img{width:auto;height:16px;padding:0;border:1px solid #8c8f94;background:#f0f0f1;line-height:1.84615384;vertical-align:middle;margin:-4px 6px 0 0;float:none;display:inline}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon{width:15px;height:20px;margin-left:0;padding:6px 0 5px}#wpadminbar #wp-admin-bar-wp-logo>.ab-item{padding:0 7px}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon:before{content:"\f120";top:2px}#wpadminbar .quicklinks li .blavatar{display:inline-block;vertical-align:middle;font:normal 16px/1 dashicons!important;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#f0f0f1}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar{color:#72aee6}#wpadminbar .quicklinks li div.blavatar:before,#wpadminbar .quicklinks li img.blavatar{height:16px;width:16px;margin:0 -2px 2px 8px}#wpadminbar .quicklinks li div.blavatar:before{content:"\f120";display:inline-block}#wpadminbar #wp-admin-bar-appearance{margin-top:-12px}#wpadminbar #wp-admin-bar-my-sites>.ab-item:before,#wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:"\f541";top:2px}#wpadminbar #wp-admin-bar-site-editor>.ab-item:before{content:"\f100";top:2px}#wpadminbar #wp-admin-bar-customize>.ab-item:before{content:"\f540";top:2px}#wpadminbar #wp-admin-bar-edit>.ab-item:before{content:"\f464";top:2px}#wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:"\f226"}.wp-admin #wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:"\f102"}#wpadminbar #wp-admin-bar-comments .ab-icon{margin-left:6px}#wpadminbar #wp-admin-bar-comments .ab-icon:before{content:"\f101";top:3px}#wpadminbar #wp-admin-bar-comments .count-0{opacity:.5}#wpadminbar #wp-admin-bar-new-content .ab-icon:before{content:"\f132";top:4px}#wpadminbar #wp-admin-bar-updates .ab-icon:before{content:"\f463";top:2px}#wpadminbar #wp-admin-bar-updates.spin .ab-icon:before{display:inline-block;animation:rotation 2s infinite linear}@media (prefers-reduced-motion:reduce){#wpadminbar #wp-admin-bar-updates.spin .ab-icon:before{animation:none}}#wpadminbar #wp-admin-bar-search .ab-item{padding:0;background:0 0}#wpadminbar #adminbarsearch{position:relative;height:32px;padding:0 2px;z-index:1}#wpadminbar #adminbarsearch:before{position:absolute;top:6px;right:5px;z-index:20;font:normal 20px/1 dashicons!important;content:"\f179";speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input{display:inline-block;float:none;position:relative;z-index:30;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:1.84615384;text-indent:0;height:24px;width:24px;max-width:none;padding:0 24px 0 3px;margin:0;color:#c3c4c7;background-color:rgba(255,255,255,0);border:none;outline:0;cursor:pointer;box-shadow:none;box-sizing:border-box;transition-duration:.4s;transition-property:width,background;transition-timing-function:ease}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{z-index:10;color:#000;width:200px;background-color:rgba(255,255,255,.9);cursor:text;border:0}#wpadminbar #adminbarsearch .adminbar-button{display:none}.customize-support #wpadminbar .hide-if-customize,.customize-support .hide-if-customize,.customize-support .wp-core-ui .hide-if-customize,.customize-support.wp-core-ui .hide-if-customize,.no-customize-support #wpadminbar .hide-if-no-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .wp-core-ui .hide-if-no-customize,.no-customize-support.wp-core-ui .hide-if-no-customize{display:none}#wpadminbar .screen-reader-text,#wpadminbar .screen-reader-text span{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}#wpadminbar .screen-reader-shortcut{position:absolute;top:-1000em;right:6px;height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f0f0f1;color:#2271b1;z-index:100000;line-height:normal;text-decoration:none}#wpadminbar .screen-reader-shortcut:focus{top:7px;background:#f0f0f1;box-shadow:0 0 2px 2px rgba(0,0,0,.6)}@media screen and (max-width:782px){html{--wp-admin--admin-bar--height:46px}html #wpadminbar{height:46px;min-width:240px}#wpadminbar *{font-size:14px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:2.28571428}#wpadminbar .quicklinks .ab-empty-item,#wpadminbar .quicklinks>ul>li>a{padding:0;height:46px;line-height:3.28571428;width:auto}#wpadminbar .ab-icon{font:40px/1 dashicons!important;margin:0;padding:0;width:52px;height:46px;text-align:center}#wpadminbar .ab-icon:before{text-align:center}#wpadminbar .ab-submenu{padding:0}#wpadminbar #wp-admin-bar-my-account a.ab-item,#wpadminbar #wp-admin-bar-my-sites a.ab-item,#wpadminbar #wp-admin-bar-site-name a.ab-item{text-overflow:clip}#wpadminbar .quicklinks .menupop ul li .ab-item,#wpadminbar .quicklinks .menupop ul li a strong,#wpadminbar .quicklinks .menupop.hover ul li .ab-item,#wpadminbar .shortlink-input,#wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item{line-height:1.6}#wpadminbar .ab-label{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}#wpadminbar .menupop li.hover>.ab-sub-wrapper,#wpadminbar .menupop li:hover>.ab-sub-wrapper{margin-top:-46px}#wpadminbar .ab-top-menu .menupop .ab-sub-wrapper .menupop>.ab-item{padding-left:30px}#wpadminbar .menupop .menupop>.ab-item:before{top:10px;left:6px}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper .ab-item{font-size:16px;padding:8px 16px}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper a:empty{display:none}#wpadminbar #wp-admin-bar-wp-logo>.ab-item{padding:0}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon{padding:0;width:52px;height:46px;text-align:center;vertical-align:top}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon:before{font:28px/1 dashicons!important;top:-3px}#wpadminbar .ab-icon,#wpadminbar .ab-item:before{padding:0}#wpadminbar #wp-admin-bar-customize>.ab-item,#wpadminbar #wp-admin-bar-edit>.ab-item,#wpadminbar #wp-admin-bar-my-account>.ab-item,#wpadminbar #wp-admin-bar-my-sites>.ab-item,#wpadminbar #wp-admin-bar-site-editor>.ab-item,#wpadminbar #wp-admin-bar-site-name>.ab-item{text-indent:100%;white-space:nowrap;overflow:hidden;width:52px;padding:0;color:#a7aaad;position:relative}#wpadminbar .ab-icon,#wpadminbar .ab-item:before,#wpadminbar>#wp-toolbar>#wp-admin-bar-root-default .ab-icon{padding:0;margin-left:0}#wpadminbar #wp-admin-bar-customize>.ab-item:before,#wpadminbar #wp-admin-bar-edit>.ab-item:before,#wpadminbar #wp-admin-bar-my-account>.ab-item:before,#wpadminbar #wp-admin-bar-my-sites>.ab-item:before,#wpadminbar #wp-admin-bar-site-editor>.ab-item:before,#wpadminbar #wp-admin-bar-site-name>.ab-item:before{display:block;text-indent:0;font:normal 32px/1 dashicons;speak:never;top:7px;width:52px;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#wpadminbar #wp-admin-bar-appearance{margin-top:0}#wpadminbar .quicklinks li .blavatar:before{display:none}#wpadminbar #wp-admin-bar-search{display:none}#wpadminbar #wp-admin-bar-new-content .ab-icon:before{top:0;line-height:1.33333333;height:46px!important;text-align:center;width:52px;display:block}#wpadminbar #wp-admin-bar-updates{text-align:center}#wpadminbar #wp-admin-bar-updates .ab-icon:before{top:3px}#wpadminbar #wp-admin-bar-comments .ab-icon{margin:0}#wpadminbar #wp-admin-bar-comments .ab-icon:before{display:block;font-size:34px;height:46px;line-height:1.38235294;top:0}#wpadminbar #wp-admin-bar-my-account>a{position:relative;white-space:nowrap;text-indent:150%;width:28px;padding:0 10px;overflow:hidden}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{position:absolute;top:13px;left:10px;width:26px;height:26px}#wpadminbar #wp-admin-bar-user-actions.ab-submenu{padding:0}#wpadminbar #wp-admin-bar-user-actions.ab-submenu img.avatar{display:none}#wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions>li{margin:0}#wpadminbar #wp-admin-bar-user-info .display-name{height:auto;font-size:16px;line-height:1.5;color:#f0f0f1}#wpadminbar #wp-admin-bar-user-info a{padding-top:4px}#wpadminbar #wp-admin-bar-user-info .username{line-height:.8!important;margin-bottom:-2px}#wp-toolbar>ul>li{display:none}#wpadminbar li#wp-admin-bar-comments,#wpadminbar li#wp-admin-bar-customize,#wpadminbar li#wp-admin-bar-edit,#wpadminbar li#wp-admin-bar-menu-toggle,#wpadminbar li#wp-admin-bar-my-account,#wpadminbar li#wp-admin-bar-my-sites,#wpadminbar li#wp-admin-bar-new-content,#wpadminbar li#wp-admin-bar-site-editor,#wpadminbar li#wp-admin-bar-site-name,#wpadminbar li#wp-admin-bar-updates,#wpadminbar li#wp-admin-bar-wp-logo{display:block}#wpadminbar li.hover ul li,#wpadminbar li:hover ul li,#wpadminbar li:hover ul li:hover ul li{display:list-item}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper{min-width:-moz-fit-content;min-width:fit-content}#wpadminbar ul#wp-admin-bar-root-default>li{margin-left:0}#wpadminbar #wp-admin-bar-comments,#wpadminbar #wp-admin-bar-edit,#wpadminbar #wp-admin-bar-my-account,#wpadminbar #wp-admin-bar-my-sites,#wpadminbar #wp-admin-bar-new-content,#wpadminbar #wp-admin-bar-site-name,#wpadminbar #wp-admin-bar-updates,#wpadminbar #wp-admin-bar-wp-logo,#wpadminbar .ab-top-menu,#wpadminbar .ab-top-secondary{position:static}#wpadminbar #wp-admin-bar-my-account{float:left}.network-admin #wpadminbar ul#wp-admin-bar-top-secondary>li#wp-admin-bar-my-account{margin-left:0}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item:before{top:10px;right:0}}@media screen and (max-width:600px){#wpadminbar{position:absolute}#wp-responsive-overlay{position:fixed;top:0;right:0;width:100%;height:100%;z-index:400}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper{width:100%;right:0}#wpadminbar .menupop .menupop>.ab-item:before{display:none}#wpadminbar #wp-admin-bar-wp-logo.menupop .ab-sub-wrapper{margin-right:0}#wpadminbar .ab-top-menu>.menupop li>.ab-sub-wrapper{margin:0;width:100%;top:auto;right:auto;position:relative}#wpadminbar .ab-top-menu>.menupop li>.ab-sub-wrapper .ab-item{font-size:16px;padding:6px 30px 19px 15px}#wpadminbar li:hover ul li ul li{display:list-item}#wpadminbar li#wp-admin-bar-updates,#wpadminbar li#wp-admin-bar-wp-logo{display:none}#wpadminbar .ab-top-menu>.menupop li>.ab-sub-wrapper{position:static;box-shadow:none}}@media screen and (max-width:400px){#wpadminbar li#wp-admin-bar-comments{display:none}} \ No newline at end of file
+html{--wp-admin--admin-bar--height:32px;scroll-padding-top:var(--wp-admin--admin-bar--height)}#wpadminbar *{height:auto;width:auto;margin:0;padding:0;position:static;text-shadow:none;text-transform:none;letter-spacing:normal;font-size:13px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-style:normal;line-height:2.46153846;border-radius:0;box-sizing:content-box;transition:none;-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto}.rtl #wpadminbar *{font-family:Tahoma,sans-serif}html:lang(he-il) .rtl #wpadminbar *{font-family:Arial,sans-serif}#wpadminbar .ab-empty-item{cursor:default}#wpadminbar .ab-empty-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#f0f0f1}#wpadminbar #wp-admin-bar-my-sites a.ab-item,#wpadminbar #wp-admin-bar-site-name a.ab-item{white-space:nowrap}#wpadminbar ul li:after,#wpadminbar ul li:before{content:normal}#wpadminbar a,#wpadminbar a img,#wpadminbar a img:hover,#wpadminbar a:hover{border:none;text-decoration:none;background:0 0;box-shadow:none}#wpadminbar a:active,#wpadminbar a:focus,#wpadminbar div,#wpadminbar input[type=email],#wpadminbar input[type=number],#wpadminbar input[type=password],#wpadminbar input[type=search],#wpadminbar input[type=text],#wpadminbar input[type=url],#wpadminbar select,#wpadminbar textarea{box-shadow:none}#wpadminbar a:focus{outline-offset:-1px}#wpadminbar{direction:rtl;color:#c3c4c7;font-size:13px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:2.46153846;height:32px;position:fixed;top:0;right:0;width:100%;min-width:600px;z-index:99999;background:#1d2327}#wpadminbar .ab-sub-wrapper,#wpadminbar ul,#wpadminbar ul li{background:0 0;clear:none;list-style:none;margin:0;padding:0;position:relative;text-indent:0;z-index:99999}#wpadminbar ul#wp-admin-bar-root-default>li{margin-left:0}#wpadminbar .quicklinks ul{text-align:right}#wpadminbar li{float:right}#wpadminbar .ab-empty-item{outline:0}#wpadminbar .quicklinks .ab-empty-item,#wpadminbar .quicklinks a,#wpadminbar .shortlink-input{height:32px;display:block;padding:0 10px;margin:0}#wpadminbar .quicklinks>ul>li>a{padding:0 7px 0 8px}#wpadminbar .menupop .ab-sub-wrapper,#wpadminbar .shortlink-input{margin:0;padding:0;box-shadow:0 3px 5px rgba(0,0,0,.2);background:#2c3338;display:none;position:absolute;float:none}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper{min-width:100%}#wpadminbar .ab-top-secondary .menupop .ab-sub-wrapper{left:0;right:auto}#wpadminbar .ab-submenu{padding:6px 0}#wpadminbar .selected .shortlink-input{display:block}#wpadminbar .quicklinks .menupop ul li{float:none}#wpadminbar .quicklinks .menupop ul li a strong{font-weight:600}#wpadminbar .quicklinks .menupop ul li .ab-item,#wpadminbar .quicklinks .menupop ul li a strong,#wpadminbar .quicklinks .menupop.hover ul li .ab-item,#wpadminbar .shortlink-input,#wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item{line-height:2;height:26px;white-space:nowrap;min-width:140px}#wpadminbar .shortlink-input{width:200px}#wpadminbar li.hover>.ab-sub-wrapper,#wpadminbar.nojs li:hover>.ab-sub-wrapper{display:block}#wpadminbar .menupop li.hover>.ab-sub-wrapper,#wpadminbar .menupop li:hover>.ab-sub-wrapper{margin-right:100%;margin-top:-32px}#wpadminbar .ab-top-secondary .menupop li.hover>.ab-sub-wrapper,#wpadminbar .ab-top-secondary .menupop li:hover>.ab-sub-wrapper{margin-right:0;right:inherit;left:100%}#wpadminbar .ab-top-menu>li.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{background:#2c3338;color:#72aee6}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label,#wpadminbar>#wp-toolbar li.hover span.ab-label{color:#72aee6}#wpadminbar .ab-icon,#wpadminbar .ab-item:before,#wpadminbar>#wp-toolbar>#wp-admin-bar-root-default .ab-icon,.wp-admin-bar-arrow{position:relative;float:right;font:normal 20px/1 dashicons;speak:never;padding:4px 0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none!important;margin-left:6px}#wpadminbar #adminbarsearch:before,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:before{color:#a7aaad;color:rgba(240,246,252,.6)}#wpadminbar #adminbarsearch:before,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:before{position:relative;transition:color .1s ease-in-out}#wpadminbar .ab-label{display:inline-block;height:32px}#wpadminbar .ab-submenu .ab-item{color:#c3c4c7;color:rgba(240,246,252,.7)}#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop ul li a strong,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#c3c4c7;color:rgba(240,246,252,.7)}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar .quicklinks .menupop.hover ul li div[tabindex]:focus,#wpadminbar .quicklinks .menupop.hover ul li div[tabindex]:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#72aee6}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:#c3c4c7}#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#72aee6}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item:before,#wpadminbar .menupop .menupop>.ab-item .wp-admin-bar-arrow:before{position:absolute;font:normal 17px/1 dashicons;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#wpadminbar .menupop .menupop>.ab-item{display:block;padding-left:2em}#wpadminbar .menupop .menupop>.ab-item .wp-admin-bar-arrow:before{top:1px;left:10px;padding:4px 0;content:"\f141";color:inherit}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item{padding-right:2em;padding-left:1em}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item .wp-admin-bar-arrow:before{top:1px;right:6px;content:"\f139"}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary{display:block;position:relative;left:auto;margin:0;box-shadow:none}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#3c434a}#wpadminbar .quicklinks .menupop .ab-sub-secondary>li .ab-item:focus a,#wpadminbar .quicklinks .menupop .ab-sub-secondary>li>a:hover{color:#72aee6}#wpadminbar .quicklinks a span#ab-updates{background:#f0f0f1;color:#2c3338;display:inline;padding:2px 5px;font-size:10px;font-weight:600;border-radius:10px}#wpadminbar .quicklinks a:hover span#ab-updates{background:#fff;color:#000}#wpadminbar .ab-top-secondary{float:left}#wpadminbar ul li:last-child,#wpadminbar ul li:last-child .ab-item{box-shadow:none}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#d63638}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:#d63638}#wp-admin-bar-my-account>ul{min-width:198px}#wp-admin-bar-my-account:not(.with-avatar)>.ab-item{display:inline-block}#wp-admin-bar-my-account>.ab-item:before{content:"\f110";top:2px;float:left;margin-right:6px;margin-left:0}#wp-admin-bar-my-account.with-avatar>.ab-item:before{display:none;content:none}#wp-admin-bar-my-account.with-avatar>ul{min-width:270px}#wpadminbar #wp-admin-bar-user-actions>li{margin-right:16px;margin-left:16px}#wpadminbar #wp-admin-bar-user-actions.ab-submenu{padding:6px 0 12px}#wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions>li{margin-right:88px}#wpadminbar #wp-admin-bar-user-info{margin-top:6px;margin-bottom:15px;height:auto;background:0 0}#wp-admin-bar-user-info .avatar{position:absolute;right:-72px;top:4px;width:64px;height:64px}#wpadminbar #wp-admin-bar-user-info a{background:0 0;height:auto}#wpadminbar #wp-admin-bar-user-info span{background:0 0;padding:0;height:18px}#wpadminbar #wp-admin-bar-user-info .display-name,#wpadminbar #wp-admin-bar-user-info .username{display:block}#wpadminbar #wp-admin-bar-user-info .username{color:#a7aaad;font-size:11px}#wpadminbar #wp-admin-bar-my-account.with-avatar>.ab-empty-item img,#wpadminbar #wp-admin-bar-my-account.with-avatar>a img{width:auto;height:16px;padding:0;border:1px solid #8c8f94;background:#f0f0f1;line-height:1.84615384;vertical-align:middle;margin:-4px 6px 0 0;float:none;display:inline}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon{width:15px;height:20px;margin-left:0;padding:6px 0 5px}#wpadminbar #wp-admin-bar-wp-logo>.ab-item{padding:0 7px}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon:before{content:"\f120";top:2px}#wpadminbar .quicklinks li .blavatar{display:inline-block;vertical-align:middle;font:normal 16px/1 dashicons!important;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#f0f0f1}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar{color:#72aee6}#wpadminbar .quicklinks li div.blavatar:before,#wpadminbar .quicklinks li img.blavatar{height:16px;width:16px;margin:0 -2px 2px 8px}#wpadminbar .quicklinks li div.blavatar:before{content:"\f120";display:inline-block}#wpadminbar #wp-admin-bar-appearance{margin-top:-12px}#wpadminbar #wp-admin-bar-my-sites>.ab-item:before,#wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:"\f541";top:2px}#wpadminbar #wp-admin-bar-site-editor>.ab-item:before{content:"\f100";top:2px}#wpadminbar #wp-admin-bar-customize>.ab-item:before{content:"\f540";top:2px}#wpadminbar #wp-admin-bar-edit>.ab-item:before{content:"\f464";top:2px}#wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:"\f226"}.wp-admin #wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:"\f102"}#wpadminbar #wp-admin-bar-comments .ab-icon{margin-left:6px}#wpadminbar #wp-admin-bar-comments .ab-icon:before{content:"\f101";top:3px}#wpadminbar #wp-admin-bar-comments .count-0{opacity:.5}#wpadminbar #wp-admin-bar-new-content .ab-icon:before{content:"\f132";top:4px}#wpadminbar #wp-admin-bar-updates .ab-icon:before{content:"\f463";top:2px}#wpadminbar #wp-admin-bar-updates.spin .ab-icon:before{display:inline-block;animation:rotation 2s infinite linear}@media (prefers-reduced-motion:reduce){#wpadminbar #wp-admin-bar-updates.spin .ab-icon:before{animation:none}}#wpadminbar #wp-admin-bar-search .ab-item{padding:0;background:0 0}#wpadminbar #adminbarsearch{position:relative;height:32px;padding:0 2px;z-index:1}#wpadminbar #adminbarsearch:before{position:absolute;top:6px;right:5px;z-index:20;font:normal 20px/1 dashicons!important;content:"\f179";speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input{display:inline-block;float:none;position:relative;z-index:30;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:1.84615384;text-indent:0;height:24px;width:24px;max-width:none;padding:0 24px 0 3px;margin:0;color:#c3c4c7;background-color:rgba(255,255,255,0);border:none;outline:0;cursor:pointer;box-shadow:none;box-sizing:border-box;transition-duration:.4s;transition-property:width,background;transition-timing-function:ease}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{z-index:10;color:#000;width:200px;background-color:rgba(255,255,255,.9);cursor:text;border:0}#wpadminbar #adminbarsearch .adminbar-button{display:none}.customize-support #wpadminbar .hide-if-customize,.customize-support .hide-if-customize,.customize-support .wp-core-ui .hide-if-customize,.customize-support.wp-core-ui .hide-if-customize,.no-customize-support #wpadminbar .hide-if-no-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .wp-core-ui .hide-if-no-customize,.no-customize-support.wp-core-ui .hide-if-no-customize{display:none}#wpadminbar .screen-reader-text,#wpadminbar .screen-reader-text span{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}#wpadminbar .screen-reader-shortcut{position:absolute;top:-1000em;right:6px;height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f0f0f1;color:#2271b1;z-index:100000;line-height:normal;text-decoration:none}#wpadminbar .screen-reader-shortcut:focus{top:7px;background:#f0f0f1;box-shadow:0 0 2px 2px rgba(0,0,0,.6)}@media screen and (max-width:782px){html{--wp-admin--admin-bar--height:46px}html #wpadminbar{height:46px;min-width:240px}#wpadminbar *{font-size:14px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:2.28571428}#wpadminbar .quicklinks .ab-empty-item,#wpadminbar .quicklinks>ul>li>a{padding:0;height:46px;line-height:3.28571428;width:auto}#wpadminbar .ab-icon{font:40px/1 dashicons!important;margin:0;padding:0;width:52px;height:46px;text-align:center}#wpadminbar .ab-icon:before{text-align:center}#wpadminbar .ab-submenu{padding:0}#wpadminbar #wp-admin-bar-my-account a.ab-item,#wpadminbar #wp-admin-bar-my-sites a.ab-item,#wpadminbar #wp-admin-bar-site-name a.ab-item{text-overflow:clip}#wpadminbar .quicklinks .menupop ul li .ab-item,#wpadminbar .quicklinks .menupop ul li a strong,#wpadminbar .quicklinks .menupop.hover ul li .ab-item,#wpadminbar .shortlink-input,#wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item{line-height:1.6}#wpadminbar .ab-label{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}#wpadminbar .menupop li.hover>.ab-sub-wrapper,#wpadminbar .menupop li:hover>.ab-sub-wrapper{margin-top:-46px}#wpadminbar .ab-top-menu .menupop .ab-sub-wrapper .menupop>.ab-item{padding-left:30px}#wpadminbar .menupop .menupop>.ab-item:before{top:10px;left:6px}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper .ab-item{font-size:16px;padding:8px 16px}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper a:empty{display:none}#wpadminbar #wp-admin-bar-wp-logo>.ab-item{padding:0}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon{padding:0;width:52px;height:46px;text-align:center;vertical-align:top}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon:before{font:28px/1 dashicons!important;top:-3px}#wpadminbar .ab-icon,#wpadminbar .ab-item:before{padding:0}#wpadminbar #wp-admin-bar-customize>.ab-item,#wpadminbar #wp-admin-bar-edit>.ab-item,#wpadminbar #wp-admin-bar-my-account>.ab-item,#wpadminbar #wp-admin-bar-my-sites>.ab-item,#wpadminbar #wp-admin-bar-site-editor>.ab-item,#wpadminbar #wp-admin-bar-site-name>.ab-item{text-indent:100%;white-space:nowrap;overflow:hidden;width:52px;padding:0;color:#a7aaad;position:relative}#wpadminbar .ab-icon,#wpadminbar .ab-item:before,#wpadminbar>#wp-toolbar>#wp-admin-bar-root-default .ab-icon{padding:0;margin-left:0}#wpadminbar #wp-admin-bar-customize>.ab-item:before,#wpadminbar #wp-admin-bar-edit>.ab-item:before,#wpadminbar #wp-admin-bar-my-account>.ab-item:before,#wpadminbar #wp-admin-bar-my-sites>.ab-item:before,#wpadminbar #wp-admin-bar-site-editor>.ab-item:before,#wpadminbar #wp-admin-bar-site-name>.ab-item:before{display:block;text-indent:0;font:normal 32px/1 dashicons;speak:never;top:7px;width:52px;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#wpadminbar #wp-admin-bar-appearance{margin-top:0}#wpadminbar .quicklinks li .blavatar:before{display:none}#wpadminbar #wp-admin-bar-search{display:none}#wpadminbar #wp-admin-bar-new-content .ab-icon:before{top:0;line-height:1.33333333;height:46px!important;text-align:center;width:52px;display:block}#wpadminbar #wp-admin-bar-updates{text-align:center}#wpadminbar #wp-admin-bar-updates .ab-icon:before{top:3px}#wpadminbar #wp-admin-bar-comments .ab-icon{margin:0}#wpadminbar #wp-admin-bar-comments .ab-icon:before{display:block;font-size:34px;height:46px;line-height:1.38235294;top:0}#wpadminbar #wp-admin-bar-my-account>a{position:relative;white-space:nowrap;text-indent:150%;width:28px;padding:0 10px;overflow:hidden}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{position:absolute;top:13px;left:10px;width:26px;height:26px}#wpadminbar #wp-admin-bar-user-actions.ab-submenu{padding:0}#wpadminbar #wp-admin-bar-user-actions.ab-submenu img.avatar{display:none}#wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions>li{margin:0}#wpadminbar #wp-admin-bar-user-info .display-name{height:auto;font-size:16px;line-height:1.5;color:#f0f0f1}#wpadminbar #wp-admin-bar-user-info a{padding-top:4px}#wpadminbar #wp-admin-bar-user-info .username{line-height:.8!important;margin-bottom:-2px}#wp-toolbar>ul>li{display:none}#wpadminbar li#wp-admin-bar-comments,#wpadminbar li#wp-admin-bar-customize,#wpadminbar li#wp-admin-bar-edit,#wpadminbar li#wp-admin-bar-menu-toggle,#wpadminbar li#wp-admin-bar-my-account,#wpadminbar li#wp-admin-bar-my-sites,#wpadminbar li#wp-admin-bar-new-content,#wpadminbar li#wp-admin-bar-site-editor,#wpadminbar li#wp-admin-bar-site-name,#wpadminbar li#wp-admin-bar-updates,#wpadminbar li#wp-admin-bar-wp-logo{display:block}#wpadminbar li.hover ul li,#wpadminbar li:hover ul li,#wpadminbar li:hover ul li:hover ul li{display:list-item}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper{min-width:-moz-fit-content;min-width:fit-content}#wpadminbar ul#wp-admin-bar-root-default>li{margin-left:0}#wpadminbar #wp-admin-bar-comments,#wpadminbar #wp-admin-bar-edit,#wpadminbar #wp-admin-bar-my-account,#wpadminbar #wp-admin-bar-my-sites,#wpadminbar #wp-admin-bar-new-content,#wpadminbar #wp-admin-bar-site-name,#wpadminbar #wp-admin-bar-updates,#wpadminbar #wp-admin-bar-wp-logo,#wpadminbar .ab-top-menu,#wpadminbar .ab-top-secondary{position:static}.network-admin #wpadminbar ul#wp-admin-bar-top-secondary>li#wp-admin-bar-my-account{margin-left:0}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item:before{top:10px;right:0}}@media screen and (max-width:600px){#wpadminbar{position:absolute}#wp-responsive-overlay{position:fixed;top:0;right:0;width:100%;height:100%;z-index:400}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper{width:100%;right:0}#wpadminbar .menupop .menupop>.ab-item:before{display:none}#wpadminbar #wp-admin-bar-wp-logo.menupop .ab-sub-wrapper{margin-right:0}#wpadminbar .ab-top-menu>.menupop li>.ab-sub-wrapper{margin:0;width:100%;top:auto;right:auto;position:relative}#wpadminbar .ab-top-menu>.menupop li>.ab-sub-wrapper .ab-item{font-size:16px;padding:6px 30px 19px 15px}#wpadminbar li:hover ul li ul li{display:list-item}#wpadminbar li#wp-admin-bar-updates,#wpadminbar li#wp-admin-bar-wp-logo{display:none}#wpadminbar .ab-top-menu>.menupop li>.ab-sub-wrapper{position:static;box-shadow:none}}@media screen and (max-width:400px){#wpadminbar li#wp-admin-bar-comments{display:none}} \ No newline at end of file
diff --git a/wp-includes/css/admin-bar.css b/wp-includes/css/admin-bar.css
index 8f73274..c4e8ba3 100644
--- a/wp-includes/css/admin-bar.css
+++ b/wp-includes/css/admin-bar.css
@@ -128,10 +128,6 @@ html:lang(he-il) .rtl #wpadminbar * {
outline: none;
}
-#wpadminbar .quicklinks .ab-top-secondary > li {
- float: right;
-}
-
#wpadminbar .quicklinks a,
#wpadminbar .quicklinks .ab-empty-item,
#wpadminbar .shortlink-input {
@@ -705,7 +701,6 @@ html:lang(he-il) .rtl #wpadminbar * {
#wpadminbar .screen-reader-text span {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
- -webkit-clip-path: inset(50%);
clip-path: inset(50%);
height: 1px;
margin: -1px;
@@ -799,7 +794,6 @@ html:lang(he-il) .rtl #wpadminbar * {
#wpadminbar .ab-label {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
- -webkit-clip-path: inset(50%);
clip-path: inset(50%);
height: 1px;
margin: -1px;
@@ -1038,10 +1032,6 @@ html:lang(he-il) .rtl #wpadminbar * {
position: static;
}
- #wpadminbar #wp-admin-bar-my-account {
- float: right;
- }
-
.network-admin #wpadminbar ul#wp-admin-bar-top-secondary > li#wp-admin-bar-my-account {
margin-right: 0;
}
diff --git a/wp-includes/css/admin-bar.min.css b/wp-includes/css/admin-bar.min.css
index 86b1149..c7487e6 100644
--- a/wp-includes/css/admin-bar.min.css
+++ b/wp-includes/css/admin-bar.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-html{--wp-admin--admin-bar--height:32px;scroll-padding-top:var(--wp-admin--admin-bar--height)}#wpadminbar *{height:auto;width:auto;margin:0;padding:0;position:static;text-shadow:none;text-transform:none;letter-spacing:normal;font-size:13px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-style:normal;line-height:2.46153846;border-radius:0;box-sizing:content-box;transition:none;-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto}.rtl #wpadminbar *{font-family:Tahoma,sans-serif}html:lang(he-il) .rtl #wpadminbar *{font-family:Arial,sans-serif}#wpadminbar .ab-empty-item{cursor:default}#wpadminbar .ab-empty-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#f0f0f1}#wpadminbar #wp-admin-bar-my-sites a.ab-item,#wpadminbar #wp-admin-bar-site-name a.ab-item{white-space:nowrap}#wpadminbar ul li:after,#wpadminbar ul li:before{content:normal}#wpadminbar a,#wpadminbar a img,#wpadminbar a img:hover,#wpadminbar a:hover{border:none;text-decoration:none;background:0 0;box-shadow:none}#wpadminbar a:active,#wpadminbar a:focus,#wpadminbar div,#wpadminbar input[type=email],#wpadminbar input[type=number],#wpadminbar input[type=password],#wpadminbar input[type=search],#wpadminbar input[type=text],#wpadminbar input[type=url],#wpadminbar select,#wpadminbar textarea{box-shadow:none}#wpadminbar a:focus{outline-offset:-1px}#wpadminbar{direction:ltr;color:#c3c4c7;font-size:13px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:2.46153846;height:32px;position:fixed;top:0;left:0;width:100%;min-width:600px;z-index:99999;background:#1d2327}#wpadminbar .ab-sub-wrapper,#wpadminbar ul,#wpadminbar ul li{background:0 0;clear:none;list-style:none;margin:0;padding:0;position:relative;text-indent:0;z-index:99999}#wpadminbar ul#wp-admin-bar-root-default>li{margin-right:0}#wpadminbar .quicklinks ul{text-align:left}#wpadminbar li{float:left}#wpadminbar .ab-empty-item{outline:0}#wpadminbar .quicklinks .ab-top-secondary>li{float:right}#wpadminbar .quicklinks .ab-empty-item,#wpadminbar .quicklinks a,#wpadminbar .shortlink-input{height:32px;display:block;padding:0 10px;margin:0}#wpadminbar .quicklinks>ul>li>a{padding:0 8px 0 7px}#wpadminbar .menupop .ab-sub-wrapper,#wpadminbar .shortlink-input{margin:0;padding:0;box-shadow:0 3px 5px rgba(0,0,0,.2);background:#2c3338;display:none;position:absolute;float:none}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper{min-width:100%}#wpadminbar .ab-top-secondary .menupop .ab-sub-wrapper{right:0;left:auto}#wpadminbar .ab-submenu{padding:6px 0}#wpadminbar .selected .shortlink-input{display:block}#wpadminbar .quicklinks .menupop ul li{float:none}#wpadminbar .quicklinks .menupop ul li a strong{font-weight:600}#wpadminbar .quicklinks .menupop ul li .ab-item,#wpadminbar .quicklinks .menupop ul li a strong,#wpadminbar .quicklinks .menupop.hover ul li .ab-item,#wpadminbar .shortlink-input,#wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item{line-height:2;height:26px;white-space:nowrap;min-width:140px}#wpadminbar .shortlink-input{width:200px}#wpadminbar li.hover>.ab-sub-wrapper,#wpadminbar.nojs li:hover>.ab-sub-wrapper{display:block}#wpadminbar .menupop li.hover>.ab-sub-wrapper,#wpadminbar .menupop li:hover>.ab-sub-wrapper{margin-left:100%;margin-top:-32px}#wpadminbar .ab-top-secondary .menupop li.hover>.ab-sub-wrapper,#wpadminbar .ab-top-secondary .menupop li:hover>.ab-sub-wrapper{margin-left:0;left:inherit;right:100%}#wpadminbar .ab-top-menu>li.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{background:#2c3338;color:#72aee6}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label,#wpadminbar>#wp-toolbar li.hover span.ab-label{color:#72aee6}#wpadminbar .ab-icon,#wpadminbar .ab-item:before,#wpadminbar>#wp-toolbar>#wp-admin-bar-root-default .ab-icon,.wp-admin-bar-arrow{position:relative;float:left;font:normal 20px/1 dashicons;speak:never;padding:4px 0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none!important;margin-right:6px}#wpadminbar #adminbarsearch:before,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:before{color:#a7aaad;color:rgba(240,246,252,.6)}#wpadminbar #adminbarsearch:before,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:before{position:relative;transition:color .1s ease-in-out}#wpadminbar .ab-label{display:inline-block;height:32px}#wpadminbar .ab-submenu .ab-item{color:#c3c4c7;color:rgba(240,246,252,.7)}#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop ul li a strong,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#c3c4c7;color:rgba(240,246,252,.7)}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar .quicklinks .menupop.hover ul li div[tabindex]:focus,#wpadminbar .quicklinks .menupop.hover ul li div[tabindex]:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#72aee6}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:#c3c4c7}#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#72aee6}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item:before,#wpadminbar .menupop .menupop>.ab-item .wp-admin-bar-arrow:before{position:absolute;font:normal 17px/1 dashicons;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#wpadminbar .menupop .menupop>.ab-item{display:block;padding-right:2em}#wpadminbar .menupop .menupop>.ab-item .wp-admin-bar-arrow:before{top:1px;right:10px;padding:4px 0;content:"\f139";color:inherit}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item{padding-left:2em;padding-right:1em}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item .wp-admin-bar-arrow:before{top:1px;left:6px;content:"\f141"}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary{display:block;position:relative;right:auto;margin:0;box-shadow:none}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#3c434a}#wpadminbar .quicklinks .menupop .ab-sub-secondary>li .ab-item:focus a,#wpadminbar .quicklinks .menupop .ab-sub-secondary>li>a:hover{color:#72aee6}#wpadminbar .quicklinks a span#ab-updates{background:#f0f0f1;color:#2c3338;display:inline;padding:2px 5px;font-size:10px;font-weight:600;border-radius:10px}#wpadminbar .quicklinks a:hover span#ab-updates{background:#fff;color:#000}#wpadminbar .ab-top-secondary{float:right}#wpadminbar ul li:last-child,#wpadminbar ul li:last-child .ab-item{box-shadow:none}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#d63638}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:#d63638}#wp-admin-bar-my-account>ul{min-width:198px}#wp-admin-bar-my-account:not(.with-avatar)>.ab-item{display:inline-block}#wp-admin-bar-my-account>.ab-item:before{content:"\f110";top:2px;float:right;margin-left:6px;margin-right:0}#wp-admin-bar-my-account.with-avatar>.ab-item:before{display:none;content:none}#wp-admin-bar-my-account.with-avatar>ul{min-width:270px}#wpadminbar #wp-admin-bar-user-actions>li{margin-left:16px;margin-right:16px}#wpadminbar #wp-admin-bar-user-actions.ab-submenu{padding:6px 0 12px}#wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions>li{margin-left:88px}#wpadminbar #wp-admin-bar-user-info{margin-top:6px;margin-bottom:15px;height:auto;background:0 0}#wp-admin-bar-user-info .avatar{position:absolute;left:-72px;top:4px;width:64px;height:64px}#wpadminbar #wp-admin-bar-user-info a{background:0 0;height:auto}#wpadminbar #wp-admin-bar-user-info span{background:0 0;padding:0;height:18px}#wpadminbar #wp-admin-bar-user-info .display-name,#wpadminbar #wp-admin-bar-user-info .username{display:block}#wpadminbar #wp-admin-bar-user-info .username{color:#a7aaad;font-size:11px}#wpadminbar #wp-admin-bar-my-account.with-avatar>.ab-empty-item img,#wpadminbar #wp-admin-bar-my-account.with-avatar>a img{width:auto;height:16px;padding:0;border:1px solid #8c8f94;background:#f0f0f1;line-height:1.84615384;vertical-align:middle;margin:-4px 0 0 6px;float:none;display:inline}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon{width:15px;height:20px;margin-right:0;padding:6px 0 5px}#wpadminbar #wp-admin-bar-wp-logo>.ab-item{padding:0 7px}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon:before{content:"\f120";top:2px}#wpadminbar .quicklinks li .blavatar{display:inline-block;vertical-align:middle;font:normal 16px/1 dashicons!important;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#f0f0f1}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar{color:#72aee6}#wpadminbar .quicklinks li div.blavatar:before,#wpadminbar .quicklinks li img.blavatar{height:16px;width:16px;margin:0 8px 2px -2px}#wpadminbar .quicklinks li div.blavatar:before{content:"\f120";display:inline-block}#wpadminbar #wp-admin-bar-appearance{margin-top:-12px}#wpadminbar #wp-admin-bar-my-sites>.ab-item:before,#wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:"\f541";top:2px}#wpadminbar #wp-admin-bar-site-editor>.ab-item:before{content:"\f100";top:2px}#wpadminbar #wp-admin-bar-customize>.ab-item:before{content:"\f540";top:2px}#wpadminbar #wp-admin-bar-edit>.ab-item:before{content:"\f464";top:2px}#wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:"\f226"}.wp-admin #wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:"\f102"}#wpadminbar #wp-admin-bar-comments .ab-icon{margin-right:6px}#wpadminbar #wp-admin-bar-comments .ab-icon:before{content:"\f101";top:3px}#wpadminbar #wp-admin-bar-comments .count-0{opacity:.5}#wpadminbar #wp-admin-bar-new-content .ab-icon:before{content:"\f132";top:4px}#wpadminbar #wp-admin-bar-updates .ab-icon:before{content:"\f463";top:2px}#wpadminbar #wp-admin-bar-updates.spin .ab-icon:before{display:inline-block;animation:rotation 2s infinite linear}@media (prefers-reduced-motion:reduce){#wpadminbar #wp-admin-bar-updates.spin .ab-icon:before{animation:none}}#wpadminbar #wp-admin-bar-search .ab-item{padding:0;background:0 0}#wpadminbar #adminbarsearch{position:relative;height:32px;padding:0 2px;z-index:1}#wpadminbar #adminbarsearch:before{position:absolute;top:6px;left:5px;z-index:20;font:normal 20px/1 dashicons!important;content:"\f179";speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input{display:inline-block;float:none;position:relative;z-index:30;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:1.84615384;text-indent:0;height:24px;width:24px;max-width:none;padding:0 3px 0 24px;margin:0;color:#c3c4c7;background-color:rgba(255,255,255,0);border:none;outline:0;cursor:pointer;box-shadow:none;box-sizing:border-box;transition-duration:.4s;transition-property:width,background;transition-timing-function:ease}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{z-index:10;color:#000;width:200px;background-color:rgba(255,255,255,.9);cursor:text;border:0}#wpadminbar #adminbarsearch .adminbar-button{display:none}.customize-support #wpadminbar .hide-if-customize,.customize-support .hide-if-customize,.customize-support .wp-core-ui .hide-if-customize,.customize-support.wp-core-ui .hide-if-customize,.no-customize-support #wpadminbar .hide-if-no-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .wp-core-ui .hide-if-no-customize,.no-customize-support.wp-core-ui .hide-if-no-customize{display:none}#wpadminbar .screen-reader-text,#wpadminbar .screen-reader-text span{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}#wpadminbar .screen-reader-shortcut{position:absolute;top:-1000em;left:6px;height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f0f0f1;color:#2271b1;z-index:100000;line-height:normal;text-decoration:none}#wpadminbar .screen-reader-shortcut:focus{top:7px;background:#f0f0f1;box-shadow:0 0 2px 2px rgba(0,0,0,.6)}@media screen and (max-width:782px){html{--wp-admin--admin-bar--height:46px}html #wpadminbar{height:46px;min-width:240px}#wpadminbar *{font-size:14px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:2.28571428}#wpadminbar .quicklinks .ab-empty-item,#wpadminbar .quicklinks>ul>li>a{padding:0;height:46px;line-height:3.28571428;width:auto}#wpadminbar .ab-icon{font:40px/1 dashicons!important;margin:0;padding:0;width:52px;height:46px;text-align:center}#wpadminbar .ab-icon:before{text-align:center}#wpadminbar .ab-submenu{padding:0}#wpadminbar #wp-admin-bar-my-account a.ab-item,#wpadminbar #wp-admin-bar-my-sites a.ab-item,#wpadminbar #wp-admin-bar-site-name a.ab-item{text-overflow:clip}#wpadminbar .quicklinks .menupop ul li .ab-item,#wpadminbar .quicklinks .menupop ul li a strong,#wpadminbar .quicklinks .menupop.hover ul li .ab-item,#wpadminbar .shortlink-input,#wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item{line-height:1.6}#wpadminbar .ab-label{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}#wpadminbar .menupop li.hover>.ab-sub-wrapper,#wpadminbar .menupop li:hover>.ab-sub-wrapper{margin-top:-46px}#wpadminbar .ab-top-menu .menupop .ab-sub-wrapper .menupop>.ab-item{padding-right:30px}#wpadminbar .menupop .menupop>.ab-item:before{top:10px;right:6px}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper .ab-item{font-size:16px;padding:8px 16px}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper a:empty{display:none}#wpadminbar #wp-admin-bar-wp-logo>.ab-item{padding:0}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon{padding:0;width:52px;height:46px;text-align:center;vertical-align:top}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon:before{font:28px/1 dashicons!important;top:-3px}#wpadminbar .ab-icon,#wpadminbar .ab-item:before{padding:0}#wpadminbar #wp-admin-bar-customize>.ab-item,#wpadminbar #wp-admin-bar-edit>.ab-item,#wpadminbar #wp-admin-bar-my-account>.ab-item,#wpadminbar #wp-admin-bar-my-sites>.ab-item,#wpadminbar #wp-admin-bar-site-editor>.ab-item,#wpadminbar #wp-admin-bar-site-name>.ab-item{text-indent:100%;white-space:nowrap;overflow:hidden;width:52px;padding:0;color:#a7aaad;position:relative}#wpadminbar .ab-icon,#wpadminbar .ab-item:before,#wpadminbar>#wp-toolbar>#wp-admin-bar-root-default .ab-icon{padding:0;margin-right:0}#wpadminbar #wp-admin-bar-customize>.ab-item:before,#wpadminbar #wp-admin-bar-edit>.ab-item:before,#wpadminbar #wp-admin-bar-my-account>.ab-item:before,#wpadminbar #wp-admin-bar-my-sites>.ab-item:before,#wpadminbar #wp-admin-bar-site-editor>.ab-item:before,#wpadminbar #wp-admin-bar-site-name>.ab-item:before{display:block;text-indent:0;font:normal 32px/1 dashicons;speak:never;top:7px;width:52px;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#wpadminbar #wp-admin-bar-appearance{margin-top:0}#wpadminbar .quicklinks li .blavatar:before{display:none}#wpadminbar #wp-admin-bar-search{display:none}#wpadminbar #wp-admin-bar-new-content .ab-icon:before{top:0;line-height:1.33333333;height:46px!important;text-align:center;width:52px;display:block}#wpadminbar #wp-admin-bar-updates{text-align:center}#wpadminbar #wp-admin-bar-updates .ab-icon:before{top:3px}#wpadminbar #wp-admin-bar-comments .ab-icon{margin:0}#wpadminbar #wp-admin-bar-comments .ab-icon:before{display:block;font-size:34px;height:46px;line-height:1.38235294;top:0}#wpadminbar #wp-admin-bar-my-account>a{position:relative;white-space:nowrap;text-indent:150%;width:28px;padding:0 10px;overflow:hidden}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{position:absolute;top:13px;right:10px;width:26px;height:26px}#wpadminbar #wp-admin-bar-user-actions.ab-submenu{padding:0}#wpadminbar #wp-admin-bar-user-actions.ab-submenu img.avatar{display:none}#wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions>li{margin:0}#wpadminbar #wp-admin-bar-user-info .display-name{height:auto;font-size:16px;line-height:1.5;color:#f0f0f1}#wpadminbar #wp-admin-bar-user-info a{padding-top:4px}#wpadminbar #wp-admin-bar-user-info .username{line-height:.8!important;margin-bottom:-2px}#wp-toolbar>ul>li{display:none}#wpadminbar li#wp-admin-bar-comments,#wpadminbar li#wp-admin-bar-customize,#wpadminbar li#wp-admin-bar-edit,#wpadminbar li#wp-admin-bar-menu-toggle,#wpadminbar li#wp-admin-bar-my-account,#wpadminbar li#wp-admin-bar-my-sites,#wpadminbar li#wp-admin-bar-new-content,#wpadminbar li#wp-admin-bar-site-editor,#wpadminbar li#wp-admin-bar-site-name,#wpadminbar li#wp-admin-bar-updates,#wpadminbar li#wp-admin-bar-wp-logo{display:block}#wpadminbar li.hover ul li,#wpadminbar li:hover ul li,#wpadminbar li:hover ul li:hover ul li{display:list-item}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper{min-width:-moz-fit-content;min-width:fit-content}#wpadminbar ul#wp-admin-bar-root-default>li{margin-right:0}#wpadminbar #wp-admin-bar-comments,#wpadminbar #wp-admin-bar-edit,#wpadminbar #wp-admin-bar-my-account,#wpadminbar #wp-admin-bar-my-sites,#wpadminbar #wp-admin-bar-new-content,#wpadminbar #wp-admin-bar-site-name,#wpadminbar #wp-admin-bar-updates,#wpadminbar #wp-admin-bar-wp-logo,#wpadminbar .ab-top-menu,#wpadminbar .ab-top-secondary{position:static}#wpadminbar #wp-admin-bar-my-account{float:right}.network-admin #wpadminbar ul#wp-admin-bar-top-secondary>li#wp-admin-bar-my-account{margin-right:0}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item:before{top:10px;left:0}}@media screen and (max-width:600px){#wpadminbar{position:absolute}#wp-responsive-overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:400}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper{width:100%;left:0}#wpadminbar .menupop .menupop>.ab-item:before{display:none}#wpadminbar #wp-admin-bar-wp-logo.menupop .ab-sub-wrapper{margin-left:0}#wpadminbar .ab-top-menu>.menupop li>.ab-sub-wrapper{margin:0;width:100%;top:auto;left:auto;position:relative}#wpadminbar .ab-top-menu>.menupop li>.ab-sub-wrapper .ab-item{font-size:16px;padding:6px 15px 19px 30px}#wpadminbar li:hover ul li ul li{display:list-item}#wpadminbar li#wp-admin-bar-updates,#wpadminbar li#wp-admin-bar-wp-logo{display:none}#wpadminbar .ab-top-menu>.menupop li>.ab-sub-wrapper{position:static;box-shadow:none}}@media screen and (max-width:400px){#wpadminbar li#wp-admin-bar-comments{display:none}} \ No newline at end of file
+html{--wp-admin--admin-bar--height:32px;scroll-padding-top:var(--wp-admin--admin-bar--height)}#wpadminbar *{height:auto;width:auto;margin:0;padding:0;position:static;text-shadow:none;text-transform:none;letter-spacing:normal;font-size:13px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-style:normal;line-height:2.46153846;border-radius:0;box-sizing:content-box;transition:none;-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto}.rtl #wpadminbar *{font-family:Tahoma,sans-serif}html:lang(he-il) .rtl #wpadminbar *{font-family:Arial,sans-serif}#wpadminbar .ab-empty-item{cursor:default}#wpadminbar .ab-empty-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#f0f0f1}#wpadminbar #wp-admin-bar-my-sites a.ab-item,#wpadminbar #wp-admin-bar-site-name a.ab-item{white-space:nowrap}#wpadminbar ul li:after,#wpadminbar ul li:before{content:normal}#wpadminbar a,#wpadminbar a img,#wpadminbar a img:hover,#wpadminbar a:hover{border:none;text-decoration:none;background:0 0;box-shadow:none}#wpadminbar a:active,#wpadminbar a:focus,#wpadminbar div,#wpadminbar input[type=email],#wpadminbar input[type=number],#wpadminbar input[type=password],#wpadminbar input[type=search],#wpadminbar input[type=text],#wpadminbar input[type=url],#wpadminbar select,#wpadminbar textarea{box-shadow:none}#wpadminbar a:focus{outline-offset:-1px}#wpadminbar{direction:ltr;color:#c3c4c7;font-size:13px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:2.46153846;height:32px;position:fixed;top:0;left:0;width:100%;min-width:600px;z-index:99999;background:#1d2327}#wpadminbar .ab-sub-wrapper,#wpadminbar ul,#wpadminbar ul li{background:0 0;clear:none;list-style:none;margin:0;padding:0;position:relative;text-indent:0;z-index:99999}#wpadminbar ul#wp-admin-bar-root-default>li{margin-right:0}#wpadminbar .quicklinks ul{text-align:left}#wpadminbar li{float:left}#wpadminbar .ab-empty-item{outline:0}#wpadminbar .quicklinks .ab-empty-item,#wpadminbar .quicklinks a,#wpadminbar .shortlink-input{height:32px;display:block;padding:0 10px;margin:0}#wpadminbar .quicklinks>ul>li>a{padding:0 8px 0 7px}#wpadminbar .menupop .ab-sub-wrapper,#wpadminbar .shortlink-input{margin:0;padding:0;box-shadow:0 3px 5px rgba(0,0,0,.2);background:#2c3338;display:none;position:absolute;float:none}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper{min-width:100%}#wpadminbar .ab-top-secondary .menupop .ab-sub-wrapper{right:0;left:auto}#wpadminbar .ab-submenu{padding:6px 0}#wpadminbar .selected .shortlink-input{display:block}#wpadminbar .quicklinks .menupop ul li{float:none}#wpadminbar .quicklinks .menupop ul li a strong{font-weight:600}#wpadminbar .quicklinks .menupop ul li .ab-item,#wpadminbar .quicklinks .menupop ul li a strong,#wpadminbar .quicklinks .menupop.hover ul li .ab-item,#wpadminbar .shortlink-input,#wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item{line-height:2;height:26px;white-space:nowrap;min-width:140px}#wpadminbar .shortlink-input{width:200px}#wpadminbar li.hover>.ab-sub-wrapper,#wpadminbar.nojs li:hover>.ab-sub-wrapper{display:block}#wpadminbar .menupop li.hover>.ab-sub-wrapper,#wpadminbar .menupop li:hover>.ab-sub-wrapper{margin-left:100%;margin-top:-32px}#wpadminbar .ab-top-secondary .menupop li.hover>.ab-sub-wrapper,#wpadminbar .ab-top-secondary .menupop li:hover>.ab-sub-wrapper{margin-left:0;left:inherit;right:100%}#wpadminbar .ab-top-menu>li.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{background:#2c3338;color:#72aee6}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label,#wpadminbar>#wp-toolbar li.hover span.ab-label{color:#72aee6}#wpadminbar .ab-icon,#wpadminbar .ab-item:before,#wpadminbar>#wp-toolbar>#wp-admin-bar-root-default .ab-icon,.wp-admin-bar-arrow{position:relative;float:left;font:normal 20px/1 dashicons;speak:never;padding:4px 0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none!important;margin-right:6px}#wpadminbar #adminbarsearch:before,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:before{color:#a7aaad;color:rgba(240,246,252,.6)}#wpadminbar #adminbarsearch:before,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:before{position:relative;transition:color .1s ease-in-out}#wpadminbar .ab-label{display:inline-block;height:32px}#wpadminbar .ab-submenu .ab-item{color:#c3c4c7;color:rgba(240,246,252,.7)}#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop ul li a strong,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#c3c4c7;color:rgba(240,246,252,.7)}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar .quicklinks .menupop.hover ul li div[tabindex]:focus,#wpadminbar .quicklinks .menupop.hover ul li div[tabindex]:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#72aee6}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:#c3c4c7}#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#72aee6}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item:before,#wpadminbar .menupop .menupop>.ab-item .wp-admin-bar-arrow:before{position:absolute;font:normal 17px/1 dashicons;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#wpadminbar .menupop .menupop>.ab-item{display:block;padding-right:2em}#wpadminbar .menupop .menupop>.ab-item .wp-admin-bar-arrow:before{top:1px;right:10px;padding:4px 0;content:"\f139";color:inherit}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item{padding-left:2em;padding-right:1em}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item .wp-admin-bar-arrow:before{top:1px;left:6px;content:"\f141"}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary{display:block;position:relative;right:auto;margin:0;box-shadow:none}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#3c434a}#wpadminbar .quicklinks .menupop .ab-sub-secondary>li .ab-item:focus a,#wpadminbar .quicklinks .menupop .ab-sub-secondary>li>a:hover{color:#72aee6}#wpadminbar .quicklinks a span#ab-updates{background:#f0f0f1;color:#2c3338;display:inline;padding:2px 5px;font-size:10px;font-weight:600;border-radius:10px}#wpadminbar .quicklinks a:hover span#ab-updates{background:#fff;color:#000}#wpadminbar .ab-top-secondary{float:right}#wpadminbar ul li:last-child,#wpadminbar ul li:last-child .ab-item{box-shadow:none}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#d63638}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:#d63638}#wp-admin-bar-my-account>ul{min-width:198px}#wp-admin-bar-my-account:not(.with-avatar)>.ab-item{display:inline-block}#wp-admin-bar-my-account>.ab-item:before{content:"\f110";top:2px;float:right;margin-left:6px;margin-right:0}#wp-admin-bar-my-account.with-avatar>.ab-item:before{display:none;content:none}#wp-admin-bar-my-account.with-avatar>ul{min-width:270px}#wpadminbar #wp-admin-bar-user-actions>li{margin-left:16px;margin-right:16px}#wpadminbar #wp-admin-bar-user-actions.ab-submenu{padding:6px 0 12px}#wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions>li{margin-left:88px}#wpadminbar #wp-admin-bar-user-info{margin-top:6px;margin-bottom:15px;height:auto;background:0 0}#wp-admin-bar-user-info .avatar{position:absolute;left:-72px;top:4px;width:64px;height:64px}#wpadminbar #wp-admin-bar-user-info a{background:0 0;height:auto}#wpadminbar #wp-admin-bar-user-info span{background:0 0;padding:0;height:18px}#wpadminbar #wp-admin-bar-user-info .display-name,#wpadminbar #wp-admin-bar-user-info .username{display:block}#wpadminbar #wp-admin-bar-user-info .username{color:#a7aaad;font-size:11px}#wpadminbar #wp-admin-bar-my-account.with-avatar>.ab-empty-item img,#wpadminbar #wp-admin-bar-my-account.with-avatar>a img{width:auto;height:16px;padding:0;border:1px solid #8c8f94;background:#f0f0f1;line-height:1.84615384;vertical-align:middle;margin:-4px 0 0 6px;float:none;display:inline}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon{width:15px;height:20px;margin-right:0;padding:6px 0 5px}#wpadminbar #wp-admin-bar-wp-logo>.ab-item{padding:0 7px}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon:before{content:"\f120";top:2px}#wpadminbar .quicklinks li .blavatar{display:inline-block;vertical-align:middle;font:normal 16px/1 dashicons!important;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#f0f0f1}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar{color:#72aee6}#wpadminbar .quicklinks li div.blavatar:before,#wpadminbar .quicklinks li img.blavatar{height:16px;width:16px;margin:0 8px 2px -2px}#wpadminbar .quicklinks li div.blavatar:before{content:"\f120";display:inline-block}#wpadminbar #wp-admin-bar-appearance{margin-top:-12px}#wpadminbar #wp-admin-bar-my-sites>.ab-item:before,#wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:"\f541";top:2px}#wpadminbar #wp-admin-bar-site-editor>.ab-item:before{content:"\f100";top:2px}#wpadminbar #wp-admin-bar-customize>.ab-item:before{content:"\f540";top:2px}#wpadminbar #wp-admin-bar-edit>.ab-item:before{content:"\f464";top:2px}#wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:"\f226"}.wp-admin #wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:"\f102"}#wpadminbar #wp-admin-bar-comments .ab-icon{margin-right:6px}#wpadminbar #wp-admin-bar-comments .ab-icon:before{content:"\f101";top:3px}#wpadminbar #wp-admin-bar-comments .count-0{opacity:.5}#wpadminbar #wp-admin-bar-new-content .ab-icon:before{content:"\f132";top:4px}#wpadminbar #wp-admin-bar-updates .ab-icon:before{content:"\f463";top:2px}#wpadminbar #wp-admin-bar-updates.spin .ab-icon:before{display:inline-block;animation:rotation 2s infinite linear}@media (prefers-reduced-motion:reduce){#wpadminbar #wp-admin-bar-updates.spin .ab-icon:before{animation:none}}#wpadminbar #wp-admin-bar-search .ab-item{padding:0;background:0 0}#wpadminbar #adminbarsearch{position:relative;height:32px;padding:0 2px;z-index:1}#wpadminbar #adminbarsearch:before{position:absolute;top:6px;left:5px;z-index:20;font:normal 20px/1 dashicons!important;content:"\f179";speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input{display:inline-block;float:none;position:relative;z-index:30;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:1.84615384;text-indent:0;height:24px;width:24px;max-width:none;padding:0 3px 0 24px;margin:0;color:#c3c4c7;background-color:rgba(255,255,255,0);border:none;outline:0;cursor:pointer;box-shadow:none;box-sizing:border-box;transition-duration:.4s;transition-property:width,background;transition-timing-function:ease}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{z-index:10;color:#000;width:200px;background-color:rgba(255,255,255,.9);cursor:text;border:0}#wpadminbar #adminbarsearch .adminbar-button{display:none}.customize-support #wpadminbar .hide-if-customize,.customize-support .hide-if-customize,.customize-support .wp-core-ui .hide-if-customize,.customize-support.wp-core-ui .hide-if-customize,.no-customize-support #wpadminbar .hide-if-no-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .wp-core-ui .hide-if-no-customize,.no-customize-support.wp-core-ui .hide-if-no-customize{display:none}#wpadminbar .screen-reader-text,#wpadminbar .screen-reader-text span{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}#wpadminbar .screen-reader-shortcut{position:absolute;top:-1000em;left:6px;height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f0f0f1;color:#2271b1;z-index:100000;line-height:normal;text-decoration:none}#wpadminbar .screen-reader-shortcut:focus{top:7px;background:#f0f0f1;box-shadow:0 0 2px 2px rgba(0,0,0,.6)}@media screen and (max-width:782px){html{--wp-admin--admin-bar--height:46px}html #wpadminbar{height:46px;min-width:240px}#wpadminbar *{font-size:14px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:2.28571428}#wpadminbar .quicklinks .ab-empty-item,#wpadminbar .quicklinks>ul>li>a{padding:0;height:46px;line-height:3.28571428;width:auto}#wpadminbar .ab-icon{font:40px/1 dashicons!important;margin:0;padding:0;width:52px;height:46px;text-align:center}#wpadminbar .ab-icon:before{text-align:center}#wpadminbar .ab-submenu{padding:0}#wpadminbar #wp-admin-bar-my-account a.ab-item,#wpadminbar #wp-admin-bar-my-sites a.ab-item,#wpadminbar #wp-admin-bar-site-name a.ab-item{text-overflow:clip}#wpadminbar .quicklinks .menupop ul li .ab-item,#wpadminbar .quicklinks .menupop ul li a strong,#wpadminbar .quicklinks .menupop.hover ul li .ab-item,#wpadminbar .shortlink-input,#wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item{line-height:1.6}#wpadminbar .ab-label{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}#wpadminbar .menupop li.hover>.ab-sub-wrapper,#wpadminbar .menupop li:hover>.ab-sub-wrapper{margin-top:-46px}#wpadminbar .ab-top-menu .menupop .ab-sub-wrapper .menupop>.ab-item{padding-right:30px}#wpadminbar .menupop .menupop>.ab-item:before{top:10px;right:6px}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper .ab-item{font-size:16px;padding:8px 16px}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper a:empty{display:none}#wpadminbar #wp-admin-bar-wp-logo>.ab-item{padding:0}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon{padding:0;width:52px;height:46px;text-align:center;vertical-align:top}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon:before{font:28px/1 dashicons!important;top:-3px}#wpadminbar .ab-icon,#wpadminbar .ab-item:before{padding:0}#wpadminbar #wp-admin-bar-customize>.ab-item,#wpadminbar #wp-admin-bar-edit>.ab-item,#wpadminbar #wp-admin-bar-my-account>.ab-item,#wpadminbar #wp-admin-bar-my-sites>.ab-item,#wpadminbar #wp-admin-bar-site-editor>.ab-item,#wpadminbar #wp-admin-bar-site-name>.ab-item{text-indent:100%;white-space:nowrap;overflow:hidden;width:52px;padding:0;color:#a7aaad;position:relative}#wpadminbar .ab-icon,#wpadminbar .ab-item:before,#wpadminbar>#wp-toolbar>#wp-admin-bar-root-default .ab-icon{padding:0;margin-right:0}#wpadminbar #wp-admin-bar-customize>.ab-item:before,#wpadminbar #wp-admin-bar-edit>.ab-item:before,#wpadminbar #wp-admin-bar-my-account>.ab-item:before,#wpadminbar #wp-admin-bar-my-sites>.ab-item:before,#wpadminbar #wp-admin-bar-site-editor>.ab-item:before,#wpadminbar #wp-admin-bar-site-name>.ab-item:before{display:block;text-indent:0;font:normal 32px/1 dashicons;speak:never;top:7px;width:52px;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#wpadminbar #wp-admin-bar-appearance{margin-top:0}#wpadminbar .quicklinks li .blavatar:before{display:none}#wpadminbar #wp-admin-bar-search{display:none}#wpadminbar #wp-admin-bar-new-content .ab-icon:before{top:0;line-height:1.33333333;height:46px!important;text-align:center;width:52px;display:block}#wpadminbar #wp-admin-bar-updates{text-align:center}#wpadminbar #wp-admin-bar-updates .ab-icon:before{top:3px}#wpadminbar #wp-admin-bar-comments .ab-icon{margin:0}#wpadminbar #wp-admin-bar-comments .ab-icon:before{display:block;font-size:34px;height:46px;line-height:1.38235294;top:0}#wpadminbar #wp-admin-bar-my-account>a{position:relative;white-space:nowrap;text-indent:150%;width:28px;padding:0 10px;overflow:hidden}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{position:absolute;top:13px;right:10px;width:26px;height:26px}#wpadminbar #wp-admin-bar-user-actions.ab-submenu{padding:0}#wpadminbar #wp-admin-bar-user-actions.ab-submenu img.avatar{display:none}#wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions>li{margin:0}#wpadminbar #wp-admin-bar-user-info .display-name{height:auto;font-size:16px;line-height:1.5;color:#f0f0f1}#wpadminbar #wp-admin-bar-user-info a{padding-top:4px}#wpadminbar #wp-admin-bar-user-info .username{line-height:.8!important;margin-bottom:-2px}#wp-toolbar>ul>li{display:none}#wpadminbar li#wp-admin-bar-comments,#wpadminbar li#wp-admin-bar-customize,#wpadminbar li#wp-admin-bar-edit,#wpadminbar li#wp-admin-bar-menu-toggle,#wpadminbar li#wp-admin-bar-my-account,#wpadminbar li#wp-admin-bar-my-sites,#wpadminbar li#wp-admin-bar-new-content,#wpadminbar li#wp-admin-bar-site-editor,#wpadminbar li#wp-admin-bar-site-name,#wpadminbar li#wp-admin-bar-updates,#wpadminbar li#wp-admin-bar-wp-logo{display:block}#wpadminbar li.hover ul li,#wpadminbar li:hover ul li,#wpadminbar li:hover ul li:hover ul li{display:list-item}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper{min-width:-moz-fit-content;min-width:fit-content}#wpadminbar ul#wp-admin-bar-root-default>li{margin-right:0}#wpadminbar #wp-admin-bar-comments,#wpadminbar #wp-admin-bar-edit,#wpadminbar #wp-admin-bar-my-account,#wpadminbar #wp-admin-bar-my-sites,#wpadminbar #wp-admin-bar-new-content,#wpadminbar #wp-admin-bar-site-name,#wpadminbar #wp-admin-bar-updates,#wpadminbar #wp-admin-bar-wp-logo,#wpadminbar .ab-top-menu,#wpadminbar .ab-top-secondary{position:static}.network-admin #wpadminbar ul#wp-admin-bar-top-secondary>li#wp-admin-bar-my-account{margin-right:0}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item:before{top:10px;left:0}}@media screen and (max-width:600px){#wpadminbar{position:absolute}#wp-responsive-overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:400}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper{width:100%;left:0}#wpadminbar .menupop .menupop>.ab-item:before{display:none}#wpadminbar #wp-admin-bar-wp-logo.menupop .ab-sub-wrapper{margin-left:0}#wpadminbar .ab-top-menu>.menupop li>.ab-sub-wrapper{margin:0;width:100%;top:auto;left:auto;position:relative}#wpadminbar .ab-top-menu>.menupop li>.ab-sub-wrapper .ab-item{font-size:16px;padding:6px 15px 19px 30px}#wpadminbar li:hover ul li ul li{display:list-item}#wpadminbar li#wp-admin-bar-updates,#wpadminbar li#wp-admin-bar-wp-logo{display:none}#wpadminbar .ab-top-menu>.menupop li>.ab-sub-wrapper{position:static;box-shadow:none}}@media screen and (max-width:400px){#wpadminbar li#wp-admin-bar-comments{display:none}} \ No newline at end of file
diff --git a/wp-includes/css/dist/block-directory/style-rtl.css b/wp-includes/css/dist/block-directory/style-rtl.css
index 100b2a4..96f0773 100644
--- a/wp-includes/css/dist/block-directory/style-rtl.css
+++ b/wp-includes/css/dist/block-directory/style-rtl.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -68,6 +68,7 @@
grid-template-columns:auto 1fr;
height:auto;
padding:12px;
+ position:relative;
text-align:right;
width:100%;
}
@@ -81,7 +82,6 @@
.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{
border:0;
clip:rect(1px, 1px, 1px, 1px);
- -webkit-clip-path:inset(50%);
clip-path:inset(50%);
height:1px;
margin:-1px;
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 91a94f1..9f9be04 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 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-right:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;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:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;text-align:right;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-directory-downloadable-block-list-item.is-busy{background:#0000}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{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-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{align-self:flex-start;margin-left:16px;position:relative}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{align-items:center;background:#ffffffbf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;font-weight:400;margin-top:4px}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{color:#cc1818;margin:8px 0 0}.block-directory-downloadable-block-notice__content{margin-bottom:8px;padding-left:12px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{color:#757575;font-style:normal;margin:112px 0;padding:0;text-align:center}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{color:#757575;margin:48px 0;padding:0 64px;text-align:center}.block-directory-downloadable-blocks-panel__title{font-size:14px;margin:0 0 4px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-right:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;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:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;position:relative;text-align:right;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-directory-downloadable-block-list-item.is-busy{background:#0000}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{align-self:flex-start;margin-left:16px;position:relative}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{align-items:center;background:#ffffffbf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;font-weight:400;margin-top:4px}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{color:#cc1818;margin:8px 0 0}.block-directory-downloadable-block-notice__content{margin-bottom:8px;padding-left:12px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{color:#757575;font-style:normal;margin:112px 0;padding:0;text-align:center}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{color:#757575;margin:48px 0;padding:0 64px;text-align:center}.block-directory-downloadable-blocks-panel__title{font-size:14px;margin:0 0 4px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.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 2435662..94693e2 100644
--- a/wp-includes/css/dist/block-directory/style.css
+++ b/wp-includes/css/dist/block-directory/style.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -68,6 +68,7 @@
grid-template-columns:auto 1fr;
height:auto;
padding:12px;
+ position:relative;
text-align:left;
width:100%;
}
@@ -81,7 +82,6 @@
.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{
border:0;
clip:rect(1px, 1px, 1px, 1px);
- -webkit-clip-path:inset(50%);
clip-path:inset(50%);
height:1px;
margin:-1px;
diff --git a/wp-includes/css/dist/block-directory/style.min.css b/wp-includes/css/dist/block-directory/style.min.css
index 7bc4aaf..aad1879 100644
--- a/wp-includes/css/dist/block-directory/style.min.css
+++ b/wp-includes/css/dist/block-directory/style.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-left:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;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:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;text-align:left;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-directory-downloadable-block-list-item.is-busy{background:#0000}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{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-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{align-self:flex-start;margin-right:16px;position:relative}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{align-items:center;background:#ffffffbf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;font-weight:400;margin-top:4px}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{color:#cc1818;margin:8px 0 0}.block-directory-downloadable-block-notice__content{margin-bottom:8px;padding-right:12px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{color:#757575;font-style:normal;margin:112px 0;padding:0;text-align:center}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{color:#757575;margin:48px 0;padding:0 64px;text-align:center}.block-directory-downloadable-blocks-panel__title{font-size:14px;margin:0 0 4px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-left:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;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:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;position:relative;text-align:left;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-directory-downloadable-block-list-item.is-busy{background:#0000}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{align-self:flex-start;margin-right:16px;position:relative}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{align-items:center;background:#ffffffbf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;font-weight:400;margin-top:4px}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{color:#cc1818;margin:8px 0 0}.block-directory-downloadable-block-notice__content{margin-bottom:8px;padding-right:12px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{color:#757575;font-style:normal;margin:112px 0;padding:0;text-align:center}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{color:#757575;margin:48px 0;padding:0 64px;text-align:center}.block-directory-downloadable-blocks-panel__title{font-size:14px;margin:0 0 4px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0} \ No newline at end of file
diff --git a/wp-includes/css/dist/block-editor/content-rtl.css b/wp-includes/css/dist/block-editor/content-rtl.css
index 0c7523e..d79c9a5 100644
--- a/wp-includes/css/dist/block-editor/content-rtl.css
+++ b/wp-includes/css/dist/block-editor/content-rtl.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -55,9 +55,6 @@
.block-editor-block-list__layout{
position:relative;
}
-.block-editor-block-list__layout:where(.block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)){
- border-radius:2px;
-}
.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection{
background:#0000;
}
@@ -65,7 +62,6 @@
animation:selection-overlay__fade-in-animation .1s ease-out;
animation-fill-mode:forwards;
background:var(--wp-admin-theme-color);
- border-radius:2px;
bottom:0;
content:"";
left:0;
@@ -84,26 +80,27 @@
}
}
.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted:after{
- box-shadow:none;
+ outline-color:#0000;
}
.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected{
outline:none;
}
.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus:after,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{
- border-radius:1px;
- bottom:1px;
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+ bottom:0;
content:"";
- left:1px;
- outline:2px solid #0000;
+ left:0;
+ outline-color:var(--wp-admin-theme-color);
+ outline-offset:calc((-1*var(--wp-admin-border-width-focus))/var(--wp-block-editor-iframe-zoom-out-scale, 1));
+ outline-style:solid;
+ outline-width:calc(var(--wp-admin-border-width-focus)/var(--wp-block-editor-iframe-zoom-out-scale, 1));
pointer-events:none;
position:absolute;
- right:1px;
- top:1px;
+ right:0;
+ top:0;
z-index:1;
}
.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-highlighted~.is-multi-selected:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus:after,.is-dark-theme .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff;
+ outline-color:#fff;
}
.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected:after{
border-radius:2px;
@@ -150,6 +147,9 @@
-webkit-user-select:none;
user-select:none;
}
+.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.has-child-selected,.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.is-selected{
+ z-index:20;
+}
.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{
z-index:1;
}
@@ -200,52 +200,57 @@
float:none;
}
-.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered{
- cursor:default;
-}
-.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:after{
- border-radius:1px;
- bottom:1px;
- box-shadow:0 0 0 1px var(--wp-admin-theme-color);
- content:"";
- left:1px;
- pointer-events:none;
- position:absolute;
- right:1px;
- top:1px;
-}
.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected{
cursor:default;
}
.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected.rich-text{
cursor:unset;
}
-.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected:after{
- border-radius:2px;
- bottom:1px;
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:not(.is-selected):after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline):not(.rich-text):not([contenteditable=true]).is-selected:after{
+ bottom:0;
content:"";
- left:1px;
+ left:0;
+ outline-color:var(--wp-admin-theme-color);
+ outline-offset:calc((-1*var(--wp-admin-border-width-focus))/var(--wp-block-editor-iframe-zoom-out-scale, 1));
+ outline-style:solid;
+ outline-width:calc(var(--wp-admin-border-width-focus)/var(--wp-block-editor-iframe-zoom-out-scale, 1));
pointer-events:none;
position:absolute;
- right:1px;
- top:1px;
+ right:0;
+ top:0;
+}
+.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{
+ outline-color:var(--wp-block-synced-color);
+}
+.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{
+ outline-color:#fff;
}
-@keyframes block-editor-has-editable-outline__fade-out-animation{
+@keyframes block-editor-is-editable__animation{
0%{
- border-color:rgba(var(--wp-admin-theme-color--rgb), 1);
+ background-color:rgba(var(--wp-admin-theme-color--rgb), .1);
}
to{
- border-color:rgba(var(--wp-admin-theme-color--rgb), 0);
+ background-color:rgba(var(--wp-admin-theme-color--rgb), 0);
}
}
-.is-root-container:not([inert]) .block-editor-block-list__block.has-editable-outline:after{
- animation:block-editor-has-editable-outline__fade-out-animation .3s ease-out;
- animation-delay:1s;
- animation-fill-mode:forwards;
- border:1px dotted rgba(var(--wp-admin-theme-color--rgb), 1);
- border-radius:2px;
+@keyframes block-editor-is-editable__animation_reduce-motion{
+ 0%{
+ background-color:rgba(var(--wp-admin-theme-color--rgb), .1);
+ }
+ 99%{
+ background-color:rgba(var(--wp-admin-theme-color--rgb), .1);
+ }
+ to{
+ background-color:rgba(var(--wp-admin-theme-color--rgb), 0);
+ }
+}
+.is-root-container:not([inert]) .block-editor-block-list__block.is-reusable.is-selected .block-editor-block-list__block.has-editable-outline:after{
+ animation-delay:.1s;
+ animation-duration:.8s;
+ animation-fill-mode:backwards;
+ animation-name:block-editor-is-editable__animation;
+ animation-timing-function:ease-out;
bottom:0;
content:"";
left:0;
@@ -255,9 +260,9 @@
top:0;
}
@media (prefers-reduced-motion:reduce){
- .is-root-container:not([inert]) .block-editor-block-list__block.has-editable-outline:after{
+ .is-root-container:not([inert]) .block-editor-block-list__block.is-reusable.is-selected .block-editor-block-list__block.has-editable-outline:after{
animation-delay:0s;
- animation-duration:1ms;
+ animation-name:block-editor-is-editable__animation_reduce-motion;
}
}
@@ -361,11 +366,6 @@
margin-bottom:auto;
}
-.block-editor-iframe__body{
- transform-origin:top center;
- transition:all .3s;
-}
-
.is-vertical .block-list-appender{
margin-left:auto;
margin-right:12px;
@@ -385,38 +385,13 @@
.block-editor-block-list__block.has-block-overlay{
cursor:default;
}
-.block-editor-block-list__block.has-block-overlay:before{
- background:#0000;
- border:none;
- border-radius:2px;
- content:"";
- height:100%;
- position:absolute;
- right:0;
- top:0;
- width:100%;
- z-index:10;
-}
-.block-editor-block-list__block.has-block-overlay:not(.is-multi-selected):after{
- content:none !important;
-}
-.block-editor-block-list__block.has-block-overlay:hover:not(.is-dragging-blocks):not(.is-multi-selected):before{
- background:rgba(var(--wp-admin-theme-color--rgb), .04);
- box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset;
-}
-.block-editor-block-list__block.has-block-overlay.is-reusable:hover:not(.is-dragging-blocks):not(.is-multi-selected):before,.block-editor-block-list__block.has-block-overlay.wp-block-template-part:hover:not(.is-dragging-blocks):not(.is-multi-selected):before{
- background:rgba(var(--wp-block-synced-color--rgb), .04);
- box-shadow:0 0 0 1px var(--wp-block-synced-color) inset;
-}
-.block-editor-block-list__block.has-block-overlay.is-selected:not(.is-dragging-blocks):before{
- box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset;
-}
.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block{
pointer-events:none;
}
-.block-editor-iframe__body.is-zoomed-out .block-editor-block-list__block.has-block-overlay:before{
- right:calc(50% - 50vw);
- width:100vw;
+.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block.has-block-overlay:before{
+ left:0;
+ right:0;
+ width:auto;
}
.block-editor-block-list__layout .is-dragging{
@@ -449,71 +424,37 @@
display:none;
}
-.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{
+.block-editor-block-variation-picker__skip,.block-editor-block-variation-picker__variations,.wp-block-group-placeholder__variations{
display:flex;
flex-direction:row;
flex-wrap:wrap;
+ font-size:12px;
+ gap:8px;
justify-content:flex-start;
list-style:none;
- margin:16px 0;
+ margin:0;
padding:0;
width:100%;
}
-.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{
- flex-shrink:1;
- list-style:none;
- margin:8px 0 0 20px;
- text-align:center;
- width:75px;
+.block-editor-block-variation-picker__skip svg,.block-editor-block-variation-picker__variations svg,.wp-block-group-placeholder__variations svg{
+ fill:#949494 !important;
}
-.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{
- display:inline-flex;
- margin-left:0;
+.block-editor-block-variation-picker__skip .components-button,.block-editor-block-variation-picker__variations .components-button,.wp-block-group-placeholder__variations .components-button{
+ padding:4px;
}
-.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{
- display:block;
- font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
- font-size:12px;
- line-height:1.4;
+.block-editor-block-variation-picker__skip .components-button:hover,.block-editor-block-variation-picker__variations .components-button:hover,.wp-block-group-placeholder__variations .components-button:hover{
+ background:none !important;
}
-
-.block-editor-block-variation-picker__variation{
- width:100%;
+.block-editor-block-variation-picker__skip .components-button:hover svg,.block-editor-block-variation-picker__variations .components-button:hover svg,.wp-block-group-placeholder__variations .components-button:hover svg{
+ fill:var(--wp-admin-theme-color) !important;
}
-.block-editor-block-variation-picker__variation.components-button.has-icon{
- justify-content:center;
+.block-editor-block-variation-picker__skip>li,.block-editor-block-variation-picker__variations>li,.wp-block-group-placeholder__variations>li{
+ align-items:center;
+ display:flex;
+ flex-direction:column;
+ gap:4px;
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{
align-items:center;
@@ -569,7 +510,10 @@
top:0;
}
.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter{
- visibility:hidden;
+ opacity:0;
+}
+.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter:focus-within,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter:focus-within,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter:focus-within,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter:focus-within{
+ opacity:1;
}
.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after{
border:none;
@@ -603,7 +547,8 @@
.block-editor-default-block-appender .block-editor-default-block-appender__content{
opacity:.62;
}
-:where(body .is-layout-constrained) .block-editor-default-block-appender>:first-child:first-child{
+:where(.wp-site-blocks) .block-editor-default-block-appender>:first-child,:where(body .is-layout-constrained) .block-editor-default-block-appender>:first-child{
+ margin-block-end:0;
margin-block-start:0;
}
.block-editor-default-block-appender .components-drop-zone__content-icon{
@@ -683,6 +628,59 @@
cursor:text;
}
+.block-editor-iframe__body{
+ position:relative;
+}
+
+.block-editor-iframe__container{
+ height:100%;
+ overflow-x:hidden;
+ width:100%;
+}
+
+.block-editor-iframe__scale-container{
+ display:flex;
+ height:100%;
+ width:100%;
+}
+
+.block-editor-iframe__scale-container.is-zoomed-out{
+ margin-right:calc((var(--wp-block-editor-iframe-zoom-out-prev-container-width, 100vw) - var(--wp-block-editor-iframe-zoom-out-container-width, 100vw))*-1/2);
+ width:var(--wp-block-editor-iframe-zoom-out-prev-container-width, 100vw);
+}
+
+.block-editor-iframe__html{
+ transform-origin:top center;
+ transition:transform .3s;
+}
+@media (prefers-reduced-motion:reduce){
+ .block-editor-iframe__html{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
+}
+
+.block-editor-iframe__html.is-zoomed-out{
+ background-color:#ddd;
+ border:calc(var(--wp-block-editor-iframe-zoom-out-frame-size)/var(--wp-block-editor-iframe-zoom-out-scale)) solid #ddd;
+ margin-bottom:calc(var(--wp-block-editor-iframe-zoom-out-content-height)*(1 - var(--wp-block-editor-iframe-zoom-out-scale))*-1 + var(--wp-block-editor-iframe-zoom-out-frame-size)*2*-1 + -2px);
+ transform:scale(var(--wp-block-editor-iframe-zoom-out-scale));
+}
+.block-editor-iframe__html.is-zoomed-out body{
+ display:flex;
+ flex-direction:column;
+ min-height:calc((var(--wp-block-editor-iframe-zoom-out-inner-height) - 2*var(--wp-block-editor-iframe-zoom-out-frame-size))/var(--wp-block-editor-iframe-zoom-out-scale));
+}
+.block-editor-iframe__html.is-zoomed-out body>.is-root-container{
+ display:flex;
+ flex:1;
+ flex-direction:column;
+ height:100%;
+}
+.block-editor-iframe__html.is-zoomed-out body>.is-root-container>main{
+ flex:1;
+}
+
.block-editor-block-list__layout.has-overlay:after{
bottom:0;
content:"";
@@ -693,10 +691,6 @@
z-index:60;
}
-.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{
- margin-bottom:0;
-}
-
.block-editor-media-placeholder__url-input-form{
display:flex;
}
@@ -718,10 +712,6 @@
flex-shrink:1;
}
-.block-editor-media-placeholder__button{
- margin-bottom:.5rem;
-}
-
.block-editor-media-placeholder__cancel-button.is-link{
display:block;
margin:1em;
diff --git a/wp-includes/css/dist/block-editor/content-rtl.min.css b/wp-includes/css/dist/block-editor/content-rtl.min.css
index 2af5a8a..eb3b661 100644
--- a/wp-includes/css/dist/block-editor/content-rtl.min.css
+++ b/wp-includes/css/dist/block-editor/content-rtl.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-styles .block-editor-block-list__block{margin:0}@keyframes selection-overlay__fade-in-animation{0%{opacity:0}to{opacity:.4}}:root .block-editor-block-list__layout::selection,:root .has-multi-selection .block-editor-block-list__layout::selection,_::-webkit-full-page-media,_:future{background-color:initial}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout:where(.block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)){border-radius:2px}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection{background:#0000}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation:selection-overlay__fade-in-animation .1s ease-out;animation-fill-mode:forwards;background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.4;outline:2px solid #0000;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation-delay:0s;animation-duration:1ms}}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted:after{box-shadow:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected{outline:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus:after,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{border-radius:1px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:1px;outline:2px solid #0000;pointer-events:none;position:absolute;right:1px;top:1px;z-index:1}.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-highlighted~.is-multi-selected:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus:after,.is-dark-theme .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected:after{border-radius:2px;border-top:4px solid #ccc;bottom:auto;box-shadow:none;content:"";left:0;pointer-events:none;position:absolute;right:0;top:-14px;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;z-index:0}.block-editor-block-list__layout .is-block-moving-mode.can-insert-moving-block.block-editor-block-list__block.is-selected:after{border-color:var(--wp-admin-theme-color)}.has-multi-selection .block-editor-block-list__layout{-webkit-user-select:none;user-select:none}.block-editor-block-list__layout [class^=components-]{-webkit-user-select:text;user-select:text}.is-block-moving-mode.block-editor-block-list__block-selection-button{font-size:1px;height:1px;opacity:0;padding:0}.block-editor-block-list__layout .block-editor-block-list__block{overflow-wrap:break-word;pointer-events:auto;position:relative;-webkit-user-select:text;user-select:text}.block-editor-block-list__layout .block-editor-block-list__block.is-editing-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.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 .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:48px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-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{background-color:#fff6;border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:initial}.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}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.has-child-selected:after{box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:after{border-radius:1px;bottom:1px;box-shadow:0 0 0 1px var(--wp-admin-theme-color);content:"";left:1px;pointer-events:none;position:absolute;right:1px;top:1px}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected.rich-text{cursor:unset}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected:after{border-radius:2px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:1px;pointer-events:none;position:absolute;right:1px;top:1px}@keyframes block-editor-has-editable-outline__fade-out-animation{0%{border-color:rgba(var(--wp-admin-theme-color--rgb),1)}to{border-color:rgba(var(--wp-admin-theme-color--rgb),0)}}.is-root-container:not([inert]) .block-editor-block-list__block.has-editable-outline:after{animation:block-editor-has-editable-outline__fade-out-animation .3s ease-out;animation-delay:1s;animation-fill-mode:forwards;border:1px dotted rgba(var(--wp-admin-theme-color--rgb),1);border-radius:2px;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}@media (prefers-reduced-motion:reduce){.is-root-container:not([inert]) .block-editor-block-list__block.has-editable-outline:after{animation-delay:0s;animation-duration:1ms}}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){opacity:.2;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){transition-delay:0s;transition-duration:0s}}.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected{opacity:1}.wp-block.alignleft,.wp-block.alignright,.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-site-blocks>[data-align=left]{float:right;margin-left:2em}.wp-site-blocks>[data-align=right]{float:left;margin-right:2em}.wp-site-blocks>[data-align=center]{justify-content:center;margin-left:auto;margin-right:auto}.block-editor-block-list .block-editor-inserter{cursor:move;cursor:grab;margin:8px}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0}to{opacity: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-delay:0s;animation-duration:1ms}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__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__block-html-textarea{border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;margin:0;outline:none;overflow:hidden;padding:12px;resize:none;transition:padding .2s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-delay:0s;transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{position:relative;z-index:5}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-iframe__body{transform-origin:top center;transition:all .3s}.is-vertical .block-list-appender{margin-left:auto;margin-right:12px;margin-top:12px;width:24px}.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-list__block.has-block-overlay{cursor:default}.block-editor-block-list__block.has-block-overlay:before{background:#0000;border:none;border-radius:2px;content:"";height:100%;position:absolute;right:0;top:0;width:100%;z-index:10}.block-editor-block-list__block.has-block-overlay:not(.is-multi-selected):after{content:none!important}.block-editor-block-list__block.has-block-overlay:hover:not(.is-dragging-blocks):not(.is-multi-selected):before{background:rgba(var(--wp-admin-theme-color--rgb),.04);box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset}.block-editor-block-list__block.has-block-overlay.is-reusable:hover:not(.is-dragging-blocks):not(.is-multi-selected):before,.block-editor-block-list__block.has-block-overlay.wp-block-template-part:hover:not(.is-dragging-blocks):not(.is-multi-selected):before{background:rgba(var(--wp-block-synced-color--rgb),.04);box-shadow:0 0 0 1px var(--wp-block-synced-color) inset}.block-editor-block-list__block.has-block-overlay.is-selected:not(.is-dragging-blocks):before{box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block{pointer-events:none}.block-editor-iframe__body.is-zoomed-out .block-editor-block-list__block.has-block-overlay:before{right:calc(50% - 50vw);width:100vw}.block-editor-block-list__layout .is-dragging{background-color:currentColor!important;border-radius:2px!important;opacity:.05!important;pointer-events:none!important}.block-editor-block-list__layout .is-dragging::selection{background:#0000!important}.block-editor-block-list__layout .is-dragging:after{content:none!important}.block-editor-block-preview__content-iframe .block-list-appender{display:none}.block-editor-block-preview__live-content *{pointer-events:none}.block-editor-block-preview__live-content .block-list-appender{display:none}.block-editor-block-preview__live-content .components-button:disabled{opacity:1}.block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true],.block-editor-block-preview__live-content .components-placeholder{display:none}.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;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;list-style:none;margin:16px 0;padding:0;width:100%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{flex-shrink:1;list-style:none;margin:8px 0 0 20px;text-align:center;width:75px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:inline-flex;margin-left:0}.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{display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;line-height:1.4}.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{align-items:center;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;display:flex;flex-direction:column;height:auto;justify-content:center;width:100%}.block-editor-button-block-appender.components-button.components-button{padding:12px}.is-dark-theme .block-editor-button-block-appender{box-shadow:inset 0 0 0 1px #ffffffa6;color:#ffffffa6}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child{pointer-events:none}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after{border:1px dashed;border-radius:2px;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:after:before,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:after:before,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after:before,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter{visibility:hidden}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after{border:none}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter{visibility:visible}.block-editor-block-list__block:not(.is-selected)>.block-editor-block-list__block>.block-list-appender:only-child:after{border:none}.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{background-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px #ffffffa6;color:#ffffffa6;transition:background-color .2s ease-in-out}@media (prefers-reduced-motion:reduce){.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{transition:none}}.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 #0000}.block-editor-default-block-appender .block-editor-default-block-appender__content{opacity:.62}:where(body .is-layout-constrained) .block-editor-default-block-appender>:first-child:first-child{margin-block-start:0}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{left:0;line-height:0;position:absolute;top:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender{bottom:0;left:0;list-style:none;padding:0;position:absolute;z-index:2}.block-editor-block-list__block .block-list-appender.block-list-appender{line-height:0;margin:0}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender{height:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{background:#1e1e1e;box-shadow:none;color:#fff;display:none;flex-direction:row;height:24px;min-width:24px;padding:0!important;width:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content{display:none}.block-editor-block-list__block .block-list-appender:only-child{align-self:center;left:auto;line-height:inherit;list-style:none;position:relative}.block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content{display:block}.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle,.block-editor-block-list__block.is-selected>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected>.block-list-appender .block-list-appender__toggle{display:flex}.block-editor-default-block-appender__content{cursor:text}.block-editor-block-list__layout.has-overlay:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:60}.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{border:none;border-radius:0;flex-grow:1;margin:2px;min-width:200px;width:100%}@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{display:block;margin:1em}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px var(--wp-admin-theme-color);cursor:pointer}.block-editor-plain-text{border:none;box-shadow:none;color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0;width:100%}.rich-text [data-rich-text-placeholder]{pointer-events:none}.rich-text [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.rich-text:focus{outline:none}.rich-text:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable>p:first-child{margin-top:0}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}[data-rich-text-script]{display:inline}[data-rich-text-script]:before{background:#ff0;content:"</>"}.block-editor-warning{align-items:center;background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;display:flex;flex-wrap:wrap;padding:1em}.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}.block-editor-warning .block-editor-warning__message{color:#1e1e1e;font-size:13px;line-height:1.4;margin:0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{align-items:baseline;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;width:100%}.block-editor-warning .block-editor-warning__actions{align-items:center;display:flex;margin-top:1em}.block-editor-warning .block-editor-warning__action{margin:0 0 0 8px}.block-editor-warning__secondary{margin:auto 8px auto 0}.components-popover.block-editor-warning__dropdown{z-index:99998}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-styles .block-editor-block-list__block{margin:0}@keyframes selection-overlay__fade-in-animation{0%{opacity:0}to{opacity:.4}}:root .block-editor-block-list__layout::selection,:root .has-multi-selection .block-editor-block-list__layout::selection,_::-webkit-full-page-media,_:future{background-color:initial}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection{background:#0000}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation:selection-overlay__fade-in-animation .1s ease-out;animation-fill-mode:forwards;background:var(--wp-admin-theme-color);bottom:0;content:"";left:0;opacity:.4;outline:2px solid #0000;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation-delay:0s;animation-duration:1ms}}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted:after{outline-color:#0000}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected{outline:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus:after,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{bottom:0;content:"";left:0;outline-color:var(--wp-admin-theme-color);outline-offset:calc((-1*var(--wp-admin-border-width-focus))/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)/var(--wp-block-editor-iframe-zoom-out-scale, 1));pointer-events:none;position:absolute;right:0;top:0;z-index:1}.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-highlighted~.is-multi-selected:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus:after,.is-dark-theme .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{outline-color:#fff}.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected:after{border-radius:2px;border-top:4px solid #ccc;bottom:auto;box-shadow:none;content:"";left:0;pointer-events:none;position:absolute;right:0;top:-14px;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;z-index:0}.block-editor-block-list__layout .is-block-moving-mode.can-insert-moving-block.block-editor-block-list__block.is-selected:after{border-color:var(--wp-admin-theme-color)}.has-multi-selection .block-editor-block-list__layout{-webkit-user-select:none;user-select:none}.block-editor-block-list__layout [class^=components-]{-webkit-user-select:text;user-select:text}.is-block-moving-mode.block-editor-block-list__block-selection-button{font-size:1px;height:1px;opacity:0;padding:0}.block-editor-block-list__layout .block-editor-block-list__block{overflow-wrap:break-word;pointer-events:auto;position:relative;-webkit-user-select:text;user-select:text}.block-editor-block-list__layout .block-editor-block-list__block.is-editing-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.has-child-selected,.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.is-selected{z-index:20}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.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 .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:48px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-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{background-color:#fff6;border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:initial}.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}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.has-child-selected:after{box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected.rich-text{cursor:unset}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:not(.is-selected):after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline):not(.rich-text):not([contenteditable=true]).is-selected:after{bottom:0;content:"";left:0;outline-color:var(--wp-admin-theme-color);outline-offset:calc((-1*var(--wp-admin-border-width-focus))/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)/var(--wp-block-editor-iframe-zoom-out-scale, 1));pointer-events:none;position:absolute;right:0;top:0}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{outline-color:var(--wp-block-synced-color)}.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{outline-color:#fff}@keyframes block-editor-is-editable__animation{0%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}to{background-color:rgba(var(--wp-admin-theme-color--rgb),0)}}@keyframes block-editor-is-editable__animation_reduce-motion{0%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}99%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}to{background-color:rgba(var(--wp-admin-theme-color--rgb),0)}}.is-root-container:not([inert]) .block-editor-block-list__block.is-reusable.is-selected .block-editor-block-list__block.has-editable-outline:after{animation-delay:.1s;animation-duration:.8s;animation-fill-mode:backwards;animation-name:block-editor-is-editable__animation;animation-timing-function:ease-out;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}@media (prefers-reduced-motion:reduce){.is-root-container:not([inert]) .block-editor-block-list__block.is-reusable.is-selected .block-editor-block-list__block.has-editable-outline:after{animation-delay:0s;animation-name:block-editor-is-editable__animation_reduce-motion}}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){opacity:.2;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){transition-delay:0s;transition-duration:0s}}.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected{opacity:1}.wp-block.alignleft,.wp-block.alignright,.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-site-blocks>[data-align=left]{float:right;margin-left:2em}.wp-site-blocks>[data-align=right]{float:left;margin-right:2em}.wp-site-blocks>[data-align=center]{justify-content:center;margin-left:auto;margin-right:auto}.block-editor-block-list .block-editor-inserter{cursor:move;cursor:grab;margin:8px}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0}to{opacity: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-delay:0s;animation-duration:1ms}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__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__block-html-textarea{border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;margin:0;outline:none;overflow:hidden;padding:12px;resize:none;transition:padding .2s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-delay:0s;transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{position:relative;z-index:5}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.is-vertical .block-list-appender{margin-left:auto;margin-right:12px;margin-top:12px;width:24px}.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-list__block.has-block-overlay{cursor:default}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block{pointer-events:none}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block.has-block-overlay:before{left:0;right:0;width:auto}.block-editor-block-list__layout .is-dragging{background-color:currentColor!important;border-radius:2px!important;opacity:.05!important;pointer-events:none!important}.block-editor-block-list__layout .is-dragging::selection{background:#0000!important}.block-editor-block-list__layout .is-dragging:after{content:none!important}.block-editor-block-preview__content-iframe .block-list-appender{display:none}.block-editor-block-preview__live-content *{pointer-events:none}.block-editor-block-preview__live-content .block-list-appender{display:none}.block-editor-block-preview__live-content .components-button:disabled{opacity:1}.block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true],.block-editor-block-preview__live-content .components-placeholder{display:none}.block-editor-block-variation-picker__skip,.block-editor-block-variation-picker__variations,.wp-block-group-placeholder__variations{display:flex;flex-direction:row;flex-wrap:wrap;font-size:12px;gap:8px;justify-content:flex-start;list-style:none;margin:0;padding:0;width:100%}.block-editor-block-variation-picker__skip svg,.block-editor-block-variation-picker__variations svg,.wp-block-group-placeholder__variations svg{fill:#949494!important}.block-editor-block-variation-picker__skip .components-button,.block-editor-block-variation-picker__variations .components-button,.wp-block-group-placeholder__variations .components-button{padding:4px}.block-editor-block-variation-picker__skip .components-button:hover,.block-editor-block-variation-picker__variations .components-button:hover,.wp-block-group-placeholder__variations .components-button:hover{background:none!important}.block-editor-block-variation-picker__skip .components-button:hover svg,.block-editor-block-variation-picker__variations .components-button:hover svg,.wp-block-group-placeholder__variations .components-button:hover svg{fill:var(--wp-admin-theme-color)!important}.block-editor-block-variation-picker__skip>li,.block-editor-block-variation-picker__variations>li,.wp-block-group-placeholder__variations>li{align-items:center;display:flex;flex-direction:column;gap:4px;width:auto}.block-editor-button-block-appender{align-items:center;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;display:flex;flex-direction:column;height:auto;justify-content:center;width:100%}.block-editor-button-block-appender.components-button.components-button{padding:12px}.is-dark-theme .block-editor-button-block-appender{box-shadow:inset 0 0 0 1px #ffffffa6;color:#ffffffa6}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child{pointer-events:none}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after{border:1px dashed;border-radius:2px;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:after:before,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:after:before,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after:before,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter{opacity:0}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter:focus-within,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter:focus-within,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter:focus-within,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter:focus-within{opacity:1}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after{border:none}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter{visibility:visible}.block-editor-block-list__block:not(.is-selected)>.block-editor-block-list__block>.block-list-appender:only-child:after{border:none}.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{background-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px #ffffffa6;color:#ffffffa6;transition:background-color .2s ease-in-out}@media (prefers-reduced-motion:reduce){.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{transition:none}}.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 #0000}.block-editor-default-block-appender .block-editor-default-block-appender__content{opacity:.62}:where(.wp-site-blocks) .block-editor-default-block-appender>:first-child,:where(body .is-layout-constrained) .block-editor-default-block-appender>:first-child{margin-block-end:0;margin-block-start:0}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{left:0;line-height:0;position:absolute;top:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender{bottom:0;left:0;list-style:none;padding:0;position:absolute;z-index:2}.block-editor-block-list__block .block-list-appender.block-list-appender{line-height:0;margin:0}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender{height:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{background:#1e1e1e;box-shadow:none;color:#fff;display:none;flex-direction:row;height:24px;min-width:24px;padding:0!important;width:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content{display:none}.block-editor-block-list__block .block-list-appender:only-child{align-self:center;left:auto;line-height:inherit;list-style:none;position:relative}.block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content{display:block}.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle,.block-editor-block-list__block.is-selected>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected>.block-list-appender .block-list-appender__toggle{display:flex}.block-editor-default-block-appender__content{cursor:text}.block-editor-iframe__body{position:relative}.block-editor-iframe__container{height:100%;overflow-x:hidden;width:100%}.block-editor-iframe__scale-container{display:flex;height:100%;width:100%}.block-editor-iframe__scale-container.is-zoomed-out{margin-right:calc((var(--wp-block-editor-iframe-zoom-out-prev-container-width, 100vw) - var(--wp-block-editor-iframe-zoom-out-container-width, 100vw))*-1/2);width:var(--wp-block-editor-iframe-zoom-out-prev-container-width,100vw)}.block-editor-iframe__html{transform-origin:top center;transition:transform .3s}@media (prefers-reduced-motion:reduce){.block-editor-iframe__html{transition-delay:0s;transition-duration:0s}}.block-editor-iframe__html.is-zoomed-out{background-color:#ddd;border:calc(var(--wp-block-editor-iframe-zoom-out-frame-size)/var(--wp-block-editor-iframe-zoom-out-scale)) solid #ddd;margin-bottom:calc(var(--wp-block-editor-iframe-zoom-out-content-height)*(1 - var(--wp-block-editor-iframe-zoom-out-scale))*-1 + var(--wp-block-editor-iframe-zoom-out-frame-size)*2*-1 + -2px);transform:scale(var(--wp-block-editor-iframe-zoom-out-scale))}.block-editor-iframe__html.is-zoomed-out body{display:flex;flex-direction:column;min-height:calc((var(--wp-block-editor-iframe-zoom-out-inner-height) - 2*var(--wp-block-editor-iframe-zoom-out-frame-size))/var(--wp-block-editor-iframe-zoom-out-scale))}.block-editor-iframe__html.is-zoomed-out body>.is-root-container{display:flex;flex:1;flex-direction:column;height:100%}.block-editor-iframe__html.is-zoomed-out body>.is-root-container>main{flex:1}.block-editor-block-list__layout.has-overlay:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:60}.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{border:none;border-radius:0;flex-grow:1;margin:2px;min-width:200px;width:100%}@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__cancel-button.is-link{display:block;margin:1em}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px var(--wp-admin-theme-color);cursor:pointer}.block-editor-plain-text{border:none;box-shadow:none;color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0;width:100%}.rich-text [data-rich-text-placeholder]{pointer-events:none}.rich-text [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.rich-text:focus{outline:none}.rich-text:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable>p:first-child{margin-top:0}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}[data-rich-text-script]{display:inline}[data-rich-text-script]:before{background:#ff0;content:"</>"}.block-editor-warning{align-items:center;background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;display:flex;flex-wrap:wrap;padding:1em}.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}.block-editor-warning .block-editor-warning__message{color:#1e1e1e;font-size:13px;line-height:1.4;margin:0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{align-items:baseline;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;width:100%}.block-editor-warning .block-editor-warning__actions{align-items:center;display:flex;margin-top:1em}.block-editor-warning .block-editor-warning__action{margin:0 0 0 8px}.block-editor-warning__secondary{margin:auto 8px auto 0}.components-popover.block-editor-warning__dropdown{z-index:99998}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
diff --git a/wp-includes/css/dist/block-editor/content.css b/wp-includes/css/dist/block-editor/content.css
index 2d23ec1..4f18061 100644
--- a/wp-includes/css/dist/block-editor/content.css
+++ b/wp-includes/css/dist/block-editor/content.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -55,9 +55,6 @@
.block-editor-block-list__layout{
position:relative;
}
-.block-editor-block-list__layout:where(.block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)){
- border-radius:2px;
-}
.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection{
background:#0000;
}
@@ -65,7 +62,6 @@
animation:selection-overlay__fade-in-animation .1s ease-out;
animation-fill-mode:forwards;
background:var(--wp-admin-theme-color);
- border-radius:2px;
bottom:0;
content:"";
left:0;
@@ -84,26 +80,27 @@
}
}
.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted:after{
- box-shadow:none;
+ outline-color:#0000;
}
.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected{
outline:none;
}
.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus:after,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{
- border-radius:1px;
- bottom:1px;
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+ bottom:0;
content:"";
- left:1px;
- outline:2px solid #0000;
+ left:0;
+ outline-color:var(--wp-admin-theme-color);
+ outline-offset:calc((-1*var(--wp-admin-border-width-focus))/var(--wp-block-editor-iframe-zoom-out-scale, 1));
+ outline-style:solid;
+ outline-width:calc(var(--wp-admin-border-width-focus)/var(--wp-block-editor-iframe-zoom-out-scale, 1));
pointer-events:none;
position:absolute;
- right:1px;
- top:1px;
+ right:0;
+ top:0;
z-index:1;
}
.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-highlighted~.is-multi-selected:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus:after,.is-dark-theme .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff;
+ outline-color:#fff;
}
.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected:after{
border-radius:2px;
@@ -150,6 +147,9 @@
-webkit-user-select:none;
user-select:none;
}
+.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.has-child-selected,.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.is-selected{
+ z-index:20;
+}
.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{
z-index:1;
}
@@ -200,52 +200,57 @@
float:none;
}
-.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered{
- cursor:default;
-}
-.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:after{
- border-radius:1px;
- bottom:1px;
- box-shadow:0 0 0 1px var(--wp-admin-theme-color);
- content:"";
- left:1px;
- pointer-events:none;
- position:absolute;
- right:1px;
- top:1px;
-}
.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected{
cursor:default;
}
.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected.rich-text{
cursor:unset;
}
-.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected:after{
- border-radius:2px;
- bottom:1px;
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:not(.is-selected):after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline):not(.rich-text):not([contenteditable=true]).is-selected:after{
+ bottom:0;
content:"";
- left:1px;
+ left:0;
+ outline-color:var(--wp-admin-theme-color);
+ outline-offset:calc((-1*var(--wp-admin-border-width-focus))/var(--wp-block-editor-iframe-zoom-out-scale, 1));
+ outline-style:solid;
+ outline-width:calc(var(--wp-admin-border-width-focus)/var(--wp-block-editor-iframe-zoom-out-scale, 1));
pointer-events:none;
position:absolute;
- right:1px;
- top:1px;
+ right:0;
+ top:0;
+}
+.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{
+ outline-color:var(--wp-block-synced-color);
+}
+.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{
+ outline-color:#fff;
}
-@keyframes block-editor-has-editable-outline__fade-out-animation{
+@keyframes block-editor-is-editable__animation{
0%{
- border-color:rgba(var(--wp-admin-theme-color--rgb), 1);
+ background-color:rgba(var(--wp-admin-theme-color--rgb), .1);
}
to{
- border-color:rgba(var(--wp-admin-theme-color--rgb), 0);
+ background-color:rgba(var(--wp-admin-theme-color--rgb), 0);
}
}
-.is-root-container:not([inert]) .block-editor-block-list__block.has-editable-outline:after{
- animation:block-editor-has-editable-outline__fade-out-animation .3s ease-out;
- animation-delay:1s;
- animation-fill-mode:forwards;
- border:1px dotted rgba(var(--wp-admin-theme-color--rgb), 1);
- border-radius:2px;
+@keyframes block-editor-is-editable__animation_reduce-motion{
+ 0%{
+ background-color:rgba(var(--wp-admin-theme-color--rgb), .1);
+ }
+ 99%{
+ background-color:rgba(var(--wp-admin-theme-color--rgb), .1);
+ }
+ to{
+ background-color:rgba(var(--wp-admin-theme-color--rgb), 0);
+ }
+}
+.is-root-container:not([inert]) .block-editor-block-list__block.is-reusable.is-selected .block-editor-block-list__block.has-editable-outline:after{
+ animation-delay:.1s;
+ animation-duration:.8s;
+ animation-fill-mode:backwards;
+ animation-name:block-editor-is-editable__animation;
+ animation-timing-function:ease-out;
bottom:0;
content:"";
left:0;
@@ -255,9 +260,9 @@
top:0;
}
@media (prefers-reduced-motion:reduce){
- .is-root-container:not([inert]) .block-editor-block-list__block.has-editable-outline:after{
+ .is-root-container:not([inert]) .block-editor-block-list__block.is-reusable.is-selected .block-editor-block-list__block.has-editable-outline:after{
animation-delay:0s;
- animation-duration:1ms;
+ animation-name:block-editor-is-editable__animation_reduce-motion;
}
}
@@ -361,11 +366,6 @@
margin-bottom:auto;
}
-.block-editor-iframe__body{
- transform-origin:top center;
- transition:all .3s;
-}
-
.is-vertical .block-list-appender{
margin-left:12px;
margin-right:auto;
@@ -385,38 +385,13 @@
.block-editor-block-list__block.has-block-overlay{
cursor:default;
}
-.block-editor-block-list__block.has-block-overlay:before{
- background:#0000;
- border:none;
- border-radius:2px;
- content:"";
- height:100%;
- left:0;
- position:absolute;
- top:0;
- width:100%;
- z-index:10;
-}
-.block-editor-block-list__block.has-block-overlay:not(.is-multi-selected):after{
- content:none !important;
-}
-.block-editor-block-list__block.has-block-overlay:hover:not(.is-dragging-blocks):not(.is-multi-selected):before{
- background:rgba(var(--wp-admin-theme-color--rgb), .04);
- box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset;
-}
-.block-editor-block-list__block.has-block-overlay.is-reusable:hover:not(.is-dragging-blocks):not(.is-multi-selected):before,.block-editor-block-list__block.has-block-overlay.wp-block-template-part:hover:not(.is-dragging-blocks):not(.is-multi-selected):before{
- background:rgba(var(--wp-block-synced-color--rgb), .04);
- box-shadow:0 0 0 1px var(--wp-block-synced-color) inset;
-}
-.block-editor-block-list__block.has-block-overlay.is-selected:not(.is-dragging-blocks):before{
- box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset;
-}
.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block{
pointer-events:none;
}
-.block-editor-iframe__body.is-zoomed-out .block-editor-block-list__block.has-block-overlay:before{
- left:calc(50% - 50vw);
- width:100vw;
+.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block.has-block-overlay:before{
+ left:0;
+ right:0;
+ width:auto;
}
.block-editor-block-list__layout .is-dragging{
@@ -449,71 +424,37 @@
display:none;
}
-.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{
+.block-editor-block-variation-picker__skip,.block-editor-block-variation-picker__variations,.wp-block-group-placeholder__variations{
display:flex;
flex-direction:row;
flex-wrap:wrap;
+ font-size:12px;
+ gap:8px;
justify-content:flex-start;
list-style:none;
- margin:16px 0;
+ margin:0;
padding:0;
width:100%;
}
-.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{
- flex-shrink:1;
- list-style:none;
- margin:8px 20px 0 0;
- text-align:center;
- width:75px;
+.block-editor-block-variation-picker__skip svg,.block-editor-block-variation-picker__variations svg,.wp-block-group-placeholder__variations svg{
+ fill:#949494 !important;
}
-.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{
- display:inline-flex;
- margin-right:0;
+.block-editor-block-variation-picker__skip .components-button,.block-editor-block-variation-picker__variations .components-button,.wp-block-group-placeholder__variations .components-button{
+ padding:4px;
}
-.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{
- display:block;
- font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
- font-size:12px;
- line-height:1.4;
+.block-editor-block-variation-picker__skip .components-button:hover,.block-editor-block-variation-picker__variations .components-button:hover,.wp-block-group-placeholder__variations .components-button:hover{
+ background:none !important;
}
-
-.block-editor-block-variation-picker__variation{
- width:100%;
+.block-editor-block-variation-picker__skip .components-button:hover svg,.block-editor-block-variation-picker__variations .components-button:hover svg,.wp-block-group-placeholder__variations .components-button:hover svg{
+ fill:var(--wp-admin-theme-color) !important;
}
-.block-editor-block-variation-picker__variation.components-button.has-icon{
- justify-content:center;
+.block-editor-block-variation-picker__skip>li,.block-editor-block-variation-picker__variations>li,.wp-block-group-placeholder__variations>li{
+ align-items:center;
+ display:flex;
+ flex-direction:column;
+ gap:4px;
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{
align-items:center;
@@ -569,7 +510,10 @@
top:0;
}
.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter{
- visibility:hidden;
+ opacity:0;
+}
+.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter:focus-within,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter:focus-within,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter:focus-within,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter:focus-within{
+ opacity:1;
}
.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after{
border:none;
@@ -603,7 +547,8 @@
.block-editor-default-block-appender .block-editor-default-block-appender__content{
opacity:.62;
}
-:where(body .is-layout-constrained) .block-editor-default-block-appender>:first-child:first-child{
+:where(.wp-site-blocks) .block-editor-default-block-appender>:first-child,:where(body .is-layout-constrained) .block-editor-default-block-appender>:first-child{
+ margin-block-end:0;
margin-block-start:0;
}
.block-editor-default-block-appender .components-drop-zone__content-icon{
@@ -683,6 +628,59 @@
cursor:text;
}
+.block-editor-iframe__body{
+ position:relative;
+}
+
+.block-editor-iframe__container{
+ height:100%;
+ overflow-x:hidden;
+ width:100%;
+}
+
+.block-editor-iframe__scale-container{
+ display:flex;
+ height:100%;
+ width:100%;
+}
+
+.block-editor-iframe__scale-container.is-zoomed-out{
+ margin-left:calc((var(--wp-block-editor-iframe-zoom-out-prev-container-width, 100vw) - var(--wp-block-editor-iframe-zoom-out-container-width, 100vw))*-1/2);
+ width:var(--wp-block-editor-iframe-zoom-out-prev-container-width, 100vw);
+}
+
+.block-editor-iframe__html{
+ transform-origin:top center;
+ transition:transform .3s;
+}
+@media (prefers-reduced-motion:reduce){
+ .block-editor-iframe__html{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
+}
+
+.block-editor-iframe__html.is-zoomed-out{
+ background-color:#ddd;
+ border:calc(var(--wp-block-editor-iframe-zoom-out-frame-size)/var(--wp-block-editor-iframe-zoom-out-scale)) solid #ddd;
+ margin-bottom:calc(var(--wp-block-editor-iframe-zoom-out-content-height)*(1 - var(--wp-block-editor-iframe-zoom-out-scale))*-1 + var(--wp-block-editor-iframe-zoom-out-frame-size)*2*-1 + -2px);
+ transform:scale(var(--wp-block-editor-iframe-zoom-out-scale));
+}
+.block-editor-iframe__html.is-zoomed-out body{
+ display:flex;
+ flex-direction:column;
+ min-height:calc((var(--wp-block-editor-iframe-zoom-out-inner-height) - 2*var(--wp-block-editor-iframe-zoom-out-frame-size))/var(--wp-block-editor-iframe-zoom-out-scale));
+}
+.block-editor-iframe__html.is-zoomed-out body>.is-root-container{
+ display:flex;
+ flex:1;
+ flex-direction:column;
+ height:100%;
+}
+.block-editor-iframe__html.is-zoomed-out body>.is-root-container>main{
+ flex:1;
+}
+
.block-editor-block-list__layout.has-overlay:after{
bottom:0;
content:"";
@@ -693,10 +691,6 @@
z-index:60;
}
-.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{
- margin-bottom:0;
-}
-
.block-editor-media-placeholder__url-input-form{
display:flex;
}
@@ -718,10 +712,6 @@
flex-shrink:1;
}
-.block-editor-media-placeholder__button{
- margin-bottom:.5rem;
-}
-
.block-editor-media-placeholder__cancel-button.is-link{
display:block;
margin:1em;
diff --git a/wp-includes/css/dist/block-editor/content.min.css b/wp-includes/css/dist/block-editor/content.min.css
index d4f3b8e..1c22d67 100644
--- a/wp-includes/css/dist/block-editor/content.min.css
+++ b/wp-includes/css/dist/block-editor/content.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-styles .block-editor-block-list__block{margin:0}@keyframes selection-overlay__fade-in-animation{0%{opacity:0}to{opacity:.4}}:root .block-editor-block-list__layout::selection,:root .has-multi-selection .block-editor-block-list__layout::selection,_::-webkit-full-page-media,_:future{background-color:initial}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout:where(.block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)){border-radius:2px}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection{background:#0000}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation:selection-overlay__fade-in-animation .1s ease-out;animation-fill-mode:forwards;background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.4;outline:2px solid #0000;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation-delay:0s;animation-duration:1ms}}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted:after{box-shadow:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected{outline:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus:after,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{border-radius:1px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:1px;outline:2px solid #0000;pointer-events:none;position:absolute;right:1px;top:1px;z-index:1}.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-highlighted~.is-multi-selected:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus:after,.is-dark-theme .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected:after{border-radius:2px;border-top:4px solid #ccc;bottom:auto;box-shadow:none;content:"";left:0;pointer-events:none;position:absolute;right:0;top:-14px;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;z-index:0}.block-editor-block-list__layout .is-block-moving-mode.can-insert-moving-block.block-editor-block-list__block.is-selected:after{border-color:var(--wp-admin-theme-color)}.has-multi-selection .block-editor-block-list__layout{-webkit-user-select:none;user-select:none}.block-editor-block-list__layout [class^=components-]{-webkit-user-select:text;user-select:text}.is-block-moving-mode.block-editor-block-list__block-selection-button{font-size:1px;height:1px;opacity:0;padding:0}.block-editor-block-list__layout .block-editor-block-list__block{overflow-wrap:break-word;pointer-events:auto;position:relative;-webkit-user-select:text;user-select:text}.block-editor-block-list__layout .block-editor-block-list__block.is-editing-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.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 .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:48px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-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{background-color:#fff6;border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:initial}.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}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.has-child-selected:after{box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:after{border-radius:1px;bottom:1px;box-shadow:0 0 0 1px var(--wp-admin-theme-color);content:"";left:1px;pointer-events:none;position:absolute;right:1px;top:1px}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected.rich-text{cursor:unset}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected:after{border-radius:2px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:1px;pointer-events:none;position:absolute;right:1px;top:1px}@keyframes block-editor-has-editable-outline__fade-out-animation{0%{border-color:rgba(var(--wp-admin-theme-color--rgb),1)}to{border-color:rgba(var(--wp-admin-theme-color--rgb),0)}}.is-root-container:not([inert]) .block-editor-block-list__block.has-editable-outline:after{animation:block-editor-has-editable-outline__fade-out-animation .3s ease-out;animation-delay:1s;animation-fill-mode:forwards;border:1px dotted rgba(var(--wp-admin-theme-color--rgb),1);border-radius:2px;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}@media (prefers-reduced-motion:reduce){.is-root-container:not([inert]) .block-editor-block-list__block.has-editable-outline:after{animation-delay:0s;animation-duration:1ms}}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){opacity:.2;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){transition-delay:0s;transition-duration:0s}}.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected{opacity:1}.wp-block.alignleft,.wp-block.alignright,.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-site-blocks>[data-align=left]{float:left;margin-right:2em}.wp-site-blocks>[data-align=right]{float:right;margin-left:2em}.wp-site-blocks>[data-align=center]{justify-content:center;margin-left:auto;margin-right:auto}.block-editor-block-list .block-editor-inserter{cursor:move;cursor:grab;margin:8px}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0}to{opacity: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-delay:0s;animation-duration:1ms}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__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__block-html-textarea{border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;margin:0;outline:none;overflow:hidden;padding:12px;resize:none;transition:padding .2s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-delay:0s;transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{position:relative;z-index:5}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-iframe__body{transform-origin:top center;transition:all .3s}.is-vertical .block-list-appender{margin-left:12px;margin-right:auto;margin-top:12px;width:24px}.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-list__block.has-block-overlay{cursor:default}.block-editor-block-list__block.has-block-overlay:before{background:#0000;border:none;border-radius:2px;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:10}.block-editor-block-list__block.has-block-overlay:not(.is-multi-selected):after{content:none!important}.block-editor-block-list__block.has-block-overlay:hover:not(.is-dragging-blocks):not(.is-multi-selected):before{background:rgba(var(--wp-admin-theme-color--rgb),.04);box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset}.block-editor-block-list__block.has-block-overlay.is-reusable:hover:not(.is-dragging-blocks):not(.is-multi-selected):before,.block-editor-block-list__block.has-block-overlay.wp-block-template-part:hover:not(.is-dragging-blocks):not(.is-multi-selected):before{background:rgba(var(--wp-block-synced-color--rgb),.04);box-shadow:0 0 0 1px var(--wp-block-synced-color) inset}.block-editor-block-list__block.has-block-overlay.is-selected:not(.is-dragging-blocks):before{box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block{pointer-events:none}.block-editor-iframe__body.is-zoomed-out .block-editor-block-list__block.has-block-overlay:before{left:calc(50% - 50vw);width:100vw}.block-editor-block-list__layout .is-dragging{background-color:currentColor!important;border-radius:2px!important;opacity:.05!important;pointer-events:none!important}.block-editor-block-list__layout .is-dragging::selection{background:#0000!important}.block-editor-block-list__layout .is-dragging:after{content:none!important}.block-editor-block-preview__content-iframe .block-list-appender{display:none}.block-editor-block-preview__live-content *{pointer-events:none}.block-editor-block-preview__live-content .block-list-appender{display:none}.block-editor-block-preview__live-content .components-button:disabled{opacity:1}.block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true],.block-editor-block-preview__live-content .components-placeholder{display:none}.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;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;list-style:none;margin:16px 0;padding:0;width:100%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{flex-shrink:1;list-style:none;margin:8px 20px 0 0;text-align:center;width:75px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:inline-flex;margin-right:0}.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{display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;line-height:1.4}.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{align-items:center;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;display:flex;flex-direction:column;height:auto;justify-content:center;width:100%}.block-editor-button-block-appender.components-button.components-button{padding:12px}.is-dark-theme .block-editor-button-block-appender{box-shadow:inset 0 0 0 1px #ffffffa6;color:#ffffffa6}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child{pointer-events:none}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after{border:1px dashed;border-radius:2px;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:after:before,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:after:before,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after:before,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter{visibility:hidden}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after{border:none}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter{visibility:visible}.block-editor-block-list__block:not(.is-selected)>.block-editor-block-list__block>.block-list-appender:only-child:after{border:none}.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{background-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px #ffffffa6;color:#ffffffa6;transition:background-color .2s ease-in-out}@media (prefers-reduced-motion:reduce){.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{transition:none}}.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 #0000}.block-editor-default-block-appender .block-editor-default-block-appender__content{opacity:.62}:where(body .is-layout-constrained) .block-editor-default-block-appender>:first-child:first-child{margin-block-start:0}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{line-height:0;position:absolute;right:0;top:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender{bottom:0;list-style:none;padding:0;position:absolute;right:0;z-index:2}.block-editor-block-list__block .block-list-appender.block-list-appender{line-height:0;margin:0}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender{height:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{background:#1e1e1e;box-shadow:none;color:#fff;display:none;flex-direction:row;height:24px;min-width:24px;padding:0!important;width:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content{display:none}.block-editor-block-list__block .block-list-appender:only-child{align-self:center;line-height:inherit;list-style:none;position:relative;right:auto}.block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content{display:block}.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle,.block-editor-block-list__block.is-selected>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected>.block-list-appender .block-list-appender__toggle{display:flex}.block-editor-default-block-appender__content{cursor:text}.block-editor-block-list__layout.has-overlay:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:60}.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{border:none;border-radius:0;flex-grow:1;margin:2px;min-width:200px;width:100%}@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{display:block;margin:1em}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px var(--wp-admin-theme-color);cursor:pointer}.block-editor-plain-text{border:none;box-shadow:none;color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0;width:100%}.rich-text [data-rich-text-placeholder]{pointer-events:none}.rich-text [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.rich-text:focus{outline:none}.rich-text:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable>p:first-child{margin-top:0}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}[data-rich-text-script]{display:inline}[data-rich-text-script]:before{background:#ff0;content:"</>"}.block-editor-warning{align-items:center;background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;display:flex;flex-wrap:wrap;padding:1em}.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}.block-editor-warning .block-editor-warning__message{color:#1e1e1e;font-size:13px;line-height:1.4;margin:0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{align-items:baseline;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;width:100%}.block-editor-warning .block-editor-warning__actions{align-items:center;display:flex;margin-top:1em}.block-editor-warning .block-editor-warning__action{margin:0 8px 0 0}.block-editor-warning__secondary{margin:auto 0 auto 8px}.components-popover.block-editor-warning__dropdown{z-index:99998}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-styles .block-editor-block-list__block{margin:0}@keyframes selection-overlay__fade-in-animation{0%{opacity:0}to{opacity:.4}}:root .block-editor-block-list__layout::selection,:root .has-multi-selection .block-editor-block-list__layout::selection,_::-webkit-full-page-media,_:future{background-color:initial}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection{background:#0000}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation:selection-overlay__fade-in-animation .1s ease-out;animation-fill-mode:forwards;background:var(--wp-admin-theme-color);bottom:0;content:"";left:0;opacity:.4;outline:2px solid #0000;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation-delay:0s;animation-duration:1ms}}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted:after{outline-color:#0000}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected{outline:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus:after,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{bottom:0;content:"";left:0;outline-color:var(--wp-admin-theme-color);outline-offset:calc((-1*var(--wp-admin-border-width-focus))/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)/var(--wp-block-editor-iframe-zoom-out-scale, 1));pointer-events:none;position:absolute;right:0;top:0;z-index:1}.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-highlighted~.is-multi-selected:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus:after,.is-dark-theme .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{outline-color:#fff}.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected:after{border-radius:2px;border-top:4px solid #ccc;bottom:auto;box-shadow:none;content:"";left:0;pointer-events:none;position:absolute;right:0;top:-14px;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;z-index:0}.block-editor-block-list__layout .is-block-moving-mode.can-insert-moving-block.block-editor-block-list__block.is-selected:after{border-color:var(--wp-admin-theme-color)}.has-multi-selection .block-editor-block-list__layout{-webkit-user-select:none;user-select:none}.block-editor-block-list__layout [class^=components-]{-webkit-user-select:text;user-select:text}.is-block-moving-mode.block-editor-block-list__block-selection-button{font-size:1px;height:1px;opacity:0;padding:0}.block-editor-block-list__layout .block-editor-block-list__block{overflow-wrap:break-word;pointer-events:auto;position:relative;-webkit-user-select:text;user-select:text}.block-editor-block-list__layout .block-editor-block-list__block.is-editing-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.has-child-selected,.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.is-selected{z-index:20}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.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 .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:48px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-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{background-color:#fff6;border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:initial}.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}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.has-child-selected:after{box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected.rich-text{cursor:unset}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:not(.is-selected):after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline):not(.rich-text):not([contenteditable=true]).is-selected:after{bottom:0;content:"";left:0;outline-color:var(--wp-admin-theme-color);outline-offset:calc((-1*var(--wp-admin-border-width-focus))/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)/var(--wp-block-editor-iframe-zoom-out-scale, 1));pointer-events:none;position:absolute;right:0;top:0}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{outline-color:var(--wp-block-synced-color)}.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{outline-color:#fff}@keyframes block-editor-is-editable__animation{0%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}to{background-color:rgba(var(--wp-admin-theme-color--rgb),0)}}@keyframes block-editor-is-editable__animation_reduce-motion{0%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}99%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}to{background-color:rgba(var(--wp-admin-theme-color--rgb),0)}}.is-root-container:not([inert]) .block-editor-block-list__block.is-reusable.is-selected .block-editor-block-list__block.has-editable-outline:after{animation-delay:.1s;animation-duration:.8s;animation-fill-mode:backwards;animation-name:block-editor-is-editable__animation;animation-timing-function:ease-out;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}@media (prefers-reduced-motion:reduce){.is-root-container:not([inert]) .block-editor-block-list__block.is-reusable.is-selected .block-editor-block-list__block.has-editable-outline:after{animation-delay:0s;animation-name:block-editor-is-editable__animation_reduce-motion}}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){opacity:.2;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){transition-delay:0s;transition-duration:0s}}.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected{opacity:1}.wp-block.alignleft,.wp-block.alignright,.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-site-blocks>[data-align=left]{float:left;margin-right:2em}.wp-site-blocks>[data-align=right]{float:right;margin-left:2em}.wp-site-blocks>[data-align=center]{justify-content:center;margin-left:auto;margin-right:auto}.block-editor-block-list .block-editor-inserter{cursor:move;cursor:grab;margin:8px}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0}to{opacity: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-delay:0s;animation-duration:1ms}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__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__block-html-textarea{border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;margin:0;outline:none;overflow:hidden;padding:12px;resize:none;transition:padding .2s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-delay:0s;transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{position:relative;z-index:5}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.is-vertical .block-list-appender{margin-left:12px;margin-right:auto;margin-top:12px;width:24px}.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-list__block.has-block-overlay{cursor:default}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block{pointer-events:none}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block.has-block-overlay:before{left:0;right:0;width:auto}.block-editor-block-list__layout .is-dragging{background-color:currentColor!important;border-radius:2px!important;opacity:.05!important;pointer-events:none!important}.block-editor-block-list__layout .is-dragging::selection{background:#0000!important}.block-editor-block-list__layout .is-dragging:after{content:none!important}.block-editor-block-preview__content-iframe .block-list-appender{display:none}.block-editor-block-preview__live-content *{pointer-events:none}.block-editor-block-preview__live-content .block-list-appender{display:none}.block-editor-block-preview__live-content .components-button:disabled{opacity:1}.block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true],.block-editor-block-preview__live-content .components-placeholder{display:none}.block-editor-block-variation-picker__skip,.block-editor-block-variation-picker__variations,.wp-block-group-placeholder__variations{display:flex;flex-direction:row;flex-wrap:wrap;font-size:12px;gap:8px;justify-content:flex-start;list-style:none;margin:0;padding:0;width:100%}.block-editor-block-variation-picker__skip svg,.block-editor-block-variation-picker__variations svg,.wp-block-group-placeholder__variations svg{fill:#949494!important}.block-editor-block-variation-picker__skip .components-button,.block-editor-block-variation-picker__variations .components-button,.wp-block-group-placeholder__variations .components-button{padding:4px}.block-editor-block-variation-picker__skip .components-button:hover,.block-editor-block-variation-picker__variations .components-button:hover,.wp-block-group-placeholder__variations .components-button:hover{background:none!important}.block-editor-block-variation-picker__skip .components-button:hover svg,.block-editor-block-variation-picker__variations .components-button:hover svg,.wp-block-group-placeholder__variations .components-button:hover svg{fill:var(--wp-admin-theme-color)!important}.block-editor-block-variation-picker__skip>li,.block-editor-block-variation-picker__variations>li,.wp-block-group-placeholder__variations>li{align-items:center;display:flex;flex-direction:column;gap:4px;width:auto}.block-editor-button-block-appender{align-items:center;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;display:flex;flex-direction:column;height:auto;justify-content:center;width:100%}.block-editor-button-block-appender.components-button.components-button{padding:12px}.is-dark-theme .block-editor-button-block-appender{box-shadow:inset 0 0 0 1px #ffffffa6;color:#ffffffa6}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child{pointer-events:none}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after{border:1px dashed;border-radius:2px;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:after:before,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:after:before,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after:before,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter{opacity:0}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter:focus-within,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter:focus-within,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter:focus-within,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter:focus-within{opacity:1}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after{border:none}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter{visibility:visible}.block-editor-block-list__block:not(.is-selected)>.block-editor-block-list__block>.block-list-appender:only-child:after{border:none}.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{background-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px #ffffffa6;color:#ffffffa6;transition:background-color .2s ease-in-out}@media (prefers-reduced-motion:reduce){.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{transition:none}}.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 #0000}.block-editor-default-block-appender .block-editor-default-block-appender__content{opacity:.62}:where(.wp-site-blocks) .block-editor-default-block-appender>:first-child,:where(body .is-layout-constrained) .block-editor-default-block-appender>:first-child{margin-block-end:0;margin-block-start:0}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{line-height:0;position:absolute;right:0;top:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender{bottom:0;list-style:none;padding:0;position:absolute;right:0;z-index:2}.block-editor-block-list__block .block-list-appender.block-list-appender{line-height:0;margin:0}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender{height:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{background:#1e1e1e;box-shadow:none;color:#fff;display:none;flex-direction:row;height:24px;min-width:24px;padding:0!important;width:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content{display:none}.block-editor-block-list__block .block-list-appender:only-child{align-self:center;line-height:inherit;list-style:none;position:relative;right:auto}.block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content{display:block}.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle,.block-editor-block-list__block.is-selected>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected>.block-list-appender .block-list-appender__toggle{display:flex}.block-editor-default-block-appender__content{cursor:text}.block-editor-iframe__body{position:relative}.block-editor-iframe__container{height:100%;overflow-x:hidden;width:100%}.block-editor-iframe__scale-container{display:flex;height:100%;width:100%}.block-editor-iframe__scale-container.is-zoomed-out{margin-left:calc((var(--wp-block-editor-iframe-zoom-out-prev-container-width, 100vw) - var(--wp-block-editor-iframe-zoom-out-container-width, 100vw))*-1/2);width:var(--wp-block-editor-iframe-zoom-out-prev-container-width,100vw)}.block-editor-iframe__html{transform-origin:top center;transition:transform .3s}@media (prefers-reduced-motion:reduce){.block-editor-iframe__html{transition-delay:0s;transition-duration:0s}}.block-editor-iframe__html.is-zoomed-out{background-color:#ddd;border:calc(var(--wp-block-editor-iframe-zoom-out-frame-size)/var(--wp-block-editor-iframe-zoom-out-scale)) solid #ddd;margin-bottom:calc(var(--wp-block-editor-iframe-zoom-out-content-height)*(1 - var(--wp-block-editor-iframe-zoom-out-scale))*-1 + var(--wp-block-editor-iframe-zoom-out-frame-size)*2*-1 + -2px);transform:scale(var(--wp-block-editor-iframe-zoom-out-scale))}.block-editor-iframe__html.is-zoomed-out body{display:flex;flex-direction:column;min-height:calc((var(--wp-block-editor-iframe-zoom-out-inner-height) - 2*var(--wp-block-editor-iframe-zoom-out-frame-size))/var(--wp-block-editor-iframe-zoom-out-scale))}.block-editor-iframe__html.is-zoomed-out body>.is-root-container{display:flex;flex:1;flex-direction:column;height:100%}.block-editor-iframe__html.is-zoomed-out body>.is-root-container>main{flex:1}.block-editor-block-list__layout.has-overlay:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:60}.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{border:none;border-radius:0;flex-grow:1;margin:2px;min-width:200px;width:100%}@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__cancel-button.is-link{display:block;margin:1em}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px var(--wp-admin-theme-color);cursor:pointer}.block-editor-plain-text{border:none;box-shadow:none;color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0;width:100%}.rich-text [data-rich-text-placeholder]{pointer-events:none}.rich-text [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.rich-text:focus{outline:none}.rich-text:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable>p:first-child{margin-top:0}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}[data-rich-text-script]{display:inline}[data-rich-text-script]:before{background:#ff0;content:"</>"}.block-editor-warning{align-items:center;background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;display:flex;flex-wrap:wrap;padding:1em}.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}.block-editor-warning .block-editor-warning__message{color:#1e1e1e;font-size:13px;line-height:1.4;margin:0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{align-items:baseline;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;width:100%}.block-editor-warning .block-editor-warning__actions{align-items:center;display:flex;margin-top:1em}.block-editor-warning .block-editor-warning__action{margin:0 8px 0 0}.block-editor-warning__secondary{margin:auto 0 auto 8px}.components-popover.block-editor-warning__dropdown{z-index:99998}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
diff --git a/wp-includes/css/dist/block-editor/default-editor-styles-rtl.css b/wp-includes/css/dist/block-editor/default-editor-styles-rtl.css
index 64f9b9f..cfd8edd 100644
--- a/wp-includes/css/dist/block-editor/default-editor-styles-rtl.css
+++ b/wp-includes/css/dist/block-editor/default-editor-styles-rtl.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
diff --git a/wp-includes/css/dist/block-editor/default-editor-styles-rtl.min.css b/wp-includes/css/dist/block-editor/default-editor-styles-rtl.min.css
index 8305845..e6d71d6 100644
--- a/wp-includes/css/dist/block-editor/default-editor-styles-rtl.min.css
+++ b/wp-includes/css/dist/block-editor/default-editor-styles-rtl.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px;line-height:1.5;--wp--style--block-gap:2em}p{line-height:1.8}.editor-post-title__block{font-size:2.5em;font-weight:800;margin-bottom:1em;margin-top:2em} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px;line-height:1.5;--wp--style--block-gap:2em}p{line-height:1.8}.editor-post-title__block{font-size:2.5em;font-weight:800;margin-bottom:1em;margin-top:2em} \ No newline at end of file
diff --git a/wp-includes/css/dist/block-editor/default-editor-styles.css b/wp-includes/css/dist/block-editor/default-editor-styles.css
index 64f9b9f..cfd8edd 100644
--- a/wp-includes/css/dist/block-editor/default-editor-styles.css
+++ b/wp-includes/css/dist/block-editor/default-editor-styles.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
diff --git a/wp-includes/css/dist/block-editor/default-editor-styles.min.css b/wp-includes/css/dist/block-editor/default-editor-styles.min.css
index 8305845..e6d71d6 100644
--- a/wp-includes/css/dist/block-editor/default-editor-styles.min.css
+++ b/wp-includes/css/dist/block-editor/default-editor-styles.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px;line-height:1.5;--wp--style--block-gap:2em}p{line-height:1.8}.editor-post-title__block{font-size:2.5em;font-weight:800;margin-bottom:1em;margin-top:2em} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px;line-height:1.5;--wp--style--block-gap:2em}p{line-height:1.8}.editor-post-title__block{font-size:2.5em;font-weight:800;margin-bottom:1em;margin-top:2em} \ 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 2b826fe..92ae066 100644
--- a/wp-includes/css/dist/block-editor/style-rtl.css
+++ b/wp-includes/css/dist/block-editor/style-rtl.css
@@ -1,4 +1,3 @@
-@charset "UTF-8";
:root{
--wp-admin-theme-color:#007cba;
--wp-admin-theme-color--rgb:0, 124, 186;
@@ -9,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -35,34 +34,14 @@
margin-top:0;
}
-.block-editor-block-bindings-toolbar-indicator{
- align-items:center;
- display:inline-flex;
- height:48px;
- padding:6px;
-}
-.block-editor-block-bindings-toolbar-indicator svg g{
- stroke:var(--wp-bound-block-color);
- fill:#0000;
- stroke-width:1.5;
- stroke-linecap:round;
- stroke-linejoin:round;
-}
-
iframe[name=editor-canvas]{
+ background-color:initial;
+ box-sizing:border-box;
display:block;
height:100%;
width:100%;
}
-iframe[name=editor-canvas]:not(.has-editor-padding){
- background-color:#fff;
-}
-
-iframe[name=editor-canvas].has-editor-padding{
- padding:24px 24px 0;
-}
-
.block-editor-block-icon{
align-items:center;
display:flex;
@@ -252,8 +231,8 @@ iframe[name=editor-canvas].has-editor-padding{
}
}
.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .block-editor-block-list__block-selection-button{
- margin-bottom:12px;
- margin-top:12px;
+ margin-bottom:8px;
+ margin-top:8px;
pointer-events:all;
}
.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar{
@@ -312,6 +291,14 @@ iframe[name=editor-canvas].has-editor-padding{
display:none;
}
+.components-popover.block-editor-block-popover__inbetween .block-editor-button-pattern-inserter__button{
+ pointer-events:all;
+ position:absolute;
+ right:50%;
+ top:50%;
+ transform:translateX(50%) translateY(-50%);
+}
+
.block-editor-block-lock-modal{
z-index:1000001;
}
@@ -436,10 +423,6 @@ iframe[name=editor-canvas].has-editor-padding{
padding:16px;
}
-.block-editor-block-card__content{
- flex-grow:1;
-}
-
.block-editor-block-card__title{
font-weight:500;
}
@@ -450,13 +433,6 @@ iframe[name=editor-canvas].has-editor-padding{
padding:3px 0;
}
-.block-editor-block-card__description{
- display:block;
- font-size:13px;
- line-height:1.4;
- margin-top:4px;
-}
-
.block-editor-block-card .block-editor-block-icon{
flex:0 0 24px;
height:24px;
@@ -683,7 +659,7 @@ iframe[name=editor-canvas].has-editor-padding{
outline:none;
}
.components-button.block-editor-block-mover-button:focus-visible:before{
- box-shadow:inset 0 0 0 1px var(--wp-components-color-background, #fff), 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+ box-shadow:inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:2px solid #0000;
}
@@ -701,7 +677,7 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-block-patterns-list__list-item{
cursor:pointer;
- margin-bottom:24px;
+ margin-bottom:16px;
position:relative;
}
.block-editor-block-patterns-list__list-item.is-placeholder{
@@ -716,30 +692,41 @@ iframe[name=editor-canvas].has-editor-padding{
scroll-margin-bottom:56px;
scroll-margin-top:24px;
}
+.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{
+ flex-grow:1;
+ font-size:12px;
+ text-align:right;
+}
.block-editor-block-patterns-list__item .block-editor-block-preview__container{
align-items:center;
- border-radius:4px;
+ border-radius:2px;
display:flex;
overflow:hidden;
}
-.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{
- flex-grow:1;
- text-align:right;
+.block-editor-block-patterns-list__item .block-editor-block-preview__container:after{
+ border-radius:2px;
+ outline:1px solid #0000001a;
+ outline-offset:-1px;
}
-.block-editor-block-patterns-list__item:hover .block-editor-block-preview__container{
- box-shadow:0 0 0 2px #1e1e1e;
+.block-editor-block-patterns-list__item:hover:not(:focus) .block-editor-block-preview__container:after{
+ outline-color:#0000004d;
}
-.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff, 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #1e1e1e;
- outline:2px solid #0000;
- outline-offset:2px;
+.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container:after{
+ outline-color:var(--wp-admin-theme-color);
+ outline-offset:calc(-1*var(--wp-admin-border-width-focus));
+ outline-width:var(--wp-admin-border-width-focus);
+ transition:outline .1s linear;
}
-.block-editor-block-patterns-list__item.block-editor-block-patterns-list__list-item-synced:focus .block-editor-block-preview__container,.block-editor-block-patterns-list__item.block-editor-block-patterns-list__list-item-synced:hover .block-editor-block-preview__container{
- box-shadow:0 0 0 2px var(--wp-block-synced-color), 0 15px 25px #00000012;
+@media (prefers-reduced-motion:reduce){
+ .block-editor-block-patterns-list__item:focus .block-editor-block-preview__container:after{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
}
-.block-editor-block-patterns-list__item .block-editor-patterns__pattern-details{
+.block-editor-block-patterns-list__item .block-editor-patterns__pattern-details:not(:empty){
align-items:center;
margin-top:8px;
+ padding-bottom:4px;
}
.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper{
height:24px;
@@ -845,14 +832,6 @@ iframe[name=editor-canvas].has-editor-padding{
z-index:1000001;
}
-.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{
- padding:0;
-}
-
-.block-editor-block-styles+.default-style-picker__default-switcher{
- margin-top:16px;
-}
-
.block-editor-block-styles__preview-panel{
display:none;
z-index:90;
@@ -890,7 +869,7 @@ iframe[name=editor-canvas].has-editor-padding{
color:#fff;
}
.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus{
- box-shadow:inset 0 0 0 1px var(--wp-components-color-background, #fff), 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+ box-shadow:inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:2px solid #0000;
}
.block-editor-block-styles__variants .block-editor-block-styles__item-text{
@@ -1061,6 +1040,11 @@ iframe[name=editor-canvas].has-editor-padding{
padding:6px 8px;
}
+.block-editor-block-switcher__binding-indicator{
+ display:block;
+ padding:8px;
+}
+
.block-editor-block-types-list>[role=presentation]{
display:flex;
flex-wrap:wrap;
@@ -1459,6 +1443,97 @@ iframe[name=editor-canvas].has-editor-padding{
font-family:Menlo,Consolas,monaco,monospace;
}
+.block-editor-global-styles-background-panel__inspector-media-replace-container{
+ position:relative;
+}
+.block-editor-global-styles-background-panel__inspector-media-replace-container .components-drop-zone__content-icon{
+ display:none;
+}
+.block-editor-global-styles-background-panel__inspector-media-replace-container button.components-button{
+ box-shadow:inset 0 0 0 1px #ccc;
+ color:#1e1e1e;
+ display:block;
+ height:40px;
+ width:100%;
+}
+.block-editor-global-styles-background-panel__inspector-media-replace-container button.components-button:hover{
+ color:var(--wp-admin-theme-color);
+}
+.block-editor-global-styles-background-panel__inspector-media-replace-container button.components-button:focus{
+ box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+}
+.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__inspector-media-replace-title{
+ text-align:start;
+ text-align-last:center;
+ white-space:normal;
+ word-break:break-all;
+}
+.block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown{
+ display:block;
+}
+
+.block-editor-global-styles-background-panel__inspector-image-indicator-wrapper{
+ background:#fff;
+ display:block;
+ flex:none;
+ height:20px;
+ width:20px;
+}
+
+.block-editor-global-styles-background-panel__inspector-image-indicator{
+ background-size:cover;
+ border-radius:50%;
+ display:block;
+ height:20px;
+ position:relative;
+ width:20px;
+}
+
+.block-editor-global-styles-background-panel__inspector-image-indicator:after{
+ border:1px solid #0000;
+ border-radius:50%;
+ bottom:-1px;
+ box-shadow:inset 0 0 0 1px #0003;
+ box-sizing:inherit;
+ content:"";
+ left:-1px;
+ position:absolute;
+ right:-1px;
+ top:-1px;
+}
+
+.block-editor-grid-visualizer{
+ z-index:30 !important;
+}
+
+.block-editor-grid-visualizer .components-popover__content *{
+ pointer-events:none !important;
+}
+
+.block-editor-grid-visualizer__grid{
+ display:grid;
+}
+
+.block-editor-grid-visualizer__item{
+ border-radius:2px;
+ outline:1px solid #0000;
+}
+
+.block-editor-grid-item-resizer{
+ z-index:30 !important;
+}
+
+.block-editor-grid-item-resizer .components-popover__content *{
+ pointer-events:none !important;
+}
+
+.block-editor-grid-item-resizer__box{
+ border:1px solid var(--wp-admin-theme-color);
+}
+.block-editor-grid-item-resizer__box .components-resizable-box__handle{
+ pointer-events:all !important;
+}
+
.block-editor-height-control{
border:0;
margin:0;
@@ -1582,11 +1657,8 @@ iframe[name=editor-canvas].has-editor-padding{
padding:4px 2px 8px;
}
-.show-icon-labels .block-editor-block-inspector__tabs [role=tablist] .components-button.has-icon svg{
- display:none;
-}
-.show-icon-labels .block-editor-block-inspector__tabs [role=tablist] .components-button.has-icon:before{
- content:attr(aria-label);
+.show-icon-labels .block-editor-block-inspector__tabs [role=tablist] .components-button{
+ justify-content:center;
}
.block-editor-inspector-controls-tabs__hint{
@@ -1666,11 +1738,16 @@ iframe[name=editor-canvas].has-editor-padding{
content:attr(aria-label);
}
.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top{
- gap:8px;
+ flex-wrap:wrap;
+ gap:4px;
}
.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top .components-button.has-icon{
- min-width:inherit;
- width:min-content;
+ padding:4px;
+ width:auto;
+}
+.show-icon-labels .block-editor-link-control .is-preview .block-editor-link-control__search-item-header{
+ margin-left:0;
+ min-width:100%;
}
.block-editor-link-control__search-input-wrapper{
@@ -1743,10 +1820,6 @@ iframe[name=editor-canvas].has-editor-padding{
position:absolute;
top:3px;
}
-.block-editor-link-control__search-enter svg{
- position:relative;
- top:-2px;
-}
.block-editor-link-control__search-actions{
padding:8px 16px 16px;
@@ -1876,7 +1949,7 @@ iframe[name=editor-canvas].has-editor-padding{
box-shadow:none;
}
.block-editor-link-control__search-item .block-editor-link-control__search-item-title:focus-visible{
- box-shadow:inset 0 0 0 1px var(--wp-components-color-background, #fff), 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+ box-shadow:inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:2px solid #0000;
text-decoration:none;
}
@@ -1888,8 +1961,15 @@ iframe[name=editor-canvas].has-editor-padding{
.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-title svg{
- display:none;
+.block-editor-link-control__search-item .block-editor-link-control__search-item-title .components-external-link__icon{
+ height:1px;
+ margin:-1px;
+ overflow:hidden;
+ padding:0;
+ position:absolute;
+ width:1px;
+ clip:rect(0, 0, 0, 0);
+ border:0;
}
.block-editor-link-control__search-item-top{
@@ -2127,7 +2207,7 @@ iframe[name=editor-canvas].has-editor-padding{
}
}
.block-editor-list-view-leaf.is-displacement-up{
- transform:translateY(-36px);
+ transform:translateY(-32px);
transition:transform .2s;
}
@media (prefers-reduced-motion:reduce){
@@ -2137,7 +2217,7 @@ iframe[name=editor-canvas].has-editor-padding{
}
}
.block-editor-list-view-leaf.is-displacement-down{
- transform:translateY(36px);
+ transform:translateY(32px);
transition:transform .2s;
}
@media (prefers-reduced-motion:reduce){
@@ -2147,7 +2227,7 @@ iframe[name=editor-canvas].has-editor-padding{
}
}
.block-editor-list-view-leaf.is-after-dragged-blocks{
- transform:translateY(calc(var(--wp-admin--list-view-dragged-items-height, 36px)*-1));
+ transform:translateY(calc(var(--wp-admin--list-view-dragged-items-height, 32px)*-1));
transition:transform .2s;
}
@media (prefers-reduced-motion:reduce){
@@ -2157,7 +2237,7 @@ iframe[name=editor-canvas].has-editor-padding{
}
}
.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{
- transform:translateY(calc(-36px + var(--wp-admin--list-view-dragged-items-height, 36px)*-1));
+ transform:translateY(calc(-32px + var(--wp-admin--list-view-dragged-items-height, 32px)*-1));
transition:transform .2s;
}
@media (prefers-reduced-motion:reduce){
@@ -2167,7 +2247,7 @@ iframe[name=editor-canvas].has-editor-padding{
}
}
.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{
- transform:translateY(calc(36px + var(--wp-admin--list-view-dragged-items-height, 36px)*-1));
+ transform:translateY(calc(32px + var(--wp-admin--list-view-dragged-items-height, 32px)*-1));
transition:transform .2s;
}
@media (prefers-reduced-motion:reduce){
@@ -2186,7 +2266,7 @@ iframe[name=editor-canvas].has-editor-padding{
align-items:center;
border-radius:2px;
display:flex;
- height:auto;
+ height:32px;
padding:6px 0 6px 4px;
position:relative;
text-align:right;
@@ -2242,11 +2322,10 @@ iframe[name=editor-canvas].has-editor-padding{
}
.block-editor-list-view-leaf .block-editor-block-icon{
flex:0 0 24px;
- margin-left:8px;
+ margin-left:4px;
}
.block-editor-list-view-leaf .block-editor-list-view-block__contents-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{
- padding-bottom:0;
- padding-top:0;
+ padding:0;
}
.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{
line-height:0;
@@ -2315,8 +2394,9 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-list-view-leaf .block-editor-inserter__toggle:active{
color:#fff;
}
-.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper{
- min-width:120px;
+.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper svg{
+ position:relative;
+ right:2px;
}
.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title{
flex:1;
@@ -2378,16 +2458,11 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-list-view__expander{
cursor:pointer;
height:24px;
- margin-right:4px;
width:24px;
}
.block-editor-list-view-leaf[aria-level] .block-editor-list-view__expander{
- margin-right:220px;
-}
-
-.block-editor-list-view-leaf:not([aria-level="1"]) .block-editor-list-view__expander{
- margin-left:4px;
+ margin-right:192px;
}
.block-editor-list-view-leaf[aria-level="1"] .block-editor-list-view__expander{
@@ -2399,27 +2474,27 @@ iframe[name=editor-canvas].has-editor-padding{
}
.block-editor-list-view-leaf[aria-level="3"] .block-editor-list-view__expander{
- margin-right:52px;
+ margin-right:48px;
}
.block-editor-list-view-leaf[aria-level="4"] .block-editor-list-view__expander{
- margin-right:80px;
+ margin-right:72px;
}
.block-editor-list-view-leaf[aria-level="5"] .block-editor-list-view__expander{
- margin-right:108px;
+ margin-right:96px;
}
.block-editor-list-view-leaf[aria-level="6"] .block-editor-list-view__expander{
- margin-right:136px;
+ margin-right:120px;
}
.block-editor-list-view-leaf[aria-level="7"] .block-editor-list-view__expander{
- margin-right:164px;
+ margin-right:144px;
}
.block-editor-list-view-leaf[aria-level="8"] .block-editor-list-view__expander{
- margin-right:192px;
+ margin-right:168px;
}
.block-editor-list-view-leaf .block-editor-list-view__expander{
@@ -2468,7 +2543,7 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line{
background:rgba(var(--wp-admin-theme-color--rgb), .04);
border-radius:4px;
- height:36px;
+ height:32px;
overflow:hidden;
}
.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line--darker{
@@ -2476,7 +2551,7 @@ iframe[name=editor-canvas].has-editor-padding{
}
.block-editor-list-view-placeholder{
- height:36px;
+ height:32px;
margin:0;
padding:0;
}
@@ -2495,19 +2570,7 @@ iframe[name=editor-canvas].has-editor-padding{
color:#fff;
}
-.list-view-appender__description{
- display:none;
-}
-
-.block-editor-list-view-block-select-button__bindings svg g{
- stroke:var(--wp-bound-block-color);
- fill:#0000;
- stroke-width:1.5;
- stroke-linecap:round;
- stroke-linejoin:round;
-}
-
-.modal-open .block-editor-media-replace-flow__options{
+.list-view-appender__description,.modal-open .block-editor-media-replace-flow__options{
display:none;
}
@@ -2631,8 +2694,7 @@ iframe[name=editor-canvas].has-editor-padding{
.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%);
+ clip-path:inset(50%);
height:1px;
margin:-1px;
overflow:hidden;
@@ -2676,6 +2738,19 @@ iframe[name=editor-canvas].has-editor-padding{
content:attr(aria-label);
}
+.block-editor-segmented-text-control{
+ border:0;
+ margin:0;
+ padding:0;
+}
+.block-editor-segmented-text-control .block-editor-segmented-text-control__buttons{
+ display:flex;
+ padding:4px 0;
+}
+.block-editor-segmented-text-control .components-button.has-icon{
+ margin-left:4px;
+}
+
.block-editor-skip-to-selected-block{
position:absolute;
top:-9999em;
@@ -2696,38 +2771,6 @@ iframe[name=editor-canvas].has-editor-padding{
z-index:100000;
}
-.block-editor-text-decoration-control{
- border:0;
- margin:0;
- padding:0;
-}
-.block-editor-text-decoration-control .block-editor-text-decoration-control__buttons{
- display:flex;
- padding:4px 0;
-}
-.block-editor-text-decoration-control .components-button.has-icon{
- height:32px;
- margin-left:4px;
- min-width:32px;
- padding:0;
-}
-
-.block-editor-text-transform-control{
- border:0;
- margin:0;
- padding:0;
-}
-.block-editor-text-transform-control .block-editor-text-transform-control__buttons{
- display:flex;
- padding:4px 0;
-}
-.block-editor-text-transform-control .components-button.has-icon{
- height:32px;
- margin-left:4px;
- min-width:32px;
- padding:0;
-}
-
.block-editor-tool-selector__help{
border-top:1px solid #ddd;
color:#757575;
@@ -2968,9 +3011,8 @@ iframe[name=editor-canvas].has-editor-padding{
font-size:12px;
}
-.html-anchor-control .components-external-link{
- display:block;
- margin-top:8px;
+.components-panel__block-bindings-panel .components-item__block-bindings-source{
+ color:#757575;
}
.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack{
flex-direction:row-reverse;
@@ -2984,70 +3026,6 @@ iframe[name=editor-canvas].has-editor-padding{
margin-bottom:16px;
}
-.block-editor-hooks__background__inspector-media-replace-container{
- position:relative;
-}
-.block-editor-hooks__background__inspector-media-replace-container .components-drop-zone__content-icon{
- display:none;
-}
-.block-editor-hooks__background__inspector-media-replace-container button.components-button{
- box-shadow:inset 0 0 0 1px #ddd;
- color:#1e1e1e;
- display:block;
- height:40px;
- width:100%;
-}
-.block-editor-hooks__background__inspector-media-replace-container button.components-button:hover{
- color:var(--wp-admin-theme-color);
-}
-.block-editor-hooks__background__inspector-media-replace-container button.components-button:focus{
- box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
-}
-.block-editor-hooks__background__inspector-media-replace-container .block-editor-hooks__background__inspector-media-replace-title{
- text-align:start;
- text-align-last:center;
- white-space:normal;
- word-break:break-all;
-}
-.block-editor-hooks__background__inspector-media-replace-container .components-dropdown{
- display:block;
-}
-
-.block-editor-hooks__background__inspector-image-indicator-wrapper{
- background:#fff linear-gradient(45deg, #0000 48%, #ddd 0, #ddd 52%, #0000 0);
- border-radius:50% !important;
- box-shadow:inset 0 0 0 1px #0003;
- display:block;
- flex:none;
- height:20px;
- width:20px;
-}
-.block-editor-hooks__background__inspector-image-indicator-wrapper.has-image{
- background:#fff;
-}
-
-.block-editor-hooks__background__inspector-image-indicator{
- background-size:cover;
- border-radius:50%;
- display:block;
- height:20px;
- position:relative;
- width:20px;
-}
-
-.block-editor-hooks__background__inspector-image-indicator:after{
- border:1px solid #0000;
- border-radius:50%;
- bottom:-1px;
- box-shadow:inset 0 0 0 1px #0003;
- box-sizing:inherit;
- content:"";
- left:-1px;
- position:absolute;
- right:-1px;
- top:-1px;
-}
-
.border-block-support-panel .single-column{
grid-column:span 1;
}
@@ -3109,19 +3087,6 @@ iframe[name=editor-canvas].has-editor-padding{
margin-bottom:16px;
}
-.block-editor__padding-visualizer{
- border-color:var(--wp-admin-theme-color);
- border-style:solid;
- bottom:0;
- box-sizing:border-box;
- left:0;
- opacity:.5;
- pointer-events:none;
- position:absolute;
- right:0;
- top:0;
-}
-
.block-editor-hooks__position-selection__select-control .components-custom-select-control__hint{
display:none;
}
@@ -3136,6 +3101,19 @@ iframe[name=editor-canvas].has-editor-padding{
text-align:right;
}
+.block-editor__spacing-visualizer{
+ border-color:var(--wp-admin-theme-color);
+ border-style:solid;
+ bottom:0;
+ box-sizing:border-box;
+ left:0;
+ opacity:.5;
+ pointer-events:none;
+ position:absolute;
+ right:0;
+ top:0;
+}
+
.typography-block-support-panel .single-column{
grid-column:span 1;
}
@@ -3167,7 +3145,7 @@ iframe[name=editor-canvas].has-editor-padding{
margin-bottom:-1px;
margin-top:-1px;
}
-.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{
+.block-editor-block-toolbar.is-connected .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-connected .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors,.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{
color:var(--wp-block-synced-color);
}
.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{
@@ -3224,9 +3202,6 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar-group:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child:after{
display:none;
}
-.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group{
- border-left-color:#e0e0e0;
-}
.block-editor-block-contextual-toolbar>.block-editor-block-toolbar{
flex-grow:0;
width:auto;
@@ -3238,13 +3213,15 @@ iframe[name=editor-canvas].has-editor-padding{
}
.block-editor-block-contextual-toolbar .block-editor-block-parent-selector:after{
align-items:center;
- content:"·";
+ background-color:#1e1e1e;
+ border-radius:100%;
+ content:"";
display:inline-flex;
- font-size:16px;
- height:32px;
+ height:2px;
left:0;
position:absolute;
- top:0;
+ top:15px;
+ width:2px;
}
.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{
@@ -3369,7 +3346,6 @@ iframe[name=editor-canvas].has-editor-padding{
flex-direction:column;
gap:16px;
height:100%;
- overflow-y:hidden;
position:relative;
}
.block-editor-inserter__main-area.show-as-tabs{
@@ -3405,7 +3381,7 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-inserter__popover .block-editor-inserter__menu{
margin:-12px;
}
-.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs div[role=tablist]{
+.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tablist{
top:60px;
}
.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{
@@ -3460,19 +3436,29 @@ iframe[name=editor-canvas].has-editor-padding{
flex-grow:1;
overflow:hidden;
}
-.block-editor-inserter__tabs div[role=tablist]{
+.block-editor-inserter__tabs .block-editor-inserter__tablist-and-close-button{
border-bottom:1px solid #ddd;
+ display:flex;
+ justify-content:space-between;
+ padding-left:12px;
}
-.block-editor-inserter__tabs div[role=tablist] button[role=tab]{
- flex-grow:1;
+.block-editor-inserter__tabs .block-editor-inserter__close-button{
+ align-self:center;
+ order:1;
+}
+.block-editor-inserter__tabs .block-editor-inserter__tablist{
margin-bottom:-1px;
+ width:100%;
}
-.block-editor-inserter__tabs div[role=tablist] button[role=tab][id$=reusable]{
+.block-editor-inserter__tabs .block-editor-inserter__tablist button[role=tab]{
+ flex-grow:1;
+}
+.block-editor-inserter__tabs .block-editor-inserter__tablist button[role=tab][id$=reusable]{
flex-grow:inherit;
padding-left:16px;
padding-right:16px;
}
-.block-editor-inserter__tabs div[role=tabpanel]{
+.block-editor-inserter__tabs .block-editor-inserter__tabpanel{
display:flex;
flex-direction:column;
flex-grow:1;
@@ -3482,6 +3468,7 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-inserter__no-tab-container{
flex-grow:1;
overflow-y:auto;
+ position:relative;
}
.block-editor-inserter__panel-header{
@@ -3525,7 +3512,7 @@ iframe[name=editor-canvas].has-editor-padding{
width:100%;
}
-.block-editor-inserter__no-results{
+.block-editor-inserter__no-results,.block-editor-inserter__patterns-loading{
padding:32px;
text-align:center;
}
@@ -3565,7 +3552,7 @@ iframe[name=editor-canvas].has-editor-padding{
display:block;
}
}
-.block-editor-inserter__preview-container .block-editor-block-preview__container{
+.block-editor-inserter__preview-container .block-editor-inserter__media-list__list-item{
height:100%;
}
.block-editor-inserter__preview-container .block-editor-block-card{
@@ -3574,99 +3561,106 @@ iframe[name=editor-canvas].has-editor-padding{
padding-right:0;
}
-.block-editor-inserter__patterns-explore-button.components-button{
- justify-content:center;
- margin-top:16px;
+.block-editor-inserter__insertable-blocks-at-selection{
+ border-bottom:1px solid #e0e0e0;
+}
+
+.block-editor-inserter__block-patterns-tabs-container,.block-editor-inserter__media-tabs-container{
+ display:flex;
+ flex-direction:column;
+ height:100%;
+ justify-content:space-between;
padding:16px;
- width:100%;
}
-.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category{
- color:var(--wp-admin-theme-color);
+.block-editor-inserter__category-tablist{
+ border:none;
+ display:flex;
+ flex-direction:column;
+ margin-bottom:8px;
+}
+.block-editor-inserter__category-tablist div[role=listitem]:last-child{
+ margin-top:auto;
+}
+.block-editor-inserter__category-tablist .block-editor-inserter__category-tab{
+ display:block;
+ font-weight:inherit;
+ height:auto;
+ padding:8px 12px 8px 4px;
position:relative;
+ text-align:right;
}
-.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category .components-flex-item{
+.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true]{
+ color:var(--wp-admin-theme-color);
+}
+.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true] .components-flex-item{
filter:brightness(.95);
}
-.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category svg{
+.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true] svg{
fill:var(--wp-admin-theme-color);
}
-.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category:after{
+.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true]:after{
background:var(--wp-admin-theme-color);
border-radius:2px;
bottom:0;
content:"";
+ display:block;
+ height:100%;
left:0;
opacity:.04;
+ outline:none;
position:absolute;
right:0;
top:0;
}
-.block-editor-inserter__block-patterns-tabs-container,.block-editor-inserter__block-patterns-tabs-container nav{
- height:100%;
-}
-
-.block-editor-inserter__block-patterns-tabs{
- display:flex;
- flex-direction:column;
- height:100%;
- overflow-y:auto;
- padding:16px;
-}
-.block-editor-inserter__block-patterns-tabs div[role=listitem]:last-child{
- margin-top:auto;
+.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:focus-visible,.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:focus:not(:disabled){
+ border-radius:2px;
+ box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+ outline:2px solid #0000;
+ outline-offset:0;
}
-.block-editor-inserter__block-patterns-tabs .block-editor-inserter__patterns-category{
- padding-left:4px;
+.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:after,.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:before{
+ display:none;
}
-.block-editor-inserter__patterns-category-dialog{
+.block-editor-inserter__category-panel{
background:#f0f0f0;
- border-left:1px solid #e0e0e0;
- border-right:1px solid #e0e0e0;
- height:100%;
+ border-top:1px solid #e0e0e0;
+ box-shadow:-1px 1px 0 0 rgba(0,0,0,.133);
+ display:flex;
+ flex-direction:column;
+ height:calc(100% + 1px);
+ outline:1px solid #0000;
+ padding:0 16px;
position:absolute;
right:0;
- top:0;
+ top:-1px;
width:100%;
}
@media (min-width:782px){
- .block-editor-inserter__patterns-category-dialog{
- display:block;
+ .block-editor-inserter__category-panel{
+ border-right:1px solid #e0e0e0;
+ padding:0;
right:100%;
width:300px;
}
}
-.block-editor-inserter__patterns-category-dialog .block-editor-block-patterns-list{
- flex-grow:1;
- height:100%;
- overflow-y:auto;
- padding:16px 24px;
+.block-editor-inserter__category-panel .block-editor-block-patterns-list,.block-editor-inserter__category-panel .block-editor-inserter__media-list{
+ padding:0 24px 16px;
}
-.block-editor-block-patterns-list__list-item .block-editor-block-preview__container{
- box-shadow:0 15px 25px #00000012;
+.block-editor-inserter__patterns-category-panel-header{
+ padding:8px 24px;
}
-.block-editor-block-patterns-list__list-item:hover .block-editor-block-preview__container{
- box-shadow:0 0 0 2px #1e1e1e,0 15px 25px #00000012;
+
+.block-editor-inserter__patterns-category-no-results{
+ margin-top:24px;
}
-.block-editor-inserter__patterns-category-panel{
- display:flex;
- flex-direction:column;
+.block-editor-block-patterns-list,.block-editor-inserter__media-list{
+ flex-grow:1;
height:100%;
- padding:0 16px;
-}
-@media (min-width:782px){
- .block-editor-inserter__patterns-category-panel{
- padding:0;
- }
-}
-.block-editor-inserter__patterns-category-panel .block-editor-inserter__patterns-category-panel-header{
- padding:16px 24px;
-}
-.block-editor-inserter__patterns-category-panel .block-editor-inserter__patterns-category-no-results{
- margin-top:24px;
+ overflow-y:auto;
}
.block-editor-inserter__preview-content{
@@ -3723,7 +3717,7 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{
margin-bottom:0;
}
-.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-preview__container{
+.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{
min-height:100px;
}
@@ -3803,87 +3797,23 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{
min-height:240px;
}
-.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-preview__container{
+.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{
height:inherit;
max-height:800px;
min-height:100px;
}
-.block-editor-inserter__patterns-category-panel-title{
- font-size:16.25px;
-}
-.block-editor-inserter__media-tabs-container,.block-editor-inserter__media-tabs-container nav{
- height:100%;
+.components-heading.block-editor-inserter__patterns-category-panel-title{
+ font-weight:500;
}
-.block-editor-inserter__media-tabs-container .block-editor-inserter__media-library-button{
+
+.block-editor-inserter__media-library-button.components-button,.block-editor-inserter__patterns-explore-button.components-button{
justify-content:center;
margin-top:16px;
padding:16px;
width:100%;
}
-.block-editor-inserter__media-tabs{
- display:flex;
- flex-direction:column;
- height:100%;
- overflow-y:auto;
- padding:16px;
-}
-.block-editor-inserter__media-tabs div[role=listitem]:last-child{
- margin-top:auto;
-}
-.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category{
- padding-left:4px;
-}
-.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category.is-selected{
- color:var(--wp-admin-theme-color);
- position:relative;
-}
-.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category.is-selected .components-flex-item{
- filter:brightness(.95);
-}
-.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category.is-selected svg{
- fill:var(--wp-admin-theme-color);
-}
-.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category.is-selected:after{
- background:var(--wp-admin-theme-color);
- border-radius:2px;
- bottom:0;
- content:"";
- left:0;
- opacity:.04;
- position:absolute;
- right:0;
- top:0;
-}
-
-.block-editor-inserter__media-dialog{
- background:#f0f0f0;
- border-left:1px solid #e0e0e0;
- border-right:1px solid #e0e0e0;
- height:100%;
- overflow-y:auto;
- padding:16px 24px;
- position:absolute;
- right:0;
- scrollbar-gutter:stable both-edges;
- top:0;
- width:100%;
-}
-@media (min-width:782px){
- .block-editor-inserter__media-dialog{
- display:block;
- right:100%;
- width:300px;
- }
-}
-.block-editor-inserter__media-dialog .block-editor-block-preview__container{
- box-shadow:0 15px 25px #00000012;
-}
-.block-editor-inserter__media-dialog .block-editor-block-preview__container:hover{
- box-shadow:0 0 0 2px #1e1e1e,0 15px 25px #00000012;
-}
-
.block-editor-inserter__media-panel{
display:flex;
flex-direction:column;
@@ -3902,61 +3832,65 @@ iframe[name=editor-canvas].has-editor-padding{
height:100%;
justify-content:center;
}
+.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search{
+ padding:16px 24px 8px;
+}
.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search:not(:focus-within){
--wp-components-color-background:#fff;
}
-.block-editor-inserter__media-list{
- margin-top:16px;
-}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item{
+.block-editor-inserter__media-list__list-item{
cursor:pointer;
margin-bottom:24px;
position:relative;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-placeholder{
+.block-editor-inserter__media-list__list-item.is-placeholder{
min-height:100px;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item[draggable=true] .block-editor-block-preview__container{
+.block-editor-inserter__media-list__list-item[draggable=true] .block-editor-inserter__media-list__list-item{
cursor:grab;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview{
- box-shadow:0 0 0 2px #1e1e1e,0 15px 25px #00000012;
+.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview>*{
+ outline-color:#0000004d;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options>button{
+.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options>button{
display:block;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options{
+.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options{
left:8px;
position:absolute;
top:8px;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button{
+.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button{
background:#fff;
border-radius:2px;
display:none;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button.is-opened,.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:focus{
+.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button.is-opened,.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:focus{
display:block;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:hover{
+.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:hover{
box-shadow:inset 0 0 0 2px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:2px solid #0000;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__item{
+
+.block-editor-inserter__media-list__item{
height:100%;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview{
+.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview{
align-items:center;
border-radius:2px;
display:flex;
overflow:hidden;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview>*{
+.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview>*{
+ border-radius:2px;
margin:0 auto;
max-width:100%;
+ outline:1px solid #0000001a;
+ outline-offset:-1px;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{
+.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{
align-items:center;
background:#ffffffb3;
display:flex;
@@ -3966,9 +3900,17 @@ iframe[name=editor-canvas].has-editor-padding{
position:absolute;
width:100%;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview{
- box-shadow:inset 0 0 0 2px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
- outline:2px solid #0000;
+.block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{
+ outline-color:var(--wp-admin-theme-color);
+ outline-offset:calc(-1*var(--wp-admin-border-width-focus));
+ outline-width:var(--wp-admin-border-width-focus);
+ transition:outline .1s linear;
+}
+@media (prefers-reduced-motion:reduce){
+ .block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
}
.block-editor-inserter__media-list__item-preview-options__popover .components-menu-item__button .components-menu-item__item{
@@ -4022,6 +3964,22 @@ iframe[name=editor-canvas].has-editor-padding{
height:40px;
}
+.block-editor-inserter__pattern-panel-placeholder{
+ display:none;
+}
+
+.block-editor-inserter__menu.is-zoom-out{
+ display:flex;
+}
+@media (min-width:782px){
+ .block-editor-inserter__menu.is-zoom-out.show-panel:after{
+ content:"";
+ display:block;
+ height:100%;
+ width:300px;
+ }
+}
+
.spacing-sizes-control .spacing-sizes-control__custom-value-input,.spacing-sizes-control .spacing-sizes-control__label{
margin-bottom:0;
}
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 aec4585..44ed508 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 @@
-@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-autocompleters__block{white-space:nowrap}.block-editor-autocompleters__block .block-editor-block-icon{margin-left:8px}.block-editor-autocompleters__link{white-space:nowrap}.block-editor-autocompleters__link .block-editor-block-icon{margin-left:8px}.block-editor-block-alignment-control__menu-group .components-menu-item__info{margin-top:0}.block-editor-block-bindings-toolbar-indicator{align-items:center;display:inline-flex;height:48px;padding:6px}.block-editor-block-bindings-toolbar-indicator svg g{stroke:var(--wp-bound-block-color);fill:#0000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}iframe[name=editor-canvas]{display:block;height:100%;width:100%}iframe[name=editor-canvas]:not(.has-editor-padding){background-color:#fff}iframe[name=editor-canvas].has-editor-padding{padding:24px 24px 0}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-inspector p:not(.components-base-control__help){margin-top:0}.block-editor-block-inspector h2,.block-editor-block-inspector h3{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.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-focal-point-picker-control .components-base-control,.block-editor-block-inspector .components-query-controls .components-base-control,.block-editor-block-inspector .components-range-control .components-base-control{margin-bottom:0}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e0e0e0;margin-top:-1px}.block-editor-block-inspector__no-block-tools,.block-editor-block-inspector__no-blocks{background:#fff;display:block;font-size:13px;padding:32px 16px;text-align:center}.block-editor-block-inspector__no-block-tools{border-top:1px solid #ddd}.block-editor-block-inspector__tab-item{flex:1 1 0px}.block-editor-block-list__insertion-point{bottom:0;left:0;position:absolute;right:0;top:0}.block-editor-block-list__insertion-point-indicator{background:var(--wp-admin-theme-color);border-radius:2px;opacity:0;position:absolute;transform-origin:center;will-change:transform,opacity}.block-editor-block-list__insertion-point.is-vertical>.block-editor-block-list__insertion-point-indicator{height:4px;top:calc(50% - 2px);width:100%}.block-editor-block-list__insertion-point.is-horizontal>.block-editor-block-list__insertion-point-indicator{bottom:0;right:calc(50% - 2px);top:0;width:4px}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;position:absolute;right:calc(50% - 12px);top:calc(50% - 12px);will-change:transform}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div{pointer-events:none}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div>*{pointer-events:all}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:#1e1e1e}.block-editor-block-list__block-selection-button{background-color:#1e1e1e;border-radius:2px;display:inline-flex;font-size:13px;height:48px;padding:0 12px;z-index:22}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content{align-items:center;display:inline-flex;margin:auto}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content>.components-flex__item{margin-left:6px}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle{cursor:grab;height:24px;margin-right:-2px;min-width:24px;padding:0}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle svg{min-height:18px;min-width:18px}.block-editor-block-list__block-selection-button .block-editor-block-icon{color:#fff;font-size:13px;height:48px}.block-editor-block-list__block-selection-button .components-button{color:#fff;display:flex;height:48px;min-width:36px}.block-editor-block-list__block-selection-button .components-button:focus{border:none;box-shadow:none}.block-editor-block-list__block-selection-button .components-button:active,.block-editor-block-list__block-selection-button .components-button[aria-disabled=true]:hover{color:#fff}.block-editor-block-list__block-selection-button .block-selection-button_select-button.components-button{padding:0}.block-editor-block-list__block-selection-button .block-editor-block-mover{background:unset;border:none}@keyframes hide-during-dragging{to{position:fixed;transform:translate(-9999px,9999px)}}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .block-editor-block-list__block-selection-button{margin-bottom:12px;margin-top:12px;pointer-events:all}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;overflow:visible;position:static;width:auto}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-right:56px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-right:0}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar{overflow:visible}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar,.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar-group{border-left-color:#1e1e1e}.components-popover.block-editor-block-list__block-popover.is-insertion-point-visible{visibility:hidden}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{animation:hide-during-dragging 1ms linear forwards;opacity:0}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{position:absolute;right:-57px}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector:before{content:""}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{background-color:#fff;border:1px solid #1e1e1e;padding-left:6px;padding-right:6px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{padding-left:12px;padding-right:12px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{margin-right:-1px;position:relative;right:auto}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-mover__move-button-container,.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-right:1px solid #1e1e1e}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-lock-modal{z-index:1000001}@media (min-width:600px){.block-editor-block-lock-modal .components-modal__frame{max-width:480px}}.block-editor-block-lock-modal__checklist{margin:0}.block-editor-block-lock-modal__options-title{padding:12px 0}.block-editor-block-lock-modal__options-title .components-checkbox-control__label{font-weight:600}.block-editor-block-lock-modal__checklist-item{align-items:center;display:flex;gap:12px;justify-content:space-between;margin-bottom:0;padding:12px 32px 12px 0}.block-editor-block-lock-modal__checklist-item .block-editor-block-lock-modal__lock-icon{flex-shrink:0;margin-left:12px;fill:#1e1e1e}.block-editor-block-lock-modal__checklist-item:hover{background-color:#f0f0f0;border-radius:2px}.block-editor-block-lock-modal__template-lock{border-top:1px solid #ddd;margin-top:16px;padding:12px 0}.block-editor-block-lock-modal__actions{margin-top:24px}.block-editor-block-lock-toolbar .components-button.has-icon{min-width:36px!important}.block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{margin-right:-6px!important}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{border-right:1px solid #1e1e1e;margin-left:-6px;margin-right:6px!important}.block-editor-block-breadcrumb{list-style:none;margin:0;padding:0}.block-editor-block-breadcrumb li{display:inline-flex;margin:0}.block-editor-block-breadcrumb li .block-editor-block-breadcrumb__separator{fill:currentColor;margin-left:-4px;margin-right:-4px;transform:scaleX(-1)}.block-editor-block-breadcrumb li:last-child .block-editor-block-breadcrumb__separator{display:none}.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){box-shadow:none;text-decoration:underline}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{border-radius:2px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:1px;outline:2px solid #0000;position:absolute;right:1px;top:1px}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;font-size:inherit;padding:0 8px}.block-editor-block-card{align-items:flex-start;color:#1e1e1e;display:flex;padding:16px}.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{font-size:13px;line-height:1.4;margin:0;padding:3px 0}.block-editor-block-card__description{display:block;font-size:13px;line-height:1.4;margin-top:4px}.block-editor-block-card .block-editor-block-icon{flex:0 0 24px;height:24px;margin-left:12px;margin-right:0;width:24px}.block-editor-block-card.is-synced .block-editor-block-icon{color:var(--wp-block-synced-color)}.block-editor-block-compare{height:auto}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;flex-direction:column;justify-content:space-between;max-width:600px;min-width:200px;padding:0 0 0 16px;width:50%}.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-left:0;padding-right:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html{border-bottom:1px solid #ddd;color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:12px;line-height:1.7;padding-bottom:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-bottom:3px;padding-top: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:#cc1818}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:16px 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:16px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{position:absolute;right:0;top:-24px}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;box-shadow:0 6px 8px #0000004d;color:#fff;cursor:grabbing;display:inline-flex;height:48px;padding:0 13px;position:relative;-webkit-user-select:none;user-select:none;width:max-content}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{justify-content:flex-start;margin:auto}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item{margin-left:6px}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item:last-child{margin-left:0}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content .block-editor-block-icon svg{min-height:18px;min-width:18px}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{align-items:center;background-color:initial;bottom:0;display:flex;justify-content:center;left:0;opacity:0;position:absolute;right:0;top:0;transition:all .1s linear .1s}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled .block-editor-block-draggable-chip__disabled-icon{background:#0000 linear-gradient(45deg,#0000 47.5%,#fff 0,#fff 52.5%,#0000 0);border-radius:50%;box-shadow:inset 0 0 0 1.5px #fff;display:inline-block;height:20px;padding:0;width:20px}.block-draggable-invalid-drag-token .block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{background-color:#757575;box-shadow:0 4px 8px #0003;opacity:1}.block-editor-block-mover__move-button-container{border:none;display:flex;justify-content:center;padding:0}@media (min-width:600px){.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{flex-direction:column}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>*{height:20px;min-width:0!important;width:100%}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>:before{height:calc(100% - 4px)}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{flex-shrink:0;top:3px}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{bottom:3px;flex-shrink:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{width:48px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container>*{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button{padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{right:5px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{left:5px}}.block-editor-block-mover__drag-handle{cursor:grab}@media (min-width:600px){.block-editor-block-mover__drag-handle{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon.has-icon{padding-left:0;padding-right:0}}.components-button.block-editor-block-mover-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards;border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-mover-button:before{animation-delay:0s;animation-duration:1ms}}.components-button.block-editor-block-mover-button:focus,.components-button.block-editor-block-mover-button:focus:before,.components-button.block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.components-button.block-editor-block-mover-button:focus-visible:before{box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000}.block-editor-block-navigation__container{min-width:280px}.block-editor-block-navigation__label{color:#757575;font-size:11px;font-weight:500;margin:0 0 12px;text-transform:uppercase}.block-editor-block-patterns-list__list-item{cursor:pointer;margin-bottom:24px;position:relative}.block-editor-block-patterns-list__list-item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__list-item[draggable=true]{cursor:grab}.block-editor-block-patterns-list__item{height:100%;scroll-margin-bottom:56px;scroll-margin-top:24px}.block-editor-block-patterns-list__item .block-editor-block-preview__container{align-items:center;border-radius:4px;display:flex;overflow:hidden}.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{flex-grow:1;text-align:right}.block-editor-block-patterns-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px #1e1e1e}.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) #1e1e1e;outline:2px solid #0000;outline-offset:2px}.block-editor-block-patterns-list__item.block-editor-block-patterns-list__list-item-synced:focus .block-editor-block-preview__container,.block-editor-block-patterns-list__item.block-editor-block-patterns-list__list-item-synced:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-block-synced-color),0 15px 25px #00000012}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-details{align-items:center;margin-top:8px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper{height:24px;min-width:24px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper .block-editor-patterns__pattern-icon{fill:var(--wp-block-synced-color)}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination{border-top:1px solid #2f2f2f;justify-content:center;padding:4px}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:auto}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination .components-button.is-tertiary:disabled{background:none;color:#949494}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination .components-button.is-tertiary:hover:not(:disabled){background-color:#757575;color:#fff}.show-icon-labels .block-editor-patterns__grid-pagination,.show-icon-labels .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next,.show-icon-labels .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous{flex-direction:column}.show-icon-labels .block-editor-patterns__grid-pagination .components-button{width:auto}.show-icon-labels .block-editor-patterns__grid-pagination .components-button span{display:none}.show-icon-labels .block-editor-patterns__grid-pagination .components-button:before{content:attr(aria-label)}.components-popover.block-editor-block-popover{margin:0!important;pointer-events:none;position:absolute;z-index:31}.components-popover.block-editor-block-popover .components-popover__content{margin:0!important;min-width:auto;overflow-y:visible;width:max-content}.components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween,.block-editor-block-popover__drop-zone,.block-editor-block-list__block-side-inserter-popover) .components-popover__content *{pointer-events:all}.components-popover.block-editor-block-popover__inbetween,.components-popover.block-editor-block-popover__inbetween *{pointer-events:none}.components-popover.block-editor-block-popover__inbetween .is-with-inserter,.components-popover.block-editor-block-popover__inbetween .is-with-inserter *{pointer-events:all}.components-popover.block-editor-block-popover__drop-zone *{pointer-events:none}.components-popover.block-editor-block-popover__drop-zone .block-editor-block-popover__drop-zone-foreground{background-color:var(--wp-admin-theme-color);border-radius:2px;inset:0;position:absolute}.block-editor-block-preview__container{overflow:hidden;position:relative;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content{margin:0;min-height:auto;overflow:visible;right:0;text-align:initial;top:0;transform-origin:top right;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender{display:none}.block-editor-block-preview__container:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.block-editor-block-rename-modal{z-index:1000001}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles+.default-style-picker__default-switcher{margin-top:16px}.block-editor-block-styles__preview-panel{display:none;z-index:90}@media (min-width:782px){.block-editor-block-styles__preview-panel{display:block}}.block-editor-block-styles__preview-panel .block-editor-block-icon{display:none}.block-editor-block-styles__variants{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item{box-shadow:inset 0 0 0 1px #ddd;color:#1e1e1e;display:inline-block;width:calc(50% - 4px)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:hover{box-shadow:inset 0 0 0 1px #ddd;color:var(--wp-admin-theme-color)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover{background-color:#1e1e1e;box-shadow:none}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active .block-editor-block-styles__item-text,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover .block-editor-block-styles__item-text{color:#fff}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus{box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000}.block-editor-block-styles__variants .block-editor-block-styles__item-text{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-editor-block-styles__block-preview-container,.block-editor-block-styles__block-preview-container *{box-sizing:border-box!important}.block-editor-block-switcher{position:relative}.block-editor-block-switcher .components-button.components-dropdown-menu__toggle.has-icon.has-icon{min-width:36px}.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{display:block;height:48px;margin:0}.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}.block-editor-block-switcher__toggle-text{margin-right:8px}.show-icon-labels .block-editor-block-switcher__toggle-text{display:none}.components-button.block-editor-block-switcher__no-switcher-icon{display:flex}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin-left:auto;margin-right:auto;min-width:24px!important}.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}.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,.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{align-items:center;display:flex;height:100%;margin:0 auto;min-width:100%;position:relative}.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,.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{bottom:8px;left:8px;right:8px;top:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container{position:absolute;right:calc(100% + 16px);top:-12px}.block-editor-block-switcher__preview__popover{display:none;overflow:hidden}.block-editor-block-switcher__preview__popover.components-popover{margin-top:11px}@media (min-width:782px){.block-editor-block-switcher__preview__popover{display:block}}.block-editor-block-switcher__preview__popover .components-popover__content{background:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:none;outline:none;overflow:auto;width:300px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview{margin:16px 0;max-height:468px;overflow:hidden;padding:0 16px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview.is-pattern-list-preview{overflow:unset}.block-editor-block-switcher__preview-title{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;text-transform:uppercase}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{min-width:36px}.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 .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{height:48px;width: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-switcher__preview-patterns-container{padding-bottom:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item{margin-top:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container{cursor:pointer}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{border:1px solid #0000;border-radius:2px;height:100%;position:relative;transition:all .05s ease-in-out}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:focus,.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item .block-editor-block-switcher__preview-patterns-container-list__item-title{cursor:pointer;font-size:12px;padding:4px;text-align:center}.block-editor-block-switcher__no-transforms{color:#757575;margin:0;padding:6px 8px}.block-editor-block-types-list>[role=presentation]{display:flex;flex-wrap:wrap;overflow:hidden}.block-editor-block-pattern-setup{align-items:flex-start;border-radius:2px;display:flex;flex-direction:column;justify-content:center;width:100%}.block-editor-block-pattern-setup.view-mode-grid{padding-top:4px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__toolbar{justify-content:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-count:2;column-gap:24px;display:block;padding:0 32px;width:100%}@media (min-width:1440px){.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-count:3}}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button]{cursor:pointer}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item{scroll-margin:5px 0}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:2px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-pattern-setup-list__item-title,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-pattern-setup-list__item-title{color:var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item{break-inside:avoid-column;margin-bottom:24px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title{cursor:pointer;font-size:12px;padding-top:8px;text-align:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__container{border:1px solid #ddd;border-radius:2px;min-height:100px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__content{width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar{align-items:center;align-self:stretch;background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:row;height:60px;justify-content:space-between;margin:0;padding:16px;position:absolute;text-align:right;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__display-controls{display:flex}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions,.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__navigation{display:flex;width:calc(50% - 36px)}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions{justify-content:flex-end}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container{box-sizing:border-box;display:flex;flex-direction:column;height:100%;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container{height:100%;list-style:none;margin:0;overflow:hidden;padding:0;position:relative;transform-style:preserve-3d}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container *{box-sizing:border-box}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{background-color:#fff;height:100%;margin:auto;padding:0;position:absolute;top:0;transition:transform .5s,z-index .5s;width:100%;z-index:100}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.active-slide{opacity:1;position:relative;z-index:102}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.previous-slide{transform:translateX(100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.next-slide{transform:translateX(-100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .block-list-appender{display:none}.block-editor-block-pattern-setup__carousel,.block-editor-block-pattern-setup__grid{width:100%}.block-editor-block-variation-transforms{padding:0 52px 16px 16px;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle{border:1px solid #757575;border-radius:2px;justify-content:right;min-height:30px;padding:6px 12px;position:relative;text-align:right;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle.components-dropdown-menu__toggle{padding-left:24px}.block-editor-block-variation-transforms .components-dropdown-menu__toggle:focus:not(:disabled){border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 calc(var(--wp-admin-border-width-focus) - 1px) var(--wp-admin-theme-color)}.block-editor-block-variation-transforms .components-dropdown-menu__toggle svg{height:100%;left:0;padding:0;position:absolute;top:0}.block-editor-block-variation-transforms__popover .components-popover__content{min-width:230px}.components-border-radius-control{margin-bottom:12px}.components-border-radius-control legend{margin-bottom:8px}.components-border-radius-control .components-border-radius-control__wrapper{align-items:flex-start;display:flex;justify-content:space-between}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__unit-control{flex-shrink:0;margin-bottom:0;margin-left:16px;width:calc(50% - 8px)}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control{flex:1;margin-left:12px}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control>div{align-items:center;display:flex;height:40px}.components-border-radius-control .components-border-radius-control__wrapper>span{flex:0 0 auto}.components-border-radius-control .components-border-radius-control__input-controls-wrapper{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr));margin-left:12px}.components-border-radius-control .component-border-radius-control__linked-button{display:flex;justify-content:center;margin-top:8px}.components-border-radius-control .component-border-radius-control__linked-button svg{margin-left:0}.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control__fieldset{min-width:0}.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings,.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings>div:not(:first-of-type){display:block}@media screen and (min-width:782px){.block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches{display:grid;grid-template-columns:repeat(6,28px)}}.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control{margin-bottom:inherit}.block-editor-panel-color-gradient-settings__dropdown-content .block-editor-color-gradient-control__panel{padding:16px;width:260px}.block-editor-panel-color-gradient-settings__color-indicator{background:linear-gradient(45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0)}.block-editor-tools-panel-color-gradient-settings__item{border-bottom:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #ddd;max-width:100%;padding:0}.block-editor-tools-panel-color-gradient-settings__item:nth-child(1 of .block-editor-tools-panel-color-gradient-settings__item){border-top:1px solid #ddd;border-top-left-radius:2px;border-top-right-radius:2px;margin-top:24px}.block-editor-tools-panel-color-gradient-settings__item:nth-last-child(1 of .block-editor-tools-panel-color-gradient-settings__item){border-bottom-left-radius:2px;border-bottom-right-radius:2px}.block-editor-tools-panel-color-gradient-settings__item>div,.block-editor-tools-panel-color-gradient-settings__item>div>button{border-radius:inherit}.block-editor-tools-panel-color-gradient-settings__dropdown{display:block;padding:0}.block-editor-tools-panel-color-gradient-settings__dropdown>button{height:auto;padding-bottom:10px;padding-top:10px;text-align:right}.block-editor-tools-panel-color-gradient-settings__dropdown>button.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.block-editor-tools-panel-color-gradient-settings__dropdown .block-editor-panel-color-gradient-settings__color-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-panel-color-gradient-settings__dropdown{width:100%}.block-editor-panel-color-gradient-settings__dropdown .component-color-indicator{flex-shrink:0}.block-editor-date-format-picker{margin-bottom:16px}.block-editor-date-format-picker__custom-format-select-control__custom-option{border-top:1px solid #ddd}.block-editor-date-format-picker__custom-format-select-control__custom-option.has-hint{grid-template-columns:auto 30px}.block-editor-date-format-picker__custom-format-select-control__custom-option .components-custom-select-control__item-hint{grid-row:2;text-align:right}.block-editor-duotone-control__popover>.components-popover__content{padding:16px;width:260px}.block-editor-duotone-control__popover .components-menu-group__label{padding:0}.block-editor-duotone-control__popover .components-circular-option-picker__swatches{display:grid;gap:12px;grid-template-columns:repeat(6,28px);justify-content:space-between}.block-editor-duotone-control__unset-indicator{background:linear-gradient(45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0)}.components-font-appearance-control ul li{color:#1e1e1e;text-transform:capitalize}.block-editor-global-styles__toggle-icon{fill:currentColor}.block-editor-global-styles__shadow-popover-container{width:230px}.block-editor-global-styles__shadow__list{display:flex;flex-wrap:wrap;gap:12px;padding-bottom:8px}.block-editor-global-styles__clear-shadow{text-align:left}.block-editor-global-styles-filters-panel__dropdown,.block-editor-global-styles__shadow-dropdown{display:block;padding:0}.block-editor-global-styles-filters-panel__dropdown button,.block-editor-global-styles__shadow-dropdown button{padding:8px;width:100%}.block-editor-global-styles-filters-panel__dropdown button.is-open,.block-editor-global-styles__shadow-dropdown button.is-open{background-color:#f0f0f0}.block-editor-global-styles__shadow-indicator{border:1px solid #e0e0e0;border-radius:2px;box-sizing:border-box;color:#2f2f2f;cursor:pointer;height:26px;padding:0;transform:scale(1);transition:transform .1s ease;width:26px;will-change:transform}.block-editor-global-styles__shadow-indicator:focus{border:2px solid #757575}.block-editor-global-styles__shadow-indicator:hover{transform:scale(1.2)}.block-editor-global-styles__shadow-indicator.unset{background:linear-gradient(45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0)}.block-editor-global-styles-advanced-panel__custom-css-input textarea{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}.block-editor-height-control{border:0;margin:0;padding:0}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__width{margin-bottom:1.115em}.block-editor-block-types-list__list-item{display:block;margin:0;padding:0;width:33.33%}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled) .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-block-synced-color)!important;filter:brightness(.95)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-block-synced-color)!important}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):after{background:var(--wp-block-synced-color)}.components-button.block-editor-block-types-list__item{align-items:stretch;background:#0000;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;flex-direction:column;font-size:13px;height:auto;justify-content:center;padding:8px;position:relative;transition:all .05s ease-in-out;width:100%;word-break:break-word}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-delay:0s;transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{cursor:default;opacity:.6}.components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-admin-theme-color)!important;filter:brightness(.95)}.components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled):hover:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;pointer-events:none;position:absolute;right:0;top:0}.components-button.block-editor-block-types-list__item:not(:disabled):focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{background:#1e1e1e;color:#fff;outline:2px solid #0000;outline-offset:-2px}.block-editor-block-types-list__item-icon{border-radius:2px;color:#1e1e1e;padding:12px 20px;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-delay:0s;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-delay:0s;transition-duration:0s}}.block-editor-block-types-list__list-item[draggable=true] .block-editor-block-types-list__item-icon{cursor:grab}.block-editor-block-types-list__item-title{font-size:12px;padding:4px 2px 8px}.show-icon-labels .block-editor-block-inspector__tabs [role=tablist] .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-inspector__tabs [role=tablist] .components-button.has-icon:before{content:attr(aria-label)}.block-editor-inspector-controls-tabs__hint{align-items:flex-start;background:#f0f0f0;border-radius:2px;color:#1e1e1e;display:flex;flex-direction:row;font-size:13px;margin:16px}.block-editor-inspector-controls-tabs__hint-content{margin:12px 12px 12px 0}.block-editor-inspector-controls-tabs__hint-dismiss{margin:4px 0 4px 4px}.block-editor-inspector-popover-header{margin-bottom:16px}[class].block-editor-inspector-popover-header__action{height:24px}[class].block-editor-inspector-popover-header__action.has-icon{min-width:24px;padding:0}[class].block-editor-inspector-popover-header__action:not(.has-icon){text-decoration:underline}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}@keyframes loadingpulse{0%{opacity:1}50%{opacity:0}to{opacity:1}}.block-editor-link-control{min-width:350px;position:relative}.components-popover__content .block-editor-link-control{max-width:350px;min-width:auto;width:90vw}.show-icon-labels .block-editor-link-control .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-link-control .components-button.has-icon:before{content:attr(aria-label)}.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top{gap:8px}.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top .components-button.has-icon{min-width:inherit;width:min-content}.block-editor-link-control__search-input-wrapper{margin-bottom:8px;position:relative}.block-editor-link-control__search-input-container,.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control__field{margin:16px}.block-editor-link-control__field .components-base-control__label{color:#1e1e1e}.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:40px;line-height:normal;margin:0;padding:8px 16px 8px 40px;position:relative;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{font-size:13px;line-height:normal}}.block-editor-link-control__field input[type=text]:focus,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-link-control__field input[type=text]::-webkit-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-webkit-input-placeholder{color:#1e1e1e9e}.block-editor-link-control__field input[type=text]::-moz-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-moz-placeholder{color:#1e1e1e9e;opacity:1}.block-editor-link-control__field input[type=text]:-ms-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:-ms-input-placeholder{color:#1e1e1e9e}.has-actions .block-editor-link-control__field input[type=text],.has-actions .block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{padding-left:16px}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-enter{left:19px;position:absolute;top:3px}.block-editor-link-control__search-enter svg{position:relative;top:-2px}.block-editor-link-control__search-actions{padding:8px 16px 16px}.block-editor-link-control__search-results-wrapper{position:relative}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";display:block;left:16px;pointer-events:none;position:absolute;right:-1px;z-index:100}.block-editor-link-control__search-results-wrapper:before{bottom:auto;height:8px;top:0}.block-editor-link-control__search-results-wrapper:after{bottom:0;height:16px;top:auto}.block-editor-link-control__search-results{margin-top:-16px;max-height:200px;overflow-y:auto;padding:8px}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item.components-button.components-menu-item__button{height:auto;text-align:right}.block-editor-link-control__search-item .components-menu-item__item{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.block-editor-link-control__search-item .components-menu-item__item mark{background-color:initial;color:inherit;font-weight:600}.block-editor-link-control__search-item .components-menu-item__shortcut{color:#757575;text-transform:capitalize;white-space:nowrap}.block-editor-link-control__search-item[aria-selected]{background:#f0f0f0}.block-editor-link-control__search-item.is-current{background:#0000;border:0;cursor:default;flex-direction:column;padding:16px;width:100%}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{align-items:center;display:block;flex-direction:row;gap:8px;margin-left:8px;overflow-wrap:break-word;white-space:pre-wrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-header .block-editor-link-control__search-item-info{color:#757575;font-size:12px;line-height:1.1;word-break:break-all}.block-editor-link-control__search-item.is-preview .block-editor-link-control__search-item-header{display:flex;flex:1}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-header{align-items:center}.block-editor-link-control__search-item.is-url-title .block-editor-link-control__search-item-title{word-break:break-all}.block-editor-link-control__search-item .block-editor-link-control__search-item-details{display:flex;flex-direction:column;gap:4px;justify-content:space-between}.block-editor-link-control__search-item .block-editor-link-control__search-item-header .block-editor-link-control__search-item-icon{background-color:#f0f0f0;border-radius:2px;height:32px;width:32px}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{align-items:center;display:flex;flex-shrink:0;justify-content:center;position:relative}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon img{width:16px}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-icon{max-height:32px;top:0;width:32px}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{border-radius:2px;line-height:1.1}.block-editor-link-control__search-item .block-editor-link-control__search-item-title:focus{box-shadow:none}.block-editor-link-control__search-item .block-editor-link-control__search-item-title:focus-visible{box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000;text-decoration:none}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{background-color:initial;color:inherit;font-weight:600}.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-title svg{display:none}.block-editor-link-control__search-item-top{align-items:center;display:flex;flex-direction:row;width:100%}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon img,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon svg{opacity:0}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon:before{animation:loadingpulse 1s linear infinite;animation-delay:.5s;background-color:#f0f0f0;border-radius:100%;bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}.block-editor-link-control__loading{align-items:center;display:flex;margin:16px}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{overflow:visible;padding:12px 16px}.components-button+.block-editor-link-control__search-create:before{content:"";display:block;position:absolute;right:0;top:-10px;width:100%}.block-editor-link-control__search-create{align-items:center}.block-editor-link-control__search-create .block-editor-link-control__search-item-title{margin-bottom:0}.block-editor-link-control__search-create .block-editor-link-control__search-item-icon{top:0}.block-editor-link-control__drawer-inner{display:flex;flex-basis:100%;flex-direction:column;position:relative}.block-editor-link-control__setting{flex:1;margin-bottom:0;padding:8px 24px 8px 0}.block-editor-link-control__setting .components-base-control__field{display:flex}.block-editor-link-control__setting .components-base-control__field .components-checkbox-control__label{color:#1e1e1e}.block-editor-link-control__setting input{margin-right:0}.is-preview .block-editor-link-control__setting{padding:20px 0 8px 8px}.block-editor-link-control__tools{margin-top:-16px;padding:8px 8px 0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle{gap:0;padding-right:0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true]{color:#1e1e1e}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transform:rotate(-90deg);transition:transform .1s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transition-delay:0s;transition-duration:0s}}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transform:rotate(0deg);transition:transform .1s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transition-delay:0s;transition-duration:0s}}.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{bottom:auto;left:40px;position:absolute;right:auto;top:calc(50% - 8px)}.block-editor-link-control .block-editor-link-control__search-input-wrapper.has-actions .components-spinner{left:12px;top:calc(50% + 4px)}.block-editor-list-view-tree{border-collapse:collapse;margin:0;padding:0;width:100%}.components-modal__content .block-editor-list-view-tree{margin:-12px -6px 0;width:calc(100% + 12px)}.block-editor-list-view-tree.is-dragging tbody{pointer-events:none}.block-editor-list-view-leaf{position:relative;transform:translateY(0)}.block-editor-list-view-leaf.is-draggable,.block-editor-list-view-leaf.is-draggable .block-editor-list-view-block-contents{cursor:grab}.block-editor-list-view-leaf .block-editor-list-view-block-select-button[aria-expanded=true]{color:inherit}.block-editor-list-view-leaf .block-editor-list-view-block-select-button:hover{color:var(--wp-admin-theme-color)}.is-dragging-components-draggable .block-editor-list-view-leaf:not(.is-selected) .block-editor-list-view-block-select-button:hover{color:inherit}.block-editor-list-view-leaf.is-selected td{background:var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced td{background:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:hover{color:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents,.block-editor-list-view-leaf.is-selected .components-button.has-icon{color:#fff}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-list-view-leaf.is-first-selected td:first-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-first-selected td:last-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-last-selected td:first-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-last-selected td:last-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.block-editor-list-view-leaf.is-synced-branch.is-branch-selected{background:rgba(var(--wp-block-synced-color--rgb),.04)}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:first-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:last-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:first-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:last-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:first-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:last-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected) td{border-radius:0}.block-editor-list-view-leaf.is-displacement-normal{transform:translateY(0);transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-displacement-normal{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-displacement-up{transform:translateY(-36px);transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-displacement-up{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-displacement-down{transform:translateY(36px);transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-displacement-down{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-after-dragged-blocks{transform:translateY(calc(var(--wp-admin--list-view-dragged-items-height, 36px)*-1));transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-after-dragged-blocks{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transform:translateY(calc(-36px + var(--wp-admin--list-view-dragged-items-height, 36px)*-1));transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transform:translateY(calc(36px + var(--wp-admin--list-view-dragged-items-height, 36px)*-1));transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-dragging{opacity:0;pointer-events:none;right:0;z-index:-9999}.block-editor-list-view-leaf .block-editor-list-view-block-contents{align-items:center;border-radius:2px;display:flex;height:auto;padding:6px 0 6px 4px;position:relative;text-align:right;white-space:nowrap;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-contents.is-dropping-before:before{border-top:4px solid var(--wp-admin-theme-color);content:"";left:0;pointer-events:none;position:absolute;right:0;top:-2px;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear}.components-modal__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{padding-left:0;padding-right:0}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents{box-shadow:none}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:-29px;pointer-events:none;position:absolute;right:0;top:0;z-index:2}.block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus:after{left:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu:focus,.block-editor-list-view-leaf.is-nesting .block-editor-list-view__menu{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);z-index:1}.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards;opacity:1}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation-delay:0s;animation-duration:1ms}}.block-editor-list-view-leaf .block-editor-block-icon{flex:0 0 24px;margin-left:8px}.block-editor-list-view-leaf .block-editor-list-view-block__contents-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{padding-bottom:0;padding-top:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{line-height:0;vertical-align:middle;width:36px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell>*{opacity:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:hover>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:hover>*{opacity:1}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell .components-button.has-icon{min-width:24px;padding:0;width:24px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell{padding-left:4px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon{height:24px}.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell-alignment-wrapper{align-items:center;display:flex;flex-direction:column;height:100%}.block-editor-list-view-leaf .block-editor-block-mover-button{height:24px;position:relative;width:36px}.block-editor-list-view-leaf .block-editor-block-mover-button svg{height:24px;position:relative}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end;margin-top:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start;margin-bottom:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button:before{height:16px;left:0;min-width:100%;right:0}.block-editor-list-view-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 1px 6px 6px;min-width:24px}.block-editor-list-view-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper{min-width:120px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title{flex:1;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title .components-truncate{position:absolute;transform:translateY(-50%);width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor-wrapper{max-width:min(110px,40%);position:relative;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor{background:#0000001a;border-radius:2px;box-sizing:border-box;left:0;max-width:100%;padding:2px 6px;position:absolute;transform:translateY(-50%)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor{background:#0000004d}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__lock{line-height:0}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__images{display:flex}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image{background-size:cover;border-radius:2px;height:18px;width:18px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px #fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:first-child){margin-right:-6px}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-list-view-draggable-chip{opacity:.8}.block-editor-list-view-appender__cell .block-editor-list-view-appender__container,.block-editor-list-view-appender__cell .block-editor-list-view-block__contents-container,.block-editor-list-view-block__contents-cell .block-editor-list-view-appender__container,.block-editor-list-view-block__contents-cell .block-editor-list-view-block__contents-container{display:flex}.block-editor-list-view__expander{cursor:pointer;height:24px;margin-right:4px;width:24px}.block-editor-list-view-leaf[aria-level] .block-editor-list-view__expander{margin-right:220px}.block-editor-list-view-leaf:not([aria-level="1"]) .block-editor-list-view__expander{margin-left:4px}.block-editor-list-view-leaf[aria-level="1"] .block-editor-list-view__expander{margin-right:0}.block-editor-list-view-leaf[aria-level="2"] .block-editor-list-view__expander{margin-right:24px}.block-editor-list-view-leaf[aria-level="3"] .block-editor-list-view__expander{margin-right:52px}.block-editor-list-view-leaf[aria-level="4"] .block-editor-list-view__expander{margin-right:80px}.block-editor-list-view-leaf[aria-level="5"] .block-editor-list-view__expander{margin-right:108px}.block-editor-list-view-leaf[aria-level="6"] .block-editor-list-view__expander{margin-right:136px}.block-editor-list-view-leaf[aria-level="7"] .block-editor-list-view__expander{margin-right:164px}.block-editor-list-view-leaf[aria-level="8"] .block-editor-list-view__expander{margin-right:192px}.block-editor-list-view-leaf .block-editor-list-view__expander{visibility:hidden}.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transform:rotate(-90deg);transition:transform .2s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transform:rotate(0deg);transition:transform .2s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-drop-indicator{pointer-events:none}.block-editor-list-view-drop-indicator .block-editor-list-view-drop-indicator__line{background:var(--wp-admin-theme-color);border-radius:4px;height:4px}.block-editor-list-view-drop-indicator--preview{pointer-events:none}.block-editor-list-view-drop-indicator--preview .components-popover__content{overflow:hidden!important}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:4px;height:36px;overflow:hidden}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line--darker{background:rgba(var(--wp-admin-theme-color--rgb),.09)}.block-editor-list-view-placeholder{height:36px;margin:0;padding:0}.list-view-appender .block-editor-inserter__toggle{background-color:#1e1e1e;border-radius:2px;color:#fff;height:24px;margin:8px 24px 0 0;min-width:24px;padding:0}.list-view-appender .block-editor-inserter__toggle:focus,.list-view-appender .block-editor-inserter__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.list-view-appender__description{display:none}.block-editor-list-view-block-select-button__bindings svg g{stroke:var(--wp-bound-block-color);fill:#0000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__indicator{margin-right:4px}.block-editor-media-flow__url-input{margin-left:-8px;margin-right:-8px;padding:16px}.block-editor-media-flow__url-input.has-siblings{border-top:1px solid #1e1e1e;margin-top:8px;padding-bottom:8px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{display:block;margin-bottom:8px;top:16px}.block-editor-media-flow__url-input .block-editor-link-control{width:300px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-url-input{margin:0;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-info,.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:200px;white-space:nowrap}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__tools{justify-content:flex-end;padding:16px var(--wp-admin-border-width-focus) var(--wp-admin-border-width-focus)}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{padding:0;width:auto}.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:0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{padding:8px 0 0}.block-editor-media-flow__error{max-width:255px;padding:0 20px 20px}.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{left:10px;position:absolute}.block-editor-multi-selection-inspector__card{align-items:flex-start;display:flex;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{height:24px;margin-left:10px;margin-right:-2px;padding:0 3px;width:36px}.block-editor-responsive-block-control{border-bottom:1px solid #ccc;margin-bottom:28px;padding-bottom:14px}.block-editor-responsive-block-control:last-child{border-bottom:0;padding-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}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{box-shadow:none;margin-bottom:8px;min-width:auto;outline:none;width:auto}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar{border-radius:2px}.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-height:48px;min-width:48px;padding-left:12px;padding-right:12px}.block-editor-rich-text__inline-format-toolbar-group .components-dropdown-menu__toggle{justify-content:center}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon{width:auto}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon:after{content:attr(aria-label)}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{background:#f1f1f1;box-shadow:0 0 2px 2px #0009;color:var(--wp-admin-theme-color);display:block;font-size:14px;font-weight:600;height:auto;line-height:normal;outline:none;padding:15px 23px 14px;text-decoration:none;width:auto;z-index:100000}.block-editor-text-decoration-control{border:0;margin:0;padding:0}.block-editor-text-decoration-control .block-editor-text-decoration-control__buttons{display:flex;padding:4px 0}.block-editor-text-decoration-control .components-button.has-icon{height:32px;margin-left:4px;min-width:32px;padding:0}.block-editor-text-transform-control{border:0;margin:0;padding:0}.block-editor-text-transform-control .block-editor-text-transform-control__buttons{display:flex;padding:4px 0}.block-editor-text-transform-control .components-button.has-icon{height:32px;margin-left:4px;min-width:32px;padding:0}.block-editor-tool-selector__help{border-top:1px solid #ddd;color:#757575;margin:8px -8px -8px;min-width:280px;padding:16px}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;padding:1px;position:relative}.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:16px;margin-left:0;margin-right:0;padding:8px 12px 8px 8px;width:100%}@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;width:300px}}.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-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.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{left:8px;margin:0;position:absolute;top:calc(50% - 8px)}.block-editor-url-input__input[type=text]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-url-input__input[type=text]{transition-delay:0s;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:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:#1e1e1e9e}.block-editor-url-input__input[type=text]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:#1e1e1e9e}.block-editor-url-input__suggestions{max-height:200px;overflow-y:auto;padding:4px 0;transition:all .15s ease-in-out;width:302px}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-delay:0s;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:grid}}.block-editor-url-input__suggestion{background:#fff;border:none;box-shadow:none;color:#757575;cursor:pointer;display:block;font-size:13px;height:auto;min-height:36px;text-align:right;width:100%}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{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{background:#ddd;content:"";display:block;height:24px;left:-1px;position:absolute;width:1px}.block-editor-url-input__button-modal{background:#fff;border:1px solid #ddd;box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a}.block-editor-url-input__button-modal-line{align-items:flex-start;display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;height:36px;width:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #1e1e1e;padding:8px}.block-editor-url-popover__input-container{padding:8px}.block-editor-url-popover__row{display:flex;gap:4px}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1;gap:8px}.block-editor-url-popover__additional-controls .components-button.has-icon{height:auto;padding-left:8px;padding-right:8px;text-align:right}.block-editor-url-popover__additional-controls .components-button.has-icon>svg{margin-left:8px}.block-editor-url-popover__settings-toggle{flex-shrink:0}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(-180deg)}.block-editor-url-popover__settings{border-top:1px solid #1e1e1e;display:block;padding:16px}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-viewer-url{align-items:center;display:flex;flex-grow:1;flex-shrink:1;margin-left:8px;max-width:350px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#cc1818}.block-editor-url-popover__expand-on-click{align-items:center;display:flex;min-width:350px;white-space:nowrap}.block-editor-url-popover__expand-on-click .text{flex-grow:1}.block-editor-url-popover__expand-on-click .text p{line-height:16px;margin:0}.block-editor-url-popover__expand-on-click .text p.description{color:#757575;font-size:12px}.html-anchor-control .components-external-link{display:block;margin-top:8px}.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack{flex-direction:row-reverse}.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack .components-h-stack{flex-direction:row}.block-editor-hooks__block-hooks .block-editor-hooks__block-hooks-helptext{color:#757575;font-size:12px;margin-bottom:16px}.block-editor-hooks__background__inspector-media-replace-container{position:relative}.block-editor-hooks__background__inspector-media-replace-container .components-drop-zone__content-icon{display:none}.block-editor-hooks__background__inspector-media-replace-container button.components-button{box-shadow:inset 0 0 0 1px #ddd;color:#1e1e1e;display:block;height:40px;width:100%}.block-editor-hooks__background__inspector-media-replace-container button.components-button:hover{color:var(--wp-admin-theme-color)}.block-editor-hooks__background__inspector-media-replace-container button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-hooks__background__inspector-media-replace-container .block-editor-hooks__background__inspector-media-replace-title{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-editor-hooks__background__inspector-media-replace-container .components-dropdown{display:block}.block-editor-hooks__background__inspector-image-indicator-wrapper{background:#fff linear-gradient(45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0);border-radius:50%!important;box-shadow:inset 0 0 0 1px #0003;display:block;flex:none;height:20px;width:20px}.block-editor-hooks__background__inspector-image-indicator-wrapper.has-image{background:#fff}.block-editor-hooks__background__inspector-image-indicator{background-size:cover;border-radius:50%;display:block;height:20px;position:relative;width:20px}.block-editor-hooks__background__inspector-image-indicator:after{border:1px solid #0000;border-radius:50%;bottom:-1px;box-shadow:inset 0 0 0 1px #0003;box-sizing:inherit;content:"";left:-1px;position:absolute;right:-1px;top:-1px}.border-block-support-panel .single-column{grid-column:span 1}.color-block-support-panel .block-editor-contrast-checker{grid-column:span 2;margin-top:16px;order:9999}.color-block-support-panel .block-editor-contrast-checker .components-notice__content{margin-left:0}.color-block-support-panel.color-block-support-panel .color-block-support-panel__inner-wrapper{row-gap:0}.color-block-support-panel .block-editor-tools-panel-color-gradient-settings__item.first{margin-top:0}.dimensions-block-support-panel .single-column{grid-column:span 1}.block-editor-hooks__layout-controls{display:flex;margin-bottom:8px}.block-editor-hooks__layout-controls .block-editor-hooks__layout-controls-unit{display:flex;margin-left:24px}.block-editor-hooks__layout-controls .block-editor-hooks__layout-controls-unit svg{margin:auto 8px 4px 0}.block-editor-block-inspector .block-editor-hooks__layout-controls-unit-input{margin-bottom:0}.block-editor-hooks__layout-controls-reset{display:flex;justify-content:flex-end;margin-bottom:24px}.block-editor-hooks__layout-controls-helptext{color:#757575;font-size:12px;margin-bottom:16px}.block-editor-hooks__flex-layout-justification-controls,.block-editor-hooks__flex-layout-orientation-controls{margin-bottom:12px}.block-editor-hooks__flex-layout-justification-controls legend,.block-editor-hooks__flex-layout-orientation-controls legend{margin-bottom:8px}.block-editor-hooks__toggle-control.block-editor-hooks__toggle-control{margin-bottom:16px}.block-editor__padding-visualizer{border-color:var(--wp-admin-theme-color);border-style:solid;bottom:0;box-sizing:border-box;left:0;opacity:.5;pointer-events:none;position:absolute;right:0;top:0}.block-editor-hooks__position-selection__select-control .components-custom-select-control__hint{display:none}.block-editor-hooks__position-selection__select-control__option.has-hint{grid-template-columns:auto 30px;line-height:1.4;margin-bottom:0}.block-editor-hooks__position-selection__select-control__option .components-custom-select-control__item-hint{grid-row:2;text-align:right}.typography-block-support-panel .single-column{grid-column:span 1}.block-editor-block-toolbar{display:flex;flex-grow:1;overflow-x:auto;overflow-y:hidden;position:relative;transition:border-color .1s linear,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-delay:0s;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;border:0;border-left:1px solid #ddd;line-height:0;margin-bottom:-1px;margin-top:-1px}.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.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-contextual-toolbar{background-color:#fff;display:block;flex-shrink:3;position:sticky;top:0;width:100%;z-index:31}.block-editor-block-contextual-toolbar.components-accessible-toolbar{border:none;border-bottom:1px solid #e0e0e0;border-radius:0}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{overflow:auto;overflow-y:hidden;scrollbar-color:#e0e0e0 #0000;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar{height:12px;width:12px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-track{background-color:initial}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#e0e0e0;border:3px solid #0000;border-radius:8px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover::-webkit-scrollbar-thumb{background-color:#949494}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover{scrollbar-color:#949494 #0000}@media (hover:none){.block-editor-block-contextual-toolbar .block-editor-block-toolbar{scrollbar-color:#949494 #0000}}.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar-group:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child:after{display:none}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group{border-left-color:#e0e0e0}.block-editor-block-contextual-toolbar>.block-editor-block-toolbar{flex-grow:0;width:auto}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector{margin-bottom:-1px;margin-top:-1px;position:relative}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector:after{align-items:center;content:"·";display:inline-flex;font-size:16px;height:32px;left:0;position:absolute;top:0}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin:0!important;width:24px!important}.block-editor-block-toolbar__block-controls .components-toolbar-group{padding:0}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports (position:sticky){.block-editor-block-toolbar__slot{display:inline-flex}}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon{width:auto}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.show-icon-labels .components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.show-icon-labels .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{height:0!important;min-width:0!important;width:0!important}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button{border-bottom-left-radius:0;border-top-left-radius:0;padding-left:12px;padding-right:12px;text-wrap:nowrap}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button .block-editor-block-icon{width:0}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container{position:relative;width:auto}@media (min-width:600px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{background:#e0e0e0;content:"";height:1px;margin-top:-.5px;position:absolute;right:50%;top:50%;transform:translate(50%);width:100%}}@media (min-width:782px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover-button,.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button{padding-left:8px;padding-right:8px}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-right:1px solid #ddd;margin-left:-6px;margin-right:6px;white-space:nowrap}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon{padding-left:12px;padding-right:12px}.show-icon-labels .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{width:auto}.show-icon-labels .components-toolbar,.show-icon-labels .components-toolbar-group{flex-shrink:1}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button+.components-button{margin-right:6px}.block-editor-inserter{background:none;border:none;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:0;padding:0}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__main-area{display:flex;flex-direction:column;gap:16px;height:100%;overflow-y:hidden;position:relative}.block-editor-inserter__main-area.show-as-tabs{gap:0}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__popover.is-quick .components-popover__content{border:none;box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;outline:none}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*{border-left:1px solid #ccc;border-right:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:first-child{border-radius:2px 2px 0 0;border-top:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:last-child{border-bottom:1px solid #ccc;border-radius:0 0 2px 2px}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>.components-button{border:1px solid #1e1e1e}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs div[role=tablist]{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{height:auto;overflow:visible}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{align-items:center;border:none;cursor:pointer;display:inline-flex;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-delay:0s;transition-duration:0s}}.block-editor-inserter__menu{height:100%;overflow:visible;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:99999}.block-editor-inserter__search{padding:16px 16px 0}.block-editor-inserter__tabs{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.block-editor-inserter__tabs div[role=tablist]{border-bottom:1px solid #ddd}.block-editor-inserter__tabs div[role=tablist] button[role=tab]{flex-grow:1;margin-bottom:-1px}.block-editor-inserter__tabs div[role=tablist] button[role=tab][id$=reusable]{flex-grow:inherit;padding-left:16px;padding-right:16px}.block-editor-inserter__tabs div[role=tabpanel]{display:flex;flex-direction:column;flex-grow:1;overflow-y:auto}.block-editor-inserter__no-tab-container{flex-grow:1;overflow-y:auto}.block-editor-inserter__panel-header{align-items:center;display:inline-flex;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button{color:#757575;font-size:11px;font-weight:500;margin:0 0 0 12px;text-transform:uppercase}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{height:36px;line-height:36px}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:left}.block-editor-inserter__manage-reusable-blocks-container{margin:auto 16px 16px}.block-editor-inserter__manage-reusable-blocks{justify-content:center;width:100%}.block-editor-inserter__no-results{padding:32px;text-align:center}.block-editor-inserter__no-results-icon{fill:#949494}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{align-items:center;display:flex}.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__popover{top:16px!important}.block-editor-inserter__preview-container{display:none;max-height:calc(100% - 32px);overflow-y:hidden;padding:16px;width:280px}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-block-preview__container{height:100%}.block-editor-inserter__preview-container .block-editor-block-card{padding-bottom:4px;padding-left:0;padding-right:0}.block-editor-inserter__patterns-explore-button.components-button{justify-content:center;margin-top:16px;padding:16px;width:100%}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category{color:var(--wp-admin-theme-color);position:relative}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category .components-flex-item{filter:brightness(.95)}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category svg{fill:var(--wp-admin-theme-color)}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;position:absolute;right:0;top:0}.block-editor-inserter__block-patterns-tabs-container,.block-editor-inserter__block-patterns-tabs-container nav{height:100%}.block-editor-inserter__block-patterns-tabs{display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:16px}.block-editor-inserter__block-patterns-tabs div[role=listitem]:last-child{margin-top:auto}.block-editor-inserter__block-patterns-tabs .block-editor-inserter__patterns-category{padding-left:4px}.block-editor-inserter__patterns-category-dialog{background:#f0f0f0;border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;height:100%;position:absolute;right:0;top:0;width:100%}@media (min-width:782px){.block-editor-inserter__patterns-category-dialog{display:block;right:100%;width:300px}}.block-editor-inserter__patterns-category-dialog .block-editor-block-patterns-list{flex-grow:1;height:100%;overflow-y:auto;padding:16px 24px}.block-editor-block-patterns-list__list-item .block-editor-block-preview__container{box-shadow:0 15px 25px #00000012}.block-editor-block-patterns-list__list-item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px #1e1e1e,0 15px 25px #00000012}.block-editor-inserter__patterns-category-panel{display:flex;flex-direction:column;height:100%;padding:0 16px}@media (min-width:782px){.block-editor-inserter__patterns-category-panel{padding:0}}.block-editor-inserter__patterns-category-panel .block-editor-inserter__patterns-category-panel-header{padding:16px 24px}.block-editor-inserter__patterns-category-panel .block-editor-inserter__patterns-category-no-results{margin-top:24px}.block-editor-inserter__preview-content{align-items:center;background:#f0f0f0;display:grid;flex-grow:1;min-height:144px}.block-editor-inserter__preview-content-missing{align-items:center;background:#f0f0f0;border-radius:2px;color:#757575;display:flex;flex:1;justify-content:center;min-height:144px}.block-editor-inserter__tips{border-top:1px solid #ddd;flex-shrink:0;padding:16px;position:relative}.block-editor-inserter__quick-inserter{max-width:100%;width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{float:right;height:0;padding:0}.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-preview__container{min-height:100px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{background:#1e1e1e;border-radius:0;color:#fff;display:block;height:44px;width:100%}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:active{color:#ccc}.block-editor-inserter__quick-inserter-expand.components-button.components-button:focus:not(:disabled){background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);box-shadow:none}.block-editor-block-patterns-explorer__sidebar{bottom:0;overflow-x:visible;overflow-y:scroll;padding:24px 32px 32px;position:absolute;right:0;top:72px;width:280px}.block-editor-block-patterns-explorer__sidebar__categories-list__item{display:block;height:48px;text-align:right;width:100%}.block-editor-block-patterns-explorer__search{margin-bottom:32px}.block-editor-block-patterns-explorer__search-results-count{padding-bottom:32px}.block-editor-block-patterns-explorer__list{margin-right:280px;padding:24px 0 32px}.block-editor-block-patterns-explorer__list .block-editor-patterns__sync-status-filter .components-input-control__container{width:380px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list{display:grid;grid-gap:32px;grid-template-columns:repeat(1,1fr);margin-bottom:16px}@media (min-width:1080px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(2,1fr)}}@media (min-width:1440px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(3,1fr)}}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{min-height:240px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-preview__container{height:inherit;max-height:800px;min-height:100px}.block-editor-inserter__patterns-category-panel-title{font-size:16.25px}.block-editor-inserter__media-tabs-container,.block-editor-inserter__media-tabs-container nav{height:100%}.block-editor-inserter__media-tabs-container .block-editor-inserter__media-library-button{justify-content:center;margin-top:16px;padding:16px;width:100%}.block-editor-inserter__media-tabs{display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:16px}.block-editor-inserter__media-tabs div[role=listitem]:last-child{margin-top:auto}.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category{padding-left:4px}.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category.is-selected{color:var(--wp-admin-theme-color);position:relative}.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category.is-selected .components-flex-item{filter:brightness(.95)}.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category.is-selected svg{fill:var(--wp-admin-theme-color)}.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category.is-selected:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;position:absolute;right:0;top:0}.block-editor-inserter__media-dialog{background:#f0f0f0;border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;height:100%;overflow-y:auto;padding:16px 24px;position:absolute;right:0;scrollbar-gutter:stable both-edges;top:0;width:100%}@media (min-width:782px){.block-editor-inserter__media-dialog{display:block;right:100%;width:300px}}.block-editor-inserter__media-dialog .block-editor-block-preview__container{box-shadow:0 15px 25px #00000012}.block-editor-inserter__media-dialog .block-editor-block-preview__container:hover{box-shadow:0 0 0 2px #1e1e1e,0 15px 25px #00000012}.block-editor-inserter__media-panel{display:flex;flex-direction:column;min-height:100%;padding:0 16px}@media (min-width:782px){.block-editor-inserter__media-panel{padding:0}}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-spinner{align-items:center;display:flex;flex:1;height:100%;justify-content:center}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search:not(:focus-within){--wp-components-color-background:#fff}.block-editor-inserter__media-list{margin-top:16px}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item{cursor:pointer;margin-bottom:24px;position:relative}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-placeholder{min-height:100px}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item[draggable=true] .block-editor-block-preview__container{cursor:grab}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview{box-shadow:0 0 0 2px #1e1e1e,0 15px 25px #00000012}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options>button{display:block}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options{left:8px;position:absolute;top:8px}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button{background:#fff;border-radius:2px;display:none}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button.is-opened,.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:focus{display:block}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:hover{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-inserter__media-list .block-editor-inserter__media-list__item{height:100%}.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview{align-items:center;border-radius:2px;display:flex;overflow:hidden}.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview>*{margin:0 auto;max-width:100%}.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{align-items:center;background:#ffffffb3;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}.block-editor-inserter__media-list .block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-inserter__media-list__item-preview-options__popover .components-menu-item__button .components-menu-item__item{min-width:auto}.block-editor-inserter__mobile-tab-navigation{height:100%;padding:16px}.block-editor-inserter__mobile-tab-navigation>*{height:100%}@media (min-width:600px){.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal{max-width:480px}}.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal p{margin:0}.block-editor-inserter__hint{margin:16px 16px 0}.reusable-blocks-menu-items__rename-hint{align-items:top;background:#f0f0f0;border-radius:2px;color:#1e1e1e;display:flex;flex-direction:row;max-width:380px}.reusable-blocks-menu-items__rename-hint-content{margin:12px 12px 12px 0}.reusable-blocks-menu-items__rename-hint-dismiss{margin:4px 0 4px 4px}.components-menu-group .reusable-blocks-menu-items__rename-hint{margin:0}.block-editor-patterns__sync-status-filter .components-input-control__container select.components-select-control__input{height:40px}.spacing-sizes-control .spacing-sizes-control__custom-value-input,.spacing-sizes-control .spacing-sizes-control__label{margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range,.spacing-sizes-control .spacing-sizes-control__range-control{align-items:center;display:flex;flex:1;height:40px;margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range>.components-base-control__field,.spacing-sizes-control .spacing-sizes-control__range-control>.components-base-control__field{flex:1}.spacing-sizes-control .components-range-control__mark{background-color:#fff;height:4px;width:3px;z-index:1}.spacing-sizes-control .components-range-control__marks{margin-top:17px}.spacing-sizes-control .components-range-control__marks :first-child{display:none}.spacing-sizes-control .components-range-control__thumb-wrapper{z-index:3}.spacing-sizes-control__header{height:16px;margin-bottom:12px}.spacing-sizes-control__dropdown{height:24px}.spacing-sizes-control__custom-select-control,.spacing-sizes-control__custom-value-input{flex:1}.spacing-sizes-control__custom-toggle,.spacing-sizes-control__icon{flex:0 0 auto}.spacing-sizes-control__icon{margin-right:-4px}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-autocompleters__block{white-space:nowrap}.block-editor-autocompleters__block .block-editor-block-icon{margin-left:8px}.block-editor-autocompleters__link{white-space:nowrap}.block-editor-autocompleters__link .block-editor-block-icon{margin-left:8px}.block-editor-block-alignment-control__menu-group .components-menu-item__info{margin-top:0}iframe[name=editor-canvas]{background-color:initial;box-sizing:border-box;display:block;height:100%;width:100%}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-inspector p:not(.components-base-control__help){margin-top:0}.block-editor-block-inspector h2,.block-editor-block-inspector h3{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.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-focal-point-picker-control .components-base-control,.block-editor-block-inspector .components-query-controls .components-base-control,.block-editor-block-inspector .components-range-control .components-base-control{margin-bottom:0}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e0e0e0;margin-top:-1px}.block-editor-block-inspector__no-block-tools,.block-editor-block-inspector__no-blocks{background:#fff;display:block;font-size:13px;padding:32px 16px;text-align:center}.block-editor-block-inspector__no-block-tools{border-top:1px solid #ddd}.block-editor-block-inspector__tab-item{flex:1 1 0px}.block-editor-block-list__insertion-point{bottom:0;left:0;position:absolute;right:0;top:0}.block-editor-block-list__insertion-point-indicator{background:var(--wp-admin-theme-color);border-radius:2px;opacity:0;position:absolute;transform-origin:center;will-change:transform,opacity}.block-editor-block-list__insertion-point.is-vertical>.block-editor-block-list__insertion-point-indicator{height:4px;top:calc(50% - 2px);width:100%}.block-editor-block-list__insertion-point.is-horizontal>.block-editor-block-list__insertion-point-indicator{bottom:0;right:calc(50% - 2px);top:0;width:4px}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;position:absolute;right:calc(50% - 12px);top:calc(50% - 12px);will-change:transform}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div{pointer-events:none}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div>*{pointer-events:all}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:#1e1e1e}.block-editor-block-list__block-selection-button{background-color:#1e1e1e;border-radius:2px;display:inline-flex;font-size:13px;height:48px;padding:0 12px;z-index:22}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content{align-items:center;display:inline-flex;margin:auto}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content>.components-flex__item{margin-left:6px}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle{cursor:grab;height:24px;margin-right:-2px;min-width:24px;padding:0}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle svg{min-height:18px;min-width:18px}.block-editor-block-list__block-selection-button .block-editor-block-icon{color:#fff;font-size:13px;height:48px}.block-editor-block-list__block-selection-button .components-button{color:#fff;display:flex;height:48px;min-width:36px}.block-editor-block-list__block-selection-button .components-button:focus{border:none;box-shadow:none}.block-editor-block-list__block-selection-button .components-button:active,.block-editor-block-list__block-selection-button .components-button[aria-disabled=true]:hover{color:#fff}.block-editor-block-list__block-selection-button .block-selection-button_select-button.components-button{padding:0}.block-editor-block-list__block-selection-button .block-editor-block-mover{background:unset;border:none}@keyframes hide-during-dragging{to{position:fixed;transform:translate(-9999px,9999px)}}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .block-editor-block-list__block-selection-button{margin-bottom:8px;margin-top:8px;pointer-events:all}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;overflow:visible;position:static;width:auto}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-right:56px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-right:0}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar{overflow:visible}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar,.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar-group{border-left-color:#1e1e1e}.components-popover.block-editor-block-list__block-popover.is-insertion-point-visible{visibility:hidden}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{animation:hide-during-dragging 1ms linear forwards;opacity:0}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{position:absolute;right:-57px}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector:before{content:""}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{background-color:#fff;border:1px solid #1e1e1e;padding-left:6px;padding-right:6px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{padding-left:12px;padding-right:12px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{margin-right:-1px;position:relative;right:auto}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-mover__move-button-container,.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-right:1px solid #1e1e1e}.is-dragging-components-draggable .components-tooltip{display:none}.components-popover.block-editor-block-popover__inbetween .block-editor-button-pattern-inserter__button{pointer-events:all;position:absolute;right:50%;top:50%;transform:translateX(50%) translateY(-50%)}.block-editor-block-lock-modal{z-index:1000001}@media (min-width:600px){.block-editor-block-lock-modal .components-modal__frame{max-width:480px}}.block-editor-block-lock-modal__checklist{margin:0}.block-editor-block-lock-modal__options-title{padding:12px 0}.block-editor-block-lock-modal__options-title .components-checkbox-control__label{font-weight:600}.block-editor-block-lock-modal__checklist-item{align-items:center;display:flex;gap:12px;justify-content:space-between;margin-bottom:0;padding:12px 32px 12px 0}.block-editor-block-lock-modal__checklist-item .block-editor-block-lock-modal__lock-icon{flex-shrink:0;margin-left:12px;fill:#1e1e1e}.block-editor-block-lock-modal__checklist-item:hover{background-color:#f0f0f0;border-radius:2px}.block-editor-block-lock-modal__template-lock{border-top:1px solid #ddd;margin-top:16px;padding:12px 0}.block-editor-block-lock-modal__actions{margin-top:24px}.block-editor-block-lock-toolbar .components-button.has-icon{min-width:36px!important}.block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{margin-right:-6px!important}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{border-right:1px solid #1e1e1e;margin-left:-6px;margin-right:6px!important}.block-editor-block-breadcrumb{list-style:none;margin:0;padding:0}.block-editor-block-breadcrumb li{display:inline-flex;margin:0}.block-editor-block-breadcrumb li .block-editor-block-breadcrumb__separator{fill:currentColor;margin-left:-4px;margin-right:-4px;transform:scaleX(-1)}.block-editor-block-breadcrumb li:last-child .block-editor-block-breadcrumb__separator{display:none}.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){box-shadow:none;text-decoration:underline}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{border-radius:2px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:1px;outline:2px solid #0000;position:absolute;right:1px;top:1px}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;font-size:inherit;padding:0 8px}.block-editor-block-card{align-items:flex-start;color:#1e1e1e;display:flex;padding:16px}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{font-size:13px;line-height:1.4;margin:0;padding:3px 0}.block-editor-block-card .block-editor-block-icon{flex:0 0 24px;height:24px;margin-left:12px;margin-right:0;width:24px}.block-editor-block-card.is-synced .block-editor-block-icon{color:var(--wp-block-synced-color)}.block-editor-block-compare{height:auto}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;flex-direction:column;justify-content:space-between;max-width:600px;min-width:200px;padding:0 0 0 16px;width:50%}.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-left:0;padding-right:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html{border-bottom:1px solid #ddd;color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:12px;line-height:1.7;padding-bottom:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-bottom:3px;padding-top: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:#cc1818}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:16px 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:16px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{position:absolute;right:0;top:-24px}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;box-shadow:0 6px 8px #0000004d;color:#fff;cursor:grabbing;display:inline-flex;height:48px;padding:0 13px;position:relative;-webkit-user-select:none;user-select:none;width:max-content}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{justify-content:flex-start;margin:auto}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item{margin-left:6px}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item:last-child{margin-left:0}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content .block-editor-block-icon svg{min-height:18px;min-width:18px}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{align-items:center;background-color:initial;bottom:0;display:flex;justify-content:center;left:0;opacity:0;position:absolute;right:0;top:0;transition:all .1s linear .1s}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled .block-editor-block-draggable-chip__disabled-icon{background:#0000 linear-gradient(45deg,#0000 47.5%,#fff 0,#fff 52.5%,#0000 0);border-radius:50%;box-shadow:inset 0 0 0 1.5px #fff;display:inline-block;height:20px;padding:0;width:20px}.block-draggable-invalid-drag-token .block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{background-color:#757575;box-shadow:0 4px 8px #0003;opacity:1}.block-editor-block-mover__move-button-container{border:none;display:flex;justify-content:center;padding:0}@media (min-width:600px){.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{flex-direction:column}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>*{height:20px;min-width:0!important;width:100%}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>:before{height:calc(100% - 4px)}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{flex-shrink:0;top:3px}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{bottom:3px;flex-shrink:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{width:48px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container>*{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button{padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{right:5px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{left:5px}}.block-editor-block-mover__drag-handle{cursor:grab}@media (min-width:600px){.block-editor-block-mover__drag-handle{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon.has-icon{padding-left:0;padding-right:0}}.components-button.block-editor-block-mover-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards;border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-mover-button:before{animation-delay:0s;animation-duration:1ms}}.components-button.block-editor-block-mover-button:focus,.components-button.block-editor-block-mover-button:focus:before,.components-button.block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.components-button.block-editor-block-mover-button:focus-visible:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-block-navigation__container{min-width:280px}.block-editor-block-navigation__label{color:#757575;font-size:11px;font-weight:500;margin:0 0 12px;text-transform:uppercase}.block-editor-block-patterns-list__list-item{cursor:pointer;margin-bottom:16px;position:relative}.block-editor-block-patterns-list__list-item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__list-item[draggable=true]{cursor:grab}.block-editor-block-patterns-list__item{height:100%;scroll-margin-bottom:56px;scroll-margin-top:24px}.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{flex-grow:1;font-size:12px;text-align:right}.block-editor-block-patterns-list__item .block-editor-block-preview__container{align-items:center;border-radius:2px;display:flex;overflow:hidden}.block-editor-block-patterns-list__item .block-editor-block-preview__container:after{border-radius:2px;outline:1px solid #0000001a;outline-offset:-1px}.block-editor-block-patterns-list__item:hover:not(:focus) .block-editor-block-preview__container:after{outline-color:#0000004d}.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container:after{outline-color:var(--wp-admin-theme-color);outline-offset:calc(-1*var(--wp-admin-border-width-focus));outline-width:var(--wp-admin-border-width-focus);transition:outline .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container:after{transition-delay:0s;transition-duration:0s}}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-details:not(:empty){align-items:center;margin-top:8px;padding-bottom:4px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper{height:24px;min-width:24px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper .block-editor-patterns__pattern-icon{fill:var(--wp-block-synced-color)}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination{border-top:1px solid #2f2f2f;justify-content:center;padding:4px}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:auto}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination .components-button.is-tertiary:disabled{background:none;color:#949494}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination .components-button.is-tertiary:hover:not(:disabled){background-color:#757575;color:#fff}.show-icon-labels .block-editor-patterns__grid-pagination,.show-icon-labels .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next,.show-icon-labels .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous{flex-direction:column}.show-icon-labels .block-editor-patterns__grid-pagination .components-button{width:auto}.show-icon-labels .block-editor-patterns__grid-pagination .components-button span{display:none}.show-icon-labels .block-editor-patterns__grid-pagination .components-button:before{content:attr(aria-label)}.components-popover.block-editor-block-popover{margin:0!important;pointer-events:none;position:absolute;z-index:31}.components-popover.block-editor-block-popover .components-popover__content{margin:0!important;min-width:auto;overflow-y:visible;width:max-content}.components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween,.block-editor-block-popover__drop-zone,.block-editor-block-list__block-side-inserter-popover) .components-popover__content *{pointer-events:all}.components-popover.block-editor-block-popover__inbetween,.components-popover.block-editor-block-popover__inbetween *{pointer-events:none}.components-popover.block-editor-block-popover__inbetween .is-with-inserter,.components-popover.block-editor-block-popover__inbetween .is-with-inserter *{pointer-events:all}.components-popover.block-editor-block-popover__drop-zone *{pointer-events:none}.components-popover.block-editor-block-popover__drop-zone .block-editor-block-popover__drop-zone-foreground{background-color:var(--wp-admin-theme-color);border-radius:2px;inset:0;position:absolute}.block-editor-block-preview__container{overflow:hidden;position:relative;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content{margin:0;min-height:auto;overflow:visible;right:0;text-align:initial;top:0;transform-origin:top right;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender{display:none}.block-editor-block-preview__container:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.block-editor-block-rename-modal{z-index:1000001}.block-editor-block-styles__preview-panel{display:none;z-index:90}@media (min-width:782px){.block-editor-block-styles__preview-panel{display:block}}.block-editor-block-styles__preview-panel .block-editor-block-icon{display:none}.block-editor-block-styles__variants{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item{box-shadow:inset 0 0 0 1px #ddd;color:#1e1e1e;display:inline-block;width:calc(50% - 4px)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:hover{box-shadow:inset 0 0 0 1px #ddd;color:var(--wp-admin-theme-color)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover{background-color:#1e1e1e;box-shadow:none}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active .block-editor-block-styles__item-text,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover .block-editor-block-styles__item-text{color:#fff}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-block-styles__variants .block-editor-block-styles__item-text{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-editor-block-styles__block-preview-container,.block-editor-block-styles__block-preview-container *{box-sizing:border-box!important}.block-editor-block-switcher{position:relative}.block-editor-block-switcher .components-button.components-dropdown-menu__toggle.has-icon.has-icon{min-width:36px}.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{display:block;height:48px;margin:0}.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}.block-editor-block-switcher__toggle-text{margin-right:8px}.show-icon-labels .block-editor-block-switcher__toggle-text{display:none}.components-button.block-editor-block-switcher__no-switcher-icon{display:flex}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin-left:auto;margin-right:auto;min-width:24px!important}.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}.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,.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{align-items:center;display:flex;height:100%;margin:0 auto;min-width:100%;position:relative}.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,.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{bottom:8px;left:8px;right:8px;top:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container{position:absolute;right:calc(100% + 16px);top:-12px}.block-editor-block-switcher__preview__popover{display:none;overflow:hidden}.block-editor-block-switcher__preview__popover.components-popover{margin-top:11px}@media (min-width:782px){.block-editor-block-switcher__preview__popover{display:block}}.block-editor-block-switcher__preview__popover .components-popover__content{background:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:none;outline:none;overflow:auto;width:300px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview{margin:16px 0;max-height:468px;overflow:hidden;padding:0 16px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview.is-pattern-list-preview{overflow:unset}.block-editor-block-switcher__preview-title{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;text-transform:uppercase}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{min-width:36px}.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 .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{height:48px;width: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-switcher__preview-patterns-container{padding-bottom:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item{margin-top:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container{cursor:pointer}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{border:1px solid #0000;border-radius:2px;height:100%;position:relative;transition:all .05s ease-in-out}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:focus,.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item .block-editor-block-switcher__preview-patterns-container-list__item-title{cursor:pointer;font-size:12px;padding:4px;text-align:center}.block-editor-block-switcher__no-transforms{color:#757575;margin:0;padding:6px 8px}.block-editor-block-switcher__binding-indicator{display:block;padding:8px}.block-editor-block-types-list>[role=presentation]{display:flex;flex-wrap:wrap;overflow:hidden}.block-editor-block-pattern-setup{align-items:flex-start;border-radius:2px;display:flex;flex-direction:column;justify-content:center;width:100%}.block-editor-block-pattern-setup.view-mode-grid{padding-top:4px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__toolbar{justify-content:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-count:2;column-gap:24px;display:block;padding:0 32px;width:100%}@media (min-width:1440px){.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-count:3}}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button]{cursor:pointer}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item{scroll-margin:5px 0}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:2px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-pattern-setup-list__item-title,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-pattern-setup-list__item-title{color:var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item{break-inside:avoid-column;margin-bottom:24px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title{cursor:pointer;font-size:12px;padding-top:8px;text-align:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__container{border:1px solid #ddd;border-radius:2px;min-height:100px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__content{width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar{align-items:center;align-self:stretch;background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:row;height:60px;justify-content:space-between;margin:0;padding:16px;position:absolute;text-align:right;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__display-controls{display:flex}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions,.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__navigation{display:flex;width:calc(50% - 36px)}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions{justify-content:flex-end}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container{box-sizing:border-box;display:flex;flex-direction:column;height:100%;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container{height:100%;list-style:none;margin:0;overflow:hidden;padding:0;position:relative;transform-style:preserve-3d}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container *{box-sizing:border-box}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{background-color:#fff;height:100%;margin:auto;padding:0;position:absolute;top:0;transition:transform .5s,z-index .5s;width:100%;z-index:100}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.active-slide{opacity:1;position:relative;z-index:102}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.previous-slide{transform:translateX(100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.next-slide{transform:translateX(-100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .block-list-appender{display:none}.block-editor-block-pattern-setup__carousel,.block-editor-block-pattern-setup__grid{width:100%}.block-editor-block-variation-transforms{padding:0 52px 16px 16px;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle{border:1px solid #757575;border-radius:2px;justify-content:right;min-height:30px;padding:6px 12px;position:relative;text-align:right;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle.components-dropdown-menu__toggle{padding-left:24px}.block-editor-block-variation-transforms .components-dropdown-menu__toggle:focus:not(:disabled){border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 calc(var(--wp-admin-border-width-focus) - 1px) var(--wp-admin-theme-color)}.block-editor-block-variation-transforms .components-dropdown-menu__toggle svg{height:100%;left:0;padding:0;position:absolute;top:0}.block-editor-block-variation-transforms__popover .components-popover__content{min-width:230px}.components-border-radius-control{margin-bottom:12px}.components-border-radius-control legend{margin-bottom:8px}.components-border-radius-control .components-border-radius-control__wrapper{align-items:flex-start;display:flex;justify-content:space-between}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__unit-control{flex-shrink:0;margin-bottom:0;margin-left:16px;width:calc(50% - 8px)}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control{flex:1;margin-left:12px}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control>div{align-items:center;display:flex;height:40px}.components-border-radius-control .components-border-radius-control__wrapper>span{flex:0 0 auto}.components-border-radius-control .components-border-radius-control__input-controls-wrapper{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr));margin-left:12px}.components-border-radius-control .component-border-radius-control__linked-button{display:flex;justify-content:center;margin-top:8px}.components-border-radius-control .component-border-radius-control__linked-button svg{margin-left:0}.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control__fieldset{min-width:0}.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings,.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings>div:not(:first-of-type){display:block}@media screen and (min-width:782px){.block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches{display:grid;grid-template-columns:repeat(6,28px)}}.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control{margin-bottom:inherit}.block-editor-panel-color-gradient-settings__dropdown-content .block-editor-color-gradient-control__panel{padding:16px;width:260px}.block-editor-panel-color-gradient-settings__color-indicator{background:linear-gradient(45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0)}.block-editor-tools-panel-color-gradient-settings__item{border-bottom:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #ddd;max-width:100%;padding:0}.block-editor-tools-panel-color-gradient-settings__item:nth-child(1 of .block-editor-tools-panel-color-gradient-settings__item){border-top:1px solid #ddd;border-top-left-radius:2px;border-top-right-radius:2px;margin-top:24px}.block-editor-tools-panel-color-gradient-settings__item:nth-last-child(1 of .block-editor-tools-panel-color-gradient-settings__item){border-bottom-left-radius:2px;border-bottom-right-radius:2px}.block-editor-tools-panel-color-gradient-settings__item>div,.block-editor-tools-panel-color-gradient-settings__item>div>button{border-radius:inherit}.block-editor-tools-panel-color-gradient-settings__dropdown{display:block;padding:0}.block-editor-tools-panel-color-gradient-settings__dropdown>button{height:auto;padding-bottom:10px;padding-top:10px;text-align:right}.block-editor-tools-panel-color-gradient-settings__dropdown>button.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.block-editor-tools-panel-color-gradient-settings__dropdown .block-editor-panel-color-gradient-settings__color-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-panel-color-gradient-settings__dropdown{width:100%}.block-editor-panel-color-gradient-settings__dropdown .component-color-indicator{flex-shrink:0}.block-editor-date-format-picker{margin-bottom:16px}.block-editor-date-format-picker__custom-format-select-control__custom-option{border-top:1px solid #ddd}.block-editor-date-format-picker__custom-format-select-control__custom-option.has-hint{grid-template-columns:auto 30px}.block-editor-date-format-picker__custom-format-select-control__custom-option .components-custom-select-control__item-hint{grid-row:2;text-align:right}.block-editor-duotone-control__popover>.components-popover__content{padding:16px;width:260px}.block-editor-duotone-control__popover .components-menu-group__label{padding:0}.block-editor-duotone-control__popover .components-circular-option-picker__swatches{display:grid;gap:12px;grid-template-columns:repeat(6,28px);justify-content:space-between}.block-editor-duotone-control__unset-indicator{background:linear-gradient(45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0)}.components-font-appearance-control ul li{color:#1e1e1e;text-transform:capitalize}.block-editor-global-styles__toggle-icon{fill:currentColor}.block-editor-global-styles__shadow-popover-container{width:230px}.block-editor-global-styles__shadow__list{display:flex;flex-wrap:wrap;gap:12px;padding-bottom:8px}.block-editor-global-styles__clear-shadow{text-align:left}.block-editor-global-styles-filters-panel__dropdown,.block-editor-global-styles__shadow-dropdown{display:block;padding:0}.block-editor-global-styles-filters-panel__dropdown button,.block-editor-global-styles__shadow-dropdown button{padding:8px;width:100%}.block-editor-global-styles-filters-panel__dropdown button.is-open,.block-editor-global-styles__shadow-dropdown button.is-open{background-color:#f0f0f0}.block-editor-global-styles__shadow-indicator{border:1px solid #e0e0e0;border-radius:2px;box-sizing:border-box;color:#2f2f2f;cursor:pointer;height:26px;padding:0;transform:scale(1);transition:transform .1s ease;width:26px;will-change:transform}.block-editor-global-styles__shadow-indicator:focus{border:2px solid #757575}.block-editor-global-styles__shadow-indicator:hover{transform:scale(1.2)}.block-editor-global-styles__shadow-indicator.unset{background:linear-gradient(45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0)}.block-editor-global-styles-advanced-panel__custom-css-input textarea{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}.block-editor-global-styles-background-panel__inspector-media-replace-container{position:relative}.block-editor-global-styles-background-panel__inspector-media-replace-container .components-drop-zone__content-icon{display:none}.block-editor-global-styles-background-panel__inspector-media-replace-container button.components-button{box-shadow:inset 0 0 0 1px #ccc;color:#1e1e1e;display:block;height:40px;width:100%}.block-editor-global-styles-background-panel__inspector-media-replace-container button.components-button:hover{color:var(--wp-admin-theme-color)}.block-editor-global-styles-background-panel__inspector-media-replace-container button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__inspector-media-replace-title{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown{display:block}.block-editor-global-styles-background-panel__inspector-image-indicator-wrapper{background:#fff;display:block;flex:none;height:20px;width:20px}.block-editor-global-styles-background-panel__inspector-image-indicator{background-size:cover;border-radius:50%;display:block;height:20px;position:relative;width:20px}.block-editor-global-styles-background-panel__inspector-image-indicator:after{border:1px solid #0000;border-radius:50%;bottom:-1px;box-shadow:inset 0 0 0 1px #0003;box-sizing:inherit;content:"";left:-1px;position:absolute;right:-1px;top:-1px}.block-editor-grid-visualizer{z-index:30!important}.block-editor-grid-visualizer .components-popover__content *{pointer-events:none!important}.block-editor-grid-visualizer__grid{display:grid}.block-editor-grid-visualizer__item{border-radius:2px;outline:1px solid #0000}.block-editor-grid-item-resizer{z-index:30!important}.block-editor-grid-item-resizer .components-popover__content *{pointer-events:none!important}.block-editor-grid-item-resizer__box{border:1px solid var(--wp-admin-theme-color)}.block-editor-grid-item-resizer__box .components-resizable-box__handle{pointer-events:all!important}.block-editor-height-control{border:0;margin:0;padding:0}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__width{margin-bottom:1.115em}.block-editor-block-types-list__list-item{display:block;margin:0;padding:0;width:33.33%}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled) .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-block-synced-color)!important;filter:brightness(.95)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-block-synced-color)!important}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):after{background:var(--wp-block-synced-color)}.components-button.block-editor-block-types-list__item{align-items:stretch;background:#0000;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;flex-direction:column;font-size:13px;height:auto;justify-content:center;padding:8px;position:relative;transition:all .05s ease-in-out;width:100%;word-break:break-word}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-delay:0s;transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{cursor:default;opacity:.6}.components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-admin-theme-color)!important;filter:brightness(.95)}.components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled):hover:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;pointer-events:none;position:absolute;right:0;top:0}.components-button.block-editor-block-types-list__item:not(:disabled):focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{background:#1e1e1e;color:#fff;outline:2px solid #0000;outline-offset:-2px}.block-editor-block-types-list__item-icon{border-radius:2px;color:#1e1e1e;padding:12px 20px;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-delay:0s;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-delay:0s;transition-duration:0s}}.block-editor-block-types-list__list-item[draggable=true] .block-editor-block-types-list__item-icon{cursor:grab}.block-editor-block-types-list__item-title{font-size:12px;padding:4px 2px 8px}.show-icon-labels .block-editor-block-inspector__tabs [role=tablist] .components-button{justify-content:center}.block-editor-inspector-controls-tabs__hint{align-items:flex-start;background:#f0f0f0;border-radius:2px;color:#1e1e1e;display:flex;flex-direction:row;font-size:13px;margin:16px}.block-editor-inspector-controls-tabs__hint-content{margin:12px 12px 12px 0}.block-editor-inspector-controls-tabs__hint-dismiss{margin:4px 0 4px 4px}.block-editor-inspector-popover-header{margin-bottom:16px}[class].block-editor-inspector-popover-header__action{height:24px}[class].block-editor-inspector-popover-header__action.has-icon{min-width:24px;padding:0}[class].block-editor-inspector-popover-header__action:not(.has-icon){text-decoration:underline}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}@keyframes loadingpulse{0%{opacity:1}50%{opacity:0}to{opacity:1}}.block-editor-link-control{min-width:350px;position:relative}.components-popover__content .block-editor-link-control{max-width:350px;min-width:auto;width:90vw}.show-icon-labels .block-editor-link-control .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-link-control .components-button.has-icon:before{content:attr(aria-label)}.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top{flex-wrap:wrap;gap:4px}.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top .components-button.has-icon{padding:4px;width:auto}.show-icon-labels .block-editor-link-control .is-preview .block-editor-link-control__search-item-header{margin-left:0;min-width:100%}.block-editor-link-control__search-input-wrapper{margin-bottom:8px;position:relative}.block-editor-link-control__search-input-container,.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control__field{margin:16px}.block-editor-link-control__field .components-base-control__label{color:#1e1e1e}.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:40px;line-height:normal;margin:0;padding:8px 16px 8px 40px;position:relative;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{font-size:13px;line-height:normal}}.block-editor-link-control__field input[type=text]:focus,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-link-control__field input[type=text]::-webkit-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-webkit-input-placeholder{color:#1e1e1e9e}.block-editor-link-control__field input[type=text]::-moz-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-moz-placeholder{color:#1e1e1e9e;opacity:1}.block-editor-link-control__field input[type=text]:-ms-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:-ms-input-placeholder{color:#1e1e1e9e}.has-actions .block-editor-link-control__field input[type=text],.has-actions .block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{padding-left:16px}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-enter{left:19px;position:absolute;top:3px}.block-editor-link-control__search-actions{padding:8px 16px 16px}.block-editor-link-control__search-results-wrapper{position:relative}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";display:block;left:16px;pointer-events:none;position:absolute;right:-1px;z-index:100}.block-editor-link-control__search-results-wrapper:before{bottom:auto;height:8px;top:0}.block-editor-link-control__search-results-wrapper:after{bottom:0;height:16px;top:auto}.block-editor-link-control__search-results{margin-top:-16px;max-height:200px;overflow-y:auto;padding:8px}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item.components-button.components-menu-item__button{height:auto;text-align:right}.block-editor-link-control__search-item .components-menu-item__item{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.block-editor-link-control__search-item .components-menu-item__item mark{background-color:initial;color:inherit;font-weight:600}.block-editor-link-control__search-item .components-menu-item__shortcut{color:#757575;text-transform:capitalize;white-space:nowrap}.block-editor-link-control__search-item[aria-selected]{background:#f0f0f0}.block-editor-link-control__search-item.is-current{background:#0000;border:0;cursor:default;flex-direction:column;padding:16px;width:100%}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{align-items:center;display:block;flex-direction:row;gap:8px;margin-left:8px;overflow-wrap:break-word;white-space:pre-wrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-header .block-editor-link-control__search-item-info{color:#757575;font-size:12px;line-height:1.1;word-break:break-all}.block-editor-link-control__search-item.is-preview .block-editor-link-control__search-item-header{display:flex;flex:1}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-header{align-items:center}.block-editor-link-control__search-item.is-url-title .block-editor-link-control__search-item-title{word-break:break-all}.block-editor-link-control__search-item .block-editor-link-control__search-item-details{display:flex;flex-direction:column;gap:4px;justify-content:space-between}.block-editor-link-control__search-item .block-editor-link-control__search-item-header .block-editor-link-control__search-item-icon{background-color:#f0f0f0;border-radius:2px;height:32px;width:32px}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{align-items:center;display:flex;flex-shrink:0;justify-content:center;position:relative}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon img{width:16px}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-icon{max-height:32px;top:0;width:32px}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{border-radius:2px;line-height:1.1}.block-editor-link-control__search-item .block-editor-link-control__search-item-title:focus{box-shadow:none}.block-editor-link-control__search-item .block-editor-link-control__search-item-title:focus-visible{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000;text-decoration:none}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{background-color:initial;color:inherit;font-weight:600}.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-title .components-external-link__icon{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0}.block-editor-link-control__search-item-top{align-items:center;display:flex;flex-direction:row;width:100%}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon img,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon svg{opacity:0}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon:before{animation:loadingpulse 1s linear infinite;animation-delay:.5s;background-color:#f0f0f0;border-radius:100%;bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}.block-editor-link-control__loading{align-items:center;display:flex;margin:16px}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{overflow:visible;padding:12px 16px}.components-button+.block-editor-link-control__search-create:before{content:"";display:block;position:absolute;right:0;top:-10px;width:100%}.block-editor-link-control__search-create{align-items:center}.block-editor-link-control__search-create .block-editor-link-control__search-item-title{margin-bottom:0}.block-editor-link-control__search-create .block-editor-link-control__search-item-icon{top:0}.block-editor-link-control__drawer-inner{display:flex;flex-basis:100%;flex-direction:column;position:relative}.block-editor-link-control__setting{flex:1;margin-bottom:0;padding:8px 24px 8px 0}.block-editor-link-control__setting .components-base-control__field{display:flex}.block-editor-link-control__setting .components-base-control__field .components-checkbox-control__label{color:#1e1e1e}.block-editor-link-control__setting input{margin-right:0}.is-preview .block-editor-link-control__setting{padding:20px 0 8px 8px}.block-editor-link-control__tools{margin-top:-16px;padding:8px 8px 0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle{gap:0;padding-right:0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true]{color:#1e1e1e}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transform:rotate(-90deg);transition:transform .1s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transition-delay:0s;transition-duration:0s}}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transform:rotate(0deg);transition:transform .1s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transition-delay:0s;transition-duration:0s}}.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{bottom:auto;left:40px;position:absolute;right:auto;top:calc(50% - 8px)}.block-editor-link-control .block-editor-link-control__search-input-wrapper.has-actions .components-spinner{left:12px;top:calc(50% + 4px)}.block-editor-list-view-tree{border-collapse:collapse;margin:0;padding:0;width:100%}.components-modal__content .block-editor-list-view-tree{margin:-12px -6px 0;width:calc(100% + 12px)}.block-editor-list-view-tree.is-dragging tbody{pointer-events:none}.block-editor-list-view-leaf{position:relative;transform:translateY(0)}.block-editor-list-view-leaf.is-draggable,.block-editor-list-view-leaf.is-draggable .block-editor-list-view-block-contents{cursor:grab}.block-editor-list-view-leaf .block-editor-list-view-block-select-button[aria-expanded=true]{color:inherit}.block-editor-list-view-leaf .block-editor-list-view-block-select-button:hover{color:var(--wp-admin-theme-color)}.is-dragging-components-draggable .block-editor-list-view-leaf:not(.is-selected) .block-editor-list-view-block-select-button:hover{color:inherit}.block-editor-list-view-leaf.is-selected td{background:var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced td{background:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:hover{color:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents,.block-editor-list-view-leaf.is-selected .components-button.has-icon{color:#fff}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-list-view-leaf.is-first-selected td:first-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-first-selected td:last-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-last-selected td:first-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-last-selected td:last-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.block-editor-list-view-leaf.is-synced-branch.is-branch-selected{background:rgba(var(--wp-block-synced-color--rgb),.04)}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:first-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:last-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:first-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:last-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:first-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:last-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected) td{border-radius:0}.block-editor-list-view-leaf.is-displacement-normal{transform:translateY(0);transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-displacement-normal{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-displacement-up{transform:translateY(-32px);transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-displacement-up{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-displacement-down{transform:translateY(32px);transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-displacement-down{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-after-dragged-blocks{transform:translateY(calc(var(--wp-admin--list-view-dragged-items-height, 32px)*-1));transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-after-dragged-blocks{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transform:translateY(calc(-32px + var(--wp-admin--list-view-dragged-items-height, 32px)*-1));transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transform:translateY(calc(32px + var(--wp-admin--list-view-dragged-items-height, 32px)*-1));transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-dragging{opacity:0;pointer-events:none;right:0;z-index:-9999}.block-editor-list-view-leaf .block-editor-list-view-block-contents{align-items:center;border-radius:2px;display:flex;height:32px;padding:6px 0 6px 4px;position:relative;text-align:right;white-space:nowrap;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-contents.is-dropping-before:before{border-top:4px solid var(--wp-admin-theme-color);content:"";left:0;pointer-events:none;position:absolute;right:0;top:-2px;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear}.components-modal__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{padding-left:0;padding-right:0}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents{box-shadow:none}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:-29px;pointer-events:none;position:absolute;right:0;top:0;z-index:2}.block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus:after{left:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu:focus,.block-editor-list-view-leaf.is-nesting .block-editor-list-view__menu{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);z-index:1}.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards;opacity:1}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation-delay:0s;animation-duration:1ms}}.block-editor-list-view-leaf .block-editor-block-icon{flex:0 0 24px;margin-left:4px}.block-editor-list-view-leaf .block-editor-list-view-block__contents-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{padding:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{line-height:0;vertical-align:middle;width:36px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell>*{opacity:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:hover>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:hover>*{opacity:1}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell .components-button.has-icon{min-width:24px;padding:0;width:24px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell{padding-left:4px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon{height:24px}.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell-alignment-wrapper{align-items:center;display:flex;flex-direction:column;height:100%}.block-editor-list-view-leaf .block-editor-block-mover-button{height:24px;position:relative;width:36px}.block-editor-list-view-leaf .block-editor-block-mover-button svg{height:24px;position:relative}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end;margin-top:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start;margin-bottom:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button:before{height:16px;left:0;min-width:100%;right:0}.block-editor-list-view-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 1px 6px 6px;min-width:24px}.block-editor-list-view-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper svg{position:relative;right:2px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title{flex:1;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title .components-truncate{position:absolute;transform:translateY(-50%);width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor-wrapper{max-width:min(110px,40%);position:relative;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor{background:#0000001a;border-radius:2px;box-sizing:border-box;left:0;max-width:100%;padding:2px 6px;position:absolute;transform:translateY(-50%)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor{background:#0000004d}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__lock{line-height:0}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__images{display:flex}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image{background-size:cover;border-radius:2px;height:18px;width:18px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px #fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:first-child){margin-right:-6px}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-list-view-draggable-chip{opacity:.8}.block-editor-list-view-appender__cell .block-editor-list-view-appender__container,.block-editor-list-view-appender__cell .block-editor-list-view-block__contents-container,.block-editor-list-view-block__contents-cell .block-editor-list-view-appender__container,.block-editor-list-view-block__contents-cell .block-editor-list-view-block__contents-container{display:flex}.block-editor-list-view__expander{cursor:pointer;height:24px;width:24px}.block-editor-list-view-leaf[aria-level] .block-editor-list-view__expander{margin-right:192px}.block-editor-list-view-leaf[aria-level="1"] .block-editor-list-view__expander{margin-right:0}.block-editor-list-view-leaf[aria-level="2"] .block-editor-list-view__expander{margin-right:24px}.block-editor-list-view-leaf[aria-level="3"] .block-editor-list-view__expander{margin-right:48px}.block-editor-list-view-leaf[aria-level="4"] .block-editor-list-view__expander{margin-right:72px}.block-editor-list-view-leaf[aria-level="5"] .block-editor-list-view__expander{margin-right:96px}.block-editor-list-view-leaf[aria-level="6"] .block-editor-list-view__expander{margin-right:120px}.block-editor-list-view-leaf[aria-level="7"] .block-editor-list-view__expander{margin-right:144px}.block-editor-list-view-leaf[aria-level="8"] .block-editor-list-view__expander{margin-right:168px}.block-editor-list-view-leaf .block-editor-list-view__expander{visibility:hidden}.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transform:rotate(-90deg);transition:transform .2s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transform:rotate(0deg);transition:transform .2s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-drop-indicator{pointer-events:none}.block-editor-list-view-drop-indicator .block-editor-list-view-drop-indicator__line{background:var(--wp-admin-theme-color);border-radius:4px;height:4px}.block-editor-list-view-drop-indicator--preview{pointer-events:none}.block-editor-list-view-drop-indicator--preview .components-popover__content{overflow:hidden!important}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:4px;height:32px;overflow:hidden}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line--darker{background:rgba(var(--wp-admin-theme-color--rgb),.09)}.block-editor-list-view-placeholder{height:32px;margin:0;padding:0}.list-view-appender .block-editor-inserter__toggle{background-color:#1e1e1e;border-radius:2px;color:#fff;height:24px;margin:8px 24px 0 0;min-width:24px;padding:0}.list-view-appender .block-editor-inserter__toggle:focus,.list-view-appender .block-editor-inserter__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.list-view-appender__description,.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__indicator{margin-right:4px}.block-editor-media-flow__url-input{margin-left:-8px;margin-right:-8px;padding:16px}.block-editor-media-flow__url-input.has-siblings{border-top:1px solid #1e1e1e;margin-top:8px;padding-bottom:8px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{display:block;margin-bottom:8px;top:16px}.block-editor-media-flow__url-input .block-editor-link-control{width:300px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-url-input{margin:0;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-info,.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:200px;white-space:nowrap}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__tools{justify-content:flex-end;padding:16px var(--wp-admin-border-width-focus) var(--wp-admin-border-width-focus)}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{padding:0;width:auto}.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:0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{padding:8px 0 0}.block-editor-media-flow__error{max-width:255px;padding:0 20px 20px}.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{left:10px;position:absolute}.block-editor-multi-selection-inspector__card{align-items:flex-start;display:flex;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{height:24px;margin-left:10px;margin-right:-2px;padding:0 3px;width:36px}.block-editor-responsive-block-control{border-bottom:1px solid #ccc;margin-bottom:28px;padding-bottom:14px}.block-editor-responsive-block-control:last-child{border-bottom:0;padding-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);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{box-shadow:none;margin-bottom:8px;min-width:auto;outline:none;width:auto}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar{border-radius:2px}.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-height:48px;min-width:48px;padding-left:12px;padding-right:12px}.block-editor-rich-text__inline-format-toolbar-group .components-dropdown-menu__toggle{justify-content:center}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon{width:auto}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon:after{content:attr(aria-label)}.block-editor-segmented-text-control{border:0;margin:0;padding:0}.block-editor-segmented-text-control .block-editor-segmented-text-control__buttons{display:flex;padding:4px 0}.block-editor-segmented-text-control .components-button.has-icon{margin-left:4px}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{background:#f1f1f1;box-shadow:0 0 2px 2px #0009;color:var(--wp-admin-theme-color);display:block;font-size:14px;font-weight:600;height:auto;line-height:normal;outline:none;padding:15px 23px 14px;text-decoration:none;width:auto;z-index:100000}.block-editor-tool-selector__help{border-top:1px solid #ddd;color:#757575;margin:8px -8px -8px;min-width:280px;padding:16px}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;padding:1px;position:relative}.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:16px;margin-left:0;margin-right:0;padding:8px 12px 8px 8px;width:100%}@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;width:300px}}.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-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.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{left:8px;margin:0;position:absolute;top:calc(50% - 8px)}.block-editor-url-input__input[type=text]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-url-input__input[type=text]{transition-delay:0s;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:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:#1e1e1e9e}.block-editor-url-input__input[type=text]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:#1e1e1e9e}.block-editor-url-input__suggestions{max-height:200px;overflow-y:auto;padding:4px 0;transition:all .15s ease-in-out;width:302px}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-delay:0s;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:grid}}.block-editor-url-input__suggestion{background:#fff;border:none;box-shadow:none;color:#757575;cursor:pointer;display:block;font-size:13px;height:auto;min-height:36px;text-align:right;width:100%}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{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{background:#ddd;content:"";display:block;height:24px;left:-1px;position:absolute;width:1px}.block-editor-url-input__button-modal{background:#fff;border:1px solid #ddd;box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a}.block-editor-url-input__button-modal-line{align-items:flex-start;display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;height:36px;width:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #1e1e1e;padding:8px}.block-editor-url-popover__input-container{padding:8px}.block-editor-url-popover__row{display:flex;gap:4px}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1;gap:8px}.block-editor-url-popover__additional-controls .components-button.has-icon{height:auto;padding-left:8px;padding-right:8px;text-align:right}.block-editor-url-popover__additional-controls .components-button.has-icon>svg{margin-left:8px}.block-editor-url-popover__settings-toggle{flex-shrink:0}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(-180deg)}.block-editor-url-popover__settings{border-top:1px solid #1e1e1e;display:block;padding:16px}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-viewer-url{align-items:center;display:flex;flex-grow:1;flex-shrink:1;margin-left:8px;max-width:350px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#cc1818}.block-editor-url-popover__expand-on-click{align-items:center;display:flex;min-width:350px;white-space:nowrap}.block-editor-url-popover__expand-on-click .text{flex-grow:1}.block-editor-url-popover__expand-on-click .text p{line-height:16px;margin:0}.block-editor-url-popover__expand-on-click .text p.description{color:#757575;font-size:12px}.components-panel__block-bindings-panel .components-item__block-bindings-source{color:#757575}.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack{flex-direction:row-reverse}.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack .components-h-stack{flex-direction:row}.block-editor-hooks__block-hooks .block-editor-hooks__block-hooks-helptext{color:#757575;font-size:12px;margin-bottom:16px}.border-block-support-panel .single-column{grid-column:span 1}.color-block-support-panel .block-editor-contrast-checker{grid-column:span 2;margin-top:16px;order:9999}.color-block-support-panel .block-editor-contrast-checker .components-notice__content{margin-left:0}.color-block-support-panel.color-block-support-panel .color-block-support-panel__inner-wrapper{row-gap:0}.color-block-support-panel .block-editor-tools-panel-color-gradient-settings__item.first{margin-top:0}.dimensions-block-support-panel .single-column{grid-column:span 1}.block-editor-hooks__layout-controls{display:flex;margin-bottom:8px}.block-editor-hooks__layout-controls .block-editor-hooks__layout-controls-unit{display:flex;margin-left:24px}.block-editor-hooks__layout-controls .block-editor-hooks__layout-controls-unit svg{margin:auto 8px 4px 0}.block-editor-block-inspector .block-editor-hooks__layout-controls-unit-input{margin-bottom:0}.block-editor-hooks__layout-controls-reset{display:flex;justify-content:flex-end;margin-bottom:24px}.block-editor-hooks__layout-controls-helptext{color:#757575;font-size:12px;margin-bottom:16px}.block-editor-hooks__flex-layout-justification-controls,.block-editor-hooks__flex-layout-orientation-controls{margin-bottom:12px}.block-editor-hooks__flex-layout-justification-controls legend,.block-editor-hooks__flex-layout-orientation-controls legend{margin-bottom:8px}.block-editor-hooks__toggle-control.block-editor-hooks__toggle-control{margin-bottom:16px}.block-editor-hooks__position-selection__select-control .components-custom-select-control__hint{display:none}.block-editor-hooks__position-selection__select-control__option.has-hint{grid-template-columns:auto 30px;line-height:1.4;margin-bottom:0}.block-editor-hooks__position-selection__select-control__option .components-custom-select-control__item-hint{grid-row:2;text-align:right}.block-editor__spacing-visualizer{border-color:var(--wp-admin-theme-color);border-style:solid;bottom:0;box-sizing:border-box;left:0;opacity:.5;pointer-events:none;position:absolute;right:0;top:0}.typography-block-support-panel .single-column{grid-column:span 1}.block-editor-block-toolbar{display:flex;flex-grow:1;overflow-x:auto;overflow-y:hidden;position:relative;transition:border-color .1s linear,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-delay:0s;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;border:0;border-left:1px solid #ddd;line-height:0;margin-bottom:-1px;margin-top:-1px}.block-editor-block-toolbar.is-connected .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-connected .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors,.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.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-contextual-toolbar{background-color:#fff;display:block;flex-shrink:3;position:sticky;top:0;width:100%;z-index:31}.block-editor-block-contextual-toolbar.components-accessible-toolbar{border:none;border-bottom:1px solid #e0e0e0;border-radius:0}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{overflow:auto;overflow-y:hidden;scrollbar-color:#e0e0e0 #0000;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar{height:12px;width:12px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-track{background-color:initial}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#e0e0e0;border:3px solid #0000;border-radius:8px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover::-webkit-scrollbar-thumb{background-color:#949494}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover{scrollbar-color:#949494 #0000}@media (hover:none){.block-editor-block-contextual-toolbar .block-editor-block-toolbar{scrollbar-color:#949494 #0000}}.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar-group:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child:after{display:none}.block-editor-block-contextual-toolbar>.block-editor-block-toolbar{flex-grow:0;width:auto}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector{margin-bottom:-1px;margin-top:-1px;position:relative}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector:after{align-items:center;background-color:#1e1e1e;border-radius:100%;content:"";display:inline-flex;height:2px;left:0;position:absolute;top:15px;width:2px}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin:0!important;width:24px!important}.block-editor-block-toolbar__block-controls .components-toolbar-group{padding:0}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports (position:sticky){.block-editor-block-toolbar__slot{display:inline-flex}}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon{width:auto}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.show-icon-labels .components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.show-icon-labels .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{height:0!important;min-width:0!important;width:0!important}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button{border-bottom-left-radius:0;border-top-left-radius:0;padding-left:12px;padding-right:12px;text-wrap:nowrap}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button .block-editor-block-icon{width:0}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container{position:relative;width:auto}@media (min-width:600px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{background:#e0e0e0;content:"";height:1px;margin-top:-.5px;position:absolute;right:50%;top:50%;transform:translate(50%);width:100%}}@media (min-width:782px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover-button,.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button{padding-left:8px;padding-right:8px}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-right:1px solid #ddd;margin-left:-6px;margin-right:6px;white-space:nowrap}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon{padding-left:12px;padding-right:12px}.show-icon-labels .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{width:auto}.show-icon-labels .components-toolbar,.show-icon-labels .components-toolbar-group{flex-shrink:1}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button+.components-button{margin-right:6px}.block-editor-inserter{background:none;border:none;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:0;padding:0}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__main-area{display:flex;flex-direction:column;gap:16px;height:100%;position:relative}.block-editor-inserter__main-area.show-as-tabs{gap:0}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__popover.is-quick .components-popover__content{border:none;box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;outline:none}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*{border-left:1px solid #ccc;border-right:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:first-child{border-radius:2px 2px 0 0;border-top:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:last-child{border-bottom:1px solid #ccc;border-radius:0 0 2px 2px}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>.components-button{border:1px solid #1e1e1e}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tablist{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{height:auto;overflow:visible}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{align-items:center;border:none;cursor:pointer;display:inline-flex;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-delay:0s;transition-duration:0s}}.block-editor-inserter__menu{height:100%;overflow:visible;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:99999}.block-editor-inserter__search{padding:16px 16px 0}.block-editor-inserter__tabs{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.block-editor-inserter__tabs .block-editor-inserter__tablist-and-close-button{border-bottom:1px solid #ddd;display:flex;justify-content:space-between;padding-left:12px}.block-editor-inserter__tabs .block-editor-inserter__close-button{align-self:center;order:1}.block-editor-inserter__tabs .block-editor-inserter__tablist{margin-bottom:-1px;width:100%}.block-editor-inserter__tabs .block-editor-inserter__tablist button[role=tab]{flex-grow:1}.block-editor-inserter__tabs .block-editor-inserter__tablist button[role=tab][id$=reusable]{flex-grow:inherit;padding-left:16px;padding-right:16px}.block-editor-inserter__tabs .block-editor-inserter__tabpanel{display:flex;flex-direction:column;flex-grow:1;overflow-y:auto}.block-editor-inserter__no-tab-container{flex-grow:1;overflow-y:auto;position:relative}.block-editor-inserter__panel-header{align-items:center;display:inline-flex;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button{color:#757575;font-size:11px;font-weight:500;margin:0 0 0 12px;text-transform:uppercase}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{height:36px;line-height:36px}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:left}.block-editor-inserter__manage-reusable-blocks-container{margin:auto 16px 16px}.block-editor-inserter__manage-reusable-blocks{justify-content:center;width:100%}.block-editor-inserter__no-results,.block-editor-inserter__patterns-loading{padding:32px;text-align:center}.block-editor-inserter__no-results-icon{fill:#949494}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{align-items:center;display:flex}.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__popover{top:16px!important}.block-editor-inserter__preview-container{display:none;max-height:calc(100% - 32px);overflow-y:hidden;padding:16px;width:280px}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-inserter__media-list__list-item{height:100%}.block-editor-inserter__preview-container .block-editor-block-card{padding-bottom:4px;padding-left:0;padding-right:0}.block-editor-inserter__insertable-blocks-at-selection{border-bottom:1px solid #e0e0e0}.block-editor-inserter__block-patterns-tabs-container,.block-editor-inserter__media-tabs-container{display:flex;flex-direction:column;height:100%;justify-content:space-between;padding:16px}.block-editor-inserter__category-tablist{border:none;display:flex;flex-direction:column;margin-bottom:8px}.block-editor-inserter__category-tablist div[role=listitem]:last-child{margin-top:auto}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab{display:block;font-weight:inherit;height:auto;padding:8px 12px 8px 4px;position:relative;text-align:right}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true]{color:var(--wp-admin-theme-color)}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true] .components-flex-item{filter:brightness(.95)}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true] svg{fill:var(--wp-admin-theme-color)}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true]:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";display:block;height:100%;left:0;opacity:.04;outline:none;position:absolute;right:0;top:0}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:focus-visible,.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:focus:not(:disabled){border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:0}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:after,.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:before{display:none}.block-editor-inserter__category-panel{background:#f0f0f0;border-top:1px solid #e0e0e0;box-shadow:-1px 1px 0 0 rgba(0,0,0,.133);display:flex;flex-direction:column;height:calc(100% + 1px);outline:1px solid #0000;padding:0 16px;position:absolute;right:0;top:-1px;width:100%}@media (min-width:782px){.block-editor-inserter__category-panel{border-right:1px solid #e0e0e0;padding:0;right:100%;width:300px}}.block-editor-inserter__category-panel .block-editor-block-patterns-list,.block-editor-inserter__category-panel .block-editor-inserter__media-list{padding:0 24px 16px}.block-editor-inserter__patterns-category-panel-header{padding:8px 24px}.block-editor-inserter__patterns-category-no-results{margin-top:24px}.block-editor-block-patterns-list,.block-editor-inserter__media-list{flex-grow:1;height:100%;overflow-y:auto}.block-editor-inserter__preview-content{align-items:center;background:#f0f0f0;display:grid;flex-grow:1;min-height:144px}.block-editor-inserter__preview-content-missing{align-items:center;background:#f0f0f0;border-radius:2px;color:#757575;display:flex;flex:1;justify-content:center;min-height:144px}.block-editor-inserter__tips{border-top:1px solid #ddd;flex-shrink:0;padding:16px;position:relative}.block-editor-inserter__quick-inserter{max-width:100%;width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{float:right;height:0;padding:0}.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{min-height:100px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{background:#1e1e1e;border-radius:0;color:#fff;display:block;height:44px;width:100%}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:active{color:#ccc}.block-editor-inserter__quick-inserter-expand.components-button.components-button:focus:not(:disabled){background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);box-shadow:none}.block-editor-block-patterns-explorer__sidebar{bottom:0;overflow-x:visible;overflow-y:scroll;padding:24px 32px 32px;position:absolute;right:0;top:72px;width:280px}.block-editor-block-patterns-explorer__sidebar__categories-list__item{display:block;height:48px;text-align:right;width:100%}.block-editor-block-patterns-explorer__search{margin-bottom:32px}.block-editor-block-patterns-explorer__search-results-count{padding-bottom:32px}.block-editor-block-patterns-explorer__list{margin-right:280px;padding:24px 0 32px}.block-editor-block-patterns-explorer__list .block-editor-patterns__sync-status-filter .components-input-control__container{width:380px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list{display:grid;grid-gap:32px;grid-template-columns:repeat(1,1fr);margin-bottom:16px}@media (min-width:1080px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(2,1fr)}}@media (min-width:1440px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(3,1fr)}}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{min-height:240px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{height:inherit;max-height:800px;min-height:100px}.components-heading.block-editor-inserter__patterns-category-panel-title{font-weight:500}.block-editor-inserter__media-library-button.components-button,.block-editor-inserter__patterns-explore-button.components-button{justify-content:center;margin-top:16px;padding:16px;width:100%}.block-editor-inserter__media-panel{display:flex;flex-direction:column;min-height:100%;padding:0 16px}@media (min-width:782px){.block-editor-inserter__media-panel{padding:0}}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-spinner{align-items:center;display:flex;flex:1;height:100%;justify-content:center}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search{padding:16px 24px 8px}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search:not(:focus-within){--wp-components-color-background:#fff}.block-editor-inserter__media-list__list-item{cursor:pointer;margin-bottom:24px;position:relative}.block-editor-inserter__media-list__list-item.is-placeholder{min-height:100px}.block-editor-inserter__media-list__list-item[draggable=true] .block-editor-inserter__media-list__list-item{cursor:grab}.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview>*{outline-color:#0000004d}.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options>button{display:block}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options{left:8px;position:absolute;top:8px}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button{background:#fff;border-radius:2px;display:none}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button.is-opened,.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:focus{display:block}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:hover{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-inserter__media-list__item{height:100%}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview{align-items:center;border-radius:2px;display:flex;overflow:hidden}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview>*{border-radius:2px;margin:0 auto;max-width:100%;outline:1px solid #0000001a;outline-offset:-1px}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{align-items:center;background:#ffffffb3;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}.block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{outline-color:var(--wp-admin-theme-color);outline-offset:calc(-1*var(--wp-admin-border-width-focus));outline-width:var(--wp-admin-border-width-focus);transition:outline .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{transition-delay:0s;transition-duration:0s}}.block-editor-inserter__media-list__item-preview-options__popover .components-menu-item__button .components-menu-item__item{min-width:auto}.block-editor-inserter__mobile-tab-navigation{height:100%;padding:16px}.block-editor-inserter__mobile-tab-navigation>*{height:100%}@media (min-width:600px){.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal{max-width:480px}}.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal p{margin:0}.block-editor-inserter__hint{margin:16px 16px 0}.reusable-blocks-menu-items__rename-hint{align-items:top;background:#f0f0f0;border-radius:2px;color:#1e1e1e;display:flex;flex-direction:row;max-width:380px}.reusable-blocks-menu-items__rename-hint-content{margin:12px 12px 12px 0}.reusable-blocks-menu-items__rename-hint-dismiss{margin:4px 0 4px 4px}.components-menu-group .reusable-blocks-menu-items__rename-hint{margin:0}.block-editor-patterns__sync-status-filter .components-input-control__container select.components-select-control__input{height:40px}.block-editor-inserter__pattern-panel-placeholder{display:none}.block-editor-inserter__menu.is-zoom-out{display:flex}@media (min-width:782px){.block-editor-inserter__menu.is-zoom-out.show-panel:after{content:"";display:block;height:100%;width:300px}}.spacing-sizes-control .spacing-sizes-control__custom-value-input,.spacing-sizes-control .spacing-sizes-control__label{margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range,.spacing-sizes-control .spacing-sizes-control__range-control{align-items:center;display:flex;flex:1;height:40px;margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range>.components-base-control__field,.spacing-sizes-control .spacing-sizes-control__range-control>.components-base-control__field{flex:1}.spacing-sizes-control .components-range-control__mark{background-color:#fff;height:4px;width:3px;z-index:1}.spacing-sizes-control .components-range-control__marks{margin-top:17px}.spacing-sizes-control .components-range-control__marks :first-child{display:none}.spacing-sizes-control .components-range-control__thumb-wrapper{z-index:3}.spacing-sizes-control__header{height:16px;margin-bottom:12px}.spacing-sizes-control__dropdown{height:24px}.spacing-sizes-control__custom-select-control,.spacing-sizes-control__custom-value-input{flex:1}.spacing-sizes-control__custom-toggle,.spacing-sizes-control__icon{flex:0 0 auto}.spacing-sizes-control__icon{margin-right:-4px}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
diff --git a/wp-includes/css/dist/block-editor/style.css b/wp-includes/css/dist/block-editor/style.css
index a68e58b..2c2b95c 100644
--- a/wp-includes/css/dist/block-editor/style.css
+++ b/wp-includes/css/dist/block-editor/style.css
@@ -1,4 +1,3 @@
-@charset "UTF-8";
:root{
--wp-admin-theme-color:#007cba;
--wp-admin-theme-color--rgb:0, 124, 186;
@@ -9,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -35,34 +34,14 @@
margin-top:0;
}
-.block-editor-block-bindings-toolbar-indicator{
- align-items:center;
- display:inline-flex;
- height:48px;
- padding:6px;
-}
-.block-editor-block-bindings-toolbar-indicator svg g{
- stroke:var(--wp-bound-block-color);
- fill:#0000;
- stroke-width:1.5;
- stroke-linecap:round;
- stroke-linejoin:round;
-}
-
iframe[name=editor-canvas]{
+ background-color:initial;
+ box-sizing:border-box;
display:block;
height:100%;
width:100%;
}
-iframe[name=editor-canvas]:not(.has-editor-padding){
- background-color:#fff;
-}
-
-iframe[name=editor-canvas].has-editor-padding{
- padding:24px 24px 0;
-}
-
.block-editor-block-icon{
align-items:center;
display:flex;
@@ -252,8 +231,8 @@ iframe[name=editor-canvas].has-editor-padding{
}
}
.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .block-editor-block-list__block-selection-button{
- margin-bottom:12px;
- margin-top:12px;
+ margin-bottom:8px;
+ margin-top:8px;
pointer-events:all;
}
.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar{
@@ -312,6 +291,14 @@ iframe[name=editor-canvas].has-editor-padding{
display:none;
}
+.components-popover.block-editor-block-popover__inbetween .block-editor-button-pattern-inserter__button{
+ left:50%;
+ pointer-events:all;
+ position:absolute;
+ top:50%;
+ transform:translateX(-50%) translateY(-50%);
+}
+
.block-editor-block-lock-modal{
z-index:1000001;
}
@@ -436,10 +423,6 @@ iframe[name=editor-canvas].has-editor-padding{
padding:16px;
}
-.block-editor-block-card__content{
- flex-grow:1;
-}
-
.block-editor-block-card__title{
font-weight:500;
}
@@ -450,13 +433,6 @@ iframe[name=editor-canvas].has-editor-padding{
padding:3px 0;
}
-.block-editor-block-card__description{
- display:block;
- font-size:13px;
- line-height:1.4;
- margin-top:4px;
-}
-
.block-editor-block-card .block-editor-block-icon{
flex:0 0 24px;
height:24px;
@@ -683,7 +659,7 @@ iframe[name=editor-canvas].has-editor-padding{
outline:none;
}
.components-button.block-editor-block-mover-button:focus-visible:before{
- box-shadow:inset 0 0 0 1px var(--wp-components-color-background, #fff), 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+ box-shadow:inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:2px solid #0000;
}
@@ -701,7 +677,7 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-block-patterns-list__list-item{
cursor:pointer;
- margin-bottom:24px;
+ margin-bottom:16px;
position:relative;
}
.block-editor-block-patterns-list__list-item.is-placeholder{
@@ -716,30 +692,41 @@ iframe[name=editor-canvas].has-editor-padding{
scroll-margin-bottom:56px;
scroll-margin-top:24px;
}
+.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{
+ flex-grow:1;
+ font-size:12px;
+ text-align:left;
+}
.block-editor-block-patterns-list__item .block-editor-block-preview__container{
align-items:center;
- border-radius:4px;
+ border-radius:2px;
display:flex;
overflow:hidden;
}
-.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{
- flex-grow:1;
- text-align:left;
+.block-editor-block-patterns-list__item .block-editor-block-preview__container:after{
+ border-radius:2px;
+ outline:1px solid #0000001a;
+ outline-offset:-1px;
}
-.block-editor-block-patterns-list__item:hover .block-editor-block-preview__container{
- box-shadow:0 0 0 2px #1e1e1e;
+.block-editor-block-patterns-list__item:hover:not(:focus) .block-editor-block-preview__container:after{
+ outline-color:#0000004d;
}
-.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff, 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #1e1e1e;
- outline:2px solid #0000;
- outline-offset:2px;
+.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container:after{
+ outline-color:var(--wp-admin-theme-color);
+ outline-offset:calc(-1*var(--wp-admin-border-width-focus));
+ outline-width:var(--wp-admin-border-width-focus);
+ transition:outline .1s linear;
}
-.block-editor-block-patterns-list__item.block-editor-block-patterns-list__list-item-synced:focus .block-editor-block-preview__container,.block-editor-block-patterns-list__item.block-editor-block-patterns-list__list-item-synced:hover .block-editor-block-preview__container{
- box-shadow:0 0 0 2px var(--wp-block-synced-color), 0 15px 25px #00000012;
+@media (prefers-reduced-motion:reduce){
+ .block-editor-block-patterns-list__item:focus .block-editor-block-preview__container:after{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
}
-.block-editor-block-patterns-list__item .block-editor-patterns__pattern-details{
+.block-editor-block-patterns-list__item .block-editor-patterns__pattern-details:not(:empty){
align-items:center;
margin-top:8px;
+ padding-bottom:4px;
}
.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper{
height:24px;
@@ -845,14 +832,6 @@ iframe[name=editor-canvas].has-editor-padding{
z-index:1000001;
}
-.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{
- padding:0;
-}
-
-.block-editor-block-styles+.default-style-picker__default-switcher{
- margin-top:16px;
-}
-
.block-editor-block-styles__preview-panel{
display:none;
z-index:90;
@@ -890,7 +869,7 @@ iframe[name=editor-canvas].has-editor-padding{
color:#fff;
}
.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus{
- box-shadow:inset 0 0 0 1px var(--wp-components-color-background, #fff), 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+ box-shadow:inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:2px solid #0000;
}
.block-editor-block-styles__variants .block-editor-block-styles__item-text{
@@ -1061,6 +1040,11 @@ iframe[name=editor-canvas].has-editor-padding{
padding:6px 8px;
}
+.block-editor-block-switcher__binding-indicator{
+ display:block;
+ padding:8px;
+}
+
.block-editor-block-types-list>[role=presentation]{
display:flex;
flex-wrap:wrap;
@@ -1459,6 +1443,97 @@ iframe[name=editor-canvas].has-editor-padding{
font-family:Menlo,Consolas,monaco,monospace;
}
+.block-editor-global-styles-background-panel__inspector-media-replace-container{
+ position:relative;
+}
+.block-editor-global-styles-background-panel__inspector-media-replace-container .components-drop-zone__content-icon{
+ display:none;
+}
+.block-editor-global-styles-background-panel__inspector-media-replace-container button.components-button{
+ box-shadow:inset 0 0 0 1px #ccc;
+ color:#1e1e1e;
+ display:block;
+ height:40px;
+ width:100%;
+}
+.block-editor-global-styles-background-panel__inspector-media-replace-container button.components-button:hover{
+ color:var(--wp-admin-theme-color);
+}
+.block-editor-global-styles-background-panel__inspector-media-replace-container button.components-button:focus{
+ box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+}
+.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__inspector-media-replace-title{
+ text-align:start;
+ text-align-last:center;
+ white-space:normal;
+ word-break:break-all;
+}
+.block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown{
+ display:block;
+}
+
+.block-editor-global-styles-background-panel__inspector-image-indicator-wrapper{
+ background:#fff;
+ display:block;
+ flex:none;
+ height:20px;
+ width:20px;
+}
+
+.block-editor-global-styles-background-panel__inspector-image-indicator{
+ background-size:cover;
+ border-radius:50%;
+ display:block;
+ height:20px;
+ position:relative;
+ width:20px;
+}
+
+.block-editor-global-styles-background-panel__inspector-image-indicator:after{
+ border:1px solid #0000;
+ border-radius:50%;
+ bottom:-1px;
+ box-shadow:inset 0 0 0 1px #0003;
+ box-sizing:inherit;
+ content:"";
+ left:-1px;
+ position:absolute;
+ right:-1px;
+ top:-1px;
+}
+
+.block-editor-grid-visualizer{
+ z-index:30 !important;
+}
+
+.block-editor-grid-visualizer .components-popover__content *{
+ pointer-events:none !important;
+}
+
+.block-editor-grid-visualizer__grid{
+ display:grid;
+}
+
+.block-editor-grid-visualizer__item{
+ border-radius:2px;
+ outline:1px solid #0000;
+}
+
+.block-editor-grid-item-resizer{
+ z-index:30 !important;
+}
+
+.block-editor-grid-item-resizer .components-popover__content *{
+ pointer-events:none !important;
+}
+
+.block-editor-grid-item-resizer__box{
+ border:1px solid var(--wp-admin-theme-color);
+}
+.block-editor-grid-item-resizer__box .components-resizable-box__handle{
+ pointer-events:all !important;
+}
+
.block-editor-height-control{
border:0;
margin:0;
@@ -1582,11 +1657,8 @@ iframe[name=editor-canvas].has-editor-padding{
padding:4px 2px 8px;
}
-.show-icon-labels .block-editor-block-inspector__tabs [role=tablist] .components-button.has-icon svg{
- display:none;
-}
-.show-icon-labels .block-editor-block-inspector__tabs [role=tablist] .components-button.has-icon:before{
- content:attr(aria-label);
+.show-icon-labels .block-editor-block-inspector__tabs [role=tablist] .components-button{
+ justify-content:center;
}
.block-editor-inspector-controls-tabs__hint{
@@ -1666,11 +1738,16 @@ iframe[name=editor-canvas].has-editor-padding{
content:attr(aria-label);
}
.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top{
- gap:8px;
+ flex-wrap:wrap;
+ gap:4px;
}
.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top .components-button.has-icon{
- min-width:inherit;
- width:min-content;
+ padding:4px;
+ width:auto;
+}
+.show-icon-labels .block-editor-link-control .is-preview .block-editor-link-control__search-item-header{
+ margin-right:0;
+ min-width:100%;
}
.block-editor-link-control__search-input-wrapper{
@@ -1743,10 +1820,6 @@ iframe[name=editor-canvas].has-editor-padding{
right:19px;
top:3px;
}
-.block-editor-link-control__search-enter svg{
- position:relative;
- top:-2px;
-}
.block-editor-link-control__search-actions{
padding:8px 16px 16px;
@@ -1876,7 +1949,7 @@ iframe[name=editor-canvas].has-editor-padding{
box-shadow:none;
}
.block-editor-link-control__search-item .block-editor-link-control__search-item-title:focus-visible{
- box-shadow:inset 0 0 0 1px var(--wp-components-color-background, #fff), 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+ box-shadow:inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:2px solid #0000;
text-decoration:none;
}
@@ -1888,8 +1961,15 @@ iframe[name=editor-canvas].has-editor-padding{
.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-title svg{
- display:none;
+.block-editor-link-control__search-item .block-editor-link-control__search-item-title .components-external-link__icon{
+ height:1px;
+ margin:-1px;
+ overflow:hidden;
+ padding:0;
+ position:absolute;
+ width:1px;
+ clip:rect(0, 0, 0, 0);
+ border:0;
}
.block-editor-link-control__search-item-top{
@@ -2127,7 +2207,7 @@ iframe[name=editor-canvas].has-editor-padding{
}
}
.block-editor-list-view-leaf.is-displacement-up{
- transform:translateY(-36px);
+ transform:translateY(-32px);
transition:transform .2s;
}
@media (prefers-reduced-motion:reduce){
@@ -2137,7 +2217,7 @@ iframe[name=editor-canvas].has-editor-padding{
}
}
.block-editor-list-view-leaf.is-displacement-down{
- transform:translateY(36px);
+ transform:translateY(32px);
transition:transform .2s;
}
@media (prefers-reduced-motion:reduce){
@@ -2147,7 +2227,7 @@ iframe[name=editor-canvas].has-editor-padding{
}
}
.block-editor-list-view-leaf.is-after-dragged-blocks{
- transform:translateY(calc(var(--wp-admin--list-view-dragged-items-height, 36px)*-1));
+ transform:translateY(calc(var(--wp-admin--list-view-dragged-items-height, 32px)*-1));
transition:transform .2s;
}
@media (prefers-reduced-motion:reduce){
@@ -2157,7 +2237,7 @@ iframe[name=editor-canvas].has-editor-padding{
}
}
.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{
- transform:translateY(calc(-36px + var(--wp-admin--list-view-dragged-items-height, 36px)*-1));
+ transform:translateY(calc(-32px + var(--wp-admin--list-view-dragged-items-height, 32px)*-1));
transition:transform .2s;
}
@media (prefers-reduced-motion:reduce){
@@ -2167,7 +2247,7 @@ iframe[name=editor-canvas].has-editor-padding{
}
}
.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{
- transform:translateY(calc(36px + var(--wp-admin--list-view-dragged-items-height, 36px)*-1));
+ transform:translateY(calc(32px + var(--wp-admin--list-view-dragged-items-height, 32px)*-1));
transition:transform .2s;
}
@media (prefers-reduced-motion:reduce){
@@ -2186,7 +2266,7 @@ iframe[name=editor-canvas].has-editor-padding{
align-items:center;
border-radius:2px;
display:flex;
- height:auto;
+ height:32px;
padding:6px 4px 6px 0;
position:relative;
text-align:left;
@@ -2242,11 +2322,10 @@ iframe[name=editor-canvas].has-editor-padding{
}
.block-editor-list-view-leaf .block-editor-block-icon{
flex:0 0 24px;
- margin-right:8px;
+ margin-right:4px;
}
.block-editor-list-view-leaf .block-editor-list-view-block__contents-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{
- padding-bottom:0;
- padding-top:0;
+ padding:0;
}
.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{
line-height:0;
@@ -2315,8 +2394,9 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-list-view-leaf .block-editor-inserter__toggle:active{
color:#fff;
}
-.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper{
- min-width:120px;
+.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper svg{
+ left:2px;
+ position:relative;
}
.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title{
flex:1;
@@ -2378,16 +2458,11 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-list-view__expander{
cursor:pointer;
height:24px;
- margin-left:4px;
width:24px;
}
.block-editor-list-view-leaf[aria-level] .block-editor-list-view__expander{
- margin-left:220px;
-}
-
-.block-editor-list-view-leaf:not([aria-level="1"]) .block-editor-list-view__expander{
- margin-right:4px;
+ margin-left:192px;
}
.block-editor-list-view-leaf[aria-level="1"] .block-editor-list-view__expander{
@@ -2399,27 +2474,27 @@ iframe[name=editor-canvas].has-editor-padding{
}
.block-editor-list-view-leaf[aria-level="3"] .block-editor-list-view__expander{
- margin-left:52px;
+ margin-left:48px;
}
.block-editor-list-view-leaf[aria-level="4"] .block-editor-list-view__expander{
- margin-left:80px;
+ margin-left:72px;
}
.block-editor-list-view-leaf[aria-level="5"] .block-editor-list-view__expander{
- margin-left:108px;
+ margin-left:96px;
}
.block-editor-list-view-leaf[aria-level="6"] .block-editor-list-view__expander{
- margin-left:136px;
+ margin-left:120px;
}
.block-editor-list-view-leaf[aria-level="7"] .block-editor-list-view__expander{
- margin-left:164px;
+ margin-left:144px;
}
.block-editor-list-view-leaf[aria-level="8"] .block-editor-list-view__expander{
- margin-left:192px;
+ margin-left:168px;
}
.block-editor-list-view-leaf .block-editor-list-view__expander{
@@ -2468,7 +2543,7 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line{
background:rgba(var(--wp-admin-theme-color--rgb), .04);
border-radius:4px;
- height:36px;
+ height:32px;
overflow:hidden;
}
.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line--darker{
@@ -2476,7 +2551,7 @@ iframe[name=editor-canvas].has-editor-padding{
}
.block-editor-list-view-placeholder{
- height:36px;
+ height:32px;
margin:0;
padding:0;
}
@@ -2495,19 +2570,7 @@ iframe[name=editor-canvas].has-editor-padding{
color:#fff;
}
-.list-view-appender__description{
- display:none;
-}
-
-.block-editor-list-view-block-select-button__bindings svg g{
- stroke:var(--wp-bound-block-color);
- fill:#0000;
- stroke-width:1.5;
- stroke-linecap:round;
- stroke-linejoin:round;
-}
-
-.modal-open .block-editor-media-replace-flow__options{
+.list-view-appender__description,.modal-open .block-editor-media-replace-flow__options{
display:none;
}
@@ -2631,8 +2694,7 @@ iframe[name=editor-canvas].has-editor-padding{
.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%);
+ clip-path:inset(50%);
height:1px;
margin:-1px;
overflow:hidden;
@@ -2676,6 +2738,19 @@ iframe[name=editor-canvas].has-editor-padding{
content:attr(aria-label);
}
+.block-editor-segmented-text-control{
+ border:0;
+ margin:0;
+ padding:0;
+}
+.block-editor-segmented-text-control .block-editor-segmented-text-control__buttons{
+ display:flex;
+ padding:4px 0;
+}
+.block-editor-segmented-text-control .components-button.has-icon{
+ margin-right:4px;
+}
+
.block-editor-skip-to-selected-block{
position:absolute;
top:-9999em;
@@ -2696,38 +2771,6 @@ iframe[name=editor-canvas].has-editor-padding{
z-index:100000;
}
-.block-editor-text-decoration-control{
- border:0;
- margin:0;
- padding:0;
-}
-.block-editor-text-decoration-control .block-editor-text-decoration-control__buttons{
- display:flex;
- padding:4px 0;
-}
-.block-editor-text-decoration-control .components-button.has-icon{
- height:32px;
- margin-right:4px;
- min-width:32px;
- padding:0;
-}
-
-.block-editor-text-transform-control{
- border:0;
- margin:0;
- padding:0;
-}
-.block-editor-text-transform-control .block-editor-text-transform-control__buttons{
- display:flex;
- padding:4px 0;
-}
-.block-editor-text-transform-control .components-button.has-icon{
- height:32px;
- margin-right:4px;
- min-width:32px;
- padding:0;
-}
-
.block-editor-tool-selector__help{
border-top:1px solid #ddd;
color:#757575;
@@ -2968,9 +3011,8 @@ iframe[name=editor-canvas].has-editor-padding{
font-size:12px;
}
-.html-anchor-control .components-external-link{
- display:block;
- margin-top:8px;
+.components-panel__block-bindings-panel .components-item__block-bindings-source{
+ color:#757575;
}
.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack{
flex-direction:row-reverse;
@@ -2984,70 +3026,6 @@ iframe[name=editor-canvas].has-editor-padding{
margin-bottom:16px;
}
-.block-editor-hooks__background__inspector-media-replace-container{
- position:relative;
-}
-.block-editor-hooks__background__inspector-media-replace-container .components-drop-zone__content-icon{
- display:none;
-}
-.block-editor-hooks__background__inspector-media-replace-container button.components-button{
- box-shadow:inset 0 0 0 1px #ddd;
- color:#1e1e1e;
- display:block;
- height:40px;
- width:100%;
-}
-.block-editor-hooks__background__inspector-media-replace-container button.components-button:hover{
- color:var(--wp-admin-theme-color);
-}
-.block-editor-hooks__background__inspector-media-replace-container button.components-button:focus{
- box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
-}
-.block-editor-hooks__background__inspector-media-replace-container .block-editor-hooks__background__inspector-media-replace-title{
- text-align:start;
- text-align-last:center;
- white-space:normal;
- word-break:break-all;
-}
-.block-editor-hooks__background__inspector-media-replace-container .components-dropdown{
- display:block;
-}
-
-.block-editor-hooks__background__inspector-image-indicator-wrapper{
- background:#fff linear-gradient(-45deg, #0000 48%, #ddd 0, #ddd 52%, #0000 0);
- border-radius:50% !important;
- box-shadow:inset 0 0 0 1px #0003;
- display:block;
- flex:none;
- height:20px;
- width:20px;
-}
-.block-editor-hooks__background__inspector-image-indicator-wrapper.has-image{
- background:#fff;
-}
-
-.block-editor-hooks__background__inspector-image-indicator{
- background-size:cover;
- border-radius:50%;
- display:block;
- height:20px;
- position:relative;
- width:20px;
-}
-
-.block-editor-hooks__background__inspector-image-indicator:after{
- border:1px solid #0000;
- border-radius:50%;
- bottom:-1px;
- box-shadow:inset 0 0 0 1px #0003;
- box-sizing:inherit;
- content:"";
- left:-1px;
- position:absolute;
- right:-1px;
- top:-1px;
-}
-
.border-block-support-panel .single-column{
grid-column:span 1;
}
@@ -3109,19 +3087,6 @@ iframe[name=editor-canvas].has-editor-padding{
margin-bottom:16px;
}
-.block-editor__padding-visualizer{
- border-color:var(--wp-admin-theme-color);
- border-style:solid;
- bottom:0;
- box-sizing:border-box;
- left:0;
- opacity:.5;
- pointer-events:none;
- position:absolute;
- right:0;
- top:0;
-}
-
.block-editor-hooks__position-selection__select-control .components-custom-select-control__hint{
display:none;
}
@@ -3136,6 +3101,19 @@ iframe[name=editor-canvas].has-editor-padding{
text-align:left;
}
+.block-editor__spacing-visualizer{
+ border-color:var(--wp-admin-theme-color);
+ border-style:solid;
+ bottom:0;
+ box-sizing:border-box;
+ left:0;
+ opacity:.5;
+ pointer-events:none;
+ position:absolute;
+ right:0;
+ top:0;
+}
+
.typography-block-support-panel .single-column{
grid-column:span 1;
}
@@ -3167,7 +3145,7 @@ iframe[name=editor-canvas].has-editor-padding{
margin-bottom:-1px;
margin-top:-1px;
}
-.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{
+.block-editor-block-toolbar.is-connected .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-connected .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors,.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{
color:var(--wp-block-synced-color);
}
.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{
@@ -3224,9 +3202,6 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar-group:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child:after{
display:none;
}
-.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group{
- border-right-color:#e0e0e0;
-}
.block-editor-block-contextual-toolbar>.block-editor-block-toolbar{
flex-grow:0;
width:auto;
@@ -3238,13 +3213,15 @@ iframe[name=editor-canvas].has-editor-padding{
}
.block-editor-block-contextual-toolbar .block-editor-block-parent-selector:after{
align-items:center;
- content:"·";
+ background-color:#1e1e1e;
+ border-radius:100%;
+ content:"";
display:inline-flex;
- font-size:16px;
- height:32px;
+ height:2px;
position:absolute;
right:0;
- top:0;
+ top:15px;
+ width:2px;
}
.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{
@@ -3369,7 +3346,6 @@ iframe[name=editor-canvas].has-editor-padding{
flex-direction:column;
gap:16px;
height:100%;
- overflow-y:hidden;
position:relative;
}
.block-editor-inserter__main-area.show-as-tabs{
@@ -3405,7 +3381,7 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-inserter__popover .block-editor-inserter__menu{
margin:-12px;
}
-.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs div[role=tablist]{
+.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tablist{
top:60px;
}
.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{
@@ -3460,19 +3436,29 @@ iframe[name=editor-canvas].has-editor-padding{
flex-grow:1;
overflow:hidden;
}
-.block-editor-inserter__tabs div[role=tablist]{
+.block-editor-inserter__tabs .block-editor-inserter__tablist-and-close-button{
border-bottom:1px solid #ddd;
+ display:flex;
+ justify-content:space-between;
+ padding-right:12px;
}
-.block-editor-inserter__tabs div[role=tablist] button[role=tab]{
- flex-grow:1;
+.block-editor-inserter__tabs .block-editor-inserter__close-button{
+ align-self:center;
+ order:1;
+}
+.block-editor-inserter__tabs .block-editor-inserter__tablist{
margin-bottom:-1px;
+ width:100%;
}
-.block-editor-inserter__tabs div[role=tablist] button[role=tab][id$=reusable]{
+.block-editor-inserter__tabs .block-editor-inserter__tablist button[role=tab]{
+ flex-grow:1;
+}
+.block-editor-inserter__tabs .block-editor-inserter__tablist button[role=tab][id$=reusable]{
flex-grow:inherit;
padding-left:16px;
padding-right:16px;
}
-.block-editor-inserter__tabs div[role=tabpanel]{
+.block-editor-inserter__tabs .block-editor-inserter__tabpanel{
display:flex;
flex-direction:column;
flex-grow:1;
@@ -3482,6 +3468,7 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-inserter__no-tab-container{
flex-grow:1;
overflow-y:auto;
+ position:relative;
}
.block-editor-inserter__panel-header{
@@ -3525,7 +3512,7 @@ iframe[name=editor-canvas].has-editor-padding{
width:100%;
}
-.block-editor-inserter__no-results{
+.block-editor-inserter__no-results,.block-editor-inserter__patterns-loading{
padding:32px;
text-align:center;
}
@@ -3565,7 +3552,7 @@ iframe[name=editor-canvas].has-editor-padding{
display:block;
}
}
-.block-editor-inserter__preview-container .block-editor-block-preview__container{
+.block-editor-inserter__preview-container .block-editor-inserter__media-list__list-item{
height:100%;
}
.block-editor-inserter__preview-container .block-editor-block-card{
@@ -3574,99 +3561,106 @@ iframe[name=editor-canvas].has-editor-padding{
padding-right:0;
}
-.block-editor-inserter__patterns-explore-button.components-button{
- justify-content:center;
- margin-top:16px;
+.block-editor-inserter__insertable-blocks-at-selection{
+ border-bottom:1px solid #e0e0e0;
+}
+
+.block-editor-inserter__block-patterns-tabs-container,.block-editor-inserter__media-tabs-container{
+ display:flex;
+ flex-direction:column;
+ height:100%;
+ justify-content:space-between;
padding:16px;
- width:100%;
}
-.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category{
- color:var(--wp-admin-theme-color);
+.block-editor-inserter__category-tablist{
+ border:none;
+ display:flex;
+ flex-direction:column;
+ margin-bottom:8px;
+}
+.block-editor-inserter__category-tablist div[role=listitem]:last-child{
+ margin-top:auto;
+}
+.block-editor-inserter__category-tablist .block-editor-inserter__category-tab{
+ display:block;
+ font-weight:inherit;
+ height:auto;
+ padding:8px 4px 8px 12px;
position:relative;
+ text-align:left;
}
-.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category .components-flex-item{
+.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true]{
+ color:var(--wp-admin-theme-color);
+}
+.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true] .components-flex-item{
filter:brightness(.95);
}
-.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category svg{
+.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true] svg{
fill:var(--wp-admin-theme-color);
}
-.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category:after{
+.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true]:after{
background:var(--wp-admin-theme-color);
border-radius:2px;
bottom:0;
content:"";
+ display:block;
+ height:100%;
left:0;
opacity:.04;
+ outline:none;
position:absolute;
right:0;
top:0;
}
-.block-editor-inserter__block-patterns-tabs-container,.block-editor-inserter__block-patterns-tabs-container nav{
- height:100%;
-}
-
-.block-editor-inserter__block-patterns-tabs{
- display:flex;
- flex-direction:column;
- height:100%;
- overflow-y:auto;
- padding:16px;
-}
-.block-editor-inserter__block-patterns-tabs div[role=listitem]:last-child{
- margin-top:auto;
+.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:focus-visible,.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:focus:not(:disabled){
+ border-radius:2px;
+ box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+ outline:2px solid #0000;
+ outline-offset:0;
}
-.block-editor-inserter__block-patterns-tabs .block-editor-inserter__patterns-category{
- padding-right:4px;
+.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:after,.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:before{
+ display:none;
}
-.block-editor-inserter__patterns-category-dialog{
+.block-editor-inserter__category-panel{
background:#f0f0f0;
- border-left:1px solid #e0e0e0;
- border-right:1px solid #e0e0e0;
- height:100%;
+ border-top:1px solid #e0e0e0;
+ box-shadow:1px 1px 0 0 rgba(0,0,0,.133);
+ display:flex;
+ flex-direction:column;
+ height:calc(100% + 1px);
left:0;
+ outline:1px solid #0000;
+ padding:0 16px;
position:absolute;
- top:0;
+ top:-1px;
width:100%;
}
@media (min-width:782px){
- .block-editor-inserter__patterns-category-dialog{
- display:block;
+ .block-editor-inserter__category-panel{
+ border-left:1px solid #e0e0e0;
left:100%;
+ padding:0;
width:300px;
}
}
-.block-editor-inserter__patterns-category-dialog .block-editor-block-patterns-list{
- flex-grow:1;
- height:100%;
- overflow-y:auto;
- padding:16px 24px;
+.block-editor-inserter__category-panel .block-editor-block-patterns-list,.block-editor-inserter__category-panel .block-editor-inserter__media-list{
+ padding:0 24px 16px;
}
-.block-editor-block-patterns-list__list-item .block-editor-block-preview__container{
- box-shadow:0 15px 25px #00000012;
+.block-editor-inserter__patterns-category-panel-header{
+ padding:8px 24px;
}
-.block-editor-block-patterns-list__list-item:hover .block-editor-block-preview__container{
- box-shadow:0 0 0 2px #1e1e1e,0 15px 25px #00000012;
+
+.block-editor-inserter__patterns-category-no-results{
+ margin-top:24px;
}
-.block-editor-inserter__patterns-category-panel{
- display:flex;
- flex-direction:column;
+.block-editor-block-patterns-list,.block-editor-inserter__media-list{
+ flex-grow:1;
height:100%;
- padding:0 16px;
-}
-@media (min-width:782px){
- .block-editor-inserter__patterns-category-panel{
- padding:0;
- }
-}
-.block-editor-inserter__patterns-category-panel .block-editor-inserter__patterns-category-panel-header{
- padding:16px 24px;
-}
-.block-editor-inserter__patterns-category-panel .block-editor-inserter__patterns-category-no-results{
- margin-top:24px;
+ overflow-y:auto;
}
.block-editor-inserter__preview-content{
@@ -3723,7 +3717,7 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{
margin-bottom:0;
}
-.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-preview__container{
+.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{
min-height:100px;
}
@@ -3803,87 +3797,23 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{
min-height:240px;
}
-.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-preview__container{
+.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{
height:inherit;
max-height:800px;
min-height:100px;
}
-.block-editor-inserter__patterns-category-panel-title{
- font-size:16.25px;
-}
-.block-editor-inserter__media-tabs-container,.block-editor-inserter__media-tabs-container nav{
- height:100%;
+.components-heading.block-editor-inserter__patterns-category-panel-title{
+ font-weight:500;
}
-.block-editor-inserter__media-tabs-container .block-editor-inserter__media-library-button{
+
+.block-editor-inserter__media-library-button.components-button,.block-editor-inserter__patterns-explore-button.components-button{
justify-content:center;
margin-top:16px;
padding:16px;
width:100%;
}
-.block-editor-inserter__media-tabs{
- display:flex;
- flex-direction:column;
- height:100%;
- overflow-y:auto;
- padding:16px;
-}
-.block-editor-inserter__media-tabs div[role=listitem]:last-child{
- margin-top:auto;
-}
-.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category{
- padding-right:4px;
-}
-.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category.is-selected{
- color:var(--wp-admin-theme-color);
- position:relative;
-}
-.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category.is-selected .components-flex-item{
- filter:brightness(.95);
-}
-.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category.is-selected svg{
- fill:var(--wp-admin-theme-color);
-}
-.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category.is-selected:after{
- background:var(--wp-admin-theme-color);
- border-radius:2px;
- bottom:0;
- content:"";
- left:0;
- opacity:.04;
- position:absolute;
- right:0;
- top:0;
-}
-
-.block-editor-inserter__media-dialog{
- background:#f0f0f0;
- border-left:1px solid #e0e0e0;
- border-right:1px solid #e0e0e0;
- height:100%;
- left:0;
- overflow-y:auto;
- padding:16px 24px;
- position:absolute;
- scrollbar-gutter:stable both-edges;
- top:0;
- width:100%;
-}
-@media (min-width:782px){
- .block-editor-inserter__media-dialog{
- display:block;
- left:100%;
- width:300px;
- }
-}
-.block-editor-inserter__media-dialog .block-editor-block-preview__container{
- box-shadow:0 15px 25px #00000012;
-}
-.block-editor-inserter__media-dialog .block-editor-block-preview__container:hover{
- box-shadow:0 0 0 2px #1e1e1e,0 15px 25px #00000012;
-}
-
.block-editor-inserter__media-panel{
display:flex;
flex-direction:column;
@@ -3902,61 +3832,65 @@ iframe[name=editor-canvas].has-editor-padding{
height:100%;
justify-content:center;
}
+.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search{
+ padding:16px 24px 8px;
+}
.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search:not(:focus-within){
--wp-components-color-background:#fff;
}
-.block-editor-inserter__media-list{
- margin-top:16px;
-}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item{
+.block-editor-inserter__media-list__list-item{
cursor:pointer;
margin-bottom:24px;
position:relative;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-placeholder{
+.block-editor-inserter__media-list__list-item.is-placeholder{
min-height:100px;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item[draggable=true] .block-editor-block-preview__container{
+.block-editor-inserter__media-list__list-item[draggable=true] .block-editor-inserter__media-list__list-item{
cursor:grab;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview{
- box-shadow:0 0 0 2px #1e1e1e,0 15px 25px #00000012;
+.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview>*{
+ outline-color:#0000004d;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options>button{
+.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options>button{
display:block;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options{
+.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options{
position:absolute;
right:8px;
top:8px;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button{
+.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button{
background:#fff;
border-radius:2px;
display:none;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button.is-opened,.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:focus{
+.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button.is-opened,.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:focus{
display:block;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:hover{
+.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:hover{
box-shadow:inset 0 0 0 2px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:2px solid #0000;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__item{
+
+.block-editor-inserter__media-list__item{
height:100%;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview{
+.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview{
align-items:center;
border-radius:2px;
display:flex;
overflow:hidden;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview>*{
+.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview>*{
+ border-radius:2px;
margin:0 auto;
max-width:100%;
+ outline:1px solid #0000001a;
+ outline-offset:-1px;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{
+.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{
align-items:center;
background:#ffffffb3;
display:flex;
@@ -3966,9 +3900,17 @@ iframe[name=editor-canvas].has-editor-padding{
position:absolute;
width:100%;
}
-.block-editor-inserter__media-list .block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview{
- box-shadow:inset 0 0 0 2px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
- outline:2px solid #0000;
+.block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{
+ outline-color:var(--wp-admin-theme-color);
+ outline-offset:calc(-1*var(--wp-admin-border-width-focus));
+ outline-width:var(--wp-admin-border-width-focus);
+ transition:outline .1s linear;
+}
+@media (prefers-reduced-motion:reduce){
+ .block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
}
.block-editor-inserter__media-list__item-preview-options__popover .components-menu-item__button .components-menu-item__item{
@@ -4022,6 +3964,22 @@ iframe[name=editor-canvas].has-editor-padding{
height:40px;
}
+.block-editor-inserter__pattern-panel-placeholder{
+ display:none;
+}
+
+.block-editor-inserter__menu.is-zoom-out{
+ display:flex;
+}
+@media (min-width:782px){
+ .block-editor-inserter__menu.is-zoom-out.show-panel:after{
+ content:"";
+ display:block;
+ height:100%;
+ width:300px;
+ }
+}
+
.spacing-sizes-control .spacing-sizes-control__custom-value-input,.spacing-sizes-control .spacing-sizes-control__label{
margin-bottom:0;
}
diff --git a/wp-includes/css/dist/block-editor/style.min.css b/wp-includes/css/dist/block-editor/style.min.css
index 794d937..890c181 100644
--- a/wp-includes/css/dist/block-editor/style.min.css
+++ b/wp-includes/css/dist/block-editor/style.min.css
@@ -1 +1 @@
-@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-autocompleters__block{white-space:nowrap}.block-editor-autocompleters__block .block-editor-block-icon{margin-right:8px}.block-editor-autocompleters__link{white-space:nowrap}.block-editor-autocompleters__link .block-editor-block-icon{margin-right:8px}.block-editor-block-alignment-control__menu-group .components-menu-item__info{margin-top:0}.block-editor-block-bindings-toolbar-indicator{align-items:center;display:inline-flex;height:48px;padding:6px}.block-editor-block-bindings-toolbar-indicator svg g{stroke:var(--wp-bound-block-color);fill:#0000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}iframe[name=editor-canvas]{display:block;height:100%;width:100%}iframe[name=editor-canvas]:not(.has-editor-padding){background-color:#fff}iframe[name=editor-canvas].has-editor-padding{padding:24px 24px 0}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-inspector p:not(.components-base-control__help){margin-top:0}.block-editor-block-inspector h2,.block-editor-block-inspector h3{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.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-focal-point-picker-control .components-base-control,.block-editor-block-inspector .components-query-controls .components-base-control,.block-editor-block-inspector .components-range-control .components-base-control{margin-bottom:0}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e0e0e0;margin-top:-1px}.block-editor-block-inspector__no-block-tools,.block-editor-block-inspector__no-blocks{background:#fff;display:block;font-size:13px;padding:32px 16px;text-align:center}.block-editor-block-inspector__no-block-tools{border-top:1px solid #ddd}.block-editor-block-inspector__tab-item{flex:1 1 0px}.block-editor-block-list__insertion-point{bottom:0;left:0;position:absolute;right:0;top:0}.block-editor-block-list__insertion-point-indicator{background:var(--wp-admin-theme-color);border-radius:2px;opacity:0;position:absolute;transform-origin:center;will-change:transform,opacity}.block-editor-block-list__insertion-point.is-vertical>.block-editor-block-list__insertion-point-indicator{height:4px;top:calc(50% - 2px);width:100%}.block-editor-block-list__insertion-point.is-horizontal>.block-editor-block-list__insertion-point-indicator{bottom:0;left:calc(50% - 2px);top:0;width:4px}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;left:calc(50% - 12px);position:absolute;top:calc(50% - 12px);will-change:transform}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div{pointer-events:none}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div>*{pointer-events:all}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:#1e1e1e}.block-editor-block-list__block-selection-button{background-color:#1e1e1e;border-radius:2px;display:inline-flex;font-size:13px;height:48px;padding:0 12px;z-index:22}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content{align-items:center;display:inline-flex;margin:auto}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content>.components-flex__item{margin-right:6px}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle{cursor:grab;height:24px;margin-left:-2px;min-width:24px;padding:0}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle svg{min-height:18px;min-width:18px}.block-editor-block-list__block-selection-button .block-editor-block-icon{color:#fff;font-size:13px;height:48px}.block-editor-block-list__block-selection-button .components-button{color:#fff;display:flex;height:48px;min-width:36px}.block-editor-block-list__block-selection-button .components-button:focus{border:none;box-shadow:none}.block-editor-block-list__block-selection-button .components-button:active,.block-editor-block-list__block-selection-button .components-button[aria-disabled=true]:hover{color:#fff}.block-editor-block-list__block-selection-button .block-selection-button_select-button.components-button{padding:0}.block-editor-block-list__block-selection-button .block-editor-block-mover{background:unset;border:none}@keyframes hide-during-dragging{to{position:fixed;transform:translate(9999px,9999px)}}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .block-editor-block-list__block-selection-button{margin-bottom:12px;margin-top:12px;pointer-events:all}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;overflow:visible;position:static;width:auto}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-left:56px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-left:0}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar{overflow:visible}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar,.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar-group{border-right-color:#1e1e1e}.components-popover.block-editor-block-list__block-popover.is-insertion-point-visible{visibility:hidden}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{animation:hide-during-dragging 1ms linear forwards;opacity:0}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{left:-57px;position:absolute}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector:before{content:""}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{background-color:#fff;border:1px solid #1e1e1e;padding-left:6px;padding-right:6px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{padding-left:12px;padding-right:12px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{left:auto;margin-left:-1px;position:relative}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-mover__move-button-container,.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-left:1px solid #1e1e1e}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-lock-modal{z-index:1000001}@media (min-width:600px){.block-editor-block-lock-modal .components-modal__frame{max-width:480px}}.block-editor-block-lock-modal__checklist{margin:0}.block-editor-block-lock-modal__options-title{padding:12px 0}.block-editor-block-lock-modal__options-title .components-checkbox-control__label{font-weight:600}.block-editor-block-lock-modal__checklist-item{align-items:center;display:flex;gap:12px;justify-content:space-between;margin-bottom:0;padding:12px 0 12px 32px}.block-editor-block-lock-modal__checklist-item .block-editor-block-lock-modal__lock-icon{flex-shrink:0;margin-right:12px;fill:#1e1e1e}.block-editor-block-lock-modal__checklist-item:hover{background-color:#f0f0f0;border-radius:2px}.block-editor-block-lock-modal__template-lock{border-top:1px solid #ddd;margin-top:16px;padding:12px 0}.block-editor-block-lock-modal__actions{margin-top:24px}.block-editor-block-lock-toolbar .components-button.has-icon{min-width:36px!important}.block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{margin-left:-6px!important}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{border-left:1px solid #1e1e1e;margin-left:6px!important;margin-right:-6px}.block-editor-block-breadcrumb{list-style:none;margin:0;padding:0}.block-editor-block-breadcrumb li{display:inline-flex;margin:0}.block-editor-block-breadcrumb li .block-editor-block-breadcrumb__separator{fill:currentColor;margin-left:-4px;margin-right:-4px;transform:scaleX(1)}.block-editor-block-breadcrumb li:last-child .block-editor-block-breadcrumb__separator{display:none}.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){box-shadow:none;text-decoration:underline}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{border-radius:2px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:1px;outline:2px solid #0000;position:absolute;right:1px;top:1px}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;font-size:inherit;padding:0 8px}.block-editor-block-card{align-items:flex-start;color:#1e1e1e;display:flex;padding:16px}.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{font-size:13px;line-height:1.4;margin:0;padding:3px 0}.block-editor-block-card__description{display:block;font-size:13px;line-height:1.4;margin-top:4px}.block-editor-block-card .block-editor-block-icon{flex:0 0 24px;height:24px;margin-left:0;margin-right:12px;width:24px}.block-editor-block-card.is-synced .block-editor-block-icon{color:var(--wp-block-synced-color)}.block-editor-block-compare{height:auto}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;flex-direction:column;justify-content:space-between;max-width:600px;min-width:200px;padding:0 16px 0 0;width:50%}.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{border-bottom:1px solid #ddd;color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:12px;line-height:1.7;padding-bottom:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-bottom:3px;padding-top: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:#cc1818}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:16px 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:16px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{left:0;position:absolute;top:-24px}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;box-shadow:0 6px 8px #0000004d;color:#fff;cursor:grabbing;display:inline-flex;height:48px;padding:0 13px;position:relative;-webkit-user-select:none;user-select:none;width:max-content}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{justify-content:flex-start;margin:auto}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item{margin-right:6px}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item:last-child{margin-right:0}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content .block-editor-block-icon svg{min-height:18px;min-width:18px}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{align-items:center;background-color:initial;bottom:0;display:flex;justify-content:center;left:0;opacity:0;position:absolute;right:0;top:0;transition:all .1s linear .1s}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled .block-editor-block-draggable-chip__disabled-icon{background:#0000 linear-gradient(-45deg,#0000 47.5%,#fff 0,#fff 52.5%,#0000 0);border-radius:50%;box-shadow:inset 0 0 0 1.5px #fff;display:inline-block;height:20px;padding:0;width:20px}.block-draggable-invalid-drag-token .block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{background-color:#757575;box-shadow:0 4px 8px #0003;opacity:1}.block-editor-block-mover__move-button-container{border:none;display:flex;justify-content:center;padding:0}@media (min-width:600px){.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{flex-direction:column}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>*{height:20px;min-width:0!important;width:100%}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>:before{height:calc(100% - 4px)}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{flex-shrink:0;top:3px}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{bottom:3px;flex-shrink:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{width:48px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container>*{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button{padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{left:5px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{right:5px}}.block-editor-block-mover__drag-handle{cursor:grab}@media (min-width:600px){.block-editor-block-mover__drag-handle{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon.has-icon{padding-left:0;padding-right:0}}.components-button.block-editor-block-mover-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards;border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-mover-button:before{animation-delay:0s;animation-duration:1ms}}.components-button.block-editor-block-mover-button:focus,.components-button.block-editor-block-mover-button:focus:before,.components-button.block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.components-button.block-editor-block-mover-button:focus-visible:before{box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000}.block-editor-block-navigation__container{min-width:280px}.block-editor-block-navigation__label{color:#757575;font-size:11px;font-weight:500;margin:0 0 12px;text-transform:uppercase}.block-editor-block-patterns-list__list-item{cursor:pointer;margin-bottom:24px;position:relative}.block-editor-block-patterns-list__list-item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__list-item[draggable=true]{cursor:grab}.block-editor-block-patterns-list__item{height:100%;scroll-margin-bottom:56px;scroll-margin-top:24px}.block-editor-block-patterns-list__item .block-editor-block-preview__container{align-items:center;border-radius:4px;display:flex;overflow:hidden}.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{flex-grow:1;text-align:left}.block-editor-block-patterns-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px #1e1e1e}.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) #1e1e1e;outline:2px solid #0000;outline-offset:2px}.block-editor-block-patterns-list__item.block-editor-block-patterns-list__list-item-synced:focus .block-editor-block-preview__container,.block-editor-block-patterns-list__item.block-editor-block-patterns-list__list-item-synced:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-block-synced-color),0 15px 25px #00000012}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-details{align-items:center;margin-top:8px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper{height:24px;min-width:24px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper .block-editor-patterns__pattern-icon{fill:var(--wp-block-synced-color)}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination{border-top:1px solid #2f2f2f;justify-content:center;padding:4px}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:auto}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination .components-button.is-tertiary:disabled{background:none;color:#949494}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination .components-button.is-tertiary:hover:not(:disabled){background-color:#757575;color:#fff}.show-icon-labels .block-editor-patterns__grid-pagination,.show-icon-labels .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next,.show-icon-labels .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous{flex-direction:column}.show-icon-labels .block-editor-patterns__grid-pagination .components-button{width:auto}.show-icon-labels .block-editor-patterns__grid-pagination .components-button span{display:none}.show-icon-labels .block-editor-patterns__grid-pagination .components-button:before{content:attr(aria-label)}.components-popover.block-editor-block-popover{margin:0!important;pointer-events:none;position:absolute;z-index:31}.components-popover.block-editor-block-popover .components-popover__content{margin:0!important;min-width:auto;overflow-y:visible;width:max-content}.components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween,.block-editor-block-popover__drop-zone,.block-editor-block-list__block-side-inserter-popover) .components-popover__content *{pointer-events:all}.components-popover.block-editor-block-popover__inbetween,.components-popover.block-editor-block-popover__inbetween *{pointer-events:none}.components-popover.block-editor-block-popover__inbetween .is-with-inserter,.components-popover.block-editor-block-popover__inbetween .is-with-inserter *{pointer-events:all}.components-popover.block-editor-block-popover__drop-zone *{pointer-events:none}.components-popover.block-editor-block-popover__drop-zone .block-editor-block-popover__drop-zone-foreground{background-color:var(--wp-admin-theme-color);border-radius:2px;inset:0;position:absolute}.block-editor-block-preview__container{overflow:hidden;position:relative;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content{left:0;margin:0;min-height:auto;overflow:visible;text-align:initial;top:0;transform-origin:top left;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender{display:none}.block-editor-block-preview__container:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.block-editor-block-rename-modal{z-index:1000001}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles+.default-style-picker__default-switcher{margin-top:16px}.block-editor-block-styles__preview-panel{display:none;z-index:90}@media (min-width:782px){.block-editor-block-styles__preview-panel{display:block}}.block-editor-block-styles__preview-panel .block-editor-block-icon{display:none}.block-editor-block-styles__variants{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item{box-shadow:inset 0 0 0 1px #ddd;color:#1e1e1e;display:inline-block;width:calc(50% - 4px)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:hover{box-shadow:inset 0 0 0 1px #ddd;color:var(--wp-admin-theme-color)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover{background-color:#1e1e1e;box-shadow:none}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active .block-editor-block-styles__item-text,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover .block-editor-block-styles__item-text{color:#fff}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus{box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000}.block-editor-block-styles__variants .block-editor-block-styles__item-text{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-editor-block-styles__block-preview-container,.block-editor-block-styles__block-preview-container *{box-sizing:border-box!important}.block-editor-block-switcher{position:relative}.block-editor-block-switcher .components-button.components-dropdown-menu__toggle.has-icon.has-icon{min-width:36px}.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{display:block;height:48px;margin:0}.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}.block-editor-block-switcher__toggle-text{margin-left:8px}.show-icon-labels .block-editor-block-switcher__toggle-text{display:none}.components-button.block-editor-block-switcher__no-switcher-icon{display:flex}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin-left:auto;margin-right:auto;min-width:24px!important}.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}.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,.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{align-items:center;display:flex;height:100%;margin:0 auto;min-width:100%;position:relative}.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,.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{bottom:8px;left:8px;right:8px;top:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container{left:calc(100% + 16px);position:absolute;top:-12px}.block-editor-block-switcher__preview__popover{display:none;overflow:hidden}.block-editor-block-switcher__preview__popover.components-popover{margin-top:11px}@media (min-width:782px){.block-editor-block-switcher__preview__popover{display:block}}.block-editor-block-switcher__preview__popover .components-popover__content{background:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:none;outline:none;overflow:auto;width:300px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview{margin:16px 0;max-height:468px;overflow:hidden;padding:0 16px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview.is-pattern-list-preview{overflow:unset}.block-editor-block-switcher__preview-title{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;text-transform:uppercase}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{min-width:36px}.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 .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{height:48px;width: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-switcher__preview-patterns-container{padding-bottom:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item{margin-top:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container{cursor:pointer}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{border:1px solid #0000;border-radius:2px;height:100%;position:relative;transition:all .05s ease-in-out}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:focus,.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item .block-editor-block-switcher__preview-patterns-container-list__item-title{cursor:pointer;font-size:12px;padding:4px;text-align:center}.block-editor-block-switcher__no-transforms{color:#757575;margin:0;padding:6px 8px}.block-editor-block-types-list>[role=presentation]{display:flex;flex-wrap:wrap;overflow:hidden}.block-editor-block-pattern-setup{align-items:flex-start;border-radius:2px;display:flex;flex-direction:column;justify-content:center;width:100%}.block-editor-block-pattern-setup.view-mode-grid{padding-top:4px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__toolbar{justify-content:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-count:2;column-gap:24px;display:block;padding:0 32px;width:100%}@media (min-width:1440px){.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-count:3}}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button]{cursor:pointer}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item{scroll-margin:5px 0}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:2px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-pattern-setup-list__item-title,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-pattern-setup-list__item-title{color:var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item{break-inside:avoid-column;margin-bottom:24px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title{cursor:pointer;font-size:12px;padding-top:8px;text-align:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__container{border:1px solid #ddd;border-radius:2px;min-height:100px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__content{width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar{align-items:center;align-self:stretch;background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:row;height:60px;justify-content:space-between;margin:0;padding:16px;position:absolute;text-align:left;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__display-controls{display:flex}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions,.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__navigation{display:flex;width:calc(50% - 36px)}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions{justify-content:flex-end}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container{box-sizing:border-box;display:flex;flex-direction:column;height:100%;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container{height:100%;list-style:none;margin:0;overflow:hidden;padding:0;position:relative;transform-style:preserve-3d}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container *{box-sizing:border-box}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{background-color:#fff;height:100%;margin:auto;padding:0;position:absolute;top:0;transition:transform .5s,z-index .5s;width:100%;z-index:100}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.active-slide{opacity:1;position:relative;z-index:102}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.previous-slide{transform:translateX(-100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.next-slide{transform:translateX(100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .block-list-appender{display:none}.block-editor-block-pattern-setup__carousel,.block-editor-block-pattern-setup__grid{width:100%}.block-editor-block-variation-transforms{padding:0 16px 16px 52px;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle{border:1px solid #757575;border-radius:2px;justify-content:left;min-height:30px;padding:6px 12px;position:relative;text-align:left;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle.components-dropdown-menu__toggle{padding-right:24px}.block-editor-block-variation-transforms .components-dropdown-menu__toggle:focus:not(:disabled){border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 calc(var(--wp-admin-border-width-focus) - 1px) var(--wp-admin-theme-color)}.block-editor-block-variation-transforms .components-dropdown-menu__toggle svg{height:100%;padding:0;position:absolute;right:0;top:0}.block-editor-block-variation-transforms__popover .components-popover__content{min-width:230px}.components-border-radius-control{margin-bottom:12px}.components-border-radius-control legend{margin-bottom:8px}.components-border-radius-control .components-border-radius-control__wrapper{align-items:flex-start;display:flex;justify-content:space-between}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__unit-control{flex-shrink:0;margin-bottom:0;margin-right:16px;width:calc(50% - 8px)}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control{flex:1;margin-right:12px}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control>div{align-items:center;display:flex;height:40px}.components-border-radius-control .components-border-radius-control__wrapper>span{flex:0 0 auto}.components-border-radius-control .components-border-radius-control__input-controls-wrapper{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr));margin-right:12px}.components-border-radius-control .component-border-radius-control__linked-button{display:flex;justify-content:center;margin-top:8px}.components-border-radius-control .component-border-radius-control__linked-button svg{margin-right:0}.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control__fieldset{min-width:0}.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings,.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings>div:not(:first-of-type){display:block}@media screen and (min-width:782px){.block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches{display:grid;grid-template-columns:repeat(6,28px)}}.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control{margin-bottom:inherit}.block-editor-panel-color-gradient-settings__dropdown-content .block-editor-color-gradient-control__panel{padding:16px;width:260px}.block-editor-panel-color-gradient-settings__color-indicator{background:linear-gradient(-45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0)}.block-editor-tools-panel-color-gradient-settings__item{border-bottom:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #ddd;max-width:100%;padding:0}.block-editor-tools-panel-color-gradient-settings__item:nth-child(1 of .block-editor-tools-panel-color-gradient-settings__item){border-top:1px solid #ddd;border-top-left-radius:2px;border-top-right-radius:2px;margin-top:24px}.block-editor-tools-panel-color-gradient-settings__item:nth-last-child(1 of .block-editor-tools-panel-color-gradient-settings__item){border-bottom-left-radius:2px;border-bottom-right-radius:2px}.block-editor-tools-panel-color-gradient-settings__item>div,.block-editor-tools-panel-color-gradient-settings__item>div>button{border-radius:inherit}.block-editor-tools-panel-color-gradient-settings__dropdown{display:block;padding:0}.block-editor-tools-panel-color-gradient-settings__dropdown>button{height:auto;padding-bottom:10px;padding-top:10px;text-align:left}.block-editor-tools-panel-color-gradient-settings__dropdown>button.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.block-editor-tools-panel-color-gradient-settings__dropdown .block-editor-panel-color-gradient-settings__color-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-panel-color-gradient-settings__dropdown{width:100%}.block-editor-panel-color-gradient-settings__dropdown .component-color-indicator{flex-shrink:0}.block-editor-date-format-picker{margin-bottom:16px}.block-editor-date-format-picker__custom-format-select-control__custom-option{border-top:1px solid #ddd}.block-editor-date-format-picker__custom-format-select-control__custom-option.has-hint{grid-template-columns:auto 30px}.block-editor-date-format-picker__custom-format-select-control__custom-option .components-custom-select-control__item-hint{grid-row:2;text-align:left}.block-editor-duotone-control__popover>.components-popover__content{padding:16px;width:260px}.block-editor-duotone-control__popover .components-menu-group__label{padding:0}.block-editor-duotone-control__popover .components-circular-option-picker__swatches{display:grid;gap:12px;grid-template-columns:repeat(6,28px);justify-content:space-between}.block-editor-duotone-control__unset-indicator{background:linear-gradient(-45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0)}.components-font-appearance-control ul li{color:#1e1e1e;text-transform:capitalize}.block-editor-global-styles__toggle-icon{fill:currentColor}.block-editor-global-styles__shadow-popover-container{width:230px}.block-editor-global-styles__shadow__list{display:flex;flex-wrap:wrap;gap:12px;padding-bottom:8px}.block-editor-global-styles__clear-shadow{text-align:right}.block-editor-global-styles-filters-panel__dropdown,.block-editor-global-styles__shadow-dropdown{display:block;padding:0}.block-editor-global-styles-filters-panel__dropdown button,.block-editor-global-styles__shadow-dropdown button{padding:8px;width:100%}.block-editor-global-styles-filters-panel__dropdown button.is-open,.block-editor-global-styles__shadow-dropdown button.is-open{background-color:#f0f0f0}.block-editor-global-styles__shadow-indicator{border:1px solid #e0e0e0;border-radius:2px;box-sizing:border-box;color:#2f2f2f;cursor:pointer;height:26px;padding:0;transform:scale(1);transition:transform .1s ease;width:26px;will-change:transform}.block-editor-global-styles__shadow-indicator:focus{border:2px solid #757575}.block-editor-global-styles__shadow-indicator:hover{transform:scale(1.2)}.block-editor-global-styles__shadow-indicator.unset{background:linear-gradient(-45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0)}.block-editor-global-styles-advanced-panel__custom-css-input textarea{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}.block-editor-height-control{border:0;margin:0;padding:0}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__width{margin-bottom:1.115em}.block-editor-block-types-list__list-item{display:block;margin:0;padding:0;width:33.33%}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled) .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-block-synced-color)!important;filter:brightness(.95)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-block-synced-color)!important}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):after{background:var(--wp-block-synced-color)}.components-button.block-editor-block-types-list__item{align-items:stretch;background:#0000;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;flex-direction:column;font-size:13px;height:auto;justify-content:center;padding:8px;position:relative;transition:all .05s ease-in-out;width:100%;word-break:break-word}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-delay:0s;transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{cursor:default;opacity:.6}.components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-admin-theme-color)!important;filter:brightness(.95)}.components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled):hover:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;pointer-events:none;position:absolute;right:0;top:0}.components-button.block-editor-block-types-list__item:not(:disabled):focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{background:#1e1e1e;color:#fff;outline:2px solid #0000;outline-offset:-2px}.block-editor-block-types-list__item-icon{border-radius:2px;color:#1e1e1e;padding:12px 20px;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-delay:0s;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-delay:0s;transition-duration:0s}}.block-editor-block-types-list__list-item[draggable=true] .block-editor-block-types-list__item-icon{cursor:grab}.block-editor-block-types-list__item-title{font-size:12px;padding:4px 2px 8px}.show-icon-labels .block-editor-block-inspector__tabs [role=tablist] .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-inspector__tabs [role=tablist] .components-button.has-icon:before{content:attr(aria-label)}.block-editor-inspector-controls-tabs__hint{align-items:flex-start;background:#f0f0f0;border-radius:2px;color:#1e1e1e;display:flex;flex-direction:row;font-size:13px;margin:16px}.block-editor-inspector-controls-tabs__hint-content{margin:12px 0 12px 12px}.block-editor-inspector-controls-tabs__hint-dismiss{margin:4px 4px 4px 0}.block-editor-inspector-popover-header{margin-bottom:16px}[class].block-editor-inspector-popover-header__action{height:24px}[class].block-editor-inspector-popover-header__action.has-icon{min-width:24px;padding:0}[class].block-editor-inspector-popover-header__action:not(.has-icon){text-decoration:underline}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}@keyframes loadingpulse{0%{opacity:1}50%{opacity:0}to{opacity:1}}.block-editor-link-control{min-width:350px;position:relative}.components-popover__content .block-editor-link-control{max-width:350px;min-width:auto;width:90vw}.show-icon-labels .block-editor-link-control .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-link-control .components-button.has-icon:before{content:attr(aria-label)}.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top{gap:8px}.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top .components-button.has-icon{min-width:inherit;width:min-content}.block-editor-link-control__search-input-wrapper{margin-bottom:8px;position:relative}.block-editor-link-control__search-input-container,.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control__field{margin:16px}.block-editor-link-control__field .components-base-control__label{color:#1e1e1e}.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:40px;line-height:normal;margin:0;padding:8px 40px 8px 16px;position:relative;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{font-size:13px;line-height:normal}}.block-editor-link-control__field input[type=text]:focus,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-link-control__field input[type=text]::-webkit-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-webkit-input-placeholder{color:#1e1e1e9e}.block-editor-link-control__field input[type=text]::-moz-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-moz-placeholder{color:#1e1e1e9e;opacity:1}.block-editor-link-control__field input[type=text]:-ms-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:-ms-input-placeholder{color:#1e1e1e9e}.has-actions .block-editor-link-control__field input[type=text],.has-actions .block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{padding-right:16px}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-enter{position:absolute;right:19px;top:3px}.block-editor-link-control__search-enter svg{position:relative;top:-2px}.block-editor-link-control__search-actions{padding:8px 16px 16px}.block-editor-link-control__search-results-wrapper{position:relative}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";display:block;left:-1px;pointer-events:none;position:absolute;right:16px;z-index:100}.block-editor-link-control__search-results-wrapper:before{bottom:auto;height:8px;top:0}.block-editor-link-control__search-results-wrapper:after{bottom:0;height:16px;top:auto}.block-editor-link-control__search-results{margin-top:-16px;max-height:200px;overflow-y:auto;padding:8px}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item.components-button.components-menu-item__button{height:auto;text-align:left}.block-editor-link-control__search-item .components-menu-item__item{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.block-editor-link-control__search-item .components-menu-item__item mark{background-color:initial;color:inherit;font-weight:600}.block-editor-link-control__search-item .components-menu-item__shortcut{color:#757575;text-transform:capitalize;white-space:nowrap}.block-editor-link-control__search-item[aria-selected]{background:#f0f0f0}.block-editor-link-control__search-item.is-current{background:#0000;border:0;cursor:default;flex-direction:column;padding:16px;width:100%}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{align-items:center;display:block;flex-direction:row;gap:8px;margin-right:8px;overflow-wrap:break-word;white-space:pre-wrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-header .block-editor-link-control__search-item-info{color:#757575;font-size:12px;line-height:1.1;word-break:break-all}.block-editor-link-control__search-item.is-preview .block-editor-link-control__search-item-header{display:flex;flex:1}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-header{align-items:center}.block-editor-link-control__search-item.is-url-title .block-editor-link-control__search-item-title{word-break:break-all}.block-editor-link-control__search-item .block-editor-link-control__search-item-details{display:flex;flex-direction:column;gap:4px;justify-content:space-between}.block-editor-link-control__search-item .block-editor-link-control__search-item-header .block-editor-link-control__search-item-icon{background-color:#f0f0f0;border-radius:2px;height:32px;width:32px}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{align-items:center;display:flex;flex-shrink:0;justify-content:center;position:relative}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon img{width:16px}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-icon{max-height:32px;top:0;width:32px}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{border-radius:2px;line-height:1.1}.block-editor-link-control__search-item .block-editor-link-control__search-item-title:focus{box-shadow:none}.block-editor-link-control__search-item .block-editor-link-control__search-item-title:focus-visible{box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000;text-decoration:none}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{background-color:initial;color:inherit;font-weight:600}.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-title svg{display:none}.block-editor-link-control__search-item-top{align-items:center;display:flex;flex-direction:row;width:100%}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon img,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon svg{opacity:0}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon:before{animation:loadingpulse 1s linear infinite;animation-delay:.5s;background-color:#f0f0f0;border-radius:100%;bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}.block-editor-link-control__loading{align-items:center;display:flex;margin:16px}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{overflow:visible;padding:12px 16px}.components-button+.block-editor-link-control__search-create:before{content:"";display:block;left:0;position:absolute;top:-10px;width:100%}.block-editor-link-control__search-create{align-items:center}.block-editor-link-control__search-create .block-editor-link-control__search-item-title{margin-bottom:0}.block-editor-link-control__search-create .block-editor-link-control__search-item-icon{top:0}.block-editor-link-control__drawer-inner{display:flex;flex-basis:100%;flex-direction:column;position:relative}.block-editor-link-control__setting{flex:1;margin-bottom:0;padding:8px 0 8px 24px}.block-editor-link-control__setting .components-base-control__field{display:flex}.block-editor-link-control__setting .components-base-control__field .components-checkbox-control__label{color:#1e1e1e}.block-editor-link-control__setting input{margin-left:0}.is-preview .block-editor-link-control__setting{padding:20px 8px 8px 0}.block-editor-link-control__tools{margin-top:-16px;padding:8px 8px 0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle{gap:0;padding-left:0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true]{color:#1e1e1e}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transform:rotate(90deg);transition:transform .1s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transition-delay:0s;transition-duration:0s}}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transform:rotate(0deg);transition:transform .1s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transition-delay:0s;transition-duration:0s}}.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{bottom:auto;left:auto;position:absolute;right:40px;top:calc(50% - 8px)}.block-editor-link-control .block-editor-link-control__search-input-wrapper.has-actions .components-spinner{right:12px;top:calc(50% + 4px)}.block-editor-list-view-tree{border-collapse:collapse;margin:0;padding:0;width:100%}.components-modal__content .block-editor-list-view-tree{margin:-12px -6px 0;width:calc(100% + 12px)}.block-editor-list-view-tree.is-dragging tbody{pointer-events:none}.block-editor-list-view-leaf{position:relative;transform:translateY(0)}.block-editor-list-view-leaf.is-draggable,.block-editor-list-view-leaf.is-draggable .block-editor-list-view-block-contents{cursor:grab}.block-editor-list-view-leaf .block-editor-list-view-block-select-button[aria-expanded=true]{color:inherit}.block-editor-list-view-leaf .block-editor-list-view-block-select-button:hover{color:var(--wp-admin-theme-color)}.is-dragging-components-draggable .block-editor-list-view-leaf:not(.is-selected) .block-editor-list-view-block-select-button:hover{color:inherit}.block-editor-list-view-leaf.is-selected td{background:var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced td{background:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:hover{color:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents,.block-editor-list-view-leaf.is-selected .components-button.has-icon{color:#fff}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-list-view-leaf.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-last-selected td:first-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-last-selected td:last-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.block-editor-list-view-leaf.is-synced-branch.is-branch-selected{background:rgba(var(--wp-block-synced-color--rgb),.04)}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:first-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:last-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected) td{border-radius:0}.block-editor-list-view-leaf.is-displacement-normal{transform:translateY(0);transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-displacement-normal{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-displacement-up{transform:translateY(-36px);transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-displacement-up{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-displacement-down{transform:translateY(36px);transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-displacement-down{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-after-dragged-blocks{transform:translateY(calc(var(--wp-admin--list-view-dragged-items-height, 36px)*-1));transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-after-dragged-blocks{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transform:translateY(calc(-36px + var(--wp-admin--list-view-dragged-items-height, 36px)*-1));transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transform:translateY(calc(36px + var(--wp-admin--list-view-dragged-items-height, 36px)*-1));transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-dragging{left:0;opacity:0;pointer-events:none;z-index:-9999}.block-editor-list-view-leaf .block-editor-list-view-block-contents{align-items:center;border-radius:2px;display:flex;height:auto;padding:6px 4px 6px 0;position:relative;text-align:left;white-space:nowrap;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-contents.is-dropping-before:before{border-top:4px solid var(--wp-admin-theme-color);content:"";left:0;pointer-events:none;position:absolute;right:0;top:-2px;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear}.components-modal__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{padding-left:0;padding-right:0}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents{box-shadow:none}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:0;pointer-events:none;position:absolute;right:-29px;top:0;z-index:2}.block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus:after{right:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu:focus,.block-editor-list-view-leaf.is-nesting .block-editor-list-view__menu{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);z-index:1}.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards;opacity:1}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation-delay:0s;animation-duration:1ms}}.block-editor-list-view-leaf .block-editor-block-icon{flex:0 0 24px;margin-right:8px}.block-editor-list-view-leaf .block-editor-list-view-block__contents-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{padding-bottom:0;padding-top:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{line-height:0;vertical-align:middle;width:36px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell>*{opacity:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:hover>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:hover>*{opacity:1}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell .components-button.has-icon{min-width:24px;padding:0;width:24px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell{padding-right:4px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon{height:24px}.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell-alignment-wrapper{align-items:center;display:flex;flex-direction:column;height:100%}.block-editor-list-view-leaf .block-editor-block-mover-button{height:24px;position:relative;width:36px}.block-editor-list-view-leaf .block-editor-block-mover-button svg{height:24px;position:relative}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end;margin-top:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start;margin-bottom:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button:before{height:16px;left:0;min-width:100%;right:0}.block-editor-list-view-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 6px 6px 1px;min-width:24px}.block-editor-list-view-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper{min-width:120px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title{flex:1;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title .components-truncate{position:absolute;transform:translateY(-50%);width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor-wrapper{max-width:min(110px,40%);position:relative;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor{background:#0000001a;border-radius:2px;box-sizing:border-box;max-width:100%;padding:2px 6px;position:absolute;right:0;transform:translateY(-50%)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor{background:#0000004d}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__lock{line-height:0}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__images{display:flex}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image{background-size:cover;border-radius:2px;height:18px;width:18px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px #fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:first-child){margin-left:-6px}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-list-view-draggable-chip{opacity:.8}.block-editor-list-view-appender__cell .block-editor-list-view-appender__container,.block-editor-list-view-appender__cell .block-editor-list-view-block__contents-container,.block-editor-list-view-block__contents-cell .block-editor-list-view-appender__container,.block-editor-list-view-block__contents-cell .block-editor-list-view-block__contents-container{display:flex}.block-editor-list-view__expander{cursor:pointer;height:24px;margin-left:4px;width:24px}.block-editor-list-view-leaf[aria-level] .block-editor-list-view__expander{margin-left:220px}.block-editor-list-view-leaf:not([aria-level="1"]) .block-editor-list-view__expander{margin-right:4px}.block-editor-list-view-leaf[aria-level="1"] .block-editor-list-view__expander{margin-left:0}.block-editor-list-view-leaf[aria-level="2"] .block-editor-list-view__expander{margin-left:24px}.block-editor-list-view-leaf[aria-level="3"] .block-editor-list-view__expander{margin-left:52px}.block-editor-list-view-leaf[aria-level="4"] .block-editor-list-view__expander{margin-left:80px}.block-editor-list-view-leaf[aria-level="5"] .block-editor-list-view__expander{margin-left:108px}.block-editor-list-view-leaf[aria-level="6"] .block-editor-list-view__expander{margin-left:136px}.block-editor-list-view-leaf[aria-level="7"] .block-editor-list-view__expander{margin-left:164px}.block-editor-list-view-leaf[aria-level="8"] .block-editor-list-view__expander{margin-left:192px}.block-editor-list-view-leaf .block-editor-list-view__expander{visibility:hidden}.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transform:rotate(90deg);transition:transform .2s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transform:rotate(0deg);transition:transform .2s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-drop-indicator{pointer-events:none}.block-editor-list-view-drop-indicator .block-editor-list-view-drop-indicator__line{background:var(--wp-admin-theme-color);border-radius:4px;height:4px}.block-editor-list-view-drop-indicator--preview{pointer-events:none}.block-editor-list-view-drop-indicator--preview .components-popover__content{overflow:hidden!important}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:4px;height:36px;overflow:hidden}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line--darker{background:rgba(var(--wp-admin-theme-color--rgb),.09)}.block-editor-list-view-placeholder{height:36px;margin:0;padding:0}.list-view-appender .block-editor-inserter__toggle{background-color:#1e1e1e;border-radius:2px;color:#fff;height:24px;margin:8px 0 0 24px;min-width:24px;padding:0}.list-view-appender .block-editor-inserter__toggle:focus,.list-view-appender .block-editor-inserter__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.list-view-appender__description{display:none}.block-editor-list-view-block-select-button__bindings svg g{stroke:var(--wp-bound-block-color);fill:#0000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__indicator{margin-left:4px}.block-editor-media-flow__url-input{margin-left:-8px;margin-right:-8px;padding:16px}.block-editor-media-flow__url-input.has-siblings{border-top:1px solid #1e1e1e;margin-top:8px;padding-bottom:8px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{display:block;margin-bottom:8px;top:16px}.block-editor-media-flow__url-input .block-editor-link-control{width:300px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-url-input{margin:0;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-info,.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:200px;white-space:nowrap}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__tools{justify-content:flex-end;padding:16px var(--wp-admin-border-width-focus) var(--wp-admin-border-width-focus)}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{padding:0;width:auto}.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:0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{padding:8px 0 0}.block-editor-media-flow__error{max-width:255px;padding:0 20px 20px}.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-multi-selection-inspector__card{align-items:flex-start;display:flex;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{height:24px;margin-left:-2px;margin-right:10px;padding:0 3px;width:36px}.block-editor-responsive-block-control{border-bottom:1px solid #ccc;margin-bottom:28px;padding-bottom:14px}.block-editor-responsive-block-control:last-child{border-bottom:0;padding-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}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{box-shadow:none;margin-bottom:8px;min-width:auto;outline:none;width:auto}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar{border-radius:2px}.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-height:48px;min-width:48px;padding-left:12px;padding-right:12px}.block-editor-rich-text__inline-format-toolbar-group .components-dropdown-menu__toggle{justify-content:center}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon{width:auto}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon:after{content:attr(aria-label)}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{background:#f1f1f1;box-shadow:0 0 2px 2px #0009;color:var(--wp-admin-theme-color);display:block;font-size:14px;font-weight:600;height:auto;line-height:normal;outline:none;padding:15px 23px 14px;text-decoration:none;width:auto;z-index:100000}.block-editor-text-decoration-control{border:0;margin:0;padding:0}.block-editor-text-decoration-control .block-editor-text-decoration-control__buttons{display:flex;padding:4px 0}.block-editor-text-decoration-control .components-button.has-icon{height:32px;margin-right:4px;min-width:32px;padding:0}.block-editor-text-transform-control{border:0;margin:0;padding:0}.block-editor-text-transform-control .block-editor-text-transform-control__buttons{display:flex;padding:4px 0}.block-editor-text-transform-control .components-button.has-icon{height:32px;margin-right:4px;min-width:32px;padding:0}.block-editor-tool-selector__help{border-top:1px solid #ddd;color:#757575;margin:8px -8px -8px;min-width:280px;padding:16px}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;padding:1px;position:relative}.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:16px;margin-left:0;margin-right:0;padding:8px 8px 8px 12px;width:100%}@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;width:300px}}.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-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.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{margin:0;position:absolute;right:8px;top:calc(50% - 8px)}.block-editor-url-input__input[type=text]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-url-input__input[type=text]{transition-delay:0s;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:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:#1e1e1e9e}.block-editor-url-input__input[type=text]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:#1e1e1e9e}.block-editor-url-input__suggestions{max-height:200px;overflow-y:auto;padding:4px 0;transition:all .15s ease-in-out;width:302px}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-delay:0s;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:grid}}.block-editor-url-input__suggestion{background:#fff;border:none;box-shadow:none;color:#757575;cursor:pointer;display:block;font-size:13px;height:auto;min-height:36px;text-align:left;width:100%}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{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{background:#ddd;content:"";display:block;height:24px;position:absolute;right:-1px;width:1px}.block-editor-url-input__button-modal{background:#fff;border:1px solid #ddd;box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a}.block-editor-url-input__button-modal-line{align-items:flex-start;display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;height:36px;width:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #1e1e1e;padding:8px}.block-editor-url-popover__input-container{padding:8px}.block-editor-url-popover__row{display:flex;gap:4px}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1;gap:8px}.block-editor-url-popover__additional-controls .components-button.has-icon{height:auto;padding-left:8px;padding-right:8px;text-align:left}.block-editor-url-popover__additional-controls .components-button.has-icon>svg{margin-right:8px}.block-editor-url-popover__settings-toggle{flex-shrink:0}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(180deg)}.block-editor-url-popover__settings{border-top:1px solid #1e1e1e;display:block;padding:16px}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-viewer-url{align-items:center;display:flex;flex-grow:1;flex-shrink:1;margin-right:8px;max-width:350px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#cc1818}.block-editor-url-popover__expand-on-click{align-items:center;display:flex;min-width:350px;white-space:nowrap}.block-editor-url-popover__expand-on-click .text{flex-grow:1}.block-editor-url-popover__expand-on-click .text p{line-height:16px;margin:0}.block-editor-url-popover__expand-on-click .text p.description{color:#757575;font-size:12px}.html-anchor-control .components-external-link{display:block;margin-top:8px}.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack{flex-direction:row-reverse}.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack .components-h-stack{flex-direction:row}.block-editor-hooks__block-hooks .block-editor-hooks__block-hooks-helptext{color:#757575;font-size:12px;margin-bottom:16px}.block-editor-hooks__background__inspector-media-replace-container{position:relative}.block-editor-hooks__background__inspector-media-replace-container .components-drop-zone__content-icon{display:none}.block-editor-hooks__background__inspector-media-replace-container button.components-button{box-shadow:inset 0 0 0 1px #ddd;color:#1e1e1e;display:block;height:40px;width:100%}.block-editor-hooks__background__inspector-media-replace-container button.components-button:hover{color:var(--wp-admin-theme-color)}.block-editor-hooks__background__inspector-media-replace-container button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-hooks__background__inspector-media-replace-container .block-editor-hooks__background__inspector-media-replace-title{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-editor-hooks__background__inspector-media-replace-container .components-dropdown{display:block}.block-editor-hooks__background__inspector-image-indicator-wrapper{background:#fff linear-gradient(-45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0);border-radius:50%!important;box-shadow:inset 0 0 0 1px #0003;display:block;flex:none;height:20px;width:20px}.block-editor-hooks__background__inspector-image-indicator-wrapper.has-image{background:#fff}.block-editor-hooks__background__inspector-image-indicator{background-size:cover;border-radius:50%;display:block;height:20px;position:relative;width:20px}.block-editor-hooks__background__inspector-image-indicator:after{border:1px solid #0000;border-radius:50%;bottom:-1px;box-shadow:inset 0 0 0 1px #0003;box-sizing:inherit;content:"";left:-1px;position:absolute;right:-1px;top:-1px}.border-block-support-panel .single-column{grid-column:span 1}.color-block-support-panel .block-editor-contrast-checker{grid-column:span 2;margin-top:16px;order:9999}.color-block-support-panel .block-editor-contrast-checker .components-notice__content{margin-right:0}.color-block-support-panel.color-block-support-panel .color-block-support-panel__inner-wrapper{row-gap:0}.color-block-support-panel .block-editor-tools-panel-color-gradient-settings__item.first{margin-top:0}.dimensions-block-support-panel .single-column{grid-column:span 1}.block-editor-hooks__layout-controls{display:flex;margin-bottom:8px}.block-editor-hooks__layout-controls .block-editor-hooks__layout-controls-unit{display:flex;margin-right:24px}.block-editor-hooks__layout-controls .block-editor-hooks__layout-controls-unit svg{margin:auto 0 4px 8px}.block-editor-block-inspector .block-editor-hooks__layout-controls-unit-input{margin-bottom:0}.block-editor-hooks__layout-controls-reset{display:flex;justify-content:flex-end;margin-bottom:24px}.block-editor-hooks__layout-controls-helptext{color:#757575;font-size:12px;margin-bottom:16px}.block-editor-hooks__flex-layout-justification-controls,.block-editor-hooks__flex-layout-orientation-controls{margin-bottom:12px}.block-editor-hooks__flex-layout-justification-controls legend,.block-editor-hooks__flex-layout-orientation-controls legend{margin-bottom:8px}.block-editor-hooks__toggle-control.block-editor-hooks__toggle-control{margin-bottom:16px}.block-editor__padding-visualizer{border-color:var(--wp-admin-theme-color);border-style:solid;bottom:0;box-sizing:border-box;left:0;opacity:.5;pointer-events:none;position:absolute;right:0;top:0}.block-editor-hooks__position-selection__select-control .components-custom-select-control__hint{display:none}.block-editor-hooks__position-selection__select-control__option.has-hint{grid-template-columns:auto 30px;line-height:1.4;margin-bottom:0}.block-editor-hooks__position-selection__select-control__option .components-custom-select-control__item-hint{grid-row:2;text-align:left}.typography-block-support-panel .single-column{grid-column:span 1}.block-editor-block-toolbar{display:flex;flex-grow:1;overflow-x:auto;overflow-y:hidden;position:relative;transition:border-color .1s linear,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-delay:0s;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;border:0;border-right:1px solid #ddd;line-height:0;margin-bottom:-1px;margin-top:-1px}.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.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-contextual-toolbar{background-color:#fff;display:block;flex-shrink:3;position:sticky;top:0;width:100%;z-index:31}.block-editor-block-contextual-toolbar.components-accessible-toolbar{border:none;border-bottom:1px solid #e0e0e0;border-radius:0}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{overflow:auto;overflow-y:hidden;scrollbar-color:#e0e0e0 #0000;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar{height:12px;width:12px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-track{background-color:initial}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#e0e0e0;border:3px solid #0000;border-radius:8px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover::-webkit-scrollbar-thumb{background-color:#949494}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover{scrollbar-color:#949494 #0000}@media (hover:none){.block-editor-block-contextual-toolbar .block-editor-block-toolbar{scrollbar-color:#949494 #0000}}.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar-group:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child:after{display:none}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group{border-right-color:#e0e0e0}.block-editor-block-contextual-toolbar>.block-editor-block-toolbar{flex-grow:0;width:auto}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector{margin-bottom:-1px;margin-top:-1px;position:relative}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector:after{align-items:center;content:"·";display:inline-flex;font-size:16px;height:32px;position:absolute;right:0;top:0}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin:0!important;width:24px!important}.block-editor-block-toolbar__block-controls .components-toolbar-group{padding:0}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports (position:sticky){.block-editor-block-toolbar__slot{display:inline-flex}}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon{width:auto}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.show-icon-labels .components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.show-icon-labels .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{height:0!important;min-width:0!important;width:0!important}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button{border-bottom-right-radius:0;border-top-right-radius:0;padding-left:12px;padding-right:12px;text-wrap:nowrap}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button .block-editor-block-icon{width:0}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container{position:relative;width:auto}@media (min-width:600px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{background:#e0e0e0;content:"";height:1px;left:50%;margin-top:-.5px;position:absolute;top:50%;transform:translate(-50%);width:100%}}@media (min-width:782px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover-button,.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button{padding-left:8px;padding-right:8px}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-left:1px solid #ddd;margin-left:6px;margin-right:-6px;white-space:nowrap}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon{padding-left:12px;padding-right:12px}.show-icon-labels .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{width:auto}.show-icon-labels .components-toolbar,.show-icon-labels .components-toolbar-group{flex-shrink:1}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button+.components-button{margin-left:6px}.block-editor-inserter{background:none;border:none;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:0;padding:0}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__main-area{display:flex;flex-direction:column;gap:16px;height:100%;overflow-y:hidden;position:relative}.block-editor-inserter__main-area.show-as-tabs{gap:0}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__popover.is-quick .components-popover__content{border:none;box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;outline:none}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*{border-left:1px solid #ccc;border-right:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:first-child{border-radius:2px 2px 0 0;border-top:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:last-child{border-bottom:1px solid #ccc;border-radius:0 0 2px 2px}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>.components-button{border:1px solid #1e1e1e}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs div[role=tablist]{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{height:auto;overflow:visible}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{align-items:center;border:none;cursor:pointer;display:inline-flex;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-delay:0s;transition-duration:0s}}.block-editor-inserter__menu{height:100%;overflow:visible;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:99999}.block-editor-inserter__search{padding:16px 16px 0}.block-editor-inserter__tabs{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.block-editor-inserter__tabs div[role=tablist]{border-bottom:1px solid #ddd}.block-editor-inserter__tabs div[role=tablist] button[role=tab]{flex-grow:1;margin-bottom:-1px}.block-editor-inserter__tabs div[role=tablist] button[role=tab][id$=reusable]{flex-grow:inherit;padding-left:16px;padding-right:16px}.block-editor-inserter__tabs div[role=tabpanel]{display:flex;flex-direction:column;flex-grow:1;overflow-y:auto}.block-editor-inserter__no-tab-container{flex-grow:1;overflow-y:auto}.block-editor-inserter__panel-header{align-items:center;display:inline-flex;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button{color:#757575;font-size:11px;font-weight:500;margin:0 12px 0 0;text-transform:uppercase}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{height:36px;line-height:36px}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:right}.block-editor-inserter__manage-reusable-blocks-container{margin:auto 16px 16px}.block-editor-inserter__manage-reusable-blocks{justify-content:center;width:100%}.block-editor-inserter__no-results{padding:32px;text-align:center}.block-editor-inserter__no-results-icon{fill:#949494}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{align-items:center;display:flex}.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__popover{top:16px!important}.block-editor-inserter__preview-container{display:none;max-height:calc(100% - 32px);overflow-y:hidden;padding:16px;width:280px}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-block-preview__container{height:100%}.block-editor-inserter__preview-container .block-editor-block-card{padding-bottom:4px;padding-left:0;padding-right:0}.block-editor-inserter__patterns-explore-button.components-button{justify-content:center;margin-top:16px;padding:16px;width:100%}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category{color:var(--wp-admin-theme-color);position:relative}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category .components-flex-item{filter:brightness(.95)}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category svg{fill:var(--wp-admin-theme-color)}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;position:absolute;right:0;top:0}.block-editor-inserter__block-patterns-tabs-container,.block-editor-inserter__block-patterns-tabs-container nav{height:100%}.block-editor-inserter__block-patterns-tabs{display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:16px}.block-editor-inserter__block-patterns-tabs div[role=listitem]:last-child{margin-top:auto}.block-editor-inserter__block-patterns-tabs .block-editor-inserter__patterns-category{padding-right:4px}.block-editor-inserter__patterns-category-dialog{background:#f0f0f0;border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;height:100%;left:0;position:absolute;top:0;width:100%}@media (min-width:782px){.block-editor-inserter__patterns-category-dialog{display:block;left:100%;width:300px}}.block-editor-inserter__patterns-category-dialog .block-editor-block-patterns-list{flex-grow:1;height:100%;overflow-y:auto;padding:16px 24px}.block-editor-block-patterns-list__list-item .block-editor-block-preview__container{box-shadow:0 15px 25px #00000012}.block-editor-block-patterns-list__list-item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px #1e1e1e,0 15px 25px #00000012}.block-editor-inserter__patterns-category-panel{display:flex;flex-direction:column;height:100%;padding:0 16px}@media (min-width:782px){.block-editor-inserter__patterns-category-panel{padding:0}}.block-editor-inserter__patterns-category-panel .block-editor-inserter__patterns-category-panel-header{padding:16px 24px}.block-editor-inserter__patterns-category-panel .block-editor-inserter__patterns-category-no-results{margin-top:24px}.block-editor-inserter__preview-content{align-items:center;background:#f0f0f0;display:grid;flex-grow:1;min-height:144px}.block-editor-inserter__preview-content-missing{align-items:center;background:#f0f0f0;border-radius:2px;color:#757575;display:flex;flex:1;justify-content:center;min-height:144px}.block-editor-inserter__tips{border-top:1px solid #ddd;flex-shrink:0;padding:16px;position:relative}.block-editor-inserter__quick-inserter{max-width:100%;width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{float:left;height:0;padding:0}.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-preview__container{min-height:100px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{background:#1e1e1e;border-radius:0;color:#fff;display:block;height:44px;width:100%}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:active{color:#ccc}.block-editor-inserter__quick-inserter-expand.components-button.components-button:focus:not(:disabled){background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);box-shadow:none}.block-editor-block-patterns-explorer__sidebar{bottom:0;left:0;overflow-x:visible;overflow-y:scroll;padding:24px 32px 32px;position:absolute;top:72px;width:280px}.block-editor-block-patterns-explorer__sidebar__categories-list__item{display:block;height:48px;text-align:left;width:100%}.block-editor-block-patterns-explorer__search{margin-bottom:32px}.block-editor-block-patterns-explorer__search-results-count{padding-bottom:32px}.block-editor-block-patterns-explorer__list{margin-left:280px;padding:24px 0 32px}.block-editor-block-patterns-explorer__list .block-editor-patterns__sync-status-filter .components-input-control__container{width:380px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list{display:grid;grid-gap:32px;grid-template-columns:repeat(1,1fr);margin-bottom:16px}@media (min-width:1080px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(2,1fr)}}@media (min-width:1440px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(3,1fr)}}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{min-height:240px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-preview__container{height:inherit;max-height:800px;min-height:100px}.block-editor-inserter__patterns-category-panel-title{font-size:16.25px}.block-editor-inserter__media-tabs-container,.block-editor-inserter__media-tabs-container nav{height:100%}.block-editor-inserter__media-tabs-container .block-editor-inserter__media-library-button{justify-content:center;margin-top:16px;padding:16px;width:100%}.block-editor-inserter__media-tabs{display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:16px}.block-editor-inserter__media-tabs div[role=listitem]:last-child{margin-top:auto}.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category{padding-right:4px}.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category.is-selected{color:var(--wp-admin-theme-color);position:relative}.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category.is-selected .components-flex-item{filter:brightness(.95)}.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category.is-selected svg{fill:var(--wp-admin-theme-color)}.block-editor-inserter__media-tabs .block-editor-inserter__media-tabs__media-category.is-selected:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;position:absolute;right:0;top:0}.block-editor-inserter__media-dialog{background:#f0f0f0;border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;height:100%;left:0;overflow-y:auto;padding:16px 24px;position:absolute;scrollbar-gutter:stable both-edges;top:0;width:100%}@media (min-width:782px){.block-editor-inserter__media-dialog{display:block;left:100%;width:300px}}.block-editor-inserter__media-dialog .block-editor-block-preview__container{box-shadow:0 15px 25px #00000012}.block-editor-inserter__media-dialog .block-editor-block-preview__container:hover{box-shadow:0 0 0 2px #1e1e1e,0 15px 25px #00000012}.block-editor-inserter__media-panel{display:flex;flex-direction:column;min-height:100%;padding:0 16px}@media (min-width:782px){.block-editor-inserter__media-panel{padding:0}}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-spinner{align-items:center;display:flex;flex:1;height:100%;justify-content:center}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search:not(:focus-within){--wp-components-color-background:#fff}.block-editor-inserter__media-list{margin-top:16px}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item{cursor:pointer;margin-bottom:24px;position:relative}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-placeholder{min-height:100px}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item[draggable=true] .block-editor-block-preview__container{cursor:grab}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview{box-shadow:0 0 0 2px #1e1e1e,0 15px 25px #00000012}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options>button{display:block}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options{position:absolute;right:8px;top:8px}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button{background:#fff;border-radius:2px;display:none}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button.is-opened,.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:focus{display:block}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:hover{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-inserter__media-list .block-editor-inserter__media-list__item{height:100%}.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview{align-items:center;border-radius:2px;display:flex;overflow:hidden}.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview>*{margin:0 auto;max-width:100%}.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{align-items:center;background:#ffffffb3;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}.block-editor-inserter__media-list .block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-inserter__media-list__item-preview-options__popover .components-menu-item__button .components-menu-item__item{min-width:auto}.block-editor-inserter__mobile-tab-navigation{height:100%;padding:16px}.block-editor-inserter__mobile-tab-navigation>*{height:100%}@media (min-width:600px){.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal{max-width:480px}}.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal p{margin:0}.block-editor-inserter__hint{margin:16px 16px 0}.reusable-blocks-menu-items__rename-hint{align-items:top;background:#f0f0f0;border-radius:2px;color:#1e1e1e;display:flex;flex-direction:row;max-width:380px}.reusable-blocks-menu-items__rename-hint-content{margin:12px 0 12px 12px}.reusable-blocks-menu-items__rename-hint-dismiss{margin:4px 4px 4px 0}.components-menu-group .reusable-blocks-menu-items__rename-hint{margin:0}.block-editor-patterns__sync-status-filter .components-input-control__container select.components-select-control__input{height:40px}.spacing-sizes-control .spacing-sizes-control__custom-value-input,.spacing-sizes-control .spacing-sizes-control__label{margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range,.spacing-sizes-control .spacing-sizes-control__range-control{align-items:center;display:flex;flex:1;height:40px;margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range>.components-base-control__field,.spacing-sizes-control .spacing-sizes-control__range-control>.components-base-control__field{flex:1}.spacing-sizes-control .components-range-control__mark{background-color:#fff;height:4px;width:3px;z-index:1}.spacing-sizes-control .components-range-control__marks{margin-top:17px}.spacing-sizes-control .components-range-control__marks :first-child{display:none}.spacing-sizes-control .components-range-control__thumb-wrapper{z-index:3}.spacing-sizes-control__header{height:16px;margin-bottom:12px}.spacing-sizes-control__dropdown{height:24px}.spacing-sizes-control__custom-select-control,.spacing-sizes-control__custom-value-input{flex:1}.spacing-sizes-control__custom-toggle,.spacing-sizes-control__icon{flex:0 0 auto}.spacing-sizes-control__icon{margin-left:-4px}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-autocompleters__block{white-space:nowrap}.block-editor-autocompleters__block .block-editor-block-icon{margin-right:8px}.block-editor-autocompleters__link{white-space:nowrap}.block-editor-autocompleters__link .block-editor-block-icon{margin-right:8px}.block-editor-block-alignment-control__menu-group .components-menu-item__info{margin-top:0}iframe[name=editor-canvas]{background-color:initial;box-sizing:border-box;display:block;height:100%;width:100%}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-inspector p:not(.components-base-control__help){margin-top:0}.block-editor-block-inspector h2,.block-editor-block-inspector h3{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.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-focal-point-picker-control .components-base-control,.block-editor-block-inspector .components-query-controls .components-base-control,.block-editor-block-inspector .components-range-control .components-base-control{margin-bottom:0}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e0e0e0;margin-top:-1px}.block-editor-block-inspector__no-block-tools,.block-editor-block-inspector__no-blocks{background:#fff;display:block;font-size:13px;padding:32px 16px;text-align:center}.block-editor-block-inspector__no-block-tools{border-top:1px solid #ddd}.block-editor-block-inspector__tab-item{flex:1 1 0px}.block-editor-block-list__insertion-point{bottom:0;left:0;position:absolute;right:0;top:0}.block-editor-block-list__insertion-point-indicator{background:var(--wp-admin-theme-color);border-radius:2px;opacity:0;position:absolute;transform-origin:center;will-change:transform,opacity}.block-editor-block-list__insertion-point.is-vertical>.block-editor-block-list__insertion-point-indicator{height:4px;top:calc(50% - 2px);width:100%}.block-editor-block-list__insertion-point.is-horizontal>.block-editor-block-list__insertion-point-indicator{bottom:0;left:calc(50% - 2px);top:0;width:4px}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;left:calc(50% - 12px);position:absolute;top:calc(50% - 12px);will-change:transform}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div{pointer-events:none}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div>*{pointer-events:all}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:#1e1e1e}.block-editor-block-list__block-selection-button{background-color:#1e1e1e;border-radius:2px;display:inline-flex;font-size:13px;height:48px;padding:0 12px;z-index:22}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content{align-items:center;display:inline-flex;margin:auto}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content>.components-flex__item{margin-right:6px}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle{cursor:grab;height:24px;margin-left:-2px;min-width:24px;padding:0}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle svg{min-height:18px;min-width:18px}.block-editor-block-list__block-selection-button .block-editor-block-icon{color:#fff;font-size:13px;height:48px}.block-editor-block-list__block-selection-button .components-button{color:#fff;display:flex;height:48px;min-width:36px}.block-editor-block-list__block-selection-button .components-button:focus{border:none;box-shadow:none}.block-editor-block-list__block-selection-button .components-button:active,.block-editor-block-list__block-selection-button .components-button[aria-disabled=true]:hover{color:#fff}.block-editor-block-list__block-selection-button .block-selection-button_select-button.components-button{padding:0}.block-editor-block-list__block-selection-button .block-editor-block-mover{background:unset;border:none}@keyframes hide-during-dragging{to{position:fixed;transform:translate(9999px,9999px)}}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .block-editor-block-list__block-selection-button{margin-bottom:8px;margin-top:8px;pointer-events:all}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;overflow:visible;position:static;width:auto}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-left:56px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-left:0}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar{overflow:visible}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar,.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar-group{border-right-color:#1e1e1e}.components-popover.block-editor-block-list__block-popover.is-insertion-point-visible{visibility:hidden}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{animation:hide-during-dragging 1ms linear forwards;opacity:0}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{left:-57px;position:absolute}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector:before{content:""}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{background-color:#fff;border:1px solid #1e1e1e;padding-left:6px;padding-right:6px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{padding-left:12px;padding-right:12px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{left:auto;margin-left:-1px;position:relative}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-mover__move-button-container,.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-left:1px solid #1e1e1e}.is-dragging-components-draggable .components-tooltip{display:none}.components-popover.block-editor-block-popover__inbetween .block-editor-button-pattern-inserter__button{left:50%;pointer-events:all;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%)}.block-editor-block-lock-modal{z-index:1000001}@media (min-width:600px){.block-editor-block-lock-modal .components-modal__frame{max-width:480px}}.block-editor-block-lock-modal__checklist{margin:0}.block-editor-block-lock-modal__options-title{padding:12px 0}.block-editor-block-lock-modal__options-title .components-checkbox-control__label{font-weight:600}.block-editor-block-lock-modal__checklist-item{align-items:center;display:flex;gap:12px;justify-content:space-between;margin-bottom:0;padding:12px 0 12px 32px}.block-editor-block-lock-modal__checklist-item .block-editor-block-lock-modal__lock-icon{flex-shrink:0;margin-right:12px;fill:#1e1e1e}.block-editor-block-lock-modal__checklist-item:hover{background-color:#f0f0f0;border-radius:2px}.block-editor-block-lock-modal__template-lock{border-top:1px solid #ddd;margin-top:16px;padding:12px 0}.block-editor-block-lock-modal__actions{margin-top:24px}.block-editor-block-lock-toolbar .components-button.has-icon{min-width:36px!important}.block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{margin-left:-6px!important}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{border-left:1px solid #1e1e1e;margin-left:6px!important;margin-right:-6px}.block-editor-block-breadcrumb{list-style:none;margin:0;padding:0}.block-editor-block-breadcrumb li{display:inline-flex;margin:0}.block-editor-block-breadcrumb li .block-editor-block-breadcrumb__separator{fill:currentColor;margin-left:-4px;margin-right:-4px;transform:scaleX(1)}.block-editor-block-breadcrumb li:last-child .block-editor-block-breadcrumb__separator{display:none}.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){box-shadow:none;text-decoration:underline}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{border-radius:2px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:1px;outline:2px solid #0000;position:absolute;right:1px;top:1px}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;font-size:inherit;padding:0 8px}.block-editor-block-card{align-items:flex-start;color:#1e1e1e;display:flex;padding:16px}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{font-size:13px;line-height:1.4;margin:0;padding:3px 0}.block-editor-block-card .block-editor-block-icon{flex:0 0 24px;height:24px;margin-left:0;margin-right:12px;width:24px}.block-editor-block-card.is-synced .block-editor-block-icon{color:var(--wp-block-synced-color)}.block-editor-block-compare{height:auto}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;flex-direction:column;justify-content:space-between;max-width:600px;min-width:200px;padding:0 16px 0 0;width:50%}.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{border-bottom:1px solid #ddd;color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:12px;line-height:1.7;padding-bottom:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-bottom:3px;padding-top: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:#cc1818}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:16px 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:16px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{left:0;position:absolute;top:-24px}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;box-shadow:0 6px 8px #0000004d;color:#fff;cursor:grabbing;display:inline-flex;height:48px;padding:0 13px;position:relative;-webkit-user-select:none;user-select:none;width:max-content}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{justify-content:flex-start;margin:auto}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item{margin-right:6px}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item:last-child{margin-right:0}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content .block-editor-block-icon svg{min-height:18px;min-width:18px}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{align-items:center;background-color:initial;bottom:0;display:flex;justify-content:center;left:0;opacity:0;position:absolute;right:0;top:0;transition:all .1s linear .1s}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled .block-editor-block-draggable-chip__disabled-icon{background:#0000 linear-gradient(-45deg,#0000 47.5%,#fff 0,#fff 52.5%,#0000 0);border-radius:50%;box-shadow:inset 0 0 0 1.5px #fff;display:inline-block;height:20px;padding:0;width:20px}.block-draggable-invalid-drag-token .block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{background-color:#757575;box-shadow:0 4px 8px #0003;opacity:1}.block-editor-block-mover__move-button-container{border:none;display:flex;justify-content:center;padding:0}@media (min-width:600px){.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{flex-direction:column}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>*{height:20px;min-width:0!important;width:100%}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>:before{height:calc(100% - 4px)}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{flex-shrink:0;top:3px}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{bottom:3px;flex-shrink:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{width:48px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container>*{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button{padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{left:5px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{right:5px}}.block-editor-block-mover__drag-handle{cursor:grab}@media (min-width:600px){.block-editor-block-mover__drag-handle{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon.has-icon{padding-left:0;padding-right:0}}.components-button.block-editor-block-mover-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards;border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-mover-button:before{animation-delay:0s;animation-duration:1ms}}.components-button.block-editor-block-mover-button:focus,.components-button.block-editor-block-mover-button:focus:before,.components-button.block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.components-button.block-editor-block-mover-button:focus-visible:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-block-navigation__container{min-width:280px}.block-editor-block-navigation__label{color:#757575;font-size:11px;font-weight:500;margin:0 0 12px;text-transform:uppercase}.block-editor-block-patterns-list__list-item{cursor:pointer;margin-bottom:16px;position:relative}.block-editor-block-patterns-list__list-item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__list-item[draggable=true]{cursor:grab}.block-editor-block-patterns-list__item{height:100%;scroll-margin-bottom:56px;scroll-margin-top:24px}.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{flex-grow:1;font-size:12px;text-align:left}.block-editor-block-patterns-list__item .block-editor-block-preview__container{align-items:center;border-radius:2px;display:flex;overflow:hidden}.block-editor-block-patterns-list__item .block-editor-block-preview__container:after{border-radius:2px;outline:1px solid #0000001a;outline-offset:-1px}.block-editor-block-patterns-list__item:hover:not(:focus) .block-editor-block-preview__container:after{outline-color:#0000004d}.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container:after{outline-color:var(--wp-admin-theme-color);outline-offset:calc(-1*var(--wp-admin-border-width-focus));outline-width:var(--wp-admin-border-width-focus);transition:outline .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container:after{transition-delay:0s;transition-duration:0s}}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-details:not(:empty){align-items:center;margin-top:8px;padding-bottom:4px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper{height:24px;min-width:24px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper .block-editor-patterns__pattern-icon{fill:var(--wp-block-synced-color)}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination{border-top:1px solid #2f2f2f;justify-content:center;padding:4px}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:auto}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination .components-button.is-tertiary:disabled{background:none;color:#949494}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination .components-button.is-tertiary:hover:not(:disabled){background-color:#757575;color:#fff}.show-icon-labels .block-editor-patterns__grid-pagination,.show-icon-labels .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next,.show-icon-labels .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous{flex-direction:column}.show-icon-labels .block-editor-patterns__grid-pagination .components-button{width:auto}.show-icon-labels .block-editor-patterns__grid-pagination .components-button span{display:none}.show-icon-labels .block-editor-patterns__grid-pagination .components-button:before{content:attr(aria-label)}.components-popover.block-editor-block-popover{margin:0!important;pointer-events:none;position:absolute;z-index:31}.components-popover.block-editor-block-popover .components-popover__content{margin:0!important;min-width:auto;overflow-y:visible;width:max-content}.components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween,.block-editor-block-popover__drop-zone,.block-editor-block-list__block-side-inserter-popover) .components-popover__content *{pointer-events:all}.components-popover.block-editor-block-popover__inbetween,.components-popover.block-editor-block-popover__inbetween *{pointer-events:none}.components-popover.block-editor-block-popover__inbetween .is-with-inserter,.components-popover.block-editor-block-popover__inbetween .is-with-inserter *{pointer-events:all}.components-popover.block-editor-block-popover__drop-zone *{pointer-events:none}.components-popover.block-editor-block-popover__drop-zone .block-editor-block-popover__drop-zone-foreground{background-color:var(--wp-admin-theme-color);border-radius:2px;inset:0;position:absolute}.block-editor-block-preview__container{overflow:hidden;position:relative;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content{left:0;margin:0;min-height:auto;overflow:visible;text-align:initial;top:0;transform-origin:top left;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender{display:none}.block-editor-block-preview__container:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.block-editor-block-rename-modal{z-index:1000001}.block-editor-block-styles__preview-panel{display:none;z-index:90}@media (min-width:782px){.block-editor-block-styles__preview-panel{display:block}}.block-editor-block-styles__preview-panel .block-editor-block-icon{display:none}.block-editor-block-styles__variants{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item{box-shadow:inset 0 0 0 1px #ddd;color:#1e1e1e;display:inline-block;width:calc(50% - 4px)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:hover{box-shadow:inset 0 0 0 1px #ddd;color:var(--wp-admin-theme-color)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover{background-color:#1e1e1e;box-shadow:none}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active .block-editor-block-styles__item-text,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover .block-editor-block-styles__item-text{color:#fff}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-block-styles__variants .block-editor-block-styles__item-text{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-editor-block-styles__block-preview-container,.block-editor-block-styles__block-preview-container *{box-sizing:border-box!important}.block-editor-block-switcher{position:relative}.block-editor-block-switcher .components-button.components-dropdown-menu__toggle.has-icon.has-icon{min-width:36px}.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{display:block;height:48px;margin:0}.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}.block-editor-block-switcher__toggle-text{margin-left:8px}.show-icon-labels .block-editor-block-switcher__toggle-text{display:none}.components-button.block-editor-block-switcher__no-switcher-icon{display:flex}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin-left:auto;margin-right:auto;min-width:24px!important}.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}.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,.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{align-items:center;display:flex;height:100%;margin:0 auto;min-width:100%;position:relative}.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,.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{bottom:8px;left:8px;right:8px;top:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container{left:calc(100% + 16px);position:absolute;top:-12px}.block-editor-block-switcher__preview__popover{display:none;overflow:hidden}.block-editor-block-switcher__preview__popover.components-popover{margin-top:11px}@media (min-width:782px){.block-editor-block-switcher__preview__popover{display:block}}.block-editor-block-switcher__preview__popover .components-popover__content{background:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:none;outline:none;overflow:auto;width:300px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview{margin:16px 0;max-height:468px;overflow:hidden;padding:0 16px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview.is-pattern-list-preview{overflow:unset}.block-editor-block-switcher__preview-title{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;text-transform:uppercase}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{min-width:36px}.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 .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{height:48px;width: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-switcher__preview-patterns-container{padding-bottom:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item{margin-top:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container{cursor:pointer}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{border:1px solid #0000;border-radius:2px;height:100%;position:relative;transition:all .05s ease-in-out}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:focus,.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item .block-editor-block-switcher__preview-patterns-container-list__item-title{cursor:pointer;font-size:12px;padding:4px;text-align:center}.block-editor-block-switcher__no-transforms{color:#757575;margin:0;padding:6px 8px}.block-editor-block-switcher__binding-indicator{display:block;padding:8px}.block-editor-block-types-list>[role=presentation]{display:flex;flex-wrap:wrap;overflow:hidden}.block-editor-block-pattern-setup{align-items:flex-start;border-radius:2px;display:flex;flex-direction:column;justify-content:center;width:100%}.block-editor-block-pattern-setup.view-mode-grid{padding-top:4px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__toolbar{justify-content:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-count:2;column-gap:24px;display:block;padding:0 32px;width:100%}@media (min-width:1440px){.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-count:3}}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button]{cursor:pointer}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item{scroll-margin:5px 0}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:2px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-pattern-setup-list__item-title,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-pattern-setup-list__item-title{color:var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item{break-inside:avoid-column;margin-bottom:24px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title{cursor:pointer;font-size:12px;padding-top:8px;text-align:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__container{border:1px solid #ddd;border-radius:2px;min-height:100px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__content{width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar{align-items:center;align-self:stretch;background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:row;height:60px;justify-content:space-between;margin:0;padding:16px;position:absolute;text-align:left;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__display-controls{display:flex}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions,.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__navigation{display:flex;width:calc(50% - 36px)}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions{justify-content:flex-end}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container{box-sizing:border-box;display:flex;flex-direction:column;height:100%;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container{height:100%;list-style:none;margin:0;overflow:hidden;padding:0;position:relative;transform-style:preserve-3d}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container *{box-sizing:border-box}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{background-color:#fff;height:100%;margin:auto;padding:0;position:absolute;top:0;transition:transform .5s,z-index .5s;width:100%;z-index:100}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.active-slide{opacity:1;position:relative;z-index:102}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.previous-slide{transform:translateX(-100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.next-slide{transform:translateX(100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .block-list-appender{display:none}.block-editor-block-pattern-setup__carousel,.block-editor-block-pattern-setup__grid{width:100%}.block-editor-block-variation-transforms{padding:0 16px 16px 52px;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle{border:1px solid #757575;border-radius:2px;justify-content:left;min-height:30px;padding:6px 12px;position:relative;text-align:left;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle.components-dropdown-menu__toggle{padding-right:24px}.block-editor-block-variation-transforms .components-dropdown-menu__toggle:focus:not(:disabled){border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 calc(var(--wp-admin-border-width-focus) - 1px) var(--wp-admin-theme-color)}.block-editor-block-variation-transforms .components-dropdown-menu__toggle svg{height:100%;padding:0;position:absolute;right:0;top:0}.block-editor-block-variation-transforms__popover .components-popover__content{min-width:230px}.components-border-radius-control{margin-bottom:12px}.components-border-radius-control legend{margin-bottom:8px}.components-border-radius-control .components-border-radius-control__wrapper{align-items:flex-start;display:flex;justify-content:space-between}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__unit-control{flex-shrink:0;margin-bottom:0;margin-right:16px;width:calc(50% - 8px)}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control{flex:1;margin-right:12px}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control>div{align-items:center;display:flex;height:40px}.components-border-radius-control .components-border-radius-control__wrapper>span{flex:0 0 auto}.components-border-radius-control .components-border-radius-control__input-controls-wrapper{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr));margin-right:12px}.components-border-radius-control .component-border-radius-control__linked-button{display:flex;justify-content:center;margin-top:8px}.components-border-radius-control .component-border-radius-control__linked-button svg{margin-right:0}.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control__fieldset{min-width:0}.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings,.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings>div:not(:first-of-type){display:block}@media screen and (min-width:782px){.block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches{display:grid;grid-template-columns:repeat(6,28px)}}.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control{margin-bottom:inherit}.block-editor-panel-color-gradient-settings__dropdown-content .block-editor-color-gradient-control__panel{padding:16px;width:260px}.block-editor-panel-color-gradient-settings__color-indicator{background:linear-gradient(-45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0)}.block-editor-tools-panel-color-gradient-settings__item{border-bottom:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #ddd;max-width:100%;padding:0}.block-editor-tools-panel-color-gradient-settings__item:nth-child(1 of .block-editor-tools-panel-color-gradient-settings__item){border-top:1px solid #ddd;border-top-left-radius:2px;border-top-right-radius:2px;margin-top:24px}.block-editor-tools-panel-color-gradient-settings__item:nth-last-child(1 of .block-editor-tools-panel-color-gradient-settings__item){border-bottom-left-radius:2px;border-bottom-right-radius:2px}.block-editor-tools-panel-color-gradient-settings__item>div,.block-editor-tools-panel-color-gradient-settings__item>div>button{border-radius:inherit}.block-editor-tools-panel-color-gradient-settings__dropdown{display:block;padding:0}.block-editor-tools-panel-color-gradient-settings__dropdown>button{height:auto;padding-bottom:10px;padding-top:10px;text-align:left}.block-editor-tools-panel-color-gradient-settings__dropdown>button.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.block-editor-tools-panel-color-gradient-settings__dropdown .block-editor-panel-color-gradient-settings__color-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-panel-color-gradient-settings__dropdown{width:100%}.block-editor-panel-color-gradient-settings__dropdown .component-color-indicator{flex-shrink:0}.block-editor-date-format-picker{margin-bottom:16px}.block-editor-date-format-picker__custom-format-select-control__custom-option{border-top:1px solid #ddd}.block-editor-date-format-picker__custom-format-select-control__custom-option.has-hint{grid-template-columns:auto 30px}.block-editor-date-format-picker__custom-format-select-control__custom-option .components-custom-select-control__item-hint{grid-row:2;text-align:left}.block-editor-duotone-control__popover>.components-popover__content{padding:16px;width:260px}.block-editor-duotone-control__popover .components-menu-group__label{padding:0}.block-editor-duotone-control__popover .components-circular-option-picker__swatches{display:grid;gap:12px;grid-template-columns:repeat(6,28px);justify-content:space-between}.block-editor-duotone-control__unset-indicator{background:linear-gradient(-45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0)}.components-font-appearance-control ul li{color:#1e1e1e;text-transform:capitalize}.block-editor-global-styles__toggle-icon{fill:currentColor}.block-editor-global-styles__shadow-popover-container{width:230px}.block-editor-global-styles__shadow__list{display:flex;flex-wrap:wrap;gap:12px;padding-bottom:8px}.block-editor-global-styles__clear-shadow{text-align:right}.block-editor-global-styles-filters-panel__dropdown,.block-editor-global-styles__shadow-dropdown{display:block;padding:0}.block-editor-global-styles-filters-panel__dropdown button,.block-editor-global-styles__shadow-dropdown button{padding:8px;width:100%}.block-editor-global-styles-filters-panel__dropdown button.is-open,.block-editor-global-styles__shadow-dropdown button.is-open{background-color:#f0f0f0}.block-editor-global-styles__shadow-indicator{border:1px solid #e0e0e0;border-radius:2px;box-sizing:border-box;color:#2f2f2f;cursor:pointer;height:26px;padding:0;transform:scale(1);transition:transform .1s ease;width:26px;will-change:transform}.block-editor-global-styles__shadow-indicator:focus{border:2px solid #757575}.block-editor-global-styles__shadow-indicator:hover{transform:scale(1.2)}.block-editor-global-styles__shadow-indicator.unset{background:linear-gradient(-45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0)}.block-editor-global-styles-advanced-panel__custom-css-input textarea{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}.block-editor-global-styles-background-panel__inspector-media-replace-container{position:relative}.block-editor-global-styles-background-panel__inspector-media-replace-container .components-drop-zone__content-icon{display:none}.block-editor-global-styles-background-panel__inspector-media-replace-container button.components-button{box-shadow:inset 0 0 0 1px #ccc;color:#1e1e1e;display:block;height:40px;width:100%}.block-editor-global-styles-background-panel__inspector-media-replace-container button.components-button:hover{color:var(--wp-admin-theme-color)}.block-editor-global-styles-background-panel__inspector-media-replace-container button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__inspector-media-replace-title{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown{display:block}.block-editor-global-styles-background-panel__inspector-image-indicator-wrapper{background:#fff;display:block;flex:none;height:20px;width:20px}.block-editor-global-styles-background-panel__inspector-image-indicator{background-size:cover;border-radius:50%;display:block;height:20px;position:relative;width:20px}.block-editor-global-styles-background-panel__inspector-image-indicator:after{border:1px solid #0000;border-radius:50%;bottom:-1px;box-shadow:inset 0 0 0 1px #0003;box-sizing:inherit;content:"";left:-1px;position:absolute;right:-1px;top:-1px}.block-editor-grid-visualizer{z-index:30!important}.block-editor-grid-visualizer .components-popover__content *{pointer-events:none!important}.block-editor-grid-visualizer__grid{display:grid}.block-editor-grid-visualizer__item{border-radius:2px;outline:1px solid #0000}.block-editor-grid-item-resizer{z-index:30!important}.block-editor-grid-item-resizer .components-popover__content *{pointer-events:none!important}.block-editor-grid-item-resizer__box{border:1px solid var(--wp-admin-theme-color)}.block-editor-grid-item-resizer__box .components-resizable-box__handle{pointer-events:all!important}.block-editor-height-control{border:0;margin:0;padding:0}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__width{margin-bottom:1.115em}.block-editor-block-types-list__list-item{display:block;margin:0;padding:0;width:33.33%}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled) .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-block-synced-color)!important;filter:brightness(.95)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-block-synced-color)!important}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):after{background:var(--wp-block-synced-color)}.components-button.block-editor-block-types-list__item{align-items:stretch;background:#0000;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;flex-direction:column;font-size:13px;height:auto;justify-content:center;padding:8px;position:relative;transition:all .05s ease-in-out;width:100%;word-break:break-word}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-delay:0s;transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{cursor:default;opacity:.6}.components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-admin-theme-color)!important;filter:brightness(.95)}.components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled):hover:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;pointer-events:none;position:absolute;right:0;top:0}.components-button.block-editor-block-types-list__item:not(:disabled):focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{background:#1e1e1e;color:#fff;outline:2px solid #0000;outline-offset:-2px}.block-editor-block-types-list__item-icon{border-radius:2px;color:#1e1e1e;padding:12px 20px;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-delay:0s;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-delay:0s;transition-duration:0s}}.block-editor-block-types-list__list-item[draggable=true] .block-editor-block-types-list__item-icon{cursor:grab}.block-editor-block-types-list__item-title{font-size:12px;padding:4px 2px 8px}.show-icon-labels .block-editor-block-inspector__tabs [role=tablist] .components-button{justify-content:center}.block-editor-inspector-controls-tabs__hint{align-items:flex-start;background:#f0f0f0;border-radius:2px;color:#1e1e1e;display:flex;flex-direction:row;font-size:13px;margin:16px}.block-editor-inspector-controls-tabs__hint-content{margin:12px 0 12px 12px}.block-editor-inspector-controls-tabs__hint-dismiss{margin:4px 4px 4px 0}.block-editor-inspector-popover-header{margin-bottom:16px}[class].block-editor-inspector-popover-header__action{height:24px}[class].block-editor-inspector-popover-header__action.has-icon{min-width:24px;padding:0}[class].block-editor-inspector-popover-header__action:not(.has-icon){text-decoration:underline}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}@keyframes loadingpulse{0%{opacity:1}50%{opacity:0}to{opacity:1}}.block-editor-link-control{min-width:350px;position:relative}.components-popover__content .block-editor-link-control{max-width:350px;min-width:auto;width:90vw}.show-icon-labels .block-editor-link-control .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-link-control .components-button.has-icon:before{content:attr(aria-label)}.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top{flex-wrap:wrap;gap:4px}.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top .components-button.has-icon{padding:4px;width:auto}.show-icon-labels .block-editor-link-control .is-preview .block-editor-link-control__search-item-header{margin-right:0;min-width:100%}.block-editor-link-control__search-input-wrapper{margin-bottom:8px;position:relative}.block-editor-link-control__search-input-container,.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control__field{margin:16px}.block-editor-link-control__field .components-base-control__label{color:#1e1e1e}.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:40px;line-height:normal;margin:0;padding:8px 40px 8px 16px;position:relative;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{font-size:13px;line-height:normal}}.block-editor-link-control__field input[type=text]:focus,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-link-control__field input[type=text]::-webkit-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-webkit-input-placeholder{color:#1e1e1e9e}.block-editor-link-control__field input[type=text]::-moz-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-moz-placeholder{color:#1e1e1e9e;opacity:1}.block-editor-link-control__field input[type=text]:-ms-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:-ms-input-placeholder{color:#1e1e1e9e}.has-actions .block-editor-link-control__field input[type=text],.has-actions .block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{padding-right:16px}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-enter{position:absolute;right:19px;top:3px}.block-editor-link-control__search-actions{padding:8px 16px 16px}.block-editor-link-control__search-results-wrapper{position:relative}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";display:block;left:-1px;pointer-events:none;position:absolute;right:16px;z-index:100}.block-editor-link-control__search-results-wrapper:before{bottom:auto;height:8px;top:0}.block-editor-link-control__search-results-wrapper:after{bottom:0;height:16px;top:auto}.block-editor-link-control__search-results{margin-top:-16px;max-height:200px;overflow-y:auto;padding:8px}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item.components-button.components-menu-item__button{height:auto;text-align:left}.block-editor-link-control__search-item .components-menu-item__item{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.block-editor-link-control__search-item .components-menu-item__item mark{background-color:initial;color:inherit;font-weight:600}.block-editor-link-control__search-item .components-menu-item__shortcut{color:#757575;text-transform:capitalize;white-space:nowrap}.block-editor-link-control__search-item[aria-selected]{background:#f0f0f0}.block-editor-link-control__search-item.is-current{background:#0000;border:0;cursor:default;flex-direction:column;padding:16px;width:100%}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{align-items:center;display:block;flex-direction:row;gap:8px;margin-right:8px;overflow-wrap:break-word;white-space:pre-wrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-header .block-editor-link-control__search-item-info{color:#757575;font-size:12px;line-height:1.1;word-break:break-all}.block-editor-link-control__search-item.is-preview .block-editor-link-control__search-item-header{display:flex;flex:1}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-header{align-items:center}.block-editor-link-control__search-item.is-url-title .block-editor-link-control__search-item-title{word-break:break-all}.block-editor-link-control__search-item .block-editor-link-control__search-item-details{display:flex;flex-direction:column;gap:4px;justify-content:space-between}.block-editor-link-control__search-item .block-editor-link-control__search-item-header .block-editor-link-control__search-item-icon{background-color:#f0f0f0;border-radius:2px;height:32px;width:32px}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{align-items:center;display:flex;flex-shrink:0;justify-content:center;position:relative}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon img{width:16px}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-icon{max-height:32px;top:0;width:32px}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{border-radius:2px;line-height:1.1}.block-editor-link-control__search-item .block-editor-link-control__search-item-title:focus{box-shadow:none}.block-editor-link-control__search-item .block-editor-link-control__search-item-title:focus-visible{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000;text-decoration:none}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{background-color:initial;color:inherit;font-weight:600}.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-title .components-external-link__icon{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0}.block-editor-link-control__search-item-top{align-items:center;display:flex;flex-direction:row;width:100%}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon img,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon svg{opacity:0}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon:before{animation:loadingpulse 1s linear infinite;animation-delay:.5s;background-color:#f0f0f0;border-radius:100%;bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}.block-editor-link-control__loading{align-items:center;display:flex;margin:16px}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{overflow:visible;padding:12px 16px}.components-button+.block-editor-link-control__search-create:before{content:"";display:block;left:0;position:absolute;top:-10px;width:100%}.block-editor-link-control__search-create{align-items:center}.block-editor-link-control__search-create .block-editor-link-control__search-item-title{margin-bottom:0}.block-editor-link-control__search-create .block-editor-link-control__search-item-icon{top:0}.block-editor-link-control__drawer-inner{display:flex;flex-basis:100%;flex-direction:column;position:relative}.block-editor-link-control__setting{flex:1;margin-bottom:0;padding:8px 0 8px 24px}.block-editor-link-control__setting .components-base-control__field{display:flex}.block-editor-link-control__setting .components-base-control__field .components-checkbox-control__label{color:#1e1e1e}.block-editor-link-control__setting input{margin-left:0}.is-preview .block-editor-link-control__setting{padding:20px 8px 8px 0}.block-editor-link-control__tools{margin-top:-16px;padding:8px 8px 0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle{gap:0;padding-left:0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true]{color:#1e1e1e}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transform:rotate(90deg);transition:transform .1s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transition-delay:0s;transition-duration:0s}}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transform:rotate(0deg);transition:transform .1s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transition-delay:0s;transition-duration:0s}}.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{bottom:auto;left:auto;position:absolute;right:40px;top:calc(50% - 8px)}.block-editor-link-control .block-editor-link-control__search-input-wrapper.has-actions .components-spinner{right:12px;top:calc(50% + 4px)}.block-editor-list-view-tree{border-collapse:collapse;margin:0;padding:0;width:100%}.components-modal__content .block-editor-list-view-tree{margin:-12px -6px 0;width:calc(100% + 12px)}.block-editor-list-view-tree.is-dragging tbody{pointer-events:none}.block-editor-list-view-leaf{position:relative;transform:translateY(0)}.block-editor-list-view-leaf.is-draggable,.block-editor-list-view-leaf.is-draggable .block-editor-list-view-block-contents{cursor:grab}.block-editor-list-view-leaf .block-editor-list-view-block-select-button[aria-expanded=true]{color:inherit}.block-editor-list-view-leaf .block-editor-list-view-block-select-button:hover{color:var(--wp-admin-theme-color)}.is-dragging-components-draggable .block-editor-list-view-leaf:not(.is-selected) .block-editor-list-view-block-select-button:hover{color:inherit}.block-editor-list-view-leaf.is-selected td{background:var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced td{background:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:hover{color:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents,.block-editor-list-view-leaf.is-selected .components-button.has-icon{color:#fff}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-list-view-leaf.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-last-selected td:first-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-last-selected td:last-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.block-editor-list-view-leaf.is-synced-branch.is-branch-selected{background:rgba(var(--wp-block-synced-color--rgb),.04)}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:first-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:last-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected) td{border-radius:0}.block-editor-list-view-leaf.is-displacement-normal{transform:translateY(0);transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-displacement-normal{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-displacement-up{transform:translateY(-32px);transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-displacement-up{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-displacement-down{transform:translateY(32px);transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-displacement-down{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-after-dragged-blocks{transform:translateY(calc(var(--wp-admin--list-view-dragged-items-height, 32px)*-1));transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-after-dragged-blocks{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transform:translateY(calc(-32px + var(--wp-admin--list-view-dragged-items-height, 32px)*-1));transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transform:translateY(calc(32px + var(--wp-admin--list-view-dragged-items-height, 32px)*-1));transition:transform .2s}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf.is-dragging{left:0;opacity:0;pointer-events:none;z-index:-9999}.block-editor-list-view-leaf .block-editor-list-view-block-contents{align-items:center;border-radius:2px;display:flex;height:32px;padding:6px 4px 6px 0;position:relative;text-align:left;white-space:nowrap;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-contents.is-dropping-before:before{border-top:4px solid var(--wp-admin-theme-color);content:"";left:0;pointer-events:none;position:absolute;right:0;top:-2px;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear}.components-modal__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{padding-left:0;padding-right:0}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents{box-shadow:none}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:0;pointer-events:none;position:absolute;right:-29px;top:0;z-index:2}.block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus:after{right:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu:focus,.block-editor-list-view-leaf.is-nesting .block-editor-list-view__menu{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);z-index:1}.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards;opacity:1}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation-delay:0s;animation-duration:1ms}}.block-editor-list-view-leaf .block-editor-block-icon{flex:0 0 24px;margin-right:4px}.block-editor-list-view-leaf .block-editor-list-view-block__contents-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{padding:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{line-height:0;vertical-align:middle;width:36px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell>*{opacity:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:hover>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:hover>*{opacity:1}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell .components-button.has-icon{min-width:24px;padding:0;width:24px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell{padding-right:4px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon{height:24px}.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell-alignment-wrapper{align-items:center;display:flex;flex-direction:column;height:100%}.block-editor-list-view-leaf .block-editor-block-mover-button{height:24px;position:relative;width:36px}.block-editor-list-view-leaf .block-editor-block-mover-button svg{height:24px;position:relative}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end;margin-top:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start;margin-bottom:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button:before{height:16px;left:0;min-width:100%;right:0}.block-editor-list-view-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 6px 6px 1px;min-width:24px}.block-editor-list-view-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper svg{left:2px;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title{flex:1;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title .components-truncate{position:absolute;transform:translateY(-50%);width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor-wrapper{max-width:min(110px,40%);position:relative;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor{background:#0000001a;border-radius:2px;box-sizing:border-box;max-width:100%;padding:2px 6px;position:absolute;right:0;transform:translateY(-50%)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor{background:#0000004d}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__lock{line-height:0}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__images{display:flex}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image{background-size:cover;border-radius:2px;height:18px;width:18px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px #fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:first-child){margin-left:-6px}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-list-view-draggable-chip{opacity:.8}.block-editor-list-view-appender__cell .block-editor-list-view-appender__container,.block-editor-list-view-appender__cell .block-editor-list-view-block__contents-container,.block-editor-list-view-block__contents-cell .block-editor-list-view-appender__container,.block-editor-list-view-block__contents-cell .block-editor-list-view-block__contents-container{display:flex}.block-editor-list-view__expander{cursor:pointer;height:24px;width:24px}.block-editor-list-view-leaf[aria-level] .block-editor-list-view__expander{margin-left:192px}.block-editor-list-view-leaf[aria-level="1"] .block-editor-list-view__expander{margin-left:0}.block-editor-list-view-leaf[aria-level="2"] .block-editor-list-view__expander{margin-left:24px}.block-editor-list-view-leaf[aria-level="3"] .block-editor-list-view__expander{margin-left:48px}.block-editor-list-view-leaf[aria-level="4"] .block-editor-list-view__expander{margin-left:72px}.block-editor-list-view-leaf[aria-level="5"] .block-editor-list-view__expander{margin-left:96px}.block-editor-list-view-leaf[aria-level="6"] .block-editor-list-view__expander{margin-left:120px}.block-editor-list-view-leaf[aria-level="7"] .block-editor-list-view__expander{margin-left:144px}.block-editor-list-view-leaf[aria-level="8"] .block-editor-list-view__expander{margin-left:168px}.block-editor-list-view-leaf .block-editor-list-view__expander{visibility:hidden}.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transform:rotate(90deg);transition:transform .2s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transform:rotate(0deg);transition:transform .2s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-drop-indicator{pointer-events:none}.block-editor-list-view-drop-indicator .block-editor-list-view-drop-indicator__line{background:var(--wp-admin-theme-color);border-radius:4px;height:4px}.block-editor-list-view-drop-indicator--preview{pointer-events:none}.block-editor-list-view-drop-indicator--preview .components-popover__content{overflow:hidden!important}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:4px;height:32px;overflow:hidden}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line--darker{background:rgba(var(--wp-admin-theme-color--rgb),.09)}.block-editor-list-view-placeholder{height:32px;margin:0;padding:0}.list-view-appender .block-editor-inserter__toggle{background-color:#1e1e1e;border-radius:2px;color:#fff;height:24px;margin:8px 0 0 24px;min-width:24px;padding:0}.list-view-appender .block-editor-inserter__toggle:focus,.list-view-appender .block-editor-inserter__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.list-view-appender__description,.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__indicator{margin-left:4px}.block-editor-media-flow__url-input{margin-left:-8px;margin-right:-8px;padding:16px}.block-editor-media-flow__url-input.has-siblings{border-top:1px solid #1e1e1e;margin-top:8px;padding-bottom:8px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{display:block;margin-bottom:8px;top:16px}.block-editor-media-flow__url-input .block-editor-link-control{width:300px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-url-input{margin:0;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-info,.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:200px;white-space:nowrap}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__tools{justify-content:flex-end;padding:16px var(--wp-admin-border-width-focus) var(--wp-admin-border-width-focus)}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{padding:0;width:auto}.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:0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{padding:8px 0 0}.block-editor-media-flow__error{max-width:255px;padding:0 20px 20px}.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-multi-selection-inspector__card{align-items:flex-start;display:flex;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{height:24px;margin-left:-2px;margin-right:10px;padding:0 3px;width:36px}.block-editor-responsive-block-control{border-bottom:1px solid #ccc;margin-bottom:28px;padding-bottom:14px}.block-editor-responsive-block-control:last-child{border-bottom:0;padding-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);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{box-shadow:none;margin-bottom:8px;min-width:auto;outline:none;width:auto}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar{border-radius:2px}.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-height:48px;min-width:48px;padding-left:12px;padding-right:12px}.block-editor-rich-text__inline-format-toolbar-group .components-dropdown-menu__toggle{justify-content:center}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon{width:auto}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon:after{content:attr(aria-label)}.block-editor-segmented-text-control{border:0;margin:0;padding:0}.block-editor-segmented-text-control .block-editor-segmented-text-control__buttons{display:flex;padding:4px 0}.block-editor-segmented-text-control .components-button.has-icon{margin-right:4px}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{background:#f1f1f1;box-shadow:0 0 2px 2px #0009;color:var(--wp-admin-theme-color);display:block;font-size:14px;font-weight:600;height:auto;line-height:normal;outline:none;padding:15px 23px 14px;text-decoration:none;width:auto;z-index:100000}.block-editor-tool-selector__help{border-top:1px solid #ddd;color:#757575;margin:8px -8px -8px;min-width:280px;padding:16px}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;padding:1px;position:relative}.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:16px;margin-left:0;margin-right:0;padding:8px 8px 8px 12px;width:100%}@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;width:300px}}.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-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.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{margin:0;position:absolute;right:8px;top:calc(50% - 8px)}.block-editor-url-input__input[type=text]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-url-input__input[type=text]{transition-delay:0s;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:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:#1e1e1e9e}.block-editor-url-input__input[type=text]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:#1e1e1e9e}.block-editor-url-input__suggestions{max-height:200px;overflow-y:auto;padding:4px 0;transition:all .15s ease-in-out;width:302px}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-delay:0s;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:grid}}.block-editor-url-input__suggestion{background:#fff;border:none;box-shadow:none;color:#757575;cursor:pointer;display:block;font-size:13px;height:auto;min-height:36px;text-align:left;width:100%}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{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{background:#ddd;content:"";display:block;height:24px;position:absolute;right:-1px;width:1px}.block-editor-url-input__button-modal{background:#fff;border:1px solid #ddd;box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a}.block-editor-url-input__button-modal-line{align-items:flex-start;display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;height:36px;width:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #1e1e1e;padding:8px}.block-editor-url-popover__input-container{padding:8px}.block-editor-url-popover__row{display:flex;gap:4px}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1;gap:8px}.block-editor-url-popover__additional-controls .components-button.has-icon{height:auto;padding-left:8px;padding-right:8px;text-align:left}.block-editor-url-popover__additional-controls .components-button.has-icon>svg{margin-right:8px}.block-editor-url-popover__settings-toggle{flex-shrink:0}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(180deg)}.block-editor-url-popover__settings{border-top:1px solid #1e1e1e;display:block;padding:16px}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-viewer-url{align-items:center;display:flex;flex-grow:1;flex-shrink:1;margin-right:8px;max-width:350px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#cc1818}.block-editor-url-popover__expand-on-click{align-items:center;display:flex;min-width:350px;white-space:nowrap}.block-editor-url-popover__expand-on-click .text{flex-grow:1}.block-editor-url-popover__expand-on-click .text p{line-height:16px;margin:0}.block-editor-url-popover__expand-on-click .text p.description{color:#757575;font-size:12px}.components-panel__block-bindings-panel .components-item__block-bindings-source{color:#757575}.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack{flex-direction:row-reverse}.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack .components-h-stack{flex-direction:row}.block-editor-hooks__block-hooks .block-editor-hooks__block-hooks-helptext{color:#757575;font-size:12px;margin-bottom:16px}.border-block-support-panel .single-column{grid-column:span 1}.color-block-support-panel .block-editor-contrast-checker{grid-column:span 2;margin-top:16px;order:9999}.color-block-support-panel .block-editor-contrast-checker .components-notice__content{margin-right:0}.color-block-support-panel.color-block-support-panel .color-block-support-panel__inner-wrapper{row-gap:0}.color-block-support-panel .block-editor-tools-panel-color-gradient-settings__item.first{margin-top:0}.dimensions-block-support-panel .single-column{grid-column:span 1}.block-editor-hooks__layout-controls{display:flex;margin-bottom:8px}.block-editor-hooks__layout-controls .block-editor-hooks__layout-controls-unit{display:flex;margin-right:24px}.block-editor-hooks__layout-controls .block-editor-hooks__layout-controls-unit svg{margin:auto 0 4px 8px}.block-editor-block-inspector .block-editor-hooks__layout-controls-unit-input{margin-bottom:0}.block-editor-hooks__layout-controls-reset{display:flex;justify-content:flex-end;margin-bottom:24px}.block-editor-hooks__layout-controls-helptext{color:#757575;font-size:12px;margin-bottom:16px}.block-editor-hooks__flex-layout-justification-controls,.block-editor-hooks__flex-layout-orientation-controls{margin-bottom:12px}.block-editor-hooks__flex-layout-justification-controls legend,.block-editor-hooks__flex-layout-orientation-controls legend{margin-bottom:8px}.block-editor-hooks__toggle-control.block-editor-hooks__toggle-control{margin-bottom:16px}.block-editor-hooks__position-selection__select-control .components-custom-select-control__hint{display:none}.block-editor-hooks__position-selection__select-control__option.has-hint{grid-template-columns:auto 30px;line-height:1.4;margin-bottom:0}.block-editor-hooks__position-selection__select-control__option .components-custom-select-control__item-hint{grid-row:2;text-align:left}.block-editor__spacing-visualizer{border-color:var(--wp-admin-theme-color);border-style:solid;bottom:0;box-sizing:border-box;left:0;opacity:.5;pointer-events:none;position:absolute;right:0;top:0}.typography-block-support-panel .single-column{grid-column:span 1}.block-editor-block-toolbar{display:flex;flex-grow:1;overflow-x:auto;overflow-y:hidden;position:relative;transition:border-color .1s linear,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-delay:0s;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;border:0;border-right:1px solid #ddd;line-height:0;margin-bottom:-1px;margin-top:-1px}.block-editor-block-toolbar.is-connected .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-connected .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors,.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.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-contextual-toolbar{background-color:#fff;display:block;flex-shrink:3;position:sticky;top:0;width:100%;z-index:31}.block-editor-block-contextual-toolbar.components-accessible-toolbar{border:none;border-bottom:1px solid #e0e0e0;border-radius:0}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{overflow:auto;overflow-y:hidden;scrollbar-color:#e0e0e0 #0000;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar{height:12px;width:12px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-track{background-color:initial}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#e0e0e0;border:3px solid #0000;border-radius:8px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover::-webkit-scrollbar-thumb{background-color:#949494}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover{scrollbar-color:#949494 #0000}@media (hover:none){.block-editor-block-contextual-toolbar .block-editor-block-toolbar{scrollbar-color:#949494 #0000}}.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar-group:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child:after{display:none}.block-editor-block-contextual-toolbar>.block-editor-block-toolbar{flex-grow:0;width:auto}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector{margin-bottom:-1px;margin-top:-1px;position:relative}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector:after{align-items:center;background-color:#1e1e1e;border-radius:100%;content:"";display:inline-flex;height:2px;position:absolute;right:0;top:15px;width:2px}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin:0!important;width:24px!important}.block-editor-block-toolbar__block-controls .components-toolbar-group{padding:0}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports (position:sticky){.block-editor-block-toolbar__slot{display:inline-flex}}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon{width:auto}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.show-icon-labels .components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.show-icon-labels .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{height:0!important;min-width:0!important;width:0!important}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button{border-bottom-right-radius:0;border-top-right-radius:0;padding-left:12px;padding-right:12px;text-wrap:nowrap}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button .block-editor-block-icon{width:0}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container{position:relative;width:auto}@media (min-width:600px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{background:#e0e0e0;content:"";height:1px;left:50%;margin-top:-.5px;position:absolute;top:50%;transform:translate(-50%);width:100%}}@media (min-width:782px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover-button,.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button{padding-left:8px;padding-right:8px}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-left:1px solid #ddd;margin-left:6px;margin-right:-6px;white-space:nowrap}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon{padding-left:12px;padding-right:12px}.show-icon-labels .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{width:auto}.show-icon-labels .components-toolbar,.show-icon-labels .components-toolbar-group{flex-shrink:1}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button+.components-button{margin-left:6px}.block-editor-inserter{background:none;border:none;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:0;padding:0}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__main-area{display:flex;flex-direction:column;gap:16px;height:100%;position:relative}.block-editor-inserter__main-area.show-as-tabs{gap:0}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__popover.is-quick .components-popover__content{border:none;box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;outline:none}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*{border-left:1px solid #ccc;border-right:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:first-child{border-radius:2px 2px 0 0;border-top:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:last-child{border-bottom:1px solid #ccc;border-radius:0 0 2px 2px}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>.components-button{border:1px solid #1e1e1e}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tablist{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{height:auto;overflow:visible}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{align-items:center;border:none;cursor:pointer;display:inline-flex;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-delay:0s;transition-duration:0s}}.block-editor-inserter__menu{height:100%;overflow:visible;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:99999}.block-editor-inserter__search{padding:16px 16px 0}.block-editor-inserter__tabs{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.block-editor-inserter__tabs .block-editor-inserter__tablist-and-close-button{border-bottom:1px solid #ddd;display:flex;justify-content:space-between;padding-right:12px}.block-editor-inserter__tabs .block-editor-inserter__close-button{align-self:center;order:1}.block-editor-inserter__tabs .block-editor-inserter__tablist{margin-bottom:-1px;width:100%}.block-editor-inserter__tabs .block-editor-inserter__tablist button[role=tab]{flex-grow:1}.block-editor-inserter__tabs .block-editor-inserter__tablist button[role=tab][id$=reusable]{flex-grow:inherit;padding-left:16px;padding-right:16px}.block-editor-inserter__tabs .block-editor-inserter__tabpanel{display:flex;flex-direction:column;flex-grow:1;overflow-y:auto}.block-editor-inserter__no-tab-container{flex-grow:1;overflow-y:auto;position:relative}.block-editor-inserter__panel-header{align-items:center;display:inline-flex;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button{color:#757575;font-size:11px;font-weight:500;margin:0 12px 0 0;text-transform:uppercase}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{height:36px;line-height:36px}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:right}.block-editor-inserter__manage-reusable-blocks-container{margin:auto 16px 16px}.block-editor-inserter__manage-reusable-blocks{justify-content:center;width:100%}.block-editor-inserter__no-results,.block-editor-inserter__patterns-loading{padding:32px;text-align:center}.block-editor-inserter__no-results-icon{fill:#949494}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{align-items:center;display:flex}.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__popover{top:16px!important}.block-editor-inserter__preview-container{display:none;max-height:calc(100% - 32px);overflow-y:hidden;padding:16px;width:280px}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-inserter__media-list__list-item{height:100%}.block-editor-inserter__preview-container .block-editor-block-card{padding-bottom:4px;padding-left:0;padding-right:0}.block-editor-inserter__insertable-blocks-at-selection{border-bottom:1px solid #e0e0e0}.block-editor-inserter__block-patterns-tabs-container,.block-editor-inserter__media-tabs-container{display:flex;flex-direction:column;height:100%;justify-content:space-between;padding:16px}.block-editor-inserter__category-tablist{border:none;display:flex;flex-direction:column;margin-bottom:8px}.block-editor-inserter__category-tablist div[role=listitem]:last-child{margin-top:auto}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab{display:block;font-weight:inherit;height:auto;padding:8px 4px 8px 12px;position:relative;text-align:left}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true]{color:var(--wp-admin-theme-color)}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true] .components-flex-item{filter:brightness(.95)}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true] svg{fill:var(--wp-admin-theme-color)}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true]:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";display:block;height:100%;left:0;opacity:.04;outline:none;position:absolute;right:0;top:0}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:focus-visible,.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:focus:not(:disabled){border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:0}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:after,.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:before{display:none}.block-editor-inserter__category-panel{background:#f0f0f0;border-top:1px solid #e0e0e0;box-shadow:1px 1px 0 0 rgba(0,0,0,.133);display:flex;flex-direction:column;height:calc(100% + 1px);left:0;outline:1px solid #0000;padding:0 16px;position:absolute;top:-1px;width:100%}@media (min-width:782px){.block-editor-inserter__category-panel{border-left:1px solid #e0e0e0;left:100%;padding:0;width:300px}}.block-editor-inserter__category-panel .block-editor-block-patterns-list,.block-editor-inserter__category-panel .block-editor-inserter__media-list{padding:0 24px 16px}.block-editor-inserter__patterns-category-panel-header{padding:8px 24px}.block-editor-inserter__patterns-category-no-results{margin-top:24px}.block-editor-block-patterns-list,.block-editor-inserter__media-list{flex-grow:1;height:100%;overflow-y:auto}.block-editor-inserter__preview-content{align-items:center;background:#f0f0f0;display:grid;flex-grow:1;min-height:144px}.block-editor-inserter__preview-content-missing{align-items:center;background:#f0f0f0;border-radius:2px;color:#757575;display:flex;flex:1;justify-content:center;min-height:144px}.block-editor-inserter__tips{border-top:1px solid #ddd;flex-shrink:0;padding:16px;position:relative}.block-editor-inserter__quick-inserter{max-width:100%;width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{float:left;height:0;padding:0}.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{min-height:100px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{background:#1e1e1e;border-radius:0;color:#fff;display:block;height:44px;width:100%}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:active{color:#ccc}.block-editor-inserter__quick-inserter-expand.components-button.components-button:focus:not(:disabled){background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);box-shadow:none}.block-editor-block-patterns-explorer__sidebar{bottom:0;left:0;overflow-x:visible;overflow-y:scroll;padding:24px 32px 32px;position:absolute;top:72px;width:280px}.block-editor-block-patterns-explorer__sidebar__categories-list__item{display:block;height:48px;text-align:left;width:100%}.block-editor-block-patterns-explorer__search{margin-bottom:32px}.block-editor-block-patterns-explorer__search-results-count{padding-bottom:32px}.block-editor-block-patterns-explorer__list{margin-left:280px;padding:24px 0 32px}.block-editor-block-patterns-explorer__list .block-editor-patterns__sync-status-filter .components-input-control__container{width:380px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list{display:grid;grid-gap:32px;grid-template-columns:repeat(1,1fr);margin-bottom:16px}@media (min-width:1080px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(2,1fr)}}@media (min-width:1440px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(3,1fr)}}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{min-height:240px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{height:inherit;max-height:800px;min-height:100px}.components-heading.block-editor-inserter__patterns-category-panel-title{font-weight:500}.block-editor-inserter__media-library-button.components-button,.block-editor-inserter__patterns-explore-button.components-button{justify-content:center;margin-top:16px;padding:16px;width:100%}.block-editor-inserter__media-panel{display:flex;flex-direction:column;min-height:100%;padding:0 16px}@media (min-width:782px){.block-editor-inserter__media-panel{padding:0}}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-spinner{align-items:center;display:flex;flex:1;height:100%;justify-content:center}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search{padding:16px 24px 8px}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search:not(:focus-within){--wp-components-color-background:#fff}.block-editor-inserter__media-list__list-item{cursor:pointer;margin-bottom:24px;position:relative}.block-editor-inserter__media-list__list-item.is-placeholder{min-height:100px}.block-editor-inserter__media-list__list-item[draggable=true] .block-editor-inserter__media-list__list-item{cursor:grab}.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview>*{outline-color:#0000004d}.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options>button{display:block}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options{position:absolute;right:8px;top:8px}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button{background:#fff;border-radius:2px;display:none}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button.is-opened,.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:focus{display:block}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:hover{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-editor-inserter__media-list__item{height:100%}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview{align-items:center;border-radius:2px;display:flex;overflow:hidden}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview>*{border-radius:2px;margin:0 auto;max-width:100%;outline:1px solid #0000001a;outline-offset:-1px}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{align-items:center;background:#ffffffb3;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}.block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{outline-color:var(--wp-admin-theme-color);outline-offset:calc(-1*var(--wp-admin-border-width-focus));outline-width:var(--wp-admin-border-width-focus);transition:outline .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{transition-delay:0s;transition-duration:0s}}.block-editor-inserter__media-list__item-preview-options__popover .components-menu-item__button .components-menu-item__item{min-width:auto}.block-editor-inserter__mobile-tab-navigation{height:100%;padding:16px}.block-editor-inserter__mobile-tab-navigation>*{height:100%}@media (min-width:600px){.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal{max-width:480px}}.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal p{margin:0}.block-editor-inserter__hint{margin:16px 16px 0}.reusable-blocks-menu-items__rename-hint{align-items:top;background:#f0f0f0;border-radius:2px;color:#1e1e1e;display:flex;flex-direction:row;max-width:380px}.reusable-blocks-menu-items__rename-hint-content{margin:12px 0 12px 12px}.reusable-blocks-menu-items__rename-hint-dismiss{margin:4px 4px 4px 0}.components-menu-group .reusable-blocks-menu-items__rename-hint{margin:0}.block-editor-patterns__sync-status-filter .components-input-control__container select.components-select-control__input{height:40px}.block-editor-inserter__pattern-panel-placeholder{display:none}.block-editor-inserter__menu.is-zoom-out{display:flex}@media (min-width:782px){.block-editor-inserter__menu.is-zoom-out.show-panel:after{content:"";display:block;height:100%;width:300px}}.spacing-sizes-control .spacing-sizes-control__custom-value-input,.spacing-sizes-control .spacing-sizes-control__label{margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range,.spacing-sizes-control .spacing-sizes-control__range-control{align-items:center;display:flex;flex:1;height:40px;margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range>.components-base-control__field,.spacing-sizes-control .spacing-sizes-control__range-control>.components-base-control__field{flex:1}.spacing-sizes-control .components-range-control__mark{background-color:#fff;height:4px;width:3px;z-index:1}.spacing-sizes-control .components-range-control__marks{margin-top:17px}.spacing-sizes-control .components-range-control__marks :first-child{display:none}.spacing-sizes-control .components-range-control__thumb-wrapper{z-index:3}.spacing-sizes-control__header{height:16px;margin-bottom:12px}.spacing-sizes-control__dropdown{height:24px}.spacing-sizes-control__custom-select-control,.spacing-sizes-control__custom-value-input{flex:1}.spacing-sizes-control__custom-toggle,.spacing-sizes-control__icon{flex:0 0 auto}.spacing-sizes-control__icon{margin-left:-4px}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
diff --git a/wp-includes/css/dist/block-library/common-rtl.css b/wp-includes/css/dist/block-library/common-rtl.css
index cd2e889..ea5cd4f 100644
--- a/wp-includes/css/dist/block-library/common-rtl.css
+++ b/wp-includes/css/dist/block-library/common-rtl.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -112,7 +112,6 @@
.screen-reader-text{
border:0;
clip:rect(1px, 1px, 1px, 1px);
- -webkit-clip-path:inset(50%);
clip-path:inset(50%);
height:1px;
margin:-1px;
@@ -126,8 +125,7 @@
.screen-reader-text:focus{
background-color:#ddd;
clip:auto !important;
- -webkit-clip-path:none;
- clip-path:none;
+ clip-path:none;
color:#444;
display:block;
font-size:1em;
diff --git a/wp-includes/css/dist/block-library/common-rtl.min.css b/wp-includes/css/dist/block-library/common-rtl.min.css
index ab90251..a1ba8a7 100644
--- a/wp-includes/css/dist/block-library/common-rtl.min.css
+++ b/wp-includes/css/dist/block-library/common-rtl.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}: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-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.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}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{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}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;line-height:normal;padding:15px 23px 14px;right:5px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-left-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-right-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-left-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-right-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}: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-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.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}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;clip-path:none;color:#444;display:block;font-size:1em;height:auto;line-height:normal;padding:15px 23px 14px;right:5px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-left-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-right-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-left-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-right-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}} \ No newline at end of file
diff --git a/wp-includes/css/dist/block-library/common.css b/wp-includes/css/dist/block-library/common.css
index 27f854c..bdb708b 100644
--- a/wp-includes/css/dist/block-library/common.css
+++ b/wp-includes/css/dist/block-library/common.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -112,7 +112,6 @@
.screen-reader-text{
border:0;
clip:rect(1px, 1px, 1px, 1px);
- -webkit-clip-path:inset(50%);
clip-path:inset(50%);
height:1px;
margin:-1px;
@@ -126,8 +125,7 @@
.screen-reader-text:focus{
background-color:#ddd;
clip:auto !important;
- -webkit-clip-path:none;
- clip-path:none;
+ clip-path:none;
color:#444;
display:block;
font-size:1em;
diff --git a/wp-includes/css/dist/block-library/common.min.css b/wp-includes/css/dist/block-library/common.min.css
index bd45580..a654561 100644
--- a/wp-includes/css/dist/block-library/common.min.css
+++ b/wp-includes/css/dist/block-library/common.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}: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-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.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}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{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}.screen-reader-text:focus{background-color:#ddd;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}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}: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-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.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}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;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}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}} \ 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 bd85c5e..6469230 100644
--- a/wp-includes/css/dist/block-library/editor-rtl.css
+++ b/wp-includes/css/dist/block-library/editor-rtl.css
@@ -26,27 +26,6 @@ ul.wp-block-archives{
margin:0 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;
-}
-.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{
- display:none;
-}
-
-.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected{
- box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
-}
-.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
-}
-.is-dark-theme .edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff;
-}
-
.wp-block[data-align=center]>.wp-block-button{
margin-left:auto;
margin-right:auto;
@@ -77,37 +56,6 @@ div[data-type="core/button"]{
.editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link{
text-decoration:inherit;
}
-
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where(.has-border-color){
- border-width:initial;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-color]){
- border-top-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-color]){
- border-left-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){
- border-bottom-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-color]){
- border-right-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-style]){
- border-width:initial;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-style]){
- border-top-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-style]){
- border-left-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){
- border-bottom-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-style]){
- border-right-width:medium;
-}
.wp-block-buttons>.wp-block,.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{
margin:0;
}
@@ -339,9 +287,17 @@ html :where(.wp-block-column){
.wp-block-cover.components-placeholder h2{
color:inherit;
}
+.wp-block-cover.is-transient{
+ position:relative;
+}
.wp-block-cover.is-transient:before{
background-color:#fff;
+ content:"";
+ height:100%;
opacity:.3;
+ position:absolute;
+ width:100%;
+ z-index:1;
}
.wp-block-cover .components-spinner{
margin:0;
@@ -402,10 +358,6 @@ html :where(.wp-block-column){
margin-top:24px;
}
-.wp-block-cover:after{
- min-height:auto;
-}
-
.wp-block-details summary div{
display:inline;
}
@@ -423,9 +375,6 @@ html :where(.wp-block-column){
word-break:break-word;
}
-.wp-block-embed__learn-more{
- margin-top:1em;
-}
.wp-block-post-content .wp-block-embed__learn-more a{
color:var(--wp-admin-theme-color);
}
@@ -457,6 +406,9 @@ html :where(.wp-block-column){
.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{
height:auto;
}
+.wp-block[data-align=center]>.wp-block-file{
+ text-align:center;
+}
.wp-block-file .components-resizable-box__container{
margin-bottom:1em;
}
@@ -872,42 +824,42 @@ div[data-type="core/freeform"].is-selected .block-library-classic__toolbar{
margin-top:16px;
}
-figure.wp-block-gallery{
+:root :where(figure.wp-block-gallery){
display:block;
}
-figure.wp-block-gallery>.blocks-gallery-caption{
+:root :where(figure.wp-block-gallery)>.blocks-gallery-caption{
flex:0 0 100%;
}
-figure.wp-block-gallery>.blocks-gallery-media-placeholder-wrapper{
+:root :where(figure.wp-block-gallery)>.blocks-gallery-media-placeholder-wrapper{
flex-basis:100%;
}
-figure.wp-block-gallery .wp-block-image .components-notice.is-error{
+:root :where(figure.wp-block-gallery) .wp-block-image .components-notice.is-error{
display:block;
}
-figure.wp-block-gallery .wp-block-image .components-notice__content{
+:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__content{
margin:4px 0;
}
-figure.wp-block-gallery .wp-block-image .components-notice__dismiss{
+:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__dismiss{
left:5px;
position:absolute;
top:0;
}
-figure.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .components-placeholder__label{
display:none;
}
-figure.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{
margin-bottom:0;
}
-figure.wp-block-gallery .block-editor-media-placeholder{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder{
margin:0;
}
-figure.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder .components-placeholder__label{
display:flex;
}
-figure.wp-block-gallery .block-editor-media-placeholder figcaption{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder figcaption{
z-index:2;
}
-figure.wp-block-gallery .components-spinner{
+:root :where(figure.wp-block-gallery) .components-spinner{
margin-right:-9px;
margin-top:-9px;
position:absolute;
@@ -1063,53 +1015,10 @@ figure.wp-block-gallery .components-spinner{
right:0;
top:0;
}
-.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{
+.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{
pointer-events:all;
}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations{
- display:flex;
- flex-direction:row;
- flex-wrap:wrap;
- justify-content:center;
- list-style:none;
- margin:0;
- padding:0;
- width:100%;
-}
-.wp-block-group__placeholder .components-placeholder__instructions{
- margin-bottom:18px;
- text-align:center;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations svg{
- fill:#ccc !important;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations svg:hover{
- fill:var(--wp-admin-theme-color) !important;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations>li{
- align-items:center;
- display:flex;
- flex-direction:column;
- margin:0 12px 12px;
- width:auto;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button{
- height:32px;
- padding:0;
- width:44px;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button:hover{
- box-shadow:none;
-}
-.wp-block-group__placeholder .components-placeholder{
- min-height:auto;
- padding:24px;
-}
-.wp-block-group__placeholder .is-medium .wp-block-group-placeholder__variations>li,.wp-block-group__placeholder .is-small .wp-block-group-placeholder__variations>li{
- margin:12px;
-}
-
.block-library-html__edit .block-library-html__preview-overlay{
height:100%;
position:absolute;
@@ -1124,6 +1033,7 @@ figure.wp-block-gallery .components-spinner{
box-shadow:none !important;
box-sizing:border-box;
color:#1e1e1e !important;
+ direction:ltr;
font-family:Menlo,Consolas,monaco,monospace !important;
font-size:16px !important;
max-height:250px;
@@ -1238,6 +1148,9 @@ figure.wp-block-image:not(.wp-block){
position:relative;
width:100%;
}
+.wp-block-image__crop-area .reactEasyCrop_Container{
+ pointer-events:auto;
+}
.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{
border:none;
border-radius:0;
@@ -1259,28 +1172,10 @@ figure.wp-block-image:not(.wp-block){
overflow:visible !important;
}
-.wp-block-image__aspect-ratio{
- align-items:center;
- display:flex;
- height:46px;
- margin-bottom:-8px;
-}
-.wp-block-image__aspect-ratio .components-button{
- padding-left:0;
- padding-right:0;
- width:36px;
-}
-
.wp-block-image__toolbar_content_textarea{
width:250px;
}
-.wp-block-latest-posts{
- padding-right:2.5em;
-}
-.wp-block-latest-posts.is-grid{
- padding-right:0;
-}
.wp-block-latest-posts>li{
overflow:hidden;
}
@@ -1289,10 +1184,6 @@ figure.wp-block-image:not(.wp-block){
display:inline;
}
-.edit-post-visual-editor .wp-block-latest-posts.is-grid li{
- margin-bottom:20px;
-}
-
.editor-latest-posts-image-alignment-control .components-base-control__label{
display:block;
}
@@ -1300,6 +1191,14 @@ figure.wp-block-image:not(.wp-block){
border-radius:2px;
}
+:root :where(.wp-block-latest-posts){
+ padding-right:2.5em;
+}
+
+:root :where(.wp-block-latest-posts.is-grid),:root :where(.wp-block-latest-posts__list){
+ padding-right:0;
+}
+
.wp-block-media-text__media{
position:relative;
}
@@ -1323,13 +1222,16 @@ figure.wp-block-image:not(.wp-block){
width:100% !important;
}
-.wp-block-media-text.is-image-fill .editor-media-container__resizer{
+.wp-block-media-text.is-image-fill .components-placeholder.has-illustration,.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;
}
+.wp-block-media-text--placeholder-image{
+ min-height:205px;
+}
.block-editor-block-list__block[data-type="core/more"]{
margin-bottom:28px;
@@ -1683,10 +1585,6 @@ figure.wp-block-image:not(.wp-block){
top:141px;
}
-.is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open{
- left:280px;
-}
-
.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{
right:0;
top:155px;
@@ -2070,17 +1968,8 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
display:inline;
}
-.wp-block-rss__placeholder-form>*{
- margin-bottom:8px;
-}
-@media (min-width:782px){
- .wp-block-rss__placeholder-form>*{
- margin-bottom:0;
- }
-}
.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{
- flex:1;
- min-width:80%;
+ flex:1 1 auto;
}
.wp-block[data-align=center] .wp-block-search .wp-block-search__inside-wrapper{
@@ -2103,14 +1992,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
padding-bottom:.1px;
padding-top:.1px;
}
-.block-editor-block-list__block[data-type="core/separator"].wp-block-separator.is-style-dots{
- background:none !important;
- border:none;
-}
-
-[data-type="core/shortcode"].components-placeholder{
- min-height:0;
-}
.blocks-shortcode__textarea{
background:#fff !important;
@@ -2151,14 +2032,24 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
.wp-block-site-logo .custom-logo-link:focus{
box-shadow:none;
}
-.wp-block-site-logo .custom-logo-link.is-transient img{
- opacity:.3;
-}
.wp-block-site-logo img{
display:block;
height:auto;
max-width:100%;
}
+.wp-block-site-logo.is-transient{
+ position:relative;
+}
+.wp-block-site-logo.is-transient img{
+ opacity:.3;
+}
+.wp-block-site-logo.is-transient .components-spinner{
+ margin:0;
+ position:absolute;
+ right:50%;
+ top:50%;
+ transform:translate(50%, -50%);
+}
.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{
height:60px;
@@ -2191,6 +2082,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
display:flex;
height:48px;
justify-content:center;
+ margin:auto;
padding:0;
position:relative;
width:48px;
@@ -2247,28 +2139,39 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
padding:1em 0;
}
-.editor-styles-wrapper .wp-block-site-title a{
+.editor-styles-wrapper :where(.wp-block-site-title a){
color:inherit;
}
.wp-block-social-links .wp-social-link{
line-height:0;
}
-.wp-block-social-links .wp-social-link button{
+
+.wp-block-social-link-anchor{
+ align-items:center;
+ background:none;
+ border:0;
+ box-sizing:border-box;
color:currentColor;
+ cursor:pointer;
+ display:inline-flex;
font-size:inherit;
height:auto;
- line-height:0;
opacity:1;
padding:.25em;
}
+.wp-block-social-link-anchor:focus:not(:disabled){
+ border-radius:2px;
+ box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+ outline:3px solid #0000;
+}
-.wp-block-social-links.is-style-pill-shape .wp-social-link button{
+:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link button){
padding-left:.66667em;
padding-right:.66667em;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link button{
+:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link button){
padding:0;
}
@@ -2276,18 +2179,24 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
display:inline-block;
margin-right:8px;
}
-.wp-block-social-links.wp-block-social-links{
- background:none;
-}
.wp-social-link:hover{
transform:none;
}
-.editor-styles-wrapper .wp-block-social-links{
+:root :where(.wp-block-social-links),:root :where(.wp-block-social-links.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link){
padding:0;
}
+:root :where(.wp-block-social-links__social-placeholder .wp-social-link){
+ padding:.25em;
+}
+
+:root :where(.wp-block-social-links.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link){
+ padding-left:.66667em;
+ padding-right:.66667em;
+}
+
.wp-block-social-links__social-placeholder{
display:flex;
list-style:none;
@@ -2304,16 +2213,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
.wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{
display:flex;
}
-.wp-block-social-links__social-placeholder .wp-social-link{
- padding:.25em;
-}
-.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link{
- padding-left:.66667em;
- padding-right:.66667em;
-}
-.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link{
- padding:0;
-}
.wp-block-social-links__social-placeholder .wp-social-link:before{
border-radius:50%;
content:"";
@@ -2334,7 +2233,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
margin-bottom:auto;
margin-top:auto;
min-height:24px;
- order:2;
padding-left:8px;
}
@@ -2461,15 +2359,15 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
top:0;
z-index:2;
}
-
-.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected{
- box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
+.block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{
+ outline-color:var(--wp-block-synced-color);
}
-.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
+.is-dark-theme .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{
+ outline-color:#fff;
}
-.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff;
+
+.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.has-editable-outline:after{
+ border:none;
}
.wp-block-text-columns .block-editor-rich-text__editable:focus{
@@ -2595,10 +2493,11 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
}
.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{
background:#fff;
- margin-bottom:2px;
+ margin-bottom:-4px;
padding:16px 0;
position:sticky;
top:0;
+ transform:translateY(-4px);
z-index:2;
}
@@ -2674,6 +2573,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
display:flex;
height:48px;
justify-content:center;
+ margin:auto;
padding:0;
position:relative;
width:48px;
@@ -2724,6 +2624,18 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
opacity:1;
pointer-events:auto;
}
+.wp-block-post-featured-image.is-transient{
+ position:relative;
+}
+.wp-block-post-featured-image.is-transient img{
+ opacity:.3;
+}
+.wp-block-post-featured-image.is-transient .components-spinner{
+ position:absolute;
+ right:50%;
+ top:50%;
+ transform:translate(50%, -50%);
+}
div[data-type="core/post-featured-image"] img{
display:block;
@@ -2782,11 +2694,6 @@ div[data-type="core/post-featured-image"] img{
background:linear-gradient(-135deg, #020381, #2874fc);
}
-:where(.editor-styles-wrapper){
- --wp--preset--font-size--normal:16px;
- --wp--preset--font-size--huge:42px;
-}
-
:where(.editor-styles-wrapper) .has-regular-font-size{
font-size:16px;
}
@@ -2794,14 +2701,6 @@ div[data-type="core/post-featured-image"] img{
:where(.editor-styles-wrapper) .has-larger-font-size{
font-size:42px;
}
-
-:where(.editor-styles-wrapper) .has-normal-font-size{
- font-size:var(--wp--preset--font-size--normal);
-}
-
-:where(.editor-styles-wrapper) .has-huge-font-size{
- font-size:var(--wp--preset--font-size--huge);
-}
:where(.editor-styles-wrapper) iframe:not([frameborder]){
border:0;
} \ No newline at end of file
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 c42c854..c5ffb61 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 @@
-ul.wp-block-archives{padding-right:2.5em}.wp-block-audio{margin-left:0;margin-right:0;position:relative}.wp-block-audio.is-transient audio{opacity:.3}.wp-block-audio .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.wp-block-avatar__image img{width:100%}.wp-block-avatar.aligncenter .components-resizable-box__container{margin:0 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}.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{display:none}.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.is-dark-theme .edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff}.wp-block[data-align=center]>.wp-block-button{margin-left:auto;margin-right:auto;text-align:center}.wp-block[data-align=right]>.wp-block-button{text-align:right}.wp-block-button{cursor:text;position:relative}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}div[data-type="core/button"]{display:table}.editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where(.has-border-color){border-width:initial}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-color]){border-top-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-color]){border-left-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){border-bottom-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-color]){border-right-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-style]){border-width:initial}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-style]){border-top-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-style]){border-left-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){border-bottom-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-style]){border-right-width:medium}.wp-block-buttons>.wp-block,.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{margin:0}.wp-block-buttons>.block-list-appender{align-items:center;display:inline-flex}.wp-block-buttons.is-vertical>.block-list-appender .block-list-appender__toggle{justify-content:flex-start}.wp-block-buttons>.wp-block-button:focus{box-shadow:none}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center]{margin-left:auto;margin-right:auto;margin-top:0;width:100%}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center] .wp-block-button{margin-bottom:0}.editor-styles-wrapper .wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block[data-align=center]>.wp-block-buttons{align-items:center;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{justify-content:flex-end}.wp-block-categories ul{padding-right:2.5em}.wp-block-categories ul ul{margin-top:6px}[data-align=center] .wp-block-categories{text-align:center}.wp-block-code code{background:none}.wp-block-columns :where(.wp-block){margin-left:0;margin-right:0;max-width:none}html :where(.wp-block-column){margin-bottom:0;margin-top:0}.wp-block-comments__legacy-placeholder,.wp-block-post-comments{box-sizing:border-box}.wp-block-comments__legacy-placeholder .alignleft,.wp-block-post-comments .alignleft{float:right}.wp-block-comments__legacy-placeholder .alignright,.wp-block-post-comments .alignright{float:left}.wp-block-comments__legacy-placeholder .navigation:after,.wp-block-post-comments .navigation:after{clear:both;content:"";display:table}.wp-block-comments__legacy-placeholder .commentlist,.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-comments__legacy-placeholder .commentlist .comment,.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-right:3.25em}.wp-block-comments__legacy-placeholder .commentlist .comment p,.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-comments__legacy-placeholder .commentlist .children,.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-comments__legacy-placeholder .comment-author,.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-comments__legacy-placeholder .comment-author .avatar,.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;margin-top:.5em;width:2.5em}.wp-block-comments__legacy-placeholder .comment-author cite,.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-comments__legacy-placeholder .comment-meta,.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-comments__legacy-placeholder .comment-meta b,.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-comments__legacy-placeholder .comment-meta .comment-awaiting-moderation,.wp-block-post-comments .comment-meta .comment-awaiting-moderation{display:block;margin-bottom:1em;margin-top:1em}.wp-block-comments__legacy-placeholder .comment-body .commentmetadata,.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-comments__legacy-placeholder .comment-form-author label,.wp-block-comments__legacy-placeholder .comment-form-comment label,.wp-block-comments__legacy-placeholder .comment-form-email label,.wp-block-comments__legacy-placeholder .comment-form-url label,.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-comments__legacy-placeholder .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder .comment-form textarea,.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-comments__legacy-placeholder .comment-form-cookies-consent,.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-comments__legacy-placeholder .comment-form-cookies-consent #wp-comment-cookies-consent,.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-comments__legacy-placeholder .comment-reply-title,.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-comments__legacy-placeholder .comment-reply-title :where(small),.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-right:.5em}.wp-block-comments__legacy-placeholder .reply,.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-comments__legacy-placeholder input:not([type=submit]),.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-comments__legacy-placeholder input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}:where(.wp-block-post-comments input[type=submit]){border:none}.block-library-comments-toolbar__popover .components-popover__content{min-width:230px}.wp-block-comments__legacy-placeholder *{pointer-events:none}.wp-block-comment-author-avatar__placeholder{border:1px dashed;height:100%;width:100%;stroke:currentColor;stroke-dasharray:3}.wp-block[data-align=center]>.wp-block-comments-pagination{justify-content:center}.editor-styles-wrapper .wp-block-comments-pagination{max-width:100%}.editor-styles-wrapper .wp-block-comments-pagination.block-editor-block-list__layout{margin:0}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers,.wp-block-comments-pagination>.wp-block-comments-pagination-previous{margin-bottom:.5em;margin-right:.5em;margin-top:.5em}.wp-block-comments-pagination>.wp-block-comments-pagination-next:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-previous:last-child{margin-right:0}.wp-block-comments-pagination-numbers a{text-decoration:underline}.wp-block-comments-pagination-numbers .page-numbers{margin-left:2px}.wp-block-comments-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-comments-title.has-background{padding:inherit}.editor-styles-wrapper .wp-block-cover{box-sizing:border-box}.wp-block-cover.is-placeholder{align-items:stretch;display:flex;min-height:240px;padding:0!important}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient:before{background-color:#fff;opacity:.3}.wp-block-cover .components-spinner{margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);z-index:1}.wp-block-cover .wp-block-cover__inner-container{margin-left:0;margin-right:0;text-align:right}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{bottom:0;left:0;position:absolute;right:0;top:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-right:auto}.block-library-cover__resize-container{bottom:0;left:0;min-height:50px;position:absolute!important;right:0;top:0}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div{overflow:visible;pointer-events:none}.wp-block-cover>.components-drop-zone .components-drop-zone__content{opacity:.8!important}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px}.wp-block-cover:after{min-height:auto}.wp-block-details summary div{display:inline}.wp-block-embed{clear:both;margin-left:0;margin-right:0}.wp-block-embed.is-loading{display:flex;justify-content:center}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed__learn-more{margin-top:1em}.wp-block-post-content .wp-block-embed__learn-more a{color:var(--wp-admin-theme-color)}.block-library-embed__interactive-overlay{bottom:0;left:0;opacity:0;position:absolute;right:0;top:0}.wp-block[data-align=left]>.wp-block-embed,.wp-block[data-align=right]>.wp-block-embed{max-width:360px;width:100%}.wp-block[data-align=left]>.wp-block-embed .wp-block-embed__wrapper,.wp-block[data-align=right]>.wp-block-embed .wp-block-embed__wrapper{min-width:280px}.wp-block-file{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:0}.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{height:auto}.wp-block-file .components-resizable-box__container{margin-bottom:1em}.wp-block-file .wp-block-file__preview{height:100%;margin-bottom:1em;width:100%}.wp-block-file .wp-block-file__preview-overlay{bottom:0;left:0;position:absolute;right:0;top:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file a{min-width:1em}.wp-block-file a:not(.wp-block-file__button){display:inline-block}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-right:.75em}.wp-block-form-input .is-input-hidden{background:repeating-linear-gradient(-45deg,#0000,#0000 5px,currentColor 0,currentColor 6px);border:1px dashed;box-sizing:border-box;font-size:.85em;opacity:.3;padding:.5em}.wp-block-form-input .is-input-hidden input[type=text]{background:#0000}.wp-block-form-input.is-selected .is-input-hidden{background:none;opacity:1}.wp-block-form-input.is-selected .is-input-hidden input[type=text]{background:unset}.wp-block-form-submission-notification>*{background:repeating-linear-gradient(-45deg,#0000,#0000 5px,currentColor 0,currentColor 6px);border:1px dashed;box-sizing:border-box;opacity:.25}.wp-block-form-submission-notification.is-selected>*,.wp-block-form-submission-notification:has(.is-selected)>*{background:none;opacity:1}.wp-block-form-submission-notification.is-selected:after,.wp-block-form-submission-notification:has(.is-selected):after{display:none!important}.wp-block-form-submission-notification:after{align-items:center;display:flex;font-size:1.1em;height:100%;justify-content:center;position:absolute;right:0;top:0;width:100%}.wp-block-form-submission-notification.form-notification-type-success:after{content:attr(data-message-success)}.wp-block-form-submission-notification.form-notification-type-error:after{content:attr(data-message-error)}.wp-block-freeform.block-library-rich-text__tinymce{height:auto}.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{margin-right:0;padding-right:2.5em}.wp-block-freeform.block-library-rich-text__tinymce blockquote{border-right:4px solid #000;box-shadow:inset 0 0 0 0 #ddd;margin:0;padding-right:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;white-space:pre-wrap}.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:var(--wp-admin-theme-color)}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{background:#e5f5fa;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;margin:0 -2px;padding:0 2px}.wp-block-freeform.block-library-rich-text__tinymce code{background:#f0f0f0;border-radius:2px;color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;padding:2px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#ddd}.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{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-position:50%;background-repeat:no-repeat;background-size:1900px 20px;cursor:default;display:block;height:20px;margin:15px auto;outline:0;width:96%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:initial}.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{margin:0;padding-top:.5em}.wp-block-freeform.block-library-rich-text__tinymce .wpview{border:1px solid #0000;clear:both;margin-bottom:16px;position:relative;width:99.99%}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{background:#0000;display:block;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{bottom:0;left:0;position:absolute;right:0;top: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 #ddd;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #ddd;margin:0;padding:1em 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:#0000}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;font-size:32px;height:32px;margin:0 auto;width:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{clear:both;content:"";display:table}.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{line-height:1;margin:auto -6px;overflow-x:hidden;padding:6px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{box-sizing:border-box;float:right;margin:0;padding:6px;text-align:center}.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.3333333333%}.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.6666666667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.2857142857%}.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.1111111111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{border:none;height:auto;max-width:100%;padding:0}div[data-type="core/freeform"]:before{border:1px solid #ddd;outline:1px solid #0000;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-delay:0s;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{clear:both;content:"";display:table}.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i,.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i{color:#1e1e1e}.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{border:1px solid #ddd;border-bottom:none;border-radius:2px;display:none;margin:0 0 8px;padding:0;position:sticky;top:0;width:auto;z-index:31}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar{border-color:#1e1e1e;display:block}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{background:#f5f5f5;border-bottom:1px solid #e2e4e7;display:block}.block-library-classic__toolbar:empty:before{color:#555d66;content:attr(data-placeholder);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;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}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{height:50vh!important}@media (min-width:960px){.block-editor-freeform-modal .block-editor-freeform-modal__content:not(.is-full-screen){height:9999rem}.block-editor-freeform-modal .block-editor-freeform-modal__content .components-modal__header+div{height:100%}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-tinymce{height:calc(100% - 52px)}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-container-body{display:flex;flex-direction:column;height:100%;min-width:50vw}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area{display:flex;flex-direction:column;flex-grow:1}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{flex-grow:1;height:10px!important}}.block-editor-freeform-modal__actions{margin-top:16px}figure.wp-block-gallery{display:block}figure.wp-block-gallery>.blocks-gallery-caption{flex:0 0 100%}figure.wp-block-gallery>.blocks-gallery-media-placeholder-wrapper{flex-basis:100%}figure.wp-block-gallery .wp-block-image .components-notice.is-error{display:block}figure.wp-block-gallery .wp-block-image .components-notice__content{margin:4px 0}figure.wp-block-gallery .wp-block-image .components-notice__dismiss{left:5px;position:absolute;top:0}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}figure.wp-block-gallery .block-editor-media-placeholder{margin:0}figure.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:flex}figure.wp-block-gallery .block-editor-media-placeholder figcaption{z-index:2}figure.wp-block-gallery .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.gallery-settings-buttons .components-button:first-child{margin-left:8px}.gallery-image-sizes .components-base-control__label{display:block;margin-bottom:4px}.gallery-image-sizes .gallery-image-sizes__loading{align-items:center;color:#757575;display:flex;font-size:12px}.gallery-image-sizes .components-spinner{margin:0 4px 0 8px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{bottom:0;box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";left:0;outline:2px solid #0000;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{height:100%;margin:0}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{background:#fff;border:1px solid #1e1e1e;border-radius:2px;display:none;margin:8px;position:absolute;top:-2px;transition:box-shadow .2s ease-out;z-index:20}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-delay:0s;transition-duration:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{height:inherit;padding:0;width:inherit}}.block-library-gallery-item__inline-menu.is-left{right:-2px}.block-library-gallery-item__inline-menu.is-right{left:-2px}.wp-block-gallery ul.blocks-gallery-grid{margin:0;padding:0}@media (min-width:600px){.wp-block-update-gallery-modal{max-width:480px}}.wp-block-update-gallery-modal-buttons{display:flex;gap:12px;justify-content:flex-end}.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[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-bottom:18px;margin-top:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;flex:1;flex-direction:inherit;width:100%}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{border:1px dashed;border-radius:2px;content:"";display:flex;flex:1 0 48px;min-height:46px;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all}.wp-block-group__placeholder .wp-block-group-placeholder__variations{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;list-style:none;margin:0;padding:0;width:100%}.wp-block-group__placeholder .components-placeholder__instructions{margin-bottom:18px;text-align:center}.wp-block-group__placeholder .wp-block-group-placeholder__variations svg{fill:#ccc!important}.wp-block-group__placeholder .wp-block-group-placeholder__variations svg:hover{fill:var(--wp-admin-theme-color)!important}.wp-block-group__placeholder .wp-block-group-placeholder__variations>li{align-items:center;display:flex;flex-direction:column;margin:0 12px 12px;width:auto}.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button{height:32px;padding:0;width:44px}.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button:hover{box-shadow:none}.wp-block-group__placeholder .components-placeholder{min-height:auto;padding:24px}.wp-block-group__placeholder .is-medium .wp-block-group-placeholder__variations>li,.wp-block-group__placeholder .is-small .wp-block-group-placeholder__variations>li{margin:12px}.block-library-html__edit .block-library-html__preview-overlay{height:100%;position:absolute;right:0;top:0;width:100%}.block-library-html__edit .block-editor-plain-text{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important}@media (min-width:600px){.block-library-html__edit .block-editor-plain-text{font-size:13px!important}}.block-library-html__edit .block-editor-plain-text:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid #0000!important}.wp-block-image.wp-block-image.is-selected .components-placeholder{background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;filter:none!important}.wp-block-image.wp-block-image.is-selected .components-placeholder>svg{opacity:0}.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration{display:none}.wp-block-image.wp-block-image .block-bindings-media-placeholder-message,.wp-block-image.wp-block-image.is-selected .components-placeholder:before{opacity:0}.wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message{opacity:1}.wp-block-image.wp-block-image .components-button,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-placeholder__label{transition: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;right:50%;top:50%;transform:translate(50%,-50%)}.wp-block-image .components-resizable-box__container{display:table}.wp-block-image .components-resizable-box__container img{display:block;height:inherit;width:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{left:0;margin:-1px 0;position:absolute;right: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{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{caption-side:bottom;display:table-caption}.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-left:auto;margin-right:auto;text-align:center}.wp-block-image__crop-area{max-width:100%;overflow:hidden;position:relative;width:100%}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none;border-radius:0}.wp-block-image__crop-icon{align-items:center;display:flex;justify-content:center;min-width:48px;padding:0 8px}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.wp-block-image__aspect-ratio{align-items:center;display:flex;height:46px;margin-bottom:-8px}.wp-block-image__aspect-ratio .components-button{padding-left:0;padding-right:0;width:36px}.wp-block-image__toolbar_content_textarea{width:250px}.wp-block-latest-posts{padding-right:2.5em}.wp-block-latest-posts.is-grid{padding-right:0}.wp-block-latest-posts>li{overflow:hidden}.wp-block-latest-posts li a>div{display:inline}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}.editor-latest-posts-image-alignment-control .components-base-control__label{display:block}.editor-latest-posts-image-alignment-control .components-toolbar{border-radius:2px}.wp-block-media-text__media{position:relative}.wp-block-media-text__media.is-transient img{opacity:.3}.wp-block-media-text__media .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.wp-block-media-text .__resizable_base__{grid-column:1/span 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"]{margin-bottom:28px;margin-top:28px;max-width:100%;text-align:center}.wp-block-more{display:block;text-align:center;white-space:nowrap}.wp-block-more input[type=text]{background:#fff;border:none;border-radius:4px;box-shadow:none;color:#757575;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;height:24px;margin:0;max-width:100%;padding:6px 8px;position:relative;text-align:center;text-transform:uppercase;white-space:nowrap}.wp-block-more input[type=text]:focus{box-shadow:none}.wp-block-more:before{border-top:3px dashed #ccc;content:"";left:0;position:absolute;right:0;top:50%}.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-right:0;margin-top:0;padding-right:0}.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block{margin:revert}.wp-block-navigation-item__label{display:inline}.wp-block-navigation-item,.wp-block-navigation__container{background-color:inherit}.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__submenu-container,.has-child.is-selected>.wp-block-navigation__submenu-container{display:flex;opacity:1;visibility:visible}.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__submenu-container{opacity:1;visibility:visible}.is-editing>.wp-block-navigation__container{display:flex;flex-direction:column;opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender{display:block;position:static;width:100%}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender .block-editor-button-block-appender{background:#1e1e1e;border-radius:2px;color:#fff;margin-left:0;margin-right:auto;padding:0;width:24px}.wp-block-navigation__submenu-container .block-list-appender{display:none}.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{align-items:center;border-radius:4px;display:flex;height:30px;margin:0 auto;padding:3px;position:relative}.block-library-colors-selector .block-library-colors-selector__state-selection{border-radius:11px;box-shadow:inset 0 0 0 1px #0003;height:22px;line-height:20px;margin-left:auto;margin-right:auto;min-height:22px;min-width:22px;padding:2px;width:22px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.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 .wp-block+.block-list-appender .block-editor-button-block-appender{background-color:#1e1e1e;color:#fff}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender.block-editor-button-block-appender.block-editor-button-block-appender{padding:0}.wp-block-navigation .wp-block .wp-block .block-editor-button-block-appender{background-color:initial;color:#1e1e1e}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.components-placeholder.wp-block-navigation-placeholder{background:none;box-shadow:none;color:inherit;min-height:0;outline:none;padding:0}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset{font-size:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button{margin-bottom:0}.wp-block-navigation.is-selected .components-placeholder.wp-block-navigation-placeholder{color:#1e1e1e}.wp-block-navigation-placeholder__preview{align-items:center;background:#0000;color:currentColor;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;min-width:96px}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview{display:none}.wp-block-navigation-placeholder__preview:before{border:1px dashed;border-radius:2px;border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview:before:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview>svg{fill:currentColor}.wp-block-navigation.is-vertical .is-medium .components-placeholder__fieldset,.wp-block-navigation.is-vertical .is-small .components-placeholder__fieldset{min-height:90px}.wp-block-navigation.is-vertical .is-large .components-placeholder__fieldset{min-height:132px}.wp-block-navigation-placeholder__controls,.wp-block-navigation-placeholder__preview{align-items:flex-start;flex-direction:row;padding:6px 8px}.wp-block-navigation-placeholder__controls{background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:none;float:right;position:relative;width:100%;z-index:1}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls{display:flex}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr{display:none}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions{align-items:flex-start;flex-direction:column}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr{display:none}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon{height:36px;margin-left:12px}.wp-block-navigation-placeholder__actions__indicator{align-items:center;display:flex;height:36px;justify-content:flex-start;line-height:0;margin-right:4px;padding:0 0 0 6px}.wp-block-navigation-placeholder__actions__indicator svg{margin-left:4px;fill:currentColor}.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset{flex-direction:row!important}.wp-block-navigation-placeholder__actions{align-items:center;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;gap:6px;height:100%}.wp-block-navigation-placeholder__actions .components-dropdown,.wp-block-navigation-placeholder__actions>.components-button{margin-left:0}.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr{background-color:#1e1e1e;border:0;height:100%;margin:auto 0;max-height:16px;min-height:1px;min-width:1px}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close{display:none}}.wp-block-navigation__responsive-container.is-menu-open{position:fixed;top:155px}@media (min-width:782px){.wp-block-navigation__responsive-container.is-menu-open{right:36px;top:93px}}@media (min-width:960px){.wp-block-navigation__responsive-container.is-menu-open{right:160px}}@media (min-width:782px){.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:141px}}.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:141px}.is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open{left:280px}.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{right:0;top:155px}@media (min-width:782px){.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{top:61px}.is-fullscreen-mode .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:109px}}.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:109px}body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open{bottom:0;left:0;right:0;top:0}.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close,.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{color:inherit;height:auto;padding:0}.components-heading.wp-block-navigation-off-canvas-editor__title{margin:0}.wp-block-navigation-off-canvas-editor__header{margin-bottom:8px}.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender{margin-top:16px}@keyframes fadein{0%{opacity:0}to{opacity:1}}.wp-block-navigation__loading-indicator-container{padding:8px 12px}.wp-block-navigation .wp-block-navigation__uncontrolled-inner-blocks-loading-indicator{margin-top:0}@keyframes fadeouthalf{0%{opacity:1}to{opacity:.5}}.wp-block-navigation-delete-menu-button{justify-content:center;margin-bottom:16px;width:100%}.components-button.is-link.wp-block-navigation-manage-menus-button{margin-bottom:16px}.wp-block-navigation__overlay-menu-preview{align-items:center;background-color:#f0f0f0;display:flex;height:64px;justify-content:space-between;margin-bottom:12px;padding:0 24px;width:100%}.wp-block-navigation__overlay-menu-preview.open{background-color:#fff;box-shadow:inset 0 0 0 1px #e0e0e0;outline:1px solid #0000}.wp-block-navigation-placeholder__actions hr+hr,.wp-block-navigation__toolbar-menu-selector.components-toolbar-group:empty{display:none}.wp-block-navigation__navigation-selector{margin-bottom:16px;width:100%}.wp-block-navigation__navigation-selector-button{border:1px solid;justify-content:space-between;width:100%}.wp-block-navigation__navigation-selector-button__icon{flex:0 0 auto}.wp-block-navigation__navigation-selector-button__label{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wp-block-navigation__navigation-selector-button--createnew{border:1px solid;margin-bottom:16px;width:100%}.wp-block-navigation__responsive-container-open.components-button{opacity:1}.wp-block-navigation__menu-inspector-controls{overflow-x:auto;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin;will-change:transform}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar{height:12px;width:12px}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-track{background-color:initial}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.wp-block-navigation__menu-inspector-controls:focus-within::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:focus::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:hover::-webkit-scrollbar-thumb{background-color:#949494}.wp-block-navigation__menu-inspector-controls:focus,.wp-block-navigation__menu-inspector-controls:focus-within,.wp-block-navigation__menu-inspector-controls:hover{scrollbar-color:#949494 #0000}@media (hover:none){.wp-block-navigation__menu-inspector-controls{scrollbar-color:#949494 #0000}}.wp-block-navigation__menu-inspector-controls__empty-message{margin-right:24px}.wp-block-navigation .block-list-appender{position:relative}.wp-block-navigation .has-child{cursor:pointer}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container{z-index:29}.wp-block-navigation .has-child.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child.is-selected>.wp-block-navigation__submenu-container{height:auto!important;min-width:200px!important;opacity:1!important;overflow:visible!important;visibility:visible!important;width:auto!important}.wp-block-navigation-item .wp-block-navigation-item__content{cursor:text}.wp-block-navigation-item.is-editing,.wp-block-navigation-item.is-selected{min-width:20px}.wp-block-navigation-item .block-list-appender{margin:16px 16px 16px auto}.wp-block-navigation-link__invalid-item{color:#000}.wp-block-navigation-link__placeholder{background-image:none!important;box-shadow:none!important;position:relative;text-decoration:none!important}.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{--wp-underline-color:var(--wp-admin-theme-color);background-image:linear-gradient(-45deg,#0000 20%,var(--wp-underline-color) 30%,var(--wp-underline-color) 36%,#0000 46%),linear-gradient(-135deg,#0000 54%,var(--wp-underline-color) 64%,var(--wp-underline-color) 70%,#0000 80%);background-position:100% 100%;background-repeat:repeat-x;background-size:6px 3px;padding-bottom:.1em}.is-dark-theme .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{--wp-underline-color:#fff}.wp-block-navigation-link__placeholder.wp-block-navigation-item__content{cursor:pointer}.link-control-transform{border-top:1px solid #ccc;padding:0 16px 8px}.link-control-transform__subheading{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.link-control-transform__items{display:flex;justify-content:space-between}.link-control-transform__item{flex-basis:33%;flex-direction:column;gap:8px;height:auto}.wp-block-navigation-submenu{display:block}.wp-block-navigation-submenu .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container{height:auto!important;min-width:200px!important;opacity:1!important;position:absolute;right:-1px;top:100%;visibility:visible!important;width:auto!important}@media (min-width:782px){.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{right:100%;top:-1px}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:#0000;content:"";display:block;height:100%;left:100%;position:absolute;width:.5em}}.block-editor-block-list__block[data-type="core/nextpage"]{margin-bottom:28px;margin-top:28px;max-width:100%;text-align:center}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{background:#fff;border-radius:4px;color:#757575;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;height:24px;padding:6px 8px;position:relative;text-transform:uppercase}.wp-block-nextpage:before{border-top:3px dashed #ccc;content:"";left:0;position:absolute;right:0;top:50%}.wp-block-navigation .wp-block-page-list,.wp-block-navigation .wp-block-page-list>div{background-color:inherit}.wp-block-navigation.items-justified-space-between .wp-block-page-list,.wp-block-navigation.items-justified-space-between .wp-block-page-list>div{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div{flex:inherit}.wp-block-navigation .wp-block-navigation__submenu-container>.wp-block-page-list{display:block}.wp-block-pages-list__item__link{pointer-events:none}@media (min-width:600px){.wp-block-page-list-modal{max-width:480px}}.wp-block-page-list-modal-buttons{display:flex;gap:12px;justify-content:flex-end}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;visibility:visible;width:auto}.wp-block-page-list__loading-indicator-container{padding:8px 12px}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:1}.block-editor-block-list__block[data-empty=true]+.block-editor-block-list__block[data-empty=true]:not([data-custom-placeholder=true]) [data-rich-text-placeholder]{opacity:0}.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-left[style*="writing-mode: vertical-lr"],.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-right[style*="writing-mode: vertical-rl"]{rotate:180deg}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{font-style:normal;text-transform:none}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{flex:1;min-width:80%}.wp-block[data-align=center] .wp-block-search .wp-block-search__inside-wrapper{margin:auto}.wp-block-search .wp-block-search__button{align-items:center;border-radius:initial;display:flex;height:auto;justify-content:center;text-align:center}.wp-block-search__components-button-group{margin-top:10px}.block-editor-block-list__block[data-type="core/separator"]{padding-bottom:.1px;padding-top:.1px}.block-editor-block-list__block[data-type="core/separator"].wp-block-separator.is-style-dots{background:none!important;border:none}[data-type="core/shortcode"].components-placeholder{min-height:0}.blocks-shortcode__textarea{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important;resize:none}@media (min-width:600px){.blocks-shortcode__textarea{font-size:13px!important}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid #0000!important}.wp-block-site-logo.aligncenter>div,.wp-block[data-align=center]>.wp-block-site-logo{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:60px;width:60px}.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder{align-items:center;border-radius:inherit;display:flex;height:100%;justify-content:center;min-height:48px;min-width:48px;padding:0;width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text,.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;padding:0;position:relative;width:48px}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:inherit}.block-library-site-logo__inspector-upload-container{position:relative}.block-library-site-logo__inspector-upload-container .components-drop-zone__content-icon{display:none}.block-library-site-logo__inspector-media-replace-container button.components-button,.block-library-site-logo__inspector-upload-container button.components-button{box-shadow:inset 0 0 0 1px #ccc;color:#1e1e1e;display:block;height:40px;width:100%}.block-library-site-logo__inspector-media-replace-container button.components-button:hover,.block-library-site-logo__inspector-upload-container button.components-button:hover{color:var(--wp-admin-theme-color)}.block-library-site-logo__inspector-media-replace-container button.components-button:focus,.block-library-site-logo__inspector-upload-container button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-media-replace-title,.block-library-site-logo__inspector-upload-container .block-library-site-logo__inspector-media-replace-title{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-library-site-logo__inspector-media-replace-container .components-dropdown{display:block}.block-library-site-logo__inspector-media-replace-container img{aspect-ratio:1;border-radius:50%!important;box-shadow:inset 0 0 0 1px #0003;min-width:20px;width:20px}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-readonly-logo-preview{display:flex;height:40px;padding:6px 12px}.wp-block-site-tagline__placeholder,.wp-block-site-title__placeholder{border:1px dashed;padding:1em 0}.editor-styles-wrapper .wp-block-site-title a{color:inherit}.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-links .wp-social-link button{color:currentColor;font-size:inherit;height:auto;line-height:0;opacity:1;padding:.25em}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-left:.66667em;padding-right:.66667em}.wp-block-social-links.is-style-logos-only .wp-social-link button{padding:0}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-right:8px}.wp-block-social-links.wp-block-social-links{background:none}.wp-social-link:hover{transform:none}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links__social-placeholder{display:flex;list-style:none;opacity:.8}.wp-block-social-links__social-placeholder>.wp-social-link{margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;visibility:hidden;width:0!important}.wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{display:flex}.wp-block-social-links__social-placeholder .wp-social-link{padding:.25em}.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link{padding-left:.66667em;padding-right:.66667em}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link{padding:0}.wp-block-social-links__social-placeholder .wp-social-link:before{border-radius:50%;content:"";display:block;height:1em;width:1em}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link:before{background:currentColor}.wp-block-social-links .wp-block-social-links__social-prompt{cursor:default;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:24px;list-style:none;margin-bottom:auto;margin-top:auto;min-height:24px;order:2;padding-left:8px}.wp-block.wp-block-social-links.aligncenter,.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .components-button:disabled{opacity:1}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-delay:0s;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}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;height:100%;min-height:8px;min-width:8px;position:absolute;width:100%;z-index:1}.block-library-spacer__resize-container.has-show-handle,.wp-block-spacer.is-hovered .block-library-spacer__resize-container,.wp-block-spacer.is-selected.custom-sizes-disabled{background:#0000001a}.is-dark-theme .block-library-spacer__resize-container.has-show-handle,.is-dark-theme .wp-block-spacer.is-hovered .block-library-spacer__resize-container,.is-dark-theme .wp-block-spacer.is-selected.custom-sizes-disabled{background:#ffffff26}.block-library-spacer__resize-container{clear:both}.block-library-spacer__resize-container:not(.is-resizing){height:100%!important;width:100%!important}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.block-library-spacer__resize-container.resize-horizontal{height:100%!important;margin-bottom:0}.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 td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:var(--wp-admin-theme-color);border-style:double;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.wp-block-table table.has-individual-borders td,.wp-block-table table.has-individual-borders th,.wp-block-table table.has-individual-borders tr,.wp-block-table table.has-individual-borders>*{border:1px solid}.blocks-table__placeholder-form.blocks-table__placeholder-form{align-items:flex-start;display:flex;flex-direction:column;gap:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{align-items:flex-end;flex-direction:row}}.blocks-table__placeholder-input{width:112px}.block-editor-template-part__selection-modal{z-index:1000001}.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-editor-template-part__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-template-part__selection-search{background:#fff;padding:16px 0;position:sticky;top:0;z-index:2}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}.wp-block-video.wp-block-video.is-selected .components-placeholder{background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e}.wp-block-video.wp-block-video.is-selected .components-placeholder>svg{opacity:0}.wp-block-video.wp-block-video.is-selected .components-placeholder .components-placeholder__illustration{display:none}.wp-block-video.wp-block-video.is-selected .components-placeholder:before{opacity:0}.wp-block-video.wp-block-video .components-button,.wp-block-video.wp-block-video .components-placeholder__instructions,.wp-block-video.wp-block-video .components-placeholder__label{transition:none}.wp-block[data-align=center]>.wp-block-video{text-align:center}.wp-block-video{position:relative}.wp-block-video.is-transient video{opacity:.3}.wp-block-video .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.editor-video-poster-control .components-base-control__label{display:block}.editor-video-poster-control .components-button{margin-left:8px}.block-library-video-tracks-editor{z-index:159990}.block-library-video-tracks-editor__track-list-track{padding-right:12px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-edit-track-label{color:#757575;display:block;font-size:11px;font-weight:500;margin-top:4px;text-transform:uppercase}.block-library-video-tracks-editor>.components-popover__content{padding:0;width:360px}.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label,.block-library-video-tracks-editor__track-list .components-menu-group__label{padding:0}.block-library-video-tracks-editor__add-tracks-container,.block-library-video-tracks-editor__single-track-editor,.block-library-video-tracks-editor__track-list{padding:12px}.editor-styles-wrapper ul.wp-block-post-template{list-style:none;margin-right:0;padding-right:0}.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 52px 16px 16px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:8px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:2px;padding:16px 0;position:sticky;top:0;z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.wp-block-query__enhanced-pagination-notice{margin:0}.wp-block[data-align=center]>.wp-block-query-pagination{justify-content:center}.editor-styles-wrapper .wp-block-query-pagination{max-width:100%}.editor-styles-wrapper .wp-block-query-pagination.block-editor-block-list__layout{margin:0}.wp-block-query-pagination>.wp-block-query-pagination-next,.wp-block-query-pagination>.wp-block-query-pagination-numbers,.wp-block-query-pagination>.wp-block-query-pagination-previous{margin-bottom:.5em;margin-right:.5em;margin-top:.5em}.wp-block-query-pagination>.wp-block-query-pagination-next:last-child,.wp-block-query-pagination>.wp-block-query-pagination-numbers:last-child,.wp-block-query-pagination>.wp-block-query-pagination-previous:last-child{margin-right:0}.wp-block-query-pagination-numbers a{text-decoration:underline}.wp-block-query-pagination-numbers .page-numbers{margin-left:2px}.wp-block-query-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-post-featured-image .block-editor-media-placeholder{-webkit-backdrop-filter:none;backdrop-filter:none;z-index:1}.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{align-items:center;display:flex;justify-content:center;min-height:200px;padding:0}.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image .components-placeholder .components-button,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;padding:0;position:relative;width:48px}.wp-block-post-featured-image .components-placeholder .components-button>svg,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button>svg{color:inherit}.wp-block-post-featured-image .components-placeholder:where(.has-border-color),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where(.has-border-color),.wp-block-post-featured-image img:where(.has-border-color){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-color]),.wp-block-post-featured-image img:where([style*=border-top-color]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-color]),.wp-block-post-featured-image img:where([style*=border-right-color]){border-left-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image img:where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-color]),.wp-block-post-featured-image img:where([style*=border-left-color]){border-right-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-width]),.wp-block-post-featured-image img:where([style*=border-width]){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-width]),.wp-block-post-featured-image img:where([style*=border-top-width]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-width]),.wp-block-post-featured-image img:where([style*=border-right-width]){border-left-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image img:where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-width]),.wp-block-post-featured-image img:where([style*=border-left-width]){border-right-style:solid}.wp-block-post-featured-image[style*=height] .components-placeholder{height:100%;min-height:48px;min-width:48px;width:100%}.wp-block-post-featured-image>a{cursor:default}.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-button,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__instructions,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}div[data-type="core/post-featured-image"] img{display:block;height:auto;max-width:100%}.wp-block-post-comments-form *{pointer-events:none}.wp-block-post-comments-form .block-editor-warning *{pointer-events:auto}.wp-block-post-content.wp-block-post-content{-webkit-user-select:none;user-select:none}.wp-element-button{cursor:revert}.wp-element-button[role=textbox]{cursor:text}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}:where(.editor-styles-wrapper){--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:where(.editor-styles-wrapper) .has-regular-font-size{font-size:16px}:where(.editor-styles-wrapper) .has-larger-font-size{font-size:42px}:where(.editor-styles-wrapper) .has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}:where(.editor-styles-wrapper) .has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}:where(.editor-styles-wrapper) iframe:not([frameborder]){border:0} \ No newline at end of file
+ul.wp-block-archives{padding-right:2.5em}.wp-block-audio{margin-left:0;margin-right:0;position:relative}.wp-block-audio.is-transient audio{opacity:.3}.wp-block-audio .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.wp-block-avatar__image img{width:100%}.wp-block-avatar.aligncenter .components-resizable-box__container{margin:0 auto}.wp-block[data-align=center]>.wp-block-button{margin-left:auto;margin-right:auto;text-align:center}.wp-block[data-align=right]>.wp-block-button{text-align:right}.wp-block-button{cursor:text;position:relative}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}div[data-type="core/button"]{display:table}.editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block,.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{margin:0}.wp-block-buttons>.block-list-appender{align-items:center;display:inline-flex}.wp-block-buttons.is-vertical>.block-list-appender .block-list-appender__toggle{justify-content:flex-start}.wp-block-buttons>.wp-block-button:focus{box-shadow:none}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center]{margin-left:auto;margin-right:auto;margin-top:0;width:100%}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center] .wp-block-button{margin-bottom:0}.editor-styles-wrapper .wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block[data-align=center]>.wp-block-buttons{align-items:center;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{justify-content:flex-end}.wp-block-categories ul{padding-right:2.5em}.wp-block-categories ul ul{margin-top:6px}[data-align=center] .wp-block-categories{text-align:center}.wp-block-code code{background:none}.wp-block-columns :where(.wp-block){margin-left:0;margin-right:0;max-width:none}html :where(.wp-block-column){margin-bottom:0;margin-top:0}.wp-block-comments__legacy-placeholder,.wp-block-post-comments{box-sizing:border-box}.wp-block-comments__legacy-placeholder .alignleft,.wp-block-post-comments .alignleft{float:right}.wp-block-comments__legacy-placeholder .alignright,.wp-block-post-comments .alignright{float:left}.wp-block-comments__legacy-placeholder .navigation:after,.wp-block-post-comments .navigation:after{clear:both;content:"";display:table}.wp-block-comments__legacy-placeholder .commentlist,.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-comments__legacy-placeholder .commentlist .comment,.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-right:3.25em}.wp-block-comments__legacy-placeholder .commentlist .comment p,.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-comments__legacy-placeholder .commentlist .children,.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-comments__legacy-placeholder .comment-author,.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-comments__legacy-placeholder .comment-author .avatar,.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;margin-top:.5em;width:2.5em}.wp-block-comments__legacy-placeholder .comment-author cite,.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-comments__legacy-placeholder .comment-meta,.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-comments__legacy-placeholder .comment-meta b,.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-comments__legacy-placeholder .comment-meta .comment-awaiting-moderation,.wp-block-post-comments .comment-meta .comment-awaiting-moderation{display:block;margin-bottom:1em;margin-top:1em}.wp-block-comments__legacy-placeholder .comment-body .commentmetadata,.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-comments__legacy-placeholder .comment-form-author label,.wp-block-comments__legacy-placeholder .comment-form-comment label,.wp-block-comments__legacy-placeholder .comment-form-email label,.wp-block-comments__legacy-placeholder .comment-form-url label,.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-comments__legacy-placeholder .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder .comment-form textarea,.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-comments__legacy-placeholder .comment-form-cookies-consent,.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-comments__legacy-placeholder .comment-form-cookies-consent #wp-comment-cookies-consent,.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-comments__legacy-placeholder .comment-reply-title,.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-comments__legacy-placeholder .comment-reply-title :where(small),.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-right:.5em}.wp-block-comments__legacy-placeholder .reply,.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-comments__legacy-placeholder input:not([type=submit]),.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-comments__legacy-placeholder input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}:where(.wp-block-post-comments input[type=submit]){border:none}.block-library-comments-toolbar__popover .components-popover__content{min-width:230px}.wp-block-comments__legacy-placeholder *{pointer-events:none}.wp-block-comment-author-avatar__placeholder{border:1px dashed;height:100%;width:100%;stroke:currentColor;stroke-dasharray:3}.wp-block[data-align=center]>.wp-block-comments-pagination{justify-content:center}.editor-styles-wrapper .wp-block-comments-pagination{max-width:100%}.editor-styles-wrapper .wp-block-comments-pagination.block-editor-block-list__layout{margin:0}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers,.wp-block-comments-pagination>.wp-block-comments-pagination-previous{margin-bottom:.5em;margin-right:.5em;margin-top:.5em}.wp-block-comments-pagination>.wp-block-comments-pagination-next:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-previous:last-child{margin-right:0}.wp-block-comments-pagination-numbers a{text-decoration:underline}.wp-block-comments-pagination-numbers .page-numbers{margin-left:2px}.wp-block-comments-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-comments-title.has-background{padding:inherit}.editor-styles-wrapper .wp-block-cover{box-sizing:border-box}.wp-block-cover.is-placeholder{align-items:stretch;display:flex;min-height:240px;padding:0!important}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient{position:relative}.wp-block-cover.is-transient:before{background-color:#fff;content:"";height:100%;opacity:.3;position:absolute;width:100%;z-index:1}.wp-block-cover .components-spinner{margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);z-index:1}.wp-block-cover .wp-block-cover__inner-container{margin-left:0;margin-right:0;text-align:right}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{bottom:0;left:0;position:absolute;right:0;top:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-right:auto}.block-library-cover__resize-container{bottom:0;left:0;min-height:50px;position:absolute!important;right:0;top:0}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div{overflow:visible;pointer-events:none}.wp-block-cover>.components-drop-zone .components-drop-zone__content{opacity:.8!important}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px}.wp-block-details summary div{display:inline}.wp-block-embed{clear:both;margin-left:0;margin-right:0}.wp-block-embed.is-loading{display:flex;justify-content:center}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-post-content .wp-block-embed__learn-more a{color:var(--wp-admin-theme-color)}.block-library-embed__interactive-overlay{bottom:0;left:0;opacity:0;position:absolute;right:0;top:0}.wp-block[data-align=left]>.wp-block-embed,.wp-block[data-align=right]>.wp-block-embed{max-width:360px;width:100%}.wp-block[data-align=left]>.wp-block-embed .wp-block-embed__wrapper,.wp-block[data-align=right]>.wp-block-embed .wp-block-embed__wrapper{min-width:280px}.wp-block-file{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:0}.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{height:auto}.wp-block[data-align=center]>.wp-block-file{text-align:center}.wp-block-file .components-resizable-box__container{margin-bottom:1em}.wp-block-file .wp-block-file__preview{height:100%;margin-bottom:1em;width:100%}.wp-block-file .wp-block-file__preview-overlay{bottom:0;left:0;position:absolute;right:0;top:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file a{min-width:1em}.wp-block-file a:not(.wp-block-file__button){display:inline-block}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-right:.75em}.wp-block-form-input .is-input-hidden{background:repeating-linear-gradient(-45deg,#0000,#0000 5px,currentColor 0,currentColor 6px);border:1px dashed;box-sizing:border-box;font-size:.85em;opacity:.3;padding:.5em}.wp-block-form-input .is-input-hidden input[type=text]{background:#0000}.wp-block-form-input.is-selected .is-input-hidden{background:none;opacity:1}.wp-block-form-input.is-selected .is-input-hidden input[type=text]{background:unset}.wp-block-form-submission-notification>*{background:repeating-linear-gradient(-45deg,#0000,#0000 5px,currentColor 0,currentColor 6px);border:1px dashed;box-sizing:border-box;opacity:.25}.wp-block-form-submission-notification.is-selected>*,.wp-block-form-submission-notification:has(.is-selected)>*{background:none;opacity:1}.wp-block-form-submission-notification.is-selected:after,.wp-block-form-submission-notification:has(.is-selected):after{display:none!important}.wp-block-form-submission-notification:after{align-items:center;display:flex;font-size:1.1em;height:100%;justify-content:center;position:absolute;right:0;top:0;width:100%}.wp-block-form-submission-notification.form-notification-type-success:after{content:attr(data-message-success)}.wp-block-form-submission-notification.form-notification-type-error:after{content:attr(data-message-error)}.wp-block-freeform.block-library-rich-text__tinymce{height:auto}.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{margin-right:0;padding-right:2.5em}.wp-block-freeform.block-library-rich-text__tinymce blockquote{border-right:4px solid #000;box-shadow:inset 0 0 0 0 #ddd;margin:0;padding-right:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;white-space:pre-wrap}.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:var(--wp-admin-theme-color)}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{background:#e5f5fa;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;margin:0 -2px;padding:0 2px}.wp-block-freeform.block-library-rich-text__tinymce code{background:#f0f0f0;border-radius:2px;color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;padding:2px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#ddd}.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{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-position:50%;background-repeat:no-repeat;background-size:1900px 20px;cursor:default;display:block;height:20px;margin:15px auto;outline:0;width:96%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:initial}.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{margin:0;padding-top:.5em}.wp-block-freeform.block-library-rich-text__tinymce .wpview{border:1px solid #0000;clear:both;margin-bottom:16px;position:relative;width:99.99%}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{background:#0000;display:block;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{bottom:0;left:0;position:absolute;right:0;top: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 #ddd;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #ddd;margin:0;padding:1em 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:#0000}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;font-size:32px;height:32px;margin:0 auto;width:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{clear:both;content:"";display:table}.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{line-height:1;margin:auto -6px;overflow-x:hidden;padding:6px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{box-sizing:border-box;float:right;margin:0;padding:6px;text-align:center}.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.3333333333%}.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.6666666667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.2857142857%}.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.1111111111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{border:none;height:auto;max-width:100%;padding:0}div[data-type="core/freeform"]:before{border:1px solid #ddd;outline:1px solid #0000;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-delay:0s;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{clear:both;content:"";display:table}.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i,.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i{color:#1e1e1e}.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{border:1px solid #ddd;border-bottom:none;border-radius:2px;display:none;margin:0 0 8px;padding:0;position:sticky;top:0;width:auto;z-index:31}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar{border-color:#1e1e1e;display:block}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{background:#f5f5f5;border-bottom:1px solid #e2e4e7;display:block}.block-library-classic__toolbar:empty:before{color:#555d66;content:attr(data-placeholder);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;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}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{height:50vh!important}@media (min-width:960px){.block-editor-freeform-modal .block-editor-freeform-modal__content:not(.is-full-screen){height:9999rem}.block-editor-freeform-modal .block-editor-freeform-modal__content .components-modal__header+div{height:100%}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-tinymce{height:calc(100% - 52px)}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-container-body{display:flex;flex-direction:column;height:100%;min-width:50vw}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area{display:flex;flex-direction:column;flex-grow:1}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{flex-grow:1;height:10px!important}}.block-editor-freeform-modal__actions{margin-top:16px}:root :where(figure.wp-block-gallery){display:block}:root :where(figure.wp-block-gallery)>.blocks-gallery-caption{flex:0 0 100%}:root :where(figure.wp-block-gallery)>.blocks-gallery-media-placeholder-wrapper{flex-basis:100%}:root :where(figure.wp-block-gallery) .wp-block-image .components-notice.is-error{display:block}:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__content{margin:4px 0}:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__dismiss{left:5px;position:absolute;top:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder{margin:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder .components-placeholder__label{display:flex}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder figcaption{z-index:2}:root :where(figure.wp-block-gallery) .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.gallery-settings-buttons .components-button:first-child{margin-left:8px}.gallery-image-sizes .components-base-control__label{display:block;margin-bottom:4px}.gallery-image-sizes .gallery-image-sizes__loading{align-items:center;color:#757575;display:flex;font-size:12px}.gallery-image-sizes .components-spinner{margin:0 4px 0 8px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{bottom:0;box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";left:0;outline:2px solid #0000;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{height:100%;margin:0}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{background:#fff;border:1px solid #1e1e1e;border-radius:2px;display:none;margin:8px;position:absolute;top:-2px;transition:box-shadow .2s ease-out;z-index:20}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-delay:0s;transition-duration:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{height:inherit;padding:0;width:inherit}}.block-library-gallery-item__inline-menu.is-left{right:-2px}.block-library-gallery-item__inline-menu.is-right{left:-2px}.wp-block-gallery ul.blocks-gallery-grid{margin:0;padding:0}@media (min-width:600px){.wp-block-update-gallery-modal{max-width:480px}}.wp-block-update-gallery-modal-buttons{display:flex;gap:12px;justify-content:flex-end}.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[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-bottom:18px;margin-top:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;flex:1;flex-direction:inherit;width:100%}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{border:1px dashed;border-radius:2px;content:"";display:flex;flex:1 0 48px;min-height:46px;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all}.block-library-html__edit .block-library-html__preview-overlay{height:100%;position:absolute;right:0;top:0;width:100%}.block-library-html__edit .block-editor-plain-text{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;direction:ltr;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important}@media (min-width:600px){.block-library-html__edit .block-editor-plain-text{font-size:13px!important}}.block-library-html__edit .block-editor-plain-text:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid #0000!important}.wp-block-image.wp-block-image.is-selected .components-placeholder{background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;filter:none!important}.wp-block-image.wp-block-image.is-selected .components-placeholder>svg{opacity:0}.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration{display:none}.wp-block-image.wp-block-image .block-bindings-media-placeholder-message,.wp-block-image.wp-block-image.is-selected .components-placeholder:before{opacity:0}.wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message{opacity:1}.wp-block-image.wp-block-image .components-button,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-placeholder__label{transition: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;right:50%;top:50%;transform:translate(50%,-50%)}.wp-block-image .components-resizable-box__container{display:table}.wp-block-image .components-resizable-box__container img{display:block;height:inherit;width:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{left:0;margin:-1px 0;position:absolute;right: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{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{caption-side:bottom;display:table-caption}.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-left:auto;margin-right:auto;text-align:center}.wp-block-image__crop-area{max-width:100%;overflow:hidden;position:relative;width:100%}.wp-block-image__crop-area .reactEasyCrop_Container{pointer-events:auto}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none;border-radius:0}.wp-block-image__crop-icon{align-items:center;display:flex;justify-content:center;min-width:48px;padding:0 8px}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.wp-block-image__toolbar_content_textarea{width:250px}.wp-block-latest-posts>li{overflow:hidden}.wp-block-latest-posts li a>div{display:inline}.editor-latest-posts-image-alignment-control .components-base-control__label{display:block}.editor-latest-posts-image-alignment-control .components-toolbar{border-radius:2px}:root :where(.wp-block-latest-posts){padding-right:2.5em}:root :where(.wp-block-latest-posts.is-grid),:root :where(.wp-block-latest-posts__list){padding-right:0}.wp-block-media-text__media{position:relative}.wp-block-media-text__media.is-transient img{opacity:.3}.wp-block-media-text__media .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.wp-block-media-text .__resizable_base__{grid-column:1/span 2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .components-placeholder.has-illustration,.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}.wp-block-media-text--placeholder-image{min-height:205px}.block-editor-block-list__block[data-type="core/more"]{margin-bottom:28px;margin-top:28px;max-width:100%;text-align:center}.wp-block-more{display:block;text-align:center;white-space:nowrap}.wp-block-more input[type=text]{background:#fff;border:none;border-radius:4px;box-shadow:none;color:#757575;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;height:24px;margin:0;max-width:100%;padding:6px 8px;position:relative;text-align:center;text-transform:uppercase;white-space:nowrap}.wp-block-more input[type=text]:focus{box-shadow:none}.wp-block-more:before{border-top:3px dashed #ccc;content:"";left:0;position:absolute;right:0;top:50%}.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-right:0;margin-top:0;padding-right:0}.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block{margin:revert}.wp-block-navigation-item__label{display:inline}.wp-block-navigation-item,.wp-block-navigation__container{background-color:inherit}.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__submenu-container,.has-child.is-selected>.wp-block-navigation__submenu-container{display:flex;opacity:1;visibility:visible}.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__submenu-container{opacity:1;visibility:visible}.is-editing>.wp-block-navigation__container{display:flex;flex-direction:column;opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender{display:block;position:static;width:100%}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender .block-editor-button-block-appender{background:#1e1e1e;border-radius:2px;color:#fff;margin-left:0;margin-right:auto;padding:0;width:24px}.wp-block-navigation__submenu-container .block-list-appender{display:none}.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{align-items:center;border-radius:4px;display:flex;height:30px;margin:0 auto;padding:3px;position:relative}.block-library-colors-selector .block-library-colors-selector__state-selection{border-radius:11px;box-shadow:inset 0 0 0 1px #0003;height:22px;line-height:20px;margin-left:auto;margin-right:auto;min-height:22px;min-width:22px;padding:2px;width:22px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.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 .wp-block+.block-list-appender .block-editor-button-block-appender{background-color:#1e1e1e;color:#fff}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender.block-editor-button-block-appender.block-editor-button-block-appender{padding:0}.wp-block-navigation .wp-block .wp-block .block-editor-button-block-appender{background-color:initial;color:#1e1e1e}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.components-placeholder.wp-block-navigation-placeholder{background:none;box-shadow:none;color:inherit;min-height:0;outline:none;padding:0}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset{font-size:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button{margin-bottom:0}.wp-block-navigation.is-selected .components-placeholder.wp-block-navigation-placeholder{color:#1e1e1e}.wp-block-navigation-placeholder__preview{align-items:center;background:#0000;color:currentColor;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;min-width:96px}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview{display:none}.wp-block-navigation-placeholder__preview:before{border:1px dashed;border-radius:2px;border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview:before:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview>svg{fill:currentColor}.wp-block-navigation.is-vertical .is-medium .components-placeholder__fieldset,.wp-block-navigation.is-vertical .is-small .components-placeholder__fieldset{min-height:90px}.wp-block-navigation.is-vertical .is-large .components-placeholder__fieldset{min-height:132px}.wp-block-navigation-placeholder__controls,.wp-block-navigation-placeholder__preview{align-items:flex-start;flex-direction:row;padding:6px 8px}.wp-block-navigation-placeholder__controls{background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:none;float:right;position:relative;width:100%;z-index:1}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls{display:flex}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr{display:none}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions{align-items:flex-start;flex-direction:column}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr{display:none}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon{height:36px;margin-left:12px}.wp-block-navigation-placeholder__actions__indicator{align-items:center;display:flex;height:36px;justify-content:flex-start;line-height:0;margin-right:4px;padding:0 0 0 6px}.wp-block-navigation-placeholder__actions__indicator svg{margin-left:4px;fill:currentColor}.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset{flex-direction:row!important}.wp-block-navigation-placeholder__actions{align-items:center;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;gap:6px;height:100%}.wp-block-navigation-placeholder__actions .components-dropdown,.wp-block-navigation-placeholder__actions>.components-button{margin-left:0}.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr{background-color:#1e1e1e;border:0;height:100%;margin:auto 0;max-height:16px;min-height:1px;min-width:1px}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close{display:none}}.wp-block-navigation__responsive-container.is-menu-open{position:fixed;top:155px}@media (min-width:782px){.wp-block-navigation__responsive-container.is-menu-open{right:36px;top:93px}}@media (min-width:960px){.wp-block-navigation__responsive-container.is-menu-open{right:160px}}@media (min-width:782px){.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:141px}}.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:141px}.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{right:0;top:155px}@media (min-width:782px){.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{top:61px}.is-fullscreen-mode .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:109px}}.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:109px}body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open{bottom:0;left:0;right:0;top:0}.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close,.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{color:inherit;height:auto;padding:0}.components-heading.wp-block-navigation-off-canvas-editor__title{margin:0}.wp-block-navigation-off-canvas-editor__header{margin-bottom:8px}.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender{margin-top:16px}@keyframes fadein{0%{opacity:0}to{opacity:1}}.wp-block-navigation__loading-indicator-container{padding:8px 12px}.wp-block-navigation .wp-block-navigation__uncontrolled-inner-blocks-loading-indicator{margin-top:0}@keyframes fadeouthalf{0%{opacity:1}to{opacity:.5}}.wp-block-navigation-delete-menu-button{justify-content:center;margin-bottom:16px;width:100%}.components-button.is-link.wp-block-navigation-manage-menus-button{margin-bottom:16px}.wp-block-navigation__overlay-menu-preview{align-items:center;background-color:#f0f0f0;display:flex;height:64px;justify-content:space-between;margin-bottom:12px;padding:0 24px;width:100%}.wp-block-navigation__overlay-menu-preview.open{background-color:#fff;box-shadow:inset 0 0 0 1px #e0e0e0;outline:1px solid #0000}.wp-block-navigation-placeholder__actions hr+hr,.wp-block-navigation__toolbar-menu-selector.components-toolbar-group:empty{display:none}.wp-block-navigation__navigation-selector{margin-bottom:16px;width:100%}.wp-block-navigation__navigation-selector-button{border:1px solid;justify-content:space-between;width:100%}.wp-block-navigation__navigation-selector-button__icon{flex:0 0 auto}.wp-block-navigation__navigation-selector-button__label{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wp-block-navigation__navigation-selector-button--createnew{border:1px solid;margin-bottom:16px;width:100%}.wp-block-navigation__responsive-container-open.components-button{opacity:1}.wp-block-navigation__menu-inspector-controls{overflow-x:auto;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin;will-change:transform}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar{height:12px;width:12px}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-track{background-color:initial}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.wp-block-navigation__menu-inspector-controls:focus-within::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:focus::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:hover::-webkit-scrollbar-thumb{background-color:#949494}.wp-block-navigation__menu-inspector-controls:focus,.wp-block-navigation__menu-inspector-controls:focus-within,.wp-block-navigation__menu-inspector-controls:hover{scrollbar-color:#949494 #0000}@media (hover:none){.wp-block-navigation__menu-inspector-controls{scrollbar-color:#949494 #0000}}.wp-block-navigation__menu-inspector-controls__empty-message{margin-right:24px}.wp-block-navigation .block-list-appender{position:relative}.wp-block-navigation .has-child{cursor:pointer}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container{z-index:29}.wp-block-navigation .has-child.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child.is-selected>.wp-block-navigation__submenu-container{height:auto!important;min-width:200px!important;opacity:1!important;overflow:visible!important;visibility:visible!important;width:auto!important}.wp-block-navigation-item .wp-block-navigation-item__content{cursor:text}.wp-block-navigation-item.is-editing,.wp-block-navigation-item.is-selected{min-width:20px}.wp-block-navigation-item .block-list-appender{margin:16px 16px 16px auto}.wp-block-navigation-link__invalid-item{color:#000}.wp-block-navigation-link__placeholder{background-image:none!important;box-shadow:none!important;position:relative;text-decoration:none!important}.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{--wp-underline-color:var(--wp-admin-theme-color);background-image:linear-gradient(-45deg,#0000 20%,var(--wp-underline-color) 30%,var(--wp-underline-color) 36%,#0000 46%),linear-gradient(-135deg,#0000 54%,var(--wp-underline-color) 64%,var(--wp-underline-color) 70%,#0000 80%);background-position:100% 100%;background-repeat:repeat-x;background-size:6px 3px;padding-bottom:.1em}.is-dark-theme .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{--wp-underline-color:#fff}.wp-block-navigation-link__placeholder.wp-block-navigation-item__content{cursor:pointer}.link-control-transform{border-top:1px solid #ccc;padding:0 16px 8px}.link-control-transform__subheading{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.link-control-transform__items{display:flex;justify-content:space-between}.link-control-transform__item{flex-basis:33%;flex-direction:column;gap:8px;height:auto}.wp-block-navigation-submenu{display:block}.wp-block-navigation-submenu .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container{height:auto!important;min-width:200px!important;opacity:1!important;position:absolute;right:-1px;top:100%;visibility:visible!important;width:auto!important}@media (min-width:782px){.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{right:100%;top:-1px}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:#0000;content:"";display:block;height:100%;left:100%;position:absolute;width:.5em}}.block-editor-block-list__block[data-type="core/nextpage"]{margin-bottom:28px;margin-top:28px;max-width:100%;text-align:center}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{background:#fff;border-radius:4px;color:#757575;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;height:24px;padding:6px 8px;position:relative;text-transform:uppercase}.wp-block-nextpage:before{border-top:3px dashed #ccc;content:"";left:0;position:absolute;right:0;top:50%}.wp-block-navigation .wp-block-page-list,.wp-block-navigation .wp-block-page-list>div{background-color:inherit}.wp-block-navigation.items-justified-space-between .wp-block-page-list,.wp-block-navigation.items-justified-space-between .wp-block-page-list>div{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div{flex:inherit}.wp-block-navigation .wp-block-navigation__submenu-container>.wp-block-page-list{display:block}.wp-block-pages-list__item__link{pointer-events:none}@media (min-width:600px){.wp-block-page-list-modal{max-width:480px}}.wp-block-page-list-modal-buttons{display:flex;gap:12px;justify-content:flex-end}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;visibility:visible;width:auto}.wp-block-page-list__loading-indicator-container{padding:8px 12px}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:1}.block-editor-block-list__block[data-empty=true]+.block-editor-block-list__block[data-empty=true]:not([data-custom-placeholder=true]) [data-rich-text-placeholder]{opacity:0}.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-left[style*="writing-mode: vertical-lr"],.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-right[style*="writing-mode: vertical-rl"]{rotate:180deg}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{font-style:normal;text-transform:none}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{flex:1 1 auto}.wp-block[data-align=center] .wp-block-search .wp-block-search__inside-wrapper{margin:auto}.wp-block-search .wp-block-search__button{align-items:center;border-radius:initial;display:flex;height:auto;justify-content:center;text-align:center}.wp-block-search__components-button-group{margin-top:10px}.block-editor-block-list__block[data-type="core/separator"]{padding-bottom:.1px;padding-top:.1px}.blocks-shortcode__textarea{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important;resize:none}@media (min-width:600px){.blocks-shortcode__textarea{font-size:13px!important}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid #0000!important}.wp-block-site-logo.aligncenter>div,.wp-block[data-align=center]>.wp-block-site-logo{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.is-transient{position:relative}.wp-block-site-logo.is-transient img{opacity:.3}.wp-block-site-logo.is-transient .components-spinner{margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:60px;width:60px}.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder{align-items:center;border-radius:inherit;display:flex;height:100%;justify-content:center;min-height:48px;min-width:48px;padding:0;width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text,.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;margin:auto;padding:0;position:relative;width:48px}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:inherit}.block-library-site-logo__inspector-upload-container{position:relative}.block-library-site-logo__inspector-upload-container .components-drop-zone__content-icon{display:none}.block-library-site-logo__inspector-media-replace-container button.components-button,.block-library-site-logo__inspector-upload-container button.components-button{box-shadow:inset 0 0 0 1px #ccc;color:#1e1e1e;display:block;height:40px;width:100%}.block-library-site-logo__inspector-media-replace-container button.components-button:hover,.block-library-site-logo__inspector-upload-container button.components-button:hover{color:var(--wp-admin-theme-color)}.block-library-site-logo__inspector-media-replace-container button.components-button:focus,.block-library-site-logo__inspector-upload-container button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-media-replace-title,.block-library-site-logo__inspector-upload-container .block-library-site-logo__inspector-media-replace-title{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-library-site-logo__inspector-media-replace-container .components-dropdown{display:block}.block-library-site-logo__inspector-media-replace-container img{aspect-ratio:1;border-radius:50%!important;box-shadow:inset 0 0 0 1px #0003;min-width:20px;width:20px}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-readonly-logo-preview{display:flex;height:40px;padding:6px 12px}.wp-block-site-tagline__placeholder,.wp-block-site-title__placeholder{border:1px dashed;padding:1em 0}.editor-styles-wrapper :where(.wp-block-site-title a){color:inherit}.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-link-anchor{align-items:center;background:none;border:0;box-sizing:border-box;color:currentColor;cursor:pointer;display:inline-flex;font-size:inherit;height:auto;opacity:1;padding:.25em}.wp-block-social-link-anchor:focus:not(:disabled){border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid #0000}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link button){padding-left:.66667em;padding-right:.66667em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link button){padding:0}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-right:8px}.wp-social-link:hover{transform:none}:root :where(.wp-block-social-links),:root :where(.wp-block-social-links.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link){padding:0}:root :where(.wp-block-social-links__social-placeholder .wp-social-link){padding:.25em}:root :where(.wp-block-social-links.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link){padding-left:.66667em;padding-right:.66667em}.wp-block-social-links__social-placeholder{display:flex;list-style:none;opacity:.8}.wp-block-social-links__social-placeholder>.wp-social-link{margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;visibility:hidden;width:0!important}.wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{display:flex}.wp-block-social-links__social-placeholder .wp-social-link:before{border-radius:50%;content:"";display:block;height:1em;width:1em}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link:before{background:currentColor}.wp-block-social-links .wp-block-social-links__social-prompt{cursor:default;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:24px;list-style:none;margin-bottom:auto;margin-top:auto;min-height:24px;padding-left:8px}.wp-block.wp-block-social-links.aligncenter,.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .components-button:disabled{opacity:1}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-delay:0s;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}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;height:100%;min-height:8px;min-width:8px;position:absolute;width:100%;z-index:1}.block-library-spacer__resize-container.has-show-handle,.wp-block-spacer.is-hovered .block-library-spacer__resize-container,.wp-block-spacer.is-selected.custom-sizes-disabled{background:#0000001a}.is-dark-theme .block-library-spacer__resize-container.has-show-handle,.is-dark-theme .wp-block-spacer.is-hovered .block-library-spacer__resize-container,.is-dark-theme .wp-block-spacer.is-selected.custom-sizes-disabled{background:#ffffff26}.block-library-spacer__resize-container{clear:both}.block-library-spacer__resize-container:not(.is-resizing){height:100%!important;width:100%!important}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.block-library-spacer__resize-container.resize-horizontal{height:100%!important;margin-bottom:0}.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 td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:var(--wp-admin-theme-color);border-style:double;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.wp-block-table table.has-individual-borders td,.wp-block-table table.has-individual-borders th,.wp-block-table table.has-individual-borders tr,.wp-block-table table.has-individual-borders>*{border:1px solid}.blocks-table__placeholder-form.blocks-table__placeholder-form{align-items:flex-start;display:flex;flex-direction:column;gap:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{align-items:flex-end;flex-direction:row}}.blocks-table__placeholder-input{width:112px}.block-editor-template-part__selection-modal{z-index:1000001}.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-editor-template-part__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-template-part__selection-search{background:#fff;padding:16px 0;position:sticky;top:0;z-index:2}.block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{outline-color:var(--wp-block-synced-color)}.is-dark-theme .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{outline-color:#fff}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.has-editable-outline:after{border:none}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}.wp-block-video.wp-block-video.is-selected .components-placeholder{background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e}.wp-block-video.wp-block-video.is-selected .components-placeholder>svg{opacity:0}.wp-block-video.wp-block-video.is-selected .components-placeholder .components-placeholder__illustration{display:none}.wp-block-video.wp-block-video.is-selected .components-placeholder:before{opacity:0}.wp-block-video.wp-block-video .components-button,.wp-block-video.wp-block-video .components-placeholder__instructions,.wp-block-video.wp-block-video .components-placeholder__label{transition:none}.wp-block[data-align=center]>.wp-block-video{text-align:center}.wp-block-video{position:relative}.wp-block-video.is-transient video{opacity:.3}.wp-block-video .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.editor-video-poster-control .components-base-control__label{display:block}.editor-video-poster-control .components-button{margin-left:8px}.block-library-video-tracks-editor{z-index:159990}.block-library-video-tracks-editor__track-list-track{padding-right:12px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-edit-track-label{color:#757575;display:block;font-size:11px;font-weight:500;margin-top:4px;text-transform:uppercase}.block-library-video-tracks-editor>.components-popover__content{padding:0;width:360px}.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label,.block-library-video-tracks-editor__track-list .components-menu-group__label{padding:0}.block-library-video-tracks-editor__add-tracks-container,.block-library-video-tracks-editor__single-track-editor,.block-library-video-tracks-editor__track-list{padding:12px}.editor-styles-wrapper ul.wp-block-post-template{list-style:none;margin-right:0;padding-right:0}.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 52px 16px 16px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:8px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:-4px;padding:16px 0;position:sticky;top:0;transform:translateY(-4px);z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.wp-block-query__enhanced-pagination-notice{margin:0}.wp-block[data-align=center]>.wp-block-query-pagination{justify-content:center}.editor-styles-wrapper .wp-block-query-pagination{max-width:100%}.editor-styles-wrapper .wp-block-query-pagination.block-editor-block-list__layout{margin:0}.wp-block-query-pagination>.wp-block-query-pagination-next,.wp-block-query-pagination>.wp-block-query-pagination-numbers,.wp-block-query-pagination>.wp-block-query-pagination-previous{margin-bottom:.5em;margin-right:.5em;margin-top:.5em}.wp-block-query-pagination>.wp-block-query-pagination-next:last-child,.wp-block-query-pagination>.wp-block-query-pagination-numbers:last-child,.wp-block-query-pagination>.wp-block-query-pagination-previous:last-child{margin-right:0}.wp-block-query-pagination-numbers a{text-decoration:underline}.wp-block-query-pagination-numbers .page-numbers{margin-left:2px}.wp-block-query-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-post-featured-image .block-editor-media-placeholder{-webkit-backdrop-filter:none;backdrop-filter:none;z-index:1}.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{align-items:center;display:flex;justify-content:center;min-height:200px;padding:0}.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image .components-placeholder .components-button,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;margin:auto;padding:0;position:relative;width:48px}.wp-block-post-featured-image .components-placeholder .components-button>svg,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button>svg{color:inherit}.wp-block-post-featured-image .components-placeholder:where(.has-border-color),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where(.has-border-color),.wp-block-post-featured-image img:where(.has-border-color){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-color]),.wp-block-post-featured-image img:where([style*=border-top-color]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-color]),.wp-block-post-featured-image img:where([style*=border-right-color]){border-left-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image img:where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-color]),.wp-block-post-featured-image img:where([style*=border-left-color]){border-right-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-width]),.wp-block-post-featured-image img:where([style*=border-width]){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-width]),.wp-block-post-featured-image img:where([style*=border-top-width]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-width]),.wp-block-post-featured-image img:where([style*=border-right-width]){border-left-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image img:where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-width]),.wp-block-post-featured-image img:where([style*=border-left-width]){border-right-style:solid}.wp-block-post-featured-image[style*=height] .components-placeholder{height:100%;min-height:48px;min-width:48px;width:100%}.wp-block-post-featured-image>a{cursor:default}.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-button,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__instructions,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.wp-block-post-featured-image.is-transient{position:relative}.wp-block-post-featured-image.is-transient img{opacity:.3}.wp-block-post-featured-image.is-transient .components-spinner{position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}div[data-type="core/post-featured-image"] img{display:block;height:auto;max-width:100%}.wp-block-post-comments-form *{pointer-events:none}.wp-block-post-comments-form .block-editor-warning *{pointer-events:auto}.wp-block-post-content.wp-block-post-content{-webkit-user-select:none;user-select:none}.wp-element-button{cursor:revert}.wp-element-button[role=textbox]{cursor:text}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}:where(.editor-styles-wrapper) .has-regular-font-size{font-size:16px}:where(.editor-styles-wrapper) .has-larger-font-size{font-size:42px}:where(.editor-styles-wrapper) iframe:not([frameborder]){border:0} \ 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 94fc9b6..4c7f7c3 100644
--- a/wp-includes/css/dist/block-library/editor.css
+++ b/wp-includes/css/dist/block-library/editor.css
@@ -26,27 +26,6 @@ ul.wp-block-archives{
margin:0 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;
-}
-.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{
- display:none;
-}
-
-.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected{
- box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
-}
-.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
-}
-.is-dark-theme .edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff;
-}
-
.wp-block[data-align=center]>.wp-block-button{
margin-left:auto;
margin-right:auto;
@@ -77,37 +56,6 @@ div[data-type="core/button"]{
.editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link{
text-decoration:inherit;
}
-
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where(.has-border-color){
- border-width:initial;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-color]){
- border-top-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-color]){
- border-right-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){
- border-bottom-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-color]){
- border-left-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-style]){
- border-width:initial;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-style]){
- border-top-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-style]){
- border-right-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){
- border-bottom-width:medium;
-}
-.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-style]){
- border-left-width:medium;
-}
.wp-block-buttons>.wp-block,.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{
margin:0;
}
@@ -337,9 +285,17 @@ html :where(.wp-block-column){
.wp-block-cover.components-placeholder h2{
color:inherit;
}
+.wp-block-cover.is-transient{
+ position:relative;
+}
.wp-block-cover.is-transient:before{
background-color:#fff;
+ content:"";
+ height:100%;
opacity:.3;
+ position:absolute;
+ width:100%;
+ z-index:1;
}
.wp-block-cover .components-spinner{
left:50%;
@@ -400,10 +356,6 @@ html :where(.wp-block-column){
margin-top:24px;
}
-.wp-block-cover:after{
- min-height:auto;
-}
-
.wp-block-details summary div{
display:inline;
}
@@ -421,9 +373,6 @@ html :where(.wp-block-column){
word-break:break-word;
}
-.wp-block-embed__learn-more{
- margin-top:1em;
-}
.wp-block-post-content .wp-block-embed__learn-more a{
color:var(--wp-admin-theme-color);
}
@@ -455,6 +404,9 @@ html :where(.wp-block-column){
.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{
height:auto;
}
+.wp-block[data-align=center]>.wp-block-file{
+ text-align:center;
+}
.wp-block-file .components-resizable-box__container{
margin-bottom:1em;
}
@@ -870,42 +822,42 @@ div[data-type="core/freeform"].is-selected .block-library-classic__toolbar{
margin-top:16px;
}
-figure.wp-block-gallery{
+:root :where(figure.wp-block-gallery){
display:block;
}
-figure.wp-block-gallery>.blocks-gallery-caption{
+:root :where(figure.wp-block-gallery)>.blocks-gallery-caption{
flex:0 0 100%;
}
-figure.wp-block-gallery>.blocks-gallery-media-placeholder-wrapper{
+:root :where(figure.wp-block-gallery)>.blocks-gallery-media-placeholder-wrapper{
flex-basis:100%;
}
-figure.wp-block-gallery .wp-block-image .components-notice.is-error{
+:root :where(figure.wp-block-gallery) .wp-block-image .components-notice.is-error{
display:block;
}
-figure.wp-block-gallery .wp-block-image .components-notice__content{
+:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__content{
margin:4px 0;
}
-figure.wp-block-gallery .wp-block-image .components-notice__dismiss{
+:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__dismiss{
position:absolute;
right:5px;
top:0;
}
-figure.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .components-placeholder__label{
display:none;
}
-figure.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{
margin-bottom:0;
}
-figure.wp-block-gallery .block-editor-media-placeholder{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder{
margin:0;
}
-figure.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder .components-placeholder__label{
display:flex;
}
-figure.wp-block-gallery .block-editor-media-placeholder figcaption{
+:root :where(figure.wp-block-gallery) .block-editor-media-placeholder figcaption{
z-index:2;
}
-figure.wp-block-gallery .components-spinner{
+:root :where(figure.wp-block-gallery) .components-spinner{
left:50%;
margin-left:-9px;
margin-top:-9px;
@@ -1061,53 +1013,10 @@ figure.wp-block-gallery .components-spinner{
right:0;
top:0;
}
-.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{
+.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{
pointer-events:all;
}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations{
- display:flex;
- flex-direction:row;
- flex-wrap:wrap;
- justify-content:center;
- list-style:none;
- margin:0;
- padding:0;
- width:100%;
-}
-.wp-block-group__placeholder .components-placeholder__instructions{
- margin-bottom:18px;
- text-align:center;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations svg{
- fill:#ccc !important;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations svg:hover{
- fill:var(--wp-admin-theme-color) !important;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations>li{
- align-items:center;
- display:flex;
- flex-direction:column;
- margin:0 12px 12px;
- width:auto;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button{
- height:32px;
- padding:0;
- width:44px;
-}
-.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button:hover{
- box-shadow:none;
-}
-.wp-block-group__placeholder .components-placeholder{
- min-height:auto;
- padding:24px;
-}
-.wp-block-group__placeholder .is-medium .wp-block-group-placeholder__variations>li,.wp-block-group__placeholder .is-small .wp-block-group-placeholder__variations>li{
- margin:12px;
-}
-
.block-library-html__edit .block-library-html__preview-overlay{
height:100%;
left:0;
@@ -1122,6 +1031,7 @@ figure.wp-block-gallery .components-spinner{
box-shadow:none !important;
box-sizing:border-box;
color:#1e1e1e !important;
+ direction:ltr;
font-family:Menlo,Consolas,monaco,monospace !important;
font-size:16px !important;
max-height:250px;
@@ -1236,6 +1146,9 @@ figure.wp-block-image:not(.wp-block){
position:relative;
width:100%;
}
+.wp-block-image__crop-area .reactEasyCrop_Container{
+ pointer-events:auto;
+}
.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{
border:none;
border-radius:0;
@@ -1257,28 +1170,10 @@ figure.wp-block-image:not(.wp-block){
overflow:visible !important;
}
-.wp-block-image__aspect-ratio{
- align-items:center;
- display:flex;
- height:46px;
- margin-bottom:-8px;
-}
-.wp-block-image__aspect-ratio .components-button{
- padding-left:0;
- padding-right:0;
- width:36px;
-}
-
.wp-block-image__toolbar_content_textarea{
width:250px;
}
-.wp-block-latest-posts{
- padding-left:2.5em;
-}
-.wp-block-latest-posts.is-grid{
- padding-left:0;
-}
.wp-block-latest-posts>li{
overflow:hidden;
}
@@ -1287,10 +1182,6 @@ figure.wp-block-image:not(.wp-block){
display:inline;
}
-.edit-post-visual-editor .wp-block-latest-posts.is-grid li{
- margin-bottom:20px;
-}
-
.editor-latest-posts-image-alignment-control .components-base-control__label{
display:block;
}
@@ -1298,6 +1189,14 @@ figure.wp-block-image:not(.wp-block){
border-radius:2px;
}
+:root :where(.wp-block-latest-posts){
+ padding-left:2.5em;
+}
+
+:root :where(.wp-block-latest-posts.is-grid),:root :where(.wp-block-latest-posts__list){
+ padding-left:0;
+}
+
.wp-block-media-text__media{
position:relative;
}
@@ -1321,13 +1220,16 @@ figure.wp-block-image:not(.wp-block){
width:100% !important;
}
-.wp-block-media-text.is-image-fill .editor-media-container__resizer{
+.wp-block-media-text.is-image-fill .components-placeholder.has-illustration,.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;
}
+.wp-block-media-text--placeholder-image{
+ min-height:205px;
+}
.block-editor-block-list__block[data-type="core/more"]{
margin-bottom:28px;
@@ -1681,10 +1583,6 @@ figure.wp-block-image:not(.wp-block){
top:141px;
}
-.is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open{
- right:280px;
-}
-
.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{
left:0;
top:155px;
@@ -2068,17 +1966,8 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
display:inline;
}
-.wp-block-rss__placeholder-form>*{
- margin-bottom:8px;
-}
-@media (min-width:782px){
- .wp-block-rss__placeholder-form>*{
- margin-bottom:0;
- }
-}
.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{
- flex:1;
- min-width:80%;
+ flex:1 1 auto;
}
.wp-block[data-align=center] .wp-block-search .wp-block-search__inside-wrapper{
@@ -2101,14 +1990,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
padding-bottom:.1px;
padding-top:.1px;
}
-.block-editor-block-list__block[data-type="core/separator"].wp-block-separator.is-style-dots{
- background:none !important;
- border:none;
-}
-
-[data-type="core/shortcode"].components-placeholder{
- min-height:0;
-}
.blocks-shortcode__textarea{
background:#fff !important;
@@ -2149,14 +2030,24 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
.wp-block-site-logo .custom-logo-link:focus{
box-shadow:none;
}
-.wp-block-site-logo .custom-logo-link.is-transient img{
- opacity:.3;
-}
.wp-block-site-logo img{
display:block;
height:auto;
max-width:100%;
}
+.wp-block-site-logo.is-transient{
+ position:relative;
+}
+.wp-block-site-logo.is-transient img{
+ opacity:.3;
+}
+.wp-block-site-logo.is-transient .components-spinner{
+ left:50%;
+ margin:0;
+ position:absolute;
+ top:50%;
+ transform:translate(-50%, -50%);
+}
.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{
height:60px;
@@ -2189,6 +2080,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
display:flex;
height:48px;
justify-content:center;
+ margin:auto;
padding:0;
position:relative;
width:48px;
@@ -2245,28 +2137,39 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
padding:1em 0;
}
-.editor-styles-wrapper .wp-block-site-title a{
+.editor-styles-wrapper :where(.wp-block-site-title a){
color:inherit;
}
.wp-block-social-links .wp-social-link{
line-height:0;
}
-.wp-block-social-links .wp-social-link button{
+
+.wp-block-social-link-anchor{
+ align-items:center;
+ background:none;
+ border:0;
+ box-sizing:border-box;
color:currentColor;
+ cursor:pointer;
+ display:inline-flex;
font-size:inherit;
height:auto;
- line-height:0;
opacity:1;
padding:.25em;
}
+.wp-block-social-link-anchor:focus:not(:disabled){
+ border-radius:2px;
+ box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+ outline:3px solid #0000;
+}
-.wp-block-social-links.is-style-pill-shape .wp-social-link button{
+:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link button){
padding-left:.66667em;
padding-right:.66667em;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link button{
+:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link button){
padding:0;
}
@@ -2274,18 +2177,24 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
display:inline-block;
margin-left:8px;
}
-.wp-block-social-links.wp-block-social-links{
- background:none;
-}
.wp-social-link:hover{
transform:none;
}
-.editor-styles-wrapper .wp-block-social-links{
+:root :where(.wp-block-social-links),:root :where(.wp-block-social-links.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link){
padding:0;
}
+:root :where(.wp-block-social-links__social-placeholder .wp-social-link){
+ padding:.25em;
+}
+
+:root :where(.wp-block-social-links.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link){
+ padding-left:.66667em;
+ padding-right:.66667em;
+}
+
.wp-block-social-links__social-placeholder{
display:flex;
list-style:none;
@@ -2302,16 +2211,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
.wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{
display:flex;
}
-.wp-block-social-links__social-placeholder .wp-social-link{
- padding:.25em;
-}
-.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link{
- padding-left:.66667em;
- padding-right:.66667em;
-}
-.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link{
- padding:0;
-}
.wp-block-social-links__social-placeholder .wp-social-link:before{
border-radius:50%;
content:"";
@@ -2332,7 +2231,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
margin-bottom:auto;
margin-top:auto;
min-height:24px;
- order:2;
padding-right:8px;
}
@@ -2459,15 +2357,15 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
top:0;
z-index:2;
}
-
-.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected{
- box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
+.block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{
+ outline-color:var(--wp-block-synced-color);
}
-.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
+.is-dark-theme .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{
+ outline-color:#fff;
}
-.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff;
+
+.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.has-editable-outline:after{
+ border:none;
}
.wp-block-text-columns .block-editor-rich-text__editable:focus{
@@ -2593,10 +2491,11 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
}
.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{
background:#fff;
- margin-bottom:2px;
+ margin-bottom:-4px;
padding:16px 0;
position:sticky;
top:0;
+ transform:translateY(-4px);
z-index:2;
}
@@ -2670,6 +2569,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
display:flex;
height:48px;
justify-content:center;
+ margin:auto;
padding:0;
position:relative;
width:48px;
@@ -2720,6 +2620,18 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
opacity:1;
pointer-events:auto;
}
+.wp-block-post-featured-image.is-transient{
+ position:relative;
+}
+.wp-block-post-featured-image.is-transient img{
+ opacity:.3;
+}
+.wp-block-post-featured-image.is-transient .components-spinner{
+ left:50%;
+ position:absolute;
+ top:50%;
+ transform:translate(-50%, -50%);
+}
div[data-type="core/post-featured-image"] img{
display:block;
@@ -2778,11 +2690,6 @@ div[data-type="core/post-featured-image"] img{
background:linear-gradient(135deg, #020381, #2874fc);
}
-:where(.editor-styles-wrapper){
- --wp--preset--font-size--normal:16px;
- --wp--preset--font-size--huge:42px;
-}
-
:where(.editor-styles-wrapper) .has-regular-font-size{
font-size:16px;
}
@@ -2790,14 +2697,6 @@ div[data-type="core/post-featured-image"] img{
:where(.editor-styles-wrapper) .has-larger-font-size{
font-size:42px;
}
-
-:where(.editor-styles-wrapper) .has-normal-font-size{
- font-size:var(--wp--preset--font-size--normal);
-}
-
-:where(.editor-styles-wrapper) .has-huge-font-size{
- font-size:var(--wp--preset--font-size--huge);
-}
:where(.editor-styles-wrapper) iframe:not([frameborder]){
border:0;
} \ No newline at end of file
diff --git a/wp-includes/css/dist/block-library/editor.min.css b/wp-includes/css/dist/block-library/editor.min.css
index 34303c1..f651fc3 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 @@
-ul.wp-block-archives{padding-left:2.5em}.wp-block-audio{margin-left:0;margin-right:0;position:relative}.wp-block-audio.is-transient audio{opacity:.3}.wp-block-audio .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.wp-block-avatar__image img{width:100%}.wp-block-avatar.aligncenter .components-resizable-box__container{margin:0 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}.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{display:none}.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.is-dark-theme .edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff}.wp-block[data-align=center]>.wp-block-button{margin-left:auto;margin-right:auto;text-align:center}.wp-block[data-align=right]>.wp-block-button{
- /*!rtl:ignore*/text-align:right}.wp-block-button{cursor:text;position:relative}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}div[data-type="core/button"]{display:table}.editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where(.has-border-color){border-width:initial}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-color]){border-top-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-color]){border-right-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){border-bottom-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-color]){border-left-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-style]){border-width:initial}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-style]){border-top-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-style]){border-right-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){border-bottom-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-style]){border-left-width:medium}.wp-block-buttons>.wp-block,.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{margin:0}.wp-block-buttons>.block-list-appender{align-items:center;display:inline-flex}.wp-block-buttons.is-vertical>.block-list-appender .block-list-appender__toggle{justify-content:flex-start}.wp-block-buttons>.wp-block-button:focus{box-shadow:none}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center]{margin-left:auto;margin-right:auto;margin-top:0;width:100%}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center] .wp-block-button{margin-bottom:0}.editor-styles-wrapper .wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block[data-align=center]>.wp-block-buttons{align-items:center;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{justify-content:flex-end}.wp-block-categories ul{padding-left:2.5em}.wp-block-categories ul ul{margin-top:6px}[data-align=center] .wp-block-categories{text-align:center}.wp-block-code code{background:none}.wp-block-columns :where(.wp-block){margin-left:0;margin-right:0;max-width:none}html :where(.wp-block-column){margin-bottom:0;margin-top:0}.wp-block-comments__legacy-placeholder,.wp-block-post-comments{box-sizing:border-box}.wp-block-comments__legacy-placeholder .alignleft,.wp-block-post-comments .alignleft{float:left}.wp-block-comments__legacy-placeholder .alignright,.wp-block-post-comments .alignright{float:right}.wp-block-comments__legacy-placeholder .navigation:after,.wp-block-post-comments .navigation:after{clear:both;content:"";display:table}.wp-block-comments__legacy-placeholder .commentlist,.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-comments__legacy-placeholder .commentlist .comment,.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-left:3.25em}.wp-block-comments__legacy-placeholder .commentlist .comment p,.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-comments__legacy-placeholder .commentlist .children,.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-comments__legacy-placeholder .comment-author,.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-comments__legacy-placeholder .comment-author .avatar,.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;margin-top:.5em;width:2.5em}.wp-block-comments__legacy-placeholder .comment-author cite,.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-comments__legacy-placeholder .comment-meta,.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-comments__legacy-placeholder .comment-meta b,.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-comments__legacy-placeholder .comment-meta .comment-awaiting-moderation,.wp-block-post-comments .comment-meta .comment-awaiting-moderation{display:block;margin-bottom:1em;margin-top:1em}.wp-block-comments__legacy-placeholder .comment-body .commentmetadata,.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-comments__legacy-placeholder .comment-form-author label,.wp-block-comments__legacy-placeholder .comment-form-comment label,.wp-block-comments__legacy-placeholder .comment-form-email label,.wp-block-comments__legacy-placeholder .comment-form-url label,.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-comments__legacy-placeholder .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder .comment-form textarea,.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-comments__legacy-placeholder .comment-form-cookies-consent,.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-comments__legacy-placeholder .comment-form-cookies-consent #wp-comment-cookies-consent,.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-comments__legacy-placeholder .comment-reply-title,.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-comments__legacy-placeholder .comment-reply-title :where(small),.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-left:.5em}.wp-block-comments__legacy-placeholder .reply,.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-comments__legacy-placeholder input:not([type=submit]),.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-comments__legacy-placeholder input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}:where(.wp-block-post-comments input[type=submit]){border:none}.block-library-comments-toolbar__popover .components-popover__content{min-width:230px}.wp-block-comments__legacy-placeholder *{pointer-events:none}.wp-block-comment-author-avatar__placeholder{border:1px dashed;height:100%;width:100%;stroke:currentColor;stroke-dasharray:3}.wp-block[data-align=center]>.wp-block-comments-pagination{justify-content:center}.editor-styles-wrapper .wp-block-comments-pagination{max-width:100%}.editor-styles-wrapper .wp-block-comments-pagination.block-editor-block-list__layout{margin:0}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers,.wp-block-comments-pagination>.wp-block-comments-pagination-previous{margin:.5em .5em .5em 0}.wp-block-comments-pagination>.wp-block-comments-pagination-next:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-previous:last-child{margin-right:0}.wp-block-comments-pagination-numbers a{text-decoration:underline}.wp-block-comments-pagination-numbers .page-numbers{margin-right:2px}.wp-block-comments-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-comments-title.has-background{padding:inherit}.editor-styles-wrapper .wp-block-cover{box-sizing:border-box}.wp-block-cover.is-placeholder{align-items:stretch;display:flex;min-height:240px;padding:0!important}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient:before{background-color:#fff;opacity:.3}.wp-block-cover .components-spinner{left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:1}.wp-block-cover .wp-block-cover__inner-container{margin-left:0;margin-right:0;text-align:left}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{bottom:0;left:0;position:absolute;right:0;top:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container{bottom:0;left:0;min-height:50px;position:absolute!important;right:0;top:0}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div{overflow:visible;pointer-events:none}.wp-block-cover>.components-drop-zone .components-drop-zone__content{opacity:.8!important}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px}.wp-block-cover:after{min-height:auto}.wp-block-details summary div{display:inline}.wp-block-embed{clear:both;margin-left:0;margin-right:0}.wp-block-embed.is-loading{display:flex;justify-content:center}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed__learn-more{margin-top:1em}.wp-block-post-content .wp-block-embed__learn-more a{color:var(--wp-admin-theme-color)}.block-library-embed__interactive-overlay{bottom:0;left:0;opacity:0;position:absolute;right:0;top:0}.wp-block[data-align=left]>.wp-block-embed,.wp-block[data-align=right]>.wp-block-embed{max-width:360px;width:100%}.wp-block[data-align=left]>.wp-block-embed .wp-block-embed__wrapper,.wp-block[data-align=right]>.wp-block-embed .wp-block-embed__wrapper{min-width:280px}.wp-block-file{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:0}.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{height:auto}.wp-block-file .components-resizable-box__container{margin-bottom:1em}.wp-block-file .wp-block-file__preview{height:100%;margin-bottom:1em;width:100%}.wp-block-file .wp-block-file__preview-overlay{bottom:0;left:0;position:absolute;right:0;top:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file a{min-width:1em}.wp-block-file a:not(.wp-block-file__button){display:inline-block}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-left:.75em}.wp-block-form-input .is-input-hidden{background:repeating-linear-gradient(45deg,#0000,#0000 5px,currentColor 0,currentColor 6px);border:1px dashed;box-sizing:border-box;font-size:.85em;opacity:.3;padding:.5em}.wp-block-form-input .is-input-hidden input[type=text]{background:#0000}.wp-block-form-input.is-selected .is-input-hidden{background:none;opacity:1}.wp-block-form-input.is-selected .is-input-hidden input[type=text]{background:unset}.wp-block-form-submission-notification>*{background:repeating-linear-gradient(45deg,#0000,#0000 5px,currentColor 0,currentColor 6px);border:1px dashed;box-sizing:border-box;opacity:.25}.wp-block-form-submission-notification.is-selected>*,.wp-block-form-submission-notification:has(.is-selected)>*{background:none;opacity:1}.wp-block-form-submission-notification.is-selected:after,.wp-block-form-submission-notification:has(.is-selected):after{display:none!important}.wp-block-form-submission-notification:after{align-items:center;display:flex;font-size:1.1em;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.wp-block-form-submission-notification.form-notification-type-success:after{content:attr(data-message-success)}.wp-block-form-submission-notification.form-notification-type-error:after{content:attr(data-message-error)}.wp-block-freeform.block-library-rich-text__tinymce{height:auto}.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{margin-left:0;padding-left:2.5em}.wp-block-freeform.block-library-rich-text__tinymce blockquote{border-left:4px solid #000;box-shadow:inset 0 0 0 0 #ddd;margin:0;padding-left:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;white-space:pre-wrap}.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:var(--wp-admin-theme-color)}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{background:#e5f5fa;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;margin:0 -2px;padding:0 2px}.wp-block-freeform.block-library-rich-text__tinymce code{background:#f0f0f0;border-radius:2px;color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;padding:2px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#ddd}.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{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-position:50%;background-repeat:no-repeat;background-size:1900px 20px;cursor:default;display:block;height:20px;margin:15px auto;outline:0;width:96%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:initial}.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{margin:0;padding-top:.5em}.wp-block-freeform.block-library-rich-text__tinymce .wpview{border:1px solid #0000;clear:both;margin-bottom:16px;position:relative;width:99.99%}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{background:#0000;display:block;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{bottom:0;left:0;position:absolute;right:0;top: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 #ddd;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #ddd;margin:0;padding:1em 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:#0000}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;font-size:32px;height:32px;margin:0 auto;width:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{clear:both;content:"";display:table}.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{line-height:1;margin:auto -6px;overflow-x:hidden;padding:6px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{box-sizing:border-box;float:left;margin:0;padding:6px;text-align:center}.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.3333333333%}.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.6666666667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.2857142857%}.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.1111111111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{border:none;height:auto;max-width:100%;padding:0}div[data-type="core/freeform"]:before{border:1px solid #ddd;outline:1px solid #0000;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-delay:0s;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{clear:both;content:"";display:table}.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i,.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i{color:#1e1e1e}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-left:8px;margin-right:0}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{border:1px solid #ddd;border-bottom:none;border-radius:2px;display:none;margin:0 0 8px;padding:0;position:sticky;top:0;width:auto;z-index:31}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar{border-color:#1e1e1e;display:block}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{background:#f5f5f5;border-bottom:1px solid #e2e4e7;display:block}.block-library-classic__toolbar:empty:before{color:#555d66;content:attr(data-placeholder);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;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}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{height:50vh!important}@media (min-width:960px){.block-editor-freeform-modal .block-editor-freeform-modal__content:not(.is-full-screen){height:9999rem}.block-editor-freeform-modal .block-editor-freeform-modal__content .components-modal__header+div{height:100%}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-tinymce{height:calc(100% - 52px)}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-container-body{display:flex;flex-direction:column;height:100%;min-width:50vw}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area{display:flex;flex-direction:column;flex-grow:1}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{flex-grow:1;height:10px!important}}.block-editor-freeform-modal__actions{margin-top:16px}figure.wp-block-gallery{display:block}figure.wp-block-gallery>.blocks-gallery-caption{flex:0 0 100%}figure.wp-block-gallery>.blocks-gallery-media-placeholder-wrapper{flex-basis:100%}figure.wp-block-gallery .wp-block-image .components-notice.is-error{display:block}figure.wp-block-gallery .wp-block-image .components-notice__content{margin:4px 0}figure.wp-block-gallery .wp-block-image .components-notice__dismiss{position:absolute;right:5px;top:0}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}figure.wp-block-gallery .block-editor-media-placeholder{margin:0}figure.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:flex}figure.wp-block-gallery .block-editor-media-placeholder figcaption{z-index:2}figure.wp-block-gallery .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.gallery-settings-buttons .components-button:first-child{margin-right:8px}.gallery-image-sizes .components-base-control__label{display:block;margin-bottom:4px}.gallery-image-sizes .gallery-image-sizes__loading{align-items:center;color:#757575;display:flex;font-size:12px}.gallery-image-sizes .components-spinner{margin:0 8px 0 4px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{bottom:0;box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";left:0;outline:2px solid #0000;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{height:100%;margin:0}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{background:#fff;border:1px solid #1e1e1e;border-radius:2px;display:none;margin:8px;position:absolute;top:-2px;transition:box-shadow .2s ease-out;z-index:20}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-delay:0s;transition-duration:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{height:inherit;padding:0;width:inherit}}.block-library-gallery-item__inline-menu.is-left{left:-2px}.block-library-gallery-item__inline-menu.is-right{right:-2px}.wp-block-gallery ul.blocks-gallery-grid{margin:0;padding:0}@media (min-width:600px){.wp-block-update-gallery-modal{max-width:480px}}.wp-block-update-gallery-modal-buttons{display:flex;gap:12px;justify-content:flex-end}.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[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-bottom:18px;margin-top:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;flex:1;flex-direction:inherit;width:100%}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{border:1px dashed;border-radius:2px;content:"";display:flex;flex:1 0 48px;min-height:46px;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all}.wp-block-group__placeholder .wp-block-group-placeholder__variations{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;list-style:none;margin:0;padding:0;width:100%}.wp-block-group__placeholder .components-placeholder__instructions{margin-bottom:18px;text-align:center}.wp-block-group__placeholder .wp-block-group-placeholder__variations svg{fill:#ccc!important}.wp-block-group__placeholder .wp-block-group-placeholder__variations svg:hover{fill:var(--wp-admin-theme-color)!important}.wp-block-group__placeholder .wp-block-group-placeholder__variations>li{align-items:center;display:flex;flex-direction:column;margin:0 12px 12px;width:auto}.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button{height:32px;padding:0;width:44px}.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button:hover{box-shadow:none}.wp-block-group__placeholder .components-placeholder{min-height:auto;padding:24px}.wp-block-group__placeholder .is-medium .wp-block-group-placeholder__variations>li,.wp-block-group__placeholder .is-small .wp-block-group-placeholder__variations>li{margin:12px}.block-library-html__edit .block-library-html__preview-overlay{height:100%;left:0;position:absolute;top:0;width:100%}.block-library-html__edit .block-editor-plain-text{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important}@media (min-width:600px){.block-library-html__edit .block-editor-plain-text{font-size:13px!important}}.block-library-html__edit .block-editor-plain-text:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid #0000!important}.wp-block-image.wp-block-image.is-selected .components-placeholder{background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;filter:none!important}.wp-block-image.wp-block-image.is-selected .components-placeholder>svg{opacity:0}.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration{display:none}.wp-block-image.wp-block-image .block-bindings-media-placeholder-message,.wp-block-image.wp-block-image.is-selected .components-placeholder:before{opacity:0}.wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message{opacity:1}.wp-block-image.wp-block-image .components-button,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-placeholder__label{transition: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{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.wp-block-image .components-resizable-box__container{display:table}.wp-block-image .components-resizable-box__container img{display:block;height:inherit;width:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{left:0;margin:-1px 0;position:absolute;right: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{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{caption-side:bottom;display:table-caption}.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}.wp-block-image__crop-area{max-width:100%;overflow:hidden;position:relative;width:100%}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none;border-radius:0}.wp-block-image__crop-icon{align-items:center;display:flex;justify-content:center;min-width:48px;padding:0 8px}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.wp-block-image__aspect-ratio{align-items:center;display:flex;height:46px;margin-bottom:-8px}.wp-block-image__aspect-ratio .components-button{padding-left:0;padding-right:0;width:36px}.wp-block-image__toolbar_content_textarea{width:250px}.wp-block-latest-posts{padding-left:2.5em}.wp-block-latest-posts.is-grid{padding-left:0}.wp-block-latest-posts>li{overflow:hidden}.wp-block-latest-posts li a>div{display:inline}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}.editor-latest-posts-image-alignment-control .components-base-control__label{display:block}.editor-latest-posts-image-alignment-control .components-toolbar{border-radius:2px}.wp-block-media-text__media{position:relative}.wp-block-media-text__media.is-transient img{opacity:.3}.wp-block-media-text__media .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.wp-block-media-text .__resizable_base__{grid-column:1/span 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"]{margin-bottom:28px;margin-top:28px;max-width:100%;text-align:center}.wp-block-more{display:block;text-align:center;white-space:nowrap}.wp-block-more input[type=text]{background:#fff;border:none;border-radius:4px;box-shadow:none;color:#757575;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;height:24px;margin:0;max-width:100%;padding:6px 8px;position:relative;text-align:center;text-transform:uppercase;white-space:nowrap}.wp-block-more input[type=text]:focus{box-shadow:none}.wp-block-more:before{border-top:3px dashed #ccc;content:"";left:0;position:absolute;right:0;top:50%}.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-left:0;margin-top:0;padding-left:0}.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block{margin:revert}.wp-block-navigation-item__label{display:inline}.wp-block-navigation-item,.wp-block-navigation__container{background-color:inherit}.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__submenu-container,.has-child.is-selected>.wp-block-navigation__submenu-container{display:flex;opacity:1;visibility:visible}.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__submenu-container{opacity:1;visibility:visible}.is-editing>.wp-block-navigation__container{display:flex;flex-direction:column;opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender{display:block;position:static;width:100%}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender .block-editor-button-block-appender{background:#1e1e1e;border-radius:2px;color:#fff;margin-left:auto;margin-right:0;padding:0;width:24px}.wp-block-navigation__submenu-container .block-list-appender{display:none}.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{align-items:center;border-radius:4px;display:flex;height:30px;margin:0 auto;padding:3px;position:relative}.block-library-colors-selector .block-library-colors-selector__state-selection{border-radius:11px;box-shadow:inset 0 0 0 1px #0003;height:22px;line-height:20px;margin-left:auto;margin-right:auto;min-height:22px;min-width:22px;padding:2px;width:22px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.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 .wp-block+.block-list-appender .block-editor-button-block-appender{background-color:#1e1e1e;color:#fff}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender.block-editor-button-block-appender.block-editor-button-block-appender{padding:0}.wp-block-navigation .wp-block .wp-block .block-editor-button-block-appender{background-color:initial;color:#1e1e1e}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.components-placeholder.wp-block-navigation-placeholder{background:none;box-shadow:none;color:inherit;min-height:0;outline:none;padding:0}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset{font-size:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button{margin-bottom:0}.wp-block-navigation.is-selected .components-placeholder.wp-block-navigation-placeholder{color:#1e1e1e}.wp-block-navigation-placeholder__preview{align-items:center;background:#0000;color:currentColor;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;min-width:96px}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview{display:none}.wp-block-navigation-placeholder__preview:before{border:1px dashed;border-radius:2px;border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview:before:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview>svg{fill:currentColor}.wp-block-navigation.is-vertical .is-medium .components-placeholder__fieldset,.wp-block-navigation.is-vertical .is-small .components-placeholder__fieldset{min-height:90px}.wp-block-navigation.is-vertical .is-large .components-placeholder__fieldset{min-height:132px}.wp-block-navigation-placeholder__controls,.wp-block-navigation-placeholder__preview{align-items:flex-start;flex-direction:row;padding:6px 8px}.wp-block-navigation-placeholder__controls{background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:none;float:left;position:relative;width:100%;z-index:1}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls{display:flex}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr{display:none}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions{align-items:flex-start;flex-direction:column}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr{display:none}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon{height:36px;margin-right:12px}.wp-block-navigation-placeholder__actions__indicator{align-items:center;display:flex;height:36px;justify-content:flex-start;line-height:0;margin-left:4px;padding:0 6px 0 0}.wp-block-navigation-placeholder__actions__indicator svg{margin-right:4px;fill:currentColor}.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset{flex-direction:row!important}.wp-block-navigation-placeholder__actions{align-items:center;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;gap:6px;height:100%}.wp-block-navigation-placeholder__actions .components-dropdown,.wp-block-navigation-placeholder__actions>.components-button{margin-right:0}.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr{background-color:#1e1e1e;border:0;height:100%;margin:auto 0;max-height:16px;min-height:1px;min-width:1px}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close{display:none}}.wp-block-navigation__responsive-container.is-menu-open{position:fixed;top:155px}@media (min-width:782px){.wp-block-navigation__responsive-container.is-menu-open{left:36px;top:93px}}@media (min-width:960px){.wp-block-navigation__responsive-container.is-menu-open{left:160px}}@media (min-width:782px){.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:141px}}.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:141px}.is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open{right:280px}.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{left:0;top:155px}@media (min-width:782px){.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{top:61px}.is-fullscreen-mode .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:109px}}.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:109px}body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open{bottom:0;left:0;right:0;top:0}.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close,.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{color:inherit;height:auto;padding:0}.components-heading.wp-block-navigation-off-canvas-editor__title{margin:0}.wp-block-navigation-off-canvas-editor__header{margin-bottom:8px}.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender{margin-top:16px}@keyframes fadein{0%{opacity:0}to{opacity:1}}.wp-block-navigation__loading-indicator-container{padding:8px 12px}.wp-block-navigation .wp-block-navigation__uncontrolled-inner-blocks-loading-indicator{margin-top:0}@keyframes fadeouthalf{0%{opacity:1}to{opacity:.5}}.wp-block-navigation-delete-menu-button{justify-content:center;margin-bottom:16px;width:100%}.components-button.is-link.wp-block-navigation-manage-menus-button{margin-bottom:16px}.wp-block-navigation__overlay-menu-preview{align-items:center;background-color:#f0f0f0;display:flex;height:64px;justify-content:space-between;margin-bottom:12px;padding:0 24px;width:100%}.wp-block-navigation__overlay-menu-preview.open{background-color:#fff;box-shadow:inset 0 0 0 1px #e0e0e0;outline:1px solid #0000}.wp-block-navigation-placeholder__actions hr+hr,.wp-block-navigation__toolbar-menu-selector.components-toolbar-group:empty{display:none}.wp-block-navigation__navigation-selector{margin-bottom:16px;width:100%}.wp-block-navigation__navigation-selector-button{border:1px solid;justify-content:space-between;width:100%}.wp-block-navigation__navigation-selector-button__icon{flex:0 0 auto}.wp-block-navigation__navigation-selector-button__label{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wp-block-navigation__navigation-selector-button--createnew{border:1px solid;margin-bottom:16px;width:100%}.wp-block-navigation__responsive-container-open.components-button{opacity:1}.wp-block-navigation__menu-inspector-controls{overflow-x:auto;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin;will-change:transform}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar{height:12px;width:12px}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-track{background-color:initial}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.wp-block-navigation__menu-inspector-controls:focus-within::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:focus::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:hover::-webkit-scrollbar-thumb{background-color:#949494}.wp-block-navigation__menu-inspector-controls:focus,.wp-block-navigation__menu-inspector-controls:focus-within,.wp-block-navigation__menu-inspector-controls:hover{scrollbar-color:#949494 #0000}@media (hover:none){.wp-block-navigation__menu-inspector-controls{scrollbar-color:#949494 #0000}}.wp-block-navigation__menu-inspector-controls__empty-message{margin-left:24px}.wp-block-navigation .block-list-appender{position:relative}.wp-block-navigation .has-child{cursor:pointer}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container{z-index:29}.wp-block-navigation .has-child.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child.is-selected>.wp-block-navigation__submenu-container{height:auto!important;min-width:200px!important;opacity:1!important;overflow:visible!important;visibility:visible!important;width:auto!important}.wp-block-navigation-item .wp-block-navigation-item__content{cursor:text}.wp-block-navigation-item.is-editing,.wp-block-navigation-item.is-selected{min-width:20px}.wp-block-navigation-item .block-list-appender{margin:16px auto 16px 16px}.wp-block-navigation-link__invalid-item{color:#000}.wp-block-navigation-link__placeholder{background-image:none!important;box-shadow:none!important;position:relative;text-decoration:none!important}.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{--wp-underline-color:var(--wp-admin-theme-color);background-image:linear-gradient(45deg,#0000 20%,var(--wp-underline-color) 30%,var(--wp-underline-color) 36%,#0000 46%),linear-gradient(135deg,#0000 54%,var(--wp-underline-color) 64%,var(--wp-underline-color) 70%,#0000 80%);background-position:0 100%;background-repeat:repeat-x;background-size:6px 3px;padding-bottom:.1em}.is-dark-theme .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{--wp-underline-color:#fff}.wp-block-navigation-link__placeholder.wp-block-navigation-item__content{cursor:pointer}.link-control-transform{border-top:1px solid #ccc;padding:0 16px 8px}.link-control-transform__subheading{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.link-control-transform__items{display:flex;justify-content:space-between}.link-control-transform__item{flex-basis:33%;flex-direction:column;gap:8px;height:auto}.wp-block-navigation-submenu{display:block}.wp-block-navigation-submenu .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container{height:auto!important;left:-1px;min-width:200px!important;opacity:1!important;position:absolute;top:100%;visibility:visible!important;width:auto!important}@media (min-width:782px){.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:-1px}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:#0000;content:"";display:block;height:100%;position:absolute;right:100%;width:.5em}}.block-editor-block-list__block[data-type="core/nextpage"]{margin-bottom:28px;margin-top:28px;max-width:100%;text-align:center}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{background:#fff;border-radius:4px;color:#757575;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;height:24px;padding:6px 8px;position:relative;text-transform:uppercase}.wp-block-nextpage:before{border-top:3px dashed #ccc;content:"";left:0;position:absolute;right:0;top:50%}.wp-block-navigation .wp-block-page-list,.wp-block-navigation .wp-block-page-list>div{background-color:inherit}.wp-block-navigation.items-justified-space-between .wp-block-page-list,.wp-block-navigation.items-justified-space-between .wp-block-page-list>div{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div{flex:inherit}.wp-block-navigation .wp-block-navigation__submenu-container>.wp-block-page-list{display:block}.wp-block-pages-list__item__link{pointer-events:none}@media (min-width:600px){.wp-block-page-list-modal{max-width:480px}}.wp-block-page-list-modal-buttons{display:flex;gap:12px;justify-content:flex-end}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;visibility:visible;width:auto}.wp-block-page-list__loading-indicator-container{padding:8px 12px}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:1}.block-editor-block-list__block[data-empty=true]+.block-editor-block-list__block[data-empty=true]:not([data-custom-placeholder=true]) [data-rich-text-placeholder]{opacity:0}.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-left[style*="writing-mode: vertical-lr"],.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-right[style*="writing-mode: vertical-rl"]{rotate:180deg}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{font-style:normal;text-transform:none}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{flex:1;min-width:80%}.wp-block[data-align=center] .wp-block-search .wp-block-search__inside-wrapper{margin:auto}.wp-block-search .wp-block-search__button{align-items:center;border-radius:initial;display:flex;height:auto;justify-content:center;text-align:center}.wp-block-search__components-button-group{margin-top:10px}.block-editor-block-list__block[data-type="core/separator"]{padding-bottom:.1px;padding-top:.1px}.block-editor-block-list__block[data-type="core/separator"].wp-block-separator.is-style-dots{background:none!important;border:none}[data-type="core/shortcode"].components-placeholder{min-height:0}.blocks-shortcode__textarea{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important;resize:none}@media (min-width:600px){.blocks-shortcode__textarea{font-size:13px!important}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid #0000!important}.wp-block-site-logo.aligncenter>div,.wp-block[data-align=center]>.wp-block-site-logo{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:60px;width:60px}.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder{align-items:center;border-radius:inherit;display:flex;height:100%;justify-content:center;min-height:48px;min-width:48px;padding:0;width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text,.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;padding:0;position:relative;width:48px}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:inherit}.block-library-site-logo__inspector-upload-container{position:relative}.block-library-site-logo__inspector-upload-container .components-drop-zone__content-icon{display:none}.block-library-site-logo__inspector-media-replace-container button.components-button,.block-library-site-logo__inspector-upload-container button.components-button{box-shadow:inset 0 0 0 1px #ccc;color:#1e1e1e;display:block;height:40px;width:100%}.block-library-site-logo__inspector-media-replace-container button.components-button:hover,.block-library-site-logo__inspector-upload-container button.components-button:hover{color:var(--wp-admin-theme-color)}.block-library-site-logo__inspector-media-replace-container button.components-button:focus,.block-library-site-logo__inspector-upload-container button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-media-replace-title,.block-library-site-logo__inspector-upload-container .block-library-site-logo__inspector-media-replace-title{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-library-site-logo__inspector-media-replace-container .components-dropdown{display:block}.block-library-site-logo__inspector-media-replace-container img{aspect-ratio:1;border-radius:50%!important;box-shadow:inset 0 0 0 1px #0003;min-width:20px;width:20px}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-readonly-logo-preview{display:flex;height:40px;padding:6px 12px}.wp-block-site-tagline__placeholder,.wp-block-site-title__placeholder{border:1px dashed;padding:1em 0}.editor-styles-wrapper .wp-block-site-title a{color:inherit}.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-links .wp-social-link button{color:currentColor;font-size:inherit;height:auto;line-height:0;opacity:1;padding:.25em}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-left:.66667em;padding-right:.66667em}.wp-block-social-links.is-style-logos-only .wp-social-link button{padding:0}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-left:8px}.wp-block-social-links.wp-block-social-links{background:none}.wp-social-link:hover{transform:none}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links__social-placeholder{display:flex;list-style:none;opacity:.8}.wp-block-social-links__social-placeholder>.wp-social-link{margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;visibility:hidden;width:0!important}.wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{display:flex}.wp-block-social-links__social-placeholder .wp-social-link{padding:.25em}.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link{padding-left:.66667em;padding-right:.66667em}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link{padding:0}.wp-block-social-links__social-placeholder .wp-social-link:before{border-radius:50%;content:"";display:block;height:1em;width:1em}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link:before{background:currentColor}.wp-block-social-links .wp-block-social-links__social-prompt{cursor:default;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:24px;list-style:none;margin-bottom:auto;margin-top:auto;min-height:24px;order:2;padding-right:8px}.wp-block.wp-block-social-links.aligncenter,.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .components-button:disabled{opacity:1}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-delay:0s;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}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;height:100%;min-height:8px;min-width:8px;position:absolute;width:100%;z-index:1}.block-library-spacer__resize-container.has-show-handle,.wp-block-spacer.is-hovered .block-library-spacer__resize-container,.wp-block-spacer.is-selected.custom-sizes-disabled{background:#0000001a}.is-dark-theme .block-library-spacer__resize-container.has-show-handle,.is-dark-theme .wp-block-spacer.is-hovered .block-library-spacer__resize-container,.is-dark-theme .wp-block-spacer.is-selected.custom-sizes-disabled{background:#ffffff26}.block-library-spacer__resize-container{clear:both}.block-library-spacer__resize-container:not(.is-resizing){height:100%!important;width:100%!important}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.block-library-spacer__resize-container.resize-horizontal{height:100%!important;margin-bottom:0}.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 td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:var(--wp-admin-theme-color);border-style:double;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.wp-block-table table.has-individual-borders td,.wp-block-table table.has-individual-borders th,.wp-block-table table.has-individual-borders tr,.wp-block-table table.has-individual-borders>*{border:1px solid}.blocks-table__placeholder-form.blocks-table__placeholder-form{align-items:flex-start;display:flex;flex-direction:column;gap:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{align-items:flex-end;flex-direction:row}}.blocks-table__placeholder-input{width:112px}.block-editor-template-part__selection-modal{z-index:1000001}.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-editor-template-part__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-template-part__selection-search{background:#fff;padding:16px 0;position:sticky;top:0;z-index:2}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}.wp-block-video.wp-block-video.is-selected .components-placeholder{background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e}.wp-block-video.wp-block-video.is-selected .components-placeholder>svg{opacity:0}.wp-block-video.wp-block-video.is-selected .components-placeholder .components-placeholder__illustration{display:none}.wp-block-video.wp-block-video.is-selected .components-placeholder:before{opacity:0}.wp-block-video.wp-block-video .components-button,.wp-block-video.wp-block-video .components-placeholder__instructions,.wp-block-video.wp-block-video .components-placeholder__label{transition:none}.wp-block[data-align=center]>.wp-block-video{text-align:center}.wp-block-video{position:relative}.wp-block-video.is-transient video{opacity:.3}.wp-block-video .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.editor-video-poster-control .components-base-control__label{display:block}.editor-video-poster-control .components-button{margin-right:8px}.block-library-video-tracks-editor{z-index:159990}.block-library-video-tracks-editor__track-list-track{padding-left:12px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-edit-track-label{color:#757575;display:block;font-size:11px;font-weight:500;margin-top:4px;text-transform:uppercase}.block-library-video-tracks-editor>.components-popover__content{padding:0;width:360px}.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label,.block-library-video-tracks-editor__track-list .components-menu-group__label{padding:0}.block-library-video-tracks-editor__add-tracks-container,.block-library-video-tracks-editor__single-track-editor,.block-library-video-tracks-editor__track-list{padding:12px}.editor-styles-wrapper ul.wp-block-post-template{list-style:none;margin-left:0;padding-left:0}.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 16px 16px 52px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:8px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:2px;padding:16px 0;position:sticky;top:0;z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.wp-block-query__enhanced-pagination-notice{margin:0}.wp-block[data-align=center]>.wp-block-query-pagination{justify-content:center}.editor-styles-wrapper .wp-block-query-pagination{max-width:100%}.editor-styles-wrapper .wp-block-query-pagination.block-editor-block-list__layout{margin:0}.wp-block-query-pagination>.wp-block-query-pagination-next,.wp-block-query-pagination>.wp-block-query-pagination-numbers,.wp-block-query-pagination>.wp-block-query-pagination-previous{margin:.5em .5em .5em 0}.wp-block-query-pagination>.wp-block-query-pagination-next:last-child,.wp-block-query-pagination>.wp-block-query-pagination-numbers:last-child,.wp-block-query-pagination>.wp-block-query-pagination-previous:last-child{margin-right:0}.wp-block-query-pagination-numbers a{text-decoration:underline}.wp-block-query-pagination-numbers .page-numbers{margin-right:2px}.wp-block-query-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-post-featured-image .block-editor-media-placeholder{-webkit-backdrop-filter:none;backdrop-filter:none;z-index:1}.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{align-items:center;display:flex;justify-content:center;min-height:200px;padding:0}.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image .components-placeholder .components-button,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;padding:0;position:relative;width:48px}.wp-block-post-featured-image .components-placeholder .components-button>svg,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button>svg{color:inherit}.wp-block-post-featured-image .components-placeholder:where(.has-border-color),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where(.has-border-color),.wp-block-post-featured-image img:where(.has-border-color){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-color]),.wp-block-post-featured-image img:where([style*=border-top-color]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-color]),.wp-block-post-featured-image img:where([style*=border-right-color]){border-right-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image img:where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-color]),.wp-block-post-featured-image img:where([style*=border-left-color]){border-left-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-width]),.wp-block-post-featured-image img:where([style*=border-width]){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-width]),.wp-block-post-featured-image img:where([style*=border-top-width]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-width]),.wp-block-post-featured-image img:where([style*=border-right-width]){border-right-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image img:where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-width]),.wp-block-post-featured-image img:where([style*=border-left-width]){border-left-style:solid}.wp-block-post-featured-image[style*=height] .components-placeholder{height:100%;min-height:48px;min-width:48px;width:100%}.wp-block-post-featured-image>a{cursor:default}.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-button,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__instructions,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}div[data-type="core/post-featured-image"] img{display:block;height:auto;max-width:100%}.wp-block-post-comments-form *{pointer-events:none}.wp-block-post-comments-form .block-editor-warning *{pointer-events:auto}.wp-block-post-content.wp-block-post-content{-webkit-user-select:none;user-select:none}.wp-element-button{cursor:revert}.wp-element-button[role=textbox]{cursor:text}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:where(.editor-styles-wrapper){--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:where(.editor-styles-wrapper) .has-regular-font-size{font-size:16px}:where(.editor-styles-wrapper) .has-larger-font-size{font-size:42px}:where(.editor-styles-wrapper) .has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}:where(.editor-styles-wrapper) .has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}:where(.editor-styles-wrapper) iframe:not([frameborder]){border:0} \ No newline at end of file
+ul.wp-block-archives{padding-left:2.5em}.wp-block-audio{margin-left:0;margin-right:0;position:relative}.wp-block-audio.is-transient audio{opacity:.3}.wp-block-audio .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.wp-block-avatar__image img{width:100%}.wp-block-avatar.aligncenter .components-resizable-box__container{margin:0 auto}.wp-block[data-align=center]>.wp-block-button{margin-left:auto;margin-right:auto;text-align:center}.wp-block[data-align=right]>.wp-block-button{
+ /*!rtl:ignore*/text-align:right}.wp-block-button{cursor:text;position:relative}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}div[data-type="core/button"]{display:table}.editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block,.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{margin:0}.wp-block-buttons>.block-list-appender{align-items:center;display:inline-flex}.wp-block-buttons.is-vertical>.block-list-appender .block-list-appender__toggle{justify-content:flex-start}.wp-block-buttons>.wp-block-button:focus{box-shadow:none}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center]{margin-left:auto;margin-right:auto;margin-top:0;width:100%}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center] .wp-block-button{margin-bottom:0}.editor-styles-wrapper .wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block[data-align=center]>.wp-block-buttons{align-items:center;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{justify-content:flex-end}.wp-block-categories ul{padding-left:2.5em}.wp-block-categories ul ul{margin-top:6px}[data-align=center] .wp-block-categories{text-align:center}.wp-block-code code{background:none}.wp-block-columns :where(.wp-block){margin-left:0;margin-right:0;max-width:none}html :where(.wp-block-column){margin-bottom:0;margin-top:0}.wp-block-comments__legacy-placeholder,.wp-block-post-comments{box-sizing:border-box}.wp-block-comments__legacy-placeholder .alignleft,.wp-block-post-comments .alignleft{float:left}.wp-block-comments__legacy-placeholder .alignright,.wp-block-post-comments .alignright{float:right}.wp-block-comments__legacy-placeholder .navigation:after,.wp-block-post-comments .navigation:after{clear:both;content:"";display:table}.wp-block-comments__legacy-placeholder .commentlist,.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-comments__legacy-placeholder .commentlist .comment,.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-left:3.25em}.wp-block-comments__legacy-placeholder .commentlist .comment p,.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-comments__legacy-placeholder .commentlist .children,.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-comments__legacy-placeholder .comment-author,.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-comments__legacy-placeholder .comment-author .avatar,.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;margin-top:.5em;width:2.5em}.wp-block-comments__legacy-placeholder .comment-author cite,.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-comments__legacy-placeholder .comment-meta,.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-comments__legacy-placeholder .comment-meta b,.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-comments__legacy-placeholder .comment-meta .comment-awaiting-moderation,.wp-block-post-comments .comment-meta .comment-awaiting-moderation{display:block;margin-bottom:1em;margin-top:1em}.wp-block-comments__legacy-placeholder .comment-body .commentmetadata,.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-comments__legacy-placeholder .comment-form-author label,.wp-block-comments__legacy-placeholder .comment-form-comment label,.wp-block-comments__legacy-placeholder .comment-form-email label,.wp-block-comments__legacy-placeholder .comment-form-url label,.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-comments__legacy-placeholder .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder .comment-form textarea,.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-comments__legacy-placeholder .comment-form-cookies-consent,.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-comments__legacy-placeholder .comment-form-cookies-consent #wp-comment-cookies-consent,.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-comments__legacy-placeholder .comment-reply-title,.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-comments__legacy-placeholder .comment-reply-title :where(small),.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-left:.5em}.wp-block-comments__legacy-placeholder .reply,.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-comments__legacy-placeholder input:not([type=submit]),.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-comments__legacy-placeholder input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}:where(.wp-block-post-comments input[type=submit]){border:none}.block-library-comments-toolbar__popover .components-popover__content{min-width:230px}.wp-block-comments__legacy-placeholder *{pointer-events:none}.wp-block-comment-author-avatar__placeholder{border:1px dashed;height:100%;width:100%;stroke:currentColor;stroke-dasharray:3}.wp-block[data-align=center]>.wp-block-comments-pagination{justify-content:center}.editor-styles-wrapper .wp-block-comments-pagination{max-width:100%}.editor-styles-wrapper .wp-block-comments-pagination.block-editor-block-list__layout{margin:0}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers,.wp-block-comments-pagination>.wp-block-comments-pagination-previous{margin:.5em .5em .5em 0}.wp-block-comments-pagination>.wp-block-comments-pagination-next:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-previous:last-child{margin-right:0}.wp-block-comments-pagination-numbers a{text-decoration:underline}.wp-block-comments-pagination-numbers .page-numbers{margin-right:2px}.wp-block-comments-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-comments-title.has-background{padding:inherit}.editor-styles-wrapper .wp-block-cover{box-sizing:border-box}.wp-block-cover.is-placeholder{align-items:stretch;display:flex;min-height:240px;padding:0!important}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient{position:relative}.wp-block-cover.is-transient:before{background-color:#fff;content:"";height:100%;opacity:.3;position:absolute;width:100%;z-index:1}.wp-block-cover .components-spinner{left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:1}.wp-block-cover .wp-block-cover__inner-container{margin-left:0;margin-right:0;text-align:left}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{bottom:0;left:0;position:absolute;right:0;top:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container{bottom:0;left:0;min-height:50px;position:absolute!important;right:0;top:0}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div{overflow:visible;pointer-events:none}.wp-block-cover>.components-drop-zone .components-drop-zone__content{opacity:.8!important}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px}.wp-block-details summary div{display:inline}.wp-block-embed{clear:both;margin-left:0;margin-right:0}.wp-block-embed.is-loading{display:flex;justify-content:center}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-post-content .wp-block-embed__learn-more a{color:var(--wp-admin-theme-color)}.block-library-embed__interactive-overlay{bottom:0;left:0;opacity:0;position:absolute;right:0;top:0}.wp-block[data-align=left]>.wp-block-embed,.wp-block[data-align=right]>.wp-block-embed{max-width:360px;width:100%}.wp-block[data-align=left]>.wp-block-embed .wp-block-embed__wrapper,.wp-block[data-align=right]>.wp-block-embed .wp-block-embed__wrapper{min-width:280px}.wp-block-file{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:0}.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{height:auto}.wp-block[data-align=center]>.wp-block-file{text-align:center}.wp-block-file .components-resizable-box__container{margin-bottom:1em}.wp-block-file .wp-block-file__preview{height:100%;margin-bottom:1em;width:100%}.wp-block-file .wp-block-file__preview-overlay{bottom:0;left:0;position:absolute;right:0;top:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file a{min-width:1em}.wp-block-file a:not(.wp-block-file__button){display:inline-block}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-left:.75em}.wp-block-form-input .is-input-hidden{background:repeating-linear-gradient(45deg,#0000,#0000 5px,currentColor 0,currentColor 6px);border:1px dashed;box-sizing:border-box;font-size:.85em;opacity:.3;padding:.5em}.wp-block-form-input .is-input-hidden input[type=text]{background:#0000}.wp-block-form-input.is-selected .is-input-hidden{background:none;opacity:1}.wp-block-form-input.is-selected .is-input-hidden input[type=text]{background:unset}.wp-block-form-submission-notification>*{background:repeating-linear-gradient(45deg,#0000,#0000 5px,currentColor 0,currentColor 6px);border:1px dashed;box-sizing:border-box;opacity:.25}.wp-block-form-submission-notification.is-selected>*,.wp-block-form-submission-notification:has(.is-selected)>*{background:none;opacity:1}.wp-block-form-submission-notification.is-selected:after,.wp-block-form-submission-notification:has(.is-selected):after{display:none!important}.wp-block-form-submission-notification:after{align-items:center;display:flex;font-size:1.1em;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.wp-block-form-submission-notification.form-notification-type-success:after{content:attr(data-message-success)}.wp-block-form-submission-notification.form-notification-type-error:after{content:attr(data-message-error)}.wp-block-freeform.block-library-rich-text__tinymce{height:auto}.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{margin-left:0;padding-left:2.5em}.wp-block-freeform.block-library-rich-text__tinymce blockquote{border-left:4px solid #000;box-shadow:inset 0 0 0 0 #ddd;margin:0;padding-left:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;white-space:pre-wrap}.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:var(--wp-admin-theme-color)}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{background:#e5f5fa;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;margin:0 -2px;padding:0 2px}.wp-block-freeform.block-library-rich-text__tinymce code{background:#f0f0f0;border-radius:2px;color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;padding:2px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#ddd}.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{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-position:50%;background-repeat:no-repeat;background-size:1900px 20px;cursor:default;display:block;height:20px;margin:15px auto;outline:0;width:96%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:initial}.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{margin:0;padding-top:.5em}.wp-block-freeform.block-library-rich-text__tinymce .wpview{border:1px solid #0000;clear:both;margin-bottom:16px;position:relative;width:99.99%}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{background:#0000;display:block;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{bottom:0;left:0;position:absolute;right:0;top: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 #ddd;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #ddd;margin:0;padding:1em 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:#0000}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;font-size:32px;height:32px;margin:0 auto;width:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{clear:both;content:"";display:table}.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{line-height:1;margin:auto -6px;overflow-x:hidden;padding:6px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{box-sizing:border-box;float:left;margin:0;padding:6px;text-align:center}.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.3333333333%}.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.6666666667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.2857142857%}.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.1111111111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{border:none;height:auto;max-width:100%;padding:0}div[data-type="core/freeform"]:before{border:1px solid #ddd;outline:1px solid #0000;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-delay:0s;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{clear:both;content:"";display:table}.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i,.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i{color:#1e1e1e}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-left:8px;margin-right:0}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{border:1px solid #ddd;border-bottom:none;border-radius:2px;display:none;margin:0 0 8px;padding:0;position:sticky;top:0;width:auto;z-index:31}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar{border-color:#1e1e1e;display:block}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{background:#f5f5f5;border-bottom:1px solid #e2e4e7;display:block}.block-library-classic__toolbar:empty:before{color:#555d66;content:attr(data-placeholder);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;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}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{height:50vh!important}@media (min-width:960px){.block-editor-freeform-modal .block-editor-freeform-modal__content:not(.is-full-screen){height:9999rem}.block-editor-freeform-modal .block-editor-freeform-modal__content .components-modal__header+div{height:100%}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-tinymce{height:calc(100% - 52px)}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-container-body{display:flex;flex-direction:column;height:100%;min-width:50vw}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area{display:flex;flex-direction:column;flex-grow:1}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{flex-grow:1;height:10px!important}}.block-editor-freeform-modal__actions{margin-top:16px}:root :where(figure.wp-block-gallery){display:block}:root :where(figure.wp-block-gallery)>.blocks-gallery-caption{flex:0 0 100%}:root :where(figure.wp-block-gallery)>.blocks-gallery-media-placeholder-wrapper{flex-basis:100%}:root :where(figure.wp-block-gallery) .wp-block-image .components-notice.is-error{display:block}:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__content{margin:4px 0}:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__dismiss{position:absolute;right:5px;top:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder{margin:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder .components-placeholder__label{display:flex}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder figcaption{z-index:2}:root :where(figure.wp-block-gallery) .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.gallery-settings-buttons .components-button:first-child{margin-right:8px}.gallery-image-sizes .components-base-control__label{display:block;margin-bottom:4px}.gallery-image-sizes .gallery-image-sizes__loading{align-items:center;color:#757575;display:flex;font-size:12px}.gallery-image-sizes .components-spinner{margin:0 8px 0 4px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{bottom:0;box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";left:0;outline:2px solid #0000;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{height:100%;margin:0}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{background:#fff;border:1px solid #1e1e1e;border-radius:2px;display:none;margin:8px;position:absolute;top:-2px;transition:box-shadow .2s ease-out;z-index:20}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-delay:0s;transition-duration:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{height:inherit;padding:0;width:inherit}}.block-library-gallery-item__inline-menu.is-left{left:-2px}.block-library-gallery-item__inline-menu.is-right{right:-2px}.wp-block-gallery ul.blocks-gallery-grid{margin:0;padding:0}@media (min-width:600px){.wp-block-update-gallery-modal{max-width:480px}}.wp-block-update-gallery-modal-buttons{display:flex;gap:12px;justify-content:flex-end}.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[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-bottom:18px;margin-top:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;flex:1;flex-direction:inherit;width:100%}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{border:1px dashed;border-radius:2px;content:"";display:flex;flex:1 0 48px;min-height:46px;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all}.block-library-html__edit .block-library-html__preview-overlay{height:100%;left:0;position:absolute;top:0;width:100%}.block-library-html__edit .block-editor-plain-text{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;direction:ltr;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important}@media (min-width:600px){.block-library-html__edit .block-editor-plain-text{font-size:13px!important}}.block-library-html__edit .block-editor-plain-text:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid #0000!important}.wp-block-image.wp-block-image.is-selected .components-placeholder{background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;filter:none!important}.wp-block-image.wp-block-image.is-selected .components-placeholder>svg{opacity:0}.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration{display:none}.wp-block-image.wp-block-image .block-bindings-media-placeholder-message,.wp-block-image.wp-block-image.is-selected .components-placeholder:before{opacity:0}.wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message{opacity:1}.wp-block-image.wp-block-image .components-button,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-placeholder__label{transition: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{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.wp-block-image .components-resizable-box__container{display:table}.wp-block-image .components-resizable-box__container img{display:block;height:inherit;width:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{left:0;margin:-1px 0;position:absolute;right: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{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{caption-side:bottom;display:table-caption}.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}.wp-block-image__crop-area{max-width:100%;overflow:hidden;position:relative;width:100%}.wp-block-image__crop-area .reactEasyCrop_Container{pointer-events:auto}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none;border-radius:0}.wp-block-image__crop-icon{align-items:center;display:flex;justify-content:center;min-width:48px;padding:0 8px}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.wp-block-image__toolbar_content_textarea{width:250px}.wp-block-latest-posts>li{overflow:hidden}.wp-block-latest-posts li a>div{display:inline}.editor-latest-posts-image-alignment-control .components-base-control__label{display:block}.editor-latest-posts-image-alignment-control .components-toolbar{border-radius:2px}:root :where(.wp-block-latest-posts){padding-left:2.5em}:root :where(.wp-block-latest-posts.is-grid),:root :where(.wp-block-latest-posts__list){padding-left:0}.wp-block-media-text__media{position:relative}.wp-block-media-text__media.is-transient img{opacity:.3}.wp-block-media-text__media .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.wp-block-media-text .__resizable_base__{grid-column:1/span 2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .components-placeholder.has-illustration,.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}.wp-block-media-text--placeholder-image{min-height:205px}.block-editor-block-list__block[data-type="core/more"]{margin-bottom:28px;margin-top:28px;max-width:100%;text-align:center}.wp-block-more{display:block;text-align:center;white-space:nowrap}.wp-block-more input[type=text]{background:#fff;border:none;border-radius:4px;box-shadow:none;color:#757575;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;height:24px;margin:0;max-width:100%;padding:6px 8px;position:relative;text-align:center;text-transform:uppercase;white-space:nowrap}.wp-block-more input[type=text]:focus{box-shadow:none}.wp-block-more:before{border-top:3px dashed #ccc;content:"";left:0;position:absolute;right:0;top:50%}.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-left:0;margin-top:0;padding-left:0}.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block{margin:revert}.wp-block-navigation-item__label{display:inline}.wp-block-navigation-item,.wp-block-navigation__container{background-color:inherit}.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__submenu-container,.has-child.is-selected>.wp-block-navigation__submenu-container{display:flex;opacity:1;visibility:visible}.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__submenu-container{opacity:1;visibility:visible}.is-editing>.wp-block-navigation__container{display:flex;flex-direction:column;opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender{display:block;position:static;width:100%}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender .block-editor-button-block-appender{background:#1e1e1e;border-radius:2px;color:#fff;margin-left:auto;margin-right:0;padding:0;width:24px}.wp-block-navigation__submenu-container .block-list-appender{display:none}.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{align-items:center;border-radius:4px;display:flex;height:30px;margin:0 auto;padding:3px;position:relative}.block-library-colors-selector .block-library-colors-selector__state-selection{border-radius:11px;box-shadow:inset 0 0 0 1px #0003;height:22px;line-height:20px;margin-left:auto;margin-right:auto;min-height:22px;min-width:22px;padding:2px;width:22px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.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 .wp-block+.block-list-appender .block-editor-button-block-appender{background-color:#1e1e1e;color:#fff}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender.block-editor-button-block-appender.block-editor-button-block-appender{padding:0}.wp-block-navigation .wp-block .wp-block .block-editor-button-block-appender{background-color:initial;color:#1e1e1e}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.components-placeholder.wp-block-navigation-placeholder{background:none;box-shadow:none;color:inherit;min-height:0;outline:none;padding:0}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset{font-size:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button{margin-bottom:0}.wp-block-navigation.is-selected .components-placeholder.wp-block-navigation-placeholder{color:#1e1e1e}.wp-block-navigation-placeholder__preview{align-items:center;background:#0000;color:currentColor;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;min-width:96px}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview{display:none}.wp-block-navigation-placeholder__preview:before{border:1px dashed;border-radius:2px;border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview:before:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview>svg{fill:currentColor}.wp-block-navigation.is-vertical .is-medium .components-placeholder__fieldset,.wp-block-navigation.is-vertical .is-small .components-placeholder__fieldset{min-height:90px}.wp-block-navigation.is-vertical .is-large .components-placeholder__fieldset{min-height:132px}.wp-block-navigation-placeholder__controls,.wp-block-navigation-placeholder__preview{align-items:flex-start;flex-direction:row;padding:6px 8px}.wp-block-navigation-placeholder__controls{background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:none;float:left;position:relative;width:100%;z-index:1}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls{display:flex}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr{display:none}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions{align-items:flex-start;flex-direction:column}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr{display:none}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon{height:36px;margin-right:12px}.wp-block-navigation-placeholder__actions__indicator{align-items:center;display:flex;height:36px;justify-content:flex-start;line-height:0;margin-left:4px;padding:0 6px 0 0}.wp-block-navigation-placeholder__actions__indicator svg{margin-right:4px;fill:currentColor}.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset{flex-direction:row!important}.wp-block-navigation-placeholder__actions{align-items:center;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;gap:6px;height:100%}.wp-block-navigation-placeholder__actions .components-dropdown,.wp-block-navigation-placeholder__actions>.components-button{margin-right:0}.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr{background-color:#1e1e1e;border:0;height:100%;margin:auto 0;max-height:16px;min-height:1px;min-width:1px}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close{display:none}}.wp-block-navigation__responsive-container.is-menu-open{position:fixed;top:155px}@media (min-width:782px){.wp-block-navigation__responsive-container.is-menu-open{left:36px;top:93px}}@media (min-width:960px){.wp-block-navigation__responsive-container.is-menu-open{left:160px}}@media (min-width:782px){.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:141px}}.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:141px}.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{left:0;top:155px}@media (min-width:782px){.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{top:61px}.is-fullscreen-mode .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:109px}}.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:109px}body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open{bottom:0;left:0;right:0;top:0}.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close,.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{color:inherit;height:auto;padding:0}.components-heading.wp-block-navigation-off-canvas-editor__title{margin:0}.wp-block-navigation-off-canvas-editor__header{margin-bottom:8px}.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender{margin-top:16px}@keyframes fadein{0%{opacity:0}to{opacity:1}}.wp-block-navigation__loading-indicator-container{padding:8px 12px}.wp-block-navigation .wp-block-navigation__uncontrolled-inner-blocks-loading-indicator{margin-top:0}@keyframes fadeouthalf{0%{opacity:1}to{opacity:.5}}.wp-block-navigation-delete-menu-button{justify-content:center;margin-bottom:16px;width:100%}.components-button.is-link.wp-block-navigation-manage-menus-button{margin-bottom:16px}.wp-block-navigation__overlay-menu-preview{align-items:center;background-color:#f0f0f0;display:flex;height:64px;justify-content:space-between;margin-bottom:12px;padding:0 24px;width:100%}.wp-block-navigation__overlay-menu-preview.open{background-color:#fff;box-shadow:inset 0 0 0 1px #e0e0e0;outline:1px solid #0000}.wp-block-navigation-placeholder__actions hr+hr,.wp-block-navigation__toolbar-menu-selector.components-toolbar-group:empty{display:none}.wp-block-navigation__navigation-selector{margin-bottom:16px;width:100%}.wp-block-navigation__navigation-selector-button{border:1px solid;justify-content:space-between;width:100%}.wp-block-navigation__navigation-selector-button__icon{flex:0 0 auto}.wp-block-navigation__navigation-selector-button__label{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wp-block-navigation__navigation-selector-button--createnew{border:1px solid;margin-bottom:16px;width:100%}.wp-block-navigation__responsive-container-open.components-button{opacity:1}.wp-block-navigation__menu-inspector-controls{overflow-x:auto;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin;will-change:transform}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar{height:12px;width:12px}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-track{background-color:initial}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.wp-block-navigation__menu-inspector-controls:focus-within::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:focus::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:hover::-webkit-scrollbar-thumb{background-color:#949494}.wp-block-navigation__menu-inspector-controls:focus,.wp-block-navigation__menu-inspector-controls:focus-within,.wp-block-navigation__menu-inspector-controls:hover{scrollbar-color:#949494 #0000}@media (hover:none){.wp-block-navigation__menu-inspector-controls{scrollbar-color:#949494 #0000}}.wp-block-navigation__menu-inspector-controls__empty-message{margin-left:24px}.wp-block-navigation .block-list-appender{position:relative}.wp-block-navigation .has-child{cursor:pointer}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container{z-index:29}.wp-block-navigation .has-child.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child.is-selected>.wp-block-navigation__submenu-container{height:auto!important;min-width:200px!important;opacity:1!important;overflow:visible!important;visibility:visible!important;width:auto!important}.wp-block-navigation-item .wp-block-navigation-item__content{cursor:text}.wp-block-navigation-item.is-editing,.wp-block-navigation-item.is-selected{min-width:20px}.wp-block-navigation-item .block-list-appender{margin:16px auto 16px 16px}.wp-block-navigation-link__invalid-item{color:#000}.wp-block-navigation-link__placeholder{background-image:none!important;box-shadow:none!important;position:relative;text-decoration:none!important}.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{--wp-underline-color:var(--wp-admin-theme-color);background-image:linear-gradient(45deg,#0000 20%,var(--wp-underline-color) 30%,var(--wp-underline-color) 36%,#0000 46%),linear-gradient(135deg,#0000 54%,var(--wp-underline-color) 64%,var(--wp-underline-color) 70%,#0000 80%);background-position:0 100%;background-repeat:repeat-x;background-size:6px 3px;padding-bottom:.1em}.is-dark-theme .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{--wp-underline-color:#fff}.wp-block-navigation-link__placeholder.wp-block-navigation-item__content{cursor:pointer}.link-control-transform{border-top:1px solid #ccc;padding:0 16px 8px}.link-control-transform__subheading{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.link-control-transform__items{display:flex;justify-content:space-between}.link-control-transform__item{flex-basis:33%;flex-direction:column;gap:8px;height:auto}.wp-block-navigation-submenu{display:block}.wp-block-navigation-submenu .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container{height:auto!important;left:-1px;min-width:200px!important;opacity:1!important;position:absolute;top:100%;visibility:visible!important;width:auto!important}@media (min-width:782px){.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:-1px}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:#0000;content:"";display:block;height:100%;position:absolute;right:100%;width:.5em}}.block-editor-block-list__block[data-type="core/nextpage"]{margin-bottom:28px;margin-top:28px;max-width:100%;text-align:center}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{background:#fff;border-radius:4px;color:#757575;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;height:24px;padding:6px 8px;position:relative;text-transform:uppercase}.wp-block-nextpage:before{border-top:3px dashed #ccc;content:"";left:0;position:absolute;right:0;top:50%}.wp-block-navigation .wp-block-page-list,.wp-block-navigation .wp-block-page-list>div{background-color:inherit}.wp-block-navigation.items-justified-space-between .wp-block-page-list,.wp-block-navigation.items-justified-space-between .wp-block-page-list>div{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div{flex:inherit}.wp-block-navigation .wp-block-navigation__submenu-container>.wp-block-page-list{display:block}.wp-block-pages-list__item__link{pointer-events:none}@media (min-width:600px){.wp-block-page-list-modal{max-width:480px}}.wp-block-page-list-modal-buttons{display:flex;gap:12px;justify-content:flex-end}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;visibility:visible;width:auto}.wp-block-page-list__loading-indicator-container{padding:8px 12px}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:1}.block-editor-block-list__block[data-empty=true]+.block-editor-block-list__block[data-empty=true]:not([data-custom-placeholder=true]) [data-rich-text-placeholder]{opacity:0}.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-left[style*="writing-mode: vertical-lr"],.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-right[style*="writing-mode: vertical-rl"]{rotate:180deg}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{font-style:normal;text-transform:none}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{flex:1 1 auto}.wp-block[data-align=center] .wp-block-search .wp-block-search__inside-wrapper{margin:auto}.wp-block-search .wp-block-search__button{align-items:center;border-radius:initial;display:flex;height:auto;justify-content:center;text-align:center}.wp-block-search__components-button-group{margin-top:10px}.block-editor-block-list__block[data-type="core/separator"]{padding-bottom:.1px;padding-top:.1px}.blocks-shortcode__textarea{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important;resize:none}@media (min-width:600px){.blocks-shortcode__textarea{font-size:13px!important}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid #0000!important}.wp-block-site-logo.aligncenter>div,.wp-block[data-align=center]>.wp-block-site-logo{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.is-transient{position:relative}.wp-block-site-logo.is-transient img{opacity:.3}.wp-block-site-logo.is-transient .components-spinner{left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%)}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:60px;width:60px}.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder{align-items:center;border-radius:inherit;display:flex;height:100%;justify-content:center;min-height:48px;min-width:48px;padding:0;width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text,.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;margin:auto;padding:0;position:relative;width:48px}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:inherit}.block-library-site-logo__inspector-upload-container{position:relative}.block-library-site-logo__inspector-upload-container .components-drop-zone__content-icon{display:none}.block-library-site-logo__inspector-media-replace-container button.components-button,.block-library-site-logo__inspector-upload-container button.components-button{box-shadow:inset 0 0 0 1px #ccc;color:#1e1e1e;display:block;height:40px;width:100%}.block-library-site-logo__inspector-media-replace-container button.components-button:hover,.block-library-site-logo__inspector-upload-container button.components-button:hover{color:var(--wp-admin-theme-color)}.block-library-site-logo__inspector-media-replace-container button.components-button:focus,.block-library-site-logo__inspector-upload-container button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-media-replace-title,.block-library-site-logo__inspector-upload-container .block-library-site-logo__inspector-media-replace-title{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-library-site-logo__inspector-media-replace-container .components-dropdown{display:block}.block-library-site-logo__inspector-media-replace-container img{aspect-ratio:1;border-radius:50%!important;box-shadow:inset 0 0 0 1px #0003;min-width:20px;width:20px}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-readonly-logo-preview{display:flex;height:40px;padding:6px 12px}.wp-block-site-tagline__placeholder,.wp-block-site-title__placeholder{border:1px dashed;padding:1em 0}.editor-styles-wrapper :where(.wp-block-site-title a){color:inherit}.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-link-anchor{align-items:center;background:none;border:0;box-sizing:border-box;color:currentColor;cursor:pointer;display:inline-flex;font-size:inherit;height:auto;opacity:1;padding:.25em}.wp-block-social-link-anchor:focus:not(:disabled){border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid #0000}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link button){padding-left:.66667em;padding-right:.66667em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link button){padding:0}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-left:8px}.wp-social-link:hover{transform:none}:root :where(.wp-block-social-links),:root :where(.wp-block-social-links.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link){padding:0}:root :where(.wp-block-social-links__social-placeholder .wp-social-link){padding:.25em}:root :where(.wp-block-social-links.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link){padding-left:.66667em;padding-right:.66667em}.wp-block-social-links__social-placeholder{display:flex;list-style:none;opacity:.8}.wp-block-social-links__social-placeholder>.wp-social-link{margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;visibility:hidden;width:0!important}.wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{display:flex}.wp-block-social-links__social-placeholder .wp-social-link:before{border-radius:50%;content:"";display:block;height:1em;width:1em}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link:before{background:currentColor}.wp-block-social-links .wp-block-social-links__social-prompt{cursor:default;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:24px;list-style:none;margin-bottom:auto;margin-top:auto;min-height:24px;padding-right:8px}.wp-block.wp-block-social-links.aligncenter,.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .components-button:disabled{opacity:1}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-delay:0s;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}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;height:100%;min-height:8px;min-width:8px;position:absolute;width:100%;z-index:1}.block-library-spacer__resize-container.has-show-handle,.wp-block-spacer.is-hovered .block-library-spacer__resize-container,.wp-block-spacer.is-selected.custom-sizes-disabled{background:#0000001a}.is-dark-theme .block-library-spacer__resize-container.has-show-handle,.is-dark-theme .wp-block-spacer.is-hovered .block-library-spacer__resize-container,.is-dark-theme .wp-block-spacer.is-selected.custom-sizes-disabled{background:#ffffff26}.block-library-spacer__resize-container{clear:both}.block-library-spacer__resize-container:not(.is-resizing){height:100%!important;width:100%!important}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.block-library-spacer__resize-container.resize-horizontal{height:100%!important;margin-bottom:0}.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 td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:var(--wp-admin-theme-color);border-style:double;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.wp-block-table table.has-individual-borders td,.wp-block-table table.has-individual-borders th,.wp-block-table table.has-individual-borders tr,.wp-block-table table.has-individual-borders>*{border:1px solid}.blocks-table__placeholder-form.blocks-table__placeholder-form{align-items:flex-start;display:flex;flex-direction:column;gap:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{align-items:flex-end;flex-direction:row}}.blocks-table__placeholder-input{width:112px}.block-editor-template-part__selection-modal{z-index:1000001}.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-editor-template-part__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-template-part__selection-search{background:#fff;padding:16px 0;position:sticky;top:0;z-index:2}.block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{outline-color:var(--wp-block-synced-color)}.is-dark-theme .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after{outline-color:#fff}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.has-editable-outline:after{border:none}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}.wp-block-video.wp-block-video.is-selected .components-placeholder{background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e}.wp-block-video.wp-block-video.is-selected .components-placeholder>svg{opacity:0}.wp-block-video.wp-block-video.is-selected .components-placeholder .components-placeholder__illustration{display:none}.wp-block-video.wp-block-video.is-selected .components-placeholder:before{opacity:0}.wp-block-video.wp-block-video .components-button,.wp-block-video.wp-block-video .components-placeholder__instructions,.wp-block-video.wp-block-video .components-placeholder__label{transition:none}.wp-block[data-align=center]>.wp-block-video{text-align:center}.wp-block-video{position:relative}.wp-block-video.is-transient video{opacity:.3}.wp-block-video .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.editor-video-poster-control .components-base-control__label{display:block}.editor-video-poster-control .components-button{margin-right:8px}.block-library-video-tracks-editor{z-index:159990}.block-library-video-tracks-editor__track-list-track{padding-left:12px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-edit-track-label{color:#757575;display:block;font-size:11px;font-weight:500;margin-top:4px;text-transform:uppercase}.block-library-video-tracks-editor>.components-popover__content{padding:0;width:360px}.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label,.block-library-video-tracks-editor__track-list .components-menu-group__label{padding:0}.block-library-video-tracks-editor__add-tracks-container,.block-library-video-tracks-editor__single-track-editor,.block-library-video-tracks-editor__track-list{padding:12px}.editor-styles-wrapper ul.wp-block-post-template{list-style:none;margin-left:0;padding-left:0}.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 16px 16px 52px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:8px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:-4px;padding:16px 0;position:sticky;top:0;transform:translateY(-4px);z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.wp-block-query__enhanced-pagination-notice{margin:0}.wp-block[data-align=center]>.wp-block-query-pagination{justify-content:center}.editor-styles-wrapper .wp-block-query-pagination{max-width:100%}.editor-styles-wrapper .wp-block-query-pagination.block-editor-block-list__layout{margin:0}.wp-block-query-pagination>.wp-block-query-pagination-next,.wp-block-query-pagination>.wp-block-query-pagination-numbers,.wp-block-query-pagination>.wp-block-query-pagination-previous{margin:.5em .5em .5em 0}.wp-block-query-pagination>.wp-block-query-pagination-next:last-child,.wp-block-query-pagination>.wp-block-query-pagination-numbers:last-child,.wp-block-query-pagination>.wp-block-query-pagination-previous:last-child{margin-right:0}.wp-block-query-pagination-numbers a{text-decoration:underline}.wp-block-query-pagination-numbers .page-numbers{margin-right:2px}.wp-block-query-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-post-featured-image .block-editor-media-placeholder{-webkit-backdrop-filter:none;backdrop-filter:none;z-index:1}.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{align-items:center;display:flex;justify-content:center;min-height:200px;padding:0}.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image .components-placeholder .components-button,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;margin:auto;padding:0;position:relative;width:48px}.wp-block-post-featured-image .components-placeholder .components-button>svg,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button>svg{color:inherit}.wp-block-post-featured-image .components-placeholder:where(.has-border-color),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where(.has-border-color),.wp-block-post-featured-image img:where(.has-border-color){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-color]),.wp-block-post-featured-image img:where([style*=border-top-color]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-color]),.wp-block-post-featured-image img:where([style*=border-right-color]){border-right-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image img:where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-color]),.wp-block-post-featured-image img:where([style*=border-left-color]){border-left-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-width]),.wp-block-post-featured-image img:where([style*=border-width]){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-width]),.wp-block-post-featured-image img:where([style*=border-top-width]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-width]),.wp-block-post-featured-image img:where([style*=border-right-width]){border-right-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image img:where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-width]),.wp-block-post-featured-image img:where([style*=border-left-width]){border-left-style:solid}.wp-block-post-featured-image[style*=height] .components-placeholder{height:100%;min-height:48px;min-width:48px;width:100%}.wp-block-post-featured-image>a{cursor:default}.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-button,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__instructions,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.wp-block-post-featured-image.is-transient{position:relative}.wp-block-post-featured-image.is-transient img{opacity:.3}.wp-block-post-featured-image.is-transient .components-spinner{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}div[data-type="core/post-featured-image"] img{display:block;height:auto;max-width:100%}.wp-block-post-comments-form *{pointer-events:none}.wp-block-post-comments-form .block-editor-warning *{pointer-events:auto}.wp-block-post-content.wp-block-post-content{-webkit-user-select:none;user-select:none}.wp-element-button{cursor:revert}.wp-element-button[role=textbox]{cursor:text}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:where(.editor-styles-wrapper) .has-regular-font-size{font-size:16px}:where(.editor-styles-wrapper) .has-larger-font-size{font-size:42px}:where(.editor-styles-wrapper) iframe:not([frameborder]){border:0} \ No newline at end of file
diff --git a/wp-includes/css/dist/block-library/reset-rtl.css b/wp-includes/css/dist/block-library/reset-rtl.css
index ca4eb16..aaf9b82 100644
--- a/wp-includes/css/dist/block-library/reset-rtl.css
+++ b/wp-includes/css/dist/block-library/reset-rtl.css
@@ -1,4 +1,4 @@
-:where(.editor-styles-wrapper){
+html :where(.editor-styles-wrapper){
background:#fff;
color:initial;
font-family:serif;
diff --git a/wp-includes/css/dist/block-library/reset-rtl.min.css b/wp-includes/css/dist/block-library/reset-rtl.min.css
index a5db506..5494c52 100644
--- a/wp-includes/css/dist/block-library/reset-rtl.min.css
+++ b/wp-includes/css/dist/block-library/reset-rtl.min.css
@@ -1 +1 @@
-:where(.editor-styles-wrapper){background:#fff;color:initial;font-family:serif;font-size:medium;line-height:normal}:where(.editor-styles-wrapper) .wp-align-wrapper{max-width:840px}:where(.editor-styles-wrapper) .wp-align-wrapper.wp-align-full,:where(.editor-styles-wrapper) .wp-align-wrapper>.wp-block{max-width:none}:where(.editor-styles-wrapper) .wp-align-wrapper.wp-align-wide{max-width:840px}:where(.editor-styles-wrapper) a{transition:none}:where(.editor-styles-wrapper) code,:where(.editor-styles-wrapper) kbd{background:inherit;font-family:monospace;font-size:inherit;margin:0;padding:0}:where(.editor-styles-wrapper) p{font-size:revert;line-height:revert;margin:revert}:where(.editor-styles-wrapper) ol,:where(.editor-styles-wrapper) ul{box-sizing:border-box;list-style-type:revert;margin:revert;padding:revert}:where(.editor-styles-wrapper) ol ol,:where(.editor-styles-wrapper) ol ul,:where(.editor-styles-wrapper) ul ol,:where(.editor-styles-wrapper) ul ul{margin:revert}:where(.editor-styles-wrapper) ol li,:where(.editor-styles-wrapper) ul li{margin:revert}:where(.editor-styles-wrapper) ol ul,:where(.editor-styles-wrapper) ul ul{list-style-type:revert}:where(.editor-styles-wrapper) h1,:where(.editor-styles-wrapper) h2,:where(.editor-styles-wrapper) h3,:where(.editor-styles-wrapper) h4,:where(.editor-styles-wrapper) h5,:where(.editor-styles-wrapper) h6{color:revert;font-size:revert;font-weight:revert;line-height:revert;margin:revert}:where(.editor-styles-wrapper) select{-webkit-appearance:revert;background:revert;border:revert;border-radius:revert;box-shadow:revert;color:revert;cursor:revert;font-family:system-ui;font-size:revert;font-weight:revert;line-height:revert;margin:revert;max-width:revert;min-height:revert;outline:revert;padding:revert;text-shadow:revert;transform:revert;vertical-align:revert}:where(.editor-styles-wrapper) select:disabled,:where(.editor-styles-wrapper) select:focus{background-color:revert;background-image:revert;border-color:revert;box-shadow:revert;color:revert;cursor:revert;text-shadow:revert;transform:revert} \ No newline at end of file
+html :where(.editor-styles-wrapper){background:#fff;color:initial;font-family:serif;font-size:medium;line-height:normal}:where(.editor-styles-wrapper) .wp-align-wrapper{max-width:840px}:where(.editor-styles-wrapper) .wp-align-wrapper.wp-align-full,:where(.editor-styles-wrapper) .wp-align-wrapper>.wp-block{max-width:none}:where(.editor-styles-wrapper) .wp-align-wrapper.wp-align-wide{max-width:840px}:where(.editor-styles-wrapper) a{transition:none}:where(.editor-styles-wrapper) code,:where(.editor-styles-wrapper) kbd{background:inherit;font-family:monospace;font-size:inherit;margin:0;padding:0}:where(.editor-styles-wrapper) p{font-size:revert;line-height:revert;margin:revert}:where(.editor-styles-wrapper) ol,:where(.editor-styles-wrapper) ul{box-sizing:border-box;list-style-type:revert;margin:revert;padding:revert}:where(.editor-styles-wrapper) ol ol,:where(.editor-styles-wrapper) ol ul,:where(.editor-styles-wrapper) ul ol,:where(.editor-styles-wrapper) ul ul{margin:revert}:where(.editor-styles-wrapper) ol li,:where(.editor-styles-wrapper) ul li{margin:revert}:where(.editor-styles-wrapper) ol ul,:where(.editor-styles-wrapper) ul ul{list-style-type:revert}:where(.editor-styles-wrapper) h1,:where(.editor-styles-wrapper) h2,:where(.editor-styles-wrapper) h3,:where(.editor-styles-wrapper) h4,:where(.editor-styles-wrapper) h5,:where(.editor-styles-wrapper) h6{color:revert;font-size:revert;font-weight:revert;line-height:revert;margin:revert}:where(.editor-styles-wrapper) select{-webkit-appearance:revert;background:revert;border:revert;border-radius:revert;box-shadow:revert;color:revert;cursor:revert;font-family:system-ui;font-size:revert;font-weight:revert;line-height:revert;margin:revert;max-width:revert;min-height:revert;outline:revert;padding:revert;text-shadow:revert;transform:revert;vertical-align:revert}:where(.editor-styles-wrapper) select:disabled,:where(.editor-styles-wrapper) select:focus{background-color:revert;background-image:revert;border-color:revert;box-shadow:revert;color:revert;cursor:revert;text-shadow:revert;transform:revert} \ No newline at end of file
diff --git a/wp-includes/css/dist/block-library/reset.css b/wp-includes/css/dist/block-library/reset.css
index ca4eb16..aaf9b82 100644
--- a/wp-includes/css/dist/block-library/reset.css
+++ b/wp-includes/css/dist/block-library/reset.css
@@ -1,4 +1,4 @@
-:where(.editor-styles-wrapper){
+html :where(.editor-styles-wrapper){
background:#fff;
color:initial;
font-family:serif;
diff --git a/wp-includes/css/dist/block-library/reset.min.css b/wp-includes/css/dist/block-library/reset.min.css
index a5db506..5494c52 100644
--- a/wp-includes/css/dist/block-library/reset.min.css
+++ b/wp-includes/css/dist/block-library/reset.min.css
@@ -1 +1 @@
-:where(.editor-styles-wrapper){background:#fff;color:initial;font-family:serif;font-size:medium;line-height:normal}:where(.editor-styles-wrapper) .wp-align-wrapper{max-width:840px}:where(.editor-styles-wrapper) .wp-align-wrapper.wp-align-full,:where(.editor-styles-wrapper) .wp-align-wrapper>.wp-block{max-width:none}:where(.editor-styles-wrapper) .wp-align-wrapper.wp-align-wide{max-width:840px}:where(.editor-styles-wrapper) a{transition:none}:where(.editor-styles-wrapper) code,:where(.editor-styles-wrapper) kbd{background:inherit;font-family:monospace;font-size:inherit;margin:0;padding:0}:where(.editor-styles-wrapper) p{font-size:revert;line-height:revert;margin:revert}:where(.editor-styles-wrapper) ol,:where(.editor-styles-wrapper) ul{box-sizing:border-box;list-style-type:revert;margin:revert;padding:revert}:where(.editor-styles-wrapper) ol ol,:where(.editor-styles-wrapper) ol ul,:where(.editor-styles-wrapper) ul ol,:where(.editor-styles-wrapper) ul ul{margin:revert}:where(.editor-styles-wrapper) ol li,:where(.editor-styles-wrapper) ul li{margin:revert}:where(.editor-styles-wrapper) ol ul,:where(.editor-styles-wrapper) ul ul{list-style-type:revert}:where(.editor-styles-wrapper) h1,:where(.editor-styles-wrapper) h2,:where(.editor-styles-wrapper) h3,:where(.editor-styles-wrapper) h4,:where(.editor-styles-wrapper) h5,:where(.editor-styles-wrapper) h6{color:revert;font-size:revert;font-weight:revert;line-height:revert;margin:revert}:where(.editor-styles-wrapper) select{-webkit-appearance:revert;background:revert;border:revert;border-radius:revert;box-shadow:revert;color:revert;cursor:revert;font-family:system-ui;font-size:revert;font-weight:revert;line-height:revert;margin:revert;max-width:revert;min-height:revert;outline:revert;padding:revert;text-shadow:revert;transform:revert;vertical-align:revert}:where(.editor-styles-wrapper) select:disabled,:where(.editor-styles-wrapper) select:focus{background-color:revert;background-image:revert;border-color:revert;box-shadow:revert;color:revert;cursor:revert;text-shadow:revert;transform:revert} \ No newline at end of file
+html :where(.editor-styles-wrapper){background:#fff;color:initial;font-family:serif;font-size:medium;line-height:normal}:where(.editor-styles-wrapper) .wp-align-wrapper{max-width:840px}:where(.editor-styles-wrapper) .wp-align-wrapper.wp-align-full,:where(.editor-styles-wrapper) .wp-align-wrapper>.wp-block{max-width:none}:where(.editor-styles-wrapper) .wp-align-wrapper.wp-align-wide{max-width:840px}:where(.editor-styles-wrapper) a{transition:none}:where(.editor-styles-wrapper) code,:where(.editor-styles-wrapper) kbd{background:inherit;font-family:monospace;font-size:inherit;margin:0;padding:0}:where(.editor-styles-wrapper) p{font-size:revert;line-height:revert;margin:revert}:where(.editor-styles-wrapper) ol,:where(.editor-styles-wrapper) ul{box-sizing:border-box;list-style-type:revert;margin:revert;padding:revert}:where(.editor-styles-wrapper) ol ol,:where(.editor-styles-wrapper) ol ul,:where(.editor-styles-wrapper) ul ol,:where(.editor-styles-wrapper) ul ul{margin:revert}:where(.editor-styles-wrapper) ol li,:where(.editor-styles-wrapper) ul li{margin:revert}:where(.editor-styles-wrapper) ol ul,:where(.editor-styles-wrapper) ul ul{list-style-type:revert}:where(.editor-styles-wrapper) h1,:where(.editor-styles-wrapper) h2,:where(.editor-styles-wrapper) h3,:where(.editor-styles-wrapper) h4,:where(.editor-styles-wrapper) h5,:where(.editor-styles-wrapper) h6{color:revert;font-size:revert;font-weight:revert;line-height:revert;margin:revert}:where(.editor-styles-wrapper) select{-webkit-appearance:revert;background:revert;border:revert;border-radius:revert;box-shadow:revert;color:revert;cursor:revert;font-family:system-ui;font-size:revert;font-weight:revert;line-height:revert;margin:revert;max-width:revert;min-height:revert;outline:revert;padding:revert;text-shadow:revert;transform:revert;vertical-align:revert}:where(.editor-styles-wrapper) select:disabled,:where(.editor-styles-wrapper) select:focus{background-color:revert;background-image:revert;border-color:revert;box-shadow:revert;color:revert;cursor:revert;text-shadow:revert;transform:revert} \ 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 dc10880..a024b4e 100644
--- a/wp-includes/css/dist/block-library/style-rtl.css
+++ b/wp-includes/css/dist/block-library/style-rtl.css
@@ -21,7 +21,7 @@
.wp-block-audio{
box-sizing:border-box;
}
-.wp-block-audio figcaption{
+.wp-block-audio :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
@@ -96,50 +96,17 @@
border-radius:0 !important;
}
-.wp-block-button .wp-block-button__link:where(.is-style-outline),.wp-block-button:where(.is-style-outline)>.wp-block-button__link{
+:root :where(.wp-block-button .wp-block-button__link.is-style-outline),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link){
border:2px solid;
padding:.667em 1.333em;
}
-
-.wp-block-button .wp-block-button__link:where(.is-style-outline):not(.has-text-color),.wp-block-button:where(.is-style-outline)>.wp-block-button__link:not(.has-text-color){
+:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color)){
color:currentColor;
}
-
-.wp-block-button .wp-block-button__link:where(.is-style-outline):not(.has-background),.wp-block-button:where(.is-style-outline)>.wp-block-button__link:not(.has-background){
+:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background)){
background-color:initial;
background-image:none;
}
-
-.wp-block-button .wp-block-button__link:where(.has-border-color){
- border-width:initial;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-top-color]){
- border-top-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-right-color]){
- border-left-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){
- border-bottom-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-left-color]){
- border-right-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-style]){
- border-width:initial;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-top-style]){
- border-top-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-right-style]){
- border-left-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){
- border-bottom-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-left-style]){
- border-right-width:medium;
-}
.wp-block-buttons.is-vertical{
flex-direction:column;
}
@@ -573,17 +540,6 @@
max-width:420px;
width:100%;
}
-.wp-block-cover-image:after,.wp-block-cover:after{
- content:"";
- display:block;
- font-size:0;
- min-height:inherit;
-}
-@supports (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;
}
@@ -592,9 +548,6 @@
width:100%;
z-index:1;
}
-.wp-block-cover h1:where(:not(.has-text-color)),.wp-block-cover h2:where(:not(.has-text-color)),.wp-block-cover h3:where(:not(.has-text-color)),.wp-block-cover h4:where(:not(.has-text-color)),.wp-block-cover h5:where(:not(.has-text-color)),.wp-block-cover h6:where(:not(.has-text-color)),.wp-block-cover p:where(:not(.has-text-color)),.wp-block-cover-image h1:where(:not(.has-text-color)),.wp-block-cover-image h2:where(:not(.has-text-color)),.wp-block-cover-image h3:where(:not(.has-text-color)),.wp-block-cover-image h4:where(:not(.has-text-color)),.wp-block-cover-image h5:where(:not(.has-text-color)),.wp-block-cover-image h6:where(:not(.has-text-color)),.wp-block-cover-image p:where(: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;
@@ -718,9 +671,12 @@
color:#000;
}
+:root :where(.wp-block-cover h1:not(.has-text-color)),:root :where(.wp-block-cover h2:not(.has-text-color)),:root :where(.wp-block-cover h3:not(.has-text-color)),:root :where(.wp-block-cover h4:not(.has-text-color)),:root :where(.wp-block-cover h5:not(.has-text-color)),:root :where(.wp-block-cover h6:not(.has-text-color)),:root :where(.wp-block-cover p:not(.has-text-color)){
+ color:inherit;
+}
+
.wp-block-details{
box-sizing:border-box;
- overflow:hidden;
}
.wp-block-details summary{
@@ -743,7 +699,7 @@
.wp-block-embed{
overflow-wrap:break-word;
}
-.wp-block-embed figcaption{
+.wp-block-embed :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
@@ -1132,6 +1088,10 @@ figure.wp-block-gallery.has-nested-images{
box-sizing:border-box;
}
+:where(.wp-block-group.wp-block-group-is-layout-constrained){
+ position:relative;
+}
+
h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{
padding:1.25em 2.375em;
}
@@ -1177,11 +1137,11 @@ h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h1.has-t
margin-left:auto;
margin-right:auto;
}
-.wp-block-image figcaption{
+.wp-block-image :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
-.wp-block-image .is-style-rounded img,.wp-block-image.is-style-circle-mask img,.wp-block-image.is-style-rounded img{
+.wp-block-image.is-style-circle-mask img{
border-radius:9999px;
}
@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){
@@ -1198,35 +1158,9 @@ h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h1.has-t
mask-size:contain;
}
}
-.wp-block-image :where(.has-border-color){
- border-style:solid;
-}
-.wp-block-image :where([style*=border-top-color]){
- border-top-style:solid;
-}
-.wp-block-image :where([style*=border-right-color]){
- border-left-style:solid;
-}
-.wp-block-image :where([style*=border-bottom-color]){
- border-bottom-style:solid;
-}
-.wp-block-image :where([style*=border-left-color]){
- border-right-style:solid;
-}
-.wp-block-image :where([style*=border-width]){
- border-style:solid;
-}
-.wp-block-image :where([style*=border-top-width]){
- border-top-style:solid;
-}
-.wp-block-image :where([style*=border-right-width]){
- border-left-style:solid;
-}
-.wp-block-image :where([style*=border-bottom-width]){
- border-bottom-style:solid;
-}
-.wp-block-image :where([style*=border-left-width]){
- border-right-style:solid;
+
+:root :where(.wp-block-image.is-style-rounded img,.wp-block-image .is-style-rounded img){
+ border-radius:9999px;
}
.wp-block-image figure{
@@ -1507,15 +1441,14 @@ ol.wp-block-latest-comments{
}
.wp-block-latest-posts.wp-block-latest-posts__list{
list-style:none;
- padding-right:0;
}
.wp-block-latest-posts.wp-block-latest-posts__list li{
clear:both;
+ overflow-wrap:break-word;
}
.wp-block-latest-posts.is-grid{
display:flex;
flex-wrap:wrap;
- padding:0;
}
.wp-block-latest-posts.is-grid li{
margin:0 0 1.25em 1.25em;
@@ -1554,6 +1487,13 @@ ol.wp-block-latest-comments{
}
}
+:root :where(.wp-block-latest-posts.is-grid){
+ padding:0;
+}
+:root :where(.wp-block-latest-posts.wp-block-latest-posts__list){
+ padding-right:0;
+}
+
.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{
display:block;
font-size:.8125em;
@@ -1588,7 +1528,8 @@ ol.wp-block-latest-comments{
ol,ul{
box-sizing:border-box;
}
-ol.has-background,ul.has-background{
+
+:root :where(ul.has-background,ol.has-background){
padding:1.25em 2.375em;
}
@@ -1603,25 +1544,25 @@ ol.has-background,ul.has-background{
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{
+.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{
align-self:start;
}
-.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media,.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.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{
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{
+.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{
align-self:end;
}
-.wp-block-media-text .wp-block-media-text__media{
+.wp-block-media-text>.wp-block-media-text__media{
grid-column:1;
grid-row:1;
margin:0;
}
-.wp-block-media-text .wp-block-media-text__content{
+.wp-block-media-text>.wp-block-media-text__content{
direction:rtl;
grid-column:2;
grid-row:1;
@@ -1629,12 +1570,12 @@ ol.has-background,ul.has-background{
word-break:break-word;
}
-.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media{
+.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{
grid-column:2;
grid-row:1;
}
-.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{
+.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{
grid-column:1;
grid-row:1;
}
@@ -1646,18 +1587,18 @@ ol.has-background,ul.has-background{
width:100%;
}
-.wp-block-media-text.is-image-fill .wp-block-media-text__media{
+.wp-block-media-text.is-image-fill>.wp-block-media-text__media{
background-size:cover;
height:100%;
min-height:250px;
}
-.wp-block-media-text.is-image-fill .wp-block-media-text__media>a{
+.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{
display:block;
height:100%;
}
-.wp-block-media-text.is-image-fill .wp-block-media-text__media img{
+.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{
height:1px;
margin:-1px;
overflow:hidden;
@@ -1671,11 +1612,11 @@ ol.has-background,ul.has-background{
.wp-block-media-text.is-stacked-on-mobile{
grid-template-columns:100% !important;
}
- .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{
+ .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{
grid-column:1;
grid-row:1;
}
- .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{
+ .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{
grid-column:1;
grid-row:2;
}
@@ -1718,10 +1659,7 @@ ol.has-background,ul.has-background{
.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{
text-decoration:line-through;
}
-.wp-block-navigation:where(:not([class*=has-text-decoration])) a{
- text-decoration:none;
-}
-.wp-block-navigation:where(:not([class*=has-text-decoration])) a:active,.wp-block-navigation:where(:not([class*=has-text-decoration])) a:focus{
+.wp-block-navigation :where(a),.wp-block-navigation :where(a:active),.wp-block-navigation :where(a:focus){
text-decoration:none;
}
.wp-block-navigation .wp-block-navigation__submenu-icon{
@@ -1856,6 +1794,7 @@ button.wp-block-navigation-item__content{
font-size:inherit;
font-style:inherit;
font-weight:inherit;
+ letter-spacing:inherit;
line-height:inherit;
text-align:right;
text-transform:inherit;
@@ -2155,14 +2094,6 @@ html.has-modal-open{
text-transform:uppercase;
}
-.components-popover-pointer-events-trap{
- background-color:initial;
- cursor:pointer;
- inset:0;
- position:fixed;
- z-index:1000000;
-}
-
.wp-block-navigation .wp-block-page-list{
align-items:var(--navigation-layout-align, initial);
background-color:inherit;
@@ -2210,7 +2141,7 @@ p.has-drop-cap.has-background{
overflow:hidden;
}
-p.has-background{
+:root :where(p.has-background){
padding:1.25em 2.375em;
}
@@ -2247,6 +2178,15 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[
margin:0;
}
+:where(.wp-block-post-comments-form) input:not([type=submit]),:where(.wp-block-post-comments-form) textarea{
+ border:1px solid #949494;
+ font-family:inherit;
+ font-size:1em;
+}
+:where(.wp-block-post-comments-form) input:where(:not([type=submit]):not([type=checkbox])),:where(.wp-block-post-comments-form) textarea{
+ padding:calc(.667em + 2px);
+}
+
.wp-block-post-comments-form{
box-sizing:border-box;
}
@@ -2275,14 +2215,6 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[
overflow-wrap:break-word;
text-align:center;
}
-.wp-block-post-comments-form input:not([type=submit]),.wp-block-post-comments-form textarea{
- border:1px solid #949494;
- font-family:inherit;
- font-size:1em;
-}
-.wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments-form textarea{
- padding:calc(.667em + 2px);
-}
.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{
box-sizing:border-box;
display:block;
@@ -2444,6 +2376,7 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[
.wp-block-pullquote{
box-sizing:border-box;
+ margin:0 0 1em;
overflow-wrap:break-word;
padding:4em 0;
text-align:center;
@@ -2470,10 +2403,6 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[
color:inherit;
}
-:where(.wp-block-pullquote){
- margin:0 0 1em;
-}
-
.wp-block-pullquote.has-text-align-left blockquote{
text-align:right;
}
@@ -2511,9 +2440,6 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[
max-width:100%;
padding:0;
}
-.wp-block-post-template.wp-block-post-template{
- background:none;
-}
.wp-block-post-template.is-flex-container{
display:flex;
flex-direction:row;
@@ -2710,8 +2636,7 @@ ul.wp-block-rss.is-grid li{
}
.wp-block-search__input{
- -webkit-appearance:initial;
- appearance:none;
+ appearance:none;
border:1px solid #949494;
flex-grow:1;
margin-left:0;
@@ -2752,6 +2677,16 @@ ul.wp-block-rss.is-grid li{
width:0 !important;
}
+:where(.wp-block-search__input){
+ font-family:inherit;
+ font-size:inherit;
+ font-style:inherit;
+ font-weight:inherit;
+ letter-spacing:inherit;
+ line-height:inherit;
+ text-transform:inherit;
+}
+
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){
border:1px solid #949494;
box-sizing:border-box;
@@ -2781,14 +2716,13 @@ ul.wp-block-rss.is-grid li{
border:none;
border-top:2px solid;
}
-.wp-block-separator.is-style-dots{
- background:none !important;
- border:none;
+
+:root :where(.wp-block-separator.is-style-dots){
height:auto;
line-height:1;
text-align:center;
}
-.wp-block-separator.is-style-dots:before{
+:root :where(.wp-block-separator.is-style-dots):before{
color:currentColor;
content:"···";
font-family:serif;
@@ -2797,6 +2731,11 @@ ul.wp-block-rss.is-grid li{
padding-left:2em;
}
+.wp-block-separator.is-style-dots{
+ background:none !important;
+ border:none !important;
+}
+
.wp-block-site-logo{
box-sizing:border-box;
line-height:0;
@@ -2821,11 +2760,12 @@ ul.wp-block-rss.is-grid li{
margin-right:auto;
text-align:center;
}
-.wp-block-site-logo.is-style-rounded{
+
+:root :where(.wp-block-site-logo.is-style-rounded){
border-radius:9999px;
}
-.wp-block-site-title a{
+:root :where(.wp-block-site-title a){
color:inherit;
}
@@ -2842,9 +2782,6 @@ ul.wp-block-rss.is-grid li{
box-shadow:none;
text-decoration:none;
}
-.wp-block-social-links .wp-social-link a{
- padding:.25em;
-}
.wp-block-social-links .wp-social-link svg{
height:1em;
width:1em;
@@ -2906,322 +2843,342 @@ ul.wp-block-rss.is-grid li{
fill:currentColor;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bluesky{
+ background-color:#0a7aff;
+ color:#fff;
+}
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-gravatar{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-gravatar{
background-color:#1d4fc4;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-instagram{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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;
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-medium{
+ background-color:#000;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-meetup{
+:where(.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-patreon{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-patreon{
background-color:#000;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pinterest{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-reddit{
background-color:#ff4500;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-skype{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-telegram{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-telegram{
background-color:#2aabee;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-threads,.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tiktok{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-threads{
+ background-color:#000;
+ color:#fff;
+}
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tiktok{
background-color:#000;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tumblr{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-whatsapp{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-whatsapp{
background-color:#25d366;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-x{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-x{
background-color:#000;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link{
background:none;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link a{
- padding:0;
-}
-.wp-block-social-links.is-style-logos-only .wp-social-link svg{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link svg{
height:1.25em;
width:1.25em;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-amazon{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bluesky{
+ color:#0a7aff;
+}
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-gravatar{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-gravatar{
color:#1d4fc4;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-instagram{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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;
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-medium{
+ color:#000;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-meetup{
+:where(.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-patreon{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-patreon{
color:#000;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-pinterest{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-reddit{
color:#ff4500;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-skype{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-telegram{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-telegram{
color:#2aabee;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-threads,.wp-block-social-links.is-style-logos-only .wp-social-link-tiktok{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-threads{
color:#000;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-tumblr{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tiktok{
+ color:#000;
+}
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-whatsapp{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-whatsapp{
color:#25d366;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-wordpress{
+:where(.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-x{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-x{
color:#000;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-yelp{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-yelp{
color:#d32422;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-youtube{
+:where(.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{
+
+:root :where(.wp-block-social-links .wp-social-link a){
+ padding:.25em;
+}
+
+:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link a){
+ padding:0;
+}
+
+:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link a){
padding-left:.66667em;
padding-right:.66667em;
}
@@ -3254,12 +3211,14 @@ ul.wp-block-rss.is-grid li{
margin-right:5px;
text-decoration:none;
}
-.wp-block-tag-cloud.is-style-outline{
+
+:root :where(.wp-block-tag-cloud.is-style-outline){
display:flex;
flex-wrap:wrap;
gap:1ch;
}
-.wp-block-tag-cloud.is-style-outline a{
+
+:root :where(.wp-block-tag-cloud.is-style-outline a){
border:1px solid;
font-size:unset !important;
margin-left:0;
@@ -3419,7 +3378,7 @@ pre.wp-block-verse{
.wp-block-video.aligncenter{
text-align:center;
}
-.wp-block-video figcaption{
+.wp-block-video :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
@@ -3539,7 +3498,6 @@ a[data-fn].fn:after{
.screen-reader-text{
border:0;
clip:rect(1px, 1px, 1px, 1px);
- -webkit-clip-path:inset(50%);
clip-path:inset(50%);
height:1px;
margin:-1px;
@@ -3553,8 +3511,7 @@ a[data-fn].fn:after{
.screen-reader-text:focus{
background-color:#ddd;
clip:auto !important;
- -webkit-clip-path:none;
- clip-path:none;
+ clip-path:none;
color:#444;
display:block;
font-size:1em;
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 a156732..ffbdd73 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 @@
-@charset "UTF-8";.wp-block-archives{box-sizing:border-box}.wp-block-archives-dropdown label{display:block}.wp-block-avatar{line-height:0}.wp-block-avatar,.wp-block-avatar img{box-sizing:border-box}.wp-block-avatar.aligncenter{text-align:center}.wp-block-audio{box-sizing:border-box}.wp-block-audio figcaption{margin-bottom:1em;margin-top:.5em}.wp-block-audio audio{min-width:300px;width:100%}.wp-block-button__link{box-sizing:border-box;cursor:pointer;display:inline-block;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.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 .wp-block-button__link:where(.is-style-outline),.wp-block-button:where(.is-style-outline)>.wp-block-button__link{border:2px solid;padding:.667em 1.333em}.wp-block-button .wp-block-button__link:where(.is-style-outline):not(.has-text-color),.wp-block-button:where(.is-style-outline)>.wp-block-button__link:not(.has-text-color){color:currentColor}.wp-block-button .wp-block-button__link:where(.is-style-outline):not(.has-background),.wp-block-button:where(.is-style-outline)>.wp-block-button__link:not(.has-background){background-color:initial;background-image:none}.wp-block-button .wp-block-button__link:where(.has-border-color){border-width:initial}.wp-block-button .wp-block-button__link:where([style*=border-top-color]){border-top-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-right-color]){border-left-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){border-bottom-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-left-color]){border-right-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-style]){border-width:initial}.wp-block-button .wp-block-button__link:where([style*=border-top-style]){border-top-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-right-style]){border-left-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){border-bottom-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-left-style]){border-right-width:medium}.wp-block-buttons.is-vertical{flex-direction:column}.wp-block-buttons.is-vertical>.wp-block-button:last-child{margin-bottom:0}.wp-block-buttons>.wp-block-button{display:inline-block;margin:0}.wp-block-buttons.is-content-justification-left{justify-content:flex-start}.wp-block-buttons.is-content-justification-left.is-vertical{align-items:flex-start}.wp-block-buttons.is-content-justification-center{justify-content:center}.wp-block-buttons.is-content-justification-center.is-vertical{align-items:center}.wp-block-buttons.is-content-justification-right{justify-content:flex-end}.wp-block-buttons.is-content-justification-right.is-vertical{align-items:flex-end}.wp-block-buttons.is-content-justification-space-between{justify-content:space-between}.wp-block-buttons.aligncenter{text-align:center}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block-button.aligncenter{margin-left:auto;margin-right:auto;width:100%}.wp-block-buttons[style*=text-decoration] .wp-block-button,.wp-block-buttons[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-button.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar td,.wp-block-calendar th{border:1px solid;padding:.25em}.wp-block-calendar th{font-weight:400}.wp-block-calendar caption{background-color:inherit}.wp-block-calendar table{border-collapse:collapse;width:100%}.wp-block-calendar table:where(:not(.has-text-color)){color:#40464d}.wp-block-calendar table:where(:not(.has-text-color)) td,.wp-block-calendar table:where(:not(.has-text-color)) th{border-color:#ddd}.wp-block-calendar table.has-background th{background-color:inherit}.wp-block-calendar table.has-text-color th{color:inherit}:where(.wp-block-calendar table:not(.has-background) th){background:#ddd}.wp-block-categories{box-sizing:border-box}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-categories.wp-block-categories-dropdown.aligncenter{text-align:center}.wp-block-code{box-sizing:border-box}.wp-block-code code{display:block;font-family:inherit;overflow-wrap:break-word;white-space:pre-wrap}.wp-block-columns{align-items:normal!important;box-sizing:border-box;display:flex;flex-wrap:wrap!important}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap!important}}.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}@media (max-width:781px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%!important}}@media (min-width:782px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column[style*=flex-basis]{flex-grow:0}}.wp-block-columns.is-not-stacked-on-mobile{flex-wrap:nowrap!important}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column[style*=flex-basis]{flex-grow:0}:where(.wp-block-columns){margin-bottom:1.75em}:where(.wp-block-columns.has-background){padding:1.25em 2.375em}.wp-block-column{flex-grow:1;min-width:0;overflow-wrap:break-word;word-break:break-word}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-stretch{align-self:stretch}.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-post-comments{box-sizing:border-box}.wp-block-post-comments .alignleft{float:right}.wp-block-post-comments .alignright{float:left}.wp-block-post-comments .navigation:after{clear:both;content:"";display:table}.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-right:3.25em}.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;margin-top:.5em;width:2.5em}.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-post-comments .comment-meta .comment-awaiting-moderation{display:block;margin-bottom:1em;margin-top:1em}.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-right:.5em}.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}:where(.wp-block-post-comments input[type=submit]){border:none}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers,.wp-block-comments-pagination>.wp-block-comments-pagination-previous{margin-bottom:.5em;margin-right:.5em}.wp-block-comments-pagination>.wp-block-comments-pagination-next:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-previous:last-child{margin-right:0}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow{display:inline-block;margin-left:1ch}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow{display:inline-block;margin-right:1ch}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-comments-pagination.aligncenter{justify-content:center}.wp-block-comment-template{box-sizing:border-box;list-style:none;margin-bottom:0;max-width:100%;padding:0}.wp-block-comment-template li{clear:both}.wp-block-comment-template ol{list-style:none;margin-bottom:0;max-width:100%;padding-right:2rem}.wp-block-comment-template.alignleft{float:right}.wp-block-comment-template.aligncenter{margin-left:auto;margin-right:auto;width:-moz-fit-content;width:fit-content}.wp-block-comment-template.alignright{float:left}.wp-block-cover,.wp-block-cover-image{align-items:center;background-position:50%;box-sizing:border-box;direction:ltr;display:flex;justify-content:center;min-height:430px;overflow:hidden;overflow:clip;padding:1em;position:relative}.wp-block-cover .has-background-dim:not([class*=-background-color]),.wp-block-cover-image .has-background-dim:not([class*=-background-color]),.wp-block-cover-image.has-background-dim:not([class*=-background-color]),.wp-block-cover.has-background-dim:not([class*=-background-color]){background-color:#000}.wp-block-cover .has-background-dim.has-background-gradient,.wp-block-cover-image .has-background-dim.has-background-gradient{background-color:initial}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{background-color:inherit;content:""}.wp-block-cover .wp-block-cover__background,.wp-block-cover .wp-block-cover__gradient-background,.wp-block-cover-image .wp-block-cover__background,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover.has-background-dim:not(.has-background-gradient):before{bottom:0;left:0;opacity:.5;position:absolute;right:0;top:0;z-index:1}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.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-20 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.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-30 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.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-40 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.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-50 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.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-60 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.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-70 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.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-80 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.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-90 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.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-100 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0{opacity:0}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10{opacity:.1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20{opacity:.2}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30{opacity:.3}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40{opacity:.4}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50{opacity:.5}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60{opacity:.6}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70{opacity:.7}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80{opacity:.8}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90{opacity:.9}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:420px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{content:"";display:block;font-size:0;min-height:inherit}@supports (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 .wp-block-cover__inner-container,.wp-block-cover-image .wp-block-cover__inner-container{color:inherit;direction:rtl;width:100%;z-index:1}.wp-block-cover h1:where(:not(.has-text-color)),.wp-block-cover h2:where(:not(.has-text-color)),.wp-block-cover h3:where(:not(.has-text-color)),.wp-block-cover h4:where(:not(.has-text-color)),.wp-block-cover h5:where(:not(.has-text-color)),.wp-block-cover h6:where(:not(.has-text-color)),.wp-block-cover p:where(:not(.has-text-color)),.wp-block-cover-image h1:where(:not(.has-text-color)),.wp-block-cover-image h2:where(:not(.has-text-color)),.wp-block-cover-image h3:where(:not(.has-text-color)),.wp-block-cover-image h4:where(:not(.has-text-color)),.wp-block-cover-image h5:where(:not(.has-text-color)),.wp-block-cover-image h6:where(:not(.has-text-color)),.wp-block-cover-image p:where(: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}.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover .wp-block-cover__image-background,.wp-block-cover video.wp-block-cover__video-background,.wp-block-cover-image .wp-block-cover__image-background,.wp-block-cover-image video.wp-block-cover__video-background{border:none;bottom:0;box-shadow:none;height:100%;left:0;margin:0;max-height:none;max-width:none;object-fit:cover;outline:none;padding:0;position:absolute;right:0;top:0;width:100%}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:fixed;background-repeat:no-repeat;background-size:cover}@supports (-webkit-touch-callout:inherit){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated,.wp-block-cover__image-background.is-repeated,video.wp-block-cover__video-background.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover__image-background,.wp-block-cover__video-background{z-index:0}.wp-block-cover-image-text,.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,.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,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 .wp-block-cover-text,.wp-block-cover-image .wp-block-cover-image-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;margin-bottom:0;max-width:840px;padding:.44em;text-align:center;z-index:1}:where(.wp-block-cover-image:not(.has-text-color)),:where(.wp-block-cover:not(.has-text-color)){color:#fff}:where(.wp-block-cover-image.is-light:not(.has-text-color)),:where(.wp-block-cover.is-light:not(.has-text-color)){color:#000}.wp-block-details{box-sizing:border-box;overflow:hidden}.wp-block-details summary{cursor:pointer}.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-cover .wp-block-embed{min-height:240px;min-width:320px}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed figcaption{margin-bottom:1em;margin-top:.5em}.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{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;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-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{box-sizing:border-box}.wp-block-file:not(.wp-element-button){font-size:.8em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file *+.wp-block-file__button{margin-right:.75em}:where(.wp-block-file){margin-bottom:1.5em}.wp-block-file__embed{margin-bottom:1em}:where(.wp-block-file__button){border-radius:2em;display:inline-block;padding:.5em 1em}:where(.wp-block-file__button):is(a):active,:where(.wp-block-file__button):is(a):focus,:where(.wp-block-file__button):is(a):hover,:where(.wp-block-file__button):is(a):visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-form-input__label{display:flex;flex-direction:column;gap:.25em;margin-bottom:.5em;width:100%}.wp-block-form-input__label.is-label-inline{align-items:center;flex-direction:row;gap:.5em}.wp-block-form-input__label.is-label-inline .wp-block-form-input__label-content{margin-bottom:.5em}.wp-block-form-input__label:has(input[type=checkbox]){flex-direction:row-reverse;width:-moz-fit-content;width:fit-content}.wp-block-form-input__label-content{width:-moz-fit-content;width:fit-content}.wp-block-form-input__input{font-size:1em;margin-bottom:.5em;padding:0 .5em}.wp-block-form-input__input[type=date],.wp-block-form-input__input[type=datetime-local],.wp-block-form-input__input[type=datetime],.wp-block-form-input__input[type=email],.wp-block-form-input__input[type=month],.wp-block-form-input__input[type=number],.wp-block-form-input__input[type=password],.wp-block-form-input__input[type=search],.wp-block-form-input__input[type=tel],.wp-block-form-input__input[type=text],.wp-block-form-input__input[type=time],.wp-block-form-input__input[type=url],.wp-block-form-input__input[type=week]{border:1px solid;line-height:2;min-height:2em}textarea.wp-block-form-input__input{min-height:10em}.blocks-gallery-grid:not(.has-nested-images),.wp-block-gallery:not(.has-nested-images){display:flex;flex-wrap:wrap;list-style-type:none;margin:0;padding:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item{display:flex;flex-direction:column;flex-grow:1;justify-content:center;margin:0 0 1em 1em;position:relative;width:calc(50% - 1em)}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n){margin-left:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figure,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figure{align-items:flex-end;display:flex;height:100%;justify-content:flex-start;margin:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item img{display:block;height:auto;max-width:100%;width:auto}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption{background:linear-gradient(0deg,#000000b3,#0000004d 70%,#0000);bottom:0;box-sizing:border-box;color:#fff;font-size:.8em;margin:0;max-height:100%;overflow:auto;padding:3em .77em .7em;position:absolute;text-align:center;width:100%;z-index:2}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid:not(.has-nested-images) figcaption,.wp-block-gallery:not(.has-nested-images) figcaption{flex-grow:1}.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item img{flex:1;height:100%;object-fit:cover;width:100%}.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item{margin-left:0;width:100%}@media (min-width:600px){.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item{margin-left:1em;width:calc(33.33333% - .66667em)}.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item{margin-left:1em;width:calc(25% - .75em)}.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item{margin-left:1em;width:calc(20% - .8em)}.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item{margin-left:1em;width:calc(16.66667% - .83333em)}.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item{margin-left:1em;width:calc(14.28571% - .85714em)}.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item{margin-left:1em;width:calc(12.5% - .875em)}.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n){margin-left:0}}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:last-child,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:last-child{margin-left:0}.blocks-gallery-grid:not(.has-nested-images).alignleft,.blocks-gallery-grid:not(.has-nested-images).alignright,.wp-block-gallery:not(.has-nested-images).alignleft,.wp-block-gallery:not(.has-nested-images).alignright{max-width:420px;width:100%}.blocks-gallery-grid:not(.has-nested-images).aligncenter .blocks-gallery-item figure,.wp-block-gallery:not(.has-nested-images).aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-gallery:not(.is-cropped) .blocks-gallery-item{align-self:flex-start}figure.wp-block-gallery.has-nested-images{align-items:normal}.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image){margin:0;width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)/2)}.wp-block-gallery.has-nested-images figure.wp-block-image{box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;max-width:100%;position:relative}.wp-block-gallery.has-nested-images figure.wp-block-image>a,.wp-block-gallery.has-nested-images figure.wp-block-image>div{flex-direction:column;flex-grow:1;margin:0}.wp-block-gallery.has-nested-images figure.wp-block-image img{display:block;height:auto;max-width:100%!important;width:auto}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{background:linear-gradient(0deg,#000000b3,#0000004d 70%,#0000);bottom:0;box-sizing:border-box;color:#fff;font-size:13px;margin-bottom:0;max-height:60%;overflow:auto;padding:0 8px 8px;position:absolute;right:0;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin;text-align:center;width:100%;will-change:transform}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar{height:12px;width:12px}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-track{background-color:initial}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover::-webkit-scrollbar-thumb{background-color:#fffc}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover{scrollbar-color:#fffc #0000}@media (hover:none){.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{scrollbar-color:#fffc #0000}}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption img{display:inline}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption a{color:inherit}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>a,.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>div,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>a,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>div{flex:1 1 auto}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border figcaption,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption{background:none;color:inherit;flex:initial;margin:0;padding:10px 10px 9px;position:relative}.wp-block-gallery.has-nested-images figcaption{flex-basis:100%;flex-grow:1;text-align:center}.wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image){margin-bottom:auto;margin-top:0}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image){align-self:inherit}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>div:not(.components-drop-zone){display:flex}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img{flex:1 0 0%;height:100%;object-fit:cover;width:100%}.wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image){width:100%}@media (min-width:600px){.wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image){width:calc(33.33333% - var(--wp--style--unstable-gallery-gap, 16px)*.66667)}.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image){width:calc(25% - var(--wp--style--unstable-gallery-gap, 16px)*.75)}.wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image){width:calc(20% - var(--wp--style--unstable-gallery-gap, 16px)*.8)}.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image){width:calc(16.66667% - var(--wp--style--unstable-gallery-gap, 16px)*.83333)}.wp-block-gallery.has-nested-images.columns-7 figure.wp-block-image:not(#individual-image){width:calc(14.28571% - var(--wp--style--unstable-gallery-gap, 16px)*.85714)}.wp-block-gallery.has-nested-images.columns-8 figure.wp-block-image:not(#individual-image){width:calc(12.5% - var(--wp--style--unstable-gallery-gap, 16px)*.875)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image){width:calc(33.33% - var(--wp--style--unstable-gallery-gap, 16px)*.66667)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2)~figure.wp-block-image:not(#individual-image){width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)*.5)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:last-child{width:100%}}.wp-block-gallery.has-nested-images.alignleft,.wp-block-gallery.has-nested-images.alignright{max-width:420px;width:100%}.wp-block-gallery.has-nested-images.aligncenter{justify-content:center}.wp-block-group{box-sizing:border-box}h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:1.25em 2.375em}h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h1.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h2.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h2.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h3.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h3.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h4.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h4.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h5.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h5.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h6.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]){rotate:180deg}.wp-block-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}.wp-block-image[style*=border-radius] img,.wp-block-image[style*=border-radius]>a{border-radius:inherit}.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{caption-side:bottom;display:table-caption}.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-bottom:1em;margin-top:.5em}.wp-block-image .is-style-rounded img,.wp-block-image.is-style-circle-mask img,.wp-block-image.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-image.is-style-circle-mask img{border-radius:0;-webkit-mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-mode:alpha;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}}.wp-block-image :where(.has-border-color){border-style:solid}.wp-block-image :where([style*=border-top-color]){border-top-style:solid}.wp-block-image :where([style*=border-right-color]){border-left-style:solid}.wp-block-image :where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-color]){border-right-style:solid}.wp-block-image :where([style*=border-width]){border-style:solid}.wp-block-image :where([style*=border-top-width]){border-top-style:solid}.wp-block-image :where([style*=border-right-width]){border-left-style:solid}.wp-block-image :where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-width]){border-right-style:solid}.wp-block-image figure{margin:0}.wp-lightbox-container{display:flex;flex-direction:column;position:relative}.wp-lightbox-container img{cursor:zoom-in}.wp-lightbox-container img:hover+button{opacity:1}.wp-lightbox-container button{align-items:center;-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background-color:#5a5a5a40;border:none;border-radius:4px;cursor:zoom-in;display:flex;height:20px;justify-content:center;left:16px;opacity:0;padding:0;position:absolute;text-align:center;top:16px;transition:opacity .2s ease;width:20px;z-index:100}.wp-lightbox-container button:focus-visible{outline:3px auto #5a5a5a40;outline:3px auto -webkit-focus-ring-color;outline-offset:3px}.wp-lightbox-container button:hover{cursor:pointer;opacity:1}.wp-lightbox-container button:focus{opacity:1}.wp-lightbox-container button:focus,.wp-lightbox-container button:hover,.wp-lightbox-container button:not(:hover):not(:active):not(.has-background){background-color:#5a5a5a40;border:none}.wp-lightbox-overlay{box-sizing:border-box;cursor:zoom-out;height:100vh;overflow:hidden;position:fixed;right:0;top:0;visibility:hidden;width:100%;z-index:100000}.wp-lightbox-overlay .close-button{align-items:center;cursor:pointer;display:flex;justify-content:center;left:calc(env(safe-area-inset-left) + 16px);min-height:40px;min-width:40px;padding:0;position:absolute;top:calc(env(safe-area-inset-top) + 16px);z-index:5000000}.wp-lightbox-overlay .close-button:focus,.wp-lightbox-overlay .close-button:hover,.wp-lightbox-overlay .close-button:not(:hover):not(:active):not(.has-background){background:none;border:none}.wp-lightbox-overlay .lightbox-image-container{height:var(--wp--lightbox-container-height);overflow:hidden;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);transform-origin:top right;width:var(--wp--lightbox-container-width);z-index:9999999999}.wp-lightbox-overlay .wp-block-image{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;margin:0;position:relative;transform-origin:100% 0;width:100%;z-index:3000000}.wp-lightbox-overlay .wp-block-image img{height:var(--wp--lightbox-image-height);min-height:var(--wp--lightbox-image-height);min-width:var(--wp--lightbox-image-width);width:var(--wp--lightbox-image-width)}.wp-lightbox-overlay .wp-block-image figcaption{display:none}.wp-lightbox-overlay button{background:none;border:none}.wp-lightbox-overlay .scrim{background-color:#fff;height:100%;opacity:.9;position:absolute;width:100%;z-index:2000000}.wp-lightbox-overlay.active{animation:turn-on-visibility .25s both;visibility:visible}.wp-lightbox-overlay.active img{animation:turn-on-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active){animation:turn-off-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active) img{animation:turn-off-visibility .25s both}@media (prefers-reduced-motion:no-preference){.wp-lightbox-overlay.zoom.active{animation:none;opacity:1;visibility:visible}.wp-lightbox-overlay.zoom.active .lightbox-image-container{animation:lightbox-zoom-in .4s}.wp-lightbox-overlay.zoom.active .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.active .scrim{animation:turn-on-visibility .4s forwards}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active){animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container{animation:lightbox-zoom-out .4s}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .scrim{animation:turn-off-visibility .4s forwards}}@keyframes turn-on-visibility{0%{opacity:0}to{opacity:1}}@keyframes turn-off-visibility{0%{opacity:1;visibility:visible}99%{opacity:0;visibility:visible}to{opacity:0;visibility:hidden}}@keyframes lightbox-zoom-in{0%{transform:translate(calc(((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position))*-1),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale))}to{transform:translate(50%,-50%) scale(1)}}@keyframes lightbox-zoom-out{0%{transform:translate(50%,-50%) scale(1);visibility:visible}99%{visibility:visible}to{transform:translate(calc(((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position))*-1),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale));visibility:hidden}}ol.wp-block-latest-comments{box-sizing:border-box;margin-right:0}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment)){line-height:1.1}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment-excerpt p)){line-height:1.8}.has-dates :where(.wp-block-latest-comments:not([style*=line-height])),.has-excerpts :where(.wp-block-latest-comments:not([style*=line-height])){line-height:1.5}.wp-block-latest-comments .wp-block-latest-comments{padding-right:0}.wp-block-latest-comments__comment{list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{list-style:none;min-height:2.25em}.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:3.25em}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;width:2.5em}.wp-block-latest-comments[class*=-font-size] a,.wp-block-latest-comments[style*=font-size] a{font-size:inherit}.wp-block-latest-posts{box-sizing:border-box}.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;padding-right:0}.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 1.25em 1.25em;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-left:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-left:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-left:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-left:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-left:0}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-bottom:1em;margin-top:.5em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;max-width:100%;width:auto}.wp-block-latest-posts__featured-image.alignleft{float:left;margin-right:1em}.wp-block-latest-posts__featured-image.alignright{float:right;margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}ol,ul{box-sizing:border-box}ol.has-background,ul.has-background{padding:1.25em 2.375em}.wp-block-media-text{box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:50% 1fr;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{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{align-self:start}.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media,.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{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{align-self:end}.wp-block-media-text .wp-block-media-text__media{grid-column:1;grid-row:1;margin:0}.wp-block-media-text .wp-block-media-text__content{direction:rtl;grid-column:2;grid-row:1;padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media{grid-column:2;grid-row:1}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{grid-column:1;grid-row:1}.wp-block-media-text__media img,.wp-block-media-text__media video{height:auto;max-width:unset;vertical-align:middle;width:100%}.wp-block-media-text.is-image-fill .wp-block-media-text__media{background-size:cover;height:100%;min-height:250px}.wp-block-media-text.is-image-fill .wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill .wp-block-media-text__media img{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{grid-column:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{grid-column:1;grid-row:2}}.wp-block-navigation{position:relative;--navigation-layout-justification-setting:flex-start;--navigation-layout-direction:row;--navigation-layout-wrap:wrap;--navigation-layout-justify:flex-start;--navigation-layout-align:center}.wp-block-navigation ul{margin-bottom:0;margin-right:0;margin-top:0;padding-right:0}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none;padding:0}.wp-block-navigation .wp-block-navigation-item{align-items:center;display:flex;position:relative}.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container:empty{display:none}.wp-block-navigation .wp-block-navigation-item__content{display:block}.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{color:inherit}.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:focus{text-decoration:underline}.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{text-decoration:line-through}.wp-block-navigation:where(:not([class*=has-text-decoration])) a{text-decoration:none}.wp-block-navigation:where(:not([class*=has-text-decoration])) a:active,.wp-block-navigation:where(:not([class*=has-text-decoration])) a:focus{text-decoration:none}.wp-block-navigation .wp-block-navigation__submenu-icon{align-self:center;background-color:inherit;border:none;color:currentColor;display:inline-block;font-size:inherit;height:.6em;line-height:0;margin-right:.25em;padding:0;width:.6em}.wp-block-navigation .wp-block-navigation__submenu-icon svg{display:inline-block;stroke:currentColor;height:inherit;margin-top:.075em;width:inherit}.wp-block-navigation.is-vertical{--navigation-layout-direction:column;--navigation-layout-justify:initial;--navigation-layout-align:flex-start}.wp-block-navigation.no-wrap{--navigation-layout-wrap:nowrap}.wp-block-navigation.items-justified-center{--navigation-layout-justification-setting:center;--navigation-layout-justify:center}.wp-block-navigation.items-justified-center.is-vertical{--navigation-layout-align:center}.wp-block-navigation.items-justified-right{--navigation-layout-justification-setting:flex-end;--navigation-layout-justify:flex-end}.wp-block-navigation.items-justified-right.is-vertical{--navigation-layout-align:flex-end}.wp-block-navigation.items-justified-space-between{--navigation-layout-justification-setting:space-between;--navigation-layout-justify:space-between}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{align-items:normal;background-color:inherit;color:inherit;display:flex;flex-direction:column;height:0;opacity:0;overflow:hidden;position:absolute;right:-1px;top:100%;transition:opacity .1s linear;visibility:hidden;width:0;z-index:2}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content{display:flex;flex-grow:1}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content .wp-block-navigation__submenu-icon{margin-left:0;margin-right:auto}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content{margin:0}@media (min-width:782px){.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{right:100%;top:-1px}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:#0000;content:"";display:block;height:100%;left:100%;position:absolute;width:.5em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon{margin-left:.25em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon svg{transform:rotate(90deg)}}.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;overflow:visible;visibility:visible;width:auto}.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container{right:0;top:100%}@media (min-width:782px){.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{right:100%;top:0}}.wp-block-navigation-submenu{display:flex;position:relative}.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg{stroke:currentColor}button.wp-block-navigation-item__content{background-color:initial;border:none;color:currentColor;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;text-align:right;text-transform:inherit}.wp-block-navigation-submenu__toggle{cursor:pointer}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle{padding-left:.85em;padding-right:0}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle+.wp-block-navigation__submenu-icon{margin-right:-.6em;pointer-events:none}.wp-block-navigation-item.open-on-click button.wp-block-navigation-item__content:not(.wp-block-navigation-submenu__toggle){padding:0}.wp-block-navigation .wp-block-page-list,.wp-block-navigation__container,.wp-block-navigation__responsive-close,.wp-block-navigation__responsive-container,.wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-dialog{gap:inherit}:where(.wp-block-navigation.has-background .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation.has-background .wp-block-navigation-submenu a:not(.wp-element-button)){padding:.5em 1em}:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu button.wp-block-navigation-item__content),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-pages-list__item button.wp-block-navigation-item__content){padding:.5em 1em}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container{left:0;right:auto}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:-1px;right:-1px}@media (min-width:782px){.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;right:auto}}.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container{background-color:#fff;border:1px solid #00000026}.wp-block-navigation.has-background .wp-block-navigation__submenu-container{background-color:inherit}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container{color:#000}.wp-block-navigation__container{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial);list-style:none;margin:0;padding-right:0}.wp-block-navigation__container .is-responsive{display:none}.wp-block-navigation__container:only-child,.wp-block-page-list:only-child{flex-grow:1}@keyframes overlay-menu__fade-in-animation{0%{opacity:0;transform:translateY(.5em)}to{opacity:1;transform:translateY(0)}}.wp-block-navigation__responsive-container{bottom:0;display:none;left:0;position:fixed;right:0;top:0}.wp-block-navigation__responsive-container :where(.wp-block-navigation-item a){color:inherit}.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open){background-color:inherit!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open{animation:overlay-menu__fade-in-animation .1s ease-out;animation-fill-mode:forwards;background-color:inherit;display:flex;flex-direction:column;overflow:auto;padding:clamp(1rem,var(--wp--style--root--padding-top),20rem) clamp(1rem,var(--wp--style--root--padding-left),20em) clamp(1rem,var(--wp--style--root--padding-bottom),20rem) clamp(1rem,var(--wp--style--root--padding-right),20rem);z-index:100000}@media (prefers-reduced-motion:reduce){.wp-block-navigation__responsive-container.is-menu-open{animation-delay:0s;animation-duration:1ms}}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-justification-setting,inherit);display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible;padding-top:calc(2rem + 24px)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list{justify-content:flex-start}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container{border:none;height:auto;min-width:200px;opacity:1;overflow:initial;padding-left:2rem;padding-right:2rem;position:static;visibility:visible;width:auto}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{gap:inherit}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{padding-top:var(--wp--style--block-gap,2em)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content{padding:0}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list{align-items:var(--navigation-layout-justification-setting,initial);display:flex;flex-direction:column}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list{background:#0000!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:auto;right:auto}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){background-color:inherit;display:block;position:relative;width:100%;z-index:auto}.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{right:0}}.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open{background-color:#fff}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open{color:#000}.wp-block-navigation__toggle_button_label{font-size:1rem;font-weight:700}.wp-block-navigation__responsive-container-close,.wp-block-navigation__responsive-container-open{background:#0000;border:none;color:currentColor;cursor:pointer;margin:0;padding:0;text-transform:inherit;vertical-align:middle}.wp-block-navigation__responsive-container-close svg,.wp-block-navigation__responsive-container-open svg{fill:currentColor;display:block;height:24px;pointer-events:none;width:24px}.wp-block-navigation__responsive-container-open{display:flex}.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{font-family:inherit;font-size:inherit;font-weight:inherit}@media (min-width:600px){.wp-block-navigation__responsive-container-open:not(.always-shown){display:none}}.wp-block-navigation__responsive-container-close{left:0;position:absolute;top:0;z-index:2}.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close{font-family:inherit;font-size:inherit;font-weight:inherit}.wp-block-navigation__responsive-close{width:100%}.has-modal-open .wp-block-navigation__responsive-close{margin-left:auto;margin-right:auto;max-width:var(--wp--style--global--wide-size,100%)}.wp-block-navigation__responsive-close:focus{outline:none}.is-menu-open .wp-block-navigation__responsive-close,.is-menu-open .wp-block-navigation__responsive-container-content,.is-menu-open .wp-block-navigation__responsive-dialog{box-sizing:border-box}.wp-block-navigation__responsive-dialog{position:relative}.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:46px}@media (min-width:782px){.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:32px}}html.has-modal-open{overflow:hidden}.wp-block-navigation .wp-block-navigation-item__label{overflow-wrap:break-word}.wp-block-navigation .wp-block-navigation-item__description{display:none}.link-ui-tools{border-top:1px solid #f0f0f0;padding:8px}.link-ui-block-inserter{padding-top:8px}.link-ui-block-inserter__back{margin-right:8px;text-transform:uppercase}.components-popover-pointer-events-trap{background-color:initial;cursor:pointer;inset:0;position:fixed;z-index:1000000}.wp-block-navigation .wp-block-page-list{align-items:var(--navigation-layout-align,initial);background-color:inherit;display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation .wp-block-navigation-item{background-color:inherit}.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:right;font-size:8.4em;font-style:normal;font-weight:100;line-height:.68;margin:.05em 0 0 .1em;text-transform:uppercase}body.rtl .has-drop-cap:not(:focus):first-letter{float:none;margin-right:.1em}p.has-drop-cap.has-background{overflow:hidden}p.has-background{padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{rotate:180deg}.wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author__byline{font-size:.5em;margin-bottom:0;margin-top:0;width:100%}.wp-block-post-author__avatar{margin-left:1em}.wp-block-post-author__bio{font-size:.7em;margin-bottom:.7em}.wp-block-post-author__content{flex-basis:0;flex-grow:1}.wp-block-post-author__name{margin:0}.wp-block-post-comments-form{box-sizing:border-box}.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title){font-weight:inherit}.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title){font-family:inherit}.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title),.wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title){font-size:inherit}.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title){line-height:inherit}.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title){font-style:inherit}.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title){letter-spacing:inherit}.wp-block-post-comments-form input[type=submit]{box-shadow:none;cursor:pointer;display:inline-block;overflow-wrap:break-word;text-align:center}.wp-block-post-comments-form input:not([type=submit]),.wp-block-post-comments-form textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments-form textarea{padding:calc(.667em + 2px)}.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments-form .comment-form-author label,.wp-block-post-comments-form .comment-form-email label,.wp-block-post-comments-form .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments-form .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments-form .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments-form .comment-reply-title{margin-bottom:0}.wp-block-post-comments-form .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-right:.5em}.wp-block-post-date{box-sizing:border-box}:where(.wp-block-post-excerpt){margin-bottom:var(--wp--style--block-gap);margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__excerpt{margin-bottom:0;margin-top:0}.wp-block-post-excerpt__more-text{margin-bottom:0;margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__more-link{display:inline-block}.wp-block-post-featured-image{margin-left:0;margin-right:0}.wp-block-post-featured-image a{display:block;height:100%}.wp-block-post-featured-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom;width:100%}.wp-block-post-featured-image.alignfull img,.wp-block-post-featured-image.alignwide img{width:100%}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim{background-color:#000;inset:0;position:absolute}.wp-block-post-featured-image{position:relative}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-gradient{background-color:initial}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-0{opacity:0}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-10{opacity:.1}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-20{opacity:.2}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-30{opacity:.3}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-40{opacity:.4}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-50{opacity:.5}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-60{opacity:.6}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-70{opacity:.7}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-80{opacity:.8}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-90{opacity:.9}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-100{opacity:1}.wp-block-post-featured-image:where(.alignleft,.alignright){width:100%}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous{display:inline-block;margin-left:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next{display:inline-block;margin-right:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-post-navigation-link.has-text-align-left[style*="writing-mode: vertical-lr"],.wp-block-post-navigation-link.has-text-align-right[style*="writing-mode: vertical-rl"]{rotate:180deg}.wp-block-post-terms{box-sizing:border-box}.wp-block-post-terms .wp-block-post-terms__separator{white-space:pre-wrap}.wp-block-post-time-to-read,.wp-block-post-title{box-sizing:border-box}.wp-block-post-title{word-break:break-word}.wp-block-post-title a{display:inline-block}.wp-block-preformatted{box-sizing:border-box;white-space:pre-wrap}:where(.wp-block-preformatted.has-background){padding:1.25em 2.375em}.wp-block-pullquote{box-sizing:border-box;overflow-wrap:break-word;padding:4em 0;text-align:center}.wp-block-pullquote blockquote,.wp-block-pullquote cite,.wp-block-pullquote p{color:inherit}.wp-block-pullquote blockquote{margin:0}.wp-block-pullquote p{margin-top:0}.wp-block-pullquote p:last-child{margin-bottom:0}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:420px}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}:where(.wp-block-pullquote){margin:0 0 1em}.wp-block-pullquote.has-text-align-left blockquote{text-align:right}.wp-block-pullquote.has-text-align-right blockquote{text-align:left}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:2em;margin-bottom:0;margin-top:0}.wp-block-pullquote.is-style-solid-color blockquote cite{font-style:normal;text-transform:none}.wp-block-pullquote cite{color:inherit}.wp-block-post-template{list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}.wp-block-post-template.wp-block-post-template{background:none}.wp-block-post-template.is-flex-container{display:flex;flex-direction:row;flex-wrap:wrap;gap:1.25em}.wp-block-post-template.is-flex-container>li{margin:0;width:100%}@media (min-width:600px){.wp-block-post-template.is-flex-container.is-flex-container.columns-2>li{width:calc(50% - .625em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-3>li{width:calc(33.33333% - .83333em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-4>li{width:calc(25% - .9375em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-5>li{width:calc(20% - 1em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-6>li{width:calc(16.66667% - 1.04167em)}}@media (max-width:600px){.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid{grid-template-columns:1fr}}.wp-block-post-template-is-layout-constrained>li>.alignright,.wp-block-post-template-is-layout-flow>li>.alignright{float:left;margin-inline-end:0;margin-inline-start:2em}.wp-block-post-template-is-layout-constrained>li>.alignleft,.wp-block-post-template-is-layout-flow>li>.alignleft{float:right;margin-inline-end:2em;margin-inline-start:0}.wp-block-post-template-is-layout-constrained>li>.aligncenter,.wp-block-post-template-is-layout-flow>li>.aligncenter{margin-inline-end:auto;margin-inline-start:auto}.wp-block-query-pagination>.wp-block-query-pagination-next,.wp-block-query-pagination>.wp-block-query-pagination-numbers,.wp-block-query-pagination>.wp-block-query-pagination-previous{margin-bottom:.5em;margin-right:.5em}.wp-block-query-pagination>.wp-block-query-pagination-next:last-child,.wp-block-query-pagination>.wp-block-query-pagination-numbers:last-child,.wp-block-query-pagination>.wp-block-query-pagination-previous:last-child{margin-right:0}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-next:last-of-type{margin-inline-start:auto}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-previous:first-child{margin-inline-end:auto}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow{display:inline-block;margin-left:1ch}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-query-pagination .wp-block-query-pagination-next-arrow{display:inline-block;margin-right:1ch}.wp-block-query-pagination .wp-block-query-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-query-pagination.aligncenter{justify-content:center}.wp-block-query-title,.wp-block-quote{box-sizing:border-box}.wp-block-quote{overflow-wrap:break-word}.wp-block-quote.is-large:where(:not(.is-style-plain)),.wp-block-quote.is-style-large:where(:not(.is-style-plain)){margin-bottom:1em;padding:0 1em}.wp-block-quote.is-large:where(:not(.is-style-plain)) p,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) p{font-size:1.5em;font-style:italic;line-height:1.6}.wp-block-quote.is-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-large:where(:not(.is-style-plain)) footer,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) footer{font-size:1.125em;text-align:left}.wp-block-quote>cite{display:block}.wp-block-read-more{display:block;width:-moz-fit-content;width:fit-content}.wp-block-read-more:where(:not([style*=text-decoration])){text-decoration:none}.wp-block-read-more:where(:not([style*=text-decoration])):active,.wp-block-read-more:where(:not([style*=text-decoration])):focus{text-decoration:none}ul.wp-block-rss{list-style:none;padding:0}ul.wp-block-rss.wp-block-rss{box-sizing:border-box}ul.wp-block-rss.alignleft{margin-right:2em}ul.wp-block-rss.alignright{margin-left:2em}ul.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;list-style:none;padding:0}ul.wp-block-rss.is-grid li{margin:0 0 1em 1em;width:100%}@media (min-width:600px){ul.wp-block-rss.columns-2 li{width:calc(50% - 1em)}ul.wp-block-rss.columns-3 li{width:calc(33.33333% - 1em)}ul.wp-block-rss.columns-4 li{width:calc(25% - 1em)}ul.wp-block-rss.columns-5 li{width:calc(20% - 1em)}ul.wp-block-rss.columns-6 li{width:calc(16.66667% - 1em)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;font-size:.8125em}.wp-block-search__button{margin-right:10px;word-break:normal}.wp-block-search__button.has-icon{line-height:0}.wp-block-search__button svg{height:1.25em;min-height:24px;min-width:24px;width:1.25em;fill:currentColor;vertical-align:text-bottom}:where(.wp-block-search__button){border:1px solid #ccc;padding:6px 10px}.wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search__label{width:100%}.wp-block-search__input{-webkit-appearance:initial;appearance:none;border:1px solid #949494;flex-grow:1;margin-left:0;margin-right:0;min-width:3rem;padding:8px;text-decoration:unset!important}.wp-block-search.wp-block-search__button-only .wp-block-search__button{flex-shrink:0;margin-right:0;max-width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__button[aria-expanded=true]{max-width:calc(100% - 100px)}.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{min-width:0!important;transition-property:width}.wp-block-search.wp-block-search__button-only .wp-block-search__input{flex-basis:100%;transition-duration:.3s}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden,.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{overflow:hidden}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__input{border-left-width:0!important;border-right-width:0!important;flex-basis:0;flex-grow:0;margin:0;min-width:0!important;padding-left:0!important;padding-right:0!important;width:0!important}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){border:1px solid #949494;box-sizing:border-box;padding:4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input{border:none;border-radius:0;padding:0 4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus{outline:none}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button){padding:4px 8px}.wp-block-search.aligncenter .wp-block-search__inside-wrapper{margin:auto}.wp-block[data-align=right] .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{float:left}.wp-block-separator{border:none;border-top:2px solid}.wp-block-separator.is-style-dots{background:none!important;border:none;height:auto;line-height:1;text-align:center}.wp-block-separator.is-style-dots:before{color:currentColor;content:"···";font-family:serif;font-size:1.5em;letter-spacing:2em;padding-left:2em}.wp-block-site-logo{box-sizing:border-box;line-height:0}.wp-block-site-logo a{display:inline-block;line-height:0}.wp-block-site-logo.is-default-size img{height:auto;width:120px}.wp-block-site-logo img{height:auto;max-width:100%}.wp-block-site-logo a,.wp-block-site-logo img{border-radius:inherit}.wp-block-site-logo.aligncenter{margin-left:auto;margin-right:auto;text-align:center}.wp-block-site-logo.is-style-rounded{border-radius:9999px}.wp-block-site-title a{color:inherit}.wp-block-social-links{background:none;box-sizing:border-box;margin-right:0;padding-left:0;padding-right:0;text-indent:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{border-bottom:0;box-shadow:none;text-decoration:none}.wp-block-social-links .wp-social-link a{padding:.25em}.wp-block-social-links .wp-social-link svg{height:1em;width:1em}.wp-block-social-links .wp-social-link span:not(.screen-reader-text){font-size:.65em;margin-left:.5em;margin-right:.5em}.wp-block-social-links.has-small-icon-size{font-size:16px}.wp-block-social-links,.wp-block-social-links.has-normal-icon-size{font-size:24px}.wp-block-social-links.has-large-icon-size{font-size:36px}.wp-block-social-links.has-huge-icon-size{font-size:48px}.wp-block-social-links.aligncenter{display:flex;justify-content:center}.wp-block-social-links.alignright{justify-content:flex-end}.wp-block-social-link{border-radius:9999px;display:block;height:auto;transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.wp-block-social-link{transition-delay:0s;transition-duration:0s}}.wp-block-social-link a{align-items:center;display:flex;line-height:0;transition:transform .1s ease}.wp-block-social-link:hover{transform:scale(1.1)}.wp-block-social-links .wp-block-social-link.wp-social-link{display:inline-block;margin:0;padding:0}.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:active,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:visited{color:currentColor;fill:currentColor}.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-gravatar{background-color:#1d4fc4;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-patreon{background-color:#000;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:#ff4500;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-telegram{background-color:#2aabee;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-threads,.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tiktok{background-color:#000;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-whatsapp{background-color:#25d366;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-x{background-color:#000;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}.wp-block-social-links.is-style-logos-only .wp-social-link a{padding:0}.wp-block-social-links.is-style-logos-only .wp-social-link svg{height:1.25em;width:1.25em}.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-gravatar{color:#1d4fc4}.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-patreon{color:#000}.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:#ff4500}.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-telegram{color:#2aabee}.wp-block-social-links.is-style-logos-only .wp-social-link-threads,.wp-block-social-links.is-style-logos-only .wp-social-link-tiktok{color:#000}.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-whatsapp{color:#25d366}.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-x{color:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-yelp{color:#d32422}.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:.66667em;padding-right:.66667em}.wp-block-social-links:not(.has-icon-color):not(.has-icon-background-color) .wp-social-link-snapchat .wp-block-social-link-label{color:#000}.wp-block-spacer{clear:both}.wp-block-tag-cloud{box-sizing:border-box}.wp-block-tag-cloud.aligncenter{justify-content:center;text-align:center}.wp-block-tag-cloud.alignfull{padding-left:1em;padding-right:1em}.wp-block-tag-cloud a{display:inline-block;margin-left:5px}.wp-block-tag-cloud span{display:inline-block;margin-right:5px;text-decoration:none}.wp-block-tag-cloud.is-style-outline{display:flex;flex-wrap:wrap;gap:1ch}.wp-block-tag-cloud.is-style-outline a{border:1px solid;font-size:unset!important;margin-left:0;padding:1ch 2ch;text-decoration:none!important}.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.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{background-color:initial;border-bottom:1px solid #f0f0f0;border-collapse:inherit;border-spacing:0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.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:#0000}.wp-block-table .has-border-color td,.wp-block-table .has-border-color th,.wp-block-table .has-border-color tr,.wp-block-table .has-border-color>*{border-color:inherit}.wp-block-table table[style*=border-top-color] tr:first-child,.wp-block-table table[style*=border-top-color] tr:first-child td,.wp-block-table table[style*=border-top-color] tr:first-child th,.wp-block-table table[style*=border-top-color]>*,.wp-block-table table[style*=border-top-color]>* td,.wp-block-table table[style*=border-top-color]>* th{border-top-color:inherit}.wp-block-table table[style*=border-top-color] tr:not(:first-child){border-top-color:initial}.wp-block-table table[style*=border-right-color] td:last-child,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] tr,.wp-block-table table[style*=border-right-color]>*{border-left-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:last-child,.wp-block-table table[style*=border-bottom-color] tr:last-child td,.wp-block-table table[style*=border-bottom-color] tr:last-child th,.wp-block-table table[style*=border-bottom-color]>*,.wp-block-table table[style*=border-bottom-color]>* td,.wp-block-table table[style*=border-bottom-color]>* th{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){border-bottom-color:initial}.wp-block-table table[style*=border-left-color] td:first-child,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] tr,.wp-block-table table[style*=border-left-color]>*{border-right-color:inherit}.wp-block-table table[style*=border-style] td,.wp-block-table table[style*=border-style] th,.wp-block-table table[style*=border-style] tr,.wp-block-table table[style*=border-style]>*{border-style:inherit}.wp-block-table table[style*=border-width] td,.wp-block-table table[style*=border-width] th,.wp-block-table table[style*=border-width] tr,.wp-block-table table[style*=border-width]>*{border-style:inherit;border-width:inherit}:where(.wp-block-term-description){margin-bottom:var(--wp--style--block-gap);margin-top:var(--wp--style--block-gap)}.wp-block-term-description p{margin-bottom:0;margin-top:0}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 1em;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%}pre.wp-block-verse{overflow:auto;white-space:pre-wrap}:where(pre.wp-block-verse){font-family:inherit}.wp-block-video{box-sizing:border-box}.wp-block-video video{vertical-align:middle;width:100%}@supports (position:sticky){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-bottom:1em;margin-top:.5em}.editor-styles-wrapper,.entry-content{counter-reset:footnotes}a[data-fn].fn{counter-increment:footnotes;display:inline-flex;font-size:smaller;text-decoration:none;text-indent:-9999999px;vertical-align:super}a[data-fn].fn:after{content:"[" counter(footnotes) "]";float:right;text-indent:0}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}: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-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.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}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{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}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;line-height:normal;padding:15px 23px 14px;right:5px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-left-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-right-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-left-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-right-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}} \ No newline at end of file
+@charset "UTF-8";.wp-block-archives{box-sizing:border-box}.wp-block-archives-dropdown label{display:block}.wp-block-avatar{line-height:0}.wp-block-avatar,.wp-block-avatar img{box-sizing:border-box}.wp-block-avatar.aligncenter{text-align:center}.wp-block-audio{box-sizing:border-box}.wp-block-audio :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-audio audio{min-width:300px;width:100%}.wp-block-button__link{box-sizing:border-box;cursor:pointer;display:inline-block;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.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}:root :where(.wp-block-button .wp-block-button__link.is-style-outline),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link){border:2px solid;padding:.667em 1.333em}:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color)){color:currentColor}:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background)){background-color:initial;background-image:none}.wp-block-buttons.is-vertical{flex-direction:column}.wp-block-buttons.is-vertical>.wp-block-button:last-child{margin-bottom:0}.wp-block-buttons>.wp-block-button{display:inline-block;margin:0}.wp-block-buttons.is-content-justification-left{justify-content:flex-start}.wp-block-buttons.is-content-justification-left.is-vertical{align-items:flex-start}.wp-block-buttons.is-content-justification-center{justify-content:center}.wp-block-buttons.is-content-justification-center.is-vertical{align-items:center}.wp-block-buttons.is-content-justification-right{justify-content:flex-end}.wp-block-buttons.is-content-justification-right.is-vertical{align-items:flex-end}.wp-block-buttons.is-content-justification-space-between{justify-content:space-between}.wp-block-buttons.aligncenter{text-align:center}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block-button.aligncenter{margin-left:auto;margin-right:auto;width:100%}.wp-block-buttons[style*=text-decoration] .wp-block-button,.wp-block-buttons[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-button.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar td,.wp-block-calendar th{border:1px solid;padding:.25em}.wp-block-calendar th{font-weight:400}.wp-block-calendar caption{background-color:inherit}.wp-block-calendar table{border-collapse:collapse;width:100%}.wp-block-calendar table:where(:not(.has-text-color)){color:#40464d}.wp-block-calendar table:where(:not(.has-text-color)) td,.wp-block-calendar table:where(:not(.has-text-color)) th{border-color:#ddd}.wp-block-calendar table.has-background th{background-color:inherit}.wp-block-calendar table.has-text-color th{color:inherit}:where(.wp-block-calendar table:not(.has-background) th){background:#ddd}.wp-block-categories{box-sizing:border-box}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-categories.wp-block-categories-dropdown.aligncenter{text-align:center}.wp-block-code{box-sizing:border-box}.wp-block-code code{display:block;font-family:inherit;overflow-wrap:break-word;white-space:pre-wrap}.wp-block-columns{align-items:normal!important;box-sizing:border-box;display:flex;flex-wrap:wrap!important}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap!important}}.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}@media (max-width:781px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%!important}}@media (min-width:782px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column[style*=flex-basis]{flex-grow:0}}.wp-block-columns.is-not-stacked-on-mobile{flex-wrap:nowrap!important}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column[style*=flex-basis]{flex-grow:0}:where(.wp-block-columns){margin-bottom:1.75em}:where(.wp-block-columns.has-background){padding:1.25em 2.375em}.wp-block-column{flex-grow:1;min-width:0;overflow-wrap:break-word;word-break:break-word}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-stretch{align-self:stretch}.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-post-comments{box-sizing:border-box}.wp-block-post-comments .alignleft{float:right}.wp-block-post-comments .alignright{float:left}.wp-block-post-comments .navigation:after{clear:both;content:"";display:table}.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-right:3.25em}.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;margin-top:.5em;width:2.5em}.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-post-comments .comment-meta .comment-awaiting-moderation{display:block;margin-bottom:1em;margin-top:1em}.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-right:.5em}.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}:where(.wp-block-post-comments input[type=submit]){border:none}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers,.wp-block-comments-pagination>.wp-block-comments-pagination-previous{margin-bottom:.5em;margin-right:.5em}.wp-block-comments-pagination>.wp-block-comments-pagination-next:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-previous:last-child{margin-right:0}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow{display:inline-block;margin-left:1ch}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow{display:inline-block;margin-right:1ch}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-comments-pagination.aligncenter{justify-content:center}.wp-block-comment-template{box-sizing:border-box;list-style:none;margin-bottom:0;max-width:100%;padding:0}.wp-block-comment-template li{clear:both}.wp-block-comment-template ol{list-style:none;margin-bottom:0;max-width:100%;padding-right:2rem}.wp-block-comment-template.alignleft{float:right}.wp-block-comment-template.aligncenter{margin-left:auto;margin-right:auto;width:-moz-fit-content;width:fit-content}.wp-block-comment-template.alignright{float:left}.wp-block-cover,.wp-block-cover-image{align-items:center;background-position:50%;box-sizing:border-box;direction:ltr;display:flex;justify-content:center;min-height:430px;overflow:hidden;overflow:clip;padding:1em;position:relative}.wp-block-cover .has-background-dim:not([class*=-background-color]),.wp-block-cover-image .has-background-dim:not([class*=-background-color]),.wp-block-cover-image.has-background-dim:not([class*=-background-color]),.wp-block-cover.has-background-dim:not([class*=-background-color]){background-color:#000}.wp-block-cover .has-background-dim.has-background-gradient,.wp-block-cover-image .has-background-dim.has-background-gradient{background-color:initial}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{background-color:inherit;content:""}.wp-block-cover .wp-block-cover__background,.wp-block-cover .wp-block-cover__gradient-background,.wp-block-cover-image .wp-block-cover__background,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover.has-background-dim:not(.has-background-gradient):before{bottom:0;left:0;opacity:.5;position:absolute;right:0;top:0;z-index:1}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.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-20 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.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-30 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.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-40 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.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-50 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.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-60 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.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-70 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.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-80 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.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-90 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.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-100 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0{opacity:0}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10{opacity:.1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20{opacity:.2}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30{opacity:.3}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40{opacity:.4}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50{opacity:.5}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60{opacity:.6}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70{opacity:.7}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80{opacity:.8}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90{opacity:.9}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:420px;width:100%}.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 .wp-block-cover__inner-container,.wp-block-cover-image .wp-block-cover__inner-container{color:inherit;direction:rtl;width:100%;z-index:1}.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}.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover .wp-block-cover__image-background,.wp-block-cover video.wp-block-cover__video-background,.wp-block-cover-image .wp-block-cover__image-background,.wp-block-cover-image video.wp-block-cover__video-background{border:none;bottom:0;box-shadow:none;height:100%;left:0;margin:0;max-height:none;max-width:none;object-fit:cover;outline:none;padding:0;position:absolute;right:0;top:0;width:100%}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:fixed;background-repeat:no-repeat;background-size:cover}@supports (-webkit-touch-callout:inherit){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated,.wp-block-cover__image-background.is-repeated,video.wp-block-cover__video-background.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover__image-background,.wp-block-cover__video-background{z-index:0}.wp-block-cover-image-text,.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,.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,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 .wp-block-cover-text,.wp-block-cover-image .wp-block-cover-image-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;margin-bottom:0;max-width:840px;padding:.44em;text-align:center;z-index:1}:where(.wp-block-cover-image:not(.has-text-color)),:where(.wp-block-cover:not(.has-text-color)){color:#fff}:where(.wp-block-cover-image.is-light:not(.has-text-color)),:where(.wp-block-cover.is-light:not(.has-text-color)){color:#000}:root :where(.wp-block-cover h1:not(.has-text-color)),:root :where(.wp-block-cover h2:not(.has-text-color)),:root :where(.wp-block-cover h3:not(.has-text-color)),:root :where(.wp-block-cover h4:not(.has-text-color)),:root :where(.wp-block-cover h5:not(.has-text-color)),:root :where(.wp-block-cover h6:not(.has-text-color)),:root :where(.wp-block-cover p:not(.has-text-color)){color:inherit}.wp-block-details{box-sizing:border-box}.wp-block-details summary{cursor:pointer}.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-cover .wp-block-embed{min-height:240px;min-width:320px}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed :where(figcaption){margin-bottom:1em;margin-top:.5em}.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{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;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-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{box-sizing:border-box}.wp-block-file:not(.wp-element-button){font-size:.8em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file *+.wp-block-file__button{margin-right:.75em}:where(.wp-block-file){margin-bottom:1.5em}.wp-block-file__embed{margin-bottom:1em}:where(.wp-block-file__button){border-radius:2em;display:inline-block;padding:.5em 1em}:where(.wp-block-file__button):is(a):active,:where(.wp-block-file__button):is(a):focus,:where(.wp-block-file__button):is(a):hover,:where(.wp-block-file__button):is(a):visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-form-input__label{display:flex;flex-direction:column;gap:.25em;margin-bottom:.5em;width:100%}.wp-block-form-input__label.is-label-inline{align-items:center;flex-direction:row;gap:.5em}.wp-block-form-input__label.is-label-inline .wp-block-form-input__label-content{margin-bottom:.5em}.wp-block-form-input__label:has(input[type=checkbox]){flex-direction:row-reverse;width:-moz-fit-content;width:fit-content}.wp-block-form-input__label-content{width:-moz-fit-content;width:fit-content}.wp-block-form-input__input{font-size:1em;margin-bottom:.5em;padding:0 .5em}.wp-block-form-input__input[type=date],.wp-block-form-input__input[type=datetime-local],.wp-block-form-input__input[type=datetime],.wp-block-form-input__input[type=email],.wp-block-form-input__input[type=month],.wp-block-form-input__input[type=number],.wp-block-form-input__input[type=password],.wp-block-form-input__input[type=search],.wp-block-form-input__input[type=tel],.wp-block-form-input__input[type=text],.wp-block-form-input__input[type=time],.wp-block-form-input__input[type=url],.wp-block-form-input__input[type=week]{border:1px solid;line-height:2;min-height:2em}textarea.wp-block-form-input__input{min-height:10em}.blocks-gallery-grid:not(.has-nested-images),.wp-block-gallery:not(.has-nested-images){display:flex;flex-wrap:wrap;list-style-type:none;margin:0;padding:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item{display:flex;flex-direction:column;flex-grow:1;justify-content:center;margin:0 0 1em 1em;position:relative;width:calc(50% - 1em)}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n){margin-left:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figure,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figure{align-items:flex-end;display:flex;height:100%;justify-content:flex-start;margin:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item img{display:block;height:auto;max-width:100%;width:auto}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption{background:linear-gradient(0deg,#000000b3,#0000004d 70%,#0000);bottom:0;box-sizing:border-box;color:#fff;font-size:.8em;margin:0;max-height:100%;overflow:auto;padding:3em .77em .7em;position:absolute;text-align:center;width:100%;z-index:2}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid:not(.has-nested-images) figcaption,.wp-block-gallery:not(.has-nested-images) figcaption{flex-grow:1}.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item img{flex:1;height:100%;object-fit:cover;width:100%}.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item{margin-left:0;width:100%}@media (min-width:600px){.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item{margin-left:1em;width:calc(33.33333% - .66667em)}.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item{margin-left:1em;width:calc(25% - .75em)}.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item{margin-left:1em;width:calc(20% - .8em)}.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item{margin-left:1em;width:calc(16.66667% - .83333em)}.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item{margin-left:1em;width:calc(14.28571% - .85714em)}.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item{margin-left:1em;width:calc(12.5% - .875em)}.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n){margin-left:0}}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:last-child,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:last-child{margin-left:0}.blocks-gallery-grid:not(.has-nested-images).alignleft,.blocks-gallery-grid:not(.has-nested-images).alignright,.wp-block-gallery:not(.has-nested-images).alignleft,.wp-block-gallery:not(.has-nested-images).alignright{max-width:420px;width:100%}.blocks-gallery-grid:not(.has-nested-images).aligncenter .blocks-gallery-item figure,.wp-block-gallery:not(.has-nested-images).aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-gallery:not(.is-cropped) .blocks-gallery-item{align-self:flex-start}figure.wp-block-gallery.has-nested-images{align-items:normal}.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image){margin:0;width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)/2)}.wp-block-gallery.has-nested-images figure.wp-block-image{box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;max-width:100%;position:relative}.wp-block-gallery.has-nested-images figure.wp-block-image>a,.wp-block-gallery.has-nested-images figure.wp-block-image>div{flex-direction:column;flex-grow:1;margin:0}.wp-block-gallery.has-nested-images figure.wp-block-image img{display:block;height:auto;max-width:100%!important;width:auto}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{background:linear-gradient(0deg,#000000b3,#0000004d 70%,#0000);bottom:0;box-sizing:border-box;color:#fff;font-size:13px;margin-bottom:0;max-height:60%;overflow:auto;padding:0 8px 8px;position:absolute;right:0;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin;text-align:center;width:100%;will-change:transform}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar{height:12px;width:12px}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-track{background-color:initial}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover::-webkit-scrollbar-thumb{background-color:#fffc}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover{scrollbar-color:#fffc #0000}@media (hover:none){.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{scrollbar-color:#fffc #0000}}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption img{display:inline}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption a{color:inherit}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>a,.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>div,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>a,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>div{flex:1 1 auto}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border figcaption,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption{background:none;color:inherit;flex:initial;margin:0;padding:10px 10px 9px;position:relative}.wp-block-gallery.has-nested-images figcaption{flex-basis:100%;flex-grow:1;text-align:center}.wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image){margin-bottom:auto;margin-top:0}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image){align-self:inherit}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>div:not(.components-drop-zone){display:flex}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img{flex:1 0 0%;height:100%;object-fit:cover;width:100%}.wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image){width:100%}@media (min-width:600px){.wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image){width:calc(33.33333% - var(--wp--style--unstable-gallery-gap, 16px)*.66667)}.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image){width:calc(25% - var(--wp--style--unstable-gallery-gap, 16px)*.75)}.wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image){width:calc(20% - var(--wp--style--unstable-gallery-gap, 16px)*.8)}.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image){width:calc(16.66667% - var(--wp--style--unstable-gallery-gap, 16px)*.83333)}.wp-block-gallery.has-nested-images.columns-7 figure.wp-block-image:not(#individual-image){width:calc(14.28571% - var(--wp--style--unstable-gallery-gap, 16px)*.85714)}.wp-block-gallery.has-nested-images.columns-8 figure.wp-block-image:not(#individual-image){width:calc(12.5% - var(--wp--style--unstable-gallery-gap, 16px)*.875)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image){width:calc(33.33% - var(--wp--style--unstable-gallery-gap, 16px)*.66667)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2)~figure.wp-block-image:not(#individual-image){width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)*.5)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:last-child{width:100%}}.wp-block-gallery.has-nested-images.alignleft,.wp-block-gallery.has-nested-images.alignright{max-width:420px;width:100%}.wp-block-gallery.has-nested-images.aligncenter{justify-content:center}.wp-block-group{box-sizing:border-box}:where(.wp-block-group.wp-block-group-is-layout-constrained){position:relative}h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:1.25em 2.375em}h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h1.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h2.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h2.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h3.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h3.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h4.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h4.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h5.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h5.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h6.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]){rotate:180deg}.wp-block-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}.wp-block-image[style*=border-radius] img,.wp-block-image[style*=border-radius]>a{border-radius:inherit}.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{caption-side:bottom;display:table-caption}.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 :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-image.is-style-circle-mask img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-image.is-style-circle-mask img{border-radius:0;-webkit-mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-mode:alpha;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}}:root :where(.wp-block-image.is-style-rounded img,.wp-block-image .is-style-rounded img){border-radius:9999px}.wp-block-image figure{margin:0}.wp-lightbox-container{display:flex;flex-direction:column;position:relative}.wp-lightbox-container img{cursor:zoom-in}.wp-lightbox-container img:hover+button{opacity:1}.wp-lightbox-container button{align-items:center;-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background-color:#5a5a5a40;border:none;border-radius:4px;cursor:zoom-in;display:flex;height:20px;justify-content:center;left:16px;opacity:0;padding:0;position:absolute;text-align:center;top:16px;transition:opacity .2s ease;width:20px;z-index:100}.wp-lightbox-container button:focus-visible{outline:3px auto #5a5a5a40;outline:3px auto -webkit-focus-ring-color;outline-offset:3px}.wp-lightbox-container button:hover{cursor:pointer;opacity:1}.wp-lightbox-container button:focus{opacity:1}.wp-lightbox-container button:focus,.wp-lightbox-container button:hover,.wp-lightbox-container button:not(:hover):not(:active):not(.has-background){background-color:#5a5a5a40;border:none}.wp-lightbox-overlay{box-sizing:border-box;cursor:zoom-out;height:100vh;overflow:hidden;position:fixed;right:0;top:0;visibility:hidden;width:100%;z-index:100000}.wp-lightbox-overlay .close-button{align-items:center;cursor:pointer;display:flex;justify-content:center;left:calc(env(safe-area-inset-left) + 16px);min-height:40px;min-width:40px;padding:0;position:absolute;top:calc(env(safe-area-inset-top) + 16px);z-index:5000000}.wp-lightbox-overlay .close-button:focus,.wp-lightbox-overlay .close-button:hover,.wp-lightbox-overlay .close-button:not(:hover):not(:active):not(.has-background){background:none;border:none}.wp-lightbox-overlay .lightbox-image-container{height:var(--wp--lightbox-container-height);overflow:hidden;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);transform-origin:top right;width:var(--wp--lightbox-container-width);z-index:9999999999}.wp-lightbox-overlay .wp-block-image{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;margin:0;position:relative;transform-origin:100% 0;width:100%;z-index:3000000}.wp-lightbox-overlay .wp-block-image img{height:var(--wp--lightbox-image-height);min-height:var(--wp--lightbox-image-height);min-width:var(--wp--lightbox-image-width);width:var(--wp--lightbox-image-width)}.wp-lightbox-overlay .wp-block-image figcaption{display:none}.wp-lightbox-overlay button{background:none;border:none}.wp-lightbox-overlay .scrim{background-color:#fff;height:100%;opacity:.9;position:absolute;width:100%;z-index:2000000}.wp-lightbox-overlay.active{animation:turn-on-visibility .25s both;visibility:visible}.wp-lightbox-overlay.active img{animation:turn-on-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active){animation:turn-off-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active) img{animation:turn-off-visibility .25s both}@media (prefers-reduced-motion:no-preference){.wp-lightbox-overlay.zoom.active{animation:none;opacity:1;visibility:visible}.wp-lightbox-overlay.zoom.active .lightbox-image-container{animation:lightbox-zoom-in .4s}.wp-lightbox-overlay.zoom.active .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.active .scrim{animation:turn-on-visibility .4s forwards}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active){animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container{animation:lightbox-zoom-out .4s}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .scrim{animation:turn-off-visibility .4s forwards}}@keyframes turn-on-visibility{0%{opacity:0}to{opacity:1}}@keyframes turn-off-visibility{0%{opacity:1;visibility:visible}99%{opacity:0;visibility:visible}to{opacity:0;visibility:hidden}}@keyframes lightbox-zoom-in{0%{transform:translate(calc(((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position))*-1),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale))}to{transform:translate(50%,-50%) scale(1)}}@keyframes lightbox-zoom-out{0%{transform:translate(50%,-50%) scale(1);visibility:visible}99%{visibility:visible}to{transform:translate(calc(((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position))*-1),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale));visibility:hidden}}ol.wp-block-latest-comments{box-sizing:border-box;margin-right:0}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment)){line-height:1.1}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment-excerpt p)){line-height:1.8}.has-dates :where(.wp-block-latest-comments:not([style*=line-height])),.has-excerpts :where(.wp-block-latest-comments:not([style*=line-height])){line-height:1.5}.wp-block-latest-comments .wp-block-latest-comments{padding-right:0}.wp-block-latest-comments__comment{list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{list-style:none;min-height:2.25em}.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:3.25em}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;width:2.5em}.wp-block-latest-comments[class*=-font-size] a,.wp-block-latest-comments[style*=font-size] a{font-size:inherit}.wp-block-latest-posts{box-sizing:border-box}.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;overflow-wrap:break-word}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap}.wp-block-latest-posts.is-grid li{margin:0 0 1.25em 1.25em;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-left:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-left:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-left:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-left:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-left:0}}:root :where(.wp-block-latest-posts.is-grid){padding:0}:root :where(.wp-block-latest-posts.wp-block-latest-posts__list){padding-right:0}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-bottom:1em;margin-top:.5em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;max-width:100%;width:auto}.wp-block-latest-posts__featured-image.alignleft{float:left;margin-right:1em}.wp-block-latest-posts__featured-image.alignright{float:right;margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}ol,ul{box-sizing:border-box}:root :where(ul.has-background,ol.has-background){padding:1.25em 2.375em}.wp-block-media-text{box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:50% 1fr;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{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{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{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{align-self:end}.wp-block-media-text>.wp-block-media-text__media{grid-column:1;grid-row:1;margin:0}.wp-block-media-text>.wp-block-media-text__content{direction:rtl;grid-column:2;grid-row:1;padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{grid-column:2;grid-row:1}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{grid-column:1;grid-row:1}.wp-block-media-text__media img,.wp-block-media-text__media video{height:auto;max-width:unset;vertical-align:middle;width:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media{background-size:cover;height:100%;min-height:250px}.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{grid-column:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{grid-column:1;grid-row:2}}.wp-block-navigation{position:relative;--navigation-layout-justification-setting:flex-start;--navigation-layout-direction:row;--navigation-layout-wrap:wrap;--navigation-layout-justify:flex-start;--navigation-layout-align:center}.wp-block-navigation ul{margin-bottom:0;margin-right:0;margin-top:0;padding-right:0}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none;padding:0}.wp-block-navigation .wp-block-navigation-item{align-items:center;display:flex;position:relative}.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container:empty{display:none}.wp-block-navigation .wp-block-navigation-item__content{display:block}.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{color:inherit}.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:focus{text-decoration:underline}.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{text-decoration:line-through}.wp-block-navigation :where(a),.wp-block-navigation :where(a:active),.wp-block-navigation :where(a:focus){text-decoration:none}.wp-block-navigation .wp-block-navigation__submenu-icon{align-self:center;background-color:inherit;border:none;color:currentColor;display:inline-block;font-size:inherit;height:.6em;line-height:0;margin-right:.25em;padding:0;width:.6em}.wp-block-navigation .wp-block-navigation__submenu-icon svg{display:inline-block;stroke:currentColor;height:inherit;margin-top:.075em;width:inherit}.wp-block-navigation.is-vertical{--navigation-layout-direction:column;--navigation-layout-justify:initial;--navigation-layout-align:flex-start}.wp-block-navigation.no-wrap{--navigation-layout-wrap:nowrap}.wp-block-navigation.items-justified-center{--navigation-layout-justification-setting:center;--navigation-layout-justify:center}.wp-block-navigation.items-justified-center.is-vertical{--navigation-layout-align:center}.wp-block-navigation.items-justified-right{--navigation-layout-justification-setting:flex-end;--navigation-layout-justify:flex-end}.wp-block-navigation.items-justified-right.is-vertical{--navigation-layout-align:flex-end}.wp-block-navigation.items-justified-space-between{--navigation-layout-justification-setting:space-between;--navigation-layout-justify:space-between}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{align-items:normal;background-color:inherit;color:inherit;display:flex;flex-direction:column;height:0;opacity:0;overflow:hidden;position:absolute;right:-1px;top:100%;transition:opacity .1s linear;visibility:hidden;width:0;z-index:2}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content{display:flex;flex-grow:1}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content .wp-block-navigation__submenu-icon{margin-left:0;margin-right:auto}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content{margin:0}@media (min-width:782px){.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{right:100%;top:-1px}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:#0000;content:"";display:block;height:100%;left:100%;position:absolute;width:.5em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon{margin-left:.25em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon svg{transform:rotate(90deg)}}.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;overflow:visible;visibility:visible;width:auto}.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container{right:0;top:100%}@media (min-width:782px){.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{right:100%;top:0}}.wp-block-navigation-submenu{display:flex;position:relative}.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg{stroke:currentColor}button.wp-block-navigation-item__content{background-color:initial;border:none;color:currentColor;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-align:right;text-transform:inherit}.wp-block-navigation-submenu__toggle{cursor:pointer}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle{padding-left:.85em;padding-right:0}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle+.wp-block-navigation__submenu-icon{margin-right:-.6em;pointer-events:none}.wp-block-navigation-item.open-on-click button.wp-block-navigation-item__content:not(.wp-block-navigation-submenu__toggle){padding:0}.wp-block-navigation .wp-block-page-list,.wp-block-navigation__container,.wp-block-navigation__responsive-close,.wp-block-navigation__responsive-container,.wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-dialog{gap:inherit}:where(.wp-block-navigation.has-background .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation.has-background .wp-block-navigation-submenu a:not(.wp-element-button)){padding:.5em 1em}:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu button.wp-block-navigation-item__content),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-pages-list__item button.wp-block-navigation-item__content){padding:.5em 1em}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container{left:0;right:auto}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:-1px;right:-1px}@media (min-width:782px){.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;right:auto}}.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container{background-color:#fff;border:1px solid #00000026}.wp-block-navigation.has-background .wp-block-navigation__submenu-container{background-color:inherit}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container{color:#000}.wp-block-navigation__container{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial);list-style:none;margin:0;padding-right:0}.wp-block-navigation__container .is-responsive{display:none}.wp-block-navigation__container:only-child,.wp-block-page-list:only-child{flex-grow:1}@keyframes overlay-menu__fade-in-animation{0%{opacity:0;transform:translateY(.5em)}to{opacity:1;transform:translateY(0)}}.wp-block-navigation__responsive-container{bottom:0;display:none;left:0;position:fixed;right:0;top:0}.wp-block-navigation__responsive-container :where(.wp-block-navigation-item a){color:inherit}.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open){background-color:inherit!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open{animation:overlay-menu__fade-in-animation .1s ease-out;animation-fill-mode:forwards;background-color:inherit;display:flex;flex-direction:column;overflow:auto;padding:clamp(1rem,var(--wp--style--root--padding-top),20rem) clamp(1rem,var(--wp--style--root--padding-left),20em) clamp(1rem,var(--wp--style--root--padding-bottom),20rem) clamp(1rem,var(--wp--style--root--padding-right),20rem);z-index:100000}@media (prefers-reduced-motion:reduce){.wp-block-navigation__responsive-container.is-menu-open{animation-delay:0s;animation-duration:1ms}}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-justification-setting,inherit);display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible;padding-top:calc(2rem + 24px)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list{justify-content:flex-start}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container{border:none;height:auto;min-width:200px;opacity:1;overflow:initial;padding-left:2rem;padding-right:2rem;position:static;visibility:visible;width:auto}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{gap:inherit}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{padding-top:var(--wp--style--block-gap,2em)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content{padding:0}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list{align-items:var(--navigation-layout-justification-setting,initial);display:flex;flex-direction:column}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list{background:#0000!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:auto;right:auto}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){background-color:inherit;display:block;position:relative;width:100%;z-index:auto}.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{right:0}}.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open{background-color:#fff}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open{color:#000}.wp-block-navigation__toggle_button_label{font-size:1rem;font-weight:700}.wp-block-navigation__responsive-container-close,.wp-block-navigation__responsive-container-open{background:#0000;border:none;color:currentColor;cursor:pointer;margin:0;padding:0;text-transform:inherit;vertical-align:middle}.wp-block-navigation__responsive-container-close svg,.wp-block-navigation__responsive-container-open svg{fill:currentColor;display:block;height:24px;pointer-events:none;width:24px}.wp-block-navigation__responsive-container-open{display:flex}.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{font-family:inherit;font-size:inherit;font-weight:inherit}@media (min-width:600px){.wp-block-navigation__responsive-container-open:not(.always-shown){display:none}}.wp-block-navigation__responsive-container-close{left:0;position:absolute;top:0;z-index:2}.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close{font-family:inherit;font-size:inherit;font-weight:inherit}.wp-block-navigation__responsive-close{width:100%}.has-modal-open .wp-block-navigation__responsive-close{margin-left:auto;margin-right:auto;max-width:var(--wp--style--global--wide-size,100%)}.wp-block-navigation__responsive-close:focus{outline:none}.is-menu-open .wp-block-navigation__responsive-close,.is-menu-open .wp-block-navigation__responsive-container-content,.is-menu-open .wp-block-navigation__responsive-dialog{box-sizing:border-box}.wp-block-navigation__responsive-dialog{position:relative}.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:46px}@media (min-width:782px){.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:32px}}html.has-modal-open{overflow:hidden}.wp-block-navigation .wp-block-navigation-item__label{overflow-wrap:break-word}.wp-block-navigation .wp-block-navigation-item__description{display:none}.link-ui-tools{border-top:1px solid #f0f0f0;padding:8px}.link-ui-block-inserter{padding-top:8px}.link-ui-block-inserter__back{margin-right:8px;text-transform:uppercase}.wp-block-navigation .wp-block-page-list{align-items:var(--navigation-layout-align,initial);background-color:inherit;display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation .wp-block-navigation-item{background-color:inherit}.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:right;font-size:8.4em;font-style:normal;font-weight:100;line-height:.68;margin:.05em 0 0 .1em;text-transform:uppercase}body.rtl .has-drop-cap:not(:focus):first-letter{float:none;margin-right:.1em}p.has-drop-cap.has-background{overflow:hidden}:root :where(p.has-background){padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{rotate:180deg}.wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author__byline{font-size:.5em;margin-bottom:0;margin-top:0;width:100%}.wp-block-post-author__avatar{margin-left:1em}.wp-block-post-author__bio{font-size:.7em;margin-bottom:.7em}.wp-block-post-author__content{flex-basis:0;flex-grow:1}.wp-block-post-author__name{margin:0}:where(.wp-block-post-comments-form) input:not([type=submit]),:where(.wp-block-post-comments-form) textarea{border:1px solid #949494;font-family:inherit;font-size:1em}:where(.wp-block-post-comments-form) input:where(:not([type=submit]):not([type=checkbox])),:where(.wp-block-post-comments-form) textarea{padding:calc(.667em + 2px)}.wp-block-post-comments-form{box-sizing:border-box}.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title){font-weight:inherit}.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title){font-family:inherit}.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title),.wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title){font-size:inherit}.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title){line-height:inherit}.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title){font-style:inherit}.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title){letter-spacing:inherit}.wp-block-post-comments-form input[type=submit]{box-shadow:none;cursor:pointer;display:inline-block;overflow-wrap:break-word;text-align:center}.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments-form .comment-form-author label,.wp-block-post-comments-form .comment-form-email label,.wp-block-post-comments-form .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments-form .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments-form .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments-form .comment-reply-title{margin-bottom:0}.wp-block-post-comments-form .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-right:.5em}.wp-block-post-date{box-sizing:border-box}:where(.wp-block-post-excerpt){margin-bottom:var(--wp--style--block-gap);margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__excerpt{margin-bottom:0;margin-top:0}.wp-block-post-excerpt__more-text{margin-bottom:0;margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__more-link{display:inline-block}.wp-block-post-featured-image{margin-left:0;margin-right:0}.wp-block-post-featured-image a{display:block;height:100%}.wp-block-post-featured-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom;width:100%}.wp-block-post-featured-image.alignfull img,.wp-block-post-featured-image.alignwide img{width:100%}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim{background-color:#000;inset:0;position:absolute}.wp-block-post-featured-image{position:relative}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-gradient{background-color:initial}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-0{opacity:0}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-10{opacity:.1}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-20{opacity:.2}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-30{opacity:.3}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-40{opacity:.4}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-50{opacity:.5}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-60{opacity:.6}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-70{opacity:.7}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-80{opacity:.8}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-90{opacity:.9}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-100{opacity:1}.wp-block-post-featured-image:where(.alignleft,.alignright){width:100%}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous{display:inline-block;margin-left:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next{display:inline-block;margin-right:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-post-navigation-link.has-text-align-left[style*="writing-mode: vertical-lr"],.wp-block-post-navigation-link.has-text-align-right[style*="writing-mode: vertical-rl"]{rotate:180deg}.wp-block-post-terms{box-sizing:border-box}.wp-block-post-terms .wp-block-post-terms__separator{white-space:pre-wrap}.wp-block-post-time-to-read,.wp-block-post-title{box-sizing:border-box}.wp-block-post-title{word-break:break-word}.wp-block-post-title a{display:inline-block}.wp-block-preformatted{box-sizing:border-box;white-space:pre-wrap}:where(.wp-block-preformatted.has-background){padding:1.25em 2.375em}.wp-block-pullquote{box-sizing:border-box;margin:0 0 1em;overflow-wrap:break-word;padding:4em 0;text-align:center}.wp-block-pullquote blockquote,.wp-block-pullquote cite,.wp-block-pullquote p{color:inherit}.wp-block-pullquote blockquote{margin:0}.wp-block-pullquote p{margin-top:0}.wp-block-pullquote p:last-child{margin-bottom:0}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:420px}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote.has-text-align-left blockquote{text-align:right}.wp-block-pullquote.has-text-align-right blockquote{text-align:left}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:2em;margin-bottom:0;margin-top:0}.wp-block-pullquote.is-style-solid-color blockquote cite{font-style:normal;text-transform:none}.wp-block-pullquote cite{color:inherit}.wp-block-post-template{list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}.wp-block-post-template.is-flex-container{display:flex;flex-direction:row;flex-wrap:wrap;gap:1.25em}.wp-block-post-template.is-flex-container>li{margin:0;width:100%}@media (min-width:600px){.wp-block-post-template.is-flex-container.is-flex-container.columns-2>li{width:calc(50% - .625em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-3>li{width:calc(33.33333% - .83333em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-4>li{width:calc(25% - .9375em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-5>li{width:calc(20% - 1em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-6>li{width:calc(16.66667% - 1.04167em)}}@media (max-width:600px){.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid{grid-template-columns:1fr}}.wp-block-post-template-is-layout-constrained>li>.alignright,.wp-block-post-template-is-layout-flow>li>.alignright{float:left;margin-inline-end:0;margin-inline-start:2em}.wp-block-post-template-is-layout-constrained>li>.alignleft,.wp-block-post-template-is-layout-flow>li>.alignleft{float:right;margin-inline-end:2em;margin-inline-start:0}.wp-block-post-template-is-layout-constrained>li>.aligncenter,.wp-block-post-template-is-layout-flow>li>.aligncenter{margin-inline-end:auto;margin-inline-start:auto}.wp-block-query-pagination>.wp-block-query-pagination-next,.wp-block-query-pagination>.wp-block-query-pagination-numbers,.wp-block-query-pagination>.wp-block-query-pagination-previous{margin-bottom:.5em;margin-right:.5em}.wp-block-query-pagination>.wp-block-query-pagination-next:last-child,.wp-block-query-pagination>.wp-block-query-pagination-numbers:last-child,.wp-block-query-pagination>.wp-block-query-pagination-previous:last-child{margin-right:0}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-next:last-of-type{margin-inline-start:auto}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-previous:first-child{margin-inline-end:auto}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow{display:inline-block;margin-left:1ch}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-query-pagination .wp-block-query-pagination-next-arrow{display:inline-block;margin-right:1ch}.wp-block-query-pagination .wp-block-query-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-query-pagination.aligncenter{justify-content:center}.wp-block-query-title,.wp-block-quote{box-sizing:border-box}.wp-block-quote{overflow-wrap:break-word}.wp-block-quote.is-large:where(:not(.is-style-plain)),.wp-block-quote.is-style-large:where(:not(.is-style-plain)){margin-bottom:1em;padding:0 1em}.wp-block-quote.is-large:where(:not(.is-style-plain)) p,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) p{font-size:1.5em;font-style:italic;line-height:1.6}.wp-block-quote.is-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-large:where(:not(.is-style-plain)) footer,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) footer{font-size:1.125em;text-align:left}.wp-block-quote>cite{display:block}.wp-block-read-more{display:block;width:-moz-fit-content;width:fit-content}.wp-block-read-more:where(:not([style*=text-decoration])){text-decoration:none}.wp-block-read-more:where(:not([style*=text-decoration])):active,.wp-block-read-more:where(:not([style*=text-decoration])):focus{text-decoration:none}ul.wp-block-rss{list-style:none;padding:0}ul.wp-block-rss.wp-block-rss{box-sizing:border-box}ul.wp-block-rss.alignleft{margin-right:2em}ul.wp-block-rss.alignright{margin-left:2em}ul.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;list-style:none;padding:0}ul.wp-block-rss.is-grid li{margin:0 0 1em 1em;width:100%}@media (min-width:600px){ul.wp-block-rss.columns-2 li{width:calc(50% - 1em)}ul.wp-block-rss.columns-3 li{width:calc(33.33333% - 1em)}ul.wp-block-rss.columns-4 li{width:calc(25% - 1em)}ul.wp-block-rss.columns-5 li{width:calc(20% - 1em)}ul.wp-block-rss.columns-6 li{width:calc(16.66667% - 1em)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;font-size:.8125em}.wp-block-search__button{margin-right:10px;word-break:normal}.wp-block-search__button.has-icon{line-height:0}.wp-block-search__button svg{height:1.25em;min-height:24px;min-width:24px;width:1.25em;fill:currentColor;vertical-align:text-bottom}:where(.wp-block-search__button){border:1px solid #ccc;padding:6px 10px}.wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search__label{width:100%}.wp-block-search__input{appearance:none;border:1px solid #949494;flex-grow:1;margin-left:0;margin-right:0;min-width:3rem;padding:8px;text-decoration:unset!important}.wp-block-search.wp-block-search__button-only .wp-block-search__button{flex-shrink:0;margin-right:0;max-width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__button[aria-expanded=true]{max-width:calc(100% - 100px)}.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{min-width:0!important;transition-property:width}.wp-block-search.wp-block-search__button-only .wp-block-search__input{flex-basis:100%;transition-duration:.3s}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden,.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{overflow:hidden}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__input{border-left-width:0!important;border-right-width:0!important;flex-basis:0;flex-grow:0;margin:0;min-width:0!important;padding-left:0!important;padding-right:0!important;width:0!important}:where(.wp-block-search__input){font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-transform:inherit}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){border:1px solid #949494;box-sizing:border-box;padding:4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input{border:none;border-radius:0;padding:0 4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus{outline:none}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button){padding:4px 8px}.wp-block-search.aligncenter .wp-block-search__inside-wrapper{margin:auto}.wp-block[data-align=right] .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{float:left}.wp-block-separator{border:none;border-top:2px solid}:root :where(.wp-block-separator.is-style-dots){height:auto;line-height:1;text-align:center}:root :where(.wp-block-separator.is-style-dots):before{color:currentColor;content:"···";font-family:serif;font-size:1.5em;letter-spacing:2em;padding-left:2em}.wp-block-separator.is-style-dots{background:none!important;border:none!important}.wp-block-site-logo{box-sizing:border-box;line-height:0}.wp-block-site-logo a{display:inline-block;line-height:0}.wp-block-site-logo.is-default-size img{height:auto;width:120px}.wp-block-site-logo img{height:auto;max-width:100%}.wp-block-site-logo a,.wp-block-site-logo img{border-radius:inherit}.wp-block-site-logo.aligncenter{margin-left:auto;margin-right:auto;text-align:center}:root :where(.wp-block-site-logo.is-style-rounded){border-radius:9999px}:root :where(.wp-block-site-title a){color:inherit}.wp-block-social-links{background:none;box-sizing:border-box;margin-right:0;padding-left:0;padding-right:0;text-indent:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{border-bottom:0;box-shadow:none;text-decoration:none}.wp-block-social-links .wp-social-link svg{height:1em;width:1em}.wp-block-social-links .wp-social-link span:not(.screen-reader-text){font-size:.65em;margin-left:.5em;margin-right:.5em}.wp-block-social-links.has-small-icon-size{font-size:16px}.wp-block-social-links,.wp-block-social-links.has-normal-icon-size{font-size:24px}.wp-block-social-links.has-large-icon-size{font-size:36px}.wp-block-social-links.has-huge-icon-size{font-size:48px}.wp-block-social-links.aligncenter{display:flex;justify-content:center}.wp-block-social-links.alignright{justify-content:flex-end}.wp-block-social-link{border-radius:9999px;display:block;height:auto;transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.wp-block-social-link{transition-delay:0s;transition-duration:0s}}.wp-block-social-link a{align-items:center;display:flex;line-height:0;transition:transform .1s ease}.wp-block-social-link:hover{transform:scale(1.1)}.wp-block-social-links .wp-block-social-link.wp-social-link{display:inline-block;margin:0;padding:0}.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:active,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:visited{color:currentColor;fill:currentColor}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link{background-color:#f0f0f0;color:#444}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-amazon{background-color:#f90;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-behance{background-color:#0757fe;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bluesky{background-color:#0a7aff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-etsy{background-color:#f45800;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-facebook{background-color:#1778f2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-flickr{background-color:#0461dd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-foursquare{background-color:#e65678;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-github{background-color:#24292d;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-google{background-color:#ea4434;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-gravatar{background-color:#1d4fc4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-instagram{background-color:#f00075;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-linkedin{background-color:#0d66c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-medium{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-meetup{background-color:#f6405f;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-patreon{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pinterest{background-color:#e60122;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pocket{background-color:#ef4155;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-reddit{background-color:#ff4500;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-skype{background-color:#0478d7;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-snapchat{background-color:#fefc00;color:#fff;stroke:#000}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-spotify{background-color:#1bd760;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-telegram{background-color:#2aabee;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-threads{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tiktok{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tumblr{background-color:#011835;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitch{background-color:#6440a4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitter{background-color:#1da1f2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vk{background-color:#4680c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-whatsapp{background-color:#25d366;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-x{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-yelp{background-color:#d32422;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-youtube{background-color:red;color:#fff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link{background:none}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link svg{height:1.25em;width:1.25em}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-amazon{color:#f90}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bandcamp{color:#1ea0c3}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-behance{color:#0757fe}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bluesky{color:#0a7aff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-codepen{color:#1e1f26}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-deviantart{color:#02e49b}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dribbble{color:#e94c89}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dropbox{color:#4280ff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-etsy{color:#f45800}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-facebook{color:#1778f2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-fivehundredpx{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-flickr{color:#0461dd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-foursquare{color:#e65678}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-github{color:#24292d}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-goodreads{color:#382110}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-google{color:#ea4434}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-gravatar{color:#1d4fc4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-instagram{color:#f00075}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-lastfm{color:#e21b24}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-linkedin{color:#0d66c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-mastodon{color:#3288d4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-medium{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-meetup{color:#f6405f}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-patreon{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pinterest{color:#e60122}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pocket{color:#ef4155}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-reddit{color:#ff4500}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-skype{color:#0478d7}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-snapchat{color:#fff;stroke:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-soundcloud{color:#ff5600}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-spotify{color:#1bd760}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-telegram{color:#2aabee}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-threads{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tiktok{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tumblr{color:#011835}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitch{color:#6440a4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitter{color:#1da1f2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vimeo{color:#1eb7ea}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vk{color:#4680c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-whatsapp{color:#25d366}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-wordpress{color:#3499cd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-x{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-yelp{color:#d32422}:where(.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}:root :where(.wp-block-social-links .wp-social-link a){padding:.25em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link a){padding:0}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link a){padding-left:.66667em;padding-right:.66667em}.wp-block-social-links:not(.has-icon-color):not(.has-icon-background-color) .wp-social-link-snapchat .wp-block-social-link-label{color:#000}.wp-block-spacer{clear:both}.wp-block-tag-cloud{box-sizing:border-box}.wp-block-tag-cloud.aligncenter{justify-content:center;text-align:center}.wp-block-tag-cloud.alignfull{padding-left:1em;padding-right:1em}.wp-block-tag-cloud a{display:inline-block;margin-left:5px}.wp-block-tag-cloud span{display:inline-block;margin-right:5px;text-decoration:none}:root :where(.wp-block-tag-cloud.is-style-outline){display:flex;flex-wrap:wrap;gap:1ch}:root :where(.wp-block-tag-cloud.is-style-outline a){border:1px solid;font-size:unset!important;margin-left:0;padding:1ch 2ch;text-decoration:none!important}.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.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{background-color:initial;border-bottom:1px solid #f0f0f0;border-collapse:inherit;border-spacing:0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.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:#0000}.wp-block-table .has-border-color td,.wp-block-table .has-border-color th,.wp-block-table .has-border-color tr,.wp-block-table .has-border-color>*{border-color:inherit}.wp-block-table table[style*=border-top-color] tr:first-child,.wp-block-table table[style*=border-top-color] tr:first-child td,.wp-block-table table[style*=border-top-color] tr:first-child th,.wp-block-table table[style*=border-top-color]>*,.wp-block-table table[style*=border-top-color]>* td,.wp-block-table table[style*=border-top-color]>* th{border-top-color:inherit}.wp-block-table table[style*=border-top-color] tr:not(:first-child){border-top-color:initial}.wp-block-table table[style*=border-right-color] td:last-child,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] tr,.wp-block-table table[style*=border-right-color]>*{border-left-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:last-child,.wp-block-table table[style*=border-bottom-color] tr:last-child td,.wp-block-table table[style*=border-bottom-color] tr:last-child th,.wp-block-table table[style*=border-bottom-color]>*,.wp-block-table table[style*=border-bottom-color]>* td,.wp-block-table table[style*=border-bottom-color]>* th{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){border-bottom-color:initial}.wp-block-table table[style*=border-left-color] td:first-child,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] tr,.wp-block-table table[style*=border-left-color]>*{border-right-color:inherit}.wp-block-table table[style*=border-style] td,.wp-block-table table[style*=border-style] th,.wp-block-table table[style*=border-style] tr,.wp-block-table table[style*=border-style]>*{border-style:inherit}.wp-block-table table[style*=border-width] td,.wp-block-table table[style*=border-width] th,.wp-block-table table[style*=border-width] tr,.wp-block-table table[style*=border-width]>*{border-style:inherit;border-width:inherit}:where(.wp-block-term-description){margin-bottom:var(--wp--style--block-gap);margin-top:var(--wp--style--block-gap)}.wp-block-term-description p{margin-bottom:0;margin-top:0}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 1em;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%}pre.wp-block-verse{overflow:auto;white-space:pre-wrap}:where(pre.wp-block-verse){font-family:inherit}.wp-block-video{box-sizing:border-box}.wp-block-video video{vertical-align:middle;width:100%}@supports (position:sticky){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video :where(figcaption){margin-bottom:1em;margin-top:.5em}.editor-styles-wrapper,.entry-content{counter-reset:footnotes}a[data-fn].fn{counter-increment:footnotes;display:inline-flex;font-size:smaller;text-decoration:none;text-indent:-9999999px;vertical-align:super}a[data-fn].fn:after{content:"[" counter(footnotes) "]";float:right;text-indent:0}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}: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-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.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}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;clip-path:none;color:#444;display:block;font-size:1em;height:auto;line-height:normal;padding:15px 23px 14px;right:5px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-left-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-right-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-left-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-right-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}} \ 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 6e2e4c7..e54e8e5 100644
--- a/wp-includes/css/dist/block-library/style.css
+++ b/wp-includes/css/dist/block-library/style.css
@@ -21,7 +21,7 @@
.wp-block-audio{
box-sizing:border-box;
}
-.wp-block-audio figcaption{
+.wp-block-audio :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
@@ -96,50 +96,17 @@
border-radius:0 !important;
}
-.wp-block-button .wp-block-button__link:where(.is-style-outline),.wp-block-button:where(.is-style-outline)>.wp-block-button__link{
+:root :where(.wp-block-button .wp-block-button__link.is-style-outline),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link){
border:2px solid;
padding:.667em 1.333em;
}
-
-.wp-block-button .wp-block-button__link:where(.is-style-outline):not(.has-text-color),.wp-block-button:where(.is-style-outline)>.wp-block-button__link:not(.has-text-color){
+:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color)){
color:currentColor;
}
-
-.wp-block-button .wp-block-button__link:where(.is-style-outline):not(.has-background),.wp-block-button:where(.is-style-outline)>.wp-block-button__link:not(.has-background){
+:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background)){
background-color:initial;
background-image:none;
}
-
-.wp-block-button .wp-block-button__link:where(.has-border-color){
- border-width:initial;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-top-color]){
- border-top-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-right-color]){
- border-right-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){
- border-bottom-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-left-color]){
- border-left-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-style]){
- border-width:initial;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-top-style]){
- border-top-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-right-style]){
- border-right-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){
- border-bottom-width:medium;
-}
-.wp-block-button .wp-block-button__link:where([style*=border-left-style]){
- border-left-width:medium;
-}
.wp-block-buttons.is-vertical{
flex-direction:column;
}
@@ -573,17 +540,6 @@
max-width:420px;
width:100%;
}
-.wp-block-cover-image:after,.wp-block-cover:after{
- content:"";
- display:block;
- font-size:0;
- min-height:inherit;
-}
-@supports (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;
}
@@ -592,9 +548,6 @@
width:100%;
z-index:1;
}
-.wp-block-cover h1:where(:not(.has-text-color)),.wp-block-cover h2:where(:not(.has-text-color)),.wp-block-cover h3:where(:not(.has-text-color)),.wp-block-cover h4:where(:not(.has-text-color)),.wp-block-cover h5:where(:not(.has-text-color)),.wp-block-cover h6:where(:not(.has-text-color)),.wp-block-cover p:where(:not(.has-text-color)),.wp-block-cover-image h1:where(:not(.has-text-color)),.wp-block-cover-image h2:where(:not(.has-text-color)),.wp-block-cover-image h3:where(:not(.has-text-color)),.wp-block-cover-image h4:where(:not(.has-text-color)),.wp-block-cover-image h5:where(:not(.has-text-color)),.wp-block-cover-image h6:where(:not(.has-text-color)),.wp-block-cover-image p:where(: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;
@@ -718,9 +671,12 @@
color:#000;
}
+:root :where(.wp-block-cover h1:not(.has-text-color)),:root :where(.wp-block-cover h2:not(.has-text-color)),:root :where(.wp-block-cover h3:not(.has-text-color)),:root :where(.wp-block-cover h4:not(.has-text-color)),:root :where(.wp-block-cover h5:not(.has-text-color)),:root :where(.wp-block-cover h6:not(.has-text-color)),:root :where(.wp-block-cover p:not(.has-text-color)){
+ color:inherit;
+}
+
.wp-block-details{
box-sizing:border-box;
- overflow:hidden;
}
.wp-block-details summary{
@@ -743,7 +699,7 @@
.wp-block-embed{
overflow-wrap:break-word;
}
-.wp-block-embed figcaption{
+.wp-block-embed :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
@@ -1132,6 +1088,10 @@ figure.wp-block-gallery.has-nested-images{
box-sizing:border-box;
}
+:where(.wp-block-group.wp-block-group-is-layout-constrained){
+ position:relative;
+}
+
h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{
padding:1.25em 2.375em;
}
@@ -1177,11 +1137,11 @@ h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h1.has-t
margin-left:auto;
margin-right:auto;
}
-.wp-block-image figcaption{
+.wp-block-image :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
-.wp-block-image .is-style-rounded img,.wp-block-image.is-style-circle-mask img,.wp-block-image.is-style-rounded img{
+.wp-block-image.is-style-circle-mask img{
border-radius:9999px;
}
@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){
@@ -1198,35 +1158,9 @@ h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h1.has-t
mask-size:contain;
}
}
-.wp-block-image :where(.has-border-color){
- border-style:solid;
-}
-.wp-block-image :where([style*=border-top-color]){
- border-top-style:solid;
-}
-.wp-block-image :where([style*=border-right-color]){
- border-right-style:solid;
-}
-.wp-block-image :where([style*=border-bottom-color]){
- border-bottom-style:solid;
-}
-.wp-block-image :where([style*=border-left-color]){
- border-left-style:solid;
-}
-.wp-block-image :where([style*=border-width]){
- border-style:solid;
-}
-.wp-block-image :where([style*=border-top-width]){
- border-top-style:solid;
-}
-.wp-block-image :where([style*=border-right-width]){
- border-right-style:solid;
-}
-.wp-block-image :where([style*=border-bottom-width]){
- border-bottom-style:solid;
-}
-.wp-block-image :where([style*=border-left-width]){
- border-left-style:solid;
+
+:root :where(.wp-block-image.is-style-rounded img,.wp-block-image .is-style-rounded img){
+ border-radius:9999px;
}
.wp-block-image figure{
@@ -1507,15 +1441,14 @@ ol.wp-block-latest-comments{
}
.wp-block-latest-posts.wp-block-latest-posts__list{
list-style:none;
- padding-left:0;
}
.wp-block-latest-posts.wp-block-latest-posts__list li{
clear:both;
+ overflow-wrap:break-word;
}
.wp-block-latest-posts.is-grid{
display:flex;
flex-wrap:wrap;
- padding:0;
}
.wp-block-latest-posts.is-grid li{
margin:0 1.25em 1.25em 0;
@@ -1554,6 +1487,13 @@ ol.wp-block-latest-comments{
}
}
+:root :where(.wp-block-latest-posts.is-grid){
+ padding:0;
+}
+:root :where(.wp-block-latest-posts.wp-block-latest-posts__list){
+ padding-left:0;
+}
+
.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{
display:block;
font-size:.8125em;
@@ -1588,7 +1528,8 @@ ol.wp-block-latest-comments{
ol,ul{
box-sizing:border-box;
}
-ol.has-background,ul.has-background{
+
+:root :where(ul.has-background,ol.has-background){
padding:1.25em 2.375em;
}
@@ -1603,25 +1544,25 @@ ol.has-background,ul.has-background{
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{
+.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{
align-self:start;
}
-.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media,.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.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{
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{
+.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{
align-self:end;
}
-.wp-block-media-text .wp-block-media-text__media{
+.wp-block-media-text>.wp-block-media-text__media{
grid-column:1;
grid-row:1;
margin:0;
}
-.wp-block-media-text .wp-block-media-text__content{
+.wp-block-media-text>.wp-block-media-text__content{
direction:ltr;
grid-column:2;
grid-row:1;
@@ -1629,12 +1570,12 @@ ol.has-background,ul.has-background{
word-break:break-word;
}
-.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media{
+.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{
grid-column:2;
grid-row:1;
}
-.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{
+.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{
grid-column:1;
grid-row:1;
}
@@ -1646,18 +1587,18 @@ ol.has-background,ul.has-background{
width:100%;
}
-.wp-block-media-text.is-image-fill .wp-block-media-text__media{
+.wp-block-media-text.is-image-fill>.wp-block-media-text__media{
background-size:cover;
height:100%;
min-height:250px;
}
-.wp-block-media-text.is-image-fill .wp-block-media-text__media>a{
+.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{
display:block;
height:100%;
}
-.wp-block-media-text.is-image-fill .wp-block-media-text__media img{
+.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{
height:1px;
margin:-1px;
overflow:hidden;
@@ -1671,11 +1612,11 @@ ol.has-background,ul.has-background{
.wp-block-media-text.is-stacked-on-mobile{
grid-template-columns:100% !important;
}
- .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{
+ .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{
grid-column:1;
grid-row:1;
}
- .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{
+ .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{
grid-column:1;
grid-row:2;
}
@@ -1718,10 +1659,7 @@ ol.has-background,ul.has-background{
.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{
text-decoration:line-through;
}
-.wp-block-navigation:where(:not([class*=has-text-decoration])) a{
- text-decoration:none;
-}
-.wp-block-navigation:where(:not([class*=has-text-decoration])) a:active,.wp-block-navigation:where(:not([class*=has-text-decoration])) a:focus{
+.wp-block-navigation :where(a),.wp-block-navigation :where(a:active),.wp-block-navigation :where(a:focus){
text-decoration:none;
}
.wp-block-navigation .wp-block-navigation__submenu-icon{
@@ -1856,6 +1794,7 @@ button.wp-block-navigation-item__content{
font-size:inherit;
font-style:inherit;
font-weight:inherit;
+ letter-spacing:inherit;
line-height:inherit;
text-align:left;
text-transform:inherit;
@@ -2155,14 +2094,6 @@ html.has-modal-open{
text-transform:uppercase;
}
-.components-popover-pointer-events-trap{
- background-color:initial;
- cursor:pointer;
- inset:0;
- position:fixed;
- z-index:1000000;
-}
-
.wp-block-navigation .wp-block-page-list{
align-items:var(--navigation-layout-align, initial);
background-color:inherit;
@@ -2210,7 +2141,7 @@ p.has-drop-cap.has-background{
overflow:hidden;
}
-p.has-background{
+:root :where(p.has-background){
padding:1.25em 2.375em;
}
@@ -2247,6 +2178,15 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[
margin:0;
}
+:where(.wp-block-post-comments-form) input:not([type=submit]),:where(.wp-block-post-comments-form) textarea{
+ border:1px solid #949494;
+ font-family:inherit;
+ font-size:1em;
+}
+:where(.wp-block-post-comments-form) input:where(:not([type=submit]):not([type=checkbox])),:where(.wp-block-post-comments-form) textarea{
+ padding:calc(.667em + 2px);
+}
+
.wp-block-post-comments-form{
box-sizing:border-box;
}
@@ -2275,14 +2215,6 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[
overflow-wrap:break-word;
text-align:center;
}
-.wp-block-post-comments-form input:not([type=submit]),.wp-block-post-comments-form textarea{
- border:1px solid #949494;
- font-family:inherit;
- font-size:1em;
-}
-.wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments-form textarea{
- padding:calc(.667em + 2px);
-}
.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{
box-sizing:border-box;
display:block;
@@ -2444,6 +2376,7 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[
.wp-block-pullquote{
box-sizing:border-box;
+ margin:0 0 1em;
overflow-wrap:break-word;
padding:4em 0;
text-align:center;
@@ -2470,10 +2403,6 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[
color:inherit;
}
-:where(.wp-block-pullquote){
- margin:0 0 1em;
-}
-
.wp-block-pullquote.has-text-align-left blockquote{
text-align:left;
}
@@ -2511,9 +2440,6 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[
max-width:100%;
padding:0;
}
-.wp-block-post-template.wp-block-post-template{
- background:none;
-}
.wp-block-post-template.is-flex-container{
display:flex;
flex-direction:row;
@@ -2710,8 +2636,7 @@ ul.wp-block-rss.is-grid li{
}
.wp-block-search__input{
- -webkit-appearance:initial;
- appearance:none;
+ appearance:none;
border:1px solid #949494;
flex-grow:1;
margin-left:0;
@@ -2752,6 +2677,16 @@ ul.wp-block-rss.is-grid li{
width:0 !important;
}
+:where(.wp-block-search__input){
+ font-family:inherit;
+ font-size:inherit;
+ font-style:inherit;
+ font-weight:inherit;
+ letter-spacing:inherit;
+ line-height:inherit;
+ text-transform:inherit;
+}
+
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){
border:1px solid #949494;
box-sizing:border-box;
@@ -2781,14 +2716,13 @@ ul.wp-block-rss.is-grid li{
border:none;
border-top:2px solid;
}
-.wp-block-separator.is-style-dots{
- background:none !important;
- border:none;
+
+:root :where(.wp-block-separator.is-style-dots){
height:auto;
line-height:1;
text-align:center;
}
-.wp-block-separator.is-style-dots:before{
+:root :where(.wp-block-separator.is-style-dots):before{
color:currentColor;
content:"···";
font-family:serif;
@@ -2797,6 +2731,11 @@ ul.wp-block-rss.is-grid li{
padding-left:2em;
}
+.wp-block-separator.is-style-dots{
+ background:none !important;
+ border:none !important;
+}
+
.wp-block-site-logo{
box-sizing:border-box;
line-height:0;
@@ -2821,11 +2760,12 @@ ul.wp-block-rss.is-grid li{
margin-right:auto;
text-align:center;
}
-.wp-block-site-logo.is-style-rounded{
+
+:root :where(.wp-block-site-logo.is-style-rounded){
border-radius:9999px;
}
-.wp-block-site-title a{
+:root :where(.wp-block-site-title a){
color:inherit;
}
@@ -2842,9 +2782,6 @@ ul.wp-block-rss.is-grid li{
box-shadow:none;
text-decoration:none;
}
-.wp-block-social-links .wp-social-link a{
- padding:.25em;
-}
.wp-block-social-links .wp-social-link svg{
height:1em;
width:1em;
@@ -2906,322 +2843,342 @@ ul.wp-block-rss.is-grid li{
fill:currentColor;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bluesky{
+ background-color:#0a7aff;
+ color:#fff;
+}
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-gravatar{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-gravatar{
background-color:#1d4fc4;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-instagram{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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;
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-medium{
+ background-color:#000;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-meetup{
+:where(.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-patreon{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-patreon{
background-color:#000;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pinterest{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-reddit{
background-color:#ff4500;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-skype{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-telegram{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-telegram{
background-color:#2aabee;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-threads,.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tiktok{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-threads{
+ background-color:#000;
+ color:#fff;
+}
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tiktok{
background-color:#000;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tumblr{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-whatsapp{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-whatsapp{
background-color:#25d366;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-x{
+:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-x{
background-color:#000;
color:#fff;
}
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link{
background:none;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link a{
- padding:0;
-}
-.wp-block-social-links.is-style-logos-only .wp-social-link svg{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link svg{
height:1.25em;
width:1.25em;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-amazon{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bluesky{
+ color:#0a7aff;
+}
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-gravatar{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-gravatar{
color:#1d4fc4;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-instagram{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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;
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-medium{
+ color:#000;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-meetup{
+:where(.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-patreon{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-patreon{
color:#000;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-pinterest{
+:where(.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{
+:where(.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{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-reddit{
color:#ff4500;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-skype{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-telegram{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-telegram{
color:#2aabee;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-threads,.wp-block-social-links.is-style-logos-only .wp-social-link-tiktok{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-threads{
color:#000;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-tumblr{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tiktok{
+ color:#000;
+}
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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{
+:where(.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-whatsapp{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-whatsapp{
color:#25d366;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-wordpress{
+:where(.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-x{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-x{
color:#000;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-yelp{
+:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-yelp{
color:#d32422;
}
-.wp-block-social-links.is-style-logos-only .wp-social-link-youtube{
+:where(.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{
+
+:root :where(.wp-block-social-links .wp-social-link a){
+ padding:.25em;
+}
+
+:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link a){
+ padding:0;
+}
+
+:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link a){
padding-left:.66667em;
padding-right:.66667em;
}
@@ -3254,12 +3211,14 @@ ul.wp-block-rss.is-grid li{
margin-left:5px;
text-decoration:none;
}
-.wp-block-tag-cloud.is-style-outline{
+
+:root :where(.wp-block-tag-cloud.is-style-outline){
display:flex;
flex-wrap:wrap;
gap:1ch;
}
-.wp-block-tag-cloud.is-style-outline a{
+
+:root :where(.wp-block-tag-cloud.is-style-outline a){
border:1px solid;
font-size:unset !important;
margin-right:0;
@@ -3419,7 +3378,7 @@ pre.wp-block-verse{
.wp-block-video.aligncenter{
text-align:center;
}
-.wp-block-video figcaption{
+.wp-block-video :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
@@ -3539,7 +3498,6 @@ a[data-fn].fn:after{
.screen-reader-text{
border:0;
clip:rect(1px, 1px, 1px, 1px);
- -webkit-clip-path:inset(50%);
clip-path:inset(50%);
height:1px;
margin:-1px;
@@ -3553,8 +3511,7 @@ a[data-fn].fn:after{
.screen-reader-text:focus{
background-color:#ddd;
clip:auto !important;
- -webkit-clip-path:none;
- clip-path:none;
+ clip-path:none;
color:#444;
display:block;
font-size:1em;
diff --git a/wp-includes/css/dist/block-library/style.min.css b/wp-includes/css/dist/block-library/style.min.css
index 9fd9be7..dd86465 100644
--- a/wp-includes/css/dist/block-library/style.min.css
+++ b/wp-includes/css/dist/block-library/style.min.css
@@ -1,11 +1,11 @@
-@charset "UTF-8";.wp-block-archives{box-sizing:border-box}.wp-block-archives-dropdown label{display:block}.wp-block-avatar{line-height:0}.wp-block-avatar,.wp-block-avatar img{box-sizing:border-box}.wp-block-avatar.aligncenter{text-align:center}.wp-block-audio{box-sizing:border-box}.wp-block-audio figcaption{margin-bottom:1em;margin-top:.5em}.wp-block-audio audio{min-width:300px;width:100%}.wp-block-button__link{box-sizing:border-box;cursor:pointer;display:inline-block;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.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 .wp-block-button__link:where(.is-style-outline),.wp-block-button:where(.is-style-outline)>.wp-block-button__link{border:2px solid;padding:.667em 1.333em}.wp-block-button .wp-block-button__link:where(.is-style-outline):not(.has-text-color),.wp-block-button:where(.is-style-outline)>.wp-block-button__link:not(.has-text-color){color:currentColor}.wp-block-button .wp-block-button__link:where(.is-style-outline):not(.has-background),.wp-block-button:where(.is-style-outline)>.wp-block-button__link:not(.has-background){background-color:initial;background-image:none}.wp-block-button .wp-block-button__link:where(.has-border-color){border-width:initial}.wp-block-button .wp-block-button__link:where([style*=border-top-color]){border-top-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-right-color]){border-right-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){border-bottom-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-left-color]){border-left-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-style]){border-width:initial}.wp-block-button .wp-block-button__link:where([style*=border-top-style]){border-top-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-right-style]){border-right-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){border-bottom-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-left-style]){border-left-width:medium}.wp-block-buttons.is-vertical{flex-direction:column}.wp-block-buttons.is-vertical>.wp-block-button:last-child{margin-bottom:0}.wp-block-buttons>.wp-block-button{display:inline-block;margin:0}.wp-block-buttons.is-content-justification-left{justify-content:flex-start}.wp-block-buttons.is-content-justification-left.is-vertical{align-items:flex-start}.wp-block-buttons.is-content-justification-center{justify-content:center}.wp-block-buttons.is-content-justification-center.is-vertical{align-items:center}.wp-block-buttons.is-content-justification-right{justify-content:flex-end}.wp-block-buttons.is-content-justification-right.is-vertical{align-items:flex-end}.wp-block-buttons.is-content-justification-space-between{justify-content:space-between}.wp-block-buttons.aligncenter{text-align:center}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block-button.aligncenter{margin-left:auto;margin-right:auto;width:100%}.wp-block-buttons[style*=text-decoration] .wp-block-button,.wp-block-buttons[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-button.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar td,.wp-block-calendar th{border:1px solid;padding:.25em}.wp-block-calendar th{font-weight:400}.wp-block-calendar caption{background-color:inherit}.wp-block-calendar table{border-collapse:collapse;width:100%}.wp-block-calendar table:where(:not(.has-text-color)){color:#40464d}.wp-block-calendar table:where(:not(.has-text-color)) td,.wp-block-calendar table:where(:not(.has-text-color)) th{border-color:#ddd}.wp-block-calendar table.has-background th{background-color:inherit}.wp-block-calendar table.has-text-color th{color:inherit}:where(.wp-block-calendar table:not(.has-background) th){background:#ddd}.wp-block-categories{box-sizing:border-box}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-categories.wp-block-categories-dropdown.aligncenter{text-align:center}.wp-block-code{box-sizing:border-box}.wp-block-code code{display:block;font-family:inherit;overflow-wrap:break-word;white-space:pre-wrap}.wp-block-columns{align-items:normal!important;box-sizing:border-box;display:flex;flex-wrap:wrap!important}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap!important}}.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}@media (max-width:781px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%!important}}@media (min-width:782px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column[style*=flex-basis]{flex-grow:0}}.wp-block-columns.is-not-stacked-on-mobile{flex-wrap:nowrap!important}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column[style*=flex-basis]{flex-grow:0}:where(.wp-block-columns){margin-bottom:1.75em}:where(.wp-block-columns.has-background){padding:1.25em 2.375em}.wp-block-column{flex-grow:1;min-width:0;overflow-wrap:break-word;word-break:break-word}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-stretch{align-self:stretch}.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-post-comments{box-sizing:border-box}.wp-block-post-comments .alignleft{float:left}.wp-block-post-comments .alignright{float:right}.wp-block-post-comments .navigation:after{clear:both;content:"";display:table}.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-left:3.25em}.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;margin-top:.5em;width:2.5em}.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-post-comments .comment-meta .comment-awaiting-moderation{display:block;margin-bottom:1em;margin-top:1em}.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-left:.5em}.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}:where(.wp-block-post-comments input[type=submit]){border:none}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers,.wp-block-comments-pagination>.wp-block-comments-pagination-previous{margin-bottom:.5em;margin-right:.5em}.wp-block-comments-pagination>.wp-block-comments-pagination-next:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-previous:last-child{margin-right:0}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow{display:inline-block;margin-right:1ch}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow{display:inline-block;margin-left:1ch}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-comments-pagination.aligncenter{justify-content:center}.wp-block-comment-template{box-sizing:border-box;list-style:none;margin-bottom:0;max-width:100%;padding:0}.wp-block-comment-template li{clear:both}.wp-block-comment-template ol{list-style:none;margin-bottom:0;max-width:100%;padding-left:2rem}.wp-block-comment-template.alignleft{float:left}.wp-block-comment-template.aligncenter{margin-left:auto;margin-right:auto;width:-moz-fit-content;width:fit-content}.wp-block-comment-template.alignright{float:right}.wp-block-cover,.wp-block-cover-image{align-items:center;background-position:50%;box-sizing:border-box;display:flex;justify-content:center;min-height:430px;overflow:hidden;overflow:clip;padding:1em;position:relative}.wp-block-cover .has-background-dim:not([class*=-background-color]),.wp-block-cover-image .has-background-dim:not([class*=-background-color]),.wp-block-cover-image.has-background-dim:not([class*=-background-color]),.wp-block-cover.has-background-dim:not([class*=-background-color]){background-color:#000}.wp-block-cover .has-background-dim.has-background-gradient,.wp-block-cover-image .has-background-dim.has-background-gradient{background-color:initial}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{background-color:inherit;content:""}.wp-block-cover .wp-block-cover__background,.wp-block-cover .wp-block-cover__gradient-background,.wp-block-cover-image .wp-block-cover__background,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover.has-background-dim:not(.has-background-gradient):before{bottom:0;left:0;opacity:.5;position:absolute;right:0;top:0;z-index:1}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.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-20 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.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-30 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.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-40 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.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-50 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.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-60 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.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-70 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.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-80 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.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-90 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.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-100 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0{opacity:0}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10{opacity:.1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20{opacity:.2}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30{opacity:.3}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40{opacity:.4}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50{opacity:.5}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60{opacity:.6}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70{opacity:.7}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80{opacity:.8}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90{opacity:.9}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:420px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{content:"";display:block;font-size:0;min-height:inherit}@supports (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 .wp-block-cover__inner-container,.wp-block-cover-image .wp-block-cover__inner-container{color:inherit;width:100%;z-index:1}.wp-block-cover h1:where(:not(.has-text-color)),.wp-block-cover h2:where(:not(.has-text-color)),.wp-block-cover h3:where(:not(.has-text-color)),.wp-block-cover h4:where(:not(.has-text-color)),.wp-block-cover h5:where(:not(.has-text-color)),.wp-block-cover h6:where(:not(.has-text-color)),.wp-block-cover p:where(:not(.has-text-color)),.wp-block-cover-image h1:where(:not(.has-text-color)),.wp-block-cover-image h2:where(:not(.has-text-color)),.wp-block-cover-image h3:where(:not(.has-text-color)),.wp-block-cover-image h4:where(:not(.has-text-color)),.wp-block-cover-image h5:where(:not(.has-text-color)),.wp-block-cover-image h6:where(:not(.has-text-color)),.wp-block-cover-image p:where(: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}.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover .wp-block-cover__image-background,.wp-block-cover video.wp-block-cover__video-background,.wp-block-cover-image .wp-block-cover__image-background,.wp-block-cover-image video.wp-block-cover__video-background{border:none;bottom:0;box-shadow:none;height:100%;left:0;margin:0;max-height:none;max-width:none;object-fit:cover;outline:none;padding:0;position:absolute;right:0;top:0;width:100%}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:fixed;background-repeat:no-repeat;background-size:cover}@supports (-webkit-touch-callout:inherit){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated,.wp-block-cover__image-background.is-repeated,video.wp-block-cover__video-background.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover__image-background,.wp-block-cover__video-background{z-index:0}.wp-block-cover-image-text,.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,.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,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 .wp-block-cover-text,.wp-block-cover-image .wp-block-cover-image-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;margin-bottom:0;max-width:840px;padding:.44em;text-align:center;z-index:1}:where(.wp-block-cover-image:not(.has-text-color)),:where(.wp-block-cover:not(.has-text-color)){color:#fff}:where(.wp-block-cover-image.is-light:not(.has-text-color)),:where(.wp-block-cover.is-light:not(.has-text-color)){color:#000}.wp-block-details{box-sizing:border-box;overflow:hidden}.wp-block-details summary{cursor:pointer}.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-cover .wp-block-embed{min-height:240px;min-width:320px}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed figcaption{margin-bottom:1em;margin-top:.5em}.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{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;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-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{box-sizing:border-box}.wp-block-file:not(.wp-element-button){font-size:.8em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file *+.wp-block-file__button{margin-left:.75em}:where(.wp-block-file){margin-bottom:1.5em}.wp-block-file__embed{margin-bottom:1em}:where(.wp-block-file__button){border-radius:2em;display:inline-block;padding:.5em 1em}:where(.wp-block-file__button):is(a):active,:where(.wp-block-file__button):is(a):focus,:where(.wp-block-file__button):is(a):hover,:where(.wp-block-file__button):is(a):visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-form-input__label{display:flex;flex-direction:column;gap:.25em;margin-bottom:.5em;width:100%}.wp-block-form-input__label.is-label-inline{align-items:center;flex-direction:row;gap:.5em}.wp-block-form-input__label.is-label-inline .wp-block-form-input__label-content{margin-bottom:.5em}.wp-block-form-input__label:has(input[type=checkbox]){flex-direction:row-reverse;width:-moz-fit-content;width:fit-content}.wp-block-form-input__label-content{width:-moz-fit-content;width:fit-content}.wp-block-form-input__input{font-size:1em;margin-bottom:.5em;padding:0 .5em}.wp-block-form-input__input[type=date],.wp-block-form-input__input[type=datetime-local],.wp-block-form-input__input[type=datetime],.wp-block-form-input__input[type=email],.wp-block-form-input__input[type=month],.wp-block-form-input__input[type=number],.wp-block-form-input__input[type=password],.wp-block-form-input__input[type=search],.wp-block-form-input__input[type=tel],.wp-block-form-input__input[type=text],.wp-block-form-input__input[type=time],.wp-block-form-input__input[type=url],.wp-block-form-input__input[type=week]{border:1px solid;line-height:2;min-height:2em}textarea.wp-block-form-input__input{min-height:10em}.blocks-gallery-grid:not(.has-nested-images),.wp-block-gallery:not(.has-nested-images){display:flex;flex-wrap:wrap;list-style-type:none;margin:0;padding:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item{display:flex;flex-direction:column;flex-grow:1;justify-content:center;margin:0 1em 1em 0;position:relative;width:calc(50% - 1em)}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n){margin-right:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figure,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figure{align-items:flex-end;display:flex;height:100%;justify-content:flex-start;margin:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item img{display:block;height:auto;max-width:100%;width:auto}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption{background:linear-gradient(0deg,#000000b3,#0000004d 70%,#0000);bottom:0;box-sizing:border-box;color:#fff;font-size:.8em;margin:0;max-height:100%;overflow:auto;padding:3em .77em .7em;position:absolute;text-align:center;width:100%;z-index:2}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid:not(.has-nested-images) figcaption,.wp-block-gallery:not(.has-nested-images) figcaption{flex-grow:1}.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item img{flex:1;height:100%;object-fit:cover;width:100%}.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item{margin-right:0;width:100%}@media (min-width:600px){.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item{margin-right:1em;width:calc(33.33333% - .66667em)}.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item{margin-right:1em;width:calc(25% - .75em)}.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item{margin-right:1em;width:calc(20% - .8em)}.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item{margin-right:1em;width:calc(16.66667% - .83333em)}.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item{margin-right:1em;width:calc(14.28571% - .85714em)}.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item{margin-right:1em;width:calc(12.5% - .875em)}.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n){margin-right:0}}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:last-child,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:last-child{margin-right:0}.blocks-gallery-grid:not(.has-nested-images).alignleft,.blocks-gallery-grid:not(.has-nested-images).alignright,.wp-block-gallery:not(.has-nested-images).alignleft,.wp-block-gallery:not(.has-nested-images).alignright{max-width:420px;width:100%}.blocks-gallery-grid:not(.has-nested-images).aligncenter .blocks-gallery-item figure,.wp-block-gallery:not(.has-nested-images).aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-gallery:not(.is-cropped) .blocks-gallery-item{align-self:flex-start}figure.wp-block-gallery.has-nested-images{align-items:normal}.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image){margin:0;width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)/2)}.wp-block-gallery.has-nested-images figure.wp-block-image{box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;max-width:100%;position:relative}.wp-block-gallery.has-nested-images figure.wp-block-image>a,.wp-block-gallery.has-nested-images figure.wp-block-image>div{flex-direction:column;flex-grow:1;margin:0}.wp-block-gallery.has-nested-images figure.wp-block-image img{display:block;height:auto;max-width:100%!important;width:auto}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{background:linear-gradient(0deg,#000000b3,#0000004d 70%,#0000);bottom:0;box-sizing:border-box;color:#fff;font-size:13px;left:0;margin-bottom:0;max-height:60%;overflow:auto;padding:0 8px 8px;position:absolute;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin;text-align:center;width:100%;will-change:transform}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar{height:12px;width:12px}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-track{background-color:initial}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover::-webkit-scrollbar-thumb{background-color:#fffc}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover{scrollbar-color:#fffc #0000}@media (hover:none){.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{scrollbar-color:#fffc #0000}}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption img{display:inline}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption a{color:inherit}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>a,.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>div,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>a,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>div{flex:1 1 auto}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border figcaption,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption{background:none;color:inherit;flex:initial;margin:0;padding:10px 10px 9px;position:relative}.wp-block-gallery.has-nested-images figcaption{flex-basis:100%;flex-grow:1;text-align:center}.wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image){margin-bottom:auto;margin-top:0}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image){align-self:inherit}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>div:not(.components-drop-zone){display:flex}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img{flex:1 0 0%;height:100%;object-fit:cover;width:100%}.wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image){width:100%}@media (min-width:600px){.wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image){width:calc(33.33333% - var(--wp--style--unstable-gallery-gap, 16px)*.66667)}.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image){width:calc(25% - var(--wp--style--unstable-gallery-gap, 16px)*.75)}.wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image){width:calc(20% - var(--wp--style--unstable-gallery-gap, 16px)*.8)}.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image){width:calc(16.66667% - var(--wp--style--unstable-gallery-gap, 16px)*.83333)}.wp-block-gallery.has-nested-images.columns-7 figure.wp-block-image:not(#individual-image){width:calc(14.28571% - var(--wp--style--unstable-gallery-gap, 16px)*.85714)}.wp-block-gallery.has-nested-images.columns-8 figure.wp-block-image:not(#individual-image){width:calc(12.5% - var(--wp--style--unstable-gallery-gap, 16px)*.875)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image){width:calc(33.33% - var(--wp--style--unstable-gallery-gap, 16px)*.66667)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2)~figure.wp-block-image:not(#individual-image){width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)*.5)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:last-child{width:100%}}.wp-block-gallery.has-nested-images.alignleft,.wp-block-gallery.has-nested-images.alignright{max-width:420px;width:100%}.wp-block-gallery.has-nested-images.aligncenter{justify-content:center}.wp-block-group{box-sizing:border-box}h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:1.25em 2.375em}h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h1.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h2.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h2.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h3.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h3.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h4.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h4.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h5.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h5.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h6.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]){rotate:180deg}.wp-block-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}.wp-block-image[style*=border-radius] img,.wp-block-image[style*=border-radius]>a{border-radius:inherit}.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{caption-side:bottom;display:table-caption}.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-bottom:1em;margin-top:.5em}.wp-block-image .is-style-rounded img,.wp-block-image.is-style-circle-mask img,.wp-block-image.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-image.is-style-circle-mask img{border-radius:0;-webkit-mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-mode:alpha;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}}.wp-block-image :where(.has-border-color){border-style:solid}.wp-block-image :where([style*=border-top-color]){border-top-style:solid}.wp-block-image :where([style*=border-right-color]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-color]){border-left-style:solid}.wp-block-image :where([style*=border-width]){border-style:solid}.wp-block-image :where([style*=border-top-width]){border-top-style:solid}.wp-block-image :where([style*=border-right-width]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-width]){border-left-style:solid}.wp-block-image figure{margin:0}.wp-lightbox-container{display:flex;flex-direction:column;position:relative}.wp-lightbox-container img{cursor:zoom-in}.wp-lightbox-container img:hover+button{opacity:1}.wp-lightbox-container button{align-items:center;-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background-color:#5a5a5a40;border:none;border-radius:4px;cursor:zoom-in;display:flex;height:20px;justify-content:center;opacity:0;padding:0;position:absolute;right:16px;text-align:center;top:16px;transition:opacity .2s ease;width:20px;z-index:100}.wp-lightbox-container button:focus-visible{outline:3px auto #5a5a5a40;outline:3px auto -webkit-focus-ring-color;outline-offset:3px}.wp-lightbox-container button:hover{cursor:pointer;opacity:1}.wp-lightbox-container button:focus{opacity:1}.wp-lightbox-container button:focus,.wp-lightbox-container button:hover,.wp-lightbox-container button:not(:hover):not(:active):not(.has-background){background-color:#5a5a5a40;border:none}.wp-lightbox-overlay{box-sizing:border-box;cursor:zoom-out;height:100vh;left:0;overflow:hidden;position:fixed;top:0;visibility:hidden;width:100%;z-index:100000}.wp-lightbox-overlay .close-button{align-items:center;cursor:pointer;display:flex;justify-content:center;min-height:40px;min-width:40px;padding:0;position:absolute;right:calc(env(safe-area-inset-right) + 16px);top:calc(env(safe-area-inset-top) + 16px);z-index:5000000}.wp-lightbox-overlay .close-button:focus,.wp-lightbox-overlay .close-button:hover,.wp-lightbox-overlay .close-button:not(:hover):not(:active):not(.has-background){background:none;border:none}.wp-lightbox-overlay .lightbox-image-container{height:var(--wp--lightbox-container-height);left:50%;overflow:hidden;position:absolute;top:50%;transform:translate(-50%,-50%);transform-origin:top left;width:var(--wp--lightbox-container-width);z-index:9999999999}.wp-lightbox-overlay .wp-block-image{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;margin:0;position:relative;transform-origin:0 0;width:100%;z-index:3000000}.wp-lightbox-overlay .wp-block-image img{height:var(--wp--lightbox-image-height);min-height:var(--wp--lightbox-image-height);min-width:var(--wp--lightbox-image-width);width:var(--wp--lightbox-image-width)}.wp-lightbox-overlay .wp-block-image figcaption{display:none}.wp-lightbox-overlay button{background:none;border:none}.wp-lightbox-overlay .scrim{background-color:#fff;height:100%;opacity:.9;position:absolute;width:100%;z-index:2000000}.wp-lightbox-overlay.active{animation:turn-on-visibility .25s both;visibility:visible}.wp-lightbox-overlay.active img{animation:turn-on-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active){animation:turn-off-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active) img{animation:turn-off-visibility .25s both}@media (prefers-reduced-motion:no-preference){.wp-lightbox-overlay.zoom.active{animation:none;opacity:1;visibility:visible}.wp-lightbox-overlay.zoom.active .lightbox-image-container{animation:lightbox-zoom-in .4s}.wp-lightbox-overlay.zoom.active .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.active .scrim{animation:turn-on-visibility .4s forwards}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active){animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container{animation:lightbox-zoom-out .4s}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .scrim{animation:turn-off-visibility .4s forwards}}@keyframes turn-on-visibility{0%{opacity:0}to{opacity:1}}@keyframes turn-off-visibility{0%{opacity:1;visibility:visible}99%{opacity:0;visibility:visible}to{opacity:0;visibility:hidden}}@keyframes lightbox-zoom-in{0%{transform:translate(calc((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position)),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale))}to{transform:translate(-50%,-50%) scale(1)}}@keyframes lightbox-zoom-out{0%{transform:translate(-50%,-50%) scale(1);visibility:visible}99%{visibility:visible}to{transform:translate(calc((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position)),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale));visibility:hidden}}ol.wp-block-latest-comments{box-sizing:border-box;margin-left:0}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment)){line-height:1.1}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment-excerpt p)){line-height:1.8}.has-dates :where(.wp-block-latest-comments:not([style*=line-height])),.has-excerpts :where(.wp-block-latest-comments:not([style*=line-height])){line-height:1.5}.wp-block-latest-comments .wp-block-latest-comments{padding-left:0}.wp-block-latest-comments__comment{list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{list-style:none;min-height:2.25em}.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:3.25em}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;width:2.5em}.wp-block-latest-comments[class*=-font-size] a,.wp-block-latest-comments[style*=font-size] a{font-size:inherit}.wp-block-latest-posts{box-sizing:border-box}.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;padding-left:0}.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 1.25em 1.25em 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-right:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-right:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-right:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-right:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-right:0}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-bottom:1em;margin-top:.5em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;max-width:100%;width:auto}.wp-block-latest-posts__featured-image.alignleft{float:left;margin-right:1em}.wp-block-latest-posts__featured-image.alignright{float:right;margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}ol,ul{box-sizing:border-box}ol.has-background,ul.has-background{padding:1.25em 2.375em}.wp-block-media-text{box-sizing:border-box;
+@charset "UTF-8";.wp-block-archives{box-sizing:border-box}.wp-block-archives-dropdown label{display:block}.wp-block-avatar{line-height:0}.wp-block-avatar,.wp-block-avatar img{box-sizing:border-box}.wp-block-avatar.aligncenter{text-align:center}.wp-block-audio{box-sizing:border-box}.wp-block-audio :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-audio audio{min-width:300px;width:100%}.wp-block-button__link{box-sizing:border-box;cursor:pointer;display:inline-block;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.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}:root :where(.wp-block-button .wp-block-button__link.is-style-outline),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link){border:2px solid;padding:.667em 1.333em}:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color)){color:currentColor}:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background)){background-color:initial;background-image:none}.wp-block-buttons.is-vertical{flex-direction:column}.wp-block-buttons.is-vertical>.wp-block-button:last-child{margin-bottom:0}.wp-block-buttons>.wp-block-button{display:inline-block;margin:0}.wp-block-buttons.is-content-justification-left{justify-content:flex-start}.wp-block-buttons.is-content-justification-left.is-vertical{align-items:flex-start}.wp-block-buttons.is-content-justification-center{justify-content:center}.wp-block-buttons.is-content-justification-center.is-vertical{align-items:center}.wp-block-buttons.is-content-justification-right{justify-content:flex-end}.wp-block-buttons.is-content-justification-right.is-vertical{align-items:flex-end}.wp-block-buttons.is-content-justification-space-between{justify-content:space-between}.wp-block-buttons.aligncenter{text-align:center}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block-button.aligncenter{margin-left:auto;margin-right:auto;width:100%}.wp-block-buttons[style*=text-decoration] .wp-block-button,.wp-block-buttons[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-button.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar td,.wp-block-calendar th{border:1px solid;padding:.25em}.wp-block-calendar th{font-weight:400}.wp-block-calendar caption{background-color:inherit}.wp-block-calendar table{border-collapse:collapse;width:100%}.wp-block-calendar table:where(:not(.has-text-color)){color:#40464d}.wp-block-calendar table:where(:not(.has-text-color)) td,.wp-block-calendar table:where(:not(.has-text-color)) th{border-color:#ddd}.wp-block-calendar table.has-background th{background-color:inherit}.wp-block-calendar table.has-text-color th{color:inherit}:where(.wp-block-calendar table:not(.has-background) th){background:#ddd}.wp-block-categories{box-sizing:border-box}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-categories.wp-block-categories-dropdown.aligncenter{text-align:center}.wp-block-code{box-sizing:border-box}.wp-block-code code{display:block;font-family:inherit;overflow-wrap:break-word;white-space:pre-wrap}.wp-block-columns{align-items:normal!important;box-sizing:border-box;display:flex;flex-wrap:wrap!important}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap!important}}.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}@media (max-width:781px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%!important}}@media (min-width:782px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column[style*=flex-basis]{flex-grow:0}}.wp-block-columns.is-not-stacked-on-mobile{flex-wrap:nowrap!important}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column[style*=flex-basis]{flex-grow:0}:where(.wp-block-columns){margin-bottom:1.75em}:where(.wp-block-columns.has-background){padding:1.25em 2.375em}.wp-block-column{flex-grow:1;min-width:0;overflow-wrap:break-word;word-break:break-word}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-stretch{align-self:stretch}.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-post-comments{box-sizing:border-box}.wp-block-post-comments .alignleft{float:left}.wp-block-post-comments .alignright{float:right}.wp-block-post-comments .navigation:after{clear:both;content:"";display:table}.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-left:3.25em}.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;margin-top:.5em;width:2.5em}.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-post-comments .comment-meta .comment-awaiting-moderation{display:block;margin-bottom:1em;margin-top:1em}.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-left:.5em}.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}:where(.wp-block-post-comments input[type=submit]){border:none}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers,.wp-block-comments-pagination>.wp-block-comments-pagination-previous{margin-bottom:.5em;margin-right:.5em}.wp-block-comments-pagination>.wp-block-comments-pagination-next:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-previous:last-child{margin-right:0}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow{display:inline-block;margin-right:1ch}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow{display:inline-block;margin-left:1ch}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-comments-pagination.aligncenter{justify-content:center}.wp-block-comment-template{box-sizing:border-box;list-style:none;margin-bottom:0;max-width:100%;padding:0}.wp-block-comment-template li{clear:both}.wp-block-comment-template ol{list-style:none;margin-bottom:0;max-width:100%;padding-left:2rem}.wp-block-comment-template.alignleft{float:left}.wp-block-comment-template.aligncenter{margin-left:auto;margin-right:auto;width:-moz-fit-content;width:fit-content}.wp-block-comment-template.alignright{float:right}.wp-block-cover,.wp-block-cover-image{align-items:center;background-position:50%;box-sizing:border-box;display:flex;justify-content:center;min-height:430px;overflow:hidden;overflow:clip;padding:1em;position:relative}.wp-block-cover .has-background-dim:not([class*=-background-color]),.wp-block-cover-image .has-background-dim:not([class*=-background-color]),.wp-block-cover-image.has-background-dim:not([class*=-background-color]),.wp-block-cover.has-background-dim:not([class*=-background-color]){background-color:#000}.wp-block-cover .has-background-dim.has-background-gradient,.wp-block-cover-image .has-background-dim.has-background-gradient{background-color:initial}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{background-color:inherit;content:""}.wp-block-cover .wp-block-cover__background,.wp-block-cover .wp-block-cover__gradient-background,.wp-block-cover-image .wp-block-cover__background,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover.has-background-dim:not(.has-background-gradient):before{bottom:0;left:0;opacity:.5;position:absolute;right:0;top:0;z-index:1}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.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-20 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.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-30 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.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-40 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.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-50 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.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-60 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.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-70 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.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-80 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.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-90 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.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-100 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.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 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0{opacity:0}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10{opacity:.1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20{opacity:.2}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30{opacity:.3}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40{opacity:.4}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50{opacity:.5}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60{opacity:.6}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70{opacity:.7}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80{opacity:.8}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90{opacity:.9}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:420px;width:100%}.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 .wp-block-cover__inner-container,.wp-block-cover-image .wp-block-cover__inner-container{color:inherit;width:100%;z-index:1}.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}.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover .wp-block-cover__image-background,.wp-block-cover video.wp-block-cover__video-background,.wp-block-cover-image .wp-block-cover__image-background,.wp-block-cover-image video.wp-block-cover__video-background{border:none;bottom:0;box-shadow:none;height:100%;left:0;margin:0;max-height:none;max-width:none;object-fit:cover;outline:none;padding:0;position:absolute;right:0;top:0;width:100%}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:fixed;background-repeat:no-repeat;background-size:cover}@supports (-webkit-touch-callout:inherit){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated,.wp-block-cover__image-background.is-repeated,video.wp-block-cover__video-background.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover__image-background,.wp-block-cover__video-background{z-index:0}.wp-block-cover-image-text,.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,.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,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 .wp-block-cover-text,.wp-block-cover-image .wp-block-cover-image-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;margin-bottom:0;max-width:840px;padding:.44em;text-align:center;z-index:1}:where(.wp-block-cover-image:not(.has-text-color)),:where(.wp-block-cover:not(.has-text-color)){color:#fff}:where(.wp-block-cover-image.is-light:not(.has-text-color)),:where(.wp-block-cover.is-light:not(.has-text-color)){color:#000}:root :where(.wp-block-cover h1:not(.has-text-color)),:root :where(.wp-block-cover h2:not(.has-text-color)),:root :where(.wp-block-cover h3:not(.has-text-color)),:root :where(.wp-block-cover h4:not(.has-text-color)),:root :where(.wp-block-cover h5:not(.has-text-color)),:root :where(.wp-block-cover h6:not(.has-text-color)),:root :where(.wp-block-cover p:not(.has-text-color)){color:inherit}.wp-block-details{box-sizing:border-box}.wp-block-details summary{cursor:pointer}.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-cover .wp-block-embed{min-height:240px;min-width:320px}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed :where(figcaption){margin-bottom:1em;margin-top:.5em}.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{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;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-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{box-sizing:border-box}.wp-block-file:not(.wp-element-button){font-size:.8em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file *+.wp-block-file__button{margin-left:.75em}:where(.wp-block-file){margin-bottom:1.5em}.wp-block-file__embed{margin-bottom:1em}:where(.wp-block-file__button){border-radius:2em;display:inline-block;padding:.5em 1em}:where(.wp-block-file__button):is(a):active,:where(.wp-block-file__button):is(a):focus,:where(.wp-block-file__button):is(a):hover,:where(.wp-block-file__button):is(a):visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-form-input__label{display:flex;flex-direction:column;gap:.25em;margin-bottom:.5em;width:100%}.wp-block-form-input__label.is-label-inline{align-items:center;flex-direction:row;gap:.5em}.wp-block-form-input__label.is-label-inline .wp-block-form-input__label-content{margin-bottom:.5em}.wp-block-form-input__label:has(input[type=checkbox]){flex-direction:row-reverse;width:-moz-fit-content;width:fit-content}.wp-block-form-input__label-content{width:-moz-fit-content;width:fit-content}.wp-block-form-input__input{font-size:1em;margin-bottom:.5em;padding:0 .5em}.wp-block-form-input__input[type=date],.wp-block-form-input__input[type=datetime-local],.wp-block-form-input__input[type=datetime],.wp-block-form-input__input[type=email],.wp-block-form-input__input[type=month],.wp-block-form-input__input[type=number],.wp-block-form-input__input[type=password],.wp-block-form-input__input[type=search],.wp-block-form-input__input[type=tel],.wp-block-form-input__input[type=text],.wp-block-form-input__input[type=time],.wp-block-form-input__input[type=url],.wp-block-form-input__input[type=week]{border:1px solid;line-height:2;min-height:2em}textarea.wp-block-form-input__input{min-height:10em}.blocks-gallery-grid:not(.has-nested-images),.wp-block-gallery:not(.has-nested-images){display:flex;flex-wrap:wrap;list-style-type:none;margin:0;padding:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item{display:flex;flex-direction:column;flex-grow:1;justify-content:center;margin:0 1em 1em 0;position:relative;width:calc(50% - 1em)}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n){margin-right:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figure,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figure{align-items:flex-end;display:flex;height:100%;justify-content:flex-start;margin:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item img{display:block;height:auto;max-width:100%;width:auto}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption{background:linear-gradient(0deg,#000000b3,#0000004d 70%,#0000);bottom:0;box-sizing:border-box;color:#fff;font-size:.8em;margin:0;max-height:100%;overflow:auto;padding:3em .77em .7em;position:absolute;text-align:center;width:100%;z-index:2}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid:not(.has-nested-images) figcaption,.wp-block-gallery:not(.has-nested-images) figcaption{flex-grow:1}.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item img{flex:1;height:100%;object-fit:cover;width:100%}.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item{margin-right:0;width:100%}@media (min-width:600px){.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item{margin-right:1em;width:calc(33.33333% - .66667em)}.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item{margin-right:1em;width:calc(25% - .75em)}.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item{margin-right:1em;width:calc(20% - .8em)}.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item{margin-right:1em;width:calc(16.66667% - .83333em)}.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item{margin-right:1em;width:calc(14.28571% - .85714em)}.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item{margin-right:1em;width:calc(12.5% - .875em)}.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n){margin-right:0}}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:last-child,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:last-child{margin-right:0}.blocks-gallery-grid:not(.has-nested-images).alignleft,.blocks-gallery-grid:not(.has-nested-images).alignright,.wp-block-gallery:not(.has-nested-images).alignleft,.wp-block-gallery:not(.has-nested-images).alignright{max-width:420px;width:100%}.blocks-gallery-grid:not(.has-nested-images).aligncenter .blocks-gallery-item figure,.wp-block-gallery:not(.has-nested-images).aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-gallery:not(.is-cropped) .blocks-gallery-item{align-self:flex-start}figure.wp-block-gallery.has-nested-images{align-items:normal}.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image){margin:0;width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)/2)}.wp-block-gallery.has-nested-images figure.wp-block-image{box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;max-width:100%;position:relative}.wp-block-gallery.has-nested-images figure.wp-block-image>a,.wp-block-gallery.has-nested-images figure.wp-block-image>div{flex-direction:column;flex-grow:1;margin:0}.wp-block-gallery.has-nested-images figure.wp-block-image img{display:block;height:auto;max-width:100%!important;width:auto}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{background:linear-gradient(0deg,#000000b3,#0000004d 70%,#0000);bottom:0;box-sizing:border-box;color:#fff;font-size:13px;left:0;margin-bottom:0;max-height:60%;overflow:auto;padding:0 8px 8px;position:absolute;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin;text-align:center;width:100%;will-change:transform}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar{height:12px;width:12px}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-track{background-color:initial}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover::-webkit-scrollbar-thumb{background-color:#fffc}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover{scrollbar-color:#fffc #0000}@media (hover:none){.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{scrollbar-color:#fffc #0000}}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption img{display:inline}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption a{color:inherit}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>a,.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>div,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>a,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>div{flex:1 1 auto}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border figcaption,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption{background:none;color:inherit;flex:initial;margin:0;padding:10px 10px 9px;position:relative}.wp-block-gallery.has-nested-images figcaption{flex-basis:100%;flex-grow:1;text-align:center}.wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image){margin-bottom:auto;margin-top:0}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image){align-self:inherit}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>div:not(.components-drop-zone){display:flex}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img{flex:1 0 0%;height:100%;object-fit:cover;width:100%}.wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image){width:100%}@media (min-width:600px){.wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image){width:calc(33.33333% - var(--wp--style--unstable-gallery-gap, 16px)*.66667)}.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image){width:calc(25% - var(--wp--style--unstable-gallery-gap, 16px)*.75)}.wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image){width:calc(20% - var(--wp--style--unstable-gallery-gap, 16px)*.8)}.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image){width:calc(16.66667% - var(--wp--style--unstable-gallery-gap, 16px)*.83333)}.wp-block-gallery.has-nested-images.columns-7 figure.wp-block-image:not(#individual-image){width:calc(14.28571% - var(--wp--style--unstable-gallery-gap, 16px)*.85714)}.wp-block-gallery.has-nested-images.columns-8 figure.wp-block-image:not(#individual-image){width:calc(12.5% - var(--wp--style--unstable-gallery-gap, 16px)*.875)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image){width:calc(33.33% - var(--wp--style--unstable-gallery-gap, 16px)*.66667)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2)~figure.wp-block-image:not(#individual-image){width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)*.5)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:last-child{width:100%}}.wp-block-gallery.has-nested-images.alignleft,.wp-block-gallery.has-nested-images.alignright{max-width:420px;width:100%}.wp-block-gallery.has-nested-images.aligncenter{justify-content:center}.wp-block-group{box-sizing:border-box}:where(.wp-block-group.wp-block-group-is-layout-constrained){position:relative}h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:1.25em 2.375em}h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h1.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h2.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h2.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h3.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h3.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h4.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h4.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h5.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h5.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h6.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]){rotate:180deg}.wp-block-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}.wp-block-image[style*=border-radius] img,.wp-block-image[style*=border-radius]>a{border-radius:inherit}.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{caption-side:bottom;display:table-caption}.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 :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-image.is-style-circle-mask img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-image.is-style-circle-mask img{border-radius:0;-webkit-mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-mode:alpha;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}}:root :where(.wp-block-image.is-style-rounded img,.wp-block-image .is-style-rounded img){border-radius:9999px}.wp-block-image figure{margin:0}.wp-lightbox-container{display:flex;flex-direction:column;position:relative}.wp-lightbox-container img{cursor:zoom-in}.wp-lightbox-container img:hover+button{opacity:1}.wp-lightbox-container button{align-items:center;-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background-color:#5a5a5a40;border:none;border-radius:4px;cursor:zoom-in;display:flex;height:20px;justify-content:center;opacity:0;padding:0;position:absolute;right:16px;text-align:center;top:16px;transition:opacity .2s ease;width:20px;z-index:100}.wp-lightbox-container button:focus-visible{outline:3px auto #5a5a5a40;outline:3px auto -webkit-focus-ring-color;outline-offset:3px}.wp-lightbox-container button:hover{cursor:pointer;opacity:1}.wp-lightbox-container button:focus{opacity:1}.wp-lightbox-container button:focus,.wp-lightbox-container button:hover,.wp-lightbox-container button:not(:hover):not(:active):not(.has-background){background-color:#5a5a5a40;border:none}.wp-lightbox-overlay{box-sizing:border-box;cursor:zoom-out;height:100vh;left:0;overflow:hidden;position:fixed;top:0;visibility:hidden;width:100%;z-index:100000}.wp-lightbox-overlay .close-button{align-items:center;cursor:pointer;display:flex;justify-content:center;min-height:40px;min-width:40px;padding:0;position:absolute;right:calc(env(safe-area-inset-right) + 16px);top:calc(env(safe-area-inset-top) + 16px);z-index:5000000}.wp-lightbox-overlay .close-button:focus,.wp-lightbox-overlay .close-button:hover,.wp-lightbox-overlay .close-button:not(:hover):not(:active):not(.has-background){background:none;border:none}.wp-lightbox-overlay .lightbox-image-container{height:var(--wp--lightbox-container-height);left:50%;overflow:hidden;position:absolute;top:50%;transform:translate(-50%,-50%);transform-origin:top left;width:var(--wp--lightbox-container-width);z-index:9999999999}.wp-lightbox-overlay .wp-block-image{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;margin:0;position:relative;transform-origin:0 0;width:100%;z-index:3000000}.wp-lightbox-overlay .wp-block-image img{height:var(--wp--lightbox-image-height);min-height:var(--wp--lightbox-image-height);min-width:var(--wp--lightbox-image-width);width:var(--wp--lightbox-image-width)}.wp-lightbox-overlay .wp-block-image figcaption{display:none}.wp-lightbox-overlay button{background:none;border:none}.wp-lightbox-overlay .scrim{background-color:#fff;height:100%;opacity:.9;position:absolute;width:100%;z-index:2000000}.wp-lightbox-overlay.active{animation:turn-on-visibility .25s both;visibility:visible}.wp-lightbox-overlay.active img{animation:turn-on-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active){animation:turn-off-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active) img{animation:turn-off-visibility .25s both}@media (prefers-reduced-motion:no-preference){.wp-lightbox-overlay.zoom.active{animation:none;opacity:1;visibility:visible}.wp-lightbox-overlay.zoom.active .lightbox-image-container{animation:lightbox-zoom-in .4s}.wp-lightbox-overlay.zoom.active .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.active .scrim{animation:turn-on-visibility .4s forwards}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active){animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container{animation:lightbox-zoom-out .4s}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .scrim{animation:turn-off-visibility .4s forwards}}@keyframes turn-on-visibility{0%{opacity:0}to{opacity:1}}@keyframes turn-off-visibility{0%{opacity:1;visibility:visible}99%{opacity:0;visibility:visible}to{opacity:0;visibility:hidden}}@keyframes lightbox-zoom-in{0%{transform:translate(calc((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position)),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale))}to{transform:translate(-50%,-50%) scale(1)}}@keyframes lightbox-zoom-out{0%{transform:translate(-50%,-50%) scale(1);visibility:visible}99%{visibility:visible}to{transform:translate(calc((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position)),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale));visibility:hidden}}ol.wp-block-latest-comments{box-sizing:border-box;margin-left:0}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment)){line-height:1.1}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment-excerpt p)){line-height:1.8}.has-dates :where(.wp-block-latest-comments:not([style*=line-height])),.has-excerpts :where(.wp-block-latest-comments:not([style*=line-height])){line-height:1.5}.wp-block-latest-comments .wp-block-latest-comments{padding-left:0}.wp-block-latest-comments__comment{list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{list-style:none;min-height:2.25em}.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:3.25em}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;width:2.5em}.wp-block-latest-comments[class*=-font-size] a,.wp-block-latest-comments[style*=font-size] a{font-size:inherit}.wp-block-latest-posts{box-sizing:border-box}.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;overflow-wrap:break-word}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap}.wp-block-latest-posts.is-grid li{margin:0 1.25em 1.25em 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-right:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-right:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-right:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-right:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-right:0}}:root :where(.wp-block-latest-posts.is-grid){padding:0}:root :where(.wp-block-latest-posts.wp-block-latest-posts__list){padding-left:0}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-bottom:1em;margin-top:.5em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;max-width:100%;width:auto}.wp-block-latest-posts__featured-image.alignleft{float:left;margin-right:1em}.wp-block-latest-posts__featured-image.alignright{float:right;margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}ol,ul{box-sizing:border-box}:root :where(ul.has-background,ol.has-background){padding:1.25em 2.375em}.wp-block-media-text{box-sizing:border-box;
/*!rtl:begin:ignore*/direction:ltr;
- /*!rtl:end:ignore*/display:grid;grid-template-columns:50% 1fr;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{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{align-self:start}.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media,.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{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{align-self:end}.wp-block-media-text .wp-block-media-text__media{
+ /*!rtl:end:ignore*/display:grid;grid-template-columns:50% 1fr;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{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{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{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{align-self:end}.wp-block-media-text>.wp-block-media-text__media{
/*!rtl:begin:ignore*/grid-column:1;grid-row:1;
- /*!rtl:end:ignore*/margin:0}.wp-block-media-text .wp-block-media-text__content{direction:ltr;
+ /*!rtl:end:ignore*/margin:0}.wp-block-media-text>.wp-block-media-text__content{direction:ltr;
/*!rtl:begin:ignore*/grid-column:2;grid-row:1;
- /*!rtl:end:ignore*/padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media{
+ /*!rtl:end:ignore*/padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{
/*!rtl:begin:ignore*/grid-column:2;grid-row:1
- /*!rtl:end:ignore*/}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{
+ /*!rtl:end:ignore*/}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{
/*!rtl:begin:ignore*/grid-column:1;grid-row:1
- /*!rtl:end:ignore*/}.wp-block-media-text__media img,.wp-block-media-text__media video{height:auto;max-width:unset;vertical-align:middle;width:100%}.wp-block-media-text.is-image-fill .wp-block-media-text__media{background-size:cover;height:100%;min-height:250px}.wp-block-media-text.is-image-fill .wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill .wp-block-media-text__media img{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{grid-column:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{grid-column:1;grid-row:2}}.wp-block-navigation{position:relative;--navigation-layout-justification-setting:flex-start;--navigation-layout-direction:row;--navigation-layout-wrap:wrap;--navigation-layout-justify:flex-start;--navigation-layout-align:center}.wp-block-navigation ul{margin-bottom:0;margin-left:0;margin-top:0;padding-left:0}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none;padding:0}.wp-block-navigation .wp-block-navigation-item{align-items:center;display:flex;position:relative}.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container:empty{display:none}.wp-block-navigation .wp-block-navigation-item__content{display:block}.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{color:inherit}.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:focus{text-decoration:underline}.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{text-decoration:line-through}.wp-block-navigation:where(:not([class*=has-text-decoration])) a{text-decoration:none}.wp-block-navigation:where(:not([class*=has-text-decoration])) a:active,.wp-block-navigation:where(:not([class*=has-text-decoration])) a:focus{text-decoration:none}.wp-block-navigation .wp-block-navigation__submenu-icon{align-self:center;background-color:inherit;border:none;color:currentColor;display:inline-block;font-size:inherit;height:.6em;line-height:0;margin-left:.25em;padding:0;width:.6em}.wp-block-navigation .wp-block-navigation__submenu-icon svg{display:inline-block;stroke:currentColor;height:inherit;margin-top:.075em;width:inherit}.wp-block-navigation.is-vertical{--navigation-layout-direction:column;--navigation-layout-justify:initial;--navigation-layout-align:flex-start}.wp-block-navigation.no-wrap{--navigation-layout-wrap:nowrap}.wp-block-navigation.items-justified-center{--navigation-layout-justification-setting:center;--navigation-layout-justify:center}.wp-block-navigation.items-justified-center.is-vertical{--navigation-layout-align:center}.wp-block-navigation.items-justified-right{--navigation-layout-justification-setting:flex-end;--navigation-layout-justify:flex-end}.wp-block-navigation.items-justified-right.is-vertical{--navigation-layout-align:flex-end}.wp-block-navigation.items-justified-space-between{--navigation-layout-justification-setting:space-between;--navigation-layout-justify:space-between}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{align-items:normal;background-color:inherit;color:inherit;display:flex;flex-direction:column;height:0;left:-1px;opacity:0;overflow:hidden;position:absolute;top:100%;transition:opacity .1s linear;visibility:hidden;width:0;z-index:2}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content{display:flex;flex-grow:1}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content .wp-block-navigation__submenu-icon{margin-left:auto;margin-right:0}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content{margin:0}@media (min-width:782px){.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:-1px}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:#0000;content:"";display:block;height:100%;position:absolute;right:100%;width:.5em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon{margin-right:.25em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon svg{transform:rotate(-90deg)}}.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;overflow:visible;visibility:visible;width:auto}.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container{left:0;top:100%}@media (min-width:782px){.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:0}}.wp-block-navigation-submenu{display:flex;position:relative}.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg{stroke:currentColor}button.wp-block-navigation-item__content{background-color:initial;border:none;color:currentColor;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;text-align:left;text-transform:inherit}.wp-block-navigation-submenu__toggle{cursor:pointer}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle{padding-left:0;padding-right:.85em}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle+.wp-block-navigation__submenu-icon{margin-left:-.6em;pointer-events:none}.wp-block-navigation-item.open-on-click button.wp-block-navigation-item__content:not(.wp-block-navigation-submenu__toggle){padding:0}.wp-block-navigation .wp-block-page-list,.wp-block-navigation__container,.wp-block-navigation__responsive-close,.wp-block-navigation__responsive-container,.wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-dialog{gap:inherit}:where(.wp-block-navigation.has-background .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation.has-background .wp-block-navigation-submenu a:not(.wp-element-button)){padding:.5em 1em}:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu button.wp-block-navigation-item__content),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-pages-list__item button.wp-block-navigation-item__content){padding:.5em 1em}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container{left:auto;right:0}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:-1px;right:-1px}@media (min-width:782px){.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:auto;right:100%}}.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container{background-color:#fff;border:1px solid #00000026}.wp-block-navigation.has-background .wp-block-navigation__submenu-container{background-color:inherit}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container{color:#000}.wp-block-navigation__container{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial);list-style:none;margin:0;padding-left:0}.wp-block-navigation__container .is-responsive{display:none}.wp-block-navigation__container:only-child,.wp-block-page-list:only-child{flex-grow:1}@keyframes overlay-menu__fade-in-animation{0%{opacity:0;transform:translateY(.5em)}to{opacity:1;transform:translateY(0)}}.wp-block-navigation__responsive-container{bottom:0;display:none;left:0;position:fixed;right:0;top:0}.wp-block-navigation__responsive-container :where(.wp-block-navigation-item a){color:inherit}.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open){background-color:inherit!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open{animation:overlay-menu__fade-in-animation .1s ease-out;animation-fill-mode:forwards;background-color:inherit;display:flex;flex-direction:column;overflow:auto;padding:clamp(1rem,var(--wp--style--root--padding-top),20rem) clamp(1rem,var(--wp--style--root--padding-right),20rem) clamp(1rem,var(--wp--style--root--padding-bottom),20rem) clamp(1rem,var(--wp--style--root--padding-left),20em);z-index:100000}@media (prefers-reduced-motion:reduce){.wp-block-navigation__responsive-container.is-menu-open{animation-delay:0s;animation-duration:1ms}}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-justification-setting,inherit);display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible;padding-top:calc(2rem + 24px)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list{justify-content:flex-start}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container{border:none;height:auto;min-width:200px;opacity:1;overflow:initial;padding-left:2rem;padding-right:2rem;position:static;visibility:visible;width:auto}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{gap:inherit}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{padding-top:var(--wp--style--block-gap,2em)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content{padding:0}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list{align-items:var(--navigation-layout-justification-setting,initial);display:flex;flex-direction:column}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list{background:#0000!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:auto;right:auto}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){background-color:inherit;display:block;position:relative;width:100%;z-index:auto}.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:0}}.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open{background-color:#fff}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open{color:#000}.wp-block-navigation__toggle_button_label{font-size:1rem;font-weight:700}.wp-block-navigation__responsive-container-close,.wp-block-navigation__responsive-container-open{background:#0000;border:none;color:currentColor;cursor:pointer;margin:0;padding:0;text-transform:inherit;vertical-align:middle}.wp-block-navigation__responsive-container-close svg,.wp-block-navigation__responsive-container-open svg{fill:currentColor;display:block;height:24px;pointer-events:none;width:24px}.wp-block-navigation__responsive-container-open{display:flex}.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{font-family:inherit;font-size:inherit;font-weight:inherit}@media (min-width:600px){.wp-block-navigation__responsive-container-open:not(.always-shown){display:none}}.wp-block-navigation__responsive-container-close{position:absolute;right:0;top:0;z-index:2}.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close{font-family:inherit;font-size:inherit;font-weight:inherit}.wp-block-navigation__responsive-close{width:100%}.has-modal-open .wp-block-navigation__responsive-close{margin-left:auto;margin-right:auto;max-width:var(--wp--style--global--wide-size,100%)}.wp-block-navigation__responsive-close:focus{outline:none}.is-menu-open .wp-block-navigation__responsive-close,.is-menu-open .wp-block-navigation__responsive-container-content,.is-menu-open .wp-block-navigation__responsive-dialog{box-sizing:border-box}.wp-block-navigation__responsive-dialog{position:relative}.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:46px}@media (min-width:782px){.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:32px}}html.has-modal-open{overflow:hidden}.wp-block-navigation .wp-block-navigation-item__label{overflow-wrap:break-word}.wp-block-navigation .wp-block-navigation-item__description{display:none}.link-ui-tools{border-top:1px solid #f0f0f0;padding:8px}.link-ui-block-inserter{padding-top:8px}.link-ui-block-inserter__back{margin-left:8px;text-transform:uppercase}.components-popover-pointer-events-trap{background-color:initial;cursor:pointer;inset:0;position:fixed;z-index:1000000}.wp-block-navigation .wp-block-page-list{align-items:var(--navigation-layout-align,initial);background-color:inherit;display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation .wp-block-navigation-item{background-color:inherit}.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;font-style:normal;font-weight:100;line-height:.68;margin:.05em .1em 0 0;text-transform:uppercase}body.rtl .has-drop-cap:not(:focus):first-letter{float:none;margin-left:.1em}p.has-drop-cap.has-background{overflow:hidden}p.has-background{padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{rotate:180deg}.wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author__byline{font-size:.5em;margin-bottom:0;margin-top:0;width:100%}.wp-block-post-author__avatar{margin-right:1em}.wp-block-post-author__bio{font-size:.7em;margin-bottom:.7em}.wp-block-post-author__content{flex-basis:0;flex-grow:1}.wp-block-post-author__name{margin:0}.wp-block-post-comments-form{box-sizing:border-box}.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title){font-weight:inherit}.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title){font-family:inherit}.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title),.wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title){font-size:inherit}.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title){line-height:inherit}.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title){font-style:inherit}.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title){letter-spacing:inherit}.wp-block-post-comments-form input[type=submit]{box-shadow:none;cursor:pointer;display:inline-block;overflow-wrap:break-word;text-align:center}.wp-block-post-comments-form input:not([type=submit]),.wp-block-post-comments-form textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments-form textarea{padding:calc(.667em + 2px)}.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments-form .comment-form-author label,.wp-block-post-comments-form .comment-form-email label,.wp-block-post-comments-form .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments-form .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments-form .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments-form .comment-reply-title{margin-bottom:0}.wp-block-post-comments-form .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-left:.5em}.wp-block-post-date{box-sizing:border-box}:where(.wp-block-post-excerpt){margin-bottom:var(--wp--style--block-gap);margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__excerpt{margin-bottom:0;margin-top:0}.wp-block-post-excerpt__more-text{margin-bottom:0;margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__more-link{display:inline-block}.wp-block-post-featured-image{margin-left:0;margin-right:0}.wp-block-post-featured-image a{display:block;height:100%}.wp-block-post-featured-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom;width:100%}.wp-block-post-featured-image.alignfull img,.wp-block-post-featured-image.alignwide img{width:100%}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim{background-color:#000;inset:0;position:absolute}.wp-block-post-featured-image{position:relative}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-gradient{background-color:initial}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-0{opacity:0}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-10{opacity:.1}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-20{opacity:.2}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-30{opacity:.3}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-40{opacity:.4}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-50{opacity:.5}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-60{opacity:.6}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-70{opacity:.7}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-80{opacity:.8}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-90{opacity:.9}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-100{opacity:1}.wp-block-post-featured-image:where(.alignleft,.alignright){width:100%}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous{display:inline-block;margin-right:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next{display:inline-block;margin-left:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-post-navigation-link.has-text-align-left[style*="writing-mode: vertical-lr"],.wp-block-post-navigation-link.has-text-align-right[style*="writing-mode: vertical-rl"]{rotate:180deg}.wp-block-post-terms{box-sizing:border-box}.wp-block-post-terms .wp-block-post-terms__separator{white-space:pre-wrap}.wp-block-post-time-to-read,.wp-block-post-title{box-sizing:border-box}.wp-block-post-title{word-break:break-word}.wp-block-post-title a{display:inline-block}.wp-block-preformatted{box-sizing:border-box;white-space:pre-wrap}:where(.wp-block-preformatted.has-background){padding:1.25em 2.375em}.wp-block-pullquote{box-sizing:border-box;overflow-wrap:break-word;padding:4em 0;text-align:center}.wp-block-pullquote blockquote,.wp-block-pullquote cite,.wp-block-pullquote p{color:inherit}.wp-block-pullquote blockquote{margin:0}.wp-block-pullquote p{margin-top:0}.wp-block-pullquote p:last-child{margin-bottom:0}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:420px}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}:where(.wp-block-pullquote){margin:0 0 1em}.wp-block-pullquote.has-text-align-left blockquote{text-align:left}.wp-block-pullquote.has-text-align-right blockquote{text-align:right}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:2em;margin-bottom:0;margin-top:0}.wp-block-pullquote.is-style-solid-color blockquote cite{font-style:normal;text-transform:none}.wp-block-pullquote cite{color:inherit}.wp-block-post-template{list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}.wp-block-post-template.wp-block-post-template{background:none}.wp-block-post-template.is-flex-container{display:flex;flex-direction:row;flex-wrap:wrap;gap:1.25em}.wp-block-post-template.is-flex-container>li{margin:0;width:100%}@media (min-width:600px){.wp-block-post-template.is-flex-container.is-flex-container.columns-2>li{width:calc(50% - .625em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-3>li{width:calc(33.33333% - .83333em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-4>li{width:calc(25% - .9375em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-5>li{width:calc(20% - 1em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-6>li{width:calc(16.66667% - 1.04167em)}}@media (max-width:600px){.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid{grid-template-columns:1fr}}.wp-block-post-template-is-layout-constrained>li>.alignright,.wp-block-post-template-is-layout-flow>li>.alignright{float:right;margin-inline-end:0;margin-inline-start:2em}.wp-block-post-template-is-layout-constrained>li>.alignleft,.wp-block-post-template-is-layout-flow>li>.alignleft{float:left;margin-inline-end:2em;margin-inline-start:0}.wp-block-post-template-is-layout-constrained>li>.aligncenter,.wp-block-post-template-is-layout-flow>li>.aligncenter{margin-inline-end:auto;margin-inline-start:auto}.wp-block-query-pagination>.wp-block-query-pagination-next,.wp-block-query-pagination>.wp-block-query-pagination-numbers,.wp-block-query-pagination>.wp-block-query-pagination-previous{margin-bottom:.5em;margin-right:.5em}.wp-block-query-pagination>.wp-block-query-pagination-next:last-child,.wp-block-query-pagination>.wp-block-query-pagination-numbers:last-child,.wp-block-query-pagination>.wp-block-query-pagination-previous:last-child{margin-right:0}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-next:last-of-type{margin-inline-start:auto}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-previous:first-child{margin-inline-end:auto}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow{display:inline-block;margin-right:1ch}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-query-pagination .wp-block-query-pagination-next-arrow{display:inline-block;margin-left:1ch}.wp-block-query-pagination .wp-block-query-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-query-pagination.aligncenter{justify-content:center}.wp-block-query-title,.wp-block-quote{box-sizing:border-box}.wp-block-quote{overflow-wrap:break-word}.wp-block-quote.is-large:where(:not(.is-style-plain)),.wp-block-quote.is-style-large:where(:not(.is-style-plain)){margin-bottom:1em;padding:0 1em}.wp-block-quote.is-large:where(:not(.is-style-plain)) p,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) p{font-size:1.5em;font-style:italic;line-height:1.6}.wp-block-quote.is-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-large:where(:not(.is-style-plain)) footer,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) footer{font-size:1.125em;text-align:right}.wp-block-quote>cite{display:block}.wp-block-read-more{display:block;width:-moz-fit-content;width:fit-content}.wp-block-read-more:where(:not([style*=text-decoration])){text-decoration:none}.wp-block-read-more:where(:not([style*=text-decoration])):active,.wp-block-read-more:where(:not([style*=text-decoration])):focus{text-decoration:none}ul.wp-block-rss{list-style:none;padding:0}ul.wp-block-rss.wp-block-rss{box-sizing:border-box}ul.wp-block-rss.alignleft{margin-right:2em}ul.wp-block-rss.alignright{margin-left:2em}ul.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;list-style:none;padding:0}ul.wp-block-rss.is-grid li{margin:0 1em 1em 0;width:100%}@media (min-width:600px){ul.wp-block-rss.columns-2 li{width:calc(50% - 1em)}ul.wp-block-rss.columns-3 li{width:calc(33.33333% - 1em)}ul.wp-block-rss.columns-4 li{width:calc(25% - 1em)}ul.wp-block-rss.columns-5 li{width:calc(20% - 1em)}ul.wp-block-rss.columns-6 li{width:calc(16.66667% - 1em)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;font-size:.8125em}.wp-block-search__button{margin-left:10px;word-break:normal}.wp-block-search__button.has-icon{line-height:0}.wp-block-search__button svg{height:1.25em;min-height:24px;min-width:24px;width:1.25em;fill:currentColor;vertical-align:text-bottom}:where(.wp-block-search__button){border:1px solid #ccc;padding:6px 10px}.wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search__label{width:100%}.wp-block-search__input{-webkit-appearance:initial;appearance:none;border:1px solid #949494;flex-grow:1;margin-left:0;margin-right:0;min-width:3rem;padding:8px;text-decoration:unset!important}.wp-block-search.wp-block-search__button-only .wp-block-search__button{flex-shrink:0;margin-left:0;max-width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__button[aria-expanded=true]{max-width:calc(100% - 100px)}.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{min-width:0!important;transition-property:width}.wp-block-search.wp-block-search__button-only .wp-block-search__input{flex-basis:100%;transition-duration:.3s}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden,.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{overflow:hidden}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__input{border-left-width:0!important;border-right-width:0!important;flex-basis:0;flex-grow:0;margin:0;min-width:0!important;padding-left:0!important;padding-right:0!important;width:0!important}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){border:1px solid #949494;box-sizing:border-box;padding:4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input{border:none;border-radius:0;padding:0 4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus{outline:none}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button){padding:4px 8px}.wp-block-search.aligncenter .wp-block-search__inside-wrapper{margin:auto}.wp-block[data-align=right] .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{float:right}.wp-block-separator{border:none;border-top:2px solid}.wp-block-separator.is-style-dots{background:none!important;border:none;height:auto;line-height:1;text-align:center}.wp-block-separator.is-style-dots:before{color:currentColor;content:"···";font-family:serif;font-size:1.5em;letter-spacing:2em;padding-left:2em}.wp-block-site-logo{box-sizing:border-box;line-height:0}.wp-block-site-logo a{display:inline-block;line-height:0}.wp-block-site-logo.is-default-size img{height:auto;width:120px}.wp-block-site-logo img{height:auto;max-width:100%}.wp-block-site-logo a,.wp-block-site-logo img{border-radius:inherit}.wp-block-site-logo.aligncenter{margin-left:auto;margin-right:auto;text-align:center}.wp-block-site-logo.is-style-rounded{border-radius:9999px}.wp-block-site-title a{color:inherit}.wp-block-social-links{background:none;box-sizing:border-box;margin-left:0;padding-left:0;padding-right:0;text-indent:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{border-bottom:0;box-shadow:none;text-decoration:none}.wp-block-social-links .wp-social-link a{padding:.25em}.wp-block-social-links .wp-social-link svg{height:1em;width:1em}.wp-block-social-links .wp-social-link span:not(.screen-reader-text){font-size:.65em;margin-left:.5em;margin-right:.5em}.wp-block-social-links.has-small-icon-size{font-size:16px}.wp-block-social-links,.wp-block-social-links.has-normal-icon-size{font-size:24px}.wp-block-social-links.has-large-icon-size{font-size:36px}.wp-block-social-links.has-huge-icon-size{font-size:48px}.wp-block-social-links.aligncenter{display:flex;justify-content:center}.wp-block-social-links.alignright{justify-content:flex-end}.wp-block-social-link{border-radius:9999px;display:block;height:auto;transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.wp-block-social-link{transition-delay:0s;transition-duration:0s}}.wp-block-social-link a{align-items:center;display:flex;line-height:0;transition:transform .1s ease}.wp-block-social-link:hover{transform:scale(1.1)}.wp-block-social-links .wp-block-social-link.wp-social-link{display:inline-block;margin:0;padding:0}.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:active,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:visited{color:currentColor;fill:currentColor}.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-gravatar{background-color:#1d4fc4;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-patreon{background-color:#000;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:#ff4500;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-telegram{background-color:#2aabee;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-threads,.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tiktok{background-color:#000;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-whatsapp{background-color:#25d366;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-x{background-color:#000;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}.wp-block-social-links.is-style-logos-only .wp-social-link a{padding:0}.wp-block-social-links.is-style-logos-only .wp-social-link svg{height:1.25em;width:1.25em}.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-gravatar{color:#1d4fc4}.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-patreon{color:#000}.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:#ff4500}.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-telegram{color:#2aabee}.wp-block-social-links.is-style-logos-only .wp-social-link-threads,.wp-block-social-links.is-style-logos-only .wp-social-link-tiktok{color:#000}.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-whatsapp{color:#25d366}.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-x{color:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-yelp{color:#d32422}.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:.66667em;padding-right:.66667em}.wp-block-social-links:not(.has-icon-color):not(.has-icon-background-color) .wp-social-link-snapchat .wp-block-social-link-label{color:#000}.wp-block-spacer{clear:both}.wp-block-tag-cloud{box-sizing:border-box}.wp-block-tag-cloud.aligncenter{justify-content:center;text-align:center}.wp-block-tag-cloud.alignfull{padding-left:1em;padding-right:1em}.wp-block-tag-cloud a{display:inline-block;margin-right:5px}.wp-block-tag-cloud span{display:inline-block;margin-left:5px;text-decoration:none}.wp-block-tag-cloud.is-style-outline{display:flex;flex-wrap:wrap;gap:1ch}.wp-block-tag-cloud.is-style-outline a{border:1px solid;font-size:unset!important;margin-right:0;padding:1ch 2ch;text-decoration:none!important}.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.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{background-color:initial;border-bottom:1px solid #f0f0f0;border-collapse:inherit;border-spacing:0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.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:#0000}.wp-block-table .has-border-color td,.wp-block-table .has-border-color th,.wp-block-table .has-border-color tr,.wp-block-table .has-border-color>*{border-color:inherit}.wp-block-table table[style*=border-top-color] tr:first-child,.wp-block-table table[style*=border-top-color] tr:first-child td,.wp-block-table table[style*=border-top-color] tr:first-child th,.wp-block-table table[style*=border-top-color]>*,.wp-block-table table[style*=border-top-color]>* td,.wp-block-table table[style*=border-top-color]>* th{border-top-color:inherit}.wp-block-table table[style*=border-top-color] tr:not(:first-child){border-top-color:initial}.wp-block-table table[style*=border-right-color] td:last-child,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] tr,.wp-block-table table[style*=border-right-color]>*{border-right-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:last-child,.wp-block-table table[style*=border-bottom-color] tr:last-child td,.wp-block-table table[style*=border-bottom-color] tr:last-child th,.wp-block-table table[style*=border-bottom-color]>*,.wp-block-table table[style*=border-bottom-color]>* td,.wp-block-table table[style*=border-bottom-color]>* th{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){border-bottom-color:initial}.wp-block-table table[style*=border-left-color] td:first-child,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] tr,.wp-block-table table[style*=border-left-color]>*{border-left-color:inherit}.wp-block-table table[style*=border-style] td,.wp-block-table table[style*=border-style] th,.wp-block-table table[style*=border-style] tr,.wp-block-table table[style*=border-style]>*{border-style:inherit}.wp-block-table table[style*=border-width] td,.wp-block-table table[style*=border-width] th,.wp-block-table table[style*=border-width] tr,.wp-block-table table[style*=border-width]>*{border-style:inherit;border-width:inherit}:where(.wp-block-term-description){margin-bottom:var(--wp--style--block-gap);margin-top:var(--wp--style--block-gap)}.wp-block-term-description p{margin-bottom:0;margin-top:0}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 1em;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%}pre.wp-block-verse{overflow:auto;white-space:pre-wrap}:where(pre.wp-block-verse){font-family:inherit}.wp-block-video{box-sizing:border-box}.wp-block-video video{vertical-align:middle;width:100%}@supports (position:sticky){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-bottom:1em;margin-top:.5em}.editor-styles-wrapper,.entry-content{counter-reset:footnotes}a[data-fn].fn{counter-increment:footnotes;display:inline-flex;font-size:smaller;text-decoration:none;text-indent:-9999999px;vertical-align:super}a[data-fn].fn:after{content:"[" counter(footnotes) "]";float:left;text-indent:0}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}: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-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.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}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{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}.screen-reader-text:focus{background-color:#ddd;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}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}} \ No newline at end of file
+ /*!rtl:end:ignore*/}.wp-block-media-text__media img,.wp-block-media-text__media video{height:auto;max-width:unset;vertical-align:middle;width:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media{background-size:cover;height:100%;min-height:250px}.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{grid-column:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{grid-column:1;grid-row:2}}.wp-block-navigation{position:relative;--navigation-layout-justification-setting:flex-start;--navigation-layout-direction:row;--navigation-layout-wrap:wrap;--navigation-layout-justify:flex-start;--navigation-layout-align:center}.wp-block-navigation ul{margin-bottom:0;margin-left:0;margin-top:0;padding-left:0}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none;padding:0}.wp-block-navigation .wp-block-navigation-item{align-items:center;display:flex;position:relative}.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container:empty{display:none}.wp-block-navigation .wp-block-navigation-item__content{display:block}.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{color:inherit}.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:focus{text-decoration:underline}.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{text-decoration:line-through}.wp-block-navigation :where(a),.wp-block-navigation :where(a:active),.wp-block-navigation :where(a:focus){text-decoration:none}.wp-block-navigation .wp-block-navigation__submenu-icon{align-self:center;background-color:inherit;border:none;color:currentColor;display:inline-block;font-size:inherit;height:.6em;line-height:0;margin-left:.25em;padding:0;width:.6em}.wp-block-navigation .wp-block-navigation__submenu-icon svg{display:inline-block;stroke:currentColor;height:inherit;margin-top:.075em;width:inherit}.wp-block-navigation.is-vertical{--navigation-layout-direction:column;--navigation-layout-justify:initial;--navigation-layout-align:flex-start}.wp-block-navigation.no-wrap{--navigation-layout-wrap:nowrap}.wp-block-navigation.items-justified-center{--navigation-layout-justification-setting:center;--navigation-layout-justify:center}.wp-block-navigation.items-justified-center.is-vertical{--navigation-layout-align:center}.wp-block-navigation.items-justified-right{--navigation-layout-justification-setting:flex-end;--navigation-layout-justify:flex-end}.wp-block-navigation.items-justified-right.is-vertical{--navigation-layout-align:flex-end}.wp-block-navigation.items-justified-space-between{--navigation-layout-justification-setting:space-between;--navigation-layout-justify:space-between}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{align-items:normal;background-color:inherit;color:inherit;display:flex;flex-direction:column;height:0;left:-1px;opacity:0;overflow:hidden;position:absolute;top:100%;transition:opacity .1s linear;visibility:hidden;width:0;z-index:2}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content{display:flex;flex-grow:1}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content .wp-block-navigation__submenu-icon{margin-left:auto;margin-right:0}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content{margin:0}@media (min-width:782px){.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:-1px}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:#0000;content:"";display:block;height:100%;position:absolute;right:100%;width:.5em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon{margin-right:.25em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon svg{transform:rotate(-90deg)}}.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;overflow:visible;visibility:visible;width:auto}.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container{left:0;top:100%}@media (min-width:782px){.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:0}}.wp-block-navigation-submenu{display:flex;position:relative}.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg{stroke:currentColor}button.wp-block-navigation-item__content{background-color:initial;border:none;color:currentColor;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-align:left;text-transform:inherit}.wp-block-navigation-submenu__toggle{cursor:pointer}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle{padding-left:0;padding-right:.85em}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle+.wp-block-navigation__submenu-icon{margin-left:-.6em;pointer-events:none}.wp-block-navigation-item.open-on-click button.wp-block-navigation-item__content:not(.wp-block-navigation-submenu__toggle){padding:0}.wp-block-navigation .wp-block-page-list,.wp-block-navigation__container,.wp-block-navigation__responsive-close,.wp-block-navigation__responsive-container,.wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-dialog{gap:inherit}:where(.wp-block-navigation.has-background .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation.has-background .wp-block-navigation-submenu a:not(.wp-element-button)){padding:.5em 1em}:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu button.wp-block-navigation-item__content),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-pages-list__item button.wp-block-navigation-item__content){padding:.5em 1em}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container{left:auto;right:0}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:-1px;right:-1px}@media (min-width:782px){.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:auto;right:100%}}.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container{background-color:#fff;border:1px solid #00000026}.wp-block-navigation.has-background .wp-block-navigation__submenu-container{background-color:inherit}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container{color:#000}.wp-block-navigation__container{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial);list-style:none;margin:0;padding-left:0}.wp-block-navigation__container .is-responsive{display:none}.wp-block-navigation__container:only-child,.wp-block-page-list:only-child{flex-grow:1}@keyframes overlay-menu__fade-in-animation{0%{opacity:0;transform:translateY(.5em)}to{opacity:1;transform:translateY(0)}}.wp-block-navigation__responsive-container{bottom:0;display:none;left:0;position:fixed;right:0;top:0}.wp-block-navigation__responsive-container :where(.wp-block-navigation-item a){color:inherit}.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open){background-color:inherit!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open{animation:overlay-menu__fade-in-animation .1s ease-out;animation-fill-mode:forwards;background-color:inherit;display:flex;flex-direction:column;overflow:auto;padding:clamp(1rem,var(--wp--style--root--padding-top),20rem) clamp(1rem,var(--wp--style--root--padding-right),20rem) clamp(1rem,var(--wp--style--root--padding-bottom),20rem) clamp(1rem,var(--wp--style--root--padding-left),20em);z-index:100000}@media (prefers-reduced-motion:reduce){.wp-block-navigation__responsive-container.is-menu-open{animation-delay:0s;animation-duration:1ms}}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-justification-setting,inherit);display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible;padding-top:calc(2rem + 24px)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list{justify-content:flex-start}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container{border:none;height:auto;min-width:200px;opacity:1;overflow:initial;padding-left:2rem;padding-right:2rem;position:static;visibility:visible;width:auto}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{gap:inherit}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{padding-top:var(--wp--style--block-gap,2em)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content{padding:0}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list{align-items:var(--navigation-layout-justification-setting,initial);display:flex;flex-direction:column}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list{background:#0000!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:auto;right:auto}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){background-color:inherit;display:block;position:relative;width:100%;z-index:auto}.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:0}}.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open{background-color:#fff}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open{color:#000}.wp-block-navigation__toggle_button_label{font-size:1rem;font-weight:700}.wp-block-navigation__responsive-container-close,.wp-block-navigation__responsive-container-open{background:#0000;border:none;color:currentColor;cursor:pointer;margin:0;padding:0;text-transform:inherit;vertical-align:middle}.wp-block-navigation__responsive-container-close svg,.wp-block-navigation__responsive-container-open svg{fill:currentColor;display:block;height:24px;pointer-events:none;width:24px}.wp-block-navigation__responsive-container-open{display:flex}.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{font-family:inherit;font-size:inherit;font-weight:inherit}@media (min-width:600px){.wp-block-navigation__responsive-container-open:not(.always-shown){display:none}}.wp-block-navigation__responsive-container-close{position:absolute;right:0;top:0;z-index:2}.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close{font-family:inherit;font-size:inherit;font-weight:inherit}.wp-block-navigation__responsive-close{width:100%}.has-modal-open .wp-block-navigation__responsive-close{margin-left:auto;margin-right:auto;max-width:var(--wp--style--global--wide-size,100%)}.wp-block-navigation__responsive-close:focus{outline:none}.is-menu-open .wp-block-navigation__responsive-close,.is-menu-open .wp-block-navigation__responsive-container-content,.is-menu-open .wp-block-navigation__responsive-dialog{box-sizing:border-box}.wp-block-navigation__responsive-dialog{position:relative}.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:46px}@media (min-width:782px){.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:32px}}html.has-modal-open{overflow:hidden}.wp-block-navigation .wp-block-navigation-item__label{overflow-wrap:break-word}.wp-block-navigation .wp-block-navigation-item__description{display:none}.link-ui-tools{border-top:1px solid #f0f0f0;padding:8px}.link-ui-block-inserter{padding-top:8px}.link-ui-block-inserter__back{margin-left:8px;text-transform:uppercase}.wp-block-navigation .wp-block-page-list{align-items:var(--navigation-layout-align,initial);background-color:inherit;display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation .wp-block-navigation-item{background-color:inherit}.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;font-style:normal;font-weight:100;line-height:.68;margin:.05em .1em 0 0;text-transform:uppercase}body.rtl .has-drop-cap:not(:focus):first-letter{float:none;margin-left:.1em}p.has-drop-cap.has-background{overflow:hidden}:root :where(p.has-background){padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{rotate:180deg}.wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author__byline{font-size:.5em;margin-bottom:0;margin-top:0;width:100%}.wp-block-post-author__avatar{margin-right:1em}.wp-block-post-author__bio{font-size:.7em;margin-bottom:.7em}.wp-block-post-author__content{flex-basis:0;flex-grow:1}.wp-block-post-author__name{margin:0}:where(.wp-block-post-comments-form) input:not([type=submit]),:where(.wp-block-post-comments-form) textarea{border:1px solid #949494;font-family:inherit;font-size:1em}:where(.wp-block-post-comments-form) input:where(:not([type=submit]):not([type=checkbox])),:where(.wp-block-post-comments-form) textarea{padding:calc(.667em + 2px)}.wp-block-post-comments-form{box-sizing:border-box}.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title){font-weight:inherit}.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title){font-family:inherit}.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title),.wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title){font-size:inherit}.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title){line-height:inherit}.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title){font-style:inherit}.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title){letter-spacing:inherit}.wp-block-post-comments-form input[type=submit]{box-shadow:none;cursor:pointer;display:inline-block;overflow-wrap:break-word;text-align:center}.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments-form .comment-form-author label,.wp-block-post-comments-form .comment-form-email label,.wp-block-post-comments-form .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments-form .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments-form .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments-form .comment-reply-title{margin-bottom:0}.wp-block-post-comments-form .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-left:.5em}.wp-block-post-date{box-sizing:border-box}:where(.wp-block-post-excerpt){margin-bottom:var(--wp--style--block-gap);margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__excerpt{margin-bottom:0;margin-top:0}.wp-block-post-excerpt__more-text{margin-bottom:0;margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__more-link{display:inline-block}.wp-block-post-featured-image{margin-left:0;margin-right:0}.wp-block-post-featured-image a{display:block;height:100%}.wp-block-post-featured-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom;width:100%}.wp-block-post-featured-image.alignfull img,.wp-block-post-featured-image.alignwide img{width:100%}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim{background-color:#000;inset:0;position:absolute}.wp-block-post-featured-image{position:relative}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-gradient{background-color:initial}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-0{opacity:0}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-10{opacity:.1}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-20{opacity:.2}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-30{opacity:.3}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-40{opacity:.4}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-50{opacity:.5}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-60{opacity:.6}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-70{opacity:.7}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-80{opacity:.8}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-90{opacity:.9}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-100{opacity:1}.wp-block-post-featured-image:where(.alignleft,.alignright){width:100%}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous{display:inline-block;margin-right:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next{display:inline-block;margin-left:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-post-navigation-link.has-text-align-left[style*="writing-mode: vertical-lr"],.wp-block-post-navigation-link.has-text-align-right[style*="writing-mode: vertical-rl"]{rotate:180deg}.wp-block-post-terms{box-sizing:border-box}.wp-block-post-terms .wp-block-post-terms__separator{white-space:pre-wrap}.wp-block-post-time-to-read,.wp-block-post-title{box-sizing:border-box}.wp-block-post-title{word-break:break-word}.wp-block-post-title a{display:inline-block}.wp-block-preformatted{box-sizing:border-box;white-space:pre-wrap}:where(.wp-block-preformatted.has-background){padding:1.25em 2.375em}.wp-block-pullquote{box-sizing:border-box;margin:0 0 1em;overflow-wrap:break-word;padding:4em 0;text-align:center}.wp-block-pullquote blockquote,.wp-block-pullquote cite,.wp-block-pullquote p{color:inherit}.wp-block-pullquote blockquote{margin:0}.wp-block-pullquote p{margin-top:0}.wp-block-pullquote p:last-child{margin-bottom:0}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:420px}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote.has-text-align-left blockquote{text-align:left}.wp-block-pullquote.has-text-align-right blockquote{text-align:right}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:2em;margin-bottom:0;margin-top:0}.wp-block-pullquote.is-style-solid-color blockquote cite{font-style:normal;text-transform:none}.wp-block-pullquote cite{color:inherit}.wp-block-post-template{list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}.wp-block-post-template.is-flex-container{display:flex;flex-direction:row;flex-wrap:wrap;gap:1.25em}.wp-block-post-template.is-flex-container>li{margin:0;width:100%}@media (min-width:600px){.wp-block-post-template.is-flex-container.is-flex-container.columns-2>li{width:calc(50% - .625em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-3>li{width:calc(33.33333% - .83333em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-4>li{width:calc(25% - .9375em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-5>li{width:calc(20% - 1em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-6>li{width:calc(16.66667% - 1.04167em)}}@media (max-width:600px){.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid{grid-template-columns:1fr}}.wp-block-post-template-is-layout-constrained>li>.alignright,.wp-block-post-template-is-layout-flow>li>.alignright{float:right;margin-inline-end:0;margin-inline-start:2em}.wp-block-post-template-is-layout-constrained>li>.alignleft,.wp-block-post-template-is-layout-flow>li>.alignleft{float:left;margin-inline-end:2em;margin-inline-start:0}.wp-block-post-template-is-layout-constrained>li>.aligncenter,.wp-block-post-template-is-layout-flow>li>.aligncenter{margin-inline-end:auto;margin-inline-start:auto}.wp-block-query-pagination>.wp-block-query-pagination-next,.wp-block-query-pagination>.wp-block-query-pagination-numbers,.wp-block-query-pagination>.wp-block-query-pagination-previous{margin-bottom:.5em;margin-right:.5em}.wp-block-query-pagination>.wp-block-query-pagination-next:last-child,.wp-block-query-pagination>.wp-block-query-pagination-numbers:last-child,.wp-block-query-pagination>.wp-block-query-pagination-previous:last-child{margin-right:0}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-next:last-of-type{margin-inline-start:auto}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-previous:first-child{margin-inline-end:auto}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow{display:inline-block;margin-right:1ch}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-query-pagination .wp-block-query-pagination-next-arrow{display:inline-block;margin-left:1ch}.wp-block-query-pagination .wp-block-query-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-query-pagination.aligncenter{justify-content:center}.wp-block-query-title,.wp-block-quote{box-sizing:border-box}.wp-block-quote{overflow-wrap:break-word}.wp-block-quote.is-large:where(:not(.is-style-plain)),.wp-block-quote.is-style-large:where(:not(.is-style-plain)){margin-bottom:1em;padding:0 1em}.wp-block-quote.is-large:where(:not(.is-style-plain)) p,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) p{font-size:1.5em;font-style:italic;line-height:1.6}.wp-block-quote.is-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-large:where(:not(.is-style-plain)) footer,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) footer{font-size:1.125em;text-align:right}.wp-block-quote>cite{display:block}.wp-block-read-more{display:block;width:-moz-fit-content;width:fit-content}.wp-block-read-more:where(:not([style*=text-decoration])){text-decoration:none}.wp-block-read-more:where(:not([style*=text-decoration])):active,.wp-block-read-more:where(:not([style*=text-decoration])):focus{text-decoration:none}ul.wp-block-rss{list-style:none;padding:0}ul.wp-block-rss.wp-block-rss{box-sizing:border-box}ul.wp-block-rss.alignleft{margin-right:2em}ul.wp-block-rss.alignright{margin-left:2em}ul.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;list-style:none;padding:0}ul.wp-block-rss.is-grid li{margin:0 1em 1em 0;width:100%}@media (min-width:600px){ul.wp-block-rss.columns-2 li{width:calc(50% - 1em)}ul.wp-block-rss.columns-3 li{width:calc(33.33333% - 1em)}ul.wp-block-rss.columns-4 li{width:calc(25% - 1em)}ul.wp-block-rss.columns-5 li{width:calc(20% - 1em)}ul.wp-block-rss.columns-6 li{width:calc(16.66667% - 1em)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;font-size:.8125em}.wp-block-search__button{margin-left:10px;word-break:normal}.wp-block-search__button.has-icon{line-height:0}.wp-block-search__button svg{height:1.25em;min-height:24px;min-width:24px;width:1.25em;fill:currentColor;vertical-align:text-bottom}:where(.wp-block-search__button){border:1px solid #ccc;padding:6px 10px}.wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search__label{width:100%}.wp-block-search__input{appearance:none;border:1px solid #949494;flex-grow:1;margin-left:0;margin-right:0;min-width:3rem;padding:8px;text-decoration:unset!important}.wp-block-search.wp-block-search__button-only .wp-block-search__button{flex-shrink:0;margin-left:0;max-width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__button[aria-expanded=true]{max-width:calc(100% - 100px)}.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{min-width:0!important;transition-property:width}.wp-block-search.wp-block-search__button-only .wp-block-search__input{flex-basis:100%;transition-duration:.3s}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden,.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{overflow:hidden}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__input{border-left-width:0!important;border-right-width:0!important;flex-basis:0;flex-grow:0;margin:0;min-width:0!important;padding-left:0!important;padding-right:0!important;width:0!important}:where(.wp-block-search__input){font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-transform:inherit}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){border:1px solid #949494;box-sizing:border-box;padding:4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input{border:none;border-radius:0;padding:0 4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus{outline:none}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button){padding:4px 8px}.wp-block-search.aligncenter .wp-block-search__inside-wrapper{margin:auto}.wp-block[data-align=right] .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{float:right}.wp-block-separator{border:none;border-top:2px solid}:root :where(.wp-block-separator.is-style-dots){height:auto;line-height:1;text-align:center}:root :where(.wp-block-separator.is-style-dots):before{color:currentColor;content:"···";font-family:serif;font-size:1.5em;letter-spacing:2em;padding-left:2em}.wp-block-separator.is-style-dots{background:none!important;border:none!important}.wp-block-site-logo{box-sizing:border-box;line-height:0}.wp-block-site-logo a{display:inline-block;line-height:0}.wp-block-site-logo.is-default-size img{height:auto;width:120px}.wp-block-site-logo img{height:auto;max-width:100%}.wp-block-site-logo a,.wp-block-site-logo img{border-radius:inherit}.wp-block-site-logo.aligncenter{margin-left:auto;margin-right:auto;text-align:center}:root :where(.wp-block-site-logo.is-style-rounded){border-radius:9999px}:root :where(.wp-block-site-title a){color:inherit}.wp-block-social-links{background:none;box-sizing:border-box;margin-left:0;padding-left:0;padding-right:0;text-indent:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{border-bottom:0;box-shadow:none;text-decoration:none}.wp-block-social-links .wp-social-link svg{height:1em;width:1em}.wp-block-social-links .wp-social-link span:not(.screen-reader-text){font-size:.65em;margin-left:.5em;margin-right:.5em}.wp-block-social-links.has-small-icon-size{font-size:16px}.wp-block-social-links,.wp-block-social-links.has-normal-icon-size{font-size:24px}.wp-block-social-links.has-large-icon-size{font-size:36px}.wp-block-social-links.has-huge-icon-size{font-size:48px}.wp-block-social-links.aligncenter{display:flex;justify-content:center}.wp-block-social-links.alignright{justify-content:flex-end}.wp-block-social-link{border-radius:9999px;display:block;height:auto;transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.wp-block-social-link{transition-delay:0s;transition-duration:0s}}.wp-block-social-link a{align-items:center;display:flex;line-height:0;transition:transform .1s ease}.wp-block-social-link:hover{transform:scale(1.1)}.wp-block-social-links .wp-block-social-link.wp-social-link{display:inline-block;margin:0;padding:0}.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:active,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:visited{color:currentColor;fill:currentColor}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link{background-color:#f0f0f0;color:#444}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-amazon{background-color:#f90;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-behance{background-color:#0757fe;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bluesky{background-color:#0a7aff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-etsy{background-color:#f45800;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-facebook{background-color:#1778f2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-flickr{background-color:#0461dd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-foursquare{background-color:#e65678;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-github{background-color:#24292d;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-google{background-color:#ea4434;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-gravatar{background-color:#1d4fc4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-instagram{background-color:#f00075;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-linkedin{background-color:#0d66c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-medium{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-meetup{background-color:#f6405f;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-patreon{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pinterest{background-color:#e60122;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pocket{background-color:#ef4155;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-reddit{background-color:#ff4500;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-skype{background-color:#0478d7;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-snapchat{background-color:#fefc00;color:#fff;stroke:#000}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-spotify{background-color:#1bd760;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-telegram{background-color:#2aabee;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-threads{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tiktok{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tumblr{background-color:#011835;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitch{background-color:#6440a4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitter{background-color:#1da1f2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vk{background-color:#4680c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-whatsapp{background-color:#25d366;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-x{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-yelp{background-color:#d32422;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-youtube{background-color:red;color:#fff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link{background:none}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link svg{height:1.25em;width:1.25em}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-amazon{color:#f90}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bandcamp{color:#1ea0c3}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-behance{color:#0757fe}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bluesky{color:#0a7aff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-codepen{color:#1e1f26}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-deviantart{color:#02e49b}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dribbble{color:#e94c89}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dropbox{color:#4280ff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-etsy{color:#f45800}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-facebook{color:#1778f2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-fivehundredpx{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-flickr{color:#0461dd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-foursquare{color:#e65678}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-github{color:#24292d}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-goodreads{color:#382110}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-google{color:#ea4434}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-gravatar{color:#1d4fc4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-instagram{color:#f00075}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-lastfm{color:#e21b24}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-linkedin{color:#0d66c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-mastodon{color:#3288d4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-medium{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-meetup{color:#f6405f}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-patreon{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pinterest{color:#e60122}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pocket{color:#ef4155}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-reddit{color:#ff4500}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-skype{color:#0478d7}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-snapchat{color:#fff;stroke:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-soundcloud{color:#ff5600}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-spotify{color:#1bd760}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-telegram{color:#2aabee}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-threads{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tiktok{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tumblr{color:#011835}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitch{color:#6440a4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitter{color:#1da1f2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vimeo{color:#1eb7ea}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vk{color:#4680c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-whatsapp{color:#25d366}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-wordpress{color:#3499cd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-x{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-yelp{color:#d32422}:where(.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}:root :where(.wp-block-social-links .wp-social-link a){padding:.25em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link a){padding:0}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link a){padding-left:.66667em;padding-right:.66667em}.wp-block-social-links:not(.has-icon-color):not(.has-icon-background-color) .wp-social-link-snapchat .wp-block-social-link-label{color:#000}.wp-block-spacer{clear:both}.wp-block-tag-cloud{box-sizing:border-box}.wp-block-tag-cloud.aligncenter{justify-content:center;text-align:center}.wp-block-tag-cloud.alignfull{padding-left:1em;padding-right:1em}.wp-block-tag-cloud a{display:inline-block;margin-right:5px}.wp-block-tag-cloud span{display:inline-block;margin-left:5px;text-decoration:none}:root :where(.wp-block-tag-cloud.is-style-outline){display:flex;flex-wrap:wrap;gap:1ch}:root :where(.wp-block-tag-cloud.is-style-outline a){border:1px solid;font-size:unset!important;margin-right:0;padding:1ch 2ch;text-decoration:none!important}.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.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{background-color:initial;border-bottom:1px solid #f0f0f0;border-collapse:inherit;border-spacing:0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.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:#0000}.wp-block-table .has-border-color td,.wp-block-table .has-border-color th,.wp-block-table .has-border-color tr,.wp-block-table .has-border-color>*{border-color:inherit}.wp-block-table table[style*=border-top-color] tr:first-child,.wp-block-table table[style*=border-top-color] tr:first-child td,.wp-block-table table[style*=border-top-color] tr:first-child th,.wp-block-table table[style*=border-top-color]>*,.wp-block-table table[style*=border-top-color]>* td,.wp-block-table table[style*=border-top-color]>* th{border-top-color:inherit}.wp-block-table table[style*=border-top-color] tr:not(:first-child){border-top-color:initial}.wp-block-table table[style*=border-right-color] td:last-child,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] tr,.wp-block-table table[style*=border-right-color]>*{border-right-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:last-child,.wp-block-table table[style*=border-bottom-color] tr:last-child td,.wp-block-table table[style*=border-bottom-color] tr:last-child th,.wp-block-table table[style*=border-bottom-color]>*,.wp-block-table table[style*=border-bottom-color]>* td,.wp-block-table table[style*=border-bottom-color]>* th{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){border-bottom-color:initial}.wp-block-table table[style*=border-left-color] td:first-child,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] tr,.wp-block-table table[style*=border-left-color]>*{border-left-color:inherit}.wp-block-table table[style*=border-style] td,.wp-block-table table[style*=border-style] th,.wp-block-table table[style*=border-style] tr,.wp-block-table table[style*=border-style]>*{border-style:inherit}.wp-block-table table[style*=border-width] td,.wp-block-table table[style*=border-width] th,.wp-block-table table[style*=border-width] tr,.wp-block-table table[style*=border-width]>*{border-style:inherit;border-width:inherit}:where(.wp-block-term-description){margin-bottom:var(--wp--style--block-gap);margin-top:var(--wp--style--block-gap)}.wp-block-term-description p{margin-bottom:0;margin-top:0}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 1em;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%}pre.wp-block-verse{overflow:auto;white-space:pre-wrap}:where(pre.wp-block-verse){font-family:inherit}.wp-block-video{box-sizing:border-box}.wp-block-video video{vertical-align:middle;width:100%}@supports (position:sticky){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video :where(figcaption){margin-bottom:1em;margin-top:.5em}.editor-styles-wrapper,.entry-content{counter-reset:footnotes}a[data-fn].fn{counter-increment:footnotes;display:inline-flex;font-size:smaller;text-decoration:none;text-indent:-9999999px;vertical-align:super}a[data-fn].fn:after{content:"[" counter(footnotes) "]";float:left;text-indent:0}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}: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-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.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}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;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}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}} \ 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 b776cf9..9c6af25 100644
--- a/wp-includes/css/dist/block-library/theme-rtl.css
+++ b/wp-includes/css/dist/block-library/theme-rtl.css
@@ -1,9 +1,9 @@
-.wp-block-audio figcaption{
+.wp-block-audio :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-audio figcaption{
+.is-dark-theme .wp-block-audio :where(figcaption){
color:#ffffffa6;
}
@@ -18,12 +18,12 @@
padding:.8em 1em;
}
-.wp-block-embed figcaption{
+.wp-block-embed :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-embed figcaption{
+.is-dark-theme .wp-block-embed :where(figcaption){
color:#ffffffa6;
}
@@ -40,12 +40,12 @@
color:#ffffffa6;
}
-.wp-block-image figcaption{
+:root :where(.wp-block-image figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-image figcaption{
+.is-dark-theme :root :where(.wp-block-image figcaption){
color:#ffffffa6;
}
@@ -134,21 +134,21 @@
.wp-block-table td,.wp-block-table th{
word-break:normal;
}
-.wp-block-table figcaption{
+.wp-block-table :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-table figcaption{
+.is-dark-theme .wp-block-table :where(figcaption){
color:#ffffffa6;
}
-.wp-block-video figcaption{
+.wp-block-video :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-video figcaption{
+.is-dark-theme .wp-block-video :where(figcaption){
color:#ffffffa6;
}
@@ -156,7 +156,7 @@
margin:0 0 1em;
}
-.wp-block-template-part.has-background{
+:root :where(.wp-block-template-part.has-background){
margin-bottom:0;
margin-top:0;
padding:1.25em 2.375em;
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 b738581..25ec006 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:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio figcaption{color:#ffffffa6}.wp-block-audio{margin:0 0 1em}.wp-block-code{border:1px solid #ccc;border-radius:4px;font-family:Menlo,Consolas,monaco,monospace;padding:.8em 1em}.wp-block-embed figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed figcaption{color:#ffffffa6}.wp-block-embed{margin:0 0 1em}.blocks-gallery-caption{color:#555;font-size:13px;text-align:center}.is-dark-theme .blocks-gallery-caption{color:#ffffffa6}.wp-block-image figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-image figcaption{color:#ffffffa6}.wp-block-image{margin:0 0 1em}.wp-block-pullquote{border-bottom:4px solid;border-top:4px solid;color:currentColor;margin-bottom:1.75em}.wp-block-pullquote cite,.wp-block-pullquote footer,.wp-block-pullquote__citation{color:currentColor;font-size:.8125em;font-style:normal;text-transform:uppercase}.wp-block-quote{border-right:.25em solid;margin:0 0 1.75em;padding-right:1em}.wp-block-quote cite,.wp-block-quote footer{color:currentColor;font-size:.8125em;font-style:normal;position:relative}.wp-block-quote.has-text-align-right{border-left:.25em solid;border-right:none;padding-left:1em;padding-right:0}.wp-block-quote.has-text-align-center{border:none;padding-right:0}.wp-block-quote.is-large,.wp-block-quote.is-style-large,.wp-block-quote.is-style-plain{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-search__button{border:1px solid #ccc;padding:.375em .625em}:where(.wp-block-group.has-background){padding:1.25em 2.375em}.wp-block-separator.has-css-opacity{opacity:.4}.wp-block-separator{border:none;border-bottom:2px solid;margin-left:auto;margin-right:auto}.wp-block-separator.has-alpha-channel-opacity{opacity:1}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){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{margin:0 0 1em}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:#ffffffa6}.wp-block-video figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video figcaption{color:#ffffffa6}.wp-block-video{margin:0 0 1em}.wp-block-template-part.has-background{margin-bottom:0;margin-top:0;padding:1.25em 2.375em} \ No newline at end of file
+.wp-block-audio :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio :where(figcaption){color:#ffffffa6}.wp-block-audio{margin:0 0 1em}.wp-block-code{border:1px solid #ccc;border-radius:4px;font-family:Menlo,Consolas,monaco,monospace;padding:.8em 1em}.wp-block-embed :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed :where(figcaption){color:#ffffffa6}.wp-block-embed{margin:0 0 1em}.blocks-gallery-caption{color:#555;font-size:13px;text-align:center}.is-dark-theme .blocks-gallery-caption{color:#ffffffa6}:root :where(.wp-block-image figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme :root :where(.wp-block-image figcaption){color:#ffffffa6}.wp-block-image{margin:0 0 1em}.wp-block-pullquote{border-bottom:4px solid;border-top:4px solid;color:currentColor;margin-bottom:1.75em}.wp-block-pullquote cite,.wp-block-pullquote footer,.wp-block-pullquote__citation{color:currentColor;font-size:.8125em;font-style:normal;text-transform:uppercase}.wp-block-quote{border-right:.25em solid;margin:0 0 1.75em;padding-right:1em}.wp-block-quote cite,.wp-block-quote footer{color:currentColor;font-size:.8125em;font-style:normal;position:relative}.wp-block-quote.has-text-align-right{border-left:.25em solid;border-right:none;padding-left:1em;padding-right:0}.wp-block-quote.has-text-align-center{border:none;padding-right:0}.wp-block-quote.is-large,.wp-block-quote.is-style-large,.wp-block-quote.is-style-plain{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-search__button{border:1px solid #ccc;padding:.375em .625em}:where(.wp-block-group.has-background){padding:1.25em 2.375em}.wp-block-separator.has-css-opacity{opacity:.4}.wp-block-separator{border:none;border-bottom:2px solid;margin-left:auto;margin-right:auto}.wp-block-separator.has-alpha-channel-opacity{opacity:1}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){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{margin:0 0 1em}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table :where(figcaption){color:#ffffffa6}.wp-block-video :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video :where(figcaption){color:#ffffffa6}.wp-block-video{margin:0 0 1em}:root :where(.wp-block-template-part.has-background){margin-bottom:0;margin-top:0;padding:1.25em 2.375em} \ 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 f5c0320..aca1476 100644
--- a/wp-includes/css/dist/block-library/theme.css
+++ b/wp-includes/css/dist/block-library/theme.css
@@ -1,9 +1,9 @@
-.wp-block-audio figcaption{
+.wp-block-audio :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-audio figcaption{
+.is-dark-theme .wp-block-audio :where(figcaption){
color:#ffffffa6;
}
@@ -18,12 +18,12 @@
padding:.8em 1em;
}
-.wp-block-embed figcaption{
+.wp-block-embed :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-embed figcaption{
+.is-dark-theme .wp-block-embed :where(figcaption){
color:#ffffffa6;
}
@@ -40,12 +40,12 @@
color:#ffffffa6;
}
-.wp-block-image figcaption{
+:root :where(.wp-block-image figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-image figcaption{
+.is-dark-theme :root :where(.wp-block-image figcaption){
color:#ffffffa6;
}
@@ -134,21 +134,21 @@
.wp-block-table td,.wp-block-table th{
word-break:normal;
}
-.wp-block-table figcaption{
+.wp-block-table :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-table figcaption{
+.is-dark-theme .wp-block-table :where(figcaption){
color:#ffffffa6;
}
-.wp-block-video figcaption{
+.wp-block-video :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
-.is-dark-theme .wp-block-video figcaption{
+.is-dark-theme .wp-block-video :where(figcaption){
color:#ffffffa6;
}
@@ -156,7 +156,7 @@
margin:0 0 1em;
}
-.wp-block-template-part.has-background{
+:root :where(.wp-block-template-part.has-background){
margin-bottom:0;
margin-top:0;
padding:1.25em 2.375em;
diff --git a/wp-includes/css/dist/block-library/theme.min.css b/wp-includes/css/dist/block-library/theme.min.css
index 812d04e..244da6b 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:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio figcaption{color:#ffffffa6}.wp-block-audio{margin:0 0 1em}.wp-block-code{border:1px solid #ccc;border-radius:4px;font-family:Menlo,Consolas,monaco,monospace;padding:.8em 1em}.wp-block-embed figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed figcaption{color:#ffffffa6}.wp-block-embed{margin:0 0 1em}.blocks-gallery-caption{color:#555;font-size:13px;text-align:center}.is-dark-theme .blocks-gallery-caption{color:#ffffffa6}.wp-block-image figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-image figcaption{color:#ffffffa6}.wp-block-image{margin:0 0 1em}.wp-block-pullquote{border-bottom:4px solid;border-top:4px solid;color:currentColor;margin-bottom:1.75em}.wp-block-pullquote cite,.wp-block-pullquote footer,.wp-block-pullquote__citation{color:currentColor;font-size:.8125em;font-style:normal;text-transform:uppercase}.wp-block-quote{border-left:.25em solid;margin:0 0 1.75em;padding-left:1em}.wp-block-quote cite,.wp-block-quote footer{color:currentColor;font-size:.8125em;font-style:normal;position:relative}.wp-block-quote.has-text-align-right{border-left:none;border-right:.25em solid;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,.wp-block-quote.is-style-plain{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-search__button{border:1px solid #ccc;padding:.375em .625em}:where(.wp-block-group.has-background){padding:1.25em 2.375em}.wp-block-separator.has-css-opacity{opacity:.4}.wp-block-separator{border:none;border-bottom:2px solid;margin-left:auto;margin-right:auto}.wp-block-separator.has-alpha-channel-opacity{opacity:1}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){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{margin:0 0 1em}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:#ffffffa6}.wp-block-video figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video figcaption{color:#ffffffa6}.wp-block-video{margin:0 0 1em}.wp-block-template-part.has-background{margin-bottom:0;margin-top:0;padding:1.25em 2.375em} \ No newline at end of file
+.wp-block-audio :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio :where(figcaption){color:#ffffffa6}.wp-block-audio{margin:0 0 1em}.wp-block-code{border:1px solid #ccc;border-radius:4px;font-family:Menlo,Consolas,monaco,monospace;padding:.8em 1em}.wp-block-embed :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed :where(figcaption){color:#ffffffa6}.wp-block-embed{margin:0 0 1em}.blocks-gallery-caption{color:#555;font-size:13px;text-align:center}.is-dark-theme .blocks-gallery-caption{color:#ffffffa6}:root :where(.wp-block-image figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme :root :where(.wp-block-image figcaption){color:#ffffffa6}.wp-block-image{margin:0 0 1em}.wp-block-pullquote{border-bottom:4px solid;border-top:4px solid;color:currentColor;margin-bottom:1.75em}.wp-block-pullquote cite,.wp-block-pullquote footer,.wp-block-pullquote__citation{color:currentColor;font-size:.8125em;font-style:normal;text-transform:uppercase}.wp-block-quote{border-left:.25em solid;margin:0 0 1.75em;padding-left:1em}.wp-block-quote cite,.wp-block-quote footer{color:currentColor;font-size:.8125em;font-style:normal;position:relative}.wp-block-quote.has-text-align-right{border-left:none;border-right:.25em solid;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,.wp-block-quote.is-style-plain{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-search__button{border:1px solid #ccc;padding:.375em .625em}:where(.wp-block-group.has-background){padding:1.25em 2.375em}.wp-block-separator.has-css-opacity{opacity:.4}.wp-block-separator{border:none;border-bottom:2px solid;margin-left:auto;margin-right:auto}.wp-block-separator.has-alpha-channel-opacity{opacity:1}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){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{margin:0 0 1em}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table :where(figcaption){color:#ffffffa6}.wp-block-video :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video :where(figcaption){color:#ffffffa6}.wp-block-video{margin:0 0 1em}:root :where(.wp-block-template-part.has-background){margin-bottom:0;margin-top:0;padding:1.25em 2.375em} \ No newline at end of file
diff --git a/wp-includes/css/dist/commands/style-rtl.css b/wp-includes/css/dist/commands/style-rtl.css
index a95b24c..805312c 100644
--- a/wp-includes/css/dist/commands/style-rtl.css
+++ b/wp-includes/css/dist/commands/style-rtl.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -19,14 +19,14 @@
.commands-command-menu{
border-radius:4px;
margin:auto;
- max-width:420px;
+ max-width:400px;
position:relative;
- top:calc(15% + 60px);
+ top:calc(5% + 60px);
width:calc(100% - 32px);
}
@media (min-width:600px){
.commands-command-menu{
- top:15%;
+ top:calc(10% + 60px);
}
}
.commands-command-menu .components-modal__content{
@@ -42,7 +42,7 @@
.commands-command-menu__header{
align-items:center;
display:flex;
- padding-right:16px;
+ padding:0 16px;
}
.commands-command-menu__header .components-button{
border:1px solid #949494;
@@ -64,11 +64,11 @@
border:none;
border-radius:0;
color:#1e1e1e;
- font-size:16px;
+ font-size:15px;
line-height:28px;
margin:0;
outline:none;
- padding:16px 8px 16px 16px;
+ padding:16px 4px;
width:100%;
}
.commands-command-menu__container [cmdk-input]::placeholder{
@@ -85,7 +85,6 @@
cursor:pointer;
display:flex;
font-size:13px;
- min-height:40px;
}
.commands-command-menu__container [cmdk-item]:active,.commands-command-menu__container [cmdk-item][aria-selected=true]{
background:var(--wp-admin-theme-color);
@@ -102,7 +101,8 @@
fill:#1e1e1e;
}
.commands-command-menu__container [cmdk-item]>div{
- padding:8px 40px 8px 8px;
+ min-height:40px;
+ padding:4px 40px 4px 4px;
}
.commands-command-menu__container [cmdk-item]>.has-icon{
padding-right:8px;
@@ -111,8 +111,11 @@
max-height:368px;
overflow:auto;
}
+.commands-command-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]:last-child [cmdk-group-items]:not(:empty){
+ padding-bottom:8px;
+}
.commands-command-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]>[cmdk-group-items]:not(:empty){
- padding:0 8px 8px;
+ padding:0 8px;
}
.commands-command-menu__container [cmdk-empty]{
align-items:center;
diff --git a/wp-includes/css/dist/commands/style-rtl.min.css b/wp-includes/css/dist/commands/style-rtl.min.css
index f4b6b5e..90dc945 100644
--- a/wp-includes/css/dist/commands/style-rtl.min.css
+++ b/wp-includes/css/dist/commands/style-rtl.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.commands-command-menu{border-radius:4px;margin:auto;max-width:420px;position:relative;top:calc(15% + 60px);width:calc(100% - 32px)}@media (min-width:600px){.commands-command-menu{top:15%}}.commands-command-menu .components-modal__content{margin:0;padding:0}.commands-command-menu__overlay{align-items:start;display:block}.commands-command-menu__header{align-items:center;display:flex;padding-right:16px}.commands-command-menu__header .components-button{border:1px solid #949494;border-left:0;border-radius:0 2px 2px 0;height:56px;justify-content:center;width:56px}.commands-command-menu__header .components-button+[cmdk-input]{border-bottom-right-radius:0;border-top-right-radius:0}.commands-command-menu__container{will-change:transform}.commands-command-menu__container [cmdk-input]{border:none;border-radius:0;color:#1e1e1e;font-size:16px;line-height:28px;margin:0;outline:none;padding:16px 8px 16px 16px;width:100%}.commands-command-menu__container [cmdk-input]::placeholder{color:#757575}.commands-command-menu__container [cmdk-input]:focus{box-shadow:none;outline:none}.commands-command-menu__container [cmdk-item]{align-items:center;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;font-size:13px;min-height:40px}.commands-command-menu__container [cmdk-item]:active,.commands-command-menu__container [cmdk-item][aria-selected=true]{background:var(--wp-admin-theme-color);color:#fff}.commands-command-menu__container [cmdk-item]:active svg,.commands-command-menu__container [cmdk-item][aria-selected=true] svg{fill:#fff}.commands-command-menu__container [cmdk-item][aria-disabled=true]{color:#949494;cursor:not-allowed}.commands-command-menu__container [cmdk-item] svg{fill:#1e1e1e}.commands-command-menu__container [cmdk-item]>div{padding:8px 40px 8px 8px}.commands-command-menu__container [cmdk-item]>.has-icon{padding-right:8px}.commands-command-menu__container [cmdk-root]>[cmdk-list]{max-height:368px;overflow:auto}.commands-command-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]>[cmdk-group-items]:not(:empty){padding:0 8px 8px}.commands-command-menu__container [cmdk-empty]{align-items:center;color:#1e1e1e;display:flex;justify-content:center;padding:8px 0 32px;white-space:pre-wrap}.commands-command-menu__container [cmdk-loading]{padding:16px}.commands-command-menu__container [cmdk-list-sizer]{position:relative}.commands-command-menu__item span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.commands-command-menu__item mark{background:unset;color:inherit;font-weight:600} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.commands-command-menu{border-radius:4px;margin:auto;max-width:400px;position:relative;top:calc(5% + 60px);width:calc(100% - 32px)}@media (min-width:600px){.commands-command-menu{top:calc(10% + 60px)}}.commands-command-menu .components-modal__content{margin:0;padding:0}.commands-command-menu__overlay{align-items:start;display:block}.commands-command-menu__header{align-items:center;display:flex;padding:0 16px}.commands-command-menu__header .components-button{border:1px solid #949494;border-left:0;border-radius:0 2px 2px 0;height:56px;justify-content:center;width:56px}.commands-command-menu__header .components-button+[cmdk-input]{border-bottom-right-radius:0;border-top-right-radius:0}.commands-command-menu__container{will-change:transform}.commands-command-menu__container [cmdk-input]{border:none;border-radius:0;color:#1e1e1e;font-size:15px;line-height:28px;margin:0;outline:none;padding:16px 4px;width:100%}.commands-command-menu__container [cmdk-input]::placeholder{color:#757575}.commands-command-menu__container [cmdk-input]:focus{box-shadow:none;outline:none}.commands-command-menu__container [cmdk-item]{align-items:center;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;font-size:13px}.commands-command-menu__container [cmdk-item]:active,.commands-command-menu__container [cmdk-item][aria-selected=true]{background:var(--wp-admin-theme-color);color:#fff}.commands-command-menu__container [cmdk-item]:active svg,.commands-command-menu__container [cmdk-item][aria-selected=true] svg{fill:#fff}.commands-command-menu__container [cmdk-item][aria-disabled=true]{color:#949494;cursor:not-allowed}.commands-command-menu__container [cmdk-item] svg{fill:#1e1e1e}.commands-command-menu__container [cmdk-item]>div{min-height:40px;padding:4px 40px 4px 4px}.commands-command-menu__container [cmdk-item]>.has-icon{padding-right:8px}.commands-command-menu__container [cmdk-root]>[cmdk-list]{max-height:368px;overflow:auto}.commands-command-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]:last-child [cmdk-group-items]:not(:empty){padding-bottom:8px}.commands-command-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]>[cmdk-group-items]:not(:empty){padding:0 8px}.commands-command-menu__container [cmdk-empty]{align-items:center;color:#1e1e1e;display:flex;justify-content:center;padding:8px 0 32px;white-space:pre-wrap}.commands-command-menu__container [cmdk-loading]{padding:16px}.commands-command-menu__container [cmdk-list-sizer]{position:relative}.commands-command-menu__item span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.commands-command-menu__item mark{background:unset;color:inherit;font-weight:600} \ No newline at end of file
diff --git a/wp-includes/css/dist/commands/style.css b/wp-includes/css/dist/commands/style.css
index cf72815..3a56b24 100644
--- a/wp-includes/css/dist/commands/style.css
+++ b/wp-includes/css/dist/commands/style.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -19,14 +19,14 @@
.commands-command-menu{
border-radius:4px;
margin:auto;
- max-width:420px;
+ max-width:400px;
position:relative;
- top:calc(15% + 60px);
+ top:calc(5% + 60px);
width:calc(100% - 32px);
}
@media (min-width:600px){
.commands-command-menu{
- top:15%;
+ top:calc(10% + 60px);
}
}
.commands-command-menu .components-modal__content{
@@ -42,7 +42,7 @@
.commands-command-menu__header{
align-items:center;
display:flex;
- padding-left:16px;
+ padding:0 16px;
}
.commands-command-menu__header .components-button{
border:1px solid #949494;
@@ -64,11 +64,11 @@
border:none;
border-radius:0;
color:#1e1e1e;
- font-size:16px;
+ font-size:15px;
line-height:28px;
margin:0;
outline:none;
- padding:16px 16px 16px 8px;
+ padding:16px 4px;
width:100%;
}
.commands-command-menu__container [cmdk-input]::placeholder{
@@ -85,7 +85,6 @@
cursor:pointer;
display:flex;
font-size:13px;
- min-height:40px;
}
.commands-command-menu__container [cmdk-item]:active,.commands-command-menu__container [cmdk-item][aria-selected=true]{
background:var(--wp-admin-theme-color);
@@ -102,7 +101,8 @@
fill:#1e1e1e;
}
.commands-command-menu__container [cmdk-item]>div{
- padding:8px 8px 8px 40px;
+ min-height:40px;
+ padding:4px 4px 4px 40px;
}
.commands-command-menu__container [cmdk-item]>.has-icon{
padding-left:8px;
@@ -111,8 +111,11 @@
max-height:368px;
overflow:auto;
}
+.commands-command-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]:last-child [cmdk-group-items]:not(:empty){
+ padding-bottom:8px;
+}
.commands-command-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]>[cmdk-group-items]:not(:empty){
- padding:0 8px 8px;
+ padding:0 8px;
}
.commands-command-menu__container [cmdk-empty]{
align-items:center;
diff --git a/wp-includes/css/dist/commands/style.min.css b/wp-includes/css/dist/commands/style.min.css
index 4e86b75..6d6333f 100644
--- a/wp-includes/css/dist/commands/style.min.css
+++ b/wp-includes/css/dist/commands/style.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.commands-command-menu{border-radius:4px;margin:auto;max-width:420px;position:relative;top:calc(15% + 60px);width:calc(100% - 32px)}@media (min-width:600px){.commands-command-menu{top:15%}}.commands-command-menu .components-modal__content{margin:0;padding:0}.commands-command-menu__overlay{align-items:start;display:block}.commands-command-menu__header{align-items:center;display:flex;padding-left:16px}.commands-command-menu__header .components-button{border:1px solid #949494;border-radius:2px 0 0 2px;border-right:0;height:56px;justify-content:center;width:56px}.commands-command-menu__header .components-button+[cmdk-input]{border-bottom-left-radius:0;border-top-left-radius:0}.commands-command-menu__container{will-change:transform}.commands-command-menu__container [cmdk-input]{border:none;border-radius:0;color:#1e1e1e;font-size:16px;line-height:28px;margin:0;outline:none;padding:16px 16px 16px 8px;width:100%}.commands-command-menu__container [cmdk-input]::placeholder{color:#757575}.commands-command-menu__container [cmdk-input]:focus{box-shadow:none;outline:none}.commands-command-menu__container [cmdk-item]{align-items:center;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;font-size:13px;min-height:40px}.commands-command-menu__container [cmdk-item]:active,.commands-command-menu__container [cmdk-item][aria-selected=true]{background:var(--wp-admin-theme-color);color:#fff}.commands-command-menu__container [cmdk-item]:active svg,.commands-command-menu__container [cmdk-item][aria-selected=true] svg{fill:#fff}.commands-command-menu__container [cmdk-item][aria-disabled=true]{color:#949494;cursor:not-allowed}.commands-command-menu__container [cmdk-item] svg{fill:#1e1e1e}.commands-command-menu__container [cmdk-item]>div{padding:8px 8px 8px 40px}.commands-command-menu__container [cmdk-item]>.has-icon{padding-left:8px}.commands-command-menu__container [cmdk-root]>[cmdk-list]{max-height:368px;overflow:auto}.commands-command-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]>[cmdk-group-items]:not(:empty){padding:0 8px 8px}.commands-command-menu__container [cmdk-empty]{align-items:center;color:#1e1e1e;display:flex;justify-content:center;padding:8px 0 32px;white-space:pre-wrap}.commands-command-menu__container [cmdk-loading]{padding:16px}.commands-command-menu__container [cmdk-list-sizer]{position:relative}.commands-command-menu__item span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.commands-command-menu__item mark{background:unset;color:inherit;font-weight:600} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.commands-command-menu{border-radius:4px;margin:auto;max-width:400px;position:relative;top:calc(5% + 60px);width:calc(100% - 32px)}@media (min-width:600px){.commands-command-menu{top:calc(10% + 60px)}}.commands-command-menu .components-modal__content{margin:0;padding:0}.commands-command-menu__overlay{align-items:start;display:block}.commands-command-menu__header{align-items:center;display:flex;padding:0 16px}.commands-command-menu__header .components-button{border:1px solid #949494;border-radius:2px 0 0 2px;border-right:0;height:56px;justify-content:center;width:56px}.commands-command-menu__header .components-button+[cmdk-input]{border-bottom-left-radius:0;border-top-left-radius:0}.commands-command-menu__container{will-change:transform}.commands-command-menu__container [cmdk-input]{border:none;border-radius:0;color:#1e1e1e;font-size:15px;line-height:28px;margin:0;outline:none;padding:16px 4px;width:100%}.commands-command-menu__container [cmdk-input]::placeholder{color:#757575}.commands-command-menu__container [cmdk-input]:focus{box-shadow:none;outline:none}.commands-command-menu__container [cmdk-item]{align-items:center;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;font-size:13px}.commands-command-menu__container [cmdk-item]:active,.commands-command-menu__container [cmdk-item][aria-selected=true]{background:var(--wp-admin-theme-color);color:#fff}.commands-command-menu__container [cmdk-item]:active svg,.commands-command-menu__container [cmdk-item][aria-selected=true] svg{fill:#fff}.commands-command-menu__container [cmdk-item][aria-disabled=true]{color:#949494;cursor:not-allowed}.commands-command-menu__container [cmdk-item] svg{fill:#1e1e1e}.commands-command-menu__container [cmdk-item]>div{min-height:40px;padding:4px 4px 4px 40px}.commands-command-menu__container [cmdk-item]>.has-icon{padding-left:8px}.commands-command-menu__container [cmdk-root]>[cmdk-list]{max-height:368px;overflow:auto}.commands-command-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]:last-child [cmdk-group-items]:not(:empty){padding-bottom:8px}.commands-command-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]>[cmdk-group-items]:not(:empty){padding:0 8px}.commands-command-menu__container [cmdk-empty]{align-items:center;color:#1e1e1e;display:flex;justify-content:center;padding:8px 0 32px;white-space:pre-wrap}.commands-command-menu__container [cmdk-loading]{padding:16px}.commands-command-menu__container [cmdk-list-sizer]{position:relative}.commands-command-menu__item span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.commands-command-menu__item mark{background:unset;color:inherit;font-weight:600} \ 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 3b21b81..d8563d9 100644
--- a/wp-includes/css/dist/components/style-rtl.css
+++ b/wp-includes/css/dist/components/style-rtl.css
@@ -83,8 +83,8 @@
}
}
.components-autocomplete__popover .components-popover__content{
- min-width:220px;
- padding:16px;
+ min-width:200px;
+ padding:8px;
}
.components-autocomplete__result.components-button{
@@ -94,8 +94,13 @@
text-align:right;
width:100%;
}
-.components-autocomplete__result.components-button.is-selected{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+.components-autocomplete__result.components-button:focus:not(:disabled){
+ box-shadow:inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+ outline:2px solid #0000;
+}
+.components-autocomplete__result.components-button.is-selected,.components-autocomplete__result.components-button:not(:disabled,[aria-disabled=true]):active{
+ background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+ color:#fff;
}
.components-button-group{
@@ -190,7 +195,7 @@
outline:none;
}
.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{
- box-shadow:0 0 0 1px var(--wp-components-color-background, #fff), 0 0 0 3px var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+ box-shadow:inset 0 0 0 1px var(--wp-components-color-background, #fff), 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
}
.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{
background-image:linear-gradient(45deg, var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 33%, var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6)) 33%, var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6)) 70%, var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 70%);
@@ -371,9 +376,21 @@ p+.components-button.is-tertiary{
background-position:right 200px top 0;
}
}
+.components-checkbox-control{
+ --checkbox-input-size:24px;
+}
+@media (min-width:600px){
+ .components-checkbox-control{
+ --checkbox-input-size:20px;
+ }
+}
+
+.components-checkbox-control__label{
+ line-height:var(--checkbox-input-size);
+}
+
.components-checkbox-control__input[type=checkbox]{
- -webkit-appearance:none;
- appearance:none;
+ appearance:none;
background:#fff;
border:1px solid #1e1e1e;
border-radius:2px;
@@ -384,7 +401,7 @@ p+.components-button.is-tertiary{
display:inline-block;
font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
font-size:16px;
- height:24px;
+ height:var(--checkbox-input-size);
line-height:normal;
line-height:0;
margin:0 0 0 4px;
@@ -396,7 +413,7 @@ p+.components-button.is-tertiary{
transition:none;
transition:border-color .1s ease-in-out;
vertical-align:top;
- width:24px;
+ width:var(--checkbox-input-size);
}
@media (min-width:600px){
.components-checkbox-control__input[type=checkbox]{
@@ -464,12 +481,6 @@ p+.components-button.is-tertiary{
cursor:default;
opacity:1;
}
-@media (min-width:600px){
- .components-checkbox-control__input[type=checkbox]{
- height:20px;
- width:20px;
- }
-}
@media (prefers-reduced-motion:reduce){
.components-checkbox-control__input[type=checkbox]{
transition-delay:0s;
@@ -493,39 +504,40 @@ p+.components-button.is-tertiary{
}
.components-checkbox-control__input-container{
+ aspect-ratio:1;
display:inline-block;
- height:24px;
+ flex-shrink:0;
margin-left:12px;
position:relative;
vertical-align:middle;
- width:24px;
-}
-@media (min-width:600px){
- .components-checkbox-control__input-container{
- height:20px;
- width:20px;
- }
+ width:var(--checkbox-input-size);
}
svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{
+ --checkmark-size:var(--checkbox-input-size);
fill:#fff;
cursor:pointer;
- height:24px;
+ height:var(--checkmark-size);
pointer-events:none;
position:absolute;
- right:0;
- top:0;
+ right:50%;
+ top:50%;
+ transform:translate(50%, -50%);
-webkit-user-select:none;
user-select:none;
- width:24px;
+ width:var(--checkmark-size);
}
@media (min-width:600px){
svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{
- right:-2px;
- top:-2px;
+ --checkmark-size:calc(var(--checkbox-input-size) + 4px);
}
}
+.components-checkbox-control__help{
+ display:inline-block;
+ margin-inline-start:calc(var(--checkbox-input-size) + 12px);
+}
+
.components-circular-option-picker{
display:inline-block;
min-width:188px;
@@ -920,6 +932,12 @@ input.components-combobox-control__input[type=text]:focus{
margin-right:10px;
}
+.components-custom-select-control__menu-wrapper{
+ bottom:0;
+ min-width:100%;
+ position:absolute;
+}
+
.components-custom-select-control__menu{
background-color:#fff;
border:1px solid #1e1e1e;
@@ -1063,6 +1081,24 @@ body.is-dragging-components-draggable{
.components-dropdown__content [role=menuitem]{
white-space:nowrap;
}
+.components-dropdown__content .components-menu-group{
+ margin:0 -8px;
+ padding:8px;
+}
+.components-dropdown__content .components-menu-group:first-child{
+ margin-top:-8px;
+}
+.components-dropdown__content .components-menu-group:last-child{
+ margin-bottom:-8px;
+}
+.components-dropdown__content .components-menu-group+.components-menu-group{
+ border-top:1px solid #ccc;
+ margin-top:0;
+ padding:8px;
+}
+.components-dropdown__content.is-alternate .components-menu-group+.components-menu-group{
+ border-color:#1e1e1e;
+}
.components-dropdown-menu__toggle{
vertical-align:top;
@@ -1113,24 +1149,6 @@ body.is-dragging-components-draggable{
padding-right:8px;
text-align:right;
}
-.components-dropdown-menu__menu .components-menu-group{
- margin:0 -8px;
- padding:8px;
-}
-.components-dropdown-menu__menu .components-menu-group:first-child{
- margin-top:-8px;
-}
-.components-dropdown-menu__menu .components-menu-group:last-child{
- margin-bottom:-8px;
-}
-.components-dropdown-menu__menu .components-menu-group+.components-menu-group{
- border-top:1px solid #ccc;
- margin-top:0;
- padding:8px;
-}
-.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{
- border-color:#1e1e1e;
-}
.components-duotone-picker__color-indicator:before{
background:#0000;
@@ -1159,6 +1177,19 @@ body.is-dragging-components-draggable{
margin:2px;
}
+.components-external-link{
+ text-decoration:none;
+}
+
+.components-external-link__contents{
+ text-decoration:underline;
+}
+
+.components-external-link__icon{
+ font-weight:400;
+ margin-right:.5ch;
+}
+
.components-form-toggle{
display:inline-block;
position:relative;
@@ -1449,6 +1480,13 @@ body.is-dragging-components-draggable{
background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
color:#fff;
}
+.components-form-token-field__suggestion[aria-disabled=true]{
+ color:#949494;
+ pointer-events:none;
+}
+.components-form-token-field__suggestion[aria-disabled=true].is-selected{
+ background-color:rgba(var(--wp-components-color-accent--rgb, var(--wp-admin-theme-color--rgb)), .04);
+}
@media (min-width:600px){
.components-guide{
@@ -1559,7 +1597,7 @@ body.is-dragging-components-draggable{
top:0;
z-index:1000000;
}
-.is-focusing-regions .editor-post-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions .edit-post-layout__toggle-entities-saved-states-panel,.is-focusing-regions .interface-interface-skeleton__actions .edit-post-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__sidebar .edit-post-layout__toggle-sidebar-panel,.is-focusing-regions [role=region]:focus:after,.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header{
+.is-focusing-regions .editor-post-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-entities-saved-states-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__sidebar .editor-layout__toggle-sidebar-panel,.is-focusing-regions [role=region]:focus:after,.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header{
outline:4px solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
outline-offset:-4px;
}
@@ -1687,11 +1725,15 @@ body.is-dragging-components-draggable{
background:#fff;
border-radius:4px 4px 0 0;
box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,-.1px 11.5px 16.4px -.5px #00000026;
+ box-sizing:border-box;
display:flex;
margin:40px 0 0;
overflow:hidden;
width:100%;
}
+.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{
+ box-sizing:inherit;
+}
@media (prefers-reduced-motion:reduce){
.components-modal__frame{
animation-delay:0s;
@@ -1921,6 +1963,7 @@ body.is-dragging-components-draggable{
border-bottom:1px solid #ddd;
box-sizing:initial;
display:flex;
+ flex-shrink:0;
height:47px;
justify-content:space-between;
padding:0 16px;
@@ -2042,11 +2085,15 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
}
.components-placeholder.components-placeholder{
+ align-items:flex-start;
box-sizing:border-box;
color:#1e1e1e;
+ display:flex;
+ flex-direction:column;
font-size:13px;
+ gap:16px;
margin:0;
- padding:1em;
+ padding:24px;
position:relative;
text-align:right;
width:100%;
@@ -2057,14 +2104,6 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
box-shadow:inset 0 0 0 1px #1e1e1e;
outline:1px solid #0000;
}
-@supports (position:sticky){
- .components-placeholder.components-placeholder{
- align-items:flex-start;
- display:flex;
- flex-direction:column;
- justify-content:top;
- }
-}
.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;
@@ -2079,10 +2118,9 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
align-items:center;
display:flex;
font-weight:600;
- margin-bottom:16px;
}
.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{
- margin-left:12px;
+ margin-left:4px;
fill:currentColor;
}
@media (forced-colors:active){
@@ -2098,6 +2136,8 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
display:flex;
flex-direction:row;
flex-wrap:wrap;
+ gap:16px;
+ justify-content:flex-start;
width:100%;
}
.components-placeholder__fieldset form p,.components-placeholder__fieldset p{
@@ -2117,7 +2157,6 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
font-size:16px;
line-height:normal;
- margin:0 0 0 8px;
padding:6px 8px;
transition:box-shadow .1s linear;
}
@@ -2149,24 +2188,11 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
color:#1e1e1e9e;
}
-.components-placeholder__instructions{
- margin-bottom:1em;
-}
-
.components-placeholder__error{
- margin-top:1em;
+ gap:8px;
width:100%;
}
-.components-placeholder__fieldset .components-button{
- margin-bottom:12px;
- margin-left:12px;
-}
-.components-placeholder__fieldset .components-button:last-child{
- margin-bottom:0;
- margin-left:0;
-}
-
.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{
margin-left:10px;
margin-right:10px;
@@ -2175,21 +2201,18 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
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-medium .components-button,.components-placeholder.is-medium .components-placeholder__fieldset>*,.components-placeholder.is-small .components-button,.components-placeholder.is-small .components-placeholder__fieldset>*{
+ justify-content:center;
+ width:100%;
}
-.components-placeholder.is-small .components-button{
- padding:0 8px 2px;
+.components-placeholder.is-small{
+ padding:16px;
}
.components-placeholder.has-illustration{
-webkit-backdrop-filter:blur(100px);
@@ -2200,7 +2223,7 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
box-shadow:none;
color:inherit;
display:flex;
- overflow:auto;
+ overflow:hidden;
}
.is-dark-theme .components-placeholder.has-illustration{
background-color:#0000001a;
@@ -2208,7 +2231,6 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
.components-placeholder.has-illustration .components-placeholder__fieldset{
margin-left:0;
margin-right:0;
- width:auto;
}
.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{
opacity:0;
@@ -2236,6 +2258,9 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
right:0;
top:0;
}
+.is-selected .components-placeholder.has-illustration{
+ overflow:auto;
+}
.components-placeholder__preview{
display:flex;
@@ -2368,21 +2393,13 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
stroke:#1e1e1e;
}
-.components-popover-pointer-events-trap{
- background-color:initial;
- inset:0;
- position:fixed;
- z-index:1000000;
-}
-
.components-radio-control__option{
align-items:center;
display:flex;
}
.components-radio-control__input[type=radio]{
- -webkit-appearance:none;
- appearance:none;
+ appearance:none;
border:1px solid #1e1e1e;
border-radius:2px;
border-radius:50%;
@@ -2394,6 +2411,8 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
height:24px;
line-height:normal;
margin:0 0 0 6px;
+ max-width:24px;
+ min-width:24px;
padding:0;
transition:box-shadow .1s linear;
transition:none;
@@ -2428,6 +2447,8 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
@media (min-width:600px){
.components-radio-control__input[type=radio]{
height:20px;
+ max-width:20px;
+ min-width:20px;
width:20px;
}
}
@@ -2794,6 +2815,17 @@ body.lockscroll,html.lockscroll{
outline:2px solid #0000;
}
+.components-tab-panel__tab-content:focus{
+ box-shadow:none;
+ outline:none;
+}
+.components-tab-panel__tab-content:focus-visible{
+ border-radius:2px;
+ box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+ outline:2px solid #0000;
+ outline-offset:0;
+}
+
.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{
border:1px solid #949494;
border-radius:2px;
@@ -2802,6 +2834,7 @@ body.lockscroll,html.lockscroll{
font-size:16px;
height:32px;
line-height:normal;
+ margin:0;
padding:6px 8px;
transition:box-shadow .1s linear;
width:100%;
@@ -2908,22 +2941,13 @@ body.lockscroll,html.lockscroll{
background:#1e1e1e;
}
.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{
- box-shadow:inset 0 0 0 1px var(--wp-components-color-background, #fff), 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+ box-shadow:inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:2px solid #0000;
}
.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{
min-width:48px;
- padding-left:12px;
- padding-right:12px;
-}
-.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{
- font-weight:500;
-}
-.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{
- display:inline-block;
- padding-left:0;
- padding-right:0;
- position:relative;
+ padding-left:8px;
+ padding-right:8px;
}
@keyframes components-button__appear-animation{
@@ -2970,6 +2994,7 @@ body.lockscroll,html.lockscroll{
margin:0;
}
.components-toolbar-group .components-button.components-button,.components-toolbar-group .components-button.has-icon.has-icon{
+ justify-content:center;
min-width:36px;
padding-left:6px;
padding-right:6px;
@@ -2997,14 +3022,9 @@ body.lockscroll,html.lockscroll{
}
div.components-toolbar>div{
- display:block;
+ display:flex;
margin:0;
}
-@supports (position:sticky){
- div.components-toolbar>div{
- display:flex;
- }
-}
div.components-toolbar>div+div.has-left-divider{
margin-right:6px;
overflow:visible;
@@ -3026,6 +3046,7 @@ div.components-toolbar>div+div.has-left-divider:before{
background:#000;
border-radius:2px;
color:#f0f0f0;
+ font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
font-size:12px;
line-height:1.4;
padding:4px 8px;
diff --git a/wp-includes/css/dist/components/style-rtl.min.css b/wp-includes/css/dist/components/style-rtl.min.css
index 7b269bb..48cb15c 100644
--- a/wp-includes/css/dist/components/style-rtl.min.css
+++ b/wp-includes/css/dist/components/style-rtl.min.css
@@ -1 +1 @@
-@charset "UTF-8";:root{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-delay:0s;animation-duration:1ms}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top right}.components-animate__appear.is-from-top.is-from-right{transform-origin:top left}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom right}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom left}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-delay:0s;animation-duration:1ms}}.components-animate__slide-in.is-from-left{transform:translateX(-100%)}.components-animate__slide-in.is-from-right{transform:translateX(100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content{min-width:220px;padding:16px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:right;width:100%}.components-autocomplete__result.components-button.is-selected{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;display:inline-flex}.components-button-group .components-button+.components-button{margin-right:-1px}.components-button-group .components-button:first-child{border-radius:0 2px 2px 0}.components-button-group .components-button:last-child{border-radius:2px 0 0 2px}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{align-items:center;-webkit-appearance:none;background:none;border:0;border-radius:2px;box-sizing:border-box;color:var(--wp-components-color-foreground,#1e1e1e);cursor:pointer;display:inline-flex;font-family:inherit;font-size:13px;font-weight:400;height:36px;margin:0;padding:6px 12px;text-decoration:none;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-button{transition-delay:0s;transition-duration:0s}}.components-button.is-next-40px-default-size{height:40px}.components-button:hover,.components-button[aria-expanded=true]{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button:disabled:hover,.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:3px solid #0000}.components-button.is-primary{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent-inverted,#fff);outline:1px solid #0000;text-decoration:none;text-shadow:none;white-space:nowrap}.components-button.is-primary:hover:not(:disabled){background:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-primary:active:not(:disabled){background:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));border-color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-primary:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff6;opacity:1;outline:none}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 3px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 70%,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 70%);background-size:100px 100%;border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-secondary,.components-button.is-tertiary{outline:1px solid #0000}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){box-shadow:none}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{background:#0000;color:#949494;opacity:1;transform:none}.components-button.is-secondary{background:#0000;box-shadow:inset 0 0 0 1px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:1px solid #0000;white-space:nowrap}.components-button.is-secondary:hover:not(:disabled,[aria-disabled=true]){box-shadow:inset 0 0 0 1px var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6))}.components-button.is-secondary:disabled:not(:focus),.components-button.is-secondary[aria-disabled=true]:hover:not(:focus),.components-button.is-secondary[aria-disabled=true]:not(:focus){box-shadow:inset 0 0 0 1px #ddd}.components-button.is-tertiary{background:#0000;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));white-space:nowrap}.components-button.is-tertiary:hover:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.components-button.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.08)}p+.components-button.is-tertiary{margin-right:-6px}.components-button.is-tertiary:disabled:not(:focus),.components-button.is-tertiary[aria-disabled=true]:hover:not(:focus),.components-button.is-tertiary[aria-disabled=true]:not(:focus){box-shadow:none;outline:none}.components-button.is-destructive{--wp-components-color-accent:#cc1818;--wp-components-color-accent-darker-10:#9e1313;--wp-components-color-accent-darker-20:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link){color:#cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):hover:not(:disabled){color:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) #cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):active:not(:disabled){background:#ccc}.components-button.is-link{background:none;border:0;border-radius:0;box-shadow:none;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));height:auto;margin:0;outline:none;padding:0;text-align:right;text-decoration:underline;transition-duration:.05s;transition-property:border,background,color;transition-timing-function:ease-in-out}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-delay:0s;transition-duration:0s}}.components-button.is-link:focus{border-radius:2px}.components-button:not(:disabled,[aria-disabled=true]):active{color:var(--wp-components-color-foreground,#1e1e1e)}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;background-image:linear-gradient(45deg,#fafafa 33%,#e0e0e0 0,#e0e0e0 70%,#fafafa 0);background-size:100px 100%;opacity:1}@media (prefers-reduced-motion:reduce){.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-duration:0s}}.components-button.is-compact{height:32px}.components-button.is-compact.has-icon:not(.has-text){min-width:32px;padding:0;width:32px}.components-button.is-small{font-size:11px;height:24px;line-height:22px;padding:0 8px}.components-button.is-small.has-icon:not(.has-text){min-width:24px;padding:0;width:24px}.components-button.has-icon{justify-content:center;min-width:36px;padding:6px}.components-button.has-icon.is-next-40px-default-size{min-width:40px}.components-button.has-icon .dashicon{align-items:center;box-sizing:initial;display:inline-flex;justify-content:center;padding:2px}.components-button.has-icon.has-text{gap:4px;justify-content:start;padding-left:12px;padding-right:8px}.components-button.is-pressed{background:var(--wp-components-color-foreground,#1e1e1e);color:var(--wp-components-color-foreground-inverted,#fff)}.components-button.is-pressed:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000}.components-button.is-pressed:hover:not(:disabled){background:var(--wp-components-color-foreground,#1e1e1e);color:var(--wp-components-color-foreground-inverted,#fff)}.components-button svg{fill:currentColor;outline:none}@media (forced-colors:active){.components-button svg{fill:CanvasText}}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:right 200px top 0}}.components-checkbox-control__input[type=checkbox]{-webkit-appearance:none;appearance:none;background:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:0 0 0 #0000;clear:none;color:#1e1e1e;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;line-height:0;margin:0 0 0 4px;outline:0;padding:6px 8px;padding:0!important;text-align:center;transition:box-shadow .1s linear;transition:none;transition:border-color .1s ease-in-out;vertical-align:top;width:24px}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:#1e1e1e9e}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:#1e1e1e9e}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px -5px 0 0}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"";display:inline-block;float:right;font:normal 30px/1 dashicons;vertical-align:middle;width:16px;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]:disabled,.components-checkbox-control__input[type=checkbox][aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:20px;width:20px}}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-delay:0s;transition-duration:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:2px}.components-checkbox-control__input[type=checkbox]:checked,.components-checkbox-control__input[type=checkbox]:indeterminate{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-checkbox-control__input[type=checkbox]:checked::-ms-check,.components-checkbox-control__input[type=checkbox]:indeterminate::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{display:inline-block;height:24px;margin-left:12px;position:relative;vertical-align:middle;width:24px}@media (min-width:600px){.components-checkbox-control__input-container{height:20px;width:20px}}svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{fill:#fff;cursor:pointer;height:24px;pointer-events:none;position:absolute;right:0;top:0;-webkit-user-select:none;user-select:none;width:24px}@media (min-width:600px){svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{right:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;min-width:188px;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end;margin-top:12px}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px;position:relative;z-index:1}.components-circular-option-picker>:not(.components-circular-option-picker__swatches){position:relative;z-index:0}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;transform:scale(1);transition:transform .1s ease;vertical-align:top;width:28px;will-change:transform}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-delay:0s;transition-duration:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='none'%3E%3Cpath fill='%23555D65' d='M6 8V6H4v2zm2 0V6h2v2zm2 8H8v-2h2zm2 0v-2h2v2zm0 2v-2h-2v2H8v2h2v-2zm2 0v2h-2v-2zm2 0h-2v-2h2z'/%3E%3Cpath fill='%23555D65' fill-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2zm-2-4v-2h2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555D65' d='M18 18v2h-2v-2z'/%3E%3Cpath fill='%23555D65' fill-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-2v2zm0 2v-2H6v2zm2 0v-2h2v2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555D65' fill-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-2v2H8V0H6v2H4zm0 4V2H2v2zm2 0V2h2v2zm0 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-2v2H8v2z' clip-rule='evenodd'/%3E%3C/svg%3E");border-radius:50%;bottom:1px;content:"";left:1px;position:absolute;right:1px;top:1px;z-index:-1}.components-circular-option-picker__option{background:#0000;border:none;border-radius:50%;box-shadow:inset 0 0 0 14px;cursor:pointer;display:inline-block;height:100%;transition:box-shadow .1s ease;vertical-align:top;width:100%}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-delay:0s;transition-duration:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option[aria-pressed=true],.components-circular-option-picker__option[aria-selected=true]{box-shadow:inset 0 0 0 4px;overflow:visible;position:relative;z-index:1}.components-circular-option-picker__option[aria-pressed=true]+svg,.components-circular-option-picker__option[aria-selected=true]+svg{border-radius:50%;pointer-events:none;position:absolute;right:2px;top:2px;z-index:2}.components-circular-option-picker__option:after{border:1px solid #0000;border-radius:50%;bottom:-1px;box-shadow:inset 0 0 0 1px #0003;box-sizing:inherit;content:"";left:-1px;position:absolute;right:-1px;top:-1px}.components-circular-option-picker__option:focus:after{border:2px solid #757575;border-radius:50%;box-shadow:inset 0 0 0 2px #fff;content:"";height:calc(100% + 4px);position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:calc(100% + 4px)}.components-circular-option-picker__option.components-button:focus{background-color:initial;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{background:#fff;color:#fff}.components-circular-option-picker__dropdown-link-action{margin-left:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.components-palette-edit__popover-gradient-picker{padding:8px;width:260px}.components-dropdown-menu__menu .components-palette-edit__menu-button{width:100%}.component-color-indicator{background:#fff linear-gradient(45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0);border-radius:50%;box-shadow:inset 0 0 0 1px #0003;display:inline-block;height:20px;padding:0;width:20px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{border:none;box-shadow:none;font-family:inherit;font-size:16px;line-height:inherit;margin:0;min-height:auto;padding:2px;width:100%}@media (min-width:600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{box-shadow:none;outline:none}.components-combobox-control__suggestions-container{align-items:flex-start;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:0;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-combobox-control__suggestions-container{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:#1e1e1e9e}.components-combobox-control__suggestions-container::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:#1e1e1e9e}.components-combobox-control__suggestions-container:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-combobox-control__reset.components-button{display:flex;height:16px;min-width:16px;padding:0}.components-color-palette__custom-color-wrapper{position:relative;z-index:0}.components-color-palette__custom-color-button{background:none;border:none;border-radius:2px 2px 0 0;box-shadow:inset 0 0 0 1px #0003;box-sizing:border-box;cursor:pointer;height:64px;outline:1px solid #0000;position:relative;width:100%}.components-color-palette__custom-color-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-width:2px}.components-color-palette__custom-color-button:after{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,#0000 0,#0000 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,#0000 0,#0000 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,24px 24px;background-size:48px 48px;content:"";height:100%;position:absolute;right:0;top:0;width:100%;z-index:-1}.components-color-palette__custom-color-text-wrapper{border-radius:0 0 2px 2px;box-shadow:inset 0 -1px 0 0 #0003,inset -1px 0 0 0 #0003,inset 1px 0 0 0 #0003;font-size:13px;padding:12px 16px;position:relative}.components-color-palette__custom-color-name{color:var(--wp-components-color-foreground,#1e1e1e);margin:0 1px}.components-color-palette__custom-color-value{color:#757575}.components-color-palette__custom-color-value--is-hex{text-transform:uppercase}.components-color-palette__custom-color-value:empty:after{content:"​";visibility:hidden}.components-custom-gradient-picker__gradient-bar{border-radius:2px;height:48px;position:relative;width:100%;z-index:1}.components-custom-gradient-picker__gradient-bar.has-gradient{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,#0000 0,#0000 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,#0000 0,#0000 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background{inset:0;position:absolute}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{margin-left:auto;margin-right:auto;position:relative;width:calc(100% - 48px)}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-dropdown{display:flex;height:16px;position:absolute;top:16px;width:16px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown{background:#fff;border-radius:50%;color:#1e1e1e;height:inherit;min-width:16px;padding:2px;position:relative;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 #00000040;height:inherit;outline:2px solid #0000;padding:0;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 #00000040;outline:1.5px solid #0000}.components-custom-gradient-picker__remove-control-point-wrapper{padding-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;height:20px;width:20px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-right:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #949494;border-radius:2px}.components-custom-gradient-picker__ui-line{position:relative;z-index:0}.components-custom-select-control{font-size:13px;position:relative}.components-custom-select-control__button{outline:0;position:relative;text-align:right}.components-custom-select-control__hint{color:#949494;margin-right:10px}.components-custom-select-control__menu{background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;max-height:400px;min-width:100%;outline:none;overflow:auto;padding:0;position:absolute;transition:none;z-index:1000000}.components-custom-select-control__menu[aria-hidden=true]{display:none}.components-custom-select-control__item{align-items:center;cursor:default;display:grid;grid-template-columns:auto auto;line-height:28px;list-style-type:none;padding:8px 16px}.components-custom-select-control__item:not(.is-next-40px-default-size){padding:8px}.components-custom-select-control__item.has-hint{grid-template-columns:auto auto 30px}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item .components-custom-select-control__item-hint{color:#949494;padding-left:4px;text-align:left}.components-custom-select-control__item .components-custom-select-control__item-icon{margin-right:auto}.components-custom-select-control__item:last-child{margin-bottom:0}.block-editor-dimension-control .components-base-control__field{align-items:center;display:flex}.block-editor-dimension-control .components-base-control__label{align-items:center;display:flex;margin-bottom:0;margin-left:1em}.block-editor-dimension-control .components-base-control__label .dashicon{margin-left:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{height:50px;position:fixed;right:-1000px;width:50px}.components-draggable__clone{background:#0000;padding:0;pointer-events:none;position:fixed;z-index:1000000000}.components-drop-zone{border-radius:2px;bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;visibility:hidden;z-index:40}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone__content{align-items:center;background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));bottom:0;color:#fff;display:flex;height:100%;justify-content:center;left:0;position:absolute;right:0;text-align:center;top:0;width:100%;z-index:50}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{line-height:0;margin:0 auto 8px;fill:currentColor;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content{padding:8px}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown-menu__toggle{vertical-align:top}.components-dropdown-menu__menu{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{cursor:pointer;outline:none;padding:6px;white-space:nowrap;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;overflow:visible;position:relative}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{background-color:#ddd;box-sizing:initial;content:"";display:block;height:1px;left:0;position:absolute;right:0;top:-3px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-menu-item.is-active svg{background:#1e1e1e;border-radius:1px;box-shadow:0 0 0 1px #1e1e1e;color:#fff}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{height:auto;min-height:36px;padding-left:8px;padding-right:8px;text-align:right}.components-dropdown-menu__menu .components-menu-group{margin:0 -8px;padding:8px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-8px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-8px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-top:1px solid #ccc;margin-top:0;padding:8px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-duotone-picker__color-indicator:before{background:#0000}.components-duotone-picker__color-indicator>.components-button,.components-duotone-picker__color-indicator>.components-button.is-pressed:hover:not(:disabled){background:linear-gradient(45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0);color:#0000}.components-duotone-picker__color-indicator>.components-button:not([aria-disabled=true]):active{color:#0000}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-list-picker__swatch-button{padding:6px}.components-color-list-picker__swatch-color{margin:2px}.components-form-toggle{display:inline-block;position:relative}.components-form-toggle .components-form-toggle__track{background-color:#fff;border:1px solid #1e1e1e;border-radius:9px;box-sizing:border-box;content:"";display:inline-block;height:18px;overflow:hidden;position:relative;transition:background-color .2s ease,border-color .2s ease;vertical-align:top;width:36px}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-delay:0s;transition-duration:0s}}.components-form-toggle .components-form-toggle__track:after{border-top:18px solid #0000;box-sizing:border-box;content:"";inset:0;opacity:0;position:absolute;transition:opacity .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track:after{transition-delay:0s;transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{background-color:#1e1e1e;border:6px solid #0000;border-radius:50%;box-sizing:border-box;display:block;height:12px;position:absolute;right:3px;top:3px;transition:transform .2s ease,background-color .2s ease-out;width:12px}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-delay:0s;transition-duration:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-toggle.is-checked .components-form-toggle__track:after{opacity:1}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(-18px)}.components-disabled .components-form-toggle,.components-form-toggle.is-disabled{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{border:none;height:100%;margin:0;opacity:0;padding:0;position:absolute;right:0;top:0;width:100%;z-index:1}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;cursor:text;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:0;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-form-token-field__input-container::-webkit-input-placeholder{color:#1e1e1e9e}.components-form-token-field__input-container::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-form-token-field__input-container:-ms-input-placeholder{color:#1e1e1e9e}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-form-token-field__input-container input[type=text].components-form-token-field__input{background:inherit;border:0;box-shadow:none;color:#1e1e1e;display:inline-block;flex:1;font-family:inherit;font-size:16px;margin-right:4px;max-width:100%;min-height:24px;min-width:50px;padding:0;width:100%}@media (min-width:600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{box-shadow:none;outline:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__token{color:#1e1e1e;display:flex;font-size:13px;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-borderless{padding:0 0 0 24px;position:relative}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:#0000;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:#0000;color:#757575;left:0;padding:0;position:absolute;top:1px}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{border-radius:0 4px 4px 0;color:#cc1818;padding:0 6px 0 4px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{background:#ddd;display:inline-block;height:auto;line-height:24px;min-width:unset;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{animation-delay:0s;animation-duration:1ms;transition-delay:0s;transition-duration:0s}}.components-form-token-field__token-text{border-radius:0 2px 2px 0;overflow:hidden;padding:0 8px 0 0;text-overflow:ellipsis;white-space:nowrap}.components-form-token-field__remove-token.components-button{border-radius:2px 0 0 2px;color:#1e1e1e;cursor:pointer;line-height:10px;overflow:initial;padding:0 2px}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{box-shadow:inset 0 1px 0 0 #949494;flex:1 0 100%;list-style:none;margin:0;max-height:128px;min-width:100%;overflow-y:auto;padding:0;transition:all .15s ease-in-out}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-delay:0s;transition-duration:0s}}.components-form-token-field__suggestion{box-sizing:border-box;color:#1e1e1e;cursor:pointer;display:block;font-size:13px;margin:0;min-height:32px;padding:8px 12px}.components-form-token-field__suggestion.is-selected{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__content{border-radius:2px;margin-top:0;padding:0}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;height:60px;padding:0;position:sticky}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 0 0 8px;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:36px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}.components-guide__page-control{margin:0;text-align:center}.components-guide__page-control li{display:inline-block;margin:0}.components-guide__page-control .components-button{color:#e0e0e0;height:30px;margin:-6px 0;min-width:20px}.components-guide__page-control li[aria-current=step] .components-button{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-modal__frame.components-guide{border:none;max-height:575px;min-width:312px}@media (max-width:600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{position:absolute}.components-button.components-guide__back-button{right:32px}.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{left:32px}[role=region]{position:relative}.is-focusing-regions [role=region]:focus:after{bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions .editor-post-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions .edit-post-layout__toggle-entities-saved-states-panel,.is-focusing-regions .interface-interface-skeleton__actions .edit-post-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__sidebar .edit-post-layout__toggle-sidebar-panel,.is-focusing-regions [role=region]:focus:after,.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header{outline:4px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-offset:-4px}.components-menu-group+.components-menu-group{border-top:1px solid #1e1e1e;margin-top:8px;padding-top:8px}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group__label{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;margin-top:4px;padding:0 8px;text-transform:uppercase;white-space:nowrap}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child{box-sizing:initial;padding-left:48px}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right{margin-left:-2px;margin-right:24px}.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-right:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:8px;margin-right:-2px}.components-menu-item__button.components-button.is-primary,.components-menu-item__button.is-primary{justify-content:center}.components-menu-item__button.components-button.is-primary .components-menu-item__item,.components-menu-item__button.is-primary .components-menu-item__item{margin-left:0}.components-menu-item__button.components-button:disabled.is-tertiary,.components-menu-item__button.components-button[aria-disabled=true].is-tertiary,.components-menu-item__button:disabled.is-tertiary,.components-menu-item__button[aria-disabled=true].is-tertiary{background:none;color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));opacity:.3}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-left:auto}.components-menu-item__info{color:#757575;font-size:12px;margin-top:4px;white-space:normal}.components-menu-item__item{align-items:center;display:inline-flex;margin-left:auto;min-width:160px;white-space:nowrap}.components-menu-item__shortcut{align-self:center;color:currentColor;display:none;margin-left:0;margin-right:auto;padding-right:24px}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice svg,.components-menu-items-choice.components-button svg{margin-left:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-right:12px}.components-modal__screen-overlay{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards;background-color:#00000059;bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:100000}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-delay:0s;animation-duration:1ms}}.components-modal__frame{animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards;background:#fff;border-radius:4px 4px 0 0;box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,-.1px 11.5px 16.4px -.5px #00000026;display:flex;margin:40px 0 0;overflow:hidden;width:100%}@media (prefers-reduced-motion:reduce){.components-modal__frame{animation-delay:0s;animation-duration:1ms}}@media (min-width:600px){.components-modal__frame{border-radius:4px;margin:auto;max-height:calc(100% - 120px);max-width:calc(100% - 32px);min-width:350px;width:auto}}@media (min-width:600px) and (min-width:600px){.components-modal__frame.is-full-screen{height:calc(100% - 32px);max-height:none;width:calc(100% - 32px)}}@media (min-width:600px) and (min-width:782px){.components-modal__frame.is-full-screen{height:calc(100% - 80px);max-width:none;width:calc(100% - 80px)}}@media (min-width:600px){.components-modal__frame.has-size-large,.components-modal__frame.has-size-medium,.components-modal__frame.has-size-small{width:100%}.components-modal__frame.has-size-small{max-width:384px}.components-modal__frame.has-size-medium{max-width:512px}.components-modal__frame.has-size-large{max-width:840px}}@media (min-width:960px){.components-modal__frame{max-height:70%}}@keyframes components-modal__appear-animation{0%{transform:translateY(32px)}to{transform:translateY(0)}}.components-modal__header{align-items:center;border-bottom:1px solid #0000;box-sizing:border-box;display:flex;flex-direction:row;height:72px;justify-content:space-between;padding:24px 32px 8px;position:absolute;right:0;top:0;width:100%;z-index:10}.components-modal__header .components-modal__header-heading{font-size:1.2rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;right:8px}.components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header{border-bottom-color:#ddd}.components-modal__header+p{margin-top:0}.components-modal__header-heading-container{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:right}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-height:36px;max-width:36px;padding:8px}.components-modal__content{flex:1;margin-top:72px;overflow:auto;padding:4px 32px 32px}.components-modal__content.hide-header{margin-top:0;padding-top:32px}.components-modal__content.is-scrollable:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000;outline-offset:-2px}.components-notice{align-items:center;background-color:#fff;border-right:4px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 12px}.components-notice.is-dismissible{position:relative}.components-notice.is-success{background-color:#eff9f1;border-right-color:#4ab866}.components-notice.is-warning{background-color:#fef8ee;border-right-color:#f0b849}.components-notice.is-error{background-color:#f4a2a2;border-right-color:#cc1818}.components-notice__content{flex-grow:1;margin:4px 0 4px 25px}.components-notice__actions{display:flex;flex-wrap:wrap}.components-notice__action.components-button{margin-left:8px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-right:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{align-self:flex-start;color:#757575;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{background-color:initial;color:#1e1e1e}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{box-sizing:border-box;max-width:100vw}.components-notice-list .components-notice__content{line-height:2;margin-bottom:12px;margin-top:12px}.components-notice-list .components-notice__action.components-button{display:block;margin-right:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{align-items:center;border-bottom:1px solid #ddd;box-sizing:initial;display:flex;height:47px;justify-content:space-between;padding:0 16px}.components-panel__header h2{color:inherit;font-size:inherit;margin:0}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;font-size:inherit;margin-bottom:0;margin-top:0;padding:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-delay:0s;transition-duration:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{border:none;box-shadow:none;color:#1e1e1e;font-weight:500;height:auto;outline:none;padding:16px 16px 16px 48px;position:relative;text-align:right;transition:background .1s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-delay:0s;transition-duration:0s}}.components-panel__body-toggle.components-button:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-panel__body-toggle.components-button .components-panel__arrow{color:#1e1e1e;left:16px;position:absolute;top:50%;transform:translateY(-50%);fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-delay:0s;transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{-ms-filter:fliph;filter:FlipH;margin-top:-10px;transform:scaleX(-1)}.components-panel__icon{color:#757575;margin:-2px 6px -2px 0}.components-panel__body-toggle-icon{margin-left:-5px}.components-panel__color-title{float:right;height:19px}.components-panel__row{align-items:center;display:flex;justify-content:space-between;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{flex-shrink:0;margin-left:12px;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{box-sizing:border-box;color:#1e1e1e;font-size:13px;margin:0;padding:1em;position:relative;text-align:right;width:100%;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid #0000}@supports (position:sticky){.components-placeholder.components-placeholder{align-items:flex-start;display:flex;flex-direction:column;justify-content:top}}.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;font-weight:400;letter-spacing:normal;line-height:normal;text-transform:none}.components-placeholder__label{align-items:center;display:flex;font-weight:600;margin-bottom:16px}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{margin-left:12px;fill:currentColor}@media (forced-colors:active){.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:CanvasText}}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;flex:1 1 auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin:0 0 0 8px;padding:6px 8px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:#1e1e1e9e}.components-placeholder__input[type=url]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-placeholder__input[type=url]:-ms-input-placeholder{color:#1e1e1e9e}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__fieldset .components-button{margin-bottom:12px;margin-left:12px}.components-placeholder__fieldset .components-button:last-child{margin-bottom:0;margin-left:0}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-left:0}.components-placeholder.is-large .components-placeholder__label{font-size:18pt;font-weight:400}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset .components-button,.components-placeholder.is-small .components-placeholder__fieldset .components-button{margin-left:auto}.components-placeholder.is-small .components-button{padding:0 8px 2px}.components-placeholder.has-illustration{-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);backface-visibility:hidden;background-color:initial;border-radius:2px;box-shadow:none;color:inherit;display:flex;overflow:auto}.is-dark-theme .components-placeholder.has-illustration{background-color:#0000001a}.components-placeholder.has-illustration .components-placeholder__fieldset{margin-left:0;margin-right:0;width:auto}.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{opacity:0;pointer-events:none;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{transition-delay:0s;transition-duration:0s}}.is-selected>.components-placeholder.has-illustration .components-button,.is-selected>.components-placeholder.has-illustration .components-placeholder__instructions,.is-selected>.components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.components-placeholder.has-illustration:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.components-placeholder__preview{display:flex;justify-content:center}.components-placeholder__illustration{box-sizing:initial;height:100%;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:100%;stroke:currentColor;opacity:.25}.components-popover{box-sizing:border-box;will-change:transform;z-index:1000000}.components-popover *,.components-popover :after,.components-popover :before{box-sizing:inherit}.components-popover.is-expanded{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1000000!important}.components-popover__content{background:#fff;border-radius:2px;box-shadow:0 0 0 1px #ccc,0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;box-sizing:border-box;width:min-content}.is-alternate .components-popover__content{box-shadow:0 0 0 1px #1e1e1e}.is-unstyled .components-popover__content{background:none;border-radius:0;box-shadow:none}.components-popover.is-expanded .components-popover__content{box-shadow:0 -1px 0 0 #ccc;height:calc(100% - 48px);overflow-y:visible;position:static;width:auto}.components-popover.is-expanded.is-alternate .components-popover__content{box-shadow:0 -1px 0 #1e1e1e}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 16px 0 8px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-button{z-index:5}.components-popover__arrow{display:flex;height:14px;pointer-events:none;position:absolute;width:14px}.components-popover__arrow:before{background-color:#fff;content:"";height:2px;left:1px;position:absolute;right:1px;top:-1px}.components-popover__arrow.is-top{bottom:-14px!important;transform:rotate(0)}.components-popover__arrow.is-right{left:-14px!important;transform:rotate(90deg)}.components-popover__arrow.is-bottom{top:-14px!important;transform:rotate(180deg)}.components-popover__arrow.is-left{right:-14px!important;transform:rotate(-90deg)}.components-popover__triangle{display:block;flex:1}.components-popover__triangle-bg{fill:#fff}.components-popover__triangle-border{fill:#0000;stroke-width:1px;stroke:#ccc}.is-alternate .components-popover__triangle-border{stroke:#1e1e1e}.components-popover-pointer-events-trap{background-color:initial;inset:0;position:fixed;z-index:1000000}.components-radio-control__option{align-items:center;display:flex}.components-radio-control__input[type=radio]{-webkit-appearance:none;appearance:none;border:1px solid #1e1e1e;border-radius:2px;border-radius:50%;box-shadow:0 0 0 #0000;cursor:pointer;display:inline-flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;margin:0 0 0 6px;padding:0;transition:box-shadow .1s linear;transition:none;width:24px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:#1e1e1e9e}.components-radio-control__input[type=radio]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:#1e1e1e9e}@media (min-width:600px){.components-radio-control__input[type=radio]{height:20px;width:20px}}.components-radio-control__input[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:8px;margin:0;transform:translate(-7px,7px);width:8px}@media (min-width:600px){.components-radio-control__input[type=radio]:checked:before{transform:translate(-5px,5px)}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.components-radio-control__input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px var(--wp-components-color-background,#fff),0 0 0 4px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-radio-control__input[type=radio]:checked{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-radio-control__input[type=radio]:checked:before{border-radius:50%;content:""}.components-radio-control__label{cursor:pointer}.components-resizable-box__handle{display:none;height:23px;width:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__container>img{width:inherit}.components-resizable-box__handle:after{background:#fff;border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));content:"";cursor:inherit;display:block;height:15px;left:calc(50% - 8px);outline:2px solid #0000;position:absolute;top:calc(50% - 8px);width:15px}.components-resizable-box__side-handle:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:2px;content:"";cursor:inherit;display:block;height:3px;left:calc(50% - 1px);opacity:0;position:absolute;top:calc(50% - 1px);transition:transform .1s ease-in;width:3px;will-change:transform}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-delay:0s;transition-duration:0s}}.components-resizable-box__corner-handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{border-left:0;border-right:0;right:0;width:100%}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{border-bottom:0;border-top:0;height:100%;top:0}.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation-delay:0s;animation-duration:1ms}}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation-delay:0s;animation-duration:1ms}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}@keyframes components-resizable-box__left-right-animation{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px}.components-responsive-wrapper{align-items:center;display:flex;justify-content:center;max-width:100%;position:relative}.components-responsive-wrapper__content{display:block;max-width:100%;width:100%}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background:#000000d9;border-radius:2px;box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;box-sizing:border-box;color:#fff;cursor:pointer;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;max-width:600px;padding:12px 20px;pointer-events:auto;width:100%}@media (min-width:600px){.components-snackbar{width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{padding-right:24px;position:relative}.components-snackbar .components-snackbar__icon{position:absolute;right:-8px;top:-2.9px}.components-snackbar .components-snackbar__dismiss-button{cursor:pointer;margin-right:24px}.components-snackbar__action.components-button{color:#fff;flex-shrink:0;height:auto;line-height:1.4;margin-right:32px;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){background-color:initial;text-decoration:underline}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{box-shadow:none;color:#fff;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#fff;text-decoration:none}.components-snackbar__content{align-items:baseline;display:flex;justify-content:space-between;line-height:1.4}.components-snackbar-list{box-sizing:border-box;pointer-events:none;position:absolute;width:100%;z-index:100000}.components-snackbar-list__notice-container{padding-top:8px;position:relative}.components-tab-panel__tabs{align-items:stretch;display:flex;flex-direction:row}.components-tab-panel__tabs[aria-orientation=vertical]{flex-direction:column}.components-tab-panel__tabs-item{background:#0000;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-right:0;padding:3px 16px;position:relative}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-tab-panel__tabs-item:after{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-tab-panel__tabs-item:after{transition-delay:0s;transition-duration:0s}}.components-tab-panel__tabs-item.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid #0000;outline-offset:-1px}.components-tab-panel__tabs-item:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 #0000;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-tab-panel__tabs-item:before{transition-delay:0s;transition-duration:0s}}.components-tab-panel__tabs-item:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:32px;line-height:normal;padding:6px 8px;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.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:#1e1e1e9e}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:#1e1e1e9e}.components-text-control__input.is-next-40px-default-size,.components-text-control__input[type=color].is-next-40px-default-size,.components-text-control__input[type=date].is-next-40px-default-size,.components-text-control__input[type=datetime-local].is-next-40px-default-size,.components-text-control__input[type=datetime].is-next-40px-default-size,.components-text-control__input[type=email].is-next-40px-default-size,.components-text-control__input[type=month].is-next-40px-default-size,.components-text-control__input[type=number].is-next-40px-default-size,.components-text-control__input[type=password].is-next-40px-default-size,.components-text-control__input[type=tel].is-next-40px-default-size,.components-text-control__input[type=text].is-next-40px-default-size,.components-text-control__input[type=time].is-next-40px-default-size,.components-text-control__input[type=url].is-next-40px-default-size,.components-text-control__input[type=week].is-next-40px-default-size{height:40px}.components-tip{color:#757575;display:flex}.components-tip svg{align-self:center;fill:#f0b849;flex-shrink:0;margin-left:16px}.components-tip p{margin:0}.components-accessible-toolbar{border:1px solid #1e1e1e;border-radius:2px;display:inline-flex;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-left:none}.components-accessible-toolbar.is-unstyled{border:none}.components-accessible-toolbar.is-unstyled>.components-toolbar-group{border-left:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{height:48px;padding-left:16px;padding-right:16px;position:relative;z-index:1}.components-accessible-toolbar .components-button:focus:not(:disabled),.components-toolbar .components-button:focus:not(:disabled){box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards;border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-delay:0s;animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{margin-left:auto;margin-right:auto;position:relative}.components-accessible-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed:hover{background:#0000}.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 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000}.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{min-width:48px;padding-left:12px;padding-right:12px}.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{font-weight:500}.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{display:inline-block;padding-left:0;padding-right:0;position:relative}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 0 5px 10px}.components-toolbar__control.components-button[data-subscript]:after{bottom:10px;content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;left:8px;line-height:12px;position:absolute}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{background-color:#fff;border-left:1px solid #1e1e1e;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0;min-height:48px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar-group .components-button.components-button,.components-toolbar-group .components-button.has-icon.has-icon{min-width:36px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-button.components-button svg,.components-toolbar-group .components-button.has-icon.has-icon svg{min-width:24px}.components-toolbar-group .components-button.components-button:before,.components-toolbar-group .components-button.has-icon.has-icon:before{left:2px;right:2px}.components-toolbar{background-color:#fff;border:1px solid #1e1e1e;display:inline-flex;flex-shrink:0;flex-wrap:wrap;margin:0;min-height:48px}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:block;margin:0}@supports (position:sticky){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-right:6px;overflow:visible;position:relative}div.components-toolbar>div+div.has-left-divider:before{background-color:#ddd;box-sizing:initial;content:"";display:inline-block;height:20px;position:absolute;right:-3px;top:8px;width:1px}.components-tooltip{background:#000;border-radius:2px;color:#f0f0f0;font-size:12px;line-height:1.4;padding:4px 8px;text-align:center;z-index:1000002}.components-tooltip__shortcut{margin-right:8px} \ No newline at end of file
+@charset "UTF-8";:root{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-delay:0s;animation-duration:1ms}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top right}.components-animate__appear.is-from-top.is-from-right{transform-origin:top left}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom right}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom left}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-delay:0s;animation-duration:1ms}}.components-animate__slide-in.is-from-left{transform:translateX(-100%)}.components-animate__slide-in.is-from-right{transform:translateX(100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content{min-width:200px;padding:8px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:right;width:100%}.components-autocomplete__result.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.components-autocomplete__result.components-button.is-selected,.components-autocomplete__result.components-button:not(:disabled,[aria-disabled=true]):active{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;display:inline-flex}.components-button-group .components-button+.components-button{margin-right:-1px}.components-button-group .components-button:first-child{border-radius:0 2px 2px 0}.components-button-group .components-button:last-child{border-radius:2px 0 0 2px}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{align-items:center;-webkit-appearance:none;background:none;border:0;border-radius:2px;box-sizing:border-box;color:var(--wp-components-color-foreground,#1e1e1e);cursor:pointer;display:inline-flex;font-family:inherit;font-size:13px;font-weight:400;height:36px;margin:0;padding:6px 12px;text-decoration:none;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-button{transition-delay:0s;transition-duration:0s}}.components-button.is-next-40px-default-size{height:40px}.components-button:hover,.components-button[aria-expanded=true]{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button:disabled:hover,.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:3px solid #0000}.components-button.is-primary{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent-inverted,#fff);outline:1px solid #0000;text-decoration:none;text-shadow:none;white-space:nowrap}.components-button.is-primary:hover:not(:disabled){background:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-primary:active:not(:disabled){background:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));border-color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-primary:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff6;opacity:1;outline:none}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 70%,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 70%);background-size:100px 100%;border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-secondary,.components-button.is-tertiary{outline:1px solid #0000}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){box-shadow:none}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{background:#0000;color:#949494;opacity:1;transform:none}.components-button.is-secondary{background:#0000;box-shadow:inset 0 0 0 1px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:1px solid #0000;white-space:nowrap}.components-button.is-secondary:hover:not(:disabled,[aria-disabled=true]){box-shadow:inset 0 0 0 1px var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6))}.components-button.is-secondary:disabled:not(:focus),.components-button.is-secondary[aria-disabled=true]:hover:not(:focus),.components-button.is-secondary[aria-disabled=true]:not(:focus){box-shadow:inset 0 0 0 1px #ddd}.components-button.is-tertiary{background:#0000;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));white-space:nowrap}.components-button.is-tertiary:hover:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.components-button.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.08)}p+.components-button.is-tertiary{margin-right:-6px}.components-button.is-tertiary:disabled:not(:focus),.components-button.is-tertiary[aria-disabled=true]:hover:not(:focus),.components-button.is-tertiary[aria-disabled=true]:not(:focus){box-shadow:none;outline:none}.components-button.is-destructive{--wp-components-color-accent:#cc1818;--wp-components-color-accent-darker-10:#9e1313;--wp-components-color-accent-darker-20:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link){color:#cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):hover:not(:disabled){color:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) #cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):active:not(:disabled){background:#ccc}.components-button.is-link{background:none;border:0;border-radius:0;box-shadow:none;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));height:auto;margin:0;outline:none;padding:0;text-align:right;text-decoration:underline;transition-duration:.05s;transition-property:border,background,color;transition-timing-function:ease-in-out}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-delay:0s;transition-duration:0s}}.components-button.is-link:focus{border-radius:2px}.components-button:not(:disabled,[aria-disabled=true]):active{color:var(--wp-components-color-foreground,#1e1e1e)}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;background-image:linear-gradient(45deg,#fafafa 33%,#e0e0e0 0,#e0e0e0 70%,#fafafa 0);background-size:100px 100%;opacity:1}@media (prefers-reduced-motion:reduce){.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-duration:0s}}.components-button.is-compact{height:32px}.components-button.is-compact.has-icon:not(.has-text){min-width:32px;padding:0;width:32px}.components-button.is-small{font-size:11px;height:24px;line-height:22px;padding:0 8px}.components-button.is-small.has-icon:not(.has-text){min-width:24px;padding:0;width:24px}.components-button.has-icon{justify-content:center;min-width:36px;padding:6px}.components-button.has-icon.is-next-40px-default-size{min-width:40px}.components-button.has-icon .dashicon{align-items:center;box-sizing:initial;display:inline-flex;justify-content:center;padding:2px}.components-button.has-icon.has-text{gap:4px;justify-content:start;padding-left:12px;padding-right:8px}.components-button.is-pressed{background:var(--wp-components-color-foreground,#1e1e1e);color:var(--wp-components-color-foreground-inverted,#fff)}.components-button.is-pressed:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000}.components-button.is-pressed:hover:not(:disabled){background:var(--wp-components-color-foreground,#1e1e1e);color:var(--wp-components-color-foreground-inverted,#fff)}.components-button svg{fill:currentColor;outline:none}@media (forced-colors:active){.components-button svg{fill:CanvasText}}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:right 200px top 0}}.components-checkbox-control{--checkbox-input-size:24px}@media (min-width:600px){.components-checkbox-control{--checkbox-input-size:20px}}.components-checkbox-control__label{line-height:var(--checkbox-input-size)}.components-checkbox-control__input[type=checkbox]{appearance:none;background:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:0 0 0 #0000;clear:none;color:#1e1e1e;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:var(--checkbox-input-size);line-height:normal;line-height:0;margin:0 0 0 4px;outline:0;padding:6px 8px;padding:0!important;text-align:center;transition:box-shadow .1s linear;transition:none;transition:border-color .1s ease-in-out;vertical-align:top;width:var(--checkbox-input-size)}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:#1e1e1e9e}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:#1e1e1e9e}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px -5px 0 0}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"";display:inline-block;float:right;font:normal 30px/1 dashicons;vertical-align:middle;width:16px;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]:disabled,.components-checkbox-control__input[type=checkbox][aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-delay:0s;transition-duration:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:2px}.components-checkbox-control__input[type=checkbox]:checked,.components-checkbox-control__input[type=checkbox]:indeterminate{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-checkbox-control__input[type=checkbox]:checked::-ms-check,.components-checkbox-control__input[type=checkbox]:indeterminate::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{aspect-ratio:1;display:inline-block;flex-shrink:0;margin-left:12px;position:relative;vertical-align:middle;width:var(--checkbox-input-size)}svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{--checkmark-size:var(--checkbox-input-size);fill:#fff;cursor:pointer;height:var(--checkmark-size);pointer-events:none;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);-webkit-user-select:none;user-select:none;width:var(--checkmark-size)}@media (min-width:600px){svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{--checkmark-size:calc(var(--checkbox-input-size) + 4px)}}.components-checkbox-control__help{display:inline-block;margin-inline-start:calc(var(--checkbox-input-size) + 12px)}.components-circular-option-picker{display:inline-block;min-width:188px;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end;margin-top:12px}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px;position:relative;z-index:1}.components-circular-option-picker>:not(.components-circular-option-picker__swatches){position:relative;z-index:0}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;transform:scale(1);transition:transform .1s ease;vertical-align:top;width:28px;will-change:transform}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-delay:0s;transition-duration:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='none'%3E%3Cpath fill='%23555D65' d='M6 8V6H4v2zm2 0V6h2v2zm2 8H8v-2h2zm2 0v-2h2v2zm0 2v-2h-2v2H8v2h2v-2zm2 0v2h-2v-2zm2 0h-2v-2h2z'/%3E%3Cpath fill='%23555D65' fill-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2zm-2-4v-2h2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555D65' d='M18 18v2h-2v-2z'/%3E%3Cpath fill='%23555D65' fill-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-2v2zm0 2v-2H6v2zm2 0v-2h2v2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555D65' fill-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-2v2H8V0H6v2H4zm0 4V2H2v2zm2 0V2h2v2zm0 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-2v2H8v2z' clip-rule='evenodd'/%3E%3C/svg%3E");border-radius:50%;bottom:1px;content:"";left:1px;position:absolute;right:1px;top:1px;z-index:-1}.components-circular-option-picker__option{background:#0000;border:none;border-radius:50%;box-shadow:inset 0 0 0 14px;cursor:pointer;display:inline-block;height:100%;transition:box-shadow .1s ease;vertical-align:top;width:100%}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-delay:0s;transition-duration:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option[aria-pressed=true],.components-circular-option-picker__option[aria-selected=true]{box-shadow:inset 0 0 0 4px;overflow:visible;position:relative;z-index:1}.components-circular-option-picker__option[aria-pressed=true]+svg,.components-circular-option-picker__option[aria-selected=true]+svg{border-radius:50%;pointer-events:none;position:absolute;right:2px;top:2px;z-index:2}.components-circular-option-picker__option:after{border:1px solid #0000;border-radius:50%;bottom:-1px;box-shadow:inset 0 0 0 1px #0003;box-sizing:inherit;content:"";left:-1px;position:absolute;right:-1px;top:-1px}.components-circular-option-picker__option:focus:after{border:2px solid #757575;border-radius:50%;box-shadow:inset 0 0 0 2px #fff;content:"";height:calc(100% + 4px);position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:calc(100% + 4px)}.components-circular-option-picker__option.components-button:focus{background-color:initial;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{background:#fff;color:#fff}.components-circular-option-picker__dropdown-link-action{margin-left:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.components-palette-edit__popover-gradient-picker{padding:8px;width:260px}.components-dropdown-menu__menu .components-palette-edit__menu-button{width:100%}.component-color-indicator{background:#fff linear-gradient(45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0);border-radius:50%;box-shadow:inset 0 0 0 1px #0003;display:inline-block;height:20px;padding:0;width:20px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{border:none;box-shadow:none;font-family:inherit;font-size:16px;line-height:inherit;margin:0;min-height:auto;padding:2px;width:100%}@media (min-width:600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{box-shadow:none;outline:none}.components-combobox-control__suggestions-container{align-items:flex-start;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:0;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-combobox-control__suggestions-container{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:#1e1e1e9e}.components-combobox-control__suggestions-container::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:#1e1e1e9e}.components-combobox-control__suggestions-container:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-combobox-control__reset.components-button{display:flex;height:16px;min-width:16px;padding:0}.components-color-palette__custom-color-wrapper{position:relative;z-index:0}.components-color-palette__custom-color-button{background:none;border:none;border-radius:2px 2px 0 0;box-shadow:inset 0 0 0 1px #0003;box-sizing:border-box;cursor:pointer;height:64px;outline:1px solid #0000;position:relative;width:100%}.components-color-palette__custom-color-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-width:2px}.components-color-palette__custom-color-button:after{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,#0000 0,#0000 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,#0000 0,#0000 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,24px 24px;background-size:48px 48px;content:"";height:100%;position:absolute;right:0;top:0;width:100%;z-index:-1}.components-color-palette__custom-color-text-wrapper{border-radius:0 0 2px 2px;box-shadow:inset 0 -1px 0 0 #0003,inset -1px 0 0 0 #0003,inset 1px 0 0 0 #0003;font-size:13px;padding:12px 16px;position:relative}.components-color-palette__custom-color-name{color:var(--wp-components-color-foreground,#1e1e1e);margin:0 1px}.components-color-palette__custom-color-value{color:#757575}.components-color-palette__custom-color-value--is-hex{text-transform:uppercase}.components-color-palette__custom-color-value:empty:after{content:"​";visibility:hidden}.components-custom-gradient-picker__gradient-bar{border-radius:2px;height:48px;position:relative;width:100%;z-index:1}.components-custom-gradient-picker__gradient-bar.has-gradient{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,#0000 0,#0000 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,#0000 0,#0000 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background{inset:0;position:absolute}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{margin-left:auto;margin-right:auto;position:relative;width:calc(100% - 48px)}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-dropdown{display:flex;height:16px;position:absolute;top:16px;width:16px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown{background:#fff;border-radius:50%;color:#1e1e1e;height:inherit;min-width:16px;padding:2px;position:relative;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 #00000040;height:inherit;outline:2px solid #0000;padding:0;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 #00000040;outline:1.5px solid #0000}.components-custom-gradient-picker__remove-control-point-wrapper{padding-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;height:20px;width:20px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-right:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #949494;border-radius:2px}.components-custom-gradient-picker__ui-line{position:relative;z-index:0}.components-custom-select-control{font-size:13px;position:relative}.components-custom-select-control__button{outline:0;position:relative;text-align:right}.components-custom-select-control__hint{color:#949494;margin-right:10px}.components-custom-select-control__menu-wrapper{bottom:0;min-width:100%;position:absolute}.components-custom-select-control__menu{background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;max-height:400px;min-width:100%;outline:none;overflow:auto;padding:0;position:absolute;transition:none;z-index:1000000}.components-custom-select-control__menu[aria-hidden=true]{display:none}.components-custom-select-control__item{align-items:center;cursor:default;display:grid;grid-template-columns:auto auto;line-height:28px;list-style-type:none;padding:8px 16px}.components-custom-select-control__item:not(.is-next-40px-default-size){padding:8px}.components-custom-select-control__item.has-hint{grid-template-columns:auto auto 30px}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item .components-custom-select-control__item-hint{color:#949494;padding-left:4px;text-align:left}.components-custom-select-control__item .components-custom-select-control__item-icon{margin-right:auto}.components-custom-select-control__item:last-child{margin-bottom:0}.block-editor-dimension-control .components-base-control__field{align-items:center;display:flex}.block-editor-dimension-control .components-base-control__label{align-items:center;display:flex;margin-bottom:0;margin-left:1em}.block-editor-dimension-control .components-base-control__label .dashicon{margin-left:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{height:50px;position:fixed;right:-1000px;width:50px}.components-draggable__clone{background:#0000;padding:0;pointer-events:none;position:fixed;z-index:1000000000}.components-drop-zone{border-radius:2px;bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;visibility:hidden;z-index:40}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone__content{align-items:center;background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));bottom:0;color:#fff;display:flex;height:100%;justify-content:center;left:0;position:absolute;right:0;text-align:center;top:0;width:100%;z-index:50}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{line-height:0;margin:0 auto 8px;fill:currentColor;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content{padding:8px}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown__content .components-menu-group{margin:0 -8px;padding:8px}.components-dropdown__content .components-menu-group:first-child{margin-top:-8px}.components-dropdown__content .components-menu-group:last-child{margin-bottom:-8px}.components-dropdown__content .components-menu-group+.components-menu-group{border-top:1px solid #ccc;margin-top:0;padding:8px}.components-dropdown__content.is-alternate .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-dropdown-menu__toggle{vertical-align:top}.components-dropdown-menu__menu{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{cursor:pointer;outline:none;padding:6px;white-space:nowrap;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;overflow:visible;position:relative}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{background-color:#ddd;box-sizing:initial;content:"";display:block;height:1px;left:0;position:absolute;right:0;top:-3px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-menu-item.is-active svg{background:#1e1e1e;border-radius:1px;box-shadow:0 0 0 1px #1e1e1e;color:#fff}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{height:auto;min-height:36px;padding-left:8px;padding-right:8px;text-align:right}.components-duotone-picker__color-indicator:before{background:#0000}.components-duotone-picker__color-indicator>.components-button,.components-duotone-picker__color-indicator>.components-button.is-pressed:hover:not(:disabled){background:linear-gradient(45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0);color:#0000}.components-duotone-picker__color-indicator>.components-button:not([aria-disabled=true]):active{color:#0000}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-list-picker__swatch-button{padding:6px}.components-color-list-picker__swatch-color{margin:2px}.components-external-link{text-decoration:none}.components-external-link__contents{text-decoration:underline}.components-external-link__icon{font-weight:400;margin-right:.5ch}.components-form-toggle{display:inline-block;position:relative}.components-form-toggle .components-form-toggle__track{background-color:#fff;border:1px solid #1e1e1e;border-radius:9px;box-sizing:border-box;content:"";display:inline-block;height:18px;overflow:hidden;position:relative;transition:background-color .2s ease,border-color .2s ease;vertical-align:top;width:36px}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-delay:0s;transition-duration:0s}}.components-form-toggle .components-form-toggle__track:after{border-top:18px solid #0000;box-sizing:border-box;content:"";inset:0;opacity:0;position:absolute;transition:opacity .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track:after{transition-delay:0s;transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{background-color:#1e1e1e;border:6px solid #0000;border-radius:50%;box-sizing:border-box;display:block;height:12px;position:absolute;right:3px;top:3px;transition:transform .2s ease,background-color .2s ease-out;width:12px}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-delay:0s;transition-duration:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-toggle.is-checked .components-form-toggle__track:after{opacity:1}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(-18px)}.components-disabled .components-form-toggle,.components-form-toggle.is-disabled{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{border:none;height:100%;margin:0;opacity:0;padding:0;position:absolute;right:0;top:0;width:100%;z-index:1}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;cursor:text;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:0;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-form-token-field__input-container::-webkit-input-placeholder{color:#1e1e1e9e}.components-form-token-field__input-container::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-form-token-field__input-container:-ms-input-placeholder{color:#1e1e1e9e}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-form-token-field__input-container input[type=text].components-form-token-field__input{background:inherit;border:0;box-shadow:none;color:#1e1e1e;display:inline-block;flex:1;font-family:inherit;font-size:16px;margin-right:4px;max-width:100%;min-height:24px;min-width:50px;padding:0;width:100%}@media (min-width:600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{box-shadow:none;outline:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__token{color:#1e1e1e;display:flex;font-size:13px;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-borderless{padding:0 0 0 24px;position:relative}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:#0000;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:#0000;color:#757575;left:0;padding:0;position:absolute;top:1px}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{border-radius:0 4px 4px 0;color:#cc1818;padding:0 6px 0 4px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{background:#ddd;display:inline-block;height:auto;line-height:24px;min-width:unset;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{animation-delay:0s;animation-duration:1ms;transition-delay:0s;transition-duration:0s}}.components-form-token-field__token-text{border-radius:0 2px 2px 0;overflow:hidden;padding:0 8px 0 0;text-overflow:ellipsis;white-space:nowrap}.components-form-token-field__remove-token.components-button{border-radius:2px 0 0 2px;color:#1e1e1e;cursor:pointer;line-height:10px;overflow:initial;padding:0 2px}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{box-shadow:inset 0 1px 0 0 #949494;flex:1 0 100%;list-style:none;margin:0;max-height:128px;min-width:100%;overflow-y:auto;padding:0;transition:all .15s ease-in-out}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-delay:0s;transition-duration:0s}}.components-form-token-field__suggestion{box-sizing:border-box;color:#1e1e1e;cursor:pointer;display:block;font-size:13px;margin:0;min-height:32px;padding:8px 12px}.components-form-token-field__suggestion.is-selected{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff}.components-form-token-field__suggestion[aria-disabled=true]{color:#949494;pointer-events:none}.components-form-token-field__suggestion[aria-disabled=true].is-selected{background-color:rgba(var(--wp-components-color-accent--rgb,var(--wp-admin-theme-color--rgb)),.04)}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__content{border-radius:2px;margin-top:0;padding:0}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;height:60px;padding:0;position:sticky}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 0 0 8px;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:36px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}.components-guide__page-control{margin:0;text-align:center}.components-guide__page-control li{display:inline-block;margin:0}.components-guide__page-control .components-button{color:#e0e0e0;height:30px;margin:-6px 0;min-width:20px}.components-guide__page-control li[aria-current=step] .components-button{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-modal__frame.components-guide{border:none;max-height:575px;min-width:312px}@media (max-width:600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{position:absolute}.components-button.components-guide__back-button{right:32px}.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{left:32px}[role=region]{position:relative}.is-focusing-regions [role=region]:focus:after{bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions .editor-post-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-entities-saved-states-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__sidebar .editor-layout__toggle-sidebar-panel,.is-focusing-regions [role=region]:focus:after,.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header{outline:4px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-offset:-4px}.components-menu-group+.components-menu-group{border-top:1px solid #1e1e1e;margin-top:8px;padding-top:8px}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group__label{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;margin-top:4px;padding:0 8px;text-transform:uppercase;white-space:nowrap}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child{box-sizing:initial;padding-left:48px}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right{margin-left:-2px;margin-right:24px}.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-right:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:8px;margin-right:-2px}.components-menu-item__button.components-button.is-primary,.components-menu-item__button.is-primary{justify-content:center}.components-menu-item__button.components-button.is-primary .components-menu-item__item,.components-menu-item__button.is-primary .components-menu-item__item{margin-left:0}.components-menu-item__button.components-button:disabled.is-tertiary,.components-menu-item__button.components-button[aria-disabled=true].is-tertiary,.components-menu-item__button:disabled.is-tertiary,.components-menu-item__button[aria-disabled=true].is-tertiary{background:none;color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));opacity:.3}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-left:auto}.components-menu-item__info{color:#757575;font-size:12px;margin-top:4px;white-space:normal}.components-menu-item__item{align-items:center;display:inline-flex;margin-left:auto;min-width:160px;white-space:nowrap}.components-menu-item__shortcut{align-self:center;color:currentColor;display:none;margin-left:0;margin-right:auto;padding-right:24px}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice svg,.components-menu-items-choice.components-button svg{margin-left:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-right:12px}.components-modal__screen-overlay{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards;background-color:#00000059;bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:100000}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-delay:0s;animation-duration:1ms}}.components-modal__frame{animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards;background:#fff;border-radius:4px 4px 0 0;box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,-.1px 11.5px 16.4px -.5px #00000026;box-sizing:border-box;display:flex;margin:40px 0 0;overflow:hidden;width:100%}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{box-sizing:inherit}@media (prefers-reduced-motion:reduce){.components-modal__frame{animation-delay:0s;animation-duration:1ms}}@media (min-width:600px){.components-modal__frame{border-radius:4px;margin:auto;max-height:calc(100% - 120px);max-width:calc(100% - 32px);min-width:350px;width:auto}}@media (min-width:600px) and (min-width:600px){.components-modal__frame.is-full-screen{height:calc(100% - 32px);max-height:none;width:calc(100% - 32px)}}@media (min-width:600px) and (min-width:782px){.components-modal__frame.is-full-screen{height:calc(100% - 80px);max-width:none;width:calc(100% - 80px)}}@media (min-width:600px){.components-modal__frame.has-size-large,.components-modal__frame.has-size-medium,.components-modal__frame.has-size-small{width:100%}.components-modal__frame.has-size-small{max-width:384px}.components-modal__frame.has-size-medium{max-width:512px}.components-modal__frame.has-size-large{max-width:840px}}@media (min-width:960px){.components-modal__frame{max-height:70%}}@keyframes components-modal__appear-animation{0%{transform:translateY(32px)}to{transform:translateY(0)}}.components-modal__header{align-items:center;border-bottom:1px solid #0000;box-sizing:border-box;display:flex;flex-direction:row;height:72px;justify-content:space-between;padding:24px 32px 8px;position:absolute;right:0;top:0;width:100%;z-index:10}.components-modal__header .components-modal__header-heading{font-size:1.2rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;right:8px}.components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header{border-bottom-color:#ddd}.components-modal__header+p{margin-top:0}.components-modal__header-heading-container{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:right}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-height:36px;max-width:36px;padding:8px}.components-modal__content{flex:1;margin-top:72px;overflow:auto;padding:4px 32px 32px}.components-modal__content.hide-header{margin-top:0;padding-top:32px}.components-modal__content.is-scrollable:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000;outline-offset:-2px}.components-notice{align-items:center;background-color:#fff;border-right:4px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 12px}.components-notice.is-dismissible{position:relative}.components-notice.is-success{background-color:#eff9f1;border-right-color:#4ab866}.components-notice.is-warning{background-color:#fef8ee;border-right-color:#f0b849}.components-notice.is-error{background-color:#f4a2a2;border-right-color:#cc1818}.components-notice__content{flex-grow:1;margin:4px 0 4px 25px}.components-notice__actions{display:flex;flex-wrap:wrap}.components-notice__action.components-button{margin-left:8px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-right:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{align-self:flex-start;color:#757575;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{background-color:initial;color:#1e1e1e}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{box-sizing:border-box;max-width:100vw}.components-notice-list .components-notice__content{line-height:2;margin-bottom:12px;margin-top:12px}.components-notice-list .components-notice__action.components-button{display:block;margin-right:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{align-items:center;border-bottom:1px solid #ddd;box-sizing:initial;display:flex;flex-shrink:0;height:47px;justify-content:space-between;padding:0 16px}.components-panel__header h2{color:inherit;font-size:inherit;margin:0}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;font-size:inherit;margin-bottom:0;margin-top:0;padding:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-delay:0s;transition-duration:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{border:none;box-shadow:none;color:#1e1e1e;font-weight:500;height:auto;outline:none;padding:16px 16px 16px 48px;position:relative;text-align:right;transition:background .1s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-delay:0s;transition-duration:0s}}.components-panel__body-toggle.components-button:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-panel__body-toggle.components-button .components-panel__arrow{color:#1e1e1e;left:16px;position:absolute;top:50%;transform:translateY(-50%);fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-delay:0s;transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{-ms-filter:fliph;filter:FlipH;margin-top:-10px;transform:scaleX(-1)}.components-panel__icon{color:#757575;margin:-2px 6px -2px 0}.components-panel__body-toggle-icon{margin-left:-5px}.components-panel__color-title{float:right;height:19px}.components-panel__row{align-items:center;display:flex;justify-content:space-between;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{flex-shrink:0;margin-left:12px;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{align-items:flex-start;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:column;font-size:13px;gap:16px;margin:0;padding:24px;position:relative;text-align:right;width:100%;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid #0000}.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;font-weight:400;letter-spacing:normal;line-height:normal;text-transform:none}.components-placeholder__label{align-items:center;display:flex;font-weight:600}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{margin-left:4px;fill:currentColor}@media (forced-colors:active){.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:CanvasText}}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;flex-wrap:wrap;gap:16px;justify-content:flex-start;width:100%}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;flex:1 1 auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:#1e1e1e9e}.components-placeholder__input[type=url]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-placeholder__input[type=url]:-ms-input-placeholder{color:#1e1e1e9e}.components-placeholder__error{gap:8px;width:100%}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-left:0}.components-placeholder.is-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-button,.components-placeholder.is-medium .components-placeholder__fieldset>*,.components-placeholder.is-small .components-button,.components-placeholder.is-small .components-placeholder__fieldset>*{justify-content:center;width:100%}.components-placeholder.is-small{padding:16px}.components-placeholder.has-illustration{-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);backface-visibility:hidden;background-color:initial;border-radius:2px;box-shadow:none;color:inherit;display:flex;overflow:hidden}.is-dark-theme .components-placeholder.has-illustration{background-color:#0000001a}.components-placeholder.has-illustration .components-placeholder__fieldset{margin-left:0;margin-right:0}.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{opacity:0;pointer-events:none;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{transition-delay:0s;transition-duration:0s}}.is-selected>.components-placeholder.has-illustration .components-button,.is-selected>.components-placeholder.has-illustration .components-placeholder__instructions,.is-selected>.components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.components-placeholder.has-illustration:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.is-selected .components-placeholder.has-illustration{overflow:auto}.components-placeholder__preview{display:flex;justify-content:center}.components-placeholder__illustration{box-sizing:initial;height:100%;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:100%;stroke:currentColor;opacity:.25}.components-popover{box-sizing:border-box;will-change:transform;z-index:1000000}.components-popover *,.components-popover :after,.components-popover :before{box-sizing:inherit}.components-popover.is-expanded{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1000000!important}.components-popover__content{background:#fff;border-radius:2px;box-shadow:0 0 0 1px #ccc,0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;box-sizing:border-box;width:min-content}.is-alternate .components-popover__content{box-shadow:0 0 0 1px #1e1e1e}.is-unstyled .components-popover__content{background:none;border-radius:0;box-shadow:none}.components-popover.is-expanded .components-popover__content{box-shadow:0 -1px 0 0 #ccc;height:calc(100% - 48px);overflow-y:visible;position:static;width:auto}.components-popover.is-expanded.is-alternate .components-popover__content{box-shadow:0 -1px 0 #1e1e1e}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 16px 0 8px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-button{z-index:5}.components-popover__arrow{display:flex;height:14px;pointer-events:none;position:absolute;width:14px}.components-popover__arrow:before{background-color:#fff;content:"";height:2px;left:1px;position:absolute;right:1px;top:-1px}.components-popover__arrow.is-top{bottom:-14px!important;transform:rotate(0)}.components-popover__arrow.is-right{left:-14px!important;transform:rotate(90deg)}.components-popover__arrow.is-bottom{top:-14px!important;transform:rotate(180deg)}.components-popover__arrow.is-left{right:-14px!important;transform:rotate(-90deg)}.components-popover__triangle{display:block;flex:1}.components-popover__triangle-bg{fill:#fff}.components-popover__triangle-border{fill:#0000;stroke-width:1px;stroke:#ccc}.is-alternate .components-popover__triangle-border{stroke:#1e1e1e}.components-radio-control__option{align-items:center;display:flex}.components-radio-control__input[type=radio]{appearance:none;border:1px solid #1e1e1e;border-radius:2px;border-radius:50%;box-shadow:0 0 0 #0000;cursor:pointer;display:inline-flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;margin:0 0 0 6px;max-width:24px;min-width:24px;padding:0;transition:box-shadow .1s linear;transition:none;width:24px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:#1e1e1e9e}.components-radio-control__input[type=radio]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:#1e1e1e9e}@media (min-width:600px){.components-radio-control__input[type=radio]{height:20px;max-width:20px;min-width:20px;width:20px}}.components-radio-control__input[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:8px;margin:0;transform:translate(-7px,7px);width:8px}@media (min-width:600px){.components-radio-control__input[type=radio]:checked:before{transform:translate(-5px,5px)}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.components-radio-control__input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px var(--wp-components-color-background,#fff),0 0 0 4px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-radio-control__input[type=radio]:checked{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-radio-control__input[type=radio]:checked:before{border-radius:50%;content:""}.components-radio-control__label{cursor:pointer}.components-resizable-box__handle{display:none;height:23px;width:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__container>img{width:inherit}.components-resizable-box__handle:after{background:#fff;border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));content:"";cursor:inherit;display:block;height:15px;left:calc(50% - 8px);outline:2px solid #0000;position:absolute;top:calc(50% - 8px);width:15px}.components-resizable-box__side-handle:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:2px;content:"";cursor:inherit;display:block;height:3px;left:calc(50% - 1px);opacity:0;position:absolute;top:calc(50% - 1px);transition:transform .1s ease-in;width:3px;will-change:transform}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-delay:0s;transition-duration:0s}}.components-resizable-box__corner-handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{border-left:0;border-right:0;right:0;width:100%}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{border-bottom:0;border-top:0;height:100%;top:0}.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation-delay:0s;animation-duration:1ms}}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation-delay:0s;animation-duration:1ms}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}@keyframes components-resizable-box__left-right-animation{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px}.components-responsive-wrapper{align-items:center;display:flex;justify-content:center;max-width:100%;position:relative}.components-responsive-wrapper__content{display:block;max-width:100%;width:100%}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background:#000000d9;border-radius:2px;box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;box-sizing:border-box;color:#fff;cursor:pointer;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;max-width:600px;padding:12px 20px;pointer-events:auto;width:100%}@media (min-width:600px){.components-snackbar{width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{padding-right:24px;position:relative}.components-snackbar .components-snackbar__icon{position:absolute;right:-8px;top:-2.9px}.components-snackbar .components-snackbar__dismiss-button{cursor:pointer;margin-right:24px}.components-snackbar__action.components-button{color:#fff;flex-shrink:0;height:auto;line-height:1.4;margin-right:32px;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){background-color:initial;text-decoration:underline}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{box-shadow:none;color:#fff;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#fff;text-decoration:none}.components-snackbar__content{align-items:baseline;display:flex;justify-content:space-between;line-height:1.4}.components-snackbar-list{box-sizing:border-box;pointer-events:none;position:absolute;width:100%;z-index:100000}.components-snackbar-list__notice-container{padding-top:8px;position:relative}.components-tab-panel__tabs{align-items:stretch;display:flex;flex-direction:row}.components-tab-panel__tabs[aria-orientation=vertical]{flex-direction:column}.components-tab-panel__tabs-item{background:#0000;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-right:0;padding:3px 16px;position:relative}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-tab-panel__tabs-item:after{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-tab-panel__tabs-item:after{transition-delay:0s;transition-duration:0s}}.components-tab-panel__tabs-item.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid #0000;outline-offset:-1px}.components-tab-panel__tabs-item:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 #0000;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-tab-panel__tabs-item:before{transition-delay:0s;transition-duration:0s}}.components-tab-panel__tabs-item:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000}.components-tab-panel__tab-content:focus{box-shadow:none;outline:none}.components-tab-panel__tab-content:focus-visible{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000;outline-offset:0}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:32px;line-height:normal;margin:0;padding:6px 8px;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.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:#1e1e1e9e}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:#1e1e1e9e}.components-text-control__input.is-next-40px-default-size,.components-text-control__input[type=color].is-next-40px-default-size,.components-text-control__input[type=date].is-next-40px-default-size,.components-text-control__input[type=datetime-local].is-next-40px-default-size,.components-text-control__input[type=datetime].is-next-40px-default-size,.components-text-control__input[type=email].is-next-40px-default-size,.components-text-control__input[type=month].is-next-40px-default-size,.components-text-control__input[type=number].is-next-40px-default-size,.components-text-control__input[type=password].is-next-40px-default-size,.components-text-control__input[type=tel].is-next-40px-default-size,.components-text-control__input[type=text].is-next-40px-default-size,.components-text-control__input[type=time].is-next-40px-default-size,.components-text-control__input[type=url].is-next-40px-default-size,.components-text-control__input[type=week].is-next-40px-default-size{height:40px}.components-tip{color:#757575;display:flex}.components-tip svg{align-self:center;fill:#f0b849;flex-shrink:0;margin-left:16px}.components-tip p{margin:0}.components-accessible-toolbar{border:1px solid #1e1e1e;border-radius:2px;display:inline-flex;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-left:none}.components-accessible-toolbar.is-unstyled{border:none}.components-accessible-toolbar.is-unstyled>.components-toolbar-group{border-left:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{height:48px;padding-left:16px;padding-right:16px;position:relative;z-index:1}.components-accessible-toolbar .components-button:focus:not(:disabled),.components-toolbar .components-button:focus:not(:disabled){box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards;border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-delay:0s;animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{margin-left:auto;margin-right:auto;position:relative}.components-accessible-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed:hover{background:#0000}.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 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{min-width:48px;padding-left:8px;padding-right:8px}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 0 5px 10px}.components-toolbar__control.components-button[data-subscript]:after{bottom:10px;content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;left:8px;line-height:12px;position:absolute}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{background-color:#fff;border-left:1px solid #1e1e1e;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0;min-height:48px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar-group .components-button.components-button,.components-toolbar-group .components-button.has-icon.has-icon{justify-content:center;min-width:36px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-button.components-button svg,.components-toolbar-group .components-button.has-icon.has-icon svg{min-width:24px}.components-toolbar-group .components-button.components-button:before,.components-toolbar-group .components-button.has-icon.has-icon:before{left:2px;right:2px}.components-toolbar{background-color:#fff;border:1px solid #1e1e1e;display:inline-flex;flex-shrink:0;flex-wrap:wrap;margin:0;min-height:48px}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:flex;margin:0}div.components-toolbar>div+div.has-left-divider{margin-right:6px;overflow:visible;position:relative}div.components-toolbar>div+div.has-left-divider:before{background-color:#ddd;box-sizing:initial;content:"";display:inline-block;height:20px;position:absolute;right:-3px;top:8px;width:1px}.components-tooltip{background:#000;border-radius:2px;color:#f0f0f0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;line-height:1.4;padding:4px 8px;text-align:center;z-index:1000002}.components-tooltip__shortcut{margin-right:8px} \ 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 9f7f0ca..ab0e25b 100644
--- a/wp-includes/css/dist/components/style.css
+++ b/wp-includes/css/dist/components/style.css
@@ -83,8 +83,8 @@
}
}
.components-autocomplete__popover .components-popover__content{
- min-width:220px;
- padding:16px;
+ min-width:200px;
+ padding:8px;
}
.components-autocomplete__result.components-button{
@@ -94,8 +94,13 @@
text-align:left;
width:100%;
}
-.components-autocomplete__result.components-button.is-selected{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+.components-autocomplete__result.components-button:focus:not(:disabled){
+ box-shadow:inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+ outline:2px solid #0000;
+}
+.components-autocomplete__result.components-button.is-selected,.components-autocomplete__result.components-button:not(:disabled,[aria-disabled=true]):active{
+ background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+ color:#fff;
}
.components-button-group{
@@ -190,7 +195,7 @@
outline:none;
}
.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{
- box-shadow:0 0 0 1px var(--wp-components-color-background, #fff), 0 0 0 3px var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+ box-shadow:inset 0 0 0 1px var(--wp-components-color-background, #fff), 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
}
.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{
background-image:linear-gradient(-45deg, var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 33%, var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6)) 33%, var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6)) 70%, var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 70%);
@@ -371,9 +376,21 @@ p+.components-button.is-tertiary{
background-position:200px 0;
}
}
+.components-checkbox-control{
+ --checkbox-input-size:24px;
+}
+@media (min-width:600px){
+ .components-checkbox-control{
+ --checkbox-input-size:20px;
+ }
+}
+
+.components-checkbox-control__label{
+ line-height:var(--checkbox-input-size);
+}
+
.components-checkbox-control__input[type=checkbox]{
- -webkit-appearance:none;
- appearance:none;
+ appearance:none;
background:#fff;
border:1px solid #1e1e1e;
border-radius:2px;
@@ -384,7 +401,7 @@ p+.components-button.is-tertiary{
display:inline-block;
font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
font-size:16px;
- height:24px;
+ height:var(--checkbox-input-size);
line-height:normal;
line-height:0;
margin:0 4px 0 0;
@@ -396,7 +413,7 @@ p+.components-button.is-tertiary{
transition:none;
transition:border-color .1s ease-in-out;
vertical-align:top;
- width:24px;
+ width:var(--checkbox-input-size);
}
@media (min-width:600px){
.components-checkbox-control__input[type=checkbox]{
@@ -464,12 +481,6 @@ p+.components-button.is-tertiary{
cursor:default;
opacity:1;
}
-@media (min-width:600px){
- .components-checkbox-control__input[type=checkbox]{
- height:20px;
- width:20px;
- }
-}
@media (prefers-reduced-motion:reduce){
.components-checkbox-control__input[type=checkbox]{
transition-delay:0s;
@@ -493,39 +504,40 @@ p+.components-button.is-tertiary{
}
.components-checkbox-control__input-container{
+ aspect-ratio:1;
display:inline-block;
- height:24px;
+ flex-shrink:0;
margin-right:12px;
position:relative;
vertical-align:middle;
- width:24px;
-}
-@media (min-width:600px){
- .components-checkbox-control__input-container{
- height:20px;
- width:20px;
- }
+ width:var(--checkbox-input-size);
}
svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{
+ --checkmark-size:var(--checkbox-input-size);
fill:#fff;
cursor:pointer;
- height:24px;
- left:0;
+ height:var(--checkmark-size);
+ left:50%;
pointer-events:none;
position:absolute;
- top:0;
+ top:50%;
+ transform:translate(-50%, -50%);
-webkit-user-select:none;
user-select:none;
- width:24px;
+ width:var(--checkmark-size);
}
@media (min-width:600px){
svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{
- left:-2px;
- top:-2px;
+ --checkmark-size:calc(var(--checkbox-input-size) + 4px);
}
}
+.components-checkbox-control__help{
+ display:inline-block;
+ margin-inline-start:calc(var(--checkbox-input-size) + 12px);
+}
+
.components-circular-option-picker{
display:inline-block;
min-width:188px;
@@ -920,6 +932,12 @@ input.components-combobox-control__input[type=text]:focus{
margin-left:10px;
}
+.components-custom-select-control__menu-wrapper{
+ bottom:0;
+ min-width:100%;
+ position:absolute;
+}
+
.components-custom-select-control__menu{
background-color:#fff;
border:1px solid #1e1e1e;
@@ -1063,6 +1081,24 @@ body.is-dragging-components-draggable{
.components-dropdown__content [role=menuitem]{
white-space:nowrap;
}
+.components-dropdown__content .components-menu-group{
+ margin:0 -8px;
+ padding:8px;
+}
+.components-dropdown__content .components-menu-group:first-child{
+ margin-top:-8px;
+}
+.components-dropdown__content .components-menu-group:last-child{
+ margin-bottom:-8px;
+}
+.components-dropdown__content .components-menu-group+.components-menu-group{
+ border-top:1px solid #ccc;
+ margin-top:0;
+ padding:8px;
+}
+.components-dropdown__content.is-alternate .components-menu-group+.components-menu-group{
+ border-color:#1e1e1e;
+}
.components-dropdown-menu__toggle{
vertical-align:top;
@@ -1113,24 +1149,6 @@ body.is-dragging-components-draggable{
padding-right:8px;
text-align:left;
}
-.components-dropdown-menu__menu .components-menu-group{
- margin:0 -8px;
- padding:8px;
-}
-.components-dropdown-menu__menu .components-menu-group:first-child{
- margin-top:-8px;
-}
-.components-dropdown-menu__menu .components-menu-group:last-child{
- margin-bottom:-8px;
-}
-.components-dropdown-menu__menu .components-menu-group+.components-menu-group{
- border-top:1px solid #ccc;
- margin-top:0;
- padding:8px;
-}
-.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{
- border-color:#1e1e1e;
-}
.components-duotone-picker__color-indicator:before{
background:#0000;
@@ -1159,6 +1177,19 @@ body.is-dragging-components-draggable{
margin:2px;
}
+.components-external-link{
+ text-decoration:none;
+}
+
+.components-external-link__contents{
+ text-decoration:underline;
+}
+
+.components-external-link__icon{
+ font-weight:400;
+ margin-left:.5ch;
+}
+
.components-form-toggle{
display:inline-block;
position:relative;
@@ -1449,6 +1480,13 @@ body.is-dragging-components-draggable{
background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
color:#fff;
}
+.components-form-token-field__suggestion[aria-disabled=true]{
+ color:#949494;
+ pointer-events:none;
+}
+.components-form-token-field__suggestion[aria-disabled=true].is-selected{
+ background-color:rgba(var(--wp-components-color-accent--rgb, var(--wp-admin-theme-color--rgb)), .04);
+}
@media (min-width:600px){
.components-guide{
@@ -1559,7 +1597,7 @@ body.is-dragging-components-draggable{
top:0;
z-index:1000000;
}
-.is-focusing-regions .editor-post-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions .edit-post-layout__toggle-entities-saved-states-panel,.is-focusing-regions .interface-interface-skeleton__actions .edit-post-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__sidebar .edit-post-layout__toggle-sidebar-panel,.is-focusing-regions [role=region]:focus:after,.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header{
+.is-focusing-regions .editor-post-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-entities-saved-states-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__sidebar .editor-layout__toggle-sidebar-panel,.is-focusing-regions [role=region]:focus:after,.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header{
outline:4px solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
outline-offset:-4px;
}
@@ -1687,11 +1725,15 @@ body.is-dragging-components-draggable{
background:#fff;
border-radius:4px 4px 0 0;
box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,.1px 11.5px 16.4px -.5px #00000026;
+ box-sizing:border-box;
display:flex;
margin:40px 0 0;
overflow:hidden;
width:100%;
}
+.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{
+ box-sizing:inherit;
+}
@media (prefers-reduced-motion:reduce){
.components-modal__frame{
animation-delay:0s;
@@ -1921,6 +1963,7 @@ body.is-dragging-components-draggable{
border-bottom:1px solid #ddd;
box-sizing:initial;
display:flex;
+ flex-shrink:0;
height:47px;
justify-content:space-between;
padding:0 16px;
@@ -2042,11 +2085,15 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
}
.components-placeholder.components-placeholder{
+ align-items:flex-start;
box-sizing:border-box;
color:#1e1e1e;
+ display:flex;
+ flex-direction:column;
font-size:13px;
+ gap:16px;
margin:0;
- padding:1em;
+ padding:24px;
position:relative;
text-align:left;
width:100%;
@@ -2057,14 +2104,6 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
box-shadow:inset 0 0 0 1px #1e1e1e;
outline:1px solid #0000;
}
-@supports (position:sticky){
- .components-placeholder.components-placeholder{
- align-items:flex-start;
- display:flex;
- flex-direction:column;
- justify-content:top;
- }
-}
.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;
@@ -2079,10 +2118,9 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
align-items:center;
display:flex;
font-weight:600;
- margin-bottom:16px;
}
.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{
- margin-right:12px;
+ margin-right:4px;
fill:currentColor;
}
@media (forced-colors:active){
@@ -2098,6 +2136,8 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
display:flex;
flex-direction:row;
flex-wrap:wrap;
+ gap:16px;
+ justify-content:flex-start;
width:100%;
}
.components-placeholder__fieldset form p,.components-placeholder__fieldset p{
@@ -2117,7 +2157,6 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
font-size:16px;
line-height:normal;
- margin:0 8px 0 0;
padding:6px 8px;
transition:box-shadow .1s linear;
}
@@ -2149,24 +2188,11 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
color:#1e1e1e9e;
}
-.components-placeholder__instructions{
- margin-bottom:1em;
-}
-
.components-placeholder__error{
- margin-top:1em;
+ gap:8px;
width:100%;
}
-.components-placeholder__fieldset .components-button{
- margin-bottom:12px;
- margin-right:12px;
-}
-.components-placeholder__fieldset .components-button:last-child{
- margin-bottom:0;
- margin-right:0;
-}
-
.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{
margin-left:10px;
margin-right:10px;
@@ -2175,21 +2201,18 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
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-medium .components-button,.components-placeholder.is-medium .components-placeholder__fieldset>*,.components-placeholder.is-small .components-button,.components-placeholder.is-small .components-placeholder__fieldset>*{
+ justify-content:center;
+ width:100%;
}
-.components-placeholder.is-small .components-button{
- padding:0 8px 2px;
+.components-placeholder.is-small{
+ padding:16px;
}
.components-placeholder.has-illustration{
-webkit-backdrop-filter:blur(100px);
@@ -2200,7 +2223,7 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
box-shadow:none;
color:inherit;
display:flex;
- overflow:auto;
+ overflow:hidden;
}
.is-dark-theme .components-placeholder.has-illustration{
background-color:#0000001a;
@@ -2208,7 +2231,6 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
.components-placeholder.has-illustration .components-placeholder__fieldset{
margin-left:0;
margin-right:0;
- width:auto;
}
.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{
opacity:0;
@@ -2236,6 +2258,9 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
right:0;
top:0;
}
+.is-selected .components-placeholder.has-illustration{
+ overflow:auto;
+}
.components-placeholder__preview{
display:flex;
@@ -2368,21 +2393,13 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
stroke:#1e1e1e;
}
-.components-popover-pointer-events-trap{
- background-color:initial;
- inset:0;
- position:fixed;
- z-index:1000000;
-}
-
.components-radio-control__option{
align-items:center;
display:flex;
}
.components-radio-control__input[type=radio]{
- -webkit-appearance:none;
- appearance:none;
+ appearance:none;
border:1px solid #1e1e1e;
border-radius:2px;
border-radius:50%;
@@ -2394,6 +2411,8 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
height:24px;
line-height:normal;
margin:0 6px 0 0;
+ max-width:24px;
+ min-width:24px;
padding:0;
transition:box-shadow .1s linear;
transition:none;
@@ -2428,6 +2447,8 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
@media (min-width:600px){
.components-radio-control__input[type=radio]{
height:20px;
+ max-width:20px;
+ min-width:20px;
width:20px;
}
}
@@ -2794,6 +2815,17 @@ body.lockscroll,html.lockscroll{
outline:2px solid #0000;
}
+.components-tab-panel__tab-content:focus{
+ box-shadow:none;
+ outline:none;
+}
+.components-tab-panel__tab-content:focus-visible{
+ border-radius:2px;
+ box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+ outline:2px solid #0000;
+ outline-offset:0;
+}
+
.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{
border:1px solid #949494;
border-radius:2px;
@@ -2802,6 +2834,7 @@ body.lockscroll,html.lockscroll{
font-size:16px;
height:32px;
line-height:normal;
+ margin:0;
padding:6px 8px;
transition:box-shadow .1s linear;
width:100%;
@@ -2908,22 +2941,13 @@ body.lockscroll,html.lockscroll{
background:#1e1e1e;
}
.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{
- box-shadow:inset 0 0 0 1px var(--wp-components-color-background, #fff), 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+ box-shadow:inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:2px solid #0000;
}
.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{
min-width:48px;
- padding-left:12px;
- padding-right:12px;
-}
-.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{
- font-weight:500;
-}
-.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{
- display:inline-block;
- padding-left:0;
- padding-right:0;
- position:relative;
+ padding-left:8px;
+ padding-right:8px;
}
@keyframes components-button__appear-animation{
@@ -2970,6 +2994,7 @@ body.lockscroll,html.lockscroll{
margin:0;
}
.components-toolbar-group .components-button.components-button,.components-toolbar-group .components-button.has-icon.has-icon{
+ justify-content:center;
min-width:36px;
padding-left:6px;
padding-right:6px;
@@ -2997,14 +3022,9 @@ body.lockscroll,html.lockscroll{
}
div.components-toolbar>div{
- display:block;
+ display:flex;
margin:0;
}
-@supports (position:sticky){
- div.components-toolbar>div{
- display:flex;
- }
-}
div.components-toolbar>div+div.has-left-divider{
margin-left:6px;
overflow:visible;
@@ -3026,6 +3046,7 @@ div.components-toolbar>div+div.has-left-divider:before{
background:#000;
border-radius:2px;
color:#f0f0f0;
+ font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
font-size:12px;
line-height:1.4;
padding:4px 8px;
diff --git a/wp-includes/css/dist/components/style.min.css b/wp-includes/css/dist/components/style.min.css
index eefa12c..bb1a01d 100644
--- a/wp-includes/css/dist/components/style.min.css
+++ b/wp-includes/css/dist/components/style.min.css
@@ -1,4 +1,4 @@
-@charset "UTF-8";:root{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-delay:0s;animation-duration:1ms}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top left}.components-animate__appear.is-from-top.is-from-right{transform-origin:top right}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom left}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom right}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-delay:0s;animation-duration:1ms}}.components-animate__slide-in.is-from-left{transform:translateX(100%)}.components-animate__slide-in.is-from-right{transform:translateX(-100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content{min-width:220px;padding:16px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:left;width:100%}.components-autocomplete__result.components-button.is-selected{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;display:inline-flex}.components-button-group .components-button+.components-button{margin-left:-1px}.components-button-group .components-button:first-child{border-radius:2px 0 0 2px}.components-button-group .components-button:last-child{border-radius:0 2px 2px 0}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{align-items:center;-webkit-appearance:none;background:none;border:0;border-radius:2px;box-sizing:border-box;color:var(--wp-components-color-foreground,#1e1e1e);cursor:pointer;display:inline-flex;font-family:inherit;font-size:13px;font-weight:400;height:36px;margin:0;padding:6px 12px;text-decoration:none;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-button{transition-delay:0s;transition-duration:0s}}.components-button.is-next-40px-default-size{height:40px}.components-button:hover,.components-button[aria-expanded=true]{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button:disabled:hover,.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:3px solid #0000}.components-button.is-primary{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent-inverted,#fff);outline:1px solid #0000;text-decoration:none;text-shadow:none;white-space:nowrap}.components-button.is-primary:hover:not(:disabled){background:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-primary:active:not(:disabled){background:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));border-color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-primary:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff6;opacity:1;outline:none}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 3px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 70%,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 70%);background-size:100px 100%;border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-secondary,.components-button.is-tertiary{outline:1px solid #0000}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){box-shadow:none}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{background:#0000;color:#949494;opacity:1;transform:none}.components-button.is-secondary{background:#0000;box-shadow:inset 0 0 0 1px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:1px solid #0000;white-space:nowrap}.components-button.is-secondary:hover:not(:disabled,[aria-disabled=true]){box-shadow:inset 0 0 0 1px var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6))}.components-button.is-secondary:disabled:not(:focus),.components-button.is-secondary[aria-disabled=true]:hover:not(:focus),.components-button.is-secondary[aria-disabled=true]:not(:focus){box-shadow:inset 0 0 0 1px #ddd}.components-button.is-tertiary{background:#0000;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));white-space:nowrap}.components-button.is-tertiary:hover:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.components-button.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.08)}p+.components-button.is-tertiary{margin-left:-6px}.components-button.is-tertiary:disabled:not(:focus),.components-button.is-tertiary[aria-disabled=true]:hover:not(:focus),.components-button.is-tertiary[aria-disabled=true]:not(:focus){box-shadow:none;outline:none}.components-button.is-destructive{--wp-components-color-accent:#cc1818;--wp-components-color-accent-darker-10:#9e1313;--wp-components-color-accent-darker-20:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link){color:#cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):hover:not(:disabled){color:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) #cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):active:not(:disabled){background:#ccc}.components-button.is-link{background:none;border:0;border-radius:0;box-shadow:none;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));height:auto;margin:0;outline:none;padding:0;text-align:left;text-decoration:underline;transition-duration:.05s;transition-property:border,background,color;transition-timing-function:ease-in-out}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-delay:0s;transition-duration:0s}}.components-button.is-link:focus{border-radius:2px}.components-button:not(:disabled,[aria-disabled=true]):active{color:var(--wp-components-color-foreground,#1e1e1e)}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;background-image:linear-gradient(-45deg,#fafafa 33%,#e0e0e0 0,#e0e0e0 70%,#fafafa 0);background-size:100px 100%;opacity:1}@media (prefers-reduced-motion:reduce){.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-duration:0s}}.components-button.is-compact{height:32px}.components-button.is-compact.has-icon:not(.has-text){min-width:32px;padding:0;width:32px}.components-button.is-small{font-size:11px;height:24px;line-height:22px;padding:0 8px}.components-button.is-small.has-icon:not(.has-text){min-width:24px;padding:0;width:24px}.components-button.has-icon{justify-content:center;min-width:36px;padding:6px}.components-button.has-icon.is-next-40px-default-size{min-width:40px}.components-button.has-icon .dashicon{align-items:center;box-sizing:initial;display:inline-flex;justify-content:center;padding:2px}.components-button.has-icon.has-text{gap:4px;justify-content:start;padding-left:8px;padding-right:12px}.components-button.is-pressed{background:var(--wp-components-color-foreground,#1e1e1e);color:var(--wp-components-color-foreground-inverted,#fff)}.components-button.is-pressed:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000}.components-button.is-pressed:hover:not(:disabled){background:var(--wp-components-color-foreground,#1e1e1e);color:var(--wp-components-color-foreground-inverted,#fff)}.components-button svg{fill:currentColor;outline:none}@media (forced-colors:active){.components-button svg{fill:CanvasText}}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{-webkit-appearance:none;appearance:none;background:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:0 0 0 #0000;clear:none;color:#1e1e1e;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;line-height:0;margin:0 4px 0 0;outline:0;padding:6px 8px;padding:0!important;text-align:center;transition:box-shadow .1s linear;transition:none;transition:border-color .1s ease-in-out;vertical-align:top;width:24px}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:#1e1e1e9e}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:#1e1e1e9e}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"";display:inline-block;float:left;font:normal 30px/1 dashicons;vertical-align:middle;width:16px;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]:disabled,.components-checkbox-control__input[type=checkbox][aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:20px;width:20px}}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-delay:0s;transition-duration:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:2px}.components-checkbox-control__input[type=checkbox]:checked,.components-checkbox-control__input[type=checkbox]:indeterminate{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-checkbox-control__input[type=checkbox]:checked::-ms-check,.components-checkbox-control__input[type=checkbox]:indeterminate::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{display:inline-block;height:24px;margin-right:12px;position:relative;vertical-align:middle;width:24px}@media (min-width:600px){.components-checkbox-control__input-container{height:20px;width:20px}}svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{fill:#fff;cursor:pointer;height:24px;left:0;pointer-events:none;position:absolute;top:0;-webkit-user-select:none;user-select:none;width:24px}@media (min-width:600px){svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{left:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;min-width:188px;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end;margin-top:12px}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px;position:relative;z-index:1}.components-circular-option-picker>:not(.components-circular-option-picker__swatches){position:relative;z-index:0}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;transform:scale(1);transition:transform .1s ease;vertical-align:top;width:28px;will-change:transform}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-delay:0s;transition-duration:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='none'%3E%3Cpath fill='%23555D65' d='M6 8V6H4v2zm2 0V6h2v2zm2 8H8v-2h2zm2 0v-2h2v2zm0 2v-2h-2v2H8v2h2v-2zm2 0v2h-2v-2zm2 0h-2v-2h2z'/%3E%3Cpath fill='%23555D65' fill-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2zm-2-4v-2h2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555D65' d='M18 18v2h-2v-2z'/%3E%3Cpath fill='%23555D65' fill-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-2v2zm0 2v-2H6v2zm2 0v-2h2v2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555D65' fill-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-2v2H8V0H6v2H4zm0 4V2H2v2zm2 0V2h2v2zm0 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-2v2H8v2z' clip-rule='evenodd'/%3E%3C/svg%3E");border-radius:50%;bottom:1px;content:"";left:1px;position:absolute;right:1px;top:1px;z-index:-1}.components-circular-option-picker__option{background:#0000;border:none;border-radius:50%;box-shadow:inset 0 0 0 14px;cursor:pointer;display:inline-block;height:100%;transition:box-shadow .1s ease;vertical-align:top;width:100%}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-delay:0s;transition-duration:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option[aria-pressed=true],.components-circular-option-picker__option[aria-selected=true]{box-shadow:inset 0 0 0 4px;overflow:visible;position:relative;z-index:1}.components-circular-option-picker__option[aria-pressed=true]+svg,.components-circular-option-picker__option[aria-selected=true]+svg{border-radius:50%;left:2px;pointer-events:none;position:absolute;top:2px;z-index:2}.components-circular-option-picker__option:after{border:1px solid #0000;border-radius:50%;bottom:-1px;box-shadow:inset 0 0 0 1px #0003;box-sizing:inherit;content:"";left:-1px;position:absolute;right:-1px;top:-1px}.components-circular-option-picker__option:focus:after{border:2px solid #757575;border-radius:50%;box-shadow:inset 0 0 0 2px #fff;content:"";height:calc(100% + 4px);left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:calc(100% + 4px)}.components-circular-option-picker__option.components-button:focus{background-color:initial;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{background:#fff;color:#fff}.components-circular-option-picker__dropdown-link-action{margin-right:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.components-palette-edit__popover-gradient-picker{padding:8px;width:260px}.components-dropdown-menu__menu .components-palette-edit__menu-button{width:100%}.component-color-indicator{background:#fff linear-gradient(-45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0);border-radius:50%;box-shadow:inset 0 0 0 1px #0003;display:inline-block;height:20px;padding:0;width:20px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{border:none;box-shadow:none;font-family:inherit;font-size:16px;line-height:inherit;margin:0;min-height:auto;padding:2px;width:100%}@media (min-width:600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{box-shadow:none;outline:none}.components-combobox-control__suggestions-container{align-items:flex-start;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:0;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-combobox-control__suggestions-container{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:#1e1e1e9e}.components-combobox-control__suggestions-container::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:#1e1e1e9e}.components-combobox-control__suggestions-container:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-combobox-control__reset.components-button{display:flex;height:16px;min-width:16px;padding:0}.components-color-palette__custom-color-wrapper{position:relative;z-index:0}.components-color-palette__custom-color-button{background:none;border:none;border-radius:2px 2px 0 0;box-shadow:inset 0 0 0 1px #0003;box-sizing:border-box;cursor:pointer;height:64px;outline:1px solid #0000;position:relative;width:100%}.components-color-palette__custom-color-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-width:2px}.components-color-palette__custom-color-button:after{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,#0000 0,#0000 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,#0000 0,#0000 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,24px 24px;background-size:48px 48px;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.components-color-palette__custom-color-text-wrapper{border-radius:0 0 2px 2px;box-shadow:inset 0 -1px 0 0 #0003,inset 1px 0 0 0 #0003,inset -1px 0 0 0 #0003;font-size:13px;padding:12px 16px;position:relative}.components-color-palette__custom-color-name{color:var(--wp-components-color-foreground,#1e1e1e);margin:0 1px}.components-color-palette__custom-color-value{color:#757575}.components-color-palette__custom-color-value--is-hex{text-transform:uppercase}.components-color-palette__custom-color-value:empty:after{content:"​";visibility:hidden}.components-custom-gradient-picker__gradient-bar{border-radius:2px;height:48px;position:relative;width:100%;z-index:1}.components-custom-gradient-picker__gradient-bar.has-gradient{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,#0000 0,#0000 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,#0000 0,#0000 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background{inset:0;position:absolute}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{margin-left:auto;margin-right:auto;position:relative;width:calc(100% - 48px)}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-dropdown{display:flex;height:16px;position:absolute;top:16px;width:16px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown{background:#fff;border-radius:50%;color:#1e1e1e;height:inherit;min-width:16px;padding:2px;position:relative;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 #00000040;height:inherit;outline:2px solid #0000;padding:0;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 #00000040;outline:1.5px solid #0000}.components-custom-gradient-picker__remove-control-point-wrapper{padding-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;height:20px;width:20px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-left:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #949494;border-radius:2px}.components-custom-gradient-picker__ui-line{position:relative;z-index:0}.components-custom-select-control{font-size:13px;position:relative}.components-custom-select-control__button{outline:0;position:relative;text-align:left}.components-custom-select-control__hint{color:#949494;margin-left:10px}.components-custom-select-control__menu{background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;max-height:400px;min-width:100%;outline:none;overflow:auto;padding:0;position:absolute;transition:none;z-index:1000000}.components-custom-select-control__menu[aria-hidden=true]{display:none}.components-custom-select-control__item{align-items:center;cursor:default;display:grid;grid-template-columns:auto auto;line-height:28px;list-style-type:none;padding:8px 16px}.components-custom-select-control__item:not(.is-next-40px-default-size){padding:8px}.components-custom-select-control__item.has-hint{grid-template-columns:auto auto 30px}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item .components-custom-select-control__item-hint{color:#949494;padding-right:4px;text-align:right}.components-custom-select-control__item .components-custom-select-control__item-icon{margin-left:auto}.components-custom-select-control__item:last-child{margin-bottom:0}.block-editor-dimension-control .components-base-control__field{align-items:center;display:flex}.block-editor-dimension-control .components-base-control__label{align-items:center;display:flex;margin-bottom:0;margin-right:1em}.block-editor-dimension-control .components-base-control__label .dashicon{margin-right:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{height:50px;left:-1000px;position:fixed;width:50px}.components-draggable__clone{background:#0000;padding:0;pointer-events:none;position:fixed;z-index:1000000000}.components-drop-zone{border-radius:2px;bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;visibility:hidden;z-index:40}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone__content{align-items:center;background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));bottom:0;color:#fff;display:flex;height:100%;justify-content:center;left:0;position:absolute;right:0;text-align:center;top:0;width:100%;z-index:50}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{line-height:0;margin:0 auto 8px;fill:currentColor;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content{padding:8px}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown-menu__toggle{vertical-align:top}.components-dropdown-menu__menu{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{cursor:pointer;outline:none;padding:6px;white-space:nowrap;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;overflow:visible;position:relative}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{background-color:#ddd;box-sizing:initial;content:"";display:block;height:1px;left:0;position:absolute;right:0;top:-3px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-menu-item.is-active svg{background:#1e1e1e;border-radius:1px;box-shadow:0 0 0 1px #1e1e1e;color:#fff}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{height:auto;min-height:36px;padding-left:8px;padding-right:8px;text-align:left}.components-dropdown-menu__menu .components-menu-group{margin:0 -8px;padding:8px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-8px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-8px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-top:1px solid #ccc;margin-top:0;padding:8px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-duotone-picker__color-indicator:before{background:#0000}.components-duotone-picker__color-indicator>.components-button,.components-duotone-picker__color-indicator>.components-button.is-pressed:hover:not(:disabled){background:linear-gradient(-45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0);color:#0000}.components-duotone-picker__color-indicator>.components-button:not([aria-disabled=true]):active{color:#0000}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-list-picker__swatch-button{padding:6px}.components-color-list-picker__swatch-color{margin:2px}.components-form-toggle{display:inline-block;position:relative}.components-form-toggle .components-form-toggle__track{background-color:#fff;border:1px solid #1e1e1e;border-radius:9px;box-sizing:border-box;content:"";display:inline-block;height:18px;overflow:hidden;position:relative;transition:background-color .2s ease,border-color .2s ease;vertical-align:top;width:36px}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-delay:0s;transition-duration:0s}}.components-form-toggle .components-form-toggle__track:after{border-top:18px solid #0000;box-sizing:border-box;content:"";inset:0;opacity:0;position:absolute;transition:opacity .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track:after{transition-delay:0s;transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{background-color:#1e1e1e;border:6px solid #0000;border-radius:50%;box-sizing:border-box;display:block;height:12px;left:3px;position:absolute;top:3px;transition:transform .2s ease,background-color .2s ease-out;width:12px}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-delay:0s;transition-duration:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-toggle.is-checked .components-form-toggle__track:after{opacity:1}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.components-disabled .components-form-toggle,.components-form-toggle.is-disabled{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{border:none;height:100%;left:0;margin:0;opacity:0;padding:0;position:absolute;top:0;width:100%;z-index:1}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;cursor:text;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:0;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-form-token-field__input-container::-webkit-input-placeholder{color:#1e1e1e9e}.components-form-token-field__input-container::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-form-token-field__input-container:-ms-input-placeholder{color:#1e1e1e9e}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-form-token-field__input-container input[type=text].components-form-token-field__input{background:inherit;border:0;box-shadow:none;color:#1e1e1e;display:inline-block;flex:1;font-family:inherit;font-size:16px;margin-left:4px;max-width:100%;min-height:24px;min-width:50px;padding:0;width:100%}@media (min-width:600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{box-shadow:none;outline:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__token{color:#1e1e1e;display:flex;font-size:13px;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-borderless{padding:0 24px 0 0;position:relative}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:#0000;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:#0000;color:#757575;padding:0;position:absolute;right:0;top:1px}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{border-radius:4px 0 0 4px;color:#cc1818;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{background:#ddd;display:inline-block;height:auto;line-height:24px;min-width:unset;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{animation-delay:0s;animation-duration:1ms;transition-delay:0s;transition-duration:0s}}.components-form-token-field__token-text{border-radius:2px 0 0 2px;overflow:hidden;padding:0 0 0 8px;text-overflow:ellipsis;white-space:nowrap}.components-form-token-field__remove-token.components-button{border-radius:0 2px 2px 0;color:#1e1e1e;cursor:pointer;line-height:10px;overflow:initial;padding:0 2px}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{box-shadow:inset 0 1px 0 0 #949494;flex:1 0 100%;list-style:none;margin:0;max-height:128px;min-width:100%;overflow-y:auto;padding:0;transition:all .15s ease-in-out}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-delay:0s;transition-duration:0s}}.components-form-token-field__suggestion{box-sizing:border-box;color:#1e1e1e;cursor:pointer;display:block;font-size:13px;margin:0;min-height:32px;padding:8px 12px}.components-form-token-field__suggestion.is-selected{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__content{border-radius:2px;margin-top:0;padding:0}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;height:60px;padding:0;position:sticky}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 8px 0 0;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:36px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}.components-guide__page-control{margin:0;text-align:center}.components-guide__page-control li{display:inline-block;margin:0}.components-guide__page-control .components-button{color:#e0e0e0;height:30px;margin:-6px 0;min-width:20px}.components-guide__page-control li[aria-current=step] .components-button{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-modal__frame.components-guide{border:none;max-height:575px;min-width:312px}@media (max-width:600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{position:absolute}.components-button.components-guide__back-button{left:32px}.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{right:32px}[role=region]{position:relative}.is-focusing-regions [role=region]:focus:after{bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions .editor-post-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions .edit-post-layout__toggle-entities-saved-states-panel,.is-focusing-regions .interface-interface-skeleton__actions .edit-post-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__sidebar .edit-post-layout__toggle-sidebar-panel,.is-focusing-regions [role=region]:focus:after,.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header{outline:4px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-offset:-4px}.components-menu-group+.components-menu-group{border-top:1px solid #1e1e1e;margin-top:8px;padding-top:8px}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group__label{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;margin-top:4px;padding:0 8px;text-transform:uppercase;white-space:nowrap}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child{box-sizing:initial;padding-right:48px}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right{margin-left:24px;margin-right:-2px}.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-left:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:-2px;margin-right:8px}.components-menu-item__button.components-button.is-primary,.components-menu-item__button.is-primary{justify-content:center}.components-menu-item__button.components-button.is-primary .components-menu-item__item,.components-menu-item__button.is-primary .components-menu-item__item{margin-right:0}.components-menu-item__button.components-button:disabled.is-tertiary,.components-menu-item__button.components-button[aria-disabled=true].is-tertiary,.components-menu-item__button:disabled.is-tertiary,.components-menu-item__button[aria-disabled=true].is-tertiary{background:none;color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));opacity:.3}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-right:auto}.components-menu-item__info{color:#757575;font-size:12px;margin-top:4px;white-space:normal}.components-menu-item__item{align-items:center;display:inline-flex;margin-right:auto;min-width:160px;white-space:nowrap}.components-menu-item__shortcut{align-self:center;color:currentColor;display:none;margin-left:auto;margin-right:0;padding-left:24px}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice svg,.components-menu-items-choice.components-button svg{margin-right:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-left:12px}.components-modal__screen-overlay{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards;background-color:#00000059;bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:100000}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-delay:0s;animation-duration:1ms}}.components-modal__frame{animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards;background:#fff;border-radius:4px 4px 0 0;box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,.1px 11.5px 16.4px -.5px #00000026;display:flex;margin:40px 0 0;overflow:hidden;width:100%}@media (prefers-reduced-motion:reduce){.components-modal__frame{animation-delay:0s;animation-duration:1ms}}@media (min-width:600px){.components-modal__frame{border-radius:4px;margin:auto;max-height:calc(100% - 120px);max-width:calc(100% - 32px);min-width:350px;width:auto}}@media (min-width:600px) and (min-width:600px){.components-modal__frame.is-full-screen{height:calc(100% - 32px);max-height:none;width:calc(100% - 32px)}}@media (min-width:600px) and (min-width:782px){.components-modal__frame.is-full-screen{height:calc(100% - 80px);max-width:none;width:calc(100% - 80px)}}@media (min-width:600px){.components-modal__frame.has-size-large,.components-modal__frame.has-size-medium,.components-modal__frame.has-size-small{width:100%}.components-modal__frame.has-size-small{max-width:384px}.components-modal__frame.has-size-medium{max-width:512px}.components-modal__frame.has-size-large{max-width:840px}}@media (min-width:960px){.components-modal__frame{max-height:70%}}@keyframes components-modal__appear-animation{0%{transform:translateY(32px)}to{transform:translateY(0)}}.components-modal__header{align-items:center;border-bottom:1px solid #0000;box-sizing:border-box;display:flex;flex-direction:row;height:72px;justify-content:space-between;left:0;padding:24px 32px 8px;position:absolute;top:0;width:100%;z-index:10}.components-modal__header .components-modal__header-heading{font-size:1.2rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{left:8px;position:relative}.components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header{border-bottom-color:#ddd}.components-modal__header+p{margin-top:0}.components-modal__header-heading-container{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-height:36px;max-width:36px;padding:8px}.components-modal__content{flex:1;margin-top:72px;overflow:auto;padding:4px 32px 32px}.components-modal__content.hide-header{margin-top:0;padding-top:32px}.components-modal__content.is-scrollable:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000;outline-offset:-2px}.components-notice{align-items:center;background-color:#fff;border-left:4px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 12px}.components-notice.is-dismissible{position:relative}.components-notice.is-success{background-color:#eff9f1;border-left-color:#4ab866}.components-notice.is-warning{background-color:#fef8ee;border-left-color:#f0b849}.components-notice.is-error{background-color:#f4a2a2;border-left-color:#cc1818}.components-notice__content{flex-grow:1;margin:4px 25px 4px 0}.components-notice__actions{display:flex;flex-wrap:wrap}.components-notice__action.components-button{margin-right:8px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-left:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{align-self:flex-start;color:#757575;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{background-color:initial;color:#1e1e1e}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{box-sizing:border-box;max-width:100vw}.components-notice-list .components-notice__content{line-height:2;margin-bottom:12px;margin-top:12px}.components-notice-list .components-notice__action.components-button{display:block;margin-left:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{align-items:center;border-bottom:1px solid #ddd;box-sizing:initial;display:flex;height:47px;justify-content:space-between;padding:0 16px}.components-panel__header h2{color:inherit;font-size:inherit;margin:0}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;font-size:inherit;margin-bottom:0;margin-top:0;padding:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-delay:0s;transition-duration:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{border:none;box-shadow:none;color:#1e1e1e;font-weight:500;height:auto;outline:none;padding:16px 48px 16px 16px;position:relative;text-align:left;transition:background .1s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-delay:0s;transition-duration:0s}}.components-panel__body-toggle.components-button:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-panel__body-toggle.components-button .components-panel__arrow{color:#1e1e1e;position:absolute;right:16px;top:50%;transform:translateY(-50%);fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-delay:0s;transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{-ms-filter:fliph;filter:FlipH;margin-top:-10px;transform:scaleX(-1)}.components-panel__icon{color:#757575;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{align-items:center;display:flex;justify-content:space-between;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{flex-shrink:0;margin-right:12px;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{box-sizing:border-box;color:#1e1e1e;font-size:13px;margin:0;padding:1em;position:relative;text-align:left;width:100%;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid #0000}@supports (position:sticky){.components-placeholder.components-placeholder{align-items:flex-start;display:flex;flex-direction:column;justify-content:top}}.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;font-weight:400;letter-spacing:normal;line-height:normal;text-transform:none}.components-placeholder__label{align-items:center;display:flex;font-weight:600;margin-bottom:16px}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{margin-right:12px;fill:currentColor}@media (forced-colors:active){.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:CanvasText}}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;flex:1 1 auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin:0 8px 0 0;padding:6px 8px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:#1e1e1e9e}.components-placeholder__input[type=url]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-placeholder__input[type=url]:-ms-input-placeholder{color:#1e1e1e9e}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__fieldset .components-button{margin-bottom:12px;margin-right:12px}.components-placeholder__fieldset .components-button:last-child{margin-bottom:0;margin-right:0}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-right:0}.components-placeholder.is-large .components-placeholder__label{font-size:18pt;font-weight:400}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset .components-button,.components-placeholder.is-small .components-placeholder__fieldset .components-button{margin-right:auto}.components-placeholder.is-small .components-button{padding:0 8px 2px}.components-placeholder.has-illustration{-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);backface-visibility:hidden;background-color:initial;border-radius:2px;box-shadow:none;color:inherit;display:flex;overflow:auto}.is-dark-theme .components-placeholder.has-illustration{background-color:#0000001a}.components-placeholder.has-illustration .components-placeholder__fieldset{margin-left:0;margin-right:0;width:auto}.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{opacity:0;pointer-events:none;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{transition-delay:0s;transition-duration:0s}}.is-selected>.components-placeholder.has-illustration .components-button,.is-selected>.components-placeholder.has-illustration .components-placeholder__instructions,.is-selected>.components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.components-placeholder.has-illustration:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.components-placeholder__preview{display:flex;justify-content:center}.components-placeholder__illustration{box-sizing:initial;height:100%;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;stroke:currentColor;opacity:.25}.components-popover{box-sizing:border-box;will-change:transform;z-index:1000000}.components-popover *,.components-popover :after,.components-popover :before{box-sizing:inherit}.components-popover.is-expanded{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1000000!important}.components-popover__content{background:#fff;border-radius:2px;box-shadow:0 0 0 1px #ccc,0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;box-sizing:border-box;width:min-content}.is-alternate .components-popover__content{box-shadow:0 0 0 1px #1e1e1e}.is-unstyled .components-popover__content{background:none;border-radius:0;box-shadow:none}.components-popover.is-expanded .components-popover__content{box-shadow:0 -1px 0 0 #ccc;height:calc(100% - 48px);overflow-y:visible;position:static;width:auto}.components-popover.is-expanded.is-alternate .components-popover__content{box-shadow:0 -1px 0 #1e1e1e}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-button{z-index:5}.components-popover__arrow{display:flex;height:14px;pointer-events:none;position:absolute;width:14px}.components-popover__arrow:before{background-color:#fff;content:"";height:2px;left:1px;position:absolute;right:1px;top:-1px}.components-popover__arrow.is-top{bottom:-14px!important;transform:rotate(0)}.components-popover__arrow.is-right{left:-14px!important;transform:rotate(90deg)}.components-popover__arrow.is-bottom{top:-14px!important;transform:rotate(180deg)}.components-popover__arrow.is-left{right:-14px!important;transform:rotate(-90deg)}.components-popover__triangle{display:block;flex:1}.components-popover__triangle-bg{fill:#fff}.components-popover__triangle-border{fill:#0000;stroke-width:1px;stroke:#ccc}.is-alternate .components-popover__triangle-border{stroke:#1e1e1e}.components-popover-pointer-events-trap{background-color:initial;inset:0;position:fixed;z-index:1000000}.components-radio-control__option{align-items:center;display:flex}.components-radio-control__input[type=radio]{-webkit-appearance:none;appearance:none;border:1px solid #1e1e1e;border-radius:2px;border-radius:50%;box-shadow:0 0 0 #0000;cursor:pointer;display:inline-flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;margin:0 6px 0 0;padding:0;transition:box-shadow .1s linear;transition:none;width:24px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:#1e1e1e9e}.components-radio-control__input[type=radio]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:#1e1e1e9e}@media (min-width:600px){.components-radio-control__input[type=radio]{height:20px;width:20px}}.components-radio-control__input[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:8px;margin:0;transform:translate(7px,7px);width:8px}@media (min-width:600px){.components-radio-control__input[type=radio]:checked:before{transform:translate(5px,5px)}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.components-radio-control__input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px var(--wp-components-color-background,#fff),0 0 0 4px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-radio-control__input[type=radio]:checked{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-radio-control__input[type=radio]:checked:before{border-radius:50%;content:""}.components-radio-control__label{cursor:pointer}.components-resizable-box__handle{display:none;height:23px;width:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__container>img{width:inherit}.components-resizable-box__handle:after{background:#fff;border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));content:"";cursor:inherit;display:block;height:15px;outline:2px solid #0000;position:absolute;right:calc(50% - 8px);top:calc(50% - 8px);width:15px}.components-resizable-box__side-handle:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:2px;content:"";cursor:inherit;display:block;height:3px;opacity:0;position:absolute;right:calc(50% - 1px);top:calc(50% - 1px);transition:transform .1s ease-in;width:3px;will-change:transform}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-delay:0s;transition-duration:0s}}.components-resizable-box__corner-handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{border-left:0;border-right:0;left:0;width:100%}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{border-bottom:0;border-top:0;height:100%;top:0}.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation-delay:0s;animation-duration:1ms}}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation-delay:0s;animation-duration:1ms}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}@keyframes components-resizable-box__left-right-animation{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}
+@charset "UTF-8";:root{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-delay:0s;animation-duration:1ms}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top left}.components-animate__appear.is-from-top.is-from-right{transform-origin:top right}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom left}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom right}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-delay:0s;animation-duration:1ms}}.components-animate__slide-in.is-from-left{transform:translateX(100%)}.components-animate__slide-in.is-from-right{transform:translateX(-100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content{min-width:200px;padding:8px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:left;width:100%}.components-autocomplete__result.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.components-autocomplete__result.components-button.is-selected,.components-autocomplete__result.components-button:not(:disabled,[aria-disabled=true]):active{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;display:inline-flex}.components-button-group .components-button+.components-button{margin-left:-1px}.components-button-group .components-button:first-child{border-radius:2px 0 0 2px}.components-button-group .components-button:last-child{border-radius:0 2px 2px 0}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{align-items:center;-webkit-appearance:none;background:none;border:0;border-radius:2px;box-sizing:border-box;color:var(--wp-components-color-foreground,#1e1e1e);cursor:pointer;display:inline-flex;font-family:inherit;font-size:13px;font-weight:400;height:36px;margin:0;padding:6px 12px;text-decoration:none;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-button{transition-delay:0s;transition-duration:0s}}.components-button.is-next-40px-default-size{height:40px}.components-button:hover,.components-button[aria-expanded=true]{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button:disabled:hover,.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:3px solid #0000}.components-button.is-primary{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent-inverted,#fff);outline:1px solid #0000;text-decoration:none;text-shadow:none;white-space:nowrap}.components-button.is-primary:hover:not(:disabled){background:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-primary:active:not(:disabled){background:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));border-color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-primary:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff6;opacity:1;outline:none}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 70%,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 70%);background-size:100px 100%;border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-secondary,.components-button.is-tertiary{outline:1px solid #0000}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){box-shadow:none}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{background:#0000;color:#949494;opacity:1;transform:none}.components-button.is-secondary{background:#0000;box-shadow:inset 0 0 0 1px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:1px solid #0000;white-space:nowrap}.components-button.is-secondary:hover:not(:disabled,[aria-disabled=true]){box-shadow:inset 0 0 0 1px var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6))}.components-button.is-secondary:disabled:not(:focus),.components-button.is-secondary[aria-disabled=true]:hover:not(:focus),.components-button.is-secondary[aria-disabled=true]:not(:focus){box-shadow:inset 0 0 0 1px #ddd}.components-button.is-tertiary{background:#0000;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));white-space:nowrap}.components-button.is-tertiary:hover:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.components-button.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.08)}p+.components-button.is-tertiary{margin-left:-6px}.components-button.is-tertiary:disabled:not(:focus),.components-button.is-tertiary[aria-disabled=true]:hover:not(:focus),.components-button.is-tertiary[aria-disabled=true]:not(:focus){box-shadow:none;outline:none}.components-button.is-destructive{--wp-components-color-accent:#cc1818;--wp-components-color-accent-darker-10:#9e1313;--wp-components-color-accent-darker-20:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link){color:#cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):hover:not(:disabled){color:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) #cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):active:not(:disabled){background:#ccc}.components-button.is-link{background:none;border:0;border-radius:0;box-shadow:none;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));height:auto;margin:0;outline:none;padding:0;text-align:left;text-decoration:underline;transition-duration:.05s;transition-property:border,background,color;transition-timing-function:ease-in-out}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-delay:0s;transition-duration:0s}}.components-button.is-link:focus{border-radius:2px}.components-button:not(:disabled,[aria-disabled=true]):active{color:var(--wp-components-color-foreground,#1e1e1e)}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;background-image:linear-gradient(-45deg,#fafafa 33%,#e0e0e0 0,#e0e0e0 70%,#fafafa 0);background-size:100px 100%;opacity:1}@media (prefers-reduced-motion:reduce){.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-duration:0s}}.components-button.is-compact{height:32px}.components-button.is-compact.has-icon:not(.has-text){min-width:32px;padding:0;width:32px}.components-button.is-small{font-size:11px;height:24px;line-height:22px;padding:0 8px}.components-button.is-small.has-icon:not(.has-text){min-width:24px;padding:0;width:24px}.components-button.has-icon{justify-content:center;min-width:36px;padding:6px}.components-button.has-icon.is-next-40px-default-size{min-width:40px}.components-button.has-icon .dashicon{align-items:center;box-sizing:initial;display:inline-flex;justify-content:center;padding:2px}.components-button.has-icon.has-text{gap:4px;justify-content:start;padding-left:8px;padding-right:12px}.components-button.is-pressed{background:var(--wp-components-color-foreground,#1e1e1e);color:var(--wp-components-color-foreground-inverted,#fff)}.components-button.is-pressed:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000}.components-button.is-pressed:hover:not(:disabled){background:var(--wp-components-color-foreground,#1e1e1e);color:var(--wp-components-color-foreground-inverted,#fff)}.components-button svg{fill:currentColor;outline:none}@media (forced-colors:active){.components-button svg{fill:CanvasText}}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control{--checkbox-input-size:24px}@media (min-width:600px){.components-checkbox-control{--checkbox-input-size:20px}}.components-checkbox-control__label{line-height:var(--checkbox-input-size)}.components-checkbox-control__input[type=checkbox]{appearance:none;background:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:0 0 0 #0000;clear:none;color:#1e1e1e;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:var(--checkbox-input-size);line-height:normal;line-height:0;margin:0 4px 0 0;outline:0;padding:6px 8px;padding:0!important;text-align:center;transition:box-shadow .1s linear;transition:none;transition:border-color .1s ease-in-out;vertical-align:top;width:var(--checkbox-input-size)}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:#1e1e1e9e}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:#1e1e1e9e}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"";display:inline-block;float:left;font:normal 30px/1 dashicons;vertical-align:middle;width:16px;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]:disabled,.components-checkbox-control__input[type=checkbox][aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-delay:0s;transition-duration:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:2px}.components-checkbox-control__input[type=checkbox]:checked,.components-checkbox-control__input[type=checkbox]:indeterminate{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-checkbox-control__input[type=checkbox]:checked::-ms-check,.components-checkbox-control__input[type=checkbox]:indeterminate::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{aspect-ratio:1;display:inline-block;flex-shrink:0;margin-right:12px;position:relative;vertical-align:middle;width:var(--checkbox-input-size)}svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{--checkmark-size:var(--checkbox-input-size);fill:#fff;cursor:pointer;height:var(--checkmark-size);left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);-webkit-user-select:none;user-select:none;width:var(--checkmark-size)}@media (min-width:600px){svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{--checkmark-size:calc(var(--checkbox-input-size) + 4px)}}.components-checkbox-control__help{display:inline-block;margin-inline-start:calc(var(--checkbox-input-size) + 12px)}.components-circular-option-picker{display:inline-block;min-width:188px;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end;margin-top:12px}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px;position:relative;z-index:1}.components-circular-option-picker>:not(.components-circular-option-picker__swatches){position:relative;z-index:0}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;transform:scale(1);transition:transform .1s ease;vertical-align:top;width:28px;will-change:transform}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-delay:0s;transition-duration:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='none'%3E%3Cpath fill='%23555D65' d='M6 8V6H4v2zm2 0V6h2v2zm2 8H8v-2h2zm2 0v-2h2v2zm0 2v-2h-2v2H8v2h2v-2zm2 0v2h-2v-2zm2 0h-2v-2h2z'/%3E%3Cpath fill='%23555D65' fill-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2zm-2-4v-2h2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555D65' d='M18 18v2h-2v-2z'/%3E%3Cpath fill='%23555D65' fill-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-2v2zm0 2v-2H6v2zm2 0v-2h2v2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555D65' fill-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-2v2H8V0H6v2H4zm0 4V2H2v2zm2 0V2h2v2zm0 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-2v2H8v2z' clip-rule='evenodd'/%3E%3C/svg%3E");border-radius:50%;bottom:1px;content:"";left:1px;position:absolute;right:1px;top:1px;z-index:-1}.components-circular-option-picker__option{background:#0000;border:none;border-radius:50%;box-shadow:inset 0 0 0 14px;cursor:pointer;display:inline-block;height:100%;transition:box-shadow .1s ease;vertical-align:top;width:100%}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-delay:0s;transition-duration:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option[aria-pressed=true],.components-circular-option-picker__option[aria-selected=true]{box-shadow:inset 0 0 0 4px;overflow:visible;position:relative;z-index:1}.components-circular-option-picker__option[aria-pressed=true]+svg,.components-circular-option-picker__option[aria-selected=true]+svg{border-radius:50%;left:2px;pointer-events:none;position:absolute;top:2px;z-index:2}.components-circular-option-picker__option:after{border:1px solid #0000;border-radius:50%;bottom:-1px;box-shadow:inset 0 0 0 1px #0003;box-sizing:inherit;content:"";left:-1px;position:absolute;right:-1px;top:-1px}.components-circular-option-picker__option:focus:after{border:2px solid #757575;border-radius:50%;box-shadow:inset 0 0 0 2px #fff;content:"";height:calc(100% + 4px);left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:calc(100% + 4px)}.components-circular-option-picker__option.components-button:focus{background-color:initial;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{background:#fff;color:#fff}.components-circular-option-picker__dropdown-link-action{margin-right:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.components-palette-edit__popover-gradient-picker{padding:8px;width:260px}.components-dropdown-menu__menu .components-palette-edit__menu-button{width:100%}.component-color-indicator{background:#fff linear-gradient(-45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0);border-radius:50%;box-shadow:inset 0 0 0 1px #0003;display:inline-block;height:20px;padding:0;width:20px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{border:none;box-shadow:none;font-family:inherit;font-size:16px;line-height:inherit;margin:0;min-height:auto;padding:2px;width:100%}@media (min-width:600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{box-shadow:none;outline:none}.components-combobox-control__suggestions-container{align-items:flex-start;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:0;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-combobox-control__suggestions-container{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:#1e1e1e9e}.components-combobox-control__suggestions-container::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:#1e1e1e9e}.components-combobox-control__suggestions-container:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-combobox-control__reset.components-button{display:flex;height:16px;min-width:16px;padding:0}.components-color-palette__custom-color-wrapper{position:relative;z-index:0}.components-color-palette__custom-color-button{background:none;border:none;border-radius:2px 2px 0 0;box-shadow:inset 0 0 0 1px #0003;box-sizing:border-box;cursor:pointer;height:64px;outline:1px solid #0000;position:relative;width:100%}.components-color-palette__custom-color-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-width:2px}.components-color-palette__custom-color-button:after{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,#0000 0,#0000 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,#0000 0,#0000 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,24px 24px;background-size:48px 48px;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.components-color-palette__custom-color-text-wrapper{border-radius:0 0 2px 2px;box-shadow:inset 0 -1px 0 0 #0003,inset 1px 0 0 0 #0003,inset -1px 0 0 0 #0003;font-size:13px;padding:12px 16px;position:relative}.components-color-palette__custom-color-name{color:var(--wp-components-color-foreground,#1e1e1e);margin:0 1px}.components-color-palette__custom-color-value{color:#757575}.components-color-palette__custom-color-value--is-hex{text-transform:uppercase}.components-color-palette__custom-color-value:empty:after{content:"​";visibility:hidden}.components-custom-gradient-picker__gradient-bar{border-radius:2px;height:48px;position:relative;width:100%;z-index:1}.components-custom-gradient-picker__gradient-bar.has-gradient{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,#0000 0,#0000 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,#0000 0,#0000 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background{inset:0;position:absolute}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{margin-left:auto;margin-right:auto;position:relative;width:calc(100% - 48px)}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-dropdown{display:flex;height:16px;position:absolute;top:16px;width:16px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown{background:#fff;border-radius:50%;color:#1e1e1e;height:inherit;min-width:16px;padding:2px;position:relative;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 #00000040;height:inherit;outline:2px solid #0000;padding:0;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 #00000040;outline:1.5px solid #0000}.components-custom-gradient-picker__remove-control-point-wrapper{padding-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;height:20px;width:20px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-left:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #949494;border-radius:2px}.components-custom-gradient-picker__ui-line{position:relative;z-index:0}.components-custom-select-control{font-size:13px;position:relative}.components-custom-select-control__button{outline:0;position:relative;text-align:left}.components-custom-select-control__hint{color:#949494;margin-left:10px}.components-custom-select-control__menu-wrapper{bottom:0;min-width:100%;position:absolute}.components-custom-select-control__menu{background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;max-height:400px;min-width:100%;outline:none;overflow:auto;padding:0;position:absolute;transition:none;z-index:1000000}.components-custom-select-control__menu[aria-hidden=true]{display:none}.components-custom-select-control__item{align-items:center;cursor:default;display:grid;grid-template-columns:auto auto;line-height:28px;list-style-type:none;padding:8px 16px}.components-custom-select-control__item:not(.is-next-40px-default-size){padding:8px}.components-custom-select-control__item.has-hint{grid-template-columns:auto auto 30px}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item .components-custom-select-control__item-hint{color:#949494;padding-right:4px;text-align:right}.components-custom-select-control__item .components-custom-select-control__item-icon{margin-left:auto}.components-custom-select-control__item:last-child{margin-bottom:0}.block-editor-dimension-control .components-base-control__field{align-items:center;display:flex}.block-editor-dimension-control .components-base-control__label{align-items:center;display:flex;margin-bottom:0;margin-right:1em}.block-editor-dimension-control .components-base-control__label .dashicon{margin-right:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{height:50px;left:-1000px;position:fixed;width:50px}.components-draggable__clone{background:#0000;padding:0;pointer-events:none;position:fixed;z-index:1000000000}.components-drop-zone{border-radius:2px;bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;visibility:hidden;z-index:40}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone__content{align-items:center;background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));bottom:0;color:#fff;display:flex;height:100%;justify-content:center;left:0;position:absolute;right:0;text-align:center;top:0;width:100%;z-index:50}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{line-height:0;margin:0 auto 8px;fill:currentColor;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content{padding:8px}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown__content .components-menu-group{margin:0 -8px;padding:8px}.components-dropdown__content .components-menu-group:first-child{margin-top:-8px}.components-dropdown__content .components-menu-group:last-child{margin-bottom:-8px}.components-dropdown__content .components-menu-group+.components-menu-group{border-top:1px solid #ccc;margin-top:0;padding:8px}.components-dropdown__content.is-alternate .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-dropdown-menu__toggle{vertical-align:top}.components-dropdown-menu__menu{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{cursor:pointer;outline:none;padding:6px;white-space:nowrap;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;overflow:visible;position:relative}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{background-color:#ddd;box-sizing:initial;content:"";display:block;height:1px;left:0;position:absolute;right:0;top:-3px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-menu-item.is-active svg{background:#1e1e1e;border-radius:1px;box-shadow:0 0 0 1px #1e1e1e;color:#fff}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{height:auto;min-height:36px;padding-left:8px;padding-right:8px;text-align:left}.components-duotone-picker__color-indicator:before{background:#0000}.components-duotone-picker__color-indicator>.components-button,.components-duotone-picker__color-indicator>.components-button.is-pressed:hover:not(:disabled){background:linear-gradient(-45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0);color:#0000}.components-duotone-picker__color-indicator>.components-button:not([aria-disabled=true]):active{color:#0000}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-list-picker__swatch-button{padding:6px}.components-color-list-picker__swatch-color{margin:2px}.components-external-link{text-decoration:none}.components-external-link__contents{text-decoration:underline}.components-external-link__icon{font-weight:400;margin-left:.5ch}.components-form-toggle{display:inline-block;position:relative}.components-form-toggle .components-form-toggle__track{background-color:#fff;border:1px solid #1e1e1e;border-radius:9px;box-sizing:border-box;content:"";display:inline-block;height:18px;overflow:hidden;position:relative;transition:background-color .2s ease,border-color .2s ease;vertical-align:top;width:36px}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-delay:0s;transition-duration:0s}}.components-form-toggle .components-form-toggle__track:after{border-top:18px solid #0000;box-sizing:border-box;content:"";inset:0;opacity:0;position:absolute;transition:opacity .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track:after{transition-delay:0s;transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{background-color:#1e1e1e;border:6px solid #0000;border-radius:50%;box-sizing:border-box;display:block;height:12px;left:3px;position:absolute;top:3px;transition:transform .2s ease,background-color .2s ease-out;width:12px}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-delay:0s;transition-duration:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-toggle.is-checked .components-form-toggle__track:after{opacity:1}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.components-disabled .components-form-toggle,.components-form-toggle.is-disabled{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{border:none;height:100%;left:0;margin:0;opacity:0;padding:0;position:absolute;top:0;width:100%;z-index:1}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;cursor:text;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:0;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-form-token-field__input-container::-webkit-input-placeholder{color:#1e1e1e9e}.components-form-token-field__input-container::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-form-token-field__input-container:-ms-input-placeholder{color:#1e1e1e9e}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-form-token-field__input-container input[type=text].components-form-token-field__input{background:inherit;border:0;box-shadow:none;color:#1e1e1e;display:inline-block;flex:1;font-family:inherit;font-size:16px;margin-left:4px;max-width:100%;min-height:24px;min-width:50px;padding:0;width:100%}@media (min-width:600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{box-shadow:none;outline:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__token{color:#1e1e1e;display:flex;font-size:13px;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-borderless{padding:0 24px 0 0;position:relative}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:#0000;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:#0000;color:#757575;padding:0;position:absolute;right:0;top:1px}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{border-radius:4px 0 0 4px;color:#cc1818;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{background:#ddd;display:inline-block;height:auto;line-height:24px;min-width:unset;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{animation-delay:0s;animation-duration:1ms;transition-delay:0s;transition-duration:0s}}.components-form-token-field__token-text{border-radius:2px 0 0 2px;overflow:hidden;padding:0 0 0 8px;text-overflow:ellipsis;white-space:nowrap}.components-form-token-field__remove-token.components-button{border-radius:0 2px 2px 0;color:#1e1e1e;cursor:pointer;line-height:10px;overflow:initial;padding:0 2px}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{box-shadow:inset 0 1px 0 0 #949494;flex:1 0 100%;list-style:none;margin:0;max-height:128px;min-width:100%;overflow-y:auto;padding:0;transition:all .15s ease-in-out}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-delay:0s;transition-duration:0s}}.components-form-token-field__suggestion{box-sizing:border-box;color:#1e1e1e;cursor:pointer;display:block;font-size:13px;margin:0;min-height:32px;padding:8px 12px}.components-form-token-field__suggestion.is-selected{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff}.components-form-token-field__suggestion[aria-disabled=true]{color:#949494;pointer-events:none}.components-form-token-field__suggestion[aria-disabled=true].is-selected{background-color:rgba(var(--wp-components-color-accent--rgb,var(--wp-admin-theme-color--rgb)),.04)}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__content{border-radius:2px;margin-top:0;padding:0}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;height:60px;padding:0;position:sticky}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 8px 0 0;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:36px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}.components-guide__page-control{margin:0;text-align:center}.components-guide__page-control li{display:inline-block;margin:0}.components-guide__page-control .components-button{color:#e0e0e0;height:30px;margin:-6px 0;min-width:20px}.components-guide__page-control li[aria-current=step] .components-button{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-modal__frame.components-guide{border:none;max-height:575px;min-width:312px}@media (max-width:600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{position:absolute}.components-button.components-guide__back-button{left:32px}.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{right:32px}[role=region]{position:relative}.is-focusing-regions [role=region]:focus:after{bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions .editor-post-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-entities-saved-states-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__sidebar .editor-layout__toggle-sidebar-panel,.is-focusing-regions [role=region]:focus:after,.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header{outline:4px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-offset:-4px}.components-menu-group+.components-menu-group{border-top:1px solid #1e1e1e;margin-top:8px;padding-top:8px}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group__label{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;margin-top:4px;padding:0 8px;text-transform:uppercase;white-space:nowrap}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child{box-sizing:initial;padding-right:48px}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right{margin-left:24px;margin-right:-2px}.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-left:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:-2px;margin-right:8px}.components-menu-item__button.components-button.is-primary,.components-menu-item__button.is-primary{justify-content:center}.components-menu-item__button.components-button.is-primary .components-menu-item__item,.components-menu-item__button.is-primary .components-menu-item__item{margin-right:0}.components-menu-item__button.components-button:disabled.is-tertiary,.components-menu-item__button.components-button[aria-disabled=true].is-tertiary,.components-menu-item__button:disabled.is-tertiary,.components-menu-item__button[aria-disabled=true].is-tertiary{background:none;color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));opacity:.3}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-right:auto}.components-menu-item__info{color:#757575;font-size:12px;margin-top:4px;white-space:normal}.components-menu-item__item{align-items:center;display:inline-flex;margin-right:auto;min-width:160px;white-space:nowrap}.components-menu-item__shortcut{align-self:center;color:currentColor;display:none;margin-left:auto;margin-right:0;padding-left:24px}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice svg,.components-menu-items-choice.components-button svg{margin-right:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-left:12px}.components-modal__screen-overlay{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards;background-color:#00000059;bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:100000}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-delay:0s;animation-duration:1ms}}.components-modal__frame{animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards;background:#fff;border-radius:4px 4px 0 0;box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,.1px 11.5px 16.4px -.5px #00000026;box-sizing:border-box;display:flex;margin:40px 0 0;overflow:hidden;width:100%}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{box-sizing:inherit}@media (prefers-reduced-motion:reduce){.components-modal__frame{animation-delay:0s;animation-duration:1ms}}@media (min-width:600px){.components-modal__frame{border-radius:4px;margin:auto;max-height:calc(100% - 120px);max-width:calc(100% - 32px);min-width:350px;width:auto}}@media (min-width:600px) and (min-width:600px){.components-modal__frame.is-full-screen{height:calc(100% - 32px);max-height:none;width:calc(100% - 32px)}}@media (min-width:600px) and (min-width:782px){.components-modal__frame.is-full-screen{height:calc(100% - 80px);max-width:none;width:calc(100% - 80px)}}@media (min-width:600px){.components-modal__frame.has-size-large,.components-modal__frame.has-size-medium,.components-modal__frame.has-size-small{width:100%}.components-modal__frame.has-size-small{max-width:384px}.components-modal__frame.has-size-medium{max-width:512px}.components-modal__frame.has-size-large{max-width:840px}}@media (min-width:960px){.components-modal__frame{max-height:70%}}@keyframes components-modal__appear-animation{0%{transform:translateY(32px)}to{transform:translateY(0)}}.components-modal__header{align-items:center;border-bottom:1px solid #0000;box-sizing:border-box;display:flex;flex-direction:row;height:72px;justify-content:space-between;left:0;padding:24px 32px 8px;position:absolute;top:0;width:100%;z-index:10}.components-modal__header .components-modal__header-heading{font-size:1.2rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{left:8px;position:relative}.components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header{border-bottom-color:#ddd}.components-modal__header+p{margin-top:0}.components-modal__header-heading-container{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-height:36px;max-width:36px;padding:8px}.components-modal__content{flex:1;margin-top:72px;overflow:auto;padding:4px 32px 32px}.components-modal__content.hide-header{margin-top:0;padding-top:32px}.components-modal__content.is-scrollable:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000;outline-offset:-2px}.components-notice{align-items:center;background-color:#fff;border-left:4px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 12px}.components-notice.is-dismissible{position:relative}.components-notice.is-success{background-color:#eff9f1;border-left-color:#4ab866}.components-notice.is-warning{background-color:#fef8ee;border-left-color:#f0b849}.components-notice.is-error{background-color:#f4a2a2;border-left-color:#cc1818}.components-notice__content{flex-grow:1;margin:4px 25px 4px 0}.components-notice__actions{display:flex;flex-wrap:wrap}.components-notice__action.components-button{margin-right:8px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-left:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{align-self:flex-start;color:#757575;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{background-color:initial;color:#1e1e1e}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{box-sizing:border-box;max-width:100vw}.components-notice-list .components-notice__content{line-height:2;margin-bottom:12px;margin-top:12px}.components-notice-list .components-notice__action.components-button{display:block;margin-left:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{align-items:center;border-bottom:1px solid #ddd;box-sizing:initial;display:flex;flex-shrink:0;height:47px;justify-content:space-between;padding:0 16px}.components-panel__header h2{color:inherit;font-size:inherit;margin:0}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;font-size:inherit;margin-bottom:0;margin-top:0;padding:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-delay:0s;transition-duration:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{border:none;box-shadow:none;color:#1e1e1e;font-weight:500;height:auto;outline:none;padding:16px 48px 16px 16px;position:relative;text-align:left;transition:background .1s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-delay:0s;transition-duration:0s}}.components-panel__body-toggle.components-button:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-panel__body-toggle.components-button .components-panel__arrow{color:#1e1e1e;position:absolute;right:16px;top:50%;transform:translateY(-50%);fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-delay:0s;transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{-ms-filter:fliph;filter:FlipH;margin-top:-10px;transform:scaleX(-1)}.components-panel__icon{color:#757575;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{align-items:center;display:flex;justify-content:space-between;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{flex-shrink:0;margin-right:12px;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{align-items:flex-start;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:column;font-size:13px;gap:16px;margin:0;padding:24px;position:relative;text-align:left;width:100%;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid #0000}.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;font-weight:400;letter-spacing:normal;line-height:normal;text-transform:none}.components-placeholder__label{align-items:center;display:flex;font-weight:600}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{margin-right:4px;fill:currentColor}@media (forced-colors:active){.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:CanvasText}}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;flex-wrap:wrap;gap:16px;justify-content:flex-start;width:100%}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;flex:1 1 auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:#1e1e1e9e}.components-placeholder__input[type=url]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-placeholder__input[type=url]:-ms-input-placeholder{color:#1e1e1e9e}.components-placeholder__error{gap:8px;width:100%}.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-button,.components-placeholder.is-medium .components-placeholder__fieldset>*,.components-placeholder.is-small .components-button,.components-placeholder.is-small .components-placeholder__fieldset>*{justify-content:center;width:100%}.components-placeholder.is-small{padding:16px}.components-placeholder.has-illustration{-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);backface-visibility:hidden;background-color:initial;border-radius:2px;box-shadow:none;color:inherit;display:flex;overflow:hidden}.is-dark-theme .components-placeholder.has-illustration{background-color:#0000001a}.components-placeholder.has-illustration .components-placeholder__fieldset{margin-left:0;margin-right:0}.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{opacity:0;pointer-events:none;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{transition-delay:0s;transition-duration:0s}}.is-selected>.components-placeholder.has-illustration .components-button,.is-selected>.components-placeholder.has-illustration .components-placeholder__instructions,.is-selected>.components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.components-placeholder.has-illustration:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.is-selected .components-placeholder.has-illustration{overflow:auto}.components-placeholder__preview{display:flex;justify-content:center}.components-placeholder__illustration{box-sizing:initial;height:100%;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;stroke:currentColor;opacity:.25}.components-popover{box-sizing:border-box;will-change:transform;z-index:1000000}.components-popover *,.components-popover :after,.components-popover :before{box-sizing:inherit}.components-popover.is-expanded{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1000000!important}.components-popover__content{background:#fff;border-radius:2px;box-shadow:0 0 0 1px #ccc,0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;box-sizing:border-box;width:min-content}.is-alternate .components-popover__content{box-shadow:0 0 0 1px #1e1e1e}.is-unstyled .components-popover__content{background:none;border-radius:0;box-shadow:none}.components-popover.is-expanded .components-popover__content{box-shadow:0 -1px 0 0 #ccc;height:calc(100% - 48px);overflow-y:visible;position:static;width:auto}.components-popover.is-expanded.is-alternate .components-popover__content{box-shadow:0 -1px 0 #1e1e1e}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-button{z-index:5}.components-popover__arrow{display:flex;height:14px;pointer-events:none;position:absolute;width:14px}.components-popover__arrow:before{background-color:#fff;content:"";height:2px;left:1px;position:absolute;right:1px;top:-1px}.components-popover__arrow.is-top{bottom:-14px!important;transform:rotate(0)}.components-popover__arrow.is-right{left:-14px!important;transform:rotate(90deg)}.components-popover__arrow.is-bottom{top:-14px!important;transform:rotate(180deg)}.components-popover__arrow.is-left{right:-14px!important;transform:rotate(-90deg)}.components-popover__triangle{display:block;flex:1}.components-popover__triangle-bg{fill:#fff}.components-popover__triangle-border{fill:#0000;stroke-width:1px;stroke:#ccc}.is-alternate .components-popover__triangle-border{stroke:#1e1e1e}.components-radio-control__option{align-items:center;display:flex}.components-radio-control__input[type=radio]{appearance:none;border:1px solid #1e1e1e;border-radius:2px;border-radius:50%;box-shadow:0 0 0 #0000;cursor:pointer;display:inline-flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;margin:0 6px 0 0;max-width:24px;min-width:24px;padding:0;transition:box-shadow .1s linear;transition:none;width:24px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:#1e1e1e9e}.components-radio-control__input[type=radio]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:#1e1e1e9e}@media (min-width:600px){.components-radio-control__input[type=radio]{height:20px;max-width:20px;min-width:20px;width:20px}}.components-radio-control__input[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:8px;margin:0;transform:translate(7px,7px);width:8px}@media (min-width:600px){.components-radio-control__input[type=radio]:checked:before{transform:translate(5px,5px)}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.components-radio-control__input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px var(--wp-components-color-background,#fff),0 0 0 4px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-radio-control__input[type=radio]:checked{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-radio-control__input[type=radio]:checked:before{border-radius:50%;content:""}.components-radio-control__label{cursor:pointer}.components-resizable-box__handle{display:none;height:23px;width:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__container>img{width:inherit}.components-resizable-box__handle:after{background:#fff;border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));content:"";cursor:inherit;display:block;height:15px;outline:2px solid #0000;position:absolute;right:calc(50% - 8px);top:calc(50% - 8px);width:15px}.components-resizable-box__side-handle:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:2px;content:"";cursor:inherit;display:block;height:3px;opacity:0;position:absolute;right:calc(50% - 1px);top:calc(50% - 1px);transition:transform .1s ease-in;width:3px;will-change:transform}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-delay:0s;transition-duration:0s}}.components-resizable-box__corner-handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{border-left:0;border-right:0;left:0;width:100%}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{border-bottom:0;border-top:0;height:100%;top:0}.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation-delay:0s;animation-duration:1ms}}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation-delay:0s;animation-duration:1ms}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}@keyframes components-resizable-box__left-right-animation{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}
/*!rtl:begin:ignore*/.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px}
-/*!rtl:end:ignore*/.components-responsive-wrapper{align-items:center;display:flex;justify-content:center;max-width:100%;position:relative}.components-responsive-wrapper__content{display:block;max-width:100%;width:100%}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background:#000000d9;border-radius:2px;box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;box-sizing:border-box;color:#fff;cursor:pointer;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;max-width:600px;padding:12px 20px;pointer-events:auto;width:100%}@media (min-width:600px){.components-snackbar{width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{padding-left:24px;position:relative}.components-snackbar .components-snackbar__icon{left:-8px;position:absolute;top:-2.9px}.components-snackbar .components-snackbar__dismiss-button{cursor:pointer;margin-left:24px}.components-snackbar__action.components-button{color:#fff;flex-shrink:0;height:auto;line-height:1.4;margin-left:32px;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){background-color:initial;text-decoration:underline}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{box-shadow:none;color:#fff;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#fff;text-decoration:none}.components-snackbar__content{align-items:baseline;display:flex;justify-content:space-between;line-height:1.4}.components-snackbar-list{box-sizing:border-box;pointer-events:none;position:absolute;width:100%;z-index:100000}.components-snackbar-list__notice-container{padding-top:8px;position:relative}.components-tab-panel__tabs{align-items:stretch;display:flex;flex-direction:row}.components-tab-panel__tabs[aria-orientation=vertical]{flex-direction:column}.components-tab-panel__tabs-item{background:#0000;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-left:0;padding:3px 16px;position:relative}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-tab-panel__tabs-item:after{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-tab-panel__tabs-item:after{transition-delay:0s;transition-duration:0s}}.components-tab-panel__tabs-item.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid #0000;outline-offset:-1px}.components-tab-panel__tabs-item:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 #0000;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-tab-panel__tabs-item:before{transition-delay:0s;transition-duration:0s}}.components-tab-panel__tabs-item:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:32px;line-height:normal;padding:6px 8px;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.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:#1e1e1e9e}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:#1e1e1e9e}.components-text-control__input.is-next-40px-default-size,.components-text-control__input[type=color].is-next-40px-default-size,.components-text-control__input[type=date].is-next-40px-default-size,.components-text-control__input[type=datetime-local].is-next-40px-default-size,.components-text-control__input[type=datetime].is-next-40px-default-size,.components-text-control__input[type=email].is-next-40px-default-size,.components-text-control__input[type=month].is-next-40px-default-size,.components-text-control__input[type=number].is-next-40px-default-size,.components-text-control__input[type=password].is-next-40px-default-size,.components-text-control__input[type=tel].is-next-40px-default-size,.components-text-control__input[type=text].is-next-40px-default-size,.components-text-control__input[type=time].is-next-40px-default-size,.components-text-control__input[type=url].is-next-40px-default-size,.components-text-control__input[type=week].is-next-40px-default-size{height:40px}.components-tip{color:#757575;display:flex}.components-tip svg{align-self:center;fill:#f0b849;flex-shrink:0;margin-right:16px}.components-tip p{margin:0}.components-accessible-toolbar{border:1px solid #1e1e1e;border-radius:2px;display:inline-flex;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-right:none}.components-accessible-toolbar.is-unstyled{border:none}.components-accessible-toolbar.is-unstyled>.components-toolbar-group{border-right:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{height:48px;padding-left:16px;padding-right:16px;position:relative;z-index:1}.components-accessible-toolbar .components-button:focus:not(:disabled),.components-toolbar .components-button:focus:not(:disabled){box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards;border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-delay:0s;animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{margin-left:auto;margin-right:auto;position:relative}.components-accessible-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed:hover{background:#0000}.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 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000}.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{min-width:48px;padding-left:12px;padding-right:12px}.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{font-weight:500}.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{display:inline-block;padding-left:0;padding-right:0;position:relative}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]:after{bottom:10px;content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;right:8px}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{background-color:#fff;border-right:1px solid #1e1e1e;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0;min-height:48px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar-group .components-button.components-button,.components-toolbar-group .components-button.has-icon.has-icon{min-width:36px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-button.components-button svg,.components-toolbar-group .components-button.has-icon.has-icon svg{min-width:24px}.components-toolbar-group .components-button.components-button:before,.components-toolbar-group .components-button.has-icon.has-icon:before{left:2px;right:2px}.components-toolbar{background-color:#fff;border:1px solid #1e1e1e;display:inline-flex;flex-shrink:0;flex-wrap:wrap;margin:0;min-height:48px}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:block;margin:0}@supports (position:sticky){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-left:6px;overflow:visible;position:relative}div.components-toolbar>div+div.has-left-divider:before{background-color:#ddd;box-sizing:initial;content:"";display:inline-block;height:20px;left:-3px;position:absolute;top:8px;width:1px}.components-tooltip{background:#000;border-radius:2px;color:#f0f0f0;font-size:12px;line-height:1.4;padding:4px 8px;text-align:center;z-index:1000002}.components-tooltip__shortcut{margin-left:8px} \ No newline at end of file
+/*!rtl:end:ignore*/.components-responsive-wrapper{align-items:center;display:flex;justify-content:center;max-width:100%;position:relative}.components-responsive-wrapper__content{display:block;max-width:100%;width:100%}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background:#000000d9;border-radius:2px;box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;box-sizing:border-box;color:#fff;cursor:pointer;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;max-width:600px;padding:12px 20px;pointer-events:auto;width:100%}@media (min-width:600px){.components-snackbar{width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{padding-left:24px;position:relative}.components-snackbar .components-snackbar__icon{left:-8px;position:absolute;top:-2.9px}.components-snackbar .components-snackbar__dismiss-button{cursor:pointer;margin-left:24px}.components-snackbar__action.components-button{color:#fff;flex-shrink:0;height:auto;line-height:1.4;margin-left:32px;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){background-color:initial;text-decoration:underline}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{box-shadow:none;color:#fff;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#fff;text-decoration:none}.components-snackbar__content{align-items:baseline;display:flex;justify-content:space-between;line-height:1.4}.components-snackbar-list{box-sizing:border-box;pointer-events:none;position:absolute;width:100%;z-index:100000}.components-snackbar-list__notice-container{padding-top:8px;position:relative}.components-tab-panel__tabs{align-items:stretch;display:flex;flex-direction:row}.components-tab-panel__tabs[aria-orientation=vertical]{flex-direction:column}.components-tab-panel__tabs-item{background:#0000;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-left:0;padding:3px 16px;position:relative}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-tab-panel__tabs-item:after{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-tab-panel__tabs-item:after{transition-delay:0s;transition-duration:0s}}.components-tab-panel__tabs-item.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid #0000;outline-offset:-1px}.components-tab-panel__tabs-item:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 #0000;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-tab-panel__tabs-item:before{transition-delay:0s;transition-duration:0s}}.components-tab-panel__tabs-item:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000}.components-tab-panel__tab-content:focus{box-shadow:none;outline:none}.components-tab-panel__tab-content:focus-visible{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid #0000;outline-offset:0}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:32px;line-height:normal;margin:0;padding:6px 8px;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.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:#1e1e1e9e}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:#1e1e1e9e}.components-text-control__input.is-next-40px-default-size,.components-text-control__input[type=color].is-next-40px-default-size,.components-text-control__input[type=date].is-next-40px-default-size,.components-text-control__input[type=datetime-local].is-next-40px-default-size,.components-text-control__input[type=datetime].is-next-40px-default-size,.components-text-control__input[type=email].is-next-40px-default-size,.components-text-control__input[type=month].is-next-40px-default-size,.components-text-control__input[type=number].is-next-40px-default-size,.components-text-control__input[type=password].is-next-40px-default-size,.components-text-control__input[type=tel].is-next-40px-default-size,.components-text-control__input[type=text].is-next-40px-default-size,.components-text-control__input[type=time].is-next-40px-default-size,.components-text-control__input[type=url].is-next-40px-default-size,.components-text-control__input[type=week].is-next-40px-default-size{height:40px}.components-tip{color:#757575;display:flex}.components-tip svg{align-self:center;fill:#f0b849;flex-shrink:0;margin-right:16px}.components-tip p{margin:0}.components-accessible-toolbar{border:1px solid #1e1e1e;border-radius:2px;display:inline-flex;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-right:none}.components-accessible-toolbar.is-unstyled{border:none}.components-accessible-toolbar.is-unstyled>.components-toolbar-group{border-right:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{height:48px;padding-left:16px;padding-right:16px;position:relative;z-index:1}.components-accessible-toolbar .components-button:focus:not(:disabled),.components-toolbar .components-button:focus:not(:disabled){box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards;border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-delay:0s;animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{margin-left:auto;margin-right:auto;position:relative}.components-accessible-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed:hover{background:#0000}.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 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{min-width:48px;padding-left:8px;padding-right:8px}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]:after{bottom:10px;content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;right:8px}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{background-color:#fff;border-right:1px solid #1e1e1e;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0;min-height:48px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar-group .components-button.components-button,.components-toolbar-group .components-button.has-icon.has-icon{justify-content:center;min-width:36px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-button.components-button svg,.components-toolbar-group .components-button.has-icon.has-icon svg{min-width:24px}.components-toolbar-group .components-button.components-button:before,.components-toolbar-group .components-button.has-icon.has-icon:before{left:2px;right:2px}.components-toolbar{background-color:#fff;border:1px solid #1e1e1e;display:inline-flex;flex-shrink:0;flex-wrap:wrap;margin:0;min-height:48px}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:flex;margin:0}div.components-toolbar>div+div.has-left-divider{margin-left:6px;overflow:visible;position:relative}div.components-toolbar>div+div.has-left-divider:before{background-color:#ddd;box-sizing:initial;content:"";display:inline-block;height:20px;left:-3px;position:absolute;top:8px;width:1px}.components-tooltip{background:#000;border-radius:2px;color:#f0f0f0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;line-height:1.4;padding:4px 8px;text-align:center;z-index:1000002}.components-tooltip__shortcut{margin-left:8px} \ No newline at end of file
diff --git a/wp-includes/css/dist/customize-widgets/style-rtl.css b/wp-includes/css/dist/customize-widgets/style-rtl.css
index eb92236..9076d89 100644
--- a/wp-includes/css/dist/customize-widgets/style-rtl.css
+++ b/wp-includes/css/dist/customize-widgets/style-rtl.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -156,6 +156,10 @@
margin:0 .2rem 0 0;
}
+.components-popover.more-menu-dropdown__content{
+ z-index:99998;
+}
+
.customize-control-sidebar_block_editor .block-editor-block-list__block-popover{
position:fixed !important;
z-index:7;
diff --git a/wp-includes/css/dist/customize-widgets/style-rtl.min.css b/wp-includes/css/dist/customize-widgets/style-rtl.min.css
index 7ee8fd3..c3f4ca4 100644
--- a/wp-includes/css/dist/customize-widgets/style-rtl.min.css
+++ b/wp-includes/css/dist/customize-widgets/style-rtl.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector{background:#fff;box-sizing:border-box}#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector *{box-sizing:inherit}#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector .block-editor-block-inspector{margin:-12px}#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector .block-editor-block-inspector h3{margin-bottom:0}#customize-theme-controls .customize-pane-child.control-section-sidebar.is-sub-section-open{transform:translateX(100%)}.customize-widgets-header{background:#f0f0f1;border-bottom:1px solid #e0e0e0;display:flex;justify-content:flex-end;margin:-15px -12px 0;z-index:8}@media (min-width:600px){.customize-widgets-header{margin-bottom:44px}}.customize-widgets-header.is-fixed-toolbar-active{margin-bottom:0}.customize-widgets-header-toolbar{align-items:center;border:none;display:flex;width:100%}.customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon{border-radius:2px;color:#fff;height:24px;margin:12px auto 12px 0;min-width:24px;padding:0}.customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon:before{content:none}.customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon.is-pressed{background:#1e1e1e}.customize-widgets-header-toolbar .components-button.has-icon.customize-widgets-editor-history-button.redo-button{margin-right:-12px}#customize-sidebar-outer-content{min-width:100%;width:auto}#customize-outer-theme-controls .widgets-inserter{padding:0}#customize-outer-theme-controls .widgets-inserter .customize-section-description-container{display:none}.customize-widgets-layout__inserter-panel{background:#fff}.customize-widgets-layout__inserter-panel-header{align-items:center;border-bottom:1px solid #ddd;box-sizing:border-box;display:flex;height:46px;justify-content:space-between;padding:16px}.customize-widgets-layout__inserter-panel-header .customize-widgets-layout__inserter-panel-header-title{margin:0}.block-editor-inserter__quick-inserter .block-editor-inserter__panel-content{background:#fff}.customize-widgets-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.customize-widgets-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.customize-widgets-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.customize-widgets-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.customize-widgets-keyboard-shortcut-help-modal__shortcut:empty{display:none}.customize-widgets-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.customize-widgets-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination+.customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.customize-widgets-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.customize-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.customize-control-sidebar_block_editor .block-editor-block-list__block-popover{position:fixed!important;z-index:7}.customize-control-sidebar_block_editor .components-popover,.customize-widgets-popover .components-popover{position:fixed!important}.customize-widgets-welcome-guide__image__wrapper{background:#00a0d2;margin-bottom:8px;text-align:center}.customize-widgets-welcome-guide__image{height:auto}.wrap .customize-widgets-welcome-guide__heading{font-size:18px;font-weight:600}.customize-widgets-welcome-guide__text{line-height:1.7}.customize-widgets-welcome-guide__button{justify-content:center;margin:1em 0;width:100%}.customize-widgets-welcome-guide__separator{margin:1em 0}.customize-widgets-welcome-guide__more-info{line-height:1.4}#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section{background-color:#fff;min-height:100%;padding-top:12px!important}#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section.open{overflow:unset}#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section .customize-section-title{margin-top:-12px!important;position:static!important;width:unset!important}.components-modal__screen-overlay{z-index:999999}.customize-control-sidebar_block_editor,.customize-widgets-layout__inspector{box-sizing:border-box}.customize-control-sidebar_block_editor *,.customize-control-sidebar_block_editor :after,.customize-control-sidebar_block_editor :before,.customize-widgets-layout__inspector *,.customize-widgets-layout__inspector :after,.customize-widgets-layout__inspector :before{box-sizing:inherit} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector{background:#fff;box-sizing:border-box}#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector *{box-sizing:inherit}#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector .block-editor-block-inspector{margin:-12px}#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector .block-editor-block-inspector h3{margin-bottom:0}#customize-theme-controls .customize-pane-child.control-section-sidebar.is-sub-section-open{transform:translateX(100%)}.customize-widgets-header{background:#f0f0f1;border-bottom:1px solid #e0e0e0;display:flex;justify-content:flex-end;margin:-15px -12px 0;z-index:8}@media (min-width:600px){.customize-widgets-header{margin-bottom:44px}}.customize-widgets-header.is-fixed-toolbar-active{margin-bottom:0}.customize-widgets-header-toolbar{align-items:center;border:none;display:flex;width:100%}.customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon{border-radius:2px;color:#fff;height:24px;margin:12px auto 12px 0;min-width:24px;padding:0}.customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon:before{content:none}.customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon.is-pressed{background:#1e1e1e}.customize-widgets-header-toolbar .components-button.has-icon.customize-widgets-editor-history-button.redo-button{margin-right:-12px}#customize-sidebar-outer-content{min-width:100%;width:auto}#customize-outer-theme-controls .widgets-inserter{padding:0}#customize-outer-theme-controls .widgets-inserter .customize-section-description-container{display:none}.customize-widgets-layout__inserter-panel{background:#fff}.customize-widgets-layout__inserter-panel-header{align-items:center;border-bottom:1px solid #ddd;box-sizing:border-box;display:flex;height:46px;justify-content:space-between;padding:16px}.customize-widgets-layout__inserter-panel-header .customize-widgets-layout__inserter-panel-header-title{margin:0}.block-editor-inserter__quick-inserter .block-editor-inserter__panel-content{background:#fff}.customize-widgets-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.customize-widgets-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.customize-widgets-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.customize-widgets-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.customize-widgets-keyboard-shortcut-help-modal__shortcut:empty{display:none}.customize-widgets-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.customize-widgets-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination+.customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.customize-widgets-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.customize-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.components-popover.more-menu-dropdown__content{z-index:99998}.customize-control-sidebar_block_editor .block-editor-block-list__block-popover{position:fixed!important;z-index:7}.customize-control-sidebar_block_editor .components-popover,.customize-widgets-popover .components-popover{position:fixed!important}.customize-widgets-welcome-guide__image__wrapper{background:#00a0d2;margin-bottom:8px;text-align:center}.customize-widgets-welcome-guide__image{height:auto}.wrap .customize-widgets-welcome-guide__heading{font-size:18px;font-weight:600}.customize-widgets-welcome-guide__text{line-height:1.7}.customize-widgets-welcome-guide__button{justify-content:center;margin:1em 0;width:100%}.customize-widgets-welcome-guide__separator{margin:1em 0}.customize-widgets-welcome-guide__more-info{line-height:1.4}#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section{background-color:#fff;min-height:100%;padding-top:12px!important}#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section.open{overflow:unset}#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section .customize-section-title{margin-top:-12px!important;position:static!important;width:unset!important}.components-modal__screen-overlay{z-index:999999}.customize-control-sidebar_block_editor,.customize-widgets-layout__inspector{box-sizing:border-box}.customize-control-sidebar_block_editor *,.customize-control-sidebar_block_editor :after,.customize-control-sidebar_block_editor :before,.customize-widgets-layout__inspector *,.customize-widgets-layout__inspector :after,.customize-widgets-layout__inspector :before{box-sizing:inherit} \ No newline at end of file
diff --git a/wp-includes/css/dist/customize-widgets/style.css b/wp-includes/css/dist/customize-widgets/style.css
index 5910db1..5613547 100644
--- a/wp-includes/css/dist/customize-widgets/style.css
+++ b/wp-includes/css/dist/customize-widgets/style.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -156,6 +156,10 @@
margin:0 0 0 .2rem;
}
+.components-popover.more-menu-dropdown__content{
+ z-index:99998;
+}
+
.customize-control-sidebar_block_editor .block-editor-block-list__block-popover{
position:fixed !important;
z-index:7;
diff --git a/wp-includes/css/dist/customize-widgets/style.min.css b/wp-includes/css/dist/customize-widgets/style.min.css
index 90df728..6bbe4ad 100644
--- a/wp-includes/css/dist/customize-widgets/style.min.css
+++ b/wp-includes/css/dist/customize-widgets/style.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector{background:#fff;box-sizing:border-box}#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector *{box-sizing:inherit}#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector .block-editor-block-inspector{margin:-12px}#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector .block-editor-block-inspector h3{margin-bottom:0}#customize-theme-controls .customize-pane-child.control-section-sidebar.is-sub-section-open{transform:translateX(-100%)}.customize-widgets-header{background:#f0f0f1;border-bottom:1px solid #e0e0e0;display:flex;justify-content:flex-end;margin:-15px -12px 0;z-index:8}@media (min-width:600px){.customize-widgets-header{margin-bottom:44px}}.customize-widgets-header.is-fixed-toolbar-active{margin-bottom:0}.customize-widgets-header-toolbar{align-items:center;border:none;display:flex;width:100%}.customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon{border-radius:2px;color:#fff;height:24px;margin:12px 0 12px auto;min-width:24px;padding:0}.customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon:before{content:none}.customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon.is-pressed{background:#1e1e1e}.customize-widgets-header-toolbar .components-button.has-icon.customize-widgets-editor-history-button.redo-button{margin-left:-12px}#customize-sidebar-outer-content{min-width:100%;width:auto}#customize-outer-theme-controls .widgets-inserter{padding:0}#customize-outer-theme-controls .widgets-inserter .customize-section-description-container{display:none}.customize-widgets-layout__inserter-panel{background:#fff}.customize-widgets-layout__inserter-panel-header{align-items:center;border-bottom:1px solid #ddd;box-sizing:border-box;display:flex;height:46px;justify-content:space-between;padding:16px}.customize-widgets-layout__inserter-panel-header .customize-widgets-layout__inserter-panel-header-title{margin:0}.block-editor-inserter__quick-inserter .block-editor-inserter__panel-content{background:#fff}.customize-widgets-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.customize-widgets-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.customize-widgets-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.customize-widgets-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.customize-widgets-keyboard-shortcut-help-modal__shortcut:empty{display:none}.customize-widgets-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.customize-widgets-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination+.customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.customize-widgets-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.customize-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.customize-control-sidebar_block_editor .block-editor-block-list__block-popover{position:fixed!important;z-index:7}.customize-control-sidebar_block_editor .components-popover,.customize-widgets-popover .components-popover{position:fixed!important}.customize-widgets-welcome-guide__image__wrapper{background:#00a0d2;margin-bottom:8px;text-align:center}.customize-widgets-welcome-guide__image{height:auto}.wrap .customize-widgets-welcome-guide__heading{font-size:18px;font-weight:600}.customize-widgets-welcome-guide__text{line-height:1.7}.customize-widgets-welcome-guide__button{justify-content:center;margin:1em 0;width:100%}.customize-widgets-welcome-guide__separator{margin:1em 0}.customize-widgets-welcome-guide__more-info{line-height:1.4}#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section{background-color:#fff;min-height:100%;padding-top:12px!important}#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section.open{overflow:unset}#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section .customize-section-title{margin-top:-12px!important;position:static!important;width:unset!important}.components-modal__screen-overlay{z-index:999999}.customize-control-sidebar_block_editor,.customize-widgets-layout__inspector{box-sizing:border-box}.customize-control-sidebar_block_editor *,.customize-control-sidebar_block_editor :after,.customize-control-sidebar_block_editor :before,.customize-widgets-layout__inspector *,.customize-widgets-layout__inspector :after,.customize-widgets-layout__inspector :before{box-sizing:inherit} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector{background:#fff;box-sizing:border-box}#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector *{box-sizing:inherit}#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector .block-editor-block-inspector{margin:-12px}#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector .block-editor-block-inspector h3{margin-bottom:0}#customize-theme-controls .customize-pane-child.control-section-sidebar.is-sub-section-open{transform:translateX(-100%)}.customize-widgets-header{background:#f0f0f1;border-bottom:1px solid #e0e0e0;display:flex;justify-content:flex-end;margin:-15px -12px 0;z-index:8}@media (min-width:600px){.customize-widgets-header{margin-bottom:44px}}.customize-widgets-header.is-fixed-toolbar-active{margin-bottom:0}.customize-widgets-header-toolbar{align-items:center;border:none;display:flex;width:100%}.customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon{border-radius:2px;color:#fff;height:24px;margin:12px 0 12px auto;min-width:24px;padding:0}.customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon:before{content:none}.customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon.is-pressed{background:#1e1e1e}.customize-widgets-header-toolbar .components-button.has-icon.customize-widgets-editor-history-button.redo-button{margin-left:-12px}#customize-sidebar-outer-content{min-width:100%;width:auto}#customize-outer-theme-controls .widgets-inserter{padding:0}#customize-outer-theme-controls .widgets-inserter .customize-section-description-container{display:none}.customize-widgets-layout__inserter-panel{background:#fff}.customize-widgets-layout__inserter-panel-header{align-items:center;border-bottom:1px solid #ddd;box-sizing:border-box;display:flex;height:46px;justify-content:space-between;padding:16px}.customize-widgets-layout__inserter-panel-header .customize-widgets-layout__inserter-panel-header-title{margin:0}.block-editor-inserter__quick-inserter .block-editor-inserter__panel-content{background:#fff}.customize-widgets-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.customize-widgets-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.customize-widgets-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.customize-widgets-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.customize-widgets-keyboard-shortcut-help-modal__shortcut:empty{display:none}.customize-widgets-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.customize-widgets-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination+.customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.customize-widgets-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.customize-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.components-popover.more-menu-dropdown__content{z-index:99998}.customize-control-sidebar_block_editor .block-editor-block-list__block-popover{position:fixed!important;z-index:7}.customize-control-sidebar_block_editor .components-popover,.customize-widgets-popover .components-popover{position:fixed!important}.customize-widgets-welcome-guide__image__wrapper{background:#00a0d2;margin-bottom:8px;text-align:center}.customize-widgets-welcome-guide__image{height:auto}.wrap .customize-widgets-welcome-guide__heading{font-size:18px;font-weight:600}.customize-widgets-welcome-guide__text{line-height:1.7}.customize-widgets-welcome-guide__button{justify-content:center;margin:1em 0;width:100%}.customize-widgets-welcome-guide__separator{margin:1em 0}.customize-widgets-welcome-guide__more-info{line-height:1.4}#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section{background-color:#fff;min-height:100%;padding-top:12px!important}#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section.open{overflow:unset}#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section .customize-section-title{margin-top:-12px!important;position:static!important;width:unset!important}.components-modal__screen-overlay{z-index:999999}.customize-control-sidebar_block_editor,.customize-widgets-layout__inspector{box-sizing:border-box}.customize-control-sidebar_block_editor *,.customize-control-sidebar_block_editor :after,.customize-control-sidebar_block_editor :before,.customize-widgets-layout__inspector *,.customize-widgets-layout__inspector :after,.customize-widgets-layout__inspector :before{box-sizing:inherit} \ No newline at end of file
diff --git a/wp-includes/css/dist/edit-post/classic-rtl.css b/wp-includes/css/dist/edit-post/classic-rtl.css
index 55309ac..99d6d85 100644
--- a/wp-includes/css/dist/edit-post/classic-rtl.css
+++ b/wp-includes/css/dist/edit-post/classic-rtl.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -16,7 +16,7 @@
}
}
-.editor-styles-wrapper .wp-block{
+.editor-styles-wrapper :where(:not(.is-layout-flex,.is-layout-grid))>.wp-block{
margin-left:auto;
margin-right:auto;
}
diff --git a/wp-includes/css/dist/edit-post/classic-rtl.min.css b/wp-includes/css/dist/edit-post/classic-rtl.min.css
index 2e8f703..4fd92b6 100644
--- a/wp-includes/css/dist/edit-post/classic-rtl.min.css
+++ b/wp-includes/css/dist/edit-post/classic-rtl.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.editor-styles-wrapper .wp-block{margin-left:auto;margin-right:auto}html :where(.editor-styles-wrapper){padding:8px}html :where(.editor-styles-wrapper) .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:-8px;margin-right:-8px}html :where(.wp-block){margin-bottom:28px;margin-top:28px;max-width:840px}html :where(.wp-block)[data-align=wide]{max-width:1100px}html :where(.wp-block)[data-align=full]{max-width:none}html :where(.wp-block)[data-align=left],html :where(.wp-block)[data-align=right]{height:0;width:100%}html :where(.wp-block)[data-align=left]:before,html :where(.wp-block)[data-align=right]:before{content:none}html :where(.wp-block)[data-align=left]>*{float:left;margin-right:2em}html :where(.wp-block)[data-align=right]>*{float:right;margin-left:2em}html :where(.wp-block)[data-align=full],html :where(.wp-block)[data-align=wide]{clear:both}.wp-block-group>[data-align=full]{margin-left:auto;margin-right:auto}.wp-block-group.has-background>[data-align=full]{margin-right:-30px;width:calc(100% + 60px)}[data-align=full] .wp-block-group>.wp-block{padding-left:14px;padding-right:14px}@media (min-width:600px){[data-align=full] .wp-block-group>.wp-block{padding-left:0;padding-right:0}}[data-align=full] .wp-block-group>[data-align=full]{max-width:none;padding-left:0;padding-right:0;right:0;width:100%}[data-align=full] .wp-block-group.has-background>[data-align=full]{width:calc(100% + 60px)} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.editor-styles-wrapper :where(:not(.is-layout-flex,.is-layout-grid))>.wp-block{margin-left:auto;margin-right:auto}html :where(.editor-styles-wrapper){padding:8px}html :where(.editor-styles-wrapper) .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:-8px;margin-right:-8px}html :where(.wp-block){margin-bottom:28px;margin-top:28px;max-width:840px}html :where(.wp-block)[data-align=wide]{max-width:1100px}html :where(.wp-block)[data-align=full]{max-width:none}html :where(.wp-block)[data-align=left],html :where(.wp-block)[data-align=right]{height:0;width:100%}html :where(.wp-block)[data-align=left]:before,html :where(.wp-block)[data-align=right]:before{content:none}html :where(.wp-block)[data-align=left]>*{float:left;margin-right:2em}html :where(.wp-block)[data-align=right]>*{float:right;margin-left:2em}html :where(.wp-block)[data-align=full],html :where(.wp-block)[data-align=wide]{clear:both}.wp-block-group>[data-align=full]{margin-left:auto;margin-right:auto}.wp-block-group.has-background>[data-align=full]{margin-right:-30px;width:calc(100% + 60px)}[data-align=full] .wp-block-group>.wp-block{padding-left:14px;padding-right:14px}@media (min-width:600px){[data-align=full] .wp-block-group>.wp-block{padding-left:0;padding-right:0}}[data-align=full] .wp-block-group>[data-align=full]{max-width:none;padding-left:0;padding-right:0;right:0;width:100%}[data-align=full] .wp-block-group.has-background>[data-align=full]{width:calc(100% + 60px)} \ No newline at end of file
diff --git a/wp-includes/css/dist/edit-post/classic.css b/wp-includes/css/dist/edit-post/classic.css
index d52aee3..bcc3421 100644
--- a/wp-includes/css/dist/edit-post/classic.css
+++ b/wp-includes/css/dist/edit-post/classic.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -16,7 +16,7 @@
}
}
-.editor-styles-wrapper .wp-block{
+.editor-styles-wrapper :where(:not(.is-layout-flex,.is-layout-grid))>.wp-block{
margin-left:auto;
margin-right:auto;
}
diff --git a/wp-includes/css/dist/edit-post/classic.min.css b/wp-includes/css/dist/edit-post/classic.min.css
index 6ef5115..022075b 100644
--- a/wp-includes/css/dist/edit-post/classic.min.css
+++ b/wp-includes/css/dist/edit-post/classic.min.css
@@ -1,4 +1,4 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.editor-styles-wrapper .wp-block{margin-left:auto;margin-right:auto}html :where(.editor-styles-wrapper){padding:8px}html :where(.editor-styles-wrapper) .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:-8px;margin-right:-8px}html :where(.wp-block){margin-bottom:28px;margin-top:28px;max-width:840px}html :where(.wp-block)[data-align=wide]{max-width:1100px}html :where(.wp-block)[data-align=full]{max-width:none}html :where(.wp-block)[data-align=left],html :where(.wp-block)[data-align=right]{height:0;width:100%}html :where(.wp-block)[data-align=left]:before,html :where(.wp-block)[data-align=right]:before{content:none}html :where(.wp-block)[data-align=left]>*{
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.editor-styles-wrapper :where(:not(.is-layout-flex,.is-layout-grid))>.wp-block{margin-left:auto;margin-right:auto}html :where(.editor-styles-wrapper){padding:8px}html :where(.editor-styles-wrapper) .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:-8px;margin-right:-8px}html :where(.wp-block){margin-bottom:28px;margin-top:28px;max-width:840px}html :where(.wp-block)[data-align=wide]{max-width:1100px}html :where(.wp-block)[data-align=full]{max-width:none}html :where(.wp-block)[data-align=left],html :where(.wp-block)[data-align=right]{height:0;width:100%}html :where(.wp-block)[data-align=left]:before,html :where(.wp-block)[data-align=right]:before{content:none}html :where(.wp-block)[data-align=left]>*{
/*!rtl:begin:ignore*/float:left;margin-right:2em
/*!rtl:end:ignore*/}html :where(.wp-block)[data-align=right]>*{
/*!rtl:begin:ignore*/float:right;margin-left:2em
diff --git a/wp-includes/css/dist/edit-post/style-rtl.css b/wp-includes/css/dist/edit-post/style-rtl.css
index 78aa4bf..d99f230 100644
--- a/wp-includes/css/dist/edit-post/style-rtl.css
+++ b/wp-includes/css/dist/edit-post/style-rtl.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -16,598 +16,6 @@
}
}
-.components-panel__header.interface-complementary-area-header__small{
- background:#fff;
- padding-left:4px;
-}
-.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{
- overflow:hidden;
- text-overflow:ellipsis;
- white-space:nowrap;
- width:100%;
-}
-@media (min-width:782px){
- .components-panel__header.interface-complementary-area-header__small{
- display:none;
- }
-}
-
-.interface-complementary-area-header{
- background:#fff;
- padding-left:4px;
-}
-.interface-complementary-area-header .components-button.has-icon{
- display:none;
- margin-right:auto;
-}
-.interface-complementary-area-header .components-button.has-icon~.components-button{
- margin-right:0;
-}
-@media (min-width:782px){
- .interface-complementary-area-header .components-button.has-icon{
- display:flex;
- }
- .components-panel__header+.interface-complementary-area-header{
- margin-top:0;
- }
-}
-
-.interface-complementary-area{
- background:#fff;
- color:#1e1e1e;
-}
-@media (min-width:600px){
- .interface-complementary-area{
- -webkit-overflow-scrolling:touch;
- }
-}
-@media (min-width:782px){
- .interface-complementary-area{
- width:280px;
- }
-}
-.interface-complementary-area .components-panel{
- border:none;
- position:relative;
- z-index:0;
-}
-.interface-complementary-area .components-panel__header{
- position:sticky;
- top:0;
- z-index:1;
-}
-.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{
- top:48px;
-}
-@media (min-width:782px){
- .interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{
- top:0;
- }
-}
-.interface-complementary-area p:not(.components-base-control__help){
- margin-top:0;
-}
-.interface-complementary-area h2{
- color:#1e1e1e;
- font-size:13px;
- margin-bottom:1.5em;
-}
-.interface-complementary-area h3{
- color:#1e1e1e;
- font-size:11px;
- font-weight:500;
- margin-bottom:1.5em;
- text-transform:uppercase;
-}
-.interface-complementary-area hr{
- border-bottom:1px solid #f0f0f0;
- border-top:none;
- margin:1.5em 0;
-}
-.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{
- box-shadow:none;
- margin-bottom:1.5em;
-}
-.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{
- margin-bottom:0;
-}
-.interface-complementary-area .block-editor-skip-to-selected-block:focus{
- bottom:10px;
- left:10px;
- right:auto;
- top:auto;
-}
-
-@media (min-width:782px){
- body.js.is-fullscreen-mode{
- height:calc(100% + 32px);
- margin-top:-32px;
- }
- body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{
- display:none;
- }
- body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{
- margin-right:0;
- }
-}
-
-html.interface-interface-skeleton__html-container{
- position:fixed;
- width:100%;
-}
-@media (min-width:782px){
- html.interface-interface-skeleton__html-container{
- position:static;
- width:auto;
- }
-}
-
-.interface-interface-skeleton{
- bottom:0;
- display:flex;
- flex-direction:row;
- height:auto;
- left:0;
- max-height:100%;
- position:fixed;
- top:46px;
-}
-@media (min-width:783px){
- .interface-interface-skeleton{
- top:32px;
- }
- .is-fullscreen-mode .interface-interface-skeleton{
- top:0;
- }
-}
-
-.interface-interface-skeleton__editor{
- display:flex;
- flex:0 1 100%;
- flex-direction:column;
- overflow:hidden;
-}
-
-.interface-interface-skeleton{
- right:0;
-}
-@media (min-width:783px){
- .interface-interface-skeleton{
- right:160px;
- }
-}
-@media (min-width:783px){
- .auto-fold .interface-interface-skeleton{
- right:36px;
- }
-}
-@media (min-width:961px){
- .auto-fold .interface-interface-skeleton{
- right:160px;
- }
-}
-.folded .interface-interface-skeleton{
- right:0;
-}
-@media (min-width:783px){
- .folded .interface-interface-skeleton{
- right:36px;
- }
-}
-
-body.is-fullscreen-mode .interface-interface-skeleton{
- right:0 !important;
-}
-
-.interface-interface-skeleton__body{
- display:flex;
- flex-grow:1;
- overflow:auto;
- overscroll-behavior-y:none;
-}
-@media (min-width:782px){
- .has-footer .interface-interface-skeleton__body{
- padding-bottom:25px;
- }
-}
-
-.interface-interface-skeleton__content{
- display:flex;
- flex-direction:column;
- flex-grow:1;
- overflow:auto;
- z-index:20;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__content{
- z-index:auto;
- }
-}
-
-.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
- background:#fff;
- bottom:0;
- color:#1e1e1e;
- flex-shrink:0;
- left:0;
- position:absolute;
- right:0;
- top:0;
- z-index:100000;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
- position:relative !important;
- width:auto;
- }
- .is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{
- z-index:90;
- }
-}
-
-.interface-interface-skeleton__sidebar{
- overflow:auto;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__sidebar{
- border-right:1px solid #e0e0e0;
- }
- .interface-interface-skeleton__secondary-sidebar{
- border-left:1px solid #e0e0e0;
- }
-}
-
-.interface-interface-skeleton__header{
- border-bottom:1px solid #e0e0e0;
- color:#1e1e1e;
- flex-shrink:0;
- height:auto;
- z-index:30;
-}
-
-.interface-interface-skeleton__footer{
- background-color:#fff;
- border-top:1px solid #e0e0e0;
- bottom:0;
- color:#1e1e1e;
- display:none;
- flex-shrink:0;
- height:auto;
- position:absolute;
- right:0;
- width:100%;
- z-index:90;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__footer{
- display:flex;
- }
-}
-.interface-interface-skeleton__footer .block-editor-block-breadcrumb{
- align-items:center;
- background:#fff;
- display:flex;
- font-size:13px;
- height:24px;
- padding:0 18px;
- z-index:30;
-}
-
-.interface-interface-skeleton__actions{
- background:#fff;
- bottom:auto;
- color:#1e1e1e;
- left:0;
- position:fixed !important;
- right:auto;
- top:-9999em;
- width:100vw;
- z-index:100000;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__actions{
- width:280px;
- }
-}
-.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{
- bottom:0;
- top:auto;
-}
-.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{
- top:46px;
-}
-@media (min-width:782px){
- .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{
- border-right:1px solid #ddd;
- top:32px;
- }
- .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{
- top:0;
- }
-}
-
-.interface-more-menu-dropdown{
- margin-right:-4px;
-}
-.interface-more-menu-dropdown .components-button{
- padding:0 2px;
- width:auto;
-}
-@media (min-width:600px){
- .interface-more-menu-dropdown{
- margin-right:0;
- }
- .interface-more-menu-dropdown .components-button{
- padding:0 4px;
- }
-}
-
-.interface-more-menu-dropdown__content .components-popover__content{
- min-width:300px;
-}
-@media (min-width:480px){
- .interface-more-menu-dropdown__content .components-popover__content{
- max-width:480px;
- }
-}
-.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{
- padding:0;
-}
-
-.components-popover.interface-more-menu-dropdown__content{
- z-index:99998;
-}
-
-.interface-pinned-items{
- display:flex;
- gap:8px;
-}
-.interface-pinned-items .components-button{
- display:none;
- margin:0;
-}
-.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:global-styles"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{
- display:flex;
-}
-.interface-pinned-items .components-button svg{
- max-height:24px;
- max-width:24px;
-}
-@media (min-width:600px){
- .interface-pinned-items .components-button{
- display:flex;
- }
-}
-
-.edit-post-header{
- align-items:center;
- background:#fff;
- display:flex;
- flex-wrap:wrap;
- height:60px;
- justify-content:space-between;
- max-width:100vw;
-}
-@media (min-width:280px){
- .edit-post-header{
- flex-wrap:nowrap;
- }
-}
-
-.edit-post-header__toolbar{
- align-items:center;
- display:flex;
- flex-grow:3;
- flex-shrink:8;
- overflow:hidden;
- padding:2px 0;
-}
-.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__toolbar .selected-block-tools-wrapper{
- align-items:center;
- display:flex;
- height:60px;
- overflow:hidden;
-}
-.edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-contextual-toolbar{
- border-bottom:0;
- height:100%;
-}
-.edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-toolbar{
- height:100%;
- padding-top:15px;
-}
-.edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){
- height:32px;
-}
-.edit-post-header__toolbar .selected-block-tools-wrapper:after{
- background-color:#ddd;
- content:"";
- height:24px;
- margin-right:8px;
- width:1px;
-}
-.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar,.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar-group{
- border-left:none;
-}
-.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar-group:after,.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar:after{
- background-color:#ddd;
- content:"";
- height:24px;
- margin-right:8px;
- margin-top:4px;
- width:1px;
-}
-.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar .components-toolbar-group.components-toolbar-group:after,.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{
- display:none;
-}
-.edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{
- height:32px;
- overflow:visible;
-}
-@media (min-width:600px){
- .edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{
- position:relative;
- top:-10px;
- }
-}
-.edit-post-header__toolbar .selected-block-tools-wrapper.is-collapsed{
- display:none;
-}
-
-.edit-post-header__block-tools-toggle{
- margin-right:2px;
-}
-
-.edit-post-header__center{
- display:flex;
- flex-grow:1;
- justify-content:center;
-}
-.edit-post-header__center.is-collapsed{
- display:none;
-}
-.edit-post-header__settings{
- align-items:center;
- display:inline-flex;
- flex-wrap:nowrap;
- gap:8px;
- padding-left:4px;
-}
-@media (min-width:600px){
- .edit-post-header__settings{
- padding-left:8px;
- }
-}
-.edit-post-header__dropdown .components-button.has-icon,.show-icon-labels .edit-post-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{
- width:auto;
-}
-.edit-post-header__dropdown .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{
- display:none;
-}
-.edit-post-header__dropdown .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{
- content:attr(aria-label);
-}
-.edit-post-header__dropdown .components-button.has-icon[aria-disabled=true],.show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{
- background-color:initial;
-}
-.edit-post-header__dropdown .is-tertiary:active,.show-icon-labels .edit-post-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{
- background-color:initial;
- box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);
-}
-.edit-post-header__dropdown .components-button.has-icon.button-toggle svg,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg{
- display:block;
-}
-.edit-post-header__dropdown .components-button.has-icon.button-toggle:after,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle:after,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon:after{
- content:none;
-}
-.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon{
- width:60px;
-}
-.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{
- display:block;
-}
-.edit-post-header__dropdown .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{
- padding-left:8px;
- padding-right:8px;
-}
-@media (min-width:600px){
- .edit-post-header__dropdown .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{
- padding-left:12px;
- padding-right:12px;
- }
-}
-.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.edit-post-header__dropdown .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{
- content:none;
-}
-
-.show-icon-labels .edit-post-header__toolbar .block-editor-block-mover{
- border-right:none;
-}
-.show-icon-labels .edit-post-header__toolbar .block-editor-block-mover:before{
- background-color:#ddd;
- content:"";
- height:24px;
- margin-right:8px;
- margin-top:4px;
- width:1px;
-}
-.show-icon-labels .edit-post-header__toolbar .block-editor-block-mover .block-editor-block-mover__move-button-container:before{
- background:#ddd;
- right:calc(50% + 1px);
- width:calc(100% - 24px);
-}
-
-.edit-post-header__dropdown .components-button.block-editor-list-view,.edit-post-header__dropdown .components-button.editor-history__redo,.edit-post-header__dropdown .components-button.editor-history__undo,.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,.edit-post-header__dropdown .table-of-contents .components-button{
- justify-content:flex-start;
- margin:0;
- padding:6px 40px 6px 6px;
- text-align:right;
- width:14.625rem;
-}
-
-.show-icon-labels.interface-pinned-items{
- border-bottom:1px solid #ccc;
- display:block;
- margin:0 -12px;
- padding:6px 12px 12px;
-}
-.show-icon-labels.interface-pinned-items>.components-button.has-icon{
- justify-content:flex-start;
- margin:0;
- padding:6px 8px 6px 6px;
- width:14.625rem;
-}
-.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{
- display:block;
- max-width:24px;
-}
-.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{
- padding-right:40px;
-}
-.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{
- margin-left:8px;
-}
-
-@media (min-width:600px){
- .edit-post-header__post-preview-button{
- display:none;
- }
-}
-
-.is-distraction-free .interface-interface-skeleton__header{
- border-bottom:none;
-}
-.is-distraction-free .edit-post-header{
- background-color:#fff;
- border-bottom:1px solid #e0e0e0;
- position:absolute;
- width:100%;
-}
-.is-distraction-free .edit-post-header>.edit-post-header__settings>.edit-post-header__post-preview-button{
- visibility:hidden;
-}
-.is-distraction-free .edit-post-header>.edit-post-header__settings>.editor-preview-dropdown,.is-distraction-free .edit-post-header>.edit-post-header__settings>.interface-pinned-items,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .editor-document-tools__document-overview-toggle{
- display:none;
-}
-.is-distraction-free .interface-interface-skeleton__header:focus-within{
- opacity:1 !important;
-}
-.is-distraction-free .interface-interface-skeleton__header:focus-within div{
- transform:translateX(0) translateZ(0) !important;
-}
-.is-distraction-free .components-editor-notices__dismissible{
- position:absolute;
- z-index:35;
-}
-
.edit-post-fullscreen-mode-close.components-button{
display:none;
}
@@ -620,8 +28,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
border-radius:0;
color:#fff;
display:flex;
- height:61px;
- margin-bottom:-1px;
+ height:60px;
position:relative;
width:60px;
}
@@ -668,53 +75,19 @@ body.is-fullscreen-mode .interface-interface-skeleton{
object-fit:cover;
width:36px;
}
-
-.edit-post-keyboard-shortcut-help-modal__section{
- margin:0 0 2rem;
-}
-.edit-post-keyboard-shortcut-help-modal__section-title{
- font-size:.9rem;
- font-weight:600;
-}
-.edit-post-keyboard-shortcut-help-modal__shortcut{
- align-items:baseline;
- border-top:1px solid #ddd;
- display:flex;
- margin-bottom:0;
- padding:.6rem 0;
-}
-.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{
- border-bottom:1px solid #ddd;
-}
-.edit-post-keyboard-shortcut-help-modal__shortcut:empty{
- display:none;
-}
-.edit-post-keyboard-shortcut-help-modal__shortcut-term{
- font-weight:600;
- margin:0 1rem 0 0;
- text-align:left;
-}
-.edit-post-keyboard-shortcut-help-modal__shortcut-description{
- flex:1;
- flex-basis:auto;
- margin:0;
+.show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon{
+ width:60px;
}
-.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{
- background:none;
+.show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon svg{
display:block;
- margin:0;
- padding:0;
}
-.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{
- margin-top:10px;
-}
-.edit-post-keyboard-shortcut-help-modal__shortcut-key{
- border-radius:8%;
- margin:0 .2rem;
- padding:.25rem .5rem;
+.show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon:after{
+ content:none;
}
-.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{
- margin:0 .2rem 0 0;
+
+.edit-post-visual-editor:not(.is-iframed){
+ flex:1 0 auto;
+ height:auto;
}
.edit-post-layout__metaboxes{
@@ -722,18 +95,14 @@ body.is-fullscreen-mode .interface-interface-skeleton{
flex-shrink:0;
}
-.edit-post-layout .components-editor-notices__snackbar{
- bottom:40px;
+.components-editor-notices__snackbar{
+ bottom:24px;
left:0;
- padding-left:16px;
- padding-right:16px;
+ padding-left:24px;
+ padding-right:24px;
position:fixed;
}
-.is-distraction-free .components-editor-notices__snackbar{
- bottom:20px;
-}
-
.edit-post-layout .components-editor-notices__snackbar{
right:0;
}
@@ -765,76 +134,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{
right:0 !important;
}
-.edit-post-layout .editor-post-publish-panel{
- bottom:0;
- left:0;
- overflow:auto;
- position:fixed;
- right:0;
- top:46px;
- z-index:100001;
-}
-@media (min-width:782px){
- .edit-post-layout .editor-post-publish-panel{
- animation:edit-post-post-publish-panel__slide-in-animation .1s forwards;
- border-right:1px solid #ddd;
- right:auto;
- top:32px;
- transform:translateX(-100%);
- width:281px;
- z-index:99998;
- }
-}
-@media (min-width:782px) and (prefers-reduced-motion:reduce){
- .edit-post-layout .editor-post-publish-panel{
- animation-delay:0s;
- animation-duration:1ms;
- }
-}
-@media (min-width:782px){
- body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{
- top:0;
- }
- [role=region]:focus .edit-post-layout .editor-post-publish-panel{
- transform:translateX(0);
- }
-}
-
-@keyframes edit-post-post-publish-panel__slide-in-animation{
- to{
- transform:translateX(0);
- }
-}
-.edit-post-layout .editor-post-publish-panel__header-publish-button{
- justify-content:center;
-}
-
-.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toggle-sidebar-panel{
- background-color:#fff;
- border:1px dotted #ddd;
- bottom:auto;
- box-sizing:border-box;
- display:flex;
- height:auto !important;
- justify-content:center;
- left:0;
- padding:24px;
- position:fixed !important;
- right:auto;
- top:-9999em;
- width:280px;
- z-index:100000;
-}
-
-.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__sidebar:focus .edit-post-layout__toggle-sidebar-panel,.interface-interface-skeleton__sidebar:focus-within .edit-post-layout__toggle-sidebar-panel{
- bottom:0;
- top:auto;
-}
-
-.edit-post-layout .entities-saved-states__panel-header{
- height:61px;
-}
-
.edit-post-meta-boxes-area{
position:relative;
}
@@ -910,136 +209,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{
clear:both;
}
-.components-panel__header.edit-post-sidebar__panel-tabs{
- padding-left:16px;
- padding-right:0;
-}
-.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{
- height:24px;
- min-width:24px;
- padding:0;
-}
-@media (min-width:782px){
- .components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{
- display:flex;
- }
-}
-
-.edit-post-sidebar__panel{
- margin-top:-1px;
-}
-
-.edit-post-post-format,.edit-post-post-slug{
- align-items:stretch;
- display:flex;
- flex-direction:column;
-}
-
-.edit-post-post-visibility__dialog .editor-post-visibility{
- margin:8px;
- min-width:248px;
-}
-
-h2.edit-post-template-summary__title{
- font-weight:500;
- line-height:24px;
- margin:0 0 4px;
-}
-
-.edit-post-text-editor{
- background-color:#fff;
- flex-grow:1;
- position:relative;
- width:100%;
-}
-.edit-post-text-editor .editor-post-title.is-raw-text textarea,.edit-post-text-editor .editor-post-title:not(.is-raw-text){
- border:1px solid #949494;
- border-radius:0;
- font-family:Menlo,Consolas,monaco,monospace;
- font-size:2.5em;
- font-weight:400;
- line-height:1.4;
- max-width:none;
- padding:16px;
-}
-@media (min-width:600px){
- .edit-post-text-editor .editor-post-title.is-raw-text textarea,.edit-post-text-editor .editor-post-title:not(.is-raw-text){
- padding:24px;
- }
-}
-.edit-post-text-editor .editor-post-title.is-raw-text textarea:focus,.edit-post-text-editor .editor-post-title:not(.is-raw-text):focus{
- border-color:var(--wp-admin-theme-color);
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
-}
-
-.edit-post-text-editor__body{
- margin-left:auto;
- margin-right:auto;
- max-width:1080px;
- padding:0 12px 12px;
- width:100%;
-}
-@media (min-width:960px){
- .edit-post-text-editor__body{
- padding:0 24px 24px;
- }
-}
-
-.edit-post-text-editor__toolbar{
- background:#fffc;
- display:flex;
- left:0;
- padding:4px 12px;
- position:sticky;
- right:0;
- top:0;
- z-index:1;
-}
-@media (min-width:600px){
- .edit-post-text-editor__toolbar{
- padding:12px;
- }
-}
-@media (min-width:960px){
- .edit-post-text-editor__toolbar{
- padding:12px 24px;
- }
-}
-.edit-post-text-editor__toolbar h2{
- color:#1e1e1e;
- font-size:13px;
- line-height:36px;
- margin:0 0 0 auto;
-}
-
-.edit-post-visual-editor{
- background-color:#ddd;
- display:flex;
- flex:1 0 auto;
- flex-flow:column;
- position:relative;
-}
-.edit-post-visual-editor:not(.has-inline-canvas){
- overflow:hidden;
-}
-.edit-post-visual-editor .components-button{
- font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
- font-size:13px;
- padding:6px 12px;
-}
-.edit-post-visual-editor .components-button.has-icon{
- padding:6px;
-}
-
-.edit-post-visual-editor__content-area{
- box-sizing:border-box;
- display:flex;
- flex-grow:1;
- height:100%;
- position:relative;
- width:100%;
-}
-
.edit-post-welcome-guide,.edit-template-welcome-guide{
width:312px;
}
@@ -1073,31 +242,6 @@ h2.edit-post-template-summary__title{
.edit-template-welcome-guide .components-button svg{
fill:#fff;
}
-
-.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{
- column-count:2;
- column-gap:24px;
-}
-@media (min-width:782px){
- .edit-post-start-page-options__modal-content .block-editor-block-patterns-list{
- column-count:3;
- }
-}
-@media (min-width:1280px){
- .edit-post-start-page-options__modal-content .block-editor-block-patterns-list{
- column-count:4;
- }
-}
-.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{
- break-inside:avoid-column;
- margin-bottom:24px;
-}
-.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{
- min-height:100px;
-}
-.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{
- width:100%;
-}
@keyframes edit-post__fade-in-animation{
0%{
opacity:0;
@@ -1139,10 +283,10 @@ body.js.block-editor-page .media-frame select.attachment-filters:last-of-type{
}
}
-.components-modal__frame,.edit-post-header,.edit-post-sidebar,.edit-post-text-editor,.editor-post-publish-panel{
+.edit-post-visual-editor.is-iframed,.editor-header,.editor-post-publish-panel,.editor-sidebar,.editor-text-editor{
box-sizing:border-box;
}
-.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{
+.edit-post-visual-editor.is-iframed *,.edit-post-visual-editor.is-iframed :after,.edit-post-visual-editor.is-iframed :before,.editor-header *,.editor-header :after,.editor-header :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before,.editor-sidebar *,.editor-sidebar :after,.editor-sidebar :before,.editor-text-editor *,.editor-text-editor :after,.editor-text-editor :before{
box-sizing:inherit;
}
@@ -1287,14 +431,4 @@ body.admin-color-sunrise{
body.admin-color-sunrise{
--wp-admin-border-width-focus:1.5px;
}
-}
-
-.interface-interface-skeleton__sidebar{
- border-right:none;
-}
-@media (min-width:782px){
- .is-sidebar-opened .interface-interface-skeleton__sidebar{
- border-right:1px solid #e0e0e0;
- overflow:hidden scroll;
- }
} \ No newline at end of file
diff --git a/wp-includes/css/dist/edit-post/style-rtl.min.css b/wp-includes/css/dist/edit-post/style-rtl.min.css
index f50fa56..e614311 100644
--- a/wp-includes/css/dist/edit-post/style-rtl.min.css
+++ b/wp-includes/css/dist/edit-post/style-rtl.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-left:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-right:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-right:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:300px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:8px}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:global-styles"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{display:flex}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-pinned-items .components-button{display:flex}}.edit-post-header{align-items:center;background:#fff;display:flex;flex-wrap:wrap;height:60px;justify-content:space-between;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header__toolbar{align-items:center;display:flex;flex-grow:3;flex-shrink:8;overflow:hidden;padding:2px 0}.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__toolbar .selected-block-tools-wrapper{align-items:center;display:flex;height:60px;overflow:hidden}.edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-contextual-toolbar{border-bottom:0;height:100%}.edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-toolbar{height:100%;padding-top:15px}.edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.edit-post-header__toolbar .selected-block-tools-wrapper:after{background-color:#ddd;content:"";height:24px;margin-right:8px;width:1px}.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar,.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar-group{border-left:none}.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar-group:after,.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar:after{background-color:#ddd;content:"";height:24px;margin-right:8px;margin-top:4px;width:1px}.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar .components-toolbar-group.components-toolbar-group:after,.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{display:none}.edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width:600px){.edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{position:relative;top:-10px}}.edit-post-header__toolbar .selected-block-tools-wrapper.is-collapsed{display:none}.edit-post-header__block-tools-toggle{margin-right:2px}.edit-post-header__center{display:flex;flex-grow:1;justify-content:center}.edit-post-header__center.is-collapsed{display:none}.edit-post-header__settings{align-items:center;display:inline-flex;flex-wrap:nowrap;gap:8px;padding-left:4px}@media (min-width:600px){.edit-post-header__settings{padding-left:8px}}.edit-post-header__dropdown .components-button.has-icon,.show-icon-labels .edit-post-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.edit-post-header__dropdown .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.edit-post-header__dropdown .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label)}.edit-post-header__dropdown .components-button.has-icon[aria-disabled=true],.show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:initial}.edit-post-header__dropdown .is-tertiary:active,.show-icon-labels .edit-post-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{background-color:initial;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-post-header__dropdown .components-button.has-icon.button-toggle svg,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg{display:block}.edit-post-header__dropdown .components-button.has-icon.button-toggle:after,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle:after,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon:after{content:none}.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon{width:60px}.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.edit-post-header__dropdown .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-post-header__dropdown .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.edit-post-header__dropdown .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{content:none}.show-icon-labels .edit-post-header__toolbar .block-editor-block-mover{border-right:none}.show-icon-labels .edit-post-header__toolbar .block-editor-block-mover:before{background-color:#ddd;content:"";height:24px;margin-right:8px;margin-top:4px;width:1px}.show-icon-labels .edit-post-header__toolbar .block-editor-block-mover .block-editor-block-mover__move-button-container:before{background:#ddd;right:calc(50% + 1px);width:calc(100% - 24px)}.edit-post-header__dropdown .components-button.block-editor-list-view,.edit-post-header__dropdown .components-button.editor-history__redo,.edit-post-header__dropdown .components-button.editor-history__undo,.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,.edit-post-header__dropdown .table-of-contents .components-button{justify-content:flex-start;margin:0;padding:6px 40px 6px 6px;text-align:right;width:14.625rem}.show-icon-labels.interface-pinned-items{border-bottom:1px solid #ccc;display:block;margin:0 -12px;padding:6px 12px 12px}.show-icon-labels.interface-pinned-items>.components-button.has-icon{justify-content:flex-start;margin:0;padding:6px 8px 6px 6px;width:14.625rem}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-right:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-left:8px}@media (min-width:600px){.edit-post-header__post-preview-button{display:none}}.is-distraction-free .interface-interface-skeleton__header{border-bottom:none}.is-distraction-free .edit-post-header{background-color:#fff;border-bottom:1px solid #e0e0e0;position:absolute;width:100%}.is-distraction-free .edit-post-header>.edit-post-header__settings>.edit-post-header__post-preview-button{visibility:hidden}.is-distraction-free .edit-post-header>.edit-post-header__settings>.editor-preview-dropdown,.is-distraction-free .edit-post-header>.edit-post-header__settings>.interface-pinned-items,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .editor-document-tools__document-overview-toggle{display:none}.is-distraction-free .interface-interface-skeleton__header:focus-within{opacity:1!important}.is-distraction-free .interface-interface-skeleton__header:focus-within div{transform:translateX(0) translateZ(0)!important}.is-distraction-free .components-editor-notices__dismissible{position:absolute;z-index:35}.edit-post-fullscreen-mode-close.components-button{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button{align-items:center;align-self:stretch;background:#1e1e1e;border:none;border-radius:0;color:#fff;display:flex;height:61px;margin-bottom:-1px;position:relative;width:60px}.edit-post-fullscreen-mode-close.components-button:active{color:#fff}.edit-post-fullscreen-mode-close.components-button:focus{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:before{border-radius:4px;bottom:10px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-fullscreen-mode-close.components-button:before{transition-delay:0s;transition-duration:0s}}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button:hover:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #757575}.edit-post-fullscreen-mode-close.components-button.has-icon:hover:before{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #ffffff1a,inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}}.edit-post-fullscreen-mode-close.components-button .edit-post-fullscreen-mode-close_site-icon{border-radius:2px;height:36px;margin-top:-1px;object-fit:cover;width:36px}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-post-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-post-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.edit-post-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-post-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.edit-post-layout__metaboxes{clear:both;flex-shrink:0}.edit-post-layout .components-editor-notices__snackbar{bottom:40px;left:0;padding-left:16px;padding-right:16px;position:fixed}.is-distraction-free .components-editor-notices__snackbar{bottom:20px}.edit-post-layout .components-editor-notices__snackbar{right:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{right:36px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{right:0!important}.edit-post-layout .editor-post-publish-panel{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:46px;z-index:100001}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{animation:edit-post-post-publish-panel__slide-in-animation .1s forwards;border-right:1px solid #ddd;right:auto;top:32px;transform:translateX(-100%);width:281px;z-index:99998}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-delay:0s;animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}[role=region]:focus .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toggle-sidebar-panel{background-color:#fff;border:1px dotted #ddd;bottom:auto;box-sizing:border-box;display:flex;height:auto!important;justify-content:center;left:0;padding:24px;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__sidebar:focus .edit-post-layout__toggle-sidebar-panel,.interface-interface-skeleton__sidebar:focus-within .edit-post-layout__toggle-sidebar-panel{bottom:0;top:auto}.edit-post-layout .entities-saved-states__panel-header{height:61px}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:initial}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area .postbox-header{border-bottom:0;border-top:1px solid #ddd}.edit-post-meta-boxes-area #poststuff{margin:0 auto;min-width:auto;padding-top:0}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:0 24px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{color:inherit;margin:0;padding:0 24px 24px}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{background:#0000;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.edit-post-meta-boxes-area .components-spinner{left:20px;position:absolute;top:10px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.components-panel__header.edit-post-sidebar__panel-tabs{padding-left:16px;padding-right:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{height:24px;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.edit-post-sidebar__panel{margin-top:-1px}.edit-post-post-format,.edit-post-post-slug{align-items:stretch;display:flex;flex-direction:column}.edit-post-post-visibility__dialog .editor-post-visibility{margin:8px;min-width:248px}h2.edit-post-template-summary__title{font-weight:500;line-height:24px;margin:0 0 4px}.edit-post-text-editor{background-color:#fff;flex-grow:1;position:relative;width:100%}.edit-post-text-editor .editor-post-title.is-raw-text textarea,.edit-post-text-editor .editor-post-title:not(.is-raw-text){border:1px solid #949494;border-radius:0;font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400;line-height:1.4;max-width:none;padding:16px}@media (min-width:600px){.edit-post-text-editor .editor-post-title.is-raw-text textarea,.edit-post-text-editor .editor-post-title:not(.is-raw-text){padding:24px}}.edit-post-text-editor .editor-post-title.is-raw-text textarea:focus,.edit-post-text-editor .editor-post-title:not(.is-raw-text):focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-post-text-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:0 12px 12px;width:100%}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{background:#fffc;display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-post-text-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-post-text-editor__toolbar{padding:12px 24px}}.edit-post-text-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 0 0 auto}.edit-post-visual-editor{background-color:#ddd;display:flex;flex:1 0 auto;flex-flow:column;position:relative}.edit-post-visual-editor:not(.has-inline-canvas){overflow:hidden}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-post-visual-editor .components-button.has-icon{padding:6px}.edit-post-visual-editor__content-area{box-sizing:border-box;display:flex;flex-grow:1;height:100%;position:relative;width:100%}.edit-post-welcome-guide,.edit-template-welcome-guide{width:312px}.edit-post-welcome-guide__image,.edit-template-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-post-welcome-guide__image>img,.edit-template-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-post-welcome-guide__heading,.edit-template-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-post-welcome-guide__text,.edit-template-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon,.edit-template-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-template-welcome-guide .components-button svg{fill:#fff}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column;margin-bottom:24px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{min-height:100px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{width:100%}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.js.block-editor-page{background:#fff}body.js.block-editor-page #wpcontent{padding-right:0}body.js.block-editor-page #wpbody-content{padding-bottom:0}body.js.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.js.block-editor-page #wpfooter{display:none}body.js.block-editor-page .a11y-speak-region{right:-1px;top:-1px}body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu:after,body.js.block-editor-page ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.block-editor-page .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.block-editor-page #wpwrap{overflow-y:auto}@media (min-width:782px){.block-editor-page #wpwrap{overflow-y:initial}}.components-modal__frame,.edit-post-header,.edit-post-sidebar,.edit-post-text-editor,.editor-post-publish-panel{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{height:auto;max-width:100%}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}.interface-interface-skeleton__sidebar{border-right:none}@media (min-width:782px){.is-sidebar-opened .interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0;overflow:hidden scroll}} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.edit-post-fullscreen-mode-close.components-button{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button{align-items:center;align-self:stretch;background:#1e1e1e;border:none;border-radius:0;color:#fff;display:flex;height:60px;position:relative;width:60px}.edit-post-fullscreen-mode-close.components-button:active{color:#fff}.edit-post-fullscreen-mode-close.components-button:focus{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:before{border-radius:4px;bottom:10px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-fullscreen-mode-close.components-button:before{transition-delay:0s;transition-duration:0s}}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button:hover:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #757575}.edit-post-fullscreen-mode-close.components-button.has-icon:hover:before{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #ffffff1a,inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}}.edit-post-fullscreen-mode-close.components-button .edit-post-fullscreen-mode-close_site-icon{border-radius:2px;height:36px;margin-top:-1px;object-fit:cover;width:36px}.show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon{width:60px}.show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon svg{display:block}.show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon:after{content:none}.edit-post-visual-editor:not(.is-iframed){flex:1 0 auto;height:auto}.edit-post-layout__metaboxes{clear:both;flex-shrink:0}.components-editor-notices__snackbar{bottom:24px;left:0;padding-left:24px;padding-right:24px;position:fixed}.edit-post-layout .components-editor-notices__snackbar{right:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{right:36px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{right:0!important}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:initial}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area .postbox-header{border-bottom:0;border-top:1px solid #ddd}.edit-post-meta-boxes-area #poststuff{margin:0 auto;min-width:auto;padding-top:0}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:0 24px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{color:inherit;margin:0;padding:0 24px 24px}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{background:#0000;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.edit-post-meta-boxes-area .components-spinner{left:20px;position:absolute;top:10px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-welcome-guide,.edit-template-welcome-guide{width:312px}.edit-post-welcome-guide__image,.edit-template-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-post-welcome-guide__image>img,.edit-template-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-post-welcome-guide__heading,.edit-template-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-post-welcome-guide__text,.edit-template-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon,.edit-template-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-template-welcome-guide .components-button svg{fill:#fff}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.js.block-editor-page{background:#fff}body.js.block-editor-page #wpcontent{padding-right:0}body.js.block-editor-page #wpbody-content{padding-bottom:0}body.js.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.js.block-editor-page #wpfooter{display:none}body.js.block-editor-page .a11y-speak-region{right:-1px;top:-1px}body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu:after,body.js.block-editor-page ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.block-editor-page .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.block-editor-page #wpwrap{overflow-y:auto}@media (min-width:782px){.block-editor-page #wpwrap{overflow-y:initial}}.edit-post-visual-editor.is-iframed,.editor-header,.editor-post-publish-panel,.editor-sidebar,.editor-text-editor{box-sizing:border-box}.edit-post-visual-editor.is-iframed *,.edit-post-visual-editor.is-iframed :after,.edit-post-visual-editor.is-iframed :before,.editor-header *,.editor-header :after,.editor-header :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before,.editor-sidebar *,.editor-sidebar :after,.editor-sidebar :before,.editor-text-editor *,.editor-text-editor :after,.editor-text-editor :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{height:auto;max-width:100%}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ 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 0070456..0e1a692 100644
--- a/wp-includes/css/dist/edit-post/style.css
+++ b/wp-includes/css/dist/edit-post/style.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -16,598 +16,6 @@
}
}
-.components-panel__header.interface-complementary-area-header__small{
- background:#fff;
- padding-right:4px;
-}
-.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{
- overflow:hidden;
- text-overflow:ellipsis;
- white-space:nowrap;
- width:100%;
-}
-@media (min-width:782px){
- .components-panel__header.interface-complementary-area-header__small{
- display:none;
- }
-}
-
-.interface-complementary-area-header{
- background:#fff;
- padding-right:4px;
-}
-.interface-complementary-area-header .components-button.has-icon{
- display:none;
- margin-left:auto;
-}
-.interface-complementary-area-header .components-button.has-icon~.components-button{
- margin-left:0;
-}
-@media (min-width:782px){
- .interface-complementary-area-header .components-button.has-icon{
- display:flex;
- }
- .components-panel__header+.interface-complementary-area-header{
- margin-top:0;
- }
-}
-
-.interface-complementary-area{
- background:#fff;
- color:#1e1e1e;
-}
-@media (min-width:600px){
- .interface-complementary-area{
- -webkit-overflow-scrolling:touch;
- }
-}
-@media (min-width:782px){
- .interface-complementary-area{
- width:280px;
- }
-}
-.interface-complementary-area .components-panel{
- border:none;
- position:relative;
- z-index:0;
-}
-.interface-complementary-area .components-panel__header{
- position:sticky;
- top:0;
- z-index:1;
-}
-.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{
- top:48px;
-}
-@media (min-width:782px){
- .interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{
- top:0;
- }
-}
-.interface-complementary-area p:not(.components-base-control__help){
- margin-top:0;
-}
-.interface-complementary-area h2{
- color:#1e1e1e;
- font-size:13px;
- margin-bottom:1.5em;
-}
-.interface-complementary-area h3{
- color:#1e1e1e;
- font-size:11px;
- font-weight:500;
- margin-bottom:1.5em;
- text-transform:uppercase;
-}
-.interface-complementary-area hr{
- border-bottom:1px solid #f0f0f0;
- border-top:none;
- margin:1.5em 0;
-}
-.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{
- box-shadow:none;
- margin-bottom:1.5em;
-}
-.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{
- margin-bottom:0;
-}
-.interface-complementary-area .block-editor-skip-to-selected-block:focus{
- bottom:10px;
- left:auto;
- right:10px;
- top:auto;
-}
-
-@media (min-width:782px){
- body.js.is-fullscreen-mode{
- height:calc(100% + 32px);
- margin-top:-32px;
- }
- body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{
- display:none;
- }
- body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{
- margin-left:0;
- }
-}
-
-html.interface-interface-skeleton__html-container{
- position:fixed;
- width:100%;
-}
-@media (min-width:782px){
- html.interface-interface-skeleton__html-container{
- position:static;
- width:auto;
- }
-}
-
-.interface-interface-skeleton{
- bottom:0;
- display:flex;
- flex-direction:row;
- height:auto;
- max-height:100%;
- position:fixed;
- right:0;
- top:46px;
-}
-@media (min-width:783px){
- .interface-interface-skeleton{
- top:32px;
- }
- .is-fullscreen-mode .interface-interface-skeleton{
- top:0;
- }
-}
-
-.interface-interface-skeleton__editor{
- display:flex;
- flex:0 1 100%;
- flex-direction:column;
- overflow:hidden;
-}
-
-.interface-interface-skeleton{
- left:0;
-}
-@media (min-width:783px){
- .interface-interface-skeleton{
- left:160px;
- }
-}
-@media (min-width:783px){
- .auto-fold .interface-interface-skeleton{
- left:36px;
- }
-}
-@media (min-width:961px){
- .auto-fold .interface-interface-skeleton{
- left:160px;
- }
-}
-.folded .interface-interface-skeleton{
- left:0;
-}
-@media (min-width:783px){
- .folded .interface-interface-skeleton{
- left:36px;
- }
-}
-
-body.is-fullscreen-mode .interface-interface-skeleton{
- left:0 !important;
-}
-
-.interface-interface-skeleton__body{
- display:flex;
- flex-grow:1;
- overflow:auto;
- overscroll-behavior-y:none;
-}
-@media (min-width:782px){
- .has-footer .interface-interface-skeleton__body{
- padding-bottom:25px;
- }
-}
-
-.interface-interface-skeleton__content{
- display:flex;
- flex-direction:column;
- flex-grow:1;
- overflow:auto;
- z-index:20;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__content{
- z-index:auto;
- }
-}
-
-.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
- background:#fff;
- bottom:0;
- color:#1e1e1e;
- flex-shrink:0;
- left:0;
- position:absolute;
- right:0;
- top:0;
- z-index:100000;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
- position:relative !important;
- width:auto;
- }
- .is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{
- z-index:90;
- }
-}
-
-.interface-interface-skeleton__sidebar{
- overflow:auto;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__sidebar{
- border-left:1px solid #e0e0e0;
- }
- .interface-interface-skeleton__secondary-sidebar{
- border-right:1px solid #e0e0e0;
- }
-}
-
-.interface-interface-skeleton__header{
- border-bottom:1px solid #e0e0e0;
- color:#1e1e1e;
- flex-shrink:0;
- height:auto;
- z-index:30;
-}
-
-.interface-interface-skeleton__footer{
- background-color:#fff;
- border-top:1px solid #e0e0e0;
- bottom:0;
- color:#1e1e1e;
- display:none;
- flex-shrink:0;
- height:auto;
- left:0;
- position:absolute;
- width:100%;
- z-index:90;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__footer{
- display:flex;
- }
-}
-.interface-interface-skeleton__footer .block-editor-block-breadcrumb{
- align-items:center;
- background:#fff;
- display:flex;
- font-size:13px;
- height:24px;
- padding:0 18px;
- z-index:30;
-}
-
-.interface-interface-skeleton__actions{
- background:#fff;
- bottom:auto;
- color:#1e1e1e;
- left:auto;
- position:fixed !important;
- right:0;
- top:-9999em;
- width:100vw;
- z-index:100000;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__actions{
- width:280px;
- }
-}
-.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{
- bottom:0;
- top:auto;
-}
-.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{
- top:46px;
-}
-@media (min-width:782px){
- .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{
- border-left:1px solid #ddd;
- top:32px;
- }
- .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{
- top:0;
- }
-}
-
-.interface-more-menu-dropdown{
- margin-left:-4px;
-}
-.interface-more-menu-dropdown .components-button{
- padding:0 2px;
- width:auto;
-}
-@media (min-width:600px){
- .interface-more-menu-dropdown{
- margin-left:0;
- }
- .interface-more-menu-dropdown .components-button{
- padding:0 4px;
- }
-}
-
-.interface-more-menu-dropdown__content .components-popover__content{
- min-width:300px;
-}
-@media (min-width:480px){
- .interface-more-menu-dropdown__content .components-popover__content{
- max-width:480px;
- }
-}
-.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{
- padding:0;
-}
-
-.components-popover.interface-more-menu-dropdown__content{
- z-index:99998;
-}
-
-.interface-pinned-items{
- display:flex;
- gap:8px;
-}
-.interface-pinned-items .components-button{
- display:none;
- margin:0;
-}
-.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:global-styles"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{
- display:flex;
-}
-.interface-pinned-items .components-button svg{
- max-height:24px;
- max-width:24px;
-}
-@media (min-width:600px){
- .interface-pinned-items .components-button{
- display:flex;
- }
-}
-
-.edit-post-header{
- align-items:center;
- background:#fff;
- display:flex;
- flex-wrap:wrap;
- height:60px;
- justify-content:space-between;
- max-width:100vw;
-}
-@media (min-width:280px){
- .edit-post-header{
- flex-wrap:nowrap;
- }
-}
-
-.edit-post-header__toolbar{
- align-items:center;
- display:flex;
- flex-grow:3;
- flex-shrink:8;
- overflow:hidden;
- padding:2px 0;
-}
-.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__toolbar .selected-block-tools-wrapper{
- align-items:center;
- display:flex;
- height:60px;
- overflow:hidden;
-}
-.edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-contextual-toolbar{
- border-bottom:0;
- height:100%;
-}
-.edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-toolbar{
- height:100%;
- padding-top:15px;
-}
-.edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){
- height:32px;
-}
-.edit-post-header__toolbar .selected-block-tools-wrapper:after{
- background-color:#ddd;
- content:"";
- height:24px;
- margin-left:8px;
- width:1px;
-}
-.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar,.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar-group{
- border-right:none;
-}
-.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar-group:after,.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar:after{
- background-color:#ddd;
- content:"";
- height:24px;
- margin-left:8px;
- margin-top:4px;
- width:1px;
-}
-.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar .components-toolbar-group.components-toolbar-group:after,.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{
- display:none;
-}
-.edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{
- height:32px;
- overflow:visible;
-}
-@media (min-width:600px){
- .edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{
- position:relative;
- top:-10px;
- }
-}
-.edit-post-header__toolbar .selected-block-tools-wrapper.is-collapsed{
- display:none;
-}
-
-.edit-post-header__block-tools-toggle{
- margin-left:2px;
-}
-
-.edit-post-header__center{
- display:flex;
- flex-grow:1;
- justify-content:center;
-}
-.edit-post-header__center.is-collapsed{
- display:none;
-}
-.edit-post-header__settings{
- align-items:center;
- display:inline-flex;
- flex-wrap:nowrap;
- gap:8px;
- padding-right:4px;
-}
-@media (min-width:600px){
- .edit-post-header__settings{
- padding-right:8px;
- }
-}
-.edit-post-header__dropdown .components-button.has-icon,.show-icon-labels .edit-post-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{
- width:auto;
-}
-.edit-post-header__dropdown .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{
- display:none;
-}
-.edit-post-header__dropdown .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{
- content:attr(aria-label);
-}
-.edit-post-header__dropdown .components-button.has-icon[aria-disabled=true],.show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{
- background-color:initial;
-}
-.edit-post-header__dropdown .is-tertiary:active,.show-icon-labels .edit-post-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{
- background-color:initial;
- box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);
-}
-.edit-post-header__dropdown .components-button.has-icon.button-toggle svg,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg{
- display:block;
-}
-.edit-post-header__dropdown .components-button.has-icon.button-toggle:after,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle:after,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon:after{
- content:none;
-}
-.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon{
- width:60px;
-}
-.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{
- display:block;
-}
-.edit-post-header__dropdown .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{
- padding-left:8px;
- padding-right:8px;
-}
-@media (min-width:600px){
- .edit-post-header__dropdown .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{
- padding-left:12px;
- padding-right:12px;
- }
-}
-.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.edit-post-header__dropdown .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{
- content:none;
-}
-
-.show-icon-labels .edit-post-header__toolbar .block-editor-block-mover{
- border-left:none;
-}
-.show-icon-labels .edit-post-header__toolbar .block-editor-block-mover:before{
- background-color:#ddd;
- content:"";
- height:24px;
- margin-left:8px;
- margin-top:4px;
- width:1px;
-}
-.show-icon-labels .edit-post-header__toolbar .block-editor-block-mover .block-editor-block-mover__move-button-container:before{
- background:#ddd;
- left:calc(50% + 1px);
- width:calc(100% - 24px);
-}
-
-.edit-post-header__dropdown .components-button.block-editor-list-view,.edit-post-header__dropdown .components-button.editor-history__redo,.edit-post-header__dropdown .components-button.editor-history__undo,.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,.edit-post-header__dropdown .table-of-contents .components-button{
- justify-content:flex-start;
- margin:0;
- padding:6px 6px 6px 40px;
- text-align:left;
- width:14.625rem;
-}
-
-.show-icon-labels.interface-pinned-items{
- border-bottom:1px solid #ccc;
- display:block;
- margin:0 -12px;
- padding:6px 12px 12px;
-}
-.show-icon-labels.interface-pinned-items>.components-button.has-icon{
- justify-content:flex-start;
- margin:0;
- padding:6px 6px 6px 8px;
- width:14.625rem;
-}
-.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{
- display:block;
- max-width:24px;
-}
-.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{
- padding-left:40px;
-}
-.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{
- margin-right:8px;
-}
-
-@media (min-width:600px){
- .edit-post-header__post-preview-button{
- display:none;
- }
-}
-
-.is-distraction-free .interface-interface-skeleton__header{
- border-bottom:none;
-}
-.is-distraction-free .edit-post-header{
- background-color:#fff;
- border-bottom:1px solid #e0e0e0;
- position:absolute;
- width:100%;
-}
-.is-distraction-free .edit-post-header>.edit-post-header__settings>.edit-post-header__post-preview-button{
- visibility:hidden;
-}
-.is-distraction-free .edit-post-header>.edit-post-header__settings>.editor-preview-dropdown,.is-distraction-free .edit-post-header>.edit-post-header__settings>.interface-pinned-items,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .editor-document-tools__document-overview-toggle{
- display:none;
-}
-.is-distraction-free .interface-interface-skeleton__header:focus-within{
- opacity:1 !important;
-}
-.is-distraction-free .interface-interface-skeleton__header:focus-within div{
- transform:translateX(0) translateZ(0) !important;
-}
-.is-distraction-free .components-editor-notices__dismissible{
- position:absolute;
- z-index:35;
-}
-
.edit-post-fullscreen-mode-close.components-button{
display:none;
}
@@ -620,8 +28,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
border-radius:0;
color:#fff;
display:flex;
- height:61px;
- margin-bottom:-1px;
+ height:60px;
position:relative;
width:60px;
}
@@ -668,53 +75,19 @@ body.is-fullscreen-mode .interface-interface-skeleton{
object-fit:cover;
width:36px;
}
-
-.edit-post-keyboard-shortcut-help-modal__section{
- margin:0 0 2rem;
-}
-.edit-post-keyboard-shortcut-help-modal__section-title{
- font-size:.9rem;
- font-weight:600;
-}
-.edit-post-keyboard-shortcut-help-modal__shortcut{
- align-items:baseline;
- border-top:1px solid #ddd;
- display:flex;
- margin-bottom:0;
- padding:.6rem 0;
-}
-.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{
- border-bottom:1px solid #ddd;
-}
-.edit-post-keyboard-shortcut-help-modal__shortcut:empty{
- display:none;
-}
-.edit-post-keyboard-shortcut-help-modal__shortcut-term{
- font-weight:600;
- margin:0 0 0 1rem;
- text-align:right;
-}
-.edit-post-keyboard-shortcut-help-modal__shortcut-description{
- flex:1;
- flex-basis:auto;
- margin:0;
+.show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon{
+ width:60px;
}
-.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{
- background:none;
+.show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon svg{
display:block;
- margin:0;
- padding:0;
}
-.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{
- margin-top:10px;
-}
-.edit-post-keyboard-shortcut-help-modal__shortcut-key{
- border-radius:8%;
- margin:0 .2rem;
- padding:.25rem .5rem;
+.show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon:after{
+ content:none;
}
-.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{
- margin:0 0 0 .2rem;
+
+.edit-post-visual-editor:not(.is-iframed){
+ flex:1 0 auto;
+ height:auto;
}
.edit-post-layout__metaboxes{
@@ -722,18 +95,14 @@ body.is-fullscreen-mode .interface-interface-skeleton{
flex-shrink:0;
}
-.edit-post-layout .components-editor-notices__snackbar{
- bottom:40px;
- padding-left:16px;
- padding-right:16px;
+.components-editor-notices__snackbar{
+ bottom:24px;
+ padding-left:24px;
+ padding-right:24px;
position:fixed;
right:0;
}
-.is-distraction-free .components-editor-notices__snackbar{
- bottom:20px;
-}
-
.edit-post-layout .components-editor-notices__snackbar{
left:0;
}
@@ -765,76 +134,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{
left:0 !important;
}
-.edit-post-layout .editor-post-publish-panel{
- bottom:0;
- left:0;
- overflow:auto;
- position:fixed;
- right:0;
- top:46px;
- z-index:100001;
-}
-@media (min-width:782px){
- .edit-post-layout .editor-post-publish-panel{
- animation:edit-post-post-publish-panel__slide-in-animation .1s forwards;
- border-left:1px solid #ddd;
- left:auto;
- top:32px;
- transform:translateX(100%);
- width:281px;
- z-index:99998;
- }
-}
-@media (min-width:782px) and (prefers-reduced-motion:reduce){
- .edit-post-layout .editor-post-publish-panel{
- animation-delay:0s;
- animation-duration:1ms;
- }
-}
-@media (min-width:782px){
- body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{
- top:0;
- }
- [role=region]:focus .edit-post-layout .editor-post-publish-panel{
- transform:translateX(0);
- }
-}
-
-@keyframes edit-post-post-publish-panel__slide-in-animation{
- to{
- transform:translateX(0);
- }
-}
-.edit-post-layout .editor-post-publish-panel__header-publish-button{
- justify-content:center;
-}
-
-.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toggle-sidebar-panel{
- background-color:#fff;
- border:1px dotted #ddd;
- bottom:auto;
- box-sizing:border-box;
- display:flex;
- height:auto !important;
- justify-content:center;
- left:auto;
- padding:24px;
- position:fixed !important;
- right:0;
- top:-9999em;
- width:280px;
- z-index:100000;
-}
-
-.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__sidebar:focus .edit-post-layout__toggle-sidebar-panel,.interface-interface-skeleton__sidebar:focus-within .edit-post-layout__toggle-sidebar-panel{
- bottom:0;
- top:auto;
-}
-
-.edit-post-layout .entities-saved-states__panel-header{
- height:61px;
-}
-
.edit-post-meta-boxes-area{
position:relative;
}
@@ -910,136 +209,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{
clear:both;
}
-.components-panel__header.edit-post-sidebar__panel-tabs{
- padding-left:0;
- padding-right:16px;
-}
-.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{
- height:24px;
- min-width:24px;
- padding:0;
-}
-@media (min-width:782px){
- .components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{
- display:flex;
- }
-}
-
-.edit-post-sidebar__panel{
- margin-top:-1px;
-}
-
-.edit-post-post-format,.edit-post-post-slug{
- align-items:stretch;
- display:flex;
- flex-direction:column;
-}
-
-.edit-post-post-visibility__dialog .editor-post-visibility{
- margin:8px;
- min-width:248px;
-}
-
-h2.edit-post-template-summary__title{
- font-weight:500;
- line-height:24px;
- margin:0 0 4px;
-}
-
-.edit-post-text-editor{
- background-color:#fff;
- flex-grow:1;
- position:relative;
- width:100%;
-}
-.edit-post-text-editor .editor-post-title.is-raw-text textarea,.edit-post-text-editor .editor-post-title:not(.is-raw-text){
- border:1px solid #949494;
- border-radius:0;
- font-family:Menlo,Consolas,monaco,monospace;
- font-size:2.5em;
- font-weight:400;
- line-height:1.4;
- max-width:none;
- padding:16px;
-}
-@media (min-width:600px){
- .edit-post-text-editor .editor-post-title.is-raw-text textarea,.edit-post-text-editor .editor-post-title:not(.is-raw-text){
- padding:24px;
- }
-}
-.edit-post-text-editor .editor-post-title.is-raw-text textarea:focus,.edit-post-text-editor .editor-post-title:not(.is-raw-text):focus{
- border-color:var(--wp-admin-theme-color);
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
-}
-
-.edit-post-text-editor__body{
- margin-left:auto;
- margin-right:auto;
- max-width:1080px;
- padding:0 12px 12px;
- width:100%;
-}
-@media (min-width:960px){
- .edit-post-text-editor__body{
- padding:0 24px 24px;
- }
-}
-
-.edit-post-text-editor__toolbar{
- background:#fffc;
- display:flex;
- left:0;
- padding:4px 12px;
- position:sticky;
- right:0;
- top:0;
- z-index:1;
-}
-@media (min-width:600px){
- .edit-post-text-editor__toolbar{
- padding:12px;
- }
-}
-@media (min-width:960px){
- .edit-post-text-editor__toolbar{
- padding:12px 24px;
- }
-}
-.edit-post-text-editor__toolbar h2{
- color:#1e1e1e;
- font-size:13px;
- line-height:36px;
- margin:0 auto 0 0;
-}
-
-.edit-post-visual-editor{
- background-color:#ddd;
- display:flex;
- flex:1 0 auto;
- flex-flow:column;
- position:relative;
-}
-.edit-post-visual-editor:not(.has-inline-canvas){
- overflow:hidden;
-}
-.edit-post-visual-editor .components-button{
- font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
- font-size:13px;
- padding:6px 12px;
-}
-.edit-post-visual-editor .components-button.has-icon{
- padding:6px;
-}
-
-.edit-post-visual-editor__content-area{
- box-sizing:border-box;
- display:flex;
- flex-grow:1;
- height:100%;
- position:relative;
- width:100%;
-}
-
.edit-post-welcome-guide,.edit-template-welcome-guide{
width:312px;
}
@@ -1073,31 +242,6 @@ h2.edit-post-template-summary__title{
.edit-template-welcome-guide .components-button svg{
fill:#fff;
}
-
-.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{
- column-count:2;
- column-gap:24px;
-}
-@media (min-width:782px){
- .edit-post-start-page-options__modal-content .block-editor-block-patterns-list{
- column-count:3;
- }
-}
-@media (min-width:1280px){
- .edit-post-start-page-options__modal-content .block-editor-block-patterns-list{
- column-count:4;
- }
-}
-.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{
- break-inside:avoid-column;
- margin-bottom:24px;
-}
-.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{
- min-height:100px;
-}
-.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{
- width:100%;
-}
@keyframes edit-post__fade-in-animation{
0%{
opacity:0;
@@ -1139,10 +283,10 @@ body.js.block-editor-page .media-frame select.attachment-filters:last-of-type{
}
}
-.components-modal__frame,.edit-post-header,.edit-post-sidebar,.edit-post-text-editor,.editor-post-publish-panel{
+.edit-post-visual-editor.is-iframed,.editor-header,.editor-post-publish-panel,.editor-sidebar,.editor-text-editor{
box-sizing:border-box;
}
-.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{
+.edit-post-visual-editor.is-iframed *,.edit-post-visual-editor.is-iframed :after,.edit-post-visual-editor.is-iframed :before,.editor-header *,.editor-header :after,.editor-header :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before,.editor-sidebar *,.editor-sidebar :after,.editor-sidebar :before,.editor-text-editor *,.editor-text-editor :after,.editor-text-editor :before{
box-sizing:inherit;
}
@@ -1287,14 +431,4 @@ body.admin-color-sunrise{
body.admin-color-sunrise{
--wp-admin-border-width-focus:1.5px;
}
-}
-
-.interface-interface-skeleton__sidebar{
- border-left:none;
-}
-@media (min-width:782px){
- .is-sidebar-opened .interface-interface-skeleton__sidebar{
- border-left:1px solid #e0e0e0;
- overflow:hidden scroll;
- }
} \ No newline at end of file
diff --git a/wp-includes/css/dist/edit-post/style.min.css b/wp-includes/css/dist/edit-post/style.min.css
index 324cb7d..3d53994 100644
--- a/wp-includes/css/dist/edit-post/style.min.css
+++ b/wp-includes/css/dist/edit-post/style.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-right:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-left:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-left:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:300px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:8px}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:global-styles"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{display:flex}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-pinned-items .components-button{display:flex}}.edit-post-header{align-items:center;background:#fff;display:flex;flex-wrap:wrap;height:60px;justify-content:space-between;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header__toolbar{align-items:center;display:flex;flex-grow:3;flex-shrink:8;overflow:hidden;padding:2px 0}.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__toolbar .selected-block-tools-wrapper{align-items:center;display:flex;height:60px;overflow:hidden}.edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-contextual-toolbar{border-bottom:0;height:100%}.edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-toolbar{height:100%;padding-top:15px}.edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.edit-post-header__toolbar .selected-block-tools-wrapper:after{background-color:#ddd;content:"";height:24px;margin-left:8px;width:1px}.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar,.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar-group{border-right:none}.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar-group:after,.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar:after{background-color:#ddd;content:"";height:24px;margin-left:8px;margin-top:4px;width:1px}.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar .components-toolbar-group.components-toolbar-group:after,.edit-post-header__toolbar .selected-block-tools-wrapper .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{display:none}.edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width:600px){.edit-post-header__toolbar .selected-block-tools-wrapper .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{position:relative;top:-10px}}.edit-post-header__toolbar .selected-block-tools-wrapper.is-collapsed{display:none}.edit-post-header__block-tools-toggle{margin-left:2px}.edit-post-header__center{display:flex;flex-grow:1;justify-content:center}.edit-post-header__center.is-collapsed{display:none}.edit-post-header__settings{align-items:center;display:inline-flex;flex-wrap:nowrap;gap:8px;padding-right:4px}@media (min-width:600px){.edit-post-header__settings{padding-right:8px}}.edit-post-header__dropdown .components-button.has-icon,.show-icon-labels .edit-post-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.edit-post-header__dropdown .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.edit-post-header__dropdown .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label)}.edit-post-header__dropdown .components-button.has-icon[aria-disabled=true],.show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:initial}.edit-post-header__dropdown .is-tertiary:active,.show-icon-labels .edit-post-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{background-color:initial;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-post-header__dropdown .components-button.has-icon.button-toggle svg,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg{display:block}.edit-post-header__dropdown .components-button.has-icon.button-toggle:after,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle:after,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon:after{content:none}.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon{width:60px}.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.edit-post-header__dropdown .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-post-header__dropdown .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.edit-post-header__dropdown .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{content:none}.show-icon-labels .edit-post-header__toolbar .block-editor-block-mover{border-left:none}.show-icon-labels .edit-post-header__toolbar .block-editor-block-mover:before{background-color:#ddd;content:"";height:24px;margin-left:8px;margin-top:4px;width:1px}.show-icon-labels .edit-post-header__toolbar .block-editor-block-mover .block-editor-block-mover__move-button-container:before{background:#ddd;left:calc(50% + 1px);width:calc(100% - 24px)}.edit-post-header__dropdown .components-button.block-editor-list-view,.edit-post-header__dropdown .components-button.editor-history__redo,.edit-post-header__dropdown .components-button.editor-history__undo,.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,.edit-post-header__dropdown .table-of-contents .components-button{justify-content:flex-start;margin:0;padding:6px 6px 6px 40px;text-align:left;width:14.625rem}.show-icon-labels.interface-pinned-items{border-bottom:1px solid #ccc;display:block;margin:0 -12px;padding:6px 12px 12px}.show-icon-labels.interface-pinned-items>.components-button.has-icon{justify-content:flex-start;margin:0;padding:6px 6px 6px 8px;width:14.625rem}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-left:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-right:8px}@media (min-width:600px){.edit-post-header__post-preview-button{display:none}}.is-distraction-free .interface-interface-skeleton__header{border-bottom:none}.is-distraction-free .edit-post-header{background-color:#fff;border-bottom:1px solid #e0e0e0;position:absolute;width:100%}.is-distraction-free .edit-post-header>.edit-post-header__settings>.edit-post-header__post-preview-button{visibility:hidden}.is-distraction-free .edit-post-header>.edit-post-header__settings>.editor-preview-dropdown,.is-distraction-free .edit-post-header>.edit-post-header__settings>.interface-pinned-items,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .editor-document-tools__document-overview-toggle{display:none}.is-distraction-free .interface-interface-skeleton__header:focus-within{opacity:1!important}.is-distraction-free .interface-interface-skeleton__header:focus-within div{transform:translateX(0) translateZ(0)!important}.is-distraction-free .components-editor-notices__dismissible{position:absolute;z-index:35}.edit-post-fullscreen-mode-close.components-button{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button{align-items:center;align-self:stretch;background:#1e1e1e;border:none;border-radius:0;color:#fff;display:flex;height:61px;margin-bottom:-1px;position:relative;width:60px}.edit-post-fullscreen-mode-close.components-button:active{color:#fff}.edit-post-fullscreen-mode-close.components-button:focus{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:before{border-radius:4px;bottom:10px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-fullscreen-mode-close.components-button:before{transition-delay:0s;transition-duration:0s}}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button:hover:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #757575}.edit-post-fullscreen-mode-close.components-button.has-icon:hover:before{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #ffffff1a,inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}}.edit-post-fullscreen-mode-close.components-button .edit-post-fullscreen-mode-close_site-icon{border-radius:2px;height:36px;margin-top:-1px;object-fit:cover;width:36px}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-post-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-post-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.edit-post-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-post-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.edit-post-layout__metaboxes{clear:both;flex-shrink:0}.edit-post-layout .components-editor-notices__snackbar{bottom:40px;padding-left:16px;padding-right:16px;position:fixed;right:0}.is-distraction-free .components-editor-notices__snackbar{bottom:20px}.edit-post-layout .components-editor-notices__snackbar{left:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{left:36px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{left:0!important}.edit-post-layout .editor-post-publish-panel{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:46px;z-index:100001}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{animation:edit-post-post-publish-panel__slide-in-animation .1s forwards;border-left:1px solid #ddd;left:auto;top:32px;transform:translateX(100%);width:281px;z-index:99998}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-delay:0s;animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}[role=region]:focus .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toggle-sidebar-panel{background-color:#fff;border:1px dotted #ddd;bottom:auto;box-sizing:border-box;display:flex;height:auto!important;justify-content:center;left:auto;padding:24px;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__sidebar:focus .edit-post-layout__toggle-sidebar-panel,.interface-interface-skeleton__sidebar:focus-within .edit-post-layout__toggle-sidebar-panel{bottom:0;top:auto}.edit-post-layout .entities-saved-states__panel-header{height:61px}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:initial}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area .postbox-header{border-bottom:0;border-top:1px solid #ddd}.edit-post-meta-boxes-area #poststuff{margin:0 auto;min-width:auto;padding-top:0}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:0 24px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{color:inherit;margin:0;padding:0 24px 24px}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{background:#0000;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;right:20px;top:10px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.components-panel__header.edit-post-sidebar__panel-tabs{padding-left:0;padding-right:16px}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{height:24px;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.edit-post-sidebar__panel{margin-top:-1px}.edit-post-post-format,.edit-post-post-slug{align-items:stretch;display:flex;flex-direction:column}.edit-post-post-visibility__dialog .editor-post-visibility{margin:8px;min-width:248px}h2.edit-post-template-summary__title{font-weight:500;line-height:24px;margin:0 0 4px}.edit-post-text-editor{background-color:#fff;flex-grow:1;position:relative;width:100%}.edit-post-text-editor .editor-post-title.is-raw-text textarea,.edit-post-text-editor .editor-post-title:not(.is-raw-text){border:1px solid #949494;border-radius:0;font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400;line-height:1.4;max-width:none;padding:16px}@media (min-width:600px){.edit-post-text-editor .editor-post-title.is-raw-text textarea,.edit-post-text-editor .editor-post-title:not(.is-raw-text){padding:24px}}.edit-post-text-editor .editor-post-title.is-raw-text textarea:focus,.edit-post-text-editor .editor-post-title:not(.is-raw-text):focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-post-text-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:0 12px 12px;width:100%}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{background:#fffc;display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-post-text-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-post-text-editor__toolbar{padding:12px 24px}}.edit-post-text-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 auto 0 0}.edit-post-visual-editor{background-color:#ddd;display:flex;flex:1 0 auto;flex-flow:column;position:relative}.edit-post-visual-editor:not(.has-inline-canvas){overflow:hidden}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-post-visual-editor .components-button.has-icon{padding:6px}.edit-post-visual-editor__content-area{box-sizing:border-box;display:flex;flex-grow:1;height:100%;position:relative;width:100%}.edit-post-welcome-guide,.edit-template-welcome-guide{width:312px}.edit-post-welcome-guide__image,.edit-template-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-post-welcome-guide__image>img,.edit-template-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-post-welcome-guide__heading,.edit-template-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-post-welcome-guide__text,.edit-template-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon,.edit-template-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-template-welcome-guide .components-button svg{fill:#fff}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column;margin-bottom:24px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{min-height:100px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{width:100%}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.js.block-editor-page{background:#fff}body.js.block-editor-page #wpcontent{padding-left:0}body.js.block-editor-page #wpbody-content{padding-bottom:0}body.js.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.js.block-editor-page #wpfooter{display:none}body.js.block-editor-page .a11y-speak-region{left:-1px;top:-1px}body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu:after,body.js.block-editor-page ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.block-editor-page .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.block-editor-page #wpwrap{overflow-y:auto}@media (min-width:782px){.block-editor-page #wpwrap{overflow-y:initial}}.components-modal__frame,.edit-post-header,.edit-post-sidebar,.edit-post-text-editor,.editor-post-publish-panel{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{height:auto;max-width:100%}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}.interface-interface-skeleton__sidebar{border-left:none}@media (min-width:782px){.is-sidebar-opened .interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0;overflow:hidden scroll}} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.edit-post-fullscreen-mode-close.components-button{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button{align-items:center;align-self:stretch;background:#1e1e1e;border:none;border-radius:0;color:#fff;display:flex;height:60px;position:relative;width:60px}.edit-post-fullscreen-mode-close.components-button:active{color:#fff}.edit-post-fullscreen-mode-close.components-button:focus{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:before{border-radius:4px;bottom:10px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-fullscreen-mode-close.components-button:before{transition-delay:0s;transition-duration:0s}}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button:hover:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #757575}.edit-post-fullscreen-mode-close.components-button.has-icon:hover:before{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #ffffff1a,inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}}.edit-post-fullscreen-mode-close.components-button .edit-post-fullscreen-mode-close_site-icon{border-radius:2px;height:36px;margin-top:-1px;object-fit:cover;width:36px}.show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon{width:60px}.show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon svg{display:block}.show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon:after{content:none}.edit-post-visual-editor:not(.is-iframed){flex:1 0 auto;height:auto}.edit-post-layout__metaboxes{clear:both;flex-shrink:0}.components-editor-notices__snackbar{bottom:24px;padding-left:24px;padding-right:24px;position:fixed;right:0}.edit-post-layout .components-editor-notices__snackbar{left:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{left:36px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{left:0!important}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:initial}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area .postbox-header{border-bottom:0;border-top:1px solid #ddd}.edit-post-meta-boxes-area #poststuff{margin:0 auto;min-width:auto;padding-top:0}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:0 24px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{color:inherit;margin:0;padding:0 24px 24px}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{background:#0000;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;right:20px;top:10px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-welcome-guide,.edit-template-welcome-guide{width:312px}.edit-post-welcome-guide__image,.edit-template-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-post-welcome-guide__image>img,.edit-template-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-post-welcome-guide__heading,.edit-template-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-post-welcome-guide__text,.edit-template-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon,.edit-template-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-template-welcome-guide .components-button svg{fill:#fff}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.js.block-editor-page{background:#fff}body.js.block-editor-page #wpcontent{padding-left:0}body.js.block-editor-page #wpbody-content{padding-bottom:0}body.js.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.js.block-editor-page #wpfooter{display:none}body.js.block-editor-page .a11y-speak-region{left:-1px;top:-1px}body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu:after,body.js.block-editor-page ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.block-editor-page .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.block-editor-page #wpwrap{overflow-y:auto}@media (min-width:782px){.block-editor-page #wpwrap{overflow-y:initial}}.edit-post-visual-editor.is-iframed,.editor-header,.editor-post-publish-panel,.editor-sidebar,.editor-text-editor{box-sizing:border-box}.edit-post-visual-editor.is-iframed *,.edit-post-visual-editor.is-iframed :after,.edit-post-visual-editor.is-iframed :before,.editor-header *,.editor-header :after,.editor-header :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before,.editor-sidebar *,.editor-sidebar :after,.editor-sidebar :before,.editor-text-editor *,.editor-text-editor :after,.editor-text-editor :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{height:auto;max-width:100%}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
diff --git a/wp-includes/css/dist/edit-site/style-rtl.css b/wp-includes/css/dist/edit-site/style-rtl.css
index 93cad85..fa307cc 100644
--- a/wp-includes/css/dist/edit-site/style-rtl.css
+++ b/wp-includes/css/dist/edit-site/style-rtl.css
@@ -1,3 +1,4 @@
+@charset "UTF-8";
:root{
--wp-admin-theme-color:#007cba;
--wp-admin-theme-color--rgb:0, 124, 186;
@@ -8,7 +9,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -16,390 +17,39 @@
}
}
-.components-panel__header.interface-complementary-area-header__small{
- background:#fff;
- padding-left:4px;
-}
-.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{
- overflow:hidden;
- text-overflow:ellipsis;
- white-space:nowrap;
- width:100%;
-}
-@media (min-width:782px){
- .components-panel__header.interface-complementary-area-header__small{
- display:none;
- }
-}
-
-.interface-complementary-area-header{
- background:#fff;
- padding-left:4px;
-}
-.interface-complementary-area-header .components-button.has-icon{
- display:none;
- margin-right:auto;
-}
-.interface-complementary-area-header .components-button.has-icon~.components-button{
- margin-right:0;
-}
-@media (min-width:782px){
- .interface-complementary-area-header .components-button.has-icon{
- display:flex;
- }
- .components-panel__header+.interface-complementary-area-header{
- margin-top:0;
- }
-}
-
-.interface-complementary-area{
- background:#fff;
- color:#1e1e1e;
-}
-@media (min-width:600px){
- .interface-complementary-area{
- -webkit-overflow-scrolling:touch;
- }
-}
-@media (min-width:782px){
- .interface-complementary-area{
- width:280px;
- }
-}
-.interface-complementary-area .components-panel{
- border:none;
- position:relative;
- z-index:0;
-}
-.interface-complementary-area .components-panel__header{
- position:sticky;
- top:0;
- z-index:1;
-}
-.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{
- top:48px;
-}
-@media (min-width:782px){
- .interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{
- top:0;
- }
-}
-.interface-complementary-area p:not(.components-base-control__help){
- margin-top:0;
-}
-.interface-complementary-area h2{
- color:#1e1e1e;
- font-size:13px;
- margin-bottom:1.5em;
-}
-.interface-complementary-area h3{
- color:#1e1e1e;
- font-size:11px;
- font-weight:500;
- margin-bottom:1.5em;
- text-transform:uppercase;
-}
-.interface-complementary-area hr{
- border-bottom:1px solid #f0f0f0;
- border-top:none;
- margin:1.5em 0;
-}
-.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{
- box-shadow:none;
- margin-bottom:1.5em;
-}
-.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{
- margin-bottom:0;
-}
-.interface-complementary-area .block-editor-skip-to-selected-block:focus{
- bottom:10px;
- left:10px;
- right:auto;
- top:auto;
-}
-
-@media (min-width:782px){
- body.js.is-fullscreen-mode{
- height:calc(100% + 32px);
- margin-top:-32px;
- }
- body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{
- display:none;
- }
- body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{
- margin-right:0;
- }
-}
-
-html.interface-interface-skeleton__html-container{
- position:fixed;
- width:100%;
-}
-@media (min-width:782px){
- html.interface-interface-skeleton__html-container{
- position:static;
- width:auto;
- }
-}
-
-.interface-interface-skeleton{
- bottom:0;
- display:flex;
- flex-direction:row;
- height:auto;
- left:0;
- max-height:100%;
- position:fixed;
- top:46px;
-}
-@media (min-width:783px){
- .interface-interface-skeleton{
- top:32px;
- }
- .is-fullscreen-mode .interface-interface-skeleton{
- top:0;
- }
-}
-
-.interface-interface-skeleton__editor{
- display:flex;
- flex:0 1 100%;
- flex-direction:column;
- overflow:hidden;
-}
-
-.interface-interface-skeleton{
- right:0;
-}
-@media (min-width:783px){
- .interface-interface-skeleton{
- right:160px;
- }
-}
-@media (min-width:783px){
- .auto-fold .interface-interface-skeleton{
- right:36px;
- }
-}
-@media (min-width:961px){
- .auto-fold .interface-interface-skeleton{
- right:160px;
- }
-}
-.folded .interface-interface-skeleton{
- right:0;
-}
-@media (min-width:783px){
- .folded .interface-interface-skeleton{
- right:36px;
- }
-}
-
-body.is-fullscreen-mode .interface-interface-skeleton{
- right:0 !important;
-}
-
-.interface-interface-skeleton__body{
- display:flex;
- flex-grow:1;
- overflow:auto;
- overscroll-behavior-y:none;
-}
-@media (min-width:782px){
- .has-footer .interface-interface-skeleton__body{
- padding-bottom:25px;
- }
-}
-
-.interface-interface-skeleton__content{
- display:flex;
- flex-direction:column;
- flex-grow:1;
- overflow:auto;
- z-index:20;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__content{
- z-index:auto;
- }
-}
-
-.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
- background:#fff;
- bottom:0;
- color:#1e1e1e;
- flex-shrink:0;
- left:0;
- position:absolute;
- right:0;
- top:0;
- z-index:100000;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
- position:relative !important;
- width:auto;
- }
- .is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{
- z-index:90;
- }
-}
-
-.interface-interface-skeleton__sidebar{
- overflow:auto;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__sidebar{
- border-right:1px solid #e0e0e0;
- }
- .interface-interface-skeleton__secondary-sidebar{
- border-left:1px solid #e0e0e0;
- }
-}
-
-.interface-interface-skeleton__header{
- border-bottom:1px solid #e0e0e0;
- color:#1e1e1e;
- flex-shrink:0;
- height:auto;
- z-index:30;
-}
-
-.interface-interface-skeleton__footer{
- background-color:#fff;
- border-top:1px solid #e0e0e0;
- bottom:0;
- color:#1e1e1e;
- display:none;
- flex-shrink:0;
- height:auto;
- position:absolute;
- right:0;
- width:100%;
- z-index:90;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__footer{
- display:flex;
- }
-}
-.interface-interface-skeleton__footer .block-editor-block-breadcrumb{
- align-items:center;
- background:#fff;
- display:flex;
- font-size:13px;
- height:24px;
- padding:0 18px;
- z-index:30;
-}
-
-.interface-interface-skeleton__actions{
- background:#fff;
- bottom:auto;
- color:#1e1e1e;
- left:0;
- position:fixed !important;
- right:auto;
- top:-9999em;
- width:100vw;
- z-index:100000;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__actions{
- width:280px;
- }
-}
-.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{
- bottom:0;
- top:auto;
-}
-.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{
- top:46px;
-}
-@media (min-width:782px){
- .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{
- border-right:1px solid #ddd;
- top:32px;
- }
- .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{
- top:0;
- }
-}
-
-.interface-more-menu-dropdown{
- margin-right:-4px;
-}
-.interface-more-menu-dropdown .components-button{
- padding:0 2px;
- width:auto;
-}
-@media (min-width:600px){
- .interface-more-menu-dropdown{
- margin-right:0;
- }
- .interface-more-menu-dropdown .components-button{
- padding:0 4px;
- }
-}
-
-.interface-more-menu-dropdown__content .components-popover__content{
- min-width:300px;
-}
-@media (min-width:480px){
- .interface-more-menu-dropdown__content .components-popover__content{
- max-width:480px;
- }
-}
-.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{
- padding:0;
-}
-
-.components-popover.interface-more-menu-dropdown__content{
- z-index:99998;
-}
-
-.interface-pinned-items{
- display:flex;
- gap:8px;
-}
-.interface-pinned-items .components-button{
- display:none;
- margin:0;
-}
-.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:global-styles"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{
- display:flex;
-}
-.interface-pinned-items .components-button svg{
- max-height:24px;
- max-width:24px;
-}
-@media (min-width:600px){
- .interface-pinned-items .components-button{
- display:flex;
- }
-}
-
.dataviews-wrapper{
box-sizing:border-box;
+ container:dataviews-wrapper/inline-size;
+ display:flex;
+ flex-direction:column;
height:100%;
overflow:auto;
scroll-padding-bottom:64px;
- width:100%;
}
.dataviews-filters__view-actions{
+ box-sizing:border-box;
flex-shrink:0;
- margin-bottom:12px;
- padding:12px 32px 0;
+ padding:16px 48px;
position:sticky;
right:0;
+ transition:padding .1s ease-out;
+}
+@media (prefers-reduced-motion:reduce){
+ .dataviews-filters__view-actions{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
}
.dataviews-filters__view-actions .components-search-control .components-base-control__field{
max-width:240px;
}
-.dataviews-filters__container{
- padding-left:32px;
+.dataviews-filters__container .dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__container .dataviews-filters__reset-button[aria-disabled=true]:hover{
+ opacity:0;
+}
+.dataviews-filters__container .dataviews-filters__reset-button[aria-disabled=true]:focus{
+ opacity:1;
}
.dataviews-filters-button{
@@ -412,9 +62,16 @@ body.is-fullscreen-mode .interface-interface-skeleton{
bottom:0;
color:#757575;
flex-shrink:0;
- padding:12px 32px;
+ padding:12px 48px;
position:sticky;
right:0;
+ transition:padding .1s ease-out;
+}
+@media (prefers-reduced-motion:reduce){
+ .dataviews-pagination{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
}
.dataviews-pagination__page-selection{
@@ -428,14 +85,11 @@ body.is-fullscreen-mode .interface-interface-skeleton{
margin:32px 0 16px;
}
-.dataviews-view-table-wrapper{
- overflow-x:auto;
-}
-
.dataviews-view-table{
border-collapse:collapse;
border-color:inherit;
color:#757575;
+ margin-bottom:auto;
position:relative;
text-indent:0;
width:100%;
@@ -446,7 +100,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
text-decoration:none;
}
.dataviews-view-table th{
- color:var(--wp-components-color-foreground, #1e1e1e);
+ color:#1e1e1e;
font-size:13px;
font-weight:400;
text-align:right;
@@ -461,36 +115,53 @@ body.is-fullscreen-mode .interface-interface-skeleton{
.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{
padding-left:0;
}
-.dataviews-view-table td .components-checkbox-control__input-container,.dataviews-view-table th .components-checkbox-control__input-container{
- margin:4px;
-}
.dataviews-view-table tr{
border-bottom:1px solid #f0f0f0;
}
.dataviews-view-table tr .dataviews-view-table-header-button{
gap:4px;
}
+.dataviews-view-table tr td:first-child,.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:first-child,.dataviews-view-table tr th:last-child{
+ transition:padding .1s ease-out;
+}
+@media (prefers-reduced-motion:reduce){
+ .dataviews-view-table tr td:first-child,.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:first-child,.dataviews-view-table tr th:last-child{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
+}
.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{
- padding-right:32px;
+ padding-right:48px;
}
.dataviews-view-table tr td:first-child .dataviews-view-table-header,.dataviews-view-table tr td:first-child .dataviews-view-table-header-button,.dataviews-view-table tr th:first-child .dataviews-view-table-header,.dataviews-view-table tr th:first-child .dataviews-view-table-header-button{
margin-right:-8px;
}
.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{
- padding-left:32px;
+ padding-left:48px;
}
.dataviews-view-table tr:last-child{
border-bottom:0;
}
-.dataviews-view-table tr:hover{
+.dataviews-view-table tr.is-hovered{
background-color:#f8f8f8;
}
.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input{
opacity:0;
}
-.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate,.dataviews-view-table tr:focus-within .components-checkbox-control__input,.dataviews-view-table tr:hover .components-checkbox-control__input{
+.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate{
opacity:1;
}
+.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){
+ opacity:0;
+}
+.dataviews-view-table tr.is-hovered .components-checkbox-control__input,.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .components-checkbox-control__input,.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .components-checkbox-control__input,.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){
+ opacity:1;
+}
+@media (hover:none){
+ .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input,.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){
+ opacity:1;
+ }
+}
.dataviews-view-table tr.is-selected{
background-color:rgba(var(--wp-admin-theme-color--rgb), .04);
color:#757575;
@@ -527,6 +198,9 @@ body.is-fullscreen-mode .interface-interface-skeleton{
.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper>*{
flex-grow:1;
}
+.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__primary-field a{
+ flex-grow:0;
+}
.dataviews-view-table .dataviews-view-table-header-button{
font-size:11px;
font-weight:500;
@@ -553,7 +227,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
}
.dataviews-view-grid__primary-field,.dataviews-view-list__primary-field,.dataviews-view-table__primary-field{
- color:#1e1e1e;
+ color:#757575;
display:block;
font-size:13px;
font-weight:500;
@@ -562,16 +236,16 @@ body.is-fullscreen-mode .interface-interface-skeleton{
width:100%;
}
.dataviews-view-grid__primary-field a,.dataviews-view-list__primary-field a,.dataviews-view-table__primary-field a{
- color:inherit;
+ color:#1e1e1e;
display:block;
+ flex-grow:0;
overflow:hidden;
text-decoration:none;
text-overflow:ellipsis;
white-space:nowrap;
- width:100%;
}
.dataviews-view-grid__primary-field a:hover,.dataviews-view-list__primary-field a:hover,.dataviews-view-table__primary-field a:hover{
- color:#1e1e1e;
+ color:var(--wp-admin-theme-color);
}
.dataviews-view-grid__primary-field a:focus,.dataviews-view-list__primary-field a:focus,.dataviews-view-table__primary-field a:focus{
border-radius:2px;
@@ -579,7 +253,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
color:var(--wp-admin-theme-color--rgb);
}
.dataviews-view-grid__primary-field button.components-button.is-link,.dataviews-view-list__primary-field button.components-button.is-link,.dataviews-view-table__primary-field button.components-button.is-link{
- color:inherit;
+ color:#1e1e1e;
display:block;
font-weight:inherit;
overflow:hidden;
@@ -588,12 +262,27 @@ body.is-fullscreen-mode .interface-interface-skeleton{
white-space:nowrap;
width:100%;
}
+.dataviews-view-grid__primary-field button.components-button.is-link:hover,.dataviews-view-list__primary-field button.components-button.is-link:hover,.dataviews-view-table__primary-field button.components-button.is-link:hover{
+ color:var(--wp-admin-theme-color);
+}
.dataviews-view-grid{
- grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
+ grid-template-columns:repeat(1, minmax(0, 1fr)) !important;
grid-template-rows:max-content;
- margin-bottom:24px;
- padding:0 32px;
+ margin-bottom:auto;
+ padding:0 48px 24px;
+ transition:padding .1s ease-out;
+}
+@media (prefers-reduced-motion:reduce){
+ .dataviews-view-grid{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
+}
+@media (min-width:480px){
+ .dataviews-view-grid{
+ grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
+ }
}
@media (min-width:1080px){
.dataviews-view-grid{
@@ -606,30 +295,28 @@ body.is-fullscreen-mode .interface-interface-skeleton{
}
}
.dataviews-view-grid .dataviews-view-grid__card{
- border:1px solid #e0e0e0;
- border-radius:4px;
height:100%;
justify-content:flex-start;
}
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions{
- padding:4px 4px 4px 8px;
+ padding:8px 0 4px;
}
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__primary-field{
- min-height:40px;
-}
-.dataviews-view-grid .dataviews-view-grid__card.is-selected{
- background-color:rgba(var(--wp-admin-theme-color--rgb), .04);
- border-color:var(--wp-admin-theme-color);
+ min-height:32px;
}
.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{
color:#1e1e1e;
}
+.dataviews-view-grid .dataviews-view-grid__card.is-selected .page-pages-preview-field__button:after{
+ background:rgba(var(--wp-admin-theme-color--rgb), .04);
+ box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+}
.dataviews-view-grid .dataviews-view-grid__media{
aspect-ratio:1/1;
background-color:#f0f0f0;
- border-bottom:1px solid #e0e0e0;
- border-radius:3px 3px 0 0;
+ border-radius:4px;
min-height:200px;
+ position:relative;
width:100%;
}
.dataviews-view-grid .dataviews-view-grid__media img{
@@ -637,70 +324,124 @@ body.is-fullscreen-mode .interface-interface-skeleton{
object-fit:cover;
width:100%;
}
+.dataviews-view-grid .dataviews-view-grid__media:after{
+ border-radius:4px;
+ box-shadow:inset 0 0 0 1px #0000001a;
+ content:"";
+ height:100%;
+ pointer-events:none;
+ position:absolute;
+ right:0;
+ top:0;
+ width:100%;
+}
.dataviews-view-grid .dataviews-view-grid__fields{
font-size:12px;
line-height:16px;
position:relative;
}
.dataviews-view-grid .dataviews-view-grid__fields:not(:empty){
- padding:0 12px 12px;
+ padding:0 0 12px;
+}
+.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field{
+ align-items:flex-start;
+}
+.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(.is-column){
+ align-items:center;
}
-.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{
+.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(.is-column) .dataviews-view-grid__field-name{
+ width:35%;
+}
+.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(.is-column) .dataviews-view-grid__field-value{
+ overflow:hidden;
+ text-overflow:ellipsis;
+ white-space:nowrap;
+ width:65%;
+}
+.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{
color:#757575;
}
+.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty){
+ padding-bottom:12px;
+}
+.dataviews-view-grid .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value{
+ align-items:center;
+ background:#f0f0f0;
+ border-radius:2px;
+ display:flex;
+ font-size:12px;
+ min-height:24px;
+ padding:0 8px;
+ width:-moz-fit-content;
+ width:fit-content;
+}
.dataviews-view-list{
- margin:0;
- padding:8px;
+ margin:0 0 auto;
}
.dataviews-view-list li{
+ border-top:1px solid #f0f0f0;
+ cursor:pointer;
margin:0;
}
.dataviews-view-list li .dataviews-view-list__item-wrapper{
border-radius:4px;
- padding-left:24px;
position:relative;
}
-.dataviews-view-list li .dataviews-view-list__item-wrapper:after{
- background:#f0f0f0;
- content:"";
- height:1px;
- left:24px;
- position:absolute;
- right:24px;
- top:100%;
+.dataviews-view-list li .dataviews-view-list__item-wrapper>*{
+ width:100%;
+}
+.dataviews-view-list li .dataviews-view-list__item-actions .components-button{
+ left:0;
+ opacity:0;
+ position:fixed;
+}
+.dataviews-view-list li.is-hovered .dataviews-view-list__item-actions,.dataviews-view-list li.is-selected .dataviews-view-list__item-actions,.dataviews-view-list li:focus-within .dataviews-view-list__item-actions{
+ padding-left:32px;
+}
+.dataviews-view-list li.is-hovered .dataviews-view-list__item-actions .components-button,.dataviews-view-list li.is-selected .dataviews-view-list__item-actions .components-button,.dataviews-view-list li:focus-within .dataviews-view-list__item-actions .components-button{
+ opacity:1;
+ position:static;
+}
+.dataviews-view-list li.is-hovered .dataviews-view-list__item,.dataviews-view-list li.is-selected .dataviews-view-list__item,.dataviews-view-list li:focus-within .dataviews-view-list__item{
+ padding-left:0;
+}
+.dataviews-view-list li:not(.is-selected) .dataviews-view-list__primary-field{
+ color:#1e1e1e;
}
-.dataviews-view-list li:not(.is-selected):hover,.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__primary-field{
+.dataviews-view-list li:not(.is-selected):focus-within,.dataviews-view-list li:not(.is-selected):hover{
+ background-color:#f8f8f8;
color:var(--wp-admin-theme-color);
}
-.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper{
- background-color:var(--wp-admin-theme-color);
- color:#fff;
+.dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__primary-field,.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__primary-field{
+ color:var(--wp-admin-theme-color);
}
-.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .components-button,.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .components-button,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field{
- color:#fff;
+.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper{
+ background-color:rgba(var(--wp-admin-theme-color--rgb), .04);
+ color:#1e1e1e;
}
-.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper:after,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper:after{
- background:#0000;
+.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field{
+ color:var(--wp-admin-theme-color);
}
.dataviews-view-list .dataviews-view-list__item{
- cursor:pointer;
- padding:12px 24px 12px 0;
+ padding:16px 24px 16px 0;
+ scroll-margin:8px 0;
width:100%;
}
-.dataviews-view-list .dataviews-view-list__item:focus:before{
- border-radius:4px;
- bottom:-1px;
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+.dataviews-view-list .dataviews-view-list__item:focus-visible:before{
+ border-radius:2px;
+ bottom:var(--wp-admin-border-width-focus);
+ box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
content:"";
- left:-1px;
+ left:var(--wp-admin-border-width-focus);
position:absolute;
- right:-1px;
- top:-1px;
- z-index:-1;
+ right:var(--wp-admin-border-width-focus);
+ top:calc(var(--wp-admin-border-width-focus) + 1px);
}
.dataviews-view-list .dataviews-view-list__item .dataviews-view-list__primary-field{
+ line-height:20px;
min-height:20px;
+ overflow:hidden;
}
.dataviews-view-list .dataviews-view-list__media-wrapper{
background-color:#f0f0f0;
@@ -737,23 +478,19 @@ body.is-fullscreen-mode .interface-interface-skeleton{
flex-wrap:wrap;
font-size:12px;
gap:8px;
- line-height:16px;
}
-.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:empty{
+.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty){
display:none;
}
-.dataviews-view-list+.dataviews-pagination{
- justify-content:space-between;
-}
-.dataviews-view-list .dataviews-view-list__details-button{
- align-self:center;
- opacity:0;
+.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{
+ display:inline-flex;
+ line-height:20px;
}
-.dataviews-view-list li.is-selected .dataviews-view-list__details-button,.dataviews-view-list li:focus-within .dataviews-view-list__details-button,.dataviews-view-list li:hover .dataviews-view-list__details-button{
- opacity:1;
+.dataviews-view-list .dataviews-view-list__item-actions{
+ padding-left:24px;
}
-.dataviews-view-list li.is-selected .dataviews-view-list__details-button:focus{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) currentColor;
+.dataviews-view-list+.dataviews-pagination{
+ justify-content:space-between;
}
.dataviews-action-modal{
@@ -761,19 +498,32 @@ body.is-fullscreen-mode .interface-interface-skeleton{
}
.dataviews-loading,.dataviews-no-results{
- padding:0 32px;
+ align-items:center;
+ display:flex;
+ flex-grow:1;
+ justify-content:center;
+ padding:0 48px;
+ transition:padding .1s ease-out;
+}
+@media (prefers-reduced-motion:reduce){
+ .dataviews-loading,.dataviews-no-results{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
}
-.dataviews-view-table-selection-checkbox label{
- height:1px;
- margin:-1px;
- overflow:hidden;
- padding:0;
- position:absolute;
- width:1px;
- clip:rect(0, 0, 0, 0);
- border:0;
- white-space:nowrap;
+.dataviews-view-table-selection-checkbox{
+ --checkbox-input-size:24px;
+ flex-shrink:0;
+ line-height:0;
+}
+@media (min-width:600px){
+ .dataviews-view-table-selection-checkbox{
+ --checkbox-input-size:16px;
+ }
+}
+.dataviews-view-table-selection-checkbox .components-checkbox-control__input-container{
+ margin:0;
}
.dataviews-filters__custom-menu-radio-item-prefix{
@@ -785,14 +535,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
flex-shrink:0;
}
-.dataviews-view-grid__title-actions .dataviews-view-table-selection-checkbox{
- margin-right:8px;
-}
-
-.dataviews-view-grid__card.has-no-pointer-events *{
- pointer-events:none;
-}
-
.dataviews-filter-summary__popover .components-popover__content{
border-radius:4px;
padding:0;
@@ -805,7 +547,17 @@ body.is-fullscreen-mode .interface-interface-skeleton{
overflow:auto;
padding:4px;
}
-.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item{
+.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item-value [data-user-value]{
+ font-weight:600;
+}
+
+.dataviews-search-widget-listbox{
+ max-height:184px;
+ overflow:auto;
+ padding:4px;
+}
+
+.dataviews-search-widget-listitem{
align-items:center;
border-radius:2px;
box-sizing:border-box;
@@ -815,28 +567,25 @@ body.is-fullscreen-mode .interface-interface-skeleton{
margin-block-end:2px;
padding:8px 12px;
}
-.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:last-child{
+.dataviews-search-widget-listitem:last-child{
margin-block-end:0;
}
-.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:focus,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:hover,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item[data-active-item]{
- background-color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+.dataviews-search-widget-listitem:focus,.dataviews-search-widget-listitem:hover,.dataviews-search-widget-listitem[data-active-item]{
+ background-color:var(--wp-admin-theme-color);
color:#fff;
}
-.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:focus .dataviews-search-widget-filter-combobox-item-check,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:hover .dataviews-search-widget-filter-combobox-item-check,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item[data-active-item] .dataviews-search-widget-filter-combobox-item-check{
+.dataviews-search-widget-listitem:focus .dataviews-search-widget-listitem-check,.dataviews-search-widget-listitem:hover .dataviews-search-widget-listitem-check,.dataviews-search-widget-listitem[data-active-item] .dataviews-search-widget-listitem-check{
fill:#fff;
}
-.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:focus .dataviews-search-widget-filter-combobox-item-description,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:hover .dataviews-search-widget-filter-combobox-item-description,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item[data-active-item] .dataviews-search-widget-filter-combobox-item-description{
+.dataviews-search-widget-listitem:focus .dataviews-search-widget-listitem-description,.dataviews-search-widget-listitem:hover .dataviews-search-widget-listitem-description,.dataviews-search-widget-listitem[data-active-item] .dataviews-search-widget-listitem-description{
color:#fff;
}
-.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item .dataviews-search-widget-filter-combobox-item-check{
+.dataviews-search-widget-listitem .dataviews-search-widget-listitem-check{
flex-shrink:0;
height:24px;
width:24px;
}
-.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item .dataviews-search-widget-filter-combobox-item-value [data-user-value]{
- font-weight:600;
-}
-.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item .dataviews-search-widget-filter-combobox-item-description{
+.dataviews-search-widget-listitem .dataviews-search-widget-listitem-description{
color:#757575;
display:block;
font-size:12px;
@@ -899,7 +648,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
}
.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input:focus{
background:#fff;
- box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
+ box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
}
.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::placeholder{
color:#757575;
@@ -921,6 +670,10 @@ body.is-fullscreen-mode .interface-interface-skeleton{
.dataviews-filter-summary__operators-container{
padding:8px 8px 0;
}
+.dataviews-filter-summary__operators-container:has(+.dataviews-search-widget-listbox){
+ border-bottom:1px solid #e0e0e0;
+ padding-bottom:8px;
+}
.dataviews-filter-summary__operators-container:empty{
display:none;
}
@@ -937,7 +690,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
background:#f0f0f0;
border:1px solid #0000;
border-radius:16px;
- color:#757575;
+ color:#2f2f2f;
cursor:pointer;
display:flex;
height:32px;
@@ -1000,6 +753,68 @@ body.is-fullscreen-mode .interface-interface-skeleton{
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:none;
}
+@container (max-width: 430px){
+ .dataviews-filters__view-actions,.dataviews-pagination{
+ padding:12px 24px;
+ }
+
+ .dataviews-filters__view-actions .components-search-control .components-base-control__field{
+ max-width:112px;
+ }
+
+ .dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{
+ padding-right:24px;
+ }
+
+ .dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{
+ padding-left:24px;
+ }
+
+ .dataviews-loading,.dataviews-no-results,.dataviews-view-grid{
+ padding-left:24px;
+ padding-right:24px;
+ }
+}
+.dataviews-bulk-actions-toolbar-wrapper{
+ display:flex;
+ flex-grow:1;
+ width:100%;
+}
+.dataviews-bulk-actions-toolbar-wrapper .components-toolbar-group{
+ align-items:center;
+}
+.dataviews-bulk-actions-toolbar-wrapper .components-button.is-busy{
+ max-height:36px;
+}
+
+.dataviews-bulk-actions{
+ align-content:center;
+ bottom:24px;
+ display:flex;
+ flex-direction:column;
+ flex-wrap:wrap;
+ margin-left:auto;
+ margin-right:auto;
+ position:sticky;
+ width:-moz-fit-content;
+ width:fit-content;
+ z-index:2;
+}
+.dataviews-bulk-actions .components-accessible-toolbar{
+ border-color:#ddd;
+ box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;
+}
+.dataviews-bulk-actions .components-accessible-toolbar .components-toolbar-group{
+ border-color:#e0e0e0;
+}
+.dataviews-bulk-actions .components-accessible-toolbar .components-toolbar-group:last-child{
+ border:0;
+}
+.dataviews-bulk-actions .dataviews-bulk-actions__selection-count{
+ align-items:center;
+ display:flex;
+ margin:0 8px;
+}
.edit-site-custom-template-modal__contents-wrapper{
height:100%;
@@ -1076,27 +891,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
margin-bottom:4px;
}
-.edit-site-template-actions-loading-screen-modal{
- -webkit-backdrop-filter:none;
- backdrop-filter:none;
- background-color:initial;
-}
-.edit-site-template-actions-loading-screen-modal.is-full-screen{
- background-color:#fff;
- box-shadow:0 0 0 #0000;
- min-height:100%;
- min-width:100%;
-}
-.edit-site-template-actions-loading-screen-modal__content{
- align-items:center;
- display:flex;
- height:100%;
- justify-content:center;
- position:absolute;
- right:50%;
- transform:translateX(50%);
-}
-
.edit-site-add-new-template__modal{
margin-top:64px;
max-height:calc(100% - 128px);
@@ -1165,129 +959,10 @@ body.is-fullscreen-mode .interface-interface-skeleton{
text-align:start;
}
-.edit-site-block-editor__editor-styles-wrapper .components-button{
- font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
- font-size:13px;
- padding:6px 12px;
-}
-.edit-site-block-editor__editor-styles-wrapper .components-button.has-icon,.edit-site-block-editor__editor-styles-wrapper .components-button.is-tertiary{
- padding:6px;
-}
-
-.edit-site-editor-canvas__block-list.is-navigation-block{
- padding:24px;
-}
-
-.edit-site-visual-editor{
- align-items:center;
- background-color:#ddd;
- display:block;
- height:100%;
- overflow:hidden;
- position:relative;
-}
-.edit-site-visual-editor iframe{
- background:#fff;
- display:block;
- height:100%;
- width:100%;
-}
-.edit-site-visual-editor .edit-site-visual-editor__editor-canvas.is-focused{
+.edit-site-visual-editor__editor-canvas.is-focused{
outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);
outline-offset:calc(var(--wp-admin-border-width-focus)*-2);
}
-.edit-site-layout.is-full-canvas .edit-site-visual-editor.is-focus-mode{
- padding:24px;
-}
-.edit-site-visual-editor.is-focus-mode .edit-site-visual-editor__editor-canvas{
- border-radius:2px;
- max-height:100%;
-}
-.edit-site-visual-editor.is-focus-mode .components-resizable-box__container{
- overflow:visible;
-}
-.edit-site-visual-editor .components-resizable-box__container{
- margin:0 auto;
- overflow:auto;
-}
-.edit-site-visual-editor.is-view-mode{
- box-shadow:0 20px 25px -5px #000c,0 8px 10px -6px #000c;
-}
-
-.resizable-editor__drag-handle{
- -webkit-appearance:none;
- appearance:none;
- background:none;
- border:0;
- border-radius:2px;
- bottom:0;
- cursor:ew-resize;
- margin:auto 0;
- outline:none;
- padding:0;
- position:absolute;
- top:0;
- width:12px;
-}
-.resizable-editor__drag-handle.is-variation-default{
- height:100px;
-}
-.resizable-editor__drag-handle.is-variation-separator{
- height:100%;
- left:0;
- width:24px;
-}
-.resizable-editor__drag-handle.is-variation-separator:after{
- background:#0000;
- border-radius:0;
- left:0;
- right:50%;
- transform:translateX(1px);
- transition:all .2s ease;
- transition-delay:.1s;
- width:2px;
-}
-@media (prefers-reduced-motion:reduce){
- .resizable-editor__drag-handle.is-variation-separator:after{
- animation-delay:0s;
- animation-duration:1ms;
- transition-delay:0s;
- transition-duration:0s;
- }
-}
-.resizable-editor__drag-handle:after{
- background:#949494;
- border-radius:2px;
- bottom:24px;
- content:"";
- left:0;
- position:absolute;
- right:4px;
- top:24px;
- width:4px;
-}
-.resizable-editor__drag-handle.is-left{
- right:-16px;
-}
-.resizable-editor__drag-handle.is-right{
- left:-16px;
-}
-.resizable-editor__drag-handle:active,.resizable-editor__drag-handle:hover{
- opacity:1;
-}
-.resizable-editor__drag-handle:active.is-variation-default:after,.resizable-editor__drag-handle:hover.is-variation-default:after{
- background:#ccc;
-}
-.resizable-editor__drag-handle:active.is-variation-separator:after,.resizable-editor__drag-handle:hover.is-variation-separator:after{
- background:var(--wp-admin-theme-color);
-}
-.resizable-editor__drag-handle:focus:after{
- box-shadow:0 0 0 1px #2f2f2f, 0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color);
-}
-.resizable-editor__drag-handle.is-variation-separator:focus:after{
- border-radius:2px;
- box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color);
-}
.edit-site-canvas-loader{
align-items:center;
@@ -1320,95 +995,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
opacity:1;
}
}
-.edit-site-code-editor{
- background-color:#fff;
- min-height:100%;
- position:relative;
- width:100%;
-}
-.edit-site-code-editor__body{
- margin-left:auto;
- margin-right:auto;
- max-width:1080px;
- padding:12px;
- width:100%;
-}
-@media (min-width:960px){
- .edit-site-code-editor__body{
- padding:24px;
- }
-}
-.edit-site-code-editor__toolbar{
- background:#fffc;
- display:flex;
- left:0;
- padding:4px 12px;
- position:sticky;
- right:0;
- top:0;
- z-index:1;
-}
-@media (min-width:600px){
- .edit-site-code-editor__toolbar{
- padding:12px;
- }
-}
-@media (min-width:960px){
- .edit-site-code-editor__toolbar{
- padding:12px 24px;
- }
-}
-.edit-site-code-editor__toolbar h2{
- color:#1e1e1e;
- font-size:13px;
- line-height:36px;
- margin:0 0 0 auto;
-}
-
-textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{
- border:1px solid #949494;
- border-radius:0;
- box-shadow:none;
- display:block;
- font-family:Menlo,Consolas,monaco,monospace;
- font-size:16px !important;
- line-height:2.4;
- margin:0;
- min-height:200px;
- overflow:hidden;
- padding:16px;
- resize:none;
- transition:border .1s ease-out,box-shadow .1s linear;
- width:100%;
-}
-@media (prefers-reduced-motion:reduce){
- textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{
- transition-delay:0s;
- transition-duration:0s;
- }
-}
-@media (min-width:600px){
- textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{
- font-size:15px !important;
- padding:24px;
- }
-}
-textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:focus{
- border-color:var(--wp-admin-theme-color);
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
- position:relative;
-}
-textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-webkit-input-placeholder{
- color:#1e1e1e9e;
-}
-textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-moz-placeholder{
- color:#1e1e1e9e;
- opacity:1;
-}
-textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-input-placeholder{
- color:#1e1e1e9e;
-}
-
.edit-site-global-styles-preview{
align-items:center;
cursor:pointer;
@@ -1420,6 +1006,7 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
.edit-site-global-styles-preview__iframe{
display:block;
max-width:100%;
+ width:100%;
}
.edit-site-typography-preview{
@@ -1438,8 +1025,8 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
max-width:100%;
}
-.edit-site-global-styles-screen-css,.edit-site-global-styles-screen-typography{
- margin:16px;
+.edit-site-global-styles-screen{
+ margin:12px 16px 16px;
}
.edit-site-global-styles-screen-typography__indicator{
@@ -1460,13 +1047,12 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
justify-content:center;
}
-.edit-site-global-styles-screen-colors{
- margin:16px;
-}
-.edit-site-global-styles-screen-colors .color-block-support-panel{
+.edit-site-global-styles-screen .color-block-support-panel{
border-top:none;
padding-left:0;
padding-right:0;
+ padding-top:0;
+ row-gap:12px;
}
.edit-site-global-styles-header__description{
@@ -1497,31 +1083,6 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
padding:16px 16px 0;
}
-.edit-site-global-styles-variations_item{
- border-radius:2px;
- box-sizing:border-box;
-}
-.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{
- border-radius:2px;
- box-shadow:0 0 0 1px #e0e0e0;
- outline:1px solid #0000;
- padding:2px;
-}
-.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{
- box-shadow:0 0 0 1px #1e1e1e;
- outline-width:3px;
-}
-.edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{
- box-shadow:0 0 0 1px var(--wp-admin-theme-color);
-}
-.edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
-}
-.edit-site-global-styles-variations_item:focus-visible{
- outline:3px solid #0000;
- outline-offset:0;
-}
-
.edit-site-global-styles-icon-with-current-color{
fill:currentColor;
}
@@ -1531,6 +1092,10 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
height:24px;
}
+.edit-site-global-styles__shadows-panel__options-container,.edit-site-global-styles__shadows-panel__title{
+ height:24px;
+}
+
.edit-site-global-styles__block-preview-panel{
border:1px solid #e0e0e0;
border-radius:2px;
@@ -1539,10 +1104,53 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
width:100%;
}
+.edit-site-global-styles__shadow-preview-panel{
+ background-image:repeating-linear-gradient(-45deg, #f5f5f5 25%, #0000 0, #0000 75%, #f5f5f5 0, #f5f5f5), repeating-linear-gradient(-45deg, #f5f5f5 25%, #0000 0, #0000 75%, #f5f5f5 0, #f5f5f5);
+ background-position:100% 0, right 8px top 8px;
+ background-size:16px 16px;
+ border:1px solid #e0e0e0;
+ border-radius:2px;
+ height:150px;
+ overflow:auto;
+}
+.edit-site-global-styles__shadow-preview-panel .edit-site-global-styles__shadow-preview-block{
+ background-color:#fff;
+ border:1px solid #e0e0e0;
+ border-radius:2px;
+ height:60px;
+ width:60%;
+}
+
+.edit-site-global-styles__shadow-editor-panel{
+ margin-bottom:4px;
+ padding:16px;
+ width:280px;
+}
+.edit-site-global-styles__shadow-editor-panel .edit-site-global-styles__shadow-editor-color-palette{
+ margin-bottom:-4px;
+}
+
+.edit-site-global-styles__shadow-editor__dropdown{
+ width:100%;
+}
+.edit-site-global-styles__shadow-editor__dropdown .edit-site-global-styles__shadow-editor__dropdown-toggle,.edit-site-global-styles__shadow-editor__dropdown .edit-site-global-styles__shadow-editor__remove-button{
+ border-radius:inherit;
+ height:auto;
+ padding-bottom:8px;
+ padding-top:8px;
+ text-align:right;
+ width:100%;
+}
+.edit-site-global-styles__shadow-editor__dropdown .edit-site-global-styles__shadow-editor__dropdown-toggle.is-open,.edit-site-global-styles__shadow-editor__dropdown .edit-site-global-styles__shadow-editor__remove-button.is-open{
+ background:#f0f0f0;
+ color:var(--wp-admin-theme-color);
+}
+
.edit-site-global-styles-screen-css{
display:flex;
flex:1 1 auto;
flex-direction:column;
+ margin:16px;
}
.edit-site-global-styles-screen-css .components-v-stack{
flex:1 1 auto;
@@ -1558,7 +1166,7 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
}
.edit-site-global-styles-screen-css-help-link{
- display:block;
+ display:inline-block;
margin-top:8px;
}
@@ -1624,7 +1232,7 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
.edit-site-global-styles-screen-revisions__revision-item.is-selected{
background:rgba(var(--wp-admin-theme-color--rgb), .04);
border-radius:2px;
- color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
+ color:var(--wp-admin-theme-color);
outline:3px solid #0000;
outline-offset:-2px;
}
@@ -1635,7 +1243,7 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
color:var(--wp-admin-theme-color);
}
.edit-site-global-styles-screen-revisions__revision-item.is-selected:before{
- background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
+ background:var(--wp-admin-theme-color);
}
.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__changes>li,.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__meta{
color:#1e1e1e;
@@ -1731,17 +1339,10 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
}
.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary{
color:#1e1e1e;
- font-size:28px;
- font-weight:200;
- line-height:1.2;
- margin-bottom:4px;
}
-.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:disabled{
+.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:disabled,.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{
color:#949494;
}
-.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:hover{
- background:#0000;
-}
.edit-site-global-styles-screen-revisions__footer{
background:#fff;
@@ -1754,396 +1355,129 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
z-index:1;
}
-.edit-site-header-edit-mode{
- align-items:center;
- background-color:#fff;
- border-bottom:1px solid #e0e0e0;
- box-sizing:border-box;
- color:#1e1e1e;
- display:flex;
- height:60px;
- justify-content:space-between;
- padding-right:60px;
- width:100%;
-}
-.edit-site-header-edit-mode .edit-site-header-edit-mode__start{
- align-items:center;
- border:none;
- display:flex;
- flex-shrink:2;
- height:100%;
- overflow:hidden;
+.editor-sidebar{
+ width:280px;
}
-@media (min-width:782px){
- .edit-site-header-edit-mode .edit-site-header-edit-mode__start{
- padding-left:2px;
- }
+.editor-sidebar>.components-panel{
+ border-left:0;
+ border-right:0;
+ margin-bottom:-1px;
+ margin-top:-1px;
}
-.edit-site-header-edit-mode .edit-site-header-edit-mode__end{
- display:flex;
- justify-content:flex-end;
+.editor-sidebar>.components-panel>.components-panel__header{
+ background:#f0f0f0;
}
-.edit-site-header-edit-mode .edit-site-header-edit-mode__center{
- align-items:center;
- display:flex;
- flex-grow:1;
- height:100%;
- justify-content:center;
- margin:0 16px;
- min-width:0;
+.editor-sidebar .block-editor-block-inspector__card{
+ margin:0;
}
-.edit-site-header-edit-mode__toolbar{
- align-items:center;
+.edit-site-global-styles-sidebar{
display:flex;
- gap:8px;
- padding-right:16px;
-}
-@media (min-width:782px){
- .edit-site-header-edit-mode__toolbar{
- padding-right:20px;
- }
-}
-@media (min-width:1280px){
- .edit-site-header-edit-mode__toolbar{
- padding-left:8px;
- }
-}
-.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{
- transition:transform .2s cubic-bezier(.165, .84, .44, 1);
-}
-@media (prefers-reduced-motion:reduce){
- .edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{
- transition-delay:0s;
- transition-duration:0s;
- }
-}
-.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle.is-pressed svg{
- transform:rotate(-45deg);
-}
-.edit-site-header-edit-mode__actions{
- align-items:center;
- display:inline-flex;
- flex-wrap:nowrap;
- gap:8px;
- padding-left:4px;
-}
-@media (min-width:600px){
- .edit-site-header-edit-mode__actions{
- padding-left:8px;
- }
+ flex-direction:column;
+ min-height:100%;
}
-
-.edit-site-header-edit-mode__preview-options{
- opacity:1;
- transition:opacity .3s;
+.edit-site-global-styles-sidebar__navigator-provider,.edit-site-global-styles-sidebar__panel{
+ display:flex;
+ flex:1;
+ flex-direction:column;
}
-.edit-site-header-edit-mode__preview-options.is-zoomed-out{
- opacity:0;
+.edit-site-global-styles-sidebar__navigator-screen{
+ flex:1;
}
-.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon{
- width:auto;
-}
-.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon svg{
- display:none;
-}
-.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon:after{
- content:attr(aria-label);
-}
-.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon[aria-disabled=true]{
- background-color:initial;
-}
-.edit-site-header-edit-mode.show-icon-labels .is-tertiary:active{
- background-color:initial;
- box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);
-}
-.edit-site-header-edit-mode.show-icon-labels .edit-site-save-button__button{
- padding-left:6px;
- padding-right:6px;
-}
-.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info:after{
- content:none;
-}
-.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info,.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__inserter-toggle.edit-site-header-edit-mode__inserter-toggle{
- height:36px;
- padding:0 8px;
-}
-.edit-site-header-edit-mode.show-icon-labels .block-editor-block-mover{
- border-right:none;
-}
-.edit-site-header-edit-mode.show-icon-labels .block-editor-block-mover:before{
- background-color:#ddd;
- content:"";
- height:24px;
- margin-right:8px;
- margin-top:4px;
- width:1px;
-}
-.edit-site-header-edit-mode.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container:before{
- background:#ddd;
- right:calc(50% + 1px);
- width:calc(100% - 24px);
+.edit-site-global-styles-sidebar .edit-site-global-styles-sidebar__header-title{
+ margin:0;
}
-.has-fixed-toolbar .selected-block-tools-wrapper{
- align-items:center;
- display:flex;
- height:60px;
- overflow:hidden;
-}
-.has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-contextual-toolbar{
- border-bottom:0;
- height:100%;
-}
-.has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-toolbar{
- height:100%;
- padding-top:15px;
-}
-.has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){
- height:32px;
-}
-.has-fixed-toolbar .selected-block-tools-wrapper:after{
- background-color:#ddd;
- content:"";
- height:24px;
- margin-right:8px;
- width:1px;
-}
-.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar,.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar-group{
- border-left:none;
-}
-.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar-group:after,.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar:after{
- background-color:#ddd;
- content:"";
- height:24px;
- margin-right:8px;
- margin-top:4px;
- width:1px;
-}
-.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar .components-toolbar-group.components-toolbar-group:after,.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{
- display:none;
-}
-.has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{
- height:32px;
- overflow:visible;
-}
-@media (min-width:600px){
- .has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{
- position:relative;
- top:-10px;
- }
-}
-.has-fixed-toolbar .edit-site-header-edit-mode__center.is-collapsed,.has-fixed-toolbar .selected-block-tools-wrapper.is-collapsed{
- display:none;
+.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{
+ font-size:15.6px;
+ font-weight:500;
}
-.edit-site-header-edit-mode__block-tools-toggle{
- margin-right:2px;
+.edit-site-global-styles-sidebar .components-navigation__item>button span{
+ font-weight:500;
}
-.edit-site-list-header{
- align-items:center;
- box-sizing:border-box;
- display:flex;
- height:60px;
- justify-content:flex-end;
- padding-left:16px;
- position:relative;
- width:100%;
-}
-body.is-fullscreen-mode .edit-site-list-header{
- padding-right:60px;
- transition:padding-right 20ms linear;
- transition-delay:80ms;
-}
-@media (prefers-reduced-motion:reduce){
- body.is-fullscreen-mode .edit-site-list-header{
- transition-delay:0s;
- transition-duration:0s;
- }
-}
-.edit-site-list-header .edit-site-list-header__title{
- font-size:20px;
- margin:0;
- padding:0;
- position:absolute;
- right:0;
- text-align:center;
- width:100%;
+.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{
+ border:0;
}
-.edit-site-list-header__right{
- position:relative;
+.edit-site-global-styles-sidebar .single-column{
+ grid-column:span 1;
}
-.edit-site .edit-site-list{
- background:#fff;
- border-radius:8px;
- box-shadow:0 20px 25px -5px #000c,0 8px 10px -6px #000c;
- flex-grow:1;
-}
-.edit-site .edit-site-list .interface-interface-skeleton__editor{
- min-width:100%;
-}
-@media (min-width:782px){
- .edit-site .edit-site-list .interface-interface-skeleton__editor{
- min-width:0;
- }
-}
-.edit-site .edit-site-list .interface-interface-skeleton__content{
- align-items:center;
- background:#fff;
- padding:16px;
-}
-@media (min-width:782px){
- .edit-site .edit-site-list .interface-interface-skeleton__content{
- padding:72px;
- }
+.edit-site-global-styles-sidebar .components-tools-panel .span-columns{
+ grid-column:1 / -1;
}
-.edit-site-list-table{
- border:1px solid #ddd;
- border-radius:2px;
- border-spacing:0;
- margin:0 auto;
- max-width:960px;
- min-width:100%;
- overflow:hidden;
-}
-.edit-site-list-table tr{
- align-items:center;
- border-top:1px solid #f0f0f0;
- box-sizing:border-box;
- display:flex;
- margin:0;
- padding:16px;
-}
-.edit-site-list-table tr:first-child{
- border-top:0;
-}
-@media (min-width:782px){
- .edit-site-list-table tr{
- padding:24px 32px;
- }
-}
-.edit-site-list-table tr .edit-site-list-table-column:first-child{
- padding-left:24px;
- width:calc(60% - 18px);
-}
-.edit-site-list-table tr .edit-site-list-table-column:first-child a{
- display:inline-block;
- font-weight:500;
- margin-bottom:4px;
- text-decoration:none;
-}
-.edit-site-list-table tr .edit-site-list-table-column:nth-child(2){
- width:calc(40% - 18px);
- word-break:break-word;
-}
-.edit-site-list-table tr .edit-site-list-table-column:nth-child(3){
- flex-shrink:0;
- min-width:36px;
-}
-.edit-site-list-table tr.edit-site-list-table-head{
- border-bottom:1px solid #ddd;
- border-top:none;
- color:#1e1e1e;
- font-size:16px;
- font-weight:600;
- text-align:right;
-}
-.edit-site-list-table tr.edit-site-list-table-head th{
- font-weight:inherit;
+.edit-site-global-styles-sidebar__blocks-group{
+ border-top:1px solid #e0e0e0;
+ padding-top:24px;
}
-@media (min-width:782px){
- .edit-site-list.is-navigation-open .components-snackbar-list{
- margin-right:360px;
- }
+.edit-site-global-styles-sidebar__blocks-group-help{
+ padding:0 16px;
}
-.edit-site-list__rename-modal{
- z-index:1000001;
-}
-@media (min-width:782px){
- .edit-site-list__rename-modal .components-base-control{
- width:320px;
- }
+.edit-site-global-styles-color-palette-panel,.edit-site-global-styles-gradient-palette-panel{
+ padding:16px;
}
-.edit-site-template__actions button:not(:last-child){
- margin-left:8px;
+.edit-site-global-styles-sidebar hr{
+ margin:0;
}
-.edit-site-list-added-by__icon{
- display:flex;
- flex-shrink:0;
- height:24px;
- width:24px;
+.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{
+ display:none;
}
-.edit-site-list-added-by__icon svg{
- fill:currentColor;
+.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{
+ content:attr(aria-label);
+ font-size:12px;
}
-.edit-site-list-added-by__avatar{
- align-items:center;
- display:flex;
- flex-shrink:0;
- height:24px;
- justify-content:center;
- overflow:hidden;
- width:24px;
-}
-.edit-site-list-added-by__avatar img{
- border-radius:100%;
- height:20px;
- object-fit:cover;
- opacity:0;
- transition:opacity .1s linear;
- width:20px;
+.edit-site-page{
+ background:#fff;
+ color:#2f2f2f;
+ container:edit-site-page/inline-size;
+ height:100%;
+ transition:width .2s ease-out;
}
@media (prefers-reduced-motion:reduce){
- .edit-site-list-added-by__avatar img{
+ .edit-site-page{
transition-delay:0s;
transition-duration:0s;
}
}
-.edit-site-list-added-by__avatar.is-loaded img{
- opacity:1;
-}
-
-.edit-site-list-added-by__customized-info{
- color:#757575;
- display:block;
-}
-
-.edit-site-page{
- background:#fff;
- color:#2f2f2f;
- height:100%;
-}
.edit-site-page-header{
background:#fff;
border-bottom:1px solid #f0f0f0;
- min-height:72px;
- padding:16px 32px;
+ padding:16px 48px;
position:sticky;
top:0;
+ transition:padding .1s ease-out;
z-index:2;
}
-.edit-site-page-header .components-text{
- color:#2f2f2f;
+@media (prefers-reduced-motion:reduce){
+ .edit-site-page-header{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
}
.edit-site-page-header .components-heading{
color:#1e1e1e;
}
+.edit-site-page-header .edit-site-page-header__page-title{
+ min-height:40px;
+}
.edit-site-page-header .edit-site-page-header__sub-title{
- color:#757575;
- margin-top:8px;
+ margin-bottom:8px;
+}
+@container (max-width: 430px){
+ .edit-site-page-header{
+ padding:16px 24px;
+ }
}
-
.edit-site-page-content{
display:flex;
flex-flow:column;
@@ -2152,23 +1486,18 @@ body.is-fullscreen-mode .edit-site-list-header{
z-index:1;
}
-.page-pages-preview-field__button{
- background-color:unset;
- border:none;
- border-radius:3px 3px 0 0;
- box-shadow:none;
- box-sizing:border-box;
- cursor:pointer;
+.edit-site-page-pages__featured-image{
height:100%;
- overflow:hidden;
- padding:0;
+ object-fit:cover;
width:100%;
}
-.page-pages-preview-field__button:focus-visible{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
- outline:2px solid #0000;
+
+.edit-site-page-pages__featured-image-wrapper{
+ border-radius:4px;
+ height:100%;
+ width:100%;
}
-.page-pages-preview-field__button.edit-site-page-pages__media-wrapper{
+.edit-site-page-pages__featured-image-wrapper.is-layout-table .page-pages-preview-field__button,.edit-site-page-pages__featured-image-wrapper.is-layout-table:not(:has(.page-pages-preview-field__button)){
background-color:#f0f0f0;
border-radius:4px;
display:block;
@@ -2178,12 +1507,7 @@ body.is-fullscreen-mode .edit-site-list-header{
position:relative;
width:32px;
}
-.page-pages-preview-field__button.edit-site-page-pages__media-wrapper .edit-site-page-pages__featured-image{
- height:100%;
- object-fit:cover;
- width:100%;
-}
-.page-pages-preview-field__button.edit-site-page-pages__media-wrapper:after{
+.edit-site-page-pages__featured-image-wrapper.is-layout-table .page-pages-preview-field__button:after,.edit-site-page-pages__featured-image-wrapper.is-layout-table:not(:has(.page-pages-preview-field__button)):after{
border-radius:4px;
box-shadow:inset 0 0 0 1px #0000001a;
content:"";
@@ -2194,166 +1518,42 @@ body.is-fullscreen-mode .edit-site-list-header{
width:100%;
}
-.edit-site-patterns{
- background:#1e1e1e;
- border-radius:0;
- border-right:1px solid #2f2f2f;
- margin:60px 0 0;
- min-height:100%;
- overflow-x:auto;
- padding:0;
-}
-.edit-site-patterns .components-base-control{
- width:100%;
-}
-@media (min-width:782px){
- .edit-site-patterns .components-base-control{
- width:auto;
- }
-}
-.edit-site-patterns .components-text{
- color:#949494;
-}
-.edit-site-patterns .components-heading{
- color:#e0e0e0;
-}
-@media (min-width:782px){
- .edit-site-patterns{
- margin:0;
- }
-}
-.edit-site-patterns .edit-site-patterns__search-block{
- flex-grow:1;
- min-width:-moz-fit-content;
- min-width:fit-content;
-}
-.edit-site-patterns .edit-site-patterns__search{
- --wp-components-color-foreground:#e0e0e0;
-}
-.edit-site-patterns .edit-site-patterns__search .components-input-control__container{
- background:#2f2f2f;
-}
-.edit-site-patterns .edit-site-patterns__search svg{
- fill:#949494;
-}
-.edit-site-patterns .edit-site-patterns__sync-status-filter{
- background:#2f2f2f;
- border:none;
- height:40px;
- max-width:100%;
- min-width:max-content;
- width:100%;
-}
-@media (min-width:782px){
- .edit-site-patterns .edit-site-patterns__sync-status-filter{
- width:300px;
- }
-}
-.edit-site-patterns .edit-site-patterns__sync-status-filter-option:not([aria-checked=true]){
- color:#949494;
-}
-.edit-site-patterns .edit-site-patterns__sync-status-filter-option:active{
- background:#757575;
- color:#f0f0f0;
-}
-
-.edit-site-patterns__header{
- background:#1e1e1e;
- padding:32px 32px 16px;
- position:sticky;
- top:0;
- z-index:2;
-}
-.edit-site-patterns__header .edit-site-patterns__button{
- color:#949494;
-}
-
-.edit-site-patterns__section{
- flex:1;
- padding:24px 32px;
-}
-
-.edit-site-patterns__section-header .screen-reader-shortcut:focus{
- top:0;
-}
-
-.edit-site-patterns__grid{
- display:grid;
- gap:32px;
- grid-template-columns:1fr;
- margin-bottom:0;
- margin-top:0;
-}
-@media (min-width:960px){
- .edit-site-patterns__grid{
- grid-template-columns:1fr 1fr;
- }
-}
-@media (min-width:1440px){
- .edit-site-patterns__grid{
- grid-template-columns:1fr 1fr 1fr;
- }
-}
-@media (min-width:1920px){
- .edit-site-patterns__grid{
- grid-template-columns:1fr 1fr 1fr 1fr;
- }
-}
-.edit-site-patterns__grid .edit-site-patterns__pattern{
- break-inside:avoid-column;
- display:flex;
- flex-direction:column;
-}
-.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview{
+.page-pages-preview-field__button{
background-color:unset;
border:none;
border-radius:4px;
box-shadow:none;
box-sizing:border-box;
cursor:pointer;
+ height:100%;
overflow:hidden;
padding:0;
+ width:100%;
}
-.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview:focus{
- box-shadow:inset 0 0 0 0 #fff, 0 0 0 2px var(--wp-admin-theme-color);
+.page-pages-preview-field__button:focus-visible{
+ box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:2px solid #0000;
}
-.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive{
- cursor:default;
-}
-.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive:focus{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) #2f2f2f;
- opacity:.8;
-}
-.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__button,.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__footer{
- color:#949494;
+
+.edit-site-page-pages-title span{
+ overflow:hidden;
+ text-overflow:ellipsis;
}
-.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__dropdown{
+
+.edit-site-page-pages__title-badge{
+ background:#f0f0f0;
+ border-radius:2px;
+ color:#757575;
flex-shrink:0;
-}
-.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview{
- align-items:center;
- border:1px dashed #2f2f2f;
- color:#949494;
- display:flex;
- justify-content:center;
- min-height:64px;
-}
-.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview:focus{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
-}
-.edit-site-patterns__grid .edit-site-patterns__preview{
- flex:0 1 auto;
- margin-bottom:12px;
+ font-size:12px;
+ font-weight:400;
+ padding:0 4px;
}
-.edit-site-patterns__load-more{
- align-self:center;
+.edit-site-patterns__section-header .screen-reader-shortcut:focus{
+ top:0;
}
-.edit-site-patterns__pattern-title{
- color:#e0e0e0;
-}
.edit-site-patterns__pattern-title .is-link{
color:#e0e0e0;
text-decoration:none;
@@ -2370,56 +1570,27 @@ body.is-fullscreen-mode .edit-site-list-header{
fill:currentcolor;
}
-.edit-site-patterns__no-results{
- color:#949494;
-}
-
.edit-site-patterns__delete-modal{
width:384px;
}
-.edit-site-patterns__pagination{
- background:#1e1e1e;
- border-top:1px solid #2f2f2f;
- bottom:0;
- color:#f0f0f0;
- padding:24px 32px;
- position:sticky;
- z-index:2;
-}
-.edit-site-patterns__pagination .components-button.is-tertiary{
- background-color:#2f2f2f;
- color:#f0f0f0;
-}
-.edit-site-patterns__pagination .components-button.is-tertiary:disabled{
- background:none;
- color:#949494;
-}
-.edit-site-patterns__pagination .components-button.is-tertiary:hover:not(:disabled){
- background-color:#757575;
-}
-.edit-site-page-patterns-dataviews{
- margin-top:60px;
-}
-@media (min-width:782px){
- .edit-site-page-patterns-dataviews{
- margin-top:0;
- }
-}
.edit-site-page-patterns-dataviews .page-patterns-preview-field{
- border-radius:3px 3px 0 0;
display:flex;
flex-direction:column;
height:100%;
}
-.edit-site-page-patterns-dataviews .page-patterns-preview-field.is-viewtype-grid .block-editor-block-preview__container{
- border-radius:3px 3px 0 0;
- height:100%;
+.edit-site-page-patterns-dataviews .page-patterns-preview-field.is-viewtype-table{
+ border-radius:2px;
+ flex-grow:0;
+ width:96px;
+}
+.edit-site-page-patterns-dataviews .page-patterns-preview-field.is-viewtype-table .page-patterns-preview-field__button{
+ border-radius:2px;
}
.edit-site-page-patterns-dataviews .page-patterns-preview-field .page-patterns-preview-field__button{
background-color:unset;
border:none;
- border-radius:3px 3px 0 0;
+ border-radius:4px;
box-shadow:none;
box-sizing:border-box;
cursor:pointer;
@@ -2431,6 +1602,9 @@ body.is-fullscreen-mode .edit-site-list-header{
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:2px solid #0000;
}
+.edit-site-page-patterns-dataviews .page-patterns-preview-field .page-patterns-preview-field__button[aria-disabled=true]{
+ cursor:default;
+}
.edit-site-page-patterns-dataviews .edit-site-patterns__pattern-icon{
fill:var(--wp-block-synced-color);
flex-shrink:0;
@@ -2440,12 +1614,26 @@ body.is-fullscreen-mode .edit-site-list-header{
}
.edit-site-page-patterns-dataviews .edit-site-patterns__section-header{
border-bottom:1px solid #f0f0f0;
- min-height:72px;
- padding:16px 32px;
+ flex-shrink:0;
+ min-height:40px;
+ padding:16px 48px;
position:sticky;
top:0;
+ transition:padding .1s ease-out;
z-index:2;
}
+@media (prefers-reduced-motion:reduce){
+ .edit-site-page-patterns-dataviews .edit-site-patterns__section-header{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
+}
+.edit-site-page-patterns-dataviews .edit-site-patterns__section-header .edit-site-patterns__title{
+ min-height:40px;
+}
+.edit-site-page-patterns-dataviews .edit-site-patterns__section-header .edit-site-patterns__sub-title{
+ margin-bottom:8px;
+}
.edit-site-page-patterns-dataviews .edit-site-patterns__pattern-title{
color:inherit;
display:block;
@@ -2457,6 +1645,10 @@ body.is-fullscreen-mode .edit-site-list-header{
.edit-site-page-patterns-dataviews .dataviews-pagination{
z-index:2;
}
+.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.edit-site-patterns__field-sync-status-fully){
+ background:rgba(var(--wp-block-synced-color--rgb), .04);
+ color:var(--wp-block-synced-color);
+}
.dataviews-action-modal__duplicate-pattern [role=dialog]>[role=document]{
width:350px;
@@ -2484,9 +1676,13 @@ body.is-fullscreen-mode .edit-site-list-header{
max-width:500px;
}
}
-
+@container (max-width: 430px){
+ .edit-site-page-patterns-dataviews .edit-site-patterns__section-header{
+ padding-left:24px;
+ padding-right:24px;
+ }
+}
.page-templates-preview-field{
- border-radius:3px 3px 0 0;
display:flex;
flex-direction:column;
height:100%;
@@ -2494,7 +1690,7 @@ body.is-fullscreen-mode .edit-site-list-header{
.page-templates-preview-field .page-templates-preview-field__button{
background-color:unset;
border:none;
- border-radius:3px;
+ border-radius:4px;
box-shadow:none;
box-sizing:border-box;
cursor:pointer;
@@ -2510,10 +1706,7 @@ body.is-fullscreen-mode .edit-site-list-header{
height:120px;
}
.page-templates-preview-field.is-viewtype-grid .block-editor-block-preview__container{
- height:auto;
-}
-.page-templates-preview-field.is-viewtype-grid .page-templates-preview-field__button{
- border-radius:3px 3px 0 0;
+ height:100%;
}
.page-templates-preview-field.is-viewtype-table{
border-radius:2px;
@@ -2534,10 +1727,61 @@ body.is-fullscreen-mode .edit-site-list-header{
white-space:normal;
}
-.edit-site-page-template-template-parts-dataviews .dataviews-pagination{
+.edit-site-page-templates .dataviews-pagination{
z-index:2;
}
+.page-templates-author-field__avatar{
+ align-items:center;
+ display:flex;
+ flex-shrink:0;
+ height:24px;
+ justify-content:center;
+ overflow:hidden;
+ width:24px;
+}
+.page-templates-author-field__avatar img{
+ border-radius:100%;
+ height:20px;
+ object-fit:cover;
+ opacity:0;
+ transition:opacity .1s linear;
+ width:20px;
+}
+@media (prefers-reduced-motion:reduce){
+ .page-templates-author-field__avatar img{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
+}
+.page-templates-author-field__avatar.is-loaded img{
+ opacity:1;
+}
+
+.page-templates-author-field__icon{
+ display:flex;
+ flex-shrink:0;
+ height:24px;
+ width:24px;
+}
+.page-templates-author-field__icon svg{
+ fill:currentColor;
+}
+
+.page-templates-author-field__name{
+ overflow:hidden;
+ text-overflow:ellipsis;
+}
+
+.edit-site-list__rename-modal{
+ z-index:1000001;
+}
+@media (min-width:782px){
+ .edit-site-list__rename-modal .components-base-control{
+ width:320px;
+ }
+}
+
.edit-site-table-wrapper{
padding:32px;
width:100%;
@@ -2576,230 +1820,19 @@ body.is-fullscreen-mode .edit-site-list-header{
border-bottom:1px solid #f0f0f0;
}
-.edit-site-sidebar-edit-mode{
- width:280px;
-}
-.edit-site-sidebar-edit-mode>.components-panel{
- border-left:0;
- border-right:0;
- margin-bottom:-1px;
- margin-top:-1px;
-}
-.edit-site-sidebar-edit-mode>.components-panel>.components-panel__header{
- background:#f0f0f0;
-}
-.edit-site-sidebar-edit-mode .block-editor-block-inspector__card{
- margin:0;
-}
-
-.edit-site-global-styles-sidebar{
- display:flex;
- flex-direction:column;
- min-height:100%;
-}
-.edit-site-global-styles-sidebar__navigator-provider,.edit-site-global-styles-sidebar__panel{
- display:flex;
- flex:1;
- flex-direction:column;
-}
-.edit-site-global-styles-sidebar__navigator-screen{
- flex:1;
-}
-
-.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon{
- margin-right:0;
-}
-
-.edit-site-global-styles-sidebar__reset-button.components-button{
- margin-right:auto;
-}
-
-.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{
- font-size:15.6px;
- font-weight:500;
-}
-
-.edit-site-global-styles-sidebar .components-navigation__item>button span{
- font-weight:500;
-}
-
-.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{
- border:0;
-}
-
-.edit-site-global-styles-sidebar .single-column{
- grid-column:span 1;
-}
-
-.edit-site-global-styles-sidebar .components-tools-panel .span-columns{
- grid-column:1 / -1;
-}
-
-.edit-site-global-styles-sidebar__blocks-group{
- border-top:1px solid #e0e0e0;
- padding-top:24px;
-}
-
-.edit-site-global-styles-sidebar__blocks-group-help{
- padding:0 16px;
-}
-
-.edit-site-global-styles-color-palette-panel,.edit-site-global-styles-gradient-palette-panel{
- padding:16px;
-}
-
-.edit-site-global-styles-sidebar hr{
- margin:0;
-}
-
-.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{
- display:none;
-}
-.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{
- content:attr(aria-label);
- font-size:12px;
-}
-
-.edit-site-sidebar__panel{
- margin-top:-1px;
-}
-
-.edit-site-page-panels__swap-template__confirm-modal__actions{
- margin-top:24px;
-}
-
-.edit-site-change-status__content .components-popover__content{
- min-width:320px;
- padding:16px;
-}
-.edit-site-change-status__content .edit-site-change-status__options .components-base-control__field>.components-v-stack{
- gap:8px;
-}
-.edit-site-change-status__content .edit-site-change-status__options label .components-text{
- display:block;
-}
-.edit-site-change-status__content .edit-site-change-status__password-legend{
- margin-bottom:8px;
- padding:0;
-}
-
-.edit-site-summary-field__trigger{
- display:block;
- max-width:100%;
- overflow:hidden;
- text-align:right;
- text-overflow:ellipsis;
- white-space:nowrap;
-}
-
-.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs{
- padding-left:16px;
- padding-right:0;
-}
-.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{
- height:24px;
- min-width:24px;
- padding:0;
-}
-@media (min-width:782px){
- .components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{
- display:flex;
- }
-}
-
-.edit-site-sidebar-card{
- align-items:flex-start;
- display:flex;
-}
-.edit-site-sidebar-card__content{
- flex-grow:1;
- margin-bottom:4px;
-}
-.edit-site-sidebar-card__title{
- font-weight:500;
- line-height:24px;
-}
-.edit-site-sidebar-card__title.edit-site-sidebar-card__title{
- font-size:13px;
- line-height:1.4;
- margin:0;
- padding:3px 0;
-}
-.edit-site-sidebar-card__description{
- font-size:13px;
-}
-.edit-site-sidebar-card__icon{
- flex:0 0 24px;
- height:24px;
- margin-left:12px;
- width:24px;
-}
-.edit-site-sidebar-card__header{
- display:flex;
- justify-content:space-between;
- margin:0 0 4px;
-}
-
-.edit-site-template-card__template-areas{
- margin-top:16px;
-}
-.edit-site-template-card__template-areas-list,.edit-site-template-card__template-areas-list>li{
- margin:0;
-}
-.edit-site-template-card__template-areas-item{
- width:100%;
-}
-.edit-site-template-card__template-areas-item.components-button.has-icon{
- padding:0;
-}
-.edit-site-template-card__actions{
- line-height:0;
-}
-.edit-site-template-card__actions>.components-button.is-small.has-icon{
- min-width:auto;
- padding:0;
-}
-
-h3.edit-site-template-card__template-areas-title{
- font-weight:500;
- margin:0 0 8px;
-}
-
-.edit-site-template-panel__replace-template-modal{
- z-index:1000001;
-}
-
-.edit-site-template-panel__replace-template-modal__content{
- column-count:2;
- column-gap:24px;
-}
-@media (min-width:782px){
- .edit-site-template-panel__replace-template-modal__content{
- column-count:3;
- }
-}
-@media (min-width:1280px){
- .edit-site-template-panel__replace-template-modal__content{
- column-count:4;
- }
-}
-
-.edit-site-editor__interface-skeleton{
+.edit-site-editor__editor-interface{
opacity:1;
transition:opacity .1s ease-out;
}
@media (prefers-reduced-motion:reduce){
- .edit-site-editor__interface-skeleton{
+ .edit-site-editor__editor-interface{
transition-delay:0s;
transition-duration:0s;
}
}
-.edit-site-editor__interface-skeleton.is-loading{
+.edit-site-editor__editor-interface.is-loading{
opacity:0;
}
-.edit-site-editor__interface-skeleton .interface-interface-skeleton__header{
- border:0;
-}
.edit-site-editor__toggle-save-panel{
background-color:#fff;
@@ -2811,102 +1844,10 @@ h3.edit-site-template-card__template-areas-title{
width:280px;
}
-.edit-site .components-editor-notices__snackbar{
- bottom:40px;
- left:0;
- padding-left:16px;
- padding-right:16px;
- position:absolute;
- right:0;
-}
-@media (min-width:783px){
- .edit-site .components-editor-notices__snackbar{
- right:160px;
- }
-}
-@media (min-width:783px){
- .auto-fold .edit-site .components-editor-notices__snackbar{
- right:36px;
- }
-}
-@media (min-width:961px){
- .auto-fold .edit-site .components-editor-notices__snackbar{
- right:160px;
- }
-}
-.folded .edit-site .components-editor-notices__snackbar{
- right:0;
-}
-@media (min-width:783px){
- .folded .edit-site .components-editor-notices__snackbar{
- right:36px;
- }
-}
-
-body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
- right:0 !important;
-}
-
-.edit-site-create-template-part-modal{
- z-index:1000001;
-}
-@media (min-width:600px){
- .edit-site-create-template-part-modal .components-modal__frame{
- max-width:500px;
- }
-}
-
-.edit-site-create-template-part-modal__area-radio-group{
- border:1px solid #757575;
- border-radius:2px;
- width:100%;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio{
- display:block;
- height:100%;
- padding:12px;
- text-align:right;
- width:100%;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover{
- background-color:inherit;
- border-bottom:1px solid #757575;
- border-radius:0;
- margin:0;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:focus){
- box-shadow:none;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:focus{
- border-bottom:1px solid #fff;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:last-of-type{
- border-bottom:none;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true]{
- color:#1e1e1e;
- cursor:auto;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover) .edit-site-create-template-part-modal__option-label div,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true] .edit-site-create-template-part-modal__option-label div{
- color:#949494;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label{
- padding-top:4px;
- white-space:normal;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label div{
- font-size:12px;
- padding-top:4px;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__checkbox{
- margin-right:auto;
- min-width:24px;
-}
-
.edit-site-welcome-guide{
width:312px;
}
-.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image .edit-site-welcome-guide.guide-styles .edit-site-welcome-guide__image{
+.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image,.edit-site-welcome-guide.guide-styles .edit-site-welcome-guide__image{
background:#00a0d2;
}
.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video{
@@ -2946,135 +1887,14 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
vertical-align:text-top;
}
-.edit-site-start-template-options__modal .edit-site-start-template-options__modal__actions{
- background-color:#fff;
- border-top:1px solid #ddd;
- bottom:0;
- height:92px;
- margin-left:-32px;
- margin-right:-32px;
- padding-left:32px;
- padding-right:32px;
- position:absolute;
- width:100%;
- z-index:1;
-}
-.edit-site-start-template-options__modal .block-editor-block-patterns-list{
- padding-bottom:92px;
-}
-
-.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{
- column-count:2;
- column-gap:24px;
-}
-@media (min-width:782px){
- .edit-site-start-template-options__modal-content .block-editor-block-patterns-list{
- column-count:3;
- }
-}
-@media (min-width:1280px){
- .edit-site-start-template-options__modal-content .block-editor-block-patterns-list{
- column-count:4;
- }
-}
-.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{
- break-inside:avoid-column;
-}
-.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{
- display:none;
-}
-.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__item:not(:focus):not(:hover) .block-editor-block-preview__container{
- box-shadow:0 0 0 1px #ddd;
-}
-
-.edit-site-keyboard-shortcut-help-modal__section{
- margin:0 0 2rem;
-}
-.edit-site-keyboard-shortcut-help-modal__section-title{
- font-size:.9rem;
- font-weight:600;
-}
-.edit-site-keyboard-shortcut-help-modal__shortcut{
- align-items:baseline;
- border-top:1px solid #ddd;
- display:flex;
- margin-bottom:0;
- padding:.6rem 0;
-}
-.edit-site-keyboard-shortcut-help-modal__shortcut:last-child{
- border-bottom:1px solid #ddd;
-}
-.edit-site-keyboard-shortcut-help-modal__shortcut:empty{
- display:none;
-}
-.edit-site-keyboard-shortcut-help-modal__shortcut-term{
- font-weight:600;
- margin:0 1rem 0 0;
- text-align:left;
-}
-.edit-site-keyboard-shortcut-help-modal__shortcut-description{
- flex:1;
- flex-basis:auto;
- margin:0;
-}
-.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{
- background:none;
- display:block;
- margin:0;
- padding:0;
-}
-.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{
- margin-top:10px;
-}
-.edit-site-keyboard-shortcut-help-modal__shortcut-key{
- border-radius:8%;
- margin:0 .2rem;
- padding:.25rem .5rem;
-}
-.edit-site-keyboard-shortcut-help-modal__shortcut-key:last-child{
- margin:0 .2rem 0 0;
-}
-
.edit-site-layout{
- background:#1e1e1e;
color:#ccc;
display:flex;
flex-direction:column;
height:100%;
}
-
-.edit-site-layout__hub{
- height:60px;
- position:fixed;
- right:0;
- top:0;
- width:calc(100vw - 32px);
- z-index:3;
-}
-@media (min-width:782px){
- .edit-site-layout__hub{
- width:336px;
- }
-}
-.edit-site-layout.is-full-canvas .edit-site-layout__hub{
- border-radius:0;
- box-shadow:none;
- padding-left:0;
- width:60px;
-}
-
-.edit-site-layout__header-container{
- z-index:4;
-}
-
-.edit-site-layout__header{
- display:flex;
- height:60px;
- z-index:2;
-}
-.edit-site-layout:not(.is-full-canvas) .edit-site-layout__header{
- position:fixed;
- width:100vw;
+.edit-site-layout,.edit-site-layout:not(.is-full-canvas) .editor-visual-editor{
+ background:#1e1e1e;
}
.edit-site-layout__content{
@@ -3120,9 +1940,13 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
width:100%;
z-index:2;
}
+.edit-site-layout__mobile .edit-site-sidebar__screen-wrapper{
+ padding:0;
+}
.edit-site-layout__canvas-container{
flex-grow:1;
+ overflow:visible;
position:relative;
z-index:2;
}
@@ -3149,7 +1973,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
.edit-site-layout__canvas.is-right-aligned{
justify-content:flex-end;
}
-.edit-site-layout__canvas>div{
+.edit-site-layout__canvas .edit-site-resizable-frame__inner{
color:#1e1e1e;
}
@media (min-width:782px){
@@ -3158,7 +1982,12 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
top:16px;
width:calc(100% - 16px);
}
- .edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .edit-site-visual-editor__editor-canvas,.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .interface-interface-skeleton__content,.edit-site-layout__canvas>div{
+ .edit-site-layout__canvas .edit-site-resizable-frame__inner-content{
+ box-shadow:0 20px 25px -5px #000c,0 8px 10px -6px #000c;
+ overflow:hidden;
+ transition:border-radius .4s;
+ }
+ .edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content{
border-radius:8px;
}
}
@@ -3167,9 +1996,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
top:0;
width:100%;
}
-.edit-site-layout.is-full-canvas .edit-site-layout__canvas>div{
- border-radius:0;
-}
.edit-site-layout__canvas .interface-interface-skeleton,.edit-site-layout__mobile .interface-interface-skeleton,.edit-site-template-pages-preview .interface-interface-skeleton{
min-height:100% !important;
@@ -3179,10 +2005,17 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
.edit-site-template-pages-preview{
height:100%;
}
+html.canvas-mode-edit-transition::view-transition-group(toggle){
+ animation-delay:255ms;
+}
+.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region .edit-site-layout__view-mode-toggle{
+ display:none;
+}
.edit-site-layout__view-mode-toggle.components-button{
+ view-transition-name:toggle;
align-items:center;
- border-bottom:1px solid #0000;
+ background:#1e1e1e;
border-radius:0;
color:#fff;
display:flex;
@@ -3193,15 +2026,13 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
position:relative;
width:60px;
}
-.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button{
- border-bottom-color:#e0e0e0;
- transition:border-bottom-color .15s ease-out .4s;
-}
.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{
color:#fff;
}
-.edit-site-layout__view-mode-toggle.components-button:focus{
- box-shadow:none;
+.edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout__view-mode-toggle.components-button:focus-visible{
+ box-shadow:0 0 0 3px #1e1e1e, 0 0 0 6px var(--wp-admin-theme-color);
+ outline:4px solid #0000;
+ outline-offset:4px;
}
.edit-site-layout__view-mode-toggle.components-button:before{
border-radius:4px;
@@ -3221,12 +2052,8 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
transition-duration:0s;
}
}
-.edit-site-layout__view-mode-toggle.components-button:focus:before{
- box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #ffffff1a, inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
-}
.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{
align-items:center;
- border-radius:2px;
display:flex;
height:64px;
justify-content:center;
@@ -3257,36 +2084,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
}
}
-.edit-site-layout.is-distraction-free .edit-site-layout__header-container{
- height:60px;
- left:0;
- position:absolute;
- right:0;
- top:0;
- width:100%;
- z-index:4;
-}
-.edit-site-layout.is-distraction-free .edit-site-layout__header-container:focus-within{
- opacity:1 !important;
-}
-.edit-site-layout.is-distraction-free .edit-site-layout__header-container:focus-within div{
- transform:translateX(0) translateY(0) translateZ(0) !important;
-}
-.edit-site-layout.is-distraction-free .edit-site-layout__header-container:focus-within .edit-site-layout__header{
- opacity:1 !important;
-}
-.edit-site-layout.is-distraction-free .edit-site-layout__header,.edit-site-layout.is-distraction-free .edit-site-site-hub{
- position:absolute;
- top:0;
- z-index:2;
-}
-.edit-site-layout.is-distraction-free .edit-site-site-hub{
- z-index:3;
-}
-.edit-site-layout.is-distraction-free .edit-site-layout__header{
- width:100%;
-}
-
.edit-site-layout__area{
flex-grow:1;
margin:0;
@@ -3299,12 +2096,34 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
}
}
+.edit-site .components-editor-notices__snackbar{
+ bottom:16px;
+ left:0;
+ padding-left:16px;
+ padding-right:16px;
+ position:fixed;
+}
+
+.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus-visible{
+ box-shadow:none;
+ outline:none;
+ outline-offset:0;
+}
+.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus .edit-site-site-icon svg,.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus-visible .edit-site-site-icon svg{
+ border-radius:2px;
+ box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color, #3858e9);
+ height:40px;
+ outline:3px solid #0000;
+ padding:2px;
+ width:40px;
+}
+
.edit-site-save-hub{
border-top:1px solid #2f2f2f;
color:#949494;
flex-shrink:0;
margin:0;
- padding:20px 16px;
+ padding:16px;
}
.edit-site-save-hub__button{
@@ -3329,20 +2148,47 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
}
.edit-site-sidebar__content{
+ contain:content;
flex-grow:1;
+ overflow-x:hidden;
overflow-y:auto;
}
+@keyframes slide-from-right{
+ 0%{
+ opacity:0;
+ transform:translateX(-50px);
+ }
+ to{
+ opacity:1;
+ transform:none;
+ }
+}
+@keyframes slide-from-left{
+ 0%{
+ opacity:0;
+ transform:translateX(50px);
+ }
+ to{
+ opacity:1;
+ transform:none;
+ }
+}
.edit-site-sidebar__screen-wrapper{
+ animation-duration:.14s;
+ animation-timing-function:ease-in-out;
display:flex;
flex-direction:column;
height:100%;
+ max-height:100%;
+ overflow-x:auto;
padding:0 12px;
scrollbar-color:#0000 #0000;
scrollbar-gutter:stable both-edges;
scrollbar-gutter:stable;
scrollbar-width:thin;
will-change:transform;
+ will-change:transform, opacity;
}
.edit-site-sidebar__screen-wrapper::-webkit-scrollbar{
height:12px;
@@ -3368,12 +2214,16 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
scrollbar-color:#757575 #0000;
}
}
-
-.edit-site-sidebar__footer{
- border-top:1px solid #2f2f2f;
- flex-shrink:0;
- margin:0 16px;
- padding:16px 0;
+@media (prefers-reduced-motion:reduce){
+ .edit-site-sidebar__screen-wrapper{
+ animation-duration:0s;
+ }
+}
+.edit-site-sidebar__screen-wrapper.slide-from-left{
+ animation-name:slide-from-left;
+}
+.edit-site-sidebar__screen-wrapper.slide-from-right{
+ animation-name:slide-from-right;
}
.edit-site-sidebar-button{
@@ -3385,7 +2235,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
outline:none;
}
.edit-site-sidebar-button:focus-visible:not(:disabled){
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
+ box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:3px solid #0000;
}
.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover,.edit-site-sidebar-button:not([aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{
@@ -3475,7 +2325,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
background:#1e1e1e;
margin-bottom:8px;
padding-bottom:8px;
- padding-top:108px;
+ padding-top:48px;
position:sticky;
top:0;
z-index:1;
@@ -3484,7 +2334,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
.edit-site-sidebar-navigation-screen__title{
flex-grow:1;
overflow-wrap:break-word;
- padding:6px 0 0;
+ padding:2px 0 0;
}
.edit-site-sidebar-navigation-screen__actions{
@@ -3493,21 +2343,29 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
}
@media (min-width:782px){
- .edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container{
+ .edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variation-container{
max-width:292px;
}
}
-.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item-preview{
- box-shadow:0 0 0 1px #1e1e1e;
+
+.edit-site-global-styles-variation-title{
+ color:#ddd;
+ font-size:11px;
+ font-weight:500;
+ text-transform:uppercase;
+}
+
+.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{
+ outline-color:#ffffff0d;
}
-.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{
- box-shadow:0 0 0 1px #f0f0f0;
+.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item:not(.is-active):hover .edit-site-global-styles-variations_item-preview{
+ outline-color:#ffffff26;
}
-.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{
- box-shadow:0 0 0 1px var(--wp-admin-theme-color);
+.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{
+ outline-color:#fff;
}
-.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{
+ outline-color:var(--wp-admin-theme-color);
}
.edit-site-sidebar-navigation-screen__footer{
@@ -3519,21 +2377,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
padding:16px 0;
position:sticky;
}
-
-.edit-site-sidebar__notice{
- background:#2f2f2f;
- color:#ddd;
- margin:24px 0;
-}
-.edit-site-sidebar__notice.is-dismissible{
- padding-left:8px;
-}
-.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]){
- color:#ccc;
-}
-.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{
- color:#fff;
-}
.edit-site-sidebar-navigation-screen__input-control{
width:100%;
}
@@ -3570,74 +2413,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
color:#f0f0f0;
}
-.edit-site-sidebar-navigation-screen-page__featured-image-wrapper{
- background-color:#2f2f2f;
- border-radius:4px;
- margin-bottom:16px;
- min-height:128px;
-}
-
-.edit-site-sidebar-navigation-screen-page__featured-image{
- align-items:center;
- background-position:50% 50%;
- background-size:cover;
- border-radius:2px;
- color:#949494;
- display:flex;
- height:128px;
- justify-content:center;
- overflow:hidden;
- width:100%;
-}
-.edit-site-sidebar-navigation-screen-page__featured-image img{
- height:100%;
- object-fit:cover;
- object-position:50% 50%;
- width:100%;
-}
-
-.edit-site-sidebar-navigation-screen-page__featured-image-description{
- font-size:12px;
-}
-
-.edit-site-sidebar-navigation-screen-page__excerpt{
- font-size:12px;
- margin-bottom:24px;
-}
-
-.edit-site-sidebar-navigation-screen-page__modified{
- color:#949494;
- margin:0 16px 16px 0;
-}
-.edit-site-sidebar-navigation-screen-page__modified .components-text{
- color:#949494;
-}
-
-.edit-site-sidebar-navigation-screen-page__status{
- display:inline-flex;
-}
-.edit-site-sidebar-navigation-screen-page__status time{
- display:contents;
-}
-.edit-site-sidebar-navigation-screen-page__status svg{
- height:16px;
- margin-left:8px;
- width:16px;
- fill:#f0b849;
-}
-.edit-site-sidebar-navigation-screen-page__status.has-future-status svg,.edit-site-sidebar-navigation-screen-page__status.has-publish-status svg{
- fill:#4ab866;
-}
-
-.edit-site-sidebar-navigation-screen-templates__templates-group-title.components-item{
- border-top:1px solid #2f2f2f;
- color:#e0e0e0;
- font-size:11px;
- font-weight:500;
- padding:24px 16px 16px 6px;
- text-transform:uppercase;
-}
-
.edit-site-sidebar-navigation-details-screen-panel{
margin:24px 0;
}
@@ -3663,30 +2438,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
color:#e0e0e0;
}
-.edit-site-sidebar-navigation-screen-pattern__added-by-description{
- align-items:center;
- display:flex;
- justify-content:space-between;
- margin-top:24px;
-}
-
-.edit-site-sidebar-navigation-screen-pattern__added-by-description-author{
- align-items:center;
- display:inline-flex;
-}
-.edit-site-sidebar-navigation-screen-pattern__added-by-description-author img{
- border-radius:12px;
-}
-.edit-site-sidebar-navigation-screen-pattern__added-by-description-author svg{
- fill:#949494;
-}
-
-.edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon{
- height:24px;
- margin-left:8px;
- width:24px;
-}
-
.edit-site-sidebar-navigation-screen-patterns__group{
margin-bottom:24px;
}
@@ -3708,55 +2459,9 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
text-transform:uppercase;
}
-.edit-site-sidebar-navigation-screen-template__added-by-description{
- align-items:center;
- display:flex;
- justify-content:space-between;
- margin-top:24px;
-}
-
-.edit-site-sidebar-navigation-screen-template__added-by-description-author{
- align-items:center;
- display:inline-flex;
-}
-.edit-site-sidebar-navigation-screen-template__added-by-description-author img{
- border-radius:12px;
- height:20px;
- width:20px;
-}
-.edit-site-sidebar-navigation-screen-template__added-by-description-author svg{
- fill:#949494;
-}
-
-.edit-site-sidebar-navigation-screen-template__added-by-description-author-icon{
- align-items:center;
- display:inline-flex;
- height:24px;
- justify-content:center;
- margin-left:4px;
- width:24px;
-}
-
-.edit-site-sidebar-navigation-screen-template__template-area-button{
- align-items:center;
- border-radius:4px;
- color:#fff;
- display:flex;
- flex-wrap:nowrap;
- width:100%;
-}
-.edit-site-sidebar-navigation-screen-template__template-area-button:focus,.edit-site-sidebar-navigation-screen-template__template-area-button:hover{
- background:#2f2f2f;
- color:#fff;
-}
-
-.edit-site-sidebar-navigation-screen-template__template-area-label-text{
- flex-grow:1;
- margin:0 4px 0 16px;
-}
-
-.edit-site-sidebar-navigation-screen-template__template-icon{
- display:flex;
+.edit-site-sidebar-navigation-screen-patterns__divider{
+ border-top:1px solid #2f2f2f;
+ margin:16px 0;
}
.edit-site-sidebar-navigation-screen-dataviews__group-header{
@@ -3789,51 +2494,63 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
display:flex;
gap:8px;
justify-content:space-between;
-}
-.edit-site-site-hub .edit-site-site-hub__container{
- gap:0;
-}
-.edit-site-site-hub .edit-site-site-hub__site-title,.edit-site-site-hub .edit-site-site-hub__site-view-link,.edit-site-site-hub .edit-site-site-hub_toggle-command-center{
- transition:opacity .1s ease;
-}
-.edit-site-site-hub .edit-site-site-hub__site-title.is-transparent,.edit-site-site-hub .edit-site-site-hub__site-view-link.is-transparent,.edit-site-site-hub .edit-site-site-hub_toggle-command-center.is-transparent{
- opacity:0 !important;
-}
-.edit-site-site-hub .edit-site-site-hub__site-view-link{
- flex-grow:0;
- margin-left:var(--wp-admin-border-width-focus);
-}
-.edit-site-site-hub .edit-site-site-hub__site-view-link svg{
- fill:#e0e0e0;
+ margin-left:12px;
}
-.edit-site-site-hub__post-type{
- opacity:.6;
+.edit-site-site-hub__actions{
+ flex-shrink:0;
}
.edit-site-site-hub__view-mode-toggle-container{
- background:#1e1e1e;
flex-shrink:0;
height:60px;
width:60px;
}
-.edit-site-site-hub__view-mode-toggle-container.has-transparent-background{
+.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon{
background:#0000;
}
-.edit-site-site-hub__text-content{
- overflow:hidden;
-}
-
-.edit-site-site-hub__title{
+.edit-site-site-hub__title .components-button{
+ color:#e0e0e0;
+ display:block;
+ flex-grow:1;
+ font-size:15px;
+ font-weight:500;
overflow:hidden;
+ padding-left:16px;
+ position:relative;
+ text-decoration:none;
text-overflow:ellipsis;
white-space:nowrap;
}
-
-.edit-site-site-hub__site-title{
+.edit-site-site-hub__title .components-button:active,.edit-site-site-hub__title .components-button:focus,.edit-site-site-hub__title .components-button:hover{
color:#e0e0e0;
- flex-grow:1;
+}
+.edit-site-site-hub__title .components-button:focus{
+ box-shadow:none;
+ outline:none;
+}
+.edit-site-site-hub__title .components-button:focus-visible{
+ box-shadow:0 0 0 var(--wp-admin-border-width-focus) #1e1e1e, 0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);
+ outline:2px solid #0000;
+ outline-offset:2px;
+}
+.edit-site-site-hub__title .components-button:after{
+ content:"↗";
+ font-weight:400;
+ left:0;
+ opacity:0;
+ position:absolute;
+ transition:opacity .1s linear;
+}
+@media (prefers-reduced-motion:reduce){
+ .edit-site-site-hub__title .components-button:after{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
+}
+.edit-site-site-hub__title .components-button:active:after,.edit-site-site-hub__title .components-button:focus:after,.edit-site-site-hub__title .components-button:hover:after{
+ opacity:1;
}
.edit-site-site-hub_toggle-command-center{
@@ -3847,40 +2564,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
margin:0 0 32px;
}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf{
- border-radius:2px;
- max-width:calc(100% - 4px);
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf[aria-current]{
- background:#2f2f2f;
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block__menu{
- margin-right:-8px;
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected>td{
- background:#0000;
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents{
- color:inherit;
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:not(:hover) .block-editor-list-view-block__menu{
- opacity:0;
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover{
- color:#fff;
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus .block-editor-list-view-block__menu-cell,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover .block-editor-list-view-block__menu-cell{
- opacity:1;
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{
- box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){
- background:#0000;
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch):hover{
- background:#2f2f2f;
-}
.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block__contents-cell{
width:100%;
}
@@ -3912,13 +2595,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
.edit-site-site-icon__icon{
fill:currentColor;
- transition:padding .3s ease-out;
-}
-@media (prefers-reduced-motion:reduce){
- .edit-site-site-icon__icon{
- transition-delay:0s;
- transition-duration:0s;
- }
}
.edit-site-layout.is-full-canvas .edit-site-site-icon__icon{
padding:6px;
@@ -3926,7 +2602,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
.edit-site-site-icon__image{
background:#333;
- border-radius:4px;
height:100%;
object-fit:cover;
width:100%;
@@ -3962,6 +2637,19 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
}
.edit-site-editor-canvas-container{
+ background-color:#ddd;
+ height:100%;
+}
+.edit-site-editor-canvas-container iframe{
+ display:block;
+ height:100%;
+ width:100%;
+}
+.edit-site-layout.is-full-canvas .edit-site-editor-canvas-container{
+ padding:24px 24px 0;
+}
+
+.edit-site-editor-canvas-container__section{
background:#fff;
border-radius:2px;
bottom:0;
@@ -4068,6 +2756,17 @@ body:has(.edit-site-resizable-frame__inner.is-resizing){
.font-library-modal__tabpanel-layout{
margin-top:32px;
}
+.font-library-modal__tabpanel-layout .font-library-modal__loading{
+ align-items:center;
+ display:flex;
+ height:100%;
+ justify-content:center;
+ padding-top:120px;
+ position:absolute;
+ right:0;
+ top:0;
+ width:100%;
+}
.font-library-modal__tabpanel-layout .font-library-modal__tabpanel-layout__footer{
background-color:#fff;
border-top:1px solid #ddd;
@@ -4083,6 +2782,21 @@ body:has(.edit-site-resizable-frame__inner.is-resizing){
margin-bottom:0;
}
+.font-library-modal__fonts-title{
+ font-size:11px;
+ font-weight:600;
+ text-transform:uppercase;
+}
+
+.font-library-modal__fonts-list,.font-library-modal__fonts-title{
+ margin-bottom:0;
+ margin-top:0;
+}
+
+.font-library-modal__fonts-list-item{
+ margin-bottom:0;
+}
+
.font-library-modal__font-card{
border:1px solid #e0e0e0;
height:auto;
@@ -4099,20 +2813,18 @@ body:has(.edit-site-resizable-frame__inner.is-resizing){
.font-library-modal__font-card .font-library-modal__font-card__count{
color:#757575;
}
-
-.font-library-modal__font-variant_demo-image{
+.font-library-modal__font-card .font-library-modal__font-variant_demo-image{
display:block;
height:24px;
width:auto;
}
-
-.font-library-modal__font-variant_demo-text{
+.font-library-modal__font-card .font-library-modal__font-variant_demo-text{
flex-shrink:0;
transition:opacity .3s ease-in-out;
white-space:nowrap;
}
@media (prefers-reduced-motion:reduce){
- .font-library-modal__font-variant_demo-text{
+ .font-library-modal__font-card .font-library-modal__font-variant_demo-text{
transition-delay:0s;
transition-duration:0s;
}
@@ -4159,13 +2871,20 @@ button.font-library-modal__upload-area{
justify-content:center;
margin-top:64px;
}
-.font-library__google-fonts-confirm h3{
- font-size:1.4rem;
+.font-library__google-fonts-confirm p{
+ line-height:1.4;
+}
+.font-library__google-fonts-confirm h2{
+ font-size:1.2rem;
+ font-weight:400;
}
.font-library__google-fonts-confirm .components-card{
- max-width:400px;
- min-width:350px;
- width:50%;
+ padding:16px;
+ width:400px;
+}
+.font-library__google-fonts-confirm .components-button{
+ justify-content:center;
+ width:100%;
}
.edit-site-pagination .components-button.is-tertiary{
@@ -4174,6 +2893,51 @@ button.font-library-modal__upload-area{
width:32px;
}
+.edit-site-global-styles-variations_item{
+ border-radius:2px;
+ box-sizing:border-box;
+ cursor:pointer;
+}
+.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{
+ border-radius:2px;
+ outline:1px solid #0000001a;
+ outline-offset:-1px;
+ overflow:hidden;
+ position:relative;
+ transition:outline .1s linear;
+}
+@media (prefers-reduced-motion:reduce){
+ .edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
+}
+.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview.is-pill{
+ height:32px;
+}
+.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview.is-pill .block-editor-iframe__scale-container{
+ overflow:hidden;
+}
+.edit-site-global-styles-variations_item:not(.is-active):hover .edit-site-global-styles-variations_item-preview{
+ outline-color:#0000004d;
+}
+.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview,.edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{
+ outline-color:#1e1e1e;
+ outline-offset:1px;
+ outline-width:var(--wp-admin-border-width-focus);
+}
+.edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{
+ outline-color:var(--wp-admin-theme-color);
+}
+::view-transition-image-pair(root){
+ isolation:auto;
+}
+
+::view-transition-new(root),::view-transition-old(root){
+ animation:none;
+ display:block;
+ mix-blend-mode:normal;
+}
body.js #wpadminbar{
display:none;
}
@@ -4210,16 +2974,13 @@ body.js.site-editor-php{
background:#1e1e1e;
}
-.components-modal__frame,.edit-site{
+.edit-site{
box-sizing:border-box;
+ height:100vh;
}
-.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-site *,.edit-site :after,.edit-site :before{
+.edit-site *,.edit-site :after,.edit-site :before{
box-sizing:inherit;
}
-
-.edit-site{
- height:100vh;
-}
@media (min-width:600px){
.edit-site{
bottom:0;
@@ -4237,12 +2998,6 @@ body.js.site-editor-php{
.edit-site .interface-interface-skeleton{
top:0;
}
-.edit-site .interface-complementary-area__pin-unpin-item.components-button{
- display:none;
-}
-.edit-site .interface-interface-skeleton__content{
- background-color:#1e1e1e;
-}
@keyframes edit-post__fade-in-animation{
0%{
opacity:0;
diff --git a/wp-includes/css/dist/edit-site/style-rtl.min.css b/wp-includes/css/dist/edit-site/style-rtl.min.css
index 9c20dbb..445e106 100644
--- a/wp-includes/css/dist/edit-site/style-rtl.min.css
+++ b/wp-includes/css/dist/edit-site/style-rtl.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-left:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-right:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-right:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:300px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:8px}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:global-styles"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{display:flex}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-pinned-items .components-button{display:flex}}.dataviews-wrapper{box-sizing:border-box;height:100%;overflow:auto;scroll-padding-bottom:64px;width:100%}.dataviews-filters__view-actions{flex-shrink:0;margin-bottom:12px;padding:12px 32px 0;position:sticky;right:0}.dataviews-filters__view-actions .components-search-control .components-base-control__field{max-width:240px}.dataviews-filters__container{padding-left:32px}.dataviews-filters-button{position:relative}.dataviews-pagination{background-color:#fff;border-top:1px solid #f0f0f0;bottom:0;color:#757575;flex-shrink:0;padding:12px 32px;position:sticky;right:0}.dataviews-pagination__page-selection{color:#1e1e1e;font-size:11px;font-weight:500;text-transform:uppercase}.dataviews-filters-options{margin:32px 0 16px}.dataviews-view-table-wrapper{overflow-x:auto}.dataviews-view-table{border-collapse:collapse;border-color:inherit;color:#757575;position:relative;text-indent:0;width:100%}.dataviews-view-table a{color:#1e1e1e;font-weight:500;text-decoration:none}.dataviews-view-table th{color:var(--wp-components-color-foreground,#1e1e1e);font-size:13px;font-weight:400;text-align:right}.dataviews-view-table td,.dataviews-view-table th{padding:12px;white-space:nowrap}.dataviews-view-table td[data-field-id=actions],.dataviews-view-table th[data-field-id=actions]{text-align:left}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-left:0}.dataviews-view-table td .components-checkbox-control__input-container,.dataviews-view-table th .components-checkbox-control__input-container{margin:4px}.dataviews-view-table tr{border-bottom:1px solid #f0f0f0}.dataviews-view-table tr .dataviews-view-table-header-button{gap:4px}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-right:32px}.dataviews-view-table tr td:first-child .dataviews-view-table-header,.dataviews-view-table tr td:first-child .dataviews-view-table-header-button,.dataviews-view-table tr th:first-child .dataviews-view-table-header,.dataviews-view-table tr th:first-child .dataviews-view-table-header-button{margin-right:-8px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-left:32px}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr:hover{background-color:#f8f8f8}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input{opacity:0}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate,.dataviews-view-table tr:focus-within .components-checkbox-control__input,.dataviews-view-table tr:hover .components-checkbox-control__input{opacity:1}.dataviews-view-table tr.is-selected{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#757575}.dataviews-view-table tr.is-selected:hover{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-table thead{inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead th{background-color:#fff;box-shadow:inset 0 -1px 0 #f0f0f0;font-size:11px;font-weight:500;padding-bottom:8px;padding-right:4px;padding-top:8px;text-transform:uppercase}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:32px}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper>*{flex-grow:1}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:500;padding:4px 8px;text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:#1e1e1e}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-right:4px}.dataviews-view-table .dataviews-view-table__actions-column{width:1%}.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input{opacity:1}.dataviews-view-grid__primary-field,.dataviews-view-list__primary-field,.dataviews-view-table__primary-field{color:#1e1e1e;display:block;font-size:13px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-view-grid__primary-field a,.dataviews-view-list__primary-field a,.dataviews-view-table__primary-field a{color:inherit;display:block;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-view-grid__primary-field a:hover,.dataviews-view-list__primary-field a:hover,.dataviews-view-table__primary-field a:hover{color:#1e1e1e}.dataviews-view-grid__primary-field a:focus,.dataviews-view-list__primary-field a:focus,.dataviews-view-table__primary-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-view-grid__primary-field button.components-button.is-link,.dataviews-view-list__primary-field button.components-button.is-link,.dataviews-view-table__primary-field button.components-button.is-link{color:inherit;display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-view-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:max-content;margin-bottom:24px;padding:0 32px}@media (min-width:1080px){.dataviews-view-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media (min-width:1440px){.dataviews-view-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}.dataviews-view-grid .dataviews-view-grid__card{border:1px solid #e0e0e0;border-radius:4px;height:100%;justify-content:flex-start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:4px 4px 4px 8px}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__primary-field{min-height:40px}.dataviews-view-grid .dataviews-view-grid__card.is-selected{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:#1e1e1e}.dataviews-view-grid .dataviews-view-grid__media{aspect-ratio:1/1;background-color:#f0f0f0;border-bottom:1px solid #e0e0e0;border-radius:3px 3px 0 0;min-height:200px;width:100%}.dataviews-view-grid .dataviews-view-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty){padding:0 12px 12px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:#757575}.dataviews-view-list{margin:0;padding:8px}.dataviews-view-list li{margin:0}.dataviews-view-list li .dataviews-view-list__item-wrapper{border-radius:4px;padding-left:24px;position:relative}.dataviews-view-list li .dataviews-view-list__item-wrapper:after{background:#f0f0f0;content:"";height:1px;left:24px;position:absolute;right:24px;top:100%}.dataviews-view-list li:not(.is-selected):hover,.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__primary-field{color:var(--wp-admin-theme-color)}.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:var(--wp-admin-theme-color);color:#fff}.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .components-button,.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .components-button,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field{color:#fff}.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper:after,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper:after{background:#0000}.dataviews-view-list .dataviews-view-list__item{cursor:pointer;padding:12px 24px 12px 0;width:100%}.dataviews-view-list .dataviews-view-list__item:focus:before{border-radius:4px;bottom:-1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:-1}.dataviews-view-list .dataviews-view-list__item .dataviews-view-list__primary-field{min-height:20px}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:#f0f0f0;border-radius:4px;flex-shrink:0;height:40px;overflow:hidden;position:relative;width:40px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;position:absolute;right:0;top:0;width:100%}.dataviews-view-list .dataviews-view-list__media-placeholder{background-color:#e0e0e0;height:32px;min-width:32px}.dataviews-view-list .dataviews-view-list__fields{color:#757575;display:flex;flex-wrap:wrap;font-size:12px;gap:8px;line-height:16px}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:empty{display:none}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-view-list .dataviews-view-list__details-button{align-self:center;opacity:0}.dataviews-view-list li.is-selected .dataviews-view-list__details-button,.dataviews-view-list li:focus-within .dataviews-view-list__details-button,.dataviews-view-list li:hover .dataviews-view-list__details-button{opacity:1}.dataviews-view-list li.is-selected .dataviews-view-list__details-button:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) currentColor}.dataviews-action-modal{z-index:1000001}.dataviews-loading,.dataviews-no-results{padding:0 32px}.dataviews-view-table-selection-checkbox label{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0;white-space:nowrap}.dataviews-filters__custom-menu-radio-item-prefix{display:block;width:24px}.dataviews-bulk-edit-button.components-button{flex-shrink:0}.dataviews-view-grid__title-actions .dataviews-view-table-selection-checkbox{margin-right:8px}.dataviews-view-grid__card.has-no-pointer-events *{pointer-events:none}.dataviews-filter-summary__popover .components-popover__content{border-radius:4px;padding:0;width:230px}.dataviews-search-widget-filter-combobox-list{border-top:1px solid #e0e0e0;max-height:184px;overflow:auto;padding:4px}.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item{align-items:center;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;gap:8px;margin-block-end:2px;padding:8px 12px}.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:last-child{margin-block-end:0}.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:focus,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:hover,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item[data-active-item]{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff}.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:focus .dataviews-search-widget-filter-combobox-item-check,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:hover .dataviews-search-widget-filter-combobox-item-check,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item[data-active-item] .dataviews-search-widget-filter-combobox-item-check{fill:#fff}.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:focus .dataviews-search-widget-filter-combobox-item-description,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:hover .dataviews-search-widget-filter-combobox-item-description,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item[data-active-item] .dataviews-search-widget-filter-combobox-item-description{color:#fff}.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item .dataviews-search-widget-filter-combobox-item-check{flex-shrink:0;height:24px;width:24px}.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item .dataviews-search-widget-filter-combobox-item-value [data-user-value]{font-weight:600}.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item .dataviews-search-widget-filter-combobox-item-description{color:#757575;display:block;font-size:12px;line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-search-widget-filter-combobox__wrapper{padding:8px;position:relative}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input{background:#f0f0f0;border:none;border-radius:2px;box-shadow:0 0 0 #0000;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:32px;line-height:normal;margin-left:0;margin-right:0;padding:0 8px 0 32px;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-moz-placeholder{color:#1e1e1e9e;opacity:1}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input:-ms-input-placeholder{color:#1e1e1e9e}@media (min-width:600px){.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input{font-size:13px}}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input:focus{background:#fff;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::placeholder{color:#757575}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__icon{align-items:center;display:flex;justify-content:center;left:12px;position:absolute;top:50%;transform:translateY(-50%);width:24px}.dataviews-filter-summary__operators-container{padding:8px 8px 0}.dataviews-filter-summary__operators-container:empty{display:none}.dataviews-filter-summary__operators-container .dataviews-filter-summary__operators-filter-name{color:#757575}.dataviews-filter-summary__chip-container{position:relative;white-space:pre-wrap}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip{align-items:center;background:#f0f0f0;border:1px solid #0000;border-radius:16px;color:#757575;cursor:pointer;display:flex;height:32px;padding:0 12px;position:relative}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-reset{padding-inline-end:28px}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip:focus-visible,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip:hover,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip[aria-expanded=true]{background:#e0e0e0;color:#1e1e1e}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-values{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-admin-theme-color)}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-values:hover,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-values[aria-expanded=true]{background:rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip .dataviews-filter-summary__filter-text-name{font-weight:500}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove{align-items:center;background:#0000;border:0;border-radius:50%;cursor:pointer;display:flex;height:24px;justify-content:center;left:4px;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:24px}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove svg{fill:#757575}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:focus,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:hover{background:#e0e0e0}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:focus svg,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:hover svg{fill:#1e1e1e}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove.has-values svg{fill:var(--wp-admin-theme-color)}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove.has-values:hover{background:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{max-height:224px;overflow-y:auto}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:right;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}.edit-site-template-actions-loading-screen-modal{-webkit-backdrop-filter:none;backdrop-filter:none;background-color:initial}.edit-site-template-actions-loading-screen-modal.is-full-screen{background-color:#fff;box-shadow:0 0 0 #0000;min-height:100%;min-width:100%}.edit-site-template-actions-loading-screen-modal__content{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:50%;transform:translateX(50%)}.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 64px)}@media (min-width:960px){.edit-site-add-new-template__modal{width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;border-radius:2px;display:flex;flex-direction:column;justify-content:center;outline:1px solid #0000;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:#0000;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:#0000;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid #0000}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column-end:4;grid-column-start:1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-block-editor__editor-styles-wrapper .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-site-block-editor__editor-styles-wrapper .components-button.has-icon,.edit-site-block-editor__editor-styles-wrapper .components-button.is-tertiary{padding:6px}.edit-site-editor-canvas__block-list.is-navigation-block{padding:24px}.edit-site-visual-editor{align-items:center;background-color:#ddd;display:block;height:100%;overflow:hidden;position:relative}.edit-site-visual-editor iframe{background:#fff;display:block;height:100%;width:100%}.edit-site-visual-editor .edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-layout.is-full-canvas .edit-site-visual-editor.is-focus-mode{padding:24px}.edit-site-visual-editor.is-focus-mode .edit-site-visual-editor__editor-canvas{border-radius:2px;max-height:100%}.edit-site-visual-editor.is-focus-mode .components-resizable-box__container{overflow:visible}.edit-site-visual-editor .components-resizable-box__container{margin:0 auto;overflow:auto}.edit-site-visual-editor.is-view-mode{box-shadow:0 20px 25px -5px #000c,0 8px 10px -6px #000c}.resizable-editor__drag-handle{-webkit-appearance:none;appearance:none;background:none;border:0;border-radius:2px;bottom:0;cursor:ew-resize;margin:auto 0;outline:none;padding:0;position:absolute;top:0;width:12px}.resizable-editor__drag-handle.is-variation-default{height:100px}.resizable-editor__drag-handle.is-variation-separator{height:100%;left:0;width:24px}.resizable-editor__drag-handle.is-variation-separator:after{background:#0000;border-radius:0;left:0;right:50%;transform:translateX(1px);transition:all .2s ease;transition-delay:.1s;width:2px}@media (prefers-reduced-motion:reduce){.resizable-editor__drag-handle.is-variation-separator:after{animation-delay:0s;animation-duration:1ms;transition-delay:0s;transition-duration:0s}}.resizable-editor__drag-handle:after{background:#949494;border-radius:2px;bottom:24px;content:"";left:0;position:absolute;right:4px;top:24px;width:4px}.resizable-editor__drag-handle.is-left{right:-16px}.resizable-editor__drag-handle.is-right{left:-16px}.resizable-editor__drag-handle:active,.resizable-editor__drag-handle:hover{opacity:1}.resizable-editor__drag-handle:active.is-variation-default:after,.resizable-editor__drag-handle:hover.is-variation-default:after{background:#ccc}.resizable-editor__drag-handle:active.is-variation-separator:after,.resizable-editor__drag-handle:hover.is-variation-separator:after{background:var(--wp-admin-theme-color)}.resizable-editor__drag-handle:focus:after{box-shadow:0 0 0 1px #2f2f2f,0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color)}.resizable-editor__drag-handle.is-variation-separator:focus:after{border-radius:2px;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.edit-site-canvas-loader{align-items:center;animation:edit-site-canvas-loader__fade-in-animation .5s ease .2s;animation-fill-mode:forwards;display:flex;height:100%;justify-content:center;opacity:0;position:absolute;right:0;top:0;width:100%}@media (prefers-reduced-motion:reduce){.edit-site-canvas-loader{animation-delay:0s;animation-duration:1ms}}.edit-site-canvas-loader>div{width:160px}@keyframes edit-site-canvas-loader__fade-in-animation{0%{opacity:0}to{opacity:1}}.edit-site-code-editor{background-color:#fff;min-height:100%;position:relative;width:100%}.edit-site-code-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:12px;width:100%}@media (min-width:960px){.edit-site-code-editor__body{padding:24px}}.edit-site-code-editor__toolbar{background:#fffc;display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-site-code-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-site-code-editor__toolbar{padding:12px 24px}}.edit-site-code-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 0 0 auto}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:16px!important;line-height:2.4;margin:0;min-height:200px;overflow:hidden;padding:16px;resize:none;transition:border .1s ease-out,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{font-size:15px!important;padding:24px}}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-webkit-input-placeholder{color:#1e1e1e9e}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-moz-placeholder{color:#1e1e1e9e;opacity:1}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-input-placeholder{color:#1e1e1e9e}.edit-site-global-styles-preview{align-items:center;cursor:pointer;display:flex;justify-content:center;line-height:1}.edit-site-global-styles-preview__iframe{display:block;max-width:100%}.edit-site-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:16px;min-height:100px;overflow:hidden}.edit-site-typography-panel__full-width-control{grid-column:1/-1;max-width:100%}.edit-site-global-styles-screen-css,.edit-site-global-styles-screen-typography{margin:16px}.edit-site-global-styles-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.edit-site-global-styles-screen-typography__font-variants-count{color:#757575}.edit-site-global-styles-font-families__add-fonts{justify-content:center}.edit-site-global-styles-screen-colors{margin:16px}.edit-site-global-styles-screen-colors .color-block-support-panel{border-top:none;padding-left:0;padding-right:0}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-block-types-search{margin-bottom:8px;padding:0 16px}.edit-site-global-styles-header{margin-bottom:0!important}.edit-site-global-styles-subtitle{font-size:11px!important;font-weight:500!important;margin-bottom:0!important;text-transform:uppercase}.edit-site-global-styles-section-title{color:#2f2f2f;font-weight:600;line-height:1.2;margin:0;padding:16px 16px 0}.edit-site-global-styles-variations_item{border-radius:2px;box-sizing:border-box}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{border-radius:2px;box-shadow:0 0 0 1px #e0e0e0;outline:1px solid #0000;padding:2px}.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{box-shadow:0 0 0 1px #1e1e1e;outline-width:3px}.edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-global-styles-variations_item:focus-visible{outline:3px solid #0000;outline-offset:0}.edit-site-global-styles-icon-with-current-color{fill:currentColor}.edit-site-global-styles__color-indicator-wrapper{flex-shrink:0;height:24px}.edit-site-global-styles__block-preview-panel{border:1px solid #e0e0e0;border-radius:2px;overflow:auto;position:relative;width:100%}.edit-site-global-styles-screen-css{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack{flex:1 1 auto}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input,.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field .components-textarea-control__input{direction:ltr;flex:1 1 auto}.edit-site-global-styles-screen-css-help-link{display:block;margin-top:8px}.edit-site-global-styles-screen-variations{border-top:1px solid #ddd;margin-top:16px}.edit-site-global-styles-screen-variations>*{margin:24px 16px}.edit-site-global-styles-sidebar__navigator-screen{display:flex;flex-direction:column}.edit-site-global-styles-screen-root.edit-site-global-styles-screen-root,.edit-site-global-styles-screen-style-variations.edit-site-global-styles-screen-style-variations{background:unset;color:inherit}.edit-site-global-styles-sidebar__panel .block-editor-block-icon svg{fill:currentColor}.edit-site-global-styles-screen-revisions__revisions-list{flex-grow:1;list-style:none;margin:0 16px 16px}.edit-site-global-styles-screen-revisions__revisions-list li{margin-bottom:0}.edit-site-global-styles-screen-revisions__revision-item{cursor:pointer;display:flex;flex-direction:column;position:relative}.edit-site-global-styles-screen-revisions__revision-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-global-styles-screen-revisions__revision-item:hover .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item:after,.edit-site-global-styles-screen-revisions__revision-item:before{content:"\a";display:block;position:absolute}.edit-site-global-styles-screen-revisions__revision-item:before{background:#ddd;border:4px solid #0000;border-radius:50%;height:8px;right:17px;top:18px;transform:translate(50%,-50%);width:8px;z-index:1}.edit-site-global-styles-screen-revisions__revision-item.is-selected{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:2px;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));outline:3px solid #0000;outline-offset:-2px}.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__revision-button{opacity:1}.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item.is-selected:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))}.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__changes>li,.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__meta{color:#1e1e1e}.edit-site-global-styles-screen-revisions__revision-item:after{border:.5px solid #ddd;height:100%;right:16px;top:0;width:0}.edit-site-global-styles-screen-revisions__revision-item:first-child:after{top:18px}.edit-site-global-styles-screen-revisions__revision-item:last-child:after{height:18px}.edit-site-global-styles-screen-revisions__revision-item .edit-site-global-styles-screen-revisions__revision-button{display:block;height:auto;outline-offset:-2px;padding:12px 40px 4px 12px;position:relative;width:100%;z-index:1}.edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__apply-button.is-primary{align-self:flex-start;margin:4px 40px 12px 12px}.edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__changes,.edit-site-global-styles-screen-revisions__meta{color:#757575;font-size:12px}.edit-site-global-styles-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.edit-site-global-styles-screen-revisions__description .edit-site-global-styles-screen-revisions__date{font-size:12px;font-weight:600;text-transform:uppercase}.edit-site-global-styles-screen-revisions__meta{align-items:flex-start;display:flex;justify-content:start;margin-bottom:4px;text-align:right;width:100%}.edit-site-global-styles-screen-revisions__meta img{border-radius:100%;height:16px;margin-left:8px;width:16px}.edit-site-global-styles-screen-revisions__loading{margin:24px auto!important}.edit-site-global-styles-screen-revisions__changes{line-height:1.4;list-style:disc;margin-right:12px;text-align:right}.edit-site-global-styles-screen-revisions__changes li{margin-bottom:4px}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination{gap:2px;justify-content:space-between}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .edit-site-pagination__total{height:1px;margin:-1px;overflow:hidden;position:absolute;right:-1000px}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-text{font-size:12px;will-change:opacity}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary{color:#1e1e1e;font-size:28px;font-weight:200;line-height:1.2;margin-bottom:4px}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:disabled{color:#949494}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:hover{background:#0000}.edit-site-global-styles-screen-revisions__footer{background:#fff;border-top:1px solid #ddd;bottom:0;height:56px;min-width:100%;padding:12px;position:sticky;z-index:1}.edit-site-header-edit-mode{align-items:center;background-color:#fff;border-bottom:1px solid #e0e0e0;box-sizing:border-box;color:#1e1e1e;display:flex;height:60px;justify-content:space-between;padding-right:60px;width:100%}.edit-site-header-edit-mode .edit-site-header-edit-mode__start{align-items:center;border:none;display:flex;flex-shrink:2;height:100%;overflow:hidden}@media (min-width:782px){.edit-site-header-edit-mode .edit-site-header-edit-mode__start{padding-left:2px}}.edit-site-header-edit-mode .edit-site-header-edit-mode__end{display:flex;justify-content:flex-end}.edit-site-header-edit-mode .edit-site-header-edit-mode__center{align-items:center;display:flex;flex-grow:1;height:100%;justify-content:center;margin:0 16px;min-width:0}.edit-site-header-edit-mode__toolbar{align-items:center;display:flex;gap:8px;padding-right:16px}@media (min-width:782px){.edit-site-header-edit-mode__toolbar{padding-right:20px}}@media (min-width:1280px){.edit-site-header-edit-mode__toolbar{padding-left:8px}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.edit-site-header-edit-mode__actions{align-items:center;display:inline-flex;flex-wrap:nowrap;gap:8px;padding-left:4px}@media (min-width:600px){.edit-site-header-edit-mode__actions{padding-left:8px}}.edit-site-header-edit-mode__preview-options{opacity:1;transition:opacity .3s}.edit-site-header-edit-mode__preview-options.is-zoomed-out{opacity:0}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon{width:auto}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon svg{display:none}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon:after{content:attr(aria-label)}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon[aria-disabled=true]{background-color:initial}.edit-site-header-edit-mode.show-icon-labels .is-tertiary:active{background-color:initial;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-site-header-edit-mode.show-icon-labels .edit-site-save-button__button{padding-left:6px;padding-right:6px}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info:after{content:none}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info,.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__inserter-toggle.edit-site-header-edit-mode__inserter-toggle{height:36px;padding:0 8px}.edit-site-header-edit-mode.show-icon-labels .block-editor-block-mover{border-right:none}.edit-site-header-edit-mode.show-icon-labels .block-editor-block-mover:before{background-color:#ddd;content:"";height:24px;margin-right:8px;margin-top:4px;width:1px}.edit-site-header-edit-mode.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container:before{background:#ddd;right:calc(50% + 1px);width:calc(100% - 24px)}.has-fixed-toolbar .selected-block-tools-wrapper{align-items:center;display:flex;height:60px;overflow:hidden}.has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-contextual-toolbar{border-bottom:0;height:100%}.has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-toolbar{height:100%;padding-top:15px}.has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.has-fixed-toolbar .selected-block-tools-wrapper:after{background-color:#ddd;content:"";height:24px;margin-right:8px;width:1px}.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar,.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar-group{border-left:none}.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar-group:after,.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar:after{background-color:#ddd;content:"";height:24px;margin-right:8px;margin-top:4px;width:1px}.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar .components-toolbar-group.components-toolbar-group:after,.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{display:none}.has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width:600px){.has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{position:relative;top:-10px}}.has-fixed-toolbar .edit-site-header-edit-mode__center.is-collapsed,.has-fixed-toolbar .selected-block-tools-wrapper.is-collapsed{display:none}.edit-site-header-edit-mode__block-tools-toggle{margin-right:2px}.edit-site-list-header{align-items:center;box-sizing:border-box;display:flex;height:60px;justify-content:flex-end;padding-left:16px;position:relative;width:100%}body.is-fullscreen-mode .edit-site-list-header{padding-right:60px;transition:padding-right 20ms linear;transition-delay:80ms}@media (prefers-reduced-motion:reduce){body.is-fullscreen-mode .edit-site-list-header{transition-delay:0s;transition-duration:0s}}.edit-site-list-header .edit-site-list-header__title{font-size:20px;margin:0;padding:0;position:absolute;right:0;text-align:center;width:100%}.edit-site-list-header__right{position:relative}.edit-site .edit-site-list{background:#fff;border-radius:8px;box-shadow:0 20px 25px -5px #000c,0 8px 10px -6px #000c;flex-grow:1}.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:100%}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:0}}.edit-site .edit-site-list .interface-interface-skeleton__content{align-items:center;background:#fff;padding:16px}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__content{padding:72px}}.edit-site-list-table{border:1px solid #ddd;border-radius:2px;border-spacing:0;margin:0 auto;max-width:960px;min-width:100%;overflow:hidden}.edit-site-list-table tr{align-items:center;border-top:1px solid #f0f0f0;box-sizing:border-box;display:flex;margin:0;padding:16px}.edit-site-list-table tr:first-child{border-top:0}@media (min-width:782px){.edit-site-list-table tr{padding:24px 32px}}.edit-site-list-table tr .edit-site-list-table-column:first-child{padding-left:24px;width:calc(60% - 18px)}.edit-site-list-table tr .edit-site-list-table-column:first-child a{display:inline-block;font-weight:500;margin-bottom:4px;text-decoration:none}.edit-site-list-table tr .edit-site-list-table-column:nth-child(2){width:calc(40% - 18px);word-break:break-word}.edit-site-list-table tr .edit-site-list-table-column:nth-child(3){flex-shrink:0;min-width:36px}.edit-site-list-table tr.edit-site-list-table-head{border-bottom:1px solid #ddd;border-top:none;color:#1e1e1e;font-size:16px;font-weight:600;text-align:right}.edit-site-list-table tr.edit-site-list-table-head th{font-weight:inherit}@media (min-width:782px){.edit-site-list.is-navigation-open .components-snackbar-list{margin-right:360px}}.edit-site-list__rename-modal{z-index:1000001}@media (min-width:782px){.edit-site-list__rename-modal .components-base-control{width:320px}}.edit-site-template__actions button:not(:last-child){margin-left:8px}.edit-site-list-added-by__icon{display:flex;flex-shrink:0;height:24px;width:24px}.edit-site-list-added-by__icon svg{fill:currentColor}.edit-site-list-added-by__avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:center;overflow:hidden;width:24px}.edit-site-list-added-by__avatar img{border-radius:100%;height:20px;object-fit:cover;opacity:0;transition:opacity .1s linear;width:20px}@media (prefers-reduced-motion:reduce){.edit-site-list-added-by__avatar img{transition-delay:0s;transition-duration:0s}}.edit-site-list-added-by__avatar.is-loaded img{opacity:1}.edit-site-list-added-by__customized-info{color:#757575;display:block}.edit-site-page{background:#fff;color:#2f2f2f;height:100%}.edit-site-page-header{background:#fff;border-bottom:1px solid #f0f0f0;min-height:72px;padding:16px 32px;position:sticky;top:0;z-index:2}.edit-site-page-header .components-text{color:#2f2f2f}.edit-site-page-header .components-heading{color:#1e1e1e}.edit-site-page-header .edit-site-page-header__sub-title{color:#757575;margin-top:8px}.edit-site-page-content{display:flex;flex-flow:column;height:100%;position:relative;z-index:1}.page-pages-preview-field__button{background-color:unset;border:none;border-radius:3px 3px 0 0;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0;width:100%}.page-pages-preview-field__button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.page-pages-preview-field__button.edit-site-page-pages__media-wrapper{background-color:#f0f0f0;border-radius:4px;display:block;flex-grow:0!important;height:32px;overflow:hidden;position:relative;width:32px}.page-pages-preview-field__button.edit-site-page-pages__media-wrapper .edit-site-page-pages__featured-image{height:100%;object-fit:cover;width:100%}.page-pages-preview-field__button.edit-site-page-pages__media-wrapper:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;position:absolute;right:0;top:0;width:100%}.edit-site-patterns{background:#1e1e1e;border-radius:0;border-right:1px solid #2f2f2f;margin:60px 0 0;min-height:100%;overflow-x:auto;padding:0}.edit-site-patterns .components-base-control{width:100%}@media (min-width:782px){.edit-site-patterns .components-base-control{width:auto}}.edit-site-patterns .components-text{color:#949494}.edit-site-patterns .components-heading{color:#e0e0e0}@media (min-width:782px){.edit-site-patterns{margin:0}}.edit-site-patterns .edit-site-patterns__search-block{flex-grow:1;min-width:-moz-fit-content;min-width:fit-content}.edit-site-patterns .edit-site-patterns__search{--wp-components-color-foreground:#e0e0e0}.edit-site-patterns .edit-site-patterns__search .components-input-control__container{background:#2f2f2f}.edit-site-patterns .edit-site-patterns__search svg{fill:#949494}.edit-site-patterns .edit-site-patterns__sync-status-filter{background:#2f2f2f;border:none;height:40px;max-width:100%;min-width:max-content;width:100%}@media (min-width:782px){.edit-site-patterns .edit-site-patterns__sync-status-filter{width:300px}}.edit-site-patterns .edit-site-patterns__sync-status-filter-option:not([aria-checked=true]){color:#949494}.edit-site-patterns .edit-site-patterns__sync-status-filter-option:active{background:#757575;color:#f0f0f0}.edit-site-patterns__header{background:#1e1e1e;padding:32px 32px 16px;position:sticky;top:0;z-index:2}.edit-site-patterns__header .edit-site-patterns__button{color:#949494}.edit-site-patterns__section{flex:1;padding:24px 32px}.edit-site-patterns__section-header .screen-reader-shortcut:focus{top:0}.edit-site-patterns__grid{display:grid;gap:32px;grid-template-columns:1fr;margin-bottom:0;margin-top:0}@media (min-width:960px){.edit-site-patterns__grid{grid-template-columns:1fr 1fr}}@media (min-width:1440px){.edit-site-patterns__grid{grid-template-columns:1fr 1fr 1fr}}@media (min-width:1920px){.edit-site-patterns__grid{grid-template-columns:1fr 1fr 1fr 1fr}}.edit-site-patterns__grid .edit-site-patterns__pattern{break-inside:avoid-column;display:flex;flex-direction:column}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;overflow:hidden;padding:0}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview:focus{box-shadow:inset 0 0 0 0 #fff,0 0 0 2px var(--wp-admin-theme-color);outline:2px solid #0000}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive{cursor:default}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #2f2f2f;opacity:.8}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__button,.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__footer{color:#949494}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__dropdown{flex-shrink:0}.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview{align-items:center;border:1px dashed #2f2f2f;color:#949494;display:flex;justify-content:center;min-height:64px}.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-patterns__grid .edit-site-patterns__preview{flex:0 1 auto;margin-bottom:12px}.edit-site-patterns__load-more{align-self:center}.edit-site-patterns__pattern-title{color:#e0e0e0}.edit-site-patterns__pattern-title .is-link{color:#e0e0e0;text-decoration:none}.edit-site-patterns__pattern-title .is-link:focus,.edit-site-patterns__pattern-title .is-link:hover{color:#fff}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-icon{background:var(--wp-block-synced-color);border-radius:4px;fill:#fff}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-lock-icon{fill:currentcolor}.edit-site-patterns__no-results{color:#949494}.edit-site-patterns__delete-modal{width:384px}.edit-site-patterns__pagination{background:#1e1e1e;border-top:1px solid #2f2f2f;bottom:0;color:#f0f0f0;padding:24px 32px;position:sticky;z-index:2}.edit-site-patterns__pagination .components-button.is-tertiary{background-color:#2f2f2f;color:#f0f0f0}.edit-site-patterns__pagination .components-button.is-tertiary:disabled{background:none;color:#949494}.edit-site-patterns__pagination .components-button.is-tertiary:hover:not(:disabled){background-color:#757575}.edit-site-page-patterns-dataviews{margin-top:60px}@media (min-width:782px){.edit-site-page-patterns-dataviews{margin-top:0}}.edit-site-page-patterns-dataviews .page-patterns-preview-field{border-radius:3px 3px 0 0;display:flex;flex-direction:column;height:100%}.edit-site-page-patterns-dataviews .page-patterns-preview-field.is-viewtype-grid .block-editor-block-preview__container{border-radius:3px 3px 0 0;height:100%}.edit-site-page-patterns-dataviews .page-patterns-preview-field .page-patterns-preview-field__button{background-color:unset;border:none;border-radius:3px 3px 0 0;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0}.edit-site-page-patterns-dataviews .page-patterns-preview-field .page-patterns-preview-field__button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.edit-site-page-patterns-dataviews .edit-site-patterns__pattern-icon{fill:var(--wp-block-synced-color);flex-shrink:0}.edit-site-page-patterns-dataviews .edit-site-patterns__pattern-lock-icon{min-width:min-content}.edit-site-page-patterns-dataviews .edit-site-patterns__section-header{border-bottom:1px solid #f0f0f0;min-height:72px;padding:16px 32px;position:sticky;top:0;z-index:2}.edit-site-page-patterns-dataviews .edit-site-patterns__pattern-title{color:inherit;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.edit-site-page-patterns-dataviews .dataviews-pagination{z-index:2}.dataviews-action-modal__duplicate-pattern [role=dialog]>[role=document]{width:350px}.dataviews-action-modal__duplicate-pattern .patterns-menu-items__convert-modal-categories{position:relative}.dataviews-action-modal__duplicate-pattern .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;max-height:96px;min-width:auto;position:absolute;right:-1px;width:calc(100% + 2px);z-index:1}@media (min-width:600px){.dataviews-action-modal__duplicate-template-part .components-modal__frame{max-width:500px}}.page-templates-preview-field{border-radius:3px 3px 0 0;display:flex;flex-direction:column;height:100%}.page-templates-preview-field .page-templates-preview-field__button{background-color:unset;border:none;border-radius:3px;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0}.page-templates-preview-field .page-templates-preview-field__button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.page-templates-preview-field.is-viewtype-list .block-editor-block-preview__container{height:120px}.page-templates-preview-field.is-viewtype-grid .block-editor-block-preview__container{height:auto}.page-templates-preview-field.is-viewtype-grid .page-templates-preview-field__button{border-radius:3px 3px 0 0}.page-templates-preview-field.is-viewtype-table{border-radius:2px;position:relative}.page-templates-preview-field.is-viewtype-table:after{border-radius:2px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;position:absolute;right:0;top:0;width:100%}.page-templates-description{white-space:normal}.edit-site-page-template-template-parts-dataviews .dataviews-pagination{z-index:2}.edit-site-table-wrapper{padding:32px;width:100%}.edit-site-table{border-collapse:collapse;border-color:inherit;position:relative;text-indent:0;width:100%}.edit-site-table a{text-decoration:none}.edit-site-table th{color:#757575;font-weight:400;padding:0 16px 16px;text-align:right}.edit-site-table td{padding:16px}.edit-site-table td,.edit-site-table th{vertical-align:center}.edit-site-table td:first-child,.edit-site-table th:first-child{padding-right:0}.edit-site-table td:last-child,.edit-site-table th:last-child{padding-left:0;text-align:left}.edit-site-table tr{border-bottom:1px solid #f0f0f0}.edit-site-sidebar-edit-mode{width:280px}.edit-site-sidebar-edit-mode>.components-panel{border-left:0;border-right:0;margin-bottom:-1px;margin-top:-1px}.edit-site-sidebar-edit-mode>.components-panel>.components-panel__header{background:#f0f0f0}.edit-site-sidebar-edit-mode .block-editor-block-inspector__card{margin:0}.edit-site-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.edit-site-global-styles-sidebar__navigator-provider,.edit-site-global-styles-sidebar__panel{display:flex;flex:1;flex-direction:column}.edit-site-global-styles-sidebar__navigator-screen{flex:1}.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon{margin-right:0}.edit-site-global-styles-sidebar__reset-button.components-button{margin-right:auto}.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{font-size:15.6px;font-weight:500}.edit-site-global-styles-sidebar .components-navigation__item>button span{font-weight:500}.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{border:0}.edit-site-global-styles-sidebar .single-column{grid-column:span 1}.edit-site-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.edit-site-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.edit-site-global-styles-sidebar__blocks-group-help{padding:0 16px}.edit-site-global-styles-color-palette-panel,.edit-site-global-styles-gradient-palette-panel{padding:16px}.edit-site-global-styles-sidebar hr{margin:0}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.edit-site-sidebar__panel{margin-top:-1px}.edit-site-page-panels__swap-template__confirm-modal__actions{margin-top:24px}.edit-site-change-status__content .components-popover__content{min-width:320px;padding:16px}.edit-site-change-status__content .edit-site-change-status__options .components-base-control__field>.components-v-stack{gap:8px}.edit-site-change-status__content .edit-site-change-status__options label .components-text{display:block}.edit-site-change-status__content .edit-site-change-status__password-legend{margin-bottom:8px;padding:0}.edit-site-summary-field__trigger{display:block;max-width:100%;overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs{padding-left:16px;padding-right:0}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{height:24px;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{display:flex}}.edit-site-sidebar-card{align-items:flex-start;display:flex}.edit-site-sidebar-card__content{flex-grow:1;margin-bottom:4px}.edit-site-sidebar-card__title{font-weight:500;line-height:24px}.edit-site-sidebar-card__title.edit-site-sidebar-card__title{font-size:13px;line-height:1.4;margin:0;padding:3px 0}.edit-site-sidebar-card__description{font-size:13px}.edit-site-sidebar-card__icon{flex:0 0 24px;height:24px;margin-left:12px;width:24px}.edit-site-sidebar-card__header{display:flex;justify-content:space-between;margin:0 0 4px}.edit-site-template-card__template-areas{margin-top:16px}.edit-site-template-card__template-areas-list,.edit-site-template-card__template-areas-list>li{margin:0}.edit-site-template-card__template-areas-item{width:100%}.edit-site-template-card__template-areas-item.components-button.has-icon{padding:0}.edit-site-template-card__actions{line-height:0}.edit-site-template-card__actions>.components-button.is-small.has-icon{min-width:auto;padding:0}h3.edit-site-template-card__template-areas-title{font-weight:500;margin:0 0 8px}.edit-site-template-panel__replace-template-modal{z-index:1000001}.edit-site-template-panel__replace-template-modal__content{column-count:2;column-gap:24px}@media (min-width:782px){.edit-site-template-panel__replace-template-modal__content{column-count:3}}@media (min-width:1280px){.edit-site-template-panel__replace-template-modal__content{column-count:4}}.edit-site-editor__interface-skeleton{opacity:1;transition:opacity .1s ease-out}@media (prefers-reduced-motion:reduce){.edit-site-editor__interface-skeleton{transition-delay:0s;transition-duration:0s}}.edit-site-editor__interface-skeleton.is-loading{opacity:0}.edit-site-editor__interface-skeleton .interface-interface-skeleton__header{border:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site .components-editor-notices__snackbar{bottom:40px;left:0;padding-left:16px;padding-right:16px;position:absolute;right:0}@media (min-width:783px){.edit-site .components-editor-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-site .components-editor-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-site .components-editor-notices__snackbar{right:160px}}.folded .edit-site .components-editor-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-site .components-editor-notices__snackbar{right:36px}}body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{right:0!important}.edit-site-create-template-part-modal{z-index:1000001}@media (min-width:600px){.edit-site-create-template-part-modal .components-modal__frame{max-width:500px}}.edit-site-create-template-part-modal__area-radio-group{border:1px solid #757575;border-radius:2px;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio{display:block;height:100%;padding:12px;text-align:right;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover{background-color:inherit;border-bottom:1px solid #757575;border-radius:0;margin:0}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:focus){box-shadow:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:focus{border-bottom:1px solid #fff}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:last-of-type{border-bottom:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover) .edit-site-create-template-part-modal__option-label div,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true] .edit-site-create-template-part-modal__option-label div{color:#949494}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label{padding-top:4px;white-space:normal}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label div{font-size:12px;padding-top:4px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__checkbox{margin-right:auto;min-width:24px}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image .edit-site-welcome-guide.guide-styles .edit-site-welcome-guide__image{background:#00a0d2}.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video{border-left:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide.guide-template .edit-site-welcome-guide__video{border-right:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide__image{margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-site-start-template-options__modal .edit-site-start-template-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:92px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.edit-site-start-template-options__modal .block-editor-block-patterns-list{padding-bottom:92px}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{display:none}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__item:not(:focus):not(:hover) .block-editor-block-preview__container{box-shadow:0 0 0 1px #ddd}.edit-site-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-site-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-site-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-site-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-site-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-site-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.edit-site-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-site-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-site-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.edit-site-layout{background:#1e1e1e;color:#ccc;display:flex;flex-direction:column;height:100%}.edit-site-layout__hub{height:60px;position:fixed;right:0;top:0;width:calc(100vw - 32px);z-index:3}@media (min-width:782px){.edit-site-layout__hub{width:336px}}.edit-site-layout.is-full-canvas .edit-site-layout__hub{border-radius:0;box-shadow:none;padding-left:0;width:60px}.edit-site-layout__header-container{z-index:4}.edit-site-layout__header{display:flex;height:60px;z-index:2}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__header{position:fixed;width:100vw}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:360px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:100vh;position:fixed!important;right:0;top:0}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{left:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__mobile{position:relative;width:100%;z-index:2}.edit-site-layout__canvas-container{flex-grow:1;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas>div{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:16px;top:16px;width:calc(100% - 16px)}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .edit-site-visual-editor__editor-canvas,.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .interface-interface-skeleton__content,.edit-site-layout__canvas>div{border-radius:8px}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout.is-full-canvas .edit-site-layout__canvas>div{border-radius:0}.edit-site-layout__canvas .interface-interface-skeleton,.edit-site-layout__mobile .interface-interface-skeleton,.edit-site-template-pages-preview .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-template-pages-preview{height:100%}.edit-site-layout__view-mode-toggle.components-button{align-items:center;border-bottom:1px solid #0000;border-radius:0;color:#fff;display:flex;height:60px;justify-content:center;overflow:hidden;padding:0;position:relative;width:60px}.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button{border-bottom-color:#e0e0e0;transition:border-bottom-color .15s ease-out .4s}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus{box-shadow:none}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}@media (prefers-reduced-motion:reduce){.edit-site-layout__view-mode-toggle.components-button:before{transition-delay:0s;transition-duration:0s}}.edit-site-layout__view-mode-toggle.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #ffffff1a,inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;border-radius:2px;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-right:1px solid #ddd}}.edit-site-layout.is-distraction-free .edit-site-layout__header-container{height:60px;left:0;position:absolute;right:0;top:0;width:100%;z-index:4}.edit-site-layout.is-distraction-free .edit-site-layout__header-container:focus-within{opacity:1!important}.edit-site-layout.is-distraction-free .edit-site-layout__header-container:focus-within div{transform:translateX(0) translateY(0) translateZ(0)!important}.edit-site-layout.is-distraction-free .edit-site-layout__header-container:focus-within .edit-site-layout__header{opacity:1!important}.edit-site-layout.is-distraction-free .edit-site-layout__header,.edit-site-layout.is-distraction-free .edit-site-site-hub{position:absolute;top:0;z-index:2}.edit-site-layout.is-distraction-free .edit-site-site-hub{z-index:3}.edit-site-layout.is-distraction-free .edit-site-layout__header{width:100%}.edit-site-layout__area{flex-grow:1;margin:0;overflow:hidden}@media (min-width:782px){.edit-site-layout__area{border-radius:8px;margin:16px 0 16px 16px}}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:20px 16px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}.edit-site-save-hub__button:not(.is-primary).is-busy,.edit-site-save-hub__button:not(.is-primary).is-busy[aria-disabled=true]:hover{color:#1e1e1e}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{flex-grow:1;overflow-y:auto}.edit-site-sidebar__screen-wrapper{display:flex;flex-direction:column;height:100%;padding:0 12px;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-gutter:stable;scrollbar-width:thin;will-change:transform}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-track{background-color:initial}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.edit-site-sidebar__screen-wrapper:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__screen-wrapper:focus,.edit-site-sidebar__screen-wrapper:focus-within,.edit-site-sidebar__screen-wrapper:hover{scrollbar-color:#757575 #0000}@media (hover:none){.edit-site-sidebar__screen-wrapper{scrollbar-color:#757575 #0000}}.edit-site-sidebar__footer{border-top:1px solid #2f2f2f;flex-shrink:0;margin:0 16px;padding:16px 0}.edit-site-sidebar-button{color:#e0e0e0;flex-shrink:0}.edit-site-sidebar-button:focus:not(:disabled){box-shadow:none;outline:none}.edit-site-sidebar-button:focus-visible:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));outline:3px solid #0000}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover,.edit-site-sidebar-button:not([aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:#f0f0f0}.edit-site-sidebar-navigation-item.components-item{border:none;border-radius:2px;color:#949494;min-height:40px;padding:8px 16px 8px 6px}.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item[aria-current]{background:#2f2f2f;color:#e0e0e0}.edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item[aria-current] .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#e0e0e0}.edit-site-sidebar-navigation-item.components-item[aria-current]{background:var(--wp-admin-theme-color);color:#fff}.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#949494}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-left:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px 0 8px 8px}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1;margin-bottom:16px}.edit-site-sidebar-navigation-screen__main.has-footer{margin-bottom:0}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-item-group{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__content .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__meta{color:#ccc;margin:0 16px 16px 0}.edit-site-sidebar-navigation-screen__meta .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__page-link{color:#949494;display:inline-block;word-break:break-word}.edit-site-sidebar-navigation-screen__page-link:focus,.edit-site-sidebar-navigation-screen__page-link:hover{color:#fff}.edit-site-sidebar-navigation-screen__page-link .components-external-link__icon{margin-right:4px}.edit-site-sidebar-navigation-screen__title-icon{background:#1e1e1e;margin-bottom:8px;padding-bottom:8px;padding-top:108px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow-wrap:break-word;padding:6px 0 0}.edit-site-sidebar-navigation-screen__actions{display:flex;flex-shrink:0}@media (min-width:782px){.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container{max-width:292px}}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item-preview{box-shadow:0 0 0 1px #1e1e1e}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{box-shadow:0 0 0 1px #f0f0f0}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__footer{background-color:#1e1e1e;border-top:1px solid #2f2f2f;bottom:0;gap:0;margin:16px 0 0;padding:16px 0;position:sticky}.edit-site-sidebar__notice{background:#2f2f2f;color:#ddd;margin:24px 0}.edit-site-sidebar__notice.is-dismissible{padding-left:8px}.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]){color:#ccc}.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#fff}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:#2f2f2f}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button{color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:#2f2f2f!important;border-radius:2px;color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:#949494}.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item[aria-current]{background:none}.edit-site-sidebar-navigation-screen-details-footer .edit-site-sidebar-navigation-screen-details-footer__icon{margin-right:auto;fill:#949494}.sidebar-navigation__more-menu .components-button{color:#e0e0e0}.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:#f0f0f0}.edit-site-sidebar-navigation-screen-page__featured-image-wrapper{background-color:#2f2f2f;border-radius:4px;margin-bottom:16px;min-height:128px}.edit-site-sidebar-navigation-screen-page__featured-image{align-items:center;background-position:50% 50%;background-size:cover;border-radius:2px;color:#949494;display:flex;height:128px;justify-content:center;overflow:hidden;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image img{height:100%;object-fit:cover;object-position:50% 50%;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image-description{font-size:12px}.edit-site-sidebar-navigation-screen-page__excerpt{font-size:12px;margin-bottom:24px}.edit-site-sidebar-navigation-screen-page__modified{color:#949494;margin:0 16px 16px 0}.edit-site-sidebar-navigation-screen-page__modified .components-text{color:#949494}.edit-site-sidebar-navigation-screen-page__status{display:inline-flex}.edit-site-sidebar-navigation-screen-page__status time{display:contents}.edit-site-sidebar-navigation-screen-page__status svg{height:16px;margin-left:8px;width:16px;fill:#f0b849}.edit-site-sidebar-navigation-screen-page__status.has-future-status svg,.edit-site-sidebar-navigation-screen-page__status.has-publish-status svg{fill:#4ab866}.edit-site-sidebar-navigation-screen-templates__templates-group-title.components-item{border-top:1px solid #2f2f2f;color:#e0e0e0;font-size:11px;font-weight:500;padding:24px 16px 16px 6px;text-transform:uppercase}.edit-site-sidebar-navigation-details-screen-panel{margin:24px 0}.edit-site-sidebar-navigation-details-screen-panel:last-of-type{margin-bottom:0}.edit-site-sidebar-navigation-details-screen-panel .edit-site-sidebar-navigation-details-screen-panel__heading{color:#ccc;font-size:11px;font-weight:500;margin-bottom:0;padding:0;text-transform:uppercase}.edit-site-sidebar-navigation-details-screen-panel__label.edit-site-sidebar-navigation-details-screen-panel__label{color:#949494;flex-shrink:0;width:100px}.edit-site-sidebar-navigation-details-screen-panel__value.edit-site-sidebar-navigation-details-screen-panel__value{color:#e0e0e0}.edit-site-sidebar-navigation-screen-pattern__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author img{border-radius:12px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon{height:24px;margin-left:8px;width:24px}.edit-site-sidebar-navigation-screen-patterns__group{margin-bottom:24px}.edit-site-sidebar-navigation-screen-patterns__group:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:0}.edit-site-sidebar-navigation-screen-patterns__group-header{margin-top:16px}.edit-site-sidebar-navigation-screen-patterns__group-header p{color:#949494}.edit-site-sidebar-navigation-screen-patterns__group-header h2{font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-navigation-screen-template__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-template__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-template__added-by-description-author img{border-radius:12px;height:20px;width:20px}.edit-site-sidebar-navigation-screen-template__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-template__added-by-description-author-icon{align-items:center;display:inline-flex;height:24px;justify-content:center;margin-left:4px;width:24px}.edit-site-sidebar-navigation-screen-template__template-area-button{align-items:center;border-radius:4px;color:#fff;display:flex;flex-wrap:nowrap;width:100%}.edit-site-sidebar-navigation-screen-template__template-area-button:focus,.edit-site-sidebar-navigation-screen-template__template-area-button:hover{background:#2f2f2f;color:#fff}.edit-site-sidebar-navigation-screen-template__template-area-label-text{flex-grow:1;margin:0 4px 0 16px}.edit-site-sidebar-navigation-screen-template__template-icon{display:flex}.edit-site-sidebar-navigation-screen-dataviews__group-header{margin-top:32px}.edit-site-sidebar-navigation-screen-dataviews__group-header h2{font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-dataviews-dataview-item{border-radius:2px;padding-left:8px}.edit-site-sidebar-dataviews-dataview-item .edit-site-sidebar-dataviews-dataview-item__dropdown-menu{min-width:auto}.edit-site-sidebar-dataviews-dataview-item:focus,.edit-site-sidebar-dataviews-dataview-item:hover,.edit-site-sidebar-dataviews-dataview-item[aria-current]{background:#2f2f2f;color:#e0e0e0}.edit-site-sidebar-dataviews-dataview-item.is-selected{background:var(--wp-admin-theme-color);color:#fff}.edit-site-site-hub{align-items:center;display:flex;gap:8px;justify-content:space-between}.edit-site-site-hub .edit-site-site-hub__container{gap:0}.edit-site-site-hub .edit-site-site-hub__site-title,.edit-site-site-hub .edit-site-site-hub__site-view-link,.edit-site-site-hub .edit-site-site-hub_toggle-command-center{transition:opacity .1s ease}.edit-site-site-hub .edit-site-site-hub__site-title.is-transparent,.edit-site-site-hub .edit-site-site-hub__site-view-link.is-transparent,.edit-site-site-hub .edit-site-site-hub_toggle-command-center.is-transparent{opacity:0!important}.edit-site-site-hub .edit-site-site-hub__site-view-link{flex-grow:0;margin-left:var(--wp-admin-border-width-focus)}.edit-site-site-hub .edit-site-site-hub__site-view-link svg{fill:#e0e0e0}.edit-site-site-hub__post-type{opacity:.6}.edit-site-site-hub__view-mode-toggle-container{background:#1e1e1e;flex-shrink:0;height:60px;width:60px}.edit-site-site-hub__view-mode-toggle-container.has-transparent-background{background:#0000}.edit-site-site-hub__text-content{overflow:hidden}.edit-site-site-hub__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__site-title{color:#e0e0e0;flex-grow:1}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:active svg,.edit-site-site-hub_toggle-command-center:hover svg{fill:#f0f0f0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf{border-radius:2px;max-width:calc(100% - 4px)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf[aria-current]{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block__menu{margin-right:-8px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected>td{background:#0000}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents{color:inherit}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:not(:hover) .block-editor-list-view-block__menu{opacity:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus .block-editor-list-view-block__menu-cell,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover .block-editor-list-view-block__menu-cell{opacity:1}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:#0000}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch):hover{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block__contents-cell{width:100%}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-left:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button[aria-current]{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-site-icon__icon{fill:currentColor;transition:padding .3s ease-out}@media (prefers-reduced-motion:reduce){.edit-site-site-icon__icon{transition-delay:0s;transition-duration:0s}}.edit-site-layout.is-full-canvas .edit-site-site-icon__icon{padding:6px}.edit-site-site-icon__image{background:#333;border-radius:4px;height:100%;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__image{border-radius:0}.edit-site-style-book{height:100%}.edit-site-style-book.is-button,.edit-site-style-book__iframe.is-button{border-radius:8px}.edit-site-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-style-book__tabs [role=tablist]{background:#fff;color:#1e1e1e}.edit-site-style-book__tabs [role=tabpanel]{bottom:0;left:0;overflow:auto;padding:0;position:absolute;right:0;top:48px}.edit-site-editor-canvas-container{background:#fff;border-radius:2px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;transition:all .3s}.edit-site-editor-canvas-container__close-button{background:#fff;left:8px;position:absolute;top:6px;z-index:1}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:#75757566;border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid #0000}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}.edit-site-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}@media (min-width:782px){.font-library-modal.font-library-modal{width:65vw}}.font-library-modal .components-modal__header{border-bottom:none}.font-library-modal .components-modal__content{margin-bottom:70px;padding-top:0}.font-library-modal .font-library-modal__subtitle{font-size:11px;font-weight:500;text-transform:uppercase}.font-library-modal .components-navigator-screen{padding:3px}.font-library-modal__tabpanel-layout{margin-top:32px}.font-library-modal__tabpanel-layout .font-library-modal__tabpanel-layout__footer{background-color:#fff;border-top:1px solid #ddd;bottom:32px;height:70px;margin:0 -32px -32px;padding:16px 32px;position:absolute;width:100%}.font-library-modal__tabpanel-layout .components-base-control__field{margin-bottom:0}.font-library-modal__font-card{border:1px solid #e0e0e0;height:auto;margin-top:-1px;padding:16px;width:100%}.font-library-modal__font-card:hover{background-color:#f0f0f0}.font-library-modal__font-card .font-library-modal__font-card__name{font-weight:700}.font-library-modal__font-card .font-library-modal__font-card__count{color:#757575}.font-library-modal__font-variant_demo-image{display:block;height:24px;width:auto}.font-library-modal__font-variant_demo-text{flex-shrink:0;transition:opacity .3s ease-in-out;white-space:nowrap}@media (prefers-reduced-motion:reduce){.font-library-modal__font-variant_demo-text{transition-delay:0s;transition-duration:0s}}.font-library-modal__font-variant{border-bottom:1px solid #e0e0e0;padding-bottom:16px}.font-library-modal__tabs [role=tablist]{background:#fff;border-bottom:1px solid #ddd;margin:0 -32px;padding:0 16px;position:sticky;top:0;z-index:1}.font-library-modal__upload-area{align-items:center;display:flex;height:256px;justify-content:center;width:100%}button.font-library-modal__upload-area{background-color:#f0f0f0}.font-library-modal__local-fonts{margin:0 auto;width:80%}.font-library-modal__local-fonts .font-library-modal__upload-area__text{color:#757575}.font-library__google-fonts-confirm{align-items:center;display:flex;justify-content:center;margin-top:64px}.font-library__google-fonts-confirm h3{font-size:1.4rem}.font-library__google-fonts-confirm .components-card{max-width:400px;min-width:350px;width:50%}.edit-site-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}body.js #wpadminbar{display:none}body.js #wpbody{padding-top:0}body.js.appearance_page_gutenberg-template-parts,body.js.site-editor-php{background:#fff}body.js.appearance_page_gutenberg-template-parts #wpcontent,body.js.site-editor-php #wpcontent{padding-right:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content,body.js.site-editor-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.appearance_page_gutenberg-template-parts #wpfooter,body.js.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.site-editor-php #wpfooter{display:none}body.js.appearance_page_gutenberg-template-parts .a11y-speak-region,body.js.site-editor-php .a11y-speak-region{right:-1px;top:-1px}body.js.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.js.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.js.site-editor-php ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.js.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.js.site-editor-php{background:#1e1e1e}.components-modal__frame,.edit-site{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}.edit-site{height:100vh}@media (min-width:600px){.edit-site{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.no-js .edit-site{min-height:0;position:static}.edit-site .interface-interface-skeleton{top:0}.edit-site .interface-complementary-area__pin-unpin-item.components-button{display:none}.edit-site .interface-interface-skeleton__content{background-color:#1e1e1e}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
+@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.dataviews-wrapper{box-sizing:border-box;container:dataviews-wrapper/inline-size;display:flex;flex-direction:column;height:100%;overflow:auto;scroll-padding-bottom:64px}.dataviews-filters__view-actions{box-sizing:border-box;flex-shrink:0;padding:16px 48px;position:sticky;right:0;transition:padding .1s ease-out}@media (prefers-reduced-motion:reduce){.dataviews-filters__view-actions{transition-delay:0s;transition-duration:0s}}.dataviews-filters__view-actions .components-search-control .components-base-control__field{max-width:240px}.dataviews-filters__container .dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__container .dataviews-filters__reset-button[aria-disabled=true]:hover{opacity:0}.dataviews-filters__container .dataviews-filters__reset-button[aria-disabled=true]:focus{opacity:1}.dataviews-filters-button{position:relative}.dataviews-pagination{background-color:#fff;border-top:1px solid #f0f0f0;bottom:0;color:#757575;flex-shrink:0;padding:12px 48px;position:sticky;right:0;transition:padding .1s ease-out}@media (prefers-reduced-motion:reduce){.dataviews-pagination{transition-delay:0s;transition-duration:0s}}.dataviews-pagination__page-selection{color:#1e1e1e;font-size:11px;font-weight:500;text-transform:uppercase}.dataviews-filters-options{margin:32px 0 16px}.dataviews-view-table{border-collapse:collapse;border-color:inherit;color:#757575;margin-bottom:auto;position:relative;text-indent:0;width:100%}.dataviews-view-table a{color:#1e1e1e;font-weight:500;text-decoration:none}.dataviews-view-table th{color:#1e1e1e;font-size:13px;font-weight:400;text-align:right}.dataviews-view-table td,.dataviews-view-table th{padding:12px;white-space:nowrap}.dataviews-view-table td[data-field-id=actions],.dataviews-view-table th[data-field-id=actions]{text-align:left}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-left:0}.dataviews-view-table tr{border-bottom:1px solid #f0f0f0}.dataviews-view-table tr .dataviews-view-table-header-button{gap:4px}.dataviews-view-table tr td:first-child,.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:first-child,.dataviews-view-table tr th:last-child{transition:padding .1s ease-out}@media (prefers-reduced-motion:reduce){.dataviews-view-table tr td:first-child,.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:first-child,.dataviews-view-table tr th:last-child{transition-delay:0s;transition-duration:0s}}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-right:48px}.dataviews-view-table tr td:first-child .dataviews-view-table-header,.dataviews-view-table tr td:first-child .dataviews-view-table-header-button,.dataviews-view-table tr th:first-child .dataviews-view-table-header,.dataviews-view-table tr th:first-child .dataviews-view-table-header-button{margin-right:-8px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-left:48px}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr.is-hovered{background-color:#f8f8f8}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input{opacity:0}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate{opacity:1}.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:0}.dataviews-view-table tr.is-hovered .components-checkbox-control__input,.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .components-checkbox-control__input,.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .components-checkbox-control__input,.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}@media (hover:none){.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input,.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}}.dataviews-view-table tr.is-selected{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#757575}.dataviews-view-table tr.is-selected:hover{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-table thead{inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead th{background-color:#fff;box-shadow:inset 0 -1px 0 #f0f0f0;font-size:11px;font-weight:500;padding-bottom:8px;padding-right:4px;padding-top:8px;text-transform:uppercase}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:32px}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper>*{flex-grow:1}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__primary-field a{flex-grow:0}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:500;padding:4px 8px;text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:#1e1e1e}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-right:4px}.dataviews-view-table .dataviews-view-table__actions-column{width:1%}.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input{opacity:1}.dataviews-view-grid__primary-field,.dataviews-view-list__primary-field,.dataviews-view-table__primary-field{color:#757575;display:block;font-size:13px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-view-grid__primary-field a,.dataviews-view-list__primary-field a,.dataviews-view-table__primary-field a{color:#1e1e1e;display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.dataviews-view-grid__primary-field a:hover,.dataviews-view-list__primary-field a:hover,.dataviews-view-table__primary-field a:hover{color:var(--wp-admin-theme-color)}.dataviews-view-grid__primary-field a:focus,.dataviews-view-list__primary-field a:focus,.dataviews-view-table__primary-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-view-grid__primary-field button.components-button.is-link,.dataviews-view-list__primary-field button.components-button.is-link,.dataviews-view-table__primary-field button.components-button.is-link{color:#1e1e1e;display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-view-grid__primary-field button.components-button.is-link:hover,.dataviews-view-list__primary-field button.components-button.is-link:hover,.dataviews-view-table__primary-field button.components-button.is-link:hover{color:var(--wp-admin-theme-color)}.dataviews-view-grid{grid-template-columns:repeat(1,minmax(0,1fr))!important;grid-template-rows:max-content;margin-bottom:auto;padding:0 48px 24px;transition:padding .1s ease-out}@media (prefers-reduced-motion:reduce){.dataviews-view-grid{transition-delay:0s;transition-duration:0s}}@media (min-width:480px){.dataviews-view-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media (min-width:1080px){.dataviews-view-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media (min-width:1440px){.dataviews-view-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}.dataviews-view-grid .dataviews-view-grid__card{height:100%;justify-content:flex-start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:8px 0 4px}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__primary-field{min-height:32px}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:#1e1e1e}.dataviews-view-grid .dataviews-view-grid__card.is-selected .page-pages-preview-field__button:after{background:rgba(var(--wp-admin-theme-color--rgb),.04);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__media{aspect-ratio:1/1;background-color:#f0f0f0;border-radius:4px;min-height:200px;position:relative;width:100%}.dataviews-view-grid .dataviews-view-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty){padding:0 0 12px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field{align-items:flex-start}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(.is-column){align-items:center}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(.is-column) .dataviews-view-grid__field-name{width:35%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(.is-column) .dataviews-view-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{color:#757575}.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty){padding-bottom:12px}.dataviews-view-grid .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;font-size:12px;min-height:24px;padding:0 8px;width:-moz-fit-content;width:fit-content}.dataviews-view-list{margin:0 0 auto}.dataviews-view-list li{border-top:1px solid #f0f0f0;cursor:pointer;margin:0}.dataviews-view-list li .dataviews-view-list__item-wrapper{border-radius:4px;position:relative}.dataviews-view-list li .dataviews-view-list__item-wrapper>*{width:100%}.dataviews-view-list li .dataviews-view-list__item-actions .components-button{left:0;opacity:0;position:fixed}.dataviews-view-list li.is-hovered .dataviews-view-list__item-actions,.dataviews-view-list li.is-selected .dataviews-view-list__item-actions,.dataviews-view-list li:focus-within .dataviews-view-list__item-actions{padding-left:32px}.dataviews-view-list li.is-hovered .dataviews-view-list__item-actions .components-button,.dataviews-view-list li.is-selected .dataviews-view-list__item-actions .components-button,.dataviews-view-list li:focus-within .dataviews-view-list__item-actions .components-button{opacity:1;position:static}.dataviews-view-list li.is-hovered .dataviews-view-list__item,.dataviews-view-list li.is-selected .dataviews-view-list__item,.dataviews-view-list li:focus-within .dataviews-view-list__item{padding-left:0}.dataviews-view-list li:not(.is-selected) .dataviews-view-list__primary-field{color:#1e1e1e}.dataviews-view-list li:not(.is-selected):focus-within,.dataviews-view-list li:not(.is-selected):hover{background-color:#f8f8f8;color:var(--wp-admin-theme-color)}.dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__primary-field,.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__primary-field{color:var(--wp-admin-theme-color)}.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#1e1e1e}.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field{color:var(--wp-admin-theme-color)}.dataviews-view-list .dataviews-view-list__item{padding:16px 24px 16px 0;scroll-margin:8px 0;width:100%}.dataviews-view-list .dataviews-view-list__item:focus-visible:before{border-radius:2px;bottom:var(--wp-admin-border-width-focus);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:var(--wp-admin-border-width-focus);position:absolute;right:var(--wp-admin-border-width-focus);top:calc(var(--wp-admin-border-width-focus) + 1px)}.dataviews-view-list .dataviews-view-list__item .dataviews-view-list__primary-field{line-height:20px;min-height:20px;overflow:hidden}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:#f0f0f0;border-radius:4px;flex-shrink:0;height:40px;overflow:hidden;position:relative;width:40px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;position:absolute;right:0;top:0;width:100%}.dataviews-view-list .dataviews-view-list__media-placeholder{background-color:#e0e0e0;height:32px;min-width:32px}.dataviews-view-list .dataviews-view-list__fields{color:#757575;display:flex;flex-wrap:wrap;font-size:12px;gap:8px}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty){display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{display:inline-flex;line-height:20px}.dataviews-view-list .dataviews-view-list__item-actions{padding-left:24px}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-action-modal{z-index:1000001}.dataviews-loading,.dataviews-no-results{align-items:center;display:flex;flex-grow:1;justify-content:center;padding:0 48px;transition:padding .1s ease-out}@media (prefers-reduced-motion:reduce){.dataviews-loading,.dataviews-no-results{transition-delay:0s;transition-duration:0s}}.dataviews-view-table-selection-checkbox{--checkbox-input-size:24px;flex-shrink:0;line-height:0}@media (min-width:600px){.dataviews-view-table-selection-checkbox{--checkbox-input-size:16px}}.dataviews-view-table-selection-checkbox .components-checkbox-control__input-container{margin:0}.dataviews-filters__custom-menu-radio-item-prefix{display:block;width:24px}.dataviews-bulk-edit-button.components-button{flex-shrink:0}.dataviews-filter-summary__popover .components-popover__content{border-radius:4px;padding:0;width:230px}.dataviews-search-widget-filter-combobox-list{border-top:1px solid #e0e0e0;max-height:184px;overflow:auto;padding:4px}.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item-value [data-user-value]{font-weight:600}.dataviews-search-widget-listbox{max-height:184px;overflow:auto;padding:4px}.dataviews-search-widget-listitem{align-items:center;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;gap:8px;margin-block-end:2px;padding:8px 12px}.dataviews-search-widget-listitem:last-child{margin-block-end:0}.dataviews-search-widget-listitem:focus,.dataviews-search-widget-listitem:hover,.dataviews-search-widget-listitem[data-active-item]{background-color:var(--wp-admin-theme-color);color:#fff}.dataviews-search-widget-listitem:focus .dataviews-search-widget-listitem-check,.dataviews-search-widget-listitem:hover .dataviews-search-widget-listitem-check,.dataviews-search-widget-listitem[data-active-item] .dataviews-search-widget-listitem-check{fill:#fff}.dataviews-search-widget-listitem:focus .dataviews-search-widget-listitem-description,.dataviews-search-widget-listitem:hover .dataviews-search-widget-listitem-description,.dataviews-search-widget-listitem[data-active-item] .dataviews-search-widget-listitem-description{color:#fff}.dataviews-search-widget-listitem .dataviews-search-widget-listitem-check{flex-shrink:0;height:24px;width:24px}.dataviews-search-widget-listitem .dataviews-search-widget-listitem-description{color:#757575;display:block;font-size:12px;line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-search-widget-filter-combobox__wrapper{padding:8px;position:relative}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input{background:#f0f0f0;border:none;border-radius:2px;box-shadow:0 0 0 #0000;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:32px;line-height:normal;margin-left:0;margin-right:0;padding:0 8px 0 32px;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-moz-placeholder{color:#1e1e1e9e;opacity:1}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input:-ms-input-placeholder{color:#1e1e1e9e}@media (min-width:600px){.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input{font-size:13px}}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input:focus{background:#fff;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::placeholder{color:#757575}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__icon{align-items:center;display:flex;justify-content:center;left:12px;position:absolute;top:50%;transform:translateY(-50%);width:24px}.dataviews-filter-summary__operators-container{padding:8px 8px 0}.dataviews-filter-summary__operators-container:has(+.dataviews-search-widget-listbox){border-bottom:1px solid #e0e0e0;padding-bottom:8px}.dataviews-filter-summary__operators-container:empty{display:none}.dataviews-filter-summary__operators-container .dataviews-filter-summary__operators-filter-name{color:#757575}.dataviews-filter-summary__chip-container{position:relative;white-space:pre-wrap}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip{align-items:center;background:#f0f0f0;border:1px solid #0000;border-radius:16px;color:#2f2f2f;cursor:pointer;display:flex;height:32px;padding:0 12px;position:relative}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-reset{padding-inline-end:28px}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip:focus-visible,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip:hover,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip[aria-expanded=true]{background:#e0e0e0;color:#1e1e1e}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-values{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-admin-theme-color)}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-values:hover,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-values[aria-expanded=true]{background:rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip .dataviews-filter-summary__filter-text-name{font-weight:500}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove{align-items:center;background:#0000;border:0;border-radius:50%;cursor:pointer;display:flex;height:24px;justify-content:center;left:4px;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:24px}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove svg{fill:#757575}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:focus,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:hover{background:#e0e0e0}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:focus svg,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:hover svg{fill:#1e1e1e}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove.has-values svg{fill:var(--wp-admin-theme-color)}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove.has-values:hover{background:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}@container (max-width: 430px){.dataviews-filters__view-actions,.dataviews-pagination{padding:12px 24px}.dataviews-filters__view-actions .components-search-control .components-base-control__field{max-width:112px}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-right:24px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-left:24px}.dataviews-loading,.dataviews-no-results,.dataviews-view-grid{padding-left:24px;padding-right:24px}}.dataviews-bulk-actions-toolbar-wrapper{display:flex;flex-grow:1;width:100%}.dataviews-bulk-actions-toolbar-wrapper .components-toolbar-group{align-items:center}.dataviews-bulk-actions-toolbar-wrapper .components-button.is-busy{max-height:36px}.dataviews-bulk-actions{align-content:center;bottom:24px;display:flex;flex-direction:column;flex-wrap:wrap;margin-left:auto;margin-right:auto;position:sticky;width:-moz-fit-content;width:fit-content;z-index:2}.dataviews-bulk-actions .components-accessible-toolbar{border-color:#ddd;box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a}.dataviews-bulk-actions .components-accessible-toolbar .components-toolbar-group{border-color:#e0e0e0}.dataviews-bulk-actions .components-accessible-toolbar .components-toolbar-group:last-child{border:0}.dataviews-bulk-actions .dataviews-bulk-actions__selection-count{align-items:center;display:flex;margin:0 8px}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{max-height:224px;overflow-y:auto}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:right;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 64px)}@media (min-width:960px){.edit-site-add-new-template__modal{width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;border-radius:2px;display:flex;flex-direction:column;justify-content:center;outline:1px solid #0000;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:#0000;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:#0000;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid #0000}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column-end:4;grid-column-start:1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-canvas-loader{align-items:center;animation:edit-site-canvas-loader__fade-in-animation .5s ease .2s;animation-fill-mode:forwards;display:flex;height:100%;justify-content:center;opacity:0;position:absolute;right:0;top:0;width:100%}@media (prefers-reduced-motion:reduce){.edit-site-canvas-loader{animation-delay:0s;animation-duration:1ms}}.edit-site-canvas-loader>div{width:160px}@keyframes edit-site-canvas-loader__fade-in-animation{0%{opacity:0}to{opacity:1}}.edit-site-global-styles-preview{align-items:center;cursor:pointer;display:flex;justify-content:center;line-height:1}.edit-site-global-styles-preview__iframe{display:block;max-width:100%;width:100%}.edit-site-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:16px;min-height:100px;overflow:hidden}.edit-site-typography-panel__full-width-control{grid-column:1/-1;max-width:100%}.edit-site-global-styles-screen{margin:12px 16px 16px}.edit-site-global-styles-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.edit-site-global-styles-screen-typography__font-variants-count{color:#757575}.edit-site-global-styles-font-families__add-fonts{justify-content:center}.edit-site-global-styles-screen .color-block-support-panel{border-top:none;padding-left:0;padding-right:0;padding-top:0;row-gap:12px}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-block-types-search{margin-bottom:8px;padding:0 16px}.edit-site-global-styles-header{margin-bottom:0!important}.edit-site-global-styles-subtitle{font-size:11px!important;font-weight:500!important;margin-bottom:0!important;text-transform:uppercase}.edit-site-global-styles-section-title{color:#2f2f2f;font-weight:600;line-height:1.2;margin:0;padding:16px 16px 0}.edit-site-global-styles-icon-with-current-color{fill:currentColor}.edit-site-global-styles__color-indicator-wrapper{flex-shrink:0;height:24px}.edit-site-global-styles__shadows-panel__options-container,.edit-site-global-styles__shadows-panel__title{height:24px}.edit-site-global-styles__block-preview-panel{border:1px solid #e0e0e0;border-radius:2px;overflow:auto;position:relative;width:100%}.edit-site-global-styles__shadow-preview-panel{background-image:repeating-linear-gradient(-45deg,#f5f5f5 25%,#0000 0,#0000 75%,#f5f5f5 0,#f5f5f5),repeating-linear-gradient(-45deg,#f5f5f5 25%,#0000 0,#0000 75%,#f5f5f5 0,#f5f5f5);background-position:100% 0,right 8px top 8px;background-size:16px 16px;border:1px solid #e0e0e0;border-radius:2px;height:150px;overflow:auto}.edit-site-global-styles__shadow-preview-panel .edit-site-global-styles__shadow-preview-block{background-color:#fff;border:1px solid #e0e0e0;border-radius:2px;height:60px;width:60%}.edit-site-global-styles__shadow-editor-panel{margin-bottom:4px;padding:16px;width:280px}.edit-site-global-styles__shadow-editor-panel .edit-site-global-styles__shadow-editor-color-palette{margin-bottom:-4px}.edit-site-global-styles__shadow-editor__dropdown{width:100%}.edit-site-global-styles__shadow-editor__dropdown .edit-site-global-styles__shadow-editor__dropdown-toggle,.edit-site-global-styles__shadow-editor__dropdown .edit-site-global-styles__shadow-editor__remove-button{border-radius:inherit;height:auto;padding-bottom:8px;padding-top:8px;text-align:right;width:100%}.edit-site-global-styles__shadow-editor__dropdown .edit-site-global-styles__shadow-editor__dropdown-toggle.is-open,.edit-site-global-styles__shadow-editor__dropdown .edit-site-global-styles__shadow-editor__remove-button.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-css{display:flex;flex:1 1 auto;flex-direction:column;margin:16px}.edit-site-global-styles-screen-css .components-v-stack{flex:1 1 auto}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input,.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field .components-textarea-control__input{direction:ltr;flex:1 1 auto}.edit-site-global-styles-screen-css-help-link{display:inline-block;margin-top:8px}.edit-site-global-styles-screen-variations{border-top:1px solid #ddd;margin-top:16px}.edit-site-global-styles-screen-variations>*{margin:24px 16px}.edit-site-global-styles-sidebar__navigator-screen{display:flex;flex-direction:column}.edit-site-global-styles-screen-root.edit-site-global-styles-screen-root,.edit-site-global-styles-screen-style-variations.edit-site-global-styles-screen-style-variations{background:unset;color:inherit}.edit-site-global-styles-sidebar__panel .block-editor-block-icon svg{fill:currentColor}.edit-site-global-styles-screen-revisions__revisions-list{flex-grow:1;list-style:none;margin:0 16px 16px}.edit-site-global-styles-screen-revisions__revisions-list li{margin-bottom:0}.edit-site-global-styles-screen-revisions__revision-item{cursor:pointer;display:flex;flex-direction:column;position:relative}.edit-site-global-styles-screen-revisions__revision-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-global-styles-screen-revisions__revision-item:hover .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item:after,.edit-site-global-styles-screen-revisions__revision-item:before{content:"\a";display:block;position:absolute}.edit-site-global-styles-screen-revisions__revision-item:before{background:#ddd;border:4px solid #0000;border-radius:50%;height:8px;right:17px;top:18px;transform:translate(50%,-50%);width:8px;z-index:1}.edit-site-global-styles-screen-revisions__revision-item.is-selected{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:2px;color:var(--wp-admin-theme-color);outline:3px solid #0000;outline-offset:-2px}.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__revision-button{opacity:1}.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item.is-selected:before{background:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__changes>li,.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__meta{color:#1e1e1e}.edit-site-global-styles-screen-revisions__revision-item:after{border:.5px solid #ddd;height:100%;right:16px;top:0;width:0}.edit-site-global-styles-screen-revisions__revision-item:first-child:after{top:18px}.edit-site-global-styles-screen-revisions__revision-item:last-child:after{height:18px}.edit-site-global-styles-screen-revisions__revision-item .edit-site-global-styles-screen-revisions__revision-button{display:block;height:auto;outline-offset:-2px;padding:12px 40px 4px 12px;position:relative;width:100%;z-index:1}.edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__apply-button.is-primary{align-self:flex-start;margin:4px 40px 12px 12px}.edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__changes,.edit-site-global-styles-screen-revisions__meta{color:#757575;font-size:12px}.edit-site-global-styles-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.edit-site-global-styles-screen-revisions__description .edit-site-global-styles-screen-revisions__date{font-size:12px;font-weight:600;text-transform:uppercase}.edit-site-global-styles-screen-revisions__meta{align-items:flex-start;display:flex;justify-content:start;margin-bottom:4px;text-align:right;width:100%}.edit-site-global-styles-screen-revisions__meta img{border-radius:100%;height:16px;margin-left:8px;width:16px}.edit-site-global-styles-screen-revisions__loading{margin:24px auto!important}.edit-site-global-styles-screen-revisions__changes{line-height:1.4;list-style:disc;margin-right:12px;text-align:right}.edit-site-global-styles-screen-revisions__changes li{margin-bottom:4px}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination{gap:2px;justify-content:space-between}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .edit-site-pagination__total{height:1px;margin:-1px;overflow:hidden;position:absolute;right:-1000px}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-text{font-size:12px;will-change:opacity}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary{color:#1e1e1e}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:disabled,.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{color:#949494}.edit-site-global-styles-screen-revisions__footer{background:#fff;border-top:1px solid #ddd;bottom:0;height:56px;min-width:100%;padding:12px;position:sticky;z-index:1}.editor-sidebar{width:280px}.editor-sidebar>.components-panel{border-left:0;border-right:0;margin-bottom:-1px;margin-top:-1px}.editor-sidebar>.components-panel>.components-panel__header{background:#f0f0f0}.editor-sidebar .block-editor-block-inspector__card{margin:0}.edit-site-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.edit-site-global-styles-sidebar__navigator-provider,.edit-site-global-styles-sidebar__panel{display:flex;flex:1;flex-direction:column}.edit-site-global-styles-sidebar__navigator-screen{flex:1}.edit-site-global-styles-sidebar .edit-site-global-styles-sidebar__header-title{margin:0}.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{font-size:15.6px;font-weight:500}.edit-site-global-styles-sidebar .components-navigation__item>button span{font-weight:500}.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{border:0}.edit-site-global-styles-sidebar .single-column{grid-column:span 1}.edit-site-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.edit-site-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.edit-site-global-styles-sidebar__blocks-group-help{padding:0 16px}.edit-site-global-styles-color-palette-panel,.edit-site-global-styles-gradient-palette-panel{padding:16px}.edit-site-global-styles-sidebar hr{margin:0}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.edit-site-page{background:#fff;color:#2f2f2f;container:edit-site-page/inline-size;height:100%;transition:width .2s ease-out}@media (prefers-reduced-motion:reduce){.edit-site-page{transition-delay:0s;transition-duration:0s}}.edit-site-page-header{background:#fff;border-bottom:1px solid #f0f0f0;padding:16px 48px;position:sticky;top:0;transition:padding .1s ease-out;z-index:2}@media (prefers-reduced-motion:reduce){.edit-site-page-header{transition-delay:0s;transition-duration:0s}}.edit-site-page-header .components-heading{color:#1e1e1e}.edit-site-page-header .edit-site-page-header__page-title{min-height:40px}.edit-site-page-header .edit-site-page-header__sub-title{margin-bottom:8px}@container (max-width: 430px){.edit-site-page-header{padding:16px 24px}}.edit-site-page-content{display:flex;flex-flow:column;height:100%;position:relative;z-index:1}.edit-site-page-pages__featured-image{height:100%;object-fit:cover;width:100%}.edit-site-page-pages__featured-image-wrapper{border-radius:4px;height:100%;width:100%}.edit-site-page-pages__featured-image-wrapper.is-layout-table .page-pages-preview-field__button,.edit-site-page-pages__featured-image-wrapper.is-layout-table:not(:has(.page-pages-preview-field__button)){background-color:#f0f0f0;border-radius:4px;display:block;flex-grow:0!important;height:32px;overflow:hidden;position:relative;width:32px}.edit-site-page-pages__featured-image-wrapper.is-layout-table .page-pages-preview-field__button:after,.edit-site-page-pages__featured-image-wrapper.is-layout-table:not(:has(.page-pages-preview-field__button)):after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;position:absolute;right:0;top:0;width:100%}.page-pages-preview-field__button{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0;width:100%}.page-pages-preview-field__button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.edit-site-page-pages-title span{overflow:hidden;text-overflow:ellipsis}.edit-site-page-pages__title-badge{background:#f0f0f0;border-radius:2px;color:#757575;flex-shrink:0;font-size:12px;font-weight:400;padding:0 4px}.edit-site-patterns__section-header .screen-reader-shortcut:focus{top:0}.edit-site-patterns__pattern-title .is-link{color:#e0e0e0;text-decoration:none}.edit-site-patterns__pattern-title .is-link:focus,.edit-site-patterns__pattern-title .is-link:hover{color:#fff}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-icon{background:var(--wp-block-synced-color);border-radius:4px;fill:#fff}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-lock-icon{fill:currentcolor}.edit-site-patterns__delete-modal{width:384px}.edit-site-page-patterns-dataviews .page-patterns-preview-field{display:flex;flex-direction:column;height:100%}.edit-site-page-patterns-dataviews .page-patterns-preview-field.is-viewtype-table{border-radius:2px;flex-grow:0;width:96px}.edit-site-page-patterns-dataviews .page-patterns-preview-field.is-viewtype-table .page-patterns-preview-field__button{border-radius:2px}.edit-site-page-patterns-dataviews .page-patterns-preview-field .page-patterns-preview-field__button{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0}.edit-site-page-patterns-dataviews .page-patterns-preview-field .page-patterns-preview-field__button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.edit-site-page-patterns-dataviews .page-patterns-preview-field .page-patterns-preview-field__button[aria-disabled=true]{cursor:default}.edit-site-page-patterns-dataviews .edit-site-patterns__pattern-icon{fill:var(--wp-block-synced-color);flex-shrink:0}.edit-site-page-patterns-dataviews .edit-site-patterns__pattern-lock-icon{min-width:min-content}.edit-site-page-patterns-dataviews .edit-site-patterns__section-header{border-bottom:1px solid #f0f0f0;flex-shrink:0;min-height:40px;padding:16px 48px;position:sticky;top:0;transition:padding .1s ease-out;z-index:2}@media (prefers-reduced-motion:reduce){.edit-site-page-patterns-dataviews .edit-site-patterns__section-header{transition-delay:0s;transition-duration:0s}}.edit-site-page-patterns-dataviews .edit-site-patterns__section-header .edit-site-patterns__title{min-height:40px}.edit-site-page-patterns-dataviews .edit-site-patterns__section-header .edit-site-patterns__sub-title{margin-bottom:8px}.edit-site-page-patterns-dataviews .edit-site-patterns__pattern-title{color:inherit;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.edit-site-page-patterns-dataviews .dataviews-pagination{z-index:2}.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.edit-site-patterns__field-sync-status-fully){background:rgba(var(--wp-block-synced-color--rgb),.04);color:var(--wp-block-synced-color)}.dataviews-action-modal__duplicate-pattern [role=dialog]>[role=document]{width:350px}.dataviews-action-modal__duplicate-pattern .patterns-menu-items__convert-modal-categories{position:relative}.dataviews-action-modal__duplicate-pattern .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;max-height:96px;min-width:auto;position:absolute;right:-1px;width:calc(100% + 2px);z-index:1}@media (min-width:600px){.dataviews-action-modal__duplicate-template-part .components-modal__frame{max-width:500px}}@container (max-width: 430px){.edit-site-page-patterns-dataviews .edit-site-patterns__section-header{padding-left:24px;padding-right:24px}}.page-templates-preview-field{display:flex;flex-direction:column;height:100%}.page-templates-preview-field .page-templates-preview-field__button{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0}.page-templates-preview-field .page-templates-preview-field__button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.page-templates-preview-field.is-viewtype-list .block-editor-block-preview__container{height:120px}.page-templates-preview-field.is-viewtype-grid .block-editor-block-preview__container{height:100%}.page-templates-preview-field.is-viewtype-table{border-radius:2px;position:relative}.page-templates-preview-field.is-viewtype-table:after{border-radius:2px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;position:absolute;right:0;top:0;width:100%}.page-templates-description{white-space:normal}.edit-site-page-templates .dataviews-pagination{z-index:2}.page-templates-author-field__avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:center;overflow:hidden;width:24px}.page-templates-author-field__avatar img{border-radius:100%;height:20px;object-fit:cover;opacity:0;transition:opacity .1s linear;width:20px}@media (prefers-reduced-motion:reduce){.page-templates-author-field__avatar img{transition-delay:0s;transition-duration:0s}}.page-templates-author-field__avatar.is-loaded img{opacity:1}.page-templates-author-field__icon{display:flex;flex-shrink:0;height:24px;width:24px}.page-templates-author-field__icon svg{fill:currentColor}.page-templates-author-field__name{overflow:hidden;text-overflow:ellipsis}.edit-site-list__rename-modal{z-index:1000001}@media (min-width:782px){.edit-site-list__rename-modal .components-base-control{width:320px}}.edit-site-table-wrapper{padding:32px;width:100%}.edit-site-table{border-collapse:collapse;border-color:inherit;position:relative;text-indent:0;width:100%}.edit-site-table a{text-decoration:none}.edit-site-table th{color:#757575;font-weight:400;padding:0 16px 16px;text-align:right}.edit-site-table td{padding:16px}.edit-site-table td,.edit-site-table th{vertical-align:center}.edit-site-table td:first-child,.edit-site-table th:first-child{padding-right:0}.edit-site-table td:last-child,.edit-site-table th:last-child{padding-left:0;text-align:left}.edit-site-table tr{border-bottom:1px solid #f0f0f0}.edit-site-editor__editor-interface{opacity:1;transition:opacity .1s ease-out}@media (prefers-reduced-motion:reduce){.edit-site-editor__editor-interface{transition-delay:0s;transition-duration:0s}}.edit-site-editor__editor-interface.is-loading{opacity:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image,.edit-site-welcome-guide.guide-styles .edit-site-welcome-guide__image{background:#00a0d2}.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video{border-left:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide.guide-template .edit-site-welcome-guide__video{border-right:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide__image{margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-site-layout{color:#ccc;display:flex;flex-direction:column;height:100%}.edit-site-layout,.edit-site-layout:not(.is-full-canvas) .editor-visual-editor{background:#1e1e1e}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:360px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:100vh;position:fixed!important;right:0;top:0}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{left:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__mobile{position:relative;width:100%;z-index:2}.edit-site-layout__mobile .edit-site-sidebar__screen-wrapper{padding:0}.edit-site-layout__canvas-container{flex-grow:1;overflow:visible;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas .edit-site-resizable-frame__inner{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:16px;top:16px;width:calc(100% - 16px)}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{box-shadow:0 20px 25px -5px #000c,0 8px 10px -6px #000c;overflow:hidden;transition:border-radius .4s}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content{border-radius:8px}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout__canvas .interface-interface-skeleton,.edit-site-layout__mobile .interface-interface-skeleton,.edit-site-template-pages-preview .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-template-pages-preview{height:100%}html.canvas-mode-edit-transition::view-transition-group(toggle){animation-delay:255ms}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region .edit-site-layout__view-mode-toggle{display:none}.edit-site-layout__view-mode-toggle.components-button{view-transition-name:toggle;align-items:center;background:#1e1e1e;border-radius:0;color:#fff;display:flex;height:60px;justify-content:center;overflow:hidden;padding:0;position:relative;width:60px}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout__view-mode-toggle.components-button:focus-visible{box-shadow:0 0 0 3px #1e1e1e,0 0 0 6px var(--wp-admin-theme-color);outline:4px solid #0000;outline-offset:4px}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}@media (prefers-reduced-motion:reduce){.edit-site-layout__view-mode-toggle.components-button:before{transition-delay:0s;transition-duration:0s}}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-right:1px solid #ddd}}.edit-site-layout__area{flex-grow:1;margin:0;overflow:hidden}@media (min-width:782px){.edit-site-layout__area{border-radius:8px;margin:16px 0 16px 16px}}.edit-site .components-editor-notices__snackbar{bottom:16px;left:0;padding-left:16px;padding-right:16px;position:fixed}.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus-visible{box-shadow:none;outline:none;outline-offset:0}.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus .edit-site-site-icon svg,.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus-visible .edit-site-site-icon svg{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#3858e9);height:40px;outline:3px solid #0000;padding:2px;width:40px}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:16px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}.edit-site-save-hub__button:not(.is-primary).is-busy,.edit-site-save-hub__button:not(.is-primary).is-busy[aria-disabled=true]:hover{color:#1e1e1e}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{contain:content;flex-grow:1;overflow-x:hidden;overflow-y:auto}@keyframes slide-from-right{0%{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:none}}@keyframes slide-from-left{0%{opacity:0;transform:translateX(50px)}to{opacity:1;transform:none}}.edit-site-sidebar__screen-wrapper{animation-duration:.14s;animation-timing-function:ease-in-out;display:flex;flex-direction:column;height:100%;max-height:100%;overflow-x:auto;padding:0 12px;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-gutter:stable;scrollbar-width:thin;will-change:transform;will-change:transform,opacity}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-track{background-color:initial}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.edit-site-sidebar__screen-wrapper:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__screen-wrapper:focus,.edit-site-sidebar__screen-wrapper:focus-within,.edit-site-sidebar__screen-wrapper:hover{scrollbar-color:#757575 #0000}@media (hover:none){.edit-site-sidebar__screen-wrapper{scrollbar-color:#757575 #0000}}@media (prefers-reduced-motion:reduce){.edit-site-sidebar__screen-wrapper{animation-duration:0s}}.edit-site-sidebar__screen-wrapper.slide-from-left{animation-name:slide-from-left}.edit-site-sidebar__screen-wrapper.slide-from-right{animation-name:slide-from-right}.edit-site-sidebar-button{color:#e0e0e0;flex-shrink:0}.edit-site-sidebar-button:focus:not(:disabled){box-shadow:none;outline:none}.edit-site-sidebar-button:focus-visible:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid #0000}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover,.edit-site-sidebar-button:not([aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:#f0f0f0}.edit-site-sidebar-navigation-item.components-item{border:none;border-radius:2px;color:#949494;min-height:40px;padding:8px 16px 8px 6px}.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item[aria-current]{background:#2f2f2f;color:#e0e0e0}.edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item[aria-current] .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#e0e0e0}.edit-site-sidebar-navigation-item.components-item[aria-current]{background:var(--wp-admin-theme-color);color:#fff}.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#949494}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-left:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px 0 8px 8px}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1;margin-bottom:16px}.edit-site-sidebar-navigation-screen__main.has-footer{margin-bottom:0}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-item-group{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__content .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__meta{color:#ccc;margin:0 16px 16px 0}.edit-site-sidebar-navigation-screen__meta .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__page-link{color:#949494;display:inline-block;word-break:break-word}.edit-site-sidebar-navigation-screen__page-link:focus,.edit-site-sidebar-navigation-screen__page-link:hover{color:#fff}.edit-site-sidebar-navigation-screen__page-link .components-external-link__icon{margin-right:4px}.edit-site-sidebar-navigation-screen__title-icon{background:#1e1e1e;margin-bottom:8px;padding-bottom:8px;padding-top:48px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow-wrap:break-word;padding:2px 0 0}.edit-site-sidebar-navigation-screen__actions{display:flex;flex-shrink:0}@media (min-width:782px){.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variation-container{max-width:292px}}.edit-site-global-styles-variation-title{color:#ddd;font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{outline-color:#ffffff0d}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item:not(.is-active):hover .edit-site-global-styles-variations_item-preview{outline-color:#ffffff26}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{outline-color:#fff}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__footer{background-color:#1e1e1e;border-top:1px solid #2f2f2f;bottom:0;gap:0;margin:16px 0 0;padding:16px 0;position:sticky}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:#2f2f2f}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button{color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:#2f2f2f!important;border-radius:2px;color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:#949494}.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item[aria-current]{background:none}.edit-site-sidebar-navigation-screen-details-footer .edit-site-sidebar-navigation-screen-details-footer__icon{margin-right:auto;fill:#949494}.sidebar-navigation__more-menu .components-button{color:#e0e0e0}.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:#f0f0f0}.edit-site-sidebar-navigation-details-screen-panel{margin:24px 0}.edit-site-sidebar-navigation-details-screen-panel:last-of-type{margin-bottom:0}.edit-site-sidebar-navigation-details-screen-panel .edit-site-sidebar-navigation-details-screen-panel__heading{color:#ccc;font-size:11px;font-weight:500;margin-bottom:0;padding:0;text-transform:uppercase}.edit-site-sidebar-navigation-details-screen-panel__label.edit-site-sidebar-navigation-details-screen-panel__label{color:#949494;flex-shrink:0;width:100px}.edit-site-sidebar-navigation-details-screen-panel__value.edit-site-sidebar-navigation-details-screen-panel__value{color:#e0e0e0}.edit-site-sidebar-navigation-screen-patterns__group{margin-bottom:24px}.edit-site-sidebar-navigation-screen-patterns__group:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:0}.edit-site-sidebar-navigation-screen-patterns__group-header{margin-top:16px}.edit-site-sidebar-navigation-screen-patterns__group-header p{color:#949494}.edit-site-sidebar-navigation-screen-patterns__group-header h2{font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-navigation-screen-patterns__divider{border-top:1px solid #2f2f2f;margin:16px 0}.edit-site-sidebar-navigation-screen-dataviews__group-header{margin-top:32px}.edit-site-sidebar-navigation-screen-dataviews__group-header h2{font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-dataviews-dataview-item{border-radius:2px;padding-left:8px}.edit-site-sidebar-dataviews-dataview-item .edit-site-sidebar-dataviews-dataview-item__dropdown-menu{min-width:auto}.edit-site-sidebar-dataviews-dataview-item:focus,.edit-site-sidebar-dataviews-dataview-item:hover,.edit-site-sidebar-dataviews-dataview-item[aria-current]{background:#2f2f2f;color:#e0e0e0}.edit-site-sidebar-dataviews-dataview-item.is-selected{background:var(--wp-admin-theme-color);color:#fff}.edit-site-site-hub{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-left:12px}.edit-site-site-hub__actions{flex-shrink:0}.edit-site-site-hub__view-mode-toggle-container{flex-shrink:0;height:60px;width:60px}.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon{background:#0000}.edit-site-site-hub__title .components-button{color:#e0e0e0;display:block;flex-grow:1;font-size:15px;font-weight:500;overflow:hidden;padding-left:16px;position:relative;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__title .components-button:active,.edit-site-site-hub__title .components-button:focus,.edit-site-site-hub__title .components-button:hover{color:#e0e0e0}.edit-site-site-hub__title .components-button:focus{box-shadow:none;outline:none}.edit-site-site-hub__title .components-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #1e1e1e,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:2px}.edit-site-site-hub__title .components-button:after{content:"↗";font-weight:400;left:0;opacity:0;position:absolute;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.edit-site-site-hub__title .components-button:after{transition-delay:0s;transition-duration:0s}}.edit-site-site-hub__title .components-button:active:after,.edit-site-site-hub__title .components-button:focus:after,.edit-site-site-hub__title .components-button:hover:after{opacity:1}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:active svg,.edit-site-site-hub_toggle-command-center:hover svg{fill:#f0f0f0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block__contents-cell{width:100%}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-left:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button[aria-current]{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-site-icon__icon{fill:currentColor}.edit-site-layout.is-full-canvas .edit-site-site-icon__icon{padding:6px}.edit-site-site-icon__image{background:#333;height:100%;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__image{border-radius:0}.edit-site-style-book{height:100%}.edit-site-style-book.is-button,.edit-site-style-book__iframe.is-button{border-radius:8px}.edit-site-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-style-book__tabs [role=tablist]{background:#fff;color:#1e1e1e}.edit-site-style-book__tabs [role=tabpanel]{bottom:0;left:0;overflow:auto;padding:0;position:absolute;right:0;top:48px}.edit-site-editor-canvas-container{background-color:#ddd;height:100%}.edit-site-editor-canvas-container iframe{display:block;height:100%;width:100%}.edit-site-layout.is-full-canvas .edit-site-editor-canvas-container{padding:24px 24px 0}.edit-site-editor-canvas-container__section{background:#fff;border-radius:2px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;transition:all .3s}.edit-site-editor-canvas-container__close-button{background:#fff;left:8px;position:absolute;top:6px;z-index:1}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:#75757566;border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid #0000}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}.edit-site-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}@media (min-width:782px){.font-library-modal.font-library-modal{width:65vw}}.font-library-modal .components-modal__header{border-bottom:none}.font-library-modal .components-modal__content{margin-bottom:70px;padding-top:0}.font-library-modal .font-library-modal__subtitle{font-size:11px;font-weight:500;text-transform:uppercase}.font-library-modal .components-navigator-screen{padding:3px}.font-library-modal__tabpanel-layout{margin-top:32px}.font-library-modal__tabpanel-layout .font-library-modal__loading{align-items:center;display:flex;height:100%;justify-content:center;padding-top:120px;position:absolute;right:0;top:0;width:100%}.font-library-modal__tabpanel-layout .font-library-modal__tabpanel-layout__footer{background-color:#fff;border-top:1px solid #ddd;bottom:32px;height:70px;margin:0 -32px -32px;padding:16px 32px;position:absolute;width:100%}.font-library-modal__tabpanel-layout .components-base-control__field{margin-bottom:0}.font-library-modal__fonts-title{font-size:11px;font-weight:600;margin-bottom:0;margin-top:0;text-transform:uppercase}.font-library-modal__fonts-list{margin-bottom:0;margin-top:0}.font-library-modal__fonts-list-item{margin-bottom:0}.font-library-modal__font-card{border:1px solid #e0e0e0;height:auto;margin-top:-1px;padding:16px;width:100%}.font-library-modal__font-card:hover{background-color:#f0f0f0}.font-library-modal__font-card .font-library-modal__font-card__name{font-weight:700}.font-library-modal__font-card .font-library-modal__font-card__count{color:#757575}.font-library-modal__font-card .font-library-modal__font-variant_demo-image{display:block;height:24px;width:auto}.font-library-modal__font-card .font-library-modal__font-variant_demo-text{flex-shrink:0;transition:opacity .3s ease-in-out;white-space:nowrap}@media (prefers-reduced-motion:reduce){.font-library-modal__font-card .font-library-modal__font-variant_demo-text{transition-delay:0s;transition-duration:0s}}.font-library-modal__font-variant{border-bottom:1px solid #e0e0e0;padding-bottom:16px}.font-library-modal__tabs [role=tablist]{background:#fff;border-bottom:1px solid #ddd;margin:0 -32px;padding:0 16px;position:sticky;top:0;z-index:1}.font-library-modal__upload-area{align-items:center;display:flex;height:256px;justify-content:center;width:100%}button.font-library-modal__upload-area{background-color:#f0f0f0}.font-library-modal__local-fonts{margin:0 auto;width:80%}.font-library-modal__local-fonts .font-library-modal__upload-area__text{color:#757575}.font-library__google-fonts-confirm{align-items:center;display:flex;justify-content:center;margin-top:64px}.font-library__google-fonts-confirm p{line-height:1.4}.font-library__google-fonts-confirm h2{font-size:1.2rem;font-weight:400}.font-library__google-fonts-confirm .components-card{padding:16px;width:400px}.font-library__google-fonts-confirm .components-button{justify-content:center;width:100%}.edit-site-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.edit-site-global-styles-variations_item{border-radius:2px;box-sizing:border-box;cursor:pointer}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{border-radius:2px;outline:1px solid #0000001a;outline-offset:-1px;overflow:hidden;position:relative;transition:outline .1s linear}@media (prefers-reduced-motion:reduce){.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{transition-delay:0s;transition-duration:0s}}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview.is-pill{height:32px}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview.is-pill .block-editor-iframe__scale-container{overflow:hidden}.edit-site-global-styles-variations_item:not(.is-active):hover .edit-site-global-styles-variations_item-preview{outline-color:#0000004d}.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview,.edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{outline-color:#1e1e1e;outline-offset:1px;outline-width:var(--wp-admin-border-width-focus)}.edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{outline-color:var(--wp-admin-theme-color)}::view-transition-image-pair(root){isolation:auto}::view-transition-new(root),::view-transition-old(root){animation:none;display:block;mix-blend-mode:normal}body.js #wpadminbar{display:none}body.js #wpbody{padding-top:0}body.js.appearance_page_gutenberg-template-parts,body.js.site-editor-php{background:#fff}body.js.appearance_page_gutenberg-template-parts #wpcontent,body.js.site-editor-php #wpcontent{padding-right:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content,body.js.site-editor-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.appearance_page_gutenberg-template-parts #wpfooter,body.js.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.site-editor-php #wpfooter{display:none}body.js.appearance_page_gutenberg-template-parts .a11y-speak-region,body.js.site-editor-php .a11y-speak-region{right:-1px;top:-1px}body.js.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.js.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.js.site-editor-php ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.js.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.js.site-editor-php{background:#1e1e1e}.edit-site{box-sizing:border-box;height:100vh}.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}@media (min-width:600px){.edit-site{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.no-js .edit-site{min-height:0;position:static}.edit-site .interface-interface-skeleton{top:0}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
diff --git a/wp-includes/css/dist/edit-site/style.css b/wp-includes/css/dist/edit-site/style.css
index ef578f6..b3a3a05 100644
--- a/wp-includes/css/dist/edit-site/style.css
+++ b/wp-includes/css/dist/edit-site/style.css
@@ -1,3 +1,4 @@
+@charset "UTF-8";
:root{
--wp-admin-theme-color:#007cba;
--wp-admin-theme-color--rgb:0, 124, 186;
@@ -8,7 +9,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -16,390 +17,39 @@
}
}
-.components-panel__header.interface-complementary-area-header__small{
- background:#fff;
- padding-right:4px;
-}
-.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{
- overflow:hidden;
- text-overflow:ellipsis;
- white-space:nowrap;
- width:100%;
-}
-@media (min-width:782px){
- .components-panel__header.interface-complementary-area-header__small{
- display:none;
- }
-}
-
-.interface-complementary-area-header{
- background:#fff;
- padding-right:4px;
-}
-.interface-complementary-area-header .components-button.has-icon{
- display:none;
- margin-left:auto;
-}
-.interface-complementary-area-header .components-button.has-icon~.components-button{
- margin-left:0;
-}
-@media (min-width:782px){
- .interface-complementary-area-header .components-button.has-icon{
- display:flex;
- }
- .components-panel__header+.interface-complementary-area-header{
- margin-top:0;
- }
-}
-
-.interface-complementary-area{
- background:#fff;
- color:#1e1e1e;
-}
-@media (min-width:600px){
- .interface-complementary-area{
- -webkit-overflow-scrolling:touch;
- }
-}
-@media (min-width:782px){
- .interface-complementary-area{
- width:280px;
- }
-}
-.interface-complementary-area .components-panel{
- border:none;
- position:relative;
- z-index:0;
-}
-.interface-complementary-area .components-panel__header{
- position:sticky;
- top:0;
- z-index:1;
-}
-.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{
- top:48px;
-}
-@media (min-width:782px){
- .interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{
- top:0;
- }
-}
-.interface-complementary-area p:not(.components-base-control__help){
- margin-top:0;
-}
-.interface-complementary-area h2{
- color:#1e1e1e;
- font-size:13px;
- margin-bottom:1.5em;
-}
-.interface-complementary-area h3{
- color:#1e1e1e;
- font-size:11px;
- font-weight:500;
- margin-bottom:1.5em;
- text-transform:uppercase;
-}
-.interface-complementary-area hr{
- border-bottom:1px solid #f0f0f0;
- border-top:none;
- margin:1.5em 0;
-}
-.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{
- box-shadow:none;
- margin-bottom:1.5em;
-}
-.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{
- margin-bottom:0;
-}
-.interface-complementary-area .block-editor-skip-to-selected-block:focus{
- bottom:10px;
- left:auto;
- right:10px;
- top:auto;
-}
-
-@media (min-width:782px){
- body.js.is-fullscreen-mode{
- height:calc(100% + 32px);
- margin-top:-32px;
- }
- body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{
- display:none;
- }
- body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{
- margin-left:0;
- }
-}
-
-html.interface-interface-skeleton__html-container{
- position:fixed;
- width:100%;
-}
-@media (min-width:782px){
- html.interface-interface-skeleton__html-container{
- position:static;
- width:auto;
- }
-}
-
-.interface-interface-skeleton{
- bottom:0;
- display:flex;
- flex-direction:row;
- height:auto;
- max-height:100%;
- position:fixed;
- right:0;
- top:46px;
-}
-@media (min-width:783px){
- .interface-interface-skeleton{
- top:32px;
- }
- .is-fullscreen-mode .interface-interface-skeleton{
- top:0;
- }
-}
-
-.interface-interface-skeleton__editor{
- display:flex;
- flex:0 1 100%;
- flex-direction:column;
- overflow:hidden;
-}
-
-.interface-interface-skeleton{
- left:0;
-}
-@media (min-width:783px){
- .interface-interface-skeleton{
- left:160px;
- }
-}
-@media (min-width:783px){
- .auto-fold .interface-interface-skeleton{
- left:36px;
- }
-}
-@media (min-width:961px){
- .auto-fold .interface-interface-skeleton{
- left:160px;
- }
-}
-.folded .interface-interface-skeleton{
- left:0;
-}
-@media (min-width:783px){
- .folded .interface-interface-skeleton{
- left:36px;
- }
-}
-
-body.is-fullscreen-mode .interface-interface-skeleton{
- left:0 !important;
-}
-
-.interface-interface-skeleton__body{
- display:flex;
- flex-grow:1;
- overflow:auto;
- overscroll-behavior-y:none;
-}
-@media (min-width:782px){
- .has-footer .interface-interface-skeleton__body{
- padding-bottom:25px;
- }
-}
-
-.interface-interface-skeleton__content{
- display:flex;
- flex-direction:column;
- flex-grow:1;
- overflow:auto;
- z-index:20;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__content{
- z-index:auto;
- }
-}
-
-.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
- background:#fff;
- bottom:0;
- color:#1e1e1e;
- flex-shrink:0;
- left:0;
- position:absolute;
- right:0;
- top:0;
- z-index:100000;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
- position:relative !important;
- width:auto;
- }
- .is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{
- z-index:90;
- }
-}
-
-.interface-interface-skeleton__sidebar{
- overflow:auto;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__sidebar{
- border-left:1px solid #e0e0e0;
- }
- .interface-interface-skeleton__secondary-sidebar{
- border-right:1px solid #e0e0e0;
- }
-}
-
-.interface-interface-skeleton__header{
- border-bottom:1px solid #e0e0e0;
- color:#1e1e1e;
- flex-shrink:0;
- height:auto;
- z-index:30;
-}
-
-.interface-interface-skeleton__footer{
- background-color:#fff;
- border-top:1px solid #e0e0e0;
- bottom:0;
- color:#1e1e1e;
- display:none;
- flex-shrink:0;
- height:auto;
- left:0;
- position:absolute;
- width:100%;
- z-index:90;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__footer{
- display:flex;
- }
-}
-.interface-interface-skeleton__footer .block-editor-block-breadcrumb{
- align-items:center;
- background:#fff;
- display:flex;
- font-size:13px;
- height:24px;
- padding:0 18px;
- z-index:30;
-}
-
-.interface-interface-skeleton__actions{
- background:#fff;
- bottom:auto;
- color:#1e1e1e;
- left:auto;
- position:fixed !important;
- right:0;
- top:-9999em;
- width:100vw;
- z-index:100000;
-}
-@media (min-width:782px){
- .interface-interface-skeleton__actions{
- width:280px;
- }
-}
-.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{
- bottom:0;
- top:auto;
-}
-.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{
- top:46px;
-}
-@media (min-width:782px){
- .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{
- border-left:1px solid #ddd;
- top:32px;
- }
- .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{
- top:0;
- }
-}
-
-.interface-more-menu-dropdown{
- margin-left:-4px;
-}
-.interface-more-menu-dropdown .components-button{
- padding:0 2px;
- width:auto;
-}
-@media (min-width:600px){
- .interface-more-menu-dropdown{
- margin-left:0;
- }
- .interface-more-menu-dropdown .components-button{
- padding:0 4px;
- }
-}
-
-.interface-more-menu-dropdown__content .components-popover__content{
- min-width:300px;
-}
-@media (min-width:480px){
- .interface-more-menu-dropdown__content .components-popover__content{
- max-width:480px;
- }
-}
-.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{
- padding:0;
-}
-
-.components-popover.interface-more-menu-dropdown__content{
- z-index:99998;
-}
-
-.interface-pinned-items{
- display:flex;
- gap:8px;
-}
-.interface-pinned-items .components-button{
- display:none;
- margin:0;
-}
-.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:global-styles"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{
- display:flex;
-}
-.interface-pinned-items .components-button svg{
- max-height:24px;
- max-width:24px;
-}
-@media (min-width:600px){
- .interface-pinned-items .components-button{
- display:flex;
- }
-}
-
.dataviews-wrapper{
box-sizing:border-box;
+ container:dataviews-wrapper/inline-size;
+ display:flex;
+ flex-direction:column;
height:100%;
overflow:auto;
scroll-padding-bottom:64px;
- width:100%;
}
.dataviews-filters__view-actions{
+ box-sizing:border-box;
flex-shrink:0;
left:0;
- margin-bottom:12px;
- padding:12px 32px 0;
+ padding:16px 48px;
position:sticky;
+ transition:padding .1s ease-out;
+}
+@media (prefers-reduced-motion:reduce){
+ .dataviews-filters__view-actions{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
}
.dataviews-filters__view-actions .components-search-control .components-base-control__field{
max-width:240px;
}
-.dataviews-filters__container{
- padding-right:32px;
+.dataviews-filters__container .dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__container .dataviews-filters__reset-button[aria-disabled=true]:hover{
+ opacity:0;
+}
+.dataviews-filters__container .dataviews-filters__reset-button[aria-disabled=true]:focus{
+ opacity:1;
}
.dataviews-filters-button{
@@ -413,8 +63,15 @@ body.is-fullscreen-mode .interface-interface-skeleton{
color:#757575;
flex-shrink:0;
left:0;
- padding:12px 32px;
+ padding:12px 48px;
position:sticky;
+ transition:padding .1s ease-out;
+}
+@media (prefers-reduced-motion:reduce){
+ .dataviews-pagination{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
}
.dataviews-pagination__page-selection{
@@ -428,14 +85,11 @@ body.is-fullscreen-mode .interface-interface-skeleton{
margin:32px 0 16px;
}
-.dataviews-view-table-wrapper{
- overflow-x:auto;
-}
-
.dataviews-view-table{
border-collapse:collapse;
border-color:inherit;
color:#757575;
+ margin-bottom:auto;
position:relative;
text-indent:0;
width:100%;
@@ -446,7 +100,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
text-decoration:none;
}
.dataviews-view-table th{
- color:var(--wp-components-color-foreground, #1e1e1e);
+ color:#1e1e1e;
font-size:13px;
font-weight:400;
text-align:left;
@@ -461,36 +115,53 @@ body.is-fullscreen-mode .interface-interface-skeleton{
.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{
padding-right:0;
}
-.dataviews-view-table td .components-checkbox-control__input-container,.dataviews-view-table th .components-checkbox-control__input-container{
- margin:4px;
-}
.dataviews-view-table tr{
border-bottom:1px solid #f0f0f0;
}
.dataviews-view-table tr .dataviews-view-table-header-button{
gap:4px;
}
+.dataviews-view-table tr td:first-child,.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:first-child,.dataviews-view-table tr th:last-child{
+ transition:padding .1s ease-out;
+}
+@media (prefers-reduced-motion:reduce){
+ .dataviews-view-table tr td:first-child,.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:first-child,.dataviews-view-table tr th:last-child{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
+}
.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{
- padding-left:32px;
+ padding-left:48px;
}
.dataviews-view-table tr td:first-child .dataviews-view-table-header,.dataviews-view-table tr td:first-child .dataviews-view-table-header-button,.dataviews-view-table tr th:first-child .dataviews-view-table-header,.dataviews-view-table tr th:first-child .dataviews-view-table-header-button{
margin-left:-8px;
}
.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{
- padding-right:32px;
+ padding-right:48px;
}
.dataviews-view-table tr:last-child{
border-bottom:0;
}
-.dataviews-view-table tr:hover{
+.dataviews-view-table tr.is-hovered{
background-color:#f8f8f8;
}
.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input{
opacity:0;
}
-.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate,.dataviews-view-table tr:focus-within .components-checkbox-control__input,.dataviews-view-table tr:hover .components-checkbox-control__input{
+.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate{
opacity:1;
}
+.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){
+ opacity:0;
+}
+.dataviews-view-table tr.is-hovered .components-checkbox-control__input,.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .components-checkbox-control__input,.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .components-checkbox-control__input,.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){
+ opacity:1;
+}
+@media (hover:none){
+ .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input,.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){
+ opacity:1;
+ }
+}
.dataviews-view-table tr.is-selected{
background-color:rgba(var(--wp-admin-theme-color--rgb), .04);
color:#757575;
@@ -527,6 +198,9 @@ body.is-fullscreen-mode .interface-interface-skeleton{
.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper>*{
flex-grow:1;
}
+.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__primary-field a{
+ flex-grow:0;
+}
.dataviews-view-table .dataviews-view-table-header-button{
font-size:11px;
font-weight:500;
@@ -553,7 +227,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
}
.dataviews-view-grid__primary-field,.dataviews-view-list__primary-field,.dataviews-view-table__primary-field{
- color:#1e1e1e;
+ color:#757575;
display:block;
font-size:13px;
font-weight:500;
@@ -562,16 +236,16 @@ body.is-fullscreen-mode .interface-interface-skeleton{
width:100%;
}
.dataviews-view-grid__primary-field a,.dataviews-view-list__primary-field a,.dataviews-view-table__primary-field a{
- color:inherit;
+ color:#1e1e1e;
display:block;
+ flex-grow:0;
overflow:hidden;
text-decoration:none;
text-overflow:ellipsis;
white-space:nowrap;
- width:100%;
}
.dataviews-view-grid__primary-field a:hover,.dataviews-view-list__primary-field a:hover,.dataviews-view-table__primary-field a:hover{
- color:#1e1e1e;
+ color:var(--wp-admin-theme-color);
}
.dataviews-view-grid__primary-field a:focus,.dataviews-view-list__primary-field a:focus,.dataviews-view-table__primary-field a:focus{
border-radius:2px;
@@ -579,7 +253,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
color:var(--wp-admin-theme-color--rgb);
}
.dataviews-view-grid__primary-field button.components-button.is-link,.dataviews-view-list__primary-field button.components-button.is-link,.dataviews-view-table__primary-field button.components-button.is-link{
- color:inherit;
+ color:#1e1e1e;
display:block;
font-weight:inherit;
overflow:hidden;
@@ -588,12 +262,27 @@ body.is-fullscreen-mode .interface-interface-skeleton{
white-space:nowrap;
width:100%;
}
+.dataviews-view-grid__primary-field button.components-button.is-link:hover,.dataviews-view-list__primary-field button.components-button.is-link:hover,.dataviews-view-table__primary-field button.components-button.is-link:hover{
+ color:var(--wp-admin-theme-color);
+}
.dataviews-view-grid{
- grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
+ grid-template-columns:repeat(1, minmax(0, 1fr)) !important;
grid-template-rows:max-content;
- margin-bottom:24px;
- padding:0 32px;
+ margin-bottom:auto;
+ padding:0 48px 24px;
+ transition:padding .1s ease-out;
+}
+@media (prefers-reduced-motion:reduce){
+ .dataviews-view-grid{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
+}
+@media (min-width:480px){
+ .dataviews-view-grid{
+ grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
+ }
}
@media (min-width:1080px){
.dataviews-view-grid{
@@ -606,30 +295,28 @@ body.is-fullscreen-mode .interface-interface-skeleton{
}
}
.dataviews-view-grid .dataviews-view-grid__card{
- border:1px solid #e0e0e0;
- border-radius:4px;
height:100%;
justify-content:flex-start;
}
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions{
- padding:4px 8px 4px 4px;
+ padding:8px 0 4px;
}
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__primary-field{
- min-height:40px;
-}
-.dataviews-view-grid .dataviews-view-grid__card.is-selected{
- background-color:rgba(var(--wp-admin-theme-color--rgb), .04);
- border-color:var(--wp-admin-theme-color);
+ min-height:32px;
}
.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{
color:#1e1e1e;
}
+.dataviews-view-grid .dataviews-view-grid__card.is-selected .page-pages-preview-field__button:after{
+ background:rgba(var(--wp-admin-theme-color--rgb), .04);
+ box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+}
.dataviews-view-grid .dataviews-view-grid__media{
aspect-ratio:1/1;
background-color:#f0f0f0;
- border-bottom:1px solid #e0e0e0;
- border-radius:3px 3px 0 0;
+ border-radius:4px;
min-height:200px;
+ position:relative;
width:100%;
}
.dataviews-view-grid .dataviews-view-grid__media img{
@@ -637,70 +324,124 @@ body.is-fullscreen-mode .interface-interface-skeleton{
object-fit:cover;
width:100%;
}
+.dataviews-view-grid .dataviews-view-grid__media:after{
+ border-radius:4px;
+ box-shadow:inset 0 0 0 1px #0000001a;
+ content:"";
+ height:100%;
+ left:0;
+ pointer-events:none;
+ position:absolute;
+ top:0;
+ width:100%;
+}
.dataviews-view-grid .dataviews-view-grid__fields{
font-size:12px;
line-height:16px;
position:relative;
}
.dataviews-view-grid .dataviews-view-grid__fields:not(:empty){
- padding:0 12px 12px;
+ padding:0 0 12px;
+}
+.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field{
+ align-items:flex-start;
+}
+.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(.is-column){
+ align-items:center;
}
-.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{
+.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(.is-column) .dataviews-view-grid__field-name{
+ width:35%;
+}
+.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(.is-column) .dataviews-view-grid__field-value{
+ overflow:hidden;
+ text-overflow:ellipsis;
+ white-space:nowrap;
+ width:65%;
+}
+.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{
color:#757575;
}
+.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty){
+ padding-bottom:12px;
+}
+.dataviews-view-grid .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value{
+ align-items:center;
+ background:#f0f0f0;
+ border-radius:2px;
+ display:flex;
+ font-size:12px;
+ min-height:24px;
+ padding:0 8px;
+ width:-moz-fit-content;
+ width:fit-content;
+}
.dataviews-view-list{
- margin:0;
- padding:8px;
+ margin:0 0 auto;
}
.dataviews-view-list li{
+ border-top:1px solid #f0f0f0;
+ cursor:pointer;
margin:0;
}
.dataviews-view-list li .dataviews-view-list__item-wrapper{
border-radius:4px;
- padding-right:24px;
position:relative;
}
-.dataviews-view-list li .dataviews-view-list__item-wrapper:after{
- background:#f0f0f0;
- content:"";
- height:1px;
- left:24px;
- position:absolute;
- right:24px;
- top:100%;
+.dataviews-view-list li .dataviews-view-list__item-wrapper>*{
+ width:100%;
+}
+.dataviews-view-list li .dataviews-view-list__item-actions .components-button{
+ opacity:0;
+ position:fixed;
+ right:0;
+}
+.dataviews-view-list li.is-hovered .dataviews-view-list__item-actions,.dataviews-view-list li.is-selected .dataviews-view-list__item-actions,.dataviews-view-list li:focus-within .dataviews-view-list__item-actions{
+ padding-right:32px;
+}
+.dataviews-view-list li.is-hovered .dataviews-view-list__item-actions .components-button,.dataviews-view-list li.is-selected .dataviews-view-list__item-actions .components-button,.dataviews-view-list li:focus-within .dataviews-view-list__item-actions .components-button{
+ opacity:1;
+ position:static;
+}
+.dataviews-view-list li.is-hovered .dataviews-view-list__item,.dataviews-view-list li.is-selected .dataviews-view-list__item,.dataviews-view-list li:focus-within .dataviews-view-list__item{
+ padding-right:0;
+}
+.dataviews-view-list li:not(.is-selected) .dataviews-view-list__primary-field{
+ color:#1e1e1e;
}
-.dataviews-view-list li:not(.is-selected):hover,.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__primary-field{
+.dataviews-view-list li:not(.is-selected):focus-within,.dataviews-view-list li:not(.is-selected):hover{
+ background-color:#f8f8f8;
color:var(--wp-admin-theme-color);
}
-.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper{
- background-color:var(--wp-admin-theme-color);
- color:#fff;
+.dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__primary-field,.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__primary-field{
+ color:var(--wp-admin-theme-color);
}
-.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .components-button,.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .components-button,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field{
- color:#fff;
+.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper{
+ background-color:rgba(var(--wp-admin-theme-color--rgb), .04);
+ color:#1e1e1e;
}
-.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper:after,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper:after{
- background:#0000;
+.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field{
+ color:var(--wp-admin-theme-color);
}
.dataviews-view-list .dataviews-view-list__item{
- cursor:pointer;
- padding:12px 0 12px 24px;
+ padding:16px 0 16px 24px;
+ scroll-margin:8px 0;
width:100%;
}
-.dataviews-view-list .dataviews-view-list__item:focus:before{
- border-radius:4px;
- bottom:-1px;
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+.dataviews-view-list .dataviews-view-list__item:focus-visible:before{
+ border-radius:2px;
+ bottom:var(--wp-admin-border-width-focus);
+ box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
content:"";
- left:-1px;
+ left:var(--wp-admin-border-width-focus);
position:absolute;
- right:-1px;
- top:-1px;
- z-index:-1;
+ right:var(--wp-admin-border-width-focus);
+ top:calc(var(--wp-admin-border-width-focus) + 1px);
}
.dataviews-view-list .dataviews-view-list__item .dataviews-view-list__primary-field{
+ line-height:20px;
min-height:20px;
+ overflow:hidden;
}
.dataviews-view-list .dataviews-view-list__media-wrapper{
background-color:#f0f0f0;
@@ -737,23 +478,19 @@ body.is-fullscreen-mode .interface-interface-skeleton{
flex-wrap:wrap;
font-size:12px;
gap:8px;
- line-height:16px;
}
-.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:empty{
+.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty){
display:none;
}
-.dataviews-view-list+.dataviews-pagination{
- justify-content:space-between;
-}
-.dataviews-view-list .dataviews-view-list__details-button{
- align-self:center;
- opacity:0;
+.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{
+ display:inline-flex;
+ line-height:20px;
}
-.dataviews-view-list li.is-selected .dataviews-view-list__details-button,.dataviews-view-list li:focus-within .dataviews-view-list__details-button,.dataviews-view-list li:hover .dataviews-view-list__details-button{
- opacity:1;
+.dataviews-view-list .dataviews-view-list__item-actions{
+ padding-right:24px;
}
-.dataviews-view-list li.is-selected .dataviews-view-list__details-button:focus{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) currentColor;
+.dataviews-view-list+.dataviews-pagination{
+ justify-content:space-between;
}
.dataviews-action-modal{
@@ -761,19 +498,32 @@ body.is-fullscreen-mode .interface-interface-skeleton{
}
.dataviews-loading,.dataviews-no-results{
- padding:0 32px;
+ align-items:center;
+ display:flex;
+ flex-grow:1;
+ justify-content:center;
+ padding:0 48px;
+ transition:padding .1s ease-out;
+}
+@media (prefers-reduced-motion:reduce){
+ .dataviews-loading,.dataviews-no-results{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
}
-.dataviews-view-table-selection-checkbox label{
- height:1px;
- margin:-1px;
- overflow:hidden;
- padding:0;
- position:absolute;
- width:1px;
- clip:rect(0, 0, 0, 0);
- border:0;
- white-space:nowrap;
+.dataviews-view-table-selection-checkbox{
+ --checkbox-input-size:24px;
+ flex-shrink:0;
+ line-height:0;
+}
+@media (min-width:600px){
+ .dataviews-view-table-selection-checkbox{
+ --checkbox-input-size:16px;
+ }
+}
+.dataviews-view-table-selection-checkbox .components-checkbox-control__input-container{
+ margin:0;
}
.dataviews-filters__custom-menu-radio-item-prefix{
@@ -785,14 +535,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
flex-shrink:0;
}
-.dataviews-view-grid__title-actions .dataviews-view-table-selection-checkbox{
- margin-left:8px;
-}
-
-.dataviews-view-grid__card.has-no-pointer-events *{
- pointer-events:none;
-}
-
.dataviews-filter-summary__popover .components-popover__content{
border-radius:4px;
padding:0;
@@ -805,7 +547,17 @@ body.is-fullscreen-mode .interface-interface-skeleton{
overflow:auto;
padding:4px;
}
-.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item{
+.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item-value [data-user-value]{
+ font-weight:600;
+}
+
+.dataviews-search-widget-listbox{
+ max-height:184px;
+ overflow:auto;
+ padding:4px;
+}
+
+.dataviews-search-widget-listitem{
align-items:center;
border-radius:2px;
box-sizing:border-box;
@@ -815,28 +567,25 @@ body.is-fullscreen-mode .interface-interface-skeleton{
margin-block-end:2px;
padding:8px 12px;
}
-.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:last-child{
+.dataviews-search-widget-listitem:last-child{
margin-block-end:0;
}
-.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:focus,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:hover,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item[data-active-item]{
- background-color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+.dataviews-search-widget-listitem:focus,.dataviews-search-widget-listitem:hover,.dataviews-search-widget-listitem[data-active-item]{
+ background-color:var(--wp-admin-theme-color);
color:#fff;
}
-.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:focus .dataviews-search-widget-filter-combobox-item-check,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:hover .dataviews-search-widget-filter-combobox-item-check,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item[data-active-item] .dataviews-search-widget-filter-combobox-item-check{
+.dataviews-search-widget-listitem:focus .dataviews-search-widget-listitem-check,.dataviews-search-widget-listitem:hover .dataviews-search-widget-listitem-check,.dataviews-search-widget-listitem[data-active-item] .dataviews-search-widget-listitem-check{
fill:#fff;
}
-.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:focus .dataviews-search-widget-filter-combobox-item-description,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:hover .dataviews-search-widget-filter-combobox-item-description,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item[data-active-item] .dataviews-search-widget-filter-combobox-item-description{
+.dataviews-search-widget-listitem:focus .dataviews-search-widget-listitem-description,.dataviews-search-widget-listitem:hover .dataviews-search-widget-listitem-description,.dataviews-search-widget-listitem[data-active-item] .dataviews-search-widget-listitem-description{
color:#fff;
}
-.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item .dataviews-search-widget-filter-combobox-item-check{
+.dataviews-search-widget-listitem .dataviews-search-widget-listitem-check{
flex-shrink:0;
height:24px;
width:24px;
}
-.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item .dataviews-search-widget-filter-combobox-item-value [data-user-value]{
- font-weight:600;
-}
-.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item .dataviews-search-widget-filter-combobox-item-description{
+.dataviews-search-widget-listitem .dataviews-search-widget-listitem-description{
color:#757575;
display:block;
font-size:12px;
@@ -899,7 +648,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
}
.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input:focus{
background:#fff;
- box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
+ box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
}
.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::placeholder{
color:#757575;
@@ -921,6 +670,10 @@ body.is-fullscreen-mode .interface-interface-skeleton{
.dataviews-filter-summary__operators-container{
padding:8px 8px 0;
}
+.dataviews-filter-summary__operators-container:has(+.dataviews-search-widget-listbox){
+ border-bottom:1px solid #e0e0e0;
+ padding-bottom:8px;
+}
.dataviews-filter-summary__operators-container:empty{
display:none;
}
@@ -937,7 +690,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
background:#f0f0f0;
border:1px solid #0000;
border-radius:16px;
- color:#757575;
+ color:#2f2f2f;
cursor:pointer;
display:flex;
height:32px;
@@ -1000,6 +753,68 @@ body.is-fullscreen-mode .interface-interface-skeleton{
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:none;
}
+@container (max-width: 430px){
+ .dataviews-filters__view-actions,.dataviews-pagination{
+ padding:12px 24px;
+ }
+
+ .dataviews-filters__view-actions .components-search-control .components-base-control__field{
+ max-width:112px;
+ }
+
+ .dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{
+ padding-left:24px;
+ }
+
+ .dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{
+ padding-right:24px;
+ }
+
+ .dataviews-loading,.dataviews-no-results,.dataviews-view-grid{
+ padding-left:24px;
+ padding-right:24px;
+ }
+}
+.dataviews-bulk-actions-toolbar-wrapper{
+ display:flex;
+ flex-grow:1;
+ width:100%;
+}
+.dataviews-bulk-actions-toolbar-wrapper .components-toolbar-group{
+ align-items:center;
+}
+.dataviews-bulk-actions-toolbar-wrapper .components-button.is-busy{
+ max-height:36px;
+}
+
+.dataviews-bulk-actions{
+ align-content:center;
+ bottom:24px;
+ display:flex;
+ flex-direction:column;
+ flex-wrap:wrap;
+ margin-left:auto;
+ margin-right:auto;
+ position:sticky;
+ width:-moz-fit-content;
+ width:fit-content;
+ z-index:2;
+}
+.dataviews-bulk-actions .components-accessible-toolbar{
+ border-color:#ddd;
+ box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;
+}
+.dataviews-bulk-actions .components-accessible-toolbar .components-toolbar-group{
+ border-color:#e0e0e0;
+}
+.dataviews-bulk-actions .components-accessible-toolbar .components-toolbar-group:last-child{
+ border:0;
+}
+.dataviews-bulk-actions .dataviews-bulk-actions__selection-count{
+ align-items:center;
+ display:flex;
+ margin:0 8px;
+}
.edit-site-custom-template-modal__contents-wrapper{
height:100%;
@@ -1076,27 +891,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
margin-bottom:4px;
}
-.edit-site-template-actions-loading-screen-modal{
- -webkit-backdrop-filter:none;
- backdrop-filter:none;
- background-color:initial;
-}
-.edit-site-template-actions-loading-screen-modal.is-full-screen{
- background-color:#fff;
- box-shadow:0 0 0 #0000;
- min-height:100%;
- min-width:100%;
-}
-.edit-site-template-actions-loading-screen-modal__content{
- align-items:center;
- display:flex;
- height:100%;
- justify-content:center;
- left:50%;
- position:absolute;
- transform:translateX(-50%);
-}
-
.edit-site-add-new-template__modal{
margin-top:64px;
max-height:calc(100% - 128px);
@@ -1165,129 +959,10 @@ body.is-fullscreen-mode .interface-interface-skeleton{
text-align:start;
}
-.edit-site-block-editor__editor-styles-wrapper .components-button{
- font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
- font-size:13px;
- padding:6px 12px;
-}
-.edit-site-block-editor__editor-styles-wrapper .components-button.has-icon,.edit-site-block-editor__editor-styles-wrapper .components-button.is-tertiary{
- padding:6px;
-}
-
-.edit-site-editor-canvas__block-list.is-navigation-block{
- padding:24px;
-}
-
-.edit-site-visual-editor{
- align-items:center;
- background-color:#ddd;
- display:block;
- height:100%;
- overflow:hidden;
- position:relative;
-}
-.edit-site-visual-editor iframe{
- background:#fff;
- display:block;
- height:100%;
- width:100%;
-}
-.edit-site-visual-editor .edit-site-visual-editor__editor-canvas.is-focused{
+.edit-site-visual-editor__editor-canvas.is-focused{
outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);
outline-offset:calc(var(--wp-admin-border-width-focus)*-2);
}
-.edit-site-layout.is-full-canvas .edit-site-visual-editor.is-focus-mode{
- padding:24px;
-}
-.edit-site-visual-editor.is-focus-mode .edit-site-visual-editor__editor-canvas{
- border-radius:2px;
- max-height:100%;
-}
-.edit-site-visual-editor.is-focus-mode .components-resizable-box__container{
- overflow:visible;
-}
-.edit-site-visual-editor .components-resizable-box__container{
- margin:0 auto;
- overflow:auto;
-}
-.edit-site-visual-editor.is-view-mode{
- box-shadow:0 20px 25px -5px #000c,0 8px 10px -6px #000c;
-}
-
-.resizable-editor__drag-handle{
- -webkit-appearance:none;
- appearance:none;
- background:none;
- border:0;
- border-radius:2px;
- bottom:0;
- cursor:ew-resize;
- margin:auto 0;
- outline:none;
- padding:0;
- position:absolute;
- top:0;
- width:12px;
-}
-.resizable-editor__drag-handle.is-variation-default{
- height:100px;
-}
-.resizable-editor__drag-handle.is-variation-separator{
- height:100%;
- right:0;
- width:24px;
-}
-.resizable-editor__drag-handle.is-variation-separator:after{
- background:#0000;
- border-radius:0;
- left:50%;
- right:0;
- transform:translateX(-1px);
- transition:all .2s ease;
- transition-delay:.1s;
- width:2px;
-}
-@media (prefers-reduced-motion:reduce){
- .resizable-editor__drag-handle.is-variation-separator:after{
- animation-delay:0s;
- animation-duration:1ms;
- transition-delay:0s;
- transition-duration:0s;
- }
-}
-.resizable-editor__drag-handle:after{
- background:#949494;
- border-radius:2px;
- bottom:24px;
- content:"";
- left:4px;
- position:absolute;
- right:0;
- top:24px;
- width:4px;
-}
-.resizable-editor__drag-handle.is-left{
- left:-16px;
-}
-.resizable-editor__drag-handle.is-right{
- right:-16px;
-}
-.resizable-editor__drag-handle:active,.resizable-editor__drag-handle:hover{
- opacity:1;
-}
-.resizable-editor__drag-handle:active.is-variation-default:after,.resizable-editor__drag-handle:hover.is-variation-default:after{
- background:#ccc;
-}
-.resizable-editor__drag-handle:active.is-variation-separator:after,.resizable-editor__drag-handle:hover.is-variation-separator:after{
- background:var(--wp-admin-theme-color);
-}
-.resizable-editor__drag-handle:focus:after{
- box-shadow:0 0 0 1px #2f2f2f, 0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color);
-}
-.resizable-editor__drag-handle.is-variation-separator:focus:after{
- border-radius:2px;
- box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color);
-}
.edit-site-canvas-loader{
align-items:center;
@@ -1320,95 +995,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
opacity:1;
}
}
-.edit-site-code-editor{
- background-color:#fff;
- min-height:100%;
- position:relative;
- width:100%;
-}
-.edit-site-code-editor__body{
- margin-left:auto;
- margin-right:auto;
- max-width:1080px;
- padding:12px;
- width:100%;
-}
-@media (min-width:960px){
- .edit-site-code-editor__body{
- padding:24px;
- }
-}
-.edit-site-code-editor__toolbar{
- background:#fffc;
- display:flex;
- left:0;
- padding:4px 12px;
- position:sticky;
- right:0;
- top:0;
- z-index:1;
-}
-@media (min-width:600px){
- .edit-site-code-editor__toolbar{
- padding:12px;
- }
-}
-@media (min-width:960px){
- .edit-site-code-editor__toolbar{
- padding:12px 24px;
- }
-}
-.edit-site-code-editor__toolbar h2{
- color:#1e1e1e;
- font-size:13px;
- line-height:36px;
- margin:0 auto 0 0;
-}
-
-textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{
- border:1px solid #949494;
- border-radius:0;
- box-shadow:none;
- display:block;
- font-family:Menlo,Consolas,monaco,monospace;
- font-size:16px !important;
- line-height:2.4;
- margin:0;
- min-height:200px;
- overflow:hidden;
- padding:16px;
- resize:none;
- transition:border .1s ease-out,box-shadow .1s linear;
- width:100%;
-}
-@media (prefers-reduced-motion:reduce){
- textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{
- transition-delay:0s;
- transition-duration:0s;
- }
-}
-@media (min-width:600px){
- textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{
- font-size:15px !important;
- padding:24px;
- }
-}
-textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:focus{
- border-color:var(--wp-admin-theme-color);
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
- position:relative;
-}
-textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-webkit-input-placeholder{
- color:#1e1e1e9e;
-}
-textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-moz-placeholder{
- color:#1e1e1e9e;
- opacity:1;
-}
-textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-input-placeholder{
- color:#1e1e1e9e;
-}
-
.edit-site-global-styles-preview{
align-items:center;
cursor:pointer;
@@ -1420,6 +1006,7 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
.edit-site-global-styles-preview__iframe{
display:block;
max-width:100%;
+ width:100%;
}
.edit-site-typography-preview{
@@ -1438,8 +1025,8 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
max-width:100%;
}
-.edit-site-global-styles-screen-css,.edit-site-global-styles-screen-typography{
- margin:16px;
+.edit-site-global-styles-screen{
+ margin:12px 16px 16px;
}
.edit-site-global-styles-screen-typography__indicator{
@@ -1460,13 +1047,12 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
justify-content:center;
}
-.edit-site-global-styles-screen-colors{
- margin:16px;
-}
-.edit-site-global-styles-screen-colors .color-block-support-panel{
+.edit-site-global-styles-screen .color-block-support-panel{
border-top:none;
padding-left:0;
padding-right:0;
+ padding-top:0;
+ row-gap:12px;
}
.edit-site-global-styles-header__description{
@@ -1497,31 +1083,6 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
padding:16px 16px 0;
}
-.edit-site-global-styles-variations_item{
- border-radius:2px;
- box-sizing:border-box;
-}
-.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{
- border-radius:2px;
- box-shadow:0 0 0 1px #e0e0e0;
- outline:1px solid #0000;
- padding:2px;
-}
-.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{
- box-shadow:0 0 0 1px #1e1e1e;
- outline-width:3px;
-}
-.edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{
- box-shadow:0 0 0 1px var(--wp-admin-theme-color);
-}
-.edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
-}
-.edit-site-global-styles-variations_item:focus-visible{
- outline:3px solid #0000;
- outline-offset:0;
-}
-
.edit-site-global-styles-icon-with-current-color{
fill:currentColor;
}
@@ -1531,6 +1092,10 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
height:24px;
}
+.edit-site-global-styles__shadows-panel__options-container,.edit-site-global-styles__shadows-panel__title{
+ height:24px;
+}
+
.edit-site-global-styles__block-preview-panel{
border:1px solid #e0e0e0;
border-radius:2px;
@@ -1539,10 +1104,53 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
width:100%;
}
+.edit-site-global-styles__shadow-preview-panel{
+ background-image:repeating-linear-gradient(45deg, #f5f5f5 25%, #0000 0, #0000 75%, #f5f5f5 0, #f5f5f5), repeating-linear-gradient(45deg, #f5f5f5 25%, #0000 0, #0000 75%, #f5f5f5 0, #f5f5f5);
+ background-position:0 0, 8px 8px;
+ background-size:16px 16px;
+ border:1px solid #e0e0e0;
+ border-radius:2px;
+ height:150px;
+ overflow:auto;
+}
+.edit-site-global-styles__shadow-preview-panel .edit-site-global-styles__shadow-preview-block{
+ background-color:#fff;
+ border:1px solid #e0e0e0;
+ border-radius:2px;
+ height:60px;
+ width:60%;
+}
+
+.edit-site-global-styles__shadow-editor-panel{
+ margin-bottom:4px;
+ padding:16px;
+ width:280px;
+}
+.edit-site-global-styles__shadow-editor-panel .edit-site-global-styles__shadow-editor-color-palette{
+ margin-bottom:-4px;
+}
+
+.edit-site-global-styles__shadow-editor__dropdown{
+ width:100%;
+}
+.edit-site-global-styles__shadow-editor__dropdown .edit-site-global-styles__shadow-editor__dropdown-toggle,.edit-site-global-styles__shadow-editor__dropdown .edit-site-global-styles__shadow-editor__remove-button{
+ border-radius:inherit;
+ height:auto;
+ padding-bottom:8px;
+ padding-top:8px;
+ text-align:left;
+ width:100%;
+}
+.edit-site-global-styles__shadow-editor__dropdown .edit-site-global-styles__shadow-editor__dropdown-toggle.is-open,.edit-site-global-styles__shadow-editor__dropdown .edit-site-global-styles__shadow-editor__remove-button.is-open{
+ background:#f0f0f0;
+ color:var(--wp-admin-theme-color);
+}
+
.edit-site-global-styles-screen-css{
display:flex;
flex:1 1 auto;
flex-direction:column;
+ margin:16px;
}
.edit-site-global-styles-screen-css .components-v-stack{
flex:1 1 auto;
@@ -1558,7 +1166,7 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
}
.edit-site-global-styles-screen-css-help-link{
- display:block;
+ display:inline-block;
margin-top:8px;
}
@@ -1624,7 +1232,7 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
.edit-site-global-styles-screen-revisions__revision-item.is-selected{
background:rgba(var(--wp-admin-theme-color--rgb), .04);
border-radius:2px;
- color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
+ color:var(--wp-admin-theme-color);
outline:3px solid #0000;
outline-offset:-2px;
}
@@ -1635,7 +1243,7 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
color:var(--wp-admin-theme-color);
}
.edit-site-global-styles-screen-revisions__revision-item.is-selected:before{
- background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
+ background:var(--wp-admin-theme-color);
}
.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__changes>li,.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__meta{
color:#1e1e1e;
@@ -1731,17 +1339,10 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
}
.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary{
color:#1e1e1e;
- font-size:28px;
- font-weight:200;
- line-height:1.2;
- margin-bottom:4px;
}
-.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:disabled{
+.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:disabled,.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{
color:#949494;
}
-.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:hover{
- background:#0000;
-}
.edit-site-global-styles-screen-revisions__footer{
background:#fff;
@@ -1754,396 +1355,129 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
z-index:1;
}
-.edit-site-header-edit-mode{
- align-items:center;
- background-color:#fff;
- border-bottom:1px solid #e0e0e0;
- box-sizing:border-box;
- color:#1e1e1e;
- display:flex;
- height:60px;
- justify-content:space-between;
- padding-left:60px;
- width:100%;
-}
-.edit-site-header-edit-mode .edit-site-header-edit-mode__start{
- align-items:center;
- border:none;
- display:flex;
- flex-shrink:2;
- height:100%;
- overflow:hidden;
+.editor-sidebar{
+ width:280px;
}
-@media (min-width:782px){
- .edit-site-header-edit-mode .edit-site-header-edit-mode__start{
- padding-right:2px;
- }
+.editor-sidebar>.components-panel{
+ border-left:0;
+ border-right:0;
+ margin-bottom:-1px;
+ margin-top:-1px;
}
-.edit-site-header-edit-mode .edit-site-header-edit-mode__end{
- display:flex;
- justify-content:flex-end;
+.editor-sidebar>.components-panel>.components-panel__header{
+ background:#f0f0f0;
}
-.edit-site-header-edit-mode .edit-site-header-edit-mode__center{
- align-items:center;
- display:flex;
- flex-grow:1;
- height:100%;
- justify-content:center;
- margin:0 16px;
- min-width:0;
+.editor-sidebar .block-editor-block-inspector__card{
+ margin:0;
}
-.edit-site-header-edit-mode__toolbar{
- align-items:center;
+.edit-site-global-styles-sidebar{
display:flex;
- gap:8px;
- padding-left:16px;
-}
-@media (min-width:782px){
- .edit-site-header-edit-mode__toolbar{
- padding-left:20px;
- }
-}
-@media (min-width:1280px){
- .edit-site-header-edit-mode__toolbar{
- padding-right:8px;
- }
-}
-.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{
- transition:transform .2s cubic-bezier(.165, .84, .44, 1);
-}
-@media (prefers-reduced-motion:reduce){
- .edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{
- transition-delay:0s;
- transition-duration:0s;
- }
-}
-.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle.is-pressed svg{
- transform:rotate(45deg);
-}
-.edit-site-header-edit-mode__actions{
- align-items:center;
- display:inline-flex;
- flex-wrap:nowrap;
- gap:8px;
- padding-right:4px;
-}
-@media (min-width:600px){
- .edit-site-header-edit-mode__actions{
- padding-right:8px;
- }
+ flex-direction:column;
+ min-height:100%;
}
-
-.edit-site-header-edit-mode__preview-options{
- opacity:1;
- transition:opacity .3s;
+.edit-site-global-styles-sidebar__navigator-provider,.edit-site-global-styles-sidebar__panel{
+ display:flex;
+ flex:1;
+ flex-direction:column;
}
-.edit-site-header-edit-mode__preview-options.is-zoomed-out{
- opacity:0;
+.edit-site-global-styles-sidebar__navigator-screen{
+ flex:1;
}
-.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon{
- width:auto;
-}
-.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon svg{
- display:none;
-}
-.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon:after{
- content:attr(aria-label);
-}
-.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon[aria-disabled=true]{
- background-color:initial;
-}
-.edit-site-header-edit-mode.show-icon-labels .is-tertiary:active{
- background-color:initial;
- box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);
-}
-.edit-site-header-edit-mode.show-icon-labels .edit-site-save-button__button{
- padding-left:6px;
- padding-right:6px;
-}
-.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info:after{
- content:none;
-}
-.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info,.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__inserter-toggle.edit-site-header-edit-mode__inserter-toggle{
- height:36px;
- padding:0 8px;
-}
-.edit-site-header-edit-mode.show-icon-labels .block-editor-block-mover{
- border-left:none;
-}
-.edit-site-header-edit-mode.show-icon-labels .block-editor-block-mover:before{
- background-color:#ddd;
- content:"";
- height:24px;
- margin-left:8px;
- margin-top:4px;
- width:1px;
-}
-.edit-site-header-edit-mode.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container:before{
- background:#ddd;
- left:calc(50% + 1px);
- width:calc(100% - 24px);
+.edit-site-global-styles-sidebar .edit-site-global-styles-sidebar__header-title{
+ margin:0;
}
-.has-fixed-toolbar .selected-block-tools-wrapper{
- align-items:center;
- display:flex;
- height:60px;
- overflow:hidden;
-}
-.has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-contextual-toolbar{
- border-bottom:0;
- height:100%;
-}
-.has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-toolbar{
- height:100%;
- padding-top:15px;
-}
-.has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){
- height:32px;
-}
-.has-fixed-toolbar .selected-block-tools-wrapper:after{
- background-color:#ddd;
- content:"";
- height:24px;
- margin-left:8px;
- width:1px;
-}
-.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar,.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar-group{
- border-right:none;
-}
-.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar-group:after,.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar:after{
- background-color:#ddd;
- content:"";
- height:24px;
- margin-left:8px;
- margin-top:4px;
- width:1px;
-}
-.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar .components-toolbar-group.components-toolbar-group:after,.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{
- display:none;
-}
-.has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{
- height:32px;
- overflow:visible;
-}
-@media (min-width:600px){
- .has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{
- position:relative;
- top:-10px;
- }
-}
-.has-fixed-toolbar .edit-site-header-edit-mode__center.is-collapsed,.has-fixed-toolbar .selected-block-tools-wrapper.is-collapsed{
- display:none;
+.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{
+ font-size:15.6px;
+ font-weight:500;
}
-.edit-site-header-edit-mode__block-tools-toggle{
- margin-left:2px;
+.edit-site-global-styles-sidebar .components-navigation__item>button span{
+ font-weight:500;
}
-.edit-site-list-header{
- align-items:center;
- box-sizing:border-box;
- display:flex;
- height:60px;
- justify-content:flex-end;
- padding-right:16px;
- position:relative;
- width:100%;
-}
-body.is-fullscreen-mode .edit-site-list-header{
- padding-left:60px;
- transition:padding-left 20ms linear;
- transition-delay:80ms;
-}
-@media (prefers-reduced-motion:reduce){
- body.is-fullscreen-mode .edit-site-list-header{
- transition-delay:0s;
- transition-duration:0s;
- }
-}
-.edit-site-list-header .edit-site-list-header__title{
- font-size:20px;
- left:0;
- margin:0;
- padding:0;
- position:absolute;
- text-align:center;
- width:100%;
+.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{
+ border:0;
}
-.edit-site-list-header__right{
- position:relative;
+.edit-site-global-styles-sidebar .single-column{
+ grid-column:span 1;
}
-.edit-site .edit-site-list{
- background:#fff;
- border-radius:8px;
- box-shadow:0 20px 25px -5px #000c,0 8px 10px -6px #000c;
- flex-grow:1;
-}
-.edit-site .edit-site-list .interface-interface-skeleton__editor{
- min-width:100%;
-}
-@media (min-width:782px){
- .edit-site .edit-site-list .interface-interface-skeleton__editor{
- min-width:0;
- }
-}
-.edit-site .edit-site-list .interface-interface-skeleton__content{
- align-items:center;
- background:#fff;
- padding:16px;
-}
-@media (min-width:782px){
- .edit-site .edit-site-list .interface-interface-skeleton__content{
- padding:72px;
- }
+.edit-site-global-styles-sidebar .components-tools-panel .span-columns{
+ grid-column:1 / -1;
}
-.edit-site-list-table{
- border:1px solid #ddd;
- border-radius:2px;
- border-spacing:0;
- margin:0 auto;
- max-width:960px;
- min-width:100%;
- overflow:hidden;
-}
-.edit-site-list-table tr{
- align-items:center;
- border-top:1px solid #f0f0f0;
- box-sizing:border-box;
- display:flex;
- margin:0;
- padding:16px;
-}
-.edit-site-list-table tr:first-child{
- border-top:0;
-}
-@media (min-width:782px){
- .edit-site-list-table tr{
- padding:24px 32px;
- }
-}
-.edit-site-list-table tr .edit-site-list-table-column:first-child{
- padding-right:24px;
- width:calc(60% - 18px);
-}
-.edit-site-list-table tr .edit-site-list-table-column:first-child a{
- display:inline-block;
- font-weight:500;
- margin-bottom:4px;
- text-decoration:none;
-}
-.edit-site-list-table tr .edit-site-list-table-column:nth-child(2){
- width:calc(40% - 18px);
- word-break:break-word;
-}
-.edit-site-list-table tr .edit-site-list-table-column:nth-child(3){
- flex-shrink:0;
- min-width:36px;
-}
-.edit-site-list-table tr.edit-site-list-table-head{
- border-bottom:1px solid #ddd;
- border-top:none;
- color:#1e1e1e;
- font-size:16px;
- font-weight:600;
- text-align:left;
-}
-.edit-site-list-table tr.edit-site-list-table-head th{
- font-weight:inherit;
+.edit-site-global-styles-sidebar__blocks-group{
+ border-top:1px solid #e0e0e0;
+ padding-top:24px;
}
-@media (min-width:782px){
- .edit-site-list.is-navigation-open .components-snackbar-list{
- margin-left:360px;
- }
+.edit-site-global-styles-sidebar__blocks-group-help{
+ padding:0 16px;
}
-.edit-site-list__rename-modal{
- z-index:1000001;
-}
-@media (min-width:782px){
- .edit-site-list__rename-modal .components-base-control{
- width:320px;
- }
+.edit-site-global-styles-color-palette-panel,.edit-site-global-styles-gradient-palette-panel{
+ padding:16px;
}
-.edit-site-template__actions button:not(:last-child){
- margin-right:8px;
+.edit-site-global-styles-sidebar hr{
+ margin:0;
}
-.edit-site-list-added-by__icon{
- display:flex;
- flex-shrink:0;
- height:24px;
- width:24px;
+.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{
+ display:none;
}
-.edit-site-list-added-by__icon svg{
- fill:currentColor;
+.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{
+ content:attr(aria-label);
+ font-size:12px;
}
-.edit-site-list-added-by__avatar{
- align-items:center;
- display:flex;
- flex-shrink:0;
- height:24px;
- justify-content:center;
- overflow:hidden;
- width:24px;
-}
-.edit-site-list-added-by__avatar img{
- border-radius:100%;
- height:20px;
- object-fit:cover;
- opacity:0;
- transition:opacity .1s linear;
- width:20px;
+.edit-site-page{
+ background:#fff;
+ color:#2f2f2f;
+ container:edit-site-page/inline-size;
+ height:100%;
+ transition:width .2s ease-out;
}
@media (prefers-reduced-motion:reduce){
- .edit-site-list-added-by__avatar img{
+ .edit-site-page{
transition-delay:0s;
transition-duration:0s;
}
}
-.edit-site-list-added-by__avatar.is-loaded img{
- opacity:1;
-}
-
-.edit-site-list-added-by__customized-info{
- color:#757575;
- display:block;
-}
-
-.edit-site-page{
- background:#fff;
- color:#2f2f2f;
- height:100%;
-}
.edit-site-page-header{
background:#fff;
border-bottom:1px solid #f0f0f0;
- min-height:72px;
- padding:16px 32px;
+ padding:16px 48px;
position:sticky;
top:0;
+ transition:padding .1s ease-out;
z-index:2;
}
-.edit-site-page-header .components-text{
- color:#2f2f2f;
+@media (prefers-reduced-motion:reduce){
+ .edit-site-page-header{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
}
.edit-site-page-header .components-heading{
color:#1e1e1e;
}
+.edit-site-page-header .edit-site-page-header__page-title{
+ min-height:40px;
+}
.edit-site-page-header .edit-site-page-header__sub-title{
- color:#757575;
- margin-top:8px;
+ margin-bottom:8px;
+}
+@container (max-width: 430px){
+ .edit-site-page-header{
+ padding:16px 24px;
+ }
}
-
.edit-site-page-content{
display:flex;
flex-flow:column;
@@ -2152,23 +1486,18 @@ body.is-fullscreen-mode .edit-site-list-header{
z-index:1;
}
-.page-pages-preview-field__button{
- background-color:unset;
- border:none;
- border-radius:3px 3px 0 0;
- box-shadow:none;
- box-sizing:border-box;
- cursor:pointer;
+.edit-site-page-pages__featured-image{
height:100%;
- overflow:hidden;
- padding:0;
+ object-fit:cover;
width:100%;
}
-.page-pages-preview-field__button:focus-visible{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
- outline:2px solid #0000;
+
+.edit-site-page-pages__featured-image-wrapper{
+ border-radius:4px;
+ height:100%;
+ width:100%;
}
-.page-pages-preview-field__button.edit-site-page-pages__media-wrapper{
+.edit-site-page-pages__featured-image-wrapper.is-layout-table .page-pages-preview-field__button,.edit-site-page-pages__featured-image-wrapper.is-layout-table:not(:has(.page-pages-preview-field__button)){
background-color:#f0f0f0;
border-radius:4px;
display:block;
@@ -2178,12 +1507,7 @@ body.is-fullscreen-mode .edit-site-list-header{
position:relative;
width:32px;
}
-.page-pages-preview-field__button.edit-site-page-pages__media-wrapper .edit-site-page-pages__featured-image{
- height:100%;
- object-fit:cover;
- width:100%;
-}
-.page-pages-preview-field__button.edit-site-page-pages__media-wrapper:after{
+.edit-site-page-pages__featured-image-wrapper.is-layout-table .page-pages-preview-field__button:after,.edit-site-page-pages__featured-image-wrapper.is-layout-table:not(:has(.page-pages-preview-field__button)):after{
border-radius:4px;
box-shadow:inset 0 0 0 1px #0000001a;
content:"";
@@ -2194,166 +1518,42 @@ body.is-fullscreen-mode .edit-site-list-header{
width:100%;
}
-.edit-site-patterns{
- background:#1e1e1e;
- border-left:1px solid #2f2f2f;
- border-radius:0;
- margin:60px 0 0;
- min-height:100%;
- overflow-x:auto;
- padding:0;
-}
-.edit-site-patterns .components-base-control{
- width:100%;
-}
-@media (min-width:782px){
- .edit-site-patterns .components-base-control{
- width:auto;
- }
-}
-.edit-site-patterns .components-text{
- color:#949494;
-}
-.edit-site-patterns .components-heading{
- color:#e0e0e0;
-}
-@media (min-width:782px){
- .edit-site-patterns{
- margin:0;
- }
-}
-.edit-site-patterns .edit-site-patterns__search-block{
- flex-grow:1;
- min-width:-moz-fit-content;
- min-width:fit-content;
-}
-.edit-site-patterns .edit-site-patterns__search{
- --wp-components-color-foreground:#e0e0e0;
-}
-.edit-site-patterns .edit-site-patterns__search .components-input-control__container{
- background:#2f2f2f;
-}
-.edit-site-patterns .edit-site-patterns__search svg{
- fill:#949494;
-}
-.edit-site-patterns .edit-site-patterns__sync-status-filter{
- background:#2f2f2f;
- border:none;
- height:40px;
- max-width:100%;
- min-width:max-content;
- width:100%;
-}
-@media (min-width:782px){
- .edit-site-patterns .edit-site-patterns__sync-status-filter{
- width:300px;
- }
-}
-.edit-site-patterns .edit-site-patterns__sync-status-filter-option:not([aria-checked=true]){
- color:#949494;
-}
-.edit-site-patterns .edit-site-patterns__sync-status-filter-option:active{
- background:#757575;
- color:#f0f0f0;
-}
-
-.edit-site-patterns__header{
- background:#1e1e1e;
- padding:32px 32px 16px;
- position:sticky;
- top:0;
- z-index:2;
-}
-.edit-site-patterns__header .edit-site-patterns__button{
- color:#949494;
-}
-
-.edit-site-patterns__section{
- flex:1;
- padding:24px 32px;
-}
-
-.edit-site-patterns__section-header .screen-reader-shortcut:focus{
- top:0;
-}
-
-.edit-site-patterns__grid{
- display:grid;
- gap:32px;
- grid-template-columns:1fr;
- margin-bottom:0;
- margin-top:0;
-}
-@media (min-width:960px){
- .edit-site-patterns__grid{
- grid-template-columns:1fr 1fr;
- }
-}
-@media (min-width:1440px){
- .edit-site-patterns__grid{
- grid-template-columns:1fr 1fr 1fr;
- }
-}
-@media (min-width:1920px){
- .edit-site-patterns__grid{
- grid-template-columns:1fr 1fr 1fr 1fr;
- }
-}
-.edit-site-patterns__grid .edit-site-patterns__pattern{
- break-inside:avoid-column;
- display:flex;
- flex-direction:column;
-}
-.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview{
+.page-pages-preview-field__button{
background-color:unset;
border:none;
border-radius:4px;
box-shadow:none;
box-sizing:border-box;
cursor:pointer;
+ height:100%;
overflow:hidden;
padding:0;
+ width:100%;
}
-.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview:focus{
- box-shadow:inset 0 0 0 0 #fff, 0 0 0 2px var(--wp-admin-theme-color);
+.page-pages-preview-field__button:focus-visible{
+ box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:2px solid #0000;
}
-.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive{
- cursor:default;
-}
-.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive:focus{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) #2f2f2f;
- opacity:.8;
-}
-.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__button,.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__footer{
- color:#949494;
+
+.edit-site-page-pages-title span{
+ overflow:hidden;
+ text-overflow:ellipsis;
}
-.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__dropdown{
+
+.edit-site-page-pages__title-badge{
+ background:#f0f0f0;
+ border-radius:2px;
+ color:#757575;
flex-shrink:0;
-}
-.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview{
- align-items:center;
- border:1px dashed #2f2f2f;
- color:#949494;
- display:flex;
- justify-content:center;
- min-height:64px;
-}
-.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview:focus{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
-}
-.edit-site-patterns__grid .edit-site-patterns__preview{
- flex:0 1 auto;
- margin-bottom:12px;
+ font-size:12px;
+ font-weight:400;
+ padding:0 4px;
}
-.edit-site-patterns__load-more{
- align-self:center;
+.edit-site-patterns__section-header .screen-reader-shortcut:focus{
+ top:0;
}
-.edit-site-patterns__pattern-title{
- color:#e0e0e0;
-}
.edit-site-patterns__pattern-title .is-link{
color:#e0e0e0;
text-decoration:none;
@@ -2370,56 +1570,27 @@ body.is-fullscreen-mode .edit-site-list-header{
fill:currentcolor;
}
-.edit-site-patterns__no-results{
- color:#949494;
-}
-
.edit-site-patterns__delete-modal{
width:384px;
}
-.edit-site-patterns__pagination{
- background:#1e1e1e;
- border-top:1px solid #2f2f2f;
- bottom:0;
- color:#f0f0f0;
- padding:24px 32px;
- position:sticky;
- z-index:2;
-}
-.edit-site-patterns__pagination .components-button.is-tertiary{
- background-color:#2f2f2f;
- color:#f0f0f0;
-}
-.edit-site-patterns__pagination .components-button.is-tertiary:disabled{
- background:none;
- color:#949494;
-}
-.edit-site-patterns__pagination .components-button.is-tertiary:hover:not(:disabled){
- background-color:#757575;
-}
-.edit-site-page-patterns-dataviews{
- margin-top:60px;
-}
-@media (min-width:782px){
- .edit-site-page-patterns-dataviews{
- margin-top:0;
- }
-}
.edit-site-page-patterns-dataviews .page-patterns-preview-field{
- border-radius:3px 3px 0 0;
display:flex;
flex-direction:column;
height:100%;
}
-.edit-site-page-patterns-dataviews .page-patterns-preview-field.is-viewtype-grid .block-editor-block-preview__container{
- border-radius:3px 3px 0 0;
- height:100%;
+.edit-site-page-patterns-dataviews .page-patterns-preview-field.is-viewtype-table{
+ border-radius:2px;
+ flex-grow:0;
+ width:96px;
+}
+.edit-site-page-patterns-dataviews .page-patterns-preview-field.is-viewtype-table .page-patterns-preview-field__button{
+ border-radius:2px;
}
.edit-site-page-patterns-dataviews .page-patterns-preview-field .page-patterns-preview-field__button{
background-color:unset;
border:none;
- border-radius:3px 3px 0 0;
+ border-radius:4px;
box-shadow:none;
box-sizing:border-box;
cursor:pointer;
@@ -2431,6 +1602,9 @@ body.is-fullscreen-mode .edit-site-list-header{
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:2px solid #0000;
}
+.edit-site-page-patterns-dataviews .page-patterns-preview-field .page-patterns-preview-field__button[aria-disabled=true]{
+ cursor:default;
+}
.edit-site-page-patterns-dataviews .edit-site-patterns__pattern-icon{
fill:var(--wp-block-synced-color);
flex-shrink:0;
@@ -2440,12 +1614,26 @@ body.is-fullscreen-mode .edit-site-list-header{
}
.edit-site-page-patterns-dataviews .edit-site-patterns__section-header{
border-bottom:1px solid #f0f0f0;
- min-height:72px;
- padding:16px 32px;
+ flex-shrink:0;
+ min-height:40px;
+ padding:16px 48px;
position:sticky;
top:0;
+ transition:padding .1s ease-out;
z-index:2;
}
+@media (prefers-reduced-motion:reduce){
+ .edit-site-page-patterns-dataviews .edit-site-patterns__section-header{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
+}
+.edit-site-page-patterns-dataviews .edit-site-patterns__section-header .edit-site-patterns__title{
+ min-height:40px;
+}
+.edit-site-page-patterns-dataviews .edit-site-patterns__section-header .edit-site-patterns__sub-title{
+ margin-bottom:8px;
+}
.edit-site-page-patterns-dataviews .edit-site-patterns__pattern-title{
color:inherit;
display:block;
@@ -2457,6 +1645,10 @@ body.is-fullscreen-mode .edit-site-list-header{
.edit-site-page-patterns-dataviews .dataviews-pagination{
z-index:2;
}
+.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.edit-site-patterns__field-sync-status-fully){
+ background:rgba(var(--wp-block-synced-color--rgb), .04);
+ color:var(--wp-block-synced-color);
+}
.dataviews-action-modal__duplicate-pattern [role=dialog]>[role=document]{
width:350px;
@@ -2484,9 +1676,13 @@ body.is-fullscreen-mode .edit-site-list-header{
max-width:500px;
}
}
-
+@container (max-width: 430px){
+ .edit-site-page-patterns-dataviews .edit-site-patterns__section-header{
+ padding-left:24px;
+ padding-right:24px;
+ }
+}
.page-templates-preview-field{
- border-radius:3px 3px 0 0;
display:flex;
flex-direction:column;
height:100%;
@@ -2494,7 +1690,7 @@ body.is-fullscreen-mode .edit-site-list-header{
.page-templates-preview-field .page-templates-preview-field__button{
background-color:unset;
border:none;
- border-radius:3px;
+ border-radius:4px;
box-shadow:none;
box-sizing:border-box;
cursor:pointer;
@@ -2510,10 +1706,7 @@ body.is-fullscreen-mode .edit-site-list-header{
height:120px;
}
.page-templates-preview-field.is-viewtype-grid .block-editor-block-preview__container{
- height:auto;
-}
-.page-templates-preview-field.is-viewtype-grid .page-templates-preview-field__button{
- border-radius:3px 3px 0 0;
+ height:100%;
}
.page-templates-preview-field.is-viewtype-table{
border-radius:2px;
@@ -2534,10 +1727,61 @@ body.is-fullscreen-mode .edit-site-list-header{
white-space:normal;
}
-.edit-site-page-template-template-parts-dataviews .dataviews-pagination{
+.edit-site-page-templates .dataviews-pagination{
z-index:2;
}
+.page-templates-author-field__avatar{
+ align-items:center;
+ display:flex;
+ flex-shrink:0;
+ height:24px;
+ justify-content:center;
+ overflow:hidden;
+ width:24px;
+}
+.page-templates-author-field__avatar img{
+ border-radius:100%;
+ height:20px;
+ object-fit:cover;
+ opacity:0;
+ transition:opacity .1s linear;
+ width:20px;
+}
+@media (prefers-reduced-motion:reduce){
+ .page-templates-author-field__avatar img{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
+}
+.page-templates-author-field__avatar.is-loaded img{
+ opacity:1;
+}
+
+.page-templates-author-field__icon{
+ display:flex;
+ flex-shrink:0;
+ height:24px;
+ width:24px;
+}
+.page-templates-author-field__icon svg{
+ fill:currentColor;
+}
+
+.page-templates-author-field__name{
+ overflow:hidden;
+ text-overflow:ellipsis;
+}
+
+.edit-site-list__rename-modal{
+ z-index:1000001;
+}
+@media (min-width:782px){
+ .edit-site-list__rename-modal .components-base-control{
+ width:320px;
+ }
+}
+
.edit-site-table-wrapper{
padding:32px;
width:100%;
@@ -2576,230 +1820,19 @@ body.is-fullscreen-mode .edit-site-list-header{
border-bottom:1px solid #f0f0f0;
}
-.edit-site-sidebar-edit-mode{
- width:280px;
-}
-.edit-site-sidebar-edit-mode>.components-panel{
- border-left:0;
- border-right:0;
- margin-bottom:-1px;
- margin-top:-1px;
-}
-.edit-site-sidebar-edit-mode>.components-panel>.components-panel__header{
- background:#f0f0f0;
-}
-.edit-site-sidebar-edit-mode .block-editor-block-inspector__card{
- margin:0;
-}
-
-.edit-site-global-styles-sidebar{
- display:flex;
- flex-direction:column;
- min-height:100%;
-}
-.edit-site-global-styles-sidebar__navigator-provider,.edit-site-global-styles-sidebar__panel{
- display:flex;
- flex:1;
- flex-direction:column;
-}
-.edit-site-global-styles-sidebar__navigator-screen{
- flex:1;
-}
-
-.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon{
- margin-left:0;
-}
-
-.edit-site-global-styles-sidebar__reset-button.components-button{
- margin-left:auto;
-}
-
-.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{
- font-size:15.6px;
- font-weight:500;
-}
-
-.edit-site-global-styles-sidebar .components-navigation__item>button span{
- font-weight:500;
-}
-
-.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{
- border:0;
-}
-
-.edit-site-global-styles-sidebar .single-column{
- grid-column:span 1;
-}
-
-.edit-site-global-styles-sidebar .components-tools-panel .span-columns{
- grid-column:1 / -1;
-}
-
-.edit-site-global-styles-sidebar__blocks-group{
- border-top:1px solid #e0e0e0;
- padding-top:24px;
-}
-
-.edit-site-global-styles-sidebar__blocks-group-help{
- padding:0 16px;
-}
-
-.edit-site-global-styles-color-palette-panel,.edit-site-global-styles-gradient-palette-panel{
- padding:16px;
-}
-
-.edit-site-global-styles-sidebar hr{
- margin:0;
-}
-
-.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{
- display:none;
-}
-.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{
- content:attr(aria-label);
- font-size:12px;
-}
-
-.edit-site-sidebar__panel{
- margin-top:-1px;
-}
-
-.edit-site-page-panels__swap-template__confirm-modal__actions{
- margin-top:24px;
-}
-
-.edit-site-change-status__content .components-popover__content{
- min-width:320px;
- padding:16px;
-}
-.edit-site-change-status__content .edit-site-change-status__options .components-base-control__field>.components-v-stack{
- gap:8px;
-}
-.edit-site-change-status__content .edit-site-change-status__options label .components-text{
- display:block;
-}
-.edit-site-change-status__content .edit-site-change-status__password-legend{
- margin-bottom:8px;
- padding:0;
-}
-
-.edit-site-summary-field__trigger{
- display:block;
- max-width:100%;
- overflow:hidden;
- text-align:left;
- text-overflow:ellipsis;
- white-space:nowrap;
-}
-
-.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs{
- padding-left:0;
- padding-right:16px;
-}
-.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{
- height:24px;
- min-width:24px;
- padding:0;
-}
-@media (min-width:782px){
- .components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{
- display:flex;
- }
-}
-
-.edit-site-sidebar-card{
- align-items:flex-start;
- display:flex;
-}
-.edit-site-sidebar-card__content{
- flex-grow:1;
- margin-bottom:4px;
-}
-.edit-site-sidebar-card__title{
- font-weight:500;
- line-height:24px;
-}
-.edit-site-sidebar-card__title.edit-site-sidebar-card__title{
- font-size:13px;
- line-height:1.4;
- margin:0;
- padding:3px 0;
-}
-.edit-site-sidebar-card__description{
- font-size:13px;
-}
-.edit-site-sidebar-card__icon{
- flex:0 0 24px;
- height:24px;
- margin-right:12px;
- width:24px;
-}
-.edit-site-sidebar-card__header{
- display:flex;
- justify-content:space-between;
- margin:0 0 4px;
-}
-
-.edit-site-template-card__template-areas{
- margin-top:16px;
-}
-.edit-site-template-card__template-areas-list,.edit-site-template-card__template-areas-list>li{
- margin:0;
-}
-.edit-site-template-card__template-areas-item{
- width:100%;
-}
-.edit-site-template-card__template-areas-item.components-button.has-icon{
- padding:0;
-}
-.edit-site-template-card__actions{
- line-height:0;
-}
-.edit-site-template-card__actions>.components-button.is-small.has-icon{
- min-width:auto;
- padding:0;
-}
-
-h3.edit-site-template-card__template-areas-title{
- font-weight:500;
- margin:0 0 8px;
-}
-
-.edit-site-template-panel__replace-template-modal{
- z-index:1000001;
-}
-
-.edit-site-template-panel__replace-template-modal__content{
- column-count:2;
- column-gap:24px;
-}
-@media (min-width:782px){
- .edit-site-template-panel__replace-template-modal__content{
- column-count:3;
- }
-}
-@media (min-width:1280px){
- .edit-site-template-panel__replace-template-modal__content{
- column-count:4;
- }
-}
-
-.edit-site-editor__interface-skeleton{
+.edit-site-editor__editor-interface{
opacity:1;
transition:opacity .1s ease-out;
}
@media (prefers-reduced-motion:reduce){
- .edit-site-editor__interface-skeleton{
+ .edit-site-editor__editor-interface{
transition-delay:0s;
transition-duration:0s;
}
}
-.edit-site-editor__interface-skeleton.is-loading{
+.edit-site-editor__editor-interface.is-loading{
opacity:0;
}
-.edit-site-editor__interface-skeleton .interface-interface-skeleton__header{
- border:0;
-}
.edit-site-editor__toggle-save-panel{
background-color:#fff;
@@ -2811,102 +1844,10 @@ h3.edit-site-template-card__template-areas-title{
width:280px;
}
-.edit-site .components-editor-notices__snackbar{
- bottom:40px;
- left:0;
- padding-left:16px;
- padding-right:16px;
- position:absolute;
- right:0;
-}
-@media (min-width:783px){
- .edit-site .components-editor-notices__snackbar{
- left:160px;
- }
-}
-@media (min-width:783px){
- .auto-fold .edit-site .components-editor-notices__snackbar{
- left:36px;
- }
-}
-@media (min-width:961px){
- .auto-fold .edit-site .components-editor-notices__snackbar{
- left:160px;
- }
-}
-.folded .edit-site .components-editor-notices__snackbar{
- left:0;
-}
-@media (min-width:783px){
- .folded .edit-site .components-editor-notices__snackbar{
- left:36px;
- }
-}
-
-body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
- left:0 !important;
-}
-
-.edit-site-create-template-part-modal{
- z-index:1000001;
-}
-@media (min-width:600px){
- .edit-site-create-template-part-modal .components-modal__frame{
- max-width:500px;
- }
-}
-
-.edit-site-create-template-part-modal__area-radio-group{
- border:1px solid #757575;
- border-radius:2px;
- width:100%;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio{
- display:block;
- height:100%;
- padding:12px;
- text-align:left;
- width:100%;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover{
- background-color:inherit;
- border-bottom:1px solid #757575;
- border-radius:0;
- margin:0;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:focus){
- box-shadow:none;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:focus{
- border-bottom:1px solid #fff;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:last-of-type{
- border-bottom:none;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true]{
- color:#1e1e1e;
- cursor:auto;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover) .edit-site-create-template-part-modal__option-label div,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true] .edit-site-create-template-part-modal__option-label div{
- color:#949494;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label{
- padding-top:4px;
- white-space:normal;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label div{
- font-size:12px;
- padding-top:4px;
-}
-.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__checkbox{
- margin-left:auto;
- min-width:24px;
-}
-
.edit-site-welcome-guide{
width:312px;
}
-.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image .edit-site-welcome-guide.guide-styles .edit-site-welcome-guide__image{
+.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image,.edit-site-welcome-guide.guide-styles .edit-site-welcome-guide__image{
background:#00a0d2;
}
.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video{
@@ -2946,135 +1887,14 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
vertical-align:text-top;
}
-.edit-site-start-template-options__modal .edit-site-start-template-options__modal__actions{
- background-color:#fff;
- border-top:1px solid #ddd;
- bottom:0;
- height:92px;
- margin-left:-32px;
- margin-right:-32px;
- padding-left:32px;
- padding-right:32px;
- position:absolute;
- width:100%;
- z-index:1;
-}
-.edit-site-start-template-options__modal .block-editor-block-patterns-list{
- padding-bottom:92px;
-}
-
-.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{
- column-count:2;
- column-gap:24px;
-}
-@media (min-width:782px){
- .edit-site-start-template-options__modal-content .block-editor-block-patterns-list{
- column-count:3;
- }
-}
-@media (min-width:1280px){
- .edit-site-start-template-options__modal-content .block-editor-block-patterns-list{
- column-count:4;
- }
-}
-.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{
- break-inside:avoid-column;
-}
-.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{
- display:none;
-}
-.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__item:not(:focus):not(:hover) .block-editor-block-preview__container{
- box-shadow:0 0 0 1px #ddd;
-}
-
-.edit-site-keyboard-shortcut-help-modal__section{
- margin:0 0 2rem;
-}
-.edit-site-keyboard-shortcut-help-modal__section-title{
- font-size:.9rem;
- font-weight:600;
-}
-.edit-site-keyboard-shortcut-help-modal__shortcut{
- align-items:baseline;
- border-top:1px solid #ddd;
- display:flex;
- margin-bottom:0;
- padding:.6rem 0;
-}
-.edit-site-keyboard-shortcut-help-modal__shortcut:last-child{
- border-bottom:1px solid #ddd;
-}
-.edit-site-keyboard-shortcut-help-modal__shortcut:empty{
- display:none;
-}
-.edit-site-keyboard-shortcut-help-modal__shortcut-term{
- font-weight:600;
- margin:0 0 0 1rem;
- text-align:right;
-}
-.edit-site-keyboard-shortcut-help-modal__shortcut-description{
- flex:1;
- flex-basis:auto;
- margin:0;
-}
-.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{
- background:none;
- display:block;
- margin:0;
- padding:0;
-}
-.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{
- margin-top:10px;
-}
-.edit-site-keyboard-shortcut-help-modal__shortcut-key{
- border-radius:8%;
- margin:0 .2rem;
- padding:.25rem .5rem;
-}
-.edit-site-keyboard-shortcut-help-modal__shortcut-key:last-child{
- margin:0 0 0 .2rem;
-}
-
.edit-site-layout{
- background:#1e1e1e;
color:#ccc;
display:flex;
flex-direction:column;
height:100%;
}
-
-.edit-site-layout__hub{
- height:60px;
- left:0;
- position:fixed;
- top:0;
- width:calc(100vw - 32px);
- z-index:3;
-}
-@media (min-width:782px){
- .edit-site-layout__hub{
- width:336px;
- }
-}
-.edit-site-layout.is-full-canvas .edit-site-layout__hub{
- border-radius:0;
- box-shadow:none;
- padding-right:0;
- width:60px;
-}
-
-.edit-site-layout__header-container{
- z-index:4;
-}
-
-.edit-site-layout__header{
- display:flex;
- height:60px;
- z-index:2;
-}
-.edit-site-layout:not(.is-full-canvas) .edit-site-layout__header{
- position:fixed;
- width:100vw;
+.edit-site-layout,.edit-site-layout:not(.is-full-canvas) .editor-visual-editor{
+ background:#1e1e1e;
}
.edit-site-layout__content{
@@ -3120,9 +1940,13 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
width:100%;
z-index:2;
}
+.edit-site-layout__mobile .edit-site-sidebar__screen-wrapper{
+ padding:0;
+}
.edit-site-layout__canvas-container{
flex-grow:1;
+ overflow:visible;
position:relative;
z-index:2;
}
@@ -3149,7 +1973,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
.edit-site-layout__canvas.is-right-aligned{
justify-content:flex-end;
}
-.edit-site-layout__canvas>div{
+.edit-site-layout__canvas .edit-site-resizable-frame__inner{
color:#1e1e1e;
}
@media (min-width:782px){
@@ -3158,7 +1982,12 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
top:16px;
width:calc(100% - 16px);
}
- .edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .edit-site-visual-editor__editor-canvas,.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .interface-interface-skeleton__content,.edit-site-layout__canvas>div{
+ .edit-site-layout__canvas .edit-site-resizable-frame__inner-content{
+ box-shadow:0 20px 25px -5px #000c,0 8px 10px -6px #000c;
+ overflow:hidden;
+ transition:border-radius .4s;
+ }
+ .edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content{
border-radius:8px;
}
}
@@ -3167,9 +1996,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
top:0;
width:100%;
}
-.edit-site-layout.is-full-canvas .edit-site-layout__canvas>div{
- border-radius:0;
-}
.edit-site-layout__canvas .interface-interface-skeleton,.edit-site-layout__mobile .interface-interface-skeleton,.edit-site-template-pages-preview .interface-interface-skeleton{
min-height:100% !important;
@@ -3179,10 +2005,17 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
.edit-site-template-pages-preview{
height:100%;
}
+html.canvas-mode-edit-transition::view-transition-group(toggle){
+ animation-delay:255ms;
+}
+.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region .edit-site-layout__view-mode-toggle{
+ display:none;
+}
.edit-site-layout__view-mode-toggle.components-button{
+ view-transition-name:toggle;
align-items:center;
- border-bottom:1px solid #0000;
+ background:#1e1e1e;
border-radius:0;
color:#fff;
display:flex;
@@ -3193,15 +2026,13 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
position:relative;
width:60px;
}
-.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button{
- border-bottom-color:#e0e0e0;
- transition:border-bottom-color .15s ease-out .4s;
-}
.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{
color:#fff;
}
-.edit-site-layout__view-mode-toggle.components-button:focus{
- box-shadow:none;
+.edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout__view-mode-toggle.components-button:focus-visible{
+ box-shadow:0 0 0 3px #1e1e1e, 0 0 0 6px var(--wp-admin-theme-color);
+ outline:4px solid #0000;
+ outline-offset:4px;
}
.edit-site-layout__view-mode-toggle.components-button:before{
border-radius:4px;
@@ -3221,12 +2052,8 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
transition-duration:0s;
}
}
-.edit-site-layout__view-mode-toggle.components-button:focus:before{
- box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #ffffff1a, inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
-}
.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{
align-items:center;
- border-radius:2px;
display:flex;
height:64px;
justify-content:center;
@@ -3257,36 +2084,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
}
}
-.edit-site-layout.is-distraction-free .edit-site-layout__header-container{
- height:60px;
- left:0;
- position:absolute;
- right:0;
- top:0;
- width:100%;
- z-index:4;
-}
-.edit-site-layout.is-distraction-free .edit-site-layout__header-container:focus-within{
- opacity:1 !important;
-}
-.edit-site-layout.is-distraction-free .edit-site-layout__header-container:focus-within div{
- transform:translateX(0) translateY(0) translateZ(0) !important;
-}
-.edit-site-layout.is-distraction-free .edit-site-layout__header-container:focus-within .edit-site-layout__header{
- opacity:1 !important;
-}
-.edit-site-layout.is-distraction-free .edit-site-layout__header,.edit-site-layout.is-distraction-free .edit-site-site-hub{
- position:absolute;
- top:0;
- z-index:2;
-}
-.edit-site-layout.is-distraction-free .edit-site-site-hub{
- z-index:3;
-}
-.edit-site-layout.is-distraction-free .edit-site-layout__header{
- width:100%;
-}
-
.edit-site-layout__area{
flex-grow:1;
margin:0;
@@ -3299,12 +2096,34 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
}
}
+.edit-site .components-editor-notices__snackbar{
+ bottom:16px;
+ padding-left:16px;
+ padding-right:16px;
+ position:fixed;
+ right:0;
+}
+
+.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus-visible{
+ box-shadow:none;
+ outline:none;
+ outline-offset:0;
+}
+.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus .edit-site-site-icon svg,.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus-visible .edit-site-site-icon svg{
+ border-radius:2px;
+ box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color, #3858e9);
+ height:40px;
+ outline:3px solid #0000;
+ padding:2px;
+ width:40px;
+}
+
.edit-site-save-hub{
border-top:1px solid #2f2f2f;
color:#949494;
flex-shrink:0;
margin:0;
- padding:20px 16px;
+ padding:16px;
}
.edit-site-save-hub__button{
@@ -3329,20 +2148,47 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
}
.edit-site-sidebar__content{
+ contain:content;
flex-grow:1;
+ overflow-x:hidden;
overflow-y:auto;
}
+@keyframes slide-from-right{
+ 0%{
+ opacity:0;
+ transform:translateX(50px);
+ }
+ to{
+ opacity:1;
+ transform:none;
+ }
+}
+@keyframes slide-from-left{
+ 0%{
+ opacity:0;
+ transform:translateX(-50px);
+ }
+ to{
+ opacity:1;
+ transform:none;
+ }
+}
.edit-site-sidebar__screen-wrapper{
+ animation-duration:.14s;
+ animation-timing-function:ease-in-out;
display:flex;
flex-direction:column;
height:100%;
+ max-height:100%;
+ overflow-x:auto;
padding:0 12px;
scrollbar-color:#0000 #0000;
scrollbar-gutter:stable both-edges;
scrollbar-gutter:stable;
scrollbar-width:thin;
will-change:transform;
+ will-change:transform, opacity;
}
.edit-site-sidebar__screen-wrapper::-webkit-scrollbar{
height:12px;
@@ -3368,12 +2214,16 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
scrollbar-color:#757575 #0000;
}
}
-
-.edit-site-sidebar__footer{
- border-top:1px solid #2f2f2f;
- flex-shrink:0;
- margin:0 16px;
- padding:16px 0;
+@media (prefers-reduced-motion:reduce){
+ .edit-site-sidebar__screen-wrapper{
+ animation-duration:0s;
+ }
+}
+.edit-site-sidebar__screen-wrapper.slide-from-left{
+ animation-name:slide-from-left;
+}
+.edit-site-sidebar__screen-wrapper.slide-from-right{
+ animation-name:slide-from-right;
}
.edit-site-sidebar-button{
@@ -3385,7 +2235,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
outline:none;
}
.edit-site-sidebar-button:focus-visible:not(:disabled){
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
+ box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:3px solid #0000;
}
.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover,.edit-site-sidebar-button:not([aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{
@@ -3475,7 +2325,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
background:#1e1e1e;
margin-bottom:8px;
padding-bottom:8px;
- padding-top:108px;
+ padding-top:48px;
position:sticky;
top:0;
z-index:1;
@@ -3484,7 +2334,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
.edit-site-sidebar-navigation-screen__title{
flex-grow:1;
overflow-wrap:break-word;
- padding:6px 0 0;
+ padding:2px 0 0;
}
.edit-site-sidebar-navigation-screen__actions{
@@ -3493,21 +2343,29 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
}
@media (min-width:782px){
- .edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container{
+ .edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variation-container{
max-width:292px;
}
}
-.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item-preview{
- box-shadow:0 0 0 1px #1e1e1e;
+
+.edit-site-global-styles-variation-title{
+ color:#ddd;
+ font-size:11px;
+ font-weight:500;
+ text-transform:uppercase;
+}
+
+.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{
+ outline-color:#ffffff0d;
}
-.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{
- box-shadow:0 0 0 1px #f0f0f0;
+.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item:not(.is-active):hover .edit-site-global-styles-variations_item-preview{
+ outline-color:#ffffff26;
}
-.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{
- box-shadow:0 0 0 1px var(--wp-admin-theme-color);
+.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{
+ outline-color:#fff;
}
-.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{
- box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{
+ outline-color:var(--wp-admin-theme-color);
}
.edit-site-sidebar-navigation-screen__footer{
@@ -3519,21 +2377,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
padding:16px 0;
position:sticky;
}
-
-.edit-site-sidebar__notice{
- background:#2f2f2f;
- color:#ddd;
- margin:24px 0;
-}
-.edit-site-sidebar__notice.is-dismissible{
- padding-right:8px;
-}
-.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]){
- color:#ccc;
-}
-.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{
- color:#fff;
-}
.edit-site-sidebar-navigation-screen__input-control{
width:100%;
}
@@ -3570,74 +2413,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
color:#f0f0f0;
}
-.edit-site-sidebar-navigation-screen-page__featured-image-wrapper{
- background-color:#2f2f2f;
- border-radius:4px;
- margin-bottom:16px;
- min-height:128px;
-}
-
-.edit-site-sidebar-navigation-screen-page__featured-image{
- align-items:center;
- background-position:50% 50%;
- background-size:cover;
- border-radius:2px;
- color:#949494;
- display:flex;
- height:128px;
- justify-content:center;
- overflow:hidden;
- width:100%;
-}
-.edit-site-sidebar-navigation-screen-page__featured-image img{
- height:100%;
- object-fit:cover;
- object-position:50% 50%;
- width:100%;
-}
-
-.edit-site-sidebar-navigation-screen-page__featured-image-description{
- font-size:12px;
-}
-
-.edit-site-sidebar-navigation-screen-page__excerpt{
- font-size:12px;
- margin-bottom:24px;
-}
-
-.edit-site-sidebar-navigation-screen-page__modified{
- color:#949494;
- margin:0 0 16px 16px;
-}
-.edit-site-sidebar-navigation-screen-page__modified .components-text{
- color:#949494;
-}
-
-.edit-site-sidebar-navigation-screen-page__status{
- display:inline-flex;
-}
-.edit-site-sidebar-navigation-screen-page__status time{
- display:contents;
-}
-.edit-site-sidebar-navigation-screen-page__status svg{
- height:16px;
- margin-right:8px;
- width:16px;
- fill:#f0b849;
-}
-.edit-site-sidebar-navigation-screen-page__status.has-future-status svg,.edit-site-sidebar-navigation-screen-page__status.has-publish-status svg{
- fill:#4ab866;
-}
-
-.edit-site-sidebar-navigation-screen-templates__templates-group-title.components-item{
- border-top:1px solid #2f2f2f;
- color:#e0e0e0;
- font-size:11px;
- font-weight:500;
- padding:24px 6px 16px 16px;
- text-transform:uppercase;
-}
-
.edit-site-sidebar-navigation-details-screen-panel{
margin:24px 0;
}
@@ -3663,30 +2438,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
color:#e0e0e0;
}
-.edit-site-sidebar-navigation-screen-pattern__added-by-description{
- align-items:center;
- display:flex;
- justify-content:space-between;
- margin-top:24px;
-}
-
-.edit-site-sidebar-navigation-screen-pattern__added-by-description-author{
- align-items:center;
- display:inline-flex;
-}
-.edit-site-sidebar-navigation-screen-pattern__added-by-description-author img{
- border-radius:12px;
-}
-.edit-site-sidebar-navigation-screen-pattern__added-by-description-author svg{
- fill:#949494;
-}
-
-.edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon{
- height:24px;
- margin-right:8px;
- width:24px;
-}
-
.edit-site-sidebar-navigation-screen-patterns__group{
margin-bottom:24px;
}
@@ -3708,55 +2459,9 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
text-transform:uppercase;
}
-.edit-site-sidebar-navigation-screen-template__added-by-description{
- align-items:center;
- display:flex;
- justify-content:space-between;
- margin-top:24px;
-}
-
-.edit-site-sidebar-navigation-screen-template__added-by-description-author{
- align-items:center;
- display:inline-flex;
-}
-.edit-site-sidebar-navigation-screen-template__added-by-description-author img{
- border-radius:12px;
- height:20px;
- width:20px;
-}
-.edit-site-sidebar-navigation-screen-template__added-by-description-author svg{
- fill:#949494;
-}
-
-.edit-site-sidebar-navigation-screen-template__added-by-description-author-icon{
- align-items:center;
- display:inline-flex;
- height:24px;
- justify-content:center;
- margin-right:4px;
- width:24px;
-}
-
-.edit-site-sidebar-navigation-screen-template__template-area-button{
- align-items:center;
- border-radius:4px;
- color:#fff;
- display:flex;
- flex-wrap:nowrap;
- width:100%;
-}
-.edit-site-sidebar-navigation-screen-template__template-area-button:focus,.edit-site-sidebar-navigation-screen-template__template-area-button:hover{
- background:#2f2f2f;
- color:#fff;
-}
-
-.edit-site-sidebar-navigation-screen-template__template-area-label-text{
- flex-grow:1;
- margin:0 16px 0 4px;
-}
-
-.edit-site-sidebar-navigation-screen-template__template-icon{
- display:flex;
+.edit-site-sidebar-navigation-screen-patterns__divider{
+ border-top:1px solid #2f2f2f;
+ margin:16px 0;
}
.edit-site-sidebar-navigation-screen-dataviews__group-header{
@@ -3789,51 +2494,63 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
display:flex;
gap:8px;
justify-content:space-between;
-}
-.edit-site-site-hub .edit-site-site-hub__container{
- gap:0;
-}
-.edit-site-site-hub .edit-site-site-hub__site-title,.edit-site-site-hub .edit-site-site-hub__site-view-link,.edit-site-site-hub .edit-site-site-hub_toggle-command-center{
- transition:opacity .1s ease;
-}
-.edit-site-site-hub .edit-site-site-hub__site-title.is-transparent,.edit-site-site-hub .edit-site-site-hub__site-view-link.is-transparent,.edit-site-site-hub .edit-site-site-hub_toggle-command-center.is-transparent{
- opacity:0 !important;
-}
-.edit-site-site-hub .edit-site-site-hub__site-view-link{
- flex-grow:0;
- margin-right:var(--wp-admin-border-width-focus);
-}
-.edit-site-site-hub .edit-site-site-hub__site-view-link svg{
- fill:#e0e0e0;
+ margin-right:12px;
}
-.edit-site-site-hub__post-type{
- opacity:.6;
+.edit-site-site-hub__actions{
+ flex-shrink:0;
}
.edit-site-site-hub__view-mode-toggle-container{
- background:#1e1e1e;
flex-shrink:0;
height:60px;
width:60px;
}
-.edit-site-site-hub__view-mode-toggle-container.has-transparent-background{
+.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon{
background:#0000;
}
-.edit-site-site-hub__text-content{
- overflow:hidden;
-}
-
-.edit-site-site-hub__title{
+.edit-site-site-hub__title .components-button{
+ color:#e0e0e0;
+ display:block;
+ flex-grow:1;
+ font-size:15px;
+ font-weight:500;
overflow:hidden;
+ padding-right:16px;
+ position:relative;
+ text-decoration:none;
text-overflow:ellipsis;
white-space:nowrap;
}
-
-.edit-site-site-hub__site-title{
+.edit-site-site-hub__title .components-button:active,.edit-site-site-hub__title .components-button:focus,.edit-site-site-hub__title .components-button:hover{
color:#e0e0e0;
- flex-grow:1;
+}
+.edit-site-site-hub__title .components-button:focus{
+ box-shadow:none;
+ outline:none;
+}
+.edit-site-site-hub__title .components-button:focus-visible{
+ box-shadow:0 0 0 var(--wp-admin-border-width-focus) #1e1e1e, 0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);
+ outline:2px solid #0000;
+ outline-offset:2px;
+}
+.edit-site-site-hub__title .components-button:after{
+ content:"↗";
+ font-weight:400;
+ opacity:0;
+ position:absolute;
+ right:0;
+ transition:opacity .1s linear;
+}
+@media (prefers-reduced-motion:reduce){
+ .edit-site-site-hub__title .components-button:after{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
+}
+.edit-site-site-hub__title .components-button:active:after,.edit-site-site-hub__title .components-button:focus:after,.edit-site-site-hub__title .components-button:hover:after{
+ opacity:1;
}
.edit-site-site-hub_toggle-command-center{
@@ -3847,40 +2564,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
margin:0 0 32px;
}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf{
- border-radius:2px;
- max-width:calc(100% - 4px);
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf[aria-current]{
- background:#2f2f2f;
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block__menu{
- margin-left:-8px;
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected>td{
- background:#0000;
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents{
- color:inherit;
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:not(:hover) .block-editor-list-view-block__menu{
- opacity:0;
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover{
- color:#fff;
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus .block-editor-list-view-block__menu-cell,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover .block-editor-list-view-block__menu-cell{
- opacity:1;
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{
- box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){
- background:#0000;
-}
-.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch):hover{
- background:#2f2f2f;
-}
.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block__contents-cell{
width:100%;
}
@@ -3912,13 +2595,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
.edit-site-site-icon__icon{
fill:currentColor;
- transition:padding .3s ease-out;
-}
-@media (prefers-reduced-motion:reduce){
- .edit-site-site-icon__icon{
- transition-delay:0s;
- transition-duration:0s;
- }
}
.edit-site-layout.is-full-canvas .edit-site-site-icon__icon{
padding:6px;
@@ -3926,7 +2602,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
.edit-site-site-icon__image{
background:#333;
- border-radius:4px;
height:100%;
object-fit:cover;
width:100%;
@@ -3962,6 +2637,19 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
}
.edit-site-editor-canvas-container{
+ background-color:#ddd;
+ height:100%;
+}
+.edit-site-editor-canvas-container iframe{
+ display:block;
+ height:100%;
+ width:100%;
+}
+.edit-site-layout.is-full-canvas .edit-site-editor-canvas-container{
+ padding:24px 24px 0;
+}
+
+.edit-site-editor-canvas-container__section{
background:#fff;
border-radius:2px;
bottom:0;
@@ -4068,6 +2756,17 @@ body:has(.edit-site-resizable-frame__inner.is-resizing){
.font-library-modal__tabpanel-layout{
margin-top:32px;
}
+.font-library-modal__tabpanel-layout .font-library-modal__loading{
+ align-items:center;
+ display:flex;
+ height:100%;
+ justify-content:center;
+ left:0;
+ padding-top:120px;
+ position:absolute;
+ top:0;
+ width:100%;
+}
.font-library-modal__tabpanel-layout .font-library-modal__tabpanel-layout__footer{
background-color:#fff;
border-top:1px solid #ddd;
@@ -4083,6 +2782,21 @@ body:has(.edit-site-resizable-frame__inner.is-resizing){
margin-bottom:0;
}
+.font-library-modal__fonts-title{
+ font-size:11px;
+ font-weight:600;
+ text-transform:uppercase;
+}
+
+.font-library-modal__fonts-list,.font-library-modal__fonts-title{
+ margin-bottom:0;
+ margin-top:0;
+}
+
+.font-library-modal__fonts-list-item{
+ margin-bottom:0;
+}
+
.font-library-modal__font-card{
border:1px solid #e0e0e0;
height:auto;
@@ -4099,20 +2813,18 @@ body:has(.edit-site-resizable-frame__inner.is-resizing){
.font-library-modal__font-card .font-library-modal__font-card__count{
color:#757575;
}
-
-.font-library-modal__font-variant_demo-image{
+.font-library-modal__font-card .font-library-modal__font-variant_demo-image{
display:block;
height:24px;
width:auto;
}
-
-.font-library-modal__font-variant_demo-text{
+.font-library-modal__font-card .font-library-modal__font-variant_demo-text{
flex-shrink:0;
transition:opacity .3s ease-in-out;
white-space:nowrap;
}
@media (prefers-reduced-motion:reduce){
- .font-library-modal__font-variant_demo-text{
+ .font-library-modal__font-card .font-library-modal__font-variant_demo-text{
transition-delay:0s;
transition-duration:0s;
}
@@ -4159,13 +2871,20 @@ button.font-library-modal__upload-area{
justify-content:center;
margin-top:64px;
}
-.font-library__google-fonts-confirm h3{
- font-size:1.4rem;
+.font-library__google-fonts-confirm p{
+ line-height:1.4;
+}
+.font-library__google-fonts-confirm h2{
+ font-size:1.2rem;
+ font-weight:400;
}
.font-library__google-fonts-confirm .components-card{
- max-width:400px;
- min-width:350px;
- width:50%;
+ padding:16px;
+ width:400px;
+}
+.font-library__google-fonts-confirm .components-button{
+ justify-content:center;
+ width:100%;
}
.edit-site-pagination .components-button.is-tertiary{
@@ -4174,6 +2893,51 @@ button.font-library-modal__upload-area{
width:32px;
}
+.edit-site-global-styles-variations_item{
+ border-radius:2px;
+ box-sizing:border-box;
+ cursor:pointer;
+}
+.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{
+ border-radius:2px;
+ outline:1px solid #0000001a;
+ outline-offset:-1px;
+ overflow:hidden;
+ position:relative;
+ transition:outline .1s linear;
+}
+@media (prefers-reduced-motion:reduce){
+ .edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
+}
+.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview.is-pill{
+ height:32px;
+}
+.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview.is-pill .block-editor-iframe__scale-container{
+ overflow:hidden;
+}
+.edit-site-global-styles-variations_item:not(.is-active):hover .edit-site-global-styles-variations_item-preview{
+ outline-color:#0000004d;
+}
+.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview,.edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{
+ outline-color:#1e1e1e;
+ outline-offset:1px;
+ outline-width:var(--wp-admin-border-width-focus);
+}
+.edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{
+ outline-color:var(--wp-admin-theme-color);
+}
+::view-transition-image-pair(root){
+ isolation:auto;
+}
+
+::view-transition-new(root),::view-transition-old(root){
+ animation:none;
+ display:block;
+ mix-blend-mode:normal;
+}
body.js #wpadminbar{
display:none;
}
@@ -4210,16 +2974,13 @@ body.js.site-editor-php{
background:#1e1e1e;
}
-.components-modal__frame,.edit-site{
+.edit-site{
box-sizing:border-box;
+ height:100vh;
}
-.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-site *,.edit-site :after,.edit-site :before{
+.edit-site *,.edit-site :after,.edit-site :before{
box-sizing:inherit;
}
-
-.edit-site{
- height:100vh;
-}
@media (min-width:600px){
.edit-site{
bottom:0;
@@ -4237,12 +2998,6 @@ body.js.site-editor-php{
.edit-site .interface-interface-skeleton{
top:0;
}
-.edit-site .interface-complementary-area__pin-unpin-item.components-button{
- display:none;
-}
-.edit-site .interface-interface-skeleton__content{
- background-color:#1e1e1e;
-}
@keyframes edit-post__fade-in-animation{
0%{
opacity:0;
diff --git a/wp-includes/css/dist/edit-site/style.min.css b/wp-includes/css/dist/edit-site/style.min.css
index 4bf966c..b0de57a 100644
--- a/wp-includes/css/dist/edit-site/style.min.css
+++ b/wp-includes/css/dist/edit-site/style.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-right:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-left:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-left:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:300px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:8px}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:global-styles"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{display:flex}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-pinned-items .components-button{display:flex}}.dataviews-wrapper{box-sizing:border-box;height:100%;overflow:auto;scroll-padding-bottom:64px;width:100%}.dataviews-filters__view-actions{flex-shrink:0;left:0;margin-bottom:12px;padding:12px 32px 0;position:sticky}.dataviews-filters__view-actions .components-search-control .components-base-control__field{max-width:240px}.dataviews-filters__container{padding-right:32px}.dataviews-filters-button{position:relative}.dataviews-pagination{background-color:#fff;border-top:1px solid #f0f0f0;bottom:0;color:#757575;flex-shrink:0;left:0;padding:12px 32px;position:sticky}.dataviews-pagination__page-selection{color:#1e1e1e;font-size:11px;font-weight:500;text-transform:uppercase}.dataviews-filters-options{margin:32px 0 16px}.dataviews-view-table-wrapper{overflow-x:auto}.dataviews-view-table{border-collapse:collapse;border-color:inherit;color:#757575;position:relative;text-indent:0;width:100%}.dataviews-view-table a{color:#1e1e1e;font-weight:500;text-decoration:none}.dataviews-view-table th{color:var(--wp-components-color-foreground,#1e1e1e);font-size:13px;font-weight:400;text-align:left}.dataviews-view-table td,.dataviews-view-table th{padding:12px;white-space:nowrap}.dataviews-view-table td[data-field-id=actions],.dataviews-view-table th[data-field-id=actions]{text-align:right}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-right:0}.dataviews-view-table td .components-checkbox-control__input-container,.dataviews-view-table th .components-checkbox-control__input-container{margin:4px}.dataviews-view-table tr{border-bottom:1px solid #f0f0f0}.dataviews-view-table tr .dataviews-view-table-header-button{gap:4px}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-left:32px}.dataviews-view-table tr td:first-child .dataviews-view-table-header,.dataviews-view-table tr td:first-child .dataviews-view-table-header-button,.dataviews-view-table tr th:first-child .dataviews-view-table-header,.dataviews-view-table tr th:first-child .dataviews-view-table-header-button{margin-left:-8px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-right:32px}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr:hover{background-color:#f8f8f8}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input{opacity:0}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate,.dataviews-view-table tr:focus-within .components-checkbox-control__input,.dataviews-view-table tr:hover .components-checkbox-control__input{opacity:1}.dataviews-view-table tr.is-selected{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#757575}.dataviews-view-table tr.is-selected:hover{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-table thead{inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead th{background-color:#fff;box-shadow:inset 0 -1px 0 #f0f0f0;font-size:11px;font-weight:500;padding-bottom:8px;padding-left:4px;padding-top:8px;text-transform:uppercase}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:32px}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper>*{flex-grow:1}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:500;padding:4px 8px;text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:#1e1e1e}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-left:4px}.dataviews-view-table .dataviews-view-table__actions-column{width:1%}.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input{opacity:1}.dataviews-view-grid__primary-field,.dataviews-view-list__primary-field,.dataviews-view-table__primary-field{color:#1e1e1e;display:block;font-size:13px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-view-grid__primary-field a,.dataviews-view-list__primary-field a,.dataviews-view-table__primary-field a{color:inherit;display:block;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-view-grid__primary-field a:hover,.dataviews-view-list__primary-field a:hover,.dataviews-view-table__primary-field a:hover{color:#1e1e1e}.dataviews-view-grid__primary-field a:focus,.dataviews-view-list__primary-field a:focus,.dataviews-view-table__primary-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-view-grid__primary-field button.components-button.is-link,.dataviews-view-list__primary-field button.components-button.is-link,.dataviews-view-table__primary-field button.components-button.is-link{color:inherit;display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-view-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:max-content;margin-bottom:24px;padding:0 32px}@media (min-width:1080px){.dataviews-view-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media (min-width:1440px){.dataviews-view-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}.dataviews-view-grid .dataviews-view-grid__card{border:1px solid #e0e0e0;border-radius:4px;height:100%;justify-content:flex-start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:4px 8px 4px 4px}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__primary-field{min-height:40px}.dataviews-view-grid .dataviews-view-grid__card.is-selected{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:#1e1e1e}.dataviews-view-grid .dataviews-view-grid__media{aspect-ratio:1/1;background-color:#f0f0f0;border-bottom:1px solid #e0e0e0;border-radius:3px 3px 0 0;min-height:200px;width:100%}.dataviews-view-grid .dataviews-view-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty){padding:0 12px 12px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:#757575}.dataviews-view-list{margin:0;padding:8px}.dataviews-view-list li{margin:0}.dataviews-view-list li .dataviews-view-list__item-wrapper{border-radius:4px;padding-right:24px;position:relative}.dataviews-view-list li .dataviews-view-list__item-wrapper:after{background:#f0f0f0;content:"";height:1px;left:24px;position:absolute;right:24px;top:100%}.dataviews-view-list li:not(.is-selected):hover,.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__primary-field{color:var(--wp-admin-theme-color)}.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:var(--wp-admin-theme-color);color:#fff}.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .components-button,.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .components-button,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field{color:#fff}.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper:after,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper:after{background:#0000}.dataviews-view-list .dataviews-view-list__item{cursor:pointer;padding:12px 0 12px 24px;width:100%}.dataviews-view-list .dataviews-view-list__item:focus:before{border-radius:4px;bottom:-1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:-1}.dataviews-view-list .dataviews-view-list__item .dataviews-view-list__primary-field{min-height:20px}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:#f0f0f0;border-radius:4px;flex-shrink:0;height:40px;overflow:hidden;position:relative;width:40px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.dataviews-view-list .dataviews-view-list__media-placeholder{background-color:#e0e0e0;height:32px;min-width:32px}.dataviews-view-list .dataviews-view-list__fields{color:#757575;display:flex;flex-wrap:wrap;font-size:12px;gap:8px;line-height:16px}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:empty{display:none}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-view-list .dataviews-view-list__details-button{align-self:center;opacity:0}.dataviews-view-list li.is-selected .dataviews-view-list__details-button,.dataviews-view-list li:focus-within .dataviews-view-list__details-button,.dataviews-view-list li:hover .dataviews-view-list__details-button{opacity:1}.dataviews-view-list li.is-selected .dataviews-view-list__details-button:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) currentColor}.dataviews-action-modal{z-index:1000001}.dataviews-loading,.dataviews-no-results{padding:0 32px}.dataviews-view-table-selection-checkbox label{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0;white-space:nowrap}.dataviews-filters__custom-menu-radio-item-prefix{display:block;width:24px}.dataviews-bulk-edit-button.components-button{flex-shrink:0}.dataviews-view-grid__title-actions .dataviews-view-table-selection-checkbox{margin-left:8px}.dataviews-view-grid__card.has-no-pointer-events *{pointer-events:none}.dataviews-filter-summary__popover .components-popover__content{border-radius:4px;padding:0;width:230px}.dataviews-search-widget-filter-combobox-list{border-top:1px solid #e0e0e0;max-height:184px;overflow:auto;padding:4px}.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item{align-items:center;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;gap:8px;margin-block-end:2px;padding:8px 12px}.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:last-child{margin-block-end:0}.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:focus,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:hover,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item[data-active-item]{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff}.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:focus .dataviews-search-widget-filter-combobox-item-check,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:hover .dataviews-search-widget-filter-combobox-item-check,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item[data-active-item] .dataviews-search-widget-filter-combobox-item-check{fill:#fff}.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:focus .dataviews-search-widget-filter-combobox-item-description,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item:hover .dataviews-search-widget-filter-combobox-item-description,.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item[data-active-item] .dataviews-search-widget-filter-combobox-item-description{color:#fff}.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item .dataviews-search-widget-filter-combobox-item-check{flex-shrink:0;height:24px;width:24px}.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item .dataviews-search-widget-filter-combobox-item-value [data-user-value]{font-weight:600}.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item .dataviews-search-widget-filter-combobox-item-description{color:#757575;display:block;font-size:12px;line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-search-widget-filter-combobox__wrapper{padding:8px;position:relative}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input{background:#f0f0f0;border:none;border-radius:2px;box-shadow:0 0 0 #0000;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:32px;line-height:normal;margin-left:0;margin-right:0;padding:0 32px 0 8px;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-moz-placeholder{color:#1e1e1e9e;opacity:1}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input:-ms-input-placeholder{color:#1e1e1e9e}@media (min-width:600px){.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input{font-size:13px}}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input:focus{background:#fff;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::placeholder{color:#757575}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__icon{align-items:center;display:flex;justify-content:center;position:absolute;right:12px;top:50%;transform:translateY(-50%);width:24px}.dataviews-filter-summary__operators-container{padding:8px 8px 0}.dataviews-filter-summary__operators-container:empty{display:none}.dataviews-filter-summary__operators-container .dataviews-filter-summary__operators-filter-name{color:#757575}.dataviews-filter-summary__chip-container{position:relative;white-space:pre-wrap}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip{align-items:center;background:#f0f0f0;border:1px solid #0000;border-radius:16px;color:#757575;cursor:pointer;display:flex;height:32px;padding:0 12px;position:relative}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-reset{padding-inline-end:28px}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip:focus-visible,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip:hover,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip[aria-expanded=true]{background:#e0e0e0;color:#1e1e1e}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-values{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-admin-theme-color)}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-values:hover,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-values[aria-expanded=true]{background:rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip .dataviews-filter-summary__filter-text-name{font-weight:500}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove{align-items:center;background:#0000;border:0;border-radius:50%;cursor:pointer;display:flex;height:24px;justify-content:center;padding:0;position:absolute;right:4px;top:50%;transform:translateY(-50%);width:24px}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove svg{fill:#757575}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:focus,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:hover{background:#e0e0e0}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:focus svg,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:hover svg{fill:#1e1e1e}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove.has-values svg{fill:var(--wp-admin-theme-color)}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove.has-values:hover{background:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{max-height:224px;overflow-y:auto}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:left;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}.edit-site-template-actions-loading-screen-modal{-webkit-backdrop-filter:none;backdrop-filter:none;background-color:initial}.edit-site-template-actions-loading-screen-modal.is-full-screen{background-color:#fff;box-shadow:0 0 0 #0000;min-height:100%;min-width:100%}.edit-site-template-actions-loading-screen-modal__content{align-items:center;display:flex;height:100%;justify-content:center;left:50%;position:absolute;transform:translateX(-50%)}.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 64px)}@media (min-width:960px){.edit-site-add-new-template__modal{width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;border-radius:2px;display:flex;flex-direction:column;justify-content:center;outline:1px solid #0000;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:#0000;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:#0000;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid #0000}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column-end:4;grid-column-start:1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-block-editor__editor-styles-wrapper .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-site-block-editor__editor-styles-wrapper .components-button.has-icon,.edit-site-block-editor__editor-styles-wrapper .components-button.is-tertiary{padding:6px}.edit-site-editor-canvas__block-list.is-navigation-block{padding:24px}.edit-site-visual-editor{align-items:center;background-color:#ddd;display:block;height:100%;overflow:hidden;position:relative}.edit-site-visual-editor iframe{background:#fff;display:block;height:100%;width:100%}.edit-site-visual-editor .edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-layout.is-full-canvas .edit-site-visual-editor.is-focus-mode{padding:24px}.edit-site-visual-editor.is-focus-mode .edit-site-visual-editor__editor-canvas{border-radius:2px;max-height:100%}.edit-site-visual-editor.is-focus-mode .components-resizable-box__container{overflow:visible}.edit-site-visual-editor .components-resizable-box__container{margin:0 auto;overflow:auto}.edit-site-visual-editor.is-view-mode{box-shadow:0 20px 25px -5px #000c,0 8px 10px -6px #000c}.resizable-editor__drag-handle{-webkit-appearance:none;appearance:none;background:none;border:0;border-radius:2px;bottom:0;cursor:ew-resize;margin:auto 0;outline:none;padding:0;position:absolute;top:0;width:12px}.resizable-editor__drag-handle.is-variation-default{height:100px}.resizable-editor__drag-handle.is-variation-separator{height:100%;right:0;width:24px}.resizable-editor__drag-handle.is-variation-separator:after{background:#0000;border-radius:0;left:50%;right:0;transform:translateX(-1px);transition:all .2s ease;transition-delay:.1s;width:2px}@media (prefers-reduced-motion:reduce){.resizable-editor__drag-handle.is-variation-separator:after{animation-delay:0s;animation-duration:1ms;transition-delay:0s;transition-duration:0s}}.resizable-editor__drag-handle:after{background:#949494;border-radius:2px;bottom:24px;content:"";left:4px;position:absolute;right:0;top:24px;width:4px}.resizable-editor__drag-handle.is-left{left:-16px}.resizable-editor__drag-handle.is-right{right:-16px}.resizable-editor__drag-handle:active,.resizable-editor__drag-handle:hover{opacity:1}.resizable-editor__drag-handle:active.is-variation-default:after,.resizable-editor__drag-handle:hover.is-variation-default:after{background:#ccc}.resizable-editor__drag-handle:active.is-variation-separator:after,.resizable-editor__drag-handle:hover.is-variation-separator:after{background:var(--wp-admin-theme-color)}.resizable-editor__drag-handle:focus:after{box-shadow:0 0 0 1px #2f2f2f,0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color)}.resizable-editor__drag-handle.is-variation-separator:focus:after{border-radius:2px;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.edit-site-canvas-loader{align-items:center;animation:edit-site-canvas-loader__fade-in-animation .5s ease .2s;animation-fill-mode:forwards;display:flex;height:100%;justify-content:center;left:0;opacity:0;position:absolute;top:0;width:100%}@media (prefers-reduced-motion:reduce){.edit-site-canvas-loader{animation-delay:0s;animation-duration:1ms}}.edit-site-canvas-loader>div{width:160px}@keyframes edit-site-canvas-loader__fade-in-animation{0%{opacity:0}to{opacity:1}}.edit-site-code-editor{background-color:#fff;min-height:100%;position:relative;width:100%}.edit-site-code-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:12px;width:100%}@media (min-width:960px){.edit-site-code-editor__body{padding:24px}}.edit-site-code-editor__toolbar{background:#fffc;display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-site-code-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-site-code-editor__toolbar{padding:12px 24px}}.edit-site-code-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 auto 0 0}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:16px!important;line-height:2.4;margin:0;min-height:200px;overflow:hidden;padding:16px;resize:none;transition:border .1s ease-out,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{font-size:15px!important;padding:24px}}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-webkit-input-placeholder{color:#1e1e1e9e}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-moz-placeholder{color:#1e1e1e9e;opacity:1}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-input-placeholder{color:#1e1e1e9e}.edit-site-global-styles-preview{align-items:center;cursor:pointer;display:flex;justify-content:center;line-height:1}.edit-site-global-styles-preview__iframe{display:block;max-width:100%}.edit-site-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:16px;min-height:100px;overflow:hidden}.edit-site-typography-panel__full-width-control{grid-column:1/-1;max-width:100%}.edit-site-global-styles-screen-css,.edit-site-global-styles-screen-typography{margin:16px}.edit-site-global-styles-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.edit-site-global-styles-screen-typography__font-variants-count{color:#757575}.edit-site-global-styles-font-families__add-fonts{justify-content:center}.edit-site-global-styles-screen-colors{margin:16px}.edit-site-global-styles-screen-colors .color-block-support-panel{border-top:none;padding-left:0;padding-right:0}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-block-types-search{margin-bottom:8px;padding:0 16px}.edit-site-global-styles-header{margin-bottom:0!important}.edit-site-global-styles-subtitle{font-size:11px!important;font-weight:500!important;margin-bottom:0!important;text-transform:uppercase}.edit-site-global-styles-section-title{color:#2f2f2f;font-weight:600;line-height:1.2;margin:0;padding:16px 16px 0}.edit-site-global-styles-variations_item{border-radius:2px;box-sizing:border-box}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{border-radius:2px;box-shadow:0 0 0 1px #e0e0e0;outline:1px solid #0000;padding:2px}.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{box-shadow:0 0 0 1px #1e1e1e;outline-width:3px}.edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-global-styles-variations_item:focus-visible{outline:3px solid #0000;outline-offset:0}.edit-site-global-styles-icon-with-current-color{fill:currentColor}.edit-site-global-styles__color-indicator-wrapper{flex-shrink:0;height:24px}.edit-site-global-styles__block-preview-panel{border:1px solid #e0e0e0;border-radius:2px;overflow:auto;position:relative;width:100%}.edit-site-global-styles-screen-css{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack{flex:1 1 auto}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input,.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field .components-textarea-control__input{direction:ltr;flex:1 1 auto}.edit-site-global-styles-screen-css-help-link{display:block;margin-top:8px}.edit-site-global-styles-screen-variations{border-top:1px solid #ddd;margin-top:16px}.edit-site-global-styles-screen-variations>*{margin:24px 16px}.edit-site-global-styles-sidebar__navigator-screen{display:flex;flex-direction:column}.edit-site-global-styles-screen-root.edit-site-global-styles-screen-root,.edit-site-global-styles-screen-style-variations.edit-site-global-styles-screen-style-variations{background:unset;color:inherit}.edit-site-global-styles-sidebar__panel .block-editor-block-icon svg{fill:currentColor}.edit-site-global-styles-screen-revisions__revisions-list{flex-grow:1;list-style:none;margin:0 16px 16px}.edit-site-global-styles-screen-revisions__revisions-list li{margin-bottom:0}.edit-site-global-styles-screen-revisions__revision-item{cursor:pointer;display:flex;flex-direction:column;position:relative}.edit-site-global-styles-screen-revisions__revision-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-global-styles-screen-revisions__revision-item:hover .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item:after,.edit-site-global-styles-screen-revisions__revision-item:before{content:"\a";display:block;position:absolute}.edit-site-global-styles-screen-revisions__revision-item:before{background:#ddd;border:4px solid #0000;border-radius:50%;height:8px;left:17px;top:18px;transform:translate(-50%,-50%);width:8px;z-index:1}.edit-site-global-styles-screen-revisions__revision-item.is-selected{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:2px;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));outline:3px solid #0000;outline-offset:-2px}.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__revision-button{opacity:1}.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item.is-selected:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))}.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__changes>li,.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__meta{color:#1e1e1e}.edit-site-global-styles-screen-revisions__revision-item:after{border:.5px solid #ddd;height:100%;left:16px;top:0;width:0}.edit-site-global-styles-screen-revisions__revision-item:first-child:after{top:18px}.edit-site-global-styles-screen-revisions__revision-item:last-child:after{height:18px}.edit-site-global-styles-screen-revisions__revision-item .edit-site-global-styles-screen-revisions__revision-button{display:block;height:auto;outline-offset:-2px;padding:12px 12px 4px 40px;position:relative;width:100%;z-index:1}.edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__apply-button.is-primary{align-self:flex-start;margin:4px 12px 12px 40px}.edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__changes,.edit-site-global-styles-screen-revisions__meta{color:#757575;font-size:12px}.edit-site-global-styles-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.edit-site-global-styles-screen-revisions__description .edit-site-global-styles-screen-revisions__date{font-size:12px;font-weight:600;text-transform:uppercase}.edit-site-global-styles-screen-revisions__meta{align-items:flex-start;display:flex;justify-content:start;margin-bottom:4px;text-align:left;width:100%}.edit-site-global-styles-screen-revisions__meta img{border-radius:100%;height:16px;margin-right:8px;width:16px}.edit-site-global-styles-screen-revisions__loading{margin:24px auto!important}.edit-site-global-styles-screen-revisions__changes{line-height:1.4;list-style:disc;margin-left:12px;text-align:left}.edit-site-global-styles-screen-revisions__changes li{margin-bottom:4px}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination{gap:2px;justify-content:space-between}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .edit-site-pagination__total{height:1px;left:-1000px;margin:-1px;overflow:hidden;position:absolute}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-text{font-size:12px;will-change:opacity}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary{color:#1e1e1e;font-size:28px;font-weight:200;line-height:1.2;margin-bottom:4px}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:disabled{color:#949494}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:hover{background:#0000}.edit-site-global-styles-screen-revisions__footer{background:#fff;border-top:1px solid #ddd;bottom:0;height:56px;min-width:100%;padding:12px;position:sticky;z-index:1}.edit-site-header-edit-mode{align-items:center;background-color:#fff;border-bottom:1px solid #e0e0e0;box-sizing:border-box;color:#1e1e1e;display:flex;height:60px;justify-content:space-between;padding-left:60px;width:100%}.edit-site-header-edit-mode .edit-site-header-edit-mode__start{align-items:center;border:none;display:flex;flex-shrink:2;height:100%;overflow:hidden}@media (min-width:782px){.edit-site-header-edit-mode .edit-site-header-edit-mode__start{padding-right:2px}}.edit-site-header-edit-mode .edit-site-header-edit-mode__end{display:flex;justify-content:flex-end}.edit-site-header-edit-mode .edit-site-header-edit-mode__center{align-items:center;display:flex;flex-grow:1;height:100%;justify-content:center;margin:0 16px;min-width:0}.edit-site-header-edit-mode__toolbar{align-items:center;display:flex;gap:8px;padding-left:16px}@media (min-width:782px){.edit-site-header-edit-mode__toolbar{padding-left:20px}}@media (min-width:1280px){.edit-site-header-edit-mode__toolbar{padding-right:8px}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.edit-site-header-edit-mode__actions{align-items:center;display:inline-flex;flex-wrap:nowrap;gap:8px;padding-right:4px}@media (min-width:600px){.edit-site-header-edit-mode__actions{padding-right:8px}}.edit-site-header-edit-mode__preview-options{opacity:1;transition:opacity .3s}.edit-site-header-edit-mode__preview-options.is-zoomed-out{opacity:0}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon{width:auto}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon svg{display:none}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon:after{content:attr(aria-label)}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon[aria-disabled=true]{background-color:initial}.edit-site-header-edit-mode.show-icon-labels .is-tertiary:active{background-color:initial;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-site-header-edit-mode.show-icon-labels .edit-site-save-button__button{padding-left:6px;padding-right:6px}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info:after{content:none}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info,.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__inserter-toggle.edit-site-header-edit-mode__inserter-toggle{height:36px;padding:0 8px}.edit-site-header-edit-mode.show-icon-labels .block-editor-block-mover{border-left:none}.edit-site-header-edit-mode.show-icon-labels .block-editor-block-mover:before{background-color:#ddd;content:"";height:24px;margin-left:8px;margin-top:4px;width:1px}.edit-site-header-edit-mode.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container:before{background:#ddd;left:calc(50% + 1px);width:calc(100% - 24px)}.has-fixed-toolbar .selected-block-tools-wrapper{align-items:center;display:flex;height:60px;overflow:hidden}.has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-contextual-toolbar{border-bottom:0;height:100%}.has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-toolbar{height:100%;padding-top:15px}.has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.has-fixed-toolbar .selected-block-tools-wrapper:after{background-color:#ddd;content:"";height:24px;margin-left:8px;width:1px}.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar,.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar-group{border-right:none}.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar-group:after,.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar:after{background-color:#ddd;content:"";height:24px;margin-left:8px;margin-top:4px;width:1px}.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar .components-toolbar-group.components-toolbar-group:after,.has-fixed-toolbar .selected-block-tools-wrapper .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{display:none}.has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width:600px){.has-fixed-toolbar .selected-block-tools-wrapper .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{position:relative;top:-10px}}.has-fixed-toolbar .edit-site-header-edit-mode__center.is-collapsed,.has-fixed-toolbar .selected-block-tools-wrapper.is-collapsed{display:none}.edit-site-header-edit-mode__block-tools-toggle{margin-left:2px}.edit-site-list-header{align-items:center;box-sizing:border-box;display:flex;height:60px;justify-content:flex-end;padding-right:16px;position:relative;width:100%}body.is-fullscreen-mode .edit-site-list-header{padding-left:60px;transition:padding-left 20ms linear;transition-delay:80ms}@media (prefers-reduced-motion:reduce){body.is-fullscreen-mode .edit-site-list-header{transition-delay:0s;transition-duration:0s}}.edit-site-list-header .edit-site-list-header__title{font-size:20px;left:0;margin:0;padding:0;position:absolute;text-align:center;width:100%}.edit-site-list-header__right{position:relative}.edit-site .edit-site-list{background:#fff;border-radius:8px;box-shadow:0 20px 25px -5px #000c,0 8px 10px -6px #000c;flex-grow:1}.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:100%}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:0}}.edit-site .edit-site-list .interface-interface-skeleton__content{align-items:center;background:#fff;padding:16px}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__content{padding:72px}}.edit-site-list-table{border:1px solid #ddd;border-radius:2px;border-spacing:0;margin:0 auto;max-width:960px;min-width:100%;overflow:hidden}.edit-site-list-table tr{align-items:center;border-top:1px solid #f0f0f0;box-sizing:border-box;display:flex;margin:0;padding:16px}.edit-site-list-table tr:first-child{border-top:0}@media (min-width:782px){.edit-site-list-table tr{padding:24px 32px}}.edit-site-list-table tr .edit-site-list-table-column:first-child{padding-right:24px;width:calc(60% - 18px)}.edit-site-list-table tr .edit-site-list-table-column:first-child a{display:inline-block;font-weight:500;margin-bottom:4px;text-decoration:none}.edit-site-list-table tr .edit-site-list-table-column:nth-child(2){width:calc(40% - 18px);word-break:break-word}.edit-site-list-table tr .edit-site-list-table-column:nth-child(3){flex-shrink:0;min-width:36px}.edit-site-list-table tr.edit-site-list-table-head{border-bottom:1px solid #ddd;border-top:none;color:#1e1e1e;font-size:16px;font-weight:600;text-align:left}.edit-site-list-table tr.edit-site-list-table-head th{font-weight:inherit}@media (min-width:782px){.edit-site-list.is-navigation-open .components-snackbar-list{margin-left:360px}}.edit-site-list__rename-modal{z-index:1000001}@media (min-width:782px){.edit-site-list__rename-modal .components-base-control{width:320px}}.edit-site-template__actions button:not(:last-child){margin-right:8px}.edit-site-list-added-by__icon{display:flex;flex-shrink:0;height:24px;width:24px}.edit-site-list-added-by__icon svg{fill:currentColor}.edit-site-list-added-by__avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:center;overflow:hidden;width:24px}.edit-site-list-added-by__avatar img{border-radius:100%;height:20px;object-fit:cover;opacity:0;transition:opacity .1s linear;width:20px}@media (prefers-reduced-motion:reduce){.edit-site-list-added-by__avatar img{transition-delay:0s;transition-duration:0s}}.edit-site-list-added-by__avatar.is-loaded img{opacity:1}.edit-site-list-added-by__customized-info{color:#757575;display:block}.edit-site-page{background:#fff;color:#2f2f2f;height:100%}.edit-site-page-header{background:#fff;border-bottom:1px solid #f0f0f0;min-height:72px;padding:16px 32px;position:sticky;top:0;z-index:2}.edit-site-page-header .components-text{color:#2f2f2f}.edit-site-page-header .components-heading{color:#1e1e1e}.edit-site-page-header .edit-site-page-header__sub-title{color:#757575;margin-top:8px}.edit-site-page-content{display:flex;flex-flow:column;height:100%;position:relative;z-index:1}.page-pages-preview-field__button{background-color:unset;border:none;border-radius:3px 3px 0 0;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0;width:100%}.page-pages-preview-field__button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.page-pages-preview-field__button.edit-site-page-pages__media-wrapper{background-color:#f0f0f0;border-radius:4px;display:block;flex-grow:0!important;height:32px;overflow:hidden;position:relative;width:32px}.page-pages-preview-field__button.edit-site-page-pages__media-wrapper .edit-site-page-pages__featured-image{height:100%;object-fit:cover;width:100%}.page-pages-preview-field__button.edit-site-page-pages__media-wrapper:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.edit-site-patterns{background:#1e1e1e;border-left:1px solid #2f2f2f;border-radius:0;margin:60px 0 0;min-height:100%;overflow-x:auto;padding:0}.edit-site-patterns .components-base-control{width:100%}@media (min-width:782px){.edit-site-patterns .components-base-control{width:auto}}.edit-site-patterns .components-text{color:#949494}.edit-site-patterns .components-heading{color:#e0e0e0}@media (min-width:782px){.edit-site-patterns{margin:0}}.edit-site-patterns .edit-site-patterns__search-block{flex-grow:1;min-width:-moz-fit-content;min-width:fit-content}.edit-site-patterns .edit-site-patterns__search{--wp-components-color-foreground:#e0e0e0}.edit-site-patterns .edit-site-patterns__search .components-input-control__container{background:#2f2f2f}.edit-site-patterns .edit-site-patterns__search svg{fill:#949494}.edit-site-patterns .edit-site-patterns__sync-status-filter{background:#2f2f2f;border:none;height:40px;max-width:100%;min-width:max-content;width:100%}@media (min-width:782px){.edit-site-patterns .edit-site-patterns__sync-status-filter{width:300px}}.edit-site-patterns .edit-site-patterns__sync-status-filter-option:not([aria-checked=true]){color:#949494}.edit-site-patterns .edit-site-patterns__sync-status-filter-option:active{background:#757575;color:#f0f0f0}.edit-site-patterns__header{background:#1e1e1e;padding:32px 32px 16px;position:sticky;top:0;z-index:2}.edit-site-patterns__header .edit-site-patterns__button{color:#949494}.edit-site-patterns__section{flex:1;padding:24px 32px}.edit-site-patterns__section-header .screen-reader-shortcut:focus{top:0}.edit-site-patterns__grid{display:grid;gap:32px;grid-template-columns:1fr;margin-bottom:0;margin-top:0}@media (min-width:960px){.edit-site-patterns__grid{grid-template-columns:1fr 1fr}}@media (min-width:1440px){.edit-site-patterns__grid{grid-template-columns:1fr 1fr 1fr}}@media (min-width:1920px){.edit-site-patterns__grid{grid-template-columns:1fr 1fr 1fr 1fr}}.edit-site-patterns__grid .edit-site-patterns__pattern{break-inside:avoid-column;display:flex;flex-direction:column}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;overflow:hidden;padding:0}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview:focus{box-shadow:inset 0 0 0 0 #fff,0 0 0 2px var(--wp-admin-theme-color);outline:2px solid #0000}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive{cursor:default}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #2f2f2f;opacity:.8}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__button,.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__footer{color:#949494}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__dropdown{flex-shrink:0}.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview{align-items:center;border:1px dashed #2f2f2f;color:#949494;display:flex;justify-content:center;min-height:64px}.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-patterns__grid .edit-site-patterns__preview{flex:0 1 auto;margin-bottom:12px}.edit-site-patterns__load-more{align-self:center}.edit-site-patterns__pattern-title{color:#e0e0e0}.edit-site-patterns__pattern-title .is-link{color:#e0e0e0;text-decoration:none}.edit-site-patterns__pattern-title .is-link:focus,.edit-site-patterns__pattern-title .is-link:hover{color:#fff}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-icon{background:var(--wp-block-synced-color);border-radius:4px;fill:#fff}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-lock-icon{fill:currentcolor}.edit-site-patterns__no-results{color:#949494}.edit-site-patterns__delete-modal{width:384px}.edit-site-patterns__pagination{background:#1e1e1e;border-top:1px solid #2f2f2f;bottom:0;color:#f0f0f0;padding:24px 32px;position:sticky;z-index:2}.edit-site-patterns__pagination .components-button.is-tertiary{background-color:#2f2f2f;color:#f0f0f0}.edit-site-patterns__pagination .components-button.is-tertiary:disabled{background:none;color:#949494}.edit-site-patterns__pagination .components-button.is-tertiary:hover:not(:disabled){background-color:#757575}.edit-site-page-patterns-dataviews{margin-top:60px}@media (min-width:782px){.edit-site-page-patterns-dataviews{margin-top:0}}.edit-site-page-patterns-dataviews .page-patterns-preview-field{border-radius:3px 3px 0 0;display:flex;flex-direction:column;height:100%}.edit-site-page-patterns-dataviews .page-patterns-preview-field.is-viewtype-grid .block-editor-block-preview__container{border-radius:3px 3px 0 0;height:100%}.edit-site-page-patterns-dataviews .page-patterns-preview-field .page-patterns-preview-field__button{background-color:unset;border:none;border-radius:3px 3px 0 0;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0}.edit-site-page-patterns-dataviews .page-patterns-preview-field .page-patterns-preview-field__button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.edit-site-page-patterns-dataviews .edit-site-patterns__pattern-icon{fill:var(--wp-block-synced-color);flex-shrink:0}.edit-site-page-patterns-dataviews .edit-site-patterns__pattern-lock-icon{min-width:min-content}.edit-site-page-patterns-dataviews .edit-site-patterns__section-header{border-bottom:1px solid #f0f0f0;min-height:72px;padding:16px 32px;position:sticky;top:0;z-index:2}.edit-site-page-patterns-dataviews .edit-site-patterns__pattern-title{color:inherit;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.edit-site-page-patterns-dataviews .dataviews-pagination{z-index:2}.dataviews-action-modal__duplicate-pattern [role=dialog]>[role=document]{width:350px}.dataviews-action-modal__duplicate-pattern .patterns-menu-items__convert-modal-categories{position:relative}.dataviews-action-modal__duplicate-pattern .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;left:-1px;max-height:96px;min-width:auto;position:absolute;width:calc(100% + 2px);z-index:1}@media (min-width:600px){.dataviews-action-modal__duplicate-template-part .components-modal__frame{max-width:500px}}.page-templates-preview-field{border-radius:3px 3px 0 0;display:flex;flex-direction:column;height:100%}.page-templates-preview-field .page-templates-preview-field__button{background-color:unset;border:none;border-radius:3px;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0}.page-templates-preview-field .page-templates-preview-field__button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.page-templates-preview-field.is-viewtype-list .block-editor-block-preview__container{height:120px}.page-templates-preview-field.is-viewtype-grid .block-editor-block-preview__container{height:auto}.page-templates-preview-field.is-viewtype-grid .page-templates-preview-field__button{border-radius:3px 3px 0 0}.page-templates-preview-field.is-viewtype-table{border-radius:2px;position:relative}.page-templates-preview-field.is-viewtype-table:after{border-radius:2px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.page-templates-description{white-space:normal}.edit-site-page-template-template-parts-dataviews .dataviews-pagination{z-index:2}.edit-site-table-wrapper{padding:32px;width:100%}.edit-site-table{border-collapse:collapse;border-color:inherit;position:relative;text-indent:0;width:100%}.edit-site-table a{text-decoration:none}.edit-site-table th{color:#757575;font-weight:400;padding:0 16px 16px;text-align:left}.edit-site-table td{padding:16px}.edit-site-table td,.edit-site-table th{vertical-align:center}.edit-site-table td:first-child,.edit-site-table th:first-child{padding-left:0}.edit-site-table td:last-child,.edit-site-table th:last-child{padding-right:0;text-align:right}.edit-site-table tr{border-bottom:1px solid #f0f0f0}.edit-site-sidebar-edit-mode{width:280px}.edit-site-sidebar-edit-mode>.components-panel{border-left:0;border-right:0;margin-bottom:-1px;margin-top:-1px}.edit-site-sidebar-edit-mode>.components-panel>.components-panel__header{background:#f0f0f0}.edit-site-sidebar-edit-mode .block-editor-block-inspector__card{margin:0}.edit-site-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.edit-site-global-styles-sidebar__navigator-provider,.edit-site-global-styles-sidebar__panel{display:flex;flex:1;flex-direction:column}.edit-site-global-styles-sidebar__navigator-screen{flex:1}.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon{margin-left:0}.edit-site-global-styles-sidebar__reset-button.components-button{margin-left:auto}.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{font-size:15.6px;font-weight:500}.edit-site-global-styles-sidebar .components-navigation__item>button span{font-weight:500}.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{border:0}.edit-site-global-styles-sidebar .single-column{grid-column:span 1}.edit-site-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.edit-site-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.edit-site-global-styles-sidebar__blocks-group-help{padding:0 16px}.edit-site-global-styles-color-palette-panel,.edit-site-global-styles-gradient-palette-panel{padding:16px}.edit-site-global-styles-sidebar hr{margin:0}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.edit-site-sidebar__panel{margin-top:-1px}.edit-site-page-panels__swap-template__confirm-modal__actions{margin-top:24px}.edit-site-change-status__content .components-popover__content{min-width:320px;padding:16px}.edit-site-change-status__content .edit-site-change-status__options .components-base-control__field>.components-v-stack{gap:8px}.edit-site-change-status__content .edit-site-change-status__options label .components-text{display:block}.edit-site-change-status__content .edit-site-change-status__password-legend{margin-bottom:8px;padding:0}.edit-site-summary-field__trigger{display:block;max-width:100%;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs{padding-left:0;padding-right:16px}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{height:24px;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{display:flex}}.edit-site-sidebar-card{align-items:flex-start;display:flex}.edit-site-sidebar-card__content{flex-grow:1;margin-bottom:4px}.edit-site-sidebar-card__title{font-weight:500;line-height:24px}.edit-site-sidebar-card__title.edit-site-sidebar-card__title{font-size:13px;line-height:1.4;margin:0;padding:3px 0}.edit-site-sidebar-card__description{font-size:13px}.edit-site-sidebar-card__icon{flex:0 0 24px;height:24px;margin-right:12px;width:24px}.edit-site-sidebar-card__header{display:flex;justify-content:space-between;margin:0 0 4px}.edit-site-template-card__template-areas{margin-top:16px}.edit-site-template-card__template-areas-list,.edit-site-template-card__template-areas-list>li{margin:0}.edit-site-template-card__template-areas-item{width:100%}.edit-site-template-card__template-areas-item.components-button.has-icon{padding:0}.edit-site-template-card__actions{line-height:0}.edit-site-template-card__actions>.components-button.is-small.has-icon{min-width:auto;padding:0}h3.edit-site-template-card__template-areas-title{font-weight:500;margin:0 0 8px}.edit-site-template-panel__replace-template-modal{z-index:1000001}.edit-site-template-panel__replace-template-modal__content{column-count:2;column-gap:24px}@media (min-width:782px){.edit-site-template-panel__replace-template-modal__content{column-count:3}}@media (min-width:1280px){.edit-site-template-panel__replace-template-modal__content{column-count:4}}.edit-site-editor__interface-skeleton{opacity:1;transition:opacity .1s ease-out}@media (prefers-reduced-motion:reduce){.edit-site-editor__interface-skeleton{transition-delay:0s;transition-duration:0s}}.edit-site-editor__interface-skeleton.is-loading{opacity:0}.edit-site-editor__interface-skeleton .interface-interface-skeleton__header{border:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site .components-editor-notices__snackbar{bottom:40px;left:0;padding-left:16px;padding-right:16px;position:absolute;right:0}@media (min-width:783px){.edit-site .components-editor-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-site .components-editor-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-site .components-editor-notices__snackbar{left:160px}}.folded .edit-site .components-editor-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-site .components-editor-notices__snackbar{left:36px}}body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{left:0!important}.edit-site-create-template-part-modal{z-index:1000001}@media (min-width:600px){.edit-site-create-template-part-modal .components-modal__frame{max-width:500px}}.edit-site-create-template-part-modal__area-radio-group{border:1px solid #757575;border-radius:2px;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio{display:block;height:100%;padding:12px;text-align:left;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover{background-color:inherit;border-bottom:1px solid #757575;border-radius:0;margin:0}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:focus){box-shadow:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:focus{border-bottom:1px solid #fff}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:last-of-type{border-bottom:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover) .edit-site-create-template-part-modal__option-label div,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true] .edit-site-create-template-part-modal__option-label div{color:#949494}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label{padding-top:4px;white-space:normal}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label div{font-size:12px;padding-top:4px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__checkbox{margin-left:auto;min-width:24px}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image .edit-site-welcome-guide.guide-styles .edit-site-welcome-guide__image{background:#00a0d2}.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video{border-right:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide.guide-template .edit-site-welcome-guide__video{border-left:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide__image{margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-site-start-template-options__modal .edit-site-start-template-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:92px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.edit-site-start-template-options__modal .block-editor-block-patterns-list{padding-bottom:92px}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{display:none}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__item:not(:focus):not(:hover) .block-editor-block-preview__container{box-shadow:0 0 0 1px #ddd}.edit-site-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-site-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-site-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-site-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-site-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-site-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.edit-site-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-site-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-site-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.edit-site-layout{background:#1e1e1e;color:#ccc;display:flex;flex-direction:column;height:100%}.edit-site-layout__hub{height:60px;left:0;position:fixed;top:0;width:calc(100vw - 32px);z-index:3}@media (min-width:782px){.edit-site-layout__hub{width:336px}}.edit-site-layout.is-full-canvas .edit-site-layout__hub{border-radius:0;box-shadow:none;padding-right:0;width:60px}.edit-site-layout__header-container{z-index:4}.edit-site-layout__header{display:flex;height:60px;z-index:2}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__header{position:fixed;width:100vw}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:360px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:100vh;left:0;position:fixed!important;top:0}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{right:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__mobile{position:relative;width:100%;z-index:2}.edit-site-layout__canvas-container{flex-grow:1;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas>div{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:16px;top:16px;width:calc(100% - 16px)}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .edit-site-visual-editor__editor-canvas,.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .interface-interface-skeleton__content,.edit-site-layout__canvas>div{border-radius:8px}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout.is-full-canvas .edit-site-layout__canvas>div{border-radius:0}.edit-site-layout__canvas .interface-interface-skeleton,.edit-site-layout__mobile .interface-interface-skeleton,.edit-site-template-pages-preview .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-template-pages-preview{height:100%}.edit-site-layout__view-mode-toggle.components-button{align-items:center;border-bottom:1px solid #0000;border-radius:0;color:#fff;display:flex;height:60px;justify-content:center;overflow:hidden;padding:0;position:relative;width:60px}.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button{border-bottom-color:#e0e0e0;transition:border-bottom-color .15s ease-out .4s}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus{box-shadow:none}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}@media (prefers-reduced-motion:reduce){.edit-site-layout__view-mode-toggle.components-button:before{transition-delay:0s;transition-duration:0s}}.edit-site-layout__view-mode-toggle.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #ffffff1a,inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;border-radius:2px;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-left:1px solid #ddd}}.edit-site-layout.is-distraction-free .edit-site-layout__header-container{height:60px;left:0;position:absolute;right:0;top:0;width:100%;z-index:4}.edit-site-layout.is-distraction-free .edit-site-layout__header-container:focus-within{opacity:1!important}.edit-site-layout.is-distraction-free .edit-site-layout__header-container:focus-within div{transform:translateX(0) translateY(0) translateZ(0)!important}.edit-site-layout.is-distraction-free .edit-site-layout__header-container:focus-within .edit-site-layout__header{opacity:1!important}.edit-site-layout.is-distraction-free .edit-site-layout__header,.edit-site-layout.is-distraction-free .edit-site-site-hub{position:absolute;top:0;z-index:2}.edit-site-layout.is-distraction-free .edit-site-site-hub{z-index:3}.edit-site-layout.is-distraction-free .edit-site-layout__header{width:100%}.edit-site-layout__area{flex-grow:1;margin:0;overflow:hidden}@media (min-width:782px){.edit-site-layout__area{border-radius:8px;margin:16px 16px 16px 0}}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:20px 16px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}.edit-site-save-hub__button:not(.is-primary).is-busy,.edit-site-save-hub__button:not(.is-primary).is-busy[aria-disabled=true]:hover{color:#1e1e1e}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{flex-grow:1;overflow-y:auto}.edit-site-sidebar__screen-wrapper{display:flex;flex-direction:column;height:100%;padding:0 12px;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-gutter:stable;scrollbar-width:thin;will-change:transform}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-track{background-color:initial}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.edit-site-sidebar__screen-wrapper:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__screen-wrapper:focus,.edit-site-sidebar__screen-wrapper:focus-within,.edit-site-sidebar__screen-wrapper:hover{scrollbar-color:#757575 #0000}@media (hover:none){.edit-site-sidebar__screen-wrapper{scrollbar-color:#757575 #0000}}.edit-site-sidebar__footer{border-top:1px solid #2f2f2f;flex-shrink:0;margin:0 16px;padding:16px 0}.edit-site-sidebar-button{color:#e0e0e0;flex-shrink:0}.edit-site-sidebar-button:focus:not(:disabled){box-shadow:none;outline:none}.edit-site-sidebar-button:focus-visible:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));outline:3px solid #0000}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover,.edit-site-sidebar-button:not([aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:#f0f0f0}.edit-site-sidebar-navigation-item.components-item{border:none;border-radius:2px;color:#949494;min-height:40px;padding:8px 6px 8px 16px}.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item[aria-current]{background:#2f2f2f;color:#e0e0e0}.edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item[aria-current] .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#e0e0e0}.edit-site-sidebar-navigation-item.components-item[aria-current]{background:var(--wp-admin-theme-color);color:#fff}.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#949494}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-right:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px 8px 8px 0}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1;margin-bottom:16px}.edit-site-sidebar-navigation-screen__main.has-footer{margin-bottom:0}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-item-group{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__content .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__meta{color:#ccc;margin:0 0 16px 16px}.edit-site-sidebar-navigation-screen__meta .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__page-link{color:#949494;display:inline-block;word-break:break-word}.edit-site-sidebar-navigation-screen__page-link:focus,.edit-site-sidebar-navigation-screen__page-link:hover{color:#fff}.edit-site-sidebar-navigation-screen__page-link .components-external-link__icon{margin-left:4px}.edit-site-sidebar-navigation-screen__title-icon{background:#1e1e1e;margin-bottom:8px;padding-bottom:8px;padding-top:108px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow-wrap:break-word;padding:6px 0 0}.edit-site-sidebar-navigation-screen__actions{display:flex;flex-shrink:0}@media (min-width:782px){.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container{max-width:292px}}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item-preview{box-shadow:0 0 0 1px #1e1e1e}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{box-shadow:0 0 0 1px #f0f0f0}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__footer{background-color:#1e1e1e;border-top:1px solid #2f2f2f;bottom:0;gap:0;margin:16px 0 0;padding:16px 0;position:sticky}.edit-site-sidebar__notice{background:#2f2f2f;color:#ddd;margin:24px 0}.edit-site-sidebar__notice.is-dismissible{padding-right:8px}.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]){color:#ccc}.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#fff}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:#2f2f2f}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button{color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:#2f2f2f!important;border-radius:2px;color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:#949494}.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item[aria-current]{background:none}.edit-site-sidebar-navigation-screen-details-footer .edit-site-sidebar-navigation-screen-details-footer__icon{margin-left:auto;fill:#949494}.sidebar-navigation__more-menu .components-button{color:#e0e0e0}.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:#f0f0f0}.edit-site-sidebar-navigation-screen-page__featured-image-wrapper{background-color:#2f2f2f;border-radius:4px;margin-bottom:16px;min-height:128px}.edit-site-sidebar-navigation-screen-page__featured-image{align-items:center;background-position:50% 50%;background-size:cover;border-radius:2px;color:#949494;display:flex;height:128px;justify-content:center;overflow:hidden;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image img{height:100%;object-fit:cover;object-position:50% 50%;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image-description{font-size:12px}.edit-site-sidebar-navigation-screen-page__excerpt{font-size:12px;margin-bottom:24px}.edit-site-sidebar-navigation-screen-page__modified{color:#949494;margin:0 0 16px 16px}.edit-site-sidebar-navigation-screen-page__modified .components-text{color:#949494}.edit-site-sidebar-navigation-screen-page__status{display:inline-flex}.edit-site-sidebar-navigation-screen-page__status time{display:contents}.edit-site-sidebar-navigation-screen-page__status svg{height:16px;margin-right:8px;width:16px;fill:#f0b849}.edit-site-sidebar-navigation-screen-page__status.has-future-status svg,.edit-site-sidebar-navigation-screen-page__status.has-publish-status svg{fill:#4ab866}.edit-site-sidebar-navigation-screen-templates__templates-group-title.components-item{border-top:1px solid #2f2f2f;color:#e0e0e0;font-size:11px;font-weight:500;padding:24px 6px 16px 16px;text-transform:uppercase}.edit-site-sidebar-navigation-details-screen-panel{margin:24px 0}.edit-site-sidebar-navigation-details-screen-panel:last-of-type{margin-bottom:0}.edit-site-sidebar-navigation-details-screen-panel .edit-site-sidebar-navigation-details-screen-panel__heading{color:#ccc;font-size:11px;font-weight:500;margin-bottom:0;padding:0;text-transform:uppercase}.edit-site-sidebar-navigation-details-screen-panel__label.edit-site-sidebar-navigation-details-screen-panel__label{color:#949494;flex-shrink:0;width:100px}.edit-site-sidebar-navigation-details-screen-panel__value.edit-site-sidebar-navigation-details-screen-panel__value{color:#e0e0e0}.edit-site-sidebar-navigation-screen-pattern__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author img{border-radius:12px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon{height:24px;margin-right:8px;width:24px}.edit-site-sidebar-navigation-screen-patterns__group{margin-bottom:24px}.edit-site-sidebar-navigation-screen-patterns__group:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:0}.edit-site-sidebar-navigation-screen-patterns__group-header{margin-top:16px}.edit-site-sidebar-navigation-screen-patterns__group-header p{color:#949494}.edit-site-sidebar-navigation-screen-patterns__group-header h2{font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-navigation-screen-template__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-template__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-template__added-by-description-author img{border-radius:12px;height:20px;width:20px}.edit-site-sidebar-navigation-screen-template__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-template__added-by-description-author-icon{align-items:center;display:inline-flex;height:24px;justify-content:center;margin-right:4px;width:24px}.edit-site-sidebar-navigation-screen-template__template-area-button{align-items:center;border-radius:4px;color:#fff;display:flex;flex-wrap:nowrap;width:100%}.edit-site-sidebar-navigation-screen-template__template-area-button:focus,.edit-site-sidebar-navigation-screen-template__template-area-button:hover{background:#2f2f2f;color:#fff}.edit-site-sidebar-navigation-screen-template__template-area-label-text{flex-grow:1;margin:0 16px 0 4px}.edit-site-sidebar-navigation-screen-template__template-icon{display:flex}.edit-site-sidebar-navigation-screen-dataviews__group-header{margin-top:32px}.edit-site-sidebar-navigation-screen-dataviews__group-header h2{font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-dataviews-dataview-item{border-radius:2px;padding-right:8px}.edit-site-sidebar-dataviews-dataview-item .edit-site-sidebar-dataviews-dataview-item__dropdown-menu{min-width:auto}.edit-site-sidebar-dataviews-dataview-item:focus,.edit-site-sidebar-dataviews-dataview-item:hover,.edit-site-sidebar-dataviews-dataview-item[aria-current]{background:#2f2f2f;color:#e0e0e0}.edit-site-sidebar-dataviews-dataview-item.is-selected{background:var(--wp-admin-theme-color);color:#fff}.edit-site-site-hub{align-items:center;display:flex;gap:8px;justify-content:space-between}.edit-site-site-hub .edit-site-site-hub__container{gap:0}.edit-site-site-hub .edit-site-site-hub__site-title,.edit-site-site-hub .edit-site-site-hub__site-view-link,.edit-site-site-hub .edit-site-site-hub_toggle-command-center{transition:opacity .1s ease}.edit-site-site-hub .edit-site-site-hub__site-title.is-transparent,.edit-site-site-hub .edit-site-site-hub__site-view-link.is-transparent,.edit-site-site-hub .edit-site-site-hub_toggle-command-center.is-transparent{opacity:0!important}.edit-site-site-hub .edit-site-site-hub__site-view-link{flex-grow:0;margin-right:var(--wp-admin-border-width-focus)}.edit-site-site-hub .edit-site-site-hub__site-view-link svg{fill:#e0e0e0}.edit-site-site-hub__post-type{opacity:.6}.edit-site-site-hub__view-mode-toggle-container{background:#1e1e1e;flex-shrink:0;height:60px;width:60px}.edit-site-site-hub__view-mode-toggle-container.has-transparent-background{background:#0000}.edit-site-site-hub__text-content{overflow:hidden}.edit-site-site-hub__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__site-title{color:#e0e0e0;flex-grow:1}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:active svg,.edit-site-site-hub_toggle-command-center:hover svg{fill:#f0f0f0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf{border-radius:2px;max-width:calc(100% - 4px)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf[aria-current]{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block__menu{margin-left:-8px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected>td{background:#0000}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents{color:inherit}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:not(:hover) .block-editor-list-view-block__menu{opacity:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus .block-editor-list-view-block__menu-cell,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover .block-editor-list-view-block__menu-cell{opacity:1}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:#0000}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch):hover{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block__contents-cell{width:100%}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-right:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button[aria-current]{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-site-icon__icon{fill:currentColor;transition:padding .3s ease-out}@media (prefers-reduced-motion:reduce){.edit-site-site-icon__icon{transition-delay:0s;transition-duration:0s}}.edit-site-layout.is-full-canvas .edit-site-site-icon__icon{padding:6px}.edit-site-site-icon__image{background:#333;border-radius:4px;height:100%;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__image{border-radius:0}.edit-site-style-book{height:100%}.edit-site-style-book.is-button,.edit-site-style-book__iframe.is-button{border-radius:8px}.edit-site-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-style-book__tabs [role=tablist]{background:#fff;color:#1e1e1e}.edit-site-style-book__tabs [role=tabpanel]{bottom:0;left:0;overflow:auto;padding:0;position:absolute;right:0;top:48px}.edit-site-editor-canvas-container{background:#fff;border-radius:2px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;transition:all .3s}.edit-site-editor-canvas-container__close-button{background:#fff;position:absolute;right:8px;top:6px;z-index:1}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:#75757566;border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid #0000}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}.edit-site-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}@media (min-width:782px){.font-library-modal.font-library-modal{width:65vw}}.font-library-modal .components-modal__header{border-bottom:none}.font-library-modal .components-modal__content{margin-bottom:70px;padding-top:0}.font-library-modal .font-library-modal__subtitle{font-size:11px;font-weight:500;text-transform:uppercase}.font-library-modal .components-navigator-screen{padding:3px}.font-library-modal__tabpanel-layout{margin-top:32px}.font-library-modal__tabpanel-layout .font-library-modal__tabpanel-layout__footer{background-color:#fff;border-top:1px solid #ddd;bottom:32px;height:70px;margin:0 -32px -32px;padding:16px 32px;position:absolute;width:100%}.font-library-modal__tabpanel-layout .components-base-control__field{margin-bottom:0}.font-library-modal__font-card{border:1px solid #e0e0e0;height:auto;margin-top:-1px;padding:16px;width:100%}.font-library-modal__font-card:hover{background-color:#f0f0f0}.font-library-modal__font-card .font-library-modal__font-card__name{font-weight:700}.font-library-modal__font-card .font-library-modal__font-card__count{color:#757575}.font-library-modal__font-variant_demo-image{display:block;height:24px;width:auto}.font-library-modal__font-variant_demo-text{flex-shrink:0;transition:opacity .3s ease-in-out;white-space:nowrap}@media (prefers-reduced-motion:reduce){.font-library-modal__font-variant_demo-text{transition-delay:0s;transition-duration:0s}}.font-library-modal__font-variant{border-bottom:1px solid #e0e0e0;padding-bottom:16px}.font-library-modal__tabs [role=tablist]{background:#fff;border-bottom:1px solid #ddd;margin:0 -32px;padding:0 16px;position:sticky;top:0;z-index:1}.font-library-modal__upload-area{align-items:center;display:flex;height:256px;justify-content:center;width:100%}button.font-library-modal__upload-area{background-color:#f0f0f0}.font-library-modal__local-fonts{margin:0 auto;width:80%}.font-library-modal__local-fonts .font-library-modal__upload-area__text{color:#757575}.font-library__google-fonts-confirm{align-items:center;display:flex;justify-content:center;margin-top:64px}.font-library__google-fonts-confirm h3{font-size:1.4rem}.font-library__google-fonts-confirm .components-card{max-width:400px;min-width:350px;width:50%}.edit-site-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}body.js #wpadminbar{display:none}body.js #wpbody{padding-top:0}body.js.appearance_page_gutenberg-template-parts,body.js.site-editor-php{background:#fff}body.js.appearance_page_gutenberg-template-parts #wpcontent,body.js.site-editor-php #wpcontent{padding-left:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content,body.js.site-editor-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.appearance_page_gutenberg-template-parts #wpfooter,body.js.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.site-editor-php #wpfooter{display:none}body.js.appearance_page_gutenberg-template-parts .a11y-speak-region,body.js.site-editor-php .a11y-speak-region{left:-1px;top:-1px}body.js.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.js.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.js.site-editor-php ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.js.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.js.site-editor-php{background:#1e1e1e}.components-modal__frame,.edit-site{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}.edit-site{height:100vh}@media (min-width:600px){.edit-site{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.no-js .edit-site{min-height:0;position:static}.edit-site .interface-interface-skeleton{top:0}.edit-site .interface-complementary-area__pin-unpin-item.components-button{display:none}.edit-site .interface-interface-skeleton__content{background-color:#1e1e1e}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
+@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.dataviews-wrapper{box-sizing:border-box;container:dataviews-wrapper/inline-size;display:flex;flex-direction:column;height:100%;overflow:auto;scroll-padding-bottom:64px}.dataviews-filters__view-actions{box-sizing:border-box;flex-shrink:0;left:0;padding:16px 48px;position:sticky;transition:padding .1s ease-out}@media (prefers-reduced-motion:reduce){.dataviews-filters__view-actions{transition-delay:0s;transition-duration:0s}}.dataviews-filters__view-actions .components-search-control .components-base-control__field{max-width:240px}.dataviews-filters__container .dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__container .dataviews-filters__reset-button[aria-disabled=true]:hover{opacity:0}.dataviews-filters__container .dataviews-filters__reset-button[aria-disabled=true]:focus{opacity:1}.dataviews-filters-button{position:relative}.dataviews-pagination{background-color:#fff;border-top:1px solid #f0f0f0;bottom:0;color:#757575;flex-shrink:0;left:0;padding:12px 48px;position:sticky;transition:padding .1s ease-out}@media (prefers-reduced-motion:reduce){.dataviews-pagination{transition-delay:0s;transition-duration:0s}}.dataviews-pagination__page-selection{color:#1e1e1e;font-size:11px;font-weight:500;text-transform:uppercase}.dataviews-filters-options{margin:32px 0 16px}.dataviews-view-table{border-collapse:collapse;border-color:inherit;color:#757575;margin-bottom:auto;position:relative;text-indent:0;width:100%}.dataviews-view-table a{color:#1e1e1e;font-weight:500;text-decoration:none}.dataviews-view-table th{color:#1e1e1e;font-size:13px;font-weight:400;text-align:left}.dataviews-view-table td,.dataviews-view-table th{padding:12px;white-space:nowrap}.dataviews-view-table td[data-field-id=actions],.dataviews-view-table th[data-field-id=actions]{text-align:right}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-right:0}.dataviews-view-table tr{border-bottom:1px solid #f0f0f0}.dataviews-view-table tr .dataviews-view-table-header-button{gap:4px}.dataviews-view-table tr td:first-child,.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:first-child,.dataviews-view-table tr th:last-child{transition:padding .1s ease-out}@media (prefers-reduced-motion:reduce){.dataviews-view-table tr td:first-child,.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:first-child,.dataviews-view-table tr th:last-child{transition-delay:0s;transition-duration:0s}}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-left:48px}.dataviews-view-table tr td:first-child .dataviews-view-table-header,.dataviews-view-table tr td:first-child .dataviews-view-table-header-button,.dataviews-view-table tr th:first-child .dataviews-view-table-header,.dataviews-view-table tr th:first-child .dataviews-view-table-header-button{margin-left:-8px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-right:48px}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr.is-hovered{background-color:#f8f8f8}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input{opacity:0}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate{opacity:1}.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:0}.dataviews-view-table tr.is-hovered .components-checkbox-control__input,.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .components-checkbox-control__input,.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .components-checkbox-control__input,.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}@media (hover:none){.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input,.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}}.dataviews-view-table tr.is-selected{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#757575}.dataviews-view-table tr.is-selected:hover{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-table thead{inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead th{background-color:#fff;box-shadow:inset 0 -1px 0 #f0f0f0;font-size:11px;font-weight:500;padding-bottom:8px;padding-left:4px;padding-top:8px;text-transform:uppercase}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:32px}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper>*{flex-grow:1}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__primary-field a{flex-grow:0}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:500;padding:4px 8px;text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:#1e1e1e}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-left:4px}.dataviews-view-table .dataviews-view-table__actions-column{width:1%}.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input{opacity:1}.dataviews-view-grid__primary-field,.dataviews-view-list__primary-field,.dataviews-view-table__primary-field{color:#757575;display:block;font-size:13px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-view-grid__primary-field a,.dataviews-view-list__primary-field a,.dataviews-view-table__primary-field a{color:#1e1e1e;display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.dataviews-view-grid__primary-field a:hover,.dataviews-view-list__primary-field a:hover,.dataviews-view-table__primary-field a:hover{color:var(--wp-admin-theme-color)}.dataviews-view-grid__primary-field a:focus,.dataviews-view-list__primary-field a:focus,.dataviews-view-table__primary-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-view-grid__primary-field button.components-button.is-link,.dataviews-view-list__primary-field button.components-button.is-link,.dataviews-view-table__primary-field button.components-button.is-link{color:#1e1e1e;display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-view-grid__primary-field button.components-button.is-link:hover,.dataviews-view-list__primary-field button.components-button.is-link:hover,.dataviews-view-table__primary-field button.components-button.is-link:hover{color:var(--wp-admin-theme-color)}.dataviews-view-grid{grid-template-columns:repeat(1,minmax(0,1fr))!important;grid-template-rows:max-content;margin-bottom:auto;padding:0 48px 24px;transition:padding .1s ease-out}@media (prefers-reduced-motion:reduce){.dataviews-view-grid{transition-delay:0s;transition-duration:0s}}@media (min-width:480px){.dataviews-view-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media (min-width:1080px){.dataviews-view-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media (min-width:1440px){.dataviews-view-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}.dataviews-view-grid .dataviews-view-grid__card{height:100%;justify-content:flex-start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:8px 0 4px}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__primary-field{min-height:32px}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:#1e1e1e}.dataviews-view-grid .dataviews-view-grid__card.is-selected .page-pages-preview-field__button:after{background:rgba(var(--wp-admin-theme-color--rgb),.04);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__media{aspect-ratio:1/1;background-color:#f0f0f0;border-radius:4px;min-height:200px;position:relative;width:100%}.dataviews-view-grid .dataviews-view-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty){padding:0 0 12px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field{align-items:flex-start}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(.is-column){align-items:center}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(.is-column) .dataviews-view-grid__field-name{width:35%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(.is-column) .dataviews-view-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{color:#757575}.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty){padding-bottom:12px}.dataviews-view-grid .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;font-size:12px;min-height:24px;padding:0 8px;width:-moz-fit-content;width:fit-content}.dataviews-view-list{margin:0 0 auto}.dataviews-view-list li{border-top:1px solid #f0f0f0;cursor:pointer;margin:0}.dataviews-view-list li .dataviews-view-list__item-wrapper{border-radius:4px;position:relative}.dataviews-view-list li .dataviews-view-list__item-wrapper>*{width:100%}.dataviews-view-list li .dataviews-view-list__item-actions .components-button{opacity:0;position:fixed;right:0}.dataviews-view-list li.is-hovered .dataviews-view-list__item-actions,.dataviews-view-list li.is-selected .dataviews-view-list__item-actions,.dataviews-view-list li:focus-within .dataviews-view-list__item-actions{padding-right:32px}.dataviews-view-list li.is-hovered .dataviews-view-list__item-actions .components-button,.dataviews-view-list li.is-selected .dataviews-view-list__item-actions .components-button,.dataviews-view-list li:focus-within .dataviews-view-list__item-actions .components-button{opacity:1;position:static}.dataviews-view-list li.is-hovered .dataviews-view-list__item,.dataviews-view-list li.is-selected .dataviews-view-list__item,.dataviews-view-list li:focus-within .dataviews-view-list__item{padding-right:0}.dataviews-view-list li:not(.is-selected) .dataviews-view-list__primary-field{color:#1e1e1e}.dataviews-view-list li:not(.is-selected):focus-within,.dataviews-view-list li:not(.is-selected):hover{background-color:#f8f8f8;color:var(--wp-admin-theme-color)}.dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__primary-field,.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__primary-field{color:var(--wp-admin-theme-color)}.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#1e1e1e}.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field{color:var(--wp-admin-theme-color)}.dataviews-view-list .dataviews-view-list__item{padding:16px 0 16px 24px;scroll-margin:8px 0;width:100%}.dataviews-view-list .dataviews-view-list__item:focus-visible:before{border-radius:2px;bottom:var(--wp-admin-border-width-focus);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:var(--wp-admin-border-width-focus);position:absolute;right:var(--wp-admin-border-width-focus);top:calc(var(--wp-admin-border-width-focus) + 1px)}.dataviews-view-list .dataviews-view-list__item .dataviews-view-list__primary-field{line-height:20px;min-height:20px;overflow:hidden}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:#f0f0f0;border-radius:4px;flex-shrink:0;height:40px;overflow:hidden;position:relative;width:40px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.dataviews-view-list .dataviews-view-list__media-placeholder{background-color:#e0e0e0;height:32px;min-width:32px}.dataviews-view-list .dataviews-view-list__fields{color:#757575;display:flex;flex-wrap:wrap;font-size:12px;gap:8px}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty){display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{display:inline-flex;line-height:20px}.dataviews-view-list .dataviews-view-list__item-actions{padding-right:24px}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-action-modal{z-index:1000001}.dataviews-loading,.dataviews-no-results{align-items:center;display:flex;flex-grow:1;justify-content:center;padding:0 48px;transition:padding .1s ease-out}@media (prefers-reduced-motion:reduce){.dataviews-loading,.dataviews-no-results{transition-delay:0s;transition-duration:0s}}.dataviews-view-table-selection-checkbox{--checkbox-input-size:24px;flex-shrink:0;line-height:0}@media (min-width:600px){.dataviews-view-table-selection-checkbox{--checkbox-input-size:16px}}.dataviews-view-table-selection-checkbox .components-checkbox-control__input-container{margin:0}.dataviews-filters__custom-menu-radio-item-prefix{display:block;width:24px}.dataviews-bulk-edit-button.components-button{flex-shrink:0}.dataviews-filter-summary__popover .components-popover__content{border-radius:4px;padding:0;width:230px}.dataviews-search-widget-filter-combobox-list{border-top:1px solid #e0e0e0;max-height:184px;overflow:auto;padding:4px}.dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item-value [data-user-value]{font-weight:600}.dataviews-search-widget-listbox{max-height:184px;overflow:auto;padding:4px}.dataviews-search-widget-listitem{align-items:center;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;gap:8px;margin-block-end:2px;padding:8px 12px}.dataviews-search-widget-listitem:last-child{margin-block-end:0}.dataviews-search-widget-listitem:focus,.dataviews-search-widget-listitem:hover,.dataviews-search-widget-listitem[data-active-item]{background-color:var(--wp-admin-theme-color);color:#fff}.dataviews-search-widget-listitem:focus .dataviews-search-widget-listitem-check,.dataviews-search-widget-listitem:hover .dataviews-search-widget-listitem-check,.dataviews-search-widget-listitem[data-active-item] .dataviews-search-widget-listitem-check{fill:#fff}.dataviews-search-widget-listitem:focus .dataviews-search-widget-listitem-description,.dataviews-search-widget-listitem:hover .dataviews-search-widget-listitem-description,.dataviews-search-widget-listitem[data-active-item] .dataviews-search-widget-listitem-description{color:#fff}.dataviews-search-widget-listitem .dataviews-search-widget-listitem-check{flex-shrink:0;height:24px;width:24px}.dataviews-search-widget-listitem .dataviews-search-widget-listitem-description{color:#757575;display:block;font-size:12px;line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-search-widget-filter-combobox__wrapper{padding:8px;position:relative}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input{background:#f0f0f0;border:none;border-radius:2px;box-shadow:0 0 0 #0000;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:32px;line-height:normal;margin-left:0;margin-right:0;padding:0 32px 0 8px;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-moz-placeholder{color:#1e1e1e9e;opacity:1}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input:-ms-input-placeholder{color:#1e1e1e9e}@media (min-width:600px){.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input{font-size:13px}}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input:focus{background:#fff;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::placeholder{color:#757575}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__icon{align-items:center;display:flex;justify-content:center;position:absolute;right:12px;top:50%;transform:translateY(-50%);width:24px}.dataviews-filter-summary__operators-container{padding:8px 8px 0}.dataviews-filter-summary__operators-container:has(+.dataviews-search-widget-listbox){border-bottom:1px solid #e0e0e0;padding-bottom:8px}.dataviews-filter-summary__operators-container:empty{display:none}.dataviews-filter-summary__operators-container .dataviews-filter-summary__operators-filter-name{color:#757575}.dataviews-filter-summary__chip-container{position:relative;white-space:pre-wrap}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip{align-items:center;background:#f0f0f0;border:1px solid #0000;border-radius:16px;color:#2f2f2f;cursor:pointer;display:flex;height:32px;padding:0 12px;position:relative}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-reset{padding-inline-end:28px}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip:focus-visible,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip:hover,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip[aria-expanded=true]{background:#e0e0e0;color:#1e1e1e}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-values{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-admin-theme-color)}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-values:hover,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-values[aria-expanded=true]{background:rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip .dataviews-filter-summary__filter-text-name{font-weight:500}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove{align-items:center;background:#0000;border:0;border-radius:50%;cursor:pointer;display:flex;height:24px;justify-content:center;padding:0;position:absolute;right:4px;top:50%;transform:translateY(-50%);width:24px}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove svg{fill:#757575}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:focus,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:hover{background:#e0e0e0}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:focus svg,.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:hover svg{fill:#1e1e1e}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove.has-values svg{fill:var(--wp-admin-theme-color)}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove.has-values:hover{background:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}@container (max-width: 430px){.dataviews-filters__view-actions,.dataviews-pagination{padding:12px 24px}.dataviews-filters__view-actions .components-search-control .components-base-control__field{max-width:112px}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-left:24px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-right:24px}.dataviews-loading,.dataviews-no-results,.dataviews-view-grid{padding-left:24px;padding-right:24px}}.dataviews-bulk-actions-toolbar-wrapper{display:flex;flex-grow:1;width:100%}.dataviews-bulk-actions-toolbar-wrapper .components-toolbar-group{align-items:center}.dataviews-bulk-actions-toolbar-wrapper .components-button.is-busy{max-height:36px}.dataviews-bulk-actions{align-content:center;bottom:24px;display:flex;flex-direction:column;flex-wrap:wrap;margin-left:auto;margin-right:auto;position:sticky;width:-moz-fit-content;width:fit-content;z-index:2}.dataviews-bulk-actions .components-accessible-toolbar{border-color:#ddd;box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a}.dataviews-bulk-actions .components-accessible-toolbar .components-toolbar-group{border-color:#e0e0e0}.dataviews-bulk-actions .components-accessible-toolbar .components-toolbar-group:last-child{border:0}.dataviews-bulk-actions .dataviews-bulk-actions__selection-count{align-items:center;display:flex;margin:0 8px}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{max-height:224px;overflow-y:auto}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:left;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 64px)}@media (min-width:960px){.edit-site-add-new-template__modal{width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;border-radius:2px;display:flex;flex-direction:column;justify-content:center;outline:1px solid #0000;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:#0000;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:#0000;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid #0000}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column-end:4;grid-column-start:1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-canvas-loader{align-items:center;animation:edit-site-canvas-loader__fade-in-animation .5s ease .2s;animation-fill-mode:forwards;display:flex;height:100%;justify-content:center;left:0;opacity:0;position:absolute;top:0;width:100%}@media (prefers-reduced-motion:reduce){.edit-site-canvas-loader{animation-delay:0s;animation-duration:1ms}}.edit-site-canvas-loader>div{width:160px}@keyframes edit-site-canvas-loader__fade-in-animation{0%{opacity:0}to{opacity:1}}.edit-site-global-styles-preview{align-items:center;cursor:pointer;display:flex;justify-content:center;line-height:1}.edit-site-global-styles-preview__iframe{display:block;max-width:100%;width:100%}.edit-site-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:16px;min-height:100px;overflow:hidden}.edit-site-typography-panel__full-width-control{grid-column:1/-1;max-width:100%}.edit-site-global-styles-screen{margin:12px 16px 16px}.edit-site-global-styles-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.edit-site-global-styles-screen-typography__font-variants-count{color:#757575}.edit-site-global-styles-font-families__add-fonts{justify-content:center}.edit-site-global-styles-screen .color-block-support-panel{border-top:none;padding-left:0;padding-right:0;padding-top:0;row-gap:12px}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-block-types-search{margin-bottom:8px;padding:0 16px}.edit-site-global-styles-header{margin-bottom:0!important}.edit-site-global-styles-subtitle{font-size:11px!important;font-weight:500!important;margin-bottom:0!important;text-transform:uppercase}.edit-site-global-styles-section-title{color:#2f2f2f;font-weight:600;line-height:1.2;margin:0;padding:16px 16px 0}.edit-site-global-styles-icon-with-current-color{fill:currentColor}.edit-site-global-styles__color-indicator-wrapper{flex-shrink:0;height:24px}.edit-site-global-styles__shadows-panel__options-container,.edit-site-global-styles__shadows-panel__title{height:24px}.edit-site-global-styles__block-preview-panel{border:1px solid #e0e0e0;border-radius:2px;overflow:auto;position:relative;width:100%}.edit-site-global-styles__shadow-preview-panel{background-image:repeating-linear-gradient(45deg,#f5f5f5 25%,#0000 0,#0000 75%,#f5f5f5 0,#f5f5f5),repeating-linear-gradient(45deg,#f5f5f5 25%,#0000 0,#0000 75%,#f5f5f5 0,#f5f5f5);background-position:0 0,8px 8px;background-size:16px 16px;border:1px solid #e0e0e0;border-radius:2px;height:150px;overflow:auto}.edit-site-global-styles__shadow-preview-panel .edit-site-global-styles__shadow-preview-block{background-color:#fff;border:1px solid #e0e0e0;border-radius:2px;height:60px;width:60%}.edit-site-global-styles__shadow-editor-panel{margin-bottom:4px;padding:16px;width:280px}.edit-site-global-styles__shadow-editor-panel .edit-site-global-styles__shadow-editor-color-palette{margin-bottom:-4px}.edit-site-global-styles__shadow-editor__dropdown{width:100%}.edit-site-global-styles__shadow-editor__dropdown .edit-site-global-styles__shadow-editor__dropdown-toggle,.edit-site-global-styles__shadow-editor__dropdown .edit-site-global-styles__shadow-editor__remove-button{border-radius:inherit;height:auto;padding-bottom:8px;padding-top:8px;text-align:left;width:100%}.edit-site-global-styles__shadow-editor__dropdown .edit-site-global-styles__shadow-editor__dropdown-toggle.is-open,.edit-site-global-styles__shadow-editor__dropdown .edit-site-global-styles__shadow-editor__remove-button.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-css{display:flex;flex:1 1 auto;flex-direction:column;margin:16px}.edit-site-global-styles-screen-css .components-v-stack{flex:1 1 auto}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input,.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field .components-textarea-control__input{direction:ltr;flex:1 1 auto}.edit-site-global-styles-screen-css-help-link{display:inline-block;margin-top:8px}.edit-site-global-styles-screen-variations{border-top:1px solid #ddd;margin-top:16px}.edit-site-global-styles-screen-variations>*{margin:24px 16px}.edit-site-global-styles-sidebar__navigator-screen{display:flex;flex-direction:column}.edit-site-global-styles-screen-root.edit-site-global-styles-screen-root,.edit-site-global-styles-screen-style-variations.edit-site-global-styles-screen-style-variations{background:unset;color:inherit}.edit-site-global-styles-sidebar__panel .block-editor-block-icon svg{fill:currentColor}.edit-site-global-styles-screen-revisions__revisions-list{flex-grow:1;list-style:none;margin:0 16px 16px}.edit-site-global-styles-screen-revisions__revisions-list li{margin-bottom:0}.edit-site-global-styles-screen-revisions__revision-item{cursor:pointer;display:flex;flex-direction:column;position:relative}.edit-site-global-styles-screen-revisions__revision-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-global-styles-screen-revisions__revision-item:hover .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item:after,.edit-site-global-styles-screen-revisions__revision-item:before{content:"\a";display:block;position:absolute}.edit-site-global-styles-screen-revisions__revision-item:before{background:#ddd;border:4px solid #0000;border-radius:50%;height:8px;left:17px;top:18px;transform:translate(-50%,-50%);width:8px;z-index:1}.edit-site-global-styles-screen-revisions__revision-item.is-selected{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:2px;color:var(--wp-admin-theme-color);outline:3px solid #0000;outline-offset:-2px}.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__revision-button{opacity:1}.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item.is-selected:before{background:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__changes>li,.edit-site-global-styles-screen-revisions__revision-item.is-selected .edit-site-global-styles-screen-revisions__meta{color:#1e1e1e}.edit-site-global-styles-screen-revisions__revision-item:after{border:.5px solid #ddd;height:100%;left:16px;top:0;width:0}.edit-site-global-styles-screen-revisions__revision-item:first-child:after{top:18px}.edit-site-global-styles-screen-revisions__revision-item:last-child:after{height:18px}.edit-site-global-styles-screen-revisions__revision-item .edit-site-global-styles-screen-revisions__revision-button{display:block;height:auto;outline-offset:-2px;padding:12px 12px 4px 40px;position:relative;width:100%;z-index:1}.edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__apply-button.is-primary{align-self:flex-start;margin:4px 12px 12px 40px}.edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__changes,.edit-site-global-styles-screen-revisions__meta{color:#757575;font-size:12px}.edit-site-global-styles-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.edit-site-global-styles-screen-revisions__description .edit-site-global-styles-screen-revisions__date{font-size:12px;font-weight:600;text-transform:uppercase}.edit-site-global-styles-screen-revisions__meta{align-items:flex-start;display:flex;justify-content:start;margin-bottom:4px;text-align:left;width:100%}.edit-site-global-styles-screen-revisions__meta img{border-radius:100%;height:16px;margin-right:8px;width:16px}.edit-site-global-styles-screen-revisions__loading{margin:24px auto!important}.edit-site-global-styles-screen-revisions__changes{line-height:1.4;list-style:disc;margin-left:12px;text-align:left}.edit-site-global-styles-screen-revisions__changes li{margin-bottom:4px}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination{gap:2px;justify-content:space-between}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .edit-site-pagination__total{height:1px;left:-1000px;margin:-1px;overflow:hidden;position:absolute}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-text{font-size:12px;will-change:opacity}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary{color:#1e1e1e}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:disabled,.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{color:#949494}.edit-site-global-styles-screen-revisions__footer{background:#fff;border-top:1px solid #ddd;bottom:0;height:56px;min-width:100%;padding:12px;position:sticky;z-index:1}.editor-sidebar{width:280px}.editor-sidebar>.components-panel{border-left:0;border-right:0;margin-bottom:-1px;margin-top:-1px}.editor-sidebar>.components-panel>.components-panel__header{background:#f0f0f0}.editor-sidebar .block-editor-block-inspector__card{margin:0}.edit-site-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.edit-site-global-styles-sidebar__navigator-provider,.edit-site-global-styles-sidebar__panel{display:flex;flex:1;flex-direction:column}.edit-site-global-styles-sidebar__navigator-screen{flex:1}.edit-site-global-styles-sidebar .edit-site-global-styles-sidebar__header-title{margin:0}.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{font-size:15.6px;font-weight:500}.edit-site-global-styles-sidebar .components-navigation__item>button span{font-weight:500}.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{border:0}.edit-site-global-styles-sidebar .single-column{grid-column:span 1}.edit-site-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.edit-site-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.edit-site-global-styles-sidebar__blocks-group-help{padding:0 16px}.edit-site-global-styles-color-palette-panel,.edit-site-global-styles-gradient-palette-panel{padding:16px}.edit-site-global-styles-sidebar hr{margin:0}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.edit-site-page{background:#fff;color:#2f2f2f;container:edit-site-page/inline-size;height:100%;transition:width .2s ease-out}@media (prefers-reduced-motion:reduce){.edit-site-page{transition-delay:0s;transition-duration:0s}}.edit-site-page-header{background:#fff;border-bottom:1px solid #f0f0f0;padding:16px 48px;position:sticky;top:0;transition:padding .1s ease-out;z-index:2}@media (prefers-reduced-motion:reduce){.edit-site-page-header{transition-delay:0s;transition-duration:0s}}.edit-site-page-header .components-heading{color:#1e1e1e}.edit-site-page-header .edit-site-page-header__page-title{min-height:40px}.edit-site-page-header .edit-site-page-header__sub-title{margin-bottom:8px}@container (max-width: 430px){.edit-site-page-header{padding:16px 24px}}.edit-site-page-content{display:flex;flex-flow:column;height:100%;position:relative;z-index:1}.edit-site-page-pages__featured-image{height:100%;object-fit:cover;width:100%}.edit-site-page-pages__featured-image-wrapper{border-radius:4px;height:100%;width:100%}.edit-site-page-pages__featured-image-wrapper.is-layout-table .page-pages-preview-field__button,.edit-site-page-pages__featured-image-wrapper.is-layout-table:not(:has(.page-pages-preview-field__button)){background-color:#f0f0f0;border-radius:4px;display:block;flex-grow:0!important;height:32px;overflow:hidden;position:relative;width:32px}.edit-site-page-pages__featured-image-wrapper.is-layout-table .page-pages-preview-field__button:after,.edit-site-page-pages__featured-image-wrapper.is-layout-table:not(:has(.page-pages-preview-field__button)):after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.page-pages-preview-field__button{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0;width:100%}.page-pages-preview-field__button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.edit-site-page-pages-title span{overflow:hidden;text-overflow:ellipsis}.edit-site-page-pages__title-badge{background:#f0f0f0;border-radius:2px;color:#757575;flex-shrink:0;font-size:12px;font-weight:400;padding:0 4px}.edit-site-patterns__section-header .screen-reader-shortcut:focus{top:0}.edit-site-patterns__pattern-title .is-link{color:#e0e0e0;text-decoration:none}.edit-site-patterns__pattern-title .is-link:focus,.edit-site-patterns__pattern-title .is-link:hover{color:#fff}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-icon{background:var(--wp-block-synced-color);border-radius:4px;fill:#fff}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-lock-icon{fill:currentcolor}.edit-site-patterns__delete-modal{width:384px}.edit-site-page-patterns-dataviews .page-patterns-preview-field{display:flex;flex-direction:column;height:100%}.edit-site-page-patterns-dataviews .page-patterns-preview-field.is-viewtype-table{border-radius:2px;flex-grow:0;width:96px}.edit-site-page-patterns-dataviews .page-patterns-preview-field.is-viewtype-table .page-patterns-preview-field__button{border-radius:2px}.edit-site-page-patterns-dataviews .page-patterns-preview-field .page-patterns-preview-field__button{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0}.edit-site-page-patterns-dataviews .page-patterns-preview-field .page-patterns-preview-field__button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.edit-site-page-patterns-dataviews .page-patterns-preview-field .page-patterns-preview-field__button[aria-disabled=true]{cursor:default}.edit-site-page-patterns-dataviews .edit-site-patterns__pattern-icon{fill:var(--wp-block-synced-color);flex-shrink:0}.edit-site-page-patterns-dataviews .edit-site-patterns__pattern-lock-icon{min-width:min-content}.edit-site-page-patterns-dataviews .edit-site-patterns__section-header{border-bottom:1px solid #f0f0f0;flex-shrink:0;min-height:40px;padding:16px 48px;position:sticky;top:0;transition:padding .1s ease-out;z-index:2}@media (prefers-reduced-motion:reduce){.edit-site-page-patterns-dataviews .edit-site-patterns__section-header{transition-delay:0s;transition-duration:0s}}.edit-site-page-patterns-dataviews .edit-site-patterns__section-header .edit-site-patterns__title{min-height:40px}.edit-site-page-patterns-dataviews .edit-site-patterns__section-header .edit-site-patterns__sub-title{margin-bottom:8px}.edit-site-page-patterns-dataviews .edit-site-patterns__pattern-title{color:inherit;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.edit-site-page-patterns-dataviews .dataviews-pagination{z-index:2}.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.edit-site-patterns__field-sync-status-fully){background:rgba(var(--wp-block-synced-color--rgb),.04);color:var(--wp-block-synced-color)}.dataviews-action-modal__duplicate-pattern [role=dialog]>[role=document]{width:350px}.dataviews-action-modal__duplicate-pattern .patterns-menu-items__convert-modal-categories{position:relative}.dataviews-action-modal__duplicate-pattern .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;left:-1px;max-height:96px;min-width:auto;position:absolute;width:calc(100% + 2px);z-index:1}@media (min-width:600px){.dataviews-action-modal__duplicate-template-part .components-modal__frame{max-width:500px}}@container (max-width: 430px){.edit-site-page-patterns-dataviews .edit-site-patterns__section-header{padding-left:24px;padding-right:24px}}.page-templates-preview-field{display:flex;flex-direction:column;height:100%}.page-templates-preview-field .page-templates-preview-field__button{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0}.page-templates-preview-field .page-templates-preview-field__button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.page-templates-preview-field.is-viewtype-list .block-editor-block-preview__container{height:120px}.page-templates-preview-field.is-viewtype-grid .block-editor-block-preview__container{height:100%}.page-templates-preview-field.is-viewtype-table{border-radius:2px;position:relative}.page-templates-preview-field.is-viewtype-table:after{border-radius:2px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.page-templates-description{white-space:normal}.edit-site-page-templates .dataviews-pagination{z-index:2}.page-templates-author-field__avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:center;overflow:hidden;width:24px}.page-templates-author-field__avatar img{border-radius:100%;height:20px;object-fit:cover;opacity:0;transition:opacity .1s linear;width:20px}@media (prefers-reduced-motion:reduce){.page-templates-author-field__avatar img{transition-delay:0s;transition-duration:0s}}.page-templates-author-field__avatar.is-loaded img{opacity:1}.page-templates-author-field__icon{display:flex;flex-shrink:0;height:24px;width:24px}.page-templates-author-field__icon svg{fill:currentColor}.page-templates-author-field__name{overflow:hidden;text-overflow:ellipsis}.edit-site-list__rename-modal{z-index:1000001}@media (min-width:782px){.edit-site-list__rename-modal .components-base-control{width:320px}}.edit-site-table-wrapper{padding:32px;width:100%}.edit-site-table{border-collapse:collapse;border-color:inherit;position:relative;text-indent:0;width:100%}.edit-site-table a{text-decoration:none}.edit-site-table th{color:#757575;font-weight:400;padding:0 16px 16px;text-align:left}.edit-site-table td{padding:16px}.edit-site-table td,.edit-site-table th{vertical-align:center}.edit-site-table td:first-child,.edit-site-table th:first-child{padding-left:0}.edit-site-table td:last-child,.edit-site-table th:last-child{padding-right:0;text-align:right}.edit-site-table tr{border-bottom:1px solid #f0f0f0}.edit-site-editor__editor-interface{opacity:1;transition:opacity .1s ease-out}@media (prefers-reduced-motion:reduce){.edit-site-editor__editor-interface{transition-delay:0s;transition-duration:0s}}.edit-site-editor__editor-interface.is-loading{opacity:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image,.edit-site-welcome-guide.guide-styles .edit-site-welcome-guide__image{background:#00a0d2}.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video{border-right:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide.guide-template .edit-site-welcome-guide__video{border-left:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide__image{margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-site-layout{color:#ccc;display:flex;flex-direction:column;height:100%}.edit-site-layout,.edit-site-layout:not(.is-full-canvas) .editor-visual-editor{background:#1e1e1e}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:360px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:100vh;left:0;position:fixed!important;top:0}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{right:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__mobile{position:relative;width:100%;z-index:2}.edit-site-layout__mobile .edit-site-sidebar__screen-wrapper{padding:0}.edit-site-layout__canvas-container{flex-grow:1;overflow:visible;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas .edit-site-resizable-frame__inner{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:16px;top:16px;width:calc(100% - 16px)}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{box-shadow:0 20px 25px -5px #000c,0 8px 10px -6px #000c;overflow:hidden;transition:border-radius .4s}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content{border-radius:8px}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout__canvas .interface-interface-skeleton,.edit-site-layout__mobile .interface-interface-skeleton,.edit-site-template-pages-preview .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-template-pages-preview{height:100%}html.canvas-mode-edit-transition::view-transition-group(toggle){animation-delay:255ms}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region .edit-site-layout__view-mode-toggle{display:none}.edit-site-layout__view-mode-toggle.components-button{view-transition-name:toggle;align-items:center;background:#1e1e1e;border-radius:0;color:#fff;display:flex;height:60px;justify-content:center;overflow:hidden;padding:0;position:relative;width:60px}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout__view-mode-toggle.components-button:focus-visible{box-shadow:0 0 0 3px #1e1e1e,0 0 0 6px var(--wp-admin-theme-color);outline:4px solid #0000;outline-offset:4px}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}@media (prefers-reduced-motion:reduce){.edit-site-layout__view-mode-toggle.components-button:before{transition-delay:0s;transition-duration:0s}}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-left:1px solid #ddd}}.edit-site-layout__area{flex-grow:1;margin:0;overflow:hidden}@media (min-width:782px){.edit-site-layout__area{border-radius:8px;margin:16px 16px 16px 0}}.edit-site .components-editor-notices__snackbar{bottom:16px;padding-left:16px;padding-right:16px;position:fixed;right:0}.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus-visible{box-shadow:none;outline:none;outline-offset:0}.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus .edit-site-site-icon svg,.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus-visible .edit-site-site-icon svg{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#3858e9);height:40px;outline:3px solid #0000;padding:2px;width:40px}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:16px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}.edit-site-save-hub__button:not(.is-primary).is-busy,.edit-site-save-hub__button:not(.is-primary).is-busy[aria-disabled=true]:hover{color:#1e1e1e}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{contain:content;flex-grow:1;overflow-x:hidden;overflow-y:auto}@keyframes slide-from-right{0%{opacity:0;transform:translateX(50px)}to{opacity:1;transform:none}}@keyframes slide-from-left{0%{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:none}}.edit-site-sidebar__screen-wrapper{animation-duration:.14s;animation-timing-function:ease-in-out;display:flex;flex-direction:column;height:100%;max-height:100%;overflow-x:auto;padding:0 12px;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-gutter:stable;scrollbar-width:thin;will-change:transform;will-change:transform,opacity}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-track{background-color:initial}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.edit-site-sidebar__screen-wrapper:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__screen-wrapper:focus,.edit-site-sidebar__screen-wrapper:focus-within,.edit-site-sidebar__screen-wrapper:hover{scrollbar-color:#757575 #0000}@media (hover:none){.edit-site-sidebar__screen-wrapper{scrollbar-color:#757575 #0000}}@media (prefers-reduced-motion:reduce){.edit-site-sidebar__screen-wrapper{animation-duration:0s}}.edit-site-sidebar__screen-wrapper.slide-from-left{animation-name:slide-from-left}.edit-site-sidebar__screen-wrapper.slide-from-right{animation-name:slide-from-right}.edit-site-sidebar-button{color:#e0e0e0;flex-shrink:0}.edit-site-sidebar-button:focus:not(:disabled){box-shadow:none;outline:none}.edit-site-sidebar-button:focus-visible:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid #0000}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover,.edit-site-sidebar-button:not([aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:#f0f0f0}.edit-site-sidebar-navigation-item.components-item{border:none;border-radius:2px;color:#949494;min-height:40px;padding:8px 6px 8px 16px}.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item[aria-current]{background:#2f2f2f;color:#e0e0e0}.edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item[aria-current] .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#e0e0e0}.edit-site-sidebar-navigation-item.components-item[aria-current]{background:var(--wp-admin-theme-color);color:#fff}.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#949494}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-right:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px 8px 8px 0}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1;margin-bottom:16px}.edit-site-sidebar-navigation-screen__main.has-footer{margin-bottom:0}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-item-group{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__content .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__meta{color:#ccc;margin:0 0 16px 16px}.edit-site-sidebar-navigation-screen__meta .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__page-link{color:#949494;display:inline-block;word-break:break-word}.edit-site-sidebar-navigation-screen__page-link:focus,.edit-site-sidebar-navigation-screen__page-link:hover{color:#fff}.edit-site-sidebar-navigation-screen__page-link .components-external-link__icon{margin-left:4px}.edit-site-sidebar-navigation-screen__title-icon{background:#1e1e1e;margin-bottom:8px;padding-bottom:8px;padding-top:48px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow-wrap:break-word;padding:2px 0 0}.edit-site-sidebar-navigation-screen__actions{display:flex;flex-shrink:0}@media (min-width:782px){.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variation-container{max-width:292px}}.edit-site-global-styles-variation-title{color:#ddd;font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{outline-color:#ffffff0d}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item:not(.is-active):hover .edit-site-global-styles-variations_item-preview{outline-color:#ffffff26}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{outline-color:#fff}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__footer{background-color:#1e1e1e;border-top:1px solid #2f2f2f;bottom:0;gap:0;margin:16px 0 0;padding:16px 0;position:sticky}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:#2f2f2f}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button{color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:#2f2f2f!important;border-radius:2px;color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:#949494}.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item[aria-current]{background:none}.edit-site-sidebar-navigation-screen-details-footer .edit-site-sidebar-navigation-screen-details-footer__icon{margin-left:auto;fill:#949494}.sidebar-navigation__more-menu .components-button{color:#e0e0e0}.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:#f0f0f0}.edit-site-sidebar-navigation-details-screen-panel{margin:24px 0}.edit-site-sidebar-navigation-details-screen-panel:last-of-type{margin-bottom:0}.edit-site-sidebar-navigation-details-screen-panel .edit-site-sidebar-navigation-details-screen-panel__heading{color:#ccc;font-size:11px;font-weight:500;margin-bottom:0;padding:0;text-transform:uppercase}.edit-site-sidebar-navigation-details-screen-panel__label.edit-site-sidebar-navigation-details-screen-panel__label{color:#949494;flex-shrink:0;width:100px}.edit-site-sidebar-navigation-details-screen-panel__value.edit-site-sidebar-navigation-details-screen-panel__value{color:#e0e0e0}.edit-site-sidebar-navigation-screen-patterns__group{margin-bottom:24px}.edit-site-sidebar-navigation-screen-patterns__group:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:0}.edit-site-sidebar-navigation-screen-patterns__group-header{margin-top:16px}.edit-site-sidebar-navigation-screen-patterns__group-header p{color:#949494}.edit-site-sidebar-navigation-screen-patterns__group-header h2{font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-navigation-screen-patterns__divider{border-top:1px solid #2f2f2f;margin:16px 0}.edit-site-sidebar-navigation-screen-dataviews__group-header{margin-top:32px}.edit-site-sidebar-navigation-screen-dataviews__group-header h2{font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-dataviews-dataview-item{border-radius:2px;padding-right:8px}.edit-site-sidebar-dataviews-dataview-item .edit-site-sidebar-dataviews-dataview-item__dropdown-menu{min-width:auto}.edit-site-sidebar-dataviews-dataview-item:focus,.edit-site-sidebar-dataviews-dataview-item:hover,.edit-site-sidebar-dataviews-dataview-item[aria-current]{background:#2f2f2f;color:#e0e0e0}.edit-site-sidebar-dataviews-dataview-item.is-selected{background:var(--wp-admin-theme-color);color:#fff}.edit-site-site-hub{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-right:12px}.edit-site-site-hub__actions{flex-shrink:0}.edit-site-site-hub__view-mode-toggle-container{flex-shrink:0;height:60px;width:60px}.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon{background:#0000}.edit-site-site-hub__title .components-button{color:#e0e0e0;display:block;flex-grow:1;font-size:15px;font-weight:500;overflow:hidden;padding-right:16px;position:relative;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__title .components-button:active,.edit-site-site-hub__title .components-button:focus,.edit-site-site-hub__title .components-button:hover{color:#e0e0e0}.edit-site-site-hub__title .components-button:focus{box-shadow:none;outline:none}.edit-site-site-hub__title .components-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #1e1e1e,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:2px}.edit-site-site-hub__title .components-button:after{content:"↗";font-weight:400;opacity:0;position:absolute;right:0;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.edit-site-site-hub__title .components-button:after{transition-delay:0s;transition-duration:0s}}.edit-site-site-hub__title .components-button:active:after,.edit-site-site-hub__title .components-button:focus:after,.edit-site-site-hub__title .components-button:hover:after{opacity:1}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:active svg,.edit-site-site-hub_toggle-command-center:hover svg{fill:#f0f0f0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block__contents-cell{width:100%}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-right:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button[aria-current]{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-site-icon__icon{fill:currentColor}.edit-site-layout.is-full-canvas .edit-site-site-icon__icon{padding:6px}.edit-site-site-icon__image{background:#333;height:100%;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__image{border-radius:0}.edit-site-style-book{height:100%}.edit-site-style-book.is-button,.edit-site-style-book__iframe.is-button{border-radius:8px}.edit-site-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-style-book__tabs [role=tablist]{background:#fff;color:#1e1e1e}.edit-site-style-book__tabs [role=tabpanel]{bottom:0;left:0;overflow:auto;padding:0;position:absolute;right:0;top:48px}.edit-site-editor-canvas-container{background-color:#ddd;height:100%}.edit-site-editor-canvas-container iframe{display:block;height:100%;width:100%}.edit-site-layout.is-full-canvas .edit-site-editor-canvas-container{padding:24px 24px 0}.edit-site-editor-canvas-container__section{background:#fff;border-radius:2px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;transition:all .3s}.edit-site-editor-canvas-container__close-button{background:#fff;position:absolute;right:8px;top:6px;z-index:1}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:#75757566;border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid #0000}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}.edit-site-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}@media (min-width:782px){.font-library-modal.font-library-modal{width:65vw}}.font-library-modal .components-modal__header{border-bottom:none}.font-library-modal .components-modal__content{margin-bottom:70px;padding-top:0}.font-library-modal .font-library-modal__subtitle{font-size:11px;font-weight:500;text-transform:uppercase}.font-library-modal .components-navigator-screen{padding:3px}.font-library-modal__tabpanel-layout{margin-top:32px}.font-library-modal__tabpanel-layout .font-library-modal__loading{align-items:center;display:flex;height:100%;justify-content:center;left:0;padding-top:120px;position:absolute;top:0;width:100%}.font-library-modal__tabpanel-layout .font-library-modal__tabpanel-layout__footer{background-color:#fff;border-top:1px solid #ddd;bottom:32px;height:70px;margin:0 -32px -32px;padding:16px 32px;position:absolute;width:100%}.font-library-modal__tabpanel-layout .components-base-control__field{margin-bottom:0}.font-library-modal__fonts-title{font-size:11px;font-weight:600;margin-bottom:0;margin-top:0;text-transform:uppercase}.font-library-modal__fonts-list{margin-bottom:0;margin-top:0}.font-library-modal__fonts-list-item{margin-bottom:0}.font-library-modal__font-card{border:1px solid #e0e0e0;height:auto;margin-top:-1px;padding:16px;width:100%}.font-library-modal__font-card:hover{background-color:#f0f0f0}.font-library-modal__font-card .font-library-modal__font-card__name{font-weight:700}.font-library-modal__font-card .font-library-modal__font-card__count{color:#757575}.font-library-modal__font-card .font-library-modal__font-variant_demo-image{display:block;height:24px;width:auto}.font-library-modal__font-card .font-library-modal__font-variant_demo-text{flex-shrink:0;transition:opacity .3s ease-in-out;white-space:nowrap}@media (prefers-reduced-motion:reduce){.font-library-modal__font-card .font-library-modal__font-variant_demo-text{transition-delay:0s;transition-duration:0s}}.font-library-modal__font-variant{border-bottom:1px solid #e0e0e0;padding-bottom:16px}.font-library-modal__tabs [role=tablist]{background:#fff;border-bottom:1px solid #ddd;margin:0 -32px;padding:0 16px;position:sticky;top:0;z-index:1}.font-library-modal__upload-area{align-items:center;display:flex;height:256px;justify-content:center;width:100%}button.font-library-modal__upload-area{background-color:#f0f0f0}.font-library-modal__local-fonts{margin:0 auto;width:80%}.font-library-modal__local-fonts .font-library-modal__upload-area__text{color:#757575}.font-library__google-fonts-confirm{align-items:center;display:flex;justify-content:center;margin-top:64px}.font-library__google-fonts-confirm p{line-height:1.4}.font-library__google-fonts-confirm h2{font-size:1.2rem;font-weight:400}.font-library__google-fonts-confirm .components-card{padding:16px;width:400px}.font-library__google-fonts-confirm .components-button{justify-content:center;width:100%}.edit-site-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.edit-site-global-styles-variations_item{border-radius:2px;box-sizing:border-box;cursor:pointer}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{border-radius:2px;outline:1px solid #0000001a;outline-offset:-1px;overflow:hidden;position:relative;transition:outline .1s linear}@media (prefers-reduced-motion:reduce){.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{transition-delay:0s;transition-duration:0s}}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview.is-pill{height:32px}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview.is-pill .block-editor-iframe__scale-container{overflow:hidden}.edit-site-global-styles-variations_item:not(.is-active):hover .edit-site-global-styles-variations_item-preview{outline-color:#0000004d}.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview,.edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{outline-color:#1e1e1e;outline-offset:1px;outline-width:var(--wp-admin-border-width-focus)}.edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{outline-color:var(--wp-admin-theme-color)}::view-transition-image-pair(root){isolation:auto}::view-transition-new(root),::view-transition-old(root){animation:none;display:block;mix-blend-mode:normal}body.js #wpadminbar{display:none}body.js #wpbody{padding-top:0}body.js.appearance_page_gutenberg-template-parts,body.js.site-editor-php{background:#fff}body.js.appearance_page_gutenberg-template-parts #wpcontent,body.js.site-editor-php #wpcontent{padding-left:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content,body.js.site-editor-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.appearance_page_gutenberg-template-parts #wpfooter,body.js.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.site-editor-php #wpfooter{display:none}body.js.appearance_page_gutenberg-template-parts .a11y-speak-region,body.js.site-editor-php .a11y-speak-region{left:-1px;top:-1px}body.js.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.js.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.js.site-editor-php ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.js.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.js.site-editor-php{background:#1e1e1e}.edit-site{box-sizing:border-box;height:100vh}.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}@media (min-width:600px){.edit-site{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.no-js .edit-site{min-height:0;position:static}.edit-site .interface-interface-skeleton{top:0}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
diff --git a/wp-includes/css/dist/edit-widgets/style-rtl.css b/wp-includes/css/dist/edit-widgets/style-rtl.css
index 503c039..64f8280 100644
--- a/wp-includes/css/dist/edit-widgets/style-rtl.css
+++ b/wp-includes/css/dist/edit-widgets/style-rtl.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -21,6 +21,7 @@
padding-left:4px;
}
.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{
+ margin:0;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
@@ -34,7 +35,11 @@
.interface-complementary-area-header{
background:#fff;
- padding-left:4px;
+ gap:8px;
+ padding-left:12px;
+}
+.interface-complementary-area-header .interface-complementary-area-header__title{
+ margin:0;
}
.interface-complementary-area-header .components-button.has-icon{
display:none;
@@ -47,14 +52,13 @@
.interface-complementary-area-header .components-button.has-icon{
display:flex;
}
- .components-panel__header+.interface-complementary-area-header{
- margin-top:0;
- }
}
.interface-complementary-area{
background:#fff;
color:#1e1e1e;
+ height:100%;
+ overflow:auto;
}
@media (min-width:600px){
.interface-complementary-area{
@@ -76,11 +80,11 @@
top:0;
z-index:1;
}
-.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{
+.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{
top:48px;
}
@media (min-width:782px){
- .interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{
+ .interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{
top:0;
}
}
@@ -90,6 +94,7 @@
.interface-complementary-area h2{
color:#1e1e1e;
font-size:13px;
+ font-weight:500;
margin-bottom:1.5em;
}
.interface-complementary-area h3{
@@ -118,6 +123,10 @@
top:auto;
}
+.interface-complementary-area__fill{
+ height:100%;
+}
+
@media (min-width:782px){
body.js.is-fullscreen-mode{
height:calc(100% + 32px);
@@ -136,7 +145,7 @@ html.interface-interface-skeleton__html-container{
width:100%;
}
@media (min-width:782px){
- html.interface-interface-skeleton__html-container{
+ html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)){
position:static;
width:auto;
}
@@ -204,6 +213,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
flex-grow:1;
overflow:auto;
overscroll-behavior-y:none;
+ position:relative;
}
@media (min-width:782px){
.has-footer .interface-interface-skeleton__body{
@@ -229,39 +239,46 @@ body.is-fullscreen-mode .interface-interface-skeleton{
bottom:0;
color:#1e1e1e;
flex-shrink:0;
- left:0;
position:absolute;
right:0;
top:0;
+ width:auto;
z-index:100000;
}
@media (min-width:782px){
.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
position:relative !important;
- width:auto;
- }
- .is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{
- z-index:90;
}
}
.interface-interface-skeleton__sidebar{
- overflow:auto;
+ border-top:1px solid #e0e0e0;
+ overflow:hidden;
}
@media (min-width:782px){
.interface-interface-skeleton__sidebar{
- border-right:1px solid #e0e0e0;
+ box-shadow:1px 1px 0 0 rgba(0,0,0,.133);
+ outline:1px solid #0000;
}
+}
+
+.interface-interface-skeleton__secondary-sidebar{
+ border-top:1px solid #e0e0e0;
+ left:0;
+}
+@media (min-width:782px){
.interface-interface-skeleton__secondary-sidebar{
- border-left:1px solid #e0e0e0;
+ box-shadow:-1px 1px 0 0 rgba(0,0,0,.133);
+ outline:1px solid #0000;
}
}
.interface-interface-skeleton__header{
- border-bottom:1px solid #e0e0e0;
+ box-shadow:0 1px 0 0 rgba(0,0,0,.133);
color:#1e1e1e;
flex-shrink:0;
height:auto;
+ outline:1px solid #0000;
z-index:30;
}
@@ -326,38 +343,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
}
}
-.interface-more-menu-dropdown{
- margin-right:-4px;
-}
-.interface-more-menu-dropdown .components-button{
- padding:0 2px;
- width:auto;
-}
-@media (min-width:600px){
- .interface-more-menu-dropdown{
- margin-right:0;
- }
- .interface-more-menu-dropdown .components-button{
- padding:0 4px;
- }
-}
-
-.interface-more-menu-dropdown__content .components-popover__content{
- min-width:300px;
-}
-@media (min-width:480px){
- .interface-more-menu-dropdown__content .components-popover__content{
- max-width:480px;
- }
-}
-.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{
- padding:0;
-}
-
-.components-popover.interface-more-menu-dropdown__content{
- z-index:99998;
-}
-
.interface-pinned-items{
display:flex;
gap:8px;
@@ -366,7 +351,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
display:none;
margin:0;
}
-.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:global-styles"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{
+.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{
display:flex;
}
.interface-pinned-items .components-button svg{
@@ -517,11 +502,12 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
.edit-widgets-header-toolbar{
gap:8px;
+ margin-left:8px;
}
.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon{
- height:36px;
- min-width:36px;
- padding:6px;
+ height:32px;
+ min-width:32px;
+ padding:4px;
}
.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon.is-pressed,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon.is-pressed{
background:#1e1e1e;
@@ -685,12 +671,19 @@ body.is-fullscreen-mode .edit-widgets-notices__snackbar{
.edit-widgets-layout__inserter-panel-content{
height:calc(100% - 44px);
}
+.edit-widgets-layout__inserter-panel-content .block-editor-inserter__tablist-and-close{
+ display:none;
+}
@media (min-width:782px){
.edit-widgets-layout__inserter-panel-content{
height:100%;
}
}
+.components-popover.more-menu-dropdown__content{
+ z-index:99998;
+}
+
.edit-widgets-welcome-guide{
width:312px;
}
@@ -788,13 +781,12 @@ body.js.appearance_page_gutenberg-widgets .media-frame select.attachment-filters
width:auto;
}
-.blocks-widgets-container,.components-modal__frame{
+.blocks-widgets-container{
box-sizing:border-box;
}
-.blocks-widgets-container *,.blocks-widgets-container :after,.blocks-widgets-container :before,.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{
+.blocks-widgets-container *,.blocks-widgets-container :after,.blocks-widgets-container :before{
box-sizing:inherit;
}
-
@media (min-width:600px){
.blocks-widgets-container{
bottom:0;
diff --git a/wp-includes/css/dist/edit-widgets/style-rtl.min.css b/wp-includes/css/dist/edit-widgets/style-rtl.min.css
index f0442d8..8ff06fd 100644
--- a/wp-includes/css/dist/edit-widgets/style-rtl.min.css
+++ b/wp-includes/css/dist/edit-widgets/style-rtl.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-left:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-right:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-right:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:300px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:8px}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:global-styles"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{display:flex}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-pinned-items .components-button{display:flex}}.wp-block[data-type="core/widget-area"]{margin-left:auto;margin-right:auto;max-width:700px}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title{background:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;height:48px;margin:0;position:relative;transform:translateZ(0);z-index:1}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title:hover{background:#fff}.wp-block[data-type="core/widget-area"] .block-list-appender.wp-block{position:relative;width:auto}.wp-block[data-type="core/widget-area"] .editor-styles-wrapper .wp-block.wp-block.wp-block.wp-block.wp-block{max-width:100%}.wp-block[data-type="core/widget-area"] .components-panel__body.is-opened{padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper{margin:0;padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper>.block-editor-block-list__layout{margin-top:-48px;min-height:32px;padding:72px 16px 16px}.wp-block-widget-area__highlight-drop-zone{outline:var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color)}body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title,body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title *{pointer-events:none}.edit-widgets-error-boundary{box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,-.1px 11.5px 16.4px -.5px #00000026;margin:60px auto auto;max-width:780px;padding:20px}.edit-widgets-header{align-items:center;background:#fff;display:flex;height:60px;justify-content:space-between;overflow:auto}@media (min-width:600px){.edit-widgets-header{overflow:visible}}.edit-widgets-header .selected-block-tools-wrapper{align-items:center;display:flex;height:60px;overflow:hidden}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-contextual-toolbar{border-bottom:0;height:100%}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-toolbar{height:100%;padding-top:15px}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group{border-left:none}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group:after,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar:after{background-color:#ddd;content:"";height:24px;margin-right:8px;margin-top:4px;width:1px}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar .components-toolbar-group.components-toolbar-group:after,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{display:none}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width:600px){.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{position:relative;top:-10px}}.edit-widgets-header__navigable-toolbar-wrapper{align-items:center;display:flex;flex-shrink:2;justify-content:center;overflow:hidden;padding-left:8px;padding-right:16px}.edit-widgets-header__title{font-size:20px;margin:0 0 0 20px;padding:0}.edit-widgets-header__actions{align-items:center;display:flex;gap:4px;padding-left:16px}@media (min-width:600px){.edit-widgets-header__actions{gap:8px}}.edit-widgets-header-toolbar{gap:8px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon{height:36px;min-width:36px;padding:6px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon.is-pressed,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon.is-pressed{background:#1e1e1e}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:focus:not(:disabled),.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid #0000}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:before,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:before{display:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:12px;padding-right:12px}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle:after{content:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.edit-widgets-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-widgets-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-widgets-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-widgets-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-widgets-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-widgets-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.edit-widgets-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.components-panel__header.edit-widgets-sidebar__panel-tabs{padding-right:0}.edit-widgets-widget-areas__top-container{display:flex;padding:16px}.edit-widgets-widget-areas__top-container .block-editor-block-icon{margin-left:16px}.edit-widgets-notices__snackbar{bottom:20px;left:0;padding-left:16px;padding-right:16px;position:fixed;right:0}@media (min-width:783px){.edit-widgets-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-widgets-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-widgets-notices__snackbar{right:160px}}.folded .edit-widgets-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-widgets-notices__snackbar{right:36px}}body.is-fullscreen-mode .edit-widgets-notices__snackbar{right:0!important}.edit-widgets-notices__dismissible .components-notice,.edit-widgets-notices__pinned .components-notice{border-bottom:1px solid #0003;box-sizing:border-box;min-height:60px;padding:0 12px}.edit-widgets-notices__dismissible .components-notice .components-notice__dismiss,.edit-widgets-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.edit-widgets-layout__inserter-panel{display:flex;flex-direction:column;height:100%}.edit-widgets-layout__inserter-panel .block-editor-inserter__menu{overflow:hidden}.edit-widgets-layout__inserter-panel-header{display:flex;justify-content:flex-end;padding-left:8px;padding-top:8px}.edit-widgets-layout__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-widgets-layout__inserter-panel-content{height:100%}}.edit-widgets-welcome-guide{width:312px}.edit-widgets-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-widgets-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-widgets-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-widgets-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-widgets-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-widgets-block-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;position:relative}.edit-widgets-block-editor,.edit-widgets-block-editor .block-editor-writing-flow,.edit-widgets-block-editor>div:last-of-type{display:flex;flex-direction:column;flex-grow:1}.edit-widgets-block-editor .edit-widgets-main-block-list{height:100%}.edit-widgets-block-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.edit-widgets-block-editor .components-button.has-icon,.edit-widgets-block-editor .components-button.is-tertiary{padding:6px}.edit-widgets-editor__list-view-panel{display:flex;flex-direction:column;height:100%;min-width:350px}.edit-widgets-editor__list-view-panel-content{height:calc(100% - 44px);overflow-y:auto;padding:8px}.edit-widgets-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:4px;padding-right:16px}body.js.appearance_page_gutenberg-widgets,body.js.widgets-php{background:#fff}body.js.appearance_page_gutenberg-widgets #wpcontent,body.js.widgets-php #wpcontent{padding-right:0}body.js.appearance_page_gutenberg-widgets #wpbody-content,body.js.widgets-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-widgets #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.appearance_page_gutenberg-widgets #wpfooter,body.js.widgets-php #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.widgets-php #wpfooter{display:none}body.js.appearance_page_gutenberg-widgets .a11y-speak-region,body.js.widgets-php .a11y-speak-region{right:-1px;top:-1px}body.js.appearance_page_gutenberg-widgets ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-widgets ul#adminmenu>li.current>a.current:after,body.js.widgets-php ul#adminmenu a.wp-has-current-submenu:after,body.js.widgets-php ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.appearance_page_gutenberg-widgets .media-frame select.attachment-filters:last-of-type,body.js.widgets-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.blocks-widgets-container,.components-modal__frame{box-sizing:border-box}.blocks-widgets-container *,.blocks-widgets-container :after,.blocks-widgets-container :before,.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{box-sizing:inherit}@media (min-width:600px){.blocks-widgets-container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.blocks-widgets-container{min-height:calc(100vh - 32px)}}.blocks-widgets-container .interface-interface-skeleton__content{background-color:#f0f0f0}.blocks-widgets-container .editor-styles-wrapper{margin:auto;max-width:700px}.edit-widgets-sidebar .components-button.interface-complementary-area__pin-unpin-item{display:none}.js .widgets-php .notice{display:none!important}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{margin:0;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;gap:8px;padding-left:12px}.interface-complementary-area-header .interface-complementary-area-header__title{margin:0}.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;height:100%;overflow:auto}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;font-weight:500;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}.interface-complementary-area__fill{height:100%}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)){position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none;position:relative}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;position:absolute;right:0;top:0;width:auto;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important}}.interface-interface-skeleton__sidebar{border-top:1px solid #e0e0e0;overflow:hidden}@media (min-width:782px){.interface-interface-skeleton__sidebar{box-shadow:1px 1px 0 0 rgba(0,0,0,.133);outline:1px solid #0000}}.interface-interface-skeleton__secondary-sidebar{border-top:1px solid #e0e0e0;left:0}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar{box-shadow:-1px 1px 0 0 rgba(0,0,0,.133);outline:1px solid #0000}}.interface-interface-skeleton__header{box-shadow:0 1px 0 0 rgba(0,0,0,.133);color:#1e1e1e;flex-shrink:0;height:auto;outline:1px solid #0000;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-pinned-items{display:flex;gap:8px}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{display:flex}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-pinned-items .components-button{display:flex}}.wp-block[data-type="core/widget-area"]{margin-left:auto;margin-right:auto;max-width:700px}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title{background:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;height:48px;margin:0;position:relative;transform:translateZ(0);z-index:1}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title:hover{background:#fff}.wp-block[data-type="core/widget-area"] .block-list-appender.wp-block{position:relative;width:auto}.wp-block[data-type="core/widget-area"] .editor-styles-wrapper .wp-block.wp-block.wp-block.wp-block.wp-block{max-width:100%}.wp-block[data-type="core/widget-area"] .components-panel__body.is-opened{padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper{margin:0;padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper>.block-editor-block-list__layout{margin-top:-48px;min-height:32px;padding:72px 16px 16px}.wp-block-widget-area__highlight-drop-zone{outline:var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color)}body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title,body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title *{pointer-events:none}.edit-widgets-error-boundary{box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,-.1px 11.5px 16.4px -.5px #00000026;margin:60px auto auto;max-width:780px;padding:20px}.edit-widgets-header{align-items:center;background:#fff;display:flex;height:60px;justify-content:space-between;overflow:auto}@media (min-width:600px){.edit-widgets-header{overflow:visible}}.edit-widgets-header .selected-block-tools-wrapper{align-items:center;display:flex;height:60px;overflow:hidden}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-contextual-toolbar{border-bottom:0;height:100%}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-toolbar{height:100%;padding-top:15px}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group{border-left:none}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group:after,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar:after{background-color:#ddd;content:"";height:24px;margin-right:8px;margin-top:4px;width:1px}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar .components-toolbar-group.components-toolbar-group:after,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{display:none}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width:600px){.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{position:relative;top:-10px}}.edit-widgets-header__navigable-toolbar-wrapper{align-items:center;display:flex;flex-shrink:2;justify-content:center;overflow:hidden;padding-left:8px;padding-right:16px}.edit-widgets-header__title{font-size:20px;margin:0 0 0 20px;padding:0}.edit-widgets-header__actions{align-items:center;display:flex;gap:4px;padding-left:16px}@media (min-width:600px){.edit-widgets-header__actions{gap:8px}}.edit-widgets-header-toolbar{gap:8px;margin-left:8px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon{height:32px;min-width:32px;padding:4px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon.is-pressed,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon.is-pressed{background:#1e1e1e}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:focus:not(:disabled),.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid #0000}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:before,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:before{display:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:12px;padding-right:12px}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle:after{content:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.edit-widgets-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-widgets-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-widgets-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-widgets-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-widgets-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-widgets-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.edit-widgets-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.components-panel__header.edit-widgets-sidebar__panel-tabs{padding-right:0}.edit-widgets-widget-areas__top-container{display:flex;padding:16px}.edit-widgets-widget-areas__top-container .block-editor-block-icon{margin-left:16px}.edit-widgets-notices__snackbar{bottom:20px;left:0;padding-left:16px;padding-right:16px;position:fixed;right:0}@media (min-width:783px){.edit-widgets-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-widgets-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-widgets-notices__snackbar{right:160px}}.folded .edit-widgets-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-widgets-notices__snackbar{right:36px}}body.is-fullscreen-mode .edit-widgets-notices__snackbar{right:0!important}.edit-widgets-notices__dismissible .components-notice,.edit-widgets-notices__pinned .components-notice{border-bottom:1px solid #0003;box-sizing:border-box;min-height:60px;padding:0 12px}.edit-widgets-notices__dismissible .components-notice .components-notice__dismiss,.edit-widgets-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.edit-widgets-layout__inserter-panel{display:flex;flex-direction:column;height:100%}.edit-widgets-layout__inserter-panel .block-editor-inserter__menu{overflow:hidden}.edit-widgets-layout__inserter-panel-header{display:flex;justify-content:flex-end;padding-left:8px;padding-top:8px}.edit-widgets-layout__inserter-panel-content{height:calc(100% - 44px)}.edit-widgets-layout__inserter-panel-content .block-editor-inserter__tablist-and-close{display:none}@media (min-width:782px){.edit-widgets-layout__inserter-panel-content{height:100%}}.components-popover.more-menu-dropdown__content{z-index:99998}.edit-widgets-welcome-guide{width:312px}.edit-widgets-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-widgets-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-widgets-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-widgets-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-widgets-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-widgets-block-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;position:relative}.edit-widgets-block-editor,.edit-widgets-block-editor .block-editor-writing-flow,.edit-widgets-block-editor>div:last-of-type{display:flex;flex-direction:column;flex-grow:1}.edit-widgets-block-editor .edit-widgets-main-block-list{height:100%}.edit-widgets-block-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.edit-widgets-block-editor .components-button.has-icon,.edit-widgets-block-editor .components-button.is-tertiary{padding:6px}.edit-widgets-editor__list-view-panel{display:flex;flex-direction:column;height:100%;min-width:350px}.edit-widgets-editor__list-view-panel-content{height:calc(100% - 44px);overflow-y:auto;padding:8px}.edit-widgets-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:4px;padding-right:16px}body.js.appearance_page_gutenberg-widgets,body.js.widgets-php{background:#fff}body.js.appearance_page_gutenberg-widgets #wpcontent,body.js.widgets-php #wpcontent{padding-right:0}body.js.appearance_page_gutenberg-widgets #wpbody-content,body.js.widgets-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-widgets #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.appearance_page_gutenberg-widgets #wpfooter,body.js.widgets-php #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.widgets-php #wpfooter{display:none}body.js.appearance_page_gutenberg-widgets .a11y-speak-region,body.js.widgets-php .a11y-speak-region{right:-1px;top:-1px}body.js.appearance_page_gutenberg-widgets ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-widgets ul#adminmenu>li.current>a.current:after,body.js.widgets-php ul#adminmenu a.wp-has-current-submenu:after,body.js.widgets-php ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.appearance_page_gutenberg-widgets .media-frame select.attachment-filters:last-of-type,body.js.widgets-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.blocks-widgets-container{box-sizing:border-box}.blocks-widgets-container *,.blocks-widgets-container :after,.blocks-widgets-container :before{box-sizing:inherit}@media (min-width:600px){.blocks-widgets-container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.blocks-widgets-container{min-height:calc(100vh - 32px)}}.blocks-widgets-container .interface-interface-skeleton__content{background-color:#f0f0f0}.blocks-widgets-container .editor-styles-wrapper{margin:auto;max-width:700px}.edit-widgets-sidebar .components-button.interface-complementary-area__pin-unpin-item{display:none}.js .widgets-php .notice{display:none!important}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
diff --git a/wp-includes/css/dist/edit-widgets/style.css b/wp-includes/css/dist/edit-widgets/style.css
index 0fade9d..1fb3bd4 100644
--- a/wp-includes/css/dist/edit-widgets/style.css
+++ b/wp-includes/css/dist/edit-widgets/style.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -21,6 +21,7 @@
padding-right:4px;
}
.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{
+ margin:0;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
@@ -34,7 +35,11 @@
.interface-complementary-area-header{
background:#fff;
- padding-right:4px;
+ gap:8px;
+ padding-right:12px;
+}
+.interface-complementary-area-header .interface-complementary-area-header__title{
+ margin:0;
}
.interface-complementary-area-header .components-button.has-icon{
display:none;
@@ -47,14 +52,13 @@
.interface-complementary-area-header .components-button.has-icon{
display:flex;
}
- .components-panel__header+.interface-complementary-area-header{
- margin-top:0;
- }
}
.interface-complementary-area{
background:#fff;
color:#1e1e1e;
+ height:100%;
+ overflow:auto;
}
@media (min-width:600px){
.interface-complementary-area{
@@ -76,11 +80,11 @@
top:0;
z-index:1;
}
-.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{
+.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{
top:48px;
}
@media (min-width:782px){
- .interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{
+ .interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{
top:0;
}
}
@@ -90,6 +94,7 @@
.interface-complementary-area h2{
color:#1e1e1e;
font-size:13px;
+ font-weight:500;
margin-bottom:1.5em;
}
.interface-complementary-area h3{
@@ -118,6 +123,10 @@
top:auto;
}
+.interface-complementary-area__fill{
+ height:100%;
+}
+
@media (min-width:782px){
body.js.is-fullscreen-mode{
height:calc(100% + 32px);
@@ -136,7 +145,7 @@ html.interface-interface-skeleton__html-container{
width:100%;
}
@media (min-width:782px){
- html.interface-interface-skeleton__html-container{
+ html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)){
position:static;
width:auto;
}
@@ -204,6 +213,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
flex-grow:1;
overflow:auto;
overscroll-behavior-y:none;
+ position:relative;
}
@media (min-width:782px){
.has-footer .interface-interface-skeleton__body{
@@ -231,37 +241,44 @@ body.is-fullscreen-mode .interface-interface-skeleton{
flex-shrink:0;
left:0;
position:absolute;
- right:0;
top:0;
+ width:auto;
z-index:100000;
}
@media (min-width:782px){
.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
position:relative !important;
- width:auto;
- }
- .is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{
- z-index:90;
}
}
.interface-interface-skeleton__sidebar{
- overflow:auto;
+ border-top:1px solid #e0e0e0;
+ overflow:hidden;
}
@media (min-width:782px){
.interface-interface-skeleton__sidebar{
- border-left:1px solid #e0e0e0;
+ box-shadow:-1px 1px 0 0 rgba(0,0,0,.133);
+ outline:1px solid #0000;
}
+}
+
+.interface-interface-skeleton__secondary-sidebar{
+ border-top:1px solid #e0e0e0;
+ right:0;
+}
+@media (min-width:782px){
.interface-interface-skeleton__secondary-sidebar{
- border-right:1px solid #e0e0e0;
+ box-shadow:1px 1px 0 0 rgba(0,0,0,.133);
+ outline:1px solid #0000;
}
}
.interface-interface-skeleton__header{
- border-bottom:1px solid #e0e0e0;
+ box-shadow:0 1px 0 0 rgba(0,0,0,.133);
color:#1e1e1e;
flex-shrink:0;
height:auto;
+ outline:1px solid #0000;
z-index:30;
}
@@ -326,38 +343,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
}
}
-.interface-more-menu-dropdown{
- margin-left:-4px;
-}
-.interface-more-menu-dropdown .components-button{
- padding:0 2px;
- width:auto;
-}
-@media (min-width:600px){
- .interface-more-menu-dropdown{
- margin-left:0;
- }
- .interface-more-menu-dropdown .components-button{
- padding:0 4px;
- }
-}
-
-.interface-more-menu-dropdown__content .components-popover__content{
- min-width:300px;
-}
-@media (min-width:480px){
- .interface-more-menu-dropdown__content .components-popover__content{
- max-width:480px;
- }
-}
-.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{
- padding:0;
-}
-
-.components-popover.interface-more-menu-dropdown__content{
- z-index:99998;
-}
-
.interface-pinned-items{
display:flex;
gap:8px;
@@ -366,7 +351,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
display:none;
margin:0;
}
-.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:global-styles"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{
+.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{
display:flex;
}
.interface-pinned-items .components-button svg{
@@ -517,11 +502,12 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
.edit-widgets-header-toolbar{
gap:8px;
+ margin-right:8px;
}
.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon{
- height:36px;
- min-width:36px;
- padding:6px;
+ height:32px;
+ min-width:32px;
+ padding:4px;
}
.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon.is-pressed,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon.is-pressed{
background:#1e1e1e;
@@ -685,12 +671,19 @@ body.is-fullscreen-mode .edit-widgets-notices__snackbar{
.edit-widgets-layout__inserter-panel-content{
height:calc(100% - 44px);
}
+.edit-widgets-layout__inserter-panel-content .block-editor-inserter__tablist-and-close{
+ display:none;
+}
@media (min-width:782px){
.edit-widgets-layout__inserter-panel-content{
height:100%;
}
}
+.components-popover.more-menu-dropdown__content{
+ z-index:99998;
+}
+
.edit-widgets-welcome-guide{
width:312px;
}
@@ -788,13 +781,12 @@ body.js.appearance_page_gutenberg-widgets .media-frame select.attachment-filters
width:auto;
}
-.blocks-widgets-container,.components-modal__frame{
+.blocks-widgets-container{
box-sizing:border-box;
}
-.blocks-widgets-container *,.blocks-widgets-container :after,.blocks-widgets-container :before,.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{
+.blocks-widgets-container *,.blocks-widgets-container :after,.blocks-widgets-container :before{
box-sizing:inherit;
}
-
@media (min-width:600px){
.blocks-widgets-container{
bottom:0;
diff --git a/wp-includes/css/dist/edit-widgets/style.min.css b/wp-includes/css/dist/edit-widgets/style.min.css
index 2267065..bd172e9 100644
--- a/wp-includes/css/dist/edit-widgets/style.min.css
+++ b/wp-includes/css/dist/edit-widgets/style.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-right:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-left:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-left:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:300px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:8px}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:global-styles"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{display:flex}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-pinned-items .components-button{display:flex}}.wp-block[data-type="core/widget-area"]{margin-left:auto;margin-right:auto;max-width:700px}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title{background:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;height:48px;margin:0;position:relative;transform:translateZ(0);z-index:1}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title:hover{background:#fff}.wp-block[data-type="core/widget-area"] .block-list-appender.wp-block{position:relative;width:auto}.wp-block[data-type="core/widget-area"] .editor-styles-wrapper .wp-block.wp-block.wp-block.wp-block.wp-block{max-width:100%}.wp-block[data-type="core/widget-area"] .components-panel__body.is-opened{padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper{margin:0;padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper>.block-editor-block-list__layout{margin-top:-48px;min-height:32px;padding:72px 16px 16px}.wp-block-widget-area__highlight-drop-zone{outline:var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color)}body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title,body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title *{pointer-events:none}.edit-widgets-error-boundary{box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,.1px 11.5px 16.4px -.5px #00000026;margin:60px auto auto;max-width:780px;padding:20px}.edit-widgets-header{align-items:center;background:#fff;display:flex;height:60px;justify-content:space-between;overflow:auto}@media (min-width:600px){.edit-widgets-header{overflow:visible}}.edit-widgets-header .selected-block-tools-wrapper{align-items:center;display:flex;height:60px;overflow:hidden}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-contextual-toolbar{border-bottom:0;height:100%}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-toolbar{height:100%;padding-top:15px}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group{border-right:none}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group:after,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar:after{background-color:#ddd;content:"";height:24px;margin-left:8px;margin-top:4px;width:1px}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar .components-toolbar-group.components-toolbar-group:after,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{display:none}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width:600px){.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{position:relative;top:-10px}}.edit-widgets-header__navigable-toolbar-wrapper{align-items:center;display:flex;flex-shrink:2;justify-content:center;overflow:hidden;padding-left:16px;padding-right:8px}.edit-widgets-header__title{font-size:20px;margin:0 20px 0 0;padding:0}.edit-widgets-header__actions{align-items:center;display:flex;gap:4px;padding-right:16px}@media (min-width:600px){.edit-widgets-header__actions{gap:8px}}.edit-widgets-header-toolbar{gap:8px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon{height:36px;min-width:36px;padding:6px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon.is-pressed,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon.is-pressed{background:#1e1e1e}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:focus:not(:disabled),.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid #0000}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:before,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:before{display:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:12px;padding-right:12px}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle:after{content:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.edit-widgets-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-widgets-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-widgets-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-widgets-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-widgets-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-widgets-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.edit-widgets-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.components-panel__header.edit-widgets-sidebar__panel-tabs{padding-left:0}.edit-widgets-widget-areas__top-container{display:flex;padding:16px}.edit-widgets-widget-areas__top-container .block-editor-block-icon{margin-right:16px}.edit-widgets-notices__snackbar{bottom:20px;left:0;padding-left:16px;padding-right:16px;position:fixed;right:0}@media (min-width:783px){.edit-widgets-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-widgets-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-widgets-notices__snackbar{left:160px}}.folded .edit-widgets-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-widgets-notices__snackbar{left:36px}}body.is-fullscreen-mode .edit-widgets-notices__snackbar{left:0!important}.edit-widgets-notices__dismissible .components-notice,.edit-widgets-notices__pinned .components-notice{border-bottom:1px solid #0003;box-sizing:border-box;min-height:60px;padding:0 12px}.edit-widgets-notices__dismissible .components-notice .components-notice__dismiss,.edit-widgets-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.edit-widgets-layout__inserter-panel{display:flex;flex-direction:column;height:100%}.edit-widgets-layout__inserter-panel .block-editor-inserter__menu{overflow:hidden}.edit-widgets-layout__inserter-panel-header{display:flex;justify-content:flex-end;padding-right:8px;padding-top:8px}.edit-widgets-layout__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-widgets-layout__inserter-panel-content{height:100%}}.edit-widgets-welcome-guide{width:312px}.edit-widgets-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-widgets-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-widgets-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-widgets-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-widgets-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-widgets-block-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;position:relative}.edit-widgets-block-editor,.edit-widgets-block-editor .block-editor-writing-flow,.edit-widgets-block-editor>div:last-of-type{display:flex;flex-direction:column;flex-grow:1}.edit-widgets-block-editor .edit-widgets-main-block-list{height:100%}.edit-widgets-block-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.edit-widgets-block-editor .components-button.has-icon,.edit-widgets-block-editor .components-button.is-tertiary{padding:6px}.edit-widgets-editor__list-view-panel{display:flex;flex-direction:column;height:100%;min-width:350px}.edit-widgets-editor__list-view-panel-content{height:calc(100% - 44px);overflow-y:auto;padding:8px}.edit-widgets-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:16px;padding-right:4px}body.js.appearance_page_gutenberg-widgets,body.js.widgets-php{background:#fff}body.js.appearance_page_gutenberg-widgets #wpcontent,body.js.widgets-php #wpcontent{padding-left:0}body.js.appearance_page_gutenberg-widgets #wpbody-content,body.js.widgets-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-widgets #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.appearance_page_gutenberg-widgets #wpfooter,body.js.widgets-php #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.widgets-php #wpfooter{display:none}body.js.appearance_page_gutenberg-widgets .a11y-speak-region,body.js.widgets-php .a11y-speak-region{left:-1px;top:-1px}body.js.appearance_page_gutenberg-widgets ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-widgets ul#adminmenu>li.current>a.current:after,body.js.widgets-php ul#adminmenu a.wp-has-current-submenu:after,body.js.widgets-php ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.appearance_page_gutenberg-widgets .media-frame select.attachment-filters:last-of-type,body.js.widgets-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.blocks-widgets-container,.components-modal__frame{box-sizing:border-box}.blocks-widgets-container *,.blocks-widgets-container :after,.blocks-widgets-container :before,.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{box-sizing:inherit}@media (min-width:600px){.blocks-widgets-container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.blocks-widgets-container{min-height:calc(100vh - 32px)}}.blocks-widgets-container .interface-interface-skeleton__content{background-color:#f0f0f0}.blocks-widgets-container .editor-styles-wrapper{margin:auto;max-width:700px}.edit-widgets-sidebar .components-button.interface-complementary-area__pin-unpin-item{display:none}.js .widgets-php .notice{display:none!important}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{margin:0;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;gap:8px;padding-right:12px}.interface-complementary-area-header .interface-complementary-area-header__title{margin:0}.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;height:100%;overflow:auto}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;font-weight:500;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}.interface-complementary-area__fill{height:100%}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)){position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none;position:relative}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;top:0;width:auto;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important}}.interface-interface-skeleton__sidebar{border-top:1px solid #e0e0e0;overflow:hidden}@media (min-width:782px){.interface-interface-skeleton__sidebar{box-shadow:-1px 1px 0 0 rgba(0,0,0,.133);outline:1px solid #0000}}.interface-interface-skeleton__secondary-sidebar{border-top:1px solid #e0e0e0;right:0}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar{box-shadow:1px 1px 0 0 rgba(0,0,0,.133);outline:1px solid #0000}}.interface-interface-skeleton__header{box-shadow:0 1px 0 0 rgba(0,0,0,.133);color:#1e1e1e;flex-shrink:0;height:auto;outline:1px solid #0000;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-pinned-items{display:flex;gap:8px}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{display:flex}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-pinned-items .components-button{display:flex}}.wp-block[data-type="core/widget-area"]{margin-left:auto;margin-right:auto;max-width:700px}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title{background:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;height:48px;margin:0;position:relative;transform:translateZ(0);z-index:1}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title:hover{background:#fff}.wp-block[data-type="core/widget-area"] .block-list-appender.wp-block{position:relative;width:auto}.wp-block[data-type="core/widget-area"] .editor-styles-wrapper .wp-block.wp-block.wp-block.wp-block.wp-block{max-width:100%}.wp-block[data-type="core/widget-area"] .components-panel__body.is-opened{padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper{margin:0;padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper>.block-editor-block-list__layout{margin-top:-48px;min-height:32px;padding:72px 16px 16px}.wp-block-widget-area__highlight-drop-zone{outline:var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color)}body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title,body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title *{pointer-events:none}.edit-widgets-error-boundary{box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,.1px 11.5px 16.4px -.5px #00000026;margin:60px auto auto;max-width:780px;padding:20px}.edit-widgets-header{align-items:center;background:#fff;display:flex;height:60px;justify-content:space-between;overflow:auto}@media (min-width:600px){.edit-widgets-header{overflow:visible}}.edit-widgets-header .selected-block-tools-wrapper{align-items:center;display:flex;height:60px;overflow:hidden}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-contextual-toolbar{border-bottom:0;height:100%}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-toolbar{height:100%;padding-top:15px}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group{border-right:none}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group:after,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar:after{background-color:#ddd;content:"";height:24px;margin-left:8px;margin-top:4px;width:1px}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar .components-toolbar-group.components-toolbar-group:after,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{display:none}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width:600px){.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{position:relative;top:-10px}}.edit-widgets-header__navigable-toolbar-wrapper{align-items:center;display:flex;flex-shrink:2;justify-content:center;overflow:hidden;padding-left:16px;padding-right:8px}.edit-widgets-header__title{font-size:20px;margin:0 20px 0 0;padding:0}.edit-widgets-header__actions{align-items:center;display:flex;gap:4px;padding-right:16px}@media (min-width:600px){.edit-widgets-header__actions{gap:8px}}.edit-widgets-header-toolbar{gap:8px;margin-right:8px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon{height:32px;min-width:32px;padding:4px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon.is-pressed,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon.is-pressed{background:#1e1e1e}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:focus:not(:disabled),.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid #0000}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:before,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:before{display:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:12px;padding-right:12px}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle:after{content:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.edit-widgets-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-widgets-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-widgets-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-widgets-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-widgets-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-widgets-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.edit-widgets-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.components-panel__header.edit-widgets-sidebar__panel-tabs{padding-left:0}.edit-widgets-widget-areas__top-container{display:flex;padding:16px}.edit-widgets-widget-areas__top-container .block-editor-block-icon{margin-right:16px}.edit-widgets-notices__snackbar{bottom:20px;left:0;padding-left:16px;padding-right:16px;position:fixed;right:0}@media (min-width:783px){.edit-widgets-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-widgets-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-widgets-notices__snackbar{left:160px}}.folded .edit-widgets-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-widgets-notices__snackbar{left:36px}}body.is-fullscreen-mode .edit-widgets-notices__snackbar{left:0!important}.edit-widgets-notices__dismissible .components-notice,.edit-widgets-notices__pinned .components-notice{border-bottom:1px solid #0003;box-sizing:border-box;min-height:60px;padding:0 12px}.edit-widgets-notices__dismissible .components-notice .components-notice__dismiss,.edit-widgets-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.edit-widgets-layout__inserter-panel{display:flex;flex-direction:column;height:100%}.edit-widgets-layout__inserter-panel .block-editor-inserter__menu{overflow:hidden}.edit-widgets-layout__inserter-panel-header{display:flex;justify-content:flex-end;padding-right:8px;padding-top:8px}.edit-widgets-layout__inserter-panel-content{height:calc(100% - 44px)}.edit-widgets-layout__inserter-panel-content .block-editor-inserter__tablist-and-close{display:none}@media (min-width:782px){.edit-widgets-layout__inserter-panel-content{height:100%}}.components-popover.more-menu-dropdown__content{z-index:99998}.edit-widgets-welcome-guide{width:312px}.edit-widgets-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-widgets-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-widgets-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-widgets-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-widgets-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-widgets-block-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;position:relative}.edit-widgets-block-editor,.edit-widgets-block-editor .block-editor-writing-flow,.edit-widgets-block-editor>div:last-of-type{display:flex;flex-direction:column;flex-grow:1}.edit-widgets-block-editor .edit-widgets-main-block-list{height:100%}.edit-widgets-block-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.edit-widgets-block-editor .components-button.has-icon,.edit-widgets-block-editor .components-button.is-tertiary{padding:6px}.edit-widgets-editor__list-view-panel{display:flex;flex-direction:column;height:100%;min-width:350px}.edit-widgets-editor__list-view-panel-content{height:calc(100% - 44px);overflow-y:auto;padding:8px}.edit-widgets-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:16px;padding-right:4px}body.js.appearance_page_gutenberg-widgets,body.js.widgets-php{background:#fff}body.js.appearance_page_gutenberg-widgets #wpcontent,body.js.widgets-php #wpcontent{padding-left:0}body.js.appearance_page_gutenberg-widgets #wpbody-content,body.js.widgets-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-widgets #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.appearance_page_gutenberg-widgets #wpfooter,body.js.widgets-php #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.widgets-php #wpfooter{display:none}body.js.appearance_page_gutenberg-widgets .a11y-speak-region,body.js.widgets-php .a11y-speak-region{left:-1px;top:-1px}body.js.appearance_page_gutenberg-widgets ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-widgets ul#adminmenu>li.current>a.current:after,body.js.widgets-php ul#adminmenu a.wp-has-current-submenu:after,body.js.widgets-php ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.appearance_page_gutenberg-widgets .media-frame select.attachment-filters:last-of-type,body.js.widgets-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.blocks-widgets-container{box-sizing:border-box}.blocks-widgets-container *,.blocks-widgets-container :after,.blocks-widgets-container :before{box-sizing:inherit}@media (min-width:600px){.blocks-widgets-container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.blocks-widgets-container{min-height:calc(100vh - 32px)}}.blocks-widgets-container .interface-interface-skeleton__content{background-color:#f0f0f0}.blocks-widgets-container .editor-styles-wrapper{margin:auto;max-width:700px}.edit-widgets-sidebar .components-button.interface-complementary-area__pin-unpin-item{display:none}.js .widgets-php .notice{display:none!important}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
diff --git a/wp-includes/css/dist/editor/style-rtl.css b/wp-includes/css/dist/editor/style-rtl.css
index 78c5d3f..239ca57 100644
--- a/wp-includes/css/dist/editor/style-rtl.css
+++ b/wp-includes/css/dist/editor/style-rtl.css
@@ -9,7 +9,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -17,6 +17,354 @@
}
}
+.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{
+ margin:0;
+ 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;
+ gap:8px;
+ padding-left:12px;
+}
+.interface-complementary-area-header .interface-complementary-area-header__title{
+ margin:0;
+}
+.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;
+ height:100%;
+ overflow:auto;
+}
+@media (min-width:600px){
+ .interface-complementary-area{
+ -webkit-overflow-scrolling:touch;
+ }
+}
+@media (min-width:782px){
+ .interface-complementary-area{
+ width:280px;
+ }
+}
+.interface-complementary-area .components-panel{
+ border:none;
+ position:relative;
+ z-index:0;
+}
+.interface-complementary-area .components-panel__header{
+ position:sticky;
+ top:0;
+ z-index:1;
+}
+.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{
+ top:48px;
+}
+@media (min-width:782px){
+ .interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{
+ top:0;
+ }
+}
+.interface-complementary-area p:not(.components-base-control__help){
+ margin-top:0;
+}
+.interface-complementary-area h2{
+ color:#1e1e1e;
+ font-size:13px;
+ font-weight:500;
+ margin-bottom:1.5em;
+}
+.interface-complementary-area h3{
+ color:#1e1e1e;
+ font-size:11px;
+ font-weight:500;
+ margin-bottom:1.5em;
+ text-transform:uppercase;
+}
+.interface-complementary-area hr{
+ border-bottom:1px solid #f0f0f0;
+ border-top:none;
+ margin:1.5em 0;
+}
+.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{
+ box-shadow:none;
+ margin-bottom:1.5em;
+}
+.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{
+ margin-bottom:0;
+}
+.interface-complementary-area .block-editor-skip-to-selected-block:focus{
+ bottom:10px;
+ left:10px;
+ right:auto;
+ top:auto;
+}
+
+.interface-complementary-area__fill{
+ height:100%;
+}
+
+@media (min-width:782px){
+ body.js.is-fullscreen-mode{
+ height:calc(100% + 32px);
+ margin-top:-32px;
+ }
+ body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{
+ display:none;
+ }
+ body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{
+ margin-right:0;
+ }
+}
+
+html.interface-interface-skeleton__html-container{
+ position:fixed;
+ width:100%;
+}
+@media (min-width:782px){
+ html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)){
+ position:static;
+ width:auto;
+ }
+}
+
+.interface-interface-skeleton{
+ bottom:0;
+ display:flex;
+ flex-direction:row;
+ height:auto;
+ left:0;
+ max-height:100%;
+ position:fixed;
+ top:46px;
+}
+@media (min-width:783px){
+ .interface-interface-skeleton{
+ top:32px;
+ }
+ .is-fullscreen-mode .interface-interface-skeleton{
+ top:0;
+ }
+}
+
+.interface-interface-skeleton__editor{
+ display:flex;
+ flex:0 1 100%;
+ flex-direction:column;
+ overflow:hidden;
+}
+
+.interface-interface-skeleton{
+ right:0;
+}
+@media (min-width:783px){
+ .interface-interface-skeleton{
+ right:160px;
+ }
+}
+@media (min-width:783px){
+ .auto-fold .interface-interface-skeleton{
+ right:36px;
+ }
+}
+@media (min-width:961px){
+ .auto-fold .interface-interface-skeleton{
+ right:160px;
+ }
+}
+.folded .interface-interface-skeleton{
+ right:0;
+}
+@media (min-width:783px){
+ .folded .interface-interface-skeleton{
+ right:36px;
+ }
+}
+
+body.is-fullscreen-mode .interface-interface-skeleton{
+ right:0 !important;
+}
+
+.interface-interface-skeleton__body{
+ display:flex;
+ flex-grow:1;
+ overflow:auto;
+ overscroll-behavior-y:none;
+ position:relative;
+}
+@media (min-width:782px){
+ .has-footer .interface-interface-skeleton__body{
+ padding-bottom:25px;
+ }
+}
+
+.interface-interface-skeleton__content{
+ display:flex;
+ flex-direction:column;
+ flex-grow:1;
+ overflow:auto;
+ z-index:20;
+}
+@media (min-width:782px){
+ .interface-interface-skeleton__content{
+ z-index:auto;
+ }
+}
+
+.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
+ background:#fff;
+ bottom:0;
+ color:#1e1e1e;
+ flex-shrink:0;
+ position:absolute;
+ right:0;
+ top:0;
+ width:auto;
+ z-index:100000;
+}
+@media (min-width:782px){
+ .interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
+ position:relative !important;
+ }
+}
+
+.interface-interface-skeleton__sidebar{
+ border-top:1px solid #e0e0e0;
+ overflow:hidden;
+}
+@media (min-width:782px){
+ .interface-interface-skeleton__sidebar{
+ box-shadow:1px 1px 0 0 rgba(0,0,0,.133);
+ outline:1px solid #0000;
+ }
+}
+
+.interface-interface-skeleton__secondary-sidebar{
+ border-top:1px solid #e0e0e0;
+ left:0;
+}
+@media (min-width:782px){
+ .interface-interface-skeleton__secondary-sidebar{
+ box-shadow:-1px 1px 0 0 rgba(0,0,0,.133);
+ outline:1px solid #0000;
+ }
+}
+
+.interface-interface-skeleton__header{
+ box-shadow:0 1px 0 0 rgba(0,0,0,.133);
+ color:#1e1e1e;
+ flex-shrink:0;
+ height:auto;
+ outline:1px solid #0000;
+ z-index:30;
+}
+
+.interface-interface-skeleton__footer{
+ background-color:#fff;
+ border-top:1px solid #e0e0e0;
+ bottom:0;
+ color:#1e1e1e;
+ display:none;
+ flex-shrink:0;
+ height:auto;
+ position:absolute;
+ right:0;
+ width:100%;
+ z-index:90;
+}
+@media (min-width:782px){
+ .interface-interface-skeleton__footer{
+ display:flex;
+ }
+}
+.interface-interface-skeleton__footer .block-editor-block-breadcrumb{
+ align-items:center;
+ background:#fff;
+ display:flex;
+ font-size:13px;
+ height:24px;
+ padding:0 18px;
+ z-index:30;
+}
+
+.interface-interface-skeleton__actions{
+ background:#fff;
+ bottom:auto;
+ color:#1e1e1e;
+ left:0;
+ position:fixed !important;
+ right:auto;
+ top:-9999em;
+ width:100vw;
+ z-index:100000;
+}
+@media (min-width:782px){
+ .interface-interface-skeleton__actions{
+ width:280px;
+ }
+}
+.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{
+ bottom:0;
+ top:auto;
+}
+.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{
+ top:46px;
+}
+@media (min-width:782px){
+ .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{
+ border-right:1px solid #ddd;
+ top:32px;
+ }
+ .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{
+ top:0;
+ }
+}
+
+.interface-pinned-items{
+ display:flex;
+ gap:8px;
+}
+.interface-pinned-items .components-button{
+ display:none;
+ margin:0;
+}
+.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{
+ display:flex;
+}
+.interface-pinned-items .components-button svg{
+ max-height:24px;
+ max-width:24px;
+}
+@media (min-width:600px){
+ .interface-pinned-items .components-button{
+ display:flex;
+ }
+}
+
.editor-autocompleters__user .editor-autocompleters__no-avatar:before{
content:"";
font:normal 20px/1 dashicons;
@@ -127,6 +475,132 @@
border-top-width:0;
}
+.editor-collapsible-block-toolbar{
+ align-items:center;
+ display:flex;
+ height:60px;
+ overflow:hidden;
+}
+.editor-collapsible-block-toolbar .block-editor-block-contextual-toolbar{
+ background:#0000;
+ border-bottom:0;
+ height:100%;
+}
+.editor-collapsible-block-toolbar .block-editor-block-toolbar{
+ height:100%;
+ padding-top:15px;
+}
+.editor-collapsible-block-toolbar .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){
+ height:32px;
+}
+.editor-collapsible-block-toolbar:after{
+ background-color:#ddd;
+ content:"";
+ height:24px;
+ margin-left:7px;
+ width:1px;
+}
+.editor-collapsible-block-toolbar .components-toolbar,.editor-collapsible-block-toolbar .components-toolbar-group{
+ border-left:none;
+ position:relative;
+}
+.editor-collapsible-block-toolbar .components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar:after{
+ background-color:#ddd;
+ content:"";
+ height:24px;
+ left:-1px;
+ position:absolute;
+ top:4px;
+ width:1px;
+}
+.editor-collapsible-block-toolbar .components-toolbar .components-toolbar-group.components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{
+ display:none;
+}
+.editor-collapsible-block-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{
+ height:32px;
+ overflow:visible;
+}
+@media (min-width:600px){
+ .editor-collapsible-block-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{
+ height:40px;
+ position:relative;
+ top:-5px;
+ }
+}
+.editor-collapsible-block-toolbar.is-collapsed{
+ display:none;
+}
+
+.editor-collapsible-block-toolbar__toggle{
+ margin-right:2px;
+}
+
+.editor-create-template-part-modal{
+ z-index:1000001;
+}
+@media (min-width:600px){
+ .editor-create-template-part-modal .components-modal__frame{
+ max-width:500px;
+ }
+}
+
+.editor-create-template-part-modal__area-radio-group{
+ border:1px solid #757575;
+ border-radius:2px;
+ width:100%;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio{
+ display:block;
+ height:100%;
+ padding:12px;
+ text-align:right;
+ width:100%;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover{
+ background-color:inherit;
+ border-bottom:1px solid #757575;
+ border-radius:0;
+ margin:0;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:not(:focus){
+ box-shadow:none;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover:focus,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover:focus,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:focus{
+ border-bottom:1px solid #fff;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:last-of-type{
+ border-bottom:none;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:not(:hover),.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio[aria-checked=true]{
+ color:#1e1e1e;
+ cursor:auto;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:not(:hover) .editor-create-template-part-modal__option-label div,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio[aria-checked=true] .editor-create-template-part-modal__option-label div{
+ color:#949494;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio .editor-create-template-part-modal__option-label{
+ padding-top:4px;
+ white-space:normal;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio .editor-create-template-part-modal__option-label div{
+ font-size:12px;
+ padding-top:4px;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio .editor-create-template-part-modal__checkbox{
+ margin-right:auto;
+ min-width:24px;
+}
+
+.editor-content-only-settings-menu__description{
+ min-width:235px;
+ padding:8px;
+}
+
+.editor-blog-title-dropdown__content .components-popover__content{
+ min-width:320px;
+ padding:16px;
+}
+
.editor-document-bar{
align-items:center;
background:#f0f0f0;
@@ -135,17 +609,23 @@
height:32px;
justify-content:space-between;
min-width:0;
- width:min(100%, 450px);
+ width:min(100%, 416px);
}
.editor-document-bar:hover{
background-color:#e0e0e0;
}
.editor-document-bar .components-button{
border-radius:4px;
+ transition:all .1s ease-out;
+}
+@media (prefers-reduced-motion:reduce){
+ .editor-document-bar .components-button{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
}
.editor-document-bar .components-button:hover{
background:#e0e0e0;
- color:var(--wp-block-synced-color);
}
@media (min-width:960px){
.editor-document-bar{
@@ -160,16 +640,20 @@
}
.editor-document-bar__title{
- color:#2f2f2f;
+ align-items:center;
+ color:#1e1e1e;
+ display:flex;
flex-grow:1;
+ gap:4px;
+ justify-content:center;
overflow:hidden;
}
-@media (min-width:600px){
+@media (min-width:782px){
.editor-document-bar__title{
- padding-right:32px;
+ padding-right:24px;
}
}
-.editor-document-bar.is-global .editor-document-bar__title,.editor-document-bar__title:hover{
+.editor-document-bar.is-global .editor-document-bar__title{
color:var(--wp-block-synced-color);
}
.editor-document-bar__title .block-editor-block-icon{
@@ -178,34 +662,16 @@
}
.editor-document-bar__title h1{
color:currentColor;
- max-width:50%;
+ max-width:70%;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}
-.editor-document-bar.is-animated.has-back-button .editor-document-bar__title{
- animation:editor-document-bar__slide-in-left .3s;
-}
-@media (prefers-reduced-motion:reduce){
- .editor-document-bar.is-animated.has-back-button .editor-document-bar__title{
- animation-delay:0s;
- animation-duration:1ms;
- }
-}
-.editor-document-bar.is-animated .editor-document-bar__title{
- animation:editor-document-bar__slide-in-right .3s;
-}
-@media (prefers-reduced-motion:reduce){
- .editor-document-bar.is-animated .editor-document-bar__title{
- animation-delay:0s;
- animation-duration:1ms;
- }
-}
.editor-document-bar__shortcut{
color:#2f2f2f;
display:none;
- min-width:32px;
+ min-width:24px;
}
@media (min-width:782px){
.editor-document-bar__shortcut{
@@ -223,38 +689,9 @@
}
.editor-document-bar__back.components-button.has-icon.has-text:hover{
background-color:initial;
- color:var(--wp-block-synced-color);
-}
-.editor-document-bar.is-animated .editor-document-bar__back.components-button.has-icon.has-text{
- animation:editor-document-bar__slide-in-left .3s;
-}
-@media (prefers-reduced-motion:reduce){
- .editor-document-bar.is-animated .editor-document-bar__back.components-button.has-icon.has-text{
- animation-delay:0s;
- animation-duration:1ms;
- }
+ color:#1e1e1e;
}
-@keyframes editor-document-bar__slide-in-right{
- 0%{
- opacity:0;
- transform:translateX(15%);
- }
- to{
- opacity:1;
- transform:translateX(0);
- }
-}
-@keyframes editor-document-bar__slide-in-left{
- 0%{
- opacity:0;
- transform:translateX(-15%);
- }
- to{
- opacity:1;
- transform:translateX(0);
- }
-}
.document-outline{
margin:20px 0;
}
@@ -342,11 +779,11 @@
align-items:center;
display:inline-flex;
}
-.editor-document-tools .editor-document-tools__left>.components-button{
+.editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{
display:none;
}
-@media (min-width:600px){
- .editor-document-tools .editor-document-tools__left>.components-button{
+@media (min-width:782px){
+ .editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{
display:inline-flex;
}
}
@@ -396,16 +833,6 @@
margin-left:8px;
padding-right:16px;
}
-@media (min-width:782px){
- .editor-document-tools__left{
- padding-right:20px;
- }
-}
-@media (min-width:1280px){
- .editor-document-tools__left{
- padding-left:8px;
- }
-}
.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.has-icon{
height:32px;
@@ -423,6 +850,10 @@
margin-right:8px;
}
+.editor-editor-interface .entities-saved-states__panel-header{
+ height:61px;
+}
+
.components-editor-notices__dismissible,.components-editor-notices__pinned{
color:#1e1e1e;
left:0;
@@ -478,6 +909,179 @@
padding:20px;
}
+.editor-header{
+ align-items:center;
+ background:#fff;
+ display:flex;
+ flex-wrap:wrap;
+ height:60px;
+ justify-content:space-between;
+ max-width:100vw;
+}
+@media (min-width:280px){
+ .editor-header{
+ flex-wrap:nowrap;
+ }
+}
+
+.editor-header__toolbar{
+ align-items:center;
+ display:flex;
+ flex-grow:3;
+ flex-shrink:8;
+ overflow:hidden;
+ padding:2px 0;
+}
+@media (min-width:782px){
+ .editor-header__toolbar{
+ padding-left:var(--wp-admin-border-width-focus);
+ }
+}
+.editor-header__toolbar .table-of-contents{
+ display:none;
+}
+@media (min-width:600px){
+ .editor-header__toolbar .table-of-contents{
+ display:block;
+ }
+}
+
+.editor-header__center{
+ display:flex;
+ flex-grow:1;
+ justify-content:center;
+ min-width:0;
+}
+.editor-header__center.is-collapsed{
+ display:none;
+}
+.editor-header__settings{
+ align-items:center;
+ display:inline-flex;
+ flex-wrap:nowrap;
+ gap:8px;
+ padding-left:4px;
+}
+@media (min-width:600px){
+ .editor-header__settings{
+ padding-left:8px;
+ }
+}
+.show-icon-labels .editor-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{
+ width:auto;
+}
+.show-icon-labels .editor-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{
+ display:none;
+}
+.show-icon-labels .editor-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{
+ content:attr(aria-label);
+}
+.show-icon-labels .editor-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{
+ background-color:initial;
+}
+.show-icon-labels .editor-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{
+ background-color:initial;
+ box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);
+}
+.show-icon-labels .editor-header .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg{
+ display:block;
+}
+.show-icon-labels .editor-header .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after{
+ content:none;
+}
+.show-icon-labels .editor-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{
+ display:block;
+}
+.show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{
+ padding-left:8px;
+ padding-right:8px;
+}
+@media (min-width:600px){
+ .show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{
+ padding-left:12px;
+ padding-right:12px;
+ }
+}
+.show-icon-labels .editor-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .editor-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{
+ content:none;
+}
+
+.show-icon-labels .editor-header__toolbar .block-editor-block-mover{
+ border-right:none;
+}
+.show-icon-labels .editor-header__toolbar .block-editor-block-mover:before{
+ background-color:#ddd;
+ content:"";
+ height:24px;
+ margin-right:8px;
+ margin-top:4px;
+ width:1px;
+}
+.show-icon-labels .editor-header__toolbar .block-editor-block-mover .block-editor-block-mover__move-button-container:before{
+ background:#ddd;
+ right:calc(50% + 1px);
+ width:calc(100% - 24px);
+}
+
+.show-icon-labels.interface-pinned-items{
+ border-bottom:1px solid #ccc;
+ display:block;
+ margin:0 -12px;
+ padding:6px 12px 12px;
+}
+.show-icon-labels.interface-pinned-items>.components-button.has-icon{
+ justify-content:flex-start;
+ margin:0;
+ padding:6px 8px 6px 6px;
+ width:14.625rem;
+}
+.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{
+ display:block;
+ max-width:24px;
+}
+.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{
+ padding-right:40px;
+}
+.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{
+ margin-left:8px;
+}
+
+@media (min-width:600px){
+ .editor-header__post-preview-button{
+ display:none;
+ }
+}
+
+.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header{
+ border-bottom:none;
+}
+.editor-editor-interface.is-distraction-free .editor-header{
+ background-color:#fff;
+ border-bottom:1px solid #e0e0e0;
+ position:absolute;
+ width:100%;
+}
+.editor-editor-interface.is-distraction-free .editor-header>.edit-post-header__settings>.edit-post-header__post-preview-button{
+ visibility:hidden;
+}
+.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.editor-preview-dropdown,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.interface-pinned-items,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__toolbar .editor-document-tools__document-overview-toggle{
+ display:none;
+}
+.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within{
+ opacity:1 !important;
+}
+.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within div{
+ transform:translateX(0) translateZ(0) !important;
+}
+.editor-editor-interface.is-distraction-free .components-editor-notices__dismissible{
+ position:absolute;
+ z-index:35;
+}
+
+.components-popover.more-menu-dropdown__content{
+ z-index:99998;
+}
+
.editor-inserter-sidebar{
box-sizing:border-box;
display:flex;
@@ -488,13 +1092,6 @@
box-sizing:inherit;
}
-.editor-inserter-sidebar__header{
- display:flex;
- justify-content:flex-end;
- padding-left:8px;
- padding-top:8px;
-}
-
.editor-inserter-sidebar__content{
height:calc(100% - 44px);
}
@@ -504,6 +1101,54 @@
}
}
+.editor-keyboard-shortcut-help-modal__section{
+ margin:0 0 2rem;
+}
+.editor-keyboard-shortcut-help-modal__section-title{
+ font-size:.9rem;
+ font-weight:600;
+}
+.editor-keyboard-shortcut-help-modal__shortcut{
+ align-items:baseline;
+ border-top:1px solid #ddd;
+ display:flex;
+ margin-bottom:0;
+ padding:.6rem 0;
+}
+.editor-keyboard-shortcut-help-modal__shortcut:last-child{
+ border-bottom:1px solid #ddd;
+}
+.editor-keyboard-shortcut-help-modal__shortcut:empty{
+ display:none;
+}
+.editor-keyboard-shortcut-help-modal__shortcut-term{
+ font-weight:600;
+ margin:0 1rem 0 0;
+ text-align:left;
+}
+.editor-keyboard-shortcut-help-modal__shortcut-description{
+ flex:1;
+ flex-basis:auto;
+ margin:0;
+}
+.editor-keyboard-shortcut-help-modal__shortcut-key-combination{
+ background:none;
+ display:block;
+ margin:0;
+ padding:0;
+}
+.editor-keyboard-shortcut-help-modal__shortcut-key-combination+.editor-keyboard-shortcut-help-modal__shortcut-key-combination{
+ margin-top:10px;
+}
+.editor-keyboard-shortcut-help-modal__shortcut-key{
+ border-radius:8%;
+ margin:0 .2rem;
+ padding:.25rem .5rem;
+}
+.editor-keyboard-shortcut-help-modal__shortcut-key:last-child{
+ margin:0 .2rem 0 0;
+}
+
.editor-list-view-sidebar{
display:flex;
flex-direction:column;
@@ -514,14 +1159,14 @@
width:350px;
}
}
-.editor-list-view-sidebar .edit-post-editor__document-overview-panel__header{
+.editor-list-view-sidebar .editor-list-view-sidebar__header{
border-bottom:1px solid #ddd;
display:flex;
}
.editor-list-view-sidebar .editor-list-view-sidebar__close-button{
align-self:center;
background:#fff;
- margin-left:8px;
+ margin-left:12px;
order:1;
}
@@ -542,7 +1187,7 @@
.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{
height:100%;
overflow:auto;
- padding:8px 6px;
+ padding:4px;
scrollbar-color:#0000 #0000;
scrollbar-gutter:stable both-edges;
scrollbar-gutter:auto;
@@ -601,6 +1246,20 @@
line-height:1.4;
}
+.editor-post-order__panel,.editor-post-parent__panel{
+ padding-top:8px;
+}
+.editor-post-order__panel .editor-post-panel__row-control>div,.editor-post-parent__panel .editor-post-panel__row-control>div{
+ width:100%;
+}
+
+.editor-post-order__panel-dialog .editor-post-order,.editor-post-order__panel-dialog .editor-post-parent,.editor-post-parent__panel-dialog .editor-post-order,.editor-post-parent__panel-dialog .editor-post-parent{
+ margin:8px;
+}
+.editor-post-order__panel-dialog .components-popover__content,.editor-post-parent__panel-dialog .components-popover__content{
+ min-width:320px;
+}
+
.editor-post-author__panel{
padding-top:8px;
}
@@ -609,11 +1268,97 @@
width:100%;
}
+.editor-post-author__panel-dialog .editor-post-author{
+ margin:8px;
+ min-width:248px;
+}
+
+.editor-action-modal{
+ z-index:1000001;
+}
+
+.editor-post-card-panel__content{
+ flex-grow:1;
+}
+.editor-post-card-panel__title{
+ width:100%;
+}
+.editor-post-card-panel__title.editor-post-card-panel__title{
+ align-items:center;
+ column-gap:8px;
+ display:flex;
+ flex-wrap:wrap;
+ margin:0;
+ padding:2px 0;
+ row-gap:4px;
+ word-break:break-word;
+}
+.editor-post-card-panel__icon{
+ flex:0 0 24px;
+ height:24px;
+ width:24px;
+}
+.editor-post-card-panel__header{
+ display:flex;
+ justify-content:space-between;
+}
+.editor-post-card-panel.has-description .editor-post-card-panel__header{
+ margin-bottom:8px;
+}
+
+.editor-post-card-panel__icon.is-sync{
+ fill:var(--wp-block-synced-color);
+}
+
+.editor-post-card-panel__title-badge{
+ background:#f0f0f0;
+ border-radius:2px;
+ color:#757575;
+ display:inline-block;
+ flex-shrink:0;
+ font-size:12px;
+ font-weight:400;
+ line-height:20px;
+ padding:0 4px;
+}
+
+.editor-post-content-information{
+ color:#757575;
+}
+.editor-post-content-information .components-text{
+ color:inherit;
+}
+
+.editor-post-discussion__panel-dialog .editor-post-discussion{
+ margin:8px;
+ min-width:248px;
+}
+.editor-post-discussion__panel-dialog .editor-post-discussion .components-radio-control__option{
+ align-items:flex-start;
+}
+.editor-post-discussion__panel-dialog .editor-post-discussion .components-radio-control__label .components-text{
+ display:block;
+ margin-top:4px;
+}
+
+.editor-post-discussion__panel-toggle .components-text{
+ color:inherit;
+}
+
+.editor-post-discussion__panel-dialog .components-popover__content{
+ min-width:320px;
+}
+
.editor-post-excerpt__textarea{
margin-bottom:10px;
width:100%;
}
+.editor-post-excerpt__dropdown__content .components-popover__content{
+ min-width:320px;
+ padding:16px;
+}
+
.editor-post-featured-image{
padding:0;
}
@@ -624,10 +1369,6 @@
right:50%;
top:50%;
}
-.editor-post-featured-image .components-responsive-wrapper__content{
- max-width:100%;
- width:auto;
-}
.editor-post-featured-image__container{
position:relative;
@@ -635,12 +1376,24 @@
.editor-post-featured-image__container:focus .editor-post-featured-image__actions,.editor-post-featured-image__container:focus-within .editor-post-featured-image__actions,.editor-post-featured-image__container:hover .editor-post-featured-image__actions{
opacity:1;
}
+.editor-post-featured-image__container .components-drop-zone__content{
+ border-radius:2px;
+}
+.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner{
+ align-items:center;
+ display:flex;
+ gap:8px;
+}
+.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{
+ margin:0;
+}
.editor-post-featured-image__preview,.editor-post-featured-image__toggle{
box-shadow:0 0 0 0 var(--wp-admin-theme-color);
display:flex;
justify-content:center;
- max-height:150px;
+ min-height:40px;
+ outline-offset:-1px;
overflow:hidden;
padding:0;
transition:all .1s ease-out;
@@ -655,24 +1408,23 @@
.editor-post-featured-image__preview{
height:auto;
+ outline:1px solid #0000001a;
}
-.editor-post-featured-image__preview .components-responsive-wrapper{
- background:#f0f0f0;
+.editor-post-featured-image__preview .editor-post-featured-image__preview-image{
+ aspect-ratio:2/1;
+ object-fit:cover;
+ object-position:50% 50%;
width:100%;
}
.editor-post-featured-image__toggle{
- background-color:#f0f0f0;
border-radius:2px;
+ box-shadow:inset 0 0 0 1px #ccc;
+ height:100%;
line-height:20px;
- min-height:90px;
padding:8px 0;
text-align:center;
}
-.editor-post-featured-image__toggle:hover{
- background:#ddd;
- color:#1e1e1e;
-}
.editor-post-featured-image__actions{
bottom:0;
@@ -700,6 +1452,22 @@
margin:4px 0 0;
}
+.editor-post-format__dialog .editor-post-format__dialog-content{
+ margin:8px;
+ min-width:248px;
+}
+
+.editor-post-format__options .components-base-control__field>.components-v-stack{
+ gap:12px;
+}
+
+.editor-post-last-edited-panel{
+ color:#757575;
+}
+.editor-post-last-edited-panel .components-text{
+ color:inherit;
+}
+
.editor-post-last-revision__title{
font-weight:500;
width:100%;
@@ -725,6 +1493,10 @@
padding:16px;
}
+.editor-private-post-last-revision__button{
+ display:inline-block;
+}
+
.editor-post-locked-modal__buttons{
margin-top:24px;
}
@@ -738,7 +1510,7 @@
.editor-post-panel__row{
align-items:flex-start !important;
justify-content:flex-start !important;
- min-height:40px;
+ min-height:32px;
width:100%;
}
@@ -746,7 +1518,11 @@
align-items:center;
display:flex;
flex-shrink:0;
- min-height:40px;
+ -webkit-hyphens:auto;
+ hyphens:auto;
+ line-height:20px;
+ min-height:32px;
+ padding:6px 0;
width:30%;
}
@@ -754,20 +1530,23 @@
align-items:center;
display:flex;
flex-grow:1;
- min-height:40px;
+ min-height:32px;
}
-
-.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-panel__row-control .components-button{
+ height:auto;
+ max-width:100%;
+ min-height:32px;
+ text-align:right;
+ text-wrap:balance;
+ text-wrap:pretty;
+ white-space:normal;
+}
+.editor-post-panel__row-control .components-dropdown{
+ max-width:100%;
}
-.editor-post-publish-panel{
- background:#fff;
+.editor-post-panel__section{
+ padding:16px;
}
.editor-post-publish-panel__content{
@@ -832,6 +1611,7 @@
}
.editor-post-publish-panel__header-publish-button{
+ justify-content:center;
padding-left:4px;
}
@@ -877,6 +1657,11 @@
.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{
display:none;
}
+.editor-post-publish-panel__prepublish .components-panel__body-title .components-button{
+ align-items:flex-start;
+ text-wrap:balance;
+ text-wrap:pretty;
+}
.post-publish-panel__postpublish .components-panel__body{
border-bottom:1px solid #e0e0e0;
@@ -936,6 +1721,47 @@
height:40px;
}
}
+.editor-post-publish-panel{
+ background:#fff;
+ bottom:0;
+ left:0;
+ overflow:auto;
+ position:fixed;
+ right:0;
+ top:46px;
+ z-index:100001;
+}
+@media (min-width:782px){
+ .editor-post-publish-panel{
+ animation:editor-post-publish-panel__slide-in-animation .1s forwards;
+ border-right:1px solid #ddd;
+ right:auto;
+ top:32px;
+ transform:translateX(-100%);
+ width:281px;
+ z-index:99998;
+ }
+}
+@media (min-width:782px) and (prefers-reduced-motion:reduce){
+ .editor-post-publish-panel{
+ animation-delay:0s;
+ animation-duration:1ms;
+ }
+}
+@media (min-width:782px){
+ body.is-fullscreen-mode .editor-post-publish-panel{
+ top:0;
+ }
+ [role=region]:focus .editor-post-publish-panel{
+ transform:translateX(0);
+ }
+}
+
+@keyframes editor-post-publish-panel__slide-in-animation{
+ to{
+ transform:translateX(0);
+ }
+}
.editor-post-saved-state{
align-items:center;
color:#757575;
@@ -979,15 +1805,45 @@
padding:16px;
}
-.editor-post-schedule__dialog-toggle.components-button{
- display:block;
- height:auto;
- line-height:16px;
+.editor-post-slug{
+ align-items:stretch;
+ display:flex;
+ flex-direction:column;
+}
+
+.editor-post-status{
max-width:100%;
- overflow:hidden;
- padding:10px 12px;
- text-align:right;
- white-space:unset;
+}
+.editor-post-status.is-read-only{
+ padding:6px 12px;
+}
+
+.editor-change-status__password-fieldset,.editor-change-status__publish-date-wrapper{
+ border-top:1px solid #e0e0e0;
+ padding-top:16px;
+}
+
+.editor-change-status__content .components-popover__content{
+ min-width:320px;
+ padding:16px;
+}
+.editor-change-status__content .editor-change-status__options .components-base-control__field>.components-v-stack{
+ gap:12px;
+}
+.editor-change-status__content .editor-change-status__options .components-radio-control__option{
+ align-items:flex-start;
+}
+.editor-change-status__content .editor-change-status__options label .components-text{
+ display:block;
+ margin-top:4px;
+}
+.editor-change-status__content .editor-change-status__password-legend{
+ margin-bottom:8px;
+ padding:0;
+}
+
+.editor-post-sticky__toggle-control{
+ padding:6px 12px;
}
.editor-post-sync-status__value{
@@ -1052,9 +1908,6 @@
.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{
break-inside:avoid-column;
}
-.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__item:not(:focus):not(:hover) .block-editor-block-preview__container{
- box-shadow:0 0 0 1px #ddd;
-}
.editor-post-template__dropdown .components-popover__content{
min-width:240px;
@@ -1074,7 +1927,7 @@
padding:8px;
}
-.edit-post-text-editor__body textarea.editor-post-text-editor{
+textarea.editor-post-text-editor{
border:1px solid #949494;
border-radius:0;
box-shadow:none;
@@ -1091,34 +1944,34 @@
width:100%;
}
@media (prefers-reduced-motion:reduce){
- .edit-post-text-editor__body textarea.editor-post-text-editor{
+ textarea.editor-post-text-editor{
transition-delay:0s;
transition-duration:0s;
}
}
@media (min-width:600px){
- .edit-post-text-editor__body textarea.editor-post-text-editor{
+ textarea.editor-post-text-editor{
font-size:15px !important;
padding:24px;
}
}
-.edit-post-text-editor__body textarea.editor-post-text-editor:focus{
+textarea.editor-post-text-editor:focus{
border-color:var(--wp-admin-theme-color);
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
position:relative;
}
-.edit-post-text-editor__body textarea.editor-post-text-editor::-webkit-input-placeholder{
+textarea.editor-post-text-editor::-webkit-input-placeholder{
color:#1e1e1e9e;
}
-.edit-post-text-editor__body textarea.editor-post-text-editor::-moz-placeholder{
+textarea.editor-post-text-editor::-moz-placeholder{
color:#1e1e1e9e;
opacity:1;
}
-.edit-post-text-editor__body textarea.editor-post-text-editor:-ms-input-placeholder{
+textarea.editor-post-text-editor:-ms-input-placeholder{
color:#1e1e1e9e;
}
-.edit-post-text-editor__body .editor-post-title.is-raw-text{
+.editor-post-title.is-raw-text{
margin-bottom:24px;
margin-top:2px;
max-width:none;
@@ -1128,33 +1981,28 @@
width:100%;
}
-.components-button.editor-post-url__panel-toggle{
- display:block;
- max-width:100%;
- overflow:hidden;
- text-align:right;
- text-overflow:ellipsis;
- white-space:nowrap;
-}
-
.editor-post-url__panel-dialog .editor-post-url{
margin:8px;
min-width:248px;
}
-
-.editor-post-url__link-label{
- font-size:13px;
- font-weight:400;
- margin:0;
-}
.editor-post-url__link{
+ color:#757575;
direction:ltr;
+ margin-top:4px;
word-break:break-word;
}
.editor-post-url__link-slug{
font-weight:600;
}
+.editor-post-url__input input.components-input-control__input{
+ padding-inline-start:0 !important;
+}
+
+.editor-post-url__panel-toggle{
+ word-break:break-word;
+}
+
.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{
border:1px solid #1e1e1e;
border-radius:2px;
@@ -1166,6 +2014,8 @@
line-height:normal;
margin-left:12px;
margin-top:2px;
+ max-width:24px;
+ min-width:24px;
padding:6px 8px;
transition:box-shadow .1s linear;
transition:none;
@@ -1200,6 +2050,8 @@
@media (min-width:600px){
.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{
height:20px;
+ max-width:20px;
+ min-width:20px;
width:20px;
}
}
@@ -1278,6 +2130,11 @@
color:#1e1e1e9e;
}
+.editor-posts-per-page-dropdown__content .components-popover__content{
+ min-width:320px;
+ padding:16px;
+}
+
.editor-post-trash.components-button{
flex-grow:1;
justify-content:center;
@@ -1289,6 +2146,167 @@
width:100%;
}
+.editor-resizable-editor.is-resizable{
+ margin:0 auto;
+ overflow:visible;
+}
+
+.editor-resizable-editor__resize-handle{
+ appearance:none;
+ background:none;
+ border:0;
+ border-radius:2px;
+ bottom:0;
+ cursor:ew-resize;
+ height:100px;
+ margin:auto 0;
+ outline:none;
+ padding:0;
+ position:absolute;
+ top:0;
+ width:12px;
+}
+.editor-resizable-editor__resize-handle:after{
+ background-color:#75757566;
+ border-radius:2px;
+ bottom:16px;
+ content:"";
+ left:0;
+ position:absolute;
+ right:4px;
+ top:16px;
+ width:4px;
+}
+.editor-resizable-editor__resize-handle.is-left{
+ right:-18px;
+}
+.editor-resizable-editor__resize-handle.is-right{
+ left:-18px;
+}
+.editor-resizable-editor__resize-handle:active,.editor-resizable-editor__resize-handle:focus,.editor-resizable-editor__resize-handle:hover{
+ opacity:1;
+}
+.editor-resizable-editor__resize-handle:active:after,.editor-resizable-editor__resize-handle:focus:after,.editor-resizable-editor__resize-handle:hover:after{
+ background-color:var(--wp-admin-theme-color);
+}
+
+.editor-layout__toggle-entities-saved-states-panel,.editor-layout__toggle-publish-panel,.editor-layout__toggle-sidebar-panel{
+ background-color:#fff;
+ border:1px dotted #ddd;
+ bottom:auto;
+ box-sizing:border-box;
+ display:flex;
+ height:auto !important;
+ justify-content:center;
+ left:0;
+ padding:24px;
+ position:fixed !important;
+ right:auto;
+ top:-9999em;
+ width:280px;
+ z-index:100000;
+}
+
+.interface-interface-skeleton__actions:focus .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .editor-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-publish-panel{
+ bottom:0;
+ top:auto;
+}
+
+.editor-start-page-options__modal-content .block-editor-block-patterns-list{
+ column-count:2;
+ column-gap:24px;
+}
+@media (min-width:782px){
+ .editor-start-page-options__modal-content .block-editor-block-patterns-list{
+ column-count:3;
+ }
+}
+@media (min-width:1280px){
+ .editor-start-page-options__modal-content .block-editor-block-patterns-list{
+ column-count:4;
+ }
+}
+.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{
+ break-inside:avoid-column;
+ margin-bottom:24px;
+}
+.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{
+ min-height:100px;
+}
+.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{
+ width:100%;
+}
+
+.editor-start-template-options__modal .editor-start-template-options__modal__actions{
+ background-color:#fff;
+ border-top:1px solid #ddd;
+ bottom:0;
+ height:92px;
+ margin-left:-32px;
+ margin-right:-32px;
+ padding-left:32px;
+ padding-right:32px;
+ position:absolute;
+ width:100%;
+ z-index:1;
+}
+.editor-start-template-options__modal .block-editor-block-patterns-list{
+ padding-bottom:92px;
+}
+
+.editor-start-template-options__modal-content .block-editor-block-patterns-list{
+ column-count:2;
+ column-gap:24px;
+}
+@media (min-width:782px){
+ .editor-start-template-options__modal-content .block-editor-block-patterns-list{
+ column-count:3;
+ }
+}
+@media (min-width:1280px){
+ .editor-start-template-options__modal-content .block-editor-block-patterns-list{
+ column-count:4;
+ }
+}
+.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{
+ break-inside:avoid-column;
+}
+.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{
+ display:none;
+}
+
+.components-panel__header.editor-sidebar__panel-tabs{
+ padding-left:12px;
+ padding-right:0;
+}
+.components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{
+ height:24px;
+ min-width:24px;
+ padding:0;
+}
+@media (min-width:782px){
+ .components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{
+ display:flex;
+ }
+}
+
+.editor-post-summary .components-v-stack:empty{
+ display:none;
+}
+
+.editor-site-discussion-dropdown__content .components-popover__content{
+ min-width:320px;
+ padding:16px;
+}
+
+.editor-site-discussion__options .components-radio-control__option{
+ align-items:flex-start;
+}
+.editor-site-discussion__options label .components-text{
+ display:block;
+ margin-top:4px;
+}
+
.table-of-contents__popover.components-popover .components-popover__content{
min-width:380px;
}
@@ -1355,12 +2373,109 @@
font-weight:600;
margin-top:20px;
}
+.editor-template-areas__list,.editor-template-areas__list>li{
+ margin:0;
+}
+.editor-template-areas__item{
+ width:100%;
+}
+.editor-template-areas__item.components-button.has-icon{
+ padding:0;
+}
-.editor-template-validation-notice{
- align-items:center;
+h3.components-heading.editor-template-areas__title{
+ font-weight:500;
+ margin:0 0 8px;
+}
+
+.editor-text-editor{
+ background-color:#fff;
+ flex-grow:1;
+ position:relative;
+ width:100%;
+}
+.editor-text-editor .editor-post-title.is-raw-text textarea,.editor-text-editor .editor-post-title:not(.is-raw-text){
+ border:1px solid #949494;
+ border-radius:0;
+ font-family:Menlo,Consolas,monaco,monospace;
+ font-size:2.5em;
+ font-weight:400;
+ line-height:1.4;
+ max-width:none;
+ padding:16px;
+}
+@media (min-width:600px){
+ .editor-text-editor .editor-post-title.is-raw-text textarea,.editor-text-editor .editor-post-title:not(.is-raw-text){
+ padding:24px;
+ }
+}
+.editor-text-editor .editor-post-title.is-raw-text textarea:focus,.editor-text-editor .editor-post-title:not(.is-raw-text):focus{
+ border-color:var(--wp-admin-theme-color);
+ box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+}
+
+.editor-text-editor__body{
+ margin-left:auto;
+ margin-right:auto;
+ max-width:1080px;
+ padding:0 12px 12px;
+ width:100%;
+}
+@media (min-width:960px){
+ .editor-text-editor__body{
+ padding:0 24px 24px;
+ }
+}
+
+.editor-text-editor__toolbar{
+ background:#fffc;
display:flex;
- justify-content:space-between;
+ left:0;
+ padding:4px 12px;
+ position:sticky;
+ right:0;
+ top:0;
+ z-index:1;
+}
+@media (min-width:600px){
+ .editor-text-editor__toolbar{
+ padding:12px;
+ }
+}
+@media (min-width:960px){
+ .editor-text-editor__toolbar{
+ padding:12px 24px;
+ }
+}
+.editor-text-editor__toolbar h2{
+ color:#1e1e1e;
+ font-size:13px;
+ line-height:36px;
+ margin:0 0 0 auto;
+}
+
+.editor-visual-editor{
+ align-items:center;
+ background-color:#ddd;
+ display:block;
+ height:100%;
+ isolation:isolate;
+ position:relative;
+}
+.editor-visual-editor.is-resizable{
+ max-height:100%;
+}
+.editor-visual-editor.has-padding{
+ padding:24px 24px 0;
+}
+.editor-visual-editor.is-iframed{
+ overflow:hidden;
+}
+.editor-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;
}
-.editor-template-validation-notice .components-button{
- margin-right:5px;
+.editor-visual-editor .components-button.has-icon,.editor-visual-editor .components-button.is-tertiary{
+ padding:6px;
} \ No newline at end of file
diff --git a/wp-includes/css/dist/editor/style-rtl.min.css b/wp-includes/css/dist/editor/style-rtl.min.css
index 6d8a2d9..42e4486 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";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{content:"";font:normal 20px/1 dashicons;margin-left:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{flex-grow:0;flex-shrink:0;height:24px;margin-left:8px;max-width:none;width:24px}.editor-autocompleters__user .editor-autocompleters__user-name{flex-grow:1;flex-shrink:0;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user .editor-autocompleters__user-slug{color:#757575;flex-grow:0;flex-shrink:0;margin-right:8px;max-width:100px;overflow:none;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:var(--wp-admin-theme-color)}.editor-block-manager__no-results{font-style:italic;padding:24px 0;text-align:center}.editor-block-manager__search{margin:16px 0}.editor-block-manager__disabled-blocks-count{background-color:#fff;border:1px solid #ddd;border-width:1px 0;box-shadow:32px 0 0 0 #fff,-32px 0 0 0 #fff;padding:8px;position:sticky;text-align:center;top:-5px;z-index:2}.editor-block-manager__disabled-blocks-count~.editor-block-manager__results .editor-block-manager__category-title{top:31px}.editor-block-manager__disabled-blocks-count .is-link{margin-right:12px}.editor-block-manager__category{margin:0 0 24px}.editor-block-manager__category-title{background-color:#fff;padding:16px 0;position:sticky;top:-4px;z-index:1}.editor-block-manager__category-title .components-checkbox-control__label{font-weight:600}.editor-block-manager__checklist{margin-top:0}.editor-block-manager__category-title,.editor-block-manager__checklist-item{border-bottom:1px solid #ddd}.editor-block-manager__checklist-item{align-items:center;display:flex;justify-content:space-between;margin-bottom:0;padding:8px 16px 8px 0}.components-modal__content .editor-block-manager__checklist-item.components-checkbox-control__input-container{margin:0 8px}.editor-block-manager__checklist-item .block-editor-block-icon{margin-left:10px;fill:#1e1e1e}.editor-block-manager__results{border-top:1px solid #ddd}.editor-block-manager__disabled-blocks-count+.editor-block-manager__results{border-top-width:0}.editor-document-bar{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;height:32px;justify-content:space-between;min-width:0;width:min(100%,450px)}.editor-document-bar:hover{background-color:#e0e0e0}.editor-document-bar .components-button{border-radius:4px}.editor-document-bar .components-button:hover{background:#e0e0e0;color:var(--wp-block-synced-color)}@media (min-width:960px){.editor-document-bar{width:min(100%,450px)}}.editor-document-bar__command{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.editor-document-bar__title{color:#2f2f2f;flex-grow:1;overflow:hidden}@media (min-width:600px){.editor-document-bar__title{padding-right:32px}}.editor-document-bar.is-global .editor-document-bar__title,.editor-document-bar__title:hover{color:var(--wp-block-synced-color)}.editor-document-bar__title .block-editor-block-icon{flex-shrink:0;min-width:24px}.editor-document-bar__title h1{color:currentColor;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-document-bar.is-animated.has-back-button .editor-document-bar__title{animation:editor-document-bar__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.editor-document-bar.is-animated.has-back-button .editor-document-bar__title{animation-delay:0s;animation-duration:1ms}}.editor-document-bar.is-animated .editor-document-bar__title{animation:editor-document-bar__slide-in-right .3s}@media (prefers-reduced-motion:reduce){.editor-document-bar.is-animated .editor-document-bar__title{animation-delay:0s;animation-duration:1ms}}.editor-document-bar__shortcut{color:#2f2f2f;display:none;min-width:32px}@media (min-width:782px){.editor-document-bar__shortcut{display:initial}}.editor-document-bar__back.components-button.has-icon.has-text{color:#757575;flex-shrink:0;gap:0;min-width:36px;position:absolute;z-index:1}.editor-document-bar__back.components-button.has-icon.has-text:hover{background-color:initial;color:var(--wp-block-synced-color)}.editor-document-bar.is-animated .editor-document-bar__back.components-button.has-icon.has-text{animation:editor-document-bar__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.editor-document-bar.is-animated .editor-document-bar__back.components-button.has-icon.has-text{animation-delay:0s;animation-duration:1ms}}@keyframes editor-document-bar__slide-in-right{0%{opacity:0;transform:translateX(15%)}to{opacity:1;transform:translateX(0)}}@keyframes editor-document-bar__slide-in-left{0%{opacity:0;transform:translateX(-15%)}to{opacity:1;transform:translateX(0)}}.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:#ddd;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{align-items:flex-start;background:none;border:none;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;margin:0 -1px 0 0;padding:2px 1px 2px 5px;text-align:right}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.document-outline__level{background:#ddd;border-radius:3px;color:#1e1e1e;font-size:13px;margin-left:4px;padding:1px 6px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.editor-document-outline.has-no-headings{color:#757575;text-align:center}.editor-document-outline.has-no-headings>svg{margin-top:28px}.editor-document-outline.has-no-headings>p{padding-left:32px;padding-right:32px}.editor-document-tools{align-items:center;display:inline-flex}.editor-document-tools .editor-document-tools__left>.components-button{display:none}@media (min-width:600px){.editor-document-tools .editor-document-tools__left>.components-button{display:inline-flex}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle{display:inline-flex}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.editor-document-tools .block-editor-list-view{display:none}@media (min-width:600px){.editor-document-tools .block-editor-list-view{display:flex}}.editor-document-tools .editor-document-tools__left>.components-button.has-icon,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon{height:32px;min-width:32px;padding:4px}.editor-document-tools .editor-document-tools__left>.components-button.has-icon.is-pressed,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:focus:not(:disabled),.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid #0000}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:before,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:before{display:none}.editor-document-tools__left{align-items:center;display:inline-flex;gap:8px;margin-left:8px;padding-right:16px}@media (min-width:782px){.editor-document-tools__left{padding-right:20px}}@media (min-width:1280px){.editor-document-tools__left{padding-left:8px}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.has-icon{height:32px;min-width:32px;padding:0;width:32px}.show-icon-labels .editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.has-icon{height:32px;padding:0 8px;width:auto}.show-icon-labels .editor-document-tools__left>*+*{margin-right:8px}.components-editor-notices__dismissible,.components-editor-notices__pinned{color:#1e1e1e;left:0;position:relative;right:0;top:0}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{border-bottom:1px solid #0003;box-sizing:border-box;min-height:60px;padding:0 12px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.entities-saved-states__panel-header{background:#fff;border-bottom:1px solid #ddd;box-sizing:border-box;height:60px;padding-left:8px;padding-right:8px}.entities-saved-states__text-prompt{padding:16px 16px 4px}.entities-saved-states__text-prompt .entities-saved-states__text-prompt--header{display:block;margin-bottom:12px}.entities-saved-states__description-heading{font-size:13px}.entities-saved-states__changes{color:#757575;font-size:12px;list-style:disc;margin:8px 16px 0}.entities-saved-states__changes li{margin-bottom:4px}.editor-error-boundary{box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,-.1px 11.5px 16.4px -.5px #00000026;margin:60px auto auto;max-width:780px;padding:20px}.editor-inserter-sidebar{box-sizing:border-box;display:flex;flex-direction:column;height:100%}.editor-inserter-sidebar *,.editor-inserter-sidebar :after,.editor-inserter-sidebar :before{box-sizing:inherit}.editor-inserter-sidebar__header{display:flex;justify-content:flex-end;padding-left:8px;padding-top:8px}.editor-inserter-sidebar__content{height:calc(100% - 44px)}@media (min-width:782px){.editor-inserter-sidebar__content{height:100%}}.editor-list-view-sidebar{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.editor-list-view-sidebar{width:350px}}.editor-list-view-sidebar .edit-post-editor__document-overview-panel__header{border-bottom:1px solid #ddd;display:flex}.editor-list-view-sidebar .editor-list-view-sidebar__close-button{align-self:center;background:#fff;margin-left:8px;order:1}.editor-list-view-sidebar__tabs-tablist{box-sizing:border-box;flex-grow:1}.editor-list-view-sidebar__tabs-tab{margin-bottom:-1px;width:50%}.editor-list-view-sidebar__tabs-tabpanel{height:calc(100% - 47px)}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{height:100%;overflow:auto;padding:8px 6px;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-track,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-track{background-color:initial}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.editor-list-view-sidebar__list-view-container>.document-outline:focus-within::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:hover::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.editor-list-view-sidebar__list-view-container>.document-outline:focus,.editor-list-view-sidebar__list-view-container>.document-outline:focus-within,.editor-list-view-sidebar__list-view-container>.document-outline:hover,.editor-list-view-sidebar__list-view-panel-content:focus,.editor-list-view-sidebar__list-view-panel-content:focus-within,.editor-list-view-sidebar__list-view-panel-content:hover{scrollbar-color:#949494 #0000}@media (hover:none){.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{scrollbar-color:#949494 #0000}}.editor-list-view-sidebar__list-view-container{display:flex;flex-direction:column;height:100%}.editor-list-view-sidebar__tab-panel{height:100%}.editor-list-view-sidebar__outline{border-bottom:1px solid #ddd;display:flex;flex-direction:column;gap:8px;padding:16px}.editor-list-view-sidebar__outline>div>span:first-child{display:inline-block;width:90px}.editor-list-view-sidebar__outline>div>span{color:#757575;font-size:12px;line-height:1.4}.editor-post-author__panel{padding-top:8px}.editor-post-author__panel .editor-post-panel__row-control>div{width:100%}.editor-post-excerpt__textarea{margin-bottom:10px;width:100%}.editor-post-featured-image{padding:0}.editor-post-featured-image .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__container{position:relative}.editor-post-featured-image__container:focus .editor-post-featured-image__actions,.editor-post-featured-image__container:focus-within .editor-post-featured-image__actions,.editor-post-featured-image__container:hover .editor-post-featured-image__actions{opacity:1}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{box-shadow:0 0 0 0 var(--wp-admin-theme-color);display:flex;justify-content:center;max-height:150px;overflow:hidden;padding:0;transition:all .1s ease-out;width:100%}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-delay:0s;transition-duration:0s}}.editor-post-featured-image__preview{height:auto}.editor-post-featured-image__preview .components-responsive-wrapper{background:#f0f0f0;width:100%}.editor-post-featured-image__toggle{background-color:#f0f0f0;border-radius:2px;line-height:20px;min-height:90px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background:#ddd;color:#1e1e1e}.editor-post-featured-image__actions{bottom:0;opacity:0;padding:8px;position:absolute;transition:opacity 50ms ease-out}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__actions{transition-delay:0s;transition-duration:0s}}.editor-post-featured-image__action{-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background:#ffffffbf;flex-grow:1;justify-content:center}[class].editor-post-format__suggestion{margin:4px 0 0}.editor-post-last-revision__title{font-weight:500;width:100%}.editor-post-last-revision__title.components-button.has-icon{height:100%;justify-content:space-between}.editor-post-last-revision__title.components-button.has-icon:active,.editor-post-last-revision__title.components-button.has-icon:hover{background:#f0f0f0}.editor-post-last-revision__title.components-button.has-icon:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-panel__body.is-opened.editor-post-last-revision__panel{height:48px;padding:0}.components-panel__body.is-opened.editor-post-last-revision__panel .editor-post-last-revision__title.components-button.components-button{padding:16px}.editor-post-locked-modal__buttons{margin-top:24px}.editor-post-locked-modal__avatar{border-radius:2px;margin-top:16px;min-width:auto!important}.editor-post-panel__row{align-items:flex-start!important;justify-content:flex-start!important;min-height:40px;width:100%}.editor-post-panel__row-label{align-items:center;display:flex;flex-shrink:0;min-height:40px;width:30%}.editor-post-panel__row-control{align-items:center;display:flex;flex-grow:1;min-height:40px}.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{align-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #ddd;display:flex;height:61px;padding-left:16px;padding-right:16px}.editor-post-publish-panel__header .components-button{justify-content:center;width:100%}.editor-post-publish-panel__header .has-icon{margin-right:auto;width:auto}.components-site-card{align-items:center;display:flex;margin:16px 0}.components-site-icon{border:none;border-radius:2px;height:36px;margin-left:12px;width:36px}.components-site-name{display:block;font-size:14px}.components-site-home{color:#757575;display:block;font-size:12px}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{padding-left:4px}.editor-post-publish-panel__header-cancel-button{padding-right:4px}.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{align-items:center;display:inline-flex}.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:#1e1e1e}.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 #e0e0e0;border-top:none}.post-publish-panel__postpublish-buttons{align-content:space-between;display:flex;flex-wrap:wrap;gap:16px}.post-publish-panel__postpublish-buttons .components-button{flex:1;justify-content:center}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address-container{align-items:flex-end;display:flex;margin-bottom:16px}.post-publish-panel__postpublish-post-address-container .post-publish-panel__postpublish-post-address{flex:1}.post-publish-panel__postpublish-post-address-container input[readonly]{background:#f0f0f0;border-color:#ccc;height:36px;overflow:hidden;padding:12px;text-overflow:ellipsis}.post-publish-panel__postpublish-post-address__copy-button-wrap{flex-shrink:0;margin-right:16px}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}@media screen and (max-width:782px){.post-publish-panel__postpublish-post-address__button-wrap .components-button{height:40px}}.editor-post-saved-state{align-items:center;color:#757575;display:flex;overflow:hidden;padding:12px 4px;white-space:nowrap;width:28px}.editor-post-saved-state.is-saved[aria-disabled=true],.editor-post-saved-state.is-saved[aria-disabled=true]:hover,.editor-post-saved-state.is-saving[aria-disabled=true],.editor-post-saved-state.is-saving[aria-disabled=true]:hover{background:#0000;color:#757575}.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{padding:8px 12px;text-indent:inherit;width:auto}.editor-post-saved-state svg{margin-left:0}}.editor-post-save-draft.has-text.has-icon svg{margin-left:0}.editor-post-schedule__panel-dropdown{width:100%}.editor-post-schedule__dialog .components-popover__content{min-width:320px;padding:16px}.editor-post-schedule__dialog-toggle.components-button{display:block;height:auto;line-height:16px;max-width:100%;overflow:hidden;padding:10px 12px;text-align:right;white-space:unset}.editor-post-sync-status__value{padding:6px 12px 6px 0}.editor-post-taxonomies__hierarchical-terms-list{margin-right:-6px;margin-top:-6px;max-height:14em;overflow:auto;padding-right:6px;padding-top:6px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-choice:last-child{margin-bottom:4px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-right:16px;margin-top:8px}.editor-post-taxonomies__flat-term-most-used .editor-post-taxonomies__flat-term-most-used-label{margin-bottom:4px}.editor-post-taxonomies__flat-term-most-used-list{margin:0}.editor-post-taxonomies__flat-term-most-used-list li{display:inline-block;margin-left:8px}.editor-post-taxonomies__flat-term-most-used-list .components-button{font-size:12px}.editor-post-template__swap-template-modal{z-index:1000001}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px;padding-top:2px}@media (min-width:782px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{column-count:4}}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__item:not(:focus):not(:hover) .block-editor-block-preview__container{box-shadow:0 0 0 1px #ddd}.editor-post-template__dropdown .components-popover__content{min-width:240px}.editor-post-template__dropdown .components-button.is-pressed,.editor-post-template__dropdown .components-button.is-pressed:hover{background:inherit;color:inherit}@media (min-width:782px){.editor-post-template__create-form{width:320px}}.editor-post-template__classic-theme-dropdown{padding:8px}.edit-post-text-editor__body textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:16px!important;line-height:2.4;margin:0;min-height:200px;overflow:hidden;padding:16px;resize:none;transition:border .1s ease-out,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.edit-post-text-editor__body textarea.editor-post-text-editor{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.edit-post-text-editor__body textarea.editor-post-text-editor{font-size:15px!important;padding:24px}}.edit-post-text-editor__body textarea.editor-post-text-editor:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}.edit-post-text-editor__body textarea.editor-post-text-editor::-webkit-input-placeholder{color:#1e1e1e9e}.edit-post-text-editor__body textarea.editor-post-text-editor::-moz-placeholder{color:#1e1e1e9e;opacity:1}.edit-post-text-editor__body textarea.editor-post-text-editor:-ms-input-placeholder{color:#1e1e1e9e}.edit-post-text-editor__body .editor-post-title.is-raw-text{margin-bottom:24px;margin-top:2px;max-width:none}.editor-post-url__panel-dropdown{width:100%}.components-button.editor-post-url__panel-toggle{display:block;max-width:100%;overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap}.editor-post-url__panel-dialog .editor-post-url{margin:8px;min-width:248px}.editor-post-url__link-label{font-size:13px;font-weight:400;margin:0}.editor-post-url__link{direction:ltr;word-break:break-word}.editor-post-url__link-slug{font-weight:600}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{border:1px solid #1e1e1e;border-radius:2px;border-radius:50%;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;margin-left:12px;margin-top:2px;padding:6px 8px;transition:box-shadow .1s linear;transition:none;width:24px}@media (prefers-reduced-motion:reduce){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-webkit-input-placeholder{color:#1e1e1e9e}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:-ms-input-placeholder{color:#1e1e1e9e}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{height:20px;width:20px}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:8px;margin:0;transform:translate(-7px,7px);width:8px}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{transform:translate(-5px,5px)}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.editor-post-visibility__fieldset .editor-post-visibility__info{color:#757575;margin-right:36px;margin-top:.5em}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__info{margin-right:32px}}.editor-post-visibility__fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__info{margin-bottom:0}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-right:32px;padding:6px 8px;transition:box-shadow .1s linear;width:calc(100% - 32px)}@media (prefers-reduced-motion:reduce){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-webkit-input-placeholder{color:#1e1e1e9e}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:-ms-input-placeholder{color:#1e1e1e9e}.editor-post-trash.components-button{flex-grow:1;justify-content:center}.editor-preview-dropdown__button-external{display:flex;justify-content:space-between;width:100%}.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:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{color:#1e1e1e;display:flex;flex-basis:33%;flex-direction:column;font-size:13px;margin-bottom:0;margin-top:8px;padding-left:8px}.table-of-contents__count:nth-child(4n){padding-left:0}.table-of-contents__number,.table-of-contents__popover .word-count{color:#1e1e1e;font-size:21px;font-weight:400;line-height:30px}.table-of-contents__title{display:block;font-size:15px;font-weight:600;margin-top:20px}.editor-template-validation-notice{align-items:center;display:flex;justify-content:space-between}.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--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{margin:0;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;gap:8px;padding-left:12px}.interface-complementary-area-header .interface-complementary-area-header__title{margin:0}.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;height:100%;overflow:auto}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;font-weight:500;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}.interface-complementary-area__fill{height:100%}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)){position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none;position:relative}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;position:absolute;right:0;top:0;width:auto;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important}}.interface-interface-skeleton__sidebar{border-top:1px solid #e0e0e0;overflow:hidden}@media (min-width:782px){.interface-interface-skeleton__sidebar{box-shadow:1px 1px 0 0 rgba(0,0,0,.133);outline:1px solid #0000}}.interface-interface-skeleton__secondary-sidebar{border-top:1px solid #e0e0e0;left:0}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar{box-shadow:-1px 1px 0 0 rgba(0,0,0,.133);outline:1px solid #0000}}.interface-interface-skeleton__header{box-shadow:0 1px 0 0 rgba(0,0,0,.133);color:#1e1e1e;flex-shrink:0;height:auto;outline:1px solid #0000;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-pinned-items{display:flex;gap:8px}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{display:flex}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-pinned-items .components-button{display:flex}}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{content:"";font:normal 20px/1 dashicons;margin-left:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{flex-grow:0;flex-shrink:0;height:24px;margin-left:8px;max-width:none;width:24px}.editor-autocompleters__user .editor-autocompleters__user-name{flex-grow:1;flex-shrink:0;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user .editor-autocompleters__user-slug{color:#757575;flex-grow:0;flex-shrink:0;margin-right:8px;max-width:100px;overflow:none;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:var(--wp-admin-theme-color)}.editor-block-manager__no-results{font-style:italic;padding:24px 0;text-align:center}.editor-block-manager__search{margin:16px 0}.editor-block-manager__disabled-blocks-count{background-color:#fff;border:1px solid #ddd;border-width:1px 0;box-shadow:32px 0 0 0 #fff,-32px 0 0 0 #fff;padding:8px;position:sticky;text-align:center;top:-5px;z-index:2}.editor-block-manager__disabled-blocks-count~.editor-block-manager__results .editor-block-manager__category-title{top:31px}.editor-block-manager__disabled-blocks-count .is-link{margin-right:12px}.editor-block-manager__category{margin:0 0 24px}.editor-block-manager__category-title{background-color:#fff;padding:16px 0;position:sticky;top:-4px;z-index:1}.editor-block-manager__category-title .components-checkbox-control__label{font-weight:600}.editor-block-manager__checklist{margin-top:0}.editor-block-manager__category-title,.editor-block-manager__checklist-item{border-bottom:1px solid #ddd}.editor-block-manager__checklist-item{align-items:center;display:flex;justify-content:space-between;margin-bottom:0;padding:8px 16px 8px 0}.components-modal__content .editor-block-manager__checklist-item.components-checkbox-control__input-container{margin:0 8px}.editor-block-manager__checklist-item .block-editor-block-icon{margin-left:10px;fill:#1e1e1e}.editor-block-manager__results{border-top:1px solid #ddd}.editor-block-manager__disabled-blocks-count+.editor-block-manager__results{border-top-width:0}.editor-collapsible-block-toolbar{align-items:center;display:flex;height:60px;overflow:hidden}.editor-collapsible-block-toolbar .block-editor-block-contextual-toolbar{background:#0000;border-bottom:0;height:100%}.editor-collapsible-block-toolbar .block-editor-block-toolbar{height:100%;padding-top:15px}.editor-collapsible-block-toolbar .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.editor-collapsible-block-toolbar:after{background-color:#ddd;content:"";height:24px;margin-left:7px;width:1px}.editor-collapsible-block-toolbar .components-toolbar,.editor-collapsible-block-toolbar .components-toolbar-group{border-left:none;position:relative}.editor-collapsible-block-toolbar .components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar:after{background-color:#ddd;content:"";height:24px;left:-1px;position:absolute;top:4px;width:1px}.editor-collapsible-block-toolbar .components-toolbar .components-toolbar-group.components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{display:none}.editor-collapsible-block-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width:600px){.editor-collapsible-block-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{height:40px;position:relative;top:-5px}}.editor-collapsible-block-toolbar.is-collapsed{display:none}.editor-collapsible-block-toolbar__toggle{margin-right:2px}.editor-create-template-part-modal{z-index:1000001}@media (min-width:600px){.editor-create-template-part-modal .components-modal__frame{max-width:500px}}.editor-create-template-part-modal__area-radio-group{border:1px solid #757575;border-radius:2px;width:100%}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio{display:block;height:100%;padding:12px;text-align:right;width:100%}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover{background-color:inherit;border-bottom:1px solid #757575;border-radius:0;margin:0}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:not(:focus){box-shadow:none}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover:focus,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover:focus,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:focus{border-bottom:1px solid #fff}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:last-of-type{border-bottom:none}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:not(:hover),.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:not(:hover) .editor-create-template-part-modal__option-label div,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio[aria-checked=true] .editor-create-template-part-modal__option-label div{color:#949494}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio .editor-create-template-part-modal__option-label{padding-top:4px;white-space:normal}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio .editor-create-template-part-modal__option-label div{font-size:12px;padding-top:4px}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio .editor-create-template-part-modal__checkbox{margin-right:auto;min-width:24px}.editor-content-only-settings-menu__description{min-width:235px;padding:8px}.editor-blog-title-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-document-bar{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;height:32px;justify-content:space-between;min-width:0;width:min(100%,416px)}.editor-document-bar:hover{background-color:#e0e0e0}.editor-document-bar .components-button{border-radius:4px;transition:all .1s ease-out}@media (prefers-reduced-motion:reduce){.editor-document-bar .components-button{transition-delay:0s;transition-duration:0s}}.editor-document-bar .components-button:hover{background:#e0e0e0}@media (min-width:960px){.editor-document-bar{width:min(100%,450px)}}.editor-document-bar__command{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.editor-document-bar__title{align-items:center;color:#1e1e1e;display:flex;flex-grow:1;gap:4px;justify-content:center;overflow:hidden}@media (min-width:782px){.editor-document-bar__title{padding-right:24px}}.editor-document-bar.is-global .editor-document-bar__title{color:var(--wp-block-synced-color)}.editor-document-bar__title .block-editor-block-icon{flex-shrink:0;min-width:24px}.editor-document-bar__title h1{color:currentColor;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-document-bar__shortcut{color:#2f2f2f;display:none;min-width:24px}@media (min-width:782px){.editor-document-bar__shortcut{display:initial}}.editor-document-bar__back.components-button.has-icon.has-text{color:#757575;flex-shrink:0;gap:0;min-width:36px;position:absolute;z-index:1}.editor-document-bar__back.components-button.has-icon.has-text:hover{background-color:initial;color:#1e1e1e}.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:#ddd;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{align-items:flex-start;background:none;border:none;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;margin:0 -1px 0 0;padding:2px 1px 2px 5px;text-align:right}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.document-outline__level{background:#ddd;border-radius:3px;color:#1e1e1e;font-size:13px;margin-left:4px;padding:1px 6px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.editor-document-outline.has-no-headings{color:#757575;text-align:center}.editor-document-outline.has-no-headings>svg{margin-top:28px}.editor-document-outline.has-no-headings>p{padding-left:32px;padding-right:32px}.editor-document-tools{align-items:center;display:inline-flex}.editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{display:none}@media (min-width:782px){.editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{display:inline-flex}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle{display:inline-flex}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.editor-document-tools .block-editor-list-view{display:none}@media (min-width:600px){.editor-document-tools .block-editor-list-view{display:flex}}.editor-document-tools .editor-document-tools__left>.components-button.has-icon,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon{height:32px;min-width:32px;padding:4px}.editor-document-tools .editor-document-tools__left>.components-button.has-icon.is-pressed,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:focus:not(:disabled),.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid #0000}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:before,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:before{display:none}.editor-document-tools__left{align-items:center;display:inline-flex;gap:8px;margin-left:8px;padding-right:16px}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.has-icon{height:32px;min-width:32px;padding:0;width:32px}.show-icon-labels .editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.has-icon{height:32px;padding:0 8px;width:auto}.show-icon-labels .editor-document-tools__left>*+*{margin-right:8px}.editor-editor-interface .entities-saved-states__panel-header{height:61px}.components-editor-notices__dismissible,.components-editor-notices__pinned{color:#1e1e1e;left:0;position:relative;right:0;top:0}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{border-bottom:1px solid #0003;box-sizing:border-box;min-height:60px;padding:0 12px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.entities-saved-states__panel-header{background:#fff;border-bottom:1px solid #ddd;box-sizing:border-box;height:60px;padding-left:8px;padding-right:8px}.entities-saved-states__text-prompt{padding:16px 16px 4px}.entities-saved-states__text-prompt .entities-saved-states__text-prompt--header{display:block;margin-bottom:12px}.entities-saved-states__description-heading{font-size:13px}.entities-saved-states__changes{color:#757575;font-size:12px;list-style:disc;margin:8px 16px 0}.entities-saved-states__changes li{margin-bottom:4px}.editor-error-boundary{box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,-.1px 11.5px 16.4px -.5px #00000026;margin:60px auto auto;max-width:780px;padding:20px}.editor-header{align-items:center;background:#fff;display:flex;flex-wrap:wrap;height:60px;justify-content:space-between;max-width:100vw}@media (min-width:280px){.editor-header{flex-wrap:nowrap}}.editor-header__toolbar{align-items:center;display:flex;flex-grow:3;flex-shrink:8;overflow:hidden;padding:2px 0}@media (min-width:782px){.editor-header__toolbar{padding-left:var(--wp-admin-border-width-focus)}}.editor-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.editor-header__toolbar .table-of-contents{display:block}}.editor-header__center{display:flex;flex-grow:1;justify-content:center;min-width:0}.editor-header__center.is-collapsed{display:none}.editor-header__settings{align-items:center;display:inline-flex;flex-wrap:nowrap;gap:8px;padding-left:4px}@media (min-width:600px){.editor-header__settings{padding-left:8px}}.show-icon-labels .editor-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.show-icon-labels .editor-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.show-icon-labels .editor-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label)}.show-icon-labels .editor-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:initial}.show-icon-labels .editor-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{background-color:initial;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.show-icon-labels .editor-header .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg{display:block}.show-icon-labels .editor-header .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after{content:none}.show-icon-labels .editor-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.show-icon-labels .editor-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .editor-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{content:none}.show-icon-labels .editor-header__toolbar .block-editor-block-mover{border-right:none}.show-icon-labels .editor-header__toolbar .block-editor-block-mover:before{background-color:#ddd;content:"";height:24px;margin-right:8px;margin-top:4px;width:1px}.show-icon-labels .editor-header__toolbar .block-editor-block-mover .block-editor-block-mover__move-button-container:before{background:#ddd;right:calc(50% + 1px);width:calc(100% - 24px)}.show-icon-labels.interface-pinned-items{border-bottom:1px solid #ccc;display:block;margin:0 -12px;padding:6px 12px 12px}.show-icon-labels.interface-pinned-items>.components-button.has-icon{justify-content:flex-start;margin:0;padding:6px 8px 6px 6px;width:14.625rem}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-right:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-left:8px}@media (min-width:600px){.editor-header__post-preview-button{display:none}}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header{border-bottom:none}.editor-editor-interface.is-distraction-free .editor-header{background-color:#fff;border-bottom:1px solid #e0e0e0;position:absolute;width:100%}.editor-editor-interface.is-distraction-free .editor-header>.edit-post-header__settings>.edit-post-header__post-preview-button{visibility:hidden}.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.editor-preview-dropdown,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.interface-pinned-items,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__toolbar .editor-document-tools__document-overview-toggle{display:none}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within{opacity:1!important}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within div{transform:translateX(0) translateZ(0)!important}.editor-editor-interface.is-distraction-free .components-editor-notices__dismissible{position:absolute;z-index:35}.components-popover.more-menu-dropdown__content{z-index:99998}.editor-inserter-sidebar{box-sizing:border-box;display:flex;flex-direction:column;height:100%}.editor-inserter-sidebar *,.editor-inserter-sidebar :after,.editor-inserter-sidebar :before{box-sizing:inherit}.editor-inserter-sidebar__content{height:calc(100% - 44px)}@media (min-width:782px){.editor-inserter-sidebar__content{height:100%}}.editor-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.editor-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.editor-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.editor-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.editor-keyboard-shortcut-help-modal__shortcut:empty{display:none}.editor-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.editor-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.editor-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.editor-keyboard-shortcut-help-modal__shortcut-key-combination+.editor-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.editor-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.editor-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.editor-list-view-sidebar{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.editor-list-view-sidebar{width:350px}}.editor-list-view-sidebar .editor-list-view-sidebar__header{border-bottom:1px solid #ddd;display:flex}.editor-list-view-sidebar .editor-list-view-sidebar__close-button{align-self:center;background:#fff;margin-left:12px;order:1}.editor-list-view-sidebar__tabs-tablist{box-sizing:border-box;flex-grow:1}.editor-list-view-sidebar__tabs-tab{margin-bottom:-1px;width:50%}.editor-list-view-sidebar__tabs-tabpanel{height:calc(100% - 47px)}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{height:100%;overflow:auto;padding:4px;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-track,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-track{background-color:initial}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.editor-list-view-sidebar__list-view-container>.document-outline:focus-within::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:hover::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.editor-list-view-sidebar__list-view-container>.document-outline:focus,.editor-list-view-sidebar__list-view-container>.document-outline:focus-within,.editor-list-view-sidebar__list-view-container>.document-outline:hover,.editor-list-view-sidebar__list-view-panel-content:focus,.editor-list-view-sidebar__list-view-panel-content:focus-within,.editor-list-view-sidebar__list-view-panel-content:hover{scrollbar-color:#949494 #0000}@media (hover:none){.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{scrollbar-color:#949494 #0000}}.editor-list-view-sidebar__list-view-container{display:flex;flex-direction:column;height:100%}.editor-list-view-sidebar__tab-panel{height:100%}.editor-list-view-sidebar__outline{border-bottom:1px solid #ddd;display:flex;flex-direction:column;gap:8px;padding:16px}.editor-list-view-sidebar__outline>div>span:first-child{display:inline-block;width:90px}.editor-list-view-sidebar__outline>div>span{color:#757575;font-size:12px;line-height:1.4}.editor-post-order__panel,.editor-post-parent__panel{padding-top:8px}.editor-post-order__panel .editor-post-panel__row-control>div,.editor-post-parent__panel .editor-post-panel__row-control>div{width:100%}.editor-post-order__panel-dialog .editor-post-order,.editor-post-order__panel-dialog .editor-post-parent,.editor-post-parent__panel-dialog .editor-post-order,.editor-post-parent__panel-dialog .editor-post-parent{margin:8px}.editor-post-order__panel-dialog .components-popover__content,.editor-post-parent__panel-dialog .components-popover__content{min-width:320px}.editor-post-author__panel{padding-top:8px}.editor-post-author__panel .editor-post-panel__row-control>div{width:100%}.editor-post-author__panel-dialog .editor-post-author{margin:8px;min-width:248px}.editor-action-modal{z-index:1000001}.editor-post-card-panel__content{flex-grow:1}.editor-post-card-panel__title{width:100%}.editor-post-card-panel__title.editor-post-card-panel__title{align-items:center;column-gap:8px;display:flex;flex-wrap:wrap;margin:0;padding:2px 0;row-gap:4px;word-break:break-word}.editor-post-card-panel__icon{flex:0 0 24px;height:24px;width:24px}.editor-post-card-panel__header{display:flex;justify-content:space-between}.editor-post-card-panel.has-description .editor-post-card-panel__header{margin-bottom:8px}.editor-post-card-panel__icon.is-sync{fill:var(--wp-block-synced-color)}.editor-post-card-panel__title-badge{background:#f0f0f0;border-radius:2px;color:#757575;display:inline-block;flex-shrink:0;font-size:12px;font-weight:400;line-height:20px;padding:0 4px}.editor-post-content-information{color:#757575}.editor-post-content-information .components-text{color:inherit}.editor-post-discussion__panel-dialog .editor-post-discussion{margin:8px;min-width:248px}.editor-post-discussion__panel-dialog .editor-post-discussion .components-radio-control__option{align-items:flex-start}.editor-post-discussion__panel-dialog .editor-post-discussion .components-radio-control__label .components-text{display:block;margin-top:4px}.editor-post-discussion__panel-toggle .components-text{color:inherit}.editor-post-discussion__panel-dialog .components-popover__content{min-width:320px}.editor-post-excerpt__textarea{margin-bottom:10px;width:100%}.editor-post-excerpt__dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-post-featured-image{padding:0}.editor-post-featured-image .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.editor-post-featured-image__container{position:relative}.editor-post-featured-image__container:focus .editor-post-featured-image__actions,.editor-post-featured-image__container:focus-within .editor-post-featured-image__actions,.editor-post-featured-image__container:hover .editor-post-featured-image__actions{opacity:1}.editor-post-featured-image__container .components-drop-zone__content{border-radius:2px}.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{box-shadow:0 0 0 0 var(--wp-admin-theme-color);display:flex;justify-content:center;min-height:40px;outline-offset:-1px;overflow:hidden;padding:0;transition:all .1s ease-out;width:100%}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-delay:0s;transition-duration:0s}}.editor-post-featured-image__preview{height:auto;outline:1px solid #0000001a}.editor-post-featured-image__preview .editor-post-featured-image__preview-image{aspect-ratio:2/1;object-fit:cover;object-position:50% 50%;width:100%}.editor-post-featured-image__toggle{border-radius:2px;box-shadow:inset 0 0 0 1px #ccc;height:100%;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__actions{bottom:0;opacity:0;padding:8px;position:absolute;transition:opacity 50ms ease-out}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__actions{transition-delay:0s;transition-duration:0s}}.editor-post-featured-image__action{-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background:#ffffffbf;flex-grow:1;justify-content:center}[class].editor-post-format__suggestion{margin:4px 0 0}.editor-post-format__dialog .editor-post-format__dialog-content{margin:8px;min-width:248px}.editor-post-format__options .components-base-control__field>.components-v-stack{gap:12px}.editor-post-last-edited-panel{color:#757575}.editor-post-last-edited-panel .components-text{color:inherit}.editor-post-last-revision__title{font-weight:500;width:100%}.editor-post-last-revision__title.components-button.has-icon{height:100%;justify-content:space-between}.editor-post-last-revision__title.components-button.has-icon:active,.editor-post-last-revision__title.components-button.has-icon:hover{background:#f0f0f0}.editor-post-last-revision__title.components-button.has-icon:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-panel__body.is-opened.editor-post-last-revision__panel{height:48px;padding:0}.components-panel__body.is-opened.editor-post-last-revision__panel .editor-post-last-revision__title.components-button.components-button{padding:16px}.editor-private-post-last-revision__button{display:inline-block}.editor-post-locked-modal__buttons{margin-top:24px}.editor-post-locked-modal__avatar{border-radius:2px;margin-top:16px;min-width:auto!important}.editor-post-panel__row{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.editor-post-panel__row-label{align-items:center;display:flex;flex-shrink:0;-webkit-hyphens:auto;hyphens:auto;line-height:20px;min-height:32px;padding:6px 0;width:30%}.editor-post-panel__row-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.editor-post-panel__row-control .components-button{height:auto;max-width:100%;min-height:32px;text-align:right;text-wrap:balance;text-wrap:pretty;white-space:normal}.editor-post-panel__row-control .components-dropdown{max-width:100%}.editor-post-panel__section{padding:16px}.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{align-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #ddd;display:flex;height:61px;padding-left:16px;padding-right:16px}.editor-post-publish-panel__header .components-button{justify-content:center;width:100%}.editor-post-publish-panel__header .has-icon{margin-right:auto;width:auto}.components-site-card{align-items:center;display:flex;margin:16px 0}.components-site-icon{border:none;border-radius:2px;height:36px;margin-left:12px;width:36px}.components-site-name{display:block;font-size:14px}.components-site-home{color:#757575;display:block;font-size:12px}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{justify-content:center;padding-left:4px}.editor-post-publish-panel__header-cancel-button{padding-right:4px}.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{align-items:center;display:inline-flex}.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:#1e1e1e}.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-panel__body-title .components-button{align-items:flex-start;text-wrap:balance;text-wrap:pretty}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e0e0e0;border-top:none}.post-publish-panel__postpublish-buttons{align-content:space-between;display:flex;flex-wrap:wrap;gap:16px}.post-publish-panel__postpublish-buttons .components-button{flex:1;justify-content:center}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address-container{align-items:flex-end;display:flex;margin-bottom:16px}.post-publish-panel__postpublish-post-address-container .post-publish-panel__postpublish-post-address{flex:1}.post-publish-panel__postpublish-post-address-container input[readonly]{background:#f0f0f0;border-color:#ccc;height:36px;overflow:hidden;padding:12px;text-overflow:ellipsis}.post-publish-panel__postpublish-post-address__copy-button-wrap{flex-shrink:0;margin-right:16px}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}@media screen and (max-width:782px){.post-publish-panel__postpublish-post-address__button-wrap .components-button{height:40px}}.editor-post-publish-panel{background:#fff;bottom:0;left:0;overflow:auto;position:fixed;right:0;top:46px;z-index:100001}@media (min-width:782px){.editor-post-publish-panel{animation:editor-post-publish-panel__slide-in-animation .1s forwards;border-right:1px solid #ddd;right:auto;top:32px;transform:translateX(-100%);width:281px;z-index:99998}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.editor-post-publish-panel{animation-delay:0s;animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .editor-post-publish-panel{top:0}[role=region]:focus .editor-post-publish-panel{transform:translateX(0)}}@keyframes editor-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.editor-post-saved-state{align-items:center;color:#757575;display:flex;overflow:hidden;padding:12px 4px;white-space:nowrap;width:28px}.editor-post-saved-state.is-saved[aria-disabled=true],.editor-post-saved-state.is-saved[aria-disabled=true]:hover,.editor-post-saved-state.is-saving[aria-disabled=true],.editor-post-saved-state.is-saving[aria-disabled=true]:hover{background:#0000;color:#757575}.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{padding:8px 12px;text-indent:inherit;width:auto}.editor-post-saved-state svg{margin-left:0}}.editor-post-save-draft.has-text.has-icon svg{margin-left:0}.editor-post-schedule__panel-dropdown{width:100%}.editor-post-schedule__dialog .components-popover__content{min-width:320px;padding:16px}.editor-post-slug{align-items:stretch;display:flex;flex-direction:column}.editor-post-status{max-width:100%}.editor-post-status.is-read-only{padding:6px 12px}.editor-change-status__password-fieldset,.editor-change-status__publish-date-wrapper{border-top:1px solid #e0e0e0;padding-top:16px}.editor-change-status__content .components-popover__content{min-width:320px;padding:16px}.editor-change-status__content .editor-change-status__options .components-base-control__field>.components-v-stack{gap:12px}.editor-change-status__content .editor-change-status__options .components-radio-control__option{align-items:flex-start}.editor-change-status__content .editor-change-status__options label .components-text{display:block;margin-top:4px}.editor-change-status__content .editor-change-status__password-legend{margin-bottom:8px;padding:0}.editor-post-sticky__toggle-control{padding:6px 12px}.editor-post-sync-status__value{padding:6px 12px 6px 0}.editor-post-taxonomies__hierarchical-terms-list{margin-right:-6px;margin-top:-6px;max-height:14em;overflow:auto;padding-right:6px;padding-top:6px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-choice:last-child{margin-bottom:4px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-right:16px;margin-top:8px}.editor-post-taxonomies__flat-term-most-used .editor-post-taxonomies__flat-term-most-used-label{margin-bottom:4px}.editor-post-taxonomies__flat-term-most-used-list{margin:0}.editor-post-taxonomies__flat-term-most-used-list li{display:inline-block;margin-left:8px}.editor-post-taxonomies__flat-term-most-used-list .components-button{font-size:12px}.editor-post-template__swap-template-modal{z-index:1000001}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px;padding-top:2px}@media (min-width:782px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{column-count:4}}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.editor-post-template__dropdown .components-popover__content{min-width:240px}.editor-post-template__dropdown .components-button.is-pressed,.editor-post-template__dropdown .components-button.is-pressed:hover{background:inherit;color:inherit}@media (min-width:782px){.editor-post-template__create-form{width:320px}}.editor-post-template__classic-theme-dropdown{padding:8px}textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:16px!important;line-height:2.4;margin:0;min-height:200px;overflow:hidden;padding:16px;resize:none;transition:border .1s ease-out,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){textarea.editor-post-text-editor{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){textarea.editor-post-text-editor{font-size:15px!important;padding:24px}}textarea.editor-post-text-editor:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}textarea.editor-post-text-editor::-webkit-input-placeholder{color:#1e1e1e9e}textarea.editor-post-text-editor::-moz-placeholder{color:#1e1e1e9e;opacity:1}textarea.editor-post-text-editor:-ms-input-placeholder{color:#1e1e1e9e}.editor-post-title.is-raw-text{margin-bottom:24px;margin-top:2px;max-width:none}.editor-post-url__panel-dropdown{width:100%}.editor-post-url__panel-dialog .editor-post-url{margin:8px;min-width:248px}.editor-post-url__link{color:#757575;direction:ltr;margin-top:4px;word-break:break-word}.editor-post-url__link-slug{font-weight:600}.editor-post-url__input input.components-input-control__input{padding-inline-start:0!important}.editor-post-url__panel-toggle{word-break:break-word}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{border:1px solid #1e1e1e;border-radius:2px;border-radius:50%;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;margin-left:12px;margin-top:2px;max-width:24px;min-width:24px;padding:6px 8px;transition:box-shadow .1s linear;transition:none;width:24px}@media (prefers-reduced-motion:reduce){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-webkit-input-placeholder{color:#1e1e1e9e}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:-ms-input-placeholder{color:#1e1e1e9e}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{height:20px;max-width:20px;min-width:20px;width:20px}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:8px;margin:0;transform:translate(-7px,7px);width:8px}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{transform:translate(-5px,5px)}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.editor-post-visibility__fieldset .editor-post-visibility__info{color:#757575;margin-right:36px;margin-top:.5em}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__info{margin-right:32px}}.editor-post-visibility__fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__info{margin-bottom:0}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-right:32px;padding:6px 8px;transition:box-shadow .1s linear;width:calc(100% - 32px)}@media (prefers-reduced-motion:reduce){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-webkit-input-placeholder{color:#1e1e1e9e}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:-ms-input-placeholder{color:#1e1e1e9e}.editor-posts-per-page-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-post-trash.components-button{flex-grow:1;justify-content:center}.editor-preview-dropdown__button-external{display:flex;justify-content:space-between;width:100%}.editor-resizable-editor.is-resizable{margin:0 auto;overflow:visible}.editor-resizable-editor__resize-handle{appearance:none;background:none;border:0;border-radius:2px;bottom:0;cursor:ew-resize;height:100px;margin:auto 0;outline:none;padding:0;position:absolute;top:0;width:12px}.editor-resizable-editor__resize-handle:after{background-color:#75757566;border-radius:2px;bottom:16px;content:"";left:0;position:absolute;right:4px;top:16px;width:4px}.editor-resizable-editor__resize-handle.is-left{right:-18px}.editor-resizable-editor__resize-handle.is-right{left:-18px}.editor-resizable-editor__resize-handle:active,.editor-resizable-editor__resize-handle:focus,.editor-resizable-editor__resize-handle:hover{opacity:1}.editor-resizable-editor__resize-handle:active:after,.editor-resizable-editor__resize-handle:focus:after,.editor-resizable-editor__resize-handle:hover:after{background-color:var(--wp-admin-theme-color)}.editor-layout__toggle-entities-saved-states-panel,.editor-layout__toggle-publish-panel,.editor-layout__toggle-sidebar-panel{background-color:#fff;border:1px dotted #ddd;bottom:auto;box-sizing:border-box;display:flex;height:auto!important;justify-content:center;left:0;padding:24px;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.interface-interface-skeleton__actions:focus .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .editor-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-publish-panel{bottom:0;top:auto}.editor-start-page-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.editor-start-page-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.editor-start-page-options__modal-content .block-editor-block-patterns-list{column-count:4}}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column;margin-bottom:24px}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{min-height:100px}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{width:100%}.editor-start-template-options__modal .editor-start-template-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:92px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.editor-start-template-options__modal .block-editor-block-patterns-list{padding-bottom:92px}.editor-start-template-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.editor-start-template-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.editor-start-template-options__modal-content .block-editor-block-patterns-list{column-count:4}}.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{display:none}.components-panel__header.editor-sidebar__panel-tabs{padding-left:12px;padding-right:0}.components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{height:24px;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{display:flex}}.editor-post-summary .components-v-stack:empty{display:none}.editor-site-discussion-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-site-discussion__options .components-radio-control__option{align-items:flex-start}.editor-site-discussion__options label .components-text{display:block;margin-top:4px}.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:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{color:#1e1e1e;display:flex;flex-basis:33%;flex-direction:column;font-size:13px;margin-bottom:0;margin-top:8px;padding-left:8px}.table-of-contents__count:nth-child(4n){padding-left:0}.table-of-contents__number,.table-of-contents__popover .word-count{color:#1e1e1e;font-size:21px;font-weight:400;line-height:30px}.table-of-contents__title{display:block;font-size:15px;font-weight:600;margin-top:20px}.editor-template-areas__list,.editor-template-areas__list>li{margin:0}.editor-template-areas__item{width:100%}.editor-template-areas__item.components-button.has-icon{padding:0}h3.components-heading.editor-template-areas__title{font-weight:500;margin:0 0 8px}.editor-text-editor{background-color:#fff;flex-grow:1;position:relative;width:100%}.editor-text-editor .editor-post-title.is-raw-text textarea,.editor-text-editor .editor-post-title:not(.is-raw-text){border:1px solid #949494;border-radius:0;font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400;line-height:1.4;max-width:none;padding:16px}@media (min-width:600px){.editor-text-editor .editor-post-title.is-raw-text textarea,.editor-text-editor .editor-post-title:not(.is-raw-text){padding:24px}}.editor-text-editor .editor-post-title.is-raw-text textarea:focus,.editor-text-editor .editor-post-title:not(.is-raw-text):focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.editor-text-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:0 12px 12px;width:100%}@media (min-width:960px){.editor-text-editor__body{padding:0 24px 24px}}.editor-text-editor__toolbar{background:#fffc;display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.editor-text-editor__toolbar{padding:12px}}@media (min-width:960px){.editor-text-editor__toolbar{padding:12px 24px}}.editor-text-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 0 0 auto}.editor-visual-editor{align-items:center;background-color:#ddd;display:block;height:100%;isolation:isolate;position:relative}.editor-visual-editor.is-resizable{max-height:100%}.editor-visual-editor.has-padding{padding:24px 24px 0}.editor-visual-editor.is-iframed{overflow:hidden}.editor-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}.editor-visual-editor .components-button.has-icon,.editor-visual-editor .components-button.is-tertiary{padding:6px} \ 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 a092bc3..c99c9fc 100644
--- a/wp-includes/css/dist/editor/style.css
+++ b/wp-includes/css/dist/editor/style.css
@@ -9,7 +9,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -17,6 +17,354 @@
}
}
+.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{
+ margin:0;
+ 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;
+ gap:8px;
+ padding-right:12px;
+}
+.interface-complementary-area-header .interface-complementary-area-header__title{
+ margin:0;
+}
+.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;
+ height:100%;
+ overflow:auto;
+}
+@media (min-width:600px){
+ .interface-complementary-area{
+ -webkit-overflow-scrolling:touch;
+ }
+}
+@media (min-width:782px){
+ .interface-complementary-area{
+ width:280px;
+ }
+}
+.interface-complementary-area .components-panel{
+ border:none;
+ position:relative;
+ z-index:0;
+}
+.interface-complementary-area .components-panel__header{
+ position:sticky;
+ top:0;
+ z-index:1;
+}
+.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{
+ top:48px;
+}
+@media (min-width:782px){
+ .interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{
+ top:0;
+ }
+}
+.interface-complementary-area p:not(.components-base-control__help){
+ margin-top:0;
+}
+.interface-complementary-area h2{
+ color:#1e1e1e;
+ font-size:13px;
+ font-weight:500;
+ margin-bottom:1.5em;
+}
+.interface-complementary-area h3{
+ color:#1e1e1e;
+ font-size:11px;
+ font-weight:500;
+ margin-bottom:1.5em;
+ text-transform:uppercase;
+}
+.interface-complementary-area hr{
+ border-bottom:1px solid #f0f0f0;
+ border-top:none;
+ margin:1.5em 0;
+}
+.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{
+ box-shadow:none;
+ margin-bottom:1.5em;
+}
+.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{
+ margin-bottom:0;
+}
+.interface-complementary-area .block-editor-skip-to-selected-block:focus{
+ bottom:10px;
+ left:auto;
+ right:10px;
+ top:auto;
+}
+
+.interface-complementary-area__fill{
+ height:100%;
+}
+
+@media (min-width:782px){
+ body.js.is-fullscreen-mode{
+ height:calc(100% + 32px);
+ margin-top:-32px;
+ }
+ body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{
+ display:none;
+ }
+ body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{
+ margin-left:0;
+ }
+}
+
+html.interface-interface-skeleton__html-container{
+ position:fixed;
+ width:100%;
+}
+@media (min-width:782px){
+ html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)){
+ position:static;
+ width:auto;
+ }
+}
+
+.interface-interface-skeleton{
+ bottom:0;
+ display:flex;
+ flex-direction:row;
+ height:auto;
+ max-height:100%;
+ position:fixed;
+ right:0;
+ top:46px;
+}
+@media (min-width:783px){
+ .interface-interface-skeleton{
+ top:32px;
+ }
+ .is-fullscreen-mode .interface-interface-skeleton{
+ top:0;
+ }
+}
+
+.interface-interface-skeleton__editor{
+ display:flex;
+ flex:0 1 100%;
+ flex-direction:column;
+ overflow:hidden;
+}
+
+.interface-interface-skeleton{
+ left:0;
+}
+@media (min-width:783px){
+ .interface-interface-skeleton{
+ left:160px;
+ }
+}
+@media (min-width:783px){
+ .auto-fold .interface-interface-skeleton{
+ left:36px;
+ }
+}
+@media (min-width:961px){
+ .auto-fold .interface-interface-skeleton{
+ left:160px;
+ }
+}
+.folded .interface-interface-skeleton{
+ left:0;
+}
+@media (min-width:783px){
+ .folded .interface-interface-skeleton{
+ left:36px;
+ }
+}
+
+body.is-fullscreen-mode .interface-interface-skeleton{
+ left:0 !important;
+}
+
+.interface-interface-skeleton__body{
+ display:flex;
+ flex-grow:1;
+ overflow:auto;
+ overscroll-behavior-y:none;
+ position:relative;
+}
+@media (min-width:782px){
+ .has-footer .interface-interface-skeleton__body{
+ padding-bottom:25px;
+ }
+}
+
+.interface-interface-skeleton__content{
+ display:flex;
+ flex-direction:column;
+ flex-grow:1;
+ overflow:auto;
+ z-index:20;
+}
+@media (min-width:782px){
+ .interface-interface-skeleton__content{
+ z-index:auto;
+ }
+}
+
+.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
+ background:#fff;
+ bottom:0;
+ color:#1e1e1e;
+ flex-shrink:0;
+ left:0;
+ position:absolute;
+ top:0;
+ width:auto;
+ z-index:100000;
+}
+@media (min-width:782px){
+ .interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
+ position:relative !important;
+ }
+}
+
+.interface-interface-skeleton__sidebar{
+ border-top:1px solid #e0e0e0;
+ overflow:hidden;
+}
+@media (min-width:782px){
+ .interface-interface-skeleton__sidebar{
+ box-shadow:-1px 1px 0 0 rgba(0,0,0,.133);
+ outline:1px solid #0000;
+ }
+}
+
+.interface-interface-skeleton__secondary-sidebar{
+ border-top:1px solid #e0e0e0;
+ right:0;
+}
+@media (min-width:782px){
+ .interface-interface-skeleton__secondary-sidebar{
+ box-shadow:1px 1px 0 0 rgba(0,0,0,.133);
+ outline:1px solid #0000;
+ }
+}
+
+.interface-interface-skeleton__header{
+ box-shadow:0 1px 0 0 rgba(0,0,0,.133);
+ color:#1e1e1e;
+ flex-shrink:0;
+ height:auto;
+ outline:1px solid #0000;
+ z-index:30;
+}
+
+.interface-interface-skeleton__footer{
+ background-color:#fff;
+ border-top:1px solid #e0e0e0;
+ bottom:0;
+ color:#1e1e1e;
+ display:none;
+ flex-shrink:0;
+ height:auto;
+ left:0;
+ position:absolute;
+ width:100%;
+ z-index:90;
+}
+@media (min-width:782px){
+ .interface-interface-skeleton__footer{
+ display:flex;
+ }
+}
+.interface-interface-skeleton__footer .block-editor-block-breadcrumb{
+ align-items:center;
+ background:#fff;
+ display:flex;
+ font-size:13px;
+ height:24px;
+ padding:0 18px;
+ z-index:30;
+}
+
+.interface-interface-skeleton__actions{
+ background:#fff;
+ bottom:auto;
+ color:#1e1e1e;
+ left:auto;
+ position:fixed !important;
+ right:0;
+ top:-9999em;
+ width:100vw;
+ z-index:100000;
+}
+@media (min-width:782px){
+ .interface-interface-skeleton__actions{
+ width:280px;
+ }
+}
+.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{
+ bottom:0;
+ top:auto;
+}
+.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{
+ top:46px;
+}
+@media (min-width:782px){
+ .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{
+ border-left:1px solid #ddd;
+ top:32px;
+ }
+ .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{
+ top:0;
+ }
+}
+
+.interface-pinned-items{
+ display:flex;
+ gap:8px;
+}
+.interface-pinned-items .components-button{
+ display:none;
+ margin:0;
+}
+.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{
+ display:flex;
+}
+.interface-pinned-items .components-button svg{
+ max-height:24px;
+ max-width:24px;
+}
+@media (min-width:600px){
+ .interface-pinned-items .components-button{
+ display:flex;
+ }
+}
+
.editor-autocompleters__user .editor-autocompleters__no-avatar:before{
content:"";
font:normal 20px/1 dashicons;
@@ -127,6 +475,132 @@
border-top-width:0;
}
+.editor-collapsible-block-toolbar{
+ align-items:center;
+ display:flex;
+ height:60px;
+ overflow:hidden;
+}
+.editor-collapsible-block-toolbar .block-editor-block-contextual-toolbar{
+ background:#0000;
+ border-bottom:0;
+ height:100%;
+}
+.editor-collapsible-block-toolbar .block-editor-block-toolbar{
+ height:100%;
+ padding-top:15px;
+}
+.editor-collapsible-block-toolbar .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){
+ height:32px;
+}
+.editor-collapsible-block-toolbar:after{
+ background-color:#ddd;
+ content:"";
+ height:24px;
+ margin-right:7px;
+ width:1px;
+}
+.editor-collapsible-block-toolbar .components-toolbar,.editor-collapsible-block-toolbar .components-toolbar-group{
+ border-right:none;
+ position:relative;
+}
+.editor-collapsible-block-toolbar .components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar:after{
+ background-color:#ddd;
+ content:"";
+ height:24px;
+ position:absolute;
+ right:-1px;
+ top:4px;
+ width:1px;
+}
+.editor-collapsible-block-toolbar .components-toolbar .components-toolbar-group.components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{
+ display:none;
+}
+.editor-collapsible-block-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{
+ height:32px;
+ overflow:visible;
+}
+@media (min-width:600px){
+ .editor-collapsible-block-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{
+ height:40px;
+ position:relative;
+ top:-5px;
+ }
+}
+.editor-collapsible-block-toolbar.is-collapsed{
+ display:none;
+}
+
+.editor-collapsible-block-toolbar__toggle{
+ margin-left:2px;
+}
+
+.editor-create-template-part-modal{
+ z-index:1000001;
+}
+@media (min-width:600px){
+ .editor-create-template-part-modal .components-modal__frame{
+ max-width:500px;
+ }
+}
+
+.editor-create-template-part-modal__area-radio-group{
+ border:1px solid #757575;
+ border-radius:2px;
+ width:100%;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio{
+ display:block;
+ height:100%;
+ padding:12px;
+ text-align:left;
+ width:100%;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover{
+ background-color:inherit;
+ border-bottom:1px solid #757575;
+ border-radius:0;
+ margin:0;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:not(:focus){
+ box-shadow:none;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover:focus,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover:focus,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:focus{
+ border-bottom:1px solid #fff;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:last-of-type{
+ border-bottom:none;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:not(:hover),.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio[aria-checked=true]{
+ color:#1e1e1e;
+ cursor:auto;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:not(:hover) .editor-create-template-part-modal__option-label div,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio[aria-checked=true] .editor-create-template-part-modal__option-label div{
+ color:#949494;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio .editor-create-template-part-modal__option-label{
+ padding-top:4px;
+ white-space:normal;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio .editor-create-template-part-modal__option-label div{
+ font-size:12px;
+ padding-top:4px;
+}
+.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio .editor-create-template-part-modal__checkbox{
+ margin-left:auto;
+ min-width:24px;
+}
+
+.editor-content-only-settings-menu__description{
+ min-width:235px;
+ padding:8px;
+}
+
+.editor-blog-title-dropdown__content .components-popover__content{
+ min-width:320px;
+ padding:16px;
+}
+
.editor-document-bar{
align-items:center;
background:#f0f0f0;
@@ -135,17 +609,23 @@
height:32px;
justify-content:space-between;
min-width:0;
- width:min(100%, 450px);
+ width:min(100%, 416px);
}
.editor-document-bar:hover{
background-color:#e0e0e0;
}
.editor-document-bar .components-button{
border-radius:4px;
+ transition:all .1s ease-out;
+}
+@media (prefers-reduced-motion:reduce){
+ .editor-document-bar .components-button{
+ transition-delay:0s;
+ transition-duration:0s;
+ }
}
.editor-document-bar .components-button:hover{
background:#e0e0e0;
- color:var(--wp-block-synced-color);
}
@media (min-width:960px){
.editor-document-bar{
@@ -160,16 +640,20 @@
}
.editor-document-bar__title{
- color:#2f2f2f;
+ align-items:center;
+ color:#1e1e1e;
+ display:flex;
flex-grow:1;
+ gap:4px;
+ justify-content:center;
overflow:hidden;
}
-@media (min-width:600px){
+@media (min-width:782px){
.editor-document-bar__title{
- padding-left:32px;
+ padding-left:24px;
}
}
-.editor-document-bar.is-global .editor-document-bar__title,.editor-document-bar__title:hover{
+.editor-document-bar.is-global .editor-document-bar__title{
color:var(--wp-block-synced-color);
}
.editor-document-bar__title .block-editor-block-icon{
@@ -178,34 +662,16 @@
}
.editor-document-bar__title h1{
color:currentColor;
- max-width:50%;
+ max-width:70%;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}
-.editor-document-bar.is-animated.has-back-button .editor-document-bar__title{
- animation:editor-document-bar__slide-in-left .3s;
-}
-@media (prefers-reduced-motion:reduce){
- .editor-document-bar.is-animated.has-back-button .editor-document-bar__title{
- animation-delay:0s;
- animation-duration:1ms;
- }
-}
-.editor-document-bar.is-animated .editor-document-bar__title{
- animation:editor-document-bar__slide-in-right .3s;
-}
-@media (prefers-reduced-motion:reduce){
- .editor-document-bar.is-animated .editor-document-bar__title{
- animation-delay:0s;
- animation-duration:1ms;
- }
-}
.editor-document-bar__shortcut{
color:#2f2f2f;
display:none;
- min-width:32px;
+ min-width:24px;
}
@media (min-width:782px){
.editor-document-bar__shortcut{
@@ -223,38 +689,9 @@
}
.editor-document-bar__back.components-button.has-icon.has-text:hover{
background-color:initial;
- color:var(--wp-block-synced-color);
-}
-.editor-document-bar.is-animated .editor-document-bar__back.components-button.has-icon.has-text{
- animation:editor-document-bar__slide-in-left .3s;
-}
-@media (prefers-reduced-motion:reduce){
- .editor-document-bar.is-animated .editor-document-bar__back.components-button.has-icon.has-text{
- animation-delay:0s;
- animation-duration:1ms;
- }
+ color:#1e1e1e;
}
-@keyframes editor-document-bar__slide-in-right{
- 0%{
- opacity:0;
- transform:translateX(-15%);
- }
- to{
- opacity:1;
- transform:translateX(0);
- }
-}
-@keyframes editor-document-bar__slide-in-left{
- 0%{
- opacity:0;
- transform:translateX(15%);
- }
- to{
- opacity:1;
- transform:translateX(0);
- }
-}
.document-outline{
margin:20px 0;
}
@@ -342,11 +779,11 @@
align-items:center;
display:inline-flex;
}
-.editor-document-tools .editor-document-tools__left>.components-button{
+.editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{
display:none;
}
-@media (min-width:600px){
- .editor-document-tools .editor-document-tools__left>.components-button{
+@media (min-width:782px){
+ .editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{
display:inline-flex;
}
}
@@ -396,16 +833,6 @@
margin-right:8px;
padding-left:16px;
}
-@media (min-width:782px){
- .editor-document-tools__left{
- padding-left:20px;
- }
-}
-@media (min-width:1280px){
- .editor-document-tools__left{
- padding-right:8px;
- }
-}
.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.has-icon{
height:32px;
@@ -423,6 +850,10 @@
margin-left:8px;
}
+.editor-editor-interface .entities-saved-states__panel-header{
+ height:61px;
+}
+
.components-editor-notices__dismissible,.components-editor-notices__pinned{
color:#1e1e1e;
left:0;
@@ -478,6 +909,179 @@
padding:20px;
}
+.editor-header{
+ align-items:center;
+ background:#fff;
+ display:flex;
+ flex-wrap:wrap;
+ height:60px;
+ justify-content:space-between;
+ max-width:100vw;
+}
+@media (min-width:280px){
+ .editor-header{
+ flex-wrap:nowrap;
+ }
+}
+
+.editor-header__toolbar{
+ align-items:center;
+ display:flex;
+ flex-grow:3;
+ flex-shrink:8;
+ overflow:hidden;
+ padding:2px 0;
+}
+@media (min-width:782px){
+ .editor-header__toolbar{
+ padding-right:var(--wp-admin-border-width-focus);
+ }
+}
+.editor-header__toolbar .table-of-contents{
+ display:none;
+}
+@media (min-width:600px){
+ .editor-header__toolbar .table-of-contents{
+ display:block;
+ }
+}
+
+.editor-header__center{
+ display:flex;
+ flex-grow:1;
+ justify-content:center;
+ min-width:0;
+}
+.editor-header__center.is-collapsed{
+ display:none;
+}
+.editor-header__settings{
+ align-items:center;
+ display:inline-flex;
+ flex-wrap:nowrap;
+ gap:8px;
+ padding-right:4px;
+}
+@media (min-width:600px){
+ .editor-header__settings{
+ padding-right:8px;
+ }
+}
+.show-icon-labels .editor-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{
+ width:auto;
+}
+.show-icon-labels .editor-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{
+ display:none;
+}
+.show-icon-labels .editor-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{
+ content:attr(aria-label);
+}
+.show-icon-labels .editor-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{
+ background-color:initial;
+}
+.show-icon-labels .editor-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{
+ background-color:initial;
+ box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);
+}
+.show-icon-labels .editor-header .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg{
+ display:block;
+}
+.show-icon-labels .editor-header .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after{
+ content:none;
+}
+.show-icon-labels .editor-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{
+ display:block;
+}
+.show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{
+ padding-left:8px;
+ padding-right:8px;
+}
+@media (min-width:600px){
+ .show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{
+ padding-left:12px;
+ padding-right:12px;
+ }
+}
+.show-icon-labels .editor-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .editor-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{
+ content:none;
+}
+
+.show-icon-labels .editor-header__toolbar .block-editor-block-mover{
+ border-left:none;
+}
+.show-icon-labels .editor-header__toolbar .block-editor-block-mover:before{
+ background-color:#ddd;
+ content:"";
+ height:24px;
+ margin-left:8px;
+ margin-top:4px;
+ width:1px;
+}
+.show-icon-labels .editor-header__toolbar .block-editor-block-mover .block-editor-block-mover__move-button-container:before{
+ background:#ddd;
+ left:calc(50% + 1px);
+ width:calc(100% - 24px);
+}
+
+.show-icon-labels.interface-pinned-items{
+ border-bottom:1px solid #ccc;
+ display:block;
+ margin:0 -12px;
+ padding:6px 12px 12px;
+}
+.show-icon-labels.interface-pinned-items>.components-button.has-icon{
+ justify-content:flex-start;
+ margin:0;
+ padding:6px 6px 6px 8px;
+ width:14.625rem;
+}
+.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{
+ display:block;
+ max-width:24px;
+}
+.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{
+ padding-left:40px;
+}
+.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{
+ margin-right:8px;
+}
+
+@media (min-width:600px){
+ .editor-header__post-preview-button{
+ display:none;
+ }
+}
+
+.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header{
+ border-bottom:none;
+}
+.editor-editor-interface.is-distraction-free .editor-header{
+ background-color:#fff;
+ border-bottom:1px solid #e0e0e0;
+ position:absolute;
+ width:100%;
+}
+.editor-editor-interface.is-distraction-free .editor-header>.edit-post-header__settings>.edit-post-header__post-preview-button{
+ visibility:hidden;
+}
+.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.editor-preview-dropdown,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.interface-pinned-items,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__toolbar .editor-document-tools__document-overview-toggle{
+ display:none;
+}
+.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within{
+ opacity:1 !important;
+}
+.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within div{
+ transform:translateX(0) translateZ(0) !important;
+}
+.editor-editor-interface.is-distraction-free .components-editor-notices__dismissible{
+ position:absolute;
+ z-index:35;
+}
+
+.components-popover.more-menu-dropdown__content{
+ z-index:99998;
+}
+
.editor-inserter-sidebar{
box-sizing:border-box;
display:flex;
@@ -488,13 +1092,6 @@
box-sizing:inherit;
}
-.editor-inserter-sidebar__header{
- display:flex;
- justify-content:flex-end;
- padding-right:8px;
- padding-top:8px;
-}
-
.editor-inserter-sidebar__content{
height:calc(100% - 44px);
}
@@ -504,6 +1101,54 @@
}
}
+.editor-keyboard-shortcut-help-modal__section{
+ margin:0 0 2rem;
+}
+.editor-keyboard-shortcut-help-modal__section-title{
+ font-size:.9rem;
+ font-weight:600;
+}
+.editor-keyboard-shortcut-help-modal__shortcut{
+ align-items:baseline;
+ border-top:1px solid #ddd;
+ display:flex;
+ margin-bottom:0;
+ padding:.6rem 0;
+}
+.editor-keyboard-shortcut-help-modal__shortcut:last-child{
+ border-bottom:1px solid #ddd;
+}
+.editor-keyboard-shortcut-help-modal__shortcut:empty{
+ display:none;
+}
+.editor-keyboard-shortcut-help-modal__shortcut-term{
+ font-weight:600;
+ margin:0 0 0 1rem;
+ text-align:right;
+}
+.editor-keyboard-shortcut-help-modal__shortcut-description{
+ flex:1;
+ flex-basis:auto;
+ margin:0;
+}
+.editor-keyboard-shortcut-help-modal__shortcut-key-combination{
+ background:none;
+ display:block;
+ margin:0;
+ padding:0;
+}
+.editor-keyboard-shortcut-help-modal__shortcut-key-combination+.editor-keyboard-shortcut-help-modal__shortcut-key-combination{
+ margin-top:10px;
+}
+.editor-keyboard-shortcut-help-modal__shortcut-key{
+ border-radius:8%;
+ margin:0 .2rem;
+ padding:.25rem .5rem;
+}
+.editor-keyboard-shortcut-help-modal__shortcut-key:last-child{
+ margin:0 0 0 .2rem;
+}
+
.editor-list-view-sidebar{
display:flex;
flex-direction:column;
@@ -514,14 +1159,14 @@
width:350px;
}
}
-.editor-list-view-sidebar .edit-post-editor__document-overview-panel__header{
+.editor-list-view-sidebar .editor-list-view-sidebar__header{
border-bottom:1px solid #ddd;
display:flex;
}
.editor-list-view-sidebar .editor-list-view-sidebar__close-button{
align-self:center;
background:#fff;
- margin-right:8px;
+ margin-right:12px;
order:1;
}
@@ -542,7 +1187,7 @@
.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{
height:100%;
overflow:auto;
- padding:8px 6px;
+ padding:4px;
scrollbar-color:#0000 #0000;
scrollbar-gutter:stable both-edges;
scrollbar-gutter:auto;
@@ -601,6 +1246,20 @@
line-height:1.4;
}
+.editor-post-order__panel,.editor-post-parent__panel{
+ padding-top:8px;
+}
+.editor-post-order__panel .editor-post-panel__row-control>div,.editor-post-parent__panel .editor-post-panel__row-control>div{
+ width:100%;
+}
+
+.editor-post-order__panel-dialog .editor-post-order,.editor-post-order__panel-dialog .editor-post-parent,.editor-post-parent__panel-dialog .editor-post-order,.editor-post-parent__panel-dialog .editor-post-parent{
+ margin:8px;
+}
+.editor-post-order__panel-dialog .components-popover__content,.editor-post-parent__panel-dialog .components-popover__content{
+ min-width:320px;
+}
+
.editor-post-author__panel{
padding-top:8px;
}
@@ -609,11 +1268,97 @@
width:100%;
}
+.editor-post-author__panel-dialog .editor-post-author{
+ margin:8px;
+ min-width:248px;
+}
+
+.editor-action-modal{
+ z-index:1000001;
+}
+
+.editor-post-card-panel__content{
+ flex-grow:1;
+}
+.editor-post-card-panel__title{
+ width:100%;
+}
+.editor-post-card-panel__title.editor-post-card-panel__title{
+ align-items:center;
+ column-gap:8px;
+ display:flex;
+ flex-wrap:wrap;
+ margin:0;
+ padding:2px 0;
+ row-gap:4px;
+ word-break:break-word;
+}
+.editor-post-card-panel__icon{
+ flex:0 0 24px;
+ height:24px;
+ width:24px;
+}
+.editor-post-card-panel__header{
+ display:flex;
+ justify-content:space-between;
+}
+.editor-post-card-panel.has-description .editor-post-card-panel__header{
+ margin-bottom:8px;
+}
+
+.editor-post-card-panel__icon.is-sync{
+ fill:var(--wp-block-synced-color);
+}
+
+.editor-post-card-panel__title-badge{
+ background:#f0f0f0;
+ border-radius:2px;
+ color:#757575;
+ display:inline-block;
+ flex-shrink:0;
+ font-size:12px;
+ font-weight:400;
+ line-height:20px;
+ padding:0 4px;
+}
+
+.editor-post-content-information{
+ color:#757575;
+}
+.editor-post-content-information .components-text{
+ color:inherit;
+}
+
+.editor-post-discussion__panel-dialog .editor-post-discussion{
+ margin:8px;
+ min-width:248px;
+}
+.editor-post-discussion__panel-dialog .editor-post-discussion .components-radio-control__option{
+ align-items:flex-start;
+}
+.editor-post-discussion__panel-dialog .editor-post-discussion .components-radio-control__label .components-text{
+ display:block;
+ margin-top:4px;
+}
+
+.editor-post-discussion__panel-toggle .components-text{
+ color:inherit;
+}
+
+.editor-post-discussion__panel-dialog .components-popover__content{
+ min-width:320px;
+}
+
.editor-post-excerpt__textarea{
margin-bottom:10px;
width:100%;
}
+.editor-post-excerpt__dropdown__content .components-popover__content{
+ min-width:320px;
+ padding:16px;
+}
+
.editor-post-featured-image{
padding:0;
}
@@ -624,10 +1369,6 @@
position:absolute;
top:50%;
}
-.editor-post-featured-image .components-responsive-wrapper__content{
- max-width:100%;
- width:auto;
-}
.editor-post-featured-image__container{
position:relative;
@@ -635,12 +1376,24 @@
.editor-post-featured-image__container:focus .editor-post-featured-image__actions,.editor-post-featured-image__container:focus-within .editor-post-featured-image__actions,.editor-post-featured-image__container:hover .editor-post-featured-image__actions{
opacity:1;
}
+.editor-post-featured-image__container .components-drop-zone__content{
+ border-radius:2px;
+}
+.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner{
+ align-items:center;
+ display:flex;
+ gap:8px;
+}
+.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{
+ margin:0;
+}
.editor-post-featured-image__preview,.editor-post-featured-image__toggle{
box-shadow:0 0 0 0 var(--wp-admin-theme-color);
display:flex;
justify-content:center;
- max-height:150px;
+ min-height:40px;
+ outline-offset:-1px;
overflow:hidden;
padding:0;
transition:all .1s ease-out;
@@ -655,24 +1408,23 @@
.editor-post-featured-image__preview{
height:auto;
+ outline:1px solid #0000001a;
}
-.editor-post-featured-image__preview .components-responsive-wrapper{
- background:#f0f0f0;
+.editor-post-featured-image__preview .editor-post-featured-image__preview-image{
+ aspect-ratio:2/1;
+ object-fit:cover;
+ object-position:50% 50%;
width:100%;
}
.editor-post-featured-image__toggle{
- background-color:#f0f0f0;
border-radius:2px;
+ box-shadow:inset 0 0 0 1px #ccc;
+ height:100%;
line-height:20px;
- min-height:90px;
padding:8px 0;
text-align:center;
}
-.editor-post-featured-image__toggle:hover{
- background:#ddd;
- color:#1e1e1e;
-}
.editor-post-featured-image__actions{
bottom:0;
@@ -700,6 +1452,22 @@
margin:4px 0 0;
}
+.editor-post-format__dialog .editor-post-format__dialog-content{
+ margin:8px;
+ min-width:248px;
+}
+
+.editor-post-format__options .components-base-control__field>.components-v-stack{
+ gap:12px;
+}
+
+.editor-post-last-edited-panel{
+ color:#757575;
+}
+.editor-post-last-edited-panel .components-text{
+ color:inherit;
+}
+
.editor-post-last-revision__title{
font-weight:500;
width:100%;
@@ -725,6 +1493,10 @@
padding:16px;
}
+.editor-private-post-last-revision__button{
+ display:inline-block;
+}
+
.editor-post-locked-modal__buttons{
margin-top:24px;
}
@@ -738,7 +1510,7 @@
.editor-post-panel__row{
align-items:flex-start !important;
justify-content:flex-start !important;
- min-height:40px;
+ min-height:32px;
width:100%;
}
@@ -746,7 +1518,11 @@
align-items:center;
display:flex;
flex-shrink:0;
- min-height:40px;
+ -webkit-hyphens:auto;
+ hyphens:auto;
+ line-height:20px;
+ min-height:32px;
+ padding:6px 0;
width:30%;
}
@@ -754,20 +1530,23 @@
align-items:center;
display:flex;
flex-grow:1;
- min-height:40px;
+ min-height:32px;
}
-
-.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-panel__row-control .components-button{
+ height:auto;
+ max-width:100%;
+ min-height:32px;
+ text-align:left;
+ text-wrap:balance;
+ text-wrap:pretty;
+ white-space:normal;
+}
+.editor-post-panel__row-control .components-dropdown{
+ max-width:100%;
}
-.editor-post-publish-panel{
- background:#fff;
+.editor-post-panel__section{
+ padding:16px;
}
.editor-post-publish-panel__content{
@@ -832,6 +1611,7 @@
}
.editor-post-publish-panel__header-publish-button{
+ justify-content:center;
padding-right:4px;
}
@@ -877,6 +1657,11 @@
.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{
display:none;
}
+.editor-post-publish-panel__prepublish .components-panel__body-title .components-button{
+ align-items:flex-start;
+ text-wrap:balance;
+ text-wrap:pretty;
+}
.post-publish-panel__postpublish .components-panel__body{
border-bottom:1px solid #e0e0e0;
@@ -936,6 +1721,47 @@
height:40px;
}
}
+.editor-post-publish-panel{
+ background:#fff;
+ bottom:0;
+ left:0;
+ overflow:auto;
+ position:fixed;
+ right:0;
+ top:46px;
+ z-index:100001;
+}
+@media (min-width:782px){
+ .editor-post-publish-panel{
+ animation:editor-post-publish-panel__slide-in-animation .1s forwards;
+ border-left:1px solid #ddd;
+ left:auto;
+ top:32px;
+ transform:translateX(100%);
+ width:281px;
+ z-index:99998;
+ }
+}
+@media (min-width:782px) and (prefers-reduced-motion:reduce){
+ .editor-post-publish-panel{
+ animation-delay:0s;
+ animation-duration:1ms;
+ }
+}
+@media (min-width:782px){
+ body.is-fullscreen-mode .editor-post-publish-panel{
+ top:0;
+ }
+ [role=region]:focus .editor-post-publish-panel{
+ transform:translateX(0);
+ }
+}
+
+@keyframes editor-post-publish-panel__slide-in-animation{
+ to{
+ transform:translateX(0);
+ }
+}
.editor-post-saved-state{
align-items:center;
color:#757575;
@@ -979,15 +1805,45 @@
padding:16px;
}
-.editor-post-schedule__dialog-toggle.components-button{
- display:block;
- height:auto;
- line-height:16px;
+.editor-post-slug{
+ align-items:stretch;
+ display:flex;
+ flex-direction:column;
+}
+
+.editor-post-status{
max-width:100%;
- overflow:hidden;
- padding:10px 12px;
- text-align:left;
- white-space:unset;
+}
+.editor-post-status.is-read-only{
+ padding:6px 12px;
+}
+
+.editor-change-status__password-fieldset,.editor-change-status__publish-date-wrapper{
+ border-top:1px solid #e0e0e0;
+ padding-top:16px;
+}
+
+.editor-change-status__content .components-popover__content{
+ min-width:320px;
+ padding:16px;
+}
+.editor-change-status__content .editor-change-status__options .components-base-control__field>.components-v-stack{
+ gap:12px;
+}
+.editor-change-status__content .editor-change-status__options .components-radio-control__option{
+ align-items:flex-start;
+}
+.editor-change-status__content .editor-change-status__options label .components-text{
+ display:block;
+ margin-top:4px;
+}
+.editor-change-status__content .editor-change-status__password-legend{
+ margin-bottom:8px;
+ padding:0;
+}
+
+.editor-post-sticky__toggle-control{
+ padding:6px 12px;
}
.editor-post-sync-status__value{
@@ -1052,9 +1908,6 @@
.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{
break-inside:avoid-column;
}
-.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__item:not(:focus):not(:hover) .block-editor-block-preview__container{
- box-shadow:0 0 0 1px #ddd;
-}
.editor-post-template__dropdown .components-popover__content{
min-width:240px;
@@ -1074,7 +1927,7 @@
padding:8px;
}
-.edit-post-text-editor__body textarea.editor-post-text-editor{
+textarea.editor-post-text-editor{
border:1px solid #949494;
border-radius:0;
box-shadow:none;
@@ -1091,34 +1944,34 @@
width:100%;
}
@media (prefers-reduced-motion:reduce){
- .edit-post-text-editor__body textarea.editor-post-text-editor{
+ textarea.editor-post-text-editor{
transition-delay:0s;
transition-duration:0s;
}
}
@media (min-width:600px){
- .edit-post-text-editor__body textarea.editor-post-text-editor{
+ textarea.editor-post-text-editor{
font-size:15px !important;
padding:24px;
}
}
-.edit-post-text-editor__body textarea.editor-post-text-editor:focus{
+textarea.editor-post-text-editor:focus{
border-color:var(--wp-admin-theme-color);
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
position:relative;
}
-.edit-post-text-editor__body textarea.editor-post-text-editor::-webkit-input-placeholder{
+textarea.editor-post-text-editor::-webkit-input-placeholder{
color:#1e1e1e9e;
}
-.edit-post-text-editor__body textarea.editor-post-text-editor::-moz-placeholder{
+textarea.editor-post-text-editor::-moz-placeholder{
color:#1e1e1e9e;
opacity:1;
}
-.edit-post-text-editor__body textarea.editor-post-text-editor:-ms-input-placeholder{
+textarea.editor-post-text-editor:-ms-input-placeholder{
color:#1e1e1e9e;
}
-.edit-post-text-editor__body .editor-post-title.is-raw-text{
+.editor-post-title.is-raw-text{
margin-bottom:24px;
margin-top:2px;
max-width:none;
@@ -1128,33 +1981,28 @@
width:100%;
}
-.components-button.editor-post-url__panel-toggle{
- display:block;
- max-width:100%;
- overflow:hidden;
- text-align:left;
- text-overflow:ellipsis;
- white-space:nowrap;
-}
-
.editor-post-url__panel-dialog .editor-post-url{
margin:8px;
min-width:248px;
}
-
-.editor-post-url__link-label{
- font-size:13px;
- font-weight:400;
- margin:0;
-}
.editor-post-url__link{
+ color:#757575;
direction:ltr;
+ margin-top:4px;
word-break:break-word;
}
.editor-post-url__link-slug{
font-weight:600;
}
+.editor-post-url__input input.components-input-control__input{
+ padding-inline-start:0 !important;
+}
+
+.editor-post-url__panel-toggle{
+ word-break:break-word;
+}
+
.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{
border:1px solid #1e1e1e;
border-radius:2px;
@@ -1166,6 +2014,8 @@
line-height:normal;
margin-right:12px;
margin-top:2px;
+ max-width:24px;
+ min-width:24px;
padding:6px 8px;
transition:box-shadow .1s linear;
transition:none;
@@ -1200,6 +2050,8 @@
@media (min-width:600px){
.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{
height:20px;
+ max-width:20px;
+ min-width:20px;
width:20px;
}
}
@@ -1278,6 +2130,11 @@
color:#1e1e1e9e;
}
+.editor-posts-per-page-dropdown__content .components-popover__content{
+ min-width:320px;
+ padding:16px;
+}
+
.editor-post-trash.components-button{
flex-grow:1;
justify-content:center;
@@ -1289,6 +2146,167 @@
width:100%;
}
+.editor-resizable-editor.is-resizable{
+ margin:0 auto;
+ overflow:visible;
+}
+
+.editor-resizable-editor__resize-handle{
+ appearance:none;
+ background:none;
+ border:0;
+ border-radius:2px;
+ bottom:0;
+ cursor:ew-resize;
+ height:100px;
+ margin:auto 0;
+ outline:none;
+ padding:0;
+ position:absolute;
+ top:0;
+ width:12px;
+}
+.editor-resizable-editor__resize-handle:after{
+ background-color:#75757566;
+ border-radius:2px;
+ bottom:16px;
+ content:"";
+ left:4px;
+ position:absolute;
+ right:0;
+ top:16px;
+ width:4px;
+}
+.editor-resizable-editor__resize-handle.is-left{
+ left:-18px;
+}
+.editor-resizable-editor__resize-handle.is-right{
+ right:-18px;
+}
+.editor-resizable-editor__resize-handle:active,.editor-resizable-editor__resize-handle:focus,.editor-resizable-editor__resize-handle:hover{
+ opacity:1;
+}
+.editor-resizable-editor__resize-handle:active:after,.editor-resizable-editor__resize-handle:focus:after,.editor-resizable-editor__resize-handle:hover:after{
+ background-color:var(--wp-admin-theme-color);
+}
+
+.editor-layout__toggle-entities-saved-states-panel,.editor-layout__toggle-publish-panel,.editor-layout__toggle-sidebar-panel{
+ background-color:#fff;
+ border:1px dotted #ddd;
+ bottom:auto;
+ box-sizing:border-box;
+ display:flex;
+ height:auto !important;
+ justify-content:center;
+ left:auto;
+ padding:24px;
+ position:fixed !important;
+ right:0;
+ top:-9999em;
+ width:280px;
+ z-index:100000;
+}
+
+.interface-interface-skeleton__actions:focus .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .editor-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-publish-panel{
+ bottom:0;
+ top:auto;
+}
+
+.editor-start-page-options__modal-content .block-editor-block-patterns-list{
+ column-count:2;
+ column-gap:24px;
+}
+@media (min-width:782px){
+ .editor-start-page-options__modal-content .block-editor-block-patterns-list{
+ column-count:3;
+ }
+}
+@media (min-width:1280px){
+ .editor-start-page-options__modal-content .block-editor-block-patterns-list{
+ column-count:4;
+ }
+}
+.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{
+ break-inside:avoid-column;
+ margin-bottom:24px;
+}
+.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{
+ min-height:100px;
+}
+.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{
+ width:100%;
+}
+
+.editor-start-template-options__modal .editor-start-template-options__modal__actions{
+ background-color:#fff;
+ border-top:1px solid #ddd;
+ bottom:0;
+ height:92px;
+ margin-left:-32px;
+ margin-right:-32px;
+ padding-left:32px;
+ padding-right:32px;
+ position:absolute;
+ width:100%;
+ z-index:1;
+}
+.editor-start-template-options__modal .block-editor-block-patterns-list{
+ padding-bottom:92px;
+}
+
+.editor-start-template-options__modal-content .block-editor-block-patterns-list{
+ column-count:2;
+ column-gap:24px;
+}
+@media (min-width:782px){
+ .editor-start-template-options__modal-content .block-editor-block-patterns-list{
+ column-count:3;
+ }
+}
+@media (min-width:1280px){
+ .editor-start-template-options__modal-content .block-editor-block-patterns-list{
+ column-count:4;
+ }
+}
+.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{
+ break-inside:avoid-column;
+}
+.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{
+ display:none;
+}
+
+.components-panel__header.editor-sidebar__panel-tabs{
+ padding-left:0;
+ padding-right:12px;
+}
+.components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{
+ height:24px;
+ min-width:24px;
+ padding:0;
+}
+@media (min-width:782px){
+ .components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{
+ display:flex;
+ }
+}
+
+.editor-post-summary .components-v-stack:empty{
+ display:none;
+}
+
+.editor-site-discussion-dropdown__content .components-popover__content{
+ min-width:320px;
+ padding:16px;
+}
+
+.editor-site-discussion__options .components-radio-control__option{
+ align-items:flex-start;
+}
+.editor-site-discussion__options label .components-text{
+ display:block;
+ margin-top:4px;
+}
+
.table-of-contents__popover.components-popover .components-popover__content{
min-width:380px;
}
@@ -1355,12 +2373,109 @@
font-weight:600;
margin-top:20px;
}
+.editor-template-areas__list,.editor-template-areas__list>li{
+ margin:0;
+}
+.editor-template-areas__item{
+ width:100%;
+}
+.editor-template-areas__item.components-button.has-icon{
+ padding:0;
+}
-.editor-template-validation-notice{
- align-items:center;
+h3.components-heading.editor-template-areas__title{
+ font-weight:500;
+ margin:0 0 8px;
+}
+
+.editor-text-editor{
+ background-color:#fff;
+ flex-grow:1;
+ position:relative;
+ width:100%;
+}
+.editor-text-editor .editor-post-title.is-raw-text textarea,.editor-text-editor .editor-post-title:not(.is-raw-text){
+ border:1px solid #949494;
+ border-radius:0;
+ font-family:Menlo,Consolas,monaco,monospace;
+ font-size:2.5em;
+ font-weight:400;
+ line-height:1.4;
+ max-width:none;
+ padding:16px;
+}
+@media (min-width:600px){
+ .editor-text-editor .editor-post-title.is-raw-text textarea,.editor-text-editor .editor-post-title:not(.is-raw-text){
+ padding:24px;
+ }
+}
+.editor-text-editor .editor-post-title.is-raw-text textarea:focus,.editor-text-editor .editor-post-title:not(.is-raw-text):focus{
+ border-color:var(--wp-admin-theme-color);
+ box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+}
+
+.editor-text-editor__body{
+ margin-left:auto;
+ margin-right:auto;
+ max-width:1080px;
+ padding:0 12px 12px;
+ width:100%;
+}
+@media (min-width:960px){
+ .editor-text-editor__body{
+ padding:0 24px 24px;
+ }
+}
+
+.editor-text-editor__toolbar{
+ background:#fffc;
display:flex;
- justify-content:space-between;
+ left:0;
+ padding:4px 12px;
+ position:sticky;
+ right:0;
+ top:0;
+ z-index:1;
+}
+@media (min-width:600px){
+ .editor-text-editor__toolbar{
+ padding:12px;
+ }
+}
+@media (min-width:960px){
+ .editor-text-editor__toolbar{
+ padding:12px 24px;
+ }
+}
+.editor-text-editor__toolbar h2{
+ color:#1e1e1e;
+ font-size:13px;
+ line-height:36px;
+ margin:0 auto 0 0;
+}
+
+.editor-visual-editor{
+ align-items:center;
+ background-color:#ddd;
+ display:block;
+ height:100%;
+ isolation:isolate;
+ position:relative;
+}
+.editor-visual-editor.is-resizable{
+ max-height:100%;
+}
+.editor-visual-editor.has-padding{
+ padding:24px 24px 0;
+}
+.editor-visual-editor.is-iframed{
+ overflow:hidden;
+}
+.editor-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;
}
-.editor-template-validation-notice .components-button{
- margin-left:5px;
+.editor-visual-editor .components-button.has-icon,.editor-visual-editor .components-button.is-tertiary{
+ padding:6px;
} \ No newline at end of file
diff --git a/wp-includes/css/dist/editor/style.min.css b/wp-includes/css/dist/editor/style.min.css
index 01f7ef8..062fca4 100644
--- a/wp-includes/css/dist/editor/style.min.css
+++ b/wp-includes/css/dist/editor/style.min.css
@@ -1 +1 @@
-@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{content:"";font:normal 20px/1 dashicons;margin-right:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{flex-grow:0;flex-shrink:0;height:24px;margin-right:8px;max-width:none;width:24px}.editor-autocompleters__user .editor-autocompleters__user-name{flex-grow:1;flex-shrink:0;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user .editor-autocompleters__user-slug{color:#757575;flex-grow:0;flex-shrink:0;margin-left:8px;max-width:100px;overflow:none;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:var(--wp-admin-theme-color)}.editor-block-manager__no-results{font-style:italic;padding:24px 0;text-align:center}.editor-block-manager__search{margin:16px 0}.editor-block-manager__disabled-blocks-count{background-color:#fff;border:1px solid #ddd;border-width:1px 0;box-shadow:-32px 0 0 0 #fff,32px 0 0 0 #fff;padding:8px;position:sticky;text-align:center;top:-5px;z-index:2}.editor-block-manager__disabled-blocks-count~.editor-block-manager__results .editor-block-manager__category-title{top:31px}.editor-block-manager__disabled-blocks-count .is-link{margin-left:12px}.editor-block-manager__category{margin:0 0 24px}.editor-block-manager__category-title{background-color:#fff;padding:16px 0;position:sticky;top:-4px;z-index:1}.editor-block-manager__category-title .components-checkbox-control__label{font-weight:600}.editor-block-manager__checklist{margin-top:0}.editor-block-manager__category-title,.editor-block-manager__checklist-item{border-bottom:1px solid #ddd}.editor-block-manager__checklist-item{align-items:center;display:flex;justify-content:space-between;margin-bottom:0;padding:8px 0 8px 16px}.components-modal__content .editor-block-manager__checklist-item.components-checkbox-control__input-container{margin:0 8px}.editor-block-manager__checklist-item .block-editor-block-icon{margin-right:10px;fill:#1e1e1e}.editor-block-manager__results{border-top:1px solid #ddd}.editor-block-manager__disabled-blocks-count+.editor-block-manager__results{border-top-width:0}.editor-document-bar{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;height:32px;justify-content:space-between;min-width:0;width:min(100%,450px)}.editor-document-bar:hover{background-color:#e0e0e0}.editor-document-bar .components-button{border-radius:4px}.editor-document-bar .components-button:hover{background:#e0e0e0;color:var(--wp-block-synced-color)}@media (min-width:960px){.editor-document-bar{width:min(100%,450px)}}.editor-document-bar__command{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.editor-document-bar__title{color:#2f2f2f;flex-grow:1;overflow:hidden}@media (min-width:600px){.editor-document-bar__title{padding-left:32px}}.editor-document-bar.is-global .editor-document-bar__title,.editor-document-bar__title:hover{color:var(--wp-block-synced-color)}.editor-document-bar__title .block-editor-block-icon{flex-shrink:0;min-width:24px}.editor-document-bar__title h1{color:currentColor;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-document-bar.is-animated.has-back-button .editor-document-bar__title{animation:editor-document-bar__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.editor-document-bar.is-animated.has-back-button .editor-document-bar__title{animation-delay:0s;animation-duration:1ms}}.editor-document-bar.is-animated .editor-document-bar__title{animation:editor-document-bar__slide-in-right .3s}@media (prefers-reduced-motion:reduce){.editor-document-bar.is-animated .editor-document-bar__title{animation-delay:0s;animation-duration:1ms}}.editor-document-bar__shortcut{color:#2f2f2f;display:none;min-width:32px}@media (min-width:782px){.editor-document-bar__shortcut{display:initial}}.editor-document-bar__back.components-button.has-icon.has-text{color:#757575;flex-shrink:0;gap:0;min-width:36px;position:absolute;z-index:1}.editor-document-bar__back.components-button.has-icon.has-text:hover{background-color:initial;color:var(--wp-block-synced-color)}.editor-document-bar.is-animated .editor-document-bar__back.components-button.has-icon.has-text{animation:editor-document-bar__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.editor-document-bar.is-animated .editor-document-bar__back.components-button.has-icon.has-text{animation-delay:0s;animation-duration:1ms}}@keyframes editor-document-bar__slide-in-right{0%{opacity:0;transform:translateX(-15%)}to{opacity:1;transform:translateX(0)}}@keyframes editor-document-bar__slide-in-left{0%{opacity:0;transform:translateX(15%)}to{opacity:1;transform:translateX(0)}}.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:#ddd;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{align-items:flex-start;background:none;border:none;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;margin:0 0 0 -1px;padding:2px 5px 2px 1px;text-align:left}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.document-outline__level{background:#ddd;border-radius:3px;color:#1e1e1e;font-size:13px;margin-right:4px;padding:1px 6px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.editor-document-outline.has-no-headings{color:#757575;text-align:center}.editor-document-outline.has-no-headings>svg{margin-top:28px}.editor-document-outline.has-no-headings>p{padding-left:32px;padding-right:32px}.editor-document-tools{align-items:center;display:inline-flex}.editor-document-tools .editor-document-tools__left>.components-button{display:none}@media (min-width:600px){.editor-document-tools .editor-document-tools__left>.components-button{display:inline-flex}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle{display:inline-flex}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.editor-document-tools .block-editor-list-view{display:none}@media (min-width:600px){.editor-document-tools .block-editor-list-view{display:flex}}.editor-document-tools .editor-document-tools__left>.components-button.has-icon,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon{height:32px;min-width:32px;padding:4px}.editor-document-tools .editor-document-tools__left>.components-button.has-icon.is-pressed,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:focus:not(:disabled),.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid #0000}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:before,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:before{display:none}.editor-document-tools__left{align-items:center;display:inline-flex;gap:8px;margin-right:8px;padding-left:16px}@media (min-width:782px){.editor-document-tools__left{padding-left:20px}}@media (min-width:1280px){.editor-document-tools__left{padding-right:8px}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.has-icon{height:32px;min-width:32px;padding:0;width:32px}.show-icon-labels .editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.has-icon{height:32px;padding:0 8px;width:auto}.show-icon-labels .editor-document-tools__left>*+*{margin-left:8px}.components-editor-notices__dismissible,.components-editor-notices__pinned{color:#1e1e1e;left:0;position:relative;right:0;top:0}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{border-bottom:1px solid #0003;box-sizing:border-box;min-height:60px;padding:0 12px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.entities-saved-states__panel-header{background:#fff;border-bottom:1px solid #ddd;box-sizing:border-box;height:60px;padding-left:8px;padding-right:8px}.entities-saved-states__text-prompt{padding:16px 16px 4px}.entities-saved-states__text-prompt .entities-saved-states__text-prompt--header{display:block;margin-bottom:12px}.entities-saved-states__description-heading{font-size:13px}.entities-saved-states__changes{color:#757575;font-size:12px;list-style:disc;margin:8px 16px 0}.entities-saved-states__changes li{margin-bottom:4px}.editor-error-boundary{box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,.1px 11.5px 16.4px -.5px #00000026;margin:60px auto auto;max-width:780px;padding:20px}.editor-inserter-sidebar{box-sizing:border-box;display:flex;flex-direction:column;height:100%}.editor-inserter-sidebar *,.editor-inserter-sidebar :after,.editor-inserter-sidebar :before{box-sizing:inherit}.editor-inserter-sidebar__header{display:flex;justify-content:flex-end;padding-right:8px;padding-top:8px}.editor-inserter-sidebar__content{height:calc(100% - 44px)}@media (min-width:782px){.editor-inserter-sidebar__content{height:100%}}.editor-list-view-sidebar{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.editor-list-view-sidebar{width:350px}}.editor-list-view-sidebar .edit-post-editor__document-overview-panel__header{border-bottom:1px solid #ddd;display:flex}.editor-list-view-sidebar .editor-list-view-sidebar__close-button{align-self:center;background:#fff;margin-right:8px;order:1}.editor-list-view-sidebar__tabs-tablist{box-sizing:border-box;flex-grow:1}.editor-list-view-sidebar__tabs-tab{margin-bottom:-1px;width:50%}.editor-list-view-sidebar__tabs-tabpanel{height:calc(100% - 47px)}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{height:100%;overflow:auto;padding:8px 6px;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-track,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-track{background-color:initial}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.editor-list-view-sidebar__list-view-container>.document-outline:focus-within::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:hover::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.editor-list-view-sidebar__list-view-container>.document-outline:focus,.editor-list-view-sidebar__list-view-container>.document-outline:focus-within,.editor-list-view-sidebar__list-view-container>.document-outline:hover,.editor-list-view-sidebar__list-view-panel-content:focus,.editor-list-view-sidebar__list-view-panel-content:focus-within,.editor-list-view-sidebar__list-view-panel-content:hover{scrollbar-color:#949494 #0000}@media (hover:none){.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{scrollbar-color:#949494 #0000}}.editor-list-view-sidebar__list-view-container{display:flex;flex-direction:column;height:100%}.editor-list-view-sidebar__tab-panel{height:100%}.editor-list-view-sidebar__outline{border-bottom:1px solid #ddd;display:flex;flex-direction:column;gap:8px;padding:16px}.editor-list-view-sidebar__outline>div>span:first-child{display:inline-block;width:90px}.editor-list-view-sidebar__outline>div>span{color:#757575;font-size:12px;line-height:1.4}.editor-post-author__panel{padding-top:8px}.editor-post-author__panel .editor-post-panel__row-control>div{width:100%}.editor-post-excerpt__textarea{margin-bottom:10px;width:100%}.editor-post-featured-image{padding:0}.editor-post-featured-image .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__container{position:relative}.editor-post-featured-image__container:focus .editor-post-featured-image__actions,.editor-post-featured-image__container:focus-within .editor-post-featured-image__actions,.editor-post-featured-image__container:hover .editor-post-featured-image__actions{opacity:1}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{box-shadow:0 0 0 0 var(--wp-admin-theme-color);display:flex;justify-content:center;max-height:150px;overflow:hidden;padding:0;transition:all .1s ease-out;width:100%}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-delay:0s;transition-duration:0s}}.editor-post-featured-image__preview{height:auto}.editor-post-featured-image__preview .components-responsive-wrapper{background:#f0f0f0;width:100%}.editor-post-featured-image__toggle{background-color:#f0f0f0;border-radius:2px;line-height:20px;min-height:90px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background:#ddd;color:#1e1e1e}.editor-post-featured-image__actions{bottom:0;opacity:0;padding:8px;position:absolute;transition:opacity 50ms ease-out}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__actions{transition-delay:0s;transition-duration:0s}}.editor-post-featured-image__action{-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background:#ffffffbf;flex-grow:1;justify-content:center}[class].editor-post-format__suggestion{margin:4px 0 0}.editor-post-last-revision__title{font-weight:500;width:100%}.editor-post-last-revision__title.components-button.has-icon{height:100%;justify-content:space-between}.editor-post-last-revision__title.components-button.has-icon:active,.editor-post-last-revision__title.components-button.has-icon:hover{background:#f0f0f0}.editor-post-last-revision__title.components-button.has-icon:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-panel__body.is-opened.editor-post-last-revision__panel{height:48px;padding:0}.components-panel__body.is-opened.editor-post-last-revision__panel .editor-post-last-revision__title.components-button.components-button{padding:16px}.editor-post-locked-modal__buttons{margin-top:24px}.editor-post-locked-modal__avatar{border-radius:2px;margin-top:16px;min-width:auto!important}.editor-post-panel__row{align-items:flex-start!important;justify-content:flex-start!important;min-height:40px;width:100%}.editor-post-panel__row-label{align-items:center;display:flex;flex-shrink:0;min-height:40px;width:30%}.editor-post-panel__row-control{align-items:center;display:flex;flex-grow:1;min-height:40px}.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{align-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #ddd;display:flex;height:61px;padding-left:16px;padding-right:16px}.editor-post-publish-panel__header .components-button{justify-content:center;width:100%}.editor-post-publish-panel__header .has-icon{margin-left:auto;width:auto}.components-site-card{align-items:center;display:flex;margin:16px 0}.components-site-icon{border:none;border-radius:2px;height:36px;margin-right:12px;width:36px}.components-site-name{display:block;font-size:14px}.components-site-home{color:#757575;display:block;font-size:12px}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{padding-right:4px}.editor-post-publish-panel__header-cancel-button{padding-left:4px}.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{align-items:center;display:inline-flex}.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:#1e1e1e}.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 #e0e0e0;border-top:none}.post-publish-panel__postpublish-buttons{align-content:space-between;display:flex;flex-wrap:wrap;gap:16px}.post-publish-panel__postpublish-buttons .components-button{flex:1;justify-content:center}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address-container{align-items:flex-end;display:flex;margin-bottom:16px}.post-publish-panel__postpublish-post-address-container .post-publish-panel__postpublish-post-address{flex:1}.post-publish-panel__postpublish-post-address-container input[readonly]{background:#f0f0f0;border-color:#ccc;height:36px;overflow:hidden;padding:12px;text-overflow:ellipsis}.post-publish-panel__postpublish-post-address__copy-button-wrap{flex-shrink:0;margin-left:16px}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}@media screen and (max-width:782px){.post-publish-panel__postpublish-post-address__button-wrap .components-button{height:40px}}.editor-post-saved-state{align-items:center;color:#757575;display:flex;overflow:hidden;padding:12px 4px;white-space:nowrap;width:28px}.editor-post-saved-state.is-saved[aria-disabled=true],.editor-post-saved-state.is-saved[aria-disabled=true]:hover,.editor-post-saved-state.is-saving[aria-disabled=true],.editor-post-saved-state.is-saving[aria-disabled=true]:hover{background:#0000;color:#757575}.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{padding:8px 12px;text-indent:inherit;width:auto}.editor-post-saved-state svg{margin-right:0}}.editor-post-save-draft.has-text.has-icon svg{margin-right:0}.editor-post-schedule__panel-dropdown{width:100%}.editor-post-schedule__dialog .components-popover__content{min-width:320px;padding:16px}.editor-post-schedule__dialog-toggle.components-button{display:block;height:auto;line-height:16px;max-width:100%;overflow:hidden;padding:10px 12px;text-align:left;white-space:unset}.editor-post-sync-status__value{padding:6px 0 6px 12px}.editor-post-taxonomies__hierarchical-terms-list{margin-left:-6px;margin-top:-6px;max-height:14em;overflow:auto;padding-left:6px;padding-top:6px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-choice:last-child{margin-bottom:4px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-left:16px;margin-top:8px}.editor-post-taxonomies__flat-term-most-used .editor-post-taxonomies__flat-term-most-used-label{margin-bottom:4px}.editor-post-taxonomies__flat-term-most-used-list{margin:0}.editor-post-taxonomies__flat-term-most-used-list li{display:inline-block;margin-right:8px}.editor-post-taxonomies__flat-term-most-used-list .components-button{font-size:12px}.editor-post-template__swap-template-modal{z-index:1000001}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px;padding-top:2px}@media (min-width:782px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{column-count:4}}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__item:not(:focus):not(:hover) .block-editor-block-preview__container{box-shadow:0 0 0 1px #ddd}.editor-post-template__dropdown .components-popover__content{min-width:240px}.editor-post-template__dropdown .components-button.is-pressed,.editor-post-template__dropdown .components-button.is-pressed:hover{background:inherit;color:inherit}@media (min-width:782px){.editor-post-template__create-form{width:320px}}.editor-post-template__classic-theme-dropdown{padding:8px}.edit-post-text-editor__body textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:16px!important;line-height:2.4;margin:0;min-height:200px;overflow:hidden;padding:16px;resize:none;transition:border .1s ease-out,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.edit-post-text-editor__body textarea.editor-post-text-editor{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.edit-post-text-editor__body textarea.editor-post-text-editor{font-size:15px!important;padding:24px}}.edit-post-text-editor__body textarea.editor-post-text-editor:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}.edit-post-text-editor__body textarea.editor-post-text-editor::-webkit-input-placeholder{color:#1e1e1e9e}.edit-post-text-editor__body textarea.editor-post-text-editor::-moz-placeholder{color:#1e1e1e9e;opacity:1}.edit-post-text-editor__body textarea.editor-post-text-editor:-ms-input-placeholder{color:#1e1e1e9e}.edit-post-text-editor__body .editor-post-title.is-raw-text{margin-bottom:24px;margin-top:2px;max-width:none}.editor-post-url__panel-dropdown{width:100%}.components-button.editor-post-url__panel-toggle{display:block;max-width:100%;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.editor-post-url__panel-dialog .editor-post-url{margin:8px;min-width:248px}.editor-post-url__link-label{font-size:13px;font-weight:400;margin:0}.editor-post-url__link{direction:ltr;word-break:break-word}.editor-post-url__link-slug{font-weight:600}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{border:1px solid #1e1e1e;border-radius:2px;border-radius:50%;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;margin-right:12px;margin-top:2px;padding:6px 8px;transition:box-shadow .1s linear;transition:none;width:24px}@media (prefers-reduced-motion:reduce){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-webkit-input-placeholder{color:#1e1e1e9e}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:-ms-input-placeholder{color:#1e1e1e9e}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{height:20px;width:20px}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:8px;margin:0;transform:translate(7px,7px);width:8px}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{transform:translate(5px,5px)}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.editor-post-visibility__fieldset .editor-post-visibility__info{color:#757575;margin-left:36px;margin-top:.5em}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__info{margin-left:32px}}.editor-post-visibility__fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__info{margin-bottom:0}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-left:32px;padding:6px 8px;transition:box-shadow .1s linear;width:calc(100% - 32px)}@media (prefers-reduced-motion:reduce){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-webkit-input-placeholder{color:#1e1e1e9e}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:-ms-input-placeholder{color:#1e1e1e9e}.editor-post-trash.components-button{flex-grow:1;justify-content:center}.editor-preview-dropdown__button-external{display:flex;justify-content:space-between;width:100%}.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:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{color:#1e1e1e;display:flex;flex-basis:33%;flex-direction:column;font-size:13px;margin-bottom:0;margin-top:8px;padding-right:8px}.table-of-contents__count:nth-child(4n){padding-right:0}.table-of-contents__number,.table-of-contents__popover .word-count{color:#1e1e1e;font-size:21px;font-weight:400;line-height:30px}.table-of-contents__title{display:block;font-size:15px;font-weight:600;margin-top:20px}.editor-template-validation-notice{align-items:center;display:flex;justify-content:space-between}.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--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{margin:0;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;gap:8px;padding-right:12px}.interface-complementary-area-header .interface-complementary-area-header__title{margin:0}.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;height:100%;overflow:auto}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;font-weight:500;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}.interface-complementary-area__fill{height:100%}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)){position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none;position:relative}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;top:0;width:auto;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important}}.interface-interface-skeleton__sidebar{border-top:1px solid #e0e0e0;overflow:hidden}@media (min-width:782px){.interface-interface-skeleton__sidebar{box-shadow:-1px 1px 0 0 rgba(0,0,0,.133);outline:1px solid #0000}}.interface-interface-skeleton__secondary-sidebar{border-top:1px solid #e0e0e0;right:0}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar{box-shadow:1px 1px 0 0 rgba(0,0,0,.133);outline:1px solid #0000}}.interface-interface-skeleton__header{box-shadow:0 1px 0 0 rgba(0,0,0,.133);color:#1e1e1e;flex-shrink:0;height:auto;outline:1px solid #0000;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-pinned-items{display:flex;gap:8px}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{display:flex}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-pinned-items .components-button{display:flex}}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{content:"";font:normal 20px/1 dashicons;margin-right:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{flex-grow:0;flex-shrink:0;height:24px;margin-right:8px;max-width:none;width:24px}.editor-autocompleters__user .editor-autocompleters__user-name{flex-grow:1;flex-shrink:0;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user .editor-autocompleters__user-slug{color:#757575;flex-grow:0;flex-shrink:0;margin-left:8px;max-width:100px;overflow:none;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:var(--wp-admin-theme-color)}.editor-block-manager__no-results{font-style:italic;padding:24px 0;text-align:center}.editor-block-manager__search{margin:16px 0}.editor-block-manager__disabled-blocks-count{background-color:#fff;border:1px solid #ddd;border-width:1px 0;box-shadow:-32px 0 0 0 #fff,32px 0 0 0 #fff;padding:8px;position:sticky;text-align:center;top:-5px;z-index:2}.editor-block-manager__disabled-blocks-count~.editor-block-manager__results .editor-block-manager__category-title{top:31px}.editor-block-manager__disabled-blocks-count .is-link{margin-left:12px}.editor-block-manager__category{margin:0 0 24px}.editor-block-manager__category-title{background-color:#fff;padding:16px 0;position:sticky;top:-4px;z-index:1}.editor-block-manager__category-title .components-checkbox-control__label{font-weight:600}.editor-block-manager__checklist{margin-top:0}.editor-block-manager__category-title,.editor-block-manager__checklist-item{border-bottom:1px solid #ddd}.editor-block-manager__checklist-item{align-items:center;display:flex;justify-content:space-between;margin-bottom:0;padding:8px 0 8px 16px}.components-modal__content .editor-block-manager__checklist-item.components-checkbox-control__input-container{margin:0 8px}.editor-block-manager__checklist-item .block-editor-block-icon{margin-right:10px;fill:#1e1e1e}.editor-block-manager__results{border-top:1px solid #ddd}.editor-block-manager__disabled-blocks-count+.editor-block-manager__results{border-top-width:0}.editor-collapsible-block-toolbar{align-items:center;display:flex;height:60px;overflow:hidden}.editor-collapsible-block-toolbar .block-editor-block-contextual-toolbar{background:#0000;border-bottom:0;height:100%}.editor-collapsible-block-toolbar .block-editor-block-toolbar{height:100%;padding-top:15px}.editor-collapsible-block-toolbar .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.editor-collapsible-block-toolbar:after{background-color:#ddd;content:"";height:24px;margin-right:7px;width:1px}.editor-collapsible-block-toolbar .components-toolbar,.editor-collapsible-block-toolbar .components-toolbar-group{border-right:none;position:relative}.editor-collapsible-block-toolbar .components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar:after{background-color:#ddd;content:"";height:24px;position:absolute;right:-1px;top:4px;width:1px}.editor-collapsible-block-toolbar .components-toolbar .components-toolbar-group.components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{display:none}.editor-collapsible-block-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width:600px){.editor-collapsible-block-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{height:40px;position:relative;top:-5px}}.editor-collapsible-block-toolbar.is-collapsed{display:none}.editor-collapsible-block-toolbar__toggle{margin-left:2px}.editor-create-template-part-modal{z-index:1000001}@media (min-width:600px){.editor-create-template-part-modal .components-modal__frame{max-width:500px}}.editor-create-template-part-modal__area-radio-group{border:1px solid #757575;border-radius:2px;width:100%}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio{display:block;height:100%;padding:12px;text-align:left;width:100%}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover{background-color:inherit;border-bottom:1px solid #757575;border-radius:0;margin:0}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:not(:focus){box-shadow:none}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover:focus,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover:focus,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:focus{border-bottom:1px solid #fff}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:last-of-type{border-bottom:none}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:not(:hover),.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:not(:hover) .editor-create-template-part-modal__option-label div,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio[aria-checked=true] .editor-create-template-part-modal__option-label div{color:#949494}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio .editor-create-template-part-modal__option-label{padding-top:4px;white-space:normal}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio .editor-create-template-part-modal__option-label div{font-size:12px;padding-top:4px}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio .editor-create-template-part-modal__checkbox{margin-left:auto;min-width:24px}.editor-content-only-settings-menu__description{min-width:235px;padding:8px}.editor-blog-title-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-document-bar{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;height:32px;justify-content:space-between;min-width:0;width:min(100%,416px)}.editor-document-bar:hover{background-color:#e0e0e0}.editor-document-bar .components-button{border-radius:4px;transition:all .1s ease-out}@media (prefers-reduced-motion:reduce){.editor-document-bar .components-button{transition-delay:0s;transition-duration:0s}}.editor-document-bar .components-button:hover{background:#e0e0e0}@media (min-width:960px){.editor-document-bar{width:min(100%,450px)}}.editor-document-bar__command{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.editor-document-bar__title{align-items:center;color:#1e1e1e;display:flex;flex-grow:1;gap:4px;justify-content:center;overflow:hidden}@media (min-width:782px){.editor-document-bar__title{padding-left:24px}}.editor-document-bar.is-global .editor-document-bar__title{color:var(--wp-block-synced-color)}.editor-document-bar__title .block-editor-block-icon{flex-shrink:0;min-width:24px}.editor-document-bar__title h1{color:currentColor;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-document-bar__shortcut{color:#2f2f2f;display:none;min-width:24px}@media (min-width:782px){.editor-document-bar__shortcut{display:initial}}.editor-document-bar__back.components-button.has-icon.has-text{color:#757575;flex-shrink:0;gap:0;min-width:36px;position:absolute;z-index:1}.editor-document-bar__back.components-button.has-icon.has-text:hover{background-color:initial;color:#1e1e1e}.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:#ddd;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{align-items:flex-start;background:none;border:none;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;margin:0 0 0 -1px;padding:2px 5px 2px 1px;text-align:left}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.document-outline__level{background:#ddd;border-radius:3px;color:#1e1e1e;font-size:13px;margin-right:4px;padding:1px 6px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.editor-document-outline.has-no-headings{color:#757575;text-align:center}.editor-document-outline.has-no-headings>svg{margin-top:28px}.editor-document-outline.has-no-headings>p{padding-left:32px;padding-right:32px}.editor-document-tools{align-items:center;display:inline-flex}.editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{display:none}@media (min-width:782px){.editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{display:inline-flex}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle{display:inline-flex}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.editor-document-tools .block-editor-list-view{display:none}@media (min-width:600px){.editor-document-tools .block-editor-list-view{display:flex}}.editor-document-tools .editor-document-tools__left>.components-button.has-icon,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon{height:32px;min-width:32px;padding:4px}.editor-document-tools .editor-document-tools__left>.components-button.has-icon.is-pressed,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:focus:not(:disabled),.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid #0000}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:before,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:before{display:none}.editor-document-tools__left{align-items:center;display:inline-flex;gap:8px;margin-right:8px;padding-left:16px}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.has-icon{height:32px;min-width:32px;padding:0;width:32px}.show-icon-labels .editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.has-icon{height:32px;padding:0 8px;width:auto}.show-icon-labels .editor-document-tools__left>*+*{margin-left:8px}.editor-editor-interface .entities-saved-states__panel-header{height:61px}.components-editor-notices__dismissible,.components-editor-notices__pinned{color:#1e1e1e;left:0;position:relative;right:0;top:0}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{border-bottom:1px solid #0003;box-sizing:border-box;min-height:60px;padding:0 12px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.entities-saved-states__panel-header{background:#fff;border-bottom:1px solid #ddd;box-sizing:border-box;height:60px;padding-left:8px;padding-right:8px}.entities-saved-states__text-prompt{padding:16px 16px 4px}.entities-saved-states__text-prompt .entities-saved-states__text-prompt--header{display:block;margin-bottom:12px}.entities-saved-states__description-heading{font-size:13px}.entities-saved-states__changes{color:#757575;font-size:12px;list-style:disc;margin:8px 16px 0}.entities-saved-states__changes li{margin-bottom:4px}.editor-error-boundary{box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,.1px 11.5px 16.4px -.5px #00000026;margin:60px auto auto;max-width:780px;padding:20px}.editor-header{align-items:center;background:#fff;display:flex;flex-wrap:wrap;height:60px;justify-content:space-between;max-width:100vw}@media (min-width:280px){.editor-header{flex-wrap:nowrap}}.editor-header__toolbar{align-items:center;display:flex;flex-grow:3;flex-shrink:8;overflow:hidden;padding:2px 0}@media (min-width:782px){.editor-header__toolbar{padding-right:var(--wp-admin-border-width-focus)}}.editor-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.editor-header__toolbar .table-of-contents{display:block}}.editor-header__center{display:flex;flex-grow:1;justify-content:center;min-width:0}.editor-header__center.is-collapsed{display:none}.editor-header__settings{align-items:center;display:inline-flex;flex-wrap:nowrap;gap:8px;padding-right:4px}@media (min-width:600px){.editor-header__settings{padding-right:8px}}.show-icon-labels .editor-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.show-icon-labels .editor-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.show-icon-labels .editor-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label)}.show-icon-labels .editor-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:initial}.show-icon-labels .editor-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{background-color:initial;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.show-icon-labels .editor-header .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg{display:block}.show-icon-labels .editor-header .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after{content:none}.show-icon-labels .editor-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.show-icon-labels .editor-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .editor-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{content:none}.show-icon-labels .editor-header__toolbar .block-editor-block-mover{border-left:none}.show-icon-labels .editor-header__toolbar .block-editor-block-mover:before{background-color:#ddd;content:"";height:24px;margin-left:8px;margin-top:4px;width:1px}.show-icon-labels .editor-header__toolbar .block-editor-block-mover .block-editor-block-mover__move-button-container:before{background:#ddd;left:calc(50% + 1px);width:calc(100% - 24px)}.show-icon-labels.interface-pinned-items{border-bottom:1px solid #ccc;display:block;margin:0 -12px;padding:6px 12px 12px}.show-icon-labels.interface-pinned-items>.components-button.has-icon{justify-content:flex-start;margin:0;padding:6px 6px 6px 8px;width:14.625rem}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-left:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-right:8px}@media (min-width:600px){.editor-header__post-preview-button{display:none}}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header{border-bottom:none}.editor-editor-interface.is-distraction-free .editor-header{background-color:#fff;border-bottom:1px solid #e0e0e0;position:absolute;width:100%}.editor-editor-interface.is-distraction-free .editor-header>.edit-post-header__settings>.edit-post-header__post-preview-button{visibility:hidden}.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.editor-preview-dropdown,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.interface-pinned-items,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__toolbar .editor-document-tools__document-overview-toggle{display:none}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within{opacity:1!important}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within div{transform:translateX(0) translateZ(0)!important}.editor-editor-interface.is-distraction-free .components-editor-notices__dismissible{position:absolute;z-index:35}.components-popover.more-menu-dropdown__content{z-index:99998}.editor-inserter-sidebar{box-sizing:border-box;display:flex;flex-direction:column;height:100%}.editor-inserter-sidebar *,.editor-inserter-sidebar :after,.editor-inserter-sidebar :before{box-sizing:inherit}.editor-inserter-sidebar__content{height:calc(100% - 44px)}@media (min-width:782px){.editor-inserter-sidebar__content{height:100%}}.editor-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.editor-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.editor-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.editor-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.editor-keyboard-shortcut-help-modal__shortcut:empty{display:none}.editor-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.editor-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.editor-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.editor-keyboard-shortcut-help-modal__shortcut-key-combination+.editor-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.editor-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.editor-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.editor-list-view-sidebar{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.editor-list-view-sidebar{width:350px}}.editor-list-view-sidebar .editor-list-view-sidebar__header{border-bottom:1px solid #ddd;display:flex}.editor-list-view-sidebar .editor-list-view-sidebar__close-button{align-self:center;background:#fff;margin-right:12px;order:1}.editor-list-view-sidebar__tabs-tablist{box-sizing:border-box;flex-grow:1}.editor-list-view-sidebar__tabs-tab{margin-bottom:-1px;width:50%}.editor-list-view-sidebar__tabs-tabpanel{height:calc(100% - 47px)}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{height:100%;overflow:auto;padding:4px;scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-track,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-track{background-color:initial}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.editor-list-view-sidebar__list-view-container>.document-outline:focus-within::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:hover::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.editor-list-view-sidebar__list-view-container>.document-outline:focus,.editor-list-view-sidebar__list-view-container>.document-outline:focus-within,.editor-list-view-sidebar__list-view-container>.document-outline:hover,.editor-list-view-sidebar__list-view-panel-content:focus,.editor-list-view-sidebar__list-view-panel-content:focus-within,.editor-list-view-sidebar__list-view-panel-content:hover{scrollbar-color:#949494 #0000}@media (hover:none){.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{scrollbar-color:#949494 #0000}}.editor-list-view-sidebar__list-view-container{display:flex;flex-direction:column;height:100%}.editor-list-view-sidebar__tab-panel{height:100%}.editor-list-view-sidebar__outline{border-bottom:1px solid #ddd;display:flex;flex-direction:column;gap:8px;padding:16px}.editor-list-view-sidebar__outline>div>span:first-child{display:inline-block;width:90px}.editor-list-view-sidebar__outline>div>span{color:#757575;font-size:12px;line-height:1.4}.editor-post-order__panel,.editor-post-parent__panel{padding-top:8px}.editor-post-order__panel .editor-post-panel__row-control>div,.editor-post-parent__panel .editor-post-panel__row-control>div{width:100%}.editor-post-order__panel-dialog .editor-post-order,.editor-post-order__panel-dialog .editor-post-parent,.editor-post-parent__panel-dialog .editor-post-order,.editor-post-parent__panel-dialog .editor-post-parent{margin:8px}.editor-post-order__panel-dialog .components-popover__content,.editor-post-parent__panel-dialog .components-popover__content{min-width:320px}.editor-post-author__panel{padding-top:8px}.editor-post-author__panel .editor-post-panel__row-control>div{width:100%}.editor-post-author__panel-dialog .editor-post-author{margin:8px;min-width:248px}.editor-action-modal{z-index:1000001}.editor-post-card-panel__content{flex-grow:1}.editor-post-card-panel__title{width:100%}.editor-post-card-panel__title.editor-post-card-panel__title{align-items:center;column-gap:8px;display:flex;flex-wrap:wrap;margin:0;padding:2px 0;row-gap:4px;word-break:break-word}.editor-post-card-panel__icon{flex:0 0 24px;height:24px;width:24px}.editor-post-card-panel__header{display:flex;justify-content:space-between}.editor-post-card-panel.has-description .editor-post-card-panel__header{margin-bottom:8px}.editor-post-card-panel__icon.is-sync{fill:var(--wp-block-synced-color)}.editor-post-card-panel__title-badge{background:#f0f0f0;border-radius:2px;color:#757575;display:inline-block;flex-shrink:0;font-size:12px;font-weight:400;line-height:20px;padding:0 4px}.editor-post-content-information{color:#757575}.editor-post-content-information .components-text{color:inherit}.editor-post-discussion__panel-dialog .editor-post-discussion{margin:8px;min-width:248px}.editor-post-discussion__panel-dialog .editor-post-discussion .components-radio-control__option{align-items:flex-start}.editor-post-discussion__panel-dialog .editor-post-discussion .components-radio-control__label .components-text{display:block;margin-top:4px}.editor-post-discussion__panel-toggle .components-text{color:inherit}.editor-post-discussion__panel-dialog .components-popover__content{min-width:320px}.editor-post-excerpt__textarea{margin-bottom:10px;width:100%}.editor-post-excerpt__dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-post-featured-image{padding:0}.editor-post-featured-image .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.editor-post-featured-image__container{position:relative}.editor-post-featured-image__container:focus .editor-post-featured-image__actions,.editor-post-featured-image__container:focus-within .editor-post-featured-image__actions,.editor-post-featured-image__container:hover .editor-post-featured-image__actions{opacity:1}.editor-post-featured-image__container .components-drop-zone__content{border-radius:2px}.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{box-shadow:0 0 0 0 var(--wp-admin-theme-color);display:flex;justify-content:center;min-height:40px;outline-offset:-1px;overflow:hidden;padding:0;transition:all .1s ease-out;width:100%}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-delay:0s;transition-duration:0s}}.editor-post-featured-image__preview{height:auto;outline:1px solid #0000001a}.editor-post-featured-image__preview .editor-post-featured-image__preview-image{aspect-ratio:2/1;object-fit:cover;object-position:50% 50%;width:100%}.editor-post-featured-image__toggle{border-radius:2px;box-shadow:inset 0 0 0 1px #ccc;height:100%;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__actions{bottom:0;opacity:0;padding:8px;position:absolute;transition:opacity 50ms ease-out}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__actions{transition-delay:0s;transition-duration:0s}}.editor-post-featured-image__action{-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background:#ffffffbf;flex-grow:1;justify-content:center}[class].editor-post-format__suggestion{margin:4px 0 0}.editor-post-format__dialog .editor-post-format__dialog-content{margin:8px;min-width:248px}.editor-post-format__options .components-base-control__field>.components-v-stack{gap:12px}.editor-post-last-edited-panel{color:#757575}.editor-post-last-edited-panel .components-text{color:inherit}.editor-post-last-revision__title{font-weight:500;width:100%}.editor-post-last-revision__title.components-button.has-icon{height:100%;justify-content:space-between}.editor-post-last-revision__title.components-button.has-icon:active,.editor-post-last-revision__title.components-button.has-icon:hover{background:#f0f0f0}.editor-post-last-revision__title.components-button.has-icon:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-panel__body.is-opened.editor-post-last-revision__panel{height:48px;padding:0}.components-panel__body.is-opened.editor-post-last-revision__panel .editor-post-last-revision__title.components-button.components-button{padding:16px}.editor-private-post-last-revision__button{display:inline-block}.editor-post-locked-modal__buttons{margin-top:24px}.editor-post-locked-modal__avatar{border-radius:2px;margin-top:16px;min-width:auto!important}.editor-post-panel__row{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.editor-post-panel__row-label{align-items:center;display:flex;flex-shrink:0;-webkit-hyphens:auto;hyphens:auto;line-height:20px;min-height:32px;padding:6px 0;width:30%}.editor-post-panel__row-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.editor-post-panel__row-control .components-button{height:auto;max-width:100%;min-height:32px;text-align:left;text-wrap:balance;text-wrap:pretty;white-space:normal}.editor-post-panel__row-control .components-dropdown{max-width:100%}.editor-post-panel__section{padding:16px}.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{align-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #ddd;display:flex;height:61px;padding-left:16px;padding-right:16px}.editor-post-publish-panel__header .components-button{justify-content:center;width:100%}.editor-post-publish-panel__header .has-icon{margin-left:auto;width:auto}.components-site-card{align-items:center;display:flex;margin:16px 0}.components-site-icon{border:none;border-radius:2px;height:36px;margin-right:12px;width:36px}.components-site-name{display:block;font-size:14px}.components-site-home{color:#757575;display:block;font-size:12px}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{justify-content:center;padding-right:4px}.editor-post-publish-panel__header-cancel-button{padding-left:4px}.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{align-items:center;display:inline-flex}.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:#1e1e1e}.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-panel__body-title .components-button{align-items:flex-start;text-wrap:balance;text-wrap:pretty}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e0e0e0;border-top:none}.post-publish-panel__postpublish-buttons{align-content:space-between;display:flex;flex-wrap:wrap;gap:16px}.post-publish-panel__postpublish-buttons .components-button{flex:1;justify-content:center}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address-container{align-items:flex-end;display:flex;margin-bottom:16px}.post-publish-panel__postpublish-post-address-container .post-publish-panel__postpublish-post-address{flex:1}.post-publish-panel__postpublish-post-address-container input[readonly]{background:#f0f0f0;border-color:#ccc;height:36px;overflow:hidden;padding:12px;text-overflow:ellipsis}.post-publish-panel__postpublish-post-address__copy-button-wrap{flex-shrink:0;margin-left:16px}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}@media screen and (max-width:782px){.post-publish-panel__postpublish-post-address__button-wrap .components-button{height:40px}}.editor-post-publish-panel{background:#fff;bottom:0;left:0;overflow:auto;position:fixed;right:0;top:46px;z-index:100001}@media (min-width:782px){.editor-post-publish-panel{animation:editor-post-publish-panel__slide-in-animation .1s forwards;border-left:1px solid #ddd;left:auto;top:32px;transform:translateX(100%);width:281px;z-index:99998}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.editor-post-publish-panel{animation-delay:0s;animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .editor-post-publish-panel{top:0}[role=region]:focus .editor-post-publish-panel{transform:translateX(0)}}@keyframes editor-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.editor-post-saved-state{align-items:center;color:#757575;display:flex;overflow:hidden;padding:12px 4px;white-space:nowrap;width:28px}.editor-post-saved-state.is-saved[aria-disabled=true],.editor-post-saved-state.is-saved[aria-disabled=true]:hover,.editor-post-saved-state.is-saving[aria-disabled=true],.editor-post-saved-state.is-saving[aria-disabled=true]:hover{background:#0000;color:#757575}.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{padding:8px 12px;text-indent:inherit;width:auto}.editor-post-saved-state svg{margin-right:0}}.editor-post-save-draft.has-text.has-icon svg{margin-right:0}.editor-post-schedule__panel-dropdown{width:100%}.editor-post-schedule__dialog .components-popover__content{min-width:320px;padding:16px}.editor-post-slug{align-items:stretch;display:flex;flex-direction:column}.editor-post-status{max-width:100%}.editor-post-status.is-read-only{padding:6px 12px}.editor-change-status__password-fieldset,.editor-change-status__publish-date-wrapper{border-top:1px solid #e0e0e0;padding-top:16px}.editor-change-status__content .components-popover__content{min-width:320px;padding:16px}.editor-change-status__content .editor-change-status__options .components-base-control__field>.components-v-stack{gap:12px}.editor-change-status__content .editor-change-status__options .components-radio-control__option{align-items:flex-start}.editor-change-status__content .editor-change-status__options label .components-text{display:block;margin-top:4px}.editor-change-status__content .editor-change-status__password-legend{margin-bottom:8px;padding:0}.editor-post-sticky__toggle-control{padding:6px 12px}.editor-post-sync-status__value{padding:6px 0 6px 12px}.editor-post-taxonomies__hierarchical-terms-list{margin-left:-6px;margin-top:-6px;max-height:14em;overflow:auto;padding-left:6px;padding-top:6px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-choice:last-child{margin-bottom:4px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-left:16px;margin-top:8px}.editor-post-taxonomies__flat-term-most-used .editor-post-taxonomies__flat-term-most-used-label{margin-bottom:4px}.editor-post-taxonomies__flat-term-most-used-list{margin:0}.editor-post-taxonomies__flat-term-most-used-list li{display:inline-block;margin-right:8px}.editor-post-taxonomies__flat-term-most-used-list .components-button{font-size:12px}.editor-post-template__swap-template-modal{z-index:1000001}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px;padding-top:2px}@media (min-width:782px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{column-count:4}}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.editor-post-template__dropdown .components-popover__content{min-width:240px}.editor-post-template__dropdown .components-button.is-pressed,.editor-post-template__dropdown .components-button.is-pressed:hover{background:inherit;color:inherit}@media (min-width:782px){.editor-post-template__create-form{width:320px}}.editor-post-template__classic-theme-dropdown{padding:8px}textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:16px!important;line-height:2.4;margin:0;min-height:200px;overflow:hidden;padding:16px;resize:none;transition:border .1s ease-out,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){textarea.editor-post-text-editor{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){textarea.editor-post-text-editor{font-size:15px!important;padding:24px}}textarea.editor-post-text-editor:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}textarea.editor-post-text-editor::-webkit-input-placeholder{color:#1e1e1e9e}textarea.editor-post-text-editor::-moz-placeholder{color:#1e1e1e9e;opacity:1}textarea.editor-post-text-editor:-ms-input-placeholder{color:#1e1e1e9e}.editor-post-title.is-raw-text{margin-bottom:24px;margin-top:2px;max-width:none}.editor-post-url__panel-dropdown{width:100%}.editor-post-url__panel-dialog .editor-post-url{margin:8px;min-width:248px}.editor-post-url__link{color:#757575;direction:ltr;margin-top:4px;word-break:break-word}.editor-post-url__link-slug{font-weight:600}.editor-post-url__input input.components-input-control__input{padding-inline-start:0!important}.editor-post-url__panel-toggle{word-break:break-word}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{border:1px solid #1e1e1e;border-radius:2px;border-radius:50%;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;margin-right:12px;margin-top:2px;max-width:24px;min-width:24px;padding:6px 8px;transition:box-shadow .1s linear;transition:none;width:24px}@media (prefers-reduced-motion:reduce){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-webkit-input-placeholder{color:#1e1e1e9e}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:-ms-input-placeholder{color:#1e1e1e9e}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{height:20px;max-width:20px;min-width:20px;width:20px}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:8px;margin:0;transform:translate(7px,7px);width:8px}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{transform:translate(5px,5px)}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.editor-post-visibility__fieldset .editor-post-visibility__info{color:#757575;margin-left:36px;margin-top:.5em}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__info{margin-left:32px}}.editor-post-visibility__fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__info{margin-bottom:0}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-left:32px;padding:6px 8px;transition:box-shadow .1s linear;width:calc(100% - 32px)}@media (prefers-reduced-motion:reduce){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-webkit-input-placeholder{color:#1e1e1e9e}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-moz-placeholder{color:#1e1e1e9e;opacity:1}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:-ms-input-placeholder{color:#1e1e1e9e}.editor-posts-per-page-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-post-trash.components-button{flex-grow:1;justify-content:center}.editor-preview-dropdown__button-external{display:flex;justify-content:space-between;width:100%}.editor-resizable-editor.is-resizable{margin:0 auto;overflow:visible}.editor-resizable-editor__resize-handle{appearance:none;background:none;border:0;border-radius:2px;bottom:0;cursor:ew-resize;height:100px;margin:auto 0;outline:none;padding:0;position:absolute;top:0;width:12px}.editor-resizable-editor__resize-handle:after{background-color:#75757566;border-radius:2px;bottom:16px;content:"";left:4px;position:absolute;right:0;top:16px;width:4px}.editor-resizable-editor__resize-handle.is-left{left:-18px}.editor-resizable-editor__resize-handle.is-right{right:-18px}.editor-resizable-editor__resize-handle:active,.editor-resizable-editor__resize-handle:focus,.editor-resizable-editor__resize-handle:hover{opacity:1}.editor-resizable-editor__resize-handle:active:after,.editor-resizable-editor__resize-handle:focus:after,.editor-resizable-editor__resize-handle:hover:after{background-color:var(--wp-admin-theme-color)}.editor-layout__toggle-entities-saved-states-panel,.editor-layout__toggle-publish-panel,.editor-layout__toggle-sidebar-panel{background-color:#fff;border:1px dotted #ddd;bottom:auto;box-sizing:border-box;display:flex;height:auto!important;justify-content:center;left:auto;padding:24px;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.interface-interface-skeleton__actions:focus .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .editor-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-publish-panel{bottom:0;top:auto}.editor-start-page-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.editor-start-page-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.editor-start-page-options__modal-content .block-editor-block-patterns-list{column-count:4}}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column;margin-bottom:24px}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{min-height:100px}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{width:100%}.editor-start-template-options__modal .editor-start-template-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:92px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.editor-start-template-options__modal .block-editor-block-patterns-list{padding-bottom:92px}.editor-start-template-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.editor-start-template-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.editor-start-template-options__modal-content .block-editor-block-patterns-list{column-count:4}}.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{display:none}.components-panel__header.editor-sidebar__panel-tabs{padding-left:0;padding-right:12px}.components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{height:24px;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{display:flex}}.editor-post-summary .components-v-stack:empty{display:none}.editor-site-discussion-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-site-discussion__options .components-radio-control__option{align-items:flex-start}.editor-site-discussion__options label .components-text{display:block;margin-top:4px}.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:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{color:#1e1e1e;display:flex;flex-basis:33%;flex-direction:column;font-size:13px;margin-bottom:0;margin-top:8px;padding-right:8px}.table-of-contents__count:nth-child(4n){padding-right:0}.table-of-contents__number,.table-of-contents__popover .word-count{color:#1e1e1e;font-size:21px;font-weight:400;line-height:30px}.table-of-contents__title{display:block;font-size:15px;font-weight:600;margin-top:20px}.editor-template-areas__list,.editor-template-areas__list>li{margin:0}.editor-template-areas__item{width:100%}.editor-template-areas__item.components-button.has-icon{padding:0}h3.components-heading.editor-template-areas__title{font-weight:500;margin:0 0 8px}.editor-text-editor{background-color:#fff;flex-grow:1;position:relative;width:100%}.editor-text-editor .editor-post-title.is-raw-text textarea,.editor-text-editor .editor-post-title:not(.is-raw-text){border:1px solid #949494;border-radius:0;font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400;line-height:1.4;max-width:none;padding:16px}@media (min-width:600px){.editor-text-editor .editor-post-title.is-raw-text textarea,.editor-text-editor .editor-post-title:not(.is-raw-text){padding:24px}}.editor-text-editor .editor-post-title.is-raw-text textarea:focus,.editor-text-editor .editor-post-title:not(.is-raw-text):focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.editor-text-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:0 12px 12px;width:100%}@media (min-width:960px){.editor-text-editor__body{padding:0 24px 24px}}.editor-text-editor__toolbar{background:#fffc;display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.editor-text-editor__toolbar{padding:12px}}@media (min-width:960px){.editor-text-editor__toolbar{padding:12px 24px}}.editor-text-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 auto 0 0}.editor-visual-editor{align-items:center;background-color:#ddd;display:block;height:100%;isolation:isolate;position:relative}.editor-visual-editor.is-resizable{max-height:100%}.editor-visual-editor.has-padding{padding:24px 24px 0}.editor-visual-editor.is-iframed{overflow:hidden}.editor-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}.editor-visual-editor .components-button.has-icon,.editor-visual-editor .components-button.is-tertiary{padding:6px} \ 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 7d28575..ac4df60 100644
--- a/wp-includes/css/dist/format-library/style-rtl.css
+++ b/wp-includes/css/dist/format-library/style-rtl.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
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 6fd666a..1da4679 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 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-format-toolbar__image-popover{z-index:159990}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-value{margin:7px;max-width:500px;min-width:150px}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-button{height:30px;margin-bottom:8px;margin-left:8px}.block-editor-format-toolbar__link-container-content{display:flex}.block-editor-format-toolbar__link-container-value{flex-grow:1;flex-shrink:1;margin:7px;max-width:500px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#cc1818}.format-library__inline-color-popover [role=tabpanel]{padding:16px}.block-editor-format-toolbar__language-popover .components-popover__content{padding:1rem;width:auto} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-format-toolbar__image-popover{z-index:159990}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-value{margin:7px;max-width:500px;min-width:150px}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-button{height:30px;margin-bottom:8px;margin-left:8px}.block-editor-format-toolbar__link-container-content{display:flex}.block-editor-format-toolbar__link-container-value{flex-grow:1;flex-shrink:1;margin:7px;max-width:500px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#cc1818}.format-library__inline-color-popover [role=tabpanel]{padding:16px}.block-editor-format-toolbar__language-popover .components-popover__content{padding:1rem;width:auto} \ 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 3e4da40..116df80 100644
--- a/wp-includes/css/dist/format-library/style.css
+++ b/wp-includes/css/dist/format-library/style.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
diff --git a/wp-includes/css/dist/format-library/style.min.css b/wp-includes/css/dist/format-library/style.min.css
index 085b18d..67b347d 100644
--- a/wp-includes/css/dist/format-library/style.min.css
+++ b/wp-includes/css/dist/format-library/style.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-format-toolbar__image-popover{z-index:159990}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-value{margin:7px;max-width:500px;min-width:150px}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-button{height:30px;margin-bottom:8px;margin-right:8px}.block-editor-format-toolbar__link-container-content{display:flex}.block-editor-format-toolbar__link-container-value{flex-grow:1;flex-shrink:1;margin:7px;max-width:500px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#cc1818}.format-library__inline-color-popover [role=tabpanel]{padding:16px}.block-editor-format-toolbar__language-popover .components-popover__content{padding:1rem;width:auto} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-format-toolbar__image-popover{z-index:159990}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-value{margin:7px;max-width:500px;min-width:150px}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-button{height:30px;margin-bottom:8px;margin-right:8px}.block-editor-format-toolbar__link-container-content{display:flex}.block-editor-format-toolbar__link-container-value{flex-grow:1;flex-shrink:1;margin:7px;max-width:500px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#cc1818}.format-library__inline-color-popover [role=tabpanel]{padding:16px}.block-editor-format-toolbar__language-popover .components-popover__content{padding:1rem;width:auto} \ 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 24549b9..eaa8fa8 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,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
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 809630b..c2c7c73 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 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.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{float:left;margin-bottom:10px;margin-top:10px}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks-import-form .components-notice.is-dismissible{margin:5px 0;padding-left:0}.list-reusable-blocks__container{align-items:center;display:inline-flex;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--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.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{float:left;margin-bottom:10px;margin-top:10px}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks-import-form .components-notice.is-dismissible{margin:5px 0;padding-left:0}.list-reusable-blocks__container{align-items:center;display:inline-flex;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--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
diff --git a/wp-includes/css/dist/list-reusable-blocks/style.css b/wp-includes/css/dist/list-reusable-blocks/style.css
index 7b9d984..de6052b 100644
--- a/wp-includes/css/dist/list-reusable-blocks/style.css
+++ b/wp-includes/css/dist/list-reusable-blocks/style.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
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 a301601..9ed3997 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 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.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{float:right;margin-bottom:10px;margin-top:10px}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks-import-form .components-notice.is-dismissible{margin:5px 0;padding-right:0}.list-reusable-blocks__container{align-items:center;display:inline-flex;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--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.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{float:right;margin-bottom:10px;margin-top:10px}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks-import-form .components-notice.is-dismissible{margin:5px 0;padding-right:0}.list-reusable-blocks__container{align-items:center;display:inline-flex;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--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file
diff --git a/wp-includes/css/dist/nux/style-rtl.css b/wp-includes/css/dist/nux/style-rtl.css
index 855ecf4..a98ba23 100644
--- a/wp-includes/css/dist/nux/style-rtl.css
+++ b/wp-includes/css/dist/nux/style-rtl.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
diff --git a/wp-includes/css/dist/nux/style-rtl.min.css b/wp-includes/css/dist/nux/style-rtl.min.css
index ddd40fd..907282a 100644
--- a/wp-includes/css/dist/nux/style-rtl.min.css
+++ b/wp-includes/css/dist/nux/style-rtl.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.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:#00739ce6;height:24px;opacity:.9;right:-12px;top:-12px;transform:scale(.3333333333);width:24px}.nux-dot-tip:after{background:#00739c;height:8px;right:-4px;top:-4px;width:8px}@keyframes nux-pulse{to{background:#00739c00;transform:scale(1)}}.nux-dot-tip .components-popover__content{padding:20px 18px;width:350px}@media (min-width:600px){.nux-dot-tip .components-popover__content{width:450px}}.nux-dot-tip .components-popover__content .nux-dot-tip__disable{left:0;position:absolute;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{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{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.interface-more-menu-dropdown__content:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content{margin-left:-12px}.nux-dot-tip.components-popover.interface-more-menu-dropdown__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--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.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:#00739ce6;height:24px;opacity:.9;right:-12px;top:-12px;transform:scale(.3333333333);width:24px}.nux-dot-tip:after{background:#00739c;height:8px;right:-4px;top:-4px;width:8px}@keyframes nux-pulse{to{background:#00739c00;transform:scale(1)}}.nux-dot-tip .components-popover__content{padding:20px 18px;width:350px}@media (min-width:600px){.nux-dot-tip .components-popover__content{width:450px}}.nux-dot-tip .components-popover__content .nux-dot-tip__disable{left:0;position:absolute;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{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{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.interface-more-menu-dropdown__content:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content{margin-left:-12px}.nux-dot-tip.components-popover.interface-more-menu-dropdown__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 21688d8..67d9119 100644
--- a/wp-includes/css/dist/nux/style.css
+++ b/wp-includes/css/dist/nux/style.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
diff --git a/wp-includes/css/dist/nux/style.min.css b/wp-includes/css/dist/nux/style.min.css
index a153369..f04c362 100644
--- a/wp-includes/css/dist/nux/style.min.css
+++ b/wp-includes/css/dist/nux/style.min.css
@@ -1,4 +1,4 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.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:#00739ce6;height:24px;left:-12px;opacity:.9;top:-12px;transform:scale(.3333333333);width:24px}.nux-dot-tip:after{background:#00739c;height:8px;left:-4px;top:-4px;width:8px}@keyframes nux-pulse{to{background:#00739c00;transform:scale(1)}}.nux-dot-tip .components-popover__content{padding:20px 18px;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{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--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.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:#00739ce6;height:24px;left:-12px;opacity:.9;top:-12px;transform:scale(.3333333333);width:24px}.nux-dot-tip:after{background:#00739c;height:8px;left:-4px;top:-4px;width:8px}@keyframes nux-pulse{to{background:#00739c00;transform:scale(1)}}.nux-dot-tip .components-popover__content{padding:20px 18px;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{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.interface-more-menu-dropdown__content:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content{
/*!rtl:ignore*/margin-left:-12px}.nux-dot-tip.components-popover.interface-more-menu-dropdown__content:not([data-y-axis=middle])[data-y-axis=left] .components-popover__content{
diff --git a/wp-includes/css/dist/patterns/style-rtl.css b/wp-includes/css/dist/patterns/style-rtl.css
index dc3dbd5..86b614f 100644
--- a/wp-includes/css/dist/patterns/style-rtl.css
+++ b/wp-includes/css/dist/patterns/style-rtl.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -51,4 +51,22 @@
.patterns-rename-pattern-category-modal__validation-message{
width:320px;
}
+}
+
+.pattern-overrides-control__allow-overrides-button{
+ justify-content:center;
+ width:100%;
+}
+
+.patterns-pattern-overrides-toolbar-indicator__popover .components-popover__content{
+ min-width:260px;
+ padding:16px;
+}
+
+.patterns-pattern-overrides-toolbar-indicator .patterns-pattern-overrides-toolbar-indicator-icon.has-colors svg{
+ fill:var(--wp-block-synced-color);
+}
+
+.editor-collapsible-block-toolbar .patterns-pattern-overrides-toolbar-indicator{
+ height:32px;
} \ No newline at end of file
diff --git a/wp-includes/css/dist/patterns/style-rtl.min.css b/wp-includes/css/dist/patterns/style-rtl.min.css
index 9fe2806..d26fa4a 100644
--- a/wp-includes/css/dist/patterns/style-rtl.min.css
+++ b/wp-includes/css/dist/patterns/style-rtl.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{position:relative}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;max-height:96px;min-width:auto;position:absolute;right:-1px;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0}.patterns-rename-pattern-category-modal__validation-message{color:#cc1818}@media (min-width:782px){.patterns-rename-pattern-category-modal__validation-message{width:320px}} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{position:relative}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;max-height:96px;min-width:auto;position:absolute;right:-1px;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0}.patterns-rename-pattern-category-modal__validation-message{color:#cc1818}@media (min-width:782px){.patterns-rename-pattern-category-modal__validation-message{width:320px}}.pattern-overrides-control__allow-overrides-button{justify-content:center;width:100%}.patterns-pattern-overrides-toolbar-indicator__popover .components-popover__content{min-width:260px;padding:16px}.patterns-pattern-overrides-toolbar-indicator .patterns-pattern-overrides-toolbar-indicator-icon.has-colors svg{fill:var(--wp-block-synced-color)}.editor-collapsible-block-toolbar .patterns-pattern-overrides-toolbar-indicator{height:32px} \ No newline at end of file
diff --git a/wp-includes/css/dist/patterns/style.css b/wp-includes/css/dist/patterns/style.css
index eac7f7a..7734d30 100644
--- a/wp-includes/css/dist/patterns/style.css
+++ b/wp-includes/css/dist/patterns/style.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -51,4 +51,22 @@
.patterns-rename-pattern-category-modal__validation-message{
width:320px;
}
+}
+
+.pattern-overrides-control__allow-overrides-button{
+ justify-content:center;
+ width:100%;
+}
+
+.patterns-pattern-overrides-toolbar-indicator__popover .components-popover__content{
+ min-width:260px;
+ padding:16px;
+}
+
+.patterns-pattern-overrides-toolbar-indicator .patterns-pattern-overrides-toolbar-indicator-icon.has-colors svg{
+ fill:var(--wp-block-synced-color);
+}
+
+.editor-collapsible-block-toolbar .patterns-pattern-overrides-toolbar-indicator{
+ height:32px;
} \ No newline at end of file
diff --git a/wp-includes/css/dist/patterns/style.min.css b/wp-includes/css/dist/patterns/style.min.css
index 99aae06..9415e57 100644
--- a/wp-includes/css/dist/patterns/style.min.css
+++ b/wp-includes/css/dist/patterns/style.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{position:relative}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;left:-1px;max-height:96px;min-width:auto;position:absolute;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0}.patterns-rename-pattern-category-modal__validation-message{color:#cc1818}@media (min-width:782px){.patterns-rename-pattern-category-modal__validation-message{width:320px}} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{position:relative}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;left:-1px;max-height:96px;min-width:auto;position:absolute;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0}.patterns-rename-pattern-category-modal__validation-message{color:#cc1818}@media (min-width:782px){.patterns-rename-pattern-category-modal__validation-message{width:320px}}.pattern-overrides-control__allow-overrides-button{justify-content:center;width:100%}.patterns-pattern-overrides-toolbar-indicator__popover .components-popover__content{min-width:260px;padding:16px}.patterns-pattern-overrides-toolbar-indicator .patterns-pattern-overrides-toolbar-indicator-icon.has-colors svg{fill:var(--wp-block-synced-color)}.editor-collapsible-block-toolbar .patterns-pattern-overrides-toolbar-indicator{height:32px} \ No newline at end of file
diff --git a/wp-includes/css/dist/preferences/style-rtl.css b/wp-includes/css/dist/preferences/style-rtl.css
index 87cc756..7d73824 100644
--- a/wp-includes/css/dist/preferences/style-rtl.css
+++ b/wp-includes/css/dist/preferences/style-rtl.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -47,11 +47,14 @@
}
.preferences__tabs-tablist{
- position:absolute;
+ position:absolute !important;
right:16px;
top:84px;
width:160px;
}
+.preferences__tabs-tablist:after{
+ content:none !important;
+}
.preferences__tabs-tab{
border-radius:2px;
@@ -62,9 +65,6 @@
box-shadow:none;
font-weight:500;
}
-.preferences__tabs-tab[aria-selected=true]:after{
- content:none;
-}
.preferences__tabs-tab[role=tab]:focus:not(:disabled){
box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:2px solid #0000;
diff --git a/wp-includes/css/dist/preferences/style-rtl.min.css b/wp-includes/css/dist/preferences/style-rtl.min.css
index 59b80c3..0355293 100644
--- a/wp-includes/css/dist/preferences/style-rtl.min.css
+++ b/wp-includes/css/dist/preferences/style-rtl.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.preference-base-option+.preference-base-option{margin-top:16px}.preference-base-option .components-base-control__help{margin-right:48px;margin-top:0}@media (min-width:600px){.preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.preferences-modal{width:750px}}@media (min-width:960px){.preferences-modal{height:70%}}@media (max-width:781px){.preferences-modal .components-modal__content{padding:0}}.preferences__tabs-tablist{position:absolute;right:16px;top:84px;width:160px}.preferences__tabs-tab{border-radius:2px;font-weight:400}.preferences__tabs-tab[aria-selected=true]{background:#f0f0f0;box-shadow:none;font-weight:500}.preferences__tabs-tab[aria-selected=true]:after{content:none}.preferences__tabs-tab[role=tab]:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.preferences__tabs-tab:focus-visible:before{content:none}.preferences__tabs-tabpanel{margin-right:160px;padding-right:24px}@media (max-width:781px){.preferences__provider{height:100%}}.preferences-modal__section{margin:0 0 2.5rem}.preferences-modal__section:last-child{margin:0}.preferences-modal__section-legend{margin-bottom:8px}.preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.preferences-modal__section:has(.preferences-modal__section-content:empty){display:none} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.preference-base-option+.preference-base-option{margin-top:16px}.preference-base-option .components-base-control__help{margin-right:48px;margin-top:0}@media (min-width:600px){.preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.preferences-modal{width:750px}}@media (min-width:960px){.preferences-modal{height:70%}}@media (max-width:781px){.preferences-modal .components-modal__content{padding:0}}.preferences__tabs-tablist{position:absolute!important;right:16px;top:84px;width:160px}.preferences__tabs-tablist:after{content:none!important}.preferences__tabs-tab{border-radius:2px;font-weight:400}.preferences__tabs-tab[aria-selected=true]{background:#f0f0f0;box-shadow:none;font-weight:500}.preferences__tabs-tab[role=tab]:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.preferences__tabs-tab:focus-visible:before{content:none}.preferences__tabs-tabpanel{margin-right:160px;padding-right:24px}@media (max-width:781px){.preferences__provider{height:100%}}.preferences-modal__section{margin:0 0 2.5rem}.preferences-modal__section:last-child{margin:0}.preferences-modal__section-legend{margin-bottom:8px}.preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.preferences-modal__section:has(.preferences-modal__section-content:empty){display:none} \ No newline at end of file
diff --git a/wp-includes/css/dist/preferences/style.css b/wp-includes/css/dist/preferences/style.css
index 99af7ae..d897adb 100644
--- a/wp-includes/css/dist/preferences/style.css
+++ b/wp-includes/css/dist/preferences/style.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
@@ -48,10 +48,13 @@
.preferences__tabs-tablist{
left:16px;
- position:absolute;
+ position:absolute !important;
top:84px;
width:160px;
}
+.preferences__tabs-tablist:after{
+ content:none !important;
+}
.preferences__tabs-tab{
border-radius:2px;
@@ -62,9 +65,6 @@
box-shadow:none;
font-weight:500;
}
-.preferences__tabs-tab[aria-selected=true]:after{
- content:none;
-}
.preferences__tabs-tab[role=tab]:focus:not(:disabled){
box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
outline:2px solid #0000;
diff --git a/wp-includes/css/dist/preferences/style.min.css b/wp-includes/css/dist/preferences/style.min.css
index cc18c7e..168fbff 100644
--- a/wp-includes/css/dist/preferences/style.min.css
+++ b/wp-includes/css/dist/preferences/style.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.preference-base-option+.preference-base-option{margin-top:16px}.preference-base-option .components-base-control__help{margin-left:48px;margin-top:0}@media (min-width:600px){.preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.preferences-modal{width:750px}}@media (min-width:960px){.preferences-modal{height:70%}}@media (max-width:781px){.preferences-modal .components-modal__content{padding:0}}.preferences__tabs-tablist{left:16px;position:absolute;top:84px;width:160px}.preferences__tabs-tab{border-radius:2px;font-weight:400}.preferences__tabs-tab[aria-selected=true]{background:#f0f0f0;box-shadow:none;font-weight:500}.preferences__tabs-tab[aria-selected=true]:after{content:none}.preferences__tabs-tab[role=tab]:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.preferences__tabs-tab:focus-visible:before{content:none}.preferences__tabs-tabpanel{margin-left:160px;padding-left:24px}@media (max-width:781px){.preferences__provider{height:100%}}.preferences-modal__section{margin:0 0 2.5rem}.preferences-modal__section:last-child{margin:0}.preferences-modal__section-legend{margin-bottom:8px}.preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.preferences-modal__section:has(.preferences-modal__section-content:empty){display:none} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.preference-base-option+.preference-base-option{margin-top:16px}.preference-base-option .components-base-control__help{margin-left:48px;margin-top:0}@media (min-width:600px){.preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.preferences-modal{width:750px}}@media (min-width:960px){.preferences-modal{height:70%}}@media (max-width:781px){.preferences-modal .components-modal__content{padding:0}}.preferences__tabs-tablist{left:16px;position:absolute!important;top:84px;width:160px}.preferences__tabs-tablist:after{content:none!important}.preferences__tabs-tab{border-radius:2px;font-weight:400}.preferences__tabs-tab[aria-selected=true]{background:#f0f0f0;box-shadow:none;font-weight:500}.preferences__tabs-tab[role=tab]:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.preferences__tabs-tab:focus-visible:before{content:none}.preferences__tabs-tabpanel{margin-left:160px;padding-left:24px}@media (max-width:781px){.preferences__provider{height:100%}}.preferences-modal__section{margin:0 0 2.5rem}.preferences-modal__section:last-child{margin:0}.preferences-modal__section-legend{margin-bottom:8px}.preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.preferences-modal__section:has(.preferences-modal__section-content:empty){display:none} \ No newline at end of file
diff --git a/wp-includes/css/dist/reusable-blocks/style-rtl.css b/wp-includes/css/dist/reusable-blocks/style-rtl.css
index 1eaeb28..4545a6b 100644
--- a/wp-includes/css/dist/reusable-blocks/style-rtl.css
+++ b/wp-includes/css/dist/reusable-blocks/style-rtl.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
diff --git a/wp-includes/css/dist/reusable-blocks/style-rtl.min.css b/wp-includes/css/dist/reusable-blocks/style-rtl.min.css
index b486972..787d608 100644
--- a/wp-includes/css/dist/reusable-blocks/style-rtl.min.css
+++ b/wp-includes/css/dist/reusable-blocks/style-rtl.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.reusable-blocks-menu-items__convert-modal{z-index:1000001} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.reusable-blocks-menu-items__convert-modal{z-index:1000001} \ No newline at end of file
diff --git a/wp-includes/css/dist/reusable-blocks/style.css b/wp-includes/css/dist/reusable-blocks/style.css
index 1eaeb28..4545a6b 100644
--- a/wp-includes/css/dist/reusable-blocks/style.css
+++ b/wp-includes/css/dist/reusable-blocks/style.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
diff --git a/wp-includes/css/dist/reusable-blocks/style.min.css b/wp-includes/css/dist/reusable-blocks/style.min.css
index b486972..787d608 100644
--- a/wp-includes/css/dist/reusable-blocks/style.min.css
+++ b/wp-includes/css/dist/reusable-blocks/style.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.reusable-blocks-menu-items__convert-modal{z-index:1000001} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.reusable-blocks-menu-items__convert-modal{z-index:1000001} \ No newline at end of file
diff --git a/wp-includes/css/dist/widgets/style-rtl.css b/wp-includes/css/dist/widgets/style-rtl.css
index 09fc509..6feec74 100644
--- a/wp-includes/css/dist/widgets/style-rtl.css
+++ b/wp-includes/css/dist/widgets/style-rtl.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
diff --git a/wp-includes/css/dist/widgets/style-rtl.min.css b/wp-includes/css/dist/widgets/style-rtl.min.css
index 884c0e4..e828dda 100644
--- a/wp-includes/css/dist/widgets/style-rtl.min.css
+++ b/wp-includes/css/dist/widgets/style-rtl.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-block-legacy-widget__edit-form{background:#fff;border:1px solid #1e1e1e;border-radius:2px;max-height:calc(100vh - 2px);overflow-y:scroll;padding:11px}.wp-block-legacy-widget__edit-form:not([hidden]){display:flow-root}.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title{color:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-weight:600;margin:0 0 12px}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside{border:none;box-shadow:none;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside p{margin:8px 0}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{font-size:13px;line-height:2.1}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside a,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{color:#000;font-family:system-ui;font-weight:400}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=date],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=datetime-local],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=datetime],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=email],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=month],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=number],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=password],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=search],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=tel],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=text],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=time],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=url],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=week],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside select{background-color:initial;border:1px solid #757575;border-radius:3px;box-shadow:none;box-sizing:border-box;color:#000;display:block;font-family:system-ui;font-size:13px;font-weight:400;line-height:1;margin:0;min-height:30px;padding-bottom:8px;padding-right:8px;padding-top:8px;width:100%}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside select{padding-right:4px}.wp-block-legacy-widget__edit-form .widget.open,.wp-block-legacy-widget__edit-form .widget.open:focus-within{z-index:0}.wp-block-legacy-widget__edit-form.wp-block-legacy-widget__edit-form,.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview{color:#000}.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-preview{cursor:pointer}.wp-block-legacy-widget__edit-no-preview:hover:after,.wp-block-legacy-widget__edit-preview:hover:after{border:1px solid #949494;border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.wp-block-legacy-widget__edit-preview.is-offscreen{position:absolute;right:-9999px;top:0;width:100%}.wp-block-legacy-widget__edit-preview-iframe{overflow:hidden;width:100%}.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview{background:#f0f0f0;padding:8px 12px}.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview h3,.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview h3{font-size:14px;font-weight:600;margin:4px 0}.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview p{margin:4px 0}.wp-block-legacy-widget-inspector-card{padding:0 52px 16px 16px}.interface-complementary-area .wp-block-legacy-widget-inspector-card__name{font-weight:500;margin:0 0 5px}.is-selected .wp-block-legacy-widget__container{min-height:50px;padding:8px 12px}.components-popover__content .wp-block-legacy-widget__edit-form{min-width:400px}.wp-block-widget-group.has-child-selected:after{border:1px solid var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.wp-block-widget-group .widget-title{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px;font-weight:600}.wp-block-widget-group__placeholder .block-editor-inserter{width:100%}.is-dark-theme .wp-block-widget-group__placeholder .block-editor-button-block-appender{box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-block-legacy-widget__edit-form{background:#fff;border:1px solid #1e1e1e;border-radius:2px;max-height:calc(100vh - 2px);overflow-y:scroll;padding:11px}.wp-block-legacy-widget__edit-form:not([hidden]){display:flow-root}.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title{color:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-weight:600;margin:0 0 12px}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside{border:none;box-shadow:none;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside p{margin:8px 0}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{font-size:13px;line-height:2.1}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside a,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{color:#000;font-family:system-ui;font-weight:400}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=date],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=datetime-local],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=datetime],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=email],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=month],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=number],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=password],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=search],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=tel],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=text],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=time],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=url],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=week],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside select{background-color:initial;border:1px solid #757575;border-radius:3px;box-shadow:none;box-sizing:border-box;color:#000;display:block;font-family:system-ui;font-size:13px;font-weight:400;line-height:1;margin:0;min-height:30px;padding-bottom:8px;padding-right:8px;padding-top:8px;width:100%}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside select{padding-right:4px}.wp-block-legacy-widget__edit-form .widget.open,.wp-block-legacy-widget__edit-form .widget.open:focus-within{z-index:0}.wp-block-legacy-widget__edit-form.wp-block-legacy-widget__edit-form,.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview{color:#000}.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-preview{cursor:pointer}.wp-block-legacy-widget__edit-no-preview:hover:after,.wp-block-legacy-widget__edit-preview:hover:after{border:1px solid #949494;border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.wp-block-legacy-widget__edit-preview.is-offscreen{position:absolute;right:-9999px;top:0;width:100%}.wp-block-legacy-widget__edit-preview-iframe{overflow:hidden;width:100%}.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview{background:#f0f0f0;padding:8px 12px}.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview h3,.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview h3{font-size:14px;font-weight:600;margin:4px 0}.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview p{margin:4px 0}.wp-block-legacy-widget-inspector-card{padding:0 52px 16px 16px}.interface-complementary-area .wp-block-legacy-widget-inspector-card__name{font-weight:500;margin:0 0 5px}.is-selected .wp-block-legacy-widget__container{min-height:50px;padding:8px 12px}.components-popover__content .wp-block-legacy-widget__edit-form{min-width:400px}.wp-block-widget-group.has-child-selected:after{border:1px solid var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.wp-block-widget-group .widget-title{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px;font-weight:600}.wp-block-widget-group__placeholder .block-editor-inserter{width:100%}.is-dark-theme .wp-block-widget-group__placeholder .block-editor-button-block-appender{box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e} \ No newline at end of file
diff --git a/wp-includes/css/dist/widgets/style.css b/wp-includes/css/dist/widgets/style.css
index df05a26..7ca3c5a 100644
--- a/wp-includes/css/dist/widgets/style.css
+++ b/wp-includes/css/dist/widgets/style.css
@@ -8,7 +8,7 @@
--wp-admin-border-width-focus:2px;
--wp-block-synced-color:#7a00df;
--wp-block-synced-color--rgb:122, 0, 223;
- --wp-bound-block-color:#9747ff;
+ --wp-bound-block-color:var(--wp-block-synced-color);
}
@media (min-resolution:192dpi){
:root{
diff --git a/wp-includes/css/dist/widgets/style.min.css b/wp-includes/css/dist/widgets/style.min.css
index 3e2e712..9c5a6ab 100644
--- a/wp-includes/css/dist/widgets/style.min.css
+++ b/wp-includes/css/dist/widgets/style.min.css
@@ -1 +1 @@
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:#9747ff}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-block-legacy-widget__edit-form{background:#fff;border:1px solid #1e1e1e;border-radius:2px;max-height:calc(100vh - 2px);overflow-y:scroll;padding:11px}.wp-block-legacy-widget__edit-form:not([hidden]){display:flow-root}.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title{color:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-weight:600;margin:0 0 12px}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside{border:none;box-shadow:none;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside p{margin:8px 0}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{font-size:13px;line-height:2.1}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside a,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{color:#000;font-family:system-ui;font-weight:400}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=date],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=datetime-local],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=datetime],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=email],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=month],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=number],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=password],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=search],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=tel],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=text],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=time],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=url],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=week],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside select{background-color:initial;border:1px solid #757575;border-radius:3px;box-shadow:none;box-sizing:border-box;color:#000;display:block;font-family:system-ui;font-size:13px;font-weight:400;line-height:1;margin:0;min-height:30px;padding-bottom:8px;padding-left:8px;padding-top:8px;width:100%}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside select{padding-left:4px}.wp-block-legacy-widget__edit-form .widget.open,.wp-block-legacy-widget__edit-form .widget.open:focus-within{z-index:0}.wp-block-legacy-widget__edit-form.wp-block-legacy-widget__edit-form,.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview{color:#000}.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-preview{cursor:pointer}.wp-block-legacy-widget__edit-no-preview:hover:after,.wp-block-legacy-widget__edit-preview:hover:after{border:1px solid #949494;border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.wp-block-legacy-widget__edit-preview.is-offscreen{left:-9999px;position:absolute;top:0;width:100%}.wp-block-legacy-widget__edit-preview-iframe{overflow:hidden;width:100%}.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview{background:#f0f0f0;padding:8px 12px}.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview h3,.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview h3{font-size:14px;font-weight:600;margin:4px 0}.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview p{margin:4px 0}.wp-block-legacy-widget-inspector-card{padding:0 16px 16px 52px}.interface-complementary-area .wp-block-legacy-widget-inspector-card__name{font-weight:500;margin:0 0 5px}.is-selected .wp-block-legacy-widget__container{min-height:50px;padding:8px 12px}.components-popover__content .wp-block-legacy-widget__edit-form{min-width:400px}.wp-block-widget-group.has-child-selected:after{border:1px solid var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.wp-block-widget-group .widget-title{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px;font-weight:600}.wp-block-widget-group__placeholder .block-editor-inserter{width:100%}.is-dark-theme .wp-block-widget-group__placeholder .block-editor-button-block-appender{box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e} \ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-block-legacy-widget__edit-form{background:#fff;border:1px solid #1e1e1e;border-radius:2px;max-height:calc(100vh - 2px);overflow-y:scroll;padding:11px}.wp-block-legacy-widget__edit-form:not([hidden]){display:flow-root}.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title{color:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-weight:600;margin:0 0 12px}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside{border:none;box-shadow:none;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside p{margin:8px 0}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{font-size:13px;line-height:2.1}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside a,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{color:#000;font-family:system-ui;font-weight:400}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=date],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=datetime-local],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=datetime],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=email],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=month],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=number],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=password],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=search],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=tel],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=text],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=time],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=url],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=week],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside select{background-color:initial;border:1px solid #757575;border-radius:3px;box-shadow:none;box-sizing:border-box;color:#000;display:block;font-family:system-ui;font-size:13px;font-weight:400;line-height:1;margin:0;min-height:30px;padding-bottom:8px;padding-left:8px;padding-top:8px;width:100%}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside select{padding-left:4px}.wp-block-legacy-widget__edit-form .widget.open,.wp-block-legacy-widget__edit-form .widget.open:focus-within{z-index:0}.wp-block-legacy-widget__edit-form.wp-block-legacy-widget__edit-form,.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview{color:#000}.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-preview{cursor:pointer}.wp-block-legacy-widget__edit-no-preview:hover:after,.wp-block-legacy-widget__edit-preview:hover:after{border:1px solid #949494;border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.wp-block-legacy-widget__edit-preview.is-offscreen{left:-9999px;position:absolute;top:0;width:100%}.wp-block-legacy-widget__edit-preview-iframe{overflow:hidden;width:100%}.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview{background:#f0f0f0;padding:8px 12px}.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview h3,.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview h3{font-size:14px;font-weight:600;margin:4px 0}.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview p{margin:4px 0}.wp-block-legacy-widget-inspector-card{padding:0 16px 16px 52px}.interface-complementary-area .wp-block-legacy-widget-inspector-card__name{font-weight:500;margin:0 0 5px}.is-selected .wp-block-legacy-widget__container{min-height:50px;padding:8px 12px}.components-popover__content .wp-block-legacy-widget__edit-form{min-width:400px}.wp-block-widget-group.has-child-selected:after{border:1px solid var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.wp-block-widget-group .widget-title{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px;font-weight:600}.wp-block-widget-group__placeholder .block-editor-inserter{width:100%}.is-dark-theme .wp-block-widget-group__placeholder .block-editor-button-block-appender{box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e} \ No newline at end of file
diff --git a/wp-includes/css/editor-rtl.css b/wp-includes/css/editor-rtl.css
index ff81280..d345b10 100644
--- a/wp-includes/css/editor-rtl.css
+++ b/wp-includes/css/editor-rtl.css
@@ -1738,12 +1738,22 @@ div.wp-link-preview a.wplink-url-error {
color: #d63638;
}
+.mce-inline-toolbar-grp div.mce-flow-layout-item > div {
+ display: flex;
+ align-items: flex-end;
+}
+
div.wp-link-input {
float: right;
margin: 2px;
max-width: 694px;
}
+div.wp-link-input label {
+ margin-bottom: 4px;
+ display: block;
+}
+
div.wp-link-input input {
width: 300px;
padding: 3px;
diff --git a/wp-includes/css/editor-rtl.min.css b/wp-includes/css/editor-rtl.min.css
index d774ad6..f8880d7 100644
--- a/wp-includes/css/editor-rtl.min.css
+++ b/wp-includes/css/editor-rtl.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-.mce-tinymce{box-shadow:none}.mce-container,.mce-container *,.mce-widget,.mce-widget *{color:inherit;font-family:inherit}.mce-container .mce-monospace,.mce-widget .mce-monospace{font-family:Consolas,Monaco,monospace;font-size:13px;line-height:150%}#mce-modal-block,#mce-modal-block.mce-fade{opacity:.7;transition:none;background:#000}.mce-window{border-radius:0;box-shadow:0 3px 6px rgba(0,0,0,.3);-webkit-font-smoothing:subpixel-antialiased;transition:none}.mce-window .mce-container-body.mce-abs-layout{overflow:visible}.mce-window .mce-window-head{background:#fff;border-bottom:1px solid #dcdcde;padding:0;min-height:36px}.mce-window .mce-window-head .mce-title{color:#3c434a;font-size:18px;font-weight:600;line-height:36px;margin:0;padding:0 16px 0 36px}.mce-window .mce-window-head .mce-close,.mce-window-head .mce-close .mce-i-remove{color:transparent;top:0;left:0;width:36px;height:36px;padding:0;line-height:36px;text-align:center}.mce-window-head .mce-close .mce-i-remove:before{font:normal 20px/36px dashicons;text-align:center;color:#646970;width:36px;height:36px;display:block}.mce-window-head .mce-close:focus .mce-i-remove:before,.mce-window-head .mce-close:hover .mce-i-remove:before{color:#135e96}.mce-window-head .mce-close:focus .mce-i-remove,div.mce-tab:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-window .mce-window-head .mce-dragh{width:calc(100% - 36px)}.mce-window .mce-foot{border-top:1px solid #dcdcde}#wp-link .query-results,.mce-checkbox i.mce-i-checkbox,.mce-textbox{border:1px solid #dcdcde;border-radius:0;box-shadow:inset 0 1px 2px rgba(0,0,0,.07);transition:.05s all ease-in-out}#wp-link .query-results:focus,.mce-checkbox:focus i.mce-i-checkbox,.mce-textbox.mce-focus,.mce-textbox:focus{border-color:#4f94d4;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-window .mce-wp-help{height:360px;width:460px;overflow:auto}.mce-window .mce-wp-help *{box-sizing:border-box}.mce-window .mce-wp-help>.mce-container-body{width:auto!important}.mce-window .wp-editor-help{padding:10px 20px 0 10px}.mce-window .wp-editor-help h2,.mce-window .wp-editor-help p{margin:8px 0;white-space:normal;font-size:14px;font-weight:400}.mce-window .wp-editor-help table{width:100%;margin-bottom:20px}.mce-window .wp-editor-help table.wp-help-single{margin:0 8px 20px}.mce-window .wp-editor-help table.fixed{table-layout:fixed}.mce-window .wp-editor-help table.fixed td:nth-child(odd),.mce-window .wp-editor-help table.fixed th:nth-child(odd){width:12%}.mce-window .wp-editor-help table.fixed td:nth-child(2n),.mce-window .wp-editor-help table.fixed th:nth-child(2n){width:38%}.mce-window .wp-editor-help table.fixed th:nth-child(odd){padding:5px 0 0}.mce-window .wp-editor-help td,.mce-window .wp-editor-help th{font-size:13px;padding:5px;vertical-align:middle;word-wrap:break-word;white-space:normal}.mce-window .wp-editor-help th{font-weight:600;padding-bottom:0}.mce-window .wp-editor-help kbd{font-family:monospace;padding:2px 7px 3px;font-weight:600;margin:0;background:#f0f0f1;background:rgba(0,0,0,.08)}.mce-window .wp-help-th-center td:nth-child(odd),.mce-window .wp-help-th-center th:nth-child(odd){text-align:center}.mce-floatpanel.mce-popover,.mce-menu{border-color:rgba(0,0,0,.15);border-radius:0;box-shadow:0 3px 5px rgba(0,0,0,.2)}.mce-floatpanel.mce-popover.mce-bottom,.mce-menu{margin-top:2px}.mce-floatpanel .mce-arrow{display:none}.mce-menu .mce-container-body{min-width:160px}.mce-menu-item{border:none;margin-bottom:2px;padding:6px 12px 6px 15px}.mce-menu-has-icons i.mce-ico{line-height:20px}div.mce-panel{border:0;background:#fff}.mce-panel.mce-menu{border:1px solid #dcdcde}div.mce-tab{line-height:13px}div.mce-toolbar-grp{border-bottom:1px solid #dcdcde;background:#f6f7f7;padding:0;position:relative}div.mce-inline-toolbar-grp{border:1px solid #a7aaad;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.15);box-sizing:border-box;margin-bottom:8px;position:absolute;-webkit-user-select:none;user-select:none;max-width:98%;z-index:100100}div.mce-inline-toolbar-grp>div.mce-stack-layout{padding:1px}div.mce-inline-toolbar-grp.mce-arrow-up{margin-bottom:0;margin-top:8px}div.mce-inline-toolbar-grp:after,div.mce-inline-toolbar-grp:before{position:absolute;right:50%;display:block;width:0;height:0;border-style:solid;border-color:transparent;content:""}div.mce-inline-toolbar-grp.mce-arrow-up:before{top:-9px;border-bottom-color:#a7aaad;border-width:0 9px 9px;margin-right:-9px}div.mce-inline-toolbar-grp.mce-arrow-down:before{bottom:-9px;border-top-color:#a7aaad;border-width:9px 9px 0;margin-right:-9px}div.mce-inline-toolbar-grp.mce-arrow-up:after{top:-8px;border-bottom-color:#f6f7f7;border-width:0 8px 8px;margin-right:-8px}div.mce-inline-toolbar-grp.mce-arrow-down:after{bottom:-8px;border-top-color:#f6f7f7;border-width:8px 8px 0;margin-right:-8px}div.mce-inline-toolbar-grp.mce-arrow-left:after,div.mce-inline-toolbar-grp.mce-arrow-left:before{margin:0}div.mce-inline-toolbar-grp.mce-arrow-left:before{right:20px}div.mce-inline-toolbar-grp.mce-arrow-left:after{right:21px}div.mce-inline-toolbar-grp.mce-arrow-right:after,div.mce-inline-toolbar-grp.mce-arrow-right:before{right:auto;margin:0}div.mce-inline-toolbar-grp.mce-arrow-right:before{left:20px}div.mce-inline-toolbar-grp.mce-arrow-right:after{left:21px}div.mce-inline-toolbar-grp.mce-arrow-full{left:0}div.mce-inline-toolbar-grp.mce-arrow-full>div{width:100%;overflow-x:auto}div.mce-toolbar-grp>div{padding:3px}.has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first{padding-left:32px}.mce-toolbar .mce-btn-group{margin:0}.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}div.mce-statusbar{border-top:1px solid #dcdcde}div.mce-path{padding:2px 10px;margin:0}.mce-path,.mce-path .mce-divider,.mce-path-item{font-size:12px}.mce-toolbar .mce-btn,.qt-dfw{border-color:transparent;background:0 0;box-shadow:none;text-shadow:none;cursor:pointer}.mce-btn .mce-txt{direction:inherit;text-align:inherit}.mce-toolbar .mce-btn-group .mce-btn,.qt-dfw{border:1px solid transparent;margin:2px;border-radius:2px}.mce-toolbar .mce-btn-group .mce-btn:focus,.mce-toolbar .mce-btn-group .mce-btn:hover,.qt-dfw:focus,.qt-dfw:hover{background:#f6f7f7;color:#1d2327;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-toolbar .mce-btn-group .mce-btn.mce-active,.mce-toolbar .mce-btn-group .mce-btn:active,.qt-dfw.active{background:#f0f0f1;border-color:#50575e}.mce-btn.mce-active,.mce-btn.mce-active button,.mce-btn.mce-active i,.mce-btn.mce-active:hover button,.mce-btn.mce-active:hover i{color:inherit}.mce-toolbar .mce-btn-group .mce-btn.mce-active:focus,.mce-toolbar .mce-btn-group .mce-btn.mce-active:hover{border-color:#1d2327}.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:focus,.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:hover{color:#a7aaad;background:0 0;border-color:#dcdcde;text-shadow:0 1px 0 #fff;box-shadow:none}.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:focus{border-color:#50575e}.mce-toolbar .mce-btn-group .mce-first,.mce-toolbar .mce-btn-group .mce-last{border-color:transparent}.mce-toolbar .mce-btn button,.qt-dfw{padding:2px 3px;line-height:normal}.mce-toolbar .mce-listbox button{font-size:13px;line-height:1.53846153;padding-right:6px;padding-left:20px}.mce-toolbar .mce-btn i{text-shadow:none}.mce-toolbar .mce-btn-group>div{white-space:normal}.mce-toolbar .mce-colorbutton .mce-open{border-left:0}.mce-toolbar .mce-colorbutton .mce-preview{margin:0;padding:0;top:auto;bottom:2px;right:3px;height:3px;width:20px;background:#50575e}.mce-toolbar .mce-btn-group .mce-btn.mce-primary{min-width:0;background:#3582c4;border-color:#2271b1 #135e96 #135e96;box-shadow:0 1px 0 #135e96;color:#fff;text-decoration:none;text-shadow:none}.mce-toolbar .mce-btn-group .mce-btn.mce-primary button{padding:2px 3px 1px}.mce-toolbar .mce-btn-group .mce-btn.mce-primary .mce-ico{color:#fff}.mce-toolbar .mce-btn-group .mce-btn.mce-primary:focus,.mce-toolbar .mce-btn-group .mce-btn.mce-primary:hover{background:#4f94d4;border-color:#135e96;color:#fff}.mce-toolbar .mce-btn-group .mce-btn.mce-primary:focus{box-shadow:0 0 1px 1px #72aee6}.mce-toolbar .mce-btn-group .mce-btn.mce-primary:active{background:#2271b1;border-color:#135e96;box-shadow:inset 0 2px 0 #135e96}.mce-toolbar .mce-btn-group .mce-btn.mce-listbox{border-radius:0;direction:rtl;background:#fff;border:1px solid #dcdcde}.mce-toolbar .mce-btn-group .mce-btn.mce-listbox:focus,.mce-toolbar .mce-btn-group .mce-btn.mce-listbox:hover{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-panel .mce-btn i.mce-caret{border-top:6px solid #50575e;margin-right:2px;margin-left:2px}.mce-listbox i.mce-caret{left:4px}.mce-panel .mce-btn:focus i.mce-caret,.mce-panel .mce-btn:hover i.mce-caret{border-top-color:#1d2327}.mce-panel .mce-active i.mce-caret{border-top:0;border-bottom:6px solid #1d2327;margin-top:7px}.mce-listbox.mce-active i.mce-caret{margin-top:-3px}.mce-toolbar .mce-splitbtn:hover .mce-open{border-left-color:transparent}.mce-toolbar .mce-splitbtn .mce-open.mce-active{background:0 0;outline:0}.mce-menu .mce-menu-item.mce-active.mce-menu-item-normal,.mce-menu .mce-menu-item.mce-active.mce-menu-item-preview,.mce-menu .mce-menu-item.mce-selected,.mce-menu .mce-menu-item:focus,.mce-menu .mce-menu-item:hover{background:#2271b1;color:#fff}.mce-menu .mce-menu-item.mce-selected .mce-caret,.mce-menu .mce-menu-item:focus .mce-caret,.mce-menu .mce-menu-item:hover .mce-caret{border-right-color:#fff}.rtl .mce-menu .mce-menu-item.mce-selected .mce-caret,.rtl .mce-menu .mce-menu-item:focus .mce-caret,.rtl .mce-menu .mce-menu-item:hover .mce-caret{border-left-color:inherit;border-right-color:#fff}.mce-menu .mce-menu-item.mce-active .mce-menu-shortcut,.mce-menu .mce-menu-item.mce-disabled:hover .mce-ico,.mce-menu .mce-menu-item.mce-disabled:hover .mce-text,.mce-menu .mce-menu-item.mce-selected .mce-ico,.mce-menu .mce-menu-item.mce-selected .mce-text,.mce-menu .mce-menu-item:focus .mce-ico,.mce-menu .mce-menu-item:focus .mce-menu-shortcut,.mce-menu .mce-menu-item:focus .mce-text,.mce-menu .mce-menu-item:hover .mce-ico,.mce-menu .mce-menu-item:hover .mce-menu-shortcut,.mce-menu .mce-menu-item:hover .mce-text{color:inherit}.mce-menu .mce-menu-item.mce-disabled{cursor:default}.mce-menu .mce-menu-item.mce-disabled:hover{background:#c3c4c7}div.mce-menubar{border-color:#dcdcde;background:#fff;border-width:0 0 1px}.mce-menubar .mce-menubtn.mce-active,.mce-menubar .mce-menubtn:focus,.mce-menubar .mce-menubtn:hover{border-color:transparent;background:0 0}.mce-menubar .mce-menubtn:focus{color:#043959;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-menu-item-sep:hover,div.mce-menu .mce-menu-item-sep{border-bottom:1px solid #dcdcde;height:0;margin:5px 0}.mce-menubtn span{margin-left:0;padding-right:3px}.mce-menu-has-icons i.mce-ico:before{margin-right:-2px}.mce-menu.mce-menu-align .mce-menu-item-normal{position:relative}.mce-menu.mce-menu-align .mce-menu-shortcut{bottom:.6em;font-size:.9em}.mce-primary button,.mce-primary button i{text-align:center;color:#fff;text-shadow:none;padding:0;line-height:1.85714285}.mce-window .mce-btn{color:#50575e;background:#f6f7f7;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0;cursor:pointer;border:1px solid #c3c4c7;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-shadow:0 1px 0 #c3c4c7}.mce-window .mce-btn::-moz-focus-inner{border-width:0;border-style:none;padding:0}.mce-window .mce-btn:focus,.mce-window .mce-btn:hover{background:#f6f7f7;border-color:#8c8f94;color:#1d2327}.mce-window .mce-btn:focus{border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8)}.mce-window .mce-btn:active{background:#f0f0f1;border-color:#8c8f94;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);transform:translateY(1px)}.mce-window .mce-btn.mce-disabled{color:#a7aaad!important;border-color:#dcdcde!important;background:#f6f7f7!important;box-shadow:none!important;text-shadow:0 1px 0 #fff!important;cursor:default;transform:none!important}.mce-window .mce-btn.mce-primary{background:#3582c4;border-color:#2271b1 #135e96 #135e96;box-shadow:0 1px 0 #135e96;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #135e96,-1px 0 1px #135e96,0 1px 1px #135e96,1px 0 1px #135e96}.mce-window .mce-btn.mce-primary:focus,.mce-window .mce-btn.mce-primary:hover{background:#4f94d4;border-color:#135e96;color:#fff}.mce-window .mce-btn.mce-primary:focus{box-shadow:0 1px 0 #2271b1,0 0 2px 1px #72aee6}.mce-window .mce-btn.mce-primary:active{background:#2271b1;border-color:#135e96;box-shadow:inset 0 2px 0 #135e96;vertical-align:top}.mce-window .mce-btn.mce-primary.mce-disabled{color:#9ec2e6!important;background:#4f94d4!important;border-color:#3582c4!important;box-shadow:none!important;text-shadow:0 -1px 0 rgba(0,0,0,.1)!important;cursor:default}.mce-menubtn.mce-fixed-width span{overflow-x:hidden;text-overflow:ellipsis;width:82px}.mce-charmap{margin:3px}.mce-charmap td{padding:0;border-color:#dcdcde;cursor:pointer}.mce-charmap td:hover{background:#f6f7f7}.mce-charmap td div{width:18px;height:22px;line-height:1.57142857}.mce-tooltip{margin-top:2px}.mce-tooltip-inner{border-radius:3px;box-shadow:0 3px 5px rgba(0,0,0,.2);color:#fff;font-size:12px}.mce-ico{font-family:tinymce,Arial}.mce-btn-small .mce-ico{font-family:tinymce-small,Arial}.mce-toolbar .mce-ico{color:#50575e;line-height:1;width:20px;height:20px;text-align:center;text-shadow:none;margin:0;padding:0}.qt-dfw{color:#50575e;line-height:1;width:28px;height:26px;text-align:center;text-shadow:none}.mce-toolbar .mce-btn .mce-open{line-height:20px}.mce-toolbar .mce-btn.mce-active .mce-open,.mce-toolbar .mce-btn:focus .mce-open,.mce-toolbar .mce-btn:hover .mce-open{border-right-color:#1d2327}div.mce-notification{right:10%!important;left:10%}.mce-notification button.mce-close{left:6px;top:3px;font-weight:400;color:#50575e}.mce-notification button.mce-close:focus,.mce-notification button.mce-close:hover{color:#000}i.mce-i-aligncenter,i.mce-i-alignjustify,i.mce-i-alignleft,i.mce-i-alignright,i.mce-i-backcolor,i.mce-i-blockquote,i.mce-i-bold,i.mce-i-bullist,i.mce-i-charmap,i.mce-i-dashicon,i.mce-i-dfw,i.mce-i-forecolor,i.mce-i-fullscreen,i.mce-i-help,i.mce-i-hr,i.mce-i-indent,i.mce-i-italic,i.mce-i-link,i.mce-i-ltr,i.mce-i-numlist,i.mce-i-outdent,i.mce-i-pastetext,i.mce-i-pasteword,i.mce-i-redo,i.mce-i-remove,i.mce-i-removeformat,i.mce-i-spellchecker,i.mce-i-strikethrough,i.mce-i-underline,i.mce-i-undo,i.mce-i-unlink,i.mce-i-wp-media-library,i.mce-i-wp_adv,i.mce-i-wp_code,i.mce-i-wp_fullscreen,i.mce-i-wp_help,i.mce-i-wp_more,i.mce-i-wp_page{font:normal 20px/1 dashicons;padding:0;vertical-align:top;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-right:-2px;padding-left:2px}.qt-dfw{font:normal 20px/1 dashicons;vertical-align:top;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}i.mce-i-bold:before{content:"\f200"}i.mce-i-italic:before{content:"\f201"}i.mce-i-bullist:before{content:"\f203"}i.mce-i-numlist:before{content:"\f204"}i.mce-i-blockquote:before{content:"\f205"}i.mce-i-alignleft:before{content:"\f206"}i.mce-i-aligncenter:before{content:"\f207"}i.mce-i-alignright:before{content:"\f208"}i.mce-i-link:before{content:"\f103"}i.mce-i-unlink:before{content:"\f225"}i.mce-i-wp_more:before{content:"\f209"}i.mce-i-strikethrough:before{content:"\f224"}i.mce-i-spellchecker:before{content:"\f210"}.qt-dfw:before,i.mce-i-dfw:before,i.mce-i-fullscreen:before,i.mce-i-wp_fullscreen:before{content:"\f211"}i.mce-i-wp_adv:before{content:"\f212"}i.mce-i-underline:before{content:"\f213"}i.mce-i-alignjustify:before{content:"\f214"}i.mce-i-backcolor:before,i.mce-i-forecolor:before{content:"\f215"}i.mce-i-pastetext:before{content:"\f217"}i.mce-i-removeformat:before{content:"\f218"}i.mce-i-charmap:before{content:"\f220"}i.mce-i-outdent:before{content:"\f221"}i.mce-i-indent:before{content:"\f222"}i.mce-i-undo:before{content:"\f171"}i.mce-i-redo:before{content:"\f172"}i.mce-i-help:before,i.mce-i-wp_help:before{content:"\f223"}i.mce-i-wp-media-library:before{content:"\f104"}i.mce-i-ltr:before{content:"\f320"}i.mce-i-wp_page:before{content:"\f105"}i.mce-i-hr:before{content:"\f460"}i.mce-i-remove:before{content:"\f158"}i.mce-i-wp_code:before{content:"\f475"}.rtl i.mce-i-outdent:before{content:"\f222"}.rtl i.mce-i-indent:before{content:"\f221"}.wp-editor-wrap{position:relative}.wp-editor-tools{position:relative;z-index:1}.wp-editor-tools:after{clear:both;content:"";display:table}.wp-editor-container{clear:both;border:1px solid #dcdcde}.wp-editor-area{font-family:Consolas,Monaco,monospace;font-size:13px;padding:10px;margin:1px 0 0;line-height:150%;border:0;outline:0;display:block;resize:vertical;box-sizing:border-box}.rtl .wp-editor-area{font-family:Tahoma,Monaco,monospace}.locale-he-il .wp-editor-area{font-family:Arial,Monaco,monospace}.wp-editor-container textarea.wp-editor-area{width:100%;margin:0;box-shadow:none}.wp-editor-tabs{float:left}.wp-switch-editor{float:right;box-sizing:content-box;position:relative;top:1px;background:#f0f0f1;color:#646970;cursor:pointer;font-size:13px;line-height:1.46153846;height:20px;margin:5px 5px 0 0;padding:3px 8px 4px;border:1px solid #dcdcde}.wp-switch-editor:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent;color:#1d2327}.html-active .switch-html:focus,.tmce-active .switch-tmce:focus,.wp-switch-editor:active{box-shadow:none}.wp-switch-editor:active{background-color:#f6f7f7;box-shadow:none}.js .tmce-active .wp-editor-area{color:#fff}.tmce-active .quicktags-toolbar{display:none}.html-active .switch-html,.tmce-active .switch-tmce{background:#f6f7f7;color:#50575e;border-bottom-color:#f6f7f7}.wp-media-buttons{float:right}.wp-media-buttons .button{margin-left:5px;margin-bottom:4px;padding-right:7px;padding-left:7px}.wp-media-buttons .button:active{position:relative;top:1px;margin-top:-1px;margin-bottom:1px}.wp-media-buttons .insert-media{padding-right:5px}.wp-media-buttons a{text-decoration:none;color:#3c434a;font-size:12px}.wp-media-buttons img{padding:0 4px;vertical-align:middle}.wp-media-buttons span.wp-media-buttons-icon{display:inline-block;width:20px;height:20px;line-height:1;vertical-align:middle;margin:0 2px}.wp-media-buttons .add_media span.wp-media-buttons-icon{background:0 0}.wp-media-buttons .add_media span.wp-media-buttons-icon:before{font:normal 18px/1 dashicons;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-media-buttons .add_media span.wp-media-buttons-icon:before{content:"\f104"}.mce-content-body dl.wp-caption{max-width:100%}.quicktags-toolbar{padding:3px;position:relative;border-bottom:1px solid #dcdcde;background:#f6f7f7;min-height:30px}.has-dfw .quicktags-toolbar{padding-left:35px}.wp-core-ui .quicktags-toolbar input.button.button-small{margin:2px}.quicktags-toolbar input[value=link]{text-decoration:underline}.quicktags-toolbar input[value=del]{text-decoration:line-through}.quicktags-toolbar input[value="i"]{font-style:italic}.quicktags-toolbar input[value="b"]{font-weight:600}.mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw,.qt-dfw{position:absolute;top:0;left:0}.mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw{margin:7px 0 0 7px}.qt-dfw{margin:5px 0 0 5px}.qt-fullscreen{position:static;margin:2px}@media screen and (max-width:782px){.mce-toolbar .mce-btn button,.qt-dfw{padding:6px 7px}.mce-toolbar .mce-btn-group .mce-btn.mce-primary button{padding:6px 7px 5px}.mce-toolbar .mce-btn-group .mce-btn{margin:1px}.qt-dfw{width:36px;height:34px}.mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw{margin:4px 0 0 4px}.mce-toolbar .mce-colorbutton .mce-preview{right:8px;bottom:6px}.mce-window .mce-btn{padding:2px 0}.has-dfw .quicktags-toolbar,.has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first{padding-left:40px}}@media screen and (min-width:782px){.wp-core-ui .quicktags-toolbar input.button.button-small{font-size:12px;min-height:26px;line-height:2}}#wp_editbtns,#wp_gallerybtns{padding:2px;position:absolute;display:none;z-index:100020}#wp_delgallery,#wp_delimgbtn,#wp_editgallery,#wp_editimgbtn{background-color:#f0f0f1;margin:2px;padding:2px;border:1px solid #8c8f94;border-radius:3px}#wp_delgallery:hover,#wp_delimgbtn:hover,#wp_editgallery:hover,#wp_editimgbtn:hover{border-color:#50575e;background-color:#c3c4c7}#wp-link-wrap{display:none;background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);width:500px;overflow:hidden;margin-right:-250px;margin-top:-125px;position:fixed;top:50%;right:50%;z-index:100105;transition:height .2s,margin-top .2s}#wp-link-backdrop{display:none;position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:100100}#wp-link{position:relative;height:100%}#wp-link-wrap{height:600px;margin-top:-300px}#wp-link-wrap .wp-link-text-field{display:none}#wp-link-wrap.has-text-field .wp-link-text-field{display:block}#link-modal-title{background:#fff;border-bottom:1px solid #dcdcde;font-size:18px;font-weight:600;line-height:2;margin:0;padding:0 16px 0 36px}#wp-link-close{color:#646970;padding:0;position:absolute;top:0;left:0;width:36px;height:36px;text-align:center;background:0 0;border:none;cursor:pointer}#wp-link-close:before{font:normal 20px/36px dashicons;vertical-align:top;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:36px;height:36px;content:"\f158"}#wp-link-close:focus,#wp-link-close:hover{color:#135e96}#wp-link-close:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent;outline-offset:-2px}#wp-link-wrap #link-selector{-webkit-overflow-scrolling:touch;padding:0 16px;position:absolute;top:calc(2.15384615em + 16px);right:0;left:0;bottom:calc(2.15384615em + 19px);display:flex;flex-direction:column;overflow:auto}#wp-link ol,#wp-link ul{list-style:none;margin:0;padding:0}#wp-link input[type=text]{box-sizing:border-box}#wp-link #link-options{padding:8px 0 12px}#wp-link p.howto{margin:3px 0}#wp-link p.howto a{text-decoration:none;color:inherit}#wp-link label input[type=text]{margin-top:5px;width:70%}#wp-link #link-options label span,#wp-link #search-panel label span.search-label{display:inline-block;width:120px;text-align:left;padding-left:5px;max-width:24%;vertical-align:middle;word-wrap:break-word}#wp-link .link-search-field{width:250px;max-width:70%}#wp-link .link-search-wrapper{margin:5px 0 9px;display:block}#wp-link .query-results{position:absolute;width:calc(100% - 32px)}#wp-link .link-search-wrapper .spinner{float:none;margin:-3px 4px 0 0}#wp-link .link-target{padding:3px 0 0}#wp-link .link-target label{max-width:70%}#wp-link .query-results{border:1px #dcdcde solid;margin:0 0 12px;background:#fff;overflow:auto;max-height:290px}#wp-link li{clear:both;margin-bottom:0;border-bottom:1px solid #f0f0f1;color:#2c3338;padding:4px 10px 4px 6px;cursor:pointer;position:relative}#wp-link .query-notice{padding:0;border-bottom:1px solid #dcdcde;background-color:#fff;color:#000}#wp-link .query-notice .query-notice-default,#wp-link .query-notice .query-notice-hint{display:block;padding:6px;border-right:4px solid #72aee6}#wp-link .unselectable.no-matches-found{padding:0;border-bottom:1px solid #dcdcde;background-color:#f6f7f7}#wp-link .no-matches-found .item-title{display:block;padding:6px;border-right:4px solid #d63638}#wp-link .query-results em{font-style:normal}#wp-link li:hover{background:#f0f6fc;color:#101517}#wp-link li.unselectable{border-bottom:1px solid #dcdcde}#wp-link li.unselectable:hover{background:#fff;cursor:auto;color:#2c3338}#wp-link li.selected{background:#dcdcde;color:#2c3338}#wp-link li.selected .item-title{font-weight:600}#wp-link li:last-child{border:none}#wp-link .item-title{display:inline-block;width:80%;width:calc(100% - 68px);word-wrap:break-word}#wp-link .item-info{text-transform:uppercase;color:#646970;font-size:11px;position:absolute;left:5px;top:5px}#wp-link .river-waiting{display:none;padding:10px 0}#wp-link .submitbox{padding:8px 16px;background:#fff;border-top:1px solid #dcdcde;position:absolute;bottom:0;right:0;left:0}#wp-link-cancel{line-height:1.92307692;float:right}#wp-link-update{line-height:1.76923076;float:left}#wp-link-submit{float:left}@media screen and (max-width:782px){#link-selector{padding:0 16px 60px}#wp-link-wrap #link-selector{bottom:calc(2.71428571em + 23px)}#wp-link-cancel{line-height:2.46153846}#wp-link .link-target{padding-top:10px}#wp-link .submitbox .button{margin-bottom:0}}@media screen and (max-width:520px){#wp-link-wrap{width:auto;margin-right:0;right:10px;left:10px;max-width:500px}}@media screen and (max-height:620px){#wp-link-wrap{transition:none;height:auto;margin-top:0;top:10px;bottom:10px}#link-selector{overflow:auto}}@media screen and (max-height:290px){#wp-link-wrap{height:auto;margin-top:0;top:10px;bottom:10px}#link-selector{overflow:auto;height:calc(100% - 92px);padding-bottom:2px}}div.wp-link-preview{float:right;margin:5px;max-width:694px;overflow:hidden;text-overflow:ellipsis}div.wp-link-preview a{color:#2271b1;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;cursor:pointer}div.wp-link-preview a.wplink-url-error{color:#d63638}div.wp-link-input{float:right;margin:2px;max-width:694px}div.wp-link-input input{width:300px;padding:3px;box-sizing:border-box;line-height:1.28571429;min-height:26px}.mce-toolbar div.wp-link-input~.mce-btn,.mce-toolbar div.wp-link-preview~.mce-btn{margin:2px 1px}.mce-inline-toolbar-grp .mce-btn-group .mce-btn:last-child{margin-left:2px}.ui-autocomplete.wplink-autocomplete{z-index:100110;max-height:200px;overflow-y:auto;padding:0;margin:0;list-style:none;position:absolute;border:1px solid #4f94d4;box-shadow:0 1px 2px rgba(79,148,212,.8);background-color:#fff}.ui-autocomplete.wplink-autocomplete li{margin-bottom:0;padding:4px 10px;clear:both;white-space:normal;text-align:right}.ui-autocomplete.wplink-autocomplete li .wp-editor-float-right{float:left}.ui-autocomplete.wplink-autocomplete li.ui-state-focus{background-color:#dcdcde;cursor:pointer}@media screen and (max-width:782px){div.wp-link-input,div.wp-link-preview{max-width:70%;max-width:calc(100% - 86px)}div.wp-link-preview{margin:8px 5px 8px 0}div.wp-link-input{width:300px}div.wp-link-input input{width:100%;font-size:16px;padding:5px}}.mce-fullscreen{z-index:100010}.rtl .quicktags-toolbar input,.rtl .wp-switch-editor{font-family:Tahoma,sans-serif}.mce-rtl .mce-flow-layout .mce-flow-layout-item>div{direction:rtl}.mce-rtl .mce-listbox i.mce-caret{left:6px}html:lang(he-il) .rtl .quicktags-toolbar input,html:lang(he-il) .rtl .wp-switch-editor{font-family:Arial,sans-serif}@media print,(min-resolution:120dpi){.wp-media-buttons .add_media span.wp-media-buttons-icon{background:0 0}} \ No newline at end of file
+.mce-tinymce{box-shadow:none}.mce-container,.mce-container *,.mce-widget,.mce-widget *{color:inherit;font-family:inherit}.mce-container .mce-monospace,.mce-widget .mce-monospace{font-family:Consolas,Monaco,monospace;font-size:13px;line-height:150%}#mce-modal-block,#mce-modal-block.mce-fade{opacity:.7;transition:none;background:#000}.mce-window{border-radius:0;box-shadow:0 3px 6px rgba(0,0,0,.3);-webkit-font-smoothing:subpixel-antialiased;transition:none}.mce-window .mce-container-body.mce-abs-layout{overflow:visible}.mce-window .mce-window-head{background:#fff;border-bottom:1px solid #dcdcde;padding:0;min-height:36px}.mce-window .mce-window-head .mce-title{color:#3c434a;font-size:18px;font-weight:600;line-height:36px;margin:0;padding:0 16px 0 36px}.mce-window .mce-window-head .mce-close,.mce-window-head .mce-close .mce-i-remove{color:transparent;top:0;left:0;width:36px;height:36px;padding:0;line-height:36px;text-align:center}.mce-window-head .mce-close .mce-i-remove:before{font:normal 20px/36px dashicons;text-align:center;color:#646970;width:36px;height:36px;display:block}.mce-window-head .mce-close:focus .mce-i-remove:before,.mce-window-head .mce-close:hover .mce-i-remove:before{color:#135e96}.mce-window-head .mce-close:focus .mce-i-remove,div.mce-tab:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-window .mce-window-head .mce-dragh{width:calc(100% - 36px)}.mce-window .mce-foot{border-top:1px solid #dcdcde}#wp-link .query-results,.mce-checkbox i.mce-i-checkbox,.mce-textbox{border:1px solid #dcdcde;border-radius:0;box-shadow:inset 0 1px 2px rgba(0,0,0,.07);transition:.05s all ease-in-out}#wp-link .query-results:focus,.mce-checkbox:focus i.mce-i-checkbox,.mce-textbox.mce-focus,.mce-textbox:focus{border-color:#4f94d4;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-window .mce-wp-help{height:360px;width:460px;overflow:auto}.mce-window .mce-wp-help *{box-sizing:border-box}.mce-window .mce-wp-help>.mce-container-body{width:auto!important}.mce-window .wp-editor-help{padding:10px 20px 0 10px}.mce-window .wp-editor-help h2,.mce-window .wp-editor-help p{margin:8px 0;white-space:normal;font-size:14px;font-weight:400}.mce-window .wp-editor-help table{width:100%;margin-bottom:20px}.mce-window .wp-editor-help table.wp-help-single{margin:0 8px 20px}.mce-window .wp-editor-help table.fixed{table-layout:fixed}.mce-window .wp-editor-help table.fixed td:nth-child(odd),.mce-window .wp-editor-help table.fixed th:nth-child(odd){width:12%}.mce-window .wp-editor-help table.fixed td:nth-child(2n),.mce-window .wp-editor-help table.fixed th:nth-child(2n){width:38%}.mce-window .wp-editor-help table.fixed th:nth-child(odd){padding:5px 0 0}.mce-window .wp-editor-help td,.mce-window .wp-editor-help th{font-size:13px;padding:5px;vertical-align:middle;word-wrap:break-word;white-space:normal}.mce-window .wp-editor-help th{font-weight:600;padding-bottom:0}.mce-window .wp-editor-help kbd{font-family:monospace;padding:2px 7px 3px;font-weight:600;margin:0;background:#f0f0f1;background:rgba(0,0,0,.08)}.mce-window .wp-help-th-center td:nth-child(odd),.mce-window .wp-help-th-center th:nth-child(odd){text-align:center}.mce-floatpanel.mce-popover,.mce-menu{border-color:rgba(0,0,0,.15);border-radius:0;box-shadow:0 3px 5px rgba(0,0,0,.2)}.mce-floatpanel.mce-popover.mce-bottom,.mce-menu{margin-top:2px}.mce-floatpanel .mce-arrow{display:none}.mce-menu .mce-container-body{min-width:160px}.mce-menu-item{border:none;margin-bottom:2px;padding:6px 12px 6px 15px}.mce-menu-has-icons i.mce-ico{line-height:20px}div.mce-panel{border:0;background:#fff}.mce-panel.mce-menu{border:1px solid #dcdcde}div.mce-tab{line-height:13px}div.mce-toolbar-grp{border-bottom:1px solid #dcdcde;background:#f6f7f7;padding:0;position:relative}div.mce-inline-toolbar-grp{border:1px solid #a7aaad;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.15);box-sizing:border-box;margin-bottom:8px;position:absolute;-webkit-user-select:none;user-select:none;max-width:98%;z-index:100100}div.mce-inline-toolbar-grp>div.mce-stack-layout{padding:1px}div.mce-inline-toolbar-grp.mce-arrow-up{margin-bottom:0;margin-top:8px}div.mce-inline-toolbar-grp:after,div.mce-inline-toolbar-grp:before{position:absolute;right:50%;display:block;width:0;height:0;border-style:solid;border-color:transparent;content:""}div.mce-inline-toolbar-grp.mce-arrow-up:before{top:-9px;border-bottom-color:#a7aaad;border-width:0 9px 9px;margin-right:-9px}div.mce-inline-toolbar-grp.mce-arrow-down:before{bottom:-9px;border-top-color:#a7aaad;border-width:9px 9px 0;margin-right:-9px}div.mce-inline-toolbar-grp.mce-arrow-up:after{top:-8px;border-bottom-color:#f6f7f7;border-width:0 8px 8px;margin-right:-8px}div.mce-inline-toolbar-grp.mce-arrow-down:after{bottom:-8px;border-top-color:#f6f7f7;border-width:8px 8px 0;margin-right:-8px}div.mce-inline-toolbar-grp.mce-arrow-left:after,div.mce-inline-toolbar-grp.mce-arrow-left:before{margin:0}div.mce-inline-toolbar-grp.mce-arrow-left:before{right:20px}div.mce-inline-toolbar-grp.mce-arrow-left:after{right:21px}div.mce-inline-toolbar-grp.mce-arrow-right:after,div.mce-inline-toolbar-grp.mce-arrow-right:before{right:auto;margin:0}div.mce-inline-toolbar-grp.mce-arrow-right:before{left:20px}div.mce-inline-toolbar-grp.mce-arrow-right:after{left:21px}div.mce-inline-toolbar-grp.mce-arrow-full{left:0}div.mce-inline-toolbar-grp.mce-arrow-full>div{width:100%;overflow-x:auto}div.mce-toolbar-grp>div{padding:3px}.has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first{padding-left:32px}.mce-toolbar .mce-btn-group{margin:0}.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}div.mce-statusbar{border-top:1px solid #dcdcde}div.mce-path{padding:2px 10px;margin:0}.mce-path,.mce-path .mce-divider,.mce-path-item{font-size:12px}.mce-toolbar .mce-btn,.qt-dfw{border-color:transparent;background:0 0;box-shadow:none;text-shadow:none;cursor:pointer}.mce-btn .mce-txt{direction:inherit;text-align:inherit}.mce-toolbar .mce-btn-group .mce-btn,.qt-dfw{border:1px solid transparent;margin:2px;border-radius:2px}.mce-toolbar .mce-btn-group .mce-btn:focus,.mce-toolbar .mce-btn-group .mce-btn:hover,.qt-dfw:focus,.qt-dfw:hover{background:#f6f7f7;color:#1d2327;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-toolbar .mce-btn-group .mce-btn.mce-active,.mce-toolbar .mce-btn-group .mce-btn:active,.qt-dfw.active{background:#f0f0f1;border-color:#50575e}.mce-btn.mce-active,.mce-btn.mce-active button,.mce-btn.mce-active i,.mce-btn.mce-active:hover button,.mce-btn.mce-active:hover i{color:inherit}.mce-toolbar .mce-btn-group .mce-btn.mce-active:focus,.mce-toolbar .mce-btn-group .mce-btn.mce-active:hover{border-color:#1d2327}.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:focus,.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:hover{color:#a7aaad;background:0 0;border-color:#dcdcde;text-shadow:0 1px 0 #fff;box-shadow:none}.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:focus{border-color:#50575e}.mce-toolbar .mce-btn-group .mce-first,.mce-toolbar .mce-btn-group .mce-last{border-color:transparent}.mce-toolbar .mce-btn button,.qt-dfw{padding:2px 3px;line-height:normal}.mce-toolbar .mce-listbox button{font-size:13px;line-height:1.53846153;padding-right:6px;padding-left:20px}.mce-toolbar .mce-btn i{text-shadow:none}.mce-toolbar .mce-btn-group>div{white-space:normal}.mce-toolbar .mce-colorbutton .mce-open{border-left:0}.mce-toolbar .mce-colorbutton .mce-preview{margin:0;padding:0;top:auto;bottom:2px;right:3px;height:3px;width:20px;background:#50575e}.mce-toolbar .mce-btn-group .mce-btn.mce-primary{min-width:0;background:#3582c4;border-color:#2271b1 #135e96 #135e96;box-shadow:0 1px 0 #135e96;color:#fff;text-decoration:none;text-shadow:none}.mce-toolbar .mce-btn-group .mce-btn.mce-primary button{padding:2px 3px 1px}.mce-toolbar .mce-btn-group .mce-btn.mce-primary .mce-ico{color:#fff}.mce-toolbar .mce-btn-group .mce-btn.mce-primary:focus,.mce-toolbar .mce-btn-group .mce-btn.mce-primary:hover{background:#4f94d4;border-color:#135e96;color:#fff}.mce-toolbar .mce-btn-group .mce-btn.mce-primary:focus{box-shadow:0 0 1px 1px #72aee6}.mce-toolbar .mce-btn-group .mce-btn.mce-primary:active{background:#2271b1;border-color:#135e96;box-shadow:inset 0 2px 0 #135e96}.mce-toolbar .mce-btn-group .mce-btn.mce-listbox{border-radius:0;direction:rtl;background:#fff;border:1px solid #dcdcde}.mce-toolbar .mce-btn-group .mce-btn.mce-listbox:focus,.mce-toolbar .mce-btn-group .mce-btn.mce-listbox:hover{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-panel .mce-btn i.mce-caret{border-top:6px solid #50575e;margin-right:2px;margin-left:2px}.mce-listbox i.mce-caret{left:4px}.mce-panel .mce-btn:focus i.mce-caret,.mce-panel .mce-btn:hover i.mce-caret{border-top-color:#1d2327}.mce-panel .mce-active i.mce-caret{border-top:0;border-bottom:6px solid #1d2327;margin-top:7px}.mce-listbox.mce-active i.mce-caret{margin-top:-3px}.mce-toolbar .mce-splitbtn:hover .mce-open{border-left-color:transparent}.mce-toolbar .mce-splitbtn .mce-open.mce-active{background:0 0;outline:0}.mce-menu .mce-menu-item.mce-active.mce-menu-item-normal,.mce-menu .mce-menu-item.mce-active.mce-menu-item-preview,.mce-menu .mce-menu-item.mce-selected,.mce-menu .mce-menu-item:focus,.mce-menu .mce-menu-item:hover{background:#2271b1;color:#fff}.mce-menu .mce-menu-item.mce-selected .mce-caret,.mce-menu .mce-menu-item:focus .mce-caret,.mce-menu .mce-menu-item:hover .mce-caret{border-right-color:#fff}.rtl .mce-menu .mce-menu-item.mce-selected .mce-caret,.rtl .mce-menu .mce-menu-item:focus .mce-caret,.rtl .mce-menu .mce-menu-item:hover .mce-caret{border-left-color:inherit;border-right-color:#fff}.mce-menu .mce-menu-item.mce-active .mce-menu-shortcut,.mce-menu .mce-menu-item.mce-disabled:hover .mce-ico,.mce-menu .mce-menu-item.mce-disabled:hover .mce-text,.mce-menu .mce-menu-item.mce-selected .mce-ico,.mce-menu .mce-menu-item.mce-selected .mce-text,.mce-menu .mce-menu-item:focus .mce-ico,.mce-menu .mce-menu-item:focus .mce-menu-shortcut,.mce-menu .mce-menu-item:focus .mce-text,.mce-menu .mce-menu-item:hover .mce-ico,.mce-menu .mce-menu-item:hover .mce-menu-shortcut,.mce-menu .mce-menu-item:hover .mce-text{color:inherit}.mce-menu .mce-menu-item.mce-disabled{cursor:default}.mce-menu .mce-menu-item.mce-disabled:hover{background:#c3c4c7}div.mce-menubar{border-color:#dcdcde;background:#fff;border-width:0 0 1px}.mce-menubar .mce-menubtn.mce-active,.mce-menubar .mce-menubtn:focus,.mce-menubar .mce-menubtn:hover{border-color:transparent;background:0 0}.mce-menubar .mce-menubtn:focus{color:#043959;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-menu-item-sep:hover,div.mce-menu .mce-menu-item-sep{border-bottom:1px solid #dcdcde;height:0;margin:5px 0}.mce-menubtn span{margin-left:0;padding-right:3px}.mce-menu-has-icons i.mce-ico:before{margin-right:-2px}.mce-menu.mce-menu-align .mce-menu-item-normal{position:relative}.mce-menu.mce-menu-align .mce-menu-shortcut{bottom:.6em;font-size:.9em}.mce-primary button,.mce-primary button i{text-align:center;color:#fff;text-shadow:none;padding:0;line-height:1.85714285}.mce-window .mce-btn{color:#50575e;background:#f6f7f7;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0;cursor:pointer;border:1px solid #c3c4c7;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-shadow:0 1px 0 #c3c4c7}.mce-window .mce-btn::-moz-focus-inner{border-width:0;border-style:none;padding:0}.mce-window .mce-btn:focus,.mce-window .mce-btn:hover{background:#f6f7f7;border-color:#8c8f94;color:#1d2327}.mce-window .mce-btn:focus{border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8)}.mce-window .mce-btn:active{background:#f0f0f1;border-color:#8c8f94;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);transform:translateY(1px)}.mce-window .mce-btn.mce-disabled{color:#a7aaad!important;border-color:#dcdcde!important;background:#f6f7f7!important;box-shadow:none!important;text-shadow:0 1px 0 #fff!important;cursor:default;transform:none!important}.mce-window .mce-btn.mce-primary{background:#3582c4;border-color:#2271b1 #135e96 #135e96;box-shadow:0 1px 0 #135e96;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #135e96,-1px 0 1px #135e96,0 1px 1px #135e96,1px 0 1px #135e96}.mce-window .mce-btn.mce-primary:focus,.mce-window .mce-btn.mce-primary:hover{background:#4f94d4;border-color:#135e96;color:#fff}.mce-window .mce-btn.mce-primary:focus{box-shadow:0 1px 0 #2271b1,0 0 2px 1px #72aee6}.mce-window .mce-btn.mce-primary:active{background:#2271b1;border-color:#135e96;box-shadow:inset 0 2px 0 #135e96;vertical-align:top}.mce-window .mce-btn.mce-primary.mce-disabled{color:#9ec2e6!important;background:#4f94d4!important;border-color:#3582c4!important;box-shadow:none!important;text-shadow:0 -1px 0 rgba(0,0,0,.1)!important;cursor:default}.mce-menubtn.mce-fixed-width span{overflow-x:hidden;text-overflow:ellipsis;width:82px}.mce-charmap{margin:3px}.mce-charmap td{padding:0;border-color:#dcdcde;cursor:pointer}.mce-charmap td:hover{background:#f6f7f7}.mce-charmap td div{width:18px;height:22px;line-height:1.57142857}.mce-tooltip{margin-top:2px}.mce-tooltip-inner{border-radius:3px;box-shadow:0 3px 5px rgba(0,0,0,.2);color:#fff;font-size:12px}.mce-ico{font-family:tinymce,Arial}.mce-btn-small .mce-ico{font-family:tinymce-small,Arial}.mce-toolbar .mce-ico{color:#50575e;line-height:1;width:20px;height:20px;text-align:center;text-shadow:none;margin:0;padding:0}.qt-dfw{color:#50575e;line-height:1;width:28px;height:26px;text-align:center;text-shadow:none}.mce-toolbar .mce-btn .mce-open{line-height:20px}.mce-toolbar .mce-btn.mce-active .mce-open,.mce-toolbar .mce-btn:focus .mce-open,.mce-toolbar .mce-btn:hover .mce-open{border-right-color:#1d2327}div.mce-notification{right:10%!important;left:10%}.mce-notification button.mce-close{left:6px;top:3px;font-weight:400;color:#50575e}.mce-notification button.mce-close:focus,.mce-notification button.mce-close:hover{color:#000}i.mce-i-aligncenter,i.mce-i-alignjustify,i.mce-i-alignleft,i.mce-i-alignright,i.mce-i-backcolor,i.mce-i-blockquote,i.mce-i-bold,i.mce-i-bullist,i.mce-i-charmap,i.mce-i-dashicon,i.mce-i-dfw,i.mce-i-forecolor,i.mce-i-fullscreen,i.mce-i-help,i.mce-i-hr,i.mce-i-indent,i.mce-i-italic,i.mce-i-link,i.mce-i-ltr,i.mce-i-numlist,i.mce-i-outdent,i.mce-i-pastetext,i.mce-i-pasteword,i.mce-i-redo,i.mce-i-remove,i.mce-i-removeformat,i.mce-i-spellchecker,i.mce-i-strikethrough,i.mce-i-underline,i.mce-i-undo,i.mce-i-unlink,i.mce-i-wp-media-library,i.mce-i-wp_adv,i.mce-i-wp_code,i.mce-i-wp_fullscreen,i.mce-i-wp_help,i.mce-i-wp_more,i.mce-i-wp_page{font:normal 20px/1 dashicons;padding:0;vertical-align:top;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-right:-2px;padding-left:2px}.qt-dfw{font:normal 20px/1 dashicons;vertical-align:top;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}i.mce-i-bold:before{content:"\f200"}i.mce-i-italic:before{content:"\f201"}i.mce-i-bullist:before{content:"\f203"}i.mce-i-numlist:before{content:"\f204"}i.mce-i-blockquote:before{content:"\f205"}i.mce-i-alignleft:before{content:"\f206"}i.mce-i-aligncenter:before{content:"\f207"}i.mce-i-alignright:before{content:"\f208"}i.mce-i-link:before{content:"\f103"}i.mce-i-unlink:before{content:"\f225"}i.mce-i-wp_more:before{content:"\f209"}i.mce-i-strikethrough:before{content:"\f224"}i.mce-i-spellchecker:before{content:"\f210"}.qt-dfw:before,i.mce-i-dfw:before,i.mce-i-fullscreen:before,i.mce-i-wp_fullscreen:before{content:"\f211"}i.mce-i-wp_adv:before{content:"\f212"}i.mce-i-underline:before{content:"\f213"}i.mce-i-alignjustify:before{content:"\f214"}i.mce-i-backcolor:before,i.mce-i-forecolor:before{content:"\f215"}i.mce-i-pastetext:before{content:"\f217"}i.mce-i-removeformat:before{content:"\f218"}i.mce-i-charmap:before{content:"\f220"}i.mce-i-outdent:before{content:"\f221"}i.mce-i-indent:before{content:"\f222"}i.mce-i-undo:before{content:"\f171"}i.mce-i-redo:before{content:"\f172"}i.mce-i-help:before,i.mce-i-wp_help:before{content:"\f223"}i.mce-i-wp-media-library:before{content:"\f104"}i.mce-i-ltr:before{content:"\f320"}i.mce-i-wp_page:before{content:"\f105"}i.mce-i-hr:before{content:"\f460"}i.mce-i-remove:before{content:"\f158"}i.mce-i-wp_code:before{content:"\f475"}.rtl i.mce-i-outdent:before{content:"\f222"}.rtl i.mce-i-indent:before{content:"\f221"}.wp-editor-wrap{position:relative}.wp-editor-tools{position:relative;z-index:1}.wp-editor-tools:after{clear:both;content:"";display:table}.wp-editor-container{clear:both;border:1px solid #dcdcde}.wp-editor-area{font-family:Consolas,Monaco,monospace;font-size:13px;padding:10px;margin:1px 0 0;line-height:150%;border:0;outline:0;display:block;resize:vertical;box-sizing:border-box}.rtl .wp-editor-area{font-family:Tahoma,Monaco,monospace}.locale-he-il .wp-editor-area{font-family:Arial,Monaco,monospace}.wp-editor-container textarea.wp-editor-area{width:100%;margin:0;box-shadow:none}.wp-editor-tabs{float:left}.wp-switch-editor{float:right;box-sizing:content-box;position:relative;top:1px;background:#f0f0f1;color:#646970;cursor:pointer;font-size:13px;line-height:1.46153846;height:20px;margin:5px 5px 0 0;padding:3px 8px 4px;border:1px solid #dcdcde}.wp-switch-editor:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent;color:#1d2327}.html-active .switch-html:focus,.tmce-active .switch-tmce:focus,.wp-switch-editor:active{box-shadow:none}.wp-switch-editor:active{background-color:#f6f7f7;box-shadow:none}.js .tmce-active .wp-editor-area{color:#fff}.tmce-active .quicktags-toolbar{display:none}.html-active .switch-html,.tmce-active .switch-tmce{background:#f6f7f7;color:#50575e;border-bottom-color:#f6f7f7}.wp-media-buttons{float:right}.wp-media-buttons .button{margin-left:5px;margin-bottom:4px;padding-right:7px;padding-left:7px}.wp-media-buttons .button:active{position:relative;top:1px;margin-top:-1px;margin-bottom:1px}.wp-media-buttons .insert-media{padding-right:5px}.wp-media-buttons a{text-decoration:none;color:#3c434a;font-size:12px}.wp-media-buttons img{padding:0 4px;vertical-align:middle}.wp-media-buttons span.wp-media-buttons-icon{display:inline-block;width:20px;height:20px;line-height:1;vertical-align:middle;margin:0 2px}.wp-media-buttons .add_media span.wp-media-buttons-icon{background:0 0}.wp-media-buttons .add_media span.wp-media-buttons-icon:before{font:normal 18px/1 dashicons;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-media-buttons .add_media span.wp-media-buttons-icon:before{content:"\f104"}.mce-content-body dl.wp-caption{max-width:100%}.quicktags-toolbar{padding:3px;position:relative;border-bottom:1px solid #dcdcde;background:#f6f7f7;min-height:30px}.has-dfw .quicktags-toolbar{padding-left:35px}.wp-core-ui .quicktags-toolbar input.button.button-small{margin:2px}.quicktags-toolbar input[value=link]{text-decoration:underline}.quicktags-toolbar input[value=del]{text-decoration:line-through}.quicktags-toolbar input[value="i"]{font-style:italic}.quicktags-toolbar input[value="b"]{font-weight:600}.mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw,.qt-dfw{position:absolute;top:0;left:0}.mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw{margin:7px 0 0 7px}.qt-dfw{margin:5px 0 0 5px}.qt-fullscreen{position:static;margin:2px}@media screen and (max-width:782px){.mce-toolbar .mce-btn button,.qt-dfw{padding:6px 7px}.mce-toolbar .mce-btn-group .mce-btn.mce-primary button{padding:6px 7px 5px}.mce-toolbar .mce-btn-group .mce-btn{margin:1px}.qt-dfw{width:36px;height:34px}.mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw{margin:4px 0 0 4px}.mce-toolbar .mce-colorbutton .mce-preview{right:8px;bottom:6px}.mce-window .mce-btn{padding:2px 0}.has-dfw .quicktags-toolbar,.has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first{padding-left:40px}}@media screen and (min-width:782px){.wp-core-ui .quicktags-toolbar input.button.button-small{font-size:12px;min-height:26px;line-height:2}}#wp_editbtns,#wp_gallerybtns{padding:2px;position:absolute;display:none;z-index:100020}#wp_delgallery,#wp_delimgbtn,#wp_editgallery,#wp_editimgbtn{background-color:#f0f0f1;margin:2px;padding:2px;border:1px solid #8c8f94;border-radius:3px}#wp_delgallery:hover,#wp_delimgbtn:hover,#wp_editgallery:hover,#wp_editimgbtn:hover{border-color:#50575e;background-color:#c3c4c7}#wp-link-wrap{display:none;background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);width:500px;overflow:hidden;margin-right:-250px;margin-top:-125px;position:fixed;top:50%;right:50%;z-index:100105;transition:height .2s,margin-top .2s}#wp-link-backdrop{display:none;position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:100100}#wp-link{position:relative;height:100%}#wp-link-wrap{height:600px;margin-top:-300px}#wp-link-wrap .wp-link-text-field{display:none}#wp-link-wrap.has-text-field .wp-link-text-field{display:block}#link-modal-title{background:#fff;border-bottom:1px solid #dcdcde;font-size:18px;font-weight:600;line-height:2;margin:0;padding:0 16px 0 36px}#wp-link-close{color:#646970;padding:0;position:absolute;top:0;left:0;width:36px;height:36px;text-align:center;background:0 0;border:none;cursor:pointer}#wp-link-close:before{font:normal 20px/36px dashicons;vertical-align:top;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:36px;height:36px;content:"\f158"}#wp-link-close:focus,#wp-link-close:hover{color:#135e96}#wp-link-close:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent;outline-offset:-2px}#wp-link-wrap #link-selector{-webkit-overflow-scrolling:touch;padding:0 16px;position:absolute;top:calc(2.15384615em + 16px);right:0;left:0;bottom:calc(2.15384615em + 19px);display:flex;flex-direction:column;overflow:auto}#wp-link ol,#wp-link ul{list-style:none;margin:0;padding:0}#wp-link input[type=text]{box-sizing:border-box}#wp-link #link-options{padding:8px 0 12px}#wp-link p.howto{margin:3px 0}#wp-link p.howto a{text-decoration:none;color:inherit}#wp-link label input[type=text]{margin-top:5px;width:70%}#wp-link #link-options label span,#wp-link #search-panel label span.search-label{display:inline-block;width:120px;text-align:left;padding-left:5px;max-width:24%;vertical-align:middle;word-wrap:break-word}#wp-link .link-search-field{width:250px;max-width:70%}#wp-link .link-search-wrapper{margin:5px 0 9px;display:block}#wp-link .query-results{position:absolute;width:calc(100% - 32px)}#wp-link .link-search-wrapper .spinner{float:none;margin:-3px 4px 0 0}#wp-link .link-target{padding:3px 0 0}#wp-link .link-target label{max-width:70%}#wp-link .query-results{border:1px #dcdcde solid;margin:0 0 12px;background:#fff;overflow:auto;max-height:290px}#wp-link li{clear:both;margin-bottom:0;border-bottom:1px solid #f0f0f1;color:#2c3338;padding:4px 10px 4px 6px;cursor:pointer;position:relative}#wp-link .query-notice{padding:0;border-bottom:1px solid #dcdcde;background-color:#fff;color:#000}#wp-link .query-notice .query-notice-default,#wp-link .query-notice .query-notice-hint{display:block;padding:6px;border-right:4px solid #72aee6}#wp-link .unselectable.no-matches-found{padding:0;border-bottom:1px solid #dcdcde;background-color:#f6f7f7}#wp-link .no-matches-found .item-title{display:block;padding:6px;border-right:4px solid #d63638}#wp-link .query-results em{font-style:normal}#wp-link li:hover{background:#f0f6fc;color:#101517}#wp-link li.unselectable{border-bottom:1px solid #dcdcde}#wp-link li.unselectable:hover{background:#fff;cursor:auto;color:#2c3338}#wp-link li.selected{background:#dcdcde;color:#2c3338}#wp-link li.selected .item-title{font-weight:600}#wp-link li:last-child{border:none}#wp-link .item-title{display:inline-block;width:80%;width:calc(100% - 68px);word-wrap:break-word}#wp-link .item-info{text-transform:uppercase;color:#646970;font-size:11px;position:absolute;left:5px;top:5px}#wp-link .river-waiting{display:none;padding:10px 0}#wp-link .submitbox{padding:8px 16px;background:#fff;border-top:1px solid #dcdcde;position:absolute;bottom:0;right:0;left:0}#wp-link-cancel{line-height:1.92307692;float:right}#wp-link-update{line-height:1.76923076;float:left}#wp-link-submit{float:left}@media screen and (max-width:782px){#link-selector{padding:0 16px 60px}#wp-link-wrap #link-selector{bottom:calc(2.71428571em + 23px)}#wp-link-cancel{line-height:2.46153846}#wp-link .link-target{padding-top:10px}#wp-link .submitbox .button{margin-bottom:0}}@media screen and (max-width:520px){#wp-link-wrap{width:auto;margin-right:0;right:10px;left:10px;max-width:500px}}@media screen and (max-height:620px){#wp-link-wrap{transition:none;height:auto;margin-top:0;top:10px;bottom:10px}#link-selector{overflow:auto}}@media screen and (max-height:290px){#wp-link-wrap{height:auto;margin-top:0;top:10px;bottom:10px}#link-selector{overflow:auto;height:calc(100% - 92px);padding-bottom:2px}}div.wp-link-preview{float:right;margin:5px;max-width:694px;overflow:hidden;text-overflow:ellipsis}div.wp-link-preview a{color:#2271b1;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;cursor:pointer}div.wp-link-preview a.wplink-url-error{color:#d63638}.mce-inline-toolbar-grp div.mce-flow-layout-item>div{display:flex;align-items:flex-end}div.wp-link-input{float:right;margin:2px;max-width:694px}div.wp-link-input label{margin-bottom:4px;display:block}div.wp-link-input input{width:300px;padding:3px;box-sizing:border-box;line-height:1.28571429;min-height:26px}.mce-toolbar div.wp-link-input~.mce-btn,.mce-toolbar div.wp-link-preview~.mce-btn{margin:2px 1px}.mce-inline-toolbar-grp .mce-btn-group .mce-btn:last-child{margin-left:2px}.ui-autocomplete.wplink-autocomplete{z-index:100110;max-height:200px;overflow-y:auto;padding:0;margin:0;list-style:none;position:absolute;border:1px solid #4f94d4;box-shadow:0 1px 2px rgba(79,148,212,.8);background-color:#fff}.ui-autocomplete.wplink-autocomplete li{margin-bottom:0;padding:4px 10px;clear:both;white-space:normal;text-align:right}.ui-autocomplete.wplink-autocomplete li .wp-editor-float-right{float:left}.ui-autocomplete.wplink-autocomplete li.ui-state-focus{background-color:#dcdcde;cursor:pointer}@media screen and (max-width:782px){div.wp-link-input,div.wp-link-preview{max-width:70%;max-width:calc(100% - 86px)}div.wp-link-preview{margin:8px 5px 8px 0}div.wp-link-input{width:300px}div.wp-link-input input{width:100%;font-size:16px;padding:5px}}.mce-fullscreen{z-index:100010}.rtl .quicktags-toolbar input,.rtl .wp-switch-editor{font-family:Tahoma,sans-serif}.mce-rtl .mce-flow-layout .mce-flow-layout-item>div{direction:rtl}.mce-rtl .mce-listbox i.mce-caret{left:6px}html:lang(he-il) .rtl .quicktags-toolbar input,html:lang(he-il) .rtl .wp-switch-editor{font-family:Arial,sans-serif}@media print,(min-resolution:120dpi){.wp-media-buttons .add_media span.wp-media-buttons-icon{background:0 0}} \ No newline at end of file
diff --git a/wp-includes/css/editor.css b/wp-includes/css/editor.css
index 86952c7..be4be31 100644
--- a/wp-includes/css/editor.css
+++ b/wp-includes/css/editor.css
@@ -1737,12 +1737,22 @@ div.wp-link-preview a.wplink-url-error {
color: #d63638;
}
+.mce-inline-toolbar-grp div.mce-flow-layout-item > div {
+ display: flex;
+ align-items: flex-end;
+}
+
div.wp-link-input {
float: left;
margin: 2px;
max-width: 694px;
}
+div.wp-link-input label {
+ margin-bottom: 4px;
+ display: block;
+}
+
div.wp-link-input input {
width: 300px;
padding: 3px;
diff --git a/wp-includes/css/editor.min.css b/wp-includes/css/editor.min.css
index 7e5f6f5..5ce917c 100644
--- a/wp-includes/css/editor.min.css
+++ b/wp-includes/css/editor.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-.mce-tinymce{box-shadow:none}.mce-container,.mce-container *,.mce-widget,.mce-widget *{color:inherit;font-family:inherit}.mce-container .mce-monospace,.mce-widget .mce-monospace{font-family:Consolas,Monaco,monospace;font-size:13px;line-height:150%}#mce-modal-block,#mce-modal-block.mce-fade{opacity:.7;transition:none;background:#000}.mce-window{border-radius:0;box-shadow:0 3px 6px rgba(0,0,0,.3);-webkit-font-smoothing:subpixel-antialiased;transition:none}.mce-window .mce-container-body.mce-abs-layout{overflow:visible}.mce-window .mce-window-head{background:#fff;border-bottom:1px solid #dcdcde;padding:0;min-height:36px}.mce-window .mce-window-head .mce-title{color:#3c434a;font-size:18px;font-weight:600;line-height:36px;margin:0;padding:0 36px 0 16px}.mce-window .mce-window-head .mce-close,.mce-window-head .mce-close .mce-i-remove{color:transparent;top:0;right:0;width:36px;height:36px;padding:0;line-height:36px;text-align:center}.mce-window-head .mce-close .mce-i-remove:before{font:normal 20px/36px dashicons;text-align:center;color:#646970;width:36px;height:36px;display:block}.mce-window-head .mce-close:focus .mce-i-remove:before,.mce-window-head .mce-close:hover .mce-i-remove:before{color:#135e96}.mce-window-head .mce-close:focus .mce-i-remove,div.mce-tab:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-window .mce-window-head .mce-dragh{width:calc(100% - 36px)}.mce-window .mce-foot{border-top:1px solid #dcdcde}#wp-link .query-results,.mce-checkbox i.mce-i-checkbox,.mce-textbox{border:1px solid #dcdcde;border-radius:0;box-shadow:inset 0 1px 2px rgba(0,0,0,.07);transition:.05s all ease-in-out}#wp-link .query-results:focus,.mce-checkbox:focus i.mce-i-checkbox,.mce-textbox.mce-focus,.mce-textbox:focus{border-color:#4f94d4;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-window .mce-wp-help{height:360px;width:460px;overflow:auto}.mce-window .mce-wp-help *{box-sizing:border-box}.mce-window .mce-wp-help>.mce-container-body{width:auto!important}.mce-window .wp-editor-help{padding:10px 10px 0 20px}.mce-window .wp-editor-help h2,.mce-window .wp-editor-help p{margin:8px 0;white-space:normal;font-size:14px;font-weight:400}.mce-window .wp-editor-help table{width:100%;margin-bottom:20px}.mce-window .wp-editor-help table.wp-help-single{margin:0 8px 20px}.mce-window .wp-editor-help table.fixed{table-layout:fixed}.mce-window .wp-editor-help table.fixed td:nth-child(odd),.mce-window .wp-editor-help table.fixed th:nth-child(odd){width:12%}.mce-window .wp-editor-help table.fixed td:nth-child(2n),.mce-window .wp-editor-help table.fixed th:nth-child(2n){width:38%}.mce-window .wp-editor-help table.fixed th:nth-child(odd){padding:5px 0 0}.mce-window .wp-editor-help td,.mce-window .wp-editor-help th{font-size:13px;padding:5px;vertical-align:middle;word-wrap:break-word;white-space:normal}.mce-window .wp-editor-help th{font-weight:600;padding-bottom:0}.mce-window .wp-editor-help kbd{font-family:monospace;padding:2px 7px 3px;font-weight:600;margin:0;background:#f0f0f1;background:rgba(0,0,0,.08)}.mce-window .wp-help-th-center td:nth-child(odd),.mce-window .wp-help-th-center th:nth-child(odd){text-align:center}.mce-floatpanel.mce-popover,.mce-menu{border-color:rgba(0,0,0,.15);border-radius:0;box-shadow:0 3px 5px rgba(0,0,0,.2)}.mce-floatpanel.mce-popover.mce-bottom,.mce-menu{margin-top:2px}.mce-floatpanel .mce-arrow{display:none}.mce-menu .mce-container-body{min-width:160px}.mce-menu-item{border:none;margin-bottom:2px;padding:6px 15px 6px 12px}.mce-menu-has-icons i.mce-ico{line-height:20px}div.mce-panel{border:0;background:#fff}.mce-panel.mce-menu{border:1px solid #dcdcde}div.mce-tab{line-height:13px}div.mce-toolbar-grp{border-bottom:1px solid #dcdcde;background:#f6f7f7;padding:0;position:relative}div.mce-inline-toolbar-grp{border:1px solid #a7aaad;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.15);box-sizing:border-box;margin-bottom:8px;position:absolute;-webkit-user-select:none;user-select:none;max-width:98%;z-index:100100}div.mce-inline-toolbar-grp>div.mce-stack-layout{padding:1px}div.mce-inline-toolbar-grp.mce-arrow-up{margin-bottom:0;margin-top:8px}div.mce-inline-toolbar-grp:after,div.mce-inline-toolbar-grp:before{position:absolute;left:50%;display:block;width:0;height:0;border-style:solid;border-color:transparent;content:""}div.mce-inline-toolbar-grp.mce-arrow-up:before{top:-9px;border-bottom-color:#a7aaad;border-width:0 9px 9px;margin-left:-9px}div.mce-inline-toolbar-grp.mce-arrow-down:before{bottom:-9px;border-top-color:#a7aaad;border-width:9px 9px 0;margin-left:-9px}div.mce-inline-toolbar-grp.mce-arrow-up:after{top:-8px;border-bottom-color:#f6f7f7;border-width:0 8px 8px;margin-left:-8px}div.mce-inline-toolbar-grp.mce-arrow-down:after{bottom:-8px;border-top-color:#f6f7f7;border-width:8px 8px 0;margin-left:-8px}div.mce-inline-toolbar-grp.mce-arrow-left:after,div.mce-inline-toolbar-grp.mce-arrow-left:before{margin:0}div.mce-inline-toolbar-grp.mce-arrow-left:before{left:20px}div.mce-inline-toolbar-grp.mce-arrow-left:after{left:21px}div.mce-inline-toolbar-grp.mce-arrow-right:after,div.mce-inline-toolbar-grp.mce-arrow-right:before{left:auto;margin:0}div.mce-inline-toolbar-grp.mce-arrow-right:before{right:20px}div.mce-inline-toolbar-grp.mce-arrow-right:after{right:21px}div.mce-inline-toolbar-grp.mce-arrow-full{right:0}div.mce-inline-toolbar-grp.mce-arrow-full>div{width:100%;overflow-x:auto}div.mce-toolbar-grp>div{padding:3px}.has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first{padding-right:32px}.mce-toolbar .mce-btn-group{margin:0}.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}div.mce-statusbar{border-top:1px solid #dcdcde}div.mce-path{padding:2px 10px;margin:0}.mce-path,.mce-path .mce-divider,.mce-path-item{font-size:12px}.mce-toolbar .mce-btn,.qt-dfw{border-color:transparent;background:0 0;box-shadow:none;text-shadow:none;cursor:pointer}.mce-btn .mce-txt{direction:inherit;text-align:inherit}.mce-toolbar .mce-btn-group .mce-btn,.qt-dfw{border:1px solid transparent;margin:2px;border-radius:2px}.mce-toolbar .mce-btn-group .mce-btn:focus,.mce-toolbar .mce-btn-group .mce-btn:hover,.qt-dfw:focus,.qt-dfw:hover{background:#f6f7f7;color:#1d2327;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-toolbar .mce-btn-group .mce-btn.mce-active,.mce-toolbar .mce-btn-group .mce-btn:active,.qt-dfw.active{background:#f0f0f1;border-color:#50575e}.mce-btn.mce-active,.mce-btn.mce-active button,.mce-btn.mce-active i,.mce-btn.mce-active:hover button,.mce-btn.mce-active:hover i{color:inherit}.mce-toolbar .mce-btn-group .mce-btn.mce-active:focus,.mce-toolbar .mce-btn-group .mce-btn.mce-active:hover{border-color:#1d2327}.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:focus,.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:hover{color:#a7aaad;background:0 0;border-color:#dcdcde;text-shadow:0 1px 0 #fff;box-shadow:none}.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:focus{border-color:#50575e}.mce-toolbar .mce-btn-group .mce-first,.mce-toolbar .mce-btn-group .mce-last{border-color:transparent}.mce-toolbar .mce-btn button,.qt-dfw{padding:2px 3px;line-height:normal}.mce-toolbar .mce-listbox button{font-size:13px;line-height:1.53846153;padding-left:6px;padding-right:20px}.mce-toolbar .mce-btn i{text-shadow:none}.mce-toolbar .mce-btn-group>div{white-space:normal}.mce-toolbar .mce-colorbutton .mce-open{border-right:0}.mce-toolbar .mce-colorbutton .mce-preview{margin:0;padding:0;top:auto;bottom:2px;left:3px;height:3px;width:20px;background:#50575e}.mce-toolbar .mce-btn-group .mce-btn.mce-primary{min-width:0;background:#3582c4;border-color:#2271b1 #135e96 #135e96;box-shadow:0 1px 0 #135e96;color:#fff;text-decoration:none;text-shadow:none}.mce-toolbar .mce-btn-group .mce-btn.mce-primary button{padding:2px 3px 1px}.mce-toolbar .mce-btn-group .mce-btn.mce-primary .mce-ico{color:#fff}.mce-toolbar .mce-btn-group .mce-btn.mce-primary:focus,.mce-toolbar .mce-btn-group .mce-btn.mce-primary:hover{background:#4f94d4;border-color:#135e96;color:#fff}.mce-toolbar .mce-btn-group .mce-btn.mce-primary:focus{box-shadow:0 0 1px 1px #72aee6}.mce-toolbar .mce-btn-group .mce-btn.mce-primary:active{background:#2271b1;border-color:#135e96;box-shadow:inset 0 2px 0 #135e96}.mce-toolbar .mce-btn-group .mce-btn.mce-listbox{border-radius:0;direction:ltr;background:#fff;border:1px solid #dcdcde}.mce-toolbar .mce-btn-group .mce-btn.mce-listbox:focus,.mce-toolbar .mce-btn-group .mce-btn.mce-listbox:hover{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-panel .mce-btn i.mce-caret{border-top:6px solid #50575e;margin-left:2px;margin-right:2px}.mce-listbox i.mce-caret{right:4px}.mce-panel .mce-btn:focus i.mce-caret,.mce-panel .mce-btn:hover i.mce-caret{border-top-color:#1d2327}.mce-panel .mce-active i.mce-caret{border-top:0;border-bottom:6px solid #1d2327;margin-top:7px}.mce-listbox.mce-active i.mce-caret{margin-top:-3px}.mce-toolbar .mce-splitbtn:hover .mce-open{border-right-color:transparent}.mce-toolbar .mce-splitbtn .mce-open.mce-active{background:0 0;outline:0}.mce-menu .mce-menu-item.mce-active.mce-menu-item-normal,.mce-menu .mce-menu-item.mce-active.mce-menu-item-preview,.mce-menu .mce-menu-item.mce-selected,.mce-menu .mce-menu-item:focus,.mce-menu .mce-menu-item:hover{background:#2271b1;color:#fff}.mce-menu .mce-menu-item.mce-selected .mce-caret,.mce-menu .mce-menu-item:focus .mce-caret,.mce-menu .mce-menu-item:hover .mce-caret{border-left-color:#fff}.rtl .mce-menu .mce-menu-item.mce-selected .mce-caret,.rtl .mce-menu .mce-menu-item:focus .mce-caret,.rtl .mce-menu .mce-menu-item:hover .mce-caret{border-left-color:inherit;border-right-color:#fff}.mce-menu .mce-menu-item.mce-active .mce-menu-shortcut,.mce-menu .mce-menu-item.mce-disabled:hover .mce-ico,.mce-menu .mce-menu-item.mce-disabled:hover .mce-text,.mce-menu .mce-menu-item.mce-selected .mce-ico,.mce-menu .mce-menu-item.mce-selected .mce-text,.mce-menu .mce-menu-item:focus .mce-ico,.mce-menu .mce-menu-item:focus .mce-menu-shortcut,.mce-menu .mce-menu-item:focus .mce-text,.mce-menu .mce-menu-item:hover .mce-ico,.mce-menu .mce-menu-item:hover .mce-menu-shortcut,.mce-menu .mce-menu-item:hover .mce-text{color:inherit}.mce-menu .mce-menu-item.mce-disabled{cursor:default}.mce-menu .mce-menu-item.mce-disabled:hover{background:#c3c4c7}div.mce-menubar{border-color:#dcdcde;background:#fff;border-width:0 0 1px}.mce-menubar .mce-menubtn.mce-active,.mce-menubar .mce-menubtn:focus,.mce-menubar .mce-menubtn:hover{border-color:transparent;background:0 0}.mce-menubar .mce-menubtn:focus{color:#043959;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-menu-item-sep:hover,div.mce-menu .mce-menu-item-sep{border-bottom:1px solid #dcdcde;height:0;margin:5px 0}.mce-menubtn span{margin-right:0;padding-left:3px}.mce-menu-has-icons i.mce-ico:before{margin-left:-2px}.mce-menu.mce-menu-align .mce-menu-item-normal{position:relative}.mce-menu.mce-menu-align .mce-menu-shortcut{bottom:.6em;font-size:.9em}.mce-primary button,.mce-primary button i{text-align:center;color:#fff;text-shadow:none;padding:0;line-height:1.85714285}.mce-window .mce-btn{color:#50575e;background:#f6f7f7;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0;cursor:pointer;border:1px solid #c3c4c7;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-shadow:0 1px 0 #c3c4c7}.mce-window .mce-btn::-moz-focus-inner{border-width:0;border-style:none;padding:0}.mce-window .mce-btn:focus,.mce-window .mce-btn:hover{background:#f6f7f7;border-color:#8c8f94;color:#1d2327}.mce-window .mce-btn:focus{border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8)}.mce-window .mce-btn:active{background:#f0f0f1;border-color:#8c8f94;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);transform:translateY(1px)}.mce-window .mce-btn.mce-disabled{color:#a7aaad!important;border-color:#dcdcde!important;background:#f6f7f7!important;box-shadow:none!important;text-shadow:0 1px 0 #fff!important;cursor:default;transform:none!important}.mce-window .mce-btn.mce-primary{background:#3582c4;border-color:#2271b1 #135e96 #135e96;box-shadow:0 1px 0 #135e96;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #135e96,1px 0 1px #135e96,0 1px 1px #135e96,-1px 0 1px #135e96}.mce-window .mce-btn.mce-primary:focus,.mce-window .mce-btn.mce-primary:hover{background:#4f94d4;border-color:#135e96;color:#fff}.mce-window .mce-btn.mce-primary:focus{box-shadow:0 1px 0 #2271b1,0 0 2px 1px #72aee6}.mce-window .mce-btn.mce-primary:active{background:#2271b1;border-color:#135e96;box-shadow:inset 0 2px 0 #135e96;vertical-align:top}.mce-window .mce-btn.mce-primary.mce-disabled{color:#9ec2e6!important;background:#4f94d4!important;border-color:#3582c4!important;box-shadow:none!important;text-shadow:0 -1px 0 rgba(0,0,0,.1)!important;cursor:default}.mce-menubtn.mce-fixed-width span{overflow-x:hidden;text-overflow:ellipsis;width:82px}.mce-charmap{margin:3px}.mce-charmap td{padding:0;border-color:#dcdcde;cursor:pointer}.mce-charmap td:hover{background:#f6f7f7}.mce-charmap td div{width:18px;height:22px;line-height:1.57142857}.mce-tooltip{margin-top:2px}.mce-tooltip-inner{border-radius:3px;box-shadow:0 3px 5px rgba(0,0,0,.2);color:#fff;font-size:12px}.mce-ico{font-family:tinymce,Arial}.mce-btn-small .mce-ico{font-family:tinymce-small,Arial}.mce-toolbar .mce-ico{color:#50575e;line-height:1;width:20px;height:20px;text-align:center;text-shadow:none;margin:0;padding:0}.qt-dfw{color:#50575e;line-height:1;width:28px;height:26px;text-align:center;text-shadow:none}.mce-toolbar .mce-btn .mce-open{line-height:20px}.mce-toolbar .mce-btn.mce-active .mce-open,.mce-toolbar .mce-btn:focus .mce-open,.mce-toolbar .mce-btn:hover .mce-open{border-left-color:#1d2327}div.mce-notification{left:10%!important;right:10%}.mce-notification button.mce-close{right:6px;top:3px;font-weight:400;color:#50575e}.mce-notification button.mce-close:focus,.mce-notification button.mce-close:hover{color:#000}i.mce-i-aligncenter,i.mce-i-alignjustify,i.mce-i-alignleft,i.mce-i-alignright,i.mce-i-backcolor,i.mce-i-blockquote,i.mce-i-bold,i.mce-i-bullist,i.mce-i-charmap,i.mce-i-dashicon,i.mce-i-dfw,i.mce-i-forecolor,i.mce-i-fullscreen,i.mce-i-help,i.mce-i-hr,i.mce-i-indent,i.mce-i-italic,i.mce-i-link,i.mce-i-ltr,i.mce-i-numlist,i.mce-i-outdent,i.mce-i-pastetext,i.mce-i-pasteword,i.mce-i-redo,i.mce-i-remove,i.mce-i-removeformat,i.mce-i-spellchecker,i.mce-i-strikethrough,i.mce-i-underline,i.mce-i-undo,i.mce-i-unlink,i.mce-i-wp-media-library,i.mce-i-wp_adv,i.mce-i-wp_code,i.mce-i-wp_fullscreen,i.mce-i-wp_help,i.mce-i-wp_more,i.mce-i-wp_page{font:normal 20px/1 dashicons;padding:0;vertical-align:top;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-left:-2px;padding-right:2px}.qt-dfw{font:normal 20px/1 dashicons;vertical-align:top;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}i.mce-i-bold:before{content:"\f200"}i.mce-i-italic:before{content:"\f201"}i.mce-i-bullist:before{content:"\f203"}i.mce-i-numlist:before{content:"\f204"}i.mce-i-blockquote:before{content:"\f205"}i.mce-i-alignleft:before{content:"\f206"}i.mce-i-aligncenter:before{content:"\f207"}i.mce-i-alignright:before{content:"\f208"}i.mce-i-link:before{content:"\f103"}i.mce-i-unlink:before{content:"\f225"}i.mce-i-wp_more:before{content:"\f209"}i.mce-i-strikethrough:before{content:"\f224"}i.mce-i-spellchecker:before{content:"\f210"}.qt-dfw:before,i.mce-i-dfw:before,i.mce-i-fullscreen:before,i.mce-i-wp_fullscreen:before{content:"\f211"}i.mce-i-wp_adv:before{content:"\f212"}i.mce-i-underline:before{content:"\f213"}i.mce-i-alignjustify:before{content:"\f214"}i.mce-i-backcolor:before,i.mce-i-forecolor:before{content:"\f215"}i.mce-i-pastetext:before{content:"\f217"}i.mce-i-removeformat:before{content:"\f218"}i.mce-i-charmap:before{content:"\f220"}i.mce-i-outdent:before{content:"\f221"}i.mce-i-indent:before{content:"\f222"}i.mce-i-undo:before{content:"\f171"}i.mce-i-redo:before{content:"\f172"}i.mce-i-help:before,i.mce-i-wp_help:before{content:"\f223"}i.mce-i-wp-media-library:before{content:"\f104"}i.mce-i-ltr:before{content:"\f320"}i.mce-i-wp_page:before{content:"\f105"}i.mce-i-hr:before{content:"\f460"}i.mce-i-remove:before{content:"\f158"}i.mce-i-wp_code:before{content:"\f475"}.rtl i.mce-i-outdent:before{content:"\f222"}.rtl i.mce-i-indent:before{content:"\f221"}.wp-editor-wrap{position:relative}.wp-editor-tools{position:relative;z-index:1}.wp-editor-tools:after{clear:both;content:"";display:table}.wp-editor-container{clear:both;border:1px solid #dcdcde}.wp-editor-area{font-family:Consolas,Monaco,monospace;font-size:13px;padding:10px;margin:1px 0 0;line-height:150%;border:0;outline:0;display:block;resize:vertical;box-sizing:border-box}.rtl .wp-editor-area{font-family:Tahoma,Monaco,monospace}.locale-he-il .wp-editor-area{font-family:Arial,Monaco,monospace}.wp-editor-container textarea.wp-editor-area{width:100%;margin:0;box-shadow:none}.wp-editor-tabs{float:right}.wp-switch-editor{float:left;box-sizing:content-box;position:relative;top:1px;background:#f0f0f1;color:#646970;cursor:pointer;font-size:13px;line-height:1.46153846;height:20px;margin:5px 0 0 5px;padding:3px 8px 4px;border:1px solid #dcdcde}.wp-switch-editor:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent;color:#1d2327}.html-active .switch-html:focus,.tmce-active .switch-tmce:focus,.wp-switch-editor:active{box-shadow:none}.wp-switch-editor:active{background-color:#f6f7f7;box-shadow:none}.js .tmce-active .wp-editor-area{color:#fff}.tmce-active .quicktags-toolbar{display:none}.html-active .switch-html,.tmce-active .switch-tmce{background:#f6f7f7;color:#50575e;border-bottom-color:#f6f7f7}.wp-media-buttons{float:left}.wp-media-buttons .button{margin-right:5px;margin-bottom:4px;padding-left:7px;padding-right:7px}.wp-media-buttons .button:active{position:relative;top:1px;margin-top:-1px;margin-bottom:1px}.wp-media-buttons .insert-media{padding-left:5px}.wp-media-buttons a{text-decoration:none;color:#3c434a;font-size:12px}.wp-media-buttons img{padding:0 4px;vertical-align:middle}.wp-media-buttons span.wp-media-buttons-icon{display:inline-block;width:20px;height:20px;line-height:1;vertical-align:middle;margin:0 2px}.wp-media-buttons .add_media span.wp-media-buttons-icon{background:0 0}.wp-media-buttons .add_media span.wp-media-buttons-icon:before{font:normal 18px/1 dashicons;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-media-buttons .add_media span.wp-media-buttons-icon:before{content:"\f104"}.mce-content-body dl.wp-caption{max-width:100%}.quicktags-toolbar{padding:3px;position:relative;border-bottom:1px solid #dcdcde;background:#f6f7f7;min-height:30px}.has-dfw .quicktags-toolbar{padding-right:35px}.wp-core-ui .quicktags-toolbar input.button.button-small{margin:2px}.quicktags-toolbar input[value=link]{text-decoration:underline}.quicktags-toolbar input[value=del]{text-decoration:line-through}.quicktags-toolbar input[value="i"]{font-style:italic}.quicktags-toolbar input[value="b"]{font-weight:600}.mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw,.qt-dfw{position:absolute;top:0;right:0}.mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw{margin:7px 7px 0 0}.qt-dfw{margin:5px 5px 0 0}.qt-fullscreen{position:static;margin:2px}@media screen and (max-width:782px){.mce-toolbar .mce-btn button,.qt-dfw{padding:6px 7px}.mce-toolbar .mce-btn-group .mce-btn.mce-primary button{padding:6px 7px 5px}.mce-toolbar .mce-btn-group .mce-btn{margin:1px}.qt-dfw{width:36px;height:34px}.mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw{margin:4px 4px 0 0}.mce-toolbar .mce-colorbutton .mce-preview{left:8px;bottom:6px}.mce-window .mce-btn{padding:2px 0}.has-dfw .quicktags-toolbar,.has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first{padding-right:40px}}@media screen and (min-width:782px){.wp-core-ui .quicktags-toolbar input.button.button-small{font-size:12px;min-height:26px;line-height:2}}#wp_editbtns,#wp_gallerybtns{padding:2px;position:absolute;display:none;z-index:100020}#wp_delgallery,#wp_delimgbtn,#wp_editgallery,#wp_editimgbtn{background-color:#f0f0f1;margin:2px;padding:2px;border:1px solid #8c8f94;border-radius:3px}#wp_delgallery:hover,#wp_delimgbtn:hover,#wp_editgallery:hover,#wp_editimgbtn:hover{border-color:#50575e;background-color:#c3c4c7}#wp-link-wrap{display:none;background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);width:500px;overflow:hidden;margin-left:-250px;margin-top:-125px;position:fixed;top:50%;left:50%;z-index:100105;transition:height .2s,margin-top .2s}#wp-link-backdrop{display:none;position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:100100}#wp-link{position:relative;height:100%}#wp-link-wrap{height:600px;margin-top:-300px}#wp-link-wrap .wp-link-text-field{display:none}#wp-link-wrap.has-text-field .wp-link-text-field{display:block}#link-modal-title{background:#fff;border-bottom:1px solid #dcdcde;font-size:18px;font-weight:600;line-height:2;margin:0;padding:0 36px 0 16px}#wp-link-close{color:#646970;padding:0;position:absolute;top:0;right:0;width:36px;height:36px;text-align:center;background:0 0;border:none;cursor:pointer}#wp-link-close:before{font:normal 20px/36px dashicons;vertical-align:top;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:36px;height:36px;content:"\f158"}#wp-link-close:focus,#wp-link-close:hover{color:#135e96}#wp-link-close:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent;outline-offset:-2px}#wp-link-wrap #link-selector{-webkit-overflow-scrolling:touch;padding:0 16px;position:absolute;top:calc(2.15384615em + 16px);left:0;right:0;bottom:calc(2.15384615em + 19px);display:flex;flex-direction:column;overflow:auto}#wp-link ol,#wp-link ul{list-style:none;margin:0;padding:0}#wp-link input[type=text]{box-sizing:border-box}#wp-link #link-options{padding:8px 0 12px}#wp-link p.howto{margin:3px 0}#wp-link p.howto a{text-decoration:none;color:inherit}#wp-link label input[type=text]{margin-top:5px;width:70%}#wp-link #link-options label span,#wp-link #search-panel label span.search-label{display:inline-block;width:120px;text-align:right;padding-right:5px;max-width:24%;vertical-align:middle;word-wrap:break-word}#wp-link .link-search-field{width:250px;max-width:70%}#wp-link .link-search-wrapper{margin:5px 0 9px;display:block}#wp-link .query-results{position:absolute;width:calc(100% - 32px)}#wp-link .link-search-wrapper .spinner{float:none;margin:-3px 0 0 4px}#wp-link .link-target{padding:3px 0 0}#wp-link .link-target label{max-width:70%}#wp-link .query-results{border:1px #dcdcde solid;margin:0 0 12px;background:#fff;overflow:auto;max-height:290px}#wp-link li{clear:both;margin-bottom:0;border-bottom:1px solid #f0f0f1;color:#2c3338;padding:4px 6px 4px 10px;cursor:pointer;position:relative}#wp-link .query-notice{padding:0;border-bottom:1px solid #dcdcde;background-color:#fff;color:#000}#wp-link .query-notice .query-notice-default,#wp-link .query-notice .query-notice-hint{display:block;padding:6px;border-left:4px solid #72aee6}#wp-link .unselectable.no-matches-found{padding:0;border-bottom:1px solid #dcdcde;background-color:#f6f7f7}#wp-link .no-matches-found .item-title{display:block;padding:6px;border-left:4px solid #d63638}#wp-link .query-results em{font-style:normal}#wp-link li:hover{background:#f0f6fc;color:#101517}#wp-link li.unselectable{border-bottom:1px solid #dcdcde}#wp-link li.unselectable:hover{background:#fff;cursor:auto;color:#2c3338}#wp-link li.selected{background:#dcdcde;color:#2c3338}#wp-link li.selected .item-title{font-weight:600}#wp-link li:last-child{border:none}#wp-link .item-title{display:inline-block;width:80%;width:calc(100% - 68px);word-wrap:break-word}#wp-link .item-info{text-transform:uppercase;color:#646970;font-size:11px;position:absolute;right:5px;top:5px}#wp-link .river-waiting{display:none;padding:10px 0}#wp-link .submitbox{padding:8px 16px;background:#fff;border-top:1px solid #dcdcde;position:absolute;bottom:0;left:0;right:0}#wp-link-cancel{line-height:1.92307692;float:left}#wp-link-update{line-height:1.76923076;float:right}#wp-link-submit{float:right}@media screen and (max-width:782px){#link-selector{padding:0 16px 60px}#wp-link-wrap #link-selector{bottom:calc(2.71428571em + 23px)}#wp-link-cancel{line-height:2.46153846}#wp-link .link-target{padding-top:10px}#wp-link .submitbox .button{margin-bottom:0}}@media screen and (max-width:520px){#wp-link-wrap{width:auto;margin-left:0;left:10px;right:10px;max-width:500px}}@media screen and (max-height:620px){#wp-link-wrap{transition:none;height:auto;margin-top:0;top:10px;bottom:10px}#link-selector{overflow:auto}}@media screen and (max-height:290px){#wp-link-wrap{height:auto;margin-top:0;top:10px;bottom:10px}#link-selector{overflow:auto;height:calc(100% - 92px);padding-bottom:2px}}div.wp-link-preview{float:left;margin:5px;max-width:694px;overflow:hidden;text-overflow:ellipsis}div.wp-link-preview a{color:#2271b1;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;cursor:pointer}div.wp-link-preview a.wplink-url-error{color:#d63638}div.wp-link-input{float:left;margin:2px;max-width:694px}div.wp-link-input input{width:300px;padding:3px;box-sizing:border-box;line-height:1.28571429;min-height:26px}.mce-toolbar div.wp-link-input~.mce-btn,.mce-toolbar div.wp-link-preview~.mce-btn{margin:2px 1px}.mce-inline-toolbar-grp .mce-btn-group .mce-btn:last-child{margin-right:2px}.ui-autocomplete.wplink-autocomplete{z-index:100110;max-height:200px;overflow-y:auto;padding:0;margin:0;list-style:none;position:absolute;border:1px solid #4f94d4;box-shadow:0 1px 2px rgba(79,148,212,.8);background-color:#fff}.ui-autocomplete.wplink-autocomplete li{margin-bottom:0;padding:4px 10px;clear:both;white-space:normal;text-align:left}.ui-autocomplete.wplink-autocomplete li .wp-editor-float-right{float:right}.ui-autocomplete.wplink-autocomplete li.ui-state-focus{background-color:#dcdcde;cursor:pointer}@media screen and (max-width:782px){div.wp-link-input,div.wp-link-preview{max-width:70%;max-width:calc(100% - 86px)}div.wp-link-preview{margin:8px 0 8px 5px}div.wp-link-input{width:300px}div.wp-link-input input{width:100%;font-size:16px;padding:5px}}.mce-fullscreen{z-index:100010}.rtl .quicktags-toolbar input,.rtl .wp-switch-editor{font-family:Tahoma,sans-serif}.mce-rtl .mce-flow-layout .mce-flow-layout-item>div{direction:rtl}.mce-rtl .mce-listbox i.mce-caret{left:6px}html:lang(he-il) .rtl .quicktags-toolbar input,html:lang(he-il) .rtl .wp-switch-editor{font-family:Arial,sans-serif}@media print,(min-resolution:120dpi){.wp-media-buttons .add_media span.wp-media-buttons-icon{background:0 0}} \ No newline at end of file
+.mce-tinymce{box-shadow:none}.mce-container,.mce-container *,.mce-widget,.mce-widget *{color:inherit;font-family:inherit}.mce-container .mce-monospace,.mce-widget .mce-monospace{font-family:Consolas,Monaco,monospace;font-size:13px;line-height:150%}#mce-modal-block,#mce-modal-block.mce-fade{opacity:.7;transition:none;background:#000}.mce-window{border-radius:0;box-shadow:0 3px 6px rgba(0,0,0,.3);-webkit-font-smoothing:subpixel-antialiased;transition:none}.mce-window .mce-container-body.mce-abs-layout{overflow:visible}.mce-window .mce-window-head{background:#fff;border-bottom:1px solid #dcdcde;padding:0;min-height:36px}.mce-window .mce-window-head .mce-title{color:#3c434a;font-size:18px;font-weight:600;line-height:36px;margin:0;padding:0 36px 0 16px}.mce-window .mce-window-head .mce-close,.mce-window-head .mce-close .mce-i-remove{color:transparent;top:0;right:0;width:36px;height:36px;padding:0;line-height:36px;text-align:center}.mce-window-head .mce-close .mce-i-remove:before{font:normal 20px/36px dashicons;text-align:center;color:#646970;width:36px;height:36px;display:block}.mce-window-head .mce-close:focus .mce-i-remove:before,.mce-window-head .mce-close:hover .mce-i-remove:before{color:#135e96}.mce-window-head .mce-close:focus .mce-i-remove,div.mce-tab:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-window .mce-window-head .mce-dragh{width:calc(100% - 36px)}.mce-window .mce-foot{border-top:1px solid #dcdcde}#wp-link .query-results,.mce-checkbox i.mce-i-checkbox,.mce-textbox{border:1px solid #dcdcde;border-radius:0;box-shadow:inset 0 1px 2px rgba(0,0,0,.07);transition:.05s all ease-in-out}#wp-link .query-results:focus,.mce-checkbox:focus i.mce-i-checkbox,.mce-textbox.mce-focus,.mce-textbox:focus{border-color:#4f94d4;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-window .mce-wp-help{height:360px;width:460px;overflow:auto}.mce-window .mce-wp-help *{box-sizing:border-box}.mce-window .mce-wp-help>.mce-container-body{width:auto!important}.mce-window .wp-editor-help{padding:10px 10px 0 20px}.mce-window .wp-editor-help h2,.mce-window .wp-editor-help p{margin:8px 0;white-space:normal;font-size:14px;font-weight:400}.mce-window .wp-editor-help table{width:100%;margin-bottom:20px}.mce-window .wp-editor-help table.wp-help-single{margin:0 8px 20px}.mce-window .wp-editor-help table.fixed{table-layout:fixed}.mce-window .wp-editor-help table.fixed td:nth-child(odd),.mce-window .wp-editor-help table.fixed th:nth-child(odd){width:12%}.mce-window .wp-editor-help table.fixed td:nth-child(2n),.mce-window .wp-editor-help table.fixed th:nth-child(2n){width:38%}.mce-window .wp-editor-help table.fixed th:nth-child(odd){padding:5px 0 0}.mce-window .wp-editor-help td,.mce-window .wp-editor-help th{font-size:13px;padding:5px;vertical-align:middle;word-wrap:break-word;white-space:normal}.mce-window .wp-editor-help th{font-weight:600;padding-bottom:0}.mce-window .wp-editor-help kbd{font-family:monospace;padding:2px 7px 3px;font-weight:600;margin:0;background:#f0f0f1;background:rgba(0,0,0,.08)}.mce-window .wp-help-th-center td:nth-child(odd),.mce-window .wp-help-th-center th:nth-child(odd){text-align:center}.mce-floatpanel.mce-popover,.mce-menu{border-color:rgba(0,0,0,.15);border-radius:0;box-shadow:0 3px 5px rgba(0,0,0,.2)}.mce-floatpanel.mce-popover.mce-bottom,.mce-menu{margin-top:2px}.mce-floatpanel .mce-arrow{display:none}.mce-menu .mce-container-body{min-width:160px}.mce-menu-item{border:none;margin-bottom:2px;padding:6px 15px 6px 12px}.mce-menu-has-icons i.mce-ico{line-height:20px}div.mce-panel{border:0;background:#fff}.mce-panel.mce-menu{border:1px solid #dcdcde}div.mce-tab{line-height:13px}div.mce-toolbar-grp{border-bottom:1px solid #dcdcde;background:#f6f7f7;padding:0;position:relative}div.mce-inline-toolbar-grp{border:1px solid #a7aaad;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.15);box-sizing:border-box;margin-bottom:8px;position:absolute;-webkit-user-select:none;user-select:none;max-width:98%;z-index:100100}div.mce-inline-toolbar-grp>div.mce-stack-layout{padding:1px}div.mce-inline-toolbar-grp.mce-arrow-up{margin-bottom:0;margin-top:8px}div.mce-inline-toolbar-grp:after,div.mce-inline-toolbar-grp:before{position:absolute;left:50%;display:block;width:0;height:0;border-style:solid;border-color:transparent;content:""}div.mce-inline-toolbar-grp.mce-arrow-up:before{top:-9px;border-bottom-color:#a7aaad;border-width:0 9px 9px;margin-left:-9px}div.mce-inline-toolbar-grp.mce-arrow-down:before{bottom:-9px;border-top-color:#a7aaad;border-width:9px 9px 0;margin-left:-9px}div.mce-inline-toolbar-grp.mce-arrow-up:after{top:-8px;border-bottom-color:#f6f7f7;border-width:0 8px 8px;margin-left:-8px}div.mce-inline-toolbar-grp.mce-arrow-down:after{bottom:-8px;border-top-color:#f6f7f7;border-width:8px 8px 0;margin-left:-8px}div.mce-inline-toolbar-grp.mce-arrow-left:after,div.mce-inline-toolbar-grp.mce-arrow-left:before{margin:0}div.mce-inline-toolbar-grp.mce-arrow-left:before{left:20px}div.mce-inline-toolbar-grp.mce-arrow-left:after{left:21px}div.mce-inline-toolbar-grp.mce-arrow-right:after,div.mce-inline-toolbar-grp.mce-arrow-right:before{left:auto;margin:0}div.mce-inline-toolbar-grp.mce-arrow-right:before{right:20px}div.mce-inline-toolbar-grp.mce-arrow-right:after{right:21px}div.mce-inline-toolbar-grp.mce-arrow-full{right:0}div.mce-inline-toolbar-grp.mce-arrow-full>div{width:100%;overflow-x:auto}div.mce-toolbar-grp>div{padding:3px}.has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first{padding-right:32px}.mce-toolbar .mce-btn-group{margin:0}.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}div.mce-statusbar{border-top:1px solid #dcdcde}div.mce-path{padding:2px 10px;margin:0}.mce-path,.mce-path .mce-divider,.mce-path-item{font-size:12px}.mce-toolbar .mce-btn,.qt-dfw{border-color:transparent;background:0 0;box-shadow:none;text-shadow:none;cursor:pointer}.mce-btn .mce-txt{direction:inherit;text-align:inherit}.mce-toolbar .mce-btn-group .mce-btn,.qt-dfw{border:1px solid transparent;margin:2px;border-radius:2px}.mce-toolbar .mce-btn-group .mce-btn:focus,.mce-toolbar .mce-btn-group .mce-btn:hover,.qt-dfw:focus,.qt-dfw:hover{background:#f6f7f7;color:#1d2327;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-toolbar .mce-btn-group .mce-btn.mce-active,.mce-toolbar .mce-btn-group .mce-btn:active,.qt-dfw.active{background:#f0f0f1;border-color:#50575e}.mce-btn.mce-active,.mce-btn.mce-active button,.mce-btn.mce-active i,.mce-btn.mce-active:hover button,.mce-btn.mce-active:hover i{color:inherit}.mce-toolbar .mce-btn-group .mce-btn.mce-active:focus,.mce-toolbar .mce-btn-group .mce-btn.mce-active:hover{border-color:#1d2327}.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:focus,.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:hover{color:#a7aaad;background:0 0;border-color:#dcdcde;text-shadow:0 1px 0 #fff;box-shadow:none}.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:focus{border-color:#50575e}.mce-toolbar .mce-btn-group .mce-first,.mce-toolbar .mce-btn-group .mce-last{border-color:transparent}.mce-toolbar .mce-btn button,.qt-dfw{padding:2px 3px;line-height:normal}.mce-toolbar .mce-listbox button{font-size:13px;line-height:1.53846153;padding-left:6px;padding-right:20px}.mce-toolbar .mce-btn i{text-shadow:none}.mce-toolbar .mce-btn-group>div{white-space:normal}.mce-toolbar .mce-colorbutton .mce-open{border-right:0}.mce-toolbar .mce-colorbutton .mce-preview{margin:0;padding:0;top:auto;bottom:2px;left:3px;height:3px;width:20px;background:#50575e}.mce-toolbar .mce-btn-group .mce-btn.mce-primary{min-width:0;background:#3582c4;border-color:#2271b1 #135e96 #135e96;box-shadow:0 1px 0 #135e96;color:#fff;text-decoration:none;text-shadow:none}.mce-toolbar .mce-btn-group .mce-btn.mce-primary button{padding:2px 3px 1px}.mce-toolbar .mce-btn-group .mce-btn.mce-primary .mce-ico{color:#fff}.mce-toolbar .mce-btn-group .mce-btn.mce-primary:focus,.mce-toolbar .mce-btn-group .mce-btn.mce-primary:hover{background:#4f94d4;border-color:#135e96;color:#fff}.mce-toolbar .mce-btn-group .mce-btn.mce-primary:focus{box-shadow:0 0 1px 1px #72aee6}.mce-toolbar .mce-btn-group .mce-btn.mce-primary:active{background:#2271b1;border-color:#135e96;box-shadow:inset 0 2px 0 #135e96}.mce-toolbar .mce-btn-group .mce-btn.mce-listbox{border-radius:0;direction:ltr;background:#fff;border:1px solid #dcdcde}.mce-toolbar .mce-btn-group .mce-btn.mce-listbox:focus,.mce-toolbar .mce-btn-group .mce-btn.mce-listbox:hover{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-panel .mce-btn i.mce-caret{border-top:6px solid #50575e;margin-left:2px;margin-right:2px}.mce-listbox i.mce-caret{right:4px}.mce-panel .mce-btn:focus i.mce-caret,.mce-panel .mce-btn:hover i.mce-caret{border-top-color:#1d2327}.mce-panel .mce-active i.mce-caret{border-top:0;border-bottom:6px solid #1d2327;margin-top:7px}.mce-listbox.mce-active i.mce-caret{margin-top:-3px}.mce-toolbar .mce-splitbtn:hover .mce-open{border-right-color:transparent}.mce-toolbar .mce-splitbtn .mce-open.mce-active{background:0 0;outline:0}.mce-menu .mce-menu-item.mce-active.mce-menu-item-normal,.mce-menu .mce-menu-item.mce-active.mce-menu-item-preview,.mce-menu .mce-menu-item.mce-selected,.mce-menu .mce-menu-item:focus,.mce-menu .mce-menu-item:hover{background:#2271b1;color:#fff}.mce-menu .mce-menu-item.mce-selected .mce-caret,.mce-menu .mce-menu-item:focus .mce-caret,.mce-menu .mce-menu-item:hover .mce-caret{border-left-color:#fff}.rtl .mce-menu .mce-menu-item.mce-selected .mce-caret,.rtl .mce-menu .mce-menu-item:focus .mce-caret,.rtl .mce-menu .mce-menu-item:hover .mce-caret{border-left-color:inherit;border-right-color:#fff}.mce-menu .mce-menu-item.mce-active .mce-menu-shortcut,.mce-menu .mce-menu-item.mce-disabled:hover .mce-ico,.mce-menu .mce-menu-item.mce-disabled:hover .mce-text,.mce-menu .mce-menu-item.mce-selected .mce-ico,.mce-menu .mce-menu-item.mce-selected .mce-text,.mce-menu .mce-menu-item:focus .mce-ico,.mce-menu .mce-menu-item:focus .mce-menu-shortcut,.mce-menu .mce-menu-item:focus .mce-text,.mce-menu .mce-menu-item:hover .mce-ico,.mce-menu .mce-menu-item:hover .mce-menu-shortcut,.mce-menu .mce-menu-item:hover .mce-text{color:inherit}.mce-menu .mce-menu-item.mce-disabled{cursor:default}.mce-menu .mce-menu-item.mce-disabled:hover{background:#c3c4c7}div.mce-menubar{border-color:#dcdcde;background:#fff;border-width:0 0 1px}.mce-menubar .mce-menubtn.mce-active,.mce-menubar .mce-menubtn:focus,.mce-menubar .mce-menubtn:hover{border-color:transparent;background:0 0}.mce-menubar .mce-menubtn:focus{color:#043959;box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent}.mce-menu-item-sep:hover,div.mce-menu .mce-menu-item-sep{border-bottom:1px solid #dcdcde;height:0;margin:5px 0}.mce-menubtn span{margin-right:0;padding-left:3px}.mce-menu-has-icons i.mce-ico:before{margin-left:-2px}.mce-menu.mce-menu-align .mce-menu-item-normal{position:relative}.mce-menu.mce-menu-align .mce-menu-shortcut{bottom:.6em;font-size:.9em}.mce-primary button,.mce-primary button i{text-align:center;color:#fff;text-shadow:none;padding:0;line-height:1.85714285}.mce-window .mce-btn{color:#50575e;background:#f6f7f7;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0;cursor:pointer;border:1px solid #c3c4c7;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-shadow:0 1px 0 #c3c4c7}.mce-window .mce-btn::-moz-focus-inner{border-width:0;border-style:none;padding:0}.mce-window .mce-btn:focus,.mce-window .mce-btn:hover{background:#f6f7f7;border-color:#8c8f94;color:#1d2327}.mce-window .mce-btn:focus{border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8)}.mce-window .mce-btn:active{background:#f0f0f1;border-color:#8c8f94;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);transform:translateY(1px)}.mce-window .mce-btn.mce-disabled{color:#a7aaad!important;border-color:#dcdcde!important;background:#f6f7f7!important;box-shadow:none!important;text-shadow:0 1px 0 #fff!important;cursor:default;transform:none!important}.mce-window .mce-btn.mce-primary{background:#3582c4;border-color:#2271b1 #135e96 #135e96;box-shadow:0 1px 0 #135e96;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #135e96,1px 0 1px #135e96,0 1px 1px #135e96,-1px 0 1px #135e96}.mce-window .mce-btn.mce-primary:focus,.mce-window .mce-btn.mce-primary:hover{background:#4f94d4;border-color:#135e96;color:#fff}.mce-window .mce-btn.mce-primary:focus{box-shadow:0 1px 0 #2271b1,0 0 2px 1px #72aee6}.mce-window .mce-btn.mce-primary:active{background:#2271b1;border-color:#135e96;box-shadow:inset 0 2px 0 #135e96;vertical-align:top}.mce-window .mce-btn.mce-primary.mce-disabled{color:#9ec2e6!important;background:#4f94d4!important;border-color:#3582c4!important;box-shadow:none!important;text-shadow:0 -1px 0 rgba(0,0,0,.1)!important;cursor:default}.mce-menubtn.mce-fixed-width span{overflow-x:hidden;text-overflow:ellipsis;width:82px}.mce-charmap{margin:3px}.mce-charmap td{padding:0;border-color:#dcdcde;cursor:pointer}.mce-charmap td:hover{background:#f6f7f7}.mce-charmap td div{width:18px;height:22px;line-height:1.57142857}.mce-tooltip{margin-top:2px}.mce-tooltip-inner{border-radius:3px;box-shadow:0 3px 5px rgba(0,0,0,.2);color:#fff;font-size:12px}.mce-ico{font-family:tinymce,Arial}.mce-btn-small .mce-ico{font-family:tinymce-small,Arial}.mce-toolbar .mce-ico{color:#50575e;line-height:1;width:20px;height:20px;text-align:center;text-shadow:none;margin:0;padding:0}.qt-dfw{color:#50575e;line-height:1;width:28px;height:26px;text-align:center;text-shadow:none}.mce-toolbar .mce-btn .mce-open{line-height:20px}.mce-toolbar .mce-btn.mce-active .mce-open,.mce-toolbar .mce-btn:focus .mce-open,.mce-toolbar .mce-btn:hover .mce-open{border-left-color:#1d2327}div.mce-notification{left:10%!important;right:10%}.mce-notification button.mce-close{right:6px;top:3px;font-weight:400;color:#50575e}.mce-notification button.mce-close:focus,.mce-notification button.mce-close:hover{color:#000}i.mce-i-aligncenter,i.mce-i-alignjustify,i.mce-i-alignleft,i.mce-i-alignright,i.mce-i-backcolor,i.mce-i-blockquote,i.mce-i-bold,i.mce-i-bullist,i.mce-i-charmap,i.mce-i-dashicon,i.mce-i-dfw,i.mce-i-forecolor,i.mce-i-fullscreen,i.mce-i-help,i.mce-i-hr,i.mce-i-indent,i.mce-i-italic,i.mce-i-link,i.mce-i-ltr,i.mce-i-numlist,i.mce-i-outdent,i.mce-i-pastetext,i.mce-i-pasteword,i.mce-i-redo,i.mce-i-remove,i.mce-i-removeformat,i.mce-i-spellchecker,i.mce-i-strikethrough,i.mce-i-underline,i.mce-i-undo,i.mce-i-unlink,i.mce-i-wp-media-library,i.mce-i-wp_adv,i.mce-i-wp_code,i.mce-i-wp_fullscreen,i.mce-i-wp_help,i.mce-i-wp_more,i.mce-i-wp_page{font:normal 20px/1 dashicons;padding:0;vertical-align:top;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-left:-2px;padding-right:2px}.qt-dfw{font:normal 20px/1 dashicons;vertical-align:top;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}i.mce-i-bold:before{content:"\f200"}i.mce-i-italic:before{content:"\f201"}i.mce-i-bullist:before{content:"\f203"}i.mce-i-numlist:before{content:"\f204"}i.mce-i-blockquote:before{content:"\f205"}i.mce-i-alignleft:before{content:"\f206"}i.mce-i-aligncenter:before{content:"\f207"}i.mce-i-alignright:before{content:"\f208"}i.mce-i-link:before{content:"\f103"}i.mce-i-unlink:before{content:"\f225"}i.mce-i-wp_more:before{content:"\f209"}i.mce-i-strikethrough:before{content:"\f224"}i.mce-i-spellchecker:before{content:"\f210"}.qt-dfw:before,i.mce-i-dfw:before,i.mce-i-fullscreen:before,i.mce-i-wp_fullscreen:before{content:"\f211"}i.mce-i-wp_adv:before{content:"\f212"}i.mce-i-underline:before{content:"\f213"}i.mce-i-alignjustify:before{content:"\f214"}i.mce-i-backcolor:before,i.mce-i-forecolor:before{content:"\f215"}i.mce-i-pastetext:before{content:"\f217"}i.mce-i-removeformat:before{content:"\f218"}i.mce-i-charmap:before{content:"\f220"}i.mce-i-outdent:before{content:"\f221"}i.mce-i-indent:before{content:"\f222"}i.mce-i-undo:before{content:"\f171"}i.mce-i-redo:before{content:"\f172"}i.mce-i-help:before,i.mce-i-wp_help:before{content:"\f223"}i.mce-i-wp-media-library:before{content:"\f104"}i.mce-i-ltr:before{content:"\f320"}i.mce-i-wp_page:before{content:"\f105"}i.mce-i-hr:before{content:"\f460"}i.mce-i-remove:before{content:"\f158"}i.mce-i-wp_code:before{content:"\f475"}.rtl i.mce-i-outdent:before{content:"\f222"}.rtl i.mce-i-indent:before{content:"\f221"}.wp-editor-wrap{position:relative}.wp-editor-tools{position:relative;z-index:1}.wp-editor-tools:after{clear:both;content:"";display:table}.wp-editor-container{clear:both;border:1px solid #dcdcde}.wp-editor-area{font-family:Consolas,Monaco,monospace;font-size:13px;padding:10px;margin:1px 0 0;line-height:150%;border:0;outline:0;display:block;resize:vertical;box-sizing:border-box}.rtl .wp-editor-area{font-family:Tahoma,Monaco,monospace}.locale-he-il .wp-editor-area{font-family:Arial,Monaco,monospace}.wp-editor-container textarea.wp-editor-area{width:100%;margin:0;box-shadow:none}.wp-editor-tabs{float:right}.wp-switch-editor{float:left;box-sizing:content-box;position:relative;top:1px;background:#f0f0f1;color:#646970;cursor:pointer;font-size:13px;line-height:1.46153846;height:20px;margin:5px 0 0 5px;padding:3px 8px 4px;border:1px solid #dcdcde}.wp-switch-editor:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent;color:#1d2327}.html-active .switch-html:focus,.tmce-active .switch-tmce:focus,.wp-switch-editor:active{box-shadow:none}.wp-switch-editor:active{background-color:#f6f7f7;box-shadow:none}.js .tmce-active .wp-editor-area{color:#fff}.tmce-active .quicktags-toolbar{display:none}.html-active .switch-html,.tmce-active .switch-tmce{background:#f6f7f7;color:#50575e;border-bottom-color:#f6f7f7}.wp-media-buttons{float:left}.wp-media-buttons .button{margin-right:5px;margin-bottom:4px;padding-left:7px;padding-right:7px}.wp-media-buttons .button:active{position:relative;top:1px;margin-top:-1px;margin-bottom:1px}.wp-media-buttons .insert-media{padding-left:5px}.wp-media-buttons a{text-decoration:none;color:#3c434a;font-size:12px}.wp-media-buttons img{padding:0 4px;vertical-align:middle}.wp-media-buttons span.wp-media-buttons-icon{display:inline-block;width:20px;height:20px;line-height:1;vertical-align:middle;margin:0 2px}.wp-media-buttons .add_media span.wp-media-buttons-icon{background:0 0}.wp-media-buttons .add_media span.wp-media-buttons-icon:before{font:normal 18px/1 dashicons;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-media-buttons .add_media span.wp-media-buttons-icon:before{content:"\f104"}.mce-content-body dl.wp-caption{max-width:100%}.quicktags-toolbar{padding:3px;position:relative;border-bottom:1px solid #dcdcde;background:#f6f7f7;min-height:30px}.has-dfw .quicktags-toolbar{padding-right:35px}.wp-core-ui .quicktags-toolbar input.button.button-small{margin:2px}.quicktags-toolbar input[value=link]{text-decoration:underline}.quicktags-toolbar input[value=del]{text-decoration:line-through}.quicktags-toolbar input[value="i"]{font-style:italic}.quicktags-toolbar input[value="b"]{font-weight:600}.mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw,.qt-dfw{position:absolute;top:0;right:0}.mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw{margin:7px 7px 0 0}.qt-dfw{margin:5px 5px 0 0}.qt-fullscreen{position:static;margin:2px}@media screen and (max-width:782px){.mce-toolbar .mce-btn button,.qt-dfw{padding:6px 7px}.mce-toolbar .mce-btn-group .mce-btn.mce-primary button{padding:6px 7px 5px}.mce-toolbar .mce-btn-group .mce-btn{margin:1px}.qt-dfw{width:36px;height:34px}.mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw{margin:4px 4px 0 0}.mce-toolbar .mce-colorbutton .mce-preview{left:8px;bottom:6px}.mce-window .mce-btn{padding:2px 0}.has-dfw .quicktags-toolbar,.has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first{padding-right:40px}}@media screen and (min-width:782px){.wp-core-ui .quicktags-toolbar input.button.button-small{font-size:12px;min-height:26px;line-height:2}}#wp_editbtns,#wp_gallerybtns{padding:2px;position:absolute;display:none;z-index:100020}#wp_delgallery,#wp_delimgbtn,#wp_editgallery,#wp_editimgbtn{background-color:#f0f0f1;margin:2px;padding:2px;border:1px solid #8c8f94;border-radius:3px}#wp_delgallery:hover,#wp_delimgbtn:hover,#wp_editgallery:hover,#wp_editimgbtn:hover{border-color:#50575e;background-color:#c3c4c7}#wp-link-wrap{display:none;background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);width:500px;overflow:hidden;margin-left:-250px;margin-top:-125px;position:fixed;top:50%;left:50%;z-index:100105;transition:height .2s,margin-top .2s}#wp-link-backdrop{display:none;position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:100100}#wp-link{position:relative;height:100%}#wp-link-wrap{height:600px;margin-top:-300px}#wp-link-wrap .wp-link-text-field{display:none}#wp-link-wrap.has-text-field .wp-link-text-field{display:block}#link-modal-title{background:#fff;border-bottom:1px solid #dcdcde;font-size:18px;font-weight:600;line-height:2;margin:0;padding:0 36px 0 16px}#wp-link-close{color:#646970;padding:0;position:absolute;top:0;right:0;width:36px;height:36px;text-align:center;background:0 0;border:none;cursor:pointer}#wp-link-close:before{font:normal 20px/36px dashicons;vertical-align:top;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:36px;height:36px;content:"\f158"}#wp-link-close:focus,#wp-link-close:hover{color:#135e96}#wp-link-close:focus{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent;outline-offset:-2px}#wp-link-wrap #link-selector{-webkit-overflow-scrolling:touch;padding:0 16px;position:absolute;top:calc(2.15384615em + 16px);left:0;right:0;bottom:calc(2.15384615em + 19px);display:flex;flex-direction:column;overflow:auto}#wp-link ol,#wp-link ul{list-style:none;margin:0;padding:0}#wp-link input[type=text]{box-sizing:border-box}#wp-link #link-options{padding:8px 0 12px}#wp-link p.howto{margin:3px 0}#wp-link p.howto a{text-decoration:none;color:inherit}#wp-link label input[type=text]{margin-top:5px;width:70%}#wp-link #link-options label span,#wp-link #search-panel label span.search-label{display:inline-block;width:120px;text-align:right;padding-right:5px;max-width:24%;vertical-align:middle;word-wrap:break-word}#wp-link .link-search-field{width:250px;max-width:70%}#wp-link .link-search-wrapper{margin:5px 0 9px;display:block}#wp-link .query-results{position:absolute;width:calc(100% - 32px)}#wp-link .link-search-wrapper .spinner{float:none;margin:-3px 0 0 4px}#wp-link .link-target{padding:3px 0 0}#wp-link .link-target label{max-width:70%}#wp-link .query-results{border:1px #dcdcde solid;margin:0 0 12px;background:#fff;overflow:auto;max-height:290px}#wp-link li{clear:both;margin-bottom:0;border-bottom:1px solid #f0f0f1;color:#2c3338;padding:4px 6px 4px 10px;cursor:pointer;position:relative}#wp-link .query-notice{padding:0;border-bottom:1px solid #dcdcde;background-color:#fff;color:#000}#wp-link .query-notice .query-notice-default,#wp-link .query-notice .query-notice-hint{display:block;padding:6px;border-left:4px solid #72aee6}#wp-link .unselectable.no-matches-found{padding:0;border-bottom:1px solid #dcdcde;background-color:#f6f7f7}#wp-link .no-matches-found .item-title{display:block;padding:6px;border-left:4px solid #d63638}#wp-link .query-results em{font-style:normal}#wp-link li:hover{background:#f0f6fc;color:#101517}#wp-link li.unselectable{border-bottom:1px solid #dcdcde}#wp-link li.unselectable:hover{background:#fff;cursor:auto;color:#2c3338}#wp-link li.selected{background:#dcdcde;color:#2c3338}#wp-link li.selected .item-title{font-weight:600}#wp-link li:last-child{border:none}#wp-link .item-title{display:inline-block;width:80%;width:calc(100% - 68px);word-wrap:break-word}#wp-link .item-info{text-transform:uppercase;color:#646970;font-size:11px;position:absolute;right:5px;top:5px}#wp-link .river-waiting{display:none;padding:10px 0}#wp-link .submitbox{padding:8px 16px;background:#fff;border-top:1px solid #dcdcde;position:absolute;bottom:0;left:0;right:0}#wp-link-cancel{line-height:1.92307692;float:left}#wp-link-update{line-height:1.76923076;float:right}#wp-link-submit{float:right}@media screen and (max-width:782px){#link-selector{padding:0 16px 60px}#wp-link-wrap #link-selector{bottom:calc(2.71428571em + 23px)}#wp-link-cancel{line-height:2.46153846}#wp-link .link-target{padding-top:10px}#wp-link .submitbox .button{margin-bottom:0}}@media screen and (max-width:520px){#wp-link-wrap{width:auto;margin-left:0;left:10px;right:10px;max-width:500px}}@media screen and (max-height:620px){#wp-link-wrap{transition:none;height:auto;margin-top:0;top:10px;bottom:10px}#link-selector{overflow:auto}}@media screen and (max-height:290px){#wp-link-wrap{height:auto;margin-top:0;top:10px;bottom:10px}#link-selector{overflow:auto;height:calc(100% - 92px);padding-bottom:2px}}div.wp-link-preview{float:left;margin:5px;max-width:694px;overflow:hidden;text-overflow:ellipsis}div.wp-link-preview a{color:#2271b1;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;cursor:pointer}div.wp-link-preview a.wplink-url-error{color:#d63638}.mce-inline-toolbar-grp div.mce-flow-layout-item>div{display:flex;align-items:flex-end}div.wp-link-input{float:left;margin:2px;max-width:694px}div.wp-link-input label{margin-bottom:4px;display:block}div.wp-link-input input{width:300px;padding:3px;box-sizing:border-box;line-height:1.28571429;min-height:26px}.mce-toolbar div.wp-link-input~.mce-btn,.mce-toolbar div.wp-link-preview~.mce-btn{margin:2px 1px}.mce-inline-toolbar-grp .mce-btn-group .mce-btn:last-child{margin-right:2px}.ui-autocomplete.wplink-autocomplete{z-index:100110;max-height:200px;overflow-y:auto;padding:0;margin:0;list-style:none;position:absolute;border:1px solid #4f94d4;box-shadow:0 1px 2px rgba(79,148,212,.8);background-color:#fff}.ui-autocomplete.wplink-autocomplete li{margin-bottom:0;padding:4px 10px;clear:both;white-space:normal;text-align:left}.ui-autocomplete.wplink-autocomplete li .wp-editor-float-right{float:right}.ui-autocomplete.wplink-autocomplete li.ui-state-focus{background-color:#dcdcde;cursor:pointer}@media screen and (max-width:782px){div.wp-link-input,div.wp-link-preview{max-width:70%;max-width:calc(100% - 86px)}div.wp-link-preview{margin:8px 0 8px 5px}div.wp-link-input{width:300px}div.wp-link-input input{width:100%;font-size:16px;padding:5px}}.mce-fullscreen{z-index:100010}.rtl .quicktags-toolbar input,.rtl .wp-switch-editor{font-family:Tahoma,sans-serif}.mce-rtl .mce-flow-layout .mce-flow-layout-item>div{direction:rtl}.mce-rtl .mce-listbox i.mce-caret{left:6px}html:lang(he-il) .rtl .quicktags-toolbar input,html:lang(he-il) .rtl .wp-switch-editor{font-family:Arial,sans-serif}@media print,(min-resolution:120dpi){.wp-media-buttons .add_media span.wp-media-buttons-icon{background:0 0}} \ No newline at end of file
diff --git a/wp-includes/css/media-views-rtl.css b/wp-includes/css/media-views-rtl.css
index 174d31b..cf388d4 100644
--- a/wp-includes/css/media-views-rtl.css
+++ b/wp-includes/css/media-views-rtl.css
@@ -383,6 +383,11 @@
margin: 0 0 10px;
}
+.attachment-details h2 {
+ display: grid;
+ grid-template-columns: auto 5em;
+}
+
.media-sidebar .collection-settings .setting {
margin: 1px 0;
}
@@ -1210,6 +1215,7 @@
display: flex;
align-items: center;
column-gap: .5rem;
+ margin: 11px 0;
}
.mode-grid .attachments-browser .media-toolbar-mode-select .media-toolbar-primary {
@@ -1316,47 +1322,6 @@
outline: 2px dotted #c3c4c7;
}
-.load-more-wrapper {
- clear: both;
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- justify-content: center;
- padding: 1em 0;
-}
-
-.load-more-wrapper .load-more-count {
- min-width: 100%;
- margin: 0 0 1em;
- text-align: center;
-}
-
-.load-more-wrapper .load-more {
- margin: 0;
-}
-
-/* Needs high specificity. */
-.media-frame .load-more-wrapper .load-more + .spinner {
- float: none;
- margin: 0 10px 0 -30px;
-}
-
-/* Reset spinner margin when the button is hidden to avoid horizontal scrollbar. */
-.media-frame .load-more-wrapper .load-more.hidden + .spinner {
- margin: 0;
-}
-
-/* Force a new row within the flex container. */
-.load-more-wrapper::after {
- content: "";
- min-width: 100%;
- order: 1;
-}
-
-.load-more-wrapper .load-more-jump {
- margin: 0 12px 0 0;
-}
-
/**
* Progress Bar
*/
@@ -1764,6 +1729,12 @@
vertical-align: middle;
}
+.media-frame .media-sidebar .settings-save-status .spinner {
+ position: absolute;
+ left: 0;
+ top: 0;
+}
+
.media-frame.mode-grid .spinner {
margin: 0;
float: none;
@@ -1793,7 +1764,7 @@
}
.attachment-details .settings-save-status {
- float: left;
+ text-align: left;
text-transform: none;
font-weight: 400;
}
@@ -2518,7 +2489,6 @@
/* Visually hide the menu heading keeping it available to assistive technologies. */
.media-frame-menu-heading {
clip: rect(1px, 1px, 1px, 1px);
- -webkit-clip-path: inset(50%);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
@@ -2803,7 +2773,8 @@
}
.mode-grid .attachments-browser .media-toolbar-primary {
- display: flex;
+ display: grid;
+ grid-template-columns: auto 1fr;
}
.mode-grid .attachments-browser .media-toolbar-primary input[type="search"] {
diff --git a/wp-includes/css/media-views-rtl.min.css b/wp-includes/css/media-views-rtl.min.css
index 2607084..69da035 100644
--- a/wp-includes/css/media-views-rtl.min.css
+++ b/wp-includes/css/media-views-rtl.min.css
@@ -6,4 +6,4 @@
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
- */.ui-draggable-handle,.ui-sortable-handle{touch-action:none}.media-modal{position:fixed;top:30px;right:30px;left:30px;bottom:30px;z-index:160000}.wp-customizer .media-modal{z-index:560000}.media-modal-backdrop{position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:159900}.wp-customizer .media-modal-backdrop{z-index:559900}.media-modal-close{position:absolute;top:0;left:0;width:50px;height:50px;margin:0;padding:0;border:1px solid transparent;background:0 0;color:#646970;z-index:1000;cursor:pointer;outline:0;transition:color .1s ease-in-out,background .1s ease-in-out}.media-modal-close:active,.media-modal-close:hover{color:#135e96}.media-modal-close:focus{color:#135e96;border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8);outline:2px solid transparent}.media-modal-close span.media-modal-icon{background-image:none}.media-modal-close .media-modal-icon:before{content:"\f158";font:normal 20px/1 dashicons;speak:never;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.media-modal-content{position:absolute;top:0;right:0;left:0;bottom:0;overflow:auto;min-height:300px;box-shadow:0 5px 15px rgba(0,0,0,.7);background:#fff;-webkit-font-smoothing:subpixel-antialiased}.media-modal-content .media-frame select.attachment-filters{margin-top:32px;margin-left:2%;width:42%;width:calc(48% - 12px)}.wp-core-ui .media-modal-icon{background-image:url(../images/uploader-icons.png);background-repeat:no-repeat}.media-toolbar{position:absolute;top:0;right:0;left:0;z-index:100;height:60px;padding:0 16px;border:0 solid #dcdcde;overflow:hidden}.media-frame-toolbar .media-toolbar{top:auto;bottom:-47px;height:auto;overflow:visible;border-top:1px solid #dcdcde}.media-toolbar-primary{float:left;height:100%;position:relative}.media-toolbar-secondary{float:right;height:100%}.media-toolbar-primary>.media-button,.media-toolbar-primary>.media-button-group{margin-right:10px;float:right;margin-top:15px}.media-toolbar-secondary>.media-button,.media-toolbar-secondary>.media-button-group{margin-left:10px;margin-top:15px}.media-sidebar{position:absolute;top:0;left:0;bottom:0;width:267px;padding:0 16px;z-index:75;background:#f6f7f7;border-right:1px solid #dcdcde;overflow:auto;-webkit-overflow-scrolling:touch}.media-sidebar::after{content:"";display:flex;clear:both;height:24px}.hide-toolbar .media-sidebar{bottom:0}.image-details .media-embed h2,.media-sidebar h2{position:relative;font-weight:600;text-transform:uppercase;font-size:12px;color:#646970;margin:24px 0 8px}.attachment-details .setting,.media-sidebar .setting{display:block;float:right;width:100%;margin:0 0 10px}.media-sidebar .collection-settings .setting{margin:1px 0}.attachment-details .setting.has-description,.media-sidebar .setting.has-description{margin-bottom:5px}.media-sidebar .setting .link-to-custom{margin:3px 2px 0}.attachment-details .setting .name,.attachment-details .setting span,.media-sidebar .setting .name,.media-sidebar .setting .value,.media-sidebar .setting span{min-width:30%;margin-left:4%;font-size:12px;text-align:left;word-wrap:break-word}.media-sidebar .setting .name{max-width:80px}.media-sidebar .setting .value{text-align:right}.media-sidebar .setting select{max-width:65%}.attachment-details .field input[type=checkbox],.attachment-details .field input[type=radio],.attachment-details .setting input[type=checkbox],.attachment-details .setting input[type=radio],.media-sidebar .field input[type=checkbox],.media-sidebar .field input[type=radio],.media-sidebar .setting input[type=checkbox],.media-sidebar .setting input[type=radio]{float:none;margin:8px 3px 0;padding:0}.attachment-details .setting .name,.attachment-details .setting .value,.attachment-details .setting span,.compat-item label span,.media-sidebar .checkbox-label-inline,.media-sidebar .setting .name,.media-sidebar .setting .value,.media-sidebar .setting span{float:right;min-height:22px;padding-top:8px;line-height:1.33333333;font-weight:400;color:#646970}.media-sidebar .checkbox-label-inline{font-size:12px}.attachment-details .copy-to-clipboard-container,.media-sidebar .copy-to-clipboard-container{flex-wrap:wrap;margin-top:10px;margin-right:calc(35% - 1px);padding-top:10px}.attachment-details .attachment-info .copy-to-clipboard-container{float:none}.attachment-details .copy-to-clipboard-container .success,.media-sidebar .copy-to-clipboard-container .success{padding:0;min-height:0;line-height:2.18181818;text-align:right;color:#007017}.compat-item label span{text-align:left}.attachment-details .setting .value,.attachment-details .setting input[type=email],.attachment-details .setting input[type=number],.attachment-details .setting input[type=password],.attachment-details .setting input[type=search],.attachment-details .setting input[type=tel],.attachment-details .setting input[type=text],.attachment-details .setting input[type=url],.attachment-details .setting textarea,.attachment-details .setting+.description,.media-sidebar .setting .value,.media-sidebar .setting input[type=email],.media-sidebar .setting input[type=number],.media-sidebar .setting input[type=password],.media-sidebar .setting input[type=search],.media-sidebar .setting input[type=tel],.media-sidebar .setting input[type=text],.media-sidebar .setting input[type=url],.media-sidebar .setting textarea{box-sizing:border-box;margin:1px;width:65%;float:left}.attachment-details .setting .value,.attachment-details .setting+.description,.media-sidebar .setting .value{margin:0 1px;text-align:right}.attachment-details .setting+.description{clear:both;font-size:12px;font-style:normal;margin-bottom:10px}.attachment-details .setting textarea,.compat-item .field textarea,.media-sidebar .setting textarea{height:62px;resize:vertical}.alt-text textarea,.attachment-details .alt-text textarea,.compat-item .alt-text textarea,.media-sidebar .alt-text textarea{height:50px}.compat-item{float:right;width:100%;overflow:hidden}.compat-item table{width:100%;table-layout:fixed;border-spacing:0;border:0}.compat-item tr{padding:2px 0;display:block;overflow:hidden}.compat-item .field,.compat-item .label{display:block;margin:0;padding:0}.compat-item .label{min-width:30%;margin-left:4%;float:right;text-align:left}.compat-item .label span{display:block;width:100%}.compat-item .field{float:left;width:65%;margin:1px}.compat-item .field input[type=email],.compat-item .field input[type=number],.compat-item .field input[type=password],.compat-item .field input[type=search],.compat-item .field input[type=tel],.compat-item .field input[type=text],.compat-item .field input[type=url],.compat-item .field textarea{width:100%;margin:0;box-sizing:border-box}.sidebar-for-errors .attachment-details,.sidebar-for-errors .compat-item,.sidebar-for-errors .media-sidebar .media-progress-bar,.sidebar-for-errors .upload-details{display:none!important}.media-menu{position:absolute;top:0;right:0;left:0;bottom:0;margin:0;padding:50px 0 10px;background:#f6f7f7;border-left-width:1px;border-left-style:solid;border-left-color:#c3c4c7;-webkit-user-select:none;user-select:none}.media-menu .media-menu-item{display:block;box-sizing:border-box;width:100%;position:relative;border:0;margin:0;padding:8px 20px;font-size:14px;line-height:1.28571428;background:0 0;color:#2271b1;text-align:right;text-decoration:none;cursor:pointer}.media-menu .media-menu-item:hover{background:rgba(0,0,0,.04)}.media-menu .media-menu-item:active{color:#2271b1;outline:0}.media-menu .active,.media-menu .active:hover{color:#1d2327;font-weight:600}.media-menu .media-menu-item:focus{box-shadow:0 0 0 2px #2271b1;color:#043959;outline:2px solid transparent}.media-menu .separator{height:0;margin:12px 20px;padding:0;border-top:1px solid #dcdcde}.media-router{position:relative;padding:0 6px;margin:0;clear:both}.media-router .media-menu-item{position:relative;float:right;border:0;margin:0;padding:8px 10px 9px;height:18px;line-height:1.28571428;font-size:14px;text-decoration:none;background:0 0;cursor:pointer;transition:none}.media-router .media-menu-item:last-child{border-left:0}.media-router .media-menu-item:active,.media-router .media-menu-item:hover{color:#2271b1}.media-router .active,.media-router .active:hover{color:#1d2327}.media-router .media-menu-item:focus{box-shadow:0 0 0 2px #2271b1;color:#043959;outline:2px solid transparent}.media-router .active,.media-router .media-menu-item.active:last-child{margin:-1px -1px 0;background:#fff;border:1px solid #dcdcde;border-bottom:none}.media-router .active:after{display:none}.media-frame{overflow:hidden;position:absolute;top:0;right:0;left:0;bottom:0}.media-frame-menu{position:absolute;top:0;right:0;bottom:0;width:200px;z-index:150}.media-frame-title{position:absolute;top:0;right:200px;left:0;height:50px;z-index:200}.media-frame-router{position:absolute;top:50px;right:200px;left:0;height:36px;z-index:200}.media-frame-content{position:absolute;top:84px;right:200px;left:0;bottom:61px;height:auto;width:auto;margin:0;overflow:auto;background:#fff;border-top:1px solid #dcdcde}.media-frame-toolbar{position:absolute;right:200px;left:0;z-index:100;bottom:60px;height:auto}.media-frame.hide-menu .media-frame-content,.media-frame.hide-menu .media-frame-router,.media-frame.hide-menu .media-frame-title,.media-frame.hide-menu .media-frame-toolbar{right:0}.media-frame.hide-toolbar .media-frame-content{bottom:0}.media-frame.hide-router .media-frame-content{top:50px}.media-frame.hide-menu .media-frame-menu,.media-frame.hide-menu .media-frame-menu-heading,.media-frame.hide-router .media-frame-router,.media-frame.hide-toolbar .media-frame-toolbar{display:none}.media-frame-title h1{padding:0 16px;font-size:22px;line-height:2.27272727;margin:0}.media-attachments-filter-heading,.media-frame-menu-heading{position:absolute;right:20px;top:22px;margin:0;font-size:13px;line-height:1;z-index:151}.media-attachments-filter-heading{top:10px;right:16px}.mode-grid .media-attachments-filter-heading{top:0;right:-9999px}.mode-grid .media-frame-actions-heading{display:none}.wp-core-ui .button.media-frame-menu-toggle{display:none}.media-frame-title .suggested-dimensions{font-size:14px;float:left;margin-left:20px}.media-frame-content .crop-content{height:100%}.options-general-php .crop-content.site-icon,.wp-customizer:not(.mobile) .media-frame-content .crop-content.site-icon{margin-left:300px}.media-frame-content .crop-content .crop-image{display:block;margin:auto;max-width:100%;max-height:100%}.media-frame-content .crop-content .upload-errors{position:absolute;width:300px;top:50%;right:50%;margin-right:-150px;margin-left:-150px;z-index:600000}.media-frame .media-iframe{overflow:hidden}.media-frame .media-iframe,.media-frame .media-iframe iframe{height:100%;width:100%;border:0}.media-frame select.attachment-filters{margin-top:11px;margin-left:2%;max-width:42%;max-width:calc(48% - 12px)}.media-frame select.attachment-filters:last-of-type{margin-left:0}.media-frame .search{margin:32px 0 0;padding:4px;font-size:13px;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;-webkit-appearance:none}.media-toolbar-primary .search{max-width:100%}.media-modal .media-frame .media-search-input-label{position:absolute;right:0;top:10px;margin:0;line-height:1}.wp-core-ui .attachments{margin:0;-webkit-overflow-scrolling:touch}.wp-core-ui .attachment{position:relative;float:right;padding:8px;margin:0;color:#3c434a;cursor:pointer;list-style:none;text-align:center;-webkit-user-select:none;user-select:none;width:25%;box-sizing:border-box}.wp-core-ui .attachment.details:focus,.wp-core-ui .attachment:focus,.wp-core-ui .selected.attachment:focus{box-shadow:inset 0 0 2px 3px #fff,inset 0 0 0 7px #4f94d4;outline:2px solid transparent;outline-offset:-6px}.wp-core-ui .selected.attachment{box-shadow:inset 0 0 0 5px #fff,inset 0 0 0 7px #c3c4c7}.wp-core-ui .attachment.details{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #2271b1}.wp-core-ui .attachment-preview{position:relative;box-shadow:inset 0 0 15px rgba(0,0,0,.1),inset 0 0 0 1px rgba(0,0,0,.05);background:#f0f0f1;cursor:pointer}.wp-core-ui .attachment-preview:before{content:"";display:block;padding-top:100%}.wp-core-ui .attachment .icon{margin:0 auto;overflow:hidden}.wp-core-ui .attachment .thumbnail{overflow:hidden;position:absolute;top:0;left:0;bottom:0;right:0;opacity:1;transition:opacity .1s}.wp-core-ui .attachment .portrait img{max-width:100%}.wp-core-ui .attachment .landscape img{max-height:100%}.wp-core-ui .attachment .thumbnail:after{content:"";display:block;position:absolute;top:0;right:0;left:0;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);overflow:hidden}.wp-core-ui .attachment .thumbnail img{top:0;right:0}.wp-core-ui .attachment .thumbnail .centered{position:absolute;top:0;right:0;width:100%;height:100%;transform:translate(-50%,50%)}.wp-core-ui .attachment .thumbnail .centered img{transform:translate(50%,-50%)}.wp-core-ui .attachments-browser .attachment .thumbnail .centered img.icon{transform:translate(50%,-70%)}.wp-core-ui .attachment .filename{position:absolute;right:0;left:0;bottom:0;overflow:hidden;max-height:100%;word-wrap:break-word;text-align:center;font-weight:600;background:rgba(255,255,255,.8);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}.wp-core-ui .attachment .filename div{padding:5px 10px}.wp-core-ui .attachment .thumbnail img{position:absolute}.wp-core-ui .attachment-close{display:block;position:absolute;top:5px;left:5px;height:22px;width:22px;padding:0;background-color:#fff;background-position:-96px 4px;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.3);transition:none}.wp-core-ui .attachment-close:focus,.wp-core-ui .attachment-close:hover{background-position:-36px 4px}.wp-core-ui .attachment .check{display:none;height:24px;width:24px;padding:0;border:0;position:absolute;z-index:10;top:0;left:0;outline:0;background:#f0f0f1;cursor:pointer;box-shadow:0 0 0 1px #fff,0 0 0 2px rgba(0,0,0,.15)}.wp-core-ui .attachment .check .media-modal-icon{display:block;background-position:-1px 0;height:15px;width:15px;margin:5px}.wp-core-ui .attachment .check:hover .media-modal-icon{background-position:-40px 0}.wp-core-ui .attachment.selected .check{display:block}.wp-core-ui .attachment.details .check,.wp-core-ui .attachment.selected .check:focus,.wp-core-ui .media-frame.mode-grid .attachment.selected .check{background-color:#2271b1;box-shadow:0 0 0 1px #fff,0 0 0 2px #2271b1}.wp-core-ui .attachment.selected .check:focus{outline:2px solid transparent}.wp-core-ui .attachment.details .check .media-modal-icon,.wp-core-ui .media-frame.mode-grid .attachment.selected .check .media-modal-icon{background-position:-21px 0}.wp-core-ui .attachment.details .check:hover .media-modal-icon,.wp-core-ui .attachment.selected .check:focus .media-modal-icon,.wp-core-ui .media-frame.mode-grid .attachment.selected .check:hover .media-modal-icon{background-position:-60px 0}.wp-core-ui .media-frame .attachment .describe{position:relative;display:block;width:100%;margin:0;padding:0 8px;font-size:12px;border-radius:0}.media-frame .attachments-browser{position:relative;width:100%;height:100%;overflow:hidden}.attachments-browser .media-toolbar{left:300px;height:72px;background:#fff}.attachments-browser.hide-sidebar .media-toolbar{left:0}.attachments-browser .media-toolbar-primary>.media-button,.attachments-browser .media-toolbar-primary>.media-button-group,.attachments-browser .media-toolbar-secondary>.media-button,.attachments-browser .media-toolbar-secondary>.media-button-group{margin:10px 0}.attachments-browser .attachments{padding:2px 8px 8px}.attachments-browser .uploader-inline,.attachments-browser.has-load-more .attachments-wrapper,.attachments-browser:not(.has-load-more) .attachments{position:absolute;top:72px;right:0;left:300px;bottom:0;overflow:auto;outline:0}.attachments-browser .uploader-inline.hidden{display:none}.attachments-browser .media-toolbar-primary{max-width:33%}.mode-grid .attachments-browser .media-toolbar-primary{display:flex;align-items:center;column-gap:.5rem}.mode-grid .attachments-browser .media-toolbar-mode-select .media-toolbar-primary{display:none}.attachments-browser .media-toolbar-secondary{max-width:66%}.uploader-inline .close{background-color:transparent;border:0;cursor:pointer;height:48px;outline:0;padding:0;position:absolute;left:2px;text-align:center;top:2px;width:48px;z-index:1}.uploader-inline .close:before{font:normal 30px/1 dashicons!important;color:#50575e;display:inline-block;content:"\f335";font-weight:300;margin-top:1px}.uploader-inline .close:focus{outline:1px solid #4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8)}.attachments-browser.hide-sidebar .attachments,.attachments-browser.hide-sidebar .uploader-inline{left:0;margin-left:0}.attachments-browser .instructions{display:inline-block;margin-top:16px;line-height:1.38461538;font-size:13px;color:#646970}.attachments-browser .no-media{padding:2em 2em 0 0}.more-loaded .attachment:not(.found-media){background:#dcdcde}.load-more-wrapper{clear:both;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;padding:1em 0}.load-more-wrapper .load-more-count{min-width:100%;margin:0 0 1em;text-align:center}.load-more-wrapper .load-more{margin:0}.media-frame .load-more-wrapper .load-more+.spinner{float:none;margin:0 10px 0 -30px}.media-frame .load-more-wrapper .load-more.hidden+.spinner{margin:0}.load-more-wrapper::after{content:"";min-width:100%;order:1}.load-more-wrapper .load-more-jump{margin:0 12px 0 0}.attachment.new-media{outline:2px dotted #c3c4c7}.load-more-wrapper{clear:both;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;padding:1em 0}.load-more-wrapper .load-more-count{min-width:100%;margin:0 0 1em;text-align:center}.load-more-wrapper .load-more{margin:0}.media-frame .load-more-wrapper .load-more+.spinner{float:none;margin:0 10px 0 -30px}.media-frame .load-more-wrapper .load-more.hidden+.spinner{margin:0}.load-more-wrapper::after{content:"";min-width:100%;order:1}.load-more-wrapper .load-more-jump{margin:0 12px 0 0}.media-progress-bar{position:relative;height:10px;width:70%;margin:10px auto;border-radius:10px;background:#dcdcde;background:rgba(0,0,0,.1)}.media-progress-bar div{height:10px;min-width:20px;width:0;background:#2271b1;border-radius:10px;transition:width .3s}.media-uploader-status .media-progress-bar{display:none;width:100%}.uploading.media-uploader-status .media-progress-bar{display:block}.attachment-preview .media-progress-bar{position:absolute;top:50%;right:15%;width:70%;margin:-5px 0 0}.media-uploader-status{position:relative;margin:0 auto;padding-bottom:10px;max-width:400px}.uploader-inline .media-uploader-status h2{display:none}.media-uploader-status .upload-details{display:none;font-size:12px;color:#646970}.uploading.media-uploader-status .upload-details{display:block}.media-uploader-status .upload-detail-separator{padding:0 4px}.media-uploader-status .upload-count{color:#3c434a}.media-uploader-status .upload-dismiss-errors,.media-uploader-status .upload-errors{display:none}.errors.media-uploader-status .upload-dismiss-errors,.errors.media-uploader-status .upload-errors{display:block}.media-uploader-status .upload-dismiss-errors{transition:none;text-decoration:none}.upload-errors .upload-error{padding:12px;margin-bottom:12px;background:#fff;border-right:4px solid #d63638;box-shadow:0 1px 1px 0 rgba(0,0,0,.1)}.uploader-inline .upload-errors .upload-error{padding:12px 30px;background-color:#fcf0f1;box-shadow:none}.upload-errors .upload-error-filename{font-weight:600}.upload-errors .upload-error-message{display:block;padding-top:8px;word-wrap:break-word}.uploader-window,.wp-editor-wrap .uploader-editor{top:0;right:0;left:0;bottom:0;text-align:center;display:none}.uploader-window{position:fixed;z-index:250000;opacity:0;transition:opacity 250ms}.wp-editor-wrap .uploader-editor{position:absolute;z-index:99998;background:rgba(140,143,148,.9)}.uploader-window,.wp-editor-wrap .uploader-editor.droppable{background:rgba(10,75,120,.9)}.uploader-window-content,.wp-editor-wrap .uploader-editor-content{position:absolute;top:10px;right:10px;left:10px;bottom:10px;border:1px dashed #fff}.uploader-window .uploader-editor-title,.uploader-window h1,.wp-editor-wrap .uploader-editor .uploader-editor-title{position:absolute;top:50%;right:0;left:0;transform:translateY(-50%);font-size:3em;line-height:1.3;font-weight:600;color:#fff;margin:0;padding:0 10px}.wp-editor-wrap .uploader-editor .uploader-editor-title{display:none}.wp-editor-wrap .uploader-editor.droppable .uploader-editor-title{display:block}.uploader-window .media-progress-bar{margin-top:20px;max-width:300px;background:0 0;border-color:#fff;display:none}.uploader-window .media-progress-bar div{background:#fff}.uploading .uploader-window .media-progress-bar{display:block}.media-frame .uploader-inline{margin-bottom:20px;padding:0;text-align:center}.uploader-inline-content{position:absolute;top:30%;right:0;left:0}.uploader-inline-content .upload-ui{margin:2em 0}.uploader-inline-content .post-upload-ui{margin-bottom:2em}.uploader-inline .has-upload-message .upload-ui{margin:0 0 4em}.uploader-inline h2{font-size:20px;line-height:1.4;font-weight:400;margin:0}.uploader-inline .has-upload-message .upload-instructions{font-size:14px;color:#3c434a;font-weight:400}.uploader-inline .drop-instructions{display:none}.supports-drag-drop .uploader-inline .drop-instructions{display:block}.uploader-inline p{margin:.5em 0}.uploader-inline .media-progress-bar{display:none}.uploading.uploader-inline .media-progress-bar{display:block}.uploader-inline .browser{display:inline-block!important}.media-selection{position:absolute;top:0;right:0;left:350px;height:60px;padding:0 16px 0 0;overflow:hidden;white-space:nowrap}.media-selection .selection-info{display:inline-block;font-size:12px;height:60px;margin-left:10px;vertical-align:top}.media-selection.editing,.media-selection.empty{display:none}.media-selection.one .edit-selection{display:none}.media-selection .count{display:block;padding-top:12px;font-size:14px;line-height:1.42857142;font-weight:600}.media-selection .button-link{float:right;padding:1px 8px;margin:1px -8px 1px 8px;line-height:1.4;border-left:1px solid #dcdcde;color:#2271b1;text-decoration:none}.media-selection .button-link:focus,.media-selection .button-link:hover{color:#135e96}.media-selection .button-link:last-child{border-left:0;margin-left:0}.selection-info .clear-selection{color:#d63638}.selection-info .clear-selection:focus,.selection-info .clear-selection:hover{color:#d63638}.media-selection .selection-view{display:inline-block;vertical-align:top}.media-selection .attachments{display:inline-block;height:48px;margin:6px;padding:0;overflow:hidden;vertical-align:top}.media-selection .attachment{width:40px;padding:0;margin:4px}.media-selection .attachment .thumbnail{top:0;left:0;bottom:0;right:0}.media-selection .attachment .icon{width:50%}.media-selection .attachment-preview{box-shadow:none;background:0 0}.wp-core-ui .media-selection .attachment.details:focus,.wp-core-ui .media-selection .attachment:focus,.wp-core-ui .media-selection .selected.attachment:focus{box-shadow:0 0 0 1px #fff,0 0 2px 3px #4f94d4;outline:2px solid transparent}.wp-core-ui .media-selection .selected.attachment{box-shadow:none}.wp-core-ui .media-selection .attachment.details{box-shadow:0 0 0 1px #fff,0 0 0 3px #2271b1}.media-selection:after{content:"";display:block;position:absolute;top:0;left:0;bottom:0;width:25px;background-image:linear-gradient(to right,#fff,rgba(255,255,255,0))}.media-selection .attachment .filename{display:none}.media-frame .spinner{background:url(../images/spinner.gif) no-repeat;background-size:20px 20px;float:left;display:inline-block;visibility:hidden;opacity:.7;width:20px;height:20px;margin:0;vertical-align:middle}.media-frame.mode-grid .spinner{margin:0;float:none;vertical-align:middle}.media-modal .media-toolbar .spinner{float:none;vertical-align:bottom;margin:0 5px 5px 0}.media-frame .instructions+.spinner.is-active{vertical-align:middle}.media-frame .spinner.is-active{visibility:visible}.attachment-details{position:relative;overflow:auto}.attachment-details .settings-save-status{float:left;text-transform:none;font-weight:400}.attachment-details .settings-save-status .spinner{float:none;margin-right:5px}.attachment-details .settings-save-status .saved{display:none}.attachment-details.save-waiting .settings-save-status .spinner{visibility:visible}.attachment-details.save-complete .settings-save-status .saved{display:inline-block}.attachment-info{overflow:hidden;min-height:60px;margin-bottom:16px;line-height:1.5;color:#646970;border-bottom:1px solid #dcdcde;padding-bottom:11px}.attachment-info .wp-media-wrapper{margin-bottom:8px}.attachment-info .wp-media-wrapper.wp-audio{margin-top:13px}.attachment-info .filename{font-weight:600;color:#3c434a;word-wrap:break-word}.attachment-info .thumbnail{position:relative;float:right;max-width:120px;max-height:120px;margin-top:5px;margin-left:10px;margin-bottom:5px}.uploading .attachment-info .thumbnail{width:120px;height:80px;box-shadow:inset 0 0 15px rgba(0,0,0,.1)}.uploading .attachment-info .media-progress-bar{margin-top:35px}.attachment-info .thumbnail-image:after{content:"";display:block;position:absolute;top:0;right:0;left:0;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);overflow:hidden}.attachment-info .thumbnail img{display:block;max-width:120px;max-height:120px;margin:0 auto}.attachment-info .details{float:right;font-size:12px;max-width:100%}.attachment-info .delete-attachment,.attachment-info .edit-attachment,.attachment-info .trash-attachment,.attachment-info .untrash-attachment{display:block;text-decoration:none;white-space:nowrap}.attachment-details.needs-refresh .attachment-info .edit-attachment{display:none}.attachment-info .edit-attachment{display:block}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment{display:inline;padding:0;color:#d63638}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover{color:#d63638}.attachment-display-settings{width:100%;float:right;overflow:hidden}.collection-settings{overflow:hidden}.collection-settings .setting input[type=checkbox]{float:right;margin-left:8px}.collection-settings .setting .name,.collection-settings .setting span{min-width:inherit}.media-modal .imgedit-wrap{position:static}.media-modal .imgedit-wrap .imgedit-panel-content{padding:16px 16px 0;overflow:visible}.media-modal .imgedit-wrap .imgedit-save-target{margin:8px 0 24px}.media-modal .imgedit-group{background:0 0;border:none;box-shadow:none;margin:0;padding:0;position:relative}.media-modal .imgedit-group.imgedit-panel-active{margin-bottom:16px;padding-bottom:16px}.media-modal .imgedit-group-top{margin:0}.media-modal .imgedit-group-top h2,.media-modal .imgedit-group-top h2 .button-link{display:inline-block;text-transform:uppercase;font-size:12px;color:#646970;margin:0;margin-top:3px}.media-modal .imgedit-group-top h2 .button-link,.media-modal .imgedit-group-top h2 a{text-decoration:none;color:#646970}.wp-core-ui.media-modal .image-editor .imgedit-help-toggle,.wp-core-ui.media-modal .image-editor .imgedit-help-toggle:active,.wp-core-ui.media-modal .image-editor .imgedit-help-toggle:hover{border:1px solid transparent;margin:0;padding:0;background:0 0;color:#2271b1;font-size:20px;line-height:1;cursor:pointer;box-sizing:content-box;box-shadow:none}.wp-core-ui.media-modal .image-editor .imgedit-help-toggle:focus{color:#2271b1;border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}.wp-core-ui.media-modal .imgedit-group-top .dashicons-arrow-down.imgedit-help-toggle{margin-top:-3px}.wp-core-ui.media-modal .image-editor h3 .imgedit-help-toggle{margin-top:-2px}.media-modal .imgedit-help-toggled span.dashicons:before{content:"\f142"}.media-modal .imgedit-thumbnail-preview{margin:10px 0 0 8px}.imgedit-thumbnail-preview-caption{display:block}.media-modal .imgedit-wrap .notice,.media-modal .imgedit-wrap div.updated{margin:0 16px}.embed-url{display:block;position:relative;padding:16px;margin:0;z-index:250;background:#fff;font-size:18px}.media-frame .embed-url input{font-size:18px;line-height:1.22222222;padding:12px 14px 12px 40px;width:100%;min-width:200px;box-shadow:inset -2px 2px 4px -2px rgba(0,0,0,.1)}.media-frame .embed-url input::-ms-clear{display:none}.media-frame .embed-url .spinner{position:absolute;top:32px;left:26px}.media-frame .embed-loading .embed-url .spinner{visibility:visible}.embed-link-settings,.embed-media-settings{position:absolute;top:82px;right:0;left:0;bottom:0;padding:0 16px;overflow:auto}.media-embed .embed-link-settings .link-text{margin-top:0}.embed-link-settings::after,.embed-media-settings::after{content:"";display:flex;clear:both;height:24px}.media-embed .embed-link-settings{overflow:visible}.embed-preview embed,.embed-preview iframe,.embed-preview img,.mejs-container video{max-width:100%;vertical-align:middle}.embed-preview a{display:inline-block}.embed-preview img{display:block;height:auto}.mejs-container:focus{outline:1px solid #2271b1;box-shadow:0 0 0 2px #2271b1}.image-details .media-modal{right:140px;left:140px}.image-details .media-frame-content,.image-details .media-frame-router,.image-details .media-frame-title{right:0}.image-details .embed-media-settings{top:0;overflow:visible;padding:0}.image-details .embed-media-settings::after{content:none}.image-details .embed-media-settings,.image-details .embed-media-settings div{box-sizing:border-box}.image-details .column-settings{background:#f6f7f7;border-left:1px solid #dcdcde;min-height:100%;width:55%;position:absolute;top:0;right:0}.image-details .column-settings h2{margin:20px;padding-top:20px;border-top:1px solid #dcdcde;color:#1d2327}.image-details .column-image{width:45%;position:absolute;right:55%;top:0}.image-details .image{margin:20px}.image-details .image img{max-width:100%;max-height:500px}.image-details .advanced-toggle{padding:0;color:#646970;text-transform:uppercase;text-decoration:none}.image-details .advanced-toggle:active,.image-details .advanced-toggle:hover{color:#646970}.image-details .advanced-toggle:after{font:normal 20px/1 dashicons;speak:never;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f140";display:inline-block;margin-top:-2px}.image-details .advanced-visible .advanced-toggle:after{content:"\f142"}.image-details .custom-size .custom-size-setting,.image-details .custom-size label{display:block;float:right}.image-details .custom-size .custom-size-setting label{float:none}.image-details .custom-size input{width:5em}.image-details .custom-size .sep{float:right;margin:26px 6px 0}.image-details .custom-size .description{margin-right:0}.media-embed .thumbnail{max-width:100%;max-height:200px;position:relative;float:right}.media-embed .thumbnail img{max-height:200px;display:block}.media-embed .thumbnail:after{content:"";display:block;position:absolute;top:0;right:0;left:0;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);overflow:hidden}.media-embed .setting,.media-embed .setting-group{width:100%;margin:10px 0;float:right;display:block;clear:both}.media-embed .setting-group .setting:not(.checkbox-setting){margin:0}.media-embed .setting.has-description{margin-bottom:5px}.media-embed .description{clear:both;font-style:normal}.media-embed .content-track+.description{line-height:1.4;max-width:none!important}.media-embed .remove-track{margin-bottom:10px}.image-details .embed-media-settings .setting,.image-details .embed-media-settings .setting-group{float:none;width:auto}.image-details .actions{margin:10px 0}.image-details .hidden{display:none}.media-embed .setting input[type=text],.media-embed .setting textarea,.media-embed fieldset{display:block;width:100%;max-width:400px}.image-details .embed-media-settings .setting input[type=text],.image-details .embed-media-settings .setting textarea{max-width:inherit;width:70%}.image-details .description,.image-details .embed-media-settings .custom-size,.image-details .embed-media-settings .link-target,.image-details .embed-media-settings .setting input.link-to-custom,.image-details .embed-media-settings .setting-group{margin-right:27%;width:70%}.image-details .description{font-style:normal;margin-top:0}.image-details .embed-media-settings .link-target{margin-top:16px}.audio-details .checkbox-label,.image-details .checkbox-label,.video-details .checkbox-label{vertical-align:baseline}.media-embed .setting input.hidden,.media-embed .setting textarea.hidden{display:none}.media-embed .setting .name,.media-embed .setting span,.media-embed .setting-group .name{display:inline-block;font-size:13px;line-height:1.84615384;color:#646970}.media-embed .setting span{display:block;width:200px}.image-details .embed-media-settings .setting .name,.image-details .embed-media-settings .setting span{float:right;width:25%;text-align:left;margin:8px 1% 0;line-height:1.1}.image-details .embed-media-settings .setting .button-group,.media-frame .setting-group .button-group{width:auto}.media-embed-sidebar{position:absolute;top:0;right:440px}.advanced-section,.link-settings{margin-top:10px}.media-frame .setting .button-group{display:flex;margin:0!important;max-width:none!important}.rtl .media-frame,.rtl .media-frame .search,.rtl .media-frame input[type=email],.rtl .media-frame input[type=number],.rtl .media-frame input[type=password],.rtl .media-frame input[type=search],.rtl .media-frame input[type=tel],.rtl .media-frame input[type=text],.rtl .media-frame input[type=url],.rtl .media-frame select,.rtl .media-frame textarea,.rtl .media-modal{font-family:Tahoma,sans-serif}:lang(he-il) .rtl .media-frame,:lang(he-il) .rtl .media-frame .search,:lang(he-il) .rtl .media-frame input[type=email],:lang(he-il) .rtl .media-frame input[type=number],:lang(he-il) .rtl .media-frame input[type=password],:lang(he-il) .rtl .media-frame input[type=search],:lang(he-il) .rtl .media-frame input[type=text],:lang(he-il) .rtl .media-frame input[type=url],:lang(he-il) .rtl .media-frame select,:lang(he-il) .rtl .media-frame textarea,:lang(he-il) .rtl .media-modal{font-family:Arial,sans-serif}@media only screen and (max-width:900px){.media-modal .media-frame-title{height:40px}.media-modal .media-frame-title h1{line-height:2.22222222;font-size:18px}.media-modal-close{width:42px;height:42px}.media-frame .media-frame-title{position:static;padding:0 44px;text-align:center}.media-frame:not(.hide-menu) .media-frame-content,.media-frame:not(.hide-menu) .media-frame-router,.media-frame:not(.hide-menu) .media-frame-toolbar{right:0}.media-frame:not(.hide-menu) .media-frame-router{top:80px}.media-frame:not(.hide-menu) .media-frame-content{top:114px}.media-frame.hide-router .media-frame-content{top:80px}.media-frame:not(.hide-menu) .media-frame-menu{position:static;width:0}.media-frame:not(.hide-menu) .media-menu{display:none;width:auto;max-width:80%;overflow:auto;z-index:2000;top:75px;right:50%;transform:translateX(50%);left:auto;bottom:auto;padding:5px 0;border:1px solid #c3c4c7}.media-frame:not(.hide-menu) .media-menu.visible{display:block}.media-frame:not(.hide-menu) .media-menu>a{padding:12px 16px;font-size:16px}.media-frame:not(.hide-menu) .media-menu .separator{margin:5px 10px}.media-frame-menu-heading{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;padding:0;width:1px;word-wrap:normal!important}.wp-core-ui .media-frame:not(.hide-menu) .button.media-frame-menu-toggle{display:inline-flex;align-items:center;position:absolute;right:50%;transform:translateX(50%);margin:-6px 0 0;padding:0 12px 0 2px;font-size:.875rem;font-weight:600;text-decoration:none;background:0 0;height:.1%;min-height:40px}.wp-core-ui .button.media-frame-menu-toggle:active,.wp-core-ui .button.media-frame-menu-toggle:hover{background:0 0;transform:none}.wp-core-ui .button.media-frame-menu-toggle:focus{outline:1px solid transparent}.media-sidebar{width:230px}.options-general-php .crop-content.site-icon{margin-left:262px}.attachments-browser .attachments,.attachments-browser .attachments-wrapper,.attachments-browser .media-toolbar,.attachments-browser .uploader-inline,.attachments-browser.has-load-more .attachments-wrapper{left:262px}.attachments-browser .media-toolbar{height:82px}.attachments-browser .attachments,.attachments-browser .uploader-inline,.media-frame-content .attachments-browser .attachments-wrapper{top:82px}.attachment-details .setting,.media-sidebar .setting{margin:6px 0}.attachment-details .setting .name,.attachment-details .setting input,.attachment-details .setting textarea,.compat-item label span,.media-sidebar .setting .name,.media-sidebar .setting input,.media-sidebar .setting textarea{float:none;display:inline-block}.attachment-details .setting span,.media-sidebar .checkbox-label-inline,.media-sidebar .setting span{float:none}.media-sidebar .setting .select-label-inline{display:inline}.attachment-details .setting .name,.compat-item label span,.media-sidebar .checkbox-label-inline,.media-sidebar .setting .name{text-align:inherit;min-height:16px;margin:0;padding:8px 2px 2px}.attachment-details .attachment-info .copy-to-clipboard-container,.media-sidebar .setting .copy-to-clipboard-container{margin-right:0;padding-top:0}.attachment-details .attachment-info .copy-attachment-url,.media-sidebar .setting .copy-attachment-url{margin:0 1px}.attachment-details .setting .value,.media-sidebar .setting .value{float:none;width:auto}.attachment-details .setting input[type=email],.attachment-details .setting input[type=number],.attachment-details .setting input[type=password],.attachment-details .setting input[type=search],.attachment-details .setting input[type=tel],.attachment-details .setting input[type=text],.attachment-details .setting input[type=url],.attachment-details .setting select,.attachment-details .setting textarea,.attachment-details .setting+.description,.media-sidebar .setting input[type=email],.media-sidebar .setting input[type=number],.media-sidebar .setting input[type=password],.media-sidebar .setting input[type=search],.media-sidebar .setting input[type=tel],.media-sidebar .setting input[type=text],.media-sidebar .setting input[type=url],.media-sidebar .setting select,.media-sidebar .setting textarea{float:none;width:98%;max-width:none;height:auto}.media-frame .media-toolbar input[type=search]{line-height:2.25}.attachment-details .setting select.columns,.media-sidebar .setting select.columns{width:auto}.media-frame .search,.media-frame input,.media-frame textarea{padding:3px 6px}.wp-admin .media-frame select{min-height:40px;font-size:16px;line-height:1.625;padding:5px 8px 5px 24px}.image-details .column-image{width:30%;right:70%}.image-details .column-settings{width:70%}.image-details .media-modal{right:30px;left:30px}.image-details .embed-media-settings .setting,.image-details .embed-media-settings .setting-group{margin:20px}.image-details .embed-media-settings .setting .name,.image-details .embed-media-settings .setting span{float:none;text-align:right;width:100%;margin-bottom:4px;margin-right:0}.media-modal .legend-inline{position:static;transform:none;margin-right:0;margin-bottom:6px}.image-details .embed-media-settings .setting-group .setting{margin-bottom:0}.image-details .embed-media-settings .setting input.link-to-custom,.image-details .embed-media-settings .setting input[type=text],.image-details .embed-media-settings .setting textarea{width:100%;margin-right:0}.image-details .embed-media-settings .setting.has-description{margin-bottom:5px}.image-details .description{width:auto;margin:0 20px}.image-details .embed-media-settings .custom-size{margin-right:20px}.collection-settings .setting input[type=checkbox]{float:none;margin-top:0}.media-selection{min-width:120px}.media-selection:after{background:0 0}.media-selection .attachments{display:none}.media-modal .attachments-browser .media-toolbar .search{max-width:100%;height:auto;float:left}.media-modal .attachments-browser .media-toolbar .attachment-filters{height:auto}.media-frame input[type=email],.media-frame input[type=number],.media-frame input[type=password],.media-frame input[type=search],.media-frame input[type=text],.media-frame input[type=url],.media-frame select,.media-frame textarea{font-size:16px;line-height:1.5}.media-frame .media-toolbar input[type=search]{line-height:2.3755}.media-modal .media-toolbar .spinner{margin-bottom:10px}}@media screen and (max-width:782px){.imgedit-panel-content{grid-template-columns:auto}.media-frame-toolbar .media-toolbar{bottom:-54px}.mode-grid .attachments-browser .media-toolbar-primary{display:flex}.mode-grid .attachments-browser .media-toolbar-primary input[type=search]{width:100%}.attachment-details .copy-to-clipboard-container .success,.media-sidebar .copy-to-clipboard-container .success{font-size:14px;line-height:2.71428571}.media-frame .wp-filter .media-toolbar-secondary{position:unset}.media-frame .media-toolbar-secondary .spinner{position:absolute;top:0;bottom:0;margin:auto;right:0;left:0;z-index:9}.media-bg-overlay{content:'';background:#fff;width:100%;height:100%;display:none;position:absolute;right:0;left:0;top:0;bottom:0;opacity:.6}}@media only screen and (max-width:640px),screen and (max-height:400px){.image-details .media-modal,.media-modal{position:fixed;top:0;right:0;left:0;bottom:0}.media-modal-backdrop{position:fixed}.options-general-php .crop-content.site-icon{margin-left:0}.media-sidebar{z-index:1900;max-width:70%;bottom:120%;box-sizing:border-box;padding-bottom:0}.media-sidebar.visible{bottom:0}.attachments-browser .attachments,.attachments-browser .media-toolbar,.attachments-browser .uploader-inline,.media-frame-content .attachments-browser .attachments-wrapper{left:0}.image-details .media-frame-title{display:block;top:0;font-size:14px}.image-details .column-image,.image-details .column-settings{width:100%;position:relative;right:0}.image-details .column-settings{padding:4px 0}.media-frame-content .media-toolbar .instructions{display:none}.load-more-wrapper .load-more-jump{margin:12px 0 0}}@media only screen and (min-width:901px) and (max-height:400px){.media-frame:not(.hide-menu) .media-menu,.media-menu{top:0;padding-top:44px}.load-more-wrapper .load-more-jump{margin:12px 0 0}}@media only screen and (max-width:480px){.wp-core-ui.wp-customizer .media-button{margin-top:13px}}@media print,(min-resolution:120dpi){.wp-core-ui .media-modal-icon{background-image:url(../images/uploader-icons-2x.png);background-size:134px 15px}.media-frame .spinner{background-image:url(../images/spinner-2x.gif)}}.media-frame-content[data-columns="1"] .attachment{width:100%}.media-frame-content[data-columns="2"] .attachment{width:50%}.media-frame-content[data-columns="3"] .attachment{width:33.33%}.media-frame-content[data-columns="4"] .attachment{width:25%}.media-frame-content[data-columns="5"] .attachment{width:20%}.media-frame-content[data-columns="6"] .attachment{width:16.66%}.media-frame-content[data-columns="7"] .attachment{width:14.28%}.media-frame-content[data-columns="8"] .attachment{width:12.5%}.media-frame-content[data-columns="9"] .attachment{width:11.11%}.media-frame-content[data-columns="10"] .attachment{width:10%}.media-frame-content[data-columns="11"] .attachment{width:9.09%}.media-frame-content[data-columns="12"] .attachment{width:8.33%} \ No newline at end of file
+ */.ui-draggable-handle,.ui-sortable-handle{touch-action:none}.media-modal{position:fixed;top:30px;right:30px;left:30px;bottom:30px;z-index:160000}.wp-customizer .media-modal{z-index:560000}.media-modal-backdrop{position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:159900}.wp-customizer .media-modal-backdrop{z-index:559900}.media-modal-close{position:absolute;top:0;left:0;width:50px;height:50px;margin:0;padding:0;border:1px solid transparent;background:0 0;color:#646970;z-index:1000;cursor:pointer;outline:0;transition:color .1s ease-in-out,background .1s ease-in-out}.media-modal-close:active,.media-modal-close:hover{color:#135e96}.media-modal-close:focus{color:#135e96;border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8);outline:2px solid transparent}.media-modal-close span.media-modal-icon{background-image:none}.media-modal-close .media-modal-icon:before{content:"\f158";font:normal 20px/1 dashicons;speak:never;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.media-modal-content{position:absolute;top:0;right:0;left:0;bottom:0;overflow:auto;min-height:300px;box-shadow:0 5px 15px rgba(0,0,0,.7);background:#fff;-webkit-font-smoothing:subpixel-antialiased}.media-modal-content .media-frame select.attachment-filters{margin-top:32px;margin-left:2%;width:42%;width:calc(48% - 12px)}.wp-core-ui .media-modal-icon{background-image:url(../images/uploader-icons.png);background-repeat:no-repeat}.media-toolbar{position:absolute;top:0;right:0;left:0;z-index:100;height:60px;padding:0 16px;border:0 solid #dcdcde;overflow:hidden}.media-frame-toolbar .media-toolbar{top:auto;bottom:-47px;height:auto;overflow:visible;border-top:1px solid #dcdcde}.media-toolbar-primary{float:left;height:100%;position:relative}.media-toolbar-secondary{float:right;height:100%}.media-toolbar-primary>.media-button,.media-toolbar-primary>.media-button-group{margin-right:10px;float:right;margin-top:15px}.media-toolbar-secondary>.media-button,.media-toolbar-secondary>.media-button-group{margin-left:10px;margin-top:15px}.media-sidebar{position:absolute;top:0;left:0;bottom:0;width:267px;padding:0 16px;z-index:75;background:#f6f7f7;border-right:1px solid #dcdcde;overflow:auto;-webkit-overflow-scrolling:touch}.media-sidebar::after{content:"";display:flex;clear:both;height:24px}.hide-toolbar .media-sidebar{bottom:0}.image-details .media-embed h2,.media-sidebar h2{position:relative;font-weight:600;text-transform:uppercase;font-size:12px;color:#646970;margin:24px 0 8px}.attachment-details .setting,.media-sidebar .setting{display:block;float:right;width:100%;margin:0 0 10px}.attachment-details h2{display:grid;grid-template-columns:auto 5em}.media-sidebar .collection-settings .setting{margin:1px 0}.attachment-details .setting.has-description,.media-sidebar .setting.has-description{margin-bottom:5px}.media-sidebar .setting .link-to-custom{margin:3px 2px 0}.attachment-details .setting .name,.attachment-details .setting span,.media-sidebar .setting .name,.media-sidebar .setting .value,.media-sidebar .setting span{min-width:30%;margin-left:4%;font-size:12px;text-align:left;word-wrap:break-word}.media-sidebar .setting .name{max-width:80px}.media-sidebar .setting .value{text-align:right}.media-sidebar .setting select{max-width:65%}.attachment-details .field input[type=checkbox],.attachment-details .field input[type=radio],.attachment-details .setting input[type=checkbox],.attachment-details .setting input[type=radio],.media-sidebar .field input[type=checkbox],.media-sidebar .field input[type=radio],.media-sidebar .setting input[type=checkbox],.media-sidebar .setting input[type=radio]{float:none;margin:8px 3px 0;padding:0}.attachment-details .setting .name,.attachment-details .setting .value,.attachment-details .setting span,.compat-item label span,.media-sidebar .checkbox-label-inline,.media-sidebar .setting .name,.media-sidebar .setting .value,.media-sidebar .setting span{float:right;min-height:22px;padding-top:8px;line-height:1.33333333;font-weight:400;color:#646970}.media-sidebar .checkbox-label-inline{font-size:12px}.attachment-details .copy-to-clipboard-container,.media-sidebar .copy-to-clipboard-container{flex-wrap:wrap;margin-top:10px;margin-right:calc(35% - 1px);padding-top:10px}.attachment-details .attachment-info .copy-to-clipboard-container{float:none}.attachment-details .copy-to-clipboard-container .success,.media-sidebar .copy-to-clipboard-container .success{padding:0;min-height:0;line-height:2.18181818;text-align:right;color:#007017}.compat-item label span{text-align:left}.attachment-details .setting .value,.attachment-details .setting input[type=email],.attachment-details .setting input[type=number],.attachment-details .setting input[type=password],.attachment-details .setting input[type=search],.attachment-details .setting input[type=tel],.attachment-details .setting input[type=text],.attachment-details .setting input[type=url],.attachment-details .setting textarea,.attachment-details .setting+.description,.media-sidebar .setting .value,.media-sidebar .setting input[type=email],.media-sidebar .setting input[type=number],.media-sidebar .setting input[type=password],.media-sidebar .setting input[type=search],.media-sidebar .setting input[type=tel],.media-sidebar .setting input[type=text],.media-sidebar .setting input[type=url],.media-sidebar .setting textarea{box-sizing:border-box;margin:1px;width:65%;float:left}.attachment-details .setting .value,.attachment-details .setting+.description,.media-sidebar .setting .value{margin:0 1px;text-align:right}.attachment-details .setting+.description{clear:both;font-size:12px;font-style:normal;margin-bottom:10px}.attachment-details .setting textarea,.compat-item .field textarea,.media-sidebar .setting textarea{height:62px;resize:vertical}.alt-text textarea,.attachment-details .alt-text textarea,.compat-item .alt-text textarea,.media-sidebar .alt-text textarea{height:50px}.compat-item{float:right;width:100%;overflow:hidden}.compat-item table{width:100%;table-layout:fixed;border-spacing:0;border:0}.compat-item tr{padding:2px 0;display:block;overflow:hidden}.compat-item .field,.compat-item .label{display:block;margin:0;padding:0}.compat-item .label{min-width:30%;margin-left:4%;float:right;text-align:left}.compat-item .label span{display:block;width:100%}.compat-item .field{float:left;width:65%;margin:1px}.compat-item .field input[type=email],.compat-item .field input[type=number],.compat-item .field input[type=password],.compat-item .field input[type=search],.compat-item .field input[type=tel],.compat-item .field input[type=text],.compat-item .field input[type=url],.compat-item .field textarea{width:100%;margin:0;box-sizing:border-box}.sidebar-for-errors .attachment-details,.sidebar-for-errors .compat-item,.sidebar-for-errors .media-sidebar .media-progress-bar,.sidebar-for-errors .upload-details{display:none!important}.media-menu{position:absolute;top:0;right:0;left:0;bottom:0;margin:0;padding:50px 0 10px;background:#f6f7f7;border-left-width:1px;border-left-style:solid;border-left-color:#c3c4c7;-webkit-user-select:none;user-select:none}.media-menu .media-menu-item{display:block;box-sizing:border-box;width:100%;position:relative;border:0;margin:0;padding:8px 20px;font-size:14px;line-height:1.28571428;background:0 0;color:#2271b1;text-align:right;text-decoration:none;cursor:pointer}.media-menu .media-menu-item:hover{background:rgba(0,0,0,.04)}.media-menu .media-menu-item:active{color:#2271b1;outline:0}.media-menu .active,.media-menu .active:hover{color:#1d2327;font-weight:600}.media-menu .media-menu-item:focus{box-shadow:0 0 0 2px #2271b1;color:#043959;outline:2px solid transparent}.media-menu .separator{height:0;margin:12px 20px;padding:0;border-top:1px solid #dcdcde}.media-router{position:relative;padding:0 6px;margin:0;clear:both}.media-router .media-menu-item{position:relative;float:right;border:0;margin:0;padding:8px 10px 9px;height:18px;line-height:1.28571428;font-size:14px;text-decoration:none;background:0 0;cursor:pointer;transition:none}.media-router .media-menu-item:last-child{border-left:0}.media-router .media-menu-item:active,.media-router .media-menu-item:hover{color:#2271b1}.media-router .active,.media-router .active:hover{color:#1d2327}.media-router .media-menu-item:focus{box-shadow:0 0 0 2px #2271b1;color:#043959;outline:2px solid transparent}.media-router .active,.media-router .media-menu-item.active:last-child{margin:-1px -1px 0;background:#fff;border:1px solid #dcdcde;border-bottom:none}.media-router .active:after{display:none}.media-frame{overflow:hidden;position:absolute;top:0;right:0;left:0;bottom:0}.media-frame-menu{position:absolute;top:0;right:0;bottom:0;width:200px;z-index:150}.media-frame-title{position:absolute;top:0;right:200px;left:0;height:50px;z-index:200}.media-frame-router{position:absolute;top:50px;right:200px;left:0;height:36px;z-index:200}.media-frame-content{position:absolute;top:84px;right:200px;left:0;bottom:61px;height:auto;width:auto;margin:0;overflow:auto;background:#fff;border-top:1px solid #dcdcde}.media-frame-toolbar{position:absolute;right:200px;left:0;z-index:100;bottom:60px;height:auto}.media-frame.hide-menu .media-frame-content,.media-frame.hide-menu .media-frame-router,.media-frame.hide-menu .media-frame-title,.media-frame.hide-menu .media-frame-toolbar{right:0}.media-frame.hide-toolbar .media-frame-content{bottom:0}.media-frame.hide-router .media-frame-content{top:50px}.media-frame.hide-menu .media-frame-menu,.media-frame.hide-menu .media-frame-menu-heading,.media-frame.hide-router .media-frame-router,.media-frame.hide-toolbar .media-frame-toolbar{display:none}.media-frame-title h1{padding:0 16px;font-size:22px;line-height:2.27272727;margin:0}.media-attachments-filter-heading,.media-frame-menu-heading{position:absolute;right:20px;top:22px;margin:0;font-size:13px;line-height:1;z-index:151}.media-attachments-filter-heading{top:10px;right:16px}.mode-grid .media-attachments-filter-heading{top:0;right:-9999px}.mode-grid .media-frame-actions-heading{display:none}.wp-core-ui .button.media-frame-menu-toggle{display:none}.media-frame-title .suggested-dimensions{font-size:14px;float:left;margin-left:20px}.media-frame-content .crop-content{height:100%}.options-general-php .crop-content.site-icon,.wp-customizer:not(.mobile) .media-frame-content .crop-content.site-icon{margin-left:300px}.media-frame-content .crop-content .crop-image{display:block;margin:auto;max-width:100%;max-height:100%}.media-frame-content .crop-content .upload-errors{position:absolute;width:300px;top:50%;right:50%;margin-right:-150px;margin-left:-150px;z-index:600000}.media-frame .media-iframe{overflow:hidden}.media-frame .media-iframe,.media-frame .media-iframe iframe{height:100%;width:100%;border:0}.media-frame select.attachment-filters{margin-top:11px;margin-left:2%;max-width:42%;max-width:calc(48% - 12px)}.media-frame select.attachment-filters:last-of-type{margin-left:0}.media-frame .search{margin:32px 0 0;padding:4px;font-size:13px;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;-webkit-appearance:none}.media-toolbar-primary .search{max-width:100%}.media-modal .media-frame .media-search-input-label{position:absolute;right:0;top:10px;margin:0;line-height:1}.wp-core-ui .attachments{margin:0;-webkit-overflow-scrolling:touch}.wp-core-ui .attachment{position:relative;float:right;padding:8px;margin:0;color:#3c434a;cursor:pointer;list-style:none;text-align:center;-webkit-user-select:none;user-select:none;width:25%;box-sizing:border-box}.wp-core-ui .attachment.details:focus,.wp-core-ui .attachment:focus,.wp-core-ui .selected.attachment:focus{box-shadow:inset 0 0 2px 3px #fff,inset 0 0 0 7px #4f94d4;outline:2px solid transparent;outline-offset:-6px}.wp-core-ui .selected.attachment{box-shadow:inset 0 0 0 5px #fff,inset 0 0 0 7px #c3c4c7}.wp-core-ui .attachment.details{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #2271b1}.wp-core-ui .attachment-preview{position:relative;box-shadow:inset 0 0 15px rgba(0,0,0,.1),inset 0 0 0 1px rgba(0,0,0,.05);background:#f0f0f1;cursor:pointer}.wp-core-ui .attachment-preview:before{content:"";display:block;padding-top:100%}.wp-core-ui .attachment .icon{margin:0 auto;overflow:hidden}.wp-core-ui .attachment .thumbnail{overflow:hidden;position:absolute;top:0;left:0;bottom:0;right:0;opacity:1;transition:opacity .1s}.wp-core-ui .attachment .portrait img{max-width:100%}.wp-core-ui .attachment .landscape img{max-height:100%}.wp-core-ui .attachment .thumbnail:after{content:"";display:block;position:absolute;top:0;right:0;left:0;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);overflow:hidden}.wp-core-ui .attachment .thumbnail img{top:0;right:0}.wp-core-ui .attachment .thumbnail .centered{position:absolute;top:0;right:0;width:100%;height:100%;transform:translate(-50%,50%)}.wp-core-ui .attachment .thumbnail .centered img{transform:translate(50%,-50%)}.wp-core-ui .attachments-browser .attachment .thumbnail .centered img.icon{transform:translate(50%,-70%)}.wp-core-ui .attachment .filename{position:absolute;right:0;left:0;bottom:0;overflow:hidden;max-height:100%;word-wrap:break-word;text-align:center;font-weight:600;background:rgba(255,255,255,.8);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}.wp-core-ui .attachment .filename div{padding:5px 10px}.wp-core-ui .attachment .thumbnail img{position:absolute}.wp-core-ui .attachment-close{display:block;position:absolute;top:5px;left:5px;height:22px;width:22px;padding:0;background-color:#fff;background-position:-96px 4px;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.3);transition:none}.wp-core-ui .attachment-close:focus,.wp-core-ui .attachment-close:hover{background-position:-36px 4px}.wp-core-ui .attachment .check{display:none;height:24px;width:24px;padding:0;border:0;position:absolute;z-index:10;top:0;left:0;outline:0;background:#f0f0f1;cursor:pointer;box-shadow:0 0 0 1px #fff,0 0 0 2px rgba(0,0,0,.15)}.wp-core-ui .attachment .check .media-modal-icon{display:block;background-position:-1px 0;height:15px;width:15px;margin:5px}.wp-core-ui .attachment .check:hover .media-modal-icon{background-position:-40px 0}.wp-core-ui .attachment.selected .check{display:block}.wp-core-ui .attachment.details .check,.wp-core-ui .attachment.selected .check:focus,.wp-core-ui .media-frame.mode-grid .attachment.selected .check{background-color:#2271b1;box-shadow:0 0 0 1px #fff,0 0 0 2px #2271b1}.wp-core-ui .attachment.selected .check:focus{outline:2px solid transparent}.wp-core-ui .attachment.details .check .media-modal-icon,.wp-core-ui .media-frame.mode-grid .attachment.selected .check .media-modal-icon{background-position:-21px 0}.wp-core-ui .attachment.details .check:hover .media-modal-icon,.wp-core-ui .attachment.selected .check:focus .media-modal-icon,.wp-core-ui .media-frame.mode-grid .attachment.selected .check:hover .media-modal-icon{background-position:-60px 0}.wp-core-ui .media-frame .attachment .describe{position:relative;display:block;width:100%;margin:0;padding:0 8px;font-size:12px;border-radius:0}.media-frame .attachments-browser{position:relative;width:100%;height:100%;overflow:hidden}.attachments-browser .media-toolbar{left:300px;height:72px;background:#fff}.attachments-browser.hide-sidebar .media-toolbar{left:0}.attachments-browser .media-toolbar-primary>.media-button,.attachments-browser .media-toolbar-primary>.media-button-group,.attachments-browser .media-toolbar-secondary>.media-button,.attachments-browser .media-toolbar-secondary>.media-button-group{margin:10px 0}.attachments-browser .attachments{padding:2px 8px 8px}.attachments-browser .uploader-inline,.attachments-browser.has-load-more .attachments-wrapper,.attachments-browser:not(.has-load-more) .attachments{position:absolute;top:72px;right:0;left:300px;bottom:0;overflow:auto;outline:0}.attachments-browser .uploader-inline.hidden{display:none}.attachments-browser .media-toolbar-primary{max-width:33%}.mode-grid .attachments-browser .media-toolbar-primary{display:flex;align-items:center;column-gap:.5rem;margin:11px 0}.mode-grid .attachments-browser .media-toolbar-mode-select .media-toolbar-primary{display:none}.attachments-browser .media-toolbar-secondary{max-width:66%}.uploader-inline .close{background-color:transparent;border:0;cursor:pointer;height:48px;outline:0;padding:0;position:absolute;left:2px;text-align:center;top:2px;width:48px;z-index:1}.uploader-inline .close:before{font:normal 30px/1 dashicons!important;color:#50575e;display:inline-block;content:"\f335";font-weight:300;margin-top:1px}.uploader-inline .close:focus{outline:1px solid #4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8)}.attachments-browser.hide-sidebar .attachments,.attachments-browser.hide-sidebar .uploader-inline{left:0;margin-left:0}.attachments-browser .instructions{display:inline-block;margin-top:16px;line-height:1.38461538;font-size:13px;color:#646970}.attachments-browser .no-media{padding:2em 2em 0 0}.more-loaded .attachment:not(.found-media){background:#dcdcde}.load-more-wrapper{clear:both;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;padding:1em 0}.load-more-wrapper .load-more-count{min-width:100%;margin:0 0 1em;text-align:center}.load-more-wrapper .load-more{margin:0}.media-frame .load-more-wrapper .load-more+.spinner{float:none;margin:0 10px 0 -30px}.media-frame .load-more-wrapper .load-more.hidden+.spinner{margin:0}.load-more-wrapper::after{content:"";min-width:100%;order:1}.load-more-wrapper .load-more-jump{margin:0 12px 0 0}.attachment.new-media{outline:2px dotted #c3c4c7}.media-progress-bar{position:relative;height:10px;width:70%;margin:10px auto;border-radius:10px;background:#dcdcde;background:rgba(0,0,0,.1)}.media-progress-bar div{height:10px;min-width:20px;width:0;background:#2271b1;border-radius:10px;transition:width .3s}.media-uploader-status .media-progress-bar{display:none;width:100%}.uploading.media-uploader-status .media-progress-bar{display:block}.attachment-preview .media-progress-bar{position:absolute;top:50%;right:15%;width:70%;margin:-5px 0 0}.media-uploader-status{position:relative;margin:0 auto;padding-bottom:10px;max-width:400px}.uploader-inline .media-uploader-status h2{display:none}.media-uploader-status .upload-details{display:none;font-size:12px;color:#646970}.uploading.media-uploader-status .upload-details{display:block}.media-uploader-status .upload-detail-separator{padding:0 4px}.media-uploader-status .upload-count{color:#3c434a}.media-uploader-status .upload-dismiss-errors,.media-uploader-status .upload-errors{display:none}.errors.media-uploader-status .upload-dismiss-errors,.errors.media-uploader-status .upload-errors{display:block}.media-uploader-status .upload-dismiss-errors{transition:none;text-decoration:none}.upload-errors .upload-error{padding:12px;margin-bottom:12px;background:#fff;border-right:4px solid #d63638;box-shadow:0 1px 1px 0 rgba(0,0,0,.1)}.uploader-inline .upload-errors .upload-error{padding:12px 30px;background-color:#fcf0f1;box-shadow:none}.upload-errors .upload-error-filename{font-weight:600}.upload-errors .upload-error-message{display:block;padding-top:8px;word-wrap:break-word}.uploader-window,.wp-editor-wrap .uploader-editor{top:0;right:0;left:0;bottom:0;text-align:center;display:none}.uploader-window{position:fixed;z-index:250000;opacity:0;transition:opacity 250ms}.wp-editor-wrap .uploader-editor{position:absolute;z-index:99998;background:rgba(140,143,148,.9)}.uploader-window,.wp-editor-wrap .uploader-editor.droppable{background:rgba(10,75,120,.9)}.uploader-window-content,.wp-editor-wrap .uploader-editor-content{position:absolute;top:10px;right:10px;left:10px;bottom:10px;border:1px dashed #fff}.uploader-window .uploader-editor-title,.uploader-window h1,.wp-editor-wrap .uploader-editor .uploader-editor-title{position:absolute;top:50%;right:0;left:0;transform:translateY(-50%);font-size:3em;line-height:1.3;font-weight:600;color:#fff;margin:0;padding:0 10px}.wp-editor-wrap .uploader-editor .uploader-editor-title{display:none}.wp-editor-wrap .uploader-editor.droppable .uploader-editor-title{display:block}.uploader-window .media-progress-bar{margin-top:20px;max-width:300px;background:0 0;border-color:#fff;display:none}.uploader-window .media-progress-bar div{background:#fff}.uploading .uploader-window .media-progress-bar{display:block}.media-frame .uploader-inline{margin-bottom:20px;padding:0;text-align:center}.uploader-inline-content{position:absolute;top:30%;right:0;left:0}.uploader-inline-content .upload-ui{margin:2em 0}.uploader-inline-content .post-upload-ui{margin-bottom:2em}.uploader-inline .has-upload-message .upload-ui{margin:0 0 4em}.uploader-inline h2{font-size:20px;line-height:1.4;font-weight:400;margin:0}.uploader-inline .has-upload-message .upload-instructions{font-size:14px;color:#3c434a;font-weight:400}.uploader-inline .drop-instructions{display:none}.supports-drag-drop .uploader-inline .drop-instructions{display:block}.uploader-inline p{margin:.5em 0}.uploader-inline .media-progress-bar{display:none}.uploading.uploader-inline .media-progress-bar{display:block}.uploader-inline .browser{display:inline-block!important}.media-selection{position:absolute;top:0;right:0;left:350px;height:60px;padding:0 16px 0 0;overflow:hidden;white-space:nowrap}.media-selection .selection-info{display:inline-block;font-size:12px;height:60px;margin-left:10px;vertical-align:top}.media-selection.editing,.media-selection.empty{display:none}.media-selection.one .edit-selection{display:none}.media-selection .count{display:block;padding-top:12px;font-size:14px;line-height:1.42857142;font-weight:600}.media-selection .button-link{float:right;padding:1px 8px;margin:1px -8px 1px 8px;line-height:1.4;border-left:1px solid #dcdcde;color:#2271b1;text-decoration:none}.media-selection .button-link:focus,.media-selection .button-link:hover{color:#135e96}.media-selection .button-link:last-child{border-left:0;margin-left:0}.selection-info .clear-selection{color:#d63638}.selection-info .clear-selection:focus,.selection-info .clear-selection:hover{color:#d63638}.media-selection .selection-view{display:inline-block;vertical-align:top}.media-selection .attachments{display:inline-block;height:48px;margin:6px;padding:0;overflow:hidden;vertical-align:top}.media-selection .attachment{width:40px;padding:0;margin:4px}.media-selection .attachment .thumbnail{top:0;left:0;bottom:0;right:0}.media-selection .attachment .icon{width:50%}.media-selection .attachment-preview{box-shadow:none;background:0 0}.wp-core-ui .media-selection .attachment.details:focus,.wp-core-ui .media-selection .attachment:focus,.wp-core-ui .media-selection .selected.attachment:focus{box-shadow:0 0 0 1px #fff,0 0 2px 3px #4f94d4;outline:2px solid transparent}.wp-core-ui .media-selection .selected.attachment{box-shadow:none}.wp-core-ui .media-selection .attachment.details{box-shadow:0 0 0 1px #fff,0 0 0 3px #2271b1}.media-selection:after{content:"";display:block;position:absolute;top:0;left:0;bottom:0;width:25px;background-image:linear-gradient(to right,#fff,rgba(255,255,255,0))}.media-selection .attachment .filename{display:none}.media-frame .spinner{background:url(../images/spinner.gif) no-repeat;background-size:20px 20px;float:left;display:inline-block;visibility:hidden;opacity:.7;width:20px;height:20px;margin:0;vertical-align:middle}.media-frame .media-sidebar .settings-save-status .spinner{position:absolute;left:0;top:0}.media-frame.mode-grid .spinner{margin:0;float:none;vertical-align:middle}.media-modal .media-toolbar .spinner{float:none;vertical-align:bottom;margin:0 5px 5px 0}.media-frame .instructions+.spinner.is-active{vertical-align:middle}.media-frame .spinner.is-active{visibility:visible}.attachment-details{position:relative;overflow:auto}.attachment-details .settings-save-status{text-align:left;text-transform:none;font-weight:400}.attachment-details .settings-save-status .spinner{float:none;margin-right:5px}.attachment-details .settings-save-status .saved{display:none}.attachment-details.save-waiting .settings-save-status .spinner{visibility:visible}.attachment-details.save-complete .settings-save-status .saved{display:inline-block}.attachment-info{overflow:hidden;min-height:60px;margin-bottom:16px;line-height:1.5;color:#646970;border-bottom:1px solid #dcdcde;padding-bottom:11px}.attachment-info .wp-media-wrapper{margin-bottom:8px}.attachment-info .wp-media-wrapper.wp-audio{margin-top:13px}.attachment-info .filename{font-weight:600;color:#3c434a;word-wrap:break-word}.attachment-info .thumbnail{position:relative;float:right;max-width:120px;max-height:120px;margin-top:5px;margin-left:10px;margin-bottom:5px}.uploading .attachment-info .thumbnail{width:120px;height:80px;box-shadow:inset 0 0 15px rgba(0,0,0,.1)}.uploading .attachment-info .media-progress-bar{margin-top:35px}.attachment-info .thumbnail-image:after{content:"";display:block;position:absolute;top:0;right:0;left:0;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);overflow:hidden}.attachment-info .thumbnail img{display:block;max-width:120px;max-height:120px;margin:0 auto}.attachment-info .details{float:right;font-size:12px;max-width:100%}.attachment-info .delete-attachment,.attachment-info .edit-attachment,.attachment-info .trash-attachment,.attachment-info .untrash-attachment{display:block;text-decoration:none;white-space:nowrap}.attachment-details.needs-refresh .attachment-info .edit-attachment{display:none}.attachment-info .edit-attachment{display:block}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment{display:inline;padding:0;color:#d63638}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover{color:#d63638}.attachment-display-settings{width:100%;float:right;overflow:hidden}.collection-settings{overflow:hidden}.collection-settings .setting input[type=checkbox]{float:right;margin-left:8px}.collection-settings .setting .name,.collection-settings .setting span{min-width:inherit}.media-modal .imgedit-wrap{position:static}.media-modal .imgedit-wrap .imgedit-panel-content{padding:16px 16px 0;overflow:visible}.media-modal .imgedit-wrap .imgedit-save-target{margin:8px 0 24px}.media-modal .imgedit-group{background:0 0;border:none;box-shadow:none;margin:0;padding:0;position:relative}.media-modal .imgedit-group.imgedit-panel-active{margin-bottom:16px;padding-bottom:16px}.media-modal .imgedit-group-top{margin:0}.media-modal .imgedit-group-top h2,.media-modal .imgedit-group-top h2 .button-link{display:inline-block;text-transform:uppercase;font-size:12px;color:#646970;margin:0;margin-top:3px}.media-modal .imgedit-group-top h2 .button-link,.media-modal .imgedit-group-top h2 a{text-decoration:none;color:#646970}.wp-core-ui.media-modal .image-editor .imgedit-help-toggle,.wp-core-ui.media-modal .image-editor .imgedit-help-toggle:active,.wp-core-ui.media-modal .image-editor .imgedit-help-toggle:hover{border:1px solid transparent;margin:0;padding:0;background:0 0;color:#2271b1;font-size:20px;line-height:1;cursor:pointer;box-sizing:content-box;box-shadow:none}.wp-core-ui.media-modal .image-editor .imgedit-help-toggle:focus{color:#2271b1;border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}.wp-core-ui.media-modal .imgedit-group-top .dashicons-arrow-down.imgedit-help-toggle{margin-top:-3px}.wp-core-ui.media-modal .image-editor h3 .imgedit-help-toggle{margin-top:-2px}.media-modal .imgedit-help-toggled span.dashicons:before{content:"\f142"}.media-modal .imgedit-thumbnail-preview{margin:10px 0 0 8px}.imgedit-thumbnail-preview-caption{display:block}.media-modal .imgedit-wrap .notice,.media-modal .imgedit-wrap div.updated{margin:0 16px}.embed-url{display:block;position:relative;padding:16px;margin:0;z-index:250;background:#fff;font-size:18px}.media-frame .embed-url input{font-size:18px;line-height:1.22222222;padding:12px 14px 12px 40px;width:100%;min-width:200px;box-shadow:inset -2px 2px 4px -2px rgba(0,0,0,.1)}.media-frame .embed-url input::-ms-clear{display:none}.media-frame .embed-url .spinner{position:absolute;top:32px;left:26px}.media-frame .embed-loading .embed-url .spinner{visibility:visible}.embed-link-settings,.embed-media-settings{position:absolute;top:82px;right:0;left:0;bottom:0;padding:0 16px;overflow:auto}.media-embed .embed-link-settings .link-text{margin-top:0}.embed-link-settings::after,.embed-media-settings::after{content:"";display:flex;clear:both;height:24px}.media-embed .embed-link-settings{overflow:visible}.embed-preview embed,.embed-preview iframe,.embed-preview img,.mejs-container video{max-width:100%;vertical-align:middle}.embed-preview a{display:inline-block}.embed-preview img{display:block;height:auto}.mejs-container:focus{outline:1px solid #2271b1;box-shadow:0 0 0 2px #2271b1}.image-details .media-modal{right:140px;left:140px}.image-details .media-frame-content,.image-details .media-frame-router,.image-details .media-frame-title{right:0}.image-details .embed-media-settings{top:0;overflow:visible;padding:0}.image-details .embed-media-settings::after{content:none}.image-details .embed-media-settings,.image-details .embed-media-settings div{box-sizing:border-box}.image-details .column-settings{background:#f6f7f7;border-left:1px solid #dcdcde;min-height:100%;width:55%;position:absolute;top:0;right:0}.image-details .column-settings h2{margin:20px;padding-top:20px;border-top:1px solid #dcdcde;color:#1d2327}.image-details .column-image{width:45%;position:absolute;right:55%;top:0}.image-details .image{margin:20px}.image-details .image img{max-width:100%;max-height:500px}.image-details .advanced-toggle{padding:0;color:#646970;text-transform:uppercase;text-decoration:none}.image-details .advanced-toggle:active,.image-details .advanced-toggle:hover{color:#646970}.image-details .advanced-toggle:after{font:normal 20px/1 dashicons;speak:never;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f140";display:inline-block;margin-top:-2px}.image-details .advanced-visible .advanced-toggle:after{content:"\f142"}.image-details .custom-size .custom-size-setting,.image-details .custom-size label{display:block;float:right}.image-details .custom-size .custom-size-setting label{float:none}.image-details .custom-size input{width:5em}.image-details .custom-size .sep{float:right;margin:26px 6px 0}.image-details .custom-size .description{margin-right:0}.media-embed .thumbnail{max-width:100%;max-height:200px;position:relative;float:right}.media-embed .thumbnail img{max-height:200px;display:block}.media-embed .thumbnail:after{content:"";display:block;position:absolute;top:0;right:0;left:0;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);overflow:hidden}.media-embed .setting,.media-embed .setting-group{width:100%;margin:10px 0;float:right;display:block;clear:both}.media-embed .setting-group .setting:not(.checkbox-setting){margin:0}.media-embed .setting.has-description{margin-bottom:5px}.media-embed .description{clear:both;font-style:normal}.media-embed .content-track+.description{line-height:1.4;max-width:none!important}.media-embed .remove-track{margin-bottom:10px}.image-details .embed-media-settings .setting,.image-details .embed-media-settings .setting-group{float:none;width:auto}.image-details .actions{margin:10px 0}.image-details .hidden{display:none}.media-embed .setting input[type=text],.media-embed .setting textarea,.media-embed fieldset{display:block;width:100%;max-width:400px}.image-details .embed-media-settings .setting input[type=text],.image-details .embed-media-settings .setting textarea{max-width:inherit;width:70%}.image-details .description,.image-details .embed-media-settings .custom-size,.image-details .embed-media-settings .link-target,.image-details .embed-media-settings .setting input.link-to-custom,.image-details .embed-media-settings .setting-group{margin-right:27%;width:70%}.image-details .description{font-style:normal;margin-top:0}.image-details .embed-media-settings .link-target{margin-top:16px}.audio-details .checkbox-label,.image-details .checkbox-label,.video-details .checkbox-label{vertical-align:baseline}.media-embed .setting input.hidden,.media-embed .setting textarea.hidden{display:none}.media-embed .setting .name,.media-embed .setting span,.media-embed .setting-group .name{display:inline-block;font-size:13px;line-height:1.84615384;color:#646970}.media-embed .setting span{display:block;width:200px}.image-details .embed-media-settings .setting .name,.image-details .embed-media-settings .setting span{float:right;width:25%;text-align:left;margin:8px 1% 0;line-height:1.1}.image-details .embed-media-settings .setting .button-group,.media-frame .setting-group .button-group{width:auto}.media-embed-sidebar{position:absolute;top:0;right:440px}.advanced-section,.link-settings{margin-top:10px}.media-frame .setting .button-group{display:flex;margin:0!important;max-width:none!important}.rtl .media-frame,.rtl .media-frame .search,.rtl .media-frame input[type=email],.rtl .media-frame input[type=number],.rtl .media-frame input[type=password],.rtl .media-frame input[type=search],.rtl .media-frame input[type=tel],.rtl .media-frame input[type=text],.rtl .media-frame input[type=url],.rtl .media-frame select,.rtl .media-frame textarea,.rtl .media-modal{font-family:Tahoma,sans-serif}:lang(he-il) .rtl .media-frame,:lang(he-il) .rtl .media-frame .search,:lang(he-il) .rtl .media-frame input[type=email],:lang(he-il) .rtl .media-frame input[type=number],:lang(he-il) .rtl .media-frame input[type=password],:lang(he-il) .rtl .media-frame input[type=search],:lang(he-il) .rtl .media-frame input[type=text],:lang(he-il) .rtl .media-frame input[type=url],:lang(he-il) .rtl .media-frame select,:lang(he-il) .rtl .media-frame textarea,:lang(he-il) .rtl .media-modal{font-family:Arial,sans-serif}@media only screen and (max-width:900px){.media-modal .media-frame-title{height:40px}.media-modal .media-frame-title h1{line-height:2.22222222;font-size:18px}.media-modal-close{width:42px;height:42px}.media-frame .media-frame-title{position:static;padding:0 44px;text-align:center}.media-frame:not(.hide-menu) .media-frame-content,.media-frame:not(.hide-menu) .media-frame-router,.media-frame:not(.hide-menu) .media-frame-toolbar{right:0}.media-frame:not(.hide-menu) .media-frame-router{top:80px}.media-frame:not(.hide-menu) .media-frame-content{top:114px}.media-frame.hide-router .media-frame-content{top:80px}.media-frame:not(.hide-menu) .media-frame-menu{position:static;width:0}.media-frame:not(.hide-menu) .media-menu{display:none;width:auto;max-width:80%;overflow:auto;z-index:2000;top:75px;right:50%;transform:translateX(50%);left:auto;bottom:auto;padding:5px 0;border:1px solid #c3c4c7}.media-frame:not(.hide-menu) .media-menu.visible{display:block}.media-frame:not(.hide-menu) .media-menu>a{padding:12px 16px;font-size:16px}.media-frame:not(.hide-menu) .media-menu .separator{margin:5px 10px}.media-frame-menu-heading{clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;overflow:hidden;padding:0;width:1px;word-wrap:normal!important}.wp-core-ui .media-frame:not(.hide-menu) .button.media-frame-menu-toggle{display:inline-flex;align-items:center;position:absolute;right:50%;transform:translateX(50%);margin:-6px 0 0;padding:0 12px 0 2px;font-size:.875rem;font-weight:600;text-decoration:none;background:0 0;height:.1%;min-height:40px}.wp-core-ui .button.media-frame-menu-toggle:active,.wp-core-ui .button.media-frame-menu-toggle:hover{background:0 0;transform:none}.wp-core-ui .button.media-frame-menu-toggle:focus{outline:1px solid transparent}.media-sidebar{width:230px}.options-general-php .crop-content.site-icon{margin-left:262px}.attachments-browser .attachments,.attachments-browser .attachments-wrapper,.attachments-browser .media-toolbar,.attachments-browser .uploader-inline,.attachments-browser.has-load-more .attachments-wrapper{left:262px}.attachments-browser .media-toolbar{height:82px}.attachments-browser .attachments,.attachments-browser .uploader-inline,.media-frame-content .attachments-browser .attachments-wrapper{top:82px}.attachment-details .setting,.media-sidebar .setting{margin:6px 0}.attachment-details .setting .name,.attachment-details .setting input,.attachment-details .setting textarea,.compat-item label span,.media-sidebar .setting .name,.media-sidebar .setting input,.media-sidebar .setting textarea{float:none;display:inline-block}.attachment-details .setting span,.media-sidebar .checkbox-label-inline,.media-sidebar .setting span{float:none}.media-sidebar .setting .select-label-inline{display:inline}.attachment-details .setting .name,.compat-item label span,.media-sidebar .checkbox-label-inline,.media-sidebar .setting .name{text-align:inherit;min-height:16px;margin:0;padding:8px 2px 2px}.attachment-details .attachment-info .copy-to-clipboard-container,.media-sidebar .setting .copy-to-clipboard-container{margin-right:0;padding-top:0}.attachment-details .attachment-info .copy-attachment-url,.media-sidebar .setting .copy-attachment-url{margin:0 1px}.attachment-details .setting .value,.media-sidebar .setting .value{float:none;width:auto}.attachment-details .setting input[type=email],.attachment-details .setting input[type=number],.attachment-details .setting input[type=password],.attachment-details .setting input[type=search],.attachment-details .setting input[type=tel],.attachment-details .setting input[type=text],.attachment-details .setting input[type=url],.attachment-details .setting select,.attachment-details .setting textarea,.attachment-details .setting+.description,.media-sidebar .setting input[type=email],.media-sidebar .setting input[type=number],.media-sidebar .setting input[type=password],.media-sidebar .setting input[type=search],.media-sidebar .setting input[type=tel],.media-sidebar .setting input[type=text],.media-sidebar .setting input[type=url],.media-sidebar .setting select,.media-sidebar .setting textarea{float:none;width:98%;max-width:none;height:auto}.media-frame .media-toolbar input[type=search]{line-height:2.25}.attachment-details .setting select.columns,.media-sidebar .setting select.columns{width:auto}.media-frame .search,.media-frame input,.media-frame textarea{padding:3px 6px}.wp-admin .media-frame select{min-height:40px;font-size:16px;line-height:1.625;padding:5px 8px 5px 24px}.image-details .column-image{width:30%;right:70%}.image-details .column-settings{width:70%}.image-details .media-modal{right:30px;left:30px}.image-details .embed-media-settings .setting,.image-details .embed-media-settings .setting-group{margin:20px}.image-details .embed-media-settings .setting .name,.image-details .embed-media-settings .setting span{float:none;text-align:right;width:100%;margin-bottom:4px;margin-right:0}.media-modal .legend-inline{position:static;transform:none;margin-right:0;margin-bottom:6px}.image-details .embed-media-settings .setting-group .setting{margin-bottom:0}.image-details .embed-media-settings .setting input.link-to-custom,.image-details .embed-media-settings .setting input[type=text],.image-details .embed-media-settings .setting textarea{width:100%;margin-right:0}.image-details .embed-media-settings .setting.has-description{margin-bottom:5px}.image-details .description{width:auto;margin:0 20px}.image-details .embed-media-settings .custom-size{margin-right:20px}.collection-settings .setting input[type=checkbox]{float:none;margin-top:0}.media-selection{min-width:120px}.media-selection:after{background:0 0}.media-selection .attachments{display:none}.media-modal .attachments-browser .media-toolbar .search{max-width:100%;height:auto;float:left}.media-modal .attachments-browser .media-toolbar .attachment-filters{height:auto}.media-frame input[type=email],.media-frame input[type=number],.media-frame input[type=password],.media-frame input[type=search],.media-frame input[type=text],.media-frame input[type=url],.media-frame select,.media-frame textarea{font-size:16px;line-height:1.5}.media-frame .media-toolbar input[type=search]{line-height:2.3755}.media-modal .media-toolbar .spinner{margin-bottom:10px}}@media screen and (max-width:782px){.imgedit-panel-content{grid-template-columns:auto}.media-frame-toolbar .media-toolbar{bottom:-54px}.mode-grid .attachments-browser .media-toolbar-primary{display:grid;grid-template-columns:auto 1fr}.mode-grid .attachments-browser .media-toolbar-primary input[type=search]{width:100%}.attachment-details .copy-to-clipboard-container .success,.media-sidebar .copy-to-clipboard-container .success{font-size:14px;line-height:2.71428571}.media-frame .wp-filter .media-toolbar-secondary{position:unset}.media-frame .media-toolbar-secondary .spinner{position:absolute;top:0;bottom:0;margin:auto;right:0;left:0;z-index:9}.media-bg-overlay{content:'';background:#fff;width:100%;height:100%;display:none;position:absolute;right:0;left:0;top:0;bottom:0;opacity:.6}}@media only screen and (max-width:640px),screen and (max-height:400px){.image-details .media-modal,.media-modal{position:fixed;top:0;right:0;left:0;bottom:0}.media-modal-backdrop{position:fixed}.options-general-php .crop-content.site-icon{margin-left:0}.media-sidebar{z-index:1900;max-width:70%;bottom:120%;box-sizing:border-box;padding-bottom:0}.media-sidebar.visible{bottom:0}.attachments-browser .attachments,.attachments-browser .media-toolbar,.attachments-browser .uploader-inline,.media-frame-content .attachments-browser .attachments-wrapper{left:0}.image-details .media-frame-title{display:block;top:0;font-size:14px}.image-details .column-image,.image-details .column-settings{width:100%;position:relative;right:0}.image-details .column-settings{padding:4px 0}.media-frame-content .media-toolbar .instructions{display:none}.load-more-wrapper .load-more-jump{margin:12px 0 0}}@media only screen and (min-width:901px) and (max-height:400px){.media-frame:not(.hide-menu) .media-menu,.media-menu{top:0;padding-top:44px}.load-more-wrapper .load-more-jump{margin:12px 0 0}}@media only screen and (max-width:480px){.wp-core-ui.wp-customizer .media-button{margin-top:13px}}@media print,(min-resolution:120dpi){.wp-core-ui .media-modal-icon{background-image:url(../images/uploader-icons-2x.png);background-size:134px 15px}.media-frame .spinner{background-image:url(../images/spinner-2x.gif)}}.media-frame-content[data-columns="1"] .attachment{width:100%}.media-frame-content[data-columns="2"] .attachment{width:50%}.media-frame-content[data-columns="3"] .attachment{width:33.33%}.media-frame-content[data-columns="4"] .attachment{width:25%}.media-frame-content[data-columns="5"] .attachment{width:20%}.media-frame-content[data-columns="6"] .attachment{width:16.66%}.media-frame-content[data-columns="7"] .attachment{width:14.28%}.media-frame-content[data-columns="8"] .attachment{width:12.5%}.media-frame-content[data-columns="9"] .attachment{width:11.11%}.media-frame-content[data-columns="10"] .attachment{width:10%}.media-frame-content[data-columns="11"] .attachment{width:9.09%}.media-frame-content[data-columns="12"] .attachment{width:8.33%} \ No newline at end of file
diff --git a/wp-includes/css/media-views.css b/wp-includes/css/media-views.css
index 851646e..44bda26 100644
--- a/wp-includes/css/media-views.css
+++ b/wp-includes/css/media-views.css
@@ -382,6 +382,11 @@
margin: 0 0 10px;
}
+.attachment-details h2 {
+ display: grid;
+ grid-template-columns: auto 5em;
+}
+
.media-sidebar .collection-settings .setting {
margin: 1px 0;
}
@@ -1209,6 +1214,7 @@
display: flex;
align-items: center;
column-gap: .5rem;
+ margin: 11px 0;
}
.mode-grid .attachments-browser .media-toolbar-mode-select .media-toolbar-primary {
@@ -1315,47 +1321,6 @@
outline: 2px dotted #c3c4c7;
}
-.load-more-wrapper {
- clear: both;
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- justify-content: center;
- padding: 1em 0;
-}
-
-.load-more-wrapper .load-more-count {
- min-width: 100%;
- margin: 0 0 1em;
- text-align: center;
-}
-
-.load-more-wrapper .load-more {
- margin: 0;
-}
-
-/* Needs high specificity. */
-.media-frame .load-more-wrapper .load-more + .spinner {
- float: none;
- margin: 0 -30px 0 10px;
-}
-
-/* Reset spinner margin when the button is hidden to avoid horizontal scrollbar. */
-.media-frame .load-more-wrapper .load-more.hidden + .spinner {
- margin: 0;
-}
-
-/* Force a new row within the flex container. */
-.load-more-wrapper::after {
- content: "";
- min-width: 100%;
- order: 1;
-}
-
-.load-more-wrapper .load-more-jump {
- margin: 0 0 0 12px;
-}
-
/**
* Progress Bar
*/
@@ -1763,6 +1728,12 @@
vertical-align: middle;
}
+.media-frame .media-sidebar .settings-save-status .spinner {
+ position: absolute;
+ right: 0;
+ top: 0;
+}
+
.media-frame.mode-grid .spinner {
margin: 0;
float: none;
@@ -1792,7 +1763,7 @@
}
.attachment-details .settings-save-status {
- float: right;
+ text-align: right;
text-transform: none;
font-weight: 400;
}
@@ -2517,7 +2488,6 @@
/* Visually hide the menu heading keeping it available to assistive technologies. */
.media-frame-menu-heading {
clip: rect(1px, 1px, 1px, 1px);
- -webkit-clip-path: inset(50%);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
@@ -2802,7 +2772,8 @@
}
.mode-grid .attachments-browser .media-toolbar-primary {
- display: flex;
+ display: grid;
+ grid-template-columns: auto 1fr;
}
.mode-grid .attachments-browser .media-toolbar-primary input[type="search"] {
diff --git a/wp-includes/css/media-views.min.css b/wp-includes/css/media-views.min.css
index 1763729..68cbd27 100644
--- a/wp-includes/css/media-views.min.css
+++ b/wp-includes/css/media-views.min.css
@@ -6,4 +6,4 @@
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
- */.ui-draggable-handle,.ui-sortable-handle{touch-action:none}.media-modal{position:fixed;top:30px;left:30px;right:30px;bottom:30px;z-index:160000}.wp-customizer .media-modal{z-index:560000}.media-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:159900}.wp-customizer .media-modal-backdrop{z-index:559900}.media-modal-close{position:absolute;top:0;right:0;width:50px;height:50px;margin:0;padding:0;border:1px solid transparent;background:0 0;color:#646970;z-index:1000;cursor:pointer;outline:0;transition:color .1s ease-in-out,background .1s ease-in-out}.media-modal-close:active,.media-modal-close:hover{color:#135e96}.media-modal-close:focus{color:#135e96;border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8);outline:2px solid transparent}.media-modal-close span.media-modal-icon{background-image:none}.media-modal-close .media-modal-icon:before{content:"\f158";font:normal 20px/1 dashicons;speak:never;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.media-modal-content{position:absolute;top:0;left:0;right:0;bottom:0;overflow:auto;min-height:300px;box-shadow:0 5px 15px rgba(0,0,0,.7);background:#fff;-webkit-font-smoothing:subpixel-antialiased}.media-modal-content .media-frame select.attachment-filters{margin-top:32px;margin-right:2%;width:42%;width:calc(48% - 12px)}.wp-core-ui .media-modal-icon{background-image:url(../images/uploader-icons.png);background-repeat:no-repeat}.media-toolbar{position:absolute;top:0;left:0;right:0;z-index:100;height:60px;padding:0 16px;border:0 solid #dcdcde;overflow:hidden}.media-frame-toolbar .media-toolbar{top:auto;bottom:-47px;height:auto;overflow:visible;border-top:1px solid #dcdcde}.media-toolbar-primary{float:right;height:100%;position:relative}.media-toolbar-secondary{float:left;height:100%}.media-toolbar-primary>.media-button,.media-toolbar-primary>.media-button-group{margin-left:10px;float:left;margin-top:15px}.media-toolbar-secondary>.media-button,.media-toolbar-secondary>.media-button-group{margin-right:10px;margin-top:15px}.media-sidebar{position:absolute;top:0;right:0;bottom:0;width:267px;padding:0 16px;z-index:75;background:#f6f7f7;border-left:1px solid #dcdcde;overflow:auto;-webkit-overflow-scrolling:touch}.media-sidebar::after{content:"";display:flex;clear:both;height:24px}.hide-toolbar .media-sidebar{bottom:0}.image-details .media-embed h2,.media-sidebar h2{position:relative;font-weight:600;text-transform:uppercase;font-size:12px;color:#646970;margin:24px 0 8px}.attachment-details .setting,.media-sidebar .setting{display:block;float:left;width:100%;margin:0 0 10px}.media-sidebar .collection-settings .setting{margin:1px 0}.attachment-details .setting.has-description,.media-sidebar .setting.has-description{margin-bottom:5px}.media-sidebar .setting .link-to-custom{margin:3px 2px 0}.attachment-details .setting .name,.attachment-details .setting span,.media-sidebar .setting .name,.media-sidebar .setting .value,.media-sidebar .setting span{min-width:30%;margin-right:4%;font-size:12px;text-align:right;word-wrap:break-word}.media-sidebar .setting .name{max-width:80px}.media-sidebar .setting .value{text-align:left}.media-sidebar .setting select{max-width:65%}.attachment-details .field input[type=checkbox],.attachment-details .field input[type=radio],.attachment-details .setting input[type=checkbox],.attachment-details .setting input[type=radio],.media-sidebar .field input[type=checkbox],.media-sidebar .field input[type=radio],.media-sidebar .setting input[type=checkbox],.media-sidebar .setting input[type=radio]{float:none;margin:8px 3px 0;padding:0}.attachment-details .setting .name,.attachment-details .setting .value,.attachment-details .setting span,.compat-item label span,.media-sidebar .checkbox-label-inline,.media-sidebar .setting .name,.media-sidebar .setting .value,.media-sidebar .setting span{float:left;min-height:22px;padding-top:8px;line-height:1.33333333;font-weight:400;color:#646970}.media-sidebar .checkbox-label-inline{font-size:12px}.attachment-details .copy-to-clipboard-container,.media-sidebar .copy-to-clipboard-container{flex-wrap:wrap;margin-top:10px;margin-left:calc(35% - 1px);padding-top:10px}.attachment-details .attachment-info .copy-to-clipboard-container{float:none}.attachment-details .copy-to-clipboard-container .success,.media-sidebar .copy-to-clipboard-container .success{padding:0;min-height:0;line-height:2.18181818;text-align:left;color:#007017}.compat-item label span{text-align:right}.attachment-details .setting .value,.attachment-details .setting input[type=email],.attachment-details .setting input[type=number],.attachment-details .setting input[type=password],.attachment-details .setting input[type=search],.attachment-details .setting input[type=tel],.attachment-details .setting input[type=text],.attachment-details .setting input[type=url],.attachment-details .setting textarea,.attachment-details .setting+.description,.media-sidebar .setting .value,.media-sidebar .setting input[type=email],.media-sidebar .setting input[type=number],.media-sidebar .setting input[type=password],.media-sidebar .setting input[type=search],.media-sidebar .setting input[type=tel],.media-sidebar .setting input[type=text],.media-sidebar .setting input[type=url],.media-sidebar .setting textarea{box-sizing:border-box;margin:1px;width:65%;float:right}.attachment-details .setting .value,.attachment-details .setting+.description,.media-sidebar .setting .value{margin:0 1px;text-align:left}.attachment-details .setting+.description{clear:both;font-size:12px;font-style:normal;margin-bottom:10px}.attachment-details .setting textarea,.compat-item .field textarea,.media-sidebar .setting textarea{height:62px;resize:vertical}.alt-text textarea,.attachment-details .alt-text textarea,.compat-item .alt-text textarea,.media-sidebar .alt-text textarea{height:50px}.compat-item{float:left;width:100%;overflow:hidden}.compat-item table{width:100%;table-layout:fixed;border-spacing:0;border:0}.compat-item tr{padding:2px 0;display:block;overflow:hidden}.compat-item .field,.compat-item .label{display:block;margin:0;padding:0}.compat-item .label{min-width:30%;margin-right:4%;float:left;text-align:right}.compat-item .label span{display:block;width:100%}.compat-item .field{float:right;width:65%;margin:1px}.compat-item .field input[type=email],.compat-item .field input[type=number],.compat-item .field input[type=password],.compat-item .field input[type=search],.compat-item .field input[type=tel],.compat-item .field input[type=text],.compat-item .field input[type=url],.compat-item .field textarea{width:100%;margin:0;box-sizing:border-box}.sidebar-for-errors .attachment-details,.sidebar-for-errors .compat-item,.sidebar-for-errors .media-sidebar .media-progress-bar,.sidebar-for-errors .upload-details{display:none!important}.media-menu{position:absolute;top:0;left:0;right:0;bottom:0;margin:0;padding:50px 0 10px;background:#f6f7f7;border-right-width:1px;border-right-style:solid;border-right-color:#c3c4c7;-webkit-user-select:none;user-select:none}.media-menu .media-menu-item{display:block;box-sizing:border-box;width:100%;position:relative;border:0;margin:0;padding:8px 20px;font-size:14px;line-height:1.28571428;background:0 0;color:#2271b1;text-align:left;text-decoration:none;cursor:pointer}.media-menu .media-menu-item:hover{background:rgba(0,0,0,.04)}.media-menu .media-menu-item:active{color:#2271b1;outline:0}.media-menu .active,.media-menu .active:hover{color:#1d2327;font-weight:600}.media-menu .media-menu-item:focus{box-shadow:0 0 0 2px #2271b1;color:#043959;outline:2px solid transparent}.media-menu .separator{height:0;margin:12px 20px;padding:0;border-top:1px solid #dcdcde}.media-router{position:relative;padding:0 6px;margin:0;clear:both}.media-router .media-menu-item{position:relative;float:left;border:0;margin:0;padding:8px 10px 9px;height:18px;line-height:1.28571428;font-size:14px;text-decoration:none;background:0 0;cursor:pointer;transition:none}.media-router .media-menu-item:last-child{border-right:0}.media-router .media-menu-item:active,.media-router .media-menu-item:hover{color:#2271b1}.media-router .active,.media-router .active:hover{color:#1d2327}.media-router .media-menu-item:focus{box-shadow:0 0 0 2px #2271b1;color:#043959;outline:2px solid transparent}.media-router .active,.media-router .media-menu-item.active:last-child{margin:-1px -1px 0;background:#fff;border:1px solid #dcdcde;border-bottom:none}.media-router .active:after{display:none}.media-frame{overflow:hidden;position:absolute;top:0;left:0;right:0;bottom:0}.media-frame-menu{position:absolute;top:0;left:0;bottom:0;width:200px;z-index:150}.media-frame-title{position:absolute;top:0;left:200px;right:0;height:50px;z-index:200}.media-frame-router{position:absolute;top:50px;left:200px;right:0;height:36px;z-index:200}.media-frame-content{position:absolute;top:84px;left:200px;right:0;bottom:61px;height:auto;width:auto;margin:0;overflow:auto;background:#fff;border-top:1px solid #dcdcde}.media-frame-toolbar{position:absolute;left:200px;right:0;z-index:100;bottom:60px;height:auto}.media-frame.hide-menu .media-frame-content,.media-frame.hide-menu .media-frame-router,.media-frame.hide-menu .media-frame-title,.media-frame.hide-menu .media-frame-toolbar{left:0}.media-frame.hide-toolbar .media-frame-content{bottom:0}.media-frame.hide-router .media-frame-content{top:50px}.media-frame.hide-menu .media-frame-menu,.media-frame.hide-menu .media-frame-menu-heading,.media-frame.hide-router .media-frame-router,.media-frame.hide-toolbar .media-frame-toolbar{display:none}.media-frame-title h1{padding:0 16px;font-size:22px;line-height:2.27272727;margin:0}.media-attachments-filter-heading,.media-frame-menu-heading{position:absolute;left:20px;top:22px;margin:0;font-size:13px;line-height:1;z-index:151}.media-attachments-filter-heading{top:10px;left:16px}.mode-grid .media-attachments-filter-heading{top:0;left:-9999px}.mode-grid .media-frame-actions-heading{display:none}.wp-core-ui .button.media-frame-menu-toggle{display:none}.media-frame-title .suggested-dimensions{font-size:14px;float:right;margin-right:20px}.media-frame-content .crop-content{height:100%}.options-general-php .crop-content.site-icon,.wp-customizer:not(.mobile) .media-frame-content .crop-content.site-icon{margin-right:300px}.media-frame-content .crop-content .crop-image{display:block;margin:auto;max-width:100%;max-height:100%}.media-frame-content .crop-content .upload-errors{position:absolute;width:300px;top:50%;left:50%;margin-left:-150px;margin-right:-150px;z-index:600000}.media-frame .media-iframe{overflow:hidden}.media-frame .media-iframe,.media-frame .media-iframe iframe{height:100%;width:100%;border:0}.media-frame select.attachment-filters{margin-top:11px;margin-right:2%;max-width:42%;max-width:calc(48% - 12px)}.media-frame select.attachment-filters:last-of-type{margin-right:0}.media-frame .search{margin:32px 0 0;padding:4px;font-size:13px;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;-webkit-appearance:none}.media-toolbar-primary .search{max-width:100%}.media-modal .media-frame .media-search-input-label{position:absolute;left:0;top:10px;margin:0;line-height:1}.wp-core-ui .attachments{margin:0;-webkit-overflow-scrolling:touch}.wp-core-ui .attachment{position:relative;float:left;padding:8px;margin:0;color:#3c434a;cursor:pointer;list-style:none;text-align:center;-webkit-user-select:none;user-select:none;width:25%;box-sizing:border-box}.wp-core-ui .attachment.details:focus,.wp-core-ui .attachment:focus,.wp-core-ui .selected.attachment:focus{box-shadow:inset 0 0 2px 3px #fff,inset 0 0 0 7px #4f94d4;outline:2px solid transparent;outline-offset:-6px}.wp-core-ui .selected.attachment{box-shadow:inset 0 0 0 5px #fff,inset 0 0 0 7px #c3c4c7}.wp-core-ui .attachment.details{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #2271b1}.wp-core-ui .attachment-preview{position:relative;box-shadow:inset 0 0 15px rgba(0,0,0,.1),inset 0 0 0 1px rgba(0,0,0,.05);background:#f0f0f1;cursor:pointer}.wp-core-ui .attachment-preview:before{content:"";display:block;padding-top:100%}.wp-core-ui .attachment .icon{margin:0 auto;overflow:hidden}.wp-core-ui .attachment .thumbnail{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0;opacity:1;transition:opacity .1s}.wp-core-ui .attachment .portrait img{max-width:100%}.wp-core-ui .attachment .landscape img{max-height:100%}.wp-core-ui .attachment .thumbnail:after{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);overflow:hidden}.wp-core-ui .attachment .thumbnail img{top:0;left:0}.wp-core-ui .attachment .thumbnail .centered{position:absolute;top:0;left:0;width:100%;height:100%;transform:translate(50%,50%)}.wp-core-ui .attachment .thumbnail .centered img{transform:translate(-50%,-50%)}.wp-core-ui .attachments-browser .attachment .thumbnail .centered img.icon{transform:translate(-50%,-70%)}.wp-core-ui .attachment .filename{position:absolute;left:0;right:0;bottom:0;overflow:hidden;max-height:100%;word-wrap:break-word;text-align:center;font-weight:600;background:rgba(255,255,255,.8);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}.wp-core-ui .attachment .filename div{padding:5px 10px}.wp-core-ui .attachment .thumbnail img{position:absolute}.wp-core-ui .attachment-close{display:block;position:absolute;top:5px;right:5px;height:22px;width:22px;padding:0;background-color:#fff;background-position:-96px 4px;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.3);transition:none}.wp-core-ui .attachment-close:focus,.wp-core-ui .attachment-close:hover{background-position:-36px 4px}.wp-core-ui .attachment .check{display:none;height:24px;width:24px;padding:0;border:0;position:absolute;z-index:10;top:0;right:0;outline:0;background:#f0f0f1;cursor:pointer;box-shadow:0 0 0 1px #fff,0 0 0 2px rgba(0,0,0,.15)}.wp-core-ui .attachment .check .media-modal-icon{display:block;background-position:-1px 0;height:15px;width:15px;margin:5px}.wp-core-ui .attachment .check:hover .media-modal-icon{background-position:-40px 0}.wp-core-ui .attachment.selected .check{display:block}.wp-core-ui .attachment.details .check,.wp-core-ui .attachment.selected .check:focus,.wp-core-ui .media-frame.mode-grid .attachment.selected .check{background-color:#2271b1;box-shadow:0 0 0 1px #fff,0 0 0 2px #2271b1}.wp-core-ui .attachment.selected .check:focus{outline:2px solid transparent}.wp-core-ui .attachment.details .check .media-modal-icon,.wp-core-ui .media-frame.mode-grid .attachment.selected .check .media-modal-icon{background-position:-21px 0}.wp-core-ui .attachment.details .check:hover .media-modal-icon,.wp-core-ui .attachment.selected .check:focus .media-modal-icon,.wp-core-ui .media-frame.mode-grid .attachment.selected .check:hover .media-modal-icon{background-position:-60px 0}.wp-core-ui .media-frame .attachment .describe{position:relative;display:block;width:100%;margin:0;padding:0 8px;font-size:12px;border-radius:0}.media-frame .attachments-browser{position:relative;width:100%;height:100%;overflow:hidden}.attachments-browser .media-toolbar{right:300px;height:72px;background:#fff}.attachments-browser.hide-sidebar .media-toolbar{right:0}.attachments-browser .media-toolbar-primary>.media-button,.attachments-browser .media-toolbar-primary>.media-button-group,.attachments-browser .media-toolbar-secondary>.media-button,.attachments-browser .media-toolbar-secondary>.media-button-group{margin:10px 0}.attachments-browser .attachments{padding:2px 8px 8px}.attachments-browser .uploader-inline,.attachments-browser.has-load-more .attachments-wrapper,.attachments-browser:not(.has-load-more) .attachments{position:absolute;top:72px;left:0;right:300px;bottom:0;overflow:auto;outline:0}.attachments-browser .uploader-inline.hidden{display:none}.attachments-browser .media-toolbar-primary{max-width:33%}.mode-grid .attachments-browser .media-toolbar-primary{display:flex;align-items:center;column-gap:.5rem}.mode-grid .attachments-browser .media-toolbar-mode-select .media-toolbar-primary{display:none}.attachments-browser .media-toolbar-secondary{max-width:66%}.uploader-inline .close{background-color:transparent;border:0;cursor:pointer;height:48px;outline:0;padding:0;position:absolute;right:2px;text-align:center;top:2px;width:48px;z-index:1}.uploader-inline .close:before{font:normal 30px/1 dashicons!important;color:#50575e;display:inline-block;content:"\f335";font-weight:300;margin-top:1px}.uploader-inline .close:focus{outline:1px solid #4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8)}.attachments-browser.hide-sidebar .attachments,.attachments-browser.hide-sidebar .uploader-inline{right:0;margin-right:0}.attachments-browser .instructions{display:inline-block;margin-top:16px;line-height:1.38461538;font-size:13px;color:#646970}.attachments-browser .no-media{padding:2em 0 0 2em}.more-loaded .attachment:not(.found-media){background:#dcdcde}.load-more-wrapper{clear:both;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;padding:1em 0}.load-more-wrapper .load-more-count{min-width:100%;margin:0 0 1em;text-align:center}.load-more-wrapper .load-more{margin:0}.media-frame .load-more-wrapper .load-more+.spinner{float:none;margin:0 -30px 0 10px}.media-frame .load-more-wrapper .load-more.hidden+.spinner{margin:0}.load-more-wrapper::after{content:"";min-width:100%;order:1}.load-more-wrapper .load-more-jump{margin:0 0 0 12px}.attachment.new-media{outline:2px dotted #c3c4c7}.load-more-wrapper{clear:both;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;padding:1em 0}.load-more-wrapper .load-more-count{min-width:100%;margin:0 0 1em;text-align:center}.load-more-wrapper .load-more{margin:0}.media-frame .load-more-wrapper .load-more+.spinner{float:none;margin:0 -30px 0 10px}.media-frame .load-more-wrapper .load-more.hidden+.spinner{margin:0}.load-more-wrapper::after{content:"";min-width:100%;order:1}.load-more-wrapper .load-more-jump{margin:0 0 0 12px}.media-progress-bar{position:relative;height:10px;width:70%;margin:10px auto;border-radius:10px;background:#dcdcde;background:rgba(0,0,0,.1)}.media-progress-bar div{height:10px;min-width:20px;width:0;background:#2271b1;border-radius:10px;transition:width .3s}.media-uploader-status .media-progress-bar{display:none;width:100%}.uploading.media-uploader-status .media-progress-bar{display:block}.attachment-preview .media-progress-bar{position:absolute;top:50%;left:15%;width:70%;margin:-5px 0 0}.media-uploader-status{position:relative;margin:0 auto;padding-bottom:10px;max-width:400px}.uploader-inline .media-uploader-status h2{display:none}.media-uploader-status .upload-details{display:none;font-size:12px;color:#646970}.uploading.media-uploader-status .upload-details{display:block}.media-uploader-status .upload-detail-separator{padding:0 4px}.media-uploader-status .upload-count{color:#3c434a}.media-uploader-status .upload-dismiss-errors,.media-uploader-status .upload-errors{display:none}.errors.media-uploader-status .upload-dismiss-errors,.errors.media-uploader-status .upload-errors{display:block}.media-uploader-status .upload-dismiss-errors{transition:none;text-decoration:none}.upload-errors .upload-error{padding:12px;margin-bottom:12px;background:#fff;border-left:4px solid #d63638;box-shadow:0 1px 1px 0 rgba(0,0,0,.1)}.uploader-inline .upload-errors .upload-error{padding:12px 30px;background-color:#fcf0f1;box-shadow:none}.upload-errors .upload-error-filename{font-weight:600}.upload-errors .upload-error-message{display:block;padding-top:8px;word-wrap:break-word}.uploader-window,.wp-editor-wrap .uploader-editor{top:0;left:0;right:0;bottom:0;text-align:center;display:none}.uploader-window{position:fixed;z-index:250000;opacity:0;transition:opacity 250ms}.wp-editor-wrap .uploader-editor{position:absolute;z-index:99998;background:rgba(140,143,148,.9)}.uploader-window,.wp-editor-wrap .uploader-editor.droppable{background:rgba(10,75,120,.9)}.uploader-window-content,.wp-editor-wrap .uploader-editor-content{position:absolute;top:10px;left:10px;right:10px;bottom:10px;border:1px dashed #fff}.uploader-window .uploader-editor-title,.uploader-window h1,.wp-editor-wrap .uploader-editor .uploader-editor-title{position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);font-size:3em;line-height:1.3;font-weight:600;color:#fff;margin:0;padding:0 10px}.wp-editor-wrap .uploader-editor .uploader-editor-title{display:none}.wp-editor-wrap .uploader-editor.droppable .uploader-editor-title{display:block}.uploader-window .media-progress-bar{margin-top:20px;max-width:300px;background:0 0;border-color:#fff;display:none}.uploader-window .media-progress-bar div{background:#fff}.uploading .uploader-window .media-progress-bar{display:block}.media-frame .uploader-inline{margin-bottom:20px;padding:0;text-align:center}.uploader-inline-content{position:absolute;top:30%;left:0;right:0}.uploader-inline-content .upload-ui{margin:2em 0}.uploader-inline-content .post-upload-ui{margin-bottom:2em}.uploader-inline .has-upload-message .upload-ui{margin:0 0 4em}.uploader-inline h2{font-size:20px;line-height:1.4;font-weight:400;margin:0}.uploader-inline .has-upload-message .upload-instructions{font-size:14px;color:#3c434a;font-weight:400}.uploader-inline .drop-instructions{display:none}.supports-drag-drop .uploader-inline .drop-instructions{display:block}.uploader-inline p{margin:.5em 0}.uploader-inline .media-progress-bar{display:none}.uploading.uploader-inline .media-progress-bar{display:block}.uploader-inline .browser{display:inline-block!important}.media-selection{position:absolute;top:0;left:0;right:350px;height:60px;padding:0 0 0 16px;overflow:hidden;white-space:nowrap}.media-selection .selection-info{display:inline-block;font-size:12px;height:60px;margin-right:10px;vertical-align:top}.media-selection.editing,.media-selection.empty{display:none}.media-selection.one .edit-selection{display:none}.media-selection .count{display:block;padding-top:12px;font-size:14px;line-height:1.42857142;font-weight:600}.media-selection .button-link{float:left;padding:1px 8px;margin:1px 8px 1px -8px;line-height:1.4;border-right:1px solid #dcdcde;color:#2271b1;text-decoration:none}.media-selection .button-link:focus,.media-selection .button-link:hover{color:#135e96}.media-selection .button-link:last-child{border-right:0;margin-right:0}.selection-info .clear-selection{color:#d63638}.selection-info .clear-selection:focus,.selection-info .clear-selection:hover{color:#d63638}.media-selection .selection-view{display:inline-block;vertical-align:top}.media-selection .attachments{display:inline-block;height:48px;margin:6px;padding:0;overflow:hidden;vertical-align:top}.media-selection .attachment{width:40px;padding:0;margin:4px}.media-selection .attachment .thumbnail{top:0;right:0;bottom:0;left:0}.media-selection .attachment .icon{width:50%}.media-selection .attachment-preview{box-shadow:none;background:0 0}.wp-core-ui .media-selection .attachment.details:focus,.wp-core-ui .media-selection .attachment:focus,.wp-core-ui .media-selection .selected.attachment:focus{box-shadow:0 0 0 1px #fff,0 0 2px 3px #4f94d4;outline:2px solid transparent}.wp-core-ui .media-selection .selected.attachment{box-shadow:none}.wp-core-ui .media-selection .attachment.details{box-shadow:0 0 0 1px #fff,0 0 0 3px #2271b1}.media-selection:after{content:"";display:block;position:absolute;top:0;right:0;bottom:0;width:25px;background-image:linear-gradient(to left,#fff,rgba(255,255,255,0))}.media-selection .attachment .filename{display:none}.media-frame .spinner{background:url(../images/spinner.gif) no-repeat;background-size:20px 20px;float:right;display:inline-block;visibility:hidden;opacity:.7;width:20px;height:20px;margin:0;vertical-align:middle}.media-frame.mode-grid .spinner{margin:0;float:none;vertical-align:middle}.media-modal .media-toolbar .spinner{float:none;vertical-align:bottom;margin:0 0 5px 5px}.media-frame .instructions+.spinner.is-active{vertical-align:middle}.media-frame .spinner.is-active{visibility:visible}.attachment-details{position:relative;overflow:auto}.attachment-details .settings-save-status{float:right;text-transform:none;font-weight:400}.attachment-details .settings-save-status .spinner{float:none;margin-left:5px}.attachment-details .settings-save-status .saved{display:none}.attachment-details.save-waiting .settings-save-status .spinner{visibility:visible}.attachment-details.save-complete .settings-save-status .saved{display:inline-block}.attachment-info{overflow:hidden;min-height:60px;margin-bottom:16px;line-height:1.5;color:#646970;border-bottom:1px solid #dcdcde;padding-bottom:11px}.attachment-info .wp-media-wrapper{margin-bottom:8px}.attachment-info .wp-media-wrapper.wp-audio{margin-top:13px}.attachment-info .filename{font-weight:600;color:#3c434a;word-wrap:break-word}.attachment-info .thumbnail{position:relative;float:left;max-width:120px;max-height:120px;margin-top:5px;margin-right:10px;margin-bottom:5px}.uploading .attachment-info .thumbnail{width:120px;height:80px;box-shadow:inset 0 0 15px rgba(0,0,0,.1)}.uploading .attachment-info .media-progress-bar{margin-top:35px}.attachment-info .thumbnail-image:after{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);overflow:hidden}.attachment-info .thumbnail img{display:block;max-width:120px;max-height:120px;margin:0 auto}.attachment-info .details{float:left;font-size:12px;max-width:100%}.attachment-info .delete-attachment,.attachment-info .edit-attachment,.attachment-info .trash-attachment,.attachment-info .untrash-attachment{display:block;text-decoration:none;white-space:nowrap}.attachment-details.needs-refresh .attachment-info .edit-attachment{display:none}.attachment-info .edit-attachment{display:block}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment{display:inline;padding:0;color:#d63638}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover{color:#d63638}.attachment-display-settings{width:100%;float:left;overflow:hidden}.collection-settings{overflow:hidden}.collection-settings .setting input[type=checkbox]{float:left;margin-right:8px}.collection-settings .setting .name,.collection-settings .setting span{min-width:inherit}.media-modal .imgedit-wrap{position:static}.media-modal .imgedit-wrap .imgedit-panel-content{padding:16px 16px 0;overflow:visible}.media-modal .imgedit-wrap .imgedit-save-target{margin:8px 0 24px}.media-modal .imgedit-group{background:0 0;border:none;box-shadow:none;margin:0;padding:0;position:relative}.media-modal .imgedit-group.imgedit-panel-active{margin-bottom:16px;padding-bottom:16px}.media-modal .imgedit-group-top{margin:0}.media-modal .imgedit-group-top h2,.media-modal .imgedit-group-top h2 .button-link{display:inline-block;text-transform:uppercase;font-size:12px;color:#646970;margin:0;margin-top:3px}.media-modal .imgedit-group-top h2 .button-link,.media-modal .imgedit-group-top h2 a{text-decoration:none;color:#646970}.wp-core-ui.media-modal .image-editor .imgedit-help-toggle,.wp-core-ui.media-modal .image-editor .imgedit-help-toggle:active,.wp-core-ui.media-modal .image-editor .imgedit-help-toggle:hover{border:1px solid transparent;margin:0;padding:0;background:0 0;color:#2271b1;font-size:20px;line-height:1;cursor:pointer;box-sizing:content-box;box-shadow:none}.wp-core-ui.media-modal .image-editor .imgedit-help-toggle:focus{color:#2271b1;border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}.wp-core-ui.media-modal .imgedit-group-top .dashicons-arrow-down.imgedit-help-toggle{margin-top:-3px}.wp-core-ui.media-modal .image-editor h3 .imgedit-help-toggle{margin-top:-2px}.media-modal .imgedit-help-toggled span.dashicons:before{content:"\f142"}.media-modal .imgedit-thumbnail-preview{margin:10px 8px 0 0}.imgedit-thumbnail-preview-caption{display:block}.media-modal .imgedit-wrap .notice,.media-modal .imgedit-wrap div.updated{margin:0 16px}.embed-url{display:block;position:relative;padding:16px;margin:0;z-index:250;background:#fff;font-size:18px}.media-frame .embed-url input{font-size:18px;line-height:1.22222222;padding:12px 40px 12px 14px;width:100%;min-width:200px;box-shadow:inset 2px 2px 4px -2px rgba(0,0,0,.1)}.media-frame .embed-url input::-ms-clear{display:none}.media-frame .embed-url .spinner{position:absolute;top:32px;right:26px}.media-frame .embed-loading .embed-url .spinner{visibility:visible}.embed-link-settings,.embed-media-settings{position:absolute;top:82px;left:0;right:0;bottom:0;padding:0 16px;overflow:auto}.media-embed .embed-link-settings .link-text{margin-top:0}.embed-link-settings::after,.embed-media-settings::after{content:"";display:flex;clear:both;height:24px}.media-embed .embed-link-settings{overflow:visible}.embed-preview embed,.embed-preview iframe,.embed-preview img,.mejs-container video{max-width:100%;vertical-align:middle}.embed-preview a{display:inline-block}.embed-preview img{display:block;height:auto}.mejs-container:focus{outline:1px solid #2271b1;box-shadow:0 0 0 2px #2271b1}.image-details .media-modal{left:140px;right:140px}.image-details .media-frame-content,.image-details .media-frame-router,.image-details .media-frame-title{left:0}.image-details .embed-media-settings{top:0;overflow:visible;padding:0}.image-details .embed-media-settings::after{content:none}.image-details .embed-media-settings,.image-details .embed-media-settings div{box-sizing:border-box}.image-details .column-settings{background:#f6f7f7;border-right:1px solid #dcdcde;min-height:100%;width:55%;position:absolute;top:0;left:0}.image-details .column-settings h2{margin:20px;padding-top:20px;border-top:1px solid #dcdcde;color:#1d2327}.image-details .column-image{width:45%;position:absolute;left:55%;top:0}.image-details .image{margin:20px}.image-details .image img{max-width:100%;max-height:500px}.image-details .advanced-toggle{padding:0;color:#646970;text-transform:uppercase;text-decoration:none}.image-details .advanced-toggle:active,.image-details .advanced-toggle:hover{color:#646970}.image-details .advanced-toggle:after{font:normal 20px/1 dashicons;speak:never;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f140";display:inline-block;margin-top:-2px}.image-details .advanced-visible .advanced-toggle:after{content:"\f142"}.image-details .custom-size .custom-size-setting,.image-details .custom-size label{display:block;float:left}.image-details .custom-size .custom-size-setting label{float:none}.image-details .custom-size input{width:5em}.image-details .custom-size .sep{float:left;margin:26px 6px 0}.image-details .custom-size .description{margin-left:0}.media-embed .thumbnail{max-width:100%;max-height:200px;position:relative;float:left}.media-embed .thumbnail img{max-height:200px;display:block}.media-embed .thumbnail:after{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);overflow:hidden}.media-embed .setting,.media-embed .setting-group{width:100%;margin:10px 0;float:left;display:block;clear:both}.media-embed .setting-group .setting:not(.checkbox-setting){margin:0}.media-embed .setting.has-description{margin-bottom:5px}.media-embed .description{clear:both;font-style:normal}.media-embed .content-track+.description{line-height:1.4;max-width:none!important}.media-embed .remove-track{margin-bottom:10px}.image-details .embed-media-settings .setting,.image-details .embed-media-settings .setting-group{float:none;width:auto}.image-details .actions{margin:10px 0}.image-details .hidden{display:none}.media-embed .setting input[type=text],.media-embed .setting textarea,.media-embed fieldset{display:block;width:100%;max-width:400px}.image-details .embed-media-settings .setting input[type=text],.image-details .embed-media-settings .setting textarea{max-width:inherit;width:70%}.image-details .description,.image-details .embed-media-settings .custom-size,.image-details .embed-media-settings .link-target,.image-details .embed-media-settings .setting input.link-to-custom,.image-details .embed-media-settings .setting-group{margin-left:27%;width:70%}.image-details .description{font-style:normal;margin-top:0}.image-details .embed-media-settings .link-target{margin-top:16px}.audio-details .checkbox-label,.image-details .checkbox-label,.video-details .checkbox-label{vertical-align:baseline}.media-embed .setting input.hidden,.media-embed .setting textarea.hidden{display:none}.media-embed .setting .name,.media-embed .setting span,.media-embed .setting-group .name{display:inline-block;font-size:13px;line-height:1.84615384;color:#646970}.media-embed .setting span{display:block;width:200px}.image-details .embed-media-settings .setting .name,.image-details .embed-media-settings .setting span{float:left;width:25%;text-align:right;margin:8px 1% 0;line-height:1.1}.image-details .embed-media-settings .setting .button-group,.media-frame .setting-group .button-group{width:auto}.media-embed-sidebar{position:absolute;top:0;left:440px}.advanced-section,.link-settings{margin-top:10px}.media-frame .setting .button-group{display:flex;margin:0!important;max-width:none!important}.rtl .media-frame,.rtl .media-frame .search,.rtl .media-frame input[type=email],.rtl .media-frame input[type=number],.rtl .media-frame input[type=password],.rtl .media-frame input[type=search],.rtl .media-frame input[type=tel],.rtl .media-frame input[type=text],.rtl .media-frame input[type=url],.rtl .media-frame select,.rtl .media-frame textarea,.rtl .media-modal{font-family:Tahoma,sans-serif}:lang(he-il) .rtl .media-frame,:lang(he-il) .rtl .media-frame .search,:lang(he-il) .rtl .media-frame input[type=email],:lang(he-il) .rtl .media-frame input[type=number],:lang(he-il) .rtl .media-frame input[type=password],:lang(he-il) .rtl .media-frame input[type=search],:lang(he-il) .rtl .media-frame input[type=text],:lang(he-il) .rtl .media-frame input[type=url],:lang(he-il) .rtl .media-frame select,:lang(he-il) .rtl .media-frame textarea,:lang(he-il) .rtl .media-modal{font-family:Arial,sans-serif}@media only screen and (max-width:900px){.media-modal .media-frame-title{height:40px}.media-modal .media-frame-title h1{line-height:2.22222222;font-size:18px}.media-modal-close{width:42px;height:42px}.media-frame .media-frame-title{position:static;padding:0 44px;text-align:center}.media-frame:not(.hide-menu) .media-frame-content,.media-frame:not(.hide-menu) .media-frame-router,.media-frame:not(.hide-menu) .media-frame-toolbar{left:0}.media-frame:not(.hide-menu) .media-frame-router{top:80px}.media-frame:not(.hide-menu) .media-frame-content{top:114px}.media-frame.hide-router .media-frame-content{top:80px}.media-frame:not(.hide-menu) .media-frame-menu{position:static;width:0}.media-frame:not(.hide-menu) .media-menu{display:none;width:auto;max-width:80%;overflow:auto;z-index:2000;top:75px;left:50%;transform:translateX(-50%);right:auto;bottom:auto;padding:5px 0;border:1px solid #c3c4c7}.media-frame:not(.hide-menu) .media-menu.visible{display:block}.media-frame:not(.hide-menu) .media-menu>a{padding:12px 16px;font-size:16px}.media-frame:not(.hide-menu) .media-menu .separator{margin:5px 10px}.media-frame-menu-heading{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;padding:0;width:1px;word-wrap:normal!important}.wp-core-ui .media-frame:not(.hide-menu) .button.media-frame-menu-toggle{display:inline-flex;align-items:center;position:absolute;left:50%;transform:translateX(-50%);margin:-6px 0 0;padding:0 2px 0 12px;font-size:.875rem;font-weight:600;text-decoration:none;background:0 0;height:.1%;min-height:40px}.wp-core-ui .button.media-frame-menu-toggle:active,.wp-core-ui .button.media-frame-menu-toggle:hover{background:0 0;transform:none}.wp-core-ui .button.media-frame-menu-toggle:focus{outline:1px solid transparent}.media-sidebar{width:230px}.options-general-php .crop-content.site-icon{margin-right:262px}.attachments-browser .attachments,.attachments-browser .attachments-wrapper,.attachments-browser .media-toolbar,.attachments-browser .uploader-inline,.attachments-browser.has-load-more .attachments-wrapper{right:262px}.attachments-browser .media-toolbar{height:82px}.attachments-browser .attachments,.attachments-browser .uploader-inline,.media-frame-content .attachments-browser .attachments-wrapper{top:82px}.attachment-details .setting,.media-sidebar .setting{margin:6px 0}.attachment-details .setting .name,.attachment-details .setting input,.attachment-details .setting textarea,.compat-item label span,.media-sidebar .setting .name,.media-sidebar .setting input,.media-sidebar .setting textarea{float:none;display:inline-block}.attachment-details .setting span,.media-sidebar .checkbox-label-inline,.media-sidebar .setting span{float:none}.media-sidebar .setting .select-label-inline{display:inline}.attachment-details .setting .name,.compat-item label span,.media-sidebar .checkbox-label-inline,.media-sidebar .setting .name{text-align:inherit;min-height:16px;margin:0;padding:8px 2px 2px}.attachment-details .attachment-info .copy-to-clipboard-container,.media-sidebar .setting .copy-to-clipboard-container{margin-left:0;padding-top:0}.attachment-details .attachment-info .copy-attachment-url,.media-sidebar .setting .copy-attachment-url{margin:0 1px}.attachment-details .setting .value,.media-sidebar .setting .value{float:none;width:auto}.attachment-details .setting input[type=email],.attachment-details .setting input[type=number],.attachment-details .setting input[type=password],.attachment-details .setting input[type=search],.attachment-details .setting input[type=tel],.attachment-details .setting input[type=text],.attachment-details .setting input[type=url],.attachment-details .setting select,.attachment-details .setting textarea,.attachment-details .setting+.description,.media-sidebar .setting input[type=email],.media-sidebar .setting input[type=number],.media-sidebar .setting input[type=password],.media-sidebar .setting input[type=search],.media-sidebar .setting input[type=tel],.media-sidebar .setting input[type=text],.media-sidebar .setting input[type=url],.media-sidebar .setting select,.media-sidebar .setting textarea{float:none;width:98%;max-width:none;height:auto}.media-frame .media-toolbar input[type=search]{line-height:2.25}.attachment-details .setting select.columns,.media-sidebar .setting select.columns{width:auto}.media-frame .search,.media-frame input,.media-frame textarea{padding:3px 6px}.wp-admin .media-frame select{min-height:40px;font-size:16px;line-height:1.625;padding:5px 24px 5px 8px}.image-details .column-image{width:30%;left:70%}.image-details .column-settings{width:70%}.image-details .media-modal{left:30px;right:30px}.image-details .embed-media-settings .setting,.image-details .embed-media-settings .setting-group{margin:20px}.image-details .embed-media-settings .setting .name,.image-details .embed-media-settings .setting span{float:none;text-align:left;width:100%;margin-bottom:4px;margin-left:0}.media-modal .legend-inline{position:static;transform:none;margin-left:0;margin-bottom:6px}.image-details .embed-media-settings .setting-group .setting{margin-bottom:0}.image-details .embed-media-settings .setting input.link-to-custom,.image-details .embed-media-settings .setting input[type=text],.image-details .embed-media-settings .setting textarea{width:100%;margin-left:0}.image-details .embed-media-settings .setting.has-description{margin-bottom:5px}.image-details .description{width:auto;margin:0 20px}.image-details .embed-media-settings .custom-size{margin-left:20px}.collection-settings .setting input[type=checkbox]{float:none;margin-top:0}.media-selection{min-width:120px}.media-selection:after{background:0 0}.media-selection .attachments{display:none}.media-modal .attachments-browser .media-toolbar .search{max-width:100%;height:auto;float:right}.media-modal .attachments-browser .media-toolbar .attachment-filters{height:auto}.media-frame input[type=email],.media-frame input[type=number],.media-frame input[type=password],.media-frame input[type=search],.media-frame input[type=text],.media-frame input[type=url],.media-frame select,.media-frame textarea{font-size:16px;line-height:1.5}.media-frame .media-toolbar input[type=search]{line-height:2.3755}.media-modal .media-toolbar .spinner{margin-bottom:10px}}@media screen and (max-width:782px){.imgedit-panel-content{grid-template-columns:auto}.media-frame-toolbar .media-toolbar{bottom:-54px}.mode-grid .attachments-browser .media-toolbar-primary{display:flex}.mode-grid .attachments-browser .media-toolbar-primary input[type=search]{width:100%}.attachment-details .copy-to-clipboard-container .success,.media-sidebar .copy-to-clipboard-container .success{font-size:14px;line-height:2.71428571}.media-frame .wp-filter .media-toolbar-secondary{position:unset}.media-frame .media-toolbar-secondary .spinner{position:absolute;top:0;bottom:0;margin:auto;left:0;right:0;z-index:9}.media-bg-overlay{content:'';background:#fff;width:100%;height:100%;display:none;position:absolute;left:0;right:0;top:0;bottom:0;opacity:.6}}@media only screen and (max-width:640px),screen and (max-height:400px){.image-details .media-modal,.media-modal{position:fixed;top:0;left:0;right:0;bottom:0}.media-modal-backdrop{position:fixed}.options-general-php .crop-content.site-icon{margin-right:0}.media-sidebar{z-index:1900;max-width:70%;bottom:120%;box-sizing:border-box;padding-bottom:0}.media-sidebar.visible{bottom:0}.attachments-browser .attachments,.attachments-browser .media-toolbar,.attachments-browser .uploader-inline,.media-frame-content .attachments-browser .attachments-wrapper{right:0}.image-details .media-frame-title{display:block;top:0;font-size:14px}.image-details .column-image,.image-details .column-settings{width:100%;position:relative;left:0}.image-details .column-settings{padding:4px 0}.media-frame-content .media-toolbar .instructions{display:none}.load-more-wrapper .load-more-jump{margin:12px 0 0}}@media only screen and (min-width:901px) and (max-height:400px){.media-frame:not(.hide-menu) .media-menu,.media-menu{top:0;padding-top:44px}.load-more-wrapper .load-more-jump{margin:12px 0 0}}@media only screen and (max-width:480px){.wp-core-ui.wp-customizer .media-button{margin-top:13px}}@media print,(min-resolution:120dpi){.wp-core-ui .media-modal-icon{background-image:url(../images/uploader-icons-2x.png);background-size:134px 15px}.media-frame .spinner{background-image:url(../images/spinner-2x.gif)}}.media-frame-content[data-columns="1"] .attachment{width:100%}.media-frame-content[data-columns="2"] .attachment{width:50%}.media-frame-content[data-columns="3"] .attachment{width:33.33%}.media-frame-content[data-columns="4"] .attachment{width:25%}.media-frame-content[data-columns="5"] .attachment{width:20%}.media-frame-content[data-columns="6"] .attachment{width:16.66%}.media-frame-content[data-columns="7"] .attachment{width:14.28%}.media-frame-content[data-columns="8"] .attachment{width:12.5%}.media-frame-content[data-columns="9"] .attachment{width:11.11%}.media-frame-content[data-columns="10"] .attachment{width:10%}.media-frame-content[data-columns="11"] .attachment{width:9.09%}.media-frame-content[data-columns="12"] .attachment{width:8.33%} \ No newline at end of file
+ */.ui-draggable-handle,.ui-sortable-handle{touch-action:none}.media-modal{position:fixed;top:30px;left:30px;right:30px;bottom:30px;z-index:160000}.wp-customizer .media-modal{z-index:560000}.media-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:159900}.wp-customizer .media-modal-backdrop{z-index:559900}.media-modal-close{position:absolute;top:0;right:0;width:50px;height:50px;margin:0;padding:0;border:1px solid transparent;background:0 0;color:#646970;z-index:1000;cursor:pointer;outline:0;transition:color .1s ease-in-out,background .1s ease-in-out}.media-modal-close:active,.media-modal-close:hover{color:#135e96}.media-modal-close:focus{color:#135e96;border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8);outline:2px solid transparent}.media-modal-close span.media-modal-icon{background-image:none}.media-modal-close .media-modal-icon:before{content:"\f158";font:normal 20px/1 dashicons;speak:never;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.media-modal-content{position:absolute;top:0;left:0;right:0;bottom:0;overflow:auto;min-height:300px;box-shadow:0 5px 15px rgba(0,0,0,.7);background:#fff;-webkit-font-smoothing:subpixel-antialiased}.media-modal-content .media-frame select.attachment-filters{margin-top:32px;margin-right:2%;width:42%;width:calc(48% - 12px)}.wp-core-ui .media-modal-icon{background-image:url(../images/uploader-icons.png);background-repeat:no-repeat}.media-toolbar{position:absolute;top:0;left:0;right:0;z-index:100;height:60px;padding:0 16px;border:0 solid #dcdcde;overflow:hidden}.media-frame-toolbar .media-toolbar{top:auto;bottom:-47px;height:auto;overflow:visible;border-top:1px solid #dcdcde}.media-toolbar-primary{float:right;height:100%;position:relative}.media-toolbar-secondary{float:left;height:100%}.media-toolbar-primary>.media-button,.media-toolbar-primary>.media-button-group{margin-left:10px;float:left;margin-top:15px}.media-toolbar-secondary>.media-button,.media-toolbar-secondary>.media-button-group{margin-right:10px;margin-top:15px}.media-sidebar{position:absolute;top:0;right:0;bottom:0;width:267px;padding:0 16px;z-index:75;background:#f6f7f7;border-left:1px solid #dcdcde;overflow:auto;-webkit-overflow-scrolling:touch}.media-sidebar::after{content:"";display:flex;clear:both;height:24px}.hide-toolbar .media-sidebar{bottom:0}.image-details .media-embed h2,.media-sidebar h2{position:relative;font-weight:600;text-transform:uppercase;font-size:12px;color:#646970;margin:24px 0 8px}.attachment-details .setting,.media-sidebar .setting{display:block;float:left;width:100%;margin:0 0 10px}.attachment-details h2{display:grid;grid-template-columns:auto 5em}.media-sidebar .collection-settings .setting{margin:1px 0}.attachment-details .setting.has-description,.media-sidebar .setting.has-description{margin-bottom:5px}.media-sidebar .setting .link-to-custom{margin:3px 2px 0}.attachment-details .setting .name,.attachment-details .setting span,.media-sidebar .setting .name,.media-sidebar .setting .value,.media-sidebar .setting span{min-width:30%;margin-right:4%;font-size:12px;text-align:right;word-wrap:break-word}.media-sidebar .setting .name{max-width:80px}.media-sidebar .setting .value{text-align:left}.media-sidebar .setting select{max-width:65%}.attachment-details .field input[type=checkbox],.attachment-details .field input[type=radio],.attachment-details .setting input[type=checkbox],.attachment-details .setting input[type=radio],.media-sidebar .field input[type=checkbox],.media-sidebar .field input[type=radio],.media-sidebar .setting input[type=checkbox],.media-sidebar .setting input[type=radio]{float:none;margin:8px 3px 0;padding:0}.attachment-details .setting .name,.attachment-details .setting .value,.attachment-details .setting span,.compat-item label span,.media-sidebar .checkbox-label-inline,.media-sidebar .setting .name,.media-sidebar .setting .value,.media-sidebar .setting span{float:left;min-height:22px;padding-top:8px;line-height:1.33333333;font-weight:400;color:#646970}.media-sidebar .checkbox-label-inline{font-size:12px}.attachment-details .copy-to-clipboard-container,.media-sidebar .copy-to-clipboard-container{flex-wrap:wrap;margin-top:10px;margin-left:calc(35% - 1px);padding-top:10px}.attachment-details .attachment-info .copy-to-clipboard-container{float:none}.attachment-details .copy-to-clipboard-container .success,.media-sidebar .copy-to-clipboard-container .success{padding:0;min-height:0;line-height:2.18181818;text-align:left;color:#007017}.compat-item label span{text-align:right}.attachment-details .setting .value,.attachment-details .setting input[type=email],.attachment-details .setting input[type=number],.attachment-details .setting input[type=password],.attachment-details .setting input[type=search],.attachment-details .setting input[type=tel],.attachment-details .setting input[type=text],.attachment-details .setting input[type=url],.attachment-details .setting textarea,.attachment-details .setting+.description,.media-sidebar .setting .value,.media-sidebar .setting input[type=email],.media-sidebar .setting input[type=number],.media-sidebar .setting input[type=password],.media-sidebar .setting input[type=search],.media-sidebar .setting input[type=tel],.media-sidebar .setting input[type=text],.media-sidebar .setting input[type=url],.media-sidebar .setting textarea{box-sizing:border-box;margin:1px;width:65%;float:right}.attachment-details .setting .value,.attachment-details .setting+.description,.media-sidebar .setting .value{margin:0 1px;text-align:left}.attachment-details .setting+.description{clear:both;font-size:12px;font-style:normal;margin-bottom:10px}.attachment-details .setting textarea,.compat-item .field textarea,.media-sidebar .setting textarea{height:62px;resize:vertical}.alt-text textarea,.attachment-details .alt-text textarea,.compat-item .alt-text textarea,.media-sidebar .alt-text textarea{height:50px}.compat-item{float:left;width:100%;overflow:hidden}.compat-item table{width:100%;table-layout:fixed;border-spacing:0;border:0}.compat-item tr{padding:2px 0;display:block;overflow:hidden}.compat-item .field,.compat-item .label{display:block;margin:0;padding:0}.compat-item .label{min-width:30%;margin-right:4%;float:left;text-align:right}.compat-item .label span{display:block;width:100%}.compat-item .field{float:right;width:65%;margin:1px}.compat-item .field input[type=email],.compat-item .field input[type=number],.compat-item .field input[type=password],.compat-item .field input[type=search],.compat-item .field input[type=tel],.compat-item .field input[type=text],.compat-item .field input[type=url],.compat-item .field textarea{width:100%;margin:0;box-sizing:border-box}.sidebar-for-errors .attachment-details,.sidebar-for-errors .compat-item,.sidebar-for-errors .media-sidebar .media-progress-bar,.sidebar-for-errors .upload-details{display:none!important}.media-menu{position:absolute;top:0;left:0;right:0;bottom:0;margin:0;padding:50px 0 10px;background:#f6f7f7;border-right-width:1px;border-right-style:solid;border-right-color:#c3c4c7;-webkit-user-select:none;user-select:none}.media-menu .media-menu-item{display:block;box-sizing:border-box;width:100%;position:relative;border:0;margin:0;padding:8px 20px;font-size:14px;line-height:1.28571428;background:0 0;color:#2271b1;text-align:left;text-decoration:none;cursor:pointer}.media-menu .media-menu-item:hover{background:rgba(0,0,0,.04)}.media-menu .media-menu-item:active{color:#2271b1;outline:0}.media-menu .active,.media-menu .active:hover{color:#1d2327;font-weight:600}.media-menu .media-menu-item:focus{box-shadow:0 0 0 2px #2271b1;color:#043959;outline:2px solid transparent}.media-menu .separator{height:0;margin:12px 20px;padding:0;border-top:1px solid #dcdcde}.media-router{position:relative;padding:0 6px;margin:0;clear:both}.media-router .media-menu-item{position:relative;float:left;border:0;margin:0;padding:8px 10px 9px;height:18px;line-height:1.28571428;font-size:14px;text-decoration:none;background:0 0;cursor:pointer;transition:none}.media-router .media-menu-item:last-child{border-right:0}.media-router .media-menu-item:active,.media-router .media-menu-item:hover{color:#2271b1}.media-router .active,.media-router .active:hover{color:#1d2327}.media-router .media-menu-item:focus{box-shadow:0 0 0 2px #2271b1;color:#043959;outline:2px solid transparent}.media-router .active,.media-router .media-menu-item.active:last-child{margin:-1px -1px 0;background:#fff;border:1px solid #dcdcde;border-bottom:none}.media-router .active:after{display:none}.media-frame{overflow:hidden;position:absolute;top:0;left:0;right:0;bottom:0}.media-frame-menu{position:absolute;top:0;left:0;bottom:0;width:200px;z-index:150}.media-frame-title{position:absolute;top:0;left:200px;right:0;height:50px;z-index:200}.media-frame-router{position:absolute;top:50px;left:200px;right:0;height:36px;z-index:200}.media-frame-content{position:absolute;top:84px;left:200px;right:0;bottom:61px;height:auto;width:auto;margin:0;overflow:auto;background:#fff;border-top:1px solid #dcdcde}.media-frame-toolbar{position:absolute;left:200px;right:0;z-index:100;bottom:60px;height:auto}.media-frame.hide-menu .media-frame-content,.media-frame.hide-menu .media-frame-router,.media-frame.hide-menu .media-frame-title,.media-frame.hide-menu .media-frame-toolbar{left:0}.media-frame.hide-toolbar .media-frame-content{bottom:0}.media-frame.hide-router .media-frame-content{top:50px}.media-frame.hide-menu .media-frame-menu,.media-frame.hide-menu .media-frame-menu-heading,.media-frame.hide-router .media-frame-router,.media-frame.hide-toolbar .media-frame-toolbar{display:none}.media-frame-title h1{padding:0 16px;font-size:22px;line-height:2.27272727;margin:0}.media-attachments-filter-heading,.media-frame-menu-heading{position:absolute;left:20px;top:22px;margin:0;font-size:13px;line-height:1;z-index:151}.media-attachments-filter-heading{top:10px;left:16px}.mode-grid .media-attachments-filter-heading{top:0;left:-9999px}.mode-grid .media-frame-actions-heading{display:none}.wp-core-ui .button.media-frame-menu-toggle{display:none}.media-frame-title .suggested-dimensions{font-size:14px;float:right;margin-right:20px}.media-frame-content .crop-content{height:100%}.options-general-php .crop-content.site-icon,.wp-customizer:not(.mobile) .media-frame-content .crop-content.site-icon{margin-right:300px}.media-frame-content .crop-content .crop-image{display:block;margin:auto;max-width:100%;max-height:100%}.media-frame-content .crop-content .upload-errors{position:absolute;width:300px;top:50%;left:50%;margin-left:-150px;margin-right:-150px;z-index:600000}.media-frame .media-iframe{overflow:hidden}.media-frame .media-iframe,.media-frame .media-iframe iframe{height:100%;width:100%;border:0}.media-frame select.attachment-filters{margin-top:11px;margin-right:2%;max-width:42%;max-width:calc(48% - 12px)}.media-frame select.attachment-filters:last-of-type{margin-right:0}.media-frame .search{margin:32px 0 0;padding:4px;font-size:13px;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;-webkit-appearance:none}.media-toolbar-primary .search{max-width:100%}.media-modal .media-frame .media-search-input-label{position:absolute;left:0;top:10px;margin:0;line-height:1}.wp-core-ui .attachments{margin:0;-webkit-overflow-scrolling:touch}.wp-core-ui .attachment{position:relative;float:left;padding:8px;margin:0;color:#3c434a;cursor:pointer;list-style:none;text-align:center;-webkit-user-select:none;user-select:none;width:25%;box-sizing:border-box}.wp-core-ui .attachment.details:focus,.wp-core-ui .attachment:focus,.wp-core-ui .selected.attachment:focus{box-shadow:inset 0 0 2px 3px #fff,inset 0 0 0 7px #4f94d4;outline:2px solid transparent;outline-offset:-6px}.wp-core-ui .selected.attachment{box-shadow:inset 0 0 0 5px #fff,inset 0 0 0 7px #c3c4c7}.wp-core-ui .attachment.details{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #2271b1}.wp-core-ui .attachment-preview{position:relative;box-shadow:inset 0 0 15px rgba(0,0,0,.1),inset 0 0 0 1px rgba(0,0,0,.05);background:#f0f0f1;cursor:pointer}.wp-core-ui .attachment-preview:before{content:"";display:block;padding-top:100%}.wp-core-ui .attachment .icon{margin:0 auto;overflow:hidden}.wp-core-ui .attachment .thumbnail{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0;opacity:1;transition:opacity .1s}.wp-core-ui .attachment .portrait img{max-width:100%}.wp-core-ui .attachment .landscape img{max-height:100%}.wp-core-ui .attachment .thumbnail:after{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);overflow:hidden}.wp-core-ui .attachment .thumbnail img{top:0;left:0}.wp-core-ui .attachment .thumbnail .centered{position:absolute;top:0;left:0;width:100%;height:100%;transform:translate(50%,50%)}.wp-core-ui .attachment .thumbnail .centered img{transform:translate(-50%,-50%)}.wp-core-ui .attachments-browser .attachment .thumbnail .centered img.icon{transform:translate(-50%,-70%)}.wp-core-ui .attachment .filename{position:absolute;left:0;right:0;bottom:0;overflow:hidden;max-height:100%;word-wrap:break-word;text-align:center;font-weight:600;background:rgba(255,255,255,.8);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}.wp-core-ui .attachment .filename div{padding:5px 10px}.wp-core-ui .attachment .thumbnail img{position:absolute}.wp-core-ui .attachment-close{display:block;position:absolute;top:5px;right:5px;height:22px;width:22px;padding:0;background-color:#fff;background-position:-96px 4px;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.3);transition:none}.wp-core-ui .attachment-close:focus,.wp-core-ui .attachment-close:hover{background-position:-36px 4px}.wp-core-ui .attachment .check{display:none;height:24px;width:24px;padding:0;border:0;position:absolute;z-index:10;top:0;right:0;outline:0;background:#f0f0f1;cursor:pointer;box-shadow:0 0 0 1px #fff,0 0 0 2px rgba(0,0,0,.15)}.wp-core-ui .attachment .check .media-modal-icon{display:block;background-position:-1px 0;height:15px;width:15px;margin:5px}.wp-core-ui .attachment .check:hover .media-modal-icon{background-position:-40px 0}.wp-core-ui .attachment.selected .check{display:block}.wp-core-ui .attachment.details .check,.wp-core-ui .attachment.selected .check:focus,.wp-core-ui .media-frame.mode-grid .attachment.selected .check{background-color:#2271b1;box-shadow:0 0 0 1px #fff,0 0 0 2px #2271b1}.wp-core-ui .attachment.selected .check:focus{outline:2px solid transparent}.wp-core-ui .attachment.details .check .media-modal-icon,.wp-core-ui .media-frame.mode-grid .attachment.selected .check .media-modal-icon{background-position:-21px 0}.wp-core-ui .attachment.details .check:hover .media-modal-icon,.wp-core-ui .attachment.selected .check:focus .media-modal-icon,.wp-core-ui .media-frame.mode-grid .attachment.selected .check:hover .media-modal-icon{background-position:-60px 0}.wp-core-ui .media-frame .attachment .describe{position:relative;display:block;width:100%;margin:0;padding:0 8px;font-size:12px;border-radius:0}.media-frame .attachments-browser{position:relative;width:100%;height:100%;overflow:hidden}.attachments-browser .media-toolbar{right:300px;height:72px;background:#fff}.attachments-browser.hide-sidebar .media-toolbar{right:0}.attachments-browser .media-toolbar-primary>.media-button,.attachments-browser .media-toolbar-primary>.media-button-group,.attachments-browser .media-toolbar-secondary>.media-button,.attachments-browser .media-toolbar-secondary>.media-button-group{margin:10px 0}.attachments-browser .attachments{padding:2px 8px 8px}.attachments-browser .uploader-inline,.attachments-browser.has-load-more .attachments-wrapper,.attachments-browser:not(.has-load-more) .attachments{position:absolute;top:72px;left:0;right:300px;bottom:0;overflow:auto;outline:0}.attachments-browser .uploader-inline.hidden{display:none}.attachments-browser .media-toolbar-primary{max-width:33%}.mode-grid .attachments-browser .media-toolbar-primary{display:flex;align-items:center;column-gap:.5rem;margin:11px 0}.mode-grid .attachments-browser .media-toolbar-mode-select .media-toolbar-primary{display:none}.attachments-browser .media-toolbar-secondary{max-width:66%}.uploader-inline .close{background-color:transparent;border:0;cursor:pointer;height:48px;outline:0;padding:0;position:absolute;right:2px;text-align:center;top:2px;width:48px;z-index:1}.uploader-inline .close:before{font:normal 30px/1 dashicons!important;color:#50575e;display:inline-block;content:"\f335";font-weight:300;margin-top:1px}.uploader-inline .close:focus{outline:1px solid #4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8)}.attachments-browser.hide-sidebar .attachments,.attachments-browser.hide-sidebar .uploader-inline{right:0;margin-right:0}.attachments-browser .instructions{display:inline-block;margin-top:16px;line-height:1.38461538;font-size:13px;color:#646970}.attachments-browser .no-media{padding:2em 0 0 2em}.more-loaded .attachment:not(.found-media){background:#dcdcde}.load-more-wrapper{clear:both;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;padding:1em 0}.load-more-wrapper .load-more-count{min-width:100%;margin:0 0 1em;text-align:center}.load-more-wrapper .load-more{margin:0}.media-frame .load-more-wrapper .load-more+.spinner{float:none;margin:0 -30px 0 10px}.media-frame .load-more-wrapper .load-more.hidden+.spinner{margin:0}.load-more-wrapper::after{content:"";min-width:100%;order:1}.load-more-wrapper .load-more-jump{margin:0 0 0 12px}.attachment.new-media{outline:2px dotted #c3c4c7}.media-progress-bar{position:relative;height:10px;width:70%;margin:10px auto;border-radius:10px;background:#dcdcde;background:rgba(0,0,0,.1)}.media-progress-bar div{height:10px;min-width:20px;width:0;background:#2271b1;border-radius:10px;transition:width .3s}.media-uploader-status .media-progress-bar{display:none;width:100%}.uploading.media-uploader-status .media-progress-bar{display:block}.attachment-preview .media-progress-bar{position:absolute;top:50%;left:15%;width:70%;margin:-5px 0 0}.media-uploader-status{position:relative;margin:0 auto;padding-bottom:10px;max-width:400px}.uploader-inline .media-uploader-status h2{display:none}.media-uploader-status .upload-details{display:none;font-size:12px;color:#646970}.uploading.media-uploader-status .upload-details{display:block}.media-uploader-status .upload-detail-separator{padding:0 4px}.media-uploader-status .upload-count{color:#3c434a}.media-uploader-status .upload-dismiss-errors,.media-uploader-status .upload-errors{display:none}.errors.media-uploader-status .upload-dismiss-errors,.errors.media-uploader-status .upload-errors{display:block}.media-uploader-status .upload-dismiss-errors{transition:none;text-decoration:none}.upload-errors .upload-error{padding:12px;margin-bottom:12px;background:#fff;border-left:4px solid #d63638;box-shadow:0 1px 1px 0 rgba(0,0,0,.1)}.uploader-inline .upload-errors .upload-error{padding:12px 30px;background-color:#fcf0f1;box-shadow:none}.upload-errors .upload-error-filename{font-weight:600}.upload-errors .upload-error-message{display:block;padding-top:8px;word-wrap:break-word}.uploader-window,.wp-editor-wrap .uploader-editor{top:0;left:0;right:0;bottom:0;text-align:center;display:none}.uploader-window{position:fixed;z-index:250000;opacity:0;transition:opacity 250ms}.wp-editor-wrap .uploader-editor{position:absolute;z-index:99998;background:rgba(140,143,148,.9)}.uploader-window,.wp-editor-wrap .uploader-editor.droppable{background:rgba(10,75,120,.9)}.uploader-window-content,.wp-editor-wrap .uploader-editor-content{position:absolute;top:10px;left:10px;right:10px;bottom:10px;border:1px dashed #fff}.uploader-window .uploader-editor-title,.uploader-window h1,.wp-editor-wrap .uploader-editor .uploader-editor-title{position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);font-size:3em;line-height:1.3;font-weight:600;color:#fff;margin:0;padding:0 10px}.wp-editor-wrap .uploader-editor .uploader-editor-title{display:none}.wp-editor-wrap .uploader-editor.droppable .uploader-editor-title{display:block}.uploader-window .media-progress-bar{margin-top:20px;max-width:300px;background:0 0;border-color:#fff;display:none}.uploader-window .media-progress-bar div{background:#fff}.uploading .uploader-window .media-progress-bar{display:block}.media-frame .uploader-inline{margin-bottom:20px;padding:0;text-align:center}.uploader-inline-content{position:absolute;top:30%;left:0;right:0}.uploader-inline-content .upload-ui{margin:2em 0}.uploader-inline-content .post-upload-ui{margin-bottom:2em}.uploader-inline .has-upload-message .upload-ui{margin:0 0 4em}.uploader-inline h2{font-size:20px;line-height:1.4;font-weight:400;margin:0}.uploader-inline .has-upload-message .upload-instructions{font-size:14px;color:#3c434a;font-weight:400}.uploader-inline .drop-instructions{display:none}.supports-drag-drop .uploader-inline .drop-instructions{display:block}.uploader-inline p{margin:.5em 0}.uploader-inline .media-progress-bar{display:none}.uploading.uploader-inline .media-progress-bar{display:block}.uploader-inline .browser{display:inline-block!important}.media-selection{position:absolute;top:0;left:0;right:350px;height:60px;padding:0 0 0 16px;overflow:hidden;white-space:nowrap}.media-selection .selection-info{display:inline-block;font-size:12px;height:60px;margin-right:10px;vertical-align:top}.media-selection.editing,.media-selection.empty{display:none}.media-selection.one .edit-selection{display:none}.media-selection .count{display:block;padding-top:12px;font-size:14px;line-height:1.42857142;font-weight:600}.media-selection .button-link{float:left;padding:1px 8px;margin:1px 8px 1px -8px;line-height:1.4;border-right:1px solid #dcdcde;color:#2271b1;text-decoration:none}.media-selection .button-link:focus,.media-selection .button-link:hover{color:#135e96}.media-selection .button-link:last-child{border-right:0;margin-right:0}.selection-info .clear-selection{color:#d63638}.selection-info .clear-selection:focus,.selection-info .clear-selection:hover{color:#d63638}.media-selection .selection-view{display:inline-block;vertical-align:top}.media-selection .attachments{display:inline-block;height:48px;margin:6px;padding:0;overflow:hidden;vertical-align:top}.media-selection .attachment{width:40px;padding:0;margin:4px}.media-selection .attachment .thumbnail{top:0;right:0;bottom:0;left:0}.media-selection .attachment .icon{width:50%}.media-selection .attachment-preview{box-shadow:none;background:0 0}.wp-core-ui .media-selection .attachment.details:focus,.wp-core-ui .media-selection .attachment:focus,.wp-core-ui .media-selection .selected.attachment:focus{box-shadow:0 0 0 1px #fff,0 0 2px 3px #4f94d4;outline:2px solid transparent}.wp-core-ui .media-selection .selected.attachment{box-shadow:none}.wp-core-ui .media-selection .attachment.details{box-shadow:0 0 0 1px #fff,0 0 0 3px #2271b1}.media-selection:after{content:"";display:block;position:absolute;top:0;right:0;bottom:0;width:25px;background-image:linear-gradient(to left,#fff,rgba(255,255,255,0))}.media-selection .attachment .filename{display:none}.media-frame .spinner{background:url(../images/spinner.gif) no-repeat;background-size:20px 20px;float:right;display:inline-block;visibility:hidden;opacity:.7;width:20px;height:20px;margin:0;vertical-align:middle}.media-frame .media-sidebar .settings-save-status .spinner{position:absolute;right:0;top:0}.media-frame.mode-grid .spinner{margin:0;float:none;vertical-align:middle}.media-modal .media-toolbar .spinner{float:none;vertical-align:bottom;margin:0 0 5px 5px}.media-frame .instructions+.spinner.is-active{vertical-align:middle}.media-frame .spinner.is-active{visibility:visible}.attachment-details{position:relative;overflow:auto}.attachment-details .settings-save-status{text-align:right;text-transform:none;font-weight:400}.attachment-details .settings-save-status .spinner{float:none;margin-left:5px}.attachment-details .settings-save-status .saved{display:none}.attachment-details.save-waiting .settings-save-status .spinner{visibility:visible}.attachment-details.save-complete .settings-save-status .saved{display:inline-block}.attachment-info{overflow:hidden;min-height:60px;margin-bottom:16px;line-height:1.5;color:#646970;border-bottom:1px solid #dcdcde;padding-bottom:11px}.attachment-info .wp-media-wrapper{margin-bottom:8px}.attachment-info .wp-media-wrapper.wp-audio{margin-top:13px}.attachment-info .filename{font-weight:600;color:#3c434a;word-wrap:break-word}.attachment-info .thumbnail{position:relative;float:left;max-width:120px;max-height:120px;margin-top:5px;margin-right:10px;margin-bottom:5px}.uploading .attachment-info .thumbnail{width:120px;height:80px;box-shadow:inset 0 0 15px rgba(0,0,0,.1)}.uploading .attachment-info .media-progress-bar{margin-top:35px}.attachment-info .thumbnail-image:after{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);overflow:hidden}.attachment-info .thumbnail img{display:block;max-width:120px;max-height:120px;margin:0 auto}.attachment-info .details{float:left;font-size:12px;max-width:100%}.attachment-info .delete-attachment,.attachment-info .edit-attachment,.attachment-info .trash-attachment,.attachment-info .untrash-attachment{display:block;text-decoration:none;white-space:nowrap}.attachment-details.needs-refresh .attachment-info .edit-attachment{display:none}.attachment-info .edit-attachment{display:block}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment{display:inline;padding:0;color:#d63638}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover{color:#d63638}.attachment-display-settings{width:100%;float:left;overflow:hidden}.collection-settings{overflow:hidden}.collection-settings .setting input[type=checkbox]{float:left;margin-right:8px}.collection-settings .setting .name,.collection-settings .setting span{min-width:inherit}.media-modal .imgedit-wrap{position:static}.media-modal .imgedit-wrap .imgedit-panel-content{padding:16px 16px 0;overflow:visible}.media-modal .imgedit-wrap .imgedit-save-target{margin:8px 0 24px}.media-modal .imgedit-group{background:0 0;border:none;box-shadow:none;margin:0;padding:0;position:relative}.media-modal .imgedit-group.imgedit-panel-active{margin-bottom:16px;padding-bottom:16px}.media-modal .imgedit-group-top{margin:0}.media-modal .imgedit-group-top h2,.media-modal .imgedit-group-top h2 .button-link{display:inline-block;text-transform:uppercase;font-size:12px;color:#646970;margin:0;margin-top:3px}.media-modal .imgedit-group-top h2 .button-link,.media-modal .imgedit-group-top h2 a{text-decoration:none;color:#646970}.wp-core-ui.media-modal .image-editor .imgedit-help-toggle,.wp-core-ui.media-modal .image-editor .imgedit-help-toggle:active,.wp-core-ui.media-modal .image-editor .imgedit-help-toggle:hover{border:1px solid transparent;margin:0;padding:0;background:0 0;color:#2271b1;font-size:20px;line-height:1;cursor:pointer;box-sizing:content-box;box-shadow:none}.wp-core-ui.media-modal .image-editor .imgedit-help-toggle:focus{color:#2271b1;border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}.wp-core-ui.media-modal .imgedit-group-top .dashicons-arrow-down.imgedit-help-toggle{margin-top:-3px}.wp-core-ui.media-modal .image-editor h3 .imgedit-help-toggle{margin-top:-2px}.media-modal .imgedit-help-toggled span.dashicons:before{content:"\f142"}.media-modal .imgedit-thumbnail-preview{margin:10px 8px 0 0}.imgedit-thumbnail-preview-caption{display:block}.media-modal .imgedit-wrap .notice,.media-modal .imgedit-wrap div.updated{margin:0 16px}.embed-url{display:block;position:relative;padding:16px;margin:0;z-index:250;background:#fff;font-size:18px}.media-frame .embed-url input{font-size:18px;line-height:1.22222222;padding:12px 40px 12px 14px;width:100%;min-width:200px;box-shadow:inset 2px 2px 4px -2px rgba(0,0,0,.1)}.media-frame .embed-url input::-ms-clear{display:none}.media-frame .embed-url .spinner{position:absolute;top:32px;right:26px}.media-frame .embed-loading .embed-url .spinner{visibility:visible}.embed-link-settings,.embed-media-settings{position:absolute;top:82px;left:0;right:0;bottom:0;padding:0 16px;overflow:auto}.media-embed .embed-link-settings .link-text{margin-top:0}.embed-link-settings::after,.embed-media-settings::after{content:"";display:flex;clear:both;height:24px}.media-embed .embed-link-settings{overflow:visible}.embed-preview embed,.embed-preview iframe,.embed-preview img,.mejs-container video{max-width:100%;vertical-align:middle}.embed-preview a{display:inline-block}.embed-preview img{display:block;height:auto}.mejs-container:focus{outline:1px solid #2271b1;box-shadow:0 0 0 2px #2271b1}.image-details .media-modal{left:140px;right:140px}.image-details .media-frame-content,.image-details .media-frame-router,.image-details .media-frame-title{left:0}.image-details .embed-media-settings{top:0;overflow:visible;padding:0}.image-details .embed-media-settings::after{content:none}.image-details .embed-media-settings,.image-details .embed-media-settings div{box-sizing:border-box}.image-details .column-settings{background:#f6f7f7;border-right:1px solid #dcdcde;min-height:100%;width:55%;position:absolute;top:0;left:0}.image-details .column-settings h2{margin:20px;padding-top:20px;border-top:1px solid #dcdcde;color:#1d2327}.image-details .column-image{width:45%;position:absolute;left:55%;top:0}.image-details .image{margin:20px}.image-details .image img{max-width:100%;max-height:500px}.image-details .advanced-toggle{padding:0;color:#646970;text-transform:uppercase;text-decoration:none}.image-details .advanced-toggle:active,.image-details .advanced-toggle:hover{color:#646970}.image-details .advanced-toggle:after{font:normal 20px/1 dashicons;speak:never;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f140";display:inline-block;margin-top:-2px}.image-details .advanced-visible .advanced-toggle:after{content:"\f142"}.image-details .custom-size .custom-size-setting,.image-details .custom-size label{display:block;float:left}.image-details .custom-size .custom-size-setting label{float:none}.image-details .custom-size input{width:5em}.image-details .custom-size .sep{float:left;margin:26px 6px 0}.image-details .custom-size .description{margin-left:0}.media-embed .thumbnail{max-width:100%;max-height:200px;position:relative;float:left}.media-embed .thumbnail img{max-height:200px;display:block}.media-embed .thumbnail:after{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);overflow:hidden}.media-embed .setting,.media-embed .setting-group{width:100%;margin:10px 0;float:left;display:block;clear:both}.media-embed .setting-group .setting:not(.checkbox-setting){margin:0}.media-embed .setting.has-description{margin-bottom:5px}.media-embed .description{clear:both;font-style:normal}.media-embed .content-track+.description{line-height:1.4;max-width:none!important}.media-embed .remove-track{margin-bottom:10px}.image-details .embed-media-settings .setting,.image-details .embed-media-settings .setting-group{float:none;width:auto}.image-details .actions{margin:10px 0}.image-details .hidden{display:none}.media-embed .setting input[type=text],.media-embed .setting textarea,.media-embed fieldset{display:block;width:100%;max-width:400px}.image-details .embed-media-settings .setting input[type=text],.image-details .embed-media-settings .setting textarea{max-width:inherit;width:70%}.image-details .description,.image-details .embed-media-settings .custom-size,.image-details .embed-media-settings .link-target,.image-details .embed-media-settings .setting input.link-to-custom,.image-details .embed-media-settings .setting-group{margin-left:27%;width:70%}.image-details .description{font-style:normal;margin-top:0}.image-details .embed-media-settings .link-target{margin-top:16px}.audio-details .checkbox-label,.image-details .checkbox-label,.video-details .checkbox-label{vertical-align:baseline}.media-embed .setting input.hidden,.media-embed .setting textarea.hidden{display:none}.media-embed .setting .name,.media-embed .setting span,.media-embed .setting-group .name{display:inline-block;font-size:13px;line-height:1.84615384;color:#646970}.media-embed .setting span{display:block;width:200px}.image-details .embed-media-settings .setting .name,.image-details .embed-media-settings .setting span{float:left;width:25%;text-align:right;margin:8px 1% 0;line-height:1.1}.image-details .embed-media-settings .setting .button-group,.media-frame .setting-group .button-group{width:auto}.media-embed-sidebar{position:absolute;top:0;left:440px}.advanced-section,.link-settings{margin-top:10px}.media-frame .setting .button-group{display:flex;margin:0!important;max-width:none!important}.rtl .media-frame,.rtl .media-frame .search,.rtl .media-frame input[type=email],.rtl .media-frame input[type=number],.rtl .media-frame input[type=password],.rtl .media-frame input[type=search],.rtl .media-frame input[type=tel],.rtl .media-frame input[type=text],.rtl .media-frame input[type=url],.rtl .media-frame select,.rtl .media-frame textarea,.rtl .media-modal{font-family:Tahoma,sans-serif}:lang(he-il) .rtl .media-frame,:lang(he-il) .rtl .media-frame .search,:lang(he-il) .rtl .media-frame input[type=email],:lang(he-il) .rtl .media-frame input[type=number],:lang(he-il) .rtl .media-frame input[type=password],:lang(he-il) .rtl .media-frame input[type=search],:lang(he-il) .rtl .media-frame input[type=text],:lang(he-il) .rtl .media-frame input[type=url],:lang(he-il) .rtl .media-frame select,:lang(he-il) .rtl .media-frame textarea,:lang(he-il) .rtl .media-modal{font-family:Arial,sans-serif}@media only screen and (max-width:900px){.media-modal .media-frame-title{height:40px}.media-modal .media-frame-title h1{line-height:2.22222222;font-size:18px}.media-modal-close{width:42px;height:42px}.media-frame .media-frame-title{position:static;padding:0 44px;text-align:center}.media-frame:not(.hide-menu) .media-frame-content,.media-frame:not(.hide-menu) .media-frame-router,.media-frame:not(.hide-menu) .media-frame-toolbar{left:0}.media-frame:not(.hide-menu) .media-frame-router{top:80px}.media-frame:not(.hide-menu) .media-frame-content{top:114px}.media-frame.hide-router .media-frame-content{top:80px}.media-frame:not(.hide-menu) .media-frame-menu{position:static;width:0}.media-frame:not(.hide-menu) .media-menu{display:none;width:auto;max-width:80%;overflow:auto;z-index:2000;top:75px;left:50%;transform:translateX(-50%);right:auto;bottom:auto;padding:5px 0;border:1px solid #c3c4c7}.media-frame:not(.hide-menu) .media-menu.visible{display:block}.media-frame:not(.hide-menu) .media-menu>a{padding:12px 16px;font-size:16px}.media-frame:not(.hide-menu) .media-menu .separator{margin:5px 10px}.media-frame-menu-heading{clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;overflow:hidden;padding:0;width:1px;word-wrap:normal!important}.wp-core-ui .media-frame:not(.hide-menu) .button.media-frame-menu-toggle{display:inline-flex;align-items:center;position:absolute;left:50%;transform:translateX(-50%);margin:-6px 0 0;padding:0 2px 0 12px;font-size:.875rem;font-weight:600;text-decoration:none;background:0 0;height:.1%;min-height:40px}.wp-core-ui .button.media-frame-menu-toggle:active,.wp-core-ui .button.media-frame-menu-toggle:hover{background:0 0;transform:none}.wp-core-ui .button.media-frame-menu-toggle:focus{outline:1px solid transparent}.media-sidebar{width:230px}.options-general-php .crop-content.site-icon{margin-right:262px}.attachments-browser .attachments,.attachments-browser .attachments-wrapper,.attachments-browser .media-toolbar,.attachments-browser .uploader-inline,.attachments-browser.has-load-more .attachments-wrapper{right:262px}.attachments-browser .media-toolbar{height:82px}.attachments-browser .attachments,.attachments-browser .uploader-inline,.media-frame-content .attachments-browser .attachments-wrapper{top:82px}.attachment-details .setting,.media-sidebar .setting{margin:6px 0}.attachment-details .setting .name,.attachment-details .setting input,.attachment-details .setting textarea,.compat-item label span,.media-sidebar .setting .name,.media-sidebar .setting input,.media-sidebar .setting textarea{float:none;display:inline-block}.attachment-details .setting span,.media-sidebar .checkbox-label-inline,.media-sidebar .setting span{float:none}.media-sidebar .setting .select-label-inline{display:inline}.attachment-details .setting .name,.compat-item label span,.media-sidebar .checkbox-label-inline,.media-sidebar .setting .name{text-align:inherit;min-height:16px;margin:0;padding:8px 2px 2px}.attachment-details .attachment-info .copy-to-clipboard-container,.media-sidebar .setting .copy-to-clipboard-container{margin-left:0;padding-top:0}.attachment-details .attachment-info .copy-attachment-url,.media-sidebar .setting .copy-attachment-url{margin:0 1px}.attachment-details .setting .value,.media-sidebar .setting .value{float:none;width:auto}.attachment-details .setting input[type=email],.attachment-details .setting input[type=number],.attachment-details .setting input[type=password],.attachment-details .setting input[type=search],.attachment-details .setting input[type=tel],.attachment-details .setting input[type=text],.attachment-details .setting input[type=url],.attachment-details .setting select,.attachment-details .setting textarea,.attachment-details .setting+.description,.media-sidebar .setting input[type=email],.media-sidebar .setting input[type=number],.media-sidebar .setting input[type=password],.media-sidebar .setting input[type=search],.media-sidebar .setting input[type=tel],.media-sidebar .setting input[type=text],.media-sidebar .setting input[type=url],.media-sidebar .setting select,.media-sidebar .setting textarea{float:none;width:98%;max-width:none;height:auto}.media-frame .media-toolbar input[type=search]{line-height:2.25}.attachment-details .setting select.columns,.media-sidebar .setting select.columns{width:auto}.media-frame .search,.media-frame input,.media-frame textarea{padding:3px 6px}.wp-admin .media-frame select{min-height:40px;font-size:16px;line-height:1.625;padding:5px 24px 5px 8px}.image-details .column-image{width:30%;left:70%}.image-details .column-settings{width:70%}.image-details .media-modal{left:30px;right:30px}.image-details .embed-media-settings .setting,.image-details .embed-media-settings .setting-group{margin:20px}.image-details .embed-media-settings .setting .name,.image-details .embed-media-settings .setting span{float:none;text-align:left;width:100%;margin-bottom:4px;margin-left:0}.media-modal .legend-inline{position:static;transform:none;margin-left:0;margin-bottom:6px}.image-details .embed-media-settings .setting-group .setting{margin-bottom:0}.image-details .embed-media-settings .setting input.link-to-custom,.image-details .embed-media-settings .setting input[type=text],.image-details .embed-media-settings .setting textarea{width:100%;margin-left:0}.image-details .embed-media-settings .setting.has-description{margin-bottom:5px}.image-details .description{width:auto;margin:0 20px}.image-details .embed-media-settings .custom-size{margin-left:20px}.collection-settings .setting input[type=checkbox]{float:none;margin-top:0}.media-selection{min-width:120px}.media-selection:after{background:0 0}.media-selection .attachments{display:none}.media-modal .attachments-browser .media-toolbar .search{max-width:100%;height:auto;float:right}.media-modal .attachments-browser .media-toolbar .attachment-filters{height:auto}.media-frame input[type=email],.media-frame input[type=number],.media-frame input[type=password],.media-frame input[type=search],.media-frame input[type=text],.media-frame input[type=url],.media-frame select,.media-frame textarea{font-size:16px;line-height:1.5}.media-frame .media-toolbar input[type=search]{line-height:2.3755}.media-modal .media-toolbar .spinner{margin-bottom:10px}}@media screen and (max-width:782px){.imgedit-panel-content{grid-template-columns:auto}.media-frame-toolbar .media-toolbar{bottom:-54px}.mode-grid .attachments-browser .media-toolbar-primary{display:grid;grid-template-columns:auto 1fr}.mode-grid .attachments-browser .media-toolbar-primary input[type=search]{width:100%}.attachment-details .copy-to-clipboard-container .success,.media-sidebar .copy-to-clipboard-container .success{font-size:14px;line-height:2.71428571}.media-frame .wp-filter .media-toolbar-secondary{position:unset}.media-frame .media-toolbar-secondary .spinner{position:absolute;top:0;bottom:0;margin:auto;left:0;right:0;z-index:9}.media-bg-overlay{content:'';background:#fff;width:100%;height:100%;display:none;position:absolute;left:0;right:0;top:0;bottom:0;opacity:.6}}@media only screen and (max-width:640px),screen and (max-height:400px){.image-details .media-modal,.media-modal{position:fixed;top:0;left:0;right:0;bottom:0}.media-modal-backdrop{position:fixed}.options-general-php .crop-content.site-icon{margin-right:0}.media-sidebar{z-index:1900;max-width:70%;bottom:120%;box-sizing:border-box;padding-bottom:0}.media-sidebar.visible{bottom:0}.attachments-browser .attachments,.attachments-browser .media-toolbar,.attachments-browser .uploader-inline,.media-frame-content .attachments-browser .attachments-wrapper{right:0}.image-details .media-frame-title{display:block;top:0;font-size:14px}.image-details .column-image,.image-details .column-settings{width:100%;position:relative;left:0}.image-details .column-settings{padding:4px 0}.media-frame-content .media-toolbar .instructions{display:none}.load-more-wrapper .load-more-jump{margin:12px 0 0}}@media only screen and (min-width:901px) and (max-height:400px){.media-frame:not(.hide-menu) .media-menu,.media-menu{top:0;padding-top:44px}.load-more-wrapper .load-more-jump{margin:12px 0 0}}@media only screen and (max-width:480px){.wp-core-ui.wp-customizer .media-button{margin-top:13px}}@media print,(min-resolution:120dpi){.wp-core-ui .media-modal-icon{background-image:url(../images/uploader-icons-2x.png);background-size:134px 15px}.media-frame .spinner{background-image:url(../images/spinner-2x.gif)}}.media-frame-content[data-columns="1"] .attachment{width:100%}.media-frame-content[data-columns="2"] .attachment{width:50%}.media-frame-content[data-columns="3"] .attachment{width:33.33%}.media-frame-content[data-columns="4"] .attachment{width:25%}.media-frame-content[data-columns="5"] .attachment{width:20%}.media-frame-content[data-columns="6"] .attachment{width:16.66%}.media-frame-content[data-columns="7"] .attachment{width:14.28%}.media-frame-content[data-columns="8"] .attachment{width:12.5%}.media-frame-content[data-columns="9"] .attachment{width:11.11%}.media-frame-content[data-columns="10"] .attachment{width:10%}.media-frame-content[data-columns="11"] .attachment{width:9.09%}.media-frame-content[data-columns="12"] .attachment{width:8.33%} \ No newline at end of file
diff --git a/wp-includes/css/wp-embed-template.css b/wp-includes/css/wp-embed-template.css
index 6b1ca43..d6e4a7c 100644
--- a/wp-includes/css/wp-embed-template.css
+++ b/wp-includes/css/wp-embed-template.css
@@ -11,7 +11,6 @@ body {
.screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
- -webkit-clip-path: inset(50%);
clip-path: inset(50%);
height: 1px;
margin: -1px;
@@ -320,7 +319,6 @@ textarea.wp-embed-share-input {
html[dir="rtl"] .wp-embed-featured-image.square {
float: right;
margin-right: 0;
-
margin-left: 20px;
}
@@ -340,9 +338,6 @@ html[dir="rtl"] .wp-embed-meta {
text-align: left;
}
-html[dir="rtl"] .wp-embed-footer {
-}
-
html[dir="rtl"] .wp-embed-share {
margin-left: 0;
margin-right: 10px;
diff --git a/wp-includes/css/wp-embed-template.min.css b/wp-includes/css/wp-embed-template.min.css
index 2042a68..329fb89 100644
--- a/wp-includes/css/wp-embed-template.min.css
+++ b/wp-includes/css/wp-embed-template.min.css
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-body,html{padding:0;margin:0}body{font-family:sans-serif}.screen-reader-text{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}.dashicons{display:inline-block;width:20px;height:20px;background-color:transparent;background-repeat:no-repeat;background-size:20px;background-position:center;transition:background .1s ease-in;position:relative;top:5px}.dashicons-no{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M15.55%2013.7l-2.19%202.06-3.42-3.65-3.64%203.43-2.06-2.18%203.64-3.43-3.42-3.64%202.18-2.06%203.43%203.64%203.64-3.42%202.05%202.18-3.64%203.43z%27%20fill%3D%27%23fff%27%2F%3E%3C%2Fsvg%3E")}.dashicons-admin-comments{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M5%202h9q.82%200%201.41.59T16%204v7q0%20.82-.59%201.41T14%2013h-2l-5%205v-5H5q-.82%200-1.41-.59T3%2011V4q0-.82.59-1.41T5%202z%27%20fill%3D%27%2382878c%27%2F%3E%3C%2Fsvg%3E")}.wp-embed-comments a:hover .dashicons-admin-comments{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M5%202h9q.82%200%201.41.59T16%204v7q0%20.82-.59%201.41T14%2013h-2l-5%205v-5H5q-.82%200-1.41-.59T3%2011V4q0-.82.59-1.41T5%202z%27%20fill%3D%27%230073aa%27%2F%3E%3C%2Fsvg%3E")}.dashicons-share{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.5%2012q1.24%200%202.12.88T17.5%2015t-.88%202.12-2.12.88-2.12-.88T11.5%2015q0-.34.09-.69l-4.38-2.3Q6.32%2013%205%2013q-1.24%200-2.12-.88T2%2010t.88-2.12T5%207q1.3%200%202.21.99l4.38-2.3q-.09-.35-.09-.69%200-1.24.88-2.12T14.5%202t2.12.88T17.5%205t-.88%202.12T14.5%208q-1.3%200-2.21-.99l-4.38%202.3Q8%209.66%208%2010t-.09.69l4.38%202.3q.89-.99%202.21-.99z%27%20fill%3D%27%2382878c%27%2F%3E%3C%2Fsvg%3E");display:none}.js .dashicons-share{display:inline-block}.wp-embed-share-dialog-open:hover .dashicons-share{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.5%2012q1.24%200%202.12.88T17.5%2015t-.88%202.12-2.12.88-2.12-.88T11.5%2015q0-.34.09-.69l-4.38-2.3Q6.32%2013%205%2013q-1.24%200-2.12-.88T2%2010t.88-2.12T5%207q1.3%200%202.21.99l4.38-2.3q-.09-.35-.09-.69%200-1.24.88-2.12T14.5%202t2.12.88T17.5%205t-.88%202.12T14.5%208q-1.3%200-2.21-.99l-4.38%202.3Q8%209.66%208%2010t-.09.69l4.38%202.3q.89-.99%202.21-.99z%27%20fill%3D%27%230073aa%27%2F%3E%3C%2Fsvg%3E")}.wp-embed{padding:25px;font-size:14px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:1.5;color:#8c8f94;background:#fff;border:1px solid #dcdcde;box-shadow:0 1px 1px rgba(0,0,0,.05);overflow:auto;zoom:1}.wp-embed a{color:#8c8f94;text-decoration:none}.wp-embed a:hover{text-decoration:underline}.wp-embed-featured-image{margin-bottom:20px}.wp-embed-featured-image img{width:100%;height:auto;border:none}.wp-embed-featured-image.square{float:left;max-width:160px;margin-right:20px}.wp-embed p{margin:0}p.wp-embed-heading{margin:0 0 15px;font-weight:600;font-size:22px;line-height:1.3}.wp-embed-heading a{color:#2c3338}.wp-embed .wp-embed-more{color:#c3c4c7}.wp-embed-footer{display:table;width:100%;margin-top:30px}.wp-embed-site-icon{position:absolute;top:50%;left:0;transform:translateY(-50%);height:25px;width:25px;border:0}.wp-embed-site-title{font-weight:600;line-height:1.78571428}.wp-embed-site-title a{position:relative;display:inline-block;padding-left:35px}.wp-embed-meta,.wp-embed-site-title{display:table-cell}.wp-embed-meta{text-align:right;white-space:nowrap;vertical-align:middle}.wp-embed-comments,.wp-embed-share{display:inline}.wp-embed-meta a:hover{text-decoration:none;color:#2271b1}.wp-embed-comments a{line-height:1.78571428;display:inline-block}.wp-embed-comments+.wp-embed-share{margin-left:10px}.wp-embed-share-dialog{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#1d2327;background-color:rgba(0,0,0,.9);color:#fff;opacity:1;transition:opacity .25s ease-in-out}.wp-embed-share-dialog.hidden{opacity:0;visibility:hidden}.wp-embed-share-dialog-close,.wp-embed-share-dialog-open{margin:-8px 0 0;padding:0;background:0 0;border:none;cursor:pointer;outline:0}.wp-embed-share-dialog-close .dashicons,.wp-embed-share-dialog-open .dashicons{padding:4px}.wp-embed-share-dialog-open .dashicons{top:8px}.wp-embed-share-dialog-close:focus .dashicons,.wp-embed-share-dialog-open:focus .dashicons{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent;border-radius:100%}.wp-embed-share-dialog-close{position:absolute;top:20px;right:20px;font-size:22px}.wp-embed-share-dialog-close:hover{text-decoration:none}.wp-embed-share-dialog-close .dashicons{height:24px;width:24px;background-size:24px}.wp-embed-share-dialog-content{height:100%;transform-style:preserve-3d;overflow:hidden}.wp-embed-share-dialog-text{margin-top:25px;padding:20px}.wp-embed-share-tabs{margin:0 0 20px;padding:0;list-style:none}.wp-embed-share-tab-button{display:inline-block}.wp-embed-share-tab-button button{margin:0;padding:0;border:none;background:0 0;font-size:16px;line-height:1.3;color:#a7aaad;cursor:pointer;transition:color .1s ease-in}.wp-embed-share-tab-button [aria-selected=true]{color:#fff}.wp-embed-share-tab-button button:hover{color:#fff}.wp-embed-share-tab-button+.wp-embed-share-tab-button{margin:0 0 0 10px;padding:0 0 0 11px;border-left:1px solid #a7aaad}.wp-embed-share-tab[aria-hidden=true]{display:none}p.wp-embed-share-description{margin:0;font-size:14px;line-height:1;font-style:italic;color:#a7aaad}.wp-embed-share-input{box-sizing:border-box;width:100%;border:none;height:28px;margin:0 0 10px;padding:0 5px;font-size:14px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:1.5;resize:none;cursor:text}textarea.wp-embed-share-input{height:72px}html[dir=rtl] .wp-embed-featured-image.square{float:right;margin-right:0;margin-left:20px}html[dir=rtl] .wp-embed-site-title a{padding-left:0;padding-right:35px}html[dir=rtl] .wp-embed-site-icon{margin-right:0;margin-left:10px;left:auto;right:0}html[dir=rtl] .wp-embed-meta{text-align:left}html[dir=rtl] .wp-embed-share{margin-left:0;margin-right:10px}html[dir=rtl] .wp-embed-share-dialog-close{right:auto;left:20px}html[dir=rtl] .wp-embed-share-tab-button+.wp-embed-share-tab-button{margin:0 10px 0 0;padding:0 11px 0 0;border-left:none;border-right:1px solid #a7aaad} \ No newline at end of file
+body,html{padding:0;margin:0}body{font-family:sans-serif}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.dashicons{display:inline-block;width:20px;height:20px;background-color:transparent;background-repeat:no-repeat;background-size:20px;background-position:center;transition:background .1s ease-in;position:relative;top:5px}.dashicons-no{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M15.55%2013.7l-2.19%202.06-3.42-3.65-3.64%203.43-2.06-2.18%203.64-3.43-3.42-3.64%202.18-2.06%203.43%203.64%203.64-3.42%202.05%202.18-3.64%203.43z%27%20fill%3D%27%23fff%27%2F%3E%3C%2Fsvg%3E")}.dashicons-admin-comments{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M5%202h9q.82%200%201.41.59T16%204v7q0%20.82-.59%201.41T14%2013h-2l-5%205v-5H5q-.82%200-1.41-.59T3%2011V4q0-.82.59-1.41T5%202z%27%20fill%3D%27%2382878c%27%2F%3E%3C%2Fsvg%3E")}.wp-embed-comments a:hover .dashicons-admin-comments{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M5%202h9q.82%200%201.41.59T16%204v7q0%20.82-.59%201.41T14%2013h-2l-5%205v-5H5q-.82%200-1.41-.59T3%2011V4q0-.82.59-1.41T5%202z%27%20fill%3D%27%230073aa%27%2F%3E%3C%2Fsvg%3E")}.dashicons-share{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.5%2012q1.24%200%202.12.88T17.5%2015t-.88%202.12-2.12.88-2.12-.88T11.5%2015q0-.34.09-.69l-4.38-2.3Q6.32%2013%205%2013q-1.24%200-2.12-.88T2%2010t.88-2.12T5%207q1.3%200%202.21.99l4.38-2.3q-.09-.35-.09-.69%200-1.24.88-2.12T14.5%202t2.12.88T17.5%205t-.88%202.12T14.5%208q-1.3%200-2.21-.99l-4.38%202.3Q8%209.66%208%2010t-.09.69l4.38%202.3q.89-.99%202.21-.99z%27%20fill%3D%27%2382878c%27%2F%3E%3C%2Fsvg%3E");display:none}.js .dashicons-share{display:inline-block}.wp-embed-share-dialog-open:hover .dashicons-share{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.5%2012q1.24%200%202.12.88T17.5%2015t-.88%202.12-2.12.88-2.12-.88T11.5%2015q0-.34.09-.69l-4.38-2.3Q6.32%2013%205%2013q-1.24%200-2.12-.88T2%2010t.88-2.12T5%207q1.3%200%202.21.99l4.38-2.3q-.09-.35-.09-.69%200-1.24.88-2.12T14.5%202t2.12.88T17.5%205t-.88%202.12T14.5%208q-1.3%200-2.21-.99l-4.38%202.3Q8%209.66%208%2010t-.09.69l4.38%202.3q.89-.99%202.21-.99z%27%20fill%3D%27%230073aa%27%2F%3E%3C%2Fsvg%3E")}.wp-embed{padding:25px;font-size:14px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:1.5;color:#8c8f94;background:#fff;border:1px solid #dcdcde;box-shadow:0 1px 1px rgba(0,0,0,.05);overflow:auto;zoom:1}.wp-embed a{color:#8c8f94;text-decoration:none}.wp-embed a:hover{text-decoration:underline}.wp-embed-featured-image{margin-bottom:20px}.wp-embed-featured-image img{width:100%;height:auto;border:none}.wp-embed-featured-image.square{float:left;max-width:160px;margin-right:20px}.wp-embed p{margin:0}p.wp-embed-heading{margin:0 0 15px;font-weight:600;font-size:22px;line-height:1.3}.wp-embed-heading a{color:#2c3338}.wp-embed .wp-embed-more{color:#c3c4c7}.wp-embed-footer{display:table;width:100%;margin-top:30px}.wp-embed-site-icon{position:absolute;top:50%;left:0;transform:translateY(-50%);height:25px;width:25px;border:0}.wp-embed-site-title{font-weight:600;line-height:1.78571428}.wp-embed-site-title a{position:relative;display:inline-block;padding-left:35px}.wp-embed-meta,.wp-embed-site-title{display:table-cell}.wp-embed-meta{text-align:right;white-space:nowrap;vertical-align:middle}.wp-embed-comments,.wp-embed-share{display:inline}.wp-embed-meta a:hover{text-decoration:none;color:#2271b1}.wp-embed-comments a{line-height:1.78571428;display:inline-block}.wp-embed-comments+.wp-embed-share{margin-left:10px}.wp-embed-share-dialog{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#1d2327;background-color:rgba(0,0,0,.9);color:#fff;opacity:1;transition:opacity .25s ease-in-out}.wp-embed-share-dialog.hidden{opacity:0;visibility:hidden}.wp-embed-share-dialog-close,.wp-embed-share-dialog-open{margin:-8px 0 0;padding:0;background:0 0;border:none;cursor:pointer;outline:0}.wp-embed-share-dialog-close .dashicons,.wp-embed-share-dialog-open .dashicons{padding:4px}.wp-embed-share-dialog-open .dashicons{top:8px}.wp-embed-share-dialog-close:focus .dashicons,.wp-embed-share-dialog-open:focus .dashicons{box-shadow:0 0 0 2px #2271b1;outline:2px solid transparent;border-radius:100%}.wp-embed-share-dialog-close{position:absolute;top:20px;right:20px;font-size:22px}.wp-embed-share-dialog-close:hover{text-decoration:none}.wp-embed-share-dialog-close .dashicons{height:24px;width:24px;background-size:24px}.wp-embed-share-dialog-content{height:100%;transform-style:preserve-3d;overflow:hidden}.wp-embed-share-dialog-text{margin-top:25px;padding:20px}.wp-embed-share-tabs{margin:0 0 20px;padding:0;list-style:none}.wp-embed-share-tab-button{display:inline-block}.wp-embed-share-tab-button button{margin:0;padding:0;border:none;background:0 0;font-size:16px;line-height:1.3;color:#a7aaad;cursor:pointer;transition:color .1s ease-in}.wp-embed-share-tab-button [aria-selected=true]{color:#fff}.wp-embed-share-tab-button button:hover{color:#fff}.wp-embed-share-tab-button+.wp-embed-share-tab-button{margin:0 0 0 10px;padding:0 0 0 11px;border-left:1px solid #a7aaad}.wp-embed-share-tab[aria-hidden=true]{display:none}p.wp-embed-share-description{margin:0;font-size:14px;line-height:1;font-style:italic;color:#a7aaad}.wp-embed-share-input{box-sizing:border-box;width:100%;border:none;height:28px;margin:0 0 10px;padding:0 5px;font-size:14px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:1.5;resize:none;cursor:text}textarea.wp-embed-share-input{height:72px}html[dir=rtl] .wp-embed-featured-image.square{float:right;margin-right:0;margin-left:20px}html[dir=rtl] .wp-embed-site-title a{padding-left:0;padding-right:35px}html[dir=rtl] .wp-embed-site-icon{margin-right:0;margin-left:10px;left:auto;right:0}html[dir=rtl] .wp-embed-meta{text-align:left}html[dir=rtl] .wp-embed-share{margin-left:0;margin-right:10px}html[dir=rtl] .wp-embed-share-dialog-close{right:auto;left:20px}html[dir=rtl] .wp-embed-share-tab-button+.wp-embed-share-tab-button{margin:0 10px 0 0;padding:0 11px 0 0;border-left:none;border-right:1px solid #a7aaad} \ No newline at end of file
diff --git a/wp-includes/customize/class-wp-customize-nav-menu-item-control.php b/wp-includes/customize/class-wp-customize-nav-menu-item-control.php
index 8915824..2b28e48 100644
--- a/wp-includes/customize/class-wp-customize-nav-menu-item-control.php
+++ b/wp-includes/customize/class-wp-customize-nav-menu-item-control.php
@@ -77,10 +77,22 @@ class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control {
</span>
<span class="item-controls">
<button type="button" class="button-link item-edit" aria-expanded="false"><span class="screen-reader-text">
- <?php
- /* translators: 1: Title of a menu item, 2: Type of a menu item. */
- printf( __( 'Edit menu item: %1$s (%2$s)' ), '{{ data.title || data.original_title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.item_type_label }}' );
- ?>
+ <# if ( 0 === data.depth ) { #>
+ <?php
+ /* translators: 1: Title of a menu item, 2: Type of a menu item. 3: Item index, 4: Total items. */
+ printf( __( 'Edit %1$s (%2$s, %3$d of %4$d)' ), '{{ data.title || data.original_title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.item_type_label }}', '', '' );
+ ?>
+ <# } else if ( 1 === data.depth ) { #>
+ <?php
+ /* translators: 1: Title of a menu item, 2: Type of a menu item, 3, Item index, 4, Total items, 5: Item parent. */
+ printf( __( 'Edit %1$s (%2$s, sub-item %3$d of %4$d under %5$s)' ), '{{ data.title || data.original_title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.item_type_label }}', '', '', '' );
+ ?>
+ <# } else { #>
+ <?php
+ /* translators: 1: Title of a menu item, 2: Type of a menu item, 3, Item index, 4, Total items, 5: Item parent, 6: Item depth. */
+ printf( __( 'Edit %1$s (%2$s, sub-item %3$d of %4$d under %5$s, level %6$s)' ), '{{ data.title || data.original_title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.item_type_label }}', '', '', '', '{{data.depth}}' );
+ ?>
+ <# } #>
</span><span class="toggle-indicator" aria-hidden="true"></span></button>
<button type="button" class="button-link item-delete submitdelete deletion"><span class="screen-reader-text">
<?php
diff --git a/wp-includes/customize/class-wp-customize-themes-section.php b/wp-includes/customize/class-wp-customize-themes-section.php
index 9d33a68..5340734 100644
--- a/wp-includes/customize/class-wp-customize-themes-section.php
+++ b/wp-includes/customize/class-wp-customize-themes-section.php
@@ -124,21 +124,35 @@ class WP_Customize_Themes_Section extends WP_Customize_Section {
<button type="button" class="button button-primary customize-section-back customize-themes-mobile-back"><?php _e( 'Go to theme sources' ); ?></button>
<# if ( 'wporg' === data.action ) { #>
<div class="search-form">
- <label for="wp-filter-search-input-{{ data.id }}" class="screen-reader-text">
- <?php
- /* translators: Hidden accessibility text. */
- _e( 'Search themes&hellip;' );
- ?>
- </label>
- <input type="search" id="wp-filter-search-input-{{ data.id }}" placeholder="<?php esc_attr_e( 'Search themes&hellip;' ); ?>" aria-describedby="{{ data.id }}-live-search-desc" class="wp-filter-search">
- <div class="search-icon" aria-hidden="true"></div>
- <span id="{{ data.id }}-live-search-desc" class="screen-reader-text">
- <?php
- /* translators: Hidden accessibility text. */
- _e( 'The search results will be updated as you type.' );
- ?>
- </span>
+ <label for="wp-filter-search-input-{{ data.id }}"><?php _e( 'Search themes' ); ?></label>
+ <div class="search-form-input">
+ <input type="search" id="wp-filter-search-input-{{ data.id }}" aria-describedby="{{ data.id }}-live-search-desc" class="wp-filter-search">
+ <div class="search-icon" aria-hidden="true"></div>
+ <span id="{{ data.id }}-live-search-desc" class="screen-reader-text">
+ <?php
+ /* translators: Hidden accessibility text. */
+ _e( 'The search results will be updated as you type.' );
+ ?>
+ </span>
+ </div>
+ </div>
+ <# } else { #>
+ <div class="themes-filter-container">
+ <label for="{{ data.id }}-themes-filter"><?php _e( 'Search themes' ); ?></label>
+ <div class="search-form-input">
+ <input type="search" id="{{ data.id }}-themes-filter" aria-describedby="{{ data.id }}-live-search-desc" class="wp-filter-search wp-filter-search-themes" />
+ <div class="search-icon" aria-hidden="true"></div>
+ <span id="{{ data.id }}-live-search-desc" class="screen-reader-text">
+ <?php
+ /* translators: Hidden accessibility text. */
+ _e( 'The search results will be updated as you type.' );
+ ?>
+ </span>
+ </div>
</div>
+ <# } #>
+ <div class="filter-themes-wrapper">
+ <# if ( 'wporg' === data.action ) { #>
<button type="button" class="button feature-filter-toggle">
<span class="filter-count-0"><?php _e( 'Filter themes' ); ?></span><span class="filter-count-filters">
<?php
@@ -147,31 +161,15 @@ class WP_Customize_Themes_Section extends WP_Customize_Section {
?>
</span>
</button>
- <# } else { #>
- <div class="themes-filter-container">
- <label for="{{ data.id }}-themes-filter" class="screen-reader-text">
+ <# } #>
+ <div class="filter-themes-count">
+ <span class="themes-displayed">
<?php
- /* translators: Hidden accessibility text. */
- _e( 'Search themes&hellip;' );
- ?>
- </label>
- <input type="search" id="{{ data.id }}-themes-filter" placeholder="<?php esc_attr_e( 'Search themes&hellip;' ); ?>" aria-describedby="{{ data.id }}-live-search-desc" class="wp-filter-search wp-filter-search-themes" />
- <div class="search-icon" aria-hidden="true"></div>
- <span id="{{ data.id }}-live-search-desc" class="screen-reader-text">
- <?php
- /* translators: Hidden accessibility text. */
- _e( 'The search results will be updated as you type.' );
+ /* translators: %s: Number of themes displayed. */
+ printf( __( '%s themes' ), '<span class="theme-count">0</span>' );
?>
</span>
</div>
- <# } #>
- <div class="filter-themes-count">
- <span class="themes-displayed">
- <?php
- /* translators: %s: Number of themes displayed. */
- printf( __( '%s themes' ), '<span class="theme-count">0</span>' );
- ?>
- </span>
</div>
<?php
}
diff --git a/wp-includes/default-constants.php b/wp-includes/default-constants.php
index 5bccc20..79e1642 100644
--- a/wp-includes/default-constants.php
+++ b/wp-includes/default-constants.php
@@ -325,9 +325,10 @@ function wp_cookie_constants() {
/**
* @since 2.0.0
+ * @since 6.6.0 The value has changed from false to an empty string.
*/
if ( ! defined( 'COOKIE_DOMAIN' ) ) {
- define( 'COOKIE_DOMAIN', false );
+ define( 'COOKIE_DOMAIN', '' );
}
if ( ! defined( 'RECOVERY_MODE_COOKIE' ) ) {
diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php
index 04c6441..2c18274 100644
--- a/wp-includes/default-filters.php
+++ b/wp-includes/default-filters.php
@@ -286,6 +286,7 @@ foreach (
}
// Misc filters.
+add_filter( 'wp_default_autoload_value', 'wp_filter_default_autoload_value_via_option_size', 5, 4 ); // Allow the value to be overridden at the default priority.
add_filter( 'option_ping_sites', 'privacy_ping_filter' );
add_filter( 'option_blog_charset', '_wp_specialchars' ); // IMPORTANT: This must not be wp_specialchars() or esc_html() or it'll cause an infinite loop.
add_filter( 'option_blog_charset', '_canonical_charset' );
@@ -756,4 +757,10 @@ add_action( 'init', '_wp_register_default_font_collections' );
add_filter( 'rest_pre_insert_wp_template', 'inject_ignored_hooked_blocks_metadata_attributes' );
add_filter( 'rest_pre_insert_wp_template_part', 'inject_ignored_hooked_blocks_metadata_attributes' );
+// Update ignoredHookedBlocks postmeta for wp_navigation post type.
+add_filter( 'rest_pre_insert_wp_navigation', 'update_ignored_hooked_blocks_postmeta' );
+
+// Inject hooked blocks into the wp_navigation post type REST response.
+add_filter( 'rest_prepare_wp_navigation', 'insert_hooked_blocks_into_rest_response', 10, 2 );
+
unset( $filter, $action );
diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php
index 4de4a93..8084cdd 100644
--- a/wp-includes/deprecated.php
+++ b/wp-includes/deprecated.php
@@ -705,7 +705,7 @@ function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = '
$show_option_none = '';
if ( $optionnone )
- $show_option_none = __('None');
+ $show_option_none = _x( 'None', 'Categories dropdown (show_option_none parameter)' );
$vars = compact('show_option_all', 'show_option_none', 'orderby', 'order',
'show_last_update', 'show_count', 'hide_empty', 'selected', 'exclude');
@@ -996,11 +996,11 @@ function get_links($category = -1, $before = '', $after = '<br />', $between = '
$output .= '<a href="' . $the_link . '"' . $rel . $title . $target. '>';
- if ( $row->link_image != null && $show_images ) {
+ if ( '' != $row->link_image && $show_images ) {
if ( str_contains( $row->link_image, 'http' ) )
- $output .= "<img src=\"$row->link_image\" $alt $title />";
+ $output .= '<img src="' . $row->link_image . '"' . $alt . $title . ' />';
else // If it's a relative path.
- $output .= "<img src=\"" . get_option('siteurl') . "$row->link_image\" $alt $title />";
+ $output .= '<img src="' . get_option('siteurl') . $row->link_image . '"' . $alt . $title . ' />';
} else {
$output .= $name;
}
@@ -2634,7 +2634,7 @@ function get_user_metavalues($ids) {
/**
* Sanitize every user field.
*
- * If the context is 'raw', then the user object or array will get minimal santization of the int fields.
+ * If the context is 'raw', then the user object or array will get minimal sanitization of the int fields.
*
* @since 2.3.0
* @deprecated 3.3.0
@@ -6249,18 +6249,9 @@ function the_block_template_skip_link() {
*
* @since 6.4.0
* @deprecated 6.5.0
- *
- * @global WP_Scripts $wp_scripts
*/
function block_core_query_ensure_interactivity_dependency() {
_deprecated_function( __FUNCTION__, '6.5.0', 'wp_register_script_module' );
- global $wp_scripts;
- if (
- isset( $wp_scripts->registered['wp-block-query-view'] ) &&
- ! in_array( 'wp-interactivity', $wp_scripts->registered['wp-block-query-view']->deps, true )
- ) {
- $wp_scripts->registered['wp-block-query-view']->deps[] = 'wp-interactivity';
- }
}
/**
@@ -6268,18 +6259,9 @@ function block_core_query_ensure_interactivity_dependency() {
*
* @since 6.4.0
* @deprecated 6.5.0
- *
- * @global WP_Scripts $wp_scripts
*/
function block_core_file_ensure_interactivity_dependency() {
_deprecated_function( __FUNCTION__, '6.5.0', 'wp_register_script_module' );
- global $wp_scripts;
- if (
- isset( $wp_scripts->registered['wp-block-file-view'] ) &&
- ! in_array( 'wp-interactivity', $wp_scripts->registered['wp-block-file-view']->deps, true )
- ) {
- $wp_scripts->registered['wp-block-file-view']->deps[] = 'wp-interactivity';
- }
}
/**
@@ -6287,16 +6269,44 @@ function block_core_file_ensure_interactivity_dependency() {
*
* @since 6.4.0
* @deprecated 6.5.0
- *
- * @global WP_Scripts $wp_scripts
*/
function block_core_image_ensure_interactivity_dependency() {
_deprecated_function( __FUNCTION__, '6.5.0', 'wp_register_script_module' );
- global $wp_scripts;
- if (
- isset( $wp_scripts->registered['wp-block-image-view'] ) &&
- ! in_array( 'wp-interactivity', $wp_scripts->registered['wp-block-image-view']->deps, true )
- ) {
- $wp_scripts->registered['wp-block-image-view']->deps[] = 'wp-interactivity';
- }
+}
+
+/**
+ * Updates the block content with elements class names.
+ *
+ * @deprecated 6.6.0 Generation of element class name is handled via `render_block_data` filter.
+ *
+ * @since 5.8.0
+ * @since 6.4.0 Added support for button and heading element styling.
+ * @access private
+ *
+ * @param string $block_content Rendered block content.
+ * @param array $block Block object.
+ * @return string Filtered block content.
+ */
+function wp_render_elements_support( $block_content, $block ) {
+ _deprecated_function( __FUNCTION__, '6.6.0', 'wp_render_elements_class_name' );
+ return $block_content;
+}
+
+/**
+ * Processes the directives on the rendered HTML of the interactive blocks.
+ *
+ * This processes only one root interactive block at a time because the
+ * rendered HTML of that block contains the rendered HTML of all its inner
+ * blocks, including any interactive block. It does so by ignoring all the
+ * interactive inner blocks until the root interactive block is processed.
+ *
+ * @since 6.5.0
+ * @deprecated 6.6.0
+ *
+ * @param array $parsed_block The parsed block.
+ * @return array The same parsed block.
+ */
+function wp_interactivity_process_directives_of_interactive_blocks( array $parsed_block ): array {
+ _deprecated_function( __FUNCTION__, '6.6.0' );
+ return $parsed_block;
}
diff --git a/wp-includes/embed.php b/wp-includes/embed.php
index 82cb45d..c7dfd38 100644
--- a/wp-includes/embed.php
+++ b/wp-includes/embed.php
@@ -14,7 +14,7 @@
*
* @since 2.9.0
*
- * @global WP_Embed $wp_embed
+ * @global WP_Embed $wp_embed WordPress Embed object.
*
* @param string $id An internal ID/name for the handler. Needs to be unique.
* @param string $regex The regex that will be used to see if this handler should be used for a URL.
@@ -32,7 +32,7 @@ function wp_embed_register_handler( $id, $regex, $callback, $priority = 10 ) {
*
* @since 2.9.0
*
- * @global WP_Embed $wp_embed
+ * @global WP_Embed $wp_embed WordPress Embed object.
*
* @param string $id The handler ID that should be removed.
* @param int $priority Optional. The priority of the handler to be removed. Default 10.
@@ -230,7 +230,7 @@ function wp_maybe_load_embeds() {
*
* @since 4.0.0
*
- * @global WP_Embed $wp_embed
+ * @global WP_Embed $wp_embed WordPress Embed object.
*
* @param array $matches The RegEx matches from the provided regex when calling
* wp_embed_register_handler().
@@ -244,7 +244,7 @@ function wp_embed_handler_youtube( $matches, $attr, $url, $rawattr ) {
$embed = $wp_embed->autoembed( sprintf( 'https://youtube.com/watch?v=%s', urlencode( $matches[2] ) ) );
/**
- * Filters the YoutTube embed output.
+ * Filters the YouTube embed output.
*
* @since 4.0.0
*
@@ -336,10 +336,10 @@ function wp_oembed_add_discovery_links() {
$output = '';
if ( is_singular() ) {
- $output .= '<link rel="alternate" type="application/json+oembed" href="' . esc_url( get_oembed_endpoint_url( get_permalink() ) ) . '" />' . "\n";
+ $output .= '<link rel="alternate" title="' . _x( 'oEmbed (JSON)', 'oEmbed resource link name' ) . '" type="application/json+oembed" href="' . esc_url( get_oembed_endpoint_url( get_permalink() ) ) . '" />' . "\n";
if ( class_exists( 'SimpleXMLElement' ) ) {
- $output .= '<link rel="alternate" type="text/xml+oembed" href="' . esc_url( get_oembed_endpoint_url( get_permalink(), 'xml' ) ) . '" />' . "\n";
+ $output .= '<link rel="alternate" title="' . _x( 'oEmbed (XML)', 'oEmbed resource link name' ) . '" type="text/xml+oembed" href="' . esc_url( get_oembed_endpoint_url( get_permalink(), 'xml' ) ) . '" />' . "\n";
}
}
@@ -627,12 +627,13 @@ function get_oembed_response_data_for_url( $url, $args ) {
wp_parse_url( $url ),
array(
'host' => '',
+ 'port' => null,
'path' => '/',
)
);
$qv = array(
- 'domain' => $url_parts['host'],
+ 'domain' => $url_parts['host'] . ( $url_parts['port'] ? ':' . $url_parts['port'] : '' ),
'path' => '/',
'update_site_meta_cache' => false,
);
@@ -965,7 +966,7 @@ function wp_filter_oembed_result( $result, $data, $url ) {
if ( ! empty( $content[1] ) ) {
// We have a blockquote to fall back on. Hide the iframe by default.
- $html = str_replace( '<iframe', '<iframe style="position: absolute; clip: rect(1px, 1px, 1px, 1px);"', $html );
+ $html = str_replace( '<iframe', '<iframe style="position: absolute; visibility: hidden;"', $html );
$html = str_replace( '<blockquote', '<blockquote class="wp-embedded-content"', $html );
}
@@ -1098,7 +1099,13 @@ function print_embed_scripts() {
* @return string The filtered content.
*/
function _oembed_filter_feed_content( $content ) {
- return str_replace( '<iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="position: absolute; clip: rect(1px, 1px, 1px, 1px);"', '<iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"', $content );
+ $p = new WP_HTML_Tag_Processor( $content );
+ while ( $p->next_tag( array( 'tag_name' => 'iframe' ) ) ) {
+ if ( $p->has_class( 'wp-embedded-content' ) ) {
+ $p->remove_attribute( 'style' );
+ }
+ }
+ return $p->get_updated_html();
}
/**
diff --git a/wp-includes/feed.php b/wp-includes/feed.php
index 74a4b50..fc95bc5 100644
--- a/wp-includes/feed.php
+++ b/wp-includes/feed.php
@@ -150,11 +150,13 @@ function wp_title_rss( $deprecated = '&#8211;' ) {
* Retrieves the current post title for the feed.
*
* @since 2.0.0
+ * @since 6.6.0 Added the `$post` parameter.
*
+ * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
* @return string Current post title.
*/
-function get_the_title_rss() {
- $title = get_the_title();
+function get_the_title_rss( $post = 0 ) {
+ $title = get_the_title( $post );
/**
* Filters the post title for use in a feed.
@@ -585,7 +587,7 @@ function prep_atom_text_construct( $data ) {
}
if ( ! function_exists( 'xml_parser_create' ) ) {
- trigger_error( __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) );
+ wp_trigger_error( '', __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) );
return array( 'html', "<![CDATA[$data]]>" );
}
@@ -658,8 +660,14 @@ function rss2_site_icon() {
* @return string Correct link for the atom:self element.
*/
function get_self_link() {
- $host = parse_url( home_url() );
- return set_url_scheme( 'http://' . $host['host'] . wp_unslash( $_SERVER['REQUEST_URI'] ) );
+ $parsed = parse_url( home_url() );
+
+ $domain = $parsed['host'];
+ if ( isset( $parsed['port'] ) ) {
+ $domain .= ':' . $parsed['port'];
+ }
+
+ return set_url_scheme( 'http://' . $domain . wp_unslash( $_SERVER['REQUEST_URI'] ) );
}
/**
@@ -689,10 +697,10 @@ function self_link() {
* If viewing a comment feed, the time of the most recently modified
* comment will be returned.
*
- * @global WP_Query $wp_query WordPress Query object.
- *
* @since 5.2.0
*
+ * @global WP_Query $wp_query WordPress Query object.
+ *
* @param string $format Date format string to return the time in.
* @return string|false The time in requested format, or false on failure.
*/
diff --git a/wp-includes/fonts.php b/wp-includes/fonts.php
index 0d7cff5..4e286b7 100644
--- a/wp-includes/fonts.php
+++ b/wp-includes/fonts.php
@@ -15,11 +15,13 @@
* @param array[][] $fonts {
* Optional. The font-families and their font faces. Default empty array.
*
- * @type array {
+ * @type array ...$0 {
* An indexed or associative (keyed by font-family) array of font variations for this font-family.
* Each font face has the following structure.
*
- * @type array {
+ * @type array ...$0 {
+ * The font face properties.
+ *
* @type string $font-family The font-family property.
* @type string|string[] $src The URL(s) to each resource containing the font data.
* @type string $font-style Optional. The font-style property. Default 'normal'.
diff --git a/wp-includes/fonts/class-wp-font-face.php b/wp-includes/fonts/class-wp-font-face.php
index 974e13e..50d0268 100644
--- a/wp-includes/fonts/class-wp-font-face.php
+++ b/wp-includes/fonts/class-wp-font-face.php
@@ -256,7 +256,7 @@ class WP_Font_Face {
*
* @since 6.4.0
*
- * @param array $font_faces The font-faces to generate @font-face CSS styles.
+ * @param array[] $font_faces The font-faces to generate @font-face CSS styles.
* @return string The `@font-face` CSS styles.
*/
private function get_css( $font_faces ) {
diff --git a/wp-includes/fonts/class-wp-font-utils.php b/wp-includes/fonts/class-wp-font-utils.php
index 6e91440..0ec36ab 100644
--- a/wp-includes/fonts/class-wp-font-utils.php
+++ b/wp-includes/fonts/class-wp-font-utils.php
@@ -221,8 +221,8 @@ class WP_Font_Utils {
*
* @since 6.5.0
*
- * @param mixed $value The value to sanitize.
- * @param mixed $sanitizer The sanitizer function to apply.
+ * @param mixed $value The value to sanitize.
+ * @param callable $sanitizer The sanitizer function to apply.
* @return mixed The sanitized value.
*/
private static function apply_sanitizer( $value, $sanitizer ) {
@@ -244,7 +244,7 @@ class WP_Font_Utils {
*
* @access private
*
- * @return array A collection of mime types keyed by file extension.
+ * @return string[] A collection of mime types keyed by file extension.
*/
public static function get_allowed_font_mime_types() {
$php_7_ttf_mime_type = PHP_VERSION_ID >= 70300 ? 'application/font-sfnt' : 'application/x-font-ttf';
diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php
index b097d00..85ca245 100644
--- a/wp-includes/formatting.php
+++ b/wp-includes/formatting.php
@@ -960,19 +960,7 @@ function _wp_specialchars( $text, $quote_style = ENT_NOQUOTES, $charset = false,
$quote_style = ENT_QUOTES;
}
- // Store the site charset as a static to avoid multiple calls to wp_load_alloptions().
- if ( ! $charset ) {
- static $_charset = null;
- if ( ! isset( $_charset ) ) {
- $alloptions = wp_load_alloptions();
- $_charset = isset( $alloptions['blog_charset'] ) ? $alloptions['blog_charset'] : '';
- }
- $charset = $_charset;
- }
-
- if ( in_array( $charset, array( 'utf8', 'utf-8', 'UTF8' ), true ) ) {
- $charset = 'UTF-8';
- }
+ $charset = _canonical_charset( $charset ? $charset : get_option( 'blog_charset' ) );
$_quote_style = $quote_style;
@@ -1114,7 +1102,7 @@ function wp_check_invalid_utf8( $text, $strip = false ) {
// Store the site charset as a static to avoid multiple calls to get_option().
static $is_utf8 = null;
if ( ! isset( $is_utf8 ) ) {
- $is_utf8 = in_array( get_option( 'blog_charset' ), array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ), true );
+ $is_utf8 = is_utf8_charset();
}
if ( ! $is_utf8 ) {
return $text;
@@ -2946,7 +2934,7 @@ function _make_url_clickable_cb( $matches ) {
if ( ')' === $matches[3] && strpos( $url, '(' ) ) {
/*
- * If the trailing character is a closing parethesis, and the URL has an opening parenthesis in it,
+ * If the trailing character is a closing parenthesis, and the URL has an opening parenthesis in it,
* add the closing parenthesis to the URL. Then we can let the parenthesis balancer do its thing below.
*/
$url .= $matches[3];
@@ -3105,7 +3093,7 @@ function make_clickable( $text ) {
// Long strings might contain expensive edge cases...
if ( 10000 < strlen( $piece ) ) {
// ...break it up.
- foreach ( _split_str_by_whitespace( $piece, 2100 ) as $chunk ) { // 2100: Extra room for scheme and leading and trailing paretheses.
+ foreach ( _split_str_by_whitespace( $piece, 2100 ) as $chunk ) { // 2100: Extra room for scheme and leading and trailing parentheses.
if ( 2101 < strlen( $chunk ) ) {
$r .= $chunk; // Too big, no whitespace: bail.
} else {
@@ -3121,12 +3109,12 @@ function make_clickable( $text ) {
[\\w]{1,20}+:// # Scheme and hier-part prefix.
(?=\S{1,2000}\s) # Limit to URLs less than about 2000 characters long.
[\\w\\x80-\\xff#%\\~/@\\[\\]*(+=&$-]*+ # Non-punctuation URL character.
- (?: # Unroll the Loop: Only allow puctuation URL character if followed by a non-punctuation URL character.
+ (?: # Unroll the Loop: Only allow punctuation URL character if followed by a non-punctuation URL character.
[\'.,;:!?)] # Punctuation URL character.
[\\w\\x80-\\xff#%\\~/@\\[\\]*(+=&$-]++ # Non-punctuation URL character.
)*
)
- (\)?) # 3: Trailing closing parenthesis (for parethesis balancing post processing).
+ (\)?) # 3: Trailing closing parenthesis (for parenthesis balancing post processing).
~xS';
/*
* The regex is a non-anchored pattern and does not have a single fixed starting character.
@@ -5531,10 +5519,11 @@ function wp_strip_all_tags( $text, $remove_breaks = false ) {
if ( ! is_scalar( $text ) ) {
/*
* To maintain consistency with pre-PHP 8 error levels,
- * trigger_error() is used to trigger an E_USER_WARNING,
+ * wp_trigger_error() is used to trigger an E_USER_WARNING,
* rather than _doing_it_wrong(), which triggers an E_USER_NOTICE.
*/
- trigger_error(
+ wp_trigger_error(
+ '',
sprintf(
/* translators: 1: The function name, 2: The argument number, 3: The argument name, 4: The expected type, 5: The provided type. */
__( 'Warning: %1$s expects parameter %2$s (%3$s) to be a %4$s, %5$s given.' ),
diff --git a/wp-includes/functions.php b/wp-includes/functions.php
index f9d6176..e659a5f 100644
--- a/wp-includes/functions.php
+++ b/wp-includes/functions.php
@@ -1347,6 +1347,7 @@ function wp( $query_vars = '' ) {
* @since 3.9.0 Added status codes 418, 428, 429, 431, and 511.
* @since 4.5.0 Added status codes 308, 421, and 451.
* @since 5.1.0 Added status code 103.
+ * @since 6.6.0 Added status code 425.
*
* @global array $wp_header_to_desc
*
@@ -1408,6 +1409,7 @@ function get_status_header_desc( $code ) {
422 => 'Unprocessable Entity',
423 => 'Locked',
424 => 'Failed Dependency',
+ 425 => 'Too Early',
426 => 'Upgrade Required',
428 => 'Precondition Required',
429 => 'Too Many Requests',
@@ -2268,7 +2270,7 @@ function wp_is_writable( $path ) {
* PHP has issues with Windows ACL's for determine if a
* directory is writable or not, this works around them by
* checking the ability to open files rather than relying
- * upon PHP to interprate the OS ACL.
+ * upon PHP to interpret the OS ACL.
*
* @since 2.8.0
*
@@ -2342,10 +2344,10 @@ function wp_get_upload_dir() {
* @since 2.0.0
* @uses _wp_upload_dir()
*
- * @param string $time Optional. Time formatted in 'yyyy/mm'. Default null.
- * @param bool $create_dir Optional. Whether to check and create the uploads directory.
- * Default true for backward compatibility.
- * @param bool $refresh_cache Optional. Whether to refresh the cache. Default false.
+ * @param string|null $time Optional. Time formatted in 'yyyy/mm'. Default null.
+ * @param bool $create_dir Optional. Whether to check and create the uploads directory.
+ * Default true for backward compatibility.
+ * @param bool $refresh_cache Optional. Whether to refresh the cache. Default false.
* @return array {
* Array of information about the upload directory.
*
@@ -2417,7 +2419,7 @@ function wp_upload_dir( $time = null, $create_dir = true, $refresh_cache = false
* @since 4.5.0
* @access private
*
- * @param string $time Optional. Time formatted in 'yyyy/mm'. Default null.
+ * @param string|null $time Optional. Time formatted in 'yyyy/mm'. Default null.
* @return array See wp_upload_dir()
*/
function _wp_upload_dir( $time = null ) {
@@ -2869,7 +2871,7 @@ function _wp_check_existing_file_names( $filename, $files ) {
* @param string $name Filename.
* @param null|string $deprecated Never used. Set to null.
* @param string $bits File content
- * @param string $time Optional. Time formatted in 'yyyy/mm'. Default null.
+ * @param string|null $time Optional. Time formatted in 'yyyy/mm'. Default null.
* @return array {
* Information about the newly-uploaded file.
*
@@ -3860,6 +3862,9 @@ function _default_wp_die_handler( $message, $title = '', $args = array() ) {
<?php
if ( function_exists( 'wp_robots' ) && function_exists( 'wp_robots_no_robots' ) && function_exists( 'add_filter' ) ) {
add_filter( 'wp_robots', 'wp_robots_no_robots' );
+ // Prevent warnings because of $wp_query not existing.
+ remove_filter( 'wp_robots', 'wp_robots_noindex_embeds' );
+ remove_filter( 'wp_robots', 'wp_robots_noindex_search' );
wp_robots();
}
?>
@@ -4609,7 +4614,8 @@ function wp_json_file_decode( $filename, $options = array() ) {
$filename = wp_normalize_path( realpath( $filename ) );
if ( ! $filename ) {
- trigger_error(
+ wp_trigger_error(
+ __FUNCTION__,
sprintf(
/* translators: %s: Path to the JSON file. */
__( "File %s doesn't exist!" ),
@@ -4623,7 +4629,8 @@ function wp_json_file_decode( $filename, $options = array() ) {
$decoded_file = json_decode( file_get_contents( $filename ), $options['associative'] );
if ( JSON_ERROR_NONE !== json_last_error() ) {
- trigger_error(
+ wp_trigger_error(
+ __FUNCTION__,
sprintf(
/* translators: 1: Path to the JSON file, 2: Error message. */
__( 'Error when decoding a JSON file at path %1$s: %2$s' ),
@@ -4760,10 +4767,10 @@ function wp_is_serving_rest_request() {
* the description. Probably should create a Codex page for it, so that it is
* available.
*
+ * @since 2.2.0
+ *
* @global array $wpsmiliestrans
* @global array $wp_smiliessearch
- *
- * @since 2.2.0
*/
function smilies_init() {
global $wpsmiliestrans, $wp_smiliessearch;
@@ -5398,7 +5405,7 @@ function wp_widgets_add_menu() {
}
$menu_name = __( 'Widgets' );
- if ( wp_is_block_theme() || current_theme_supports( 'block-template-parts' ) ) {
+ if ( wp_is_block_theme() ) {
$submenu['themes.php'][] = array( $menu_name, 'edit_theme_options', 'widgets.php' );
} else {
$submenu['themes.php'][8] = array( $menu_name, 'edit_theme_options', 'widgets.php' );
@@ -5991,7 +5998,7 @@ function _doing_it_wrong( $function_name, $message, $version ) {
$message .= ' ' . sprintf(
/* translators: %s: Documentation URL. */
__( 'Please see <a href="%s">Debugging in WordPress</a> for more information.' ),
- __( 'https://wordpress.org/documentation/article/debugging-in-wordpress/' )
+ __( 'https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/' )
);
$message = sprintf(
@@ -6008,7 +6015,7 @@ function _doing_it_wrong( $function_name, $message, $version ) {
$message .= sprintf(
' Please see <a href="%s">Debugging in WordPress</a> for more information.',
- 'https://wordpress.org/documentation/article/debugging-in-wordpress/'
+ 'https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/'
);
$message = sprintf(
@@ -6066,11 +6073,11 @@ function wp_trigger_error( $function_name, $message, $error_level = E_USER_NOTIC
$message = wp_kses(
$message,
array(
- 'a' => array( 'href' ),
- 'br',
- 'code',
- 'em',
- 'strong',
+ 'a' => array( 'href' => true ),
+ 'br' => array(),
+ 'code' => array(),
+ 'em' => array(),
+ 'strong' => array(),
),
array( 'http', 'https' )
);
@@ -6192,8 +6199,10 @@ function validate_file( $file, $allowed_files = array() ) {
return 0;
}
- // Normalize path for Windows servers
+ // Normalize path for Windows servers.
$file = wp_normalize_path( $file );
+ // Normalize path for $allowed_files as well so it's an apples to apples comparison.
+ $allowed_files = array_map( 'wp_normalize_path', $allowed_files );
// `../` on its own is not allowed:
if ( '../' === $file ) {
@@ -7467,6 +7476,40 @@ function get_tag_regex( $tag ) {
}
/**
+ * Indicates if a given slug for a character set represents the UTF-8
+ * text encoding. If not provided, examines the current blog's charset.
+ *
+ * A charset is considered to represent UTF-8 if it is a case-insensitive
+ * match of "UTF-8" with or without the hyphen.
+ *
+ * Example:
+ *
+ * true === is_utf8_charset( 'UTF-8' );
+ * true === is_utf8_charset( 'utf8' );
+ * false === is_utf8_charset( 'latin1' );
+ * false === is_utf8_charset( 'UTF 8' );
+ *
+ * // Only strings match.
+ * false === is_utf8_charset( [ 'charset' => 'utf-8' ] );
+ *
+ * // Without a given charset, it depends on the site option "blog_charset".
+ * $is_utf8 = is_utf8_charset();
+ *
+ * @since 6.6.0
+ * @since 6.6.1 A wrapper for _is_utf8_charset
+ *
+ * @see _is_utf8_charset
+ *
+ * @param string|null $blog_charset Optional. Slug representing a text character encoding, or "charset".
+ * E.g. "UTF-8", "Windows-1252", "ISO-8859-1", "SJIS".
+ * Default value is to infer from "blog_charset" option.
+ * @return bool Whether the slug represents the UTF-8 encoding.
+ */
+function is_utf8_charset( $blog_charset = null ) {
+ return _is_utf8_charset( $blog_charset ?? get_option( 'blog_charset' ) );
+}
+
+/**
* Retrieves a canonical form of the provided charset appropriate for passing to PHP
* functions such as htmlspecialchars() and charset HTML attributes.
*
@@ -7475,17 +7518,27 @@ function get_tag_regex( $tag ) {
*
* @see https://core.trac.wordpress.org/ticket/23688
*
- * @param string $charset A charset name.
+ * @param string $charset A charset name, e.g. "UTF-8", "Windows-1252", "SJIS".
* @return string The canonical form of the charset.
*/
function _canonical_charset( $charset ) {
- if ( 'utf-8' === strtolower( $charset ) || 'utf8' === strtolower( $charset ) ) {
-
+ if ( is_utf8_charset( $charset ) ) {
return 'UTF-8';
}
- if ( 'iso-8859-1' === strtolower( $charset ) || 'iso8859-1' === strtolower( $charset ) ) {
-
+ /*
+ * Normalize the ISO-8859-1 family of languages.
+ *
+ * This is not required for htmlspecialchars(), as it properly recognizes all of
+ * the input character sets that here are transformed into "ISO-8859-1".
+ *
+ * @todo Should this entire check be removed since it's not required for the stated purpose?
+ * @todo Should WordPress transform other potential charset equivalents, such as "latin1"?
+ */
+ if (
+ ( 0 === strcasecmp( 'iso-8859-1', $charset ) ) ||
+ ( 0 === strcasecmp( 'iso8859-1', $charset ) )
+ ) {
return 'ISO-8859-1';
}
@@ -8508,7 +8561,7 @@ function wp_get_update_https_url() {
*/
function wp_get_default_update_https_url() {
/* translators: Documentation explaining HTTPS and why it should be used. */
- return __( 'https://wordpress.org/documentation/article/why-should-i-use-https/' );
+ return __( 'https://developer.wordpress.org/advanced-administration/security/https/' );
}
/**
@@ -8705,7 +8758,8 @@ function recurse_dirsize( $directory, $exclude = null, $max_execution_time = nul
*/
function clean_dirsize_cache( $path ) {
if ( ! is_string( $path ) || empty( $path ) ) {
- trigger_error(
+ wp_trigger_error(
+ '',
sprintf(
/* translators: 1: Function name, 2: A variable type, like "boolean" or "integer". */
__( '%1$s only accepts a non-empty path string, received %2$s.' ),
diff --git a/wp-includes/functions.wp-scripts.php b/wp-includes/functions.wp-scripts.php
index de13496..1be1822 100644
--- a/wp-includes/functions.wp-scripts.php
+++ b/wp-includes/functions.wp-scripts.php
@@ -11,10 +11,10 @@
/**
* Initializes $wp_scripts if it has not been set.
*
- * @global WP_Scripts $wp_scripts
- *
* @since 4.2.0
*
+ * @global WP_Scripts $wp_scripts
+ *
* @return WP_Scripts WP_Scripts instance.
*/
function wp_scripts() {
@@ -77,10 +77,10 @@ function _wp_scripts_maybe_doing_it_wrong( $function_name, $handle = '' ) {
* hook to register/enqueue new scripts.
*
* @see WP_Scripts::do_item()
- * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.
- *
* @since 2.1.0
*
+ * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.
+ *
* @param string|string[]|false $handles Optional. Scripts to be printed. Default 'false'.
* @return string[] On success, an array of handles of processed WP_Dependencies items; otherwise, an empty array.
*/
@@ -234,11 +234,11 @@ function wp_localize_script( $handle, $object_name, $l10n ) {
* Works only if the script has already been registered.
*
* @see WP_Scripts::set_translations()
- * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.
- *
* @since 5.0.0
* @since 5.1.0 The `$domain` parameter was made optional.
*
+ * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.
+ *
* @param string $handle Script handle the textdomain will be attached to.
* @param string $domain Optional. Text domain. Default 'default'.
* @param string $path Optional. The full file path to the directory containing translation files.
diff --git a/wp-includes/functions.wp-styles.php b/wp-includes/functions.wp-styles.php
index 592bb41..ad5f574 100644
--- a/wp-includes/functions.wp-styles.php
+++ b/wp-includes/functions.wp-styles.php
@@ -11,10 +11,10 @@
/**
* Initializes $wp_styles if it has not been set.
*
- * @global WP_Styles $wp_styles
- *
* @since 4.2.0
*
+ * @global WP_Styles $wp_styles
+ *
* @return WP_Styles WP_Styles instance.
*/
function wp_styles() {
@@ -34,10 +34,10 @@ function wp_styles() {
* passing an array with one string prints that style,
* and passing an array of strings prints those styles.
*
- * @global WP_Styles $wp_styles The WP_Styles object for printing styles.
- *
* @since 2.6.0
*
+ * @global WP_Styles $wp_styles The WP_Styles object for printing styles.
+ *
* @param string|bool|array $handles Styles to be printed. Default 'false'.
* @return string[] On success, an array of handles of processed WP_Dependencies items; otherwise, an empty array.
*/
diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
index 702c434..bf70def 100644
--- a/wp-includes/general-template.php
+++ b/wp-includes/general-template.php
@@ -491,49 +491,58 @@ function wp_registration_url() {
* The login form HTML is echoed by default. Pass a false value for `$echo` to return it instead.
*
* @since 3.0.0
+ * @since 6.6.0 Added `required_username` and `required_password` arguments.
*
* @param array $args {
* Optional. Array of options to control the form output. Default empty array.
*
- * @type bool $echo Whether to display the login form or return the form HTML code.
- * Default true (echo).
- * @type string $redirect URL to redirect to. Must be absolute, as in "https://example.com/mypage/".
- * Default is to redirect back to the request URI.
- * @type string $form_id ID attribute value for the form. Default 'loginform'.
- * @type string $label_username Label for the username or email address field. Default 'Username or Email Address'.
- * @type string $label_password Label for the password field. Default 'Password'.
- * @type string $label_remember Label for the remember field. Default 'Remember Me'.
- * @type string $label_log_in Label for the submit button. Default 'Log In'.
- * @type string $id_username ID attribute value for the username field. Default 'user_login'.
- * @type string $id_password ID attribute value for the password field. Default 'user_pass'.
- * @type string $id_remember ID attribute value for the remember field. Default 'rememberme'.
- * @type string $id_submit ID attribute value for the submit button. Default 'wp-submit'.
- * @type bool $remember Whether to display the "rememberme" checkbox in the form.
- * @type string $value_username Default value for the username field. Default empty.
- * @type bool $value_remember Whether the "Remember Me" checkbox should be checked by default.
- * Default false (unchecked).
+ * @type bool $echo Whether to display the login form or return the form HTML code.
+ * Default true (echo).
+ * @type string $redirect URL to redirect to. Must be absolute, as in "https://example.com/mypage/".
+ * Default is to redirect back to the request URI.
+ * @type string $form_id ID attribute value for the form. Default 'loginform'.
+ * @type string $label_username Label for the username or email address field. Default 'Username or Email Address'.
+ * @type string $label_password Label for the password field. Default 'Password'.
+ * @type string $label_remember Label for the remember field. Default 'Remember Me'.
+ * @type string $label_log_in Label for the submit button. Default 'Log In'.
+ * @type string $id_username ID attribute value for the username field. Default 'user_login'.
+ * @type string $id_password ID attribute value for the password field. Default 'user_pass'.
+ * @type string $id_remember ID attribute value for the remember field. Default 'rememberme'.
+ * @type string $id_submit ID attribute value for the submit button. Default 'wp-submit'.
+ * @type bool $remember Whether to display the "rememberme" checkbox in the form.
+ * @type string $value_username Default value for the username field. Default empty.
+ * @type bool $value_remember Whether the "Remember Me" checkbox should be checked by default.
+ * Default false (unchecked).
+ * @type bool $required_username Whether the username field has the 'required' attribute.
+ * Default false.
+ * @type bool $required_password Whether the password field has the 'required' attribute.
+ * Default false.
*
* }
* @return void|string Void if 'echo' argument is true, login form HTML if 'echo' is false.
*/
function wp_login_form( $args = array() ) {
$defaults = array(
- 'echo' => true,
+ 'echo' => true,
// Default 'redirect' value takes the user back to the request URI.
- 'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'],
- 'form_id' => 'loginform',
- 'label_username' => __( 'Username or Email Address' ),
- 'label_password' => __( 'Password' ),
- 'label_remember' => __( 'Remember Me' ),
- 'label_log_in' => __( 'Log In' ),
- 'id_username' => 'user_login',
- 'id_password' => 'user_pass',
- 'id_remember' => 'rememberme',
- 'id_submit' => 'wp-submit',
- 'remember' => true,
- 'value_username' => '',
+ 'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'],
+ 'form_id' => 'loginform',
+ 'label_username' => __( 'Username or Email Address' ),
+ 'label_password' => __( 'Password' ),
+ 'label_remember' => __( 'Remember Me' ),
+ 'label_log_in' => __( 'Log In' ),
+ 'id_username' => 'user_login',
+ 'id_password' => 'user_pass',
+ 'id_remember' => 'rememberme',
+ 'id_submit' => 'wp-submit',
+ 'remember' => true,
+ 'value_username' => '',
// Set 'value_remember' to true to default the "Remember me" checkbox to checked.
- 'value_remember' => false,
+ 'value_remember' => false,
+ // Set 'required_username' to true to add the required attribute to username field.
+ 'required_username' => false,
+ // Set 'required_password' to true to add the required attribute to password field.
+ 'required_password' => false,
);
/**
@@ -594,19 +603,21 @@ function wp_login_form( $args = array() ) {
sprintf(
'<p class="login-username">
<label for="%1$s">%2$s</label>
- <input type="text" name="log" id="%1$s" autocomplete="username" class="input" value="%3$s" size="20" />
+ <input type="text" name="log" id="%1$s" autocomplete="username" class="input" value="%3$s" size="20"%4$s />
</p>',
esc_attr( $args['id_username'] ),
esc_html( $args['label_username'] ),
- esc_attr( $args['value_username'] )
+ esc_attr( $args['value_username'] ),
+ ( $args['required_username'] ? ' required="required"' : '' )
) .
sprintf(
'<p class="login-password">
<label for="%1$s">%2$s</label>
- <input type="password" name="pwd" id="%1$s" autocomplete="current-password" spellcheck="false" class="input" value="" size="20" />
+ <input type="password" name="pwd" id="%1$s" autocomplete="current-password" spellcheck="false" class="input" value="" size="20"%3$s />
</p>',
esc_attr( $args['id_password'] ),
- esc_html( $args['label_password'] )
+ esc_html( $args['label_password'] ),
+ ( $args['required_password'] ? ' required="required"' : '' )
) .
$login_form_middle .
( $args['remember'] ?
@@ -1024,12 +1035,13 @@ function has_custom_logo( $blog_id = 0 ) {
}
$custom_logo_id = get_theme_mod( 'custom_logo' );
+ $is_image = ( $custom_logo_id ) ? wp_attachment_is_image( $custom_logo_id ) : false;
if ( $switched_blog ) {
restore_current_blog();
}
- return (bool) $custom_logo_id;
+ return $is_image;
}
/**
@@ -1052,10 +1064,9 @@ function get_custom_logo( $blog_id = 0 ) {
$switched_blog = true;
}
- $custom_logo_id = get_theme_mod( 'custom_logo' );
-
// We have a logo. Logo is go.
- if ( $custom_logo_id ) {
+ if ( has_custom_logo() ) {
+ $custom_logo_id = get_theme_mod( 'custom_logo' );
$custom_logo_attr = array(
'class' => 'custom-logo',
'loading' => false,
@@ -1097,21 +1108,25 @@ function get_custom_logo( $blog_id = 0 ) {
*/
$image = wp_get_attachment_image( $custom_logo_id, 'full', false, $custom_logo_attr );
- if ( $unlink_homepage_logo && is_front_page() && ! is_paged() ) {
- // If on the home page, don't link the logo to home.
- $html = sprintf(
- '<span class="custom-logo-link">%1$s</span>',
- $image
- );
- } else {
- $aria_current = is_front_page() && ! is_paged() ? ' aria-current="page"' : '';
+ // Check that we have a proper HTML img element.
+ if ( $image ) {
- $html = sprintf(
- '<a href="%1$s" class="custom-logo-link" rel="home"%2$s>%3$s</a>',
- esc_url( home_url( '/' ) ),
- $aria_current,
- $image
- );
+ if ( $unlink_homepage_logo && is_front_page() && ! is_paged() ) {
+ // If on the home page, don't link the logo to home.
+ $html = sprintf(
+ '<span class="custom-logo-link">%1$s</span>',
+ $image
+ );
+ } else {
+ $aria_current = is_front_page() && ! is_paged() ? ' aria-current="page"' : '';
+
+ $html = sprintf(
+ '<a href="%1$s" class="custom-logo-link" rel="home"%2$s>%3$s</a>',
+ esc_url( home_url( '/' ) ),
+ $aria_current,
+ $image
+ );
+ }
}
} elseif ( is_customize_preview() ) {
// If no logo is set but we're in the Customizer, leave a placeholder (needed for the live preview).
@@ -3579,6 +3594,7 @@ function wp_preload_resources() {
* Filters domains and URLs for resource preloads.
*
* @since 6.1.0
+ * @since 6.6.0 Added the `$fetchpriority` attribute.
*
* @param array $preload_resources {
* Array of resources and their attributes, or URLs to print for resource preloads.
@@ -3586,14 +3602,15 @@ function wp_preload_resources() {
* @type array ...$0 {
* Array of resource attributes.
*
- * @type string $href URL to include in resource preloads. Required.
- * @type string $as How the browser should treat the resource
- * (`script`, `style`, `image`, `document`, etc).
- * @type string $crossorigin Indicates the CORS policy of the specified resource.
- * @type string $type Type of the resource (`text/html`, `text/css`, etc).
- * @type string $media Accepts media types or media queries. Allows responsive preloading.
- * @type string $imagesizes Responsive source size to the source Set.
- * @type string $imagesrcset Responsive image sources to the source set.
+ * @type string $href URL to include in resource preloads. Required.
+ * @type string $as How the browser should treat the resource
+ * (`script`, `style`, `image`, `document`, etc).
+ * @type string $crossorigin Indicates the CORS policy of the specified resource.
+ * @type string $type Type of the resource (`text/html`, `text/css`, etc).
+ * @type string $media Accepts media types or media queries. Allows responsive preloading.
+ * @type string $imagesizes Responsive source size to the source Set.
+ * @type string $imagesrcset Responsive image sources to the source set.
+ * @type string $fetchpriority Fetchpriority value for the resource.
* }
* }
*/
@@ -3641,7 +3658,7 @@ function wp_preload_resources() {
}
// Ignore non-supported attributes.
- $non_supported_attributes = array( 'as', 'crossorigin', 'href', 'imagesrcset', 'imagesizes', 'type', 'media' );
+ $non_supported_attributes = array( 'as', 'crossorigin', 'href', 'imagesrcset', 'imagesizes', 'type', 'media', 'fetchpriority' );
if ( ! in_array( $resource_key, $non_supported_attributes, true ) && ! is_numeric( $resource_key ) ) {
continue;
}
diff --git a/wp-includes/global-styles-and-settings.php b/wp-includes/global-styles-and-settings.php
index fae7ae6..fbf4fe2 100644
--- a/wp-includes/global-styles-and-settings.php
+++ b/wp-includes/global-styles-and-settings.php
@@ -139,6 +139,7 @@ function wp_get_global_styles( $path = array(), $context = array() ) {
*
* @since 5.9.0
* @since 6.1.0 Added 'base-layout-styles' support.
+ * @since 6.6.0 Resolves relative paths in theme.json styles to theme absolute paths.
*
* @param array $types Optional. Types of styles to load.
* It accepts as values 'variables', 'presets', 'styles', 'base-layout-styles'.
@@ -179,9 +180,9 @@ function wp_get_global_stylesheet( $types = array() ) {
}
}
- $tree = WP_Theme_JSON_Resolver::get_merged_data();
-
+ $tree = WP_Theme_JSON_Resolver::resolve_theme_file_uris( WP_Theme_JSON_Resolver::get_merged_data() );
$supports_theme_json = wp_theme_has_theme_json();
+
if ( empty( $types ) && ! $supports_theme_json ) {
$types = array( 'variables', 'presets', 'base-layout-styles' );
} elseif ( empty( $types ) ) {
@@ -329,7 +330,7 @@ function wp_add_global_styles_for_blocks() {
if ( str_starts_with( $metadata['name'], 'core/' ) ) {
$block_name = str_replace( 'core/', '', $metadata['name'] );
$block_handle = 'wp-block-' . $block_name;
- if ( in_array( $block_handle, $wp_styles->queue ) ) {
+ if ( in_array( $block_handle, $wp_styles->queue, true ) ) {
wp_add_inline_style( $stylesheet_handle, $block_css );
}
} else {
@@ -344,7 +345,7 @@ function wp_add_global_styles_for_blocks() {
if ( str_starts_with( $block_name, 'core/' ) ) {
$block_name = str_replace( 'core/', '', $block_name );
$block_handle = 'wp-block-' . $block_name;
- if ( in_array( $block_handle, $wp_styles->queue ) ) {
+ if ( in_array( $block_handle, $wp_styles->queue, true ) ) {
wp_add_inline_style( $stylesheet_handle, $block_css );
}
} else {
diff --git a/wp-includes/html-api/class-wp-html-decoder.php b/wp-includes/html-api/class-wp-html-decoder.php
new file mode 100644
index 0000000..7897600
--- /dev/null
+++ b/wp-includes/html-api/class-wp-html-decoder.php
@@ -0,0 +1,461 @@
+<?php
+
+/**
+ * HTML API: WP_HTML_Decoder class
+ *
+ * Decodes spans of raw text found inside HTML content.
+ *
+ * @package WordPress
+ * @subpackage HTML-API
+ * @since 6.6.0
+ */
+class WP_HTML_Decoder {
+ /**
+ * Indicates if an attribute value starts with a given raw string value.
+ *
+ * Use this method to determine if an attribute value starts with a given string, regardless
+ * of how it might be encoded in HTML. For instance, `http:` could be represented as `http:`
+ * or as `http&colon;` or as `&#x68;ttp:` or as `h&#116;tp&colon;`, or in many other ways.
+ *
+ * Example:
+ *
+ * $value = 'http&colon;//wordpress.org/';
+ * true === WP_HTML_Decoder::attribute_starts_with( $value, 'http:', 'ascii-case-insensitive' );
+ * false === WP_HTML_Decoder::attribute_starts_with( $value, 'https:', 'ascii-case-insensitive' );
+ *
+ * @since 6.6.0
+ *
+ * @param string $haystack String containing the raw non-decoded attribute value.
+ * @param string $search_text Does the attribute value start with this plain string.
+ * @param string $case_sensitivity Optional. Pass 'ascii-case-insensitive' to ignore ASCII case when matching.
+ * Default 'case-sensitive'.
+ * @return bool Whether the attribute value starts with the given string.
+ */
+ public static function attribute_starts_with( $haystack, $search_text, $case_sensitivity = 'case-sensitive' ) {
+ $search_length = strlen( $search_text );
+ $loose_case = 'ascii-case-insensitive' === $case_sensitivity;
+ $haystack_end = strlen( $haystack );
+ $search_at = 0;
+ $haystack_at = 0;
+
+ while ( $search_at < $search_length && $haystack_at < $haystack_end ) {
+ $chars_match = $loose_case
+ ? strtolower( $haystack[ $haystack_at ] ) === strtolower( $search_text[ $search_at ] )
+ : $haystack[ $haystack_at ] === $search_text[ $search_at ];
+
+ $is_introducer = '&' === $haystack[ $haystack_at ];
+ $next_chunk = $is_introducer
+ ? self::read_character_reference( 'attribute', $haystack, $haystack_at, $token_length )
+ : null;
+
+ // If there's no character reference and the characters don't match, the match fails.
+ if ( null === $next_chunk && ! $chars_match ) {
+ return false;
+ }
+
+ // If there's no character reference but the character do match, then it could still match.
+ if ( null === $next_chunk && $chars_match ) {
+ ++$haystack_at;
+ ++$search_at;
+ continue;
+ }
+
+ // If there is a character reference, then the decoded value must exactly match what follows in the search string.
+ if ( 0 !== substr_compare( $search_text, $next_chunk, $search_at, strlen( $next_chunk ), $loose_case ) ) {
+ return false;
+ }
+
+ // The character reference matched, so continue checking.
+ $haystack_at += $token_length;
+ $search_at += strlen( $next_chunk );
+ }
+
+ return true;
+ }
+
+ /**
+ * Returns a string containing the decoded value of a given HTML text node.
+ *
+ * Text nodes appear in HTML DATA sections, which are the text segments inside
+ * and around tags, excepting SCRIPT and STYLE elements (and some others),
+ * whose inner text is not decoded. Use this function to read the decoded
+ * value of such a text span in an HTML document.
+ *
+ * Example:
+ *
+ * '“😄”' === WP_HTML_Decode::decode_text_node( '&#x93;&#x1f604;&#x94' );
+ *
+ * @since 6.6.0
+ *
+ * @param string $text Text containing raw and non-decoded text node to decode.
+ * @return string Decoded UTF-8 value of given text node.
+ */
+ public static function decode_text_node( $text ) {
+ return static::decode( 'data', $text );
+ }
+
+ /**
+ * Returns a string containing the decoded value of a given HTML attribute.
+ *
+ * Text found inside an HTML attribute has different parsing rules than for
+ * text found inside other markup, or DATA segments. Use this function to
+ * read the decoded value of an HTML string inside a quoted attribute.
+ *
+ * Example:
+ *
+ * '“😄”' === WP_HTML_Decode::decode_attribute( '&#x93;&#x1f604;&#x94' );
+ *
+ * @since 6.6.0
+ *
+ * @param string $text Text containing raw and non-decoded attribute value to decode.
+ * @return string Decoded UTF-8 value of given attribute value.
+ */
+ public static function decode_attribute( $text ) {
+ return static::decode( 'attribute', $text );
+ }
+
+ /**
+ * Decodes a span of HTML text, depending on the context in which it's found.
+ *
+ * This is a low-level method; prefer calling WP_HTML_Decoder::decode_attribute() or
+ * WP_HTML_Decoder::decode_text_node() instead. It's provided for cases where this
+ * may be difficult to do from calling code.
+ *
+ * Example:
+ *
+ * '©' = WP_HTML_Decoder::decode( 'data', '&copy;' );
+ *
+ * @since 6.6.0
+ *
+ * @access private
+ *
+ * @param string $context `attribute` for decoding attribute values, `data` otherwise.
+ * @param string $text Text document containing span of text to decode.
+ * @return string Decoded UTF-8 string.
+ */
+ public static function decode( $context, $text ) {
+ $decoded = '';
+ $end = strlen( $text );
+ $at = 0;
+ $was_at = 0;
+
+ while ( $at < $end ) {
+ $next_character_reference_at = strpos( $text, '&', $at );
+ if ( false === $next_character_reference_at || $next_character_reference_at >= $end ) {
+ break;
+ }
+
+ $character_reference = self::read_character_reference( $context, $text, $next_character_reference_at, $token_length );
+ if ( isset( $character_reference ) ) {
+ $at = $next_character_reference_at;
+ $decoded .= substr( $text, $was_at, $at - $was_at );
+ $decoded .= $character_reference;
+ $at += $token_length;
+ $was_at = $at;
+ continue;
+ }
+
+ ++$at;
+ }
+
+ if ( 0 === $was_at ) {
+ return $text;
+ }
+
+ if ( $was_at < $end ) {
+ $decoded .= substr( $text, $was_at, $end - $was_at );
+ }
+
+ return $decoded;
+ }
+
+ /**
+ * Attempt to read a character reference at the given location in a given string,
+ * depending on the context in which it's found.
+ *
+ * If a character reference is found, this function will return the translated value
+ * that the reference maps to. It will then set `$match_byte_length` the
+ * number of bytes of input it read while consuming the character reference. This
+ * gives calling code the opportunity to advance its cursor when traversing a string
+ * and decoding.
+ *
+ * Example:
+ *
+ * null === WP_HTML_Decoder::read_character_reference( 'attribute', 'Ships&hellip;', 0 );
+ * '…' === WP_HTML_Decoder::read_character_reference( 'attribute', 'Ships&hellip;', 5, $token_length );
+ * 8 === $token_length; // `&hellip;`
+ *
+ * null === WP_HTML_Decoder::read_character_reference( 'attribute', '&notin', 0 );
+ * '∉' === WP_HTML_Decoder::read_character_reference( 'attribute', '&notin;', 0, $token_length );
+ * 7 === $token_length; // `&notin;`
+ *
+ * '¬' === WP_HTML_Decoder::read_character_reference( 'data', '&notin', 0, $token_length );
+ * 4 === $token_length; // `&not`
+ * '∉' === WP_HTML_Decoder::read_character_reference( 'data', '&notin;', 0, $token_length );
+ * 7 === $token_length; // `&notin;`
+ *
+ * @since 6.6.0
+ *
+ * @param string $context `attribute` for decoding attribute values, `data` otherwise.
+ * @param string $text Text document containing span of text to decode.
+ * @param int $at Optional. Byte offset into text where span begins, defaults to the beginning (0).
+ * @param int &$match_byte_length Optional. Set to byte-length of character reference if provided and if a match
+ * is found, otherwise not set. Default null.
+ * @return string|false Decoded character reference in UTF-8 if found, otherwise `false`.
+ */
+ public static function read_character_reference( $context, $text, $at = 0, &$match_byte_length = null ) {
+ /**
+ * Mappings for HTML5 named character references.
+ *
+ * @var WP_Token_Map $html5_named_character_references
+ */
+ global $html5_named_character_references;
+
+ $length = strlen( $text );
+ if ( $at + 1 >= $length ) {
+ return null;
+ }
+
+ if ( '&' !== $text[ $at ] ) {
+ return null;
+ }
+
+ /*
+ * Numeric character references.
+ *
+ * When truncated, these will encode the code point found by parsing the
+ * digits that are available. For example, when `&#x1f170;` is truncated
+ * to `&#x1f1` it will encode `DZ`. It does not:
+ * - know how to parse the original `🅰`.
+ * - fail to parse and return plaintext `&#x1f1`.
+ * - fail to parse and return the replacement character `�`
+ */
+ if ( '#' === $text[ $at + 1 ] ) {
+ if ( $at + 2 >= $length ) {
+ return null;
+ }
+
+ /** Tracks inner parsing within the numeric character reference. */
+ $digits_at = $at + 2;
+
+ if ( 'x' === $text[ $digits_at ] || 'X' === $text[ $digits_at ] ) {
+ $numeric_base = 16;
+ $numeric_digits = '0123456789abcdefABCDEF';
+ $max_digits = 6; // &#x10FFFF;
+ ++$digits_at;
+ } else {
+ $numeric_base = 10;
+ $numeric_digits = '0123456789';
+ $max_digits = 7; // &#1114111;
+ }
+
+ // Cannot encode invalid Unicode code points. Max is to U+10FFFF.
+ $zero_count = strspn( $text, '0', $digits_at );
+ $digit_count = strspn( $text, $numeric_digits, $digits_at + $zero_count );
+ $after_digits = $digits_at + $zero_count + $digit_count;
+ $has_semicolon = $after_digits < $length && ';' === $text[ $after_digits ];
+ $end_of_span = $has_semicolon ? $after_digits + 1 : $after_digits;
+
+ // `&#` or `&#x` without digits returns into plaintext.
+ if ( 0 === $digit_count && 0 === $zero_count ) {
+ return null;
+ }
+
+ // Whereas `&#` and only zeros is invalid.
+ if ( 0 === $digit_count ) {
+ $match_byte_length = $end_of_span - $at;
+ return '�';
+ }
+
+ // If there are too many digits then it's not worth parsing. It's invalid.
+ if ( $digit_count > $max_digits ) {
+ $match_byte_length = $end_of_span - $at;
+ return '�';
+ }
+
+ $digits = substr( $text, $digits_at + $zero_count, $digit_count );
+ $code_point = intval( $digits, $numeric_base );
+
+ /*
+ * Noncharacters, 0x0D, and non-ASCII-whitespace control characters.
+ *
+ * > A noncharacter is a code point that is in the range U+FDD0 to U+FDEF,
+ * > inclusive, or U+FFFE, U+FFFF, U+1FFFE, U+1FFFF, U+2FFFE, U+2FFFF,
+ * > U+3FFFE, U+3FFFF, U+4FFFE, U+4FFFF, U+5FFFE, U+5FFFF, U+6FFFE,
+ * > U+6FFFF, U+7FFFE, U+7FFFF, U+8FFFE, U+8FFFF, U+9FFFE, U+9FFFF,
+ * > U+AFFFE, U+AFFFF, U+BFFFE, U+BFFFF, U+CFFFE, U+CFFFF, U+DFFFE,
+ * > U+DFFFF, U+EFFFE, U+EFFFF, U+FFFFE, U+FFFFF, U+10FFFE, or U+10FFFF.
+ *
+ * A C0 control is a code point that is in the range of U+00 to U+1F,
+ * but ASCII whitespace includes U+09, U+0A, U+0C, and U+0D.
+ *
+ * These characters are invalid but still decode as any valid character.
+ * This comment is here to note and explain why there's no check to
+ * remove these characters or replace them.
+ *
+ * @see https://infra.spec.whatwg.org/#noncharacter
+ */
+
+ /*
+ * Code points in the C1 controls area need to be remapped as if they
+ * were stored in Windows-1252. Note! This transformation only happens
+ * for numeric character references. The raw code points in the byte
+ * stream are not translated.
+ *
+ * > If the number is one of the numbers in the first column of
+ * > the following table, then find the row with that number in
+ * > the first column, and set the character reference code to
+ * > the number in the second column of that row.
+ */
+ if ( $code_point >= 0x80 && $code_point <= 0x9F ) {
+ $windows_1252_mapping = array(
+ 0x20AC, // 0x80 -> EURO SIGN (€).
+ 0x81, // 0x81 -> (no change).
+ 0x201A, // 0x82 -> SINGLE LOW-9 QUOTATION MARK (‚).
+ 0x0192, // 0x83 -> LATIN SMALL LETTER F WITH HOOK (ƒ).
+ 0x201E, // 0x84 -> DOUBLE LOW-9 QUOTATION MARK („).
+ 0x2026, // 0x85 -> HORIZONTAL ELLIPSIS (…).
+ 0x2020, // 0x86 -> DAGGER (†).
+ 0x2021, // 0x87 -> DOUBLE DAGGER (‡).
+ 0x02C6, // 0x88 -> MODIFIER LETTER CIRCUMFLEX ACCENT (ˆ).
+ 0x2030, // 0x89 -> PER MILLE SIGN (‰).
+ 0x0160, // 0x8A -> LATIN CAPITAL LETTER S WITH CARON (Š).
+ 0x2039, // 0x8B -> SINGLE LEFT-POINTING ANGLE QUOTATION MARK (‹).
+ 0x0152, // 0x8C -> LATIN CAPITAL LIGATURE OE (Œ).
+ 0x8D, // 0x8D -> (no change).
+ 0x017D, // 0x8E -> LATIN CAPITAL LETTER Z WITH CARON (Ž).
+ 0x8F, // 0x8F -> (no change).
+ 0x90, // 0x90 -> (no change).
+ 0x2018, // 0x91 -> LEFT SINGLE QUOTATION MARK (‘).
+ 0x2019, // 0x92 -> RIGHT SINGLE QUOTATION MARK (’).
+ 0x201C, // 0x93 -> LEFT DOUBLE QUOTATION MARK (“).
+ 0x201D, // 0x94 -> RIGHT DOUBLE QUOTATION MARK (”).
+ 0x2022, // 0x95 -> BULLET (•).
+ 0x2013, // 0x96 -> EN DASH (–).
+ 0x2014, // 0x97 -> EM DASH (—).
+ 0x02DC, // 0x98 -> SMALL TILDE (˜).
+ 0x2122, // 0x99 -> TRADE MARK SIGN (™).
+ 0x0161, // 0x9A -> LATIN SMALL LETTER S WITH CARON (š).
+ 0x203A, // 0x9B -> SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (›).
+ 0x0153, // 0x9C -> LATIN SMALL LIGATURE OE (œ).
+ 0x9D, // 0x9D -> (no change).
+ 0x017E, // 0x9E -> LATIN SMALL LETTER Z WITH CARON (ž).
+ 0x0178, // 0x9F -> LATIN CAPITAL LETTER Y WITH DIAERESIS (Ÿ).
+ );
+
+ $code_point = $windows_1252_mapping[ $code_point - 0x80 ];
+ }
+
+ $match_byte_length = $end_of_span - $at;
+ return self::code_point_to_utf8_bytes( $code_point );
+ }
+
+ /** Tracks inner parsing within the named character reference. */
+ $name_at = $at + 1;
+ // Minimum named character reference is two characters. E.g. `GT`.
+ if ( $name_at + 2 > $length ) {
+ return null;
+ }
+
+ $name_length = 0;
+ $replacement = $html5_named_character_references->read_token( $text, $name_at, $name_length );
+ if ( false === $replacement ) {
+ return null;
+ }
+
+ $after_name = $name_at + $name_length;
+
+ // If the match ended with a semicolon then it should always be decoded.
+ if ( ';' === $text[ $name_at + $name_length - 1 ] ) {
+ $match_byte_length = $after_name - $at;
+ return $replacement;
+ }
+
+ /*
+ * At this point though there's a match for an entry in the named
+ * character reference table but the match doesn't end in `;`.
+ * It may be allowed if it's followed by something unambiguous.
+ */
+ $ambiguous_follower = (
+ $after_name < $length &&
+ $name_at < $length &&
+ (
+ ctype_alnum( $text[ $after_name ] ) ||
+ '=' === $text[ $after_name ]
+ )
+ );
+
+ // It's non-ambiguous, safe to leave it in.
+ if ( ! $ambiguous_follower ) {
+ $match_byte_length = $after_name - $at;
+ return $replacement;
+ }
+
+ // It's ambiguous, which isn't allowed inside attributes.
+ if ( 'attribute' === $context ) {
+ return null;
+ }
+
+ $match_byte_length = $after_name - $at;
+ return $replacement;
+ }
+
+ /**
+ * Encode a code point number into the UTF-8 encoding.
+ *
+ * This encoder implements the UTF-8 encoding algorithm for converting
+ * a code point into a byte sequence. If it receives an invalid code
+ * point it will return the Unicode Replacement Character U+FFFD `�`.
+ *
+ * Example:
+ *
+ * '🅰' === WP_HTML_Decoder::code_point_to_utf8_bytes( 0x1f170 );
+ *
+ * // Half of a surrogate pair is an invalid code point.
+ * '�' === WP_HTML_Decoder::code_point_to_utf8_bytes( 0xd83c );
+ *
+ * @since 6.6.0
+ *
+ * @see https://www.rfc-editor.org/rfc/rfc3629 For the UTF-8 standard.
+ *
+ * @param int $code_point Which code point to convert.
+ * @return string Converted code point, or `�` if invalid.
+ */
+ public static function code_point_to_utf8_bytes( $code_point ) {
+ // Pre-check to ensure a valid code point.
+ if (
+ $code_point <= 0 ||
+ ( $code_point >= 0xD800 && $code_point <= 0xDFFF ) ||
+ $code_point > 0x10FFFF
+ ) {
+ return '�';
+ }
+
+ if ( $code_point <= 0x7F ) {
+ return chr( $code_point );
+ }
+
+ if ( $code_point <= 0x7FF ) {
+ $byte1 = ( $code_point >> 6 ) | 0xC0;
+ $byte2 = $code_point & 0x3F | 0x80;
+
+ return pack( 'CC', $byte1, $byte2 );
+ }
+
+ if ( $code_point <= 0xFFFF ) {
+ $byte1 = ( $code_point >> 12 ) | 0xE0;
+ $byte2 = ( $code_point >> 6 ) & 0x3F | 0x80;
+ $byte3 = $code_point & 0x3F | 0x80;
+
+ return pack( 'CCC', $byte1, $byte2, $byte3 );
+ }
+
+ // Any values above U+10FFFF are eliminated above in the pre-check.
+ $byte1 = ( $code_point >> 18 ) | 0xF0;
+ $byte2 = ( $code_point >> 12 ) & 0x3F | 0x80;
+ $byte3 = ( $code_point >> 6 ) & 0x3F | 0x80;
+ $byte4 = $code_point & 0x3F | 0x80;
+
+ return pack( 'CCCC', $byte1, $byte2, $byte3, $byte4 );
+ }
+}
diff --git a/wp-includes/html-api/class-wp-html-open-elements.php b/wp-includes/html-api/class-wp-html-open-elements.php
index 1234abc..1547980 100644
--- a/wp-includes/html-api/class-wp-html-open-elements.php
+++ b/wp-includes/html-api/class-wp-html-open-elements.php
@@ -52,6 +52,56 @@ class WP_HTML_Open_Elements {
private $has_p_in_button_scope = false;
/**
+ * A function that will be called when an item is popped off the stack of open elements.
+ *
+ * The function will be called with the popped item as its argument.
+ *
+ * @since 6.6.0
+ *
+ * @var Closure
+ */
+ private $pop_handler = null;
+
+ /**
+ * A function that will be called when an item is pushed onto the stack of open elements.
+ *
+ * The function will be called with the pushed item as its argument.
+ *
+ * @since 6.6.0
+ *
+ * @var Closure
+ */
+ private $push_handler = null;
+
+ /**
+ * Sets a pop handler that will be called when an item is popped off the stack of
+ * open elements.
+ *
+ * The function will be called with the pushed item as its argument.
+ *
+ * @since 6.6.0
+ *
+ * @param Closure $handler The handler function.
+ */
+ public function set_pop_handler( Closure $handler ) {
+ $this->pop_handler = $handler;
+ }
+
+ /**
+ * Sets a push handler that will be called when an item is pushed onto the stack of
+ * open elements.
+ *
+ * The function will be called with the pushed item as its argument.
+ *
+ * @since 6.6.0
+ *
+ * @param Closure $handler The handler function.
+ */
+ public function set_push_handler( Closure $handler ) {
+ $this->push_handler = $handler;
+ }
+
+ /**
* Reports if a specific node is in the stack of open elements.
*
* @since 6.4.0
@@ -258,11 +308,15 @@ class WP_HTML_Open_Elements {
*/
public function pop() {
$item = array_pop( $this->stack );
-
if ( null === $item ) {
return false;
}
+ if ( 'context-node' === $item->bookmark_name ) {
+ $this->stack[] = $item;
+ return false;
+ }
+
$this->after_element_pop( $item );
return true;
}
@@ -279,6 +333,10 @@ class WP_HTML_Open_Elements {
*/
public function pop_until( $tag_name ) {
foreach ( $this->walk_up() as $item ) {
+ if ( 'context-node' === $item->bookmark_name ) {
+ return true;
+ }
+
$this->pop();
if (
@@ -319,6 +377,10 @@ class WP_HTML_Open_Elements {
* @return bool Whether the node was found and removed from the stack of open elements.
*/
public function remove_node( $token ) {
+ if ( 'context-node' === $token->bookmark_name ) {
+ return false;
+ }
+
foreach ( $this->walk_up() as $position_from_end => $item ) {
if ( $token->bookmark_name !== $item->bookmark_name ) {
continue;
@@ -429,6 +491,10 @@ class WP_HTML_Open_Elements {
$this->has_p_in_button_scope = true;
break;
}
+
+ if ( null !== $this->push_handler ) {
+ ( $this->push_handler )( $item );
+ }
}
/**
@@ -458,5 +524,18 @@ class WP_HTML_Open_Elements {
$this->has_p_in_button_scope = $this->has_element_in_button_scope( 'P' );
break;
}
+
+ if ( null !== $this->pop_handler ) {
+ ( $this->pop_handler )( $item );
+ }
+ }
+
+ /**
+ * Wakeup magic method.
+ *
+ * @since 6.6.0
+ */
+ public function __wakeup() {
+ throw new \LogicException( __CLASS__ . ' should never be unserialized' );
}
}
diff --git a/wp-includes/html-api/class-wp-html-processor.php b/wp-includes/html-api/class-wp-html-processor.php
index c76cc19..29f1c7a 100644
--- a/wp-includes/html-api/class-wp-html-processor.php
+++ b/wp-includes/html-api/class-wp-html-processor.php
@@ -201,6 +201,52 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
*/
private $release_internal_bookmark_on_destruct = null;
+ /**
+ * Stores stack events which arise during parsing of the
+ * HTML document, which will then supply the "match" events.
+ *
+ * @since 6.6.0
+ *
+ * @var WP_HTML_Stack_Event[]
+ */
+ private $element_queue = array();
+
+ /**
+ * Current stack event, if set, representing a matched token.
+ *
+ * Because the parser may internally point to a place further along in a document
+ * than the nodes which have already been processed (some "virtual" nodes may have
+ * appeared while scanning the HTML document), this will point at the "current" node
+ * being processed. It comes from the front of the element queue.
+ *
+ * @since 6.6.0
+ *
+ * @var ?WP_HTML_Stack_Event
+ */
+ private $current_element = null;
+
+ /**
+ * Context node if created as a fragment parser.
+ *
+ * @var ?WP_HTML_Token
+ */
+ private $context_node = null;
+
+ /**
+ * Whether the parser has yet processed the context node,
+ * if created as a fragment parser.
+ *
+ * The context node will be initially pushed onto the stack of open elements,
+ * but when created as a fragment parser, this context element (and the implicit
+ * HTML document node above it) should not be exposed as a matched token or node.
+ *
+ * This boolean indicates whether the processor should skip over the current
+ * node in its initial search for the first node created from the input HTML.
+ *
+ * @var bool
+ */
+ private $has_seen_context_node = false;
+
/*
* Public Interface Functions
*/
@@ -230,18 +276,19 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
* - The only supported document encoding is `UTF-8`, which is the default value.
*
* @since 6.4.0
+ * @since 6.6.0 Returns `static` instead of `self` so it can create subclass instances.
*
* @param string $html Input HTML fragment to process.
* @param string $context Context element for the fragment, must be default of `<body>`.
* @param string $encoding Text encoding of the document; must be default of 'UTF-8'.
- * @return WP_HTML_Processor|null The created processor if successful, otherwise null.
+ * @return static|null The created processor if successful, otherwise null.
*/
public static function create_fragment( $html, $context = '<body>', $encoding = 'UTF-8' ) {
if ( '<body>' !== $context || 'UTF-8' !== $encoding ) {
return null;
}
- $processor = new self( $html, self::CONSTRUCTOR_UNLOCK_CODE );
+ $processor = new static( $html, self::CONSTRUCTOR_UNLOCK_CODE );
$processor->state->context_node = array( 'BODY', array() );
$processor->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_BODY;
@@ -257,14 +304,15 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
)
);
- $processor->state->stack_of_open_elements->push(
- new WP_HTML_Token(
- 'context-node',
- $processor->state->context_node[0],
- false
- )
+ $context_node = new WP_HTML_Token(
+ 'context-node',
+ $processor->state->context_node[0],
+ false
);
+ $processor->state->stack_of_open_elements->push( $context_node );
+ $processor->context_node = $context_node;
+
return $processor;
}
@@ -299,6 +347,24 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
$this->state = new WP_HTML_Processor_State();
+ $this->state->stack_of_open_elements->set_push_handler(
+ function ( WP_HTML_Token $token ) {
+ $is_virtual = ! isset( $this->state->current_token ) || $this->is_tag_closer();
+ $same_node = isset( $this->state->current_token ) && $token->node_name === $this->state->current_token->node_name;
+ $provenance = ( ! $same_node || $is_virtual ) ? 'virtual' : 'real';
+ $this->element_queue[] = new WP_HTML_Stack_Event( $token, WP_HTML_Stack_Event::PUSH, $provenance );
+ }
+ );
+
+ $this->state->stack_of_open_elements->set_pop_handler(
+ function ( WP_HTML_Token $token ) {
+ $is_virtual = ! isset( $this->state->current_token ) || ! $this->is_tag_closer();
+ $same_node = isset( $this->state->current_token ) && $token->node_name === $this->state->current_token->node_name;
+ $provenance = ( ! $same_node || $is_virtual ) ? 'virtual' : 'real';
+ $this->element_queue[] = new WP_HTML_Stack_Event( $token, WP_HTML_Stack_Event::POP, $provenance );
+ }
+ );
+
/*
* Create this wrapper so that it's possible to pass
* a private method into WP_HTML_Token classes without
@@ -342,6 +408,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
* @todo Support matching the class name and tag name.
*
* @since 6.4.0
+ * @since 6.6.0 Visits all tokens, including virtual ones.
*
* @throws Exception When unable to allocate a bookmark for the next token in the input HTML document.
*
@@ -349,6 +416,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
* Optional. Which tag name to find, having which class, etc. Default is to find any tag.
*
* @type string|null $tag_name Which tag to find, or `null` for "any tag."
+ * @type string $tag_closers 'visit' to pause at tag closers, 'skip' or unset to only visit openers.
* @type int|null $match_offset Find the Nth tag matching all search criteria.
* 1 for "first" tag, 3 for "third," etc.
* Defaults to first tag.
@@ -359,13 +427,15 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
* @return bool Whether a tag was matched.
*/
public function next_tag( $query = null ) {
+ $visit_closers = isset( $query['tag_closers'] ) && 'visit' === $query['tag_closers'];
+
if ( null === $query ) {
- while ( $this->step() ) {
+ while ( $this->next_token() ) {
if ( '#tag' !== $this->get_token_type() ) {
continue;
}
- if ( ! $this->is_tag_closer() ) {
+ if ( ! $this->is_tag_closer() || $visit_closers ) {
return true;
}
}
@@ -386,13 +456,21 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
return false;
}
+ $needs_class = ( isset( $query['class_name'] ) && is_string( $query['class_name'] ) )
+ ? $query['class_name']
+ : null;
+
if ( ! ( array_key_exists( 'breadcrumbs', $query ) && is_array( $query['breadcrumbs'] ) ) ) {
- while ( $this->step() ) {
+ while ( $this->next_token() ) {
if ( '#tag' !== $this->get_token_type() ) {
continue;
}
- if ( ! $this->is_tag_closer() ) {
+ if ( isset( $needs_class ) && ! $this->has_class( $needs_class ) ) {
+ continue;
+ }
+
+ if ( ! $this->is_tag_closer() || $visit_closers ) {
return true;
}
}
@@ -400,20 +478,15 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
return false;
}
- if ( isset( $query['tag_closers'] ) && 'visit' === $query['tag_closers'] ) {
- _doing_it_wrong(
- __METHOD__,
- __( 'Cannot visit tag closers in HTML Processor.' ),
- '6.4.0'
- );
- return false;
- }
-
$breadcrumbs = $query['breadcrumbs'];
$match_offset = isset( $query['match_offset'] ) ? (int) $query['match_offset'] : 1;
- while ( $match_offset > 0 && $this->step() ) {
- if ( '#tag' !== $this->get_token_type() ) {
+ while ( $match_offset > 0 && $this->next_token() ) {
+ if ( '#tag' !== $this->get_token_type() || $this->is_tag_closer() ) {
+ continue;
+ }
+
+ if ( isset( $needs_class ) && ! $this->has_class( $needs_class ) ) {
continue;
}
@@ -440,7 +513,92 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
* @return bool
*/
public function next_token() {
- return $this->step();
+ $this->current_element = null;
+
+ if ( isset( $this->last_error ) ) {
+ return false;
+ }
+
+ if ( 'done' !== $this->has_seen_context_node && 0 === count( $this->element_queue ) && ! $this->step() ) {
+ while ( 'context-node' !== $this->state->stack_of_open_elements->current_node()->bookmark_name && $this->state->stack_of_open_elements->pop() ) {
+ continue;
+ }
+ $this->has_seen_context_node = 'done';
+ return $this->next_token();
+ }
+
+ $this->current_element = array_shift( $this->element_queue );
+ while ( isset( $this->context_node ) && ! $this->has_seen_context_node ) {
+ if ( isset( $this->current_element ) ) {
+ if ( $this->context_node === $this->current_element->token && WP_HTML_Stack_Event::PUSH === $this->current_element->operation ) {
+ $this->has_seen_context_node = true;
+ return $this->next_token();
+ }
+ }
+ $this->current_element = array_shift( $this->element_queue );
+ }
+
+ if ( ! isset( $this->current_element ) ) {
+ if ( 'done' === $this->has_seen_context_node ) {
+ return false;
+ } else {
+ return $this->next_token();
+ }
+ }
+
+ if ( isset( $this->context_node ) && WP_HTML_Stack_Event::POP === $this->current_element->operation && $this->context_node === $this->current_element->token ) {
+ $this->element_queue = array();
+ $this->current_element = null;
+ return false;
+ }
+
+ // Avoid sending close events for elements which don't expect a closing.
+ if (
+ WP_HTML_Stack_Event::POP === $this->current_element->operation &&
+ ! static::expects_closer( $this->current_element->token )
+ ) {
+ return $this->next_token();
+ }
+
+ return true;
+ }
+
+
+ /**
+ * Indicates if the current tag token is a tag closer.
+ *
+ * Example:
+ *
+ * $p = WP_HTML_Processor::create_fragment( '<div></div>' );
+ * $p->next_tag( array( 'tag_name' => 'div', 'tag_closers' => 'visit' ) );
+ * $p->is_tag_closer() === false;
+ *
+ * $p->next_tag( array( 'tag_name' => 'div', 'tag_closers' => 'visit' ) );
+ * $p->is_tag_closer() === true;
+ *
+ * @since 6.6.0 Subclassed for HTML Processor.
+ *
+ * @return bool Whether the current tag is a tag closer.
+ */
+ public function is_tag_closer() {
+ return $this->is_virtual()
+ ? ( WP_HTML_Stack_Event::POP === $this->current_element->operation && '#tag' === $this->get_token_type() )
+ : parent::is_tag_closer();
+ }
+
+ /**
+ * Indicates if the currently-matched token is virtual, created by a stack operation
+ * while processing HTML, rather than a token found in the HTML text itself.
+ *
+ * @since 6.6.0
+ *
+ * @return bool Whether the current token is virtual.
+ */
+ private function is_virtual() {
+ return (
+ isset( $this->current_element->provenance ) &&
+ 'virtual' === $this->current_element->provenance
+ );
}
/**
@@ -497,6 +655,45 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
}
/**
+ * Indicates if the currently-matched node expects a closing
+ * token, or if it will self-close on the next step.
+ *
+ * Most HTML elements expect a closer, such as a P element or
+ * a DIV element. Others, like an IMG element are void and don't
+ * have a closing tag. Special elements, such as SCRIPT and STYLE,
+ * are treated just like void tags. Text nodes and self-closing
+ * foreign content will also act just like a void tag, immediately
+ * closing as soon as the processor advances to the next token.
+ *
+ * @since 6.6.0
+ *
+ * @todo When adding support for foreign content, ensure that
+ * this returns false for self-closing elements in the
+ * SVG and MathML namespace.
+ *
+ * @param ?WP_HTML_Token $node Node to examine instead of current node, if provided.
+ * @return bool Whether to expect a closer for the currently-matched node,
+ * or `null` if not matched on any token.
+ */
+ public function expects_closer( $node = null ) {
+ $token_name = $node->node_name ?? $this->get_token_name();
+ if ( ! isset( $token_name ) ) {
+ return null;
+ }
+
+ return ! (
+ // Comments, text nodes, and other atomic tokens.
+ '#' === $token_name[0] ||
+ // Doctype declarations.
+ 'html' === $token_name ||
+ // Void elements.
+ self::is_void( $token_name ) ||
+ // Special atomic elements.
+ in_array( $token_name, array( 'IFRAME', 'NOEMBED', 'NOFRAMES', 'SCRIPT', 'STYLE', 'TEXTAREA', 'TITLE', 'XMP' ), true )
+ );
+ }
+
+ /**
* Steps through the HTML document and stop at the next tag, if any.
*
* @since 6.4.0
@@ -531,16 +728,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
* is provided in the opening tag, otherwise it expects a tag closer.
*/
$top_node = $this->state->stack_of_open_elements->current_node();
- if (
- $top_node && (
- // Void elements.
- self::is_void( $top_node->node_name ) ||
- // Comments, text nodes, and other atomic tokens.
- '#' === $top_node->node_name[0] ||
- // Doctype declarations.
- 'html' === $top_node->node_name
- )
- ) {
+ if ( isset( $top_node ) && ! static::expects_closer( $top_node ) ) {
$this->state->stack_of_open_elements->pop();
}
}
@@ -604,14 +792,79 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
*/
public function get_breadcrumbs() {
$breadcrumbs = array();
+
foreach ( $this->state->stack_of_open_elements->walk_down() as $stack_item ) {
$breadcrumbs[] = $stack_item->node_name;
}
+ if ( ! $this->is_virtual() ) {
+ return $breadcrumbs;
+ }
+
+ foreach ( $this->element_queue as $queue_item ) {
+ if ( $this->current_element->token->bookmark_name === $queue_item->token->bookmark_name ) {
+ break;
+ }
+
+ if ( 'context-node' === $queue_item->token->bookmark_name ) {
+ break;
+ }
+
+ if ( 'real' === $queue_item->provenance ) {
+ break;
+ }
+
+ if ( WP_HTML_Stack_Event::PUSH === $queue_item->operation ) {
+ $breadcrumbs[] = $queue_item->token->node_name;
+ } else {
+ array_pop( $breadcrumbs );
+ }
+ }
+
+ if ( null !== parent::get_token_name() && ! parent::is_tag_closer() ) {
+ array_pop( $breadcrumbs );
+ }
+
+ // Add the virtual node we're at.
+ if ( WP_HTML_Stack_Event::PUSH === $this->current_element->operation ) {
+ $breadcrumbs[] = $this->current_element->token->node_name;
+ }
+
return $breadcrumbs;
}
/**
+ * Returns the nesting depth of the current location in the document.
+ *
+ * Example:
+ *
+ * $processor = WP_HTML_Processor::create_fragment( '<div><p></p></div>' );
+ * // The processor starts in the BODY context, meaning it has depth from the start: HTML > BODY.
+ * 2 === $processor->get_current_depth();
+ *
+ * // Opening the DIV element increases the depth.
+ * $processor->next_token();
+ * 3 === $processor->get_current_depth();
+ *
+ * // Opening the P element increases the depth.
+ * $processor->next_token();
+ * 4 === $processor->get_current_depth();
+ *
+ * // The P element is closed during `next_token()` so the depth is decreased to reflect that.
+ * $processor->next_token();
+ * 3 === $processor->get_current_depth();
+ *
+ * @since 6.6.0
+ *
+ * @return int Nesting-depth of current location in the document.
+ */
+ public function get_current_depth() {
+ return $this->is_virtual()
+ ? count( $this->get_breadcrumbs() )
+ : $this->state->stack_of_open_elements->count();
+ }
+
+ /**
* Parses next element in the 'in body' insertion mode.
*
* This internal function performs the 'in body' insertion mode
@@ -629,7 +882,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
private function step_in_body() {
$token_name = $this->get_token_name();
$token_type = $this->get_token_type();
- $op_sigil = '#tag' === $token_type ? ( $this->is_tag_closer() ? '-' : '+' ) : '';
+ $op_sigil = '#tag' === $token_type ? ( parent::is_tag_closer() ? '-' : '+' ) : '';
$op = "{$op_sigil}{$token_name}";
switch ( $op ) {
@@ -1152,7 +1405,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
throw new WP_HTML_Unsupported_Exception( "Cannot process {$token_name} element." );
}
- if ( ! $this->is_tag_closer() ) {
+ if ( ! parent::is_tag_closer() ) {
/*
* > Any other start tag
*/
@@ -1248,6 +1501,10 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
return null;
}
+ if ( $this->is_virtual() ) {
+ return $this->current_element->token->node_name;
+ }
+
$tag_name = parent::get_tag();
switch ( $tag_name ) {
@@ -1264,6 +1521,286 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
}
/**
+ * Indicates if the currently matched tag contains the self-closing flag.
+ *
+ * No HTML elements ought to have the self-closing flag and for those, the self-closing
+ * flag will be ignored. For void elements this is benign because they "self close"
+ * automatically. For non-void HTML elements though problems will appear if someone
+ * intends to use a self-closing element in place of that element with an empty body.
+ * For HTML foreign elements and custom elements the self-closing flag determines if
+ * they self-close or not.
+ *
+ * This function does not determine if a tag is self-closing,
+ * but only if the self-closing flag is present in the syntax.
+ *
+ * @since 6.6.0 Subclassed for the HTML Processor.
+ *
+ * @return bool Whether the currently matched tag contains the self-closing flag.
+ */
+ public function has_self_closing_flag() {
+ return $this->is_virtual() ? false : parent::has_self_closing_flag();
+ }
+
+ /**
+ * Returns the node name represented by the token.
+ *
+ * This matches the DOM API value `nodeName`. Some values
+ * are static, such as `#text` for a text node, while others
+ * are dynamically generated from the token itself.
+ *
+ * Dynamic names:
+ * - Uppercase tag name for tag matches.
+ * - `html` for DOCTYPE declarations.
+ *
+ * Note that if the Tag Processor is not matched on a token
+ * then this function will return `null`, either because it
+ * hasn't yet found a token or because it reached the end
+ * of the document without matching a token.
+ *
+ * @since 6.6.0 Subclassed for the HTML Processor.
+ *
+ * @return string|null Name of the matched token.
+ */
+ public function get_token_name() {
+ return $this->is_virtual()
+ ? $this->current_element->token->node_name
+ : parent::get_token_name();
+ }
+
+ /**
+ * Indicates the kind of matched token, if any.
+ *
+ * This differs from `get_token_name()` in that it always
+ * returns a static string indicating the type, whereas
+ * `get_token_name()` may return values derived from the
+ * token itself, such as a tag name or processing
+ * instruction tag.
+ *
+ * Possible values:
+ * - `#tag` when matched on a tag.
+ * - `#text` when matched on a text node.
+ * - `#cdata-section` when matched on a CDATA node.
+ * - `#comment` when matched on a comment.
+ * - `#doctype` when matched on a DOCTYPE declaration.
+ * - `#presumptuous-tag` when matched on an empty tag closer.
+ * - `#funky-comment` when matched on a funky comment.
+ *
+ * @since 6.6.0 Subclassed for the HTML Processor.
+ *
+ * @return string|null What kind of token is matched, or null.
+ */
+ public function get_token_type() {
+ if ( $this->is_virtual() ) {
+ /*
+ * This logic comes from the Tag Processor.
+ *
+ * @todo It would be ideal not to repeat this here, but it's not clearly
+ * better to allow passing a token name to `get_token_type()`.
+ */
+ $node_name = $this->current_element->token->node_name;
+ $starting_char = $node_name[0];
+ if ( 'A' <= $starting_char && 'Z' >= $starting_char ) {
+ return '#tag';
+ }
+
+ if ( 'html' === $node_name ) {
+ return '#doctype';
+ }
+
+ return $node_name;
+ }
+
+ return parent::get_token_type();
+ }
+
+ /**
+ * Returns the value of a requested attribute from a matched tag opener if that attribute exists.
+ *
+ * Example:
+ *
+ * $p = WP_HTML_Processor::create_fragment( '<div enabled class="test" data-test-id="14">Test</div>' );
+ * $p->next_token() === true;
+ * $p->get_attribute( 'data-test-id' ) === '14';
+ * $p->get_attribute( 'enabled' ) === true;
+ * $p->get_attribute( 'aria-label' ) === null;
+ *
+ * $p->next_tag() === false;
+ * $p->get_attribute( 'class' ) === null;
+ *
+ * @since 6.6.0 Subclassed for HTML Processor.
+ *
+ * @param string $name Name of attribute whose value is requested.
+ * @return string|true|null Value of attribute or `null` if not available. Boolean attributes return `true`.
+ */
+ public function get_attribute( $name ) {
+ return $this->is_virtual() ? null : parent::get_attribute( $name );
+ }
+
+ /**
+ * Updates or creates a new attribute on the currently matched tag with the passed value.
+ *
+ * For boolean attributes special handling is provided:
+ * - When `true` is passed as the value, then only the attribute name is added to the tag.
+ * - When `false` is passed, the attribute gets removed if it existed before.
+ *
+ * For string attributes, the value is escaped using the `esc_attr` function.
+ *
+ * @since 6.6.0 Subclassed for the HTML Processor.
+ *
+ * @param string $name The attribute name to target.
+ * @param string|bool $value The new attribute value.
+ * @return bool Whether an attribute value was set.
+ */
+ public function set_attribute( $name, $value ) {
+ return $this->is_virtual() ? false : parent::set_attribute( $name, $value );
+ }
+
+ /**
+ * Remove an attribute from the currently-matched tag.
+ *
+ * @since 6.6.0 Subclassed for HTML Processor.
+ *
+ * @param string $name The attribute name to remove.
+ * @return bool Whether an attribute was removed.
+ */
+ public function remove_attribute( $name ) {
+ return $this->is_virtual() ? false : parent::remove_attribute( $name );
+ }
+
+ /**
+ * Gets lowercase names of all attributes matching a given prefix in the current tag.
+ *
+ * Note that matching is case-insensitive. This is in accordance with the spec:
+ *
+ * > There must never be two or more attributes on
+ * > the same start tag whose names are an ASCII
+ * > case-insensitive match for each other.
+ * - HTML 5 spec
+ *
+ * Example:
+ *
+ * $p = new WP_HTML_Tag_Processor( '<div data-ENABLED class="test" DATA-test-id="14">Test</div>' );
+ * $p->next_tag( array( 'class_name' => 'test' ) ) === true;
+ * $p->get_attribute_names_with_prefix( 'data-' ) === array( 'data-enabled', 'data-test-id' );
+ *
+ * $p->next_tag() === false;
+ * $p->get_attribute_names_with_prefix( 'data-' ) === null;
+ *
+ * @since 6.6.0 Subclassed for the HTML Processor.
+ *
+ * @see https://html.spec.whatwg.org/multipage/syntax.html#attributes-2:ascii-case-insensitive
+ *
+ * @param string $prefix Prefix of requested attribute names.
+ * @return array|null List of attribute names, or `null` when no tag opener is matched.
+ */
+ public function get_attribute_names_with_prefix( $prefix ) {
+ return $this->is_virtual() ? null : parent::get_attribute_names_with_prefix( $prefix );
+ }
+
+ /**
+ * Adds a new class name to the currently matched tag.
+ *
+ * @since 6.6.0 Subclassed for the HTML Processor.
+ *
+ * @param string $class_name The class name to add.
+ * @return bool Whether the class was set to be added.
+ */
+ public function add_class( $class_name ) {
+ return $this->is_virtual() ? false : parent::add_class( $class_name );
+ }
+
+ /**
+ * Removes a class name from the currently matched tag.
+ *
+ * @since 6.6.0 Subclassed for the HTML Processor.
+ *
+ * @param string $class_name The class name to remove.
+ * @return bool Whether the class was set to be removed.
+ */
+ public function remove_class( $class_name ) {
+ return $this->is_virtual() ? false : parent::remove_class( $class_name );
+ }
+
+ /**
+ * Returns if a matched tag contains the given ASCII case-insensitive class name.
+ *
+ * @since 6.6.0 Subclassed for the HTML Processor.
+ *
+ * @param string $wanted_class Look for this CSS class name, ASCII case-insensitive.
+ * @return bool|null Whether the matched tag contains the given class name, or null if not matched.
+ */
+ public function has_class( $wanted_class ) {
+ return $this->is_virtual() ? null : parent::has_class( $wanted_class );
+ }
+
+ /**
+ * Generator for a foreach loop to step through each class name for the matched tag.
+ *
+ * This generator function is designed to be used inside a "foreach" loop.
+ *
+ * Example:
+ *
+ * $p = WP_HTML_Processor::create_fragment( "<div class='free &lt;egg&lt;\tlang-en'>" );
+ * $p->next_tag();
+ * foreach ( $p->class_list() as $class_name ) {
+ * echo "{$class_name} ";
+ * }
+ * // Outputs: "free <egg> lang-en "
+ *
+ * @since 6.6.0 Subclassed for the HTML Processor.
+ */
+ public function class_list() {
+ return $this->is_virtual() ? null : parent::class_list();
+ }
+
+ /**
+ * Returns the modifiable text for a matched token, or an empty string.
+ *
+ * Modifiable text is text content that may be read and changed without
+ * changing the HTML structure of the document around it. This includes
+ * the contents of `#text` nodes in the HTML as well as the inner
+ * contents of HTML comments, Processing Instructions, and others, even
+ * though these nodes aren't part of a parsed DOM tree. They also contain
+ * the contents of SCRIPT and STYLE tags, of TEXTAREA tags, and of any
+ * other section in an HTML document which cannot contain HTML markup (DATA).
+ *
+ * If a token has no modifiable text then an empty string is returned to
+ * avoid needless crashing or type errors. An empty string does not mean
+ * that a token has modifiable text, and a token with modifiable text may
+ * have an empty string (e.g. a comment with no contents).
+ *
+ * @since 6.6.0 Subclassed for the HTML Processor.
+ *
+ * @return string
+ */
+ public function get_modifiable_text() {
+ return $this->is_virtual() ? '' : parent::get_modifiable_text();
+ }
+
+ /**
+ * Indicates what kind of comment produced the comment node.
+ *
+ * Because there are different kinds of HTML syntax which produce
+ * comments, the Tag Processor tracks and exposes this as a type
+ * for the comment. Nominally only regular HTML comments exist as
+ * they are commonly known, but a number of unrelated syntax errors
+ * also produce comments.
+ *
+ * @see self::COMMENT_AS_ABRUPTLY_CLOSED_COMMENT
+ * @see self::COMMENT_AS_CDATA_LOOKALIKE
+ * @see self::COMMENT_AS_INVALID_HTML
+ * @see self::COMMENT_AS_HTML_COMMENT
+ * @see self::COMMENT_AS_PI_NODE_LOOKALIKE
+ *
+ * @since 6.6.0 Subclassed for the HTML Processor.
+ *
+ * @return string|null
+ */
+ public function get_comment_type() {
+ return $this->is_virtual() ? null : parent::get_comment_type();
+ }
+
+ /**
* Removes a bookmark that is no longer needed.
*
* Releasing a bookmark frees up the small
@@ -1304,6 +1841,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
? $this->bookmarks[ $this->state->current_token->bookmark_name ]->start
: 0;
$bookmark_starts_at = $this->bookmarks[ $actual_bookmark_name ]->start;
+ $bookmark_length = $this->bookmarks[ $actual_bookmark_name ]->length;
$direction = $bookmark_starts_at > $processor_started_at ? 'forward' : 'backward';
/*
@@ -1359,6 +1897,8 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
parent::seek( 'context-node' );
$this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_BODY;
$this->state->frameset_ok = true;
+ $this->element_queue = array();
+ $this->current_element = null;
}
// When moving forwards, reparse the document until reaching the same location as the original bookmark.
@@ -1366,8 +1906,11 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
return true;
}
- while ( $this->step() ) {
+ while ( $this->next_token() ) {
if ( $bookmark_starts_at === $this->bookmarks[ $this->state->current_token->bookmark_name ]->start ) {
+ while ( isset( $this->current_element ) && WP_HTML_Stack_Event::POP === $this->current_element->operation ) {
+ $this->current_element = array_shift( $this->element_queue );
+ }
return true;
}
}
diff --git a/wp-includes/html-api/class-wp-html-stack-event.php b/wp-includes/html-api/class-wp-html-stack-event.php
new file mode 100644
index 0000000..aa4763c
--- /dev/null
+++ b/wp-includes/html-api/class-wp-html-stack-event.php
@@ -0,0 +1,82 @@
+<?php
+/**
+ * HTML API: WP_HTML_Stack_Event class
+ *
+ * @package WordPress
+ * @subpackage HTML-API
+ * @since 6.6.0
+ */
+
+/**
+ * Core class used by the HTML Processor as a record for stack operations.
+ *
+ * This class is for internal usage of the WP_HTML_Processor class.
+ *
+ * @access private
+ * @since 6.6.0
+ *
+ * @see WP_HTML_Processor
+ */
+class WP_HTML_Stack_Event {
+ /**
+ * Refers to popping an element off of the stack of open elements.
+ *
+ * @since 6.6.0
+ */
+ const POP = 'pop';
+
+ /**
+ * Refers to pushing an element onto the stack of open elements.
+ *
+ * @since 6.6.0
+ */
+ const PUSH = 'push';
+
+ /**
+ * References the token associated with the stack push event,
+ * even if this is a pop event for that element.
+ *
+ * @since 6.6.0
+ *
+ * @var WP_HTML_Token
+ */
+ public $token;
+
+ /**
+ * Indicates which kind of stack operation this event represents.
+ *
+ * May be one of the class constants.
+ *
+ * @since 6.6.0
+ *
+ * @see self::POP
+ * @see self::PUSH
+ *
+ * @var string
+ */
+ public $operation;
+
+ /**
+ * Indicates if the stack element is a real or virtual node.
+ *
+ * @since 6.6.0
+ *
+ * @var string
+ */
+ public $provenance;
+
+ /**
+ * Constructor function.
+ *
+ * @since 6.6.0
+ *
+ * @param WP_HTML_Token $token Token associated with stack event, always an opening token.
+ * @param string $operation One of self::PUSH or self::POP.
+ * @param string $provenance "virtual" or "real".
+ */
+ public function __construct( $token, $operation, $provenance ) {
+ $this->token = $token;
+ $this->operation = $operation;
+ $this->provenance = $provenance;
+ }
+}
diff --git a/wp-includes/html-api/class-wp-html-tag-processor.php b/wp-includes/html-api/class-wp-html-tag-processor.php
index bf7e026..8fc7593 100644
--- a/wp-includes/html-api/class-wp-html-tag-processor.php
+++ b/wp-includes/html-api/class-wp-html-tag-processor.php
@@ -15,10 +15,6 @@
* - Prune the whitespace when removing classes/attributes: e.g. "a b c" -> "c" not " c".
* This would increase the size of the changes for some operations but leave more
* natural-looking output HTML.
- * - Properly decode HTML character references in `get_attribute()`. PHP's
- * `html_entity_decode()` is wrong in a couple ways: it doesn't account for the
- * no-ambiguous-ampersand rule, and it improperly handles the way semicolons may
- * or may not terminate a character reference.
*
* @package WordPress
* @subpackage HTML-API
@@ -298,8 +294,8 @@
*
* The special elements are:
* - `SCRIPT` whose contents are treated as raw plaintext but supports a legacy
- * style of including Javascript inside of HTML comments to avoid accidentally
- * closing the SCRIPT from inside a Javascript string. E.g. `console.log( '</script>' )`.
+ * style of including JavaScript inside of HTML comments to avoid accidentally
+ * closing the SCRIPT from inside a JavaScript string. E.g. `console.log( '</script>' )`.
* - `TITLE` and `TEXTAREA` whose contents are treated as plaintext and then any
* character references are decoded. E.g. `1 &lt; 2 < 3` becomes `1 < 2 < 3`.
* - `IFRAME`, `NOSCRIPT`, `NOEMBED`, `NOFRAME`, `STYLE` whose contents are treated as
@@ -926,8 +922,8 @@ class WP_HTML_Tag_Processor {
return false;
}
$this->parser_state = self::STATE_MATCHED_TAG;
- $this->token_length = $tag_ends_at - $this->token_starts_at;
$this->bytes_already_parsed = $tag_ends_at + 1;
+ $this->token_length = $this->bytes_already_parsed - $this->token_starts_at;
/*
* For non-DATA sections which might contain text that looks like HTML tags but
@@ -1013,7 +1009,7 @@ class WP_HTML_Tag_Processor {
*/
$this->token_starts_at = $was_at;
$this->token_length = $this->bytes_already_parsed - $this->token_starts_at;
- $this->text_starts_at = $tag_ends_at + 1;
+ $this->text_starts_at = $tag_ends_at;
$this->text_length = $this->tag_name_starts_at - $this->text_starts_at;
$this->tag_name_starts_at = $tag_name_starts_at;
$this->tag_name_length = $tag_name_length;
@@ -1629,7 +1625,7 @@ class WP_HTML_Tag_Processor {
* `<!` transitions to markup declaration open state
* https://html.spec.whatwg.org/multipage/parsing.html#markup-declaration-open-state
*/
- if ( '!' === $html[ $at + 1 ] ) {
+ if ( ! $this->is_closing_tag && '!' === $html[ $at + 1 ] ) {
/*
* `<!--` transitions to a comment state – apply further comment rules.
* https://html.spec.whatwg.org/multipage/parsing.html#tag-open-state
@@ -1809,6 +1805,12 @@ class WP_HTML_Tag_Processor {
* See https://html.spec.whatwg.org/#parse-error-missing-end-tag-name
*/
if ( '>' === $html[ $at + 1 ] ) {
+ // `<>` is interpreted as plaintext.
+ if ( ! $this->is_closing_tag ) {
+ ++$at;
+ continue;
+ }
+
$this->parser_state = self::STATE_PRESUMPTUOUS_TAG;
$this->token_length = $at + 2 - $this->token_starts_at;
$this->bytes_already_parsed = $at + 2;
@@ -1819,7 +1821,7 @@ class WP_HTML_Tag_Processor {
* `<?` transitions to a bogus comment state – skip to the nearest >
* See https://html.spec.whatwg.org/multipage/parsing.html#tag-open-state
*/
- if ( '?' === $html[ $at + 1 ] ) {
+ if ( ! $this->is_closing_tag && '?' === $html[ $at + 1 ] ) {
$closer_at = strpos( $html, '>', $at + 2 );
if ( false === $closer_at ) {
$this->parser_state = self::STATE_INCOMPLETE_INPUT;
@@ -1891,7 +1893,7 @@ class WP_HTML_Tag_Processor {
return false;
}
- $closer_at = strpos( $html, '>', $at + 3 );
+ $closer_at = strpos( $html, '>', $at + 2 );
if ( false === $closer_at ) {
$this->parser_state = self::STATE_INCOMPLETE_INPUT;
@@ -2071,7 +2073,7 @@ class WP_HTML_Tag_Processor {
/*
* Purge updates if there are too many. The actual count isn't
* scientific, but a few values from 100 to a few thousand were
- * tests to find a practially-useful limit.
+ * tests to find a practically-useful limit.
*
* If the update queue grows too big, then the Tag Processor
* will spend more time iterating through them and lose the
@@ -2263,7 +2265,7 @@ class WP_HTML_Tag_Processor {
* @param int $shift_this_point Accumulate and return shift for this position.
* @return int How many bytes the given pointer moved in response to the updates.
*/
- private function apply_attributes_updates( $shift_this_point = 0 ) {
+ private function apply_attributes_updates( $shift_this_point ) {
if ( ! count( $this->lexical_updates ) ) {
return 0;
}
@@ -2493,7 +2495,7 @@ class WP_HTML_Tag_Processor {
* 3. Double-quoting ends at the last character in the update.
*/
$enqueued_value = substr( $enqueued_text, $equals_at + 2, -1 );
- return html_entity_decode( $enqueued_value );
+ return WP_HTML_Decoder::decode_attribute( $enqueued_value );
}
/**
@@ -2566,7 +2568,7 @@ class WP_HTML_Tag_Processor {
$raw_value = substr( $this->html, $attribute->value_starts_at, $attribute->value_length );
- return html_entity_decode( $raw_value );
+ return WP_HTML_Decoder::decode_attribute( $raw_value );
}
/**
@@ -2681,7 +2683,7 @@ class WP_HTML_Tag_Processor {
* <figure />
* ^ this appears one character before the end of the closing ">".
*/
- return '/' === $this->html[ $this->token_starts_at + $this->token_length - 1 ];
+ return '/' === $this->html[ $this->token_starts_at + $this->token_length - 2 ];
}
/**
@@ -2785,6 +2787,8 @@ class WP_HTML_Tag_Processor {
case self::STATE_FUNKY_COMMENT:
return '#funky-comment';
}
+
+ return null;
}
/**
@@ -2866,7 +2870,7 @@ class WP_HTML_Tag_Processor {
return $text;
}
- $decoded = html_entity_decode( $text, ENT_QUOTES | ENT_HTML5 | ENT_SUBSTITUTE );
+ $decoded = WP_HTML_Decoder::decode_text_node( $text );
/*
* TEXTAREA skips a leading newline, but this newline may appear not only as the
@@ -3200,7 +3204,7 @@ class WP_HTML_Tag_Processor {
* Keep track of the position right before the current tag. This will
* be necessary for reparsing the current tag after updating the HTML.
*/
- $before_current_tag = $this->token_starts_at;
+ $before_current_tag = $this->token_starts_at ?? 0;
/*
* 1. Apply the enqueued edits and update all the pointers to reflect those changes.
diff --git a/wp-includes/html-api/html5-named-character-references.php b/wp-includes/html-api/html5-named-character-references.php
new file mode 100644
index 0000000..9466f0a
--- /dev/null
+++ b/wp-includes/html-api/html5-named-character-references.php
@@ -0,0 +1,1313 @@
+<?php
+
+/**
+ * Auto-generated class for looking up HTML named character references.
+ *
+ * ⚠️ !!! THIS ENTIRE FILE IS AUTOMATICALLY GENERATED !!! ⚠️
+ * Do not modify this file directly.
+ *
+ * To regenerate, run the generation script directly.
+ *
+ * Example:
+ *
+ * php tests/phpunit/data/html5-entities/generate-html5-named-character-references.php
+ *
+ * @package WordPress
+ * @since 6.6.0
+ */
+
+// phpcs:disable
+
+global $html5_named_character_references;
+
+/**
+ * Set of named character references in the HTML5 specification.
+ *
+ * This list will never change, according to the spec. Each named
+ * character reference is case-sensitive and the presence or absence
+ * of the semicolon is significant. Without the semicolon, the rules
+ * for an ambiguous ampersand govern whether the following text is
+ * to be interpreted as a character reference or not.
+ *
+ * The list of entities is sourced directly from the WHATWG server
+ * and cached in the test directory to avoid needing to download it
+ * every time this file is updated.
+ *
+ * @link https://html.spec.whatwg.org/entities.json.
+ */
+$html5_named_character_references = WP_Token_Map::from_precomputed_table(
+ array(
+ "storage_version" => "6.6.0-trunk",
+ "key_length" => 2,
+ "groups" => "AE\x00AM\x00Aa\x00Ab\x00Ac\x00Af\x00Ag\x00Al\x00Am\x00An\x00Ao\x00Ap\x00Ar\x00As\x00At\x00Au\x00Ba\x00Bc\x00Be\x00Bf\x00Bo\x00Br\x00Bs\x00Bu\x00CH\x00CO\x00Ca\x00Cc\x00Cd\x00Ce\x00Cf\x00Ch\x00Ci\x00Cl\x00Co\x00Cr\x00Cs\x00Cu\x00DD\x00DJ\x00DS\x00DZ\x00Da\x00Dc\x00De\x00Df\x00Di\x00Do\x00Ds\x00EN\x00ET\x00Ea\x00Ec\x00Ed\x00Ef\x00Eg\x00El\x00Em\x00Eo\x00Ep\x00Eq\x00Es\x00Et\x00Eu\x00Ex\x00Fc\x00Ff\x00Fi\x00Fo\x00Fs\x00GJ\x00GT\x00Ga\x00Gb\x00Gc\x00Gd\x00Gf\x00Gg\x00Go\x00Gr\x00Gs\x00Gt\x00HA\x00Ha\x00Hc\x00Hf\x00Hi\x00Ho\x00Hs\x00Hu\x00IE\x00IJ\x00IO\x00Ia\x00Ic\x00Id\x00If\x00Ig\x00Im\x00In\x00Io\x00Is\x00It\x00Iu\x00Jc\x00Jf\x00Jo\x00Js\x00Ju\x00KH\x00KJ\x00Ka\x00Kc\x00Kf\x00Ko\x00Ks\x00LJ\x00LT\x00La\x00Lc\x00Le\x00Lf\x00Ll\x00Lm\x00Lo\x00Ls\x00Lt\x00Ma\x00Mc\x00Me\x00Mf\x00Mi\x00Mo\x00Ms\x00Mu\x00NJ\x00Na\x00Nc\x00Ne\x00Nf\x00No\x00Ns\x00Nt\x00Nu\x00OE\x00Oa\x00Oc\x00Od\x00Of\x00Og\x00Om\x00Oo\x00Op\x00Or\x00Os\x00Ot\x00Ou\x00Ov\x00Pa\x00Pc\x00Pf\x00Ph\x00Pi\x00Pl\x00Po\x00Pr\x00Ps\x00QU\x00Qf\x00Qo\x00Qs\x00RB\x00RE\x00Ra\x00Rc\x00Re\x00Rf\x00Rh\x00Ri\x00Ro\x00Rr\x00Rs\x00Ru\x00SH\x00SO\x00Sa\x00Sc\x00Sf\x00Sh\x00Si\x00Sm\x00So\x00Sq\x00Ss\x00St\x00Su\x00TH\x00TR\x00TS\x00Ta\x00Tc\x00Tf\x00Th\x00Ti\x00To\x00Tr\x00Ts\x00Ua\x00Ub\x00Uc\x00Ud\x00Uf\x00Ug\x00Um\x00Un\x00Uo\x00Up\x00Ur\x00Us\x00Ut\x00Uu\x00VD\x00Vb\x00Vc\x00Vd\x00Ve\x00Vf\x00Vo\x00Vs\x00Vv\x00Wc\x00We\x00Wf\x00Wo\x00Ws\x00Xf\x00Xi\x00Xo\x00Xs\x00YA\x00YI\x00YU\x00Ya\x00Yc\x00Yf\x00Yo\x00Ys\x00Yu\x00ZH\x00Za\x00Zc\x00Zd\x00Ze\x00Zf\x00Zo\x00Zs\x00aa\x00ab\x00ac\x00ae\x00af\x00ag\x00al\x00am\x00an\x00ao\x00ap\x00ar\x00as\x00at\x00au\x00aw\x00bN\x00ba\x00bb\x00bc\x00bd\x00be\x00bf\x00bi\x00bk\x00bl\x00bn\x00bo\x00bp\x00br\x00bs\x00bu\x00ca\x00cc\x00cd\x00ce\x00cf\x00ch\x00ci\x00cl\x00co\x00cr\x00cs\x00ct\x00cu\x00cw\x00cy\x00dA\x00dH\x00da\x00db\x00dc\x00dd\x00de\x00df\x00dh\x00di\x00dj\x00dl\x00do\x00dr\x00ds\x00dt\x00du\x00dw\x00dz\x00eD\x00ea\x00ec\x00ed\x00ee\x00ef\x00eg\x00el\x00em\x00en\x00eo\x00ep\x00eq\x00er\x00es\x00et\x00eu\x00ex\x00fa\x00fc\x00fe\x00ff\x00fi\x00fj\x00fl\x00fn\x00fo\x00fp\x00fr\x00fs\x00gE\x00ga\x00gb\x00gc\x00gd\x00ge\x00gf\x00gg\x00gi\x00gj\x00gl\x00gn\x00go\x00gr\x00gs\x00gt\x00gv\x00hA\x00ha\x00hb\x00hc\x00he\x00hf\x00hk\x00ho\x00hs\x00hy\x00ia\x00ic\x00ie\x00if\x00ig\x00ii\x00ij\x00im\x00in\x00io\x00ip\x00iq\x00is\x00it\x00iu\x00jc\x00jf\x00jm\x00jo\x00js\x00ju\x00ka\x00kc\x00kf\x00kg\x00kh\x00kj\x00ko\x00ks\x00lA\x00lB\x00lE\x00lH\x00la\x00lb\x00lc\x00ld\x00le\x00lf\x00lg\x00lh\x00lj\x00ll\x00lm\x00ln\x00lo\x00lp\x00lr\x00ls\x00lt\x00lu\x00lv\x00mD\x00ma\x00mc\x00md\x00me\x00mf\x00mh\x00mi\x00ml\x00mn\x00mo\x00mp\x00ms\x00mu\x00nG\x00nL\x00nR\x00nV\x00na\x00nb\x00nc\x00nd\x00ne\x00nf\x00ng\x00nh\x00ni\x00nj\x00nl\x00nm\x00no\x00np\x00nr\x00ns\x00nt\x00nu\x00nv\x00nw\x00oS\x00oa\x00oc\x00od\x00oe\x00of\x00og\x00oh\x00oi\x00ol\x00om\x00oo\x00op\x00or\x00os\x00ot\x00ou\x00ov\x00pa\x00pc\x00pe\x00pf\x00ph\x00pi\x00pl\x00pm\x00po\x00pr\x00ps\x00pu\x00qf\x00qi\x00qo\x00qp\x00qs\x00qu\x00rA\x00rB\x00rH\x00ra\x00rb\x00rc\x00rd\x00re\x00rf\x00rh\x00ri\x00rl\x00rm\x00rn\x00ro\x00rp\x00rr\x00rs\x00rt\x00ru\x00rx\x00sa\x00sb\x00sc\x00sd\x00se\x00sf\x00sh\x00si\x00sl\x00sm\x00so\x00sp\x00sq\x00sr\x00ss\x00st\x00su\x00sw\x00sz\x00ta\x00tb\x00tc\x00td\x00te\x00tf\x00th\x00ti\x00to\x00tp\x00tr\x00ts\x00tw\x00uA\x00uH\x00ua\x00ub\x00uc\x00ud\x00uf\x00ug\x00uh\x00ul\x00um\x00uo\x00up\x00ur\x00us\x00ut\x00uu\x00uw\x00vA\x00vB\x00vD\x00va\x00vc\x00vd\x00ve\x00vf\x00vl\x00vn\x00vo\x00vp\x00vr\x00vs\x00vz\x00wc\x00we\x00wf\x00wo\x00wp\x00wr\x00ws\x00xc\x00xd\x00xf\x00xh\x00xi\x00xl\x00xm\x00xn\x00xo\x00xr\x00xs\x00xu\x00xv\x00xw\x00ya\x00yc\x00ye\x00yf\x00yi\x00yo\x00ys\x00yu\x00za\x00zc\x00zd\x00ze\x00zf\x00zh\x00zi\x00zo\x00zs\x00zw\x00",
+ "large_words" => array(
+ // AElig;[Æ] AElig[Æ].
+ "\x04lig;\x02Æ\x03lig\x02Æ",
+ // AMP;[&] AMP[&].
+ "\x02P;\x01&\x01P\x01&",
+ // Aacute;[Á] Aacute[Á].
+ "\x05cute;\x02Á\x04cute\x02Á",
+ // Abreve;[Ă].
+ "\x05reve;\x02Ă",
+ // Acirc;[Â] Acirc[Â] Acy;[А].
+ "\x04irc;\x02Â\x03irc\x02Â\x02y;\x02А",
+ // Afr;[𝔄].
+ "\x02r;\x04𝔄",
+ // Agrave;[À] Agrave[À].
+ "\x05rave;\x02À\x04rave\x02À",
+ // Alpha;[Α].
+ "\x04pha;\x02Α",
+ // Amacr;[Ā].
+ "\x04acr;\x02Ā",
+ // And;[⩓].
+ "\x02d;\x03⩓",
+ // Aogon;[Ą] Aopf;[𝔸].
+ "\x04gon;\x02Ą\x03pf;\x04𝔸",
+ // ApplyFunction;[⁡].
+ "\x0cplyFunction;\x03⁡",
+ // Aring;[Å] Aring[Å].
+ "\x04ing;\x02Å\x03ing\x02Å",
+ // Assign;[≔] Ascr;[𝒜].
+ "\x05sign;\x03≔\x03cr;\x04𝒜",
+ // Atilde;[Ã] Atilde[Ã].
+ "\x05ilde;\x02Ã\x04ilde\x02Ã",
+ // Auml;[Ä] Auml[Ä].
+ "\x03ml;\x02Ä\x02ml\x02Ä",
+ // Backslash;[∖] Barwed;[⌆] Barv;[⫧].
+ "\x08ckslash;\x03∖\x05rwed;\x03⌆\x03rv;\x03⫧",
+ // Bcy;[Б].
+ "\x02y;\x02Б",
+ // Bernoullis;[ℬ] Because;[∵] Beta;[Β].
+ "\x09rnoullis;\x03ℬ\x06cause;\x03∵\x03ta;\x02Β",
+ // Bfr;[𝔅].
+ "\x02r;\x04𝔅",
+ // Bopf;[𝔹].
+ "\x03pf;\x04𝔹",
+ // Breve;[˘].
+ "\x04eve;\x02˘",
+ // Bscr;[ℬ].
+ "\x03cr;\x03ℬ",
+ // Bumpeq;[≎].
+ "\x05mpeq;\x03≎",
+ // CHcy;[Ч].
+ "\x03cy;\x02Ч",
+ // COPY;[©] COPY[©].
+ "\x03PY;\x02©\x02PY\x02©",
+ // CapitalDifferentialD;[ⅅ] Cayleys;[ℭ] Cacute;[Ć] Cap;[⋒].
+ "\x13pitalDifferentialD;\x03ⅅ\x06yleys;\x03ℭ\x05cute;\x02Ć\x02p;\x03⋒",
+ // Cconint;[∰] Ccaron;[Č] Ccedil;[Ç] Ccedil[Ç] Ccirc;[Ĉ].
+ "\x06onint;\x03∰\x05aron;\x02Č\x05edil;\x02Ç\x04edil\x02Ç\x04irc;\x02Ĉ",
+ // Cdot;[Ċ].
+ "\x03ot;\x02Ċ",
+ // CenterDot;[·] Cedilla;[¸].
+ "\x08nterDot;\x02·\x06dilla;\x02¸",
+ // Cfr;[ℭ].
+ "\x02r;\x03ℭ",
+ // Chi;[Χ].
+ "\x02i;\x02Χ",
+ // CircleMinus;[⊖] CircleTimes;[⊗] CirclePlus;[⊕] CircleDot;[⊙].
+ "\x0arcleMinus;\x03⊖\x0arcleTimes;\x03⊗\x09rclePlus;\x03⊕\x08rcleDot;\x03⊙",
+ // ClockwiseContourIntegral;[∲] CloseCurlyDoubleQuote;[”] CloseCurlyQuote;[’].
+ "\x17ockwiseContourIntegral;\x03∲\x14oseCurlyDoubleQuote;\x03”\x0eoseCurlyQuote;\x03’",
+ // CounterClockwiseContourIntegral;[∳] ContourIntegral;[∮] Congruent;[≡] Coproduct;[∐] Colone;[⩴] Conint;[∯] Colon;[∷] Copf;[ℂ].
+ "\x1eunterClockwiseContourIntegral;\x03∳\x0entourIntegral;\x03∮\x08ngruent;\x03≡\x08product;\x03∐\x05lone;\x03⩴\x05nint;\x03∯\x04lon;\x03∷\x03pf;\x03ℂ",
+ // Cross;[⨯].
+ "\x04oss;\x03⨯",
+ // Cscr;[𝒞].
+ "\x03cr;\x04𝒞",
+ // CupCap;[≍] Cup;[⋓].
+ "\x05pCap;\x03≍\x02p;\x03⋓",
+ // DDotrahd;[⤑] DD;[ⅅ].
+ "\x07otrahd;\x03⤑\x01;\x03ⅅ",
+ // DJcy;[Ђ].
+ "\x03cy;\x02Ђ",
+ // DScy;[Ѕ].
+ "\x03cy;\x02Ѕ",
+ // DZcy;[Џ].
+ "\x03cy;\x02Џ",
+ // Dagger;[‡] Dashv;[⫤] Darr;[↡].
+ "\x05gger;\x03‡\x04shv;\x03⫤\x03rr;\x03↡",
+ // Dcaron;[Ď] Dcy;[Д].
+ "\x05aron;\x02Ď\x02y;\x02Д",
+ // Delta;[Δ] Del;[∇].
+ "\x04lta;\x02Δ\x02l;\x03∇",
+ // Dfr;[𝔇].
+ "\x02r;\x04𝔇",
+ // DiacriticalDoubleAcute;[˝] DiacriticalAcute;[´] DiacriticalGrave;[`] DiacriticalTilde;[˜] DiacriticalDot;[˙] DifferentialD;[ⅆ] Diamond;[⋄].
+ "\x15acriticalDoubleAcute;\x02˝\x0facriticalAcute;\x02´\x0facriticalGrave;\x01`\x0facriticalTilde;\x02˜\x0dacriticalDot;\x02˙\x0cfferentialD;\x03ⅆ\x06amond;\x03⋄",
+ // DoubleLongLeftRightArrow;[⟺] DoubleContourIntegral;[∯] DoubleLeftRightArrow;[⇔] DoubleLongRightArrow;[⟹] DoubleLongLeftArrow;[⟸] DownLeftRightVector;[⥐] DownRightTeeVector;[⥟] DownRightVectorBar;[⥗] DoubleUpDownArrow;[⇕] DoubleVerticalBar;[∥] DownLeftTeeVector;[⥞] DownLeftVectorBar;[⥖] DoubleRightArrow;[⇒] DownArrowUpArrow;[⇵] DoubleDownArrow;[⇓] DoubleLeftArrow;[⇐] DownRightVector;[⇁] DoubleRightTee;[⊨] DownLeftVector;[↽] DoubleLeftTee;[⫤] DoubleUpArrow;[⇑] DownArrowBar;[⤓] DownTeeArrow;[↧] DoubleDot;[¨] DownArrow;[↓] DownBreve;[̑] Downarrow;[⇓] DotEqual;[≐] DownTee;[⊤] DotDot;[⃜] Dopf;[𝔻] Dot;[¨].
+ "\x17ubleLongLeftRightArrow;\x03⟺\x14ubleContourIntegral;\x03∯\x13ubleLeftRightArrow;\x03⇔\x13ubleLongRightArrow;\x03⟹\x12ubleLongLeftArrow;\x03⟸\x12wnLeftRightVector;\x03⥐\x11wnRightTeeVector;\x03⥟\x11wnRightVectorBar;\x03⥗\x10ubleUpDownArrow;\x03⇕\x10ubleVerticalBar;\x03∥\x10wnLeftTeeVector;\x03⥞\x10wnLeftVectorBar;\x03⥖\x0fubleRightArrow;\x03⇒\x0fwnArrowUpArrow;\x03⇵\x0eubleDownArrow;\x03⇓\x0eubleLeftArrow;\x03⇐\x0ewnRightVector;\x03⇁\x0dubleRightTee;\x03⊨\x0dwnLeftVector;\x03↽\x0cubleLeftTee;\x03⫤\x0cubleUpArrow;\x03⇑\x0bwnArrowBar;\x03⤓\x0bwnTeeArrow;\x03↧\x08ubleDot;\x02¨\x08wnArrow;\x03↓\x08wnBreve;\x02̑\x08wnarrow;\x03⇓\x07tEqual;\x03≐\x06wnTee;\x03⊤\x05tDot;\x03⃜\x03pf;\x04𝔻\x02t;\x02¨",
+ // Dstrok;[Đ] Dscr;[𝒟].
+ "\x05trok;\x02Đ\x03cr;\x04𝒟",
+ // ENG;[Ŋ].
+ "\x02G;\x02Ŋ",
+ // ETH;[Ð] ETH[Ð].
+ "\x02H;\x02Ð\x01H\x02Ð",
+ // Eacute;[É] Eacute[É].
+ "\x05cute;\x02É\x04cute\x02É",
+ // Ecaron;[Ě] Ecirc;[Ê] Ecirc[Ê] Ecy;[Э].
+ "\x05aron;\x02Ě\x04irc;\x02Ê\x03irc\x02Ê\x02y;\x02Э",
+ // Edot;[Ė].
+ "\x03ot;\x02Ė",
+ // Efr;[𝔈].
+ "\x02r;\x04𝔈",
+ // Egrave;[È] Egrave[È].
+ "\x05rave;\x02È\x04rave\x02È",
+ // Element;[∈].
+ "\x06ement;\x03∈",
+ // EmptyVerySmallSquare;[▫] EmptySmallSquare;[◻] Emacr;[Ē].
+ "\x13ptyVerySmallSquare;\x03▫\x0fptySmallSquare;\x03◻\x04acr;\x02Ē",
+ // Eogon;[Ę] Eopf;[𝔼].
+ "\x04gon;\x02Ę\x03pf;\x04𝔼",
+ // Epsilon;[Ε].
+ "\x06silon;\x02Ε",
+ // Equilibrium;[⇌] EqualTilde;[≂] Equal;[⩵].
+ "\x0auilibrium;\x03⇌\x09ualTilde;\x03≂\x04ual;\x03⩵",
+ // Escr;[ℰ] Esim;[⩳].
+ "\x03cr;\x03ℰ\x03im;\x03⩳",
+ // Eta;[Η].
+ "\x02a;\x02Η",
+ // Euml;[Ë] Euml[Ë].
+ "\x03ml;\x02Ë\x02ml\x02Ë",
+ // ExponentialE;[ⅇ] Exists;[∃].
+ "\x0bponentialE;\x03ⅇ\x05ists;\x03∃",
+ // Fcy;[Ф].
+ "\x02y;\x02Ф",
+ // Ffr;[𝔉].
+ "\x02r;\x04𝔉",
+ // FilledVerySmallSquare;[▪] FilledSmallSquare;[◼].
+ "\x14lledVerySmallSquare;\x03▪\x10lledSmallSquare;\x03◼",
+ // Fouriertrf;[ℱ] ForAll;[∀] Fopf;[𝔽].
+ "\x09uriertrf;\x03ℱ\x05rAll;\x03∀\x03pf;\x04𝔽",
+ // Fscr;[ℱ].
+ "\x03cr;\x03ℱ",
+ // GJcy;[Ѓ].
+ "\x03cy;\x02Ѓ",
+ // GT;[>].
+ "\x01;\x01>",
+ // Gammad;[Ϝ] Gamma;[Γ].
+ "\x05mmad;\x02Ϝ\x04mma;\x02Γ",
+ // Gbreve;[Ğ].
+ "\x05reve;\x02Ğ",
+ // Gcedil;[Ģ] Gcirc;[Ĝ] Gcy;[Г].
+ "\x05edil;\x02Ģ\x04irc;\x02Ĝ\x02y;\x02Г",
+ // Gdot;[Ġ].
+ "\x03ot;\x02Ġ",
+ // Gfr;[𝔊].
+ "\x02r;\x04𝔊",
+ // Gg;[⋙].
+ "\x01;\x03⋙",
+ // Gopf;[𝔾].
+ "\x03pf;\x04𝔾",
+ // GreaterSlantEqual;[⩾] GreaterEqualLess;[⋛] GreaterFullEqual;[≧] GreaterGreater;[⪢] GreaterEqual;[≥] GreaterTilde;[≳] GreaterLess;[≷].
+ "\x10eaterSlantEqual;\x03⩾\x0featerEqualLess;\x03⋛\x0featerFullEqual;\x03≧\x0deaterGreater;\x03⪢\x0beaterEqual;\x03≥\x0beaterTilde;\x03≳\x0aeaterLess;\x03≷",
+ // Gscr;[𝒢].
+ "\x03cr;\x04𝒢",
+ // Gt;[≫].
+ "\x01;\x03≫",
+ // HARDcy;[Ъ].
+ "\x05RDcy;\x02Ъ",
+ // Hacek;[ˇ] Hat;[^].
+ "\x04cek;\x02ˇ\x02t;\x01^",
+ // Hcirc;[Ĥ].
+ "\x04irc;\x02Ĥ",
+ // Hfr;[ℌ].
+ "\x02r;\x03ℌ",
+ // HilbertSpace;[ℋ].
+ "\x0blbertSpace;\x03ℋ",
+ // HorizontalLine;[─] Hopf;[ℍ].
+ "\x0drizontalLine;\x03─\x03pf;\x03ℍ",
+ // Hstrok;[Ħ] Hscr;[ℋ].
+ "\x05trok;\x02Ħ\x03cr;\x03ℋ",
+ // HumpDownHump;[≎] HumpEqual;[≏].
+ "\x0bmpDownHump;\x03≎\x08mpEqual;\x03≏",
+ // IEcy;[Е].
+ "\x03cy;\x02Е",
+ // IJlig;[IJ].
+ "\x04lig;\x02IJ",
+ // IOcy;[Ё].
+ "\x03cy;\x02Ё",
+ // Iacute;[Í] Iacute[Í].
+ "\x05cute;\x02Í\x04cute\x02Í",
+ // Icirc;[Î] Icirc[Î] Icy;[И].
+ "\x04irc;\x02Î\x03irc\x02Î\x02y;\x02И",
+ // Idot;[İ].
+ "\x03ot;\x02İ",
+ // Ifr;[ℑ].
+ "\x02r;\x03ℑ",
+ // Igrave;[Ì] Igrave[Ì].
+ "\x05rave;\x02Ì\x04rave\x02Ì",
+ // ImaginaryI;[ⅈ] Implies;[⇒] Imacr;[Ī] Im;[ℑ].
+ "\x09aginaryI;\x03ⅈ\x06plies;\x03⇒\x04acr;\x02Ī\x01;\x03ℑ",
+ // InvisibleComma;[⁣] InvisibleTimes;[⁢] Intersection;[⋂] Integral;[∫] Int;[∬].
+ "\x0dvisibleComma;\x03⁣\x0dvisibleTimes;\x03⁢\x0btersection;\x03⋂\x07tegral;\x03∫\x02t;\x03∬",
+ // Iogon;[Į] Iopf;[𝕀] Iota;[Ι].
+ "\x04gon;\x02Į\x03pf;\x04𝕀\x03ta;\x02Ι",
+ // Iscr;[ℐ].
+ "\x03cr;\x03ℐ",
+ // Itilde;[Ĩ].
+ "\x05ilde;\x02Ĩ",
+ // Iukcy;[І] Iuml;[Ï] Iuml[Ï].
+ "\x04kcy;\x02І\x03ml;\x02Ï\x02ml\x02Ï",
+ // Jcirc;[Ĵ] Jcy;[Й].
+ "\x04irc;\x02Ĵ\x02y;\x02Й",
+ // Jfr;[𝔍].
+ "\x02r;\x04𝔍",
+ // Jopf;[𝕁].
+ "\x03pf;\x04𝕁",
+ // Jsercy;[Ј] Jscr;[𝒥].
+ "\x05ercy;\x02Ј\x03cr;\x04𝒥",
+ // Jukcy;[Є].
+ "\x04kcy;\x02Є",
+ // KHcy;[Х].
+ "\x03cy;\x02Х",
+ // KJcy;[Ќ].
+ "\x03cy;\x02Ќ",
+ // Kappa;[Κ].
+ "\x04ppa;\x02Κ",
+ // Kcedil;[Ķ] Kcy;[К].
+ "\x05edil;\x02Ķ\x02y;\x02К",
+ // Kfr;[𝔎].
+ "\x02r;\x04𝔎",
+ // Kopf;[𝕂].
+ "\x03pf;\x04𝕂",
+ // Kscr;[𝒦].
+ "\x03cr;\x04𝒦",
+ // LJcy;[Љ].
+ "\x03cy;\x02Љ",
+ // LT;[<].
+ "\x01;\x01<",
+ // Laplacetrf;[ℒ] Lacute;[Ĺ] Lambda;[Λ] Lang;[⟪] Larr;[↞].
+ "\x09placetrf;\x03ℒ\x05cute;\x02Ĺ\x05mbda;\x02Λ\x03ng;\x03⟪\x03rr;\x03↞",
+ // Lcaron;[Ľ] Lcedil;[Ļ] Lcy;[Л].
+ "\x05aron;\x02Ľ\x05edil;\x02Ļ\x02y;\x02Л",
+ // LeftArrowRightArrow;[⇆] LeftDoubleBracket;[⟦] LeftDownTeeVector;[⥡] LeftDownVectorBar;[⥙] LeftTriangleEqual;[⊴] LeftAngleBracket;[⟨] LeftUpDownVector;[⥑] LessEqualGreater;[⋚] LeftRightVector;[⥎] LeftTriangleBar;[⧏] LeftUpTeeVector;[⥠] LeftUpVectorBar;[⥘] LeftDownVector;[⇃] LeftRightArrow;[↔] Leftrightarrow;[⇔] LessSlantEqual;[⩽] LeftTeeVector;[⥚] LeftVectorBar;[⥒] LessFullEqual;[≦] LeftArrowBar;[⇤] LeftTeeArrow;[↤] LeftTriangle;[⊲] LeftUpVector;[↿] LeftCeiling;[⌈] LessGreater;[≶] LeftVector;[↼] LeftArrow;[←] LeftFloor;[⌊] Leftarrow;[⇐] LessTilde;[≲] LessLess;[⪡] LeftTee;[⊣].
+ "\x12ftArrowRightArrow;\x03⇆\x10ftDoubleBracket;\x03⟦\x10ftDownTeeVector;\x03⥡\x10ftDownVectorBar;\x03⥙\x10ftTriangleEqual;\x03⊴\x0fftAngleBracket;\x03⟨\x0fftUpDownVector;\x03⥑\x0fssEqualGreater;\x03⋚\x0eftRightVector;\x03⥎\x0eftTriangleBar;\x03⧏\x0eftUpTeeVector;\x03⥠\x0eftUpVectorBar;\x03⥘\x0dftDownVector;\x03⇃\x0dftRightArrow;\x03↔\x0dftrightarrow;\x03⇔\x0dssSlantEqual;\x03⩽\x0cftTeeVector;\x03⥚\x0cftVectorBar;\x03⥒\x0cssFullEqual;\x03≦\x0bftArrowBar;\x03⇤\x0bftTeeArrow;\x03↤\x0bftTriangle;\x03⊲\x0bftUpVector;\x03↿\x0aftCeiling;\x03⌈\x0assGreater;\x03≶\x09ftVector;\x03↼\x08ftArrow;\x03←\x08ftFloor;\x03⌊\x08ftarrow;\x03⇐\x08ssTilde;\x03≲\x07ssLess;\x03⪡\x06ftTee;\x03⊣",
+ // Lfr;[𝔏].
+ "\x02r;\x04𝔏",
+ // Lleftarrow;[⇚] Ll;[⋘].
+ "\x09eftarrow;\x03⇚\x01;\x03⋘",
+ // Lmidot;[Ŀ].
+ "\x05idot;\x02Ŀ",
+ // LongLeftRightArrow;[⟷] Longleftrightarrow;[⟺] LowerRightArrow;[↘] LongRightArrow;[⟶] Longrightarrow;[⟹] LowerLeftArrow;[↙] LongLeftArrow;[⟵] Longleftarrow;[⟸] Lopf;[𝕃].
+ "\x11ngLeftRightArrow;\x03⟷\x11ngleftrightarrow;\x03⟺\x0ewerRightArrow;\x03↘\x0dngRightArrow;\x03⟶\x0dngrightarrow;\x03⟹\x0dwerLeftArrow;\x03↙\x0cngLeftArrow;\x03⟵\x0cngleftarrow;\x03⟸\x03pf;\x04𝕃",
+ // Lstrok;[Ł] Lscr;[ℒ] Lsh;[↰].
+ "\x05trok;\x02Ł\x03cr;\x03ℒ\x02h;\x03↰",
+ // Lt;[≪].
+ "\x01;\x03≪",
+ // Map;[⤅].
+ "\x02p;\x03⤅",
+ // Mcy;[М].
+ "\x02y;\x02М",
+ // MediumSpace;[ ] Mellintrf;[ℳ].
+ "\x0adiumSpace;\x03 \x08llintrf;\x03ℳ",
+ // Mfr;[𝔐].
+ "\x02r;\x04𝔐",
+ // MinusPlus;[∓].
+ "\x08nusPlus;\x03∓",
+ // Mopf;[𝕄].
+ "\x03pf;\x04𝕄",
+ // Mscr;[ℳ].
+ "\x03cr;\x03ℳ",
+ // Mu;[Μ].
+ "\x01;\x02Μ",
+ // NJcy;[Њ].
+ "\x03cy;\x02Њ",
+ // Nacute;[Ń].
+ "\x05cute;\x02Ń",
+ // Ncaron;[Ň] Ncedil;[Ņ] Ncy;[Н].
+ "\x05aron;\x02Ň\x05edil;\x02Ņ\x02y;\x02Н",
+ // NegativeVeryThinSpace;[​] NestedGreaterGreater;[≫] NegativeMediumSpace;[​] NegativeThickSpace;[​] NegativeThinSpace;[​] NestedLessLess;[≪] NewLine;[\xa].
+ "\x14gativeVeryThinSpace;\x03​\x13stedGreaterGreater;\x03≫\x12gativeMediumSpace;\x03​\x11gativeThickSpace;\x03​\x10gativeThinSpace;\x03​\x0dstedLessLess;\x03≪\x06wLine;\x01\xa",
+ // Nfr;[𝔑].
+ "\x02r;\x04𝔑",
+ // NotNestedGreaterGreater;[⪢̸] NotSquareSupersetEqual;[⋣] NotPrecedesSlantEqual;[⋠] NotRightTriangleEqual;[⋭] NotSucceedsSlantEqual;[⋡] NotDoubleVerticalBar;[∦] NotGreaterSlantEqual;[⩾̸] NotLeftTriangleEqual;[⋬] NotSquareSubsetEqual;[⋢] NotGreaterFullEqual;[≧̸] NotRightTriangleBar;[⧐̸] NotLeftTriangleBar;[⧏̸] NotGreaterGreater;[≫̸] NotLessSlantEqual;[⩽̸] NotNestedLessLess;[⪡̸] NotReverseElement;[∌] NotSquareSuperset;[⊐̸] NotTildeFullEqual;[≇] NonBreakingSpace;[ ] NotPrecedesEqual;[⪯̸] NotRightTriangle;[⋫] NotSucceedsEqual;[⪰̸] NotSucceedsTilde;[≿̸] NotSupersetEqual;[⊉] NotGreaterEqual;[≱] NotGreaterTilde;[≵] NotHumpDownHump;[≎̸] NotLeftTriangle;[⋪] NotSquareSubset;[⊏̸] NotGreaterLess;[≹] NotLessGreater;[≸] NotSubsetEqual;[⊈] NotVerticalBar;[∤] NotEqualTilde;[≂̸] NotTildeEqual;[≄] NotTildeTilde;[≉] NotCongruent;[≢] NotHumpEqual;[≏̸] NotLessEqual;[≰] NotLessTilde;[≴] NotLessLess;[≪̸] NotPrecedes;[⊀] NotSucceeds;[⊁] NotSuperset;[⊃⃒] NotElement;[∉] NotGreater;[≯] NotCupCap;[≭] NotExists;[∄] NotSubset;[⊂⃒] NotEqual;[≠] NotTilde;[≁] NoBreak;[⁠] NotLess;[≮] Nopf;[ℕ] Not;[⫬].
+ "\x16tNestedGreaterGreater;\x05⪢̸\x15tSquareSupersetEqual;\x03⋣\x14tPrecedesSlantEqual;\x03⋠\x14tRightTriangleEqual;\x03⋭\x14tSucceedsSlantEqual;\x03⋡\x13tDoubleVerticalBar;\x03∦\x13tGreaterSlantEqual;\x05⩾̸\x13tLeftTriangleEqual;\x03⋬\x13tSquareSubsetEqual;\x03⋢\x12tGreaterFullEqual;\x05≧̸\x12tRightTriangleBar;\x05⧐̸\x11tLeftTriangleBar;\x05⧏̸\x10tGreaterGreater;\x05≫̸\x10tLessSlantEqual;\x05⩽̸\x10tNestedLessLess;\x05⪡̸\x10tReverseElement;\x03∌\x10tSquareSuperset;\x05⊐̸\x10tTildeFullEqual;\x03≇\x0fnBreakingSpace;\x02 \x0ftPrecedesEqual;\x05⪯̸\x0ftRightTriangle;\x03⋫\x0ftSucceedsEqual;\x05⪰̸\x0ftSucceedsTilde;\x05≿̸\x0ftSupersetEqual;\x03⊉\x0etGreaterEqual;\x03≱\x0etGreaterTilde;\x03≵\x0etHumpDownHump;\x05≎̸\x0etLeftTriangle;\x03⋪\x0etSquareSubset;\x05⊏̸\x0dtGreaterLess;\x03≹\x0dtLessGreater;\x03≸\x0dtSubsetEqual;\x03⊈\x0dtVerticalBar;\x03∤\x0ctEqualTilde;\x05≂̸\x0ctTildeEqual;\x03≄\x0ctTildeTilde;\x03≉\x0btCongruent;\x03≢\x0btHumpEqual;\x05≏̸\x0btLessEqual;\x03≰\x0btLessTilde;\x03≴\x0atLessLess;\x05≪̸\x0atPrecedes;\x03⊀\x0atSucceeds;\x03⊁\x0atSuperset;\x06⊃⃒\x09tElement;\x03∉\x09tGreater;\x03≯\x08tCupCap;\x03≭\x08tExists;\x03∄\x08tSubset;\x06⊂⃒\x07tEqual;\x03≠\x07tTilde;\x03≁\x06Break;\x03⁠\x06tLess;\x03≮\x03pf;\x03ℕ\x02t;\x03⫬",
+ // Nscr;[𝒩].
+ "\x03cr;\x04𝒩",
+ // Ntilde;[Ñ] Ntilde[Ñ].
+ "\x05ilde;\x02Ñ\x04ilde\x02Ñ",
+ // Nu;[Ν].
+ "\x01;\x02Ν",
+ // OElig;[Œ].
+ "\x04lig;\x02Œ",
+ // Oacute;[Ó] Oacute[Ó].
+ "\x05cute;\x02Ó\x04cute\x02Ó",
+ // Ocirc;[Ô] Ocirc[Ô] Ocy;[О].
+ "\x04irc;\x02Ô\x03irc\x02Ô\x02y;\x02О",
+ // Odblac;[Ő].
+ "\x05blac;\x02Ő",
+ // Ofr;[𝔒].
+ "\x02r;\x04𝔒",
+ // Ograve;[Ò] Ograve[Ò].
+ "\x05rave;\x02Ò\x04rave\x02Ò",
+ // Omicron;[Ο] Omacr;[Ō] Omega;[Ω].
+ "\x06icron;\x02Ο\x04acr;\x02Ō\x04ega;\x02Ω",
+ // Oopf;[𝕆].
+ "\x03pf;\x04𝕆",
+ // OpenCurlyDoubleQuote;[“] OpenCurlyQuote;[‘].
+ "\x13enCurlyDoubleQuote;\x03“\x0denCurlyQuote;\x03‘",
+ // Or;[⩔].
+ "\x01;\x03⩔",
+ // Oslash;[Ø] Oslash[Ø] Oscr;[𝒪].
+ "\x05lash;\x02Ø\x04lash\x02Ø\x03cr;\x04𝒪",
+ // Otilde;[Õ] Otimes;[⨷] Otilde[Õ].
+ "\x05ilde;\x02Õ\x05imes;\x03⨷\x04ilde\x02Õ",
+ // Ouml;[Ö] Ouml[Ö].
+ "\x03ml;\x02Ö\x02ml\x02Ö",
+ // OverParenthesis;[⏜] OverBracket;[⎴] OverBrace;[⏞] OverBar;[‾].
+ "\x0eerParenthesis;\x03⏜\x0aerBracket;\x03⎴\x08erBrace;\x03⏞\x06erBar;\x03‾",
+ // PartialD;[∂].
+ "\x07rtialD;\x03∂",
+ // Pcy;[П].
+ "\x02y;\x02П",
+ // Pfr;[𝔓].
+ "\x02r;\x04𝔓",
+ // Phi;[Φ].
+ "\x02i;\x02Φ",
+ // Pi;[Π].
+ "\x01;\x02Π",
+ // PlusMinus;[±].
+ "\x08usMinus;\x02±",
+ // Poincareplane;[ℌ] Popf;[ℙ].
+ "\x0cincareplane;\x03ℌ\x03pf;\x03ℙ",
+ // PrecedesSlantEqual;[≼] PrecedesEqual;[⪯] PrecedesTilde;[≾] Proportional;[∝] Proportion;[∷] Precedes;[≺] Product;[∏] Prime;[″] Pr;[⪻].
+ "\x11ecedesSlantEqual;\x03≼\x0cecedesEqual;\x03⪯\x0cecedesTilde;\x03≾\x0boportional;\x03∝\x09oportion;\x03∷\x07ecedes;\x03≺\x06oduct;\x03∏\x04ime;\x03″\x01;\x03⪻",
+ // Pscr;[𝒫] Psi;[Ψ].
+ "\x03cr;\x04𝒫\x02i;\x02Ψ",
+ // QUOT;[\"] QUOT[\"].
+ "\x03OT;\x01\"\x02OT\x01\"",
+ // Qfr;[𝔔].
+ "\x02r;\x04𝔔",
+ // Qopf;[ℚ].
+ "\x03pf;\x03ℚ",
+ // Qscr;[𝒬].
+ "\x03cr;\x04𝒬",
+ // RBarr;[⤐].
+ "\x04arr;\x03⤐",
+ // REG;[®] REG[®].
+ "\x02G;\x02®\x01G\x02®",
+ // Racute;[Ŕ] Rarrtl;[⤖] Rang;[⟫] Rarr;[↠].
+ "\x05cute;\x02Ŕ\x05rrtl;\x03⤖\x03ng;\x03⟫\x03rr;\x03↠",
+ // Rcaron;[Ř] Rcedil;[Ŗ] Rcy;[Р].
+ "\x05aron;\x02Ř\x05edil;\x02Ŗ\x02y;\x02Р",
+ // ReverseUpEquilibrium;[⥯] ReverseEquilibrium;[⇋] ReverseElement;[∋] Re;[ℜ].
+ "\x13verseUpEquilibrium;\x03⥯\x11verseEquilibrium;\x03⇋\x0dverseElement;\x03∋\x01;\x03ℜ",
+ // Rfr;[ℜ].
+ "\x02r;\x03ℜ",
+ // Rho;[Ρ].
+ "\x02o;\x02Ρ",
+ // RightArrowLeftArrow;[⇄] RightDoubleBracket;[⟧] RightDownTeeVector;[⥝] RightDownVectorBar;[⥕] RightTriangleEqual;[⊵] RightAngleBracket;[⟩] RightUpDownVector;[⥏] RightTriangleBar;[⧐] RightUpTeeVector;[⥜] RightUpVectorBar;[⥔] RightDownVector;[⇂] RightTeeVector;[⥛] RightVectorBar;[⥓] RightArrowBar;[⇥] RightTeeArrow;[↦] RightTriangle;[⊳] RightUpVector;[↾] RightCeiling;[⌉] RightVector;[⇀] RightArrow;[→] RightFloor;[⌋] Rightarrow;[⇒] RightTee;[⊢].
+ "\x12ghtArrowLeftArrow;\x03⇄\x11ghtDoubleBracket;\x03⟧\x11ghtDownTeeVector;\x03⥝\x11ghtDownVectorBar;\x03⥕\x11ghtTriangleEqual;\x03⊵\x10ghtAngleBracket;\x03⟩\x10ghtUpDownVector;\x03⥏\x0fghtTriangleBar;\x03⧐\x0fghtUpTeeVector;\x03⥜\x0fghtUpVectorBar;\x03⥔\x0eghtDownVector;\x03⇂\x0dghtTeeVector;\x03⥛\x0dghtVectorBar;\x03⥓\x0cghtArrowBar;\x03⇥\x0cghtTeeArrow;\x03↦\x0cghtTriangle;\x03⊳\x0cghtUpVector;\x03↾\x0bghtCeiling;\x03⌉\x0aghtVector;\x03⇀\x09ghtArrow;\x03→\x09ghtFloor;\x03⌋\x09ghtarrow;\x03⇒\x07ghtTee;\x03⊢",
+ // RoundImplies;[⥰] Ropf;[ℝ].
+ "\x0bundImplies;\x03⥰\x03pf;\x03ℝ",
+ // Rrightarrow;[⇛].
+ "\x0aightarrow;\x03⇛",
+ // Rscr;[ℛ] Rsh;[↱].
+ "\x03cr;\x03ℛ\x02h;\x03↱",
+ // RuleDelayed;[⧴].
+ "\x0aleDelayed;\x03⧴",
+ // SHCHcy;[Щ] SHcy;[Ш].
+ "\x05CHcy;\x02Щ\x03cy;\x02Ш",
+ // SOFTcy;[Ь].
+ "\x05FTcy;\x02Ь",
+ // Sacute;[Ś].
+ "\x05cute;\x02Ś",
+ // Scaron;[Š] Scedil;[Ş] Scirc;[Ŝ] Scy;[С] Sc;[⪼].
+ "\x05aron;\x02Š\x05edil;\x02Ş\x04irc;\x02Ŝ\x02y;\x02С\x01;\x03⪼",
+ // Sfr;[𝔖].
+ "\x02r;\x04𝔖",
+ // ShortRightArrow;[→] ShortDownArrow;[↓] ShortLeftArrow;[←] ShortUpArrow;[↑].
+ "\x0eortRightArrow;\x03→\x0dortDownArrow;\x03↓\x0dortLeftArrow;\x03←\x0bortUpArrow;\x03↑",
+ // Sigma;[Σ].
+ "\x04gma;\x02Σ",
+ // SmallCircle;[∘].
+ "\x0aallCircle;\x03∘",
+ // Sopf;[𝕊].
+ "\x03pf;\x04𝕊",
+ // SquareSupersetEqual;[⊒] SquareIntersection;[⊓] SquareSubsetEqual;[⊑] SquareSuperset;[⊐] SquareSubset;[⊏] SquareUnion;[⊔] Square;[□] Sqrt;[√].
+ "\x12uareSupersetEqual;\x03⊒\x11uareIntersection;\x03⊓\x10uareSubsetEqual;\x03⊑\x0duareSuperset;\x03⊐\x0buareSubset;\x03⊏\x0auareUnion;\x03⊔\x05uare;\x03□\x03rt;\x03√",
+ // Sscr;[𝒮].
+ "\x03cr;\x04𝒮",
+ // Star;[⋆].
+ "\x03ar;\x03⋆",
+ // SucceedsSlantEqual;[≽] SucceedsEqual;[⪰] SucceedsTilde;[≿] SupersetEqual;[⊇] SubsetEqual;[⊆] Succeeds;[≻] SuchThat;[∋] Superset;[⊃] Subset;[⋐] Supset;[⋑] Sub;[⋐] Sum;[∑] Sup;[⋑].
+ "\x11cceedsSlantEqual;\x03≽\x0ccceedsEqual;\x03⪰\x0ccceedsTilde;\x03≿\x0cpersetEqual;\x03⊇\x0absetEqual;\x03⊆\x07cceeds;\x03≻\x07chThat;\x03∋\x07perset;\x03⊃\x05bset;\x03⋐\x05pset;\x03⋑\x02b;\x03⋐\x02m;\x03∑\x02p;\x03⋑",
+ // THORN;[Þ] THORN[Þ].
+ "\x04ORN;\x02Þ\x03ORN\x02Þ",
+ // TRADE;[™].
+ "\x04ADE;\x03™",
+ // TSHcy;[Ћ] TScy;[Ц].
+ "\x04Hcy;\x02Ћ\x03cy;\x02Ц",
+ // Tab;[\x9] Tau;[Τ].
+ "\x02b;\x01\x9\x02u;\x02Τ",
+ // Tcaron;[Ť] Tcedil;[Ţ] Tcy;[Т].
+ "\x05aron;\x02Ť\x05edil;\x02Ţ\x02y;\x02Т",
+ // Tfr;[𝔗].
+ "\x02r;\x04𝔗",
+ // ThickSpace;[  ] Therefore;[∴] ThinSpace;[ ] Theta;[Θ].
+ "\x09ickSpace;\x06  \x08erefore;\x03∴\x08inSpace;\x03 \x04eta;\x02Θ",
+ // TildeFullEqual;[≅] TildeEqual;[≃] TildeTilde;[≈] Tilde;[∼].
+ "\x0dldeFullEqual;\x03≅\x09ldeEqual;\x03≃\x09ldeTilde;\x03≈\x04lde;\x03∼",
+ // Topf;[𝕋].
+ "\x03pf;\x04𝕋",
+ // TripleDot;[⃛].
+ "\x08ipleDot;\x03⃛",
+ // Tstrok;[Ŧ] Tscr;[𝒯].
+ "\x05trok;\x02Ŧ\x03cr;\x04𝒯",
+ // Uarrocir;[⥉] Uacute;[Ú] Uacute[Ú] Uarr;[↟].
+ "\x07rrocir;\x03⥉\x05cute;\x02Ú\x04cute\x02Ú\x03rr;\x03↟",
+ // Ubreve;[Ŭ] Ubrcy;[Ў].
+ "\x05reve;\x02Ŭ\x04rcy;\x02Ў",
+ // Ucirc;[Û] Ucirc[Û] Ucy;[У].
+ "\x04irc;\x02Û\x03irc\x02Û\x02y;\x02У",
+ // Udblac;[Ű].
+ "\x05blac;\x02Ű",
+ // Ufr;[𝔘].
+ "\x02r;\x04𝔘",
+ // Ugrave;[Ù] Ugrave[Ù].
+ "\x05rave;\x02Ù\x04rave\x02Ù",
+ // Umacr;[Ū].
+ "\x04acr;\x02Ū",
+ // UnderParenthesis;[⏝] UnderBracket;[⎵] UnderBrace;[⏟] UnionPlus;[⊎] UnderBar;[_] Union;[⋃].
+ "\x0fderParenthesis;\x03⏝\x0bderBracket;\x03⎵\x09derBrace;\x03⏟\x08ionPlus;\x03⊎\x07derBar;\x01_\x04ion;\x03⋃",
+ // Uogon;[Ų] Uopf;[𝕌].
+ "\x04gon;\x02Ų\x03pf;\x04𝕌",
+ // UpArrowDownArrow;[⇅] UpperRightArrow;[↗] UpperLeftArrow;[↖] UpEquilibrium;[⥮] UpDownArrow;[↕] Updownarrow;[⇕] UpArrowBar;[⤒] UpTeeArrow;[↥] UpArrow;[↑] Uparrow;[⇑] Upsilon;[Υ] UpTee;[⊥] Upsi;[ϒ].
+ "\x0fArrowDownArrow;\x03⇅\x0eperRightArrow;\x03↗\x0dperLeftArrow;\x03↖\x0cEquilibrium;\x03⥮\x0aDownArrow;\x03↕\x0adownarrow;\x03⇕\x09ArrowBar;\x03⤒\x09TeeArrow;\x03↥\x06Arrow;\x03↑\x06arrow;\x03⇑\x06silon;\x02Υ\x04Tee;\x03⊥\x03si;\x02ϒ",
+ // Uring;[Ů].
+ "\x04ing;\x02Ů",
+ // Uscr;[𝒰].
+ "\x03cr;\x04𝒰",
+ // Utilde;[Ũ].
+ "\x05ilde;\x02Ũ",
+ // Uuml;[Ü] Uuml[Ü].
+ "\x03ml;\x02Ü\x02ml\x02Ü",
+ // VDash;[⊫].
+ "\x04ash;\x03⊫",
+ // Vbar;[⫫].
+ "\x03ar;\x03⫫",
+ // Vcy;[В].
+ "\x02y;\x02В",
+ // Vdashl;[⫦] Vdash;[⊩].
+ "\x05ashl;\x03⫦\x04ash;\x03⊩",
+ // VerticalSeparator;[❘] VerticalTilde;[≀] VeryThinSpace;[ ] VerticalLine;[|] VerticalBar;[∣] Verbar;[‖] Vert;[‖] Vee;[⋁].
+ "\x10rticalSeparator;\x03❘\x0crticalTilde;\x03≀\x0cryThinSpace;\x03 \x0brticalLine;\x01|\x0articalBar;\x03∣\x05rbar;\x03‖\x03rt;\x03‖\x02e;\x03⋁",
+ // Vfr;[𝔙].
+ "\x02r;\x04𝔙",
+ // Vopf;[𝕍].
+ "\x03pf;\x04𝕍",
+ // Vscr;[𝒱].
+ "\x03cr;\x04𝒱",
+ // Vvdash;[⊪].
+ "\x05dash;\x03⊪",
+ // Wcirc;[Ŵ].
+ "\x04irc;\x02Ŵ",
+ // Wedge;[⋀].
+ "\x04dge;\x03⋀",
+ // Wfr;[𝔚].
+ "\x02r;\x04𝔚",
+ // Wopf;[𝕎].
+ "\x03pf;\x04𝕎",
+ // Wscr;[𝒲].
+ "\x03cr;\x04𝒲",
+ // Xfr;[𝔛].
+ "\x02r;\x04𝔛",
+ // Xi;[Ξ].
+ "\x01;\x02Ξ",
+ // Xopf;[𝕏].
+ "\x03pf;\x04𝕏",
+ // Xscr;[𝒳].
+ "\x03cr;\x04𝒳",
+ // YAcy;[Я].
+ "\x03cy;\x02Я",
+ // YIcy;[Ї].
+ "\x03cy;\x02Ї",
+ // YUcy;[Ю].
+ "\x03cy;\x02Ю",
+ // Yacute;[Ý] Yacute[Ý].
+ "\x05cute;\x02Ý\x04cute\x02Ý",
+ // Ycirc;[Ŷ] Ycy;[Ы].
+ "\x04irc;\x02Ŷ\x02y;\x02Ы",
+ // Yfr;[𝔜].
+ "\x02r;\x04𝔜",
+ // Yopf;[𝕐].
+ "\x03pf;\x04𝕐",
+ // Yscr;[𝒴].
+ "\x03cr;\x04𝒴",
+ // Yuml;[Ÿ].
+ "\x03ml;\x02Ÿ",
+ // ZHcy;[Ж].
+ "\x03cy;\x02Ж",
+ // Zacute;[Ź].
+ "\x05cute;\x02Ź",
+ // Zcaron;[Ž] Zcy;[З].
+ "\x05aron;\x02Ž\x02y;\x02З",
+ // Zdot;[Ż].
+ "\x03ot;\x02Ż",
+ // ZeroWidthSpace;[​] Zeta;[Ζ].
+ "\x0droWidthSpace;\x03​\x03ta;\x02Ζ",
+ // Zfr;[ℨ].
+ "\x02r;\x03ℨ",
+ // Zopf;[ℤ].
+ "\x03pf;\x03ℤ",
+ // Zscr;[𝒵].
+ "\x03cr;\x04𝒵",
+ // aacute;[á] aacute[á].
+ "\x05cute;\x02á\x04cute\x02á",
+ // abreve;[ă].
+ "\x05reve;\x02ă",
+ // acirc;[â] acute;[´] acirc[â] acute[´] acE;[∾̳] acd;[∿] acy;[а] ac;[∾].
+ "\x04irc;\x02â\x04ute;\x02´\x03irc\x02â\x03ute\x02´\x02E;\x05∾̳\x02d;\x03∿\x02y;\x02а\x01;\x03∾",
+ // aelig;[æ] aelig[æ].
+ "\x04lig;\x02æ\x03lig\x02æ",
+ // afr;[𝔞] af;[⁡].
+ "\x02r;\x04𝔞\x01;\x03⁡",
+ // agrave;[à] agrave[à].
+ "\x05rave;\x02à\x04rave\x02à",
+ // alefsym;[ℵ] aleph;[ℵ] alpha;[α].
+ "\x06efsym;\x03ℵ\x04eph;\x03ℵ\x04pha;\x02α",
+ // amacr;[ā] amalg;[⨿] amp;[&] amp[&].
+ "\x04acr;\x02ā\x04alg;\x03⨿\x02p;\x01&\x01p\x01&",
+ // andslope;[⩘] angmsdaa;[⦨] angmsdab;[⦩] angmsdac;[⦪] angmsdad;[⦫] angmsdae;[⦬] angmsdaf;[⦭] angmsdag;[⦮] angmsdah;[⦯] angrtvbd;[⦝] angrtvb;[⊾] angzarr;[⍼] andand;[⩕] angmsd;[∡] angsph;[∢] angle;[∠] angrt;[∟] angst;[Å] andd;[⩜] andv;[⩚] ange;[⦤] and;[∧] ang;[∠].
+ "\x07dslope;\x03⩘\x07gmsdaa;\x03⦨\x07gmsdab;\x03⦩\x07gmsdac;\x03⦪\x07gmsdad;\x03⦫\x07gmsdae;\x03⦬\x07gmsdaf;\x03⦭\x07gmsdag;\x03⦮\x07gmsdah;\x03⦯\x07grtvbd;\x03⦝\x06grtvb;\x03⊾\x06gzarr;\x03⍼\x05dand;\x03⩕\x05gmsd;\x03∡\x05gsph;\x03∢\x04gle;\x03∠\x04grt;\x03∟\x04gst;\x02Å\x03dd;\x03⩜\x03dv;\x03⩚\x03ge;\x03⦤\x02d;\x03∧\x02g;\x03∠",
+ // aogon;[ą] aopf;[𝕒].
+ "\x04gon;\x02ą\x03pf;\x04𝕒",
+ // approxeq;[≊] apacir;[⩯] approx;[≈] apid;[≋] apos;['] apE;[⩰] ape;[≊] ap;[≈].
+ "\x07proxeq;\x03≊\x05acir;\x03⩯\x05prox;\x03≈\x03id;\x03≋\x03os;\x01'\x02E;\x03⩰\x02e;\x03≊\x01;\x03≈",
+ // aring;[å] aring[å].
+ "\x04ing;\x02å\x03ing\x02å",
+ // asympeq;[≍] asymp;[≈] ascr;[𝒶] ast;[*].
+ "\x06ympeq;\x03≍\x04ymp;\x03≈\x03cr;\x04𝒶\x02t;\x01*",
+ // atilde;[ã] atilde[ã].
+ "\x05ilde;\x02ã\x04ilde\x02ã",
+ // auml;[ä] auml[ä].
+ "\x03ml;\x02ä\x02ml\x02ä",
+ // awconint;[∳] awint;[⨑].
+ "\x07conint;\x03∳\x04int;\x03⨑",
+ // bNot;[⫭].
+ "\x03ot;\x03⫭",
+ // backepsilon;[϶] backprime;[‵] backsimeq;[⋍] backcong;[≌] barwedge;[⌅] backsim;[∽] barvee;[⊽] barwed;[⌅].
+ "\x0ackepsilon;\x02϶\x08ckprime;\x03‵\x08cksimeq;\x03⋍\x07ckcong;\x03≌\x07rwedge;\x03⌅\x06cksim;\x03∽\x05rvee;\x03⊽\x05rwed;\x03⌅",
+ // bbrktbrk;[⎶] bbrk;[⎵].
+ "\x07rktbrk;\x03⎶\x03rk;\x03⎵",
+ // bcong;[≌] bcy;[б].
+ "\x04ong;\x03≌\x02y;\x02б",
+ // bdquo;[„].
+ "\x04quo;\x03„",
+ // because;[∵] bemptyv;[⦰] between;[≬] becaus;[∵] bernou;[ℬ] bepsi;[϶] beta;[β] beth;[ℶ].
+ "\x06cause;\x03∵\x06mptyv;\x03⦰\x06tween;\x03≬\x05caus;\x03∵\x05rnou;\x03ℬ\x04psi;\x02϶\x03ta;\x02β\x03th;\x03ℶ",
+ // bfr;[𝔟].
+ "\x02r;\x04𝔟",
+ // bigtriangledown;[▽] bigtriangleup;[△] bigotimes;[⨂] bigoplus;[⨁] bigsqcup;[⨆] biguplus;[⨄] bigwedge;[⋀] bigcirc;[◯] bigodot;[⨀] bigstar;[★] bigcap;[⋂] bigcup;[⋃] bigvee;[⋁].
+ "\x0egtriangledown;\x03▽\x0cgtriangleup;\x03△\x08gotimes;\x03⨂\x07goplus;\x03⨁\x07gsqcup;\x03⨆\x07guplus;\x03⨄\x07gwedge;\x03⋀\x06gcirc;\x03◯\x06godot;\x03⨀\x06gstar;\x03★\x05gcap;\x03⋂\x05gcup;\x03⋃\x05gvee;\x03⋁",
+ // bkarow;[⤍].
+ "\x05arow;\x03⤍",
+ // blacktriangleright;[▸] blacktriangledown;[▾] blacktriangleleft;[◂] blacktriangle;[▴] blacklozenge;[⧫] blacksquare;[▪] blank;[␣] blk12;[▒] blk14;[░] blk34;[▓] block;[█].
+ "\x11acktriangleright;\x03▸\x10acktriangledown;\x03▾\x10acktriangleleft;\x03◂\x0cacktriangle;\x03▴\x0backlozenge;\x03⧫\x0aacksquare;\x03▪\x04ank;\x03␣\x04k12;\x03▒\x04k14;\x03░\x04k34;\x03▓\x04ock;\x03█",
+ // bnequiv;[≡⃥] bnot;[⌐] bne;[=⃥].
+ "\x06equiv;\x06≡⃥\x03ot;\x03⌐\x02e;\x04=⃥",
+ // boxminus;[⊟] boxtimes;[⊠] boxplus;[⊞] bottom;[⊥] bowtie;[⋈] boxbox;[⧉] boxDL;[╗] boxDR;[╔] boxDl;[╖] boxDr;[╓] boxHD;[╦] boxHU;[╩] boxHd;[╤] boxHu;[╧] boxUL;[╝] boxUR;[╚] boxUl;[╜] boxUr;[╙] boxVH;[╬] boxVL;[╣] boxVR;[╠] boxVh;[╫] boxVl;[╢] boxVr;[╟] boxdL;[╕] boxdR;[╒] boxdl;[┐] boxdr;[┌] boxhD;[╥] boxhU;[╨] boxhd;[┬] boxhu;[┴] boxuL;[╛] boxuR;[╘] boxul;[┘] boxur;[└] boxvH;[╪] boxvL;[╡] boxvR;[╞] boxvh;[┼] boxvl;[┤] boxvr;[├] bopf;[𝕓] boxH;[═] boxV;[║] boxh;[─] boxv;[│] bot;[⊥].
+ "\x07xminus;\x03⊟\x07xtimes;\x03⊠\x06xplus;\x03⊞\x05ttom;\x03⊥\x05wtie;\x03⋈\x05xbox;\x03⧉\x04xDL;\x03╗\x04xDR;\x03╔\x04xDl;\x03╖\x04xDr;\x03╓\x04xHD;\x03╦\x04xHU;\x03╩\x04xHd;\x03╤\x04xHu;\x03╧\x04xUL;\x03╝\x04xUR;\x03╚\x04xUl;\x03╜\x04xUr;\x03╙\x04xVH;\x03╬\x04xVL;\x03╣\x04xVR;\x03╠\x04xVh;\x03╫\x04xVl;\x03╢\x04xVr;\x03╟\x04xdL;\x03╕\x04xdR;\x03╒\x04xdl;\x03┐\x04xdr;\x03┌\x04xhD;\x03╥\x04xhU;\x03╨\x04xhd;\x03┬\x04xhu;\x03┴\x04xuL;\x03╛\x04xuR;\x03╘\x04xul;\x03┘\x04xur;\x03└\x04xvH;\x03╪\x04xvL;\x03╡\x04xvR;\x03╞\x04xvh;\x03┼\x04xvl;\x03┤\x04xvr;\x03├\x03pf;\x04𝕓\x03xH;\x03═\x03xV;\x03║\x03xh;\x03─\x03xv;\x03│\x02t;\x03⊥",
+ // bprime;[‵].
+ "\x05rime;\x03‵",
+ // brvbar;[¦] breve;[˘] brvbar[¦].
+ "\x05vbar;\x02¦\x04eve;\x02˘\x04vbar\x02¦",
+ // bsolhsub;[⟈] bsemi;[⁏] bsime;[⋍] bsolb;[⧅] bscr;[𝒷] bsim;[∽] bsol;[\\].
+ "\x07olhsub;\x03⟈\x04emi;\x03⁏\x04ime;\x03⋍\x04olb;\x03⧅\x03cr;\x04𝒷\x03im;\x03∽\x03ol;\x01\\",
+ // bullet;[•] bumpeq;[≏] bumpE;[⪮] bumpe;[≏] bull;[•] bump;[≎].
+ "\x05llet;\x03•\x05mpeq;\x03≏\x04mpE;\x03⪮\x04mpe;\x03≏\x03ll;\x03•\x03mp;\x03≎",
+ // capbrcup;[⩉] cacute;[ć] capand;[⩄] capcap;[⩋] capcup;[⩇] capdot;[⩀] caret;[⁁] caron;[ˇ] caps;[∩︀] cap;[∩].
+ "\x07pbrcup;\x03⩉\x05cute;\x02ć\x05pand;\x03⩄\x05pcap;\x03⩋\x05pcup;\x03⩇\x05pdot;\x03⩀\x04ret;\x03⁁\x04ron;\x02ˇ\x03ps;\x06∩︀\x02p;\x03∩",
+ // ccupssm;[⩐] ccaron;[č] ccedil;[ç] ccaps;[⩍] ccedil[ç] ccirc;[ĉ] ccups;[⩌].
+ "\x06upssm;\x03⩐\x05aron;\x02č\x05edil;\x02ç\x04aps;\x03⩍\x04edil\x02ç\x04irc;\x02ĉ\x04ups;\x03⩌",
+ // cdot;[ċ].
+ "\x03ot;\x02ċ",
+ // centerdot;[·] cemptyv;[⦲] cedil;[¸] cedil[¸] cent;[¢] cent[¢].
+ "\x08nterdot;\x02·\x06mptyv;\x03⦲\x04dil;\x02¸\x03dil\x02¸\x03nt;\x02¢\x02nt\x02¢",
+ // cfr;[𝔠].
+ "\x02r;\x04𝔠",
+ // checkmark;[✓] check;[✓] chcy;[ч] chi;[χ].
+ "\x08eckmark;\x03✓\x04eck;\x03✓\x03cy;\x02ч\x02i;\x02χ",
+ // circlearrowright;[↻] circlearrowleft;[↺] circledcirc;[⊚] circleddash;[⊝] circledast;[⊛] circledR;[®] circledS;[Ⓢ] cirfnint;[⨐] cirscir;[⧂] circeq;[≗] cirmid;[⫯] cirE;[⧃] circ;[ˆ] cire;[≗] cir;[○].
+ "\x0frclearrowright;\x03↻\x0erclearrowleft;\x03↺\x0arcledcirc;\x03⊚\x0arcleddash;\x03⊝\x09rcledast;\x03⊛\x07rcledR;\x02®\x07rcledS;\x03Ⓢ\x07rfnint;\x03⨐\x06rscir;\x03⧂\x05rceq;\x03≗\x05rmid;\x03⫯\x03rE;\x03⧃\x03rc;\x02ˆ\x03re;\x03≗\x02r;\x03○",
+ // clubsuit;[♣] clubs;[♣].
+ "\x07ubsuit;\x03♣\x04ubs;\x03♣",
+ // complement;[∁] complexes;[ℂ] coloneq;[≔] congdot;[⩭] colone;[≔] commat;[@] compfn;[∘] conint;[∮] coprod;[∐] copysr;[℗] colon;[:] comma;[,] comp;[∁] cong;[≅] copf;[𝕔] copy;[©] copy[©].
+ "\x09mplement;\x03∁\x08mplexes;\x03ℂ\x06loneq;\x03≔\x06ngdot;\x03⩭\x05lone;\x03≔\x05mmat;\x01@\x05mpfn;\x03∘\x05nint;\x03∮\x05prod;\x03∐\x05pysr;\x03℗\x04lon;\x01:\x04mma;\x01,\x03mp;\x03∁\x03ng;\x03≅\x03pf;\x04𝕔\x03py;\x02©\x02py\x02©",
+ // crarr;[↵] cross;[✗].
+ "\x04arr;\x03↵\x04oss;\x03✗",
+ // csube;[⫑] csupe;[⫒] cscr;[𝒸] csub;[⫏] csup;[⫐].
+ "\x04ube;\x03⫑\x04upe;\x03⫒\x03cr;\x04𝒸\x03ub;\x03⫏\x03up;\x03⫐",
+ // ctdot;[⋯].
+ "\x04dot;\x03⋯",
+ // curvearrowright;[↷] curvearrowleft;[↶] curlyeqprec;[⋞] curlyeqsucc;[⋟] curlywedge;[⋏] cupbrcap;[⩈] curlyvee;[⋎] cudarrl;[⤸] cudarrr;[⤵] cularrp;[⤽] curarrm;[⤼] cularr;[↶] cupcap;[⩆] cupcup;[⩊] cupdot;[⊍] curarr;[↷] curren;[¤] cuepr;[⋞] cuesc;[⋟] cupor;[⩅] curren[¤] cuvee;[⋎] cuwed;[⋏] cups;[∪︀] cup;[∪].
+ "\x0ervearrowright;\x03↷\x0drvearrowleft;\x03↶\x0arlyeqprec;\x03⋞\x0arlyeqsucc;\x03⋟\x09rlywedge;\x03⋏\x07pbrcap;\x03⩈\x07rlyvee;\x03⋎\x06darrl;\x03⤸\x06darrr;\x03⤵\x06larrp;\x03⤽\x06rarrm;\x03⤼\x05larr;\x03↶\x05pcap;\x03⩆\x05pcup;\x03⩊\x05pdot;\x03⊍\x05rarr;\x03↷\x05rren;\x02¤\x04epr;\x03⋞\x04esc;\x03⋟\x04por;\x03⩅\x04rren\x02¤\x04vee;\x03⋎\x04wed;\x03⋏\x03ps;\x06∪︀\x02p;\x03∪",
+ // cwconint;[∲] cwint;[∱].
+ "\x07conint;\x03∲\x04int;\x03∱",
+ // cylcty;[⌭].
+ "\x05lcty;\x03⌭",
+ // dArr;[⇓].
+ "\x03rr;\x03⇓",
+ // dHar;[⥥].
+ "\x03ar;\x03⥥",
+ // dagger;[†] daleth;[ℸ] dashv;[⊣] darr;[↓] dash;[‐].
+ "\x05gger;\x03†\x05leth;\x03ℸ\x04shv;\x03⊣\x03rr;\x03↓\x03sh;\x03‐",
+ // dbkarow;[⤏] dblac;[˝].
+ "\x06karow;\x03⤏\x04lac;\x02˝",
+ // dcaron;[ď] dcy;[д].
+ "\x05aron;\x02ď\x02y;\x02д",
+ // ddagger;[‡] ddotseq;[⩷] ddarr;[⇊] dd;[ⅆ].
+ "\x06agger;\x03‡\x06otseq;\x03⩷\x04arr;\x03⇊\x01;\x03ⅆ",
+ // demptyv;[⦱] delta;[δ] deg;[°] deg[°].
+ "\x06mptyv;\x03⦱\x04lta;\x02δ\x02g;\x02°\x01g\x02°",
+ // dfisht;[⥿] dfr;[𝔡].
+ "\x05isht;\x03⥿\x02r;\x04𝔡",
+ // dharl;[⇃] dharr;[⇂].
+ "\x04arl;\x03⇃\x04arr;\x03⇂",
+ // divideontimes;[⋇] diamondsuit;[♦] diamond;[⋄] digamma;[ϝ] divide;[÷] divonx;[⋇] diams;[♦] disin;[⋲] divide[÷] diam;[⋄] die;[¨] div;[÷].
+ "\x0cvideontimes;\x03⋇\x0aamondsuit;\x03♦\x06amond;\x03⋄\x06gamma;\x02ϝ\x05vide;\x02÷\x05vonx;\x03⋇\x04ams;\x03♦\x04sin;\x03⋲\x04vide\x02÷\x03am;\x03⋄\x02e;\x02¨\x02v;\x02÷",
+ // djcy;[ђ].
+ "\x03cy;\x02ђ",
+ // dlcorn;[⌞] dlcrop;[⌍].
+ "\x05corn;\x03⌞\x05crop;\x03⌍",
+ // downharpoonright;[⇂] downharpoonleft;[⇃] doublebarwedge;[⌆] downdownarrows;[⇊] dotsquare;[⊡] downarrow;[↓] doteqdot;[≑] dotminus;[∸] dotplus;[∔] dollar;[$] doteq;[≐] dopf;[𝕕] dot;[˙].
+ "\x0fwnharpoonright;\x03⇂\x0ewnharpoonleft;\x03⇃\x0dublebarwedge;\x03⌆\x0dwndownarrows;\x03⇊\x08tsquare;\x03⊡\x08wnarrow;\x03↓\x07teqdot;\x03≑\x07tminus;\x03∸\x06tplus;\x03∔\x05llar;\x01$\x04teq;\x03≐\x03pf;\x04𝕕\x02t;\x02˙",
+ // drbkarow;[⤐] drcorn;[⌟] drcrop;[⌌].
+ "\x07bkarow;\x03⤐\x05corn;\x03⌟\x05crop;\x03⌌",
+ // dstrok;[đ] dscr;[𝒹] dscy;[ѕ] dsol;[⧶].
+ "\x05trok;\x02đ\x03cr;\x04𝒹\x03cy;\x02ѕ\x03ol;\x03⧶",
+ // dtdot;[⋱] dtrif;[▾] dtri;[▿].
+ "\x04dot;\x03⋱\x04rif;\x03▾\x03ri;\x03▿",
+ // duarr;[⇵] duhar;[⥯].
+ "\x04arr;\x03⇵\x04har;\x03⥯",
+ // dwangle;[⦦].
+ "\x06angle;\x03⦦",
+ // dzigrarr;[⟿] dzcy;[џ].
+ "\x07igrarr;\x03⟿\x03cy;\x02џ",
+ // eDDot;[⩷] eDot;[≑].
+ "\x04Dot;\x03⩷\x03ot;\x03≑",
+ // eacute;[é] easter;[⩮] eacute[é].
+ "\x05cute;\x02é\x05ster;\x03⩮\x04cute\x02é",
+ // ecaron;[ě] ecolon;[≕] ecirc;[ê] ecir;[≖] ecirc[ê] ecy;[э].
+ "\x05aron;\x02ě\x05olon;\x03≕\x04irc;\x02ê\x03ir;\x03≖\x03irc\x02ê\x02y;\x02э",
+ // edot;[ė].
+ "\x03ot;\x02ė",
+ // ee;[ⅇ].
+ "\x01;\x03ⅇ",
+ // efDot;[≒] efr;[𝔢].
+ "\x04Dot;\x03≒\x02r;\x04𝔢",
+ // egrave;[è] egsdot;[⪘] egrave[è] egs;[⪖] eg;[⪚].
+ "\x05rave;\x02è\x05sdot;\x03⪘\x04rave\x02è\x02s;\x03⪖\x01;\x03⪚",
+ // elinters;[⏧] elsdot;[⪗] ell;[ℓ] els;[⪕] el;[⪙].
+ "\x07inters;\x03⏧\x05sdot;\x03⪗\x02l;\x03ℓ\x02s;\x03⪕\x01;\x03⪙",
+ // emptyset;[∅] emptyv;[∅] emsp13;[ ] emsp14;[ ] emacr;[ē] empty;[∅] emsp;[ ].
+ "\x07ptyset;\x03∅\x05ptyv;\x03∅\x05sp13;\x03 \x05sp14;\x03 \x04acr;\x02ē\x04pty;\x03∅\x03sp;\x03 ",
+ // ensp;[ ] eng;[ŋ].
+ "\x03sp;\x03 \x02g;\x02ŋ",
+ // eogon;[ę] eopf;[𝕖].
+ "\x04gon;\x02ę\x03pf;\x04𝕖",
+ // epsilon;[ε] eparsl;[⧣] eplus;[⩱] epsiv;[ϵ] epar;[⋕] epsi;[ε].
+ "\x06silon;\x02ε\x05arsl;\x03⧣\x04lus;\x03⩱\x04siv;\x02ϵ\x03ar;\x03⋕\x03si;\x02ε",
+ // eqslantless;[⪕] eqslantgtr;[⪖] eqvparsl;[⧥] eqcolon;[≕] equivDD;[⩸] eqcirc;[≖] equals;[=] equest;[≟] eqsim;[≂] equiv;[≡].
+ "\x0aslantless;\x03⪕\x09slantgtr;\x03⪖\x07vparsl;\x03⧥\x06colon;\x03≕\x06uivDD;\x03⩸\x05circ;\x03≖\x05uals;\x01=\x05uest;\x03≟\x04sim;\x03≂\x04uiv;\x03≡",
+ // erDot;[≓] erarr;[⥱].
+ "\x04Dot;\x03≓\x04arr;\x03⥱",
+ // esdot;[≐] escr;[ℯ] esim;[≂].
+ "\x04dot;\x03≐\x03cr;\x03ℯ\x03im;\x03≂",
+ // eta;[η] eth;[ð] eth[ð].
+ "\x02a;\x02η\x02h;\x02ð\x01h\x02ð",
+ // euml;[ë] euro;[€] euml[ë].
+ "\x03ml;\x02ë\x03ro;\x03€\x02ml\x02ë",
+ // exponentiale;[ⅇ] expectation;[ℰ] exist;[∃] excl;[!].
+ "\x0bponentiale;\x03ⅇ\x0apectation;\x03ℰ\x04ist;\x03∃\x03cl;\x01!",
+ // fallingdotseq;[≒].
+ "\x0cllingdotseq;\x03≒",
+ // fcy;[ф].
+ "\x02y;\x02ф",
+ // female;[♀].
+ "\x05male;\x03♀",
+ // ffilig;[ffi] ffllig;[ffl] fflig;[ff] ffr;[𝔣].
+ "\x05ilig;\x03ffi\x05llig;\x03ffl\x04lig;\x03ff\x02r;\x04𝔣",
+ // filig;[fi].
+ "\x04lig;\x03fi",
+ // fjlig;[fj].
+ "\x04lig;\x02fj",
+ // fllig;[fl] fltns;[▱] flat;[♭].
+ "\x04lig;\x03fl\x04tns;\x03▱\x03at;\x03♭",
+ // fnof;[ƒ].
+ "\x03of;\x02ƒ",
+ // forall;[∀] forkv;[⫙] fopf;[𝕗] fork;[⋔].
+ "\x05rall;\x03∀\x04rkv;\x03⫙\x03pf;\x04𝕗\x03rk;\x03⋔",
+ // fpartint;[⨍].
+ "\x07artint;\x03⨍",
+ // frac12;[½] frac13;[⅓] frac14;[¼] frac15;[⅕] frac16;[⅙] frac18;[⅛] frac23;[⅔] frac25;[⅖] frac34;[¾] frac35;[⅗] frac38;[⅜] frac45;[⅘] frac56;[⅚] frac58;[⅝] frac78;[⅞] frac12[½] frac14[¼] frac34[¾] frasl;[⁄] frown;[⌢].
+ "\x05ac12;\x02½\x05ac13;\x03⅓\x05ac14;\x02¼\x05ac15;\x03⅕\x05ac16;\x03⅙\x05ac18;\x03⅛\x05ac23;\x03⅔\x05ac25;\x03⅖\x05ac34;\x02¾\x05ac35;\x03⅗\x05ac38;\x03⅜\x05ac45;\x03⅘\x05ac56;\x03⅚\x05ac58;\x03⅝\x05ac78;\x03⅞\x04ac12\x02½\x04ac14\x02¼\x04ac34\x02¾\x04asl;\x03⁄\x04own;\x03⌢",
+ // fscr;[𝒻].
+ "\x03cr;\x04𝒻",
+ // gEl;[⪌] gE;[≧].
+ "\x02l;\x03⪌\x01;\x03≧",
+ // gacute;[ǵ] gammad;[ϝ] gamma;[γ] gap;[⪆].
+ "\x05cute;\x02ǵ\x05mmad;\x02ϝ\x04mma;\x02γ\x02p;\x03⪆",
+ // gbreve;[ğ].
+ "\x05reve;\x02ğ",
+ // gcirc;[ĝ] gcy;[г].
+ "\x04irc;\x02ĝ\x02y;\x02г",
+ // gdot;[ġ].
+ "\x03ot;\x02ġ",
+ // geqslant;[⩾] gesdotol;[⪄] gesdoto;[⪂] gesdot;[⪀] gesles;[⪔] gescc;[⪩] geqq;[≧] gesl;[⋛︀] gel;[⋛] geq;[≥] ges;[⩾] ge;[≥].
+ "\x07qslant;\x03⩾\x07sdotol;\x03⪄\x06sdoto;\x03⪂\x05sdot;\x03⪀\x05sles;\x03⪔\x04scc;\x03⪩\x03qq;\x03≧\x03sl;\x06⋛︀\x02l;\x03⋛\x02q;\x03≥\x02s;\x03⩾\x01;\x03≥",
+ // gfr;[𝔤].
+ "\x02r;\x04𝔤",
+ // ggg;[⋙] gg;[≫].
+ "\x02g;\x03⋙\x01;\x03≫",
+ // gimel;[ℷ].
+ "\x04mel;\x03ℷ",
+ // gjcy;[ѓ].
+ "\x03cy;\x02ѓ",
+ // glE;[⪒] gla;[⪥] glj;[⪤] gl;[≷].
+ "\x02E;\x03⪒\x02a;\x03⪥\x02j;\x03⪤\x01;\x03≷",
+ // gnapprox;[⪊] gneqq;[≩] gnsim;[⋧] gnap;[⪊] gneq;[⪈] gnE;[≩] gne;[⪈].
+ "\x07approx;\x03⪊\x04eqq;\x03≩\x04sim;\x03⋧\x03ap;\x03⪊\x03eq;\x03⪈\x02E;\x03≩\x02e;\x03⪈",
+ // gopf;[𝕘].
+ "\x03pf;\x04𝕘",
+ // grave;[`].
+ "\x04ave;\x01`",
+ // gsime;[⪎] gsiml;[⪐] gscr;[ℊ] gsim;[≳].
+ "\x04ime;\x03⪎\x04iml;\x03⪐\x03cr;\x03ℊ\x03im;\x03≳",
+ // gtreqqless;[⪌] gtrapprox;[⪆] gtreqless;[⋛] gtquest;[⩼] gtrless;[≷] gtlPar;[⦕] gtrarr;[⥸] gtrdot;[⋗] gtrsim;[≳] gtcir;[⩺] gtdot;[⋗] gtcc;[⪧] gt;[>].
+ "\x09reqqless;\x03⪌\x08rapprox;\x03⪆\x08reqless;\x03⋛\x06quest;\x03⩼\x06rless;\x03≷\x05lPar;\x03⦕\x05rarr;\x03⥸\x05rdot;\x03⋗\x05rsim;\x03≳\x04cir;\x03⩺\x04dot;\x03⋗\x03cc;\x03⪧\x01;\x01>",
+ // gvertneqq;[≩︀] gvnE;[≩︀].
+ "\x08ertneqq;\x06≩︀\x03nE;\x06≩︀",
+ // hArr;[⇔].
+ "\x03rr;\x03⇔",
+ // harrcir;[⥈] hairsp;[ ] hamilt;[ℋ] hardcy;[ъ] harrw;[↭] half;[½] harr;[↔].
+ "\x06rrcir;\x03⥈\x05irsp;\x03 \x05milt;\x03ℋ\x05rdcy;\x02ъ\x04rrw;\x03↭\x03lf;\x02½\x03rr;\x03↔",
+ // hbar;[ℏ].
+ "\x03ar;\x03ℏ",
+ // hcirc;[ĥ].
+ "\x04irc;\x02ĥ",
+ // heartsuit;[♥] hearts;[♥] hellip;[…] hercon;[⊹].
+ "\x08artsuit;\x03♥\x05arts;\x03♥\x05llip;\x03…\x05rcon;\x03⊹",
+ // hfr;[𝔥].
+ "\x02r;\x04𝔥",
+ // hksearow;[⤥] hkswarow;[⤦].
+ "\x07searow;\x03⤥\x07swarow;\x03⤦",
+ // hookrightarrow;[↪] hookleftarrow;[↩] homtht;[∻] horbar;[―] hoarr;[⇿] hopf;[𝕙].
+ "\x0dokrightarrow;\x03↪\x0cokleftarrow;\x03↩\x05mtht;\x03∻\x05rbar;\x03―\x04arr;\x03⇿\x03pf;\x04𝕙",
+ // hslash;[ℏ] hstrok;[ħ] hscr;[𝒽].
+ "\x05lash;\x03ℏ\x05trok;\x02ħ\x03cr;\x04𝒽",
+ // hybull;[⁃] hyphen;[‐].
+ "\x05bull;\x03⁃\x05phen;\x03‐",
+ // iacute;[í] iacute[í].
+ "\x05cute;\x02í\x04cute\x02í",
+ // icirc;[î] icirc[î] icy;[и] ic;[⁣].
+ "\x04irc;\x02î\x03irc\x02î\x02y;\x02и\x01;\x03⁣",
+ // iexcl;[¡] iecy;[е] iexcl[¡].
+ "\x04xcl;\x02¡\x03cy;\x02е\x03xcl\x02¡",
+ // iff;[⇔] ifr;[𝔦].
+ "\x02f;\x03⇔\x02r;\x04𝔦",
+ // igrave;[ì] igrave[ì].
+ "\x05rave;\x02ì\x04rave\x02ì",
+ // iiiint;[⨌] iinfin;[⧜] iiint;[∭] iiota;[℩] ii;[ⅈ].
+ "\x05iint;\x03⨌\x05nfin;\x03⧜\x04int;\x03∭\x04ota;\x03℩\x01;\x03ⅈ",
+ // ijlig;[ij].
+ "\x04lig;\x02ij",
+ // imagline;[ℐ] imagpart;[ℑ] imacr;[ī] image;[ℑ] imath;[ı] imped;[Ƶ] imof;[⊷].
+ "\x07agline;\x03ℐ\x07agpart;\x03ℑ\x04acr;\x02ī\x04age;\x03ℑ\x04ath;\x02ı\x04ped;\x02Ƶ\x03of;\x03⊷",
+ // infintie;[⧝] integers;[ℤ] intercal;[⊺] intlarhk;[⨗] intprod;[⨼] incare;[℅] inodot;[ı] intcal;[⊺] infin;[∞] int;[∫] in;[∈].
+ "\x07fintie;\x03⧝\x07tegers;\x03ℤ\x07tercal;\x03⊺\x07tlarhk;\x03⨗\x06tprod;\x03⨼\x05care;\x03℅\x05odot;\x02ı\x05tcal;\x03⊺\x04fin;\x03∞\x02t;\x03∫\x01;\x03∈",
+ // iogon;[į] iocy;[ё] iopf;[𝕚] iota;[ι].
+ "\x04gon;\x02į\x03cy;\x02ё\x03pf;\x04𝕚\x03ta;\x02ι",
+ // iprod;[⨼].
+ "\x04rod;\x03⨼",
+ // iquest;[¿] iquest[¿].
+ "\x05uest;\x02¿\x04uest\x02¿",
+ // isindot;[⋵] isinsv;[⋳] isinE;[⋹] isins;[⋴] isinv;[∈] iscr;[𝒾] isin;[∈].
+ "\x06indot;\x03⋵\x05insv;\x03⋳\x04inE;\x03⋹\x04ins;\x03⋴\x04inv;\x03∈\x03cr;\x04𝒾\x03in;\x03∈",
+ // itilde;[ĩ] it;[⁢].
+ "\x05ilde;\x02ĩ\x01;\x03⁢",
+ // iukcy;[і] iuml;[ï] iuml[ï].
+ "\x04kcy;\x02і\x03ml;\x02ï\x02ml\x02ï",
+ // jcirc;[ĵ] jcy;[й].
+ "\x04irc;\x02ĵ\x02y;\x02й",
+ // jfr;[𝔧].
+ "\x02r;\x04𝔧",
+ // jmath;[ȷ].
+ "\x04ath;\x02ȷ",
+ // jopf;[𝕛].
+ "\x03pf;\x04𝕛",
+ // jsercy;[ј] jscr;[𝒿].
+ "\x05ercy;\x02ј\x03cr;\x04𝒿",
+ // jukcy;[є].
+ "\x04kcy;\x02є",
+ // kappav;[ϰ] kappa;[κ].
+ "\x05ppav;\x02ϰ\x04ppa;\x02κ",
+ // kcedil;[ķ] kcy;[к].
+ "\x05edil;\x02ķ\x02y;\x02к",
+ // kfr;[𝔨].
+ "\x02r;\x04𝔨",
+ // kgreen;[ĸ].
+ "\x05reen;\x02ĸ",
+ // khcy;[х].
+ "\x03cy;\x02х",
+ // kjcy;[ќ].
+ "\x03cy;\x02ќ",
+ // kopf;[𝕜].
+ "\x03pf;\x04𝕜",
+ // kscr;[𝓀].
+ "\x03cr;\x04𝓀",
+ // lAtail;[⤛] lAarr;[⇚] lArr;[⇐].
+ "\x05tail;\x03⤛\x04arr;\x03⇚\x03rr;\x03⇐",
+ // lBarr;[⤎].
+ "\x04arr;\x03⤎",
+ // lEg;[⪋] lE;[≦].
+ "\x02g;\x03⪋\x01;\x03≦",
+ // lHar;[⥢].
+ "\x03ar;\x03⥢",
+ // laemptyv;[⦴] larrbfs;[⤟] larrsim;[⥳] lacute;[ĺ] lagran;[ℒ] lambda;[λ] langle;[⟨] larrfs;[⤝] larrhk;[↩] larrlp;[↫] larrpl;[⤹] larrtl;[↢] latail;[⤙] langd;[⦑] laquo;[«] larrb;[⇤] lates;[⪭︀] lang;[⟨] laquo[«] larr;[←] late;[⪭] lap;[⪅] lat;[⪫].
+ "\x07emptyv;\x03⦴\x06rrbfs;\x03⤟\x06rrsim;\x03⥳\x05cute;\x02ĺ\x05gran;\x03ℒ\x05mbda;\x02λ\x05ngle;\x03⟨\x05rrfs;\x03⤝\x05rrhk;\x03↩\x05rrlp;\x03↫\x05rrpl;\x03⤹\x05rrtl;\x03↢\x05tail;\x03⤙\x04ngd;\x03⦑\x04quo;\x02«\x04rrb;\x03⇤\x04tes;\x06⪭︀\x03ng;\x03⟨\x03quo\x02«\x03rr;\x03←\x03te;\x03⪭\x02p;\x03⪅\x02t;\x03⪫",
+ // lbrksld;[⦏] lbrkslu;[⦍] lbrace;[{] lbrack;[[] lbarr;[⤌] lbbrk;[❲] lbrke;[⦋].
+ "\x06rksld;\x03⦏\x06rkslu;\x03⦍\x05race;\x01{\x05rack;\x01[\x04arr;\x03⤌\x04brk;\x03❲\x04rke;\x03⦋",
+ // lcaron;[ľ] lcedil;[ļ] lceil;[⌈] lcub;[{] lcy;[л].
+ "\x05aron;\x02ľ\x05edil;\x02ļ\x04eil;\x03⌈\x03ub;\x01{\x02y;\x02л",
+ // ldrushar;[⥋] ldrdhar;[⥧] ldquor;[„] ldquo;[“] ldca;[⤶] ldsh;[↲].
+ "\x07rushar;\x03⥋\x06rdhar;\x03⥧\x05quor;\x03„\x04quo;\x03“\x03ca;\x03⤶\x03sh;\x03↲",
+ // leftrightsquigarrow;[↭] leftrightharpoons;[⇋] leftharpoondown;[↽] leftrightarrows;[⇆] leftleftarrows;[⇇] leftrightarrow;[↔] leftthreetimes;[⋋] leftarrowtail;[↢] leftharpoonup;[↼] lessapprox;[⪅] lesseqqgtr;[⪋] leftarrow;[←] lesseqgtr;[⋚] leqslant;[⩽] lesdotor;[⪃] lesdoto;[⪁] lessdot;[⋖] lessgtr;[≶] lesssim;[≲] lesdot;[⩿] lesges;[⪓] lescc;[⪨] leqq;[≦] lesg;[⋚︀] leg;[⋚] leq;[≤] les;[⩽] le;[≤].
+ "\x12ftrightsquigarrow;\x03↭\x10ftrightharpoons;\x03⇋\x0eftharpoondown;\x03↽\x0eftrightarrows;\x03⇆\x0dftleftarrows;\x03⇇\x0dftrightarrow;\x03↔\x0dftthreetimes;\x03⋋\x0cftarrowtail;\x03↢\x0cftharpoonup;\x03↼\x09ssapprox;\x03⪅\x09sseqqgtr;\x03⪋\x08ftarrow;\x03←\x08sseqgtr;\x03⋚\x07qslant;\x03⩽\x07sdotor;\x03⪃\x06sdoto;\x03⪁\x06ssdot;\x03⋖\x06ssgtr;\x03≶\x06sssim;\x03≲\x05sdot;\x03⩿\x05sges;\x03⪓\x04scc;\x03⪨\x03qq;\x03≦\x03sg;\x06⋚︀\x02g;\x03⋚\x02q;\x03≤\x02s;\x03⩽\x01;\x03≤",
+ // lfisht;[⥼] lfloor;[⌊] lfr;[𝔩].
+ "\x05isht;\x03⥼\x05loor;\x03⌊\x02r;\x04𝔩",
+ // lgE;[⪑] lg;[≶].
+ "\x02E;\x03⪑\x01;\x03≶",
+ // lharul;[⥪] lhard;[↽] lharu;[↼] lhblk;[▄].
+ "\x05arul;\x03⥪\x04ard;\x03↽\x04aru;\x03↼\x04blk;\x03▄",
+ // ljcy;[љ].
+ "\x03cy;\x02љ",
+ // llcorner;[⌞] llhard;[⥫] llarr;[⇇] lltri;[◺] ll;[≪].
+ "\x07corner;\x03⌞\x05hard;\x03⥫\x04arr;\x03⇇\x04tri;\x03◺\x01;\x03≪",
+ // lmoustache;[⎰] lmidot;[ŀ] lmoust;[⎰].
+ "\x09oustache;\x03⎰\x05idot;\x02ŀ\x05oust;\x03⎰",
+ // lnapprox;[⪉] lneqq;[≨] lnsim;[⋦] lnap;[⪉] lneq;[⪇] lnE;[≨] lne;[⪇].
+ "\x07approx;\x03⪉\x04eqq;\x03≨\x04sim;\x03⋦\x03ap;\x03⪉\x03eq;\x03⪇\x02E;\x03≨\x02e;\x03⪇",
+ // longleftrightarrow;[⟷] longrightarrow;[⟶] looparrowright;[↬] longleftarrow;[⟵] looparrowleft;[↫] longmapsto;[⟼] lotimes;[⨴] lozenge;[◊] loplus;[⨭] lowast;[∗] lowbar;[_] loang;[⟬] loarr;[⇽] lobrk;[⟦] lopar;[⦅] lopf;[𝕝] lozf;[⧫] loz;[◊].
+ "\x11ngleftrightarrow;\x03⟷\x0dngrightarrow;\x03⟶\x0doparrowright;\x03↬\x0cngleftarrow;\x03⟵\x0coparrowleft;\x03↫\x09ngmapsto;\x03⟼\x06times;\x03⨴\x06zenge;\x03◊\x05plus;\x03⨭\x05wast;\x03∗\x05wbar;\x01_\x04ang;\x03⟬\x04arr;\x03⇽\x04brk;\x03⟦\x04par;\x03⦅\x03pf;\x04𝕝\x03zf;\x03⧫\x02z;\x03◊",
+ // lparlt;[⦓] lpar;[(].
+ "\x05arlt;\x03⦓\x03ar;\x01(",
+ // lrcorner;[⌟] lrhard;[⥭] lrarr;[⇆] lrhar;[⇋] lrtri;[⊿] lrm;[‎].
+ "\x07corner;\x03⌟\x05hard;\x03⥭\x04arr;\x03⇆\x04har;\x03⇋\x04tri;\x03⊿\x02m;\x03‎",
+ // lsaquo;[‹] lsquor;[‚] lstrok;[ł] lsime;[⪍] lsimg;[⪏] lsquo;[‘] lscr;[𝓁] lsim;[≲] lsqb;[[] lsh;[↰].
+ "\x05aquo;\x03‹\x05quor;\x03‚\x05trok;\x02ł\x04ime;\x03⪍\x04img;\x03⪏\x04quo;\x03‘\x03cr;\x04𝓁\x03im;\x03≲\x03qb;\x01[\x02h;\x03↰",
+ // ltquest;[⩻] lthree;[⋋] ltimes;[⋉] ltlarr;[⥶] ltrPar;[⦖] ltcir;[⩹] ltdot;[⋖] ltrie;[⊴] ltrif;[◂] ltcc;[⪦] ltri;[◃] lt;[<].
+ "\x06quest;\x03⩻\x05hree;\x03⋋\x05imes;\x03⋉\x05larr;\x03⥶\x05rPar;\x03⦖\x04cir;\x03⩹\x04dot;\x03⋖\x04rie;\x03⊴\x04rif;\x03◂\x03cc;\x03⪦\x03ri;\x03◃\x01;\x01<",
+ // lurdshar;[⥊] luruhar;[⥦].
+ "\x07rdshar;\x03⥊\x06ruhar;\x03⥦",
+ // lvertneqq;[≨︀] lvnE;[≨︀].
+ "\x08ertneqq;\x06≨︀\x03nE;\x06≨︀",
+ // mDDot;[∺].
+ "\x04Dot;\x03∺",
+ // mapstodown;[↧] mapstoleft;[↤] mapstoup;[↥] maltese;[✠] mapsto;[↦] marker;[▮] macr;[¯] male;[♂] malt;[✠] macr[¯] map;[↦].
+ "\x09pstodown;\x03↧\x09pstoleft;\x03↤\x07pstoup;\x03↥\x06ltese;\x03✠\x05psto;\x03↦\x05rker;\x03▮\x03cr;\x02¯\x03le;\x03♂\x03lt;\x03✠\x02cr\x02¯\x02p;\x03↦",
+ // mcomma;[⨩] mcy;[м].
+ "\x05omma;\x03⨩\x02y;\x02м",
+ // mdash;[—].
+ "\x04ash;\x03—",
+ // measuredangle;[∡].
+ "\x0casuredangle;\x03∡",
+ // mfr;[𝔪].
+ "\x02r;\x04𝔪",
+ // mho;[℧].
+ "\x02o;\x03℧",
+ // minusdu;[⨪] midast;[*] midcir;[⫰] middot;[·] minusb;[⊟] minusd;[∸] micro;[µ] middot[·] minus;[−] micro[µ] mid;[∣].
+ "\x06nusdu;\x03⨪\x05dast;\x01*\x05dcir;\x03⫰\x05ddot;\x02·\x05nusb;\x03⊟\x05nusd;\x03∸\x04cro;\x02µ\x04ddot\x02·\x04nus;\x03−\x03cro\x02µ\x02d;\x03∣",
+ // mlcp;[⫛] mldr;[…].
+ "\x03cp;\x03⫛\x03dr;\x03…",
+ // mnplus;[∓].
+ "\x05plus;\x03∓",
+ // models;[⊧] mopf;[𝕞].
+ "\x05dels;\x03⊧\x03pf;\x04𝕞",
+ // mp;[∓].
+ "\x01;\x03∓",
+ // mstpos;[∾] mscr;[𝓂].
+ "\x05tpos;\x03∾\x03cr;\x04𝓂",
+ // multimap;[⊸] mumap;[⊸] mu;[μ].
+ "\x07ltimap;\x03⊸\x04map;\x03⊸\x01;\x02μ",
+ // nGtv;[≫̸] nGg;[⋙̸] nGt;[≫⃒].
+ "\x03tv;\x05≫̸\x02g;\x05⋙̸\x02t;\x06≫⃒",
+ // nLeftrightarrow;[⇎] nLeftarrow;[⇍] nLtv;[≪̸] nLl;[⋘̸] nLt;[≪⃒].
+ "\x0eeftrightarrow;\x03⇎\x09eftarrow;\x03⇍\x03tv;\x05≪̸\x02l;\x05⋘̸\x02t;\x06≪⃒",
+ // nRightarrow;[⇏].
+ "\x0aightarrow;\x03⇏",
+ // nVDash;[⊯] nVdash;[⊮].
+ "\x05Dash;\x03⊯\x05dash;\x03⊮",
+ // naturals;[ℕ] napprox;[≉] natural;[♮] nacute;[ń] nabla;[∇] napid;[≋̸] napos;[ʼn] natur;[♮] nang;[∠⃒] napE;[⩰̸] nap;[≉].
+ "\x07turals;\x03ℕ\x06pprox;\x03≉\x06tural;\x03♮\x05cute;\x02ń\x04bla;\x03∇\x04pid;\x05≋̸\x04pos;\x02ʼn\x04tur;\x03♮\x03ng;\x06∠⃒\x03pE;\x05⩰̸\x02p;\x03≉",
+ // nbumpe;[≏̸] nbump;[≎̸] nbsp;[ ] nbsp[ ].
+ "\x05umpe;\x05≏̸\x04ump;\x05≎̸\x03sp;\x02 \x02sp\x02 ",
+ // ncongdot;[⩭̸] ncaron;[ň] ncedil;[ņ] ncong;[≇] ncap;[⩃] ncup;[⩂] ncy;[н].
+ "\x07ongdot;\x05⩭̸\x05aron;\x02ň\x05edil;\x02ņ\x04ong;\x03≇\x03ap;\x03⩃\x03up;\x03⩂\x02y;\x02н",
+ // ndash;[–].
+ "\x04ash;\x03–",
+ // nearrow;[↗] nexists;[∄] nearhk;[⤤] nequiv;[≢] nesear;[⤨] nexist;[∄] neArr;[⇗] nearr;[↗] nedot;[≐̸] nesim;[≂̸] ne;[≠].
+ "\x06arrow;\x03↗\x06xists;\x03∄\x05arhk;\x03⤤\x05quiv;\x03≢\x05sear;\x03⤨\x05xist;\x03∄\x04Arr;\x03⇗\x04arr;\x03↗\x04dot;\x05≐̸\x04sim;\x05≂̸\x01;\x03≠",
+ // nfr;[𝔫].
+ "\x02r;\x04𝔫",
+ // ngeqslant;[⩾̸] ngeqq;[≧̸] ngsim;[≵] ngeq;[≱] nges;[⩾̸] ngtr;[≯] ngE;[≧̸] nge;[≱] ngt;[≯].
+ "\x08eqslant;\x05⩾̸\x04eqq;\x05≧̸\x04sim;\x03≵\x03eq;\x03≱\x03es;\x05⩾̸\x03tr;\x03≯\x02E;\x05≧̸\x02e;\x03≱\x02t;\x03≯",
+ // nhArr;[⇎] nharr;[↮] nhpar;[⫲].
+ "\x04Arr;\x03⇎\x04arr;\x03↮\x04par;\x03⫲",
+ // nisd;[⋺] nis;[⋼] niv;[∋] ni;[∋].
+ "\x03sd;\x03⋺\x02s;\x03⋼\x02v;\x03∋\x01;\x03∋",
+ // njcy;[њ].
+ "\x03cy;\x02њ",
+ // nleftrightarrow;[↮] nleftarrow;[↚] nleqslant;[⩽̸] nltrie;[⋬] nlArr;[⇍] nlarr;[↚] nleqq;[≦̸] nless;[≮] nlsim;[≴] nltri;[⋪] nldr;[‥] nleq;[≰] nles;[⩽̸] nlE;[≦̸] nle;[≰] nlt;[≮].
+ "\x0eeftrightarrow;\x03↮\x09eftarrow;\x03↚\x08eqslant;\x05⩽̸\x05trie;\x03⋬\x04Arr;\x03⇍\x04arr;\x03↚\x04eqq;\x05≦̸\x04ess;\x03≮\x04sim;\x03≴\x04tri;\x03⋪\x03dr;\x03‥\x03eq;\x03≰\x03es;\x05⩽̸\x02E;\x05≦̸\x02e;\x03≰\x02t;\x03≮",
+ // nmid;[∤].
+ "\x03id;\x03∤",
+ // notindot;[⋵̸] notinva;[∉] notinvb;[⋷] notinvc;[⋶] notniva;[∌] notnivb;[⋾] notnivc;[⋽] notinE;[⋹̸] notin;[∉] notni;[∌] nopf;[𝕟] not;[¬] not[¬].
+ "\x07tindot;\x05⋵̸\x06tinva;\x03∉\x06tinvb;\x03⋷\x06tinvc;\x03⋶\x06tniva;\x03∌\x06tnivb;\x03⋾\x06tnivc;\x03⋽\x05tinE;\x05⋹̸\x04tin;\x03∉\x04tni;\x03∌\x03pf;\x04𝕟\x02t;\x02¬\x01t\x02¬",
+ // nparallel;[∦] npolint;[⨔] npreceq;[⪯̸] nparsl;[⫽⃥] nprcue;[⋠] npart;[∂̸] nprec;[⊀] npar;[∦] npre;[⪯̸] npr;[⊀].
+ "\x08arallel;\x03∦\x06olint;\x03⨔\x06receq;\x05⪯̸\x05arsl;\x06⫽⃥\x05rcue;\x03⋠\x04art;\x05∂̸\x04rec;\x03⊀\x03ar;\x03∦\x03re;\x05⪯̸\x02r;\x03⊀",
+ // nrightarrow;[↛] nrarrc;[⤳̸] nrarrw;[↝̸] nrtrie;[⋭] nrArr;[⇏] nrarr;[↛] nrtri;[⋫].
+ "\x0aightarrow;\x03↛\x05arrc;\x05⤳̸\x05arrw;\x05↝̸\x05trie;\x03⋭\x04Arr;\x03⇏\x04arr;\x03↛\x04tri;\x03⋫",
+ // nshortparallel;[∦] nsubseteqq;[⫅̸] nsupseteqq;[⫆̸] nshortmid;[∤] nsubseteq;[⊈] nsupseteq;[⊉] nsqsube;[⋢] nsqsupe;[⋣] nsubset;[⊂⃒] nsucceq;[⪰̸] nsupset;[⊃⃒] nsccue;[⋡] nsimeq;[≄] nsime;[≄] nsmid;[∤] nspar;[∦] nsubE;[⫅̸] nsube;[⊈] nsucc;[⊁] nsupE;[⫆̸] nsupe;[⊉] nsce;[⪰̸] nscr;[𝓃] nsim;[≁] nsub;[⊄] nsup;[⊅] nsc;[⊁].
+ "\x0dhortparallel;\x03∦\x09ubseteqq;\x05⫅̸\x09upseteqq;\x05⫆̸\x08hortmid;\x03∤\x08ubseteq;\x03⊈\x08upseteq;\x03⊉\x06qsube;\x03⋢\x06qsupe;\x03⋣\x06ubset;\x06⊂⃒\x06ucceq;\x05⪰̸\x06upset;\x06⊃⃒\x05ccue;\x03⋡\x05imeq;\x03≄\x04ime;\x03≄\x04mid;\x03∤\x04par;\x03∦\x04ubE;\x05⫅̸\x04ube;\x03⊈\x04ucc;\x03⊁\x04upE;\x05⫆̸\x04upe;\x03⊉\x03ce;\x05⪰̸\x03cr;\x04𝓃\x03im;\x03≁\x03ub;\x03⊄\x03up;\x03⊅\x02c;\x03⊁",
+ // ntrianglerighteq;[⋭] ntrianglelefteq;[⋬] ntriangleright;[⋫] ntriangleleft;[⋪] ntilde;[ñ] ntilde[ñ] ntgl;[≹] ntlg;[≸].
+ "\x0frianglerighteq;\x03⋭\x0erianglelefteq;\x03⋬\x0driangleright;\x03⋫\x0criangleleft;\x03⋪\x05ilde;\x02ñ\x04ilde\x02ñ\x03gl;\x03≹\x03lg;\x03≸",
+ // numero;[№] numsp;[ ] num;[#] nu;[ν].
+ "\x05mero;\x03№\x04msp;\x03 \x02m;\x01#\x01;\x02ν",
+ // nvinfin;[⧞] nvltrie;[⊴⃒] nvrtrie;[⊵⃒] nvDash;[⊭] nvHarr;[⤄] nvdash;[⊬] nvlArr;[⤂] nvrArr;[⤃] nvsim;[∼⃒] nvap;[≍⃒] nvge;[≥⃒] nvgt;[>⃒] nvle;[≤⃒] nvlt;[<⃒].
+ "\x06infin;\x03⧞\x06ltrie;\x06⊴⃒\x06rtrie;\x06⊵⃒\x05Dash;\x03⊭\x05Harr;\x03⤄\x05dash;\x03⊬\x05lArr;\x03⤂\x05rArr;\x03⤃\x04sim;\x06∼⃒\x03ap;\x06≍⃒\x03ge;\x06≥⃒\x03gt;\x04>⃒\x03le;\x06≤⃒\x03lt;\x04<⃒",
+ // nwarrow;[↖] nwarhk;[⤣] nwnear;[⤧] nwArr;[⇖] nwarr;[↖].
+ "\x06arrow;\x03↖\x05arhk;\x03⤣\x05near;\x03⤧\x04Arr;\x03⇖\x04arr;\x03↖",
+ // oS;[Ⓢ].
+ "\x01;\x03Ⓢ",
+ // oacute;[ó] oacute[ó] oast;[⊛].
+ "\x05cute;\x02ó\x04cute\x02ó\x03st;\x03⊛",
+ // ocirc;[ô] ocir;[⊚] ocirc[ô] ocy;[о].
+ "\x04irc;\x02ô\x03ir;\x03⊚\x03irc\x02ô\x02y;\x02о",
+ // odblac;[ő] odsold;[⦼] odash;[⊝] odiv;[⨸] odot;[⊙].
+ "\x05blac;\x02ő\x05sold;\x03⦼\x04ash;\x03⊝\x03iv;\x03⨸\x03ot;\x03⊙",
+ // oelig;[œ].
+ "\x04lig;\x02œ",
+ // ofcir;[⦿] ofr;[𝔬].
+ "\x04cir;\x03⦿\x02r;\x04𝔬",
+ // ograve;[ò] ograve[ò] ogon;[˛] ogt;[⧁].
+ "\x05rave;\x02ò\x04rave\x02ò\x03on;\x02˛\x02t;\x03⧁",
+ // ohbar;[⦵] ohm;[Ω].
+ "\x04bar;\x03⦵\x02m;\x02Ω",
+ // oint;[∮].
+ "\x03nt;\x03∮",
+ // olcross;[⦻] olarr;[↺] olcir;[⦾] oline;[‾] olt;[⧀].
+ "\x06cross;\x03⦻\x04arr;\x03↺\x04cir;\x03⦾\x04ine;\x03‾\x02t;\x03⧀",
+ // omicron;[ο] ominus;[⊖] omacr;[ō] omega;[ω] omid;[⦶].
+ "\x06icron;\x02ο\x05inus;\x03⊖\x04acr;\x02ō\x04ega;\x02ω\x03id;\x03⦶",
+ // oopf;[𝕠].
+ "\x03pf;\x04𝕠",
+ // operp;[⦹] oplus;[⊕] opar;[⦷].
+ "\x04erp;\x03⦹\x04lus;\x03⊕\x03ar;\x03⦷",
+ // orderof;[ℴ] orslope;[⩗] origof;[⊶] orarr;[↻] order;[ℴ] ordf;[ª] ordm;[º] oror;[⩖] ord;[⩝] ordf[ª] ordm[º] orv;[⩛] or;[∨].
+ "\x06derof;\x03ℴ\x06slope;\x03⩗\x05igof;\x03⊶\x04arr;\x03↻\x04der;\x03ℴ\x03df;\x02ª\x03dm;\x02º\x03or;\x03⩖\x02d;\x03⩝\x02df\x02ª\x02dm\x02º\x02v;\x03⩛\x01;\x03∨",
+ // oslash;[ø] oslash[ø] oscr;[ℴ] osol;[⊘].
+ "\x05lash;\x02ø\x04lash\x02ø\x03cr;\x03ℴ\x03ol;\x03⊘",
+ // otimesas;[⨶] otilde;[õ] otimes;[⊗] otilde[õ].
+ "\x07imesas;\x03⨶\x05ilde;\x02õ\x05imes;\x03⊗\x04ilde\x02õ",
+ // ouml;[ö] ouml[ö].
+ "\x03ml;\x02ö\x02ml\x02ö",
+ // ovbar;[⌽].
+ "\x04bar;\x03⌽",
+ // parallel;[∥] parsim;[⫳] parsl;[⫽] para;[¶] part;[∂] par;[∥] para[¶].
+ "\x07rallel;\x03∥\x05rsim;\x03⫳\x04rsl;\x03⫽\x03ra;\x02¶\x03rt;\x03∂\x02r;\x03∥\x02ra\x02¶",
+ // pcy;[п].
+ "\x02y;\x02п",
+ // pertenk;[‱] percnt;[%] period;[.] permil;[‰] perp;[⊥].
+ "\x06rtenk;\x03‱\x05rcnt;\x01%\x05riod;\x01.\x05rmil;\x03‰\x03rp;\x03⊥",
+ // pfr;[𝔭].
+ "\x02r;\x04𝔭",
+ // phmmat;[ℳ] phone;[☎] phiv;[ϕ] phi;[φ].
+ "\x05mmat;\x03ℳ\x04one;\x03☎\x03iv;\x02ϕ\x02i;\x02φ",
+ // pitchfork;[⋔] piv;[ϖ] pi;[π].
+ "\x08tchfork;\x03⋔\x02v;\x02ϖ\x01;\x02π",
+ // plusacir;[⨣] planckh;[ℎ] pluscir;[⨢] plussim;[⨦] plustwo;[⨧] planck;[ℏ] plankv;[ℏ] plusdo;[∔] plusdu;[⨥] plusmn;[±] plusb;[⊞] pluse;[⩲] plusmn[±] plus;[+].
+ "\x07usacir;\x03⨣\x06anckh;\x03ℎ\x06uscir;\x03⨢\x06ussim;\x03⨦\x06ustwo;\x03⨧\x05anck;\x03ℏ\x05ankv;\x03ℏ\x05usdo;\x03∔\x05usdu;\x03⨥\x05usmn;\x02±\x04usb;\x03⊞\x04use;\x03⩲\x04usmn\x02±\x03us;\x01+",
+ // pm;[±].
+ "\x01;\x02±",
+ // pointint;[⨕] pound;[£] popf;[𝕡] pound[£].
+ "\x07intint;\x03⨕\x04und;\x02£\x03pf;\x04𝕡\x03und\x02£",
+ // preccurlyeq;[≼] precnapprox;[⪹] precapprox;[⪷] precneqq;[⪵] precnsim;[⋨] profalar;[⌮] profline;[⌒] profsurf;[⌓] precsim;[≾] preceq;[⪯] primes;[ℙ] prnsim;[⋨] propto;[∝] prurel;[⊰] prcue;[≼] prime;[′] prnap;[⪹] prsim;[≾] prap;[⪷] prec;[≺] prnE;[⪵] prod;[∏] prop;[∝] prE;[⪳] pre;[⪯] pr;[≺].
+ "\x0aeccurlyeq;\x03≼\x0aecnapprox;\x03⪹\x09ecapprox;\x03⪷\x07ecneqq;\x03⪵\x07ecnsim;\x03⋨\x07ofalar;\x03⌮\x07ofline;\x03⌒\x07ofsurf;\x03⌓\x06ecsim;\x03≾\x05eceq;\x03⪯\x05imes;\x03ℙ\x05nsim;\x03⋨\x05opto;\x03∝\x05urel;\x03⊰\x04cue;\x03≼\x04ime;\x03′\x04nap;\x03⪹\x04sim;\x03≾\x03ap;\x03⪷\x03ec;\x03≺\x03nE;\x03⪵\x03od;\x03∏\x03op;\x03∝\x02E;\x03⪳\x02e;\x03⪯\x01;\x03≺",
+ // pscr;[𝓅] psi;[ψ].
+ "\x03cr;\x04𝓅\x02i;\x02ψ",
+ // puncsp;[ ].
+ "\x05ncsp;\x03 ",
+ // qfr;[𝔮].
+ "\x02r;\x04𝔮",
+ // qint;[⨌].
+ "\x03nt;\x03⨌",
+ // qopf;[𝕢].
+ "\x03pf;\x04𝕢",
+ // qprime;[⁗].
+ "\x05rime;\x03⁗",
+ // qscr;[𝓆].
+ "\x03cr;\x04𝓆",
+ // quaternions;[ℍ] quatint;[⨖] questeq;[≟] quest;[?] quot;[\"] quot[\"].
+ "\x0aaternions;\x03ℍ\x06atint;\x03⨖\x06esteq;\x03≟\x04est;\x01?\x03ot;\x01\"\x02ot\x01\"",
+ // rAtail;[⤜] rAarr;[⇛] rArr;[⇒].
+ "\x05tail;\x03⤜\x04arr;\x03⇛\x03rr;\x03⇒",
+ // rBarr;[⤏].
+ "\x04arr;\x03⤏",
+ // rHar;[⥤].
+ "\x03ar;\x03⥤",
+ // rationals;[ℚ] raemptyv;[⦳] rarrbfs;[⤠] rarrsim;[⥴] racute;[ŕ] rangle;[⟩] rarrap;[⥵] rarrfs;[⤞] rarrhk;[↪] rarrlp;[↬] rarrpl;[⥅] rarrtl;[↣] ratail;[⤚] radic;[√] rangd;[⦒] range;[⦥] raquo;[»] rarrb;[⇥] rarrc;[⤳] rarrw;[↝] ratio;[∶] race;[∽̱] rang;[⟩] raquo[»] rarr;[→].
+ "\x08tionals;\x03ℚ\x07emptyv;\x03⦳\x06rrbfs;\x03⤠\x06rrsim;\x03⥴\x05cute;\x02ŕ\x05ngle;\x03⟩\x05rrap;\x03⥵\x05rrfs;\x03⤞\x05rrhk;\x03↪\x05rrlp;\x03↬\x05rrpl;\x03⥅\x05rrtl;\x03↣\x05tail;\x03⤚\x04dic;\x03√\x04ngd;\x03⦒\x04nge;\x03⦥\x04quo;\x02»\x04rrb;\x03⇥\x04rrc;\x03⤳\x04rrw;\x03↝\x04tio;\x03∶\x03ce;\x05∽̱\x03ng;\x03⟩\x03quo\x02»\x03rr;\x03→",
+ // rbrksld;[⦎] rbrkslu;[⦐] rbrace;[}] rbrack;[]] rbarr;[⤍] rbbrk;[❳] rbrke;[⦌].
+ "\x06rksld;\x03⦎\x06rkslu;\x03⦐\x05race;\x01}\x05rack;\x01]\x04arr;\x03⤍\x04brk;\x03❳\x04rke;\x03⦌",
+ // rcaron;[ř] rcedil;[ŗ] rceil;[⌉] rcub;[}] rcy;[р].
+ "\x05aron;\x02ř\x05edil;\x02ŗ\x04eil;\x03⌉\x03ub;\x01}\x02y;\x02р",
+ // rdldhar;[⥩] rdquor;[”] rdquo;[”] rdca;[⤷] rdsh;[↳].
+ "\x06ldhar;\x03⥩\x05quor;\x03”\x04quo;\x03”\x03ca;\x03⤷\x03sh;\x03↳",
+ // realpart;[ℜ] realine;[ℛ] reals;[ℝ] real;[ℜ] rect;[▭] reg;[®] reg[®].
+ "\x07alpart;\x03ℜ\x06aline;\x03ℛ\x04als;\x03ℝ\x03al;\x03ℜ\x03ct;\x03▭\x02g;\x02®\x01g\x02®",
+ // rfisht;[⥽] rfloor;[⌋] rfr;[𝔯].
+ "\x05isht;\x03⥽\x05loor;\x03⌋\x02r;\x04𝔯",
+ // rharul;[⥬] rhard;[⇁] rharu;[⇀] rhov;[ϱ] rho;[ρ].
+ "\x05arul;\x03⥬\x04ard;\x03⇁\x04aru;\x03⇀\x03ov;\x02ϱ\x02o;\x02ρ",
+ // rightleftharpoons;[⇌] rightharpoondown;[⇁] rightrightarrows;[⇉] rightleftarrows;[⇄] rightsquigarrow;[↝] rightthreetimes;[⋌] rightarrowtail;[↣] rightharpoonup;[⇀] risingdotseq;[≓] rightarrow;[→] ring;[˚].
+ "\x10ghtleftharpoons;\x03⇌\x0fghtharpoondown;\x03⇁\x0fghtrightarrows;\x03⇉\x0eghtleftarrows;\x03⇄\x0eghtsquigarrow;\x03↝\x0eghtthreetimes;\x03⋌\x0dghtarrowtail;\x03↣\x0dghtharpoonup;\x03⇀\x0bsingdotseq;\x03≓\x09ghtarrow;\x03→\x03ng;\x02˚",
+ // rlarr;[⇄] rlhar;[⇌] rlm;[‏].
+ "\x04arr;\x03⇄\x04har;\x03⇌\x02m;\x03‏",
+ // rmoustache;[⎱] rmoust;[⎱].
+ "\x09oustache;\x03⎱\x05oust;\x03⎱",
+ // rnmid;[⫮].
+ "\x04mid;\x03⫮",
+ // rotimes;[⨵] roplus;[⨮] roang;[⟭] roarr;[⇾] robrk;[⟧] ropar;[⦆] ropf;[𝕣].
+ "\x06times;\x03⨵\x05plus;\x03⨮\x04ang;\x03⟭\x04arr;\x03⇾\x04brk;\x03⟧\x04par;\x03⦆\x03pf;\x04𝕣",
+ // rppolint;[⨒] rpargt;[⦔] rpar;[)].
+ "\x07polint;\x03⨒\x05argt;\x03⦔\x03ar;\x01)",
+ // rrarr;[⇉].
+ "\x04arr;\x03⇉",
+ // rsaquo;[›] rsquor;[’] rsquo;[’] rscr;[𝓇] rsqb;[]] rsh;[↱].
+ "\x05aquo;\x03›\x05quor;\x03’\x04quo;\x03’\x03cr;\x04𝓇\x03qb;\x01]\x02h;\x03↱",
+ // rtriltri;[⧎] rthree;[⋌] rtimes;[⋊] rtrie;[⊵] rtrif;[▸] rtri;[▹].
+ "\x07riltri;\x03⧎\x05hree;\x03⋌\x05imes;\x03⋊\x04rie;\x03⊵\x04rif;\x03▸\x03ri;\x03▹",
+ // ruluhar;[⥨].
+ "\x06luhar;\x03⥨",
+ // rx;[℞].
+ "\x01;\x03℞",
+ // sacute;[ś].
+ "\x05cute;\x02ś",
+ // sbquo;[‚].
+ "\x04quo;\x03‚",
+ // scpolint;[⨓] scaron;[š] scedil;[ş] scnsim;[⋩] sccue;[≽] scirc;[ŝ] scnap;[⪺] scsim;[≿] scap;[⪸] scnE;[⪶] scE;[⪴] sce;[⪰] scy;[с] sc;[≻].
+ "\x07polint;\x03⨓\x05aron;\x02š\x05edil;\x02ş\x05nsim;\x03⋩\x04cue;\x03≽\x04irc;\x02ŝ\x04nap;\x03⪺\x04sim;\x03≿\x03ap;\x03⪸\x03nE;\x03⪶\x02E;\x03⪴\x02e;\x03⪰\x02y;\x02с\x01;\x03≻",
+ // sdotb;[⊡] sdote;[⩦] sdot;[⋅].
+ "\x04otb;\x03⊡\x04ote;\x03⩦\x03ot;\x03⋅",
+ // setminus;[∖] searrow;[↘] searhk;[⤥] seswar;[⤩] seArr;[⇘] searr;[↘] setmn;[∖] sect;[§] semi;[;] sext;[✶] sect[§].
+ "\x07tminus;\x03∖\x06arrow;\x03↘\x05arhk;\x03⤥\x05swar;\x03⤩\x04Arr;\x03⇘\x04arr;\x03↘\x04tmn;\x03∖\x03ct;\x02§\x03mi;\x01;\x03xt;\x03✶\x02ct\x02§",
+ // sfrown;[⌢] sfr;[𝔰].
+ "\x05rown;\x03⌢\x02r;\x04𝔰",
+ // shortparallel;[∥] shortmid;[∣] shchcy;[щ] sharp;[♯] shcy;[ш] shy;[­] shy[­].
+ "\x0cortparallel;\x03∥\x07ortmid;\x03∣\x05chcy;\x02щ\x04arp;\x03♯\x03cy;\x02ш\x02y;\x02­\x01y\x02­",
+ // simplus;[⨤] simrarr;[⥲] sigmaf;[ς] sigmav;[ς] simdot;[⩪] sigma;[σ] simeq;[≃] simgE;[⪠] simlE;[⪟] simne;[≆] sime;[≃] simg;[⪞] siml;[⪝] sim;[∼].
+ "\x06mplus;\x03⨤\x06mrarr;\x03⥲\x05gmaf;\x02ς\x05gmav;\x02ς\x05mdot;\x03⩪\x04gma;\x02σ\x04meq;\x03≃\x04mgE;\x03⪠\x04mlE;\x03⪟\x04mne;\x03≆\x03me;\x03≃\x03mg;\x03⪞\x03ml;\x03⪝\x02m;\x03∼",
+ // slarr;[←].
+ "\x04arr;\x03←",
+ // smallsetminus;[∖] smeparsl;[⧤] smashp;[⨳] smile;[⌣] smtes;[⪬︀] smid;[∣] smte;[⪬] smt;[⪪].
+ "\x0callsetminus;\x03∖\x07eparsl;\x03⧤\x05ashp;\x03⨳\x04ile;\x03⌣\x04tes;\x06⪬︀\x03id;\x03∣\x03te;\x03⪬\x02t;\x03⪪",
+ // softcy;[ь] solbar;[⌿] solb;[⧄] sopf;[𝕤] sol;[/].
+ "\x05ftcy;\x02ь\x05lbar;\x03⌿\x03lb;\x03⧄\x03pf;\x04𝕤\x02l;\x01/",
+ // spadesuit;[♠] spades;[♠] spar;[∥].
+ "\x08adesuit;\x03♠\x05ades;\x03♠\x03ar;\x03∥",
+ // sqsubseteq;[⊑] sqsupseteq;[⊒] sqsubset;[⊏] sqsupset;[⊐] sqcaps;[⊓︀] sqcups;[⊔︀] sqsube;[⊑] sqsupe;[⊒] square;[□] squarf;[▪] sqcap;[⊓] sqcup;[⊔] sqsub;[⊏] sqsup;[⊐] squf;[▪] squ;[□].
+ "\x09subseteq;\x03⊑\x09supseteq;\x03⊒\x07subset;\x03⊏\x07supset;\x03⊐\x05caps;\x06⊓︀\x05cups;\x06⊔︀\x05sube;\x03⊑\x05supe;\x03⊒\x05uare;\x03□\x05uarf;\x03▪\x04cap;\x03⊓\x04cup;\x03⊔\x04sub;\x03⊏\x04sup;\x03⊐\x03uf;\x03▪\x02u;\x03□",
+ // srarr;[→].
+ "\x04arr;\x03→",
+ // ssetmn;[∖] ssmile;[⌣] sstarf;[⋆] sscr;[𝓈].
+ "\x05etmn;\x03∖\x05mile;\x03⌣\x05tarf;\x03⋆\x03cr;\x04𝓈",
+ // straightepsilon;[ϵ] straightphi;[ϕ] starf;[★] strns;[¯] star;[☆].
+ "\x0eraightepsilon;\x02ϵ\x0araightphi;\x02ϕ\x04arf;\x03★\x04rns;\x02¯\x03ar;\x03☆",
+ // succcurlyeq;[≽] succnapprox;[⪺] subsetneqq;[⫋] succapprox;[⪸] supsetneqq;[⫌] subseteqq;[⫅] subsetneq;[⊊] supseteqq;[⫆] supsetneq;[⊋] subseteq;[⊆] succneqq;[⪶] succnsim;[⋩] supseteq;[⊇] subedot;[⫃] submult;[⫁] subplus;[⪿] subrarr;[⥹] succsim;[≿] supdsub;[⫘] supedot;[⫄] suphsol;[⟉] suphsub;[⫗] suplarr;[⥻] supmult;[⫂] supplus;[⫀] subdot;[⪽] subset;[⊂] subsim;[⫇] subsub;[⫕] subsup;[⫓] succeq;[⪰] supdot;[⪾] supset;[⊃] supsim;[⫈] supsub;[⫔] supsup;[⫖] subnE;[⫋] subne;[⊊] supnE;[⫌] supne;[⊋] subE;[⫅] sube;[⊆] succ;[≻] sung;[♪] sup1;[¹] sup2;[²] sup3;[³] supE;[⫆] supe;[⊇] sub;[⊂] sum;[∑] sup1[¹] sup2[²] sup3[³] sup;[⊃].
+ "\x0acccurlyeq;\x03≽\x0accnapprox;\x03⪺\x09bsetneqq;\x03⫋\x09ccapprox;\x03⪸\x09psetneqq;\x03⫌\x08bseteqq;\x03⫅\x08bsetneq;\x03⊊\x08pseteqq;\x03⫆\x08psetneq;\x03⊋\x07bseteq;\x03⊆\x07ccneqq;\x03⪶\x07ccnsim;\x03⋩\x07pseteq;\x03⊇\x06bedot;\x03⫃\x06bmult;\x03⫁\x06bplus;\x03⪿\x06brarr;\x03⥹\x06ccsim;\x03≿\x06pdsub;\x03⫘\x06pedot;\x03⫄\x06phsol;\x03⟉\x06phsub;\x03⫗\x06plarr;\x03⥻\x06pmult;\x03⫂\x06pplus;\x03⫀\x05bdot;\x03⪽\x05bset;\x03⊂\x05bsim;\x03⫇\x05bsub;\x03⫕\x05bsup;\x03⫓\x05cceq;\x03⪰\x05pdot;\x03⪾\x05pset;\x03⊃\x05psim;\x03⫈\x05psub;\x03⫔\x05psup;\x03⫖\x04bnE;\x03⫋\x04bne;\x03⊊\x04pnE;\x03⫌\x04pne;\x03⊋\x03bE;\x03⫅\x03be;\x03⊆\x03cc;\x03≻\x03ng;\x03♪\x03p1;\x02¹\x03p2;\x02²\x03p3;\x02³\x03pE;\x03⫆\x03pe;\x03⊇\x02b;\x03⊂\x02m;\x03∑\x02p1\x02¹\x02p2\x02²\x02p3\x02³\x02p;\x03⊃",
+ // swarrow;[↙] swarhk;[⤦] swnwar;[⤪] swArr;[⇙] swarr;[↙].
+ "\x06arrow;\x03↙\x05arhk;\x03⤦\x05nwar;\x03⤪\x04Arr;\x03⇙\x04arr;\x03↙",
+ // szlig;[ß] szlig[ß].
+ "\x04lig;\x02ß\x03lig\x02ß",
+ // target;[⌖] tau;[τ].
+ "\x05rget;\x03⌖\x02u;\x02τ",
+ // tbrk;[⎴].
+ "\x03rk;\x03⎴",
+ // tcaron;[ť] tcedil;[ţ] tcy;[т].
+ "\x05aron;\x02ť\x05edil;\x02ţ\x02y;\x02т",
+ // tdot;[⃛].
+ "\x03ot;\x03⃛",
+ // telrec;[⌕].
+ "\x05lrec;\x03⌕",
+ // tfr;[𝔱].
+ "\x02r;\x04𝔱",
+ // thickapprox;[≈] therefore;[∴] thetasym;[ϑ] thicksim;[∼] there4;[∴] thetav;[ϑ] thinsp;[ ] thksim;[∼] theta;[θ] thkap;[≈] thorn;[þ] thorn[þ].
+ "\x0aickapprox;\x03≈\x08erefore;\x03∴\x07etasym;\x02ϑ\x07icksim;\x03∼\x05ere4;\x03∴\x05etav;\x02ϑ\x05insp;\x03 \x05ksim;\x03∼\x04eta;\x02θ\x04kap;\x03≈\x04orn;\x02þ\x03orn\x02þ",
+ // timesbar;[⨱] timesb;[⊠] timesd;[⨰] tilde;[˜] times;[×] times[×] tint;[∭].
+ "\x07mesbar;\x03⨱\x05mesb;\x03⊠\x05mesd;\x03⨰\x04lde;\x02˜\x04mes;\x02×\x03mes\x02×\x03nt;\x03∭",
+ // topfork;[⫚] topbot;[⌶] topcir;[⫱] toea;[⤨] topf;[𝕥] tosa;[⤩] top;[⊤].
+ "\x06pfork;\x03⫚\x05pbot;\x03⌶\x05pcir;\x03⫱\x03ea;\x03⤨\x03pf;\x04𝕥\x03sa;\x03⤩\x02p;\x03⊤",
+ // tprime;[‴].
+ "\x05rime;\x03‴",
+ // trianglerighteq;[⊵] trianglelefteq;[⊴] triangleright;[▹] triangledown;[▿] triangleleft;[◃] triangleq;[≜] triangle;[▵] triminus;[⨺] trpezium;[⏢] triplus;[⨹] tritime;[⨻] tridot;[◬] trade;[™] trisb;[⧍] trie;[≜].
+ "\x0eianglerighteq;\x03⊵\x0dianglelefteq;\x03⊴\x0ciangleright;\x03▹\x0biangledown;\x03▿\x0biangleleft;\x03◃\x08iangleq;\x03≜\x07iangle;\x03▵\x07iminus;\x03⨺\x07pezium;\x03⏢\x06iplus;\x03⨹\x06itime;\x03⨻\x05idot;\x03◬\x04ade;\x03™\x04isb;\x03⧍\x03ie;\x03≜",
+ // tstrok;[ŧ] tshcy;[ћ] tscr;[𝓉] tscy;[ц].
+ "\x05trok;\x02ŧ\x04hcy;\x02ћ\x03cr;\x04𝓉\x03cy;\x02ц",
+ // twoheadrightarrow;[↠] twoheadleftarrow;[↞] twixt;[≬].
+ "\x10oheadrightarrow;\x03↠\x0foheadleftarrow;\x03↞\x04ixt;\x03≬",
+ // uArr;[⇑].
+ "\x03rr;\x03⇑",
+ // uHar;[⥣].
+ "\x03ar;\x03⥣",
+ // uacute;[ú] uacute[ú] uarr;[↑].
+ "\x05cute;\x02ú\x04cute\x02ú\x03rr;\x03↑",
+ // ubreve;[ŭ] ubrcy;[ў].
+ "\x05reve;\x02ŭ\x04rcy;\x02ў",
+ // ucirc;[û] ucirc[û] ucy;[у].
+ "\x04irc;\x02û\x03irc\x02û\x02y;\x02у",
+ // udblac;[ű] udarr;[⇅] udhar;[⥮].
+ "\x05blac;\x02ű\x04arr;\x03⇅\x04har;\x03⥮",
+ // ufisht;[⥾] ufr;[𝔲].
+ "\x05isht;\x03⥾\x02r;\x04𝔲",
+ // ugrave;[ù] ugrave[ù].
+ "\x05rave;\x02ù\x04rave\x02ù",
+ // uharl;[↿] uharr;[↾] uhblk;[▀].
+ "\x04arl;\x03↿\x04arr;\x03↾\x04blk;\x03▀",
+ // ulcorner;[⌜] ulcorn;[⌜] ulcrop;[⌏] ultri;[◸].
+ "\x07corner;\x03⌜\x05corn;\x03⌜\x05crop;\x03⌏\x04tri;\x03◸",
+ // umacr;[ū] uml;[¨] uml[¨].
+ "\x04acr;\x02ū\x02l;\x02¨\x01l\x02¨",
+ // uogon;[ų] uopf;[𝕦].
+ "\x04gon;\x02ų\x03pf;\x04𝕦",
+ // upharpoonright;[↾] upharpoonleft;[↿] updownarrow;[↕] upuparrows;[⇈] uparrow;[↑] upsilon;[υ] uplus;[⊎] upsih;[ϒ] upsi;[υ].
+ "\x0dharpoonright;\x03↾\x0charpoonleft;\x03↿\x0adownarrow;\x03↕\x09uparrows;\x03⇈\x06arrow;\x03↑\x06silon;\x02υ\x04lus;\x03⊎\x04sih;\x02ϒ\x03si;\x02υ",
+ // urcorner;[⌝] urcorn;[⌝] urcrop;[⌎] uring;[ů] urtri;[◹].
+ "\x07corner;\x03⌝\x05corn;\x03⌝\x05crop;\x03⌎\x04ing;\x02ů\x04tri;\x03◹",
+ // uscr;[𝓊].
+ "\x03cr;\x04𝓊",
+ // utilde;[ũ] utdot;[⋰] utrif;[▴] utri;[▵].
+ "\x05ilde;\x02ũ\x04dot;\x03⋰\x04rif;\x03▴\x03ri;\x03▵",
+ // uuarr;[⇈] uuml;[ü] uuml[ü].
+ "\x04arr;\x03⇈\x03ml;\x02ü\x02ml\x02ü",
+ // uwangle;[⦧].
+ "\x06angle;\x03⦧",
+ // vArr;[⇕].
+ "\x03rr;\x03⇕",
+ // vBarv;[⫩] vBar;[⫨].
+ "\x04arv;\x03⫩\x03ar;\x03⫨",
+ // vDash;[⊨].
+ "\x04ash;\x03⊨",
+ // vartriangleright;[⊳] vartriangleleft;[⊲] varsubsetneqq;[⫋︀] varsupsetneqq;[⫌︀] varsubsetneq;[⊊︀] varsupsetneq;[⊋︀] varepsilon;[ϵ] varnothing;[∅] varpropto;[∝] varkappa;[ϰ] varsigma;[ς] vartheta;[ϑ] vangrt;[⦜] varphi;[ϕ] varrho;[ϱ] varpi;[ϖ] varr;[↕].
+ "\x0frtriangleright;\x03⊳\x0ertriangleleft;\x03⊲\x0crsubsetneqq;\x06⫋︀\x0crsupsetneqq;\x06⫌︀\x0brsubsetneq;\x06⊊︀\x0brsupsetneq;\x06⊋︀\x09repsilon;\x02ϵ\x09rnothing;\x03∅\x08rpropto;\x03∝\x07rkappa;\x02ϰ\x07rsigma;\x02ς\x07rtheta;\x02ϑ\x05ngrt;\x03⦜\x05rphi;\x02ϕ\x05rrho;\x02ϱ\x04rpi;\x02ϖ\x03rr;\x03↕",
+ // vcy;[в].
+ "\x02y;\x02в",
+ // vdash;[⊢].
+ "\x04ash;\x03⊢",
+ // veebar;[⊻] vellip;[⋮] verbar;[|] veeeq;[≚] vert;[|] vee;[∨].
+ "\x05ebar;\x03⊻\x05llip;\x03⋮\x05rbar;\x01|\x04eeq;\x03≚\x03rt;\x01|\x02e;\x03∨",
+ // vfr;[𝔳].
+ "\x02r;\x04𝔳",
+ // vltri;[⊲].
+ "\x04tri;\x03⊲",
+ // vnsub;[⊂⃒] vnsup;[⊃⃒].
+ "\x04sub;\x06⊂⃒\x04sup;\x06⊃⃒",
+ // vopf;[𝕧].
+ "\x03pf;\x04𝕧",
+ // vprop;[∝].
+ "\x04rop;\x03∝",
+ // vrtri;[⊳].
+ "\x04tri;\x03⊳",
+ // vsubnE;[⫋︀] vsubne;[⊊︀] vsupnE;[⫌︀] vsupne;[⊋︀] vscr;[𝓋].
+ "\x05ubnE;\x06⫋︀\x05ubne;\x06⊊︀\x05upnE;\x06⫌︀\x05upne;\x06⊋︀\x03cr;\x04𝓋",
+ // vzigzag;[⦚].
+ "\x06igzag;\x03⦚",
+ // wcirc;[ŵ].
+ "\x04irc;\x02ŵ",
+ // wedbar;[⩟] wedgeq;[≙] weierp;[℘] wedge;[∧].
+ "\x05dbar;\x03⩟\x05dgeq;\x03≙\x05ierp;\x03℘\x04dge;\x03∧",
+ // wfr;[𝔴].
+ "\x02r;\x04𝔴",
+ // wopf;[𝕨].
+ "\x03pf;\x04𝕨",
+ // wp;[℘].
+ "\x01;\x03℘",
+ // wreath;[≀] wr;[≀].
+ "\x05eath;\x03≀\x01;\x03≀",
+ // wscr;[𝓌].
+ "\x03cr;\x04𝓌",
+ // xcirc;[◯] xcap;[⋂] xcup;[⋃].
+ "\x04irc;\x03◯\x03ap;\x03⋂\x03up;\x03⋃",
+ // xdtri;[▽].
+ "\x04tri;\x03▽",
+ // xfr;[𝔵].
+ "\x02r;\x04𝔵",
+ // xhArr;[⟺] xharr;[⟷].
+ "\x04Arr;\x03⟺\x04arr;\x03⟷",
+ // xi;[ξ].
+ "\x01;\x02ξ",
+ // xlArr;[⟸] xlarr;[⟵].
+ "\x04Arr;\x03⟸\x04arr;\x03⟵",
+ // xmap;[⟼].
+ "\x03ap;\x03⟼",
+ // xnis;[⋻].
+ "\x03is;\x03⋻",
+ // xoplus;[⨁] xotime;[⨂] xodot;[⨀] xopf;[𝕩].
+ "\x05plus;\x03⨁\x05time;\x03⨂\x04dot;\x03⨀\x03pf;\x04𝕩",
+ // xrArr;[⟹] xrarr;[⟶].
+ "\x04Arr;\x03⟹\x04arr;\x03⟶",
+ // xsqcup;[⨆] xscr;[𝓍].
+ "\x05qcup;\x03⨆\x03cr;\x04𝓍",
+ // xuplus;[⨄] xutri;[△].
+ "\x05plus;\x03⨄\x04tri;\x03△",
+ // xvee;[⋁].
+ "\x03ee;\x03⋁",
+ // xwedge;[⋀].
+ "\x05edge;\x03⋀",
+ // yacute;[ý] yacute[ý] yacy;[я].
+ "\x05cute;\x02ý\x04cute\x02ý\x03cy;\x02я",
+ // ycirc;[ŷ] ycy;[ы].
+ "\x04irc;\x02ŷ\x02y;\x02ы",
+ // yen;[¥] yen[¥].
+ "\x02n;\x02¥\x01n\x02¥",
+ // yfr;[𝔶].
+ "\x02r;\x04𝔶",
+ // yicy;[ї].
+ "\x03cy;\x02ї",
+ // yopf;[𝕪].
+ "\x03pf;\x04𝕪",
+ // yscr;[𝓎].
+ "\x03cr;\x04𝓎",
+ // yucy;[ю] yuml;[ÿ] yuml[ÿ].
+ "\x03cy;\x02ю\x03ml;\x02ÿ\x02ml\x02ÿ",
+ // zacute;[ź].
+ "\x05cute;\x02ź",
+ // zcaron;[ž] zcy;[з].
+ "\x05aron;\x02ž\x02y;\x02з",
+ // zdot;[ż].
+ "\x03ot;\x02ż",
+ // zeetrf;[ℨ] zeta;[ζ].
+ "\x05etrf;\x03ℨ\x03ta;\x02ζ",
+ // zfr;[𝔷].
+ "\x02r;\x04𝔷",
+ // zhcy;[ж].
+ "\x03cy;\x02ж",
+ // zigrarr;[⇝].
+ "\x06grarr;\x03⇝",
+ // zopf;[𝕫].
+ "\x03pf;\x04𝕫",
+ // zscr;[𝓏].
+ "\x03cr;\x04𝓏",
+ // zwnj;[‌] zwj;[‍].
+ "\x03nj;\x03‌\x02j;\x03‍",
+ ),
+ "small_words" => "GT\x00LT\x00gt\x00lt\x00",
+ "small_mappings" => array(
+ ">",
+ "<",
+ ">",
+ "<",
+ )
+ )
+);
diff --git a/wp-includes/http.php b/wp-includes/http.php
index e1738be..08756f6 100644
--- a/wp-includes/http.php
+++ b/wp-includes/http.php
@@ -27,15 +27,19 @@ function _wp_http_get_object() {
}
/**
- * Retrieve the raw response from a safe HTTP request.
+ * Retrieves the raw response from a safe HTTP request.
*
* This function is ideal when the HTTP request is being made to an arbitrary
- * URL. The URL is validated to avoid redirection and request forgery attacks.
+ * URL. The URL, and every URL it redirects to, are validated with wp_http_validate_url()
+ * to avoid Server Side Request Forgery attacks (SSRF).
*
* @since 3.6.0
*
* @see wp_remote_request() For more information on the response array format.
* @see WP_Http::request() For default arguments information.
+ * @see wp_http_validate_url() For more information about how the URL is validated.
+ *
+ * @link https://owasp.org/www-community/attacks/Server_Side_Request_Forgery
*
* @param string $url URL to retrieve.
* @param array $args Optional. Request arguments. Default empty array.
@@ -49,15 +53,19 @@ function wp_safe_remote_request( $url, $args = array() ) {
}
/**
- * Retrieve the raw response from a safe HTTP request using the GET method.
+ * Retrieves the raw response from a safe HTTP request using the GET method.
*
* This function is ideal when the HTTP request is being made to an arbitrary
- * URL. The URL is validated to avoid redirection and request forgery attacks.
+ * URL. The URL, and every URL it redirects to, are validated with wp_http_validate_url()
+ * to avoid Server Side Request Forgery attacks (SSRF).
*
* @since 3.6.0
*
* @see wp_remote_request() For more information on the response array format.
* @see WP_Http::request() For default arguments information.
+ * @see wp_http_validate_url() For more information about how the URL is validated.
+ *
+ * @link https://owasp.org/www-community/attacks/Server_Side_Request_Forgery
*
* @param string $url URL to retrieve.
* @param array $args Optional. Request arguments. Default empty array.
@@ -71,15 +79,19 @@ function wp_safe_remote_get( $url, $args = array() ) {
}
/**
- * Retrieve the raw response from a safe HTTP request using the POST method.
+ * Retrieves the raw response from a safe HTTP request using the POST method.
*
* This function is ideal when the HTTP request is being made to an arbitrary
- * URL. The URL is validated to avoid redirection and request forgery attacks.
+ * URL. The URL, and every URL it redirects to, are validated with wp_http_validate_url()
+ * to avoid Server Side Request Forgery attacks (SSRF).
*
* @since 3.6.0
*
* @see wp_remote_request() For more information on the response array format.
* @see WP_Http::request() For default arguments information.
+ * @see wp_http_validate_url() For more information about how the URL is validated.
+ *
+ * @link https://owasp.org/www-community/attacks/Server_Side_Request_Forgery
*
* @param string $url URL to retrieve.
* @param array $args Optional. Request arguments. Default empty array.
@@ -93,15 +105,19 @@ function wp_safe_remote_post( $url, $args = array() ) {
}
/**
- * Retrieve the raw response from a safe HTTP request using the HEAD method.
+ * Retrieves the raw response from a safe HTTP request using the HEAD method.
*
* This function is ideal when the HTTP request is being made to an arbitrary
- * URL. The URL is validated to avoid redirection and request forgery attacks.
+ * URL. The URL, and every URL it redirects to, are validated with wp_http_validate_url()
+ * to avoid Server Side Request Forgery attacks (SSRF).
*
* @since 3.6.0
*
* @see wp_remote_request() For more information on the response array format.
* @see WP_Http::request() For default arguments information.
+ * @see wp_http_validate_url() For more information about how the URL is validated.
+ *
+ * @link https://owasp.org/www-community/attacks/Server_Side_Request_Forgery
*
* @param string $url URL to retrieve.
* @param array $args Optional. Request arguments. Default empty array.
@@ -205,7 +221,7 @@ function wp_remote_head( $url, $args = array() ) {
}
/**
- * Retrieve only the headers from the raw response.
+ * Retrieves only the headers from the raw response.
*
* @since 2.7.0
* @since 4.6.0 Return value changed from an array to an WpOrg\Requests\Utility\CaseInsensitiveDictionary instance.
@@ -225,7 +241,7 @@ function wp_remote_retrieve_headers( $response ) {
}
/**
- * Retrieve a single header by name from the raw response.
+ * Retrieves a single header by name from the raw response.
*
* @since 2.7.0
*
@@ -247,7 +263,7 @@ function wp_remote_retrieve_header( $response, $header ) {
}
/**
- * Retrieve only the response code from the raw response.
+ * Retrieves only the response code from the raw response.
*
* Will return an empty string if incorrect parameter value is given.
*
@@ -265,7 +281,7 @@ function wp_remote_retrieve_response_code( $response ) {
}
/**
- * Retrieve only the response message from the raw response.
+ * Retrieves only the response message from the raw response.
*
* Will return an empty string if incorrect parameter value is given.
*
@@ -283,7 +299,7 @@ function wp_remote_retrieve_response_message( $response ) {
}
/**
- * Retrieve only the body from the raw response.
+ * Retrieves only the body from the raw response.
*
* @since 2.7.0
*
@@ -299,7 +315,7 @@ function wp_remote_retrieve_body( $response ) {
}
/**
- * Retrieve only the cookies from the raw response.
+ * Retrieves only the cookies from the raw response.
*
* @since 4.4.0
*
@@ -316,7 +332,7 @@ function wp_remote_retrieve_cookies( $response ) {
}
/**
- * Retrieve a single cookie by name from the raw response.
+ * Retrieves a single cookie by name from the raw response.
*
* @since 4.4.0
*
@@ -342,7 +358,7 @@ function wp_remote_retrieve_cookie( $response, $name ) {
}
/**
- * Retrieve a single cookie's value by name from the raw response.
+ * Retrieves a single cookie's value by name from the raw response.
*
* @since 4.4.0
*
@@ -395,7 +411,7 @@ function wp_http_supports( $capabilities = array(), $url = null ) {
}
/**
- * Get the HTTP Origin of the current request.
+ * Gets the HTTP Origin of the current request.
*
* @since 3.4.0
*
@@ -408,7 +424,7 @@ function get_http_origin() {
}
/**
- * Change the origin of an HTTP request.
+ * Changes the origin of an HTTP request.
*
* @since 3.4.0
*
@@ -418,7 +434,7 @@ function get_http_origin() {
}
/**
- * Retrieve list of allowed HTTP origins.
+ * Retrieves list of allowed HTTP origins.
*
* @since 3.4.0
*
@@ -439,7 +455,7 @@ function get_allowed_http_origins() {
);
/**
- * Change the origin types allowed for HTTP requests.
+ * Changes the origin types allowed for HTTP requests.
*
* @since 3.4.0
*
@@ -475,7 +491,7 @@ function is_allowed_http_origin( $origin = null ) {
}
/**
- * Change the allowed HTTP origin result.
+ * Changes the allowed HTTP origin result.
*
* @since 3.4.0
*
@@ -486,7 +502,7 @@ function is_allowed_http_origin( $origin = null ) {
}
/**
- * Send Access-Control-Allow-Origin and related headers if the current request
+ * Sends Access-Control-Allow-Origin and related headers if the current request
* is from an allowed origin.
*
* If the request is an OPTIONS request, the script exits with either access
@@ -519,7 +535,21 @@ function send_origin_headers() {
}
/**
- * Validate a URL for safe use in the HTTP API.
+ * Validates a URL for safe use in the HTTP API.
+ *
+ * Examples of URLs that are considered unsafe:
+ *
+ * - ftp://example.com/caniload.php - Invalid protocol - only http and https are allowed.
+ * - http:///example.com/caniload.php - Malformed URL.
+ * - http://user:pass@example.com/caniload.php - Login information.
+ * - http://exampleeeee.com/caniload.php - Invalid hostname, as the IP cannot be looked up in DNS.
+ *
+ * Examples of URLs that are considered unsafe by default:
+ *
+ * - http://192.168.0.1/caniload.php - IPs from LAN networks.
+ * This can be changed with the {@see 'http_request_host_is_external'} filter.
+ * - http://198.143.164.252:81/caniload.php - By default, only 80, 443, and 8080 ports are allowed.
+ * This can be changed with the {@see 'http_allowed_safe_ports'} filter.
*
* @since 3.5.2
*
@@ -571,7 +601,7 @@ function wp_http_validate_url( $url ) {
) {
// If host appears local, reject unless specifically allowed.
/**
- * Check if HTTP request is external or not.
+ * Checks if HTTP request is external or not.
*
* Allows to change and allow external requests for the HTTP request.
*
@@ -618,7 +648,7 @@ function wp_http_validate_url( $url ) {
}
/**
- * Mark allowed redirect hosts safe for HTTP requests as well.
+ * Marks allowed redirect hosts safe for HTTP requests as well.
*
* Attached to the {@see 'http_request_host_is_external'} filter.
*
@@ -719,7 +749,7 @@ function wp_parse_url( $url, $component = -1 ) {
}
/**
- * Retrieve a specific component from a parsed URL array.
+ * Retrieves a specific component from a parsed URL array.
*
* @internal
*
@@ -751,7 +781,7 @@ function _get_component_from_parsed_url_array( $url_parts, $component = -1 ) {
}
/**
- * Translate a PHP_URL_* constant to the named array keys PHP uses.
+ * Translates a PHP_URL_* constant to the named array keys PHP uses.
*
* @internal
*
diff --git a/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php b/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php
index 3b2dcb1..590cf96 100644
--- a/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php
+++ b/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php
@@ -107,7 +107,7 @@ final class WP_Interactivity_API_Directives_Processor extends WP_HTML_Tag_Proces
$bookmark = 'append_content_after_template_tag_closer';
$this->set_bookmark( $bookmark );
- $after_closing_tag = $this->bookmarks[ $bookmark ]->start + $this->bookmarks[ $bookmark ]->length + 1;
+ $after_closing_tag = $this->bookmarks[ $bookmark ]->start + $this->bookmarks[ $bookmark ]->length;
$this->release_bookmark( $bookmark );
// Appends the new content.
@@ -140,7 +140,7 @@ final class WP_Interactivity_API_Directives_Processor extends WP_HTML_Tag_Proces
}
list( $opener_tag, $closer_tag ) = $bookmarks;
- $after_opener_tag = $this->bookmarks[ $opener_tag ]->start + $this->bookmarks[ $opener_tag ]->length + 1;
+ $after_opener_tag = $this->bookmarks[ $opener_tag ]->start + $this->bookmarks[ $opener_tag ]->length;
$before_closer_tag = $this->bookmarks[ $closer_tag ]->start;
if ( $rewind ) {
@@ -198,16 +198,19 @@ final class WP_Interactivity_API_Directives_Processor extends WP_HTML_Tag_Proces
public function skip_to_tag_closer(): bool {
$depth = 1;
$tag_name = $this->get_tag();
- while ( $depth > 0 && $this->next_tag(
- array(
- 'tag_name' => $tag_name,
- 'tag_closers' => 'visit',
- )
- ) ) {
- if ( $this->has_self_closing_flag() ) {
- continue;
+
+ while ( $depth > 0 && $this->next_tag( array( 'tag_closers' => 'visit' ) ) ) {
+ if ( ! $this->is_tag_closer() && $this->get_attribute_names_with_prefix( 'data-wp-' ) ) {
+ /* translators: 1: SVG or MATH HTML tag. */
+ $message = sprintf( __( 'Interactivity directives were detected inside an incompatible %1$s tag. These directives will be ignored in the server side render.' ), $tag_name );
+ _doing_it_wrong( __METHOD__, $message, '6.6.0' );
+ }
+ if ( $this->get_tag() === $tag_name ) {
+ if ( $this->has_self_closing_flag() ) {
+ continue;
+ }
+ $depth += $this->is_tag_closer() ? -1 : 1;
}
- $depth += $this->is_tag_closer() ? -1 : 1;
}
return 0 === $depth;
diff --git a/wp-includes/interactivity-api/class-wp-interactivity-api.php b/wp-includes/interactivity-api/class-wp-interactivity-api.php
index 3db539a..3924e87 100644
--- a/wp-includes/interactivity-api/class-wp-interactivity-api.php
+++ b/wp-includes/interactivity-api/class-wp-interactivity-api.php
@@ -74,21 +74,75 @@ final class WP_Interactivity_API {
private $has_processed_router_region = false;
/**
+ * Stack of namespaces defined by `data-wp-interactive` directives, in
+ * the order they are processed.
+ *
+ * This is only available during directive processing, otherwise it is `null`.
+ *
+ * @since 6.6.0
+ * @var array<string>|null
+ */
+ private $namespace_stack = null;
+
+ /**
+ * Stack of contexts defined by `data-wp-context` directives, in
+ * the order they are processed.
+ *
+ * This is only available during directive processing, otherwise it is `null`.
+ *
+ * @since 6.6.0
+ * @var array<array<mixed>>|null
+ */
+ private $context_stack = null;
+
+ /**
* Gets and/or sets the initial state of an Interactivity API store for a
* given namespace.
*
* If state for that store namespace already exists, it merges the new
* provided state with the existing one.
*
+ * When no namespace is specified, it returns the state defined for the
+ * current value in the internal namespace stack during a `process_directives` call.
+ *
* @since 6.5.0
+ * @since 6.6.0 The `$store_namespace` param is optional.
*
- * @param string $store_namespace The unique store namespace identifier.
+ * @param string $store_namespace Optional. The unique store namespace identifier.
* @param array $state Optional. The array that will be merged with the existing state for the specified
* store namespace.
* @return array The current state for the specified store namespace. This will be the updated state if a $state
* argument was provided.
*/
- public function state( string $store_namespace, array $state = array() ): array {
+ public function state( ?string $store_namespace = null, ?array $state = null ): array {
+ if ( ! $store_namespace ) {
+ if ( $state ) {
+ _doing_it_wrong(
+ __METHOD__,
+ __( 'The namespace is required when state data is passed.' ),
+ '6.6.0'
+ );
+ return array();
+ }
+ if ( null !== $store_namespace ) {
+ _doing_it_wrong(
+ __METHOD__,
+ __( 'The namespace should be a non-empty string.' ),
+ '6.6.0'
+ );
+ return array();
+ }
+ if ( null === $this->namespace_stack ) {
+ _doing_it_wrong(
+ __METHOD__,
+ __( 'The namespace can only be omitted during directive processing.' ),
+ '6.6.0'
+ );
+ return array();
+ }
+
+ $store_namespace = end( $this->namespace_stack );
+ }
if ( ! isset( $this->state_data[ $store_namespace ] ) ) {
$this->state_data[ $store_namespace ] = array();
}
@@ -167,10 +221,41 @@ final class WP_Interactivity_API {
}
if ( ! empty( $interactivity_data ) ) {
+ /*
+ * This data will be printed as JSON inside a script tag like this:
+ * <script type="application/json"></script>
+ *
+ * A script tag must be closed by a sequence beginning with `</`. It's impossible to
+ * close a script tag without using `<`. We ensure that `<` is escaped and `/` can
+ * remain unescaped, so `</script>` will be printed as `\u003C/script\u00E3`.
+ *
+ * - JSON_HEX_TAG: All < and > are converted to \u003C and \u003E.
+ * - JSON_UNESCAPED_SLASHES: Don't escape /.
+ *
+ * If the page will use UTF-8 encoding, it's safe to print unescaped unicode:
+ *
+ * - JSON_UNESCAPED_UNICODE: Encode multibyte Unicode characters literally (instead of as `\uXXXX`).
+ * - JSON_UNESCAPED_LINE_TERMINATORS: The line terminators are kept unescaped when
+ * JSON_UNESCAPED_UNICODE is supplied. It uses the same behaviour as it was
+ * before PHP 7.1 without this constant. Available as of PHP 7.1.0.
+ *
+ * The JSON specification requires encoding in UTF-8, so if the generated HTML page
+ * is not encoded in UTF-8 then it's not safe to include those literals. They must
+ * be escaped to avoid encoding issues.
+ *
+ * @see https://www.rfc-editor.org/rfc/rfc8259.html for details on encoding requirements.
+ * @see https://www.php.net/manual/en/json.constants.php for details on these constants.
+ * @see https://html.spec.whatwg.org/#script-data-state for details on script tag parsing.
+ */
+ $json_encode_flags = JSON_HEX_TAG | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_LINE_TERMINATORS;
+ if ( ! is_utf8_charset() ) {
+ $json_encode_flags = JSON_HEX_TAG | JSON_UNESCAPED_SLASHES;
+ }
+
wp_print_inline_script_tag(
wp_json_encode(
$interactivity_data,
- JSON_HEX_TAG | JSON_HEX_AMP
+ $json_encode_flags
),
array(
'type' => 'application/json',
@@ -181,6 +266,46 @@ final class WP_Interactivity_API {
}
/**
+ * Returns the latest value on the context stack with the passed namespace.
+ *
+ * When the namespace is omitted, it uses the current namespace on the
+ * namespace stack during a `process_directives` call.
+ *
+ * @since 6.6.0
+ *
+ * @param string $store_namespace Optional. The unique store namespace identifier.
+ */
+ public function get_context( ?string $store_namespace = null ): array {
+ if ( null === $this->context_stack ) {
+ _doing_it_wrong(
+ __METHOD__,
+ __( 'The context can only be read during directive processing.' ),
+ '6.6.0'
+ );
+ return array();
+ }
+
+ if ( ! $store_namespace ) {
+ if ( null !== $store_namespace ) {
+ _doing_it_wrong(
+ __METHOD__,
+ __( 'The namespace should be a non-empty string.' ),
+ '6.6.0'
+ );
+ return array();
+ }
+
+ $store_namespace = end( $this->namespace_stack );
+ }
+
+ $context = end( $this->context_stack );
+
+ return ( $store_namespace && $context && isset( $context[ $store_namespace ] ) )
+ ? $context[ $store_namespace ]
+ : array();
+ }
+
+ /**
* Registers the `@wordpress/interactivity` script modules.
*
* @since 6.5.0
@@ -208,6 +333,9 @@ final class WP_Interactivity_API {
public function add_hooks() {
add_action( 'wp_enqueue_scripts', array( $this, 'register_script_modules' ) );
add_action( 'wp_footer', array( $this, 'print_client_interactivity_data' ) );
+
+ add_action( 'admin_enqueue_scripts', array( $this, 'register_script_modules' ) );
+ add_action( 'admin_print_footer_scripts', array( $this, 'print_client_interactivity_data' ) );
}
/**
@@ -224,9 +352,14 @@ final class WP_Interactivity_API {
return $html;
}
- $context_stack = array();
- $namespace_stack = array();
- $result = $this->process_directives_args( $html, $context_stack, $namespace_stack );
+ $this->namespace_stack = array();
+ $this->context_stack = array();
+
+ $result = $this->_process_directives( $html );
+
+ $this->namespace_stack = null;
+ $this->context_stack = null;
+
return null === $result ? $html : $result;
}
@@ -234,17 +367,17 @@ final class WP_Interactivity_API {
* Processes the interactivity directives contained within the HTML content
* and updates the markup accordingly.
*
- * It needs the context and namespace stacks to be passed by reference, and
- * it returns null if the HTML contains unbalanced tags.
+ * It uses the WP_Interactivity_API instance's context and namespace stacks,
+ * which are shared between all calls.
*
- * @since 6.5.0
+ * This method returns null if the HTML contains unbalanced tags.
*
- * @param string $html The HTML content to process.
- * @param array $context_stack The reference to the array used to keep track of contexts during processing.
- * @param array $namespace_stack The reference to the array used to manage namespaces during processing.
+ * @since 6.6.0
+ *
+ * @param string $html The HTML content to process.
* @return string|null The processed HTML content. It returns null when the HTML contains unbalanced tags.
*/
- private function process_directives_args( string $html, array &$context_stack, array &$namespace_stack ) {
+ private function _process_directives( string $html ) {
$p = new WP_Interactivity_API_Directives_Processor( $html );
$tag_stack = array();
$unbalanced = false;
@@ -252,6 +385,13 @@ final class WP_Interactivity_API {
$directive_processor_prefixes = array_keys( self::$directive_processors );
$directive_processor_prefixes_reversed = array_reverse( $directive_processor_prefixes );
+ /*
+ * Save the current size for each stack to restore them in case
+ * the processing finds unbalanced tags.
+ */
+ $namespace_stack_size = count( $this->namespace_stack );
+ $context_stack_size = count( $this->context_stack );
+
while ( $p->next_tag( array( 'tag_closers' => 'visit' ) ) ) {
$tag_name = $p->get_tag();
@@ -261,6 +401,11 @@ final class WP_Interactivity_API {
* We still process the rest of the HTML.
*/
if ( 'SVG' === $tag_name || 'MATH' === $tag_name ) {
+ if ( $p->get_attribute_names_with_prefix( 'data-wp-' ) ) {
+ /* translators: 1: SVG or MATH HTML tag, 2: Namespace of the interactive block. */
+ $message = sprintf( __( 'Interactivity directives were detected on an incompatible %1$s tag when processing "%2$s". These directives will be ignored in the server side render.' ), $tag_name, end( $this->namespace_stack ) );
+ _doing_it_wrong( __METHOD__, $message, '6.6.0' );
+ }
$p->skip_to_tag_closer();
continue;
}
@@ -341,20 +486,32 @@ final class WP_Interactivity_API {
? self::$directive_processors[ $directive_prefix ]
: array( $this, self::$directive_processors[ $directive_prefix ] );
- call_user_func_array(
- $func,
- array( $p, $mode, &$context_stack, &$namespace_stack, &$tag_stack )
- );
+ call_user_func_array( $func, array( $p, $mode, &$tag_stack ) );
}
}
}
+ if ( $unbalanced ) {
+ // Reset the namespace and context stacks to their previous values.
+ array_splice( $this->namespace_stack, $namespace_stack_size );
+ array_splice( $this->context_stack, $context_stack_size );
+ }
+
/*
* It returns null if the HTML is unbalanced because unbalanced HTML is
* not safe to process. In that case, the Interactivity API runtime will
- * update the HTML on the client side during the hydration.
+ * update the HTML on the client side during the hydration. It will also
+ * display a notice to the developer to inform them about the issue.
*/
- return $unbalanced || 0 < count( $tag_stack ) ? null : $p->get_updated_html();
+ if ( $unbalanced || 0 < count( $tag_stack ) ) {
+ $tag_errored = 0 < count( $tag_stack ) ? end( $tag_stack )[0] : $tag_name;
+ /* translators: %1s: Namespace processed, %2s: The tag that caused the error; could be any HTML tag. */
+ $message = sprintf( __( 'Interactivity directives failed to process in "%1$s" due to a missing "%2$s" end tag.' ), end( $this->namespace_stack ), $tag_errored );
+ _doing_it_wrong( __METHOD__, $message, '6.6.0' );
+ return null;
+ }
+
+ return $p->get_updated_html();
}
/**
@@ -362,17 +519,21 @@ final class WP_Interactivity_API {
* store namespace, state and context.
*
* @since 6.5.0
+ * @since 6.6.0 The function now adds a warning when the namespace is null, falsy, or the directive value is empty.
+ * @since 6.6.0 Removed `default_namespace` and `context` arguments.
*
- * @param string|true $directive_value The directive attribute value string or `true` when it's a boolean attribute.
- * @param string $default_namespace The default namespace to use if none is explicitly defined in the directive
- * value.
- * @param array|false $context The current context for evaluating the directive or false if there is no
- * context.
- * @return mixed|null The result of the evaluation. Null if the reference path doesn't exist.
+ * @param string|true $directive_value The directive attribute value string or `true` when it's a boolean attribute.
+ * @return mixed|null The result of the evaluation. Null if the reference path doesn't exist or the namespace is falsy.
*/
- private function evaluate( $directive_value, string $default_namespace, $context = false ) {
+ private function evaluate( $directive_value ) {
+ $default_namespace = end( $this->namespace_stack );
+ $context = end( $this->context_stack );
+
list( $ns, $path ) = $this->extract_directive_value( $directive_value, $default_namespace );
- if ( empty( $path ) ) {
+ if ( ! $ns || ! $path ) {
+ /* translators: %s: The directive value referenced. */
+ $message = sprintf( __( 'Namespace or reference path cannot be empty. Directive value referenced: %s' ), $directive_value );
+ _doing_it_wrong( __METHOD__, $message, '6.6.0' );
return null;
}
@@ -389,13 +550,42 @@ final class WP_Interactivity_API {
$path_segments = explode( '.', $path );
$current = $store;
foreach ( $path_segments as $path_segment ) {
- if ( isset( $current[ $path_segment ] ) ) {
+ if ( ( is_array( $current ) || $current instanceof ArrayAccess ) && isset( $current[ $path_segment ] ) ) {
$current = $current[ $path_segment ];
+ } elseif ( is_object( $current ) && isset( $current->$path_segment ) ) {
+ $current = $current->$path_segment;
} else {
return null;
}
}
+ if ( $current instanceof Closure ) {
+ /*
+ * This state getter's namespace is added to the stack so that
+ * `state()` or `get_config()` read that namespace when called
+ * without specifying one.
+ */
+ array_push( $this->namespace_stack, $ns );
+ try {
+ $current = $current();
+ } catch ( Throwable $e ) {
+ _doing_it_wrong(
+ __METHOD__,
+ sprintf(
+ /* translators: 1: Path pointing to an Interactivity API state property, 2: Namespace for an Interactivity API store. */
+ __( 'Uncaught error executing a derived state callback with path "%1$s" and namespace "%2$s".' ),
+ $path,
+ $ns
+ ),
+ '6.6.0'
+ );
+ return null;
+ } finally {
+ // Remove the property's namespace from the stack.
+ array_pop( $this->namespace_stack );
+ }
+ }
+
// Returns the opposite if it contains a negation operator (!).
return $should_negate_value ? ! $current : $current;
}
@@ -497,15 +687,13 @@ final class WP_Interactivity_API {
*
* @since 6.5.0
*
- * @param WP_Interactivity_API_Directives_Processor $p The directives processor instance.
- * @param string $mode Whether the processing is entering or exiting the tag.
- * @param array $context_stack The reference to the context stack.
- * @param array $namespace_stack The reference to the store namespace stack.
+ * @param WP_Interactivity_API_Directives_Processor $p The directives processor instance.
+ * @param string $mode Whether the processing is entering or exiting the tag.
*/
- private function data_wp_interactive_processor( WP_Interactivity_API_Directives_Processor $p, string $mode, array &$context_stack, array &$namespace_stack ) {
+ private function data_wp_interactive_processor( WP_Interactivity_API_Directives_Processor $p, string $mode ) {
// When exiting tags, it removes the last namespace from the stack.
if ( 'exit' === $mode ) {
- array_pop( $namespace_stack );
+ array_pop( $this->namespace_stack );
return;
}
@@ -529,9 +717,9 @@ final class WP_Interactivity_API {
$new_namespace = $attribute_value;
}
}
- $namespace_stack[] = ( $new_namespace && 1 === preg_match( '/^([\w\-_\/]+)/', $new_namespace ) )
+ $this->namespace_stack[] = ( $new_namespace && 1 === preg_match( '/^([\w\-_\/]+)/', $new_namespace ) )
? $new_namespace
- : end( $namespace_stack );
+ : end( $this->namespace_stack );
}
/**
@@ -544,18 +732,16 @@ final class WP_Interactivity_API {
*
* @param WP_Interactivity_API_Directives_Processor $p The directives processor instance.
* @param string $mode Whether the processing is entering or exiting the tag.
- * @param array $context_stack The reference to the context stack.
- * @param array $namespace_stack The reference to the store namespace stack.
*/
- private function data_wp_context_processor( WP_Interactivity_API_Directives_Processor $p, string $mode, array &$context_stack, array &$namespace_stack ) {
+ private function data_wp_context_processor( WP_Interactivity_API_Directives_Processor $p, string $mode ) {
// When exiting tags, it removes the last context from the stack.
if ( 'exit' === $mode ) {
- array_pop( $context_stack );
+ array_pop( $this->context_stack );
return;
}
$attribute_value = $p->get_attribute( 'data-wp-context' );
- $namespace_value = end( $namespace_stack );
+ $namespace_value = end( $this->namespace_stack );
// Separates the namespace from the context JSON object.
list( $namespace_value, $decoded_json ) = is_string( $attribute_value ) && ! empty( $attribute_value )
@@ -567,8 +753,8 @@ final class WP_Interactivity_API {
* previous context with the new one.
*/
if ( is_string( $namespace_value ) ) {
- $context_stack[] = array_replace_recursive(
- end( $context_stack ) !== false ? end( $context_stack ) : array(),
+ $this->context_stack[] = array_replace_recursive(
+ end( $this->context_stack ) !== false ? end( $this->context_stack ) : array(),
array( $namespace_value => is_array( $decoded_json ) ? $decoded_json : array() )
);
} else {
@@ -577,7 +763,7 @@ final class WP_Interactivity_API {
* It needs to do so because the function pops out the current context
* from the stack whenever it finds a `data-wp-context`'s closing tag.
*/
- $context_stack[] = end( $context_stack );
+ $this->context_stack[] = end( $this->context_stack );
}
}
@@ -591,10 +777,8 @@ final class WP_Interactivity_API {
*
* @param WP_Interactivity_API_Directives_Processor $p The directives processor instance.
* @param string $mode Whether the processing is entering or exiting the tag.
- * @param array $context_stack The reference to the context stack.
- * @param array $namespace_stack The reference to the store namespace stack.
*/
- private function data_wp_bind_processor( WP_Interactivity_API_Directives_Processor $p, string $mode, array &$context_stack, array &$namespace_stack ) {
+ private function data_wp_bind_processor( WP_Interactivity_API_Directives_Processor $p, string $mode ) {
if ( 'enter' === $mode ) {
$all_bind_directives = $p->get_attribute_names_with_prefix( 'data-wp-bind--' );
@@ -605,7 +789,7 @@ final class WP_Interactivity_API {
}
$attribute_value = $p->get_attribute( $attribute_name );
- $result = $this->evaluate( $attribute_value, end( $namespace_stack ), end( $context_stack ) );
+ $result = $this->evaluate( $attribute_value );
if (
null !== $result &&
@@ -645,10 +829,8 @@ final class WP_Interactivity_API {
*
* @param WP_Interactivity_API_Directives_Processor $p The directives processor instance.
* @param string $mode Whether the processing is entering or exiting the tag.
- * @param array $context_stack The reference to the context stack.
- * @param array $namespace_stack The reference to the store namespace stack.
*/
- private function data_wp_class_processor( WP_Interactivity_API_Directives_Processor $p, string $mode, array &$context_stack, array &$namespace_stack ) {
+ private function data_wp_class_processor( WP_Interactivity_API_Directives_Processor $p, string $mode ) {
if ( 'enter' === $mode ) {
$all_class_directives = $p->get_attribute_names_with_prefix( 'data-wp-class--' );
@@ -659,7 +841,7 @@ final class WP_Interactivity_API {
}
$attribute_value = $p->get_attribute( $attribute_name );
- $result = $this->evaluate( $attribute_value, end( $namespace_stack ), end( $context_stack ) );
+ $result = $this->evaluate( $attribute_value );
if ( $result ) {
$p->add_class( $class_name );
@@ -680,10 +862,8 @@ final class WP_Interactivity_API {
*
* @param WP_Interactivity_API_Directives_Processor $p The directives processor instance.
* @param string $mode Whether the processing is entering or exiting the tag.
- * @param array $context_stack The reference to the context stack.
- * @param array $namespace_stack The reference to the store namespace stack.
*/
- private function data_wp_style_processor( WP_Interactivity_API_Directives_Processor $p, string $mode, array &$context_stack, array &$namespace_stack ) {
+ private function data_wp_style_processor( WP_Interactivity_API_Directives_Processor $p, string $mode ) {
if ( 'enter' === $mode ) {
$all_style_attributes = $p->get_attribute_names_with_prefix( 'data-wp-style--' );
@@ -694,7 +874,7 @@ final class WP_Interactivity_API {
}
$directive_attribute_value = $p->get_attribute( $attribute_name );
- $style_property_value = $this->evaluate( $directive_attribute_value, end( $namespace_stack ), end( $context_stack ) );
+ $style_property_value = $this->evaluate( $directive_attribute_value );
$style_attribute_value = $p->get_attribute( 'style' );
$style_attribute_value = ( $style_attribute_value && ! is_bool( $style_attribute_value ) ) ? $style_attribute_value : '';
@@ -773,13 +953,11 @@ final class WP_Interactivity_API {
*
* @param WP_Interactivity_API_Directives_Processor $p The directives processor instance.
* @param string $mode Whether the processing is entering or exiting the tag.
- * @param array $context_stack The reference to the context stack.
- * @param array $namespace_stack The reference to the store namespace stack.
*/
- private function data_wp_text_processor( WP_Interactivity_API_Directives_Processor $p, string $mode, array &$context_stack, array &$namespace_stack ) {
+ private function data_wp_text_processor( WP_Interactivity_API_Directives_Processor $p, string $mode ) {
if ( 'enter' === $mode ) {
$attribute_value = $p->get_attribute( 'data-wp-text' );
- $result = $this->evaluate( $attribute_value, end( $namespace_stack ), end( $context_stack ) );
+ $result = $this->evaluate( $attribute_value );
/*
* Follows the same logic as Preact in the client and only changes the
@@ -911,17 +1089,15 @@ HTML;
*
* @param WP_Interactivity_API_Directives_Processor $p The directives processor instance.
* @param string $mode Whether the processing is entering or exiting the tag.
- * @param array $context_stack The reference to the context stack.
- * @param array $namespace_stack The reference to the store namespace stack.
* @param array $tag_stack The reference to the tag stack.
*/
- private function data_wp_each_processor( WP_Interactivity_API_Directives_Processor $p, string $mode, array &$context_stack, array &$namespace_stack, array &$tag_stack ) {
+ private function data_wp_each_processor( WP_Interactivity_API_Directives_Processor $p, string $mode, array &$tag_stack ) {
if ( 'enter' === $mode && 'TEMPLATE' === $p->get_tag() ) {
$attribute_name = $p->get_attribute_names_with_prefix( 'data-wp-each' )[0];
$extracted_suffix = $this->extract_prefix_and_suffix( $attribute_name );
$item_name = isset( $extracted_suffix[1] ) ? $this->kebab_to_camel_case( $extracted_suffix[1] ) : 'item';
$attribute_value = $p->get_attribute( $attribute_name );
- $result = $this->evaluate( $attribute_value, end( $namespace_stack ), end( $context_stack ) );
+ $result = $this->evaluate( $attribute_value );
// Gets the content between the template tags and leaves the cursor in the closer tag.
$inner_content = $p->get_content_between_balanced_template_tags();
@@ -955,7 +1131,7 @@ HTML;
}
// Extracts the namespace from the directive attribute value.
- $namespace_value = end( $namespace_stack );
+ $namespace_value = end( $this->namespace_stack );
list( $namespace_value ) = is_string( $attribute_value ) && ! empty( $attribute_value )
? $this->extract_directive_value( $attribute_value, $namespace_value )
: array( $namespace_value, null );
@@ -964,17 +1140,17 @@ HTML;
$processed_content = '';
foreach ( $result as $item ) {
// Creates a new context that includes the current item of the array.
- $context_stack[] = array_replace_recursive(
- end( $context_stack ) !== false ? end( $context_stack ) : array(),
+ $this->context_stack[] = array_replace_recursive(
+ end( $this->context_stack ) !== false ? end( $this->context_stack ) : array(),
array( $namespace_value => array( $item_name => $item ) )
);
// Processes the inner content with the new context.
- $processed_item = $this->process_directives_args( $inner_content, $context_stack, $namespace_stack );
+ $processed_item = $this->_process_directives( $inner_content );
if ( null === $processed_item ) {
// If the HTML is unbalanced, stop processing it.
- array_pop( $context_stack );
+ array_pop( $this->context_stack );
return;
}
@@ -987,7 +1163,7 @@ HTML;
$processed_content .= $i->get_updated_html();
// Removes the current context from the stack.
- array_pop( $context_stack );
+ array_pop( $this->context_stack );
}
// Appends the processed content after the tag closer of the template.
diff --git a/wp-includes/interactivity-api/interactivity-api.php b/wp-includes/interactivity-api/interactivity-api.php
index b8f3e50..e007d51 100644
--- a/wp-includes/interactivity-api/interactivity-api.php
+++ b/wp-includes/interactivity-api/interactivity-api.php
@@ -8,71 +8,6 @@
*/
/**
- * Processes the directives on the rendered HTML of the interactive blocks.
- *
- * This processes only one root interactive block at a time because the
- * rendered HTML of that block contains the rendered HTML of all its inner
- * blocks, including any interactive block. It does so by ignoring all the
- * interactive inner blocks until the root interactive block is processed.
- *
- * @since 6.5.0
- *
- * @param array $parsed_block The parsed block.
- * @return array The same parsed block.
- */
-function wp_interactivity_process_directives_of_interactive_blocks( array $parsed_block ): array {
- static $root_interactive_block = null;
-
- /*
- * Checks whether a root interactive block is already annotated for
- * processing, and if it is, it ignores the subsequent ones.
- */
- if ( null === $root_interactive_block ) {
- $block_name = $parsed_block['blockName'];
- $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block_name );
-
- if (
- isset( $block_name ) &&
- ( ( isset( $block_type->supports['interactivity'] ) && true === $block_type->supports['interactivity'] ) ||
- ( isset( $block_type->supports['interactivity']['interactive'] ) && true === $block_type->supports['interactivity']['interactive'] ) )
- ) {
- // Annotates the root interactive block for processing.
- $root_interactive_block = array( $block_name, $parsed_block );
-
- /*
- * Adds a filter to process the root interactive block once it has
- * finished rendering.
- */
- $process_interactive_blocks = static function ( string $content, array $parsed_block ) use ( &$root_interactive_block, &$process_interactive_blocks ): string {
- // Checks whether the current block is the root interactive block.
- list($root_block_name, $root_parsed_block) = $root_interactive_block;
- if ( $root_block_name === $parsed_block['blockName'] && $parsed_block === $root_parsed_block ) {
- // The root interactive blocks has finished rendering, process it.
- $content = wp_interactivity_process_directives( $content );
- // Removes the filter and reset the root interactive block.
- remove_filter( 'render_block_' . $parsed_block['blockName'], $process_interactive_blocks );
- $root_interactive_block = null;
- }
- return $content;
- };
-
- /*
- * Uses a priority of 100 to ensure that other filters can add additional
- * directives before the processing starts.
- */
- add_filter( 'render_block_' . $block_name, $process_interactive_blocks, 100, 2 );
- }
- }
-
- return $parsed_block;
-}
-/*
- * Uses a priority of 100 to ensure that other filters can add additional attributes to
- * $parsed_block before the processing starts.
- */
-add_filter( 'render_block_data', 'wp_interactivity_process_directives_of_interactive_blocks', 100, 1 );
-
-/**
* Retrieves the main WP_Interactivity_API instance.
*
* It provides access to the WP_Interactivity_API instance, creating one if it
@@ -112,7 +47,11 @@ function wp_interactivity_process_directives( string $html ): string {
* If state for that store namespace already exists, it merges the new
* provided state with the existing one.
*
+ * The namespace can be omitted inside derived state getters, using the
+ * namespace where the getter is defined.
+ *
* @since 6.5.0
+ * @since 6.6.0 The namespace can be omitted when called inside derived state getters.
*
* @param string $store_namespace The unique store namespace identifier.
* @param array $state Optional. The array that will be merged with the existing state for the specified
@@ -120,7 +59,7 @@ function wp_interactivity_process_directives( string $html ): string {
* @return array The state for the specified store namespace. This will be the updated state if a $state argument was
* provided.
*/
-function wp_interactivity_state( string $store_namespace, array $state = array() ): array {
+function wp_interactivity_state( ?string $store_namespace = null, array $state = array() ): array {
return wp_interactivity()->state( $store_namespace, $state );
}
@@ -168,3 +107,21 @@ function wp_interactivity_data_wp_context( array $context, string $store_namespa
( empty( $context ) ? '{}' : wp_json_encode( $context, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP ) ) .
'\'';
}
+
+/**
+ * Gets the current Interactivity API context for a given namespace.
+ *
+ * The function should be used only during directive processing. If the
+ * `$store_namespace` parameter is omitted, it uses the current namespace value
+ * on the internal namespace stack.
+ *
+ * It returns an empty array when the specified namespace is not defined.
+ *
+ * @since 6.6.0
+ *
+ * @param string $store_namespace Optional. The unique store namespace identifier.
+ * @return array The context for the specified store namespace.
+ */
+function wp_interactivity_get_context( ?string $store_namespace = null ): array {
+ return wp_interactivity()->get_context( $store_namespace );
+}
diff --git a/wp-includes/js/admin-bar.js b/wp-includes/js/admin-bar.js
index 01b175d..eb18c61 100644
--- a/wp-includes/js/admin-bar.js
+++ b/wp-includes/js/admin-bar.js
@@ -95,11 +95,6 @@
} );
}
- if ( skipLink ) {
- // Focus the target of skip link after pressing Enter.
- skipLink.addEventListener( 'keydown', focusTargetAfterEnter );
- }
-
if ( shortlink ) {
shortlink.addEventListener( 'click', clickShortlink );
}
@@ -174,36 +169,7 @@
}
/**
- * Focus the target of skip link after pressing Enter.
- *
- * @since 5.3.1
- *
- * @param {Event} event The keydown event.
- */
- function focusTargetAfterEnter( event ) {
- var id, userAgent;
-
- if ( event.which !== 13 ) {
- return;
- }
-
- id = event.target.getAttribute( 'href' );
- userAgent = navigator.userAgent.toLowerCase();
-
- if ( userAgent.indexOf( 'applewebkit' ) > -1 && id && id.charAt( 0 ) === '#' ) {
- setTimeout( function() {
- var target = document.getElementById( id.replace( '#', '' ) );
-
- if ( target ) {
- target.setAttribute( 'tabIndex', '0' );
- target.focus();
- }
- }, 100 );
- }
- }
-
- /**
- * Toogle hover class for mobile devices.
+ * Toggle hover class for mobile devices.
*
* @since 5.3.1
*
diff --git a/wp-includes/js/admin-bar.min.js b/wp-includes/js/admin-bar.min.js
index 7beb6df..b01d377 100644
--- a/wp-includes/js/admin-bar.min.js
+++ b/wp-includes/js/admin-bar.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-!function(l,u,d){function f(e){27===e.which&&(e=w(e.target,".menupop"))&&(e.querySelector(".menupop > .ab-item").focus(),y(e,"hover"))}function p(e){var t;13!==e.which||e.ctrlKey||e.shiftKey||w(e.target,".ab-sub-wrapper")||(t=w(e.target,".menupop"))&&(e.preventDefault(),(a(t,"hover")?y:g)(t,"hover"))}function h(e){var t;13===e.which&&(t=e.target.getAttribute("href"),-1<d.userAgent.toLowerCase().indexOf("applewebkit"))&&t&&"#"===t.charAt(0)&&setTimeout(function(){var e=l.getElementById(t.replace("#",""));e&&(e.setAttribute("tabIndex","0"),e.focus())},100)}function m(e,t){!w(t.target,".ab-sub-wrapper")&&(t.preventDefault(),t=w(t.target,".menupop"))&&(a(t,"hover")?y:(E(e),g))(t,"hover")}function v(e){var t,r=e.target.parentNode;if(t=r?r.querySelector(".shortlink-input"):t)return e.preventDefault&&e.preventDefault(),e.returnValue=!1,g(r,"selected"),t.focus(),t.select(),!(t.onblur=function(){y(r,"selected")})}function b(){if("sessionStorage"in u)try{for(var e in sessionStorage)-1<e.indexOf("wp-autosave-")&&sessionStorage.removeItem(e)}catch(e){}}function a(e,t){return e&&(e.classList&&e.classList.contains?e.classList.contains(t):e.className&&-1<e.className.split(" ").indexOf(t))}function g(e,t){e&&(e.classList&&e.classList.add?e.classList.add(t):a(e,t)||(e.className&&(e.className+=" "),e.className+=t),e=e.querySelector("a"),"hover"===t)&&e&&e.hasAttribute("aria-expanded")&&e.setAttribute("aria-expanded","true")}function y(e,t){var r,n;if(e&&a(e,t)){if(e.classList&&e.classList.remove)e.classList.remove(t);else{for(r=" "+t+" ",n=" "+e.className+" ";-1<n.indexOf(r);)n=n.replace(r,"");e.className=n.replace(/^[\s]+|[\s]+$/g,"")}e=e.querySelector("a");"hover"===t&&e&&e.hasAttribute("aria-expanded")&&e.setAttribute("aria-expanded","false")}}function E(e){if(e&&e.length)for(var t=0;t<e.length;t++)y(e[t],"hover")}function L(e){if(!e.target||"wpadminbar"===e.target.id||"wp-admin-bar-top-secondary"===e.target.id)try{u.scrollTo({top:-32,left:0,behavior:"smooth"})}catch(e){u.scrollTo(0,-32)}}function w(e,t){for(u.Element.prototype.matches||(u.Element.prototype.matches=u.Element.prototype.matchesSelector||u.Element.prototype.mozMatchesSelector||u.Element.prototype.msMatchesSelector||u.Element.prototype.oMatchesSelector||u.Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),r=t.length;0<=--r&&t.item(r)!==this;);return-1<r});e&&e!==l;e=e.parentNode)if(e.matches(t))return e;return null}l.addEventListener("DOMContentLoaded",function(){var r,e,t,n,a,o,s,i,c=l.getElementById("wpadminbar");if(c&&"querySelectorAll"in c){r=c.querySelectorAll("li.menupop"),e=c.querySelectorAll(".ab-item"),t=l.querySelector("#wp-admin-bar-logout a"),n=l.getElementById("adminbarsearch"),a=l.getElementById("wp-admin-bar-get-shortlink"),o=c.querySelector(".screen-reader-shortcut"),s=/Mobile\/.+Safari/.test(d.userAgent)?"touchstart":"click",y(c,"nojs"),"ontouchstart"in u&&(l.body.addEventListener(s,function(e){w(e.target,"li.menupop")||E(r)}),c.addEventListener("touchstart",function e(){for(var t=0;t<r.length;t++)r[t].addEventListener("click",m.bind(null,r));c.removeEventListener("touchstart",e)})),c.addEventListener("click",L);for(i=0;i<r.length;i++)u.hoverintent(r[i],g.bind(null,r[i],"hover"),y.bind(null,r[i],"hover")).options({timeout:180}),r[i].addEventListener("keydown",p);for(i=0;i<e.length;i++)e[i].addEventListener("keydown",f);n&&((s=l.getElementById("adminbar-search")).addEventListener("focus",function(){g(n,"adminbar-focused")}),s.addEventListener("blur",function(){y(n,"adminbar-focused")})),o&&o.addEventListener("keydown",h),a&&a.addEventListener("click",v),u.location.hash&&u.scrollBy(0,-32),t&&t.addEventListener("click",b)}})}(document,window,navigator); \ No newline at end of file
+!function(c,l,u){function d(e){27===e.which&&(e=E(e.target,".menupop"))&&(e.querySelector(".menupop > .ab-item").focus(),y(e,"hover"))}function p(e){var t;13!==e.which||e.ctrlKey||e.shiftKey||E(e.target,".ab-sub-wrapper")||(t=E(e.target,".menupop"))&&(e.preventDefault(),(a(t,"hover")?y:v)(t,"hover"))}function m(e,t){!E(t.target,".ab-sub-wrapper")&&(t.preventDefault(),t=E(t.target,".menupop"))&&(a(t,"hover")?y:(b(e),v))(t,"hover")}function f(e){var t,r=e.target.parentNode;if(t=r?r.querySelector(".shortlink-input"):t)return e.preventDefault&&e.preventDefault(),e.returnValue=!1,v(r,"selected"),t.focus(),t.select(),!(t.onblur=function(){y(r,"selected")})}function h(){if("sessionStorage"in l)try{for(var e in sessionStorage)-1<e.indexOf("wp-autosave-")&&sessionStorage.removeItem(e)}catch(e){}}function a(e,t){return e&&(e.classList&&e.classList.contains?e.classList.contains(t):e.className&&-1<e.className.split(" ").indexOf(t))}function v(e,t){e&&(e.classList&&e.classList.add?e.classList.add(t):a(e,t)||(e.className&&(e.className+=" "),e.className+=t),e=e.querySelector("a"),"hover"===t)&&e&&e.hasAttribute("aria-expanded")&&e.setAttribute("aria-expanded","true")}function y(e,t){var r,n;if(e&&a(e,t)){if(e.classList&&e.classList.remove)e.classList.remove(t);else{for(r=" "+t+" ",n=" "+e.className+" ";-1<n.indexOf(r);)n=n.replace(r,"");e.className=n.replace(/^[\s]+|[\s]+$/g,"")}e=e.querySelector("a");"hover"===t&&e&&e.hasAttribute("aria-expanded")&&e.setAttribute("aria-expanded","false")}}function b(e){if(e&&e.length)for(var t=0;t<e.length;t++)y(e[t],"hover")}function g(e){if(!e.target||"wpadminbar"===e.target.id||"wp-admin-bar-top-secondary"===e.target.id)try{l.scrollTo({top:-32,left:0,behavior:"smooth"})}catch(e){l.scrollTo(0,-32)}}function E(e,t){for(l.Element.prototype.matches||(l.Element.prototype.matches=l.Element.prototype.matchesSelector||l.Element.prototype.mozMatchesSelector||l.Element.prototype.msMatchesSelector||l.Element.prototype.oMatchesSelector||l.Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),r=t.length;0<=--r&&t.item(r)!==this;);return-1<r});e&&e!==c;e=e.parentNode)if(e.matches(t))return e;return null}c.addEventListener("DOMContentLoaded",function(){var r,e,t,n,a,o,s,i=c.getElementById("wpadminbar");if(i&&"querySelectorAll"in i){r=i.querySelectorAll("li.menupop"),e=i.querySelectorAll(".ab-item"),t=c.querySelector("#wp-admin-bar-logout a"),n=c.getElementById("adminbarsearch"),a=c.getElementById("wp-admin-bar-get-shortlink"),i.querySelector(".screen-reader-shortcut"),o=/Mobile\/.+Safari/.test(u.userAgent)?"touchstart":"click",y(i,"nojs"),"ontouchstart"in l&&(c.body.addEventListener(o,function(e){E(e.target,"li.menupop")||b(r)}),i.addEventListener("touchstart",function e(){for(var t=0;t<r.length;t++)r[t].addEventListener("click",m.bind(null,r));i.removeEventListener("touchstart",e)})),i.addEventListener("click",g);for(s=0;s<r.length;s++)l.hoverintent(r[s],v.bind(null,r[s],"hover"),y.bind(null,r[s],"hover")).options({timeout:180}),r[s].addEventListener("keydown",p);for(s=0;s<e.length;s++)e[s].addEventListener("keydown",d);n&&((o=c.getElementById("adminbar-search")).addEventListener("focus",function(){v(n,"adminbar-focused")}),o.addEventListener("blur",function(){y(n,"adminbar-focused")})),a&&a.addEventListener("click",f),l.location.hash&&l.scrollBy(0,-32),t&&t.addEventListener("click",h)}})}(document,window,navigator); \ No newline at end of file
diff --git a/wp-includes/js/customize-loader.js b/wp-includes/js/customize-loader.js
index e9368c3..2326f1f 100644
--- a/wp-includes/js/customize-loader.js
+++ b/wp-includes/js/customize-loader.js
@@ -22,7 +22,7 @@ window.wp = window.wp || {};
});
/**
- * Allows the Customizer to be overlayed on any page.
+ * Allows the Customizer to be overlaid on any page.
*
* By default, any element in the body with the load-customize class will open
* an iframe overlay with the URL specified.
diff --git a/wp-includes/js/customize-selective-refresh.js b/wp-includes/js/customize-selective-refresh.js
index 2967d45..6744361 100644
--- a/wp-includes/js/customize-selective-refresh.js
+++ b/wp-includes/js/customize-selective-refresh.js
@@ -429,7 +429,7 @@ wp.customize.selectiveRefresh = ( function( $, api ) {
}
/* jshint ignore:start */
- self.orginalDocumentWrite = document.write;
+ self.originalDocumentWrite = document.write;
document.write = function() {
throw new Error( self.data.l10n.badDocumentWrite );
};
@@ -473,8 +473,8 @@ wp.customize.selectiveRefresh = ( function( $, api ) {
partial.fallback( error, [ placement ] );
}
/* jshint ignore:start */
- document.write = self.orginalDocumentWrite;
- self.orginalDocumentWrite = null;
+ document.write = self.originalDocumentWrite;
+ self.originalDocumentWrite = null;
/* jshint ignore:end */
partial.createEditShortcutForPlacement( placement );
@@ -673,7 +673,7 @@ wp.customize.selectiveRefresh = ( function( $, api ) {
self._pendingPartialRequests = {};
/**
- * Timeout ID for the current requesr, or null if no request is current.
+ * Timeout ID for the current request, or null if no request is current.
*
* @since 4.5.0
* @type {number|null}
diff --git a/wp-includes/js/customize-selective-refresh.min.js b/wp-includes/js/customize-selective-refresh.min.js
index 5962fc7..68de8bf 100644
--- a/wp-includes/js/customize-selective-refresh.min.js
+++ b/wp-includes/js/customize-selective-refresh.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-wp.customize.selectiveRefresh=function(o,r){"use strict";var t,s,c={ready:o.Deferred(),editShortcutVisibility:new r.Value,data:{partials:{},renderQueryVar:"",l10n:{shiftClickToEdit:""}},currentRequest:null};return _.extend(c,r.Events),t=c.Partial=r.Class.extend({id:null,defaults:{selector:null,primarySetting:null,containerInclusive:!1,fallbackRefresh:!0},initialize:function(e,t){var n=this;t=t||{},n.id=e,n.params=_.extend({settings:[]},n.defaults,t.params||t),n.deferred={},n.deferred.ready=o.Deferred(),n.deferred.ready.done(function(){n.ready()})},ready:function(){var n=this;_.each(n.placements(),function(e){o(e.container).attr("title",c.data.l10n.shiftClickToEdit),n.createEditShortcutForPlacement(e)}),o(document).on("click",n.params.selector,function(t){t.shiftKey&&(t.preventDefault(),_.each(n.placements(),function(e){o(e.container).is(t.currentTarget)&&n.showControl()}))})},createEditShortcutForPlacement:function(e){var t,n=this;!e.container||!(t=o(e.container)).length||t.is("area, audio, base, bdi, bdo, br, button, canvas, col, colgroup, command, datalist, embed, head, hr, html, iframe, img, input, keygen, label, link, map, math, menu, meta, noscript, object, optgroup, option, param, progress, rp, rt, ruby, script, select, source, style, svg, table, tbody, textarea, tfoot, thead, title, tr, track, video, wbr")||t.closest("head").length||((t=n.createEditShortcut()).on("click",function(e){e.preventDefault(),e.stopPropagation(),n.showControl()}),n.addEditShortcutToPlacement(e,t))},addEditShortcutToPlacement:function(e,t){e=o(e.container);e.prepend(t),e.is(":visible")&&"none"!==e.css("display")||t.addClass("customize-partial-edit-shortcut-hidden")},getEditShortcutClassName:function(){return"customize-partial-edit-shortcut-"+this.id.replace(/]/g,"").replace(/\[/g,"-")},getEditShortcutTitle:function(){var e=c.data.l10n;switch(this.getType()){case"widget":return e.clickEditWidget;case"blogname":case"blogdescription":return e.clickEditTitle;case"nav_menu":return e.clickEditMenu;default:return e.clickEditMisc}},getType:function(){var e=this,t=e.params.primarySetting||_.first(e.settings())||"unknown";return e.params.type||(t.match(/^nav_menu_instance\[/)?"nav_menu":t.match(/^widget_.+\[\d+]$/)?"widget":t)},createEditShortcut:function(){var e=this.getEditShortcutTitle(),t=o("<span>",{class:"customize-partial-edit-shortcut "+this.getEditShortcutClassName()}),e=o("<button>",{"aria-label":e,title:e,class:"customize-partial-edit-shortcut-button"}),n=o('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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.6z"/></svg>');return e.append(n),t.append(e),t},placements:function(){var n=this,e=n.params.selector||"";return e&&(e+=", "),e+='[data-customize-partial-id="'+n.id+'"]',o(e).map(function(){var e=o(this),t=e.data("customize-partial-placement-context");if(_.isString(t)&&"{"===t.substr(0,1))throw new Error("context JSON parse error");return new s({partial:n,container:e,context:t})}).get()},settings:function(){var e=this;return e.params.settings&&0!==e.params.settings.length?e.params.settings:e.params.primarySetting?[e.params.primarySetting]:[e.id]},isRelatedSetting:function(e){return!!(e=_.isString(e)?r(e):e)&&-1!==_.indexOf(this.settings(),e.id)},showControl:function(){var e=this,t=(t=e.params.primarySetting)||_.first(e.settings());"nav_menu"===e.getType()&&(e.params.navMenuArgs.theme_location?t="nav_menu_locations["+e.params.navMenuArgs.theme_location+"]":e.params.navMenuArgs.menu&&(t="nav_menu["+String(e.params.navMenuArgs.menu)+"]")),r.preview.send("focus-control-for-setting",t)},preparePlacement:function(e){o(e.container).addClass("customize-partial-refreshing")},_pendingRefreshPromise:null,refresh:function(){var n=this,e=c.requestPartial(n);return n._pendingRefreshPromise||(_.each(n.placements(),function(e){n.preparePlacement(e)}),e.done(function(e){_.each(e,function(e){n.renderContent(e)})}),e.fail(function(e,t){n.fallback(e,t)}),(n._pendingRefreshPromise=e).always(function(){n._pendingRefreshPromise=null})),e},renderContent:function(t){var e,n,r=this;if(!t.container)return r.fallback(new Error("no_container"),[t]),!1;if(t.container=o(t.container),!1===t.addedContent)return r.fallback(new Error("missing_render"),[t]),!1;if(!_.isString(t.addedContent))return r.fallback(new Error("non_string_content"),[t]),!1;c.orginalDocumentWrite=document.write,document.write=function(){throw new Error(c.data.l10n.badDocumentWrite)};try{if(e=t.addedContent,wp.emoji&&wp.emoji.parse&&!o.contains(document.head,t.container[0])&&(e=wp.emoji.parse(e)),r.params.containerInclusive)n=o(e),t.context=_.extend(t.context,n.data("customize-partial-placement-context")||{}),n.data("customize-partial-placement-context",t.context),t.removedNodes=t.container,t.container=n,t.removedNodes.replaceWith(t.container),t.container.attr("title",c.data.l10n.shiftClickToEdit);else{for(t.removedNodes=document.createDocumentFragment();t.container[0].firstChild;)t.removedNodes.appendChild(t.container[0].firstChild);t.container.html(e)}t.container.removeClass("customize-render-content-error")}catch(e){"undefined"!=typeof console&&console.error&&console.error(r.id,e),r.fallback(e,[t])}return document.write=c.orginalDocumentWrite,c.orginalDocumentWrite=null,r.createEditShortcutForPlacement(t),t.container.removeClass("customize-partial-refreshing"),t.container.data("customize-partial-content-rendered",!0),wp.mediaelement&&wp.mediaelement.initialize(),wp.playlist&&wp.playlist.initialize(),c.trigger("partial-content-rendered",t),!0},fallback:function(){this.params.fallbackRefresh&&c.requestFullRefresh()}}),c.Placement=s=r.Class.extend({partial:null,container:null,startNode:null,endNode:null,context:null,addedContent:null,removedNodes:null,initialize:function(e){if(!(e=_.extend({},e||{})).partial||!e.partial.extended(t))throw new Error("Missing partial");e.context=e.context||{},e.container&&(e.container=o(e.container)),_.extend(this,e)}}),c.partialConstructor={},c.partial=new r.Values({defaultConstructor:t}),c.getCustomizeQuery=function(){var n={};return r.each(function(e,t){e._dirty&&(n[t]=e())}),{wp_customize:"on",nonce:r.settings.nonce.preview,customize_theme:r.settings.theme.stylesheet,customized:JSON.stringify(n),customize_changeset_uuid:r.settings.changeset.uuid}},c._pendingPartialRequests={},c._debouncedTimeoutId=null,c._currentRequest=null,c.requestFullRefresh=function(){r.preview.send("refresh")},c.requestPartial=function(e){var t;return c._debouncedTimeoutId&&(clearTimeout(c._debouncedTimeoutId),c._debouncedTimeoutId=null),c._currentRequest&&(c._currentRequest.abort(),c._currentRequest=null),(t=c._pendingPartialRequests[e.id])&&"pending"===t.deferred.state()||(t={deferred:o.Deferred(),partial:e},c._pendingPartialRequests[e.id]=t),e=null,c._debouncedTimeoutId=setTimeout(function(){var n,i,e;c._debouncedTimeoutId=null,e=c.getCustomizeQuery(),i={},n={},_.each(c._pendingPartialRequests,function(e,t){i[t]=e.partial.placements(),c.partial.has(t)?n[t]=_.map(i[t],function(e){return e.context||{}}):e.deferred.rejectWith(e.partial,[new Error("partial_removed"),i[t]])}),e.partials=JSON.stringify(n),e[c.data.renderQueryVar]="1",(e=c._currentRequest=wp.ajax.send(null,{data:e,url:r.settings.url.self})).done(function(t){c.trigger("render-partials-response",t),t.errors&&"undefined"!=typeof console&&console.warn&&_.each(t.errors,function(e){console.warn(e)}),_.each(c._pendingPartialRequests,function(n,r){var e;_.isArray(t.contents[r])?(e=_.map(t.contents[r],function(e,t){t=i[r][t];return t?t.addedContent=e:t=new s({partial:n.partial,addedContent:e}),t}),n.deferred.resolveWith(n.partial,[e])):n.deferred.rejectWith(n.partial,[new Error("unrecognized_partial"),i[r]])}),c._pendingPartialRequests={}}),e.fail(function(n,e){"abort"!==e&&(_.each(c._pendingPartialRequests,function(e,t){e.deferred.rejectWith(e.partial,[n,i[t]])}),c._pendingPartialRequests={})})},r.settings.timeouts.selectiveRefresh),t.deferred.promise()},c.addPartials=function(e,a){var t;e=e||document.documentElement,e=o(e),a=_.extend({triggerRendered:!0},a||{}),t=e.find("[data-customize-partial-id]"),(t=e.is("[data-customize-partial-id]")?t.add(e):t).each(function(){var e,t,n,r=o(this),i=r.data("customize-partial-id");i&&(n=r.data("customize-partial-placement-context")||{},(e=c.partial(i))||((t=r.data("customize-partial-options")||{}).constructingContainerContext=r.data("customize-partial-placement-context")||{},e=new(c.partialConstructor[r.data("customize-partial-type")]||c.Partial)(i,t),c.partial.add(e)),a.triggerRendered&&!r.data("customize-partial-content-rendered")&&(i=new s({partial:e,context:n,container:r}),o(i.container).attr("title",c.data.l10n.shiftClickToEdit),e.createEditShortcutForPlacement(i),c.trigger("partial-content-rendered",i)),r.data("customize-partial-content-rendered",!0))})},r.bind("preview-ready",function(){var t,e;_.extend(c.data,_customizePartialRefreshExports),_.each(c.data.partials,function(e,t){var n=c.partial(t);n?_.extend(n.params,e):(n=new(c.partialConstructor[e.type]||c.Partial)(t,_.extend({params:e},e)),c.partial.add(n))}),t=function(t,n){var r=this;c.partial.each(function(e){e.isRelatedSetting(r,t,n)&&e.refresh()})},e=function(e){t.call(e,null,e()),e.unbind(t)},r.bind("add",function(e){t.call(e,e(),null),e.bind(t)}),r.bind("remove",e),r.each(function(e){e.bind(t)}),c.addPartials(document.documentElement,{triggerRendered:!1}),"undefined"!=typeof MutationObserver&&(c.mutationObserver=new MutationObserver(function(e){_.each(e,function(e){c.addPartials(o(e.target))})}),c.mutationObserver.observe(document.documentElement,{childList:!0,subtree:!0})),r.selectiveRefresh.bind("partial-content-rendered",function(e){e.container&&c.addPartials(e.container)}),r.selectiveRefresh.bind("render-partials-response",function(e){e.setting_validities&&r.preview.send("selective-refresh-setting-validities",e.setting_validities)}),r.preview.bind("edit-shortcut-visibility",function(e){r.selectiveRefresh.editShortcutVisibility.set(e)}),r.selectiveRefresh.editShortcutVisibility.bind(function(e){var t=o(document.body),n="hidden"===e&&t.hasClass("customize-partial-edit-shortcuts-shown")&&!t.hasClass("customize-partial-edit-shortcuts-hidden");t.toggleClass("customize-partial-edit-shortcuts-hidden",n),t.toggleClass("customize-partial-edit-shortcuts-shown","visible"===e)}),r.preview.bind("active",function(){c.partial.each(function(e){e.deferred.ready.resolve()}),c.partial.bind("add",function(e){e.deferred.ready.resolve()})})}),c}(jQuery,wp.customize); \ No newline at end of file
+wp.customize.selectiveRefresh=function(o,r){"use strict";var t,s,c={ready:o.Deferred(),editShortcutVisibility:new r.Value,data:{partials:{},renderQueryVar:"",l10n:{shiftClickToEdit:""}},currentRequest:null};return _.extend(c,r.Events),t=c.Partial=r.Class.extend({id:null,defaults:{selector:null,primarySetting:null,containerInclusive:!1,fallbackRefresh:!0},initialize:function(e,t){var n=this;t=t||{},n.id=e,n.params=_.extend({settings:[]},n.defaults,t.params||t),n.deferred={},n.deferred.ready=o.Deferred(),n.deferred.ready.done(function(){n.ready()})},ready:function(){var n=this;_.each(n.placements(),function(e){o(e.container).attr("title",c.data.l10n.shiftClickToEdit),n.createEditShortcutForPlacement(e)}),o(document).on("click",n.params.selector,function(t){t.shiftKey&&(t.preventDefault(),_.each(n.placements(),function(e){o(e.container).is(t.currentTarget)&&n.showControl()}))})},createEditShortcutForPlacement:function(e){var t,n=this;!e.container||!(t=o(e.container)).length||t.is("area, audio, base, bdi, bdo, br, button, canvas, col, colgroup, command, datalist, embed, head, hr, html, iframe, img, input, keygen, label, link, map, math, menu, meta, noscript, object, optgroup, option, param, progress, rp, rt, ruby, script, select, source, style, svg, table, tbody, textarea, tfoot, thead, title, tr, track, video, wbr")||t.closest("head").length||((t=n.createEditShortcut()).on("click",function(e){e.preventDefault(),e.stopPropagation(),n.showControl()}),n.addEditShortcutToPlacement(e,t))},addEditShortcutToPlacement:function(e,t){e=o(e.container);e.prepend(t),e.is(":visible")&&"none"!==e.css("display")||t.addClass("customize-partial-edit-shortcut-hidden")},getEditShortcutClassName:function(){return"customize-partial-edit-shortcut-"+this.id.replace(/]/g,"").replace(/\[/g,"-")},getEditShortcutTitle:function(){var e=c.data.l10n;switch(this.getType()){case"widget":return e.clickEditWidget;case"blogname":case"blogdescription":return e.clickEditTitle;case"nav_menu":return e.clickEditMenu;default:return e.clickEditMisc}},getType:function(){var e=this,t=e.params.primarySetting||_.first(e.settings())||"unknown";return e.params.type||(t.match(/^nav_menu_instance\[/)?"nav_menu":t.match(/^widget_.+\[\d+]$/)?"widget":t)},createEditShortcut:function(){var e=this.getEditShortcutTitle(),t=o("<span>",{class:"customize-partial-edit-shortcut "+this.getEditShortcutClassName()}),e=o("<button>",{"aria-label":e,title:e,class:"customize-partial-edit-shortcut-button"}),n=o('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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.6z"/></svg>');return e.append(n),t.append(e),t},placements:function(){var n=this,e=n.params.selector||"";return e&&(e+=", "),e+='[data-customize-partial-id="'+n.id+'"]',o(e).map(function(){var e=o(this),t=e.data("customize-partial-placement-context");if(_.isString(t)&&"{"===t.substr(0,1))throw new Error("context JSON parse error");return new s({partial:n,container:e,context:t})}).get()},settings:function(){var e=this;return e.params.settings&&0!==e.params.settings.length?e.params.settings:e.params.primarySetting?[e.params.primarySetting]:[e.id]},isRelatedSetting:function(e){return!!(e=_.isString(e)?r(e):e)&&-1!==_.indexOf(this.settings(),e.id)},showControl:function(){var e=this,t=(t=e.params.primarySetting)||_.first(e.settings());"nav_menu"===e.getType()&&(e.params.navMenuArgs.theme_location?t="nav_menu_locations["+e.params.navMenuArgs.theme_location+"]":e.params.navMenuArgs.menu&&(t="nav_menu["+String(e.params.navMenuArgs.menu)+"]")),r.preview.send("focus-control-for-setting",t)},preparePlacement:function(e){o(e.container).addClass("customize-partial-refreshing")},_pendingRefreshPromise:null,refresh:function(){var n=this,e=c.requestPartial(n);return n._pendingRefreshPromise||(_.each(n.placements(),function(e){n.preparePlacement(e)}),e.done(function(e){_.each(e,function(e){n.renderContent(e)})}),e.fail(function(e,t){n.fallback(e,t)}),(n._pendingRefreshPromise=e).always(function(){n._pendingRefreshPromise=null})),e},renderContent:function(t){var e,n,r=this;if(!t.container)return r.fallback(new Error("no_container"),[t]),!1;if(t.container=o(t.container),!1===t.addedContent)return r.fallback(new Error("missing_render"),[t]),!1;if(!_.isString(t.addedContent))return r.fallback(new Error("non_string_content"),[t]),!1;c.originalDocumentWrite=document.write,document.write=function(){throw new Error(c.data.l10n.badDocumentWrite)};try{if(e=t.addedContent,wp.emoji&&wp.emoji.parse&&!o.contains(document.head,t.container[0])&&(e=wp.emoji.parse(e)),r.params.containerInclusive)n=o(e),t.context=_.extend(t.context,n.data("customize-partial-placement-context")||{}),n.data("customize-partial-placement-context",t.context),t.removedNodes=t.container,t.container=n,t.removedNodes.replaceWith(t.container),t.container.attr("title",c.data.l10n.shiftClickToEdit);else{for(t.removedNodes=document.createDocumentFragment();t.container[0].firstChild;)t.removedNodes.appendChild(t.container[0].firstChild);t.container.html(e)}t.container.removeClass("customize-render-content-error")}catch(e){"undefined"!=typeof console&&console.error&&console.error(r.id,e),r.fallback(e,[t])}return document.write=c.originalDocumentWrite,c.originalDocumentWrite=null,r.createEditShortcutForPlacement(t),t.container.removeClass("customize-partial-refreshing"),t.container.data("customize-partial-content-rendered",!0),wp.mediaelement&&wp.mediaelement.initialize(),wp.playlist&&wp.playlist.initialize(),c.trigger("partial-content-rendered",t),!0},fallback:function(){this.params.fallbackRefresh&&c.requestFullRefresh()}}),c.Placement=s=r.Class.extend({partial:null,container:null,startNode:null,endNode:null,context:null,addedContent:null,removedNodes:null,initialize:function(e){if(!(e=_.extend({},e||{})).partial||!e.partial.extended(t))throw new Error("Missing partial");e.context=e.context||{},e.container&&(e.container=o(e.container)),_.extend(this,e)}}),c.partialConstructor={},c.partial=new r.Values({defaultConstructor:t}),c.getCustomizeQuery=function(){var n={};return r.each(function(e,t){e._dirty&&(n[t]=e())}),{wp_customize:"on",nonce:r.settings.nonce.preview,customize_theme:r.settings.theme.stylesheet,customized:JSON.stringify(n),customize_changeset_uuid:r.settings.changeset.uuid}},c._pendingPartialRequests={},c._debouncedTimeoutId=null,c._currentRequest=null,c.requestFullRefresh=function(){r.preview.send("refresh")},c.requestPartial=function(e){var t;return c._debouncedTimeoutId&&(clearTimeout(c._debouncedTimeoutId),c._debouncedTimeoutId=null),c._currentRequest&&(c._currentRequest.abort(),c._currentRequest=null),(t=c._pendingPartialRequests[e.id])&&"pending"===t.deferred.state()||(t={deferred:o.Deferred(),partial:e},c._pendingPartialRequests[e.id]=t),e=null,c._debouncedTimeoutId=setTimeout(function(){var n,i,e;c._debouncedTimeoutId=null,e=c.getCustomizeQuery(),i={},n={},_.each(c._pendingPartialRequests,function(e,t){i[t]=e.partial.placements(),c.partial.has(t)?n[t]=_.map(i[t],function(e){return e.context||{}}):e.deferred.rejectWith(e.partial,[new Error("partial_removed"),i[t]])}),e.partials=JSON.stringify(n),e[c.data.renderQueryVar]="1",(e=c._currentRequest=wp.ajax.send(null,{data:e,url:r.settings.url.self})).done(function(t){c.trigger("render-partials-response",t),t.errors&&"undefined"!=typeof console&&console.warn&&_.each(t.errors,function(e){console.warn(e)}),_.each(c._pendingPartialRequests,function(n,r){var e;_.isArray(t.contents[r])?(e=_.map(t.contents[r],function(e,t){t=i[r][t];return t?t.addedContent=e:t=new s({partial:n.partial,addedContent:e}),t}),n.deferred.resolveWith(n.partial,[e])):n.deferred.rejectWith(n.partial,[new Error("unrecognized_partial"),i[r]])}),c._pendingPartialRequests={}}),e.fail(function(n,e){"abort"!==e&&(_.each(c._pendingPartialRequests,function(e,t){e.deferred.rejectWith(e.partial,[n,i[t]])}),c._pendingPartialRequests={})})},r.settings.timeouts.selectiveRefresh),t.deferred.promise()},c.addPartials=function(e,a){var t;e=e||document.documentElement,e=o(e),a=_.extend({triggerRendered:!0},a||{}),t=e.find("[data-customize-partial-id]"),(t=e.is("[data-customize-partial-id]")?t.add(e):t).each(function(){var e,t,n,r=o(this),i=r.data("customize-partial-id");i&&(n=r.data("customize-partial-placement-context")||{},(e=c.partial(i))||((t=r.data("customize-partial-options")||{}).constructingContainerContext=r.data("customize-partial-placement-context")||{},e=new(c.partialConstructor[r.data("customize-partial-type")]||c.Partial)(i,t),c.partial.add(e)),a.triggerRendered&&!r.data("customize-partial-content-rendered")&&(i=new s({partial:e,context:n,container:r}),o(i.container).attr("title",c.data.l10n.shiftClickToEdit),e.createEditShortcutForPlacement(i),c.trigger("partial-content-rendered",i)),r.data("customize-partial-content-rendered",!0))})},r.bind("preview-ready",function(){var t,e;_.extend(c.data,_customizePartialRefreshExports),_.each(c.data.partials,function(e,t){var n=c.partial(t);n?_.extend(n.params,e):(n=new(c.partialConstructor[e.type]||c.Partial)(t,_.extend({params:e},e)),c.partial.add(n))}),t=function(t,n){var r=this;c.partial.each(function(e){e.isRelatedSetting(r,t,n)&&e.refresh()})},e=function(e){t.call(e,null,e()),e.unbind(t)},r.bind("add",function(e){t.call(e,e(),null),e.bind(t)}),r.bind("remove",e),r.each(function(e){e.bind(t)}),c.addPartials(document.documentElement,{triggerRendered:!1}),"undefined"!=typeof MutationObserver&&(c.mutationObserver=new MutationObserver(function(e){_.each(e,function(e){c.addPartials(o(e.target))})}),c.mutationObserver.observe(document.documentElement,{childList:!0,subtree:!0})),r.selectiveRefresh.bind("partial-content-rendered",function(e){e.container&&c.addPartials(e.container)}),r.selectiveRefresh.bind("render-partials-response",function(e){e.setting_validities&&r.preview.send("selective-refresh-setting-validities",e.setting_validities)}),r.preview.bind("edit-shortcut-visibility",function(e){r.selectiveRefresh.editShortcutVisibility.set(e)}),r.selectiveRefresh.editShortcutVisibility.bind(function(e){var t=o(document.body),n="hidden"===e&&t.hasClass("customize-partial-edit-shortcuts-shown")&&!t.hasClass("customize-partial-edit-shortcuts-hidden");t.toggleClass("customize-partial-edit-shortcuts-hidden",n),t.toggleClass("customize-partial-edit-shortcuts-shown","visible"===e)}),r.preview.bind("active",function(){c.partial.each(function(e){e.deferred.ready.resolve()}),c.partial.bind("add",function(e){e.deferred.ready.resolve()})})}),c}(jQuery,wp.customize); \ No newline at end of file
diff --git a/wp-includes/js/dist/annotations.js b/wp-includes/js/dist/annotations.js
index fb2becc..6aaf60e 100644
--- a/wp-includes/js/dist/annotations.js
+++ b/wp-includes/js/dist/annotations.js
@@ -402,307 +402,9 @@ function annotations(state = {}, action) {
}
/* harmony default export */ const reducer = (annotations);
-;// CONCATENATED MODULE: ./node_modules/rememo/rememo.js
-
-
-/** @typedef {(...args: any[]) => *[]} GetDependants */
-
-/** @typedef {() => void} Clear */
-
-/**
- * @typedef {{
- * getDependants: GetDependants,
- * clear: Clear
- * }} EnhancedSelector
- */
-
-/**
- * Internal cache entry.
- *
- * @typedef CacheNode
- *
- * @property {?CacheNode|undefined} [prev] Previous node.
- * @property {?CacheNode|undefined} [next] Next node.
- * @property {*[]} args Function arguments for cache entry.
- * @property {*} val Function result.
- */
-
-/**
- * @typedef Cache
- *
- * @property {Clear} clear Function to clear cache.
- * @property {boolean} [isUniqueByDependants] Whether dependants are valid in
- * considering cache uniqueness. A cache is unique if dependents are all arrays
- * or objects.
- * @property {CacheNode?} [head] Cache head.
- * @property {*[]} [lastDependants] Dependants from previous invocation.
- */
-
-/**
- * Arbitrary value used as key for referencing cache object in WeakMap tree.
- *
- * @type {{}}
- */
-var LEAF_KEY = {};
-
-/**
- * Returns the first argument as the sole entry in an array.
- *
- * @template T
- *
- * @param {T} value Value to return.
- *
- * @return {[T]} 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 {Cache} Cache object.
- */
-function createCache() {
- /** @type {Cache} */
- 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 {*[]} a First array.
- * @param {*[]} 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.
- *
- * @template {(...args: *[]) => *} S
- *
- * @param {S} selector Selector function.
- * @param {GetDependants=} getDependants Dependant getter returning an array of
- * references used in cache bust consideration.
- */
-/* harmony default export */ function rememo(selector, getDependants) {
- /** @type {WeakMap<*,*>} */
- var rootCache;
-
- /** @type {GetDependants} */
- var normalizedGetDependants = getDependants ? getDependants : arrayOf;
-
- /**
- * 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 {*[]} dependants Selector dependants.
- *
- * @return {Cache} Cache object.
- */
- function getCache(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);
- }
-
- /**
- * Resets root memoization cache.
- */
- function clear() {
- rootCache = new WeakMap();
- }
-
- /* eslint-disable jsdoc/check-param-names */
- /**
- * The augmented selector call, considering first whether dependants have
- * changed before passing it to underlying memoize function.
- *
- * @param {*} source Source object for derivation.
- * @param {...*} extraArgs Additional arguments to pass to selector.
- *
- * @return {*} Selector result.
- */
- /* eslint-enable jsdoc/check-param-names */
- 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 = normalizedGetDependants.apply(null, args);
- cache = getCache(dependants);
-
- // If not guaranteed uniqueness by dependants (primitive type), 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.
- /** @type {CacheNode} */ (node.prev).next = node.next;
- if (node.next) {
- node.next.prev = node.prev;
- }
-
- node.next = cache.head;
- node.prev = null;
- /** @type {CacheNode} */ (cache.head).prev = node;
- cache.head = node;
- }
-
- // Return immediately
- return node.val;
- }
-
- // No cached value found. Continue to insertion phase:
-
- node = /** @type {CacheNode} */ ({
- // 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 = normalizedGetDependants;
- callSelector.clear = clear;
- clear();
-
- return /** @type {S & EnhancedSelector} */ (callSelector);
-}
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/selectors.js
/**
- * External dependencies
+ * WordPress dependencies
*/
@@ -725,7 +427,7 @@ const EMPTY_ARRAY = [];
*
* @return {Array} The annotations applicable to this block.
*/
-const __experimentalGetAnnotationsForBlock = rememo((state, blockClientId) => {
+const __experimentalGetAnnotationsForBlock = (0,external_wp_data_namespaceObject.createSelector)((state, blockClientId) => {
var _state$blockClientId;
return ((_state$blockClientId = state?.[blockClientId]) !== null && _state$blockClientId !== void 0 ? _state$blockClientId : []).filter(annotation => {
return annotation.selector === 'block';
@@ -751,7 +453,7 @@ function __experimentalGetAllAnnotationsForBlock(state, blockClientId) {
* @param {string} richTextIdentifier Unique identifier that identifies the given RichText.
* @return {Array} All the annotations relevant for the `RichText`.
*/
-const __experimentalGetAnnotationsForRichText = rememo((state, blockClientId, richTextIdentifier) => {
+const __experimentalGetAnnotationsForRichText = (0,external_wp_data_namespaceObject.createSelector)((state, blockClientId, richTextIdentifier) => {
var _state$blockClientId4;
return ((_state$blockClientId4 = state?.[blockClientId]) !== null && _state$blockClientId4 !== void 0 ? _state$blockClientId4 : []).filter(annotation => {
return annotation.selector === 'range' && richTextIdentifier === annotation.richTextIdentifier;
diff --git a/wp-includes/js/dist/annotations.min.js b/wp-includes/js/dist/annotations.min.js
index 8661d7f..8af9556 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 */
-(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{store:()=>G});var n={};e.r(n),e.d(n,{__experimentalGetAllAnnotationsForBlock:()=>N,__experimentalGetAnnotations:()=>O,__experimentalGetAnnotationsForBlock:()=>T,__experimentalGetAnnotationsForRichText:()=>b});var r={};e.r(r),e.d(r,{__experimentalAddAnnotation:()=>S,__experimentalRemoveAnnotation:()=>C,__experimentalRemoveAnnotationsBySource:()=>F,__experimentalUpdateAnnotationRange:()=>P});const o=window.wp.richText,a=window.wp.i18n,i="core/annotations",l="core/annotation",c="annotation-text-";const s={name:l,title:(0,a.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:()=>null,__experimentalGetPropsForEditableTreePreparation:(e,{richTextIdentifier:t,blockClientId:n})=>({annotations:e(i).__experimentalGetAnnotationsForRichText(n,t)}),__experimentalCreatePrepareEditableTree:({annotations:e})=>(t,n)=>{if(0===e.length)return t;let r={formats:t,text:n};return r=function(e,t=[]){return t.forEach((t=>{let{start:n,end:r}=t;n>e.text.length&&(n=e.text.length),r>e.text.length&&(r=e.text.length);const a=c+t.source,i=c+t.id;e=(0,o.applyFormat)(e,{type:l,attributes:{className:a,id:i}},n,r)})),e}(r,e),r.formats},__experimentalGetPropsForEditableTreeChangeHandler:e=>({removeAnnotation:e(i).__experimentalRemoveAnnotation,updateAnnotationRange:e(i).__experimentalUpdateAnnotationRange}),__experimentalCreateOnChangeEditableValue:e=>t=>{const n=function(e){const t={};return e.forEach(((e,n)=>{(e=(e=e||[]).filter((e=>e.type===l))).forEach((e=>{let{id:r}=e.attributes;r=r.replace(c,""),t.hasOwnProperty(r)||(t[r]={start:n}),t[r].end=n+1}))})),t}(t),{removeAnnotation:r,updateAnnotationRange:o,annotations:a}=e;!function(e,t,{removeAnnotation:n,updateAnnotationRange:r}){e.forEach((e=>{const o=t[e.id];if(!o)return void n(e.id);const{start:a,end:i}=e;a===o.start&&i===o.end||r(e.id,o.start,o.end)}))}(a,n,{removeAnnotation:r,updateAnnotationRange:o})}},{name:u,...d}=s;(0,o.registerFormatType)(u,d);const p=window.wp.hooks,f=window.wp.data;function m(e,t){const n=e.filter(t);return e.length===n.length?e:n}(0,p.addFilter)("editor.BlockListBlock","core/annotations",(e=>(0,f.withSelect)(((e,{clientId:t,className:n})=>({className:e(i).__experimentalGetAnnotationsForBlock(t).map((e=>"is-annotated-by-"+e.source)).concat(n).filter(Boolean).join(" ")})))(e)));const g=(e,t)=>Object.entries(e).reduce(((e,[n,r])=>({...e,[n]:t(r)})),{});const h=function(e={},t){var n;switch(t.type){case"ANNOTATION_ADD":const r=t.blockClientId,o={id:t.id,blockClientId:r,richTextIdentifier:t.richTextIdentifier,source:t.source,selector:t.selector,range:t.range};if("range"===o.selector&&!function(e){return"number"==typeof e.start&&"number"==typeof e.end&&e.start<=e.end}(o.range))return e;const a=null!==(n=e?.[r])&&void 0!==n?n:[];return{...e,[r]:[...a,o]};case"ANNOTATION_REMOVE":return g(e,(e=>m(e,(e=>e.id!==t.annotationId))));case"ANNOTATION_UPDATE_RANGE":return g(e,(e=>{let n=!1;const r=e.map((e=>e.id===t.annotationId?(n=!0,{...e,range:{start:t.start,end:t.end}}):e));return n?r:e}));case"ANNOTATION_REMOVE_SOURCE":return g(e,(e=>m(e,(e=>e.source!==t.source))))}return e};var _={};function A(e){return[e]}function v(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function y(e,t){var n,r=t||A;function o(){n=new WeakMap}function a(){var t,o,a,i,l,c=arguments.length;for(i=new Array(c),a=0;a<c;a++)i[a]=arguments[a];for(t=function(e){var t,r,o,a,i,l=n,c=!0;for(t=0;t<e.length;t++){if(!(i=r=e[t])||"object"!=typeof i){c=!1;break}l.has(r)?l=l.get(r):(o=new WeakMap,l.set(r,o),l=o)}return l.has(_)||((a=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=c,l.set(_,a)),l.get(_)}(l=r.apply(null,i)),t.isUniqueByDependants||(t.lastDependants&&!v(l,t.lastDependants,0)&&t.clear(),t.lastDependants=l),o=t.head;o;){if(v(o.args,i,1))return o!==t.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=t.head,o.prev=null,t.head.prev=o,t.head=o),o.val;o=o.next}return o={val:e.apply(null,i)},i[0]=null,o.args=i,t.head&&(t.head.prev=o,o.next=t.head),t.head=o,o.val}return a.getDependants=r,a.clear=o,o(),a}const x=[],T=y(((e,t)=>{var n;return(null!==(n=e?.[t])&&void 0!==n?n:[]).filter((e=>"block"===e.selector))}),((e,t)=>{var n;return[null!==(n=e?.[t])&&void 0!==n?n:x]}));function N(e,t){var n;return null!==(n=e?.[t])&&void 0!==n?n:x}const b=y(((e,t,n)=>{var r;return(null!==(r=e?.[t])&&void 0!==r?r:[]).filter((e=>"range"===e.selector&&n===e.richTextIdentifier)).map((e=>{const{range:t,...n}=e;return{...t,...n}}))}),((e,t)=>{var n;return[null!==(n=e?.[t])&&void 0!==n?n:x]}));function O(e){return Object.values(e).flat()}const I={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let w;const E=new Uint8Array(16);function R(){if(!w&&(w="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!w))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return w(E)}const U=[];for(let e=0;e<256;++e)U.push((e+256).toString(16).slice(1));function D(e,t=0){return U[e[t+0]]+U[e[t+1]]+U[e[t+2]]+U[e[t+3]]+"-"+U[e[t+4]]+U[e[t+5]]+"-"+U[e[t+6]]+U[e[t+7]]+"-"+U[e[t+8]]+U[e[t+9]]+"-"+U[e[t+10]]+U[e[t+11]]+U[e[t+12]]+U[e[t+13]]+U[e[t+14]]+U[e[t+15]]}const k=function(e,t,n){if(I.randomUUID&&!t&&!e)return I.randomUUID();const r=(e=e||{}).random||(e.rng||R)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return D(r)};function S({blockClientId:e,richTextIdentifier:t=null,range:n=null,selector:r="range",source:o="default",id:a=k()}){const i={type:"ANNOTATION_ADD",id:a,blockClientId:e,richTextIdentifier:t,source:o,selector:r};return"range"===r&&(i.range=n),i}function C(e){return{type:"ANNOTATION_REMOVE",annotationId:e}}function P(e,t,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:e,start:t,end:n}}function F(e){return{type:"ANNOTATION_REMOVE_SOURCE",source:e}}const G=(0,f.createReduxStore)(i,{reducer:h,selectors:n,actions:r});(0,f.register)(G),(window.wp=window.wp||{}).annotations=t})(); \ No newline at end of file
+(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{store:()=>C});var n={};t.r(n),t.d(n,{__experimentalGetAllAnnotationsForBlock:()=>x,__experimentalGetAnnotations:()=>N,__experimentalGetAnnotationsForBlock:()=>y,__experimentalGetAnnotationsForRichText:()=>T});var r={};t.r(r),t.d(r,{__experimentalAddAnnotation:()=>R,__experimentalRemoveAnnotation:()=>U,__experimentalRemoveAnnotationsBySource:()=>k,__experimentalUpdateAnnotationRange:()=>S});const o=window.wp.richText,a=window.wp.i18n,i="core/annotations",c="core/annotation",l="annotation-text-";const s={name:c,title:(0,a.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:()=>null,__experimentalGetPropsForEditableTreePreparation:(t,{richTextIdentifier:e,blockClientId:n})=>({annotations:t(i).__experimentalGetAnnotationsForRichText(n,e)}),__experimentalCreatePrepareEditableTree:({annotations:t})=>(e,n)=>{if(0===t.length)return e;let r={formats:e,text:n};return r=function(t,e=[]){return e.forEach((e=>{let{start:n,end:r}=e;n>t.text.length&&(n=t.text.length),r>t.text.length&&(r=t.text.length);const a=l+e.source,i=l+e.id;t=(0,o.applyFormat)(t,{type:c,attributes:{className:a,id:i}},n,r)})),t}(r,t),r.formats},__experimentalGetPropsForEditableTreeChangeHandler:t=>({removeAnnotation:t(i).__experimentalRemoveAnnotation,updateAnnotationRange:t(i).__experimentalUpdateAnnotationRange}),__experimentalCreateOnChangeEditableValue:t=>e=>{const n=function(t){const e={};return t.forEach(((t,n)=>{(t=(t=t||[]).filter((t=>t.type===c))).forEach((t=>{let{id:r}=t.attributes;r=r.replace(l,""),e.hasOwnProperty(r)||(e[r]={start:n}),e[r].end=n+1}))})),e}(e),{removeAnnotation:r,updateAnnotationRange:o,annotations:a}=t;!function(t,e,{removeAnnotation:n,updateAnnotationRange:r}){t.forEach((t=>{const o=e[t.id];if(!o)return void n(t.id);const{start:a,end:i}=t;a===o.start&&i===o.end||r(t.id,o.start,o.end)}))}(a,n,{removeAnnotation:r,updateAnnotationRange:o})}},{name:d,...u}=s;(0,o.registerFormatType)(d,u);const p=window.wp.hooks,m=window.wp.data;function f(t,e){const n=t.filter(e);return t.length===n.length?t:n}(0,p.addFilter)("editor.BlockListBlock","core/annotations",(t=>(0,m.withSelect)(((t,{clientId:e,className:n})=>({className:t(i).__experimentalGetAnnotationsForBlock(e).map((t=>"is-annotated-by-"+t.source)).concat(n).filter(Boolean).join(" ")})))(t)));const _=(t,e)=>Object.entries(t).reduce(((t,[n,r])=>({...t,[n]:e(r)})),{});const A=function(t={},e){var n;switch(e.type){case"ANNOTATION_ADD":const r=e.blockClientId,o={id:e.id,blockClientId:r,richTextIdentifier:e.richTextIdentifier,source:e.source,selector:e.selector,range:e.range};if("range"===o.selector&&!function(t){return"number"==typeof t.start&&"number"==typeof t.end&&t.start<=t.end}(o.range))return t;const a=null!==(n=t?.[r])&&void 0!==n?n:[];return{...t,[r]:[...a,o]};case"ANNOTATION_REMOVE":return _(t,(t=>f(t,(t=>t.id!==e.annotationId))));case"ANNOTATION_UPDATE_RANGE":return _(t,(t=>{let n=!1;const r=t.map((t=>t.id===e.annotationId?(n=!0,{...t,range:{start:e.start,end:e.end}}):t));return n?r:t}));case"ANNOTATION_REMOVE_SOURCE":return _(t,(t=>f(t,(t=>t.source!==e.source))))}return t},g=[],y=(0,m.createSelector)(((t,e)=>{var n;return(null!==(n=t?.[e])&&void 0!==n?n:[]).filter((t=>"block"===t.selector))}),((t,e)=>{var n;return[null!==(n=t?.[e])&&void 0!==n?n:g]}));function x(t,e){var n;return null!==(n=t?.[e])&&void 0!==n?n:g}const T=(0,m.createSelector)(((t,e,n)=>{var r;return(null!==(r=t?.[e])&&void 0!==r?r:[]).filter((t=>"range"===t.selector&&n===t.richTextIdentifier)).map((t=>{const{range:e,...n}=t;return{...e,...n}}))}),((t,e)=>{var n;return[null!==(n=t?.[e])&&void 0!==n?n:g]}));function N(t){return Object.values(t).flat()}const h={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let O;const b=new Uint8Array(16);function I(){if(!O&&(O="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!O))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return O(b)}const v=[];for(let t=0;t<256;++t)v.push((t+256).toString(16).slice(1));function w(t,e=0){return v[t[e+0]]+v[t[e+1]]+v[t[e+2]]+v[t[e+3]]+"-"+v[t[e+4]]+v[t[e+5]]+"-"+v[t[e+6]]+v[t[e+7]]+"-"+v[t[e+8]]+v[t[e+9]]+"-"+v[t[e+10]]+v[t[e+11]]+v[t[e+12]]+v[t[e+13]]+v[t[e+14]]+v[t[e+15]]}const E=function(t,e,n){if(h.randomUUID&&!e&&!t)return h.randomUUID();const r=(t=t||{}).random||(t.rng||I)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(let t=0;t<16;++t)e[n+t]=r[t];return e}return w(r)};function R({blockClientId:t,richTextIdentifier:e=null,range:n=null,selector:r="range",source:o="default",id:a=E()}){const i={type:"ANNOTATION_ADD",id:a,blockClientId:t,richTextIdentifier:e,source:o,selector:r};return"range"===r&&(i.range=n),i}function U(t){return{type:"ANNOTATION_REMOVE",annotationId:t}}function S(t,e,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:t,start:e,end:n}}function k(t){return{type:"ANNOTATION_REMOVE_SOURCE",source:t}}const C=(0,m.createReduxStore)(i,{reducer:A,selectors:n,actions:r});(0,m.register)(C),(window.wp=window.wp||{}).annotations=e})(); \ 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 fdac49e..2fa5426 100644
--- a/wp-includes/js/dist/block-directory.js
+++ b/wp-includes/js/dist/block-directory.js
@@ -90,8 +90,6 @@ __webpack_require__.d(resolvers_namespaceObject, {
getDownloadableBlocks: () => (resolvers_getDownloadableBlocks)
});
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: external ["wp","plugins"]
const external_wp_plugins_namespaceObject = window["wp"]["plugins"];
;// CONCATENATED MODULE: external ["wp","hooks"]
@@ -1349,57 +1347,63 @@ function Icon({
;// CONCATENATED MODULE: external ["wp","primitives"]
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js
-
/**
* WordPress dependencies
*/
-const starFilled = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const starFilled = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const star_filled = (starFilled);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-half.js
-
/**
* WordPress dependencies
*/
-const starHalf = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const starHalf = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const star_half = (starHalf);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js
-
/**
* WordPress dependencies
*/
-const starEmpty = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const starEmpty = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const star_empty = (starEmpty);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/block-ratings/stars.js
-
/**
* WordPress dependencies
*/
+
+
function Stars({
rating
}) {
@@ -1407,64 +1411,63 @@ function Stars({
const fullStarCount = Math.floor(rating);
const halfStarCount = Math.ceil(rating - fullStarCount);
const emptyStarCount = 5 - (fullStarCount + halfStarCount);
- return (0,external_React_namespaceObject.createElement)("span", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
"aria-label": (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: number of stars. */
- (0,external_wp_i18n_namespaceObject.__)('%s out of 5 stars'), stars)
- }, Array.from({
- length: fullStarCount
- }).map((_, i) => (0,external_React_namespaceObject.createElement)(icon, {
- key: `full_stars_${i}`,
- className: "block-directory-block-ratings__star-full",
- icon: star_filled,
- size: 16
- })), Array.from({
- length: halfStarCount
- }).map((_, i) => (0,external_React_namespaceObject.createElement)(icon, {
- key: `half_stars_${i}`,
- className: "block-directory-block-ratings__star-half-full",
- icon: star_half,
- size: 16
- })), Array.from({
- length: emptyStarCount
- }).map((_, i) => (0,external_React_namespaceObject.createElement)(icon, {
- key: `empty_stars_${i}`,
- className: "block-directory-block-ratings__star-empty",
- icon: star_empty,
- size: 16
- })));
+ (0,external_wp_i18n_namespaceObject.__)('%s out of 5 stars'), stars),
+ children: [Array.from({
+ length: fullStarCount
+ }).map((_, i) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icon, {
+ className: "block-directory-block-ratings__star-full",
+ icon: star_filled,
+ size: 16
+ }, `full_stars_${i}`)), Array.from({
+ length: halfStarCount
+ }).map((_, i) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icon, {
+ className: "block-directory-block-ratings__star-half-full",
+ icon: star_half,
+ size: 16
+ }, `half_stars_${i}`)), Array.from({
+ length: emptyStarCount
+ }).map((_, i) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icon, {
+ className: "block-directory-block-ratings__star-empty",
+ icon: star_empty,
+ size: 16
+ }, `empty_stars_${i}`))]
+ });
}
/* harmony default export */ const stars = (Stars);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/block-ratings/index.js
-
/**
* Internal dependencies
*/
+
const BlockRatings = ({
rating
-}) => (0,external_React_namespaceObject.createElement)("span", {
- className: "block-directory-block-ratings"
-}, (0,external_React_namespaceObject.createElement)(stars, {
- rating: rating
-}));
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-directory-block-ratings",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(stars, {
+ rating: rating
+ })
+});
/* harmony default export */ const block_ratings = (BlockRatings);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-icon/index.js
-
/**
* WordPress dependencies
*/
+
function DownloadableBlockIcon({
icon
}) {
const className = 'block-directory-downloadable-block-icon';
- return icon.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/) !== null ? (0,external_React_namespaceObject.createElement)("img", {
+ return icon.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/) !== null ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
className: className,
src: icon,
alt: ""
- }) : (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
className: className,
icon: icon,
showColors: true
@@ -1473,7 +1476,6 @@ function DownloadableBlockIcon({
/* harmony default export */ const downloadable_block_icon = (DownloadableBlockIcon);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-notice/index.js
-
/**
* WordPress dependencies
*/
@@ -1484,6 +1486,8 @@ function DownloadableBlockIcon({
* Internal dependencies
*/
+
+
const DownloadableBlockNotice = ({
block
}) => {
@@ -1491,11 +1495,13 @@ const DownloadableBlockNotice = ({
if (!errorNotice) {
return null;
}
- return (0,external_React_namespaceObject.createElement)("div", {
- className: "block-directory-downloadable-block-notice"
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "block-directory-downloadable-block-notice__content"
- }, errorNotice.message, errorNotice.isFatal ? ' ' + (0,external_wp_i18n_namespaceObject.__)('Try reloading the page.') : null));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-directory-downloadable-block-notice",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-directory-downloadable-block-notice__content",
+ children: [errorNotice.message, errorNotice.isFatal ? ' ' + (0,external_wp_i18n_namespaceObject.__)('Try reloading the page.') : null]
+ })
+ });
};
/* harmony default export */ const downloadable_block_notice = (DownloadableBlockNotice);
@@ -1509,10 +1515,9 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
const {
lock,
unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/block-directory');
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/block-directory');
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-list-item/index.js
-
/**
* WordPress dependencies
*/
@@ -1531,6 +1536,9 @@ const {
+
+
+
const {
CompositeItemV2: CompositeItem
} = unlock(external_wp_components_namespaceObject.privateApis);
@@ -1604,8 +1612,8 @@ function DownloadableBlockListItem({
} else if (isInstalling) {
statusText = (0,external_wp_i18n_namespaceObject.__)('Installing…');
}
- return (0,external_React_namespaceObject.createElement)(CompositeItem, {
- render: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(CompositeItem, {
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
__experimentalIsFocusable: true,
type: "button",
role: "option",
@@ -1624,35 +1632,44 @@ function DownloadableBlockListItem({
tooltipPosition: "top center"
}),
store: composite,
- disabled: isInstalling || !isInstallable
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "block-directory-downloadable-block-list-item__icon"
- }, (0,external_React_namespaceObject.createElement)(downloadable_block_icon, {
- icon: icon,
- title: title
- }), isInstalling ? (0,external_React_namespaceObject.createElement)("span", {
- className: "block-directory-downloadable-block-list-item__spinner"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null)) : (0,external_React_namespaceObject.createElement)(block_ratings, {
- rating: rating
- })), (0,external_React_namespaceObject.createElement)("span", {
- className: "block-directory-downloadable-block-list-item__details"
- }, (0,external_React_namespaceObject.createElement)("span", {
- className: "block-directory-downloadable-block-list-item__title"
- }, (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %1$s: block title, %2$s: author name. */
- (0,external_wp_i18n_namespaceObject.__)('%1$s <span>by %2$s</span>'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title), author), {
- span: (0,external_React_namespaceObject.createElement)("span", {
- className: "block-directory-downloadable-block-list-item__author"
- })
- })), hasNotice ? (0,external_React_namespaceObject.createElement)(downloadable_block_notice, {
- block: item
- }) : (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("span", {
- className: "block-directory-downloadable-block-list-item__desc"
- }, !!statusText ? statusText : (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(description)), isInstallable && !(isInstalled || isInstalling) && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, null, (0,external_wp_i18n_namespaceObject.__)('Install block')))));
+ disabled: isInstalling || !isInstallable,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-directory-downloadable-block-list-item__icon",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(downloadable_block_icon, {
+ icon: icon,
+ title: title
+ }), isInstalling ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-directory-downloadable-block-list-item__spinner",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_ratings, {
+ rating: rating
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
+ className: "block-directory-downloadable-block-list-item__details",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-directory-downloadable-block-list-item__title",
+ children: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %1$s: block title, %2$s: author name. */
+ (0,external_wp_i18n_namespaceObject.__)('%1$s <span>by %2$s</span>'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title), author), {
+ span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-directory-downloadable-block-list-item__author"
+ })
+ })
+ }), hasNotice ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(downloadable_block_notice, {
+ block: item
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-directory-downloadable-block-list-item__desc",
+ children: !!statusText ? statusText : (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(description)
+ }), isInstallable && !(isInstalled || isInstalling) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Install block')
+ })]
+ })]
+ })]
+ });
}
/* harmony default export */ const downloadable_block_list_item = (DownloadableBlockListItem);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-blocks-list/index.js
-
/**
* WordPress dependencies
*/
@@ -1667,6 +1684,7 @@ function DownloadableBlockListItem({
+
const {
CompositeV2: Composite,
useCompositeStoreV2: useCompositeStore
@@ -1684,47 +1702,49 @@ function DownloadableBlocksList({
if (!items.length) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(Composite, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Composite, {
store: composite,
role: "listbox",
className: "block-directory-downloadable-blocks-list",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Blocks available for install')
- }, items.map(item => {
- return (0,external_React_namespaceObject.createElement)(downloadable_block_list_item, {
- key: item.id,
- composite: composite,
- onClick: () => {
- // Check if the block is registered (`getBlockType`
- // will return an object). If so, insert the block.
- // This prevents installing existing plugins.
- if ((0,external_wp_blocks_namespaceObject.getBlockType)(item.name)) {
- onSelect(item);
- } else {
- installBlockType(item).then(success => {
- if (success) {
- onSelect(item);
- }
- });
- }
- onHover(null);
- },
- onHover: onHover,
- item: item
- });
- }));
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Blocks available for install'),
+ children: items.map(item => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(downloadable_block_list_item, {
+ composite: composite,
+ onClick: () => {
+ // Check if the block is registered (`getBlockType`
+ // will return an object). If so, insert the block.
+ // This prevents installing existing plugins.
+ if ((0,external_wp_blocks_namespaceObject.getBlockType)(item.name)) {
+ onSelect(item);
+ } else {
+ installBlockType(item).then(success => {
+ if (success) {
+ onSelect(item);
+ }
+ });
+ }
+ onHover(null);
+ },
+ onHover: onHover,
+ item: item
+ }, item.id);
+ })
+ });
}
/* harmony default export */ const downloadable_blocks_list = (DownloadableBlocksList);
;// CONCATENATED MODULE: external ["wp","a11y"]
const external_wp_a11y_namespaceObject = window["wp"]["a11y"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-blocks-panel/inserter-panel.js
-
/**
* WordPress dependencies
*/
+
+
+
function DownloadableBlocksInserterPanel({
children,
downloadableItems,
@@ -1735,60 +1755,78 @@ function DownloadableBlocksInserterPanel({
(0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of available blocks. */
(0,external_wp_i18n_namespaceObject._n)('%d additional block is available to install.', '%d additional blocks are available to install.', count), count));
}, [count]);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, !hasLocalBlocks && (0,external_React_namespaceObject.createElement)("p", {
- className: "block-directory-downloadable-blocks-panel__no-local"
- }, (0,external_wp_i18n_namespaceObject.__)('No results available from your installed blocks.')), (0,external_React_namespaceObject.createElement)("div", {
- className: "block-editor-inserter__quick-inserter-separator"
- }), (0,external_React_namespaceObject.createElement)("div", {
- className: "block-directory-downloadable-blocks-panel"
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "block-directory-downloadable-blocks-panel__header"
- }, (0,external_React_namespaceObject.createElement)("h2", {
- className: "block-directory-downloadable-blocks-panel__title"
- }, (0,external_wp_i18n_namespaceObject.__)('Available to install')), (0,external_React_namespaceObject.createElement)("p", {
- className: "block-directory-downloadable-blocks-panel__description"
- }, (0,external_wp_i18n_namespaceObject.__)('Select a block to install and add it to your post.'))), children));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [!hasLocalBlocks && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "block-directory-downloadable-blocks-panel__no-local",
+ children: (0,external_wp_i18n_namespaceObject.__)('No results available from your installed blocks.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-inserter__quick-inserter-separator"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-directory-downloadable-blocks-panel",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-directory-downloadable-blocks-panel__header",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ className: "block-directory-downloadable-blocks-panel__title",
+ children: (0,external_wp_i18n_namespaceObject.__)('Available to install')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "block-directory-downloadable-blocks-panel__description",
+ children: (0,external_wp_i18n_namespaceObject.__)('Select a block to install and add it to your post.')
+ })]
+ }), children]
+ })]
+ });
}
/* harmony default export */ const inserter_panel = (DownloadableBlocksInserterPanel);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js
-
/**
* WordPress dependencies
*/
-const blockDefault = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const blockDefault = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const block_default = (blockDefault);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-blocks-panel/no-results.js
-
/**
* WordPress dependencies
*/
+
+
+
function DownloadableBlocksNoResults() {
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("div", {
- className: "block-editor-inserter__no-results"
- }, (0,external_React_namespaceObject.createElement)(icon, {
- className: "block-editor-inserter__no-results-icon",
- icon: block_default
- }), (0,external_React_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('No results found.'))), (0,external_React_namespaceObject.createElement)("div", {
- className: "block-editor-inserter__tips"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Tip, null, (0,external_wp_i18n_namespaceObject.__)('Interested in creating your own block?'), (0,external_React_namespaceObject.createElement)("br", null), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: "https://developer.wordpress.org/block-editor/"
- }, (0,external_wp_i18n_namespaceObject.__)('Get started here'), "."))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-inserter__no-results",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icon, {
+ className: "block-editor-inserter__no-results-icon",
+ icon: block_default
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('No results found.')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-inserter__tips",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Tip, {
+ children: [(0,external_wp_i18n_namespaceObject.__)('Interested in creating your own block?'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("br", {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.ExternalLink, {
+ href: "https://developer.wordpress.org/block-editor/",
+ children: [(0,external_wp_i18n_namespaceObject.__)('Get started here'), "."]
+ })]
+ })
+ })]
+ });
}
/* harmony default export */ const no_results = (DownloadableBlocksNoResults);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-blocks-panel/index.js
-
/**
* WordPress dependencies
*/
@@ -1805,6 +1843,9 @@ function DownloadableBlocksNoResults() {
+
+
+
const EMPTY_ARRAY = [];
const useDownloadableBlocks = filterValue => (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
@@ -1860,35 +1901,41 @@ function DownloadableBlocksPanel({
isLoading
} = useDownloadableBlocks(filterValue);
if (hasPermission === undefined || isLoading || isTyping) {
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, hasPermission && !hasLocalBlocks && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("p", {
- className: "block-directory-downloadable-blocks-panel__no-local"
- }, (0,external_wp_i18n_namespaceObject.__)('No results available from your installed blocks.')), (0,external_React_namespaceObject.createElement)("div", {
- className: "block-editor-inserter__quick-inserter-separator"
- })), (0,external_React_namespaceObject.createElement)("div", {
- className: "block-directory-downloadable-blocks-panel has-blocks-loading"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [hasPermission && !hasLocalBlocks && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "block-directory-downloadable-blocks-panel__no-local",
+ children: (0,external_wp_i18n_namespaceObject.__)('No results available from your installed blocks.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-inserter__quick-inserter-separator"
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-directory-downloadable-blocks-panel has-blocks-loading",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
+ })]
+ });
}
if (false === hasPermission) {
if (!hasLocalBlocks) {
- return (0,external_React_namespaceObject.createElement)(no_results, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(no_results, {});
}
return null;
}
if (downloadableBlocks.length === 0) {
- return hasLocalBlocks ? null : (0,external_React_namespaceObject.createElement)(no_results, null);
+ return hasLocalBlocks ? null : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(no_results, {});
}
- return (0,external_React_namespaceObject.createElement)(inserter_panel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter_panel, {
downloadableItems: downloadableBlocks,
- hasLocalBlocks: hasLocalBlocks
- }, (0,external_React_namespaceObject.createElement)(downloadable_blocks_list, {
- items: downloadableBlocks,
- onSelect: onSelect,
- onHover: onHover
- }));
+ hasLocalBlocks: hasLocalBlocks,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(downloadable_blocks_list, {
+ items: downloadableBlocks,
+ onSelect: onSelect,
+ onHover: onHover
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/plugins/inserter-menu-downloadable-blocks-panel/index.js
-
/**
* WordPress dependencies
*/
@@ -1900,34 +1947,36 @@ function DownloadableBlocksPanel({
* Internal dependencies
*/
+
function InserterMenuDownloadableBlocksPanel() {
const [debouncedFilterValue, setFilterValue] = (0,external_wp_element_namespaceObject.useState)('');
const debouncedSetFilterValue = (0,external_wp_compose_namespaceObject.debounce)(setFilterValue, 400);
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__unstableInserterMenuExtension, null, ({
- onSelect,
- onHover,
- filterValue,
- hasItems
- }) => {
- if (debouncedFilterValue !== filterValue) {
- debouncedSetFilterValue(filterValue);
- }
- if (!debouncedFilterValue) {
- return null;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__unstableInserterMenuExtension, {
+ children: ({
+ onSelect,
+ onHover,
+ filterValue,
+ hasItems
+ }) => {
+ if (debouncedFilterValue !== filterValue) {
+ debouncedSetFilterValue(filterValue);
+ }
+ if (!debouncedFilterValue) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DownloadableBlocksPanel, {
+ onSelect: onSelect,
+ onHover: onHover,
+ filterValue: debouncedFilterValue,
+ hasLocalBlocks: hasItems,
+ isTyping: filterValue !== debouncedFilterValue
+ });
}
- return (0,external_React_namespaceObject.createElement)(DownloadableBlocksPanel, {
- onSelect: onSelect,
- onHover: onHover,
- filterValue: debouncedFilterValue,
- hasLocalBlocks: hasItems,
- isTyping: filterValue !== debouncedFilterValue
- });
});
}
/* harmony default export */ const inserter_menu_downloadable_blocks_panel = (InserterMenuDownloadableBlocksPanel);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/compact-list/index.js
-
/**
* WordPress dependencies
*/
@@ -1937,38 +1986,43 @@ function InserterMenuDownloadableBlocksPanel() {
* Internal dependencies
*/
+
+
function CompactList({
items
}) {
if (!items.length) {
return null;
}
- return (0,external_React_namespaceObject.createElement)("ul", {
- className: "block-directory-compact-list"
- }, items.map(({
- icon,
- id,
- title,
- author
- }) => (0,external_React_namespaceObject.createElement)("li", {
- key: id,
- className: "block-directory-compact-list__item"
- }, (0,external_React_namespaceObject.createElement)(downloadable_block_icon, {
- icon: icon,
- title: title
- }), (0,external_React_namespaceObject.createElement)("div", {
- className: "block-directory-compact-list__item-details"
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "block-directory-compact-list__item-title"
- }, title), (0,external_React_namespaceObject.createElement)("div", {
- className: "block-directory-compact-list__item-author"
- }, (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Name of the block author. */
- (0,external_wp_i18n_namespaceObject.__)('By %s'), author))))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ className: "block-directory-compact-list",
+ children: items.map(({
+ icon,
+ id,
+ title,
+ author
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ className: "block-directory-compact-list__item",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(downloadable_block_icon, {
+ icon: icon,
+ title: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-directory-compact-list__item-details",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-directory-compact-list__item-title",
+ children: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-directory-compact-list__item-author",
+ children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Name of the block author. */
+ (0,external_wp_i18n_namespaceObject.__)('By %s'), author)
+ })]
+ })]
+ }, id))
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/plugins/installed-blocks-pre-publish-panel/index.js
-var _window$wp$editPost;
-
+var _window$wp$editor;
/**
* WordPress dependencies
*/
@@ -1982,31 +2036,34 @@ var _window$wp$editPost;
-// We shouldn't import the edit-post package directly
-// because it would include the wp-edit-post in all pages loading the block-directory script.
+// We shouldn't import the editor package directly
+// because it would include the wp-editor in all pages loading the block-directory script.
+
+
const {
PluginPrePublishPanel
-} = (_window$wp$editPost = window?.wp?.editPost) !== null && _window$wp$editPost !== void 0 ? _window$wp$editPost : {};
+} = (_window$wp$editor = window?.wp?.editor) !== null && _window$wp$editor !== void 0 ? _window$wp$editor : {};
function InstalledBlocksPrePublishPanel() {
const newBlockTypes = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getNewBlockTypes(), []);
if (!newBlockTypes.length) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(PluginPrePublishPanel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(PluginPrePublishPanel, {
icon: block_default,
title: (0,external_wp_i18n_namespaceObject.sprintf)(
// translators: %d: number of blocks (number).
(0,external_wp_i18n_namespaceObject._n)('Added: %d block', 'Added: %d blocks', newBlockTypes.length), newBlockTypes.length),
- initialOpen: true
- }, (0,external_React_namespaceObject.createElement)("p", {
- className: "installed-blocks-pre-publish-panel__copy"
- }, (0,external_wp_i18n_namespaceObject._n)('The following block has been added to your site.', 'The following blocks have been added to your site.', newBlockTypes.length)), (0,external_React_namespaceObject.createElement)(CompactList, {
- items: newBlockTypes
- }));
+ initialOpen: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "installed-blocks-pre-publish-panel__copy",
+ children: (0,external_wp_i18n_namespaceObject._n)('The following block has been added to your site.', 'The following blocks have been added to your site.', newBlockTypes.length)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CompactList, {
+ items: newBlockTypes
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/plugins/get-install-missing/install-button.js
-
/**
* WordPress dependencies
*/
@@ -2020,6 +2077,7 @@ function InstalledBlocksPrePublishPanel() {
* Internal dependencies
*/
+
function InstallButton({
attributes,
block,
@@ -2032,7 +2090,7 @@ function InstallButton({
const {
replaceBlock
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
onClick: () => installBlockType(block).then(success => {
if (success) {
const blockType = (0,external_wp_blocks_namespaceObject.getBlockType)(block.name);
@@ -2042,15 +2100,16 @@ function InstallButton({
}
}
}),
+ __experimentalIsFocusable: true,
disabled: isInstallingBlock,
isBusy: isInstallingBlock,
- variant: "primary"
- }, (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: block name */
- (0,external_wp_i18n_namespaceObject.__)('Install %s'), block.title));
+ variant: "primary",
+ children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: block name */
+ (0,external_wp_i18n_namespaceObject.__)('Install %s'), block.title)
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/plugins/get-install-missing/index.js
-
/**
* WordPress dependencies
*/
@@ -2067,6 +2126,8 @@ function InstallButton({
*/
+
+
const getInstallMissing = OriginalComponent => props => {
const {
originalName
@@ -2091,11 +2152,11 @@ const getInstallMissing = OriginalComponent => props => {
// The user can't install blocks, or the block isn't available for download.
if (!hasPermission || !block) {
- return (0,external_React_namespaceObject.createElement)(OriginalComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OriginalComponent, {
...props
});
}
- return (0,external_React_namespaceObject.createElement)(ModifiedWarning, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ModifiedWarning, {
...props,
originalBlock: block
});
@@ -2127,31 +2188,33 @@ const ModifiedWarning = ({
}, [clientId]);
let messageHTML = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: block name */
(0,external_wp_i18n_namespaceObject.__)('Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely.'), originalBlock.title || originalName);
- const actions = [(0,external_React_namespaceObject.createElement)(InstallButton, {
- key: "install",
+ const actions = [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InstallButton, {
block: originalBlock,
attributes: props.attributes,
clientId: props.clientId
- })];
+ }, "install")];
if (hasContent && hasHTMLBlock) {
messageHTML = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: block name */
(0,external_wp_i18n_namespaceObject.__)('Your site doesn’t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely.'), originalBlock.title || originalName);
- actions.push((0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- key: "convert",
+ actions.push( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
onClick: convertToHTML,
- variant: "tertiary"
- }, (0,external_wp_i18n_namespaceObject.__)('Keep as HTML')));
+ variant: "tertiary",
+ children: (0,external_wp_i18n_namespaceObject.__)('Keep as HTML')
+ }, "convert"));
}
- return (0,external_React_namespaceObject.createElement)("div", {
- ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)()
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, {
- actions: actions
- }, messageHTML), (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, originalUndelimitedContent));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)(),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ actions: actions,
+ children: messageHTML
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
+ children: originalUndelimitedContent
+ })]
+ });
};
/* harmony default export */ const get_install_missing = (getInstallMissing);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/plugins/index.js
-
/**
* WordPress dependencies
*/
@@ -2165,9 +2228,14 @@ const ModifiedWarning = ({
+
+
+
(0,external_wp_plugins_namespaceObject.registerPlugin)('block-directory', {
render() {
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(AutoBlockUninstaller, null), (0,external_React_namespaceObject.createElement)(inserter_menu_downloadable_blocks_panel, null), (0,external_React_namespaceObject.createElement)(InstalledBlocksPrePublishPanel, null));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AutoBlockUninstaller, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter_menu_downloadable_blocks_panel, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InstalledBlocksPrePublishPanel, {})]
+ });
}
});
(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'block-directory/fallback', (settings, name) => {
diff --git a/wp-includes/js/dist/block-directory.min.js b/wp-includes/js/dist/block-directory.min.js
index a35abd6..34bd649 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 */
-(()=>{"use strict";var e={n:t=>{var l=t&&t.__esModule?()=>t.default:()=>t;return e.d(l,{a:l}),l},d:(t,l)=>{for(var n in l)e.o(l,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:l[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{store:()=>W});var l={};e.r(l),e.d(l,{getDownloadableBlocks:()=>g,getErrorNoticeForBlock:()=>h,getErrorNotices:()=>f,getInstalledBlockTypes:()=>w,getNewBlockTypes:()=>_,getUnusedBlockTypes:()=>E,isInstalling:()=>y,isRequestingDownloadableBlocks:()=>b});var n={};e.r(n),e.d(n,{addInstalledBlockType:()=>D,clearErrorNotice:()=>F,fetchDownloadableBlocks:()=>O,installBlockType:()=>A,receiveDownloadableBlocks:()=>C,removeInstalledBlockType:()=>P,setErrorNotice:()=>x,setIsInstalling:()=>M,uninstallBlockType:()=>R});var o={};e.r(o),e.d(o,{getDownloadableBlocks:()=>q});const r=window.React,a=window.wp.plugins,s=window.wp.hooks,c=window.wp.blocks,i=window.wp.data,d=window.wp.element,u=window.wp.editor,m=(0,i.combineReducers)({downloadableBlocks:(e={},t)=>{switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{isRequesting:!0}};case"RECEIVE_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{results:t.downloadableBlocks,isRequesting:!1}}}return e},blockManagement:(e={installedBlockTypes:[],isInstalling:{}},t)=>{switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:[...e.installedBlockTypes,t.item]};case"REMOVE_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:e.installedBlockTypes.filter((e=>e.name!==t.item.name))};case"SET_INSTALLING_BLOCK":return{...e,isInstalling:{...e.isInstalling,[t.blockId]:t.isInstalling}}}return e},errorNotices:(e={},t)=>{switch(t.type){case"SET_ERROR_NOTICE":return{...e,[t.blockId]:{message:t.message,isFatal:t.isFatal}};case"CLEAR_ERROR_NOTICE":const{[t.blockId]:l,...n}=e;return n}return e}}),p=window.wp.blockEditor;function k(e,t=[]){if(!t.length)return!1;if(t.some((({name:t})=>t===e.name)))return!0;for(let l=0;l<t.length;l++)if(k(e,t[l].innerBlocks))return!0;return!1}function b(e,t){var l;return null!==(l=e.downloadableBlocks[t]?.isRequesting)&&void 0!==l&&l}function g(e,t){var l;return null!==(l=e.downloadableBlocks[t]?.results)&&void 0!==l?l:[]}function w(e){return e.blockManagement.installedBlockTypes}const _=(0,i.createRegistrySelector)((e=>t=>{const l=e(p.store).getBlocks();return w(t).filter((e=>k(e,l)))})),E=(0,i.createRegistrySelector)((e=>t=>{const l=e(p.store).getBlocks();return w(t).filter((e=>!k(e,l)))}));function y(e,t){return e.blockManagement.isInstalling[t]||!1}function f(e){return e.errorNotices}function h(e,t){return e.errorNotices[t]}const v=window.wp.i18n,B=window.wp.apiFetch;var N=e.n(B);const I=window.wp.notices,T=window.wp.url,L=e=>new Promise(((t,l)=>{const n=document.createElement(e.nodeName);["id","rel","src","href","type"].forEach((t=>{e[t]&&(n[t]=e[t])})),e.innerHTML&&n.appendChild(document.createTextNode(e.innerHTML)),n.onload=()=>t(!0),n.onerror=()=>l(new Error("Error loading asset.")),document.body.appendChild(n),("link"===n.nodeName.toLowerCase()||"script"===n.nodeName.toLowerCase()&&!n.src)&&t()}));function S(e){if(!e)return!1;const t=e.links["wp:plugin"]||e.links.self;return!(!t||!t.length)&&t[0].href}function O(e){return{type:"FETCH_DOWNLOADABLE_BLOCKS",filterValue:e}}function C(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}const A=e=>async({registry:t,dispatch:l})=>{const{id:n,name:o}=e;let r=!1;l.clearErrorNotice(n);try{l.setIsInstalling(n,!0);const a=S(e);let s={};if(a)await N()({method:"PUT",url:a,data:{status:"active"}});else{s=(await N()({method:"POST",path:"wp/v2/plugins",data:{slug:n,status:"active"}}))._links}l.addInstalledBlockType({...e,links:{...e.links,...s}});const i=["api_version","title","category","parent","icon","description","keywords","attributes","provides_context","uses_context","supports","styles","example","variations"];await N()({path:(0,T.addQueryArgs)(`/wp/v2/block-types/${o}`,{_fields:i})}).catch((()=>{})).then((e=>{e&&(0,c.unstable__bootstrapServerSideBlockDefinitions)({[o]:Object.fromEntries(Object.entries(e).filter((([e])=>i.includes(e))))})})),await async function(){const e=await N()({url:document.location.href,parse:!1}),t=await e.text(),l=(new window.DOMParser).parseFromString(t,"text/html"),n=Array.from(l.querySelectorAll('link[rel="stylesheet"],script')).filter((e=>e.id&&!document.getElementById(e.id)));for(const e of n)await L(e)}();if(!t.select(c.store).getBlockTypes().some((e=>e.name===o)))throw new Error((0,v.__)("Error registering block. Try reloading the page."));t.dispatch(I.store).createInfoNotice((0,v.sprintf)((0,v.__)("Block %s installed and added."),e.title),{speak:!0,type:"snackbar"}),r=!0}catch(e){let o=e.message||(0,v.__)("An error occurred."),r=e instanceof Error;const a={folder_exists:(0,v.__)("This block is already installed. Try reloading the page."),unable_to_connect_to_filesystem:(0,v.__)("Error installing block. You can reload the page and try again.")};a[e.code]&&(r=!0,o=a[e.code]),l.setErrorNotice(n,o,r),t.dispatch(I.store).createErrorNotice(o,{speak:!0,isDismissible:!0})}return l.setIsInstalling(n,!1),r},R=e=>async({registry:t,dispatch:l})=>{try{const t=S(e);await N()({method:"PUT",url:t,data:{status:"inactive"}}),await N()({method:"DELETE",url:t}),l.removeInstalledBlockType(e)}catch(e){t.dispatch(I.store).createErrorNotice(e.message||(0,v.__)("An error occurred."))}};function D(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function P(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}function M(e,t){return{type:"SET_INSTALLING_BLOCK",blockId:e,isInstalling:t}}function x(e,t,l=!1){return{type:"SET_ERROR_NOTICE",blockId:e,message:t,isFatal:l}}function F(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}var V=function(){return V=Object.assign||function(e){for(var t,l=1,n=arguments.length;l<n;l++)for(var o in t=arguments[l])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},V.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function H(e){return e.toLowerCase()}var $=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],j=/[^A-Z0-9]+/gi;function z(e,t,l){return t instanceof RegExp?e.replace(t,l):t.reduce((function(e,t){return e.replace(t,l)}),e)}function K(e,t){var l=e.charAt(0),n=e.substr(1).toLowerCase();return t>0&&l>="0"&&l<="9"?"_"+l+n:""+l.toUpperCase()+n}function U(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var l=t.splitRegexp,n=void 0===l?$:l,o=t.stripRegexp,r=void 0===o?j:o,a=t.transform,s=void 0===a?H:a,c=t.delimiter,i=void 0===c?" ":c,d=z(z(e,n,"$1\0$2"),r,"\0"),u=0,m=d.length;"\0"===d.charAt(u);)u++;for(;"\0"===d.charAt(m-1);)m--;return d.slice(u,m).split("\0").map(s).join(i)}(e,V({delimiter:"",transform:K},t))}function Y(e,t){return 0===t?e.toLowerCase():K(e,t)}const q=e=>async({dispatch:t})=>{if(e)try{t(O(e));const l=await N()({path:`wp/v2/block-directory/search?term=${e}`});t(C(l.map((e=>Object.fromEntries(Object.entries(e).map((([e,t])=>{return[(l=e,void 0===n&&(n={}),U(l,V({transform:Y},n))),t];var l,n}))))),e))}catch{}},G={reducer:m,selectors:l,actions:n,resolvers:o},W=(0,i.createReduxStore)("core/block-directory",G);function Z(){const{uninstallBlockType:e}=(0,i.useDispatch)(W),t=(0,i.useSelect)((e=>{const{isAutosavingPost:t,isSavingPost:l}=e(u.store);return l()&&!t()}),[]),l=(0,i.useSelect)((e=>e(W).getUnusedBlockTypes()),[]);return(0,d.useEffect)((()=>{t&&l.length&&l.forEach((t=>{e(t),(0,c.unregisterBlockType)(t.name)}))}),[t]),null}(0,i.register)(W);const Q=window.wp.compose,J=window.wp.components,X=window.wp.coreData,ee=window.wp.htmlEntities;const te=(0,d.forwardRef)((function({icon:e,size:t=24,...l},n){return(0,d.cloneElement)(e,{width:t,height:t,...l,ref:n})})),le=window.wp.primitives,ne=(0,r.createElement)(le.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(le.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"})),oe=(0,r.createElement)(le.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(le.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"})),re=(0,r.createElement)(le.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(le.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"}));const ae=function({rating:e}){const t=.5*Math.round(e/.5),l=Math.floor(e),n=Math.ceil(e-l),o=5-(l+n);return(0,r.createElement)("span",{"aria-label":(0,v.sprintf)((0,v.__)("%s out of 5 stars"),t)},Array.from({length:l}).map(((e,t)=>(0,r.createElement)(te,{key:`full_stars_${t}`,className:"block-directory-block-ratings__star-full",icon:ne,size:16}))),Array.from({length:n}).map(((e,t)=>(0,r.createElement)(te,{key:`half_stars_${t}`,className:"block-directory-block-ratings__star-half-full",icon:oe,size:16}))),Array.from({length:o}).map(((e,t)=>(0,r.createElement)(te,{key:`empty_stars_${t}`,className:"block-directory-block-ratings__star-empty",icon:re,size:16}))))},se=({rating:e})=>(0,r.createElement)("span",{className:"block-directory-block-ratings"},(0,r.createElement)(ae,{rating:e}));const ce=function({icon:e}){const t="block-directory-downloadable-block-icon";return null!==e.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)?(0,r.createElement)("img",{className:t,src:e,alt:""}):(0,r.createElement)(p.BlockIcon,{className:t,icon:e,showColors:!0})},ie=({block:e})=>{const t=(0,i.useSelect)((t=>t(W).getErrorNoticeForBlock(e.id)),[e]);return t?(0,r.createElement)("div",{className:"block-directory-downloadable-block-notice"},(0,r.createElement)("div",{className:"block-directory-downloadable-block-notice__content"},t.message,t.isFatal?" "+(0,v.__)("Try reloading the page."):null)):null},de=window.wp.privateApis,{lock:ue,unlock:me}=(0,de.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/block-directory"),{CompositeItemV2:pe}=me(J.privateApis);function ke({title:e,rating:t,ratingCount:l},{hasNotice:n,isInstalled:o,isInstalling:r}){const a=.5*Math.round(t/.5);return!o&&n?(0,v.sprintf)("Retry installing %s.",(0,ee.decodeEntities)(e)):o?(0,v.sprintf)("Add %s.",(0,ee.decodeEntities)(e)):r?(0,v.sprintf)("Installing %s.",(0,ee.decodeEntities)(e)):l<1?(0,v.sprintf)("Install %s.",(0,ee.decodeEntities)(e)):(0,v.sprintf)((0,v._n)("Install %1$s. %2$s stars with %3$s review.","Install %1$s. %2$s stars with %3$s reviews.",l),(0,ee.decodeEntities)(e),a,l)}const be=function({composite:e,item:t,onClick:l}){const{author:n,description:o,icon:a,rating:s,title:u}=t,m=!!(0,c.getBlockType)(t.name),{hasNotice:p,isInstalling:k,isInstallable:b}=(0,i.useSelect)((e=>{const{getErrorNoticeForBlock:l,isInstalling:n}=e(W),o=l(t.id),r=o&&o.isFatal;return{hasNotice:!!o,isInstalling:n(t.id),isInstallable:!r}}),[t]);let g="";return m?g=(0,v.__)("Installed!"):k&&(g=(0,v.__)("Installing…")),(0,r.createElement)(pe,{render:(0,r.createElement)(J.Button,{__experimentalIsFocusable:!0,type:"button",role:"option",className:"block-directory-downloadable-block-list-item",isBusy:k,onClick:e=>{e.preventDefault(),l()},label:ke(t,{hasNotice:p,isInstalled:m,isInstalling:k}),showTooltip:!0,tooltipPosition:"top center"}),store:e,disabled:k||!b},(0,r.createElement)("div",{className:"block-directory-downloadable-block-list-item__icon"},(0,r.createElement)(ce,{icon:a,title:u}),k?(0,r.createElement)("span",{className:"block-directory-downloadable-block-list-item__spinner"},(0,r.createElement)(J.Spinner,null)):(0,r.createElement)(se,{rating:s})),(0,r.createElement)("span",{className:"block-directory-downloadable-block-list-item__details"},(0,r.createElement)("span",{className:"block-directory-downloadable-block-list-item__title"},(0,d.createInterpolateElement)((0,v.sprintf)((0,v.__)("%1$s <span>by %2$s</span>"),(0,ee.decodeEntities)(u),n),{span:(0,r.createElement)("span",{className:"block-directory-downloadable-block-list-item__author"})})),p?(0,r.createElement)(ie,{block:t}):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"block-directory-downloadable-block-list-item__desc"},g||(0,ee.decodeEntities)(o)),b&&!(m||k)&&(0,r.createElement)(J.VisuallyHidden,null,(0,v.__)("Install block")))))},{CompositeV2:ge,useCompositeStoreV2:we}=me(J.privateApis),_e=()=>{};const Ee=function({items:e,onHover:t=_e,onSelect:l}){const n=we(),{installBlockType:o}=(0,i.useDispatch)(W);return e.length?(0,r.createElement)(ge,{store:n,role:"listbox",className:"block-directory-downloadable-blocks-list","aria-label":(0,v.__)("Blocks available for install")},e.map((e=>(0,r.createElement)(be,{key:e.id,composite:n,onClick:()=>{(0,c.getBlockType)(e.name)?l(e):o(e).then((t=>{t&&l(e)})),t(null)},onHover:t,item:e})))):null},ye=window.wp.a11y;const fe=function({children:e,downloadableItems:t,hasLocalBlocks:l}){const n=t.length;return(0,d.useEffect)((()=>{(0,ye.speak)((0,v.sprintf)((0,v._n)("%d additional block is available to install.","%d additional blocks are available to install.",n),n))}),[n]),(0,r.createElement)(r.Fragment,null,!l&&(0,r.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},(0,v.__)("No results available from your installed blocks.")),(0,r.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),(0,r.createElement)("div",{className:"block-directory-downloadable-blocks-panel"},(0,r.createElement)("div",{className:"block-directory-downloadable-blocks-panel__header"},(0,r.createElement)("h2",{className:"block-directory-downloadable-blocks-panel__title"},(0,v.__)("Available to install")),(0,r.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},(0,v.__)("Select a block to install and add it to your post."))),e))},he=(0,r.createElement)(le.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(le.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"}));const ve=function(){return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"block-editor-inserter__no-results"},(0,r.createElement)(te,{className:"block-editor-inserter__no-results-icon",icon:he}),(0,r.createElement)("p",null,(0,v.__)("No results found."))),(0,r.createElement)("div",{className:"block-editor-inserter__tips"},(0,r.createElement)(J.Tip,null,(0,v.__)("Interested in creating your own block?"),(0,r.createElement)("br",null),(0,r.createElement)(J.ExternalLink,{href:"https://developer.wordpress.org/block-editor/"},(0,v.__)("Get started here"),"."))))},Be=[],Ne=e=>(0,i.useSelect)((t=>{const{getDownloadableBlocks:l,isRequestingDownloadableBlocks:n,getInstalledBlockTypes:o}=t(W),r=t(X.store).canUser("read","block-directory/search");let a=Be;if(r){a=l(e);const t=o(),n=a.filter((({name:e})=>{const l=t.some((t=>t.name===e)),n=(0,c.getBlockType)(e);return l||!n}));n.length!==a.length&&(a=n),0===a.length&&(a=Be)}return{hasPermission:r,downloadableBlocks:a,isLoading:n(e)}}),[e]);function Ie({onSelect:e,onHover:t,hasLocalBlocks:l,isTyping:n,filterValue:o}){const{hasPermission:a,downloadableBlocks:s,isLoading:c}=Ne(o);return void 0===a||c||n?(0,r.createElement)(r.Fragment,null,a&&!l&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},(0,v.__)("No results available from your installed blocks.")),(0,r.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"})),(0,r.createElement)("div",{className:"block-directory-downloadable-blocks-panel has-blocks-loading"},(0,r.createElement)(J.Spinner,null))):!1===a||0===s.length?l?null:(0,r.createElement)(ve,null):(0,r.createElement)(fe,{downloadableItems:s,hasLocalBlocks:l},(0,r.createElement)(Ee,{items:s,onSelect:e,onHover:t}))}const Te=function(){const[e,t]=(0,d.useState)(""),l=(0,Q.debounce)(t,400);return(0,r.createElement)(p.__unstableInserterMenuExtension,null,(({onSelect:t,onHover:n,filterValue:o,hasItems:a})=>(e!==o&&l(o),e?(0,r.createElement)(Ie,{onSelect:t,onHover:n,filterValue:e,hasLocalBlocks:a,isTyping:o!==e}):null)))};function Le({items:e}){return e.length?(0,r.createElement)("ul",{className:"block-directory-compact-list"},e.map((({icon:e,id:t,title:l,author:n})=>(0,r.createElement)("li",{key:t,className:"block-directory-compact-list__item"},(0,r.createElement)(ce,{icon:e,title:l}),(0,r.createElement)("div",{className:"block-directory-compact-list__item-details"},(0,r.createElement)("div",{className:"block-directory-compact-list__item-title"},l),(0,r.createElement)("div",{className:"block-directory-compact-list__item-author"},(0,v.sprintf)((0,v.__)("By %s"),n))))))):null}var Se;const{PluginPrePublishPanel:Oe}=null!==(Se=window?.wp?.editPost)&&void 0!==Se?Se:{};function Ce(){const e=(0,i.useSelect)((e=>e(W).getNewBlockTypes()),[]);return e.length?(0,r.createElement)(Oe,{icon:he,title:(0,v.sprintf)((0,v._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0},(0,r.createElement)("p",{className:"installed-blocks-pre-publish-panel__copy"},(0,v._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)),(0,r.createElement)(Le,{items:e})):null}function Ae({attributes:e,block:t,clientId:l}){const n=(0,i.useSelect)((e=>e(W).isInstalling(t.id)),[t.id]),{installBlockType:o}=(0,i.useDispatch)(W),{replaceBlock:a}=(0,i.useDispatch)(p.store);return(0,r.createElement)(J.Button,{onClick:()=>o(t).then((n=>{if(n){const n=(0,c.getBlockType)(t.name),[o]=(0,c.parse)(e.originalContent);o&&n&&a(l,(0,c.createBlock)(n.name,o.attributes,o.innerBlocks))}})),disabled:n,isBusy:n,variant:"primary"},(0,v.sprintf)((0,v.__)("Install %s"),t.title))}const Re=({originalBlock:e,...t})=>{const{originalName:l,originalUndelimitedContent:n,clientId:o}=t.attributes,{replaceBlock:a}=(0,i.useDispatch)(p.store),s=()=>{a(t.clientId,(0,c.createBlock)("core/html",{content:n}))},u=!!n,m=(0,i.useSelect)((e=>{const{canInsertBlockType:t,getBlockRootClientId:l}=e(p.store);return t("core/html",l(o))}),[o]);let k=(0,v.sprintf)((0,v.__)("Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely."),e.title||l);const b=[(0,r.createElement)(Ae,{key:"install",block:e,attributes:t.attributes,clientId:t.clientId})];return u&&m&&(k=(0,v.sprintf)((0,v.__)("Your site doesn’t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely."),e.title||l),b.push((0,r.createElement)(J.Button,{key:"convert",onClick:s,variant:"tertiary"},(0,v.__)("Keep as HTML")))),(0,r.createElement)("div",{...(0,p.useBlockProps)()},(0,r.createElement)(p.Warning,{actions:b},k),(0,r.createElement)(d.RawHTML,null,n))},De=e=>t=>{const{originalName:l}=t.attributes,{block:n,hasPermission:o}=(0,i.useSelect)((e=>{const{getDownloadableBlocks:t}=e(W),n=t("block:"+l).filter((({name:e})=>l===e));return{hasPermission:e(X.store).canUser("read","block-directory/search"),block:n.length&&n[0]}}),[l]);return o&&n?(0,r.createElement)(Re,{...t,originalBlock:n}):(0,r.createElement)(e,{...t})};(0,a.registerPlugin)("block-directory",{render:()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Z,null),(0,r.createElement)(Te,null),(0,r.createElement)(Ce,null))}),(0,s.addFilter)("blocks.registerBlockType","block-directory/fallback",((e,t)=>("core/missing"!==t||(e.edit=De(e.edit)),e))),(window.wp=window.wp||{}).blockDirectory=t})(); \ No newline at end of file
+(()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var l in o)e.o(o,l)&&!e.o(t,l)&&Object.defineProperty(t,l,{enumerable:!0,get:o[l]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{store:()=>G});var o={};e.r(o),e.d(o,{getDownloadableBlocks:()=>h,getErrorNoticeForBlock:()=>y,getErrorNotices:()=>f,getInstalledBlockTypes:()=>m,getNewBlockTypes:()=>g,getUnusedBlockTypes:()=>w,isInstalling:()=>_,isRequestingDownloadableBlocks:()=>k});var l={};e.r(l),e.d(l,{addInstalledBlockType:()=>C,clearErrorNotice:()=>P,fetchDownloadableBlocks:()=>T,installBlockType:()=>S,receiveDownloadableBlocks:()=>L,removeInstalledBlockType:()=>A,setErrorNotice:()=>D,setIsInstalling:()=>R,uninstallBlockType:()=>O});var s={};e.r(s),e.d(s,{getDownloadableBlocks:()=>Y});const n=window.wp.plugins,r=window.wp.hooks,i=window.wp.blocks,a=window.wp.data,c=window.wp.element,d=window.wp.editor,u=(0,a.combineReducers)({downloadableBlocks:(e={},t)=>{switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{isRequesting:!0}};case"RECEIVE_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{results:t.downloadableBlocks,isRequesting:!1}}}return e},blockManagement:(e={installedBlockTypes:[],isInstalling:{}},t)=>{switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:[...e.installedBlockTypes,t.item]};case"REMOVE_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:e.installedBlockTypes.filter((e=>e.name!==t.item.name))};case"SET_INSTALLING_BLOCK":return{...e,isInstalling:{...e.isInstalling,[t.blockId]:t.isInstalling}}}return e},errorNotices:(e={},t)=>{switch(t.type){case"SET_ERROR_NOTICE":return{...e,[t.blockId]:{message:t.message,isFatal:t.isFatal}};case"CLEAR_ERROR_NOTICE":const{[t.blockId]:o,...l}=e;return l}return e}}),p=window.wp.blockEditor;function b(e,t=[]){if(!t.length)return!1;if(t.some((({name:t})=>t===e.name)))return!0;for(let o=0;o<t.length;o++)if(b(e,t[o].innerBlocks))return!0;return!1}function k(e,t){var o;return null!==(o=e.downloadableBlocks[t]?.isRequesting)&&void 0!==o&&o}function h(e,t){var o;return null!==(o=e.downloadableBlocks[t]?.results)&&void 0!==o?o:[]}function m(e){return e.blockManagement.installedBlockTypes}const g=(0,a.createRegistrySelector)((e=>t=>{const o=e(p.store).getBlocks();return m(t).filter((e=>b(e,o)))})),w=(0,a.createRegistrySelector)((e=>t=>{const o=e(p.store).getBlocks();return m(t).filter((e=>!b(e,o)))}));function _(e,t){return e.blockManagement.isInstalling[t]||!1}function f(e){return e.errorNotices}function y(e,t){return e.errorNotices[t]}const v=window.wp.i18n,x=window.wp.apiFetch;var j=e.n(x);const B=window.wp.notices,E=window.wp.url,I=e=>new Promise(((t,o)=>{const l=document.createElement(e.nodeName);["id","rel","src","href","type"].forEach((t=>{e[t]&&(l[t]=e[t])})),e.innerHTML&&l.appendChild(document.createTextNode(e.innerHTML)),l.onload=()=>t(!0),l.onerror=()=>o(new Error("Error loading asset.")),document.body.appendChild(l),("link"===l.nodeName.toLowerCase()||"script"===l.nodeName.toLowerCase()&&!l.src)&&t()}));function N(e){if(!e)return!1;const t=e.links["wp:plugin"]||e.links.self;return!(!t||!t.length)&&t[0].href}function T(e){return{type:"FETCH_DOWNLOADABLE_BLOCKS",filterValue:e}}function L(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}const S=e=>async({registry:t,dispatch:o})=>{const{id:l,name:s}=e;let n=!1;o.clearErrorNotice(l);try{o.setIsInstalling(l,!0);const r=N(e);let a={};if(r)await j()({method:"PUT",url:r,data:{status:"active"}});else{a=(await j()({method:"POST",path:"wp/v2/plugins",data:{slug:l,status:"active"}}))._links}o.addInstalledBlockType({...e,links:{...e.links,...a}});const c=["api_version","title","category","parent","icon","description","keywords","attributes","provides_context","uses_context","supports","styles","example","variations"];await j()({path:(0,E.addQueryArgs)(`/wp/v2/block-types/${s}`,{_fields:c})}).catch((()=>{})).then((e=>{e&&(0,i.unstable__bootstrapServerSideBlockDefinitions)({[s]:Object.fromEntries(Object.entries(e).filter((([e])=>c.includes(e))))})})),await async function(){const e=await j()({url:document.location.href,parse:!1}),t=await e.text(),o=(new window.DOMParser).parseFromString(t,"text/html"),l=Array.from(o.querySelectorAll('link[rel="stylesheet"],script')).filter((e=>e.id&&!document.getElementById(e.id)));for(const e of l)await I(e)}();if(!t.select(i.store).getBlockTypes().some((e=>e.name===s)))throw new Error((0,v.__)("Error registering block. Try reloading the page."));t.dispatch(B.store).createInfoNotice((0,v.sprintf)((0,v.__)("Block %s installed and added."),e.title),{speak:!0,type:"snackbar"}),n=!0}catch(e){let s=e.message||(0,v.__)("An error occurred."),n=e instanceof Error;const r={folder_exists:(0,v.__)("This block is already installed. Try reloading the page."),unable_to_connect_to_filesystem:(0,v.__)("Error installing block. You can reload the page and try again.")};r[e.code]&&(n=!0,s=r[e.code]),o.setErrorNotice(l,s,n),t.dispatch(B.store).createErrorNotice(s,{speak:!0,isDismissible:!0})}return o.setIsInstalling(l,!1),n},O=e=>async({registry:t,dispatch:o})=>{try{const t=N(e);await j()({method:"PUT",url:t,data:{status:"inactive"}}),await j()({method:"DELETE",url:t}),o.removeInstalledBlockType(e)}catch(e){t.dispatch(B.store).createErrorNotice(e.message||(0,v.__)("An error occurred."))}};function C(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function A(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}function R(e,t){return{type:"SET_INSTALLING_BLOCK",blockId:e,isInstalling:t}}function D(e,t,o=!1){return{type:"SET_ERROR_NOTICE",blockId:e,message:t,isFatal:o}}function P(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}var M=function(){return M=Object.assign||function(e){for(var t,o=1,l=arguments.length;o<l;o++)for(var s in t=arguments[o])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},M.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function F(e){return e.toLowerCase()}var V=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],H=/[^A-Z0-9]+/gi;function $(e,t,o){return t instanceof RegExp?e.replace(t,o):t.reduce((function(e,t){return e.replace(t,o)}),e)}function z(e,t){var o=e.charAt(0),l=e.substr(1).toLowerCase();return t>0&&o>="0"&&o<="9"?"_"+o+l:""+o.toUpperCase()+l}function K(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var o=t.splitRegexp,l=void 0===o?V:o,s=t.stripRegexp,n=void 0===s?H:s,r=t.transform,i=void 0===r?F:r,a=t.delimiter,c=void 0===a?" ":a,d=$($(e,l,"$1\0$2"),n,"\0"),u=0,p=d.length;"\0"===d.charAt(u);)u++;for(;"\0"===d.charAt(p-1);)p--;return d.slice(u,p).split("\0").map(i).join(c)}(e,M({delimiter:"",transform:z},t))}function U(e,t){return 0===t?e.toLowerCase():z(e,t)}const Y=e=>async({dispatch:t})=>{if(e)try{t(T(e));const o=await j()({path:`wp/v2/block-directory/search?term=${e}`});t(L(o.map((e=>Object.fromEntries(Object.entries(e).map((([e,t])=>{return[(o=e,void 0===l&&(l={}),K(o,M({transform:U},l))),t];var o,l}))))),e))}catch{}},q={reducer:u,selectors:o,actions:l,resolvers:s},G=(0,a.createReduxStore)("core/block-directory",q);function W(){const{uninstallBlockType:e}=(0,a.useDispatch)(G),t=(0,a.useSelect)((e=>{const{isAutosavingPost:t,isSavingPost:o}=e(d.store);return o()&&!t()}),[]),o=(0,a.useSelect)((e=>e(G).getUnusedBlockTypes()),[]);return(0,c.useEffect)((()=>{t&&o.length&&o.forEach((t=>{e(t),(0,i.unregisterBlockType)(t.name)}))}),[t]),null}(0,a.register)(G);const Z=window.wp.compose,J=window.wp.components,Q=window.wp.coreData,X=window.wp.htmlEntities;const ee=(0,c.forwardRef)((function({icon:e,size:t=24,...o},l){return(0,c.cloneElement)(e,{width:t,height:t,...o,ref:l})})),te=window.wp.primitives,oe=window.ReactJSXRuntime,le=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.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"})}),se=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.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"})}),ne=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.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"})});const re=function({rating:e}){const t=.5*Math.round(e/.5),o=Math.floor(e),l=Math.ceil(e-o),s=5-(o+l);return(0,oe.jsxs)("span",{"aria-label":(0,v.sprintf)((0,v.__)("%s out of 5 stars"),t),children:[Array.from({length:o}).map(((e,t)=>(0,oe.jsx)(ee,{className:"block-directory-block-ratings__star-full",icon:le,size:16},`full_stars_${t}`))),Array.from({length:l}).map(((e,t)=>(0,oe.jsx)(ee,{className:"block-directory-block-ratings__star-half-full",icon:se,size:16},`half_stars_${t}`))),Array.from({length:s}).map(((e,t)=>(0,oe.jsx)(ee,{className:"block-directory-block-ratings__star-empty",icon:ne,size:16},`empty_stars_${t}`)))]})},ie=({rating:e})=>(0,oe.jsx)("span",{className:"block-directory-block-ratings",children:(0,oe.jsx)(re,{rating:e})});const ae=function({icon:e}){const t="block-directory-downloadable-block-icon";return null!==e.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)?(0,oe.jsx)("img",{className:t,src:e,alt:""}):(0,oe.jsx)(p.BlockIcon,{className:t,icon:e,showColors:!0})},ce=({block:e})=>{const t=(0,a.useSelect)((t=>t(G).getErrorNoticeForBlock(e.id)),[e]);return t?(0,oe.jsx)("div",{className:"block-directory-downloadable-block-notice",children:(0,oe.jsxs)("div",{className:"block-directory-downloadable-block-notice__content",children:[t.message,t.isFatal?" "+(0,v.__)("Try reloading the page."):null]})}):null},de=window.wp.privateApis,{lock:ue,unlock:pe}=(0,de.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/block-directory"),{CompositeItemV2:be}=pe(J.privateApis);function ke({title:e,rating:t,ratingCount:o},{hasNotice:l,isInstalled:s,isInstalling:n}){const r=.5*Math.round(t/.5);return!s&&l?(0,v.sprintf)("Retry installing %s.",(0,X.decodeEntities)(e)):s?(0,v.sprintf)("Add %s.",(0,X.decodeEntities)(e)):n?(0,v.sprintf)("Installing %s.",(0,X.decodeEntities)(e)):o<1?(0,v.sprintf)("Install %s.",(0,X.decodeEntities)(e)):(0,v.sprintf)((0,v._n)("Install %1$s. %2$s stars with %3$s review.","Install %1$s. %2$s stars with %3$s reviews.",o),(0,X.decodeEntities)(e),r,o)}const he=function({composite:e,item:t,onClick:o}){const{author:l,description:s,icon:n,rating:r,title:d}=t,u=!!(0,i.getBlockType)(t.name),{hasNotice:p,isInstalling:b,isInstallable:k}=(0,a.useSelect)((e=>{const{getErrorNoticeForBlock:o,isInstalling:l}=e(G),s=o(t.id),n=s&&s.isFatal;return{hasNotice:!!s,isInstalling:l(t.id),isInstallable:!n}}),[t]);let h="";return u?h=(0,v.__)("Installed!"):b&&(h=(0,v.__)("Installing…")),(0,oe.jsxs)(be,{render:(0,oe.jsx)(J.Button,{__experimentalIsFocusable:!0,type:"button",role:"option",className:"block-directory-downloadable-block-list-item",isBusy:b,onClick:e=>{e.preventDefault(),o()},label:ke(t,{hasNotice:p,isInstalled:u,isInstalling:b}),showTooltip:!0,tooltipPosition:"top center"}),store:e,disabled:b||!k,children:[(0,oe.jsxs)("div",{className:"block-directory-downloadable-block-list-item__icon",children:[(0,oe.jsx)(ae,{icon:n,title:d}),b?(0,oe.jsx)("span",{className:"block-directory-downloadable-block-list-item__spinner",children:(0,oe.jsx)(J.Spinner,{})}):(0,oe.jsx)(ie,{rating:r})]}),(0,oe.jsxs)("span",{className:"block-directory-downloadable-block-list-item__details",children:[(0,oe.jsx)("span",{className:"block-directory-downloadable-block-list-item__title",children:(0,c.createInterpolateElement)((0,v.sprintf)((0,v.__)("%1$s <span>by %2$s</span>"),(0,X.decodeEntities)(d),l),{span:(0,oe.jsx)("span",{className:"block-directory-downloadable-block-list-item__author"})})}),p?(0,oe.jsx)(ce,{block:t}):(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)("span",{className:"block-directory-downloadable-block-list-item__desc",children:h||(0,X.decodeEntities)(s)}),k&&!(u||b)&&(0,oe.jsx)(J.VisuallyHidden,{children:(0,v.__)("Install block")})]})]})]})},{CompositeV2:me,useCompositeStoreV2:ge}=pe(J.privateApis),we=()=>{};const _e=function({items:e,onHover:t=we,onSelect:o}){const l=ge(),{installBlockType:s}=(0,a.useDispatch)(G);return e.length?(0,oe.jsx)(me,{store:l,role:"listbox",className:"block-directory-downloadable-blocks-list","aria-label":(0,v.__)("Blocks available for install"),children:e.map((e=>(0,oe.jsx)(he,{composite:l,onClick:()=>{(0,i.getBlockType)(e.name)?o(e):s(e).then((t=>{t&&o(e)})),t(null)},onHover:t,item:e},e.id)))}):null},fe=window.wp.a11y;const ye=function({children:e,downloadableItems:t,hasLocalBlocks:o}){const l=t.length;return(0,c.useEffect)((()=>{(0,fe.speak)((0,v.sprintf)((0,v._n)("%d additional block is available to install.","%d additional blocks are available to install.",l),l))}),[l]),(0,oe.jsxs)(oe.Fragment,{children:[!o&&(0,oe.jsx)("p",{className:"block-directory-downloadable-blocks-panel__no-local",children:(0,v.__)("No results available from your installed blocks.")}),(0,oe.jsx)("div",{className:"block-editor-inserter__quick-inserter-separator"}),(0,oe.jsxs)("div",{className:"block-directory-downloadable-blocks-panel",children:[(0,oe.jsxs)("div",{className:"block-directory-downloadable-blocks-panel__header",children:[(0,oe.jsx)("h2",{className:"block-directory-downloadable-blocks-panel__title",children:(0,v.__)("Available to install")}),(0,oe.jsx)("p",{className:"block-directory-downloadable-blocks-panel__description",children:(0,v.__)("Select a block to install and add it to your post.")})]}),e]})]})},ve=(0,oe.jsx)(te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oe.jsx)(te.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"})});const xe=function(){return(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsxs)("div",{className:"block-editor-inserter__no-results",children:[(0,oe.jsx)(ee,{className:"block-editor-inserter__no-results-icon",icon:ve}),(0,oe.jsx)("p",{children:(0,v.__)("No results found.")})]}),(0,oe.jsx)("div",{className:"block-editor-inserter__tips",children:(0,oe.jsxs)(J.Tip,{children:[(0,v.__)("Interested in creating your own block?"),(0,oe.jsx)("br",{}),(0,oe.jsxs)(J.ExternalLink,{href:"https://developer.wordpress.org/block-editor/",children:[(0,v.__)("Get started here"),"."]})]})})]})},je=[],Be=e=>(0,a.useSelect)((t=>{const{getDownloadableBlocks:o,isRequestingDownloadableBlocks:l,getInstalledBlockTypes:s}=t(G),n=t(Q.store).canUser("read","block-directory/search");let r=je;if(n){r=o(e);const t=s(),l=r.filter((({name:e})=>{const o=t.some((t=>t.name===e)),l=(0,i.getBlockType)(e);return o||!l}));l.length!==r.length&&(r=l),0===r.length&&(r=je)}return{hasPermission:n,downloadableBlocks:r,isLoading:l(e)}}),[e]);function Ee({onSelect:e,onHover:t,hasLocalBlocks:o,isTyping:l,filterValue:s}){const{hasPermission:n,downloadableBlocks:r,isLoading:i}=Be(s);return void 0===n||i||l?(0,oe.jsxs)(oe.Fragment,{children:[n&&!o&&(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)("p",{className:"block-directory-downloadable-blocks-panel__no-local",children:(0,v.__)("No results available from your installed blocks.")}),(0,oe.jsx)("div",{className:"block-editor-inserter__quick-inserter-separator"})]}),(0,oe.jsx)("div",{className:"block-directory-downloadable-blocks-panel has-blocks-loading",children:(0,oe.jsx)(J.Spinner,{})})]}):!1===n||0===r.length?o?null:(0,oe.jsx)(xe,{}):(0,oe.jsx)(ye,{downloadableItems:r,hasLocalBlocks:o,children:(0,oe.jsx)(_e,{items:r,onSelect:e,onHover:t})})}const Ie=function(){const[e,t]=(0,c.useState)(""),o=(0,Z.debounce)(t,400);return(0,oe.jsx)(p.__unstableInserterMenuExtension,{children:({onSelect:t,onHover:l,filterValue:s,hasItems:n})=>(e!==s&&o(s),e?(0,oe.jsx)(Ee,{onSelect:t,onHover:l,filterValue:e,hasLocalBlocks:n,isTyping:s!==e}):null)})};function Ne({items:e}){return e.length?(0,oe.jsx)("ul",{className:"block-directory-compact-list",children:e.map((({icon:e,id:t,title:o,author:l})=>(0,oe.jsxs)("li",{className:"block-directory-compact-list__item",children:[(0,oe.jsx)(ae,{icon:e,title:o}),(0,oe.jsxs)("div",{className:"block-directory-compact-list__item-details",children:[(0,oe.jsx)("div",{className:"block-directory-compact-list__item-title",children:o}),(0,oe.jsx)("div",{className:"block-directory-compact-list__item-author",children:(0,v.sprintf)((0,v.__)("By %s"),l)})]})]},t)))}):null}var Te;const{PluginPrePublishPanel:Le}=null!==(Te=window?.wp?.editor)&&void 0!==Te?Te:{};function Se(){const e=(0,a.useSelect)((e=>e(G).getNewBlockTypes()),[]);return e.length?(0,oe.jsxs)(Le,{icon:ve,title:(0,v.sprintf)((0,v._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0,children:[(0,oe.jsx)("p",{className:"installed-blocks-pre-publish-panel__copy",children:(0,v._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)}),(0,oe.jsx)(Ne,{items:e})]}):null}function Oe({attributes:e,block:t,clientId:o}){const l=(0,a.useSelect)((e=>e(G).isInstalling(t.id)),[t.id]),{installBlockType:s}=(0,a.useDispatch)(G),{replaceBlock:n}=(0,a.useDispatch)(p.store);return(0,oe.jsx)(J.Button,{onClick:()=>s(t).then((l=>{if(l){const l=(0,i.getBlockType)(t.name),[s]=(0,i.parse)(e.originalContent);s&&l&&n(o,(0,i.createBlock)(l.name,s.attributes,s.innerBlocks))}})),__experimentalIsFocusable:!0,disabled:l,isBusy:l,variant:"primary",children:(0,v.sprintf)((0,v.__)("Install %s"),t.title)})}const Ce=({originalBlock:e,...t})=>{const{originalName:o,originalUndelimitedContent:l,clientId:s}=t.attributes,{replaceBlock:n}=(0,a.useDispatch)(p.store),r=()=>{n(t.clientId,(0,i.createBlock)("core/html",{content:l}))},d=!!l,u=(0,a.useSelect)((e=>{const{canInsertBlockType:t,getBlockRootClientId:o}=e(p.store);return t("core/html",o(s))}),[s]);let b=(0,v.sprintf)((0,v.__)("Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely."),e.title||o);const k=[(0,oe.jsx)(Oe,{block:e,attributes:t.attributes,clientId:t.clientId},"install")];return d&&u&&(b=(0,v.sprintf)((0,v.__)("Your site doesn’t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely."),e.title||o),k.push((0,oe.jsx)(J.Button,{onClick:r,variant:"tertiary",children:(0,v.__)("Keep as HTML")},"convert"))),(0,oe.jsxs)("div",{...(0,p.useBlockProps)(),children:[(0,oe.jsx)(p.Warning,{actions:k,children:b}),(0,oe.jsx)(c.RawHTML,{children:l})]})},Ae=e=>t=>{const{originalName:o}=t.attributes,{block:l,hasPermission:s}=(0,a.useSelect)((e=>{const{getDownloadableBlocks:t}=e(G),l=t("block:"+o).filter((({name:e})=>o===e));return{hasPermission:e(Q.store).canUser("read","block-directory/search"),block:l.length&&l[0]}}),[o]);return s&&l?(0,oe.jsx)(Ce,{...t,originalBlock:l}):(0,oe.jsx)(e,{...t})};(0,n.registerPlugin)("block-directory",{render:()=>(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)(W,{}),(0,oe.jsx)(Ie,{}),(0,oe.jsx)(Se,{})]})}),(0,r.addFilter)("blocks.registerBlockType","block-directory/fallback",((e,t)=>("core/missing"!==t||(e.edit=Ae(e.edit)),e))),(window.wp=window.wp||{}).blockDirectory=t})(); \ 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 ab7f119..720b7a1 100644
--- a/wp-includes/js/dist/block-editor.js
+++ b/wp-includes/js/dist/block-editor.js
@@ -290,72 +290,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
/***/ }),
-/***/ 5755:
-/***/ ((module, exports) => {
-
-var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/
-/* global define */
-
-(function () {
- 'use strict';
-
- var hasOwn = {}.hasOwnProperty;
- var nativeCodeString = '[native code]';
-
- 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)) {
- if (arg.length) {
- var inner = classNames.apply(null, arg);
- if (inner) {
- classes.push(inner);
- }
- }
- } else if (argType === 'object') {
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
- classes.push(arg.toString());
- continue;
- }
-
- 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 {}
-}());
-
-
-/***/ }),
-
/***/ 6109:
/***/ ((module) => {
@@ -746,598 +680,6 @@ function diffChars(oldStr, newStr, options) {
/***/ }),
-/***/ 1637:
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-"use strict";
-
-
-var util = __webpack_require__(3062);
-
-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;
-
-/***/ }),
-
-/***/ 5428:
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-"use strict";
-
-
-module.exports = __webpack_require__(1637);
-
-/***/ }),
-
-/***/ 3062:
-/***/ ((module) => {
-
-"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);
-
-/***/ }),
-
/***/ 7734:
/***/ ((module) => {
@@ -4836,9 +4178,14 @@ class MapGenerator {
} else if (this.previous().length === 1) {
let prev = this.previous()[0].consumer()
prev.file = this.outputFile()
- this.map = SourceMapGenerator.fromSourceMap(prev)
+ this.map = SourceMapGenerator.fromSourceMap(prev, {
+ ignoreInvalidMapping: true
+ })
} else {
- this.map = new SourceMapGenerator({ file: this.outputFile() })
+ this.map = new SourceMapGenerator({
+ file: this.outputFile(),
+ ignoreInvalidMapping: true
+ })
this.map.addMapping({
generated: { column: 0, line: 1 },
original: { column: 0, line: 1 },
@@ -4861,7 +4208,10 @@ class MapGenerator {
generateString() {
this.css = ''
- this.map = new SourceMapGenerator({ file: this.outputFile() })
+ this.map = new SourceMapGenerator({
+ file: this.outputFile(),
+ ignoreInvalidMapping: true
+ })
let line = 1
let column = 1
@@ -5485,7 +4835,7 @@ class Node {
column: opts.end.column,
line: opts.end.line
}
- } else if (opts.endIndex) {
+ } else if (typeof opts.endIndex === 'number') {
end = this.positionInside(opts.endIndex)
} else if (opts.index) {
end = this.positionInside(opts.index + 1)
@@ -6547,7 +5897,7 @@ let Root = __webpack_require__(9434)
class Processor {
constructor(plugins = []) {
- this.version = '8.4.35'
+ this.version = '8.4.38'
this.plugins = this.normalize(plugins)
}
@@ -8404,6 +7754,7 @@ __webpack_require__.d(__webpack_exports__, {
BlockList: () => (/* reexport */ BlockList),
BlockMover: () => (/* reexport */ block_mover),
BlockNavigationDropdown: () => (/* reexport */ dropdown),
+ BlockPopover: () => (/* reexport */ block_popover),
BlockPreview: () => (/* reexport */ block_preview),
BlockSelectionClearer: () => (/* reexport */ BlockSelectionClearer),
BlockSettingsMenu: () => (/* reexport */ block_settings_menu),
@@ -8446,7 +7797,7 @@ __webpack_require__.d(__webpack_exports__, {
RichTextShortcut: () => (/* reexport */ RichTextShortcut),
RichTextToolbarButton: () => (/* reexport */ RichTextToolbarButton),
SETTINGS_DEFAULTS: () => (/* reexport */ SETTINGS_DEFAULTS),
- SkipToSelectedBlock: () => (/* reexport */ skip_to_selected_block),
+ SkipToSelectedBlock: () => (/* reexport */ SkipToSelectedBlock),
ToolSelector: () => (/* reexport */ tool_selector),
Typewriter: () => (/* reexport */ typewriter),
URLInput: () => (/* reexport */ url_input),
@@ -8508,7 +7859,7 @@ __webpack_require__.d(__webpack_exports__, {
__unstableBlockNameContext: () => (/* reexport */ block_name_context),
__unstableBlockSettingsMenuFirstItem: () => (/* reexport */ block_settings_menu_first_item),
__unstableBlockToolbarLastItem: () => (/* reexport */ block_toolbar_last_item),
- __unstableEditorStyles: () => (/* reexport */ EditorStyles),
+ __unstableEditorStyles: () => (/* reexport */ editor_styles),
__unstableIframe: () => (/* reexport */ iframe),
__unstableInserterMenuExtension: () => (/* reexport */ inserter_menu_extension),
__unstableRichTextInputEvent: () => (/* reexport */ __unstableRichTextInputEvent),
@@ -8546,11 +7897,42 @@ __webpack_require__.d(__webpack_exports__, {
useInnerBlocksProps: () => (/* reexport */ useInnerBlocksProps),
useSetting: () => (/* reexport */ useSetting),
useSettings: () => (/* reexport */ use_settings_useSettings),
+ useZoomOut: () => (/* reexport */ useZoomOut),
withColorContext: () => (/* reexport */ with_color_context),
withColors: () => (/* reexport */ withColors),
withFontSizes: () => (/* reexport */ with_font_sizes)
});
+// NAMESPACE OBJECT: ./node_modules/@wordpress/block-editor/build-module/store/private-selectors.js
+var private_selectors_namespaceObject = {};
+__webpack_require__.r(private_selectors_namespaceObject);
+__webpack_require__.d(private_selectors_namespaceObject, {
+ getAllPatterns: () => (getAllPatterns),
+ getBlockRemovalRules: () => (getBlockRemovalRules),
+ getBlockSettings: () => (getBlockSettings),
+ getBlockWithoutAttributes: () => (getBlockWithoutAttributes),
+ getContentLockingParent: () => (getContentLockingParent),
+ getEnabledBlockParents: () => (getEnabledBlockParents),
+ getEnabledClientIdsTree: () => (getEnabledClientIdsTree),
+ getExpandedBlock: () => (getExpandedBlock),
+ getInserterMediaCategories: () => (getInserterMediaCategories),
+ getLastFocus: () => (getLastFocus),
+ getLastInsertedBlocksClientIds: () => (getLastInsertedBlocksClientIds),
+ getOpenedBlockSettingsMenu: () => (getOpenedBlockSettingsMenu),
+ getPatternBySlug: () => (getPatternBySlug),
+ getRegisteredInserterMediaCategories: () => (getRegisteredInserterMediaCategories),
+ getRemovalPromptData: () => (getRemovalPromptData),
+ getReusableBlocks: () => (getReusableBlocks),
+ getStyleOverrides: () => (getStyleOverrides),
+ getTemporarilyEditingAsBlocks: () => (getTemporarilyEditingAsBlocks),
+ getTemporarilyEditingFocusModeToRevert: () => (getTemporarilyEditingFocusModeToRevert),
+ hasAllowedPatterns: () => (hasAllowedPatterns),
+ isBlockInterfaceHidden: () => (private_selectors_isBlockInterfaceHidden),
+ isBlockSubtreeDisabled: () => (isBlockSubtreeDisabled),
+ isDragging: () => (private_selectors_isDragging),
+ isResolvingPatterns: () => (isResolvingPatterns)
+});
+
// NAMESPACE OBJECT: ./node_modules/@wordpress/block-editor/build-module/store/selectors.js
var selectors_namespaceObject = {};
__webpack_require__.r(selectors_namespaceObject);
@@ -8679,7 +8061,9 @@ __webpack_require__.d(private_actions_namespaceObject, {
clearBlockRemovalPrompt: () => (clearBlockRemovalPrompt),
deleteStyleOverride: () => (deleteStyleOverride),
ensureDefaultBlock: () => (ensureDefaultBlock),
+ expandBlock: () => (expandBlock),
hideBlockInterface: () => (hideBlockInterface),
+ modifyContentLockBlock: () => (modifyContentLockBlock),
privateRemoveBlocks: () => (privateRemoveBlocks),
setBlockRemovalRules: () => (setBlockRemovalRules),
setLastFocus: () => (setLastFocus),
@@ -8692,29 +8076,6 @@ __webpack_require__.d(private_actions_namespaceObject, {
syncDerivedUpdates: () => (syncDerivedUpdates)
});
-// NAMESPACE OBJECT: ./node_modules/@wordpress/block-editor/build-module/store/private-selectors.js
-var private_selectors_namespaceObject = {};
-__webpack_require__.r(private_selectors_namespaceObject);
-__webpack_require__.d(private_selectors_namespaceObject, {
- getAllPatterns: () => (getAllPatterns),
- getBlockRemovalRules: () => (getBlockRemovalRules),
- getBlockSettings: () => (getBlockSettings),
- getBlockWithoutAttributes: () => (getBlockWithoutAttributes),
- getEnabledBlockParents: () => (getEnabledBlockParents),
- getEnabledClientIdsTree: () => (getEnabledClientIdsTree),
- getInserterMediaCategories: () => (getInserterMediaCategories),
- getLastFocus: () => (getLastFocus),
- getLastInsertedBlocksClientIds: () => (getLastInsertedBlocksClientIds),
- getOpenedBlockSettingsMenu: () => (getOpenedBlockSettingsMenu),
- getRegisteredInserterMediaCategories: () => (getRegisteredInserterMediaCategories),
- getRemovalPromptData: () => (getRemovalPromptData),
- getStyleOverrides: () => (getStyleOverrides),
- hasAllowedPatterns: () => (hasAllowedPatterns),
- isBlockInterfaceHidden: () => (private_selectors_isBlockInterfaceHidden),
- isBlockSubtreeDisabled: () => (isBlockSubtreeDisabled),
- isDragging: () => (private_selectors_isDragging)
-});
-
// NAMESPACE OBJECT: ./node_modules/@wordpress/block-editor/build-module/store/actions.js
var actions_namespaceObject = {};
__webpack_require__.r(actions_namespaceObject);
@@ -8788,6 +8149,7 @@ var global_styles_namespaceObject = {};
__webpack_require__.r(global_styles_namespaceObject);
__webpack_require__.d(global_styles_namespaceObject, {
AdvancedPanel: () => (AdvancedPanel),
+ BackgroundPanel: () => (BackgroundPanel),
BorderPanel: () => (BorderPanel),
ColorPanel: () => (ColorPanel),
DimensionsPanel: () => (DimensionsPanel),
@@ -8797,13 +8159,17 @@ __webpack_require__.d(global_styles_namespaceObject, {
TypographyPanel: () => (TypographyPanel),
areGlobalStyleConfigsEqual: () => (areGlobalStyleConfigsEqual),
getBlockCSSSelector: () => (getBlockCSSSelector),
+ getBlockSelectors: () => (getBlockSelectors),
getGlobalStylesChanges: () => (getGlobalStylesChanges),
getLayoutStyles: () => (getLayoutStyles),
+ toStyles: () => (toStyles),
useGlobalSetting: () => (useGlobalSetting),
useGlobalStyle: () => (useGlobalStyle),
+ useGlobalStyleLinks: () => (useGlobalStyleLinks),
useGlobalStylesOutput: () => (useGlobalStylesOutput),
useGlobalStylesOutputWithConfig: () => (useGlobalStylesOutputWithConfig),
useGlobalStylesReset: () => (useGlobalStylesReset),
+ useHasBackgroundPanel: () => (useHasBackgroundPanel),
useHasBorderPanel: () => (useHasBorderPanel),
useHasBorderPanelControls: () => (useHasBorderPanelControls),
useHasColorPanel: () => (useHasColorPanel),
@@ -8814,9 +8180,6 @@ __webpack_require__.d(global_styles_namespaceObject, {
useSettingsForBlockElement: () => (useSettingsForBlockElement)
});
-// EXTERNAL MODULE: external "React"
-var external_React_ = __webpack_require__(1609);
-var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_);
;// CONCATENATED MODULE: external ["wp","blocks"]
const external_wp_blocks_namespaceObject = window["wp"]["blocks"];
;// CONCATENATED MODULE: external ["wp","element"]
@@ -8836,6 +8199,7 @@ const mayDisplayControlsKey = Symbol('mayDisplayControls');
const mayDisplayParentControlsKey = Symbol('mayDisplayParentControls');
const blockEditingModeKey = Symbol('blockEditingMode');
const blockBindingsKey = Symbol('blockBindings');
+const isPreviewModeKey = Symbol('isPreviewMode');
const DEFAULT_BLOCK_EDIT_CONTEXT = {
name: '',
isSelected: false
@@ -9421,12 +8785,14 @@ const withBlockTree = reducer => (state = {}, action) => {
{
const inserterClientIds = getFlattenedClientIds(action.blocks);
newState.tree = new Map(newState.tree);
- action.replacedClientIds.concat(
- // Controlled inner blocks are only removed
- // if the block doesn't move to another position
- // otherwise their content will be lost.
- action.replacedClientIds.filter(clientId => !inserterClientIds[clientId]).map(clientId => 'controlled||' + clientId)).forEach(key => {
- newState.tree.delete(key);
+ action.replacedClientIds.forEach(clientId => {
+ newState.tree.delete(clientId);
+ // Controlled inner blocks are only removed
+ // if the block doesn't move to another position
+ // otherwise their content will be lost.
+ if (!inserterClientIds[clientId]) {
+ newState.tree.delete('controlled||' + clientId);
+ }
});
updateBlockTreeForBlocks(newState, action.blocks);
updateParentInnerBlocksInTree(newState, action.blocks.map(b => b.clientId), false);
@@ -9434,8 +8800,9 @@ const withBlockTree = reducer => (state = {}, action) => {
// If there are no replaced blocks, it means we're removing blocks so we need to update their parent.
const parentsOfRemovedBlocks = [];
for (const clientId of action.clientIds) {
- if (state.parents.get(clientId) !== undefined && (state.parents.get(clientId) === '' || newState.byClientId.get(state.parents.get(clientId)))) {
- parentsOfRemovedBlocks.push(state.parents.get(clientId));
+ const parentId = state.parents.get(clientId);
+ if (parentId !== undefined && (parentId === '' || newState.byClientId.get(parentId))) {
+ parentsOfRemovedBlocks.push(parentId);
}
}
updateParentInnerBlocksInTree(newState, parentsOfRemovedBlocks, true);
@@ -9444,13 +8811,15 @@ const withBlockTree = reducer => (state = {}, action) => {
case 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN':
const parentsOfRemovedBlocks = [];
for (const clientId of action.clientIds) {
- if (state.parents.get(clientId) !== undefined && (state.parents.get(clientId) === '' || newState.byClientId.get(state.parents.get(clientId)))) {
- parentsOfRemovedBlocks.push(state.parents.get(clientId));
+ const parentId = state.parents.get(clientId);
+ if (parentId !== undefined && (parentId === '' || newState.byClientId.get(parentId))) {
+ parentsOfRemovedBlocks.push(parentId);
}
}
newState.tree = new Map(newState.tree);
- action.removedClientIds.concat(action.removedClientIds.map(clientId => 'controlled||' + clientId)).forEach(key => {
- newState.tree.delete(key);
+ action.removedClientIds.forEach(clientId => {
+ newState.tree.delete(clientId);
+ newState.tree.delete('controlled||' + clientId);
});
updateParentInnerBlocksInTree(newState, parentsOfRemovedBlocks, true);
break;
@@ -10458,14 +9827,12 @@ function removalPromptData(state = false, action) {
const {
clientIds,
selectPrevious,
- blockNamesForPrompt,
- messageType
+ message
} = action;
return {
clientIds,
selectPrevious,
- blockNamesForPrompt,
- messageType
+ message
};
case 'CLEAR_BLOCK_REMOVAL_PROMPT':
return false;
@@ -10626,32 +9993,35 @@ function preferences(state = PREFERENCES_DEFAULTS, action) {
switch (action.type) {
case 'INSERT_BLOCKS':
case 'REPLACE_BLOCKS':
- return action.blocks.reduce((prevState, block) => {
- const {
- attributes,
- name: blockName
- } = block;
- let id = blockName;
- // If a block variation match is found change the name to be the same with the
- // one that is used for block variations in the Inserter (`getItemFromVariation`).
- const match = (0,external_wp_data_namespaceObject.select)(external_wp_blocks_namespaceObject.store).getActiveBlockVariation(blockName, attributes);
- if (match?.name) {
- id += '/' + match.name;
- }
- if (blockName === 'core/block') {
- id += '/' + attributes.ref;
- }
- return {
- ...prevState,
- insertUsage: {
- ...prevState.insertUsage,
+ {
+ const nextInsertUsage = action.blocks.reduce((prevUsage, block) => {
+ const {
+ attributes,
+ name: blockName
+ } = block;
+ let id = blockName;
+ // If a block variation match is found change the name to be the same with the
+ // one that is used for block variations in the Inserter (`getItemFromVariation`).
+ const match = (0,external_wp_data_namespaceObject.select)(external_wp_blocks_namespaceObject.store).getActiveBlockVariation(blockName, attributes);
+ if (match?.name) {
+ id += '/' + match.name;
+ }
+ if (blockName === 'core/block') {
+ id += '/' + attributes.ref;
+ }
+ return {
+ ...prevUsage,
[id]: {
time: action.time,
- count: prevState.insertUsage[id] ? prevState.insertUsage[id].count + 1 : 1
+ count: prevUsage[id] ? prevUsage[id].count + 1 : 1
}
- }
+ };
+ }, state.insertUsage);
+ return {
+ ...state,
+ insertUsage: nextInsertUsage
};
- }, state);
+ }
}
return state;
}
@@ -10676,26 +10046,33 @@ const blockListSettings = (state = {}, action) => {
}
case 'UPDATE_BLOCK_LIST_SETTINGS':
{
- const {
- clientId
- } = action;
- if (!action.settings) {
- if (state.hasOwnProperty(clientId)) {
- const {
- [clientId]: removedBlock,
- ...restBlocks
- } = state;
- return restBlocks;
+ const updates = typeof action.clientId === 'string' ? {
+ [action.clientId]: action.settings
+ } : action.clientId;
+
+ // Remove settings that are the same as the current state.
+ for (const clientId in updates) {
+ if (!updates[clientId]) {
+ if (!state[clientId]) {
+ delete updates[clientId];
+ }
+ } else if (es6_default()(state[clientId], updates[clientId])) {
+ delete updates[clientId];
}
- return state;
}
- if (es6_default()(state[clientId], action.settings)) {
+ if (Object.keys(updates).length === 0) {
return state;
}
- return {
+ const merged = {
...state,
- [clientId]: action.settings
+ ...updates
};
+ for (const clientId in updates) {
+ if (!updates[clientId]) {
+ delete merged[clientId];
+ }
+ }
+ return merged;
}
}
return state;
@@ -10798,6 +10175,26 @@ function highlightedBlock(state, action) {
}
/**
+ * Reducer returning current expanded block in the list view.
+ *
+ * @param {string|null} state Current expanded block.
+ * @param {Object} action Dispatched action.
+ *
+ * @return {string|null} Updated state.
+ */
+function expandedBlock(state = null, action) {
+ switch (action.type) {
+ case 'SET_BLOCK_EXPANDED_IN_LIST_VIEW':
+ return action.clientId;
+ case 'SELECT_BLOCK':
+ if (action.clientId !== state) {
+ return null;
+ }
+ }
+ return state;
+}
+
+/**
* Reducer returning the block insertion event list state.
*
* @param {Object} state Current state.
@@ -10971,6 +10368,7 @@ const combinedReducers = (0,external_wp_data_namespaceObject.combineReducers)({
lastFocus,
editorMode,
hasBlockMovingClientId,
+ expandedBlock,
highlightedBlock,
lastBlockInserted,
temporarilyEditingAsBlocks,
@@ -11025,330 +10423,55 @@ function withAutomaticChangeReset(reducer) {
}
/* harmony default export */ const reducer = (withAutomaticChangeReset(combinedReducers));
-;// CONCATENATED MODULE: ./node_modules/rememo/rememo.js
-
-
-/** @typedef {(...args: any[]) => *[]} GetDependants */
-
-/** @typedef {() => void} Clear */
-
-/**
- * @typedef {{
- * getDependants: GetDependants,
- * clear: Clear
- * }} EnhancedSelector
- */
-
-/**
- * Internal cache entry.
- *
- * @typedef CacheNode
- *
- * @property {?CacheNode|undefined} [prev] Previous node.
- * @property {?CacheNode|undefined} [next] Next node.
- * @property {*[]} args Function arguments for cache entry.
- * @property {*} val Function result.
- */
-
-/**
- * @typedef Cache
- *
- * @property {Clear} clear Function to clear cache.
- * @property {boolean} [isUniqueByDependants] Whether dependants are valid in
- * considering cache uniqueness. A cache is unique if dependents are all arrays
- * or objects.
- * @property {CacheNode?} [head] Cache head.
- * @property {*[]} [lastDependants] Dependants from previous invocation.
- */
-
-/**
- * Arbitrary value used as key for referencing cache object in WeakMap tree.
- *
- * @type {{}}
- */
-var LEAF_KEY = {};
-
-/**
- * Returns the first argument as the sole entry in an array.
- *
- * @template T
- *
- * @param {T} value Value to return.
- *
- * @return {[T]} 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 {Cache} Cache object.
- */
-function createCache() {
- /** @type {Cache} */
- 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 {*[]} a First array.
- * @param {*[]} 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.
- *
- * @template {(...args: *[]) => *} S
- *
- * @param {S} selector Selector function.
- * @param {GetDependants=} getDependants Dependant getter returning an array of
- * references used in cache bust consideration.
- */
-/* harmony default export */ function rememo(selector, getDependants) {
- /** @type {WeakMap<*,*>} */
- var rootCache;
-
- /** @type {GetDependants} */
- var normalizedGetDependants = getDependants ? getDependants : arrayOf;
-
- /**
- * 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 {*[]} dependants Selector dependants.
- *
- * @return {Cache} Cache object.
- */
- function getCache(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);
- }
-
- /**
- * Resets root memoization cache.
- */
- function clear() {
- rootCache = new WeakMap();
- }
-
- /* eslint-disable jsdoc/check-param-names */
- /**
- * The augmented selector call, considering first whether dependants have
- * changed before passing it to underlying memoize function.
- *
- * @param {*} source Source object for derivation.
- * @param {...*} extraArgs Additional arguments to pass to selector.
- *
- * @return {*} Selector result.
- */
- /* eslint-enable jsdoc/check-param-names */
- 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 = normalizedGetDependants.apply(null, args);
- cache = getCache(dependants);
-
- // If not guaranteed uniqueness by dependants (primitive type), 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.
- /** @type {CacheNode} */ (node.prev).next = node.next;
- if (node.next) {
- node.next.prev = node.prev;
- }
-
- node.next = cache.head;
- node.prev = null;
- /** @type {CacheNode} */ (cache.head).prev = node;
- cache.head = node;
- }
-
- // Return immediately
- return node.val;
- }
-
- // No cached value found. Continue to insertion phase:
-
- node = /** @type {CacheNode} */ ({
- // 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 = normalizedGetDependants;
- callSelector.clear = clear;
- clear();
-
- return /** @type {S & EnhancedSelector} */ (callSelector);
-}
-
;// CONCATENATED MODULE: external ["wp","primitives"]
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/symbol.js
-
/**
* WordPress dependencies
*/
-const symbol = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const symbol = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
+ })
+});
/* harmony default export */ const library_symbol = (symbol);
;// CONCATENATED MODULE: external ["wp","richText"]
const external_wp_richText_namespaceObject = window["wp"]["richText"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/private-keys.js
+const globalStylesDataKey = Symbol('globalStylesDataKey');
const selectBlockPatternsKey = Symbol('selectBlockPatternsKey');
+const reusableBlocksSelectKey = Symbol('reusableBlocksSelect');
+
+;// CONCATENATED MODULE: external ["wp","privateApis"]
+const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/lock-unlock.js
+/**
+ * WordPress dependencies
+ */
+
+const {
+ lock,
+ unlock
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/block-editor');
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/constants.js
+const STORE_NAME = 'core/block-editor';
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/utils.js
/**
* Internal dependencies
*/
+
+
+const withRootClientIdOptionKey = Symbol('withRootClientId');
const checkAllowList = (list, item, defaultResult = null) => {
if (typeof list === 'boolean') {
return list;
@@ -11382,8 +10505,11 @@ const checkAllowListRecursive = (blocks, allowedBlockTypes) => {
return true;
};
const getAllPatternsDependants = select => state => {
- return [state.settings.__experimentalBlockPatterns, state.settings.__experimentalUserPatternCategories, state.settings.__experimentalReusableBlocks, state.settings[selectBlockPatternsKey]?.(select), state.blockPatterns];
+ return [state.settings.__experimentalBlockPatterns, state.settings.__experimentalUserPatternCategories, state.settings.__experimentalReusableBlocks, state.settings[selectBlockPatternsKey]?.(select), state.blockPatterns, unlock(select(STORE_NAME)).getReusableBlocks()];
};
+function getInsertBlockTypeDependants(state, rootClientId) {
+ return [state.blockListSettings[rootClientId], state.blocks.byClientId.get(rootClientId), state.settings.allowedBlockTypes, state.settings.templateLock, state.blockEditingModes];
+}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/sorting.js
/**
@@ -11437,27 +10563,655 @@ function orderBy(items, field, order = 'asc') {
return items.concat().sort(comparator(field, items, order));
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/constants.js
-const STORE_NAME = 'core/block-editor';
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns-tab/utils.js
+/**
+ * WordPress dependencies
+ */
+
+
+const INSERTER_PATTERN_TYPES = {
+ user: 'user',
+ theme: 'theme',
+ directory: 'directory'
+};
+const INSERTER_SYNC_TYPES = {
+ full: 'fully',
+ unsynced: 'unsynced'
+};
+const allPatternsCategory = {
+ name: 'allPatterns',
+ label: (0,external_wp_i18n_namespaceObject._x)('All', 'patterns')
+};
+const myPatternsCategory = {
+ name: 'myPatterns',
+ label: (0,external_wp_i18n_namespaceObject.__)('My patterns')
+};
+function isPatternFiltered(pattern, sourceFilter, syncFilter) {
+ const isUserPattern = pattern.name.startsWith('core/block');
+ const isDirectoryPattern = pattern.source === 'core' || pattern.source?.startsWith('pattern-directory');
+
+ // If theme source selected, filter out user created patterns and those from
+ // the core patterns directory.
+ if (sourceFilter === INSERTER_PATTERN_TYPES.theme && (isUserPattern || isDirectoryPattern)) {
+ return true;
+ }
+
+ // If the directory source is selected, filter out user created patterns
+ // and those bundled with the theme.
+ if (sourceFilter === INSERTER_PATTERN_TYPES.directory && (isUserPattern || !isDirectoryPattern)) {
+ return true;
+ }
+
+ // If user source selected, filter out theme patterns.
+ if (sourceFilter === INSERTER_PATTERN_TYPES.user && pattern.type !== INSERTER_PATTERN_TYPES.user) {
+ return true;
+ }
+
+ // Filter by sync status.
+ if (syncFilter === INSERTER_SYNC_TYPES.full && pattern.syncStatus !== '') {
+ return true;
+ }
+ if (syncFilter === INSERTER_SYNC_TYPES.unsynced && pattern.syncStatus !== 'unsynced' && isUserPattern) {
+ return true;
+ }
+ return false;
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/object.js
+/**
+ * Immutably sets a value inside an object. Like `lodash#set`, but returning a
+ * new object. Treats nullish initial values as empty objects. Clones any
+ * nested objects. Supports arrays, too.
+ *
+ * @param {Object} object Object to set a value in.
+ * @param {number|string|Array} path Path in the object to modify.
+ * @param {*} value New value to set.
+ * @return {Object} Cloned object with the new value set.
+ */
+function setImmutably(object, path, value) {
+ // Normalize path
+ path = Array.isArray(path) ? [...path] : [path];
+
+ // Shallowly clone the base of the object
+ object = Array.isArray(object) ? [...object] : {
+ ...object
+ };
+ const leaf = path.pop();
+
+ // Traverse object from root to leaf, shallowly cloning at each level
+ let prev = object;
+ for (const key of path) {
+ const lvl = prev[key];
+ prev = prev[key] = Array.isArray(lvl) ? [...lvl] : {
+ ...lvl
+ };
+ }
+ prev[leaf] = value;
+ return object;
+}
+
+/**
+ * Helper util to return a value from a certain path of the object.
+ * Path is specified as either:
+ * - a string of properties, separated by dots, for example: "x.y".
+ * - an array of properties, for example `[ 'x', 'y' ]`.
+ * You can also specify a default value in case the result is nullish.
+ *
+ * @param {Object} object Input object.
+ * @param {string|Array} path Path to the object property.
+ * @param {*} defaultValue Default value if the value at the specified path is nullish.
+ * @return {*} Value of the object property at the specified path.
+ */
+const getValueFromObjectPath = (object, path, defaultValue) => {
+ var _value;
+ const arrayPath = Array.isArray(path) ? path : path.split('.');
+ let value = object;
+ arrayPath.forEach(fieldName => {
+ value = value?.[fieldName];
+ });
+ return (_value = value) !== null && _value !== void 0 ? _value : defaultValue;
+};
-;// CONCATENATED MODULE: external ["wp","privateApis"]
-const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/lock-unlock.js
+/**
+ * Helper util to filter out objects with duplicate values for a given property.
+ *
+ * @param {Object[]} array Array of objects to filter.
+ * @param {string} property Property to filter unique values by.
+ *
+ * @return {Object[]} Array of objects with unique values for the specified property.
+ */
+function uniqByProperty(array, property) {
+ const seen = new Set();
+ return array.filter(item => {
+ const value = item[property];
+ return seen.has(value) ? false : seen.add(value);
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/get-block-settings.js
/**
* WordPress dependencies
*/
-const {
- lock,
- unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/block-editor');
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/selectors.js
+
/**
- * External dependencies
+ * Internal dependencies
+ */
+
+
+const blockedPaths = ['color', 'border', 'dimensions', 'typography', 'spacing'];
+const deprecatedFlags = {
+ 'color.palette': settings => settings.colors,
+ 'color.gradients': settings => settings.gradients,
+ 'color.custom': settings => settings.disableCustomColors === undefined ? undefined : !settings.disableCustomColors,
+ 'color.customGradient': settings => settings.disableCustomGradients === undefined ? undefined : !settings.disableCustomGradients,
+ 'typography.fontSizes': settings => settings.fontSizes,
+ 'typography.customFontSize': settings => settings.disableCustomFontSizes === undefined ? undefined : !settings.disableCustomFontSizes,
+ 'typography.lineHeight': settings => settings.enableCustomLineHeight,
+ 'spacing.units': settings => {
+ if (settings.enableCustomUnits === undefined) {
+ return;
+ }
+ if (settings.enableCustomUnits === true) {
+ return ['px', 'em', 'rem', 'vh', 'vw', '%'];
+ }
+ return settings.enableCustomUnits;
+ },
+ 'spacing.padding': settings => settings.enableCustomSpacing
+};
+const prefixedFlags = {
+ /*
+ * These were only available in the plugin
+ * and can be removed when the minimum WordPress version
+ * for the plugin is 5.9.
+ */
+ 'border.customColor': 'border.color',
+ 'border.customStyle': 'border.style',
+ 'border.customWidth': 'border.width',
+ 'typography.customFontStyle': 'typography.fontStyle',
+ 'typography.customFontWeight': 'typography.fontWeight',
+ 'typography.customLetterSpacing': 'typography.letterSpacing',
+ 'typography.customTextDecorations': 'typography.textDecoration',
+ 'typography.customTextTransforms': 'typography.textTransform',
+ /*
+ * These were part of WordPress 5.8 and we need to keep them.
+ */
+ 'border.customRadius': 'border.radius',
+ 'spacing.customMargin': 'spacing.margin',
+ 'spacing.customPadding': 'spacing.padding',
+ 'typography.customLineHeight': 'typography.lineHeight'
+};
+
+/**
+ * Remove `custom` prefixes for flags that did not land in 5.8.
+ *
+ * This provides continued support for `custom` prefixed properties. It will
+ * be removed once third party devs have had sufficient time to update themes,
+ * plugins, etc.
+ *
+ * @see https://github.com/WordPress/gutenberg/pull/34485
+ *
+ * @param {string} path Path to desired value in settings.
+ * @return {string} The value for defined setting.
*/
+const removeCustomPrefixes = path => {
+ return prefixedFlags[path] || path;
+};
+function getBlockSettings(state, clientId, ...paths) {
+ const blockName = getBlockName(state, clientId);
+ const candidates = [];
+ if (clientId) {
+ let id = clientId;
+ do {
+ const name = getBlockName(state, id);
+ if ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(name, '__experimentalSettings', false)) {
+ candidates.push(id);
+ }
+ } while (id = state.blocks.parents.get(id));
+ }
+ return paths.map(path => {
+ if (blockedPaths.includes(path)) {
+ // eslint-disable-next-line no-console
+ console.warn('Top level useSetting paths are disabled. Please use a subpath to query the information needed.');
+ return undefined;
+ }
+
+ // 0. Allow third parties to filter the block's settings at runtime.
+ let result = (0,external_wp_hooks_namespaceObject.applyFilters)('blockEditor.useSetting.before', undefined, path, clientId, blockName);
+ if (undefined !== result) {
+ return result;
+ }
+ const normalizedPath = removeCustomPrefixes(path);
+ // 1. Take settings from the block instance or its ancestors.
+ // Start from the current block and work our way up the ancestors.
+ for (const candidateClientId of candidates) {
+ var _getValueFromObjectPa;
+ const candidateAtts = getBlockAttributes(state, candidateClientId);
+ result = (_getValueFromObjectPa = getValueFromObjectPath(candidateAtts.settings?.blocks?.[blockName], normalizedPath)) !== null && _getValueFromObjectPa !== void 0 ? _getValueFromObjectPa : getValueFromObjectPath(candidateAtts.settings, normalizedPath);
+ if (result !== undefined) {
+ // Stop the search for more distant ancestors and move on.
+ break;
+ }
+ }
+ // 2. Fall back to the settings from the block editor store (__experimentalFeatures).
+ const settings = getSettings(state);
+ if (result === undefined && blockName) {
+ result = getValueFromObjectPath(settings.__experimentalFeatures?.blocks?.[blockName], normalizedPath);
+ }
+ if (result === undefined) {
+ result = getValueFromObjectPath(settings.__experimentalFeatures, normalizedPath);
+ }
+
+ // Return if the setting was found in either the block instance or the store.
+ if (result !== undefined) {
+ if (external_wp_blocks_namespaceObject.__EXPERIMENTAL_PATHS_WITH_OVERRIDE[normalizedPath]) {
+ var _ref, _result$custom;
+ return (_ref = (_result$custom = result.custom) !== null && _result$custom !== void 0 ? _result$custom : result.theme) !== null && _ref !== void 0 ? _ref : result.default;
+ }
+ return result;
+ }
+
+ // 3. Otherwise, use deprecated settings.
+ const deprecatedSettingsValue = deprecatedFlags[normalizedPath]?.(settings);
+ if (deprecatedSettingsValue !== undefined) {
+ return deprecatedSettingsValue;
+ }
+
+ // 4. Fallback for typography.dropCap:
+ // This is only necessary to support typography.dropCap.
+ // when __experimentalFeatures are not present (core without plugin).
+ // To remove when __experimentalFeatures are ported to core.
+ return normalizedPath === 'typography.dropCap' ? true : undefined;
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/private-selectors.js
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+
+/**
+ * Returns true if the block interface is hidden, or false otherwise.
+ *
+ * @param {Object} state Global application state.
+ *
+ * @return {boolean} Whether the block toolbar is hidden.
+ */
+function private_selectors_isBlockInterfaceHidden(state) {
+ return state.isBlockInterfaceHidden;
+}
+
+/**
+ * Gets the client ids of the last inserted blocks.
+ *
+ * @param {Object} state Global application state.
+ * @return {Array|undefined} Client Ids of the last inserted block(s).
+ */
+function getLastInsertedBlocksClientIds(state) {
+ return state?.lastBlockInserted?.clientIds;
+}
+function getBlockWithoutAttributes(state, clientId) {
+ return state.blocks.byClientId.get(clientId);
+}
+
+/**
+ * Returns true if all of the descendants of a block with the given client ID
+ * have an editing mode of 'disabled', or false otherwise.
+ *
+ * @param {Object} state Global application state.
+ * @param {string} clientId The block client ID.
+ *
+ * @return {boolean} Whether the block descendants are disabled.
+ */
+const isBlockSubtreeDisabled = (state, clientId) => {
+ const isChildSubtreeDisabled = childClientId => {
+ return getBlockEditingMode(state, childClientId) === 'disabled' && getBlockOrder(state, childClientId).every(isChildSubtreeDisabled);
+ };
+ return getBlockOrder(state, clientId).every(isChildSubtreeDisabled);
+};
+function getEnabledClientIdsTreeUnmemoized(state, rootClientId) {
+ const blockOrder = getBlockOrder(state, rootClientId);
+ const result = [];
+ for (const clientId of blockOrder) {
+ const innerBlocks = getEnabledClientIdsTreeUnmemoized(state, clientId);
+ if (getBlockEditingMode(state, clientId) !== 'disabled') {
+ result.push({
+ clientId,
+ innerBlocks
+ });
+ } else {
+ result.push(...innerBlocks);
+ }
+ }
+ return result;
+}
+
+/**
+ * Returns a tree of block objects with only clientID and innerBlocks set.
+ * Blocks with a 'disabled' editing mode are not included.
+ *
+ * @param {Object} state Global application state.
+ * @param {?string} rootClientId Optional root client ID of block list.
+ *
+ * @return {Object[]} Tree of block objects with only clientID and innerBlocks set.
+ */
+const getEnabledClientIdsTree = (0,external_wp_data_namespaceObject.createSelector)(getEnabledClientIdsTreeUnmemoized, state => [state.blocks.order, state.blockEditingModes, state.settings.templateLock, state.blockListSettings]);
+
+/**
+ * Returns a list of a given block's ancestors, from top to bottom. Blocks with
+ * a 'disabled' editing mode are excluded.
+ *
+ * @see getBlockParents
+ *
+ * @param {Object} state Global application state.
+ * @param {string} clientId The block client ID.
+ * @param {boolean} ascending Order results from bottom to top (true) or top
+ * to bottom (false).
+ */
+const getEnabledBlockParents = (0,external_wp_data_namespaceObject.createSelector)((state, clientId, ascending = false) => {
+ return getBlockParents(state, clientId, ascending).filter(parent => getBlockEditingMode(state, parent) !== 'disabled');
+}, state => [state.blocks.parents, state.blockEditingModes, state.settings.templateLock, state.blockListSettings]);
+
+/**
+ * Selector that returns the data needed to display a prompt when certain
+ * blocks are removed, or `false` if no such prompt is requested.
+ *
+ * @param {Object} state Global application state.
+ *
+ * @return {Object|false} Data for removal prompt display, if any.
+ */
+function getRemovalPromptData(state) {
+ return state.removalPromptData;
+}
+
+/**
+ * Returns true if removal prompt exists, or false otherwise.
+ *
+ * @param {Object} state Global application state.
+ *
+ * @return {boolean} Whether removal prompt exists.
+ */
+function getBlockRemovalRules(state) {
+ return state.blockRemovalRules;
+}
+
+/**
+ * Returns the client ID of the block settings menu that is currently open.
+ *
+ * @param {Object} state Global application state.
+ * @return {string|null} The client ID of the block menu that is currently open.
+ */
+function getOpenedBlockSettingsMenu(state) {
+ return state.openedBlockSettingsMenu;
+}
+
+/**
+ * Returns all style overrides, intended to be merged with global editor styles.
+ *
+ * Overrides are sorted to match the order of the blocks they relate to. This
+ * is useful to maintain correct CSS cascade order.
+ *
+ * @param {Object} state Global application state.
+ *
+ * @return {Array} An array of style ID to style override pairs.
+ */
+const getStyleOverrides = (0,external_wp_data_namespaceObject.createSelector)(state => {
+ const clientIds = getClientIdsWithDescendants(state);
+ const clientIdMap = clientIds.reduce((acc, clientId, index) => {
+ acc[clientId] = index;
+ return acc;
+ }, {});
+ return [...state.styleOverrides].sort((overrideA, overrideB) => {
+ var _clientIdMap$clientId, _clientIdMap$clientId2;
+ // Once the overrides Map is spread to an array, the first element
+ // is the key, while the second is the override itself including
+ // the clientId to sort by.
+ const [, {
+ clientId: clientIdA
+ }] = overrideA;
+ const [, {
+ clientId: clientIdB
+ }] = overrideB;
+ const aIndex = (_clientIdMap$clientId = clientIdMap[clientIdA]) !== null && _clientIdMap$clientId !== void 0 ? _clientIdMap$clientId : -1;
+ const bIndex = (_clientIdMap$clientId2 = clientIdMap[clientIdB]) !== null && _clientIdMap$clientId2 !== void 0 ? _clientIdMap$clientId2 : -1;
+ return aIndex - bIndex;
+ });
+}, state => [state.blocks.order, state.styleOverrides]);
+
+/** @typedef {import('./actions').InserterMediaCategory} InserterMediaCategory */
+/**
+ * Returns the registered inserter media categories through the public API.
+ *
+ * @param {Object} state Editor state.
+ *
+ * @return {InserterMediaCategory[]} Inserter media categories.
+ */
+function getRegisteredInserterMediaCategories(state) {
+ return state.registeredInserterMediaCategories;
+}
+
+/**
+ * Returns an array containing the allowed inserter media categories.
+ * It merges the registered media categories from extenders with the
+ * core ones. It also takes into account the allowed `mime_types`, which
+ * can be altered by `upload_mimes` filter and restrict some of them.
+ *
+ * @param {Object} state Global application state.
+ *
+ * @return {InserterMediaCategory[]} Client IDs of descendants.
+ */
+const getInserterMediaCategories = (0,external_wp_data_namespaceObject.createSelector)(state => {
+ const {
+ settings: {
+ inserterMediaCategories,
+ allowedMimeTypes,
+ enableOpenverseMediaCategory
+ },
+ registeredInserterMediaCategories
+ } = state;
+ // The allowed `mime_types` can be altered by `upload_mimes` filter and restrict
+ // some of them. In this case we shouldn't add the category to the available media
+ // categories list in the inserter.
+ if (!inserterMediaCategories && !registeredInserterMediaCategories.length || !allowedMimeTypes) {
+ return;
+ }
+ const coreInserterMediaCategoriesNames = inserterMediaCategories?.map(({
+ name
+ }) => name) || [];
+ const mergedCategories = [...(inserterMediaCategories || []), ...(registeredInserterMediaCategories || []).filter(({
+ name
+ }) => !coreInserterMediaCategoriesNames.includes(name))];
+ return mergedCategories.filter(category => {
+ // Check if Openverse category is enabled.
+ if (!enableOpenverseMediaCategory && category.name === 'openverse') {
+ return false;
+ }
+ return Object.values(allowedMimeTypes).some(mimeType => mimeType.startsWith(`${category.mediaType}/`));
+ });
+}, state => [state.settings.inserterMediaCategories, state.settings.allowedMimeTypes, state.settings.enableOpenverseMediaCategory, state.registeredInserterMediaCategories]);
+
+/**
+ * Returns whether there is at least one allowed pattern for inner blocks children.
+ * This is useful for deferring the parsing of all patterns until needed.
+ *
+ * @param {Object} state Editor state.
+ * @param {string} [rootClientId=null] Target root client ID.
+ *
+ * @return {boolean} If there is at least one allowed pattern.
+ */
+const hasAllowedPatterns = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (0,external_wp_data_namespaceObject.createSelector)((state, rootClientId = null) => {
+ const {
+ getAllPatterns,
+ __experimentalGetParsedPattern
+ } = unlock(select(STORE_NAME));
+ const patterns = getAllPatterns();
+ const {
+ allowedBlockTypes
+ } = getSettings(state);
+ return patterns.some(({
+ name,
+ inserter = true
+ }) => {
+ if (!inserter) {
+ return false;
+ }
+ const {
+ blocks
+ } = __experimentalGetParsedPattern(name);
+ return checkAllowListRecursive(blocks, allowedBlockTypes) && blocks.every(({
+ name: blockName
+ }) => canInsertBlockType(state, blockName, rootClientId));
+ });
+}, (state, rootClientId) => [...getAllPatternsDependants(select)(state), ...getInsertBlockTypeDependants(state, rootClientId)]));
+function mapUserPattern(userPattern, __experimentalUserPatternCategories = []) {
+ return {
+ name: `core/block/${userPattern.id}`,
+ id: userPattern.id,
+ type: INSERTER_PATTERN_TYPES.user,
+ title: userPattern.title.raw,
+ categories: userPattern.wp_pattern_category.map(catId => {
+ const category = __experimentalUserPatternCategories.find(({
+ id
+ }) => id === catId);
+ return category ? category.slug : catId;
+ }),
+ content: userPattern.content.raw,
+ syncStatus: userPattern.wp_pattern_sync_status
+ };
+}
+const getPatternBySlug = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (0,external_wp_data_namespaceObject.createSelector)((state, patternName) => {
+ var _state$settings$__exp, _state$settings$selec;
+ // Only fetch reusable blocks if we know we need them. To do: maybe
+ // use the entity record API to retrieve the block by slug.
+ if (patternName?.startsWith('core/block/')) {
+ const _id = parseInt(patternName.slice('core/block/'.length), 10);
+ const block = unlock(select(STORE_NAME)).getReusableBlocks().find(({
+ id
+ }) => id === _id);
+ if (!block) {
+ return null;
+ }
+ return mapUserPattern(block, state.settings.__experimentalUserPatternCategories);
+ }
+ return [
+ // This setting is left for back compat.
+ ...((_state$settings$__exp = state.settings.__experimentalBlockPatterns) !== null && _state$settings$__exp !== void 0 ? _state$settings$__exp : []), ...((_state$settings$selec = state.settings[selectBlockPatternsKey]?.(select)) !== null && _state$settings$selec !== void 0 ? _state$settings$selec : [])].find(({
+ name
+ }) => name === patternName);
+}, (state, patternName) => patternName?.startsWith('core/block/') ? [unlock(select(STORE_NAME)).getReusableBlocks(), state.settings.__experimentalReusableBlocks] : [state.settings.__experimentalBlockPatterns, state.settings[selectBlockPatternsKey]?.(select)]));
+const getAllPatterns = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (0,external_wp_data_namespaceObject.createSelector)(state => {
+ var _state$settings$__exp2, _state$settings$selec2;
+ return [...unlock(select(STORE_NAME)).getReusableBlocks().map(userPattern => mapUserPattern(userPattern, state.settings.__experimentalUserPatternCategories)),
+ // This setting is left for back compat.
+ ...((_state$settings$__exp2 = state.settings.__experimentalBlockPatterns) !== null && _state$settings$__exp2 !== void 0 ? _state$settings$__exp2 : []), ...((_state$settings$selec2 = state.settings[selectBlockPatternsKey]?.(select)) !== null && _state$settings$selec2 !== void 0 ? _state$settings$selec2 : [])].filter((x, index, arr) => index === arr.findIndex(y => x.name === y.name));
+}, getAllPatternsDependants(select)));
+const isResolvingPatterns = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (0,external_wp_data_namespaceObject.createSelector)(state => {
+ const blockPatternsSelect = state.settings[selectBlockPatternsKey];
+ const reusableBlocksSelect = state.settings[reusableBlocksSelectKey];
+ return (blockPatternsSelect ? blockPatternsSelect(select) === undefined : false) || (reusableBlocksSelect ? reusableBlocksSelect(select) === undefined : false);
+}, getAllPatternsDependants(select)));
+const EMPTY_ARRAY = [];
+const getReusableBlocks = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => state => {
+ var _state$settings$__exp3;
+ const reusableBlocksSelect = state.settings[reusableBlocksSelectKey];
+ return reusableBlocksSelect ? reusableBlocksSelect(select) : (_state$settings$__exp3 = state.settings.__experimentalReusableBlocks) !== null && _state$settings$__exp3 !== void 0 ? _state$settings$__exp3 : EMPTY_ARRAY;
+});
+
+/**
+ * Returns the element of the last element that had focus when focus left the editor canvas.
+ *
+ * @param {Object} state Block editor state.
+ *
+ * @return {Object} Element.
+ */
+function getLastFocus(state) {
+ return state.lastFocus;
+}
+
+/**
+ * Returns true if the user is dragging anything, or false otherwise. It is possible for a
+ * user to be dragging data from outside of the editor, so this selector is separate from
+ * the `isDraggingBlocks` selector which only returns true if the user is dragging blocks.
+ *
+ * @param {Object} state Global application state.
+ *
+ * @return {boolean} Whether user is dragging.
+ */
+function private_selectors_isDragging(state) {
+ return state.isDragging;
+}
+
+/**
+ * Retrieves the expanded block from the state.
+ *
+ * @param {Object} state Block editor state.
+ *
+ * @return {string|null} The client ID of the expanded block, if set.
+ */
+function getExpandedBlock(state) {
+ return state.expandedBlock;
+}
+
+/**
+ * Retrieves the client ID of the ancestor block that is content locking the block
+ * with the provided client ID.
+ *
+ * @param {Object} state Global application state.
+ * @param {Object} clientId Client Id of the block.
+ *
+ * @return {?string} Client ID of the ancestor block that is content locking the block.
+ */
+const getContentLockingParent = (0,external_wp_data_namespaceObject.createSelector)((state, clientId) => {
+ let current = clientId;
+ let result;
+ while (current = state.blocks.parents.get(current)) {
+ if (getBlockName(state, current) === 'core/block' || getTemplateLock(state, current) === 'contentOnly') {
+ result = current;
+ }
+ }
+ return result;
+}, state => [state.blocks.parents, state.blockListSettings]);
+
+/**
+ * Retrieves the client ID of the block that is content locked but is
+ * currently being temporarily edited as a non-locked block.
+ *
+ * @param {Object} state Global application state.
+ *
+ * @return {?string} The client ID of the block being temporarily edited as a non-locked block.
+ */
+function getTemporarilyEditingAsBlocks(state) {
+ return state.temporarilyEditingAsBlocks;
+}
+
+/**
+ * Returns the focus mode that should be reapplied when the user stops editing
+ * a content locked blocks as a block without locking.
+ *
+ * @param {Object} state Global application state.
+ *
+ * @return {?string} The focus mode that should be re-set when temporarily editing as blocks stops.
+ */
+function getTemporarilyEditingFocusModeToRevert(state) {
+ return state.temporarilyEditingFocusModeRevert;
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/selectors.js
/**
* WordPress dependencies
*/
@@ -11477,6 +11231,7 @@ const {
+
/**
* A block selection object.
*
@@ -11502,7 +11257,7 @@ const MILLISECONDS_PER_WEEK = 7 * 24 * 3600 * 1000;
*
* @type {Array}
*/
-const EMPTY_ARRAY = [];
+const selectors_EMPTY_ARRAY = [];
/**
* Shared reference to an empty Set for cases where it is important to avoid
@@ -11514,6 +11269,7 @@ const EMPTY_ARRAY = [];
* @type {Set}
*/
const EMPTY_SET = new Set();
+const EMPTY_OBJECT = {};
/**
* Returns a block's name given its client ID, or null if no block exists with
@@ -11594,7 +11350,7 @@ function getBlock(state, clientId) {
}
return state.blocks.tree.get(clientId);
}
-const __unstableGetBlockWithoutInnerBlocks = rememo((state, clientId) => {
+const __unstableGetBlockWithoutInnerBlocks = (0,external_wp_data_namespaceObject.createSelector)((state, clientId) => {
const block = state.blocks.byClientId.get(clientId);
if (!block) {
return null;
@@ -11617,7 +11373,7 @@ const __unstableGetBlockWithoutInnerBlocks = rememo((state, clientId) => {
*/
function getBlocks(state, rootClientId) {
const treeKey = !rootClientId || !areInnerBlocksControlled(state, rootClientId) ? rootClientId || '' : 'controlled||' + rootClientId;
- return state.blocks.tree.get(treeKey)?.innerBlocks || EMPTY_ARRAY;
+ return state.blocks.tree.get(treeKey)?.innerBlocks || selectors_EMPTY_ARRAY;
}
/**
@@ -11631,7 +11387,7 @@ function getBlocks(state, rootClientId) {
*
* @return {Object} Client IDs of the post blocks.
*/
-const __unstableGetClientIdWithClientIdsTree = rememo((state, clientId) => {
+const __unstableGetClientIdWithClientIdsTree = (0,external_wp_data_namespaceObject.createSelector)((state, clientId) => {
external_wp_deprecated_default()("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree", {
since: '6.3',
version: '6.5'
@@ -11654,7 +11410,7 @@ const __unstableGetClientIdWithClientIdsTree = rememo((state, clientId) => {
*
* @return {Object[]} Client IDs of the post blocks.
*/
-const __unstableGetClientIdsTree = rememo((state, rootClientId = '') => {
+const __unstableGetClientIdsTree = (0,external_wp_data_namespaceObject.createSelector)((state, rootClientId = '') => {
external_wp_deprecated_default()("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree", {
since: '6.3',
version: '6.5'
@@ -11672,7 +11428,7 @@ const __unstableGetClientIdsTree = rememo((state, rootClientId = '') => {
*
* @return {Array} Client IDs of descendants.
*/
-const getClientIdsOfDescendants = rememo((state, rootIds) => {
+const getClientIdsOfDescendants = (0,external_wp_data_namespaceObject.createSelector)((state, rootIds) => {
rootIds = Array.isArray(rootIds) ? [...rootIds] : [rootIds];
const ids = [];
@@ -11717,7 +11473,7 @@ const getClientIdsWithDescendants = state => getClientIdsOfDescendants(state, ''
*
* @return {number} Number of blocks in the post, or number of blocks with name equal to blockName.
*/
-const getGlobalBlockCount = rememo((state, blockName) => {
+const getGlobalBlockCount = (0,external_wp_data_namespaceObject.createSelector)((state, blockName) => {
const clientIds = getClientIdsWithDescendants(state);
if (!blockName) {
return clientIds.length;
@@ -11740,9 +11496,9 @@ const getGlobalBlockCount = rememo((state, blockName) => {
*
* @return {Array} Array of clientIds of blocks with name equal to blockName.
*/
-const getBlocksByName = rememo((state, blockName) => {
+const getBlocksByName = (0,external_wp_data_namespaceObject.createSelector)((state, blockName) => {
if (!blockName) {
- return EMPTY_ARRAY;
+ return selectors_EMPTY_ARRAY;
}
const blockNames = Array.isArray(blockName) ? blockName : [blockName];
const clientIds = getClientIdsWithDescendants(state);
@@ -11750,7 +11506,7 @@ const getBlocksByName = rememo((state, blockName) => {
const block = state.blocks.byClientId.get(clientId);
return blockNames.includes(block.name);
});
- return foundBlocks.length > 0 ? foundBlocks : EMPTY_ARRAY;
+ return foundBlocks.length > 0 ? foundBlocks : selectors_EMPTY_ARRAY;
}, state => [state.blocks.order, state.blocks.byClientId]);
/**
@@ -11780,7 +11536,7 @@ function __experimentalGetGlobalBlocksByName(state, blockName) {
*
* @return {WPBlock[]} Block objects.
*/
-const getBlocksByClientId = rememo((state, clientIds) => (Array.isArray(clientIds) ? clientIds : [clientIds]).map(clientId => getBlock(state, clientId)), (state, clientIds) => (Array.isArray(clientIds) ? clientIds : [clientIds]).map(clientId => state.blocks.tree.get(clientId)));
+const getBlocksByClientId = (0,external_wp_data_namespaceObject.createSelector)((state, clientIds) => (Array.isArray(clientIds) ? clientIds : [clientIds]).map(clientId => getBlock(state, clientId)), (state, clientIds) => (Array.isArray(clientIds) ? clientIds : [clientIds]).map(clientId => state.blocks.tree.get(clientId)));
/**
* Given an array of block client IDs, returns the corresponding array of block
@@ -11791,7 +11547,7 @@ const getBlocksByClientId = rememo((state, clientIds) => (Array.isArray(clientId
*
* @return {string[]} Block names.
*/
-const getBlockNamesByClientId = rememo((state, clientIds) => getBlocksByClientId(state, clientIds).filter(Boolean).map(block => block.name), (state, clientIds) => getBlocksByClientId(state, clientIds));
+const getBlockNamesByClientId = (0,external_wp_data_namespaceObject.createSelector)((state, clientIds) => getBlocksByClientId(state, clientIds).filter(Boolean).map(block => block.name), (state, clientIds) => getBlocksByClientId(state, clientIds));
/**
* Returns the number of blocks currently present in the post.
@@ -11943,14 +11699,14 @@ function getBlockRootClientId(state, clientId) {
*
* @return {Array} ClientIDs of the parent blocks.
*/
-const getBlockParents = rememo((state, clientId, ascending = false) => {
+const getBlockParents = (0,external_wp_data_namespaceObject.createSelector)((state, clientId, ascending = false) => {
const parents = [];
let current = clientId;
while (current = state.blocks.parents.get(current)) {
parents.push(current);
}
if (!parents.length) {
- return EMPTY_ARRAY;
+ return selectors_EMPTY_ARRAY;
}
return ascending ? parents : parents.reverse();
}, state => [state.blocks.parents]);
@@ -11969,7 +11725,7 @@ const getBlockParents = rememo((state, clientId, ascending = false) => {
*
* @return {Array} ClientIDs of the parent blocks.
*/
-const getBlockParentsByBlockName = rememo((state, clientId, blockName, ascending = false) => {
+const getBlockParentsByBlockName = (0,external_wp_data_namespaceObject.createSelector)((state, clientId, blockName, ascending = false) => {
const parents = getBlockParents(state, clientId, ascending);
const hasName = Array.isArray(blockName) ? name => blockName.includes(name) : name => blockName === name;
return parents.filter(id => hasName(getBlockName(state, id)));
@@ -12129,13 +11885,13 @@ function getSelectedBlocksInitialCaretPosition(state) {
*
* @return {Array} Multi-selected block client IDs.
*/
-const getSelectedBlockClientIds = rememo(state => {
+const getSelectedBlockClientIds = (0,external_wp_data_namespaceObject.createSelector)(state => {
const {
selectionStart,
selectionEnd
} = state.selection;
if (!selectionStart.clientId || !selectionEnd.clientId) {
- return EMPTY_ARRAY;
+ return selectors_EMPTY_ARRAY;
}
if (selectionStart.clientId === selectionEnd.clientId) {
return [selectionStart.clientId];
@@ -12146,7 +11902,7 @@ const getSelectedBlockClientIds = rememo(state => {
// by explicitly testing against null.
const rootClientId = getBlockRootClientId(state, selectionStart.clientId);
if (rootClientId === null) {
- return EMPTY_ARRAY;
+ return selectors_EMPTY_ARRAY;
}
const blockOrder = getBlockOrder(state, rootClientId);
const startIndex = blockOrder.indexOf(selectionStart.clientId);
@@ -12171,7 +11927,7 @@ function getMultiSelectedBlockClientIds(state) {
selectionEnd
} = state.selection;
if (selectionStart.clientId === selectionEnd.clientId) {
- return EMPTY_ARRAY;
+ return selectors_EMPTY_ARRAY;
}
return getSelectedBlockClientIds(state);
}
@@ -12184,10 +11940,10 @@ function getMultiSelectedBlockClientIds(state) {
*
* @return {Array} Multi-selected block objects.
*/
-const getMultiSelectedBlocks = rememo(state => {
+const getMultiSelectedBlocks = (0,external_wp_data_namespaceObject.createSelector)(state => {
const multiSelectedBlockClientIds = getMultiSelectedBlockClientIds(state);
if (!multiSelectedBlockClientIds.length) {
- return EMPTY_ARRAY;
+ return selectors_EMPTY_ARRAY;
}
return multiSelectedBlockClientIds.map(clientId => getBlock(state, clientId));
}, state => [...getSelectedBlockClientIds.getDependants(state), state.blocks.byClientId, state.blocks.order, state.blocks.attributes]);
@@ -12254,7 +12010,7 @@ function isBlockMultiSelected(state, clientId) {
* @return {boolean} Whether an ancestor of the block is in multi-selection
* set.
*/
-const isAncestorMultiSelected = rememo((state, clientId) => {
+const isAncestorMultiSelected = (0,external_wp_data_namespaceObject.createSelector)((state, clientId) => {
let ancestorClientId = clientId;
let isMultiSelected = false;
while (ancestorClientId && !isMultiSelected) {
@@ -12356,10 +12112,14 @@ function __unstableIsSelectionMergeable(state, isForward) {
const selectionFocus = getSelectionEnd(state);
// It's not mergeable if the start and end are within the same block.
- if (selectionAnchor.clientId === selectionFocus.clientId) return false;
+ if (selectionAnchor.clientId === selectionFocus.clientId) {
+ return false;
+ }
// It's not mergeable if there's no rich text selection.
- if (!selectionAnchor.attributeKey || !selectionFocus.attributeKey || typeof selectionAnchor.offset === 'undefined' || typeof selectionFocus.offset === 'undefined') return false;
+ if (!selectionAnchor.attributeKey || !selectionFocus.attributeKey || typeof selectionAnchor.offset === 'undefined' || typeof selectionFocus.offset === 'undefined') {
+ return false;
+ }
const anchorRootClientId = getBlockRootClientId(state, selectionAnchor.clientId);
const focusRootClientId = getBlockRootClientId(state, selectionFocus.clientId);
@@ -12385,11 +12145,15 @@ function __unstableIsSelectionMergeable(state, isForward) {
const blockToMergeClientId = isForward ? selectionStart.clientId : selectionEnd.clientId;
const targetBlockName = getBlockName(state, targetBlockClientId);
const targetBlockType = (0,external_wp_blocks_namespaceObject.getBlockType)(targetBlockName);
- if (!targetBlockType.merge) return false;
+ if (!targetBlockType.merge) {
+ return false;
+ }
const blockToMerge = getBlock(state, blockToMergeClientId);
// It's mergeable if the blocks are of the same type.
- if (blockToMerge.name === targetBlockName) return true;
+ if (blockToMerge.name === targetBlockName) {
+ return true;
+ }
// If the blocks are of a different type, try to transform the block being
// merged into the same type of block.
@@ -12409,12 +12173,12 @@ const __unstableGetSelectedBlocksWithPartialSelection = state => {
const selectionAnchor = getSelectionStart(state);
const selectionFocus = getSelectionEnd(state);
if (selectionAnchor.clientId === selectionFocus.clientId) {
- return EMPTY_ARRAY;
+ return selectors_EMPTY_ARRAY;
}
// Can't split if the selection is not set.
if (!selectionAnchor.attributeKey || !selectionFocus.attributeKey || typeof selectionAnchor.offset === 'undefined' || typeof selectionFocus.offset === 'undefined') {
- return EMPTY_ARRAY;
+ return selectors_EMPTY_ARRAY;
}
const anchorRootClientId = getBlockRootClientId(state, selectionAnchor.clientId);
const focusRootClientId = getBlockRootClientId(state, selectionFocus.clientId);
@@ -12422,7 +12186,7 @@ const __unstableGetSelectedBlocksWithPartialSelection = state => {
// It's not splittable if the selection doesn't start and end in the same
// block list. Maybe in the future it should be allowed.
if (anchorRootClientId !== focusRootClientId) {
- return EMPTY_ARRAY;
+ return selectors_EMPTY_ARRAY;
}
const blockOrder = getBlockOrder(state, anchorRootClientId);
const anchorIndex = blockOrder.indexOf(selectionAnchor.clientId);
@@ -12472,7 +12236,7 @@ const __unstableGetSelectedBlocksWithPartialSelection = state => {
* @return {Array} Ordered client IDs of editor blocks.
*/
function getBlockOrder(state, rootClientId) {
- return state.blocks.order.get(rootClientId || '') || EMPTY_ARRAY;
+ return state.blocks.order.get(rootClientId || '') || selectors_EMPTY_ARRAY;
}
/**
@@ -12519,7 +12283,17 @@ function isBlockSelected(state, clientId) {
* @return {boolean} Whether the block has an inner block selected
*/
function hasSelectedInnerBlock(state, clientId, deep = false) {
- return getBlockOrder(state, clientId).some(innerClientId => isBlockSelected(state, innerClientId) || isBlockMultiSelected(state, innerClientId) || deep && hasSelectedInnerBlock(state, innerClientId, deep));
+ const selectedBlockClientIds = getSelectedBlockClientIds(state);
+ if (!selectedBlockClientIds.length) {
+ return false;
+ }
+ if (deep) {
+ return selectedBlockClientIds.some(id =>
+ // Pass true because we don't care about order and it's more
+ // performant.
+ getBlockParents(state, id, true).includes(clientId));
+ }
+ return selectedBlockClientIds.some(id => getBlockRootClientId(state, id) === clientId);
}
/**
@@ -12702,7 +12476,7 @@ function isCaretWithinFormattedText() {
*
* @return {Object} Insertion point object with `rootClientId`, `index`.
*/
-const getBlockInsertionPoint = rememo(state => {
+const getBlockInsertionPoint = (0,external_wp_data_namespaceObject.createSelector)(state => {
let rootClientId, index;
const {
insertionPoint,
@@ -12882,7 +12656,7 @@ const canInsertBlockTypeUnmemoized = (state, blockName, rootClientId = null) =>
*
* @return {boolean} Whether the given block type is allowed to be inserted.
*/
-const canInsertBlockType = rememo(canInsertBlockTypeUnmemoized, (state, blockName, rootClientId) => [state.blockListSettings[rootClientId], state.blocks.byClientId.get(rootClientId), state.settings.allowedBlockTypes, state.settings.templateLock, state.blockEditingModes]);
+const canInsertBlockType = (0,external_wp_data_namespaceObject.createSelector)(canInsertBlockTypeUnmemoized, (state, blockName, rootClientId) => getInsertBlockTypeDependants(state, rootClientId));
/**
* Determines if the given blocks are allowed to be inserted into the block
@@ -12901,13 +12675,12 @@ function canInsertBlocks(state, clientIds, rootClientId = null) {
/**
* Determines if the given block is allowed to be deleted.
*
- * @param {Object} state Editor state.
- * @param {string} clientId The block client Id.
- * @param {?string} rootClientId Optional root client ID of block list.
+ * @param {Object} state Editor state.
+ * @param {string} clientId The block client Id.
*
* @return {boolean} Whether the given block is allowed to be removed.
*/
-function canRemoveBlock(state, clientId, rootClientId = null) {
+function canRemoveBlock(state, clientId) {
const attributes = getBlockAttributes(state, clientId);
if (attributes === null) {
return true;
@@ -12915,6 +12688,7 @@ function canRemoveBlock(state, clientId, rootClientId = null) {
if (attributes.lock?.remove !== undefined) {
return !attributes.lock.remove;
}
+ const rootClientId = getBlockRootClientId(state, clientId);
if (getTemplateLock(state, rootClientId)) {
return false;
}
@@ -12924,26 +12698,24 @@ function canRemoveBlock(state, clientId, rootClientId = null) {
/**
* Determines if the given blocks are allowed to be removed.
*
- * @param {Object} state Editor state.
- * @param {string} clientIds The block client IDs to be removed.
- * @param {?string} rootClientId Optional root client ID of block list.
+ * @param {Object} state Editor state.
+ * @param {string} clientIds The block client IDs to be removed.
*
* @return {boolean} Whether the given blocks are allowed to be removed.
*/
-function canRemoveBlocks(state, clientIds, rootClientId = null) {
- return clientIds.every(clientId => canRemoveBlock(state, clientId, rootClientId));
+function canRemoveBlocks(state, clientIds) {
+ return clientIds.every(clientId => canRemoveBlock(state, clientId));
}
/**
* Determines if the given block is allowed to be moved.
*
- * @param {Object} state Editor state.
- * @param {string} clientId The block client Id.
- * @param {?string} rootClientId Optional root client ID of block list.
+ * @param {Object} state Editor state.
+ * @param {string} clientId The block client Id.
*
* @return {boolean | undefined} Whether the given block is allowed to be moved.
*/
-function canMoveBlock(state, clientId, rootClientId = null) {
+function canMoveBlock(state, clientId) {
const attributes = getBlockAttributes(state, clientId);
if (attributes === null) {
return true;
@@ -12951,6 +12723,7 @@ function canMoveBlock(state, clientId, rootClientId = null) {
if (attributes.lock?.move !== undefined) {
return !attributes.lock.move;
}
+ const rootClientId = getBlockRootClientId(state, clientId);
if (getTemplateLock(state, rootClientId) === 'all') {
return false;
}
@@ -12960,14 +12733,13 @@ function canMoveBlock(state, clientId, rootClientId = null) {
/**
* Determines if the given blocks are allowed to be moved.
*
- * @param {Object} state Editor state.
- * @param {string} clientIds The block client IDs to be moved.
- * @param {?string} rootClientId Optional root client ID of block list.
+ * @param {Object} state Editor state.
+ * @param {string} clientIds The block client IDs to be moved.
*
* @return {boolean} Whether the given blocks are allowed to be moved.
*/
-function canMoveBlocks(state, clientIds, rootClientId = null) {
- return clientIds.every(clientId => canMoveBlock(state, clientId, rootClientId));
+function canMoveBlocks(state, clientIds) {
+ return clientIds.every(clientId => canMoveBlock(state, clientId));
}
/**
@@ -13133,7 +12905,9 @@ const buildBlockTypeItem = (state, {
isDisabled,
frecency: calculateFrecency(time, count)
};
- if (buildScope === 'transform') return blockItemBase;
+ if (buildScope === 'transform') {
+ return blockItemBase;
+ }
const inserterVariations = (0,external_wp_blocks_namespaceObject.getBlockVariations)(blockType.name, 'inserter');
return {
...blockItemBase,
@@ -13176,7 +12950,7 @@ const buildBlockTypeItem = (state, {
* this item.
* @property {number} frecency Heuristic that combines frequency and recency.
*/
-const getInserterItems = rememo((state, rootClientId = null) => {
+const getInserterItems = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (0,external_wp_data_namespaceObject.createSelector)((state, rootClientId = null, options = EMPTY_OBJECT) => {
const buildReusableBlockInserterItem = reusableBlock => {
const icon = !reusableBlock.wp_pattern_sync_status ? {
src: library_symbol,
@@ -13206,11 +12980,41 @@ const getInserterItems = rememo((state, rootClientId = null) => {
syncStatus: reusableBlock.wp_pattern_sync_status
};
};
- const syncedPatternInserterItems = canInsertBlockTypeUnmemoized(state, 'core/block', rootClientId) ? getReusableBlocks(state).map(buildReusableBlockInserterItem) : [];
+ const syncedPatternInserterItems = canInsertBlockTypeUnmemoized(state, 'core/block', rootClientId) ? unlock(select(STORE_NAME)).getReusableBlocks().map(buildReusableBlockInserterItem) : [];
const buildBlockTypeInserterItem = buildBlockTypeItem(state, {
buildScope: 'inserter'
});
- const blockTypeInserterItems = (0,external_wp_blocks_namespaceObject.getBlockTypes)().filter(blockType => canIncludeBlockTypeInInserter(state, blockType, rootClientId)).map(buildBlockTypeInserterItem);
+ let blockTypeInserterItems = (0,external_wp_blocks_namespaceObject.getBlockTypes)().filter(blockType => (0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockType, 'inserter', true)).map(buildBlockTypeInserterItem);
+ if (options[withRootClientIdOptionKey]) {
+ blockTypeInserterItems = blockTypeInserterItems.reduce((accumulator, item) => {
+ item.rootClientId = rootClientId !== null && rootClientId !== void 0 ? rootClientId : '';
+ while (!canInsertBlockTypeUnmemoized(state, item.name, item.rootClientId)) {
+ if (!item.rootClientId) {
+ let sectionRootClientId;
+ try {
+ sectionRootClientId = unlock(getSettings(state)).sectionRootClientId;
+ } catch (e) {}
+ if (sectionRootClientId && canInsertBlockTypeUnmemoized(state, item.name, sectionRootClientId)) {
+ item.rootClientId = sectionRootClientId;
+ } else {
+ delete item.rootClientId;
+ }
+ break;
+ } else {
+ const parentClientId = getBlockRootClientId(state, item.rootClientId);
+ item.rootClientId = parentClientId;
+ }
+ }
+
+ // We could also add non insertable items and gray them out.
+ if (item.hasOwnProperty('rootClientId')) {
+ accumulator.push(item);
+ }
+ return accumulator;
+ }, []);
+ } else {
+ blockTypeInserterItems = blockTypeInserterItems.filter(blockType => canIncludeBlockTypeInInserter(state, blockType, rootClientId));
+ }
const items = blockTypeInserterItems.reduce((accumulator, item) => {
const {
variations = []
@@ -13251,7 +13055,7 @@ const getInserterItems = rememo((state, rootClientId = null) => {
});
const sortedBlockTypes = [...coreItems, ...nonCoreItems];
return [...sortedBlockTypes, ...syncedPatternInserterItems];
-}, (state, rootClientId) => [state.blockListSettings[rootClientId], state.blocks.byClientId.get(rootClientId), state.blocks.order, state.preferences.insertUsage, state.settings.allowedBlockTypes, state.settings.templateLock, getReusableBlocks(state), (0,external_wp_blocks_namespaceObject.getBlockTypes)()]);
+}, (state, rootClientId) => [(0,external_wp_blocks_namespaceObject.getBlockTypes)(), unlock(select(STORE_NAME)).getReusableBlocks(), state.blocks.order, state.preferences.insertUsage, ...getInsertBlockTypeDependants(state, rootClientId)]));
/**
* Determines the items that appear in the available block transforms list.
@@ -13279,7 +13083,7 @@ const getInserterItems = rememo((state, rootClientId = null) => {
* this item.
* @property {number} frecency Heuristic that combines frequency and recency.
*/
-const getBlockTransformItems = rememo((state, blocks, rootClientId = null) => {
+const getBlockTransformItems = (0,external_wp_data_namespaceObject.createSelector)((state, blocks, rootClientId = null) => {
const normalizedBlocks = Array.isArray(blocks) ? blocks : [blocks];
const buildBlockTypeTransformItem = buildBlockTypeItem(state, {
buildScope: 'transform'
@@ -13293,7 +13097,7 @@ const getBlockTransformItems = rememo((state, blocks, rootClientId = null) => {
return accumulator;
}, []);
return orderBy(possibleTransforms, block => itemsByName[block.name].frecency, 'desc');
-}, (state, blocks, rootClientId) => [state.blockListSettings[rootClientId], state.blocks.byClientId.get(rootClientId), state.preferences.insertUsage, state.settings.allowedBlockTypes, state.settings.templateLock, (0,external_wp_blocks_namespaceObject.getBlockTypes)()]);
+}, (state, blocks, rootClientId) => [(0,external_wp_blocks_namespaceObject.getBlockTypes)(), state.preferences.insertUsage, ...getInsertBlockTypeDependants(state, rootClientId)]);
/**
* Determines whether there are items to show in the inserter.
@@ -13303,14 +13107,14 @@ const getBlockTransformItems = rememo((state, blocks, rootClientId = null) => {
*
* @return {boolean} Items that appear in inserter.
*/
-const hasInserterItems = rememo((state, rootClientId = null) => {
+const hasInserterItems = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, rootClientId = null) => {
const hasBlockType = (0,external_wp_blocks_namespaceObject.getBlockTypes)().some(blockType => canIncludeBlockTypeInInserter(state, blockType, rootClientId));
if (hasBlockType) {
return true;
}
- const hasReusableBlock = canInsertBlockTypeUnmemoized(state, 'core/block', rootClientId) && getReusableBlocks(state).length > 0;
+ const hasReusableBlock = canInsertBlockTypeUnmemoized(state, 'core/block', rootClientId) && unlock(select(STORE_NAME)).getReusableBlocks().length > 0;
return hasReusableBlock;
-}, (state, rootClientId) => [state.blockListSettings[rootClientId], state.blocks.byClientId.get(rootClientId), state.settings.allowedBlockTypes, state.settings.templateLock, getReusableBlocks(state), (0,external_wp_blocks_namespaceObject.getBlockTypes)()]);
+});
/**
* Returns the list of allowed inserter blocks for inner blocks children.
@@ -13320,25 +13124,25 @@ const hasInserterItems = rememo((state, rootClientId = null) => {
*
* @return {Array?} The list of allowed block types.
*/
-const getAllowedBlocks = rememo((state, rootClientId = null) => {
+const getAllowedBlocks = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (0,external_wp_data_namespaceObject.createSelector)((state, rootClientId = null) => {
if (!rootClientId) {
return;
}
const blockTypes = (0,external_wp_blocks_namespaceObject.getBlockTypes)().filter(blockType => canIncludeBlockTypeInInserter(state, blockType, rootClientId));
- const hasReusableBlock = canInsertBlockTypeUnmemoized(state, 'core/block', rootClientId) && getReusableBlocks(state).length > 0;
+ const hasReusableBlock = canInsertBlockTypeUnmemoized(state, 'core/block', rootClientId) && unlock(select(STORE_NAME)).getReusableBlocks().length > 0;
if (hasReusableBlock) {
blockTypes.push('core/block');
}
return blockTypes;
-}, (state, rootClientId) => [state.blockListSettings[rootClientId], state.blocks.byClientId.get(rootClientId), state.settings.allowedBlockTypes, state.settings.templateLock, getReusableBlocks(state), (0,external_wp_blocks_namespaceObject.getBlockTypes)()]);
-const __experimentalGetAllowedBlocks = rememo((state, rootClientId = null) => {
+}, (state, rootClientId) => [(0,external_wp_blocks_namespaceObject.getBlockTypes)(), unlock(select(STORE_NAME)).getReusableBlocks(), ...getInsertBlockTypeDependants(state, rootClientId)]));
+const __experimentalGetAllowedBlocks = (0,external_wp_data_namespaceObject.createSelector)((state, rootClientId = null) => {
external_wp_deprecated_default()('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks', {
alternative: 'wp.data.select( "core/block-editor" ).getAllowedBlocks',
since: '6.2',
version: '6.4'
});
return getAllowedBlocks(state, rootClientId);
-}, (state, rootClientId) => [...getAllowedBlocks.getDependants(state, rootClientId)]);
+}, (state, rootClientId) => getAllowedBlocks.getDependants(state, rootClientId));
/**
* Returns the block to be directly inserted by the block appender.
@@ -13346,56 +13150,60 @@ const __experimentalGetAllowedBlocks = rememo((state, rootClientId = null) => {
* @param {Object} state Editor state.
* @param {?string} rootClientId Optional root client ID of block list.
*
- * @return {?WPDirectInsertBlock} The block type to be directly inserted.
+ * @return {WPDirectInsertBlock|undefined} The block type to be directly inserted.
*
* @typedef {Object} WPDirectInsertBlock
* @property {string} name The type of block.
* @property {?Object} attributes Attributes to pass to the newly created block.
* @property {?Array<string>} attributesToCopy Attributes to be copied from adjecent blocks when inserted.
*/
-const getDirectInsertBlock = rememo((state, rootClientId = null) => {
+function getDirectInsertBlock(state, rootClientId = null) {
+ var _state$blockListSetti;
if (!rootClientId) {
return;
}
- const defaultBlock = state.blockListSettings[rootClientId]?.defaultBlock;
- const directInsert = state.blockListSettings[rootClientId]?.directInsert;
+ const {
+ defaultBlock,
+ directInsert
+ } = (_state$blockListSetti = state.blockListSettings[rootClientId]) !== null && _state$blockListSetti !== void 0 ? _state$blockListSetti : {};
if (!defaultBlock || !directInsert) {
return;
}
- if (typeof directInsert === 'function') {
- return directInsert(getBlock(state, rootClientId)) ? defaultBlock : null;
- }
return defaultBlock;
-}, (state, rootClientId) => [state.blockListSettings[rootClientId], state.blocks.tree.get(rootClientId)]);
-const __experimentalGetDirectInsertBlock = rememo((state, rootClientId = null) => {
+}
+function __experimentalGetDirectInsertBlock(state, rootClientId = null) {
external_wp_deprecated_default()('wp.data.select( "core/block-editor" ).__experimentalGetDirectInsertBlock', {
alternative: 'wp.data.select( "core/block-editor" ).getDirectInsertBlock',
since: '6.3',
version: '6.4'
});
return getDirectInsertBlock(state, rootClientId);
-}, (state, rootClientId) => [state.blockListSettings[rootClientId], state.blocks.tree.get(rootClientId)]);
-const __experimentalGetParsedPattern = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => rememo((state, patternName) => {
- const {
- getAllPatterns
- } = unlock(select(STORE_NAME));
- const patterns = getAllPatterns();
- const pattern = patterns.find(({
- name
- }) => name === patternName);
+}
+const __experimentalGetParsedPattern = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (0,external_wp_data_namespaceObject.createSelector)((state, patternName) => {
+ const pattern = unlock(select(STORE_NAME)).getPatternBySlug(patternName);
if (!pattern) {
return null;
}
+ const blocks = (0,external_wp_blocks_namespaceObject.parse)(pattern.content, {
+ __unstableSkipMigrationLogs: true
+ });
+ if (blocks.length === 1) {
+ blocks[0].attributes = {
+ ...blocks[0].attributes,
+ metadata: {
+ ...(blocks[0].attributes.metadata || {}),
+ categories: pattern.categories,
+ patternName: pattern.name,
+ name: blocks[0].attributes.metadata?.name || pattern.title
+ }
+ };
+ }
return {
...pattern,
- blocks: (0,external_wp_blocks_namespaceObject.parse)(pattern.content, {
- __unstableSkipMigrationLogs: true
- })
+ blocks
};
-}, getAllPatternsDependants(select)));
-const getAllowedPatternsDependants = select => (state, rootClientId) => {
- return [...getAllPatternsDependants(select)(state), state.settings.allowedBlockTypes, state.settings.templateLock, state.blockListSettings[rootClientId], state.blocks.byClientId.get(rootClientId)];
-};
+}, (state, patternName) => [unlock(select(STORE_NAME)).getPatternBySlug(patternName)]));
+const getAllowedPatternsDependants = select => (state, rootClientId) => [...getAllPatternsDependants(select)(state), ...getInsertBlockTypeDependants(state, rootClientId)];
/**
* Returns the list of allowed patterns for inner blocks children.
@@ -13406,7 +13214,7 @@ const getAllowedPatternsDependants = select => (state, rootClientId) => {
* @return {Array?} The list of allowed patterns.
*/
const __experimentalGetAllowedPatterns = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => {
- return rememo((state, rootClientId = null) => {
+ return (0,external_wp_data_namespaceObject.createSelector)((state, rootClientId = null) => {
const {
getAllPatterns,
__experimentalGetParsedPattern: getParsedPattern
@@ -13445,13 +13253,15 @@ const __experimentalGetAllowedPatterns = (0,external_wp_data_namespaceObject.cre
*
* @return {Array} The list of matched block patterns based on declared `blockTypes` and block name.
*/
-const getPatternsByBlockTypes = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => rememo((state, blockNames, rootClientId = null) => {
- if (!blockNames) return EMPTY_ARRAY;
+const getPatternsByBlockTypes = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (0,external_wp_data_namespaceObject.createSelector)((state, blockNames, rootClientId = null) => {
+ if (!blockNames) {
+ return selectors_EMPTY_ARRAY;
+ }
const patterns = select(STORE_NAME).__experimentalGetAllowedPatterns(rootClientId);
const normalizedBlockNames = Array.isArray(blockNames) ? blockNames : [blockNames];
const filteredPatterns = patterns.filter(pattern => pattern?.blockTypes?.some?.(blockName => normalizedBlockNames.includes(blockName)));
if (filteredPatterns.length === 0) {
- return EMPTY_ARRAY;
+ return selectors_EMPTY_ARRAY;
}
return filteredPatterns;
}, (state, blockNames, rootClientId) => getAllowedPatternsDependants(select)(state, rootClientId)));
@@ -13481,8 +13291,10 @@ const __experimentalGetPatternsByBlockTypes = (0,external_wp_data_namespaceObjec
*
* @return {WPBlockPattern[]} Items that are eligible for a pattern transformation.
*/
-const __experimentalGetPatternTransformItems = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => rememo((state, blocks, rootClientId = null) => {
- if (!blocks) return EMPTY_ARRAY;
+const __experimentalGetPatternTransformItems = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (0,external_wp_data_namespaceObject.createSelector)((state, blocks, rootClientId = null) => {
+ if (!blocks) {
+ return selectors_EMPTY_ARRAY;
+ }
/**
* For now we only handle blocks without InnerBlocks and take into account
* the `__experimentalRole` property of blocks' attributes for the transformation.
@@ -13494,7 +13306,7 @@ const __experimentalGetPatternTransformItems = (0,external_wp_data_namespaceObje
clientId,
innerBlocks
}) => innerBlocks.length || areInnerBlocksControlled(state, clientId))) {
- return EMPTY_ARRAY;
+ return selectors_EMPTY_ARRAY;
}
// Create a Set of the selected block names that is used in patterns filtering.
@@ -13555,7 +13367,7 @@ function isLastBlockChangePersistent(state) {
* @return {Object} An object where the keys are client ids and the values are
* a block list setting object.
*/
-const __experimentalGetBlockListSettingsForBlocks = rememo((state, clientIds = []) => {
+const __experimentalGetBlockListSettingsForBlocks = (0,external_wp_data_namespaceObject.createSelector)((state, clientIds = []) => {
return clientIds.reduce((blockListSettingsForBlocks, clientId) => {
if (!state.blockListSettings[clientId]) {
return blockListSettingsForBlocks;
@@ -13575,13 +13387,17 @@ const __experimentalGetBlockListSettingsForBlocks = rememo((state, clientIds = [
*
* @return {string} The reusable block saved title.
*/
-const __experimentalGetReusableBlockTitle = rememo((state, ref) => {
- const reusableBlock = getReusableBlocks(state).find(block => block.id === ref);
+const __experimentalGetReusableBlockTitle = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (0,external_wp_data_namespaceObject.createSelector)((state, ref) => {
+ external_wp_deprecated_default()("wp.data.select( 'core/block-editor' ).__experimentalGetReusableBlockTitle", {
+ since: '6.6',
+ version: '6.8'
+ });
+ const reusableBlock = unlock(select(STORE_NAME)).getReusableBlocks().find(block => block.id === ref);
if (!reusableBlock) {
return null;
}
return reusableBlock.title?.raw;
-}, state => [getReusableBlocks(state)]);
+}, () => [unlock(select(STORE_NAME)).getReusableBlocks()]));
/**
* Returns true if the most recent block change is be considered ignored, or
@@ -13615,18 +13431,6 @@ function __experimentalGetLastBlockAttributeChanges(state) {
}
/**
- * Returns the available reusable blocks
- *
- * @param {Object} state Global application state.
- *
- * @return {Array} Reusable blocks
- */
-function getReusableBlocks(state) {
- var _state$settings$__exp;
- return (_state$settings$__exp = state.settings.__experimentalReusableBlocks) !== null && _state$settings$__exp !== void 0 ? _state$settings$__exp : EMPTY_ARRAY;
-}
-
-/**
* Returns whether the navigation mode is enabled.
*
* @param {Object} state Editor state.
@@ -13704,7 +13508,7 @@ function areInnerBlocksControlled(state, clientId) {
*
* @return {string} The matching block's clientId.
*/
-const __experimentalGetActiveBlockIdByBlockNames = rememo((state, validBlockNames) => {
+const __experimentalGetActiveBlockIdByBlockNames = (0,external_wp_data_namespaceObject.createSelector)((state, validBlockNames) => {
if (!validBlockNames.length) {
return null;
}
@@ -13756,51 +13560,13 @@ function isBlockVisible(state, clientId) {
* @param {Object} state Global application state.
* @return {[string]} List of hidden blocks.
*/
-const __unstableGetVisibleBlocks = rememo(state => {
+const __unstableGetVisibleBlocks = (0,external_wp_data_namespaceObject.createSelector)(state => {
const visibleBlocks = new Set(Object.keys(state.blockVisibility).filter(key => state.blockVisibility[key]));
if (visibleBlocks.size === 0) {
return EMPTY_SET;
}
return visibleBlocks;
}, state => [state.blockVisibility]);
-
-/**
- * DO-NOT-USE in production.
- * This selector is created for internal/experimental only usage and may be
- * removed anytime without any warning, causing breakage on any plugin or theme invoking it.
- */
-const __unstableGetContentLockingParent = rememo((state, clientId) => {
- let current = clientId;
- let result;
- while (current = state.blocks.parents.get(current)) {
- if (getBlockName(state, current) === 'core/block' || getTemplateLock(state, current) === 'contentOnly') {
- result = current;
- }
- }
- return result;
-}, state => [state.blocks.parents, state.blockListSettings]);
-
-/**
- * DO-NOT-USE in production.
- * This selector is created for internal/experimental only usage and may be
- * removed anytime without any warning, causing breakage on any plugin or theme invoking it.
- *
- * @param {Object} state Global application state.
- */
-function __unstableGetTemporarilyEditingAsBlocks(state) {
- return state.temporarilyEditingAsBlocks;
-}
-
-/**
- * DO-NOT-USE in production.
- * This selector is created for internal/experimental only usage and may be
- * removed anytime without any warning, causing breakage on any plugin or theme invoking it.
- *
- * @param {Object} state Global application state.
- */
-function __unstableGetTemporarilyEditingFocusModeToRevert(state) {
- return state.temporarilyEditingFocusModeRevert;
-}
function __unstableHasActiveBlockOverlayActive(state, clientId) {
// Prevent overlay on blocks with a non-default editing mode. If the mdoe is
// 'disabled' then the overlay is redundant since the block can't be
@@ -13816,9 +13582,19 @@ function __unstableHasActiveBlockOverlayActive(state, clientId) {
}
const editorMode = __unstableGetEditorMode(state);
- // In zoom-out mode, the block overlay is always active for top level blocks.
- if (editorMode === 'zoom-out' && clientId && !getBlockRootClientId(state, clientId)) {
- return true;
+ // In zoom-out mode, the block overlay is always active for section level blocks.
+ if (editorMode === 'zoom-out') {
+ const {
+ sectionRootClientId
+ } = unlock(getSettings(state));
+ if (sectionRootClientId) {
+ const sectionClientIds = getBlockOrder(state, sectionRootClientId);
+ if (sectionClientIds?.includes(clientId)) {
+ return true;
+ }
+ } else if (clientId && !getBlockRootClientId(state, clientId)) {
+ return true;
+ }
}
// In navigation mode, the block overlay is active when the block is not
@@ -13874,6 +13650,30 @@ function __unstableIsWithinBlockOverlay(state, clientId) {
* `'contentOnly'`, or `'default'`.
*/
const getBlockEditingMode = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, clientId = '') => {
+ // Some selectors that call this provide `null` as the default
+ // rootClientId, but the default rootClientId is actually `''`.
+ if (clientId === null) {
+ clientId = '';
+ }
+ // In zoom-out mode, override the behavior set by
+ // __unstableSetBlockEditingMode to only allow editing the top-level
+ // sections.
+ const editorMode = __unstableGetEditorMode(state);
+ if (editorMode === 'zoom-out') {
+ const {
+ sectionRootClientId
+ } = unlock(getSettings(state));
+ if (clientId === '' /* ROOT_CONTAINER_CLIENT_ID */) {
+ return sectionRootClientId ? 'disabled' : 'contentOnly';
+ }
+ if (clientId === sectionRootClientId) {
+ return 'contentOnly';
+ }
+ const sectionsClientIds = getBlockOrder(state, sectionRootClientId);
+ if (!sectionsClientIds?.includes(clientId)) {
+ return 'disabled';
+ }
+ }
const blockEditingMode = state.blockEditingModes.get(clientId);
if (blockEditingMode) {
return blockEditingMode;
@@ -13927,7 +13727,7 @@ const isUngroupable = (0,external_wp_data_namespaceObject.createRegistrySelector
* @param {string[]} clientIds Block client ids. If not passed the selected blocks client ids will be used.
* @return {boolean} True if the blocks are groupable.
*/
-const isGroupable = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, clientIds = EMPTY_ARRAY) => {
+const isGroupable = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, clientIds = selectors_EMPTY_ARRAY) => {
const {
getGroupingBlockName
} = select(external_wp_blocks_namespaceObject.store);
@@ -13936,9 +13736,63 @@ const isGroupable = (0,external_wp_data_namespaceObject.createRegistrySelector)(
const rootClientId = _clientIds?.length ? getBlockRootClientId(state, _clientIds[0]) : undefined;
const groupingBlockAvailable = canInsertBlockType(state, groupingBlockName, rootClientId);
const _isGroupable = groupingBlockAvailable && _clientIds.length;
- return _isGroupable && canRemoveBlocks(state, _clientIds, rootClientId);
+ return _isGroupable && canRemoveBlocks(state, _clientIds);
});
+/**
+ * DO-NOT-USE in production.
+ * This selector is created for internal/experimental only usage and may be
+ * removed anytime without any warning, causing breakage on any plugin or theme invoking it.
+ *
+ * @deprecated
+ *
+ * @param {Object} state Global application state.
+ * @param {Object} clientId Client Id of the block.
+ *
+ * @return {?string} Client ID of the ancestor block that is content locking the block.
+ */
+const __unstableGetContentLockingParent = (state, clientId) => {
+ external_wp_deprecated_default()("wp.data.select( 'core/block-editor' ).__unstableGetContentLockingParent", {
+ since: '6.1',
+ version: '6.7'
+ });
+ return getContentLockingParent(state, clientId);
+};
+
+/**
+ * DO-NOT-USE in production.
+ * This selector is created for internal/experimental only usage and may be
+ * removed anytime without any warning, causing breakage on any plugin or theme invoking it.
+ *
+ * @deprecated
+ *
+ * @param {Object} state Global application state.
+ */
+function __unstableGetTemporarilyEditingAsBlocks(state) {
+ external_wp_deprecated_default()("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingAsBlocks", {
+ since: '6.1',
+ version: '6.7'
+ });
+ return getTemporarilyEditingAsBlocks(state);
+}
+
+/**
+ * DO-NOT-USE in production.
+ * This selector is created for internal/experimental only usage and may be
+ * removed anytime without any warning, causing breakage on any plugin or theme invoking it.
+ *
+ * @deprecated
+ *
+ * @param {Object} state Global application state.
+ */
+function __unstableGetTemporarilyEditingFocusModeToRevert(state) {
+ external_wp_deprecated_default()("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingFocusModeToRevert", {
+ since: '6.5',
+ version: '6.7'
+ });
+ return getTemporarilyEditingFocusModeToRevert(state);
+}
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/undo-ignore.js
// Keep track of the blocks that should not be pushing an additional
// undo stack when editing the entity.
@@ -13955,6 +13809,8 @@ const undoIgnoreBlocks = new WeakSet();
* Internal dependencies
*/
+
+
const castArray = maybeArray => Array.isArray(maybeArray) ? maybeArray : [maybeArray];
/**
@@ -14047,8 +13903,7 @@ const privateRemoveBlocks = (clientIds, selectPrevious = true, forceRemove = fal
return;
}
clientIds = castArray(clientIds);
- const rootClientId = select.getBlockRootClientId(clientIds[0]);
- const canRemoveBlocks = select.canRemoveBlocks(clientIds, rootClientId);
+ const canRemoveBlocks = select.canRemoveBlocks(clientIds);
if (!canRemoveBlocks) {
return;
}
@@ -14064,41 +13919,30 @@ const privateRemoveBlocks = (clientIds, selectPrevious = true, forceRemove = fal
// @see https://github.com/WordPress/gutenberg/pull/51145
const rules = !forceRemove && select.getBlockRemovalRules();
if (rules) {
- const blockNamesForPrompt = new Set();
-
- // Given a list of client IDs of blocks that the user intended to
- // remove, perform a tree search (BFS) to find all block names
- // corresponding to "important" blocks, i.e. blocks that require a
- // removal prompt.
- const queue = [...clientIds];
- let messageType = 'templates';
- while (queue.length) {
- const clientId = queue.shift();
- const blockName = select.getBlockName(clientId);
- if (rules[blockName]) {
- blockNamesForPrompt.add(blockName);
- }
- if (rules['bindings/core/pattern-overrides']) {
- const parentPatternBlocks = select.getBlockParentsByBlockName(clientId, 'core/block');
- // We only need to run this check when editing the original pattern, not pattern instances.
- if (parentPatternBlocks?.length > 0) {
- continue;
- }
- const blockAttributes = select.getBlockAttributes(clientId);
- if (blockAttributes?.metadata?.bindings && JSON.stringify(blockAttributes.metadata.bindings).includes('core/pattern-overrides')) {
- blockNamesForPrompt.add(blockName);
- messageType = 'patternOverrides';
- }
+ function flattenBlocks(blocks) {
+ const result = [];
+ const stack = [...blocks];
+ while (stack.length) {
+ const {
+ innerBlocks,
+ ...block
+ } = stack.shift();
+ stack.push(...innerBlocks);
+ result.push(block);
}
- const innerBlocks = select.getBlockOrder(clientId);
- queue.push(...innerBlocks);
+ return result;
}
+ const blockList = clientIds.map(select.getBlock);
+ const flattenedBlocks = flattenBlocks(blockList);
- // If any such blocks were found, trigger the removal prompt and
- // skip any other steps (thus postponing actual removal).
- if (blockNamesForPrompt.size) {
- dispatch(displayBlockRemovalPrompt(clientIds, selectPrevious, Array.from(blockNamesForPrompt), messageType));
- return;
+ // Find the first message and use it.
+ let message;
+ for (const rule of rules) {
+ message = rule.callback(flattenedBlocks);
+ if (message) {
+ dispatch(displayBlockRemovalPrompt(clientIds, selectPrevious, message));
+ return;
+ }
}
}
if (selectPrevious) {
@@ -14153,26 +13997,21 @@ const ensureDefaultBlock = () => ({
*
* Contrast with `setBlockRemovalRules`.
*
- * @param {string|string[]} clientIds Client IDs of blocks to remove.
- * @param {boolean} selectPrevious True if the previous block
- * or the immediate parent
- * (if no previous block exists)
- * should be selected
- * when a block is removed.
- * @param {string[]} blockNamesForPrompt Names of the blocks that
- * triggered the need for
- * confirmation before removal.
- * @param {string} messageType The type of message to display.
+ * @param {string|string[]} clientIds Client IDs of blocks to remove.
+ * @param {boolean} selectPrevious True if the previous block or the
+ * immediate parent (if no previous
+ * block exists) should be selected
+ * when a block is removed.
+ * @param {string} message Message to display in the prompt.
*
* @return {Object} Action object.
*/
-function displayBlockRemovalPrompt(clientIds, selectPrevious, blockNamesForPrompt, messageType) {
+function displayBlockRemovalPrompt(clientIds, selectPrevious, message) {
return {
type: 'DISPLAY_BLOCK_REMOVAL_PROMPT',
clientIds,
selectPrevious,
- blockNamesForPrompt,
- messageType
+ message
};
}
@@ -14298,9 +14137,10 @@ function setLastFocus(lastFocus = null) {
function stopEditingAsBlocks(clientId) {
return ({
select,
- dispatch
+ dispatch,
+ registry
}) => {
- const focusModeToRevert = select.__unstableGetTemporarilyEditingFocusModeToRevert();
+ const focusModeToRevert = unlock(registry.select(store)).getTemporarilyEditingFocusModeToRevert();
dispatch.__unstableMarkNextChangeAsNotPersistent();
dispatch.updateBlockAttributes(clientId, {
templateLock: 'contentOnly'
@@ -14338,585 +14178,46 @@ function stopDragging() {
};
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns-tab/utils.js
-/**
- * WordPress dependencies
- */
-
-
-const INSERTER_PATTERN_TYPES = {
- user: 'user',
- theme: 'theme',
- directory: 'directory'
-};
-const INSERTER_SYNC_TYPES = {
- full: 'fully',
- unsynced: 'unsynced'
-};
-const allPatternsCategory = {
- name: 'allPatterns',
- label: (0,external_wp_i18n_namespaceObject._x)('All', 'patterns')
-};
-const myPatternsCategory = {
- name: 'myPatterns',
- label: (0,external_wp_i18n_namespaceObject.__)('My patterns')
-};
-function isPatternFiltered(pattern, sourceFilter, syncFilter) {
- const isUserPattern = pattern.name.startsWith('core/block');
- const isDirectoryPattern = pattern.source === 'core' || pattern.source?.startsWith('pattern-directory');
-
- // If theme source selected, filter out user created patterns and those from
- // the core patterns directory.
- if (sourceFilter === INSERTER_PATTERN_TYPES.theme && (isUserPattern || isDirectoryPattern)) {
- return true;
- }
-
- // If the directory source is selected, filter out user created patterns
- // and those bundled with the theme.
- if (sourceFilter === INSERTER_PATTERN_TYPES.directory && (isUserPattern || !isDirectoryPattern)) {
- return true;
- }
-
- // If user source selected, filter out theme patterns.
- if (sourceFilter === INSERTER_PATTERN_TYPES.user && pattern.type !== INSERTER_PATTERN_TYPES.user) {
- return true;
- }
-
- // Filter by sync status.
- if (syncFilter === INSERTER_SYNC_TYPES.full && pattern.syncStatus !== '') {
- return true;
- }
- if (syncFilter === INSERTER_SYNC_TYPES.unsynced && pattern.syncStatus !== 'unsynced' && isUserPattern) {
- return true;
- }
- return false;
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/object.js
/**
- * Immutably sets a value inside an object. Like `lodash#set`, but returning a
- * new object. Treats nullish initial values as empty objects. Clones any
- * nested objects. Supports arrays, too.
+ * @param {string|null} clientId The block's clientId, or `null` to clear.
*
- * @param {Object} object Object to set a value in.
- * @param {number|string|Array} path Path in the object to modify.
- * @param {*} value New value to set.
- * @return {Object} Cloned object with the new value set.
+ * @return {Object} Action object.
*/
-function setImmutably(object, path, value) {
- // Normalize path
- path = Array.isArray(path) ? [...path] : [path];
-
- // Shallowly clone the base of the object
- object = Array.isArray(object) ? [...object] : {
- ...object
- };
- const leaf = path.pop();
-
- // Traverse object from root to leaf, shallowly cloning at each level
- let prev = object;
- for (const key of path) {
- const lvl = prev[key];
- prev = prev[key] = Array.isArray(lvl) ? [...lvl] : {
- ...lvl
- };
- }
- prev[leaf] = value;
- return object;
-}
-
-/**
- * Helper util to return a value from a certain path of the object.
- * Path is specified as either:
- * - a string of properties, separated by dots, for example: "x.y".
- * - an array of properties, for example `[ 'x', 'y' ]`.
- * You can also specify a default value in case the result is nullish.
- *
- * @param {Object} object Input object.
- * @param {string|Array} path Path to the object property.
- * @param {*} defaultValue Default value if the value at the specified path is nullish.
- * @return {*} Value of the object property at the specified path.
- */
-const getValueFromObjectPath = (object, path, defaultValue) => {
- var _value;
- const arrayPath = Array.isArray(path) ? path : path.split('.');
- let value = object;
- arrayPath.forEach(fieldName => {
- value = value?.[fieldName];
- });
- return (_value = value) !== null && _value !== void 0 ? _value : defaultValue;
-};
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/get-block-settings.js
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-
-const blockedPaths = ['color', 'border', 'dimensions', 'typography', 'spacing'];
-const deprecatedFlags = {
- 'color.palette': settings => settings.colors,
- 'color.gradients': settings => settings.gradients,
- 'color.custom': settings => settings.disableCustomColors === undefined ? undefined : !settings.disableCustomColors,
- 'color.customGradient': settings => settings.disableCustomGradients === undefined ? undefined : !settings.disableCustomGradients,
- 'typography.fontSizes': settings => settings.fontSizes,
- 'typography.customFontSize': settings => settings.disableCustomFontSizes === undefined ? undefined : !settings.disableCustomFontSizes,
- 'typography.lineHeight': settings => settings.enableCustomLineHeight,
- 'spacing.units': settings => {
- if (settings.enableCustomUnits === undefined) {
- return;
- }
- if (settings.enableCustomUnits === true) {
- return ['px', 'em', 'rem', 'vh', 'vw', '%'];
- }
- return settings.enableCustomUnits;
- },
- 'spacing.padding': settings => settings.enableCustomSpacing
-};
-const prefixedFlags = {
- /*
- * These were only available in the plugin
- * and can be removed when the minimum WordPress version
- * for the plugin is 5.9.
- */
- 'border.customColor': 'border.color',
- 'border.customStyle': 'border.style',
- 'border.customWidth': 'border.width',
- 'typography.customFontStyle': 'typography.fontStyle',
- 'typography.customFontWeight': 'typography.fontWeight',
- 'typography.customLetterSpacing': 'typography.letterSpacing',
- 'typography.customTextDecorations': 'typography.textDecoration',
- 'typography.customTextTransforms': 'typography.textTransform',
- /*
- * These were part of WordPress 5.8 and we need to keep them.
- */
- 'border.customRadius': 'border.radius',
- 'spacing.customMargin': 'spacing.margin',
- 'spacing.customPadding': 'spacing.padding',
- 'typography.customLineHeight': 'typography.lineHeight'
-};
-
-/**
- * Remove `custom` prefixes for flags that did not land in 5.8.
- *
- * This provides continued support for `custom` prefixed properties. It will
- * be removed once third party devs have had sufficient time to update themes,
- * plugins, etc.
- *
- * @see https://github.com/WordPress/gutenberg/pull/34485
- *
- * @param {string} path Path to desired value in settings.
- * @return {string} The value for defined setting.
- */
-const removeCustomPrefixes = path => {
- return prefixedFlags[path] || path;
-};
-
-/**
- * For settings like `color.palette`, which have a value that is an object
- * with `default`, `theme`, `custom`, with field values that are arrays of
- * items, merge these three arrays into one and return it. The calculation
- * is memoized so that identical input values produce identical output.
- * @param {Object} value Object to merge
- * @return {Array} Array of merged items
- */
-function mergeOrigins(value) {
- let result = mergeCache.get(value);
- if (!result) {
- result = ['default', 'theme', 'custom'].flatMap(key => {
- var _value$key;
- return (_value$key = value[key]) !== null && _value$key !== void 0 ? _value$key : [];
- });
- mergeCache.set(value, result);
- }
- return result;
-}
-const mergeCache = new WeakMap();
-
-/**
- * For settings like `color.palette`, which have a value that is an object
- * with `default`, `theme`, `custom`, with field values that are arrays of
- * items, returns the one with the highest priority among these three arrays.
- * @param {Object} value Object to extract from
- * @return {Array} Array of items extracted from the three origins
- */
-function overrideOrigins(value) {
- var _ref, _value$custom;
- return (_ref = (_value$custom = value.custom) !== null && _value$custom !== void 0 ? _value$custom : value.theme) !== null && _ref !== void 0 ? _ref : value.default;
-}
-
-/**
- * For settings like `color.palette`, which have a value that is an object
- * with `default`, `theme`, `custom`, with field values that are arrays of
- * items, see if any of the three origins have values.
- *
- * @param {Object} value Object to check
- * @return {boolean} Whether the object has values in any of the three origins
- */
-function hasOriginValue(value) {
- return ['default', 'theme', 'custom'].some(key => value?.[key]?.length);
-}
-function getBlockSettings(state, clientId, ...paths) {
- const blockName = getBlockName(state, clientId);
- const candidates = [];
- if (clientId) {
- let id = clientId;
- do {
- const name = getBlockName(state, id);
- if ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(name, '__experimentalSettings', false)) {
- candidates.push(id);
- }
- } while (id = state.blocks.parents.get(id));
- }
- return paths.map(path => {
- if (blockedPaths.includes(path)) {
- // eslint-disable-next-line no-console
- console.warn('Top level useSetting paths are disabled. Please use a subpath to query the information needed.');
- return undefined;
- }
-
- // 0. Allow third parties to filter the block's settings at runtime.
- let result = (0,external_wp_hooks_namespaceObject.applyFilters)('blockEditor.useSetting.before', undefined, path, clientId, blockName);
- if (undefined !== result) {
- return result;
- }
- const normalizedPath = removeCustomPrefixes(path);
-
- // 1. Take settings from the block instance or its ancestors.
- // Start from the current block and work our way up the ancestors.
- for (const candidateClientId of candidates) {
- var _getValueFromObjectPa;
- const candidateAtts = getBlockAttributes(state, candidateClientId);
- result = (_getValueFromObjectPa = getValueFromObjectPath(candidateAtts.settings?.blocks?.[blockName], normalizedPath)) !== null && _getValueFromObjectPa !== void 0 ? _getValueFromObjectPa : getValueFromObjectPath(candidateAtts.settings, normalizedPath);
- if (result !== undefined) {
- // Stop the search for more distant ancestors and move on.
- break;
- }
- }
-
- // 2. Fall back to the settings from the block editor store (__experimentalFeatures).
- const settings = getSettings(state);
- if (result === undefined && blockName) {
- result = getValueFromObjectPath(settings.__experimentalFeatures?.blocks?.[blockName], normalizedPath);
- }
- if (result === undefined) {
- result = getValueFromObjectPath(settings.__experimentalFeatures, normalizedPath);
- }
-
- // Return if the setting was found in either the block instance or the store.
- if (result !== undefined) {
- if (external_wp_blocks_namespaceObject.__EXPERIMENTAL_PATHS_WITH_OVERRIDE[normalizedPath]) {
- return overrideOrigins(result);
- }
- return result;
- }
-
- // 3. Otherwise, use deprecated settings.
- const deprecatedSettingsValue = deprecatedFlags[normalizedPath]?.(settings);
- if (deprecatedSettingsValue !== undefined) {
- return deprecatedSettingsValue;
- }
-
- // 4. Fallback for typography.dropCap:
- // This is only necessary to support typography.dropCap.
- // when __experimentalFeatures are not present (core without plugin).
- // To remove when __experimentalFeatures are ported to core.
- return normalizedPath === 'typography.dropCap' ? true : undefined;
- });
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/private-selectors.js
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-
-
-/**
- * Returns true if the block interface is hidden, or false otherwise.
- *
- * @param {Object} state Global application state.
- *
- * @return {boolean} Whether the block toolbar is hidden.
- */
-function private_selectors_isBlockInterfaceHidden(state) {
- return state.isBlockInterfaceHidden;
-}
-
-/**
- * Gets the client ids of the last inserted blocks.
- *
- * @param {Object} state Global application state.
- * @return {Array|undefined} Client Ids of the last inserted block(s).
- */
-function getLastInsertedBlocksClientIds(state) {
- return state?.lastBlockInserted?.clientIds;
-}
-function getBlockWithoutAttributes(state, clientId) {
- return state.blocks.byClientId.get(clientId);
-}
-
-/**
- * Returns true if all of the descendants of a block with the given client ID
- * have an editing mode of 'disabled', or false otherwise.
- *
- * @param {Object} state Global application state.
- * @param {string} clientId The block client ID.
- *
- * @return {boolean} Whether the block descendants are disabled.
- */
-const isBlockSubtreeDisabled = (state, clientId) => {
- const isChildSubtreeDisabled = childClientId => {
- return getBlockEditingMode(state, childClientId) === 'disabled' && getBlockOrder(state, childClientId).every(isChildSubtreeDisabled);
+function expandBlock(clientId) {
+ return {
+ type: 'SET_BLOCK_EXPANDED_IN_LIST_VIEW',
+ clientId
};
- return getBlockOrder(state, clientId).every(isChildSubtreeDisabled);
-};
-function getEnabledClientIdsTreeUnmemoized(state, rootClientId) {
- const blockOrder = getBlockOrder(state, rootClientId);
- const result = [];
- for (const clientId of blockOrder) {
- const innerBlocks = getEnabledClientIdsTreeUnmemoized(state, clientId);
- if (getBlockEditingMode(state, clientId) !== 'disabled') {
- result.push({
- clientId,
- innerBlocks
- });
- } else {
- result.push(...innerBlocks);
- }
- }
- return result;
-}
-
-/**
- * Returns a tree of block objects with only clientID and innerBlocks set.
- * Blocks with a 'disabled' editing mode are not included.
- *
- * @param {Object} state Global application state.
- * @param {?string} rootClientId Optional root client ID of block list.
- *
- * @return {Object[]} Tree of block objects with only clientID and innerBlocks set.
- */
-const getEnabledClientIdsTree = rememo(getEnabledClientIdsTreeUnmemoized, state => [state.blocks.order, state.blockEditingModes, state.settings.templateLock, state.blockListSettings]);
-
-/**
- * Returns a list of a given block's ancestors, from top to bottom. Blocks with
- * a 'disabled' editing mode are excluded.
- *
- * @see getBlockParents
- *
- * @param {Object} state Global application state.
- * @param {string} clientId The block client ID.
- * @param {boolean} ascending Order results from bottom to top (true) or top
- * to bottom (false).
- */
-const getEnabledBlockParents = rememo((state, clientId, ascending = false) => {
- return getBlockParents(state, clientId, ascending).filter(parent => getBlockEditingMode(state, parent) !== 'disabled');
-}, state => [state.blocks.parents, state.blockEditingModes, state.settings.templateLock, state.blockListSettings]);
-
-/**
- * Selector that returns the data needed to display a prompt when certain
- * blocks are removed, or `false` if no such prompt is requested.
- *
- * @param {Object} state Global application state.
- *
- * @return {Object|false} Data for removal prompt display, if any.
- */
-function getRemovalPromptData(state) {
- return state.removalPromptData;
}
/**
- * Returns true if removal prompt exists, or false otherwise.
- *
- * @param {Object} state Global application state.
+ * Temporarily modify/unlock the content-only block for editions.
*
- * @return {boolean} Whether removal prompt exists.
+ * @param {string} clientId The client id of the block.
*/
-function getBlockRemovalRules(state) {
- return state.blockRemovalRules;
-}
-
-/**
- * Returns the client ID of the block settings menu that is currently open.
- *
- * @param {Object} state Global application state.
- * @return {string|null} The client ID of the block menu that is currently open.
- */
-function getOpenedBlockSettingsMenu(state) {
- return state.openedBlockSettingsMenu;
-}
-
-/**
- * Returns all style overrides, intended to be merged with global editor styles.
- *
- * @param {Object} state Global application state.
- *
- * @return {Map} A map of style IDs to style overrides.
- */
-function getStyleOverrides(state) {
- return state.styleOverrides;
-}
-
-/** @typedef {import('./actions').InserterMediaCategory} InserterMediaCategory */
-/**
- * Returns the registered inserter media categories through the public API.
- *
- * @param {Object} state Editor state.
- *
- * @return {InserterMediaCategory[]} Inserter media categories.
- */
-function getRegisteredInserterMediaCategories(state) {
- return state.registeredInserterMediaCategories;
-}
-
-/**
- * Returns an array containing the allowed inserter media categories.
- * It merges the registered media categories from extenders with the
- * core ones. It also takes into account the allowed `mime_types`, which
- * can be altered by `upload_mimes` filter and restrict some of them.
- *
- * @param {Object} state Global application state.
- *
- * @return {InserterMediaCategory[]} Client IDs of descendants.
- */
-const getInserterMediaCategories = rememo(state => {
- const {
- settings: {
- inserterMediaCategories,
- allowedMimeTypes,
- enableOpenverseMediaCategory
- },
- registeredInserterMediaCategories
- } = state;
- // The allowed `mime_types` can be altered by `upload_mimes` filter and restrict
- // some of them. In this case we shouldn't add the category to the available media
- // categories list in the inserter.
- if (!inserterMediaCategories && !registeredInserterMediaCategories.length || !allowedMimeTypes) {
- return;
- }
- const coreInserterMediaCategoriesNames = inserterMediaCategories?.map(({
- name
- }) => name) || [];
- const mergedCategories = [...(inserterMediaCategories || []), ...(registeredInserterMediaCategories || []).filter(({
- name
- }) => !coreInserterMediaCategoriesNames.includes(name))];
- return mergedCategories.filter(category => {
- // Check if Openverse category is enabled.
- if (!enableOpenverseMediaCategory && category.name === 'openverse') {
- return false;
- }
- return Object.values(allowedMimeTypes).some(mimeType => mimeType.startsWith(`${category.mediaType}/`));
+const modifyContentLockBlock = clientId => ({
+ select,
+ dispatch
+}) => {
+ dispatch.__unstableMarkNextChangeAsNotPersistent();
+ dispatch.updateBlockAttributes(clientId, {
+ templateLock: undefined
});
-}, state => [state.settings.inserterMediaCategories, state.settings.allowedMimeTypes, state.settings.enableOpenverseMediaCategory, state.registeredInserterMediaCategories]);
-
-/**
- * Returns whether there is at least one allowed pattern for inner blocks children.
- * This is useful for deferring the parsing of all patterns until needed.
- *
- * @param {Object} state Editor state.
- * @param {string} [rootClientId=null] Target root client ID.
- *
- * @return {boolean} If there is at least one allowed pattern.
- */
-const hasAllowedPatterns = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => rememo((state, rootClientId = null) => {
- const {
- getAllPatterns,
- __experimentalGetParsedPattern
- } = unlock(select(STORE_NAME));
- const patterns = getAllPatterns();
- const {
- allowedBlockTypes
- } = getSettings(state);
- return patterns.some(({
- name,
- inserter = true
- }) => {
- if (!inserter) {
- return false;
- }
- const {
- blocks
- } = __experimentalGetParsedPattern(name);
- return checkAllowListRecursive(blocks, allowedBlockTypes) && blocks.every(({
- name: blockName
- }) => canInsertBlockType(state, blockName, rootClientId));
+ dispatch.updateBlockListSettings(clientId, {
+ ...select.getBlockListSettings(clientId),
+ templateLock: false
});
-}, (state, rootClientId) => [getAllPatternsDependants(select)(state), state.settings.allowedBlockTypes, state.settings.templateLock, state.blockListSettings[rootClientId], state.blocks.byClientId.get(rootClientId)]));
-const getAllPatterns = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => rememo(state => {
- var _state$settings$selec;
- // This setting is left for back compat.
- const {
- __experimentalBlockPatterns = [],
- __experimentalUserPatternCategories = [],
- __experimentalReusableBlocks = []
- } = state.settings;
- const userPatterns = (__experimentalReusableBlocks !== null && __experimentalReusableBlocks !== void 0 ? __experimentalReusableBlocks : []).map(userPattern => {
- return {
- name: `core/block/${userPattern.id}`,
- id: userPattern.id,
- type: INSERTER_PATTERN_TYPES.user,
- title: userPattern.title.raw,
- categories: userPattern.wp_pattern_category.map(catId => {
- const category = (__experimentalUserPatternCategories !== null && __experimentalUserPatternCategories !== void 0 ? __experimentalUserPatternCategories : []).find(({
- id
- }) => id === catId);
- return category ? category.slug : catId;
- }),
- content: userPattern.content.raw,
- syncStatus: userPattern.wp_pattern_sync_status
- };
+ const focusModeToRevert = select.getSettings().focusMode;
+ dispatch.updateSettings({
+ focusMode: true
});
- return [...userPatterns, ...__experimentalBlockPatterns, ...((_state$settings$selec = state.settings[selectBlockPatternsKey]?.(select)) !== null && _state$settings$selec !== void 0 ? _state$settings$selec : [])].filter((x, index, arr) => index === arr.findIndex(y => x.name === y.name));
-}, getAllPatternsDependants(select)));
-
-/**
- * Returns the element of the last element that had focus when focus left the editor canvas.
- *
- * @param {Object} state Block editor state.
- *
- * @return {Object} Element.
- */
-function getLastFocus(state) {
- return state.lastFocus;
-}
-
-/**
- * Returns true if the user is dragging anything, or false otherwise. It is possible for a
- * user to be dragging data from outside of the editor, so this selector is separate from
- * the `isDraggingBlocks` selector which only returns true if the user is dragging blocks.
- *
- * @param {Object} state Global application state.
- *
- * @return {boolean} Whether user is dragging.
- */
-function private_selectors_isDragging(state) {
- return state.isDragging;
-}
+ dispatch.__unstableSetTemporarilyEditingAsBlocks(clientId, focusModeToRevert);
+};
;// CONCATENATED MODULE: external ["wp","a11y"]
const external_wp_a11y_namespaceObject = window["wp"]["a11y"];
+;// CONCATENATED MODULE: external ["wp","notices"]
+const external_wp_notices_namespaceObject = window["wp"]["notices"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/selection.js
/**
* WordPress dependencies
@@ -14948,6 +14249,13 @@ function retrieveSelectedAttribute(blockAttributes) {
value.toString().indexOf(START_OF_SELECTED_AREA) !== -1;
});
}
+function findRichTextAttributeKey(blockType) {
+ for (const [key, value] of Object.entries(blockType.attributes)) {
+ if (value.source === 'rich-text' || value.source === 'html') {
+ return key;
+ }
+ }
+}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/actions.js
/* eslint no-console: [ 'error', { allow: [ 'error', 'warn' ] } ] */
@@ -14960,12 +14268,15 @@ function retrieveSelectedAttribute(blockAttributes) {
+
/**
* Internal dependencies
*/
+
+
/** @typedef {import('../components/use-on-block-drop/types').WPDropOperation} WPDropOperation */
const actions_castArray = maybeArray => Array.isArray(maybeArray) ? maybeArray : [maybeArray];
@@ -15247,34 +14558,6 @@ function toggleSelection(isSelectionEnabled = true) {
isSelectionEnabled
};
}
-function getBlocksWithDefaultStylesApplied(blocks, blockEditorSettings) {
- var _blockEditorSettings$;
- const preferredStyleVariations = (_blockEditorSettings$ = blockEditorSettings?.__experimentalPreferredStyleVariations?.value) !== null && _blockEditorSettings$ !== void 0 ? _blockEditorSettings$ : {};
- return blocks.map(block => {
- const blockName = block.name;
- if (!(0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockName, 'defaultStylePicker', true)) {
- return block;
- }
- if (!preferredStyleVariations[blockName]) {
- return block;
- }
- const className = block.attributes?.className;
- if (className?.includes('is-style-')) {
- return block;
- }
- const {
- attributes = {}
- } = block;
- const blockStyle = preferredStyleVariations[blockName];
- return {
- ...block,
- attributes: {
- ...attributes,
- className: `${className || ''} is-style-${blockStyle}`.trim()
- }
- };
- });
-}
/* eslint-disable jsdoc/valid-types */
/**
@@ -15295,7 +14578,7 @@ const replaceBlocks = (clientIds, blocks, indexToSelect, initialPosition = 0, me
}) => {
/* eslint-enable jsdoc/valid-types */
clientIds = actions_castArray(clientIds);
- blocks = getBlocksWithDefaultStylesApplied(actions_castArray(blocks), select.getSettings());
+ blocks = actions_castArray(blocks);
const rootClientId = select.getBlockRootClientId(clientIds[0]);
// Replace is valid if the new blocks can be inserted in the root block.
for (let index = 0; index < blocks.length; index++) {
@@ -15348,7 +14631,7 @@ const createOnMove = type => (clientIds, rootClientId) => ({
dispatch
}) => {
// If one of the blocks is locked or the parent is locked, we cannot move any block.
- const canMoveBlocks = select.canMoveBlocks(clientIds, rootClientId);
+ const canMoveBlocks = select.canMoveBlocks(clientIds);
if (!canMoveBlocks) {
return;
}
@@ -15373,7 +14656,7 @@ const moveBlocksToPosition = (clientIds, fromRootClientId = '', toRootClientId =
select,
dispatch
}) => {
- const canMoveBlocks = select.canMoveBlocks(clientIds, fromRootClientId);
+ const canMoveBlocks = select.canMoveBlocks(clientIds);
// If one of the blocks is locked or the parent is locked, we cannot move any block.
if (!canMoveBlocks) {
@@ -15382,7 +14665,7 @@ const moveBlocksToPosition = (clientIds, fromRootClientId = '', toRootClientId =
// If moving inside the same root block the move is always possible.
if (fromRootClientId !== toRootClientId) {
- const canRemoveBlocks = select.canRemoveBlocks(clientIds, fromRootClientId);
+ const canRemoveBlocks = select.canRemoveBlocks(clientIds);
// If we're moving to another block, it means we're deleting blocks from
// the original block, so we need to check if removing is possible.
@@ -15464,7 +14747,7 @@ const insertBlocks = (blocks, index, rootClientId, updateSelection = true, initi
hint: 'The meta argument is now the 6th argument of the function'
});
}
- blocks = getBlocksWithDefaultStylesApplied(actions_castArray(blocks), select.getSettings());
+ blocks = actions_castArray(blocks);
const allowedBlocks = [];
for (const block of blocks) {
const isValid = select.canInsertBlockType(block.name, rootClientId);
@@ -15573,10 +14856,14 @@ const __unstableDeleteSelection = isForward => ({
}) => {
const selectionAnchor = select.getSelectionStart();
const selectionFocus = select.getSelectionEnd();
- if (selectionAnchor.clientId === selectionFocus.clientId) return;
+ if (selectionAnchor.clientId === selectionFocus.clientId) {
+ return;
+ }
// It's not mergeable if there's no rich text selection.
- if (!selectionAnchor.attributeKey || !selectionFocus.attributeKey || typeof selectionAnchor.offset === 'undefined' || typeof selectionFocus.offset === 'undefined') return false;
+ if (!selectionAnchor.attributeKey || !selectionFocus.attributeKey || typeof selectionAnchor.offset === 'undefined' || typeof selectionFocus.offset === 'undefined') {
+ return false;
+ }
const anchorRootClientId = select.getBlockRootClientId(selectionAnchor.clientId);
const focusRootClientId = select.getBlockRootClientId(selectionFocus.clientId);
@@ -15678,17 +14965,15 @@ const __unstableDeleteSelection = isForward => ({
/**
* Split the current selection.
+ * @param {?Array} blocks
*/
-const __unstableSplitSelection = () => ({
+const __unstableSplitSelection = (blocks = []) => ({
+ registry,
select,
dispatch
}) => {
const selectionAnchor = select.getSelectionStart();
const selectionFocus = select.getSelectionEnd();
- if (selectionAnchor.clientId === selectionFocus.clientId) return;
-
- // Can't split if the selection is not set.
- if (!selectionAnchor.attributeKey || !selectionFocus.attributeKey || typeof selectionAnchor.offset === 'undefined' || typeof selectionFocus.offset === 'undefined') return;
const anchorRootClientId = select.getBlockRootClientId(selectionAnchor.clientId);
const focusRootClientId = select.getBlockRootClientId(selectionFocus.clientId);
@@ -15714,8 +14999,65 @@ const __unstableSplitSelection = () => ({
const selectionB = selectionEnd;
const blockA = select.getBlock(selectionA.clientId);
const blockB = select.getBlock(selectionB.clientId);
- const htmlA = blockA.attributes[selectionA.attributeKey];
- const htmlB = blockB.attributes[selectionB.attributeKey];
+ const blockAType = (0,external_wp_blocks_namespaceObject.getBlockType)(blockA.name);
+ const blockBType = (0,external_wp_blocks_namespaceObject.getBlockType)(blockB.name);
+ const attributeKeyA = typeof selectionA.attributeKey === 'string' ? selectionA.attributeKey : findRichTextAttributeKey(blockAType);
+ const attributeKeyB = typeof selectionB.attributeKey === 'string' ? selectionB.attributeKey : findRichTextAttributeKey(blockBType);
+ const blockAttributes = select.getBlockAttributes(selectionA.clientId);
+ const bindings = blockAttributes?.metadata?.bindings;
+
+ // If the attribute is bound, don't split the selection and insert a new block instead.
+ if (bindings?.[attributeKeyA]) {
+ // Show warning if user tries to insert a block into another block with bindings.
+ if (blocks.length) {
+ const {
+ createWarningNotice
+ } = registry.dispatch(external_wp_notices_namespaceObject.store);
+ createWarningNotice((0,external_wp_i18n_namespaceObject.__)("Blocks can't be inserted into other blocks with bindings"), {
+ type: 'snackbar'
+ });
+ return;
+ }
+ dispatch.insertAfterBlock(selectionA.clientId);
+ return;
+ }
+
+ // Can't split if the selection is not set.
+ if (!attributeKeyA || !attributeKeyB || typeof selectionAnchor.offset === 'undefined' || typeof selectionFocus.offset === 'undefined') {
+ return;
+ }
+
+ // We can do some short-circuiting if the selection is collapsed.
+ if (selectionA.clientId === selectionB.clientId && attributeKeyA === attributeKeyB && selectionA.offset === selectionB.offset) {
+ // If an unmodified default block is selected, replace it. We don't
+ // want to be converting into a default block.
+ if (blocks.length) {
+ if ((0,external_wp_blocks_namespaceObject.isUnmodifiedDefaultBlock)(blockA)) {
+ dispatch.replaceBlocks([selectionA.clientId], blocks, blocks.length - 1, -1);
+ return;
+ }
+ }
+
+ // If selection is at the start or end, we can simply insert an
+ // empty block, provided this block has no inner blocks.
+ else if (!select.getBlockOrder(selectionA.clientId).length) {
+ function createEmpty() {
+ const defaultBlockName = (0,external_wp_blocks_namespaceObject.getDefaultBlockName)();
+ return select.canInsertBlockType(defaultBlockName, anchorRootClientId) ? (0,external_wp_blocks_namespaceObject.createBlock)(defaultBlockName) : (0,external_wp_blocks_namespaceObject.createBlock)(select.getBlockName(selectionA.clientId));
+ }
+ const length = blockAttributes[attributeKeyA].length;
+ if (selectionA.offset === 0 && length) {
+ dispatch.insertBlocks([createEmpty()], select.getBlockIndex(selectionA.clientId), anchorRootClientId, false);
+ return;
+ }
+ if (selectionA.offset === length) {
+ dispatch.insertBlocks([createEmpty()], select.getBlockIndex(selectionA.clientId) + 1, anchorRootClientId);
+ return;
+ }
+ }
+ }
+ const htmlA = blockA.attributes[attributeKeyA];
+ const htmlB = blockB.attributes[attributeKeyB];
let valueA = (0,external_wp_richText_namespaceObject.create)({
html: htmlA
});
@@ -15724,25 +15066,119 @@ const __unstableSplitSelection = () => ({
});
valueA = (0,external_wp_richText_namespaceObject.remove)(valueA, selectionA.offset, valueA.text.length);
valueB = (0,external_wp_richText_namespaceObject.remove)(valueB, 0, selectionB.offset);
- dispatch.replaceBlocks(select.getSelectedBlockClientIds(), [{
+ let head = {
// Preserve the original client ID.
...blockA,
+ // If both start and end are the same, should only copy innerBlocks
+ // once.
+ innerBlocks: blockA.clientId === blockB.clientId ? [] : blockA.innerBlocks,
attributes: {
...blockA.attributes,
- [selectionA.attributeKey]: (0,external_wp_richText_namespaceObject.toHTMLString)({
+ [attributeKeyA]: (0,external_wp_richText_namespaceObject.toHTMLString)({
value: valueA
})
}
- }, {
- // Preserve the original client ID.
+ };
+ let tail = {
...blockB,
+ // Only preserve the original client ID if the end is different.
+ clientId: blockA.clientId === blockB.clientId ? (0,external_wp_blocks_namespaceObject.createBlock)(blockB.name).clientId : blockB.clientId,
attributes: {
...blockB.attributes,
- [selectionB.attributeKey]: (0,external_wp_richText_namespaceObject.toHTMLString)({
+ [attributeKeyB]: (0,external_wp_richText_namespaceObject.toHTMLString)({
value: valueB
})
}
- }]);
+ };
+
+ // When splitting a block, attempt to convert the tail block to the
+ // default block type. For example, when splitting a heading block, the
+ // tail block will be converted to a paragraph block. Note that for
+ // blocks such as a list item and button, this will be skipped because
+ // the default block type cannot be inserted.
+ const defaultBlockName = (0,external_wp_blocks_namespaceObject.getDefaultBlockName)();
+ if (
+ // A block is only split when the selection is within the same
+ // block.
+ blockA.clientId === blockB.clientId && defaultBlockName && tail.name !== defaultBlockName && select.canInsertBlockType(defaultBlockName, anchorRootClientId)) {
+ const switched = (0,external_wp_blocks_namespaceObject.switchToBlockType)(tail, defaultBlockName);
+ if (switched?.length === 1) {
+ tail = switched[0];
+ }
+ }
+ if (!blocks.length) {
+ dispatch.replaceBlocks(select.getSelectedBlockClientIds(), [head, tail]);
+ return;
+ }
+ let selection;
+ const output = [];
+ const clonedBlocks = [...blocks];
+ const firstBlock = clonedBlocks.shift();
+ const headType = (0,external_wp_blocks_namespaceObject.getBlockType)(head.name);
+ const firstBlocks = headType.merge && firstBlock.name === headType.name ? [firstBlock] : (0,external_wp_blocks_namespaceObject.switchToBlockType)(firstBlock, headType.name);
+ if (firstBlocks?.length) {
+ const first = firstBlocks.shift();
+ head = {
+ ...head,
+ attributes: {
+ ...head.attributes,
+ ...headType.merge(head.attributes, first.attributes)
+ }
+ };
+ output.push(head);
+ selection = {
+ clientId: head.clientId,
+ attributeKey: attributeKeyA,
+ offset: (0,external_wp_richText_namespaceObject.create)({
+ html: head.attributes[attributeKeyA]
+ }).text.length
+ };
+ clonedBlocks.unshift(...firstBlocks);
+ } else {
+ if (!(0,external_wp_blocks_namespaceObject.isUnmodifiedBlock)(head)) {
+ output.push(head);
+ }
+ output.push(firstBlock);
+ }
+ const lastBlock = clonedBlocks.pop();
+ const tailType = (0,external_wp_blocks_namespaceObject.getBlockType)(tail.name);
+ if (clonedBlocks.length) {
+ output.push(...clonedBlocks);
+ }
+ if (lastBlock) {
+ const lastBlocks = tailType.merge && tailType.name === lastBlock.name ? [lastBlock] : (0,external_wp_blocks_namespaceObject.switchToBlockType)(lastBlock, tailType.name);
+ if (lastBlocks?.length) {
+ const last = lastBlocks.pop();
+ output.push({
+ ...tail,
+ attributes: {
+ ...tail.attributes,
+ ...tailType.merge(last.attributes, tail.attributes)
+ }
+ });
+ output.push(...lastBlocks);
+ selection = {
+ clientId: tail.clientId,
+ attributeKey: attributeKeyB,
+ offset: (0,external_wp_richText_namespaceObject.create)({
+ html: last.attributes[attributeKeyB]
+ }).text.length
+ };
+ } else {
+ output.push(lastBlock);
+ if (!(0,external_wp_blocks_namespaceObject.isUnmodifiedBlock)(tail)) {
+ output.push(tail);
+ }
+ }
+ } else if (!(0,external_wp_blocks_namespaceObject.isUnmodifiedBlock)(tail)) {
+ output.push(tail);
+ }
+ registry.batch(() => {
+ dispatch.replaceBlocks(select.getSelectedBlockClientIds(), output, output.length - 1, 0);
+ if (selection) {
+ dispatch.selectionChange(selection.clientId, selection.attributeKey, selection.offset, selection.offset);
+ }
+ });
};
/**
@@ -15775,15 +15211,13 @@ const mergeBlocks = (firstBlockClientId, secondBlockClientId) => ({
select,
dispatch
}) => {
- const blocks = [firstBlockClientId, secondBlockClientId];
- dispatch({
- type: 'MERGE_BLOCKS',
- blocks
- });
- const [clientIdA, clientIdB] = blocks;
+ const clientIdA = firstBlockClientId;
+ const clientIdB = secondBlockClientId;
const blockA = select.getBlock(clientIdA);
const blockAType = (0,external_wp_blocks_namespaceObject.getBlockType)(blockA.name);
- if (!blockAType) return;
+ if (!blockAType) {
+ return;
+ }
const blockB = select.getBlock(clientIdB);
if (!blockAType.merge && (0,external_wp_blocks_namespaceObject.getBlockSupport)(blockA.name, '__experimentalOnMerge')) {
// If there's no merge function defined, attempt merging inner
@@ -16098,11 +15532,18 @@ const insertDefaultBlock = (attributes, rootClientId, index) => ({
};
/**
- * Action that changes the nested settings of a given block.
+ * @typedef {Object< string, Object >} SettingsByClientId
+ */
+
+/**
+ * Action that changes the nested settings of the given block(s).
*
- * @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.
+ * @param {string | SettingsByClientId} clientId Client ID of the block whose
+ * nested setting are being
+ * received, or object of settings
+ * by client ID.
+ * @param {Object} settings Object with the new settings
+ * for the nested block.
*
* @return {Object} Action object
*/
@@ -16207,13 +15648,28 @@ const setNavigationMode = (isNavigationMode = true) => ({
*/
const __unstableSetEditorMode = mode => ({
dispatch,
- select
+ select,
+ registry
}) => {
- // When switching to zoom-out mode, we need to select the root block
+ // When switching to zoom-out mode, we need to select the parent section
if (mode === 'zoom-out') {
const firstSelectedClientId = select.getBlockSelectionStart();
+ const {
+ sectionRootClientId
+ } = unlock(registry.select(STORE_NAME).getSettings());
if (firstSelectedClientId) {
- dispatch.selectBlock(select.getBlockHierarchyRootClientId(firstSelectedClientId));
+ let sectionClientId;
+ if (sectionRootClientId) {
+ const sectionClientIds = select.getBlockOrder(sectionRootClientId);
+ sectionClientId = select.getBlockParents(firstSelectedClientId).find(parent => sectionClientIds.includes(parent));
+ } else {
+ sectionClientId = select.getBlockHierarchyRootClientId(firstSelectedClientId);
+ }
+ if (sectionClientId) {
+ dispatch.selectBlock(sectionClientId);
+ } else {
+ dispatch.clearSelectedBlock();
+ }
}
}
dispatch({
@@ -16508,7 +15964,7 @@ function __unstableSetTemporarilyEditingAsBlocks(temporarilyEditingAsBlocks, foc
* per_page: 'page_size',
* search: 'q',
* };
- * const url = new URL( 'https://api.openverse.engineering/v1/images/' );
+ * const url = new URL( 'https://api.openverse.org/v1/images/' );
* Object.entries( finalQuery ).forEach( ( [ key, value ] ) => {
* const queryKey = mapFromInserterMediaRequest[ key ] || key;
* url.searchParams.set( queryKey, value );
@@ -17045,16 +16501,17 @@ function roundToPrecision(value, digits = 3) {
* Takes into account fluid typography parameters and attempts to return a css formula depending on available, valid values.
*
* @param {Preset} preset
- * @param {Object} typographyOptions
- * @param {boolean|TypographySettings} typographyOptions.fluid Whether fluid typography is enabled, and, optionally, fluid font size options.
+ * @param {Object} settings
+ * @param {boolean|TypographySettings} settings.typography.fluid Whether fluid typography is enabled, and, optionally, fluid font size options.
+ * @param {Object?} settings.typography.layout Layout options.
*
* @return {string|*} A font-size value or the value of preset.size.
*/
-function getTypographyFontSizeValue(preset, typographyOptions) {
+function getTypographyFontSizeValue(preset, settings) {
const {
size: defaultSize
} = preset;
- if (!isFluidTypographyEnabled(typographyOptions)) {
+ if (!isFluidTypographyEnabled(settings?.typography)) {
return defaultSize;
}
/*
@@ -17065,7 +16522,8 @@ function getTypographyFontSizeValue(preset, typographyOptions) {
if (!defaultSize || '0' === defaultSize || false === preset?.fluid) {
return defaultSize;
}
- const fluidTypographySettings = typeof typographyOptions?.fluid === 'object' ? typographyOptions?.fluid : {};
+ let fluidTypographySettings = getFluidTypographyOptionsFromSettings(settings);
+ fluidTypographySettings = typeof fluidTypographySettings?.fluid === 'object' ? fluidTypographySettings?.fluid : {};
const fluidFontSizeValue = getComputedFluidTypographyValue({
minimumFontSize: preset?.fluid?.min,
maximumFontSize: preset?.fluid?.max,
@@ -17113,15 +16571,19 @@ function getFluidTypographyOptionsFromSettings(settings) {
/**
+ * WordPress dependencies
+ */
+
+
+/**
* Internal dependencies
*/
/* Supporting data. */
-const ROOT_BLOCK_NAME = 'root';
const ROOT_BLOCK_SELECTOR = 'body';
-const ROOT_BLOCK_SUPPORTS = (/* unused pure expression or super */ null && (['background', 'backgroundColor', 'color', 'linkColor', 'captionColor', 'buttonColor', 'headingColor', 'fontFamily', 'fontSize', 'fontStyle', 'fontWeight', 'lineHeight', 'textDecoration', 'textTransform', 'padding']));
+const ROOT_CSS_PROPERTIES_SELECTOR = ':root';
const PRESET_METADATA = [{
path: ['color', 'palette'],
valueKey: 'color',
@@ -17159,7 +16621,7 @@ const PRESET_METADATA = [{
classes: []
}, {
path: ['typography', 'fontSizes'],
- valueFunc: (preset, settings) => getTypographyFontSizeValue(preset, getFluidTypographyOptionsFromSettings(settings)),
+ valueFunc: (preset, settings) => getTypographyFontSizeValue(preset, settings),
valueKey: 'size',
cssVarInfix: 'font-size',
classes: [{
@@ -17239,12 +16701,16 @@ const STYLE_PATH_TO_PRESET_BLOCK_ATTRIBUTE = {
'typography.fontSize': 'fontSize',
'typography.fontFamily': 'fontFamily'
};
-const TOOLSPANEL_DROPDOWNMENU_PROPS = {
- popoverProps: {
- placement: 'left-start',
- offset: 259 // Inner sidebar width (248px) - button width (24px) - border (1px) + padding (16px) + spacing (20px)
- }
-};
+function useToolsPanelDropdownMenuProps() {
+ const isMobile = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
+ return !isMobile ? {
+ popoverProps: {
+ placement: 'left-start',
+ // For non-mobile, inner sidebar width (248px) - button width (24px) - border (1px) + padding (16px) + spacing (20px)
+ offset: 259
+ }
+ } : {};
+}
function findInPresetsBy(features, blockName, presetPath, presetProperty, presetValueValue) {
// Block presets take priority above root level presets.
const orderedPresetsByOrigin = [getValueFromObjectPath(features, ['blocks', blockName, ...presetPath]), getValueFromObjectPath(features, presetPath)];
@@ -17382,6 +16848,9 @@ function getValueFromVariable(features, blockName, variable) {
* @return {string} Scoped selector.
*/
function scopeSelector(scope, selector) {
+ if (!scope || !selector) {
+ return selector;
+ }
const scopes = scope.split(',');
const selectors = selector.split(',');
const selectorsScoped = [];
@@ -17394,6 +16863,47 @@ function scopeSelector(scope, selector) {
}
/**
+ * Scopes a collection of selectors for features and subfeatures.
+ *
+ * @example
+ * ```js
+ * const scope = '.custom-scope';
+ * const selectors = {
+ * color: '.wp-my-block p',
+ * typography: { fontSize: '.wp-my-block caption' },
+ * };
+ * const result = scopeFeatureSelector( scope, selectors );
+ * // result is {
+ * // color: '.custom-scope .wp-my-block p',
+ * // typography: { fonSize: '.custom-scope .wp-my-block caption' },
+ * // }
+ * ```
+ *
+ * @param {string} scope Selector to scope collection of selectors with.
+ * @param {Object} selectors Collection of feature selectors e.g.
+ *
+ * @return {Object|undefined} Scoped collection of feature selectors.
+ */
+function scopeFeatureSelectors(scope, selectors) {
+ if (!scope || !selectors) {
+ return;
+ }
+ const featureSelectors = {};
+ Object.entries(selectors).forEach(([feature, selector]) => {
+ if (typeof selector === 'string') {
+ featureSelectors[feature] = scopeSelector(scope, selector);
+ }
+ if (typeof selector === 'object') {
+ featureSelectors[feature] = {};
+ Object.entries(selector).forEach(([subfeature, subfeatureSelector]) => {
+ featureSelectors[feature][subfeature] = scopeSelector(scope, subfeatureSelector);
+ });
+ }
+ });
+ return featureSelectors;
+}
+
+/**
* Appends a sub-selector to an existing one.
*
* Given the compounded `selector` "h1, h2, h3"
@@ -17505,14 +17015,18 @@ const EMPTY_CONFIG = {
settings: {},
styles: {}
};
-const VALID_SETTINGS = ['appearanceTools', 'useRootPaddingAwareAlignments', 'background.backgroundImage', 'background.backgroundRepeat', 'background.backgroundSize', 'border.color', 'border.radius', 'border.style', 'border.width', 'shadow.presets', 'shadow.defaultPresets', 'color.background', 'color.button', 'color.caption', 'color.custom', 'color.customDuotone', 'color.customGradient', 'color.defaultDuotone', 'color.defaultGradients', 'color.defaultPalette', 'color.duotone', 'color.gradients', 'color.heading', 'color.link', 'color.palette', 'color.text', 'custom', 'dimensions.aspectRatio', 'dimensions.minHeight', 'layout.contentSize', 'layout.definitions', 'layout.wideSize', 'lightbox.enabled', 'lightbox.allowEditing', 'position.fixed', 'position.sticky', 'spacing.customSpacingSize', 'spacing.spacingSizes', 'spacing.spacingScale', 'spacing.blockGap', 'spacing.margin', 'spacing.padding', 'spacing.units', 'typography.fluid', 'typography.customFontSize', 'typography.dropCap', 'typography.fontFamilies', 'typography.fontSizes', 'typography.fontStyle', 'typography.fontWeight', 'typography.letterSpacing', 'typography.lineHeight', 'typography.textColumns', 'typography.textDecoration', 'typography.textTransform', 'typography.writingMode'];
+const VALID_SETTINGS = ['appearanceTools', 'useRootPaddingAwareAlignments', 'background.backgroundImage', 'background.backgroundRepeat', 'background.backgroundSize', 'background.backgroundPosition', 'border.color', 'border.radius', 'border.style', 'border.width', 'shadow.presets', 'shadow.defaultPresets', 'color.background', 'color.button', 'color.caption', 'color.custom', 'color.customDuotone', 'color.customGradient', 'color.defaultDuotone', 'color.defaultGradients', 'color.defaultPalette', 'color.duotone', 'color.gradients', 'color.heading', 'color.link', 'color.palette', 'color.text', 'custom', 'dimensions.aspectRatio', 'dimensions.minHeight', 'layout.contentSize', 'layout.definitions', 'layout.wideSize', 'lightbox.enabled', 'lightbox.allowEditing', 'position.fixed', 'position.sticky', 'spacing.customSpacingSize', 'spacing.defaultSpacingSizes', 'spacing.spacingSizes', 'spacing.spacingScale', 'spacing.blockGap', 'spacing.margin', 'spacing.padding', 'spacing.units', 'typography.fluid', 'typography.customFontSize', 'typography.defaultFontSizes', 'typography.dropCap', 'typography.fontFamilies', 'typography.fontSizes', 'typography.fontStyle', 'typography.fontWeight', 'typography.letterSpacing', 'typography.lineHeight', 'typography.textAlign', 'typography.textColumns', 'typography.textDecoration', 'typography.textTransform', 'typography.writingMode'];
const useGlobalStylesReset = () => {
const {
- user: config,
+ user,
setUserConfig
} = (0,external_wp_element_namespaceObject.useContext)(GlobalStylesContext);
+ const config = {
+ settings: user.settings,
+ styles: user.styles
+ };
const canReset = !!config && !es6_default()(config, EMPTY_CONFIG);
- return [canReset, (0,external_wp_element_namespaceObject.useCallback)(() => setUserConfig(() => EMPTY_CONFIG), [setUserConfig])];
+ return [canReset, (0,external_wp_element_namespaceObject.useCallback)(() => setUserConfig(EMPTY_CONFIG), [setUserConfig])];
};
function useGlobalSetting(propertyPath, blockName, source = 'all') {
const {
@@ -17581,6 +17095,12 @@ function useGlobalStyle(path, blockName, source = 'all', {
}
return [result, setStyle];
}
+function useGlobalStyleLinks() {
+ const {
+ merged: mergedConfig
+ } = (0,external_wp_element_namespaceObject.useContext)(GlobalStylesContext);
+ return mergedConfig?._links;
+}
/**
* React hook that overrides a global settings object with block and element specific settings.
@@ -17609,7 +17129,8 @@ function useSettingsForBlockElement(parentSettings, blockName, element) {
updatedSettings.typography = {
...updatedSettings.typography,
fontSizes: {},
- customFontSize: false
+ customFontSize: false,
+ defaultFontSizes: false
};
}
if (!supportedStyles.includes('fontFamily')) {
@@ -17639,7 +17160,7 @@ function useSettingsForBlockElement(parentSettings, blockName, element) {
updatedSettings.color.defaultDuotone = false;
updatedSettings.color.customDuotone = false;
}
- ['lineHeight', 'fontStyle', 'fontWeight', 'letterSpacing', 'textTransform', 'textDecoration', 'writingMode'].forEach(key => {
+ ['lineHeight', 'fontStyle', 'fontWeight', 'letterSpacing', 'textAlign', 'textTransform', 'textDecoration', 'writingMode'].forEach(key => {
if (!supportedStyles.includes(key)) {
updatedSettings.typography = {
...updatedSettings.typography,
@@ -17701,8 +17222,13 @@ function useSettingsForBlockElement(parentSettings, blockName, element) {
}
});
updatedSettings.shadow = supportedStyles.includes('shadow') ? updatedSettings.shadow : false;
+
+ // Text alignment is only available for blocks.
+ if (element) {
+ updatedSettings.typography.textAlign = false;
+ }
return updatedSettings;
- }, [parentSettings, supportedStyles, supports]);
+ }, [parentSettings, supportedStyles, supports, element]);
}
function useColorsPerOrigin(settings) {
const customColors = settings?.color?.palette?.custom;
@@ -17761,11 +17287,9 @@ function useGradientsPerOrigin(settings) {
}, [customGradients, themeGradients, defaultGradients, shouldDisplayDefaultGradients]);
}
-// EXTERNAL MODULE: ./node_modules/classnames/index.js
-var classnames = __webpack_require__(5755);
-var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
+;// CONCATENATED MODULE: ./node_modules/clsx/dist/clsx.mjs
+function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/utils.js
-
/**
* WordPress dependencies
*/
@@ -17795,6 +17319,7 @@ var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
* @param {*} object
* @return {*} Object cleaned from falsy values
*/
+
const utils_cleanEmptyObject = object => {
if (object === null || typeof object !== 'object' || Array.isArray(object)) {
return object;
@@ -17862,31 +17387,60 @@ function shouldSkipSerialization(blockNameOrType, featureSet, feature) {
}
return skipSerialization;
}
+const pendingStyleOverrides = new WeakMap();
function useStyleOverride({
id,
css,
assets,
- __unstableType
+ __unstableType,
+ variation,
+ clientId
} = {}) {
const {
setStyleOverride,
deleteStyleOverride
} = unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
+ const registry = (0,external_wp_data_namespaceObject.useRegistry)();
const fallbackId = (0,external_wp_element_namespaceObject.useId)();
(0,external_wp_element_namespaceObject.useEffect)(() => {
// Unmount if there is CSS and assets are empty.
- if (!css && !assets) return;
+ if (!css && !assets) {
+ return;
+ }
const _id = id || fallbackId;
- setStyleOverride(_id, {
+ const override = {
id,
css,
assets,
- __unstableType
+ __unstableType,
+ variation,
+ clientId
+ };
+ // Batch updates to style overrides to avoid triggering cascading renders
+ // for each style override block included in a tree and optimize initial render.
+ if (!pendingStyleOverrides.get(registry)) {
+ pendingStyleOverrides.set(registry, []);
+ }
+ pendingStyleOverrides.get(registry).push([_id, override]);
+ window.queueMicrotask(() => {
+ if (pendingStyleOverrides.get(registry)?.length) {
+ registry.batch(() => {
+ pendingStyleOverrides.get(registry).forEach(args => {
+ setStyleOverride(...args);
+ });
+ pendingStyleOverrides.set(registry, []);
+ });
+ }
});
return () => {
- deleteStyleOverride(_id);
+ const isPending = pendingStyleOverrides.get(registry)?.find(([currentId]) => currentId === _id);
+ if (isPending) {
+ pendingStyleOverrides.set(registry, pendingStyleOverrides.get(registry).filter(([currentId]) => currentId !== _id));
+ } else {
+ deleteStyleOverride(_id);
+ }
};
- }, [id, css, assets, __unstableType, fallbackId, setStyleOverride, deleteStyleOverride]);
+ }, [id, css, clientId, assets, __unstableType, fallbackId, setStyleOverride, deleteStyleOverride, registry]);
}
/**
@@ -17900,7 +17454,7 @@ function useStyleOverride({
* @return {Object} Settings object.
*/
function useBlockSettings(name, parentLayout) {
- const [backgroundImage, backgroundSize, customFontFamilies, defaultFontFamilies, themeFontFamilies, customFontSizes, defaultFontSizes, themeFontSizes, customFontSize, fontStyle, fontWeight, lineHeight, textColumns, textDecoration, writingMode, textTransform, letterSpacing, padding, margin, blockGap, spacingSizes, units, aspectRatio, minHeight, layout, borderColor, borderRadius, borderStyle, borderWidth, customColorsEnabled, customColors, customDuotone, themeColors, defaultColors, defaultPalette, defaultDuotone, userDuotonePalette, themeDuotonePalette, defaultDuotonePalette, userGradientPalette, themeGradientPalette, defaultGradientPalette, defaultGradients, areCustomGradientsEnabled, isBackgroundEnabled, isLinkEnabled, isTextEnabled, isHeadingEnabled, isButtonEnabled, shadow] = use_settings_useSettings('background.backgroundImage', 'background.backgroundSize', 'typography.fontFamilies.custom', 'typography.fontFamilies.default', 'typography.fontFamilies.theme', 'typography.fontSizes.custom', 'typography.fontSizes.default', 'typography.fontSizes.theme', 'typography.customFontSize', 'typography.fontStyle', 'typography.fontWeight', 'typography.lineHeight', 'typography.textColumns', 'typography.textDecoration', 'typography.writingMode', 'typography.textTransform', 'typography.letterSpacing', 'spacing.padding', 'spacing.margin', 'spacing.blockGap', 'spacing.spacingSizes', 'spacing.units', 'dimensions.aspectRatio', 'dimensions.minHeight', 'layout', 'border.color', 'border.radius', 'border.style', 'border.width', 'color.custom', 'color.palette.custom', 'color.customDuotone', 'color.palette.theme', 'color.palette.default', 'color.defaultPalette', 'color.defaultDuotone', 'color.duotone.custom', 'color.duotone.theme', 'color.duotone.default', 'color.gradients.custom', 'color.gradients.theme', 'color.gradients.default', 'color.defaultGradients', 'color.customGradient', 'color.background', 'color.link', 'color.text', 'color.heading', 'color.button', 'shadow');
+ const [backgroundImage, backgroundSize, customFontFamilies, defaultFontFamilies, themeFontFamilies, defaultFontSizesEnabled, customFontSizes, defaultFontSizes, themeFontSizes, customFontSize, fontStyle, fontWeight, lineHeight, textAlign, textColumns, textDecoration, writingMode, textTransform, letterSpacing, padding, margin, blockGap, defaultSpacingSizesEnabled, customSpacingSize, userSpacingSizes, defaultSpacingSizes, themeSpacingSizes, units, aspectRatio, minHeight, layout, borderColor, borderRadius, borderStyle, borderWidth, customColorsEnabled, customColors, customDuotone, themeColors, defaultColors, defaultPalette, defaultDuotone, userDuotonePalette, themeDuotonePalette, defaultDuotonePalette, userGradientPalette, themeGradientPalette, defaultGradientPalette, defaultGradients, areCustomGradientsEnabled, isBackgroundEnabled, isLinkEnabled, isTextEnabled, isHeadingEnabled, isButtonEnabled, shadow] = use_settings_useSettings('background.backgroundImage', 'background.backgroundSize', 'typography.fontFamilies.custom', 'typography.fontFamilies.default', 'typography.fontFamilies.theme', 'typography.defaultFontSizes', 'typography.fontSizes.custom', 'typography.fontSizes.default', 'typography.fontSizes.theme', 'typography.customFontSize', 'typography.fontStyle', 'typography.fontWeight', 'typography.lineHeight', 'typography.textAlign', 'typography.textColumns', 'typography.textDecoration', 'typography.writingMode', 'typography.textTransform', 'typography.letterSpacing', 'spacing.padding', 'spacing.margin', 'spacing.blockGap', 'spacing.defaultSpacingSizes', 'spacing.customSpacingSize', 'spacing.spacingSizes.custom', 'spacing.spacingSizes.default', 'spacing.spacingSizes.theme', 'spacing.units', 'dimensions.aspectRatio', 'dimensions.minHeight', 'layout', 'border.color', 'border.radius', 'border.style', 'border.width', 'color.custom', 'color.palette.custom', 'color.customDuotone', 'color.palette.theme', 'color.palette.default', 'color.defaultPalette', 'color.defaultDuotone', 'color.duotone.custom', 'color.duotone.theme', 'color.duotone.default', 'color.gradients.custom', 'color.gradients.theme', 'color.gradients.default', 'color.defaultGradients', 'color.customGradient', 'color.background', 'color.link', 'color.text', 'color.heading', 'color.button', 'shadow');
const rawSettings = (0,external_wp_element_namespaceObject.useMemo)(() => {
return {
background: {
@@ -17947,9 +17501,11 @@ function useBlockSettings(name, parentLayout) {
theme: themeFontSizes
},
customFontSize,
+ defaultFontSizes: defaultFontSizesEnabled,
fontStyle,
fontWeight,
lineHeight,
+ textAlign,
textColumns,
textDecoration,
textTransform,
@@ -17958,8 +17514,12 @@ function useBlockSettings(name, parentLayout) {
},
spacing: {
spacingSizes: {
- custom: spacingSizes
+ custom: userSpacingSizes,
+ default: defaultSpacingSizes,
+ theme: themeSpacingSizes
},
+ customSpacingSize,
+ defaultSpacingSizes: defaultSpacingSizesEnabled,
padding,
margin,
blockGap,
@@ -17979,7 +17539,7 @@ function useBlockSettings(name, parentLayout) {
parentLayout,
shadow
};
- }, [backgroundImage, backgroundSize, customFontFamilies, defaultFontFamilies, themeFontFamilies, customFontSizes, defaultFontSizes, themeFontSizes, customFontSize, fontStyle, fontWeight, lineHeight, textColumns, textDecoration, textTransform, letterSpacing, writingMode, padding, margin, blockGap, spacingSizes, units, aspectRatio, minHeight, layout, parentLayout, borderColor, borderRadius, borderStyle, borderWidth, customColorsEnabled, customColors, customDuotone, themeColors, defaultColors, defaultPalette, defaultDuotone, userDuotonePalette, themeDuotonePalette, defaultDuotonePalette, userGradientPalette, themeGradientPalette, defaultGradientPalette, defaultGradients, areCustomGradientsEnabled, isBackgroundEnabled, isLinkEnabled, isTextEnabled, isHeadingEnabled, isButtonEnabled, shadow]);
+ }, [backgroundImage, backgroundSize, customFontFamilies, defaultFontFamilies, themeFontFamilies, defaultFontSizesEnabled, customFontSizes, defaultFontSizes, themeFontSizes, customFontSize, fontStyle, fontWeight, lineHeight, textAlign, textColumns, textDecoration, textTransform, letterSpacing, writingMode, padding, margin, blockGap, defaultSpacingSizesEnabled, customSpacingSize, userSpacingSizes, defaultSpacingSizes, themeSpacingSizes, units, aspectRatio, minHeight, layout, parentLayout, borderColor, borderRadius, borderStyle, borderWidth, customColorsEnabled, customColors, customDuotone, themeColors, defaultColors, defaultPalette, defaultDuotone, userDuotonePalette, themeDuotonePalette, defaultDuotonePalette, userGradientPalette, themeGradientPalette, defaultGradientPalette, defaultGradients, areCustomGradientsEnabled, isBackgroundEnabled, isLinkEnabled, isTextEnabled, isHeadingEnabled, isButtonEnabled, shadow]);
return useSettingsForBlockElement(rawSettings, name);
}
function createBlockEditFilter(features) {
@@ -18015,11 +17575,10 @@ function createBlockEditFilter(features) {
neededProps[key] = props.attributes[key];
}
}
- return (0,external_React_.createElement)(Edit
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Edit
// We can use the index because the array length
// is fixed per page load right now.
, {
- key: i,
name: props.name,
isSelected: props.isSelected,
clientId: props.clientId,
@@ -18029,11 +17588,10 @@ function createBlockEditFilter(features) {
// props!!!
,
...neededProps
- });
- }), (0,external_React_.createElement)(OriginalBlockEdit, {
- key: "edit",
+ }, i);
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OriginalBlockEdit, {
...props
- })];
+ }, "edit")];
}, 'withBlockEditHooks');
(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/editor/hooks', withBlockEditHooks);
}
@@ -18069,7 +17627,8 @@ function createBlockListBlockFilter(features) {
const {
hasSupport,
attributeKeys = [],
- useBlockProps
+ useBlockProps,
+ isMatch
} = feature;
const neededProps = {};
for (const key of attributeKeys) {
@@ -18080,41 +17639,40 @@ function createBlockListBlockFilter(features) {
if (
// Skip rendering if none of the needed attributes are
// set.
- !Object.keys(neededProps).length || !hasSupport(props.name)) {
+ !Object.keys(neededProps).length || !hasSupport(props.name) || isMatch && !isMatch(neededProps)) {
return null;
}
- return (0,external_React_.createElement)(BlockPropsPure
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockPropsPure
// We can use the index because the array length
// is fixed per page load right now.
, {
- key: i,
index: i,
useBlockProps: useBlockProps
// This component is pure, so we must pass a stable
// function reference.
,
setAllWrapperProps: setAllWrapperProps,
- name: props.name
+ name: props.name,
+ clientId: props.clientId
// This component is pure, so only pass needed
// props!!!
,
...neededProps
- });
- }), (0,external_React_.createElement)(BlockListBlock, {
- key: "edit",
+ }, i);
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockListBlock, {
...props,
wrapperProps: allWrapperProps.filter(Boolean).reduce((acc, wrapperProps) => {
return {
...acc,
...wrapperProps,
- className: classnames_default()(acc.className, wrapperProps.className),
+ className: dist_clsx(acc.className, wrapperProps.className),
style: {
...acc.style,
...wrapperProps.style
}
};
}, props.wrapperProps || {})
- })];
+ }, "edit")];
}, 'withBlockListBlockHooks');
(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/editor/hooks', withBlockListBlockHooks);
}
@@ -18213,7 +17771,6 @@ function useBlockControlsFill(group, shareWithChildBlocks) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-controls/fill.js
-
/**
* WordPress dependencies
*/
@@ -18223,6 +17780,9 @@ function useBlockControlsFill(group, shareWithChildBlocks) {
* Internal dependencies
*/
+
+
+
function BlockControlsFill({
group = 'default',
controls,
@@ -18233,28 +17793,33 @@ function BlockControlsFill({
if (!Fill) {
return null;
}
- const innerMarkup = (0,external_React_.createElement)(external_React_.Fragment, null, group === 'default' && (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarGroup, {
- controls: controls
- }), children);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalStyleProvider, {
- document: document
- }, (0,external_React_.createElement)(Fill, null, fillProps => {
- // `fillProps.forwardedContext` is an array of context provider entries, provided by slot,
- // that should wrap the fill markup.
- const {
- forwardedContext = []
- } = fillProps;
- return forwardedContext.reduce((inner, [Provider, props]) => (0,external_React_.createElement)(Provider, {
- ...props
- }, inner), innerMarkup);
- }));
+ const innerMarkup = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [group === 'default' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ controls: controls
+ }), children]
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalStyleProvider, {
+ document: document,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Fill, {
+ children: fillProps => {
+ // `fillProps.forwardedContext` is an array of context provider entries, provided by slot,
+ // that should wrap the fill markup.
+ const {
+ forwardedContext = []
+ } = fillProps;
+ return forwardedContext.reduce((inner, [Provider, props]) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Provider, {
+ ...props,
+ children: inner
+ }), innerMarkup);
+ }
+ })
+ });
}
;// CONCATENATED MODULE: external ["wp","warning"]
const external_wp_warning_namespaceObject = window["wp"]["warning"];
var external_wp_warning_default = /*#__PURE__*/__webpack_require__.n(external_wp_warning_namespaceObject);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-controls/slot.js
-
/**
* WordPress dependencies
*/
@@ -18267,6 +17832,7 @@ var external_wp_warning_default = /*#__PURE__*/__webpack_require__.n(external_wp
*/
+
const {
ComponentsContext
} = unlock(external_wp_components_namespaceObject.privateApis);
@@ -18292,7 +17858,7 @@ function BlockControlsSlot({
if (!fills?.length) {
return null;
}
- const slot = (0,external_React_.createElement)(Slot, {
+ const slot = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Slot, {
...props,
bubblesVirtually: true,
fillProps: fillProps
@@ -18300,28 +17866,30 @@ function BlockControlsSlot({
if (group === 'default') {
return slot;
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, slot);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: slot
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-controls/index.js
-
/**
* Internal dependencies
*/
+
const BlockControls = BlockControlsFill;
BlockControls.Slot = BlockControlsSlot;
// This is just here for backward compatibility.
const BlockFormatControls = props => {
- return (0,external_React_.createElement)(BlockControlsFill, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockControlsFill, {
group: "inline",
...props
});
};
BlockFormatControls.Slot = props => {
- return (0,external_React_.createElement)(BlockControlsSlot, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockControlsSlot, {
group: "inline",
...props
});
@@ -18329,101 +17897,108 @@ BlockFormatControls.Slot = props => {
/* harmony default export */ const block_controls = (BlockControls);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/justify-left.js
-
/**
* WordPress dependencies
*/
-const justifyLeft = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const justifyLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M9 9v6h11V9H9zM4 20h1.5V4H4v16z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M9 9v6h11V9H9zM4 20h1.5V4H4v16z"
+ })
+});
/* harmony default export */ const justify_left = (justifyLeft);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/justify-center.js
-
/**
* WordPress dependencies
*/
-const justifyCenter = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const justifyCenter = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"
+ })
+});
/* harmony default export */ const justify_center = (justifyCenter);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/justify-right.js
-
/**
* WordPress dependencies
*/
-const justifyRight = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const justifyRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"
+ })
+});
/* harmony default export */ const justify_right = (justifyRight);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/justify-space-between.js
-
/**
* WordPress dependencies
*/
-const justifySpaceBetween = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const justifySpaceBetween = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"
+ })
+});
/* harmony default export */ const justify_space_between = (justifySpaceBetween);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/justify-stretch.js
-
/**
* WordPress dependencies
*/
-const justifyStretch = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const justifyStretch = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"
+ })
+});
/* harmony default export */ const justify_stretch = (justifyStretch);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/arrow-right.js
-
/**
* WordPress dependencies
*/
-const arrowRight = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const arrowRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"
+ })
+});
/* harmony default export */ const arrow_right = (arrowRight);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/arrow-down.js
-
/**
* WordPress dependencies
*/
-const arrowDown = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const arrowDown = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"
+ })
+});
/* harmony default export */ const arrow_down = (arrowDown);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/layouts/definitions.js
@@ -18458,12 +18033,12 @@ const LAYOUT_DEFINITIONS = {
}
}],
spacingStyles: [{
- selector: ' > :first-child:first-child',
+ selector: ' > :first-child',
rules: {
'margin-block-start': '0'
}
}, {
- selector: ' > :last-child:last-child',
+ selector: ' > :last-child',
rules: {
'margin-block-end': '0'
}
@@ -18513,12 +18088,12 @@ const LAYOUT_DEFINITIONS = {
}
}],
spacingStyles: [{
- selector: ' > :first-child:first-child',
+ selector: ' > :first-child',
rules: {
'margin-block-start': '0'
}
}, {
- selector: ' > :last-child:last-child',
+ selector: ' > :last-child',
rules: {
'margin-block-end': '0'
}
@@ -18542,7 +18117,8 @@ const LAYOUT_DEFINITIONS = {
'align-items': 'center'
}
}, {
- selector: ' > *',
+ selector: ' > :is(*, div)',
+ // :is(*, div) instead of just * increases the specificity by 001.
rules: {
margin: '0'
}
@@ -18560,7 +18136,8 @@ const LAYOUT_DEFINITIONS = {
className: 'is-layout-grid',
displayMode: 'grid',
baseStyles: [{
- selector: ' > *',
+ selector: ' > :is(*, div)',
+ // :is(*, div) instead of just * increases the specificity by 001.
rules: {
margin: '0'
}
@@ -18660,138 +18237,151 @@ function getAlignmentsInfo(layout) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/sides-all.js
-
/**
* WordPress dependencies
*/
-const sidesAll = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const sidesAll = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"
+ })
+});
/* harmony default export */ const sides_all = (sidesAll);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/sides-horizontal.js
-
/**
* WordPress dependencies
*/
-const sidesHorizontal = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const sidesHorizontal = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",
- style: {
- opacity: 0.25
- }
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m4.5 7.5v9h1.5v-9z"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m18 7.5v9h1.5v-9z"
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",
+ style: {
+ opacity: 0.25
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m4.5 7.5v9h1.5v-9z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m18 7.5v9h1.5v-9z"
+ })]
+});
/* harmony default export */ const sides_horizontal = (sidesHorizontal);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/sides-vertical.js
-
/**
* WordPress dependencies
*/
-const sidesVertical = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const sidesVertical = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",
- style: {
- opacity: 0.25
- }
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m7.5 6h9v-1.5h-9z"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m7.5 19.5h9v-1.5h-9z"
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",
+ style: {
+ opacity: 0.25
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m7.5 6h9v-1.5h-9z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m7.5 19.5h9v-1.5h-9z"
+ })]
+});
/* harmony default export */ const sides_vertical = (sidesVertical);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/sides-top.js
-
/**
* WordPress dependencies
*/
-const sidesTop = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const sidesTop = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",
- style: {
- opacity: 0.25
- }
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m16.5 6h-9v-1.5h9z"
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",
+ style: {
+ opacity: 0.25
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m16.5 6h-9v-1.5h9z"
+ })]
+});
/* harmony default export */ const sides_top = (sidesTop);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/sides-right.js
-
/**
* WordPress dependencies
*/
-const sidesRight = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const sidesRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",
- style: {
- opacity: 0.25
- }
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m18 16.5v-9h1.5v9z"
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",
+ style: {
+ opacity: 0.25
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m18 16.5v-9h1.5v9z"
+ })]
+});
/* harmony default export */ const sides_right = (sidesRight);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/sides-bottom.js
-
/**
* WordPress dependencies
*/
-const sidesBottom = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const sidesBottom = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",
- style: {
- opacity: 0.25
- }
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m16.5 19.5h-9v-1.5h9z",
- style: {
- fill: '#1e1e1e'
- }
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",
+ style: {
+ opacity: 0.25
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m16.5 19.5h-9v-1.5h9z",
+ style: {
+ fill: '#1e1e1e'
+ }
+ })]
+});
/* harmony default export */ const sides_bottom = (sidesBottom);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/sides-left.js
-
/**
* WordPress dependencies
*/
-const sidesLeft = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const sidesLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",
- style: {
- opacity: 0.25
- }
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m4.5 16.5v-9h1.5v9z"
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",
+ style: {
+ opacity: 0.25
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m4.5 16.5v-9h1.5v9z"
+ })]
+});
/* harmony default export */ const sides_left = (sidesLeft);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/spacing-sizes-control/utils.js
@@ -18800,6 +18390,7 @@ const sidesLeft = (0,external_React_.createElement)(external_wp_primitives_names
*/
+const RANGE_CONTROL_MAX_SIZE = 8;
const ALL_SIDES = ['top', 'right', 'bottom', 'left'];
const DEFAULT_VALUES = {
top: undefined,
@@ -19187,44 +18778,48 @@ function getGapCSSValue(blockGapValue, defaultValue = '0') {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-vertical-alignment-control/icons.js
-
/**
* WordPress dependencies
*/
-const alignBottom = (0,external_React_.createElement)(external_wp_components_namespaceObject.SVG, {
+
+const alignBottom = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"
-}));
-const alignCenter = (0,external_React_.createElement)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"
+ })
+});
+const alignCenter = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"
-}));
-const alignTop = (0,external_React_.createElement)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"
+ })
+});
+const alignTop = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M9 20h6V9H9v11zM4 4v1.5h16V4H4z"
-}));
-const alignStretch = (0,external_React_.createElement)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M9 20h6V9H9v11zM4 4v1.5h16V4H4z"
+ })
+});
+const alignStretch = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"
-}));
-const spaceBetween = (0,external_React_.createElement)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"
+ })
+});
+const spaceBetween = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-vertical-alignment-control/ui.js
-
/**
* WordPress dependencies
*/
@@ -19235,6 +18830,7 @@ const spaceBetween = (0,external_React_.createElement)(external_wp_components_na
* Internal dependencies
*/
+
const BLOCK_ALIGNMENTS_CONTROLS = {
top: {
icon: alignTop,
@@ -19275,7 +18871,7 @@ function BlockVerticalAlignmentUI({
const extraProps = isToolbar ? {
isCollapsed
} : {};
- return (0,external_React_.createElement)(UIComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(UIComponent, {
icon: activeAlignment ? activeAlignment.icon : defaultAlignmentControl.icon,
label: (0,external_wp_i18n_namespaceObject._x)('Change vertical alignment', 'Block vertical alignment setting label'),
controls: controls.map(control => {
@@ -19296,19 +18892,19 @@ function BlockVerticalAlignmentUI({
/* harmony default export */ const ui = (BlockVerticalAlignmentUI);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-vertical-alignment-control/index.js
-
/**
* Internal dependencies
*/
+
const BlockVerticalAlignmentControl = props => {
- return (0,external_React_.createElement)(ui, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ui, {
...props,
isToolbar: false
});
};
const BlockVerticalAlignmentToolbar = props => {
- return (0,external_React_.createElement)(ui, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ui, {
...props,
isToolbar: true
});
@@ -19320,13 +18916,13 @@ const BlockVerticalAlignmentToolbar = props => {
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/justify-content-control/ui.js
-
/**
* WordPress dependencies
*/
+
const icons = {
left: justify_left,
center: justify_center,
@@ -19388,7 +18984,7 @@ function JustifyContentUI({
const extraProps = isToolbar ? {
isCollapsed
} : {};
- return (0,external_React_.createElement)(UIComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(UIComponent, {
icon: icon,
popoverProps: popoverProps,
label: (0,external_wp_i18n_namespaceObject.__)('Change items justification'),
@@ -19399,19 +18995,19 @@ function JustifyContentUI({
/* harmony default export */ const justify_content_control_ui = (JustifyContentUI);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/justify-content-control/index.js
-
/**
* Internal dependencies
*/
+
const JustifyContentControl = props => {
- return (0,external_React_.createElement)(justify_content_control_ui, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(justify_content_control_ui, {
...props,
isToolbar: false
});
};
const JustifyToolbar = props => {
- return (0,external_React_.createElement)(justify_content_control_ui, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(justify_content_control_ui, {
...props,
isToolbar: true
});
@@ -19423,7 +19019,6 @@ const JustifyToolbar = props => {
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/layouts/flex.js
-
/**
* WordPress dependencies
*/
@@ -19441,6 +19036,9 @@ const JustifyToolbar = props => {
// Used with the default, horizontal flex orientation.
+
+
+
const justifyContentMap = {
left: 'flex-start',
right: 'flex-end',
@@ -19474,16 +19072,24 @@ const flexWrapOptions = ['wrap', 'nowrap'];
const {
allowOrientation = true
} = layoutBlockSupport;
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(FlexLayoutJustifyContentControl, {
- layout: layout,
- onChange: onChange
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, allowOrientation && (0,external_React_.createElement)(OrientationControl, {
- layout: layout,
- onChange: onChange
- }))), (0,external_React_.createElement)(FlexWrapControl, {
- layout: layout,
- onChange: onChange
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexLayoutJustifyContentControl, {
+ layout: layout,
+ onChange: onChange
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: allowOrientation && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OrientationControl, {
+ layout: layout,
+ onChange: onChange
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexWrapControl, {
+ layout: layout,
+ onChange: onChange
+ })]
+ });
},
toolBarControls: function FlexLayoutToolbarControls({
layout = {},
@@ -19496,18 +19102,19 @@ const flexWrapOptions = ['wrap', 'nowrap'];
const {
allowVerticalAlignment = true
} = layoutBlockSupport;
- return (0,external_React_.createElement)(block_controls, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(block_controls, {
group: "block",
- __experimentalShareWithChildBlocks: true
- }, (0,external_React_.createElement)(FlexLayoutJustifyContentControl, {
- layout: layout,
- onChange: onChange,
- isToolbar: true
- }), allowVerticalAlignment && (0,external_React_.createElement)(FlexLayoutVerticalAlignmentControl, {
- layout: layout,
- onChange: onChange,
- isToolbar: true
- }));
+ __experimentalShareWithChildBlocks: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexLayoutJustifyContentControl, {
+ layout: layout,
+ onChange: onChange,
+ isToolbar: true
+ }), allowVerticalAlignment && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexLayoutVerticalAlignmentControl, {
+ layout: layout,
+ onChange: onChange,
+ isToolbar: true
+ })]
+ });
},
getLayoutStyle: function getLayoutStyle({
selector,
@@ -19588,7 +19195,7 @@ function FlexLayoutVerticalAlignmentControl({
});
};
if (isToolbar) {
- return (0,external_React_.createElement)(BlockVerticalAlignmentControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockVerticalAlignmentControl, {
onChange: onVerticalAlignmentChange,
value: verticalAlignment,
controls: orientation === 'horizontal' ? ['top', 'center', 'bottom', 'stretch'] : ['top', 'center', 'bottom', 'space-between']
@@ -19604,17 +19211,21 @@ function FlexLayoutVerticalAlignmentControl({
value: 'flex-end',
label: (0,external_wp_i18n_namespaceObject.__)('Align items bottom')
}];
- return (0,external_React_.createElement)("fieldset", {
- className: "block-editor-hooks__flex-layout-vertical-alignment-control"
- }, (0,external_React_.createElement)("legend", null, (0,external_wp_i18n_namespaceObject.__)('Vertical alignment')), (0,external_React_.createElement)("div", null, verticalAlignmentOptions.map((value, icon, label) => {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- key: value,
- label: label,
- icon: icon,
- isPressed: verticalAlignment === value,
- onClick: () => onVerticalAlignmentChange(value)
- });
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
+ className: "block-editor-hooks__flex-layout-vertical-alignment-control",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("legend", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Vertical alignment')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ children: verticalAlignmentOptions.map((value, icon, label) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ label: label,
+ icon: icon,
+ isPressed: verticalAlignment === value,
+ onClick: () => onVerticalAlignmentChange(value)
+ }, value);
+ })
+ })]
+ });
}
const POPOVER_PROPS = {
placement: 'bottom-start'
@@ -19641,7 +19252,7 @@ function FlexLayoutJustifyContentControl({
allowedControls.push('stretch');
}
if (isToolbar) {
- return (0,external_React_.createElement)(JustifyContentControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(JustifyContentControl, {
allowedControls: allowedControls,
value: justifyContent,
onChange: onJustificationChange,
@@ -19674,24 +19285,24 @@ function FlexLayoutJustifyContentControl({
label: (0,external_wp_i18n_namespaceObject.__)('Stretch items')
});
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
__nextHasNoMarginBottom: true,
label: (0,external_wp_i18n_namespaceObject.__)('Justification'),
value: justifyContent,
onChange: onJustificationChange,
- className: "block-editor-hooks__flex-layout-justification-controls"
- }, justificationOptions.map(({
- value,
- icon,
- label
- }) => {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOptionIcon, {
- key: value,
- value: value,
- icon: icon,
- label: label
- });
- }));
+ className: "block-editor-hooks__flex-layout-justification-controls",
+ children: justificationOptions.map(({
+ value,
+ icon,
+ label
+ }) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOptionIcon, {
+ value: value,
+ icon: icon,
+ label: label
+ }, value);
+ })
+ });
}
function FlexWrapControl({
layout,
@@ -19700,7 +19311,7 @@ function FlexWrapControl({
const {
flexWrap = 'wrap'
} = layout;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToggleControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
__nextHasNoMarginBottom: true,
label: (0,external_wp_i18n_namespaceObject.__)('Allow to wrap to multiple lines'),
onChange: value => {
@@ -19721,7 +19332,7 @@ function OrientationControl({
verticalAlignment,
justifyContent
} = layout;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
__nextHasNoMarginBottom: true,
className: "block-editor-hooks__flex-layout-orientation-controls",
label: (0,external_wp_i18n_namespaceObject.__)('Orientation'),
@@ -19751,16 +19362,17 @@ function OrientationControl({
verticalAlignment: newVerticalAlignment,
justifyContent: newJustification
});
- }
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOptionIcon, {
- icon: arrow_right,
- value: 'horizontal',
- label: (0,external_wp_i18n_namespaceObject.__)('Horizontal')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOptionIcon, {
- icon: arrow_down,
- value: 'vertical',
- label: (0,external_wp_i18n_namespaceObject.__)('Vertical')
- }));
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOptionIcon, {
+ icon: arrow_right,
+ value: "horizontal",
+ label: (0,external_wp_i18n_namespaceObject.__)('Horizontal')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOptionIcon, {
+ icon: arrow_down,
+ value: "vertical",
+ label: (0,external_wp_i18n_namespaceObject.__)('Vertical')
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/layouts/flow.js
@@ -19894,37 +19506,38 @@ function Icon({
/* harmony default export */ const build_module_icon = ((0,external_wp_element_namespaceObject.forwardRef)(Icon));
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/position-center.js
-
/**
* WordPress dependencies
*/
-const positionCenter = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const positionCenter = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"
+ })
+});
/* harmony default export */ const position_center = (positionCenter);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/stretch-wide.js
-
/**
* WordPress dependencies
*/
-const stretchWide = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const stretchWide = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"
+ })
+});
/* harmony default export */ const stretch_wide = (stretchWide);
;// CONCATENATED MODULE: external ["wp","styleEngine"]
const external_wp_styleEngine_namespaceObject = window["wp"]["styleEngine"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/layouts/constrained.js
-
/**
* WordPress dependencies
*/
@@ -19941,6 +19554,9 @@ const external_wp_styleEngine_namespaceObject = window["wp"]["styleEngine"];
+
+
+
/* harmony default export */ const constrained = ({
name: 'constrained',
label: (0,external_wp_i18n_namespaceObject.__)('Constrained'),
@@ -19981,63 +19597,71 @@ const external_wp_styleEngine_namespaceObject = window["wp"]["styleEngine"];
const units = (0,external_wp_components_namespaceObject.__experimentalUseCustomUnits)({
availableUnits: availableUnits || ['%', 'px', 'em', 'rem', 'vw']
});
- return (0,external_React_.createElement)(external_React_.Fragment, null, allowCustomContentAndWideSize && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("div", {
- className: "block-editor-hooks__layout-controls"
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-hooks__layout-controls-unit"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- className: "block-editor-hooks__layout-controls-unit-input",
- label: (0,external_wp_i18n_namespaceObject.__)('Content'),
- labelPosition: "top",
- __unstableInputWidth: "80px",
- value: contentSize || wideSize || '',
- onChange: nextWidth => {
- nextWidth = 0 > parseFloat(nextWidth) ? '0' : nextWidth;
- onChange({
- ...layout,
- contentSize: nextWidth
- });
- },
- units: units
- }), (0,external_React_.createElement)(build_module_icon, {
- icon: position_center
- })), (0,external_React_.createElement)("div", {
- className: "block-editor-hooks__layout-controls-unit"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- className: "block-editor-hooks__layout-controls-unit-input",
- label: (0,external_wp_i18n_namespaceObject.__)('Wide'),
- labelPosition: "top",
- __unstableInputWidth: "80px",
- value: wideSize || contentSize || '',
- onChange: nextWidth => {
- nextWidth = 0 > parseFloat(nextWidth) ? '0' : nextWidth;
- onChange({
- ...layout,
- wideSize: nextWidth
- });
- },
- units: units
- }), (0,external_React_.createElement)(build_module_icon, {
- icon: stretch_wide
- }))), (0,external_React_.createElement)("p", {
- className: "block-editor-hooks__layout-controls-helptext"
- }, (0,external_wp_i18n_namespaceObject.__)('Customize the width for all elements that are assigned to the center or wide columns.'))), allowJustification && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Justification'),
- value: justifyContent,
- onChange: onJustificationChange
- }, justificationOptions.map(({
- value,
- icon,
- label
- }) => {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOptionIcon, {
- key: value,
- value: value,
- icon: icon,
- label: label
- });
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [allowCustomContentAndWideSize && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-hooks__layout-controls",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-hooks__layout-controls-unit",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ className: "block-editor-hooks__layout-controls-unit-input",
+ label: (0,external_wp_i18n_namespaceObject.__)('Content'),
+ labelPosition: "top",
+ __unstableInputWidth: "80px",
+ value: contentSize || wideSize || '',
+ onChange: nextWidth => {
+ nextWidth = 0 > parseFloat(nextWidth) ? '0' : nextWidth;
+ onChange({
+ ...layout,
+ contentSize: nextWidth
+ });
+ },
+ units: units
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: position_center
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-hooks__layout-controls-unit",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ className: "block-editor-hooks__layout-controls-unit-input",
+ label: (0,external_wp_i18n_namespaceObject.__)('Wide'),
+ labelPosition: "top",
+ __unstableInputWidth: "80px",
+ value: wideSize || contentSize || '',
+ onChange: nextWidth => {
+ nextWidth = 0 > parseFloat(nextWidth) ? '0' : nextWidth;
+ onChange({
+ ...layout,
+ wideSize: nextWidth
+ });
+ },
+ units: units
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: stretch_wide
+ })]
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "block-editor-hooks__layout-controls-helptext",
+ children: (0,external_wp_i18n_namespaceObject.__)('Customize the width for all elements that are assigned to the center or wide columns.')
+ })]
+ }), allowJustification && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Justification'),
+ value: justifyContent,
+ onChange: onJustificationChange,
+ children: justificationOptions.map(({
+ value,
+ icon,
+ label
+ }) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOptionIcon, {
+ value: value,
+ icon: icon,
+ label: label
+ }, value);
+ })
+ })]
+ });
},
toolBarControls: function DefaultLayoutToolbarControls() {
return null;
@@ -20097,15 +19721,19 @@ const external_wp_styleEngine_namespaceObject = window["wp"]["styleEngine"];
const paddingValues = (0,external_wp_styleEngine_namespaceObject.getCSSRules)(style);
paddingValues.forEach(rule => {
if (rule.key === 'paddingRight') {
+ // Add unit if 0, to avoid calc(0 * -1) which is invalid.
+ const paddingRightValue = rule.value === '0' ? '0px' : rule.value;
output += `
${appendSelectors(selector, '> .alignfull')} {
- margin-right: calc(${rule.value} * -1);
+ margin-right: calc(${paddingRightValue} * -1);
}
`;
} else if (rule.key === 'paddingLeft') {
+ // Add unit if 0, to avoid calc(0 * -1) which is invalid.
+ const paddingLeftValue = rule.value === '0' ? '0px' : rule.value;
output += `
${appendSelectors(selector, '> .alignfull')} {
- margin-left: calc(${rule.value} * -1);
+ margin-left: calc(${paddingLeftValue} * -1);
}
`;
}
@@ -20162,8 +19790,29 @@ const external_wp_styleEngine_namespaceObject = window["wp"]["styleEngine"];
}
});
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/layouts/grid.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/provider/block-refs-provider.js
+/**
+ * WordPress dependencies
+ */
+
+
+const BlockRefs = (0,external_wp_element_namespaceObject.createContext)({
+ refsMap: (0,external_wp_compose_namespaceObject.observableMap)()
+});
+function BlockRefsProvider({
+ children
+}) {
+ const value = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ refsMap: (0,external_wp_compose_namespaceObject.observableMap)()
+ }), []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockRefs.Provider, {
+ value: value,
+ children: children
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/use-block-props/use-block-refs.js
/**
* WordPress dependencies
*/
@@ -20175,6 +19824,419 @@ const external_wp_styleEngine_namespaceObject = window["wp"]["styleEngine"];
*/
+/** @typedef {import('@wordpress/element').RefCallback} RefCallback */
+/** @typedef {import('@wordpress/element').RefObject} RefObject */
+
+/**
+ * Provides a ref to the BlockRefs context.
+ *
+ * @param {string} clientId The client ID of the element ref.
+ *
+ * @return {RefCallback} Ref callback.
+ */
+function useBlockRefProvider(clientId) {
+ const {
+ refsMap
+ } = (0,external_wp_element_namespaceObject.useContext)(BlockRefs);
+ return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
+ refsMap.set(clientId, element);
+ return () => refsMap.delete(clientId);
+ }, [clientId]);
+}
+
+/**
+ * Gets a ref pointing to the current block element. Continues to return the same
+ * stable ref object even if the `clientId` argument changes. This hook is not
+ * reactive, i.e., it won't trigger a rerender of the calling component if the
+ * ref value changes. For reactive use cases there is the `useBlockElement` hook.
+ *
+ * @param {string} clientId The client ID to get a ref for.
+ *
+ * @return {RefObject} A ref containing the element.
+ */
+function useBlockRef(clientId) {
+ const {
+ refsMap
+ } = (0,external_wp_element_namespaceObject.useContext)(BlockRefs);
+ const latestClientId = (0,external_wp_element_namespaceObject.useRef)();
+ latestClientId.current = clientId;
+
+ // Always return an object, even if no ref exists for a given client ID, so
+ // that `current` works at a later point.
+ return (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ get current() {
+ var _refsMap$get;
+ return (_refsMap$get = refsMap.get(latestClientId.current)) !== null && _refsMap$get !== void 0 ? _refsMap$get : null;
+ }
+ }), [refsMap]);
+}
+
+/**
+ * Return the element for a given client ID. Updates whenever the element
+ * changes, becomes available, or disappears.
+ *
+ * @param {string} clientId The client ID to an element for.
+ *
+ * @return {Element|null} The block's wrapper element.
+ */
+function useBlockElement(clientId) {
+ const {
+ refsMap
+ } = (0,external_wp_element_namespaceObject.useContext)(BlockRefs);
+ const [blockElement, setBlockElement] = (0,external_wp_element_namespaceObject.useState)(null);
+ // Delay setting the resulting `blockElement` until an effect. If the block element
+ // changes (i.e., the block is unmounted and re-mounted), this allows enough time
+ // for the ref callbacks to clean up the old element and set the new one.
+ (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
+ setBlockElement(refsMap.get(clientId));
+ return refsMap.subscribe(clientId, () => setBlockElement(refsMap.get(clientId)));
+ }, [refsMap, clientId]);
+ return blockElement;
+}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-popover/use-popover-scroll.js
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Allow scrolling "through" popovers over the canvas. This is only called for
+ * as long as the pointer is over a popover. Do not use React events because it
+ * will bubble through portals.
+ *
+ * @param {Object} scrollableRef
+ */
+function usePopoverScroll(scrollableRef) {
+ return (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
+ if (!scrollableRef) {
+ return;
+ }
+ function onWheel(event) {
+ const {
+ deltaX,
+ deltaY
+ } = event;
+ scrollableRef.current.scrollBy(deltaX, deltaY);
+ }
+ // Tell the browser that we do not call event.preventDefault
+ // See https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#improving_scrolling_performance_with_passive_listeners
+ const options = {
+ passive: true
+ };
+ node.addEventListener('wheel', onWheel, options);
+ return () => {
+ node.removeEventListener('wheel', onWheel, options);
+ };
+ }, [scrollableRef]);
+}
+/* harmony default export */ const use_popover_scroll = (usePopoverScroll);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-popover/index.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+const MAX_POPOVER_RECOMPUTE_COUNTER = Number.MAX_SAFE_INTEGER;
+function BlockPopover({
+ clientId,
+ bottomClientId,
+ children,
+ __unstablePopoverSlot,
+ __unstableContentRef,
+ shift = true,
+ ...props
+}, ref) {
+ const selectedElement = useBlockElement(clientId);
+ const lastSelectedElement = useBlockElement(bottomClientId !== null && bottomClientId !== void 0 ? bottomClientId : clientId);
+ const mergedRefs = (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, use_popover_scroll(__unstableContentRef)]);
+ const [popoverDimensionsRecomputeCounter, forceRecomputePopoverDimensions] = (0,external_wp_element_namespaceObject.useReducer)(
+ // Module is there to make sure that the counter doesn't overflow.
+ s => (s + 1) % MAX_POPOVER_RECOMPUTE_COUNTER, 0);
+
+ // When blocks are moved up/down, they are animated to their new position by
+ // updating the `transform` property manually (i.e. without using CSS
+ // transitions or animations). The animation, which can also scroll the block
+ // editor, can sometimes cause the position of the Popover to get out of sync.
+ // A MutationObserver is therefore used to make sure that changes to the
+ // selectedElement's attribute (i.e. `transform`) can be tracked and used to
+ // trigger the Popover to rerender.
+ (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
+ if (!selectedElement) {
+ return;
+ }
+ const observer = new window.MutationObserver(forceRecomputePopoverDimensions);
+ observer.observe(selectedElement, {
+ attributes: true
+ });
+ return () => {
+ observer.disconnect();
+ };
+ }, [selectedElement]);
+ const popoverAnchor = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ if (
+ // popoverDimensionsRecomputeCounter is by definition always equal or greater
+ // than 0. This check is only there to satisfy the correctness of the
+ // exhaustive-deps rule for the `useMemo` hook.
+ popoverDimensionsRecomputeCounter < 0 || !selectedElement || bottomClientId && !lastSelectedElement) {
+ return undefined;
+ }
+ return {
+ getBoundingClientRect() {
+ var _lastSelectedBCR$left, _lastSelectedBCR$top, _lastSelectedBCR$righ, _lastSelectedBCR$bott;
+ const selectedBCR = selectedElement.getBoundingClientRect();
+ const lastSelectedBCR = lastSelectedElement?.getBoundingClientRect();
+
+ // Get the biggest rectangle that encompasses completely the currently
+ // selected element and the last selected element:
+ // - for top/left coordinates, use the smaller numbers
+ // - for the bottom/right coordinates, use the largest numbers
+ const left = Math.min(selectedBCR.left, (_lastSelectedBCR$left = lastSelectedBCR?.left) !== null && _lastSelectedBCR$left !== void 0 ? _lastSelectedBCR$left : Infinity);
+ const top = Math.min(selectedBCR.top, (_lastSelectedBCR$top = lastSelectedBCR?.top) !== null && _lastSelectedBCR$top !== void 0 ? _lastSelectedBCR$top : Infinity);
+ const right = Math.max(selectedBCR.right, (_lastSelectedBCR$righ = lastSelectedBCR.right) !== null && _lastSelectedBCR$righ !== void 0 ? _lastSelectedBCR$righ : -Infinity);
+ const bottom = Math.max(selectedBCR.bottom, (_lastSelectedBCR$bott = lastSelectedBCR.bottom) !== null && _lastSelectedBCR$bott !== void 0 ? _lastSelectedBCR$bott : -Infinity);
+ const width = right - left;
+ const height = bottom - top;
+ return new window.DOMRect(left, top, width, height);
+ },
+ contextElement: selectedElement
+ };
+ }, [bottomClientId, lastSelectedElement, selectedElement, popoverDimensionsRecomputeCounter]);
+ if (!selectedElement || bottomClientId && !lastSelectedElement) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover, {
+ ref: mergedRefs,
+ animate: false,
+ focusOnMount: false,
+ anchor: popoverAnchor
+ // Render in the old slot if needed for backward compatibility,
+ // otherwise render in place (not in the default popover slot).
+ ,
+ __unstableSlotName: __unstablePopoverSlot,
+ inline: !__unstablePopoverSlot,
+ placement: "top-start",
+ resize: false,
+ flip: false,
+ shift: shift,
+ ...props,
+ className: dist_clsx('block-editor-block-popover', props.className),
+ variant: "unstyled",
+ children: children
+ });
+}
+const PrivateBlockPopover = (0,external_wp_element_namespaceObject.forwardRef)(BlockPopover);
+const PublicBlockPopover = ({
+ clientId,
+ bottomClientId,
+ children,
+ ...props
+}, ref) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivateBlockPopover, {
+ ...props,
+ bottomClientId: bottomClientId,
+ clientId: clientId,
+ __unstableContentRef: undefined,
+ __unstablePopoverSlot: undefined,
+ ref: ref,
+ children: children
+});
+
+/**
+ * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/block-popover/README.md
+ */
+/* harmony default export */ const block_popover = ((0,external_wp_element_namespaceObject.forwardRef)(PublicBlockPopover));
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-popover/cover.js
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+function BlockPopoverCover({
+ clientId,
+ bottomClientId,
+ children,
+ shift = false,
+ additionalStyles,
+ ...props
+}, ref) {
+ var _bottomClientId;
+ (_bottomClientId = bottomClientId) !== null && _bottomClientId !== void 0 ? _bottomClientId : bottomClientId = clientId;
+ const selectedElement = useBlockElement(clientId);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivateBlockPopover, {
+ ref: ref,
+ clientId: clientId,
+ bottomClientId: bottomClientId,
+ shift: shift,
+ ...props,
+ children: selectedElement && clientId === bottomClientId ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CoverContainer, {
+ selectedElement: selectedElement,
+ additionalStyles: additionalStyles,
+ children: children
+ }) : children
+ });
+}
+function CoverContainer({
+ selectedElement,
+ additionalStyles = {},
+ children
+}) {
+ const [width, setWidth] = (0,external_wp_element_namespaceObject.useState)(selectedElement.offsetWidth);
+ const [height, setHeight] = (0,external_wp_element_namespaceObject.useState)(selectedElement.offsetHeight);
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ const observer = new window.ResizeObserver(() => {
+ setWidth(selectedElement.offsetWidth);
+ setHeight(selectedElement.offsetHeight);
+ });
+ observer.observe(selectedElement, {
+ box: 'border-box'
+ });
+ return () => observer.disconnect();
+ }, [selectedElement]);
+ const style = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return {
+ position: 'absolute',
+ width,
+ height,
+ ...additionalStyles
+ };
+ }, [width, height, additionalStyles]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ style: style,
+ children: children
+ });
+}
+/* harmony default export */ const cover = ((0,external_wp_element_namespaceObject.forwardRef)(BlockPopoverCover));
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/grid-visualizer/utils.js
+function getComputedCSS(element, property) {
+ return element.ownerDocument.defaultView.getComputedStyle(element).getPropertyValue(property);
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/grid-visualizer/grid-visualizer.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+function GridVisualizer({
+ clientId,
+ contentRef
+}) {
+ const isDistractionFree = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getSettings().isDistractionFree, []);
+ const blockElement = useBlockElement(clientId);
+ if (isDistractionFree || !blockElement) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(cover, {
+ className: "block-editor-grid-visualizer",
+ clientId: clientId,
+ __unstablePopoverSlot: "block-toolbar",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GridVisualizerGrid, {
+ ref: contentRef,
+ blockElement: blockElement
+ })
+ });
+}
+const GridVisualizerGrid = (0,external_wp_element_namespaceObject.forwardRef)(({
+ blockElement
+}, ref) => {
+ const [gridInfo, setGridInfo] = (0,external_wp_element_namespaceObject.useState)(() => getGridInfo(blockElement));
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ const observers = [];
+ for (const element of [blockElement, ...blockElement.children]) {
+ const observer = new window.ResizeObserver(() => {
+ setGridInfo(getGridInfo(blockElement));
+ });
+ observer.observe(element);
+ observers.push(observer);
+ }
+ return () => {
+ for (const observer of observers) {
+ observer.disconnect();
+ }
+ };
+ }, [blockElement]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ref: ref,
+ className: "block-editor-grid-visualizer__grid",
+ style: gridInfo.style,
+ children: Array.from({
+ length: gridInfo.numItems
+ }, (_, i) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-grid-visualizer__item",
+ style: {
+ boxShadow: `inset 0 0 0 1px color-mix(in srgb, ${gridInfo.currentColor} 20%, #0000)`
+ }
+ }, i))
+ });
+});
+function getGridInfo(blockElement) {
+ const gridTemplateColumns = getComputedCSS(blockElement, 'grid-template-columns');
+ const gridTemplateRows = getComputedCSS(blockElement, 'grid-template-rows');
+ const numColumns = gridTemplateColumns.split(' ').length;
+ const numRows = gridTemplateRows.split(' ').length;
+ const numItems = numColumns * numRows;
+ return {
+ numItems,
+ currentColor: getComputedCSS(blockElement, 'color'),
+ style: {
+ gridTemplateColumns,
+ gridTemplateRows,
+ gap: getComputedCSS(blockElement, 'gap'),
+ padding: getComputedCSS(blockElement, 'padding')
+ }
+ };
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/layouts/grid.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
const RANGE_CONTROL_MAX_VALUES = {
@@ -20207,23 +20269,50 @@ const RANGE_CONTROL_MAX_VALUES = {
lvmax: 100,
dvmax: 100
};
+const units = [{
+ value: 'px',
+ label: 'px',
+ default: 0
+}, {
+ value: 'rem',
+ label: 'rem',
+ default: 0
+}, {
+ value: 'em',
+ label: 'em',
+ default: 0
+}];
/* harmony default export */ const grid = ({
name: 'grid',
label: (0,external_wp_i18n_namespaceObject.__)('Grid'),
inspectorControls: function GridLayoutInspectorControls({
layout = {},
- onChange
+ onChange,
+ layoutBlockSupport = {}
}) {
- return layout?.columnCount ? (0,external_React_.createElement)(GridLayoutColumnsControl, {
- layout: layout,
- onChange: onChange
- }) : (0,external_React_.createElement)(GridLayoutMinimumWidthControl, {
- layout: layout,
- onChange: onChange
+ const {
+ allowSizingOnChildren = false
+ } = layoutBlockSupport;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GridLayoutTypeControl, {
+ layout: layout,
+ onChange: onChange
+ }), layout?.columnCount ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GridLayoutColumnsAndRowsControl, {
+ layout: layout,
+ onChange: onChange,
+ allowSizingOnChildren: allowSizingOnChildren
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GridLayoutMinimumWidthControl, {
+ layout: layout,
+ onChange: onChange
+ })]
});
},
- toolBarControls: function DefaultLayoutToolbarControls() {
- return null;
+ toolBarControls: function GridLayoutToolbarControls({
+ clientId
+ }) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GridVisualizer, {
+ clientId: clientId
+ });
},
getLayoutStyle: function getLayoutStyle({
selector,
@@ -20235,7 +20324,8 @@ const RANGE_CONTROL_MAX_VALUES = {
}) {
const {
minimumColumnWidth = '12rem',
- columnCount = null
+ columnCount = null,
+ rowCount = null
} = layout;
// If a block's block.json skips serialization for spacing or spacing.blockGap,
@@ -20245,8 +20335,11 @@ const RANGE_CONTROL_MAX_VALUES = {
const rules = [];
if (columnCount) {
rules.push(`grid-template-columns: repeat(${columnCount}, minmax(0, 1fr))`);
+ if (rowCount) {
+ rules.push(`grid-template-rows: repeat(${rowCount}, minmax(0, 1fr))`);
+ }
} else if (minimumColumnWidth) {
- rules.push(`grid-template-columns: repeat(auto-fill, minmax(min(${minimumColumnWidth}, 100%), 1fr))`);
+ rules.push(`grid-template-columns: repeat(auto-fill, minmax(min(${minimumColumnWidth}, 100%), 1fr))`, 'container-type: inline-size');
}
if (rules.length) {
// Reason to disable: the extra line breaks added by prettier mess with the unit tests.
@@ -20295,60 +20388,189 @@ function GridLayoutMinimumWidthControl({
} else if (['em', 'rem'].includes(unit) && newUnit === 'px') {
// Convert to pixel value assuming a root size of 16px.
newValue = Math.round(quantity * 16) + newUnit;
- } else if (['vh', 'vw', '%', 'svw', 'lvw', 'dvw', 'svh', 'lvh', 'dvh', 'vi', 'svi', 'lvi', 'dvi', 'vb', 'svb', 'lvb', 'dvb', 'vmin', 'svmin', 'lvmin', 'dvmin', 'vmax', 'svmax', 'lvmax', 'dvmax'].includes(newUnit) && quantity > 100) {
- // When converting to `%` or viewport-relative units, cap the new value at 100.
- newValue = 100 + newUnit;
}
onChange({
...layout,
minimumColumnWidth: newValue
});
};
- return (0,external_React_.createElement)("fieldset", null, (0,external_React_.createElement)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
- as: "legend"
- }, (0,external_wp_i18n_namespaceObject.__)('Minimum column width')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- gap: 4
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- isBlock: true
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- size: '__unstable-large',
- onChange: newValue => {
- onChange({
- ...layout,
- minimumColumnWidth: newValue
- });
- },
- onUnitChange: handleUnitChange,
- value: value,
- min: 0
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- isBlock: true
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.RangeControl, {
- onChange: handleSliderChange,
- value: quantity,
- min: 0,
- max: RANGE_CONTROL_MAX_VALUES[unit] || 600,
- withInputField: false
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
+ as: "legend",
+ children: (0,external_wp_i18n_namespaceObject.__)('Minimum column width')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ gap: 4,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ isBlock: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ size: "__unstable-large",
+ onChange: newValue => {
+ onChange({
+ ...layout,
+ minimumColumnWidth: newValue
+ });
+ },
+ onUnitChange: handleUnitChange,
+ value: value,
+ units: units,
+ min: 0,
+ label: (0,external_wp_i18n_namespaceObject.__)('Minimum column width'),
+ hideLabelFromVision: true
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ isBlock: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ onChange: handleSliderChange,
+ value: quantity,
+ min: 0,
+ max: RANGE_CONTROL_MAX_VALUES[unit] || 600,
+ withInputField: false,
+ label: (0,external_wp_i18n_namespaceObject.__)('Minimum column width'),
+ hideLabelFromVision: true
+ })
+ })]
+ })]
+ });
}
// Enables setting number of grid columns
-function GridLayoutColumnsControl({
+function GridLayoutColumnsAndRowsControl({
+ layout,
+ onChange,
+ allowSizingOnChildren
+}) {
+ const {
+ columnCount = 3,
+ rowCount
+ } = layout;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
+ as: "legend",
+ children: (0,external_wp_i18n_namespaceObject.__)('Columns')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ gap: 4,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ isBlock: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNumberControl, {
+ size: "__unstable-large",
+ onChange: value => {
+ /**
+ * If the input is cleared, avoid switching
+ * back to "Auto" by setting a value of "1".
+ */
+ const validValue = value !== '' ? value : '1';
+ onChange({
+ ...layout,
+ columnCount: validValue
+ });
+ },
+ value: columnCount,
+ min: 1,
+ label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
+ hideLabelFromVision: true
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ isBlock: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ value: parseInt(columnCount, 10) // RangeControl can't deal with strings.
+ ,
+ onChange: value => onChange({
+ ...layout,
+ columnCount: value
+ }),
+ min: 1,
+ max: 16,
+ withInputField: false,
+ label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
+ hideLabelFromVision: true
+ })
+ })]
+ })]
+ }), allowSizingOnChildren && window.__experimentalEnableGridInteractivity && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
+ as: "legend",
+ children: (0,external_wp_i18n_namespaceObject.__)('Rows')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ gap: 4,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ isBlock: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNumberControl, {
+ size: "__unstable-large",
+ onChange: value => {
+ onChange({
+ ...layout,
+ rowCount: value
+ });
+ },
+ value: rowCount,
+ min: 1,
+ label: (0,external_wp_i18n_namespaceObject.__)('Rows'),
+ hideLabelFromVision: true
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ isBlock: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ value: parseInt(rowCount, 10) // RangeControl can't deal with strings.
+ ,
+ onChange: value => onChange({
+ ...layout,
+ rowCount: value
+ }),
+ min: 1,
+ max: 16,
+ withInputField: false,
+ label: (0,external_wp_i18n_namespaceObject.__)('Rows'),
+ hideLabelFromVision: true
+ })
+ })]
+ })]
+ })]
+ });
+}
+
+// Enables switching between grid types
+function GridLayoutTypeControl({
layout,
onChange
}) {
const {
- columnCount = 3
+ columnCount,
+ minimumColumnWidth
} = layout;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.RangeControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
- value: columnCount,
- onChange: value => onChange({
+
+ /**
+ * When switching, temporarily save any custom values set on the
+ * previous type so we can switch back without loss.
+ */
+ const [tempColumnCount, setTempColumnCount] = (0,external_wp_element_namespaceObject.useState)(columnCount || 3);
+ const [tempMinimumColumnWidth, setTempMinimumColumnWidth] = (0,external_wp_element_namespaceObject.useState)(minimumColumnWidth || '12rem');
+ const isManual = !!columnCount ? 'manual' : 'auto';
+ const onChangeType = value => {
+ if (value === 'manual') {
+ setTempMinimumColumnWidth(minimumColumnWidth || '12rem');
+ } else {
+ setTempColumnCount(columnCount || 3);
+ }
+ onChange({
...layout,
- columnCount: value
- }),
- min: 1,
- max: 6
+ columnCount: value === 'manual' ? tempColumnCount : null,
+ minimumColumnWidth: value === 'auto' ? tempMinimumColumnWidth : null
+ });
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Type'),
+ value: isManual,
+ onChange: onChangeType,
+ isBlock: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "auto",
+ label: (0,external_wp_i18n_namespaceObject.__)('Auto')
+ }, "auto"), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "manual",
+ label: (0,external_wp_i18n_namespaceObject.__)('Manual')
+ }, "manual")]
});
}
@@ -20382,7 +20604,6 @@ function getLayoutTypes() {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/layout.js
-
/**
* WordPress dependencies
*/
@@ -20393,6 +20614,7 @@ function getLayoutTypes() {
*/
+
const defaultLayout = {
type: 'default'
};
@@ -20419,7 +20641,9 @@ function LayoutStyle({
const hasBlockGapSupport = blockGapSupport !== null;
if (layoutType) {
if (css) {
- return (0,external_React_.createElement)("style", null, css);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("style", {
+ children: css
+ });
}
const layoutStyle = layoutType.getLayoutStyle?.({
hasBlockGapSupport,
@@ -20427,7 +20651,9 @@ function LayoutStyle({
...props
});
if (layoutStyle) {
- return (0,external_React_.createElement)("style", null, layoutStyle);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("style", {
+ children: layoutStyle
+ });
}
}
return null;
@@ -20507,59 +20733,63 @@ function useAvailableAlignments(controls = use_available_alignments_DEFAULT_CONT
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/align-none.js
-
/**
* WordPress dependencies
*/
-const alignNone = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const alignNone = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"
+ })
+});
/* harmony default export */ const align_none = (alignNone);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/position-left.js
-
/**
* WordPress dependencies
*/
-const positionLeft = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const positionLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"
+ })
+});
/* harmony default export */ const position_left = (positionLeft);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/position-right.js
-
/**
* WordPress dependencies
*/
-const positionRight = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const positionRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"
+ })
+});
/* harmony default export */ const position_right = (positionRight);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/stretch-full-width.js
-
/**
* WordPress dependencies
*/
-const stretchFullWidth = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const stretchFullWidth = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"
+ })
+});
/* harmony default export */ const stretch_full_width = (stretchFullWidth);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-alignment-control/constants.js
@@ -20597,7 +20827,6 @@ const constants_BLOCK_ALIGNMENTS_CONTROLS = {
const constants_DEFAULT_CONTROL = 'none';
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-alignment-control/ui.js
-
/**
* External dependencies
*/
@@ -20614,6 +20843,8 @@ const constants_DEFAULT_CONTROL = 'none';
*/
+
+
function BlockAlignmentUI({
value,
onChange,
@@ -20655,37 +20886,40 @@ function BlockAlignmentUI({
children: ({
onClose
}) => {
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- className: "block-editor-block-alignment-control__menu-group"
- }, enabledControls.map(({
- name: controlName,
- info
- }) => {
- const {
- icon,
- title
- } = constants_BLOCK_ALIGNMENTS_CONTROLS[controlName];
- // If no value is provided, mark as selected the `none` option.
- const isSelected = controlName === value || !value && controlName === 'none';
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- key: controlName,
- icon: icon,
- iconPosition: "left",
- className: classnames_default()('components-dropdown-menu__menu-item', {
- 'is-active': isSelected
- }),
- isSelected: isSelected,
- onClick: () => {
- onChangeAlignment(controlName);
- onClose();
- },
- role: "menuitemradio",
- info: info
- }, title);
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ className: "block-editor-block-alignment-control__menu-group",
+ children: enabledControls.map(({
+ name: controlName,
+ info
+ }) => {
+ const {
+ icon,
+ title
+ } = constants_BLOCK_ALIGNMENTS_CONTROLS[controlName];
+ // If no value is provided, mark as selected the `none` option.
+ const isSelected = controlName === value || !value && controlName === 'none';
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: icon,
+ iconPosition: "left",
+ className: dist_clsx('components-dropdown-menu__menu-item', {
+ 'is-active': isSelected
+ }),
+ isSelected: isSelected,
+ onClick: () => {
+ onChangeAlignment(controlName);
+ onClose();
+ },
+ role: "menuitemradio",
+ info: info,
+ children: title
+ }, controlName);
+ })
+ })
+ });
}
};
- return (0,external_React_.createElement)(UIComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(UIComponent, {
...commonProps,
...extraProps
});
@@ -20693,19 +20927,19 @@ function BlockAlignmentUI({
/* harmony default export */ const block_alignment_control_ui = (BlockAlignmentUI);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-alignment-control/index.js
-
/**
* Internal dependencies
*/
+
const BlockAlignmentControl = props => {
- return (0,external_React_.createElement)(block_alignment_control_ui, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_alignment_control_ui, {
...props,
isToolbar: false
});
};
const BlockAlignmentToolbar = props => {
- return (0,external_React_.createElement)(block_alignment_control_ui, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_alignment_control_ui, {
...props,
isToolbar: true
});
@@ -20789,7 +21023,6 @@ function useBlockEditingMode(mode) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/align.js
-
/**
* External dependencies
*/
@@ -20815,6 +21048,7 @@ function useBlockEditingMode(mode) {
* @constant
* @type {string[]}
*/
+
const ALL_ALIGNMENTS = ['left', 'center', 'right', 'wide', 'full'];
/**
@@ -20910,14 +21144,15 @@ function BlockEditAlignmentToolbarControlsPure({
align: nextAlign
});
};
- return (0,external_React_.createElement)(block_controls, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_controls, {
group: "block",
- __experimentalShareWithChildBlocks: true
- }, (0,external_React_.createElement)(BlockAlignmentControl, {
- value: align,
- onChange: updateAlignment,
- controls: validAlignments
- }));
+ __experimentalShareWithChildBlocks: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockAlignmentControl, {
+ value: align,
+ onChange: updateAlignment,
+ controls: validAlignments
+ })
+ });
}
/* harmony default export */ const align = ({
shareWithChildBlocks: true,
@@ -20965,42 +21200,12 @@ function addAssignedAlign(props, blockType, attributes) {
// This way changing themes does not impact the block save.
const isAlignValid = getValidAlignments(blockAlign, hasWideBlockSupport).includes(align);
if (isAlignValid) {
- props.className = classnames_default()(`align${align}`, props.className);
+ props.className = dist_clsx(`align${align}`, props.className);
}
return props;
}
(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/editor/align/addAttribute', addAttribute);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/lock.js
-/**
- * WordPress dependencies
- */
-
-
-/**
- * Filters registered block settings, extending attributes to include `lock`.
- *
- * @param {Object} settings Original block settings.
- *
- * @return {Object} Filtered block settings.
- */
-function lock_addAttribute(settings) {
- var _settings$attributes$;
- // Allow blocks to specify their own attribute definition with default values if needed.
- if ('type' in ((_settings$attributes$ = settings.attributes?.lock) !== null && _settings$attributes$ !== void 0 ? _settings$attributes$ : {})) {
- return settings;
- }
- // Gracefully handle if settings.attributes is undefined.
- settings.attributes = {
- ...settings.attributes,
- lock: {
- type: 'object'
- }
- };
- return settings;
-}
-(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/lock/addAttribute', lock_addAttribute);
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls/groups.js
/**
* WordPress dependencies
@@ -21037,7 +21242,6 @@ const groups_groups = {
/* harmony default export */ const inspector_controls_groups = (groups_groups);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls/fill.js
-
/**
* WordPress dependencies
*/
@@ -21051,6 +21255,7 @@ const groups_groups = {
*/
+
function InspectorControlsFill({
children,
group = 'default',
@@ -21074,15 +21279,18 @@ function InspectorControlsFill({
if (!context[mayDisplayControlsKey]) {
return null;
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalStyleProvider, {
- document: document
- }, (0,external_React_.createElement)(Fill, null, fillProps => {
- return (0,external_React_.createElement)(ToolsPanelInspectorControl, {
- fillProps: fillProps,
- children: children,
- resetAllFilter: resetAllFilter
- });
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalStyleProvider, {
+ document: document,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Fill, {
+ children: fillProps => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ToolsPanelInspectorControl, {
+ fillProps: fillProps,
+ children: children,
+ resetAllFilter: resetAllFilter
+ });
+ }
+ })
+ });
}
function RegisterResetAll({
resetAllFilter,
@@ -21117,16 +21325,17 @@ function ToolsPanelInspectorControl({
// access to any React Context whose Provider is part of
// the InspectorControlsSlot tree. So we re-create the
// Provider in this subtree.
- const innerMarkup = (0,external_React_.createElement)(RegisterResetAll, {
- resetAllFilter: resetAllFilter
- }, children);
- return forwardedContext.reduce((inner, [Provider, props]) => (0,external_React_.createElement)(Provider, {
- ...props
- }, inner), innerMarkup);
+ const innerMarkup = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RegisterResetAll, {
+ resetAllFilter: resetAllFilter,
+ children: children
+ });
+ return forwardedContext.reduce((inner, [Provider, props]) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Provider, {
+ ...props,
+ children: inner
+ }), innerMarkup);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls/block-support-tools-panel.js
-
/**
* WordPress dependencies
*/
@@ -21140,6 +21349,7 @@ function ToolsPanelInspectorControl({
+
function BlockSupportToolsPanel({
children,
group,
@@ -21154,6 +21364,7 @@ function BlockSupportToolsPanel({
getSelectedBlockClientId,
hasMultiSelection
} = (0,external_wp_data_namespaceObject.useSelect)(store);
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
const panelId = getSelectedBlockClientId();
const resetAll = (0,external_wp_element_namespaceObject.useCallback)((resetFilters = []) => {
const newAttributes = {};
@@ -21181,28 +21392,28 @@ function BlockSupportToolsPanel({
});
updateBlockAttributes(clientIds, newAttributes, true);
}, [getBlockAttributes, getMultiSelectedBlockClientIds, hasMultiSelection, panelId, updateBlockAttributes]);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
className: `${group}-block-support-panel`,
label: label,
resetAll: resetAll,
- key: panelId,
panelId: panelId,
hasInnerWrapper: true,
shouldRenderPlaceholderItems: true // Required to maintain fills ordering.
,
__experimentalFirstVisibleItemClass: "first",
__experimentalLastVisibleItemClass: "last",
- dropdownMenuProps: TOOLSPANEL_DROPDOWNMENU_PROPS
- }, children);
+ dropdownMenuProps: dropdownMenuProps,
+ children: children
+ }, panelId);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls/block-support-slot-container.js
-
/**
* WordPress dependencies
*/
+
function BlockSupportSlotContainer({
Slot,
fillProps,
@@ -21219,7 +21430,7 @@ function BlockSupportSlotContainer({
}]]
};
}, [toolsPanelContext, fillProps]);
- return (0,external_React_.createElement)(Slot, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Slot, {
...props,
fillProps: computedFillProps,
bubblesVirtually: true
@@ -21227,7 +21438,6 @@ function BlockSupportSlotContainer({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls/slot.js
-
/**
* WordPress dependencies
*/
@@ -21242,6 +21452,7 @@ function BlockSupportSlotContainer({
+
function InspectorControlsSlot({
__experimentalGroup,
group = 'default',
@@ -21277,16 +21488,17 @@ function InspectorControlsSlot({
return null;
}
if (label) {
- return (0,external_React_.createElement)(BlockSupportToolsPanel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockSupportToolsPanel, {
group: group,
- label: label
- }, (0,external_React_.createElement)(BlockSupportSlotContainer, {
- ...props,
- fillProps: computedFillProps,
- Slot: Slot
- }));
+ label: label,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockSupportSlotContainer, {
+ ...props,
+ fillProps: computedFillProps,
+ Slot: Slot
+ })
+ });
}
- return (0,external_React_.createElement)(Slot, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Slot, {
...props,
fillProps: computedFillProps,
bubblesVirtually: true
@@ -21294,24 +21506,24 @@ function InspectorControlsSlot({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls/index.js
-
/**
* Internal dependencies
*/
+
const InspectorControls = InspectorControlsFill;
InspectorControls.Slot = InspectorControlsSlot;
// This is just here for backward compatibility.
const InspectorAdvancedControls = props => {
- return (0,external_React_.createElement)(InspectorControlsFill, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InspectorControlsFill, {
...props,
group: "advanced"
});
};
InspectorAdvancedControls.Slot = props => {
- return (0,external_React_.createElement)(InspectorControlsSlot, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InspectorControlsSlot, {
...props,
group: "advanced"
});
@@ -21323,398 +21535,62 @@ InspectorAdvancedControls.slotName = 'InspectorAdvancedControls';
*/
/* harmony default export */ const inspector_controls = (InspectorControls);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/anchor.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-/**
- * Regular expression matching invalid anchor characters for replacement.
- *
- * @type {RegExp}
- */
-const ANCHOR_REGEX = /[\s#]/g;
-const ANCHOR_SCHEMA = {
- type: 'string',
- source: 'attribute',
- attribute: 'id',
- selector: '*'
-};
-
-/**
- * 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) {
- var _settings$attributes$;
- // Allow blocks to specify their own attribute definition with default values if needed.
- if ('type' in ((_settings$attributes$ = settings.attributes?.anchor) !== null && _settings$attributes$ !== void 0 ? _settings$attributes$ : {})) {
- return settings;
- }
- if ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(settings, 'anchor')) {
- // Gracefully handle if settings.attributes is undefined.
- settings.attributes = {
- ...settings.attributes,
- anchor: ANCHOR_SCHEMA
- };
- }
- return settings;
-}
-function BlockEditAnchorControlPure({
- name: blockName,
- anchor,
- setAttributes
-}) {
- const blockEditingMode = useBlockEditingMode();
- const isWeb = external_wp_element_namespaceObject.Platform.OS === 'web';
- const textControl = (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- className: "html-anchor-control",
- label: (0,external_wp_i18n_namespaceObject.__)('HTML anchor'),
- help: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page.'), isWeb && (0,external_React_.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/page-jumps/')
- }, (0,external_wp_i18n_namespaceObject.__)('Learn more about anchors'))),
- value: anchor || '',
- placeholder: !isWeb ? (0,external_wp_i18n_namespaceObject.__)('Add an anchor') : null,
- onChange: nextValue => {
- nextValue = nextValue.replace(ANCHOR_REGEX, '-');
- setAttributes({
- anchor: nextValue
- });
- },
- autoCapitalize: "none",
- autoComplete: "off"
- });
- return (0,external_React_.createElement)(external_React_.Fragment, null, isWeb && blockEditingMode === 'default' && (0,external_React_.createElement)(inspector_controls, {
- group: "advanced"
- }, textControl), !isWeb && blockName === 'core/heading' && (0,external_React_.createElement)(inspector_controls, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Heading settings')
- }, textControl)));
-}
-/* harmony default export */ const hooks_anchor = ({
- addSaveProps,
- edit: BlockEditAnchorControlPure,
- attributeKeys: ['anchor'],
- hasSupport(name) {
- return (0,external_wp_blocks_namespaceObject.hasBlockSupport)(name, 'anchor');
- }
-});
-
-/**
- * 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 ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockType, 'anchor')) {
- extraProps.id = attributes.anchor === '' ? null : attributes.anchor;
- }
- return extraProps;
-}
-(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/anchor/attribute', anchor_addAttribute);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/aria-label.js
-/**
- * WordPress dependencies
- */
-
-
-const ARIA_LABEL_SCHEMA = {
- type: 'string',
- source: 'attribute',
- attribute: 'aria-label',
- selector: '*'
-};
-
-/**
- * Filters registered block settings, extending attributes with ariaLabel using aria-label
- * of the first node.
- *
- * @param {Object} settings Original block settings.
- *
- * @return {Object} Filtered block settings.
- */
-function aria_label_addAttribute(settings) {
- // Allow blocks to specify their own attribute definition with default values if needed.
- if (settings?.attributes?.ariaLabel?.type) {
- return settings;
- }
- if ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(settings, 'ariaLabel')) {
- // Gracefully handle if settings.attributes is undefined.
- settings.attributes = {
- ...settings.attributes,
- ariaLabel: ARIA_LABEL_SCHEMA
- };
- }
- return settings;
-}
-
-/**
- * Override props assigned to save component to inject aria-label, if block
- * supports ariaLabel. 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 aria_label_addSaveProps(extraProps, blockType, attributes) {
- if ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockType, 'ariaLabel')) {
- extraProps['aria-label'] = attributes.ariaLabel === '' ? null : attributes.ariaLabel;
- }
- return extraProps;
-}
-/* harmony default export */ const aria_label = ({
- addSaveProps: aria_label_addSaveProps,
- attributeKeys: ['ariaLabel'],
- hasSupport(name) {
- return (0,external_wp_blocks_namespaceObject.hasBlockSupport)(name, 'ariaLabel');
- }
-});
-(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/ariaLabel/attribute', aria_label_addAttribute);
-
-;// 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 to include `className`.
- *
- * @param {Object} settings Original block settings.
- *
- * @return {Object} Filtered block settings.
- */
-function custom_class_name_addAttribute(settings) {
- if ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(settings, 'customClassName', true)) {
- // Gracefully handle if settings.attributes is undefined.
- settings.attributes = {
- ...settings.attributes,
- className: {
- type: 'string'
- }
- };
- }
- return settings;
-}
-function CustomClassNameControlsPure({
- className,
- setAttributes
-}) {
- const blockEditingMode = useBlockEditingMode();
- if (blockEditingMode !== 'default') {
- return null;
- }
- return (0,external_React_.createElement)(inspector_controls, {
- group: "advanced"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- autoComplete: "off",
- label: (0,external_wp_i18n_namespaceObject.__)('Additional CSS class(es)'),
- value: className || '',
- onChange: nextValue => {
- setAttributes({
- className: nextValue !== '' ? nextValue : undefined
- });
- },
- help: (0,external_wp_i18n_namespaceObject.__)('Separate multiple classes with spaces.')
- }));
-}
-/* harmony default export */ const custom_class_name = ({
- edit: CustomClassNameControlsPure,
- addSaveProps: custom_class_name_addSaveProps,
- attributeKeys: ['className'],
- hasSupport(name) {
- return (0,external_wp_blocks_namespaceObject.hasBlockSupport)(name, 'customClassName', true);
- }
-});
-
-/**
- * Override props assigned to save component to inject the className, if block
- * supports customClassName. 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 ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockType, 'customClassName', true) && attributes.className) {
- extraProps.className = classnames_default()(extraProps.className, attributes.className);
- }
- return extraProps;
-}
-function addTransforms(result, source, index, results) {
- if (!(0,external_wp_blocks_namespaceObject.hasBlockSupport)(result.name, 'customClassName', true)) {
- return result;
- }
-
- // If the condition verifies we are probably in the presence of a wrapping transform
- // e.g: nesting paragraphs in a group or columns and in that case the class should not be kept.
- if (results.length === 1 && result.innerBlocks.length === source.length) {
- return result;
- }
-
- // If we are transforming one block to multiple blocks or multiple blocks to one block,
- // we ignore the class during the transform.
- if (results.length === 1 && source.length > 1 || results.length > 1 && source.length === 1) {
- return result;
- }
-
- // If we are in presence of transform between one or more block in the source
- // that have one or more blocks in the result
- // we apply the class on source N to the result N,
- // if source N does not exists we do nothing.
- if (source[index]) {
- const originClassName = source[index]?.attributes.className;
- if (originClassName) {
- return {
- ...result,
- attributes: {
- ...result.attributes,
- className: originClassName
- }
- };
- }
- }
- return result;
-}
-(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/editor/custom-class-name/attribute', custom_class_name_addAttribute);
-(0,external_wp_hooks_namespaceObject.addFilter)('blocks.switchToBlockType.transformedBlock', 'core/color/addTransforms', addTransforms);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/generated-class-name.js
-/**
- * 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 ((0,external_wp_blocks_namespaceObject.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 = [...new Set([(0,external_wp_blocks_namespaceObject.getBlockDefaultClassName)(blockType.name), ...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 = (0,external_wp_blocks_namespaceObject.getBlockDefaultClassName)(blockType.name);
- }
- }
- return extraProps;
-}
-(0,external_wp_hooks_namespaceObject.addFilter)('blocks.getSaveContent.extraProps', 'core/generated-class-name/save-props', addGeneratedClassName);
-
-;// CONCATENATED MODULE: external ["wp","blob"]
-const external_wp_blob_namespaceObject = window["wp"]["blob"];
-;// CONCATENATED MODULE: external ["wp","dom"]
-const external_wp_dom_namespaceObject = window["wp"]["dom"];
-;// CONCATENATED MODULE: external ["wp","notices"]
-const external_wp_notices_namespaceObject = window["wp"]["notices"];
;// CONCATENATED MODULE: external ["wp","url"]
const external_wp_url_namespaceObject = window["wp"]["url"];
+;// CONCATENATED MODULE: external ["wp","dom"]
+const external_wp_dom_namespaceObject = window["wp"]["dom"];
+;// CONCATENATED MODULE: external ["wp","blob"]
+const external_wp_blob_namespaceObject = window["wp"]["blob"];
;// CONCATENATED MODULE: external ["wp","keycodes"]
const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/media.js
-
/**
* WordPress dependencies
*/
-const media = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const media = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m7 6.5 4 2.5-4 2.5z"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m7 6.5 4 2.5-4 2.5z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"
+ })]
+});
/* harmony default export */ const library_media = (media);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/upload.js
-
/**
* WordPress dependencies
*/
-const upload = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const upload = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"
+ })
+});
/* harmony default export */ const library_upload = (upload);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post-featured-image.js
-
/**
* WordPress dependencies
*/
-const postFeaturedImage = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const postFeaturedImage = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"
+ })
+});
/* harmony default export */ const post_featured_image = (postFeaturedImage);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-upload/index.js
@@ -21771,49 +21647,50 @@ var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(exte
;// CONCATENATED MODULE: external ["wp","preferences"]
const external_wp_preferences_namespaceObject = window["wp"]["preferences"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js
-
/**
* WordPress dependencies
*/
-const keyboardReturn = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const keyboardReturn = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "-2 -2 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"
-}));
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"
+ })
+});
/* harmony default export */ const keyboard_return = (keyboardReturn);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left-small.js
-
/**
* WordPress dependencies
*/
-const chevronLeftSmall = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronLeftSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"
+ })
+});
/* harmony default export */ const chevron_left_small = (chevronLeftSmall);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right-small.js
-
/**
* WordPress dependencies
*/
-const chevronRightSmall = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronRightSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"
+ })
+});
/* harmony default export */ const chevron_right_small = (chevronRightSmall);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/settings-drawer.js
-
/**
* WordPress dependencies
*/
@@ -21822,6 +21699,9 @@ const chevronRightSmall = (0,external_React_.createElement)(external_wp_primitiv
+
+
+
function LinkSettingsDrawer({
children,
settingsOpen,
@@ -21832,49 +21712,53 @@ function LinkSettingsDrawer({
const MaybeMotionDiv = prefersReducedMotion ? 'div' : external_wp_components_namespaceObject.__unstableMotion.div;
const id = (0,external_wp_compose_namespaceObject.useInstanceId)(LinkSettingsDrawer);
const settingsDrawerId = `link-control-settings-drawer-${id}`;
- return (0,external_React_.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "block-editor-link-control__drawer-toggle",
- "aria-expanded": settingsOpen,
- onClick: () => setSettingsOpen(!settingsOpen),
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left_small : chevron_right_small,
- "aria-controls": settingsDrawerId
- }, (0,external_wp_i18n_namespaceObject._x)('Advanced', 'Additional link settings')), (0,external_React_.createElement)(MaybeAnimatePresence, null, settingsOpen && (0,external_React_.createElement)(MaybeMotionDiv, {
- className: "block-editor-link-control__drawer",
- hidden: !settingsOpen,
- id: settingsDrawerId,
- initial: "collapsed",
- animate: "open",
- exit: "collapsed",
- variants: {
- open: {
- opacity: 1,
- height: 'auto'
- },
- collapsed: {
- opacity: 0,
- height: 0
- }
- },
- transition: {
- duration: 0.1
- }
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-link-control__drawer-inner"
- }, children))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "block-editor-link-control__drawer-toggle",
+ "aria-expanded": settingsOpen,
+ onClick: () => setSettingsOpen(!settingsOpen),
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left_small : chevron_right_small,
+ "aria-controls": settingsDrawerId,
+ children: (0,external_wp_i18n_namespaceObject._x)('Advanced', 'Additional link settings')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MaybeAnimatePresence, {
+ children: settingsOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MaybeMotionDiv, {
+ className: "block-editor-link-control__drawer",
+ hidden: !settingsOpen,
+ id: settingsDrawerId,
+ initial: "collapsed",
+ animate: "open",
+ exit: "collapsed",
+ variants: {
+ open: {
+ opacity: 1,
+ height: 'auto'
+ },
+ collapsed: {
+ opacity: 0,
+ height: 0
+ }
+ },
+ transition: {
+ duration: 0.1
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-link-control__drawer-inner",
+ children: children
+ })
+ })
+ })]
+ });
}
/* harmony default export */ const settings_drawer = (LinkSettingsDrawer);
-// EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js
-var lib = __webpack_require__(5428);
-var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
+// EXTERNAL MODULE: external "React"
+var external_React_ = __webpack_require__(1609);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-input/index.js
-
/**
* External dependencies
*/
-
/**
* WordPress dependencies
*/
@@ -21898,6 +21782,10 @@ var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
* @param {*} maybeFunc The argument to check.
* @return {boolean} True if the argument is a function, false otherwise.
*/
+
+
+
+
function isFunction(maybeFunc) {
return typeof maybeFunc === 'function';
}
@@ -21936,14 +21824,12 @@ class URLInput extends external_wp_element_namespaceObject.Component {
// Only have to worry about scrolling selected suggestion into view
// when already expanded.
- if (showSuggestions && selectedSuggestion !== null && this.suggestionNodes[selectedSuggestion] && !this.scrollingIntoView) {
- this.scrollingIntoView = true;
- lib_default()(this.suggestionNodes[selectedSuggestion], this.autocompleteRef.current, {
- onlyScrollIfNeeded: true
+ if (showSuggestions && selectedSuggestion !== null && this.suggestionNodes[selectedSuggestion]) {
+ this.suggestionNodes[selectedSuggestion].scrollIntoView({
+ behavior: 'instant',
+ block: 'nearest',
+ inline: 'nearest'
});
- this.props.setTimeout(() => {
- this.scrollingIntoView = false;
- }, 100);
}
// Update suggestions when the value changes.
@@ -22210,7 +22096,9 @@ class URLInput extends external_wp_element_namespaceObject.Component {
};
}
render() {
- return (0,external_React_.createElement)(external_React_.Fragment, null, this.renderControl(), this.renderSuggestions());
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [this.renderControl(), this.renderSuggestions()]
+ });
}
renderControl() {
const {
@@ -22237,7 +22125,7 @@ class URLInput extends external_wp_element_namespaceObject.Component {
id: inputId,
// Passes attribute to label for the for attribute
label,
- className: classnames_default()('block-editor-url-input', className, {
+ className: dist_clsx('block-editor-url-input', className, {
'is-full-width': isFullWidth
}),
hideLabelFromVision
@@ -22271,12 +22159,13 @@ class URLInput extends external_wp_element_namespaceObject.Component {
hint: 'Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version'
});
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.BaseControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.BaseControl, {
__nextHasNoMarginBottom: __nextHasNoMarginBottom,
- ...controlProps
- }, (0,external_React_.createElement)("input", {
- ...inputProps
- }), loading && (0,external_React_.createElement)(external_wp_components_namespaceObject.Spinner, null));
+ ...controlProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
+ ...inputProps
+ }), loading && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})]
+ });
}
renderSuggestions() {
const {
@@ -22321,20 +22210,22 @@ class URLInput extends external_wp_element_namespaceObject.Component {
currentInputValue: suggestionsValue
});
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Popover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover, {
placement: "bottom",
- focusOnMount: false
- }, (0,external_React_.createElement)("div", {
- ...suggestionsListProps,
- className: classnames_default()('block-editor-url-input__suggestions', `${className}__suggestions`)
- }, suggestions.map((suggestion, index) => (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- ...buildSuggestionItemProps(suggestion, index),
- key: suggestion.id,
- className: classnames_default()('block-editor-url-input__suggestion', {
- 'is-selected': index === selectedSuggestion
- }),
- onClick: () => this.handleOnClick(suggestion)
- }, suggestion.title))));
+ focusOnMount: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...suggestionsListProps,
+ className: dist_clsx('block-editor-url-input__suggestions', `${className}__suggestions`),
+ children: suggestions.map((suggestion, index) => /*#__PURE__*/(0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+ ...buildSuggestionItemProps(suggestion, index),
+ key: suggestion.id,
+ className: dist_clsx('block-editor-url-input__suggestion', {
+ 'is-selected': index === selectedSuggestion
+ }),
+ onClick: () => this.handleOnClick(suggestion)
+ }, suggestion.title))
+ })
+ });
}
}
@@ -22356,21 +22247,21 @@ class URLInput extends external_wp_element_namespaceObject.Component {
}))(URLInput));
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js
-
/**
* WordPress dependencies
*/
-const plus = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const plus = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
+ })
+});
/* harmony default export */ const library_plus = (plus);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-create-button.js
-
/**
* WordPress dependencies
*/
@@ -22378,6 +22269,7 @@ const plus = (0,external_React_.createElement)(external_wp_primitives_namespaceO
+
const LinkControlSearchCreate = ({
searchTerm,
onClick,
@@ -22393,139 +22285,148 @@ const LinkControlSearchCreate = ({
} else {
text = (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: search term. */
(0,external_wp_i18n_namespaceObject.__)('Create: <mark>%s</mark>'), searchTerm), {
- mark: (0,external_React_.createElement)("mark", null)
+ mark: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("mark", {})
});
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
...itemProps,
iconPosition: "left",
icon: library_plus,
className: "block-editor-link-control__search-item",
- onClick: onClick
- }, text);
+ onClick: onClick,
+ children: text
+ });
};
/* harmony default export */ const search_create_button = (LinkControlSearchCreate);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post-list.js
-
/**
* WordPress dependencies
*/
-const postList = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const postList = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"
+ })
+});
/* harmony default export */ const post_list = (postList);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/page.js
-
/**
* WordPress dependencies
*/
-const page = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const page = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"
+ })]
+});
/* harmony default export */ const library_page = (page);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/tag.js
-
/**
* WordPress dependencies
*/
-const tag = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const tag = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"
+ })
+});
/* harmony default export */ const library_tag = (tag);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/category.js
-
/**
* WordPress dependencies
*/
-const category = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const category = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",
- fillRule: "evenodd",
- clipRule: "evenodd"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",
+ fillRule: "evenodd",
+ clipRule: "evenodd"
+ })
+});
/* harmony default export */ const library_category = (category);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/file.js
-
/**
* WordPress dependencies
*/
-const file = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const file = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"
+ })
+});
/* harmony default export */ const library_file = (file);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/globe.js
-
/**
* WordPress dependencies
*/
-const globe = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const globe = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"
+ })
+});
/* harmony default export */ const library_globe = (globe);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/home.js
-
/**
* WordPress dependencies
*/
-const home = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const home = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"
+ })
+});
/* harmony default export */ const library_home = (home);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/verse.js
-
/**
* WordPress dependencies
*/
-const verse = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const verse = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
/* harmony default export */ const library_verse = (verse);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
-
/**
* WordPress dependencies
*/
@@ -22535,6 +22436,7 @@ const verse = (0,external_React_.createElement)(external_wp_primitives_namespace
+
const ICONS_MAP = {
post: post_list,
page: library_page,
@@ -22561,7 +22463,7 @@ function SearchItemIcon({
}
}
if (icon) {
- return (0,external_React_.createElement)(build_module_icon, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
className: "block-editor-link-control__search-item-icon",
icon: icon
});
@@ -22576,12 +22478,16 @@ function SearchItemIcon({
*/
function addLeadingSlash(url) {
const trimmedURL = url?.trim();
- if (!trimmedURL?.length) return url;
+ if (!trimmedURL?.length) {
+ return url;
+ }
return url?.replace(/^\/?/, '/');
}
function removeTrailingSlash(url) {
const trimmedURL = url?.trim();
- if (!trimmedURL?.length) return url;
+ if (!trimmedURL?.length) {
+ return url;
+ }
return url?.replace(/\/$/, '');
}
const partialRight = (fn, ...partialArgs) => (...args) => fn(...args, ...partialArgs);
@@ -22599,7 +22505,9 @@ const defaultTo = d => v => {
* @return {string} the processed url to display.
*/
function getURLForDisplay(url) {
- if (!url) return url;
+ if (!url) {
+ return url;
+ }
return (0,external_wp_compose_namespaceObject.pipe)(external_wp_url_namespaceObject.safeDecodeURI, external_wp_url_namespaceObject.getPath, defaultTo(''), partialRight(external_wp_url_namespaceObject.filterURLForDisplay, 24), removeTrailingSlash, addLeadingSlash)(url);
}
const LinkControlSearchItem = ({
@@ -22611,23 +22519,24 @@ const LinkControlSearchItem = ({
shouldShowType = false
}) => {
const info = isURL ? (0,external_wp_i18n_namespaceObject.__)('Press ENTER to add this link') : getURLForDisplay(suggestion.url);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
...itemProps,
info: info,
iconPosition: "left",
- icon: (0,external_React_.createElement)(SearchItemIcon, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SearchItemIcon, {
suggestion: suggestion,
isURL: isURL
}),
onClick: onClick,
shortcut: shouldShowType && getVisualTypeName(suggestion),
- className: "block-editor-link-control__search-item"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextHighlight
- // The component expects a plain text string.
- , {
- text: (0,external_wp_dom_namespaceObject.__unstableStripHTML)(suggestion.title),
- highlight: searchTerm
- }));
+ className: "block-editor-link-control__search-item",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextHighlight
+ // The component expects a plain text string.
+ , {
+ text: (0,external_wp_dom_namespaceObject.__unstableStripHTML)(suggestion.title),
+ highlight: searchTerm
+ })
+ });
};
function getVisualTypeName(suggestion) {
if (suggestion.isFrontPage) {
@@ -22663,7 +22572,6 @@ const DEFAULT_LINK_SETTINGS = [{
}];
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-results.js
-
/**
* WordPress dependencies
*/
@@ -22681,6 +22589,8 @@ const DEFAULT_LINK_SETTINGS = [{
+
+
function LinkControlSearchResults({
instanceId,
withCreateSuggestion,
@@ -22695,7 +22605,7 @@ function LinkControlSearchResults({
createSuggestionButtonText,
suggestionsQuery
}) {
- const resultsListClasses = classnames_default()('block-editor-link-control__search-results', {
+ const resultsListClasses = dist_clsx('block-editor-link-control__search-results', {
'is-loading': isLoading
});
const isSingleDirectEntryResult = suggestions.length === 1 && LINK_ENTRY_TYPES.includes(suggestions[0].type);
@@ -22709,52 +22619,56 @@ function LinkControlSearchResults({
const searchResultsLabelId = `block-editor-link-control-search-results-label-${instanceId}`;
const labelText = isInitialSuggestions ? (0,external_wp_i18n_namespaceObject.__)('Suggestions') : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: search term. */
(0,external_wp_i18n_namespaceObject.__)('Search results for "%s"'), currentInputValue);
- const searchResultsLabel = (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- id: searchResultsLabelId
- }, labelText);
- return (0,external_React_.createElement)("div", {
- className: "block-editor-link-control__search-results-wrapper"
- }, searchResultsLabel, (0,external_React_.createElement)("div", {
- ...suggestionsListProps,
- className: resultsListClasses,
- "aria-labelledby": searchResultsLabelId
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, suggestions.map((suggestion, index) => {
- if (shouldShowCreateSuggestion && CREATE_TYPE === suggestion.type) {
- return (0,external_React_.createElement)(search_create_button, {
- searchTerm: currentInputValue,
- buttonText: createSuggestionButtonText,
- onClick: () => handleSuggestionClick(suggestion)
- // 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
- });
- }
+ const searchResultsLabel = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ id: searchResultsLabelId,
+ children: labelText
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-link-control__search-results-wrapper",
+ children: [searchResultsLabel, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...suggestionsListProps,
+ className: resultsListClasses,
+ "aria-labelledby": searchResultsLabelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ children: suggestions.map((suggestion, index) => {
+ if (shouldShowCreateSuggestion && CREATE_TYPE === suggestion.type) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(search_create_button, {
+ searchTerm: currentInputValue,
+ buttonText: createSuggestionButtonText,
+ onClick: () => handleSuggestionClick(suggestion)
+ // Intentionally only using `type` here as
+ // the constant is enough to uniquely
+ // identify the single "CREATE" suggestion.
+ ,
+
+ itemProps: buildSuggestionItemProps(suggestion, index),
+ isSelected: index === selectedSuggestion
+ }, suggestion.type);
+ }
- // 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 (0,external_React_.createElement)(search_item, {
- key: `${suggestion.id}-${suggestion.type}`,
- itemProps: buildSuggestionItemProps(suggestion, index),
- suggestion: suggestion,
- index: index,
- onClick: () => {
- handleSuggestionClick(suggestion);
- },
- isSelected: index === selectedSuggestion,
- isURL: LINK_ENTRY_TYPES.includes(suggestion.type),
- searchTerm: currentInputValue,
- shouldShowType: shouldShowSuggestionsTypes,
- isFrontPage: suggestion?.isFrontPage,
- isBlogHome: suggestion?.isBlogHome
- });
- }))));
+ // 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 /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(search_item, {
+ itemProps: buildSuggestionItemProps(suggestion, index),
+ suggestion: suggestion,
+ index: index,
+ onClick: () => {
+ handleSuggestionClick(suggestion);
+ },
+ isSelected: index === selectedSuggestion,
+ isURL: LINK_ENTRY_TYPES.includes(suggestion.type),
+ searchTerm: currentInputValue,
+ shouldShowType: shouldShowSuggestionsTypes,
+ isFrontPage: suggestion?.isFrontPage,
+ isBlogHome: suggestion?.isBlogHome
+ }, `${suggestion.id}-${suggestion.type}`);
+ })
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/is-url-like.js
@@ -22918,7 +22832,6 @@ function useSearchHandler(suggestionsQuery, allowDirectEntry, withCreateSuggesti
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-input.js
-
/**
* WordPress dependencies
*/
@@ -22937,6 +22850,8 @@ function useSearchHandler(suggestionsQuery, allowDirectEntry, withCreateSuggesti
// Must be a function as otherwise URLInput will default
// to the fetchLinkSuggestions passed in block editor settings
// which will cause an unintended http request.
+
+
const noopSearchHandler = () => Promise.resolve([]);
const noop = () => {};
const LinkControlSearchInput = (0,external_wp_element_namespaceObject.forwardRef)(({
@@ -22950,7 +22865,7 @@ const LinkControlSearchInput = (0,external_wp_element_namespaceObject.forwardRef
onChange = noop,
onSelect = noop,
showSuggestions = true,
- renderSuggestions = props => (0,external_React_.createElement)(LinkControlSearchResults, {
+ renderSuggestions = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LinkControlSearchResults, {
...props
}),
fetchSuggestions = null,
@@ -23016,65 +22931,68 @@ const LinkControlSearchInput = (0,external_wp_element_namespaceObject.forwardRef
}, suggestion);
}
};
- return (0,external_React_.createElement)("div", {
- className: "block-editor-link-control__search-input-container"
- }, (0,external_React_.createElement)(url_input, {
- disableSuggestions: currentLink?.url === value,
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Link'),
- hideLabelFromVision: hideLabelFromVision,
- className: className,
- value: value,
- onChange: onInputChange,
- placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : (0,external_wp_i18n_namespaceObject.__)('Search or type url'),
- __experimentalRenderSuggestions: showSuggestions ? handleRenderSuggestions : null,
- __experimentalFetchLinkSuggestions: searchHandler,
- __experimentalHandleURLSuggestions: true,
- __experimentalShowInitialSuggestions: showInitialSuggestions,
- onSubmit: (suggestion, event) => {
- const hasSuggestion = suggestion || focusedSuggestion;
-
- // If there is no suggestion and the value (ie: any manually entered URL) is empty
- // then don't allow submission otherwise we get empty links.
- if (!hasSuggestion && !value?.trim()?.length) {
- event.preventDefault();
- } else {
- onSuggestionSelected(hasSuggestion || {
- url: value
- });
- }
- },
- ref: ref
- }), children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-link-control__search-input-container",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(url_input, {
+ disableSuggestions: currentLink?.url === value,
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Link'),
+ hideLabelFromVision: hideLabelFromVision,
+ className: className,
+ value: value,
+ onChange: onInputChange,
+ placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : (0,external_wp_i18n_namespaceObject.__)('Search or type URL'),
+ __experimentalRenderSuggestions: showSuggestions ? handleRenderSuggestions : null,
+ __experimentalFetchLinkSuggestions: searchHandler,
+ __experimentalHandleURLSuggestions: true,
+ __experimentalShowInitialSuggestions: showInitialSuggestions,
+ onSubmit: (suggestion, event) => {
+ const hasSuggestion = suggestion || focusedSuggestion;
+
+ // If there is no suggestion and the value (ie: any manually entered URL) is empty
+ // then don't allow submission otherwise we get empty links.
+ if (!hasSuggestion && !value?.trim()?.length) {
+ event.preventDefault();
+ } else {
+ onSuggestionSelected(hasSuggestion || {
+ url: value
+ });
+ }
+ },
+ ref: ref
+ }), children]
+ });
});
/* harmony default export */ const search_input = (LinkControlSearchInput);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/info.js
-
/**
* WordPress dependencies
*/
-const info = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const info = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"
+ })
+});
/* harmony default export */ const library_info = (info);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js
-
/**
* WordPress dependencies
*/
-const pencil = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const pencil = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"
+ })
+});
/* harmony default export */ const library_pencil = (pencil);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js
@@ -23086,33 +23004,35 @@ const pencil = (0,external_React_.createElement)(external_wp_primitives_namespac
/* harmony default export */ const edit = (library_pencil);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/link-off.js
-
/**
* WordPress dependencies
*/
-const linkOff = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const linkOff = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"
+ })
+});
/* harmony default export */ const link_off = (linkOff);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/copy-small.js
-
/**
* WordPress dependencies
*/
-const copySmall = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const copySmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M5.625 5.5h9.75c.069 0 .125.056.125.125v9.75a.125.125 0 0 1-.125.125h-9.75a.125.125 0 0 1-.125-.125v-9.75c0-.069.056-.125.125-.125ZM4 5.625C4 4.728 4.728 4 5.625 4h9.75C16.273 4 17 4.728 17 5.625v9.75c0 .898-.727 1.625-1.625 1.625h-9.75A1.625 1.625 0 0 1 4 15.375v-9.75Zm14.5 11.656v-9H20v9C20 18.8 18.77 20 17.251 20H6.25v-1.5h11.001c.69 0 1.249-.528 1.249-1.219Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M5.625 5.5h9.75c.069 0 .125.056.125.125v9.75a.125.125 0 0 1-.125.125h-9.75a.125.125 0 0 1-.125-.125v-9.75c0-.069.056-.125.125-.125ZM4 5.625C4 4.728 4.728 4 5.625 4h9.75C16.273 4 17 4.728 17 5.625v9.75c0 .898-.727 1.625-1.625 1.625h-9.75A1.625 1.625 0 0 1 4 15.375v-9.75Zm14.5 11.656v-9H20v9C20 18.8 18.77 20 17.251 20H6.25v-1.5h11.001c.69 0 1.249-.528 1.249-1.219Z"
+ })
+});
/* harmony default export */ const copy_small = (copySmall);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/viewer-slot.js
@@ -23212,7 +23132,6 @@ function useRemoteUrlData(url) {
/* harmony default export */ const use_rich_url_data = (useRemoteUrlData);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/link-preview.js
-
/**
* External dependencies
*/
@@ -23236,6 +23155,9 @@ function useRemoteUrlData(url) {
*/
+
+
+
function LinkPreview({
value,
onEditClick,
@@ -23261,17 +23183,17 @@ function LinkPreview({
const displayTitle = !isEmptyURL && (0,external_wp_dom_namespaceObject.__unstableStripHTML)(richData?.title || value?.title || displayURL);
let icon;
if (richData?.icon) {
- icon = (0,external_React_.createElement)("img", {
+ icon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
src: richData?.icon,
alt: ""
});
} else if (isEmptyURL) {
- icon = (0,external_React_.createElement)(build_module_icon, {
+ icon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
icon: library_info,
size: 32
});
} else {
- icon = (0,external_React_.createElement)(build_module_icon, {
+ icon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
icon: library_globe
});
}
@@ -23284,69 +23206,83 @@ function LinkPreview({
type: 'snackbar'
});
});
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Currently selected'),
- className: classnames_default()('block-editor-link-control__search-item', {
+ className: dist_clsx('block-editor-link-control__search-item', {
'is-current': true,
'is-rich': hasRichData,
'is-fetching': !!isFetching,
'is-preview': true,
'is-error': isEmptyURL,
'is-url-title': displayTitle === displayURL
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-link-control__search-item-top",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
+ className: "block-editor-link-control__search-item-header",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: dist_clsx('block-editor-link-control__search-item-icon', {
+ 'is-image': richData?.icon
+ }),
+ children: icon
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-link-control__search-item-details",
+ children: !isEmptyURL ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ className: "block-editor-link-control__search-item-title",
+ href: value.url,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTruncate, {
+ numberOfLines: 1,
+ children: displayTitle
+ })
+ }), value?.url && displayTitle !== displayURL && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-link-control__search-item-info",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTruncate, {
+ numberOfLines: 1,
+ children: displayURL
+ })
+ })]
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-link-control__search-item-error-notice",
+ children: (0,external_wp_i18n_namespaceObject.__)('Link is empty')
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: edit,
+ label: (0,external_wp_i18n_namespaceObject.__)('Edit link'),
+ onClick: onEditClick,
+ size: "compact"
+ }), hasUnlinkControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: link_off,
+ label: (0,external_wp_i18n_namespaceObject.__)('Remove link'),
+ onClick: onRemove,
+ size: "compact"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: copy_small,
+ label: (0,external_wp_i18n_namespaceObject.sprintf)(
+ // Translators: %s is a placeholder for the link URL and an optional colon, (if a Link URL is present).
+ (0,external_wp_i18n_namespaceObject.__)('Copy link%s'),
+ // Ends up looking like "Copy link: https://example.com".
+ isEmptyURL || showIconLabels ? '' : ': ' + value.url),
+ ref: ref,
+ __experimentalIsFocusable: true,
+ disabled: isEmptyURL,
+ size: "compact"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ViewerSlot, {
+ fillProps: value
+ })]
})
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-link-control__search-item-top"
- }, (0,external_React_.createElement)("span", {
- className: "block-editor-link-control__search-item-header"
- }, (0,external_React_.createElement)("span", {
- className: classnames_default()('block-editor-link-control__search-item-icon', {
- 'is-image': richData?.icon
- })
- }, icon), (0,external_React_.createElement)("span", {
- className: "block-editor-link-control__search-item-details"
- }, !isEmptyURL ? (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- className: "block-editor-link-control__search-item-title",
- href: value.url
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, {
- numberOfLines: 1
- }, displayTitle)), value?.url && displayTitle !== displayURL && (0,external_React_.createElement)("span", {
- className: "block-editor-link-control__search-item-info"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, {
- numberOfLines: 1
- }, displayURL))) : (0,external_React_.createElement)("span", {
- className: "block-editor-link-control__search-item-error-notice"
- }, (0,external_wp_i18n_namespaceObject.__)('Link is empty')))), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: edit,
- label: (0,external_wp_i18n_namespaceObject.__)('Edit link'),
- onClick: onEditClick,
- size: "compact"
- }), hasUnlinkControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: link_off,
- label: (0,external_wp_i18n_namespaceObject.__)('Remove link'),
- onClick: onRemove,
- size: "compact"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: copy_small,
- label: (0,external_wp_i18n_namespaceObject.sprintf)(
- // Translators: %s is a placeholder for the link URL and an optional colon, (if a Link URL is present).
- (0,external_wp_i18n_namespaceObject.__)('Copy link%s'),
- // Ends up looking like "Copy link: https://example.com".
- isEmptyURL || showIconLabels ? '' : ': ' + value.url),
- ref: ref,
- disabled: isEmptyURL,
- size: "compact"
- }), (0,external_React_.createElement)(ViewerSlot, {
- fillProps: value
- })));
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/settings.js
-
/**
* WordPress dependencies
*/
+
+
const settings_noop = () => {};
const LinkControlSettings = ({
value,
@@ -23362,20 +23298,21 @@ const LinkControlSettings = ({
[setting.id]: newValue
});
};
- const theSettings = settings.map(setting => (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
+ const theSettings = settings.map(setting => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
__nextHasNoMarginBottom: true,
className: "block-editor-link-control__setting",
- key: setting.id,
label: setting.title,
onChange: handleSettingChange(setting),
checked: value ? !!value[setting.id] : false,
help: setting?.help
- }));
- return (0,external_React_.createElement)("fieldset", {
- className: "block-editor-link-control__settings"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "legend"
- }, (0,external_wp_i18n_namespaceObject.__)('Currently selected link settings')), theSettings);
+ }, setting.id));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
+ className: "block-editor-link-control__settings",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ as: "legend",
+ children: (0,external_wp_i18n_namespaceObject.__)('Currently selected link settings')
+ }), theSettings]
+ });
};
/* harmony default export */ const link_control_settings = (LinkControlSettings);
@@ -23507,7 +23444,6 @@ function useInternalValue(value) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/index.js
-
/**
* External dependencies
*/
@@ -23612,6 +23548,8 @@ function useInternalValue(value) {
* @property {Function} renderControlBottom Optional controls to be rendered at the bottom of the component.
*/
+
+
const link_control_noop = () => {};
const PREFERENCE_SCOPE = 'core/block-editor';
const PREFERENCE_KEY = 'linkControlSettingsDrawer';
@@ -23708,7 +23646,6 @@ function LinkControl({
// because otherwise using the keyboard to select text
// *within* the link format is not possible.
if (isMounting.current) {
- isMounting.current = false;
return;
}
@@ -23721,6 +23658,15 @@ function LinkControl({
nextFocusTarget.focus();
isEndingEditWithFocus.current = false;
}, [isEditingLink, isCreatingPage]);
+
+ // The component mounting reference is maintained separately
+ // to correctly reset values in `StrictMode`.
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ isMounting.current = false;
+ return () => {
+ isMounting.current = true;
+ };
+ }, []);
const hasLinkValue = value?.url?.trim()?.length > 0;
/**
@@ -23803,94 +23749,104 @@ function LinkControl({
const isEditing = (isEditingLink || !value) && !isCreatingPage;
const isDisabled = !valueHasChanges || currentInputIsEmpty;
const showSettings = !!settings?.length && isEditingLink && hasLinkValue;
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
tabIndex: -1,
ref: wrapperNode,
- className: "block-editor-link-control"
- }, isCreatingPage && (0,external_React_.createElement)("div", {
- className: "block-editor-link-control__loading"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Spinner, null), " ", (0,external_wp_i18n_namespaceObject.__)('Creating'), "\u2026"), isEditing && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("div", {
- className: classnames_default()({
- 'block-editor-link-control__search-input-wrapper': true,
- 'has-text-control': showTextControl,
- 'has-actions': showActions
- })
- }, showTextControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- ref: textInputRef,
- className: "block-editor-link-control__field block-editor-link-control__text-content",
- label: (0,external_wp_i18n_namespaceObject.__)('Text'),
- value: internalControlValue?.title,
- onChange: setInternalTextInputValue,
- onKeyDown: handleSubmitWithEnter,
- size: "__unstable-large"
- }), (0,external_React_.createElement)(search_input, {
- currentLink: value,
- className: "block-editor-link-control__field block-editor-link-control__search-input",
- placeholder: searchInputPlaceholder,
- value: currentUrlInputValue,
- withCreateSuggestion: withCreateSuggestion,
- onCreateSuggestion: createPage,
- onChange: setInternalURLInputValue,
- onSelect: handleSelectSuggestion,
- showInitialSuggestions: showInitialSuggestions,
- allowDirectEntry: !noDirectEntry,
- showSuggestions: showSuggestions,
- suggestionsQuery: suggestionsQuery,
- withURLSuggestion: !noURLSuggestion,
- createSuggestionButtonText: createSuggestionButtonText,
- hideLabelFromVision: !showTextControl
- }), !showActions && (0,external_React_.createElement)("div", {
- className: "block-editor-link-control__search-enter"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- onClick: isDisabled ? link_control_noop : handleSubmit,
- label: (0,external_wp_i18n_namespaceObject.__)('Submit'),
- icon: keyboard_return,
- className: "block-editor-link-control__search-submit",
- "aria-disabled": isDisabled
- }))), errorMessage && (0,external_React_.createElement)(external_wp_components_namespaceObject.Notice, {
- className: "block-editor-link-control__search-error",
- status: "error",
- isDismissible: false
- }, errorMessage)), value && !isEditingLink && !isCreatingPage && (0,external_React_.createElement)(LinkPreview, {
- key: value?.url // force remount when URL changes to avoid race conditions for rich previews
- ,
- value: value,
- onEditClick: () => setIsEditingLink(true),
- hasRichPreviews: hasRichPreviews,
- hasUnlinkControl: shownUnlinkControl,
- onRemove: () => {
- onRemove();
- setIsEditingLink(true);
- }
- }), showSettings && (0,external_React_.createElement)("div", {
- className: "block-editor-link-control__tools"
- }, !currentInputIsEmpty && (0,external_React_.createElement)(settings_drawer, {
- settingsOpen: isSettingsOpen,
- setSettingsOpen: setSettingsOpenWithPreference
- }, (0,external_React_.createElement)(link_control_settings, {
- value: internalControlValue,
- settings: settings,
- onChange: createSetInternalSettingValueHandler(settingsKeys)
- }))), showActions && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right",
- className: "block-editor-link-control__search-actions"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: handleCancel
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: isDisabled ? link_control_noop : handleSubmit,
- className: "block-editor-link-control__search-submit",
- "aria-disabled": isDisabled
- }, (0,external_wp_i18n_namespaceObject.__)('Save'))), !isCreatingPage && renderControlBottom && renderControlBottom());
+ className: "block-editor-link-control",
+ children: [isCreatingPage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-link-control__loading",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}), " ", (0,external_wp_i18n_namespaceObject.__)('Creating'), "\u2026"]
+ }), isEditing && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: dist_clsx({
+ 'block-editor-link-control__search-input-wrapper': true,
+ 'has-text-control': showTextControl,
+ 'has-actions': showActions
+ }),
+ children: [showTextControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ ref: textInputRef,
+ className: "block-editor-link-control__field block-editor-link-control__text-content",
+ label: (0,external_wp_i18n_namespaceObject.__)('Text'),
+ value: internalControlValue?.title,
+ onChange: setInternalTextInputValue,
+ onKeyDown: handleSubmitWithEnter,
+ size: "__unstable-large"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(search_input, {
+ currentLink: value,
+ className: "block-editor-link-control__field block-editor-link-control__search-input",
+ placeholder: searchInputPlaceholder,
+ value: currentUrlInputValue,
+ withCreateSuggestion: withCreateSuggestion,
+ onCreateSuggestion: createPage,
+ onChange: setInternalURLInputValue,
+ onSelect: handleSelectSuggestion,
+ showInitialSuggestions: showInitialSuggestions,
+ allowDirectEntry: !noDirectEntry,
+ showSuggestions: showSuggestions,
+ suggestionsQuery: suggestionsQuery,
+ withURLSuggestion: !noURLSuggestion,
+ createSuggestionButtonText: createSuggestionButtonText,
+ hideLabelFromVision: !showTextControl
+ }), !showActions && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-link-control__search-enter",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ onClick: isDisabled ? link_control_noop : handleSubmit,
+ label: (0,external_wp_i18n_namespaceObject.__)('Submit'),
+ icon: keyboard_return,
+ className: "block-editor-link-control__search-submit",
+ "aria-disabled": isDisabled
+ })
+ })]
+ }), errorMessage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
+ className: "block-editor-link-control__search-error",
+ status: "error",
+ isDismissible: false,
+ children: errorMessage
+ })]
+ }), value && !isEditingLink && !isCreatingPage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LinkPreview, {
+ // force remount when URL changes to avoid race conditions for rich previews
+ value: value,
+ onEditClick: () => setIsEditingLink(true),
+ hasRichPreviews: hasRichPreviews,
+ hasUnlinkControl: shownUnlinkControl,
+ onRemove: () => {
+ onRemove();
+ setIsEditingLink(true);
+ }
+ }, value?.url), showSettings && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-link-control__tools",
+ children: !currentInputIsEmpty && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(settings_drawer, {
+ settingsOpen: isSettingsOpen,
+ setSettingsOpen: setSettingsOpenWithPreference,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(link_control_settings, {
+ value: internalControlValue,
+ settings: settings,
+ onChange: createSetInternalSettingValueHandler(settingsKeys)
+ })
+ })
+ }), showActions && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ className: "block-editor-link-control__search-actions",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: handleCancel,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ onClick: isDisabled ? link_control_noop : handleSubmit,
+ className: "block-editor-link-control__search-submit",
+ "aria-disabled": isDisabled,
+ children: (0,external_wp_i18n_namespaceObject.__)('Save')
+ })]
+ }), !isCreatingPage && renderControlBottom && renderControlBottom()]
+ });
}
LinkControl.ViewerFill = ViewerFill;
LinkControl.DEFAULT_LINK_SETTINGS = DEFAULT_LINK_SETTINGS;
/* harmony default export */ const link_control = (LinkControl);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-replace-flow/index.js
-
/**
* External dependencies
*/
@@ -23917,6 +23873,9 @@ LinkControl.DEFAULT_LINK_SETTINGS = DEFAULT_LINK_SETTINGS;
+
+
+
const media_replace_flow_noop = () => {};
let uniqueId = 0;
const MediaReplaceFlow = ({
@@ -24005,77 +23964,89 @@ const MediaReplaceFlow = ({
return allowedTypes.every(allowedType => allowedType === 'image' || allowedType.startsWith('image/'));
};
const gallery = multiple && onlyAllowsImages();
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Dropdown, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
popoverProps: popoverProps,
contentClassName: "block-editor-media-replace-flow__options",
renderToggle: ({
isOpen,
onToggle
- }) => (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
ref: editMediaButtonRef,
"aria-expanded": isOpen,
"aria-haspopup": "true",
onClick: onToggle,
- onKeyDown: openOnArrowDown
- }, name),
+ onKeyDown: openOnArrowDown,
+ children: name
+ }),
renderContent: ({
onClose
- }) => (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.NavigableMenu, {
- className: "block-editor-media-replace-flow__media-upload-menu"
- }, (0,external_React_.createElement)(check, null, (0,external_React_.createElement)(media_upload, {
- gallery: gallery,
- addToGallery: addToGallery,
- multiple: multiple,
- value: multiple ? mediaIds : mediaId,
- onSelect: media => selectMedia(media, onClose),
- allowedTypes: allowedTypes,
- render: ({
- open
- }) => (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- icon: library_media,
- onClick: open
- }, (0,external_wp_i18n_namespaceObject.__)('Open Media Library'))
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.FormFileUpload, {
- onChange: event => {
- uploadFiles(event, onClose);
- },
- accept: accept,
- multiple: !!multiple,
- render: ({
- openFileDialog
- }) => {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- icon: library_upload,
- onClick: () => {
- openFileDialog();
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.NavigableMenu, {
+ className: "block-editor-media-replace-flow__media-upload-menu",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(check, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(media_upload, {
+ gallery: gallery,
+ addToGallery: addToGallery,
+ multiple: multiple,
+ value: multiple ? mediaIds : mediaId,
+ onSelect: media => selectMedia(media, onClose),
+ allowedTypes: allowedTypes,
+ render: ({
+ open
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: library_media,
+ onClick: open,
+ children: (0,external_wp_i18n_namespaceObject.__)('Open Media Library')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FormFileUpload, {
+ onChange: event => {
+ uploadFiles(event, onClose);
+ },
+ accept: accept,
+ multiple: !!multiple,
+ render: ({
+ openFileDialog
+ }) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: library_upload,
+ onClick: () => {
+ openFileDialog();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Upload')
+ });
+ }
+ })]
+ }), onToggleFeaturedImage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: post_featured_image,
+ onClick: onToggleFeaturedImage,
+ isPressed: useFeaturedImage,
+ children: (0,external_wp_i18n_namespaceObject.__)('Use featured image')
+ }), children]
+ }), onSelectURL &&
+ /*#__PURE__*/
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
+ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("form", {
+ className: dist_clsx('block-editor-media-flow__url-input', {
+ 'has-siblings': canUpload || onToggleFeaturedImage
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-media-replace-flow__image-url-label",
+ children: (0,external_wp_i18n_namespaceObject.__)('Current media URL:')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(link_control, {
+ value: {
+ url: mediaURL
+ },
+ settings: [],
+ showSuggestions: false,
+ onChange: ({
+ url
+ }) => {
+ onSelectURL(url);
+ editMediaButtonRef.current.focus();
}
- }, (0,external_wp_i18n_namespaceObject.__)('Upload'));
- }
- })), onToggleFeaturedImage && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- icon: post_featured_image,
- onClick: onToggleFeaturedImage,
- isPressed: useFeaturedImage
- }, (0,external_wp_i18n_namespaceObject.__)('Use featured image')), children), onSelectURL &&
- // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
- (0,external_React_.createElement)("form", {
- className: classnames_default()('block-editor-media-flow__url-input', {
- 'has-siblings': canUpload || onToggleFeaturedImage
- })
- }, (0,external_React_.createElement)("span", {
- className: "block-editor-media-replace-flow__image-url-label"
- }, (0,external_wp_i18n_namespaceObject.__)('Current media URL:')), (0,external_React_.createElement)(link_control, {
- value: {
- url: mediaURL
- },
- settings: [],
- showSuggestions: false,
- onChange: ({
- url
- }) => {
- onSelectURL(url);
- editMediaButtonRef.current.focus();
- }
- })))
+ })]
+ })]
+ })
});
};
@@ -24093,9 +24064,82 @@ const MediaReplaceFlow = ({
};
}), (0,external_wp_components_namespaceObject.withFilters)('editor.MediaReplaceFlow')])(MediaReplaceFlow));
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/background.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/global-styles/theme-file-uri-utils.js
+/**
+ * Internal dependencies
+ */
+
+
+/**
+ * Looks up a theme file URI based on a relative path.
+ *
+ * @param {string} file A relative path.
+ * @param {Array<Object>} themeFileURIs A collection of absolute theme file URIs and their corresponding file paths.
+ * @return {string?} A resolved theme file URI, if one is found in the themeFileURIs collection.
+ */
+function getResolvedThemeFilePath(file, themeFileURIs = []) {
+ const uri = themeFileURIs.find(themeFileUri => themeFileUri.name === file);
+ if (!uri?.href) {
+ return file;
+ }
+ return uri?.href;
+}
/**
+ * Mutates an object by settings a value at the provided path.
+ *
+ * @param {Object} object Object to set a value in.
+ * @param {number|string|Array} path Path in the object to modify.
+ * @param {*} value New value to set.
+ * @return {Object} Object with the new value set.
+ */
+function setMutably(object, path, value) {
+ path = path.split('.');
+ const finalValueKey = path.pop();
+ let prev = object;
+ for (const key of path) {
+ const current = prev[key];
+ prev = current;
+ }
+ prev[finalValueKey] = value;
+ return object;
+}
+
+/**
+ * Resolves any relative paths if a corresponding theme file URI is available.
+ * Note: this function mutates the object and is specifically to be used in
+ * an async styles build context in useGlobalStylesOutput
+ *
+ * @param {Object} themeJson Theme.json/Global styles tree.
+ * @param {Array<Object>} themeFileURIs A collection of absolute theme file URIs and their corresponding file paths.
+ * @return {Object} Returns mutated object.
+ */
+function setThemeFileUris(themeJson, themeFileURIs) {
+ if (!themeJson?.styles || !themeFileURIs) {
+ return themeJson;
+ }
+ themeFileURIs.forEach(({
+ name,
+ href,
+ target
+ }) => {
+ const value = getValueFromObjectPath(themeJson, target);
+ if (value === name) {
+ /*
+ * The object must not be updated immutably here because the
+ * themeJson is a reference to the global styles tree used as a dependency in the
+ * useGlobalStylesOutputWithConfig() hook. If we don't mutate the object,
+ * the hook will detect the change and re-render the component, resulting
+ * in a maximum depth exceeded error.
+ */
+ themeJson = setMutably(themeJson, target, href);
+ }
+ });
+ return themeJson;
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/global-styles/background-panel.js
+/**
* External dependencies
*/
@@ -24112,7 +24156,6 @@ const MediaReplaceFlow = ({
-
/**
* Internal dependencies
*/
@@ -24121,19 +24164,24 @@ const MediaReplaceFlow = ({
-const BACKGROUND_SUPPORT_KEY = 'background';
+
+
const IMAGE_BACKGROUND_TYPE = 'image';
+const background_panel_DEFAULT_CONTROLS = {
+ backgroundImage: true,
+ backgroundSize: false
+};
/**
- * Checks if there is a current value in the background image block support
- * attributes.
+ * Checks site settings to see if the background panel may be used.
+ * `settings.background.backgroundSize` exists also,
+ * but can only be used if settings?.background?.backgroundImage is `true`.
*
- * @param {Object} style Style attribute.
- * @return {boolean} Whether or not the block has a background image value set.
+ * @param {Object} settings Site settings
+ * @return {boolean} Whether site settings has activated background panel.
*/
-function hasBackgroundImageValue(style) {
- const hasValue = !!style?.background?.backgroundImage?.id || !!style?.background?.backgroundImage?.url;
- return hasValue;
+function useHasBackgroundPanel(settings) {
+ return external_wp_element_namespaceObject.Platform.OS === 'web' && settings?.background?.backgroundImage;
}
/**
@@ -24142,138 +24190,131 @@ function hasBackgroundImageValue(style) {
* as background position.
*
* @param {Object} style Style attribute.
- * @return {boolean} Whether or not the block has a background size value set.
+ * @return {boolean} Whether the block has a background size value set.
*/
function hasBackgroundSizeValue(style) {
return style?.background?.backgroundPosition !== undefined || style?.background?.backgroundSize !== undefined;
}
/**
- * Determine whether there is block support for background.
- *
- * @param {string} blockName Block name.
- * @param {string} feature Background image feature to check for.
+ * Checks if there is a current value in the background image block support
+ * attributes.
*
- * @return {boolean} Whether there is support.
+ * @param {Object} style Style attribute.
+ * @return {boolean} Whether the block has a background image value set.
*/
-function hasBackgroundSupport(blockName, feature = 'any') {
- if (external_wp_element_namespaceObject.Platform.OS !== 'web') {
- return false;
- }
- const support = (0,external_wp_blocks_namespaceObject.getBlockSupport)(blockName, BACKGROUND_SUPPORT_KEY);
- if (support === true) {
- return true;
- }
- if (feature === 'any') {
- return !!support?.backgroundImage || !!support?.backgroundSize || !!support?.backgroundRepeat;
- }
- return !!support?.[feature];
+function hasBackgroundImageValue(style) {
+ return !!style?.background?.backgroundImage?.id ||
+ // Supports url() string values in theme.json.
+ 'string' === typeof style?.background?.backgroundImage || !!style?.background?.backgroundImage?.url;
}
/**
- * Resets the background image block support attributes. This can be used when disabling
- * the background image controls for a block via a `ToolsPanel`.
+ * Get the help text for the background size control.
*
- * @param {Object} style Style attribute.
- * @param {Function} setAttributes Function to set block's attributes.
+ * @param {string} value backgroundSize value.
+ * @return {string} Translated help text.
*/
-function resetBackgroundImage(style = {}, setAttributes) {
- setAttributes({
- style: utils_cleanEmptyObject({
- ...style,
- background: {
- ...style?.background,
- backgroundImage: undefined
- }
- })
- });
+function backgroundSizeHelpText(value) {
+ if (value === 'cover' || value === undefined) {
+ return (0,external_wp_i18n_namespaceObject.__)('Image covers the space evenly.');
+ }
+ if (value === 'contain') {
+ return (0,external_wp_i18n_namespaceObject.__)('Image is contained without distortion.');
+ }
+ return (0,external_wp_i18n_namespaceObject.__)('Image has a fixed width.');
}
/**
- * Resets the background size block support attributes. This can be used when disabling
- * the background size controls for a block via a `ToolsPanel`.
+ * Converts decimal x and y coords from FocalPointPicker to percentage-based values
+ * to use as backgroundPosition value.
*
- * @param {Object} style Style attribute.
- * @param {Function} setAttributes Function to set block's attributes.
+ * @param {{x?:number, y?:number}} value FocalPointPicker coords.
+ * @return {string} backgroundPosition value.
*/
-function resetBackgroundSize(style = {}, setAttributes) {
- setAttributes({
- style: utils_cleanEmptyObject({
- ...style,
- background: {
- ...style?.background,
- backgroundPosition: undefined,
- backgroundRepeat: undefined,
- backgroundSize: undefined
- }
- })
- });
-}
+const coordsToBackgroundPosition = value => {
+ if (!value || isNaN(value.x) && isNaN(value.y)) {
+ return undefined;
+ }
+ const x = isNaN(value.x) ? 0.5 : value.x;
+ const y = isNaN(value.y) ? 0.5 : value.y;
+ return `${x * 100}% ${y * 100}%`;
+};
/**
- * Generates a CSS class name if an background image is set.
- *
- * @param {Object} style A block's style attribute.
+ * Converts backgroundPosition value to x and y coords for FocalPointPicker.
*
- * @return {string} CSS class name.
+ * @param {string} value backgroundPosition value.
+ * @return {{x?:number, y?:number}} FocalPointPicker coords.
*/
-function getBackgroundImageClasses(style) {
- return hasBackgroundImageValue(style) ? 'has-background' : '';
-}
+const backgroundPositionToCoords = value => {
+ if (!value) {
+ return {
+ x: undefined,
+ y: undefined
+ };
+ }
+ let [x, y] = value.split(' ').map(v => parseFloat(v) / 100);
+ x = isNaN(x) ? undefined : x;
+ y = isNaN(y) ? x : y;
+ return {
+ x,
+ y
+ };
+};
function InspectorImagePreview({
label,
filename,
url: imgUrl
}) {
- const imgLabel = label || (0,external_wp_url_namespaceObject.getFilename)(imgUrl);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, {
- as: "span"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "flex-start",
- as: "span"
- }, (0,external_React_.createElement)("span", {
- className: classnames_default()('block-editor-hooks__background__inspector-image-indicator-wrapper', {
- 'has-image': imgUrl
- }),
- "aria-hidden": true
- }, imgUrl && (0,external_React_.createElement)("span", {
- className: "block-editor-hooks__background__inspector-image-indicator",
- style: {
- backgroundImage: `url(${imgUrl})`
- }
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- as: "span"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, {
- numberOfLines: 1,
- className: "block-editor-hooks__background__inspector-media-replace-title"
- }, imgLabel), (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "span"
- }, filename ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: file name */
- (0,external_wp_i18n_namespaceObject.__)('Selected image: %s'), filename) : (0,external_wp_i18n_namespaceObject.__)('No image selected')))));
-}
-function BackgroundImagePanelItem({
- clientId,
+ const imgLabel = label || (0,external_wp_url_namespaceObject.getFilename)(imgUrl) || (0,external_wp_i18n_namespaceObject.__)('Add background image');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ as: "span",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: imgUrl ? 'flex-start' : 'center',
+ as: "span",
+ children: [imgUrl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: dist_clsx('block-editor-global-styles-background-panel__inspector-image-indicator-wrapper', {
+ 'has-image': imgUrl
+ }),
+ "aria-hidden": true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-global-styles-background-panel__inspector-image-indicator",
+ style: {
+ backgroundImage: `url(${imgUrl})`
+ }
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.FlexItem, {
+ as: "span",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTruncate, {
+ numberOfLines: 1,
+ className: "block-editor-global-styles-background-panel__inspector-media-replace-title",
+ children: imgLabel
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ as: "span",
+ children: imgUrl ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: file name */
+ (0,external_wp_i18n_namespaceObject.__)('Background image: %s'), filename || imgLabel) : (0,external_wp_i18n_namespaceObject.__)('No background image selected')
+ })]
+ })]
+ })
+ });
+}
+function BackgroundImageToolsPanelItem({
+ panelId,
isShownByDefault,
- setAttributes
+ onChange,
+ style,
+ inheritedValue,
+ themeFileURIs
}) {
- const {
- style,
- mediaUpload
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getBlockAttributes,
- getSettings
- } = select(store);
- return {
- style: getBlockAttributes(clientId)?.style,
- mediaUpload: getSettings().mediaUpload
- };
- }, [clientId]);
+ const mediaUpload = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getSettings().mediaUpload, []);
const {
id,
title,
url
- } = style?.background?.backgroundImage || {};
+ } = style?.background?.backgroundImage || {
+ ...inheritedValue?.background?.backgroundImage
+ };
const replaceContainerRef = (0,external_wp_element_namespaceObject.useRef)();
const {
createErrorNotice
@@ -24283,19 +24324,10 @@ function BackgroundImagePanelItem({
type: 'snackbar'
});
};
+ const resetBackgroundImage = () => onChange(setImmutably(style, ['background', 'backgroundImage'], undefined));
const onSelectMedia = media => {
if (!media || !media.url) {
- const newStyle = {
- ...style,
- background: {
- ...style?.background,
- backgroundImage: undefined
- }
- };
- const newAttributes = {
- style: utils_cleanEmptyObject(newStyle)
- };
- setAttributes(newAttributes);
+ resetBackgroundImage();
return;
}
if ((0,external_wp_blob_namespaceObject.isBlobURL)(media.url)) {
@@ -24307,26 +24339,22 @@ function BackgroundImagePanelItem({
onUploadError((0,external_wp_i18n_namespaceObject.__)('Only images can be used as a background image.'));
return;
}
- const newStyle = {
- ...style,
- background: {
- ...style?.background,
- backgroundImage: {
- url: media.url,
- id: media.id,
- source: 'file',
- title: media.title || undefined
- }
- }
- };
- const newAttributes = {
- style: utils_cleanEmptyObject(newStyle)
- };
- setAttributes(newAttributes);
+ const sizeValue = style?.background?.backgroundSize;
+ const positionValue = style?.background?.backgroundPosition;
+ onChange(setImmutably(style, ['background'], {
+ ...style?.background,
+ backgroundImage: {
+ url: media.url,
+ id: media.id,
+ source: 'file',
+ title: media.title || undefined
+ },
+ backgroundPosition: !positionValue && ('auto' === sizeValue || !sizeValue) ? '50% 0' : positionValue
+ }));
};
const onFilesDrop = filesList => {
mediaUpload({
- allowedTypes: ['image'],
+ allowedTypes: [IMAGE_BACKGROUND_TYPE],
filesList,
onFileChange([image]) {
if ((0,external_wp_blob_namespaceObject.isBlobURL)(image?.url)) {
@@ -24347,95 +24375,88 @@ function BackgroundImagePanelItem({
};
}, []);
const hasValue = hasBackgroundImageValue(style);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ const closeAndFocus = () => {
+ const [toggleButton] = external_wp_dom_namespaceObject.focus.tabbable.find(replaceContainerRef.current);
+ // Focus the toggle button and close the dropdown menu.
+ // This ensures similar behaviour as to selecting an image, where the dropdown is
+ // closed and focus is redirected to the dropdown toggle button.
+ toggleButton?.focus();
+ toggleButton?.click();
+ };
+ const onRemove = () => onChange(setImmutably(style, ['background', 'backgroundImage'], 'none'));
+ const canRemove = !hasValue && hasBackgroundImageValue(inheritedValue);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
className: "single-column",
hasValue: () => hasValue,
label: (0,external_wp_i18n_namespaceObject.__)('Background image'),
- onDeselect: () => resetBackgroundImage(style, setAttributes),
+ onDeselect: resetBackgroundImage,
isShownByDefault: isShownByDefault,
resetAllFilter: resetAllFilter,
- panelId: clientId
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-hooks__background__inspector-media-replace-container",
- ref: replaceContainerRef
- }, (0,external_React_.createElement)(media_replace_flow, {
- mediaId: id,
- mediaURL: url,
- allowedTypes: [IMAGE_BACKGROUND_TYPE],
- accept: "image/*",
- onSelect: onSelectMedia,
- name: (0,external_React_.createElement)(InspectorImagePreview, {
- label: (0,external_wp_i18n_namespaceObject.__)('Background image'),
- filename: title,
- url: url
- }),
- variant: "secondary"
- }, hasValue && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- const [toggleButton] = external_wp_dom_namespaceObject.focus.tabbable.find(replaceContainerRef.current);
- // Focus the toggle button and close the dropdown menu.
- // This ensures similar behaviour as to selecting an image, where the dropdown is
- // closed and focus is redirected to the dropdown toggle button.
- toggleButton?.focus();
- toggleButton?.click();
- resetBackgroundImage(style, setAttributes);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Reset '))), (0,external_React_.createElement)(external_wp_components_namespaceObject.DropZone, {
- onFilesDrop: onFilesDrop,
- label: (0,external_wp_i18n_namespaceObject.__)('Drop to upload')
- })));
-}
-function backgroundSizeHelpText(value) {
- if (value === 'cover' || value === undefined) {
- return (0,external_wp_i18n_namespaceObject.__)('Image covers the space evenly.');
- }
- if (value === 'contain') {
- return (0,external_wp_i18n_namespaceObject.__)('Image is contained without distortion.');
- }
- return (0,external_wp_i18n_namespaceObject.__)('Specify a fixed width.');
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-global-styles-background-panel__inspector-media-replace-container",
+ ref: replaceContainerRef,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(media_replace_flow, {
+ mediaId: id,
+ mediaURL: url,
+ allowedTypes: [IMAGE_BACKGROUND_TYPE],
+ accept: "image/*",
+ onSelect: onSelectMedia,
+ name: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InspectorImagePreview, {
+ label: title,
+ filename: title,
+ url: getResolvedThemeFilePath(url, themeFileURIs)
+ }),
+ variant: "secondary",
+ children: [canRemove && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ closeAndFocus();
+ onRemove();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Remove')
+ }), hasValue && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ closeAndFocus();
+ resetBackgroundImage();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Reset ')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropZone, {
+ onFilesDrop: onFilesDrop,
+ label: (0,external_wp_i18n_namespaceObject.__)('Drop to upload')
+ })]
+ })
+ });
}
-const coordsToBackgroundPosition = value => {
- if (!value || isNaN(value.x) && isNaN(value.y)) {
- return undefined;
- }
- const x = isNaN(value.x) ? 0.5 : value.x;
- const y = isNaN(value.y) ? 0.5 : value.y;
- return `${x * 100}% ${y * 100}%`;
-};
-const backgroundPositionToCoords = value => {
- if (!value) {
- return {
- x: undefined,
- y: undefined
- };
- }
- let [x, y] = value.split(' ').map(v => parseFloat(v) / 100);
- x = isNaN(x) ? undefined : x;
- y = isNaN(y) ? x : y;
- return {
- x,
- y
- };
-};
-function BackgroundSizePanelItem({
- clientId,
+function BackgroundSizeToolsPanelItem({
+ panelId,
isShownByDefault,
- setAttributes
+ onChange,
+ style,
+ inheritedValue,
+ defaultValues,
+ themeFileURIs
}) {
- const style = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getBlockAttributes(clientId)?.style, [clientId]);
- const sizeValue = style?.background?.backgroundSize;
- const repeatValue = style?.background?.backgroundRepeat;
-
- // An `undefined` value is treated as `cover` by the toggle group control.
- // An empty string is treated as `auto` by the toggle group control. This
- // allows a user to select "Size" and then enter a custom value, with an
- // empty value being treated as `auto`.
- const currentValueForToggle = sizeValue !== undefined && sizeValue !== 'cover' && sizeValue !== 'contain' || sizeValue === '' ? 'auto' : sizeValue || 'cover';
-
- // If the current value is `cover` and the repeat value is `undefined`, then
- // the toggle should be unchecked as the default state. Otherwise, the toggle
- // should reflect the current repeat value.
- const repeatCheckedValue = repeatValue === 'no-repeat' || currentValueForToggle === 'cover' && repeatValue === undefined ? false : true;
+ const sizeValue = style?.background?.backgroundSize || inheritedValue?.background?.backgroundSize;
+ const repeatValue = style?.background?.backgroundRepeat || inheritedValue?.background?.backgroundRepeat;
+ const imageValue = style?.background?.backgroundImage?.url || inheritedValue?.background?.backgroundImage?.url;
+ const positionValue = style?.background?.backgroundPosition || inheritedValue?.background?.backgroundPosition;
+
+ /*
+ * An `undefined` value is replaced with any supplied
+ * default control value for the toggle group control.
+ * An empty string is treated as `auto` - this allows a user
+ * to select "Size" and then enter a custom value, with an
+ * empty value being treated as `auto`.
+ */
+ const currentValueForToggle = sizeValue !== undefined && sizeValue !== 'cover' && sizeValue !== 'contain' || sizeValue === '' ? 'auto' : sizeValue || defaultValues?.backgroundSize;
+
+ /*
+ * If the current value is `cover` and the repeat value is `undefined`, then
+ * the toggle should be unchecked as the default state. Otherwise, the toggle
+ * should reflect the current repeat value.
+ */
+ const repeatCheckedValue = !(repeatValue === 'no-repeat' || currentValueForToggle === 'cover' && repeatValue === undefined);
const hasValue = hasBackgroundSizeValue(style);
const resetAllFilter = (0,external_wp_element_namespaceObject.useCallback)(previousValue => {
return {
@@ -24453,110 +24474,698 @@ function BackgroundSizePanelItem({
const updateBackgroundSize = next => {
// When switching to 'contain' toggle the repeat off.
let nextRepeat = repeatValue;
+ let nextPosition = positionValue;
if (next === 'contain') {
nextRepeat = 'no-repeat';
+ nextPosition = undefined;
+ }
+ if (next === 'cover') {
+ nextRepeat = undefined;
+ nextPosition = undefined;
}
if ((currentValueForToggle === 'cover' || currentValueForToggle === 'contain') && next === 'auto') {
nextRepeat = undefined;
+ /*
+ * A background image uploaded and set in the editor (an image with a record id),
+ * receives a default background position of '50% 0',
+ * when the toggle switches to "Tile". This is to increase the chance that
+ * the image's focus point is visible.
+ */
+ if (!!style?.background?.backgroundImage?.id) {
+ nextPosition = '50% 0';
+ }
}
- setAttributes({
- style: utils_cleanEmptyObject({
- ...style,
- background: {
- ...style?.background,
- backgroundRepeat: nextRepeat,
- backgroundSize: next
- }
- })
- });
+
+ /*
+ * Next will be null when the input is cleared,
+ * in which case the value should be 'auto'.
+ */
+ if (!next && currentValueForToggle === 'auto') {
+ next = 'auto';
+ }
+ onChange(setImmutably(style, ['background'], {
+ ...style?.background,
+ backgroundPosition: nextPosition,
+ backgroundRepeat: nextRepeat,
+ backgroundSize: next
+ }));
};
const updateBackgroundPosition = next => {
- setAttributes({
- style: utils_cleanEmptyObject({
- ...style,
- background: {
- ...style?.background,
- backgroundPosition: coordsToBackgroundPosition(next)
- }
- })
- });
+ onChange(setImmutably(style, ['background', 'backgroundPosition'], coordsToBackgroundPosition(next)));
};
- const toggleIsRepeated = () => {
- setAttributes({
- style: utils_cleanEmptyObject({
- ...style,
- background: {
- ...style?.background,
- backgroundRepeat: repeatCheckedValue === true ? 'no-repeat' : undefined
- }
- })
- });
- };
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
+ const toggleIsRepeated = () => onChange(setImmutably(style, ['background', 'backgroundRepeat'], repeatCheckedValue === true ? 'no-repeat' : 'repeat'));
+ const resetBackgroundSize = () => onChange(setImmutably(style, ['background'], {
+ ...style?.background,
+ backgroundPosition: undefined,
+ backgroundRepeat: undefined,
+ backgroundSize: undefined
+ }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
as: external_wp_components_namespaceObject.__experimentalToolsPanelItem,
spacing: 2,
className: "single-column",
hasValue: () => hasValue,
label: (0,external_wp_i18n_namespaceObject.__)('Size'),
- onDeselect: () => resetBackgroundSize(style, setAttributes),
+ onDeselect: resetBackgroundSize,
isShownByDefault: isShownByDefault,
resetAllFilter: resetAllFilter,
- panelId: clientId
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FocalPointPicker, {
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Position'),
- url: style?.background?.backgroundImage?.url,
- value: backgroundPositionToCoords(style?.background?.backgroundPosition),
- onChange: updateBackgroundPosition
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
- size: '__unstable-large',
- label: (0,external_wp_i18n_namespaceObject.__)('Size'),
- value: currentValueForToggle,
- onChange: updateBackgroundSize,
- isBlock: true,
- help: backgroundSizeHelpText(sizeValue)
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- key: 'cover',
- value: 'cover',
- label: (0,external_wp_i18n_namespaceObject.__)('Cover')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- key: 'contain',
- value: 'contain',
- label: (0,external_wp_i18n_namespaceObject.__)('Contain')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- key: 'fixed',
- value: 'auto',
- label: (0,external_wp_i18n_namespaceObject.__)('Fixed')
- })), sizeValue !== undefined && sizeValue !== 'cover' && sizeValue !== 'contain' ? (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- size: '__unstable-large',
- onChange: updateBackgroundSize,
- value: sizeValue
- }) : null, currentValueForToggle !== 'cover' && (0,external_React_.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Repeat'),
- checked: repeatCheckedValue,
- onChange: toggleIsRepeated
- }));
+ panelId: panelId,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FocalPointPicker, {
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Position'),
+ url: getResolvedThemeFilePath(imageValue, themeFileURIs),
+ value: backgroundPositionToCoords(positionValue),
+ onChange: updateBackgroundPosition
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
+ size: "__unstable-large",
+ label: (0,external_wp_i18n_namespaceObject.__)('Size'),
+ value: currentValueForToggle,
+ onChange: updateBackgroundSize,
+ isBlock: true,
+ help: backgroundSizeHelpText(sizeValue || defaultValues?.backgroundSize),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "cover",
+ label: (0,external_wp_i18n_namespaceObject._x)('Cover', 'Size option for background image control')
+ }, "cover"), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "contain",
+ label: (0,external_wp_i18n_namespaceObject._x)('Contain', 'Size option for background image control')
+ }, "contain"), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "auto",
+ label: (0,external_wp_i18n_namespaceObject._x)('Tile', 'Size option for background image control')
+ }, "tile")]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "flex-start",
+ spacing: 2,
+ as: "span",
+ children: [currentValueForToggle !== undefined && currentValueForToggle !== 'cover' && currentValueForToggle !== 'contain' ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Background image width'),
+ onChange: updateBackgroundSize,
+ value: sizeValue,
+ size: "__unstable-large",
+ __unstableInputWidth: "100px",
+ min: 0,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Auto')
+ }) : null, currentValueForToggle !== 'cover' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Repeat'),
+ checked: repeatCheckedValue,
+ onChange: toggleIsRepeated
+ })]
+ })]
+ });
+}
+function BackgroundToolsPanel({
+ resetAllFilter,
+ onChange,
+ value,
+ panelId,
+ children,
+ headerLabel
+}) {
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
+ const resetAll = () => {
+ const updatedValue = resetAllFilter(value);
+ onChange(updatedValue);
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalVStack, {
+ as: external_wp_components_namespaceObject.__experimentalToolsPanel,
+ spacing: 4,
+ label: headerLabel,
+ resetAll: resetAll,
+ panelId: panelId,
+ dropdownMenuProps: dropdownMenuProps,
+ children: children
+ });
+}
+function BackgroundPanel({
+ as: Wrapper = BackgroundToolsPanel,
+ value,
+ onChange,
+ inheritedValue = value,
+ settings,
+ panelId,
+ defaultControls = background_panel_DEFAULT_CONTROLS,
+ defaultValues = {},
+ headerLabel = (0,external_wp_i18n_namespaceObject.__)('Background image'),
+ themeFileURIs
+}) {
+ const resetAllFilter = (0,external_wp_element_namespaceObject.useCallback)(previousValue => {
+ return {
+ ...previousValue,
+ background: {}
+ };
+ }, []);
+ const shouldShowBackgroundSizeControls = settings?.background?.backgroundSize;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Wrapper, {
+ resetAllFilter: resetAllFilter,
+ value: value,
+ onChange: onChange,
+ panelId: panelId,
+ headerLabel: headerLabel,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BackgroundImageToolsPanelItem, {
+ onChange: onChange,
+ panelId: panelId,
+ isShownByDefault: defaultControls.backgroundImage,
+ style: value,
+ inheritedValue: inheritedValue,
+ themeFileURIs: themeFileURIs
+ }), shouldShowBackgroundSizeControls && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BackgroundSizeToolsPanelItem, {
+ onChange: onChange,
+ panelId: panelId,
+ isShownByDefault: defaultControls.backgroundSize,
+ style: value,
+ inheritedValue: inheritedValue,
+ defaultValues: defaultValues,
+ themeFileURIs: themeFileURIs
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/background.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+const BACKGROUND_SUPPORT_KEY = 'background';
+
+// Initial control values where no block style is set.
+const BACKGROUND_DEFAULT_VALUES = {
+ backgroundSize: 'cover'
+};
+
+/**
+ * Determine whether there is block support for background.
+ *
+ * @param {string} blockName Block name.
+ * @param {string} feature Background image feature to check for.
+ *
+ * @return {boolean} Whether there is support.
+ */
+function hasBackgroundSupport(blockName, feature = 'any') {
+ const support = (0,external_wp_blocks_namespaceObject.getBlockSupport)(blockName, BACKGROUND_SUPPORT_KEY);
+ if (support === true) {
+ return true;
+ }
+ if (feature === 'any') {
+ return !!support?.backgroundImage || !!support?.backgroundSize || !!support?.backgroundRepeat;
+ }
+ return !!support?.[feature];
+}
+function setBackgroundStyleDefaults(backgroundStyle) {
+ if (!backgroundStyle) {
+ return;
+ }
+ const backgroundImage = backgroundStyle?.backgroundImage;
+ let backgroundStylesWithDefaults;
+
+ // Set block background defaults.
+ if (!!backgroundImage?.url) {
+ if (!backgroundStyle?.backgroundSize) {
+ backgroundStylesWithDefaults = {
+ backgroundSize: 'cover'
+ };
+ }
+ if ('contain' === backgroundStyle?.backgroundSize && !backgroundStyle?.backgroundPosition) {
+ backgroundStylesWithDefaults = {
+ backgroundPosition: 'center'
+ };
+ }
+ }
+ return backgroundStylesWithDefaults;
+}
+function background_useBlockProps({
+ name,
+ style
+}) {
+ if (!hasBackgroundSupport(name) || !style?.background?.backgroundImage) {
+ return;
+ }
+ const backgroundStyles = setBackgroundStyleDefaults(style?.background);
+ if (!backgroundStyles) {
+ return;
+ }
+ return {
+ style: {
+ ...backgroundStyles
+ }
+ };
+}
+
+/**
+ * Generates a CSS class name if an background image is set.
+ *
+ * @param {Object} style A block's style attribute.
+ *
+ * @return {string} CSS class name.
+ */
+function getBackgroundImageClasses(style) {
+ return hasBackgroundImageValue(style) ? 'has-background' : '';
+}
+function BackgroundInspectorControl({
+ children
+}) {
+ const resetAllFilter = (0,external_wp_element_namespaceObject.useCallback)(attributes => {
+ return {
+ ...attributes,
+ style: {
+ ...attributes.style,
+ background: undefined
+ }
+ };
+ }, []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls, {
+ group: "background",
+ resetAllFilter: resetAllFilter,
+ children: children
+ });
}
-function BackgroundImagePanel(props) {
- const [backgroundImage, backgroundSize] = use_settings_useSettings('background.backgroundImage', 'background.backgroundSize');
- if (!backgroundImage || !hasBackgroundSupport(props.name, 'backgroundImage')) {
+function BackgroundImagePanel({
+ clientId,
+ name,
+ setAttributes,
+ settings
+}) {
+ const style = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getBlockAttributes(clientId)?.style, [clientId]);
+ if (!useHasBackgroundPanel(settings) || !hasBackgroundSupport(name, 'backgroundImage')) {
return null;
}
- const showBackgroundSize = !!(backgroundSize && hasBackgroundSupport(props.name, 'backgroundSize'));
- const defaultControls = (0,external_wp_blocks_namespaceObject.getBlockSupport)(props.name, [BACKGROUND_SUPPORT_KEY, '__experimentalDefaultControls']);
- return (0,external_React_.createElement)(inspector_controls, {
- group: "background"
- }, (0,external_React_.createElement)(BackgroundImagePanelItem, {
- isShownByDefault: defaultControls?.backgroundImage,
- ...props
- }), showBackgroundSize && (0,external_React_.createElement)(BackgroundSizePanelItem, {
- isShownByDefault: defaultControls?.backgroundSize,
- ...props
- }));
+ const defaultControls = (0,external_wp_blocks_namespaceObject.getBlockSupport)(name, [BACKGROUND_SUPPORT_KEY, '__experimentalDefaultControls']);
+ const onChange = newStyle => {
+ setAttributes({
+ style: utils_cleanEmptyObject(newStyle)
+ });
+ };
+ const updatedSettings = {
+ ...settings,
+ background: {
+ ...settings.background,
+ backgroundSize: settings?.background?.backgroundSize && hasBackgroundSupport(name, 'backgroundSize')
+ }
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BackgroundPanel, {
+ as: BackgroundInspectorControl,
+ panelId: clientId,
+ defaultControls: defaultControls,
+ defaultValues: BACKGROUND_DEFAULT_VALUES,
+ settings: updatedSettings,
+ onChange: onChange,
+ value: style
+ });
+}
+/* harmony default export */ const background = ({
+ useBlockProps: background_useBlockProps,
+ attributeKeys: ['style'],
+ hasSupport: hasBackgroundSupport
+});
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/lock.js
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Filters registered block settings, extending attributes to include `lock`.
+ *
+ * @param {Object} settings Original block settings.
+ *
+ * @return {Object} Filtered block settings.
+ */
+function lock_addAttribute(settings) {
+ var _settings$attributes$;
+ // Allow blocks to specify their own attribute definition with default values if needed.
+ if ('type' in ((_settings$attributes$ = settings.attributes?.lock) !== null && _settings$attributes$ !== void 0 ? _settings$attributes$ : {})) {
+ return settings;
+ }
+ // Gracefully handle if settings.attributes is undefined.
+ settings.attributes = {
+ ...settings.attributes,
+ lock: {
+ type: 'object'
+ }
+ };
+ return settings;
+}
+(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/lock/addAttribute', lock_addAttribute);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/anchor.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+/**
+ * Regular expression matching invalid anchor characters for replacement.
+ *
+ * @type {RegExp}
+ */
+
+
+
+const ANCHOR_REGEX = /[\s#]/g;
+const ANCHOR_SCHEMA = {
+ type: 'string',
+ source: 'attribute',
+ attribute: 'id',
+ selector: '*'
+};
+
+/**
+ * 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) {
+ var _settings$attributes$;
+ // Allow blocks to specify their own attribute definition with default values if needed.
+ if ('type' in ((_settings$attributes$ = settings.attributes?.anchor) !== null && _settings$attributes$ !== void 0 ? _settings$attributes$ : {})) {
+ return settings;
+ }
+ if ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(settings, 'anchor')) {
+ // Gracefully handle if settings.attributes is undefined.
+ settings.attributes = {
+ ...settings.attributes,
+ anchor: ANCHOR_SCHEMA
+ };
+ }
+ return settings;
+}
+function BlockEditAnchorControlPure({
+ anchor,
+ setAttributes
+}) {
+ const blockEditingMode = useBlockEditingMode();
+ if (blockEditingMode !== 'default') {
+ return null;
+ }
+ const isWeb = external_wp_element_namespaceObject.Platform.OS === 'web';
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls, {
+ group: "advanced",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ className: "html-anchor-control",
+ label: (0,external_wp_i18n_namespaceObject.__)('HTML anchor'),
+ help: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [(0,external_wp_i18n_namespaceObject.__)('Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor”. Then, you’ll be able to link directly to this section of your page.'), isWeb && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [' ', /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/page-jumps/'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Learn more about anchors')
+ })]
+ })]
+ }),
+ value: anchor || '',
+ placeholder: !isWeb ? (0,external_wp_i18n_namespaceObject.__)('Add an anchor') : null,
+ onChange: nextValue => {
+ nextValue = nextValue.replace(ANCHOR_REGEX, '-');
+ setAttributes({
+ anchor: nextValue
+ });
+ },
+ autoCapitalize: "none",
+ autoComplete: "off"
+ })
+ });
+}
+/* harmony default export */ const hooks_anchor = ({
+ addSaveProps,
+ edit: BlockEditAnchorControlPure,
+ attributeKeys: ['anchor'],
+ hasSupport(name) {
+ return (0,external_wp_blocks_namespaceObject.hasBlockSupport)(name, 'anchor');
+ }
+});
+
+/**
+ * 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 ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockType, 'anchor')) {
+ extraProps.id = attributes.anchor === '' ? null : attributes.anchor;
+ }
+ return extraProps;
+}
+(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/anchor/attribute', anchor_addAttribute);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/aria-label.js
+/**
+ * WordPress dependencies
+ */
+
+
+const ARIA_LABEL_SCHEMA = {
+ type: 'string',
+ source: 'attribute',
+ attribute: 'aria-label',
+ selector: '*'
+};
+
+/**
+ * Filters registered block settings, extending attributes with ariaLabel using aria-label
+ * of the first node.
+ *
+ * @param {Object} settings Original block settings.
+ *
+ * @return {Object} Filtered block settings.
+ */
+function aria_label_addAttribute(settings) {
+ // Allow blocks to specify their own attribute definition with default values if needed.
+ if (settings?.attributes?.ariaLabel?.type) {
+ return settings;
+ }
+ if ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(settings, 'ariaLabel')) {
+ // Gracefully handle if settings.attributes is undefined.
+ settings.attributes = {
+ ...settings.attributes,
+ ariaLabel: ARIA_LABEL_SCHEMA
+ };
+ }
+ return settings;
+}
+
+/**
+ * Override props assigned to save component to inject aria-label, if block
+ * supports ariaLabel. 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 aria_label_addSaveProps(extraProps, blockType, attributes) {
+ if ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockType, 'ariaLabel')) {
+ extraProps['aria-label'] = attributes.ariaLabel === '' ? null : attributes.ariaLabel;
+ }
+ return extraProps;
+}
+/* harmony default export */ const aria_label = ({
+ addSaveProps: aria_label_addSaveProps,
+ attributeKeys: ['ariaLabel'],
+ hasSupport(name) {
+ return (0,external_wp_blocks_namespaceObject.hasBlockSupport)(name, 'ariaLabel');
+ }
+});
+(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/ariaLabel/attribute', aria_label_addAttribute);
+
+;// 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 to include `className`.
+ *
+ * @param {Object} settings Original block settings.
+ *
+ * @return {Object} Filtered block settings.
+ */
+
+function custom_class_name_addAttribute(settings) {
+ if ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(settings, 'customClassName', true)) {
+ // Gracefully handle if settings.attributes is undefined.
+ settings.attributes = {
+ ...settings.attributes,
+ className: {
+ type: 'string'
+ }
+ };
+ }
+ return settings;
+}
+function CustomClassNameControlsPure({
+ className,
+ setAttributes
+}) {
+ const blockEditingMode = useBlockEditingMode();
+ if (blockEditingMode !== 'default') {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls, {
+ group: "advanced",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ autoComplete: "off",
+ label: (0,external_wp_i18n_namespaceObject.__)('Additional CSS class(es)'),
+ value: className || '',
+ onChange: nextValue => {
+ setAttributes({
+ className: nextValue !== '' ? nextValue : undefined
+ });
+ },
+ help: (0,external_wp_i18n_namespaceObject.__)('Separate multiple classes with spaces.')
+ })
+ });
+}
+/* harmony default export */ const custom_class_name = ({
+ edit: CustomClassNameControlsPure,
+ addSaveProps: custom_class_name_addSaveProps,
+ attributeKeys: ['className'],
+ hasSupport(name) {
+ return (0,external_wp_blocks_namespaceObject.hasBlockSupport)(name, 'customClassName', true);
+ }
+});
+
+/**
+ * Override props assigned to save component to inject the className, if block
+ * supports customClassName. 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 ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockType, 'customClassName', true) && attributes.className) {
+ extraProps.className = dist_clsx(extraProps.className, attributes.className);
+ }
+ return extraProps;
+}
+function addTransforms(result, source, index, results) {
+ if (!(0,external_wp_blocks_namespaceObject.hasBlockSupport)(result.name, 'customClassName', true)) {
+ return result;
+ }
+
+ // If the condition verifies we are probably in the presence of a wrapping transform
+ // e.g: nesting paragraphs in a group or columns and in that case the class should not be kept.
+ if (results.length === 1 && result.innerBlocks.length === source.length) {
+ return result;
+ }
+
+ // If we are transforming one block to multiple blocks or multiple blocks to one block,
+ // we ignore the class during the transform.
+ if (results.length === 1 && source.length > 1 || results.length > 1 && source.length === 1) {
+ return result;
+ }
+
+ // If we are in presence of transform between one or more block in the source
+ // that have one or more blocks in the result
+ // we apply the class on source N to the result N,
+ // if source N does not exists we do nothing.
+ if (source[index]) {
+ const originClassName = source[index]?.attributes.className;
+ if (originClassName) {
+ return {
+ ...result,
+ attributes: {
+ ...result.attributes,
+ className: originClassName
+ }
+ };
+ }
+ }
+ return result;
}
+(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/editor/custom-class-name/attribute', custom_class_name_addAttribute);
+(0,external_wp_hooks_namespaceObject.addFilter)('blocks.switchToBlockType.transformedBlock', 'core/color/addTransforms', addTransforms);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/generated-class-name.js
+/**
+ * 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 ((0,external_wp_blocks_namespaceObject.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 = [...new Set([(0,external_wp_blocks_namespaceObject.getBlockDefaultClassName)(blockType.name), ...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 = (0,external_wp_blocks_namespaceObject.getBlockDefaultClassName)(blockType.name);
+ }
+ }
+ return extraProps;
+}
+(0,external_wp_hooks_namespaceObject.addFilter)('blocks.getSaveContent.extraProps', 'core/generated-class-name/save-props', addGeneratedClassName);
;// CONCATENATED MODULE: ./node_modules/colord/index.mjs
-var r={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(r){return"string"==typeof r?r.length>0:"number"==typeof r},n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},a=function(r){return{r:e(r.r,0,255),g:e(r.g,0,255),b:e(r.b,0,255),a:e(r.a)}},o=function(r){return{r:n(r.r),g:n(r.g),b:n(r.b),a:n(r.a,3)}},i=/^#([0-9a-f]{3,8})$/i,s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},g=function(r){return{h:u(r.h),s:e(r.s,0,100),l:e(r.l,0,100),a:e(r.a)}},d=function(r){return{h:n(r.h),s:n(r.s),l:n(r.l),a:n(r.a,3)}},f=function(r){return b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},c=function(r){return{h:(t=h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y={string:[[function(r){var t=i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=v.exec(r)||m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=l.exec(t)||p.exec(t);if(!n)return null;var e,u,a=g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return f(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return t(n)&&t(e)&&t(u)?a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!t(n)||!t(e)||!t(u))return null;var i=g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return f(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!t(n)||!t(a)||!t(o))return null;var h=function(r){return{h:u(r.h),s:e(r.s,0,100),v:e(r.v,0,100),a:e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return b(h)},"hsv"]]},N=function(r,t){for(var n=0;n<t.length;n++){var e=t[n][0](r);if(e)return[e,t[n][1]]}return[null,void 0]},x=function(r){return"string"==typeof r?N(r.trim(),y.string):"object"==typeof r&&null!==r?N(r,y.object):[null,void 0]},I=function(r){return x(r)[1]},M=function(r,t){var n=c(r);return{h:n.h,s:e(n.s+100*t,0,100),l:n.l,a:n.a}},H=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},$=function(r,t){var n=c(r);return{h:n.h,s:n.s,l:e(n.l+100*t,0,100),a:n.a}},colord_j=function(){function r(r){this.parsed=x(r)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return n(H(this.rgba),2)},r.prototype.isDark=function(){return H(this.rgba)<.5},r.prototype.isLight=function(){return H(this.rgba)>=.5},r.prototype.toHex=function(){return r=o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?s(n(255*a)):"","#"+s(t)+s(e)+s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return o(this.rgba)},r.prototype.toRgbString=function(){return r=o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u},r.prototype.toHsl=function(){return d(c(this.rgba))},r.prototype.toHslString=function(){return r=d(c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u},r.prototype.toHsv=function(){return r=h(this.rgba),{h:n(r.h),s:n(r.s),v:n(r.v),a:n(r.a,3)};var r},r.prototype.invert=function(){return w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,-r))},r.prototype.grayscale=function(){return w(M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return"number"==typeof r?w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=c(this.rgba);return"number"==typeof r?w({h:r,s:t.s,l:t.l,a:t.a}):n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===w(r).toHex()},r}(),w=function(r){return r instanceof colord_j?r:new colord_j(r)},S=[],k=function(r){r.forEach(function(r){S.indexOf(r)<0&&(r(colord_j,y),S.push(r))})},E=function(){return new colord_j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})};
+var colord_r={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(r){return"string"==typeof r?r.length>0:"number"==typeof r},n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},a=function(r){return{r:e(r.r,0,255),g:e(r.g,0,255),b:e(r.b,0,255),a:e(r.a)}},o=function(r){return{r:n(r.r),g:n(r.g),b:n(r.b),a:n(r.a,3)}},i=/^#([0-9a-f]{3,8})$/i,s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},g=function(r){return{h:u(r.h),s:e(r.s,0,100),l:e(r.l,0,100),a:e(r.a)}},d=function(r){return{h:n(r.h),s:n(r.s),l:n(r.l),a:n(r.a,3)}},f=function(r){return b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},c=function(r){return{h:(t=h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y={string:[[function(r){var t=i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=v.exec(r)||m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=l.exec(t)||p.exec(t);if(!n)return null;var e,u,a=g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(colord_r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return f(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return t(n)&&t(e)&&t(u)?a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!t(n)||!t(e)||!t(u))return null;var i=g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return f(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!t(n)||!t(a)||!t(o))return null;var h=function(r){return{h:u(r.h),s:e(r.s,0,100),v:e(r.v,0,100),a:e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return b(h)},"hsv"]]},N=function(r,t){for(var n=0;n<t.length;n++){var e=t[n][0](r);if(e)return[e,t[n][1]]}return[null,void 0]},x=function(r){return"string"==typeof r?N(r.trim(),y.string):"object"==typeof r&&null!==r?N(r,y.object):[null,void 0]},I=function(r){return x(r)[1]},M=function(r,t){var n=c(r);return{h:n.h,s:e(n.s+100*t,0,100),l:n.l,a:n.a}},H=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},$=function(r,t){var n=c(r);return{h:n.h,s:n.s,l:e(n.l+100*t,0,100),a:n.a}},colord_j=function(){function r(r){this.parsed=x(r)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return n(H(this.rgba),2)},r.prototype.isDark=function(){return H(this.rgba)<.5},r.prototype.isLight=function(){return H(this.rgba)>=.5},r.prototype.toHex=function(){return r=o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?s(n(255*a)):"","#"+s(t)+s(e)+s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return o(this.rgba)},r.prototype.toRgbString=function(){return r=o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u},r.prototype.toHsl=function(){return d(c(this.rgba))},r.prototype.toHslString=function(){return r=d(c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u},r.prototype.toHsv=function(){return r=h(this.rgba),{h:n(r.h),s:n(r.s),v:n(r.v),a:n(r.a,3)};var r},r.prototype.invert=function(){return w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,-r))},r.prototype.grayscale=function(){return w(M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return"number"==typeof r?w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=c(this.rgba);return"number"==typeof r?w({h:r,s:t.s,l:t.l,a:t.a}):n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===w(r).toHex()},r}(),w=function(r){return r instanceof colord_j?r:new colord_j(r)},S=[],k=function(r){r.forEach(function(r){S.indexOf(r)<0&&(r(colord_j,y),S.push(r))})},E=function(){return new colord_j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})};
;// CONCATENATED MODULE: ./node_modules/colord/plugins/names.mjs
/* harmony default export */ function names(e,f){var a={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var d in a)r[a[d]]=d;var l={};e.prototype.toName=function(f){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var d,i,n=r[this.toHex()];if(n)return n;if(null==f?void 0:f.closest){var o=this.toRgb(),t=1/0,b="black";if(!l.length)for(var c in a)l[c]=new e(a[c]).toRgb();for(var g in a){var u=(d=o,i=l[g],Math.pow(d.r-i.r,2)+Math.pow(d.g-i.g,2)+Math.pow(d.b-i.b,2));u<t&&(t=u,b=g)}return b}};f.string.push([function(f){var r=f.toLowerCase(),d="transparent"===r?"#0000":a[r];return d?new e(d).toRgb():null},"name"])}
@@ -24582,6 +25191,9 @@ var a11y_o=function(o){var t=o/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.0
*/
k([names, a11y]);
+const {
+ kebabCase
+} = unlock(external_wp_components_namespaceObject.privateApis);
/**
* Provided an array of color objects as set by the theme or by the editor defaults,
@@ -24633,9 +25245,6 @@ function getColorClassName(colorContextName, colorSlug) {
if (!colorContextName || !colorSlug) {
return undefined;
}
- const {
- kebabCase
- } = unlock(external_wp_components_namespaceObject.privateApis);
return `has-${kebabCase(colorSlug)}-${colorContextName}`;
}
@@ -24836,7 +25445,6 @@ function hasDefinedValues(values) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/border-radius-control/all-input-control.js
-
/**
* WordPress dependencies
*/
@@ -24847,6 +25455,7 @@ function hasDefinedValues(values) {
* Internal dependencies
*/
+
function AllInputControl({
onChange,
selectedUnits,
@@ -24881,7 +25490,7 @@ function AllInputControl({
bottomRight: unit
});
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
...props,
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Border radius'),
disableUnits: isMixed,
@@ -24890,17 +25499,17 @@ function AllInputControl({
onChange: handleOnChange,
onUnitChange: handleOnUnitChange,
placeholder: allPlaceholder,
- size: '__unstable-large'
+ size: "__unstable-large"
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/border-radius-control/input-controls.js
-
/**
* WordPress dependencies
*/
+
const CORNERS = {
topLeft: (0,external_wp_i18n_namespaceObject.__)('Top left'),
topRight: (0,external_wp_i18n_namespaceObject.__)('Top right'),
@@ -24946,69 +25555,72 @@ function BoxInputControls({
// Controls are wrapped in tooltips as visible labels aren't desired here.
// Tooltip rendering also requires the UnitControl to be wrapped. See:
// https://github.com/WordPress/gutenberg/pull/24966#issuecomment-685875026
- return (0,external_React_.createElement)("div", {
- className: "components-border-radius-control__input-controls-wrapper"
- }, Object.entries(CORNERS).map(([corner, label]) => {
- const [parsedQuantity, parsedUnit] = (0,external_wp_components_namespaceObject.__experimentalParseQuantityAndUnitFromRawValue)(values[corner]);
- const computedUnit = values[corner] ? parsedUnit : selectedUnits[corner] || selectedUnits.flat;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Tooltip, {
- text: label,
- placement: "top",
- key: corner
- }, (0,external_React_.createElement)("div", {
- className: "components-border-radius-control__tooltip-wrapper"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- ...props,
- "aria-label": label,
- value: [parsedQuantity, computedUnit].join(''),
- onChange: createHandleOnChange(corner),
- onUnitChange: createHandleOnUnitChange(corner),
- size: '__unstable-large'
- })));
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "components-border-radius-control__input-controls-wrapper",
+ children: Object.entries(CORNERS).map(([corner, label]) => {
+ const [parsedQuantity, parsedUnit] = (0,external_wp_components_namespaceObject.__experimentalParseQuantityAndUnitFromRawValue)(values[corner]);
+ const computedUnit = values[corner] ? parsedUnit : selectedUnits[corner] || selectedUnits.flat;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Tooltip, {
+ text: label,
+ placement: "top",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "components-border-radius-control__tooltip-wrapper",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ ...props,
+ "aria-label": label,
+ value: [parsedQuantity, computedUnit].join(''),
+ onChange: createHandleOnChange(corner),
+ onUnitChange: createHandleOnUnitChange(corner),
+ size: "__unstable-large"
+ })
+ })
+ }, corner);
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js
-
/**
* WordPress dependencies
*/
-const link_link = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const link_link = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"
+ })
+});
/* harmony default export */ const library_link = (link_link);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/border-radius-control/linked-button.js
-
/**
* WordPress dependencies
*/
+
function LinkedButton({
isLinked,
...props
}) {
const label = isLinked ? (0,external_wp_i18n_namespaceObject.__)('Unlink radii') : (0,external_wp_i18n_namespaceObject.__)('Link radii');
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Tooltip, {
- text: label
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- ...props,
- className: "component-border-radius-control__linked-button",
- size: "small",
- icon: isLinked ? library_link : link_off,
- iconSize: 24,
- "aria-label": label
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Tooltip, {
+ text: label,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ ...props,
+ className: "component-border-radius-control__linked-button",
+ size: "small",
+ icon: isLinked ? library_link : link_off,
+ iconSize: 24,
+ "aria-label": label
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/border-radius-control/index.js
-
/**
* WordPress dependencies
*/
@@ -25024,6 +25636,9 @@ function LinkedButton({
+
+
+
const border_radius_control_DEFAULT_VALUES = {
topLeft: undefined,
topRight: undefined,
@@ -25074,75 +25689,81 @@ function BorderRadiusControl({
const handleSliderChange = next => {
onChange(next !== undefined ? `${next}${unit}` : undefined);
};
- return (0,external_React_.createElement)("fieldset", {
- className: "components-border-radius-control"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
- as: "legend"
- }, (0,external_wp_i18n_namespaceObject.__)('Radius')), (0,external_React_.createElement)("div", {
- className: "components-border-radius-control__wrapper"
- }, isLinked ? (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(AllInputControl, {
- className: "components-border-radius-control__unit-control",
- values: values,
- min: MIN_BORDER_RADIUS_VALUE,
- onChange: onChange,
- selectedUnits: selectedUnits,
- setSelectedUnits: setSelectedUnits,
- units: units
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.RangeControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Border radius'),
- hideLabelFromVision: true,
- className: "components-border-radius-control__range-control",
- value: allValue !== null && allValue !== void 0 ? allValue : '',
- min: MIN_BORDER_RADIUS_VALUE,
- max: MAX_BORDER_RADIUS_VALUES[unit],
- initialPosition: 0,
- withInputField: false,
- onChange: handleSliderChange,
- step: step,
- __nextHasNoMarginBottom: true
- })) : (0,external_React_.createElement)(BoxInputControls, {
- min: MIN_BORDER_RADIUS_VALUE,
- onChange: onChange,
- selectedUnits: selectedUnits,
- setSelectedUnits: setSelectedUnits,
- values: values || border_radius_control_DEFAULT_VALUES,
- units: units
- }), (0,external_React_.createElement)(LinkedButton, {
- onClick: toggleLinked,
- isLinked: isLinked
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
+ className: "components-border-radius-control",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
+ as: "legend",
+ children: (0,external_wp_i18n_namespaceObject.__)('Radius')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "components-border-radius-control__wrapper",
+ children: [isLinked ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AllInputControl, {
+ className: "components-border-radius-control__unit-control",
+ values: values,
+ min: MIN_BORDER_RADIUS_VALUE,
+ onChange: onChange,
+ selectedUnits: selectedUnits,
+ setSelectedUnits: setSelectedUnits,
+ units: units
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Border radius'),
+ hideLabelFromVision: true,
+ className: "components-border-radius-control__range-control",
+ value: allValue !== null && allValue !== void 0 ? allValue : '',
+ min: MIN_BORDER_RADIUS_VALUE,
+ max: MAX_BORDER_RADIUS_VALUES[unit],
+ initialPosition: 0,
+ withInputField: false,
+ onChange: handleSliderChange,
+ step: step,
+ __nextHasNoMarginBottom: true
+ })]
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BoxInputControls, {
+ min: MIN_BORDER_RADIUS_VALUE,
+ onChange: onChange,
+ selectedUnits: selectedUnits,
+ setSelectedUnits: setSelectedUnits,
+ values: values || border_radius_control_DEFAULT_VALUES,
+ units: units
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LinkedButton, {
+ onClick: toggleLinked,
+ isLinked: isLinked
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
-
/**
* WordPress dependencies
*/
-const check_check = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const check_check = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
+ })
+});
/* harmony default export */ const library_check = (check_check);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/shadow.js
-
/**
* WordPress dependencies
*/
-const shadow = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const shadow = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"
+ })
+});
/* harmony default export */ const library_shadow = (shadow);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/global-styles/shadow-panel-components.js
-
/**
* WordPress dependencies
*/
@@ -25167,57 +25788,65 @@ const shadow = (0,external_React_.createElement)(external_wp_primitives_namespac
*
* @type {Array}
*/
+
+
const shadow_panel_components_EMPTY_ARRAY = [];
+const {
+ CompositeItemV2: CompositeItem,
+ CompositeV2: Composite,
+ useCompositeStoreV2: useCompositeStore
+} = unlock(external_wp_components_namespaceObject.privateApis);
function ShadowPopoverContainer({
shadow,
onShadowChange,
settings
}) {
const shadows = useShadowPresets(settings);
- return (0,external_React_.createElement)("div", {
- className: "block-editor-global-styles__shadow-popover-container"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 4
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
- level: 5
- }, (0,external_wp_i18n_namespaceObject.__)('Drop shadow')), (0,external_React_.createElement)(ShadowPresets, {
- presets: shadows,
- activeShadow: shadow,
- onSelect: onShadowChange
- }), (0,external_React_.createElement)("div", {
- className: "block-editor-global-styles__clear-shadow"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: () => onShadowChange(undefined)
- }, (0,external_wp_i18n_namespaceObject.__)('Clear')))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-global-styles__shadow-popover-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 4,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
+ level: 5,
+ children: (0,external_wp_i18n_namespaceObject.__)('Drop shadow')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShadowPresets, {
+ presets: shadows,
+ activeShadow: shadow,
+ onSelect: onShadowChange
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-global-styles__clear-shadow",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: () => onShadowChange(undefined),
+ children: (0,external_wp_i18n_namespaceObject.__)('Clear')
+ })
+ })]
+ })
+ });
}
function ShadowPresets({
presets,
activeShadow,
onSelect
}) {
- const {
- CompositeV2: Composite,
- useCompositeStoreV2: useCompositeStore
- } = unlock(external_wp_components_namespaceObject.privateApis);
const compositeStore = useCompositeStore();
- return !presets ? null : (0,external_React_.createElement)(Composite, {
+ return !presets ? null : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Composite, {
store: compositeStore,
role: "listbox",
className: "block-editor-global-styles__shadow__list",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Drop shadows')
- }, presets.map(({
- name,
- slug,
- shadow
- }) => (0,external_React_.createElement)(ShadowIndicator, {
- key: slug,
- label: name,
- isActive: shadow === activeShadow,
- type: slug === 'unset' ? 'unset' : 'preset',
- onSelect: () => onSelect(shadow === activeShadow ? undefined : shadow),
- shadow: shadow
- })));
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Drop shadows'),
+ children: presets.map(({
+ name,
+ slug,
+ shadow
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShadowIndicator, {
+ label: name,
+ isActive: shadow === activeShadow,
+ type: slug === 'unset' ? 'unset' : 'preset',
+ onSelect: () => onSelect(shadow === activeShadow ? undefined : shadow),
+ shadow: shadow
+ }, slug))
+ });
}
function ShadowIndicator({
type,
@@ -25226,18 +25855,15 @@ function ShadowIndicator({
onSelect,
shadow
}) {
- const {
- CompositeItemV2: CompositeItem
- } = unlock(external_wp_components_namespaceObject.privateApis);
- return (0,external_React_.createElement)(CompositeItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeItem, {
role: "option",
"aria-label": label,
"aria-selected": isActive,
- className: classnames_default()('block-editor-global-styles__shadow__item', {
+ className: dist_clsx('block-editor-global-styles__shadow__item', {
'is-active': isActive
}),
- render: (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: classnames_default()('block-editor-global-styles__shadow-indicator', {
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: dist_clsx('block-editor-global-styles__shadow-indicator', {
unset: type === 'unset'
}),
onClick: onSelect,
@@ -25245,10 +25871,11 @@ function ShadowIndicator({
style: {
boxShadow: shadow
},
- showTooltip: true
- }, isActive && (0,external_React_.createElement)(build_module_icon, {
- icon: library_check
- }))
+ showTooltip: true,
+ children: isActive && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: library_check
+ })
+ })
});
}
function ShadowPopover({
@@ -25261,17 +25888,18 @@ function ShadowPopover({
offset: 36,
shift: true
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Dropdown, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
popoverProps: popoverProps,
className: "block-editor-global-styles__shadow-dropdown",
renderToggle: renderShadowToggle(),
- renderContent: () => (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalDropdownContentWrapper, {
- paddingSize: "medium"
- }, (0,external_React_.createElement)(ShadowPopoverContainer, {
- shadow: shadow,
- onShadowChange: onShadowChange,
- settings: settings
- }))
+ renderContent: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalDropdownContentWrapper, {
+ paddingSize: "medium",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShadowPopoverContainer, {
+ shadow: shadow,
+ onShadowChange: onShadowChange,
+ settings: settings
+ })
+ })
});
}
function renderShadowToggle() {
@@ -25281,20 +25909,24 @@ function renderShadowToggle() {
}) => {
const toggleProps = {
onClick: onToggle,
- className: classnames_default()({
+ className: dist_clsx({
'is-open': isOpen
}),
'aria-expanded': isOpen
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- ...toggleProps
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "flex-start"
- }, (0,external_React_.createElement)(build_module_icon, {
- className: "block-editor-global-styles__toggle-icon",
- icon: library_shadow,
- size: 24
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_wp_i18n_namespaceObject.__)('Drop shadow'))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ ...toggleProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ className: "block-editor-global-styles__toggle-icon",
+ icon: library_shadow,
+ size: 24
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Drop shadow')
+ })]
+ })
+ });
};
}
function useShadowPresets(settings) {
@@ -25306,14 +25938,15 @@ function useShadowPresets(settings) {
const defaultPresetsEnabled = settings?.shadow?.defaultPresets;
const {
default: defaultShadows,
- theme: themeShadows
+ theme: themeShadows,
+ custom: customShadows
} = (_settings$shadow$pres = settings?.shadow?.presets) !== null && _settings$shadow$pres !== void 0 ? _settings$shadow$pres : {};
const unsetShadow = {
name: (0,external_wp_i18n_namespaceObject.__)('Unset'),
slug: 'unset',
shadow: 'none'
};
- const shadowPresets = [...(defaultPresetsEnabled && defaultShadows || shadow_panel_components_EMPTY_ARRAY), ...(themeShadows || shadow_panel_components_EMPTY_ARRAY)];
+ const shadowPresets = [...(defaultPresetsEnabled && defaultShadows || shadow_panel_components_EMPTY_ARRAY), ...(themeShadows || shadow_panel_components_EMPTY_ARRAY), ...(customShadows || shadow_panel_components_EMPTY_ARRAY)];
if (shadowPresets.length) {
shadowPresets.unshift(unsetShadow);
}
@@ -25322,7 +25955,6 @@ function useShadowPresets(settings) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/global-styles/border-panel.js
-
/**
* WordPress dependencies
*/
@@ -25340,6 +25972,7 @@ function useShadowPresets(settings) {
+
function useHasBorderPanel(settings) {
const controls = Object.values(useHasBorderPanelControls(settings));
return controls.some(Boolean);
@@ -25378,22 +26011,24 @@ function BorderToolsPanel({
children,
label
}) {
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
const resetAll = () => {
const updatedValue = resetAllFilter(value);
onChange(updatedValue);
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
label: label,
resetAll: resetAll,
panelId: panelId,
- dropdownMenuProps: TOOLSPANEL_DROPDOWNMENU_PROPS
- }, children);
+ dropdownMenuProps: dropdownMenuProps,
+ children: children
+ });
}
const border_panel_DEFAULT_CONTROLS = {
radius: true,
color: true,
width: true,
- shadow: false
+ shadow: true
};
function BorderPanel({
as: Wrapper = BorderToolsPanel,
@@ -25405,7 +26040,7 @@ function BorderPanel({
name,
defaultControls = border_panel_DEFAULT_CONTROLS
}) {
- var _settings$shadow$pres, _overrideOrigins;
+ var _settings$shadow$pres, _ref, _ref2, _shadowPresets$custom;
const colors = useColorsPerOrigin(settings);
const decodeValue = (0,external_wp_element_namespaceObject.useCallback)(rawValue => getValueFromVariable({
settings
@@ -25464,9 +26099,9 @@ function BorderPanel({
// Shadow
const shadow = decodeValue(inheritedValue?.shadow);
const shadowPresets = (_settings$shadow$pres = settings?.shadow?.presets) !== null && _settings$shadow$pres !== void 0 ? _settings$shadow$pres : {};
- const overriddenShadowPresets = (_overrideOrigins = overrideOrigins(shadowPresets)) !== null && _overrideOrigins !== void 0 ? _overrideOrigins : [];
+ const mergedShadowPresets = (_ref = (_ref2 = (_shadowPresets$custom = shadowPresets.custom) !== null && _shadowPresets$custom !== void 0 ? _shadowPresets$custom : shadowPresets.theme) !== null && _ref2 !== void 0 ? _ref2 : shadowPresets.default) !== null && _ref !== void 0 ? _ref : [];
const setShadow = newValue => {
- const slug = overriddenShadowPresets?.find(({
+ const slug = mergedShadowPresets?.find(({
shadow: shadowName
}) => shadowName === newValue)?.slug;
onChange(setImmutably(value, ['shadow'], slug ? `var:preset|shadow|${slug}` : newValue || undefined));
@@ -25522,61 +26157,66 @@ function BorderPanel({
hasShadowControl,
hasBorderControl
});
- return (0,external_React_.createElement)(Wrapper, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Wrapper, {
resetAllFilter: resetAllFilter,
value: value,
onChange: onChange,
panelId: panelId,
- label: label
- }, (showBorderWidth || showBorderColor) && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- hasValue: () => (0,external_wp_components_namespaceObject.__experimentalIsDefinedBorder)(value?.border),
- label: (0,external_wp_i18n_namespaceObject.__)('Border'),
- onDeselect: () => resetBorder(),
- isShownByDefault: showBorderByDefault,
- panelId: panelId
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalBorderBoxControl, {
- colors: colors,
- enableAlpha: true,
- enableStyle: showBorderStyle,
- onChange: onBorderChange,
- popoverOffset: 40,
- popoverPlacement: "left-start",
- value: border,
- __experimentalIsRenderedInSidebar: true,
- size: '__unstable-large',
- hideLabelFromVision: !hasShadowControl,
- label: (0,external_wp_i18n_namespaceObject.__)('Border')
- })), showBorderRadius && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- hasValue: hasBorderRadius,
- label: (0,external_wp_i18n_namespaceObject.__)('Radius'),
- onDeselect: () => setBorderRadius(undefined),
- isShownByDefault: defaultControls.radius,
- panelId: panelId
- }, (0,external_React_.createElement)(BorderRadiusControl, {
- values: borderRadiusValues,
- onChange: newValue => {
- setBorderRadius(newValue || undefined);
- }
- })), hasShadowControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- label: (0,external_wp_i18n_namespaceObject.__)('Shadow'),
- hasValue: hasShadow,
- onDeselect: resetShadow,
- isShownByDefault: defaultControls.shadow,
- panelId: panelId
- }, hasBorderControl ? (0,external_React_.createElement)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
- as: "legend"
- }, (0,external_wp_i18n_namespaceObject.__)('Shadow')) : null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, {
- isBordered: true,
- isSeparated: true
- }, (0,external_React_.createElement)(ShadowPopover, {
- shadow: shadow,
- onShadowChange: setShadow,
- settings: settings
- }))));
+ label: label,
+ children: [(showBorderWidth || showBorderColor) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ hasValue: () => (0,external_wp_components_namespaceObject.__experimentalIsDefinedBorder)(value?.border),
+ label: (0,external_wp_i18n_namespaceObject.__)('Border'),
+ onDeselect: () => resetBorder(),
+ isShownByDefault: showBorderByDefault,
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalBorderBoxControl, {
+ colors: colors,
+ enableAlpha: true,
+ enableStyle: showBorderStyle,
+ onChange: onBorderChange,
+ popoverOffset: 40,
+ popoverPlacement: "left-start",
+ value: border,
+ __experimentalIsRenderedInSidebar: true,
+ size: "__unstable-large",
+ hideLabelFromVision: !hasShadowControl,
+ label: (0,external_wp_i18n_namespaceObject.__)('Border')
+ })
+ }), showBorderRadius && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ hasValue: hasBorderRadius,
+ label: (0,external_wp_i18n_namespaceObject.__)('Radius'),
+ onDeselect: () => setBorderRadius(undefined),
+ isShownByDefault: defaultControls.radius,
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BorderRadiusControl, {
+ values: borderRadiusValues,
+ onChange: newValue => {
+ setBorderRadius(newValue || undefined);
+ }
+ })
+ }), hasShadowControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Shadow'),
+ hasValue: hasShadow,
+ onDeselect: resetShadow,
+ isShownByDefault: defaultControls.shadow,
+ panelId: panelId,
+ children: [hasBorderControl ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
+ as: "legend",
+ children: (0,external_wp_i18n_namespaceObject.__)('Shadow')
+ }) : null, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ isBordered: true,
+ isSeparated: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShadowPopover, {
+ shadow: shadow,
+ onShadowChange: setShadow,
+ settings: settings
+ })
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/border.js
-
/**
* External dependencies
*/
@@ -25601,6 +26241,7 @@ function BorderPanel({
+
const BORDER_SUPPORT_KEY = '__experimentalBorder';
const SHADOW_SUPPORT_KEY = 'shadow';
const getColorByProperty = (colors, property, value) => {
@@ -25693,11 +26334,12 @@ function BordersInspectorControl({
...styleToAttributes(updatedStyle)
};
}, [resetAllFilter]);
- return (0,external_React_.createElement)(inspector_controls, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls, {
group: "border",
resetAllFilter: attributesResetAllFilter,
- label: label
- }, children);
+ label: label,
+ children: children
+ });
}
function border_BorderPanel({
clientId,
@@ -25736,7 +26378,7 @@ function border_BorderPanel({
...(0,external_wp_blocks_namespaceObject.getBlockSupport)(name, [BORDER_SUPPORT_KEY, '__experimentalDefaultControls']),
...(0,external_wp_blocks_namespaceObject.getBlockSupport)(name, [SHADOW_SUPPORT_KEY, '__experimentalDefaultControls'])
};
- return (0,external_React_.createElement)(BorderPanel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BorderPanel, {
as: BordersInspectorControl,
panelId: clientId,
settings: settings,
@@ -25861,7 +26503,7 @@ function border_addSaveProps(props, blockNameOrType, attributes) {
return props;
}
const borderClasses = getBorderClasses(attributes);
- const newClassName = classnames_default()(props.className, borderClasses);
+ const newClassName = dist_clsx(props.className, borderClasses);
// If we are clearing the last of the previous classes in `className`
// set it to `undefined` to avoid rendering empty DOM attributes.
@@ -25883,7 +26525,7 @@ function getBorderClasses(attributes) {
style
} = attributes;
const borderColorClass = getColorClassName('border-color', borderColor);
- return classnames_default()({
+ return dist_clsx({
'has-border-color': borderColor || style?.border?.color,
[borderColorClass]: !!borderColorClass
});
@@ -26054,7 +26696,6 @@ function __experimentalUseGradient({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors-gradients/control.js
-
/**
* External dependencies
*/
@@ -26071,6 +26712,11 @@ function __experimentalUseGradient({
*/
+
+
+const {
+ Tabs
+} = unlock(external_wp_components_namespaceObject.privateApis);
const colorsAndGradientKeys = ['colors', 'disableCustomColors', 'gradients', 'disableCustomGradients'];
const TAB_IDS = {
color: 'color',
@@ -26099,7 +26745,7 @@ function ColorGradientControlInner({
return null;
}
const tabPanels = {
- [TAB_IDS.color]: (0,external_React_.createElement)(external_wp_components_namespaceObject.ColorPalette, {
+ [TAB_IDS.color]: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ColorPalette, {
value: colorValue,
onChange: canChooseAGradient ? newColor => {
onColorChange(newColor);
@@ -26112,7 +26758,7 @@ function ColorGradientControlInner({
enableAlpha: enableAlpha,
headingLevel: headingLevel
}),
- [TAB_IDS.gradient]: (0,external_React_.createElement)(external_wp_components_namespaceObject.GradientPicker, {
+ [TAB_IDS.gradient]: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.GradientPicker, {
value: gradientValue,
onChange: canChooseAColor ? newGradient => {
onGradientChange(newGradient);
@@ -26125,44 +26771,55 @@ function ColorGradientControlInner({
headingLevel: headingLevel
})
};
- const renderPanelType = type => (0,external_React_.createElement)("div", {
- className: "block-editor-color-gradient-control__panel"
- }, tabPanels[type]);
-
- // Unlocking `Tabs` too early causes the `unlock` method to receive an empty
- // object, due to circular dependencies.
- // See https://github.com/WordPress/gutenberg/issues/52692
- const {
- Tabs
- } = unlock(external_wp_components_namespaceObject.privateApis);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.BaseControl, {
+ const renderPanelType = type => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-color-gradient-control__panel",
+ children: tabPanels[type]
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl, {
__nextHasNoMarginBottom: true,
- className: classnames_default()('block-editor-color-gradient-control', className)
- }, (0,external_React_.createElement)("fieldset", {
- className: "block-editor-color-gradient-control__fieldset"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 1
- }, showTitle && (0,external_React_.createElement)("legend", null, (0,external_React_.createElement)("div", {
- className: "block-editor-color-gradient-control__color-indicator"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.BaseControl.VisualLabel, null, label))), canChooseAColor && canChooseAGradient && (0,external_React_.createElement)("div", null, (0,external_React_.createElement)(Tabs, {
- initialTabId: gradientValue ? TAB_IDS.gradient : !!canChooseAColor && TAB_IDS.color
- }, (0,external_React_.createElement)(Tabs.TabList, null, (0,external_React_.createElement)(Tabs.Tab, {
- tabId: TAB_IDS.color
- }, (0,external_wp_i18n_namespaceObject.__)('Solid')), (0,external_React_.createElement)(Tabs.Tab, {
- tabId: TAB_IDS.gradient
- }, (0,external_wp_i18n_namespaceObject.__)('Gradient'))), (0,external_React_.createElement)(Tabs.TabPanel, {
- tabId: TAB_IDS.color,
- className: 'block-editor-color-gradient-control__panel',
- focusable: false
- }, tabPanels.color), (0,external_React_.createElement)(Tabs.TabPanel, {
- tabId: TAB_IDS.gradient,
- className: 'block-editor-color-gradient-control__panel',
- focusable: false
- }, tabPanels.gradient))), !canChooseAGradient && renderPanelType(TAB_IDS.color), !canChooseAColor && renderPanelType(TAB_IDS.gradient))));
+ className: dist_clsx('block-editor-color-gradient-control', className),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("fieldset", {
+ className: "block-editor-color-gradient-control__fieldset",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 1,
+ children: [showTitle && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("legend", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-color-gradient-control__color-indicator",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
+ children: label
+ })
+ })
+ }), canChooseAColor && canChooseAGradient && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tabs, {
+ defaultTabId: gradientValue ? TAB_IDS.gradient : !!canChooseAColor && TAB_IDS.color,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tabs.TabList, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.Tab, {
+ tabId: TAB_IDS.color,
+ children: (0,external_wp_i18n_namespaceObject.__)('Color')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.Tab, {
+ tabId: TAB_IDS.gradient,
+ children: (0,external_wp_i18n_namespaceObject.__)('Gradient')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.TabPanel, {
+ tabId: TAB_IDS.color,
+ className: "block-editor-color-gradient-control__panel",
+ focusable: false,
+ children: tabPanels.color
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.TabPanel, {
+ tabId: TAB_IDS.gradient,
+ className: "block-editor-color-gradient-control__panel",
+ focusable: false,
+ children: tabPanels.gradient
+ })]
+ })
+ }), !canChooseAGradient && renderPanelType(TAB_IDS.color), !canChooseAColor && renderPanelType(TAB_IDS.gradient)]
+ })
+ })
+ });
}
function ColorGradientControlSelect(props) {
const [colors, gradients, customColors, customGradients] = use_settings_useSettings('color.palette', 'color.gradients', 'color.custom', 'color.customGradient');
- return (0,external_React_.createElement)(ColorGradientControlInner, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorGradientControlInner, {
colors: colors,
gradients: gradients,
disableCustomColors: !customColors,
@@ -26172,18 +26829,17 @@ function ColorGradientControlSelect(props) {
}
function ColorGradientControl(props) {
if (colorsAndGradientKeys.every(key => props.hasOwnProperty(key))) {
- return (0,external_React_.createElement)(ColorGradientControlInner, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorGradientControlInner, {
...props
});
}
- return (0,external_React_.createElement)(ColorGradientControlSelect, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorGradientControlSelect, {
...props
});
}
/* harmony default export */ const control = (ColorGradientControl);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/global-styles/color-panel.js
-
/**
* External dependencies
*/
@@ -26204,9 +26860,11 @@ function ColorGradientControl(props) {
+
+
function useHasColorPanel(settings) {
const hasTextPanel = useHasTextPanel(settings);
- const hasBackgroundPanel = useHasBackgroundPanel(settings);
+ const hasBackgroundPanel = color_panel_useHasBackgroundPanel(settings);
const hasLinkPanel = useHasLinkPanel(settings);
const hasHeadingPanel = useHasHeadingPanel(settings);
const hasButtonPanel = useHasButtonPanel(settings);
@@ -26235,7 +26893,7 @@ function useHasButtonPanel(settings) {
const gradients = useGradientsPerOrigin(settings);
return settings?.color?.button && (colors?.length > 0 || settings?.color?.custom || gradients?.length > 0 || settings?.color?.customGradient);
}
-function useHasBackgroundPanel(settings) {
+function color_panel_useHasBackgroundPanel(settings) {
const colors = useColorsPerOrigin(settings);
const gradients = useGradientsPerOrigin(settings);
return settings?.color?.background && (colors?.length > 0 || settings?.color?.custom || gradients?.length > 0 || settings?.color?.customGradient);
@@ -26247,22 +26905,26 @@ function ColorToolsPanel({
panelId,
children
}) {
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
const resetAll = () => {
const updatedValue = resetAllFilter(value);
onChange(updatedValue);
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
- label: (0,external_wp_i18n_namespaceObject.__)('Color'),
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Elements'),
resetAll: resetAll,
panelId: panelId,
hasInnerWrapper: true,
+ headingLevel: 3,
className: "color-block-support-panel",
__experimentalFirstVisibleItemClass: "first",
__experimentalLastVisibleItemClass: "last",
- dropdownMenuProps: TOOLSPANEL_DROPDOWNMENU_PROPS
- }, (0,external_React_.createElement)("div", {
- className: "color-block-support-panel__inner-wrapper"
- }, children));
+ dropdownMenuProps: dropdownMenuProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "color-block-support-panel__inner-wrapper",
+ children: children
+ })
+ });
}
const color_panel_DEFAULT_CONTROLS = {
text: true,
@@ -26277,23 +26939,29 @@ const popoverProps = {
offset: 36,
shift: true
};
+const {
+ Tabs: color_panel_Tabs
+} = unlock(external_wp_components_namespaceObject.privateApis);
const LabeledColorIndicators = ({
indicators,
label
-}) => (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "flex-start"
-}, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalZStack, {
- isLayered: false,
- offset: -8
-}, indicators.map((indicator, index) => (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- key: index,
- expanded: false
-}, (0,external_React_.createElement)(external_wp_components_namespaceObject.ColorIndicator, {
- colorValue: indicator
-})))), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- className: "block-editor-panel-color-gradient-settings__color-name",
- title: label
-}, label));
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalZStack, {
+ isLayered: false,
+ offset: -8,
+ children: indicators.map((indicator, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Flex, {
+ expanded: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ColorIndicator, {
+ colorValue: indicator
+ })
+ }, index))
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ className: "block-editor-panel-color-gradient-settings__color-name",
+ title: label,
+ children: label
+ })]
+});
function ColorPanelTab({
isGradient,
inheritedValue,
@@ -26301,7 +26969,7 @@ function ColorPanelTab({
setValue,
colorGradientControlSettings
}) {
- return (0,external_React_.createElement)(control, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(control, {
...colorGradientControlSettings,
showTitle: false,
enableAlpha: true,
@@ -26324,66 +26992,76 @@ function ColorPanelDropdown({
colorGradientControlSettings,
panelId
}) {
+ var _tabs$;
const currentTab = tabs.find(tab => tab.userValue !== undefined);
- // Unlocking `Tabs` too early causes the `unlock` method to receive an empty
- // object, due to circular dependencies.
- // See https://github.com/WordPress/gutenberg/issues/52692
const {
- Tabs
- } = unlock(external_wp_components_namespaceObject.privateApis);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ key: firstTabKey,
+ ...firstTab
+ } = (_tabs$ = tabs[0]) !== null && _tabs$ !== void 0 ? _tabs$ : {};
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
className: "block-editor-tools-panel-color-gradient-settings__item",
hasValue: hasValue,
label: label,
onDeselect: resetValue,
isShownByDefault: isShownByDefault,
- panelId: panelId
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Dropdown, {
- popoverProps: popoverProps,
- className: "block-editor-tools-panel-color-gradient-settings__dropdown",
- renderToggle: ({
- onToggle,
- isOpen
- }) => {
- const toggleProps = {
- onClick: onToggle,
- className: classnames_default()('block-editor-panel-color-gradient-settings__dropdown', {
- 'is-open': isOpen
- }),
- 'aria-expanded': isOpen,
- 'aria-label': (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s is the type of color property, e.g., "background" */
- (0,external_wp_i18n_namespaceObject.__)('Color %s styles'), label)
- };
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- ...toggleProps
- }, (0,external_React_.createElement)(LabeledColorIndicators, {
- indicators: indicators,
- label: label
- }));
- },
- renderContent: () => (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalDropdownContentWrapper, {
- paddingSize: "none"
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-panel-color-gradient-settings__dropdown-content"
- }, tabs.length === 1 && (0,external_React_.createElement)(ColorPanelTab, {
- ...tabs[0],
- colorGradientControlSettings: colorGradientControlSettings
- }), tabs.length > 1 && (0,external_React_.createElement)(Tabs, {
- initialTabId: currentTab?.key
- }, (0,external_React_.createElement)(Tabs.TabList, null, tabs.map(tab => (0,external_React_.createElement)(Tabs.Tab, {
- key: tab.key,
- tabId: tab.key
- }, tab.label))), tabs.map(tab => {
- return (0,external_React_.createElement)(Tabs.TabPanel, {
- key: tab.key,
- tabId: tab.key,
- focusable: false
- }, (0,external_React_.createElement)(ColorPanelTab, {
- ...tab,
- colorGradientControlSettings: colorGradientControlSettings
- }));
- }))))
- }));
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ popoverProps: popoverProps,
+ className: "block-editor-tools-panel-color-gradient-settings__dropdown",
+ renderToggle: ({
+ onToggle,
+ isOpen
+ }) => {
+ const toggleProps = {
+ onClick: onToggle,
+ className: dist_clsx('block-editor-panel-color-gradient-settings__dropdown', {
+ 'is-open': isOpen
+ }),
+ 'aria-expanded': isOpen,
+ 'aria-label': (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s is the type of color property, e.g., "background" */
+ (0,external_wp_i18n_namespaceObject.__)('Color %s styles'), label)
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ ...toggleProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LabeledColorIndicators, {
+ indicators: indicators,
+ label: label
+ })
+ });
+ },
+ renderContent: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalDropdownContentWrapper, {
+ paddingSize: "none",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-panel-color-gradient-settings__dropdown-content",
+ children: [tabs.length === 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorPanelTab, {
+ ...firstTab,
+ colorGradientControlSettings: colorGradientControlSettings
+ }, firstTabKey), tabs.length > 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(color_panel_Tabs, {
+ defaultTabId: currentTab?.key,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_panel_Tabs.TabList, {
+ children: tabs.map(tab => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_panel_Tabs.Tab, {
+ tabId: tab.key,
+ children: tab.label
+ }, tab.key))
+ }), tabs.map(tab => {
+ const {
+ key: tabKey,
+ ...restTabProps
+ } = tab;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_panel_Tabs.TabPanel, {
+ tabId: tabKey,
+ focusable: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorPanelTab, {
+ ...restTabProps,
+ colorGradientControlSettings: colorGradientControlSettings
+ }, tabKey)
+ }, tabKey);
+ })]
+ })]
+ })
+ })
+ })
+ });
}
function ColorPanel({
as: Wrapper = ColorToolsPanel,
@@ -26424,7 +27102,7 @@ function ColorPanel({
};
// BackgroundColor
- const showBackgroundPanel = useHasBackgroundPanel(settings);
+ const showBackgroundPanel = color_panel_useHasBackgroundPanel(settings);
const backgroundColor = decodeValue(inheritedValue?.color?.background);
const userBackgroundColor = decodeValue(value?.color?.background);
const gradient = decodeValue(inheritedValue?.color?.gradient);
@@ -26565,7 +27243,7 @@ function ColorPanel({
indicators: [gradient !== null && gradient !== void 0 ? gradient : backgroundColor],
tabs: [hasSolidColors && {
key: 'background',
- label: (0,external_wp_i18n_namespaceObject.__)('Solid'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Color'),
inheritedValue: backgroundColor,
setValue: setBackgroundColor,
userValue: userBackgroundColor
@@ -26603,7 +27281,9 @@ function ColorPanel({
label,
showPanel
}) => {
- if (!showPanel) return;
+ if (!showPanel) {
+ return;
+ }
const elementBackgroundColor = decodeValue(inheritedValue?.elements?.[name]?.color?.background);
const elementGradient = decodeValue(inheritedValue?.elements?.[name]?.color?.gradient);
const elementTextColor = decodeValue(inheritedValue?.elements?.[name]?.color?.text);
@@ -26663,26 +27343,31 @@ function ColorPanel({
}].filter(Boolean)
});
});
- return (0,external_React_.createElement)(Wrapper, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Wrapper, {
resetAllFilter: resetAllFilter,
value: value,
onChange: onChange,
- panelId: panelId
- }, items.map(item => (0,external_React_.createElement)(ColorPanelDropdown, {
- key: item.key,
- ...item,
- colorGradientControlSettings: {
- colors,
- disableCustomColors: !areCustomSolidsEnabled,
- gradients,
- disableCustomGradients: !areCustomGradientsEnabled
- },
- panelId: panelId
- })), children);
+ panelId: panelId,
+ children: [items.map(item => {
+ const {
+ key,
+ ...restItem
+ } = item;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorPanelDropdown, {
+ ...restItem,
+ colorGradientControlSettings: {
+ colors,
+ disableCustomColors: !areCustomSolidsEnabled,
+ gradients,
+ disableCustomGradients: !areCustomGradientsEnabled
+ },
+ panelId: panelId
+ }, key);
+ }), children]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/contrast-checker/index.js
-
/**
* External dependencies
*/
@@ -26696,6 +27381,7 @@ function ColorPanel({
+
k([names, a11y]);
function ContrastChecker({
backgroundColor,
@@ -26780,13 +27466,15 @@ function ContrastChecker({
// announcements are made. Notably, the message will be re-announced if a
// new color combination is selected and the contrast is still insufficient.
(0,external_wp_a11y_namespaceObject.speak)(speakMessage);
- return (0,external_React_.createElement)("div", {
- className: "block-editor-contrast-checker"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Notice, {
- spokenMessage: null,
- status: "warning",
- isDismissible: false
- }, message));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-contrast-checker",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
+ spokenMessage: null,
+ status: "warning",
+ isDismissible: false,
+ children: message
+ })
+ });
}
/**
@@ -26794,136 +27482,7 @@ function ContrastChecker({
*/
/* harmony default export */ const contrast_checker = (ContrastChecker);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/provider/block-refs-provider.js
-
-/**
- * WordPress dependencies
- */
-
-const BlockRefs = (0,external_wp_element_namespaceObject.createContext)({
- refs: new Map(),
- callbacks: new Map()
-});
-function BlockRefsProvider({
- children
-}) {
- const value = (0,external_wp_element_namespaceObject.useMemo)(() => ({
- refs: new Map(),
- callbacks: new Map()
- }), []);
- return (0,external_React_.createElement)(BlockRefs.Provider, {
- value: value
- }, children);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/use-block-props/use-block-refs.js
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-
-/** @typedef {import('@wordpress/element').RefCallback} RefCallback */
-/** @typedef {import('@wordpress/element').RefObject} RefObject */
-
-/**
- * Provides a ref to the BlockRefs context.
- *
- * @param {string} clientId The client ID of the element ref.
- *
- * @return {RefCallback} Ref callback.
- */
-function useBlockRefProvider(clientId) {
- const {
- refs,
- callbacks
- } = (0,external_wp_element_namespaceObject.useContext)(BlockRefs);
- const ref = (0,external_wp_element_namespaceObject.useRef)();
- (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
- refs.set(ref, clientId);
- return () => {
- refs.delete(ref);
- };
- }, [clientId]);
- return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
- // Update the ref in the provider.
- ref.current = element;
- // Call any update functions.
- callbacks.forEach((id, setElement) => {
- if (clientId === id) {
- setElement(element);
- }
- });
- }, [clientId]);
-}
-
-/**
- * Gets a ref pointing to the current block element. Continues to return a
- * stable ref even if the block client ID changes.
- *
- * @param {string} clientId The client ID to get a ref for.
- *
- * @return {RefObject} A ref containing the element.
- */
-function useBlockRef(clientId) {
- const {
- refs
- } = (0,external_wp_element_namespaceObject.useContext)(BlockRefs);
- const freshClientId = (0,external_wp_element_namespaceObject.useRef)();
- freshClientId.current = clientId;
- // Always return an object, even if no ref exists for a given client ID, so
- // that `current` works at a later point.
- return (0,external_wp_element_namespaceObject.useMemo)(() => ({
- get current() {
- let element = null;
-
- // Multiple refs may be created for a single block. Find the
- // first that has an element set.
- for (const [ref, id] of refs.entries()) {
- if (id === freshClientId.current && ref.current) {
- element = ref.current;
- }
- }
- return element;
- }
- }), []);
-}
-
-/**
- * Return the element for a given client ID. Updates whenever the element
- * changes, becomes available, or disappears.
- *
- * @param {string} clientId The client ID to an element for.
- *
- * @return {Element|null} The block's wrapper element.
- */
-function useBlockElement(clientId) {
- const {
- callbacks
- } = (0,external_wp_element_namespaceObject.useContext)(BlockRefs);
- const ref = useBlockRef(clientId);
- const [element, setElement] = (0,external_wp_element_namespaceObject.useState)(null);
- (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
- if (!clientId) {
- return;
- }
- callbacks.set(setElement, clientId);
- return () => {
- callbacks.delete(setElement);
- };
- }, [clientId]);
- return ref.current || element;
-}
-
-
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/contrast-checker.js
-
/**
* WordPress dependencies
*/
@@ -26934,6 +27493,7 @@ function useBlockElement(clientId) {
*/
+
function getComputedStyle(node) {
return node.ownerDocument.defaultView.getComputedStyle(node);
}
@@ -26965,7 +27525,7 @@ function BlockColorContrastChecker({
}
setDetectedBackgroundColor(backgroundColor);
});
- return (0,external_React_.createElement)(contrast_checker, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(contrast_checker, {
backgroundColor: detectedBackgroundColor,
textColor: detectedColor,
enableAlphaChecker: true,
@@ -26974,7 +27534,6 @@ function BlockColorContrastChecker({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/color.js
-
/**
* External dependencies
*/
@@ -27000,6 +27559,7 @@ function BlockColorContrastChecker({
+
const COLOR_SUPPORT_KEY = 'color';
const hasColorSupport = blockNameOrType => {
const colorSupport = (0,external_wp_blocks_namespaceObject.getBlockSupport)(blockNameOrType, COLOR_SUPPORT_KEY);
@@ -27095,7 +27655,7 @@ function color_addSaveProps(props, blockNameOrType, attributes) {
const backgroundClass = shouldSerialize('background') ? getColorClassName('background-color', backgroundColor) : undefined;
const serializeHasBackground = shouldSerialize('background') || shouldSerialize('gradients');
const hasBackground = backgroundColor || style?.color?.background || hasGradient && (gradient || style?.color?.gradient);
- const newClassName = classnames_default()(props.className, textClass, gradientClass, {
+ const newClassName = dist_clsx(props.className, textClass, gradientClass, {
// Don't apply the background class if there's a custom gradient.
[backgroundClass]: (!hasGradient || !style?.color?.gradient) && !!backgroundClass,
'has-text-color': shouldSerialize('text') && (textColor || style?.color?.text),
@@ -27151,10 +27711,11 @@ function ColorInspectorControl({
...color_styleToAttributes(updatedStyle)
};
}, [resetAllFilter]);
- return (0,external_React_.createElement)(inspector_controls, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls, {
group: "color",
- resetAllFilter: attributesResetAllFilter
- }, children);
+ resetAllFilter: attributesResetAllFilter,
+ children: children
+ });
}
function ColorEdit({
clientId,
@@ -27203,17 +27764,18 @@ function ColorEdit({
// Deactivating it requires `enableContrastChecker` to have
// an explicit value of `false`.
false !== (0,external_wp_blocks_namespaceObject.getBlockSupport)(name, [COLOR_SUPPORT_KEY, 'enableContrastChecker']);
- return (0,external_React_.createElement)(ColorPanel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorPanel, {
as: ColorInspectorControl,
panelId: clientId,
settings: settings,
value: value,
onChange: onChange,
defaultControls: defaultControls,
- enableContrastChecker: false !== (0,external_wp_blocks_namespaceObject.getBlockSupport)(name, [COLOR_SUPPORT_KEY, 'enableContrastChecker'])
- }, enableContrastChecking && (0,external_React_.createElement)(BlockColorContrastChecker, {
- clientId: clientId
- }));
+ enableContrastChecker: false !== (0,external_wp_blocks_namespaceObject.getBlockSupport)(name, [COLOR_SUPPORT_KEY, 'enableContrastChecker']),
+ children: enableContrastChecking && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockColorContrastChecker, {
+ clientId: clientId
+ })
+ });
}
function color_useBlockProps({
name,
@@ -27245,7 +27807,7 @@ function color_useBlockProps({
const hasBackgroundValue = backgroundColor || style?.color?.background || gradient || style?.color?.gradient;
return {
...saveProps,
- className: classnames_default()(saveProps.className,
+ className: dist_clsx(saveProps.className,
// Add background image classes in the editor, if not already handled by background color values.
!hasBackgroundValue && getBackgroundImageClasses(style))
};
@@ -27276,7 +27838,6 @@ function color_addTransforms(result, source, index, results) {
(0,external_wp_hooks_namespaceObject.addFilter)('blocks.switchToBlockType.transformedBlock', 'core/color/addTransforms', color_addTransforms);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-family/index.js
-
/**
* WordPress dependencies
*/
@@ -27287,6 +27848,7 @@ function color_addTransforms(result, source, index, results) {
* Internal dependencies
*/
+
function FontFamilyControl({
value = '',
onChange,
@@ -27312,7 +27874,7 @@ function FontFamilyControl({
label: name || fontFamily
};
})];
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.SelectControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
label: (0,external_wp_i18n_namespaceObject.__)('Font'),
options: options,
value: value,
@@ -27323,13 +27885,13 @@ function FontFamilyControl({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-appearance-control/index.js
-
/**
* WordPress dependencies
*/
+
const FONT_STYLES = [{
name: (0,external_wp_i18n_namespaceObject._x)('Regular', 'font style'),
value: 'normal'
@@ -27508,7 +28070,7 @@ function FontAppearanceControl(props) {
// translators: %s: Currently selected font appearance.
(0,external_wp_i18n_namespaceObject.__)('Currently selected font appearance: %s'), currentSelection.name);
};
- return hasStylesOrWeights && (0,external_React_.createElement)(external_wp_components_namespaceObject.CustomSelectControl, {
+ return hasStylesOrWeights && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CustomSelectControl, {
...otherProps,
className: "components-font-appearance-control",
label: label,
@@ -27517,8 +28079,7 @@ function FontAppearanceControl(props) {
value: currentSelection,
onChange: ({
selectedItem
- }) => onChange(selectedItem.style),
- __nextUnconstrainedWidth: true
+ }) => onChange(selectedItem.style)
});
}
@@ -27554,7 +28115,6 @@ function isLineHeightDefined(lineHeight) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/line-height-control/index.js
-
/**
* WordPress dependencies
*/
@@ -27566,6 +28126,7 @@ function isLineHeightDefined(lineHeight) {
* Internal dependencies
*/
+
const line_height_control_LineHeightControl = ({
value: lineHeight,
onChange,
@@ -27577,7 +28138,9 @@ const line_height_control_LineHeightControl = ({
const isDefined = isLineHeightDefined(lineHeight);
const adjustNextValue = (nextValue, wasTypedOrPasted) => {
// Set the next value without modification if lineHeight has been defined.
- if (isDefined) return nextValue;
+ if (isDefined) {
+ return nextValue;
+ }
/**
* The following logic handles the initial spin up/down action
@@ -27597,7 +28160,9 @@ const line_height_control_LineHeightControl = ({
{
// This means the user explicitly input '0', rather than using the
// spin down action from an undefined value state.
- if (wasTypedOrPasted) return nextValue;
+ if (wasTypedOrPasted) {
+ return nextValue;
+ }
// Decrement by spin value.
return BASE_DEFAULT_VALUE - spin;
}
@@ -27643,22 +28208,23 @@ const line_height_control_LineHeightControl = ({
}
onChange(`${nextValue}`);
};
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: "block-editor-line-height-control",
- style: deprecatedStyles
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNumberControl, {
- ...otherProps,
- __unstableInputWidth: __unstableInputWidth,
- __unstableStateReducer: stateReducer,
- onChange: handleOnChange,
- label: (0,external_wp_i18n_namespaceObject.__)('Line height'),
- placeholder: BASE_DEFAULT_VALUE,
- step: STEP,
- spinFactor: SPIN_FACTOR,
- value: value,
- min: 0,
- spinControls: "custom"
- }));
+ style: deprecatedStyles,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNumberControl, {
+ ...otherProps,
+ __unstableInputWidth: __unstableInputWidth,
+ __unstableStateReducer: stateReducer,
+ onChange: handleOnChange,
+ label: (0,external_wp_i18n_namespaceObject.__)('Line height'),
+ placeholder: BASE_DEFAULT_VALUE,
+ step: STEP,
+ spinFactor: SPIN_FACTOR,
+ value: value,
+ min: 0,
+ spinControls: "custom"
+ })
+ });
};
/**
@@ -27667,7 +28233,6 @@ const line_height_control_LineHeightControl = ({
/* harmony default export */ const line_height_control = (line_height_control_LineHeightControl);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/letter-spacing-control/index.js
-
/**
* WordPress dependencies
*/
@@ -27689,6 +28254,7 @@ const line_height_control_LineHeightControl = ({
*
* @return {Element} Letter-spacing control.
*/
+
function LetterSpacingControl({
value,
onChange,
@@ -27704,7 +28270,7 @@ function LetterSpacingControl({
rem: 0.2
}
});
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
...otherProps,
label: (0,external_wp_i18n_namespaceObject.__)('Letter spacing'),
value: value,
@@ -27714,64 +28280,255 @@ function LetterSpacingControl({
});
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/reset.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/align-left.js
+/**
+ * WordPress dependencies
+ */
+
+
+const alignLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"
+ })
+});
+/* harmony default export */ const align_left = (alignLeft);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/align-center.js
+/**
+ * WordPress dependencies
+ */
+
+const align_center_alignCenter = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"
+ })
+});
+/* harmony default export */ const align_center = (align_center_alignCenter);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/align-right.js
/**
* WordPress dependencies
*/
-const reset_reset = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const alignRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M7 11.5h10V13H7z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"
+ })
+});
+/* harmony default export */ const align_right = (alignRight);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/align-justify.js
+/**
+ * WordPress dependencies
+ */
+
+
+const alignJustify = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"
+ })
+});
+/* harmony default export */ const align_justify = (alignJustify);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/segmented-text-control/index.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * @typedef {Object} Option
+ * @property {string} label The label of the option.
+ * @property {string} value The value of the option.
+ * @property {string} icon The icon of the option.
+ */
+
+/**
+ * Control to facilitate selecting a text style from a set of options.
+ *
+ * @param {Object} props Component props.
+ * @param {string} props.label A label for the option.
+ * @param {string} props.value Currently selected value.
+ * @param {Function} props.onChange Callback to handle onChange.
+ * @param {Option[]} props.options Array of options to display.
+ * @param {string} props.className Additional class name to apply.
+ *
+ * @return {Element} Element to render.
+ */
+
+
+function SegmentedTextControl({
+ label,
+ value,
+ options,
+ onChange,
+ className
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
+ className: dist_clsx('block-editor-segmented-text-control', className),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
+ as: "legend",
+ children: label
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-segmented-text-control__buttons",
+ children: options.map(option => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "compact",
+ icon: option.icon,
+ label: option.label,
+ isPressed: option.value === value,
+ onClick: () => onChange(option.value)
+ }, option.value);
+ })
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/text-alignment-control/index.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+const TEXT_ALIGNMENT_OPTIONS = [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Align text left'),
+ value: 'left',
+ icon: align_left
+}, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Align text center'),
+ value: 'center',
+ icon: align_center
+}, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Align text right'),
+ value: 'right',
+ icon: align_right
+}, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Justify text'),
+ value: 'justify',
+ icon: align_justify
+}];
+const DEFAULT_OPTIONS = ['left', 'center', 'right'];
+
+/**
+ * Control to facilitate text alignment selections.
+ *
+ * @param {Object} props Component props.
+ * @param {string} props.className Class name to add to the control.
+ * @param {string} props.value Currently selected text alignment.
+ * @param {Function} props.onChange Handles change in text alignment selection.
+ * @param {string[]} props.options Array of text alignment options to display.
+ *
+ * @return {Element} Text alignment control.
+ */
+function TextAlignmentControl({
+ className,
+ value,
+ onChange,
+ options = DEFAULT_OPTIONS
+}) {
+ const validOptions = (0,external_wp_element_namespaceObject.useMemo)(() => TEXT_ALIGNMENT_OPTIONS.filter(option => options.includes(option.value)), [options]);
+ if (!validOptions.length) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SegmentedTextControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Text alignment'),
+ options: validOptions,
+ className: dist_clsx('block-editor-text-alignment-control', className),
+ value: value,
+ onChange: newValue => {
+ onChange(newValue === value ? undefined : newValue);
+ }
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/reset.js
+/**
+ * WordPress dependencies
+ */
+
+
+const reset_reset = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M7 11.5h10V13H7z"
+ })
+});
/* harmony default export */ const library_reset = (reset_reset);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-uppercase.js
-
/**
* WordPress dependencies
*/
-const formatUppercase = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const formatUppercase = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"
+ })
+});
/* harmony default export */ const format_uppercase = (formatUppercase);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-lowercase.js
-
/**
* WordPress dependencies
*/
-const formatLowercase = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const formatLowercase = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"
+ })
+});
/* harmony default export */ const format_lowercase = (formatLowercase);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-capitalize.js
-
/**
* WordPress dependencies
*/
-const formatCapitalize = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const formatCapitalize = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"
+ })
+});
/* harmony default export */ const format_capitalize = (formatCapitalize);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/text-transform-control/index.js
-
/**
* External dependencies
*/
@@ -27783,20 +28540,25 @@ const formatCapitalize = (0,external_React_.createElement)(external_wp_primitive
+/**
+ * Internal dependencies
+ */
+
+
const TEXT_TRANSFORMS = [{
- name: (0,external_wp_i18n_namespaceObject.__)('None'),
+ label: (0,external_wp_i18n_namespaceObject.__)('None'),
value: 'none',
icon: library_reset
}, {
- name: (0,external_wp_i18n_namespaceObject.__)('Uppercase'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Uppercase'),
value: 'uppercase',
icon: format_uppercase
}, {
- name: (0,external_wp_i18n_namespaceObject.__)('Lowercase'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Lowercase'),
value: 'lowercase',
icon: format_lowercase
}, {
- name: (0,external_wp_i18n_namespaceObject.__)('Capitalize'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Capitalize'),
value: 'capitalize',
icon: format_capitalize
}];
@@ -27816,55 +28578,48 @@ function TextTransformControl({
value,
onChange
}) {
- return (0,external_React_.createElement)("fieldset", {
- className: classnames_default()('block-editor-text-transform-control', className)
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
- as: "legend"
- }, (0,external_wp_i18n_namespaceObject.__)('Letter case')), (0,external_React_.createElement)("div", {
- className: "block-editor-text-transform-control__buttons"
- }, TEXT_TRANSFORMS.map(textTransform => {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- key: textTransform.value,
- icon: textTransform.icon,
- label: textTransform.name,
- isPressed: textTransform.value === value,
- onClick: () => {
- onChange(textTransform.value === value ? undefined : textTransform.value);
- }
- });
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SegmentedTextControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Letter case'),
+ options: TEXT_TRANSFORMS,
+ className: dist_clsx('block-editor-text-transform-control', className),
+ value: value,
+ onChange: newValue => {
+ onChange(newValue === value ? undefined : newValue);
+ }
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-underline.js
-
/**
* WordPress dependencies
*/
-const formatUnderline = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const formatUnderline = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"
+ })
+});
/* harmony default export */ const format_underline = (formatUnderline);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-strikethrough.js
-
/**
* WordPress dependencies
*/
-const formatStrikethrough = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const formatStrikethrough = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"
+ })
+});
/* harmony default export */ const format_strikethrough = (formatStrikethrough);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/text-decoration-control/index.js
-
/**
* External dependencies
*/
@@ -27876,16 +28631,21 @@ const formatStrikethrough = (0,external_React_.createElement)(external_wp_primit
+/**
+ * Internal dependencies
+ */
+
+
const TEXT_DECORATIONS = [{
- name: (0,external_wp_i18n_namespaceObject.__)('None'),
+ label: (0,external_wp_i18n_namespaceObject.__)('None'),
value: 'none',
icon: library_reset
}, {
- name: (0,external_wp_i18n_namespaceObject.__)('Underline'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Underline'),
value: 'underline',
icon: format_underline
}, {
- name: (0,external_wp_i18n_namespaceObject.__)('Strikethrough'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Strikethrough'),
value: 'line-through',
icon: format_strikethrough
}];
@@ -27893,10 +28653,10 @@ const TEXT_DECORATIONS = [{
/**
* Control to facilitate text decoration selections.
*
- * @param {Object} props Component props.
- * @param {string} props.value Currently selected text decoration.
- * @param {Function} props.onChange Handles change in text decoration selection.
- * @param {string} [props.className] Additional class name to apply.
+ * @param {Object} props Component props.
+ * @param {string} props.value Currently selected text decoration.
+ * @param {Function} props.onChange Handles change in text decoration selection.
+ * @param {string} props.className Additional class name to apply.
*
* @return {Element} Text decoration control.
*/
@@ -27905,55 +28665,48 @@ function TextDecorationControl({
onChange,
className
}) {
- return (0,external_React_.createElement)("fieldset", {
- className: classnames_default()('block-editor-text-decoration-control', className)
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
- as: "legend"
- }, (0,external_wp_i18n_namespaceObject.__)('Decoration')), (0,external_React_.createElement)("div", {
- className: "block-editor-text-decoration-control__buttons"
- }, TEXT_DECORATIONS.map(textDecoration => {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- key: textDecoration.value,
- icon: textDecoration.icon,
- label: textDecoration.name,
- isPressed: textDecoration.value === value,
- onClick: () => {
- onChange(textDecoration.value === value ? undefined : textDecoration.value);
- }
- });
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SegmentedTextControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Decoration'),
+ options: TEXT_DECORATIONS,
+ className: dist_clsx('block-editor-text-decoration-control', className),
+ value: value,
+ onChange: newValue => {
+ onChange(newValue === value ? undefined : newValue);
+ }
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/text-horizontal.js
-
/**
* WordPress dependencies
*/
-const textHorizontal = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const textHorizontal = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z"
+ })
+});
/* harmony default export */ const text_horizontal = (textHorizontal);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/text-vertical.js
-
/**
* WordPress dependencies
*/
-const textVertical = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const textVertical = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M7 5.6v1.7l2.6.9v3.9L7 13v1.7L17.5 11V9.3L7 5.6zm4.2 6V8.8l4 1.4-4 1.4zm-5.7 5.6V5.5H4v14.3l3.6-2.2-.8-1.3-1.3.9z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M7 5.6v1.7l2.6.9v3.9L7 13v1.7L17.5 11V9.3L7 5.6zm4.2 6V8.8l4 1.4-4 1.4zm-5.7 5.6V5.5H4v14.3l3.6-2.2-.8-1.3-1.3.9z"
+ })
+});
/* harmony default export */ const text_vertical = (textVertical);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/writing-mode-control/index.js
-
/**
* External dependencies
*/
@@ -27965,12 +28718,17 @@ const textVertical = (0,external_React_.createElement)(external_wp_primitives_na
+/**
+ * Internal dependencies
+ */
+
+
const WRITING_MODES = [{
- name: (0,external_wp_i18n_namespaceObject.__)('Horizontal'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Horizontal'),
value: 'horizontal-tb',
icon: text_horizontal
}, {
- name: (0,external_wp_i18n_namespaceObject.__)('Vertical'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Vertical'),
value: (0,external_wp_i18n_namespaceObject.isRTL)() ? 'vertical-lr' : 'vertical-rl',
icon: text_vertical
}];
@@ -27990,27 +28748,18 @@ function WritingModeControl({
value,
onChange
}) {
- return (0,external_React_.createElement)("fieldset", {
- className: classnames_default()('block-editor-writing-mode-control', className)
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
- as: "legend"
- }, (0,external_wp_i18n_namespaceObject.__)('Orientation')), (0,external_React_.createElement)("div", {
- className: "block-editor-writing-mode-control__buttons"
- }, WRITING_MODES.map(writingMode => {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- key: writingMode.value,
- icon: writingMode.icon,
- label: writingMode.name,
- isPressed: writingMode.value === value,
- onClick: () => {
- onChange(writingMode.value === value ? undefined : writingMode.value);
- }
- });
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SegmentedTextControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Orientation'),
+ options: WRITING_MODES,
+ className: dist_clsx('block-editor-writing-mode-control', className),
+ value: value,
+ onChange: newValue => {
+ onChange(newValue === value ? undefined : newValue);
+ }
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/global-styles/typography-panel.js
-
/**
* WordPress dependencies
*/
@@ -28031,6 +28780,8 @@ function WritingModeControl({
+
+
const MIN_TEXT_COLUMNS = 1;
const MAX_TEXT_COLUMNS = 6;
function useHasTypographyPanel(settings) {
@@ -28038,18 +28789,19 @@ function useHasTypographyPanel(settings) {
const hasLineHeight = useHasLineHeightControl(settings);
const hasFontAppearance = useHasAppearanceControl(settings);
const hasLetterSpacing = useHasLetterSpacingControl(settings);
+ const hasTextAlign = useHasTextAlignmentControl(settings);
const hasTextTransform = useHasTextTransformControl(settings);
const hasTextDecoration = useHasTextDecorationControl(settings);
const hasWritingMode = useHasWritingModeControl(settings);
const hasTextColumns = useHasTextColumnsControl(settings);
const hasFontSize = useHasFontSizeControl(settings);
- return hasFontFamily || hasLineHeight || hasFontAppearance || hasLetterSpacing || hasTextTransform || hasFontSize || hasTextDecoration || hasWritingMode || hasTextColumns;
+ return hasFontFamily || hasLineHeight || hasFontAppearance || hasLetterSpacing || hasTextAlign || hasTextTransform || hasFontSize || hasTextDecoration || hasWritingMode || hasTextColumns;
}
function useHasFontSizeControl(settings) {
- return hasOriginValue(settings?.typography?.fontSizes) || settings?.typography?.customFontSize;
+ return settings?.typography?.defaultFontSizes !== false && settings?.typography?.fontSizes?.default?.length || settings?.typography?.fontSizes?.theme?.length || settings?.typography?.fontSizes?.custom?.length || settings?.typography?.customFontSize;
}
function useHasFontFamilyControl(settings) {
- return hasOriginValue(settings?.typography?.fontFamilies);
+ return ['default', 'theme', 'custom'].some(key => settings?.typography?.fontFamilies?.[key]?.length);
}
function useHasLineHeightControl(settings) {
return settings?.typography?.lineHeight;
@@ -28072,6 +28824,9 @@ function useHasLetterSpacingControl(settings) {
function useHasTextTransformControl(settings) {
return settings?.typography?.textTransform;
}
+function useHasTextAlignmentControl(settings) {
+ return settings?.typography?.textAlign;
+}
function useHasTextDecorationControl(settings) {
return settings?.typography?.textDecoration;
}
@@ -28081,19 +28836,19 @@ function useHasWritingModeControl(settings) {
function useHasTextColumnsControl(settings) {
return settings?.typography?.textColumns;
}
-function getUniqueFontSizesBySlug(settings) {
- var _settings$typography$, _overrideOrigins;
- const fontSizes = (_settings$typography$ = settings?.typography?.fontSizes) !== null && _settings$typography$ !== void 0 ? _settings$typography$ : {};
- const overriddenFontSizes = (_overrideOrigins = overrideOrigins(fontSizes)) !== null && _overrideOrigins !== void 0 ? _overrideOrigins : [];
- const uniqueSizes = [];
- for (const currentSize of overriddenFontSizes) {
- if (!uniqueSizes.some(({
- slug
- }) => slug === currentSize.slug)) {
- uniqueSizes.push(currentSize);
- }
- }
- return uniqueSizes;
+
+/**
+ * Concatenate all the font sizes into a single list for the font size picker.
+ *
+ * @param {Object} settings The global styles settings.
+ *
+ * @return {Array} The merged font sizes.
+ */
+function getMergedFontSizes(settings) {
+ var _fontSizes$custom, _fontSizes$theme, _fontSizes$default;
+ const fontSizes = settings?.typography?.fontSizes;
+ const defaultFontSizesEnabled = !!settings?.typography?.defaultFontSizes;
+ return [...((_fontSizes$custom = fontSizes?.custom) !== null && _fontSizes$custom !== void 0 ? _fontSizes$custom : []), ...((_fontSizes$theme = fontSizes?.theme) !== null && _fontSizes$theme !== void 0 ? _fontSizes$theme : []), ...(defaultFontSizesEnabled ? (_fontSizes$default = fontSizes?.default) !== null && _fontSizes$default !== void 0 ? _fontSizes$default : [] : [])];
}
function TypographyToolsPanel({
resetAllFilter,
@@ -28102,16 +28857,18 @@ function TypographyToolsPanel({
panelId,
children
}) {
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
const resetAll = () => {
const updatedValue = resetAllFilter(value);
onChange(updatedValue);
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
label: (0,external_wp_i18n_namespaceObject.__)('Typography'),
resetAll: resetAll,
panelId: panelId,
- dropdownMenuProps: TOOLSPANEL_DROPDOWNMENU_PROPS
- }, children);
+ dropdownMenuProps: dropdownMenuProps,
+ children: children
+ });
}
const typography_panel_DEFAULT_CONTROLS = {
fontFamily: true,
@@ -28119,6 +28876,7 @@ const typography_panel_DEFAULT_CONTROLS = {
fontAppearance: true,
lineHeight: true,
letterSpacing: true,
+ textAlign: true,
textTransform: true,
textDecoration: true,
writingMode: true,
@@ -28133,15 +28891,19 @@ function TypographyPanel({
panelId,
defaultControls = typography_panel_DEFAULT_CONTROLS
}) {
- var _settings$typography$2;
const decodeValue = rawValue => getValueFromVariable({
settings
}, '', rawValue);
// Font Family
const hasFontFamilyEnabled = useHasFontFamilyControl(settings);
- const fontFamilies = (_settings$typography$2 = settings?.typography?.fontFamilies) !== null && _settings$typography$2 !== void 0 ? _settings$typography$2 : {};
- const mergedFontFamilies = fontFamilies ? mergeOrigins(fontFamilies) : [];
+ const fontFamilies = settings?.typography?.fontFamilies;
+ const mergedFontFamilies = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return ['default', 'theme', 'custom'].flatMap(key => {
+ var _fontFamilies$key;
+ return (_fontFamilies$key = fontFamilies?.[key]) !== null && _fontFamilies$key !== void 0 ? _fontFamilies$key : [];
+ });
+ }, [fontFamilies]);
const fontFamily = decodeValue(inheritedValue?.typography?.fontFamily);
const setFontFamily = newValue => {
const slug = mergedFontFamilies?.find(({
@@ -28155,7 +28917,7 @@ function TypographyPanel({
// Font Size
const hasFontSizeEnabled = useHasFontSizeControl(settings);
const disableCustomFontSizes = !settings?.typography?.customFontSize;
- const mergedFontSizes = getUniqueFontSizesBySlug(settings);
+ const mergedFontSizes = getMergedFontSizes(settings);
const fontSize = decodeValue(inheritedValue?.typography?.fontSize);
const setFontSize = (newValue, metadata) => {
const actualValue = !!metadata?.slug ? `var:preset|font-size|${metadata?.slug}` : newValue;
@@ -28242,143 +29004,173 @@ function TypographyPanel({
};
const hasWritingMode = () => !!value?.typography?.writingMode;
const resetWritingMode = () => setWritingMode(undefined);
+
+ // Text Alignment
+ const hasTextAlignmentControl = useHasTextAlignmentControl(settings);
+ const textAlign = decodeValue(inheritedValue?.typography?.textAlign);
+ const setTextAlign = newValue => {
+ onChange(setImmutably(value, ['typography', 'textAlign'], newValue || undefined));
+ };
+ const hasTextAlign = () => !!value?.typography?.textAlign;
+ const resetTextAlign = () => setTextAlign(undefined);
const resetAllFilter = (0,external_wp_element_namespaceObject.useCallback)(previousValue => {
return {
...previousValue,
typography: {}
};
}, []);
- return (0,external_React_.createElement)(Wrapper, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Wrapper, {
resetAllFilter: resetAllFilter,
value: value,
onChange: onChange,
- panelId: panelId
- }, hasFontFamilyEnabled && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- label: (0,external_wp_i18n_namespaceObject.__)('Font family'),
- hasValue: hasFontFamily,
- onDeselect: resetFontFamily,
- isShownByDefault: defaultControls.fontFamily,
- panelId: panelId
- }, (0,external_React_.createElement)(FontFamilyControl, {
- fontFamilies: mergedFontFamilies,
- value: fontFamily,
- onChange: setFontFamily,
- size: "__unstable-large",
- __nextHasNoMarginBottom: true
- })), hasFontSizeEnabled && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- label: (0,external_wp_i18n_namespaceObject.__)('Font size'),
- hasValue: hasFontSize,
- onDeselect: resetFontSize,
- isShownByDefault: defaultControls.fontSize,
- panelId: panelId
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FontSizePicker, {
- value: fontSize,
- onChange: setFontSize,
- fontSizes: mergedFontSizes,
- disableCustomFontSizes: disableCustomFontSizes,
- withReset: false,
- withSlider: true,
- size: "__unstable-large"
- })), hasAppearanceControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- className: "single-column",
- label: appearanceControlLabel,
- hasValue: hasFontAppearance,
- onDeselect: resetFontAppearance,
- isShownByDefault: defaultControls.fontAppearance,
- panelId: panelId
- }, (0,external_React_.createElement)(FontAppearanceControl, {
- value: {
- fontStyle,
- fontWeight
- },
- onChange: setFontAppearance,
- hasFontStyles: hasFontStyles,
- hasFontWeights: hasFontWeights,
- size: "__unstable-large",
- __nextHasNoMarginBottom: true
- })), hasLineHeightEnabled && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- className: "single-column",
- label: (0,external_wp_i18n_namespaceObject.__)('Line height'),
- hasValue: hasLineHeight,
- onDeselect: resetLineHeight,
- isShownByDefault: defaultControls.lineHeight,
- panelId: panelId
- }, (0,external_React_.createElement)(line_height_control, {
- __nextHasNoMarginBottom: true,
- __unstableInputWidth: "auto",
- value: lineHeight,
- onChange: setLineHeight,
- size: "__unstable-large"
- })), hasLetterSpacingControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- className: "single-column",
- label: (0,external_wp_i18n_namespaceObject.__)('Letter spacing'),
- hasValue: hasLetterSpacing,
- onDeselect: resetLetterSpacing,
- isShownByDefault: defaultControls.letterSpacing,
- panelId: panelId
- }, (0,external_React_.createElement)(LetterSpacingControl, {
- value: letterSpacing,
- onChange: setLetterSpacing,
- size: "__unstable-large",
- __unstableInputWidth: "auto"
- })), hasTextColumnsControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- className: "single-column",
- label: (0,external_wp_i18n_namespaceObject.__)('Text columns'),
- hasValue: hasTextColumns,
- onDeselect: resetTextColumns,
- isShownByDefault: defaultControls.textColumns,
- panelId: panelId
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNumberControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Text columns'),
- max: MAX_TEXT_COLUMNS,
- min: MIN_TEXT_COLUMNS,
- onChange: setTextColumns,
- size: "__unstable-large",
- spinControls: "custom",
- value: textColumns,
- initialPosition: 1
- })), hasTextDecorationControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- className: "single-column",
- label: (0,external_wp_i18n_namespaceObject.__)('Text decoration'),
- hasValue: hasTextDecoration,
- onDeselect: resetTextDecoration,
- isShownByDefault: defaultControls.textDecoration,
- panelId: panelId
- }, (0,external_React_.createElement)(TextDecorationControl, {
- value: textDecoration,
- onChange: setTextDecoration,
- size: "__unstable-large",
- __unstableInputWidth: "auto"
- })), hasWritingModeControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- className: "single-column",
- label: (0,external_wp_i18n_namespaceObject.__)('Text orientation'),
- hasValue: hasWritingMode,
- onDeselect: resetWritingMode,
- isShownByDefault: defaultControls.writingMode,
- panelId: panelId
- }, (0,external_React_.createElement)(WritingModeControl, {
- value: writingMode,
- onChange: setWritingMode,
- size: "__unstable-large",
- __nextHasNoMarginBottom: true
- })), hasTextTransformControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- label: (0,external_wp_i18n_namespaceObject.__)('Letter case'),
- hasValue: hasTextTransform,
- onDeselect: resetTextTransform,
- isShownByDefault: defaultControls.textTransform,
- panelId: panelId
- }, (0,external_React_.createElement)(TextTransformControl, {
- value: textTransform,
- onChange: setTextTransform,
- showNone: true,
- isBlock: true,
- size: "__unstable-large",
- __nextHasNoMarginBottom: true
- })));
+ panelId: panelId,
+ children: [hasFontFamilyEnabled && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Font'),
+ hasValue: hasFontFamily,
+ onDeselect: resetFontFamily,
+ isShownByDefault: defaultControls.fontFamily,
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FontFamilyControl, {
+ fontFamilies: mergedFontFamilies,
+ value: fontFamily,
+ onChange: setFontFamily,
+ size: "__unstable-large",
+ __nextHasNoMarginBottom: true
+ })
+ }), hasFontSizeEnabled && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Size'),
+ hasValue: hasFontSize,
+ onDeselect: resetFontSize,
+ isShownByDefault: defaultControls.fontSize,
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FontSizePicker, {
+ value: fontSize,
+ onChange: setFontSize,
+ fontSizes: mergedFontSizes,
+ disableCustomFontSizes: disableCustomFontSizes,
+ withReset: false,
+ withSlider: true,
+ size: "__unstable-large"
+ })
+ }), hasAppearanceControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ className: "single-column",
+ label: appearanceControlLabel,
+ hasValue: hasFontAppearance,
+ onDeselect: resetFontAppearance,
+ isShownByDefault: defaultControls.fontAppearance,
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FontAppearanceControl, {
+ value: {
+ fontStyle,
+ fontWeight
+ },
+ onChange: setFontAppearance,
+ hasFontStyles: hasFontStyles,
+ hasFontWeights: hasFontWeights,
+ size: "__unstable-large",
+ __nextHasNoMarginBottom: true
+ })
+ }), hasLineHeightEnabled && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ className: "single-column",
+ label: (0,external_wp_i18n_namespaceObject.__)('Line height'),
+ hasValue: hasLineHeight,
+ onDeselect: resetLineHeight,
+ isShownByDefault: defaultControls.lineHeight,
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(line_height_control, {
+ __nextHasNoMarginBottom: true,
+ __unstableInputWidth: "auto",
+ value: lineHeight,
+ onChange: setLineHeight,
+ size: "__unstable-large"
+ })
+ }), hasLetterSpacingControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ className: "single-column",
+ label: (0,external_wp_i18n_namespaceObject.__)('Letter spacing'),
+ hasValue: hasLetterSpacing,
+ onDeselect: resetLetterSpacing,
+ isShownByDefault: defaultControls.letterSpacing,
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LetterSpacingControl, {
+ value: letterSpacing,
+ onChange: setLetterSpacing,
+ size: "__unstable-large",
+ __unstableInputWidth: "auto"
+ })
+ }), hasTextColumnsControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ className: "single-column",
+ label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
+ hasValue: hasTextColumns,
+ onDeselect: resetTextColumns,
+ isShownByDefault: defaultControls.textColumns,
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNumberControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
+ max: MAX_TEXT_COLUMNS,
+ min: MIN_TEXT_COLUMNS,
+ onChange: setTextColumns,
+ size: "__unstable-large",
+ spinControls: "custom",
+ value: textColumns,
+ initialPosition: 1
+ })
+ }), hasTextDecorationControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ className: "single-column",
+ label: (0,external_wp_i18n_namespaceObject.__)('Decoration'),
+ hasValue: hasTextDecoration,
+ onDeselect: resetTextDecoration,
+ isShownByDefault: defaultControls.textDecoration,
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TextDecorationControl, {
+ value: textDecoration,
+ onChange: setTextDecoration,
+ size: "__unstable-large",
+ __unstableInputWidth: "auto"
+ })
+ }), hasWritingModeControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ className: "single-column",
+ label: (0,external_wp_i18n_namespaceObject.__)('Orientation'),
+ hasValue: hasWritingMode,
+ onDeselect: resetWritingMode,
+ isShownByDefault: defaultControls.writingMode,
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WritingModeControl, {
+ value: writingMode,
+ onChange: setWritingMode,
+ size: "__unstable-large",
+ __nextHasNoMarginBottom: true
+ })
+ }), hasTextTransformControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Letter case'),
+ hasValue: hasTextTransform,
+ onDeselect: resetTextTransform,
+ isShownByDefault: defaultControls.textTransform,
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TextTransformControl, {
+ value: textTransform,
+ onChange: setTextTransform,
+ showNone: true,
+ isBlock: true,
+ size: "__unstable-large",
+ __nextHasNoMarginBottom: true
+ })
+ }), hasTextAlignmentControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Text alignment'),
+ hasValue: hasTextAlign,
+ onDeselect: resetTextAlign,
+ isShownByDefault: defaultControls.textAlign,
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TextAlignmentControl, {
+ value: textAlign,
+ onChange: setTextAlign,
+ size: "__unstable-large",
+ __nextHasNoMarginBottom: true
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/line-height.js
-
/**
* WordPress dependencies
*/
@@ -28390,6 +29182,7 @@ function TypographyPanel({
+
const LINE_HEIGHT_SUPPORT_KEY = 'typography.lineHeight';
/**
@@ -28418,7 +29211,7 @@ function LineHeightEdit(props) {
style: cleanEmptyObject(newStyle)
});
};
- return createElement(LineHeightControl, {
+ return /*#__PURE__*/_jsx(LineHeightControl, {
__unstableInputWidth: "100%",
__nextHasNoMarginBottom: true,
value: style?.typography?.lineHeight,
@@ -28459,6 +29252,9 @@ var external_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_
const FONT_FAMILY_SUPPORT_KEY = 'typography.__experimentalFontFamily';
+const {
+ kebabCase: font_family_kebabCase
+} = unlock(external_wp_components_namespaceObject.privateApis);
/**
* Filters registered block settings, extending attributes to include
@@ -28504,10 +29300,7 @@ function font_family_addSaveProps(props, blockType, attributes) {
// Use TokenList to dedupe classes.
const classes = new (external_wp_tokenList_default())(props.className);
- const {
- kebabCase
- } = unlock(external_wp_components_namespaceObject.privateApis);
- classes.add(`has-${kebabCase(attributes?.fontFamily)}-font-family`);
+ classes.add(`has-${font_family_kebabCase(attributes?.fontFamily)}-font-family`);
const newClassName = classes.value;
props.className = newClassName ? newClassName : undefined;
return props;
@@ -28556,6 +29349,9 @@ function resetFontFamily({
* Internal dependencies
*/
+const {
+ kebabCase: utils_kebabCase
+} = unlock(external_wp_components_namespaceObject.privateApis);
/**
* Returns the font size object based on an array of named font sizes and the namedFontSize and customFontSize values.
@@ -28614,14 +29410,10 @@ function getFontSizeClass(fontSizeSlug) {
if (!fontSizeSlug) {
return;
}
- const {
- kebabCase
- } = unlock(external_wp_components_namespaceObject.privateApis);
- return `has-${kebabCase(fontSizeSlug)}-font-size`;
+ return `has-${utils_kebabCase(fontSizeSlug)}-font-size`;
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/font-size.js
-
/**
* WordPress dependencies
*/
@@ -28637,6 +29429,7 @@ function getFontSizeClass(fontSizeSlug) {
+
const FONT_SIZE_SUPPORT_KEY = 'typography.fontSize';
/**
@@ -28719,7 +29512,7 @@ function FontSizeEdit(props) {
};
const fontSizeObject = getFontSize(fontSizes, fontSize, style?.typography?.fontSize);
const fontSizeValue = fontSizeObject?.size || style?.typography?.fontSize || fontSize;
- return createElement(FontSizePicker, {
+ return /*#__PURE__*/_jsx(FontSizePicker, {
onChange: onChange,
value: fontSizeValue,
withReset: false,
@@ -28758,17 +29551,16 @@ function font_size_useBlockProps({
}
let props;
if (style?.typography?.fontSize) {
- const fluidSettings = getFluidTypographyOptionsFromSettings({
- typography: {
- fluid: fluidTypographySettings
- },
- layout: layoutSettings
- });
props = {
style: {
fontSize: getTypographyFontSizeValue({
size: style.typography.fontSize
- }, fluidSettings)
+ }, {
+ typography: {
+ fluid: fluidTypographySettings
+ },
+ layout: layoutSettings
+ })
}
};
}
@@ -28807,7 +29599,107 @@ function font_size_addTransforms(result, source, index, results) {
(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/font/addAttribute', font_size_addAttributes);
(0,external_wp_hooks_namespaceObject.addFilter)('blocks.switchToBlockType.transformedBlock', 'core/font-size/addTransforms', font_size_addTransforms);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/typography.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/alignment-control/ui.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+const DEFAULT_ALIGNMENT_CONTROLS = [{
+ icon: align_left,
+ title: (0,external_wp_i18n_namespaceObject.__)('Align text left'),
+ align: 'left'
+}, {
+ icon: align_center,
+ title: (0,external_wp_i18n_namespaceObject.__)('Align text center'),
+ align: 'center'
+}, {
+ icon: align_right,
+ title: (0,external_wp_i18n_namespaceObject.__)('Align text right'),
+ align: 'right'
+}];
+const ui_POPOVER_PROPS = {
+ placement: 'bottom-start'
+};
+function AlignmentUI({
+ value,
+ onChange,
+ alignmentControls = DEFAULT_ALIGNMENT_CONTROLS,
+ label = (0,external_wp_i18n_namespaceObject.__)('Align text'),
+ describedBy = (0,external_wp_i18n_namespaceObject.__)('Change text alignment'),
+ isCollapsed = true,
+ isToolbar
+}) {
+ function applyOrUnset(align) {
+ return () => onChange(value === align ? undefined : align);
+ }
+ const activeAlignment = alignmentControls.find(control => control.align === value);
+ function setIcon() {
+ if (activeAlignment) {
+ return activeAlignment.icon;
+ }
+ return (0,external_wp_i18n_namespaceObject.isRTL)() ? align_right : align_left;
+ }
+ const UIComponent = isToolbar ? external_wp_components_namespaceObject.ToolbarGroup : external_wp_components_namespaceObject.ToolbarDropdownMenu;
+ const extraProps = isToolbar ? {
+ isCollapsed
+ } : {
+ toggleProps: {
+ describedBy
+ },
+ popoverProps: ui_POPOVER_PROPS
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(UIComponent, {
+ icon: setIcon(),
+ label: label,
+ controls: alignmentControls.map(control => {
+ const {
+ align
+ } = control;
+ const isActive = value === align;
+ return {
+ ...control,
+ isActive,
+ role: isCollapsed ? 'menuitemradio' : undefined,
+ onClick: applyOrUnset(align)
+ };
+ }),
+ ...extraProps
+ });
+}
+/* harmony default export */ const alignment_control_ui = (AlignmentUI);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/alignment-control/index.js
+/**
+ * Internal dependencies
+ */
+
+
+const AlignmentControl = props => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(alignment_control_ui, {
+ ...props,
+ isToolbar: false
+ });
+};
+const AlignmentToolbar = props => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(alignment_control_ui, {
+ ...props,
+ isToolbar: true
+ });
+};
+
+/**
+ * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/alignment-control/README.md
+ */
+
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/text-align.js
+/**
+ * External dependencies
+ */
+
/**
* WordPress dependencies
@@ -28824,6 +29716,150 @@ function font_size_addTransforms(result, source, index, results) {
+const TEXT_ALIGN_SUPPORT_KEY = 'typography.textAlign';
+const text_align_TEXT_ALIGNMENT_OPTIONS = [{
+ icon: align_left,
+ title: (0,external_wp_i18n_namespaceObject.__)('Align text left'),
+ align: 'left'
+}, {
+ icon: align_center,
+ title: (0,external_wp_i18n_namespaceObject.__)('Align text center'),
+ align: 'center'
+}, {
+ icon: align_right,
+ title: (0,external_wp_i18n_namespaceObject.__)('Align text right'),
+ align: 'right'
+}];
+const VALID_TEXT_ALIGNMENTS = ['left', 'center', 'right'];
+const NO_TEXT_ALIGNMENTS = [];
+
+/**
+ * Returns the valid text alignments.
+ * Takes into consideration the text aligns supported by a block.
+ * Exported just for testing purposes, not exported outside the module.
+ *
+ * @param {?boolean|string[]} blockTextAlign Text aligns supported by the block.
+ *
+ * @return {string[]} Valid text alignments.
+ */
+function getValidTextAlignments(blockTextAlign) {
+ if (Array.isArray(blockTextAlign)) {
+ return VALID_TEXT_ALIGNMENTS.filter(textAlign => blockTextAlign.includes(textAlign));
+ }
+ return blockTextAlign === true ? VALID_TEXT_ALIGNMENTS : NO_TEXT_ALIGNMENTS;
+}
+function BlockEditTextAlignmentToolbarControlsPure({
+ style,
+ name: blockName,
+ setAttributes
+}) {
+ const settings = useBlockSettings(blockName);
+ const hasTextAlignControl = settings?.typography?.textAlign;
+ const blockEditingMode = useBlockEditingMode();
+ if (!hasTextAlignControl || blockEditingMode !== 'default') {
+ return null;
+ }
+ const validTextAlignments = getValidTextAlignments((0,external_wp_blocks_namespaceObject.getBlockSupport)(blockName, TEXT_ALIGN_SUPPORT_KEY));
+ if (!validTextAlignments.length) {
+ return null;
+ }
+ const textAlignmentControls = text_align_TEXT_ALIGNMENT_OPTIONS.filter(control => validTextAlignments.includes(control.align));
+ const onChange = newTextAlignValue => {
+ const newStyle = {
+ ...style,
+ typography: {
+ ...style?.typography,
+ textAlign: newTextAlignValue
+ }
+ };
+ setAttributes({
+ style: utils_cleanEmptyObject(newStyle)
+ });
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_controls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AlignmentControl, {
+ value: style?.typography?.textAlign,
+ onChange: onChange,
+ alignmentControls: textAlignmentControls
+ })
+ });
+}
+/* harmony default export */ const text_align = ({
+ edit: BlockEditTextAlignmentToolbarControlsPure,
+ useBlockProps: text_align_useBlockProps,
+ addSaveProps: addAssignedTextAlign,
+ attributeKeys: ['style'],
+ hasSupport(name) {
+ return (0,external_wp_blocks_namespaceObject.hasBlockSupport)(name, TEXT_ALIGN_SUPPORT_KEY, false);
+ }
+});
+function text_align_useBlockProps({
+ name,
+ style
+}) {
+ if (!style?.typography?.textAlign) {
+ return null;
+ }
+ const validTextAlignments = getValidTextAlignments((0,external_wp_blocks_namespaceObject.getBlockSupport)(name, TEXT_ALIGN_SUPPORT_KEY));
+ if (!validTextAlignments.length) {
+ return null;
+ }
+ if (shouldSkipSerialization(name, TYPOGRAPHY_SUPPORT_KEY, 'textAlign')) {
+ return null;
+ }
+ const textAlign = style.typography.textAlign;
+ const className = dist_clsx({
+ [`has-text-align-${textAlign}`]: textAlign
+ });
+ return {
+ className
+ };
+}
+
+/**
+ * Override props assigned to save component to inject text 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 addAssignedTextAlign(props, blockType, attributes) {
+ if (!attributes?.style?.typography?.textAlign) {
+ return props;
+ }
+ const {
+ textAlign
+ } = attributes.style.typography;
+ const blockTextAlign = (0,external_wp_blocks_namespaceObject.getBlockSupport)(blockType, TEXT_ALIGN_SUPPORT_KEY);
+ const isTextAlignValid = getValidTextAlignments(blockTextAlign).includes(textAlign);
+ if (isTextAlignValid && !shouldSkipSerialization(blockType, TYPOGRAPHY_SUPPORT_KEY, 'textAlign')) {
+ props.className = dist_clsx(`has-text-align-${textAlign}`, props.className);
+ }
+ return props;
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/typography.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
function omit(object, keys) {
@@ -28837,7 +29873,7 @@ const FONT_STYLE_SUPPORT_KEY = 'typography.__experimentalFontStyle';
const FONT_WEIGHT_SUPPORT_KEY = 'typography.__experimentalFontWeight';
const WRITING_MODE_SUPPORT_KEY = 'typography.__experimentalWritingMode';
const TYPOGRAPHY_SUPPORT_KEY = 'typography';
-const TYPOGRAPHY_SUPPORT_KEYS = [LINE_HEIGHT_SUPPORT_KEY, FONT_SIZE_SUPPORT_KEY, FONT_STYLE_SUPPORT_KEY, FONT_WEIGHT_SUPPORT_KEY, FONT_FAMILY_SUPPORT_KEY, TEXT_COLUMNS_SUPPORT_KEY, TEXT_DECORATION_SUPPORT_KEY, WRITING_MODE_SUPPORT_KEY, TEXT_TRANSFORM_SUPPORT_KEY, LETTER_SPACING_SUPPORT_KEY];
+const TYPOGRAPHY_SUPPORT_KEYS = [LINE_HEIGHT_SUPPORT_KEY, FONT_SIZE_SUPPORT_KEY, FONT_STYLE_SUPPORT_KEY, FONT_WEIGHT_SUPPORT_KEY, FONT_FAMILY_SUPPORT_KEY, TEXT_ALIGN_SUPPORT_KEY, TEXT_COLUMNS_SUPPORT_KEY, TEXT_DECORATION_SUPPORT_KEY, WRITING_MODE_SUPPORT_KEY, TEXT_TRANSFORM_SUPPORT_KEY, LETTER_SPACING_SUPPORT_KEY];
function typography_styleToAttributes(style) {
const updatedStyle = {
...omit(style, ['fontFamily'])
@@ -28878,10 +29914,11 @@ function TypographyInspectorControl({
...typography_styleToAttributes(updatedStyle)
};
}, [resetAllFilter]);
- return (0,external_React_.createElement)(inspector_controls, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls, {
group: "typography",
- resetAllFilter: attributesResetAllFilter
- }, children);
+ resetAllFilter: attributesResetAllFilter,
+ children: children
+ });
}
function typography_TypographyPanel({
clientId,
@@ -28919,7 +29956,7 @@ function typography_TypographyPanel({
return null;
}
const defaultControls = (0,external_wp_blocks_namespaceObject.getBlockSupport)(name, [TYPOGRAPHY_SUPPORT_KEY, '__experimentalDefaultControls']);
- return (0,external_React_.createElement)(TypographyPanel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TypographyPanel, {
as: TypographyInspectorControl,
panelId: clientId,
settings: settings,
@@ -28933,23 +29970,24 @@ const hasTypographySupport = blockName => {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/settings.js
-
/**
* WordPress dependencies
*/
-const settings_settings = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const settings_settings = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"
+ })]
+});
/* harmony default export */ const library_settings = (settings_settings);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.js
-
/**
* WordPress dependencies
*/
@@ -28966,6 +30004,9 @@ const settings_settings = (0,external_React_.createElement)(external_wp_primitiv
+
+
+
const CUSTOM_VALUE_SETTINGS = {
px: {
max: 300,
@@ -29097,12 +30138,13 @@ function SpacingInputControl({
// Treat value as a preset value if the passed in value matches the value of one of the spacingSizes.
value = getPresetValueFromCustomValue(value, spacingSizes);
let selectListSizes = spacingSizes;
- const showRangeControl = spacingSizes.length <= 8;
+ const showRangeControl = spacingSizes.length <= RANGE_CONTROL_MAX_SIZE;
const disableCustomSpacingSizes = (0,external_wp_data_namespaceObject.useSelect)(select => {
const editorSettings = select(store).getSettings();
return editorSettings?.disableCustomSpacingSizes;
});
const [showCustomValueControl, setShowCustomValueControl] = (0,external_wp_element_namespaceObject.useState)(!disableCustomSpacingSizes && value !== undefined && !isValueSpacingPreset(value));
+ const [minValue, setMinValue] = (0,external_wp_element_namespaceObject.useState)(minimumCustomValue);
const previousValue = (0,external_wp_compose_namespaceObject.usePrevious)(value);
if (!!value && previousValue !== value && !isValueSpacingPreset(value) && showCustomValueControl !== true) {
setShowCustomValueControl(true);
@@ -29169,101 +30211,117 @@ function SpacingInputControl({
const ariaLabel = (0,external_wp_i18n_namespaceObject.sprintf)(
// translators: 1: The side of the block being modified (top, bottom, left, All sides etc.). 2. Type of spacing being modified (Padding, margin, etc)
(0,external_wp_i18n_namespaceObject.__)('%1$s %2$s'), sideLabel, typeLabel).trim();
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- className: "spacing-sizes-control__wrapper"
- }, icon && (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- className: "spacing-sizes-control__icon",
- icon: icon,
- size: 24
- }), showCustomValueControl && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- onMouseOver: onMouseOver,
- onMouseOut: onMouseOut,
- onFocus: onMouseOver,
- onBlur: onMouseOut,
- onChange: newSize => onChange(getNewCustomValue(newSize)),
- value: currentValue,
- units: units,
- min: minimumCustomValue,
- placeholder: allPlaceholder,
- disableUnits: isMixed,
- label: ariaLabel,
- hideLabelFromVision: true,
- className: "spacing-sizes-control__custom-value-input",
- size: '__unstable-large'
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.RangeControl, {
- onMouseOver: onMouseOver,
- onMouseOut: onMouseOut,
- onFocus: onMouseOver,
- onBlur: onMouseOut,
- value: customRangeValue,
- min: 0,
- max: (_CUSTOM_VALUE_SETTING = CUSTOM_VALUE_SETTINGS[selectedUnit]?.max) !== null && _CUSTOM_VALUE_SETTING !== void 0 ? _CUSTOM_VALUE_SETTING : 10,
- step: (_CUSTOM_VALUE_SETTING2 = CUSTOM_VALUE_SETTINGS[selectedUnit]?.steps) !== null && _CUSTOM_VALUE_SETTING2 !== void 0 ? _CUSTOM_VALUE_SETTING2 : 0.1,
- withInputField: false,
- onChange: handleCustomValueSliderChange,
- className: "spacing-sizes-control__custom-value-range",
- __nextHasNoMarginBottom: true
- })), showRangeControl && !showCustomValueControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.RangeControl, {
- onMouseOver: onMouseOver,
- onMouseOut: onMouseOut,
- className: "spacing-sizes-control__range-control",
- value: currentValue,
- onChange: newSize => onChange(getNewPresetValue(newSize)),
- onMouseDown: event => {
- // If mouse down is near start of range set initial value to 0, which
- // prevents the user have to drag right then left to get 0 setting.
- if (event?.nativeEvent?.offsetX < 35) {
- setInitialValue();
- }
- },
- withInputField: false,
- "aria-valuenow": currentValue,
- "aria-valuetext": spacingSizes[currentValue]?.name,
- renderTooltipContent: customTooltipContent,
- min: 0,
- max: spacingSizes.length - 1,
- marks: marks,
- label: ariaLabel,
- hideLabelFromVision: true,
- __nextHasNoMarginBottom: true,
- onFocus: onMouseOver,
- onBlur: onMouseOut
- }), !showRangeControl && !showCustomValueControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.CustomSelectControl, {
- className: "spacing-sizes-control__custom-select-control",
- value: options.find(option => option.key === currentValue) || '' // passing undefined here causes a downshift controlled/uncontrolled warning
- ,
- onChange: selection => {
- onChange(getNewPresetValue(selection.selectedItem.key, 'selectList'));
- },
- options: options,
- label: ariaLabel,
- hideLabelFromVision: true,
- __nextUnconstrainedWidth: true,
- size: '__unstable-large',
- onMouseOver: onMouseOver,
- onMouseOut: onMouseOut,
- onFocus: onMouseOver,
- onBlur: onMouseOut
- }), !disableCustomSpacingSizes && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- label: showCustomValueControl ? (0,external_wp_i18n_namespaceObject.__)('Use size preset') : (0,external_wp_i18n_namespaceObject.__)('Set custom size'),
- icon: library_settings,
- onClick: () => {
- setShowCustomValueControl(!showCustomValueControl);
- },
- isPressed: showCustomValueControl,
- size: "small",
- className: "spacing-sizes-control__custom-toggle",
- iconSize: 24
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ className: "spacing-sizes-control__wrapper",
+ children: [icon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ className: "spacing-sizes-control__icon",
+ icon: icon,
+ size: 24
+ }), showCustomValueControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ onMouseOver: onMouseOver,
+ onMouseOut: onMouseOut,
+ onFocus: onMouseOver,
+ onBlur: onMouseOut,
+ onChange: newSize => onChange(getNewCustomValue(newSize)),
+ value: currentValue,
+ units: units,
+ min: minValue,
+ placeholder: allPlaceholder,
+ disableUnits: isMixed,
+ label: ariaLabel,
+ hideLabelFromVision: true,
+ className: "spacing-sizes-control__custom-value-input",
+ size: "__unstable-large",
+ onDragStart: () => {
+ if (value?.charAt(0) === '-') {
+ setMinValue(0);
+ }
+ },
+ onDrag: () => {
+ if (value?.charAt(0) === '-') {
+ setMinValue(0);
+ }
+ },
+ onDragEnd: () => {
+ setMinValue(minimumCustomValue);
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ onMouseOver: onMouseOver,
+ onMouseOut: onMouseOut,
+ onFocus: onMouseOver,
+ onBlur: onMouseOut,
+ value: customRangeValue,
+ min: 0,
+ max: (_CUSTOM_VALUE_SETTING = CUSTOM_VALUE_SETTINGS[selectedUnit]?.max) !== null && _CUSTOM_VALUE_SETTING !== void 0 ? _CUSTOM_VALUE_SETTING : 10,
+ step: (_CUSTOM_VALUE_SETTING2 = CUSTOM_VALUE_SETTINGS[selectedUnit]?.steps) !== null && _CUSTOM_VALUE_SETTING2 !== void 0 ? _CUSTOM_VALUE_SETTING2 : 0.1,
+ withInputField: false,
+ onChange: handleCustomValueSliderChange,
+ className: "spacing-sizes-control__custom-value-range",
+ __nextHasNoMarginBottom: true
+ })]
+ }), showRangeControl && !showCustomValueControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ onMouseOver: onMouseOver,
+ onMouseOut: onMouseOut,
+ className: "spacing-sizes-control__range-control",
+ value: currentValue,
+ onChange: newSize => onChange(getNewPresetValue(newSize)),
+ onMouseDown: event => {
+ // If mouse down is near start of range set initial value to 0, which
+ // prevents the user have to drag right then left to get 0 setting.
+ if (event?.nativeEvent?.offsetX < 35) {
+ setInitialValue();
+ }
+ },
+ withInputField: false,
+ "aria-valuenow": currentValue,
+ "aria-valuetext": spacingSizes[currentValue]?.name,
+ renderTooltipContent: customTooltipContent,
+ min: 0,
+ max: spacingSizes.length - 1,
+ marks: marks,
+ label: ariaLabel,
+ hideLabelFromVision: true,
+ __nextHasNoMarginBottom: true,
+ onFocus: onMouseOver,
+ onBlur: onMouseOut
+ }), !showRangeControl && !showCustomValueControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CustomSelectControl, {
+ className: "spacing-sizes-control__custom-select-control",
+ value: options.find(option => option.key === currentValue) || '' // passing undefined here causes a downshift controlled/uncontrolled warning
+ ,
+ onChange: selection => {
+ onChange(getNewPresetValue(selection.selectedItem.key, 'selectList'));
+ },
+ options: options,
+ label: ariaLabel,
+ hideLabelFromVision: true,
+ size: "__unstable-large",
+ onMouseOver: onMouseOver,
+ onMouseOut: onMouseOut,
+ onFocus: onMouseOver,
+ onBlur: onMouseOut
+ }), !disableCustomSpacingSizes && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ label: showCustomValueControl ? (0,external_wp_i18n_namespaceObject.__)('Use size preset') : (0,external_wp_i18n_namespaceObject.__)('Set custom size'),
+ icon: library_settings,
+ onClick: () => {
+ setShowCustomValueControl(!showCustomValueControl);
+ },
+ isPressed: showCustomValueControl,
+ size: "small",
+ className: "spacing-sizes-control__custom-toggle",
+ iconSize: 24
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/spacing-sizes-control/input-controls/axial.js
-
/**
* Internal dependencies
*/
+
+
const groupedSides = ['vertical', 'horizontal'];
function AxialInputControls({
minimumCustomValue,
@@ -29300,32 +30358,34 @@ function AxialInputControls({
// Filter sides if custom configuration provided, maintaining default order.
const filteredSides = sides?.length ? groupedSides.filter(side => hasAxisSupport(sides, side)) : groupedSides;
- return (0,external_React_.createElement)(external_React_.Fragment, null, filteredSides.map(side => {
- const axisValue = side === 'vertical' ? values.top : values.left;
- return (0,external_React_.createElement)(SpacingInputControl, {
- key: `spacing-sizes-control-${side}`,
- icon: ICONS[side],
- label: LABELS[side],
- minimumCustomValue: minimumCustomValue,
- onChange: createHandleOnChange(side),
- onMouseOut: onMouseOut,
- onMouseOver: onMouseOver,
- side: side,
- spacingSizes: spacingSizes,
- type: type,
- value: axisValue,
- withInputField: false
- });
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: filteredSides.map(side => {
+ const axisValue = side === 'vertical' ? values.top : values.left;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpacingInputControl, {
+ icon: ICONS[side],
+ label: LABELS[side],
+ minimumCustomValue: minimumCustomValue,
+ onChange: createHandleOnChange(side),
+ onMouseOut: onMouseOut,
+ onMouseOver: onMouseOver,
+ side: side,
+ spacingSizes: spacingSizes,
+ type: type,
+ value: axisValue,
+ withInputField: false
+ }, `spacing-sizes-control-${side}`);
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/spacing-sizes-control/input-controls/separated.js
-
/**
* Internal dependencies
*/
+
+
function SeparatedInputControls({
minimumCustomValue,
onChange,
@@ -29349,31 +30409,32 @@ function SeparatedInputControls({
nextValues[side] = next;
onChange(nextValues);
};
- return (0,external_React_.createElement)(external_React_.Fragment, null, filteredSides.map(side => {
- return (0,external_React_.createElement)(SpacingInputControl, {
- key: `spacing-sizes-control-${side}`,
- icon: ICONS[side],
- label: LABELS[side],
- minimumCustomValue: minimumCustomValue,
- onChange: createHandleOnChange(side),
- onMouseOut: onMouseOut,
- onMouseOver: onMouseOver,
- side: side,
- spacingSizes: spacingSizes,
- type: type,
- value: values[side],
- withInputField: false
- });
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: filteredSides.map(side => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpacingInputControl, {
+ icon: ICONS[side],
+ label: LABELS[side],
+ minimumCustomValue: minimumCustomValue,
+ onChange: createHandleOnChange(side),
+ onMouseOut: onMouseOut,
+ onMouseOver: onMouseOver,
+ side: side,
+ spacingSizes: spacingSizes,
+ type: type,
+ value: values[side],
+ withInputField: false
+ }, `spacing-sizes-control-${side}`);
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/spacing-sizes-control/input-controls/single.js
-
/**
* Internal dependencies
*/
+
function SingleInputControl({
minimumCustomValue,
onChange,
@@ -29396,7 +30457,7 @@ function SingleInputControl({
nextValues[currentSide] = next;
onChange(nextValues);
};
- return (0,external_React_.createElement)(SpacingInputControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpacingInputControl, {
label: LABELS[side],
minimumCustomValue: minimumCustomValue,
onChange: createHandleOnChange(side),
@@ -29412,7 +30473,6 @@ function SingleInputControl({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/spacing-sizes-control/sides-dropdown/index.js
-
/**
* WordPress dependencies
*/
@@ -29423,7 +30483,10 @@ function SingleInputControl({
* Internal dependencies
*/
-const checkIcon = (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
+
+
+
+const checkIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
icon: library_check,
size: 24
});
@@ -29442,44 +30505,52 @@ function SidesDropdown({
custom: customItem,
...menuItems
} = supportedItems;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
icon: sideIcon,
label: labelProp,
className: "spacing-sizes-control__dropdown",
toggleProps: {
- isSmall: true
+ size: 'small'
+ },
+ children: ({
+ onClose
+ }) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ children: Object.entries(menuItems).map(([slug, {
+ label,
+ icon
+ }]) => {
+ const isSelected = value === slug;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: icon,
+ iconPosition: "left",
+ isSelected: isSelected,
+ role: "menuitemradio",
+ onClick: () => {
+ onChange(slug);
+ onClose();
+ },
+ suffix: isSelected ? checkIcon : undefined,
+ children: label
+ }, slug);
+ })
+ }), !!customItem && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: customItem.icon,
+ iconPosition: "left",
+ isSelected: value === VIEWS.custom,
+ role: "menuitemradio",
+ onClick: () => {
+ onChange(VIEWS.custom);
+ onClose();
+ },
+ suffix: value === VIEWS.custom ? checkIcon : undefined,
+ children: customItem.label
+ })
+ })]
+ });
}
- }, ({
- onClose
- }) => {
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, Object.entries(menuItems).map(([slug, {
- label,
- icon
- }]) => {
- const isSelected = value === slug;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- key: slug,
- icon: icon,
- iconPosition: "left",
- isSelected: isSelected,
- role: "menuitemradio",
- onClick: () => {
- onChange(slug);
- onClose();
- },
- suffix: isSelected ? checkIcon : undefined
- }, label);
- })), !!customItem && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- icon: customItem.icon,
- iconPosition: "left",
- isSelected: value === VIEWS.custom,
- role: "menuitemradio",
- onClick: () => {
- onChange(VIEWS.custom);
- onClose();
- },
- suffix: value === VIEWS.custom ? checkIcon : undefined
- }, customItem.label)));
});
}
@@ -29489,32 +30560,43 @@ function SidesDropdown({
*/
+
/**
* Internal dependencies
*/
+
+const use_spacing_sizes_EMPTY_ARRAY = [];
+const compare = new Intl.Collator('und', {
+ numeric: true
+}).compare;
function useSpacingSizes() {
- const spacingSizes = [{
- name: 0,
- slug: '0',
- size: 0
- }];
- const [settingsSizes] = use_settings_useSettings('spacing.spacingSizes');
- if (settingsSizes) {
- spacingSizes.push(...settingsSizes);
- }
- if (spacingSizes.length > 8) {
- spacingSizes.unshift({
+ const [customSpacingSizes, themeSpacingSizes, defaultSpacingSizes, defaultSpacingSizesEnabled] = use_settings_useSettings('spacing.spacingSizes.custom', 'spacing.spacingSizes.theme', 'spacing.spacingSizes.default', 'spacing.defaultSpacingSizes');
+ const customSizes = customSpacingSizes !== null && customSpacingSizes !== void 0 ? customSpacingSizes : use_spacing_sizes_EMPTY_ARRAY;
+ const themeSizes = themeSpacingSizes !== null && themeSpacingSizes !== void 0 ? themeSpacingSizes : use_spacing_sizes_EMPTY_ARRAY;
+ const defaultSizes = defaultSpacingSizes && defaultSpacingSizesEnabled !== false ? defaultSpacingSizes : use_spacing_sizes_EMPTY_ARRAY;
+ return (0,external_wp_element_namespaceObject.useMemo)(() => {
+ const sizes = [{
+ name: (0,external_wp_i18n_namespaceObject.__)('None'),
+ slug: '0',
+ size: 0
+ }, ...customSizes, ...themeSizes, ...defaultSizes];
+
+ // Using numeric slugs opts-in to sorting by slug.
+ if (sizes.every(({
+ slug
+ }) => /^[0-9]/.test(slug))) {
+ sizes.sort((a, b) => compare(a.slug, b.slug));
+ }
+ return sizes.length > RANGE_CONTROL_MAX_SIZE ? [{
name: (0,external_wp_i18n_namespaceObject.__)('Default'),
slug: 'default',
size: undefined
- });
- }
- return spacingSizes;
+ }, ...sizes] : sizes;
+ }, [customSizes, themeSizes, defaultSizes]);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/spacing-sizes-control/index.js
-
/**
* WordPress dependencies
*/
@@ -29531,6 +30613,8 @@ function useSpacingSizes() {
+
+
function SpacingSizesControl({
inputProps,
label: labelProp,
@@ -29569,16 +30653,16 @@ function SpacingSizesControl({
};
const renderControls = () => {
if (view === VIEWS.axial) {
- return (0,external_React_.createElement)(AxialInputControls, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AxialInputControls, {
...inputControlProps
});
}
if (view === VIEWS.custom) {
- return (0,external_React_.createElement)(SeparatedInputControls, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SeparatedInputControls, {
...inputControlProps
});
}
- return (0,external_React_.createElement)(SingleInputControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SingleInputControl, {
side: view,
...inputControlProps,
showSideInLabel: showSideInLabel
@@ -29591,25 +30675,28 @@ function SpacingSizesControl({
const dropdownLabelText = (0,external_wp_i18n_namespaceObject.sprintf)(
// translators: %s: The current spacing property e.g. "Padding", "Margin".
(0,external_wp_i18n_namespaceObject._x)('%s options', 'Button label to reveal side configuration options'), labelProp);
- return (0,external_React_.createElement)("fieldset", {
- className: "spacing-sizes-control"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- className: "spacing-sizes-control__header"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
- as: "legend",
- className: "spacing-sizes-control__label"
- }, label), !hasOneSide && !hasOnlyAxialSides && (0,external_React_.createElement)(SidesDropdown, {
- label: dropdownLabelText,
- onChange: setView,
- sides: sides,
- value: view
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 0.5
- }, renderControls()));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
+ className: "spacing-sizes-control",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ className: "spacing-sizes-control__header",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
+ as: "legend",
+ className: "spacing-sizes-control__label",
+ children: label
+ }), !hasOneSide && !hasOnlyAxialSides && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidesDropdown, {
+ label: dropdownLabelText,
+ onChange: setView,
+ sides: sides,
+ value: view
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 0.5,
+ children: renderControls()
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/height-control/index.js
-
/**
* WordPress dependencies
*/
@@ -29621,6 +30708,8 @@ function SpacingSizesControl({
* Internal dependencies
*/
+
+
const RANGE_CONTROL_CUSTOM_SETTINGS = {
px: {
max: 1000,
@@ -29778,47 +30867,56 @@ function HeightControl({
onChange(100 + newUnit);
}
};
- return (0,external_React_.createElement)("fieldset", {
- className: "block-editor-height-control"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
- as: "legend"
- }, label), (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- isBlock: true
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- value: value,
- units: units,
- onChange: onChange,
- onUnitChange: handleUnitChange,
- min: 0,
- size: '__unstable-large',
- label: label,
- hideLabelFromVision: true
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- isBlock: true
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- marginX: 2,
- marginBottom: 0
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.RangeControl, {
- value: customRangeValue,
- min: 0,
- max: (_RANGE_CONTROL_CUSTOM = RANGE_CONTROL_CUSTOM_SETTINGS[selectedUnit]?.max) !== null && _RANGE_CONTROL_CUSTOM !== void 0 ? _RANGE_CONTROL_CUSTOM : 100,
- step: (_RANGE_CONTROL_CUSTOM2 = RANGE_CONTROL_CUSTOM_SETTINGS[selectedUnit]?.step) !== null && _RANGE_CONTROL_CUSTOM2 !== void 0 ? _RANGE_CONTROL_CUSTOM2 : 0.1,
- withInputField: false,
- onChange: handleSliderChange,
- __nextHasNoMarginBottom: true,
- label: label,
- hideLabelFromVision: true
- })))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
+ className: "block-editor-height-control",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
+ as: "legend",
+ children: label
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ isBlock: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ value: value,
+ units: units,
+ onChange: onChange,
+ onUnitChange: handleUnitChange,
+ min: 0,
+ size: "__unstable-large",
+ label: label,
+ hideLabelFromVision: true
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ isBlock: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ marginX: 2,
+ marginBottom: 0,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ value: customRangeValue,
+ min: 0,
+ max: (_RANGE_CONTROL_CUSTOM = RANGE_CONTROL_CUSTOM_SETTINGS[selectedUnit]?.max) !== null && _RANGE_CONTROL_CUSTOM !== void 0 ? _RANGE_CONTROL_CUSTOM : 100,
+ step: (_RANGE_CONTROL_CUSTOM2 = RANGE_CONTROL_CUSTOM_SETTINGS[selectedUnit]?.step) !== null && _RANGE_CONTROL_CUSTOM2 !== void 0 ? _RANGE_CONTROL_CUSTOM2 : 0.1,
+ withInputField: false,
+ onChange: handleSliderChange,
+ __nextHasNoMarginBottom: true,
+ label: label,
+ hideLabelFromVision: true
+ })
+ })
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/child-layout-control/index.js
-
/**
* WordPress dependencies
*/
+
+
+
function helpText(selfStretch, parentLayout) {
const {
orientation = 'horizontal'
@@ -29837,22 +30935,60 @@ function helpText(selfStretch, parentLayout) {
/**
* Form to edit the child layout value.
*
- * @param {Object} props Props.
- * @param {Object} props.value The child layout value.
- * @param {Function} props.onChange Function to update the child layout value.
- * @param {Object} props.parentLayout The parent layout value.
+ * @param {Object} props Props.
+ * @param {Object} props.value The child layout value.
+ * @param {Function} props.onChange Function to update the child layout value.
+ * @param {Object} props.parentLayout The parent layout value.
*
+ * @param {boolean} props.isShownByDefault
+ * @param {string} props.panelId
* @return {Element} child layout edit element.
*/
function ChildLayoutControl({
value: childLayout = {},
onChange,
- parentLayout
+ parentLayout,
+ isShownByDefault,
+ panelId
}) {
const {
selfStretch,
- flexSize
+ flexSize,
+ columnStart,
+ rowStart,
+ columnSpan,
+ rowSpan
} = childLayout;
+ const {
+ type: parentType,
+ default: {
+ type: defaultParentType = 'default'
+ } = {},
+ orientation = 'horizontal'
+ } = parentLayout !== null && parentLayout !== void 0 ? parentLayout : {};
+ const parentLayoutType = parentType || defaultParentType;
+ const hasFlexValue = () => !!selfStretch;
+ const flexResetLabel = orientation === 'horizontal' ? (0,external_wp_i18n_namespaceObject.__)('Width') : (0,external_wp_i18n_namespaceObject.__)('Height');
+ const resetFlex = () => {
+ onChange({
+ selfStretch: undefined,
+ flexSize: undefined
+ });
+ };
+ const hasStartValue = () => !!columnStart || !!rowStart;
+ const hasSpanValue = () => !!columnSpan || !!rowSpan;
+ const resetGridStarts = () => {
+ onChange({
+ columnStart: undefined,
+ rowStart: undefined
+ });
+ };
+ const resetGridSpans = () => {
+ onChange({
+ columnSpan: undefined,
+ rowSpan: undefined
+ });
+ };
(0,external_wp_element_namespaceObject.useEffect)(() => {
if (selfStretch === 'fixed' && !flexSize) {
onChange({
@@ -29861,43 +30997,142 @@ function ChildLayoutControl({
});
}
}, []);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
- __nextHasNoMarginBottom: true,
- size: '__unstable-large',
- label: childLayoutOrientation(parentLayout),
- value: selfStretch || 'fit',
- help: helpText(selfStretch, parentLayout),
- onChange: value => {
- const newFlexSize = value !== 'fixed' ? null : flexSize;
- onChange({
- ...childLayout,
- selfStretch: value,
- flexSize: newFlexSize
- });
- },
- isBlock: true
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- key: 'fit',
- value: 'fit',
- label: (0,external_wp_i18n_namespaceObject.__)('Fit')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- key: 'fill',
- value: 'fill',
- label: (0,external_wp_i18n_namespaceObject.__)('Fill')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- key: 'fixed',
- value: 'fixed',
- label: (0,external_wp_i18n_namespaceObject.__)('Fixed')
- })), selfStretch === 'fixed' && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- size: '__unstable-large',
- onChange: value => {
- onChange({
- ...childLayout,
- flexSize: value
- });
- },
- value: flexSize
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [parentLayoutType === 'flex' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ as: external_wp_components_namespaceObject.__experimentalToolsPanelItem,
+ spacing: 2,
+ hasValue: hasFlexValue,
+ label: flexResetLabel,
+ onDeselect: resetFlex,
+ isShownByDefault: isShownByDefault,
+ panelId: panelId,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
+ __nextHasNoMarginBottom: true,
+ size: "__unstable-large",
+ label: childLayoutOrientation(parentLayout),
+ value: selfStretch || 'fit',
+ help: helpText(selfStretch, parentLayout),
+ onChange: value => {
+ const newFlexSize = value !== 'fixed' ? null : flexSize;
+ onChange({
+ selfStretch: value,
+ flexSize: newFlexSize
+ });
+ },
+ isBlock: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "fit",
+ label: (0,external_wp_i18n_namespaceObject.__)('Fit')
+ }, "fit"), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "fill",
+ label: (0,external_wp_i18n_namespaceObject.__)('Fill')
+ }, "fill"), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "fixed",
+ label: (0,external_wp_i18n_namespaceObject.__)('Fixed')
+ }, "fixed")]
+ }), selfStretch === 'fixed' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ size: "__unstable-large",
+ onChange: value => {
+ onChange({
+ selfStretch,
+ flexSize: value
+ });
+ },
+ value: flexSize
+ })]
+ }), parentLayoutType === 'grid' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ as: external_wp_components_namespaceObject.__experimentalToolsPanelItem,
+ hasValue: hasSpanValue,
+ label: (0,external_wp_i18n_namespaceObject.__)('Grid span'),
+ onDeselect: resetGridSpans,
+ isShownByDefault: isShownByDefault,
+ panelId: panelId,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalInputControl, {
+ size: "__unstable-large",
+ label: (0,external_wp_i18n_namespaceObject.__)('Column span'),
+ type: "number",
+ onChange: value => {
+ onChange({
+ columnStart,
+ rowStart,
+ rowSpan,
+ columnSpan: value
+ });
+ },
+ value: columnSpan,
+ min: 1
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalInputControl, {
+ size: "__unstable-large",
+ label: (0,external_wp_i18n_namespaceObject.__)('Row span'),
+ type: "number",
+ onChange: value => {
+ onChange({
+ columnStart,
+ rowStart,
+ columnSpan,
+ rowSpan: value
+ });
+ },
+ value: rowSpan,
+ min: 1
+ })]
+ }), window.__experimentalEnableGridInteractivity &&
+ /*#__PURE__*/
+ // Use Flex with an explicit width on the FlexItem instead of HStack to
+ // work around an issue in webkit where inputs with a max attribute are
+ // sized incorrectly.
+ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ as: external_wp_components_namespaceObject.__experimentalToolsPanelItem,
+ hasValue: hasStartValue,
+ label: (0,external_wp_i18n_namespaceObject.__)('Grid placement'),
+ onDeselect: resetGridStarts,
+ isShownByDefault: false,
+ panelId: panelId,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ style: {
+ width: '50%'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalInputControl, {
+ size: "__unstable-large",
+ label: (0,external_wp_i18n_namespaceObject.__)('Column'),
+ type: "number",
+ onChange: value => {
+ onChange({
+ columnStart: value,
+ rowStart,
+ columnSpan,
+ rowSpan
+ });
+ },
+ value: columnStart,
+ min: 1,
+ max: parentLayout?.columnCount ? parentLayout.columnCount - (columnSpan !== null && columnSpan !== void 0 ? columnSpan : 1) + 1 : undefined
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ style: {
+ width: '50%'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalInputControl, {
+ size: "__unstable-large",
+ label: (0,external_wp_i18n_namespaceObject.__)('Row'),
+ type: "number",
+ onChange: value => {
+ onChange({
+ columnStart,
+ rowStart: value,
+ columnSpan,
+ rowSpan
+ });
+ },
+ value: rowStart,
+ min: 1,
+ max: parentLayout?.rowCount ? parentLayout.rowCount - (rowSpan !== null && rowSpan !== void 0 ? rowSpan : 1) + 1 : undefined
+ })
+ })]
+ })]
+ })]
+ });
}
function childLayoutOrientation(parentLayout) {
const {
@@ -29907,50 +31142,19 @@ function childLayoutOrientation(parentLayout) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/dimensions-tool/aspect-ratio-tool.js
-
/**
* WordPress dependencies
*/
-
/**
- * @typedef {import('@wordpress/components/build-types/select-control/types').SelectControlProps} SelectControlProps
+ * Internal dependencies
*/
+
/**
- * @type {SelectControlProps[]}
+ * @typedef {import('@wordpress/components/build-types/select-control/types').SelectControlProps} SelectControlProps
*/
-const DEFAULT_ASPECT_RATIO_OPTIONS = [{
- label: (0,external_wp_i18n_namespaceObject._x)('Original', 'Aspect ratio option for dimensions control'),
- value: 'auto'
-}, {
- label: (0,external_wp_i18n_namespaceObject._x)('Square - 1:1', 'Aspect ratio option for dimensions control'),
- value: '1'
-}, {
- label: (0,external_wp_i18n_namespaceObject._x)('Standard - 4:3', 'Aspect ratio option for dimensions control'),
- value: '4/3'
-}, {
- label: (0,external_wp_i18n_namespaceObject._x)('Portrait - 3:4', 'Aspect ratio option for dimensions control'),
- value: '3/4'
-}, {
- label: (0,external_wp_i18n_namespaceObject._x)('Classic - 3:2', 'Aspect ratio option for dimensions control'),
- value: '3/2'
-}, {
- label: (0,external_wp_i18n_namespaceObject._x)('Classic Portrait - 2:3', 'Aspect ratio option for dimensions control'),
- value: '2/3'
-}, {
- label: (0,external_wp_i18n_namespaceObject._x)('Wide - 16:9', 'Aspect ratio option for dimensions control'),
- value: '16/9'
-}, {
- label: (0,external_wp_i18n_namespaceObject._x)('Tall - 9:16', 'Aspect ratio option for dimensions control'),
- value: '9/16'
-}, {
- label: (0,external_wp_i18n_namespaceObject._x)('Custom', 'Aspect ratio option for dimensions control'),
- value: 'custom',
- disabled: true,
- hidden: true
-}];
/**
* @callback AspectRatioToolPropsOnChange
@@ -29972,31 +31176,55 @@ function AspectRatioTool({
panelId,
value,
onChange = () => {},
- options = DEFAULT_ASPECT_RATIO_OPTIONS,
- defaultValue = DEFAULT_ASPECT_RATIO_OPTIONS[0].value,
+ options,
+ defaultValue = 'auto',
hasValue,
isShownByDefault = true
}) {
// Match the CSS default so if the value is used directly in CSS it will look correct in the control.
const displayValue = value !== null && value !== void 0 ? value : 'auto';
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ const [defaultRatios, themeRatios, showDefaultRatios] = use_settings_useSettings('dimensions.aspectRatios.default', 'dimensions.aspectRatios.theme', 'dimensions.defaultAspectRatios');
+ const themeOptions = themeRatios?.map(({
+ name,
+ ratio
+ }) => ({
+ label: name,
+ value: ratio
+ }));
+ const defaultOptions = defaultRatios?.map(({
+ name,
+ ratio
+ }) => ({
+ label: name,
+ value: ratio
+ }));
+ const aspectRatioOptions = [{
+ label: (0,external_wp_i18n_namespaceObject._x)('Original', 'Aspect ratio option for dimensions control'),
+ value: 'auto'
+ }, ...(showDefaultRatios ? defaultOptions : []), ...(themeOptions ? themeOptions : []), {
+ label: (0,external_wp_i18n_namespaceObject._x)('Custom', 'Aspect ratio option for dimensions control'),
+ value: 'custom',
+ disabled: true,
+ hidden: true
+ }];
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
hasValue: hasValue ? hasValue : () => displayValue !== defaultValue,
label: (0,external_wp_i18n_namespaceObject.__)('Aspect ratio'),
onDeselect: () => onChange(undefined),
isShownByDefault: isShownByDefault,
- panelId: panelId
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.SelectControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Aspect ratio'),
- value: displayValue,
- options: options,
- onChange: onChange,
- size: '__unstable-large',
- __nextHasNoMarginBottom: true
- }));
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Aspect ratio'),
+ value: displayValue,
+ options: options !== null && options !== void 0 ? options : aspectRatioOptions,
+ onChange: onChange,
+ size: "__unstable-large",
+ __nextHasNoMarginBottom: true
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/global-styles/dimensions-panel.js
-
/**
* External dependencies
*/
@@ -30020,6 +31248,8 @@ function AspectRatioTool({
+
+
const AXIAL_SIDES = ['horizontal', 'vertical'];
function useHasDimensionsPanel(settings) {
const hasContentSize = useHasContentSize(settings);
@@ -30062,18 +31292,15 @@ function useHasChildLayout(settings) {
} = {},
allowSizingOnChildren = false
} = (_settings$parentLayou = settings?.parentLayout) !== null && _settings$parentLayou !== void 0 ? _settings$parentLayou : {};
- const support = (defaultParentLayoutType === 'flex' || parentLayoutType === 'flex') && allowSizingOnChildren;
+ const support = (defaultParentLayoutType === 'flex' || parentLayoutType === 'flex' || defaultParentLayoutType === 'grid' || parentLayoutType === 'grid') && allowSizingOnChildren;
return !!settings?.layout && support;
}
function useHasSpacingPresets(settings) {
- var _ref, _ref2;
const {
- custom,
- theme,
- default: defaultPresets
- } = settings?.spacing?.spacingSizes || {};
- const presets = (_ref = (_ref2 = custom !== null && custom !== void 0 ? custom : theme) !== null && _ref2 !== void 0 ? _ref2 : defaultPresets) !== null && _ref !== void 0 ? _ref : [];
- return presets.length > 0;
+ defaultSpacingSizes,
+ spacingSizes
+ } = settings?.spacing || {};
+ return defaultSpacingSizes !== false && spacingSizes?.default?.length > 0 || spacingSizes?.theme?.length > 0 || spacingSizes?.custom?.length > 0;
}
function filterValuesBySides(values, sides) {
// If no custom side configuration, all sides are opted into by default.
@@ -30134,16 +31361,18 @@ function DimensionsToolsPanel({
panelId,
children
}) {
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
const resetAll = () => {
const updatedValue = resetAllFilter(value);
onChange(updatedValue);
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
label: (0,external_wp_i18n_namespaceObject.__)('Dimensions'),
resetAll: resetAll,
panelId: panelId,
- dropdownMenuProps: TOOLSPANEL_DROPDOWNMENU_PROPS
- }, children);
+ dropdownMenuProps: dropdownMenuProps,
+ children: children
+ });
}
const dimensions_panel_DEFAULT_CONTROLS = {
contentSize: true,
@@ -30168,7 +31397,7 @@ function DimensionsPanel({
// in global styles but not in block inspector.
includeLayoutControls = false
}) {
- var _settings$parentLayou2, _defaultControls$cont, _defaultControls$wide, _defaultControls$padd, _defaultControls$marg, _defaultControls$bloc, _defaultControls$minH, _defaultControls$aspe, _defaultControls$chil;
+ var _defaultControls$cont, _defaultControls$wide, _defaultControls$padd, _defaultControls$marg, _defaultControls$bloc, _defaultControls$chil, _defaultControls$minH, _defaultControls$aspe;
const {
dimensions,
spacing
@@ -30197,6 +31426,10 @@ function DimensionsPanel({
availableUnits: settings?.spacing?.units || ['%', 'px', 'em', 'rem', 'vw']
});
+ //Minimum Margin Value
+ const minimumMargin = -Infinity;
+ const [minMarginValue, setMinMarginValue] = (0,external_wp_element_namespaceObject.useState)(minimumMargin);
+
// Content Size
const showContentSizeControl = useHasContentSize(settings) && includeLayoutControls;
const contentSizeValue = decodeValue(inheritedValue?.layout?.contentSize);
@@ -30295,26 +31528,14 @@ function DimensionsPanel({
// Child Layout
const showChildLayoutControl = useHasChildLayout(settings);
const childLayout = inheritedValue?.layout;
- const {
- orientation = 'horizontal'
- } = (_settings$parentLayou2 = settings?.parentLayout) !== null && _settings$parentLayou2 !== void 0 ? _settings$parentLayou2 : {};
- const childLayoutOrientationLabel = orientation === 'horizontal' ? (0,external_wp_i18n_namespaceObject.__)('Width') : (0,external_wp_i18n_namespaceObject.__)('Height');
const setChildLayout = newChildLayout => {
onChange({
...value,
layout: {
- ...value?.layout,
...newChildLayout
}
});
};
- const resetChildLayoutValue = () => {
- setChildLayout({
- selfStretch: undefined,
- flexSize: undefined
- });
- };
- const hasChildLayoutValue = () => !!value?.layout;
const resetAllFilter = (0,external_wp_element_namespaceObject.useCallback)(previousValue => {
return {
...previousValue,
@@ -30323,7 +31544,11 @@ function DimensionsPanel({
contentSize: undefined,
wideSize: undefined,
selfStretch: undefined,
- flexSize: undefined
+ flexSize: undefined,
+ columnStart: undefined,
+ rowStart: undefined,
+ columnSpan: undefined,
+ rowSpan: undefined
}),
spacing: {
...previousValue?.spacing,
@@ -30339,492 +31564,305 @@ function DimensionsPanel({
};
}, []);
const onMouseLeaveControls = () => onVisualize(false);
- return (0,external_React_.createElement)(Wrapper, {
+ const inputProps = {
+ min: minMarginValue,
+ onDragStart: () => {
+ //Reset to 0 in case the value was negative.
+ setMinMarginValue(0);
+ },
+ onDragEnd: () => {
+ setMinMarginValue(minimumMargin);
+ }
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Wrapper, {
resetAllFilter: resetAllFilter,
value: value,
onChange: onChange,
- panelId: panelId
- }, (showContentSizeControl || showWideSizeControl) && (0,external_React_.createElement)("span", {
- className: "span-columns"
- }, (0,external_wp_i18n_namespaceObject.__)('Set the width of the main content area.')), showContentSizeControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- className: "single-column",
- label: (0,external_wp_i18n_namespaceObject.__)('Content size'),
- hasValue: hasUserSetContentSizeValue,
- onDeselect: resetContentSizeValue,
- isShownByDefault: (_defaultControls$cont = defaultControls.contentSize) !== null && _defaultControls$cont !== void 0 ? _defaultControls$cont : dimensions_panel_DEFAULT_CONTROLS.contentSize,
- panelId: panelId
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- alignment: "flex-end",
- justify: "flex-start"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Content'),
- labelPosition: "top",
- __unstableInputWidth: "80px",
- value: contentSizeValue || '',
- onChange: nextContentSize => {
- setContentSizeValue(nextContentSize);
- },
- units: units
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalView, null, (0,external_React_.createElement)(build_module_icon, {
- icon: position_center
- })))), showWideSizeControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- className: "single-column",
- label: (0,external_wp_i18n_namespaceObject.__)('Wide size'),
- hasValue: hasUserSetWideSizeValue,
- onDeselect: resetWideSizeValue,
- isShownByDefault: (_defaultControls$wide = defaultControls.wideSize) !== null && _defaultControls$wide !== void 0 ? _defaultControls$wide : dimensions_panel_DEFAULT_CONTROLS.wideSize,
- panelId: panelId
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- alignment: "flex-end",
- justify: "flex-start"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Wide'),
- labelPosition: "top",
- __unstableInputWidth: "80px",
- value: wideSizeValue || '',
- onChange: nextWideSize => {
- setWideSizeValue(nextWideSize);
- },
- units: units
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalView, null, (0,external_React_.createElement)(build_module_icon, {
- icon: stretch_wide
- })))), showPaddingControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- hasValue: hasPaddingValue,
- label: (0,external_wp_i18n_namespaceObject.__)('Padding'),
- onDeselect: resetPaddingValue,
- isShownByDefault: (_defaultControls$padd = defaultControls.padding) !== null && _defaultControls$padd !== void 0 ? _defaultControls$padd : dimensions_panel_DEFAULT_CONTROLS.padding,
- className: classnames_default()({
- 'tools-panel-item-spacing': showSpacingPresetsControl
- }),
- panelId: panelId
- }, !showSpacingPresetsControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalBoxControl, {
- values: paddingValues,
- onChange: setPaddingValues,
- label: (0,external_wp_i18n_namespaceObject.__)('Padding'),
- sides: paddingSides,
- units: units,
- allowReset: false,
- splitOnAxis: isAxialPadding,
- onMouseOver: onMouseOverPadding,
- onMouseOut: onMouseLeaveControls
- }), showSpacingPresetsControl && (0,external_React_.createElement)(SpacingSizesControl, {
- values: paddingValues,
- onChange: setPaddingValues,
- label: (0,external_wp_i18n_namespaceObject.__)('Padding'),
- sides: paddingSides,
- units: units,
- allowReset: false,
- onMouseOver: onMouseOverPadding,
- onMouseOut: onMouseLeaveControls
- })), showMarginControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- hasValue: hasMarginValue,
- label: (0,external_wp_i18n_namespaceObject.__)('Margin'),
- onDeselect: resetMarginValue,
- isShownByDefault: (_defaultControls$marg = defaultControls.margin) !== null && _defaultControls$marg !== void 0 ? _defaultControls$marg : dimensions_panel_DEFAULT_CONTROLS.margin,
- className: classnames_default()({
- 'tools-panel-item-spacing': showSpacingPresetsControl
- }),
- panelId: panelId
- }, !showSpacingPresetsControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalBoxControl, {
- values: marginValues,
- onChange: setMarginValues,
- label: (0,external_wp_i18n_namespaceObject.__)('Margin'),
- sides: marginSides,
- units: units,
- allowReset: false,
- splitOnAxis: isAxialMargin,
- onMouseOver: onMouseOverMargin,
- onMouseOut: onMouseLeaveControls
- }), showSpacingPresetsControl && (0,external_React_.createElement)(SpacingSizesControl, {
- values: marginValues,
- onChange: setMarginValues,
- label: (0,external_wp_i18n_namespaceObject.__)('Margin'),
- sides: marginSides,
- units: units,
- allowReset: false,
- onMouseOver: onMouseOverMargin,
- onMouseOut: onMouseLeaveControls
- })), showGapControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- hasValue: hasGapValue,
- label: (0,external_wp_i18n_namespaceObject.__)('Block spacing'),
- onDeselect: resetGapValue,
- isShownByDefault: (_defaultControls$bloc = defaultControls.blockGap) !== null && _defaultControls$bloc !== void 0 ? _defaultControls$bloc : dimensions_panel_DEFAULT_CONTROLS.blockGap,
- className: classnames_default()({
- 'tools-panel-item-spacing': showSpacingPresetsControl
- }),
- panelId: panelId
- }, !showSpacingPresetsControl && (isAxialGap ? (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalBoxControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Block spacing'),
- min: 0,
- onChange: setGapValues,
- units: units,
- sides: gapSides,
- values: gapValues,
- allowReset: false,
- splitOnAxis: isAxialGap
- }) : (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Block spacing'),
- __unstableInputWidth: "80px",
- min: 0,
- onChange: setGapValue,
- units: units,
- value: gapValue
- })), showSpacingPresetsControl && (0,external_React_.createElement)(SpacingSizesControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Block spacing'),
- min: 0,
- onChange: setGapValues,
- showSideInLabel: false,
- sides: isAxialGap ? gapSides : ['top'] // Use 'top' as the shorthand property in non-axial configurations.
- ,
- values: gapValues,
- allowReset: false
- })), showMinHeightControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- hasValue: hasMinHeightValue,
- label: (0,external_wp_i18n_namespaceObject.__)('Minimum height'),
- onDeselect: resetMinHeightValue,
- isShownByDefault: (_defaultControls$minH = defaultControls.minHeight) !== null && _defaultControls$minH !== void 0 ? _defaultControls$minH : dimensions_panel_DEFAULT_CONTROLS.minHeight,
- panelId: panelId
- }, (0,external_React_.createElement)(HeightControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Minimum height'),
- value: minHeightValue,
- onChange: setMinHeightValue
- })), showAspectRatioControl && (0,external_React_.createElement)(AspectRatioTool, {
- hasValue: hasAspectRatioValue,
- value: aspectRatioValue,
- onChange: setAspectRatioValue,
panelId: panelId,
- isShownByDefault: (_defaultControls$aspe = defaultControls.aspectRatio) !== null && _defaultControls$aspe !== void 0 ? _defaultControls$aspe : dimensions_panel_DEFAULT_CONTROLS.aspectRatio
- }), showChildLayoutControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- as: external_wp_components_namespaceObject.__experimentalToolsPanelItem,
- spacing: 2,
- hasValue: hasChildLayoutValue,
- label: childLayoutOrientationLabel,
- onDeselect: resetChildLayoutValue,
- isShownByDefault: (_defaultControls$chil = defaultControls.childLayout) !== null && _defaultControls$chil !== void 0 ? _defaultControls$chil : dimensions_panel_DEFAULT_CONTROLS.childLayout,
- panelId: panelId
- }, (0,external_React_.createElement)(ChildLayoutControl, {
- value: childLayout,
- onChange: setChildLayout,
- parentLayout: settings?.parentLayout
- })));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-popover/use-popover-scroll.js
-/**
- * WordPress dependencies
- */
-
-
-/**
- * Allow scrolling "through" popovers over the canvas. This is only called for
- * as long as the pointer is over a popover. Do not use React events because it
- * will bubble through portals.
- *
- * @param {Object} scrollableRef
- */
-function usePopoverScroll(scrollableRef) {
- return (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
- if (!scrollableRef) {
- return;
- }
- function onWheel(event) {
- const {
- deltaX,
- deltaY
- } = event;
- scrollableRef.current.scrollBy(deltaX, deltaY);
- }
- // Tell the browser that we do not call event.preventDefault
- // See https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#improving_scrolling_performance_with_passive_listeners
- const options = {
- passive: true
- };
- node.addEventListener('wheel', onWheel, options);
- return () => {
- node.removeEventListener('wheel', onWheel, options);
- };
- }, [scrollableRef]);
+ children: [(showContentSizeControl || showWideSizeControl) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "span-columns",
+ children: (0,external_wp_i18n_namespaceObject.__)('Set the width of the main content area.')
+ }), showContentSizeControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ className: "single-column",
+ label: (0,external_wp_i18n_namespaceObject.__)('Content size'),
+ hasValue: hasUserSetContentSizeValue,
+ onDeselect: resetContentSizeValue,
+ isShownByDefault: (_defaultControls$cont = defaultControls.contentSize) !== null && _defaultControls$cont !== void 0 ? _defaultControls$cont : dimensions_panel_DEFAULT_CONTROLS.contentSize,
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ alignment: "flex-end",
+ justify: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Content'),
+ labelPosition: "top",
+ __unstableInputWidth: "80px",
+ value: contentSizeValue || '',
+ onChange: nextContentSize => {
+ setContentSizeValue(nextContentSize);
+ },
+ units: units
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalView, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: position_center
+ })
+ })]
+ })
+ }), showWideSizeControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ className: "single-column",
+ label: (0,external_wp_i18n_namespaceObject.__)('Wide size'),
+ hasValue: hasUserSetWideSizeValue,
+ onDeselect: resetWideSizeValue,
+ isShownByDefault: (_defaultControls$wide = defaultControls.wideSize) !== null && _defaultControls$wide !== void 0 ? _defaultControls$wide : dimensions_panel_DEFAULT_CONTROLS.wideSize,
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ alignment: "flex-end",
+ justify: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Wide'),
+ labelPosition: "top",
+ __unstableInputWidth: "80px",
+ value: wideSizeValue || '',
+ onChange: nextWideSize => {
+ setWideSizeValue(nextWideSize);
+ },
+ units: units
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalView, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: stretch_wide
+ })
+ })]
+ })
+ }), showPaddingControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ hasValue: hasPaddingValue,
+ label: (0,external_wp_i18n_namespaceObject.__)('Padding'),
+ onDeselect: resetPaddingValue,
+ isShownByDefault: (_defaultControls$padd = defaultControls.padding) !== null && _defaultControls$padd !== void 0 ? _defaultControls$padd : dimensions_panel_DEFAULT_CONTROLS.padding,
+ className: dist_clsx({
+ 'tools-panel-item-spacing': showSpacingPresetsControl
+ }),
+ panelId: panelId,
+ children: [!showSpacingPresetsControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalBoxControl, {
+ values: paddingValues,
+ onChange: setPaddingValues,
+ label: (0,external_wp_i18n_namespaceObject.__)('Padding'),
+ sides: paddingSides,
+ units: units,
+ allowReset: false,
+ splitOnAxis: isAxialPadding,
+ onMouseOver: onMouseOverPadding,
+ onMouseOut: onMouseLeaveControls
+ }), showSpacingPresetsControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpacingSizesControl, {
+ values: paddingValues,
+ onChange: setPaddingValues,
+ label: (0,external_wp_i18n_namespaceObject.__)('Padding'),
+ sides: paddingSides,
+ units: units,
+ allowReset: false,
+ onMouseOver: onMouseOverPadding,
+ onMouseOut: onMouseLeaveControls
+ })]
+ }), showMarginControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ hasValue: hasMarginValue,
+ label: (0,external_wp_i18n_namespaceObject.__)('Margin'),
+ onDeselect: resetMarginValue,
+ isShownByDefault: (_defaultControls$marg = defaultControls.margin) !== null && _defaultControls$marg !== void 0 ? _defaultControls$marg : dimensions_panel_DEFAULT_CONTROLS.margin,
+ className: dist_clsx({
+ 'tools-panel-item-spacing': showSpacingPresetsControl
+ }),
+ panelId: panelId,
+ children: [!showSpacingPresetsControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalBoxControl, {
+ values: marginValues,
+ onChange: setMarginValues,
+ inputProps: inputProps,
+ label: (0,external_wp_i18n_namespaceObject.__)('Margin'),
+ sides: marginSides,
+ units: units,
+ allowReset: false,
+ splitOnAxis: isAxialMargin,
+ onMouseOver: onMouseOverMargin,
+ onMouseOut: onMouseLeaveControls
+ }), showSpacingPresetsControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpacingSizesControl, {
+ values: marginValues,
+ onChange: setMarginValues,
+ minimumCustomValue: -Infinity,
+ label: (0,external_wp_i18n_namespaceObject.__)('Margin'),
+ sides: marginSides,
+ units: units,
+ allowReset: false,
+ onMouseOver: onMouseOverMargin,
+ onMouseOut: onMouseLeaveControls
+ })]
+ }), showGapControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ hasValue: hasGapValue,
+ label: (0,external_wp_i18n_namespaceObject.__)('Block spacing'),
+ onDeselect: resetGapValue,
+ isShownByDefault: (_defaultControls$bloc = defaultControls.blockGap) !== null && _defaultControls$bloc !== void 0 ? _defaultControls$bloc : dimensions_panel_DEFAULT_CONTROLS.blockGap,
+ className: dist_clsx({
+ 'tools-panel-item-spacing': showSpacingPresetsControl
+ }),
+ panelId: panelId,
+ children: [!showSpacingPresetsControl && (isAxialGap ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalBoxControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Block spacing'),
+ min: 0,
+ onChange: setGapValues,
+ units: units,
+ sides: gapSides,
+ values: gapValues,
+ allowReset: false,
+ splitOnAxis: isAxialGap
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Block spacing'),
+ __unstableInputWidth: "80px",
+ min: 0,
+ onChange: setGapValue,
+ units: units,
+ value: gapValue
+ })), showSpacingPresetsControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpacingSizesControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Block spacing'),
+ min: 0,
+ onChange: setGapValues,
+ showSideInLabel: false,
+ sides: isAxialGap ? gapSides : ['top'] // Use 'top' as the shorthand property in non-axial configurations.
+ ,
+ values: gapValues,
+ allowReset: false
+ })]
+ }), showChildLayoutControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ChildLayoutControl, {
+ value: childLayout,
+ onChange: setChildLayout,
+ parentLayout: settings?.parentLayout,
+ panelId: panelId,
+ isShownByDefault: (_defaultControls$chil = defaultControls.childLayout) !== null && _defaultControls$chil !== void 0 ? _defaultControls$chil : dimensions_panel_DEFAULT_CONTROLS.childLayout
+ }), showMinHeightControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ hasValue: hasMinHeightValue,
+ label: (0,external_wp_i18n_namespaceObject.__)('Minimum height'),
+ onDeselect: resetMinHeightValue,
+ isShownByDefault: (_defaultControls$minH = defaultControls.minHeight) !== null && _defaultControls$minH !== void 0 ? _defaultControls$minH : dimensions_panel_DEFAULT_CONTROLS.minHeight,
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HeightControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Minimum height'),
+ value: minHeightValue,
+ onChange: setMinHeightValue
+ })
+ }), showAspectRatioControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AspectRatioTool, {
+ hasValue: hasAspectRatioValue,
+ value: aspectRatioValue,
+ onChange: setAspectRatioValue,
+ panelId: panelId,
+ isShownByDefault: (_defaultControls$aspe = defaultControls.aspectRatio) !== null && _defaultControls$aspe !== void 0 ? _defaultControls$aspe : dimensions_panel_DEFAULT_CONTROLS.aspectRatio
+ })]
+ });
}
-/* harmony default export */ const use_popover_scroll = (usePopoverScroll);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-popover/index.js
-
-/**
- * External dependencies
- */
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/spacing-visualizer.js
/**
* WordPress dependencies
*/
-
/**
* Internal dependencies
*/
-const MAX_POPOVER_RECOMPUTE_COUNTER = Number.MAX_SAFE_INTEGER;
-function BlockPopover({
- clientId,
- bottomClientId,
- children,
- __unstableRefreshSize,
- __unstableCoverTarget = false,
- __unstablePopoverSlot,
- __unstableContentRef,
- shift = true,
- ...props
-}, ref) {
- const selectedElement = useBlockElement(clientId);
- const lastSelectedElement = useBlockElement(bottomClientId !== null && bottomClientId !== void 0 ? bottomClientId : clientId);
- const mergedRefs = (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, use_popover_scroll(__unstableContentRef)]);
- const [popoverDimensionsRecomputeCounter, forceRecomputePopoverDimensions] = (0,external_wp_element_namespaceObject.useReducer)(
- // Module is there to make sure that the counter doesn't overflow.
- s => (s + 1) % MAX_POPOVER_RECOMPUTE_COUNTER, 0);
- // When blocks are moved up/down, they are animated to their new position by
- // updating the `transform` property manually (i.e. without using CSS
- // transitions or animations). The animation, which can also scroll the block
- // editor, can sometimes cause the position of the Popover to get out of sync.
- // A MutationObserver is therefore used to make sure that changes to the
- // selectedElement's attribute (i.e. `transform`) can be tracked and used to
- // trigger the Popover to rerender.
- (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
- if (!selectedElement) {
- return;
- }
- const observer = new window.MutationObserver(forceRecomputePopoverDimensions);
- observer.observe(selectedElement, {
- attributes: true
- });
- return () => {
- observer.disconnect();
- };
- }, [selectedElement]);
- const style = (0,external_wp_element_namespaceObject.useMemo)(() => {
- if (
- // popoverDimensionsRecomputeCounter is by definition always equal or greater
- // than 0. This check is only there to satisfy the correctness of the
- // exhaustive-deps rule for the `useMemo` hook.
- popoverDimensionsRecomputeCounter < 0 || !selectedElement || lastSelectedElement !== selectedElement) {
- return {};
- }
- return {
- position: 'absolute',
- width: selectedElement.offsetWidth,
- height: selectedElement.offsetHeight
- };
- }, [selectedElement, lastSelectedElement, __unstableRefreshSize, popoverDimensionsRecomputeCounter]);
- const popoverAnchor = (0,external_wp_element_namespaceObject.useMemo)(() => {
- if (
- // popoverDimensionsRecomputeCounter is by definition always equal or greater
- // than 0. This check is only there to satisfy the correctness of the
- // exhaustive-deps rule for the `useMemo` hook.
- popoverDimensionsRecomputeCounter < 0 || !selectedElement || bottomClientId && !lastSelectedElement) {
- return undefined;
- }
- return {
- getBoundingClientRect() {
- var _lastSelectedBCR$left, _lastSelectedBCR$top, _lastSelectedBCR$righ, _lastSelectedBCR$bott;
- const selectedBCR = selectedElement.getBoundingClientRect();
- const lastSelectedBCR = lastSelectedElement?.getBoundingClientRect();
-
- // Get the biggest rectangle that encompasses completely the currently
- // selected element and the last selected element:
- // - for top/left coordinates, use the smaller numbers
- // - for the bottom/right coordinates, use the largest numbers
- const left = Math.min(selectedBCR.left, (_lastSelectedBCR$left = lastSelectedBCR?.left) !== null && _lastSelectedBCR$left !== void 0 ? _lastSelectedBCR$left : Infinity);
- const top = Math.min(selectedBCR.top, (_lastSelectedBCR$top = lastSelectedBCR?.top) !== null && _lastSelectedBCR$top !== void 0 ? _lastSelectedBCR$top : Infinity);
- const right = Math.max(selectedBCR.right, (_lastSelectedBCR$righ = lastSelectedBCR.right) !== null && _lastSelectedBCR$righ !== void 0 ? _lastSelectedBCR$righ : -Infinity);
- const bottom = Math.max(selectedBCR.bottom, (_lastSelectedBCR$bott = lastSelectedBCR.bottom) !== null && _lastSelectedBCR$bott !== void 0 ? _lastSelectedBCR$bott : -Infinity);
- const width = right - left;
- const height = bottom - top;
- return new window.DOMRect(left, top, width, height);
- },
- contextElement: selectedElement
- };
- }, [bottomClientId, lastSelectedElement, selectedElement, popoverDimensionsRecomputeCounter]);
- if (!selectedElement || bottomClientId && !lastSelectedElement) {
- return null;
- }
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Popover, {
- ref: mergedRefs,
- animate: false,
- focusOnMount: false,
- anchor: popoverAnchor
- // Render in the old slot if needed for backward compatibility,
- // otherwise render in place (not in the default popover slot).
- ,
- __unstableSlotName: __unstablePopoverSlot,
- inline: !__unstablePopoverSlot,
- placement: "top-start",
- resize: false,
- flip: false,
- shift: shift,
- ...props,
- className: classnames_default()('block-editor-block-popover', props.className),
- variant: "unstyled"
- }, __unstableCoverTarget && (0,external_React_.createElement)("div", {
- style: style
- }, children), !__unstableCoverTarget && children);
-}
-/* harmony default export */ const block_popover = ((0,external_wp_element_namespaceObject.forwardRef)(BlockPopover));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/margin.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-
-function getComputedCSS(element, property) {
- return element.ownerDocument.defaultView.getComputedStyle(element).getPropertyValue(property);
-}
-function MarginVisualizer({
+function SpacingVisualizer({
clientId,
- attributes,
+ value,
+ computeStyle,
forceShow
}) {
const blockElement = useBlockElement(clientId);
- const [style, setStyle] = (0,external_wp_element_namespaceObject.useState)();
- const margin = attributes?.style?.spacing?.margin;
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!blockElement || null === blockElement.ownerDocument.defaultView) {
+ const [style, updateStyle] = (0,external_wp_element_namespaceObject.useReducer)(() => computeStyle(blockElement));
+ (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
+ if (!blockElement) {
return;
}
- const top = getComputedCSS(blockElement, 'margin-top');
- const right = getComputedCSS(blockElement, 'margin-right');
- const bottom = getComputedCSS(blockElement, 'margin-bottom');
- const left = getComputedCSS(blockElement, 'margin-left');
- setStyle({
- borderTopWidth: top,
- borderRightWidth: right,
- borderBottomWidth: bottom,
- borderLeftWidth: left,
- top: top ? `-${top}` : 0,
- right: right ? `-${right}` : 0,
- bottom: bottom ? `-${bottom}` : 0,
- left: left ? `-${left}` : 0
- });
- }, [blockElement, margin]);
+ // It's not sufficient to read the computed spacing value when value.spacing changes as
+ // useEffect may run before the browser recomputes CSS. We therefore combine
+ // useLayoutEffect and two rAF calls to ensure that we read the spacing after the current
+ // paint but before the next paint.
+ // See https://github.com/WordPress/gutenberg/pull/59227.
+ window.requestAnimationFrame(() => window.requestAnimationFrame(updateStyle));
+ }, [blockElement, value]);
+ const previousValue = (0,external_wp_element_namespaceObject.useRef)(value);
const [isActive, setIsActive] = (0,external_wp_element_namespaceObject.useState)(false);
- const valueRef = (0,external_wp_element_namespaceObject.useRef)(margin);
- const timeoutRef = (0,external_wp_element_namespaceObject.useRef)();
- const clearTimer = () => {
- if (timeoutRef.current) {
- window.clearTimeout(timeoutRef.current);
- }
- };
(0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!external_wp_isShallowEqual_default()(margin, valueRef.current) && !forceShow) {
- setIsActive(true);
- valueRef.current = margin;
- timeoutRef.current = setTimeout(() => {
- setIsActive(false);
- }, 400);
+ if (external_wp_isShallowEqual_default()(value, previousValue.current) || forceShow) {
+ return;
}
+ setIsActive(true);
+ previousValue.current = value;
+ const timeout = setTimeout(() => {
+ setIsActive(false);
+ }, 400);
return () => {
setIsActive(false);
- clearTimer();
+ clearTimeout(timeout);
};
- }, [margin, forceShow]);
+ }, [value, forceShow]);
if (!isActive && !forceShow) {
return null;
}
- return (0,external_React_.createElement)(block_popover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(cover, {
clientId: clientId,
- __unstableCoverTarget: true,
- __unstableRefreshSize: margin,
__unstablePopoverSlot: "block-toolbar",
- shift: false
- }, (0,external_React_.createElement)("div", {
- className: "block-editor__padding-visualizer",
- style: style
- }));
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor__spacing-visualizer",
+ style: style
+ })
+ });
}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/padding.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-
-function padding_getComputedCSS(element, property) {
+function spacing_visualizer_getComputedCSS(element, property) {
return element.ownerDocument.defaultView.getComputedStyle(element).getPropertyValue(property);
}
+function MarginVisualizer({
+ clientId,
+ value,
+ forceShow
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpacingVisualizer, {
+ clientId: clientId,
+ value: value?.spacing?.margin,
+ computeStyle: blockElement => {
+ const top = spacing_visualizer_getComputedCSS(blockElement, 'margin-top');
+ const right = spacing_visualizer_getComputedCSS(blockElement, 'margin-right');
+ const bottom = spacing_visualizer_getComputedCSS(blockElement, 'margin-bottom');
+ const left = spacing_visualizer_getComputedCSS(blockElement, 'margin-left');
+ return {
+ borderTopWidth: top,
+ borderRightWidth: right,
+ borderBottomWidth: bottom,
+ borderLeftWidth: left,
+ top: top ? `-${top}` : 0,
+ right: right ? `-${right}` : 0,
+ bottom: bottom ? `-${bottom}` : 0,
+ left: left ? `-${left}` : 0
+ };
+ },
+ forceShow: forceShow
+ });
+}
function PaddingVisualizer({
clientId,
value,
forceShow
}) {
- const blockElement = useBlockElement(clientId);
- const [style, setStyle] = (0,external_wp_element_namespaceObject.useState)();
- const padding = value?.spacing?.padding;
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!blockElement || null === blockElement.ownerDocument.defaultView) {
- return;
- }
- setStyle({
- borderTopWidth: padding_getComputedCSS(blockElement, 'padding-top'),
- borderRightWidth: padding_getComputedCSS(blockElement, 'padding-right'),
- borderBottomWidth: padding_getComputedCSS(blockElement, 'padding-bottom'),
- borderLeftWidth: padding_getComputedCSS(blockElement, 'padding-left')
- });
- }, [blockElement, padding]);
- const [isActive, setIsActive] = (0,external_wp_element_namespaceObject.useState)(false);
- const valueRef = (0,external_wp_element_namespaceObject.useRef)(padding);
- const timeoutRef = (0,external_wp_element_namespaceObject.useRef)();
- const clearTimer = () => {
- if (timeoutRef.current) {
- window.clearTimeout(timeoutRef.current);
- }
- };
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!external_wp_isShallowEqual_default()(padding, valueRef.current) && !forceShow) {
- setIsActive(true);
- valueRef.current = padding;
- timeoutRef.current = setTimeout(() => {
- setIsActive(false);
- }, 400);
- }
- return () => {
- setIsActive(false);
- clearTimer();
- };
- }, [padding, forceShow]);
- if (!isActive && !forceShow) {
- return null;
- }
- return (0,external_React_.createElement)(block_popover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpacingVisualizer, {
clientId: clientId,
- __unstableCoverTarget: true,
- __unstableRefreshSize: padding,
- __unstablePopoverSlot: "block-toolbar",
- shift: false
- }, (0,external_React_.createElement)("div", {
- className: "block-editor__padding-visualizer",
- style: style
- }));
+ value: value?.spacing?.padding,
+ computeStyle: blockElement => ({
+ borderTopWidth: spacing_visualizer_getComputedCSS(blockElement, 'padding-top'),
+ borderRightWidth: spacing_visualizer_getComputedCSS(blockElement, 'padding-right'),
+ borderBottomWidth: spacing_visualizer_getComputedCSS(blockElement, 'padding-bottom'),
+ borderLeftWidth: spacing_visualizer_getComputedCSS(blockElement, 'padding-left')
+ }),
+ forceShow: forceShow
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/dimensions.js
-
/**
* External dependencies
*/
@@ -30848,6 +31886,8 @@ function PaddingVisualizer({
+
+
const DIMENSIONS_SUPPORT_KEY = 'dimensions';
const SPACING_SUPPORT_KEY = 'spacing';
const dimensions_ALL_SIDES = (/* unused pure expression or super */ null && (['top', 'right', 'bottom', 'left']));
@@ -30879,10 +31919,11 @@ function DimensionsInspectorControl({
style: updatedStyle
};
}, [resetAllFilter]);
- return (0,external_React_.createElement)(inspector_controls, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls, {
group: "dimensions",
- resetAllFilter: attributesResetAllFilter
- }, children);
+ resetAllFilter: attributesResetAllFilter,
+ children: children
+ });
}
function dimensions_DimensionsPanel({
clientId,
@@ -30907,23 +31948,25 @@ function dimensions_DimensionsPanel({
...defaultDimensionsControls,
...defaultSpacingControls
};
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(DimensionsPanel, {
- as: DimensionsInspectorControl,
- panelId: clientId,
- settings: settings,
- value: value,
- onChange: onChange,
- defaultControls: defaultControls,
- onVisualize: setVisualizedProperty
- }), !!settings?.spacing?.padding && (0,external_React_.createElement)(PaddingVisualizer, {
- forceShow: visualizedProperty === 'padding',
- clientId: clientId,
- value: value
- }), !!settings?.spacing?.margin && (0,external_React_.createElement)(MarginVisualizer, {
- forceShow: visualizedProperty === 'margin',
- clientId: clientId,
- value: value
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DimensionsPanel, {
+ as: DimensionsInspectorControl,
+ panelId: clientId,
+ settings: settings,
+ value: value,
+ onChange: onChange,
+ defaultControls: defaultControls,
+ onVisualize: setVisualizedProperty
+ }), !!settings?.spacing?.padding && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PaddingVisualizer, {
+ forceShow: visualizedProperty === 'padding',
+ clientId: clientId,
+ value: value
+ }), !!settings?.spacing?.margin && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MarginVisualizer, {
+ forceShow: visualizedProperty === 'margin',
+ clientId: clientId,
+ value: value
+ })]
+ });
}
/**
@@ -30962,7 +32005,7 @@ function dimensions_useBlockProps({
if (!hasDimensionsSupport(name, 'aspectRatio') || shouldSkipSerialization(name, DIMENSIONS_SUPPORT_KEY, 'aspectRatio')) {
return {};
}
- const className = classnames_default()({
+ const className = dist_clsx({
'has-aspect-ratio': !!style?.dimensions?.aspectRatio
});
@@ -31000,7 +32043,6 @@ function useCustomSides() {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/style.js
-
/**
* WordPress dependencies
*/
@@ -31021,6 +32063,9 @@ function useCustomSides() {
+
+
+
const styleSupportKeys = [...TYPOGRAPHY_SUPPORT_KEYS, BORDER_SUPPORT_KEY, COLOR_SUPPORT_KEY, DIMENSIONS_SUPPORT_KEY, BACKGROUND_SUPPORT_KEY, SPACING_SUPPORT_KEY, SHADOW_SUPPORT_KEY];
const hasStyleSupport = nameOrType => styleSupportKeys.some(key => (0,external_wp_blocks_namespaceObject.hasBlockSupport)(nameOrType, key));
@@ -31280,22 +32325,32 @@ function BlockStyleControls({
clientId,
name,
setAttributes,
- settings
+ settings: {
+ ...settings,
+ typography: {
+ ...settings.typography,
+ // The text alignment UI for individual blocks is rendered in
+ // the block toolbar, so disable it here.
+ textAlign: false
+ }
+ }
};
if (blockEditingMode !== 'default') {
return null;
}
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(ColorEdit, {
- ...passedProps
- }), (0,external_React_.createElement)(BackgroundImagePanel, {
- ...passedProps
- }), (0,external_React_.createElement)(typography_TypographyPanel, {
- ...passedProps
- }), (0,external_React_.createElement)(border_BorderPanel, {
- ...passedProps
- }), (0,external_React_.createElement)(dimensions_DimensionsPanel, {
- ...passedProps
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorEdit, {
+ ...passedProps
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BackgroundImagePanel, {
+ ...passedProps
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(typography_TypographyPanel, {
+ ...passedProps
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_BorderPanel, {
+ ...passedProps
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dimensions_DimensionsPanel, {
+ ...passedProps
+ })]
+ });
}
/* harmony default export */ const style = ({
edit: BlockStyleControls,
@@ -31413,21 +32468,21 @@ function settings_addAttribute(settings) {
(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/settings/addAttribute', settings_addAttribute);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/filter.js
-
/**
* WordPress dependencies
*/
-const filter = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const filter = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"
+ })
+});
/* harmony default export */ const library_filter = (filter);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/duotone-control/index.js
-
/**
* WordPress dependencies
*/
@@ -31436,6 +32491,8 @@ const filter = (0,external_React_.createElement)(external_wp_primitives_namespac
+
+
function DuotoneControl({
id: idProp,
colorPalette,
@@ -31447,22 +32504,22 @@ function DuotoneControl({
}) {
let toolbarIcon;
if (value === 'unset') {
- toolbarIcon = (0,external_React_.createElement)(external_wp_components_namespaceObject.ColorIndicator, {
+ toolbarIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ColorIndicator, {
className: "block-editor-duotone-control__unset-indicator"
});
} else if (value) {
- toolbarIcon = (0,external_React_.createElement)(external_wp_components_namespaceObject.DuotoneSwatch, {
+ toolbarIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DuotoneSwatch, {
values: value
});
} else {
- toolbarIcon = (0,external_React_.createElement)(build_module_icon, {
+ toolbarIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
icon: library_filter
});
}
const actionLabel = (0,external_wp_i18n_namespaceObject.__)('Apply duotone filter');
const id = (0,external_wp_compose_namespaceObject.useInstanceId)(DuotoneControl, 'duotone-control', idProp);
const descriptionId = `${id}__description`;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Dropdown, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
popoverProps: {
className: 'block-editor-duotone-control__popover',
headerTitle: (0,external_wp_i18n_namespaceObject.__)('Duotone')
@@ -31477,7 +32534,7 @@ function DuotoneControl({
onToggle();
}
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
showTooltip: true,
onClick: onToggle,
"aria-haspopup": "true",
@@ -31487,18 +32544,21 @@ function DuotoneControl({
icon: toolbarIcon
});
},
- renderContent: () => (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Duotone')
- }, (0,external_React_.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Create a two-tone color effect without losing your original image.')), (0,external_React_.createElement)(external_wp_components_namespaceObject.DuotonePicker, {
- "aria-label": actionLabel,
- "aria-describedby": descriptionId,
- colorPalette: colorPalette,
- duotonePalette: duotonePalette,
- disableCustomColors: disableCustomColors,
- disableCustomDuotone: disableCustomDuotone,
- value: value,
- onChange: onChange
- }))
+ renderContent: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Duotone'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Create a two-tone color effect without losing your original image.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DuotonePicker, {
+ "aria-label": actionLabel,
+ "aria-describedby": descriptionId,
+ colorPalette: colorPalette,
+ duotonePalette: duotonePalette,
+ disableCustomColors: disableCustomColors,
+ disableCustomDuotone: disableCustomDuotone,
+ value: value,
+ onChange: onChange
+ })]
+ })
});
}
/* harmony default export */ const duotone_control = (DuotoneControl);
@@ -31707,7 +32767,6 @@ function getBlockCSSSelector(blockType, target = 'root', options = {}) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/global-styles/filters-panel.js
-
/**
* External dependencies
*/
@@ -31725,6 +32784,8 @@ function getBlockCSSSelector(blockType, target = 'root', options = {}) {
*/
+
+
const filters_panel_EMPTY_ARRAY = [];
function useMultiOriginColorPresets(settings, {
presetSetting,
@@ -31749,16 +32810,18 @@ function FiltersToolsPanel({
panelId,
children
}) {
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
const resetAll = () => {
const updatedValue = resetAllFilter(value);
onChange(updatedValue);
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
label: (0,external_wp_i18n_namespaceObject._x)('Filters', 'Name for applying graphical effects'),
resetAll: resetAll,
panelId: panelId,
- dropdownMenuProps: TOOLSPANEL_DROPDOWNMENU_PROPS
- }, children);
+ dropdownMenuProps: dropdownMenuProps,
+ children: children
+ });
}
const filters_panel_DEFAULT_CONTROLS = {
duotone: true
@@ -31773,20 +32836,24 @@ const filters_panel_popoverProps = {
const LabeledColorIndicator = ({
indicator,
label
-}) => (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "flex-start"
-}, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalZStack, {
- isLayered: false,
- offset: -8
-}, (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- expanded: false
-}, indicator === 'unset' || !indicator ? (0,external_React_.createElement)(external_wp_components_namespaceObject.ColorIndicator, {
- className: "block-editor-duotone-control__unset-indicator"
-}) : (0,external_React_.createElement)(external_wp_components_namespaceObject.DuotoneSwatch, {
- values: indicator
-}))), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- title: label
-}, label));
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalZStack, {
+ isLayered: false,
+ offset: -8,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Flex, {
+ expanded: false,
+ children: indicator === 'unset' || !indicator ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ColorIndicator, {
+ className: "block-editor-duotone-control__unset-indicator"
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DuotoneSwatch, {
+ values: indicator
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ title: label,
+ children: label
+ })]
+});
function FiltersPanel({
as: Wrapper = FiltersToolsPanel,
value,
@@ -31831,60 +32898,67 @@ function FiltersPanel({
}
};
}, []);
- return (0,external_React_.createElement)(Wrapper, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Wrapper, {
resetAllFilter: resetAllFilter,
value: value,
onChange: onChange,
- panelId: panelId
- }, hasDuotoneEnabled && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- label: (0,external_wp_i18n_namespaceObject.__)('Duotone'),
- hasValue: hasDuotone,
- onDeselect: resetDuotone,
- isShownByDefault: defaultControls.duotone,
- panelId: panelId
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Dropdown, {
- popoverProps: filters_panel_popoverProps,
- className: "block-editor-global-styles-filters-panel__dropdown",
- renderToggle: ({
- onToggle,
- isOpen
- }) => {
- const toggleProps = {
- onClick: onToggle,
- className: classnames_default()({
- 'is-open': isOpen
- }),
- 'aria-expanded': isOpen
- };
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, {
- isBordered: true,
- isSeparated: true
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- ...toggleProps
- }, (0,external_React_.createElement)(LabeledColorIndicator, {
- indicator: duotone,
- label: (0,external_wp_i18n_namespaceObject.__)('Duotone')
- })));
- },
- renderContent: () => (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalDropdownContentWrapper, {
- paddingSize: "small"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Duotone')
- }, (0,external_React_.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Create a two-tone color effect without losing your original image.')), (0,external_React_.createElement)(external_wp_components_namespaceObject.DuotonePicker, {
- colorPalette: colorPalette,
- duotonePalette: duotonePalette
- // TODO: Re-enable both when custom colors are supported for block-level styles.
- ,
- disableCustomColors: true,
- disableCustomDuotone: true,
- value: duotone,
- onChange: setDuotone
- })))
- })));
+ panelId: panelId,
+ children: hasDuotoneEnabled && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Duotone'),
+ hasValue: hasDuotone,
+ onDeselect: resetDuotone,
+ isShownByDefault: defaultControls.duotone,
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ popoverProps: filters_panel_popoverProps,
+ className: "block-editor-global-styles-filters-panel__dropdown",
+ renderToggle: ({
+ onToggle,
+ isOpen
+ }) => {
+ const toggleProps = {
+ onClick: onToggle,
+ className: dist_clsx({
+ 'is-open': isOpen
+ }),
+ 'aria-expanded': isOpen
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ isBordered: true,
+ isSeparated: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ ...toggleProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LabeledColorIndicator, {
+ indicator: duotone,
+ label: (0,external_wp_i18n_namespaceObject.__)('Duotone')
+ })
+ })
+ });
+ },
+ renderContent: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalDropdownContentWrapper, {
+ paddingSize: "small",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Duotone'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Create a two-tone color effect without losing your original image.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DuotonePicker, {
+ colorPalette: colorPalette,
+ duotonePalette: duotonePalette
+ // TODO: Re-enable both when custom colors are supported for block-level styles.
+ ,
+ disableCustomColors: true,
+ disableCustomDuotone: true,
+ value: duotone,
+ onChange: setDuotone
+ })]
+ })
+ })
+ })
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/duotone.js
-
/**
* External dependencies
*/
@@ -31910,6 +32984,9 @@ function FiltersPanel({
+
+
+
const duotone_EMPTY_ARRAY = [];
// Safari does not always update the duotone filter when the duotone colors
@@ -31971,50 +33048,54 @@ function DuotonePanelPure({
return null;
}
const duotonePresetOrColors = !Array.isArray(duotoneStyle) ? getColorsFromDuotonePreset(duotoneStyle, duotonePalette) : duotoneStyle;
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(inspector_controls, {
- group: "filter"
- }, (0,external_React_.createElement)(FiltersPanel, {
- value: {
- filter: {
- duotone: duotonePresetOrColors
- }
- },
- onChange: newDuotone => {
- const newStyle = {
- ...style,
- color: {
- ...newDuotone?.filter
- }
- };
- setAttributes({
- style: newStyle
- });
- },
- settings: settings
- })), (0,external_React_.createElement)(block_controls, {
- group: "block",
- __experimentalShareWithChildBlocks: true
- }, (0,external_React_.createElement)(duotone_control, {
- duotonePalette: duotonePalette,
- colorPalette: colorPalette,
- disableCustomDuotone: disableCustomDuotone,
- disableCustomColors: disableCustomColors,
- value: duotonePresetOrColors,
- onChange: newDuotone => {
- const maybePreset = getDuotonePresetFromColors(newDuotone, duotonePalette);
- const newStyle = {
- ...style,
- color: {
- ...style?.color,
- duotone: maybePreset !== null && maybePreset !== void 0 ? maybePreset : newDuotone // use preset or fallback to custom colors.
- }
- };
- setAttributes({
- style: newStyle
- });
- },
- settings: settings
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls, {
+ group: "filter",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FiltersPanel, {
+ value: {
+ filter: {
+ duotone: duotonePresetOrColors
+ }
+ },
+ onChange: newDuotone => {
+ const newStyle = {
+ ...style,
+ color: {
+ ...newDuotone?.filter
+ }
+ };
+ setAttributes({
+ style: newStyle
+ });
+ },
+ settings: settings
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_controls, {
+ group: "block",
+ __experimentalShareWithChildBlocks: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(duotone_control, {
+ duotonePalette: duotonePalette,
+ colorPalette: colorPalette,
+ disableCustomDuotone: disableCustomDuotone,
+ disableCustomColors: disableCustomColors,
+ value: duotonePresetOrColors,
+ onChange: newDuotone => {
+ const maybePreset = getDuotonePresetFromColors(newDuotone, duotonePalette);
+ const newStyle = {
+ ...style,
+ color: {
+ ...style?.color,
+ duotone: maybePreset !== null && maybePreset !== void 0 ? maybePreset : newDuotone // use preset or fallback to custom colors.
+ }
+ };
+ setAttributes({
+ style: newStyle
+ });
+ },
+ settings: settings
+ })
+ })]
+ });
}
/* harmony default export */ const duotone = ({
shareWithChildBlocks: true,
@@ -32109,27 +33190,34 @@ function useDuotoneStyles({
} : undefined);
const blockElement = useBlockElement(clientId);
(0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!isValidFilter) return;
+ if (!isValidFilter) {
+ return;
+ }
- // Safari does not always update the duotone filter when the duotone colors
- // are changed. When using Safari, force the block element to be repainted by
- // the browser to ensure any changes are reflected visually. This logic matches
- // that used on the site frontend in `block-supports/duotone.php`.
+ // Safari does not always update the duotone filter when the duotone
+ // colors are changed. When using Safari, force the block element to be
+ // repainted by the browser to ensure any changes are reflected
+ // visually. This logic matches that used on the site frontend in
+ // `block-supports/duotone.php`.
if (blockElement && isSafari) {
const display = blockElement.style.display;
- // Switch to `inline-block` to force a repaint. In the editor, `inline-block`
- // is used instead of `none` to ensure that scroll position is not affected,
- // as `none` results in the editor scrolling to the top of the block.
+ // Switch to `inline-block` to force a repaint. In the editor,
+ // `inline-block` is used instead of `none` to ensure that scroll
+ // position is not affected, as `none` results in the editor
+ // scrolling to the top of the block.
blockElement.style.display = 'inline-block';
- // Simply accessing el.offsetHeight flushes layout and style
- // changes in WebKit without having to wait for setTimeout.
+ // Simply accessing el.offsetHeight flushes layout and style changes
+ // in WebKit without having to wait for setTimeout.
// eslint-disable-next-line no-unused-expressions
blockElement.offsetHeight;
blockElement.style.display = display;
}
- }, [isValidFilter, blockElement]);
+ // `colors` must be a dependency so this effect runs when the colors
+ // change in Safari.
+ }, [isValidFilter, blockElement, colors]);
}
function duotone_useBlockProps({
+ clientId,
name,
style
}) {
@@ -32165,7 +33253,7 @@ function duotone_useBlockProps({
const filterClass = `wp-duotone-${id}`;
const shouldRender = selector && attribute;
useDuotoneStyles({
- clientId: id,
+ clientId,
id: filterClass,
selector,
attribute
@@ -32238,11 +33326,12 @@ function getPositionTypeLabel(attributes) {
function useBlockDisplayInformation(clientId) {
return (0,external_wp_data_namespaceObject.useSelect)(select => {
- if (!clientId) return null;
+ if (!clientId) {
+ return null;
+ }
const {
getBlockName,
- getBlockAttributes,
- __experimentalGetReusableBlockTitle
+ getBlockAttributes
} = select(store);
const {
getBlockType,
@@ -32250,13 +33339,14 @@ function useBlockDisplayInformation(clientId) {
} = select(external_wp_blocks_namespaceObject.store);
const blockName = getBlockName(clientId);
const blockType = getBlockType(blockName);
- if (!blockType) return null;
+ if (!blockType) {
+ return null;
+ }
const attributes = getBlockAttributes(clientId);
const match = getActiveBlockVariation(blockName, attributes);
- const isReusable = (0,external_wp_blocks_namespaceObject.isReusableBlock)(blockType);
- const resusableTitle = isReusable ? __experimentalGetReusableBlockTitle(attributes.ref) : undefined;
- const title = resusableTitle || blockType.title;
- const isSynced = isReusable || (0,external_wp_blocks_namespaceObject.isTemplatePart)(blockType);
+ const isSynced = (0,external_wp_blocks_namespaceObject.isReusableBlock)(blockType) || (0,external_wp_blocks_namespaceObject.isTemplatePart)(blockType);
+ const syncedTitle = isSynced ? (0,external_wp_blocks_namespaceObject.__experimentalGetBlockLabel)(blockType, attributes) : undefined;
+ const title = syncedTitle || blockType.title;
const positionLabel = getPositionTypeLabel(attributes);
const blockTypeInfo = {
isSynced,
@@ -32268,7 +33358,9 @@ function useBlockDisplayInformation(clientId) {
positionType: attributes?.style?.position?.type,
name: attributes?.metadata?.name
};
- if (!match) return blockTypeInfo;
+ if (!match) {
+ return blockTypeInfo;
+ }
return {
isSynced,
title: match.title || blockType.title,
@@ -32283,7 +33375,6 @@ function useBlockDisplayInformation(clientId) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/position.js
-
/**
* External dependencies
*/
@@ -32308,6 +33399,7 @@ function useBlockDisplayInformation(clientId) {
+
const {
CustomSelectControl
} = unlock(external_wp_components_namespaceObject.privateApis);
@@ -32424,7 +33516,7 @@ function hasPositionValue(props) {
* @return {boolean} Whether or not the block is set to a sticky or fixed position.
*/
function hasStickyOrFixedPositionValue(attributes) {
- const positionType = attributes.style?.position?.type;
+ const positionType = attributes?.style?.position?.type;
return positionType === 'sticky' || positionType === 'fixed';
}
@@ -32536,31 +33628,32 @@ function PositionPanelPure({
// Only display position controls if there is at least one option to choose from.
return external_wp_element_namespaceObject.Platform.select({
- web: options.length > 1 ? (0,external_React_.createElement)(inspector_controls, {
- group: "position"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.BaseControl, {
- className: "block-editor-hooks__position-selection",
- __nextHasNoMarginBottom: true,
- help: stickyHelpText
- }, (0,external_React_.createElement)(CustomSelectControl, {
- __nextUnconstrainedWidth: true,
- __next40pxDefaultSize: true,
- className: "block-editor-hooks__position-selection__select-control",
- label: (0,external_wp_i18n_namespaceObject.__)('Position'),
- hideLabelFromVision: true,
- describedBy: (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Currently selected position.
- (0,external_wp_i18n_namespaceObject.__)('Currently selected position: %s'), selectedOption.name),
- options: options,
- value: selectedOption,
- __experimentalShowSelectedHint: true,
- onChange: ({
- selectedItem
- }) => {
- onChangeType(selectedItem.value);
- },
- size: '__unstable-large'
- }))) : null,
+ web: options.length > 1 ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls, {
+ group: "position",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl, {
+ className: "block-editor-hooks__position-selection",
+ __nextHasNoMarginBottom: true,
+ help: stickyHelpText,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomSelectControl, {
+ __next40pxDefaultSize: true,
+ className: "block-editor-hooks__position-selection__select-control",
+ label: (0,external_wp_i18n_namespaceObject.__)('Position'),
+ hideLabelFromVision: true,
+ describedBy: (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Currently selected position.
+ (0,external_wp_i18n_namespaceObject.__)('Currently selected position: %s'), selectedOption.name),
+ options: options,
+ value: selectedOption,
+ __experimentalShowSelectedHint: true,
+ onChange: ({
+ selectedItem
+ }) => {
+ onChangeType(selectedItem.value);
+ },
+ size: "__unstable-large"
+ })
+ })
+ }) : null,
native: null
});
}
@@ -32570,7 +33663,7 @@ function PositionPanelPure({
if (isPositionDisabled) {
return null;
}
- return (0,external_React_.createElement)(PositionPanelPure, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PositionPanelPure, {
...props
});
},
@@ -32604,7 +33697,7 @@ function position_useBlockProps({
}
// Attach a `wp-container-` id-based class name.
- const className = classnames_default()({
+ const className = dist_clsx({
[`wp-container-${id}`]: allowPositionStyles && !!css,
// Only attach a container class if there is generated CSS to be attached.
[`is-position-${style?.position?.type}`]: allowPositionStyles && !!css && !!style?.position?.type
@@ -32617,8 +33710,1335 @@ function position_useBlockProps({
};
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/layout.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/global-styles/use-global-styles-output.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+
+
+
+
+
+
+// Elements that rely on class names in their selectors.
+const ELEMENT_CLASS_NAMES = {
+ button: 'wp-element-button',
+ caption: 'wp-element-caption'
+};
+
+// List of block support features that can have their related styles
+// generated under their own feature level selector rather than the block's.
+const BLOCK_SUPPORT_FEATURE_LEVEL_SELECTORS = {
+ __experimentalBorder: 'border',
+ color: 'color',
+ spacing: 'spacing',
+ typography: 'typography'
+};
+const {
+ kebabCase: use_global_styles_output_kebabCase
+} = unlock(external_wp_components_namespaceObject.privateApis);
+function compileStyleValue(uncompiledValue) {
+ const VARIABLE_REFERENCE_PREFIX = 'var:';
+ const VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE = '|';
+ const VARIABLE_PATH_SEPARATOR_TOKEN_STYLE = '--';
+ if (uncompiledValue?.startsWith?.(VARIABLE_REFERENCE_PREFIX)) {
+ const variable = uncompiledValue.slice(VARIABLE_REFERENCE_PREFIX.length).split(VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE).join(VARIABLE_PATH_SEPARATOR_TOKEN_STYLE);
+ return `var(--wp--${variable})`;
+ }
+ return uncompiledValue;
+}
+
+/**
+ * Transform given preset tree into a set of style declarations.
+ *
+ * @param {Object} blockPresets
+ * @param {Object} mergedSettings Merged theme.json settings.
+ *
+ * @return {Array<Object>} An array of style declarations.
+ */
+function getPresetsDeclarations(blockPresets = {}, mergedSettings) {
+ return PRESET_METADATA.reduce((declarations, {
+ path,
+ valueKey,
+ valueFunc,
+ cssVarInfix
+ }) => {
+ const presetByOrigin = getValueFromObjectPath(blockPresets, path, []);
+ ['default', 'theme', 'custom'].forEach(origin => {
+ if (presetByOrigin[origin]) {
+ presetByOrigin[origin].forEach(value => {
+ if (valueKey && !valueFunc) {
+ declarations.push(`--wp--preset--${cssVarInfix}--${use_global_styles_output_kebabCase(value.slug)}: ${value[valueKey]}`);
+ } else if (valueFunc && typeof valueFunc === 'function') {
+ declarations.push(`--wp--preset--${cssVarInfix}--${use_global_styles_output_kebabCase(value.slug)}: ${valueFunc(value, mergedSettings)}`);
+ }
+ });
+ }
+ });
+ return declarations;
+ }, []);
+}
+
+/**
+ * Transform given preset tree into a set of preset class declarations.
+ *
+ * @param {?string} blockSelector
+ * @param {Object} blockPresets
+ * @return {string} CSS declarations for the preset classes.
+ */
+function getPresetsClasses(blockSelector = '*', blockPresets = {}) {
+ return PRESET_METADATA.reduce((declarations, {
+ path,
+ cssVarInfix,
+ classes
+ }) => {
+ if (!classes) {
+ return declarations;
+ }
+ const presetByOrigin = getValueFromObjectPath(blockPresets, path, []);
+ ['default', 'theme', 'custom'].forEach(origin => {
+ if (presetByOrigin[origin]) {
+ presetByOrigin[origin].forEach(({
+ slug
+ }) => {
+ classes.forEach(({
+ classSuffix,
+ propertyName
+ }) => {
+ const classSelectorToUse = `.has-${use_global_styles_output_kebabCase(slug)}-${classSuffix}`;
+ const selectorToUse = blockSelector.split(',') // Selector can be "h1, h2, h3"
+ .map(selector => `${selector}${classSelectorToUse}`).join(',');
+ const value = `var(--wp--preset--${cssVarInfix}--${use_global_styles_output_kebabCase(slug)})`;
+ declarations += `${selectorToUse}{${propertyName}: ${value} !important;}`;
+ });
+ });
+ }
+ });
+ return declarations;
+ }, '');
+}
+function getPresetsSvgFilters(blockPresets = {}) {
+ return PRESET_METADATA.filter(
+ // Duotone are the only type of filters for now.
+ metadata => metadata.path.at(-1) === 'duotone').flatMap(metadata => {
+ const presetByOrigin = getValueFromObjectPath(blockPresets, metadata.path, {});
+ return ['default', 'theme'].filter(origin => presetByOrigin[origin]).flatMap(origin => presetByOrigin[origin].map(preset => getDuotoneFilter(`wp-duotone-${preset.slug}`, preset.colors))).join('');
+ });
+}
+function flattenTree(input = {}, prefix, token) {
+ let result = [];
+ Object.keys(input).forEach(key => {
+ const newKey = prefix + use_global_styles_output_kebabCase(key.replace('/', '-'));
+ const newLeaf = input[key];
+ if (newLeaf instanceof Object) {
+ const newPrefix = newKey + token;
+ result = [...result, ...flattenTree(newLeaf, newPrefix, token)];
+ } else {
+ result.push(`${newKey}: ${newLeaf}`);
+ }
+ });
+ return result;
+}
+
+/**
+ * Gets variation selector string from feature selector.
+ *
+ * @param {string} featureSelector The feature selector.
+ *
+ * @param {string} styleVariationSelector The style variation selector.
+ * @return {string} Combined selector string.
+ */
+function concatFeatureVariationSelectorString(featureSelector, styleVariationSelector) {
+ const featureSelectors = featureSelector.split(',');
+ const combinedSelectors = [];
+ featureSelectors.forEach(selector => {
+ combinedSelectors.push(`${styleVariationSelector.trim()}${selector.trim()}`);
+ });
+ return combinedSelectors.join(', ');
+}
+
+/**
+ * Generate style declarations for a block's custom feature and subfeature
+ * selectors.
+ *
+ * NOTE: The passed `styles` object will be mutated by this function.
+ *
+ * @param {Object} selectors Custom selectors object for a block.
+ * @param {Object} styles A block's styles object.
+ *
+ * @return {Object} Style declarations.
+ */
+const getFeatureDeclarations = (selectors, styles) => {
+ const declarations = {};
+ Object.entries(selectors).forEach(([feature, selector]) => {
+ // We're only processing features/subfeatures that have styles.
+ if (feature === 'root' || !styles?.[feature]) {
+ return;
+ }
+ const isShorthand = typeof selector === 'string';
+
+ // If we have a selector object instead of shorthand process it.
+ if (!isShorthand) {
+ Object.entries(selector).forEach(([subfeature, subfeatureSelector]) => {
+ // Don't process root feature selector yet or any
+ // subfeature that doesn't have a style.
+ if (subfeature === 'root' || !styles?.[feature][subfeature]) {
+ return;
+ }
+
+ // Create a temporary styles object and build
+ // declarations for subfeature.
+ const subfeatureStyles = {
+ [feature]: {
+ [subfeature]: styles[feature][subfeature]
+ }
+ };
+ const newDeclarations = getStylesDeclarations(subfeatureStyles);
+
+ // Merge new declarations in with any others that
+ // share the same selector.
+ declarations[subfeatureSelector] = [...(declarations[subfeatureSelector] || []), ...newDeclarations];
+
+ // Remove the subfeature's style now it will be
+ // included under its own selector not the block's.
+ delete styles[feature][subfeature];
+ });
+ }
+
+ // Now subfeatures have been processed and removed, we can
+ // process root, or shorthand, feature selectors.
+ if (isShorthand || selector.root) {
+ const featureSelector = isShorthand ? selector : selector.root;
+
+ // Create temporary style object and build declarations for feature.
+ const featureStyles = {
+ [feature]: styles[feature]
+ };
+ const newDeclarations = getStylesDeclarations(featureStyles);
+
+ // Merge new declarations with any others that share the selector.
+ declarations[featureSelector] = [...(declarations[featureSelector] || []), ...newDeclarations];
+
+ // Remove the feature from the block's styles now as it will be
+ // included under its own selector not the block's.
+ delete styles[feature];
+ }
+ });
+ return declarations;
+};
+
+/**
+ * Transform given style tree into a set of style declarations.
+ *
+ * @param {Object} blockStyles Block styles.
+ *
+ * @param {string} selector The selector these declarations should attach to.
+ *
+ * @param {boolean} useRootPaddingAlign Whether to use CSS custom properties in root selector.
+ *
+ * @param {Object} tree A theme.json tree containing layout definitions.
+ *
+ * @param {boolean} disableRootPadding Whether to force disable the root padding styles.
+ * @return {Array} An array of style declarations.
+ */
+function getStylesDeclarations(blockStyles = {}, selector = '', useRootPaddingAlign, tree = {}, disableRootPadding = false) {
+ const isRoot = ROOT_BLOCK_SELECTOR === selector;
+ const output = Object.entries(external_wp_blocks_namespaceObject.__EXPERIMENTAL_STYLE_PROPERTY).reduce((declarations, [key, {
+ value,
+ properties,
+ useEngine,
+ rootOnly
+ }]) => {
+ if (rootOnly && !isRoot) {
+ return declarations;
+ }
+ const pathToValue = value;
+ if (pathToValue[0] === 'elements' || useEngine) {
+ return declarations;
+ }
+ const styleValue = getValueFromObjectPath(blockStyles, pathToValue);
+
+ // Root-level padding styles don't currently support strings with CSS shorthand values.
+ // This may change: https://github.com/WordPress/gutenberg/issues/40132.
+ if (key === '--wp--style--root--padding' && (typeof styleValue === 'string' || !useRootPaddingAlign)) {
+ return declarations;
+ }
+ if (properties && typeof styleValue !== 'string') {
+ Object.entries(properties).forEach(entry => {
+ const [name, prop] = entry;
+ if (!getValueFromObjectPath(styleValue, [prop], false)) {
+ // Do not create a declaration
+ // for sub-properties that don't have any value.
+ return;
+ }
+ const cssProperty = name.startsWith('--') ? name : use_global_styles_output_kebabCase(name);
+ declarations.push(`${cssProperty}: ${compileStyleValue(getValueFromObjectPath(styleValue, [prop]))}`);
+ });
+ } else if (getValueFromObjectPath(blockStyles, pathToValue, false)) {
+ const cssProperty = key.startsWith('--') ? key : use_global_styles_output_kebabCase(key);
+ declarations.push(`${cssProperty}: ${compileStyleValue(getValueFromObjectPath(blockStyles, pathToValue))}`);
+ }
+ return declarations;
+ }, []);
+
+ // The goal is to move everything to server side generated engine styles
+ // This is temporary as we absorb more and more styles into the engine.
+ const extraRules = (0,external_wp_styleEngine_namespaceObject.getCSSRules)(blockStyles);
+ extraRules.forEach(rule => {
+ // Don't output padding properties if padding variables are set or if we're not editing a full template.
+ if (isRoot && (useRootPaddingAlign || disableRootPadding) && rule.key.startsWith('padding')) {
+ return;
+ }
+ const cssProperty = rule.key.startsWith('--') ? rule.key : use_global_styles_output_kebabCase(rule.key);
+ let ruleValue = rule.value;
+ if (typeof ruleValue !== 'string' && ruleValue?.ref) {
+ const refPath = ruleValue.ref.split('.');
+ ruleValue = compileStyleValue(getValueFromObjectPath(tree, refPath));
+ // Presence of another ref indicates a reference to another dynamic value.
+ // Pointing to another dynamic value is not supported.
+ if (!ruleValue || ruleValue?.ref) {
+ return;
+ }
+ }
+
+ // Calculate fluid typography rules where available.
+ if (cssProperty === 'font-size') {
+ /*
+ * getTypographyFontSizeValue() will check
+ * if fluid typography has been activated and also
+ * whether the incoming value can be converted to a fluid value.
+ * Values that already have a "clamp()" function will not pass the test,
+ * and therefore the original $value will be returned.
+ */
+ ruleValue = getTypographyFontSizeValue({
+ size: ruleValue
+ }, tree?.settings);
+ }
+
+ // For aspect ratio to work, other dimensions rules (and Cover block defaults) must be unset.
+ // This ensures that a fixed height does not override the aspect ratio.
+ if (cssProperty === 'aspect-ratio') {
+ output.push('min-height: unset');
+ }
+ output.push(`${cssProperty}: ${ruleValue}`);
+ });
+ return output;
+}
+
+/**
+ * Get generated CSS for layout styles by looking up layout definitions provided
+ * in theme.json, and outputting common layout styles, and specific blockGap values.
+ *
+ * @param {Object} props
+ * @param {Object} props.layoutDefinitions Layout definitions, keyed by layout type.
+ * @param {Object} props.style A style object containing spacing values.
+ * @param {string} props.selector Selector used to group together layout styling rules.
+ * @param {boolean} props.hasBlockGapSupport Whether or not the theme opts-in to blockGap support.
+ * @param {boolean} props.hasFallbackGapSupport Whether or not the theme allows fallback gap styles.
+ * @param {?string} props.fallbackGapValue An optional fallback gap value if no real gap value is available.
+ * @return {string} Generated CSS rules for the layout styles.
+ */
+function getLayoutStyles({
+ layoutDefinitions = LAYOUT_DEFINITIONS,
+ style,
+ selector,
+ hasBlockGapSupport,
+ hasFallbackGapSupport,
+ fallbackGapValue
+}) {
+ let ruleset = '';
+ let gapValue = hasBlockGapSupport ? getGapCSSValue(style?.spacing?.blockGap) : '';
+
+ // Ensure a fallback gap value for the root layout definitions,
+ // and use a fallback value if one is provided for the current block.
+ if (hasFallbackGapSupport) {
+ if (selector === ROOT_BLOCK_SELECTOR) {
+ gapValue = !gapValue ? '0.5em' : gapValue;
+ } else if (!hasBlockGapSupport && fallbackGapValue) {
+ gapValue = fallbackGapValue;
+ }
+ }
+ if (gapValue && layoutDefinitions) {
+ Object.values(layoutDefinitions).forEach(({
+ className,
+ name,
+ spacingStyles
+ }) => {
+ // Allow outputting fallback gap styles for flex layout type when block gap support isn't available.
+ if (!hasBlockGapSupport && 'flex' !== name && 'grid' !== name) {
+ return;
+ }
+ if (spacingStyles?.length) {
+ spacingStyles.forEach(spacingStyle => {
+ const declarations = [];
+ if (spacingStyle.rules) {
+ Object.entries(spacingStyle.rules).forEach(([cssProperty, cssValue]) => {
+ declarations.push(`${cssProperty}: ${cssValue ? cssValue : gapValue}`);
+ });
+ }
+ if (declarations.length) {
+ let combinedSelector = '';
+ if (!hasBlockGapSupport) {
+ // For fallback gap styles, use lower specificity, to ensure styles do not unintentionally override theme styles.
+ combinedSelector = selector === ROOT_BLOCK_SELECTOR ? `:where(.${className}${spacingStyle?.selector || ''})` : `:where(${selector}.${className}${spacingStyle?.selector || ''})`;
+ } else {
+ combinedSelector = selector === ROOT_BLOCK_SELECTOR ? `.${className}${spacingStyle?.selector || ''}` : `${selector}-${className}${spacingStyle?.selector || ''}`;
+ }
+ ruleset += `${combinedSelector} { ${declarations.join('; ')}; }`;
+ }
+ });
+ }
+ });
+ // For backwards compatibility, ensure the legacy block gap CSS variable is still available.
+ if (selector === ROOT_BLOCK_SELECTOR && hasBlockGapSupport) {
+ ruleset += `${ROOT_CSS_PROPERTIES_SELECTOR} { --wp--style--block-gap: ${gapValue}; }`;
+ }
+ }
+
+ // Output base styles
+ if (selector === ROOT_BLOCK_SELECTOR && layoutDefinitions) {
+ const validDisplayModes = ['block', 'flex', 'grid'];
+ Object.values(layoutDefinitions).forEach(({
+ className,
+ displayMode,
+ baseStyles
+ }) => {
+ if (displayMode && validDisplayModes.includes(displayMode)) {
+ ruleset += `${selector} .${className} { display:${displayMode}; }`;
+ }
+ if (baseStyles?.length) {
+ baseStyles.forEach(baseStyle => {
+ const declarations = [];
+ if (baseStyle.rules) {
+ Object.entries(baseStyle.rules).forEach(([cssProperty, cssValue]) => {
+ declarations.push(`${cssProperty}: ${cssValue}`);
+ });
+ }
+ if (declarations.length) {
+ const combinedSelector = `.${className}${baseStyle?.selector || ''}`;
+ ruleset += `${combinedSelector} { ${declarations.join('; ')}; }`;
+ }
+ });
+ }
+ });
+ }
+ return ruleset;
+}
+const STYLE_KEYS = ['border', 'color', 'dimensions', 'spacing', 'typography', 'filter', 'outline', 'shadow', 'background'];
+function pickStyleKeys(treeToPickFrom) {
+ if (!treeToPickFrom) {
+ return {};
+ }
+ const entries = Object.entries(treeToPickFrom);
+ const pickedEntries = entries.filter(([key]) => STYLE_KEYS.includes(key));
+ // clone the style objects so that `getFeatureDeclarations` can remove consumed keys from it
+ const clonedEntries = pickedEntries.map(([key, style]) => [key, JSON.parse(JSON.stringify(style))]);
+ return Object.fromEntries(clonedEntries);
+}
+const getNodesWithStyles = (tree, blockSelectors) => {
+ var _tree$styles$blocks;
+ const nodes = [];
+ if (!tree?.styles) {
+ return nodes;
+ }
+
+ // Top-level.
+ const styles = pickStyleKeys(tree.styles);
+ if (styles) {
+ nodes.push({
+ styles,
+ selector: ROOT_BLOCK_SELECTOR
+ });
+ }
+ Object.entries(external_wp_blocks_namespaceObject.__EXPERIMENTAL_ELEMENTS).forEach(([name, selector]) => {
+ if (tree.styles?.elements?.[name]) {
+ nodes.push({
+ styles: tree.styles?.elements?.[name],
+ selector,
+ // Top level elements that don't use a class name should not receive the
+ // `:root :where()` wrapper to maintain backwards compatibility.
+ skipSelectorWrapper: !ELEMENT_CLASS_NAMES[name]
+ });
+ }
+ });
+
+ // Iterate over blocks: they can have styles & elements.
+ Object.entries((_tree$styles$blocks = tree.styles?.blocks) !== null && _tree$styles$blocks !== void 0 ? _tree$styles$blocks : {}).forEach(([blockName, node]) => {
+ var _node$elements;
+ const blockStyles = pickStyleKeys(node);
+ if (node?.variations) {
+ const variations = {};
+ Object.entries(node.variations).forEach(([variationName, variation]) => {
+ var _variation$elements, _variation$blocks;
+ variations[variationName] = pickStyleKeys(variation);
+ if (variation?.css) {
+ variations[variationName].css = variation.css;
+ }
+ const variationSelector = blockSelectors[blockName]?.styleVariationSelectors?.[variationName];
+
+ // Process the variation's inner element styles.
+ // This comes before the inner block styles so the
+ // element styles within the block type styles take
+ // precedence over these.
+ Object.entries((_variation$elements = variation?.elements) !== null && _variation$elements !== void 0 ? _variation$elements : {}).forEach(([element, elementStyles]) => {
+ if (elementStyles && external_wp_blocks_namespaceObject.__EXPERIMENTAL_ELEMENTS[element]) {
+ nodes.push({
+ styles: elementStyles,
+ selector: scopeSelector(variationSelector, external_wp_blocks_namespaceObject.__EXPERIMENTAL_ELEMENTS[element])
+ });
+ }
+ });
+
+ // Process the variations inner block type styles.
+ Object.entries((_variation$blocks = variation?.blocks) !== null && _variation$blocks !== void 0 ? _variation$blocks : {}).forEach(([variationBlockName, variationBlockStyles]) => {
+ var _variationBlockStyles;
+ const variationBlockSelector = scopeSelector(variationSelector, blockSelectors[variationBlockName]?.selector);
+ const variationDuotoneSelector = scopeSelector(variationSelector, blockSelectors[variationBlockName]?.duotoneSelector);
+ const variationFeatureSelectors = scopeFeatureSelectors(variationSelector, blockSelectors[variationBlockName]?.featureSelectors);
+ const variationBlockStyleNodes = pickStyleKeys(variationBlockStyles);
+ if (variationBlockStyles?.css) {
+ variationBlockStyleNodes.css = variationBlockStyles.css;
+ }
+ nodes.push({
+ selector: variationBlockSelector,
+ duotoneSelector: variationDuotoneSelector,
+ featureSelectors: variationFeatureSelectors,
+ fallbackGapValue: blockSelectors[variationBlockName]?.fallbackGapValue,
+ hasLayoutSupport: blockSelectors[variationBlockName]?.hasLayoutSupport,
+ styles: variationBlockStyleNodes
+ });
+
+ // Process element styles for the inner blocks
+ // of the variation.
+ Object.entries((_variationBlockStyles = variationBlockStyles.elements) !== null && _variationBlockStyles !== void 0 ? _variationBlockStyles : {}).forEach(([variationBlockElement, variationBlockElementStyles]) => {
+ if (variationBlockElementStyles && external_wp_blocks_namespaceObject.__EXPERIMENTAL_ELEMENTS[variationBlockElement]) {
+ nodes.push({
+ styles: variationBlockElementStyles,
+ selector: scopeSelector(variationBlockSelector, external_wp_blocks_namespaceObject.__EXPERIMENTAL_ELEMENTS[variationBlockElement])
+ });
+ }
+ });
+ });
+ });
+ blockStyles.variations = variations;
+ }
+ if (blockSelectors?.[blockName]?.selector) {
+ nodes.push({
+ duotoneSelector: blockSelectors[blockName].duotoneSelector,
+ fallbackGapValue: blockSelectors[blockName].fallbackGapValue,
+ hasLayoutSupport: blockSelectors[blockName].hasLayoutSupport,
+ selector: blockSelectors[blockName].selector,
+ styles: blockStyles,
+ featureSelectors: blockSelectors[blockName].featureSelectors,
+ styleVariationSelectors: blockSelectors[blockName].styleVariationSelectors
+ });
+ }
+ Object.entries((_node$elements = node?.elements) !== null && _node$elements !== void 0 ? _node$elements : {}).forEach(([elementName, value]) => {
+ if (value && blockSelectors?.[blockName] && external_wp_blocks_namespaceObject.__EXPERIMENTAL_ELEMENTS[elementName]) {
+ nodes.push({
+ styles: value,
+ selector: blockSelectors[blockName]?.selector.split(',').map(sel => {
+ const elementSelectors = external_wp_blocks_namespaceObject.__EXPERIMENTAL_ELEMENTS[elementName].split(',');
+ return elementSelectors.map(elementSelector => sel + ' ' + elementSelector);
+ }).join(',')
+ });
+ }
+ });
+ });
+ return nodes;
+};
+const getNodesWithSettings = (tree, blockSelectors) => {
+ var _tree$settings$blocks;
+ const nodes = [];
+ if (!tree?.settings) {
+ return nodes;
+ }
+ const pickPresets = treeToPickFrom => {
+ let presets = {};
+ PRESET_METADATA.forEach(({
+ path
+ }) => {
+ const value = getValueFromObjectPath(treeToPickFrom, path, false);
+ if (value !== false) {
+ presets = setImmutably(presets, path, value);
+ }
+ });
+ return presets;
+ };
+
+ // Top-level.
+ const presets = pickPresets(tree.settings);
+ const custom = tree.settings?.custom;
+ if (Object.keys(presets).length > 0 || custom) {
+ nodes.push({
+ presets,
+ custom,
+ selector: ROOT_CSS_PROPERTIES_SELECTOR
+ });
+ }
+
+ // Blocks.
+ Object.entries((_tree$settings$blocks = tree.settings?.blocks) !== null && _tree$settings$blocks !== void 0 ? _tree$settings$blocks : {}).forEach(([blockName, node]) => {
+ const blockPresets = pickPresets(node);
+ const blockCustom = node.custom;
+ if (Object.keys(blockPresets).length > 0 || blockCustom) {
+ nodes.push({
+ presets: blockPresets,
+ custom: blockCustom,
+ selector: blockSelectors[blockName]?.selector
+ });
+ }
+ });
+ return nodes;
+};
+const toCustomProperties = (tree, blockSelectors) => {
+ const settings = getNodesWithSettings(tree, blockSelectors);
+ let ruleset = '';
+ settings.forEach(({
+ presets,
+ custom,
+ selector
+ }) => {
+ const declarations = getPresetsDeclarations(presets, tree?.settings);
+ const customProps = flattenTree(custom, '--wp--custom--', '--');
+ if (customProps.length > 0) {
+ declarations.push(...customProps);
+ }
+ if (declarations.length > 0) {
+ ruleset += `${selector}{${declarations.join(';')};}`;
+ }
+ });
+ return ruleset;
+};
+const toStyles = (tree, blockSelectors, hasBlockGapSupport, hasFallbackGapSupport, disableLayoutStyles = false, disableRootPadding = false, styleOptions = undefined) => {
+ // These allow opting out of certain sets of styles.
+ const options = {
+ blockGap: true,
+ blockStyles: true,
+ layoutStyles: true,
+ marginReset: true,
+ presets: true,
+ rootPadding: true,
+ variationStyles: false,
+ ...styleOptions
+ };
+ const nodesWithStyles = getNodesWithStyles(tree, blockSelectors);
+ const nodesWithSettings = getNodesWithSettings(tree, blockSelectors);
+ const useRootPaddingAlign = tree?.settings?.useRootPaddingAwareAlignments;
+ const {
+ contentSize,
+ wideSize
+ } = tree?.settings?.layout || {};
+ const hasBodyStyles = options.marginReset || options.rootPadding || options.layoutStyles;
+ let ruleset = '';
+ if (options.presets && (contentSize || wideSize)) {
+ ruleset += `${ROOT_CSS_PROPERTIES_SELECTOR} {`;
+ ruleset = contentSize ? ruleset + ` --wp--style--global--content-size: ${contentSize};` : ruleset;
+ ruleset = wideSize ? ruleset + ` --wp--style--global--wide-size: ${wideSize};` : ruleset;
+ ruleset += '}';
+ }
+ if (hasBodyStyles) {
+ /*
+ * Reset default browser margin on the body element.
+ * This is set on the body selector **before** generating the ruleset
+ * from the `theme.json`. This is to ensure that if the `theme.json` declares
+ * `margin` in its `spacing` declaration for the `body` element then these
+ * user-generated values take precedence in the CSS cascade.
+ * @link https://github.com/WordPress/gutenberg/issues/36147.
+ */
+ ruleset += ':where(body) {margin: 0;';
+
+ // Root padding styles should be output for full templates, patterns and template parts.
+ if (options.rootPadding && useRootPaddingAlign) {
+ /*
+ * These rules reproduce the ones from https://github.com/WordPress/gutenberg/blob/79103f124925d1f457f627e154f52a56228ed5ad/lib/class-wp-theme-json-gutenberg.php#L2508
+ * almost exactly, but for the selectors that target block wrappers in the front end. This code only runs in the editor, so it doesn't need those selectors.
+ */
+ ruleset += `padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) }
+ .has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }
+ .has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }
+ .has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; }
+ .has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0;
+ `;
+ }
+ ruleset += '}';
+ }
+ if (options.blockStyles) {
+ nodesWithStyles.forEach(({
+ selector,
+ duotoneSelector,
+ styles,
+ fallbackGapValue,
+ hasLayoutSupport,
+ featureSelectors,
+ styleVariationSelectors,
+ skipSelectorWrapper
+ }) => {
+ // Process styles for block support features with custom feature level
+ // CSS selectors set.
+ if (featureSelectors) {
+ const featureDeclarations = getFeatureDeclarations(featureSelectors, styles);
+ Object.entries(featureDeclarations).forEach(([cssSelector, declarations]) => {
+ if (declarations.length) {
+ const rules = declarations.join(';');
+ ruleset += `:root :where(${cssSelector}){${rules};}`;
+ }
+ });
+ }
+
+ // Process duotone styles.
+ if (duotoneSelector) {
+ const duotoneStyles = {};
+ if (styles?.filter) {
+ duotoneStyles.filter = styles.filter;
+ delete styles.filter;
+ }
+ const duotoneDeclarations = getStylesDeclarations(duotoneStyles);
+ if (duotoneDeclarations.length) {
+ ruleset += `${duotoneSelector}{${duotoneDeclarations.join(';')};}`;
+ }
+ }
+
+ // Process blockGap and layout styles.
+ if (!disableLayoutStyles && (ROOT_BLOCK_SELECTOR === selector || hasLayoutSupport)) {
+ ruleset += getLayoutStyles({
+ style: styles,
+ selector,
+ hasBlockGapSupport,
+ hasFallbackGapSupport,
+ fallbackGapValue
+ });
+ }
+
+ // Process the remaining block styles (they use either normal block class or __experimentalSelector).
+ const styleDeclarations = getStylesDeclarations(styles, selector, useRootPaddingAlign, tree, disableRootPadding);
+ if (styleDeclarations?.length) {
+ const generalSelector = skipSelectorWrapper ? selector : `:root :where(${selector})`;
+ ruleset += `${generalSelector}{${styleDeclarations.join(';')};}`;
+ }
+ if (styles?.css) {
+ ruleset += processCSSNesting(styles.css, `:root :where(${selector})`);
+ }
+ if (options.variationStyles && styleVariationSelectors) {
+ Object.entries(styleVariationSelectors).forEach(([styleVariationName, styleVariationSelector]) => {
+ const styleVariations = styles?.variations?.[styleVariationName];
+ if (styleVariations) {
+ // If the block uses any custom selectors for block support, add those first.
+ if (featureSelectors) {
+ const featureDeclarations = getFeatureDeclarations(featureSelectors, styleVariations);
+ Object.entries(featureDeclarations).forEach(([baseSelector, declarations]) => {
+ if (declarations.length) {
+ const cssSelector = concatFeatureVariationSelectorString(baseSelector, styleVariationSelector);
+ const rules = declarations.join(';');
+ ruleset += `:root :where(${cssSelector}){${rules};}`;
+ }
+ });
+ }
+
+ // Otherwise add regular selectors.
+ const styleVariationDeclarations = getStylesDeclarations(styleVariations, styleVariationSelector, useRootPaddingAlign, tree);
+ if (styleVariationDeclarations.length) {
+ ruleset += `:root :where(${styleVariationSelector}){${styleVariationDeclarations.join(';')};}`;
+ }
+ if (styleVariations?.css) {
+ ruleset += processCSSNesting(styleVariations.css, `:root :where(${styleVariationSelector})`);
+ }
+ }
+ });
+ }
+
+ // Check for pseudo selector in `styles` and handle separately.
+ const pseudoSelectorStyles = Object.entries(styles).filter(([key]) => key.startsWith(':'));
+ if (pseudoSelectorStyles?.length) {
+ pseudoSelectorStyles.forEach(([pseudoKey, pseudoStyle]) => {
+ const pseudoDeclarations = getStylesDeclarations(pseudoStyle);
+ if (!pseudoDeclarations?.length) {
+ return;
+ }
+
+ // `selector` may be provided in a form
+ // where block level selectors have sub element
+ // selectors appended to them as a comma separated
+ // string.
+ // e.g. `h1 a,h2 a,h3 a,h4 a,h5 a,h6 a`;
+ // Split and append pseudo selector to create
+ // the proper rules to target the elements.
+ const _selector = selector.split(',').map(sel => sel + pseudoKey).join(',');
+
+ // As pseudo classes such as :hover, :focus etc. have class-level
+ // specificity, they must use the `:root :where()` wrapper. This.
+ // caps the specificity at `0-1-0` to allow proper nesting of variations
+ // and block type element styles.
+ const pseudoRule = `:root :where(${_selector}){${pseudoDeclarations.join(';')};}`;
+ ruleset += pseudoRule;
+ });
+ }
+ });
+ }
+ if (options.layoutStyles) {
+ /* Add alignment / layout styles */
+ ruleset = ruleset + '.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }';
+ ruleset = ruleset + '.wp-site-blocks > .alignright { float: right; margin-left: 2em; }';
+ ruleset = ruleset + '.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }';
+ }
+ if (options.blockGap && hasBlockGapSupport) {
+ // Use fallback of `0.5em` just in case, however if there is blockGap support, there should nearly always be a real value.
+ const gapValue = getGapCSSValue(tree?.styles?.spacing?.blockGap) || '0.5em';
+ ruleset = ruleset + `:root :where(.wp-site-blocks) > * { margin-block-start: ${gapValue}; margin-block-end: 0; }`;
+ ruleset = ruleset + ':root :where(.wp-site-blocks) > :first-child { margin-block-start: 0; }';
+ ruleset = ruleset + ':root :where(.wp-site-blocks) > :last-child { margin-block-end: 0; }';
+ }
+ if (options.presets) {
+ nodesWithSettings.forEach(({
+ selector,
+ presets
+ }) => {
+ if (ROOT_BLOCK_SELECTOR === selector || ROOT_CSS_PROPERTIES_SELECTOR === selector) {
+ // Do not add extra specificity for top-level classes.
+ selector = '';
+ }
+ const classes = getPresetsClasses(selector, presets);
+ if (classes.length > 0) {
+ ruleset += classes;
+ }
+ });
+ }
+ return ruleset;
+};
+function toSvgFilters(tree, blockSelectors) {
+ const nodesWithSettings = getNodesWithSettings(tree, blockSelectors);
+ return nodesWithSettings.flatMap(({
+ presets
+ }) => {
+ return getPresetsSvgFilters(presets);
+ });
+}
+const getSelectorsConfig = (blockType, rootSelector) => {
+ if (blockType?.selectors && Object.keys(blockType.selectors).length > 0) {
+ return blockType.selectors;
+ }
+ const config = {
+ root: rootSelector
+ };
+ Object.entries(BLOCK_SUPPORT_FEATURE_LEVEL_SELECTORS).forEach(([featureKey, featureName]) => {
+ const featureSelector = getBlockCSSSelector(blockType, featureKey);
+ if (featureSelector) {
+ config[featureName] = featureSelector;
+ }
+ });
+ return config;
+};
+const getBlockSelectors = (blockTypes, getBlockStyles, variationInstanceId) => {
+ const result = {};
+ blockTypes.forEach(blockType => {
+ const name = blockType.name;
+ const selector = getBlockCSSSelector(blockType);
+ let duotoneSelector = getBlockCSSSelector(blockType, 'filter.duotone');
+
+ // Keep backwards compatibility for support.color.__experimentalDuotone.
+ if (!duotoneSelector) {
+ const rootSelector = getBlockCSSSelector(blockType);
+ const duotoneSupport = (0,external_wp_blocks_namespaceObject.getBlockSupport)(blockType, 'color.__experimentalDuotone', false);
+ duotoneSelector = duotoneSupport && scopeSelector(rootSelector, duotoneSupport);
+ }
+ const hasLayoutSupport = !!blockType?.supports?.layout || !!blockType?.supports?.__experimentalLayout;
+ const fallbackGapValue = blockType?.supports?.spacing?.blockGap?.__experimentalDefault;
+ const blockStyleVariations = getBlockStyles(name);
+ const styleVariationSelectors = {};
+ blockStyleVariations?.forEach(variation => {
+ const variationSuffix = variationInstanceId ? `-${variationInstanceId}` : '';
+ const variationName = `${variation.name}${variationSuffix}`;
+ const styleVariationSelector = getBlockStyleVariationSelector(variationName, selector);
+ styleVariationSelectors[variationName] = styleVariationSelector;
+ });
+
+ // For each block support feature add any custom selectors.
+ const featureSelectors = getSelectorsConfig(blockType, selector);
+ result[name] = {
+ duotoneSelector,
+ fallbackGapValue,
+ featureSelectors: Object.keys(featureSelectors).length ? featureSelectors : undefined,
+ hasLayoutSupport,
+ name,
+ selector,
+ styleVariationSelectors: blockStyleVariations?.length ? styleVariationSelectors : undefined
+ };
+ });
+ return result;
+};
+
+/**
+ * If there is a separator block whose color is defined in theme.json via background,
+ * update the separator color to the same value by using border color.
+ *
+ * @param {Object} config Theme.json configuration file object.
+ * @return {Object} configTheme.json configuration file object updated.
+ */
+function updateConfigWithSeparator(config) {
+ const needsSeparatorStyleUpdate = config.styles?.blocks?.['core/separator'] && config.styles?.blocks?.['core/separator'].color?.background && !config.styles?.blocks?.['core/separator'].color?.text && !config.styles?.blocks?.['core/separator'].border?.color;
+ if (needsSeparatorStyleUpdate) {
+ return {
+ ...config,
+ styles: {
+ ...config.styles,
+ blocks: {
+ ...config.styles.blocks,
+ 'core/separator': {
+ ...config.styles.blocks['core/separator'],
+ color: {
+ ...config.styles.blocks['core/separator'].color,
+ text: config.styles?.blocks['core/separator'].color.background
+ }
+ }
+ }
+ }
+ };
+ }
+ return config;
+}
+function processCSSNesting(css, blockSelector) {
+ let processedCSS = '';
+
+ // Split CSS nested rules.
+ const parts = css.split('&');
+ parts.forEach(part => {
+ const isRootCss = !part.includes('{');
+ if (isRootCss) {
+ // If the part doesn't contain braces, it applies to the root level.
+ processedCSS += `:root :where(${blockSelector}){${part.trim()}}`;
+ } else {
+ // If the part contains braces, it's a nested CSS rule.
+ const splittedPart = part.replace('}', '').split('{');
+ if (splittedPart.length !== 2) {
+ return;
+ }
+ const [nestedSelector, cssValue] = splittedPart;
+ const combinedSelector = nestedSelector.startsWith(' ') ? scopeSelector(blockSelector, nestedSelector) : appendToSelector(blockSelector, nestedSelector);
+ processedCSS += `:root :where(${combinedSelector}){${cssValue.trim()}}`;
+ }
+ });
+ return processedCSS;
+}
+
+/**
+ * Returns the global styles output using a global styles configuration.
+ * If wishing to generate global styles and settings based on the
+ * global styles config loaded in the editor context, use `useGlobalStylesOutput()`.
+ * The use case for a custom config is to generate bespoke styles
+ * and settings for previews, or other out-of-editor experiences.
+ *
+ * @param {Object} mergedConfig Global styles configuration.
+ * @param {boolean} disableRootPadding Disable root padding styles.
+ *
+ * @return {Array} Array of stylesheets and settings.
+ */
+function useGlobalStylesOutputWithConfig(mergedConfig = {}, disableRootPadding) {
+ const [blockGap] = useGlobalSetting('spacing.blockGap');
+ mergedConfig = setThemeFileUris(mergedConfig, mergedConfig?._links?.['wp:theme-file']);
+ const hasBlockGapSupport = blockGap !== null;
+ const hasFallbackGapSupport = !hasBlockGapSupport; // This setting isn't useful yet: it exists as a placeholder for a future explicit fallback styles support.
+ const disableLayoutStyles = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getSettings
+ } = select(store);
+ return !!getSettings().disableLayoutStyles;
+ });
+ const {
+ getBlockStyles
+ } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blocks_namespaceObject.store);
+ return (0,external_wp_element_namespaceObject.useMemo)(() => {
+ var _updatedConfig$styles;
+ if (!mergedConfig?.styles || !mergedConfig?.settings) {
+ return [];
+ }
+ const updatedConfig = updateConfigWithSeparator(mergedConfig);
+ const blockSelectors = getBlockSelectors((0,external_wp_blocks_namespaceObject.getBlockTypes)(), getBlockStyles);
+ const customProperties = toCustomProperties(updatedConfig, blockSelectors);
+ const globalStyles = toStyles(updatedConfig, blockSelectors, hasBlockGapSupport, hasFallbackGapSupport, disableLayoutStyles, disableRootPadding);
+ const svgs = toSvgFilters(updatedConfig, blockSelectors);
+ const styles = [{
+ css: customProperties,
+ isGlobalStyles: true
+ }, {
+ css: globalStyles,
+ isGlobalStyles: true
+ },
+ // Load custom CSS in own stylesheet so that any invalid CSS entered in the input won't break all the global styles in the editor.
+ {
+ css: (_updatedConfig$styles = updatedConfig.styles.css) !== null && _updatedConfig$styles !== void 0 ? _updatedConfig$styles : '',
+ isGlobalStyles: true
+ }, {
+ assets: svgs,
+ __unstableType: 'svg',
+ isGlobalStyles: true
+ }];
+
+ // Loop through the blocks to check if there are custom CSS values.
+ // If there are, get the block selector and push the selector together with
+ // the CSS value to the 'stylesheets' array.
+ (0,external_wp_blocks_namespaceObject.getBlockTypes)().forEach(blockType => {
+ if (updatedConfig.styles.blocks[blockType.name]?.css) {
+ const selector = blockSelectors[blockType.name].selector;
+ styles.push({
+ css: processCSSNesting(updatedConfig.styles.blocks[blockType.name]?.css, selector),
+ isGlobalStyles: true
+ });
+ }
+ });
+ return [styles, updatedConfig.settings];
+ }, [hasBlockGapSupport, hasFallbackGapSupport, mergedConfig, disableLayoutStyles, disableRootPadding, getBlockStyles]);
+}
+
+/**
+ * Returns the global styles output based on the current state of global styles config loaded in the editor context.
+ *
+ * @param {boolean} disableRootPadding Disable root padding styles.
+ *
+ * @return {Array} Array of stylesheets and settings.
+ */
+function useGlobalStylesOutput(disableRootPadding = false) {
+ const {
+ merged: mergedConfig
+ } = (0,external_wp_element_namespaceObject.useContext)(GlobalStylesContext);
+ return useGlobalStylesOutputWithConfig(mergedConfig, disableRootPadding);
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/block-style-variation.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+
+const VARIATION_PREFIX = 'is-style-';
+function getVariationMatches(className) {
+ if (!className) {
+ return [];
+ }
+ return className.split(/\s+/).reduce((matches, name) => {
+ if (name.startsWith(VARIATION_PREFIX)) {
+ const match = name.slice(VARIATION_PREFIX.length);
+ if (match !== 'default') {
+ matches.push(match);
+ }
+ }
+ return matches;
+ }, []);
+}
+
+/**
+ * Get the first block style variation that has been registered from the class string.
+ *
+ * @param {string} className CSS class string for a block.
+ * @param {Array} registeredStyles Currently registered block styles.
+ *
+ * @return {string|null} The name of the first registered variation.
+ */
+function getVariationNameFromClass(className, registeredStyles = []) {
+ // The global flag affects how capturing groups work in JS. So the regex
+ // below will only return full CSS classes not just the variation name.
+ const matches = getVariationMatches(className);
+ if (!matches) {
+ return null;
+ }
+ for (const variation of matches) {
+ if (registeredStyles.some(style => style.name === variation)) {
+ return variation;
+ }
+ }
+ return null;
+}
+
+// A helper component to apply a style override using the useStyleOverride hook.
+function OverrideStyles({
+ override
+}) {
+ useStyleOverride(override);
+}
+
+/**
+ * This component is used to generate new block style variation overrides
+ * based on an incoming theme config. If a matching style is found in the config,
+ * a new override is created and returned. The overrides can be used in conjunction with
+ * useStyleOverride to apply the new styles to the editor. Its use is
+ * subject to change.
+ *
+ * @param {Object} props Props.
+ * @param {Object} props.config A global styles object, containing settings and styles.
+ * @return {JSX.Element|undefined} An array of new block variation overrides.
+ */
+function __unstableBlockStyleVariationOverridesWithConfig({
+ config
+}) {
+ const {
+ getBlockStyles,
+ overrides
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => ({
+ getBlockStyles: select(external_wp_blocks_namespaceObject.store).getBlockStyles,
+ overrides: unlock(select(store)).getStyleOverrides()
+ }), []);
+ const {
+ getBlockName
+ } = (0,external_wp_data_namespaceObject.useSelect)(store);
+ const overridesWithConfig = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ if (!overrides?.length) {
+ return;
+ }
+ const newOverrides = [];
+ const overriddenClientIds = [];
+ for (const [, override] of overrides) {
+ if (override?.variation && override?.clientId &&
+ /*
+ * Because this component overwrites existing style overrides,
+ * filter out any overrides that are already present in the store.
+ */
+ !overriddenClientIds.includes(override.clientId)) {
+ const blockName = getBlockName(override.clientId);
+ const configStyles = config?.styles?.blocks?.[blockName]?.variations?.[override.variation];
+ if (configStyles) {
+ const variationConfig = {
+ settings: config?.settings,
+ // The variation style data is all that is needed to generate
+ // the styles for the current application to a block. The variation
+ // name is updated to match the instance specific class name.
+ styles: {
+ blocks: {
+ [blockName]: {
+ variations: {
+ [`${override.variation}-${override.clientId}`]: configStyles
+ }
+ }
+ }
+ }
+ };
+ const blockSelectors = getBlockSelectors((0,external_wp_blocks_namespaceObject.getBlockTypes)(), getBlockStyles, override.clientId);
+ const hasBlockGapSupport = false;
+ const hasFallbackGapSupport = true;
+ const disableLayoutStyles = true;
+ const disableRootPadding = true;
+ const variationStyles = toStyles(variationConfig, blockSelectors, hasBlockGapSupport, hasFallbackGapSupport, disableLayoutStyles, disableRootPadding, {
+ blockGap: false,
+ blockStyles: true,
+ layoutStyles: false,
+ marginReset: false,
+ presets: false,
+ rootPadding: false,
+ variationStyles: true
+ });
+ newOverrides.push({
+ id: `${override.variation}-${override.clientId}`,
+ css: variationStyles,
+ __unstableType: 'variation',
+ variation: override.variation,
+ // The clientId will be stored with the override and used to ensure
+ // the order of overrides matches the order of blocks so that the
+ // correct CSS cascade is maintained.
+ clientId: override.clientId
+ });
+ overriddenClientIds.push(override.clientId);
+ }
+ }
+ }
+ return newOverrides;
+ }, [config, overrides, getBlockStyles, getBlockName]);
+ if (!overridesWithConfig || !overridesWithConfig.length) {
+ return;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: overridesWithConfig.map(override => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OverrideStyles, {
+ override: override
+ }, override.id))
+ });
+}
+
+/**
+ * Retrieves any variation styles data and resolves any referenced values.
+ *
+ * @param {Object} globalStyles A complete global styles object, containing settings and styles.
+ * @param {string} name The name of the desired block type.
+ * @param {variation} variation The of the block style variation to retrieve data for.
+ *
+ * @return {Object|undefined} The global styles data for the specified variation.
+ */
+function getVariationStylesWithRefValues(globalStyles, name, variation) {
+ if (!globalStyles?.styles?.blocks?.[name]?.variations?.[variation]) {
+ return;
+ }
+
+ // Helper to recursively look for `ref` values to resolve.
+ const replaceRefs = variationStyles => {
+ Object.keys(variationStyles).forEach(key => {
+ const value = variationStyles[key];
+
+ // Only process objects.
+ if (typeof value === 'object' && value !== null) {
+ // Process `ref` value if present.
+ if (value.ref !== undefined) {
+ if (typeof value.ref !== 'string' || value.ref.trim() === '') {
+ // Remove invalid ref.
+ delete variationStyles[key];
+ } else {
+ // Resolve `ref` value.
+ const refValue = getValueFromObjectPath(globalStyles, value.ref);
+ if (refValue) {
+ variationStyles[key] = refValue;
+ } else {
+ delete variationStyles[key];
+ }
+ }
+ } else {
+ // Recursively resolve `ref` values in nested objects.
+ replaceRefs(value);
+
+ // After recursion, if value is empty due to explicitly
+ // `undefined` ref value, remove it.
+ if (Object.keys(value).length === 0) {
+ delete variationStyles[key];
+ }
+ }
+ }
+ });
+ };
+ // Deep clone variation node to avoid mutating it within global styles and losing refs.
+ const styles = JSON.parse(JSON.stringify(globalStyles.styles.blocks[name].variations[variation]));
+ replaceRefs(styles);
+ return styles;
+}
+function useBlockStyleVariation(name, variation, clientId) {
+ // Prefer global styles data in GlobalStylesContext, which are available
+ // if in the site editor. Otherwise fall back to whatever is in the
+ // editor settings and available in the post editor.
+ const {
+ merged: mergedConfig
+ } = (0,external_wp_element_namespaceObject.useContext)(GlobalStylesContext);
+ const {
+ globalSettings,
+ globalStyles
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const settings = select(store).getSettings();
+ return {
+ globalSettings: settings.__experimentalFeatures,
+ globalStyles: settings[globalStylesDataKey]
+ };
+ }, []);
+ return (0,external_wp_element_namespaceObject.useMemo)(() => {
+ var _mergedConfig$setting, _mergedConfig$styles, _mergedConfig$setting2;
+ const variationStyles = getVariationStylesWithRefValues({
+ settings: (_mergedConfig$setting = mergedConfig?.settings) !== null && _mergedConfig$setting !== void 0 ? _mergedConfig$setting : globalSettings,
+ styles: (_mergedConfig$styles = mergedConfig?.styles) !== null && _mergedConfig$styles !== void 0 ? _mergedConfig$styles : globalStyles
+ }, name, variation);
+ return {
+ settings: (_mergedConfig$setting2 = mergedConfig?.settings) !== null && _mergedConfig$setting2 !== void 0 ? _mergedConfig$setting2 : globalSettings,
+ // The variation style data is all that is needed to generate
+ // the styles for the current application to a block. The variation
+ // name is updated to match the instance specific class name.
+ styles: {
+ blocks: {
+ [name]: {
+ variations: {
+ [`${variation}-${clientId}`]: variationStyles
+ }
+ }
+ }
+ }
+ };
+ }, [mergedConfig, globalSettings, globalStyles, variation, clientId, name]);
+}
+
+// Rather than leveraging `useInstanceId` here, the `clientId` is used.
+// This is so that the variation style override's ID is predictable
+// when the order of applied style variations changes.
+function block_style_variation_useBlockProps({
+ name,
+ className,
+ clientId
+}) {
+ const {
+ getBlockStyles
+ } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blocks_namespaceObject.store);
+ const registeredStyles = getBlockStyles(name);
+ const variation = getVariationNameFromClass(className, registeredStyles);
+ const variationClass = `${VARIATION_PREFIX}${variation}-${clientId}`;
+ const {
+ settings,
+ styles
+ } = useBlockStyleVariation(name, variation, clientId);
+ const variationStyles = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ if (!variation) {
+ return;
+ }
+ const variationConfig = {
+ settings,
+ styles
+ };
+ const blockSelectors = getBlockSelectors((0,external_wp_blocks_namespaceObject.getBlockTypes)(), getBlockStyles, clientId);
+ const hasBlockGapSupport = false;
+ const hasFallbackGapSupport = true;
+ const disableLayoutStyles = true;
+ const disableRootPadding = true;
+ return toStyles(variationConfig, blockSelectors, hasBlockGapSupport, hasFallbackGapSupport, disableLayoutStyles, disableRootPadding, {
+ blockGap: false,
+ blockStyles: true,
+ layoutStyles: false,
+ marginReset: false,
+ presets: false,
+ rootPadding: false,
+ variationStyles: true
+ });
+ }, [variation, settings, styles, getBlockStyles, clientId]);
+ useStyleOverride({
+ id: `variation-${clientId}`,
+ css: variationStyles,
+ __unstableType: 'variation',
+ variation,
+ // The clientId will be stored with the override and used to ensure
+ // the order of overrides matches the order of blocks so that the
+ // correct CSS cascade is maintained.
+ clientId
+ });
+ return variation ? {
+ className: variationClass
+ } : {};
+}
+/* harmony default export */ const block_style_variation = ({
+ hasSupport: () => true,
+ attributeKeys: ['className'],
+ isMatch: ({
+ className
+ }) => getVariationMatches(className).length > 0,
+ useBlockProps: block_style_variation_useBlockProps
+});
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/layout.js
/**
* External dependencies
*/
@@ -32645,7 +35065,13 @@ function position_useBlockProps({
+
+
+
const layoutBlockSupportKey = 'layout';
+const {
+ kebabCase: layout_kebabCase
+} = unlock(external_wp_components_namespaceObject.privateApis);
function hasLayoutBlockSupport(blockName) {
return (0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockName, 'layout') || (0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockName, '__experimentalLayout');
}
@@ -32660,15 +35086,6 @@ function hasLayoutBlockSupport(blockName) {
*/
function useLayoutClasses(blockAttributes = {}, blockName = '') {
const {
- kebabCase
- } = unlock(external_wp_components_namespaceObject.privateApis);
- const rootPaddingAlignment = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getSettings
- } = select(store);
- return getSettings().__experimentalFeatures?.useRootPaddingAwareAlignments;
- }, []);
- const {
layout
} = blockAttributes;
const {
@@ -32686,14 +35103,17 @@ function useLayoutClasses(blockAttributes = {}, blockName = '') {
const compoundClassName = `wp-block-${fullBlockName}-${baseClassName}`;
layoutClassnames.push(baseClassName, compoundClassName);
}
- if ((usedLayout?.inherit || usedLayout?.contentSize || usedLayout?.type === 'constrained') && rootPaddingAlignment) {
+ const hasGlobalPadding = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ return (usedLayout?.inherit || usedLayout?.contentSize || usedLayout?.type === 'constrained') && select(store).getSettings().__experimentalFeatures?.useRootPaddingAwareAlignments;
+ }, [usedLayout?.contentSize, usedLayout?.inherit, usedLayout?.type]);
+ if (hasGlobalPadding) {
layoutClassnames.push('has-global-padding');
}
if (usedLayout?.orientation) {
- layoutClassnames.push(`is-${kebabCase(usedLayout.orientation)}`);
+ layoutClassnames.push(`is-${layout_kebabCase(usedLayout.orientation)}`);
}
if (usedLayout?.justifyContent) {
- layoutClassnames.push(`is-content-justification-${kebabCase(usedLayout.justifyContent)}`);
+ layoutClassnames.push(`is-content-justification-${layout_kebabCase(usedLayout.justifyContent)}`);
}
if (usedLayout?.flexWrap && usedLayout.flexWrap === 'nowrap') {
layoutClassnames.push('is-nowrap');
@@ -32723,27 +35143,25 @@ function useLayoutStyles(blockAttributes = {}, blockName, selector) {
const fullLayoutType = getLayoutType(usedLayout?.type || 'default');
const [blockGapSupport] = use_settings_useSettings('spacing.blockGap');
const hasBlockGapSupport = blockGapSupport !== null;
- const css = fullLayoutType?.getLayoutStyle?.({
+ return fullLayoutType?.getLayoutStyle?.({
blockName,
selector,
layout,
style,
hasBlockGapSupport
});
- return css;
}
function LayoutPanelPure({
layout,
setAttributes,
- name: blockName
+ name: blockName,
+ clientId
}) {
const settings = useBlockSettings(blockName);
// Block settings come from theme.json under settings.[blockName].
const {
layout: layoutSettings
} = settings;
- // Layout comes from block attributes.
- const [defaultThemeLayout] = use_settings_useSettings('layout');
const {
themeSupportsLayout
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
@@ -32775,14 +35193,28 @@ function LayoutPanelPure({
return null;
}
+ /*
+ * Try to find the layout type from either the
+ * block's layout settings or any saved layout config.
+ */
+ const blockSupportAndLayout = {
+ ...layoutBlockSupport,
+ ...layout
+ };
+ const {
+ type,
+ default: {
+ type: defaultType = 'default'
+ } = {}
+ } = blockSupportAndLayout;
+ const blockLayoutType = type || defaultType;
+
// Only show the inherit toggle if it's supported,
- // a default theme layout is set (e.g. one that provides `contentSize` and/or `wideSize` values),
// and either the default / flow or the constrained layout type is in use, as the toggle switches from one to the other.
- const showInheritToggle = !!(allowInheriting && !!defaultThemeLayout && (!layout?.type || layout?.type === 'default' || layout?.type === 'constrained' || layout?.inherit));
+ const showInheritToggle = !!(allowInheriting && (!blockLayoutType || blockLayoutType === 'default' || blockLayoutType === 'constrained' || blockSupportAndLayout.inherit));
const usedLayout = layout || defaultBlockLayout || {};
const {
inherit = false,
- type = 'default',
contentSize = null
} = usedLayout;
/**
@@ -32790,10 +35222,10 @@ function LayoutPanelPure({
* `constrained` layouts and it should not be taken into account when other
* `layout` types are used.
*/
- if ((type === 'default' || type === 'constrained') && !themeSupportsLayout) {
+ if ((blockLayoutType === 'default' || blockLayoutType === 'constrained') && !themeSupportsLayout) {
return null;
}
- const layoutType = getLayoutType(type);
+ const layoutType = getLayoutType(blockLayoutType);
const constrainedType = getLayoutType('constrained');
const displayControlsForLegacyLayouts = !usedLayout.type && (contentSize || inherit);
const hasContentSizeOrLegacySettings = !!inherit || !!contentSize;
@@ -32805,35 +35237,48 @@ function LayoutPanelPure({
const onChangeLayout = newLayout => setAttributes({
layout: newLayout
});
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(inspector_controls, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Layout')
- }, showInheritToggle && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- className: "block-editor-hooks__toggle-control",
- label: (0,external_wp_i18n_namespaceObject.__)('Inner blocks use content width'),
- checked: layoutType?.name === 'constrained' || hasContentSizeOrLegacySettings,
- onChange: () => setAttributes({
- layout: {
- type: layoutType?.name === 'constrained' || hasContentSizeOrLegacySettings ? 'default' : 'constrained'
- }
- }),
- help: layoutType?.name === 'constrained' || hasContentSizeOrLegacySettings ? (0,external_wp_i18n_namespaceObject.__)('Nested blocks use content width with options for full and wide widths.') : (0,external_wp_i18n_namespaceObject.__)('Nested blocks will fill the width of this container. Toggle to constrain.')
- })), !inherit && allowSwitching && (0,external_React_.createElement)(LayoutTypeSwitcher, {
- type: type,
- onChange: onChangeType
- }), layoutType && layoutType.name !== 'default' && (0,external_React_.createElement)(layoutType.inspectorControls, {
- layout: usedLayout,
- onChange: onChangeLayout,
- layoutBlockSupport: blockSupportAndThemeSettings
- }), constrainedType && displayControlsForLegacyLayouts && (0,external_React_.createElement)(constrainedType.inspectorControls, {
- layout: usedLayout,
- onChange: onChangeLayout,
- layoutBlockSupport: blockSupportAndThemeSettings
- }))), !inherit && layoutType && (0,external_React_.createElement)(layoutType.toolBarControls, {
- layout: usedLayout,
- onChange: onChangeLayout,
- layoutBlockSupport: layoutBlockSupport
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Layout'),
+ children: [showInheritToggle && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ className: "block-editor-hooks__toggle-control",
+ label: (0,external_wp_i18n_namespaceObject.__)('Inner blocks use content width'),
+ checked: layoutType?.name === 'constrained' || hasContentSizeOrLegacySettings,
+ onChange: () => setAttributes({
+ layout: {
+ type: layoutType?.name === 'constrained' || hasContentSizeOrLegacySettings ? 'default' : 'constrained'
+ }
+ }),
+ help: layoutType?.name === 'constrained' || hasContentSizeOrLegacySettings ? (0,external_wp_i18n_namespaceObject.__)('Nested blocks use content width with options for full and wide widths.') : (0,external_wp_i18n_namespaceObject.__)('Nested blocks will fill the width of this container. Toggle to constrain.')
+ })
+ }), !inherit && allowSwitching && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LayoutTypeSwitcher, {
+ type: blockLayoutType,
+ onChange: onChangeType
+ }), layoutType && layoutType.name !== 'default' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(layoutType.inspectorControls, {
+ layout: usedLayout,
+ onChange: onChangeLayout,
+ layoutBlockSupport: blockSupportAndThemeSettings,
+ name: blockName,
+ clientId: clientId
+ }), constrainedType && displayControlsForLegacyLayouts && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(constrainedType.inspectorControls, {
+ layout: usedLayout,
+ onChange: onChangeLayout,
+ layoutBlockSupport: blockSupportAndThemeSettings,
+ name: blockName,
+ clientId: clientId
+ })]
+ })
+ }), !inherit && layoutType && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(layoutType.toolBarControls, {
+ layout: usedLayout,
+ onChange: onChangeLayout,
+ layoutBlockSupport: layoutBlockSupport,
+ name: blockName,
+ clientId: clientId
+ })]
+ });
}
/* harmony default export */ const layout = ({
shareWithChildBlocks: true,
@@ -32847,16 +35292,18 @@ function LayoutTypeSwitcher({
type,
onChange
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ButtonGroup, null, getLayoutTypes().map(({
- name,
- label
- }) => {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- key: name,
- isPressed: type === name,
- onClick: () => onChange(name)
- }, label);
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ButtonGroup, {
+ children: getLayoutTypes().map(({
+ name,
+ label
+ }) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ isPressed: type === name,
+ onClick: () => onChange(name),
+ children: label
+ }, name);
+ })
+ });
}
/**
@@ -32884,6 +35331,7 @@ function layout_addAttribute(settings) {
function BlockWithLayoutStyles({
block: BlockListBlock,
props,
+ blockGapSupport,
layoutClasses
}) {
const {
@@ -32901,13 +35349,9 @@ function BlockWithLayoutStyles({
...layout,
type: 'constrained'
} : layout || defaultBlockLayout || {};
- const {
- kebabCase
- } = unlock(external_wp_components_namespaceObject.privateApis);
- const selectorPrefix = `wp-container-${kebabCase(name)}-is-layout-`;
+ const selectorPrefix = `wp-container-${layout_kebabCase(name)}-is-layout-`;
// Higher specificity to override defaults from theme.json.
- const selector = `.${selectorPrefix}${id}.${selectorPrefix}${id}`;
- const [blockGapSupport] = use_settings_useSettings('spacing.blockGap');
+ const selector = `.${selectorPrefix}${id}`;
const hasBlockGapSupport = blockGapSupport !== null;
// Get CSS string for the current layout type.
@@ -32922,13 +35366,13 @@ function BlockWithLayoutStyles({
});
// Attach a `wp-container-` id-based class name as well as a layout class name such as `is-layout-flex`.
- const layoutClassNames = classnames_default()({
+ const layoutClassNames = dist_clsx({
[`${selectorPrefix}${id}`]: !!css // Only attach a container class if there is generated CSS to be attached.
}, layoutClasses);
useStyleOverride({
css
});
- return (0,external_React_.createElement)(BlockListBlock, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockListBlock, {
...props,
__unstableLayoutClassNames: layoutClassNames
});
@@ -32943,33 +35387,236 @@ function BlockWithLayoutStyles({
*/
const withLayoutStyles = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockListBlock => props => {
const {
+ clientId,
name,
attributes
} = props;
- const blockSupportsLayout = hasLayoutBlockSupport(props.name);
+ const blockSupportsLayout = hasLayoutBlockSupport(name);
const layoutClasses = useLayoutClasses(attributes, name);
- const shouldRenderLayoutStyles = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const extraProps = (0,external_wp_data_namespaceObject.useSelect)(select => {
// The callback returns early to avoid block editor subscription.
if (!blockSupportsLayout) {
- return false;
+ return;
}
- return !select(store).getSettings().disableLayoutStyles;
- }, [blockSupportsLayout]);
- if (!shouldRenderLayoutStyles) {
- return (0,external_React_.createElement)(BlockListBlock, {
+ const {
+ getSettings,
+ getBlockSettings
+ } = unlock(select(store));
+ const {
+ disableLayoutStyles
+ } = getSettings();
+ if (disableLayoutStyles) {
+ return;
+ }
+ const [blockGapSupport] = getBlockSettings(clientId, 'spacing.blockGap');
+ return {
+ blockGapSupport
+ };
+ }, [blockSupportsLayout, clientId]);
+ if (!extraProps) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockListBlock, {
...props,
__unstableLayoutClassNames: blockSupportsLayout ? layoutClasses : undefined
});
}
- return (0,external_React_.createElement)(BlockWithLayoutStyles, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockWithLayoutStyles, {
block: BlockListBlock,
props: props,
- layoutClasses: layoutClasses
+ layoutClasses: layoutClasses,
+ ...extraProps
});
}, 'withLayoutStyles');
(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/layout/addAttribute', layout_addAttribute);
(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/editor/layout/with-layout-styles', withLayoutStyles);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/grid-visualizer/grid-item-resizer.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+function GridItemResizer({
+ clientId,
+ bounds,
+ onChange
+}) {
+ const blockElement = useBlockElement(clientId);
+ const rootBlockElement = blockElement?.parentElement;
+ if (!blockElement || !rootBlockElement) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GridItemResizerInner, {
+ clientId: clientId,
+ bounds: bounds,
+ blockElement: blockElement,
+ rootBlockElement: rootBlockElement,
+ onChange: onChange
+ });
+}
+function GridItemResizerInner({
+ clientId,
+ bounds,
+ blockElement,
+ rootBlockElement,
+ onChange
+}) {
+ const [resizeDirection, setResizeDirection] = (0,external_wp_element_namespaceObject.useState)(null);
+ const [enableSide, setEnableSide] = (0,external_wp_element_namespaceObject.useState)({
+ top: false,
+ bottom: false,
+ left: false,
+ right: false
+ });
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ const observer = new window.ResizeObserver(() => {
+ const blockClientRect = blockElement.getBoundingClientRect();
+ const rootBlockClientRect = rootBlockElement.getBoundingClientRect();
+ setEnableSide({
+ top: blockClientRect.top > rootBlockClientRect.top,
+ bottom: blockClientRect.bottom < rootBlockClientRect.bottom,
+ left: blockClientRect.left > rootBlockClientRect.left,
+ right: blockClientRect.right < rootBlockClientRect.right
+ });
+ });
+ observer.observe(blockElement);
+ return () => observer.disconnect();
+ }, [blockElement, rootBlockElement]);
+ const justification = {
+ right: 'flex-start',
+ left: 'flex-end'
+ };
+ const alignment = {
+ top: 'flex-end',
+ bottom: 'flex-start'
+ };
+ const styles = {
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ ...(justification[resizeDirection] && {
+ justifyContent: justification[resizeDirection]
+ }),
+ ...(alignment[resizeDirection] && {
+ alignItems: alignment[resizeDirection]
+ })
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(cover, {
+ className: "block-editor-grid-item-resizer",
+ clientId: clientId,
+ __unstablePopoverSlot: "block-toolbar",
+ additionalStyles: styles,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ResizableBox, {
+ className: "block-editor-grid-item-resizer__box",
+ size: {
+ width: '100%',
+ height: '100%'
+ },
+ enable: {
+ bottom: enableSide.bottom,
+ bottomLeft: false,
+ bottomRight: false,
+ left: enableSide.left,
+ right: enableSide.right,
+ top: enableSide.top,
+ topLeft: false,
+ topRight: false
+ },
+ bounds: bounds,
+ boundsByDirection: true,
+ onResizeStart: (event, direction) => {
+ /*
+ * The container justification and alignment need to be set
+ * according to the direction the resizer is being dragged in,
+ * so that it resizes in the right direction.
+ */
+ setResizeDirection(direction);
+
+ /*
+ * The mouseup event on the resize handle doesn't trigger if the mouse
+ * isn't directly above the handle, so we try to detect if it happens
+ * outside the grid and dispatch a mouseup event on the handle.
+ */
+ blockElement.ownerDocument.addEventListener('mouseup', () => {
+ event.target.dispatchEvent(new Event('mouseup', {
+ bubbles: true
+ }));
+ }, {
+ once: true
+ });
+ },
+ onResizeStop: (event, direction, boxElement) => {
+ const columnGap = parseFloat(getComputedCSS(rootBlockElement, 'column-gap'));
+ const rowGap = parseFloat(getComputedCSS(rootBlockElement, 'row-gap'));
+ const gridColumnTracks = getGridTracks(getComputedCSS(rootBlockElement, 'grid-template-columns'), columnGap);
+ const gridRowTracks = getGridTracks(getComputedCSS(rootBlockElement, 'grid-template-rows'), rowGap);
+ const rect = new window.DOMRect(blockElement.offsetLeft + boxElement.offsetLeft, blockElement.offsetTop + boxElement.offsetTop, boxElement.offsetWidth, boxElement.offsetHeight);
+ const columnStart = getClosestTrack(gridColumnTracks, rect.left) + 1;
+ const rowStart = getClosestTrack(gridRowTracks, rect.top) + 1;
+ const columnEnd = getClosestTrack(gridColumnTracks, rect.right, 'end') + 1;
+ const rowEnd = getClosestTrack(gridRowTracks, rect.bottom, 'end') + 1;
+ onChange({
+ columnSpan: columnEnd - columnStart + 1,
+ rowSpan: rowEnd - rowStart + 1
+ });
+ }
+ })
+ });
+}
+
+/**
+ * Given a grid-template-columns or grid-template-rows CSS property value, gets the start and end
+ * position in pixels of each grid track.
+ *
+ * https://css-tricks.com/snippets/css/complete-guide-grid/#aa-grid-track
+ *
+ * @param {string} template The grid-template-columns or grid-template-rows CSS property value.
+ * Only supports fixed sizes in pixels.
+ * @param {number} gap The gap between grid tracks in pixels.
+ *
+ * @return {Array<{start: number, end: number}>} An array of objects with the start and end
+ * position in pixels of each grid track.
+ */
+function getGridTracks(template, gap) {
+ const tracks = [];
+ for (const size of template.split(' ')) {
+ const previousTrack = tracks[tracks.length - 1];
+ const start = previousTrack ? previousTrack.end + gap : 0;
+ const end = start + parseFloat(size);
+ tracks.push({
+ start,
+ end
+ });
+ }
+ return tracks;
+}
+
+/**
+ * Given an array of grid tracks and a position in pixels, gets the index of the closest track to
+ * that position.
+ *
+ * https://css-tricks.com/snippets/css/complete-guide-grid/#aa-grid-track
+ *
+ * @param {Array<{start: number, end: number}>} tracks An array of objects with the start and end
+ * position in pixels of each grid track.
+ * @param {number} position The position in pixels.
+ * @param {string} edge The edge of the track to compare the
+ * position to. Either 'start' or 'end'.
+ *
+ * @return {number} The index of the closest track to the position. 0-based, unlike CSS grid which
+ * is 1-based.
+ */
+function getClosestTrack(tracks, position, edge = 'start') {
+ return tracks.reduce((closest, track, index) => Math.abs(track[edge] - position) < Math.abs(tracks[closest][edge] - position) ? index : closest, 0);
+}
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/layout-child.js
/**
* WordPress dependencies
@@ -32977,11 +35624,17 @@ const withLayoutStyles = (0,external_wp_compose_namespaceObject.createHigherOrde
+
/**
* Internal dependencies
*/
+
+
+
+
+
function useBlockPropsChildLayoutStyles({
style
}) {
@@ -32992,8 +35645,17 @@ function useBlockPropsChildLayoutStyles({
const layout = (_style$layout = style?.layout) !== null && _style$layout !== void 0 ? _style$layout : {};
const {
selfStretch,
- flexSize
+ flexSize,
+ columnStart,
+ rowStart,
+ columnSpan,
+ rowSpan
} = layout;
+ const parentLayout = useLayout() || {};
+ const {
+ columnCount,
+ minimumColumnWidth
+ } = parentLayout;
const id = (0,external_wp_compose_namespaceObject.useInstanceId)(useBlockPropsChildLayoutStyles);
const selector = `.wp-container-content-${id}`;
let css = '';
@@ -33007,6 +35669,67 @@ function useBlockPropsChildLayoutStyles({
css = `${selector} {
flex-grow: 1;
}`;
+ } else if (columnStart && columnSpan) {
+ css = `${selector} {
+ grid-column: ${columnStart} / span ${columnSpan};
+ }`;
+ } else if (columnStart) {
+ css = `${selector} {
+ grid-column: ${columnStart};
+ }`;
+ } else if (columnSpan) {
+ css = `${selector} {
+ grid-column: span ${columnSpan};
+ }`;
+ }
+ /**
+ * If minimumColumnWidth is set on the parent, or if no
+ * columnCount is set, the grid is responsive so a
+ * container query is needed for the span to resize.
+ */
+ if ((columnSpan || columnStart) && (minimumColumnWidth || !columnCount)) {
+ // Check if columnSpan and columnStart are numbers so Math.max doesn't break.
+ const columnSpanNumber = columnSpan ? parseInt(columnSpan) : null;
+ const columnStartNumber = columnStart ? parseInt(columnStart) : null;
+ const highestNumber = Math.max(columnSpanNumber, columnStartNumber);
+ let parentColumnValue = parseFloat(minimumColumnWidth);
+ /**
+ * 12rem is the default minimumColumnWidth value.
+ * If parentColumnValue is not a number, default to 12.
+ */
+ if (isNaN(parentColumnValue)) {
+ parentColumnValue = 12;
+ }
+ let parentColumnUnit = minimumColumnWidth?.replace(parentColumnValue, '');
+ /**
+ * Check that parent column unit is either 'px', 'rem' or 'em'.
+ * If not, default to 'rem'.
+ */
+ if (!['px', 'rem', 'em'].includes(parentColumnUnit)) {
+ parentColumnUnit = 'rem';
+ }
+ const defaultGapValue = parentColumnUnit === 'px' ? 24 : 1.5;
+ const containerQueryValue = highestNumber * parentColumnValue + (highestNumber - 1) * defaultGapValue;
+ // If a span is set we want to preserve it as long as possible, otherwise we just reset the value.
+ const gridColumnValue = columnSpan ? '1/-1' : 'auto';
+ css += `@container (max-width: ${containerQueryValue}${parentColumnUnit}) {
+ ${selector} {
+ grid-column: ${gridColumnValue};
+ }
+ }`;
+ }
+ if (rowStart && rowSpan) {
+ css += `${selector} {
+ grid-row: ${rowStart} / span ${rowSpan};
+ }`;
+ } else if (rowStart) {
+ css += `${selector} {
+ grid-row: ${rowStart};
+ }`;
+ } else if (rowSpan) {
+ css += `${selector} {
+ grid-row: span ${rowSpan};
+ }`;
}
}
useStyleOverride({
@@ -33023,8 +35746,54 @@ function useBlockPropsChildLayoutStyles({
className: `wp-container-content-${id}`
};
}
+function ChildLayoutControlsPure({
+ clientId,
+ style,
+ setAttributes
+}) {
+ const {
+ type: parentLayoutType = 'default',
+ allowSizingOnChildren = false
+ } = useLayout() || {};
+ const rootClientId = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ return select(store).getBlockRootClientId(clientId);
+ }, [clientId]);
+
+ // Use useState() instead of useRef() so that GridItemResizer updates when ref is set.
+ const [resizerBounds, setResizerBounds] = (0,external_wp_element_namespaceObject.useState)();
+ if (parentLayoutType !== 'grid') {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GridVisualizer, {
+ clientId: rootClientId,
+ contentRef: setResizerBounds
+ }), allowSizingOnChildren && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GridItemResizer, {
+ clientId: clientId
+ // Don't allow resizing beyond the grid visualizer.
+ ,
+ bounds: resizerBounds,
+ onChange: ({
+ columnSpan,
+ rowSpan
+ }) => {
+ setAttributes({
+ style: {
+ ...style,
+ layout: {
+ ...style?.layout,
+ columnSpan,
+ rowSpan
+ }
+ }
+ });
+ }
+ })]
+ });
+}
/* harmony default export */ const layout_child = ({
useBlockProps: useBlockPropsChildLayoutStyles,
+ edit: ChildLayoutControlsPure,
attributeKeys: ['style'],
hasSupport() {
return true;
@@ -33092,7 +35861,6 @@ function useConvertToGroupButtonProps(selectedClientIds) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/convert-to-group-buttons/index.js
-
/**
* WordPress dependencies
*/
@@ -33101,12 +35869,16 @@ function useConvertToGroupButtonProps(selectedClientIds) {
+
/**
* Internal dependencies
*/
+
+
+
function ConvertToGroupButton({
clientIds,
isGroupable,
@@ -33117,6 +35889,9 @@ function ConvertToGroupButton({
onClose = () => {}
}) {
const {
+ getSelectedBlockClientIds
+ } = (0,external_wp_data_namespaceObject.useSelect)(store);
+ const {
replaceBlocks
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
const onConvertToGroup = () => {
@@ -33139,17 +35914,23 @@ function ConvertToGroupButton({
if (!isGroupable && !isUngroupable) {
return null;
}
- return (0,external_React_.createElement)(external_React_.Fragment, null, isGroupable && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- onConvertToGroup();
- onClose();
- }
- }, (0,external_wp_i18n_namespaceObject._x)('Group', 'verb')), isUngroupable && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- onConvertFromGroup();
- onClose();
- }
- }, (0,external_wp_i18n_namespaceObject._x)('Ungroup', 'Ungrouping blocks from within a grouping block back into individual blocks within the Editor ')));
+ const selectedBlockClientIds = getSelectedBlockClientIds();
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [isGroupable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ shortcut: selectedBlockClientIds.length > 1 ? external_wp_keycodes_namespaceObject.displayShortcut.primary('g') : undefined,
+ onClick: () => {
+ onConvertToGroup();
+ onClose();
+ },
+ children: (0,external_wp_i18n_namespaceObject._x)('Group', 'verb')
+ }), isUngroupable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ onConvertFromGroup();
+ onClose();
+ },
+ children: (0,external_wp_i18n_namespaceObject._x)('Ungroup', 'Ungrouping blocks from within a grouping block back into individual blocks within the Editor ')
+ })]
+ });
}
@@ -33179,13 +35960,11 @@ function useBlockLock(clientId) {
canRemoveBlock,
canLockBlockType,
getBlockName,
- getBlockRootClientId,
getTemplateLock
} = select(store);
- const rootClientId = getBlockRootClientId(clientId);
const canEdit = canEditBlock(clientId);
- const canMove = canMoveBlock(clientId, rootClientId);
- const canRemove = canRemoveBlock(clientId, rootClientId);
+ const canMove = canMoveBlock(clientId);
+ const canRemove = canRemoveBlock(clientId);
return {
canEdit,
canMove,
@@ -33198,49 +35977,51 @@ function useBlockLock(clientId) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/unlock.js
-
/**
* WordPress dependencies
*/
-const unlock_unlock = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const unlock_unlock = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"
+ })
+});
/* harmony default export */ const library_unlock = (unlock_unlock);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/lock-outline.js
-
/**
* WordPress dependencies
*/
-const lockOutline = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const lockOutline = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"
+ })
+});
/* harmony default export */ const lock_outline = (lockOutline);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/lock.js
-
/**
* WordPress dependencies
*/
-const lock_lock = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const lock_lock = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"
+ })
+});
/* harmony default export */ const library_lock = (lock_lock);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-lock/modal.js
-
/**
* WordPress dependencies
*/
@@ -33260,6 +36041,8 @@ const lock_lock = (0,external_React_.createElement)(external_wp_primitives_names
// Entity based blocks which allow edit locking
+
+
const ALLOWS_EDIT_LOCKING = ['core/block', 'core/navigation'];
function getTemplateLockValue(lock) {
// Prevents all operations.
@@ -33320,102 +36103,118 @@ function BlockLockModal({
}, [canEdit, canMove, canRemove, allowsEditLocking]);
const isAllChecked = Object.values(lock).every(Boolean);
const isMixed = Object.values(lock).some(Boolean) && !isAllChecked;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Modal, {
title: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Name of the block. */
(0,external_wp_i18n_namespaceObject.__)('Lock %s'), blockInformation.title),
overlayClassName: "block-editor-block-lock-modal",
- onRequestClose: onClose
- }, (0,external_React_.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Choose specific attributes to restrict or lock all available options.')), (0,external_React_.createElement)("form", {
- onSubmit: event => {
- event.preventDefault();
- updateBlockAttributes([clientId], {
- lock,
- templateLock: applyTemplateLock ? getTemplateLockValue(lock) : undefined
- });
- onClose();
- }
- }, (0,external_React_.createElement)("div", {
- role: "group",
- "aria-labelledby": instanceId,
- className: "block-editor-block-lock-modal__options"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- __nextHasNoMarginBottom: true,
- className: "block-editor-block-lock-modal__options-title",
- label: (0,external_React_.createElement)("span", {
- id: instanceId
- }, (0,external_wp_i18n_namespaceObject.__)('Lock all')),
- checked: isAllChecked,
- indeterminate: isMixed,
- onChange: newValue => setLock({
- move: newValue,
- remove: newValue,
- ...(allowsEditLocking ? {
- edit: newValue
- } : {})
- })
- }), (0,external_React_.createElement)("ul", {
- className: "block-editor-block-lock-modal__checklist"
- }, allowsEditLocking && (0,external_React_.createElement)("li", {
- className: "block-editor-block-lock-modal__checklist-item"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Restrict editing'),
- checked: !!lock.edit,
- onChange: edit => setLock(prevLock => ({
- ...prevLock,
- edit
- }))
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- className: "block-editor-block-lock-modal__lock-icon",
- icon: lock.edit ? library_lock : library_unlock
- })), (0,external_React_.createElement)("li", {
- className: "block-editor-block-lock-modal__checklist-item"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Disable movement'),
- checked: lock.move,
- onChange: move => setLock(prevLock => ({
- ...prevLock,
- move
- }))
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- className: "block-editor-block-lock-modal__lock-icon",
- icon: lock.move ? library_lock : library_unlock
- })), (0,external_React_.createElement)("li", {
- className: "block-editor-block-lock-modal__checklist-item"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Prevent removal'),
- checked: lock.remove,
- onChange: remove => setLock(prevLock => ({
- ...prevLock,
- remove
- }))
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- className: "block-editor-block-lock-modal__lock-icon",
- icon: lock.remove ? library_lock : library_unlock
- }))), hasTemplateLock && (0,external_React_.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- className: "block-editor-block-lock-modal__template-lock",
- label: (0,external_wp_i18n_namespaceObject.__)('Apply to all blocks inside'),
- checked: applyTemplateLock,
- disabled: lock.move && !lock.remove,
- onChange: () => setApplyTemplateLock(!applyTemplateLock)
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- className: "block-editor-block-lock-modal__actions",
- justify: "flex-end",
- expanded: false
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: onClose
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel'))), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- type: "submit"
- }, (0,external_wp_i18n_namespaceObject.__)('Apply'))))));
+ onRequestClose: onClose,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Choose specific attributes to restrict or lock all available options.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("form", {
+ onSubmit: event => {
+ event.preventDefault();
+ updateBlockAttributes([clientId], {
+ lock,
+ templateLock: applyTemplateLock ? getTemplateLockValue(lock) : undefined
+ });
+ onClose();
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ role: "group",
+ "aria-labelledby": instanceId,
+ className: "block-editor-block-lock-modal__options",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
+ __nextHasNoMarginBottom: true,
+ className: "block-editor-block-lock-modal__options-title",
+ label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ id: instanceId,
+ children: (0,external_wp_i18n_namespaceObject.__)('Lock all')
+ }),
+ checked: isAllChecked,
+ indeterminate: isMixed,
+ onChange: newValue => setLock({
+ move: newValue,
+ remove: newValue,
+ ...(allowsEditLocking ? {
+ edit: newValue
+ } : {})
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("ul", {
+ className: "block-editor-block-lock-modal__checklist",
+ children: [allowsEditLocking && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ className: "block-editor-block-lock-modal__checklist-item",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Restrict editing'),
+ checked: !!lock.edit,
+ onChange: edit => setLock(prevLock => ({
+ ...prevLock,
+ edit
+ }))
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ className: "block-editor-block-lock-modal__lock-icon",
+ icon: lock.edit ? library_lock : library_unlock
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ className: "block-editor-block-lock-modal__checklist-item",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Disable movement'),
+ checked: lock.move,
+ onChange: move => setLock(prevLock => ({
+ ...prevLock,
+ move
+ }))
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ className: "block-editor-block-lock-modal__lock-icon",
+ icon: lock.move ? library_lock : library_unlock
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ className: "block-editor-block-lock-modal__checklist-item",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Prevent removal'),
+ checked: lock.remove,
+ onChange: remove => setLock(prevLock => ({
+ ...prevLock,
+ remove
+ }))
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ className: "block-editor-block-lock-modal__lock-icon",
+ icon: lock.remove ? library_lock : library_unlock
+ })]
+ })]
+ }), hasTemplateLock && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ className: "block-editor-block-lock-modal__template-lock",
+ label: (0,external_wp_i18n_namespaceObject.__)('Apply to all blocks inside'),
+ checked: applyTemplateLock,
+ disabled: lock.move && !lock.remove,
+ onChange: () => setApplyTemplateLock(!applyTemplateLock)
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ className: "block-editor-block-lock-modal__actions",
+ justify: "flex-end",
+ expanded: false,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: onClose,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ type: "submit",
+ children: (0,external_wp_i18n_namespaceObject.__)('Apply')
+ })
+ })]
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-lock/menu-item.js
-
/**
* WordPress dependencies
*/
@@ -33429,6 +36228,9 @@ function BlockLockModal({
*/
+
+
+
function BlockLockMenuItem({
clientId
}) {
@@ -33441,19 +36243,21 @@ function BlockLockMenuItem({
return null;
}
const label = isLocked ? (0,external_wp_i18n_namespaceObject.__)('Unlock') : (0,external_wp_i18n_namespaceObject.__)('Lock');
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- icon: isLocked ? library_unlock : lock_outline,
- onClick: toggleModal,
- "aria-expanded": isModalOpen,
- "aria-haspopup": "dialog"
- }, label), isModalOpen && (0,external_React_.createElement)(BlockLockModal, {
- clientId: clientId,
- onClose: toggleModal
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: isLocked ? library_unlock : lock_outline,
+ onClick: toggleModal,
+ "aria-expanded": isModalOpen,
+ "aria-haspopup": "dialog",
+ children: label
+ }), isModalOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockLockModal, {
+ clientId: clientId,
+ onClose: toggleModal
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-mode-toggle.js
-
/**
* WordPress dependencies
*/
@@ -33467,6 +36271,7 @@ function BlockLockMenuItem({
* Internal dependencies
*/
+
const block_mode_toggle_noop = () => {};
function BlockModeToggle({
blockType,
@@ -33479,9 +36284,10 @@ function BlockModeToggle({
return null;
}
const label = mode === 'visual' ? (0,external_wp_i18n_namespaceObject.__)('Edit as HTML') : (0,external_wp_i18n_namespaceObject.__)('Edit visually');
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: onToggleMode
- }, !small && label);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: onToggleMode,
+ children: !small && label
+ });
}
/* harmony default export */ const block_mode_toggle = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)((select, {
clientId
@@ -33525,7 +36331,6 @@ function isEmptyString(testString) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-rename/modal.js
-
/**
* WordPress dependencies
*/
@@ -33534,24 +36339,28 @@ function isEmptyString(testString) {
-
/**
* Internal dependencies
*/
+
+
function BlockRenameModal({
blockName,
originalBlockName,
onClose,
- onSave
+ onSave,
+ // Pattern Overrides is a WordPress-only feature but it also uses the Block Binding API.
+ // Ideally this should not be inside the block editor package, but we keep it here for simplicity.
+ hasOverridesWarning
}) {
const [editedBlockName, setEditedBlockName] = (0,external_wp_element_namespaceObject.useState)(blockName);
+ const descriptionId = (0,external_wp_element_namespaceObject.useId)();
const nameHasChanged = editedBlockName !== blockName;
const nameIsOriginal = editedBlockName === originalBlockName;
const nameIsEmpty = isEmptyString(editedBlockName);
const isNameValid = nameHasChanged || nameIsOriginal;
const autoSelectInputText = event => event.target.select();
- const dialogDescription = (0,external_wp_compose_namespaceObject.useInstanceId)(BlockRenameModal, `block-editor-rename-modal__description`);
const handleSubmit = () => {
const message = nameIsOriginal || nameIsEmpty ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: new name/label for the block */
(0,external_wp_i18n_namespaceObject.__)('Block name reset to: "%s".'), editedBlockName) : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: new name/label for the block */
@@ -33564,51 +36373,59 @@ function BlockRenameModal({
// Immediate close avoids ability to hit save multiple times.
onClose();
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
title: (0,external_wp_i18n_namespaceObject.__)('Rename'),
onRequestClose: onClose,
overlayClassName: "block-editor-block-rename-modal",
+ focusOnMount: "firstContentElement",
aria: {
- describedby: dialogDescription
+ describedby: descriptionId
},
- focusOnMount: "firstContentElement"
- }, (0,external_React_.createElement)("p", {
- id: dialogDescription
- }, (0,external_wp_i18n_namespaceObject.__)('Enter a custom name for this block.')), (0,external_React_.createElement)("form", {
- onSubmit: e => {
- e.preventDefault();
- if (!isNameValid) {
- return;
- }
- handleSubmit();
- }
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "3"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- value: editedBlockName,
- label: (0,external_wp_i18n_namespaceObject.__)('Block name'),
- hideLabelFromVision: true,
- placeholder: originalBlockName,
- onChange: setEditedBlockName,
- onFocus: autoSelectInputText
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- variant: "tertiary",
- onClick: onClose
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- "aria-disabled": !isNameValid,
- variant: "primary",
- type: "submit"
- }, (0,external_wp_i18n_namespaceObject.__)('Save'))))));
+ size: "small",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("form", {
+ onSubmit: e => {
+ e.preventDefault();
+ if (!isNameValid) {
+ return;
+ }
+ handleSubmit();
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ id: descriptionId,
+ children: (0,external_wp_i18n_namespaceObject.__)('Enter a custom name for this block.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "3",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ value: editedBlockName,
+ label: (0,external_wp_i18n_namespaceObject.__)('Block name'),
+ hideLabelFromVision: true,
+ help: hasOverridesWarning ? (0,external_wp_i18n_namespaceObject.__)('This block allows overrides. Changing the name can cause problems with content entered into instances of this pattern.') : undefined,
+ placeholder: originalBlockName,
+ onChange: setEditedBlockName,
+ onFocus: autoSelectInputText
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ onClick: onClose,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ "aria-disabled": !isNameValid,
+ variant: "primary",
+ type: "submit",
+ children: (0,external_wp_i18n_namespaceObject.__)('Save')
+ })]
+ })]
+ })]
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-rename/rename-control.js
-
/**
* WordPress dependencies
*/
@@ -33624,6 +36441,9 @@ function BlockRenameModal({
+
+
+
function BlockRenameControl({
clientId
}) {
@@ -33643,39 +36463,43 @@ function BlockRenameControl({
updateBlockAttributes
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
const customName = metadata?.name;
+ const hasPatternOverrides = !!customName && !!metadata?.bindings && Object.values(metadata.bindings).some(binding => binding.source === 'core/pattern-overrides');
function onChange(newName) {
updateBlockAttributes([clientId], {
metadata: {
- ...(metadata && metadata),
+ ...metadata,
name: newName
}
});
}
const blockInformation = useBlockDisplayInformation(clientId);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- setRenamingBlock(true);
- },
- "aria-expanded": renamingBlock,
- "aria-haspopup": "dialog"
- }, (0,external_wp_i18n_namespaceObject.__)('Rename')), renamingBlock && (0,external_React_.createElement)(BlockRenameModal, {
- blockName: customName || '',
- originalBlockName: blockInformation?.title,
- onClose: () => setRenamingBlock(false),
- onSave: newName => {
- // If the new value is the block's original name (e.g. `Group`)
- // or it is an empty string then assume the intent is to reset
- // the value. Therefore reset the metadata.
- if (newName === blockInformation?.title || isEmptyString(newName)) {
- newName = undefined;
- }
- onChange(newName);
- }
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ setRenamingBlock(true);
+ },
+ "aria-expanded": renamingBlock,
+ "aria-haspopup": "dialog",
+ children: (0,external_wp_i18n_namespaceObject.__)('Rename')
+ }), renamingBlock && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockRenameModal, {
+ blockName: customName || '',
+ originalBlockName: blockInformation?.title,
+ hasOverridesWarning: hasPatternOverrides,
+ onClose: () => setRenamingBlock(false),
+ onSave: newName => {
+ // If the new value is the block's original name (e.g. `Group`)
+ // or it is an empty string then assume the intent is to reset
+ // the value. Therefore reset the metadata.
+ if (newName === blockInformation?.title || isEmptyString(newName)) {
+ newName = undefined;
+ }
+ onChange(newName);
+ }
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu-controls/index.js
-
/**
* WordPress dependencies
*/
@@ -33692,27 +36516,31 @@ function BlockRenameControl({
+
+
const {
Fill,
Slot
} = (0,external_wp_components_namespaceObject.createSlotFill)('BlockSettingsMenuControls');
const BlockSettingsMenuControlsSlot = ({
fillProps,
- clientIds = null,
- __unstableDisplayLocation
+ clientIds = null
}) => {
const {
selectedBlocks,
- selectedClientIds
+ selectedClientIds,
+ isContentOnly
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getBlockNamesByClientId,
- getSelectedBlockClientIds
+ getSelectedBlockClientIds,
+ getBlockEditingMode
} = select(store);
const ids = clientIds !== null ? clientIds : getSelectedBlockClientIds();
return {
selectedBlocks: getBlockNamesByClientId(ids),
- selectedClientIds: ids
+ selectedClientIds: ids,
+ isContentOnly: getBlockEditingMode(ids[0]) === 'contentOnly'
};
}, [clientIds]);
const {
@@ -33721,8 +36549,8 @@ const BlockSettingsMenuControlsSlot = ({
const {
canRename
} = useBlockRename(selectedBlocks[0]);
- const showLockButton = selectedClientIds.length === 1 && canLock;
- const showRenameButton = selectedClientIds.length === 1 && canRename;
+ const showLockButton = selectedClientIds.length === 1 && canLock && !isContentOnly;
+ const showRenameButton = selectedClientIds.length === 1 && canRename && !isContentOnly;
// Check if current selection of blocks is Groupable or Ungroupable
// and pass this props down to ConvertToGroupButton.
@@ -33732,30 +36560,33 @@ const BlockSettingsMenuControlsSlot = ({
isUngroupable
} = convertToGroupButtonProps;
const showConvertToGroupButton = isGroupable || isUngroupable;
- return (0,external_React_.createElement)(Slot, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Slot, {
fillProps: {
...fillProps,
- __unstableDisplayLocation,
selectedBlocks,
selectedClientIds
+ },
+ children: fills => {
+ if (!fills?.length > 0 && !showConvertToGroupButton && !showLockButton) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ children: [showConvertToGroupButton && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ConvertToGroupButton, {
+ ...convertToGroupButtonProps,
+ onClose: fillProps?.onClose
+ }), showLockButton && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockLockMenuItem, {
+ clientId: selectedClientIds[0]
+ }), showRenameButton && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockRenameControl, {
+ clientId: selectedClientIds[0]
+ }), fills, fillProps?.canMove && !fillProps?.onlyBlock && !isContentOnly && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: (0,external_wp_compose_namespaceObject.pipe)(fillProps?.onClose, fillProps?.onMoveTo),
+ children: (0,external_wp_i18n_namespaceObject.__)('Move to')
+ }), fillProps?.count === 1 && !isContentOnly && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_mode_toggle, {
+ clientId: fillProps?.firstBlockClientId,
+ onToggle: fillProps?.onClose
+ })]
+ });
}
- }, fills => {
- if (!fills?.length > 0 && !showConvertToGroupButton && !showLockButton) {
- return null;
- }
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, showConvertToGroupButton && (0,external_React_.createElement)(ConvertToGroupButton, {
- ...convertToGroupButtonProps,
- onClose: fillProps?.onClose
- }), showLockButton && (0,external_React_.createElement)(BlockLockMenuItem, {
- clientId: selectedClientIds[0]
- }), showRenameButton && (0,external_React_.createElement)(BlockRenameControl, {
- clientId: selectedClientIds[0]
- }), fills, fillProps?.canMove && !fillProps?.onlyBlock && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: (0,external_wp_compose_namespaceObject.pipe)(fillProps?.onClose, fillProps?.onMoveTo)
- }, (0,external_wp_i18n_namespaceObject.__)('Move to')), fillProps?.count === 1 && (0,external_React_.createElement)(block_mode_toggle, {
- clientId: fillProps?.firstBlockClientId,
- onToggle: fillProps?.onClose
- }));
});
};
@@ -33768,17 +36599,17 @@ const BlockSettingsMenuControlsSlot = ({
function BlockSettingsMenuControls({
...props
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalStyleProvider, {
- document: document
- }, (0,external_React_.createElement)(Fill, {
- ...props
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalStyleProvider, {
+ document: document,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Fill, {
+ ...props
+ })
+ });
}
BlockSettingsMenuControls.Slot = BlockSettingsMenuControlsSlot;
/* harmony default export */ const block_settings_menu_controls = (BlockSettingsMenuControls);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/content-lock-ui.js
-
/**
* WordPress dependencies
*/
@@ -33800,43 +36631,33 @@ BlockSettingsMenuControls.Slot = BlockSettingsMenuControlsSlot;
// Besides the components on this file and the file referenced above the implementation
// also includes artifacts on the store (actions, reducers, and selector).
+
+
function ContentLockControlsPure({
clientId,
isSelected
}) {
const {
- getBlockListSettings,
- getSettings
- } = (0,external_wp_data_namespaceObject.useSelect)(store);
- const {
templateLock,
isLockedByParent,
isEditingAsBlocks
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
- __unstableGetContentLockingParent,
+ getContentLockingParent,
getTemplateLock,
- __unstableGetTemporarilyEditingAsBlocks
- } = select(store);
+ getTemporarilyEditingAsBlocks
+ } = unlock(select(store));
return {
templateLock: getTemplateLock(clientId),
- isLockedByParent: !!__unstableGetContentLockingParent(clientId),
- isEditingAsBlocks: __unstableGetTemporarilyEditingAsBlocks() === clientId
+ isLockedByParent: !!getContentLockingParent(clientId),
+ isEditingAsBlocks: getTemporarilyEditingAsBlocks() === clientId
};
}, [clientId]);
const {
- updateSettings,
- updateBlockListSettings,
- __unstableSetTemporarilyEditingAsBlocks
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- const {
- stopEditingAsBlocks
+ stopEditingAsBlocks,
+ modifyContentLockBlock
} = unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
const isContentLocked = !isLockedByParent && templateLock === 'contentOnly';
- const {
- __unstableMarkNextChangeAsNotPersistent,
- updateBlockAttributes
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
const stopEditingAsBlockCallback = (0,external_wp_element_namespaceObject.useCallback)(() => {
stopEditingAsBlocks(clientId);
}, [clientId, stopEditingAsBlocks]);
@@ -33845,30 +36666,28 @@ function ContentLockControlsPure({
}
const showStopEditingAsBlocks = isEditingAsBlocks && !isContentLocked;
const showStartEditingAsBlocks = !isEditingAsBlocks && isContentLocked && isSelected;
- return (0,external_React_.createElement)(external_React_.Fragment, null, showStopEditingAsBlocks && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(block_controls, {
- group: "other"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- onClick: stopEditingAsBlockCallback
- }, (0,external_wp_i18n_namespaceObject.__)('Done')))), showStartEditingAsBlocks && (0,external_React_.createElement)(block_settings_menu_controls, null, ({
- onClose
- }) => (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- __unstableMarkNextChangeAsNotPersistent();
- updateBlockAttributes(clientId, {
- templateLock: undefined
- });
- updateBlockListSettings(clientId, {
- ...getBlockListSettings(clientId),
- templateLock: false
- });
- const focusModeToRevert = getSettings().focusMode;
- updateSettings({
- focusMode: true
- });
- __unstableSetTemporarilyEditingAsBlocks(clientId, focusModeToRevert);
- onClose();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Modify'))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [showStopEditingAsBlocks && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_controls, {
+ group: "other",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ onClick: stopEditingAsBlockCallback,
+ children: (0,external_wp_i18n_namespaceObject.__)('Done')
+ })
+ })
+ }), showStartEditingAsBlocks && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_settings_menu_controls, {
+ children: ({
+ selectedClientIds,
+ onClose
+ }) => selectedClientIds.length === 1 && selectedClientIds[0] === clientId && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ modifyContentLockBlock(clientId);
+ onClose();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Modify')
+ })
+ })]
+ });
}
/* harmony default export */ const content_lock_ui = ({
edit: ContentLockControlsPure,
@@ -33908,21 +36727,21 @@ function addMetaAttribute(blockTypeSettings) {
(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/metadata/addMetaAttribute', addMetaAttribute);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js
-
/**
* WordPress dependencies
*/
-const blockDefault = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const blockDefault = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const block_default = (blockDefault);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-icon/index.js
-
/**
* External dependencies
*/
@@ -33934,6 +36753,7 @@ const blockDefault = (0,external_React_.createElement)(external_wp_primitives_na
+
function BlockIcon({
icon,
showColors = false,
@@ -33945,7 +36765,7 @@ function BlockIcon({
src: block_default
};
}
- const renderedIcon = (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
+ const renderedIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
icon: icon && icon.src ? icon.src : icon,
context: context
});
@@ -33953,12 +36773,13 @@ function BlockIcon({
backgroundColor: icon && icon.background,
color: icon && icon.foreground
} : {};
- return (0,external_React_.createElement)("span", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
style: style,
- className: classnames_default()('block-editor-block-icon', className, {
+ className: dist_clsx('block-editor-block-icon', className, {
'has-colors': showColors
- })
- }, renderedIcon);
+ }),
+ children: renderedIcon
+ });
}
/**
@@ -33967,7 +36788,6 @@ function BlockIcon({
/* harmony default export */ const block_icon = ((0,external_wp_element_namespaceObject.memo)(BlockIcon));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/block-hooks.js
-
/**
* WordPress dependencies
*/
@@ -33982,7 +36802,9 @@ function BlockIcon({
*/
-const EMPTY_OBJECT = {};
+
+
+const block_hooks_EMPTY_OBJECT = {};
function BlockHooksControlPure({
name,
clientId,
@@ -34069,7 +36891,7 @@ function BlockHooksControlPure({
if (Object.values(_hookedBlockClientIds).length > 0) {
return _hookedBlockClientIds;
}
- return EMPTY_OBJECT;
+ return block_hooks_EMPTY_OBJECT;
}, [hookedBlocksForCurrentBlock, name, clientId, rootClientId]);
const {
insertBlock,
@@ -34114,39 +36936,47 @@ function BlockHooksControlPure({
break;
}
};
- return (0,external_React_.createElement)(inspector_controls, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
- className: "block-editor-hooks__block-hooks",
- title: (0,external_wp_i18n_namespaceObject.__)('Plugins'),
- initialOpen: true
- }, (0,external_React_.createElement)("p", {
- className: "block-editor-hooks__block-hooks-helptext"
- }, (0,external_wp_i18n_namespaceObject.__)('Manage the inclusion of blocks added automatically by plugins.')), Object.keys(groupedHookedBlocks).map(vendor => {
- return (0,external_React_.createElement)(external_wp_element_namespaceObject.Fragment, {
- key: vendor
- }, (0,external_React_.createElement)("h3", null, vendor), groupedHookedBlocks[vendor].map(block => {
- const checked = (block.name in hookedBlockClientIds);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- checked: checked,
- key: block.title,
- label: (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "flex-start"
- }, (0,external_React_.createElement)(block_icon, {
- icon: block.icon
- }), (0,external_React_.createElement)("span", null, block.title)),
- onChange: () => {
- if (!checked) {
- // Create and insert block.
- const relativePosition = block.blockHooks[name];
- insertBlockIntoDesignatedLocation((0,external_wp_blocks_namespaceObject.createBlock)(block.name), relativePosition);
- return;
- }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ className: "block-editor-hooks__block-hooks",
+ title: (0,external_wp_i18n_namespaceObject.__)('Plugins'),
+ initialOpen: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "block-editor-hooks__block-hooks-helptext",
+ children: (0,external_wp_i18n_namespaceObject.__)('Manage the inclusion of blocks added automatically by plugins.')
+ }), Object.keys(groupedHookedBlocks).map(vendor => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_element_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h3", {
+ children: vendor
+ }), groupedHookedBlocks[vendor].map(block => {
+ const checked = (block.name in hookedBlockClientIds);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ checked: checked,
+ label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: block.icon
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: block.title
+ })]
+ }),
+ onChange: () => {
+ if (!checked) {
+ // Create and insert block.
+ const relativePosition = block.blockHooks[name];
+ insertBlockIntoDesignatedLocation((0,external_wp_blocks_namespaceObject.createBlock)(block.name), relativePosition);
+ return;
+ }
- // Remove block.
- removeBlock(hookedBlockClientIds[block.name], false);
- }
- });
- }));
- })));
+ // Remove block.
+ removeBlock(hookedBlockClientIds[block.name], false);
+ }
+ }, block.title);
+ })]
+ }, vendor);
+ })]
+ })
+ });
}
/* harmony default export */ const block_hooks = ({
edit: BlockHooksControlPure,
@@ -34156,85 +36986,7 @@ function BlockHooksControlPure({
}
});
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/block-renaming.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-/**
- * Filters registered block settings, adding an `__experimentalLabel` callback if one does not already exist.
- *
- * @param {Object} settings Original block settings.
- *
- * @return {Object} Filtered block settings.
- */
-function addLabelCallback(settings) {
- // If blocks provide their own label callback, do not override it.
- if (settings.__experimentalLabel) {
- return settings;
- }
- const supportsBlockNaming = (0,external_wp_blocks_namespaceObject.hasBlockSupport)(settings, 'renaming', true // default value
- );
-
- // Check whether block metadata is supported before using it.
- if (supportsBlockNaming) {
- settings.__experimentalLabel = (attributes, {
- context
- }) => {
- const {
- metadata
- } = attributes;
-
- // In the list view, use the block's name attribute as the label.
- if (context === 'list-view' && metadata?.name) {
- return metadata.name;
- }
- };
- }
- return settings;
-}
-function BlockRenameControlPure({
- metadata,
- setAttributes
-}) {
- return (0,external_React_.createElement)(inspector_controls, {
- group: "advanced"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Block name'),
- value: metadata?.name || '',
- onChange: newName => {
- setAttributes({
- metadata: {
- ...metadata,
- name: newName
- }
- });
- }
- }));
-}
-/* harmony default export */ const block_renaming = ({
- edit: BlockRenameControlPure,
- attributeKeys: ['metadata'],
- hasSupport(name) {
- return (0,external_wp_blocks_namespaceObject.hasBlockSupport)(name, 'renaming', true);
- }
-});
-(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/metadata/addLabelCallback', addLabelCallback);
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/use-bindings-attributes.js
-
/**
* WordPress dependencies
*/
@@ -34244,7 +36996,6 @@ function BlockRenameControlPure({
-
/**
* Internal dependencies
*/
@@ -34260,12 +37011,43 @@ function BlockRenameControlPure({
* @return {WPHigherOrderComponent} Higher-order component.
*/
+
const BLOCK_BINDINGS_ALLOWED_BLOCKS = {
'core/paragraph': ['content'],
'core/heading': ['content'],
- 'core/image': ['url', 'title', 'alt'],
- 'core/button': ['url', 'text', 'linkTarget']
+ 'core/image': ['id', 'url', 'title', 'alt'],
+ 'core/button': ['url', 'text', 'linkTarget', 'rel']
};
+const DEFAULT_ATTRIBUTE = '__default';
+
+/**
+ * Returns the bindings with the `__default` binding for pattern overrides
+ * replaced with the full-set of supported attributes. e.g.:
+ *
+ * bindings passed in: `{ __default: { source: 'core/pattern-overrides' } }`
+ * bindings returned: `{ content: { source: 'core/pattern-overrides' } }`
+ *
+ * @param {string} blockName The block name (e.g. 'core/paragraph').
+ * @param {Object} bindings A block's bindings from the metadata attribute.
+ *
+ * @return {Object} The bindings with default replaced for pattern overrides.
+ */
+function replacePatternOverrideDefaultBindings(blockName, bindings) {
+ // The `__default` binding currently only works for pattern overrides.
+ if (bindings?.[DEFAULT_ATTRIBUTE]?.source === 'core/pattern-overrides') {
+ const supportedAttributes = BLOCK_BINDINGS_ALLOWED_BLOCKS[blockName];
+ const bindingsWithDefaults = {};
+ for (const attributeName of supportedAttributes) {
+ // If the block has mixed binding sources, retain any non pattern override bindings.
+ const bindingSource = bindings[attributeName] ? bindings[attributeName] : {
+ source: 'core/pattern-overrides'
+ };
+ bindingsWithDefaults[attributeName] = bindingSource;
+ }
+ return bindingsWithDefaults;
+ }
+ return bindings;
+}
/**
* Based on the given block name,
@@ -34289,145 +37071,122 @@ function canBindBlock(blockName) {
function canBindAttribute(blockName, attributeName) {
return canBindBlock(blockName) && BLOCK_BINDINGS_ALLOWED_BLOCKS[blockName].includes(attributeName);
}
-
-/**
- * This component is responsible for detecting and
- * propagating data changes from the source to the block.
- *
- * @param {Object} props - The component props.
- * @param {string} props.attrName - The attribute name.
- * @param {Object} props.blockProps - The block props with bound attribute.
- * @param {Object} props.source - Source handler.
- * @param {Object} props.args - The arguments to pass to the source.
- * @param {Function} props.onPropValueChange - The function to call when the attribute value changes.
- * @return {null} Data-handling component. Render nothing.
- */
-const BindingConnector = ({
- args,
- attrName,
- blockProps,
- source,
- onPropValueChange
-}) => {
- const {
- placeholder,
- value: propValue
- } = source.useSource(blockProps, args);
+const withBlockBindingSupport = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockEdit => props => {
+ const registry = (0,external_wp_data_namespaceObject.useRegistry)();
+ const sources = (0,external_wp_data_namespaceObject.useSelect)(select => unlock(select(external_wp_blocks_namespaceObject.store)).getAllBlockBindingsSources());
const {
- name: blockName
- } = blockProps;
- const attrValue = blockProps.attributes[attrName];
- const updateBoundAttibute = (0,external_wp_element_namespaceObject.useCallback)((newAttrValue, prevAttrValue) => {
- /*
- * If the attribute is a RichTextData instance,
- * (core/paragraph, core/heading, core/button, etc.)
- * compare its HTML representation with the new value.
- *
- * To do: it looks like a workaround.
- * Consider improving the attribute and metadata fields types.
- */
- if (prevAttrValue instanceof external_wp_richText_namespaceObject.RichTextData) {
- // Bail early if the Rich Text value is the same.
- if (prevAttrValue.toHTMLString() === newAttrValue) {
- return;
- }
-
- /*
- * To preserve the value type,
- * convert the new value to a RichTextData instance.
- */
- newAttrValue = external_wp_richText_namespaceObject.RichTextData.fromHTMLString(newAttrValue);
- }
- if (prevAttrValue === newAttrValue) {
+ name,
+ clientId,
+ context
+ } = props;
+ const hasParentPattern = !!props.context['pattern/overrides'];
+ const hasPatternOverridesDefaultBinding = props.attributes.metadata?.bindings?.[DEFAULT_ATTRIBUTE]?.source === 'core/pattern-overrides';
+ const bindings = (0,external_wp_element_namespaceObject.useMemo)(() => replacePatternOverrideDefaultBindings(name, props.attributes.metadata?.bindings), [props.attributes.metadata?.bindings, name]);
+ const boundAttributes = (0,external_wp_data_namespaceObject.useSelect)(() => {
+ if (!bindings) {
return;
}
- onPropValueChange({
- [attrName]: newAttrValue
- });
- }, [attrName, onPropValueChange]);
- (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
- if (typeof propValue !== 'undefined') {
- updateBoundAttibute(propValue, attrValue);
- } else if (placeholder) {
- /*
- * Placeholder fallback.
- * If the attribute is `src` or `href`,
- * a placeholder can't be used because it is not a valid url.
- * Adding this workaround until
- * attributes and metadata fields types are improved and include `url`.
- */
- const htmlAttribute = (0,external_wp_blocks_namespaceObject.getBlockType)(blockName).attributes[attrName].attribute;
- if (htmlAttribute === 'src' || htmlAttribute === 'href') {
- updateBoundAttibute(null);
- return;
+ const attributes = {};
+ for (const [attributeName, boundAttribute] of Object.entries(bindings)) {
+ const source = sources[boundAttribute.source];
+ if (!source?.getValue || !canBindAttribute(name, attributeName)) {
+ continue;
+ }
+ const args = {
+ registry,
+ context,
+ clientId,
+ attributeName,
+ args: boundAttribute.args
+ };
+ attributes[attributeName] = source.getValue(args);
+ if (attributes[attributeName] === undefined) {
+ if (attributeName === 'url') {
+ attributes[attributeName] = null;
+ } else {
+ attributes[attributeName] = source.getPlaceholder?.(args);
+ }
}
- updateBoundAttibute(placeholder);
}
- }, [updateBoundAttibute, propValue, attrValue, placeholder, blockName, attrName]);
- return null;
-};
+ return attributes;
+ }, [bindings, name, clientId, context, registry, sources]);
+ const {
+ setAttributes
+ } = props;
+ const _setAttributes = (0,external_wp_element_namespaceObject.useCallback)(nextAttributes => {
+ registry.batch(() => {
+ if (!bindings) {
+ setAttributes(nextAttributes);
+ return;
+ }
+ const keptAttributes = {
+ ...nextAttributes
+ };
+ const updatesBySource = new Map();
-/**
- * BlockBindingBridge acts like a component wrapper
- * that connects the bound attributes of a block
- * to the source handlers.
- * For this, it creates a BindingConnector for each bound attribute.
- *
- * @param {Object} props - The component props.
- * @param {Object} props.blockProps - The BlockEdit props object.
- * @param {Object} props.bindings - The block bindings settings.
- * @param {Function} props.onPropValueChange - The function to call when the attribute value changes.
- * @return {null} Data-handling component. Render nothing.
- */
-function BlockBindingBridge({
- blockProps,
- bindings,
- onPropValueChange
-}) {
- const blockBindingsSources = unlock((0,external_wp_data_namespaceObject.useSelect)(external_wp_blocks_namespaceObject.store)).getAllBlockBindingsSources();
- return (0,external_React_.createElement)(external_React_.Fragment, null, Object.entries(bindings).map(([attrName, boundAttribute]) => {
- // Bail early if the block doesn't have a valid source handler.
- const source = blockBindingsSources[boundAttribute.source];
- if (!source?.useSource) {
- return null;
- }
- return (0,external_React_.createElement)(BindingConnector, {
- key: attrName,
- attrName: attrName,
- source: source,
- blockProps: blockProps,
- args: boundAttribute.args,
- onPropValueChange: onPropValueChange
+ // Loop only over the updated attributes to avoid modifying the bound ones that haven't changed.
+ for (const [attributeName, newValue] of Object.entries(keptAttributes)) {
+ if (!bindings[attributeName] || !canBindAttribute(name, attributeName)) {
+ continue;
+ }
+ const binding = bindings[attributeName];
+ const source = sources[binding?.source];
+ if (!source?.setValue && !source?.setValues) {
+ continue;
+ }
+ updatesBySource.set(source, {
+ ...updatesBySource.get(source),
+ [attributeName]: newValue
+ });
+ delete keptAttributes[attributeName];
+ }
+ if (updatesBySource.size) {
+ for (const [source, attributes] of updatesBySource) {
+ if (source.setValues) {
+ source.setValues({
+ registry,
+ context,
+ clientId,
+ attributes
+ });
+ } else {
+ for (const [attributeName, value] of Object.entries(attributes)) {
+ const binding = bindings[attributeName];
+ source.setValue({
+ registry,
+ context,
+ clientId,
+ attributeName,
+ args: binding.args,
+ value
+ });
+ }
+ }
+ }
+ }
+ if (
+ // Don't update non-connected attributes if the block is using pattern overrides
+ // and the editing is happening while overriding the pattern (not editing the original).
+ !(hasPatternOverridesDefaultBinding && hasParentPattern) && Object.keys(keptAttributes).length) {
+ // Don't update caption and href until they are supported.
+ if (hasPatternOverridesDefaultBinding) {
+ delete keptAttributes?.caption;
+ delete keptAttributes?.href;
+ }
+ setAttributes(keptAttributes);
+ }
});
- }));
-}
-const withBlockBindingSupport = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockEdit => props => {
- /*
- * Collect and update the bound attributes
- * in a separate state.
- */
- const [boundAttributes, setBoundAttributes] = (0,external_wp_element_namespaceObject.useState)({});
- const updateBoundAttributes = (0,external_wp_element_namespaceObject.useCallback)(newAttributes => setBoundAttributes(prev => ({
- ...prev,
- ...newAttributes
- })), []);
-
- /*
- * Create binding object filtering
- * only the attributes that can be bound.
- */
- const bindings = Object.fromEntries(Object.entries(props.attributes.metadata?.bindings || {}).filter(([attrName]) => canBindAttribute(props.name, attrName)));
- return (0,external_React_.createElement)(external_React_.Fragment, null, Object.keys(bindings).length > 0 && (0,external_React_.createElement)(BlockBindingBridge, {
- blockProps: props,
- bindings: bindings,
- onPropValueChange: updateBoundAttributes
- }), (0,external_React_.createElement)(BlockEdit, {
- ...props,
- attributes: {
- ...props.attributes,
- ...boundAttributes
- }
- }));
+ }, [registry, bindings, name, clientId, context, setAttributes, sources, hasPatternOverridesDefaultBinding, hasParentPattern]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockEdit, {
+ ...props,
+ attributes: {
+ ...props.attributes,
+ ...boundAttributes
+ },
+ setAttributes: _setAttributes
+ })
+ });
}, 'withBlockBindingSupport');
/**
@@ -34449,6 +37208,132 @@ function shimAttributeSource(settings, name) {
}
(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/editor/custom-sources-backwards-compatibility/shim-attribute-source', shimAttributeSource);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/block-bindings.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+const BlockBindingsPanel = ({
+ name,
+ metadata
+}) => {
+ const {
+ bindings
+ } = metadata || {};
+ const {
+ sources
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const _sources = unlock(select(external_wp_blocks_namespaceObject.store)).getAllBlockBindingsSources();
+ return {
+ sources: _sources
+ };
+ }, []);
+ if (!bindings) {
+ return null;
+ }
+
+ // Don't show not allowed attributes.
+ // Don't show the bindings connected to pattern overrides in the inspectors panel.
+ // TODO: Explore if this should be abstracted to let other sources decide.
+ const filteredBindings = {
+ ...bindings
+ };
+ Object.keys(filteredBindings).forEach(key => {
+ if (!canBindAttribute(name, key) || filteredBindings[key].source === 'core/pattern-overrides') {
+ delete filteredBindings[key];
+ }
+ });
+ if (Object.keys(filteredBindings).length === 0) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Attributes'),
+ className: "components-panel__block-bindings-panel",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl, {
+ help: (0,external_wp_i18n_namespaceObject.__)('Attributes connected to various sources.'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ isBordered: true,
+ isSeparated: true,
+ size: "large",
+ children: Object.keys(filteredBindings).map(key => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: key
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "components-item__block-bindings-source",
+ children: sources[filteredBindings[key].source] ? sources[filteredBindings[key].source].label : filteredBindings[key].source
+ })]
+ })
+ }, key);
+ })
+ })
+ })
+ })
+ });
+};
+/* harmony default export */ const block_bindings = ({
+ edit: BlockBindingsPanel,
+ attributeKeys: ['metadata'],
+ hasSupport() {
+ return true;
+ }
+});
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/block-renaming.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Filters registered block settings, adding an `__experimentalLabel` callback if one does not already exist.
+ *
+ * @param {Object} settings Original block settings.
+ *
+ * @return {Object} Filtered block settings.
+ */
+function addLabelCallback(settings) {
+ // If blocks provide their own label callback, do not override it.
+ if (settings.__experimentalLabel) {
+ return settings;
+ }
+ const supportsBlockNaming = (0,external_wp_blocks_namespaceObject.hasBlockSupport)(settings, 'renaming', true // default value
+ );
+
+ // Check whether block metadata is supported before using it.
+ if (supportsBlockNaming) {
+ settings.__experimentalLabel = (attributes, {
+ context
+ }) => {
+ const {
+ metadata
+ } = attributes;
+
+ // In the list view, use the block's name attribute as the label.
+ if (context === 'list-view' && metadata?.name) {
+ return metadata.name;
+ }
+ };
+ }
+ return settings;
+}
+(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/metadata/addLabelCallback', addLabelCallback);
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/use-border-props.js
/**
* Internal dependencies
@@ -34586,7 +37471,7 @@ function getColorClassesAndStyles(attributes) {
const hasGradient = gradientClass || style?.color?.gradient;
// Determine color CSS class name list.
- const className = classnames_default()(textClass, gradientClass, {
+ const className = dist_clsx(textClass, gradientClass, {
// Don't apply the background class if there's a gradient.
[backgroundClass]: !hasGradient && !!backgroundClass,
'has-text-color': textColor || style?.color?.text,
@@ -34694,6 +37579,9 @@ function getSpacingClassesAndStyles(attributes) {
+const {
+ kebabCase: use_typography_props_kebabCase
+} = unlock(external_wp_components_namespaceObject.privateApis);
/*
* This utility is intended to assist where the serialization of the typography
@@ -34710,22 +37598,19 @@ function getSpacingClassesAndStyles(attributes) {
* @return {Object} Typography block support derived CSS classes & styles.
*/
function getTypographyClassesAndStyles(attributes, settings) {
- const {
- kebabCase
- } = unlock(external_wp_components_namespaceObject.privateApis);
let typographyStyles = attributes?.style?.typography || {};
- const fluidTypographySettings = getFluidTypographyOptionsFromSettings(settings);
typographyStyles = {
...typographyStyles,
fontSize: getTypographyFontSizeValue({
size: attributes?.style?.typography?.fontSize
- }, fluidTypographySettings)
+ }, settings)
};
const style = getInlineStyles({
typography: typographyStyles
});
- const fontFamilyClassName = !!attributes?.fontFamily ? `has-${kebabCase(attributes.fontFamily)}-font-family` : '';
- const className = classnames_default()(fontFamilyClassName, getFontSizeClass(attributes?.fontSize));
+ const fontFamilyClassName = !!attributes?.fontFamily ? `has-${use_typography_props_kebabCase(attributes.fontFamily)}-font-family` : '';
+ const textAlignClassName = !!attributes?.style?.typography?.textAlign ? `has-text-align-${attributes?.style?.typography?.textAlign}` : '';
+ const className = dist_clsx(fontFamilyClassName, textAlignClassName, getFontSizeClass(attributes?.fontSize));
return {
className,
style
@@ -34754,6 +37639,55 @@ function useCachedTruthy(value) {
return cachedValue;
}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/use-zoom-out.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+/**
+ * A hook used to set the editor mode to zoomed out mode, invoking the hook sets the mode.
+ *
+ * @param {boolean} zoomOut If we should enter into zoomOut mode or not
+ */
+function useZoomOut(zoomOut = true) {
+ const {
+ __unstableSetEditorMode
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const {
+ __unstableGetEditorMode
+ } = (0,external_wp_data_namespaceObject.useSelect)(store);
+ const originalEditingMode = (0,external_wp_element_namespaceObject.useRef)(null);
+ const mode = __unstableGetEditorMode();
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ // Only set this on mount so we know what to return to when we unmount.
+ if (!originalEditingMode.current) {
+ originalEditingMode.current = mode;
+ }
+ return () => {
+ // We need to use __unstableGetEditorMode() here and not `mode`, as mode may not update on unmount
+ if (__unstableGetEditorMode() === 'zoom-out' && __unstableGetEditorMode() !== originalEditingMode.current) {
+ __unstableSetEditorMode(originalEditingMode.current);
+ }
+ };
+ }, []);
+
+ // The effect opens the zoom-out view if we want it open and it's not currently in zoom-out mode.
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (zoomOut && mode !== 'zoom-out') {
+ __unstableSetEditorMode('zoom-out');
+ } else if (!zoomOut && __unstableGetEditorMode() === 'zoom-out' && originalEditingMode.current !== mode) {
+ __unstableSetEditorMode(originalEditingMode.current);
+ }
+ }, [__unstableSetEditorMode, zoomOut, mode]);
+}
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/index.js
/**
* Internal dependencies
@@ -34782,9 +37716,13 @@ function useCachedTruthy(value) {
-createBlockEditFilter([align, hooks_anchor, custom_class_name, style, duotone, position, layout, content_lock_ui, block_hooks, block_renaming].filter(Boolean));
-createBlockListBlockFilter([align, style, color, dimensions, duotone, font_family, font_size, border, position, layout_child]);
-createBlockSaveFilter([align, hooks_anchor, aria_label, custom_class_name, border, color, style, font_family, font_size]);
+
+
+
+
+createBlockEditFilter([block_bindings, align, text_align, hooks_anchor, custom_class_name, style, duotone, position, layout, content_lock_ui, block_hooks, layout_child].filter(Boolean));
+createBlockListBlockFilter([align, text_align, background, style, color, dimensions, duotone, font_family, font_size, border, position, block_style_variation, layout_child]);
+createBlockSaveFilter([align, text_align, hooks_anchor, aria_label, custom_class_name, border, color, style, font_family, font_size]);
@@ -34795,8 +37733,9 @@ createBlockSaveFilter([align, hooks_anchor, aria_label, custom_class_name, borde
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/with-colors.js
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/with-colors.js
/**
* WordPress dependencies
*/
@@ -34811,6 +37750,10 @@ createBlockSaveFilter([align, hooks_anchor, aria_label, custom_class_name, borde
+const {
+ kebabCase: with_colors_kebabCase
+} = unlock(external_wp_components_namespaceObject.privateApis);
+
/**
* Capitalizes the first letter in a string.
*
@@ -34828,7 +37771,7 @@ const upperFirst = ([firstLetter, ...rest]) => firstLetter.toUpperCase() + rest.
*
* @return {Function} The higher order component.
*/
-const withCustomColorPalette = colorsArray => (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => props => (0,external_React_.createElement)(WrappedComponent, {
+const withCustomColorPalette = colorsArray => (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
...props,
colors: colorsArray
}), 'withCustomColorPalette');
@@ -34842,7 +37785,7 @@ const withCustomColorPalette = colorsArray => (0,external_wp_compose_namespaceOb
const withEditorColorPalette = () => (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => props => {
const [userPalette, themePalette, defaultPalette] = use_settings_useSettings('color.palette.custom', 'color.palette.theme', 'color.palette.default');
const allColors = (0,external_wp_element_namespaceObject.useMemo)(() => [...(userPalette || []), ...(themePalette || []), ...(defaultPalette || [])], [userPalette, themePalette, defaultPalette]);
- return (0,external_React_.createElement)(WrappedComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
...props,
colors: allColors
});
@@ -34858,14 +37801,11 @@ const withEditorColorPalette = () => (0,external_wp_compose_namespaceObject.crea
* @return {Component} The component that can be used as a HOC.
*/
function createColorHOC(colorTypes, withColorPalette) {
- const {
- kebabCase
- } = unlock(external_wp_components_namespaceObject.privateApis);
const colorMap = colorTypes.reduce((colorObject, colorType) => {
return {
...colorObject,
...(typeof colorType === 'string' ? {
- [colorType]: kebabCase(colorType)
+ [colorType]: with_colors_kebabCase(colorType)
} : colorType)
};
}, {});
@@ -34927,7 +37867,7 @@ function createColorHOC(colorTypes, withColorPalette) {
}, {});
}
render() {
- return (0,external_React_.createElement)(WrappedComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
...this.props,
colors: undefined,
...this.state,
@@ -35005,7 +37945,6 @@ function withColors(...colorTypes) {
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-sizes/font-size-picker.js
-
/**
* WordPress dependencies
*/
@@ -35015,9 +37954,10 @@ function withColors(...colorTypes) {
* Internal dependencies
*/
+
function font_size_picker_FontSizePicker(props) {
const [fontSizes, customFontSize] = use_settings_useSettings('typography.fontSizes', 'typography.customFontSize');
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.FontSizePicker, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FontSizePicker, {
...props,
fontSizes: fontSizes,
disableCustomFontSizes: !customFontSize
@@ -35030,7 +37970,6 @@ function font_size_picker_FontSizePicker(props) {
/* harmony default export */ const font_size_picker = (font_size_picker_FontSizePicker);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-sizes/with-font-sizes.js
-
/**
* WordPress dependencies
*/
@@ -35042,6 +37981,7 @@ function font_size_picker_FontSizePicker(props) {
*/
+
const DEFAULT_FONT_SIZES = [];
/**
@@ -35075,7 +38015,7 @@ const with_font_sizes_upperFirst = ([firstLetter, ...rest]) => firstLetter.toUpp
}, {});
return (0,external_wp_compose_namespaceObject.createHigherOrderComponent)((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => props => {
const [fontSizes] = use_settings_useSettings('typography.fontSizes');
- return (0,external_React_.createElement)(WrappedComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
...props,
fontSizes: fontSizes || DEFAULT_FONT_SIZES
});
@@ -35138,7 +38078,7 @@ const with_font_sizes_upperFirst = ([firstLetter, ...rest]) => firstLetter.toUpp
};
}
render() {
- return (0,external_React_.createElement)(WrappedComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
...this.props,
fontSizes: undefined,
...this.state,
@@ -35155,142 +38095,6 @@ const with_font_sizes_upperFirst = ([firstLetter, ...rest]) => firstLetter.toUpp
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/align-left.js
-
-/**
- * WordPress dependencies
- */
-
-const alignLeft = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"
-}));
-/* harmony default export */ const align_left = (alignLeft);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/align-center.js
-
-/**
- * WordPress dependencies
- */
-
-const align_center_alignCenter = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"
-}));
-/* harmony default export */ const align_center = (align_center_alignCenter);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/align-right.js
-
-/**
- * WordPress dependencies
- */
-
-const alignRight = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"
-}));
-/* harmony default export */ const align_right = (alignRight);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/alignment-control/ui.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-const DEFAULT_ALIGNMENT_CONTROLS = [{
- icon: align_left,
- title: (0,external_wp_i18n_namespaceObject.__)('Align text left'),
- align: 'left'
-}, {
- icon: align_center,
- title: (0,external_wp_i18n_namespaceObject.__)('Align text center'),
- align: 'center'
-}, {
- icon: align_right,
- title: (0,external_wp_i18n_namespaceObject.__)('Align text right'),
- align: 'right'
-}];
-const ui_POPOVER_PROPS = {
- placement: 'bottom-start'
-};
-function AlignmentUI({
- value,
- onChange,
- alignmentControls = DEFAULT_ALIGNMENT_CONTROLS,
- label = (0,external_wp_i18n_namespaceObject.__)('Align text'),
- describedBy = (0,external_wp_i18n_namespaceObject.__)('Change text alignment'),
- isCollapsed = true,
- isToolbar
-}) {
- function applyOrUnset(align) {
- return () => onChange(value === align ? undefined : align);
- }
- const activeAlignment = alignmentControls.find(control => control.align === value);
- function setIcon() {
- if (activeAlignment) return activeAlignment.icon;
- return (0,external_wp_i18n_namespaceObject.isRTL)() ? align_right : align_left;
- }
- const UIComponent = isToolbar ? external_wp_components_namespaceObject.ToolbarGroup : external_wp_components_namespaceObject.ToolbarDropdownMenu;
- const extraProps = isToolbar ? {
- isCollapsed
- } : {
- toggleProps: {
- describedBy
- },
- popoverProps: ui_POPOVER_PROPS
- };
- return (0,external_React_.createElement)(UIComponent, {
- icon: setIcon(),
- label: label,
- controls: alignmentControls.map(control => {
- const {
- align
- } = control;
- const isActive = value === align;
- return {
- ...control,
- isActive,
- role: isCollapsed ? 'menuitemradio' : undefined,
- onClick: applyOrUnset(align)
- };
- }),
- ...extraProps
- });
-}
-/* harmony default export */ const alignment_control_ui = (AlignmentUI);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/alignment-control/index.js
-
-/**
- * Internal dependencies
- */
-
-const AlignmentControl = props => {
- return (0,external_React_.createElement)(alignment_control_ui, {
- ...props,
- isToolbar: false
- });
-};
-const AlignmentToolbar = props => {
- return (0,external_React_.createElement)(alignment_control_ui, {
- ...props,
- isToolbar: true
- });
-};
-
-/**
- * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/alignment-control/README.md
- */
-
-
// EXTERNAL MODULE: ./node_modules/remove-accents/index.js
var remove_accents = __webpack_require__(9681);
var remove_accents_default = /*#__PURE__*/__webpack_require__.n(remove_accents);
@@ -35390,6 +38194,17 @@ const defaultGetKeywords = item => item.keywords || [];
const defaultGetCategory = item => item.category;
const defaultGetCollection = () => null;
+// Normalization regexes
+const splitRegexp = [/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,
+// One lowercase or digit, followed by one uppercase.
+/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu // One uppercase followed by one uppercase and one lowercase.
+];
+const stripRegexp = /(\p{C}|\p{P}|\p{S})+/giu; // Anything that's not a punctuation, symbol or control/format character.
+
+// Normalization cache
+const extractedWords = new Map();
+const normalizedStrings = new Map();
+
/**
* Extracts words from an input string.
*
@@ -35398,13 +38213,15 @@ const defaultGetCollection = () => null;
* @return {Array} Words, extracted from the input string.
*/
function extractWords(input = '') {
- return noCase(input, {
- splitRegexp: [/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,
- // One lowercase or digit, followed by one uppercase.
- /([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu // One uppercase followed by one uppercase and one lowercase.
- ],
- stripRegexp: /(\p{C}|\p{P}|\p{S})+/giu // Anything that's not a punctuation, symbol or control/format character.
+ if (extractedWords.has(input)) {
+ return extractedWords.get(input);
+ }
+ const result = noCase(input, {
+ splitRegexp,
+ stripRegexp
}).split(' ').filter(Boolean);
+ extractedWords.set(input, result);
+ return result;
}
/**
@@ -35414,19 +38231,24 @@ function extractWords(input = '') {
*
* @return {string} The normalized search input.
*/
-function normalizeSearchInput(input = '') {
+function normalizeString(input = '') {
+ if (normalizedStrings.has(input)) {
+ return normalizedStrings.get(input);
+ }
+
// Disregard diacritics.
// Input: "média"
- input = remove_accents_default()(input);
+ let result = remove_accents_default()(input);
// Accommodate leading slash, matching autocomplete expectations.
// Input: "/media"
- input = input.replace(/^\//, '');
+ result = result.replace(/^\//, '');
// Lowercase.
// Input: "MEDIA"
- input = input.toLowerCase();
- return input;
+ result = result.toLowerCase();
+ normalizedStrings.set(input, result);
+ return result;
}
/**
@@ -35437,7 +38259,7 @@ function normalizeSearchInput(input = '') {
* @return {string[]} The normalized list of search terms.
*/
const getNormalizedSearchTerms = (input = '') => {
- return extractWords(normalizeSearchInput(input));
+ return extractWords(normalizeString(input));
};
const removeMatchingTerms = (unmatchedTerms, unprocessedTerms) => {
return unmatchedTerms.filter(term => !getNormalizedSearchTerms(unprocessedTerms).some(unprocessedTerm => unprocessedTerm.includes(term)));
@@ -35503,8 +38325,8 @@ function getItemSearchRank(item, searchTerm, config = {}) {
const keywords = getKeywords(item);
const category = getCategory(item);
const collection = getCollection(item);
- const normalizedSearchInput = normalizeSearchInput(searchTerm);
- const normalizedTitle = normalizeSearchInput(title);
+ const normalizedSearchInput = normalizeString(searchTerm);
+ const normalizedTitle = normalizeString(title);
let rank = 0;
// Prefers exact matches
@@ -35545,15 +38367,20 @@ function getItemSearchRank(item, searchTerm, config = {}) {
*/
+
/**
* 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.
+ * @param {boolean} isQuick
* @return {Array} Returns the block types state. (block types, categories, collections, onSelect handler)
*/
-const useBlockTypesState = (rootClientId, onInsert) => {
- const [items] = (0,external_wp_data_namespaceObject.useSelect)(select => [select(store).getInserterItems(rootClientId)], [rootClientId]);
+const useBlockTypesState = (rootClientId, onInsert, isQuick) => {
+ const options = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ [withRootClientIdOptionKey]: !isQuick
+ }), [isQuick]);
+ const [items] = (0,external_wp_data_namespaceObject.useSelect)(select => [select(store).getInserterItems(rootClientId, options)], [rootClientId, options]);
const [categories, collections] = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getCategories,
@@ -35566,12 +38393,13 @@ const useBlockTypesState = (rootClientId, onInsert) => {
initialAttributes,
innerBlocks,
syncStatus,
- content
+ content,
+ rootClientId: _rootClientId
}, shouldFocusBlock) => {
const insertedBlock = syncStatus === 'unsynced' ? (0,external_wp_blocks_namespaceObject.parse)(content, {
__unstableSkipMigrationLogs: true
}) : (0,external_wp_blocks_namespaceObject.createBlock)(name, initialAttributes, (0,external_wp_blocks_namespaceObject.createBlocksFromInnerBlocksTemplate)(innerBlocks));
- onInsert(insertedBlock, undefined, shouldFocusBlock);
+ onInsert(insertedBlock, undefined, shouldFocusBlock, _rootClientId);
}, [onInsert]);
return [items, categories, collections, onSelectItem];
};
@@ -35600,15 +38428,18 @@ const orderInserterBlockItems = (items, priority) => {
let aIndex = priority.indexOf(aName);
let bIndex = priority.indexOf(bName);
// All other block items should come after that.
- if (aIndex < 0) aIndex = priority.length;
- if (bIndex < 0) bIndex = priority.length;
+ if (aIndex < 0) {
+ aIndex = priority.length;
+ }
+ if (bIndex < 0) {
+ bIndex = priority.length;
+ }
return aIndex - bIndex;
});
return items;
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/autocompleters/block.js
-
/**
* WordPress dependencies
*/
@@ -35625,6 +38456,9 @@ const orderInserterBlockItems = (items, priority) => {
+
+
+
const block_noop = () => {};
const SHOWN_BLOCK_TYPES = 9;
@@ -35674,11 +38508,12 @@ function createBlockCompleter() {
return {
key: `block-${blockItem.id}`,
value: blockItem,
- label: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(block_icon, {
- key: "icon",
- icon: icon,
- showColors: true
- }), title),
+ label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: icon,
+ showColors: true
+ }, "icon"), title]
+ }),
isDisabled
};
}), [filteredItems]);
@@ -35716,21 +38551,21 @@ function createBlockCompleter() {
const external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post.js
-
/**
* WordPress dependencies
*/
-const post = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const post = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"
+ })
+});
/* harmony default export */ const library_post = (post);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/autocompleters/link.js
-
/**
* WordPress dependencies
*/
@@ -35739,6 +38574,9 @@ const post = (0,external_React_.createElement)(external_wp_primitives_namespaceO
+
+
+
const SHOWN_SUGGESTIONS = 10;
/** @typedef {import('@wordpress/components').WPCompleter} WPCompleter */
@@ -35770,15 +38608,17 @@ function createLinkCompleter() {
return [...expansionWords];
},
getOptionLabel(item) {
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(build_module_icon, {
- key: "icon",
- icon: item.subtype === 'page' ? library_page : library_post
- }), item.title);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: item.subtype === 'page' ? library_page : library_post
+ }, "icon"), item.title]
+ });
},
getOptionCompletion(item) {
- return (0,external_React_.createElement)("a", {
- href: item.url
- }, item.title);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: item.url,
+ children: item.title
+ });
}
};
}
@@ -35791,7 +38631,6 @@ function createLinkCompleter() {
/* harmony default export */ const autocompleters_link = (createLinkCompleter());
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/autocomplete/index.js
-
/**
* WordPress dependencies
*/
@@ -35813,6 +38652,7 @@ function createLinkCompleter() {
*
* @type {Array}
*/
+
const autocomplete_EMPTY_ARRAY = [];
function useCompleters({
completers = autocomplete_EMPTY_ARRAY
@@ -35851,7 +38691,7 @@ function useBlockEditorAutocompleteProps(props) {
* @type {import('react').FC}
*/
function BlockEditorAutocomplete(props) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Autocomplete, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Autocomplete, {
...props,
completers: useCompleters(props)
});
@@ -35863,34 +38703,35 @@ function BlockEditorAutocomplete(props) {
/* harmony default export */ const autocomplete = (BlockEditorAutocomplete);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/fullscreen.js
-
/**
* WordPress dependencies
*/
-const fullscreen = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const fullscreen = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"
+ })
+});
/* harmony default export */ const library_fullscreen = (fullscreen);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-full-height-alignment-control/index.js
-
/**
* WordPress dependencies
*/
+
function BlockFullHeightAlignmentControl({
isActive,
label = (0,external_wp_i18n_namespaceObject.__)('Toggle full height'),
onToggle,
isDisabled
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
isActive: isActive,
icon: library_fullscreen,
label: label,
@@ -35901,13 +38742,13 @@ function BlockFullHeightAlignmentControl({
/* harmony default export */ const block_full_height_alignment_control = (BlockFullHeightAlignmentControl);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-alignment-matrix-control/index.js
-
/**
* WordPress dependencies
*/
+
const block_alignment_matrix_control_noop = () => {};
function BlockAlignmentMatrixControl(props) {
const {
@@ -35916,10 +38757,10 @@ function BlockAlignmentMatrixControl(props) {
value = 'center',
isDisabled
} = props;
- const icon = (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalAlignmentMatrixControl.Icon, {
+ const icon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalAlignmentMatrixControl.Icon, {
value: value
});
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Dropdown, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
popoverProps: {
placement: 'bottom-start'
},
@@ -35933,7 +38774,7 @@ function BlockAlignmentMatrixControl(props) {
onToggle();
}
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
onClick: onToggle,
"aria-haspopup": "true",
"aria-expanded": isOpen,
@@ -35944,7 +38785,7 @@ function BlockAlignmentMatrixControl(props) {
disabled: isDisabled
});
},
- renderContent: () => (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalAlignmentMatrixControl, {
+ renderContent: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalAlignmentMatrixControl, {
hasFocusBorder: false,
onChange: onChange,
value: value
@@ -36060,7 +38901,6 @@ function BlockTitle({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-breadcrumb/index.js
-
/**
* WordPress dependencies
*/
@@ -36083,6 +38923,8 @@ function BlockTitle({
* @param {string} props.rootLabelText Translated label for the root element of the breadcrumb trail.
* @return {Element} Block Breadcrumb.
*/
+
+
function BlockBreadcrumb({
rootLabelText
}) {
@@ -36114,39 +38956,44 @@ function BlockBreadcrumb({
* Safari+VoiceOver won't announce the list otherwise.
*/
/* eslint-disable jsx-a11y/no-redundant-roles */
- return (0,external_React_.createElement)("ul", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("ul", {
className: "block-editor-block-breadcrumb",
role: "list",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Block breadcrumb')
- }, (0,external_React_.createElement)("li", {
- className: !hasSelection ? 'block-editor-block-breadcrumb__current' : undefined,
- "aria-current": !hasSelection ? 'true' : undefined
- }, hasSelection && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "block-editor-block-breadcrumb__button",
- variant: "tertiary",
- onClick: clearSelectedBlock
- }, rootLabel), !hasSelection && rootLabel, !!clientId && (0,external_React_.createElement)(build_module_icon, {
- icon: chevron_right_small,
- className: "block-editor-block-breadcrumb__separator"
- })), parents.map(parentClientId => (0,external_React_.createElement)("li", {
- key: parentClientId
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "block-editor-block-breadcrumb__button",
- variant: "tertiary",
- onClick: () => selectBlock(parentClientId)
- }, (0,external_React_.createElement)(BlockTitle, {
- clientId: parentClientId,
- maximumLength: 35
- })), (0,external_React_.createElement)(build_module_icon, {
- icon: chevron_right_small,
- className: "block-editor-block-breadcrumb__separator"
- }))), !!clientId && (0,external_React_.createElement)("li", {
- className: "block-editor-block-breadcrumb__current",
- "aria-current": "true"
- }, (0,external_React_.createElement)(BlockTitle, {
- clientId: clientId,
- maximumLength: 35
- })))
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Block breadcrumb'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ className: !hasSelection ? 'block-editor-block-breadcrumb__current' : undefined,
+ "aria-current": !hasSelection ? 'true' : undefined,
+ children: [hasSelection && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "block-editor-block-breadcrumb__button",
+ variant: "tertiary",
+ onClick: clearSelectedBlock,
+ children: rootLabel
+ }), !hasSelection && rootLabel, !!clientId && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: chevron_right_small,
+ className: "block-editor-block-breadcrumb__separator"
+ })]
+ }), parents.map(parentClientId => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "block-editor-block-breadcrumb__button",
+ variant: "tertiary",
+ onClick: () => selectBlock(parentClientId),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockTitle, {
+ clientId: parentClientId,
+ maximumLength: 35
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: chevron_right_small,
+ className: "block-editor-block-breadcrumb__separator"
+ })]
+ }, parentClientId)), !!clientId && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ className: "block-editor-block-breadcrumb__current",
+ "aria-current": "true",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockTitle, {
+ clientId: clientId,
+ maximumLength: 35
+ })
+ })]
+ })
/* eslint-enable jsx-a11y/no-redundant-roles */;
}
/* harmony default export */ const block_breadcrumb = (BlockBreadcrumb);
@@ -36171,7 +39018,6 @@ function useBlockOverlayActive(clientId) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-context/index.js
-
/**
* WordPress dependencies
*/
@@ -36188,6 +39034,7 @@ function useBlockOverlayActive(clientId) {
*/
/** @type {import('react').Context<Record<string,*>>} */
+
const block_context_Context = (0,external_wp_element_namespaceObject.createContext)({});
/**
@@ -36206,7 +39053,7 @@ function BlockContextProvider({
...context,
...value
}), [context, value]);
- return (0,external_React_.createElement)(block_context_Context.Provider, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_context_Context.Provider, {
value: nextValue,
children: children
});
@@ -36214,7 +39061,6 @@ function BlockContextProvider({
/* harmony default export */ const block_context = (block_context_Context);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit/edit.js
-
/**
* External dependencies
*/
@@ -36240,6 +39086,7 @@ function BlockContextProvider({
*
* @type {{}}
*/
+
const DEFAULT_BLOCK_CONTEXT = {};
const Edit = props => {
const {
@@ -36254,7 +39101,7 @@ const Edit = props => {
// with which a block is displayed. If `blockType` is valid, assign
// them preferentially as the render value for the block.
const Component = blockType.edit || blockType.save;
- return (0,external_React_.createElement)(Component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
...props
});
};
@@ -36275,7 +39122,7 @@ const EditWithGeneratedProps = props => {
return null;
}
if (blockType.apiVersion > 1) {
- return (0,external_React_.createElement)(EditWithFilters, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditWithFilters, {
...props,
context: context
});
@@ -36283,8 +39130,8 @@ const EditWithGeneratedProps = props => {
// Generate a class name for the block's editable form.
const generatedClassName = (0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockType, 'className', true) ? (0,external_wp_blocks_namespaceObject.getBlockDefaultClassName)(name) : null;
- const className = classnames_default()(generatedClassName, attributes.className, props.className);
- return (0,external_React_.createElement)(EditWithFilters, {
+ const className = dist_clsx(generatedClassName, attributes.className, props.className);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditWithFilters, {
...props,
context: context,
className: className
@@ -36292,19 +39139,149 @@ const EditWithGeneratedProps = props => {
};
/* harmony default export */ const block_edit_edit = (EditWithGeneratedProps);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit/index.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
+/**
+ * WordPress dependencies
+ */
+
+
+const moreVertical = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
+ })
+});
+/* harmony default export */ const more_vertical = (moreVertical);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/warning/index.js
+/**
+ * External dependencies
+ */
+
/**
* WordPress dependencies
*/
+
+
+
+
+function Warning({
+ className,
+ actions,
+ children,
+ secondaryActions
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ style: {
+ display: 'contents',
+ all: 'initial'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx(className, 'block-editor-warning'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-warning__contents",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "block-editor-warning__message",
+ children: children
+ }), (external_wp_element_namespaceObject.Children.count(actions) > 0 || secondaryActions) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-warning__actions",
+ children: [external_wp_element_namespaceObject.Children.count(actions) > 0 && external_wp_element_namespaceObject.Children.map(actions, (action, i) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-warning__action",
+ children: action
+ }, i)), secondaryActions && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
+ className: "block-editor-warning__secondary",
+ icon: more_vertical,
+ label: (0,external_wp_i18n_namespaceObject.__)('More options'),
+ popoverProps: {
+ position: 'bottom left',
+ className: 'block-editor-warning__dropdown'
+ },
+ noIcons: true,
+ children: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ children: secondaryActions.map((item, pos) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: item.onClick,
+ children: item.title
+ }, pos))
+ })
+ })]
+ })]
+ })
+ })
+ });
+}
+
+/**
+ * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/warning/README.md
+ */
+/* harmony default export */ const warning = (Warning);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit/multiple-usage-warning.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+function MultipleUsageWarning({
+ originalBlockClientId,
+ name,
+ onReplace
+}) {
+ const {
+ selectBlock
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const blockType = (0,external_wp_blocks_namespaceObject.getBlockType)(name);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(warning, {
+ actions: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "secondary",
+ onClick: () => selectBlock(originalBlockClientId),
+ children: (0,external_wp_i18n_namespaceObject.__)('Find original')
+ }, "find-original"), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "secondary",
+ onClick: () => onReplace([]),
+ children: (0,external_wp_i18n_namespaceObject.__)('Remove')
+ }, "remove")],
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("strong", {
+ children: [blockType?.title, ": "]
+ }), (0,external_wp_i18n_namespaceObject.__)('This block can only be used once.')]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/private-block-context.js
+/**
+ * WordPress dependencies
+ */
+
+const PrivateBlockContext = (0,external_wp_element_namespaceObject.createContext)({});
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
/**
* Internal dependencies
*/
+
+
/**
* The `useBlockEditContext` hook provides information about the block this hook is being used in.
* It returns an object with the `name`, `isSelected` state, and the `clientId` of the block.
@@ -36314,10 +39291,13 @@ const EditWithGeneratedProps = props => {
* @return {Object} Block edit context
*/
+
+
function BlockEdit({
mayDisplayControls,
mayDisplayParentControls,
blockEditingMode,
+ isPreviewMode,
// The remaining props are passed through the BlockEdit filters and are thus
// public API!
...props
@@ -36337,7 +39317,10 @@ function BlockEdit({
bindings
} = metadata;
const layoutSupport = (0,external_wp_blocks_namespaceObject.hasBlockSupport)(name, 'layout', false) || (0,external_wp_blocks_namespaceObject.hasBlockSupport)(name, '__experimentalLayout', false);
- return (0,external_React_.createElement)(Provider
+ const {
+ originalBlockClientId
+ } = (0,external_wp_element_namespaceObject.useContext)(PrivateBlockContext);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(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.
@@ -36353,93 +39336,30 @@ function BlockEdit({
[mayDisplayControlsKey]: mayDisplayControls,
[mayDisplayParentControlsKey]: mayDisplayParentControls,
[blockEditingModeKey]: blockEditingMode,
- [blockBindingsKey]: bindings
- }), [name, isSelected, clientId, layoutSupport, layout, __unstableLayoutClassNames, mayDisplayControls, mayDisplayParentControls, blockEditingMode, bindings])
- }, (0,external_React_.createElement)(block_edit_edit, {
- ...props
- }));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
-
-/**
- * WordPress dependencies
- */
-
-const moreVertical = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
-}));
-/* harmony default export */ const more_vertical = (moreVertical);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/warning/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-function Warning({
- className,
- actions,
- children,
- secondaryActions
-}) {
- return (0,external_React_.createElement)("div", {
- style: {
- display: 'contents',
- all: 'initial'
- }
- }, (0,external_React_.createElement)("div", {
- className: classnames_default()(className, 'block-editor-warning')
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-warning__contents"
- }, (0,external_React_.createElement)("p", {
- className: "block-editor-warning__message"
- }, children), (external_wp_element_namespaceObject.Children.count(actions) > 0 || secondaryActions) && (0,external_React_.createElement)("div", {
- className: "block-editor-warning__actions"
- }, external_wp_element_namespaceObject.Children.count(actions) > 0 && external_wp_element_namespaceObject.Children.map(actions, (action, i) => (0,external_React_.createElement)("span", {
- key: i,
- className: "block-editor-warning__action"
- }, action)), secondaryActions && (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
- className: "block-editor-warning__secondary",
- icon: more_vertical,
- label: (0,external_wp_i18n_namespaceObject.__)('More options'),
- popoverProps: {
- position: 'bottom left',
- className: 'block-editor-warning__dropdown'
- },
- noIcons: true
- }, () => (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, secondaryActions.map((item, pos) => (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: item.onClick,
- key: pos
- }, item.title))))))));
+ [blockBindingsKey]: bindings,
+ [isPreviewModeKey]: isPreviewMode
+ }), [name, isSelected, clientId, layoutSupport, layout, __unstableLayoutClassNames, mayDisplayControls, mayDisplayParentControls, blockEditingMode, bindings, isPreviewMode]),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_edit_edit, {
+ ...props
+ }), originalBlockClientId && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MultipleUsageWarning, {
+ originalBlockClientId: originalBlockClientId,
+ name: name,
+ onReplace: props.onReplace
+ })]
+ });
}
-/**
- * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/warning/README.md
- */
-/* harmony default export */ const warning = (Warning);
-
// EXTERNAL MODULE: ./node_modules/diff/lib/diff/character.js
var character = __webpack_require__(8021);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-compare/block-view.js
-
/**
* WordPress dependencies
*/
+
+
function BlockView({
title,
rawContent,
@@ -36448,27 +39368,35 @@ function BlockView({
actionText,
className
}) {
- return (0,external_React_.createElement)("div", {
- className: className
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-block-compare__content"
- }, (0,external_React_.createElement)("h2", {
- className: "block-editor-block-compare__heading"
- }, title), (0,external_React_.createElement)("div", {
- className: "block-editor-block-compare__html"
- }, rawContent), (0,external_React_.createElement)("div", {
- className: "block-editor-block-compare__preview edit-post-visual-editor"
- }, (0,external_React_.createElement)(external_wp_element_namespaceObject.RawHTML, null, (0,external_wp_dom_namespaceObject.safeHTML)(renderedContent)))), (0,external_React_.createElement)("div", {
- className: "block-editor-block-compare__action"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "secondary",
- tabIndex: "0",
- onClick: action
- }, actionText)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: className,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-block-compare__content",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ className: "block-editor-block-compare__heading",
+ children: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-compare__html",
+ children: rawContent
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-compare__preview edit-post-visual-editor",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
+ children: (0,external_wp_dom_namespaceObject.safeHTML)(renderedContent)
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-compare__action",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "secondary",
+ tabIndex: "0",
+ onClick: action,
+ children: actionText
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-compare/index.js
-
/**
* External dependencies
*/
@@ -36487,6 +39415,8 @@ function BlockView({
* Internal dependencies
*/
+
+
function BlockCompare({
block,
onKeep,
@@ -36497,14 +39427,14 @@ function BlockCompare({
function getDifference(originalContent, newContent) {
const difference = (0,character/* diffChars */.JJ)(originalContent, newContent);
return difference.map((item, pos) => {
- const classes = classnames_default()({
+ const classes = dist_clsx({
'block-editor-block-compare__added': item.added,
'block-editor-block-compare__removed': item.removed
});
- return (0,external_React_.createElement)("span", {
- key: pos,
- className: classes
- }, item.value);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: classes,
+ children: item.value
+ }, pos);
});
}
function getConvertedContent(convertedBlock) {
@@ -36517,28 +39447,28 @@ function BlockCompare({
}
const converted = getConvertedContent(convertor(block));
const difference = getDifference(block.originalContent, converted);
- return (0,external_React_.createElement)("div", {
- className: "block-editor-block-compare__wrapper"
- }, (0,external_React_.createElement)(BlockView, {
- title: (0,external_wp_i18n_namespaceObject.__)('Current'),
- className: "block-editor-block-compare__current",
- action: onKeep,
- actionText: (0,external_wp_i18n_namespaceObject.__)('Convert to HTML'),
- rawContent: block.originalContent,
- renderedContent: block.originalContent
- }), (0,external_React_.createElement)(BlockView, {
- title: (0,external_wp_i18n_namespaceObject.__)('After Conversion'),
- className: "block-editor-block-compare__converted",
- action: onConvert,
- actionText: convertButtonText,
- rawContent: difference,
- renderedContent: converted
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-block-compare__wrapper",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockView, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Current'),
+ className: "block-editor-block-compare__current",
+ action: onKeep,
+ actionText: (0,external_wp_i18n_namespaceObject.__)('Convert to HTML'),
+ rawContent: block.originalContent,
+ renderedContent: block.originalContent
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockView, {
+ title: (0,external_wp_i18n_namespaceObject.__)('After Conversion'),
+ className: "block-editor-block-compare__converted",
+ action: onConvert,
+ actionText: convertButtonText,
+ rawContent: difference,
+ renderedContent: converted
+ })]
+ });
}
/* harmony default export */ const block_compare = (BlockCompare);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-invalid-warning.js
-
/**
* WordPress dependencies
*/
@@ -36554,6 +39484,9 @@ function BlockCompare({
+
+
+
const blockToBlocks = block => (0,external_wp_blocks_namespaceObject.rawHandler)({
HTML: block.originalContent
});
@@ -36615,30 +39548,33 @@ function BlockInvalidWarning({
title: (0,external_wp_i18n_namespaceObject.__)('Convert to Classic Block'),
onClick: convert.toClassic
}].filter(Boolean), [canInsertHTMLBlock, canInsertClassicBlock, convert]);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(warning, {
- actions: [(0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- key: "recover",
- onClick: convert.toRecoveredBlock,
- variant: "primary"
- }, (0,external_wp_i18n_namespaceObject.__)('Attempt Block Recovery'))],
- secondaryActions: secondaryActions
- }, (0,external_wp_i18n_namespaceObject.__)('This block contains unexpected or invalid content.')), compare && (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
- title:
- // translators: Dialog title to fix block content
- (0,external_wp_i18n_namespaceObject.__)('Resolve Block'),
- onRequestClose: onCompareClose,
- className: "block-editor-block-compare"
- }, (0,external_React_.createElement)(block_compare, {
- block: block,
- onKeep: convert.toHTML,
- onConvert: convert.toBlocks,
- convertor: blockToBlocks,
- convertButtonText: (0,external_wp_i18n_namespaceObject.__)('Convert to Blocks')
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(warning, {
+ actions: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ onClick: convert.toRecoveredBlock,
+ variant: "primary",
+ children: (0,external_wp_i18n_namespaceObject.__)('Attempt Block Recovery')
+ }, "recover")],
+ secondaryActions: secondaryActions,
+ children: (0,external_wp_i18n_namespaceObject.__)('This block contains unexpected or invalid content.')
+ }), compare && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ title:
+ // translators: Dialog title to fix block content
+ (0,external_wp_i18n_namespaceObject.__)('Resolve Block'),
+ onRequestClose: onCompareClose,
+ className: "block-editor-block-compare",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_compare, {
+ block: block,
+ onKeep: convert.toHTML,
+ onConvert: convert.toBlocks,
+ convertor: blockToBlocks,
+ convertButtonText: (0,external_wp_i18n_namespaceObject.__)('Convert to Blocks')
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-crash-warning.js
-
/**
* WordPress dependencies
*/
@@ -36648,9 +39584,11 @@ function BlockInvalidWarning({
* Internal dependencies
*/
-const block_crash_warning_warning = (0,external_React_.createElement)(warning, {
- className: "block-editor-block-list__block-crash-warning"
-}, (0,external_wp_i18n_namespaceObject.__)('This block has encountered an error and cannot be previewed.'));
+
+const block_crash_warning_warning = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(warning, {
+ className: "block-editor-block-list__block-crash-warning",
+ children: (0,external_wp_i18n_namespaceObject.__)('This block has encountered an error and cannot be previewed.')
+});
/* harmony default export */ const block_crash_warning = (() => block_crash_warning_warning);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-crash-boundary.js
@@ -36680,9 +39618,8 @@ class BlockCrashBoundary extends external_wp_element_namespaceObject.Component {
/* harmony default export */ const block_crash_boundary = (BlockCrashBoundary);
// EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js
-var react_autosize_textarea_lib = __webpack_require__(4132);
+var lib = __webpack_require__(4132);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-html.js
-
/**
* External dependencies
*/
@@ -36699,6 +39636,7 @@ var react_autosize_textarea_lib = __webpack_require__(4132);
* Internal dependencies
*/
+
function BlockHTML({
clientId
}) {
@@ -36735,7 +39673,7 @@ function BlockHTML({
(0,external_wp_element_namespaceObject.useEffect)(() => {
setHtml((0,external_wp_blocks_namespaceObject.getBlockContent)(block));
}, [block]);
- return (0,external_React_.createElement)(react_autosize_textarea_lib/* default */.A, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(lib/* default */.A, {
className: "block-editor-block-list__block-html-textarea",
value: html,
onBlur: onChange,
@@ -36916,13 +39854,6 @@ function useMovingAnimation({
}
/* harmony default export */ const use_moving_animation = (useMovingAnimation);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/private-block-context.js
-/**
- * WordPress dependencies
- */
-
-const PrivateBlockContext = (0,external_wp_element_namespaceObject.createContext)({});
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/dom.js
const BLOCK_SELECTOR = '.block-editor-block-list__block';
const APPENDER_SELECTOR = '.block-list-appender';
@@ -37009,11 +39940,12 @@ function useFocusFirstElement({
const ref = (0,external_wp_element_namespaceObject.useRef)();
const {
isBlockSelected,
- isMultiSelecting
+ isMultiSelecting,
+ __unstableGetEditorMode
} = (0,external_wp_data_namespaceObject.useSelect)(store);
(0,external_wp_element_namespaceObject.useEffect)(() => {
// Check if the block is still selected at the time this effect runs.
- if (!isBlockSelected(clientId) || isMultiSelecting()) {
+ if (!isBlockSelected(clientId) || isMultiSelecting() || __unstableGetEditorMode() === 'zoom-out') {
return;
}
if (initialPosition === undefined || initialPosition === null) {
@@ -37075,22 +40007,18 @@ function listener(event) {
* Adds `is-hovered` class when the block is hovered and in navigation or
* outline mode.
*/
-function useIsHovered({
- isEnabled
-}) {
+function useIsHovered() {
return (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
- if (isEnabled) {
- node.addEventListener('mouseout', listener);
- node.addEventListener('mouseover', listener);
- return () => {
- node.removeEventListener('mouseout', listener);
- node.removeEventListener('mouseover', listener);
+ node.addEventListener('mouseout', listener);
+ node.addEventListener('mouseover', listener);
+ return () => {
+ node.removeEventListener('mouseout', listener);
+ node.removeEventListener('mouseover', listener);
- // Remove class in case it lingers.
- node.classList.remove('is-hovered');
- };
- }
- }, [isEnabled]);
+ // Remove class in case it lingers.
+ node.classList.remove('is-hovered');
+ };
+ }, []);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/use-block-props/use-focus-handler.js
@@ -37316,6 +40244,44 @@ function useIntersectionObserver() {
}, [observer]);
}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/use-block-props/use-scroll-into-view.js
+/**
+ * WordPress dependencies
+ */
+
+function useScrollIntoView({
+ isSelected
+}) {
+ const prefersReducedMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
+ return (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
+ if (isSelected) {
+ const {
+ ownerDocument
+ } = node;
+ const {
+ defaultView
+ } = ownerDocument;
+ if (!defaultView.IntersectionObserver) {
+ return;
+ }
+ const observer = new defaultView.IntersectionObserver(entries => {
+ // Once observing starts, we always get an initial
+ // entry with the intersecting state.
+ if (!entries[0].isIntersecting) {
+ node.scrollIntoView({
+ behavior: prefersReducedMotion ? 'instant' : 'smooth'
+ });
+ }
+ observer.disconnect();
+ });
+ observer.observe(node);
+ return () => {
+ observer.disconnect();
+ };
+ }
+ }, [isSelected]);
+}
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-flash-editable-blocks/index.js
/**
* WordPress dependencies
@@ -37401,6 +40367,7 @@ function useFlashEditableBlocks({
+
/**
* This hook is used to lightly mark an element as a block element. The element
* should be the outermost element of a block. Call this hook and pass the
@@ -37458,7 +40425,6 @@ function use_block_props_useBlockProps(props = {}, {
blockTitle,
isSelected,
isSubtreeDisabled,
- isOutlineEnabled,
hasOverlay,
initialPosition,
blockEditingMode,
@@ -37468,7 +40434,6 @@ function use_block_props_useBlockProps(props = {}, {
isReusable,
isDragging,
hasChildSelected,
- removeOutline,
isBlockMovingMode,
canInsertMovingBlock,
isEditingDisabled,
@@ -37487,9 +40452,7 @@ function use_block_props_useBlockProps(props = {}, {
}), useBlockRefProvider(clientId), useFocusHandler(clientId), useEventHandlers({
clientId,
isSelected
- }), useNavModeExit(clientId), useIsHovered({
- isEnabled: isOutlineEnabled
- }), useIntersectionObserver(), use_moving_animation({
+ }), useNavModeExit(clientId), useIsHovered(), useIntersectionObserver(), use_moving_animation({
triggerAnimationOnChange: index,
clientId
}), (0,external_wp_compose_namespaceObject.useDisabled)({
@@ -37497,17 +40460,24 @@ function use_block_props_useBlockProps(props = {}, {
}), useFlashEditableBlocks({
clientId,
isEnabled: name === 'core/block' || templateLock === 'contentOnly'
+ }), useScrollIntoView({
+ isSelected
})]);
const blockEditContext = useBlockEditContext();
const hasBlockBindings = !!blockEditContext[blockBindingsKey];
const bindingsStyle = hasBlockBindings && canBindBlock(name) ? {
- '--wp-admin-theme-color': 'var(--wp-bound-block-color)'
+ '--wp-admin-theme-color': 'var(--wp-block-synced-color)',
+ '--wp-admin-theme-color--rgb': 'var(--wp-block-synced-color--rgb)'
} : {};
// Ensures it warns only inside the `edit` implementation for the block.
if (blockApiVersion < 2 && clientId === blockEditContext.clientId) {
true ? external_wp_warning_default()(`Block type "${name}" must support API version 2 or higher to work correctly with "useBlockProps" method.`) : 0;
}
+ let hasNegativeMargin = false;
+ if (wrapperProps?.style?.marginTop?.charAt(0) === '-' || wrapperProps?.style?.marginBottom?.charAt(0) === '-' || wrapperProps?.style?.marginLeft?.charAt(0) === '-' || wrapperProps?.style?.marginRight?.charAt(0) === '-') {
+ hasNegativeMargin = true;
+ }
return {
tabIndex: blockEditingMode === 'disabled' ? -1 : 0,
...wrapperProps,
@@ -37520,7 +40490,7 @@ function use_block_props_useBlockProps(props = {}, {
'data-type': name,
'data-title': blockTitle,
inert: isSubtreeDisabled ? 'true' : undefined,
- className: classnames_default()('block-editor-block-list__block', {
+ className: dist_clsx('block-editor-block-list__block', {
// The wp-block className is important for editor styles.
'wp-block': !isAligned,
'has-block-overlay': hasOverlay,
@@ -37531,11 +40501,11 @@ function use_block_props_useBlockProps(props = {}, {
'is-reusable': isReusable,
'is-dragging': isDragging,
'has-child-selected': hasChildSelected,
- 'remove-outline': removeOutline,
'is-block-moving-mode': isBlockMovingMode,
'can-insert-moving-block': canInsertMovingBlock,
'is-editing-disabled': isEditingDisabled,
'has-editable-outline': hasEditableOutline,
+ 'has-negative-margin': hasNegativeMargin,
'is-content-locked-temporarily-editing-as-blocks': isTemporarilyEditingAsBlocks
}, className, props.className, wrapperProps.className, defaultClassName),
style: {
@@ -37554,7 +40524,6 @@ function use_block_props_useBlockProps(props = {}, {
use_block_props_useBlockProps.save = external_wp_blocks_namespaceObject.__unstableGetBlockProps;
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block.js
-
/**
* External dependencies
*/
@@ -37592,6 +40561,9 @@ use_block_props_useBlockProps.save = external_wp_blocks_namespaceObject.__unstab
*
* @return {Object} Merged props.
*/
+
+
+
function mergeWrapperProps(propsA, propsB) {
const newProps = {
...propsA,
@@ -37600,7 +40572,7 @@ function mergeWrapperProps(propsA, propsB) {
// May be set to undefined, so check if the property is set!
if (propsA?.hasOwnProperty('className') && propsB?.hasOwnProperty('className')) {
- newProps.className = classnames_default()(propsA.className, propsB.className);
+ newProps.className = dist_clsx(propsA.className, propsB.className);
}
if (propsA?.hasOwnProperty('style') && propsB?.hasOwnProperty('style')) {
newProps.style = {
@@ -37615,11 +40587,12 @@ function Block({
isHtml,
...props
}) {
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...use_block_props_useBlockProps(props, {
__unstableIsHtml: isHtml
- })
- }, children);
+ }),
+ children: children
+ });
}
function BlockListBlock({
block: {
@@ -37653,14 +40626,14 @@ function BlockListBlock({
const {
removeBlock
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
- const onRemove = (0,external_wp_element_namespaceObject.useCallback)(() => removeBlock(clientId), [clientId]);
+ const onRemove = (0,external_wp_element_namespaceObject.useCallback)(() => removeBlock(clientId), [clientId, removeBlock]);
const parentLayout = useLayout() || {};
// 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.
- let blockEdit = (0,external_React_.createElement)(BlockEdit, {
+ let blockEdit = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockEdit, {
name: name,
isSelected: isSelected,
attributes: attributes,
@@ -37676,7 +40649,8 @@ function BlockListBlock({
__unstableParentLayout: Object.keys(parentLayout).length ? parentLayout : undefined,
mayDisplayControls: mayDisplayControls,
mayDisplayParentControls: mayDisplayParentControls,
- blockEditingMode: context.blockEditingMode
+ blockEditingMode: context.blockEditingMode,
+ isPreviewMode: context.isPreviewMode
});
const blockType = (0,external_wp_blocks_namespaceObject.getBlockType)(name);
@@ -37699,56 +40673,77 @@ function BlockListBlock({
// to the layout feature, and we're now aligning the markup of frontend
// and backend.
if (isAligned) {
- blockEdit = (0,external_React_.createElement)("div", {
- className: classnames_default()('wp-block', isSticky && className),
- "data-align": wrapperProps['data-align']
- }, blockEdit);
+ blockEdit = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('wp-block', isSticky && className),
+ "data-align": wrapperProps['data-align'],
+ children: blockEdit
+ });
}
let block;
if (!isValid) {
const saveContent = __unstableBlockSource ? (0,external_wp_blocks_namespaceObject.serializeRawBlock)(__unstableBlockSource) : (0,external_wp_blocks_namespaceObject.getSaveContent)(blockType, attributes);
- block = (0,external_React_.createElement)(Block, {
- className: "has-warning"
- }, (0,external_React_.createElement)(BlockInvalidWarning, {
- clientId: clientId
- }), (0,external_React_.createElement)(external_wp_element_namespaceObject.RawHTML, null, (0,external_wp_dom_namespaceObject.safeHTML)(saveContent)));
+ block = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Block, {
+ className: "has-warning",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockInvalidWarning, {
+ clientId: clientId
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
+ children: (0,external_wp_dom_namespaceObject.safeHTML)(saveContent)
+ })]
+ });
} else if (mode === 'html') {
// Render blockEdit so the inspector controls don't disappear.
// See #8969.
- block = (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("div", {
- style: {
- display: 'none'
- }
- }, blockEdit), (0,external_React_.createElement)(Block, {
- isHtml: true
- }, (0,external_React_.createElement)(block_html, {
- clientId: clientId
- })));
+ block = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ style: {
+ display: 'none'
+ },
+ children: blockEdit
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Block, {
+ isHtml: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_html, {
+ clientId: clientId
+ })
+ })]
+ });
} else if (blockType?.apiVersion > 1) {
block = blockEdit;
} else {
- block = (0,external_React_.createElement)(Block, null, blockEdit);
+ block = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Block, {
+ children: blockEdit
+ });
}
const {
'data-align': dataAlign,
...restWrapperProps
} = (_wrapperProps = wrapperProps) !== null && _wrapperProps !== void 0 ? _wrapperProps : {};
- restWrapperProps.className = classnames_default()(restWrapperProps.className, dataAlign && themeSupportsLayout && `align${dataAlign}`, !(dataAlign && isSticky) && className);
+ const updatedWrapperProps = {
+ ...restWrapperProps,
+ className: dist_clsx(restWrapperProps.className, dataAlign && themeSupportsLayout && `align${dataAlign}`, !(dataAlign && isSticky) && className)
+ };
// We set a new context with the adjusted and filtered wrapperProps (through
// `editor.BlockListBlock`), which the `BlockListBlockProvider` did not have
// access to.
- return (0,external_React_.createElement)(PrivateBlockContext.Provider, {
+ // Note that the context value doesn't have to be memoized in this case
+ // because when it changes, this component will be re-rendered anyway, and
+ // none of the consumers (BlockListBlock and useBlockProps) are memoized or
+ // "pure". This is different from the public BlockEditContext, where
+ // consumers might be memoized or "pure".
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivateBlockContext.Provider, {
value: {
- wrapperProps: restWrapperProps,
+ wrapperProps: updatedWrapperProps,
isAligned,
...context
- }
- }, (0,external_React_.createElement)(block_crash_boundary, {
- fallback: (0,external_React_.createElement)(Block, {
- className: "has-warning"
- }, (0,external_React_.createElement)(block_crash_warning, null))
- }, block));
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_crash_boundary, {
+ fallback: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Block, {
+ className: "has-warning",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_crash_warning, {})
+ }),
+ children: block
+ })
+ });
}
const applyWithDispatch = (0,external_wp_data_namespaceObject.withDispatch)((dispatch, ownProps, registry) => {
const {
@@ -37759,7 +40754,8 @@ const applyWithDispatch = (0,external_wp_data_namespaceObject.withDispatch)((dis
toggleSelection,
__unstableMarkLastChangeAsPersistent,
moveBlocksToPosition,
- removeBlock
+ removeBlock,
+ selectBlock
} = dispatch(store);
// Do not add new properties here, use `useDispatch` instead to avoid
@@ -37809,6 +40805,24 @@ const applyWithDispatch = (0,external_wp_data_namespaceObject.withDispatch)((dis
getBlockRootClientId,
canInsertBlockType
} = registry.select(store);
+ function switchToDefaultOrRemove() {
+ const block = getBlock(clientId);
+ const defaultBlockName = (0,external_wp_blocks_namespaceObject.getDefaultBlockName)();
+ if (getBlockName(clientId) !== defaultBlockName) {
+ const replacement = (0,external_wp_blocks_namespaceObject.switchToBlockType)(block, defaultBlockName);
+ if (replacement && replacement.length) {
+ replaceBlocks(clientId, replacement);
+ }
+ } else if ((0,external_wp_blocks_namespaceObject.isUnmodifiedDefaultBlock)(block)) {
+ const nextBlockClientId = getNextBlockClientId(clientId);
+ if (nextBlockClientId) {
+ registry.batch(() => {
+ removeBlock(clientId);
+ selectBlock(nextBlockClientId);
+ });
+ }
+ }
+ }
/**
* Moves the block with clientId up one level. If the block type
@@ -37831,9 +40845,11 @@ const applyWithDispatch = (0,external_wp_data_namespaceObject.withDispatch)((dis
moveBlocksToPosition([firstClientId], _clientId, targetRootClientId, getBlockIndex(_clientId));
} else {
const replacement = (0,external_wp_blocks_namespaceObject.switchToBlockType)(getBlock(firstClientId), (0,external_wp_blocks_namespaceObject.getDefaultBlockName)());
- if (replacement && replacement.length) {
+ if (replacement && replacement.length && replacement.every(block => canInsertBlockType(block.name, targetRootClientId))) {
insertBlocks(replacement, getBlockIndex(_clientId), targetRootClientId, changeSelection);
removeBlock(firstClientId, false);
+ } else {
+ switchToDefaultOrRemove();
}
}
if (!getBlockOrder(_clientId).length && (0,external_wp_blocks_namespaceObject.isUnmodifiedBlock)(getBlock(_clientId))) {
@@ -37899,7 +40915,7 @@ const applyWithDispatch = (0,external_wp_data_namespaceObject.withDispatch)((dis
}
moveFirstItemUp(rootClientId);
} else {
- removeBlock(clientId);
+ switchToDefaultOrRemove();
}
}
},
@@ -37943,14 +40959,14 @@ function BlockListBlockProvider(props) {
canRemoveBlock,
canMoveBlock,
getSettings,
- __unstableGetTemporarilyEditingAsBlocks,
+ getTemporarilyEditingAsBlocks,
getBlockEditingMode,
getBlockName,
isFirstMultiSelectedBlock,
getMultiSelectedBlockClientIds,
hasSelectedInnerBlock,
+ getBlocksByName,
getBlockIndex,
- isTyping,
isBlockMultiSelected,
isBlockSubtreeDisabled,
isBlockHighlighted,
@@ -37977,77 +40993,96 @@ function BlockListBlockProvider(props) {
hasBlockSupport: _hasBlockSupport,
getActiveBlockVariation
} = select(external_wp_blocks_namespaceObject.store);
- const _isSelected = isBlockSelected(clientId);
- const canRemove = canRemoveBlock(clientId, rootClientId);
- const canMove = canMoveBlock(clientId, rootClientId);
const attributes = getBlockAttributes(clientId);
const {
name: blockName,
isValid
} = blockWithoutAttributes;
const blockType = (0,external_wp_blocks_namespaceObject.getBlockType)(blockName);
- const match = getActiveBlockVariation(blockName, attributes);
const {
- outlineMode,
- supportsLayout
+ supportsLayout,
+ __unstableIsPreviewMode: isPreviewMode
} = getSettings();
+ const hasLightBlockWrapper = blockType?.apiVersion > 1;
+ const previewContext = {
+ isPreviewMode,
+ blockWithoutAttributes,
+ name: blockName,
+ attributes,
+ isValid,
+ themeSupportsLayout: supportsLayout,
+ index: getBlockIndex(clientId),
+ isReusable: (0,external_wp_blocks_namespaceObject.isReusableBlock)(blockType),
+ className: hasLightBlockWrapper ? attributes.className : undefined,
+ defaultClassName: hasLightBlockWrapper ? (0,external_wp_blocks_namespaceObject.getBlockDefaultClassName)(blockName) : undefined,
+ blockTitle: blockType?.title
+ };
+
+ // When in preview mode, we can avoid a lot of selection and
+ // editing related selectors.
+ if (isPreviewMode) {
+ return previewContext;
+ }
+ const _isSelected = isBlockSelected(clientId);
+ const canRemove = canRemoveBlock(clientId);
+ const canMove = canMoveBlock(clientId);
+ const match = getActiveBlockVariation(blockName, attributes);
const isMultiSelected = isBlockMultiSelected(clientId);
const checkDeep = true;
const isAncestorOfSelectedBlock = hasSelectedInnerBlock(clientId, checkDeep);
- const typing = isTyping();
- const hasLightBlockWrapper = blockType?.apiVersion > 1;
const movingClientId = hasBlockMovingClientId();
const blockEditingMode = getBlockEditingMode(clientId);
+ const multiple = (0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockName, 'multiple', true);
+
+ // For block types with `multiple` support, there is no "original
+ // block" to be found in the content, as the block itself is valid.
+ const blocksWithSameName = multiple ? [] : getBlocksByName(blockName);
+ const isInvalid = blocksWithSameName.length && blocksWithSameName[0] !== clientId;
return {
+ ...previewContext,
mode: getBlockMode(clientId),
isSelectionEnabled: isSelectionEnabled(),
isLocked: !!getTemplateLock(rootClientId),
templateLock: getTemplateLock(clientId),
canRemove,
canMove,
- blockWithoutAttributes,
- name: blockName,
- attributes,
- isValid,
isSelected: _isSelected,
- themeSupportsLayout: supportsLayout,
- isTemporarilyEditingAsBlocks: __unstableGetTemporarilyEditingAsBlocks() === clientId,
+ isTemporarilyEditingAsBlocks: getTemporarilyEditingAsBlocks() === clientId,
blockEditingMode,
mayDisplayControls: _isSelected || isFirstMultiSelectedBlock(clientId) && getMultiSelectedBlockClientIds().every(id => getBlockName(id) === blockName),
mayDisplayParentControls: _hasBlockSupport(getBlockName(clientId), '__experimentalExposeControlsToChildren', false) && hasSelectedInnerBlock(clientId),
- index: getBlockIndex(clientId),
blockApiVersion: blockType?.apiVersion || 1,
blockTitle: match?.title || blockType?.title,
isSubtreeDisabled: blockEditingMode === 'disabled' && isBlockSubtreeDisabled(clientId),
- isOutlineEnabled: outlineMode,
hasOverlay: __unstableHasActiveBlockOverlayActive(clientId) && !isDragging(),
- initialPosition: _isSelected && __unstableGetEditorMode() === 'edit' ? getSelectedBlocksInitialCaretPosition() : undefined,
+ initialPosition: _isSelected && (__unstableGetEditorMode() === 'edit' || __unstableGetEditorMode() === 'zoom-out') // Don't recalculate the initialPosition when toggling in/out of zoom-out mode
+ ? getSelectedBlocksInitialCaretPosition() : undefined,
isHighlighted: isBlockHighlighted(clientId),
isMultiSelected,
isPartiallySelected: isMultiSelected && !__unstableIsFullySelected() && !__unstableSelectionHasUnmergeableBlock(),
- isReusable: (0,external_wp_blocks_namespaceObject.isReusableBlock)(blockType),
isDragging: isBlockBeingDragged(clientId),
hasChildSelected: isAncestorOfSelectedBlock,
- removeOutline: _isSelected && outlineMode && typing,
isBlockMovingMode: !!movingClientId,
canInsertMovingBlock: movingClientId && canInsertBlockType(getBlockName(movingClientId), rootClientId),
isEditingDisabled: blockEditingMode === 'disabled',
hasEditableOutline: blockEditingMode !== 'disabled' && getBlockEditingMode(rootClientId) === 'disabled',
- className: hasLightBlockWrapper ? attributes.className : undefined,
- defaultClassName: hasLightBlockWrapper ? (0,external_wp_blocks_namespaceObject.getBlockDefaultClassName)(blockName) : undefined
+ originalBlockClientId: isInvalid ? blocksWithSameName[0] : false
};
}, [clientId, rootClientId]);
const {
- mode,
- isSelectionEnabled,
- isLocked,
- canRemove,
- canMove,
+ isPreviewMode,
+ // Fill values that end up as a public API and may not be defined in
+ // preview mode.
+ mode = 'visual',
+ isSelectionEnabled = false,
+ isLocked = false,
+ canRemove = false,
+ canMove = false,
blockWithoutAttributes,
name,
attributes,
isValid,
- isSelected,
+ isSelected = false,
themeSupportsLayout,
isTemporarilyEditingAsBlocks,
blockEditingMode,
@@ -38057,7 +41092,6 @@ function BlockListBlockProvider(props) {
blockApiVersion,
blockTitle,
isSubtreeDisabled,
- isOutlineEnabled,
hasOverlay,
initialPosition,
isHighlighted,
@@ -38066,14 +41100,14 @@ function BlockListBlockProvider(props) {
isReusable,
isDragging,
hasChildSelected,
- removeOutline,
isBlockMovingMode,
canInsertMovingBlock,
templateLock,
isEditingDisabled,
hasEditableOutline,
className,
- defaultClassName
+ defaultClassName,
+ originalBlockClientId
} = selectedProps;
// Users of the editor.BlockListBlock filter used to be able to
@@ -38092,6 +41126,7 @@ function BlockListBlockProvider(props) {
return null;
}
const privateContext = {
+ isPreviewMode,
clientId,
className,
index,
@@ -38101,7 +41136,6 @@ function BlockListBlockProvider(props) {
blockTitle,
isSelected,
isSubtreeDisabled,
- isOutlineEnabled,
hasOverlay,
initialPosition,
blockEditingMode,
@@ -38111,7 +41145,6 @@ function BlockListBlockProvider(props) {
isReusable,
isDragging,
hasChildSelected,
- removeOutline,
isBlockMovingMode,
canInsertMovingBlock,
templateLock,
@@ -38121,6 +41154,7 @@ function BlockListBlockProvider(props) {
defaultClassName,
mayDisplayControls,
mayDisplayParentControls,
+ originalBlockClientId,
themeSupportsLayout
};
@@ -38133,84 +41167,88 @@ function BlockListBlockProvider(props) {
// none of the consumers (BlockListBlock and useBlockProps) are memoized or
// "pure". This is different from the public BlockEditContext, where
// consumers might be memoized or "pure".
- return (0,external_React_.createElement)(PrivateBlockContext.Provider, {
- value: privateContext
- }, (0,external_React_.createElement)(BlockListBlock, {
- ...props,
- mode,
- isSelectionEnabled,
- isLocked,
- canRemove,
- canMove,
- // 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,
- name,
- attributes,
- isValid,
- isSelected
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivateBlockContext.Provider, {
+ value: privateContext,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockListBlock, {
+ ...props,
+ mode,
+ isSelectionEnabled,
+ isLocked,
+ canRemove,
+ canMove,
+ // 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,
+ name,
+ attributes,
+ isValid,
+ isSelected
+ })
+ });
}
/* harmony default export */ const block_list_block = ((0,external_wp_element_namespaceObject.memo)(BlockListBlockProvider));
;// CONCATENATED MODULE: external ["wp","htmlEntities"]
const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/tips.js
-
/**
* WordPress dependencies
*/
+
const globalTips = [(0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('While writing, you can press <kbd>/</kbd> to quickly insert new blocks.'), {
- kbd: (0,external_React_.createElement)("kbd", null)
+ kbd: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("kbd", {})
}), (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('Indent a list by pressing <kbd>space</kbd> at the beginning of a line.'), {
- kbd: (0,external_React_.createElement)("kbd", null)
+ kbd: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("kbd", {})
}), (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line.'), {
- kbd: (0,external_React_.createElement)("kbd", null)
+ kbd: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("kbd", {})
}), (0,external_wp_i18n_namespaceObject.__)('Drag files into the editor to automatically insert media blocks.'), (0,external_wp_i18n_namespaceObject.__)("Change a block's type by pressing the block icon on the toolbar.")];
function Tips() {
const [randomIndex] = (0,external_wp_element_namespaceObject.useState)(
// Disable Reason: I'm not generating an HTML id.
// eslint-disable-next-line no-restricted-syntax
Math.floor(Math.random() * globalTips.length));
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Tip, null, globalTips[randomIndex]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Tip, {
+ children: globalTips[randomIndex]
+ });
}
/* harmony default export */ const tips = (Tips);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js
-
/**
* WordPress dependencies
*/
-const chevronRight = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
+ })
+});
/* harmony default export */ const chevron_right = (chevronRight);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js
-
/**
* WordPress dependencies
*/
-const chevronLeft = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
+ })
+});
/* harmony default export */ const chevron_left = (chevronLeft);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-card/index.js
-
/**
* External dependencies
*/
@@ -38230,6 +41268,8 @@ const chevronLeft = (0,external_React_.createElement)(external_wp_primitives_nam
*/
+
+
function BlockCard({
title,
icon,
@@ -38263,37 +41303,41 @@ function BlockCard({
const {
selectBlock
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
- return (0,external_React_.createElement)("div", {
- className: classnames_default()('block-editor-block-card', className)
- }, parentNavBlockClientId &&
- // This is only used by the Navigation block for now. It's not ideal having Navigation block specific code here.
- (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- onClick: () => selectBlock(parentNavBlockClientId),
- label: (0,external_wp_i18n_namespaceObject.__)('Go to parent Navigation block'),
- style:
- // TODO: This style override is also used in ToolsPanelHeader.
- // It should be supported out-of-the-box by Button.
- {
- minWidth: 24,
- padding: 0
- },
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_right : chevron_left,
- size: "small"
- }), (0,external_React_.createElement)(block_icon, {
- icon: icon,
- showColors: true
- }), (0,external_React_.createElement)("div", {
- className: "block-editor-block-card__content"
- }, (0,external_React_.createElement)("h2", {
- className: "block-editor-block-card__title"
- }, title), description && (0,external_React_.createElement)("span", {
- className: "block-editor-block-card__description"
- }, description)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: dist_clsx('block-editor-block-card', className),
+ children: [parentNavBlockClientId &&
+ /*#__PURE__*/
+ // This is only used by the Navigation block for now. It's not ideal having Navigation block specific code here.
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ onClick: () => selectBlock(parentNavBlockClientId),
+ label: (0,external_wp_i18n_namespaceObject.__)('Go to parent Navigation block'),
+ style:
+ // TODO: This style override is also used in ToolsPanelHeader.
+ // It should be supported out-of-the-box by Button.
+ {
+ minWidth: 24,
+ padding: 0
+ },
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_right : chevron_left,
+ size: "small"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: icon,
+ showColors: true
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 1,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ className: "block-editor-block-card__title",
+ children: title
+ }), description && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ className: "block-editor-block-card__description",
+ children: description
+ })]
+ })]
+ });
}
/* harmony default export */ const block_card = (BlockCard);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/provider/with-registry-provider.js
-
/**
* WordPress dependencies
*/
@@ -38306,33 +41350,38 @@ function BlockCard({
*/
-const withRegistryProvider = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => {
- return (0,external_wp_data_namespaceObject.withRegistry)(({
- useSubRegistry = true,
- registry,
- ...props
- }) => {
- if (!useSubRegistry) {
- return (0,external_React_.createElement)(WrappedComponent, {
- registry: registry,
- ...props
- });
- }
- const [subRegistry, setSubRegistry] = (0,external_wp_element_namespaceObject.useState)(null);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- const newRegistry = (0,external_wp_data_namespaceObject.createRegistry)({}, registry);
- newRegistry.registerStore(STORE_NAME, storeConfig);
- setSubRegistry(newRegistry);
- }, [registry]);
- if (!subRegistry) {
- return null;
- }
- return (0,external_React_.createElement)(external_wp_data_namespaceObject.RegistryProvider, {
- value: subRegistry
- }, (0,external_React_.createElement)(WrappedComponent, {
+
+function getSubRegistry(subRegistries, registry, useSubRegistry) {
+ if (!useSubRegistry) {
+ return registry;
+ }
+ let subRegistry = subRegistries.get(registry);
+ if (!subRegistry) {
+ subRegistry = (0,external_wp_data_namespaceObject.createRegistry)({}, registry);
+ subRegistry.registerStore(STORE_NAME, storeConfig);
+ subRegistries.set(registry, subRegistry);
+ }
+ return subRegistry;
+}
+const withRegistryProvider = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => ({
+ useSubRegistry = true,
+ ...props
+}) => {
+ const registry = (0,external_wp_data_namespaceObject.useRegistry)();
+ const [subRegistries] = (0,external_wp_element_namespaceObject.useState)(() => new WeakMap());
+ const subRegistry = getSubRegistry(subRegistries, registry, useSubRegistry);
+ if (subRegistry === registry) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
+ registry: registry,
+ ...props
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_data_namespaceObject.RegistryProvider, {
+ value: subRegistry,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
registry: subRegistry,
...props
- }));
+ })
});
}, 'withRegistryProvider');
/* harmony default export */ const with_registry_provider = (withRegistryProvider);
@@ -38511,7 +41560,14 @@ function useBlockSync({
}
}
}, [controlledBlocks, clientId]);
+ const isMounted = (0,external_wp_element_namespaceObject.useRef)(false);
(0,external_wp_element_namespaceObject.useEffect)(() => {
+ // On mount, controlled blocks are already set in the effect above.
+ if (!isMounted.current) {
+ isMounted.current = true;
+ return;
+ }
+
// When the block becomes uncontrolled, it means its inner state has been reset
// we need to take the blocks again from the external value property.
if (!isControlled) {
@@ -38538,7 +41594,9 @@ function useBlockSync({
// 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;
+ if (clientId !== null && getBlockName(clientId) === null) {
+ return;
+ }
// When RESET_BLOCKS on parent blocks get called, the controlled blocks
// can reset to uncontrolled, in these situations, it means we need to populate
@@ -38719,6 +41777,26 @@ function KeyboardShortcutsRegister() {
character: 'y'
}
});
+
+ // List view shortcuts.
+ registerShortcut({
+ name: 'core/block-editor/collapse-list-view',
+ category: 'list-view',
+ description: (0,external_wp_i18n_namespaceObject.__)('Collapse all other items.'),
+ keyCombination: {
+ modifier: 'alt',
+ character: 'l'
+ }
+ });
+ registerShortcut({
+ name: 'core/block-editor/group',
+ category: 'block',
+ description: (0,external_wp_i18n_namespaceObject.__)('Create a group block from the selected multiple blocks.'),
+ keyCombination: {
+ modifier: 'primary',
+ character: 'g'
+ }
+ });
}, [registerShortcut]);
return null;
}
@@ -38726,7 +41804,6 @@ KeyboardShortcuts.Register = KeyboardShortcutsRegister;
/* harmony default export */ const keyboard_shortcuts = (KeyboardShortcuts);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/provider/index.js
-
/**
* WordPress dependencies
*/
@@ -38746,6 +41823,7 @@ KeyboardShortcuts.Register = KeyboardShortcutsRegister;
/** @typedef {import('@wordpress/data').WPDataRegistry} WPDataRegistry */
+
const ExperimentalBlockEditorProvider = with_registry_provider(props => {
const {
children,
@@ -38767,20 +41845,23 @@ const ExperimentalBlockEditorProvider = with_registry_provider(props => {
// Syncs the entity provider with changes in the block-editor store.
useBlockSync(props);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.SlotFillProvider, {
- passthrough: true
- }, !settings?.__unstableIsPreviewMode && (0,external_React_.createElement)(keyboard_shortcuts.Register, null), (0,external_React_.createElement)(BlockRefsProvider, null, children));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.SlotFillProvider, {
+ passthrough: true,
+ children: [!settings?.__unstableIsPreviewMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(keyboard_shortcuts.Register, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockRefsProvider, {
+ children: children
+ })]
+ });
});
const BlockEditorProvider = props => {
- return (0,external_React_.createElement)(ExperimentalBlockEditorProvider, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ExperimentalBlockEditorProvider, {
...props,
- stripExperimentalSettings: true
- }, props.children);
+ stripExperimentalSettings: true,
+ children: props.children
+ });
};
/* harmony default export */ const provider = (BlockEditorProvider);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-selection-clearer/index.js
-
/**
* WordPress dependencies
*/
@@ -38799,6 +41880,7 @@ const BlockEditorProvider = props => {
*
* @return {import('react').RefCallback} Ref callback.
*/
+
function useBlockSelectionClearer() {
const {
getSettings,
@@ -38833,7 +41915,7 @@ function useBlockSelectionClearer() {
}, [hasSelectedBlock, hasMultiSelection, clearSelectedBlock, isEnabled]);
}
function BlockSelectionClearer(props) {
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
ref: useBlockSelectionClearer(),
...props
});
@@ -38923,7 +42005,6 @@ function useMultiSelection() {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/writing-flow/use-tab-nav.js
-
/**
* WordPress dependencies
*/
@@ -38939,6 +42020,7 @@ function useMultiSelection() {
+
function useTabNav() {
const container = (0,external_wp_element_namespaceObject.useRef)();
const focusCaptureBeforeRef = (0,external_wp_element_namespaceObject.useRef)();
@@ -38970,7 +42052,12 @@ function useTabNav() {
} else if (hasMultiSelection()) {
container.current.focus();
} else if (getSelectedBlockClientId()) {
- getLastFocus()?.current.focus();
+ if (getLastFocus()?.current) {
+ getLastFocus().current.focus();
+ } else {
+ // Handles when the last focus has not been set yet, or has been cleared by new blocks being added via the inserter.
+ container.current.querySelector(`[data-block="${getSelectedBlockClientId()}"]`).focus();
+ }
} else {
setNavigationMode(true);
const canvasElement = container.current.ownerDocument === event.target.ownerDocument ? container.current : container.current.ownerDocument.defaultView.frameElement;
@@ -38984,12 +42071,12 @@ function useTabNav() {
}
}
}
- const before = (0,external_React_.createElement)("div", {
+ const before = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
ref: focusCaptureBeforeRef,
tabIndex: focusCaptureTabIndex,
onFocus: onFocusCapture
});
- const after = (0,external_React_.createElement)("div", {
+ const after = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
ref: focusCaptureAfterRef,
tabIndex: focusCaptureTabIndex,
onFocus: onFocusCapture
@@ -39023,7 +42110,9 @@ function useTabNav() {
// do it again here because after clearing block selection,
// focus land on the writing flow container and pressing Tab
// will no longer send focus through the focus capture element.
- if (event.target === node) setNavigationMode(true);
+ if (event.target === node) {
+ setNavigationMode(true);
+ }
return;
}
const nextTabbable = external_wp_dom_namespaceObject.focus.tabbable[direction](event.target);
@@ -39447,7 +42536,9 @@ function useSelectAll() {
function setContentEditableWrapper(node, value) {
node.contentEditable = value;
// Firefox doesn't automatically move focus.
- if (value) node.focus();
+ if (value) {
+ node.focus();
+ }
}
/**
@@ -39873,15 +42964,23 @@ function useInput() {
const {
__unstableIsFullySelected,
getSelectedBlockClientIds,
+ getSelectedBlockClientId,
__unstableIsSelectionMergeable,
- hasMultiSelection
+ hasMultiSelection,
+ getBlockName,
+ canInsertBlockType,
+ getBlockRootClientId,
+ getSelectionStart,
+ getSelectionEnd,
+ getBlockAttributes
} = (0,external_wp_data_namespaceObject.useSelect)(store);
const {
replaceBlocks,
__unstableSplitSelection,
removeBlocks,
__unstableDeleteSelection,
- __unstableExpandSelection
+ __unstableExpandSelection,
+ __unstableMarkAutomaticChange
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
return (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
function onBeforeInput(event) {
@@ -39897,6 +42996,40 @@ function useInput() {
return;
}
if (!hasMultiSelection()) {
+ if (event.keyCode === external_wp_keycodes_namespaceObject.ENTER) {
+ if (event.shiftKey || __unstableIsFullySelected()) {
+ return;
+ }
+ const clientId = getSelectedBlockClientId();
+ const blockName = getBlockName(clientId);
+ const selectionStart = getSelectionStart();
+ const selectionEnd = getSelectionEnd();
+ if (selectionStart.attributeKey === selectionEnd.attributeKey) {
+ const selectedAttributeValue = getBlockAttributes(clientId)[selectionStart.attributeKey];
+ const transforms = (0,external_wp_blocks_namespaceObject.getBlockTransforms)('from').filter(({
+ type
+ }) => type === 'enter');
+ const transformation = (0,external_wp_blocks_namespaceObject.findTransform)(transforms, item => {
+ return item.regExp.test(selectedAttributeValue);
+ });
+ if (transformation) {
+ replaceBlocks(clientId, transformation.transform({
+ content: selectedAttributeValue
+ }));
+ __unstableMarkAutomaticChange();
+ return;
+ }
+ }
+ if (!(0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockName, 'splitting', false) && !event.__deprecatedOnSplit) {
+ return;
+ }
+
+ // Ensure template is not locked.
+ if (canInsertBlockType(blockName, getBlockRootClientId(clientId))) {
+ __unstableSplitSelection();
+ event.preventDefault();
+ }
+ }
return;
}
if (event.keyCode === external_wp_keycodes_namespaceObject.ENTER) {
@@ -40117,7 +43250,9 @@ function shouldDismissPastedFiles(files, html /*, plainText */) {
// other elements found, like <figure>, but we assume that the user's
// intention is to paste the actual image file.
const IMAGE_TAG = /<\s*img\b/gi;
- if (html.match(IMAGE_TAG)?.length !== 1) return true;
+ if (html.match(IMAGE_TAG)?.length !== 1) {
+ return true;
+ }
// Even when there is exactly one <img> tag in the HTML payload, we
// choose to weed out local images, i.e. those whose source starts with
@@ -40126,7 +43261,9 @@ function shouldDismissPastedFiles(files, html /*, plainText */) {
// text and exactly one image, and pasting that content using Google
// Chrome.
const IMG_WITH_LOCAL_SRC = /<\s*img\b[^>]*\bsrc="file:\/\//i;
- if (html.match(IMG_WITH_LOCAL_SRC)) return true;
+ if (html.match(IMG_WITH_LOCAL_SRC)) {
+ return true;
+ }
}
return false;
}
@@ -40234,12 +43371,14 @@ function toPlainText(html) {
+
/**
* Internal dependencies
*/
+
function useClipboardHandler() {
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
const {
@@ -40247,11 +43386,13 @@ function useClipboardHandler() {
getSelectedBlockClientIds,
hasMultiSelection,
getSettings,
+ getBlockName,
__unstableIsFullySelected,
__unstableIsSelectionCollapsed,
__unstableIsSelectionMergeable,
__unstableGetSelectedBlocksWithPartialSelection,
- canInsertBlockType
+ canInsertBlockType,
+ getBlockRootClientId
} = (0,external_wp_data_namespaceObject.useSelect)(store);
const {
flashBlock,
@@ -40259,7 +43400,7 @@ function useClipboardHandler() {
replaceBlocks,
__unstableDeleteSelection,
__unstableExpandSelection,
- insertBlocks
+ __unstableSplitSelection
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
const notifyCopy = useNotifyCopy();
return (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
@@ -40273,7 +43414,8 @@ function useClipboardHandler() {
return;
}
- // Always handle multiple selected blocks.
+ // Let native copy/paste behaviour take over in input fields.
+ // But always handle multiple selected blocks.
if (!hasMultiSelection()) {
const {
target
@@ -40283,21 +43425,24 @@ function useClipboardHandler() {
} = target;
// If copying, only consider actual text selection as selection.
// Otherwise, any focus on an input field is considered.
- const hasSelection = event.type === 'copy' || event.type === 'cut' ? (0,external_wp_dom_namespaceObject.documentHasUncollapsedSelection)(ownerDocument) : (0,external_wp_dom_namespaceObject.documentHasSelection)(ownerDocument);
+ const hasSelection = event.type === 'copy' || event.type === 'cut' ? (0,external_wp_dom_namespaceObject.documentHasUncollapsedSelection)(ownerDocument) : (0,external_wp_dom_namespaceObject.documentHasSelection)(ownerDocument) && !ownerDocument.activeElement.isContentEditable;
// Let native copy behaviour take over in input fields.
if (hasSelection) {
return;
}
}
- if (!node.contains(event.target.ownerDocument.activeElement)) {
+ const {
+ activeElement
+ } = event.target.ownerDocument;
+ if (!node.contains(activeElement)) {
return;
}
- event.preventDefault();
const isSelectionMergeable = __unstableIsSelectionMergeable();
const shouldHandleWholeBlocks = __unstableIsSelectionCollapsed() || __unstableIsFullySelected();
const expandSelectionIsNeeded = !shouldHandleWholeBlocks && !isSelectionMergeable;
if (event.type === 'copy' || event.type === 'cut') {
+ event.preventDefault();
if (selectedBlockClientIds.length === 1) {
flashBlock(selectedBlockClientIds[0]);
}
@@ -40333,15 +43478,76 @@ function useClipboardHandler() {
const {
__experimentalCanUserUseUnfilteredHTML: canUserUseUnfilteredHTML
} = getSettings();
- const blocks = getPasteBlocks(event, canUserUseUnfilteredHTML);
- if (selectedBlockClientIds.length === 1) {
- const [selectedBlockClientId] = selectedBlockClientIds;
- if (blocks.every(block => canInsertBlockType(block.name, selectedBlockClientId))) {
- insertBlocks(blocks, undefined, selectedBlockClientId);
- return;
+ const isInternal = event.clipboardData.getData('rich-text') === 'true';
+ if (isInternal) {
+ return;
+ }
+ const {
+ plainText,
+ html,
+ files
+ } = getPasteEventData(event);
+ const isFullySelected = __unstableIsFullySelected();
+ let blocks = [];
+ if (files.length) {
+ const fromTransforms = (0,external_wp_blocks_namespaceObject.getBlockTransforms)('from');
+ blocks = files.reduce((accumulator, file) => {
+ const transformation = (0,external_wp_blocks_namespaceObject.findTransform)(fromTransforms, transform => transform.type === 'files' && transform.isMatch([file]));
+ if (transformation) {
+ accumulator.push(transformation.transform([file]));
+ }
+ return accumulator;
+ }, []).flat();
+ } else {
+ blocks = (0,external_wp_blocks_namespaceObject.pasteHandler)({
+ HTML: html,
+ plainText,
+ mode: isFullySelected ? 'BLOCKS' : 'AUTO',
+ canUserUseUnfilteredHTML
+ });
+ }
+
+ // Inline paste: let rich text handle it.
+ if (typeof blocks === 'string') {
+ return;
+ }
+ if (isFullySelected) {
+ replaceBlocks(selectedBlockClientIds, blocks, blocks.length - 1, -1);
+ event.preventDefault();
+ return;
+ }
+
+ // If a block doesn't support splitting, let rich text paste
+ // inline.
+ if (!hasMultiSelection() && !(0,external_wp_blocks_namespaceObject.hasBlockSupport)(getBlockName(selectedBlockClientIds[0]), 'splitting', false) && !event.__deprecatedOnSplit) {
+ return;
+ }
+ const [firstSelectedClientId] = selectedBlockClientIds;
+ const rootClientId = getBlockRootClientId(firstSelectedClientId);
+ const newBlocks = [];
+ for (const block of blocks) {
+ if (canInsertBlockType(block.name, rootClientId)) {
+ newBlocks.push(block);
+ } else {
+ // If a block cannot be inserted in a root block, try
+ // converting it to that root block type and insert the
+ // inner blocks.
+ // Example: paragraphs cannot be inserted into a list,
+ // so convert the paragraphs to a list for list items.
+ const rootBlockName = getBlockName(rootClientId);
+ const switchedBlocks = block.name !== rootBlockName ? (0,external_wp_blocks_namespaceObject.switchToBlockType)(block, rootBlockName) : [block];
+ if (!switchedBlocks) {
+ return;
+ }
+ for (const switchedBlock of switchedBlocks) {
+ for (const innerBlock of switchedBlock.innerBlocks) {
+ newBlocks.push(innerBlock);
+ }
+ }
}
}
- replaceBlocks(selectedBlockClientIds, blocks, blocks.length - 1, -1);
+ __unstableSplitSelection(newBlocks);
+ event.preventDefault();
}
}
node.ownerDocument.addEventListener('copy', handler);
@@ -40356,7 +43562,6 @@ function useClipboardHandler() {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/writing-flow/index.js
-
/**
* External dependencies
*/
@@ -40383,6 +43588,9 @@ function useClipboardHandler() {
+
+
+
function useWritingFlow() {
const [before, ref, after] = useTabNav();
const hasMultiSelection = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).hasMultiSelection(), []);
@@ -40404,11 +43612,14 @@ function WritingFlow({
...props
}, forwardedRef) {
const [before, ref, after] = useWritingFlow();
- return (0,external_React_.createElement)(external_React_.Fragment, null, before, (0,external_React_.createElement)("div", {
- ...props,
- ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, forwardedRef]),
- className: classnames_default()(props.className, 'block-editor-writing-flow')
- }, children), after);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [before, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...props,
+ ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, forwardedRef]),
+ className: dist_clsx(props.className, 'block-editor-writing-flow'),
+ children: children
+ }), after]
+ });
}
/**
@@ -40515,7 +43726,6 @@ function getCompatibilityStyles() {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/iframe/index.js
-
/**
* External dependencies
*/
@@ -40537,6 +43747,9 @@ function getCompatibilityStyles() {
+
+
+
function bubbleEvent(event, Constructor, frame) {
const init = {};
for (const key in event) {
@@ -40611,16 +43824,19 @@ function Iframe({
tabIndex = 0,
scale = 1,
frameSize = 0,
- expand = false,
readonly,
forwardedRef: ref,
+ title = (0,external_wp_i18n_namespaceObject.__)('Editor canvas'),
...props
}) {
const {
resolvedAssets,
isPreviewMode
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const settings = select(store).getSettings();
+ const {
+ getSettings
+ } = select(store);
+ const settings = getSettings();
return {
resolvedAssets: settings.__unstableResolvedAssets,
isPreviewMode: settings.__unstableIsPreviewMode
@@ -40631,12 +43847,16 @@ function Iframe({
scripts = ''
} = resolvedAssets;
const [iframeDocument, setIframeDocument] = (0,external_wp_element_namespaceObject.useState)();
+ const prevContainerWidth = (0,external_wp_element_namespaceObject.useRef)();
const [bodyClasses, setBodyClasses] = (0,external_wp_element_namespaceObject.useState)([]);
const clearerRef = useBlockSelectionClearer();
const [before, writingFlowRef, after] = useWritingFlow();
const [contentResizeListener, {
height: contentHeight
}] = (0,external_wp_compose_namespaceObject.useResizeObserver)();
+ const [containerResizeListener, {
+ width: containerWidth
+ }] = (0,external_wp_compose_namespaceObject.useResizeObserver)();
const setRef = (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
node._load = () => {
setIframeDocument(node.contentDocument);
@@ -40655,6 +43875,7 @@ function Iframe({
documentElement
} = contentDocument;
iFrameDocument = contentDocument;
+ documentElement.classList.add('block-editor-iframe__html');
clearerRef(documentElement);
// Ideally ALL classes that are added through get_body_class should
@@ -40683,10 +43904,44 @@ function Iframe({
iFrameDocument?.removeEventListener('drop', preventFileDropDefault);
};
}, []);
+ const [iframeWindowInnerHeight, setIframeWindowInnerHeight] = (0,external_wp_element_namespaceObject.useState)();
+ const iframeResizeRef = (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
+ const nodeWindow = node.ownerDocument.defaultView;
+ setIframeWindowInnerHeight(nodeWindow.innerHeight);
+ const onResize = () => {
+ setIframeWindowInnerHeight(nodeWindow.innerHeight);
+ };
+ nodeWindow.addEventListener('resize', onResize);
+ return () => {
+ nodeWindow.removeEventListener('resize', onResize);
+ };
+ }, []);
+ const [windowInnerWidth, setWindowInnerWidth] = (0,external_wp_element_namespaceObject.useState)();
+ const windowResizeRef = (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
+ const nodeWindow = node.ownerDocument.defaultView;
+ setWindowInnerWidth(nodeWindow.innerWidth);
+ const onResize = () => {
+ setWindowInnerWidth(nodeWindow.innerWidth);
+ };
+ nodeWindow.addEventListener('resize', onResize);
+ return () => {
+ nodeWindow.removeEventListener('resize', onResize);
+ };
+ }, []);
+ const isZoomedOut = scale !== 1;
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (!isZoomedOut) {
+ prevContainerWidth.current = containerWidth;
+ }
+ }, [containerWidth, isZoomedOut]);
const disabledRef = (0,external_wp_compose_namespaceObject.useDisabled)({
isDisabled: !readonly
});
- const bodyRef = (0,external_wp_compose_namespaceObject.useMergeRefs)([useBubbleEvents(iframeDocument), contentRef, clearerRef, writingFlowRef, disabledRef]);
+ const bodyRef = (0,external_wp_compose_namespaceObject.useMergeRefs)([useBubbleEvents(iframeDocument), contentRef, clearerRef, writingFlowRef, disabledRef,
+ // Avoid resize listeners when not needed, these will trigger
+ // unnecessary re-renders when animating the iframe width, or when
+ // expanding preview iframes.
+ isZoomedOut ? iframeResizeRef : null]);
// Correct doctype is required to enable rendering in standards
// mode. Also preload the styles to avoid a flash of unstyled
@@ -40696,7 +43951,19 @@ function Iframe({
<head>
<meta charset="utf-8">
<script>window.frameElement._load()</script>
- <style>html{height:auto!important;min-height:100%;}body{margin:0}</style>
+ <style>
+ html{
+ height: auto !important;
+ min-height: 100%;
+ }
+ /* Lowest specificity to not override global styles */
+ :where(body) {
+ margin: 0;
+ /* Default background color in case zoom out mode background
+ colors the html element */
+ background-color: white;
+ }
+ </style>
${styles}
${scripts}
</head>
@@ -40711,55 +43978,101 @@ function Iframe({
return [_src, () => URL.revokeObjectURL(_src)];
}, [html]);
(0,external_wp_element_namespaceObject.useEffect)(() => cleanup, [cleanup]);
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (!iframeDocument || !isZoomedOut) {
+ return;
+ }
+ iframeDocument.documentElement.classList.add('is-zoomed-out');
+ const maxWidth = 800;
+ iframeDocument.documentElement.style.setProperty('--wp-block-editor-iframe-zoom-out-scale', scale === 'default' ? Math.min(containerWidth, maxWidth) / prevContainerWidth.current : scale);
+ iframeDocument.documentElement.style.setProperty('--wp-block-editor-iframe-zoom-out-frame-size', typeof frameSize === 'number' ? `${frameSize}px` : frameSize);
+ iframeDocument.documentElement.style.setProperty('--wp-block-editor-iframe-zoom-out-content-height', `${contentHeight}px`);
+ iframeDocument.documentElement.style.setProperty('--wp-block-editor-iframe-zoom-out-inner-height', `${iframeWindowInnerHeight}px`);
+ iframeDocument.documentElement.style.setProperty('--wp-block-editor-iframe-zoom-out-container-width', `${containerWidth}px`);
+ iframeDocument.documentElement.style.setProperty('--wp-block-editor-iframe-zoom-out-prev-container-width', `${prevContainerWidth.current}px`);
+ return () => {
+ iframeDocument.documentElement.classList.remove('is-zoomed-out');
+ iframeDocument.documentElement.style.removeProperty('--wp-block-editor-iframe-zoom-out-scale');
+ iframeDocument.documentElement.style.removeProperty('--wp-block-editor-iframe-zoom-out-frame-size');
+ iframeDocument.documentElement.style.removeProperty('--wp-block-editor-iframe-zoom-out-content-height');
+ iframeDocument.documentElement.style.removeProperty('--wp-block-editor-iframe-zoom-out-inner-height');
+ iframeDocument.documentElement.style.removeProperty('--wp-block-editor-iframe-zoom-out-container-width');
+ iframeDocument.documentElement.style.removeProperty('--wp-block-editor-iframe-zoom-out-prev-container-width');
+ };
+ }, [scale, frameSize, iframeDocument, iframeWindowInnerHeight, contentHeight, containerWidth, windowInnerWidth, isZoomedOut]);
- // We need to counter the margin created by scaling the iframe. If the scale
- // is e.g. 0.45, then the top + bottom margin is 0.55 (1 - scale). Just the
- // top or bottom margin is 0.55 / 2 ((1 - scale) / 2).
- const marginFromScaling = contentHeight * (1 - scale) / 2;
- return (0,external_React_.createElement)(external_React_.Fragment, null, tabIndex >= 0 && before, (0,external_React_.createElement)("iframe", {
- ...props,
- style: {
- border: 0,
- ...props.style,
- height: expand ? contentHeight : props.style?.height,
- marginTop: scale !== 1 ? -marginFromScaling + frameSize : props.style?.marginTop,
- marginBottom: scale !== 1 ? -marginFromScaling + frameSize : props.style?.marginBottom,
- transform: scale !== 1 ? `scale( ${scale} )` : props.style?.transform,
- transition: 'all .3s'
- },
- ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, setRef]),
- tabIndex: tabIndex
- // Correct doctype is required to enable rendering in standards
- // mode. Also preload the styles to avoid a flash of unstyled
- // content.
- ,
- src: src,
- title: (0,external_wp_i18n_namespaceObject.__)('Editor canvas'),
- onKeyDown: event => {
- if (props.onKeyDown) {
- props.onKeyDown(event);
- }
- // If the event originates from inside the iframe, it means
- // it bubbled through the portal, but only with React
- // events. We need to to bubble native events as well,
- // though by doing so we also trigger another React event,
- // so we need to stop the propagation of this event to avoid
- // duplication.
- else if (event.currentTarget.ownerDocument !== event.target.ownerDocument) {
- event.stopPropagation();
- bubbleEvent(event, window.KeyboardEvent, event.currentTarget);
- }
- }
- }, iframeDocument && (0,external_wp_element_namespaceObject.createPortal)(
- // We want to prevent React events from bubbling throught the iframe
- // we bubble these manually.
- /* eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions */
- (0,external_React_.createElement)("body", {
- ref: bodyRef,
- className: classnames_default()('block-editor-iframe__body', 'editor-styles-wrapper', ...bodyClasses)
- }, contentResizeListener, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalStyleProvider, {
- document: iframeDocument
- }, children)), iframeDocument.documentElement)), tabIndex >= 0 && after);
+ // Make sure to not render the before and after focusable div elements in view
+ // mode. They're only needed to capture focus in edit mode.
+ const shouldRenderFocusCaptureElements = tabIndex >= 0 && !isPreviewMode;
+ const iframe = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [shouldRenderFocusCaptureElements && before, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("iframe", {
+ ...props,
+ style: {
+ border: 0,
+ ...props.style,
+ height: props.style?.height,
+ transition: 'all .3s'
+ },
+ ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, setRef]),
+ tabIndex: tabIndex
+ // Correct doctype is required to enable rendering in standards
+ // mode. Also preload the styles to avoid a flash of unstyled
+ // content.
+ ,
+ src: src,
+ title: title,
+ onKeyDown: event => {
+ if (props.onKeyDown) {
+ props.onKeyDown(event);
+ }
+ // If the event originates from inside the iframe, it means
+ // it bubbled through the portal, but only with React
+ // events. We need to to bubble native events as well,
+ // though by doing so we also trigger another React event,
+ // so we need to stop the propagation of this event to avoid
+ // duplication.
+ if (event.currentTarget.ownerDocument !== event.target.ownerDocument) {
+ // We should only stop propagation of the React event,
+ // the native event should further bubble inside the
+ // iframe to the document and window.
+ // Alternatively, we could consider redispatching the
+ // native event in the iframe.
+ const {
+ stopPropagation
+ } = event.nativeEvent;
+ event.nativeEvent.stopPropagation = () => {};
+ event.stopPropagation();
+ event.nativeEvent.stopPropagation = stopPropagation;
+ bubbleEvent(event, window.KeyboardEvent, event.currentTarget);
+ }
+ },
+ children: iframeDocument && (0,external_wp_element_namespaceObject.createPortal)(
+ /*#__PURE__*/
+ // We want to prevent React events from bubbling throught the iframe
+ // we bubble these manually.
+ /* eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions */
+ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("body", {
+ ref: bodyRef,
+ className: dist_clsx('block-editor-iframe__body', 'editor-styles-wrapper', ...bodyClasses),
+ children: [contentResizeListener, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalStyleProvider, {
+ document: iframeDocument,
+ children: children
+ })]
+ }), iframeDocument.documentElement)
+ }), shouldRenderFocusCaptureElements && after]
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-iframe__container",
+ ref: windowResizeRef,
+ children: [containerResizeListener, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('block-editor-iframe__scale-container', isZoomedOut && 'is-zoomed-out'),
+ style: {
+ '--wp-block-editor-iframe-zoom-out-container-width': isZoomedOut && `${containerWidth}px`,
+ '--wp-block-editor-iframe-zoom-out-prev-container-width': isZoomedOut && `${prevContainerWidth.current}px`
+ },
+ children: iframe
+ })]
+ });
}
function IframeIfReady(props, ref) {
const isInitialised = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getSettings().__internalIsInitialized, []);
@@ -40772,7 +44085,7 @@ function IframeIfReady(props, ref) {
if (!isInitialised) {
return null;
}
- return (0,external_React_.createElement)(Iframe, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Iframe, {
...props,
forwardedRef: ref
});
@@ -40826,7 +44139,7 @@ var postcss_urlrebase_default = /*#__PURE__*/__webpack_require__.n(postcss_urlre
-const transformStylesCache = new WeakMap();
+const cacheByWrapperSelector = new Map();
function transformStyle({
css,
ignoredSelectors = [],
@@ -40839,12 +44152,13 @@ function transformStyle({
if (!wrapperSelector && !baseURL) {
return css;
}
+ const postcssFriendlyCSS = css.replace(/:root :where\(body\)/g, 'body').replace(/:where\(body\)/g, 'body');
try {
return lib_postcss([wrapperSelector && build_default()(wrapperSelector, {
ignoredSelectors: [...ignoredSelectors, wrapperSelector]
}), baseURL && postcss_urlrebase_default()({
rootUrl: baseURL
- })].filter(Boolean)).process(css, {}).css; // use sync PostCSS API
+ })].filter(Boolean)).process(postcssFriendlyCSS, {}).css; // use sync PostCSS API
} catch (error) {
if (error instanceof CssSyntaxError) {
// eslint-disable-next-line no-console
@@ -40870,19 +44184,23 @@ function transformStyle({
* @return {Array} converted rules.
*/
const transform_styles_transformStyles = (styles, wrapperSelector = '') => {
+ let cache = cacheByWrapperSelector.get(wrapperSelector);
+ if (!cache) {
+ cache = new WeakMap();
+ cacheByWrapperSelector.set(wrapperSelector, cache);
+ }
return styles.map(style => {
- if (transformStylesCache.has(style)) {
- return transformStylesCache.get(style);
+ let css = cache.get(style);
+ if (!css) {
+ css = transformStyle(style, wrapperSelector);
+ cache.set(style, css);
}
- const transformedStyle = transformStyle(style, wrapperSelector);
- transformStylesCache.set(style, transformedStyle);
- return transformedStyle;
+ return css;
});
};
/* harmony default export */ const transform_styles = (transform_styles_transformStyles);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/editor-styles/index.js
-
/**
* External dependencies
*/
@@ -40903,6 +44221,9 @@ const transform_styles_transformStyles = (styles, wrapperSelector = '') => {
+
+
+
k([names, a11y]);
function useDarkThemeBodyClassName(styles, scope) {
return (0,external_wp_element_namespaceObject.useCallback)(node => {
@@ -40962,30 +44283,32 @@ function EditorStyles({
}
return [transform_styles(_styles.filter(style => style?.css), scope), _styles.filter(style => style.__unstableType === 'svgs').map(style => style.assets).join('')];
}, [styles, overrides, scope]);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("style", {
- ref: useDarkThemeBodyClassName(transformedStyles, scope)
- }), transformedStyles.map((css, index) => (0,external_React_.createElement)("style", {
- key: index
- }, css)), (0,external_React_.createElement)(external_wp_components_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 0 0",
- width: "0",
- height: "0",
- role: "none",
- style: {
- visibility: 'hidden',
- position: 'absolute',
- left: '-9999px',
- overflow: 'hidden'
- },
- dangerouslySetInnerHTML: {
- __html: transformedSvgs
- }
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("style", {
+ ref: useDarkThemeBodyClassName(transformedStyles, scope)
+ }), transformedStyles.map((css, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("style", {
+ children: css
+ }, index)), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 0 0",
+ width: "0",
+ height: "0",
+ role: "none",
+ style: {
+ visibility: 'hidden',
+ position: 'absolute',
+ left: '-9999px',
+ overflow: 'hidden'
+ },
+ dangerouslySetInnerHTML: {
+ __html: transformedSvgs
+ }
+ })]
+ });
}
+/* harmony default export */ const editor_styles = ((0,external_wp_element_namespaceObject.memo)(EditorStyles));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-preview/auto.js
-
/**
* WordPress dependencies
*/
@@ -41003,6 +44326,9 @@ function EditorStyles({
// This is used to avoid rendering the block list if the sizes change.
+
+
+
let MemoizedBlockList;
const MAX_HEIGHT = 2000;
const EMPTY_ADDITIONAL_STYLES = [];
@@ -41042,7 +44368,7 @@ function ScaledBlockPreview({
MemoizedBlockList = MemoizedBlockList || (0,external_wp_element_namespaceObject.memo)(BlockList);
const scale = containerWidth / viewportWidth;
const aspectRatio = contentHeight ? containerWidth / (contentHeight * scale) : 0;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Disabled, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Disabled, {
className: "block-editor-block-preview__content",
style: {
transform: `scale(${scale})`,
@@ -41053,61 +44379,66 @@ function ScaledBlockPreview({
aspectRatio,
maxHeight: contentHeight > MAX_HEIGHT ? MAX_HEIGHT * scale : undefined,
minHeight
- }
- }, (0,external_React_.createElement)(iframe, {
- contentRef: (0,external_wp_compose_namespaceObject.useRefEffect)(bodyElement => {
- const {
- ownerDocument: {
- documentElement
- }
- } = bodyElement;
- documentElement.classList.add('block-editor-block-preview__content-iframe');
- documentElement.style.position = 'absolute';
- documentElement.style.width = '100%';
-
- // Necessary for contentResizeListener to work.
- bodyElement.style.boxSizing = 'border-box';
- bodyElement.style.position = 'absolute';
- bodyElement.style.width = '100%';
- }, []),
- "aria-hidden": true,
- tabIndex: -1,
- style: {
- position: 'absolute',
- width: viewportWidth,
- height: contentHeight,
- pointerEvents: 'none',
- // This is a catch-all max-height for patterns.
- // See: https://github.com/WordPress/gutenberg/pull/38175.
- maxHeight: MAX_HEIGHT,
- minHeight: scale !== 0 && scale < 1 && minHeight ? minHeight / scale : minHeight
- }
- }, (0,external_React_.createElement)(EditorStyles, {
- styles: editorStyles
- }), contentResizeListener, (0,external_React_.createElement)(MemoizedBlockList, {
- renderAppender: false
- })));
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(iframe, {
+ contentRef: (0,external_wp_compose_namespaceObject.useRefEffect)(bodyElement => {
+ const {
+ ownerDocument: {
+ documentElement
+ }
+ } = bodyElement;
+ documentElement.classList.add('block-editor-block-preview__content-iframe');
+ documentElement.style.position = 'absolute';
+ documentElement.style.width = '100%';
+
+ // Necessary for contentResizeListener to work.
+ bodyElement.style.boxSizing = 'border-box';
+ bodyElement.style.position = 'absolute';
+ bodyElement.style.width = '100%';
+ }, []),
+ "aria-hidden": true,
+ tabIndex: -1,
+ style: {
+ position: 'absolute',
+ width: viewportWidth,
+ height: contentHeight,
+ pointerEvents: 'none',
+ // This is a catch-all max-height for patterns.
+ // See: https://github.com/WordPress/gutenberg/pull/38175.
+ maxHeight: MAX_HEIGHT,
+ minHeight: scale !== 0 && scale < 1 && minHeight ? minHeight / scale : minHeight
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(editor_styles, {
+ styles: editorStyles
+ }), contentResizeListener, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MemoizedBlockList, {
+ renderAppender: false
+ })]
+ })
+ });
}
function AutoBlockPreview(props) {
const [containerResizeListener, {
width: containerWidth
}] = (0,external_wp_compose_namespaceObject.useResizeObserver)();
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("div", {
- style: {
- position: 'relative',
- width: '100%',
- height: 0
- }
- }, containerResizeListener), (0,external_React_.createElement)("div", {
- className: "block-editor-block-preview__container"
- }, !!containerWidth && (0,external_React_.createElement)(ScaledBlockPreview, {
- ...props,
- containerWidth: containerWidth
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ style: {
+ position: 'relative',
+ width: '100%',
+ height: 0
+ },
+ children: containerResizeListener
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-preview__container",
+ children: !!containerWidth && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ScaledBlockPreview, {
+ ...props,
+ containerWidth: containerWidth
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-preview/index.js
-
/**
* External dependencies
*/
@@ -41129,11 +44460,14 @@ function AutoBlockPreview(props) {
+
+
+const block_preview_EMPTY_ADDITIONAL_STYLES = [];
function BlockPreview({
blocks,
viewportWidth = 1200,
minHeight,
- additionalStyles = [],
+ additionalStyles = block_preview_EMPTY_ADDITIONAL_STYLES,
// Deprecated props:
__experimentalMinHeight,
__experimentalPadding
@@ -41167,14 +44501,15 @@ function BlockPreview({
if (!blocks || blocks.length === 0) {
return null;
}
- return (0,external_React_.createElement)(ExperimentalBlockEditorProvider, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ExperimentalBlockEditorProvider, {
value: renderedBlocks,
- settings: settings
- }, (0,external_React_.createElement)(AutoBlockPreview, {
- viewportWidth: viewportWidth,
- minHeight: minHeight,
- additionalStyles: additionalStyles
- }));
+ settings: settings,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AutoBlockPreview, {
+ viewportWidth: viewportWidth,
+ minHeight: minHeight,
+ additionalStyles: additionalStyles
+ })
+ });
}
/**
@@ -41222,23 +44557,23 @@ function useBlockPreview({
const disabledRef = (0,external_wp_compose_namespaceObject.useDisabled)();
const ref = (0,external_wp_compose_namespaceObject.useMergeRefs)([props.ref, disabledRef]);
const renderedBlocks = (0,external_wp_element_namespaceObject.useMemo)(() => Array.isArray(blocks) ? blocks : [blocks], [blocks]);
- const children = (0,external_React_.createElement)(ExperimentalBlockEditorProvider, {
+ const children = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ExperimentalBlockEditorProvider, {
value: renderedBlocks,
- settings: settings
- }, (0,external_React_.createElement)(EditorStyles, null), (0,external_React_.createElement)(BlockListItems, {
- renderAppender: false,
- layout: layout
- }));
+ settings: settings,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(editor_styles, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockListItems, {
+ renderAppender: false,
+ layout: layout
+ })]
+ });
return {
...props,
ref,
- className: classnames_default()(props.className, 'block-editor-block-preview__live-content', 'components-disabled'),
+ className: dist_clsx(props.className, 'block-editor-block-preview__live-content', 'components-disabled'),
children: blocks?.length ? children : null
};
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/preview-panel.js
-
/**
* WordPress dependencies
*/
@@ -41251,6 +44586,8 @@ function useBlockPreview({
*/
+
+
function InserterPreviewPanel({
item
}) {
@@ -41276,30 +44613,33 @@ function InserterPreviewPanel({
innerBlocks: example.innerBlocks
});
}, [name, example, initialAttributes]);
- return (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__preview-container"
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__preview"
- }, isReusable || example ? (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__preview-content"
- }, (0,external_React_.createElement)(block_preview, {
- blocks: blocks,
- viewportWidth: (_example$viewportWidt = example?.viewportWidth) !== null && _example$viewportWidt !== void 0 ? _example$viewportWidt : 500,
- additionalStyles: [{
- css: 'body { padding: 24px; }'
- }]
- })) : (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__preview-content-missing"
- }, (0,external_wp_i18n_namespaceObject.__)('No preview available.'))), !isReusable && (0,external_React_.createElement)(block_card, {
- title: title,
- icon: icon,
- description: description
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-inserter__preview-container",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-inserter__preview",
+ children: isReusable || example ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-inserter__preview-content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_preview, {
+ blocks: blocks,
+ viewportWidth: (_example$viewportWidt = example?.viewportWidth) !== null && _example$viewportWidt !== void 0 ? _example$viewportWidt : 500,
+ additionalStyles: [{
+ css: 'body { padding: 24px; }'
+ }]
+ })
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-inserter__preview-content-missing",
+ children: (0,external_wp_i18n_namespaceObject.__)('No preview available.')
+ })
+ }), !isReusable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_card, {
+ title: title,
+ icon: icon,
+ description: description
+ })]
+ });
}
/* harmony default export */ const preview_panel = (InserterPreviewPanel);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter-listbox/item.js
-
/**
* WordPress dependencies
*/
@@ -41310,8 +44650,9 @@ function InserterPreviewPanel({
* Internal dependencies
*/
+
const {
- CompositeItemV2: CompositeItem
+ CompositeItemV2: item_CompositeItem
} = unlock(external_wp_components_namespaceObject.privateApis);
function InserterListboxItem({
isFirst,
@@ -41319,7 +44660,7 @@ function InserterListboxItem({
children,
...props
}, ref) {
- return (0,external_React_.createElement)(CompositeItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(item_CompositeItem, {
ref: ref,
role: "option"
// Use the CompositeItem `accessibleWhenDisabled` prop
@@ -41334,39 +44675,41 @@ function InserterListboxItem({
tabIndex: isFirst ? 0 : htmlProps.tabIndex
};
if (Component) {
- return (0,external_React_.createElement)(Component, {
- ...propsWithTabIndex
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
+ ...propsWithTabIndex,
+ children: children
+ });
}
if (typeof children === 'function') {
return children(propsWithTabIndex);
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- ...propsWithTabIndex
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ ...propsWithTabIndex,
+ children: children
+ });
}
});
}
/* harmony default export */ const inserter_listbox_item = ((0,external_wp_element_namespaceObject.forwardRef)(InserterListboxItem));
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/drag-handle.js
-
/**
* WordPress dependencies
*/
-const dragHandle = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const dragHandle = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"
+ })
+});
/* harmony default export */ const drag_handle = (dragHandle);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-draggable/draggable-chip.js
-
/**
* WordPress dependencies
*/
@@ -41378,6 +44721,8 @@ const dragHandle = (0,external_React_.createElement)(external_wp_primitives_name
* Internal dependencies
*/
+
+
function BlockDraggableChip({
count,
icon,
@@ -41385,28 +44730,35 @@ function BlockDraggableChip({
fadeWhenDisabled
}) {
const patternLabel = isPattern && (0,external_wp_i18n_namespaceObject.__)('Pattern');
- return (0,external_React_.createElement)("div", {
- className: "block-editor-block-draggable-chip-wrapper"
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-block-draggable-chip",
- "data-testid": "block-draggable-chip"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- justify: "center",
- className: "block-editor-block-draggable-chip__content"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, icon ? (0,external_React_.createElement)(block_icon, {
- icon: icon
- }) : patternLabel || (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: Number of blocks. */
- (0,external_wp_i18n_namespaceObject._n)('%d block', '%d blocks', count), count)), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(block_icon, {
- icon: drag_handle
- })), fadeWhenDisabled && (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- className: "block-editor-block-draggable-chip__disabled"
- }, (0,external_React_.createElement)("span", {
- className: "block-editor-block-draggable-chip__disabled-icon"
- })))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-draggable-chip-wrapper",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-draggable-chip",
+ "data-testid": "block-draggable-chip",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ justify: "center",
+ className: "block-editor-block-draggable-chip__content",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: icon ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: icon
+ }) : patternLabel || (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: Number of blocks. */
+ (0,external_wp_i18n_namespaceObject._n)('%d block', '%d blocks', count), count)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: drag_handle
+ })
+ }), fadeWhenDisabled && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ className: "block-editor-block-draggable-chip__disabled",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-block-draggable-chip__disabled-icon"
+ })
+ })]
+ })
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter-draggable-blocks/index.js
-
/**
* WordPress dependencies
*/
@@ -41421,6 +44773,7 @@ function BlockDraggableChip({
+
const InserterDraggableBlocks = ({
isEnabled,
blocks,
@@ -41442,7 +44795,7 @@ const InserterDraggableBlocks = ({
startDragging,
stopDragging
} = unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Draggable, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Draggable, {
__experimentalTransferDataType: "wp-blocks",
transferData: transferData,
onDragStart: event => {
@@ -41455,26 +44808,26 @@ const InserterDraggableBlocks = ({
onDragEnd: () => {
stopDragging();
},
- __experimentalDragComponent: (0,external_React_.createElement)(BlockDraggableChip, {
+ __experimentalDragComponent: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockDraggableChip, {
count: blocks.length,
icon: icon || !pattern && blockTypeIcon,
isPattern: !!pattern
- })
- }, ({
- onDraggableStart,
- onDraggableEnd
- }) => {
- return children({
- draggable: isEnabled,
- onDragStart: isEnabled ? onDraggableStart : undefined,
- onDragEnd: isEnabled ? onDraggableEnd : undefined
- });
+ }),
+ children: ({
+ onDraggableStart,
+ onDraggableEnd
+ }) => {
+ return children({
+ draggable: isEnabled,
+ onDragStart: isEnabled ? onDraggableStart : undefined,
+ onDragEnd: isEnabled ? onDraggableEnd : undefined
+ });
+ }
});
};
/* harmony default export */ const inserter_draggable_blocks = (InserterDraggableBlocks);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter-list-item/index.js
-
/**
* External dependencies
*/
@@ -41494,6 +44847,8 @@ const InserterDraggableBlocks = ({
+
+
function InserterListItem({
className,
isFirst,
@@ -41510,81 +44865,87 @@ function InserterListItem({
} : {};
const blocks = (0,external_wp_element_namespaceObject.useMemo)(() => [(0,external_wp_blocks_namespaceObject.createBlock)(item.name, item.initialAttributes, (0,external_wp_blocks_namespaceObject.createBlocksFromInnerBlocksTemplate)(item.innerBlocks))], [item.name, item.initialAttributes, item.innerBlocks]);
const isSynced = (0,external_wp_blocks_namespaceObject.isReusableBlock)(item) && item.syncStatus !== 'unsynced' || (0,external_wp_blocks_namespaceObject.isTemplatePart)(item);
- return (0,external_React_.createElement)(inserter_draggable_blocks, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter_draggable_blocks, {
isEnabled: isDraggable && !item.isDisabled,
blocks: blocks,
- icon: item.icon
- }, ({
- draggable,
- onDragStart,
- onDragEnd
- }) => (0,external_React_.createElement)("div", {
- className: classnames_default()('block-editor-block-types-list__list-item', {
- 'is-synced': isSynced
- }),
- draggable: draggable,
- onDragStart: event => {
- isDragging.current = true;
- if (onDragStart) {
- onHover(null);
- onDragStart(event);
- }
- },
- onDragEnd: event => {
- isDragging.current = false;
- if (onDragEnd) {
- onDragEnd(event);
- }
- }
- }, (0,external_React_.createElement)(inserter_listbox_item, {
- isFirst: isFirst,
- className: classnames_default()('block-editor-block-types-list__item', className),
- disabled: item.isDisabled,
- onClick: event => {
- event.preventDefault();
- onSelect(item, (0,external_wp_keycodes_namespaceObject.isAppleOS)() ? event.metaKey : event.ctrlKey);
- onHover(null);
- },
- onKeyDown: event => {
- const {
- keyCode
- } = event;
- if (keyCode === external_wp_keycodes_namespaceObject.ENTER) {
- event.preventDefault();
- onSelect(item, (0,external_wp_keycodes_namespaceObject.isAppleOS)() ? event.metaKey : event.ctrlKey);
- onHover(null);
- }
- },
- onMouseEnter: () => {
- if (isDragging.current) {
- return;
- }
- onHover(item);
- },
- onMouseLeave: () => onHover(null),
- ...props
- }, (0,external_React_.createElement)("span", {
- className: "block-editor-block-types-list__item-icon",
- style: itemIconStyle
- }, (0,external_React_.createElement)(block_icon, {
icon: item.icon,
- showColors: true
- })), (0,external_React_.createElement)("span", {
- className: "block-editor-block-types-list__item-title"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, {
- numberOfLines: 3
- }, item.title)))));
+ children: ({
+ draggable,
+ onDragStart,
+ onDragEnd
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('block-editor-block-types-list__list-item', {
+ 'is-synced': isSynced
+ }),
+ draggable: draggable,
+ onDragStart: event => {
+ isDragging.current = true;
+ if (onDragStart) {
+ onHover(null);
+ onDragStart(event);
+ }
+ },
+ onDragEnd: event => {
+ isDragging.current = false;
+ if (onDragEnd) {
+ onDragEnd(event);
+ }
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(inserter_listbox_item, {
+ isFirst: isFirst,
+ className: dist_clsx('block-editor-block-types-list__item', className),
+ disabled: item.isDisabled,
+ onClick: event => {
+ event.preventDefault();
+ onSelect(item, (0,external_wp_keycodes_namespaceObject.isAppleOS)() ? event.metaKey : event.ctrlKey);
+ onHover(null);
+ },
+ onKeyDown: event => {
+ const {
+ keyCode
+ } = event;
+ if (keyCode === external_wp_keycodes_namespaceObject.ENTER) {
+ event.preventDefault();
+ onSelect(item, (0,external_wp_keycodes_namespaceObject.isAppleOS)() ? event.metaKey : event.ctrlKey);
+ onHover(null);
+ }
+ },
+ onMouseEnter: () => {
+ if (isDragging.current) {
+ return;
+ }
+ onHover(item);
+ },
+ onMouseLeave: () => onHover(null),
+ ...props,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-block-types-list__item-icon",
+ style: itemIconStyle,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: item.icon,
+ showColors: true
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-block-types-list__item-title",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTruncate, {
+ numberOfLines: 3,
+ children: item.title
+ })
+ })]
+ })
+ })
+ });
}
/* harmony default export */ const inserter_list_item = ((0,external_wp_element_namespaceObject.memo)(InserterListItem));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter-listbox/group.js
-
/**
* WordPress dependencies
*/
+
function InserterListboxGroup(props, ref) {
const [shouldSpeak, setShouldSpeak] = (0,external_wp_element_namespaceObject.useState)(false);
(0,external_wp_element_namespaceObject.useEffect)(() => {
@@ -41592,7 +44953,7 @@ function InserterListboxGroup(props, ref) {
(0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.__)('Use left and right arrow keys to move through blocks'));
}
}, [shouldSpeak]);
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
ref: ref,
role: "listbox",
"aria-orientation": "horizontal",
@@ -41611,7 +44972,6 @@ function InserterListboxGroup(props, ref) {
/* harmony default export */ const group = ((0,external_wp_element_namespaceObject.forwardRef)(InserterListboxGroup));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter-listbox/row.js
-
/**
* WordPress dependencies
*/
@@ -41622,11 +44982,12 @@ function InserterListboxGroup(props, ref) {
* Internal dependencies
*/
+
const {
CompositeGroupV2: CompositeGroup
} = unlock(external_wp_components_namespaceObject.privateApis);
function InserterListboxRow(props, ref) {
- return (0,external_React_.createElement)(CompositeGroup, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeGroup, {
role: "presentation",
ref: ref,
...props
@@ -41635,7 +44996,6 @@ function InserterListboxRow(props, ref) {
/* harmony default export */ const inserter_listbox_row = ((0,external_wp_element_namespaceObject.forwardRef)(InserterListboxRow));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-types-list/index.js
-
/**
* WordPress dependencies
*/
@@ -41647,6 +45007,8 @@ function InserterListboxRow(props, ref) {
*/
+
+
function chunk(array, size) {
const chunks = [];
for (let i = 0, j = array.length; i < j; i += size) {
@@ -41664,49 +45026,55 @@ function BlockTypesList({
}) {
const className = 'block-editor-block-types-list';
const listId = (0,external_wp_compose_namespaceObject.useInstanceId)(BlockTypesList, className);
- return (0,external_React_.createElement)(group, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(group, {
className: className,
- "aria-label": label
- }, chunk(items, 3).map((row, i) => (0,external_React_.createElement)(inserter_listbox_row, {
- key: i
- }, row.map((item, j) => (0,external_React_.createElement)(inserter_list_item, {
- key: item.id,
- item: item,
- className: (0,external_wp_blocks_namespaceObject.getBlockMenuDefaultClassName)(item.id),
- onSelect: onSelect,
- onHover: onHover,
- isDraggable: isDraggable && !item.isDisabled,
- isFirst: i === 0 && j === 0,
- rowId: `${listId}-${i}`
- })))), children);
+ "aria-label": label,
+ children: [chunk(items, 3).map((row, i) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter_listbox_row, {
+ children: row.map((item, j) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter_list_item, {
+ item: item,
+ className: (0,external_wp_blocks_namespaceObject.getBlockMenuDefaultClassName)(item.id),
+ onSelect: onSelect,
+ onHover: onHover,
+ isDraggable: isDraggable && !item.isDisabled,
+ isFirst: i === 0 && j === 0,
+ rowId: `${listId}-${i}`
+ }, item.id))
+ }, i)), children]
+ });
}
/* harmony default export */ const block_types_list = (BlockTypesList);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/panel.js
-
/**
* WordPress dependencies
*/
+
+
+
function InserterPanel({
title,
icon,
children
}) {
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__panel-header"
- }, (0,external_React_.createElement)("h2", {
- className: "block-editor-inserter__panel-title"
- }, title), (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- icon: icon
- })), (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__panel-content"
- }, children));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-inserter__panel-header",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ className: "block-editor-inserter__panel-title",
+ children: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ icon: icon
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-inserter__panel-content",
+ children: children
+ })]
+ });
}
/* harmony default export */ const panel = (InserterPanel);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter-listbox/index.js
-
/**
* WordPress dependencies
*/
@@ -41719,26 +45087,49 @@ function InserterPanel({
+
+
const {
- CompositeV2: Composite,
- useCompositeStoreV2: useCompositeStore
+ CompositeV2: inserter_listbox_Composite,
+ useCompositeStoreV2: inserter_listbox_useCompositeStore
} = unlock(external_wp_components_namespaceObject.privateApis);
function InserterListbox({
children
}) {
- const store = useCompositeStore({
+ const store = inserter_listbox_useCompositeStore({
focusShift: true,
focusWrap: 'horizontal'
});
- return (0,external_React_.createElement)(Composite, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter_listbox_Composite, {
store: store,
- render: (0,external_React_.createElement)(external_React_.Fragment, null)
- }, children);
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {}),
+ children: children
+ });
}
/* harmony default export */ const inserter_listbox = (InserterListbox);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/block-types-tab.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/no-results.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+function InserterNoResults() {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-inserter__no-results",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ className: "block-editor-inserter__no-results-icon",
+ icon: block_default
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('No results found.')
+ })]
+ });
+}
+/* harmony default export */ const no_results = (InserterNoResults);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/block-types-tab.js
/**
* WordPress dependencies
*/
@@ -41754,6 +45145,10 @@ function InserterListbox({
+
+
+
+
const getBlockNamespace = item => item.name.split('/')[0];
const MAX_SUGGESTED_ITEMS = 6;
@@ -41764,31 +45159,21 @@ const MAX_SUGGESTED_ITEMS = 6;
* @type {Array}
*/
const block_types_tab_EMPTY_ARRAY = [];
-function BlockTypesTab({
- rootClientId,
- onInsert,
+function BlockTypesTabPanel({
+ items,
+ collections,
+ categories,
+ onSelectItem,
onHover,
- showMostUsedBlocks
+ showMostUsedBlocks,
+ className
}) {
- const [items, categories, collections, onSelectItem] = use_block_types_state(rootClientId, onInsert);
const suggestedItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
return orderBy(items, 'frecency', 'desc').slice(0, MAX_SUGGESTED_ITEMS);
}, [items]);
const uncategorizedItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
return items.filter(item => !item.category);
}, [items]);
- const itemsPerCategory = (0,external_wp_element_namespaceObject.useMemo)(() => {
- return (0,external_wp_compose_namespaceObject.pipe)(itemList => itemList.filter(item => item.category && item.category !== 'reusable'), itemList => itemList.reduce((acc, item) => {
- const {
- category
- } = item;
- if (!acc[category]) {
- acc[category] = [];
- }
- acc[category].push(item);
- return acc;
- }, {}))(items);
- }, [items]);
const itemsPerCollection = (0,external_wp_element_namespaceObject.useMemo)(() => {
// Create a new Object to avoid mutating collection.
const result = {
@@ -41820,99 +45205,158 @@ function BlockTypesTab({
return Object.entries(collections);
}, [collections]);
const currentlyRenderedCollections = (0,external_wp_compose_namespaceObject.useAsyncList)(didRenderAllCategories ? collectionEntries : block_types_tab_EMPTY_ARRAY);
- return (0,external_React_.createElement)(inserter_listbox, null, (0,external_React_.createElement)("div", null, showMostUsedBlocks && !!suggestedItems.length && (0,external_React_.createElement)(panel, {
- title: (0,external_wp_i18n_namespaceObject._x)('Most used', 'blocks')
- }, (0,external_React_.createElement)(block_types_list, {
- items: suggestedItems,
- onSelect: onSelectItem,
- onHover: onHover,
- label: (0,external_wp_i18n_namespaceObject._x)('Most used', 'blocks')
- })), currentlyRenderedCategories.map(category => {
- const categoryItems = itemsPerCategory[category.slug];
- if (!categoryItems || !categoryItems.length) {
- return null;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: className,
+ children: [showMostUsedBlocks &&
+ // Only show the most used blocks if the total amount of block
+ // is larger than 1 row, otherwise it is not so useful.
+ items.length > 3 && !!suggestedItems.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(panel, {
+ title: (0,external_wp_i18n_namespaceObject._x)('Most used', 'blocks'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_types_list, {
+ items: suggestedItems,
+ onSelect: onSelectItem,
+ onHover: onHover,
+ label: (0,external_wp_i18n_namespaceObject._x)('Most used', 'blocks')
+ })
+ }), currentlyRenderedCategories.map(category => {
+ const categoryItems = items.filter(item => item.category === category.slug);
+ if (!categoryItems || !categoryItems.length) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(panel, {
+ title: category.title,
+ icon: category.icon,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_types_list, {
+ items: categoryItems,
+ onSelect: onSelectItem,
+ onHover: onHover,
+ label: category.title
+ })
+ }, category.slug);
+ }), didRenderAllCategories && uncategorizedItems.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(panel, {
+ className: "block-editor-inserter__uncategorized-blocks-panel",
+ title: (0,external_wp_i18n_namespaceObject.__)('Uncategorized'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_types_list, {
+ items: uncategorizedItems,
+ onSelect: onSelectItem,
+ onHover: onHover,
+ label: (0,external_wp_i18n_namespaceObject.__)('Uncategorized')
+ })
+ }), currentlyRenderedCollections.map(([namespace, collection]) => {
+ const collectionItems = itemsPerCollection[namespace];
+ if (!collectionItems || !collectionItems.length) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(panel, {
+ title: collection.title,
+ icon: collection.icon,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_types_list, {
+ items: collectionItems,
+ onSelect: onSelectItem,
+ onHover: onHover,
+ label: collection.title
+ })
+ }, namespace);
+ })]
+ });
+}
+function BlockTypesTab({
+ rootClientId,
+ onInsert,
+ onHover,
+ showMostUsedBlocks
+}, ref) {
+ const [items, categories, collections, onSelectItem] = use_block_types_state(rootClientId, onInsert);
+ if (!items.length) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(no_results, {});
+ }
+ const itemsForCurrentRoot = [];
+ const itemsRemaining = [];
+ for (const item of items) {
+ // Skip reusable blocks, they moved to the patterns tab.
+ if (item.category === 'reusable') {
+ continue;
}
- return (0,external_React_.createElement)(panel, {
- key: category.slug,
- title: category.title,
- icon: category.icon
- }, (0,external_React_.createElement)(block_types_list, {
- items: categoryItems,
- onSelect: onSelectItem,
- onHover: onHover,
- label: category.title
- }));
- }), didRenderAllCategories && uncategorizedItems.length > 0 && (0,external_React_.createElement)(panel, {
- className: "block-editor-inserter__uncategorized-blocks-panel",
- title: (0,external_wp_i18n_namespaceObject.__)('Uncategorized')
- }, (0,external_React_.createElement)(block_types_list, {
- items: uncategorizedItems,
- onSelect: onSelectItem,
- onHover: onHover,
- label: (0,external_wp_i18n_namespaceObject.__)('Uncategorized')
- })), currentlyRenderedCollections.map(([namespace, collection]) => {
- const collectionItems = itemsPerCollection[namespace];
- if (!collectionItems || !collectionItems.length) {
- return null;
+ if (rootClientId && item.rootClientId === rootClientId) {
+ itemsForCurrentRoot.push(item);
+ } else {
+ itemsRemaining.push(item);
}
- return (0,external_React_.createElement)(panel, {
- key: namespace,
- title: collection.title,
- icon: collection.icon
- }, (0,external_React_.createElement)(block_types_list, {
- items: collectionItems,
- onSelect: onSelectItem,
- onHover: onHover,
- label: collection.title
- }));
- })));
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter_listbox, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ref: ref,
+ children: [!!itemsForCurrentRoot.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockTypesTabPanel, {
+ items: itemsForCurrentRoot,
+ categories: categories,
+ collections: collections,
+ onSelectItem: onSelectItem,
+ onHover: onHover,
+ showMostUsedBlocks: showMostUsedBlocks,
+ className: "block-editor-inserter__insertable-blocks-at-selection"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockTypesTabPanel, {
+ items: itemsRemaining,
+ categories: categories,
+ collections: collections,
+ onSelectItem: onSelectItem,
+ onHover: onHover,
+ showMostUsedBlocks: showMostUsedBlocks,
+ className: "block-editor-inserter__all-blocks"
+ })]
+ })
+ });
}
-/* harmony default export */ const block_types_tab = (BlockTypesTab);
+/* harmony default export */ const block_types_tab = ((0,external_wp_element_namespaceObject.forwardRef)(BlockTypesTab));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.js
-
/**
* WordPress dependencies
*/
+
+
function PatternCategoriesList({
selectedCategory,
patternCategories,
onClickCategory
}) {
const baseClassName = 'block-editor-block-patterns-explorer__sidebar';
- return (0,external_React_.createElement)("div", {
- className: `${baseClassName}__categories-list`
- }, patternCategories.map(({
- name,
- label
- }) => {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- key: name,
- label: label,
- className: `${baseClassName}__categories-list__item`,
- isPressed: selectedCategory === name,
- onClick: () => {
- onClickCategory(name);
- }
- }, label);
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: `${baseClassName}__categories-list`,
+ children: patternCategories.map(({
+ name,
+ label
+ }) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ label: label,
+ className: `${baseClassName}__categories-list__item`,
+ isPressed: selectedCategory === name,
+ onClick: () => {
+ onClickCategory(name);
+ },
+ children: label
+ }, name);
+ })
+ });
}
function PatternsExplorerSearch({
searchValue,
setSearchValue
}) {
const baseClassName = 'block-editor-block-patterns-explorer__search';
- return (0,external_React_.createElement)("div", {
- className: baseClassName
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.SearchControl, {
- __nextHasNoMarginBottom: true,
- onChange: setSearchValue,
- value: searchValue,
- label: (0,external_wp_i18n_namespaceObject.__)('Search for patterns'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Search')
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: baseClassName,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SearchControl, {
+ __nextHasNoMarginBottom: true,
+ onChange: setSearchValue,
+ value: searchValue,
+ label: (0,external_wp_i18n_namespaceObject.__)('Search for patterns'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Search')
+ })
+ });
}
function PatternExplorerSidebar({
selectedCategory,
@@ -41922,87 +45366,106 @@ function PatternExplorerSidebar({
setSearchValue
}) {
const baseClassName = 'block-editor-block-patterns-explorer__sidebar';
- return (0,external_React_.createElement)("div", {
- className: baseClassName
- }, (0,external_React_.createElement)(PatternsExplorerSearch, {
- searchValue: searchValue,
- setSearchValue: setSearchValue
- }), !searchValue && (0,external_React_.createElement)(PatternCategoriesList, {
- selectedCategory: selectedCategory,
- patternCategories: patternCategories,
- onClickCategory: onClickCategory
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: baseClassName,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternsExplorerSearch, {
+ searchValue: searchValue,
+ setSearchValue: setSearchValue
+ }), !searchValue && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternCategoriesList, {
+ selectedCategory: selectedCategory,
+ patternCategories: patternCategories,
+ onClickCategory: onClickCategory
+ })]
+ });
}
/* harmony default export */ const pattern_explorer_sidebar = (PatternExplorerSidebar);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-patterns-paging/index.js
-
/**
* WordPress dependencies
*/
+
+
function Pagination({
currentPage,
numPages,
changePage,
totalItems
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- className: "block-editor-patterns__grid-pagination-wrapper"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- variant: "muted"
- },
- // translators: %s: Total number of patterns.
- (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Total number of patterns.
- (0,external_wp_i18n_namespaceObject._n)('%s item', '%s items', totalItems), totalItems)), numPages > 1 && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- expanded: false,
- spacing: 3,
- justify: "flex-start",
- className: "block-editor-patterns__grid-pagination"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- expanded: false,
- spacing: 1,
- className: "block-editor-patterns__grid-pagination-previous"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: () => changePage(1),
- disabled: currentPage === 1,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('First page'),
- __experimentalIsFocusable: true
- }, (0,external_React_.createElement)("span", null, "\xAB")), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: () => changePage(currentPage - 1),
- disabled: currentPage === 1,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Previous page'),
- __experimentalIsFocusable: true
- }, (0,external_React_.createElement)("span", null, "\u2039"))), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- variant: "muted"
- }, (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %1$s: Current page number, %2$s: Total number of pages.
- (0,external_wp_i18n_namespaceObject._x)('%1$s of %2$s', 'paging'), currentPage, numPages)), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- expanded: false,
- spacing: 1,
- className: "block-editor-patterns__grid-pagination-next"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: () => changePage(currentPage + 1),
- disabled: currentPage === numPages,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Next page'),
- __experimentalIsFocusable: true
- }, (0,external_React_.createElement)("span", null, "\u203A")), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: () => changePage(numPages),
- disabled: currentPage === numPages,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Last page'),
- size: "default",
- __experimentalIsFocusable: true
- }, (0,external_React_.createElement)("span", null, "\xBB")))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ className: "block-editor-patterns__grid-pagination-wrapper",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ children:
+ // translators: %s: Total number of patterns.
+ (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Total number of patterns.
+ (0,external_wp_i18n_namespaceObject._n)('%s item', '%s items', totalItems), totalItems)
+ }), numPages > 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ expanded: false,
+ spacing: 3,
+ justify: "flex-start",
+ className: "block-editor-patterns__grid-pagination",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ expanded: false,
+ spacing: 1,
+ className: "block-editor-patterns__grid-pagination-previous",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: () => changePage(1),
+ disabled: currentPage === 1,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('First page'),
+ __experimentalIsFocusable: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: "\xAB"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: () => changePage(currentPage - 1),
+ disabled: currentPage === 1,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Previous page'),
+ __experimentalIsFocusable: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: "\u2039"
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ children: (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %1$s: Current page number, %2$s: Total number of pages.
+ (0,external_wp_i18n_namespaceObject._x)('%1$s of %2$s', 'paging'), currentPage, numPages)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ expanded: false,
+ spacing: 1,
+ className: "block-editor-patterns__grid-pagination-next",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: () => changePage(currentPage + 1),
+ disabled: currentPage === numPages,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Next page'),
+ __experimentalIsFocusable: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: "\u203A"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: () => changePage(numPages),
+ disabled: currentPage === numPages,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Last page'),
+ size: "default",
+ __experimentalIsFocusable: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: "\xBB"
+ })
+ })]
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-patterns-list/index.js
-
/**
* External dependencies
*/
@@ -42017,6 +45480,7 @@ function Pagination({
+
/**
* Internal dependencies
*/
@@ -42025,6 +45489,9 @@ function Pagination({
+
+
+
const {
CompositeV2: block_patterns_list_Composite,
CompositeItemV2: block_patterns_list_CompositeItem,
@@ -42036,11 +45503,14 @@ const WithToolTip = ({
children
}) => {
if (showTooltip) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Tooltip, {
- text: title
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Tooltip, {
+ text: title,
+ children: children
+ });
}
- return (0,external_React_.createElement)(external_React_.Fragment, null, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: children
+ });
};
function BlockPattern({
id,
@@ -42048,7 +45518,9 @@ function BlockPattern({
pattern,
onClick,
onHover,
- showTooltip
+ showTitle = true,
+ showTooltip,
+ category
}) {
const [isDragging, setIsDragging] = (0,external_wp_element_namespaceObject.useState)(false);
const {
@@ -42057,72 +45529,98 @@ function BlockPattern({
} = pattern;
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(BlockPattern);
const descriptionId = `block-editor-block-patterns-list__item-description-${instanceId}`;
- return (0,external_React_.createElement)(inserter_draggable_blocks, {
- isEnabled: isDraggable,
- blocks: blocks,
- pattern: pattern
- }, ({
- draggable,
- onDragStart,
- onDragEnd
- }) => (0,external_React_.createElement)("div", {
- className: "block-editor-block-patterns-list__list-item",
- draggable: draggable,
- onDragStart: event => {
- setIsDragging(true);
- if (onDragStart) {
- onHover?.(null);
- onDragStart(event);
- }
- },
- onDragEnd: event => {
- setIsDragging(false);
- if (onDragEnd) {
- onDragEnd(event);
- }
+
+ // When we have a selected category and the pattern is draggable, we need to update the
+ // pattern's categories in metadata to only contain the selected category, and pass this to
+ // InserterDraggableBlocks component. We do that because we use this information for pattern
+ // shuffling and it makes more sense to show only the ones from the initially selected category during insertion.
+ const patternBlocks = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ if (!category || !isDraggable) {
+ return blocks;
}
- }, (0,external_React_.createElement)(WithToolTip, {
- showTooltip: showTooltip && !pattern.type !== INSERTER_PATTERN_TYPES.user,
- title: pattern.title
- }, (0,external_React_.createElement)(block_patterns_list_CompositeItem, {
- render: (0,external_React_.createElement)("div", {
- role: "option",
- "aria-label": pattern.title,
- "aria-describedby": pattern.description ? descriptionId : undefined,
- className: classnames_default()('block-editor-block-patterns-list__item', {
- 'block-editor-block-patterns-list__list-item-synced': pattern.type === INSERTER_PATTERN_TYPES.user && !pattern.syncStatus
- })
- }),
- id: id,
- onClick: () => {
- onClick(pattern, blocks);
- onHover?.(null);
- },
- onMouseEnter: () => {
- if (isDragging) {
- return;
+ return (blocks !== null && blocks !== void 0 ? blocks : []).map(block => {
+ const clonedBlock = (0,external_wp_blocks_namespaceObject.cloneBlock)(block);
+ if (clonedBlock.attributes.metadata?.categories?.includes(category)) {
+ clonedBlock.attributes.metadata.categories = [category];
}
- onHover?.(pattern);
- },
- onMouseLeave: () => onHover?.(null)
- }, (0,external_React_.createElement)(block_preview, {
- blocks: blocks,
- viewportWidth: viewportWidth
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- className: "block-editor-patterns__pattern-details"
- }, pattern.type === INSERTER_PATTERN_TYPES.user && !pattern.syncStatus && (0,external_React_.createElement)("div", {
- className: "block-editor-patterns__pattern-icon-wrapper"
- }, (0,external_React_.createElement)(build_module_icon, {
- className: "block-editor-patterns__pattern-icon",
- icon: library_symbol
- })), (!showTooltip || pattern.type === INSERTER_PATTERN_TYPES.user) && (0,external_React_.createElement)("div", {
- className: "block-editor-block-patterns-list__item-title"
- }, pattern.title)), !!pattern.description && (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- id: descriptionId
- }, pattern.description)))));
+ return clonedBlock;
+ });
+ }, [blocks, isDraggable, category]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter_draggable_blocks, {
+ isEnabled: isDraggable,
+ blocks: patternBlocks,
+ pattern: pattern,
+ children: ({
+ draggable,
+ onDragStart,
+ onDragEnd
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-patterns-list__list-item",
+ draggable: draggable,
+ onDragStart: event => {
+ setIsDragging(true);
+ if (onDragStart) {
+ onHover?.(null);
+ onDragStart(event);
+ }
+ },
+ onDragEnd: event => {
+ setIsDragging(false);
+ if (onDragEnd) {
+ onDragEnd(event);
+ }
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WithToolTip, {
+ showTooltip: showTooltip && !pattern.type !== INSERTER_PATTERN_TYPES.user,
+ title: pattern.title,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(block_patterns_list_CompositeItem, {
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ role: "option",
+ "aria-label": pattern.title,
+ "aria-describedby": pattern.description ? descriptionId : undefined,
+ className: dist_clsx('block-editor-block-patterns-list__item', {
+ 'block-editor-block-patterns-list__list-item-synced': pattern.type === INSERTER_PATTERN_TYPES.user && !pattern.syncStatus
+ })
+ }),
+ id: id,
+ onClick: () => {
+ onClick(pattern, blocks);
+ onHover?.(null);
+ },
+ onMouseEnter: () => {
+ if (isDragging) {
+ return;
+ }
+ onHover?.(pattern);
+ },
+ onMouseLeave: () => onHover?.(null),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_preview, {
+ blocks: blocks,
+ viewportWidth: viewportWidth
+ }), showTitle && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ className: "block-editor-patterns__pattern-details",
+ spacing: 2,
+ children: [pattern.type === INSERTER_PATTERN_TYPES.user && !pattern.syncStatus && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-patterns__pattern-icon-wrapper",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ className: "block-editor-patterns__pattern-icon",
+ icon: library_symbol
+ })
+ }), (!showTooltip || pattern.type === INSERTER_PATTERN_TYPES.user) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-patterns-list__item-title",
+ children: pattern.title
+ })]
+ }), !!pattern.description && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ id: descriptionId,
+ children: pattern.description
+ })]
+ })
+ })
+ })
+ });
}
function BlockPatternPlaceholder() {
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: "block-editor-block-patterns-list__item is-placeholder"
});
}
@@ -42134,6 +45632,8 @@ function BlockPatternsList({
onClickPattern,
orientation,
label = (0,external_wp_i18n_namespaceObject.__)('Block patterns'),
+ category,
+ showTitle = true,
showTitlesAsTooltip,
pagingProps
}, ref) {
@@ -42149,28 +45649,28 @@ function BlockPatternsList({
// focus is put back to the start.
setActiveId(undefined);
}, [setActiveId, shownPatterns, blockPatterns]);
- return (0,external_React_.createElement)(block_patterns_list_Composite, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(block_patterns_list_Composite, {
store: compositeStore,
role: "listbox",
className: "block-editor-block-patterns-list",
"aria-label": label,
- ref: ref
- }, blockPatterns.map(pattern => {
- const isShown = shownPatterns.includes(pattern);
- return isShown ? (0,external_React_.createElement)(BlockPattern, {
- key: pattern.name,
- id: pattern.name,
- pattern: pattern,
- onClick: onClickPattern,
- onHover: onHover,
- isDraggable: isDraggable,
- showTooltip: showTitlesAsTooltip
- }) : (0,external_React_.createElement)(BlockPatternPlaceholder, {
- key: pattern.name
- });
- }), pagingProps && (0,external_React_.createElement)(Pagination, {
- ...pagingProps
- }));
+ ref: ref,
+ children: [blockPatterns.map(pattern => {
+ const isShown = shownPatterns.includes(pattern);
+ return isShown ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockPattern, {
+ id: pattern.name,
+ pattern: pattern,
+ onClick: onClickPattern,
+ onHover: onHover,
+ isDraggable: isDraggable,
+ showTitle: showTitle,
+ showTooltip: showTitlesAsTooltip,
+ category: category
+ }, pattern.name) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockPatternPlaceholder, {}, pattern.name);
+ }), pagingProps && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Pagination, {
+ ...pagingProps
+ })]
+ });
}
/* harmony default export */ const block_patterns_list = ((0,external_wp_element_namespaceObject.forwardRef)(BlockPatternsList));
@@ -42189,6 +45689,23 @@ function BlockPatternsList({
*/
+function getIndex({
+ destinationRootClientId,
+ destinationIndex,
+ rootClientId,
+ registry
+}) {
+ if (rootClientId === destinationRootClientId) {
+ return destinationIndex;
+ }
+ const parents = ['', ...registry.select(store).getBlockParents(destinationRootClientId), destinationRootClientId];
+ const parentIndex = parents.indexOf(rootClientId);
+ if (parentIndex !== -1) {
+ return registry.select(store).getBlockIndex(parents[parentIndex + 1]) + 1;
+ }
+ return registry.select(store).getBlockOrder(rootClientId).length;
+}
+
/**
* @typedef WPInserterConfig
*
@@ -42218,6 +45735,7 @@ function useInsertionPoint({
shouldFocusBlock = true,
selectBlockOnInsert = true
}) {
+ const registry = (0,external_wp_data_namespaceObject.useRegistry)();
const {
getSelectedBlock
} = (0,external_wp_data_namespaceObject.useSelect)(store);
@@ -42256,14 +45774,27 @@ function useInsertionPoint({
replaceBlocks,
insertBlocks,
showInsertionPoint,
- hideInsertionPoint
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- const onInsertBlocks = (0,external_wp_element_namespaceObject.useCallback)((blocks, meta, shouldForceFocusBlock = false) => {
+ hideInsertionPoint,
+ setLastFocus
+ } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
+ const onInsertBlocks = (0,external_wp_element_namespaceObject.useCallback)((blocks, meta, shouldForceFocusBlock = false, _rootClientId) => {
+ // When we are trying to move focus or select a new block on insert, we also
+ // need to clear the last focus to avoid the focus being set to the wrong block
+ // when tabbing back into the canvas if the block was added from outside the
+ // editor canvas.
+ if (shouldForceFocusBlock || shouldFocusBlock || selectBlockOnInsert) {
+ setLastFocus(null);
+ }
const selectedBlock = getSelectedBlock();
if (!isAppender && selectedBlock && (0,external_wp_blocks_namespaceObject.isUnmodifiedDefaultBlock)(selectedBlock)) {
replaceBlocks(selectedBlock.clientId, blocks, null, shouldFocusBlock || shouldForceFocusBlock ? 0 : null, meta);
} else {
- insertBlocks(blocks, destinationIndex, destinationRootClientId, selectBlockOnInsert, shouldFocusBlock || shouldForceFocusBlock ? 0 : null, meta);
+ insertBlocks(blocks, isAppender || _rootClientId === undefined ? destinationIndex : getIndex({
+ destinationRootClientId,
+ destinationIndex,
+ rootClientId: _rootClientId,
+ registry
+ }), isAppender || _rootClientId === undefined ? destinationRootClientId : _rootClientId, selectBlockOnInsert, shouldFocusBlock || shouldForceFocusBlock ? 0 : null, meta);
}
const blockLength = Array.isArray(blocks) ? blocks.length : 1;
const message = (0,external_wp_i18n_namespaceObject.sprintf)(
@@ -42274,9 +45805,14 @@ function useInsertionPoint({
onSelect(blocks);
}
}, [isAppender, getSelectedBlock, replaceBlocks, insertBlocks, destinationRootClientId, destinationIndex, onSelect, shouldFocusBlock, selectBlockOnInsert]);
- const onToggleInsertionPoint = (0,external_wp_element_namespaceObject.useCallback)(show => {
- if (show) {
- showInsertionPoint(destinationRootClientId, destinationIndex);
+ const onToggleInsertionPoint = (0,external_wp_element_namespaceObject.useCallback)(item => {
+ if (item?.hasOwnProperty('rootClientId')) {
+ showInsertionPoint(item.rootClientId, getIndex({
+ destinationRootClientId,
+ destinationIndex,
+ rootClientId: item.rootClientId,
+ registry
+ }));
} else {
hideInsertionPoint();
}
@@ -42304,12 +45840,13 @@ function useInsertionPoint({
/**
* Retrieves the block patterns inserter state.
*
- * @param {Function} onInsert function called when inserter a list of blocks.
- * @param {string=} rootClientId Insertion's root client ID.
+ * @param {Function} onInsert function called when inserter a list of blocks.
+ * @param {string=} rootClientId Insertion's root client ID.
*
+ * @param {string} selectedCategory The selected pattern category.
* @return {Array} Returns the patterns state. (patterns, categories, onSelect handler)
*/
-const usePatternsState = (onInsert, rootClientId) => {
+const usePatternsState = (onInsert, rootClientId, selectedCategory) => {
const {
patternCategories,
patterns,
@@ -42345,13 +45882,19 @@ const usePatternsState = (onInsert, rootClientId) => {
const patternBlocks = pattern.type === INSERTER_PATTERN_TYPES.user && pattern.syncStatus !== 'unsynced' ? [(0,external_wp_blocks_namespaceObject.createBlock)('core/block', {
ref: pattern.id
})] : blocks;
- onInsert((patternBlocks !== null && patternBlocks !== void 0 ? patternBlocks : []).map(block => (0,external_wp_blocks_namespaceObject.cloneBlock)(block)), pattern.name);
+ onInsert((patternBlocks !== null && patternBlocks !== void 0 ? patternBlocks : []).map(block => {
+ const clonedBlock = (0,external_wp_blocks_namespaceObject.cloneBlock)(block);
+ if (clonedBlock.attributes.metadata?.categories?.includes(selectedCategory)) {
+ clonedBlock.attributes.metadata.categories = [selectedCategory];
+ }
+ return clonedBlock;
+ }), pattern.name);
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: block pattern title. */
(0,external_wp_i18n_namespaceObject.__)('Block pattern "%s" inserted.'), pattern.title), {
type: 'snackbar',
id: 'block-pattern-inserted-notice'
});
- }, [createSuccessNotice, onInsert]);
+ }, [createSuccessNotice, onInsert, selectedCategory]);
return [patterns, allCategories, onClickPattern];
};
/* harmony default export */ const use_patterns_state = (usePatternsState);
@@ -42412,7 +45955,6 @@ function usePatternsPaging(currentCategoryPatterns, currentCategory, scrollConta
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns-explorer/pattern-list.js
-
/**
* WordPress dependencies
*/
@@ -42433,6 +45975,9 @@ function usePatternsPaging(currentCategoryPatterns, currentCategory, scrollConta
+
+
+
function PatternsListHeader({
filterValue,
filteredBlockPatternsLength
@@ -42440,12 +45985,13 @@ function PatternsListHeader({
if (!filterValue) {
return null;
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
level: 2,
- lineHeight: '48px',
- className: "block-editor-block-patterns-explorer__search-results-count"
- }, (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of patterns. */
- (0,external_wp_i18n_namespaceObject._n)('%d pattern found', '%d patterns found', filteredBlockPatternsLength), filteredBlockPatternsLength));
+ lineHeight: "48px",
+ className: "block-editor-block-patterns-explorer__search-results-count",
+ children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of patterns. */
+ (0,external_wp_i18n_namespaceObject._n)('%d pattern found', '%d patterns found', filteredBlockPatternsLength), filteredBlockPatternsLength)
+ });
}
function PatternList({
searchValue,
@@ -42459,7 +46005,7 @@ function PatternList({
rootClientId,
shouldFocusBlock: true
});
- const [patterns,, onClickPattern] = use_patterns_state(onInsertBlocks, destinationRootClientId);
+ const [patterns,, onClickPattern] = use_patterns_state(onInsertBlocks, destinationRootClientId, selectedCategory);
const registeredPatternCategories = (0,external_wp_element_namespaceObject.useMemo)(() => patternCategories.map(patternCategory => patternCategory.name), [patternCategories]);
const filteredBlockPatterns = (0,external_wp_element_namespaceObject.useMemo)(() => {
const filteredPatterns = patterns.filter(pattern => {
@@ -42500,20 +46046,25 @@ function PatternList({
pagingProps.changePage(1);
}
const hasItems = !!filteredBlockPatterns?.length;
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: "block-editor-block-patterns-explorer__list",
- ref: container
- }, (0,external_React_.createElement)(PatternsListHeader, {
- filterValue: searchValue,
- filteredBlockPatternsLength: filteredBlockPatterns.length
- }), (0,external_React_.createElement)(inserter_listbox, null, hasItems && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(block_patterns_list, {
- shownPatterns: pagingProps.categoryPatternsAsyncList,
- blockPatterns: pagingProps.categoryPatterns,
- onClickPattern: onClickPattern,
- isDraggable: false
- }), (0,external_React_.createElement)(Pagination, {
- ...pagingProps
- }))));
+ ref: container,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternsListHeader, {
+ filterValue: searchValue,
+ filteredBlockPatternsLength: filteredBlockPatterns.length
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter_listbox, {
+ children: hasItems && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_patterns_list, {
+ shownPatterns: pagingProps.categoryPatternsAsyncList,
+ blockPatterns: pagingProps.categoryPatterns,
+ onClickPattern: onClickPattern,
+ isDraggable: false
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Pagination, {
+ ...pagingProps
+ })]
+ })
+ })]
+ });
}
/* harmony default export */ const pattern_list = (PatternList);
@@ -42566,7 +46117,6 @@ function usePatternCategories(rootClientId, sourceFilter = 'all') {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns-explorer/index.js
-
/**
* WordPress dependencies
*/
@@ -42580,106 +46130,122 @@ function usePatternCategories(rootClientId, sourceFilter = 'all') {
+
+
function PatternsExplorer({
initialCategory,
rootClientId
}) {
const [searchValue, setSearchValue] = (0,external_wp_element_namespaceObject.useState)('');
- const [patternSourceFilter, setPatternSourceFilter] = (0,external_wp_element_namespaceObject.useState)('all');
const [selectedCategory, setSelectedCategory] = (0,external_wp_element_namespaceObject.useState)(initialCategory?.name);
- const patternCategories = usePatternCategories(rootClientId, patternSourceFilter);
- return (0,external_React_.createElement)("div", {
- className: "block-editor-block-patterns-explorer"
- }, (0,external_React_.createElement)(pattern_explorer_sidebar, {
- selectedCategory: selectedCategory,
- patternCategories: patternCategories,
- onClickCategory: setSelectedCategory,
- searchValue: searchValue,
- setSearchValue: setSearchValue,
- patternSourceFilter: patternSourceFilter,
- setPatternSourceFilter: setPatternSourceFilter
- }), (0,external_React_.createElement)(pattern_list, {
- searchValue: searchValue,
- selectedCategory: selectedCategory,
- patternCategories: patternCategories,
- patternSourceFilter: patternSourceFilter,
- rootClientId: rootClientId
- }));
+ const patternCategories = usePatternCategories(rootClientId);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-block-patterns-explorer",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(pattern_explorer_sidebar, {
+ selectedCategory: selectedCategory,
+ patternCategories: patternCategories,
+ onClickCategory: setSelectedCategory,
+ searchValue: searchValue,
+ setSearchValue: setSearchValue
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(pattern_list, {
+ searchValue: searchValue,
+ selectedCategory: selectedCategory,
+ patternCategories: patternCategories,
+ rootClientId: rootClientId
+ })]
+ });
}
function PatternsExplorerModal({
onModalClose,
...restProps
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
title: (0,external_wp_i18n_namespaceObject.__)('Patterns'),
onRequestClose: onModalClose,
- isFullScreen: true
- }, (0,external_React_.createElement)(PatternsExplorer, {
- ...restProps
- }));
+ isFullScreen: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternsExplorer, {
+ ...restProps
+ })
+ });
}
/* harmony default export */ const block_patterns_explorer = (PatternsExplorerModal);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/mobile-tab-navigation.js
-
/**
* WordPress dependencies
*/
+
+
function ScreenHeader({
title
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 0
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalView, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- marginBottom: 0,
- paddingX: 4,
- paddingY: 3
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- spacing: 2
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorBackButton, {
- style:
- // TODO: This style override is also used in ToolsPanelHeader.
- // It should be supported out-of-the-box by Button.
- {
- minWidth: 24,
- padding: 0
- },
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_right : chevron_left,
- isSmall: true,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Navigate to the previous view')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
- level: 5
- }, title))))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 0,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalView, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ marginBottom: 0,
+ paddingX: 4,
+ paddingY: 3,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ spacing: 2,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNavigatorBackButton, {
+ style:
+ // TODO: This style override is also used in ToolsPanelHeader.
+ // It should be supported out-of-the-box by Button.
+ {
+ minWidth: 24,
+ padding: 0
+ },
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_right : chevron_left,
+ size: "small",
+ label: (0,external_wp_i18n_namespaceObject.__)('Back')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
+ level: 5,
+ children: title
+ })
+ })]
+ })
+ })
+ })
+ });
}
function MobileTabNavigation({
categories,
children
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorProvider, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalNavigatorProvider, {
initialPath: "/",
- className: "block-editor-inserter__mobile-tab-navigation"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
- path: "/"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, null, categories.map(category => (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorButton, {
- key: category.name,
- path: `/category/${category.name}`,
- as: external_wp_components_namespaceObject.__experimentalItem,
- isAction: true
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexBlock, null, category.label), (0,external_React_.createElement)(build_module_icon, {
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left : chevron_right
- })))))), categories.map(category => (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
- key: category.name,
- path: `/category/${category.name}`
- }, (0,external_React_.createElement)(ScreenHeader, {
- title: (0,external_wp_i18n_namespaceObject.__)('Back')
- }), children(category))));
+ className: "block-editor-inserter__mobile-tab-navigation",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
+ path: "/",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ children: categories.map(category => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNavigatorButton, {
+ path: `/category/${category.name}`,
+ as: external_wp_components_namespaceObject.__experimentalItem,
+ isAction: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexBlock, {
+ children: category.label
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left : chevron_right
+ })]
+ })
+ }, category.name))
+ })
+ }), categories.map(category => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
+ path: `/category/${category.name}`,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ScreenHeader, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Back')
+ }), children(category)]
+ }, category.name))]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns-tab/patterns-filter.js
-
/**
* WordPress dependencies
*/
@@ -42692,6 +46258,9 @@ function MobileTabNavigation({
* Internal dependencies
*/
+
+
+
const getShouldDisableSyncFilter = sourceFilter => sourceFilter !== 'all';
const getShouldDisableNonUserSources = category => {
return category.name === myPatternsCategory.name;
@@ -42751,52 +46320,63 @@ function PatternsFilter({
setPatternSyncFilter('all');
}
}
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
- popoverProps: {
- placement: 'right-end'
- },
- label: "Filter patterns",
- icon: (0,external_React_.createElement)(build_module_icon, {
- icon: (0,external_React_.createElement)(external_wp_components_namespaceObject.SVG, {
- width: "24",
- height: "24",
- viewBox: "0 0 24 24",
- fill: "none",
- xmlns: "http://www.w3.org/2000/svg"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",
- fill: "#1E1E1E"
- }))
- })
- }, () => (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Source')
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItemsChoice, {
- choices: patternSourceMenuOptions,
- onSelect: value => {
- handleSetSourceFilterChange(value);
- scrollContainerRef.current?.scrollTo(0, 0);
- },
- value: currentPatternSourceFilter
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Type')
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItemsChoice, {
- choices: patternSyncMenuOptions,
- onSelect: value => {
- setPatternSyncFilter(value);
- scrollContainerRef.current?.scrollTo(0, 0);
- },
- value: patternSyncFilter
- })), (0,external_React_.createElement)("div", {
- className: "block-editor-tool-selector__help"
- }, (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('Patterns are available from the <Link>WordPress.org Pattern Directory</Link>, bundled in the active theme, or created by users on this site. Only patterns created on this site can be synced.'), {
- Link: (0,external_React_.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/patterns/')
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
+ popoverProps: {
+ placement: 'right-end'
+ },
+ label: (0,external_wp_i18n_namespaceObject.__)('Filter patterns'),
+ toggleProps: {
+ size: 'compact'
+ },
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ width: "24",
+ height: "24",
+ viewBox: "0 0 24 24",
+ fill: "none",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",
+ fill: "currentColor"
+ })
+ })
+ }),
+ children: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Source'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItemsChoice, {
+ choices: patternSourceMenuOptions,
+ onSelect: value => {
+ handleSetSourceFilterChange(value);
+ scrollContainerRef.current?.scrollTo(0, 0);
+ },
+ value: currentPatternSourceFilter
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Type'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItemsChoice, {
+ choices: patternSyncMenuOptions,
+ onSelect: value => {
+ setPatternSyncFilter(value);
+ scrollContainerRef.current?.scrollTo(0, 0);
+ },
+ value: patternSyncFilter
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-tool-selector__help",
+ children: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('Patterns are available from the <Link>WordPress.org Pattern Directory</Link>, bundled in the active theme, or created by users on this site. Only patterns created on this site can be synced.'), {
+ Link: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/patterns/')
+ })
+ })
+ })]
+ })
})
- })))));
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns-tab/pattern-category-previews.js
-
/**
* WordPress dependencies
*/
@@ -42813,6 +46393,9 @@ function PatternsFilter({
+
+
+
const pattern_category_previews_noop = () => {};
function PatternCategoryPreviews({
rootClientId,
@@ -42821,7 +46404,7 @@ function PatternCategoryPreviews({
category,
showTitlesAsTooltip
}) {
- const [allPatterns,, onClickPattern] = use_patterns_state(onInsert, rootClientId);
+ const [allPatterns,, onClickPattern] = use_patterns_state(onInsert, rootClientId, category?.name);
const [patternSyncFilter, setPatternSyncFilter] = (0,external_wp_element_namespaceObject.useState)('all');
const [patternSourceFilter, setPatternSourceFilter] = (0,external_wp_element_namespaceObject.useState)('all');
const availableCategories = usePatternCategories(rootClientId, patternSourceFilter);
@@ -42863,42 +46446,107 @@ function PatternCategoryPreviews({
setPatternSourceFilter(value);
changePage(1);
}, [setPatternSourceFilter, changePage]);
- return (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__patterns-category-panel"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 2,
- className: "block-editor-inserter__patterns-category-panel-header"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexBlock, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
- level: 4,
- as: "div"
- }, category.label)), (0,external_React_.createElement)(PatternsFilter, {
- patternSyncFilter: patternSyncFilter,
- patternSourceFilter: patternSourceFilter,
- setPatternSyncFilter: onSetPatternSyncFilter,
- setPatternSourceFilter: onSetPatternSourceFilter,
- scrollContainerRef: scrollContainerRef,
- category: category
- })), !currentCategoryPatterns.length && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- variant: "muted",
- className: "block-editor-inserter__patterns-category-no-results"
- }, (0,external_wp_i18n_namespaceObject.__)('No results found'))), currentCategoryPatterns.length > 0 && (0,external_React_.createElement)(block_patterns_list, {
- ref: scrollContainerRef,
- shownPatterns: pagingProps.categoryPatternsAsyncList,
- blockPatterns: pagingProps.categoryPatterns,
- onClickPattern: onClickPattern,
- onHover: onHover,
- label: category.label,
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 2,
+ className: "block-editor-inserter__patterns-category-panel-header",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexBlock, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
+ className: "block-editor-inserter__patterns-category-panel-title",
+ size: 13,
+ level: 4,
+ as: "div",
+ children: category.label
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternsFilter, {
+ patternSyncFilter: patternSyncFilter,
+ patternSourceFilter: patternSourceFilter,
+ setPatternSyncFilter: onSetPatternSyncFilter,
+ setPatternSourceFilter: onSetPatternSourceFilter,
+ scrollContainerRef: scrollContainerRef,
+ category: category
+ })]
+ }), !currentCategoryPatterns.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ className: "block-editor-inserter__patterns-category-no-results",
+ children: (0,external_wp_i18n_namespaceObject.__)('No results found')
+ })]
+ }), currentCategoryPatterns.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_patterns_list, {
+ ref: scrollContainerRef,
+ shownPatterns: pagingProps.categoryPatternsAsyncList,
+ blockPatterns: pagingProps.categoryPatterns,
+ onClickPattern: onClickPattern,
+ onHover: onHover,
+ label: category.label,
+ orientation: "vertical",
+ category: category.name,
+ isDraggable: true,
+ showTitlesAsTooltip: showTitlesAsTooltip,
+ patternFilter: patternSourceFilter,
+ pagingProps: pagingProps
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/category-tabs/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+const {
+ Tabs: category_tabs_Tabs
+} = unlock(external_wp_components_namespaceObject.privateApis);
+function CategoryTabs({
+ categories,
+ selectedCategory,
+ onSelectCategory,
+ children
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(category_tabs_Tabs, {
+ className: "block-editor-inserter__category-tabs",
+ selectOnMove: false,
+ selectedTabId: selectedCategory ? selectedCategory.name : null,
orientation: "vertical",
- category: category.name,
- isDraggable: true,
- showTitlesAsTooltip: showTitlesAsTooltip,
- patternFilter: patternSourceFilter,
- pagingProps: pagingProps
- }));
+ onSelect: categoryId => {
+ // Pass the full category object
+ onSelectCategory(categories.find(category => category.name === categoryId));
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(category_tabs_Tabs.TabList, {
+ className: "block-editor-inserter__category-tablist",
+ children: categories.map(category => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(category_tabs_Tabs.Tab, {
+ tabId: category.name,
+ className: "block-editor-inserter__category-tab",
+ "aria-label": category.label,
+ "aria-current": category === selectedCategory ? 'true' : undefined,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexBlock, {
+ children: category.label
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left : chevron_right
+ })]
+ })
+ }, category.name))
+ }), categories.map(category => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(category_tabs_Tabs.TabPanel, {
+ tabId: category.name,
+ focusable: false,
+ className: "block-editor-inserter__category-panel",
+ children: children
+ }, category.name))]
+ });
}
+/* harmony default export */ const category_tabs = (CategoryTabs);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns-tab/index.js
-
/**
* WordPress dependencies
*/
@@ -42915,69 +46563,76 @@ function PatternCategoryPreviews({
+
+
+
+
+
+
+
function BlockPatternsTab({
onSelectCategory,
selectedCategory,
onInsert,
- rootClientId
+ rootClientId,
+ children
}) {
const [showPatternsExplorer, setShowPatternsExplorer] = (0,external_wp_element_namespaceObject.useState)(false);
const categories = usePatternCategories(rootClientId);
- const initialCategory = selectedCategory || categories[0];
const isMobile = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
- return (0,external_React_.createElement)(external_React_.Fragment, null, !isMobile && (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__block-patterns-tabs-container"
- }, (0,external_React_.createElement)("nav", {
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Block pattern categories'),
- className: "block-editor-inserter__block-patterns-tabs"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, {
- role: "list"
- }, categories.map(category => (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItem, {
- role: "listitem",
- key: category.name,
- onClick: () => onSelectCategory(category),
- className: category === selectedCategory ? 'block-editor-inserter__patterns-category block-editor-inserter__patterns-selected-category' : 'block-editor-inserter__patterns-category',
- "aria-label": category.label,
- "aria-current": category === selectedCategory ? 'true' : undefined
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexBlock, null, category.label), (0,external_React_.createElement)(build_module_icon, {
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left : chevron_right
- })))), (0,external_React_.createElement)("div", {
- role: "listitem"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "block-editor-inserter__patterns-explore-button",
- onClick: () => setShowPatternsExplorer(true),
- variant: "secondary"
- }, (0,external_wp_i18n_namespaceObject.__)('Explore all patterns')))))), isMobile && (0,external_React_.createElement)(MobileTabNavigation, {
- categories: categories
- }, category => (0,external_React_.createElement)(PatternCategoryPreviews, {
- key: category.name,
- onInsert: onInsert,
- rootClientId: rootClientId,
- category: category,
- showTitlesAsTooltip: false
- })), showPatternsExplorer && (0,external_React_.createElement)(block_patterns_explorer, {
- initialCategory: initialCategory,
- patternCategories: categories,
- onModalClose: () => setShowPatternsExplorer(false),
- rootClientId: rootClientId
- }));
+ const isResolvingPatterns = (0,external_wp_data_namespaceObject.useSelect)(select => unlock(select(store)).isResolvingPatterns(), []);
+ if (isResolvingPatterns) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-inserter__patterns-loading",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
+ });
+ }
+ if (!categories.length) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(no_results, {});
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [!isMobile && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-inserter__block-patterns-tabs-container",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(category_tabs, {
+ categories: categories,
+ selectedCategory: selectedCategory,
+ onSelectCategory: onSelectCategory,
+ children: children
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "block-editor-inserter__patterns-explore-button",
+ onClick: () => setShowPatternsExplorer(true),
+ variant: "secondary",
+ children: (0,external_wp_i18n_namespaceObject.__)('Explore all patterns')
+ })]
+ }), isMobile && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MobileTabNavigation, {
+ categories: categories,
+ children: category => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-inserter__category-panel",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternCategoryPreviews, {
+ onInsert: onInsert,
+ rootClientId: rootClientId,
+ category: category,
+ showTitlesAsTooltip: false
+ }, category.name)
+ })
+ }), showPatternsExplorer && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_patterns_explorer, {
+ initialCategory: selectedCategory || categories[0],
+ patternCategories: categories,
+ onModalClose: () => setShowPatternsExplorer(false),
+ rootClientId: rootClientId
+ })]
+ });
}
/* harmony default export */ const block_patterns_tab = (BlockPatternsTab);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns-tab/pattern-category-preview-panel.js
-
-/**
- * WordPress dependencies
- */
-
-
-
/**
* Internal dependencies
*/
-function PatternCategoryPreviewPanel({
+
+function PatternCategoryPreviewPanelInner({
rootClientId,
onInsert,
onHover,
@@ -42985,167 +46640,54 @@ function PatternCategoryPreviewPanel({
showTitlesAsTooltip,
patternFilter
}) {
- const container = (0,external_wp_element_namespaceObject.useRef)();
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- const timeout = setTimeout(() => {
- const [firstTabbable] = external_wp_dom_namespaceObject.focus.tabbable.find(container.current);
- firstTabbable?.focus();
- });
- return () => clearTimeout(timeout);
- }, [category]);
- return (0,external_React_.createElement)("div", {
- ref: container,
- className: "block-editor-inserter__patterns-category-dialog"
- }, (0,external_React_.createElement)(PatternCategoryPreviews, {
- key: category.name,
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternCategoryPreviews, {
rootClientId: rootClientId,
onInsert: onInsert,
onHover: onHover,
category: category,
showTitlesAsTooltip: showTitlesAsTooltip,
patternFilter: patternFilter
- }));
+ }, category.name);
}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/media-tab/hooks.js
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-/** @typedef {import('../../../store/actions').InserterMediaRequest} InserterMediaRequest */
-/** @typedef {import('../../../store/actions').InserterMediaItem} InserterMediaItem */
-
-/**
- * Fetches media items based on the provided category.
- * Each media category is responsible for providing a `fetch` function.
- *
- * @param {Object} category The media category to fetch results for.
- * @param {InserterMediaRequest} query The query args to use for the request.
- * @return {InserterMediaItem[]} The media results.
- */
-function useMediaResults(category, query = {}) {
- const [mediaList, setMediaList] = (0,external_wp_element_namespaceObject.useState)();
- const [isLoading, setIsLoading] = (0,external_wp_element_namespaceObject.useState)(false);
- // We need to keep track of the last request made because
- // multiple request can be fired without knowing the order
- // of resolution, and we need to ensure we are showing
- // the results of the last request.
- // In the future we could use AbortController to cancel previous
- // requests, but we don't for now as it involves adding support
- // for this to `core-data` package.
- const lastRequest = (0,external_wp_element_namespaceObject.useRef)();
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- (async () => {
- const key = JSON.stringify({
- category: category.name,
- ...query
- });
- lastRequest.current = key;
- setIsLoading(true);
- setMediaList([]); // Empty the previous results.
- const _media = await category.fetch?.(query);
- if (key === lastRequest.current) {
- setMediaList(_media);
- setIsLoading(false);
- }
- })();
- }, [category.name, ...Object.values(query)]);
- return {
- mediaList,
- isLoading
- };
+function PatternCategoryPreviewPanelWithZoomOut(props) {
+ useZoomOut();
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternCategoryPreviewPanelInner, {
+ ...props
+ });
}
-function useMediaCategories(rootClientId) {
- const [categories, setCategories] = (0,external_wp_element_namespaceObject.useState)([]);
- const inserterMediaCategories = (0,external_wp_data_namespaceObject.useSelect)(select => unlock(select(store)).getInserterMediaCategories(), []);
- const {
- canInsertImage,
- canInsertVideo,
- canInsertAudio
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- canInsertBlockType
- } = select(store);
- return {
- canInsertImage: canInsertBlockType('core/image', rootClientId),
- canInsertVideo: canInsertBlockType('core/video', rootClientId),
- canInsertAudio: canInsertBlockType('core/audio', rootClientId)
- };
- }, [rootClientId]);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- (async () => {
- const _categories = [];
- // If `inserterMediaCategories` is not defined in
- // block editor settings, do not show any media categories.
- if (!inserterMediaCategories) {
- return;
- }
- // Loop through categories to check if they have at least one media item.
- const categoriesHaveMedia = new Map(await Promise.all(inserterMediaCategories.map(async category => {
- // Some sources are external and we don't need to make a request.
- if (category.isExternalResource) {
- return [category.name, true];
- }
- let results = [];
- try {
- results = await category.fetch({
- per_page: 1
- });
- } catch (e) {
- // If the request fails, we shallow the error and just don't show
- // the category, in order to not break the media tab.
- }
- return [category.name, !!results.length];
- })));
- // We need to filter out categories that don't have any media items or
- // whose corresponding block type is not allowed to be inserted, based
- // on the category's `mediaType`.
- const canInsertMediaType = {
- image: canInsertImage,
- video: canInsertVideo,
- audio: canInsertAudio
- };
- inserterMediaCategories.forEach(category => {
- if (canInsertMediaType[category.mediaType] && categoriesHaveMedia.get(category.name)) {
- _categories.push(category);
- }
- });
- if (!!_categories.length) {
- setCategories(_categories);
- }
- })();
- }, [canInsertImage, canInsertVideo, canInsertAudio, inserterMediaCategories]);
- return categories;
+function PatternCategoryPreviewPanel(props) {
+ // When the pattern panel is showing, we want to use zoom out mode
+ if (window.__experimentalEnableZoomedOutPatternsTab) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternCategoryPreviewPanelWithZoomOut, {
+ ...props
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternCategoryPreviewPanelInner, {
+ ...props
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
-
/**
* WordPress dependencies
*/
-const external = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const external = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"
+ })
+});
/* harmony default export */ const library_external = (external);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/media-tab/utils.js
-
/**
* WordPress dependencies
*/
+
const mediaTypeTag = {
image: 'img',
video: 'video',
@@ -43176,7 +46718,7 @@ function getBlockAndPreviewFromMedia(media, mediaType) {
attributes.src = mediaSrc;
}
const PreviewTag = mediaTypeTag[mediaType];
- const preview = (0,external_React_.createElement)(PreviewTag, {
+ const preview = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreviewTag, {
src: media.previewUrl || mediaSrc,
alt: alt,
controls: mediaType === 'audio' ? true : undefined,
@@ -43194,7 +46736,6 @@ function getBlockAndPreviewFromMedia(media, mediaType) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/media-tab/media-preview.js
-
/**
* External dependencies
*/
@@ -43219,6 +46760,9 @@ function getBlockAndPreviewFromMedia(media, mediaType) {
+
+
+
const ALLOWED_MEDIA_TYPES = ['image'];
const MAXIMUM_TITLE_LENGTH = 25;
const MEDIA_OPTIONS_POPOVER_PROPS = {
@@ -43236,38 +46780,55 @@ function MediaPreviewOptions({
return null;
}
const reportUrl = category.getReportUrl(media);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
className: "block-editor-inserter__media-list__item-preview-options",
label: (0,external_wp_i18n_namespaceObject.__)('Options'),
popoverProps: MEDIA_OPTIONS_POPOVER_PROPS,
- icon: more_vertical
- }, () => (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => window.open(reportUrl, '_blank').focus(),
- icon: library_external
- }, (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: The media type to report e.g: "image", "video", "audio" */
- (0,external_wp_i18n_namespaceObject.__)('Report %s'), category.mediaType))));
+ icon: more_vertical,
+ children: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => window.open(reportUrl, '_blank').focus(),
+ icon: library_external,
+ children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: The media type to report e.g: "image", "video", "audio" */
+ (0,external_wp_i18n_namespaceObject.__)('Report %s'), category.mediaType)
+ })
+ })
+ });
}
function InsertExternalImageModal({
onClose,
onSubmit
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Modal, {
title: (0,external_wp_i18n_namespaceObject.__)('Insert external image'),
onRequestClose: onClose,
- className: "block-editor-inserter-media-tab-media-preview-inserter-external-image-modal"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 3
- }, (0,external_React_.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.')), (0,external_React_.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation.'))), (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- className: "block-editor-block-lock-modal__actions",
- justify: "flex-end",
- expanded: false
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: onClose
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel'))), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: onSubmit
- }, (0,external_wp_i18n_namespaceObject.__)('Insert')))));
+ className: "block-editor-inserter-media-tab-media-preview-inserter-external-image-modal",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 3,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation.')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ className: "block-editor-block-lock-modal__actions",
+ justify: "flex-end",
+ expanded: false,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: onClose,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ onClick: onSubmit,
+ children: (0,external_wp_i18n_namespaceObject.__)('Insert')
+ })
+ })]
+ })]
+ });
}
function MediaPreview({
media,
@@ -43282,18 +46843,28 @@ function MediaPreview({
createErrorNotice,
createSuccessNotice
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- const mediaUpload = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getSettings().mediaUpload, []);
+ const {
+ getSettings
+ } = (0,external_wp_data_namespaceObject.useSelect)(store);
const onMediaInsert = (0,external_wp_element_namespaceObject.useCallback)(previewBlock => {
// Prevent multiple uploads when we're in the process of inserting.
if (isInserting) {
return;
}
+ const settings = getSettings();
const clonedBlock = (0,external_wp_blocks_namespaceObject.cloneBlock)(previewBlock);
const {
id,
url,
caption
} = clonedBlock.attributes;
+
+ // User has no permission to upload media.
+ if (!id && !settings.mediaUpload) {
+ setShowExternalUploadModal(true);
+ return;
+ }
+
// Media item already exists in library, so just insert it.
if (!!id) {
onClick(clonedBlock);
@@ -43306,7 +46877,7 @@ function MediaPreview({
// If this happens, we insert the image block using the external
// URL and let the user know about the possible implications.
window.fetch(url).then(response => response.blob()).then(blob => {
- mediaUpload({
+ settings.mediaUpload({
filesList: [blob],
additionalData: {
caption
@@ -43340,7 +46911,7 @@ function MediaPreview({
setShowExternalUploadModal(true);
setIsInserting(false);
});
- }, [isInserting, onClick, mediaUpload, createErrorNotice, createSuccessNotice]);
+ }, [isInserting, getSettings, onClick, createSuccessNotice, createErrorNotice]);
const title = typeof media.title === 'string' ? media.title : media.title?.rendered || (0,external_wp_i18n_namespaceObject.__)('no title');
let truncatedTitle;
if (title.length > MAXIMUM_TITLE_LENGTH) {
@@ -43349,53 +46920,61 @@ function MediaPreview({
}
const onMouseEnter = (0,external_wp_element_namespaceObject.useCallback)(() => setIsHovered(true), []);
const onMouseLeave = (0,external_wp_element_namespaceObject.useCallback)(() => setIsHovered(false), []);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(inserter_draggable_blocks, {
- isEnabled: true,
- blocks: [block]
- }, ({
- draggable,
- onDragStart,
- onDragEnd
- }) => (0,external_React_.createElement)("div", {
- className: classnames_default()('block-editor-inserter__media-list__list-item', {
- 'is-hovered': isHovered
- }),
- draggable: draggable,
- onDragStart: onDragStart,
- onDragEnd: onDragEnd
- }, (0,external_React_.createElement)("div", {
- onMouseEnter: onMouseEnter,
- onMouseLeave: onMouseLeave
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Tooltip, {
- text: truncatedTitle || title
- }, (0,external_React_.createElement)(media_preview_CompositeItem, {
- render: (0,external_React_.createElement)("div", {
- "aria-label": title,
- role: "option",
- className: "block-editor-inserter__media-list__item"
- }),
- onClick: () => onMediaInsert(block)
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__media-list__item-preview"
- }, preview, isInserting && (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__media-list__item-preview-spinner"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Spinner, null))))), !isInserting && (0,external_React_.createElement)(MediaPreviewOptions, {
- category: category,
- media: media
- })))), showExternalUploadModal && (0,external_React_.createElement)(InsertExternalImageModal, {
- onClose: () => setShowExternalUploadModal(false),
- onSubmit: () => {
- onClick((0,external_wp_blocks_namespaceObject.cloneBlock)(block));
- createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Image inserted.'), {
- type: 'snackbar'
- });
- setShowExternalUploadModal(false);
- }
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter_draggable_blocks, {
+ isEnabled: true,
+ blocks: [block],
+ children: ({
+ draggable,
+ onDragStart,
+ onDragEnd
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('block-editor-inserter__media-list__list-item', {
+ 'is-hovered': isHovered
+ }),
+ draggable: draggable,
+ onDragStart: onDragStart,
+ onDragEnd: onDragEnd,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ onMouseEnter: onMouseEnter,
+ onMouseLeave: onMouseLeave,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Tooltip, {
+ text: truncatedTitle || title,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(media_preview_CompositeItem, {
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ "aria-label": title,
+ role: "option",
+ className: "block-editor-inserter__media-list__item"
+ }),
+ onClick: () => onMediaInsert(block),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-inserter__media-list__item-preview",
+ children: [preview, isInserting && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-inserter__media-list__item-preview-spinner",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
+ })]
+ })
+ })
+ }), !isInserting && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MediaPreviewOptions, {
+ category: category,
+ media: media
+ })]
+ })
+ })
+ }), showExternalUploadModal && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InsertExternalImageModal, {
+ onClose: () => setShowExternalUploadModal(false),
+ onSubmit: () => {
+ onClick((0,external_wp_blocks_namespaceObject.cloneBlock)(block));
+ createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Image inserted.'), {
+ type: 'snackbar'
+ });
+ setShowExternalUploadModal(false);
+ }
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/media-tab/media-list.js
-
/**
* WordPress dependencies
*/
@@ -43407,6 +46986,7 @@ function MediaPreview({
*/
+
const {
CompositeV2: media_list_Composite,
useCompositeStoreV2: media_list_useCompositeStore
@@ -43418,39 +46998,140 @@ function MediaList({
label = (0,external_wp_i18n_namespaceObject.__)('Media List')
}) {
const compositeStore = media_list_useCompositeStore();
- return (0,external_React_.createElement)(media_list_Composite, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(media_list_Composite, {
store: compositeStore,
role: "listbox",
className: "block-editor-inserter__media-list",
- "aria-label": label
- }, mediaList.map((media, index) => (0,external_React_.createElement)(MediaPreview, {
- key: media.id || media.sourceId || index,
- media: media,
- category: category,
- onClick: onClick
- })));
+ "aria-label": label,
+ children: mediaList.map((media, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MediaPreview, {
+ media: media,
+ category: category,
+ onClick: onClick
+ }, media.id || media.sourceId || index))
+ });
}
/* harmony default export */ const media_list = (MediaList);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/no-results.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/media-tab/hooks.js
/**
* WordPress dependencies
*/
-function InserterNoResults() {
- return (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__no-results"
- }, (0,external_React_.createElement)(build_module_icon, {
- className: "block-editor-inserter__no-results-icon",
- icon: block_default
- }), (0,external_React_.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('No results found.')));
+
+/**
+ * Internal dependencies
+ */
+
+
+
+/** @typedef {import('../../../store/actions').InserterMediaRequest} InserterMediaRequest */
+/** @typedef {import('../../../store/actions').InserterMediaItem} InserterMediaItem */
+
+/**
+ * Fetches media items based on the provided category.
+ * Each media category is responsible for providing a `fetch` function.
+ *
+ * @param {Object} category The media category to fetch results for.
+ * @param {InserterMediaRequest} query The query args to use for the request.
+ * @return {InserterMediaItem[]} The media results.
+ */
+function useMediaResults(category, query = {}) {
+ const [mediaList, setMediaList] = (0,external_wp_element_namespaceObject.useState)();
+ const [isLoading, setIsLoading] = (0,external_wp_element_namespaceObject.useState)(false);
+ // We need to keep track of the last request made because
+ // multiple request can be fired without knowing the order
+ // of resolution, and we need to ensure we are showing
+ // the results of the last request.
+ // In the future we could use AbortController to cancel previous
+ // requests, but we don't for now as it involves adding support
+ // for this to `core-data` package.
+ const lastRequest = (0,external_wp_element_namespaceObject.useRef)();
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ (async () => {
+ const key = JSON.stringify({
+ category: category.name,
+ ...query
+ });
+ lastRequest.current = key;
+ setIsLoading(true);
+ setMediaList([]); // Empty the previous results.
+ const _media = await category.fetch?.(query);
+ if (key === lastRequest.current) {
+ setMediaList(_media);
+ setIsLoading(false);
+ }
+ })();
+ }, [category.name, ...Object.values(query)]);
+ return {
+ mediaList,
+ isLoading
+ };
+}
+function useMediaCategories(rootClientId) {
+ const [categories, setCategories] = (0,external_wp_element_namespaceObject.useState)([]);
+ const inserterMediaCategories = (0,external_wp_data_namespaceObject.useSelect)(select => unlock(select(store)).getInserterMediaCategories(), []);
+ const {
+ canInsertImage,
+ canInsertVideo,
+ canInsertAudio
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ canInsertBlockType
+ } = select(store);
+ return {
+ canInsertImage: canInsertBlockType('core/image', rootClientId),
+ canInsertVideo: canInsertBlockType('core/video', rootClientId),
+ canInsertAudio: canInsertBlockType('core/audio', rootClientId)
+ };
+ }, [rootClientId]);
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ (async () => {
+ const _categories = [];
+ // If `inserterMediaCategories` is not defined in
+ // block editor settings, do not show any media categories.
+ if (!inserterMediaCategories) {
+ return;
+ }
+ // Loop through categories to check if they have at least one media item.
+ const categoriesHaveMedia = new Map(await Promise.all(inserterMediaCategories.map(async category => {
+ // Some sources are external and we don't need to make a request.
+ if (category.isExternalResource) {
+ return [category.name, true];
+ }
+ let results = [];
+ try {
+ results = await category.fetch({
+ per_page: 1
+ });
+ } catch (e) {
+ // If the request fails, we shallow the error and just don't show
+ // the category, in order to not break the media tab.
+ }
+ return [category.name, !!results.length];
+ })));
+ // We need to filter out categories that don't have any media items or
+ // whose corresponding block type is not allowed to be inserted, based
+ // on the category's `mediaType`.
+ const canInsertMediaType = {
+ image: canInsertImage,
+ video: canInsertVideo,
+ audio: canInsertAudio
+ };
+ inserterMediaCategories.forEach(category => {
+ if (canInsertMediaType[category.mediaType] && categoriesHaveMedia.get(category.name)) {
+ _categories.push(category);
+ }
+ });
+ if (!!_categories.length) {
+ setCategories(_categories);
+ }
+ })();
+ }, [canInsertImage, canInsertVideo, canInsertAudio, inserterMediaCategories]);
+ return categories;
}
-/* harmony default export */ const no_results = (InserterNoResults);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/media-tab/media-panel.js
-
/**
* WordPress dependencies
*/
@@ -43458,37 +47139,15 @@ function InserterNoResults() {
-
-
/**
* Internal dependencies
*/
+
+
const INITIAL_MEDIA_ITEMS_PER_PAGE = 10;
-function MediaCategoryDialog({
- rootClientId,
- onInsert,
- category
-}) {
- const container = (0,external_wp_element_namespaceObject.useRef)();
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- const timeout = setTimeout(() => {
- const [firstTabbable] = external_wp_dom_namespaceObject.focus.tabbable.find(container.current);
- firstTabbable?.focus();
- });
- return () => clearTimeout(timeout);
- }, [category]);
- return (0,external_React_.createElement)("div", {
- ref: container,
- className: "block-editor-inserter__media-dialog"
- }, (0,external_React_.createElement)(MediaCategoryPanel, {
- rootClientId: rootClientId,
- onInsert: onInsert,
- category: category
- }));
-}
function MediaCategoryPanel({
rootClientId,
onInsert,
@@ -43504,31 +47163,27 @@ function MediaCategoryPanel({
});
const baseCssClass = 'block-editor-inserter__media-panel';
const searchLabel = category.labels.search_items || (0,external_wp_i18n_namespaceObject.__)('Search');
- return (0,external_React_.createElement)("div", {
- className: baseCssClass
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.SearchControl, {
- className: `${baseCssClass}-search`,
- onChange: setSearch,
- value: search,
- label: searchLabel,
- placeholder: searchLabel
- }), isLoading && (0,external_React_.createElement)("div", {
- className: `${baseCssClass}-spinner`
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Spinner, null)), !isLoading && !mediaList?.length && (0,external_React_.createElement)(no_results, null), !isLoading && !!mediaList?.length && (0,external_React_.createElement)(media_list, {
- rootClientId: rootClientId,
- onClick: onInsert,
- mediaList: mediaList,
- category: category
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: baseCssClass,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SearchControl, {
+ className: `${baseCssClass}-search`,
+ onChange: setSearch,
+ value: search,
+ label: searchLabel,
+ placeholder: searchLabel
+ }), isLoading && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: `${baseCssClass}-spinner`,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
+ }), !isLoading && !mediaList?.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(no_results, {}), !isLoading && !!mediaList?.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(media_list, {
+ rootClientId: rootClientId,
+ onClick: onInsert,
+ mediaList: mediaList,
+ category: category
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/media-tab/media-tab.js
-
-/**
- * External dependencies
- */
-
-
/**
* WordPress dependencies
*/
@@ -43537,7 +47192,6 @@ function MediaCategoryPanel({
-
/**
* Internal dependencies
*/
@@ -43547,12 +47201,18 @@ function MediaCategoryPanel({
+
+
+
+
+
const media_tab_ALLOWED_MEDIA_TYPES = ['image', 'video', 'audio'];
function MediaTab({
rootClientId,
selectedCategory,
onSelectCategory,
- onInsert
+ onInsert,
+ children
}) {
const mediaCategories = useMediaCategories(rootClientId);
const isMobile = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
@@ -43564,58 +47224,55 @@ function MediaTab({
const [block] = getBlockAndPreviewFromMedia(media, media.type);
onInsert(block);
}, [onInsert]);
- const mobileMediaCategories = (0,external_wp_element_namespaceObject.useMemo)(() => mediaCategories.map(mediaCategory => ({
+ const categories = (0,external_wp_element_namespaceObject.useMemo)(() => mediaCategories.map(mediaCategory => ({
...mediaCategory,
label: mediaCategory.labels.name
})), [mediaCategories]);
- return (0,external_React_.createElement)(external_React_.Fragment, null, !isMobile && (0,external_React_.createElement)("div", {
- className: `${baseCssClass}-container`
- }, (0,external_React_.createElement)("nav", {
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Media categories')
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, {
- role: "list",
- className: baseCssClass
- }, mediaCategories.map(mediaCategory => (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItem, {
- role: "listitem",
- key: mediaCategory.name,
- onClick: () => onSelectCategory(mediaCategory),
- className: classnames_default()(`${baseCssClass}__media-category`, {
- 'is-selected': selectedCategory === mediaCategory
- }),
- "aria-label": mediaCategory.labels.name,
- "aria-current": mediaCategory === selectedCategory ? 'true' : undefined
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexBlock, null, mediaCategory.labels.name), (0,external_React_.createElement)(build_module_icon, {
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left : chevron_right
- })))), (0,external_React_.createElement)("div", {
- role: "listitem"
- }, (0,external_React_.createElement)(check, null, (0,external_React_.createElement)(media_upload, {
- multiple: false,
- onSelect: onSelectMedia,
- allowedTypes: media_tab_ALLOWED_MEDIA_TYPES,
- render: ({
- open
- }) => (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- onClick: event => {
- // Safari doesn't emit a focus event on button elements when
- // clicked and we need to manually focus the button here.
- // The reason is that core's Media Library modal explicitly triggers a
- // focus event and therefore a `blur` event is triggered on a different
- // element, which doesn't contain the `data-unstable-ignore-focus-outside-for-relatedtarget`
- // attribute making the Inserter dialog to close.
- event.target.focus();
- open();
- },
- className: "block-editor-inserter__media-library-button",
- variant: "secondary",
- "data-unstable-ignore-focus-outside-for-relatedtarget": ".media-modal"
- }, (0,external_wp_i18n_namespaceObject.__)('Open Media Library'))
- })))))), isMobile && (0,external_React_.createElement)(MobileTabNavigation, {
- categories: mobileMediaCategories
- }, category => (0,external_React_.createElement)(MediaCategoryPanel, {
- onInsert: onInsert,
- rootClientId: rootClientId,
- category: category
- })));
+ if (!categories.length) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(no_results, {});
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [!isMobile && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: `${baseCssClass}-container`,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(category_tabs, {
+ categories: categories,
+ selectedCategory: selectedCategory,
+ onSelectCategory: onSelectCategory,
+ children: children
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(check, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(media_upload, {
+ multiple: false,
+ onSelect: onSelectMedia,
+ allowedTypes: media_tab_ALLOWED_MEDIA_TYPES,
+ render: ({
+ open
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ onClick: event => {
+ // Safari doesn't emit a focus event on button elements when
+ // clicked and we need to manually focus the button here.
+ // The reason is that core's Media Library modal explicitly triggers a
+ // focus event and therefore a `blur` event is triggered on a different
+ // element, which doesn't contain the `data-unstable-ignore-focus-outside-for-relatedtarget`
+ // attribute making the Inserter dialog to close.
+ event.target.focus();
+ open();
+ },
+ className: "block-editor-inserter__media-library-button",
+ variant: "secondary",
+ "data-unstable-ignore-focus-outside-for-relatedtarget": ".media-modal",
+ children: (0,external_wp_i18n_namespaceObject.__)('Open Media Library')
+ })
+ })
+ })]
+ }), isMobile && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MobileTabNavigation, {
+ categories: categories,
+ children: category => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MediaCategoryPanel, {
+ onInsert: onInsert,
+ rootClientId: rootClientId,
+ category: category
+ })
+ })]
+ });
}
/* harmony default export */ const media_tab = (MediaTab);
@@ -43632,7 +47289,6 @@ __unstableInserterMenuExtension.Slot = inserter_menu_extension_Slot;
/* harmony default export */ const inserter_menu_extension = (__unstableInserterMenuExtension);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/search-results.js
-
/**
* WordPress dependencies
*/
@@ -43659,6 +47315,8 @@ __unstableInserterMenuExtension.Slot = inserter_menu_extension_Slot;
+
+
const search_results_INITIAL_INSERTER_RESULTS = 9;
/**
* Shared reference to an empty array for cases where it is important to avoid
@@ -43682,7 +47340,8 @@ function InserterSearchResults({
isDraggable = true,
shouldFocusBlock = true,
prioritizePatterns,
- selectBlockOnInsert
+ selectBlockOnInsert,
+ isQuick
}) {
const debouncedSpeak = (0,external_wp_compose_namespaceObject.useDebounce)(external_wp_a11y_namespaceObject.speak, 500);
const {
@@ -43702,7 +47361,7 @@ function InserterSearchResults({
shouldFocusBlock,
selectBlockOnInsert
});
- const [blockTypes, blockTypeCategories, blockTypeCollections, onSelectBlockType] = use_block_types_state(destinationRootClientId, onInsertBlocks);
+ const [blockTypes, blockTypeCategories, blockTypeCollections, onSelectBlockType] = use_block_types_state(destinationRootClientId, onInsertBlocks, isQuick);
const [patterns,, onClickPattern] = use_patterns_state(onInsertBlocks, destinationRootClientId);
const filteredBlockPatterns = (0,external_wp_element_namespaceObject.useMemo)(() => {
if (maxBlockPatterns === 0) {
@@ -43743,62 +47402,90 @@ function InserterSearchResults({
});
const currentShownPatterns = (0,external_wp_compose_namespaceObject.useAsyncList)(currentShownBlockTypes.length === filteredBlockTypes.length ? filteredBlockPatterns : search_results_EMPTY_ARRAY);
const hasItems = filteredBlockTypes.length > 0 || filteredBlockPatterns.length > 0;
- const blocksUI = !!filteredBlockTypes.length && (0,external_React_.createElement)(panel, {
- title: (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, null, (0,external_wp_i18n_namespaceObject.__)('Blocks'))
- }, (0,external_React_.createElement)(block_types_list, {
- items: currentShownBlockTypes,
- onSelect: onSelectBlockType,
- onHover: onHover,
- label: (0,external_wp_i18n_namespaceObject.__)('Blocks'),
- isDraggable: isDraggable
- }));
- const patternsUI = !!filteredBlockPatterns.length && (0,external_React_.createElement)(panel, {
- title: (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, null, (0,external_wp_i18n_namespaceObject.__)('Block patterns'))
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__quick-inserter-patterns"
- }, (0,external_React_.createElement)(block_patterns_list, {
- shownPatterns: currentShownPatterns,
- blockPatterns: filteredBlockPatterns,
- onClickPattern: onClickPattern,
- onHover: onHoverPattern,
- isDraggable: isDraggable
- })));
- return (0,external_React_.createElement)(inserter_listbox, null, !showBlockDirectory && !hasItems && (0,external_React_.createElement)(no_results, null), prioritizePatterns ? patternsUI : blocksUI, !!filteredBlockTypes.length && !!filteredBlockPatterns.length && (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__quick-inserter-separator"
- }), prioritizePatterns ? blocksUI : patternsUI, showBlockDirectory && (0,external_React_.createElement)(inserter_menu_extension.Slot, {
- fillProps: {
+ const blocksUI = !!filteredBlockTypes.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(panel, {
+ title: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Blocks')
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_types_list, {
+ items: currentShownBlockTypes,
onSelect: onSelectBlockType,
- onHover,
- filterValue,
- hasItems,
- rootClientId: destinationRootClientId
- }
- }, fills => {
- if (fills.length) {
- return fills;
- }
- if (!hasItems) {
- return (0,external_React_.createElement)(no_results, null);
- }
- return null;
- }));
+ onHover: onHover,
+ label: (0,external_wp_i18n_namespaceObject.__)('Blocks'),
+ isDraggable: isDraggable
+ })
+ });
+ const patternsUI = !!filteredBlockPatterns.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(panel, {
+ title: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Block patterns')
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-inserter__quick-inserter-patterns",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_patterns_list, {
+ shownPatterns: currentShownPatterns,
+ blockPatterns: filteredBlockPatterns,
+ onClickPattern: onClickPattern,
+ onHover: onHoverPattern,
+ isDraggable: isDraggable
+ })
+ })
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(inserter_listbox, {
+ children: [!showBlockDirectory && !hasItems && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(no_results, {}), prioritizePatterns ? patternsUI : blocksUI, !!filteredBlockTypes.length && !!filteredBlockPatterns.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-inserter__quick-inserter-separator"
+ }), prioritizePatterns ? blocksUI : patternsUI, showBlockDirectory && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter_menu_extension.Slot, {
+ fillProps: {
+ onSelect: onSelectBlockType,
+ onHover,
+ filterValue,
+ hasItems,
+ rootClientId: destinationRootClientId
+ },
+ children: fills => {
+ if (fills.length) {
+ return fills;
+ }
+ if (!hasItems) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(no_results, {});
+ }
+ return null;
+ }
+ })]
+ });
}
/* harmony default export */ const search_results = (InserterSearchResults);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/tabs.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
+/**
+ * WordPress dependencies
+ */
+
+const closeSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
+ })
+});
+/* harmony default export */ const close_small = (closeSmall);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/tabs.js
/**
* WordPress dependencies
*/
+
+
/**
* Internal dependencies
*/
+
+
const {
- Tabs
+ Tabs: tabs_Tabs
} = unlock(external_wp_components_namespaceObject.privateApis);
const blocksTab = {
name: 'blocks',
@@ -43816,29 +47503,46 @@ const mediaTab = {
title: (0,external_wp_i18n_namespaceObject.__)('Media')
};
function InserterTabs({
- showPatterns = false,
- showMedia = false,
onSelect,
- tabsContents
-}) {
- const tabs = [blocksTab, showPatterns && patternsTab, showMedia && mediaTab].filter(Boolean);
- return (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__tabs"
- }, (0,external_React_.createElement)(Tabs, {
- onSelect: onSelect
- }, (0,external_React_.createElement)(Tabs.TabList, null, tabs.map(tab => (0,external_React_.createElement)(Tabs.Tab, {
- key: tab.name,
- tabId: tab.name
- }, tab.title))), tabs.map(tab => (0,external_React_.createElement)(Tabs.TabPanel, {
- key: tab.name,
- tabId: tab.name,
- focusable: false
- }, tabsContents[tab.name]))));
-}
-/* harmony default export */ const tabs = (InserterTabs);
+ children,
+ onClose,
+ selectedTab
+}, ref) {
+ const tabs = [blocksTab, patternsTab, mediaTab];
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-inserter__tabs",
+ ref: ref,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(tabs_Tabs, {
+ onSelect: onSelect,
+ selectedTabId: selectedTab,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-inserter__tablist-and-close-button",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "block-editor-inserter__close-button",
+ icon: close_small,
+ label: (0,external_wp_i18n_namespaceObject.__)('Close block inserter'),
+ onClick: () => onClose(),
+ size: "small"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tabs_Tabs.TabList, {
+ className: "block-editor-inserter__tablist",
+ children: tabs.map(tab => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tabs_Tabs.Tab, {
+ tabId: tab.name,
+ className: "block-editor-inserter__tab",
+ children: tab.title
+ }, tab.name))
+ })]
+ }), tabs.map(tab => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tabs_Tabs.TabPanel, {
+ tabId: tab.name,
+ focusable: false,
+ className: "block-editor-inserter__tabpanel",
+ children: children
+ }, tab.name))]
+ })
+ });
+}
+/* harmony default export */ const tabs = ((0,external_wp_element_namespaceObject.forwardRef)(InserterTabs));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/menu.js
-
/**
* External dependencies
*/
@@ -43867,6 +47571,9 @@ function InserterTabs({
+
+
+const NOOP = () => {};
function InserterMenu({
rootClientId,
clientId,
@@ -43876,14 +47583,19 @@ function InserterMenu({
showInserterHelpPanel,
showMostUsedBlocks,
__experimentalFilterValue = '',
- shouldFocusBlock = true
+ shouldFocusBlock = true,
+ onPatternCategorySelection,
+ onClose,
+ __experimentalInitialTab,
+ __experimentalInitialCategory
}, ref) {
+ const isZoomOutMode = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).__unstableGetEditorMode() === 'zoom-out', []);
const [filterValue, setFilterValue, delayedFilterValue] = (0,external_wp_compose_namespaceObject.useDebouncedInput)(__experimentalFilterValue);
const [hoveredItem, setHoveredItem] = (0,external_wp_element_namespaceObject.useState)(null);
- const [selectedPatternCategory, setSelectedPatternCategory] = (0,external_wp_element_namespaceObject.useState)(null);
+ const [selectedPatternCategory, setSelectedPatternCategory] = (0,external_wp_element_namespaceObject.useState)(__experimentalInitialCategory);
const [patternFilter, setPatternFilter] = (0,external_wp_element_namespaceObject.useState)('all');
const [selectedMediaCategory, setSelectedMediaCategory] = (0,external_wp_element_namespaceObject.useState)(null);
- const [selectedTab, setSelectedTab] = (0,external_wp_element_namespaceObject.useState)(null);
+ const [selectedTab, setSelectedTab] = (0,external_wp_element_namespaceObject.useState)(__experimentalInitialTab);
const [destinationRootClientId, onInsertBlocks, onToggleInsertionPoint] = use_insertion_point({
rootClientId,
clientId,
@@ -43891,22 +47603,19 @@ function InserterMenu({
insertionIndex: __experimentalInsertionIndex,
shouldFocusBlock
});
- const {
- showPatterns
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- hasAllowedPatterns
- } = unlock(select(store));
- return {
- showPatterns: hasAllowedPatterns(destinationRootClientId)
- };
- }, [destinationRootClientId]);
- const mediaCategories = useMediaCategories(destinationRootClientId);
- const showMedia = mediaCategories.length > 0;
- const onInsert = (0,external_wp_element_namespaceObject.useCallback)((blocks, meta, shouldForceFocusBlock) => {
- onInsertBlocks(blocks, meta, shouldForceFocusBlock);
+ const blockTypesTabRef = (0,external_wp_element_namespaceObject.useRef)();
+ const onInsert = (0,external_wp_element_namespaceObject.useCallback)((blocks, meta, shouldForceFocusBlock, _rootClientId) => {
+ onInsertBlocks(blocks, meta, shouldForceFocusBlock, _rootClientId);
onSelect();
- }, [onInsertBlocks, onSelect]);
+
+ // Check for focus loss due to filtering blocks by selected block type
+ window.requestAnimationFrame(() => {
+ if (!shouldFocusBlock && !blockTypesTabRef?.current.contains(ref.current.ownerDocument.activeElement)) {
+ // There has been a focus loss, so focus the first button in the block types tab
+ blockTypesTabRef?.current.querySelector('button').focus();
+ }
+ });
+ }, [onInsertBlocks, onSelect, shouldFocusBlock]);
const onInsertPattern = (0,external_wp_element_namespaceObject.useCallback)((blocks, patternName) => {
onInsertBlocks(blocks, {
patternName
@@ -43914,7 +47623,7 @@ function InserterMenu({
onSelect();
}, [onInsertBlocks, onSelect]);
const onHover = (0,external_wp_element_namespaceObject.useCallback)(item => {
- onToggleInsertionPoint(!!item);
+ onToggleInsertionPoint(item);
setHoveredItem(item);
}, [onToggleInsertionPoint, setHoveredItem]);
const onHoverPattern = (0,external_wp_element_namespaceObject.useCallback)(item => {
@@ -43923,45 +47632,91 @@ function InserterMenu({
const onClickPatternCategory = (0,external_wp_element_namespaceObject.useCallback)((patternCategory, filter) => {
setSelectedPatternCategory(patternCategory);
setPatternFilter(filter);
- }, [setSelectedPatternCategory]);
- const blocksTab = (0,external_wp_element_namespaceObject.useMemo)(() => (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__block-list"
- }, (0,external_React_.createElement)(block_types_tab, {
- rootClientId: destinationRootClientId,
- onInsert: onInsert,
- onHover: onHover,
- showMostUsedBlocks: showMostUsedBlocks
- })), showInserterHelpPanel && (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__tips"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "h2"
- }, (0,external_wp_i18n_namespaceObject.__)('A tip for using the block editor')), (0,external_React_.createElement)(tips, null))), [destinationRootClientId, onInsert, onHover, showMostUsedBlocks, showInserterHelpPanel]);
- const patternsTab = (0,external_wp_element_namespaceObject.useMemo)(() => (0,external_React_.createElement)(block_patterns_tab, {
- rootClientId: destinationRootClientId,
- onInsert: onInsertPattern,
- onSelectCategory: onClickPatternCategory,
- selectedCategory: selectedPatternCategory
- }), [destinationRootClientId, onInsertPattern, onClickPatternCategory, selectedPatternCategory]);
- const mediaTab = (0,external_wp_element_namespaceObject.useMemo)(() => (0,external_React_.createElement)(media_tab, {
- rootClientId: destinationRootClientId,
- selectedCategory: selectedMediaCategory,
- onSelectCategory: setSelectedMediaCategory,
- onInsert: onInsert
- }), [destinationRootClientId, onInsert, selectedMediaCategory, setSelectedMediaCategory]);
- const inserterTabsContents = (0,external_wp_element_namespaceObject.useMemo)(() => ({
- blocks: blocksTab,
- patterns: patternsTab,
- media: mediaTab
- }), [blocksTab, mediaTab, patternsTab]);
- const searchRef = (0,external_wp_element_namespaceObject.useRef)();
- (0,external_wp_element_namespaceObject.useImperativeHandle)(ref, () => ({
- focusSearch: () => {
- searchRef.current.focus();
+ onPatternCategorySelection?.();
+ }, [setSelectedPatternCategory, onPatternCategorySelection]);
+ const showPatternPanel = selectedTab === 'patterns' && !delayedFilterValue && !!selectedPatternCategory;
+ const showMediaPanel = selectedTab === 'media' && !!selectedMediaCategory;
+ const inserterSearch = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ if (selectedTab === 'media') {
+ return null;
}
- }));
- const showPatternPanel = selectedTab === 'patterns' && !delayedFilterValue && selectedPatternCategory;
- const showAsTabs = !delayedFilterValue && (showPatterns || showMedia);
- const showMediaPanel = selectedTab === 'media' && !delayedFilterValue && selectedMediaCategory;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SearchControl, {
+ __nextHasNoMarginBottom: true,
+ className: "block-editor-inserter__search",
+ onChange: value => {
+ if (hoveredItem) {
+ setHoveredItem(null);
+ }
+ setFilterValue(value);
+ },
+ value: filterValue,
+ label: (0,external_wp_i18n_namespaceObject.__)('Search for blocks and patterns'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Search')
+ }), !!delayedFilterValue && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(search_results, {
+ filterValue: delayedFilterValue,
+ onSelect: onSelect,
+ onHover: onHover,
+ onHoverPattern: onHoverPattern,
+ rootClientId: rootClientId,
+ clientId: clientId,
+ isAppender: isAppender,
+ __experimentalInsertionIndex: __experimentalInsertionIndex,
+ showBlockDirectory: true,
+ shouldFocusBlock: shouldFocusBlock,
+ prioritizePatterns: selectedTab === 'patterns'
+ })]
+ });
+ }, [selectedTab, hoveredItem, setHoveredItem, setFilterValue, filterValue, delayedFilterValue, onSelect, onHover, onHoverPattern, shouldFocusBlock, clientId, rootClientId, __experimentalInsertionIndex, isAppender]);
+ const blocksTab = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-inserter__block-list",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_types_tab, {
+ ref: blockTypesTabRef,
+ rootClientId: destinationRootClientId,
+ onInsert: onInsert,
+ onHover: onHover,
+ showMostUsedBlocks: showMostUsedBlocks
+ })
+ }), showInserterHelpPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-inserter__tips",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ as: "h2",
+ children: (0,external_wp_i18n_namespaceObject.__)('A tip for using the block editor')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tips, {})]
+ })]
+ });
+ }, [destinationRootClientId, onInsert, onHover, showMostUsedBlocks, showInserterHelpPanel]);
+ const patternsTab = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_patterns_tab, {
+ rootClientId: destinationRootClientId,
+ onInsert: onInsertPattern,
+ onSelectCategory: onClickPatternCategory,
+ selectedCategory: selectedPatternCategory,
+ children: showPatternPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternCategoryPreviewPanel, {
+ rootClientId: destinationRootClientId,
+ onInsert: onInsertPattern,
+ onHover: onHoverPattern,
+ category: selectedPatternCategory,
+ patternFilter: patternFilter,
+ showTitlesAsTooltip: true
+ })
+ });
+ }, [destinationRootClientId, onHoverPattern, onInsertPattern, onClickPatternCategory, patternFilter, selectedPatternCategory, showPatternPanel]);
+ const mediaTab = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(media_tab, {
+ rootClientId: destinationRootClientId,
+ selectedCategory: selectedMediaCategory,
+ onSelectCategory: setSelectedMediaCategory,
+ onInsert: onInsert,
+ children: showMediaPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MediaCategoryPanel, {
+ rootClientId: destinationRootClientId,
+ onInsert: onInsert,
+ category: selectedMediaCategory
+ })
+ });
+ }, [destinationRootClientId, onInsert, selectedMediaCategory, setSelectedMediaCategory, showMediaPanel]);
const handleSetSelectedTab = value => {
// If no longer on patterns tab remove the category setting.
if (value !== 'patterns') {
@@ -43969,68 +47724,54 @@ function InserterMenu({
}
setSelectedTab(value);
};
- return (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__menu"
- }, (0,external_React_.createElement)("div", {
- className: classnames_default()('block-editor-inserter__main-area', {
- 'show-as-tabs': showAsTabs
- })
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.SearchControl, {
- __nextHasNoMarginBottom: true,
- className: "block-editor-inserter__search",
- onChange: value => {
- if (hoveredItem) setHoveredItem(null);
- setFilterValue(value);
- },
- value: filterValue,
- label: (0,external_wp_i18n_namespaceObject.__)('Search for blocks and patterns'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Search'),
- ref: searchRef
- }), !!delayedFilterValue && (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__no-tab-container"
- }, (0,external_React_.createElement)(search_results, {
- filterValue: delayedFilterValue,
- onSelect: onSelect,
- onHover: onHover,
- onHoverPattern: onHoverPattern,
- rootClientId: rootClientId,
- clientId: clientId,
- isAppender: isAppender,
- __experimentalInsertionIndex: __experimentalInsertionIndex,
- showBlockDirectory: true,
- shouldFocusBlock: shouldFocusBlock
- })), showAsTabs && (0,external_React_.createElement)(tabs, {
- showPatterns: showPatterns,
- showMedia: showMedia,
- onSelect: handleSetSelectedTab,
- tabsContents: inserterTabsContents
- }), !delayedFilterValue && !showAsTabs && (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__no-tab-container"
- }, blocksTab)), showMediaPanel && (0,external_React_.createElement)(MediaCategoryDialog, {
- rootClientId: destinationRootClientId,
- onInsert: onInsert,
- category: selectedMediaCategory
- }), showInserterHelpPanel && hoveredItem && (0,external_React_.createElement)(external_wp_components_namespaceObject.Popover, {
- className: "block-editor-inserter__preview-container__popover",
- placement: "right-start",
- offset: 16,
- focusOnMount: false,
- animate: false
- }, (0,external_React_.createElement)(preview_panel, {
- item: hoveredItem
- })), showPatternPanel && (0,external_React_.createElement)(PatternCategoryPreviewPanel, {
- rootClientId: destinationRootClientId,
- onInsert: onInsertPattern,
- onHover: onHoverPattern,
- category: selectedPatternCategory,
- patternFilter: patternFilter,
- showTitlesAsTooltip: true
- }));
+
+ // Focus first active tab, if any
+ const tabsRef = (0,external_wp_element_namespaceObject.useRef)();
+ (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
+ if (tabsRef.current) {
+ window.requestAnimationFrame(() => {
+ tabsRef.current.querySelector('[role="tab"][aria-selected="true"]')?.focus();
+ });
+ }
+ }, []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: dist_clsx('block-editor-inserter__menu', {
+ 'show-panel': showPatternPanel || showMediaPanel,
+ 'is-zoom-out': isZoomOutMode
+ }),
+ ref: ref,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-inserter__main-area",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(tabs, {
+ ref: tabsRef,
+ onSelect: handleSetSelectedTab,
+ onClose: onClose,
+ selectedTab: selectedTab,
+ children: [inserterSearch, selectedTab === 'blocks' && !delayedFilterValue && blocksTab, selectedTab === 'patterns' && !delayedFilterValue && patternsTab, selectedTab === 'media' && mediaTab]
+ })
+ }), showInserterHelpPanel && hoveredItem && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover, {
+ className: "block-editor-inserter__preview-container__popover",
+ placement: "right-start",
+ offset: 16,
+ focusOnMount: false,
+ animate: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(preview_panel, {
+ item: hoveredItem
+ })
+ })]
+ });
+}
+const PrivateInserterMenu = (0,external_wp_element_namespaceObject.forwardRef)(InserterMenu);
+function PublicInserterMenu(props, ref) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivateInserterMenu, {
+ ...props,
+ onPatternCategorySelection: NOOP,
+ ref: ref
+ });
}
-/* harmony default export */ const menu = ((0,external_wp_element_namespaceObject.forwardRef)(InserterMenu));
+/* harmony default export */ const menu = ((0,external_wp_element_namespaceObject.forwardRef)(PublicInserterMenu));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/quick-inserter.js
-
/**
* External dependencies
*/
@@ -44052,6 +47793,8 @@ function InserterMenu({
+
+
const SEARCH_THRESHOLD = 6;
const quick_inserter_SHOWN_BLOCK_TYPES = 6;
const SHOWN_BLOCK_PATTERNS = 2;
@@ -44073,7 +47816,7 @@ function QuickInserter({
isAppender,
selectBlockOnInsert
});
- const [blockTypes] = use_block_types_state(destinationRootClientId, onInsertBlocks);
+ const [blockTypes] = use_block_types_state(destinationRootClientId, onInsertBlocks, true);
const [patterns] = use_patterns_state(onInsertBlocks, destinationRootClientId);
const {
setInserterIsOpened,
@@ -44113,42 +47856,45 @@ function QuickInserter({
if (showPatterns) {
maxBlockPatterns = prioritizePatterns ? SHOWN_BLOCK_PATTERNS_WITH_PRIORITIZATION : SHOWN_BLOCK_PATTERNS;
}
- return (0,external_React_.createElement)("div", {
- className: classnames_default()('block-editor-inserter__quick-inserter', {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: dist_clsx('block-editor-inserter__quick-inserter', {
'has-search': showSearch,
'has-expand': setInserterIsOpened
- })
- }, showSearch && (0,external_React_.createElement)(external_wp_components_namespaceObject.SearchControl, {
- __nextHasNoMarginBottom: true,
- className: "block-editor-inserter__search",
- value: filterValue,
- onChange: value => {
- setFilterValue(value);
- },
- label: (0,external_wp_i18n_namespaceObject.__)('Search for blocks and patterns'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Search')
- }), (0,external_React_.createElement)("div", {
- className: "block-editor-inserter__quick-inserter-results"
- }, (0,external_React_.createElement)(search_results, {
- filterValue: filterValue,
- onSelect: onSelect,
- rootClientId: rootClientId,
- clientId: clientId,
- isAppender: isAppender,
- maxBlockPatterns: maxBlockPatterns,
- maxBlockTypes: quick_inserter_SHOWN_BLOCK_TYPES,
- isDraggable: false,
- prioritizePatterns: prioritizePatterns,
- selectBlockOnInsert: selectBlockOnInsert
- })), setInserterIsOpened && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "block-editor-inserter__quick-inserter-expand",
- onClick: onBrowseAll,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Browse all. This will open the main inserter panel in the editor toolbar.')
- }, (0,external_wp_i18n_namespaceObject.__)('Browse all')));
+ }),
+ children: [showSearch && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SearchControl, {
+ __nextHasNoMarginBottom: true,
+ className: "block-editor-inserter__search",
+ value: filterValue,
+ onChange: value => {
+ setFilterValue(value);
+ },
+ label: (0,external_wp_i18n_namespaceObject.__)('Search for blocks and patterns'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Search')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-inserter__quick-inserter-results",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(search_results, {
+ filterValue: filterValue,
+ onSelect: onSelect,
+ rootClientId: rootClientId,
+ clientId: clientId,
+ isAppender: isAppender,
+ maxBlockPatterns: maxBlockPatterns,
+ maxBlockTypes: quick_inserter_SHOWN_BLOCK_TYPES,
+ isDraggable: false,
+ prioritizePatterns: prioritizePatterns,
+ selectBlockOnInsert: selectBlockOnInsert,
+ isQuick: true
+ })
+ }), setInserterIsOpened && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "block-editor-inserter__quick-inserter-expand",
+ onClick: onBrowseAll,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Browse all. This will open the main inserter panel in the editor toolbar.'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Browse all')
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/index.js
-
/**
* External dependencies
*/
@@ -44172,6 +47918,7 @@ function QuickInserter({
+
const defaultRenderToggle = ({
onToggle,
disabled,
@@ -44207,7 +47954,7 @@ const defaultRenderToggle = ({
onClick(event);
}
}
- return (0,external_React_.createElement)(Wrapper, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Wrapper, {
icon: library_plus,
label: label,
tooltipPosition: "bottom",
@@ -44298,7 +48045,7 @@ class PrivateInserter extends external_wp_element_namespaceObject.Component {
selectBlockOnInsert
} = this.props;
if (isQuick) {
- return (0,external_React_.createElement)(QuickInserter, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(QuickInserter, {
onSelect: blocks => {
const firstBlock = Array.isArray(blocks) && blocks?.length ? blocks[0] : blocks;
if (onSelectOrClose && typeof onSelectOrClose === 'function') {
@@ -44313,7 +48060,7 @@ class PrivateInserter extends external_wp_element_namespaceObject.Component {
selectBlockOnInsert: selectBlockOnInsert
});
}
- return (0,external_React_.createElement)(menu, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(menu, {
onSelect: () => {
onClose();
},
@@ -44337,9 +48084,9 @@ class PrivateInserter extends external_wp_element_namespaceObject.Component {
onToggle: insertOnlyAllowedBlock
});
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Dropdown, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
className: "block-editor-inserter",
- contentClassName: classnames_default()('block-editor-inserter__popover', {
+ contentClassName: dist_clsx('block-editor-inserter__popover', {
'is-quick': isQuick
}),
popoverProps: {
@@ -44506,7 +48253,7 @@ const ComposedPrivateInserter = (0,external_wp_compose_namespaceObject.compose)(
clientId
}) => hasItems || !isAppender && !rootClientId && !clientId)])(PrivateInserter);
const Inserter = (0,external_wp_element_namespaceObject.forwardRef)((props, ref) => {
- return (0,external_React_.createElement)(ComposedPrivateInserter, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ComposedPrivateInserter, {
ref: ref,
...props
});
@@ -44514,7 +48261,6 @@ const Inserter = (0,external_wp_element_namespaceObject.forwardRef)((props, ref)
/* harmony default export */ const inserter = (Inserter);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/default-block-appender/index.js
-
/**
* External dependencies
*/
@@ -44538,6 +48284,8 @@ const Inserter = (0,external_wp_element_namespaceObject.forwardRef)((props, ref)
* Zero width non-breaking space, used as padding for the paragraph when it is
* empty.
*/
+
+
const ZWNBSP = '\ufeff';
function DefaultBlockAppender({
rootClientId
@@ -44574,42 +48322,43 @@ function DefaultBlockAppender({
insertDefaultBlock(undefined, rootClientId);
startTyping();
};
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
"data-root-client-id": rootClientId || '',
- className: classnames_default()('block-editor-default-block-appender', {
+ className: dist_clsx('block-editor-default-block-appender', {
'has-visible-prompt': showPrompt
- })
- }, (0,external_React_.createElement)("p", {
- tabIndex: "0"
- // We want this element to be styled as a paragraph by themes.
- // eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role
- ,
- role: "button",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Add default block')
- // A wrapping container for this one already has the wp-block className.
- ,
- className: "block-editor-default-block-appender__content",
- onKeyDown: event => {
- if (external_wp_keycodes_namespaceObject.ENTER === event.keyCode || external_wp_keycodes_namespaceObject.SPACE === event.keyCode) {
- onAppend();
- }
- },
- onClick: () => onAppend(),
- onFocus: () => {
- if (showPrompt) {
- onAppend();
- }
- }
- }, showPrompt ? value : ZWNBSP), (0,external_React_.createElement)(inserter, {
- rootClientId: rootClientId,
- position: "bottom right",
- isAppender: true,
- __experimentalIsQuick: true
- }));
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ tabIndex: "0"
+ // We want this element to be styled as a paragraph by themes.
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role
+ ,
+ role: "button",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Add default block')
+ // A wrapping container for this one already has the wp-block className.
+ ,
+ className: "block-editor-default-block-appender__content",
+ onKeyDown: event => {
+ if (external_wp_keycodes_namespaceObject.ENTER === event.keyCode || external_wp_keycodes_namespaceObject.SPACE === event.keyCode) {
+ onAppend();
+ }
+ },
+ onClick: () => onAppend(),
+ onFocus: () => {
+ if (showPrompt) {
+ onAppend();
+ }
+ },
+ children: showPrompt ? value : ZWNBSP
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter, {
+ rootClientId: rootClientId,
+ position: "bottom right",
+ isAppender: true,
+ __experimentalIsQuick: true
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/button-block-appender/index.js
-
/**
* External dependencies
*/
@@ -44628,13 +48377,15 @@ function DefaultBlockAppender({
* Internal dependencies
*/
+
+
function ButtonBlockAppender({
rootClientId,
className,
onFocus,
tabIndex
}, ref) {
- return (0,external_React_.createElement)(inserter, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter, {
position: "bottom center",
rootClientId: rootClientId,
__experimentalIsQuick: true,
@@ -44654,25 +48405,31 @@ function ButtonBlockAppender({
label = (0,external_wp_i18n_namespaceObject._x)('Add block', 'Generic label for block inserter button');
}
const isToggleButton = !hasSingleBlockType;
- let inserterButton = (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+ let inserterButton = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Button, {
ref: ref,
onFocus: onFocus,
tabIndex: tabIndex,
- className: classnames_default()(className, 'block-editor-button-block-appender'),
+ className: dist_clsx(className, 'block-editor-button-block-appender'),
onClick: onToggle,
"aria-haspopup": isToggleButton ? 'true' : undefined,
- "aria-expanded": isToggleButton ? isOpen : undefined,
+ "aria-expanded": isToggleButton ? isOpen : undefined
+ // Disable reason: There shouldn't be a case where this button is disabled but not visually hidden.
+ // eslint-disable-next-line no-restricted-syntax
+ ,
disabled: disabled,
- label: label
- }, !hasSingleBlockType && (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "span"
- }, label), (0,external_React_.createElement)(build_module_icon, {
- icon: library_plus
- }));
+ label: label,
+ children: [!hasSingleBlockType && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ as: "span",
+ children: label
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: library_plus
+ })]
+ });
if (isToggleButton || hasSingleBlockType) {
- inserterButton = (0,external_React_.createElement)(external_wp_components_namespaceObject.Tooltip, {
- text: label
- }, inserterButton);
+ inserterButton = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Tooltip, {
+ text: label,
+ children: inserterButton
+ });
}
return inserterButton;
},
@@ -44699,7 +48456,6 @@ const ButtonBlockerAppender = (0,external_wp_element_namespaceObject.forwardRef)
/* harmony default export */ const button_block_appender = ((0,external_wp_element_namespaceObject.forwardRef)(ButtonBlockAppender));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list-appender/index.js
-
/**
* External dependencies
*/
@@ -44717,6 +48473,7 @@ const ButtonBlockerAppender = (0,external_wp_element_namespaceObject.forwardRef)
+
function DefaultAppender({
rootClientId
}) {
@@ -44724,13 +48481,13 @@ function DefaultAppender({
if (canInsertDefaultBlock) {
// Render the default block appender if the context supports use
// of the default appender.
- return (0,external_React_.createElement)(DefaultBlockAppender, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DefaultBlockAppender, {
rootClientId: rootClientId
});
}
// Fallback in case the default block can't be inserted.
- return (0,external_React_.createElement)(button_block_appender, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(button_block_appender, {
rootClientId: rootClientId,
className: "block-list-appender__toggle"
});
@@ -44753,7 +48510,7 @@ function BlockListAppender({
// the DnD utility hooks.
return isBlockInsertionPointVisible() && rootClientId === insertionPoint?.rootClientId && getBlockCount(rootClientId) === 0;
}, [rootClientId]);
- return (0,external_React_.createElement)(TagName
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(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
@@ -44764,7 +48521,7 @@ function BlockListAppender({
// See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus
, {
tabIndex: -1,
- className: classnames_default()('block-list-appender wp-block', className, {
+ className: dist_clsx('block-list-appender wp-block', className, {
'is-drag-over': isDragOver
})
// Needed in case the whole editor is content editable (for multi
@@ -44781,14 +48538,14 @@ function BlockListAppender({
// the correct margin is applied, especially for classic themes which
// have commonly targeted that attribute for margins.
,
- "data-block": true
- }, CustomAppender ? (0,external_React_.createElement)(CustomAppender, null) : (0,external_React_.createElement)(DefaultAppender, {
- rootClientId: rootClientId
- }));
+ "data-block": true,
+ children: CustomAppender ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomAppender, {}) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DefaultAppender, {
+ rootClientId: rootClientId
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-popover/inbetween.js
-
/**
* External dependencies
*/
@@ -44808,6 +48565,7 @@ function BlockListAppender({
+
const inbetween_MAX_POPOVER_RECOMPUTE_COUNTER = Number.MAX_SAFE_INTEGER;
const InsertionPointOpenRef = (0,external_wp_element_namespaceObject.createContext)();
function BlockPopoverInbetween({
@@ -44953,7 +48711,7 @@ function BlockPopoverInbetween({
// Firefox and Safari, it is not reliable.
//
// See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Popover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover, {
ref: popoverScrollRef,
animate: false,
anchor: popoverAnchor,
@@ -44966,22 +48724,22 @@ function BlockPopoverInbetween({
// Forces a remount of the popover when its position changes
// This makes sure the popover doesn't animate from its previous position.
,
- key: nextClientId + '--' + rootClientId,
...props,
- className: classnames_default()('block-editor-block-popover', 'block-editor-block-popover__inbetween', props.className),
+ className: dist_clsx('block-editor-block-popover', 'block-editor-block-popover__inbetween', props.className),
resize: false,
flip: false,
placement: "overlay",
- variant: "unstyled"
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-block-popover__inbetween-container"
- }, children));
+ variant: "unstyled",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-popover__inbetween-container",
+ children: children
+ })
+ }, nextClientId + '--' + rootClientId);
/* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
}
/* harmony default export */ const inbetween = (BlockPopoverInbetween);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-popover/drop-zone.js
-
/**
* WordPress dependencies
*/
@@ -44994,6 +48752,7 @@ function BlockPopoverInbetween({
*/
+
const animateVariants = {
hide: {
opacity: 0,
@@ -45029,24 +48788,23 @@ function BlockDropZonePopover({
};
}, []);
const reducedMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
- return (0,external_React_.createElement)(block_popover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(cover, {
clientId: clientId,
- __unstableCoverTarget: true,
__unstablePopoverSlot: __unstablePopoverSlot,
__unstableContentRef: __unstableContentRef,
- className: "block-editor-block-popover__drop-zone"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- "data-testid": "block-popover-drop-zone",
- initial: reducedMotion ? animateVariants.show : animateVariants.hide,
- animate: animateVariants.show,
- exit: reducedMotion ? animateVariants.show : animateVariants.exit,
- className: "block-editor-block-popover__drop-zone-foreground"
- }));
+ className: "block-editor-block-popover__drop-zone",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ "data-testid": "block-popover-drop-zone",
+ initial: reducedMotion ? animateVariants.show : animateVariants.hide,
+ animate: animateVariants.show,
+ exit: reducedMotion ? animateVariants.show : animateVariants.exit,
+ className: "block-editor-block-popover__drop-zone-foreground"
+ })
+ });
}
/* harmony default export */ const drop_zone = (BlockDropZonePopover);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-tools/insertion-point.js
-
/**
* External dependencies
*/
@@ -45067,6 +48825,8 @@ function BlockDropZonePopover({
+
+
const insertion_point_InsertionPointOpenRef = (0,external_wp_element_namespaceObject.createContext)();
function InbetweenInsertionPointPopover({
__unstablePopoverSlot,
@@ -45187,48 +48947,51 @@ function InbetweenInsertionPointPopover({
return null;
}
const orientationClassname = orientation === 'horizontal' || operation === 'group' ? 'is-horizontal' : 'is-vertical';
- const className = classnames_default()('block-editor-block-list__insertion-point', orientationClassname);
- return (0,external_React_.createElement)(inbetween, {
+ const className = dist_clsx('block-editor-block-list__insertion-point', orientationClassname);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inbetween, {
previousClientId: previousClientId,
nextClientId: nextClientId,
__unstablePopoverSlot: __unstablePopoverSlot,
__unstableContentRef: __unstableContentRef,
operation: operation,
- nearestSide: nearestSide
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- layout: !disableMotion,
- initial: disableMotion ? 'rest' : 'start',
- animate: "rest",
- whileHover: "hover",
- whileTap: "pressed",
- exit: "start",
- ref: ref,
- tabIndex: -1,
- onClick: onClick,
- onFocus: onFocus,
- className: classnames_default()(className, {
- 'is-with-inserter': isInserterShown
- }),
- onHoverEnd: maybeHideInserterPoint
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- variants: lineVariants,
- className: "block-editor-block-list__insertion-point-indicator",
- "data-testid": "block-list-insertion-point-indicator"
- }), isInserterShown && (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- variants: inserterVariants,
- className: classnames_default()('block-editor-block-list__insertion-point-inserter')
- }, (0,external_React_.createElement)(inserter, {
- position: "bottom center",
- clientId: nextClientId,
- rootClientId: rootClientId,
- __experimentalIsQuick: true,
- onToggle: isOpen => {
- openRef.current = isOpen;
- },
- onSelectOrClose: () => {
- openRef.current = false;
- }
- }))));
+ nearestSide: nearestSide,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ layout: !disableMotion,
+ initial: disableMotion ? 'rest' : 'start',
+ animate: "rest",
+ whileHover: "hover",
+ whileTap: "pressed",
+ exit: "start",
+ ref: ref,
+ tabIndex: -1,
+ onClick: onClick,
+ onFocus: onFocus,
+ className: dist_clsx(className, {
+ 'is-with-inserter': isInserterShown
+ }),
+ onHoverEnd: maybeHideInserterPoint,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ variants: lineVariants,
+ className: "block-editor-block-list__insertion-point-indicator",
+ "data-testid": "block-list-insertion-point-indicator"
+ }), isInserterShown && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ variants: inserterVariants,
+ className: dist_clsx('block-editor-block-list__insertion-point-inserter'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter, {
+ position: "bottom center",
+ clientId: nextClientId,
+ rootClientId: rootClientId,
+ __experimentalIsQuick: true,
+ onToggle: isOpen => {
+ openRef.current = isOpen;
+ },
+ onSelectOrClose: () => {
+ openRef.current = false;
+ }
+ })
+ })]
+ })
+ });
}
function InsertionPoint(props) {
const {
@@ -45259,12 +49022,11 @@ function InsertionPoint(props) {
* Render a popover that overlays the block when the desired operation is to replace it.
* Otherwise, render a popover in between blocks for the indication of inserting between them.
*/
- return insertionPoint.operation === 'replace' ? (0,external_React_.createElement)(drop_zone
+ return insertionPoint.operation === 'replace' ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(drop_zone
// Force remount to trigger the animation.
, {
- key: `${insertionPoint.rootClientId}-${insertionPoint.index}`,
...props
- }) : (0,external_React_.createElement)(InbetweenInsertionPointPopover, {
+ }, `${insertionPoint.rootClientId}-${insertionPoint.index}`) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InbetweenInsertionPointPopover, {
operation: insertionPoint.operation,
nearestSide: insertionPoint.nearestSide,
...props
@@ -45307,7 +49069,9 @@ function useInBetweenInserter() {
return;
}
function onMouseMove(event) {
- if (openRef.current) {
+ // openRef is the reference to the insertion point between blocks.
+ // If the reference is not set or the insertion point is already open, return.
+ if (openRef === undefined || openRef.current) {
return;
}
@@ -45390,7 +49154,6 @@ function useInBetweenInserter() {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inner-blocks/with-client-id.js
-
/**
* WordPress dependencies
*/
@@ -45400,11 +49163,12 @@ function useInBetweenInserter() {
* Internal dependencies
*/
+
const withClientId = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => props => {
const {
clientId
} = useBlockEditContext();
- return (0,external_React_.createElement)(WrappedComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
...props,
clientId: clientId
});
@@ -45412,7 +49176,6 @@ const withClientId = (0,external_wp_compose_namespaceObject.createHigherOrderCom
/* harmony default export */ const with_client_id = (withClientId);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inner-blocks/button-block-appender.js
-
/**
* External dependencies
*/
@@ -45423,6 +49186,7 @@ const withClientId = (0,external_wp_compose_namespaceObject.createHigherOrderCom
*/
+
const button_block_appender_ButtonBlockAppender = ({
clientId,
showSeparator,
@@ -45430,8 +49194,8 @@ const button_block_appender_ButtonBlockAppender = ({
onAddBlock,
isToggle
}) => {
- return (0,external_React_.createElement)(button_block_appender, {
- className: classnames_default()({
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(button_block_appender, {
+ className: dist_clsx({
'block-list-appender__toggle': isToggle
}),
rootClientId: clientId,
@@ -45443,7 +49207,6 @@ const button_block_appender_ButtonBlockAppender = ({
/* harmony default export */ const inner_blocks_button_block_appender = (with_client_id(button_block_appender_ButtonBlockAppender));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inner-blocks/default-block-appender.js
-
/**
* WordPress dependencies
*/
@@ -45456,10 +49219,11 @@ const button_block_appender_ButtonBlockAppender = ({
+
const default_block_appender_DefaultBlockAppender = ({
clientId
}) => {
- return (0,external_React_.createElement)(DefaultBlockAppender, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DefaultBlockAppender, {
rootClientId: clientId
});
};
@@ -45514,11 +49278,11 @@ function useShallowMemo(value) {
* in inner blocks.
* @param {string[]} prioritizedInserterBlocks Block names and/or block variations to be prioritized in the inserter, in the format {blockName}/{variationName}.
* @param {?WPDirectInsertBlock} defaultBlock The default block to insert: [ blockName, { blockAttributes } ].
- * @param {?Function|boolean} directInsert If a default block should be inserted directly by the appender.
+ * @param {?boolean} directInsert If a default block should be inserted directly by the appender.
*
* @param {?WPDirectInsertBlock} __experimentalDefaultBlock A deprecated prop for the default block to insert: [ blockName, { blockAttributes } ]. Use `defaultBlock` instead.
*
- * @param {?Function|boolean} __experimentalDirectInsert A deprecated prop for whether a default block should be inserted directly by the appender. Use `directInsert` instead.
+ * @param {?boolean} __experimentalDirectInsert A deprecated prop for whether a default block should be inserted directly by the appender. Use `directInsert` instead.
*
* @param {string} [templateLock] The template lock specified for the inner
* blocks component. (e.g. "all")
@@ -45533,9 +49297,6 @@ function useNestedSettingsUpdate(clientId, parentLock, allowedBlocks, prioritize
// Instead of adding a useSelect mapping here, please add to the useSelect
// mapping in InnerBlocks! Every subscription impacts performance.
- const {
- updateBlockListSettings
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
// Implementors often pass a new array on every render,
@@ -45591,6 +49352,12 @@ function useNestedSettingsUpdate(clientId, parentLock, allowedBlocks, prioritize
if (directInsert !== undefined) {
newSettings.directInsert = directInsert;
}
+ if (newSettings.directInsert !== undefined && typeof newSettings.directInsert !== 'boolean') {
+ external_wp_deprecated_default()('Using `Function` as a `directInsert` argument', {
+ alternative: '`boolean` values',
+ since: '6.5'
+ });
+ }
// Batch updates to block list settings to avoid triggering cascading renders
// for each container block included in a tree and optimize initial render.
@@ -45599,20 +49366,20 @@ function useNestedSettingsUpdate(clientId, parentLock, allowedBlocks, prioritize
// we batch all the updatedBlockListSettings in a single "data" batch
// which results in a single re-render.
if (!pendingSettingsUpdates.get(registry)) {
- pendingSettingsUpdates.set(registry, []);
+ pendingSettingsUpdates.set(registry, {});
}
- pendingSettingsUpdates.get(registry).push([clientId, newSettings]);
+ pendingSettingsUpdates.get(registry)[clientId] = newSettings;
window.queueMicrotask(() => {
- if (pendingSettingsUpdates.get(registry)?.length) {
- registry.batch(() => {
- pendingSettingsUpdates.get(registry).forEach(args => {
- updateBlockListSettings(...args);
- });
- pendingSettingsUpdates.set(registry, []);
- });
+ const settings = pendingSettingsUpdates.get(registry);
+ if (Object.keys(settings).length) {
+ const {
+ updateBlockListSettings
+ } = registry.dispatch(store);
+ updateBlockListSettings(settings);
+ pendingSettingsUpdates.set(registry, {});
}
});
- }, [clientId, _allowedBlocks, _prioritizedInserterBlocks, _templateLock, defaultBlock, directInsert, __experimentalDefaultBlock, __experimentalDirectInsert, captureToolbars, orientation, updateBlockListSettings, layout, registry]);
+ }, [clientId, _allowedBlocks, _prioritizedInserterBlocks, _templateLock, defaultBlock, directInsert, __experimentalDefaultBlock, __experimentalDirectInsert, captureToolbars, orientation, layout, registry]);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inner-blocks/use-inner-block-template-sync.js
@@ -45931,7 +49698,9 @@ function useOnBlockDrop(targetRootClientId, targetBlockIndex, options = {}) {
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
const insertOrReplaceBlocks = (0,external_wp_element_namespaceObject.useCallback)((blocks, updateSelection = true, initialPosition = 0, clientIdsToReplace = []) => {
- if (!Array.isArray(blocks)) blocks = [blocks];
+ if (!Array.isArray(blocks)) {
+ blocks = [blocks];
+ }
const clientIds = getBlockOrder(targetRootClientId);
const clientId = clientIds[targetBlockIndex];
const blocksClientIds = blocks.map(block => block.clientId);
@@ -46423,7 +50192,6 @@ function useBlockDropZone({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inner-blocks/index.js
-
/**
* External dependencies
*/
@@ -46452,15 +50220,17 @@ function useBlockDropZone({
+
const inner_blocks_EMPTY_OBJECT = {};
function BlockContext({
children,
clientId
}) {
const context = useBlockContext(clientId);
- return (0,external_React_.createElement)(BlockContextProvider, {
- value: context
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockContextProvider, {
+ value: context,
+ children: children
+ });
}
const BlockListItemsMemo = (0,external_wp_element_namespaceObject.memo)(BlockListItems);
@@ -46514,7 +50284,7 @@ function UncontrolledInnerBlocks(props) {
// For controlled inner blocks, we don't want a change in blocks to
// re-render the blocks list.
- const items = (0,external_React_.createElement)(BlockListItemsMemo, {
+ const items = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockListItemsMemo, {
rootClientId: clientId,
renderAppender: renderAppender,
__experimentalAppenderTagName: __experimentalAppenderTagName,
@@ -46525,9 +50295,10 @@ function UncontrolledInnerBlocks(props) {
if (Object.keys(blockType.providesContext).length === 0) {
return items;
}
- return (0,external_React_.createElement)(BlockContext, {
- clientId: clientId
- }, items);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockContext, {
+ clientId: clientId,
+ children: items
+ });
}
/**
@@ -46541,7 +50312,7 @@ function UncontrolledInnerBlocks(props) {
*/
function ControlledInnerBlocks(props) {
useBlockSync(props);
- return (0,external_React_.createElement)(UncontrolledInnerBlocks, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(UncontrolledInnerBlocks, {
...props
});
}
@@ -46549,11 +50320,12 @@ const ForwardedInnerBlocks = (0,external_wp_element_namespaceObject.forwardRef)(
const innerBlocksProps = useInnerBlocksProps({
ref
}, props);
- return (0,external_React_.createElement)("div", {
- className: "block-editor-inner-blocks"
- }, (0,external_React_.createElement)("div", {
- ...innerBlocksProps
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-inner-blocks",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...innerBlocksProps
+ })
+ });
});
/**
@@ -46583,9 +50355,6 @@ function useInnerBlocksProps(props = {}, options = {}) {
__unstableLayoutClassNames: layoutClassNames = ''
} = useBlockEditContext();
const selected = (0,external_wp_data_namespaceObject.useSelect)(select => {
- if (!clientId) {
- return {};
- }
const {
getBlockName,
isBlockSelected,
@@ -46595,8 +50364,24 @@ function useInnerBlocksProps(props = {}, options = {}) {
getBlockRootClientId,
getBlockEditingMode,
getBlockSettings,
- isDragging
+ isDragging,
+ getSettings
} = unlock(select(store));
+ let _isDropZoneDisabled;
+ // In zoom out mode, we want to disable the drop zone for the sections.
+ // The inner blocks belonging to the section drop zone is
+ // already disabled by the blocks themselves being disabled.
+ if (__unstableGetEditorMode() === 'zoom-out') {
+ const {
+ sectionRootClientId
+ } = unlock(getSettings());
+ _isDropZoneDisabled = clientId !== sectionRootClientId;
+ }
+ if (!clientId) {
+ return {
+ isDropZoneDisabled: _isDropZoneDisabled
+ };
+ }
const {
hasBlockSupport,
getBlockType
@@ -46606,6 +50391,9 @@ function useInnerBlocksProps(props = {}, options = {}) {
const blockEditingMode = getBlockEditingMode(clientId);
const parentClientId = getBlockRootClientId(clientId);
const [defaultLayout] = getBlockSettings(clientId, 'layout');
+ if (_isDropZoneDisabled !== undefined) {
+ _isDropZoneDisabled = blockEditingMode === 'disabled';
+ }
return {
__experimentalCaptureToolbars: hasBlockSupport(blockName, '__experimentalExposeControlsToChildren', false),
hasOverlay: blockName !== 'core/template' && !isBlockSelected(clientId) && !hasSelectedInnerBlock(clientId, true) && enableClickThrough && !isDragging(),
@@ -46613,7 +50401,7 @@ function useInnerBlocksProps(props = {}, options = {}) {
blockType: getBlockType(blockName),
parentLock: getTemplateLock(parentClientId),
parentClientId,
- isDropZoneDisabled: blockEditingMode === 'disabled',
+ isDropZoneDisabled: _isDropZoneDisabled,
defaultLayout
};
}, [clientId]);
@@ -46630,10 +50418,9 @@ function useInnerBlocksProps(props = {}, options = {}) {
const blockDropZoneRef = useBlockDropZone({
dropZoneElement,
rootClientId: clientId,
- parentClientId,
- isDisabled: isDropZoneDisabled
+ parentClientId
});
- const ref = (0,external_wp_compose_namespaceObject.useMergeRefs)([props.ref, __unstableDisableDropZone ? null : blockDropZoneRef]);
+ const ref = (0,external_wp_compose_namespaceObject.useMergeRefs)([props.ref, __unstableDisableDropZone || isDropZoneDisabled ? null : blockDropZoneRef]);
const innerBlocksProps = {
__experimentalCaptureToolbars,
layout,
@@ -46647,13 +50434,13 @@ function useInnerBlocksProps(props = {}, options = {}) {
return {
...props,
ref,
- className: classnames_default()(props.className, 'block-editor-block-list__layout', __unstableDisableLayoutClassNames ? '' : layoutClassNames, {
+ className: dist_clsx(props.className, 'block-editor-block-list__layout', __unstableDisableLayoutClassNames ? '' : layoutClassNames, {
'has-overlay': hasOverlay
}),
- children: clientId ? (0,external_React_.createElement)(InnerBlocks, {
+ children: clientId ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InnerBlocks, {
...innerBlocksProps,
clientId: clientId
- }) : (0,external_React_.createElement)(BlockListItems, {
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockListItems, {
...options
})
};
@@ -46671,7 +50458,6 @@ ForwardedInnerBlocks.Content = () => useInnerBlocksProps.save().children;
/* harmony default export */ const inner_blocks = (ForwardedInnerBlocks);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/observe-typing/index.js
-
/**
* WordPress dependencies
*/
@@ -46690,6 +50476,7 @@ ForwardedInnerBlocks.Content = () => useInnerBlocksProps.save().children;
*
* @type {Set<number>}
*/
+
const KEY_DOWN_ELIGIBLE_KEY_CODES = new Set([external_wp_keycodes_namespaceObject.UP, external_wp_keycodes_namespaceObject.RIGHT, external_wp_keycodes_namespaceObject.DOWN, external_wp_keycodes_namespaceObject.LEFT, external_wp_keycodes_namespaceObject.ENTER, external_wp_keycodes_namespaceObject.BACKSPACE]);
/**
@@ -46763,16 +50550,13 @@ function useMouseMoveTypingReset() {
*/
function useTypingObserver() {
const {
- isTyping,
- hasInlineToolbar
+ isTyping
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
- isTyping: _isTyping,
- getSettings
+ isTyping: _isTyping
} = select(store);
return {
- isTyping: _isTyping(),
- hasInlineToolbar: getSettings().hasInlineToolbar
+ isTyping: _isTyping()
};
}, []);
const {
@@ -46842,9 +50626,7 @@ function useTypingObserver() {
}
node.addEventListener('focus', stopTypingOnNonTextField);
node.addEventListener('keydown', stopTypingOnEscapeKey);
- if (!hasInlineToolbar) {
- ownerDocument.addEventListener('selectionchange', stopTypingOnSelectionUncollapse);
- }
+ ownerDocument.addEventListener('selectionchange', stopTypingOnSelectionUncollapse);
return () => {
defaultView.clearTimeout(timerId);
node.removeEventListener('focus', stopTypingOnNonTextField);
@@ -46887,15 +50669,16 @@ function useTypingObserver() {
node.removeEventListener('keypress', startTypingInTextField);
node.removeEventListener('keydown', startTypingInTextField);
};
- }, [isTyping, hasInlineToolbar, startTyping, stopTyping]);
+ }, [isTyping, startTyping, stopTyping]);
return (0,external_wp_compose_namespaceObject.useMergeRefs)([ref1, ref2]);
}
function ObserveTyping({
children
}) {
- return (0,external_React_.createElement)("div", {
- ref: useTypingObserver()
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ref: useTypingObserver(),
+ children: children
+ });
}
/**
@@ -46904,7 +50687,6 @@ function ObserveTyping({
/* harmony default export */ const observe_typing = (ObserveTyping);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/index.js
-
/**
* External dependencies
*/
@@ -46930,6 +50712,8 @@ function ObserveTyping({
+
+
const block_list_IntersectionObserver = (0,external_wp_element_namespaceObject.createContext)();
const pendingBlockVisibilityUpdatesPerRegistry = new WeakMap();
function block_list_Root({
@@ -46940,20 +50724,24 @@ function block_list_Root({
const {
isOutlineMode,
isFocusMode,
- editorMode
+ editorMode,
+ temporarilyEditingAsBlocks
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getSettings,
- __unstableGetEditorMode
- } = select(store);
+ __unstableGetEditorMode,
+ getTemporarilyEditingAsBlocks,
+ isTyping
+ } = unlock(select(store));
const {
outlineMode,
focusMode
} = getSettings();
return {
- isOutlineMode: outlineMode,
+ isOutlineMode: outlineMode && !isTyping(),
isFocusMode: focusMode,
- editorMode: __unstableGetEditorMode()
+ editorMode: __unstableGetEditorMode(),
+ temporarilyEditingAsBlocks: getTemporarilyEditingAsBlocks()
};
}, []);
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
@@ -46989,17 +50777,20 @@ function block_list_Root({
}, []);
const innerBlocksProps = useInnerBlocksProps({
ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([useBlockSelectionClearer(), useInBetweenInserter(), useTypingObserver()]),
- className: classnames_default()('is-root-container', className, {
+ className: dist_clsx('is-root-container', className, {
'is-outline-mode': isOutlineMode,
'is-focus-mode': isFocusMode && isLargeViewport,
'is-navigate-mode': editorMode === 'navigation'
})
}, settings);
- return (0,external_React_.createElement)(block_list_IntersectionObserver.Provider, {
- value: intersectionObserver
- }, (0,external_React_.createElement)("div", {
- ...innerBlocksProps
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(block_list_IntersectionObserver.Provider, {
+ value: intersectionObserver,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...innerBlocksProps
+ }), !!temporarilyEditingAsBlocks && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StopEditingAsBlocksOnOutsideSelect, {
+ clientId: temporarilyEditingAsBlocks
+ })]
+ });
}
function StopEditingAsBlocksOnOutsideSelect({
clientId
@@ -47022,12 +50813,15 @@ function StopEditingAsBlocksOnOutsideSelect({
return null;
}
function BlockList(settings) {
- return (0,external_React_.createElement)(Provider, {
- value: DEFAULT_BLOCK_EDIT_CONTEXT
- }, (0,external_React_.createElement)(block_list_Root, {
- ...settings
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Provider, {
+ value: DEFAULT_BLOCK_EDIT_CONTEXT,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_list_Root, {
+ ...settings
+ })
+ });
}
+const block_list_EMPTY_ARRAY = [];
+const block_list_EMPTY_SET = new Set();
function Items({
placeholder,
rootClientId,
@@ -47043,55 +50837,61 @@ function Items({
order,
selectedBlocks,
visibleBlocks,
- temporarilyEditingAsBlocks,
shouldRenderAppender
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
+ getSettings,
getBlockOrder,
getSelectedBlockClientId,
getSelectedBlockClientIds,
__unstableGetVisibleBlocks,
- __unstableGetTemporarilyEditingAsBlocks,
getTemplateLock,
getBlockEditingMode,
__unstableGetEditorMode
} = select(store);
+ const _order = getBlockOrder(rootClientId);
+ if (getSettings().__unstableIsPreviewMode) {
+ return {
+ order: _order,
+ selectedBlocks: block_list_EMPTY_ARRAY,
+ visibleBlocks: block_list_EMPTY_SET
+ };
+ }
const selectedBlockClientId = getSelectedBlockClientId();
return {
- order: getBlockOrder(rootClientId),
+ order: _order,
selectedBlocks: getSelectedBlockClientIds(),
visibleBlocks: __unstableGetVisibleBlocks(),
- temporarilyEditingAsBlocks: __unstableGetTemporarilyEditingAsBlocks(),
- shouldRenderAppender: hasAppender && (hasCustomAppender ? !getTemplateLock(rootClientId) && getBlockEditingMode(rootClientId) !== 'disabled' && __unstableGetEditorMode() !== 'zoom-out' : rootClientId === selectedBlockClientId || !rootClientId && !selectedBlockClientId)
+ shouldRenderAppender: hasAppender && __unstableGetEditorMode() !== 'zoom-out' && (hasCustomAppender ? !getTemplateLock(rootClientId) && getBlockEditingMode(rootClientId) !== 'disabled' : rootClientId === selectedBlockClientId || !rootClientId && !selectedBlockClientId && !_order.length)
};
}, [rootClientId, hasAppender, hasCustomAppender]);
- return (0,external_React_.createElement)(LayoutProvider, {
- value: layout
- }, order.map(clientId => (0,external_React_.createElement)(external_wp_data_namespaceObject.AsyncModeProvider, {
- key: clientId,
- value:
- // Only provide data asynchronously if the block is
- // not visible and not selected.
- !visibleBlocks.has(clientId) && !selectedBlocks.includes(clientId)
- }, (0,external_React_.createElement)(block_list_block, {
- rootClientId: rootClientId,
- clientId: clientId
- }))), order.length < 1 && placeholder, !!temporarilyEditingAsBlocks && (0,external_React_.createElement)(StopEditingAsBlocksOnOutsideSelect, {
- clientId: temporarilyEditingAsBlocks
- }), shouldRenderAppender && (0,external_React_.createElement)(BlockListAppender, {
- tagName: __experimentalAppenderTagName,
- rootClientId: rootClientId,
- CustomAppender: CustomAppender
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(LayoutProvider, {
+ value: layout,
+ children: [order.map(clientId => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_data_namespaceObject.AsyncModeProvider, {
+ value:
+ // Only provide data asynchronously if the block is
+ // not visible and not selected.
+ !visibleBlocks.has(clientId) && !selectedBlocks.includes(clientId),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_list_block, {
+ rootClientId: rootClientId,
+ clientId: clientId
+ })
+ }, clientId)), order.length < 1 && placeholder, shouldRenderAppender && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockListAppender, {
+ tagName: __experimentalAppenderTagName,
+ rootClientId: rootClientId,
+ CustomAppender: CustomAppender
+ })]
+ });
}
function BlockListItems(props) {
// This component needs to always be synchronous as it's the one changing
// the async mode depending on the block selection.
- return (0,external_React_.createElement)(external_wp_data_namespaceObject.AsyncModeProvider, {
- value: false
- }, (0,external_React_.createElement)(Items, {
- ...props
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_data_namespaceObject.AsyncModeProvider, {
+ value: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Items, {
+ ...props
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-tools/use-block-toolbar-popover-props.js
@@ -47301,7 +51101,6 @@ function useSelectedBlockToolProps(clientId) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-tools/empty-block-inserter.js
-
/**
* External dependencies
*/
@@ -47314,6 +51113,7 @@ function useSelectedBlockToolProps(clientId) {
+
function EmptyBlockInserter({
clientId,
__unstableContentRef
@@ -47328,25 +51128,24 @@ function EmptyBlockInserter({
contentElement: __unstableContentRef?.current,
clientId
});
- return (0,external_React_.createElement)(block_popover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(cover, {
clientId: capturingClientId || clientId,
- __unstableCoverTarget: true,
bottomClientId: lastClientId,
- className: classnames_default()('block-editor-block-list__block-side-inserter-popover', {
+ className: dist_clsx('block-editor-block-list__block-side-inserter-popover', {
'is-insertion-point-visible': isInsertionPointVisible
}),
__unstableContentRef: __unstableContentRef,
- resize: false,
- shift: false,
- ...popoverProps
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-block-list__empty-block-inserter"
- }, (0,external_React_.createElement)(inserter, {
- position: "bottom right",
- rootClientId: rootClientId,
- clientId: clientId,
- __experimentalIsQuick: true
- })));
+ ...popoverProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-list__empty-block-inserter",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter, {
+ position: "bottom right",
+ rootClientId: rootClientId,
+ clientId: clientId,
+ __experimentalIsQuick: true
+ })
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-draggable/use-scroll-when-dragging.js
@@ -47432,7 +51231,6 @@ function useScrollWhenDragging() {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-draggable/index.js
-
/**
* WordPress dependencies
*/
@@ -47450,6 +51248,7 @@ function useScrollWhenDragging() {
+
const BlockDraggable = ({
appendToOwnerDocument,
children,
@@ -47484,7 +51283,7 @@ const BlockDraggable = ({
const variation = getActiveBlockVariation(blockName, getBlockAttributes(clientIds[0]));
return {
srcRootClientId: rootClientId,
- isDraggable: canMoveBlocks(clientIds, rootClientId),
+ isDraggable: canMoveBlocks(clientIds),
icon: variation?.icon || _getBlockType(blockName)?.icon,
visibleInserter: isBlockInsertionPointVisible(),
getBlockType: _getBlockType
@@ -47575,7 +51374,7 @@ const BlockDraggable = ({
srcClientIds: clientIds,
srcRootClientId
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Draggable, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Draggable, {
appendToOwnerDocument: appendToOwnerDocument,
cloneClassname: cloneClassname,
__experimentalTransferDataType: "wp-blocks",
@@ -47604,51 +51403,54 @@ const BlockDraggable = ({
__experimentalDragComponent:
// Check against `undefined` so that `null` can be used to disable
// the default drag component.
- dragComponent !== undefined ? dragComponent : (0,external_React_.createElement)(BlockDraggableChip, {
+ dragComponent !== undefined ? dragComponent : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockDraggableChip, {
count: clientIds.length,
icon: icon,
fadeWhenDisabled: true
}),
- elementId: elementId
- }, ({
- onDraggableStart,
- onDraggableEnd
- }) => {
- return children({
- draggable: true,
- onDragStart: onDraggableStart,
- onDragEnd: onDraggableEnd
- });
+ elementId: elementId,
+ children: ({
+ onDraggableStart,
+ onDraggableEnd
+ }) => {
+ return children({
+ draggable: true,
+ onDragStart: onDraggableStart,
+ onDragEnd: onDraggableEnd
+ });
+ }
});
};
/* harmony default export */ const block_draggable = (BlockDraggable);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-up.js
-
/**
* WordPress dependencies
*/
-const chevronUp = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronUp = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"
+ })
+});
/* harmony default export */ const chevron_up = (chevronUp);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-down.js
-
/**
* WordPress dependencies
*/
-const chevronDown = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronDown = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"
+ })
+});
/* harmony default export */ const chevron_down = (chevronDown);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/mover-description.js
@@ -47862,7 +51664,6 @@ function getMultiBlockMoverDescription(selectedCount, firstIndex, isFirst, isLas
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/button.js
-
/**
* External dependencies
*/
@@ -47884,6 +51685,9 @@ function getMultiBlockMoverDescription(selectedCount, firstIndex, isFirst, isLas
+
+
+
const getArrowIcon = (direction, orientation) => {
if (direction === 'up') {
if (orientation === 'horizontal') {
@@ -47922,6 +51726,9 @@ const BlockMoverButton = (0,external_wp_element_namespaceObject.forwardRef)(({
const normalizedClientIds = Array.isArray(clientIds) ? clientIds : [clientIds];
const blocksCount = normalizedClientIds.length;
const {
+ disabled
+ } = props;
+ const {
blockType,
isDisabled,
rootClientId,
@@ -47950,7 +51757,7 @@ const BlockMoverButton = (0,external_wp_element_namespaceObject.forwardRef)(({
} = getBlockListSettings(blockRootClientId) || {};
return {
blockType: block ? (0,external_wp_blocks_namespaceObject.getBlockType)(block.name) : null,
- isDisabled: direction === 'up' ? isFirstBlock : isLastBlock,
+ isDisabled: disabled || (direction === 'up' ? isFirstBlock : isLastBlock),
rootClientId: blockRootClientId,
firstIndex: firstBlockIndex,
isFirst: isFirstBlock,
@@ -47970,29 +51777,32 @@ const BlockMoverButton = (0,external_wp_element_namespaceObject.forwardRef)(({
}
};
const descriptionId = `block-editor-block-mover-button__description-${instanceId}`;
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- ref: ref,
- className: classnames_default()('block-editor-block-mover-button', `is-${direction}-button`),
- icon: getArrowIcon(direction, orientation),
- label: getMovementDirectionLabel(direction, orientation),
- "aria-describedby": descriptionId,
- ...props,
- onClick: isDisabled ? null : onClick,
- disabled: isDisabled,
- __experimentalIsFocusable: true
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- id: descriptionId
- }, getBlockMoverDescription(blocksCount, blockType && blockType.title, firstIndex, isFirst, isLast, direction === 'up' ? -1 : 1, orientation)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ ref: ref,
+ className: dist_clsx('block-editor-block-mover-button', `is-${direction}-button`),
+ icon: getArrowIcon(direction, orientation),
+ label: getMovementDirectionLabel(direction, orientation),
+ "aria-describedby": descriptionId,
+ ...props,
+ onClick: isDisabled ? null : onClick,
+ disabled: isDisabled,
+ __experimentalIsFocusable: true
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ id: descriptionId,
+ children: getBlockMoverDescription(blocksCount, blockType && blockType.title, firstIndex, isFirst, isLast, direction === 'up' ? -1 : 1, orientation)
+ })]
+ });
});
const BlockMoverUpButton = (0,external_wp_element_namespaceObject.forwardRef)((props, ref) => {
- return (0,external_React_.createElement)(BlockMoverButton, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockMoverButton, {
direction: "up",
ref: ref,
...props
});
});
const BlockMoverDownButton = (0,external_wp_element_namespaceObject.forwardRef)((props, ref) => {
- return (0,external_React_.createElement)(BlockMoverButton, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockMoverButton, {
direction: "down",
ref: ref,
...props
@@ -48000,7 +51810,6 @@ const BlockMoverDownButton = (0,external_wp_element_namespaceObject.forwardRef)(
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/index.js
-
/**
* External dependencies
*/
@@ -48021,9 +51830,13 @@ const BlockMoverDownButton = (0,external_wp_element_namespaceObject.forwardRef)(
+
+
function BlockMover({
clientIds,
- hideDragHandle
+ hideDragHandle,
+ isBlockMoverUpButtonDisabled,
+ isBlockMoverDownButtonDisabled
}) {
const {
canMove,
@@ -48046,7 +51859,7 @@ function BlockMover({
const lastIndex = getBlockIndex(normalizedClientIds[normalizedClientIds.length - 1]);
const blockOrder = getBlockOrder(_rootClientId);
return {
- canMove: canMoveBlocks(clientIds, _rootClientId),
+ canMove: canMoveBlocks(clientIds),
rootClientId: _rootClientId,
isFirst: firstIndex === 0,
isLast: lastIndex === blockOrder.length - 1,
@@ -48057,32 +51870,41 @@ function BlockMover({
return null;
}
const dragHandleLabel = (0,external_wp_i18n_namespaceObject.__)('Drag');
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarGroup, {
- className: classnames_default()('block-editor-block-mover', {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.ToolbarGroup, {
+ className: dist_clsx('block-editor-block-mover', {
'is-horizontal': orientation === 'horizontal'
- })
- }, !hideDragHandle && (0,external_React_.createElement)(block_draggable, {
- clientIds: clientIds,
- fadeWhenDisabled: true
- }, draggableProps => (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: drag_handle,
- className: "block-editor-block-mover__drag-handle",
- "aria-hidden": "true",
- label: dragHandleLabel
- // Should not be able to tab to drag handle as this
- // button can only be used with a pointer device.
- ,
- tabIndex: "-1",
- ...draggableProps
- })), (0,external_React_.createElement)("div", {
- className: "block-editor-block-mover__move-button-container"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarItem, null, itemProps => (0,external_React_.createElement)(BlockMoverUpButton, {
- clientIds: clientIds,
- ...itemProps
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarItem, null, itemProps => (0,external_React_.createElement)(BlockMoverDownButton, {
- clientIds: clientIds,
- ...itemProps
- }))));
+ }),
+ children: [!hideDragHandle && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_draggable, {
+ clientIds: clientIds,
+ fadeWhenDisabled: true,
+ children: draggableProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: drag_handle,
+ className: "block-editor-block-mover__drag-handle",
+ "aria-hidden": "true",
+ label: dragHandleLabel
+ // Should not be able to tab to drag handle as this
+ // button can only be used with a pointer device.
+ ,
+ tabIndex: "-1",
+ ...draggableProps
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-block-mover__move-button-container",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
+ children: itemProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockMoverUpButton, {
+ disabled: isBlockMoverUpButtonDisabled,
+ clientIds: clientIds,
+ ...itemProps
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
+ children: itemProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockMoverDownButton, {
+ disabled: isBlockMoverDownButtonDisabled,
+ clientIds: clientIds,
+ ...itemProps
+ })
+ })]
+ })]
+ });
}
/**
@@ -48251,7 +52073,6 @@ function useShowHoveredOrFocusedGestures({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-parent-selector/index.js
-
/**
* WordPress dependencies
*/
@@ -48275,6 +52096,7 @@ function useShowHoveredOrFocusedGestures({
*
* @return {Component} Parent block selector.
*/
+
function BlockParentSelector() {
const {
selectBlock
@@ -48314,41 +52136,41 @@ function BlockParentSelector() {
if (!isVisible) {
return null;
}
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: "block-editor-block-parent-selector",
- key: firstParentClientId,
ref: nodeRef,
- ...showHoveredOrFocusedGestures
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- className: "block-editor-block-parent-selector__button",
- onClick: () => selectBlock(firstParentClientId),
- label: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Name of the block's parent. */
- (0,external_wp_i18n_namespaceObject.__)('Select parent block: %s'), blockInformation?.title),
- showTooltip: true,
- icon: (0,external_React_.createElement)(block_icon, {
- icon: blockInformation?.icon
+ ...showHoveredOrFocusedGestures,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ className: "block-editor-block-parent-selector__button",
+ onClick: () => selectBlock(firstParentClientId),
+ label: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Name of the block's parent. */
+ (0,external_wp_i18n_namespaceObject.__)('Select parent block: %s'), blockInformation?.title),
+ showTooltip: true,
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: blockInformation?.icon
+ })
})
- }));
+ }, firstParentClientId);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/copy.js
-
/**
* WordPress dependencies
*/
-const copy_copy = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const copy_copy = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"
+ })
+});
/* harmony default export */ const library_copy = (copy_copy);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-switcher/preview-block-popover.js
-
/**
* WordPress dependencies
*/
@@ -48359,29 +52181,35 @@ const copy_copy = (0,external_React_.createElement)(external_wp_primitives_names
* Internal dependencies
*/
+
+
function PreviewBlockPopover({
blocks
}) {
- return (0,external_React_.createElement)("div", {
- className: "block-editor-block-switcher__popover__preview__parent"
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-block-switcher__popover__preview__container"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Popover, {
- className: "block-editor-block-switcher__preview__popover",
- placement: "bottom-start",
- focusOnMount: false
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-block-switcher__preview"
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-block-switcher__preview-title"
- }, (0,external_wp_i18n_namespaceObject.__)('Preview')), (0,external_React_.createElement)(block_preview, {
- viewportWidth: 500,
- blocks: blocks
- })))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-switcher__popover__preview__parent",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-switcher__popover__preview__container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover, {
+ className: "block-editor-block-switcher__preview__popover",
+ placement: "bottom-start",
+ focusOnMount: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-block-switcher__preview",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-switcher__preview-title",
+ children: (0,external_wp_i18n_namespaceObject.__)('Preview')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_preview, {
+ viewportWidth: 500,
+ blocks: blocks
+ })]
+ })
+ })
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-switcher/block-variation-transformations.js
-
/**
* WordPress dependencies
*/
@@ -48396,6 +52224,9 @@ function PreviewBlockPopover({
+
+
+
const block_variation_transformations_EMPTY_OBJECT = {};
function useBlockVariationTransforms({
clientIds,
@@ -48406,7 +52237,6 @@ function useBlockVariationTransforms({
blockVariationTransformations
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
- getBlockRootClientId,
getBlockAttributes,
canRemoveBlocks
} = select(store);
@@ -48414,8 +52244,7 @@ function useBlockVariationTransforms({
getActiveBlockVariation,
getBlockVariations
} = select(external_wp_blocks_namespaceObject.store);
- const rootClientId = getBlockRootClientId(Array.isArray(clientIds) ? clientIds[0] : clientIds);
- const canRemove = canRemoveBlocks(clientIds, rootClientId);
+ const canRemove = canRemoveBlocks(clientIds);
// Only handle single selected blocks for now.
if (blocks.length !== 1 || !canRemove) {
return block_variation_transformations_EMPTY_OBJECT;
@@ -48439,16 +52268,17 @@ const BlockVariationTransformations = ({
blocks
}) => {
const [hoveredTransformItemName, setHoveredTransformItemName] = (0,external_wp_element_namespaceObject.useState)();
- return (0,external_React_.createElement)(external_React_.Fragment, null, hoveredTransformItemName && (0,external_React_.createElement)(PreviewBlockPopover, {
- blocks: (0,external_wp_blocks_namespaceObject.cloneBlock)(blocks[0], transformations.find(({
- name
- }) => name === hoveredTransformItemName).attributes)
- }), transformations?.map(item => (0,external_React_.createElement)(BlockVariationTranformationItem, {
- key: item.name,
- item: item,
- onSelect: onSelect,
- setHoveredTransformItemName: setHoveredTransformItemName
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [hoveredTransformItemName && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreviewBlockPopover, {
+ blocks: (0,external_wp_blocks_namespaceObject.cloneBlock)(blocks[0], transformations.find(({
+ name
+ }) => name === hoveredTransformItemName).attributes)
+ }), transformations?.map(item => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockVariationTranformationItem, {
+ item: item,
+ onSelect: onSelect,
+ setHoveredTransformItemName: setHoveredTransformItemName
+ }, item.name))]
+ });
};
function BlockVariationTranformationItem({
item,
@@ -48460,23 +52290,23 @@ function BlockVariationTranformationItem({
icon,
title
} = item;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuItem, {
className: (0,external_wp_blocks_namespaceObject.getBlockMenuDefaultClassName)(name),
onClick: event => {
event.preventDefault();
onSelect(name);
},
onMouseLeave: () => setHoveredTransformItemName(null),
- onMouseEnter: () => setHoveredTransformItemName(name)
- }, (0,external_React_.createElement)(block_icon, {
- icon: icon,
- showColors: true
- }), title);
+ onMouseEnter: () => setHoveredTransformItemName(name),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: icon,
+ showColors: true
+ }), title]
+ });
}
/* harmony default export */ const block_variation_transformations = (BlockVariationTransformations);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-switcher/block-transformations-menu.js
-
/**
* WordPress dependencies
*/
@@ -48502,6 +52332,9 @@ function BlockVariationTranformationItem({
* @param {Object[]} possibleBlockTransformations The available block transformations.
* @return {Record<string, Object[]>} The grouped block transformations.
*/
+
+
+
function useGroupedTransforms(possibleBlockTransformations) {
const priorityContentTranformationBlocks = {
'core/paragraph': 1,
@@ -48564,40 +52397,42 @@ const BlockTransformationsMenu = ({
// We have to check if both content transformations(priority and rest) are set
// in order to create a separate MenuGroup for them.
const hasBothContentTransformations = priorityTextTransformations.length && restTransformations.length;
- const restTransformItems = !!restTransformations.length && (0,external_React_.createElement)(RestTransformationItems, {
+ const restTransformItems = !!restTransformations.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RestTransformationItems, {
restTransformations: restTransformations,
onSelect: onSelect,
setHoveredTransformItemName: setHoveredTransformItemName
});
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Transform to'),
- className: className
- }, hoveredTransformItemName && (0,external_React_.createElement)(PreviewBlockPopover, {
- blocks: (0,external_wp_blocks_namespaceObject.switchToBlockType)(blocks, hoveredTransformItemName)
- }), !!possibleBlockVariationTransformations?.length && (0,external_React_.createElement)(block_variation_transformations, {
- transformations: possibleBlockVariationTransformations,
- blocks: blocks,
- onSelect: onSelectVariation
- }), priorityTextTransformations.map(item => (0,external_React_.createElement)(BlockTranformationItem, {
- key: item.name,
- item: item,
- onSelect: onSelect,
- setHoveredTransformItemName: setHoveredTransformItemName
- })), !hasBothContentTransformations && restTransformItems), !!hasBothContentTransformations && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- className: className
- }, restTransformItems));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Transform to'),
+ className: className,
+ children: [hoveredTransformItemName && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreviewBlockPopover, {
+ blocks: (0,external_wp_blocks_namespaceObject.switchToBlockType)(blocks, hoveredTransformItemName)
+ }), !!possibleBlockVariationTransformations?.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_variation_transformations, {
+ transformations: possibleBlockVariationTransformations,
+ blocks: blocks,
+ onSelect: onSelectVariation
+ }), priorityTextTransformations.map(item => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockTranformationItem, {
+ item: item,
+ onSelect: onSelect,
+ setHoveredTransformItemName: setHoveredTransformItemName
+ }, item.name)), !hasBothContentTransformations && restTransformItems]
+ }), !!hasBothContentTransformations && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ className: className,
+ children: restTransformItems
+ })]
+ });
};
function RestTransformationItems({
restTransformations,
onSelect,
setHoveredTransformItemName
}) {
- return restTransformations.map(item => (0,external_React_.createElement)(BlockTranformationItem, {
- key: item.name,
+ return restTransformations.map(item => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockTranformationItem, {
item: item,
onSelect: onSelect,
setHoveredTransformItemName: setHoveredTransformItemName
- }));
+ }, item.name));
}
function BlockTranformationItem({
item,
@@ -48610,7 +52445,7 @@ function BlockTranformationItem({
title,
isDisabled
} = item;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuItem, {
className: (0,external_wp_blocks_namespaceObject.getBlockMenuDefaultClassName)(name),
onClick: event => {
event.preventDefault();
@@ -48618,11 +52453,12 @@ function BlockTranformationItem({
},
disabled: isDisabled,
onMouseLeave: () => setHoveredTransformItemName(null),
- onMouseEnter: () => setHoveredTransformItemName(name)
- }, (0,external_React_.createElement)(block_icon, {
- icon: icon,
- showColors: true
- }), title);
+ onMouseEnter: () => setHoveredTransformItemName(name),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: icon,
+ showColors: true
+ }), title]
+ });
}
/* harmony default export */ const block_transformations_menu = (BlockTransformationsMenu);
@@ -48806,7 +52642,6 @@ function useStylesForBlocks({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-styles/menu-items.js
-
/**
* WordPress dependencies
*/
@@ -48817,6 +52652,8 @@ function useStylesForBlocks({
* Internal dependencies
*/
+
+
const menu_items_noop = () => {};
function BlockStylesMenuItems({
clientId,
@@ -48833,23 +52670,25 @@ function BlockStylesMenuItems({
if (!stylesToRender || stylesToRender.length === 0) {
return null;
}
- return (0,external_React_.createElement)(external_React_.Fragment, null, stylesToRender.map(style => {
- const menuItemText = style.label || style.name;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- key: style.name,
- icon: activeStyle.name === style.name ? library_check : null,
- onClick: () => onSelect(style)
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- as: "span",
- limit: 18,
- ellipsizeMode: "tail",
- truncate: true
- }, menuItemText));
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: stylesToRender.map(style => {
+ const menuItemText = style.label || style.name;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: activeStyle.name === style.name ? library_check : null,
+ onClick: () => onSelect(style),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ as: "span",
+ limit: 18,
+ ellipsizeMode: "tail",
+ truncate: true,
+ children: menuItemText
+ })
+ }, style.name);
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-switcher/block-styles-menu.js
-
/**
* WordPress dependencies
*/
@@ -48860,6 +52699,7 @@ function BlockStylesMenuItems({
* Internal dependencies
*/
+
function BlockStylesMenu({
hoveredBlock,
onSwitch
@@ -48867,13 +52707,14 @@ function BlockStylesMenu({
const {
clientId
} = hoveredBlock;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
label: (0,external_wp_i18n_namespaceObject.__)('Styles'),
- className: "block-editor-block-switcher__styles__menugroup"
- }, (0,external_React_.createElement)(BlockStylesMenuItems, {
- clientId: clientId,
- onSwitch: onSwitch
- }));
+ className: "block-editor-block-switcher__styles__menugroup",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockStylesMenuItems, {
+ clientId: clientId,
+ onSwitch: onSwitch
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-switcher/utils.js
@@ -48901,12 +52742,18 @@ const getMatchingBlockByName = (block, selectedBlockName, consumedBlocks = new S
innerBlocks = []
} = block;
// Check if block has been consumed already.
- if (consumedBlocks.has(clientId)) return;
- if (name === selectedBlockName) return block;
+ if (consumedBlocks.has(clientId)) {
+ return;
+ }
+ if (name === selectedBlockName) {
+ return block;
+ }
// Try to find a matching block from InnerBlocks recursively.
for (const innerBlock of innerBlocks) {
const match = getMatchingBlockByName(innerBlock, selectedBlockName, consumedBlocks);
- if (match) return match;
+ if (match) {
+ return match;
+ }
}
};
@@ -48922,9 +52769,13 @@ const getMatchingBlockByName = (block, selectedBlockName, consumedBlocks = new S
*/
const getRetainedBlockAttributes = (name, attributes) => {
const contentAttributes = (0,external_wp_blocks_namespaceObject.__experimentalGetBlockAttributesNamesByRole)(name, 'content');
- if (!contentAttributes?.length) return attributes;
+ if (!contentAttributes?.length) {
+ return attributes;
+ }
return contentAttributes.reduce((_accumulator, attribute) => {
- if (attributes[attribute]) _accumulator[attribute] = attributes[attribute];
+ if (attributes[attribute]) {
+ _accumulator[attribute] = attributes[attribute];
+ }
return _accumulator;
}, {});
};
@@ -48982,7 +52833,9 @@ const getPatternTransformedBlocks = (selectedBlocks, patternBlocks) => {
let isMatch = false;
for (const patternBlock of _patternBlocks) {
const match = getMatchingBlockByName(patternBlock, selectedBlock.name, consumedBlocks);
- if (!match) continue;
+ if (!match) {
+ continue;
+ }
isMatch = true;
consumedBlocks.add(match.clientId);
// We update (mutate) the matching pattern block.
@@ -48991,7 +52844,9 @@ const getPatternTransformedBlocks = (selectedBlocks, patternBlocks) => {
break;
}
// Bail eary if a selected block has not been matched.
- if (!isMatch) return;
+ if (!isMatch) {
+ return;
+ }
}
return _patternBlocks;
};
@@ -49027,7 +52882,6 @@ const useTransformedPatterns = (patterns, selectedBlocks) => {
/* harmony default export */ const use_transformed_patterns = (useTransformedPatterns);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-switcher/pattern-transformations-menu.js
-
/**
* WordPress dependencies
*/
@@ -49043,6 +52897,8 @@ const useTransformedPatterns = (patterns, selectedBlocks) => {
+
+
const {
CompositeV2: pattern_transformations_menu_Composite,
CompositeItemV2: pattern_transformations_menu_CompositeItem,
@@ -49055,53 +52911,61 @@ function PatternTransformationsMenu({
}) {
const [showTransforms, setShowTransforms] = (0,external_wp_element_namespaceObject.useState)(false);
const patterns = use_transformed_patterns(statePatterns, blocks);
- if (!patterns.length) return null;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- className: "block-editor-block-switcher__pattern__transforms__menugroup"
- }, showTransforms && (0,external_React_.createElement)(PreviewPatternsPopover, {
- patterns: patterns,
- onSelect: onSelect
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: event => {
- event.preventDefault();
- setShowTransforms(!showTransforms);
- },
- icon: chevron_right
- }, (0,external_wp_i18n_namespaceObject.__)('Patterns')));
+ if (!patterns.length) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ className: "block-editor-block-switcher__pattern__transforms__menugroup",
+ children: [showTransforms && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreviewPatternsPopover, {
+ patterns: patterns,
+ onSelect: onSelect
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: event => {
+ event.preventDefault();
+ setShowTransforms(!showTransforms);
+ },
+ icon: chevron_right,
+ children: (0,external_wp_i18n_namespaceObject.__)('Patterns')
+ })]
+ });
}
function PreviewPatternsPopover({
patterns,
onSelect
}) {
- return (0,external_React_.createElement)("div", {
- className: "block-editor-block-switcher__popover__preview__parent"
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-block-switcher__popover__preview__container"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Popover, {
- className: "block-editor-block-switcher__preview__popover",
- position: "bottom right"
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-block-switcher__preview is-pattern-list-preview"
- }, (0,external_React_.createElement)(pattern_transformations_menu_BlockPatternsList, {
- patterns: patterns,
- onSelect: onSelect
- })))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-switcher__popover__preview__parent",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-switcher__popover__preview__container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover, {
+ className: "block-editor-block-switcher__preview__popover",
+ position: "bottom right",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-switcher__preview is-pattern-list-preview",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(pattern_transformations_menu_BlockPatternsList, {
+ patterns: patterns,
+ onSelect: onSelect
+ })
+ })
+ })
+ })
+ });
}
function pattern_transformations_menu_BlockPatternsList({
patterns,
onSelect
}) {
const composite = pattern_transformations_menu_useCompositeStore();
- return (0,external_React_.createElement)(pattern_transformations_menu_Composite, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(pattern_transformations_menu_Composite, {
store: composite,
role: "listbox",
className: "block-editor-block-switcher__preview-patterns-container",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Patterns list')
- }, patterns.map(pattern => (0,external_React_.createElement)(pattern_transformations_menu_BlockPattern, {
- key: pattern.name,
- pattern: pattern,
- onSelect: onSelect
- })));
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Patterns list'),
+ children: patterns.map(pattern => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(pattern_transformations_menu_BlockPattern, {
+ pattern: pattern,
+ onSelect: onSelect
+ }, pattern.name))
+ });
}
function pattern_transformations_menu_BlockPattern({
pattern,
@@ -49110,29 +52974,32 @@ function pattern_transformations_menu_BlockPattern({
// TODO check pattern/preview width...
const baseClassName = 'block-editor-block-switcher__preview-patterns-container';
const descriptionId = (0,external_wp_compose_namespaceObject.useInstanceId)(pattern_transformations_menu_BlockPattern, `${baseClassName}-list__item-description`);
- return (0,external_React_.createElement)("div", {
- className: `${baseClassName}-list__list-item`
- }, (0,external_React_.createElement)(pattern_transformations_menu_CompositeItem, {
- render: (0,external_React_.createElement)("div", {
- role: "option",
- "aria-label": pattern.title,
- "aria-describedby": pattern.description ? descriptionId : undefined,
- className: `${baseClassName}-list__item`
- }),
- onClick: () => onSelect(pattern.transformedBlocks)
- }, (0,external_React_.createElement)(block_preview, {
- blocks: pattern.transformedBlocks,
- viewportWidth: pattern.viewportWidth || 500
- }), (0,external_React_.createElement)("div", {
- className: `${baseClassName}-list__item-title`
- }, pattern.title)), !!pattern.description && (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- id: descriptionId
- }, pattern.description));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: `${baseClassName}-list__list-item`,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(pattern_transformations_menu_CompositeItem, {
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ role: "option",
+ "aria-label": pattern.title,
+ "aria-describedby": pattern.description ? descriptionId : undefined,
+ className: `${baseClassName}-list__item`
+ }),
+ onClick: () => onSelect(pattern.transformedBlocks),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_preview, {
+ blocks: pattern.transformedBlocks,
+ viewportWidth: pattern.viewportWidth || 500
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: `${baseClassName}-list__item-title`,
+ children: pattern.title
+ })]
+ }), !!pattern.description && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ id: descriptionId,
+ children: pattern.description
+ })]
+ });
}
/* harmony default export */ const pattern_transformations_menu = (PatternTransformationsMenu);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-switcher/index.js
-
/**
* WordPress dependencies
*/
@@ -49152,11 +53019,15 @@ function pattern_transformations_menu_BlockPattern({
+
+
+
function BlockSwitcherDropdownMenuContents({
onClose,
clientIds,
hasBlockStyles,
- canRemove
+ canRemove,
+ isUsingBindings
}) {
const {
replaceBlocks,
@@ -49222,39 +53093,49 @@ function BlockSwitcherDropdownMenuContents({
const hasBlockOrBlockVariationTransforms = hasPossibleBlockTransformations || hasPossibleBlockVariationTransformations;
const hasContents = hasBlockStyles || hasBlockOrBlockVariationTransforms || hasPatternTransformation;
if (!hasContents) {
- return (0,external_React_.createElement)("p", {
- className: "block-editor-block-switcher__no-transforms"
- }, (0,external_wp_i18n_namespaceObject.__)('No transforms.'));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "block-editor-block-switcher__no-transforms",
+ children: (0,external_wp_i18n_namespaceObject.__)('No transforms.')
+ });
}
- return (0,external_React_.createElement)("div", {
- className: "block-editor-block-switcher__container"
- }, hasPatternTransformation && (0,external_React_.createElement)(pattern_transformations_menu, {
- blocks: blocks,
- patterns: patterns,
- onSelect: transformedBlocks => {
- onPatternTransform(transformedBlocks);
- onClose();
- }
- }), hasBlockOrBlockVariationTransforms && (0,external_React_.createElement)(block_transformations_menu, {
- className: "block-editor-block-switcher__transforms__menugroup",
- possibleBlockTransformations: possibleBlockTransformations,
- possibleBlockVariationTransformations: blockVariationTransformations,
- blocks: blocks,
- onSelect: name => {
- onBlockTransform(name);
- onClose();
- },
- onSelectVariation: name => {
- onBlockVariationTransform(name);
- onClose();
- }
- }), hasBlockStyles && (0,external_React_.createElement)(BlockStylesMenu, {
- hoveredBlock: blocks[0],
- onSwitch: onClose
- }));
+ const connectedBlockDescription = isSingleBlock ? (0,external_wp_i18n_namespaceObject._x)('This block is connected.', 'block toolbar button label and description') : (0,external_wp_i18n_namespaceObject._x)('These blocks are connected.', 'block toolbar button label and description');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-block-switcher__container",
+ children: [hasPatternTransformation && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(pattern_transformations_menu, {
+ blocks: blocks,
+ patterns: patterns,
+ onSelect: transformedBlocks => {
+ onPatternTransform(transformedBlocks);
+ onClose();
+ }
+ }), hasBlockOrBlockVariationTransforms && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_transformations_menu, {
+ className: "block-editor-block-switcher__transforms__menugroup",
+ possibleBlockTransformations: possibleBlockTransformations,
+ possibleBlockVariationTransformations: blockVariationTransformations,
+ blocks: blocks,
+ onSelect: name => {
+ onBlockTransform(name);
+ onClose();
+ },
+ onSelectVariation: name => {
+ onBlockVariationTransform(name);
+ onClose();
+ }
+ }), hasBlockStyles && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockStylesMenu, {
+ hoveredBlock: blocks[0],
+ onSwitch: onClose
+ }), isUsingBindings && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ className: "block-editor-block-switcher__binding-indicator",
+ children: connectedBlockDescription
+ })
+ })]
+ });
}
const BlockSwitcher = ({
- clientIds
+ clientIds,
+ disabled,
+ isUsingBindings
}) => {
const {
canRemove,
@@ -49265,7 +53146,6 @@ const BlockSwitcher = ({
isTemplate
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
- getBlockRootClientId,
getBlocksByClientId,
getBlockAttributes,
canRemoveBlocks
@@ -49281,7 +53161,6 @@ const BlockSwitcher = ({
invalidBlocks: true
};
}
- const rootClientId = getBlockRootClientId(Array.isArray(clientIds) ? clientIds[0] : clientIds);
const [{
name: firstBlockName
}] = _blocks;
@@ -49301,7 +53180,7 @@ const BlockSwitcher = ({
_icon = isSelectionOfSameType ? blockType.icon : library_copy;
}
return {
- canRemove: canRemoveBlocks(clientIds, rootClientId),
+ canRemove: canRemoveBlocks(clientIds),
hasBlockStyles: _isSingleBlockSelected && !!getBlockStyles(firstBlockName)?.length,
icon: _icon,
isReusable: _isSingleBlockSelected && (0,external_wp_blocks_namespaceObject.isReusableBlock)(_blocks[0]),
@@ -49317,51 +53196,65 @@ const BlockSwitcher = ({
}
const isSingleBlock = clientIds.length === 1;
const blockSwitcherLabel = isSingleBlock ? blockTitle : (0,external_wp_i18n_namespaceObject.__)('Multiple blocks selected');
- const hideDropdown = !hasBlockStyles && !canRemove;
+ const hideDropdown = disabled || !hasBlockStyles && !canRemove;
if (hideDropdown) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- disabled: true,
- className: "block-editor-block-switcher__no-switcher-icon",
- title: blockSwitcherLabel,
- icon: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(block_icon, {
- icon: icon,
- showColors: true
- }), (isReusable || isTemplate) && (0,external_React_.createElement)("span", {
- className: "block-editor-block-switcher__toggle-text"
- }, blockTitle))
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ disabled: true,
+ className: "block-editor-block-switcher__no-switcher-icon",
+ title: blockSwitcherLabel,
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: icon,
+ showColors: true
+ }), (isReusable || isTemplate) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-block-switcher__toggle-text",
+ children: blockTitle
+ })]
+ })
+ })
+ });
}
const blockSwitcherDescription = isSingleBlock ? (0,external_wp_i18n_namespaceObject.__)('Change block type or style') : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of blocks. */
(0,external_wp_i18n_namespaceObject._n)('Change type of %d block', 'Change type of %d blocks', clientIds.length), clientIds.length);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarItem, null, toggleProps => (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
- className: "block-editor-block-switcher",
- label: blockSwitcherLabel,
- popoverProps: {
- placement: 'bottom-start',
- className: 'block-editor-block-switcher__popover'
- },
- icon: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(block_icon, {
- icon: icon,
- className: "block-editor-block-switcher__toggle",
- showColors: true
- }), (isReusable || isTemplate) && (0,external_React_.createElement)("span", {
- className: "block-editor-block-switcher__toggle-text"
- }, blockTitle)),
- toggleProps: {
- describedBy: blockSwitcherDescription,
- ...toggleProps
- },
- menuProps: {
- orientation: 'both'
- }
- }, ({
- onClose
- }) => (0,external_React_.createElement)(BlockSwitcherDropdownMenuContents, {
- onClose: onClose,
- clientIds: clientIds,
- hasBlockStyles: hasBlockStyles,
- canRemove: canRemove
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
+ children: toggleProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
+ className: "block-editor-block-switcher",
+ label: blockSwitcherLabel,
+ popoverProps: {
+ placement: 'bottom-start',
+ className: 'block-editor-block-switcher__popover'
+ },
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: icon,
+ className: "block-editor-block-switcher__toggle",
+ showColors: true
+ }), (isReusable || isTemplate) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-block-switcher__toggle-text",
+ children: blockTitle
+ })]
+ }),
+ toggleProps: {
+ describedBy: blockSwitcherDescription,
+ ...toggleProps
+ },
+ menuProps: {
+ orientation: 'both'
+ },
+ children: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockSwitcherDropdownMenuContents, {
+ onClose: onClose,
+ clientIds: clientIds,
+ hasBlockStyles: hasBlockStyles,
+ canRemove: canRemove,
+ isUsingBindings: isUsingBindings
+ })
+ })
+ })
+ });
};
/* harmony default export */ const block_switcher = (BlockSwitcher);
@@ -49401,6 +53294,11 @@ const supports_FONT_STYLE_SUPPORT_KEY = 'typography.__experimentalFontStyle';
const supports_FONT_WEIGHT_SUPPORT_KEY = 'typography.__experimentalFontWeight';
/**
* Key within block settings' supports array indicating support for text
+ * align e.g. settings found in `block.json`.
+ */
+const supports_TEXT_ALIGN_SUPPORT_KEY = 'typography.textAlign';
+/**
+ * Key within block settings' supports array indicating support for text
* columns e.g. settings found in `block.json`.
*/
const supports_TEXT_COLUMNS_SUPPORT_KEY = 'typography.textColumns';
@@ -49426,7 +53324,7 @@ const supports_TEXT_TRANSFORM_SUPPORT_KEY = 'typography.__experimentalTextTransf
*/
const supports_LETTER_SPACING_SUPPORT_KEY = 'typography.__experimentalLetterSpacing';
const LAYOUT_SUPPORT_KEY = 'layout';
-const supports_TYPOGRAPHY_SUPPORT_KEYS = [supports_LINE_HEIGHT_SUPPORT_KEY, supports_FONT_SIZE_SUPPORT_KEY, supports_FONT_STYLE_SUPPORT_KEY, supports_FONT_WEIGHT_SUPPORT_KEY, supports_FONT_FAMILY_SUPPORT_KEY, supports_TEXT_COLUMNS_SUPPORT_KEY, supports_TEXT_DECORATION_SUPPORT_KEY, supports_TEXT_TRANSFORM_SUPPORT_KEY, supports_WRITING_MODE_SUPPORT_KEY, supports_LETTER_SPACING_SUPPORT_KEY];
+const supports_TYPOGRAPHY_SUPPORT_KEYS = [supports_LINE_HEIGHT_SUPPORT_KEY, supports_FONT_SIZE_SUPPORT_KEY, supports_FONT_STYLE_SUPPORT_KEY, supports_FONT_WEIGHT_SUPPORT_KEY, supports_FONT_FAMILY_SUPPORT_KEY, supports_TEXT_ALIGN_SUPPORT_KEY, supports_TEXT_COLUMNS_SUPPORT_KEY, supports_TEXT_DECORATION_SUPPORT_KEY, supports_TEXT_TRANSFORM_SUPPORT_KEY, supports_WRITING_MODE_SUPPORT_KEY, supports_LETTER_SPACING_SUPPORT_KEY];
const EFFECTS_SUPPORT_KEYS = ['shadow'];
const supports_SPACING_SUPPORT_KEY = 'spacing';
const supports_styleSupportKeys = [...EFFECTS_SUPPORT_KEYS, ...supports_TYPOGRAPHY_SUPPORT_KEYS, supports_BORDER_SUPPORT_KEY, supports_COLOR_SUPPORT_KEY, supports_SPACING_SUPPORT_KEY];
@@ -49543,6 +53441,22 @@ const supports_hasBackgroundColorSupport = nameOrType => {
};
/**
+ * Returns true if the block defines support for text-align.
+ *
+ * @param {string|Object} nameOrType Block name or type object.
+ * @return {boolean} Whether the block supports the feature.
+ */
+const hasTextAlignSupport = nameOrType => (0,external_wp_blocks_namespaceObject.hasBlockSupport)(nameOrType, supports_TEXT_ALIGN_SUPPORT_KEY);
+
+/**
+ * Returns the block support value for text-align, if defined.
+ *
+ * @param {string|Object} nameOrType Block name or type object.
+ * @return {unknown} The block support value.
+ */
+const getTextAlignSupport = nameOrType => getBlockSupport(nameOrType, supports_TEXT_ALIGN_SUPPORT_KEY);
+
+/**
* Returns true if the block defines support for background color.
*
* @param {string|Object} nameOrType Block name or type object.
@@ -49686,6 +53600,7 @@ const STYLE_ATTRIBUTES = {
align: hasAlignSupport,
borderColor: nameOrType => supports_hasBorderSupport(nameOrType, 'color'),
backgroundColor: supports_hasBackgroundColorSupport,
+ textAlign: hasTextAlignSupport,
textColor: supports_hasTextColorSupport,
gradient: supports_hasGradientSupport,
className: hasCustomClassNameSupport,
@@ -49833,8 +53748,8 @@ function BlockActions({
const canInsertDefaultBlock = canInsertBlockType(getDefaultBlockName(), rootClientId);
const directInsertBlock = rootClientId ? getDirectInsertBlock(rootClientId) : null;
return {
- canMove: canMoveBlocks(clientIds, rootClientId),
- canRemove: canRemoveBlocks(clientIds, rootClientId),
+ canMove: canMoveBlocks(clientIds),
+ canRemove: canRemoveBlocks(clientIds),
canInsertBlock: canInsertDefaultBlock || !!directInsertBlock,
canCopyStyles: blocks.every(block => {
return !!block && ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(block.name, 'color') || (0,external_wp_blocks_namespaceObject.hasBlockSupport)(block.name, 'typography'));
@@ -49881,12 +53796,10 @@ function BlockActions({
return removeBlocks(clientIds, updateSelection);
},
onInsertBefore() {
- const clientId = Array.isArray(clientIds) ? clientIds[0] : clientId;
- insertBeforeBlock(clientId);
+ insertBeforeBlock(clientIds[0]);
},
onInsertAfter() {
- const clientId = Array.isArray(clientIds) ? clientIds[clientIds.length - 1] : clientId;
- insertAfterBlock(clientId);
+ insertAfterBlock(clientIds[clientIds.length - 1]);
},
onMoveTo() {
setNavigationMode(true);
@@ -49929,7 +53842,6 @@ function BlockActions({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-html-convert-button.js
-
/**
* WordPress dependencies
*/
@@ -49942,6 +53854,7 @@ function BlockActions({
* Internal dependencies
*/
+
function BlockHTMLConvertButton({
clientId
}) {
@@ -49952,11 +53865,12 @@ function BlockHTMLConvertButton({
if (!block || block.name !== 'core/html') {
return null;
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
onClick: () => replaceBlocks(clientId, (0,external_wp_blocks_namespaceObject.rawHandler)({
HTML: (0,external_wp_blocks_namespaceObject.getBlockContent)(block)
- }))
- }, (0,external_wp_i18n_namespaceObject.__)('Convert to Blocks'));
+ })),
+ children: (0,external_wp_i18n_namespaceObject.__)('Convert to Blocks')
+ });
}
/* harmony default export */ const block_html_convert_button = (BlockHTMLConvertButton);
@@ -49972,8 +53886,7 @@ const {
__unstableBlockSettingsMenuFirstItem.Slot = block_settings_menu_first_item_Slot;
/* harmony default export */ const block_settings_menu_first_item = (__unstableBlockSettingsMenuFirstItem);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-settings-dropdown.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-parent-selector-menu-item.js
/**
* WordPress dependencies
*/
@@ -49983,9 +53896,6 @@ __unstableBlockSettingsMenuFirstItem.Slot = block_settings_menu_first_item_Slot;
-
-
-
/**
* Internal dependencies
*/
@@ -49993,29 +53903,7 @@ __unstableBlockSettingsMenuFirstItem.Slot = block_settings_menu_first_item_Slot;
-
-
-
-
-const block_settings_dropdown_POPOVER_PROPS = {
- className: 'block-editor-block-settings-menu__popover',
- placement: 'bottom-start'
-};
-function CopyMenuItem({
- clientIds,
- onCopy,
- label
-}) {
- const {
- getBlocksByClientId
- } = (0,external_wp_data_namespaceObject.useSelect)(store);
- const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(() => (0,external_wp_blocks_namespaceObject.serialize)(getBlocksByClientId(clientIds)), onCopy);
- const copyMenuItemLabel = label ? label : (0,external_wp_i18n_namespaceObject.__)('Copy');
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- ref: ref
- }, copyMenuItemLabel);
-}
-function ParentSelectorMenuItem({
+function BlockParentSelectorMenuItem({
parentClientId,
parentBlockType
}) {
@@ -50034,35 +53922,85 @@ function ParentSelectorMenuItem({
if (!isSmallViewport) {
return null;
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
...gesturesProps,
ref: menuItemRef,
- icon: (0,external_React_.createElement)(block_icon, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
icon: parentBlockType.icon
}),
- onClick: () => selectBlock(parentClientId)
- }, (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Name of the block's parent. */
- (0,external_wp_i18n_namespaceObject.__)('Select parent block (%s)'), parentBlockType.title));
+ onClick: () => selectBlock(parentClientId),
+ children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Name of the block's parent. */
+ (0,external_wp_i18n_namespaceObject.__)('Select parent block (%s)'), parentBlockType.title)
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-settings-dropdown.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+
+
+
+const block_settings_dropdown_POPOVER_PROPS = {
+ className: 'block-editor-block-settings-menu__popover',
+ placement: 'bottom-start'
+};
+function CopyMenuItem({
+ clientIds,
+ onCopy,
+ label,
+ shortcut
+}) {
+ const {
+ getBlocksByClientId
+ } = (0,external_wp_data_namespaceObject.useSelect)(store);
+ const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(() => (0,external_wp_blocks_namespaceObject.serialize)(getBlocksByClientId(clientIds)), onCopy);
+ const copyMenuItemLabel = label ? label : (0,external_wp_i18n_namespaceObject.__)('Copy');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ ref: ref,
+ shortcut: shortcut,
+ children: copyMenuItemLabel
+ });
}
function BlockSettingsDropdown({
block,
clientIds,
- __experimentalSelectBlock,
children,
- __unstableDisplayLocation,
+ __experimentalSelectBlock,
...props
}) {
// Get the client id of the current block for this menu, if one is set.
const currentClientId = block?.clientId;
- const blockClientIds = Array.isArray(clientIds) ? clientIds : [clientIds];
- const count = blockClientIds.length;
- const firstBlockClientId = blockClientIds[0];
+ const count = clientIds.length;
+ const firstBlockClientId = clientIds[0];
const {
firstParentClientId,
onlyBlock,
parentBlockType,
previousBlockClientId,
- selectedBlockClientIds
+ selectedBlockClientIds,
+ openedBlockSettingsMenu,
+ isContentOnly
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getBlockCount,
@@ -50070,8 +54008,10 @@ function BlockSettingsDropdown({
getBlockRootClientId,
getPreviousBlockClientId,
getSelectedBlockClientIds,
- getBlockAttributes
- } = select(store);
+ getBlockAttributes,
+ getOpenedBlockSettingsMenu,
+ getBlockEditingMode
+ } = unlock(select(store));
const {
getActiveBlockVariation
} = select(external_wp_blocks_namespaceObject.store);
@@ -50082,14 +54022,15 @@ function BlockSettingsDropdown({
onlyBlock: 1 === getBlockCount(_firstParentClientId),
parentBlockType: _firstParentClientId && (getActiveBlockVariation(parentBlockName, getBlockAttributes(_firstParentClientId)) || (0,external_wp_blocks_namespaceObject.getBlockType)(parentBlockName)),
previousBlockClientId: getPreviousBlockClientId(firstBlockClientId),
- selectedBlockClientIds: getSelectedBlockClientIds()
+ selectedBlockClientIds: getSelectedBlockClientIds(),
+ openedBlockSettingsMenu: getOpenedBlockSettingsMenu(),
+ isContentOnly: getBlockEditingMode(firstBlockClientId) === 'contentOnly'
};
}, [firstBlockClientId]);
const {
getBlockOrder,
getSelectedBlockClientIds
} = (0,external_wp_data_namespaceObject.useSelect)(store);
- const openedBlockSettingsMenu = (0,external_wp_data_namespaceObject.useSelect)(select => unlock(select(store)).getOpenedBlockSettingsMenu(), []);
const {
setOpenedBlockSettingsMenu
} = unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
@@ -50104,30 +54045,31 @@ function BlockSettingsDropdown({
insertBefore: getShortcutRepresentation('core/block-editor/insert-before')
};
}, []);
- const isMatch = (0,external_wp_keyboardShortcuts_namespaceObject.__unstableUseShortcutEventMatch)();
const hasSelectedBlocks = selectedBlockClientIds.length > 0;
- const updateSelectionAfterDuplicate = (0,external_wp_element_namespaceObject.useCallback)(async clientIdsPromise => {
- if (__experimentalSelectBlock) {
- const ids = await clientIdsPromise;
- if (ids && ids[0]) {
- __experimentalSelectBlock(ids[0], false);
- }
+ async function updateSelectionAfterDuplicate(clientIdsPromise) {
+ if (!__experimentalSelectBlock) {
+ return;
}
- }, [__experimentalSelectBlock]);
- const updateSelectionAfterRemove = (0,external_wp_element_namespaceObject.useCallback)(() => {
- if (__experimentalSelectBlock) {
- let blockToFocus = previousBlockClientId || firstParentClientId;
-
- // Focus the first block if there's no previous block nor parent block.
- if (!blockToFocus) {
- blockToFocus = getBlockOrder()[0];
- }
+ const ids = await clientIdsPromise;
+ if (ids && ids[0]) {
+ __experimentalSelectBlock(ids[0], false);
+ }
+ }
+ function updateSelectionAfterRemove() {
+ if (!__experimentalSelectBlock) {
+ return;
+ }
+ let blockToFocus = previousBlockClientId || firstParentClientId;
- // Only update the selection if the original selection is removed.
- const shouldUpdateSelection = hasSelectedBlocks && getSelectedBlockClientIds().length === 0;
- __experimentalSelectBlock(blockToFocus, shouldUpdateSelection);
+ // Focus the first block if there's no previous block nor parent block.
+ if (!blockToFocus) {
+ blockToFocus = getBlockOrder()[0];
}
- }, [__experimentalSelectBlock, previousBlockClientId, firstParentClientId, getBlockOrder, hasSelectedBlocks, getSelectedBlockClientIds]);
+
+ // Only update the selection if the original selection is removed.
+ const shouldUpdateSelection = hasSelectedBlocks && getSelectedBlockClientIds().length === 0;
+ __experimentalSelectBlock(blockToFocus, shouldUpdateSelection);
+ }
// This can occur when the selected block (the parent)
// displays child blocks within a List View.
@@ -50141,114 +54083,107 @@ function BlockSettingsDropdown({
// right clicking into an inactive window.
// See: https://github.com/WordPress/gutenberg/pull/54083
const open = !currentClientId ? undefined : openedBlockSettingsMenu === currentClientId || false;
- const onToggle = (0,external_wp_element_namespaceObject.useCallback)(localOpen => {
+ function onToggle(localOpen) {
if (localOpen && openedBlockSettingsMenu !== currentClientId) {
setOpenedBlockSettingsMenu(currentClientId);
} else if (!localOpen && openedBlockSettingsMenu && openedBlockSettingsMenu === currentClientId) {
setOpenedBlockSettingsMenu(undefined);
}
- }, [currentClientId, openedBlockSettingsMenu, setOpenedBlockSettingsMenu]);
- return (0,external_React_.createElement)(BlockActions, {
- clientIds: clientIds,
- __experimentalUpdateSelection: !__experimentalSelectBlock
- }, ({
- canCopyStyles,
- canDuplicate,
- canInsertBlock,
- canMove,
- canRemove,
- onDuplicate,
- onInsertAfter,
- onInsertBefore,
- onRemove,
- onCopy,
- onPasteStyles,
- onMoveTo
- }) => (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
- icon: more_vertical,
- label: (0,external_wp_i18n_namespaceObject.__)('Options'),
- className: "block-editor-block-settings-menu",
- popoverProps: block_settings_dropdown_POPOVER_PROPS,
- open: open,
- onToggle: onToggle,
- noIcons: true,
- menuProps: {
- /**
- * @param {KeyboardEvent} event
- */
- onKeyDown(event) {
- if (event.defaultPrevented) return;
- if (isMatch('core/block-editor/remove', event) && canRemove) {
- event.preventDefault();
- updateSelectionAfterRemove(onRemove());
- } else if (isMatch('core/block-editor/duplicate', event) && canDuplicate) {
- event.preventDefault();
- updateSelectionAfterDuplicate(onDuplicate());
- } else if (isMatch('core/block-editor/insert-after', event) && canInsertBlock) {
- event.preventDefault();
- setOpenedBlockSettingsMenu(undefined);
- onInsertAfter();
- } else if (isMatch('core/block-editor/insert-before', event) && canInsertBlock) {
- event.preventDefault();
- setOpenedBlockSettingsMenu(undefined);
- onInsertBefore();
- }
- }
- },
- ...props
- }, ({
- onClose
- }) => (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(block_settings_menu_first_item.Slot, {
- fillProps: {
- onClose
- }
- }), !parentBlockIsSelected && !!firstParentClientId && (0,external_React_.createElement)(ParentSelectorMenuItem, {
- parentClientId: firstParentClientId,
- parentBlockType: parentBlockType
- }), count === 1 && (0,external_React_.createElement)(block_html_convert_button, {
- clientId: firstBlockClientId
- }), (0,external_React_.createElement)(CopyMenuItem, {
- clientIds: clientIds,
- onCopy: onCopy
- }), canDuplicate && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onDuplicate, updateSelectionAfterDuplicate),
- shortcut: shortcuts.duplicate
- }, (0,external_wp_i18n_namespaceObject.__)('Duplicate')), canInsertBlock && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onInsertBefore),
- shortcut: shortcuts.insertBefore
- }, (0,external_wp_i18n_namespaceObject.__)('Add before')), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onInsertAfter),
- shortcut: shortcuts.insertAfter
- }, (0,external_wp_i18n_namespaceObject.__)('Add after')))), canCopyStyles && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(CopyMenuItem, {
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockActions, {
clientIds: clientIds,
- onCopy: onCopy,
- label: (0,external_wp_i18n_namespaceObject.__)('Copy styles')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: onPasteStyles
- }, (0,external_wp_i18n_namespaceObject.__)('Paste styles'))), (0,external_React_.createElement)(block_settings_menu_controls.Slot, {
- fillProps: {
- onClose,
+ __experimentalUpdateSelection: !__experimentalSelectBlock,
+ children: ({
+ canCopyStyles,
+ canDuplicate,
+ canInsertBlock,
canMove,
- onMoveTo,
- onlyBlock,
- count,
- firstBlockClientId
- },
- clientIds: clientIds,
- __unstableDisplayLocation: __unstableDisplayLocation
- }), typeof children === 'function' ? children({
- onClose
- }) : external_wp_element_namespaceObject.Children.map(child => (0,external_wp_element_namespaceObject.cloneElement)(child, {
- onClose
- })), canRemove && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onRemove, updateSelectionAfterRemove),
- shortcut: shortcuts.remove
- }, (0,external_wp_i18n_namespaceObject.__)('Delete'))))));
+ canRemove,
+ onDuplicate,
+ onInsertAfter,
+ onInsertBefore,
+ onRemove,
+ onCopy,
+ onPasteStyles,
+ onMoveTo
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
+ icon: more_vertical,
+ label: (0,external_wp_i18n_namespaceObject.__)('Options'),
+ className: "block-editor-block-settings-menu",
+ popoverProps: block_settings_dropdown_POPOVER_PROPS,
+ open: open,
+ onToggle: onToggle,
+ noIcons: true,
+ ...props,
+ children: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_settings_menu_first_item.Slot, {
+ fillProps: {
+ onClose
+ }
+ }), !parentBlockIsSelected && !!firstParentClientId && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockParentSelectorMenuItem, {
+ parentClientId: firstParentClientId,
+ parentBlockType: parentBlockType
+ }), count === 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_html_convert_button, {
+ clientId: firstBlockClientId
+ }), !isContentOnly && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CopyMenuItem, {
+ clientIds: clientIds,
+ onCopy: onCopy,
+ shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('c')
+ }), canDuplicate && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onDuplicate, updateSelectionAfterDuplicate),
+ shortcut: shortcuts.duplicate,
+ children: (0,external_wp_i18n_namespaceObject.__)('Duplicate')
+ }), canInsertBlock && !isContentOnly && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onInsertBefore),
+ shortcut: shortcuts.insertBefore,
+ children: (0,external_wp_i18n_namespaceObject.__)('Add before')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onInsertAfter),
+ shortcut: shortcuts.insertAfter,
+ children: (0,external_wp_i18n_namespaceObject.__)('Add after')
+ })]
+ })]
+ }), canCopyStyles && !isContentOnly && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CopyMenuItem, {
+ clientIds: clientIds,
+ onCopy: onCopy,
+ label: (0,external_wp_i18n_namespaceObject.__)('Copy styles')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: onPasteStyles,
+ children: (0,external_wp_i18n_namespaceObject.__)('Paste styles')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_settings_menu_controls.Slot, {
+ fillProps: {
+ onClose,
+ canMove,
+ onMoveTo,
+ onlyBlock,
+ count,
+ firstBlockClientId
+ },
+ clientIds: clientIds
+ }), typeof children === 'function' ? children({
+ onClose
+ }) : external_wp_element_namespaceObject.Children.map(child => (0,external_wp_element_namespaceObject.cloneElement)(child, {
+ onClose
+ })), canRemove && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onRemove, updateSelectionAfterRemove),
+ shortcut: shortcuts.remove,
+ children: (0,external_wp_i18n_namespaceObject.__)('Delete')
+ })
+ })]
+ })
+ })
+ });
}
/* harmony default export */ const block_settings_dropdown = (BlockSettingsDropdown);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/index.js
-
/**
* WordPress dependencies
*/
@@ -50258,20 +54193,24 @@ function BlockSettingsDropdown({
* Internal dependencies
*/
+
function BlockSettingsMenu({
clientIds,
...props
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarItem, null, toggleProps => (0,external_React_.createElement)(block_settings_dropdown, {
- clientIds: clientIds,
- toggleProps: toggleProps,
- ...props
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
+ children: toggleProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_settings_dropdown, {
+ clientIds: clientIds,
+ toggleProps: toggleProps,
+ ...props
+ })
+ })
+ });
}
/* harmony default export */ const block_settings_menu = (BlockSettingsMenu);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-lock/toolbar.js
-
/**
* WordPress dependencies
*/
@@ -50285,6 +54224,9 @@ function BlockSettingsMenu({
*/
+
+
+
function BlockLockToolbar({
clientId
}) {
@@ -50312,66 +54254,88 @@ function BlockLockToolbar({
if (!canLock && isLocked) {
label = (0,external_wp_i18n_namespaceObject.__)('Locked');
}
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarGroup, {
- className: "block-editor-block-lock-toolbar"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- accessibleWhenDisabled: true,
- disabled: !canLock,
- icon: isLocked ? library_lock : library_unlock,
- label: label,
- onClick: toggleModal,
- "aria-expanded": isModalOpen,
- "aria-haspopup": "dialog"
- })), isModalOpen && (0,external_React_.createElement)(BlockLockModal, {
- clientId: clientId,
- onClose: toggleModal
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ className: "block-editor-block-lock-toolbar",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ accessibleWhenDisabled: true,
+ disabled: !canLock,
+ icon: isLocked ? library_lock : library_unlock,
+ label: label,
+ onClick: toggleModal,
+ "aria-expanded": isModalOpen,
+ "aria-haspopup": "dialog"
+ })
+ }), isModalOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockLockModal, {
+ clientId: clientId,
+ onClose: toggleModal
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/group.js
-
/**
* WordPress dependencies
*/
-const group_group = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const group_group = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
/* harmony default export */ const library_group = (group_group);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/row.js
-
/**
* WordPress dependencies
*/
-const row = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const row = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"
+ })
+});
/* harmony default export */ const library_row = (row);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/stack.js
-
/**
* WordPress dependencies
*/
-const stack = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const stack = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"
+ })
+});
/* harmony default export */ const library_stack = (stack);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/convert-to-group-buttons/toolbar.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/grid.js
+/**
+ * WordPress dependencies
+ */
+
+
+const grid_grid = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",
+ fillRule: "evenodd",
+ clipRule: "evenodd"
+ })
+});
+/* harmony default export */ const library_grid = (grid_grid);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/convert-to-group-buttons/toolbar.js
/**
* WordPress dependencies
*/
@@ -50386,6 +54350,8 @@ const stack = (0,external_React_.createElement)(external_wp_primitives_namespace
*/
+
+
const layouts = {
group: {
type: 'constrained'
@@ -50397,6 +54363,9 @@ const layouts = {
stack: {
type: 'flex',
orientation: 'vertical'
+ },
+ grid: {
+ type: 'grid'
}
};
function BlockGroupToolbar() {
@@ -50438,6 +54407,7 @@ function BlockGroupToolbar() {
};
const onConvertToRow = () => onConvertToGroup('row');
const onConvertToStack = () => onConvertToGroup('stack');
+ const onConvertToGrid = () => onConvertToGroup('grid');
// Don't render the button if the current selection cannot be grouped.
// A good example is selecting multiple button blocks within a Buttons block:
@@ -50452,24 +54422,32 @@ function BlockGroupToolbar() {
const canInsertStack = !!variations.find(({
name
}) => name === 'group-stack');
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- icon: library_group,
- label: (0,external_wp_i18n_namespaceObject._x)('Group', 'verb'),
- onClick: onConvertToGroup
- }), canInsertRow && (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- icon: library_row,
- label: (0,external_wp_i18n_namespaceObject._x)('Row', 'single horizontal line'),
- onClick: onConvertToRow
- }), canInsertStack && (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- icon: library_stack,
- label: (0,external_wp_i18n_namespaceObject._x)('Stack', 'verb'),
- onClick: onConvertToStack
- }));
+ const canInsertGrid = !!variations.find(({
+ name
+ }) => name === 'group-grid');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ icon: library_group,
+ label: (0,external_wp_i18n_namespaceObject._x)('Group', 'verb'),
+ onClick: onConvertToGroup
+ }), canInsertRow && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ icon: library_row,
+ label: (0,external_wp_i18n_namespaceObject._x)('Row', 'single horizontal line'),
+ onClick: onConvertToRow
+ }), canInsertStack && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ icon: library_stack,
+ label: (0,external_wp_i18n_namespaceObject._x)('Stack', 'verb'),
+ onClick: onConvertToStack
+ }), canInsertGrid && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ icon: library_grid,
+ label: (0,external_wp_i18n_namespaceObject._x)('Grid', 'verb'),
+ onClick: onConvertToGrid
+ })]
+ });
}
/* harmony default export */ const toolbar = (BlockGroupToolbar);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit-visually-button/index.js
-
/**
* WordPress dependencies
*/
@@ -50481,6 +54459,7 @@ function BlockGroupToolbar() {
* Internal dependencies
*/
+
function BlockEditVisuallyButton({
clientIds
}) {
@@ -50493,11 +54472,14 @@ function BlockEditVisuallyButton({
if (!canEditVisually) {
return null;
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- onClick: () => {
- toggleBlockMode(clientId);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Edit visually')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ onClick: () => {
+ toggleBlockMode(clientId);
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Edit visually')
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/block-name-context.js
@@ -50509,7 +54491,6 @@ const __unstableBlockNameContext = (0,external_wp_element_namespaceObject.create
/* harmony default export */ const block_name_context = (__unstableBlockNameContext);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/navigable-toolbar/index.js
-
/**
* WordPress dependencies
*/
@@ -50526,6 +54507,7 @@ const __unstableBlockNameContext = (0,external_wp_element_namespaceObject.create
*/
+
function hasOnlyToolbarItem(elements) {
const dataProp = 'toolbarItem';
return !elements.some(element => !(dataProp in element.dataset));
@@ -50646,7 +54628,9 @@ function useToolbarFocus({
}
return () => {
window.cancelAnimationFrame(raf);
- if (!onIndexChange || !navigableToolbarRef) return;
+ if (!onIndexChange || !navigableToolbarRef) {
+ return;
+ }
// When the toolbar element is unmounted and onIndexChange is passed, we
// pass the focused toolbar item index so it can be hydrated later.
const items = getAllFocusableToolbarItemsIn(navigableToolbarRef);
@@ -50699,18 +54683,131 @@ function NavigableToolbar({
focusEditorOnEscape
});
if (isAccessibleToolbar) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Toolbar, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Toolbar, {
label: props['aria-label'],
ref: toolbarRef,
- ...props
- }, children);
+ ...props,
+ children: children
+ });
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.NavigableMenu, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.NavigableMenu, {
orientation: "horizontal",
role: "toolbar",
ref: toolbarRef,
- ...props
- }, children);
+ ...props,
+ children: children
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/shuffle.js
+/**
+ * WordPress dependencies
+ */
+
+
+const shuffle = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/SVG",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z"
+ })
+});
+/* harmony default export */ const library_shuffle = (shuffle);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/shuffle.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+const shuffle_EMPTY_ARRAY = [];
+function shuffle_Container(props) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ ...props
+ })
+ });
+}
+function Shuffle({
+ clientId,
+ as = shuffle_Container
+}) {
+ const {
+ categories,
+ patterns,
+ patternName
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getBlockAttributes,
+ getBlockRootClientId,
+ __experimentalGetAllowedPatterns
+ } = select(store);
+ const attributes = getBlockAttributes(clientId);
+ const _categories = attributes?.metadata?.categories || shuffle_EMPTY_ARRAY;
+ const _patternName = attributes?.metadata?.patternName;
+ const rootBlock = getBlockRootClientId(clientId);
+ const _patterns = __experimentalGetAllowedPatterns(rootBlock);
+ return {
+ categories: _categories,
+ patterns: _patterns,
+ patternName: _patternName
+ };
+ }, [clientId]);
+ const {
+ replaceBlocks
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const sameCategoryPatternsWithSingleWrapper = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ if (!categories || categories.length === 0 || !patterns || patterns.length === 0) {
+ return shuffle_EMPTY_ARRAY;
+ }
+ return patterns.filter(pattern => {
+ return (
+ // Check if the pattern has only one top level block,
+ // otherwise we may shuffle to pattern that will not allow to continue shuffling.
+ pattern.blocks.length === 1 && pattern.categories?.some(category => {
+ return categories.includes(category);
+ }) && (
+ // Check if the pattern is not a synced pattern.
+ pattern.syncStatus === 'unsynced' || !pattern.id)
+ );
+ });
+ }, [categories, patterns]);
+ if (sameCategoryPatternsWithSingleWrapper.length < 2) {
+ return null;
+ }
+ function getNextPattern() {
+ const numberOfPatterns = sameCategoryPatternsWithSingleWrapper.length;
+ const patternIndex = sameCategoryPatternsWithSingleWrapper.findIndex(({
+ name
+ }) => name === patternName);
+ const nextPatternIndex = patternIndex + 1 < numberOfPatterns ? patternIndex + 1 : 0;
+ return sameCategoryPatternsWithSingleWrapper[nextPatternIndex];
+ }
+ const ComponentToUse = as;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ComponentToUse, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Shuffle'),
+ icon: library_shuffle,
+ onClick: () => {
+ const nextPattern = getNextPattern();
+ nextPattern.blocks[0].attributes = {
+ ...nextPattern.blocks[0].attributes,
+ metadata: {
+ ...nextPattern.blocks[0].attributes.metadata,
+ categories
+ }
+ };
+ replaceBlocks(clientId, nextPattern.blocks);
+ }
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-controls/use-has-block-controls.js
@@ -50748,54 +54845,52 @@ function useHasBlockControls(group = 'default') {
return !!fills?.length;
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/connection.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/use-has-block-toolbar.js
/**
* WordPress dependencies
*/
-const connection = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- width: "24",
- height: "24",
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg",
- fillRule: "evenodd"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M5 19L8 16L5 19Z"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16 8L19 5L16 8Z"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.G, null, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M5 19L8 16"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M9.30003 17.3C9.523 17.5237 9.78794 17.7013 10.0797 17.8224C10.3714 17.9435 10.6842 18.0059 11 18.0059C11.3159 18.0059 11.6287 17.9435 11.9204 17.8224C12.2121 17.7013 12.4771 17.5237 12.7 17.3L15 15L9.00003 9L6.70003 11.3C6.47629 11.523 6.29876 11.7879 6.17763 12.0796C6.05649 12.3714 5.99414 12.6841 5.99414 13C5.99414 13.3159 6.05649 13.6286 6.17763 13.9204C6.29876 14.2121 6.47629 14.477 6.70003 14.7L9.30003 17.3Z"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16 8L19 5"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M9 9.00003L15 15L17.3 12.7C17.5237 12.4771 17.7013 12.2121 17.8224 11.9204C17.9435 11.6287 18.0059 11.3159 18.0059 11C18.0059 10.6842 17.9435 10.3714 17.8224 10.0797C17.7013 9.78794 17.5237 9.523 17.3 9.30003L14.7 6.70003C14.477 6.47629 14.2121 6.29876 13.9204 6.17763C13.6286 6.05649 13.3159 5.99414 13 5.99414C12.6841 5.99414 12.3714 6.05649 12.0796 6.17763C11.7879 6.29876 11.523 6.47629 11.3 6.70003L9 9.00003Z"
-})));
-/* harmony default export */ const library_connection = (connection);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-bindings-toolbar-indicator/index.js
/**
- * WordPress dependencies
+ * Internal dependencies
*/
-function BlockBindingsToolbarIndicator() {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarItem, {
- as: 'div',
- "aria-label": (0,external_wp_i18n_namespaceObject._x)('Connected', 'block toolbar button label'),
- className: "block-editor-block-bindings-toolbar-indicator"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- icon: library_connection,
- size: 24
- })));
+/**
+ * Returns true if the block toolbar should be shown.
+ *
+ * @return {boolean} Whether the block toolbar component will be rendered.
+ */
+function useHasBlockToolbar() {
+ const {
+ isToolbarEnabled,
+ isDefaultEditingMode
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getBlockEditingMode,
+ getBlockName,
+ getBlockSelectionStart
+ } = select(store);
+
+ // we only care about the 1st selected block
+ // for the toolbar, so we use getBlockSelectionStart
+ // instead of getSelectedBlockClientIds
+ const selectedBlockClientId = getBlockSelectionStart();
+ const blockType = selectedBlockClientId && (0,external_wp_blocks_namespaceObject.getBlockType)(getBlockName(selectedBlockClientId));
+ return {
+ isToolbarEnabled: blockType && (0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockType, '__experimentalToolbar', true),
+ isDefaultEditingMode: getBlockEditingMode(selectedBlockClientId) === 'default'
+ };
+ }, []);
+ const hasAnyBlockControls = useHasAnyBlockControls();
+ if (!isToolbarEnabled || !isDefaultEditingMode && !hasAnyBlockControls) {
+ return false;
+ }
+ return true;
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/index.js
-
/**
* External dependencies
*/
@@ -50830,7 +54925,6 @@ function BlockBindingsToolbarIndicator() {
-
/**
* Renders the block toolbar.
*
@@ -50843,6 +54937,9 @@ function BlockBindingsToolbarIndicator() {
* @param {Function} props.__experimentalOnIndexChange Callback function to be called when the index of the focused toolbar item changes.
* @param {string} props.variant Style variant of the toolbar, also passed to the Dropdowns rendered from Block Toolbar Buttons.
*/
+
+
+
function PrivateBlockToolbar({
hideDragHandle,
focusOnMount,
@@ -50855,7 +54952,7 @@ function PrivateBlockToolbar({
blockClientIds,
isDefaultEditingMode,
blockType,
- blockName,
+ toolbarKey,
shouldShowVisualToolbar,
showParentSelector,
isUsingBindings
@@ -50881,15 +54978,15 @@ function PrivateBlockToolbar({
const _blockName = getBlockName(selectedBlockClientId);
const isValid = selectedBlockClientIds.every(id => isBlockValid(id));
const isVisual = selectedBlockClientIds.every(id => getBlockMode(id) === 'visual');
- const _isUsingBindings = !!getBlockAttributes(selectedBlockClientId)?.metadata?.bindings;
+ const _isUsingBindings = selectedBlockClientIds.every(clientId => !!getBlockAttributes(clientId)?.metadata?.bindings);
return {
blockClientId: selectedBlockClientId,
blockClientIds: selectedBlockClientIds,
isDefaultEditingMode: _isDefaultEditingMode,
- blockName: _blockName,
blockType: selectedBlockClientId && (0,external_wp_blocks_namespaceObject.getBlockType)(_blockName),
shouldShowVisualToolbar: isValid && isVisual,
rootClientId: blockRootClientId,
+ toolbarKey: `${selectedBlockClientId}${firstParentClientId}`,
showParentSelector: parentBlockType && getBlockEditingMode(firstParentClientId) === 'default' && (0,external_wp_blocks_namespaceObject.hasBlockSupport)(parentBlockType, '__experimentalParentSelector', true) && selectedBlockClientIds.length === 1 && _isDefaultEditingMode,
isUsingBindings: _isUsingBindings
};
@@ -50903,22 +55000,22 @@ function PrivateBlockToolbar({
ref: nodeRef
});
const isLargeViewport = !(0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
- const isToolbarEnabled = blockType && (0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockType, '__experimentalToolbar', true);
- const hasAnyBlockControls = useHasAnyBlockControls();
- if (!isToolbarEnabled || !isDefaultEditingMode && !hasAnyBlockControls) {
+ const hasBlockToolbar = useHasBlockToolbar();
+ if (!hasBlockToolbar) {
return null;
}
const isMultiToolbar = blockClientIds.length > 1;
const isSynced = (0,external_wp_blocks_namespaceObject.isReusableBlock)(blockType) || (0,external_wp_blocks_namespaceObject.isTemplatePart)(blockType);
// Shifts the toolbar to make room for the parent block selector.
- const classes = classnames_default()('block-editor-block-contextual-toolbar', {
+ const classes = dist_clsx('block-editor-block-contextual-toolbar', {
'has-parent': showParentSelector
});
- const innerClasses = classnames_default()('block-editor-block-toolbar', {
- 'is-synced': isSynced
+ const innerClasses = dist_clsx('block-editor-block-toolbar', {
+ 'is-synced': isSynced,
+ 'is-connected': isUsingBindings
});
- return (0,external_React_.createElement)(NavigableToolbar, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigableToolbar, {
focusEditorOnEscape: true,
className: classes
/* translators: accessibility text for the block toolbar */,
@@ -50932,43 +55029,55 @@ function PrivateBlockToolbar({
// Resets the index whenever the active block changes so
// this is not persisted. See https://github.com/WordPress/gutenberg/pull/25760#issuecomment-717906169
,
- key: blockClientId
- }, (0,external_React_.createElement)("div", {
- ref: toolbarWrapperRef,
- className: innerClasses
- }, !isMultiToolbar && isLargeViewport && isDefaultEditingMode && (0,external_React_.createElement)(BlockParentSelector, null), isUsingBindings && canBindBlock(blockName) && (0,external_React_.createElement)(BlockBindingsToolbarIndicator, null), (shouldShowVisualToolbar || isMultiToolbar) && isDefaultEditingMode && (0,external_React_.createElement)("div", {
- ref: nodeRef,
- ...showHoveredOrFocusedGestures
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarGroup, {
- className: "block-editor-block-toolbar__block-controls"
- }, (0,external_React_.createElement)(block_switcher, {
- clientIds: blockClientIds
- }), !isMultiToolbar && (0,external_React_.createElement)(BlockLockToolbar, {
- clientId: blockClientId
- }), (0,external_React_.createElement)(block_mover, {
- clientIds: blockClientIds,
- hideDragHandle: hideDragHandle
- }))), shouldShowVisualToolbar && isMultiToolbar && (0,external_React_.createElement)(toolbar, null), shouldShowVisualToolbar && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(block_controls.Slot, {
- group: "parent",
- className: "block-editor-block-toolbar__slot"
- }), (0,external_React_.createElement)(block_controls.Slot, {
- group: "block",
- className: "block-editor-block-toolbar__slot"
- }), (0,external_React_.createElement)(block_controls.Slot, {
- className: "block-editor-block-toolbar__slot"
- }), (0,external_React_.createElement)(block_controls.Slot, {
- group: "inline",
- className: "block-editor-block-toolbar__slot"
- }), (0,external_React_.createElement)(block_controls.Slot, {
- group: "other",
- className: "block-editor-block-toolbar__slot"
- }), (0,external_React_.createElement)(block_name_context.Provider, {
- value: blockType?.name
- }, (0,external_React_.createElement)(block_toolbar_last_item.Slot, null))), (0,external_React_.createElement)(BlockEditVisuallyButton, {
- clientIds: blockClientIds
- }), isDefaultEditingMode && (0,external_React_.createElement)(block_settings_menu, {
- clientIds: blockClientIds
- })));
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ref: toolbarWrapperRef,
+ className: innerClasses,
+ children: [!isMultiToolbar && isLargeViewport && isDefaultEditingMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockParentSelector, {}), (shouldShowVisualToolbar || isMultiToolbar) && (isDefaultEditingMode || isSynced) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ref: nodeRef,
+ ...showHoveredOrFocusedGestures,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.ToolbarGroup, {
+ className: "block-editor-block-toolbar__block-controls",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_switcher, {
+ clientIds: blockClientIds,
+ disabled: !isDefaultEditingMode,
+ isUsingBindings: isUsingBindings
+ }), isDefaultEditingMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [!isMultiToolbar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockLockToolbar, {
+ clientId: blockClientId
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_mover, {
+ clientIds: blockClientIds,
+ hideDragHandle: hideDragHandle
+ })]
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Shuffle, {
+ clientId: blockClientId
+ }), shouldShowVisualToolbar && isMultiToolbar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toolbar, {}), shouldShowVisualToolbar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_controls.Slot, {
+ group: "parent",
+ className: "block-editor-block-toolbar__slot"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_controls.Slot, {
+ group: "block",
+ className: "block-editor-block-toolbar__slot"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_controls.Slot, {
+ className: "block-editor-block-toolbar__slot"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_controls.Slot, {
+ group: "inline",
+ className: "block-editor-block-toolbar__slot"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_controls.Slot, {
+ group: "other",
+ className: "block-editor-block-toolbar__slot"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_name_context.Provider, {
+ value: blockType?.name,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_toolbar_last_item.Slot, {})
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockEditVisuallyButton, {
+ clientIds: blockClientIds
+ }), isDefaultEditingMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_settings_menu, {
+ clientIds: blockClientIds
+ })]
+ })
+ }, toolbarKey);
}
/**
@@ -50984,7 +55093,7 @@ function BlockToolbar({
hideDragHandle,
variant
}) {
- return (0,external_React_.createElement)(PrivateBlockToolbar, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivateBlockToolbar, {
hideDragHandle: hideDragHandle,
variant: variant,
focusOnMount: undefined,
@@ -50994,7 +55103,6 @@ function BlockToolbar({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-tools/block-toolbar-popover.js
-
/**
* External dependencies
*/
@@ -51013,6 +55121,7 @@ function BlockToolbar({
+
function BlockToolbarPopover({
clientId,
isTyping,
@@ -51047,29 +55156,46 @@ function BlockToolbarPopover({
contentElement: __unstableContentRef?.current,
clientId
});
- return !isTyping && (0,external_React_.createElement)(block_popover, {
+ return !isTyping && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_popover, {
clientId: capturingClientId || clientId,
bottomClientId: lastClientId,
- className: classnames_default()('block-editor-block-list__block-popover', {
+ className: dist_clsx('block-editor-block-list__block-popover', {
'is-insertion-point-visible': isInsertionPointVisible
}),
resize: false,
- ...popoverProps
- }, (0,external_React_.createElement)(PrivateBlockToolbar
- // If the toolbar is being shown because of being forced
- // it should focus the toolbar right after the mount.
- , {
- focusOnMount: isToolbarForced.current,
- __experimentalInitialIndex: initialToolbarItemIndexRef.current,
- __experimentalOnIndexChange: index => {
- initialToolbarItemIndexRef.current = index;
- },
- variant: "toolbar"
- }));
+ ...popoverProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivateBlockToolbar
+ // If the toolbar is being shown because of being forced
+ // it should focus the toolbar right after the mount.
+ , {
+ focusOnMount: isToolbarForced.current,
+ __experimentalInitialIndex: initialToolbarItemIndexRef.current,
+ __experimentalOnIndexChange: index => {
+ initialToolbarItemIndexRef.current = index;
+ },
+ variant: "toolbar"
+ })
+ });
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-tools/block-selection-button.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/trash.js
+/**
+ * WordPress dependencies
+ */
+
+const trash = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"
+ })
+});
+/* harmony default export */ const library_trash = (trash);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-tools/block-selection-button.js
/**
* External dependencies
*/
@@ -51098,6 +55224,7 @@ function BlockToolbarPopover({
+
/**
* 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
@@ -51108,6 +55235,8 @@ function BlockToolbarPopover({
*
* @return {Component} The component to be rendered.
*/
+
+
function BlockSelectionButton({
clientId,
rootClientId
@@ -51118,7 +55247,11 @@ function BlockSelectionButton({
getBlockIndex,
hasBlockMovingClientId,
getBlockListSettings,
- __unstableGetEditorMode
+ __unstableGetEditorMode,
+ getNextBlockClientId,
+ getPreviousBlockClientId,
+ canRemoveBlock,
+ canMoveBlock
} = select(store);
const {
getActiveBlockVariation,
@@ -51132,18 +55265,47 @@ function BlockSelectionButton({
const blockType = getBlockType(name);
const orientation = getBlockListSettings(rootClientId)?.orientation;
const match = getActiveBlockVariation(name, attributes);
+ const isBlockTemplatePart = blockType?.name === 'core/template-part';
+ let isNextBlockTemplatePart = false;
+ const nextClientId = getNextBlockClientId();
+ if (nextClientId) {
+ const {
+ name: nextName
+ } = getBlock(nextClientId);
+ const nextBlockType = getBlockType(nextName);
+ isNextBlockTemplatePart = nextBlockType?.name === 'core/template-part';
+ }
+ let isPrevBlockTemplatePart = false;
+ const prevClientId = getPreviousBlockClientId();
+ if (prevClientId) {
+ const {
+ name: prevName
+ } = getBlock(prevClientId);
+ const prevBlockType = getBlockType(prevName);
+ isPrevBlockTemplatePart = prevBlockType?.name === 'core/template-part';
+ }
return {
blockMovingMode: hasBlockMovingClientId(),
editorMode: __unstableGetEditorMode(),
icon: match?.icon || blockType.icon,
- label: (0,external_wp_blocks_namespaceObject.__experimentalGetAccessibleBlockLabel)(blockType, attributes, index + 1, orientation)
+ label: (0,external_wp_blocks_namespaceObject.__experimentalGetAccessibleBlockLabel)(blockType, attributes, index + 1, orientation),
+ isBlockTemplatePart,
+ isNextBlockTemplatePart,
+ isPrevBlockTemplatePart,
+ canRemove: canRemoveBlock(clientId),
+ canMove: canMoveBlock(clientId)
};
}, [clientId, rootClientId]);
const {
label,
icon,
blockMovingMode,
- editorMode
+ editorMode,
+ isBlockTemplatePart,
+ isNextBlockTemplatePart,
+ isPrevBlockTemplatePart,
+ canRemove,
+ canMove
} = selected;
const {
setNavigationMode,
@@ -51153,9 +55315,11 @@ function BlockSelectionButton({
// Focus the breadcrumb in navigation mode.
(0,external_wp_element_namespaceObject.useEffect)(() => {
- ref.current.focus();
- (0,external_wp_a11y_namespaceObject.speak)(label);
- }, [label]);
+ if (editorMode === 'navigation') {
+ ref.current.focus();
+ (0,external_wp_a11y_namespaceObject.speak)(label);
+ }
+ }, [label, editorMode]);
const blockElement = useBlockElement(clientId);
const {
hasBlockMovingClientId,
@@ -51265,49 +55429,74 @@ function BlockSelectionButton({
}
}
}
- const classNames = classnames_default()('block-editor-block-list__block-selection-button', {
+ const classNames = dist_clsx('block-editor-block-list__block-selection-button', {
'is-block-moving-mode': !!blockMovingMode
});
const dragHandleLabel = (0,external_wp_i18n_namespaceObject.__)('Drag');
- return (0,external_React_.createElement)("div", {
- className: classNames
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- justify: "center",
- className: "block-editor-block-list__block-selection-button__content"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(block_icon, {
- icon: icon,
- showColors: true
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, editorMode === 'zoom-out' && (0,external_React_.createElement)(block_mover, {
- clientIds: [clientId],
- hideDragHandle: true
- }), editorMode === 'navigation' && (0,external_React_.createElement)(block_draggable, {
- clientIds: [clientId]
- }, draggableProps => (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: drag_handle,
- className: "block-selection-button_drag-handle",
- "aria-hidden": "true",
- label: dragHandleLabel
- // Should not be able to tab to drag handle as this
- // button can only be used with a pointer device.
- ,
- tabIndex: "-1",
- ...draggableProps
- }))), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- ref: ref,
- onClick: editorMode === 'navigation' ? () => setNavigationMode(false) : undefined,
- onKeyDown: onKeyDown,
- label: label,
- showTooltip: false,
- className: "block-selection-button_select-button"
- }, (0,external_React_.createElement)(BlockTitle, {
- clientId: clientId,
- maximumLength: 35
- })))));
+ const showBlockDraggable = canMove && editorMode === 'navigation' || editorMode === 'zoom-out' && canMove && !isBlockTemplatePart;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: classNames,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ justify: "center",
+ className: "block-editor-block-list__block-selection-button__content",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: icon,
+ showColors: true
+ })
+ }), showBlockDraggable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_draggable, {
+ clientIds: [clientId],
+ children: draggableProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: drag_handle,
+ className: "block-selection-button_drag-handle",
+ "aria-hidden": "true",
+ label: dragHandleLabel
+ // Should not be able to tab to drag handle as this
+ // button can only be used with a pointer device.
+ ,
+ tabIndex: "-1",
+ ...draggableProps
+ })
+ })
+ }), editorMode === 'zoom-out' && !isBlockTemplatePart && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_mover, {
+ clientIds: [clientId],
+ hideDragHandle: true,
+ isBlockMoverUpButtonDisabled: isPrevBlockTemplatePart,
+ isBlockMoverDownButtonDisabled: isNextBlockTemplatePart
+ })
+ }), canMove && canRemove && editorMode === 'zoom-out' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Shuffle, {
+ clientId: clientId,
+ as: external_wp_components_namespaceObject.Button
+ }), canRemove && editorMode === 'zoom-out' && !isBlockTemplatePart && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ icon: library_trash,
+ label: "Delete",
+ onClick: () => {
+ removeBlock(clientId);
+ }
+ })
+ }), editorMode === 'navigation' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ ref: ref,
+ onClick: editorMode === 'navigation' ? () => setNavigationMode(false) : undefined,
+ onKeyDown: onKeyDown,
+ label: label,
+ showTooltip: false,
+ className: "block-selection-button_select-button",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockTitle, {
+ clientId: clientId,
+ maximumLength: 35
+ })
+ })
+ })]
+ })
+ });
}
/* harmony default export */ const block_selection_button = (BlockSelectionButton);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-tools/block-toolbar-breadcrumb.js
-
/**
* External dependencies
*/
@@ -51320,6 +55509,7 @@ function BlockSelectionButton({
+
function BlockToolbarBreadcrumb({
clientId,
__unstableContentRef
@@ -51334,41 +55524,79 @@ function BlockToolbarBreadcrumb({
contentElement: __unstableContentRef?.current,
clientId
});
- return (0,external_React_.createElement)(block_popover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivateBlockPopover, {
clientId: capturingClientId || clientId,
bottomClientId: lastClientId,
- className: classnames_default()('block-editor-block-list__block-popover', {
+ className: dist_clsx('block-editor-block-list__block-popover', {
'is-insertion-point-visible': isInsertionPointVisible
}),
resize: false,
- ...popoverProps
- }, (0,external_React_.createElement)(block_selection_button, {
- clientId: clientId,
- rootClientId: rootClientId
- }));
+ ...popoverProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_selection_button, {
+ clientId: clientId,
+ rootClientId: rootClientId
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-tools/zoom-out-mode-inserters.js
-
/**
* WordPress dependencies
*/
+
+
+
/**
* Internal dependencies
*/
-function ZoomOutModeInserters({
- __unstableContentRef
-}) {
+
+
+function ZoomOutModeInserters() {
const [isReady, setIsReady] = (0,external_wp_element_namespaceObject.useState)(false);
- const blockOrder = (0,external_wp_data_namespaceObject.useSelect)(select => {
- return select(store).getBlockOrder();
+ const {
+ blockOrder,
+ sectionRootClientId,
+ insertionPoint,
+ setInserterIsOpened,
+ selectedSection
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getSettings,
+ getBlockOrder
+ } = select(store);
+ const {
+ sectionRootClientId: root
+ } = unlock(getSettings());
+ // To do: move ZoomOutModeInserters to core/editor.
+ // Or we perhaps we should move the insertion point state to the
+ // block-editor store. I'm not sure what it was ever moved to the editor
+ // store, because all the inserter components all live in the
+ // block-editor package.
+ // eslint-disable-next-line @wordpress/data-no-store-string-literals
+ const editor = select('core/editor');
+ return {
+ selectedSection: editor.getSelectedBlock(),
+ blockOrder: getBlockOrder(root),
+ insertionPoint: unlock(editor).getInsertionPoint(),
+ sectionRootClientId: root,
+ setInserterIsOpened: getSettings().__experimentalSetIsInserterOpened
+ };
}, []);
+ const isMounted = (0,external_wp_element_namespaceObject.useRef)(false);
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (!isMounted.current) {
+ isMounted.current = true;
+ return;
+ }
+ // reset insertion point when the block order changes
+ setInserterIsOpened(true);
+ }, [blockOrder, setInserterIsOpened]);
// Defer the initial rendering to avoid the jumps due to the animation.
(0,external_wp_element_namespaceObject.useEffect)(() => {
@@ -51379,32 +55607,90 @@ function ZoomOutModeInserters({
clearTimeout(timeout);
};
}, []);
- if (!isReady) {
+ if (!isReady || !selectedSection) {
return null;
}
- return blockOrder.map((clientId, index) => {
- if (index === blockOrder.length - 1) {
- return null;
- }
- return (0,external_React_.createElement)(inbetween, {
- key: clientId,
+ return [undefined, ...blockOrder].map((clientId, index) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(inbetween, {
previousClientId: clientId,
- nextClientId: blockOrder[index + 1],
- __unstableContentRef: __unstableContentRef
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-block-list__insertion-point-inserter is-with-inserter"
- }, (0,external_React_.createElement)(inserter, {
- position: "bottom center",
- clientId: blockOrder[index + 1],
- __experimentalIsQuick: true
- })));
+ nextClientId: blockOrder[index],
+ children: [insertionPoint.insertionIndex === index && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ style: {
+ borderRadius: '0',
+ height: '12px',
+ opacity: 1,
+ transform: 'translateY(-50%)',
+ width: '100%'
+ },
+ className: "block-editor-block-list__insertion-point-indicator"
+ }), insertionPoint.insertionIndex !== index && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ icon: library_plus,
+ size: "compact",
+ className: "block-editor-button-pattern-inserter__button",
+ onClick: () => {
+ setInserterIsOpened({
+ rootClientId: sectionRootClientId,
+ insertionIndex: index,
+ tab: 'patterns',
+ category: 'all'
+ });
+ },
+ label: (0,external_wp_i18n_namespaceObject._x)('Add pattern', 'Generic label for pattern inserter button')
+ })]
+ }, index);
});
}
/* harmony default export */ const zoom_out_mode_inserters = (ZoomOutModeInserters);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-tools/index.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-tools/use-show-block-tools.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
/**
+ * Source of truth for which block tools are showing in the block editor.
+ *
+ * @return {Object} Object of which block tools will be shown.
+ */
+function useShowBlockTools() {
+ return (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getSelectedBlockClientId,
+ getFirstMultiSelectedBlockClientId,
+ getBlock,
+ getSettings,
+ hasMultiSelection,
+ __unstableGetEditorMode,
+ isTyping
+ } = select(store);
+ const clientId = getSelectedBlockClientId() || getFirstMultiSelectedBlockClientId();
+ const block = getBlock(clientId) || {
+ name: '',
+ attributes: {}
+ };
+ const editorMode = __unstableGetEditorMode();
+ const hasSelectedBlock = clientId && block?.name;
+ const isEmptyDefaultBlock = (0,external_wp_blocks_namespaceObject.isUnmodifiedDefaultBlock)(block);
+ const _showEmptyBlockSideInserter = clientId && !isTyping() && editorMode === 'edit' && isEmptyDefaultBlock;
+ const maybeShowBreadcrumb = hasSelectedBlock && !hasMultiSelection() && (editorMode === 'navigation' || editorMode === 'zoom-out');
+ return {
+ showEmptyBlockSideInserter: _showEmptyBlockSideInserter,
+ showBreadcrumb: !_showEmptyBlockSideInserter && maybeShowBreadcrumb,
+ showBlockToolbarPopover: !getSettings().hasFixedToolbar && !_showEmptyBlockSideInserter && hasSelectedBlock && !isEmptyDefaultBlock && !maybeShowBreadcrumb
+ };
+ }, []);
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-tools/index.js
+/**
* WordPress dependencies
*/
@@ -51413,6 +55699,9 @@ function ZoomOutModeInserters({
+
+
+
/**
* Internal dependencies
*/
@@ -51423,40 +55712,25 @@ function ZoomOutModeInserters({
+
+
+
+
function block_tools_selector(select) {
const {
getSelectedBlockClientId,
getFirstMultiSelectedBlockClientId,
- getBlock,
getSettings,
- hasMultiSelection,
__unstableGetEditorMode,
isTyping
} = select(store);
const clientId = getSelectedBlockClientId() || getFirstMultiSelectedBlockClientId();
- const {
- name = '',
- attributes = {}
- } = getBlock(clientId) || {};
const editorMode = __unstableGetEditorMode();
- const hasSelectedBlock = clientId && name;
- const isEmptyDefaultBlock = (0,external_wp_blocks_namespaceObject.isUnmodifiedDefaultBlock)({
- name,
- attributes
- });
- const _showEmptyBlockSideInserter = clientId && !isTyping() && editorMode === 'edit' && (0,external_wp_blocks_namespaceObject.isUnmodifiedDefaultBlock)({
- name,
- attributes
- });
- const maybeShowBreadcrumb = hasSelectedBlock && !hasMultiSelection() && (editorMode === 'navigation' || editorMode === 'zoom-out');
return {
clientId,
hasFixedToolbar: getSettings().hasFixedToolbar,
isTyping: isTyping(),
- isZoomOutMode: editorMode === 'zoom-out',
- showEmptyBlockSideInserter: _showEmptyBlockSideInserter,
- showBreadcrumb: !_showEmptyBlockSideInserter && maybeShowBreadcrumb,
- showBlockToolbar: !getSettings().hasFixedToolbar && !_showEmptyBlockSideInserter && hasSelectedBlock && !isEmptyDefaultBlock && !maybeShowBreadcrumb
+ isZoomOutMode: editorMode === 'zoom-out'
};
}
@@ -51478,27 +55752,38 @@ function BlockTools({
clientId,
hasFixedToolbar,
isTyping,
- isZoomOutMode,
- showEmptyBlockSideInserter,
- showBreadcrumb,
- showBlockToolbar
+ isZoomOutMode
} = (0,external_wp_data_namespaceObject.useSelect)(block_tools_selector, []);
const isMatch = (0,external_wp_keyboardShortcuts_namespaceObject.__unstableUseShortcutEventMatch)();
const {
+ getBlocksByClientId,
getSelectedBlockClientIds,
- getBlockRootClientId
+ getBlockRootClientId,
+ isGroupable
} = (0,external_wp_data_namespaceObject.useSelect)(store);
const {
+ getGroupingBlockName
+ } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blocks_namespaceObject.store);
+ const {
+ showEmptyBlockSideInserter,
+ showBreadcrumb,
+ showBlockToolbarPopover
+ } = useShowBlockTools();
+ const {
duplicateBlocks,
removeBlocks,
+ replaceBlocks,
insertAfterBlock,
insertBeforeBlock,
selectBlock,
moveBlocksUp,
- moveBlocksDown
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ moveBlocksDown,
+ expandBlock
+ } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
function onKeyDown(event) {
- if (event.defaultPrevented) return;
+ if (event.defaultPrevented) {
+ return;
+ }
if (isMatch('core/block-editor/move-up', event)) {
const clientIds = getSelectedBlockClientIds();
if (clientIds.length) {
@@ -51554,43 +55839,420 @@ function BlockTools({
// In effect, to the user this feels like deselecting the multi-selection.
selectBlock(clientIds[0]);
}
+ } else if (isMatch('core/block-editor/collapse-list-view', event)) {
+ // If focus is currently within a text field, such as a rich text block or other editable field,
+ // skip collapsing the list view, and allow the keyboard shortcut to be handled by the text field.
+ // This condition checks for both the active element and the active element within an iframed editor.
+ if ((0,external_wp_dom_namespaceObject.isTextField)(event.target) || (0,external_wp_dom_namespaceObject.isTextField)(event.target?.contentWindow?.document?.activeElement)) {
+ return;
+ }
+ event.preventDefault();
+ expandBlock(clientId);
+ } else if (isMatch('core/block-editor/group', event)) {
+ const clientIds = getSelectedBlockClientIds();
+ if (clientIds.length > 1 && isGroupable(clientIds)) {
+ event.preventDefault();
+ const blocks = getBlocksByClientId(clientIds);
+ const groupingBlockName = getGroupingBlockName();
+ const newBlocks = (0,external_wp_blocks_namespaceObject.switchToBlockType)(blocks, groupingBlockName);
+ replaceBlocks(clientIds, newBlocks);
+ (0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.__)('Selected blocks are grouped.'));
+ }
}
}
const blockToolbarRef = use_popover_scroll(__unstableContentRef);
const blockToolbarAfterRef = use_popover_scroll(__unstableContentRef);
return (
+ /*#__PURE__*/
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
- (0,external_React_.createElement)("div", {
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...props,
- onKeyDown: onKeyDown
- }, (0,external_React_.createElement)(insertion_point_InsertionPointOpenRef.Provider, {
- value: (0,external_wp_element_namespaceObject.useRef)(false)
- }, !isTyping && (0,external_React_.createElement)(InsertionPoint, {
- __unstableContentRef: __unstableContentRef
- }), showEmptyBlockSideInserter && (0,external_React_.createElement)(EmptyBlockInserter, {
- __unstableContentRef: __unstableContentRef,
- clientId: clientId
- }), showBlockToolbar && (0,external_React_.createElement)(BlockToolbarPopover, {
- __unstableContentRef: __unstableContentRef,
- clientId: clientId,
- isTyping: isTyping
- }), showBreadcrumb && (0,external_React_.createElement)(BlockToolbarBreadcrumb, {
- __unstableContentRef: __unstableContentRef,
- clientId: clientId
- }), !isZoomOutMode && !hasFixedToolbar && (0,external_React_.createElement)(external_wp_components_namespaceObject.Popover.Slot, {
- name: "block-toolbar",
- ref: blockToolbarRef
- }), children, (0,external_React_.createElement)(external_wp_components_namespaceObject.Popover.Slot, {
- name: "__unstable-block-tools-after",
- ref: blockToolbarAfterRef
- }), isZoomOutMode && (0,external_React_.createElement)(zoom_out_mode_inserters, {
- __unstableContentRef: __unstableContentRef
- })))
+ onKeyDown: onKeyDown,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(insertion_point_InsertionPointOpenRef.Provider, {
+ value: (0,external_wp_element_namespaceObject.useRef)(false),
+ children: [!isTyping && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InsertionPoint, {
+ __unstableContentRef: __unstableContentRef
+ }), showEmptyBlockSideInserter && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EmptyBlockInserter, {
+ __unstableContentRef: __unstableContentRef,
+ clientId: clientId
+ }), showBlockToolbarPopover && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockToolbarPopover, {
+ __unstableContentRef: __unstableContentRef,
+ clientId: clientId,
+ isTyping: isTyping
+ }), showBreadcrumb && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockToolbarBreadcrumb, {
+ __unstableContentRef: __unstableContentRef,
+ clientId: clientId
+ }), !isZoomOutMode && !hasFixedToolbar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover.Slot, {
+ name: "block-toolbar",
+ ref: blockToolbarRef
+ }), children, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover.Slot, {
+ name: "__unstable-block-tools-after",
+ ref: blockToolbarAfterRef
+ }), window.__experimentalEnableZoomedOutPatternsTab && isZoomOutMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(zoom_out_mode_inserters, {
+ __unstableContentRef: __unstableContentRef
+ })]
+ })
+ })
);
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-canvas/index.js
+;// CONCATENATED MODULE: external ["wp","commands"]
+const external_wp_commands_namespaceObject = window["wp"]["commands"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/move-to.js
+/**
+ * WordPress dependencies
+ */
+
+
+const move_to_moveTo = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M19.75 9c0-1.257-.565-2.197-1.39-2.858-.797-.64-1.827-1.017-2.815-1.247-1.802-.42-3.703-.403-4.383-.396L11 4.5V6l.177-.001c.696-.006 2.416-.02 4.028.356.887.207 1.67.518 2.216.957.52.416.829.945.829 1.688 0 .592-.167.966-.407 1.23-.255.281-.656.508-1.236.674-1.19.34-2.82.346-4.607.346h-.077c-1.692 0-3.527 0-4.942.404-.732.209-1.424.545-1.935 1.108-.526.579-.796 1.33-.796 2.238 0 1.257.565 2.197 1.39 2.858.797.64 1.827 1.017 2.815 1.247 1.802.42 3.703.403 4.383.396L13 19.5h.714V22L18 18.5 13.714 15v3H13l-.177.001c-.696.006-2.416.02-4.028-.356-.887-.207-1.67-.518-2.216-.957-.52-.416-.829-.945-.829-1.688 0-.592.167-.966.407-1.23.255-.281.656-.508 1.237-.674 1.189-.34 2.819-.346 4.606-.346h.077c1.692 0 3.527 0 4.941-.404.732-.209 1.425-.545 1.936-1.108.526-.579.796-1.33.796-2.238z"
+ })
+});
+/* harmony default export */ const move_to = (move_to_moveTo);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/ungroup.js
+/**
+ * WordPress dependencies
+ */
+
+
+const ungroup = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"
+ })
+});
+/* harmony default export */ const library_ungroup = (ungroup);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-block-commands/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+const useTransformCommands = () => {
+ const {
+ replaceBlocks,
+ multiSelect
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const {
+ blocks,
+ clientIds,
+ canRemove,
+ possibleBlockTransformations,
+ invalidSelection
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getBlockRootClientId,
+ getBlockTransformItems,
+ getSelectedBlockClientIds,
+ getBlocksByClientId,
+ canRemoveBlocks
+ } = select(store);
+ const selectedBlockClientIds = getSelectedBlockClientIds();
+ const selectedBlocks = getBlocksByClientId(selectedBlockClientIds);
+
+ // selectedBlocks can have `null`s when something tries to call `selectBlock` with an inexistent clientId.
+ // These nulls will cause fatal errors down the line.
+ // In order to prevent discrepancies between selectedBlockClientIds and selectedBlocks, we effectively treat the entire selection as invalid.
+ // @see https://github.com/WordPress/gutenberg/pull/59410#issuecomment-2006304536
+ if (selectedBlocks.filter(block => !block).length > 0) {
+ return {
+ invalidSelection: true
+ };
+ }
+ const rootClientId = getBlockRootClientId(selectedBlockClientIds[0]);
+ return {
+ blocks: selectedBlocks,
+ clientIds: selectedBlockClientIds,
+ possibleBlockTransformations: getBlockTransformItems(selectedBlocks, rootClientId),
+ canRemove: canRemoveBlocks(selectedBlockClientIds),
+ invalidSelection: false
+ };
+ }, []);
+ if (invalidSelection) {
+ return {
+ isLoading: false,
+ commands: []
+ };
+ }
+ const isTemplate = blocks.length === 1 && (0,external_wp_blocks_namespaceObject.isTemplatePart)(blocks[0]);
+ function selectForMultipleBlocks(insertedBlocks) {
+ if (insertedBlocks.length > 1) {
+ multiSelect(insertedBlocks[0].clientId, insertedBlocks[insertedBlocks.length - 1].clientId);
+ }
+ }
+
+ // Simple block tranformation based on the `Block Transforms` API.
+ function onBlockTransform(name) {
+ const newBlocks = (0,external_wp_blocks_namespaceObject.switchToBlockType)(blocks, name);
+ replaceBlocks(clientIds, newBlocks);
+ selectForMultipleBlocks(newBlocks);
+ }
+
+ /**
+ * The `isTemplate` check is a stopgap solution here.
+ * Ideally, the Transforms API should handle this
+ * by allowing to exclude blocks from wildcard transformations.
+ */
+ const hasPossibleBlockTransformations = !!possibleBlockTransformations.length && canRemove && !isTemplate;
+ if (!clientIds || clientIds.length < 1 || !hasPossibleBlockTransformations) {
+ return {
+ isLoading: false,
+ commands: []
+ };
+ }
+ const commands = possibleBlockTransformations.map(transformation => {
+ const {
+ name,
+ title,
+ icon
+ } = transformation;
+ return {
+ name: 'core/block-editor/transform-to-' + name.replace('/', '-'),
+ // translators: %s: block title/name.
+ label: (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Transform to %s'), title),
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: icon
+ }),
+ callback: ({
+ close
+ }) => {
+ onBlockTransform(name);
+ close();
+ }
+ };
+ });
+ return {
+ isLoading: false,
+ commands
+ };
+};
+const useActionsCommands = () => {
+ const {
+ clientIds
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getSelectedBlockClientIds
+ } = select(store);
+ const selectedBlockClientIds = getSelectedBlockClientIds();
+ return {
+ clientIds: selectedBlockClientIds
+ };
+ }, []);
+ const {
+ getBlockRootClientId,
+ canMoveBlocks,
+ getBlockCount
+ } = (0,external_wp_data_namespaceObject.useSelect)(store);
+ const {
+ setBlockMovingClientId,
+ setNavigationMode,
+ selectBlock
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ if (!clientIds || clientIds.length < 1) {
+ return {
+ isLoading: false,
+ commands: []
+ };
+ }
+ const rootClientId = getBlockRootClientId(clientIds[0]);
+ const canMove = canMoveBlocks(clientIds) && getBlockCount(rootClientId) !== 1;
+ const commands = [];
+ if (canMove) {
+ commands.push({
+ name: 'move-to',
+ label: (0,external_wp_i18n_namespaceObject.__)('Move to'),
+ callback: () => {
+ setNavigationMode(true);
+ selectBlock(clientIds[0]);
+ setBlockMovingClientId(clientIds[0]);
+ },
+ icon: move_to
+ });
+ }
+ return {
+ isLoading: false,
+ commands: commands.map(command => ({
+ ...command,
+ name: 'core/block-editor/action-' + command.name,
+ callback: ({
+ close
+ }) => {
+ command.callback();
+ close();
+ }
+ }))
+ };
+};
+const useQuickActionsCommands = () => {
+ const {
+ clientIds,
+ isUngroupable,
+ isGroupable
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getSelectedBlockClientIds,
+ isUngroupable: _isUngroupable,
+ isGroupable: _isGroupable
+ } = select(store);
+ const selectedBlockClientIds = getSelectedBlockClientIds();
+ return {
+ clientIds: selectedBlockClientIds,
+ isUngroupable: _isUngroupable(),
+ isGroupable: _isGroupable()
+ };
+ }, []);
+ const {
+ canInsertBlockType,
+ getBlockRootClientId,
+ getBlocksByClientId,
+ canRemoveBlocks
+ } = (0,external_wp_data_namespaceObject.useSelect)(store);
+ const {
+ getDefaultBlockName,
+ getGroupingBlockName
+ } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blocks_namespaceObject.store);
+ const blocks = getBlocksByClientId(clientIds);
+ const {
+ removeBlocks,
+ replaceBlocks,
+ duplicateBlocks,
+ insertAfterBlock,
+ insertBeforeBlock
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const onGroup = () => {
+ if (!blocks.length) {
+ return;
+ }
+ const groupingBlockName = getGroupingBlockName();
+
+ // Activate the `transform` on `core/group` which does the conversion.
+ const newBlocks = (0,external_wp_blocks_namespaceObject.switchToBlockType)(blocks, groupingBlockName);
+ if (!newBlocks) {
+ return;
+ }
+ replaceBlocks(clientIds, newBlocks);
+ };
+ const onUngroup = () => {
+ if (!blocks.length) {
+ return;
+ }
+ const innerBlocks = blocks[0].innerBlocks;
+ if (!innerBlocks.length) {
+ return;
+ }
+ replaceBlocks(clientIds, innerBlocks);
+ };
+ if (!clientIds || clientIds.length < 1) {
+ return {
+ isLoading: false,
+ commands: []
+ };
+ }
+ const rootClientId = getBlockRootClientId(clientIds[0]);
+ const canInsertDefaultBlock = canInsertBlockType(getDefaultBlockName(), rootClientId);
+ const canDuplicate = blocks.every(block => {
+ return !!block && (0,external_wp_blocks_namespaceObject.hasBlockSupport)(block.name, 'multiple', true) && canInsertBlockType(block.name, rootClientId);
+ });
+ const canRemove = canRemoveBlocks(clientIds);
+ const commands = [];
+ if (canDuplicate) {
+ commands.push({
+ name: 'duplicate',
+ label: (0,external_wp_i18n_namespaceObject.__)('Duplicate'),
+ callback: () => duplicateBlocks(clientIds, true),
+ icon: library_copy
+ });
+ }
+ if (canInsertDefaultBlock) {
+ commands.push({
+ name: 'add-before',
+ label: (0,external_wp_i18n_namespaceObject.__)('Add before'),
+ callback: () => {
+ const clientId = Array.isArray(clientIds) ? clientIds[0] : clientId;
+ insertBeforeBlock(clientId);
+ },
+ icon: library_plus
+ }, {
+ name: 'add-after',
+ label: (0,external_wp_i18n_namespaceObject.__)('Add after'),
+ callback: () => {
+ const clientId = Array.isArray(clientIds) ? clientIds[clientIds.length - 1] : clientId;
+ insertAfterBlock(clientId);
+ },
+ icon: library_plus
+ });
+ }
+ if (isGroupable) {
+ commands.push({
+ name: 'Group',
+ label: (0,external_wp_i18n_namespaceObject.__)('Group'),
+ callback: onGroup,
+ icon: library_group
+ });
+ }
+ if (isUngroupable) {
+ commands.push({
+ name: 'ungroup',
+ label: (0,external_wp_i18n_namespaceObject.__)('Ungroup'),
+ callback: onUngroup,
+ icon: library_ungroup
+ });
+ }
+ if (canRemove) {
+ commands.push({
+ name: 'remove',
+ label: (0,external_wp_i18n_namespaceObject.__)('Delete'),
+ callback: () => removeBlocks(clientIds, true),
+ icon: library_trash
+ });
+ }
+ return {
+ isLoading: false,
+ commands: commands.map(command => ({
+ ...command,
+ name: 'core/block-editor/action-' + command.name,
+ callback: ({
+ close
+ }) => {
+ command.callback();
+ close();
+ }
+ }))
+ };
+};
+const useBlockCommands = () => {
+ (0,external_wp_commands_namespaceObject.useCommandLoader)({
+ name: 'core/block-editor/blockTransforms',
+ hook: useTransformCommands
+ });
+ (0,external_wp_commands_namespaceObject.useCommandLoader)({
+ name: 'core/block-editor/blockActions',
+ hook: useActionsCommands
+ });
+ (0,external_wp_commands_namespaceObject.useCommandLoader)({
+ name: 'core/block-editor/blockQuickActions',
+ hook: useQuickActionsCommands,
+ context: 'block-selection-edit'
+ });
+};
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-canvas/index.js
/**
* WordPress dependencies
*/
@@ -51607,55 +56269,63 @@ function BlockTools({
+
+
+
function ExperimentalBlockCanvas({
shouldIframe = true,
height = '300px',
- children = (0,external_React_.createElement)(BlockList, null),
+ children = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockList, {}),
styles,
contentRef: contentRefProp,
iframeProps
}) {
+ useBlockCommands();
const resetTypingRef = useMouseMoveTypingReset();
const clearerRef = useBlockSelectionClearer();
const localRef = (0,external_wp_element_namespaceObject.useRef)();
const contentRef = (0,external_wp_compose_namespaceObject.useMergeRefs)([contentRefProp, clearerRef, localRef]);
if (!shouldIframe) {
- return (0,external_React_.createElement)(BlockTools, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(BlockTools, {
__unstableContentRef: localRef,
style: {
height,
display: 'flex'
- }
- }, (0,external_React_.createElement)(EditorStyles, {
- styles: styles,
- scope: ".editor-styles-wrapper"
- }), (0,external_React_.createElement)(writing_flow, {
- ref: contentRef,
- className: "editor-styles-wrapper",
- tabIndex: -1,
- style: {
- height: '100%',
- width: '100%'
- }
- }, children));
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(editor_styles, {
+ styles: styles,
+ scope: ".editor-styles-wrapper"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(writing_flow, {
+ ref: contentRef,
+ className: "editor-styles-wrapper",
+ tabIndex: -1,
+ style: {
+ height: '100%',
+ width: '100%'
+ },
+ children: children
+ })]
+ });
}
- return (0,external_React_.createElement)(BlockTools, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockTools, {
__unstableContentRef: localRef,
style: {
height,
display: 'flex'
- }
- }, (0,external_React_.createElement)(iframe, {
- ...iframeProps,
- ref: resetTypingRef,
- contentRef: contentRef,
- style: {
- ...iframeProps?.style
},
- name: "editor-canvas"
- }, (0,external_React_.createElement)(EditorStyles, {
- styles: styles
- }), children));
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(iframe, {
+ ...iframeProps,
+ ref: resetTypingRef,
+ contentRef: contentRef,
+ style: {
+ ...iframeProps?.style
+ },
+ name: "editor-canvas",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(editor_styles, {
+ styles: styles
+ }), children]
+ })
+ });
}
/**
@@ -51692,15 +56362,15 @@ function BlockCanvas({
height,
styles
}) {
- return (0,external_React_.createElement)(ExperimentalBlockCanvas, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ExperimentalBlockCanvas, {
height: height,
- styles: styles
- }, children);
+ styles: styles,
+ children: children
+ });
}
/* harmony default export */ const block_canvas = (BlockCanvas);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/color-style-selector/index.js
-
/**
* WordPress dependencies
*/
@@ -51708,12 +56378,14 @@ function BlockCanvas({
-const ColorSelectorSVGIcon = () => (0,external_React_.createElement)(external_wp_components_namespaceObject.SVG, {
+
+const ColorSelectorSVGIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 20 20"
-}, (0,external_React_.createElement)(external_wp_components_namespaceObject.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"
-}));
+ viewBox: "0 0 20 20",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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.
@@ -51728,12 +56400,14 @@ const ColorSelectorIcon = ({
style,
className
}) => {
- return (0,external_React_.createElement)("div", {
- className: "block-library-colors-selector__icon-container"
- }, (0,external_React_.createElement)("div", {
- className: `${className} block-library-colors-selector__state-selection`,
- style: style
- }, (0,external_React_.createElement)(ColorSelectorSVGIcon, null)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-library-colors-selector__icon-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: `${className} block-library-colors-selector__state-selection`,
+ style: style,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorSelectorSVGIcon, {})
+ })
+ });
};
/**
@@ -51758,13 +56432,19 @@ const renderToggleComponent = ({
onToggle();
}
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- className: "components-toolbar__control block-library-colors-selector__toggle",
- label: (0,external_wp_i18n_namespaceObject.__)('Open Colors Selector'),
- onClick: onToggle,
- onKeyDown: openOnArrowDown,
- icon: (0,external_React_.createElement)(BackgroundColor, null, (0,external_React_.createElement)(TextColor, null, (0,external_React_.createElement)(ColorSelectorIcon, null)))
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ className: "components-toolbar__control block-library-colors-selector__toggle",
+ label: (0,external_wp_i18n_namespaceObject.__)('Open Colors Selector'),
+ onClick: onToggle,
+ onKeyDown: openOnArrowDown,
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BackgroundColor, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TextColor, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorSelectorIcon, {})
+ })
+ })
+ })
+ });
};
const BlockColorsStyleSelector = ({
children,
@@ -51775,7 +56455,7 @@ const BlockColorsStyleSelector = ({
since: '6.1',
version: '6.3'
});
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Dropdown, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
popoverProps: {
placement: 'bottom-start'
},
@@ -51788,17 +56468,18 @@ const BlockColorsStyleSelector = ({
/* harmony default export */ const color_style_selector = (BlockColorsStyleSelector);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/list-view.js
-
/**
* WordPress dependencies
*/
-const listView = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const listView = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"
+ })
+});
/* harmony default export */ const list_view = (listView);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/list-view/context.js
@@ -51810,7 +56491,6 @@ const ListViewContext = (0,external_wp_element_namespaceObject.createContext)({}
const useListViewContext = () => (0,external_wp_element_namespaceObject.useContext)(ListViewContext);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/list-view/aria-referenced-text.js
-
/**
* WordPress dependencies
*/
@@ -51823,6 +56503,7 @@ const useListViewContext = () => (0,external_wp_element_namespaceObject.useConte
* @param {Object} props Props.
* @param {import('react').ReactNode} props.children
*/
+
function AriaReferencedText({
children,
...props
@@ -51836,15 +56517,15 @@ function AriaReferencedText({
ref.current.textContent = ref.current.textContent;
}
}, [children]);
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
hidden: true,
...props,
- ref: ref
- }, children);
+ ref: ref,
+ children: children
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/list-view/appender.js
-
/**
* WordPress dependencies
*/
@@ -51862,6 +56543,8 @@ function AriaReferencedText({
+
+
const Appender = (0,external_wp_element_namespaceObject.forwardRef)(({
nestingLevel,
blockCount,
@@ -51902,32 +56585,33 @@ const Appender = (0,external_wp_element_namespaceObject.forwardRef)(({
const descriptionId = `list-view-appender__${instanceId}`;
const description = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: The name of the block. 2: The numerical position of the block. 3: The level of nesting for the block. */
(0,external_wp_i18n_namespaceObject.__)('Append to %1$s block at position %2$d, Level %3$d'), blockTitle, blockCount + 1, nestingLevel);
- return (0,external_React_.createElement)("div", {
- className: "list-view-appender"
- }, (0,external_React_.createElement)(inserter, {
- ref: ref,
- rootClientId: clientId,
- position: "bottom right",
- isAppender: true,
- selectBlockOnInsert: false,
- shouldDirectInsert: false,
- __experimentalIsQuick: true,
- ...props,
- toggleProps: {
- 'aria-describedby': descriptionId
- },
- onSelectOrClose: maybeInsertedBlock => {
- if (maybeInsertedBlock?.clientId) {
- setInsertedBlock(maybeInsertedBlock);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "list-view-appender",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter, {
+ ref: ref,
+ rootClientId: clientId,
+ position: "bottom right",
+ isAppender: true,
+ selectBlockOnInsert: false,
+ shouldDirectInsert: false,
+ __experimentalIsQuick: true,
+ ...props,
+ toggleProps: {
+ 'aria-describedby': descriptionId
+ },
+ onSelectOrClose: maybeInsertedBlock => {
+ if (maybeInsertedBlock?.clientId) {
+ setInsertedBlock(maybeInsertedBlock);
+ }
}
- }
- }), (0,external_React_.createElement)(AriaReferencedText, {
- id: descriptionId
- }, description));
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AriaReferencedText, {
+ id: descriptionId,
+ children: description
+ })]
+ });
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/list-view/leaf.js
-
/**
* External dependencies
*/
@@ -51945,6 +56629,7 @@ const Appender = (0,external_wp_element_namespaceObject.forwardRef)(({
* Internal dependencies
*/
+
const AnimatedTreeGridRow = dist_esm_it(external_wp_components_namespaceObject.__experimentalTreeGridRow);
const ListViewLeaf = (0,external_wp_element_namespaceObject.forwardRef)(({
isDragged,
@@ -51963,15 +56648,16 @@ const ListViewLeaf = (0,external_wp_element_namespaceObject.forwardRef)(({
triggerAnimationOnChange: path
});
const mergedRef = (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, animationRef]);
- return (0,external_React_.createElement)(AnimatedTreeGridRow, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AnimatedTreeGridRow, {
ref: mergedRef,
- className: classnames_default()('block-editor-list-view-leaf', className),
+ className: dist_clsx('block-editor-list-view-leaf', className),
level: level,
positionInSet: position,
setSize: rowCount,
isExpanded: undefined,
- ...props
- }, children);
+ ...props,
+ children: children
+ });
});
/* harmony default export */ const leaf = (ListViewLeaf);
@@ -52018,48 +56704,51 @@ function useListViewScrollIntoView({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pin-small.js
-
/**
* WordPress dependencies
*/
-const pinSmall = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const pinSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10.97 10.159a3.382 3.382 0 0 0-2.857.955l1.724 1.723-2.836 2.913L7 17h1.25l2.913-2.837 1.723 1.723a3.38 3.38 0 0 0 .606-.825c.33-.63.446-1.343.35-2.032L17 10.695 13.305 7l-2.334 3.159Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10.97 10.159a3.382 3.382 0 0 0-2.857.955l1.724 1.723-2.836 2.913L7 17h1.25l2.913-2.837 1.723 1.723a3.38 3.38 0 0 0 .606-.825c.33-.63.446-1.343.35-2.032L17 10.695 13.305 7l-2.334 3.159Z"
+ })
+});
/* harmony default export */ const pin_small = (pinSmall);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/lock-small.js
-
/**
* WordPress dependencies
*/
-const lockSmall = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const lockSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"
+ })
+});
/* harmony default export */ const lock_small = (lockSmall);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/list-view/expander.js
-
/**
* WordPress dependencies
*/
+
function ListViewExpander({
onClick
}) {
return (
+ /*#__PURE__*/
// Keyboard events are handled by TreeGrid see: components/src/tree-grid/index.js
//
// The expander component is implemented as a pseudo element in the w3 example
@@ -52069,16 +56758,17 @@ function ListViewExpander({
// For the current tree grid implementation, please do not try to make this a button.
//
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
- (0,external_React_.createElement)("span", {
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
className: "block-editor-list-view__expander",
onClick: event => onClick(event, {
forceToggle: true
}),
"aria-hidden": "true",
- "data-testid": "list-view-expander"
- }, (0,external_React_.createElement)(build_module_icon, {
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left_small : chevron_right_small
- }))
+ "data-testid": "list-view-expander",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left_small : chevron_right_small
+ })
+ })
);
}
@@ -52163,7 +56853,6 @@ function useListViewImages({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/list-view/block-select-button.js
-
/**
* External dependencies
*/
@@ -52179,9 +56868,6 @@ function useListViewImages({
-
-
-
/**
* Internal dependencies
*/
@@ -52197,8 +56883,7 @@ function useListViewImages({
function ListViewBlockSelectButton({
className,
block: {
- clientId,
- name: blockName
+ clientId
},
onClick,
onContextMenu,
@@ -52210,9 +56895,7 @@ function ListViewBlockSelectButton({
onDragEnd,
draggable,
isExpanded,
- ariaLabel,
- ariaDescribedBy,
- updateFocusAndSelection
+ ariaDescribedBy
}, ref) {
const blockInformation = useBlockDisplayInformation(clientId);
const blockTitle = useBlockDisplayTitle({
@@ -52223,30 +56906,16 @@ function ListViewBlockSelectButton({
isLocked
} = useBlockLock(clientId);
const {
- canInsertBlockType,
- getSelectedBlockClientIds,
- getPreviousBlockClientId,
- getBlockRootClientId,
- getBlockOrder,
- getBlocksByClientId,
- getBlockAttributes,
- canRemoveBlocks
- } = (0,external_wp_data_namespaceObject.useSelect)(store);
- const {
- duplicateBlocks,
- multiSelect,
- removeBlocks
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- const isMatch = (0,external_wp_keyboardShortcuts_namespaceObject.__unstableUseShortcutEventMatch)();
+ isContentOnly
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => ({
+ isContentOnly: select(store).getBlockEditingMode(clientId) === 'contentOnly'
+ }), [clientId]);
+ const shouldShowLockIcon = isLocked && !isContentOnly;
const isSticky = blockInformation?.positionType === 'sticky';
const images = useListViewImages({
clientId,
isExpanded
});
- const {
- rootClientId
- } = useListViewContext();
- const isConnected = getBlockAttributes(clientId)?.metadata?.bindings;
const positionLabel = blockInformation?.positionLabel ? (0,external_wp_i18n_namespaceObject.sprintf)(
// translators: 1: Position of selected block, e.g. "Sticky" or "Fixed".
(0,external_wp_i18n_namespaceObject.__)('Position: %1$s'), blockInformation.positionLabel) : '';
@@ -52260,115 +56929,19 @@ function ListViewBlockSelectButton({
onDragStart?.(event);
};
- // Determine which blocks to update:
- // If the current (focused) block is part of the block selection, use the whole selection.
- // If the focused block is not part of the block selection, only update the focused block.
- function getBlocksToUpdate() {
- const selectedBlockClientIds = getSelectedBlockClientIds();
- const isUpdatingSelectedBlocks = selectedBlockClientIds.includes(clientId);
- const firstBlockClientId = isUpdatingSelectedBlocks ? selectedBlockClientIds[0] : clientId;
- const firstBlockRootClientId = getBlockRootClientId(firstBlockClientId);
- const blocksToUpdate = isUpdatingSelectedBlocks ? selectedBlockClientIds : [clientId];
- return {
- blocksToUpdate,
- firstBlockClientId,
- firstBlockRootClientId,
- selectedBlockClientIds
- };
- }
-
/**
* @param {KeyboardEvent} event
*/
- async function onKeyDownHandler(event) {
+ function onKeyDown(event) {
if (event.keyCode === external_wp_keycodes_namespaceObject.ENTER || event.keyCode === external_wp_keycodes_namespaceObject.SPACE) {
onClick(event);
- } else if (event.keyCode === external_wp_keycodes_namespaceObject.BACKSPACE || event.keyCode === external_wp_keycodes_namespaceObject.DELETE || isMatch('core/block-editor/remove', event)) {
- var _getPreviousBlockClie;
- const {
- blocksToUpdate: blocksToDelete,
- firstBlockClientId,
- firstBlockRootClientId,
- selectedBlockClientIds
- } = getBlocksToUpdate();
-
- // Don't update the selection if the blocks cannot be deleted.
- if (!canRemoveBlocks(blocksToDelete, firstBlockRootClientId)) {
- return;
- }
- let blockToFocus = (_getPreviousBlockClie = getPreviousBlockClientId(firstBlockClientId)) !== null && _getPreviousBlockClie !== void 0 ? _getPreviousBlockClie :
- // If the previous block is not found (when the first block is deleted),
- // fallback to focus the parent block.
- firstBlockRootClientId;
- removeBlocks(blocksToDelete, false);
-
- // Update the selection if the original selection has been removed.
- const shouldUpdateSelection = selectedBlockClientIds.length > 0 && getSelectedBlockClientIds().length === 0;
-
- // If there's no previous block nor parent block, focus the first block.
- if (!blockToFocus) {
- blockToFocus = getBlockOrder()[0];
- }
- updateFocusAndSelection(blockToFocus, shouldUpdateSelection);
- } else if (isMatch('core/block-editor/duplicate', event)) {
- if (event.defaultPrevented) {
- return;
- }
- event.preventDefault();
- const {
- blocksToUpdate,
- firstBlockRootClientId
- } = getBlocksToUpdate();
- const canDuplicate = getBlocksByClientId(blocksToUpdate).every(block => {
- return !!block && (0,external_wp_blocks_namespaceObject.hasBlockSupport)(block.name, 'multiple', true) && canInsertBlockType(block.name, firstBlockRootClientId);
- });
- if (canDuplicate) {
- const updatedBlocks = await duplicateBlocks(blocksToUpdate, false);
- if (updatedBlocks?.length) {
- // If blocks have been duplicated, focus the first duplicated block.
- updateFocusAndSelection(updatedBlocks[0], false);
- }
- }
- } else if (isMatch('core/block-editor/select-all', event)) {
- if (event.defaultPrevented) {
- return;
- }
- event.preventDefault();
- const {
- firstBlockRootClientId,
- selectedBlockClientIds
- } = getBlocksToUpdate();
- const blockClientIds = getBlockOrder(firstBlockRootClientId);
- if (!blockClientIds.length) {
- return;
- }
-
- // If we have selected all sibling nested blocks, try selecting up a level.
- // This is a similar implementation to that used by `useSelectAll`.
- // `isShallowEqual` is used for the list view instead of a length check,
- // as the array of siblings of the currently focused block may be a different
- // set of blocks from the current block selection if the user is focused
- // on a different part of the list view from the block selection.
- if (external_wp_isShallowEqual_default()(selectedBlockClientIds, blockClientIds)) {
- // Only select up a level if the first block is not the root block.
- // This ensures that the block selection can't break out of the root block
- // used by the list view, if the list view is only showing a partial hierarchy.
- if (firstBlockRootClientId && firstBlockRootClientId !== rootClientId) {
- updateFocusAndSelection(firstBlockRootClientId, true);
- return;
- }
- }
-
- // Select all while passing `null` to skip focusing to the editor canvas,
- // and retain focus within the list view.
- multiSelect(blockClientIds[0], blockClientIds[blockClientIds.length - 1], null);
}
}
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: classnames_default()('block-editor-list-view-block-select-button', className),
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Button, {
+ className: dist_clsx('block-editor-list-view-block-select-button', className),
onClick: onClick,
onContextMenu: onContextMenu,
- onKeyDown: onKeyDownHandler,
+ onKeyDown: onKeyDown,
onMouseDown: onMouseDown,
ref: ref,
tabIndex: tabIndex,
@@ -52377,57 +56950,59 @@ function ListViewBlockSelectButton({
onDragEnd: onDragEnd,
draggable: draggable,
href: `#block-${clientId}`,
- "aria-label": ariaLabel,
"aria-describedby": ariaDescribedBy,
- "aria-expanded": isExpanded
- }, (0,external_React_.createElement)(ListViewExpander, {
- onClick: onToggleExpanded
- }), (0,external_React_.createElement)(block_icon, {
- icon: blockInformation?.icon,
- showColors: true,
- context: "list-view"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- alignment: "center",
- className: "block-editor-list-view-block-select-button__label-wrapper",
- justify: "flex-start",
- spacing: 1
- }, (0,external_React_.createElement)("span", {
- className: "block-editor-list-view-block-select-button__title"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, {
- ellipsizeMode: "auto"
- }, blockTitle)), blockInformation?.anchor && (0,external_React_.createElement)("span", {
- className: "block-editor-list-view-block-select-button__anchor-wrapper"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, {
- className: "block-editor-list-view-block-select-button__anchor",
- ellipsizeMode: "auto"
- }, blockInformation.anchor)), isConnected && canBindBlock(blockName) && (0,external_React_.createElement)("span", {
- className: "block-editor-list-view-block-select-button__bindings"
- }, (0,external_React_.createElement)(build_module_icon, {
- icon: library_connection
- })), positionLabel && isSticky && (0,external_React_.createElement)(external_wp_components_namespaceObject.Tooltip, {
- text: positionLabel
- }, (0,external_React_.createElement)(build_module_icon, {
- icon: pin_small
- })), images.length ? (0,external_React_.createElement)("span", {
- className: "block-editor-list-view-block-select-button__images",
- "aria-hidden": true
- }, images.map((image, index) => (0,external_React_.createElement)("span", {
- className: "block-editor-list-view-block-select-button__image",
- key: image.clientId,
- style: {
- backgroundImage: `url(${image.url})`,
- zIndex: images.length - index // Ensure the first image is on top, and subsequent images are behind.
- }
- }))) : null, isLocked && (0,external_React_.createElement)("span", {
- className: "block-editor-list-view-block-select-button__lock"
- }, (0,external_React_.createElement)(build_module_icon, {
- icon: lock_small
- })))));
+ "aria-expanded": isExpanded,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ListViewExpander, {
+ onClick: onToggleExpanded
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: blockInformation?.icon,
+ showColors: true,
+ context: "list-view"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ alignment: "center",
+ className: "block-editor-list-view-block-select-button__label-wrapper",
+ justify: "flex-start",
+ spacing: 1,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-list-view-block-select-button__title",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTruncate, {
+ ellipsizeMode: "auto",
+ children: blockTitle
+ })
+ }), blockInformation?.anchor && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-list-view-block-select-button__anchor-wrapper",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTruncate, {
+ className: "block-editor-list-view-block-select-button__anchor",
+ ellipsizeMode: "auto",
+ children: blockInformation.anchor
+ })
+ }), positionLabel && isSticky && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Tooltip, {
+ text: positionLabel,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: pin_small
+ })
+ }), images.length ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-list-view-block-select-button__images",
+ "aria-hidden": true,
+ children: images.map((image, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-list-view-block-select-button__image",
+ style: {
+ backgroundImage: `url(${image.url})`,
+ zIndex: images.length - index // Ensure the first image is on top, and subsequent images are behind.
+ }
+ }, image.clientId))
+ }) : null, shouldShowLockIcon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-list-view-block-select-button__lock",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: lock_small
+ })
+ })]
+ })]
+ });
}
/* harmony default export */ const block_select_button = ((0,external_wp_element_namespaceObject.forwardRef)(ListViewBlockSelectButton));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/list-view/block-contents.js
-
/**
* External dependencies
*/
@@ -52446,6 +57021,9 @@ function ListViewBlockSelectButton({
+
+
+
const ListViewBlockContents = (0,external_wp_element_namespaceObject.forwardRef)(({
onClick,
onToggleExpanded,
@@ -52480,7 +57058,7 @@ const ListViewBlockContents = (0,external_wp_element_namespaceObject.forwardRef)
setInsertedBlock
} = useListViewContext();
const isBlockMoveTarget = blockMovingClientId && selectedBlockInBlockEditor === clientId;
- const className = classnames_default()('block-editor-list-view-block-contents', {
+ const className = dist_clsx('block-editor-list-view-block-contents', {
'is-dropping-before': isBlockMoveTarget
});
@@ -52489,34 +57067,37 @@ const ListViewBlockContents = (0,external_wp_element_namespaceObject.forwardRef)
// to drag a block that isn't part of the selection, they're still able
// to drag it and rearrange its position.
const draggableClientIds = selectedClientIds.includes(clientId) ? selectedClientIds : [clientId];
- return (0,external_React_.createElement)(external_React_.Fragment, null, AdditionalBlockContent && (0,external_React_.createElement)(AdditionalBlockContent, {
- block: block,
- insertedBlock: insertedBlock,
- setInsertedBlock: setInsertedBlock
- }), (0,external_React_.createElement)(block_draggable, {
- appendToOwnerDocument: true,
- clientIds: draggableClientIds,
- cloneClassname: 'block-editor-list-view-draggable-chip'
- }, ({
- draggable,
- onDragStart,
- onDragEnd
- }) => (0,external_React_.createElement)(block_select_button, {
- ref: ref,
- className: className,
- block: block,
- onClick: onClick,
- onToggleExpanded: onToggleExpanded,
- isSelected: isSelected,
- position: position,
- siblingBlockCount: siblingBlockCount,
- level: level,
- draggable: draggable,
- onDragStart: onDragStart,
- onDragEnd: onDragEnd,
- isExpanded: isExpanded,
- ...props
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [AdditionalBlockContent && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AdditionalBlockContent, {
+ block: block,
+ insertedBlock: insertedBlock,
+ setInsertedBlock: setInsertedBlock
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_draggable, {
+ appendToOwnerDocument: true,
+ clientIds: draggableClientIds,
+ cloneClassname: "block-editor-list-view-draggable-chip",
+ children: ({
+ draggable,
+ onDragStart,
+ onDragEnd
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_select_button, {
+ ref: ref,
+ className: className,
+ block: block,
+ onClick: onClick,
+ onToggleExpanded: onToggleExpanded,
+ isSelected: isSelected,
+ position: position,
+ siblingBlockCount: siblingBlockCount,
+ level: level,
+ draggable: draggable,
+ onDragStart: onDragStart,
+ onDragEnd: onDragEnd,
+ isExpanded: isExpanded,
+ ...props
+ })
+ })]
+ });
});
/* harmony default export */ const block_contents = (ListViewBlockContents);
@@ -52527,7 +57108,8 @@ const ListViewBlockContents = (0,external_wp_element_namespaceObject.forwardRef)
const getBlockPositionDescription = (position, siblingCount, level) => (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: The numerical position of the block. 2: The total number of blocks. 3. The level of nesting for the block. */
-(0,external_wp_i18n_namespaceObject.__)('Block %1$d of %2$d, Level %3$d'), position, siblingCount, level);
+(0,external_wp_i18n_namespaceObject.__)('Block %1$d of %2$d, Level %3$d.'), position, siblingCount, level);
+const getBlockPropertiesDescription = isLocked => isLocked ? (0,external_wp_i18n_namespaceObject.__)('This block is locked.') : '';
/**
* Returns true if the client ID occurs within the block selection or multi-selection,
@@ -52576,7 +57158,9 @@ function getCommonDepthClientIds(startId, endId, startParents, endParents) {
function focusListItem(focusClientId, treeGridElement) {
const getFocusElement = () => {
const row = treeGridElement?.querySelector(`[role=row][data-block="${focusClientId}"]`);
- if (!row) return null;
+ if (!row) {
+ return null;
+ }
// Focus the first focusable in the row, which is the ListViewBlockSelectButton.
return external_wp_dom_namespaceObject.focus.focusable.find(row)[0];
};
@@ -52690,7 +57274,6 @@ function getDragDisplacementValues({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/list-view/block.js
-
/**
* External dependencies
*/
@@ -52708,6 +57291,9 @@ function getDragDisplacementValues({
+
+
+
/**
* Internal dependencies
*/
@@ -52721,6 +57307,10 @@ function getDragDisplacementValues({
+
+
+
+
function ListViewBlock({
block: {
clientId
@@ -52755,55 +57345,227 @@ function ListViewBlock({
const isFirstSelectedBlock = isSelected && selectedClientIds[0] === clientId;
const isLastSelectedBlock = isSelected && selectedClientIds[selectedClientIds.length - 1] === clientId;
const {
- toggleBlockHighlight
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ toggleBlockHighlight,
+ duplicateBlocks,
+ multiSelect,
+ replaceBlocks,
+ removeBlocks,
+ insertAfterBlock,
+ insertBeforeBlock,
+ setOpenedBlockSettingsMenu
+ } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
+ const {
+ canInsertBlockType,
+ getSelectedBlockClientIds,
+ getPreviousBlockClientId,
+ getBlockRootClientId,
+ getBlockOrder,
+ getBlockParents,
+ getBlocksByClientId,
+ canRemoveBlocks,
+ isGroupable
+ } = (0,external_wp_data_namespaceObject.useSelect)(store);
+ const {
+ getGroupingBlockName
+ } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blocks_namespaceObject.store);
const blockInformation = useBlockDisplayInformation(clientId);
- const blockTitle = blockInformation?.name || blockInformation?.title || (0,external_wp_i18n_namespaceObject.__)('Untitled');
const {
block,
blockName,
- blockEditingMode
+ allowRightClickOverrides
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getBlock,
getBlockName,
- getBlockEditingMode
+ getSettings
} = select(store);
return {
block: getBlock(clientId),
blockName: getBlockName(clientId),
- blockEditingMode: getBlockEditingMode(clientId)
+ allowRightClickOverrides: getSettings().allowRightClickOverrides
};
}, [clientId]);
- const allowRightClickOverrides = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getSettings().allowRightClickOverrides, []);
const showBlockActions =
// When a block hides its toolbar it also hides the block settings menu,
// since that menu is part of the toolbar in the editor canvas.
// List View respects this by also hiding the block settings menu.
- (0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockName, '__experimentalToolbar', true) &&
- // Don't show the settings menu if block is disabled or content only.
- blockEditingMode === 'default';
+ (0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockName, '__experimentalToolbar', true);
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(ListViewBlock);
- const descriptionId = `list-view-block-select-button__${instanceId}`;
+ const descriptionId = `list-view-block-select-button__description-${instanceId}`;
const {
expand,
collapse,
+ collapseAll,
BlockSettingsMenu,
listViewInstanceId,
expandedState,
setInsertedBlock,
- treeGridElementRef
+ treeGridElementRef,
+ rootClientId
} = useListViewContext();
+ const isMatch = (0,external_wp_keyboardShortcuts_namespaceObject.__unstableUseShortcutEventMatch)();
+
+ // Determine which blocks to update:
+ // If the current (focused) block is part of the block selection, use the whole selection.
+ // If the focused block is not part of the block selection, only update the focused block.
+ function getBlocksToUpdate() {
+ const selectedBlockClientIds = getSelectedBlockClientIds();
+ const isUpdatingSelectedBlocks = selectedBlockClientIds.includes(clientId);
+ const firstBlockClientId = isUpdatingSelectedBlocks ? selectedBlockClientIds[0] : clientId;
+ const firstBlockRootClientId = getBlockRootClientId(firstBlockClientId);
+ const blocksToUpdate = isUpdatingSelectedBlocks ? selectedBlockClientIds : [clientId];
+ return {
+ blocksToUpdate,
+ firstBlockClientId,
+ firstBlockRootClientId,
+ selectedBlockClientIds
+ };
+ }
+
+ /**
+ * @param {KeyboardEvent} event
+ */
+ async function onKeyDown(event) {
+ if (event.defaultPrevented) {
+ return;
+ }
- // If multiple blocks are selected, deselect all blocks when the user
- // presses the escape key.
- const onKeyDown = event => {
- if (event.keyCode === external_wp_keycodes_namespaceObject.ESCAPE && !event.defaultPrevented && selectedClientIds.length > 0) {
+ // Do not handle events if it comes from modals;
+ // retain the default behavior for these keys.
+ if (event.target.closest('[role=dialog]')) {
+ return;
+ }
+ const isDeleteKey = [external_wp_keycodes_namespaceObject.BACKSPACE, external_wp_keycodes_namespaceObject.DELETE].includes(event.keyCode);
+
+ // If multiple blocks are selected, deselect all blocks when the user
+ // presses the escape key.
+ if (isMatch('core/block-editor/unselect', event) && selectedClientIds.length > 0) {
event.stopPropagation();
event.preventDefault();
selectBlock(event, undefined);
+ } else if (isDeleteKey || isMatch('core/block-editor/remove', event)) {
+ var _getPreviousBlockClie;
+ const {
+ blocksToUpdate: blocksToDelete,
+ firstBlockClientId,
+ firstBlockRootClientId,
+ selectedBlockClientIds
+ } = getBlocksToUpdate();
+
+ // Don't update the selection if the blocks cannot be deleted.
+ if (!canRemoveBlocks(blocksToDelete)) {
+ return;
+ }
+ let blockToFocus = (_getPreviousBlockClie = getPreviousBlockClientId(firstBlockClientId)) !== null && _getPreviousBlockClie !== void 0 ? _getPreviousBlockClie :
+ // If the previous block is not found (when the first block is deleted),
+ // fallback to focus the parent block.
+ firstBlockRootClientId;
+ removeBlocks(blocksToDelete, false);
+
+ // Update the selection if the original selection has been removed.
+ const shouldUpdateSelection = selectedBlockClientIds.length > 0 && getSelectedBlockClientIds().length === 0;
+
+ // If there's no previous block nor parent block, focus the first block.
+ if (!blockToFocus) {
+ blockToFocus = getBlockOrder()[0];
+ }
+ updateFocusAndSelection(blockToFocus, shouldUpdateSelection);
+ } else if (isMatch('core/block-editor/duplicate', event)) {
+ event.preventDefault();
+ const {
+ blocksToUpdate,
+ firstBlockRootClientId
+ } = getBlocksToUpdate();
+ const canDuplicate = getBlocksByClientId(blocksToUpdate).every(blockToUpdate => {
+ return !!blockToUpdate && (0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockToUpdate.name, 'multiple', true) && canInsertBlockType(blockToUpdate.name, firstBlockRootClientId);
+ });
+ if (canDuplicate) {
+ const updatedBlocks = await duplicateBlocks(blocksToUpdate, false);
+ if (updatedBlocks?.length) {
+ // If blocks have been duplicated, focus the first duplicated block.
+ updateFocusAndSelection(updatedBlocks[0], false);
+ }
+ }
+ } else if (isMatch('core/block-editor/insert-before', event)) {
+ event.preventDefault();
+ const {
+ blocksToUpdate
+ } = getBlocksToUpdate();
+ await insertBeforeBlock(blocksToUpdate[0]);
+ const newlySelectedBlocks = getSelectedBlockClientIds();
+
+ // Focus the first block of the newly inserted blocks, to keep focus within the list view.
+ setOpenedBlockSettingsMenu(undefined);
+ updateFocusAndSelection(newlySelectedBlocks[0], false);
+ } else if (isMatch('core/block-editor/insert-after', event)) {
+ event.preventDefault();
+ const {
+ blocksToUpdate
+ } = getBlocksToUpdate();
+ await insertAfterBlock(blocksToUpdate.at(-1));
+ const newlySelectedBlocks = getSelectedBlockClientIds();
+
+ // Focus the first block of the newly inserted blocks, to keep focus within the list view.
+ setOpenedBlockSettingsMenu(undefined);
+ updateFocusAndSelection(newlySelectedBlocks[0], false);
+ } else if (isMatch('core/block-editor/select-all', event)) {
+ event.preventDefault();
+ const {
+ firstBlockRootClientId,
+ selectedBlockClientIds
+ } = getBlocksToUpdate();
+ const blockClientIds = getBlockOrder(firstBlockRootClientId);
+ if (!blockClientIds.length) {
+ return;
+ }
+
+ // If we have selected all sibling nested blocks, try selecting up a level.
+ // This is a similar implementation to that used by `useSelectAll`.
+ // `isShallowEqual` is used for the list view instead of a length check,
+ // as the array of siblings of the currently focused block may be a different
+ // set of blocks from the current block selection if the user is focused
+ // on a different part of the list view from the block selection.
+ if (external_wp_isShallowEqual_default()(selectedBlockClientIds, blockClientIds)) {
+ // Only select up a level if the first block is not the root block.
+ // This ensures that the block selection can't break out of the root block
+ // used by the list view, if the list view is only showing a partial hierarchy.
+ if (firstBlockRootClientId && firstBlockRootClientId !== rootClientId) {
+ updateFocusAndSelection(firstBlockRootClientId, true);
+ return;
+ }
+ }
+
+ // Select all while passing `null` to skip focusing to the editor canvas,
+ // and retain focus within the list view.
+ multiSelect(blockClientIds[0], blockClientIds[blockClientIds.length - 1], null);
+ } else if (isMatch('core/block-editor/collapse-list-view', event)) {
+ event.preventDefault();
+ const {
+ firstBlockClientId
+ } = getBlocksToUpdate();
+ const blockParents = getBlockParents(firstBlockClientId, false);
+ // Collapse all blocks.
+ collapseAll();
+ // Expand all parents of the current block.
+ expand(blockParents);
+ } else if (isMatch('core/block-editor/group', event)) {
+ const {
+ blocksToUpdate
+ } = getBlocksToUpdate();
+ if (blocksToUpdate.length > 1 && isGroupable(blocksToUpdate)) {
+ event.preventDefault();
+ const blocks = getBlocksByClientId(blocksToUpdate);
+ const groupingBlockName = getGroupingBlockName();
+ const newBlocks = (0,external_wp_blocks_namespaceObject.switchToBlockType)(blocks, groupingBlockName);
+ replaceBlocks(blocksToUpdate, newBlocks);
+ (0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.__)('Selected blocks are grouped.'));
+ const newlySelectedBlocks = getSelectedBlockClientIds();
+ // Focus the first block of the newly inserted blocks, to keep focus within the list view.
+ setOpenedBlockSettingsMenu(undefined);
+ updateFocusAndSelection(newlySelectedBlocks[0], false);
+ }
}
- };
+ }
const onMouseEnter = (0,external_wp_element_namespaceObject.useCallback)(() => {
setIsHovered(true);
toggleBlockHighlight(clientId, true);
@@ -52890,18 +57652,13 @@ function ListViewBlock({
return null;
}
const blockPositionDescription = getBlockPositionDescription(position, siblingBlockCount, level);
- const blockAriaLabel = isLocked ? (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: The title of the block. This string indicates a link to select the locked block.
- (0,external_wp_i18n_namespaceObject.__)('%s (locked)'), blockTitle) : blockTitle;
- const settingsAriaLabel = (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: The title of the block.
- (0,external_wp_i18n_namespaceObject.__)('Options for %s'), blockTitle);
+ const blockPropertiesDescription = getBlockPropertiesDescription(isLocked);
const hasSiblings = siblingBlockCount > 0;
const hasRenderedMovers = showBlockMovers && hasSiblings;
- const moverCellClassName = classnames_default()('block-editor-list-view-block__mover-cell', {
+ const moverCellClassName = dist_clsx('block-editor-list-view-block__mover-cell', {
'is-visible': isHovered || isSelected
});
- const listViewBlockSettingsClassName = classnames_default()('block-editor-list-view-block__menu-cell', {
+ const listViewBlockSettingsClassName = dist_clsx('block-editor-list-view-block__menu-cell', {
'is-visible': isHovered || isFirstSelectedBlock
});
let colSpan;
@@ -52910,7 +57667,7 @@ function ListViewBlock({
} else if (!showBlockActions) {
colSpan = 3;
}
- const classes = classnames_default()({
+ const classes = dist_clsx({
'is-selected': isSelected,
'is-first-selected': isFirstSelectedBlock,
'is-last-selected': isLastSelectedBlock,
@@ -52935,7 +57692,7 @@ function ListViewBlock({
// Detect if there is a block in the canvas currently being edited and multi-selection is not happening.
const currentlyEditingBlockInCanvas = isSelected && selectedClientIds.length === 1;
- return (0,external_React_.createElement)(leaf, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(leaf, {
className: classes,
isDragged: isDragged,
onKeyDown: onKeyDown,
@@ -52950,95 +57707,104 @@ function ListViewBlock({
id: `list-view-${listViewInstanceId}-block-${clientId}`,
"data-block": clientId,
"data-expanded": canEdit ? isExpanded : undefined,
- ref: rowRef
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTreeGridCell, {
- className: "block-editor-list-view-block__contents-cell",
- colSpan: colSpan,
- ref: cellRef,
- "aria-selected": !!isSelected
- }, ({
- ref,
- tabIndex,
- onFocus
- }) => (0,external_React_.createElement)("div", {
- className: "block-editor-list-view-block__contents-container"
- }, (0,external_React_.createElement)(block_contents, {
- block: block,
- onClick: selectEditorBlock,
- onContextMenu: onContextMenu,
- onMouseDown: onMouseDown,
- onToggleExpanded: toggleExpanded,
- isSelected: isSelected,
- position: position,
- siblingBlockCount: siblingBlockCount,
- level: level,
- ref: ref,
- tabIndex: currentlyEditingBlockInCanvas ? 0 : tabIndex,
- onFocus: onFocus,
- isExpanded: canEdit ? isExpanded : undefined,
- selectedClientIds: selectedClientIds,
- ariaLabel: blockAriaLabel,
- ariaDescribedBy: descriptionId,
- updateFocusAndSelection: updateFocusAndSelection
- }), (0,external_React_.createElement)(AriaReferencedText, {
- id: descriptionId
- }, blockPositionDescription))), hasRenderedMovers && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTreeGridCell, {
- className: moverCellClassName,
- withoutGridItem: true
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTreeGridItem, null, ({
- ref,
- tabIndex,
- onFocus
- }) => (0,external_React_.createElement)(BlockMoverUpButton, {
- orientation: "vertical",
- clientIds: [clientId],
- ref: ref,
- tabIndex: tabIndex,
- onFocus: onFocus
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTreeGridItem, null, ({
- ref,
- tabIndex,
- onFocus
- }) => (0,external_React_.createElement)(BlockMoverDownButton, {
- orientation: "vertical",
- clientIds: [clientId],
- ref: ref,
- tabIndex: tabIndex,
- onFocus: onFocus
- })))), showBlockActions && BlockSettingsMenu && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTreeGridCell, {
- className: listViewBlockSettingsClassName,
- "aria-selected": !!isSelected,
- ref: settingsRef
- }, ({
- ref,
- tabIndex,
- onFocus
- }) => (0,external_React_.createElement)(BlockSettingsMenu, {
- clientIds: dropdownClientIds,
- block: block,
- icon: more_vertical,
- label: settingsAriaLabel,
- popoverProps: {
- anchor: settingsPopoverAnchor // Used to position the settings at the cursor on right-click.
- },
- toggleProps: {
- ref,
- className: 'block-editor-list-view-block__menu',
- tabIndex,
- onClick: clearSettingsAnchorRect,
- onFocus
- },
- disableOpenOnArrowDown: true,
- expand: expand,
- expandedState: expandedState,
- setInsertedBlock: setInsertedBlock,
- __experimentalSelectBlock: updateFocusAndSelection
- })));
+ ref: rowRef,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTreeGridCell, {
+ className: "block-editor-list-view-block__contents-cell",
+ colSpan: colSpan,
+ ref: cellRef,
+ "aria-selected": !!isSelected,
+ children: ({
+ ref,
+ tabIndex,
+ onFocus
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-list-view-block__contents-container",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_contents, {
+ block: block,
+ onClick: selectEditorBlock,
+ onContextMenu: onContextMenu,
+ onMouseDown: onMouseDown,
+ onToggleExpanded: toggleExpanded,
+ isSelected: isSelected,
+ position: position,
+ siblingBlockCount: siblingBlockCount,
+ level: level,
+ ref: ref,
+ tabIndex: currentlyEditingBlockInCanvas ? 0 : tabIndex,
+ onFocus: onFocus,
+ isExpanded: canEdit ? isExpanded : undefined,
+ selectedClientIds: selectedClientIds,
+ ariaDescribedBy: descriptionId
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AriaReferencedText, {
+ id: descriptionId,
+ children: `${blockPositionDescription} ${blockPropertiesDescription}`
+ })]
+ })
+ }), hasRenderedMovers && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalTreeGridCell, {
+ className: moverCellClassName,
+ withoutGridItem: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTreeGridItem, {
+ children: ({
+ ref,
+ tabIndex,
+ onFocus
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockMoverUpButton, {
+ orientation: "vertical",
+ clientIds: [clientId],
+ ref: ref,
+ tabIndex: tabIndex,
+ onFocus: onFocus
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTreeGridItem, {
+ children: ({
+ ref,
+ tabIndex,
+ onFocus
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockMoverDownButton, {
+ orientation: "vertical",
+ clientIds: [clientId],
+ ref: ref,
+ tabIndex: tabIndex,
+ onFocus: onFocus
+ })
+ })]
+ })
+ }), showBlockActions && BlockSettingsMenu && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTreeGridCell, {
+ className: listViewBlockSettingsClassName,
+ "aria-selected": !!isSelected,
+ ref: settingsRef,
+ children: ({
+ ref,
+ tabIndex,
+ onFocus
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockSettingsMenu, {
+ clientIds: dropdownClientIds,
+ block: block,
+ icon: more_vertical,
+ label: (0,external_wp_i18n_namespaceObject.__)('Options'),
+ popoverProps: {
+ anchor: settingsPopoverAnchor // Used to position the settings at the cursor on right-click.
+ },
+ toggleProps: {
+ ref,
+ className: 'block-editor-list-view-block__menu',
+ tabIndex,
+ onClick: clearSettingsAnchorRect,
+ onFocus
+ },
+ disableOpenOnArrowDown: true,
+ expand: expand,
+ expandedState: expandedState,
+ setInsertedBlock: setInsertedBlock,
+ __experimentalSelectBlock: updateFocusAndSelection
+ })
+ })]
+ });
}
/* harmony default export */ const list_view_block = ((0,external_wp_element_namespaceObject.memo)(ListViewBlock));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/list-view/branch.js
-
/**
* WordPress dependencies
*/
@@ -53069,6 +57835,9 @@ function ListViewBlock({
* @param {boolean} isExpandedByDefault flag to determine the default fallback expanded state.
* @return {number} block count
*/
+
+
+
function countBlocks(block, expandedState, draggedClientIds, isExpandedByDefault) {
var _expandedState$block$;
const isDragged = draggedClientIds?.includes(block.clientId);
@@ -53138,107 +57907,115 @@ function ListViewBranch(props) {
// The appender means an extra row in List View, so add 1 to the row count.
const rowCount = showAppender ? blockCount + 1 : blockCount;
let nextPosition = listPosition;
- return (0,external_React_.createElement)(external_React_.Fragment, null, filteredBlocks.map((block, index) => {
- var _expandedState$client;
- const {
- clientId,
- innerBlocks
- } = block;
- if (index > 0) {
- nextPosition += countBlocks(filteredBlocks[index - 1], expandedState, draggedClientIds, isExpanded);
- }
- const isDragged = !!draggedClientIds?.includes(clientId);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [filteredBlocks.map((block, index) => {
+ var _expandedState$client;
+ const {
+ clientId,
+ innerBlocks
+ } = block;
+ if (index > 0) {
+ nextPosition += countBlocks(filteredBlocks[index - 1], expandedState, draggedClientIds, isExpanded);
+ }
+ const isDragged = !!draggedClientIds?.includes(clientId);
- // Determine the displacement of the block while dragging. This
- // works out whether the current block should be displaced up or
- // down, relative to the dragged blocks and the drop target.
- const {
- displacement,
- isAfterDraggedBlocks,
- isNesting
- } = getDragDisplacementValues({
- blockIndexes,
- blockDropTargetIndex,
- blockDropPosition,
- clientId,
- firstDraggedBlockIndex,
- isDragged
- });
- const {
- itemInView
- } = fixedListWindow;
- const blockInView = itemInView(nextPosition);
- const position = index + 1;
- const updatedPath = path.length > 0 ? `${path}_${position}` : `${position}`;
- const hasNestedBlocks = !!innerBlocks?.length;
- const shouldExpand = hasNestedBlocks && shouldShowInnerBlocks ? (_expandedState$client = expandedState[clientId]) !== null && _expandedState$client !== void 0 ? _expandedState$client : isExpanded : undefined;
-
- // Make updates to the selected or dragged blocks synchronous,
- // but asynchronous for any other block.
- const isSelected = isClientIdSelected(clientId, selectedClientIds);
- const isSelectedBranch = isBranchSelected || isSelected && hasNestedBlocks;
-
- // To avoid performance issues, we only render blocks that are in view,
- // or blocks that are selected or dragged. If a block is selected,
- // it is only counted if it is the first of the block selection.
- // This prevents the entire tree from being rendered when a branch is
- // selected, or a user selects all blocks, while still enabling scroll
- // into view behavior when selecting a block or opening the list view.
- const showBlock = isDragged || blockInView || isSelected && clientId === selectedClientIds[0];
- return (0,external_React_.createElement)(external_wp_data_namespaceObject.AsyncModeProvider, {
- key: clientId,
- value: !isSelected
- }, showBlock && (0,external_React_.createElement)(list_view_block, {
- block: block,
- selectBlock: selectBlock,
- isSelected: isSelected,
- isBranchSelected: isSelectedBranch,
- isDragged: isDragged,
+ // Determine the displacement of the block while dragging. This
+ // works out whether the current block should be displaced up or
+ // down, relative to the dragged blocks and the drop target.
+ const {
+ displacement,
+ isAfterDraggedBlocks,
+ isNesting
+ } = getDragDisplacementValues({
+ blockIndexes,
+ blockDropTargetIndex,
+ blockDropPosition,
+ clientId,
+ firstDraggedBlockIndex,
+ isDragged
+ });
+ const {
+ itemInView
+ } = fixedListWindow;
+ const blockInView = itemInView(nextPosition);
+ const position = index + 1;
+ const updatedPath = path.length > 0 ? `${path}_${position}` : `${position}`;
+ const hasNestedBlocks = !!innerBlocks?.length;
+ const shouldExpand = hasNestedBlocks && shouldShowInnerBlocks ? (_expandedState$client = expandedState[clientId]) !== null && _expandedState$client !== void 0 ? _expandedState$client : isExpanded : undefined;
+
+ // Make updates to the selected or dragged blocks synchronous,
+ // but asynchronous for any other block.
+ const isSelected = isClientIdSelected(clientId, selectedClientIds);
+ const isSelectedBranch = isBranchSelected || isSelected && hasNestedBlocks;
+
+ // To avoid performance issues, we only render blocks that are in view,
+ // or blocks that are selected or dragged. If a block is selected,
+ // it is only counted if it is the first of the block selection.
+ // This prevents the entire tree from being rendered when a branch is
+ // selected, or a user selects all blocks, while still enabling scroll
+ // into view behavior when selecting a block or opening the list view.
+ // The first and last blocks of the list are always rendered, to ensure
+ // that Home and End keys work as expected.
+ const showBlock = isDragged || blockInView || isSelected && clientId === selectedClientIds[0] || index === 0 || index === blockCount - 1;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_data_namespaceObject.AsyncModeProvider, {
+ value: !isSelected,
+ children: [showBlock && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(list_view_block, {
+ block: block,
+ selectBlock: selectBlock,
+ isSelected: isSelected,
+ isBranchSelected: isSelectedBranch,
+ isDragged: isDragged,
+ level: level,
+ position: position,
+ rowCount: rowCount,
+ siblingBlockCount: blockCount,
+ showBlockMovers: showBlockMovers,
+ path: updatedPath,
+ isExpanded: isDragged ? false : shouldExpand,
+ listPosition: nextPosition,
+ selectedClientIds: selectedClientIds,
+ isSyncedBranch: syncedBranch,
+ displacement: displacement,
+ isAfterDraggedBlocks: isAfterDraggedBlocks,
+ isNesting: isNesting
+ }), !showBlock && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("tr", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("td", {
+ className: "block-editor-list-view-placeholder"
+ })
+ }), hasNestedBlocks && shouldExpand && !isDragged && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ListViewBranch, {
+ parentId: clientId,
+ blocks: innerBlocks,
+ selectBlock: selectBlock,
+ showBlockMovers: showBlockMovers,
+ level: level + 1,
+ path: updatedPath,
+ listPosition: nextPosition + 1,
+ fixedListWindow: fixedListWindow,
+ isBranchSelected: isSelectedBranch,
+ selectedClientIds: selectedClientIds,
+ isExpanded: isExpanded,
+ isSyncedBranch: syncedBranch
+ })]
+ }, clientId);
+ }), showAppender && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTreeGridRow, {
level: level,
- position: position,
- rowCount: rowCount,
- siblingBlockCount: blockCount,
- showBlockMovers: showBlockMovers,
- path: updatedPath,
- isExpanded: isDragged ? false : shouldExpand,
- listPosition: nextPosition,
- selectedClientIds: selectedClientIds,
- isSyncedBranch: syncedBranch,
- displacement: displacement,
- isAfterDraggedBlocks: isAfterDraggedBlocks,
- isNesting: isNesting
- }), !showBlock && (0,external_React_.createElement)("tr", null, (0,external_React_.createElement)("td", {
- className: "block-editor-list-view-placeholder"
- })), hasNestedBlocks && shouldExpand && !isDragged && (0,external_React_.createElement)(ListViewBranch, {
- parentId: clientId,
- blocks: innerBlocks,
- selectBlock: selectBlock,
- showBlockMovers: showBlockMovers,
- level: level + 1,
- path: updatedPath,
- listPosition: nextPosition + 1,
- fixedListWindow: fixedListWindow,
- isBranchSelected: isSelectedBranch,
- selectedClientIds: selectedClientIds,
- isExpanded: isExpanded,
- isSyncedBranch: syncedBranch
- }));
- }), showAppender && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTreeGridRow, {
- level: level,
- setSize: rowCount,
- positionInSet: rowCount,
- isExpanded: true
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTreeGridCell, null, treeGridCellProps => (0,external_React_.createElement)(Appender, {
- clientId: parentId,
- nestingLevel: level,
- blockCount: blockCount,
- ...treeGridCellProps
- }))));
+ setSize: rowCount,
+ positionInSet: rowCount,
+ isExpanded: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTreeGridCell, {
+ children: treeGridCellProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Appender, {
+ clientId: parentId,
+ nestingLevel: level,
+ blockCount: blockCount,
+ ...treeGridCellProps
+ })
+ })
+ })]
+ });
}
/* harmony default export */ const branch = ((0,external_wp_element_namespaceObject.memo)(ListViewBranch));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/list-view/drop-indicator.js
-
/**
* External dependencies
*/
@@ -53259,6 +58036,8 @@ function ListViewBranch(props) {
+
+
function ListViewDropIndicatorPreview({
draggedBlockClientId,
listViewRef,
@@ -53443,43 +58222,50 @@ function ListViewDropIndicatorPreview({
if (!targetElement) {
return null;
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Popover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover, {
animate: false,
anchor: popoverAnchor,
focusOnMount: false,
className: "block-editor-list-view-drop-indicator--preview",
variant: "unstyled",
flip: false,
- resize: true
- }, (0,external_React_.createElement)("div", {
- style: style,
- className: classnames_default()('block-editor-list-view-drop-indicator__line', {
- 'block-editor-list-view-drop-indicator__line--darker': hasAdjacentSelectedBranch
+ resize: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ style: style,
+ className: dist_clsx('block-editor-list-view-drop-indicator__line', {
+ 'block-editor-list-view-drop-indicator__line--darker': hasAdjacentSelectedBranch
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-list-view-leaf",
+ "aria-level": ariaLevel,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: dist_clsx('block-editor-list-view-block-select-button', 'block-editor-list-view-block-contents'),
+ style: horizontalScrollOffsetStyle,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ListViewExpander, {
+ onClick: () => {}
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: blockInformation?.icon,
+ showColors: true,
+ context: "list-view"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
+ alignment: "center",
+ className: "block-editor-list-view-block-select-button__label-wrapper",
+ justify: "flex-start",
+ spacing: 1,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-list-view-block-select-button__title",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTruncate, {
+ ellipsizeMode: "auto",
+ children: blockTitle
+ })
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-list-view-block__menu-cell"
+ })]
+ })
})
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-list-view-leaf",
- "aria-level": ariaLevel
- }, (0,external_React_.createElement)("div", {
- className: classnames_default()('block-editor-list-view-block-select-button', 'block-editor-list-view-block-contents'),
- style: horizontalScrollOffsetStyle
- }, (0,external_React_.createElement)(ListViewExpander, {
- onClick: () => {}
- }), (0,external_React_.createElement)(block_icon, {
- icon: blockInformation?.icon,
- showColors: true,
- context: "list-view"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- alignment: "center",
- className: "block-editor-list-view-block-select-button__label-wrapper",
- justify: "flex-start",
- spacing: 1
- }, (0,external_React_.createElement)("span", {
- className: "block-editor-list-view-block-select-button__title"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, {
- ellipsizeMode: "auto"
- }, blockTitle)))), (0,external_React_.createElement)("div", {
- className: "block-editor-list-view-block__menu-cell"
- }))));
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/list-view/use-block-selection.js
@@ -53656,6 +58442,47 @@ function useListViewClientIds({
}, [blocks, rootClientId]);
}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/list-view/use-list-view-collapse-items.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+function useListViewCollapseItems({
+ collapseAll,
+ expand
+}) {
+ const {
+ expandedBlock,
+ getBlockParents
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getBlockParents: _getBlockParents,
+ getExpandedBlock
+ } = unlock(select(store));
+ return {
+ expandedBlock: getExpandedBlock(),
+ getBlockParents: _getBlockParents
+ };
+ }, []);
+
+ // Collapse all but the specified block when the expanded block client Id changes.
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (expandedBlock) {
+ const blockParents = getBlockParents(expandedBlock, false);
+ // Collapse all blocks and expand the block's parents.
+ collapseAll();
+ expand(blockParents);
+ }
+ }, [collapseAll, expand, expandedBlock, getBlockParents]);
+}
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/list-view/use-list-view-drop-zone.js
/**
* WordPress dependencies
@@ -53714,7 +58541,7 @@ function useListViewClientIds({
// When the indentation level, the corresponding left margin in `style.scss`
// must be updated as well to ensure the drop zone is aligned with the indentation.
-const NESTING_LEVEL_INDENTATION = 28;
+const NESTING_LEVEL_INDENTATION = 24;
/**
* Determines whether the user is positioning the dragged block to be
@@ -54247,7 +59074,7 @@ function use_clipboard_handler_useClipboardHandler({
if (event.type === 'cut') {
var _getPreviousBlockClie;
// Don't update the selection if the blocks cannot be deleted.
- if (!canRemoveBlocks(selectedBlockClientIds, firstBlockRootClientId)) {
+ if (!canRemoveBlocks(selectedBlockClientIds)) {
return;
}
let blockToFocus = (_getPreviousBlockClie = getPreviousBlockClientId(firstBlockClientId)) !== null && _getPreviousBlockClie !== void 0 ? _getPreviousBlockClie :
@@ -54301,7 +59128,6 @@ function use_clipboard_handler_useClipboardHandler({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/list-view/index.js
-
/**
* External dependencies
*/
@@ -54332,7 +59158,13 @@ function use_clipboard_handler_useClipboardHandler({
+
+
+
const expanded = (state, action) => {
+ if (action.type === 'clear') {
+ return {};
+ }
if (Array.isArray(action.clientIds)) {
return {
...state,
@@ -54344,7 +59176,7 @@ const expanded = (state, action) => {
}
return state;
};
-const BLOCK_LIST_ITEM_HEIGHT = 36;
+const BLOCK_LIST_ITEM_HEIGHT = 32;
/** @typedef {import('react').ComponentType} ComponentType */
/** @typedef {import('react').Ref<HTMLElement>} Ref */
@@ -54466,9 +59298,10 @@ function ListViewComponent({
if (!clientId) {
return;
}
+ const clientIds = Array.isArray(clientId) ? clientId : [clientId];
setExpandedState({
type: 'expand',
- clientIds: [clientId]
+ clientIds
});
}, [setExpandedState]);
const collapse = (0,external_wp_element_namespaceObject.useCallback)(clientId => {
@@ -54480,6 +59313,11 @@ function ListViewComponent({
clientIds: [clientId]
});
}, [setExpandedState]);
+ const collapseAll = (0,external_wp_element_namespaceObject.useCallback)(() => {
+ setExpandedState({
+ type: 'clear'
+ });
+ }, [setExpandedState]);
const expandRow = (0,external_wp_element_namespaceObject.useCallback)(row => {
expand(row?.dataset?.block);
}, [expand]);
@@ -54491,6 +59329,10 @@ function ListViewComponent({
updateBlockSelection(event, startRow?.dataset?.block, endRow?.dataset?.block);
}
}, [updateBlockSelection]);
+ useListViewCollapseItems({
+ collapseAll,
+ expand
+ });
const firstDraggedBlockClientId = draggedClientIds?.[0];
// Convert a blockDropTarget into indexes relative to the blocks in the list view.
@@ -54529,6 +59371,7 @@ function ListViewComponent({
expand,
firstDraggedBlockIndex,
collapse,
+ collapseAll,
BlockSettingsMenu,
listViewInstanceId: instanceId,
AdditionalBlockContent,
@@ -54536,7 +59379,7 @@ function ListViewComponent({
setInsertedBlock,
treeGridElementRef: elementRef,
rootClientId
- }), [blockDropPosition, blockDropTargetIndex, blockIndexes, draggedClientIds, expandedState, expand, firstDraggedBlockIndex, collapse, BlockSettingsMenu, instanceId, AdditionalBlockContent, insertedBlock, setInsertedBlock, rootClientId]);
+ }), [blockDropPosition, blockDropTargetIndex, blockIndexes, draggedClientIds, expandedState, expand, firstDraggedBlockIndex, collapse, collapseAll, BlockSettingsMenu, instanceId, AdditionalBlockContent, insertedBlock, setInsertedBlock, rootClientId]);
// List View renders a fixed number of items and relies on each having a fixed item height of 36px.
// If this value changes, we should also change the itemHeight value set in useFixedWindowList.
@@ -54557,42 +59400,46 @@ function ListViewComponent({
return null;
}
const describedById = description && `block-editor-list-view-description-${instanceId}`;
- return (0,external_React_.createElement)(external_wp_data_namespaceObject.AsyncModeProvider, {
- value: true
- }, (0,external_React_.createElement)(ListViewDropIndicatorPreview, {
- draggedBlockClientId: firstDraggedBlockClientId,
- listViewRef: elementRef,
- blockDropTarget: blockDropTarget
- }), description && (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- id: describedById
- }, description), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTreeGrid, {
- id: id,
- className: classnames_default()('block-editor-list-view-tree', {
- 'is-dragging': draggedClientIds?.length > 0 && blockDropTargetIndex !== undefined
- }),
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Block navigation structure'),
- ref: treeGridRef,
- onCollapseRow: collapseRow,
- onExpandRow: expandRow,
- onFocusRow: focusRow,
- applicationAriaLabel: (0,external_wp_i18n_namespaceObject.__)('Block navigation structure'),
- "aria-describedby": describedById,
- style: {
- '--wp-admin--list-view-dragged-items-height': draggedClientIds?.length ? `${BLOCK_LIST_ITEM_HEIGHT * (draggedClientIds.length - 1)}px` : null
- }
- }, (0,external_React_.createElement)(ListViewContext.Provider, {
- value: contextValue
- }, (0,external_React_.createElement)(branch, {
- blocks: clientIdsTree,
- parentId: rootClientId,
- selectBlock: selectEditorBlock,
- showBlockMovers: showBlockMovers,
- fixedListWindow: fixedListWindow,
- selectedClientIds: selectedClientIds,
- isExpanded: isExpanded,
- shouldShowInnerBlocks: shouldShowInnerBlocks,
- showAppender: showAppender
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_data_namespaceObject.AsyncModeProvider, {
+ value: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ListViewDropIndicatorPreview, {
+ draggedBlockClientId: firstDraggedBlockClientId,
+ listViewRef: elementRef,
+ blockDropTarget: blockDropTarget
+ }), description && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ id: describedById,
+ children: description
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTreeGrid, {
+ id: id,
+ className: dist_clsx('block-editor-list-view-tree', {
+ 'is-dragging': draggedClientIds?.length > 0 && blockDropTargetIndex !== undefined
+ }),
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Block navigation structure'),
+ ref: treeGridRef,
+ onCollapseRow: collapseRow,
+ onExpandRow: expandRow,
+ onFocusRow: focusRow,
+ applicationAriaLabel: (0,external_wp_i18n_namespaceObject.__)('Block navigation structure'),
+ "aria-describedby": describedById,
+ style: {
+ '--wp-admin--list-view-dragged-items-height': draggedClientIds?.length ? `${BLOCK_LIST_ITEM_HEIGHT * (draggedClientIds.length - 1)}px` : null
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ListViewContext.Provider, {
+ value: contextValue,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(branch, {
+ blocks: clientIdsTree,
+ parentId: rootClientId,
+ selectBlock: selectEditorBlock,
+ showBlockMovers: showBlockMovers,
+ fixedListWindow: fixedListWindow,
+ selectedClientIds: selectedClientIds,
+ isExpanded: isExpanded,
+ shouldShowInnerBlocks: shouldShowInnerBlocks,
+ showAppender: showAppender
+ })
+ })
+ })]
+ });
}
// This is the private API for the ListView component.
@@ -54602,7 +59449,7 @@ const PrivateListView = (0,external_wp_element_namespaceObject.forwardRef)(ListV
// This is the public API for the ListView component.
// We wrap the PrivateListView component to hide some props from the public API.
/* harmony default export */ const components_list_view = ((0,external_wp_element_namespaceObject.forwardRef)((props, ref) => {
- return (0,external_React_.createElement)(PrivateListView, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivateListView, {
ref: ref,
...props,
showAppender: false,
@@ -54614,7 +59461,6 @@ const PrivateListView = (0,external_wp_element_namespaceObject.forwardRef)(ListV
}));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/dropdown.js
-
/**
* WordPress dependencies
*/
@@ -54634,6 +59480,8 @@ const PrivateListView = (0,external_wp_element_namespaceObject.forwardRef)(ListV
*/
+
+
function BlockNavigationDropdownToggle({
isEnabled,
onToggle,
@@ -54641,7 +59489,7 @@ function BlockNavigationDropdownToggle({
innerRef,
...props
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
...props,
ref: innerRef,
icon: list_view,
@@ -54664,7 +59512,7 @@ function BlockNavigationDropdown({
});
const hasBlocks = (0,external_wp_data_namespaceObject.useSelect)(select => !!select(store).getBlockCount(), []);
const isEnabled = hasBlocks && !isDisabled;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Dropdown, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
contentClassName: "block-editor-block-navigation__popover",
popoverProps: {
placement: 'bottom-start'
@@ -54672,24 +59520,25 @@ function BlockNavigationDropdown({
renderToggle: ({
isOpen,
onToggle
- }) => (0,external_React_.createElement)(BlockNavigationDropdownToggle, {
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockNavigationDropdownToggle, {
...props,
innerRef: ref,
isOpen: isOpen,
onToggle: onToggle,
isEnabled: isEnabled
}),
- renderContent: () => (0,external_React_.createElement)("div", {
- className: "block-editor-block-navigation__container"
- }, (0,external_React_.createElement)("p", {
- className: "block-editor-block-navigation__label"
- }, (0,external_wp_i18n_namespaceObject.__)('List view')), (0,external_React_.createElement)(components_list_view, null))
+ renderContent: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-block-navigation__container",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "block-editor-block-navigation__label",
+ children: (0,external_wp_i18n_namespaceObject.__)('List view')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(components_list_view, {})]
+ })
});
}
/* harmony default export */ const dropdown = ((0,external_wp_element_namespaceObject.forwardRef)(BlockNavigationDropdown));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-styles/preview-panel.js
-
/**
* WordPress dependencies
*/
@@ -54701,6 +59550,7 @@ function BlockNavigationDropdown({
*/
+
function BlockStylesPreviewPanel({
genericPreviewBlock,
style,
@@ -54721,13 +59571,12 @@ function BlockStylesPreviewPanel({
example
};
}, [genericPreviewBlock, styleClassName]);
- return (0,external_React_.createElement)(preview_panel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(preview_panel, {
item: previewBlocks
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-styles/index.js
-
/**
* External dependencies
*/
@@ -54745,6 +59594,8 @@ function BlockStylesPreviewPanel({
*/
+
+
const block_styles_noop = () => {};
// Block Styles component for the Settings Sidebar.
@@ -54784,146 +59635,157 @@ function BlockStyles({
debouncedSetHoveredStyle(item);
onHoverClassName((_item$name = item?.name) !== null && _item$name !== void 0 ? _item$name : null);
};
- return (0,external_React_.createElement)("div", {
- className: "block-editor-block-styles"
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-block-styles__variants"
- }, stylesToRender.map(style => {
- const buttonText = style.label || style.name;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- className: classnames_default()('block-editor-block-styles__item', {
- 'is-active': activeStyle.name === style.name
- }),
- key: style.name,
- variant: "secondary",
- label: buttonText,
- onMouseEnter: () => styleItemHandler(style),
- onFocus: () => styleItemHandler(style),
- onMouseLeave: () => styleItemHandler(null),
- onBlur: () => styleItemHandler(null),
- onClick: () => onSelectStylePreview(style),
- "aria-current": activeStyle.name === style.name
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, {
- numberOfLines: 1,
- className: "block-editor-block-styles__item-text"
- }, buttonText));
- })), hoveredStyle && !isMobileViewport && (0,external_React_.createElement)(external_wp_components_namespaceObject.Popover, {
- placement: "left-start",
- offset: 34,
- focusOnMount: false
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-block-styles__preview-panel",
- onMouseLeave: () => styleItemHandler(null)
- }, (0,external_React_.createElement)(BlockStylesPreviewPanel, {
- activeStyle: activeStyle,
- className: previewClassName,
- genericPreviewBlock: genericPreviewBlock,
- style: hoveredStyle
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-block-styles",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-styles__variants",
+ children: stylesToRender.map(style => {
+ const buttonText = style.label || style.name;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ className: dist_clsx('block-editor-block-styles__item', {
+ 'is-active': activeStyle.name === style.name
+ }),
+ variant: "secondary",
+ label: buttonText,
+ onMouseEnter: () => styleItemHandler(style),
+ onFocus: () => styleItemHandler(style),
+ onMouseLeave: () => styleItemHandler(null),
+ onBlur: () => styleItemHandler(null),
+ onClick: () => onSelectStylePreview(style),
+ "aria-current": activeStyle.name === style.name,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTruncate, {
+ numberOfLines: 1,
+ className: "block-editor-block-styles__item-text",
+ children: buttonText
+ })
+ }, style.name);
+ })
+ }), hoveredStyle && !isMobileViewport && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover, {
+ placement: "left-start",
+ offset: 34,
+ focusOnMount: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-styles__preview-panel",
+ onMouseLeave: () => styleItemHandler(null),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockStylesPreviewPanel, {
+ activeStyle: activeStyle,
+ className: previewClassName,
+ genericPreviewBlock: genericPreviewBlock,
+ style: hoveredStyle
+ })
+ })
+ })]
+ });
}
/* harmony default export */ const block_styles = (BlockStyles);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/paragraph.js
-
/**
* WordPress dependencies
*/
-const paragraph = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const paragraph = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"
+ })
+});
/* harmony default export */ const library_paragraph = (paragraph);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/heading-level-1.js
-
/**
* WordPress dependencies
*/
-const headingLevel1 = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const headingLevel1 = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"
+ })
+});
/* harmony default export */ const heading_level_1 = (headingLevel1);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/heading-level-2.js
-
/**
* WordPress dependencies
*/
-const headingLevel2 = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const headingLevel2 = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.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.6v1.5h8v-2H17z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.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.6v1.5h8v-2H17z"
+ })
+});
/* harmony default export */ const heading_level_2 = (headingLevel2);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/heading-level-3.js
-
/**
* WordPress dependencies
*/
-const headingLevel3 = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const headingLevel3 = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"
+ })
+});
/* harmony default export */ const heading_level_3 = (headingLevel3);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/heading-level-4.js
-
/**
* WordPress dependencies
*/
-const headingLevel4 = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const headingLevel4 = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"
+ })
+});
/* harmony default export */ const heading_level_4 = (headingLevel4);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/heading-level-5.js
-
/**
* WordPress dependencies
*/
-const headingLevel5 = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const headingLevel5 = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"
+ })
+});
/* harmony default export */ const heading_level_5 = (headingLevel5);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/heading-level-6.js
-
/**
* WordPress dependencies
*/
-const headingLevel6 = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const headingLevel6 = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"
+ })
+});
/* harmony default export */ const heading_level_6 = (headingLevel6);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-heading-level-dropdown/heading-level-icon.js
-
/**
* WordPress dependencies
*/
@@ -54961,7 +59823,7 @@ function HeadingLevelIcon({
level
}) {
if (LEVEL_TO_PATH[level]) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
icon: LEVEL_TO_PATH[level]
});
}
@@ -54969,7 +59831,6 @@ function HeadingLevelIcon({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-heading-level-dropdown/index.js
-
/**
* WordPress dependencies
*/
@@ -54980,6 +59841,7 @@ function HeadingLevelIcon({
* Internal dependencies
*/
+
const HEADING_LEVELS = [1, 2, 3, 4, 5, 6];
const block_heading_level_dropdown_POPOVER_PROPS = {
className: 'block-library-heading-level-dropdown'
@@ -54992,10 +59854,10 @@ const block_heading_level_dropdown_POPOVER_PROPS = {
*
* @typedef WPHeadingLevelDropdownProps
*
- * @property {number} value The chosen heading level.
- * @property {number[]} options An array of supported heading levels.
- * @property {(newValue:number)=>any} onChange Callback to run when
- * toolbar value is changed.
+ * @property {number} value The chosen heading level.
+ * @property {number[]} options An array of supported heading levels.
+ * @property {()=>number} onChange Function called with
+ * the selected value changes.
*/
/**
@@ -55010,50 +59872,47 @@ function HeadingLevelDropdown({
value,
onChange
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarDropdownMenu, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarDropdownMenu, {
popoverProps: block_heading_level_dropdown_POPOVER_PROPS,
- icon: (0,external_React_.createElement)(HeadingLevelIcon, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HeadingLevelIcon, {
level: value
}),
label: (0,external_wp_i18n_namespaceObject.__)('Change level'),
controls: options.map(targetLevel => {
- {
- const isActive = targetLevel === value;
- return {
- icon: (0,external_React_.createElement)(HeadingLevelIcon, {
- level: targetLevel,
- isPressed: isActive
- }),
- title: targetLevel === 0 ? (0,external_wp_i18n_namespaceObject.__)('Paragraph') : (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: heading level e.g: "1", "2", "3"
- (0,external_wp_i18n_namespaceObject.__)('Heading %d'), targetLevel),
- isActive,
- onClick() {
- onChange(targetLevel);
- },
- role: 'menuitemradio'
- };
- }
+ const isActive = targetLevel === value;
+ return {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HeadingLevelIcon, {
+ level: targetLevel
+ }),
+ title: targetLevel === 0 ? (0,external_wp_i18n_namespaceObject.__)('Paragraph') : (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %d: heading level e.g: "1", "2", "3"
+ (0,external_wp_i18n_namespaceObject.__)('Heading %d'), targetLevel),
+ isActive,
+ onClick() {
+ onChange(targetLevel);
+ },
+ role: 'menuitemradio'
+ };
})
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/layout.js
-
/**
* WordPress dependencies
*/
-const layout_layout = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const layout_layout = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
+ })
+});
/* harmony default export */ const library_layout = (layout_layout);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-variation-picker/index.js
-
/**
* External dependencies
*/
@@ -55065,62 +59924,54 @@ const layout_layout = (0,external_React_.createElement)(external_wp_primitives_n
+
+
function BlockVariationPicker({
icon = library_layout,
label = (0,external_wp_i18n_namespaceObject.__)('Choose variation'),
- instructions = (0,external_wp_i18n_namespaceObject.__)('Select a variation to start with.'),
+ instructions = (0,external_wp_i18n_namespaceObject.__)('Select a variation to start with:'),
variations,
onSelect,
allowSkip
}) {
- const classes = classnames_default()('block-editor-block-variation-picker', {
+ const classes = dist_clsx('block-editor-block-variation-picker', {
'has-many-variations': variations.length > 4
});
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Placeholder, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Placeholder, {
icon: icon,
label: label,
instructions: instructions,
- className: classes
- }, (0,external_React_.createElement)("ul", {
- className: "block-editor-block-variation-picker__variations",
- role: "list",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Block variations')
- }, variations.map(variation => (0,external_React_.createElement)("li", {
- key: variation.name
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "secondary",
- icon: variation.icon && variation.icon.src ? variation.icon.src : variation.icon,
- iconSize: 48,
- onClick: () => onSelect(variation),
- className: "block-editor-block-variation-picker__variation",
- label: variation.description || variation.title
- }), (0,external_React_.createElement)("span", {
- className: "block-editor-block-variation-picker__variation-label"
- }, variation.title)))), allowSkip && (0,external_React_.createElement)("div", {
- className: "block-editor-block-variation-picker__skip"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "link",
- onClick: () => onSelect()
- }, (0,external_wp_i18n_namespaceObject.__)('Skip'))));
+ className: classes,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ className: "block-editor-block-variation-picker__variations",
+ role: "list",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Block variations'),
+ children: variations.map(variation => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ icon: variation.icon && variation.icon.src ? variation.icon.src : variation.icon,
+ iconSize: 48,
+ onClick: () => onSelect(variation),
+ className: "block-editor-block-variation-picker__variation",
+ label: variation.description || variation.title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-block-variation-picker__variation-label",
+ children: variation.title
+ })]
+ }, variation.name))
+ }), allowSkip && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-variation-picker__skip",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "link",
+ onClick: () => onSelect(),
+ children: (0,external_wp_i18n_namespaceObject.__)('Skip')
+ })
+ })]
+ });
}
/* harmony default export */ const block_variation_picker = (BlockVariationPicker);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/grid.js
-
-/**
- * WordPress dependencies
- */
-
-const grid_grid = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",
- fillRule: "evenodd",
- clipRule: "evenodd"
-}));
-/* harmony default export */ const library_grid = (grid_grid);
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-pattern-setup/constants.js
const VIEWMODES = {
carousel: 'carousel',
@@ -55128,7 +59979,6 @@ const VIEWMODES = {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-pattern-setup/setup-toolbar.js
-
/**
* WordPress dependencies
*/
@@ -55140,34 +59990,39 @@ const VIEWMODES = {
* Internal dependencies
*/
+
+
const Actions = ({
onBlockPatternSelect
-}) => (0,external_React_.createElement)("div", {
- className: "block-editor-block-pattern-setup__actions"
-}, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: onBlockPatternSelect
-}, (0,external_wp_i18n_namespaceObject.__)('Choose')));
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-pattern-setup__actions",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ onClick: onBlockPatternSelect,
+ children: (0,external_wp_i18n_namespaceObject.__)('Choose')
+ })
+});
const CarouselNavigation = ({
handlePrevious,
handleNext,
activeSlide,
totalSlides
-}) => (0,external_React_.createElement)("div", {
- className: "block-editor-block-pattern-setup__navigation"
-}, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: chevron_left,
- label: (0,external_wp_i18n_namespaceObject.__)('Previous pattern'),
- onClick: handlePrevious,
- disabled: activeSlide === 0,
- __experimentalIsFocusable: true
-}), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: chevron_right,
- label: (0,external_wp_i18n_namespaceObject.__)('Next pattern'),
- onClick: handleNext,
- disabled: activeSlide === totalSlides - 1,
- __experimentalIsFocusable: true
-}));
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-block-pattern-setup__navigation",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: chevron_left,
+ label: (0,external_wp_i18n_namespaceObject.__)('Previous pattern'),
+ onClick: handlePrevious,
+ disabled: activeSlide === 0,
+ __experimentalIsFocusable: true
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: chevron_right,
+ label: (0,external_wp_i18n_namespaceObject.__)('Next pattern'),
+ onClick: handleNext,
+ disabled: activeSlide === totalSlides - 1,
+ __experimentalIsFocusable: true
+ })]
+});
const SetupToolbar = ({
viewMode,
setViewMode,
@@ -55178,29 +60033,31 @@ const SetupToolbar = ({
onBlockPatternSelect
}) => {
const isCarouselView = viewMode === VIEWMODES.carousel;
- const displayControls = (0,external_React_.createElement)("div", {
- className: "block-editor-block-pattern-setup__display-controls"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: stretch_full_width,
- label: (0,external_wp_i18n_namespaceObject.__)('Carousel view'),
- onClick: () => setViewMode(VIEWMODES.carousel),
- isPressed: isCarouselView
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: library_grid,
- label: (0,external_wp_i18n_namespaceObject.__)('Grid view'),
- onClick: () => setViewMode(VIEWMODES.grid),
- isPressed: viewMode === VIEWMODES.grid
- }));
- return (0,external_React_.createElement)("div", {
- className: "block-editor-block-pattern-setup__toolbar"
- }, isCarouselView && (0,external_React_.createElement)(CarouselNavigation, {
- handlePrevious: handlePrevious,
- handleNext: handleNext,
- activeSlide: activeSlide,
- totalSlides: totalSlides
- }), displayControls, isCarouselView && (0,external_React_.createElement)(Actions, {
- onBlockPatternSelect: onBlockPatternSelect
- }));
+ const displayControls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-block-pattern-setup__display-controls",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: stretch_full_width,
+ label: (0,external_wp_i18n_namespaceObject.__)('Carousel view'),
+ onClick: () => setViewMode(VIEWMODES.carousel),
+ isPressed: isCarouselView
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: library_grid,
+ label: (0,external_wp_i18n_namespaceObject.__)('Grid view'),
+ onClick: () => setViewMode(VIEWMODES.grid),
+ isPressed: viewMode === VIEWMODES.grid
+ })]
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-block-pattern-setup__toolbar",
+ children: [isCarouselView && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CarouselNavigation, {
+ handlePrevious: handlePrevious,
+ handleNext: handleNext,
+ activeSlide: activeSlide,
+ totalSlides: totalSlides
+ }), displayControls, isCarouselView && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Actions, {
+ onBlockPatternSelect: onBlockPatternSelect
+ })]
+ });
};
/* harmony default export */ const setup_toolbar = (SetupToolbar);
@@ -55231,7 +60088,6 @@ function usePatternsSetup(clientId, blockName, filterPatternsFn) {
/* harmony default export */ const use_patterns_setup = (usePatternsSetup);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-pattern-setup/index.js
-
/**
* WordPress dependencies
*/
@@ -55251,6 +60107,9 @@ function usePatternsSetup(clientId, blockName, filterPatternsFn) {
+
+
+
const {
CompositeV2: block_pattern_setup_Composite,
CompositeItemV2: block_pattern_setup_CompositeItem,
@@ -55267,32 +60126,35 @@ const SetupContent = ({
const containerClass = 'block-editor-block-pattern-setup__container';
if (viewMode === VIEWMODES.carousel) {
const slideClass = new Map([[activeSlide, 'active-slide'], [activeSlide - 1, 'previous-slide'], [activeSlide + 1, 'next-slide']]);
- return (0,external_React_.createElement)("div", {
- className: "block-editor-block-pattern-setup__carousel"
- }, (0,external_React_.createElement)("div", {
- className: containerClass
- }, (0,external_React_.createElement)("div", {
- className: "carousel-container"
- }, patterns.map((pattern, index) => (0,external_React_.createElement)(BlockPatternSlide, {
- active: index === activeSlide,
- className: slideClass.get(index) || '',
- key: pattern.name,
- pattern: pattern
- })))));
- }
- return (0,external_React_.createElement)("div", {
- className: "block-editor-block-pattern-setup__grid"
- }, (0,external_React_.createElement)(block_pattern_setup_Composite, {
- store: compositeStore,
- role: "listbox",
- className: containerClass,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Patterns list')
- }, patterns.map(pattern => (0,external_React_.createElement)(block_pattern_setup_BlockPattern, {
- key: pattern.name,
- pattern: pattern,
- onSelect: onBlockPatternSelect,
- showTitles: showTitles
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-pattern-setup__carousel",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: containerClass,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "carousel-container",
+ children: patterns.map((pattern, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockPatternSlide, {
+ active: index === activeSlide,
+ className: slideClass.get(index) || '',
+ pattern: pattern
+ }, pattern.name))
+ })
+ })
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-pattern-setup__grid",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_pattern_setup_Composite, {
+ store: compositeStore,
+ role: "listbox",
+ className: containerClass,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Patterns list'),
+ children: patterns.map(pattern => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_pattern_setup_BlockPattern, {
+ pattern: pattern,
+ onSelect: onBlockPatternSelect,
+ showTitles: showTitles
+ }, pattern.name))
+ })
+ });
};
function block_pattern_setup_BlockPattern({
pattern,
@@ -55306,25 +60168,29 @@ function block_pattern_setup_BlockPattern({
viewportWidth = 700
} = pattern;
const descriptionId = (0,external_wp_compose_namespaceObject.useInstanceId)(block_pattern_setup_BlockPattern, `${baseClassName}__item-description`);
- return (0,external_React_.createElement)("div", {
- className: `${baseClassName}__list-item`
- }, (0,external_React_.createElement)(block_pattern_setup_CompositeItem, {
- render: (0,external_React_.createElement)("div", {
- "aria-describedby": description ? descriptionId : undefined,
- "aria-label": pattern.title,
- className: `${baseClassName}__item`
- }),
- id: `${baseClassName}__pattern__${pattern.name}`,
- role: "option",
- onClick: () => onSelect(blocks)
- }, (0,external_React_.createElement)(block_preview, {
- blocks: blocks,
- viewportWidth: viewportWidth
- }), showTitles && (0,external_React_.createElement)("div", {
- className: `${baseClassName}__item-title`
- }, pattern.title), !!description && (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- id: descriptionId
- }, description)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: `${baseClassName}__list-item`,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(block_pattern_setup_CompositeItem, {
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ "aria-describedby": description ? descriptionId : undefined,
+ "aria-label": pattern.title,
+ className: `${baseClassName}__item`
+ }),
+ id: `${baseClassName}__pattern__${pattern.name}`,
+ role: "option",
+ onClick: () => onSelect(blocks),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_preview, {
+ blocks: blocks,
+ viewportWidth: viewportWidth
+ }), showTitles && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: `${baseClassName}__item-title`,
+ children: pattern.title
+ }), !!description && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ id: descriptionId,
+ children: description
+ })]
+ })
+ });
}
function BlockPatternSlide({
active,
@@ -55338,18 +60204,20 @@ function BlockPatternSlide({
description
} = pattern;
const descriptionId = (0,external_wp_compose_namespaceObject.useInstanceId)(BlockPatternSlide, 'block-editor-block-pattern-setup-list__item-description');
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
"aria-hidden": !active,
role: "img",
className: `pattern-slide ${className}`,
"aria-label": title,
- "aria-describedby": description ? descriptionId : undefined
- }, (0,external_React_.createElement)(block_preview, {
- blocks: blocks,
- minHeight: minHeight
- }), !!description && (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- id: descriptionId
- }, description));
+ "aria-describedby": description ? descriptionId : undefined,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_preview, {
+ blocks: blocks,
+ minHeight: minHeight
+ }), !!description && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ id: descriptionId,
+ children: description
+ })]
+ });
}
const BlockPatternSetup = ({
clientId,
@@ -55373,34 +60241,36 @@ const BlockPatternSetup = ({
replaceBlock(clientId, clonedBlocks);
};
const onPatternSelectCallback = onBlockPatternSelect || onBlockPatternSelectDefault;
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("div", {
- className: `block-editor-block-pattern-setup view-mode-${viewMode}`
- }, (0,external_React_.createElement)(SetupContent, {
- viewMode: viewMode,
- activeSlide: activeSlide,
- patterns: patterns,
- onBlockPatternSelect: onPatternSelectCallback,
- showTitles: showTitles
- }), (0,external_React_.createElement)(setup_toolbar, {
- viewMode: viewMode,
- setViewMode: setViewMode,
- activeSlide: activeSlide,
- totalSlides: patterns.length,
- handleNext: () => {
- setActiveSlide(active => Math.min(active + 1, patterns.length - 1));
- },
- handlePrevious: () => {
- setActiveSlide(active => Math.max(active - 1, 0));
- },
- onBlockPatternSelect: () => {
- onPatternSelectCallback(patterns[activeSlide].blocks);
- }
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: `block-editor-block-pattern-setup view-mode-${viewMode}`,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SetupContent, {
+ viewMode: viewMode,
+ activeSlide: activeSlide,
+ patterns: patterns,
+ onBlockPatternSelect: onPatternSelectCallback,
+ showTitles: showTitles
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(setup_toolbar, {
+ viewMode: viewMode,
+ setViewMode: setViewMode,
+ activeSlide: activeSlide,
+ totalSlides: patterns.length,
+ handleNext: () => {
+ setActiveSlide(active => Math.min(active + 1, patterns.length - 1));
+ },
+ handlePrevious: () => {
+ setActiveSlide(active => Math.max(active - 1, 0));
+ },
+ onBlockPatternSelect: () => {
+ onPatternSelectCallback(patterns[activeSlide].blocks);
+ }
+ })]
+ })
+ });
};
/* harmony default export */ const block_pattern_setup = (BlockPatternSetup);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-variation-transforms/index.js
-
/**
* WordPress dependencies
*/
@@ -55416,29 +60286,32 @@ const BlockPatternSetup = ({
*/
+
+
function VariationsButtons({
className,
onSelectVariation,
selectedValue,
variations
}) {
- return (0,external_React_.createElement)("fieldset", {
- className: className
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "legend"
- }, (0,external_wp_i18n_namespaceObject.__)('Transform to variation')), variations.map(variation => (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- key: variation.name,
- icon: (0,external_React_.createElement)(block_icon, {
- icon: variation.icon,
- showColors: true
- }),
- isPressed: selectedValue === variation.name,
- label: selectedValue === variation.name ? variation.title : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Name of the block variation */
- (0,external_wp_i18n_namespaceObject.__)('Transform to %s'), variation.title),
- onClick: () => onSelectVariation(variation.name),
- "aria-label": variation.title,
- showTooltip: true
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
+ className: className,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ as: "legend",
+ children: (0,external_wp_i18n_namespaceObject.__)('Transform to variation')
+ }), variations.map(variation => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: variation.icon,
+ showColors: true
+ }),
+ isPressed: selectedValue === variation.name,
+ label: selectedValue === variation.name ? variation.title : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Name of the block variation */
+ (0,external_wp_i18n_namespaceObject.__)('Transform to %s'), variation.title),
+ onClick: () => onSelectVariation(variation.name),
+ "aria-label": variation.title,
+ showTooltip: true
+ }, variation.name))]
+ });
}
function VariationsDropdown({
className,
@@ -55455,7 +60328,7 @@ function VariationsDropdown({
label: title,
info: description
}));
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
className: className,
label: (0,external_wp_i18n_namespaceObject.__)('Transform to variation'),
text: (0,external_wp_i18n_namespaceObject.__)('Transform to variation'),
@@ -55466,14 +60339,18 @@ function VariationsDropdown({
icon: chevron_down,
toggleProps: {
iconPosition: 'right'
- }
- }, () => (0,external_React_.createElement)("div", {
- className: `${className}__container`
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItemsChoice, {
- choices: selectOptions,
- value: selectedValue,
- onSelect: onSelectVariation
- }))));
+ },
+ children: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: `${className}__container`,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItemsChoice, {
+ choices: selectOptions,
+ value: selectedValue,
+ onSelect: onSelectVariation
+ })
+ })
+ })
+ });
}
function VariationsToggleGroupControl({
className,
@@ -55481,22 +60358,26 @@ function VariationsToggleGroupControl({
selectedValue,
variations
}) {
- return (0,external_React_.createElement)("div", {
- className: className
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Transform to variation'),
- value: selectedValue,
- hideLabelFromVision: true,
- onChange: onSelectVariation,
- __next40pxDefaultSize: true,
- __nextHasNoMarginBottom: true
- }, variations.map(variation => (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOptionIcon, {
- key: variation.name,
- icon: variation.icon,
- value: variation.name,
- label: selectedValue === variation.name ? variation.title : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Name of the block variation */
- (0,external_wp_i18n_namespaceObject.__)('Transform to %s'), variation.title)
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: className,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Transform to variation'),
+ value: selectedValue,
+ hideLabelFromVision: true,
+ onChange: onSelectVariation,
+ __next40pxDefaultSize: true,
+ __nextHasNoMarginBottom: true,
+ children: variations.map(variation => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOptionIcon, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: variation.icon,
+ showColors: true
+ }),
+ value: variation.name,
+ label: selectedValue === variation.name ? variation.title : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Name of the block variation */
+ (0,external_wp_i18n_namespaceObject.__)('Transform to %s'), variation.title)
+ }, variation.name))
+ })
+ });
}
function __experimentalBlockVariationTransforms({
blockClientId
@@ -55546,14 +60427,16 @@ function __experimentalBlockVariationTransforms({
};
// Skip rendering if there are no variations
- if (!variations?.length) return null;
+ if (!variations?.length) {
+ return null;
+ }
const baseClass = 'block-editor-block-variation-transforms';
// Show buttons if there are more than 5 variations because the ToggleGroupControl does not wrap
const showButtons = variations.length > 5;
const ButtonComponent = showButtons ? VariationsButtons : VariationsToggleGroupControl;
const Component = hasUniqueIcons ? ButtonComponent : VariationsDropdown;
- return (0,external_React_.createElement)(Component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
className: baseClass,
onSelectVariation: onSelectVariation,
selectedValue: selectedValue,
@@ -55563,7 +60446,6 @@ function __experimentalBlockVariationTransforms({
/* harmony default export */ const block_variation_transforms = (__experimentalBlockVariationTransforms);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/color-palette/with-color-context.js
-
/**
* WordPress dependencies
*/
@@ -55573,6 +60455,7 @@ function __experimentalBlockVariationTransforms({
* Internal dependencies
*/
+
/* harmony default export */ const with_color_context = ((0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => {
return props => {
const [colorsFeature, enableCustomColors] = use_settings_useSettings('color.palette', 'color.custom');
@@ -55581,7 +60464,7 @@ function __experimentalBlockVariationTransforms({
disableCustomColors = !enableCustomColors
} = props;
const hasColorsToChoose = colors && colors.length > 0 || !disableCustomColors;
- return (0,external_React_.createElement)(WrappedComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
...props,
colors,
disableCustomColors,
@@ -55603,17 +60486,17 @@ function __experimentalBlockVariationTransforms({
/* harmony default export */ const color_palette = (with_color_context(external_wp_components_namespaceObject.ColorPalette));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/color-palette/control.js
-
/**
* Internal dependencies
*/
+
function ColorPaletteControl({
onChange,
value,
...otherProps
}) {
- return (0,external_React_.createElement)(control, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(control, {
...otherProps,
onColorChange: onChange,
colorValue: value,
@@ -55625,7 +60508,6 @@ function ColorPaletteControl({
;// CONCATENATED MODULE: external ["wp","date"]
const external_wp_date_namespaceObject = window["wp"]["date"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/date-format-picker/index.js
-
/**
* WordPress dependencies
*/
@@ -55638,6 +60520,8 @@ const external_wp_date_namespaceObject = window["wp"]["date"];
// show a date that has a day greater than 12 and a month with more than three
// letters. Here we're using 2022-01-25 which is when WordPress 5.9 was
// released.
+
+
const EXAMPLE_DATE = new Date(2022, 0, 25);
/**
@@ -55667,20 +60551,22 @@ function DateFormatPicker({
defaultFormat,
onChange
}) {
- return (0,external_React_.createElement)("fieldset", {
- className: "block-editor-date-format-picker"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "legend"
- }, (0,external_wp_i18n_namespaceObject.__)('Date format')), (0,external_React_.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Default format'),
- help: `${(0,external_wp_i18n_namespaceObject.__)('Example:')} ${(0,external_wp_date_namespaceObject.dateI18n)(defaultFormat, EXAMPLE_DATE)}`,
- checked: !format,
- onChange: checked => onChange(checked ? null : defaultFormat)
- }), format && (0,external_React_.createElement)(NonDefaultControls, {
- format: format,
- onChange: onChange
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
+ className: "block-editor-date-format-picker",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ as: "legend",
+ children: (0,external_wp_i18n_namespaceObject.__)('Date format')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Default format'),
+ help: `${(0,external_wp_i18n_namespaceObject.__)('Example:')} ${(0,external_wp_date_namespaceObject.dateI18n)(defaultFormat, EXAMPLE_DATE)}`,
+ checked: !format,
+ onChange: checked => onChange(checked ? null : defaultFormat)
+ }), format && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NonDefaultControls, {
+ format: format,
+ onChange: onChange
+ })]
+ });
}
function NonDefaultControls({
format,
@@ -55714,37 +60600,37 @@ function NonDefaultControls({
__experimentalHint: (0,external_wp_i18n_namespaceObject.__)('Enter your own date format')
};
const [isCustom, setIsCustom] = (0,external_wp_element_namespaceObject.useState)(() => !!format && !suggestedFormats.includes(format));
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.CustomSelectControl, {
- __nextUnconstrainedWidth: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Choose a format'),
- options: [...suggestedOptions, customOption],
- value: isCustom ? customOption : (_suggestedOptions$fin = suggestedOptions.find(option => option.format === format)) !== null && _suggestedOptions$fin !== void 0 ? _suggestedOptions$fin : customOption,
- onChange: ({
- selectedItem
- }) => {
- if (selectedItem === customOption) {
- setIsCustom(true);
- } else {
- setIsCustom(false);
- onChange(selectedItem.format);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CustomSelectControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Choose a format'),
+ options: [...suggestedOptions, customOption],
+ value: isCustom ? customOption : (_suggestedOptions$fin = suggestedOptions.find(option => option.format === format)) !== null && _suggestedOptions$fin !== void 0 ? _suggestedOptions$fin : customOption,
+ onChange: ({
+ selectedItem
+ }) => {
+ if (selectedItem === customOption) {
+ setIsCustom(true);
+ } else {
+ setIsCustom(false);
+ onChange(selectedItem.format);
+ }
}
- }
- }), isCustom && (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Custom format'),
- hideLabelFromVision: true,
- help: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('Enter a date or time <Link>format string</Link>.'), {
- Link: (0,external_React_.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/customize-date-and-time-format/')
- })
- }),
- value: format,
- onChange: value => onChange(value)
- }));
+ }), isCustom && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Custom format'),
+ hideLabelFromVision: true,
+ help: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('Enter a date or time <Link>format string</Link>.'), {
+ Link: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/customize-date-and-time-format/')
+ })
+ }),
+ value: format,
+ onChange: value => onChange(value)
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors-gradients/dropdown.js
-
/**
* External dependencies
*/
@@ -55762,6 +60648,9 @@ function NonDefaultControls({
// When the `ColorGradientSettingsDropdown` controls are being rendered to a
// `ToolsPanel` they must be wrapped in a `ToolsPanelItem`.
+
+
+
const WithToolsPanelItem = ({
setting,
children,
@@ -55775,7 +60664,7 @@ const WithToolsPanelItem = ({
setting.onGradientChange();
}
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
hasValue: () => {
return !!setting.colorValue || !!setting.gradientValue;
},
@@ -55788,21 +60677,24 @@ const WithToolsPanelItem = ({
// Pass resetAllFilter if supplied due to rendering via SlotFill
// into parent ToolsPanel.
,
- resetAllFilter: setting.resetAllFilter
- }, children);
+ resetAllFilter: setting.resetAllFilter,
+ children: children
+ });
};
const dropdown_LabeledColorIndicator = ({
colorValue,
label
-}) => (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "flex-start"
-}, (0,external_React_.createElement)(external_wp_components_namespaceObject.ColorIndicator, {
- className: "block-editor-panel-color-gradient-settings__color-indicator",
- colorValue: colorValue
-}), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- className: "block-editor-panel-color-gradient-settings__color-name",
- title: label
-}, label));
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ColorIndicator, {
+ className: "block-editor-panel-color-gradient-settings__color-indicator",
+ colorValue: colorValue
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ className: "block-editor-panel-color-gradient-settings__color-name",
+ title: label,
+ children: label
+ })]
+});
// Renders a color dropdown's toggle as an `Item` if it is within an `ItemGroup`
// or as a `Button` if it isn't e.g. the controls are being rendered in
@@ -55817,17 +60709,18 @@ const renderToggle = settings => ({
} = settings;
const toggleProps = {
onClick: onToggle,
- className: classnames_default()('block-editor-panel-color-gradient-settings__dropdown', {
+ className: dist_clsx('block-editor-panel-color-gradient-settings__dropdown', {
'is-open': isOpen
}),
'aria-expanded': isOpen
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- ...toggleProps
- }, (0,external_React_.createElement)(dropdown_LabeledColorIndicator, {
- colorValue: colorValue,
- label: label
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ ...toggleProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown_LabeledColorIndicator, {
+ colorValue: colorValue,
+ label: label
+ })
+ });
};
// Renders a collection of color controls as dropdowns. Depending upon the
@@ -55855,52 +60748,56 @@ function ColorGradientSettingsDropdown({
shift: true
};
}
- return (0,external_React_.createElement)(external_React_.Fragment, null, settings.map((setting, index) => {
- var _setting$gradientValu;
- const controlProps = {
- clearable: false,
- colorValue: setting.colorValue,
- colors,
- disableCustomColors,
- disableCustomGradients,
- enableAlpha,
- gradientValue: setting.gradientValue,
- gradients,
- label: setting.label,
- onColorChange: setting.onColorChange,
- onGradientChange: setting.onGradientChange,
- showTitle: false,
- __experimentalIsRenderedInSidebar,
- ...setting
- };
- const toggleSettings = {
- colorValue: (_setting$gradientValu = setting.gradientValue) !== null && _setting$gradientValu !== void 0 ? _setting$gradientValu : setting.colorValue,
- label: setting.label
- };
- return setting &&
- // If not in an `ItemGroup` wrap the dropdown in a
- // `ToolsPanelItem`
- (0,external_React_.createElement)(WithToolsPanelItem, {
- key: index,
- setting: setting,
- ...props
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Dropdown, {
- popoverProps: popoverProps,
- className: "block-editor-tools-panel-color-gradient-settings__dropdown",
- renderToggle: renderToggle(toggleSettings),
- renderContent: () => (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalDropdownContentWrapper, {
- paddingSize: "none"
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-panel-color-gradient-settings__dropdown-content"
- }, (0,external_React_.createElement)(control, {
- ...controlProps
- })))
- }));
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: settings.map((setting, index) => {
+ var _setting$gradientValu;
+ const controlProps = {
+ clearable: false,
+ colorValue: setting.colorValue,
+ colors,
+ disableCustomColors,
+ disableCustomGradients,
+ enableAlpha,
+ gradientValue: setting.gradientValue,
+ gradients,
+ label: setting.label,
+ onColorChange: setting.onColorChange,
+ onGradientChange: setting.onGradientChange,
+ showTitle: false,
+ __experimentalIsRenderedInSidebar,
+ ...setting
+ };
+ const toggleSettings = {
+ colorValue: (_setting$gradientValu = setting.gradientValue) !== null && _setting$gradientValu !== void 0 ? _setting$gradientValu : setting.colorValue,
+ label: setting.label
+ };
+ return setting &&
+ /*#__PURE__*/
+ // If not in an `ItemGroup` wrap the dropdown in a
+ // `ToolsPanelItem`
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)(WithToolsPanelItem, {
+ setting: setting,
+ ...props,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ popoverProps: popoverProps,
+ className: "block-editor-tools-panel-color-gradient-settings__dropdown",
+ renderToggle: renderToggle(toggleSettings),
+ renderContent: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalDropdownContentWrapper, {
+ paddingSize: "none",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-panel-color-gradient-settings__dropdown-content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(control, {
+ ...controlProps
+ })
+ })
+ })
+ })
+ }, index);
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors-gradients/panel-color-gradient-settings.js
-
/**
* External dependencies
*/
@@ -55918,6 +60815,9 @@ function ColorGradientSettingsDropdown({
*/
+
+
+
const panel_color_gradient_settings_colorsAndGradientKeys = ['colors', 'disableCustomColors', 'gradients', 'disableCustomGradients'];
const PanelColorGradientSettingsInner = ({
className,
@@ -55939,8 +60839,8 @@ const PanelColorGradientSettingsInner = ({
if ((!colors || colors.length === 0) && (!gradients || gradients.length === 0) && disableCustomColors && disableCustomGradients && settings?.every(setting => (!setting.colors || setting.colors.length === 0) && (!setting.gradients || setting.gradients.length === 0) && (setting.disableCustomColors === undefined || setting.disableCustomColors) && (setting.disableCustomGradients === undefined || setting.disableCustomGradients))) {
return null;
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
- className: classnames_default()('block-editor-panel-color-gradient-settings', className),
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
+ className: dist_clsx('block-editor-panel-color-gradient-settings', className),
label: showTitle ? title : undefined,
resetAll: () => {
batch(() => {
@@ -55960,39 +60860,64 @@ const PanelColorGradientSettingsInner = ({
},
panelId: panelId,
__experimentalFirstVisibleItemClass: "first",
- __experimentalLastVisibleItemClass: "last"
- }, (0,external_React_.createElement)(ColorGradientSettingsDropdown, {
- settings: settings,
- panelId: panelId,
- colors,
- gradients,
- disableCustomColors,
- disableCustomGradients,
- __experimentalIsRenderedInSidebar,
- enableAlpha
- }), !!children && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- marginY: 4
- }), " ", children));
+ __experimentalLastVisibleItemClass: "last",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorGradientSettingsDropdown, {
+ settings: settings,
+ panelId: panelId,
+ colors,
+ gradients,
+ disableCustomColors,
+ disableCustomGradients,
+ __experimentalIsRenderedInSidebar,
+ enableAlpha
+ }), !!children && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ marginY: 4
+ }), " ", children]
+ })]
+ });
};
const PanelColorGradientSettingsSelect = props => {
const colorGradientSettings = useMultipleOriginColorsAndGradients();
- return (0,external_React_.createElement)(PanelColorGradientSettingsInner, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PanelColorGradientSettingsInner, {
...colorGradientSettings,
...props
});
};
const PanelColorGradientSettings = props => {
if (panel_color_gradient_settings_colorsAndGradientKeys.every(key => props.hasOwnProperty(key))) {
- return (0,external_React_.createElement)(PanelColorGradientSettingsInner, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PanelColorGradientSettingsInner, {
...props
});
}
- return (0,external_React_.createElement)(PanelColorGradientSettingsSelect, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PanelColorGradientSettingsSelect, {
...props
});
};
/* harmony default export */ const panel_color_gradient_settings = (PanelColorGradientSettings);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/aspect-ratio.js
+/**
+ * WordPress dependencies
+ */
+
+
+const aspectRatio = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const aspect_ratio = (aspectRatio);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/image-editor/constants.js
+const MIN_ZOOM = 100;
+const MAX_ZOOM = 300;
+const constants_POPOVER_PROPS = {
+ placement: 'bottom-start'
+};
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/image-editor/use-save-image.js
/**
* WordPress dependencies
@@ -56171,7 +61096,6 @@ function useTransformImage({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/image-editor/context.js
-
/**
* WordPress dependencies
*/
@@ -56182,6 +61106,7 @@ function useTransformImage({
*/
+
const ImageEditingContext = (0,external_wp_element_namespaceObject.createContext)({});
const useImageEditingContext = () => (0,external_wp_element_namespaceObject.useContext)(ImageEditingContext);
function ImageEditingProvider({
@@ -56209,239 +61134,513 @@ function ImageEditingProvider({
...transformImage,
...saveImage
}), [transformImage, saveImage]);
- return (0,external_React_.createElement)(ImageEditingContext.Provider, {
- value: providerValue
- }, children);
-}
-
-;// 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 (Object.prototype.hasOwnProperty.call(b, 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 };
- }
-}
-
-var __createBinding = Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-});
-
-function __exportStar(m, o) {
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, 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;
-};
-
-var __setModuleDefault = Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-};
-
-function __importStar(mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
- __setModuleDefault(result, 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;
-}
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ImageEditingContext.Provider, {
+ value: providerValue,
+ children: children
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/image-editor/aspect-ratio-dropdown.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+function AspectRatioGroup({
+ aspectRatios,
+ isDisabled,
+ label,
+ onClick,
+ value
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ label: label,
+ children: aspectRatios.map(({
+ name,
+ slug,
+ ratio
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ disabled: isDisabled,
+ onClick: () => {
+ onClick(ratio);
+ },
+ role: "menuitemradio",
+ isSelected: ratio === value,
+ icon: ratio === value ? library_check : undefined,
+ children: name
+ }, slug))
+ });
+}
+function ratioToNumber(str) {
+ // TODO: support two-value aspect ratio?
+ // https://css-tricks.com/almanac/properties/a/aspect-ratio/#aa-it-can-take-two-values
+ const [a, b, ...rest] = str.split('/').map(Number);
+ if (a <= 0 || b <= 0 || Number.isNaN(a) || Number.isNaN(b) || rest.length) {
+ return NaN;
+ }
+ return b ? a / b : a;
+}
+function presetRatioAsNumber({
+ ratio,
+ ...rest
+}) {
+ return {
+ ratio: ratioToNumber(ratio),
+ ...rest
+ };
+}
+function AspectRatioDropdown({
+ toggleProps
+}) {
+ const {
+ isInProgress,
+ aspect,
+ setAspect,
+ defaultAspect
+ } = useImageEditingContext();
+ const [defaultRatios, themeRatios, showDefaultRatios] = use_settings_useSettings('dimensions.aspectRatios.default', 'dimensions.aspectRatios.theme', 'dimensions.defaultAspectRatios');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
+ icon: aspect_ratio,
+ label: (0,external_wp_i18n_namespaceObject.__)('Aspect Ratio'),
+ popoverProps: constants_POPOVER_PROPS,
+ toggleProps: toggleProps,
+ children: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AspectRatioGroup, {
+ isDisabled: isInProgress,
+ onClick: newAspect => {
+ setAspect(newAspect);
+ onClose();
+ },
+ value: aspect,
+ aspectRatios: [
+ // All ratios should be mirrored in AspectRatioTool in @wordpress/block-editor.
+ {
+ slug: 'original',
+ name: (0,external_wp_i18n_namespaceObject.__)('Original'),
+ aspect: defaultAspect
+ }, ...(showDefaultRatios ? defaultRatios.map(presetRatioAsNumber).filter(({
+ ratio
+ }) => ratio === 1) : [])]
+ }), themeRatios?.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AspectRatioGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Theme'),
+ isDisabled: isInProgress,
+ onClick: newAspect => {
+ setAspect(newAspect);
+ onClose();
+ },
+ value: aspect,
+ aspectRatios: themeRatios
+ }), showDefaultRatios && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AspectRatioGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Landscape'),
+ isDisabled: isInProgress,
+ onClick: newAspect => {
+ setAspect(newAspect);
+ onClose();
+ },
+ value: aspect,
+ aspectRatios: defaultRatios.map(presetRatioAsNumber).filter(({
+ ratio
+ }) => ratio > 1)
+ }), showDefaultRatios && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AspectRatioGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Portrait'),
+ isDisabled: isInProgress,
+ onClick: newAspect => {
+ setAspect(newAspect);
+ onClose();
+ },
+ value: aspect,
+ aspectRatios: defaultRatios.map(presetRatioAsNumber).filter(({
+ ratio
+ }) => ratio < 1)
+ })]
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/tslib/tslib.es6.mjs
+/******************************************************************************
+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, SuppressedError, Symbol */
+
+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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+ return extendStatics(d, b);
+};
+
+function __extends(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ 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 __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
+ var _, done = false;
+ for (var i = decorators.length - 1; i >= 0; i--) {
+ var context = {};
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
+ if (kind === "accessor") {
+ if (result === void 0) continue;
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
+ if (_ = accept(result.get)) descriptor.get = _;
+ if (_ = accept(result.set)) descriptor.set = _;
+ if (_ = accept(result.init)) initializers.unshift(_);
+ }
+ else if (_ = accept(result)) {
+ if (kind === "field") initializers.unshift(_);
+ else descriptor[key] = _;
+ }
+ }
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
+ done = true;
+};
+
+function __runInitializers(thisArg, initializers, value) {
+ var useValue = arguments.length > 2;
+ for (var i = 0; i < initializers.length; i++) {
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
+ }
+ return useValue ? value : void 0;
+};
+
+function __propKey(x) {
+ return typeof x === "symbol" ? x : "".concat(x);
+};
+
+function __setFunctionName(f, name, prefix) {
+ if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
+};
+
+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 (g && (g = 0, op[0] && (_ = 0)), _) 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 };
+ }
+}
+
+var __createBinding = Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+});
+
+function __exportStar(m, o) {
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, 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;
+}
+
+/** @deprecated */
+function __spread() {
+ for (var ar = [], i = 0; i < arguments.length; i++)
+ ar = ar.concat(__read(arguments[i]));
+ return ar;
+}
+
+/** @deprecated */
+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 __spreadArray(to, from, pack) {
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
+ if (ar || !(i in from)) {
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
+ ar[i] = from[i];
+ }
+ }
+ return to.concat(ar || Array.prototype.slice.call(from));
+}
+
+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: false } : 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;
+};
+
+var __setModuleDefault = Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+};
+
+function __importStar(mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+}
+
+function __importDefault(mod) {
+ return (mod && mod.__esModule) ? mod : { default: mod };
+}
+
+function __classPrivateFieldGet(receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+}
+
+function __classPrivateFieldSet(receiver, state, value, kind, f) {
+ if (kind === "m") throw new TypeError("Private method is not writable");
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
+}
+
+function __classPrivateFieldIn(state, receiver) {
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
+ return typeof state === "function" ? receiver === state : state.has(receiver);
+}
+
+function __addDisposableResource(env, value, async) {
+ if (value !== null && value !== void 0) {
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
+ var dispose;
+ if (async) {
+ if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
+ dispose = value[Symbol.asyncDispose];
+ }
+ if (dispose === void 0) {
+ if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
+ dispose = value[Symbol.dispose];
+ }
+ if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
+ env.stack.push({ value: value, dispose: dispose, async: async });
+ }
+ else if (async) {
+ env.stack.push({ async: true });
+ }
+ return value;
+}
+
+var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
+ var e = new Error(message);
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
+};
+
+function __disposeResources(env) {
+ function fail(e) {
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
+ env.hasError = true;
+ }
+ function next() {
+ while (env.stack.length) {
+ var rec = env.stack.pop();
+ try {
+ var result = rec.dispose && rec.dispose.call(rec.value);
+ if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
+ }
+ catch (e) {
+ fail(e);
+ }
+ }
+ if (env.hasError) throw env.error;
+ }
+ return next();
+}
+
+/* harmony default export */ const tslib_es6 = ({
+ __extends,
+ __assign,
+ __rest,
+ __decorate,
+ __param,
+ __metadata,
+ __awaiter,
+ __generator,
+ __createBinding,
+ __exportStar,
+ __values,
+ __read,
+ __spread,
+ __spreadArrays,
+ __spreadArray,
+ __await,
+ __asyncGenerator,
+ __asyncDelegator,
+ __asyncValues,
+ __makeTemplateObject,
+ __importStar,
+ __importDefault,
+ __classPrivateFieldGet,
+ __classPrivateFieldSet,
+ __classPrivateFieldIn,
+ __addDisposableResource,
+ __disposeResources,
+});
// EXTERNAL MODULE: ./node_modules/normalize-wheel/index.js
var normalize_wheel = __webpack_require__(7520);
@@ -56653,14 +61852,18 @@ function classNames() {
var css_248z = ".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 display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\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}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\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_MIN_ZOOM = 1;
+var index_module_MAX_ZOOM = 3;
var Cropper = /** @class */function (_super) {
__extends(Cropper, _super);
function Cropper() {
var _this = _super !== null && _super.apply(this, arguments) || this;
- _this.imageRef = external_React_default().createRef();
- _this.videoRef = external_React_default().createRef();
+ _this.imageRef = external_React_.createRef();
+ _this.videoRef = external_React_.createRef();
+ _this.containerPosition = {
+ x: 0,
+ y: 0
+ };
_this.containerRef = null;
_this.styleRef = null;
_this.containerRect = null;
@@ -56691,7 +61894,8 @@ var Cropper = /** @class */function (_super) {
_this.resizeObserver = null;
_this.state = {
cropSize: null,
- hasWheelJustStarted: false
+ hasWheelJustStarted: false,
+ mediaObjectFit: undefined
};
_this.initResizeObserver = function () {
if (typeof window.ResizeObserver === 'undefined' || !_this.containerRef) {
@@ -56719,6 +61923,7 @@ var Cropper = /** @class */function (_super) {
_this.currentDoc.removeEventListener('touchend', _this.onDragStopped);
_this.currentDoc.removeEventListener('gesturemove', _this.onGestureMove);
_this.currentDoc.removeEventListener('gestureend', _this.onGestureEnd);
+ _this.currentDoc.removeEventListener('scroll', _this.onScroll);
};
_this.clearScrollEvent = function () {
if (_this.containerRef) _this.containerRef.removeEventListener('wheel', _this.onWheel);
@@ -56756,6 +61961,7 @@ var Cropper = /** @class */function (_super) {
var mediaRef = _this.imageRef.current || _this.videoRef.current;
if (mediaRef && _this.containerRef) {
_this.containerRect = _this.containerRef.getBoundingClientRect();
+ _this.saveContainerPosition();
var containerAspect = _this.containerRect.width / _this.containerRect.height;
var naturalWidth = ((_a = _this.imageRef.current) === null || _a === void 0 ? void 0 : _a.naturalWidth) || ((_b = _this.videoRef.current) === null || _b === void 0 ? void 0 : _b.videoWidth) || 0;
var naturalHeight = ((_c = _this.imageRef.current) === null || _c === void 0 ? void 0 : _c.naturalHeight) || ((_d = _this.videoRef.current) === null || _d === void 0 ? void 0 : _d.videoHeight) || 0;
@@ -56769,7 +61975,7 @@ var Cropper = /** @class */function (_super) {
// However, for this to work, the container should not be rotated
var renderedMediaSize = void 0;
if (isMediaScaledDown) {
- switch (_this.props.objectFit) {
+ switch (_this.state.mediaObjectFit) {
default:
case 'contain':
renderedMediaSize = containerAspect > mediaAspect ? {
@@ -56792,15 +61998,6 @@ var Cropper = /** @class */function (_super) {
height: _this.containerRect.height
};
break;
- case 'auto-cover':
- renderedMediaSize = naturalWidth > naturalHeight ? {
- width: _this.containerRect.width,
- height: _this.containerRect.width / mediaAspect
- } : {
- width: _this.containerRect.height * mediaAspect,
- height: _this.containerRect.height
- };
- break;
}
} else {
renderedMediaSize = {
@@ -56830,16 +62027,31 @@ var Cropper = /** @class */function (_super) {
return cropSize;
}
};
+ _this.saveContainerPosition = function () {
+ if (_this.containerRef) {
+ var bounds = _this.containerRef.getBoundingClientRect();
+ _this.containerPosition = {
+ x: bounds.left,
+ y: bounds.top
+ };
+ }
+ };
_this.onMouseDown = function (e) {
if (!_this.currentDoc) return;
e.preventDefault();
_this.currentDoc.addEventListener('mousemove', _this.onMouseMove);
_this.currentDoc.addEventListener('mouseup', _this.onDragStopped);
+ _this.saveContainerPosition();
_this.onDragStart(Cropper.getMousePoint(e));
};
_this.onMouseMove = function (e) {
return _this.onDrag(Cropper.getMousePoint(e));
};
+ _this.onScroll = function (e) {
+ if (!_this.currentDoc) return;
+ e.preventDefault();
+ _this.saveContainerPosition();
+ };
_this.onTouchStart = function (e) {
if (!_this.currentDoc) return;
_this.isTouching = true;
@@ -56850,6 +62062,7 @@ var Cropper = /** @class */function (_super) {
passive: false
}); // iOS 11 now defaults to passive: true
_this.currentDoc.addEventListener('touchend', _this.onDragStopped);
+ _this.saveContainerPosition();
if (e.touches.length === 2) {
_this.onPinchStart(e);
} else if (e.touches.length === 1) {
@@ -56960,15 +62173,15 @@ var Cropper = /** @class */function (_super) {
});
}, 250);
};
- _this.getPointOnContainer = function (_a) {
+ _this.getPointOnContainer = function (_a, containerTopLeft) {
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)
+ x: _this.containerRect.width / 2 - (x - containerTopLeft.x),
+ y: _this.containerRect.height / 2 - (y - containerTopLeft.y)
};
};
_this.getPointOnMedia = function (_a) {
@@ -56989,7 +62202,7 @@ var Cropper = /** @class */function (_super) {
if (!_this.state.cropSize || !_this.props.onZoomChange) return;
var newZoom = clamp(zoom, _this.props.minZoom, _this.props.maxZoom);
if (shouldUpdatePosition) {
- var zoomPoint = _this.getPointOnContainer(point);
+ var zoomPoint = _this.getPointOnContainer(point, _this.containerPosition);
var zoomTarget = _this.getPointOnMedia(zoomPoint);
var requestedPosition = {
x: zoomTarget.x * newZoom - zoomPoint.x,
@@ -57056,6 +62269,7 @@ var Cropper = /** @class */function (_super) {
});
this.containerRef.addEventListener('gesturestart', this.onGestureStart);
}
+ this.currentDoc.addEventListener('scroll', this.onScroll);
if (!this.props.disableAutomaticStylesInjection) {
this.styleRef = this.currentDoc.createElement('style');
this.styleRef.setAttribute('type', 'text/css');
@@ -57100,6 +62314,8 @@ var Cropper = /** @class */function (_super) {
this.recomputeCropPosition();
} else if (prevProps.aspect !== this.props.aspect) {
this.computeSizes();
+ } else if (prevProps.objectFit !== this.props.objectFit) {
+ 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)) {
@@ -57115,6 +62331,12 @@ var Cropper = /** @class */function (_super) {
if (prevProps.video !== this.props.video) {
(_j = this.videoRef.current) === null || _j === void 0 ? void 0 : _j.load();
}
+ var objectFit = this.getObjectFit();
+ if (objectFit !== this.state.mediaObjectFit) {
+ this.setState({
+ mediaObjectFit: objectFit
+ }, this.computeSizes);
+ }
};
Cropper.prototype.getAspect = function () {
var _a = this.props,
@@ -57125,6 +62347,22 @@ var Cropper = /** @class */function (_super) {
}
return aspect;
};
+ Cropper.prototype.getObjectFit = function () {
+ var _a, _b, _c, _d;
+ if (this.props.objectFit === 'cover') {
+ var mediaRef = this.imageRef.current || this.videoRef.current;
+ if (mediaRef && this.containerRef) {
+ this.containerRect = this.containerRef.getBoundingClientRect();
+ var containerAspect = this.containerRect.width / this.containerRect.height;
+ var naturalWidth = ((_a = this.imageRef.current) === null || _a === void 0 ? void 0 : _a.naturalWidth) || ((_b = this.videoRef.current) === null || _b === void 0 ? void 0 : _b.videoWidth) || 0;
+ var naturalHeight = ((_c = this.imageRef.current) === null || _c === void 0 ? void 0 : _c.naturalHeight) || ((_d = this.videoRef.current) === null || _d === void 0 ? void 0 : _d.videoHeight) || 0;
+ var mediaAspect = naturalWidth / naturalHeight;
+ return mediaAspect < containerAspect ? 'horizontal-cover' : 'vertical-cover';
+ }
+ return 'horizontal-cover';
+ }
+ return this.props.objectFit;
+ };
Cropper.prototype.onPinchStart = function (e) {
var pointA = Cropper.getTouchPoint(e.touches[0]);
var pointB = Cropper.getTouchPoint(e.touches[1]);
@@ -57174,9 +62412,9 @@ var Cropper = /** @class */function (_super) {
_d = _a.classes,
containerClassName = _d.containerClassName,
cropAreaClassName = _d.cropAreaClassName,
- mediaClassName = _d.mediaClassName,
- objectFit = _a.objectFit;
- return external_React_default().createElement("div", {
+ mediaClassName = _d.mediaClassName;
+ var objectFit = this.state.mediaObjectFit;
+ return external_React_.createElement("div", {
onMouseDown: this.onMouseDown,
onTouchStart: this.onTouchStart,
ref: function ref(el) {
@@ -57185,9 +62423,9 @@ var Cropper = /** @class */function (_super) {
"data-testid": "container",
style: containerStyle,
className: classNames('reactEasyCrop_Container', containerClassName)
- }, image ? external_React_default().createElement("img", __assign({
+ }, image ? external_React_.createElement("img", __assign({
alt: "",
- className: classNames('reactEasyCrop_Image', objectFit === 'contain' && 'reactEasyCrop_Contain', objectFit === 'horizontal-cover' && 'reactEasyCrop_Cover_Horizontal', objectFit === 'vertical-cover' && 'reactEasyCrop_Cover_Vertical', objectFit === 'auto-cover' && (this.mediaSize.naturalWidth > this.mediaSize.naturalHeight ? 'reactEasyCrop_Cover_Horizontal' : 'reactEasyCrop_Cover_Vertical'), mediaClassName)
+ className: classNames('reactEasyCrop_Image', objectFit === 'contain' && 'reactEasyCrop_Contain', objectFit === 'horizontal-cover' && 'reactEasyCrop_Cover_Horizontal', objectFit === 'vertical-cover' && 'reactEasyCrop_Cover_Vertical', mediaClassName)
}, mediaProps, {
src: image,
ref: this.imageRef,
@@ -57195,11 +62433,11 @@ var Cropper = /** @class */function (_super) {
transform: transform || "translate(".concat(x, "px, ").concat(y, "px) rotate(").concat(rotation, "deg) scale(").concat(zoom, ")")
}),
onLoad: this.onMediaLoad
- })) : video && external_React_default().createElement("video", __assign({
+ })) : video && external_React_.createElement("video", __assign({
autoPlay: true,
loop: true,
muted: true,
- className: classNames('reactEasyCrop_Video', objectFit === 'contain' && 'reactEasyCrop_Contain', objectFit === 'horizontal-cover' && 'reactEasyCrop_Cover_Horizontal', objectFit === 'vertical-cover' && 'reactEasyCrop_Cover_Vertical', objectFit === 'auto-cover' && (this.mediaSize.naturalWidth > this.mediaSize.naturalHeight ? 'reactEasyCrop_Cover_Horizontal' : 'reactEasyCrop_Cover_Vertical'), mediaClassName)
+ className: classNames('reactEasyCrop_Video', objectFit === 'contain' && 'reactEasyCrop_Contain', objectFit === 'horizontal-cover' && 'reactEasyCrop_Cover_Horizontal', objectFit === 'vertical-cover' && 'reactEasyCrop_Cover_Vertical', mediaClassName)
}, mediaProps, {
ref: this.videoRef,
onLoadedMetadata: this.onMediaLoad,
@@ -57210,10 +62448,10 @@ var Cropper = /** @class */function (_super) {
}), (Array.isArray(video) ? video : [{
src: video
}]).map(function (item) {
- return external_React_default().createElement("source", __assign({
+ return external_React_.createElement("source", __assign({
key: item.src
}, item));
- })), this.state.cropSize && external_React_default().createElement("div", {
+ })), this.state.cropSize && external_React_.createElement("div", {
style: __assign(__assign({}, cropAreaStyle), {
width: this.state.cropSize.width,
height: this.state.cropSize.height
@@ -57226,8 +62464,8 @@ var Cropper = /** @class */function (_super) {
zoom: 1,
rotation: 0,
aspect: 4 / 3,
- maxZoom: MAX_ZOOM,
- minZoom: MIN_ZOOM,
+ maxZoom: index_module_MAX_ZOOM,
+ minZoom: index_module_MIN_ZOOM,
cropShape: 'rect',
objectFit: 'contain',
showGrid: true,
@@ -57251,19 +62489,11 @@ var Cropper = /** @class */function (_super) {
};
};
return Cropper;
-}((external_React_default()).Component);
+}(external_React_.Component);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/image-editor/constants.js
-const constants_MIN_ZOOM = 100;
-const constants_MAX_ZOOM = 300;
-const constants_POPOVER_PROPS = {
- placement: 'bottom-start'
-};
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/image-editor/cropper.js
-
/**
* External dependencies
*/
@@ -57275,16 +62505,19 @@ const constants_POPOVER_PROPS = {
*/
+
/**
* Internal dependencies
*/
+
+
+
function ImageCropper({
url,
width,
height,
- clientWidth,
naturalHeight,
naturalWidth,
borderProps
@@ -57300,55 +62533,62 @@ function ImageCropper({
setZoom,
rotation
} = useImageEditingContext();
+ const [contentResizeListener, {
+ width: clientWidth
+ }] = (0,external_wp_compose_namespaceObject.useResizeObserver)();
let editedHeight = height || clientWidth * naturalHeight / naturalWidth;
if (rotation % 180 === 90) {
editedHeight = clientWidth * naturalWidth / naturalHeight;
}
- return (0,external_React_.createElement)("div", {
- className: classnames_default()('wp-block-image__crop-area', borderProps?.className, {
+ const area = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: dist_clsx('wp-block-image__crop-area', borderProps?.className, {
'is-applying': isInProgress
}),
style: {
...borderProps?.style,
width: width || clientWidth,
height: editedHeight
- }
- }, (0,external_React_.createElement)(Cropper, {
- image: editedUrl || url,
- disabled: isInProgress,
- minZoom: constants_MIN_ZOOM / 100,
- maxZoom: constants_MAX_ZOOM / 100,
- crop: position,
- zoom: zoom / 100,
- aspect: aspect,
- onCropChange: pos => {
- setPosition(pos);
- },
- onCropComplete: newCropPercent => {
- setCrop(newCropPercent);
},
- onZoomChange: newZoom => {
- setZoom(newZoom * 100);
- }
- }), isInProgress && (0,external_React_.createElement)(external_wp_components_namespaceObject.Spinner, null));
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Cropper, {
+ image: editedUrl || url,
+ disabled: isInProgress,
+ minZoom: MIN_ZOOM / 100,
+ maxZoom: MAX_ZOOM / 100,
+ crop: position,
+ zoom: zoom / 100,
+ aspect: aspect,
+ onCropChange: pos => {
+ setPosition(pos);
+ },
+ onCropComplete: newCropPercent => {
+ setCrop(newCropPercent);
+ },
+ onZoomChange: newZoom => {
+ setZoom(newZoom * 100);
+ }
+ }), isInProgress && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})]
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [contentResizeListener, area]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/search.js
-
/**
* WordPress dependencies
*/
-const search = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const search = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"
+ })
+});
/* harmony default export */ const library_search = (search);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/image-editor/zoom-dropdown.js
-
/**
* WordPress dependencies
*/
@@ -57361,175 +62601,53 @@ const search = (0,external_React_.createElement)(external_wp_primitives_namespac
*/
+
function ZoomDropdown() {
const {
isInProgress,
zoom,
setZoom
} = useImageEditingContext();
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Dropdown, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
contentClassName: "wp-block-image__zoom",
popoverProps: constants_POPOVER_PROPS,
renderToggle: ({
isOpen,
onToggle
- }) => (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
icon: library_search,
label: (0,external_wp_i18n_namespaceObject.__)('Zoom'),
onClick: onToggle,
"aria-expanded": isOpen,
disabled: isInProgress
}),
- renderContent: () => (0,external_React_.createElement)(external_wp_components_namespaceObject.RangeControl, {
+ renderContent: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
__nextHasNoMarginBottom: true,
label: (0,external_wp_i18n_namespaceObject.__)('Zoom'),
- min: constants_MIN_ZOOM,
- max: constants_MAX_ZOOM,
+ min: MIN_ZOOM,
+ max: MAX_ZOOM,
value: Math.round(zoom),
onChange: setZoom
})
});
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/aspect-ratio.js
-
-/**
- * WordPress dependencies
- */
-
-const aspectRatio = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.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 */ const aspect_ratio = (aspectRatio);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/image-editor/aspect-ratio-dropdown.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-function AspectGroup({
- aspectRatios,
- isDisabled,
- label,
- onClick,
- value
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: label
- }, aspectRatios.map(({
- title,
- aspect
- }) => (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- key: aspect,
- disabled: isDisabled,
- onClick: () => {
- onClick(aspect);
- },
- role: "menuitemradio",
- isSelected: aspect === value,
- icon: aspect === value ? library_check : undefined
- }, title)));
-}
-function AspectRatioDropdown({
- toggleProps
-}) {
- const {
- isInProgress,
- aspect,
- setAspect,
- defaultAspect
- } = useImageEditingContext();
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
- icon: aspect_ratio,
- label: (0,external_wp_i18n_namespaceObject.__)('Aspect Ratio'),
- popoverProps: constants_POPOVER_PROPS,
- toggleProps: toggleProps,
- className: "wp-block-image__aspect-ratio"
- }, ({
- onClose
- }) => (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(AspectGroup, {
- isDisabled: isInProgress,
- onClick: newAspect => {
- setAspect(newAspect);
- onClose();
- },
- value: aspect,
- aspectRatios: [
- // All ratios should be mirrored in AspectRatioTool in @wordpress/block-editor.
- {
- title: (0,external_wp_i18n_namespaceObject.__)('Original'),
- aspect: defaultAspect
- }, {
- title: (0,external_wp_i18n_namespaceObject.__)('Square'),
- aspect: 1
- }]
- }), (0,external_React_.createElement)(AspectGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Landscape'),
- isDisabled: isInProgress,
- onClick: newAspect => {
- setAspect(newAspect);
- onClose();
- },
- value: aspect,
- aspectRatios: [{
- title: (0,external_wp_i18n_namespaceObject.__)('16:9'),
- aspect: 16 / 9
- }, {
- title: (0,external_wp_i18n_namespaceObject.__)('4:3'),
- aspect: 4 / 3
- }, {
- title: (0,external_wp_i18n_namespaceObject.__)('3:2'),
- aspect: 3 / 2
- }]
- }), (0,external_React_.createElement)(AspectGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Portrait'),
- isDisabled: isInProgress,
- onClick: newAspect => {
- setAspect(newAspect);
- onClose();
- },
- value: aspect,
- aspectRatios: [{
- title: (0,external_wp_i18n_namespaceObject.__)('9:16'),
- aspect: 9 / 16
- }, {
- title: (0,external_wp_i18n_namespaceObject.__)('3:4'),
- aspect: 3 / 4
- }, {
- title: (0,external_wp_i18n_namespaceObject.__)('2:3'),
- aspect: 2 / 3
- }]
- })));
-}
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/rotate-right.js
-
/**
* WordPress dependencies
*/
-const rotateRight = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const rotateRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const rotate_right = (rotateRight);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/image-editor/rotation-button.js
-
/**
* WordPress dependencies
*/
@@ -57542,12 +62660,13 @@ const rotateRight = (0,external_React_.createElement)(external_wp_primitives_nam
* Internal dependencies
*/
+
function RotationButton() {
const {
isInProgress,
rotateClockwise
} = useImageEditingContext();
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
icon: rotate_right,
label: (0,external_wp_i18n_namespaceObject.__)('Rotate'),
onClick: rotateClockwise,
@@ -57556,7 +62675,6 @@ function RotationButton() {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/image-editor/form-controls.js
-
/**
* WordPress dependencies
*/
@@ -57567,22 +62685,28 @@ function RotationButton() {
* Internal dependencies
*/
+
+
+
function FormControls() {
const {
isInProgress,
apply,
cancel
} = useImageEditingContext();
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- onClick: apply,
- disabled: isInProgress
- }, (0,external_wp_i18n_namespaceObject.__)('Apply')), (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- onClick: cancel
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ onClick: apply,
+ disabled: isInProgress,
+ children: (0,external_wp_i18n_namespaceObject.__)('Apply')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ onClick: cancel,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/image-editor/index.js
-
/**
* WordPress dependencies
*/
@@ -57598,36 +62722,45 @@ function FormControls() {
+
+
function ImageEditor({
id,
url,
width,
height,
- clientWidth,
naturalHeight,
naturalWidth,
onSaveImage,
onFinishEditing,
borderProps
}) {
- return (0,external_React_.createElement)(ImageEditingProvider, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ImageEditingProvider, {
id: id,
url: url,
naturalWidth: naturalWidth,
naturalHeight: naturalHeight,
onSaveImage: onSaveImage,
- onFinishEditing: onFinishEditing
- }, (0,external_React_.createElement)(ImageCropper, {
- borderProps: borderProps,
- url: url,
- width: width,
- height: height,
- clientWidth: clientWidth,
- naturalHeight: naturalHeight,
- naturalWidth: naturalWidth
- }), (0,external_React_.createElement)(block_controls, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_.createElement)(ZoomDropdown, null), (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarItem, null, toggleProps => (0,external_React_.createElement)(AspectRatioDropdown, {
- toggleProps: toggleProps
- })), (0,external_React_.createElement)(RotationButton, null)), (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_.createElement)(FormControls, null))));
+ onFinishEditing: onFinishEditing,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ImageCropper, {
+ borderProps: borderProps,
+ url: url,
+ width: width,
+ height: height,
+ naturalHeight: naturalHeight,
+ naturalWidth: naturalWidth
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(block_controls, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ZoomDropdown, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
+ children: toggleProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AspectRatioDropdown, {
+ toggleProps: toggleProps
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RotationButton, {})]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FormControls, {})
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/image-size-control/use-dimension-handler.js
@@ -57690,7 +62823,6 @@ function useDimensionHandler(customHeight, customWidth, defaultHeight, defaultWi
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/image-size-control/index.js
-
/**
* WordPress dependencies
*/
@@ -57701,6 +62833,9 @@ function useDimensionHandler(customHeight, customWidth, defaultHeight, defaultWi
* Internal dependencies
*/
+
+
+
const IMAGE_SIZE_PRESETS = [25, 50, 75, 100];
const image_size_control_noop = () => {};
function ImageSizeControl({
@@ -57721,54 +62856,61 @@ function ImageSizeControl({
updateDimension,
updateDimensions
} = useDimensionHandler(height, width, imageHeight, imageWidth, onChange);
- return (0,external_React_.createElement)(external_React_.Fragment, null, imageSizeOptions && imageSizeOptions.length > 0 && (0,external_React_.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Resolution'),
- value: slug,
- options: imageSizeOptions,
- onChange: onChangeImage,
- help: imageSizeHelp,
- size: "__unstable-large"
- }), isResizable && (0,external_React_.createElement)("div", {
- className: "block-editor-image-size-control"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- align: "baseline",
- spacing: "3"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNumberControl, {
- className: "block-editor-image-size-control__width",
- label: (0,external_wp_i18n_namespaceObject.__)('Width'),
- value: currentWidth,
- min: 1,
- onChange: value => updateDimension('width', value),
- size: "__unstable-large"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNumberControl, {
- className: "block-editor-image-size-control__height",
- label: (0,external_wp_i18n_namespaceObject.__)('Height'),
- value: currentHeight,
- min: 1,
- onChange: value => updateDimension('height', value),
- size: "__unstable-large"
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.ButtonGroup, {
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Image size presets')
- }, IMAGE_SIZE_PRESETS.map(scale => {
- const scaledWidth = Math.round(imageWidth * (scale / 100));
- const scaledHeight = Math.round(imageHeight * (scale / 100));
- const isCurrent = currentWidth === scaledWidth && currentHeight === scaledHeight;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- key: scale,
- size: "small",
- variant: isCurrent ? 'primary' : undefined,
- isPressed: isCurrent,
- onClick: () => updateDimensions(scaledHeight, scaledWidth)
- }, scale, "%");
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- size: "small",
- onClick: () => updateDimensions()
- }, (0,external_wp_i18n_namespaceObject.__)('Reset')))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [imageSizeOptions && imageSizeOptions.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Resolution'),
+ value: slug,
+ options: imageSizeOptions,
+ onChange: onChangeImage,
+ help: imageSizeHelp,
+ size: "__unstable-large"
+ }), isResizable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-image-size-control",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ align: "baseline",
+ spacing: "3",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNumberControl, {
+ className: "block-editor-image-size-control__width",
+ label: (0,external_wp_i18n_namespaceObject.__)('Width'),
+ value: currentWidth,
+ min: 1,
+ onChange: value => updateDimension('width', value),
+ size: "__unstable-large"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNumberControl, {
+ className: "block-editor-image-size-control__height",
+ label: (0,external_wp_i18n_namespaceObject.__)('Height'),
+ value: currentHeight,
+ min: 1,
+ onChange: value => updateDimension('height', value),
+ size: "__unstable-large"
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ButtonGroup, {
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Image size presets'),
+ children: IMAGE_SIZE_PRESETS.map(scale => {
+ const scaledWidth = Math.round(imageWidth * (scale / 100));
+ const scaledHeight = Math.round(imageHeight * (scale / 100));
+ const isCurrent = currentWidth === scaledWidth && currentHeight === scaledHeight;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Button, {
+ size: "small",
+ variant: isCurrent ? 'primary' : undefined,
+ isPressed: isCurrent,
+ onClick: () => updateDimensions(scaledHeight, scaledWidth),
+ children: [scale, "%"]
+ }, scale);
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "small",
+ onClick: () => updateDimensions(),
+ children: (0,external_wp_i18n_namespaceObject.__)('Reset')
+ })]
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/link-viewer-url.js
-
/**
* External dependencies
*/
@@ -57779,25 +62921,26 @@ function ImageSizeControl({
*/
+
function LinkViewerURL({
url,
urlLabel,
className
}) {
- const linkClassName = classnames_default()(className, 'block-editor-url-popover__link-viewer-url');
+ const linkClassName = dist_clsx(className, 'block-editor-url-popover__link-viewer-url');
if (!url) {
- return (0,external_React_.createElement)("span", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
className: linkClassName
});
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ExternalLink, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
className: linkClassName,
- href: url
- }, urlLabel || (0,external_wp_url_namespaceObject.filterURLForDisplay)((0,external_wp_url_namespaceObject.safeDecodeURI)(url)));
+ href: url,
+ children: urlLabel || (0,external_wp_url_namespaceObject.filterURLForDisplay)((0,external_wp_url_namespaceObject.safeDecodeURI)(url))
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/link-viewer.js
-
/**
* External dependencies
*/
@@ -57814,6 +62957,8 @@ function LinkViewerURL({
* Internal dependencies
*/
+
+
function LinkViewer({
className,
linkClassName,
@@ -57822,23 +62967,23 @@ function LinkViewer({
urlLabel,
...props
}) {
- return (0,external_React_.createElement)("div", {
- className: classnames_default()('block-editor-url-popover__link-viewer', className),
- ...props
- }, (0,external_React_.createElement)(LinkViewerURL, {
- url: url,
- urlLabel: urlLabel,
- className: linkClassName
- }), onEditLinkClick && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: edit,
- label: (0,external_wp_i18n_namespaceObject.__)('Edit'),
- onClick: onEditLinkClick,
- size: "compact"
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: dist_clsx('block-editor-url-popover__link-viewer', className),
+ ...props,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LinkViewerURL, {
+ url: url,
+ urlLabel: urlLabel,
+ className: linkClassName
+ }), onEditLinkClick && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: edit,
+ label: (0,external_wp_i18n_namespaceObject.__)('Edit'),
+ onClick: onEditLinkClick,
+ size: "compact"
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/link-editor.js
-
/**
* External dependencies
*/
@@ -57855,6 +63000,8 @@ function LinkViewer({
* Internal dependencies
*/
+
+
function LinkEditor({
autocompleteRef,
className,
@@ -57862,24 +63009,24 @@ function LinkEditor({
value,
...props
}) {
- return (0,external_React_.createElement)("form", {
- className: classnames_default()('block-editor-url-popover__link-editor', className),
- ...props
- }, (0,external_React_.createElement)(url_input, {
- __nextHasNoMarginBottom: true,
- value: value,
- onChange: onChangeInputValue,
- autocompleteRef: autocompleteRef
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: keyboard_return,
- label: (0,external_wp_i18n_namespaceObject.__)('Apply'),
- type: "submit",
- size: "compact"
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("form", {
+ className: dist_clsx('block-editor-url-popover__link-editor', className),
+ ...props,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(url_input, {
+ __nextHasNoMarginBottom: true,
+ value: value,
+ onChange: onChangeInputValue,
+ autocompleteRef: autocompleteRef
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: keyboard_return,
+ label: (0,external_wp_i18n_namespaceObject.__)('Apply'),
+ type: "submit",
+ size: "compact"
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/index.js
-
/**
* WordPress dependencies
*/
@@ -57895,6 +63042,8 @@ function LinkEditor({
+
+
const {
__experimentalPopoverLegacyPositionToPlacement
} = unlock(external_wp_components_namespaceObject.privateApis);
@@ -57934,30 +63083,35 @@ const URLPopover = (0,external_wp_element_namespaceObject.forwardRef)(({
const toggleSettingsVisibility = () => {
setIsSettingsExpanded(!isSettingsExpanded);
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Popover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Popover, {
ref: ref,
className: "block-editor-url-popover",
focusOnMount: focusOnMount,
placement: computedPlacement,
shift: true,
variant: "toolbar",
- ...popoverProps
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-url-popover__input-container"
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-url-popover__row"
- }, children, !!renderSettings && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "block-editor-url-popover__settings-toggle",
- icon: chevron_down,
- label: (0,external_wp_i18n_namespaceObject.__)('Link settings'),
- onClick: toggleSettingsVisibility,
- "aria-expanded": isSettingsExpanded,
- size: "compact"
- }))), showSettings && (0,external_React_.createElement)("div", {
- className: "block-editor-url-popover__settings"
- }, renderSettings()), additionalControls && !showSettings && (0,external_React_.createElement)("div", {
- className: "block-editor-url-popover__additional-controls"
- }, additionalControls));
+ ...popoverProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-url-popover__input-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-url-popover__row",
+ children: [children, !!renderSettings && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "block-editor-url-popover__settings-toggle",
+ icon: chevron_down,
+ label: (0,external_wp_i18n_namespaceObject.__)('Link settings'),
+ onClick: toggleSettingsVisibility,
+ "aria-expanded": isSettingsExpanded,
+ size: "compact"
+ })]
+ })
+ }), showSettings && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-url-popover__settings",
+ children: renderSettings()
+ }), additionalControls && !showSettings && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-url-popover__additional-controls",
+ children: additionalControls
+ })]
+ });
});
URLPopover.LinkEditor = LinkEditor;
URLPopover.LinkViewer = LinkViewer;
@@ -57968,7 +63122,6 @@ URLPopover.LinkViewer = LinkViewer;
/* harmony default export */ const url_popover = (URLPopover);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-placeholder/index.js
-
/**
* External dependencies
*/
@@ -57992,6 +63145,9 @@ URLPopover.LinkViewer = LinkViewer;
+
+
+
const media_placeholder_noop = () => {};
const InsertFromURLPopover = ({
src,
@@ -57999,25 +63155,27 @@ const InsertFromURLPopover = ({
onSubmit,
onClose,
popoverAnchor
-}) => (0,external_React_.createElement)(url_popover, {
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(url_popover, {
anchor: popoverAnchor,
- onClose: onClose
-}, (0,external_React_.createElement)("form", {
- className: "block-editor-media-placeholder__url-input-form",
- onSubmit: onSubmit
-}, (0,external_React_.createElement)("input", {
- className: "block-editor-media-placeholder__url-input-field",
- type: "text",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('URL'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Paste or type URL'),
- onChange: onChange,
- value: src
-}), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "block-editor-media-placeholder__url-input-submit-button",
- icon: keyboard_return,
- label: (0,external_wp_i18n_namespaceObject.__)('Apply'),
- type: "submit"
-})));
+ onClose: onClose,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("form", {
+ className: "block-editor-media-placeholder__url-input-form",
+ onSubmit: onSubmit,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
+ className: "block-editor-media-placeholder__url-input-field",
+ type: "text",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('URL'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Paste or type URL'),
+ onChange: onChange,
+ value: src
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "block-editor-media-placeholder__url-input-submit-button",
+ icon: keyboard_return,
+ label: (0,external_wp_i18n_namespaceObject.__)('Apply'),
+ type: "submit"
+ })]
+ })
+});
const URLSelectionUI = ({
isURLInputVisible,
src,
@@ -58029,21 +63187,23 @@ const URLSelectionUI = ({
// Use internal state instead of a ref to make sure that the component
// re-renders when the popover's anchor updates.
const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: "block-editor-media-placeholder__url-input-container",
- ref: setPopoverAnchor
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "block-editor-media-placeholder__button",
- onClick: openURLInput,
- isPressed: isURLInputVisible,
- variant: "tertiary"
- }, (0,external_wp_i18n_namespaceObject.__)('Insert from URL')), isURLInputVisible && (0,external_React_.createElement)(InsertFromURLPopover, {
- src: src,
- onChange: onChangeSrc,
- onSubmit: onSubmitSrc,
- onClose: closeURLInput,
- popoverAnchor: popoverAnchor
- }));
+ ref: setPopoverAnchor,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "block-editor-media-placeholder__button",
+ onClick: openURLInput,
+ isPressed: isURLInputVisible,
+ variant: "secondary",
+ children: (0,external_wp_i18n_namespaceObject.__)('Insert from URL')
+ }), isURLInputVisible && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InsertFromURLPopover, {
+ src: src,
+ onChange: onChangeSrc,
+ onSubmit: onSubmitSrc,
+ onClose: closeURLInput,
+ popoverAnchor: popoverAnchor
+ })]
+ });
};
function MediaPlaceholder({
value = {},
@@ -58251,10 +63411,10 @@ function MediaPlaceholder({
}
}
}
- const placeholderClassName = classnames_default()('block-editor-media-placeholder', className, {
+ const placeholderClassName = dist_clsx('block-editor-media-placeholder', className, {
'is-appender': isAppender
});
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Placeholder, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Placeholder, {
icon: icon,
label: title,
instructions: instructions,
@@ -58262,29 +63422,31 @@ function MediaPlaceholder({
notices: notices,
onDoubleClick: onDoubleClick,
preview: mediaPreview,
- style: style
- }, content, children);
+ style: style,
+ children: [content, children]
+ });
};
const renderPlaceholder = placeholder !== null && placeholder !== void 0 ? placeholder : defaultRenderPlaceholder;
const renderDropZone = () => {
if (disableDropZone) {
return null;
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.DropZone, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropZone, {
onFilesDrop: onFilesUpload,
onHTMLDrop: onHTMLDrop
});
};
const renderCancelLink = () => {
- return onCancel && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+ return onCancel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
className: "block-editor-media-placeholder__cancel-button",
title: (0,external_wp_i18n_namespaceObject.__)('Cancel'),
variant: "link",
- onClick: onCancel
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel'));
+ onClick: onCancel,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ });
};
const renderUrlSelectionUI = () => {
- return onSelectURL && (0,external_React_.createElement)(URLSelectionUI, {
+ return onSelectURL && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(URLSelectionUI, {
isURLInputVisible: isURLInputVisible,
src: src,
onChangeSrc: onChangeSrc,
@@ -58294,73 +63456,87 @@ function MediaPlaceholder({
});
};
const renderFeaturedImageToggle = () => {
- return onToggleFeaturedImage && (0,external_React_.createElement)("div", {
- className: "block-editor-media-placeholder__url-input-container"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "block-editor-media-placeholder__button",
- onClick: onToggleFeaturedImage,
- variant: "tertiary"
- }, (0,external_wp_i18n_namespaceObject.__)('Use featured image')));
+ return onToggleFeaturedImage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-media-placeholder__url-input-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "block-editor-media-placeholder__button",
+ onClick: onToggleFeaturedImage,
+ variant: "secondary",
+ children: (0,external_wp_i18n_namespaceObject.__)('Use featured image')
+ })
+ });
};
const renderMediaUploadChecked = () => {
const defaultButton = ({
open
}) => {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "secondary",
onClick: () => {
open();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Media Library'));
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Media Library')
+ });
};
const libraryButton = mediaLibraryButton !== null && mediaLibraryButton !== void 0 ? mediaLibraryButton : defaultButton;
- const uploadMediaLibraryButton = (0,external_React_.createElement)(media_upload, {
+ const uploadMediaLibraryButton = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(media_upload, {
addToGallery: addToGallery,
gallery: multiple && onlyAllowsImages(),
multiple: multiple,
onSelect: onSelect,
allowedTypes: allowedTypes,
- mode: 'browse',
+ mode: "browse",
value: Array.isArray(value) ? value.map(({
id
}) => id) : value.id,
render: libraryButton
});
if (mediaUpload && isAppender) {
- return (0,external_React_.createElement)(external_React_.Fragment, null, renderDropZone(), (0,external_React_.createElement)(external_wp_components_namespaceObject.FormFileUpload, {
- onChange: onUpload,
- accept: accept,
- multiple: !!multiple,
- render: ({
- openFileDialog
- }) => {
- const content = (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- className: classnames_default()('block-editor-media-placeholder__button', 'block-editor-media-placeholder__upload-button'),
- onClick: openFileDialog
- }, (0,external_wp_i18n_namespaceObject.__)('Upload')), uploadMediaLibraryButton, renderUrlSelectionUI(), renderFeaturedImageToggle(), renderCancelLink());
- return renderPlaceholder(content);
- }
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [renderDropZone(), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FormFileUpload, {
+ onChange: onUpload,
+ accept: accept,
+ multiple: !!multiple,
+ render: ({
+ openFileDialog
+ }) => {
+ const content = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ className: dist_clsx('block-editor-media-placeholder__button', 'block-editor-media-placeholder__upload-button'),
+ onClick: openFileDialog,
+ children: (0,external_wp_i18n_namespaceObject.__)('Upload')
+ }), uploadMediaLibraryButton, renderUrlSelectionUI(), renderFeaturedImageToggle(), renderCancelLink()]
+ });
+ return renderPlaceholder(content);
+ }
+ })]
+ });
}
if (mediaUpload) {
- const content = (0,external_React_.createElement)(external_React_.Fragment, null, renderDropZone(), (0,external_React_.createElement)(external_wp_components_namespaceObject.FormFileUpload, {
- variant: "primary",
- className: classnames_default()('block-editor-media-placeholder__button', 'block-editor-media-placeholder__upload-button'),
- onChange: onUpload,
- accept: accept,
- multiple: !!multiple
- }, (0,external_wp_i18n_namespaceObject.__)('Upload')), uploadMediaLibraryButton, renderUrlSelectionUI(), renderFeaturedImageToggle(), renderCancelLink());
+ const content = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [renderDropZone(), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FormFileUpload, {
+ variant: "primary",
+ className: dist_clsx('block-editor-media-placeholder__button', 'block-editor-media-placeholder__upload-button'),
+ onChange: onUpload,
+ accept: accept,
+ multiple: !!multiple,
+ children: (0,external_wp_i18n_namespaceObject.__)('Upload')
+ }), uploadMediaLibraryButton, renderUrlSelectionUI(), renderFeaturedImageToggle(), renderCancelLink()]
+ });
return renderPlaceholder(content);
}
return renderPlaceholder(uploadMediaLibraryButton);
};
if (disableMediaButtons) {
- return (0,external_React_.createElement)(check, null, renderDropZone());
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(check, {
+ children: renderDropZone()
+ });
}
- return (0,external_React_.createElement)(check, {
- fallback: renderPlaceholder(renderUrlSelectionUI())
- }, renderMediaUploadChecked());
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(check, {
+ fallback: renderPlaceholder(renderUrlSelectionUI()),
+ children: renderMediaUploadChecked()
+ });
}
/**
@@ -58369,11 +63545,11 @@ function MediaPlaceholder({
/* harmony default export */ const media_placeholder = ((0,external_wp_components_namespaceObject.withFilters)('editor.MediaPlaceholder')(MediaPlaceholder));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/panel-color-settings/index.js
-
/**
* Internal dependencies
*/
+
const PanelColorSettings = ({
colorSettings,
...props
@@ -58393,7 +63569,7 @@ const PanelColorSettings = ({
onColorChange: onChange
};
});
- return (0,external_React_.createElement)(panel_color_gradient_settings, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(panel_color_gradient_settings, {
settings: settings,
gradients: [],
disableCustomGradients: true,
@@ -58403,7 +63579,6 @@ const PanelColorSettings = ({
/* harmony default export */ const panel_color_settings = (PanelColorSettings);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/format-toolbar/index.js
-
/**
* External dependencies
*/
@@ -58420,55 +63595,59 @@ const PanelColorSettings = ({
* Internal dependencies
*/
+
+
+
const format_toolbar_POPOVER_PROPS = {
placement: 'bottom-start'
};
const FormatToolbar = () => {
- return (0,external_React_.createElement)(external_React_.Fragment, null, ['bold', 'italic', 'link', 'unknown'].map(format => (0,external_React_.createElement)(external_wp_components_namespaceObject.Slot, {
- name: `RichText.ToolbarControls.${format}`,
- key: format
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.Slot, {
- name: "RichText.ToolbarControls"
- }, fills => {
- if (!fills.length) {
- return null;
- }
- const allProps = fills.map(([{
- props
- }]) => props);
- const hasActive = allProps.some(({
- isActive
- }) => isActive);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarItem, null, toggleProps => (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
- icon: chevron_down
- /* translators: button label text should, if possible, be under 16 characters. */,
- label: (0,external_wp_i18n_namespaceObject.__)('More'),
- toggleProps: {
- ...toggleProps,
- className: classnames_default()(toggleProps.className, {
- 'is-pressed': hasActive
- }),
- describedBy: (0,external_wp_i18n_namespaceObject.__)('Displays more block tools')
- },
- controls: orderBy(fills.map(([{
- props
- }]) => props), 'title'),
- popoverProps: format_toolbar_POPOVER_PROPS
- }));
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [['bold', 'italic', 'link', 'unknown'].map(format => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Slot, {
+ name: `RichText.ToolbarControls.${format}`
+ }, format)), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Slot, {
+ name: "RichText.ToolbarControls",
+ children: fills => {
+ if (!fills.length) {
+ return null;
+ }
+ const allProps = fills.map(([{
+ props
+ }]) => props);
+ const hasActive = allProps.some(({
+ isActive
+ }) => isActive);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
+ children: toggleProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
+ icon: chevron_down
+ /* translators: button label text should, if possible, be under 16 characters. */,
+ label: (0,external_wp_i18n_namespaceObject.__)('More'),
+ toggleProps: {
+ ...toggleProps,
+ className: dist_clsx(toggleProps.className, {
+ 'is-pressed': hasActive
+ }),
+ describedBy: (0,external_wp_i18n_namespaceObject.__)('Displays more block tools')
+ },
+ controls: orderBy(fills.map(([{
+ props
+ }]) => props), 'title'),
+ popoverProps: format_toolbar_POPOVER_PROPS
+ })
+ });
+ }
+ })]
+ });
};
/* harmony default export */ const format_toolbar = (FormatToolbar);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/format-toolbar-container.js
-
/**
* WordPress dependencies
*/
-
-
/**
* Internal dependencies
*/
@@ -58476,112 +63655,43 @@ const FormatToolbar = () => {
-function InlineSelectionToolbar({
- editableContentElement,
- activeFormats
-}) {
- const lastFormat = activeFormats[activeFormats.length - 1];
- const lastFormatType = lastFormat?.type;
- const settings = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_richText_namespaceObject.store).getFormatType(lastFormatType), [lastFormatType]);
- const popoverAnchor = (0,external_wp_richText_namespaceObject.useAnchor)({
- editableContentElement,
- settings
- });
- return (0,external_React_.createElement)(InlineToolbar, {
- popoverAnchor: popoverAnchor
- });
-}
function InlineToolbar({
popoverAnchor
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Popover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover, {
placement: "top",
focusOnMount: false,
anchor: popoverAnchor,
className: "block-editor-rich-text__inline-format-toolbar",
- __unstableSlotName: "block-toolbar"
- }, (0,external_React_.createElement)(NavigableToolbar, {
- className: "block-editor-rich-text__inline-format-toolbar-group"
- /* translators: accessibility text for the inline format toolbar */,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Format tools')
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_.createElement)(format_toolbar, null))));
+ __unstableSlotName: "block-toolbar",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigableToolbar, {
+ className: "block-editor-rich-text__inline-format-toolbar-group"
+ /* translators: accessibility text for the inline format toolbar */,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Format tools'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(format_toolbar, {})
+ })
+ })
+ });
}
const FormatToolbarContainer = ({
inline,
- editableContentElement,
- value
+ editableContentElement
}) => {
- const hasInlineToolbar = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getSettings().hasInlineToolbar, []);
if (inline) {
- return (0,external_React_.createElement)(InlineToolbar, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InlineToolbar, {
popoverAnchor: editableContentElement
});
}
- if (hasInlineToolbar) {
- const activeFormats = (0,external_wp_richText_namespaceObject.getActiveFormats)(value);
- if ((0,external_wp_richText_namespaceObject.isCollapsed)(value) && !activeFormats.length) {
- return null;
- }
- return (0,external_React_.createElement)(InlineSelectionToolbar, {
- editableContentElement: editableContentElement,
- activeFormats: activeFormats
- });
- }
// Render regular toolbar.
- return (0,external_React_.createElement)(block_controls, {
- group: "inline"
- }, (0,external_React_.createElement)(format_toolbar, null));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_controls, {
+ group: "inline",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(format_toolbar, {})
+ });
};
/* harmony default export */ const format_toolbar_container = (FormatToolbarContainer);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/use-undo-automatic-change.js
-/**
- * WordPress dependencies
- */
-
-
-
-
-/**
- * Internal dependencies
- */
-
-function useUndoAutomaticChange() {
- const {
- didAutomaticChange,
- getSettings
- } = (0,external_wp_data_namespaceObject.useSelect)(store);
- return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
- function onKeyDown(event) {
- const {
- keyCode
- } = event;
- if (event.defaultPrevented) {
- return;
- }
- if (keyCode !== external_wp_keycodes_namespaceObject.DELETE && keyCode !== external_wp_keycodes_namespaceObject.BACKSPACE && keyCode !== external_wp_keycodes_namespaceObject.ESCAPE) {
- return;
- }
- const {
- __experimentalUndo
- } = getSettings();
- if (!__experimentalUndo) {
- return;
- }
- if (!didAutomaticChange()) {
- return;
- }
- event.preventDefault();
- __experimentalUndo();
- }
- element.addEventListener('keydown', onKeyDown);
- return () => {
- element.removeEventListener('keydown', onKeyDown);
- };
- }, []);
-}
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/use-mark-persistent.js
/**
* WordPress dependencies
@@ -58626,301 +63736,139 @@ function useMarkPersistent({
}, [html, hasActiveFormats]);
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/utils.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/use-format-types.js
/**
* WordPress dependencies
*/
-function addActiveFormats(value, activeFormats) {
- if (activeFormats?.length) {
- let index = value.formats.length;
- while (index--) {
- value.formats[index] = [...activeFormats, ...(value.formats[index] || [])];
- }
- }
+
+function formatTypesSelector(select) {
+ return select(external_wp_richText_namespaceObject.store).getFormatTypes();
}
/**
- * Get the multiline tag based on the multiline prop.
- *
- * @param {?(string|boolean)} multiline The multiline prop.
+ * Set of all interactive content tags.
*
- * @return {string | undefined} The multiline tag.
+ * @see https://html.spec.whatwg.org/multipage/dom.html#interactive-content
*/
-function getMultilineTag(multiline) {
- if (multiline !== true && multiline !== 'p' && multiline !== 'li') {
- return;
+const interactiveContentTags = new Set(['a', 'audio', 'button', 'details', 'embed', 'iframe', 'input', 'label', 'select', 'textarea', 'video']);
+function prefixSelectKeys(selected, prefix) {
+ if (typeof selected !== 'object') {
+ return {
+ [prefix]: selected
+ };
}
- return multiline === true ? 'p' : multiline;
+ return Object.fromEntries(Object.entries(selected).map(([key, value]) => [`${prefix}.${key}`, value]));
}
-function getAllowedFormats({
- allowedFormats,
- disableFormats
-}) {
- if (disableFormats) {
- return getAllowedFormats.EMPTY_ARRAY;
+function getPrefixedSelectKeys(selected, prefix) {
+ if (selected[prefix]) {
+ return selected[prefix];
}
- return allowedFormats;
+ return Object.keys(selected).filter(key => key.startsWith(prefix + '.')).reduce((accumulator, key) => {
+ accumulator[key.slice(prefix.length + 1)] = selected[key];
+ return accumulator;
+ }, {});
}
-getAllowedFormats.EMPTY_ARRAY = [];
/**
- * Creates a link from pasted URL.
- * Creates a paragraph block containing a link to the URL, and calls `onReplace`.
+ * This hook provides RichText with the `formatTypes` and its derived props from
+ * experimental format type settings.
*
- * @param {string} url The URL that could not be embedded.
- * @param {Function} onReplace Function to call with the created fallback block.
- */
-function createLinkInParagraph(url, onReplace) {
- const link = createElement("a", {
- href: url
- }, url);
- onReplace(createBlock('core/paragraph', {
- content: renderToString(link)
- }));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/split-value.js
-/**
- * WordPress dependencies
- */
-
-
-/*
- * 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} $0 Options
+ * @param {string} $0.clientId Block client ID.
+ * @param {string} $0.identifier Block attribute.
+ * @param {boolean} $0.withoutInteractiveFormatting Whether to clean the interactive formattings or not.
+ * @param {Array} $0.allowedFormats Allowed formats
*/
-function splitValue({
- value,
- pastedBlocks = [],
- onReplace,
- onSplit
+function useFormatTypes({
+ clientId,
+ identifier,
+ withoutInteractiveFormatting,
+ allowedFormats
}) {
- if (!onReplace || !onSplit) {
- return;
- }
-
- // Ensure the value has a selection. This might happen when trying to split
- // an empty value before there was a `selectionchange` event.
- const {
- start = 0,
- end = 0
- } = value;
- const valueWithEnsuredSelection = {
- ...value,
- start,
- end
- };
- const blocks = [];
- const [before, after] = (0,external_wp_richText_namespaceObject.split)(valueWithEnsuredSelection);
- const hasPastedBlocks = pastedBlocks.length > 0;
- let lastPastedBlockIndex = -1;
-
- // Consider the after value to be the original it is not empty and the
- // before value *is* empty.
- const isAfterOriginal = (0,external_wp_richText_namespaceObject.isEmpty)(before) && !(0,external_wp_richText_namespaceObject.isEmpty)(after);
-
- // 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 we split with e.g.
- // the enter key.
- if (!hasPastedBlocks || !(0,external_wp_richText_namespaceObject.isEmpty)(before)) {
- blocks.push(onSplit((0,external_wp_richText_namespaceObject.toHTMLString)({
- value: before
- }), !isAfterOriginal));
- lastPastedBlockIndex += 1;
- }
- if (hasPastedBlocks) {
- blocks.push(...pastedBlocks);
- lastPastedBlockIndex += pastedBlocks.length;
- }
-
- // Create a block with the content after 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 trailing empty block on paste, but we do if we split with e.g.
- // the enter key.
- if (!hasPastedBlocks || !(0,external_wp_richText_namespaceObject.isEmpty)(after)) {
- blocks.push(onSplit((0,external_wp_richText_namespaceObject.toHTMLString)({
- value: after
- }), isAfterOriginal));
- }
-
- // If there are pasted blocks, set the selection to the last one. Otherwise,
- // set the selection to the second block.
- const indexToSelect = hasPastedBlocks ? lastPastedBlockIndex : 1;
-
- // If there are pasted blocks, move the caret to the end of the selected
- // block Otherwise, retain the default value.
- const initialPosition = hasPastedBlocks ? -1 : 0;
- onReplace(blocks, indexToSelect, initialPosition);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/use-paste-handler.js
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-/** @typedef {import('@wordpress/rich-text').RichTextValue} RichTextValue */
-
-function usePasteHandler(props) {
- const propsRef = (0,external_wp_element_namespaceObject.useRef)(props);
- propsRef.current = props;
- return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
- function _onPaste(event) {
- const {
- isSelected,
- disableFormats,
- onChange,
- value,
- formatTypes,
- tagName,
- onReplace,
- onSplit,
- __unstableEmbedURLOnPaste,
- pastePlainText
- } = propsRef.current;
- if (!isSelected) {
- return;
- }
- const {
- plainText,
- html,
- files
- } = getPasteEventData(event);
- event.preventDefault();
-
- // Allows us to ask for this information when we get a report.
- window.console.log('Received HTML:\n\n', html);
- window.console.log('Received plain text:\n\n', plainText);
- if (disableFormats) {
- onChange((0,external_wp_richText_namespaceObject.insert)(value, plainText));
- return;
- }
- const isInternal = event.clipboardData.getData('rich-text') === 'true';
- function pasteInline(content) {
- const transformed = formatTypes.reduce((accumulator, {
- __unstablePasteRule
- }) => {
- // Only allow one transform.
- if (__unstablePasteRule && accumulator === value) {
- accumulator = __unstablePasteRule(value, {
- html,
- plainText
- });
- }
- return accumulator;
- }, value);
- if (transformed !== value) {
- onChange(transformed);
- } else {
- const valueToInsert = (0,external_wp_richText_namespaceObject.create)({
- html: content
- });
- addActiveFormats(valueToInsert, value.activeFormats);
- onChange((0,external_wp_richText_namespaceObject.insert)(value, valueToInsert));
- }
- }
-
- // If the data comes from a rich text instance, we can directly use it
- // without filtering the data. The filters are only meant for externally
- // pasted content and remove inline styles.
- if (isInternal) {
- pasteInline(html);
- return;
- }
- if (pastePlainText) {
- onChange((0,external_wp_richText_namespaceObject.insert)(value, (0,external_wp_richText_namespaceObject.create)({
- text: plainText
- })));
- return;
+ const allFormatTypes = (0,external_wp_data_namespaceObject.useSelect)(formatTypesSelector, []);
+ const formatTypes = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return allFormatTypes.filter(({
+ name,
+ interactive,
+ tagName
+ }) => {
+ if (allowedFormats && !allowedFormats.includes(name)) {
+ return false;
}
- if (files?.length) {
- // 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);
- const fromTransforms = (0,external_wp_blocks_namespaceObject.getBlockTransforms)('from');
- const blocks = files.reduce((accumulator, file) => {
- const transformation = (0,external_wp_blocks_namespaceObject.findTransform)(fromTransforms, transform => transform.type === 'files' && transform.isMatch([file]));
- if (transformation) {
- accumulator.push(transformation.transform([file]));
- }
- return accumulator;
- }, []).flat();
- if (!blocks.length) {
- return;
- }
- if (onReplace && (0,external_wp_richText_namespaceObject.isEmpty)(value)) {
- onReplace(blocks);
- } else {
- splitValue({
- value,
- pastedBlocks: blocks,
- onReplace,
- onSplit
- });
- }
- return;
+ if (withoutInteractiveFormatting && (interactive || interactiveContentTags.has(tagName))) {
+ return false;
}
- let mode = onReplace && onSplit ? 'AUTO' : 'INLINE';
- const trimmedPlainText = plainText.trim();
- if (__unstableEmbedURLOnPaste && (0,external_wp_richText_namespaceObject.isEmpty)(value) && (0,external_wp_url_namespaceObject.isURL)(trimmedPlainText) &&
- // For the link pasting feature, allow only http(s) protocols.
- /^https?:/.test(trimmedPlainText)) {
- mode = 'BLOCKS';
- }
- const content = (0,external_wp_blocks_namespaceObject.pasteHandler)({
- HTML: html,
- plainText,
- mode,
- tagName
+ return true;
+ });
+ }, [allFormatTypes, allowedFormats, withoutInteractiveFormatting]);
+ const keyedSelected = (0,external_wp_data_namespaceObject.useSelect)(select => formatTypes.reduce((accumulator, type) => {
+ if (!type.__experimentalGetPropsForEditableTreePreparation) {
+ return accumulator;
+ }
+ return {
+ ...accumulator,
+ ...prefixSelectKeys(type.__experimentalGetPropsForEditableTreePreparation(select, {
+ richTextIdentifier: identifier,
+ blockClientId: clientId
+ }), type.name)
+ };
+ }, {}), [formatTypes, clientId, identifier]);
+ const dispatch = (0,external_wp_data_namespaceObject.useDispatch)();
+ const prepareHandlers = [];
+ const valueHandlers = [];
+ const changeHandlers = [];
+ const dependencies = [];
+ for (const key in keyedSelected) {
+ dependencies.push(keyedSelected[key]);
+ }
+ formatTypes.forEach(type => {
+ if (type.__experimentalCreatePrepareEditableTree) {
+ const handler = type.__experimentalCreatePrepareEditableTree(getPrefixedSelectKeys(keyedSelected, type.name), {
+ richTextIdentifier: identifier,
+ blockClientId: clientId
});
- if (typeof content === 'string') {
- pasteInline(content);
- } else if (content.length > 0) {
- if (onReplace && (0,external_wp_richText_namespaceObject.isEmpty)(value)) {
- onReplace(content, content.length - 1, -1);
- } else {
- splitValue({
- value,
- pastedBlocks: content,
- onReplace,
- onSplit
- });
- }
+ if (type.__experimentalCreateOnChangeEditableValue) {
+ valueHandlers.push(handler);
+ } else {
+ prepareHandlers.push(handler);
}
}
- element.addEventListener('paste', _onPaste);
- return () => {
- element.removeEventListener('paste', _onPaste);
- };
- }, []);
+ if (type.__experimentalCreateOnChangeEditableValue) {
+ let dispatchers = {};
+ if (type.__experimentalGetPropsForEditableTreeChangeHandler) {
+ dispatchers = type.__experimentalGetPropsForEditableTreeChangeHandler(dispatch, {
+ richTextIdentifier: identifier,
+ blockClientId: clientId
+ });
+ }
+ const selected = getPrefixedSelectKeys(keyedSelected, type.name);
+ changeHandlers.push(type.__experimentalCreateOnChangeEditableValue({
+ ...(typeof selected === 'object' ? selected : {}),
+ ...dispatchers
+ }, {
+ richTextIdentifier: identifier,
+ blockClientId: clientId
+ }));
+ }
+ });
+ return {
+ formatTypes,
+ prepareHandlers,
+ valueHandlers,
+ changeHandlers,
+ dependencies
+ };
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/use-before-input-rules.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/event-listeners/before-input-rules.js
/**
* WordPress dependencies
*/
-
-
-
/**
* Internal dependencies
*/
@@ -58934,75 +63882,72 @@ function usePasteHandler(props) {
* @type {string[]} Array of character pairs.
*/
const wrapSelectionSettings = ['`', '"', "'", '“”', '‘’'];
-function useBeforeInputRules(props) {
- const {
- __unstableMarkLastChangeAsPersistent,
- __unstableMarkAutomaticChange
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- const propsRef = (0,external_wp_element_namespaceObject.useRef)(props);
- propsRef.current = props;
- return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
- function onInput(event) {
- const {
- inputType,
- data
- } = event;
- const {
- value,
- onChange
- } = propsRef.current;
+/* harmony default export */ const before_input_rules = (props => element => {
+ function onInput(event) {
+ const {
+ inputType,
+ data
+ } = event;
+ const {
+ value,
+ onChange,
+ registry
+ } = props.current;
- // Only run the rules when inserting text.
- if (inputType !== 'insertText') {
- return;
- }
- if ((0,external_wp_richText_namespaceObject.isCollapsed)(value)) {
- return;
- }
- const pair = (0,external_wp_hooks_namespaceObject.applyFilters)('blockEditor.wrapSelectionSettings', wrapSelectionSettings).find(([startChar, endChar]) => startChar === data || endChar === data);
- if (!pair) {
- return;
- }
- const [startChar, endChar = startChar] = pair;
- const start = value.start;
- const end = value.end + startChar.length;
- let newValue = (0,external_wp_richText_namespaceObject.insert)(value, startChar, start, start);
- newValue = (0,external_wp_richText_namespaceObject.insert)(newValue, endChar, end, end);
- __unstableMarkLastChangeAsPersistent();
- onChange(newValue);
- __unstableMarkAutomaticChange();
- const init = {};
- for (const key in event) {
- init[key] = event[key];
- }
- init.data = endChar;
- const {
- ownerDocument
- } = element;
- const {
- defaultView
- } = ownerDocument;
- const newEvent = new defaultView.InputEvent('input', init);
-
- // Dispatch an `input` event with the new data. This will trigger the
- // input rules.
- // Postpone the `input` to the next event loop tick so that the dispatch
- // doesn't happen synchronously in the middle of `beforeinput` dispatch.
- // This is closer to how native `input` event would be timed, and also
- // makes sure that the `input` event is dispatched only after the `onChange`
- // call few lines above has fully updated the data store state and rerendered
- // all affected components.
- window.queueMicrotask(() => {
- event.target.dispatchEvent(newEvent);
- });
- event.preventDefault();
+ // Only run the rules when inserting text.
+ if (inputType !== 'insertText') {
+ return;
}
- element.addEventListener('beforeinput', onInput);
- return () => {
- element.removeEventListener('beforeinput', onInput);
- };
- }, []);
-}
+ if ((0,external_wp_richText_namespaceObject.isCollapsed)(value)) {
+ return;
+ }
+ const pair = (0,external_wp_hooks_namespaceObject.applyFilters)('blockEditor.wrapSelectionSettings', wrapSelectionSettings).find(([startChar, endChar]) => startChar === data || endChar === data);
+ if (!pair) {
+ return;
+ }
+ const [startChar, endChar = startChar] = pair;
+ const start = value.start;
+ const end = value.end + startChar.length;
+ let newValue = (0,external_wp_richText_namespaceObject.insert)(value, startChar, start, start);
+ newValue = (0,external_wp_richText_namespaceObject.insert)(newValue, endChar, end, end);
+ const {
+ __unstableMarkLastChangeAsPersistent,
+ __unstableMarkAutomaticChange
+ } = registry.dispatch(store);
+ __unstableMarkLastChangeAsPersistent();
+ onChange(newValue);
+ __unstableMarkAutomaticChange();
+ const init = {};
+ for (const key in event) {
+ init[key] = event[key];
+ }
+ init.data = endChar;
+ const {
+ ownerDocument
+ } = element;
+ const {
+ defaultView
+ } = ownerDocument;
+ const newEvent = new defaultView.InputEvent('input', init);
+
+ // Dispatch an `input` event with the new data. This will trigger the
+ // input rules.
+ // Postpone the `input` to the next event loop tick so that the dispatch
+ // doesn't happen synchronously in the middle of `beforeinput` dispatch.
+ // This is closer to how native `input` event would be timed, and also
+ // makes sure that the `input` event is dispatched only after the `onChange`
+ // call few lines above has fully updated the data store state and rerendered
+ // all affected components.
+ window.queueMicrotask(() => {
+ event.target.dispatchEvent(newEvent);
+ });
+ event.preventDefault();
+ }
+ element.addEventListener('beforeinput', onInput);
+ return () => {
+ element.removeEventListener('beforeinput', onInput);
+ };
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/prevent-event-discovery.js
/**
@@ -59026,16 +63971,13 @@ function preventEventDiscovery(value) {
return (0,external_wp_richText_namespaceObject.insert)(value, addText);
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/use-input-rules.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/event-listeners/input-rules.js
/**
* WordPress dependencies
*/
-
-
-
/**
* Internal dependencies
*/
@@ -59061,486 +64003,576 @@ function findSelection(blocks) {
}
return [];
}
-function useInputRules(props) {
- const {
- __unstableMarkLastChangeAsPersistent,
- __unstableMarkAutomaticChange
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- const propsRef = (0,external_wp_element_namespaceObject.useRef)(props);
- propsRef.current = props;
- return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
- function inputRule() {
- const {
- getValue,
- onReplace,
- selectionChange
- } = propsRef.current;
- if (!onReplace) {
- return;
- }
+/* harmony default export */ const input_rules = (props => element => {
+ function inputRule() {
+ const {
+ getValue,
+ onReplace,
+ selectionChange,
+ registry
+ } = props.current;
+ if (!onReplace) {
+ return;
+ }
- // We must use getValue() here because value may be update
- // asynchronously.
- const value = getValue();
- const {
- start,
- text
- } = value;
- const characterBefore = text.slice(start - 1, start);
+ // We must use getValue() here because value may be update
+ // asynchronously.
+ const value = getValue();
+ const {
+ start,
+ text
+ } = value;
+ const characterBefore = text.slice(start - 1, start);
- // The character right before the caret must be a plain space.
- if (characterBefore !== ' ') {
- return;
- }
- const trimmedTextBefore = text.slice(0, start).trim();
- const prefixTransforms = (0,external_wp_blocks_namespaceObject.getBlockTransforms)('from').filter(({
- type
- }) => type === 'prefix');
- const transformation = (0,external_wp_blocks_namespaceObject.findTransform)(prefixTransforms, ({
- prefix
- }) => {
- return trimmedTextBefore === prefix;
- });
- if (!transformation) {
- return;
- }
- const content = (0,external_wp_richText_namespaceObject.toHTMLString)({
- value: (0,external_wp_richText_namespaceObject.insert)(value, START_OF_SELECTED_AREA, 0, start)
- });
- const block = transformation.transform(content);
- selectionChange(...findSelection([block]));
- onReplace([block]);
- __unstableMarkAutomaticChange();
- return true;
+ // The character right before the caret must be a plain space.
+ if (characterBefore !== ' ') {
+ return;
}
- function onInput(event) {
- const {
- inputType,
- type
- } = event;
- const {
- getValue,
- onChange,
- __unstableAllowPrefixTransformations,
- formatTypes
- } = propsRef.current;
+ const trimmedTextBefore = text.slice(0, start).trim();
+ const prefixTransforms = (0,external_wp_blocks_namespaceObject.getBlockTransforms)('from').filter(({
+ type
+ }) => type === 'prefix');
+ const transformation = (0,external_wp_blocks_namespaceObject.findTransform)(prefixTransforms, ({
+ prefix
+ }) => {
+ return trimmedTextBefore === prefix;
+ });
+ if (!transformation) {
+ return;
+ }
+ const content = (0,external_wp_richText_namespaceObject.toHTMLString)({
+ value: (0,external_wp_richText_namespaceObject.insert)(value, START_OF_SELECTED_AREA, 0, start)
+ });
+ const block = transformation.transform(content);
+ selectionChange(...findSelection([block]));
+ onReplace([block]);
+ registry.dispatch(store).__unstableMarkAutomaticChange();
+ return true;
+ }
+ function onInput(event) {
+ const {
+ inputType,
+ type
+ } = event;
+ const {
+ getValue,
+ onChange,
+ __unstableAllowPrefixTransformations,
+ formatTypes,
+ registry
+ } = props.current;
- // Only run input rules when inserting text.
- if (inputType !== 'insertText' && type !== 'compositionend') {
- return;
- }
- if (__unstableAllowPrefixTransformations && inputRule()) {
- return;
- }
- const value = getValue();
- const transformed = formatTypes.reduce((accumlator, {
- __unstableInputRule
- }) => {
- if (__unstableInputRule) {
- accumlator = __unstableInputRule(accumlator);
- }
- return accumlator;
- }, preventEventDiscovery(value));
- if (transformed !== value) {
- __unstableMarkLastChangeAsPersistent();
- onChange({
- ...transformed,
- activeFormats: value.activeFormats
- });
- __unstableMarkAutomaticChange();
+ // Only run input rules when inserting text.
+ if (inputType !== 'insertText' && type !== 'compositionend') {
+ return;
+ }
+ if (__unstableAllowPrefixTransformations && inputRule()) {
+ return;
+ }
+ const value = getValue();
+ const transformed = formatTypes.reduce((accumlator, {
+ __unstableInputRule
+ }) => {
+ if (__unstableInputRule) {
+ accumlator = __unstableInputRule(accumlator);
}
+ return accumlator;
+ }, preventEventDiscovery(value));
+ const {
+ __unstableMarkLastChangeAsPersistent,
+ __unstableMarkAutomaticChange
+ } = registry.dispatch(store);
+ if (transformed !== value) {
+ __unstableMarkLastChangeAsPersistent();
+ onChange({
+ ...transformed,
+ activeFormats: value.activeFormats
+ });
+ __unstableMarkAutomaticChange();
}
- element.addEventListener('input', onInput);
- element.addEventListener('compositionend', onInput);
- return () => {
- element.removeEventListener('input', onInput);
- element.removeEventListener('compositionend', onInput);
- };
- }, []);
-}
+ }
+ element.addEventListener('input', onInput);
+ element.addEventListener('compositionend', onInput);
+ return () => {
+ element.removeEventListener('input', onInput);
+ element.removeEventListener('compositionend', onInput);
+ };
+});
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/use-delete.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/event-listeners/insert-replacement-text.js
/**
- * WordPress dependencies
+ * Internal dependencies
*/
-
-
-function useDelete(props) {
- const propsRef = (0,external_wp_element_namespaceObject.useRef)(props);
- propsRef.current = props;
- return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
- function onKeyDown(event) {
- const {
- keyCode
- } = event;
- if (event.defaultPrevented) {
- return;
- }
- const {
- value,
- onMerge,
- onRemove
- } = propsRef.current;
- if (keyCode === external_wp_keycodes_namespaceObject.DELETE || keyCode === external_wp_keycodes_namespaceObject.BACKSPACE) {
- const {
- start,
- end,
- text
- } = value;
- const isReverse = keyCode === external_wp_keycodes_namespaceObject.BACKSPACE;
- const hasActiveFormats = value.activeFormats && !!value.activeFormats.length;
-
- // Only process delete if the key press occurs at an uncollapsed edge.
- if (!(0,external_wp_richText_namespaceObject.isCollapsed)(value) || hasActiveFormats || isReverse && start !== 0 || !isReverse && end !== text.length) {
- return;
- }
- 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).
- else if (onRemove && (0,external_wp_richText_namespaceObject.isEmpty)(value) && isReverse) {
- onRemove(!isReverse);
- }
- event.preventDefault();
- }
+/**
+ * When the browser is about to auto correct, add an undo level so the user can
+ * revert the change.
+ *
+ * @param {Object} props
+ */
+/* harmony default export */ const insert_replacement_text = (props => element => {
+ function onInput(event) {
+ if (event.inputType !== 'insertReplacementText') {
+ return;
}
- element.addEventListener('keydown', onKeyDown);
- return () => {
- element.removeEventListener('keydown', onKeyDown);
- };
- }, []);
-}
+ const {
+ registry
+ } = props.current;
+ registry.dispatch(store).__unstableMarkLastChangeAsPersistent();
+ }
+ element.addEventListener('beforeinput', onInput);
+ return () => {
+ element.removeEventListener('beforeinput', onInput);
+ };
+});
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/use-enter.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/event-listeners/remove-browser-shortcuts.js
/**
* WordPress dependencies
*/
+/**
+ * Hook to prevent default behaviors for key combinations otherwise handled
+ * internally by RichText.
+ */
+/* harmony default export */ const remove_browser_shortcuts = (() => node => {
+ function onKeydown(event) {
+ if (external_wp_keycodes_namespaceObject.isKeyboardEvent.primary(event, 'z') || external_wp_keycodes_namespaceObject.isKeyboardEvent.primary(event, 'y') || external_wp_keycodes_namespaceObject.isKeyboardEvent.primaryShift(event, 'z')) {
+ event.preventDefault();
+ }
+ }
+ node.addEventListener('keydown', onKeydown);
+ return () => {
+ node.removeEventListener('keydown', onKeydown);
+ };
+});
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/event-listeners/shortcuts.js
+/* harmony default export */ const shortcuts = (props => element => {
+ const {
+ keyboardShortcuts
+ } = props.current;
+ function onKeyDown(event) {
+ for (const keyboardShortcut of keyboardShortcuts.current) {
+ keyboardShortcut(event);
+ }
+ }
+ element.addEventListener('keydown', onKeyDown);
+ return () => {
+ element.removeEventListener('keydown', onKeyDown);
+ };
+});
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/event-listeners/input-events.js
+/* harmony default export */ const input_events = (props => element => {
+ const {
+ inputEvents
+ } = props.current;
+ function onInput(event) {
+ for (const keyboardShortcut of inputEvents.current) {
+ keyboardShortcut(event);
+ }
+ }
+ element.addEventListener('input', onInput);
+ return () => {
+ element.removeEventListener('input', onInput);
+ };
+});
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/event-listeners/undo-automatic-change.js
+/**
+ * WordPress dependencies
+ */
/**
* Internal dependencies
*/
-
-function useEnter(props) {
- const registry = (0,external_wp_data_namespaceObject.useRegistry)();
- const {
- __unstableMarkAutomaticChange
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- const propsRef = (0,external_wp_element_namespaceObject.useRef)(props);
- propsRef.current = props;
- return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
- function onKeyDown(event) {
- if (event.target.contentEditable !== 'true') {
- return;
- }
- if (event.defaultPrevented) {
- return;
- }
- if (event.keyCode !== external_wp_keycodes_namespaceObject.ENTER) {
- return;
- }
- const {
- removeEditorOnlyFormats,
- value,
- onReplace,
- onSplit,
- onChange,
- disableLineBreaks,
- onSplitAtEnd,
- onSplitAtDoubleLineEnd
- } = propsRef.current;
- event.preventDefault();
- const _value = {
- ...value
- };
- _value.formats = removeEditorOnlyFormats(value);
- const canSplit = onReplace && onSplit;
- if (onReplace) {
- const transforms = (0,external_wp_blocks_namespaceObject.getBlockTransforms)('from').filter(({
- type
- }) => type === 'enter');
- const transformation = (0,external_wp_blocks_namespaceObject.findTransform)(transforms, item => {
- return item.regExp.test(_value.text);
- });
- if (transformation) {
- onReplace([transformation.transform({
- content: _value.text
- })]);
- __unstableMarkAutomaticChange();
- return;
- }
- }
- const {
- text,
- start,
- end
- } = _value;
- if (event.shiftKey) {
- if (!disableLineBreaks) {
- onChange((0,external_wp_richText_namespaceObject.insert)(_value, '\n'));
- }
- } else if (canSplit) {
- splitValue({
- value: _value,
- onReplace,
- onSplit
- });
- } else if (onSplitAtEnd && start === end && end === text.length) {
- onSplitAtEnd();
- } else if (
- // For some blocks it's desirable to split at the end of the
- // block when there are two line breaks at the end of the
- // block, so triple Enter exits the block.
- onSplitAtDoubleLineEnd && start === end && end === text.length && text.slice(-2) === '\n\n') {
- registry.batch(() => {
- _value.start = _value.end - 2;
- onChange((0,external_wp_richText_namespaceObject.remove)(_value));
- onSplitAtDoubleLineEnd();
- });
- } else if (!disableLineBreaks) {
- onChange((0,external_wp_richText_namespaceObject.insert)(_value, '\n'));
- }
+/* harmony default export */ const undo_automatic_change = (props => element => {
+ function onKeyDown(event) {
+ const {
+ keyCode
+ } = event;
+ if (event.defaultPrevented) {
+ return;
}
- element.addEventListener('keydown', onKeyDown);
- return () => {
- element.removeEventListener('keydown', onKeyDown);
- };
- }, []);
-}
+ if (keyCode !== external_wp_keycodes_namespaceObject.BACKSPACE && keyCode !== external_wp_keycodes_namespaceObject.ESCAPE) {
+ return;
+ }
+ const {
+ registry
+ } = props.current;
+ const {
+ didAutomaticChange,
+ getSettings
+ } = registry.select(store);
+ const {
+ __experimentalUndo
+ } = getSettings();
+ if (!__experimentalUndo) {
+ return;
+ }
+ if (!didAutomaticChange()) {
+ return;
+ }
+ event.preventDefault();
+ __experimentalUndo();
+ }
+ element.addEventListener('keydown', onKeyDown);
+ return () => {
+ element.removeEventListener('keydown', onKeyDown);
+ };
+});
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/use-format-types.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/utils.js
/**
* WordPress dependencies
*/
-function formatTypesSelector(select) {
- return select(external_wp_richText_namespaceObject.store).getFormatTypes();
+function addActiveFormats(value, activeFormats) {
+ if (activeFormats?.length) {
+ let index = value.formats.length;
+ while (index--) {
+ value.formats[index] = [...activeFormats, ...(value.formats[index] || [])];
+ }
+ }
}
/**
- * Set of all interactive content tags.
+ * Get the multiline tag based on the multiline prop.
*
- * @see https://html.spec.whatwg.org/multipage/dom.html#interactive-content
+ * @param {?(string|boolean)} multiline The multiline prop.
+ *
+ * @return {string | undefined} The multiline tag.
*/
-const interactiveContentTags = new Set(['a', 'audio', 'button', 'details', 'embed', 'iframe', 'input', 'label', 'select', 'textarea', 'video']);
-function prefixSelectKeys(selected, prefix) {
- if (typeof selected !== 'object') return {
- [prefix]: selected
- };
- return Object.fromEntries(Object.entries(selected).map(([key, value]) => [`${prefix}.${key}`, value]));
+function getMultilineTag(multiline) {
+ if (multiline !== true && multiline !== 'p' && multiline !== 'li') {
+ return;
+ }
+ return multiline === true ? 'p' : multiline;
}
-function getPrefixedSelectKeys(selected, prefix) {
- if (selected[prefix]) return selected[prefix];
- return Object.keys(selected).filter(key => key.startsWith(prefix + '.')).reduce((accumulator, key) => {
- accumulator[key.slice(prefix.length + 1)] = selected[key];
- return accumulator;
- }, {});
+function getAllowedFormats({
+ allowedFormats,
+ disableFormats
+}) {
+ if (disableFormats) {
+ return getAllowedFormats.EMPTY_ARRAY;
+ }
+ return allowedFormats;
}
+getAllowedFormats.EMPTY_ARRAY = [];
/**
- * This hook provides RichText with the `formatTypes` and its derived props from
- * experimental format type settings.
+ * Creates a link from pasted URL.
+ * Creates a paragraph block containing a link to the URL, and calls `onReplace`.
*
- * @param {Object} $0 Options
- * @param {string} $0.clientId Block client ID.
- * @param {string} $0.identifier Block attribute.
- * @param {boolean} $0.withoutInteractiveFormatting Whether to clean the interactive formattings or not.
- * @param {Array} $0.allowedFormats Allowed formats
+ * @param {string} url The URL that could not be embedded.
+ * @param {Function} onReplace Function to call with the created fallback block.
*/
-function useFormatTypes({
- clientId,
- identifier,
- withoutInteractiveFormatting,
- allowedFormats
-}) {
- const allFormatTypes = (0,external_wp_data_namespaceObject.useSelect)(formatTypesSelector, []);
- const formatTypes = (0,external_wp_element_namespaceObject.useMemo)(() => {
- return allFormatTypes.filter(({
- name,
- interactive,
- tagName
- }) => {
- if (allowedFormats && !allowedFormats.includes(name)) {
- return false;
- }
- if (withoutInteractiveFormatting && (interactive || interactiveContentTags.has(tagName))) {
- return false;
- }
- return true;
- });
- }, [allFormatTypes, allowedFormats, withoutInteractiveFormatting]);
- const keyedSelected = (0,external_wp_data_namespaceObject.useSelect)(select => formatTypes.reduce((accumulator, type) => {
- if (!type.__experimentalGetPropsForEditableTreePreparation) {
- return accumulator;
- }
- return {
- ...accumulator,
- ...prefixSelectKeys(type.__experimentalGetPropsForEditableTreePreparation(select, {
- richTextIdentifier: identifier,
- blockClientId: clientId
- }), type.name)
- };
- }, {}), [formatTypes, clientId, identifier]);
- const dispatch = (0,external_wp_data_namespaceObject.useDispatch)();
- const prepareHandlers = [];
- const valueHandlers = [];
- const changeHandlers = [];
- const dependencies = [];
- for (const key in keyedSelected) {
- dependencies.push(keyedSelected[key]);
- }
- formatTypes.forEach(type => {
- if (type.__experimentalCreatePrepareEditableTree) {
- const handler = type.__experimentalCreatePrepareEditableTree(getPrefixedSelectKeys(keyedSelected, type.name), {
- richTextIdentifier: identifier,
- blockClientId: clientId
- });
- if (type.__experimentalCreateOnChangeEditableValue) {
- valueHandlers.push(handler);
- } else {
- prepareHandlers.push(handler);
- }
- }
- if (type.__experimentalCreateOnChangeEditableValue) {
- let dispatchers = {};
- if (type.__experimentalGetPropsForEditableTreeChangeHandler) {
- dispatchers = type.__experimentalGetPropsForEditableTreeChangeHandler(dispatch, {
- richTextIdentifier: identifier,
- blockClientId: clientId
- });
- }
- const selected = getPrefixedSelectKeys(keyedSelected, type.name);
- changeHandlers.push(type.__experimentalCreateOnChangeEditableValue({
- ...(typeof selected === 'object' ? selected : {}),
- ...dispatchers
- }, {
- richTextIdentifier: identifier,
- blockClientId: clientId
- }));
- }
+function createLinkInParagraph(url, onReplace) {
+ const link = /*#__PURE__*/_jsx("a", {
+ href: url,
+ children: url
});
- return {
- formatTypes,
- prepareHandlers,
- valueHandlers,
- changeHandlers,
- dependencies
- };
+ onReplace(createBlock('core/paragraph', {
+ content: renderToString(link)
+ }));
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/use-remove-browser-shortcuts.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/event-listeners/paste-handler.js
/**
* WordPress dependencies
*/
+
/**
- * Hook to prevent default behaviors for key combinations otherwise handled
- * internally by RichText.
- *
- * @return {import('react').RefObject} The component to be rendered.
+ * Internal dependencies
*/
-function useRemoveBrowserShortcuts() {
- return (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
- function onKeydown(event) {
- if (external_wp_keycodes_namespaceObject.isKeyboardEvent.primary(event, 'z') || external_wp_keycodes_namespaceObject.isKeyboardEvent.primary(event, 'y') || external_wp_keycodes_namespaceObject.isKeyboardEvent.primaryShift(event, 'z')) {
- event.preventDefault();
- }
+
+
+
+/** @typedef {import('@wordpress/rich-text').RichTextValue} RichTextValue */
+
+/* harmony default export */ const paste_handler = (props => element => {
+ function _onPaste(event) {
+ const {
+ disableFormats,
+ onChange,
+ value,
+ formatTypes,
+ tagName,
+ onReplace,
+ __unstableEmbedURLOnPaste,
+ preserveWhiteSpace,
+ pastePlainText
+ } = props.current;
+
+ // The event listener is attached to the window, so we need to check if
+ // the target is the element.
+ if (event.target !== element) {
+ return;
}
- node.addEventListener('keydown', onKeydown);
- return () => {
- node.removeEventListener('keydown', onKeydown);
- };
- }, []);
-}
+ if (event.defaultPrevented) {
+ return;
+ }
+ const {
+ plainText,
+ html
+ } = getPasteEventData(event);
+ event.preventDefault();
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/use-shortcuts.js
-/**
- * WordPress dependencies
- */
+ // Allows us to ask for this information when we get a report.
+ window.console.log('Received HTML:\n\n', html);
+ window.console.log('Received plain text:\n\n', plainText);
+ if (disableFormats) {
+ onChange((0,external_wp_richText_namespaceObject.insert)(value, plainText));
+ return;
+ }
+ const isInternal = event.clipboardData.getData('rich-text') === 'true';
+ function pasteInline(content) {
+ const transformed = formatTypes.reduce((accumulator, {
+ __unstablePasteRule
+ }) => {
+ // Only allow one transform.
+ if (__unstablePasteRule && accumulator === value) {
+ accumulator = __unstablePasteRule(value, {
+ html,
+ plainText
+ });
+ }
+ return accumulator;
+ }, value);
+ if (transformed !== value) {
+ onChange(transformed);
+ } else {
+ const valueToInsert = (0,external_wp_richText_namespaceObject.create)({
+ html: content
+ });
+ addActiveFormats(valueToInsert, value.activeFormats);
+ onChange((0,external_wp_richText_namespaceObject.insert)(value, valueToInsert));
+ }
+ }
-function useShortcuts(keyboardShortcuts) {
- return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
- function onKeyDown(event) {
- for (const keyboardShortcut of keyboardShortcuts.current) {
- keyboardShortcut(event);
+ // If the data comes from a rich text instance, we can directly use it
+ // without filtering the data. The filters are only meant for externally
+ // pasted content and remove inline styles.
+ if (isInternal) {
+ pasteInline(html);
+ return;
+ }
+ if (pastePlainText) {
+ onChange((0,external_wp_richText_namespaceObject.insert)(value, (0,external_wp_richText_namespaceObject.create)({
+ text: plainText
+ })));
+ return;
+ }
+ let mode = 'INLINE';
+ const trimmedPlainText = plainText.trim();
+ if (__unstableEmbedURLOnPaste && (0,external_wp_richText_namespaceObject.isEmpty)(value) && (0,external_wp_url_namespaceObject.isURL)(trimmedPlainText) &&
+ // For the link pasting feature, allow only http(s) protocols.
+ /^https?:/.test(trimmedPlainText)) {
+ mode = 'BLOCKS';
+ }
+ const content = (0,external_wp_blocks_namespaceObject.pasteHandler)({
+ HTML: html,
+ plainText,
+ mode,
+ tagName,
+ preserveWhiteSpace
+ });
+ if (typeof content === 'string') {
+ pasteInline(content);
+ } else if (content.length > 0) {
+ if (onReplace && (0,external_wp_richText_namespaceObject.isEmpty)(value)) {
+ onReplace(content, content.length - 1, -1);
}
}
- element.addEventListener('keydown', onKeyDown);
- return () => {
- element.removeEventListener('keydown', onKeyDown);
- };
- }, []);
-}
+ }
+ const {
+ defaultView
+ } = element.ownerDocument;
+
+ // Attach the listener to the window so parent elements have the chance to
+ // prevent the default behavior.
+ defaultView.addEventListener('paste', _onPaste);
+ return () => {
+ defaultView.removeEventListener('paste', _onPaste);
+ };
+});
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/use-input-events.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/event-listeners/delete.js
/**
* WordPress dependencies
*/
-function useInputEvents(inputEvents) {
- return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
- function onInput(event) {
- for (const keyboardShortcut of inputEvents.current) {
- keyboardShortcut(event);
+
+/* harmony default export */ const event_listeners_delete = (props => element => {
+ function onKeyDown(event) {
+ const {
+ keyCode
+ } = event;
+ if (event.defaultPrevented) {
+ return;
+ }
+ const {
+ value,
+ onMerge,
+ onRemove
+ } = props.current;
+ if (keyCode === external_wp_keycodes_namespaceObject.DELETE || keyCode === external_wp_keycodes_namespaceObject.BACKSPACE) {
+ const {
+ start,
+ end,
+ text
+ } = value;
+ const isReverse = keyCode === external_wp_keycodes_namespaceObject.BACKSPACE;
+ const hasActiveFormats = value.activeFormats && !!value.activeFormats.length;
+
+ // Only process delete if the key press occurs at an uncollapsed edge.
+ if (!(0,external_wp_richText_namespaceObject.isCollapsed)(value) || hasActiveFormats || isReverse && start !== 0 || !isReverse && end !== text.length) {
+ return;
}
+ 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).
+ else if (onRemove && (0,external_wp_richText_namespaceObject.isEmpty)(value) && isReverse) {
+ onRemove(!isReverse);
+ }
+ event.preventDefault();
}
- element.addEventListener('input', onInput);
- return () => {
- element.removeEventListener('input', onInput);
- };
- }, []);
-}
+ }
+ element.addEventListener('keydown', onKeyDown);
+ return () => {
+ element.removeEventListener('keydown', onKeyDown);
+ };
+});
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/use-insert-replacement-text.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/event-listeners/enter.js
/**
* WordPress dependencies
*/
+/* harmony default export */ const enter = (props => element => {
+ function onKeyDownDeprecated(event) {
+ if (event.keyCode !== external_wp_keycodes_namespaceObject.ENTER) {
+ return;
+ }
+ const {
+ onReplace,
+ onSplit
+ } = props.current;
+ if (onReplace && onSplit) {
+ event.__deprecatedOnSplit = true;
+ }
+ }
+ function onKeyDown(event) {
+ if (event.defaultPrevented) {
+ return;
+ }
+
+ // The event listener is attached to the window, so we need to check if
+ // the target is the element.
+ if (event.target !== element) {
+ return;
+ }
+ if (event.keyCode !== external_wp_keycodes_namespaceObject.ENTER) {
+ return;
+ }
+ const {
+ value,
+ onChange,
+ disableLineBreaks,
+ onSplitAtEnd,
+ onSplitAtDoubleLineEnd,
+ registry
+ } = props.current;
+ event.preventDefault();
+ const {
+ text,
+ start,
+ end
+ } = value;
+ if (event.shiftKey) {
+ if (!disableLineBreaks) {
+ onChange((0,external_wp_richText_namespaceObject.insert)(value, '\n'));
+ }
+ } else if (onSplitAtEnd && start === end && end === text.length) {
+ onSplitAtEnd();
+ } else if (
+ // For some blocks it's desirable to split at the end of the
+ // block when there are two line breaks at the end of the
+ // block, so triple Enter exits the block.
+ onSplitAtDoubleLineEnd && start === end && end === text.length && text.slice(-2) === '\n\n') {
+ registry.batch(() => {
+ const _value = {
+ ...value
+ };
+ _value.start = _value.end - 2;
+ onChange((0,external_wp_richText_namespaceObject.remove)(_value));
+ onSplitAtDoubleLineEnd();
+ });
+ } else if (!disableLineBreaks) {
+ onChange((0,external_wp_richText_namespaceObject.insert)(value, '\n'));
+ }
+ }
+ const {
+ defaultView
+ } = element.ownerDocument;
+
+ // Attach the listener to the window so parent elements have the chance to
+ // prevent the default behavior.
+ defaultView.addEventListener('keydown', onKeyDown);
+ element.addEventListener('keydown', onKeyDownDeprecated);
+ return () => {
+ defaultView.removeEventListener('keydown', onKeyDown);
+ element.removeEventListener('keydown', onKeyDownDeprecated);
+ };
+});
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/event-listeners/firefox-compat.js
/**
* Internal dependencies
*/
+/* harmony default export */ const firefox_compat = (props => element => {
+ function onFocus() {
+ const {
+ registry
+ } = props.current;
+ if (!registry.select(store).isMultiSelecting()) {
+ return;
+ }
-/**
- * When the browser is about to auto correct, add an undo level so the user can
- * revert the change.
- */
-function useInsertReplacementText() {
- const {
- __unstableMarkLastChangeAsPersistent
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
- function onInput(event) {
- if (event.inputType === 'insertReplacementText') {
- __unstableMarkLastChangeAsPersistent();
- }
+ // This is a little hack to work around focus issues with nested
+ // editable elements in Firefox. For some reason the editable child
+ // element sometimes regains focus, while it should not be focusable
+ // and focus should remain on the editable parent element.
+ // To do: try to find the cause of the shifting focus.
+ const parentEditable = element.parentElement.closest('[contenteditable="true"]');
+ if (parentEditable) {
+ parentEditable.focus();
}
- element.addEventListener('beforeinput', onInput);
- return () => {
- element.removeEventListener('beforeinput', onInput);
- };
- }, []);
-}
+ }
+ element.addEventListener('focus', onFocus);
+ return () => {
+ element.removeEventListener('focus', onFocus);
+ };
+});
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/use-firefox-compat.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/event-listeners/index.js
/**
* WordPress dependencies
*/
@@ -59551,35 +64583,33 @@ function useInsertReplacementText() {
* Internal dependencies
*/
-function useFirefoxCompat() {
- const {
- isMultiSelecting
- } = (0,external_wp_data_namespaceObject.useSelect)(store);
- return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
- function onFocus() {
- if (!isMultiSelecting()) {
- return;
- }
- // This is a little hack to work around focus issues with nested
- // editable elements in Firefox. For some reason the editable child
- // element sometimes regains focus, while it should not be focusable
- // and focus should remain on the editable parent element.
- // To do: try to find the cause of the shifting focus.
- const parentEditable = element.parentElement.closest('[contenteditable="true"]');
- if (parentEditable) {
- parentEditable.focus();
- }
+
+
+
+
+
+
+
+
+
+const allEventListeners = [before_input_rules, input_rules, insert_replacement_text, remove_browser_shortcuts, shortcuts, input_events, undo_automatic_change, paste_handler, event_listeners_delete, enter, firefox_compat];
+function useEventListeners(props) {
+ const propsRef = (0,external_wp_element_namespaceObject.useRef)(props);
+ propsRef.current = props;
+ const refEffects = (0,external_wp_element_namespaceObject.useMemo)(() => allEventListeners.map(refEffect => refEffect(propsRef)), [propsRef]);
+ return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
+ if (!props.isSelected) {
+ return;
}
- element.addEventListener('focus', onFocus);
+ const cleanups = refEffects.map(effect => effect(element));
return () => {
- element.removeEventListener('focus', onFocus);
+ cleanups.forEach(cleanup => cleanup());
};
- }, []);
+ }, [refEffects, props.isSelected]);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/format-edit.js
-
/**
* WordPress dependencies
*/
@@ -59590,6 +64620,8 @@ function useFirefoxCompat() {
* Internal dependencies
*/
+
+
const format_edit_DEFAULT_BLOCK_CONTEXT = {};
const usesContextKey = Symbol('usesContext');
function format_edit_Edit({
@@ -59617,8 +64649,7 @@ function format_edit_Edit({
const isActive = activeFormat !== undefined;
const activeObject = (0,external_wp_richText_namespaceObject.getActiveObject)(value);
const isObjectActive = activeObject !== undefined && activeObject.type === name;
- return (0,external_React_.createElement)(EditFunction, {
- key: name,
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditFunction, {
isActive: isActive,
activeAttributes: isActive ? activeFormat.attributes || {} : {},
isObjectActive: isObjectActive,
@@ -59628,13 +64659,13 @@ function format_edit_Edit({
onFocus: onFocus,
contentRef: forwardedRef,
context: context
- });
+ }, name);
}
function FormatEdit({
formatTypes,
...props
}) {
- return formatTypes.map(settings => (0,external_React_.createElement)(format_edit_Edit, {
+ return formatTypes.map(settings => /*#__PURE__*/(0,external_React_.createElement)(format_edit_Edit, {
settings: settings,
...props,
key: settings.name
@@ -59642,7 +64673,6 @@ function FormatEdit({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/content.js
-
/**
* WordPress dependencies
*/
@@ -59659,40 +64689,49 @@ function FormatEdit({
* Internal dependencies
*/
-function Content({
- value,
- tagName: Tag,
- multiline,
- format,
- ...props
-}) {
+
+function valueToHTMLString(value, multiline) {
if (rich_text.isEmpty(value)) {
- const MultilineTag = getMultilineTag(multiline);
- value = MultilineTag ? (0,external_React_.createElement)(MultilineTag, null) : null;
- } else if (Array.isArray(value)) {
+ const multilineTag = getMultilineTag(multiline);
+ return multilineTag ? `<${multilineTag}></${multilineTag}>` : '';
+ }
+ if (Array.isArray(value)) {
external_wp_deprecated_default()('wp.blockEditor.RichText value prop as children type', {
since: '6.1',
version: '6.3',
alternative: 'value prop as string',
link: 'https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/'
});
- value = (0,external_React_.createElement)(external_wp_element_namespaceObject.RawHTML, null, external_wp_blocks_namespaceObject.children.toHTML(value));
- } else if (typeof value === 'string') {
- // To do: deprecate.
- value = (0,external_React_.createElement)(external_wp_element_namespaceObject.RawHTML, null, value);
- } else {
- // To do: create a toReactComponent method on RichTextData, which we
- // might in the future also use for the editable tree. See
- // https://github.com/WordPress/gutenberg/pull/41655.
- value = (0,external_React_.createElement)(external_wp_element_namespaceObject.RawHTML, null, value.toHTMLString());
+ return external_wp_blocks_namespaceObject.children.toHTML(value);
}
- return Tag ? (0,external_React_.createElement)(Tag, {
- ...props
- }, value) : value;
+
+ // To do: deprecate string type.
+ if (typeof value === 'string') {
+ return value;
+ }
+
+ // To do: create a toReactComponent method on RichTextData, which we
+ // might in the future also use for the editable tree. See
+ // https://github.com/WordPress/gutenberg/pull/41655.
+ return value.toHTMLString();
+}
+function Content({
+ value,
+ tagName: Tag,
+ multiline,
+ format,
+ ...props
+}) {
+ value = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
+ children: valueToHTMLString(value, multiline)
+ });
+ return Tag ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
+ ...props,
+ children: value
+ }) : value;
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/multiline.js
-
/**
* WordPress dependencies
*/
@@ -59700,6 +64739,8 @@ function Content({
+
+
/**
* Internal dependencies
*/
@@ -59707,6 +64748,7 @@ function Content({
+
function RichTextMultiline({
children,
identifier,
@@ -59726,6 +64768,10 @@ function RichTextMultiline({
clientId
} = useBlockEditContext();
const {
+ getSelectionStart,
+ getSelectionEnd
+ } = (0,external_wp_data_namespaceObject.useSelect)(store);
+ const {
selectionChange
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
const multilineTagName = getMultilineTag(multiline);
@@ -59737,50 +64783,75 @@ function RichTextMultiline({
function _onChange(newValues) {
onChange(`<${multilineTagName}>${newValues.join(`</${multilineTagName}><${multilineTagName}>`)}</${multilineTagName}>`);
}
- return (0,external_React_.createElement)(TagName, {
- ref: forwardedRef
- }, values.map((_value, index) => {
- return (0,external_React_.createElement)(RichTextWrapper, {
- key: index,
- identifier: `${identifier}-${index}`,
- tagName: multilineTagName,
- value: _value,
- onChange: newValue => {
- const newValues = values.slice();
- newValues[index] = newValue;
- _onChange(newValues);
- },
- isSelected: undefined,
- onSplit: v => v,
- onReplace: array => {
- const newValues = values.slice();
- newValues.splice(index, 1, ...array);
- _onChange(newValues);
- selectionChange(clientId, `${identifier}-${index + 1}`, 0, 0);
- },
- onMerge: forward => {
- const newValues = values.slice();
- let offset = 0;
- if (forward) {
- if (!newValues[index + 1]) return;
- newValues.splice(index, 2, newValues[index] + newValues[index + 1]);
- offset = newValues[index].length - 1;
- } else {
- if (!newValues[index - 1]) return;
- newValues.splice(index - 1, 2, newValues[index - 1] + newValues[index]);
- offset = newValues[index - 1].length - 1;
- }
- _onChange(newValues);
- selectionChange(clientId, `${identifier}-${index - (forward ? 0 : 1)}`, offset, offset);
- },
- ...props
- });
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ref: forwardedRef,
+ children: values.map((_value, index) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RichTextWrapper, {
+ identifier: `${identifier}-${index}`,
+ tagName: multilineTagName,
+ value: _value,
+ onChange: newValue => {
+ const newValues = values.slice();
+ newValues[index] = newValue;
+ _onChange(newValues);
+ },
+ isSelected: undefined,
+ onKeyDown: event => {
+ if (event.keyCode !== external_wp_keycodes_namespaceObject.ENTER) {
+ return;
+ }
+ event.preventDefault();
+ const {
+ offset: start
+ } = getSelectionStart();
+ const {
+ offset: end
+ } = getSelectionEnd();
+
+ // Cannot split if there is no selection.
+ if (typeof start !== 'number' || typeof end !== 'number') {
+ return;
+ }
+ const richTextValue = (0,external_wp_richText_namespaceObject.create)({
+ html: _value
+ });
+ richTextValue.start = start;
+ richTextValue.end = end;
+ const array = (0,external_wp_richText_namespaceObject.split)(richTextValue).map(v => (0,external_wp_richText_namespaceObject.toHTMLString)({
+ value: v
+ }));
+ const newValues = values.slice();
+ newValues.splice(index, 1, ...array);
+ _onChange(newValues);
+ selectionChange(clientId, `${identifier}-${index + 1}`, 0, 0);
+ },
+ onMerge: forward => {
+ const newValues = values.slice();
+ let offset = 0;
+ if (forward) {
+ if (!newValues[index + 1]) {
+ return;
+ }
+ newValues.splice(index, 2, newValues[index] + newValues[index + 1]);
+ offset = newValues[index].length - 1;
+ } else {
+ if (!newValues[index - 1]) {
+ return;
+ }
+ newValues.splice(index - 1, 2, newValues[index - 1] + newValues[index]);
+ offset = newValues[index - 1].length - 1;
+ }
+ _onChange(newValues);
+ selectionChange(clientId, `${identifier}-${index - (forward ? 0 : 1)}`, offset, offset);
+ },
+ ...props
+ }, index);
+ })
+ });
}
/* harmony default export */ const multiline = ((0,external_wp_element_namespaceObject.forwardRef)(RichTextMultiline));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/with-deprecations.js
-
/**
* WordPress dependencies
*/
@@ -59789,11 +64860,11 @@ function RichTextMultiline({
-
/**
* Internal dependencies
*/
+
function withDeprecations(Component) {
return (0,external_wp_element_namespaceObject.forwardRef)((props, ref) => {
let value = props.value;
@@ -59811,10 +64882,8 @@ function withDeprecations(Component) {
onChange = newValue => props.onChange(external_wp_blocks_namespaceObject.children.fromDOM((0,external_wp_richText_namespaceObject.__unstableCreateElement)(document, newValue).childNodes));
}
const NewComponent = props.multiline ? multiline : Component;
- const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(NewComponent);
- return (0,external_React_.createElement)(NewComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NewComponent, {
...props,
- identifier: props.identifier || instanceId,
value: value,
onChange: onChange,
ref: ref
@@ -59823,7 +64892,6 @@ function withDeprecations(Component) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/index.js
-
/**
* External dependencies
*/
@@ -59839,6 +64907,7 @@ function withDeprecations(Component) {
+
/**
* Internal dependencies
*/
@@ -59860,14 +64929,9 @@ function withDeprecations(Component) {
-
-
-
-
-
-
const keyboardShortcutContext = (0,external_wp_element_namespaceObject.createContext)();
const inputEventContext = (0,external_wp_element_namespaceObject.createContext)();
+const instanceIdKey = Symbol('instanceId');
/**
* Removes props used for the native version of RichText so that they are not
@@ -59892,7 +64956,6 @@ function removeNativeProps(props) {
fontStyle,
minWidth,
maxWidth,
- setRef,
disableSuggestions,
disableAutocorrection,
...restProps
@@ -59925,10 +64988,17 @@ function RichTextWrapper({
__unstableDisableFormats: disableFormats,
disableLineBreaks,
__unstableAllowPrefixTransformations,
- disableEditing,
+ readOnly,
...props
}, forwardedRef) {
props = removeNativeProps(props);
+ if (onSplit) {
+ external_wp_deprecated_default()('wp.blockEditor.RichText onSplit prop', {
+ since: '6.4',
+ alternative: 'block.json support key: "splitting"'
+ });
+ }
+ const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(RichTextWrapper);
const anchorRef = (0,external_wp_element_namespaceObject.useRef)();
const context = useBlockEditContext();
const {
@@ -59937,6 +65007,7 @@ function RichTextWrapper({
name: blockName
} = context;
const blockBindings = context[blockBindingsKey];
+ const blockContext = (0,external_wp_element_namespaceObject.useContext)(block_context);
const selector = select => {
// Avoid subscribing to the block editor store if the block is not
// selected.
@@ -59953,7 +65024,7 @@ function RichTextWrapper({
const selectionEnd = getSelectionEnd();
let isSelected;
if (originalIsSelected === undefined) {
- isSelected = selectionStart.clientId === clientId && selectionEnd.clientId === clientId && selectionStart.attributeKey === identifier;
+ isSelected = selectionStart.clientId === clientId && selectionEnd.clientId === clientId && (identifier ? selectionStart.attributeKey === identifier : selectionStart[instanceIdKey] === instanceId);
} else if (originalIsSelected) {
isSelected = selectionStart.clientId === clientId;
}
@@ -59967,7 +65038,7 @@ function RichTextWrapper({
selectionStart,
selectionEnd,
isSelected
- } = (0,external_wp_data_namespaceObject.useSelect)(selector, [clientId, identifier, originalIsSelected, isBlockSelected]);
+ } = (0,external_wp_data_namespaceObject.useSelect)(selector, [clientId, identifier, instanceId, originalIsSelected, isBlockSelected]);
const disableBoundBlocks = (0,external_wp_data_namespaceObject.useSelect)(select => {
// Disable Rich Text editing if block bindings specify that.
let _disableBoundBlocks = false;
@@ -59976,14 +65047,18 @@ function RichTextWrapper({
const {
getBlockBindingsSource
} = unlock(select(external_wp_blocks_namespaceObject.store));
- for (const [attribute, args] of Object.entries(blockBindings)) {
+ for (const [attribute, binding] of Object.entries(blockBindings)) {
if (blockTypeAttributes?.[attribute]?.source !== 'rich-text') {
break;
}
- // If the source is not defined, or if its value of `lockAttributesEditing` is `true`, disable it.
- const blockBindingsSource = getBlockBindingsSource(args.source);
- if (!blockBindingsSource || blockBindingsSource.lockAttributesEditing) {
+ // If the source is not defined, or if its value of `canUserEditValue` is `false`, disable it.
+ const blockBindingsSource = getBlockBindingsSource(binding.source);
+ if (!blockBindingsSource?.canUserEditValue({
+ select,
+ context: blockContext,
+ args: binding.args
+ })) {
_disableBoundBlocks = true;
break;
}
@@ -59991,7 +65066,7 @@ function RichTextWrapper({
}
return _disableBoundBlocks;
}, [blockBindings, blockName]);
- const shouldDisableEditing = disableEditing || disableBoundBlocks;
+ const shouldDisableEditing = readOnly || disableBoundBlocks;
const {
getSelectionStart,
getSelectionEnd,
@@ -60008,6 +65083,10 @@ function RichTextWrapper({
const onSelectionChange = (0,external_wp_element_namespaceObject.useCallback)((start, end) => {
const selection = {};
const unset = start === undefined && end === undefined;
+ const baseSelection = {
+ clientId,
+ [identifier ? 'attributeKey' : instanceIdKey]: identifier ? identifier : instanceId
+ };
if (typeof start === 'number' || unset) {
// If we are only setting the start (or the end below), which
// means a partial selection, and we're not updating a selection
@@ -60017,8 +65096,7 @@ function RichTextWrapper({
return;
}
selection.start = {
- clientId,
- attributeKey: identifier,
+ ...baseSelection,
offset: start
};
}
@@ -60027,13 +65105,12 @@ function RichTextWrapper({
return;
}
selection.end = {
- clientId,
- attributeKey: identifier,
+ ...baseSelection,
offset: end
};
}
selectionChange(selection);
- }, [clientId, identifier]);
+ }, [clientId, getBlockRootClientId, getSelectionEnd, getSelectionStart, identifier, instanceId, selectionChange]);
const {
formatTypes,
prepareHandlers,
@@ -60104,88 +65181,82 @@ function RichTextWrapper({
function onFocus() {
anchorRef.current?.focus();
}
+ const registry = (0,external_wp_data_namespaceObject.useRegistry)();
const TagName = tagName;
- return (0,external_React_.createElement)(external_React_.Fragment, null, isSelected && (0,external_React_.createElement)(keyboardShortcutContext.Provider, {
- value: keyboardShortcuts
- }, (0,external_React_.createElement)(inputEventContext.Provider, {
- value: inputEvents
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Popover.__unstableSlotNameProvider, {
- value: "__unstable-block-tools-after"
- }, children && children({
- value,
- onChange,
- onFocus
- }), (0,external_React_.createElement)(FormatEdit, {
- value: value,
- onChange: onChange,
- onFocus: onFocus,
- formatTypes: formatTypes,
- forwardedRef: anchorRef
- })))), isSelected && hasFormats && (0,external_React_.createElement)(format_toolbar_container, {
- inline: inlineToolbar,
- editableContentElement: anchorRef.current,
- value: value
- }), (0,external_React_.createElement)(TagName
- // Overridable props.
- , {
- role: "textbox",
- "aria-multiline": !disableLineBreaks,
- "aria-label": placeholder,
- "aria-readonly": shouldDisableEditing,
- ...props,
- ...autocompleteProps,
- ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([
- // Rich text ref must be first because its focus listener
- // must be set up before any other ref calls .focus() on
- // mount.
- richTextRef, forwardedRef, autocompleteProps.ref, props.ref, useBeforeInputRules({
- value,
- onChange
- }), useInputRules({
- getValue,
- onChange,
- __unstableAllowPrefixTransformations,
- formatTypes,
- onReplace,
- selectionChange
- }), useInsertReplacementText(), useRemoveBrowserShortcuts(), useShortcuts(keyboardShortcuts), useInputEvents(inputEvents), useUndoAutomaticChange(), usePasteHandler({
- isSelected,
- disableFormats,
- onChange,
- value,
- formatTypes,
- tagName,
- onReplace,
- onSplit,
- __unstableEmbedURLOnPaste,
- pastePlainText
- }), useDelete({
- value,
- onMerge,
- onRemove
- }), useEnter({
- removeEditorOnlyFormats,
- value,
- onReplace,
- onSplit,
- onChange,
- disableLineBreaks,
- onSplitAtEnd,
- onSplitAtDoubleLineEnd
- }), useFirefoxCompat(), anchorRef]),
- contentEditable: !shouldDisableEditing,
- suppressContentEditableWarning: true,
- className: classnames_default()('block-editor-rich-text__editable', props.className, 'rich-text')
- // Setting tabIndex to 0 is unnecessary, the element is already
- // focusable because it's contentEditable. This also fixes a
- // Safari bug where it's not possible to Shift+Click multi
- // select blocks when Shift Clicking into an element with
- // tabIndex because Safari will focus the element. However,
- // Safari will correctly ignore nested contentEditable elements.
- ,
- tabIndex: props.tabIndex === 0 && !shouldDisableEditing ? null : props.tabIndex,
- "data-wp-block-attribute-key": identifier
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [isSelected && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(keyboardShortcutContext.Provider, {
+ value: keyboardShortcuts,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inputEventContext.Provider, {
+ value: inputEvents,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Popover.__unstableSlotNameProvider, {
+ value: "__unstable-block-tools-after",
+ children: [children && children({
+ value,
+ onChange,
+ onFocus
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FormatEdit, {
+ value: value,
+ onChange: onChange,
+ onFocus: onFocus,
+ formatTypes: formatTypes,
+ forwardedRef: anchorRef
+ })]
+ })
+ })
+ }), isSelected && hasFormats && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(format_toolbar_container, {
+ inline: inlineToolbar,
+ editableContentElement: anchorRef.current
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName
+ // Overridable props.
+ , {
+ role: "textbox",
+ "aria-multiline": !disableLineBreaks,
+ "aria-label": placeholder,
+ "aria-readonly": shouldDisableEditing,
+ ...props,
+ ...autocompleteProps,
+ ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([
+ // Rich text ref must be first because its focus listener
+ // must be set up before any other ref calls .focus() on
+ // mount.
+ richTextRef, forwardedRef, autocompleteProps.ref, props.ref, useEventListeners({
+ registry,
+ getValue,
+ onChange,
+ __unstableAllowPrefixTransformations,
+ formatTypes,
+ onReplace,
+ selectionChange,
+ isSelected,
+ disableFormats,
+ value,
+ tagName,
+ onSplit,
+ __unstableEmbedURLOnPaste,
+ pastePlainText,
+ onMerge,
+ onRemove,
+ removeEditorOnlyFormats,
+ disableLineBreaks,
+ onSplitAtEnd,
+ onSplitAtDoubleLineEnd,
+ keyboardShortcuts,
+ inputEvents
+ }), anchorRef]),
+ contentEditable: !shouldDisableEditing,
+ suppressContentEditableWarning: true,
+ className: dist_clsx('block-editor-rich-text__editable', props.className, 'rich-text')
+ // Setting tabIndex to 0 is unnecessary, the element is already
+ // focusable because it's contentEditable. This also fixes a
+ // Safari bug where it's not possible to Shift+Click multi
+ // select blocks when Shift Clicking into an element with
+ // tabIndex because Safari will focus the element. However,
+ // Safari will correctly ignore nested contentEditable elements.
+ ,
+ tabIndex: props.tabIndex === 0 && !shouldDisableEditing ? null : props.tabIndex,
+ "data-wp-block-attribute-key": identifier
+ })]
+ });
}
// This is the private API for the RichText component.
@@ -60202,10 +65273,50 @@ PrivateRichText.isEmpty = value => {
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/rich-text/README.md
*/
const PublicForwardedRichTextContainer = (0,external_wp_element_namespaceObject.forwardRef)((props, ref) => {
- return (0,external_React_.createElement)(PrivateRichText, {
+ const context = useBlockEditContext();
+ const isPreviewMode = context[isPreviewModeKey];
+ if (isPreviewMode) {
+ // Remove all non-content props.
+ const {
+ children,
+ tagName: Tag = 'div',
+ value,
+ onChange,
+ isSelected,
+ multiline,
+ inlineToolbar,
+ wrapperClassName,
+ autocompleters,
+ onReplace,
+ placeholder,
+ allowedFormats,
+ withoutInteractiveFormatting,
+ onRemove,
+ onMerge,
+ onSplit,
+ __unstableOnSplitAtEnd,
+ __unstableOnSplitAtDoubleLineEnd,
+ identifier,
+ preserveWhiteSpace,
+ __unstablePastePlainText,
+ __unstableEmbedURLOnPaste,
+ __unstableDisableFormats,
+ disableLineBreaks,
+ __unstableAllowPrefixTransformations,
+ readOnly,
+ ...contentProps
+ } = removeNativeProps(props);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
+ ...contentProps,
+ dangerouslySetInnerHTML: {
+ __html: valueToHTMLString(value, multiline)
+ }
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivateRichText, {
ref: ref,
...props,
- disableEditing: false
+ readOnly: false
});
});
PublicForwardedRichTextContainer.Content = Content;
@@ -60218,7 +65329,6 @@ PublicForwardedRichTextContainer.isEmpty = value => {
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/editable-text/index.js
-
/**
* WordPress dependencies
*/
@@ -60228,8 +65338,9 @@ PublicForwardedRichTextContainer.isEmpty = value => {
* Internal dependencies
*/
+
const EditableText = (0,external_wp_element_namespaceObject.forwardRef)((props, ref) => {
- return (0,external_React_.createElement)(rich_text, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(rich_text, {
ref: ref,
...props,
__unstableDisableFormats: true
@@ -60240,9 +65351,10 @@ EditableText.Content = ({
tagName: Tag = 'div',
...props
}) => {
- return (0,external_React_.createElement)(Tag, {
- ...props
- }, value);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
+ ...props,
+ children: value
+ });
};
/**
@@ -60251,7 +65363,6 @@ EditableText.Content = ({
/* harmony default export */ const editable_text = (EditableText);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/plain-text/index.js
-
/**
* External dependencies
*/
@@ -60271,12 +65382,13 @@ EditableText.Content = ({
/**
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/plain-text/README.md
*/
+
const PlainText = (0,external_wp_element_namespaceObject.forwardRef)(({
__experimentalVersion,
...props
}, ref) => {
if (__experimentalVersion === 2) {
- return (0,external_React_.createElement)(editable_text, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(editable_text, {
ref: ref,
...props
});
@@ -60286,9 +65398,9 @@ const PlainText = (0,external_wp_element_namespaceObject.forwardRef)(({
onChange,
...remainingProps
} = props;
- return (0,external_React_.createElement)(react_autosize_textarea_lib/* default */.A, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(lib/* default */.A, {
ref: ref,
- className: classnames_default()('block-editor-plain-text', className),
+ className: dist_clsx('block-editor-plain-text', className),
onChange: event => onChange(event.target.value),
...remainingProps
});
@@ -60296,13 +65408,15 @@ const PlainText = (0,external_wp_element_namespaceObject.forwardRef)(({
/* harmony default export */ const plain_text = (PlainText);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/responsive-block-control/label.js
-
/**
* WordPress dependencies
*/
+
+
+
function ResponsiveBlockControlLabel({
property,
viewport,
@@ -60311,16 +65425,19 @@ function ResponsiveBlockControlLabel({
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(ResponsiveBlockControlLabel);
const accessibleLabel = desc || (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: property name. 2: viewport name. */
(0,external_wp_i18n_namespaceObject._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 (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("span", {
- "aria-describedby": `rbc-desc-${instanceId}`
- }, viewport.label), (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "span",
- id: `rbc-desc-${instanceId}`
- }, accessibleLabel));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-describedby": `rbc-desc-${instanceId}`,
+ children: viewport.label
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ as: "span",
+ id: `rbc-desc-${instanceId}`,
+ children: accessibleLabel
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/responsive-block-control/index.js
-
/**
* External dependencies
*/
@@ -60337,6 +65454,8 @@ function ResponsiveBlockControlLabel({
* Internal dependencies
*/
+
+
function ResponsiveBlockControl(props) {
const {
title,
@@ -60365,38 +65484,42 @@ function ResponsiveBlockControl(props) {
return null;
}
const toggleControlLabel = toggleLabel || (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Property value for the control (eg: margin, padding, etc.). */
- (0,external_wp_i18n_namespaceObject.__)('Use the same %s on all screensizes.'), property);
+ (0,external_wp_i18n_namespaceObject.__)('Use the same %s on all screen sizes.'), property);
const toggleHelpText = (0,external_wp_i18n_namespaceObject.__)('Toggle between using the same value for all screen sizes or using a unique value per screen size.');
- const defaultControl = renderDefaultControl((0,external_React_.createElement)(ResponsiveBlockControlLabel, {
+ const defaultControl = renderDefaultControl( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResponsiveBlockControlLabel, {
property: property,
viewport: defaultLabel
}), defaultLabel);
const defaultResponsiveControls = () => {
- return viewports.map(viewport => (0,external_React_.createElement)(external_wp_element_namespaceObject.Fragment, {
- key: viewport.id
- }, renderDefaultControl((0,external_React_.createElement)(ResponsiveBlockControlLabel, {
- property: property,
- viewport: viewport
- }), viewport)));
+ return viewports.map(viewport => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.Fragment, {
+ children: renderDefaultControl( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResponsiveBlockControlLabel, {
+ property: property,
+ viewport: viewport
+ }), viewport)
+ }, viewport.id));
};
- return (0,external_React_.createElement)("fieldset", {
- className: "block-editor-responsive-block-control"
- }, (0,external_React_.createElement)("legend", {
- className: "block-editor-responsive-block-control__title"
- }, title), (0,external_React_.createElement)("div", {
- className: "block-editor-responsive-block-control__inner"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- className: "block-editor-responsive-block-control__toggle",
- label: toggleControlLabel,
- checked: !isResponsive,
- onChange: onIsResponsiveChange,
- help: toggleHelpText
- }), (0,external_React_.createElement)("div", {
- className: classnames_default()('block-editor-responsive-block-control__group', {
- 'is-responsive': isResponsive
- })
- }, !isResponsive && defaultControl, isResponsive && (renderResponsiveControls ? renderResponsiveControls(viewports) : defaultResponsiveControls()))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
+ className: "block-editor-responsive-block-control",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("legend", {
+ className: "block-editor-responsive-block-control__title",
+ children: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-responsive-block-control__inner",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ className: "block-editor-responsive-block-control__toggle",
+ label: toggleControlLabel,
+ checked: !isResponsive,
+ onChange: onIsResponsiveChange,
+ help: toggleHelpText
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: dist_clsx('block-editor-responsive-block-control__group', {
+ 'is-responsive': isResponsive
+ }),
+ children: [!isResponsive && defaultControl, isResponsive && (renderResponsiveControls ? renderResponsiveControls(viewports) : defaultResponsiveControls())]
+ })]
+ })]
+ });
}
/* harmony default export */ const responsive_block_control = (ResponsiveBlockControl);
@@ -60435,12 +65558,12 @@ function RichTextShortcut({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/toolbar-button.js
-
/**
* WordPress dependencies
*/
+
function RichTextToolbarButton({
name,
shortcutType,
@@ -60455,12 +65578,13 @@ function RichTextToolbarButton({
if (shortcutType && shortcutCharacter) {
shortcut = external_wp_keycodes_namespaceObject.displayShortcut[shortcutType](shortcutCharacter);
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Fill, {
- name: fillName
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- ...props,
- shortcut: shortcut
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Fill, {
+ name: fillName,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ ...props,
+ shortcut: shortcut
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/input-event.js
@@ -60496,7 +65620,6 @@ function __unstableRichTextInputEvent({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/tool-selector/index.js
-
/**
* WordPress dependencies
*/
@@ -60510,24 +65633,28 @@ function __unstableRichTextInputEvent({
* Internal dependencies
*/
-const selectIcon = (0,external_React_.createElement)(external_wp_components_namespaceObject.SVG, {
+
+
+
+const selectIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
width: "24",
height: "24",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_components_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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) {
const mode = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).__unstableGetEditorMode(), []);
const {
__unstableSetEditorMode
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Dropdown, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
renderToggle: ({
isOpen,
onToggle
- }) => (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
...props,
ref: ref,
icon: mode === 'navigation' ? selectIcon : edit,
@@ -60540,30 +65667,37 @@ function ToolSelector(props, ref) {
popoverProps: {
placement: 'bottom-start'
},
- renderContent: () => (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.NavigableMenu, {
- role: "menu",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Tools')
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItemsChoice, {
- value: mode === 'navigation' ? 'navigation' : 'edit',
- onSelect: __unstableSetEditorMode,
- choices: [{
- value: 'edit',
- label: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(build_module_icon, {
- icon: edit
- }), (0,external_wp_i18n_namespaceObject.__)('Edit'))
- }, {
- value: 'navigation',
- label: (0,external_React_.createElement)(external_React_.Fragment, null, selectIcon, (0,external_wp_i18n_namespaceObject.__)('Select'))
- }]
- })), (0,external_React_.createElement)("div", {
- className: "block-editor-tool-selector__help"
- }, (0,external_wp_i18n_namespaceObject.__)('Tools provide different interactions for selecting, navigating, and editing blocks. Toggle between select and edit by pressing Escape and Enter.')))
+ renderContent: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.NavigableMenu, {
+ role: "menu",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Tools'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItemsChoice, {
+ value: mode === 'navigation' ? 'navigation' : 'edit',
+ onSelect: __unstableSetEditorMode,
+ choices: [{
+ value: 'edit',
+ label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: edit
+ }), (0,external_wp_i18n_namespaceObject.__)('Edit')]
+ })
+ }, {
+ value: 'navigation',
+ label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [selectIcon, (0,external_wp_i18n_namespaceObject.__)('Select')]
+ })
+ }]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-tool-selector__help",
+ children: (0,external_wp_i18n_namespaceObject.__)('Tools provide different interactions for selecting, navigating, and editing blocks. Toggle between select and edit by pressing Escape and Enter.')
+ })]
+ })
});
}
/* harmony default export */ const tool_selector = ((0,external_wp_element_namespaceObject.forwardRef)(ToolSelector));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/unit-control/index.js
-
/**
* WordPress dependencies
*/
@@ -60573,6 +65707,7 @@ function ToolSelector(props, ref) {
* Internal dependencies
*/
+
function UnitControl({
units: unitsProp,
...props
@@ -60582,28 +65717,28 @@ function UnitControl({
availableUnits: availableUnits || ['%', 'px', 'em', 'rem', 'vw'],
units: unitsProp
});
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
units: units,
...props
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/arrow-left.js
-
/**
* WordPress dependencies
*/
-const arrowLeft = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const arrowLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"
+ })
+});
/* harmony default export */ const arrow_left = (arrowLeft);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-input/button.js
-
/**
* WordPress dependencies
*/
@@ -60616,6 +65751,8 @@ const arrowLeft = (0,external_React_.createElement)(external_wp_primitives_names
* Internal dependencies
*/
+
+
class URLInputButton extends external_wp_element_namespaceObject.Component {
constructor() {
super(...arguments);
@@ -60643,33 +65780,36 @@ class URLInputButton extends external_wp_element_namespaceObject.Component {
expanded
} = this.state;
const buttonLabel = url ? (0,external_wp_i18n_namespaceObject.__)('Edit link') : (0,external_wp_i18n_namespaceObject.__)('Insert link');
- return (0,external_React_.createElement)("div", {
- className: "block-editor-url-input__button"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: library_link,
- label: buttonLabel,
- onClick: this.toggle,
- className: "components-toolbar__control",
- isPressed: !!url
- }), expanded && (0,external_React_.createElement)("form", {
- className: "block-editor-url-input__button-modal",
- onSubmit: this.submitLink
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-url-input__button-modal-line"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "block-editor-url-input__back",
- icon: arrow_left,
- label: (0,external_wp_i18n_namespaceObject.__)('Close'),
- onClick: this.toggle
- }), (0,external_React_.createElement)(url_input, {
- __nextHasNoMarginBottom: true,
- value: url || '',
- onChange: onChange
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: keyboard_return,
- label: (0,external_wp_i18n_namespaceObject.__)('Submit'),
- type: "submit"
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-url-input__button",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: library_link,
+ label: buttonLabel,
+ onClick: this.toggle,
+ className: "components-toolbar__control",
+ isPressed: !!url
+ }), expanded && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ className: "block-editor-url-input__button-modal",
+ onSubmit: this.submitLink,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-url-input__button-modal-line",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "block-editor-url-input__back",
+ icon: arrow_left,
+ label: (0,external_wp_i18n_namespaceObject.__)('Close'),
+ onClick: this.toggle
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(url_input, {
+ __nextHasNoMarginBottom: true,
+ value: url || '',
+ onChange: onChange
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: keyboard_return,
+ label: (0,external_wp_i18n_namespaceObject.__)('Submit'),
+ type: "submit"
+ })]
+ })
+ })]
+ });
}
}
@@ -60679,21 +65819,21 @@ class URLInputButton extends external_wp_element_namespaceObject.Component {
/* harmony default export */ const url_input_button = (URLInputButton);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/image.js
-
/**
* WordPress dependencies
*/
-const image_image = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const image_image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.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.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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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.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 */ const library_image = (image_image);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/image-url-input-ui.js
-
/**
* WordPress dependencies
*/
@@ -60707,6 +65847,9 @@ const image_image = (0,external_React_.createElement)(external_wp_primitives_nam
* Internal dependencies
*/
+
+
+
const LINK_DESTINATION_NONE = 'none';
const LINK_DESTINATION_CUSTOM = 'custom';
const LINK_DESTINATION_MEDIA = 'media';
@@ -60867,48 +66010,54 @@ const ImageURLInputUI = ({
linkClass: value
});
};
- const advancedOptions = (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "3"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
- onChange: onSetNewTab,
- checked: linkTarget === '_blank'
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Link rel'),
- value: rel !== null && rel !== void 0 ? rel : '',
- onChange: onSetLinkRel
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Link CSS class'),
- value: linkClass || '',
- onChange: onSetLinkClass
- }));
+ const advancedOptions = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "3",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
+ onChange: onSetNewTab,
+ checked: linkTarget === '_blank'
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Link rel'),
+ value: rel !== null && rel !== void 0 ? rel : '',
+ onChange: onSetLinkRel
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Link CSS class'),
+ value: linkClass || '',
+ onChange: onSetLinkClass
+ })]
+ });
const linkEditorValue = urlInput !== null ? urlInput : url;
const hideLightboxPanel = !lightboxEnabled || lightboxEnabled && !showLightboxSetting;
const showLinkEditor = !linkEditorValue && hideLightboxPanel;
const urlLabel = (getLinkDestinations().find(destination => destination.linkDestination === linkDestination) || {}).title;
const PopoverChildren = () => {
if (lightboxEnabled && showLightboxSetting && !url && !isEditingLink) {
- return (0,external_React_.createElement)("div", {
- className: "block-editor-url-popover__expand-on-click"
- }, (0,external_React_.createElement)(build_module_icon, {
- icon: library_fullscreen
- }), (0,external_React_.createElement)("div", {
- className: "text"
- }, (0,external_React_.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Expand on click')), (0,external_React_.createElement)("p", {
- className: "description"
- }, (0,external_wp_i18n_namespaceObject.__)('Scales the image with a lightbox effect'))), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: link_off,
- label: (0,external_wp_i18n_namespaceObject.__)('Disable expand on click'),
- onClick: () => {
- onSetLightbox(false);
- },
- size: "compact"
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-url-popover__expand-on-click",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: library_fullscreen
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "text",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Expand on click')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "description",
+ children: (0,external_wp_i18n_namespaceObject.__)('Scales the image with a lightbox effect')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: link_off,
+ label: (0,external_wp_i18n_namespaceObject.__)('Disable expand on click'),
+ onClick: () => {
+ onSetLightbox(false);
+ },
+ size: "compact"
+ })]
+ });
} else if (!url || isEditingLink) {
- return (0,external_React_.createElement)(url_popover.LinkEditor, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(url_popover.LinkEditor, {
className: "block-editor-format-toolbar__link-container-content",
value: linkEditorValue,
onChangeInputValue: setUrlInput,
@@ -60916,63 +66065,70 @@ const ImageURLInputUI = ({
autocompleteRef: autocompleteRef
});
} else if (url && !isEditingLink) {
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(url_popover.LinkViewer, {
- className: "block-editor-format-toolbar__link-container-content",
- url: url,
- onEditLinkClick: startEditLink,
- urlLabel: urlLabel
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: link_off,
- label: (0,external_wp_i18n_namespaceObject.__)('Remove link'),
- onClick: () => {
- onLinkRemove();
- resetLightbox();
- },
- size: "compact"
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(url_popover.LinkViewer, {
+ className: "block-editor-format-toolbar__link-container-content",
+ url: url,
+ onEditLinkClick: startEditLink,
+ urlLabel: urlLabel
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: link_off,
+ label: (0,external_wp_i18n_namespaceObject.__)('Remove link'),
+ onClick: () => {
+ onLinkRemove();
+ resetLightbox();
+ },
+ size: "compact"
+ })]
+ });
}
};
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- icon: library_link,
- className: "components-toolbar__control",
- label: (0,external_wp_i18n_namespaceObject.__)('Link'),
- "aria-expanded": isOpen,
- onClick: openLinkUI,
- ref: setPopoverAnchor,
- isActive: !!url || lightboxEnabled && showLightboxSetting
- }), isOpen && (0,external_React_.createElement)(url_popover, {
- ref: wrapperRef,
- anchor: popoverAnchor,
- onFocusOutside: onFocusOutside(),
- onClose: closeLinkUI,
- renderSettings: hideLightboxPanel ? () => advancedOptions : null,
- additionalControls: showLinkEditor && (0,external_React_.createElement)(external_wp_components_namespaceObject.NavigableMenu, null, getLinkDestinations().map(link => (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- key: link.linkDestination,
- icon: link.icon,
- iconPosition: "left",
- onClick: () => {
- setUrlInput(null);
- onSetHref(link.url);
- stopEditLink();
- }
- }, link.title)), showLightboxSetting && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- key: "expand-on-click",
- className: "block-editor-url-popover__expand-on-click",
- icon: library_fullscreen,
- info: (0,external_wp_i18n_namespaceObject.__)('Scale the image with a lightbox effect.'),
- iconPosition: "left",
- onClick: () => {
- setUrlInput(null);
- onChangeUrl({
- linkDestination: LINK_DESTINATION_NONE,
- href: ''
- });
- onSetLightbox(true);
- stopEditLink();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Expand on click'))),
- offset: 13
- }, PopoverChildren()));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ icon: library_link,
+ className: "components-toolbar__control",
+ label: (0,external_wp_i18n_namespaceObject.__)('Link'),
+ "aria-expanded": isOpen,
+ onClick: openLinkUI,
+ ref: setPopoverAnchor,
+ isActive: !!url || lightboxEnabled && showLightboxSetting
+ }), isOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(url_popover, {
+ ref: wrapperRef,
+ anchor: popoverAnchor,
+ onFocusOutside: onFocusOutside(),
+ onClose: closeLinkUI,
+ renderSettings: hideLightboxPanel ? () => advancedOptions : null,
+ additionalControls: showLinkEditor && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.NavigableMenu, {
+ children: [getLinkDestinations().map(link => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: link.icon,
+ iconPosition: "left",
+ onClick: () => {
+ setUrlInput(null);
+ onSetHref(link.url);
+ stopEditLink();
+ },
+ children: link.title
+ }, link.linkDestination)), showLightboxSetting && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ className: "block-editor-url-popover__expand-on-click",
+ icon: library_fullscreen,
+ info: (0,external_wp_i18n_namespaceObject.__)('Scale the image with a lightbox effect.'),
+ iconPosition: "left",
+ onClick: () => {
+ setUrlInput(null);
+ onChangeUrl({
+ linkDestination: LINK_DESTINATION_NONE,
+ href: ''
+ });
+ onSetLightbox(true);
+ stopEditLink();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Expand on click')
+ }, "expand-on-click")]
+ }),
+ offset: 13,
+ children: PopoverChildren()
+ })]
+ });
};
@@ -61059,7 +66215,6 @@ function useResizeCanvas(deviceType) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/skip-to-selected-block/index.js
-
/**
* WordPress dependencies
*/
@@ -61072,33 +66227,28 @@ function useResizeCanvas(deviceType) {
*/
-const SkipToSelectedBlock = ({
- selectedBlockClientId
-}) => {
+
+/**
+ * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/skip-to-selected-block/README.md
+ */
+
+function SkipToSelectedBlock() {
+ const selectedBlockClientId = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getBlockSelectionStart(), []);
const ref = useBlockRef(selectedBlockClientId);
const onClick = () => {
ref.current.focus();
};
- return selectedBlockClientId ? (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+ return selectedBlockClientId ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
variant: "secondary",
className: "block-editor-skip-to-selected-block",
- onClick: onClick
- }, (0,external_wp_i18n_namespaceObject.__)('Skip to the selected block')) : null;
-};
-
-/**
- * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/skip-to-selected-block/README.md
- */
-/* harmony default export */ const skip_to_selected_block = ((0,external_wp_data_namespaceObject.withSelect)(select => {
- return {
- selectedBlockClientId: select(store).getBlockSelectionStart()
- };
-})(SkipToSelectedBlock));
+ onClick: onClick,
+ children: (0,external_wp_i18n_namespaceObject.__)('Skip to the selected block')
+ }) : null;
+}
;// CONCATENATED MODULE: external ["wp","wordcount"]
const external_wp_wordcount_namespaceObject = window["wp"]["wordcount"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/multi-selection-inspector/index.js
-
/**
* WordPress dependencies
*/
@@ -61113,24 +66263,30 @@ const external_wp_wordcount_namespaceObject = window["wp"]["wordcount"];
*/
+
+
function MultiSelectionInspector({
blocks
}) {
const words = (0,external_wp_wordcount_namespaceObject.count)((0,external_wp_blocks_namespaceObject.serialize)(blocks), 'words');
- return (0,external_React_.createElement)("div", {
- className: "block-editor-multi-selection-inspector__card"
- }, (0,external_React_.createElement)(block_icon, {
- icon: library_copy,
- showColors: true
- }), (0,external_React_.createElement)("div", {
- className: "block-editor-multi-selection-inspector__card-content"
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-multi-selection-inspector__card-title"
- }, (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of blocks */
- (0,external_wp_i18n_namespaceObject._n)('%d Block', '%d Blocks', blocks.length), blocks.length)), (0,external_React_.createElement)("div", {
- className: "block-editor-multi-selection-inspector__card-description"
- }, (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of words */
- (0,external_wp_i18n_namespaceObject._n)('%d word selected.', '%d words selected.', words), words))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-multi-selection-inspector__card",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: library_copy,
+ showColors: true
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-multi-selection-inspector__card-content",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-multi-selection-inspector__card-title",
+ children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of blocks */
+ (0,external_wp_i18n_namespaceObject._n)('%d Block', '%d Blocks', blocks.length), blocks.length)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-multi-selection-inspector__card-description",
+ children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of words */
+ (0,external_wp_i18n_namespaceObject._n)('%d word selected.', '%d words selected.', words), words)
+ })]
+ })]
+ });
}
/* harmony default export */ const multi_selection_inspector = ((0,external_wp_data_namespaceObject.withSelect)(select => {
const {
@@ -61141,98 +66297,36 @@ function MultiSelectionInspector({
};
})(MultiSelectionInspector));
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/default-style-picker/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-function DefaultStylePicker({
- blockName
-}) {
- const {
- preferredStyle,
- onUpdatePreferredStyleVariations,
- styles
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- var _preferredStyleVariat;
- const settings = select(store).getSettings();
- const preferredStyleVariations = settings.__experimentalPreferredStyleVariations;
- return {
- preferredStyle: preferredStyleVariations?.value?.[blockName],
- onUpdatePreferredStyleVariations: (_preferredStyleVariat = preferredStyleVariations?.onChange) !== null && _preferredStyleVariat !== void 0 ? _preferredStyleVariat : null,
- styles: select(external_wp_blocks_namespaceObject.store).getBlockStyles(blockName)
- };
- }, [blockName]);
- const selectOptions = (0,external_wp_element_namespaceObject.useMemo)(() => [{
- label: (0,external_wp_i18n_namespaceObject.__)('Not set'),
- value: ''
- }, ...styles.map(({
- label,
- name
- }) => ({
- label,
- value: name
- }))], [styles]);
- const defaultStyleName = (0,external_wp_element_namespaceObject.useMemo)(() => getDefaultStyle(styles)?.name, [styles]);
- const selectOnChange = (0,external_wp_element_namespaceObject.useCallback)(blockStyle => {
- onUpdatePreferredStyleVariations(blockName, blockStyle);
- }, [blockName, onUpdatePreferredStyleVariations]);
-
- // Until the functionality is migrated to global styles,
- // only show the default style picker if a non-default style has already been selected.
- if (!preferredStyle || preferredStyle === defaultStyleName) {
- return null;
- }
- return onUpdatePreferredStyleVariations && (0,external_React_.createElement)("div", {
- className: "default-style-picker__default-switcher"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- options: selectOptions,
- value: preferredStyle || '',
- label: (0,external_wp_i18n_namespaceObject.__)('Default Style'),
- onChange: selectOnChange
- }));
-}
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/cog.js
-
/**
* WordPress dependencies
*/
-const cog = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const cog = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- d: "M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",
- clipRule: "evenodd"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ d: "M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",
+ clipRule: "evenodd"
+ })
+});
/* harmony default export */ const library_cog = (cog);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/styles.js
-
/**
* WordPress dependencies
*/
-const styles = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const styles = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"
+ })
+});
/* harmony default export */ const library_styles = (styles);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls-tabs/utils.js
@@ -61264,7 +66358,6 @@ const TAB_LIST_VIEW = {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls-tabs/advanced-controls-panel.js
-
/**
* WordPress dependencies
*/
@@ -61275,24 +66368,25 @@ const TAB_LIST_VIEW = {
* Internal dependencies
*/
+
const AdvancedControls = () => {
const fills = (0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(InspectorAdvancedControls.slotName);
const hasFills = Boolean(fills && fills.length);
if (!hasFills) {
return null;
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
className: "block-editor-block-inspector__advanced",
title: (0,external_wp_i18n_namespaceObject.__)('Advanced'),
- initialOpen: false
- }, (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "advanced"
- }));
+ initialOpen: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "advanced"
+ })
+ });
};
/* harmony default export */ const advanced_controls_panel = (AdvancedControls);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls-tabs/position-controls-panel.js
-
/**
* WordPress dependencies
*/
@@ -61307,6 +66401,7 @@ const AdvancedControls = () => {
+
const PositionControlsPanel = () => {
const [initialOpen, setInitialOpen] = (0,external_wp_element_namespaceObject.useState)();
@@ -61332,13 +66427,14 @@ const PositionControlsPanel = () => {
}) => !!attributes?.style?.position?.type));
}
}, [initialOpen, multiSelectedBlocks, setInitialOpen]);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
className: "block-editor-block-inspector__position",
title: (0,external_wp_i18n_namespaceObject.__)('Position'),
- initialOpen: initialOpen !== null && initialOpen !== void 0 ? initialOpen : false
- }, (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "position"
- }));
+ initialOpen: initialOpen !== null && initialOpen !== void 0 ? initialOpen : false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "position"
+ })
+ });
};
const PositionControls = () => {
const fills = (0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(inspector_controls_groups.position.Slot.__unstableName);
@@ -61346,26 +66442,26 @@ const PositionControls = () => {
if (!hasFills) {
return null;
}
- return (0,external_React_.createElement)(PositionControlsPanel, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PositionControlsPanel, {});
};
/* harmony default export */ const position_controls_panel = (PositionControls);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
-
/**
* WordPress dependencies
*/
-const close_close = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const close_close = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const library_close = (close_close);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls-tabs/settings-tab-hint.js
-
/**
* WordPress dependencies
*/
@@ -61376,6 +66472,8 @@ const close_close = (0,external_React_.createElement)(external_wp_primitives_nam
+
+
const PREFERENCE_NAME = 'isInspectorControlsTabsHintVisible';
function InspectorControlsTabsHint() {
const isInspectorControlsTabsHintVisible = (0,external_wp_data_namespaceObject.useSelect)(select => {
@@ -61389,28 +66487,29 @@ function InspectorControlsTabsHint() {
if (!isInspectorControlsTabsHintVisible) {
return null;
}
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
ref: ref,
- className: "block-editor-inspector-controls-tabs__hint"
- }, (0,external_React_.createElement)("div", {
- className: "block-editor-inspector-controls-tabs__hint-content"
- }, (0,external_wp_i18n_namespaceObject.__)("Looking for other block settings? They've moved to the styles tab.")), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "block-editor-inspector-controls-tabs__hint-dismiss",
- icon: library_close,
- iconSize: "16",
- label: (0,external_wp_i18n_namespaceObject.__)('Dismiss hint'),
- onClick: () => {
- // Retain focus when dismissing the element.
- const previousElement = external_wp_dom_namespaceObject.focus.tabbable.findPrevious(ref.current);
- previousElement?.focus();
- setPreference('core', PREFERENCE_NAME, false);
- },
- showTooltip: false
- }));
+ className: "block-editor-inspector-controls-tabs__hint",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-inspector-controls-tabs__hint-content",
+ children: (0,external_wp_i18n_namespaceObject.__)("Looking for other block settings? They've moved to the styles tab.")
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "block-editor-inspector-controls-tabs__hint-dismiss",
+ icon: library_close,
+ iconSize: "16",
+ label: (0,external_wp_i18n_namespaceObject.__)('Dismiss hint'),
+ onClick: () => {
+ // Retain focus when dismissing the element.
+ const previousElement = external_wp_dom_namespaceObject.focus.tabbable.findPrevious(ref.current);
+ previousElement?.focus();
+ setPreference('core', PREFERENCE_NAME, false);
+ },
+ showTooltip: false
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls-tabs/settings-tab.js
-
/**
* Internal dependencies
*/
@@ -61418,20 +66517,25 @@ function InspectorControlsTabsHint() {
+
+
+
const SettingsTab = ({
showAdvancedControls = false
-}) => (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(inspector_controls.Slot, null), (0,external_React_.createElement)(position_controls_panel, null), showAdvancedControls && (0,external_React_.createElement)("div", null, (0,external_React_.createElement)(advanced_controls_panel, null)), (0,external_React_.createElement)(InspectorControlsTabsHint, null));
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(position_controls_panel, {}), showAdvancedControls && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(advanced_controls_panel, {})
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InspectorControlsTabsHint, {})]
+});
/* harmony default export */ const settings_tab = (SettingsTab);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls-tabs/styles-tab.js
-
/**
* WordPress dependencies
*/
-
/**
* Internal dependencies
*/
@@ -61439,6 +66543,8 @@ const SettingsTab = ({
+
+
const StylesTab = ({
blockName,
clientId,
@@ -61447,33 +66553,36 @@ const StylesTab = ({
const borderPanelLabel = useBorderPanelLabel({
blockName
});
- return (0,external_React_.createElement)(external_React_.Fragment, null, hasBlockStyles && (0,external_React_.createElement)("div", null, (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Styles')
- }, (0,external_React_.createElement)(block_styles, {
- clientId: clientId
- }), (0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockName, 'defaultStylePicker', true) && (0,external_React_.createElement)(DefaultStylePicker, {
- blockName: blockName
- }))), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "color",
- label: (0,external_wp_i18n_namespaceObject.__)('Color'),
- className: "color-block-support-panel__inner-wrapper"
- }), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "background",
- label: (0,external_wp_i18n_namespaceObject.__)('Background')
- }), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "filter"
- }), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "typography",
- label: (0,external_wp_i18n_namespaceObject.__)('Typography')
- }), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "dimensions",
- label: (0,external_wp_i18n_namespaceObject.__)('Dimensions')
- }), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "border",
- label: borderPanelLabel
- }), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "styles"
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [hasBlockStyles && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Styles'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_styles, {
+ clientId: clientId
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "color",
+ label: (0,external_wp_i18n_namespaceObject.__)('Color'),
+ className: "color-block-support-panel__inner-wrapper"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "background",
+ label: (0,external_wp_i18n_namespaceObject.__)('Background image')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "filter"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "typography",
+ label: (0,external_wp_i18n_namespaceObject.__)('Typography')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "dimensions",
+ label: (0,external_wp_i18n_namespaceObject.__)('Dimensions')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "border",
+ label: borderPanelLabel
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "styles"
+ })]
+ });
};
/* harmony default export */ const styles_tab = (StylesTab);
@@ -61487,12 +66596,13 @@ const useIsListViewTabDisabled = blockName => {
/* harmony default export */ const use_is_list_view_tab_disabled = (useIsListViewTabDisabled);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls-tabs/index.js
-
/**
* WordPress dependencies
*/
+
+
/**
* Internal dependencies
*/
@@ -61502,6 +66612,8 @@ const useIsListViewTabDisabled = blockName => {
+
+
const {
Tabs: inspector_controls_tabs_Tabs
} = unlock(external_wp_components_namespaceObject.privateApis);
@@ -61511,43 +66623,53 @@ function InspectorControlsTabs({
hasBlockStyles,
tabs
}) {
+ const showIconLabels = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ return select(external_wp_preferences_namespaceObject.store).get('core', 'showIconLabels');
+ }, []);
+
// The tabs panel will mount before fills are rendered to the list view
// slot. This means the list view tab isn't initially included in the
// available tabs so the panel defaults selection to the settings tab
// which at the time is the first tab. This check allows blocks known to
// include the list view tab to set it as the tab selected by default.
const initialTabName = !use_is_list_view_tab_disabled(blockName) ? TAB_LIST_VIEW.name : undefined;
- return (0,external_React_.createElement)("div", {
- className: "block-editor-block-inspector__tabs"
- }, (0,external_React_.createElement)(inspector_controls_tabs_Tabs, {
- initialTabId: initialTabName,
- key: clientId
- }, (0,external_React_.createElement)(inspector_controls_tabs_Tabs.TabList, null, tabs.map(tab => (0,external_React_.createElement)(inspector_controls_tabs_Tabs.Tab, {
- key: tab.name,
- tabId: tab.name,
- render: (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: tab.icon,
- label: tab.title,
- className: tab.className
- })
- }))), (0,external_React_.createElement)(inspector_controls_tabs_Tabs.TabPanel, {
- tabId: TAB_SETTINGS.name,
- focusable: false
- }, (0,external_React_.createElement)(settings_tab, {
- showAdvancedControls: !!blockName
- })), (0,external_React_.createElement)(inspector_controls_tabs_Tabs.TabPanel, {
- tabId: TAB_STYLES.name,
- focusable: false
- }, (0,external_React_.createElement)(styles_tab, {
- blockName: blockName,
- clientId: clientId,
- hasBlockStyles: hasBlockStyles
- })), (0,external_React_.createElement)(inspector_controls_tabs_Tabs.TabPanel, {
- tabId: TAB_LIST_VIEW.name,
- focusable: false
- }, (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "list"
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-block-inspector__tabs",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(inspector_controls_tabs_Tabs, {
+ defaultTabId: initialTabName,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls_tabs_Tabs.TabList, {
+ children: tabs.map(tab => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls_tabs_Tabs.Tab, {
+ tabId: tab.name,
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: !showIconLabels ? tab.icon : undefined,
+ label: !showIconLabels ? tab.title : undefined,
+ className: tab.className,
+ children: showIconLabels && tab.title
+ })
+ }, tab.name))
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls_tabs_Tabs.TabPanel, {
+ tabId: TAB_SETTINGS.name,
+ focusable: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(settings_tab, {
+ showAdvancedControls: !!blockName
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls_tabs_Tabs.TabPanel, {
+ tabId: TAB_STYLES.name,
+ focusable: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_tab, {
+ blockName: blockName,
+ clientId: clientId,
+ hasBlockStyles: hasBlockStyles
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls_tabs_Tabs.TabPanel, {
+ tabId: TAB_LIST_VIEW.name,
+ focusable: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "list"
+ })
+ })]
+ }, clientId)
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls-tabs/use-inspector-controls-tabs.js
@@ -61637,7 +66759,7 @@ function useInspectorControlsTabs(blockName) {
* Internal dependencies
*/
-function useBlockInspectorAnimationSettings(blockType, selectedBlockClientId) {
+function useBlockInspectorAnimationSettings(blockType) {
return (0,external_wp_data_namespaceObject.useSelect)(select => {
if (blockType) {
const globalBlockInspectorAnimationSettings = select(store).getSettings().blockInspectorAnimation;
@@ -61661,11 +66783,10 @@ function useBlockInspectorAnimationSettings(blockType, selectedBlockClientId) {
return globalBlockInspectorAnimationSettings?.[blockType.name];
}
return null;
- }, [selectedBlockClientId, blockType]);
+ }, [blockType]);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-info-slot-fill/index.js
-
/**
* WordPress dependencies
*/
@@ -61676,6 +66797,7 @@ function useBlockInspectorAnimationSettings(blockType, selectedBlockClientId) {
*/
+
const {
createPrivateSlotFill
} = unlock(external_wp_components_namespaceObject.privateApis);
@@ -61688,17 +66810,16 @@ const BlockInfo = props => {
if (!context[mayDisplayControlsKey]) {
return null;
}
- return (0,external_React_.createElement)(block_info_slot_fill_Fill, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_info_slot_fill_Fill, {
...props
});
};
-BlockInfo.Slot = props => (0,external_React_.createElement)(block_info_slot_fill_Slot, {
+BlockInfo.Slot = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_info_slot_fill_Slot, {
...props
});
/* harmony default export */ const block_info_slot_fill = (BlockInfo);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-quick-navigation/index.js
-
/**
* WordPress dependencies
*/
@@ -61711,18 +66832,20 @@ BlockInfo.Slot = props => (0,external_React_.createElement)(block_info_slot_fill
*/
+
+
function BlockQuickNavigation({
clientIds
}) {
if (!clientIds.length) {
return null;
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 1
- }, clientIds.map(clientId => (0,external_React_.createElement)(BlockQuickNavigationItem, {
- key: clientId,
- clientId: clientId
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 1,
+ children: clientIds.map(clientId => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockQuickNavigationItem, {
+ clientId: clientId
+ }, clientId))
+ });
}
function BlockQuickNavigationItem({
clientId
@@ -61752,20 +66875,27 @@ function BlockQuickNavigationItem({
const {
selectBlock
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
isPressed: isSelected,
- onClick: () => selectBlock(clientId)
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(block_icon, {
- icon: icon
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexBlock, {
- style: {
- textAlign: 'left'
- }
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, null, name))));
+ onClick: () => selectBlock(clientId),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
+ icon: icon
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexBlock, {
+ style: {
+ textAlign: 'left'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTruncate, {
+ children: name
+ })
+ })]
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-inspector/index.js
-
/**
* WordPress dependencies
*/
@@ -61794,6 +66924,9 @@ function BlockQuickNavigationItem({
+
+
+
function BlockInspectorLockedBlocks({
topLevelLockedBlock
}) {
@@ -61806,18 +66939,20 @@ function BlockInspectorLockedBlocks({
return getClientIdsOfDescendants(topLevelLockedBlock).filter(clientId => getBlockName(clientId) !== 'core/list-item' && getBlockEditingMode(clientId) === 'contentOnly');
}, [topLevelLockedBlock]);
const blockInformation = useBlockDisplayInformation(topLevelLockedBlock);
- return (0,external_React_.createElement)("div", {
- className: "block-editor-block-inspector"
- }, (0,external_React_.createElement)(block_card, {
- ...blockInformation,
- className: blockInformation.isSynced && 'is-synced'
- }), (0,external_React_.createElement)(block_variation_transforms, {
- blockClientId: topLevelLockedBlock
- }), (0,external_React_.createElement)(block_info_slot_fill.Slot, null), contentClientIds.length > 0 && (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Content')
- }, (0,external_React_.createElement)(BlockQuickNavigation, {
- clientIds: contentClientIds
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-block-inspector",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_card, {
+ ...blockInformation,
+ className: blockInformation.isSynced && 'is-synced'
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_variation_transforms, {
+ blockClientId: topLevelLockedBlock
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_info_slot_fill.Slot, {}), contentClientIds.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Content'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockQuickNavigation, {
+ clientIds: contentClientIds
+ })
+ })]
+ });
}
const BlockInspector = ({
showNoBlockSelectedMessage = true
@@ -61833,9 +66968,9 @@ const BlockInspector = ({
getSelectedBlockClientId,
getSelectedBlockCount,
getBlockName,
- __unstableGetContentLockingParent,
+ getContentLockingParent,
getTemplateLock
- } = select(store);
+ } = unlock(select(store));
const _selectedBlockClientId = getSelectedBlockClientId();
const _selectedBlockName = _selectedBlockClientId && getBlockName(_selectedBlockClientId);
const _blockType = _selectedBlockName && (0,external_wp_blocks_namespaceObject.getBlockType)(_selectedBlockName);
@@ -61844,7 +66979,7 @@ const BlockInspector = ({
selectedBlockClientId: _selectedBlockClientId,
selectedBlockName: _selectedBlockName,
blockType: _blockType,
- topLevelLockedBlock: __unstableGetContentLockingParent(_selectedBlockClientId) || (getTemplateLock(_selectedBlockClientId) === 'contentOnly' || _selectedBlockName === 'core/block' ? _selectedBlockClientId : undefined)
+ topLevelLockedBlock: getContentLockingParent(_selectedBlockClientId) || (getTemplateLock(_selectedBlockClientId) === 'contentOnly' || _selectedBlockName === 'core/block' ? _selectedBlockClientId : undefined)
};
}, []);
const availableTabs = useInspectorControlsTabs(blockType?.name);
@@ -61856,31 +66991,34 @@ const BlockInspector = ({
// displays based on the relationship between the selected block
// and its parent, and only enable it if the parent is controlling
// its children blocks.
- const blockInspectorAnimationSettings = useBlockInspectorAnimationSettings(blockType, selectedBlockClientId);
+ const blockInspectorAnimationSettings = useBlockInspectorAnimationSettings(blockType);
const borderPanelLabel = useBorderPanelLabel({
blockName: selectedBlockName
});
if (count > 1) {
- return (0,external_React_.createElement)("div", {
- className: "block-editor-block-inspector"
- }, (0,external_React_.createElement)(multi_selection_inspector, null), showTabs ? (0,external_React_.createElement)(InspectorControlsTabs, {
- tabs: availableTabs
- }) : (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(inspector_controls.Slot, null), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "color",
- label: (0,external_wp_i18n_namespaceObject.__)('Color'),
- className: "color-block-support-panel__inner-wrapper"
- }), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "typography",
- label: (0,external_wp_i18n_namespaceObject.__)('Typography')
- }), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "dimensions",
- label: (0,external_wp_i18n_namespaceObject.__)('Dimensions')
- }), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "border",
- label: borderPanelLabel
- }), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "styles"
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-block-inspector",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(multi_selection_inspector, {}), showTabs ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InspectorControlsTabs, {
+ tabs: availableTabs
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "color",
+ label: (0,external_wp_i18n_namespaceObject.__)('Color'),
+ className: "color-block-support-panel__inner-wrapper"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "typography",
+ label: (0,external_wp_i18n_namespaceObject.__)('Typography')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "dimensions",
+ label: (0,external_wp_i18n_namespaceObject.__)('Dimensions')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "border",
+ label: borderPanelLabel
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "styles"
+ })]
+ })]
+ });
}
const isSelectedBlockUnregistered = selectedBlockName === (0,external_wp_blocks_namespaceObject.getUnregisteredTypeHandlerName)();
@@ -61890,27 +67028,30 @@ const BlockInspector = ({
*/
if (!blockType || !selectedBlockClientId || isSelectedBlockUnregistered) {
if (showNoBlockSelectedMessage) {
- return (0,external_React_.createElement)("span", {
- className: "block-editor-block-inspector__no-blocks"
- }, (0,external_wp_i18n_namespaceObject.__)('No block selected.'));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-block-inspector__no-blocks",
+ children: (0,external_wp_i18n_namespaceObject.__)('No block selected.')
+ });
}
return null;
}
if (topLevelLockedBlock) {
- return (0,external_React_.createElement)(BlockInspectorLockedBlocks, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockInspectorLockedBlocks, {
topLevelLockedBlock: topLevelLockedBlock
});
}
- return (0,external_React_.createElement)(BlockInspectorSingleBlockWrapper, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockInspectorSingleBlockWrapper, {
animate: blockInspectorAnimationSettings,
- wrapper: children => (0,external_React_.createElement)(AnimatedContainer, {
+ wrapper: children => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AnimatedContainer, {
blockInspectorAnimationSettings: blockInspectorAnimationSettings,
- selectedBlockClientId: selectedBlockClientId
- }, children)
- }, (0,external_React_.createElement)(BlockInspectorSingleBlock, {
- clientId: selectedBlockClientId,
- blockName: blockType.name
- }));
+ selectedBlockClientId: selectedBlockClientId,
+ children: children
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockInspectorSingleBlock, {
+ clientId: selectedBlockClientId,
+ blockName: blockType.name
+ })
+ });
};
const BlockInspectorSingleBlockWrapper = ({
animate,
@@ -61925,7 +67066,7 @@ const AnimatedContainer = ({
children
}) => {
const animationOrigin = blockInspectorAnimationSettings && blockInspectorAnimationSettings.enterDirection === 'leftToRight' ? -50 : 50;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
animate: {
x: 0,
opacity: 1,
@@ -61938,8 +67079,8 @@ const AnimatedContainer = ({
x: animationOrigin,
opacity: 0
},
- key: selectedBlockClientId
- }, children);
+ children: children
+ }, selectedBlockClientId);
};
const BlockInspectorSingleBlock = ({
clientId,
@@ -61958,47 +67099,51 @@ const BlockInspectorSingleBlock = ({
const borderPanelLabel = useBorderPanelLabel({
blockName
});
- return (0,external_React_.createElement)("div", {
- className: "block-editor-block-inspector"
- }, (0,external_React_.createElement)(block_card, {
- ...blockInformation,
- className: blockInformation.isSynced && 'is-synced'
- }), (0,external_React_.createElement)(block_variation_transforms, {
- blockClientId: clientId
- }), (0,external_React_.createElement)(block_info_slot_fill.Slot, null), showTabs && (0,external_React_.createElement)(InspectorControlsTabs, {
- hasBlockStyles: hasBlockStyles,
- clientId: clientId,
- blockName: blockName,
- tabs: availableTabs
- }), !showTabs && (0,external_React_.createElement)(external_React_.Fragment, null, hasBlockStyles && (0,external_React_.createElement)("div", null, (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Styles')
- }, (0,external_React_.createElement)(block_styles, {
- clientId: clientId
- }), (0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockName, 'defaultStylePicker', true) && (0,external_React_.createElement)(DefaultStylePicker, {
- blockName: blockName
- }))), (0,external_React_.createElement)(inspector_controls.Slot, null), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "list"
- }), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "color",
- label: (0,external_wp_i18n_namespaceObject.__)('Color'),
- className: "color-block-support-panel__inner-wrapper"
- }), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "typography",
- label: (0,external_wp_i18n_namespaceObject.__)('Typography')
- }), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "dimensions",
- label: (0,external_wp_i18n_namespaceObject.__)('Dimensions')
- }), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "border",
- label: borderPanelLabel
- }), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "styles"
- }), (0,external_React_.createElement)(inspector_controls.Slot, {
- group: "background",
- label: (0,external_wp_i18n_namespaceObject.__)('Background')
- }), (0,external_React_.createElement)(position_controls_panel, null), (0,external_React_.createElement)("div", null, (0,external_React_.createElement)(advanced_controls_panel, null))), (0,external_React_.createElement)(skip_to_selected_block, {
- key: "back"
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-editor-block-inspector",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_card, {
+ ...blockInformation,
+ className: blockInformation.isSynced && 'is-synced'
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_variation_transforms, {
+ blockClientId: clientId
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_info_slot_fill.Slot, {}), showTabs && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InspectorControlsTabs, {
+ hasBlockStyles: hasBlockStyles,
+ clientId: clientId,
+ blockName: blockName,
+ tabs: availableTabs
+ }), !showTabs && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [hasBlockStyles && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Styles'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_styles, {
+ clientId: clientId
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "list"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "color",
+ label: (0,external_wp_i18n_namespaceObject.__)('Color'),
+ className: "color-block-support-panel__inner-wrapper"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "typography",
+ label: (0,external_wp_i18n_namespaceObject.__)('Typography')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "dimensions",
+ label: (0,external_wp_i18n_namespaceObject.__)('Dimensions')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "border",
+ label: borderPanelLabel
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "styles"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
+ group: "background",
+ label: (0,external_wp_i18n_namespaceObject.__)('Background image')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(position_controls_panel, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(advanced_controls_panel, {})
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SkipToSelectedBlock, {}, "back")]
+ });
};
/**
@@ -62007,7 +67152,6 @@ const BlockInspectorSingleBlock = ({
/* harmony default export */ const block_inspector = (BlockInspector);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/copy-handler/index.js
-
/**
* WordPress dependencies
*/
@@ -62021,6 +67165,7 @@ const BlockInspectorSingleBlock = ({
/**
* @deprecated
*/
+
const __unstableUseClipboardHandler = () => {
external_wp_deprecated_default()('__unstableUseClipboardHandler', {
alternative: 'BlockCanvas or WritingFlow',
@@ -62040,14 +67185,13 @@ function CopyHandler(props) {
since: '6.4',
version: '6.7'
});
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...props,
ref: useClipboardHandler()
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/library.js
-
/**
* WordPress dependencies
*/
@@ -62059,6 +67203,7 @@ function CopyHandler(props) {
*/
+
const library_noop = () => {};
function InserterLibrary({
rootClientId,
@@ -62067,9 +67212,13 @@ function InserterLibrary({
showInserterHelpPanel,
showMostUsedBlocks = false,
__experimentalInsertionIndex,
+ __experimentalInitialTab,
+ __experimentalInitialCategory,
__experimentalFilterValue,
+ onPatternCategorySelection,
onSelect = library_noop,
- shouldFocusBlock = false
+ shouldFocusBlock = false,
+ onClose
}, ref) {
const {
destinationRootClientId
@@ -62082,7 +67231,7 @@ function InserterLibrary({
destinationRootClientId: _rootClientId
};
}, [clientId, rootClientId]);
- return (0,external_React_.createElement)(menu, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivateInserterMenu, {
onSelect: onSelect,
rootClientId: destinationRootClientId,
clientId: clientId,
@@ -62091,11 +67240,23 @@ function InserterLibrary({
showMostUsedBlocks: showMostUsedBlocks,
__experimentalInsertionIndex: __experimentalInsertionIndex,
__experimentalFilterValue: __experimentalFilterValue,
+ onPatternCategorySelection: onPatternCategorySelection,
+ __experimentalInitialTab: __experimentalInitialTab,
+ __experimentalInitialCategory: __experimentalInitialCategory,
shouldFocusBlock: shouldFocusBlock,
+ ref: ref,
+ onClose: onClose
+ });
+}
+const PrivateInserterLibrary = (0,external_wp_element_namespaceObject.forwardRef)(InserterLibrary);
+function PublicInserterLibrary(props, ref) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivateInserterLibrary, {
+ ...props,
+ onPatternCategorySelection: undefined,
ref: ref
});
}
-/* harmony default export */ const library = ((0,external_wp_element_namespaceObject.forwardRef)(InserterLibrary));
+/* harmony default export */ const library = ((0,external_wp_element_namespaceObject.forwardRef)(PublicInserterLibrary));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/selection-scroll-into-view/index.js
/**
@@ -62118,7 +67279,6 @@ function MultiSelectScrollIntoView() {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/typewriter/index.js
-
/**
* WordPress dependencies
*/
@@ -62131,6 +67291,7 @@ function MultiSelectScrollIntoView() {
* Internal dependencies
*/
+
const isIE = window.navigator.userAgent.indexOf('Trident') !== -1;
const arrowKeyCodes = new Set([external_wp_keycodes_namespaceObject.UP, external_wp_keycodes_namespaceObject.DOWN, external_wp_keycodes_namespaceObject.LEFT, external_wp_keycodes_namespaceObject.RIGHT]);
const initialTriggerPercentage = 0.75;
@@ -62314,10 +67475,11 @@ function useTypewriter() {
function Typewriter({
children
}) {
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
ref: useTypewriter(),
- className: "block-editor__typewriter"
- }, children);
+ className: "block-editor__typewriter",
+ children: children
+ });
}
/**
@@ -62337,7 +67499,6 @@ const TypewriterOrIEBypass = isIE ? props => props.children : Typewriter;
/* harmony default export */ const typewriter = (TypewriterOrIEBypass);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/recursion-provider/index.js
-
/**
* WordPress dependencies
*/
@@ -62348,6 +67509,7 @@ const TypewriterOrIEBypass = isIE ? props => props.children : Typewriter;
* Internal dependencies
*/
+
const RenderedRefsContext = (0,external_wp_element_namespaceObject.createContext)({});
/**
@@ -62393,9 +67555,10 @@ function RecursionProvider({
} = useBlockEditContext();
blockName = blockName || name;
const newRenderedBlocks = (0,external_wp_element_namespaceObject.useMemo)(() => addToBlockType(previouslyRenderedBlocks, blockName, uniqueId), [previouslyRenderedBlocks, blockName, uniqueId]);
- return (0,external_React_.createElement)(RenderedRefsContext.Provider, {
- value: newRenderedBlocks
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RenderedRefsContext.Provider, {
+ value: newRenderedBlocks,
+ children: children
+ });
}
/**
@@ -62424,7 +67587,7 @@ const DeprecatedExperimentalRecursionProvider = props => {
since: '6.5',
alternative: 'wp.blockEditor.RecursionProvider'
});
- return (0,external_React_.createElement)(RecursionProvider, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RecursionProvider, {
...props
});
};
@@ -62436,25 +67599,12 @@ const DeprecatedExperimentalUseHasRecursion = (...args) => {
return useHasRecursion(...args);
};
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-popover-header/index.js
/**
* WordPress dependencies
*/
-const closeSmall = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
-}));
-/* harmony default export */ const close_small = (closeSmall);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-popover-header/index.js
-
-/**
- * WordPress dependencies
- */
@@ -62464,36 +67614,40 @@ function InspectorPopoverHeader({
actions = [],
onClose
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
className: "block-editor-inspector-popover-header",
- spacing: 4
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- alignment: "center"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
- className: "block-editor-inspector-popover-header__heading",
- level: 2,
- size: 13
- }, title), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, null), actions.map(({
- label,
- icon,
- onClick
- }) => (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- key: label,
- className: "block-editor-inspector-popover-header__action",
- label: label,
- icon: icon,
- variant: !icon && 'tertiary',
- onClick: onClick
- }, !icon && label)), onClose && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "block-editor-inspector-popover-header__action",
- label: (0,external_wp_i18n_namespaceObject.__)('Close'),
- icon: close_small,
- onClick: onClose
- })), help && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, null, help));
+ spacing: 4,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ alignment: "center",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
+ className: "block-editor-inspector-popover-header__heading",
+ level: 2,
+ size: 13,
+ children: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {}), actions.map(({
+ label,
+ icon,
+ onClick
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "block-editor-inspector-popover-header__action",
+ label: label,
+ icon: icon,
+ variant: !icon && 'tertiary',
+ onClick: onClick,
+ children: !icon && label
+ }, label)), onClose && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "block-editor-inspector-popover-header__action",
+ label: (0,external_wp_i18n_namespaceObject.__)('Close'),
+ icon: close_small,
+ onClick: onClose
+ })]
+ }), help && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ children: help
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/publish-date-time-picker/index.js
-
/**
* WordPress dependencies
*/
@@ -62506,383 +67660,51 @@ function InspectorPopoverHeader({
* Internal dependencies
*/
+
+
function PublishDateTimePicker({
onClose,
onChange,
+ showPopoverHeaderActions,
+ isCompact,
+ currentDate,
...additionalProps
}, ref) {
- return (0,external_React_.createElement)("div", {
- ref: ref,
- className: "block-editor-publish-date-time-picker"
- }, (0,external_React_.createElement)(InspectorPopoverHeader, {
- title: (0,external_wp_i18n_namespaceObject.__)('Publish'),
- actions: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Now'),
- onClick: () => onChange?.(null)
- }],
- onClose: onClose
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.DateTimePicker, {
+ const datePickerProps = {
startOfWeek: (0,external_wp_date_namespaceObject.getSettings)().l10n.startOfWeek,
- onChange: onChange,
+ onChange,
+ currentDate: isCompact ? undefined : currentDate,
+ currentTime: isCompact ? currentDate : undefined,
...additionalProps
- }));
-}
-/* harmony default export */ const publish_date_time_picker = ((0,external_wp_element_namespaceObject.forwardRef)(PublishDateTimePicker));
-
-;// CONCATENATED MODULE: external ["wp","commands"]
-const external_wp_commands_namespaceObject = window["wp"]["commands"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/move-to.js
-
-/**
- * WordPress dependencies
- */
-
-const move_to_moveTo = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19.75 9c0-1.257-.565-2.197-1.39-2.858-.797-.64-1.827-1.017-2.815-1.247-1.802-.42-3.703-.403-4.383-.396L11 4.5V6l.177-.001c.696-.006 2.416-.02 4.028.356.887.207 1.67.518 2.216.957.52.416.829.945.829 1.688 0 .592-.167.966-.407 1.23-.255.281-.656.508-1.236.674-1.19.34-2.82.346-4.607.346h-.077c-1.692 0-3.527 0-4.942.404-.732.209-1.424.545-1.935 1.108-.526.579-.796 1.33-.796 2.238 0 1.257.565 2.197 1.39 2.858.797.64 1.827 1.017 2.815 1.247 1.802.42 3.703.403 4.383.396L13 19.5h.714V22L18 18.5 13.714 15v3H13l-.177.001c-.696.006-2.416.02-4.028-.356-.887-.207-1.67-.518-2.216-.957-.52-.416-.829-.945-.829-1.688 0-.592.167-.966.407-1.23.255-.281.656-.508 1.237-.674 1.189-.34 2.819-.346 4.606-.346h.077c1.692 0 3.527 0 4.941-.404.732-.209 1.425-.545 1.936-1.108.526-.579.796-1.33.796-2.238z"
-}));
-/* harmony default export */ const move_to = (move_to_moveTo);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/ungroup.js
-
-/**
- * WordPress dependencies
- */
-
-const ungroup = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"
-}));
-/* harmony default export */ const library_ungroup = (ungroup);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/trash.js
-
-/**
- * WordPress dependencies
- */
-
-const trash = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"
-}));
-/* harmony default export */ const library_trash = (trash);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-block-commands/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-const useTransformCommands = () => {
- const {
- replaceBlocks,
- multiSelect
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- const {
- blocks,
- clientIds,
- canRemove,
- possibleBlockTransformations
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getBlockRootClientId,
- getBlockTransformItems,
- getSelectedBlockClientIds,
- getBlocksByClientId,
- canRemoveBlocks
- } = select(store);
- const selectedBlockClientIds = getSelectedBlockClientIds();
- const selectedBlocks = getBlocksByClientId(selectedBlockClientIds);
- const rootClientId = getBlockRootClientId(selectedBlockClientIds[0]);
- return {
- blocks: selectedBlocks,
- clientIds: selectedBlockClientIds,
- possibleBlockTransformations: getBlockTransformItems(selectedBlocks, rootClientId),
- canRemove: canRemoveBlocks(selectedBlockClientIds, rootClientId)
- };
- }, []);
- const isTemplate = blocks.length === 1 && (0,external_wp_blocks_namespaceObject.isTemplatePart)(blocks[0]);
- function selectForMultipleBlocks(insertedBlocks) {
- if (insertedBlocks.length > 1) {
- multiSelect(insertedBlocks[0].clientId, insertedBlocks[insertedBlocks.length - 1].clientId);
- }
- }
-
- // Simple block tranformation based on the `Block Transforms` API.
- function onBlockTransform(name) {
- const newBlocks = (0,external_wp_blocks_namespaceObject.switchToBlockType)(blocks, name);
- replaceBlocks(clientIds, newBlocks);
- selectForMultipleBlocks(newBlocks);
- }
-
- /**
- * The `isTemplate` check is a stopgap solution here.
- * Ideally, the Transforms API should handle this
- * by allowing to exclude blocks from wildcard transformations.
- */
- const hasPossibleBlockTransformations = !!possibleBlockTransformations.length && canRemove && !isTemplate;
- if (!clientIds || clientIds.length < 1 || !hasPossibleBlockTransformations) {
- return {
- isLoading: false,
- commands: []
- };
- }
- const commands = possibleBlockTransformations.map(transformation => {
- const {
- name,
- title,
- icon
- } = transformation;
- return {
- name: 'core/block-editor/transform-to-' + name.replace('/', '-'),
- // translators: %s: block title/name.
- label: (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Transform to %s'), title),
- icon: (0,external_React_.createElement)(block_icon, {
- icon: icon
- }),
- callback: ({
- close
- }) => {
- onBlockTransform(name);
- close();
- }
- };
- });
- return {
- isLoading: false,
- commands
- };
-};
-const useActionsCommands = () => {
- const {
- clientIds
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getSelectedBlockClientIds
- } = select(store);
- const selectedBlockClientIds = getSelectedBlockClientIds();
- return {
- clientIds: selectedBlockClientIds
- };
- }, []);
- const {
- getBlockRootClientId,
- canMoveBlocks,
- getBlockCount
- } = (0,external_wp_data_namespaceObject.useSelect)(store);
- const {
- setBlockMovingClientId,
- setNavigationMode,
- selectBlock
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- if (!clientIds || clientIds.length < 1) {
- return {
- isLoading: false,
- commands: []
- };
- }
- const rootClientId = getBlockRootClientId(clientIds[0]);
- const canMove = canMoveBlocks(clientIds, rootClientId) && getBlockCount(rootClientId) !== 1;
- const commands = [];
- if (canMove) {
- commands.push({
- name: 'move-to',
- label: (0,external_wp_i18n_namespaceObject.__)('Move to'),
- callback: () => {
- setNavigationMode(true);
- selectBlock(clientIds[0]);
- setBlockMovingClientId(clientIds[0]);
- },
- icon: move_to
- });
- }
- return {
- isLoading: false,
- commands: commands.map(command => ({
- ...command,
- name: 'core/block-editor/action-' + command.name,
- callback: ({
- close
- }) => {
- command.callback();
- close();
- }
- }))
};
-};
-const useQuickActionsCommands = () => {
- const {
- clientIds,
- isUngroupable,
- isGroupable
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getSelectedBlockClientIds,
- isUngroupable: _isUngroupable,
- isGroupable: _isGroupable
- } = select(store);
- const selectedBlockClientIds = getSelectedBlockClientIds();
- return {
- clientIds: selectedBlockClientIds,
- isUngroupable: _isUngroupable(),
- isGroupable: _isGroupable()
- };
- }, []);
- const {
- canInsertBlockType,
- getBlockRootClientId,
- getBlocksByClientId,
- canRemoveBlocks
- } = (0,external_wp_data_namespaceObject.useSelect)(store);
- const {
- getDefaultBlockName,
- getGroupingBlockName
- } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blocks_namespaceObject.store);
- const blocks = getBlocksByClientId(clientIds);
- const {
- removeBlocks,
- replaceBlocks,
- duplicateBlocks,
- insertAfterBlock,
- insertBeforeBlock
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- const onGroup = () => {
- if (!blocks.length) {
- return;
- }
- const groupingBlockName = getGroupingBlockName();
-
- // Activate the `transform` on `core/group` which does the conversion.
- const newBlocks = (0,external_wp_blocks_namespaceObject.switchToBlockType)(blocks, groupingBlockName);
- if (!newBlocks) {
- return;
- }
- replaceBlocks(clientIds, newBlocks);
- };
- const onUngroup = () => {
- if (!blocks.length) {
- return;
- }
- const innerBlocks = blocks[0].innerBlocks;
- if (!innerBlocks.length) {
- return;
- }
- replaceBlocks(clientIds, innerBlocks);
- };
- if (!clientIds || clientIds.length < 1) {
- return {
- isLoading: false,
- commands: []
- };
- }
- const rootClientId = getBlockRootClientId(clientIds[0]);
- const canInsertDefaultBlock = canInsertBlockType(getDefaultBlockName(), rootClientId);
- const canDuplicate = blocks.every(block => {
- return !!block && (0,external_wp_blocks_namespaceObject.hasBlockSupport)(block.name, 'multiple', true) && canInsertBlockType(block.name, rootClientId);
- });
- const canRemove = canRemoveBlocks(clientIds, rootClientId);
- const commands = [];
- if (canDuplicate) {
- commands.push({
- name: 'duplicate',
- label: (0,external_wp_i18n_namespaceObject.__)('Duplicate'),
- callback: () => duplicateBlocks(clientIds, true),
- icon: library_copy
- });
- }
- if (canInsertDefaultBlock) {
- commands.push({
- name: 'add-before',
- label: (0,external_wp_i18n_namespaceObject.__)('Add before'),
- callback: () => {
- const clientId = Array.isArray(clientIds) ? clientIds[0] : clientId;
- insertBeforeBlock(clientId);
- },
- icon: library_plus
- }, {
- name: 'add-after',
- label: (0,external_wp_i18n_namespaceObject.__)('Add after'),
- callback: () => {
- const clientId = Array.isArray(clientIds) ? clientIds[clientIds.length - 1] : clientId;
- insertAfterBlock(clientId);
- },
- icon: library_plus
- });
- }
- if (isGroupable) {
- commands.push({
- name: 'Group',
- label: (0,external_wp_i18n_namespaceObject.__)('Group'),
- callback: onGroup,
- icon: library_group
- });
- }
- if (isUngroupable) {
- commands.push({
- name: 'ungroup',
- label: (0,external_wp_i18n_namespaceObject.__)('Ungroup'),
- callback: onUngroup,
- icon: library_ungroup
- });
- }
- if (canRemove) {
- commands.push({
- name: 'remove',
- label: (0,external_wp_i18n_namespaceObject.__)('Delete'),
- callback: () => removeBlocks(clientIds, true),
- icon: library_trash
- });
- }
- return {
- isLoading: false,
- commands: commands.map(command => ({
- ...command,
- name: 'core/block-editor/action-' + command.name,
- callback: ({
- close
- }) => {
- command.callback();
- close();
- }
- }))
- };
-};
-const useBlockCommands = () => {
- (0,external_wp_commands_namespaceObject.useCommandLoader)({
- name: 'core/block-editor/blockTransforms',
- hook: useTransformCommands
- });
- (0,external_wp_commands_namespaceObject.useCommandLoader)({
- name: 'core/block-editor/blockActions',
- hook: useActionsCommands
+ const DatePickerComponent = isCompact ? external_wp_components_namespaceObject.TimePicker : external_wp_components_namespaceObject.DateTimePicker;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ref: ref,
+ className: "block-editor-publish-date-time-picker",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InspectorPopoverHeader, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Publish'),
+ actions: showPopoverHeaderActions ? [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Now'),
+ onClick: () => onChange?.(null)
+ }] : undefined,
+ onClose: onClose
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DatePickerComponent, {
+ ...datePickerProps
+ })]
});
- (0,external_wp_commands_namespaceObject.useCommandLoader)({
- name: 'core/block-editor/blockQuickActions',
- hook: useQuickActionsCommands,
- context: 'block-selection-edit'
+}
+const PrivatePublishDateTimePicker = (0,external_wp_element_namespaceObject.forwardRef)(PublishDateTimePicker);
+function PublicPublishDateTimePicker(props, ref) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivatePublishDateTimePicker, {
+ ...props,
+ showPopoverHeaderActions: true,
+ isCompact: false,
+ ref: ref
});
-};
+}
+/* harmony default export */ const publish_date_time_picker = ((0,external_wp_element_namespaceObject.forwardRef)(PublicPublishDateTimePicker));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/reusable-block-rename-hint.js
-
/**
* WordPress dependencies
*/
@@ -62893,6 +67715,8 @@ const useBlockCommands = () => {
+
+
const reusable_block_rename_hint_PREFERENCE_NAME = 'isResuableBlocksrRenameHintVisible';
/*
* This hook was added in 6.3 to help users with the transition from Reusable blocks to Patterns.
@@ -62923,24 +67747,26 @@ function ReusableBlocksRenameHint() {
if (!isReusableBlocksRenameHint) {
return null;
}
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
ref: ref,
- className: "reusable-blocks-menu-items__rename-hint"
- }, (0,external_React_.createElement)("div", {
- className: "reusable-blocks-menu-items__rename-hint-content"
- }, (0,external_wp_i18n_namespaceObject.__)('Reusable blocks are now synced patterns. A synced pattern will behave in exactly the same way as a reusable block.')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "reusable-blocks-menu-items__rename-hint-dismiss",
- icon: library_close,
- iconSize: "16",
- label: (0,external_wp_i18n_namespaceObject.__)('Dismiss hint'),
- onClick: () => {
- // Retain focus when dismissing the element.
- const previousElement = external_wp_dom_namespaceObject.focus.tabbable.findPrevious(ref.current);
- previousElement?.focus();
- setPreference('core', reusable_block_rename_hint_PREFERENCE_NAME, false);
- },
- showTooltip: false
- }));
+ className: "reusable-blocks-menu-items__rename-hint",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "reusable-blocks-menu-items__rename-hint-content",
+ children: (0,external_wp_i18n_namespaceObject.__)('Reusable blocks are now synced patterns. A synced pattern will behave in exactly the same way as a reusable block.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "reusable-blocks-menu-items__rename-hint-dismiss",
+ icon: library_close,
+ iconSize: "16",
+ label: (0,external_wp_i18n_namespaceObject.__)('Dismiss hint'),
+ onClick: () => {
+ // Retain focus when dismissing the element.
+ const previousElement = external_wp_dom_namespaceObject.focus.tabbable.findPrevious(ref.current);
+ previousElement?.focus();
+ setPreference('core', reusable_block_rename_hint_PREFERENCE_NAME, false);
+ },
+ showTooltip: false
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/index.js
@@ -63059,6 +67885,7 @@ function ReusableBlocksRenameHint() {
+
/*
* State Related Components
*/
@@ -63073,12 +67900,12 @@ function ReusableBlocksRenameHint() {
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/elements/index.js
-const ELEMENT_CLASS_NAMES = {
+const elements_ELEMENT_CLASS_NAMES = {
button: 'wp-element-button',
caption: 'wp-element-caption'
};
const __experimentalGetElementClassName = element => {
- return ELEMENT_CLASS_NAMES[element] ? ELEMENT_CLASS_NAMES[element] : '';
+ return elements_ELEMENT_CLASS_NAMES[element] ? elements_ELEMENT_CLASS_NAMES[element] : '';
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/get-px-from-css-unit.js
@@ -63095,943 +67922,19 @@ const __experimentalGetElementClassName = element => {
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/global-styles/use-global-styles-output.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/global-styles/image-settings-panel.js
/**
* WordPress dependencies
*/
-
-
-
/**
* Internal dependencies
*/
-
-
-
-
-
-
-
-
-
-
-// List of block support features that can have their related styles
-// generated under their own feature level selector rather than the block's.
-const BLOCK_SUPPORT_FEATURE_LEVEL_SELECTORS = {
- __experimentalBorder: 'border',
- color: 'color',
- spacing: 'spacing',
- typography: 'typography'
-};
-function compileStyleValue(uncompiledValue) {
- const VARIABLE_REFERENCE_PREFIX = 'var:';
- const VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE = '|';
- const VARIABLE_PATH_SEPARATOR_TOKEN_STYLE = '--';
- if (uncompiledValue?.startsWith?.(VARIABLE_REFERENCE_PREFIX)) {
- const variable = uncompiledValue.slice(VARIABLE_REFERENCE_PREFIX.length).split(VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE).join(VARIABLE_PATH_SEPARATOR_TOKEN_STYLE);
- return `var(--wp--${variable})`;
- }
- return uncompiledValue;
-}
-
-/**
- * Transform given preset tree into a set of style declarations.
- *
- * @param {Object} blockPresets
- * @param {Object} mergedSettings Merged theme.json settings.
- *
- * @return {Array<Object>} An array of style declarations.
- */
-function getPresetsDeclarations(blockPresets = {}, mergedSettings) {
- const {
- kebabCase
- } = unlock(external_wp_components_namespaceObject.privateApis);
- return PRESET_METADATA.reduce((declarations, {
- path,
- valueKey,
- valueFunc,
- cssVarInfix
- }) => {
- const presetByOrigin = getValueFromObjectPath(blockPresets, path, []);
- ['default', 'theme', 'custom'].forEach(origin => {
- if (presetByOrigin[origin]) {
- presetByOrigin[origin].forEach(value => {
- if (valueKey && !valueFunc) {
- declarations.push(`--wp--preset--${cssVarInfix}--${kebabCase(value.slug)}: ${value[valueKey]}`);
- } else if (valueFunc && typeof valueFunc === 'function') {
- declarations.push(`--wp--preset--${cssVarInfix}--${kebabCase(value.slug)}: ${valueFunc(value, mergedSettings)}`);
- }
- });
- }
- });
- return declarations;
- }, []);
-}
-
-/**
- * Transform given preset tree into a set of preset class declarations.
- *
- * @param {?string} blockSelector
- * @param {Object} blockPresets
- * @return {string} CSS declarations for the preset classes.
- */
-function getPresetsClasses(blockSelector = '*', blockPresets = {}) {
- const {
- kebabCase
- } = unlock(external_wp_components_namespaceObject.privateApis);
- return PRESET_METADATA.reduce((declarations, {
- path,
- cssVarInfix,
- classes
- }) => {
- if (!classes) {
- return declarations;
- }
- const presetByOrigin = getValueFromObjectPath(blockPresets, path, []);
- ['default', 'theme', 'custom'].forEach(origin => {
- if (presetByOrigin[origin]) {
- presetByOrigin[origin].forEach(({
- slug
- }) => {
- classes.forEach(({
- classSuffix,
- propertyName
- }) => {
- const classSelectorToUse = `.has-${kebabCase(slug)}-${classSuffix}`;
- const selectorToUse = blockSelector.split(',') // Selector can be "h1, h2, h3"
- .map(selector => `${selector}${classSelectorToUse}`).join(',');
- const value = `var(--wp--preset--${cssVarInfix}--${kebabCase(slug)})`;
- declarations += `${selectorToUse}{${propertyName}: ${value} !important;}`;
- });
- });
- }
- });
- return declarations;
- }, '');
-}
-function getPresetsSvgFilters(blockPresets = {}) {
- return PRESET_METADATA.filter(
- // Duotone are the only type of filters for now.
- metadata => metadata.path.at(-1) === 'duotone').flatMap(metadata => {
- const presetByOrigin = getValueFromObjectPath(blockPresets, metadata.path, {});
- return ['default', 'theme'].filter(origin => presetByOrigin[origin]).flatMap(origin => presetByOrigin[origin].map(preset => getDuotoneFilter(`wp-duotone-${preset.slug}`, preset.colors))).join('');
- });
-}
-function flattenTree(input = {}, prefix, token) {
- const {
- kebabCase
- } = unlock(external_wp_components_namespaceObject.privateApis);
- let result = [];
- Object.keys(input).forEach(key => {
- const newKey = prefix + kebabCase(key.replace('/', '-'));
- const newLeaf = input[key];
- if (newLeaf instanceof Object) {
- const newPrefix = newKey + token;
- result = [...result, ...flattenTree(newLeaf, newPrefix, token)];
- } else {
- result.push(`${newKey}: ${newLeaf}`);
- }
- });
- return result;
-}
-
-/**
- * Gets variation selector string from feature selector.
- *
- * @param {string} featureSelector The feature selector.
- *
- * @param {string} styleVariationSelector The style variation selector.
- * @return {string} Combined selector string.
- */
-function concatFeatureVariationSelectorString(featureSelector, styleVariationSelector) {
- const featureSelectors = featureSelector.split(',');
- const combinedSelectors = [];
- featureSelectors.forEach(selector => {
- combinedSelectors.push(`${styleVariationSelector.trim()}${selector.trim()}`);
- });
- return combinedSelectors.join(', ');
-}
-
-/**
- * Generate style declarations for a block's custom feature and subfeature
- * selectors.
- *
- * NOTE: The passed `styles` object will be mutated by this function.
- *
- * @param {Object} selectors Custom selectors object for a block.
- * @param {Object} styles A block's styles object.
- *
- * @return {Object} Style declarations.
- */
-const getFeatureDeclarations = (selectors, styles) => {
- const declarations = {};
- Object.entries(selectors).forEach(([feature, selector]) => {
- // We're only processing features/subfeatures that have styles.
- if (feature === 'root' || !styles?.[feature]) {
- return;
- }
- const isShorthand = typeof selector === 'string';
-
- // If we have a selector object instead of shorthand process it.
- if (!isShorthand) {
- Object.entries(selector).forEach(([subfeature, subfeatureSelector]) => {
- // Don't process root feature selector yet or any
- // subfeature that doesn't have a style.
- if (subfeature === 'root' || !styles?.[feature][subfeature]) {
- return;
- }
-
- // Create a temporary styles object and build
- // declarations for subfeature.
- const subfeatureStyles = {
- [feature]: {
- [subfeature]: styles[feature][subfeature]
- }
- };
- const newDeclarations = getStylesDeclarations(subfeatureStyles);
-
- // Merge new declarations in with any others that
- // share the same selector.
- declarations[subfeatureSelector] = [...(declarations[subfeatureSelector] || []), ...newDeclarations];
-
- // Remove the subfeature's style now it will be
- // included under its own selector not the block's.
- delete styles[feature][subfeature];
- });
- }
-
- // Now subfeatures have been processed and removed, we can
- // process root, or shorthand, feature selectors.
- if (isShorthand || selector.root) {
- const featureSelector = isShorthand ? selector : selector.root;
-
- // Create temporary style object and build declarations for feature.
- const featureStyles = {
- [feature]: styles[feature]
- };
- const newDeclarations = getStylesDeclarations(featureStyles);
-
- // Merge new declarations with any others that share the selector.
- declarations[featureSelector] = [...(declarations[featureSelector] || []), ...newDeclarations];
-
- // Remove the feature from the block's styles now as it will be
- // included under its own selector not the block's.
- delete styles[feature];
- }
- });
- return declarations;
-};
-
-/**
- * Transform given style tree into a set of style declarations.
- *
- * @param {Object} blockStyles Block styles.
- *
- * @param {string} selector The selector these declarations should attach to.
- *
- * @param {boolean} useRootPaddingAlign Whether to use CSS custom properties in root selector.
- *
- * @param {Object} tree A theme.json tree containing layout definitions.
- *
- * @param {boolean} isTemplate Whether the entity being edited is a full template or a pattern.
- * @return {Array} An array of style declarations.
- */
-function getStylesDeclarations(blockStyles = {}, selector = '', useRootPaddingAlign, tree = {}, isTemplate = true) {
- const {
- kebabCase
- } = unlock(external_wp_components_namespaceObject.privateApis);
- const isRoot = ROOT_BLOCK_SELECTOR === selector;
- const output = Object.entries(external_wp_blocks_namespaceObject.__EXPERIMENTAL_STYLE_PROPERTY).reduce((declarations, [key, {
- value,
- properties,
- useEngine,
- rootOnly
- }]) => {
- if (rootOnly && !isRoot) {
- return declarations;
- }
- const pathToValue = value;
- if (pathToValue[0] === 'elements' || useEngine) {
- return declarations;
- }
- const styleValue = getValueFromObjectPath(blockStyles, pathToValue);
-
- // Root-level padding styles don't currently support strings with CSS shorthand values.
- // This may change: https://github.com/WordPress/gutenberg/issues/40132.
- if (key === '--wp--style--root--padding' && (typeof styleValue === 'string' || !useRootPaddingAlign)) {
- return declarations;
- }
- if (properties && typeof styleValue !== 'string') {
- Object.entries(properties).forEach(entry => {
- const [name, prop] = entry;
- if (!getValueFromObjectPath(styleValue, [prop], false)) {
- // Do not create a declaration
- // for sub-properties that don't have any value.
- return;
- }
- const cssProperty = name.startsWith('--') ? name : kebabCase(name);
- declarations.push(`${cssProperty}: ${compileStyleValue(getValueFromObjectPath(styleValue, [prop]))}`);
- });
- } else if (getValueFromObjectPath(blockStyles, pathToValue, false)) {
- const cssProperty = key.startsWith('--') ? key : kebabCase(key);
- declarations.push(`${cssProperty}: ${compileStyleValue(getValueFromObjectPath(blockStyles, pathToValue))}`);
- }
- return declarations;
- }, []);
-
- // The goal is to move everything to server side generated engine styles
- // This is temporary as we absorb more and more styles into the engine.
- const extraRules = (0,external_wp_styleEngine_namespaceObject.getCSSRules)(blockStyles);
- extraRules.forEach(rule => {
- // Don't output padding properties if padding variables are set or if we're not editing a full template.
- if (isRoot && (useRootPaddingAlign || !isTemplate) && rule.key.startsWith('padding')) {
- return;
- }
- const cssProperty = rule.key.startsWith('--') ? rule.key : kebabCase(rule.key);
- let ruleValue = rule.value;
- if (typeof ruleValue !== 'string' && ruleValue?.ref) {
- const refPath = ruleValue.ref.split('.');
- ruleValue = getValueFromObjectPath(tree, refPath);
- // Presence of another ref indicates a reference to another dynamic value.
- // Pointing to another dynamic value is not supported.
- if (!ruleValue || ruleValue?.ref) {
- return;
- }
- }
-
- // Calculate fluid typography rules where available.
- if (cssProperty === 'font-size') {
- /*
- * getTypographyFontSizeValue() will check
- * if fluid typography has been activated and also
- * whether the incoming value can be converted to a fluid value.
- * Values that already have a "clamp()" function will not pass the test,
- * and therefore the original $value will be returned.
- */
- ruleValue = getTypographyFontSizeValue({
- size: ruleValue
- }, getFluidTypographyOptionsFromSettings(tree?.settings));
- }
-
- // For aspect ratio to work, other dimensions rules (and Cover block defaults) must be unset.
- // This ensures that a fixed height does not override the aspect ratio.
- if (cssProperty === 'aspect-ratio') {
- output.push('min-height: unset');
- }
- output.push(`${cssProperty}: ${ruleValue}`);
- });
- return output;
-}
-
-/**
- * Get generated CSS for layout styles by looking up layout definitions provided
- * in theme.json, and outputting common layout styles, and specific blockGap values.
- *
- * @param {Object} props
- * @param {Object} props.layoutDefinitions Layout definitions, keyed by layout type.
- * @param {Object} props.style A style object containing spacing values.
- * @param {string} props.selector Selector used to group together layout styling rules.
- * @param {boolean} props.hasBlockGapSupport Whether or not the theme opts-in to blockGap support.
- * @param {boolean} props.hasFallbackGapSupport Whether or not the theme allows fallback gap styles.
- * @param {?string} props.fallbackGapValue An optional fallback gap value if no real gap value is available.
- * @return {string} Generated CSS rules for the layout styles.
- */
-function getLayoutStyles({
- layoutDefinitions = LAYOUT_DEFINITIONS,
- style,
- selector,
- hasBlockGapSupport,
- hasFallbackGapSupport,
- fallbackGapValue
-}) {
- let ruleset = '';
- let gapValue = hasBlockGapSupport ? getGapCSSValue(style?.spacing?.blockGap) : '';
-
- // Ensure a fallback gap value for the root layout definitions,
- // and use a fallback value if one is provided for the current block.
- if (hasFallbackGapSupport) {
- if (selector === ROOT_BLOCK_SELECTOR) {
- gapValue = !gapValue ? '0.5em' : gapValue;
- } else if (!hasBlockGapSupport && fallbackGapValue) {
- gapValue = fallbackGapValue;
- }
- }
- if (gapValue && layoutDefinitions) {
- Object.values(layoutDefinitions).forEach(({
- className,
- name,
- spacingStyles
- }) => {
- // Allow outputting fallback gap styles for flex layout type when block gap support isn't available.
- if (!hasBlockGapSupport && 'flex' !== name && 'grid' !== name) {
- return;
- }
- if (spacingStyles?.length) {
- spacingStyles.forEach(spacingStyle => {
- const declarations = [];
- if (spacingStyle.rules) {
- Object.entries(spacingStyle.rules).forEach(([cssProperty, cssValue]) => {
- declarations.push(`${cssProperty}: ${cssValue ? cssValue : gapValue}`);
- });
- }
- if (declarations.length) {
- let combinedSelector = '';
- if (!hasBlockGapSupport) {
- // For fallback gap styles, use lower specificity, to ensure styles do not unintentionally override theme styles.
- combinedSelector = selector === ROOT_BLOCK_SELECTOR ? `:where(.${className}${spacingStyle?.selector || ''})` : `:where(${selector}.${className}${spacingStyle?.selector || ''})`;
- } else {
- combinedSelector = selector === ROOT_BLOCK_SELECTOR ? `:where(${selector} .${className})${spacingStyle?.selector || ''}` : `${selector}-${className}${spacingStyle?.selector || ''}`;
- }
- ruleset += `${combinedSelector} { ${declarations.join('; ')}; }`;
- }
- });
- }
- });
- // For backwards compatibility, ensure the legacy block gap CSS variable is still available.
- if (selector === ROOT_BLOCK_SELECTOR && hasBlockGapSupport) {
- ruleset += `${selector} { --wp--style--block-gap: ${gapValue}; }`;
- }
- }
-
- // Output base styles
- if (selector === ROOT_BLOCK_SELECTOR && layoutDefinitions) {
- const validDisplayModes = ['block', 'flex', 'grid'];
- Object.values(layoutDefinitions).forEach(({
- className,
- displayMode,
- baseStyles
- }) => {
- if (displayMode && validDisplayModes.includes(displayMode)) {
- ruleset += `${selector} .${className} { display:${displayMode}; }`;
- }
- if (baseStyles?.length) {
- baseStyles.forEach(baseStyle => {
- const declarations = [];
- if (baseStyle.rules) {
- Object.entries(baseStyle.rules).forEach(([cssProperty, cssValue]) => {
- declarations.push(`${cssProperty}: ${cssValue}`);
- });
- }
- if (declarations.length) {
- const combinedSelector = `${selector} .${className}${baseStyle?.selector || ''}`;
- ruleset += `${combinedSelector} { ${declarations.join('; ')}; }`;
- }
- });
- }
- });
- }
- return ruleset;
-}
-const STYLE_KEYS = ['border', 'color', 'dimensions', 'spacing', 'typography', 'filter', 'outline', 'shadow'];
-function pickStyleKeys(treeToPickFrom) {
- if (!treeToPickFrom) {
- return {};
- }
- const entries = Object.entries(treeToPickFrom);
- const pickedEntries = entries.filter(([key]) => STYLE_KEYS.includes(key));
- // clone the style objects so that `getFeatureDeclarations` can remove consumed keys from it
- const clonedEntries = pickedEntries.map(([key, style]) => [key, JSON.parse(JSON.stringify(style))]);
- return Object.fromEntries(clonedEntries);
-}
-const getNodesWithStyles = (tree, blockSelectors) => {
- var _tree$styles$blocks;
- const nodes = [];
- if (!tree?.styles) {
- return nodes;
- }
-
- // Top-level.
- const styles = pickStyleKeys(tree.styles);
- if (styles) {
- nodes.push({
- styles,
- selector: ROOT_BLOCK_SELECTOR
- });
- }
- Object.entries(external_wp_blocks_namespaceObject.__EXPERIMENTAL_ELEMENTS).forEach(([name, selector]) => {
- if (tree.styles?.elements?.[name]) {
- nodes.push({
- styles: tree.styles?.elements?.[name],
- selector
- });
- }
- });
-
- // Iterate over blocks: they can have styles & elements.
- Object.entries((_tree$styles$blocks = tree.styles?.blocks) !== null && _tree$styles$blocks !== void 0 ? _tree$styles$blocks : {}).forEach(([blockName, node]) => {
- var _node$elements;
- const blockStyles = pickStyleKeys(node);
- if (node?.variations) {
- const variations = {};
- Object.keys(node.variations).forEach(variation => {
- variations[variation] = pickStyleKeys(node.variations[variation]);
- });
- blockStyles.variations = variations;
- }
- if (blockStyles && blockSelectors?.[blockName]?.selector) {
- nodes.push({
- duotoneSelector: blockSelectors[blockName].duotoneSelector,
- fallbackGapValue: blockSelectors[blockName].fallbackGapValue,
- hasLayoutSupport: blockSelectors[blockName].hasLayoutSupport,
- selector: blockSelectors[blockName].selector,
- styles: blockStyles,
- featureSelectors: blockSelectors[blockName].featureSelectors,
- styleVariationSelectors: blockSelectors[blockName].styleVariationSelectors
- });
- }
- Object.entries((_node$elements = node?.elements) !== null && _node$elements !== void 0 ? _node$elements : {}).forEach(([elementName, value]) => {
- if (value && blockSelectors?.[blockName] && external_wp_blocks_namespaceObject.__EXPERIMENTAL_ELEMENTS[elementName]) {
- nodes.push({
- styles: value,
- selector: blockSelectors[blockName]?.selector.split(',').map(sel => {
- const elementSelectors = external_wp_blocks_namespaceObject.__EXPERIMENTAL_ELEMENTS[elementName].split(',');
- return elementSelectors.map(elementSelector => sel + ' ' + elementSelector);
- }).join(',')
- });
- }
- });
- });
- return nodes;
-};
-const getNodesWithSettings = (tree, blockSelectors) => {
- var _tree$settings$blocks;
- const nodes = [];
- if (!tree?.settings) {
- return nodes;
- }
- const pickPresets = treeToPickFrom => {
- let presets = {};
- PRESET_METADATA.forEach(({
- path
- }) => {
- const value = getValueFromObjectPath(treeToPickFrom, path, false);
- if (value !== false) {
- presets = setImmutably(presets, path, value);
- }
- });
- return presets;
- };
-
- // Top-level.
- const presets = pickPresets(tree.settings);
- const custom = tree.settings?.custom;
- if (Object.keys(presets).length > 0 || custom) {
- nodes.push({
- presets,
- custom,
- selector: ROOT_BLOCK_SELECTOR
- });
- }
-
- // Blocks.
- Object.entries((_tree$settings$blocks = tree.settings?.blocks) !== null && _tree$settings$blocks !== void 0 ? _tree$settings$blocks : {}).forEach(([blockName, node]) => {
- const blockPresets = pickPresets(node);
- const blockCustom = node.custom;
- if (Object.keys(blockPresets).length > 0 || blockCustom) {
- nodes.push({
- presets: blockPresets,
- custom: blockCustom,
- selector: blockSelectors[blockName]?.selector
- });
- }
- });
- return nodes;
-};
-const toCustomProperties = (tree, blockSelectors) => {
- const settings = getNodesWithSettings(tree, blockSelectors);
- let ruleset = '';
- settings.forEach(({
- presets,
- custom,
- selector
- }) => {
- const declarations = getPresetsDeclarations(presets, tree?.settings);
- const customProps = flattenTree(custom, '--wp--custom--', '--');
- if (customProps.length > 0) {
- declarations.push(...customProps);
- }
- if (declarations.length > 0) {
- ruleset += `${selector}{${declarations.join(';')};}`;
- }
- });
- return ruleset;
-};
-const toStyles = (tree, blockSelectors, hasBlockGapSupport, hasFallbackGapSupport, disableLayoutStyles = false, isTemplate = true) => {
- const nodesWithStyles = getNodesWithStyles(tree, blockSelectors);
- const nodesWithSettings = getNodesWithSettings(tree, blockSelectors);
- const useRootPaddingAlign = tree?.settings?.useRootPaddingAwareAlignments;
- const {
- contentSize,
- wideSize
- } = tree?.settings?.layout || {};
-
- /*
- * Reset default browser margin on the root body element.
- * This is set on the root selector **before** generating the ruleset
- * from the `theme.json`. This is to ensure that if the `theme.json` declares
- * `margin` in its `spacing` declaration for the `body` element then these
- * user-generated values take precedence in the CSS cascade.
- * @link https://github.com/WordPress/gutenberg/issues/36147.
- */
- let ruleset = 'body {margin: 0;';
- if (contentSize) {
- ruleset += ` --wp--style--global--content-size: ${contentSize};`;
- }
- if (wideSize) {
- ruleset += ` --wp--style--global--wide-size: ${wideSize};`;
- }
-
- // Root padding styles should only be output for full templates, not patterns or template parts.
- if (useRootPaddingAlign && isTemplate) {
- /*
- * These rules reproduce the ones from https://github.com/WordPress/gutenberg/blob/79103f124925d1f457f627e154f52a56228ed5ad/lib/class-wp-theme-json-gutenberg.php#L2508
- * almost exactly, but for the selectors that target block wrappers in the front end. This code only runs in the editor, so it doesn't need those selectors.
- */
- ruleset += `padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) }
- .has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }
- .has-global-padding :where(.has-global-padding:not(.wp-block-block)) { padding-right: 0; padding-left: 0; }
- .has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }
- .has-global-padding :where(.has-global-padding:not(.wp-block-block)) > .alignfull { margin-right: 0; margin-left: 0; }
- .has-global-padding > .alignfull:where(:not(.has-global-padding):not(.is-layout-flex):not(.is-layout-grid)) > :where(.wp-block:not(.alignfull),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }
- .has-global-padding :where(.has-global-padding) > .alignfull:where(:not(.has-global-padding)) > :where(.wp-block:not(.alignfull),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: 0; padding-left: 0;`;
- }
- ruleset += '}';
- nodesWithStyles.forEach(({
- selector,
- duotoneSelector,
- styles,
- fallbackGapValue,
- hasLayoutSupport,
- featureSelectors,
- styleVariationSelectors
- }) => {
- // Process styles for block support features with custom feature level
- // CSS selectors set.
- if (featureSelectors) {
- const featureDeclarations = getFeatureDeclarations(featureSelectors, styles);
- Object.entries(featureDeclarations).forEach(([cssSelector, declarations]) => {
- if (declarations.length) {
- const rules = declarations.join(';');
- ruleset += `${cssSelector}{${rules};}`;
- }
- });
- }
- if (styleVariationSelectors) {
- Object.entries(styleVariationSelectors).forEach(([styleVariationName, styleVariationSelector]) => {
- const styleVariations = styles?.variations?.[styleVariationName];
- if (styleVariations) {
- // If the block uses any custom selectors for block support, add those first.
- if (featureSelectors) {
- const featureDeclarations = getFeatureDeclarations(featureSelectors, styleVariations);
- Object.entries(featureDeclarations).forEach(([baseSelector, declarations]) => {
- if (declarations.length) {
- const cssSelector = concatFeatureVariationSelectorString(baseSelector, styleVariationSelector);
- const rules = declarations.join(';');
- ruleset += `${cssSelector}{${rules};}`;
- }
- });
- }
-
- // Otherwise add regular selectors.
- const styleVariationDeclarations = getStylesDeclarations(styleVariations, styleVariationSelector, useRootPaddingAlign, tree);
- if (styleVariationDeclarations.length) {
- ruleset += `${styleVariationSelector}{${styleVariationDeclarations.join(';')};}`;
- }
- }
- });
- }
-
- // Process duotone styles.
- if (duotoneSelector) {
- const duotoneStyles = {};
- if (styles?.filter) {
- duotoneStyles.filter = styles.filter;
- delete styles.filter;
- }
- const duotoneDeclarations = getStylesDeclarations(duotoneStyles);
- if (duotoneDeclarations.length) {
- ruleset += `${duotoneSelector}{${duotoneDeclarations.join(';')};}`;
- }
- }
-
- // Process blockGap and layout styles.
- if (!disableLayoutStyles && (ROOT_BLOCK_SELECTOR === selector || hasLayoutSupport)) {
- ruleset += getLayoutStyles({
- style: styles,
- selector,
- hasBlockGapSupport,
- hasFallbackGapSupport,
- fallbackGapValue
- });
- }
-
- // Process the remaining block styles (they use either normal block class or __experimentalSelector).
- const declarations = getStylesDeclarations(styles, selector, useRootPaddingAlign, tree, isTemplate);
- if (declarations?.length) {
- ruleset += `${selector}{${declarations.join(';')};}`;
- }
-
- // Check for pseudo selector in `styles` and handle separately.
- const pseudoSelectorStyles = Object.entries(styles).filter(([key]) => key.startsWith(':'));
- if (pseudoSelectorStyles?.length) {
- pseudoSelectorStyles.forEach(([pseudoKey, pseudoStyle]) => {
- const pseudoDeclarations = getStylesDeclarations(pseudoStyle);
- if (!pseudoDeclarations?.length) {
- return;
- }
-
- // `selector` maybe provided in a form
- // where block level selectors have sub element
- // selectors appended to them as a comma separated
- // string.
- // e.g. `h1 a,h2 a,h3 a,h4 a,h5 a,h6 a`;
- // Split and append pseudo selector to create
- // the proper rules to target the elements.
- const _selector = selector.split(',').map(sel => sel + pseudoKey).join(',');
- const pseudoRule = `${_selector}{${pseudoDeclarations.join(';')};}`;
- ruleset += pseudoRule;
- });
- }
- });
-
- /* Add alignment / layout styles */
- ruleset = ruleset + '.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }';
- ruleset = ruleset + '.wp-site-blocks > .alignright { float: right; margin-left: 2em; }';
- ruleset = ruleset + '.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }';
- if (hasBlockGapSupport) {
- // Use fallback of `0.5em` just in case, however if there is blockGap support, there should nearly always be a real value.
- const gapValue = getGapCSSValue(tree?.styles?.spacing?.blockGap) || '0.5em';
- ruleset = ruleset + `:where(.wp-site-blocks) > * { margin-block-start: ${gapValue}; margin-block-end: 0; }`;
- ruleset = ruleset + ':where(.wp-site-blocks) > :first-child:first-child { margin-block-start: 0; }';
- ruleset = ruleset + ':where(.wp-site-blocks) > :last-child:last-child { margin-block-end: 0; }';
- }
- nodesWithSettings.forEach(({
- selector,
- presets
- }) => {
- if (ROOT_BLOCK_SELECTOR === selector) {
- // Do not add extra specificity for top-level classes.
- selector = '';
- }
- const classes = getPresetsClasses(selector, presets);
- if (classes.length > 0) {
- ruleset += classes;
- }
- });
- return ruleset;
-};
-function toSvgFilters(tree, blockSelectors) {
- const nodesWithSettings = getNodesWithSettings(tree, blockSelectors);
- return nodesWithSettings.flatMap(({
- presets
- }) => {
- return getPresetsSvgFilters(presets);
- });
-}
-const getSelectorsConfig = (blockType, rootSelector) => {
- if (blockType?.selectors && Object.keys(blockType.selectors).length > 0) {
- return blockType.selectors;
- }
- const config = {
- root: rootSelector
- };
- Object.entries(BLOCK_SUPPORT_FEATURE_LEVEL_SELECTORS).forEach(([featureKey, featureName]) => {
- const featureSelector = getBlockCSSSelector(blockType, featureKey);
- if (featureSelector) {
- config[featureName] = featureSelector;
- }
- });
- return config;
-};
-const getBlockSelectors = (blockTypes, getBlockStyles) => {
- const result = {};
- blockTypes.forEach(blockType => {
- const name = blockType.name;
- const selector = getBlockCSSSelector(blockType);
- let duotoneSelector = getBlockCSSSelector(blockType, 'filter.duotone');
-
- // Keep backwards compatibility for support.color.__experimentalDuotone.
- if (!duotoneSelector) {
- const rootSelector = getBlockCSSSelector(blockType);
- const duotoneSupport = (0,external_wp_blocks_namespaceObject.getBlockSupport)(blockType, 'color.__experimentalDuotone', false);
- duotoneSelector = duotoneSupport && scopeSelector(rootSelector, duotoneSupport);
- }
- const hasLayoutSupport = !!blockType?.supports?.layout || !!blockType?.supports?.__experimentalLayout;
- const fallbackGapValue = blockType?.supports?.spacing?.blockGap?.__experimentalDefault;
- const blockStyleVariations = getBlockStyles(name);
- const styleVariationSelectors = {};
- if (blockStyleVariations?.length) {
- blockStyleVariations.forEach(variation => {
- const styleVariationSelector = getBlockStyleVariationSelector(variation.name, selector);
- styleVariationSelectors[variation.name] = styleVariationSelector;
- });
- }
- // For each block support feature add any custom selectors.
- const featureSelectors = getSelectorsConfig(blockType, selector);
- result[name] = {
- duotoneSelector,
- fallbackGapValue,
- featureSelectors: Object.keys(featureSelectors).length ? featureSelectors : undefined,
- hasLayoutSupport,
- name,
- selector,
- styleVariationSelectors: Object.keys(styleVariationSelectors).length ? styleVariationSelectors : undefined
- };
- });
- return result;
-};
-
-/**
- * If there is a separator block whose color is defined in theme.json via background,
- * update the separator color to the same value by using border color.
- *
- * @param {Object} config Theme.json configuration file object.
- * @return {Object} configTheme.json configuration file object updated.
- */
-function updateConfigWithSeparator(config) {
- const needsSeparatorStyleUpdate = config.styles?.blocks?.['core/separator'] && config.styles?.blocks?.['core/separator'].color?.background && !config.styles?.blocks?.['core/separator'].color?.text && !config.styles?.blocks?.['core/separator'].border?.color;
- if (needsSeparatorStyleUpdate) {
- return {
- ...config,
- styles: {
- ...config.styles,
- blocks: {
- ...config.styles.blocks,
- 'core/separator': {
- ...config.styles.blocks['core/separator'],
- color: {
- ...config.styles.blocks['core/separator'].color,
- text: config.styles?.blocks['core/separator'].color.background
- }
- }
- }
- }
- };
- }
- return config;
-}
-function processCSSNesting(css, blockSelector) {
- let processedCSS = '';
-
- // Split CSS nested rules.
- const parts = css.split('&');
- parts.forEach(part => {
- const isRootCss = !part.includes('{');
- if (isRootCss) {
- // If the part doesn't contain braces, it applies to the root level.
- processedCSS += `${blockSelector}{${part.trim()}}`;
- } else {
- // If the part contains braces, it's a nested CSS rule.
- const splittedPart = part.replace('}', '').split('{');
- if (splittedPart.length !== 2) {
- return;
- }
- const [nestedSelector, cssValue] = splittedPart;
- const combinedSelector = nestedSelector.startsWith(' ') ? scopeSelector(blockSelector, nestedSelector) : appendToSelector(blockSelector, nestedSelector);
- processedCSS += `${combinedSelector}{${cssValue.trim()}}`;
- }
- });
- return processedCSS;
-}
-
-/**
- * Returns the global styles output using a global styles configuration.
- * If wishing to generate global styles and settings based on the
- * global styles config loaded in the editor context, use `useGlobalStylesOutput()`.
- * The use case for a custom config is to generate bespoke styles
- * and settings for previews, or other out-of-editor experiences.
- *
- * @param {Object} mergedConfig Global styles configuration.
- * @return {Array} Array of stylesheets and settings.
- */
-function useGlobalStylesOutputWithConfig(mergedConfig = {}) {
- const [blockGap] = useGlobalSetting('spacing.blockGap');
- const hasBlockGapSupport = blockGap !== null;
- const hasFallbackGapSupport = !hasBlockGapSupport; // This setting isn't useful yet: it exists as a placeholder for a future explicit fallback styles support.
- const disableLayoutStyles = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getSettings
- } = select(store);
- return !!getSettings().disableLayoutStyles;
- });
- const blockContext = (0,external_wp_element_namespaceObject.useContext)(block_context);
- const isTemplate = blockContext?.templateSlug !== undefined;
- const {
- getBlockStyles
- } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blocks_namespaceObject.store);
- return (0,external_wp_element_namespaceObject.useMemo)(() => {
- var _updatedConfig$styles;
- if (!mergedConfig?.styles || !mergedConfig?.settings) {
- return [];
- }
- const updatedConfig = updateConfigWithSeparator(mergedConfig);
- const blockSelectors = getBlockSelectors((0,external_wp_blocks_namespaceObject.getBlockTypes)(), getBlockStyles);
- const customProperties = toCustomProperties(updatedConfig, blockSelectors);
- const globalStyles = toStyles(updatedConfig, blockSelectors, hasBlockGapSupport, hasFallbackGapSupport, disableLayoutStyles, isTemplate);
- const svgs = toSvgFilters(updatedConfig, blockSelectors);
- const styles = [{
- css: customProperties,
- isGlobalStyles: true
- }, {
- css: globalStyles,
- isGlobalStyles: true
- },
- // Load custom CSS in own stylesheet so that any invalid CSS entered in the input won't break all the global styles in the editor.
- {
- css: (_updatedConfig$styles = updatedConfig.styles.css) !== null && _updatedConfig$styles !== void 0 ? _updatedConfig$styles : '',
- isGlobalStyles: true
- }, {
- assets: svgs,
- __unstableType: 'svg',
- isGlobalStyles: true
- }];
-
- // Loop through the blocks to check if there are custom CSS values.
- // If there are, get the block selector and push the selector together with
- // the CSS value to the 'stylesheets' array.
- (0,external_wp_blocks_namespaceObject.getBlockTypes)().forEach(blockType => {
- if (updatedConfig.styles.blocks[blockType.name]?.css) {
- const selector = blockSelectors[blockType.name].selector;
- styles.push({
- css: processCSSNesting(updatedConfig.styles.blocks[blockType.name]?.css, selector),
- isGlobalStyles: true
- });
- }
- });
- return [styles, updatedConfig.settings];
- }, [hasBlockGapSupport, hasFallbackGapSupport, mergedConfig, disableLayoutStyles, isTemplate, getBlockStyles]);
-}
-
-/**
- * Returns the global styles output based on the current state of global styles config loaded in the editor context.
- *
- * @return {Array} Array of stylesheets and settings.
- */
-function useGlobalStylesOutput() {
- const {
- merged: mergedConfig
- } = (0,external_wp_element_namespaceObject.useContext)(GlobalStylesContext);
- return useGlobalStylesOutputWithConfig(mergedConfig);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/global-styles/image-settings-panel.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
function useHasImageSettingsPanel(name, value, inheritedValue) {
// Note: If lightbox `value` exists, that means it was
// defined via the the Global Styles UI and will NOT
@@ -64045,6 +67948,7 @@ function ImageSettingsPanel({
inheritedValue,
panelId
}) {
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
const resetLightbox = () => {
onChange(undefined);
};
@@ -64057,31 +67961,34 @@ function ImageSettingsPanel({
if (inheritedValue?.lightbox?.enabled) {
lightboxChecked = inheritedValue.lightbox.enabled;
}
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
- label: (0,external_wp_i18n_namespaceObject._x)('Settings', 'Image settings'),
- resetAll: resetLightbox,
- panelId: panelId,
- dropdownMenuProps: TOOLSPANEL_DROPDOWNMENU_PROPS
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem
- // We use the `userSettings` prop instead of `settings`, because `settings`
- // contains the core/theme values for the lightbox and we want to show the
- // "RESET" button ONLY when the user has explicitly set a value in the
- // Global Styles.
- , {
- hasValue: () => !!value?.lightbox,
- label: (0,external_wp_i18n_namespaceObject.__)('Expand on click'),
- onDeselect: resetLightbox,
- isShownByDefault: true,
- panelId: panelId
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Expand on click'),
- checked: lightboxChecked,
- onChange: onChangeLightbox
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
+ label: (0,external_wp_i18n_namespaceObject._x)('Settings', 'Image settings'),
+ resetAll: resetLightbox,
+ panelId: panelId,
+ dropdownMenuProps: dropdownMenuProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem
+ // We use the `userSettings` prop instead of `settings`, because `settings`
+ // contains the core/theme values for the lightbox and we want to show the
+ // "RESET" button ONLY when the user has explicitly set a value in the
+ // Global Styles.
+ , {
+ hasValue: () => !!value?.lightbox,
+ label: (0,external_wp_i18n_namespaceObject.__)('Expand on click'),
+ onDeselect: resetLightbox,
+ isShownByDefault: true,
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Expand on click'),
+ checked: lightboxChecked,
+ onChange: onChangeLightbox
+ })
+ })
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/global-styles/advanced-panel.js
-
/**
* WordPress dependencies
*/
@@ -64093,6 +68000,8 @@ function ImageSettingsPanel({
* Internal dependencies
*/
+
+
function AdvancedPanel({
value,
onChange,
@@ -64107,9 +68016,12 @@ function AdvancedPanel({
css: newValue
});
if (cssError) {
+ // Check if the new value is valid CSS, and pass a wrapping selector
+ // to ensure that `transformStyles` validates the CSS. Note that the
+ // wrapping selector here is not used in the actual output of any styles.
const [transformed] = transform_styles([{
css: newValue
- }], '.editor-styles-wrapper');
+ }], '.for-validation-only');
if (transformed) {
setCSSError(null);
}
@@ -64120,25 +68032,31 @@ function AdvancedPanel({
setCSSError(null);
return;
}
+
+ // Check if the new value is valid CSS, and pass a wrapping selector
+ // to ensure that `transformStyles` validates the CSS. Note that the
+ // wrapping selector here is not used in the actual output of any styles.
const [transformed] = transform_styles([{
css: event.target.value
- }], '.editor-styles-wrapper');
+ }], '.for-validation-only');
setCSSError(transformed === null ? (0,external_wp_i18n_namespaceObject.__)('There is an error with your CSS structure.') : null);
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 3
- }, cssError && (0,external_React_.createElement)(external_wp_components_namespaceObject.Notice, {
- status: "error",
- onRemove: () => setCSSError(null)
- }, cssError), (0,external_React_.createElement)(external_wp_components_namespaceObject.TextareaControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Additional CSS'),
- __nextHasNoMarginBottom: true,
- value: customCSS,
- onChange: newValue => handleOnChange(newValue),
- onBlur: handleOnBlur,
- className: "block-editor-global-styles-advanced-panel__custom-css-input",
- spellCheck: false
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 3,
+ children: [cssError && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
+ status: "error",
+ onRemove: () => setCSSError(null),
+ children: cssError
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextareaControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Additional CSS'),
+ __nextHasNoMarginBottom: true,
+ value: customCSS,
+ onChange: newValue => handleOnChange(newValue),
+ onBlur: handleOnBlur,
+ className: "block-editor-global-styles-advanced-panel__custom-css-input",
+ spellCheck: false
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/memize/dist/index.js
@@ -64331,6 +68249,7 @@ const translationMap = {
'settings.typography': (0,external_wp_i18n_namespaceObject.__)('Typography'),
'styles.color': (0,external_wp_i18n_namespaceObject.__)('Colors'),
'styles.spacing': (0,external_wp_i18n_namespaceObject.__)('Spacing'),
+ 'styles.background': (0,external_wp_i18n_namespaceObject.__)('Background'),
'styles.typography': (0,external_wp_i18n_namespaceObject.__)('Typography')
};
const getBlockNames = memize(() => (0,external_wp_blocks_namespaceObject.getBlockTypes)().reduce((accumulator, {
@@ -64418,6 +68337,7 @@ function getGlobalStylesChangelist(next, previous) {
*/
const changedValueTree = deepCompare({
styles: {
+ background: next?.styles?.background,
color: next?.styles?.color,
typography: next?.styles?.typography,
spacing: next?.styles?.spacing
@@ -64427,6 +68347,7 @@ function getGlobalStylesChangelist(next, previous) {
settings: next?.settings
}, {
styles: {
+ background: previous?.styles?.background,
color: previous?.styles?.color,
typography: previous?.styles?.typography,
spacing: previous?.styles?.spacing
@@ -64537,8 +68458,8 @@ function getGlobalStylesChanges(next, previous, options = {}) {
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/get-rich-text-values.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/get-rich-text-values.js
/**
* WordPress dependencies
*/
@@ -64557,6 +68478,7 @@ function getGlobalStylesChanges(next, previous, options = {}) {
* except that it does not render the elements to a string, but instead collects
* the values of all rich text `Content` elements.
*/
+
function addValuesForElement(element, values, innerBlocks) {
if (null === element || undefined === element || false === element) {
return;
@@ -64610,10 +68532,11 @@ function addValuesForBlocks(values, blocks) {
innerBlocks
} = blocks[i];
const saveElement = (0,external_wp_blocks_namespaceObject.getSaveElement)(name, attributes,
+ /*#__PURE__*/
// Instead of letting save elements use `useInnerBlocksProps.save`,
// force them to use InnerBlocks.Content instead so we can intercept
// a single component.
- (0,external_React_.createElement)(inner_blocks.Content, null));
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)(inner_blocks.Content, {}));
addValuesForElement(saveElement, values, innerBlocks);
}
}
@@ -64626,7 +68549,6 @@ function getRichTextValues(blocks = []) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/resizable-box-popover/index.js
-
/**
* WordPress dependencies
*/
@@ -64636,65 +68558,23 @@ function getRichTextValues(blocks = []) {
* Internal dependencies
*/
+
function ResizableBoxPopover({
clientId,
resizableBoxProps,
...props
}) {
- return (0,external_React_.createElement)(block_popover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(cover, {
clientId: clientId,
- __unstableCoverTarget: true,
- __unstablePopoverSlot: "__unstable-block-tools-after",
- shift: false,
- ...props
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.ResizableBox, {
- ...resizableBoxProps
- }));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/use-can-block-toolbar-be-focused.js
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-/**
- * Returns true if the block toolbar should be able to receive focus.
- *
- * @return {boolean} Whether the block toolbar should be able to receive focus
- */
-function useCanBlockToolbarBeFocused() {
- return (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- __unstableGetEditorMode,
- getBlock,
- getSettings,
- getSelectedBlockClientId,
- getFirstMultiSelectedBlockClientId
- } = unlock(select(store));
- const selectedBlockId = getFirstMultiSelectedBlockClientId() || getSelectedBlockClientId();
- const isEmptyDefaultBlock = (0,external_wp_blocks_namespaceObject.isUnmodifiedDefaultBlock)(getBlock(selectedBlockId) || {});
-
- // Fixed Toolbar can be focused when:
- // - a block is selected
- // - fixed toolbar is on
- // Block Toolbar Popover can be focused when:
- // - a block is selected
- // - we are in edit mode
- // - it is not an empty default block
- return !!selectedBlockId && (getSettings().hasFixedToolbar || __unstableGetEditorMode() === 'edit' && !isEmptyDefaultBlock);
- }, []);
+ __unstablePopoverSlot: "block-toolbar",
+ ...props,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ResizableBox, {
+ ...resizableBoxProps
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-removal-warning-modal/index.js
-
/**
* WordPress dependencies
*/
@@ -64708,14 +68588,15 @@ function useCanBlockToolbarBeFocused() {
*/
+
+
function BlockRemovalWarningModal({
rules
}) {
const {
clientIds,
selectPrevious,
- blockNamesForPrompt,
- messageType
+ message
} = (0,external_wp_data_namespaceObject.useSelect)(select => unlock(select(store)).getRemovalPromptData());
const {
clearBlockRemovalPrompt,
@@ -64731,31 +68612,35 @@ function BlockRemovalWarningModal({
setBlockRemovalRules();
};
}, [rules, setBlockRemovalRules]);
- if (!blockNamesForPrompt) {
+ if (!message) {
return;
}
- const message = messageType === 'templates' ? (0,external_wp_i18n_namespaceObject._n)('Deleting this block will stop your post or page content from displaying on this template. It is not recommended.', 'Deleting these blocks will stop your post or page content from displaying on this template. It is not recommended.', blockNamesForPrompt.length) : (0,external_wp_i18n_namespaceObject._n)('Deleting this block could break patterns on your site that have content linked to it. Are you sure you want to delete it?', 'Deleting these blocks could break patterns on your site that have content linked to them. Are you sure you want to delete them?', blockNamesForPrompt.length);
const onConfirmRemoval = () => {
privateRemoveBlocks(clientIds, selectPrevious, /* force */true);
clearBlockRemovalPrompt();
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Modal, {
title: (0,external_wp_i18n_namespaceObject.__)('Be careful!'),
onRequestClose: clearBlockRemovalPrompt,
- size: "medium"
- }, (0,external_React_.createElement)("p", null, message), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: clearBlockRemovalPrompt
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: onConfirmRemoval
- }, (0,external_wp_i18n_namespaceObject.__)('Delete'))));
+ size: "medium",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: message
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: clearBlockRemovalPrompt,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ onClick: onConfirmRemoval,
+ children: (0,external_wp_i18n_namespaceObject.__)('Delete')
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/dimensions-tool/scale-tool.js
-
/**
* WordPress dependencies
*/
@@ -64776,6 +68661,7 @@ function BlockRemovalWarningModal({
*
* @type {SelectControlProps[]}
*/
+
const DEFAULT_SCALE_OPTIONS = [{
value: 'fill',
label: (0,external_wp_i18n_namespaceObject._x)('Fill', 'Scale option for dimensions control'),
@@ -64838,23 +68724,24 @@ function ScaleTool({
return acc;
}, {});
}, [options]);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
label: (0,external_wp_i18n_namespaceObject.__)('Scale'),
isShownByDefault: isShownByDefault,
hasValue: () => displayValue !== defaultValue,
onDeselect: () => onChange(defaultValue),
- panelId: panelId
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Scale'),
- isBlock: true,
- help: scaleHelp[displayValue],
- value: displayValue,
- onChange: onChange,
- size: '__unstable-large'
- }, options.map(option => (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- key: option.value,
- ...option
- }))));
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Scale'),
+ isBlock: true,
+ help: scaleHelp[displayValue],
+ value: displayValue,
+ onChange: onChange,
+ size: "__unstable-large",
+ children: options.map(option => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ ...option
+ }, option.value))
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
@@ -66222,7 +70109,7 @@ var emotion_cache_browser_esm_prefixer = function prefixer(element, index, child
var defaultStylisPlugins = [emotion_cache_browser_esm_prefixer];
-var emotion_cache_browser_esm_createCache = function createCache(options) {
+var createCache = function createCache(options) {
var key = options.key;
if (false) {}
@@ -66322,7 +70209,7 @@ var emotion_cache_browser_esm_createCache = function createCache(options) {
return cache;
};
-/* harmony default export */ const emotion_cache_browser_esm = (emotion_cache_browser_esm_createCache);
+/* harmony default export */ const emotion_cache_browser_esm = (createCache);
;// CONCATENATED MODULE: ./node_modules/@emotion/hash/dist/emotion-hash.esm.js
/* eslint-disable */
@@ -67138,7 +71025,6 @@ var createStyled = function createStyled(tag, options) {
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/dimensions-tool/width-height-tool.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)."; }
/**
* External dependencies
@@ -67149,6 +71035,9 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
*/
+
+
+
const SingleColumnToolsPanelItem = /*#__PURE__*/emotion_styled_base_browser_esm(external_wp_components_namespaceObject.__experimentalToolsPanelItem, true ? {
target: "ef8pe3d0"
} : 0)( true ? {
@@ -67211,41 +71100,44 @@ function WidthHeightTool({
}
onChange(nextValue);
};
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(SingleColumnToolsPanelItem, {
- label: (0,external_wp_i18n_namespaceObject.__)('Width'),
- isShownByDefault: isShownByDefault,
- hasValue: () => width !== '',
- onDeselect: onDimensionChange('width'),
- panelId: panelId
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Width'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Auto'),
- labelPosition: "top",
- units: units,
- min: 0,
- value: width,
- onChange: onDimensionChange('width'),
- size: '__unstable-large'
- })), (0,external_React_.createElement)(SingleColumnToolsPanelItem, {
- label: (0,external_wp_i18n_namespaceObject.__)('Height'),
- isShownByDefault: isShownByDefault,
- hasValue: () => height !== '',
- onDeselect: onDimensionChange('height'),
- panelId: panelId
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Height'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Auto'),
- labelPosition: "top",
- units: units,
- min: 0,
- value: height,
- onChange: onDimensionChange('height'),
- size: '__unstable-large'
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SingleColumnToolsPanelItem, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Width'),
+ isShownByDefault: isShownByDefault,
+ hasValue: () => width !== '',
+ onDeselect: onDimensionChange('width'),
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Width'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Auto'),
+ labelPosition: "top",
+ units: units,
+ min: 0,
+ value: width,
+ onChange: onDimensionChange('width'),
+ size: "__unstable-large"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SingleColumnToolsPanelItem, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Height'),
+ isShownByDefault: isShownByDefault,
+ hasValue: () => height !== '',
+ onDeselect: onDimensionChange('height'),
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Height'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Auto'),
+ labelPosition: "top",
+ units: units,
+ min: 0,
+ value: height,
+ onChange: onDimensionChange('height'),
+ size: "__unstable-large"
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/dimensions-tool/index.js
-
/**
* WordPress dependencies
*/
@@ -67297,6 +71189,9 @@ function WidthHeightTool({
*
* @return {Element} The dimensions controls.
*/
+
+
+
function DimensionsTool({
panelId,
value = {},
@@ -67328,131 +71223,133 @@ function DimensionsTool({
// as a custom aspect ratio.
const aspectRatioValue = width && height ? 'custom' : lastAspectRatio;
const showScaleControl = aspectRatio || width && height;
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(AspectRatioTool, {
- panelId: panelId,
- options: aspectRatioOptions,
- defaultValue: defaultAspectRatio,
- value: aspectRatioValue,
- onChange: nextAspectRatio => {
- const nextValue = {
- ...value
- };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AspectRatioTool, {
+ panelId: panelId,
+ options: aspectRatioOptions,
+ defaultValue: defaultAspectRatio,
+ value: aspectRatioValue,
+ onChange: nextAspectRatio => {
+ const nextValue = {
+ ...value
+ };
- // 'auto' is CSS default, so it gets treated as null.
- nextAspectRatio = nextAspectRatio === 'auto' ? null : nextAspectRatio;
- setLastAspectRatio(nextAspectRatio);
+ // 'auto' is CSS default, so it gets treated as null.
+ nextAspectRatio = nextAspectRatio === 'auto' ? null : nextAspectRatio;
+ setLastAspectRatio(nextAspectRatio);
- // Update aspectRatio.
- if (!nextAspectRatio) {
- delete nextValue.aspectRatio;
- } else {
- nextValue.aspectRatio = nextAspectRatio;
- }
+ // Update aspectRatio.
+ if (!nextAspectRatio) {
+ delete nextValue.aspectRatio;
+ } else {
+ nextValue.aspectRatio = nextAspectRatio;
+ }
- // Auto-update scale.
- if (!nextAspectRatio) {
- delete nextValue.scale;
- } else if (lastScale) {
- nextValue.scale = lastScale;
- } else {
- nextValue.scale = defaultScale;
- setLastScale(defaultScale);
- }
+ // Auto-update scale.
+ if (!nextAspectRatio) {
+ delete nextValue.scale;
+ } else if (lastScale) {
+ nextValue.scale = lastScale;
+ } else {
+ nextValue.scale = defaultScale;
+ setLastScale(defaultScale);
+ }
- // Auto-update width and height.
- if ('custom' !== nextAspectRatio && width && height) {
- delete nextValue.height;
+ // Auto-update width and height.
+ if ('custom' !== nextAspectRatio && width && height) {
+ delete nextValue.height;
+ }
+ onChange(nextValue);
}
- onChange(nextValue);
- }
- }), (0,external_React_.createElement)(WidthHeightTool, {
- panelId: panelId,
- units: unitsOptions,
- value: {
- width,
- height
- },
- onChange: ({
- width: nextWidth,
- height: nextHeight
- }) => {
- const nextValue = {
- ...value
- };
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WidthHeightTool, {
+ panelId: panelId,
+ units: unitsOptions,
+ value: {
+ width,
+ height
+ },
+ onChange: ({
+ width: nextWidth,
+ height: nextHeight
+ }) => {
+ const nextValue = {
+ ...value
+ };
- // 'auto' is CSS default, so it gets treated as null.
- nextWidth = nextWidth === 'auto' ? null : nextWidth;
- nextHeight = nextHeight === 'auto' ? null : nextHeight;
+ // 'auto' is CSS default, so it gets treated as null.
+ nextWidth = nextWidth === 'auto' ? null : nextWidth;
+ nextHeight = nextHeight === 'auto' ? null : nextHeight;
- // Update width.
- if (!nextWidth) {
- delete nextValue.width;
- } else {
- nextValue.width = nextWidth;
- }
+ // Update width.
+ if (!nextWidth) {
+ delete nextValue.width;
+ } else {
+ nextValue.width = nextWidth;
+ }
- // Update height.
- if (!nextHeight) {
- delete nextValue.height;
- } else {
- nextValue.height = nextHeight;
- }
+ // Update height.
+ if (!nextHeight) {
+ delete nextValue.height;
+ } else {
+ nextValue.height = nextHeight;
+ }
- // Auto-update aspectRatio.
- if (nextWidth && nextHeight) {
- delete nextValue.aspectRatio;
- } else if (lastAspectRatio) {
- nextValue.aspectRatio = lastAspectRatio;
- } else {
- // No setting defaultAspectRatio here, because
- // aspectRatio is optional in this scenario,
- // unlike scale.
- }
+ // Auto-update aspectRatio.
+ if (nextWidth && nextHeight) {
+ delete nextValue.aspectRatio;
+ } else if (lastAspectRatio) {
+ nextValue.aspectRatio = lastAspectRatio;
+ } else {
+ // No setting defaultAspectRatio here, because
+ // aspectRatio is optional in this scenario,
+ // unlike scale.
+ }
- // Auto-update scale.
- if (!lastAspectRatio && !!nextWidth !== !!nextHeight) {
- delete nextValue.scale;
- } else if (lastScale) {
- nextValue.scale = lastScale;
- } else {
- nextValue.scale = defaultScale;
- setLastScale(defaultScale);
- }
- onChange(nextValue);
- }
- }), showScaleControl && (0,external_React_.createElement)(ScaleTool, {
- panelId: panelId,
- options: scaleOptions,
- defaultValue: defaultScale,
- value: lastScale,
- onChange: nextScale => {
- const nextValue = {
- ...value
- };
+ // Auto-update scale.
+ if (!lastAspectRatio && !!nextWidth !== !!nextHeight) {
+ delete nextValue.scale;
+ } else if (lastScale) {
+ nextValue.scale = lastScale;
+ } else {
+ nextValue.scale = defaultScale;
+ setLastScale(defaultScale);
+ }
+ onChange(nextValue);
+ }
+ }), showScaleControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ScaleTool, {
+ panelId: panelId,
+ options: scaleOptions,
+ defaultValue: defaultScale,
+ value: lastScale,
+ onChange: nextScale => {
+ const nextValue = {
+ ...value
+ };
- // 'fill' is CSS default, so it gets treated as null.
- nextScale = nextScale === 'fill' ? null : nextScale;
- setLastScale(nextScale);
+ // 'fill' is CSS default, so it gets treated as null.
+ nextScale = nextScale === 'fill' ? null : nextScale;
+ setLastScale(nextScale);
- // Update scale.
- if (!nextScale) {
- delete nextValue.scale;
- } else {
- nextValue.scale = nextScale;
+ // Update scale.
+ if (!nextScale) {
+ delete nextValue.scale;
+ } else {
+ nextValue.scale = nextScale;
+ }
+ onChange(nextValue);
}
- onChange(nextValue);
- }
- }));
+ })]
+ });
}
/* harmony default export */ const dimensions_tool = (DimensionsTool);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/resolution-tool/index.js
-
/**
* WordPress dependencies
*/
+
const DEFAULT_SIZE_OPTIONS = [{
label: (0,external_wp_i18n_namespaceObject._x)('Thumbnail', 'Image size option for resolution control'),
value: 'thumbnail'
@@ -67475,20 +71372,21 @@ function ResolutionTool({
isShownByDefault = true
}) {
const displayValue = value !== null && value !== void 0 ? value : defaultValue;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
hasValue: () => displayValue !== defaultValue,
label: (0,external_wp_i18n_namespaceObject.__)('Resolution'),
onDeselect: () => onChange(defaultValue),
isShownByDefault: isShownByDefault,
- panelId: panelId
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.SelectControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Resolution'),
- value: displayValue,
- options: options,
- onChange: onChange,
- help: (0,external_wp_i18n_namespaceObject.__)('Select the size of the source image.'),
- size: '__unstable-large'
- }));
+ panelId: panelId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Resolution'),
+ value: displayValue,
+ options: options,
+ onChange: onChange,
+ help: (0,external_wp_i18n_namespaceObject.__)('Select the size of the source image.'),
+ size: "__unstable-large"
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/private-apis.js
@@ -67521,6 +71419,13 @@ function ResolutionTool({
+
+
+
+
+
+
+
/**
* Private @wordpress/block-editor APIs.
*/
@@ -67533,10 +71438,13 @@ lock(privateApis, {
getRichTextValues: getRichTextValues,
PrivateInserter: ComposedPrivateInserter,
PrivateQuickInserter: QuickInserter,
+ extractWords: extractWords,
+ getNormalizedSearchTerms: getNormalizedSearchTerms,
+ normalizeString: normalizeString,
PrivateListView: PrivateListView,
ResizableBoxPopover: ResizableBoxPopover,
BlockInfo: block_info_slot_fill,
- useCanBlockToolbarBeFocused: useCanBlockToolbarBeFocused,
+ useHasBlockToolbar: useHasBlockToolbar,
cleanEmptyObject: utils_cleanEmptyObject,
useStyleOverride: useStyleOverride,
BlockQuickNavigation: BlockQuickNavigation,
@@ -67546,13 +71454,22 @@ lock(privateApis, {
useLayoutStyles: useLayoutStyles,
DimensionsTool: dimensions_tool,
ResolutionTool: ResolutionTool,
+ TextAlignmentControl: TextAlignmentControl,
ReusableBlocksRenameHint: ReusableBlocksRenameHint,
useReusableBlocksRenameHint: useReusableBlocksRenameHint,
usesContextKey: usesContextKey,
useFlashEditableBlocks: useFlashEditableBlocks,
+ globalStylesDataKey: globalStylesDataKey,
selectBlockPatternsKey: selectBlockPatternsKey,
requiresWrapperOnCopy: requiresWrapperOnCopy,
- PrivateRichText: PrivateRichText
+ PrivateRichText: PrivateRichText,
+ PrivateInserterLibrary: PrivateInserterLibrary,
+ reusableBlocksSelectKey: reusableBlocksSelectKey,
+ PrivateBlockPopover: PrivateBlockPopover,
+ PrivatePublishDateTimePicker: PrivatePublishDateTimePicker,
+ useSpacingSizes: useSpacingSizes,
+ useBlockDisplayTitle: useBlockDisplayTitle,
+ __unstableBlockStyleVariationOverridesWithConfig: __unstableBlockStyleVariationOverridesWithConfig
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/index.js
diff --git a/wp-includes/js/dist/block-editor.min.js b/wp-includes/js/dist/block-editor.min.js
index 9c85897..66b42c3 100644
--- a/wp-includes/js/dist/block-editor.min.js
+++ b/wp-includes/js/dist/block-editor.min.js
@@ -4,12 +4,7 @@
autosize 4.0.4
license: MIT
http://www.jacklmoore.com/autosize
-*/o=[e,t],n=function(e,t){"use strict";var n,o,r="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),l=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){l=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var t=null,n=null,o=null,i=function(){e.clientWidth!==n&&p()},s=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",p,!1),e.removeEventListener("keyup",p,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",p,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),r.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",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",p,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",p,!1),e.addEventListener("autosize:update",p,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:s,update:p}),a()}function a(){var n=window.getComputedStyle(e,null);"vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),t="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(t)&&(t=0),p()}function c(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(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}function d(){if(0!==e.scrollHeight){var o=u(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,o.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function p(){d();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<t?"hidden"===n.overflowY&&(c("scroll"),d(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),d(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==r){o=r;var i=l("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}function s(e){var t=r.get(e);t&&t.destroy()}function a(e){var t=r.get(e);t&&t.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return i(e,t)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e}),t.default=c,e.exports=t.default},void 0===(r="function"==typeof n?n.apply(t,o):n)||(e.exports=r)},5755:(e,t)=>{var n;
-/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var l=typeof n;if("string"===l||"number"===l)e.push(n);else if(Array.isArray(n)){if(n.length){var i=r.apply(null,n);i&&e.push(i)}}else if("object"===l){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)o.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},6109:e=>{e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},5417:(e,t)=>{"use strict";function n(){}function o(e,t,n,o,r){for(var l=0,i=t.length,s=0,a=0;l<i;l++){var c=t[l];if(c.removed){if(c.value=e.join(o.slice(a,a+c.count)),a+=c.count,l&&t[l-1].added){var u=t[l-1];t[l-1]=t[l],t[l]=u}}else{if(!c.added&&r){var d=n.slice(s,s+c.count);d=d.map((function(e,t){var n=o[a+t];return n.length>e.length?n:e})),c.value=e.join(d)}else c.value=e.join(n.slice(s,s+c.count));s+=c.count,c.added||(a+=c.count)}}var p=t[i-1];return i>1&&"string"==typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(t[i-2].value+=p.value,t.pop()),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.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 l=this;function i(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 s=(t=this.removeEmpty(this.tokenize(t))).length,a=e.length,c=1,u=s+a,d=[{newPos:-1,components:[]}],p=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=s&&p+1>=a)return i([{value:this.join(t),count:t.length}]);function m(){for(var n=-1*c;n<=c;n+=2){var r=void 0,u=d[n-1],p=d[n+1],m=(p?p.newPos:0)-n;u&&(d[n-1]=void 0);var h=u&&u.newPos+1<s,g=p&&0<=m&&m<a;if(h||g){if(!h||g&&u.newPos<p.newPos?(r={newPos:(f=p).newPos,components:f.components.slice(0)},l.pushComponent(r.components,void 0,!0)):((r=u).newPos++,l.pushComponent(r.components,!0,void 0)),m=l.extractCommon(r,t,e,n),r.newPos+1>=s&&m+1>=a)return i(o(l,r.components,t,e,l.useLongestToken));d[n]=r}else d[n]=void 0}var f;c++}if(r)!function e(){setTimeout((function(){if(c>u)return r();m()||e()}),0)}();else for(;c<=u;){var h=m();if(h)return h}},pushComponent:function(e,t,n){var o=e[e.length-1];o&&o.added===t&&o.removed===n?e[e.length-1]={count:o.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,o){for(var r=t.length,l=n.length,i=e.newPos,s=i-o,a=0;i+1<r&&s+1<l&&this.equals(t[i+1],n[s+1]);)i++,s++,a++;return a&&e.components.push({count:a}),e.newPos=i,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},8021:(e,t,n)=>{"use strict";var o;t.JJ=function(e,t,n){return r.diff(e,t,n)};var r=new(((o=n(5417))&&o.__esModule?o:{default:o}).default)},1637:(e,t,n)=>{"use strict";var o=n(3062);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var r=n.allowHorizontalScroll,l=n.onlyScrollIfNeeded,i=n.alignWithTop,s=n.alignWithLeft,a=n.offsetTop||0,c=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;r=void 0===r||r;var p=o.isWindow(t),m=o.offset(e),h=o.outerHeight(e),g=o.outerWidth(e),f=void 0,b=void 0,v=void 0,k=void 0,_=void 0,y=void 0,E=void 0,w=void 0,S=void 0,C=void 0;p?(E=t,C=o.height(E),S=o.width(E),w={left:o.scrollLeft(E),top:o.scrollTop(E)},_={left:m.left-w.left-c,top:m.top-w.top-a},y={left:m.left+g-(w.left+S)+d,top:m.top+h-(w.top+C)+u},k=w):(f=o.offset(t),b=t.clientHeight,v=t.clientWidth,k={left:t.scrollLeft,top:t.scrollTop},_={left:m.left-(f.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-c,top:m.top-(f.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-a},y={left:m.left+g-(f.left+v+(parseFloat(o.css(t,"borderRightWidth"))||0))+d,top:m.top+h-(f.top+b+(parseFloat(o.css(t,"borderBottomWidth"))||0))+u}),_.top<0||y.top>0?!0===i?o.scrollTop(t,k.top+_.top):!1===i?o.scrollTop(t,k.top+y.top):_.top<0?o.scrollTop(t,k.top+_.top):o.scrollTop(t,k.top+y.top):l||((i=void 0===i||!!i)?o.scrollTop(t,k.top+_.top):o.scrollTop(t,k.top+y.top)),r&&(_.left<0||y.left>0?!0===s?o.scrollLeft(t,k.left+_.left):!1===s?o.scrollLeft(t,k.left+y.left):_.left<0?o.scrollLeft(t,k.left+_.left):o.scrollLeft(t,k.left+y.left):l||((s=void 0===s||!!s)?o.scrollLeft(t,k.left+_.left):o.scrollLeft(t,k.left+y.left)))}},5428:(e,t,n)=>{"use strict";e.exports=n(1637)},3062:e=>{"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function o(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],o="scroll"+(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function r(e){return o(e)}function l(e){return o(e,!0)}function i(e){var t=function(e){var t,n=void 0,o=void 0,r=e.ownerDocument,l=r.body,i=r&&r.documentElement;return n=(t=e.getBoundingClientRect()).left,o=t.top,{left:n-=i.clientLeft||l.clientLeft||0,top:o-=i.clientTop||l.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=r(o),t.top+=l(o),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),a=/^(top|right|bottom|left)$/,c="currentStyle",u="runtimeStyle",d="left";var p=void 0;function m(e,t){for(var n=0;n<e.length;n++)t(e[n])}function h(e){return"border-box"===p(e,"boxSizing")}"undefined"!=typeof window&&(p=window.getComputedStyle?function(e,t,n){var o="",r=e.ownerDocument,l=n||r.defaultView.getComputedStyle(e,null);return l&&(o=l.getPropertyValue(t)||l[t]),o}:function(e,t){var n=e[c]&&e[c][t];if(s.test(n)&&!a.test(t)){var o=e.style,r=o[d],l=e[u][d];e[u][d]=e[c][d],o[d]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[d]=r,e[u][d]=l}return""===n?"auto":n});var g=["margin","border","padding"],f=-1,b=2,v=1;function k(e,t,n){var o=0,r=void 0,l=void 0,i=void 0;for(l=0;l<t.length;l++)if(r=t[l])for(i=0;i<n.length;i++){var s=void 0;s="border"===r?r+n[i]+"Width":r+n[i],o+=parseFloat(p(e,s))||0}return o}function _(e){return null!=e&&e==e.window}var y={};function E(e,t,n){if(_(e))return"width"===t?y.viewportWidth(e):y.viewportHeight(e);if(9===e.nodeType)return"width"===t?y.docWidth(e):y.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],r="width"===t?e.offsetWidth:e.offsetHeight,l=(p(e),h(e)),i=0;(null==r||r<=0)&&(r=void 0,(null==(i=p(e,t))||Number(i)<0)&&(i=e.style[t]||0),i=parseFloat(i)||0),void 0===n&&(n=l?v:f);var s=void 0!==r||l,a=r||i;if(n===f)return s?a-k(e,["border","padding"],o):i;if(s){var c=n===b?-k(e,["border"],o):k(e,["margin"],o);return a+(n===v?0:c)}return i+k(e,g.slice(n),o)}m(["Width","Height"],(function(e){y["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],y["viewport"+e](n))},y["viewport"+e]=function(t){var n="client"+e,o=t.document,r=o.body,l=o.documentElement[n];return"CSS1Compat"===o.compatMode&&l||r&&r[n]||l}}));var w={position:"absolute",visibility:"hidden",display:"block"};function S(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=E.apply(void 0,n):function(e,t,n){var o={},r=e.style,l=void 0;for(l in t)t.hasOwnProperty(l)&&(o[l]=r[l],r[l]=t[l]);for(l in n.call(e),t)t.hasOwnProperty(l)&&(r[l]=o[l])}(e,w,(function(){t=E.apply(void 0,n)})),t}function C(e,t,o){var r=o;if("object"!==(void 0===t?"undefined":n(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):p(e,t);for(var l in t)t.hasOwnProperty(l)&&C(e,l,t[l])}m(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);y["outer"+t]=function(t,n){return t&&S(t,e,n?0:v)};var n="width"===e?["Left","Right"]:["Top","Bottom"];y[e]=function(t,o){if(void 0===o)return t&&S(t,e,f);if(t){p(t);return h(t)&&(o+=k(t,["padding","border"],n)),C(t,e,o)}}})),e.exports=t({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return i(e);!function(e,t){"static"===C(e,"position")&&(e.style.position="relative");var n=i(e),o={},r=void 0,l=void 0;for(l in t)t.hasOwnProperty(l)&&(r=parseFloat(C(e,l))||0,o[l]=r+t[l]-n[l]);C(e,o)}(e,t)},isWindow:_,each:m,css:C,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(_(e)){if(void 0===t)return r(e);window.scrollTo(t,l(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(_(e)){if(void 0===t)return l(e);window.scrollTo(r(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},y)},7734:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,r,l;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(t[r]!==n[r])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(l=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,l[r]))return!1;for(r=o;0!=r--;){var i=l[r];if(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n}},5215:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,r,l;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(l=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,l[r]))return!1;for(r=o;0!=r--;){var i=l[r];if(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n}},461:(e,t,n)=>{var o=n(6109);e.exports=function(e){var t=o(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=o(e,"line-height"),n=parseFloat(t,10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var l=e.nodeName,i=document.createElement(l);i.innerHTML="&nbsp;","TEXTAREA"===l.toUpperCase()&&i.setAttribute("rows","1");var s=o(e,"font-size");i.style.fontSize=s,i.style.padding="0px",i.style.border="0px";var a=document.body;a.appendChild(i),n=i.offsetHeight,a.removeChild(i)}return n}},7520:(e,t,n)=>{e.exports=n(7191)},8202:e=>{"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},2213:e=>{var t,n,o,r,l,i,s,a,c,u,d,p,m,h,g,f=!1;function b(){if(!f){f=!0;var e=navigator.userAgent,b=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),v=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(p=/\b(iPhone|iP[ao]d)/.exec(e),m=/\b(iP[ao]d)/.exec(e),u=/Android/i.exec(e),h=/FBAN\/\w+;/i.exec(e),g=/Mobile/i.exec(e),d=!!/Win64/.exec(e),b){(t=b[1]?parseFloat(b[1]):b[5]?parseFloat(b[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var k=/(?:Trident\/(\d+.\d+))/.exec(e);i=k?parseFloat(k[1])+4:t,n=b[2]?parseFloat(b[2]):NaN,o=b[3]?parseFloat(b[3]):NaN,(r=b[4]?parseFloat(b[4]):NaN)?(b=/(?:Chrome\/(\d+\.\d+))/.exec(e),l=b&&b[1]?parseFloat(b[1]):NaN):l=NaN}else t=n=o=l=r=NaN;if(v){if(v[1]){var _=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!_||parseFloat(_[1].replace("_","."))}else s=!1;a=!!v[2],c=!!v[3]}else s=a=c=!1}}var v={ie:function(){return b()||t},ieCompatibilityMode:function(){return b()||i>t},ie64:function(){return v.ie()&&d},firefox:function(){return b()||n},opera:function(){return b()||o},webkit:function(){return b()||r},safari:function(){return v.webkit()},chrome:function(){return b()||l},windows:function(){return b()||a},osx:function(){return b()||s},linux:function(){return b()||c},iphone:function(){return b()||p},mobile:function(){return b()||p||m||u||g},nativeApp:function(){return b()||h},android:function(){return b()||u},ipad:function(){return b()||m}};e.exports=v},1087:(e,t,n)=>{"use strict";var o,r=n(8202);r.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
+*/o=[e,t],n=function(e,t){"use strict";var n,o,r="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),s=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){s=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var t=null,n=null,o=null,i=function(){e.clientWidth!==n&&p()},l=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",p,!1),e.removeEventListener("keyup",p,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",p,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),r.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",p,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",p,!1),e.addEventListener("autosize:update",p,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:l,update:p}),a()}function a(){var n=window.getComputedStyle(e,null);"vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),t="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(t)&&(t=0),p()}function c(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(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}function d(){if(0!==e.scrollHeight){var o=u(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,o.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function p(){d();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<t?"hidden"===n.overflowY&&(c("scroll"),d(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),d(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==r){o=r;var i=s("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}function l(e){var t=r.get(e);t&&t.destroy()}function a(e){var t=r.get(e);t&&t.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return i(e,t)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e}),t.default=c,e.exports=t.default},void 0===(r="function"==typeof n?n.apply(t,o):n)||(e.exports=r)},6109:e=>{e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},5417:(e,t)=>{"use strict";function n(){}function o(e,t,n,o,r){for(var s=0,i=t.length,l=0,a=0;s<i;s++){var c=t[s];if(c.removed){if(c.value=e.join(o.slice(a,a+c.count)),a+=c.count,s&&t[s-1].added){var u=t[s-1];t[s-1]=t[s],t[s]=u}}else{if(!c.added&&r){var d=n.slice(l,l+c.count);d=d.map((function(e,t){var n=o[a+t];return n.length>e.length?n:e})),c.value=e.join(d)}else c.value=e.join(n.slice(l,l+c.count));l+=c.count,c.added||(a+=c.count)}}var p=t[i-1];return i>1&&"string"==typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(t[i-2].value+=p.value,t.pop()),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.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 s=this;function i(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,a=e.length,c=1,u=l+a,d=[{newPos:-1,components:[]}],p=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=l&&p+1>=a)return i([{value:this.join(t),count:t.length}]);function h(){for(var n=-1*c;n<=c;n+=2){var r=void 0,u=d[n-1],p=d[n+1],h=(p?p.newPos:0)-n;u&&(d[n-1]=void 0);var g=u&&u.newPos+1<l,m=p&&0<=h&&h<a;if(g||m){if(!g||m&&u.newPos<p.newPos?(r={newPos:(f=p).newPos,components:f.components.slice(0)},s.pushComponent(r.components,void 0,!0)):((r=u).newPos++,s.pushComponent(r.components,!0,void 0)),h=s.extractCommon(r,t,e,n),r.newPos+1>=l&&h+1>=a)return i(o(s,r.components,t,e,s.useLongestToken));d[n]=r}else d[n]=void 0}var f;c++}if(r)!function e(){setTimeout((function(){if(c>u)return r();h()||e()}),0)}();else for(;c<=u;){var g=h();if(g)return g}},pushComponent:function(e,t,n){var o=e[e.length-1];o&&o.added===t&&o.removed===n?e[e.length-1]={count:o.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,o){for(var r=t.length,s=n.length,i=e.newPos,l=i-o,a=0;i+1<r&&l+1<s&&this.equals(t[i+1],n[l+1]);)i++,l++,a++;return a&&e.components.push({count:a}),e.newPos=i,l},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},8021:(e,t,n)=>{"use strict";var o;t.JJ=function(e,t,n){return r.diff(e,t,n)};var r=new(((o=n(5417))&&o.__esModule?o:{default:o}).default)},7734:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,r,s;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(t[r]!==n[r])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(s=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,s[r]))return!1;for(r=o;0!=r--;){var i=s[r];if(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n}},5215:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,r,s;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(s=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,s[r]))return!1;for(r=o;0!=r--;){var i=s[r];if(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n}},461:(e,t,n)=>{var o=n(6109);e.exports=function(e){var t=o(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=o(e,"line-height"),n=parseFloat(t,10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var s=e.nodeName,i=document.createElement(s);i.innerHTML="&nbsp;","TEXTAREA"===s.toUpperCase()&&i.setAttribute("rows","1");var l=o(e,"font-size");i.style.fontSize=l,i.style.padding="0px",i.style.border="0px";var a=document.body;a.appendChild(i),n=i.offsetHeight,a.removeChild(i)}return n}},7520:(e,t,n)=>{e.exports=n(7191)},8202:e=>{"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},2213:e=>{var t,n,o,r,s,i,l,a,c,u,d,p,h,g,m,f=!1;function b(){if(!f){f=!0;var e=navigator.userAgent,b=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),v=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(p=/\b(iPhone|iP[ao]d)/.exec(e),h=/\b(iP[ao]d)/.exec(e),u=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),m=/Mobile/i.exec(e),d=!!/Win64/.exec(e),b){(t=b[1]?parseFloat(b[1]):b[5]?parseFloat(b[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var k=/(?:Trident\/(\d+.\d+))/.exec(e);i=k?parseFloat(k[1])+4:t,n=b[2]?parseFloat(b[2]):NaN,o=b[3]?parseFloat(b[3]):NaN,(r=b[4]?parseFloat(b[4]):NaN)?(b=/(?:Chrome\/(\d+\.\d+))/.exec(e),s=b&&b[1]?parseFloat(b[1]):NaN):s=NaN}else t=n=o=s=r=NaN;if(v){if(v[1]){var _=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!_||parseFloat(_[1].replace("_","."))}else l=!1;a=!!v[2],c=!!v[3]}else l=a=c=!1}}var v={ie:function(){return b()||t},ieCompatibilityMode:function(){return b()||i>t},ie64:function(){return v.ie()&&d},firefox:function(){return b()||n},opera:function(){return b()||o},webkit:function(){return b()||r},safari:function(){return v.webkit()},chrome:function(){return b()||s},windows:function(){return b()||a},osx:function(){return b()||l},linux:function(){return b()||c},iphone:function(){return b()||p},mobile:function(){return b()||p||h||u||m},nativeApp:function(){return b()||g},android:function(){return b()||u},ipad:function(){return b()||h}};e.exports=v},1087:(e,t,n)=>{"use strict";var o,r=n(8202);r.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
/**
* Checks if an event is supported in the current execution environment.
*
@@ -23,19 +18,4 @@
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
- */,e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,l=n in document;if(!l){var i=document.createElement("div");i.setAttribute(n,"return;"),l="function"==typeof i[n]}return!l&&o&&"wheel"===e&&(l=document.implementation.hasFeature("Events.wheel","3.0")),l}},7191:(e,t,n)=>{"use strict";var o=n(2213),r=n(1087);function l(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(1==e.deltaMode?(o*=40,r*=40):(o*=800,r*=800)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}}l.getEventType=function(){return o.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=l},2775:e=>{var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},4465:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8036:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n(4465);const r=o(n(4529)),l=o(n(3576));e.exports=(0,l.default)(r.default)},5525:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prefixWrapCSSSelector=t.prefixWrapCSSRule=void 0;const o=n(3467);t.prefixWrapCSSRule=(e,n,r,l,i)=>{const s=e.selector.split(",").filter((e=>!(0,o.cssRuleMatchesPrefixSelector)({selector:e},l)));0!==s.length&&(e.selector=s.map((o=>(0,t.prefixWrapCSSSelector)(o,e,n,r,l,i))).filter(o.isValidCSSSelector).join(", "))};t.prefixWrapCSSSelector=(e,t,n,r,l,i)=>{const s=(0,o.cleanSelector)(e);return""===s?null:null!==n&&s.startsWith(n,0)||(0,o.isKeyframes)(t)||r.some((e=>s.match(e)))?s:(0,o.isNotRootTag)(s)?l+" "+s:i?l+" ."+s:s.replace(/^(body|html|:root)/,l)}},3467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cssRuleMatchesPrefixSelector=t.isNotRootTag=t.isKeyframes=t.cleanSelector=t.isValidCSSSelector=void 0;const n=/(^\s*|\s*$)/g,o=/^(body|html|:root).*$/;t.isValidCSSSelector=e=>null!==e;t.cleanSelector=e=>e.replace(n,"");t.isKeyframes=e=>{const{parent:t}=e,n=t;return void 0!==t&&"atrule"===n.type&&void 0!==n.name&&null!==n.name.match(/keyframes$/)};t.isNotRootTag=e=>!e.match(o);t.cssRuleMatchesPrefixSelector=(e,t)=>{const n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`^${n}$`).test(e.selector)}},9411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldIncludeFilePath=void 0;t.shouldIncludeFilePath=(e,t,n)=>t.length>0?null!=e&&t.some((t=>e.match(t))):!(n.length>0)||!(null!=e&&n.some((t=>e.match(t))))},8061:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.asPostCSSv7PluginGenerator=void 0;const i=l(n(1311));t.asPostCSSv7PluginGenerator=e=>e.plugin(i.PLUGIN_NAME,((e,t)=>new i.default(e,t).prefix()))},2888:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.asPostCSSv8PluginGenerator=t.isPostCSSv8=void 0;const i=l(n(1311));t.isPostCSSv8=e=>void 0!==e.Root;t.asPostCSSv8PluginGenerator=()=>(e,t)=>{const n=new i.default(e,t);return{postcssPlugin:i.PLUGIN_NAME,Once(e){n.prefixRoot(e)}}}},3576:(e,t,n)=>{"use strict";const o=n(2888),r=n(8061);e.exports=e=>(0,o.isPostCSSv8)(e)?(0,o.asPostCSSv8PluginGenerator)():(0,r.asPostCSSv7PluginGenerator)(e)},1311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PLUGIN_NAME=void 0;const o=n(5525),r=n(9411);t.PLUGIN_NAME="postcss-prefixwrap";t.default=class{blacklist;ignoredSelectors;isPrefixSelector;prefixRootTags;prefixSelector;whitelist;nested;constructor(e,t={}){this.blacklist=t.blacklist??[],this.ignoredSelectors=t.ignoredSelectors??[],this.isPrefixSelector=new RegExp(`^${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`),this.prefixRootTags=t.prefixRootTags??!1,this.prefixSelector=e,this.whitelist=t.whitelist??[],this.nested=t.nested??null}prefixRoot(e){(0,r.shouldIncludeFilePath)(e.source?.input?.file,this.whitelist,this.blacklist)&&e.walkRules((e=>{(0,o.prefixWrapCSSRule)(e,this.nested,this.ignoredSelectors,this.prefixSelector,this.prefixRootTags)}))}prefix(){return e=>{this.prefixRoot(e)}}}},5404:(e,t,n)=>{const o=n(1544);e.exports=e=>{const t=Object.assign({skipHostRelativeUrls:!0},e);return{postcssPlugin:"rebaseUrl",Declaration(n){const r=o(n.value);let l=!1;r.walk((n=>{if("function"!==n.type||"url"!==n.value)return;const o=n.nodes[0].value,r=new URL(o,e.rootUrl);return r.pathname===o&&t.skipHostRelativeUrls||(n.nodes[0].value=r.toString(),l=!0),!1})),l&&(n.value=o.stringify(r))}}},e.exports.postcss=!0},1544:(e,t,n)=>{var o=n(8491),r=n(3815),l=n(4725);function i(e){return this instanceof i?(this.nodes=o(e),this):new i(e)}i.prototype.toString=function(){return Array.isArray(this.nodes)?l(this.nodes):""},i.prototype.walk=function(e,t){return r(this.nodes,e,t),this},i.unit=n(1524),i.walk=r,i.stringify=l,e.exports=i},8491:e=>{var t="(".charCodeAt(0),n=")".charCodeAt(0),o="'".charCodeAt(0),r='"'.charCodeAt(0),l="\\".charCodeAt(0),i="/".charCodeAt(0),s=",".charCodeAt(0),a=":".charCodeAt(0),c="*".charCodeAt(0),u="u".charCodeAt(0),d="U".charCodeAt(0),p="+".charCodeAt(0),m=/^[a-f0-9?-]+$/i;e.exports=function(e){for(var h,g,f,b,v,k,_,y,E,w=[],S=e,C=0,x=S.charCodeAt(C),B=S.length,I=[{nodes:w}],T=0,M="",P="",R="";C<B;)if(x<=32){h=C;do{h+=1,x=S.charCodeAt(h)}while(x<=32);b=S.slice(C,h),f=w[w.length-1],x===n&&T?R=b:f&&"div"===f.type?(f.after=b,f.sourceEndIndex+=b.length):x===s||x===a||x===i&&S.charCodeAt(h+1)!==c&&(!E||E&&"function"===E.type&&"calc"!==E.value)?P=b:w.push({type:"space",sourceIndex:C,sourceEndIndex:h,value:b}),C=h}else if(x===o||x===r){h=C,b={type:"string",sourceIndex:C,quote:g=x===o?"'":'"'};do{if(v=!1,~(h=S.indexOf(g,h+1)))for(k=h;S.charCodeAt(k-1)===l;)k-=1,v=!v;else h=(S+=g).length-1,b.unclosed=!0}while(v);b.value=S.slice(C+1,h),b.sourceEndIndex=b.unclosed?h:h+1,w.push(b),C=h+1,x=S.charCodeAt(C)}else if(x===i&&S.charCodeAt(C+1)===c)b={type:"comment",sourceIndex:C,sourceEndIndex:(h=S.indexOf("*/",C))+2},-1===h&&(b.unclosed=!0,h=S.length,b.sourceEndIndex=h),b.value=S.slice(C+2,h),w.push(b),C=h+2,x=S.charCodeAt(C);else if(x!==i&&x!==c||!E||"function"!==E.type||"calc"!==E.value)if(x===i||x===s||x===a)b=S[C],w.push({type:"div",sourceIndex:C-P.length,sourceEndIndex:C+b.length,value:b,before:P,after:""}),P="",C+=1,x=S.charCodeAt(C);else if(t===x){h=C;do{h+=1,x=S.charCodeAt(h)}while(x<=32);if(y=C,b={type:"function",sourceIndex:C-M.length,value:M,before:S.slice(y+1,h)},C=h,"url"===M&&x!==o&&x!==r){h-=1;do{if(v=!1,~(h=S.indexOf(")",h+1)))for(k=h;S.charCodeAt(k-1)===l;)k-=1,v=!v;else h=(S+=")").length-1,b.unclosed=!0}while(v);_=h;do{_-=1,x=S.charCodeAt(_)}while(x<=32);y<_?(b.nodes=C!==_+1?[{type:"word",sourceIndex:C,sourceEndIndex:_+1,value:S.slice(C,_+1)}]:[],b.unclosed&&_+1!==h?(b.after="",b.nodes.push({type:"space",sourceIndex:_+1,sourceEndIndex:h,value:S.slice(_+1,h)})):(b.after=S.slice(_+1,h),b.sourceEndIndex=h)):(b.after="",b.nodes=[]),C=h+1,b.sourceEndIndex=b.unclosed?h:C,x=S.charCodeAt(C),w.push(b)}else T+=1,b.after="",b.sourceEndIndex=C+1,w.push(b),I.push(b),w=b.nodes=[],E=b;M=""}else if(n===x&&T)C+=1,x=S.charCodeAt(C),E.after=R,E.sourceEndIndex+=R.length,R="",T-=1,I[I.length-1].sourceEndIndex=C,I.pop(),w=(E=I[T]).nodes;else{h=C;do{x===l&&(h+=1),h+=1,x=S.charCodeAt(h)}while(h<B&&!(x<=32||x===o||x===r||x===s||x===a||x===i||x===t||x===c&&E&&"function"===E.type&&"calc"===E.value||x===i&&"function"===E.type&&"calc"===E.value||x===n&&T));b=S.slice(C,h),t===x?M=b:u!==b.charCodeAt(0)&&d!==b.charCodeAt(0)||p!==b.charCodeAt(1)||!m.test(b.slice(2))?w.push({type:"word",sourceIndex:C,sourceEndIndex:h,value:b}):w.push({type:"unicode-range",sourceIndex:C,sourceEndIndex:h,value:b}),C=h}else b=S[C],w.push({type:"word",sourceIndex:C-P.length,sourceEndIndex:C+b.length,value:b}),C+=1,x=S.charCodeAt(C);for(C=I.length-1;C;C-=1)I[C].unclosed=!0,I[C].sourceEndIndex=S.length;return I[0].nodes}},4725:e=>{function t(e,t){var o,r,l=e.type,i=e.value;return t&&void 0!==(r=t(e))?r:"word"===l||"space"===l?i:"string"===l?(o=e.quote||"")+i+(e.unclosed?"":o):"comment"===l?"/*"+i+(e.unclosed?"":"*/"):"div"===l?(e.before||"")+i+(e.after||""):Array.isArray(e.nodes)?(o=n(e.nodes,t),"function"!==l?o:i+"("+(e.before||"")+o+(e.after||"")+(e.unclosed?"":")")):i}function n(e,n){var o,r;if(Array.isArray(e)){for(o="",r=e.length-1;~r;r-=1)o=t(e[r],n)+o;return o}return t(e,n)}e.exports=n},1524:e=>{var t="-".charCodeAt(0),n="+".charCodeAt(0),o=".".charCodeAt(0),r="e".charCodeAt(0),l="E".charCodeAt(0);e.exports=function(e){var i,s,a,c=0,u=e.length;if(0===u||!function(e){var r,l=e.charCodeAt(0);if(l===n||l===t){if((r=e.charCodeAt(1))>=48&&r<=57)return!0;var i=e.charCodeAt(2);return r===o&&i>=48&&i<=57}return l===o?(r=e.charCodeAt(1))>=48&&r<=57:l>=48&&l<=57}(e))return!1;for((i=e.charCodeAt(c))!==n&&i!==t||c++;c<u&&!((i=e.charCodeAt(c))<48||i>57);)c+=1;if(i=e.charCodeAt(c),s=e.charCodeAt(c+1),i===o&&s>=48&&s<=57)for(c+=2;c<u&&!((i=e.charCodeAt(c))<48||i>57);)c+=1;if(i=e.charCodeAt(c),s=e.charCodeAt(c+1),a=e.charCodeAt(c+2),(i===r||i===l)&&(s>=48&&s<=57||(s===n||s===t)&&a>=48&&a<=57))for(c+=s===n||s===t?3:2;c<u&&!((i=e.charCodeAt(c))<48||i>57);)c+=1;return{number:e.slice(0,c),unit:e.slice(c)}}},3815:e=>{e.exports=function e(t,n,o){var r,l,i,s;for(r=0,l=t.length;r<l;r+=1)i=t[r],o||(s=n(i,r,t)),!1!==s&&"function"===i.type&&Array.isArray(i.nodes)&&e(i.nodes,n,o),o&&n(i,r,t)}},1326:(e,t,n)=>{"use strict";let o=n(683);class r extends o{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=r,r.default=r,o.registerAtRule(r)},6589:(e,t,n)=>{"use strict";let o=n(7490);class r extends o{constructor(e){super(e),this.type="comment"}}e.exports=r,r.default=r},683:(e,t,n)=>{"use strict";let o,r,l,i,{isClean:s,my:a}=n(1381),c=n(1516),u=n(6589),d=n(7490);function p(e){return e.map((e=>(e.nodes&&(e.nodes=p(e.nodes)),delete e.source,e)))}function m(e){if(e[s]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)m(t)}class h extends d{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,o=this.getIterator();for(;this.indexes[o]<this.proxyOf.nodes.length&&(t=this.indexes[o],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[o]+=1;return delete this.indexes[o],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e))):"every"===t||"some"===t?n=>e[t](((e,...t)=>n(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,o=this.index(e),r=this.normalize(t,this.proxyOf.nodes[o]).reverse();o=this.index(e);for(let e of r)this.proxyOf.nodes.splice(o+1,0,e);for(let e in this.indexes)n=this.indexes[e],o<n&&(this.indexes[e]=n+r.length);return this.markDirty(),this}insertBefore(e,t){let n,o=this.index(e),r=0===o&&"prepend",l=this.normalize(t,this.proxyOf.nodes[o],r).reverse();o=this.index(e);for(let e of l)this.proxyOf.nodes.splice(o,0,e);for(let e in this.indexes)n=this.indexes[e],o<=n&&(this.indexes[e]=n+l.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=p(o(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new c(e)]}else if(e.selector)e=[new r(e)];else if(e.name)e=[new l(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new u(e)]}return e.map((e=>(e[a]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[s]&&m(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((o=>{t.props&&!t.props.includes(o.prop)||t.fast&&!o.value.includes(t.fast)||(o.value=o.value.replace(e,n))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,n)=>{let o;try{o=e(t,n)}catch(e){throw t.addToError(e)}return!1!==o&&t.walk&&(o=t.walk(e)),o}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,o)=>{if("atrule"===n.type&&e.test(n.name))return t(n,o)})):this.walk(((n,o)=>{if("atrule"===n.type&&n.name===e)return t(n,o)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,o)=>{if("decl"===n.type&&e.test(n.prop))return t(n,o)})):this.walk(((n,o)=>{if("decl"===n.type&&n.prop===e)return t(n,o)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,o)=>{if("rule"===n.type&&e.test(n.selector))return t(n,o)})):this.walk(((n,o)=>{if("rule"===n.type&&n.selector===e)return t(n,o)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}h.registerParse=e=>{o=e},h.registerRule=e=>{r=e},h.registerAtRule=e=>{l=e},h.registerRoot=e=>{i=e},e.exports=h,h.default=h,h.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,l.prototype):"rule"===e.type?Object.setPrototypeOf(e,r.prototype):"decl"===e.type?Object.setPrototypeOf(e,c.prototype):"comment"===e.type?Object.setPrototypeOf(e,u.prototype):"root"===e.type&&Object.setPrototypeOf(e,i.prototype),e[a]=!0,e.nodes&&e.nodes.forEach((e=>{h.rebuild(e)}))}},356:(e,t,n)=>{"use strict";let o=n(2775),r=n(9746);class l extends Error{constructor(e,t,n,o,r,i){super(e),this.name="CssSyntaxError",this.reason=e,r&&(this.file=r),o&&(this.source=o),i&&(this.plugin=i),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,l)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=o.isColorSupported),r&&e&&(t=r(t));let n,l,i=t.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),c=String(a).length;if(e){let{bold:e,gray:t,red:r}=o.createColors(!0);n=t=>e(r(t)),l=e=>t(e)}else n=l=e=>e;return i.slice(s,a).map(((e,t)=>{let o=s+1+t,r=" "+(" "+o).slice(-c)+" | ";if(o===this.line){let t=l(r.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+l(r)+e+"\n "+t+n("^")}return" "+l(r)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=l,l.default=l},1516:(e,t,n)=>{"use strict";let o=n(7490);class r extends o{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=r,r.default=r},271:(e,t,n)=>{"use strict";let o,r,l=n(683);class i extends l{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new o(new r,this,e).stringify()}}i.registerLazyResult=e=>{o=e},i.registerProcessor=e=>{r=e},e.exports=i,i.default=i},8940:(e,t,n)=>{"use strict";let o=n(1516),r=n(5696),l=n(6589),i=n(1326),s=n(5380),a=n(9434),c=n(4092);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:n,...d}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:s.prototype};n.map&&(n.map={...n.map,__proto__:r.prototype}),t.push(n)}}if(d.nodes&&(d.nodes=e.nodes.map((e=>u(e,t)))),d.source){let{inputId:e,...n}=d.source;d.source=n,null!=e&&(d.source.input=t[e])}if("root"===d.type)return new a(d);if("decl"===d.type)return new o(d);if("rule"===d.type)return new c(d);if("comment"===d.type)return new l(d);if("atrule"===d.type)return new i(d);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},5380:(e,t,n)=>{"use strict";let{SourceMapConsumer:o,SourceMapGenerator:r}=n(1866),{fileURLToPath:l,pathToFileURL:i}=n(2739),{isAbsolute:s,resolve:a}=n(197),{nanoid:c}=n(5042),u=n(9746),d=n(356),p=n(5696),m=Symbol("fromOffsetCache"),h=Boolean(o&&r),g=Boolean(a&&s);class f{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!g||/^\w+:\/\//.test(t.from)||s(t.from)?this.file=t.from:this.file=a(t.from)),g&&h){let e=new p(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,o={}){let r,l,s;if(t&&"object"==typeof t){let e=t,o=n;if("number"==typeof e.offset){let o=this.fromOffset(e.offset);t=o.line,n=o.col}else t=e.line,n=e.column;if("number"==typeof o.offset){let e=this.fromOffset(o.offset);l=e.line,s=e.col}else l=o.line,s=o.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let a=this.origin(t,n,l,s);return r=a?new d(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,o.plugin):new d(e,void 0===l?t:{column:n,line:t},void 0===l?n:{column:s,line:l},this.css,this.file,o.plugin),r.input={column:n,endColumn:s,endLine:l,line:t,source:this.css},this.file&&(i&&(r.input.url=i(this.file).toString()),r.input.file=this.file),r}fromOffset(e){let t,n;if(this[m])n=this[m];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let o=0,r=e.length;o<r;o++)n[o]=t,t+=e[o].length+1;this[m]=n}t=n[n.length-1];let o=0;if(e>=t)o=n.length-1;else{let t,r=n.length-2;for(;o<r;)if(t=o+(r-o>>1),e<n[t])r=t-1;else{if(!(e>=n[t+1])){o=t;break}o=t+1}}return{col:e-n[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:a(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,o){if(!this.map)return!1;let r,a,c=this.map.consumer(),u=c.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof n&&(r=c.originalPositionFor({column:o,line:n})),a=s(u.source)?i(u.source):new URL(u.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let d={column:u.column,endColumn:r&&r.column,endLine:r&&r.line,line:u.line,url:a.toString()};if("file:"===a.protocol){if(!l)throw new Error("file: protocol is not available in this PostCSS build");d.file=l(a)}let p=c.sourceContentFor(u.source);return p&&(d.source=p),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}e.exports=f,f.default=f,u&&u.registerInput&&u.registerInput(f)},448:(e,t,n)=>{"use strict";let{isClean:o,my:r}=n(1381),l=n(1670),i=n(633),s=n(683),a=n(271),c=(n(3122),n(9055)),u=n(4295),d=n(9434);const p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},m={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},h={Once:!0,postcssPlugin:!0,prepare:!0},g=0;function f(e){return"object"==typeof e&&"function"==typeof e.then}function b(e){let t=!1,n=p[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,g,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,g,n+"Exit"]:[n,n+"Exit"]}function v(e){let t;return t="document"===e.type?["Document",g,"DocumentExit"]:"root"===e.type?["Root",g,"RootExit"]:b(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function k(e){return e[o]=!1,e.nodes&&e.nodes.forEach((e=>k(e))),e}let _={};class y{constructor(e,t,n){let o;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof y||t instanceof c)o=k(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=u;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{o=e(t,n)}catch(e){this.processed=!0,this.error=e}o&&!o[r]&&s.rebuild(o)}else o=k(t);this.result=new c(e,o,n),this.helpers={..._,postcss:_,result:this.result},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!m[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[n])if("object"==typeof t[n])for(let o in t[n])e(t,"*"===o?n:n+"-"+o.toLowerCase(),t[n][o]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(f(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[o];){e[o]=!0;let t=[v(e)];for(;t.length>0;){let e=this.visitTick(t);if(f(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>n(e,this.helpers)));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return f(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=i;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new l(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(f(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[o];)e[o]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,o]of e){let e;this.result.lastPlugin=n;try{e=o(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(f(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,o]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return o(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let r,l=t.iterator;for(;r=n.nodes[n.indexes[l]];)if(n.indexes[l]+=1,!r[o])return r[o]=!0,void e.push(v(r));t.iterator=0,delete n.indexes[l]}let l=t.events;for(;t.eventIndex<l.length;){let e=l[t.eventIndex];if(t.eventIndex+=1,e===g)return void(n.nodes&&n.nodes.length&&(n[o]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[o]=!0;let t=b(e);for(let n of t)if(n===g)e.nodes&&e.each((e=>{e[o]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}y.registerPostcss=e=>{_=e},e.exports=y,y.default=y,d.registerLazyResult(y),a.registerLazyResult(y)},7374:e=>{"use strict";let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n","\t"]),split(e,t,n){let o=[],r="",l=!1,i=0,s=!1,a="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:s?n===a&&(s=!1):'"'===n||"'"===n?(s=!0,a=n):"("===n?i+=1:")"===n?i>0&&(i-=1):0===i&&t.includes(n)&&(l=!0),l?(""!==r&&o.push(r.trim()),r="",l=!1):r+=n;return(n||""!==r)&&o.push(r.trim()),o}};e.exports=t,t.default=t},1670:(e,t,n)=>{"use strict";let{SourceMapConsumer:o,SourceMapGenerator:r}=n(1866),{dirname:l,relative:i,resolve:s,sep:a}=n(197),{pathToFileURL:c}=n(2739),u=n(5380),d=Boolean(o&&r),p=Boolean(l&&s&&i&&a);e.exports=class{constructor(e,t,n,o){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),r=e.root||l(e.file);!1===this.mapOpts.sourcesContent?(t=new o(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&d&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=r.fromSourceMap(e)}else this.map=new r({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new r({file:this.outputFile()});let e,t,n=1,o=1,l="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((r,s,a)=>{if(this.css+=r,s&&"end"!==a&&(i.generated.line=n,i.generated.column=o-1,s.source&&s.source.start?(i.source=this.sourcePath(s),i.original.line=s.source.start.line,i.original.column=s.source.start.column-1,this.map.addMapping(i)):(i.source=l,i.original.line=1,i.original.column=0,this.map.addMapping(i))),e=r.match(/\n/g),e?(n+=e.length,t=r.lastIndexOf("\n"),o=r.length-t):o+=r.length,s&&"start"!==a){let e=s.parent||{raws:{}};("decl"===s.type||"atrule"===s.type&&!s.nodes)&&s===e.last&&!e.raws.semicolon||(s.source&&s.source.end?(i.source=this.sourcePath(s),i.original.line=s.source.end.line,i.original.column=s.source.end.column-1,i.generated.line=n,i.generated.column=o-2,this.map.addMapping(i)):(i.source=l,i.original.line=1,i.original.column=0,i.generated.line=n,i.generated.column=o-1,this.map.addMapping(i)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?l(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=l(s(n,this.mapOpts.annotation)));let o=i(n,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new u(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let o=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(o,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(c){let t=c(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===a&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}},7661:(e,t,n)=>{"use strict";let o=n(1670),r=n(633),l=(n(3122),n(4295));const i=n(9055);class s{constructor(e,t,n){let l;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let s=r;this.result=new i(this._processor,l,this._opts),this.result.css=t;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let c=new o(s,l,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=l;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}}e.exports=s,s.default=s},7490:(e,t,n)=>{"use strict";let{isClean:o,my:r}=n(1381),l=n(356),i=n(346),s=n(633);function a(e,t){let n=new e.constructor;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;if("proxyCache"===o)continue;let r=e[o],l=typeof r;"parent"===o&&"object"===l?t&&(n[o]=t):"source"===o?n[o]=r:Array.isArray(r)?n[o]=r.map((e=>a(e,n))):("object"===l&&null!==r&&(r=a(r)),n[o]=r)}return n}class c{constructor(e={}){this.raws={},this[o]=!1,this[r]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=a(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:o}=this.rangeBy(t);return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},t)}return new l(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[o]){this[o]=!1;let e=this;for(;e=e.parent;)e[o]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){let o=(t=this.toString()).indexOf(e.word);-1!==o&&(n=this.positionInside(o,t))}return n}positionInside(e,t){let n=t||this.toString(),o=this.source.start.column,r=this.source.start.line;for(let t=0;t<e;t++)"\n"===n[t]?(o=1,r+=1):o+=1;return{column:o,line:r}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let o=this.toString(),r=o.indexOf(e.word);-1!==r&&(t=this.positionInside(r,o),n=this.positionInside(r+e.word.length,o))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new i).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let o of e)o===this?n=!0:n?(this.parent.insertAfter(t,o),t=o):this.parent.insertBefore(t,o);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},o=null==t;t=t||new Map;let r=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let o=this[e];if(Array.isArray(o))n[e]=o.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof o&&o.toJSON)n[e]=o.toJSON(null,t);else if("source"===e){let l=t.get(o.input);null==l&&(l=r,t.set(o.input,r),r++),n[e]={end:o.end,inputId:l,start:o.start}}else n[e]=o}return o&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=s){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n){let o={node:this};for(let e in n)o[e]=n[e];return e.warn(t,o)}get proxyOf(){return this}}e.exports=c,c.default=c},4295:(e,t,n)=>{"use strict";let o=n(683),r=n(3937),l=n(5380);function i(e,t){let n=new l(e,t),o=new r(n);try{o.parse()}catch(e){throw e}return o.root}e.exports=i,i.default=i,o.registerParse(i)},3937:(e,t,n)=>{"use strict";let o=n(1516),r=n(2327),l=n(6589),i=n(1326),s=n(9434),a=n(4092);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,n,o,r=new i;r.name=e[1].slice(1),""===r.name&&this.unnamedAtrule(r,e),this.init(r,e[2]);let l=!1,s=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(o=a.length-1,n=a[o];n&&"space"===n[0];)n=a[--o];n&&(r.source.end=this.getPosition(n[3]||n[2]),r.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){l=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(r.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(r,"params",a),l&&(e=a[a.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),s&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,o=0;for(let r=t-1;r>=0&&(n=e[r],"space"===n[0]||(o+=1,2!==o));r--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,o,r=0;for(let[l,i]of e.entries()){if(t=i,n=t[0],"("===n&&(r+=1),")"===n&&(r-=1),0===r&&":"===n){if(o){if("word"===o[0]&&"progid"===o[1])continue;return l}this.doubleColon(t)}o=t}return!1}comment(e){let t=new l;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=r(this.input)}decl(e,t){let n=new o;this.init(n,e[0][2]);let r,l=e[e.length-1];for(";"===l[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(l[3]||l[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],o=n[3]||n[2];if(o)return o}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let i,s=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)s.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){n.important=!0;let o=this.stringFrom(e,t);o=this.spacesFromEnd(e)+o," !important"!==o&&(n.raws.important=o);break}if("important"===r[1].toLowerCase()){let o=e.slice(0),r="";for(let e=t;e>0;e--){let t=o[e][0];if(0===r.trim().indexOf("!")&&"space"!==t)break;r=o.pop()[1]+r}0===r.trim().indexOf("!")&&(n.important=!0,n.raws.important=r,e=o)}if("space"!==r[0]&&"comment"!==r[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=s.map((e=>e[1])).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new a;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,n=null,o=!1,r=null,l=[],i=e[1].startsWith("--"),s=[],a=e;for(;a;){if(n=a[0],s.push(a),"("===n||"["===n)r||(r=a),l.push("("===n?")":"]");else if(i&&o&&"{"===n)r||(r=a),l.push("}");else if(0===l.length){if(";"===n){if(o)return void this.decl(s,i);break}if("{"===n)return void this.rule(s);if("}"===n){this.tokenizer.back(s.pop()),t=!0;break}":"===n&&(o=!0)}else n===l[l.length-1]&&(l.pop(),0===l.length&&(r=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),l.length>0&&this.unclosedBracket(r),t&&o){if(!i)for(;s.length&&(a=s[s.length-1][0],"space"===a||"comment"===a);)this.tokenizer.back(s.pop());this.decl(s,i)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,o){let r,l,i,s,a=n.length,u="",d=!0;for(let e=0;e<a;e+=1)r=n[e],l=r[0],"space"!==l||e!==a-1||o?"comment"===l?(s=n[e-1]?n[e-1][0]:"empty",i=n[e+1]?n[e+1][0]:"empty",c[s]||c[i]||","===u.slice(-1)?d=!1:u+=r[1]):u+=r[1]:d=!1;if(!d){let o=n.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:o,value:u}}e[t]=u}rule(e){e.pop();let t=new a;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let o=t;o<e.length;o++)n+=e[o][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}},4529:(e,t,n)=>{"use strict";let o=n(356),r=n(1516),l=n(448),i=n(683),s=n(9656),a=n(633),c=n(8940),u=n(271),d=n(5776),p=n(6589),m=n(1326),h=n(9055),g=n(5380),f=n(4295),b=n(7374),v=n(4092),k=n(9434),_=n(7490);function y(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new s(e)}y.plugin=function(e,t){let n,o=!1;function r(...n){console&&console.warn&&!o&&(o=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let r=t(...n);return r.postcssPlugin=e,r.postcssVersion=(new s).version,r}return Object.defineProperty(r,"postcss",{get:()=>(n||(n=r()),n)}),r.process=function(e,t,n){return y([r(n)]).process(e,t)},r},y.stringify=a,y.parse=f,y.fromJSON=c,y.list=b,y.comment=e=>new p(e),y.atRule=e=>new m(e),y.decl=e=>new r(e),y.rule=e=>new v(e),y.root=e=>new k(e),y.document=e=>new u(e),y.CssSyntaxError=o,y.Declaration=r,y.Container=i,y.Processor=s,y.Document=u,y.Comment=p,y.Warning=d,y.AtRule=m,y.Result=h,y.Input=g,y.Rule=v,y.Root=k,y.Node=_,l.registerPostcss(y),e.exports=y,y.default=y},5696:(e,t,n)=>{"use strict";let{SourceMapConsumer:o,SourceMapGenerator:r}=n(1866),{existsSync:l,readFileSync:i}=n(9977),{dirname:s,join:a}=n(197);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,o=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new o(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),o=e.indexOf("*/",n);n>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,o)))}loadFile(e){if(this.root=s(e),l(e))return this.mapFile=e,i(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof o)return r.fromSourceMap(t).toString();if(t instanceof r)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=a(s(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=c,c.default=c},9656:(e,t,n)=>{"use strict";let o=n(7661),r=n(448),l=n(271),i=n(9434);class s{constructor(e=[]){this.version="8.4.35",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new r(this,e,t):new o(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=s,s.default=s,i.registerProcessor(s),l.registerProcessor(s)},9055:(e,t,n)=>{"use strict";let o=n(5776);class r{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new o(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}e.exports=r,r.default=r},9434:(e,t,n)=>{"use strict";let o,r,l=n(683);class i extends l{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let o=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of o)e.raws.before=t.raws.before;return o}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new o(new r,this,e).stringify()}}i.registerLazyResult=e=>{o=e},i.registerProcessor=e=>{r=e},e.exports=i,i.default=i,l.registerRoot(i)},4092:(e,t,n)=>{"use strict";let o=n(683),r=n(7374);class l extends o{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}e.exports=l,l.default=l,o.registerRule(l)},346:e=>{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class n{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:o&&(n+=" "),e.nodes)this.block(e,n+o);else{let r=(e.raws.between||"")+(t?";":"");this.builder(n+o+r,e)}}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let o=e.parent,r=0;for(;o&&"root"!==o.type;)r+=1,o=o.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<r;e++)n+=t}return n}block(e,t){let n,o=this.raw(e,"between","beforeOpen");this.builder(t+o+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let o=0;o<e.nodes.length;o++){let r=e.nodes[o],l=this.raw(r,"before");l&&this.builder(l),this.stringify(r,t!==o||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),o=e.prop+n+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),t&&(o+=";"),this.builder(o,e)}document(e){this.body(e)}raw(e,n,o){let r;if(o||(o=n),n&&(r=e.raws[n],void 0!==r))return r;let l=e.parent;if("before"===o){if(!l||"root"===l.type&&l.first===e)return"";if(l&&"document"===l.type)return""}if(!l)return t[o];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[o])return i.rawCache[o];if("before"===o||"after"===o)return this.beforeAfter(e,o);{let t="raw"+((s=o)[0].toUpperCase()+s.slice(1));this[t]?r=this[t](i,e):i.walk((e=>{if(r=e.raws[n],void 0!==r)return!1}))}var s;return void 0===r&&(r=t[o]),i.rawCache[o]=r,r}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=>{let o=n.parent;if(o&&o!==e&&o.parent&&o.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let n=e[t],o=e.raws[t];return o&&o.value===n?o.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}e.exports=n,n.default=n},633:(e,t,n)=>{"use strict";let o=n(346);function r(e,t){new o(t).stringify(e)}e.exports=r,r.default=r},1381:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},2327:e=>{"use strict";const t="'".charCodeAt(0),n='"'.charCodeAt(0),o="\\".charCodeAt(0),r="/".charCodeAt(0),l="\n".charCodeAt(0),i=" ".charCodeAt(0),s="\f".charCodeAt(0),a="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),d="]".charCodeAt(0),p="(".charCodeAt(0),m=")".charCodeAt(0),h="{".charCodeAt(0),g="}".charCodeAt(0),f=";".charCodeAt(0),b="*".charCodeAt(0),v=":".charCodeAt(0),k="@".charCodeAt(0),_=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,E=/.[\r\n"'(/\\]/,w=/[\da-f]/i;e.exports=function(e,S={}){let C,x,B,I,T,M,P,R,N,L,A=e.css.valueOf(),O=S.ignoreErrors,D=A.length,z=0,V=[],F=[];function H(t){throw e.error("Unclosed "+t,z)}return{back:function(e){F.push(e)},endOfFile:function(){return 0===F.length&&z>=D},nextToken:function(e){if(F.length)return F.pop();if(z>=D)return;let S=!!e&&e.ignoreUnclosed;switch(C=A.charCodeAt(z),C){case l:case i:case a:case c:case s:x=z;do{x+=1,C=A.charCodeAt(x)}while(C===i||C===l||C===a||C===c||C===s);L=["space",A.slice(z,x)],z=x-1;break;case u:case d:case h:case g:case v:case f:case m:{let e=String.fromCharCode(C);L=[e,e,z];break}case p:if(R=V.length?V.pop()[1]:"",N=A.charCodeAt(z+1),"url"===R&&N!==t&&N!==n&&N!==i&&N!==l&&N!==a&&N!==s&&N!==c){x=z;do{if(M=!1,x=A.indexOf(")",x+1),-1===x){if(O||S){x=z;break}H("bracket")}for(P=x;A.charCodeAt(P-1)===o;)P-=1,M=!M}while(M);L=["brackets",A.slice(z,x+1),z,x],z=x}else x=A.indexOf(")",z+1),I=A.slice(z,x+1),-1===x||E.test(I)?L=["(","(",z]:(L=["brackets",I,z,x],z=x);break;case t:case n:B=C===t?"'":'"',x=z;do{if(M=!1,x=A.indexOf(B,x+1),-1===x){if(O||S){x=z+1;break}H("string")}for(P=x;A.charCodeAt(P-1)===o;)P-=1,M=!M}while(M);L=["string",A.slice(z,x+1),z,x],z=x;break;case k:_.lastIndex=z+1,_.test(A),x=0===_.lastIndex?A.length-1:_.lastIndex-2,L=["at-word",A.slice(z,x+1),z,x],z=x;break;case o:for(x=z,T=!0;A.charCodeAt(x+1)===o;)x+=1,T=!T;if(C=A.charCodeAt(x+1),T&&C!==r&&C!==i&&C!==l&&C!==a&&C!==c&&C!==s&&(x+=1,w.test(A.charAt(x)))){for(;w.test(A.charAt(x+1));)x+=1;A.charCodeAt(x+1)===i&&(x+=1)}L=["word",A.slice(z,x+1),z,x],z=x;break;default:C===r&&A.charCodeAt(z+1)===b?(x=A.indexOf("*/",z+2)+1,0===x&&(O||S?x=A.length:H("comment")),L=["comment",A.slice(z,x+1),z,x],z=x):(y.lastIndex=z+1,y.test(A),x=0===y.lastIndex?A.length-1:y.lastIndex-2,L=["word",A.slice(z,x+1),z,x],V.push(L),z=x)}return z++,L},position:function(){return z}}}},3122:e=>{"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},5776:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},628:(e,t,n)=>{"use strict";var o=n(4067);function r(){}function l(){}l.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,l,i){if(i!==o){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint: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:l,resetWarningCache:r};return n.PropTypes=n,n}},5826:(e,t,n)=>{e.exports=n(628)()},4067:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4462:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n};t.__esModule=!0;var s=n(1609),a=n(5826),c=n(4306),u=n(461),d="autosize:resized",p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||o?setTimeout((function(){return e.textarea&&c(e.textarea)})):this.textarea&&c(this.textarea),this.textarea&&this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(d,this.onResize),c.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),r=(t.innerRef,t.children),a=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return s.createElement("textarea",l({},a,{onChange:this.onChange,style:u?l({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&c.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:a.number,maxRows:a.number,onResize:a.func,innerRef:a.any,async:a.bool},t}(s.Component);t.TextareaAutosize=s.forwardRef((function(e,t){return s.createElement(p,l({},e,{innerRef:t}))}))},4132:(e,t,n)=>{"use strict";var o=n(4462);t.A=o.TextareaAutosize},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),o=new RegExp(n,"g"),r=new RegExp(n,"");function l(e){return t[e]}var i=function(e){return e.replace(o,l)};e.exports=i,e.exports.has=function(e){return!!e.match(r)},e.exports.remove=i},1609:e=>{"use strict";e.exports=window.React},9746:()=>{},9977:()=>{},197:()=>{},1866:()=>{},2739:()=>{},5042:e=>{e.exports={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let o="",r=n;for(;r--;)o+=e[Math.random()*e.length|0];return o}}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var l=t[o]={exports:{}};return e[o].call(l.exports,l,l.exports,n),l.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{AlignmentControl:()=>Tg,AlignmentToolbar:()=>Mg,Autocomplete:()=>lf,BlockAlignmentControl:()=>es,BlockAlignmentToolbar:()=>ts,BlockBreadcrumb:()=>mf,BlockCanvas:()=>WC,BlockColorsStyleSelector:()=>YC,BlockContextProvider:()=>ff,BlockControls:()=>Bl,BlockEdit:()=>yf,BlockEditorKeyboardShortcuts:()=>D_,BlockEditorProvider:()=>V_,BlockFormatControls:()=>xl,BlockIcon:()=>qh,BlockInspector:()=>XT,BlockList:()=>Xw,BlockMover:()=>bS,BlockNavigationDropdown:()=>Rx,BlockPreview:()=>Ty,BlockSelectionClearer:()=>H_,BlockSettingsMenu:()=>yC,BlockSettingsMenuControls:()=>jh,BlockStyles:()=>Ax,BlockTitle:()=>pf,BlockToolbar:()=>zC,BlockTools:()=>$C,BlockVerticalAlignmentControl:()=>pi,BlockVerticalAlignmentToolbar:()=>mi,ButtonBlockAppender:()=>uw,ButtonBlockerAppender:()=>cw,ColorPalette:()=>aB,ColorPaletteControl:()=>cB,ContrastChecker:()=>pd,CopyHandler:()=>JT,DefaultBlockAppender:()=>sw,FontSizePicker:()=>kg,HeadingLevelDropdown:()=>Fx,HeightControl:()=>Kp,InnerBlocks:()=>Gw,Inserter:()=>lw,InspectorAdvancedControls:()=>xs,InspectorControls:()=>Bs,JustifyContentControl:()=>fi,JustifyToolbar:()=>bi,LineHeightControl:()=>Vd,MediaPlaceholder:()=>cI,MediaReplaceFlow:()=>ec,MediaUpload:()=>Gs,MediaUploadCheck:()=>Us,MultiSelectScrollIntoView:()=>nM,NavigableToolbar:()=>NC,ObserveTyping:()=>Ww,PanelColorSettings:()=>uI,PlainText:()=>YI,RecursionProvider:()=>cM,ReusableBlocksRenameHint:()=>CM,RichText:()=>KI,RichTextShortcut:()=>JI,RichTextToolbarButton:()=>eT,SETTINGS_DEFAULTS:()=>I,SkipToSelectedBlock:()=>bT,ToolSelector:()=>oT,Typewriter:()=>sM,URLInput:()=>ta,URLInputButton:()=>sT,URLPopover:()=>lI,Warning:()=>wf,WritingFlow:()=>sy,__experimentalBlockAlignmentMatrixControl:()=>uf,__experimentalBlockFullHeightAligmentControl:()=>af,__experimentalBlockPatternSetup:()=>nB,__experimentalBlockPatternsList:()=>rE,__experimentalBlockVariationPicker:()=>Gx,__experimentalBlockVariationTransforms:()=>iB,__experimentalBorderRadiusControl:()=>cu,__experimentalColorGradientControl:()=>Xu,__experimentalColorGradientSettingsDropdown:()=>bB,__experimentalDateFormatPicker:()=>pB,__experimentalDuotoneControl:()=>Fm,__experimentalFontAppearanceControl:()=>Dd,__experimentalFontFamilyControl:()=>Nd,__experimentalGetBorderClassesAndStyles:()=>rg,__experimentalGetColorClassesAndStyles:()=>sg,__experimentalGetElementClassName:()=>BM,__experimentalGetGapCSSValue:()=>oi,__experimentalGetGradientClass:()=>Gu,__experimentalGetGradientObjectByGradientValue:()=>$u,__experimentalGetShadowClassesAndStyles:()=>ig,__experimentalGetSpacingClassesAndStyles:()=>cg,__experimentalImageEditor:()=>QB,__experimentalImageSizeControl:()=>tI,__experimentalImageURLInputUI:()=>hT,__experimentalInspectorPopoverHeader:()=>hM,__experimentalLetterSpacingControl:()=>Fd,__experimentalLibrary:()=>tM,__experimentalLinkControl:()=>Xa,__experimentalLinkControlSearchInput:()=>Ra,__experimentalLinkControlSearchItem:()=>ba,__experimentalLinkControlSearchResults:()=>Sa,__experimentalListView:()=>Mx,__experimentalPanelColorGradientSettings:()=>yB,__experimentalPreviewOptions:()=>gT,__experimentalPublishDateTimePicker:()=>gM,__experimentalRecursionProvider:()=>dM,__experimentalResponsiveBlockControl:()=>QI,__experimentalSpacingSizesControl:()=>jp,__experimentalTextDecorationControl:()=>Yd,__experimentalTextTransformControl:()=>Wd,__experimentalUnitControl:()=>rT,__experimentalUseBlockOverlayActive:()=>hf,__experimentalUseBlockPreview:()=>My,__experimentalUseBorderProps:()=>lg,__experimentalUseColorProps:()=>ag,__experimentalUseCustomSides:()=>Bm,__experimentalUseGradient:()=>Wu,__experimentalUseHasRecursion:()=>pM,__experimentalUseMultipleOriginColorsAndGradients:()=>qc,__experimentalUseResizeCanvas:()=>fT,__experimentalWritingModeControl:()=>ep,__unstableBlockNameContext:()=>TC,__unstableBlockSettingsMenuFirstItem:()=>gC,__unstableBlockToolbarLastItem:()=>QS,__unstableEditorStyles:()=>wy,__unstableIframe:()=>py,__unstableInserterMenuExtension:()=>WE,__unstableRichTextInputEvent:()=>tT,__unstableUseBlockSelectionClearer:()=>F_,__unstableUseClipboardHandler:()=>QT,__unstableUseMouseMoveTypingReset:()=>$w,__unstableUseTypewriter:()=>iM,__unstableUseTypingObserver:()=>jw,createCustomColorsHOC:()=>bg,getColorClassName:()=>Zc,getColorObjectByAttributeValues:()=>Wc,getColorObjectByColorValue:()=>Kc,getComputedFluidTypographyValue:()=>Ur,getCustomValueFromPreset:()=>Ql,getFontSize:()=>Ep,getFontSizeClass:()=>Sp,getFontSizeObjectByValue:()=>wp,getGradientSlugByValue:()=>ju,getGradientValueBySlug:()=>Uu,getPxFromCssUnit:()=>IM,getSpacingPresetCssVar:()=>ei,getTypographyClassesAndStyles:()=>ug,isValueSpacingPreset:()=>Xl,privateApis:()=>HR,store:()=>Nr,storeConfig:()=>Rr,transformStyles:()=>yy,useBlockCommands:()=>wM,useBlockDisplayInformation:()=>ih,useBlockEditContext:()=>y,useBlockEditingMode:()=>ns,useBlockProps:()=>y_,useCachedTruthy:()=>dg,useHasRecursion:()=>uM,useInnerBlocksProps:()=>Hw,useSetting:()=>Or,useSettings:()=>Ar,withColorContext:()=>sB,withColors:()=>vg,withFontSizes:()=>Eg});var e={};n.r(e),n.d(e,{__experimentalGetActiveBlockIdByBlockNames:()=>dn,__experimentalGetAllowedBlocks:()=>Ht,__experimentalGetAllowedPatterns:()=>Wt,__experimentalGetBlockListSettingsForBlocks:()=>Jt,__experimentalGetDirectInsertBlock:()=>Ut,__experimentalGetGlobalBlocksByName:()=>ye,__experimentalGetLastBlockAttributeChanges:()=>nn,__experimentalGetParsedPattern:()=>$t,__experimentalGetPatternTransformItems:()=>qt,__experimentalGetPatternsByBlockTypes:()=>Zt,__experimentalGetReusableBlockTitle:()=>en,__unstableGetBlockWithoutInnerBlocks:()=>me,__unstableGetClientIdWithClientIdsTree:()=>ge,__unstableGetClientIdsTree:()=>fe,__unstableGetContentLockingParent:()=>gn,__unstableGetEditorMode:()=>ln,__unstableGetSelectedBlocksWithPartialSelection:()=>nt,__unstableGetTemporarilyEditingAsBlocks:()=>fn,__unstableGetTemporarilyEditingFocusModeToRevert:()=>bn,__unstableGetVisibleBlocks:()=>hn,__unstableHasActiveBlockOverlayActive:()=>vn,__unstableIsFullySelected:()=>Qe,__unstableIsLastBlockChangeIgnored:()=>tn,__unstableIsSelectionCollapsed:()=>Je,__unstableIsSelectionMergeable:()=>tt,__unstableIsWithinBlockOverlay:()=>kn,__unstableSelectionHasUnmergeableBlock:()=>et,areInnerBlocksControlled:()=>un,canEditBlock:()=>Pt,canInsertBlockType:()=>Ct,canInsertBlocks:()=>xt,canLockBlockType:()=>Rt,canMoveBlock:()=>Tt,canMoveBlocks:()=>Mt,canRemoveBlock:()=>Bt,canRemoveBlocks:()=>It,didAutomaticChange:()=>an,getAdjacentBlockClientId:()=>ze,getAllowedBlocks:()=>Ft,getBlock:()=>pe,getBlockAttributes:()=>de,getBlockCount:()=>Se,getBlockEditingMode:()=>_n,getBlockHierarchyRootClientId:()=>Oe,getBlockIndex:()=>rt,getBlockInsertionPoint:()=>kt,getBlockListSettings:()=>Yt,getBlockMode:()=>pt,getBlockName:()=>ce,getBlockNamesByClientId:()=>we,getBlockOrder:()=>ot,getBlockParents:()=>Le,getBlockParentsByBlockName:()=>Ae,getBlockRootClientId:()=>Ne,getBlockSelectionEnd:()=>Ie,getBlockSelectionStart:()=>Be,getBlockTransformItems:()=>zt,getBlocks:()=>he,getBlocksByClientId:()=>Ee,getBlocksByName:()=>_e,getClientIdsOfDescendants:()=>be,getClientIdsWithDescendants:()=>ve,getDirectInsertBlock:()=>Gt,getDraggedBlockClientIds:()=>gt,getFirstMultiSelectedBlockClientId:()=>je,getGlobalBlockCount:()=>ke,getInserterItems:()=>Dt,getLastMultiSelectedBlockClientId:()=>We,getLowestCommonAncestorWithSelectedBlock:()=>De,getMultiSelectedBlockClientIds:()=>Ue,getMultiSelectedBlocks:()=>$e,getMultiSelectedBlocksEndClientId:()=>Xe,getMultiSelectedBlocksStartClientId:()=>Ye,getNextBlockClientId:()=>Fe,getPatternsByBlockTypes:()=>Kt,getPreviousBlockClientId:()=>Ve,getSelectedBlock:()=>Re,getSelectedBlockClientId:()=>Pe,getSelectedBlockClientIds:()=>Ge,getSelectedBlockCount:()=>Te,getSelectedBlocksInitialCaretPosition:()=>He,getSelectionEnd:()=>xe,getSelectionStart:()=>Ce,getSettings:()=>Xt,getTemplate:()=>Et,getTemplateLock:()=>wt,hasBlockMovingClientId:()=>sn,hasDraggedInnerBlock:()=>st,hasInserterItems:()=>Vt,hasMultiSelection:()=>ct,hasSelectedBlock:()=>Me,hasSelectedInnerBlock:()=>it,isAncestorBeingDragged:()=>bt,isAncestorMultiSelected:()=>qe,isBlockBeingDragged:()=>ft,isBlockHighlighted:()=>cn,isBlockInsertionPointVisible:()=>_t,isBlockMultiSelected:()=>Ze,isBlockSelected:()=>lt,isBlockValid:()=>ue,isBlockVisible:()=>mn,isBlockWithinSelection:()=>at,isCaretWithinFormattedText:()=>vt,isDraggingBlocks:()=>ht,isFirstMultiSelectedBlock:()=>Ke,isGroupable:()=>En,isLastBlockChangePersistent:()=>Qt,isMultiSelecting:()=>ut,isNavigationMode:()=>rn,isSelectionEnabled:()=>dt,isTyping:()=>mt,isUngroupable:()=>yn,isValidTemplate:()=>yt,wasBlockJustInserted:()=>pn});var t={};n.r(t),n.d(t,{__experimentalUpdateSettings:()=>Cn,clearBlockRemovalPrompt:()=>Mn,deleteStyleOverride:()=>Ln,ensureDefaultBlock:()=>Tn,hideBlockInterface:()=>xn,privateRemoveBlocks:()=>In,setBlockRemovalRules:()=>Pn,setLastFocus:()=>On,setOpenedBlockSettingsMenu:()=>Rn,setStyleOverride:()=>Nn,showBlockInterface:()=>Bn,startDragging:()=>zn,stopDragging:()=>Vn,stopEditingAsBlocks:()=>Dn,syncDerivedUpdates:()=>An});var r={};n.r(r),n.d(r,{getAllPatterns:()=>go,getBlockRemovalRules:()=>ao,getBlockSettings:()=>eo,getBlockWithoutAttributes:()=>oo,getEnabledBlockParents:()=>io,getEnabledClientIdsTree:()=>lo,getInserterMediaCategories:()=>mo,getLastFocus:()=>fo,getLastInsertedBlocksClientIds:()=>no,getOpenedBlockSettingsMenu:()=>co,getRegisteredInserterMediaCategories:()=>po,getRemovalPromptData:()=>so,getStyleOverrides:()=>uo,hasAllowedPatterns:()=>ho,isBlockInterfaceHidden:()=>to,isBlockSubtreeDisabled:()=>ro,isDragging:()=>bo});var l={};n.r(l),n.d(l,{__unstableDeleteSelection:()=>Yo,__unstableExpandSelection:()=>Qo,__unstableMarkAutomaticChange:()=>br,__unstableMarkLastChangeAsPersistent:()=>gr,__unstableMarkNextChangeAsNotPersistent:()=>fr,__unstableSaveReusableBlock:()=>hr,__unstableSetEditorMode:()=>kr,__unstableSetTemporarilyEditingAsBlocks:()=>Ir,__unstableSplitSelection:()=>Xo,clearSelectedBlock:()=>Lo,duplicateBlocks:()=>yr,enterFormattedText:()=>ar,exitFormattedText:()=>cr,flashBlock:()=>Cr,hideInsertionPoint:()=>Ko,insertAfterBlock:()=>wr,insertBeforeBlock:()=>Er,insertBlock:()=>$o,insertBlocks:()=>jo,insertDefaultBlock:()=>dr,mergeBlocks:()=>Jo,moveBlockToPosition:()=>Uo,moveBlocksDown:()=>Fo,moveBlocksToPosition:()=>Go,moveBlocksUp:()=>Ho,multiSelect:()=>No,receiveBlocks:()=>Co,registerInserterMediaCategory:()=>Tr,removeBlock:()=>tr,removeBlocks:()=>er,replaceBlock:()=>zo,replaceBlocks:()=>Do,replaceInnerBlocks:()=>nr,resetBlocks:()=>Eo,resetSelection:()=>So,selectBlock:()=>Io,selectNextBlock:()=>Mo,selectPreviousBlock:()=>To,selectionChange:()=>ur,setBlockEditingMode:()=>Mr,setBlockMovingClientId:()=>_r,setBlockVisibility:()=>Br,setHasControlledInnerBlocks:()=>xr,setNavigationMode:()=>vr,setTemplateValidity:()=>Zo,showInsertionPoint:()=>Wo,startDraggingBlocks:()=>ir,startMultiSelect:()=>Po,startTyping:()=>rr,stopDraggingBlocks:()=>sr,stopMultiSelect:()=>Ro,stopTyping:()=>lr,synchronizeTemplate:()=>qo,toggleBlockHighlight:()=>Sr,toggleBlockMode:()=>or,toggleSelection:()=>Ao,unsetBlockEditingMode:()=>Pr,updateBlock:()=>Bo,updateBlockAttributes:()=>xo,updateBlockListSettings:()=>pr,updateSettings:()=>mr,validateBlocksToTemplate:()=>wo});var i={};n.r(i),n.d(i,{AdvancedPanel:()=>KM,BorderPanel:()=>Bu,ColorPanel:()=>dd,DimensionsPanel:()=>mm,FiltersPanel:()=>Jm,GlobalStylesContext:()=>ol,ImageSettingsPanel:()=>WM,TypographyPanel:()=>gp,areGlobalStyleConfigsEqual:()=>nl,getBlockCSSSelector:()=>$m,getGlobalStylesChanges:()=>tP,getLayoutStyles:()=>LM,useGlobalSetting:()=>sl,useGlobalStyle:()=>al,useGlobalStylesOutput:()=>$M,useGlobalStylesOutputWithConfig:()=>UM,useGlobalStylesReset:()=>il,useHasBorderPanel:()=>vu,useHasBorderPanelControls:()=>ku,useHasColorPanel:()=>Qu,useHasDimensionsPanel:()=>em,useHasFiltersPanel:()=>Km,useHasImageSettingsPanel:()=>jM,useHasTypographyPanel:()=>op,useSettingsForBlockElement:()=>cl});var s=n(1609),a=n.n(s);const c=window.wp.blocks,u=window.wp.element,d=window.wp.data,p=window.wp.compose,m=window.wp.hooks,h=Symbol("mayDisplayControls"),g=Symbol("mayDisplayParentControls"),f=Symbol("blockEditingMode"),b=Symbol("blockBindings"),v={name:"",isSelected:!1},k=(0,u.createContext)(v),{Provider:_}=k;function y(){return(0,u.useContext)(k)}const E=window.wp.deprecated;var w=n.n(E),S=n(7734),C=n.n(S);const x=window.wp.i18n,B={insertUsage:{}},I={alignWide:!1,supportsLayout:!0,colors:[{name:(0,x.__)("Black"),slug:"black",color:"#000000"},{name:(0,x.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,x.__)("White"),slug:"white",color:"#ffffff"},{name:(0,x.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,x.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,x.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,x.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,x.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,x.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,x.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,x.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,x.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,x._x)("Small","font size name"),size:13,slug:"small"},{name:(0,x._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,x._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,x._x)("Large","font size name"),size:36,slug:"large"},{name:(0,x._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,x.__)("Thumbnail")},{slug:"medium",name:(0,x.__)("Medium")},{slug:"large",name:(0,x.__)("Large")},{slug:"full",name:(0,x.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,enableOpenverseMediaCategory:!0,clearBlockSelection:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__unstableGalleryWithImageBlocks:!1,__unstableIsPreviewMode:!1,blockInspectorAnimation:{animationParent:"core/navigation","core/navigation":{enterDirection:"leftToRight"},"core/navigation-submenu":{enterDirection:"rightToLeft"},"core/navigation-link":{enterDirection:"rightToLeft"},"core/search":{enterDirection:"rightToLeft"},"core/social-links":{enterDirection:"rightToLeft"},"core/page-list":{enterDirection:"rightToLeft"},"core/spacer":{enterDirection:"rightToLeft"},"core/home-link":{enterDirection:"rightToLeft"},"core/site-title":{enterDirection:"rightToLeft"},"core/site-logo":{enterDirection:"rightToLeft"}},generateAnchors:!1,gradients:[{name:(0,x.__)("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:(0,x.__)("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:(0,x.__)("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:(0,x.__)("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:(0,x.__)("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:(0,x.__)("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:(0,x.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,x.__)("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:(0,x.__)("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:(0,x.__)("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:(0,x.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,x.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function T(e,t,n){return[...e.slice(0,n),...Array.isArray(t)?t:[t],...e.slice(n)]}function M(e,t,n,o=1){const r=[...e];return r.splice(t,o),T(r,e.slice(t,t+o),n)}const P=e=>e;function R(e,t=""){const n=new Map,o=[];return n.set(t,o),e.forEach((e=>{const{clientId:t,innerBlocks:r}=e;o.push(t),R(r,t).forEach(((e,t)=>{n.set(t,e)}))})),n}function N(e,t=""){const n=[],o=[[t,e]];for(;o.length;){const[e,t]=o.shift();t.forEach((({innerBlocks:t,...r})=>{n.push([r.clientId,e]),t?.length&&o.push([r.clientId,t])}))}return n}function L(e,t=P){const n=[],o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n.push([r.clientId,t(r)])}return n}function A(e){return L(e,(e=>{const{attributes:t,...n}=e;return n}))}function O(e){return L(e,(e=>e.attributes))}function D(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&C()(e.clientIds,t.clientIds)&&function(e,t){return C()(Object.keys(e),Object.keys(t))}(e.attributes,t.attributes)}function z(e,t){const n=e.tree,o=[...t],r=[...t];for(;o.length;){const e=o.shift();o.push(...e.innerBlocks),r.push(...e.innerBlocks)}for(const e of r)n.set(e.clientId,{});for(const t of r)n.set(t.clientId,Object.assign(n.get(t.clientId),{...e.byClientId.get(t.clientId),attributes:e.attributes.get(t.clientId),innerBlocks:t.innerBlocks.map((e=>n.get(e.clientId)))}))}function V(e,t,n=!1){const o=e.tree,r=new Set([]),l=new Set;for(const o of t){let t=n?o:e.parents.get(o);do{if(e.controlledInnerBlocks[t]){l.add(t);break}r.add(t),t=e.parents.get(t)}while(void 0!==t)}for(const e of r)o.set(e,{...o.get(e)});for(const t of r)o.get(t).innerBlocks=(e.order.get(t)||[]).map((e=>o.get(e)));for(const t of l)o.set("controlled||"+t,{innerBlocks:(e.order.get(t)||[]).map((e=>o.get(e)))})}const F=(0,p.pipe)(d.combineReducers,(e=>(t,n)=>{if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){const{id:e,updatedId:o}=n;if(e===o)return t;(t={...t}).attributes=new Map(t.attributes),t.attributes.forEach(((n,r)=>{const{name:l}=t.byClientId.get(r);"core/block"===l&&n.ref===e&&t.attributes.set(r,{...n,ref:o})}))}return e(t,n)}),(e=>(t={},n)=>{const o=e(t,n);if(o===t)return t;switch(o.tree=t.tree?t.tree:new Map,n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":o.tree=new Map(o.tree),z(o,n.blocks),V(o,n.rootClientId?[n.rootClientId]:[""],!0);break;case"UPDATE_BLOCK":o.tree=new Map(o.tree),o.tree.set(n.clientId,{...o.tree.get(n.clientId),...o.byClientId.get(n.clientId),attributes:o.attributes.get(n.clientId)}),V(o,[n.clientId],!1);break;case"SYNC_DERIVED_BLOCK_ATTRIBUTES":case"UPDATE_BLOCK_ATTRIBUTES":o.tree=new Map(o.tree),n.clientIds.forEach((e=>{o.tree.set(e,{...o.tree.get(e),attributes:o.attributes.get(e)})})),V(o,n.clientIds,!1);break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=function(e){const t={},n=[...e];for(;n.length;){const{innerBlocks:e,...o}=n.shift();n.push(...e),t[o.clientId]=!0}return t}(n.blocks);o.tree=new Map(o.tree),n.replacedClientIds.concat(n.replacedClientIds.filter((t=>!e[t])).map((e=>"controlled||"+e))).forEach((e=>{o.tree.delete(e)})),z(o,n.blocks),V(o,n.blocks.map((e=>e.clientId)),!1);const r=[];for(const e of n.clientIds)void 0===t.parents.get(e)||""!==t.parents.get(e)&&!o.byClientId.get(t.parents.get(e))||r.push(t.parents.get(e));V(o,r,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const r of n.clientIds)void 0===t.parents.get(r)||""!==t.parents.get(r)&&!o.byClientId.get(t.parents.get(r))||e.push(t.parents.get(r));o.tree=new Map(o.tree),n.removedClientIds.concat(n.removedClientIds.map((e=>"controlled||"+e))).forEach((e=>{o.tree.delete(e)})),V(o,e,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const e=[];n.fromRootClientId?e.push(n.fromRootClientId):e.push(""),n.toRootClientId&&e.push(n.toRootClientId),o.tree=new Map(o.tree),V(o,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];o.tree=new Map(o.tree),V(o,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=[];o.attributes.forEach(((t,r)=>{"core/block"===o.byClientId.get(r).name&&t.ref===n.updatedId&&e.push(r)})),o.tree=new Map(o.tree),e.forEach((e=>{o.tree.set(e,{...o.byClientId.get(e),attributes:o.attributes.get(e),innerBlocks:o.tree.get(e).innerBlocks})})),V(o,e,!1)}}return o}),(e=>(t,n)=>{const o=e=>{let o=e;for(let r=0;r<o.length;r++)!t.order.get(o[r])||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[o[r]]||(o===e&&(o=[...o]),o.push(...t.order.get(o[r])));return o};if(t)switch(n.type){case"REMOVE_BLOCKS":n={...n,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:o(n.clientIds)};break;case"REPLACE_BLOCKS":n={...n,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:o(n.clientIds)}}return e(t,n)}),(e=>(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...r}=e.shift();e.push(...n),t.controlledInnerBlocks[r.clientId]&&(o[r.clientId]=!0)}}let r=t;t.order.get(n.rootClientId)&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order.get(n.rootClientId)}));let l=r;if(n.blocks.length){l=e(l,{...n,type:"INSERT_BLOCKS",index:0});const r=new Map(l.order);Object.keys(o).forEach((e=>{t.order.get(e)&&r.set(e,t.order.get(e))})),l.order=r,l.tree=new Map(l.tree),Object.keys(o).forEach((e=>{const n=`controlled||${e}`;t.tree.has(n)&&l.tree.set(n,t.tree.get(n))}))}return l}),(e=>(t,n)=>{if("RESET_BLOCKS"===n.type){const e={...t,byClientId:new Map(A(n.blocks)),attributes:new Map(O(n.blocks)),order:R(n.blocks),parents:new Map(N(n.blocks)),controlledInnerBlocks:{}};return e.tree=new Map(t?.tree),z(e,n.blocks),e.tree.set("",{innerBlocks:n.blocks.map((t=>e.tree.get(t.clientId)))}),e}return e(t,n)}),(function(e){let t,n,o=!1;return(r,l)=>{let i,s=e(r,l);var a;"SET_EXPLICIT_PERSISTENT"===l.type&&(n=l.isPersistentChange,i=null===(a=r.isPersistentChange)||void 0===a||a);if(void 0!==n)return i=n,i===s.isPersistentChange?s:{...s,isPersistentChange:i};const c="MARK_LAST_CHANGE_AS_PERSISTENT"===l.type||o;var u;return r!==s||c?(s={...s,isPersistentChange:c?!o:!D(l,t)},t=l,o="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===l.type,s):(o="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===l.type,i=null===(u=r?.isPersistentChange)||void 0===u||u,r.isPersistentChange===i?r:{...s,isPersistentChange:i})}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const r=e(n,o);return r!==n&&(r.isIgnoredChange=t.has(o.type)),r}}),(e=>(t,n)=>{if("SET_HAS_CONTROLLED_INNER_BLOCKS"===n.type){const o=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:n.clientId,blocks:[]});return e(o,n)}return e(t,n)}))({byClientId(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return A(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"UPDATE_BLOCK":{if(!e.has(t.clientId))return e;const{attributes:n,...o}=t.updates;if(0===Object.values(o).length)return e;const r=new Map(e);return r.set(t.clientId,{...e.get(t.clientId),...o}),r}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),A(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},attributes(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return O(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"UPDATE_BLOCK":{if(!e.get(t.clientId)||!t.updates.attributes)return e;const n=new Map(e);return n.set(t.clientId,{...e.get(t.clientId),...t.updates.attributes}),n}case"SYNC_DERIVED_BLOCK_ATTRIBUTES":case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every((t=>!e.get(t))))return e;let o=!1;const r=new Map(e);for(const l of t.clientIds){var n;const i=Object.entries(t.uniqueByBlock?t.attributes[l]:null!==(n=t.attributes)&&void 0!==n?n:{});if(0===i.length)continue;let s=!1;const a=e.get(l),c={};i.forEach((([e,t])=>{a[e]!==t&&(s=!0,c[e]=t)})),o=o||s,s&&r.set(l,{...a,...c})}return o?r:e}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),O(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},order(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{var n;const o=R(t.blocks),r=new Map(e);return o.forEach(((e,t)=>{""!==t&&r.set(t,e)})),r.set("",(null!==(n=e.get(""))&&void 0!==n?n:[]).concat(o[""])),r}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e.get(n)||[],r=R(t.blocks,n),{index:l=o.length}=t,i=new Map(e);return r.forEach(((e,t)=>{i.set(t,e)})),i.set(n,T(o,r.get(n),l)),i}case"MOVE_BLOCKS_TO_POSITION":{var o;const{fromRootClientId:n="",toRootClientId:r="",clientIds:l}=t,{index:i=e.get(r).length}=t;if(n===r){const t=e.get(r).indexOf(l[0]),n=new Map(e);return n.set(r,M(e.get(r),t,i,l.length)),n}const s=new Map(e);return s.set(n,null!==(o=e.get(n)?.filter((e=>!l.includes(e))))&&void 0!==o?o:[]),s.set(r,T(e.get(r),l,i)),s}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=n[0],l=e.get(o);if(!l.length||r===l[0])return e;const i=l.indexOf(r),s=new Map(e);return s.set(o,M(l,i,i-1,n.length)),s}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=n[0],l=n[n.length-1],i=e.get(o);if(!i.length||l===i[i.length-1])return e;const s=i.indexOf(r),a=new Map(e);return a.set(o,M(i,s,s+1,n.length)),a}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=R(t.blocks),r=new Map(e);return t.replacedClientIds.forEach((e=>{r.delete(e)})),o.forEach(((e,t)=>{""!==t&&r.set(t,e)})),r.forEach(((e,t)=>{const l=Object.values(e).reduce(((e,t)=>t===n[0]?[...e,...o.get("")]:(-1===n.indexOf(t)&&e.push(t),e)),[]);r.set(t,l)})),r}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n.forEach(((e,o)=>{var r;const l=null!==(r=e?.filter((e=>!t.removedClientIds.includes(e))))&&void 0!==r?r:[];l.length!==e.length&&n.set(o,l)})),n}}return e},parents(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{const n=new Map(e);return N(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"INSERT_BLOCKS":{const n=new Map(e);return N(t.blocks,t.rootClientId||"").forEach((([e,t])=>{n.set(e,t)})),n}case"MOVE_BLOCKS_TO_POSITION":{const n=new Map(e);return t.clientIds.forEach((e=>{n.set(e,t.toRootClientId||"")})),n}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),N(t.blocks,e.get(t.clientIds[0])).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},controlledInnerBlocks:(e={},{type:t,clientId:n,hasControlledInnerBlocks:o})=>"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e});function H(e={},t){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;const n=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return n?n.clientId===e.clientId?e:{clientId:n.clientId}:{}}}return e}const G=(0,d.combineReducers)({blocks:F,isDragging:function(e=!1,t){switch(t.type){case"START_DRAGGING":return!0;case"STOP_DRAGGING":return!1}return e},isTyping:function(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isBlockInterfaceHidden:function(e=!1,t){switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e},draggedBlocks:function(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},selection:function(e={},t){switch(t.type){case"SELECTION_CHANGE":return t.clientId?{selectionStart:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},selectionEnd:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}}:{selectionStart:t.start||e.selectionStart,selectionEnd:t.end||e.selectionEnd};case"RESET_SELECTION":const{selectionStart:n,selectionEnd:o}=t;return{selectionStart:n,selectionEnd:o};case"MULTI_SELECT":const{start:r,end:l}=t;return r===e.selectionStart?.clientId&&l===e.selectionEnd?.clientId?e:{selectionStart:{clientId:r},selectionEnd:{clientId:l}};case"RESET_BLOCKS":const i=e?.selectionStart?.clientId,s=e?.selectionEnd?.clientId;if(!i&&!s)return e;if(!t.blocks.some((e=>e.clientId===i)))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some((e=>e.clientId===s)))return{...e,selectionEnd:e.selectionStart}}const n=H(e.selectionStart,t),o=H(e.selectionEnd,t);return n===e.selectionStart&&o===e.selectionEnd?e:{selectionStart:n,selectionEnd:o}},isMultiSelecting:function(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(e=!0,t){return"TOGGLE_SELECTION"===t.type?t.isSelectionEnabled:e},initialPosition:function(e=null,t){return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["MULTI_SELECT","SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(e={},t){if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:(e={},t)=>{switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object.fromEntries(Object.entries(e).filter((([e])=>!t.clientIds.includes(e))));case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;if(!t.settings){if(e.hasOwnProperty(n)){const{[n]:t,...o}=e;return o}return e}return C()(e[n],t.settings)?e:{...e,[n]:t.settings}}}return e},insertionPoint:function(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":{const{rootClientId:n,index:o,__unstableWithInserter:r,operation:l,nearestSide:i}=t,s={rootClientId:n,index:o,__unstableWithInserter:r,operation:l,nearestSide:i};return C()(e,s)?e:s}case"HIDE_INSERTION_POINT":return null}return e},template:function(e={isValid:!0},t){return"SET_TEMPLATE_VALIDITY"===t.type?{...e,isValid:t.isValid}:e},settings:function(e=I,t){return"UPDATE_SETTINGS"===t.type?t.reset?{...I,...t.settings}:{...e,...t.settings}:e},preferences:function(e=B,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce(((e,n)=>{const{attributes:o,name:r}=n;let l=r;const i=(0,d.select)(c.store).getActiveBlockVariation(r,o);return i?.name&&(l+="/"+i.name),"core/block"===r&&(l+="/"+o.ref),{...e,insertUsage:{...e.insertUsage,[l]:{time:t.time,count:e.insertUsage[l]?e.insertUsage[l].count+1:1}}}}),e)}return e},lastBlockAttributesChange:function(e=null,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce(((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes})),{})}return e},lastFocus:function(e=!1,t){return"LAST_FOCUS"===t.type?t.lastFocus:e},editorMode:function(e="edit",t){return"INSERT_BLOCKS"===t.type&&"navigation"===e?"edit":"SET_EDITOR_MODE"===t.type?t.mode:e},hasBlockMovingClientId:function(e=null,t){return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_EDITOR_MODE"===t.type?null:e},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(e={},t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":if(!t.blocks.length)return e;const n=t.blocks.map((e=>e.clientId)),o=t.meta?.source;return{clientIds:n,source:o};case"RESET_BLOCKS":return{}}return e},temporarilyEditingAsBlocks:function(e="",t){return"SET_TEMPORARILY_EDITING_AS_BLOCKS"===t.type?t.temporarilyEditingAsBlocks:e},temporarilyEditingFocusModeRevert:function(e="",t){return"SET_TEMPORARILY_EDITING_AS_BLOCKS"===t.type?t.focusModeToRevert:e},blockVisibility:function(e={},t){return"SET_BLOCK_VISIBILITY"===t.type?{...e,...t.updates}:e},blockEditingModes:function(e=new Map,t){switch(t.type){case"SET_BLOCK_EDITING_MODE":return new Map(e).set(t.clientId,t.mode);case"UNSET_BLOCK_EDITING_MODE":{const n=new Map(e);return n.delete(t.clientId),n}case"RESET_BLOCKS":return e.has("")?(new Map).set("",e.get("")):e}return e},styleOverrides:function(e=new Map,t){switch(t.type){case"SET_STYLE_OVERRIDE":return new Map(e).set(t.id,t.style);case"DELETE_STYLE_OVERRIDE":{const n=new Map(e);return n.delete(t.id),n}}return e},removalPromptData:function(e=!1,t){switch(t.type){case"DISPLAY_BLOCK_REMOVAL_PROMPT":const{clientIds:e,selectPrevious:n,blockNamesForPrompt:o,messageType:r}=t;return{clientIds:e,selectPrevious:n,blockNamesForPrompt:o,messageType:r};case"CLEAR_BLOCK_REMOVAL_PROMPT":return!1}return e},blockRemovalRules:function(e=!1,t){return"SET_BLOCK_REMOVAL_RULES"===t.type?t.rules:e},openedBlockSettingsMenu:function(e=null,t){var n;return"SET_OPENED_BLOCK_SETTINGS_MENU"===t.type?null!==(n=t?.clientId)&&void 0!==n?n:null:e},registeredInserterMediaCategories:function(e=[],t){return"REGISTER_INSERTER_MEDIA_CATEGORY"===t.type?[...e,t.category]:e}});const U=function(e){return(t,n)=>{const o=e(t,n);return t?(o.automaticChangeStatus=t.automaticChangeStatus,"MARK_AUTOMATIC_CHANGE"===n.type?{...o,automaticChangeStatus:"pending"}:"MARK_AUTOMATIC_CHANGE_FINAL"===n.type&&"pending"===t.automaticChangeStatus?{...o,automaticChangeStatus:"final"}:o.blocks===t.blocks&&o.selection===t.selection||"final"!==o.automaticChangeStatus&&o.selection!==t.selection?o:{...o,automaticChangeStatus:void 0}):o}}(G);var $={};function j(e){return[e]}function W(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}function K(e,t){var n,o=t||j;function r(){n=new WeakMap}function l(){var t,r,l,i,s,a=arguments.length;for(i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];for(t=function(e){var t,o,r,l,i,s=n,a=!0;for(t=0;t<e.length;t++){if(!(i=o=e[t])||"object"!=typeof i){a=!1;break}s.has(o)?s=s.get(o):(r=new WeakMap,s.set(o,r),s=r)}return s.has($)||((l=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=a,s.set($,l)),s.get($)}(s=o.apply(null,i)),t.isUniqueByDependants||(t.lastDependants&&!W(s,t.lastDependants,0)&&t.clear(),t.lastDependants=s),r=t.head;r;){if(W(r.args,i,1))return r!==t.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=t.head,r.prev=null,t.head.prev=r,t.head=r),r.val;r=r.next}return r={val:e.apply(null,i)},i[0]=null,r.args=i,t.head&&(t.head.prev=r,r.next=t.head),t.head=r,r.val}return l.getDependants=o,l.clear=r,r(),l}const Z=window.wp.primitives,q=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),Y=window.wp.richText,X=Symbol("selectBlockPatternsKey"),Q=(e,t,n=null)=>"boolean"==typeof e?e:Array.isArray(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n,J=(e,t)=>{if("boolean"==typeof t)return t;const n=[...e];for(;n.length>0;){const e=n.shift();if(!Q(t,e.name||e.blockName,!0))return!1;e.innerBlocks?.forEach((e=>{n.push(e)}))}return!0},ee=e=>t=>[t.settings.__experimentalBlockPatterns,t.settings.__experimentalUserPatternCategories,t.settings.__experimentalReusableBlocks,t.settings[X]?.(e),t.blockPatterns],te=(e,t,n)=>(o,r)=>{let l,i;if("function"==typeof e?(l=e(o),i=e(r)):(l=o[e],i=r[e]),l>i)return"asc"===n?1:-1;if(i>l)return"asc"===n?-1:1;const s=t.findIndex((e=>e===o)),a=t.findIndex((e=>e===r));return s>a?1:a>s?-1:0};function ne(e,t,n="asc"){return e.concat().sort(te(t,e,n))}const oe="core/block-editor",re=window.wp.privateApis,{lock:le,unlock:ie}=(0,re.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/block-editor"),se=[],ae=new Set;function ce(e,t){const n=e.blocks.byClientId.get(t),o="core/social-link";if("web"!==u.Platform.OS&&n?.name===o){const n=e.blocks.attributes.get(t),{service:r}=null!=n?n:{};return r?`${o}-${r}`:o}return n?n.name:null}function ue(e,t){const n=e.blocks.byClientId.get(t);return!!n&&n.isValid}function de(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function pe(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}const me=K(((e,t)=>{const n=e.blocks.byClientId.get(t);return n?{...n,attributes:de(e,t)}:null}),((e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]));function he(e,t){const n=t&&un(e,t)?"controlled||"+t:t||"";return e.blocks.tree.get(n)?.innerBlocks||se}const ge=K(((e,t)=>(w()("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),{clientId:t,innerBlocks:fe(e,t)})),(e=>[e.blocks.order])),fe=K(((e,t="")=>(w()("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),ot(e,t).map((t=>ge(e,t))))),(e=>[e.blocks.order])),be=K(((e,t)=>{t=Array.isArray(t)?[...t]:[t];const n=[];for(const o of t){const t=e.blocks.order.get(o);t&&n.push(...t)}let o=0;for(;o<n.length;){const t=n[o],r=e.blocks.order.get(t);r&&n.splice(o+1,0,...r),o++}return n}),(e=>[e.blocks.order])),ve=e=>be(e,""),ke=K(((e,t)=>{const n=ve(e);if(!t)return n.length;let o=0;for(const r of n){e.blocks.byClientId.get(r).name===t&&o++}return o}),(e=>[e.blocks.order,e.blocks.byClientId])),_e=K(((e,t)=>{if(!t)return se;const n=Array.isArray(t)?t:[t],o=ve(e).filter((t=>{const o=e.blocks.byClientId.get(t);return n.includes(o.name)}));return o.length>0?o:se}),(e=>[e.blocks.order,e.blocks.byClientId]));function ye(e,t){return w()("wp.data.select( 'core/block-editor' ).__experimentalGetGlobalBlocksByName",{since:"6.5",alternative:"wp.data.select( 'core/block-editor' ).getBlocksByName"}),_e(e,t)}const Ee=K(((e,t)=>(Array.isArray(t)?t:[t]).map((t=>pe(e,t)))),((e,t)=>(Array.isArray(t)?t:[t]).map((t=>e.blocks.tree.get(t))))),we=K(((e,t)=>Ee(e,t).filter(Boolean).map((e=>e.name))),((e,t)=>Ee(e,t)));function Se(e,t){return ot(e,t).length}function Ce(e){return e.selection.selectionStart}function xe(e){return e.selection.selectionEnd}function Be(e){return e.selection.selectionStart.clientId}function Ie(e){return e.selection.selectionEnd.clientId}function Te(e){const t=Ue(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function Me(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function Pe(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function Re(e){const t=Pe(e);return t?pe(e,t):null}function Ne(e,t){var n;return null!==(n=e.blocks.parents.get(t))&&void 0!==n?n:null}const Le=K(((e,t,n=!1)=>{const o=[];let r=t;for(;r=e.blocks.parents.get(r);)o.push(r);return o.length?n?o:o.reverse():se}),(e=>[e.blocks.parents])),Ae=K(((e,t,n,o=!1)=>{const r=Le(e,t,o),l=Array.isArray(n)?e=>n.includes(e):e=>n===e;return r.filter((t=>l(ce(e,t))))}),(e=>[e.blocks.parents]));function Oe(e,t){let n,o=t;do{n=o,o=e.blocks.parents.get(o)}while(o);return n}function De(e,t){const n=Pe(e),o=[...Le(e,t),t],r=[...Le(e,n),n];let l;const i=Math.min(o.length,r.length);for(let e=0;e<i&&o[e]===r[e];e++)l=o[e];return l}function ze(e,t,n=1){if(void 0===t&&(t=Pe(e)),void 0===t&&(t=n<0?je(e):We(e)),!t)return null;const o=Ne(e,t);if(null===o)return null;const{order:r}=e.blocks,l=r.get(o),i=l.indexOf(t)+1*n;return i<0||i===l.length?null:l[i]}function Ve(e,t){return ze(e,t,-1)}function Fe(e,t){return ze(e,t,1)}function He(e){return e.initialPosition}const Ge=K((e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(!t.clientId||!n.clientId)return se;if(t.clientId===n.clientId)return[t.clientId];const o=Ne(e,t.clientId);if(null===o)return se;const r=ot(e,o),l=r.indexOf(t.clientId),i=r.indexOf(n.clientId);return l>i?r.slice(i,l+1):r.slice(l,i+1)}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function Ue(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?se:Ge(e)}const $e=K((e=>{const t=Ue(e);return t.length?t.map((t=>pe(e,t))):se}),(e=>[...Ge.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function je(e){return Ue(e)[0]||null}function We(e){const t=Ue(e);return t[t.length-1]||null}function Ke(e,t){return je(e)===t}function Ze(e,t){return-1!==Ue(e).indexOf(t)}const qe=K(((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=Ne(e,n),o=Ze(e,n);return o}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function Ye(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function Xe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function Qe(e){const t=Ce(e),n=xe(e);return!t.attributeKey&&!n.attributeKey&&void 0===t.offset&&void 0===n.offset}function Je(e){const t=Ce(e),n=xe(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function et(e){return Ge(e).some((t=>{const n=ce(e,t);return!(0,c.getBlockType)(n).merge}))}function tt(e,t){const n=Ce(e),o=xe(e);if(n.clientId===o.clientId)return!1;if(!n.attributeKey||!o.attributeKey||void 0===n.offset||void 0===o.offset)return!1;const r=Ne(e,n.clientId);if(r!==Ne(e,o.clientId))return!1;const l=ot(e,r);let i,s;l.indexOf(n.clientId)>l.indexOf(o.clientId)?(i=o,s=n):(i=n,s=o);const a=t?s.clientId:i.clientId,u=t?i.clientId:s.clientId,d=ce(e,a);if(!(0,c.getBlockType)(d).merge)return!1;const p=pe(e,u);if(p.name===d)return!0;const m=(0,c.switchToBlockType)(p,d);return m&&m.length}const nt=e=>{const t=Ce(e),n=xe(e);if(t.clientId===n.clientId)return se;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return se;const o=Ne(e,t.clientId);if(o!==Ne(e,n.clientId))return se;const r=ot(e,o),l=r.indexOf(t.clientId),i=r.indexOf(n.clientId),[s,a]=l>i?[n,t]:[t,n],c=pe(e,s.clientId),u=pe(e,a.clientId),d=c.attributes[s.attributeKey],p=u.attributes[a.attributeKey];let m=(0,Y.create)({html:d}),h=(0,Y.create)({html:p});return m=(0,Y.remove)(m,0,s.offset),h=(0,Y.remove)(h,a.offset,h.text.length),[{...c,attributes:{...c.attributes,[s.attributeKey]:(0,Y.toHTMLString)({value:m})}},{...u,attributes:{...u.attributes,[a.attributeKey]:(0,Y.toHTMLString)({value:h})}}]};function ot(e,t){return e.blocks.order.get(t||"")||se}function rt(e,t){return ot(e,Ne(e,t)).indexOf(t)}function lt(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function it(e,t,n=!1){return ot(e,t).some((t=>lt(e,t)||Ze(e,t)||n&&it(e,t,n)))}function st(e,t,n=!1){return ot(e,t).some((t=>ft(e,t)||n&&st(e,t,n)))}function at(e,t){if(!t)return!1;const n=Ue(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function ct(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function ut(e){return e.isMultiSelecting}function dt(e){return e.isSelectionEnabled}function pt(e,t){return e.blocksMode[t]||"visual"}function mt(e){return e.isTyping}function ht(e){return!!e.draggedBlocks.length}function gt(e){return e.draggedBlocks}function ft(e,t){return e.draggedBlocks.includes(t)}function bt(e,t){if(!ht(e))return!1;return Le(e,t).some((t=>ft(e,t)))}function vt(){return w()('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}const kt=K((e=>{let t,n;const{insertionPoint:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:l}=r;return l?(t=Ne(e,l)||void 0,n=rt(e,r.clientId)+1):n=ot(e).length,{rootClientId:t,index:n}}),(e=>[e.insertionPoint,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]));function _t(e){return null!==e.insertionPoint}function yt(e){return e.template.isValid}function Et(e){return e.settings.template}function wt(e,t){var n,o;return t?null!==(n=Yt(e,t)?.templateLock)&&void 0!==n&&n:null!==(o=e.settings.templateLock)&&void 0!==o&&o}const St=(e,t,n=null)=>{let o;if(t&&"object"==typeof t?(o=t,t=o.name):o=(0,c.getBlockType)(t),!o)return!1;const{allowedBlockTypes:r}=Xt(e);if(!Q(r,t,!0))return!1;if(!!wt(e,n))return!1;if("disabled"===_n(e,null!=n?n:""))return!1;const l=Yt(e,n);if(n&&void 0===l)return!1;const i=ce(e,n),s=(0,c.getBlockType)(i),a=s?.allowedBlocks;let u=Q(a,t);if(!1!==u){const e=l?.allowedBlocks,n=Q(e,t);null!==n&&(u=n)}const d=o.parent,p=Q(d,i);let h=!0;const g=o.ancestor;if(g){h=[n,...Le(e,n)].some((t=>Q(g,ce(e,t))))}const f=h&&(null===u&&null===p||!0===u||!0===p);return f?(0,m.applyFilters)("blockEditor.__unstableCanInsertBlockType",f,o,n,{getBlock:pe.bind(null,e),getBlockParentsByBlockName:Ae.bind(null,e)}):f},Ct=K(St,((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId.get(n),e.settings.allowedBlockTypes,e.settings.templateLock,e.blockEditingModes]));function xt(e,t,n=null){return t.every((t=>Ct(e,ce(e,t),n)))}function Bt(e,t,n=null){const o=de(e,t);return null===o||(void 0!==o.lock?.remove?!o.lock.remove:!wt(e,n)&&"disabled"!==_n(e,n))}function It(e,t,n=null){return t.every((t=>Bt(e,t,n)))}function Tt(e,t,n=null){const o=de(e,t);return null===o||(void 0!==o.lock?.move?!o.lock.move:"all"!==wt(e,n)&&"disabled"!==_n(e,n))}function Mt(e,t,n=null){return t.every((t=>Tt(e,t,n)))}function Pt(e,t){const n=de(e,t);if(null===n)return!0;const{lock:o}=n;return!o?.edit}function Rt(e,t){return!!(0,c.hasBlockSupport)(t,"lock",!0)&&!!e.settings?.canLockBlocks}function Nt(e,t){var n;return null!==(n=e.preferences.insertUsage?.[t])&&void 0!==n?n:null}const Lt=(e,t,n)=>!!(0,c.hasBlockSupport)(t,"inserter",!0)&&St(e,t.name,n),At=(e,t)=>{if(!e)return t;const 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}},Ot=(e,{buildScope:t="inserter"})=>n=>{const o=n.name;let r=!1;(0,c.hasBlockSupport)(n.name,"multiple",!0)||(r=Ee(e,ve(e)).some((({name:e})=>e===n.name)));const{time:l,count:i=0}=Nt(e,o)||{},s={id:o,name:n.name,title:n.title,icon:n.icon,isDisabled:r,frecency:At(l,i)};if("transform"===t)return s;const a=(0,c.getBlockVariations)(n.name,"inserter");return{...s,initialAttributes:{},description:n.description,category:n.category,keywords:n.keywords,variations:a,example:n.example,utility:1}},Dt=K(((e,t=null)=>{const n=St(e,"core/block",t)?on(e).map((t=>{const n=t.wp_pattern_sync_status?q:{src:q,foreground:"var(--wp-block-synced-color)"},o=`core/block/${t.id}`,{time:r,count:l=0}=Nt(e,o)||{},i=At(r,l);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title?.raw,icon:n,category:"reusable",keywords:["reusable"],isDisabled:!1,utility:1,frecency:i,content:t.content?.raw,syncStatus:t.wp_pattern_sync_status}})):[],o=Ot(e,{buildScope:"inserter"}),r=(0,c.getBlockTypes)().filter((n=>Lt(e,n,t))).map(o).reduce(((t,n)=>{const{variations:o=[]}=n;if(o.some((({isDefault:e})=>e))||t.push(n),o.length){const r=((e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:l=0}=Nt(e,o)||{};return{...t,id:o,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:At(r,l)}})(e,n);t.push(...o.map(r))}return t}),[]),{core:l,noncore:i}=r.reduce(((e,t)=>{const{core:n,noncore:o}=e;return(t.name.startsWith("core/")?n:o).push(t),e}),{core:[],noncore:[]});return[...[...l,...i],...n]}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId.get(t),e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,on(e),(0,c.getBlockTypes)()])),zt=K(((e,t,n=null)=>{const o=Array.isArray(t)?t:[t],r=Ot(e,{buildScope:"transform"}),l=(0,c.getBlockTypes)().filter((t=>Lt(e,t,n))).map(r),i=Object.fromEntries(Object.entries(l).map((([,e])=>[e.name,e]))),s=(0,c.getPossibleBlockTransformations)(o).reduce(((e,t)=>(i[t?.name]&&e.push(i[t.name]),e)),[]);return ne(s,(e=>i[e.name].frecency),"desc")}),((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId.get(n),e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,(0,c.getBlockTypes)()])),Vt=K(((e,t=null)=>{if((0,c.getBlockTypes)().some((n=>Lt(e,n,t))))return!0;return St(e,"core/block",t)&&on(e).length>0}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId.get(t),e.settings.allowedBlockTypes,e.settings.templateLock,on(e),(0,c.getBlockTypes)()])),Ft=K(((e,t=null)=>{if(!t)return;const n=(0,c.getBlockTypes)().filter((n=>Lt(e,n,t)));return St(e,"core/block",t)&&on(e).length>0&&n.push("core/block"),n}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId.get(t),e.settings.allowedBlockTypes,e.settings.templateLock,on(e),(0,c.getBlockTypes)()])),Ht=K(((e,t=null)=>(w()('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),Ft(e,t))),((e,t)=>[...Ft.getDependants(e,t)])),Gt=K(((e,t=null)=>{if(!t)return;const n=e.blockListSettings[t]?.defaultBlock,o=e.blockListSettings[t]?.directInsert;return n&&o?"function"==typeof o?o(pe(e,t))?n:null:n:void 0}),((e,t)=>[e.blockListSettings[t],e.blocks.tree.get(t)])),Ut=K(((e,t=null)=>(w()('wp.data.select( "core/block-editor" ).__experimentalGetDirectInsertBlock',{alternative:'wp.data.select( "core/block-editor" ).getDirectInsertBlock',since:"6.3",version:"6.4"}),Gt(e,t))),((e,t)=>[e.blockListSettings[t],e.blocks.tree.get(t)])),$t=(0,d.createRegistrySelector)((e=>K(((t,n)=>{const{getAllPatterns:o}=ie(e(oe)),r=o().find((({name:e})=>e===n));return r?{...r,blocks:(0,c.parse)(r.content,{__unstableSkipMigrationLogs:!0})}:null}),ee(e)))),jt=e=>(t,n)=>[...ee(e)(t),t.settings.allowedBlockTypes,t.settings.templateLock,t.blockListSettings[n],t.blocks.byClientId.get(n)],Wt=(0,d.createRegistrySelector)((e=>K(((t,n=null)=>{const{getAllPatterns:o,__experimentalGetParsedPattern:r}=ie(e(oe)),l=o(),{allowedBlockTypes:i}=Xt(t),s=l.filter((({inserter:e=!0})=>!!e)).map((({name:e})=>r(e))),a=s.filter((({blocks:e})=>J(e,i))),c=a.filter((({blocks:e})=>e.every((({name:e})=>Ct(t,e,n)))));return c}),jt(e)))),Kt=(0,d.createRegistrySelector)((e=>K(((t,n,o=null)=>{if(!n)return se;const r=e(oe).__experimentalGetAllowedPatterns(o),l=Array.isArray(n)?n:[n],i=r.filter((e=>e?.blockTypes?.some?.((e=>l.includes(e)))));return 0===i.length?se:i}),((t,n,o)=>jt(e)(t,o))))),Zt=(0,d.createRegistrySelector)((e=>(w()('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),e(oe).getPatternsByBlockTypes))),qt=(0,d.createRegistrySelector)((e=>K(((t,n,o=null)=>{if(!n)return se;if(n.some((({clientId:e,innerBlocks:n})=>n.length||un(t,e))))return se;const r=Array.from(new Set(n.map((({name:e})=>e))));return e(oe).getPatternsByBlockTypes(r,o)}),((t,n,o)=>jt(e)(t,o)))));function Yt(e,t){return e.blockListSettings[t]}function Xt(e){return e.settings}function Qt(e){return e.blocks.isPersistentChange}const Jt=K(((e,t=[])=>t.reduce(((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t),{})),(e=>[e.blockListSettings])),en=K(((e,t)=>{const n=on(e).find((e=>e.id===t));return n?n.title?.raw:null}),(e=>[on(e)]));function tn(e){return e.blocks.isIgnoredChange}function nn(e){return e.lastBlockAttributesChange}function on(e){var t;return null!==(t=e.settings.__experimentalReusableBlocks)&&void 0!==t?t:se}function rn(e){return"navigation"===e.editorMode}function ln(e){return e.editorMode}function sn(e){return e.hasBlockMovingClientId}function an(e){return!!e.automaticChangeStatus}function cn(e,t){return e.highlightedBlock===t}function un(e,t){return!!e.blocks.controlledInnerBlocks[t]}const dn=K(((e,t)=>{if(!t.length)return null;const n=Pe(e);if(t.includes(ce(e,n)))return n;const o=Ue(e),r=Ae(e,n||o[0],t);return r?r[r.length-1]:null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function pn(e,t,n){const{lastBlockInserted:o}=e;return o.clientIds?.includes(t)&&o.source===n}function mn(e,t){var n;return null===(n=e.blockVisibility?.[t])||void 0===n||n}const hn=K((e=>{const t=new Set(Object.keys(e.blockVisibility).filter((t=>e.blockVisibility[t])));return 0===t.size?ae:t}),(e=>[e.blockVisibility])),gn=K(((e,t)=>{let n,o=t;for(;o=e.blocks.parents.get(o);)"core/block"!==ce(e,o)&&"contentOnly"!==wt(e,o)||(n=o);return n}),(e=>[e.blocks.parents,e.blockListSettings]));function fn(e){return e.temporarilyEditingAsBlocks}function bn(e){return e.temporarilyEditingFocusModeRevert}function vn(e,t){if("default"!==_n(e,t))return!1;if(!Pt(e,t))return!0;const n=ln(e);if("zoom-out"===n&&t&&!Ne(e,t))return!0;const o=(0,c.hasBlockSupport)(ce(e,t),"__experimentalDisableBlockOverlay",!1);return("navigation"===n||!o&&un(e,t))&&!lt(e,t)&&!it(e,t,!0)}function kn(e,t){let n=e.blocks.parents.get(t);for(;n;){if(vn(e,n))return!0;n=e.blocks.parents.get(n)}return!1}const _n=(0,d.createRegistrySelector)((e=>(t,n="")=>{const o=t.blockEditingModes.get(n);if(o)return o;if(!n)return"default";const r=Ne(t,n);if("contentOnly"===wt(t,r)){const o=ce(t,n);return e(c.store).__experimentalHasContentRoleAttribute(o)?"contentOnly":"disabled"}const l=_n(t,r);return"contentOnly"===l?"default":l})),yn=(0,d.createRegistrySelector)((e=>(t,n="")=>{const o=n||Pe(t);if(!o)return!1;const{getGroupingBlockName:r}=e(c.store),l=pe(t,o),i=r();return l&&(l.name===i||(0,c.getBlockType)(l.name)?.transforms?.ungroup)&&!!l.innerBlocks.length&&Bt(t,o)})),En=(0,d.createRegistrySelector)((e=>(t,n=se)=>{const{getGroupingBlockName:o}=e(c.store),r=o(),l=n?.length?n:Ge(t),i=l?.length?Ne(t,l[0]):void 0;return Ct(t,r,i)&&l.length&&It(t,l,i)})),wn=new WeakSet,Sn=["inserterMediaCategories","blockInspectorAnimation"];function Cn(e,{stripExperimentalSettings:t=!1,reset:n=!1}={}){let o=e;if(t&&"web"===u.Platform.OS){o={};for(const t in e)Sn.includes(t)||(o[t]=e[t])}return{type:"UPDATE_SETTINGS",settings:o,reset:n}}function xn(){return{type:"HIDE_BLOCK_INTERFACE"}}function Bn(){return{type:"SHOW_BLOCK_INTERFACE"}}const In=(e,t=!0,n=!1)=>({select:o,dispatch:r,registry:l})=>{if(!e||!e.length)return;var i;i=e,e=Array.isArray(i)?i:[i];const s=o.getBlockRootClientId(e[0]);if(!o.canRemoveBlocks(e,s))return;const a=!n&&o.getBlockRemovalRules();if(a){const n=new Set,l=[...e];let i="templates";for(;l.length;){const e=l.shift(),t=o.getBlockName(e);if(a[t]&&n.add(t),a["bindings/core/pattern-overrides"]){const r=o.getBlockParentsByBlockName(e,"core/block");if(r?.length>0)continue;const l=o.getBlockAttributes(e);l?.metadata?.bindings&&JSON.stringify(l.metadata.bindings).includes("core/pattern-overrides")&&(n.add(t),i="patternOverrides")}const r=o.getBlockOrder(e);l.push(...r)}if(n.size)return void r(function(e,t,n,o){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,blockNamesForPrompt:n,messageType:o}}(e,t,Array.from(n),i))}t&&r.selectPreviousBlock(e[0],t),l.batch((()=>{r({type:"REMOVE_BLOCKS",clientIds:e}),r(Tn())}))},Tn=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;const{__unstableHasCustomAppender:n}=e.getSettings();n||t.insertDefaultBlock()};function Mn(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function Pn(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}function Rn(e){return{type:"SET_OPENED_BLOCK_SETTINGS_MENU",clientId:e}}function Nn(e,t){return{type:"SET_STYLE_OVERRIDE",id:e,style:t}}function Ln(e){return{type:"DELETE_STYLE_OVERRIDE",id:e}}function An(e){return({dispatch:t,select:n,registry:o})=>{o.batch((()=>{t({type:"SET_EXPLICIT_PERSISTENT",isPersistentChange:!1}),e(),t({type:"SET_EXPLICIT_PERSISTENT",isPersistentChange:void 0});const o=n.getBlocks();wn.add(o)}))}}function On(e=null){return{type:"LAST_FOCUS",lastFocus:e}}function Dn(e){return({select:t,dispatch:n})=>{const o=t.__unstableGetTemporarilyEditingFocusModeToRevert();n.__unstableMarkNextChangeAsNotPersistent(),n.updateBlockAttributes(e,{templateLock:"contentOnly"}),n.updateBlockListSettings(e,{...t.getBlockListSettings(e),templateLock:"contentOnly"}),n.updateSettings({focusMode:o}),n.__unstableSetTemporarilyEditingAsBlocks()}}function zn(){return{type:"START_DRAGGING"}}function Vn(){return{type:"STOP_DRAGGING"}}const Fn={user:"user",theme:"theme",directory:"directory"},Hn={full:"fully",unsynced:"unsynced"},Gn={name:"allPatterns",label:(0,x._x)("All","patterns")},Un={name:"myPatterns",label:(0,x.__)("My patterns")};function $n(e,t,n){const o=e.name.startsWith("core/block"),r="core"===e.source||e.source?.startsWith("pattern-directory");return!(t!==Fn.theme||!o&&!r)||(!(t!==Fn.directory||!o&&r)||(t===Fn.user&&e.type!==Fn.user||(n===Hn.full&&""!==e.syncStatus||!(n!==Hn.unsynced||"unsynced"===e.syncStatus||!o))))}function jn(e,t,n){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};const o=t.pop();let r=e;for(const e of t){const t=r[e];r=r[e]=Array.isArray(t)?[...t]:{...t}}return r[o]=n,e}const Wn=(e,t,n)=>{var o;const r=Array.isArray(t)?t:t.split(".");let l=e;return r.forEach((e=>{l=l?.[e]})),null!==(o=l)&&void 0!==o?o:n},Kn=["color","border","dimensions","typography","spacing"],Zn={"color.palette":e=>e.colors,"color.gradients":e=>e.gradients,"color.custom":e=>void 0===e.disableCustomColors?void 0:!e.disableCustomColors,"color.customGradient":e=>void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>e.fontSizes,"typography.customFontSize":e=>void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},qn={"border.customColor":"border.color","border.customStyle":"border.style","border.customWidth":"border.width","typography.customFontStyle":"typography.fontStyle","typography.customFontWeight":"typography.fontWeight","typography.customLetterSpacing":"typography.letterSpacing","typography.customTextDecorations":"typography.textDecoration","typography.customTextTransforms":"typography.textTransform","border.customRadius":"border.radius","spacing.customMargin":"spacing.margin","spacing.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"},Yn=e=>qn[e]||e;const Xn=new WeakMap;function Qn(e){var t,n;return null!==(t=null!==(n=e.custom)&&void 0!==n?n:e.theme)&&void 0!==t?t:e.default}function Jn(e){return["default","theme","custom"].some((t=>e?.[t]?.length))}function eo(e,t,...n){const o=ce(e,t),r=[];if(t){let n=t;do{const t=ce(e,n);(0,c.hasBlockSupport)(t,"__experimentalSettings",!1)&&r.push(n)}while(n=e.blocks.parents.get(n))}return n.map((n=>{if(Kn.includes(n))return void console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");let l=(0,m.applyFilters)("blockEditor.useSetting.before",void 0,n,t,o);if(void 0!==l)return l;const i=Yn(n);for(const t of r){var s;const n=de(e,t);if(l=null!==(s=Wn(n.settings?.blocks?.[o],i))&&void 0!==s?s:Wn(n.settings,i),void 0!==l)break}const a=Xt(e);if(void 0===l&&o&&(l=Wn(a.__experimentalFeatures?.blocks?.[o],i)),void 0===l&&(l=Wn(a.__experimentalFeatures,i)),void 0!==l)return c.__EXPERIMENTAL_PATHS_WITH_OVERRIDE[i]?Qn(l):l;const u=Zn[i]?.(a);return void 0!==u?u:"typography.dropCap"===i||void 0}))}function to(e){return e.isBlockInterfaceHidden}function no(e){return e?.lastBlockInserted?.clientIds}function oo(e,t){return e.blocks.byClientId.get(t)}const ro=(e,t)=>{const n=t=>"disabled"===_n(e,t)&&ot(e,t).every(n);return ot(e,t).every(n)};const lo=K((function e(t,n){const o=ot(t,n),r=[];for(const n of o){const o=e(t,n);"disabled"!==_n(t,n)?r.push({clientId:n,innerBlocks:o}):r.push(...o)}return r}),(e=>[e.blocks.order,e.blockEditingModes,e.settings.templateLock,e.blockListSettings])),io=K(((e,t,n=!1)=>Le(e,t,n).filter((t=>"disabled"!==_n(e,t)))),(e=>[e.blocks.parents,e.blockEditingModes,e.settings.templateLock,e.blockListSettings]));function so(e){return e.removalPromptData}function ao(e){return e.blockRemovalRules}function co(e){return e.openedBlockSettingsMenu}function uo(e){return e.styleOverrides}function po(e){return e.registeredInserterMediaCategories}const mo=K((e=>{const{settings:{inserterMediaCategories:t,allowedMimeTypes:n,enableOpenverseMediaCategory:o},registeredInserterMediaCategories:r}=e;if(!t&&!r.length||!n)return;const l=t?.map((({name:e})=>e))||[];return[...t||[],...(r||[]).filter((({name:e})=>!l.includes(e)))].filter((e=>!(!o&&"openverse"===e.name)&&Object.values(n).some((t=>t.startsWith(`${e.mediaType}/`)))))}),(e=>[e.settings.inserterMediaCategories,e.settings.allowedMimeTypes,e.settings.enableOpenverseMediaCategory,e.registeredInserterMediaCategories])),ho=(0,d.createRegistrySelector)((e=>K(((t,n=null)=>{const{getAllPatterns:o,__experimentalGetParsedPattern:r}=ie(e(oe)),l=o(),{allowedBlockTypes:i}=Xt(t);return l.some((({name:e,inserter:o=!0})=>{if(!o)return!1;const{blocks:l}=r(e);return J(l,i)&&l.every((({name:e})=>Ct(t,e,n)))}))}),((t,n)=>[ee(e)(t),t.settings.allowedBlockTypes,t.settings.templateLock,t.blockListSettings[n],t.blocks.byClientId.get(n)])))),go=(0,d.createRegistrySelector)((e=>K((t=>{var n;const{__experimentalBlockPatterns:o=[],__experimentalUserPatternCategories:r=[],__experimentalReusableBlocks:l=[]}=t.settings,i=(null!=l?l:[]).map((e=>({name:`core/block/${e.id}`,id:e.id,type:Fn.user,title:e.title.raw,categories:e.wp_pattern_category.map((e=>{const t=(null!=r?r:[]).find((({id:t})=>t===e));return t?t.slug:e})),content:e.content.raw,syncStatus:e.wp_pattern_sync_status})));return[...i,...o,...null!==(n=t.settings[X]?.(e))&&void 0!==n?n:[]].filter(((e,t,n)=>t===n.findIndex((t=>e.name===t.name))))}),ee(e))));function fo(e){return e.lastFocus}function bo(e){return e.isDragging}const vo=window.wp.a11y,ko="†";function _o(e){if(e)return Object.keys(e).find((t=>{const n=e[t];return("string"==typeof n||n instanceof Y.RichTextData)&&-1!==n.toString().indexOf(ko)}))}const yo=e=>Array.isArray(e)?e:[e],Eo=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(wo(e))},wo=e=>({select:t,dispatch:n})=>{const o=t.getTemplate(),r=t.getTemplateLock(),l=!o||"all"!==r||(0,c.doBlocksMatchTemplate)(e,o);if(l!==t.isValidTemplate())return n.setTemplateValidity(l),l};function So(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Co(e){return w()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function xo(e,t,n=!1){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:yo(e),attributes:t,uniqueByBlock:n}}function Bo(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function Io(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const To=(e,t=!1)=>({select:n,dispatch:o})=>{const r=n.getPreviousBlockClientId(e);if(r)o.selectBlock(r,-1);else if(t){const t=n.getBlockRootClientId(e);t&&o.selectBlock(t,-1)}},Mo=e=>({select:t,dispatch:n})=>{const o=t.getNextBlockClientId(e);o&&n.selectBlock(o)};function Po(){return{type:"START_MULTI_SELECT"}}function Ro(){return{type:"STOP_MULTI_SELECT"}}const No=(e,t,n=0)=>({select:o,dispatch:r})=>{if(o.getBlockRootClientId(e)!==o.getBlockRootClientId(t))return;r({type:"MULTI_SELECT",start:e,end:t,initialPosition:n});const l=o.getSelectedBlockCount();(0,vo.speak)((0,x.sprintf)((0,x._n)("%s block selected.","%s blocks selected.",l),l),"assertive")};function Lo(){return{type:"CLEAR_SELECTED_BLOCK"}}function Ao(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Oo(e,t){var n;const o=null!==(n=t?.__experimentalPreferredStyleVariations?.value)&&void 0!==n?n:{};return e.map((e=>{const t=e.name;if(!(0,c.hasBlockSupport)(t,"defaultStylePicker",!0))return e;if(!o[t])return e;const n=e.attributes?.className;if(n?.includes("is-style-"))return e;const{attributes:r={}}=e,l=o[t];return{...e,attributes:{...r,className:`${n||""} is-style-${l}`.trim()}}}))}const Do=(e,t,n,o=0,r)=>({select:l,dispatch:i,registry:s})=>{e=yo(e),t=Oo(yo(t),l.getSettings());const a=l.getBlockRootClientId(e[0]);for(let e=0;e<t.length;e++){const n=t[e];if(!l.canInsertBlockType(n.name,a))return}s.batch((()=>{i({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r}),i.ensureDefaultBlock()}))};function zo(e,t){return Do(e,t)}const Vo=e=>(t,n)=>({select:o,dispatch:r})=>{o.canMoveBlocks(t,n)&&r({type:e,clientIds:yo(t),rootClientId:n})},Fo=Vo("MOVE_BLOCKS_DOWN"),Ho=Vo("MOVE_BLOCKS_UP"),Go=(e,t="",n="",o)=>({select:r,dispatch:l})=>{if(r.canMoveBlocks(e,t)){if(t!==n){if(!r.canRemoveBlocks(e,t))return;if(!r.canInsertBlocks(e,n))return}l({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o})}};function Uo(e,t="",n="",o){return Go([e],t,n,o)}function $o(e,t,n,o,r){return jo([e],t,n,o,0,r)}const jo=(e,t,n,o=!0,r=0,l)=>({select:i,dispatch:s})=>{null!==r&&"object"==typeof r&&(l=r,r=0,w()("meta argument in wp.data.dispatch('core/block-editor')",{since:"5.8",hint:"The meta argument is now the 6th argument of the function"})),e=Oo(yo(e),i.getSettings());const a=[];for(const t of e){i.canInsertBlockType(t.name,n)&&a.push(t)}a.length&&s({type:"INSERT_BLOCKS",blocks:a,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:l})};function Wo(e,t,n={}){const{__unstableWithInserter:o,operation:r,nearestSide:l}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o,operation:r,nearestSide:l}}const Ko=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function Zo(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const qo=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});const n=e.getBlocks(),o=e.getTemplate(),r=(0,c.synchronizeBlocksWithTemplate)(n,o);t.resetBlocks(r)},Yo=e=>({registry:t,select:n,dispatch:o})=>{const r=n.getSelectionStart(),l=n.getSelectionEnd();if(r.clientId===l.clientId)return;if(!r.attributeKey||!l.attributeKey||void 0===r.offset||void 0===l.offset)return!1;const i=n.getBlockRootClientId(r.clientId);if(i!==n.getBlockRootClientId(l.clientId))return;const s=n.getBlockOrder(i);let a,u;s.indexOf(r.clientId)>s.indexOf(l.clientId)?(a=l,u=r):(a=r,u=l);const d=e?u:a,p=n.getBlock(d.clientId),m=(0,c.getBlockType)(p.name);if(!m.merge)return;const h=a,g=u,f=n.getBlock(h.clientId),b=n.getBlock(g.clientId),v=f.attributes[h.attributeKey],k=b.attributes[g.attributeKey];let _=(0,Y.create)({html:v}),y=(0,Y.create)({html:k});_=(0,Y.remove)(_,h.offset,_.text.length),y=(0,Y.insert)(y,ko,0,g.offset);const E=(0,c.cloneBlock)(f,{[h.attributeKey]:(0,Y.toHTMLString)({value:_})}),w=(0,c.cloneBlock)(b,{[g.attributeKey]:(0,Y.toHTMLString)({value:y})}),S=e?E:w,C=f.name===b.name?[S]:(0,c.switchToBlockType)(S,m.name);if(!C||!C.length)return;let x;if(e){const e=C.pop();x=m.merge(e.attributes,w.attributes)}else{const e=C.shift();x=m.merge(E.attributes,e.attributes)}const B=_o(x),I=x[B],T=(0,Y.create)({html:I}),M=T.text.indexOf(ko),P=(0,Y.remove)(T,M,M+1),R=(0,Y.toHTMLString)({value:P});x[B]=R;const N=n.getSelectedBlockClientIds(),L=[...e?C:[],{...p,attributes:{...p.attributes,...x}},...e?[]:C];t.batch((()=>{o.selectionChange(p.clientId,B,M,M),o.replaceBlocks(N,L,0,n.getSelectedBlocksInitialCaretPosition())}))},Xo=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),o=e.getSelectionEnd();if(n.clientId===o.clientId)return;if(!n.attributeKey||!o.attributeKey||void 0===n.offset||void 0===o.offset)return;const r=e.getBlockRootClientId(n.clientId);if(r!==e.getBlockRootClientId(o.clientId))return;const l=e.getBlockOrder(r);let i,s;l.indexOf(n.clientId)>l.indexOf(o.clientId)?(i=o,s=n):(i=n,s=o);const a=i,c=s,u=e.getBlock(a.clientId),d=e.getBlock(c.clientId),p=u.attributes[a.attributeKey],m=d.attributes[c.attributeKey];let h=(0,Y.create)({html:p}),g=(0,Y.create)({html:m});h=(0,Y.remove)(h,a.offset,h.text.length),g=(0,Y.remove)(g,0,c.offset),t.replaceBlocks(e.getSelectedBlockClientIds(),[{...u,attributes:{...u.attributes,[a.attributeKey]:(0,Y.toHTMLString)({value:h})}},{...d,attributes:{...d.attributes,[c.attributeKey]:(0,Y.toHTMLString)({value:g})}}])},Qo=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),o=e.getSelectionEnd();t.selectionChange({start:{clientId:n.clientId},end:{clientId:o.clientId}})},Jo=(e,t)=>({registry:n,select:o,dispatch:r})=>{const l=[e,t];r({type:"MERGE_BLOCKS",blocks:l});const[i,s]=l,a=o.getBlock(i),u=(0,c.getBlockType)(a.name);if(!u)return;const d=o.getBlock(s);if(!u.merge&&(0,c.getBlockSupport)(a.name,"__experimentalOnMerge")){const e=(0,c.switchToBlockType)(d,u.name);if(1!==e?.length)return void r.selectBlock(a.clientId);const[t]=e;return t.innerBlocks.length<1?void r.selectBlock(a.clientId):void n.batch((()=>{r.insertBlocks(t.innerBlocks,void 0,i),r.removeBlock(s),r.selectBlock(t.innerBlocks[0].clientId);const e=o.getNextBlockClientId(i);if(e&&o.getBlockName(i)===o.getBlockName(e)){const t=o.getBlockAttributes(i),n=o.getBlockAttributes(e);Object.keys(t).every((e=>t[e]===n[e]))&&(r.moveBlocksToPosition(o.getBlockOrder(e),e,i),r.removeBlock(e,!1))}}))}if((0,c.isUnmodifiedDefaultBlock)(a))return void r.removeBlock(i,o.isBlockSelected(i));if((0,c.isUnmodifiedDefaultBlock)(d))return void r.removeBlock(s,o.isBlockSelected(s));if(!u.merge)return void r.selectBlock(a.clientId);const p=(0,c.getBlockType)(d.name),{clientId:m,attributeKey:h,offset:g}=o.getSelectionStart(),f=(m===i?u:p).attributes[h],b=(m===i||m===s)&&void 0!==h&&void 0!==g&&!!f;f||("number"==typeof h?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 "+typeof h):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const v=(0,c.cloneBlock)(a),k=(0,c.cloneBlock)(d);if(b){const e=m===i?v:k,t=e.attributes[h],n=(0,Y.insert)((0,Y.create)({html:t}),ko,g,g);e.attributes[h]=(0,Y.toHTMLString)({value:n})}const _=a.name===d.name?[k]:(0,c.switchToBlockType)(k,a.name);if(!_||!_.length)return;const y=u.merge(v.attributes,_[0].attributes);if(b){const e=_o(y),t=y[e],n=(0,Y.create)({html:t}),o=n.text.indexOf(ko),l=(0,Y.remove)(n,o,o+1),i=(0,Y.toHTMLString)({value:l});y[e]=i,r.selectionChange(a.clientId,e,o,o)}r.replaceBlocks([a.clientId,d.clientId],[{...a,attributes:{...a.attributes,...y}},..._.slice(1)],0)},er=(e,t=!0)=>In(e,t);function tr(e,t){return er([e],t)}function nr(e,t,n=!1,o=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function or(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function rr(){return{type:"START_TYPING"}}function lr(){return{type:"STOP_TYPING"}}function ir(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function sr(){return{type:"STOP_DRAGGING_BLOCKS"}}function ar(){return w()('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function cr(){return w()('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function ur(e,t,n,o){return"string"==typeof e?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}:{type:"SELECTION_CHANGE",...e}}const dr=(e,t,n)=>({dispatch:o})=>{const r=(0,c.getDefaultBlockName)();if(!r)return;const l=(0,c.createBlock)(r,e);return o.insertBlock(l,n,t)};function pr(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function mr(e){return Cn(e,{stripExperimentalSettings:!0})}function hr(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function gr(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function fr(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const br=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:t=(e=>setTimeout(e,100))}=window;t((()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))},vr=(e=!0)=>({dispatch:t})=>{t.__unstableSetEditorMode(e?"navigation":"edit")},kr=e=>({dispatch:t,select:n})=>{if("zoom-out"===e){const e=n.getBlockSelectionStart();e&&t.selectBlock(n.getBlockHierarchyRootClientId(e))}t({type:"SET_EDITOR_MODE",mode:e}),"navigation"===e?(0,vo.speak)((0,x.__)("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.")):"edit"===e?(0,vo.speak)((0,x.__)("You are currently in edit mode. To return to the navigation mode, press Escape.")):"zoom-out"===e&&(0,vo.speak)((0,x.__)("You are currently in zoom-out mode."))},_r=(e=null)=>({dispatch:t})=>{t({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&(0,vo.speak)((0,x.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."))},yr=(e,t=!0)=>({select:n,dispatch:o})=>{if(!e||!e.length)return;const r=n.getBlocksByClientId(e);if(r.some((e=>!e)))return;const l=r.map((e=>e.name));if(l.some((e=>!(0,c.hasBlockSupport)(e,"multiple",!0))))return;const i=n.getBlockRootClientId(e[0]),s=yo(e),a=n.getBlockIndex(s[s.length-1]),u=r.map((e=>(0,c.__experimentalCloneSanitizedBlock)(e)));return o.insertBlocks(u,a+1,i,t),u.length>1&&t&&o.multiSelect(u[0].clientId,u[u.length-1].clientId),u.map((e=>e.clientId))},Er=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const r=t.getBlockIndex(e),l=o?t.getDirectInsertBlock(o):null;if(!l)return n.insertDefaultBlock({},o,r);const i={};if(l.attributesToCopy){const n=t.getBlockAttributes(e);l.attributesToCopy.forEach((e=>{n[e]&&(i[e]=n[e])}))}const s=(0,c.createBlock)(l.name,{...l.attributes,...i});return n.insertBlock(s,r,o)},wr=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const r=t.getBlockIndex(e),l=o?t.getDirectInsertBlock(o):null;if(!l)return n.insertDefaultBlock({},o,r+1);const i={};if(l.attributesToCopy){const n=t.getBlockAttributes(e);l.attributesToCopy.forEach((e=>{n[e]&&(i[e]=n[e])}))}const s=(0,c.createBlock)(l.name,{...l.attributes,...i});return n.insertBlock(s,r+1,o)};function Sr(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const Cr=e=>async({dispatch:t})=>{t(Sr(e,!0)),await new Promise((e=>setTimeout(e,150))),t(Sr(e,!1))};function xr(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function Br(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function Ir(e,t){return{type:"SET_TEMPORARILY_EDITING_AS_BLOCKS",temporarilyEditingAsBlocks:e,focusModeToRevert:t}}const Tr=e=>({select:t,dispatch:n})=>{if(!e||"object"!=typeof e)return void console.error("Category should be an `InserterMediaCategory` object.");if(!e.name)return void console.error("Category should have a `name` that should be unique among all media categories.");if(!e.labels?.name)return void console.error("Category should have a `labels.name`.");if(!["image","audio","video"].includes(e.mediaType))return void console.error("Category should have `mediaType` property that is one of `image|audio|video`.");if(!e.fetch||"function"!=typeof e.fetch)return void console.error("Category should have a `fetch` function defined with the following signature `(InserterMediaRequest) => Promise<InserterMediaItem[]>`.");const o=t.getRegisteredInserterMediaCategories();o.some((({name:t})=>t===e.name))?console.error(`A category is already registered with the same name: "${e.name}".`):o.some((({labels:{name:t}={}})=>t===e.labels?.name))?console.error(`A category is already registered with the same labels.name: "${e.labels.name}".`):n({type:"REGISTER_INSERTER_MEDIA_CATEGORY",category:{...e,isExternalResource:!0}})};function Mr(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function Pr(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}const Rr={reducer:U,selectors:e,actions:l},Nr=(0,d.createReduxStore)(oe,{...Rr,persist:["preferences"]}),Lr=(0,d.registerStore)(oe,{...Rr,persist:["preferences"]});function Ar(...e){const{clientId:t=null}=y();return(0,d.useSelect)((n=>ie(n(Nr)).getBlockSettings(t,...e)),[t,...e])}function Or(e){w()("wp.blockEditor.useSetting",{since:"6.5",alternative:"wp.blockEditor.useSettings",note:"The new useSettings function can retrieve multiple settings at once, with better performance."});const[t]=Ar(e);return t}ie(Lr).registerPrivateActions(t),ie(Lr).registerPrivateSelectors(r),ie(Nr).registerPrivateActions(t),ie(Nr).registerPrivateSelectors(r);const Dr="1600px",zr="320px",Vr=1,Fr=.25,Hr=.75,Gr="14px";function Ur({minimumFontSize:e,maximumFontSize:t,fontSize:n,minimumViewportWidth:o=zr,maximumViewportWidth:r=Dr,scaleFactor:l=Vr,minimumFontSizeLimit:i}){if(i=$r(i)?i:Gr,n){const o=$r(n);if(!o?.unit)return null;const r=$r(i,{coerceTo:o.unit});if(r?.value&&!e&&!t&&o?.value<=r?.value)return null;if(t||(t=`${o.value}${o.unit}`),!e){const t="px"===o.unit?o.value:16*o.value,n=Math.min(Math.max(1-.075*Math.log2(t),Fr),Hr),l=jr(o.value*n,3);e=r?.value&&l<r?.value?`${r.value}${r.unit}`:`${l}${o.unit}`}}const s=$r(e),a=s?.unit||"rem",c=$r(t,{coerceTo:a});if(!s||!c)return null;const u=$r(e,{coerceTo:"rem"}),d=$r(r,{coerceTo:a}),p=$r(o,{coerceTo:a});if(!d||!p||!u)return null;const m=d.value-p.value;if(!m)return null;const h=jr(p.value/100,3),g=jr(h,3)+a,f=jr(((c.value-s.value)/m*100||1)*l,3);return`clamp(${e}, ${`${u.value}${u.unit} + ((1vw - ${g}) * ${f})`}, ${t})`}function $r(e,t={}){if("string"!=typeof e&&"number"!=typeof e)return null;isFinite(e)&&(e=`${e}px`);const{coerceTo:n,rootSizeValue:o,acceptableUnits:r}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},l=r?.join("|"),i=new RegExp(`^(\\d*\\.?\\d+)(${l}){1,1}$`),s=e.match(i);if(!s||s.length<3)return null;let[,a,c]=s,u=parseFloat(a);return"px"!==n||"em"!==c&&"rem"!==c||(u*=o,c=n),"px"!==c||"em"!==n&&"rem"!==n||(u/=o,c=n),"em"!==n&&"rem"!==n||"em"!==c&&"rem"!==c||(c=n),{value:jr(u,3),unit:c}}function jr(e,t=3){const n=Math.pow(10,t);return Number.isFinite(e)?parseFloat(Math.round(e*n)/n):void 0}function Wr(e,t){const{size:n}=e;if(!Kr(t))return n;if(!n||"0"===n||!1===e?.fluid)return n;const o="object"==typeof t?.fluid?t?.fluid:{},r=Ur({minimumFontSize:e?.fluid?.min,maximumFontSize:e?.fluid?.max,fontSize:n,minimumFontSizeLimit:o?.minFontSize,maximumViewportWidth:o?.maxViewportWidth,minimumViewportWidth:o?.minViewportWidth});return r||n}function Kr(e){const t=e?.fluid;return!0===t||t&&"object"==typeof t&&Object.keys(t).length>0}function Zr(e){const t=e?.typography,n=e?.layout,o=$r(n?.wideSize)?n?.wideSize:null;return Kr(t)&&o?{fluid:{maxViewportWidth:o,...t.fluid}}:{fluid:t?.fluid}}const qr="body",Yr=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["color","duotone"],valueKey:"colors",cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["shadow","presets"],valueKey:"shadow",cssVarInfix:"shadow",classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>Wr(e,Zr(t)),valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]}],Xr={"color.background":"color","color.text":"color","filter.duotone":"duotone","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.caption.color.text":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient",shadow:"shadow","typography.fontSize":"font-size","typography.fontFamily":"font-family"},Qr={popoverProps:{placement:"left-start",offset:259}};function Jr(e,t,n,o,r){const l=[Wn(e,["blocks",t,...n]),Wn(e,n)];for(const i of l)if(i){const l=["custom","theme","default"];for(const s of l){const l=i[s];if(l){const i=l.find((e=>e[o]===r));if(i){if("slug"===o)return i;return Jr(e,t,n,"slug",i.slug)[o]===i[o]?i:void 0}}}}}function el(e,t,n){if(!n||"string"!=typeof n){if(!n?.ref||"string"!=typeof n?.ref)return n;{const t=n.ref.split(".");if(!(n=Wn(e,t))||n?.ref)return n}}const o="var:",r="var(--wp--";let l;if(n.startsWith(o))l=n.slice(4).split("|");else{if(!n.startsWith(r)||!n.endsWith(")"))return n;l=n.slice(10,-1).split("--")}const[i,...s]=l;return"preset"===i?function(e,t,n,[o,r]){const l=Yr.find((e=>e.cssVarInfix===o));if(!l)return n;const i=Jr(e.settings,t,l.path,"slug",r);if(i){const{valueKey:n}=l;return el(e,t,i[n])}return n}(e,t,n,s):"custom"===i?function(e,t,n,o){var r;const l=null!==(r=Wn(e.settings,["blocks",t,"custom",...o]))&&void 0!==r?r:Wn(e.settings,["custom",...o]);return l?el(e,t,l):n}(e,t,n,s):n}function tl(e,t){const n=e.split(","),o=t.split(","),r=[];return n.forEach((e=>{o.forEach((t=>{r.push(`${e.trim()} ${t.trim()}`)}))})),r.join(", ")}function nl(e,t){return"object"!=typeof e||"object"!=typeof t?e===t:C()(e?.styles,t?.styles)&&C()(e?.settings,t?.settings)}const ol=(0,u.createContext)({user:{},base:{},merged:{},setUserConfig:()=>{}}),rl={settings:{},styles:{}},ll=["appearanceTools","useRootPaddingAwareAlignments","background.backgroundImage","background.backgroundRepeat","background.backgroundSize","border.color","border.radius","border.style","border.width","shadow.presets","shadow.defaultPresets","color.background","color.button","color.caption","color.custom","color.customDuotone","color.customGradient","color.defaultDuotone","color.defaultGradients","color.defaultPalette","color.duotone","color.gradients","color.heading","color.link","color.palette","color.text","custom","dimensions.aspectRatio","dimensions.minHeight","layout.contentSize","layout.definitions","layout.wideSize","lightbox.enabled","lightbox.allowEditing","position.fixed","position.sticky","spacing.customSpacingSize","spacing.spacingSizes","spacing.spacingScale","spacing.blockGap","spacing.margin","spacing.padding","spacing.units","typography.fluid","typography.customFontSize","typography.dropCap","typography.fontFamilies","typography.fontSizes","typography.fontStyle","typography.fontWeight","typography.letterSpacing","typography.lineHeight","typography.textColumns","typography.textDecoration","typography.textTransform","typography.writingMode"],il=()=>{const{user:e,setUserConfig:t}=(0,u.useContext)(ol);return[!!e&&!C()(e,rl),(0,u.useCallback)((()=>t((()=>rl))),[t])]};function sl(e,t,n="all"){const{setUserConfig:o,...r}=(0,u.useContext)(ol),l=t?".blocks."+t:"",i=e?"."+e:"",s=`settings${l}${i}`,a=`settings${i}`,c="all"===n?"merged":n;return[(0,u.useMemo)((()=>{const t=r[c];if(!t)throw"Unsupported source";var n;if(e)return null!==(n=Wn(t,s))&&void 0!==n?n:Wn(t,a);let o={};return ll.forEach((e=>{var n;const r=null!==(n=Wn(t,`settings${l}.${e}`))&&void 0!==n?n:Wn(t,`settings.${e}`);void 0!==r&&(o=jn(o,e.split("."),r))})),o}),[r,c,e,s,a,l]),e=>{o((t=>jn(t,s.split("."),e)))}]}function al(e,t,n="all",{shouldDecodeEncode:o=!0}={}){const{merged:r,base:l,user:i,setUserConfig:s}=(0,u.useContext)(ol),a=e?"."+e:"",c=t?`styles.blocks.${t}${a}`:`styles${a}`;let d,p;switch(n){case"all":d=Wn(r,c),p=o?el(r,t,d):d;break;case"user":d=Wn(i,c),p=o?el(r,t,d):d;break;case"base":d=Wn(l,c),p=o?el(l,t,d):d;break;default:throw"Unsupported source"}return[p,n=>{s((l=>jn(l,c.split("."),o?function(e,t,n,o){if(!o)return o;const r=Xr[n],l=Yr.find((e=>e.cssVarInfix===r));if(!l)return o;const{valueKey:i,path:s}=l,a=Jr(e,t,s,i,o);return a?`var:preset|${r}|${a.slug}`:o}(r.settings,t,e,n):n)))}]}function cl(e,t,n){const{supportedStyles:o,supports:r}=(0,d.useSelect)((e=>({supportedStyles:ie(e(c.store)).getSupportedStyles(t,n),supports:e(c.store).getBlockType(t)?.supports})),[t,n]);return(0,u.useMemo)((()=>{const t={...e};return o.includes("fontSize")||(t.typography={...t.typography,fontSizes:{},customFontSize:!1}),o.includes("fontFamily")||(t.typography={...t.typography,fontFamilies:{}}),t.color={...t.color,text:t.color?.text&&o.includes("color"),background:t.color?.background&&(o.includes("background")||o.includes("backgroundColor")),button:t.color?.button&&o.includes("buttonColor"),heading:t.color?.heading&&o.includes("headingColor"),link:t.color?.link&&o.includes("linkColor"),caption:t.color?.caption&&o.includes("captionColor")},o.includes("background")||(t.color.gradients=[],t.color.customGradient=!1),o.includes("filter")||(t.color.defaultDuotone=!1,t.color.customDuotone=!1),["lineHeight","fontStyle","fontWeight","letterSpacing","textTransform","textDecoration","writingMode"].forEach((e=>{o.includes(e)||(t.typography={...t.typography,[e]:!1})})),o.includes("columnCount")||(t.typography={...t.typography,textColumns:!1}),["contentSize","wideSize"].forEach((e=>{o.includes(e)||(t.layout={...t.layout,[e]:!1})})),["padding","margin","blockGap"].forEach((e=>{o.includes(e)||(t.spacing={...t.spacing,[e]:!1});const n=Array.isArray(r?.spacing?.[e])?r?.spacing?.[e]:r?.spacing?.[e]?.sides;n?.length&&t.spacing?.[e]&&(t.spacing={...t.spacing,[e]:{...t.spacing?.[e],sides:n}})})),["aspectRatio","minHeight"].forEach((e=>{o.includes(e)||(t.dimensions={...t.dimensions,[e]:!1})})),["radius","color","style","width"].forEach((e=>{o.includes("border"+e.charAt(0).toUpperCase()+e.slice(1))||(t.border={...t.border,[e]:!1})})),t.shadow=!!o.includes("shadow")&&t.shadow,t}),[e,o,r])}function ul(e){const t=e?.color?.palette?.custom,n=e?.color?.palette?.theme,o=e?.color?.palette?.default,r=e?.color?.defaultPalette;return(0,u.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,x._x)("Theme","Indicates this palette comes from the theme."),colors:n}),r&&o&&o.length&&e.push({name:(0,x._x)("Default","Indicates this palette comes from WordPress."),colors:o}),t&&t.length&&e.push({name:(0,x._x)("Custom","Indicates this palette is created by the user."),colors:t}),e}),[t,n,o,r])}function dl(e){const t=e?.color?.gradients?.custom,n=e?.color?.gradients?.theme,o=e?.color?.gradients?.default,r=e?.color?.defaultGradients;return(0,u.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,x._x)("Theme","Indicates this palette comes from the theme."),gradients:n}),r&&o&&o.length&&e.push({name:(0,x._x)("Default","Indicates this palette comes from WordPress."),gradients:o}),t&&t.length&&e.push({name:(0,x._x)("Custom","Indicates this palette is created by the user."),gradients:t}),e}),[t,n,o,r])}var pl=n(5755),ml=n.n(pl);const hl=e=>{if(null===e||"object"!=typeof e||Array.isArray(e))return e;const t=Object.entries(e).map((([e,t])=>[e,hl(t)])).filter((([,e])=>void 0!==e));return t.length?Object.fromEntries(t):void 0};function gl(e,t,n,o,r,l){if(Object.values(null!=e?e:{}).every((e=>!e)))return n;if(1===l.length&&n.innerBlocks.length===o.length)return n;let i=o[0]?.attributes;if(l.length>1&&o.length>1){if(!o[r])return n;i=o[r]?.attributes}let s=n;return Object.entries(e).forEach((([e,n])=>{n&&t[e].forEach((e=>{const t=Wn(i,e);t&&(s={...s,attributes:jn(s.attributes,e,t)})}))})),s}function fl(e,t,n){const o=(0,c.getBlockSupport)(e,t),r=o?.__experimentalSkipSerialization;return Array.isArray(r)?r.includes(n):r}function bl({id:e,css:t,assets:n,__unstableType:o}={}){const{setStyleOverride:r,deleteStyleOverride:l}=ie((0,d.useDispatch)(Nr)),i=(0,u.useId)();(0,u.useEffect)((()=>{if(!t&&!n)return;const s=e||i;return r(s,{id:e,css:t,assets:n,__unstableType:o}),()=>{l(s)}}),[e,t,n,o,i,r,l])}function vl(e,t){const[n,o,r,l,i,s,a,c,d,p,m,h,g,f,b,v,k,_,y,E,w,S,C,x,B,I,T,M,P,R,N,L,A,O,D,z,V,F,H,G,U,$,j,W,K,Z,q,Y,X,Q]=Ar("background.backgroundImage","background.backgroundSize","typography.fontFamilies.custom","typography.fontFamilies.default","typography.fontFamilies.theme","typography.fontSizes.custom","typography.fontSizes.default","typography.fontSizes.theme","typography.customFontSize","typography.fontStyle","typography.fontWeight","typography.lineHeight","typography.textColumns","typography.textDecoration","typography.writingMode","typography.textTransform","typography.letterSpacing","spacing.padding","spacing.margin","spacing.blockGap","spacing.spacingSizes","spacing.units","dimensions.aspectRatio","dimensions.minHeight","layout","border.color","border.radius","border.style","border.width","color.custom","color.palette.custom","color.customDuotone","color.palette.theme","color.palette.default","color.defaultPalette","color.defaultDuotone","color.duotone.custom","color.duotone.theme","color.duotone.default","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients","color.customGradient","color.background","color.link","color.text","color.heading","color.button","shadow");return cl((0,u.useMemo)((()=>({background:{backgroundImage:n,backgroundSize:o},color:{palette:{custom:N,theme:A,default:O},gradients:{custom:G,theme:U,default:$},duotone:{custom:V,theme:F,default:H},defaultGradients:j,defaultPalette:D,defaultDuotone:z,custom:R,customGradient:W,customDuotone:L,background:K,link:Z,heading:Y,button:X,text:q},typography:{fontFamilies:{custom:r,default:l,theme:i},fontSizes:{custom:s,default:a,theme:c},customFontSize:d,fontStyle:p,fontWeight:m,lineHeight:h,textColumns:g,textDecoration:f,textTransform:v,letterSpacing:k,writingMode:b},spacing:{spacingSizes:{custom:w},padding:_,margin:y,blockGap:E,units:S},border:{color:I,radius:T,style:M,width:P},dimensions:{aspectRatio:C,minHeight:x},layout:B,parentLayout:t,shadow:Q})),[n,o,r,l,i,s,a,c,d,p,m,h,g,f,v,k,b,_,y,E,w,S,C,x,B,t,I,T,M,P,R,N,L,A,O,D,z,V,F,H,G,U,$,j,W,K,Z,q,Y,X,Q]),e)}const kl=(0,u.memo)((function({index:e,useBlockProps:t,setAllWrapperProps:n,...o}){const r=t(o),l=t=>n((n=>{const o=[...n];return o[e]=t,o}));return(0,u.useEffect)((()=>(l(r),()=>{l(void 0)}))),null}));(0,m.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&(0,c.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));const _l=window.wp.components,yl={default:(0,_l.createSlotFill)("BlockControls"),block:(0,_l.createSlotFill)("BlockControlsBlock"),inline:(0,_l.createSlotFill)("BlockFormatControls"),other:(0,_l.createSlotFill)("BlockControlsOther"),parent:(0,_l.createSlotFill)("BlockControlsParent")};function El({group:e="default",controls:t,children:n,__experimentalShareWithChildBlocks:o=!1}){const r=function(e,t){const n=y();return n[h]?yl[e]?.Fill:n[g]&&t?yl.parent.Fill:null}(e,o);if(!r)return null;const l=(0,s.createElement)(s.Fragment,null,"default"===e&&(0,s.createElement)(_l.ToolbarGroup,{controls:t}),n);return(0,s.createElement)(_l.__experimentalStyleProvider,{document},(0,s.createElement)(r,null,(e=>{const{forwardedContext:t=[]}=e;return t.reduce(((e,[t,n])=>(0,s.createElement)(t,{...n},e)),l)})))}window.wp.warning;const{ComponentsContext:wl}=ie(_l.privateApis);function Sl({group:e="default",...t}){const n=(0,u.useContext)(_l.__experimentalToolbarContext),o=(0,u.useContext)(wl),r=(0,u.useMemo)((()=>({forwardedContext:[[_l.__experimentalToolbarContext.Provider,{value:n}],[wl.Provider,{value:o}]]})),[n,o]),l=yl[e]?.Slot,i=(0,_l.__experimentalUseSlotFills)(l?.__unstableName);if(!l)return null;if(!i?.length)return null;const a=(0,s.createElement)(l,{...t,bubblesVirtually:!0,fillProps:r});return"default"===e?a:(0,s.createElement)(_l.ToolbarGroup,null,a)}const Cl=El;Cl.Slot=Sl;const xl=e=>(0,s.createElement)(El,{group:"inline",...e});xl.Slot=e=>(0,s.createElement)(Sl,{group:"inline",...e});const Bl=Cl,Il=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),Tl=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})),Ml=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),Pl=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),Rl=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})),Nl=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})),Ll=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})),Al={default:{name:"default",slug:"flow",className:"is-layout-flow",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}}],spacingStyles:[{selector:" > :first-child:first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child:last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},constrained:{name:"constrained",slug:"constrained",className:"is-layout-constrained",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > :where(:not(.alignleft):not(.alignright):not(.alignfull))",rules:{"max-width":"var(--wp--style--global--content-size)","margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > .alignwide",rules:{"max-width":"var(--wp--style--global--wide-size)"}}],spacingStyles:[{selector:" > :first-child:first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child:last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},flex:{name:"flex",slug:"flex",className:"is-layout-flex",displayMode:"flex",baseStyles:[{selector:"",rules:{"flex-wrap":"wrap","align-items":"center"}},{selector:" > *",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > *",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};function Ol(e,t=""){return e.split(",").map((e=>`.editor-styles-wrapper ${e}${t?` ${t}`:""}`)).join(",")}function Dl(e,t=Al,n,o){let r="";return t?.[n]?.spacingStyles?.length&&o&&t[n].spacingStyles.forEach((t=>{r+=`${Ol(e,t.selector.trim())} { `,r+=Object.entries(t.rules).map((([e,t])=>`${e}: ${t||o}`)).join("; "),r+="; }"})),r}function zl(e){const{contentSize:t,wideSize:n,type:o="default"}=e,r={},l=/^(?!0)\d+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i;return l.test(t)&&"constrained"===o&&(r.none=(0,x.sprintf)((0,x.__)("Max %s wide"),t)),l.test(n)&&(r.wide=(0,x.sprintf)((0,x.__)("Max %s wide"),n)),r}const Vl=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"})),Fl=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,s.createElement)(Z.Path,{d:"m4.5 7.5v9h1.5v-9z"}),(0,s.createElement)(Z.Path,{d:"m18 7.5v9h1.5v-9z"})),Hl=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,s.createElement)(Z.Path,{d:"m7.5 6h9v-1.5h-9z"}),(0,s.createElement)(Z.Path,{d:"m7.5 19.5h9v-1.5h-9z"})),Gl=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,s.createElement)(Z.Path,{d:"m16.5 6h-9v-1.5h9z"})),Ul=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,s.createElement)(Z.Path,{d:"m18 16.5v-9h1.5v9z"})),$l=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,s.createElement)(Z.Path,{d:"m16.5 19.5h-9v-1.5h9z",style:{fill:"#1e1e1e"}})),jl=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,s.createElement)(Z.Path,{d:"m4.5 16.5v-9h1.5v9z"})),Wl=["top","right","bottom","left"],Kl={top:void 0,right:void 0,bottom:void 0,left:void 0},Zl={custom:Vl,axial:Vl,horizontal:Fl,vertical:Hl,top:Gl,right:Ul,bottom:$l,left:jl},ql={default:(0,x.__)("Spacing control"),top:(0,x.__)("Top"),bottom:(0,x.__)("Bottom"),left:(0,x.__)("Left"),right:(0,x.__)("Right"),mixed:(0,x.__)("Mixed"),vertical:(0,x.__)("Vertical"),horizontal:(0,x.__)("Horizontal"),axial:(0,x.__)("Horizontal & vertical"),custom:(0,x.__)("Custom")},Yl={axial:"axial",top:"top",right:"right",bottom:"bottom",left:"left",custom:"custom"};function Xl(e){return!!e?.includes&&("0"===e||e.includes("var:preset|spacing|"))}function Ql(e,t){if(!Xl(e))return e;const n=ti(e),o=t.find((e=>String(e.slug)===n));return o?.size}function Jl(e,t){if(!e||Xl(e)||"0"===e)return e;const n=t.find((t=>String(t.size)===String(e)));return n?.slug?`var:preset|spacing|${n.slug}`:e}function ei(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function ti(e){if(!e)return;if("0"===e||"default"===e)return e;const t=e.match(/var:preset\|spacing\|(.+)/);return t?t[1]:void 0}function ni(e,t){if(!e||!e.length)return!1;const n=e.includes("horizontal")||e.includes("left")&&e.includes("right"),o=e.includes("vertical")||e.includes("top")&&e.includes("bottom");return"horizontal"===t?n:"vertical"===t?o:n||o}function oi(e,t="0"){const n=function(e){if(!e)return null;const t="string"==typeof e;return{top:t?e:e?.top,left:t?e:e?.left}}(e);if(!n)return null;const o=ei(n?.top)||t,r=ei(n?.left)||t;return o===r?o:`${o} ${r}`}const ri=(0,s.createElement)(_l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(_l.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),li=(0,s.createElement)(_l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(_l.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),ii=(0,s.createElement)(_l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(_l.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),si=(0,s.createElement)(_l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(_l.Path,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})),ai=(0,s.createElement)(_l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(_l.Path,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})),ci={top:{icon:ii,title:(0,x._x)("Align top","Block vertical alignment setting")},center:{icon:li,title:(0,x._x)("Align middle","Block vertical alignment setting")},bottom:{icon:ri,title:(0,x._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:si,title:(0,x._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:ai,title:(0,x._x)("Space between","Block vertical alignment setting")}},ui=["top","center","bottom"];const di=function({value:e,onChange:t,controls:n=ui,isCollapsed:o=!0,isToolbar:r}){function l(n){return()=>t(e===n?void 0:n)}const i=ci[e],a=ci.top,c=r?_l.ToolbarGroup:_l.ToolbarDropdownMenu,u=r?{isCollapsed:o}:{};return(0,s.createElement)(c,{icon:i?i.icon:a.icon,label:(0,x._x)("Change vertical alignment","Block vertical alignment setting label"),controls:n.map((t=>({...ci[t],isActive:e===t,role:o?"menuitemradio":void 0,onClick:l(t)}))),...u})},pi=e=>(0,s.createElement)(di,{...e,isToolbar:!1}),mi=e=>(0,s.createElement)(di,{...e,isToolbar:!0}),hi={left:Il,center:Tl,right:Ml,"space-between":Pl,stretch:Rl};const gi=function({allowedControls:e=["left","center","right","space-between"],isCollapsed:t=!0,onChange:n,value:o,popoverProps:r,isToolbar:l}){const i=e=>{n(e===o?void 0:e)},a=o?hi[o]:hi.left,c=[{name:"left",icon:Il,title:(0,x.__)("Justify items left"),isActive:"left"===o,onClick:()=>i("left")},{name:"center",icon:Tl,title:(0,x.__)("Justify items center"),isActive:"center"===o,onClick:()=>i("center")},{name:"right",icon:Ml,title:(0,x.__)("Justify items right"),isActive:"right"===o,onClick:()=>i("right")},{name:"space-between",icon:Pl,title:(0,x.__)("Space between items"),isActive:"space-between"===o,onClick:()=>i("space-between")},{name:"stretch",icon:Rl,title:(0,x.__)("Stretch items"),isActive:"stretch"===o,onClick:()=>i("stretch")}],u=l?_l.ToolbarGroup:_l.ToolbarDropdownMenu,d=l?{isCollapsed:t}:{};return(0,s.createElement)(u,{icon:a,popoverProps:r,label:(0,x.__)("Change items justification"),controls:c.filter((t=>e.includes(t.name))),...d})},fi=e=>(0,s.createElement)(gi,{...e,isToolbar:!1}),bi=e=>(0,s.createElement)(gi,{...e,isToolbar:!0}),vi={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},ki={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},_i={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},yi=["wrap","nowrap"],Ei={name:"flex",label:(0,x.__)("Flex"),inspectorControls:function({layout:e={},onChange:t,layoutBlockSupport:n={}}){const{allowOrientation:o=!0}=n;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.Flex,null,(0,s.createElement)(_l.FlexItem,null,(0,s.createElement)(Ci,{layout:e,onChange:t})),(0,s.createElement)(_l.FlexItem,null,o&&(0,s.createElement)(Bi,{layout:e,onChange:t}))),(0,s.createElement)(xi,{layout:e,onChange:t}))},toolBarControls:function({layout:e={},onChange:t,layoutBlockSupport:n}){if(n?.allowSwitching)return null;const{allowVerticalAlignment:o=!0}=n;return(0,s.createElement)(Bl,{group:"block",__experimentalShareWithChildBlocks:!0},(0,s.createElement)(Ci,{layout:e,onChange:t,isToolbar:!0}),o&&(0,s.createElement)(wi,{layout:e,onChange:t,isToolbar:!0}))},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:l=Al}){const{orientation:i="horizontal"}=t,s=n?.spacing?.blockGap&&!fl(o,"spacing","blockGap")?oi(n?.spacing?.blockGap,"0.5em"):void 0,a=vi[t.justifyContent],c=yi.includes(t.flexWrap)?t.flexWrap:"wrap",u=_i[t.verticalAlignment],d=ki[t.justifyContent]||ki.left;let p="";const m=[];return c&&"wrap"!==c&&m.push(`flex-wrap: ${c}`),"horizontal"===i?(u&&m.push(`align-items: ${u}`),a&&m.push(`justify-content: ${a}`)):(u&&m.push(`justify-content: ${u}`),m.push("flex-direction: column"),m.push(`align-items: ${d}`)),m.length&&(p=`${Ol(e)} {\n\t\t\t\t${m.join("; ")};\n\t\t\t}`),r&&s&&(p+=Dl(e,l,"flex",s)),p},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments:()=>[]};function wi({layout:e,onChange:t,isToolbar:n=!1}){const{orientation:o="horizontal"}=e,r="horizontal"===o?_i.center:_i.top,{verticalAlignment:l=r}=e,i=n=>{t({...e,verticalAlignment:n})};if(n)return(0,s.createElement)(pi,{onChange:i,value:l,controls:"horizontal"===o?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]});const a=[{value:"flex-start",label:(0,x.__)("Align items top")},{value:"center",label:(0,x.__)("Align items center")},{value:"flex-end",label:(0,x.__)("Align items bottom")}];return(0,s.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-vertical-alignment-control"},(0,s.createElement)("legend",null,(0,x.__)("Vertical alignment")),(0,s.createElement)("div",null,a.map(((e,t,n)=>(0,s.createElement)(_l.Button,{key:e,label:n,icon:t,isPressed:l===e,onClick:()=>i(e)})))))}const Si={placement:"bottom-start"};function Ci({layout:e,onChange:t,isToolbar:n=!1}){const{justifyContent:o="left",orientation:r="horizontal"}=e,l=n=>{t({...e,justifyContent:n})},i=["left","center","right"];if("horizontal"===r?i.push("space-between"):i.push("stretch"),n)return(0,s.createElement)(fi,{allowedControls:i,value:o,onChange:l,popoverProps:Si});const a=[{value:"left",icon:Il,label:(0,x.__)("Justify items left")},{value:"center",icon:Tl,label:(0,x.__)("Justify items center")},{value:"right",icon:Ml,label:(0,x.__)("Justify items right")}];return"horizontal"===r?a.push({value:"space-between",icon:Pl,label:(0,x.__)("Space between items")}):a.push({value:"stretch",icon:Rl,label:(0,x.__)("Stretch items")}),(0,s.createElement)(_l.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,x.__)("Justification"),value:o,onChange:l,className:"block-editor-hooks__flex-layout-justification-controls"},a.map((({value:e,icon:t,label:n})=>(0,s.createElement)(_l.__experimentalToggleGroupControlOptionIcon,{key:e,value:e,icon:t,label:n}))))}function xi({layout:e,onChange:t}){const{flexWrap:n="wrap"}=e;return(0,s.createElement)(_l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,x.__)("Allow to wrap to multiple lines"),onChange:n=>{t({...e,flexWrap:n?"wrap":"nowrap"})},checked:"wrap"===n})}function Bi({layout:e,onChange:t}){const{orientation:n="horizontal",verticalAlignment:o,justifyContent:r}=e;return(0,s.createElement)(_l.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__flex-layout-orientation-controls",label:(0,x.__)("Orientation"),value:n,onChange:n=>{let l=o,i=r;return"horizontal"===n?("space-between"===o&&(l="center"),"stretch"===r&&(i="left")):("stretch"===o&&(l="top"),"space-between"===r&&(i="left")),t({...e,orientation:n,verticalAlignment:l,justifyContent:i})}},(0,s.createElement)(_l.__experimentalToggleGroupControlOptionIcon,{icon:Nl,value:"horizontal",label:(0,x.__)("Horizontal")}),(0,s.createElement)(_l.__experimentalToggleGroupControlOptionIcon,{icon:Ll,value:"vertical",label:(0,x.__)("Vertical")}))}const Ii={name:"default",label:(0,x.__)("Flow"),inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,style:t,blockName:n,hasBlockGapSupport:o,layoutDefinitions:r=Al}){const l=oi(t?.spacing?.blockGap);let i="";fl(n,"spacing","blockGap")||(l?.top?i=oi(l?.top):"string"==typeof l&&(i=oi(l)));let s="";return o&&i&&(s+=Dl(e,r,"default",i)),s},getOrientation:()=>"vertical",getAlignments(e,t){const n=zl(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:n[e]})));const o=[{name:"left"},{name:"center"},{name:"right"}];if(!t){const{contentSize:t,wideSize:r}=e;t&&o.unshift({name:"full"}),r&&o.unshift({name:"wide",info:n.wide})}return o.unshift({name:"none",info:n.none}),o}};const Ti=(0,u.forwardRef)((function({icon:e,size:t=24,...n},o){return(0,u.cloneElement)(e,{width:t,height:t,...n,ref:o})})),Mi=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})),Pi=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})),Ri=window.wp.styleEngine,Ni={name:"constrained",label:(0,x.__)("Constrained"),inspectorControls:function({layout:e,onChange:t,layoutBlockSupport:n={}}){const{wideSize:o,contentSize:r,justifyContent:l="center"}=e,{allowJustification:i=!0,allowCustomContentAndWideSize:a=!0}=n,c=[{value:"left",icon:Il,label:(0,x.__)("Justify items left")},{value:"center",icon:Tl,label:(0,x.__)("Justify items center")},{value:"right",icon:Ml,label:(0,x.__)("Justify items right")}],[u]=Ar("spacing.units"),d=(0,_l.__experimentalUseCustomUnits)({availableUnits:u||["%","px","em","rem","vw"]});return(0,s.createElement)(s.Fragment,null,a&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls"},(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,s.createElement)(_l.__experimentalUnitControl,{className:"block-editor-hooks__layout-controls-unit-input",label:(0,x.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:r||o||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,contentSize:n})},units:d}),(0,s.createElement)(Ti,{icon:Mi})),(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,s.createElement)(_l.__experimentalUnitControl,{className:"block-editor-hooks__layout-controls-unit-input",label:(0,x.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:o||r||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,wideSize:n})},units:d}),(0,s.createElement)(Ti,{icon:Pi}))),(0,s.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},(0,x.__)("Customize the width for all elements that are assigned to the center or wide columns."))),i&&(0,s.createElement)(_l.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,x.__)("Justification"),value:l,onChange:n=>{t({...e,justifyContent:n})}},c.map((({value:e,icon:t,label:n})=>(0,s.createElement)(_l.__experimentalToggleGroupControlOptionIcon,{key:e,value:e,icon:t,label:n})))))},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,layout:t={},style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:l=Al}){const{contentSize:i,wideSize:s,justifyContent:a}=t,c=oi(n?.spacing?.blockGap);let u="";fl(o,"spacing","blockGap")||(c?.top?u=oi(c?.top):"string"==typeof c&&(u=oi(c)));const d="left"===a?"0 !important":"auto !important",p="right"===a?"0 !important":"auto !important";let m=i||s?`\n\t\t\t\t\t${Ol(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} {\n\t\t\t\t\t\tmax-width: ${null!=i?i:s};\n\t\t\t\t\t\tmargin-left: ${d};\n\t\t\t\t\t\tmargin-right: ${p};\n\t\t\t\t\t}\n\t\t\t\t\t${Ol(e,"> .alignwide")} {\n\t\t\t\t\t\tmax-width: ${null!=s?s:i};\n\t\t\t\t\t}\n\t\t\t\t\t${Ol(e,"> .alignfull")} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:"";if("left"===a?m+=`${Ol(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-left: ${d}; }`:"right"===a&&(m+=`${Ol(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-right: ${p}; }`),n?.spacing?.padding){(0,Ri.getCSSRules)(n).forEach((t=>{"paddingRight"===t.key?m+=`\n\t\t\t\t\t${Ol(e,"> .alignfull")} {\n\t\t\t\t\t\tmargin-right: calc(${t.value} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`:"paddingLeft"===t.key&&(m+=`\n\t\t\t\t\t${Ol(e,"> .alignfull")} {\n\t\t\t\t\t\tmargin-left: calc(${t.value} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`)}))}return r&&u&&(m+=Dl(e,l,"constrained",u)),m},getOrientation:()=>"vertical",getAlignments(e){const t=zl(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:t[e]})));const{contentSize:n,wideSize:o}=e,r=[{name:"left"},{name:"center"},{name:"right"}];return n&&r.unshift({name:"full"}),o&&r.unshift({name:"wide",info:t.wide}),r.unshift({name:"none",info:t.none}),r}},Li={px:600,"%":100,vw:100,vh:100,em:38,rem:38,svw:100,lvw:100,dvw:100,svh:100,lvh:100,dvh:100,vi:100,svi:100,lvi:100,dvi:100,vb:100,svb:100,lvb:100,dvb:100,vmin:100,svmin:100,lvmin:100,dvmin:100,vmax:100,svmax:100,lvmax:100,dvmax:100},Ai={name:"grid",label:(0,x.__)("Grid"),inspectorControls:function({layout:e={},onChange:t}){return e?.columnCount?(0,s.createElement)(Di,{layout:e,onChange:t}):(0,s.createElement)(Oi,{layout:e,onChange:t})},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:l=Al}){const{minimumColumnWidth:i="12rem",columnCount:s=null}=t,a=n?.spacing?.blockGap&&!fl(o,"spacing","blockGap")?oi(n?.spacing?.blockGap,"0.5em"):void 0;let c="";const u=[];return s?u.push(`grid-template-columns: repeat(${s}, minmax(0, 1fr))`):i&&u.push(`grid-template-columns: repeat(auto-fill, minmax(min(${i}, 100%), 1fr))`),u.length&&(c=`${Ol(e)} { ${u.join("; ")}; }`),r&&a&&(c+=Dl(e,l,"grid",a)),c},getOrientation:()=>"horizontal",getAlignments:()=>[]};function Oi({layout:e,onChange:t}){const{minimumColumnWidth:n="12rem"}=e,[o,r]=(0,_l.__experimentalParseQuantityAndUnitFromRawValue)(n);return(0,s.createElement)("fieldset",null,(0,s.createElement)(_l.BaseControl.VisualLabel,{as:"legend"},(0,x.__)("Minimum column width")),(0,s.createElement)(_l.Flex,{gap:4},(0,s.createElement)(_l.FlexItem,{isBlock:!0},(0,s.createElement)(_l.__experimentalUnitControl,{size:"__unstable-large",onChange:n=>{t({...e,minimumColumnWidth:n})},onUnitChange:n=>{let l;["em","rem"].includes(n)&&"px"===r?l=(o/16).toFixed(2)+n:["em","rem"].includes(r)&&"px"===n?l=Math.round(16*o)+n:["vh","vw","%","svw","lvw","dvw","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax"].includes(n)&&o>100&&(l=100+n),t({...e,minimumColumnWidth:l})},value:n,min:0})),(0,s.createElement)(_l.FlexItem,{isBlock:!0},(0,s.createElement)(_l.RangeControl,{onChange:n=>{t({...e,minimumColumnWidth:[n,r].join("")})},value:o,min:0,max:Li[r]||600,withInputField:!1}))))}function Di({layout:e,onChange:t}){const{columnCount:n=3}=e;return(0,s.createElement)(_l.RangeControl,{label:(0,x.__)("Columns"),value:n,onChange:n=>t({...e,columnCount:n}),min:1,max:6})}const zi=[Ii,Ei,Ni,Ai];function Vi(e="default"){return zi.find((t=>t.name===e))}const Fi={type:"default"},Hi=(0,u.createContext)(Fi),Gi=Hi.Provider;function Ui(){return(0,u.useContext)(Hi)}const $i=[],ji=["none","left","center","right","wide","full"],Wi=["wide","full"];function Ki(e=ji){e.includes("none")||(e=["none",...e]);const t=1===e.length&&"none"===e[0],[n,o,r]=(0,d.useSelect)((e=>{var n;if(t)return[!1,!1,!1];const o=e(Nr).getSettings();return[null!==(n=o.alignWide)&&void 0!==n&&n,o.supportsLayout,o.__unstableIsBlockBasedTheme]}),[t]),l=Ui();if(t)return $i;const i=Vi(l?.type);if(o){const t=i.getAlignments(l,r).filter((t=>e.includes(t.name)));return 1===t.length&&"none"===t[0].name?$i:t}if("default"!==i.name&&"constrained"!==i.name)return $i;const s=e.filter((e=>l.alignments?l.alignments.includes(e):!(!n&&Wi.includes(e))&&ji.includes(e))).map((e=>({name:e})));return 1===s.length&&"none"===s[0].name?$i:s}const Zi=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})),qi=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})),Yi=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})),Xi=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"})),Qi={none:{icon:Zi,title:(0,x._x)("None","Alignment option")},left:{icon:qi,title:(0,x.__)("Align left")},center:{icon:Mi,title:(0,x.__)("Align center")},right:{icon:Yi,title:(0,x.__)("Align right")},wide:{icon:Pi,title:(0,x.__)("Wide width")},full:{icon:Xi,title:(0,x.__)("Full width")}};const Ji=function({value:e,onChange:t,controls:n,isToolbar:o,isCollapsed:r=!0}){const l=Ki(n);if(!!!l.length)return null;function i(n){t([e,"none"].includes(n)?void 0:n)}const a=Qi[e],c=Qi.none,u=o?_l.ToolbarGroup:_l.ToolbarDropdownMenu,d={icon:a?a.icon:c.icon,label:(0,x.__)("Align")},p=o?{isCollapsed:r,controls:l.map((({name:t})=>({...Qi[t],isActive:e===t||!e&&"none"===t,role:r?"menuitemradio":void 0,onClick:()=>i(t)})))}:{toggleProps:{describedBy:(0,x.__)("Change alignment")},children:({onClose:t})=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.MenuGroup,{className:"block-editor-block-alignment-control__menu-group"},l.map((({name:n,info:o})=>{const{icon:r,title:l}=Qi[n],a=n===e||!e&&"none"===n;return(0,s.createElement)(_l.MenuItem,{key:n,icon:r,iconPosition:"left",className:ml()("components-dropdown-menu__menu-item",{"is-active":a}),isSelected:a,onClick:()=>{i(n),t()},role:"menuitemradio",info:o},l)}))))};return(0,s.createElement)(u,{...d,...p})},es=e=>(0,s.createElement)(Ji,{...e,isToolbar:!1}),ts=e=>(0,s.createElement)(Ji,{...e,isToolbar:!0});function ns(e){const t=y(),{clientId:n=""}=t,{setBlockEditingMode:o,unsetBlockEditingMode:r}=(0,d.useDispatch)(Nr),l=(0,d.useSelect)((e=>n?null:e(Nr).getBlockEditingMode()),[n]);return(0,u.useEffect)((()=>(e&&o(n,e),()=>{e&&r(n)})),[n,e,o,r]),n?t[f]:l}const os=["left","center","right","wide","full"],rs=["wide","full"];function ls(e,t=!0,n=!0){let o;return o=Array.isArray(e)?os.filter((t=>e.includes(t))):!0===e?[...os]:[],!n||!0===e&&!t?o.filter((e=>!rs.includes(e))):o}const is={shareWithChildBlocks:!0,edit:function({name:e,align:t,setAttributes:n}){const o=Ki(ls((0,c.getBlockSupport)(e,"align"),(0,c.hasBlockSupport)(e,"alignWide",!0))).map((({name:e})=>e)),r=ns();return o.length&&"default"===r?(0,s.createElement)(Bl,{group:"block",__experimentalShareWithChildBlocks:!0},(0,s.createElement)(es,{value:t,onChange:t=>{if(!t){const n=(0,c.getBlockType)(e),o=n?.attributes?.align?.default;o&&(t="")}n({align:t})},controls:o})):null},useBlockProps:function({name:e,align:t}){const n=ls((0,c.getBlockSupport)(e,"align"),(0,c.hasBlockSupport)(e,"alignWide",!0));if(Ki(n).some((e=>e.name===t)))return{"data-align":t};return{}},addSaveProps:function(e,t,n){const{align:o}=n,r=(0,c.getBlockSupport)(t,"align"),l=(0,c.hasBlockSupport)(t,"alignWide",!0),i=ls(r,l).includes(o);i&&(e.className=ml()(`align${o}`,e.className));return e},attributeKeys:["align"],hasSupport:e=>(0,c.hasBlockSupport)(e,"align",!1)};(0,m.addFilter)("blocks.registerBlockType","core/editor/align/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.align)&&void 0!==t?t:{})||(0,c.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...os,""]}}),e})),(0,m.addFilter)("blocks.registerBlockType","core/lock/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.lock)&&void 0!==t?t:{})||(e.attributes={...e.attributes,lock:{type:"object"}}),e}));const ss=(0,_l.createSlotFill)("InspectorControls"),as=(0,_l.createSlotFill)("InspectorAdvancedControls"),cs=(0,_l.createSlotFill)("InspectorControlsBackground"),us=(0,_l.createSlotFill)("InspectorControlsBorder"),ds=(0,_l.createSlotFill)("InspectorControlsColor"),ps=(0,_l.createSlotFill)("InspectorControlsFilter"),ms=(0,_l.createSlotFill)("InspectorControlsDimensions"),hs=(0,_l.createSlotFill)("InspectorControlsPosition"),gs=(0,_l.createSlotFill)("InspectorControlsTypography"),fs=(0,_l.createSlotFill)("InspectorControlsListView"),bs=(0,_l.createSlotFill)("InspectorControlsStyles"),vs={default:ss,advanced:as,background:cs,border:us,color:ds,dimensions:ms,effects:(0,_l.createSlotFill)("InspectorControlsEffects"),filter:ps,list:fs,position:hs,settings:ss,styles:bs,typography:gs};function ks({children:e,group:t="default",__experimentalGroup:n,resetAllFilter:o}){n&&(w()("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=n);const r=y(),l=vs[t]?.Fill;return l&&r[h]?(0,s.createElement)(_l.__experimentalStyleProvider,{document},(0,s.createElement)(l,null,(t=>(0,s.createElement)(ys,{fillProps:t,children:e,resetAllFilter:o})))):null}function _s({resetAllFilter:e,children:t}){const{registerResetAllFilter:n,deregisterResetAllFilter:o}=(0,u.useContext)(_l.__experimentalToolsPanelContext);return(0,u.useEffect)((()=>{if(e&&n&&o)return n(e),()=>{o(e)}}),[e,n,o]),t}function ys({children:e,resetAllFilter:t,fillProps:n}){const{forwardedContext:o=[]}=n,r=(0,s.createElement)(_s,{resetAllFilter:t},e);return o.reduce(((e,[t,n])=>(0,s.createElement)(t,{...n},e)),r)}function Es({children:e,group:t,label:n}){const{updateBlockAttributes:o}=(0,d.useDispatch)(Nr),{getBlockAttributes:r,getMultiSelectedBlockClientIds:l,getSelectedBlockClientId:i,hasMultiSelection:a}=(0,d.useSelect)(Nr),c=i(),p=(0,u.useCallback)(((e=[])=>{const t={},n=a()?l():[c];n.forEach((n=>{const{style:o}=r(n);let l={style:o};e.forEach((e=>{l={...l,...e(l)}})),l={...l,style:hl(l.style)},t[n]=l})),o(n,t,!0)}),[r,l,a,c,o]);return(0,s.createElement)(_l.__experimentalToolsPanel,{className:`${t}-block-support-panel`,label:n,resetAll:p,key:c,panelId:c,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:Qr},e)}function ws({Slot:e,fillProps:t,...n}){const o=(0,u.useContext)(_l.__experimentalToolsPanelContext),r=(0,u.useMemo)((()=>{var e;return{...null!=t?t:{},forwardedContext:[...null!==(e=t?.forwardedContext)&&void 0!==e?e:[],[_l.__experimentalToolsPanelContext.Provider,{value:o}]]}}),[o,t]);return(0,s.createElement)(e,{...n,fillProps:r,bubblesVirtually:!0})}function Ss({__experimentalGroup:e,group:t="default",label:n,fillProps:o,...r}){e&&(w()("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=e);const l=vs[t]?.Slot,i=(0,_l.__experimentalUseSlotFills)(l?.__unstableName),a=(0,u.useContext)(_l.__unstableMotionContext),c=(0,u.useMemo)((()=>{var e;return{...null!=o?o:{},forwardedContext:[...null!==(e=o?.forwardedContext)&&void 0!==e?e:[],[_l.__unstableMotionContext.Provider,{value:a}]]}}),[a,o]);return l&&i?.length?n?(0,s.createElement)(Es,{group:t,label:n},(0,s.createElement)(ws,{...r,fillProps:c,Slot:l})):(0,s.createElement)(l,{...r,fillProps:c,bubblesVirtually:!0}):null}const Cs=ks;Cs.Slot=Ss;const xs=e=>(0,s.createElement)(ks,{...e,group:"advanced"});xs.Slot=e=>(0,s.createElement)(Ss,{...e,group:"advanced"}),xs.slotName="InspectorAdvancedControls";const Bs=Cs,Is=/[\s#]/g,Ts={type:"string",source:"attribute",attribute:"id",selector:"*"};const Ms={addSaveProps:function(e,t,n){(0,c.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor);return e},edit:function({name:e,anchor:t,setAttributes:n}){const o=ns(),r="web"===u.Platform.OS,l=(0,s.createElement)(_l.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"html-anchor-control",label:(0,x.__)("HTML anchor"),help:(0,s.createElement)(s.Fragment,null,(0,x.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),r&&(0,s.createElement)(_l.ExternalLink,{href:(0,x.__)("https://wordpress.org/documentation/article/page-jumps/")},(0,x.__)("Learn more about anchors"))),value:t||"",placeholder:r?null:(0,x.__)("Add an anchor"),onChange:e=>{e=e.replace(Is,"-"),n({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return(0,s.createElement)(s.Fragment,null,r&&"default"===o&&(0,s.createElement)(Bs,{group:"advanced"},l),!r&&"core/heading"===e&&(0,s.createElement)(Bs,null,(0,s.createElement)(_l.PanelBody,{title:(0,x.__)("Heading settings")},l)))},attributeKeys:["anchor"],hasSupport:e=>(0,c.hasBlockSupport)(e,"anchor")};(0,m.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.anchor)&&void 0!==t?t:{})||(0,c.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:Ts}),e}));const Ps={type:"string",source:"attribute",attribute:"aria-label",selector:"*"};const Rs={addSaveProps:function(e,t,n){return(0,c.hasBlockSupport)(t,"ariaLabel")&&(e["aria-label"]=""===n.ariaLabel?null:n.ariaLabel),e},attributeKeys:["ariaLabel"],hasSupport:e=>(0,c.hasBlockSupport)(e,"ariaLabel")};(0,m.addFilter)("blocks.registerBlockType","core/ariaLabel/attribute",(function(e){return e?.attributes?.ariaLabel?.type||(0,c.hasBlockSupport)(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:Ps}),e}));const Ns={edit:function({className:e,setAttributes:t}){return"default"!==ns()?null:(0,s.createElement)(Bs,{group:"advanced"},(0,s.createElement)(_l.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,x.__)("Additional CSS class(es)"),value:e||"",onChange:e=>{t({className:""!==e?e:void 0})},help:(0,x.__)("Separate multiple classes with spaces.")}))},addSaveProps:function(e,t,n){(0,c.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=ml()(e.className,n.className));return e},attributeKeys:["className"],hasSupport:e=>(0,c.hasBlockSupport)(e,"customClassName",!0)};(0,m.addFilter)("blocks.registerBlockType","core/editor/custom-class-name/attribute",(function(e){return(0,c.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),(0,m.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,o){if(!(0,c.hasBlockSupport)(e.name,"customClassName",!0))return e;if(1===o.length&&e.innerBlocks.length===t.length)return e;if(1===o.length&&t.length>1||o.length>1&&1===t.length)return e;if(t[n]){const o=t[n]?.attributes.className;if(o)return{...e,attributes:{...e.attributes,className:o}}}return e})),(0,m.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return(0,c.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=[...new Set([(0,c.getBlockDefaultClassName)(t.name),...e.className.split(" ")])].join(" ").trim():e.className=(0,c.getBlockDefaultClassName)(t.name)),e}));const Ls=window.wp.blob,As=window.wp.dom,Os=window.wp.notices,Ds=window.wp.url,zs=window.wp.keycodes,Vs=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,s.createElement)(Z.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})),Fs=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})),Hs=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})),Gs=(0,_l.withFilters)("editor.MediaUpload")((()=>null));const Us=function({fallback:e=null,children:t}){const n=(0,d.useSelect)((e=>{const{getSettings:t}=e(Nr);return!!t().mediaUpload}),[]);return n?t:e},$s=window.wp.isShallowEqual;var js=n.n($s);const Ws=window.wp.preferences,Ks=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,s.createElement)(Z.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"})),Zs=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})),qs=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));const Ys=function e({children:t,settingsOpen:n,setSettingsOpen:o}){const r=(0,p.useReducedMotion)(),l=r?u.Fragment:_l.__unstableAnimatePresence,i=r?"div":_l.__unstableMotion.div,a=`link-control-settings-drawer-${(0,p.useInstanceId)(e)}`;return(0,s.createElement)(u.Fragment,null,(0,s.createElement)(_l.Button,{className:"block-editor-link-control__drawer-toggle","aria-expanded":n,onClick:()=>o(!n),icon:(0,x.isRTL)()?Zs:qs,"aria-controls":a},(0,x._x)("Advanced","Additional link settings")),(0,s.createElement)(l,null,n&&(0,s.createElement)(i,{className:"block-editor-link-control__drawer",hidden:!n,id:a,initial:"collapsed",animate:"open",exit:"collapsed",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},transition:{duration:.1}},(0,s.createElement)("div",{className:"block-editor-link-control__drawer-inner"},t))))};var Xs=n(5428),Qs=n.n(Xs);function Js(e){return"function"==typeof e}class ea extends u.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=e.autocompleteRef||(0,u.createRef)(),this.inputRef=(0,u.createRef)(),this.updateSuggestions=(0,p.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.suggestionsRequest=null,this.state={suggestions:[],showSuggestions:!1,suggestionsValue:null,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(e){const{showSuggestions:t,selectedSuggestion:n}=this.state,{value:o,__experimentalShowInitialSuggestions:r=!1}=this.props;t&&null!==n&&this.suggestionNodes[n]&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,Qs()(this.suggestionNodes[n],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((()=>{this.scrollingIntoView=!1}),100)),e.value===o||this.props.disableSuggestions||(o?.length?this.updateSuggestions(o):r&&this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){const{__experimentalShowInitialSuggestions:e=!1,value:t}=this.props;return e&&!(t&&t.length)}updateSuggestions(e=""){const{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:n}=this.props;if(!t)return;const o=!e?.length;if(e=e.trim(),!o&&(e.length<2||!n&&(0,Ds.isURL)(e)))return this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null,void this.setState({suggestions:[],showSuggestions:!1,suggestionsValue:e,selectedSuggestion:null,loading:!1});this.setState({selectedSuggestion:null,loading:!0});const r=t(e,{isInitialSuggestions:o});r.then((t=>{this.suggestionsRequest===r&&(this.setState({suggestions:t,suggestionsValue:e,loading:!1,showSuggestions:!!t.length}),t.length?this.props.debouncedSpeak((0,x.sprintf)((0,x._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"):this.props.debouncedSpeak((0,x.__)("No results."),"assertive"))})).catch((()=>{this.suggestionsRequest===r&&this.setState({loading:!1})})).finally((()=>{this.suggestionsRequest===r&&(this.suggestionsRequest=null)})),this.suggestionsRequest=r}onChange(e){this.props.onChange(e.target.value)}onFocus(){const{suggestions:e}=this.state,{disableSuggestions:t,value:n}=this.props;!n||t||e&&e.length||null!==this.suggestionsRequest||this.updateSuggestions(n)}onKeyDown(e){this.props.onKeyDown?.(e);const{showSuggestions:t,selectedSuggestion:n,suggestions:o,loading:r}=this.state;if(!t||!o.length||r){switch(e.keyCode){case zs.UP:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case zs.DOWN:this.props.value.length!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case zs.ENTER:this.props.onSubmit&&(e.preventDefault(),this.props.onSubmit(null,e))}return}const l=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case zs.UP:{e.preventDefault();const t=n?n-1:o.length-1;this.setState({selectedSuggestion:t});break}case zs.DOWN:{e.preventDefault();const t=null===n||n===o.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case zs.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(l),this.props.speak((0,x.__)("Link selected.")));break;case zs.ENTER:e.preventDefault(),null!==this.state.selectedSuggestion?(this.selectLink(l),this.props.onSubmit&&this.props.onSubmit(l,e)):this.props.onSubmit&&this.props.onSubmit(null,e)}}selectLink(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(e){this.selectLink(e),this.inputRef.current.focus()}static getDerivedStateFromProps({value:e,instanceId:t,disableSuggestions:n,__experimentalShowInitialSuggestions:o=!1},{showSuggestions:r}){let l=r;const i=e&&e.length;return o||i||(l=!1),!0===n&&(l=!1),{showSuggestions:l,suggestionsListboxId:`block-editor-url-input-suggestions-${t}`,suggestionOptionIdPrefix:`block-editor-url-input-suggestion-${t}`}}render(){return(0,s.createElement)(s.Fragment,null,this.renderControl(),this.renderSuggestions())}renderControl(){const{__nextHasNoMarginBottom:e=!1,label:t=null,className:n,isFullWidth:o,instanceId:r,placeholder:l=(0,x.__)("Paste URL or type to search"),__experimentalRenderControl:i,value:a="",hideLabelFromVision:c=!1}=this.props,{loading:u,showSuggestions:d,selectedSuggestion:p,suggestionsListboxId:m,suggestionOptionIdPrefix:h}=this.state,g=`url-input-control-${r}`,f={id:g,label:t,className:ml()("block-editor-url-input",n,{"is-full-width":o}),hideLabelFromVision:c},b={id:g,value:a,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:l,onKeyDown:this.onKeyDown,role:"combobox","aria-label":t?void 0:(0,x.__)("URL"),"aria-expanded":d,"aria-autocomplete":"list","aria-owns":m,"aria-activedescendant":null!==p?`${h}-${p}`:void 0,ref:this.inputRef};return i?i(f,b,u):(e||w()("Bottom margin styles for wp.blockEditor.URLInput",{since:"6.2",version:"6.5",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version"}),(0,s.createElement)(_l.BaseControl,{__nextHasNoMarginBottom:e,...f},(0,s.createElement)("input",{...b}),u&&(0,s.createElement)(_l.Spinner,null)))}renderSuggestions(){const{className:e,__experimentalRenderSuggestions:t}=this.props,{showSuggestions:n,suggestions:o,suggestionsValue:r,selectedSuggestion:l,suggestionsListboxId:i,suggestionOptionIdPrefix:a,loading:c}=this.state;if(!n||0===o.length)return null;const u={id:i,ref:this.autocompleteRef,role:"listbox"},d=(e,t)=>({role:"option",tabIndex:"-1",id:`${a}-${t}`,ref:this.bindSuggestionNode(t),"aria-selected":t===l||void 0});return Js(t)?t({suggestions:o,selectedSuggestion:l,suggestionsListProps:u,buildSuggestionItemProps:d,isLoading:c,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:!r?.length,currentInputValue:r}):(0,s.createElement)(_l.Popover,{placement:"bottom",focusOnMount:!1},(0,s.createElement)("div",{...u,className:ml()("block-editor-url-input__suggestions",`${e}__suggestions`)},o.map(((e,t)=>(0,s.createElement)(_l.Button,{...d(0,t),key:e.id,className:ml()("block-editor-url-input__suggestion",{"is-selected":t===l}),onClick:()=>this.handleOnClick(e)},e.title)))))}}const ta=(0,p.compose)(p.withSafeTimeout,_l.withSpokenMessages,p.withInstanceId,(0,d.withSelect)(((e,t)=>{if(Js(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(Nr);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}})))(ea),na=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})),oa=({searchTerm:e,onClick:t,itemProps:n,buttonText:o})=>{if(!e)return null;let r;return r=o?"function"==typeof o?o(e):o:(0,u.createInterpolateElement)((0,x.sprintf)((0,x.__)("Create: <mark>%s</mark>"),e),{mark:(0,s.createElement)("mark",null)}),(0,s.createElement)(_l.MenuItem,{...n,iconPosition:"left",icon:na,className:"block-editor-link-control__search-item",onClick:t},r)},ra=(0,s.createElement)(Z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(Z.Path,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})),la=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,s.createElement)(Z.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})),ia=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})),sa=(0,s.createElement)(Z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(Z.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})),aa=(0,s.createElement)(Z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(Z.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})),ca=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"})),ua=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})),da=(0,s.createElement)(Z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(Z.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"})),pa={post:ra,page:la,post_tag:ia,category:sa,attachment:aa};function ma({isURL:e,suggestion:t}){let n=null;return e?n=ca:t.type in pa&&(n=pa[t.type],"page"===t.type&&(t.isFrontPage&&(n=ua),t.isBlogHome&&(n=da))),n?(0,s.createElement)(Ti,{className:"block-editor-link-control__search-item-icon",icon:n}):null}function ha(e){const t=e?.trim();return t?.length?e?.replace(/^\/?/,"/"):e}function ga(e){const t=e?.trim();return t?.length?e?.replace(/\/$/,""):e}function fa(e){return e.isFrontPage?"front page":e.isBlogHome?"blog home":"post_tag"===e.type?"tag":e.type}const ba=({itemProps:e,suggestion:t,searchTerm:n,onClick:o,isURL:r=!1,shouldShowType:l=!1})=>{const i=r?(0,x.__)("Press ENTER to add this link"):(a=t.url)?(0,p.pipe)(Ds.safeDecodeURI,Ds.getPath,(e=>t=>null==t||t!=t?e:t)(""),((e,...t)=>(...n)=>e(...n,...t))(Ds.filterURLForDisplay,24),ga,ha)(a):a;var a;return(0,s.createElement)(_l.MenuItem,{...e,info:i,iconPosition:"left",icon:(0,s.createElement)(ma,{suggestion:t,isURL:r}),onClick:o,shortcut:l&&fa(t),className:"block-editor-link-control__search-item"},(0,s.createElement)(_l.TextHighlight,{text:(0,As.__unstableStripHTML)(t.title),highlight:n}))},va="__CREATE__",ka="link",_a="mailto",ya="internal",Ea=[ka,_a,"tel",ya],wa=[{id:"opensInNewTab",title:(0,x.__)("Open in new tab")}];function Sa({instanceId:e,withCreateSuggestion:t,currentInputValue:n,handleSuggestionClick:o,suggestionsListProps:r,buildSuggestionItemProps:l,suggestions:i,selectedSuggestion:a,isLoading:c,isInitialSuggestions:u,createSuggestionButtonText:d,suggestionsQuery:p}){const m=ml()("block-editor-link-control__search-results",{"is-loading":c}),h=1===i.length&&Ea.includes(i[0].type),g=t&&!h&&!u,f=!p?.type,b=`block-editor-link-control-search-results-label-${e}`,v=u?(0,x.__)("Suggestions"):(0,x.sprintf)((0,x.__)('Search results for "%s"'),n),k=(0,s.createElement)(_l.VisuallyHidden,{id:b},v);return(0,s.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},k,(0,s.createElement)("div",{...r,className:m,"aria-labelledby":b},(0,s.createElement)(_l.MenuGroup,null,i.map(((e,t)=>g&&va===e.type?(0,s.createElement)(oa,{searchTerm:n,buttonText:d,onClick:()=>o(e),key:e.type,itemProps:l(e,t),isSelected:t===a}):va===e.type?null:(0,s.createElement)(ba,{key:`${e.id}-${e.type}`,itemProps:l(e,t),suggestion:e,index:t,onClick:()=>{o(e)},isSelected:t===a,isURL:Ea.includes(e.type),searchTerm:n,shouldShowType:f,isFrontPage:e?.isFrontPage,isBlogHome:e?.isBlogHome}))))))}function Ca(e){if(e.includes(" "))return!1;const t=(0,Ds.getProtocol)(e),n=(0,Ds.isValidProtocol)(t),o=function(e,t=6){const n=e.split(/[?#]/)[0];return new RegExp(`(?<=\\S)\\.(?:[a-zA-Z_]{2,${t}})(?:\\/|$)`).test(n)}(e),r=e?.startsWith("www."),l=e?.startsWith("#")&&(0,Ds.isValidFragment)(e);return n||r||l||o}const xa=()=>Promise.resolve([]),Ba=e=>{let t=ka;const n=(0,Ds.getProtocol)(e)||"";return n.includes("mailto")&&(t=_a),n.includes("tel")&&(t="tel"),e?.startsWith("#")&&(t=ya),Promise.resolve([{id:e,title:e,url:"URL"===t?(0,Ds.prependHTTP)(e):e,type:t}])};function Ia(e,t,n){const{fetchSearchSuggestions:o,pageOnFront:r,pageForPosts:l}=(0,d.useSelect)((e=>{const{getSettings:t}=e(Nr);return{pageOnFront:t().pageOnFront,pageForPosts:t().pageForPosts,fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}}),[]),i=t?Ba:xa;return(0,u.useCallback)(((t,{isInitialSuggestions:s})=>Ca(t)?i(t,{isInitialSuggestions:s}):(async(e,t,n,o,r,l)=>{const{isInitialSuggestions:i}=t,s=await n(e,t);return s.map((e=>Number(e.id)===r?(e.isFrontPage=!0,e):Number(e.id)===l?(e.isBlogHome=!0,e):e)),i||Ca(e)||!o?s:s.concat({title:e,url:e,type:va})})(t,{...e,isInitialSuggestions:s},o,n,r,l)),[i,o,r,l,e,n])}const Ta=()=>Promise.resolve([]),Ma=()=>{},Pa=(0,u.forwardRef)((({value:e,children:t,currentLink:n={},className:o=null,placeholder:r=null,withCreateSuggestion:l=!1,onCreateSuggestion:i=Ma,onChange:a=Ma,onSelect:c=Ma,showSuggestions:d=!0,renderSuggestions:m=(e=>(0,s.createElement)(Sa,{...e})),fetchSuggestions:h=null,allowDirectEntry:g=!0,showInitialSuggestions:f=!1,suggestionsQuery:b={},withURLSuggestion:v=!0,createSuggestionButtonText:k,hideLabelFromVision:_=!1},y)=>{const E=Ia(b,g,l),w=d?h||E:Ta,S=(0,p.useInstanceId)(Pa),[C,B]=(0,u.useState)(),I=async e=>{let t=e;if(va!==e.type){if(g||t&&Object.keys(t).length>=1){const{id:e,url:o,...r}=null!=n?n:{};c({...r,...t},t)}}else try{t=await i(e.title),t?.url&&c(t)}catch(e){}};return(0,s.createElement)("div",{className:"block-editor-link-control__search-input-container"},(0,s.createElement)(ta,{disableSuggestions:n?.url===e,__nextHasNoMarginBottom:!0,label:(0,x.__)("Link"),hideLabelFromVision:_,className:o,value:e,onChange:(e,t)=>{a(e),B(t)},placeholder:null!=r?r:(0,x.__)("Search or type url"),__experimentalRenderSuggestions:d?e=>m({...e,instanceId:S,withCreateSuggestion:l,createSuggestionButtonText:k,suggestionsQuery:b,handleSuggestionClick:t=>{e.handleSuggestionClick&&e.handleSuggestionClick(t),I(t)}}):null,__experimentalFetchLinkSuggestions:w,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:f,onSubmit:(t,n)=>{const o=t||C;o||e?.trim()?.length?I(o||{url:e}):n.preventDefault()},ref:y}),t)})),Ra=Pa,Na=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),La=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),Aa=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})),Oa=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.625 5.5h9.75c.069 0 .125.056.125.125v9.75a.125.125 0 0 1-.125.125h-9.75a.125.125 0 0 1-.125-.125v-9.75c0-.069.056-.125.125-.125ZM4 5.625C4 4.728 4.728 4 5.625 4h9.75C16.273 4 17 4.728 17 5.625v9.75c0 .898-.727 1.625-1.625 1.625h-9.75A1.625 1.625 0 0 1 4 15.375v-9.75Zm14.5 11.656v-9H20v9C20 18.8 18.77 20 17.251 20H6.25v-1.5h11.001c.69 0 1.249-.528 1.249-1.219Z"})),{Slot:Da,Fill:za}=(0,_l.createSlotFill)("BlockEditorLinkControlViewer");function Va(e,t){switch(t.type){case"RESOLVED":return{...e,isFetching:!1,richData:t.richData};case"ERROR":return{...e,isFetching:!1,richData:null};case"LOADING":return{...e,isFetching:!0};default:throw new Error(`Unexpected action type ${t.type}`)}}const Fa=function(e){const[t,n]=(0,u.useReducer)(Va,{richData:null,isFetching:!1}),{fetchRichUrlData:o}=(0,d.useSelect)((e=>{const{getSettings:t}=e(Nr);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}}),[]);return(0,u.useEffect)((()=>{if(e?.length&&o&&"undefined"!=typeof AbortController){n({type:"LOADING"});const t=new window.AbortController,r=t.signal;return o(e,{signal:r}).then((e=>{n({type:"RESOLVED",richData:e})})).catch((()=>{r.aborted||n({type:"ERROR"})})),()=>{t.abort()}}}),[e]),t};function Ha({value:e,onEditClick:t,hasRichPreviews:n=!1,hasUnlinkControl:o=!1,onRemove:r}){const l=(0,d.useSelect)((e=>e(Ws.store).get("core","showIconLabels")),[]),i=n?e?.url:null,{richData:a,isFetching:c}=Fa(i),u=a&&Object.keys(a).length,m=e&&(0,Ds.filterURLForDisplay)((0,Ds.safeDecodeURI)(e.url),24)||"",h=!e?.url?.length,g=!h&&(0,As.__unstableStripHTML)(a?.title||e?.title||m);let f;f=a?.icon?(0,s.createElement)("img",{src:a?.icon,alt:""}):h?(0,s.createElement)(Ti,{icon:Na,size:32}):(0,s.createElement)(Ti,{icon:ca});const{createNotice:b}=(0,d.useDispatch)(Os.store),v=(0,p.useCopyToClipboard)(e.url,(()=>{b("info",(0,x.__)("Link copied to clipboard."),{isDismissible:!0,type:"snackbar"})}));return(0,s.createElement)("div",{"aria-label":(0,x.__)("Currently selected"),className:ml()("block-editor-link-control__search-item",{"is-current":!0,"is-rich":u,"is-fetching":!!c,"is-preview":!0,"is-error":h,"is-url-title":g===m})},(0,s.createElement)("div",{className:"block-editor-link-control__search-item-top"},(0,s.createElement)("span",{className:"block-editor-link-control__search-item-header"},(0,s.createElement)("span",{className:ml()("block-editor-link-control__search-item-icon",{"is-image":a?.icon})},f),(0,s.createElement)("span",{className:"block-editor-link-control__search-item-details"},h?(0,s.createElement)("span",{className:"block-editor-link-control__search-item-error-notice"},(0,x.__)("Link is empty")):(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.ExternalLink,{className:"block-editor-link-control__search-item-title",href:e.url},(0,s.createElement)(_l.__experimentalTruncate,{numberOfLines:1},g)),e?.url&&g!==m&&(0,s.createElement)("span",{className:"block-editor-link-control__search-item-info"},(0,s.createElement)(_l.__experimentalTruncate,{numberOfLines:1},m))))),(0,s.createElement)(_l.Button,{icon:La,label:(0,x.__)("Edit link"),onClick:t,size:"compact"}),o&&(0,s.createElement)(_l.Button,{icon:Aa,label:(0,x.__)("Remove link"),onClick:r,size:"compact"}),(0,s.createElement)(_l.Button,{icon:Oa,label:(0,x.sprintf)((0,x.__)("Copy link%s"),h||l?"":": "+e.url),ref:v,disabled:h,size:"compact"}),(0,s.createElement)(Da,{fillProps:e})))}const Ga=()=>{},Ua=({value:e,onChange:t=Ga,settings:n})=>{if(!n||!n.length)return null;const o=n=>o=>{t({...e,[n.id]:o})},r=n.map((t=>(0,s.createElement)(_l.CheckboxControl,{__nextHasNoMarginBottom:!0,className:"block-editor-link-control__setting",key:t.id,label:t.title,onChange:o(t),checked:!!e&&!!e[t.id],help:t?.help})));return(0,s.createElement)("fieldset",{className:"block-editor-link-control__settings"},(0,s.createElement)(_l.VisuallyHidden,{as:"legend"},(0,x.__)("Currently selected link settings")),r)};const $a=e=>{let t=!1;return{promise:new Promise(((n,o)=>{e.then((e=>t?o({isCanceled:!0}):n(e)),(e=>o(t?{isCanceled:!0}:e)))})),cancel(){t=!0}}};var ja=n(5215),Wa=n.n(ja);const Ka=()=>{},Za="core/block-editor",qa="linkControlSettingsDrawer";function Ya({searchInputPlaceholder:e,value:t,settings:n=wa,onChange:o=Ka,onRemove:r,onCancel:l,noDirectEntry:i=!1,showSuggestions:a=!0,showInitialSuggestions:c,forceIsEditingLink:p,createSuggestion:m,withCreateSuggestion:h,inputValue:g="",suggestionsQuery:f={},noURLSuggestion:b=!1,createSuggestionButtonText:v,hasRichPreviews:k=!1,hasTextControl:_=!1,renderControlBottom:y=null}){void 0===h&&m&&(h=!0);const[E,w]=(0,u.useState)(!1),{advancedSettingsPreference:S}=(0,d.useSelect)((e=>{var t;return{advancedSettingsPreference:null!==(t=e(Ws.store).get(Za,qa))&&void 0!==t&&t}}),[]),{set:C}=(0,d.useDispatch)(Ws.store),B=S||E,I=(0,u.useRef)(!0),T=(0,u.useRef)(),M=(0,u.useRef)(),P=(0,u.useRef)(!1),R=n.map((({id:e})=>e)),[N,L,A,O,D]=function(e){const[t,n]=(0,u.useState)(e||{}),[o,r]=(0,u.useState)(e);return Wa()(e,o)||(r(e),n(e)),[t,n,e=>{n({...t,url:e})},e=>{n({...t,title:e})},e=>o=>{const r=Object.keys(o).reduce(((t,n)=>(e.includes(n)&&(t[n]=o[n]),t)),{});n({...t,...r})}]}(t),z=t&&!(0,$s.isShallowEqualObjects)(N,t),[V,F]=(0,u.useState)(void 0!==p?p:!t||!t.url),{createPage:H,isCreatingPage:G,errorMessage:U}=function(e){const t=(0,u.useRef)(),[n,o]=(0,u.useState)(!1),[r,l]=(0,u.useState)(null);return(0,u.useEffect)((()=>()=>{t.current&&t.current.cancel()}),[]),{createPage:async function(n){o(!0),l(null);try{return t.current=$a(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&&e.isCanceled)return;throw l(e.message||(0,x.__)("An unknown error occurred during creation. Please try again.")),e}finally{o(!1)}},isCreatingPage:n,errorMessage:r}}(m);(0,u.useEffect)((()=>{void 0!==p&&F(p)}),[p]),(0,u.useEffect)((()=>{if(I.current)return void(I.current=!1);(As.focus.focusable.find(T.current)[0]||T.current).focus(),P.current=!1}),[V,G]);const $=t?.url?.trim()?.length>0,j=()=>{P.current=!!T.current?.contains(T.current.ownerDocument.activeElement),F(!1)},W=()=>{z&&o({...t,...N,url:K}),j()},K=g||N?.url||"",Z=!K?.trim()?.length,q=r&&t&&!V&&!G,Y=V&&$,X=$&&_,Q=(V||!t)&&!G,J=!z||Z,ee=!!n?.length&&V&&$;return(0,s.createElement)("div",{tabIndex:-1,ref:T,className:"block-editor-link-control"},G&&(0,s.createElement)("div",{className:"block-editor-link-control__loading"},(0,s.createElement)(_l.Spinner,null)," ",(0,x.__)("Creating"),"…"),Q&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:ml()({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":X,"has-actions":Y})},X&&(0,s.createElement)(_l.TextControl,{__nextHasNoMarginBottom:!0,ref:M,className:"block-editor-link-control__field block-editor-link-control__text-content",label:(0,x.__)("Text"),value:N?.title,onChange:O,onKeyDown:e=>{const{keyCode:t}=e;t!==zs.ENTER||Z||(e.preventDefault(),W())},size:"__unstable-large"}),(0,s.createElement)(Ra,{currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:K,withCreateSuggestion:h,onCreateSuggestion:H,onChange:A,onSelect:e=>{const t=Object.keys(e).reduce(((t,n)=>(R.includes(n)||(t[n]=e[n]),t)),{});o({...N,...t,title:N?.title||e?.title}),j()},showInitialSuggestions:c,allowDirectEntry:!i,showSuggestions:a,suggestionsQuery:f,withURLSuggestion:!b,createSuggestionButtonText:v,hideLabelFromVision:!X}),!Y&&(0,s.createElement)("div",{className:"block-editor-link-control__search-enter"},(0,s.createElement)(_l.Button,{onClick:J?Ka:W,label:(0,x.__)("Submit"),icon:Ks,className:"block-editor-link-control__search-submit","aria-disabled":J}))),U&&(0,s.createElement)(_l.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},U)),t&&!V&&!G&&(0,s.createElement)(Ha,{key:t?.url,value:t,onEditClick:()=>F(!0),hasRichPreviews:k,hasUnlinkControl:q,onRemove:()=>{r(),F(!0)}}),ee&&(0,s.createElement)("div",{className:"block-editor-link-control__tools"},!Z&&(0,s.createElement)(Ys,{settingsOpen:B,setSettingsOpen:e=>{C&&C(Za,qa,e),w(e)}},(0,s.createElement)(Ua,{value:N,settings:n,onChange:D(R)}))),Y&&(0,s.createElement)(_l.__experimentalHStack,{justify:"right",className:"block-editor-link-control__search-actions"},(0,s.createElement)(_l.Button,{variant:"tertiary",onClick:e=>{e.preventDefault(),e.stopPropagation(),L(t),$?j():r?.(),l?.()}},(0,x.__)("Cancel")),(0,s.createElement)(_l.Button,{variant:"primary",onClick:J?Ka:W,className:"block-editor-link-control__search-submit","aria-disabled":J},(0,x.__)("Save"))),!G&&y&&y())}Ya.ViewerFill=za,Ya.DEFAULT_LINK_SETTINGS=wa;const Xa=Ya,Qa=()=>{};let Ja=0;const ec=(0,p.compose)([(0,d.withDispatch)((e=>{const{createNotice:t,removeNotice:n}=e(Os.store);return{createNotice:t,removeNotice:n}})),(0,_l.withFilters)("editor.MediaReplaceFlow")])((({mediaURL:e,mediaId:t,mediaIds:n,allowedTypes:o,accept:r,onError:l,onSelect:i,onSelectURL:a,onToggleFeaturedImage:c,useFeaturedImage:p,onFilesUpload:m=Qa,name:h=(0,x.__)("Replace"),createNotice:g,removeNotice:f,children:b,multiple:v=!1,addToGallery:k,handleUpload:_=!0,popoverProps:y})=>{const E=(0,d.useSelect)((e=>e(Nr).getSettings().mediaUpload),[]),w=!!E,S=(0,u.useRef)(),C="block-editor/media-replace-flow/error-notice/"+ ++Ja,B=e=>{const t=(0,As.__unstableStripHTML)(e);l?l(t):setTimeout((()=>{g("error",t,{speak:!0,id:C,isDismissible:!0})}),1e3)},I=(e,t)=>{p&&c&&c(),t(),i(e),(0,vo.speak)((0,x.__)("The media file has been replaced")),f(C)},T=e=>{e.keyCode===zs.DOWN&&(e.preventDefault(),e.target.click())},M=v&&!(!o||0===o.length)&&o.every((e=>"image"===e||e.startsWith("image/")));return(0,s.createElement)(_l.Dropdown,{popoverProps:y,contentClassName:"block-editor-media-replace-flow__options",renderToggle:({isOpen:e,onToggle:t})=>(0,s.createElement)(_l.ToolbarButton,{ref:S,"aria-expanded":e,"aria-haspopup":"true",onClick:t,onKeyDown:T},h),renderContent:({onClose:l})=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},(0,s.createElement)(Us,null,(0,s.createElement)(Gs,{gallery:M,addToGallery:k,multiple:v,value:v?n:t,onSelect:e=>I(e,l),allowedTypes:o,render:({open:e})=>(0,s.createElement)(_l.MenuItem,{icon:Vs,onClick:e},(0,x.__)("Open Media Library"))}),(0,s.createElement)(_l.FormFileUpload,{onChange:e=>{((e,t)=>{const n=e.target.files;if(!_)return t(),i(n);m(n),E({allowedTypes:o,filesList:n,onFileChange:([e])=>{I(e,t)},onError:B})})(e,l)},accept:r,multiple:!!v,render:({openFileDialog:e})=>(0,s.createElement)(_l.MenuItem,{icon:Fs,onClick:()=>{e()}},(0,x.__)("Upload"))})),c&&(0,s.createElement)(_l.MenuItem,{icon:Hs,onClick:c,isPressed:p},(0,x.__)("Use featured image")),b),a&&(0,s.createElement)("form",{className:ml()("block-editor-media-flow__url-input",{"has-siblings":w||c})},(0,s.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},(0,x.__)("Current media URL:")),(0,s.createElement)(Xa,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:e})=>{a(e),S.current.focus()}})))})})),tc="background",nc="image";function oc(e){return!!e?.background?.backgroundImage?.id||!!e?.background?.backgroundImage?.url}function rc(e,t="any"){if("web"!==u.Platform.OS)return!1;const n=(0,c.getBlockSupport)(e,tc);return!0===n||("any"===t?!!n?.backgroundImage||!!n?.backgroundSize||!!n?.backgroundRepeat:!!n?.[t])}function lc(e={},t){t({style:hl({...e,background:{...e?.background,backgroundImage:void 0}})})}function ic(e){return oc(e)?"has-background":""}function sc({label:e,filename:t,url:n}){const o=e||(0,Ds.getFilename)(n);return(0,s.createElement)(_l.__experimentalItemGroup,{as:"span"},(0,s.createElement)(_l.__experimentalHStack,{justify:"flex-start",as:"span"},(0,s.createElement)("span",{className:ml()("block-editor-hooks__background__inspector-image-indicator-wrapper",{"has-image":n}),"aria-hidden":!0},n&&(0,s.createElement)("span",{className:"block-editor-hooks__background__inspector-image-indicator",style:{backgroundImage:`url(${n})`}})),(0,s.createElement)(_l.FlexItem,{as:"span"},(0,s.createElement)(_l.__experimentalTruncate,{numberOfLines:1,className:"block-editor-hooks__background__inspector-media-replace-title"},o),(0,s.createElement)(_l.VisuallyHidden,{as:"span"},t?(0,x.sprintf)((0,x.__)("Selected image: %s"),t):(0,x.__)("No image selected")))))}function ac({clientId:e,isShownByDefault:t,setAttributes:n}){const{style:o,mediaUpload:r}=(0,d.useSelect)((t=>{const{getBlockAttributes:n,getSettings:o}=t(Nr);return{style:n(e)?.style,mediaUpload:o().mediaUpload}}),[e]),{id:l,title:i,url:a}=o?.background?.backgroundImage||{},c=(0,u.useRef)(),{createErrorNotice:p}=(0,d.useDispatch)(Os.store),m=e=>{p(e,{type:"snackbar"})},h=e=>{if(!e||!e.url){const e={...o,background:{...o?.background,backgroundImage:void 0}},t={style:hl(e)};return void n(t)}if((0,Ls.isBlobURL)(e.url))return;if(e.media_type&&e.media_type!==nc||!e.media_type&&e.type&&e.type!==nc)return void m((0,x.__)("Only images can be used as a background image."));const t={...o,background:{...o?.background,backgroundImage:{url:e.url,id:e.id,source:"file",title:e.title||void 0}}},r={style:hl(t)};n(r)},g=(0,u.useCallback)((e=>({...e,style:{...e.style,background:void 0}})),[]),f=oc(o);return(0,s.createElement)(_l.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>f,label:(0,x.__)("Background image"),onDeselect:()=>lc(o,n),isShownByDefault:t,resetAllFilter:g,panelId:e},(0,s.createElement)("div",{className:"block-editor-hooks__background__inspector-media-replace-container",ref:c},(0,s.createElement)(ec,{mediaId:l,mediaURL:a,allowedTypes:[nc],accept:"image/*",onSelect:h,name:(0,s.createElement)(sc,{label:(0,x.__)("Background image"),filename:i,url:a}),variant:"secondary"},f&&(0,s.createElement)(_l.MenuItem,{onClick:()=>{const[e]=As.focus.tabbable.find(c.current);e?.focus(),e?.click(),lc(o,n)}},(0,x.__)("Reset "))),(0,s.createElement)(_l.DropZone,{onFilesDrop:e=>{r({allowedTypes:["image"],filesList:e,onFileChange([e]){(0,Ls.isBlobURL)(e?.url)||h(e)},onError:m})},label:(0,x.__)("Drop to upload")})))}const cc=e=>{if(!e||isNaN(e.x)&&isNaN(e.y))return;return`${100*(isNaN(e.x)?.5:e.x)}% ${100*(isNaN(e.y)?.5:e.y)}%`},uc=e=>{if(!e)return{x:void 0,y:void 0};let[t,n]=e.split(" ").map((e=>parseFloat(e)/100));return t=isNaN(t)?void 0:t,n=isNaN(n)?t:n,{x:t,y:n}};function dc({clientId:e,isShownByDefault:t,setAttributes:n}){const o=(0,d.useSelect)((t=>t(Nr).getBlockAttributes(e)?.style),[e]),r=o?.background?.backgroundSize,l=o?.background?.backgroundRepeat,i=void 0!==r&&"cover"!==r&&"contain"!==r||""===r?"auto":r||"cover",a="no-repeat"!==l&&("cover"!==i||void 0!==l),c=function(e){return void 0!==e?.background?.backgroundPosition||void 0!==e?.background?.backgroundSize}(o),p=(0,u.useCallback)((e=>({...e,style:{...e.style,background:{...e.style?.background,backgroundRepeat:void 0,backgroundSize:void 0}}})),[]),m=e=>{let t=l;"contain"===e&&(t="no-repeat"),"cover"!==i&&"contain"!==i||"auto"!==e||(t=void 0),n({style:hl({...o,background:{...o?.background,backgroundRepeat:t,backgroundSize:e}})})};return(0,s.createElement)(_l.__experimentalVStack,{as:_l.__experimentalToolsPanelItem,spacing:2,className:"single-column",hasValue:()=>c,label:(0,x.__)("Size"),onDeselect:()=>function(e={},t){t({style:hl({...e,background:{...e?.background,backgroundPosition:void 0,backgroundRepeat:void 0,backgroundSize:void 0}})})}(o,n),isShownByDefault:t,resetAllFilter:p,panelId:e},(0,s.createElement)(_l.FocalPointPicker,{__next40pxDefaultSize:!0,label:(0,x.__)("Position"),url:o?.background?.backgroundImage?.url,value:uc(o?.background?.backgroundPosition),onChange:e=>{n({style:hl({...o,background:{...o?.background,backgroundPosition:cc(e)}})})}}),(0,s.createElement)(_l.__experimentalToggleGroupControl,{size:"__unstable-large",label:(0,x.__)("Size"),value:i,onChange:m,isBlock:!0,help:(h=r,"cover"===h||void 0===h?(0,x.__)("Image covers the space evenly."):"contain"===h?(0,x.__)("Image is contained without distortion."):(0,x.__)("Specify a fixed width."))},(0,s.createElement)(_l.__experimentalToggleGroupControlOption,{key:"cover",value:"cover",label:(0,x.__)("Cover")}),(0,s.createElement)(_l.__experimentalToggleGroupControlOption,{key:"contain",value:"contain",label:(0,x.__)("Contain")}),(0,s.createElement)(_l.__experimentalToggleGroupControlOption,{key:"fixed",value:"auto",label:(0,x.__)("Fixed")})),void 0!==r&&"cover"!==r&&"contain"!==r?(0,s.createElement)(_l.__experimentalUnitControl,{size:"__unstable-large",onChange:m,value:r}):null,"cover"!==i&&(0,s.createElement)(_l.ToggleControl,{label:(0,x.__)("Repeat"),checked:a,onChange:()=>{n({style:hl({...o,background:{...o?.background,backgroundRepeat:!0===a?"no-repeat":void 0}})})}}));var h}function pc(e){const[t,n]=Ar("background.backgroundImage","background.backgroundSize");if(!t||!rc(e.name,"backgroundImage"))return null;const o=!(!n||!rc(e.name,"backgroundSize")),r=(0,c.getBlockSupport)(e.name,[tc,"__experimentalDefaultControls"]);return(0,s.createElement)(Bs,{group:"background"},(0,s.createElement)(ac,{isShownByDefault:r?.backgroundImage,...e}),o&&(0,s.createElement)(dc,{isShownByDefault:r?.backgroundSize,...e}))}var mc={grad:.9,turn:360,rad:360/(2*Math.PI)},hc=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},gc=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},fc=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},bc=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},vc=function(e){return{r:fc(e.r,0,255),g:fc(e.g,0,255),b:fc(e.b,0,255),a:fc(e.a)}},kc=function(e){return{r:gc(e.r),g:gc(e.g),b:gc(e.b),a:gc(e.a,3)}},_c=/^#([0-9a-f]{3,8})$/i,yc=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Ec=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,l=Math.max(t,n,o),i=l-Math.min(t,n,o),s=i?l===t?(n-o)/i:l===n?2+(o-t)/i:4+(t-n)/i:0;return{h:60*(s<0?s+6:s),s:l?i/l*100:0,v:l/255*100,a:r}},wc=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var l=Math.floor(t),i=o*(1-n),s=o*(1-(t-l)*n),a=o*(1-(1-t+l)*n),c=l%6;return{r:255*[o,s,i,i,a,o][c],g:255*[a,o,o,s,i,i][c],b:255*[i,i,a,o,o,s][c],a:r}},Sc=function(e){return{h:bc(e.h),s:fc(e.s,0,100),l:fc(e.l,0,100),a:fc(e.a)}},Cc=function(e){return{h:gc(e.h),s:gc(e.s),l:gc(e.l),a:gc(e.a,3)}},xc=function(e){return wc((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},Bc=function(e){return{h:(t=Ec(e)).h,s:(r=(200-(n=t.s))*(o=t.v)/100)>0&&r<200?n*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,o,r},Ic=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Tc=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Mc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Pc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Rc={string:[[function(e){var t=_c.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?gc(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?gc(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Mc.exec(e)||Pc.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:vc({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Ic.exec(e)||Tc.exec(e);if(!t)return null;var n,o,r=Sc({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(mc[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return xc(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,r=e.a,l=void 0===r?1:r;return hc(t)&&hc(n)&&hc(o)?vc({r:Number(t),g:Number(n),b:Number(o),a:Number(l)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,r=e.a,l=void 0===r?1:r;if(!hc(t)||!hc(n)||!hc(o))return null;var i=Sc({h:Number(t),s:Number(n),l:Number(o),a:Number(l)});return xc(i)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,r=e.a,l=void 0===r?1:r;if(!hc(t)||!hc(n)||!hc(o))return null;var i=function(e){return{h:bc(e.h),s:fc(e.s,0,100),v:fc(e.v,0,100),a:fc(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(l)});return wc(i)},"hsv"]]},Nc=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},Lc=function(e){return"string"==typeof e?Nc(e.trim(),Rc.string):"object"==typeof e&&null!==e?Nc(e,Rc.object):[null,void 0]},Ac=function(e,t){var n=Bc(e);return{h:n.h,s:fc(n.s+100*t,0,100),l:n.l,a:n.a}},Oc=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Dc=function(e,t){var n=Bc(e);return{h:n.h,s:n.s,l:fc(n.l+100*t,0,100),a:n.a}},zc=function(){function e(e){this.parsed=Lc(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return gc(Oc(this.rgba),2)},e.prototype.isDark=function(){return Oc(this.rgba)<.5},e.prototype.isLight=function(){return Oc(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=kc(this.rgba)).r,n=e.g,o=e.b,l=(r=e.a)<1?yc(gc(255*r)):"","#"+yc(t)+yc(n)+yc(o)+l;var e,t,n,o,r,l},e.prototype.toRgb=function(){return kc(this.rgba)},e.prototype.toRgbString=function(){return t=(e=kc(this.rgba)).r,n=e.g,o=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+o+", "+r+")":"rgb("+t+", "+n+", "+o+")";var e,t,n,o,r},e.prototype.toHsl=function(){return Cc(Bc(this.rgba))},e.prototype.toHslString=function(){return t=(e=Cc(Bc(this.rgba))).h,n=e.s,o=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+o+"%, "+r+")":"hsl("+t+", "+n+"%, "+o+"%)";var e,t,n,o,r},e.prototype.toHsv=function(){return e=Ec(this.rgba),{h:gc(e.h),s:gc(e.s),v:gc(e.v),a:gc(e.a,3)};var e},e.prototype.invert=function(){return Vc({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Vc(Ac(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Vc(Ac(this.rgba,-e))},e.prototype.grayscale=function(){return Vc(Ac(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Vc(Dc(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Vc(Dc(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Vc({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):gc(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Bc(this.rgba);return"number"==typeof e?Vc({h:e,s:t.s,l:t.l,a:t.a}):gc(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Vc(e).toHex()},e}(),Vc=function(e){return e instanceof zc?e:new zc(e)},Fc=[],Hc=function(e){e.forEach((function(e){Fc.indexOf(e)<0&&(e(zc,Rc),Fc.push(e))}))};function Gc(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var r in n)o[n[r]]=r;var l={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,i,s=o[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var a=this.toRgb(),c=1/0,u="black";if(!l.length)for(var d in n)l[d]=new e(n[d]).toRgb();for(var p in n){var m=(r=a,i=l[p],Math.pow(r.r-i.r,2)+Math.pow(r.g-i.g,2)+Math.pow(r.b-i.b,2));m<c&&(c=m,u=p)}return u}},t.string.push([function(t){var o=t.toLowerCase(),r="transparent"===o?"#0000":n[o];return r?new e(r).toRgb():null},"name"])}var Uc=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},$c=function(e){return.2126*Uc(e.r)+.7152*Uc(e.g)+.0722*Uc(e.b)};function jc(e){e.prototype.luminance=function(){return e=$c(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,o,r,l,i,s,a,c=t instanceof e?t:new e(t);return l=this.rgba,i=c.toRgb(),n=(s=$c(l))>(a=$c(i))?(s+.05)/(a+.05):(a+.05)/(s+.05),void 0===(o=2)&&(o=0),void 0===r&&(r=Math.pow(10,o)),Math.floor(r*n)/r+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(i=void 0===(l=(n=t).size)?"normal":l,"AAA"===(r=void 0===(o=n.level)?"AA":o)&&"normal"===i?7:"AA"===r&&"large"===i?3:4.5);var n,o,r,l,i}}Hc([Gc,jc]);const Wc=(e,t,n)=>{if(t){const n=e?.find((e=>e.slug===t));if(n)return n}return{color:n}},Kc=(e,t)=>e?.find((e=>e.color===t));function Zc(e,t){if(!e||!t)return;const{kebabCase:n}=ie(_l.privateApis);return`has-${n(t)}-${e}`}function qc(){const[e,t,n,o,r,l,i,s,a,c]=Ar("color.custom","color.palette.custom","color.palette.theme","color.palette.default","color.defaultPalette","color.customGradient","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients"),d={disableCustomColors:!e,disableCustomGradients:!l};return d.colors=(0,u.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,x._x)("Theme","Indicates this palette comes from the theme."),colors:n}),r&&o&&o.length&&e.push({name:(0,x._x)("Default","Indicates this palette comes from WordPress."),colors:o}),t&&t.length&&e.push({name:(0,x._x)("Custom","Indicates this palette comes from the theme."),colors:t}),e}),[t,n,o,r]),d.gradients=(0,u.useMemo)((()=>{const e=[];return s&&s.length&&e.push({name:(0,x._x)("Theme","Indicates this palette comes from the theme."),gradients:s}),c&&a&&a.length&&e.push({name:(0,x._x)("Default","Indicates this palette comes from WordPress."),gradients:a}),i&&i.length&&e.push({name:(0,x._x)("Custom","Indicates this palette is created by the user."),gradients:i}),e}),[i,s,a,c]),d.hasColorsOrGradients=!!d.colors.length||!!d.gradients.length,d}function Yc(e){return[...e].sort(((t,n)=>e.filter((e=>e===n)).length-e.filter((e=>e===t)).length)).shift()}function Xc(e={}){const{flat:t,...n}=e;return t||Yc(Object.values(n).filter(Boolean))||"px"}function Qc(e={}){if("string"==typeof e)return e;const t=Object.values(e).map((e=>(0,_l.__experimentalParseQuantityAndUnitFromRawValue)(e))),n=t.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),o=t.map((e=>e[1])),r=n.every((e=>e===n[0]))?n[0]:"",l=Yc(o);return 0===r||r?`${r}${l}`:void 0}function Jc(e={}){const t=Qc(e);return"string"!=typeof e&&isNaN(parseFloat(t))}function eu(e){if(!e)return!1;if("string"==typeof e)return!0;return!!Object.values(e).filter((e=>!!e||0===e)).length}function tu({onChange:e,selectedUnits:t,setSelectedUnits:n,values:o,...r}){let l=Qc(o);void 0===l&&(l=Xc(t));const i=eu(o)&&Jc(o),a=i?(0,x.__)("Mixed"):null;return(0,s.createElement)(_l.__experimentalUnitControl,{...r,"aria-label":(0,x.__)("Border radius"),disableUnits:i,isOnly:!0,value:l,onChange:t=>{const n=!isNaN(parseFloat(t));e(n?t:void 0)},onUnitChange:e=>{n({topLeft:e,topRight:e,bottomLeft:e,bottomRight:e})},placeholder:a,size:"__unstable-large"})}const nu={topLeft:(0,x.__)("Top left"),topRight:(0,x.__)("Top right"),bottomLeft:(0,x.__)("Bottom left"),bottomRight:(0,x.__)("Bottom right")};function ou({onChange:e,selectedUnits:t,setSelectedUnits:n,values:o,...r}){const l=t=>n=>{if(!e)return;const o=!isNaN(parseFloat(n))?n:void 0;e({...i,[t]:o})},i="string"!=typeof o?o:{topLeft:o,topRight:o,bottomLeft:o,bottomRight:o};return(0,s.createElement)("div",{className:"components-border-radius-control__input-controls-wrapper"},Object.entries(nu).map((([e,o])=>{const[a,c]=(0,_l.__experimentalParseQuantityAndUnitFromRawValue)(i[e]),u=i[e]?c:t[e]||t.flat;return(0,s.createElement)(_l.Tooltip,{text:o,placement:"top",key:e},(0,s.createElement)("div",{className:"components-border-radius-control__tooltip-wrapper"},(0,s.createElement)(_l.__experimentalUnitControl,{...r,"aria-label":o,value:[a,u].join(""),onChange:l(e),onUnitChange:(d=e,e=>{const o={...t};o[d]=e,n(o)}),size:"__unstable-large"})));var d})))}const ru=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"}));function lu({isLinked:e,...t}){const n=e?(0,x.__)("Unlink radii"):(0,x.__)("Link radii");return(0,s.createElement)(_l.Tooltip,{text:n},(0,s.createElement)(_l.Button,{...t,className:"component-border-radius-control__linked-button",size:"small",icon:e?ru:Aa,iconSize:24,"aria-label":n}))}const iu={topLeft:void 0,topRight:void 0,bottomLeft:void 0,bottomRight:void 0},su=0,au={px:100,em:20,rem:20};function cu({onChange:e,values:t}){const[n,o]=(0,u.useState)(!eu(t)||!Jc(t)),[r,l]=(0,u.useState)({flat:"string"==typeof t?(0,_l.__experimentalParseQuantityAndUnitFromRawValue)(t)[1]:void 0,topLeft:(0,_l.__experimentalParseQuantityAndUnitFromRawValue)(t?.topLeft)[1],topRight:(0,_l.__experimentalParseQuantityAndUnitFromRawValue)(t?.topRight)[1],bottomLeft:(0,_l.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomLeft)[1],bottomRight:(0,_l.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomRight)[1]}),[i]=Ar("spacing.units"),a=(0,_l.__experimentalUseCustomUnits)({availableUnits:i||["px","em","rem"]}),c=Xc(r),d=a&&a.find((e=>e.value===c)),p=d?.step||1,[m]=(0,_l.__experimentalParseQuantityAndUnitFromRawValue)(Qc(t));return(0,s.createElement)("fieldset",{className:"components-border-radius-control"},(0,s.createElement)(_l.BaseControl.VisualLabel,{as:"legend"},(0,x.__)("Radius")),(0,s.createElement)("div",{className:"components-border-radius-control__wrapper"},n?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(tu,{className:"components-border-radius-control__unit-control",values:t,min:su,onChange:e,selectedUnits:r,setSelectedUnits:l,units:a}),(0,s.createElement)(_l.RangeControl,{label:(0,x.__)("Border radius"),hideLabelFromVision:!0,className:"components-border-radius-control__range-control",value:null!=m?m:"",min:su,max:au[c],initialPosition:0,withInputField:!1,onChange:t=>{e(void 0!==t?`${t}${c}`:void 0)},step:p,__nextHasNoMarginBottom:!0})):(0,s.createElement)(ou,{min:su,onChange:e,selectedUnits:r,setSelectedUnits:l,values:t||iu,units:a}),(0,s.createElement)(lu,{onClick:()=>o(!n),isLinked:n})))}const uu=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),du=(0,s.createElement)(Z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(Z.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})),pu=[];function mu({shadow:e,onShadowChange:t,settings:n}){const o=bu(n);return(0,s.createElement)("div",{className:"block-editor-global-styles__shadow-popover-container"},(0,s.createElement)(_l.__experimentalVStack,{spacing:4},(0,s.createElement)(_l.__experimentalHeading,{level:5},(0,x.__)("Drop shadow")),(0,s.createElement)(hu,{presets:o,activeShadow:e,onSelect:t}),(0,s.createElement)("div",{className:"block-editor-global-styles__clear-shadow"},(0,s.createElement)(_l.Button,{variant:"tertiary",onClick:()=>t(void 0)},(0,x.__)("Clear")))))}function hu({presets:e,activeShadow:t,onSelect:n}){const{CompositeV2:o,useCompositeStoreV2:r}=ie(_l.privateApis),l=r();return e?(0,s.createElement)(o,{store:l,role:"listbox",className:"block-editor-global-styles__shadow__list","aria-label":(0,x.__)("Drop shadows")},e.map((({name:e,slug:o,shadow:r})=>(0,s.createElement)(gu,{key:o,label:e,isActive:r===t,type:"unset"===o?"unset":"preset",onSelect:()=>n(r===t?void 0:r),shadow:r})))):null}function gu({type:e,label:t,isActive:n,onSelect:o,shadow:r}){const{CompositeItemV2:l}=ie(_l.privateApis);return(0,s.createElement)(l,{role:"option","aria-label":t,"aria-selected":n,className:ml()("block-editor-global-styles__shadow__item",{"is-active":n}),render:(0,s.createElement)(_l.Button,{className:ml()("block-editor-global-styles__shadow-indicator",{unset:"unset"===e}),onClick:o,label:t,style:{boxShadow:r},showTooltip:!0},n&&(0,s.createElement)(Ti,{icon:uu}))})}function fu({shadow:e,onShadowChange:t,settings:n}){return(0,s.createElement)(_l.Dropdown,{popoverProps:{placement:"left-start",offset:36,shift:!0},className:"block-editor-global-styles__shadow-dropdown",renderToggle:({onToggle:e,isOpen:t})=>{const n={onClick:e,className:ml()({"is-open":t}),"aria-expanded":t};return(0,s.createElement)(_l.Button,{...n},(0,s.createElement)(_l.__experimentalHStack,{justify:"flex-start"},(0,s.createElement)(Ti,{className:"block-editor-global-styles__toggle-icon",icon:du,size:24}),(0,s.createElement)(_l.FlexItem,null,(0,x.__)("Drop shadow"))))},renderContent:()=>(0,s.createElement)(_l.__experimentalDropdownContentWrapper,{paddingSize:"medium"},(0,s.createElement)(mu,{shadow:e,onShadowChange:t,settings:n}))})}function bu(e){return(0,u.useMemo)((()=>{var t;if(!e?.shadow)return pu;const n=e?.shadow?.defaultPresets,{default:o,theme:r}=null!==(t=e?.shadow?.presets)&&void 0!==t?t:{},l={name:(0,x.__)("Unset"),slug:"unset",shadow:"none"},i=[...n&&o||pu,...r||pu];return i.length&&i.unshift(l),i}),[e])}function vu(e){return Object.values(ku(e)).some(Boolean)}function ku(e){return{hasBorderColor:_u(e),hasBorderRadius:yu(e),hasBorderStyle:Eu(e),hasBorderWidth:wu(e),hasShadow:Su(e)}}function _u(e){return e?.border?.color}function yu(e){return e?.border?.radius}function Eu(e){return e?.border?.style}function wu(e){return e?.border?.width}function Su(e){const t=bu(e);return!!e?.shadow&&t.length>0}function Cu({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r,label:l}){return(0,s.createElement)(_l.__experimentalToolsPanel,{label:l,resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:Qr},r)}const xu={radius:!0,color:!0,width:!0,shadow:!1};function Bu({as:e=Cu,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:l,name:i,defaultControls:a=xu}){var c,d;const p=ul(r),m=(0,u.useCallback)((e=>el({settings:r},"",e)),[r]),h=e=>{const t=p.flatMap((({colors:e})=>e)).find((({color:t})=>t===e));return t?"var:preset|color|"+t.slug:e},g=(0,u.useMemo)((()=>{if((0,_l.__experimentalHasSplitBorders)(o?.border)){const e={...o?.border};return["top","right","bottom","left"].forEach((t=>{e[t]={...e[t],color:m(e[t]?.color)}})),e}return{...o?.border,color:o?.border?.color?m(o?.border?.color):void 0}}),[o?.border,m]),f=e=>n({...t,border:e}),b=_u(r),v=Eu(r),k=wu(r),_=yu(r),y=m(g?.radius),E=e=>f({...g,radius:e}),w=()=>{const e=t?.border?.radius;return"object"==typeof e?Object.entries(e).some(Boolean):!!e},S=Su(r),C=m(o?.shadow),B=null!==(d=Qn(null!==(c=r?.shadow?.presets)&&void 0!==c?c:{}))&&void 0!==d?d:[],I=e=>{const o=B?.find((({shadow:t})=>t===e))?.slug;n(jn(t,["shadow"],o?`var:preset|shadow|${o}`:e||void 0))},T=(0,u.useCallback)((e=>({...e,border:void 0,shadow:void 0})),[]),M=a?.color||a?.width,P=b||v||k||_,R=zu({blockName:i,hasShadowControl:S,hasBorderControl:P});return(0,s.createElement)(e,{resetAllFilter:T,value:t,onChange:n,panelId:l,label:R},(k||b)&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{hasValue:()=>(0,_l.__experimentalIsDefinedBorder)(t?.border),label:(0,x.__)("Border"),onDeselect:()=>(()=>{if(w())return f({radius:t?.border?.radius});f(void 0)})(),isShownByDefault:M,panelId:l},(0,s.createElement)(_l.__experimentalBorderBoxControl,{colors:p,enableAlpha:!0,enableStyle:v,onChange:e=>{const t={...e};(0,_l.__experimentalHasSplitBorders)(t)?["top","right","bottom","left"].forEach((e=>{t[e]&&(t[e]={...t[e],color:h(t[e]?.color)})})):t&&(t.color=h(t.color)),f({radius:g?.radius,...t})},popoverOffset:40,popoverPlacement:"left-start",value:g,__experimentalIsRenderedInSidebar:!0,size:"__unstable-large",hideLabelFromVision:!S,label:(0,x.__)("Border")})),_&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{hasValue:w,label:(0,x.__)("Radius"),onDeselect:()=>E(void 0),isShownByDefault:a.radius,panelId:l},(0,s.createElement)(cu,{values:y,onChange:e=>{E(e||void 0)}})),S&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{label:(0,x.__)("Shadow"),hasValue:()=>!!t?.shadow,onDeselect:()=>I(void 0),isShownByDefault:a.shadow,panelId:l},P?(0,s.createElement)(_l.BaseControl.VisualLabel,{as:"legend"},(0,x.__)("Shadow")):null,(0,s.createElement)(_l.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,s.createElement)(fu,{shadow:C,onShadowChange:I,settings:r}))))}const Iu="__experimentalBorder",Tu="shadow",Mu=(e,t,n)=>{let o;return e.some((e=>e.colors.some((e=>e[t]===n&&(o=e,!0))))),o},Pu=({colors:e,namedColor:t,customColor:n})=>{if(t){const n=Mu(e,"slug",t);if(n)return n}if(!n)return{color:void 0};const o=Mu(e,"color",n);return o||{color:n}};function Ru(e){const t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function Nu(e){if((0,_l.__experimentalHasSplitBorders)(e?.border))return{style:e,borderColor:void 0};const t=e?.border?.color,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,o={...e};return o.border={...o.border,color:n?void 0:t},{style:hl(o),borderColor:n}}function Lu(e){return(0,_l.__experimentalHasSplitBorders)(e.style?.border)?e.style:{...e.style,border:{...e.style?.border,color:e.borderColor?"var:preset|color|"+e.borderColor:e.style?.border?.color}}}function Au({label:e,children:t,resetAllFilter:n}){const o=(0,u.useCallback)((e=>{const t=Lu(e),o=n(t);return{...e,...Nu(o)}}),[n]);return(0,s.createElement)(Bs,{group:"border",resetAllFilter:o,label:e},t)}function Ou({clientId:e,name:t,setAttributes:n,settings:o}){const r=vu(o);const{style:l,borderColor:i}=(0,d.useSelect)((function(t){const{style:n,borderColor:o}=t(Nr).getBlockAttributes(e)||{};return{style:n,borderColor:o}}),[e]),a=(0,u.useMemo)((()=>Lu({style:l,borderColor:i})),[l,i]);if(!r)return null;const p={...(0,c.getBlockSupport)(t,[Iu,"__experimentalDefaultControls"]),...(0,c.getBlockSupport)(t,[Tu,"__experimentalDefaultControls"])};return(0,s.createElement)(Bu,{as:Au,panelId:e,settings:o,value:a,onChange:e=>{n(Nu(e))},defaultControls:p})}function Du(e,t="any"){if("web"!==u.Platform.OS)return!1;const n=(0,c.getBlockSupport)(e,Iu);return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}function zu({blockName:e,hasBorderControl:t,hasShadowControl:n}={}){const o=ku(vl(e));return t||n||!e||(t=o?.hasBorderColor||o?.hasBorderStyle||o?.hasBorderWidth||o?.hasBorderRadius,n=o?.hasShadow),t&&n?(0,x.__)("Border & Shadow"):n?(0,x.__)("Shadow"):(0,x.__)("Border")}function Vu(e,t,n){if(!Du(t,"color")||fl(t,Iu,"color"))return e;const o=Fu(n),r=ml()(e.className,o);return e.className=r||void 0,e}function Fu(e){const{borderColor:t,style:n}=e,o=Zc("border-color",t);return ml()({"has-border-color":t||n?.border?.color,[o]:!!o})}const Hu={useBlockProps:function({name:e,borderColor:t,style:n}){const{colors:o}=qc();if(!Du(e,"color")||fl(e,Iu,"color"))return{};const{color:r}=Pu({colors:o,namedColor:t}),{color:l}=Pu({colors:o,namedColor:Ru(n?.border?.top?.color)}),{color:i}=Pu({colors:o,namedColor:Ru(n?.border?.right?.color)}),{color:s}=Pu({colors:o,namedColor:Ru(n?.border?.bottom?.color)}),{color:a}=Pu({colors:o,namedColor:Ru(n?.border?.left?.color)});return Vu({style:hl({borderTopColor:l||r,borderRightColor:i||r,borderBottomColor:s||r,borderLeftColor:a||r})||{}},e,{borderColor:t,style:n})},addSaveProps:Vu,attributeKeys:["borderColor","style"],hasSupport:e=>Du(e,"color")};function Gu(e){if(e)return`has-${e}-gradient-background`}function Uu(e,t){const n=e?.find((e=>e.slug===t));return n&&n.gradient}function $u(e,t){const n=e?.find((e=>e.gradient===t));return n}function ju(e,t){const n=$u(e,t);return n&&n.slug}function Wu({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){const{clientId:n}=y(),[o,r,l]=Ar("color.gradients.custom","color.gradients.theme","color.gradients.default"),i=(0,u.useMemo)((()=>[...o||[],...r||[],...l||[]]),[o,r,l]),{gradient:s,customGradient:a}=(0,d.useSelect)((o=>{const{getBlockAttributes:r}=o(Nr),l=r(n)||{};return{customGradient:l[t],gradient:l[e]}}),[n,e,t]),{updateBlockAttributes:c}=(0,d.useDispatch)(Nr),p=(0,u.useCallback)((o=>{const r=ju(i,o);c(n,r?{[e]:r,[t]:void 0}:{[e]:void 0,[t]:o})}),[i,n,c]),m=Gu(s);let h;return h=s?Uu(i,s):a,{gradientClass:m,gradientValue:h,setGradient:p}}(0,m.addFilter)("blocks.registerBlockType","core/border/addAttributes",(function(e){return Du(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e}));const Ku=["colors","disableCustomColors","gradients","disableCustomGradients"],Zu={color:"color",gradient:"gradient"};function qu({colors:e,gradients:t,disableCustomColors:n,disableCustomGradients:o,__experimentalIsRenderedInSidebar:r,className:l,label:i,onColorChange:a,onGradientChange:c,colorValue:u,gradientValue:d,clearable:p,showTitle:m=!0,enableAlpha:h,headingLevel:g}){const f=a&&(e&&e.length>0||!n),b=c&&(t&&t.length>0||!o);if(!f&&!b)return null;const v={[Zu.color]:(0,s.createElement)(_l.ColorPalette,{value:u,onChange:b?e=>{a(e),c()}:a,colors:e,disableCustomColors:n,__experimentalIsRenderedInSidebar:r,clearable:p,enableAlpha:h,headingLevel:g}),[Zu.gradient]:(0,s.createElement)(_l.GradientPicker,{value:d,onChange:f?e=>{c(e),a()}:c,gradients:t,disableCustomGradients:o,__experimentalIsRenderedInSidebar:r,clearable:p,headingLevel:g})},k=e=>(0,s.createElement)("div",{className:"block-editor-color-gradient-control__panel"},v[e]),{Tabs:_}=ie(_l.privateApis);return(0,s.createElement)(_l.BaseControl,{__nextHasNoMarginBottom:!0,className:ml()("block-editor-color-gradient-control",l)},(0,s.createElement)("fieldset",{className:"block-editor-color-gradient-control__fieldset"},(0,s.createElement)(_l.__experimentalVStack,{spacing:1},m&&(0,s.createElement)("legend",null,(0,s.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},(0,s.createElement)(_l.BaseControl.VisualLabel,null,i))),f&&b&&(0,s.createElement)("div",null,(0,s.createElement)(_,{initialTabId:d?Zu.gradient:!!f&&Zu.color},(0,s.createElement)(_.TabList,null,(0,s.createElement)(_.Tab,{tabId:Zu.color},(0,x.__)("Solid")),(0,s.createElement)(_.Tab,{tabId:Zu.gradient},(0,x.__)("Gradient"))),(0,s.createElement)(_.TabPanel,{tabId:Zu.color,className:"block-editor-color-gradient-control__panel",focusable:!1},v.color),(0,s.createElement)(_.TabPanel,{tabId:Zu.gradient,className:"block-editor-color-gradient-control__panel",focusable:!1},v.gradient))),!b&&k(Zu.color),!f&&k(Zu.gradient))))}function Yu(e){const[t,n,o,r]=Ar("color.palette","color.gradients","color.custom","color.customGradient");return(0,s.createElement)(qu,{colors:t,gradients:n,disableCustomColors:!o,disableCustomGradients:!r,...e})}const Xu=function(e){return Ku.every((t=>e.hasOwnProperty(t)))?(0,s.createElement)(qu,{...e}):(0,s.createElement)(Yu,{...e})};function Qu(e){const t=Ju(e),n=rd(e),o=ed(e),r=nd(e),l=od(e),i=td(e);return t||n||o||r||l||i}function Ju(e){const t=ul(e);return e?.color?.text&&(t?.length>0||e?.color?.custom)}function ed(e){const t=ul(e);return e?.color?.link&&(t?.length>0||e?.color?.custom)}function td(e){const t=ul(e);return e?.color?.caption&&(t?.length>0||e?.color?.custom)}function nd(e){const t=ul(e),n=dl(e);return e?.color?.heading&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function od(e){const t=ul(e),n=dl(e);return e?.color?.button&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function rd(e){const t=ul(e),n=dl(e);return e?.color?.background&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function ld({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){return(0,s.createElement)(_l.__experimentalToolsPanel,{label:(0,x.__)("Color"),resetAll:()=>{const o=e(n);t(o)},panelId:o,hasInnerWrapper:!0,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:Qr},(0,s.createElement)("div",{className:"color-block-support-panel__inner-wrapper"},r))}const id={text:!0,background:!0,link:!0,heading:!0,button:!0,caption:!0},sd={placement:"left-start",offset:36,shift:!0},ad=({indicators:e,label:t})=>(0,s.createElement)(_l.__experimentalHStack,{justify:"flex-start"},(0,s.createElement)(_l.__experimentalZStack,{isLayered:!1,offset:-8},e.map(((e,t)=>(0,s.createElement)(_l.Flex,{key:t,expanded:!1},(0,s.createElement)(_l.ColorIndicator,{colorValue:e}))))),(0,s.createElement)(_l.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t},t));function cd({isGradient:e,inheritedValue:t,userValue:n,setValue:o,colorGradientControlSettings:r}){return(0,s.createElement)(Xu,{...r,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:e?void 0:t,gradientValue:e?t:void 0,onColorChange:e?void 0:o,onGradientChange:e?o:void 0,clearable:t===n,headingLevel:3})}function ud({label:e,hasValue:t,resetValue:n,isShownByDefault:o,indicators:r,tabs:l,colorGradientControlSettings:i,panelId:a}){const c=l.find((e=>void 0!==e.userValue)),{Tabs:u}=ie(_l.privateApis);return(0,s.createElement)(_l.__experimentalToolsPanelItem,{className:"block-editor-tools-panel-color-gradient-settings__item",hasValue:t,label:e,onDeselect:n,isShownByDefault:o,panelId:a},(0,s.createElement)(_l.Dropdown,{popoverProps:sd,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:t,isOpen:n})=>{const o={onClick:t,className:ml()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":n}),"aria-expanded":n,"aria-label":(0,x.sprintf)((0,x.__)("Color %s styles"),e)};return(0,s.createElement)(_l.Button,{...o},(0,s.createElement)(ad,{indicators:r,label:e}))},renderContent:()=>(0,s.createElement)(_l.__experimentalDropdownContentWrapper,{paddingSize:"none"},(0,s.createElement)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content"},1===l.length&&(0,s.createElement)(cd,{...l[0],colorGradientControlSettings:i}),l.length>1&&(0,s.createElement)(u,{initialTabId:c?.key},(0,s.createElement)(u.TabList,null,l.map((e=>(0,s.createElement)(u.Tab,{key:e.key,tabId:e.key},e.label)))),l.map((e=>(0,s.createElement)(u.TabPanel,{key:e.key,tabId:e.key,focusable:!1},(0,s.createElement)(cd,{...e,colorGradientControlSettings:i})))))))}))}function dd({as:e=ld,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:l,defaultControls:i=id,children:a}){const c=ul(r),d=dl(r),p=r?.color?.custom,m=r?.color?.customGradient,h=c.length>0||p,g=d.length>0||m,f=e=>el({settings:r},"",e),b=e=>{const t=c.flatMap((({colors:e})=>e)).find((({color:t})=>t===e));return t?"var:preset|color|"+t.slug:e},v=e=>{const t=d.flatMap((({gradients:e})=>e)).find((({gradient:t})=>t===e));return t?"var:preset|gradient|"+t.slug:e},k=rd(r),_=f(o?.color?.background),y=f(t?.color?.background),E=f(o?.color?.gradient),w=f(t?.color?.gradient),S=ed(r),C=f(o?.elements?.link?.color?.text),B=f(t?.elements?.link?.color?.text),I=f(o?.elements?.link?.[":hover"]?.color?.text),T=f(t?.elements?.link?.[":hover"]?.color?.text),M=Ju(r),P=f(o?.color?.text),R=f(t?.color?.text),N=e=>{let o=jn(t,["color","text"],b(e));P===C&&(o=jn(o,["elements","link","color","text"],b(e))),n(o)},L=[{name:"caption",label:(0,x.__)("Captions"),showPanel:td(r)},{name:"button",label:(0,x.__)("Button"),showPanel:od(r)},{name:"heading",label:(0,x.__)("Heading"),showPanel:nd(r)},{name:"h1",label:(0,x.__)("H1"),showPanel:nd(r)},{name:"h2",label:(0,x.__)("H2"),showPanel:nd(r)},{name:"h3",label:(0,x.__)("H3"),showPanel:nd(r)},{name:"h4",label:(0,x.__)("H4"),showPanel:nd(r)},{name:"h5",label:(0,x.__)("H5"),showPanel:nd(r)},{name:"h6",label:(0,x.__)("H6"),showPanel:nd(r)}],A=(0,u.useCallback)((e=>({...e,color:void 0,elements:{...e?.elements,link:{...e?.elements?.link,color:void 0,":hover":{color:void 0}},...L.reduce(((t,n)=>({...t,[n.name]:{...e?.elements?.[n.name],color:void 0}})),{})}})),[]),O=[M&&{key:"text",label:(0,x.__)("Text"),hasValue:()=>!!R,resetValue:()=>N(void 0),isShownByDefault:i.text,indicators:[P],tabs:[{key:"text",label:(0,x.__)("Text"),inheritedValue:P,setValue:N,userValue:R}]},k&&{key:"background",label:(0,x.__)("Background"),hasValue:()=>!!y||!!w,resetValue:()=>{const e=jn(t,["color","background"],void 0);e.color.gradient=void 0,n(e)},isShownByDefault:i.background,indicators:[null!=E?E:_],tabs:[h&&{key:"background",label:(0,x.__)("Solid"),inheritedValue:_,setValue:e=>{const o=jn(t,["color","background"],b(e));o.color.gradient=void 0,n(o)},userValue:y},g&&{key:"gradient",label:(0,x.__)("Gradient"),inheritedValue:E,setValue:e=>{const o=jn(t,["color","gradient"],v(e));o.color.background=void 0,n(o)},userValue:w,isGradient:!0}].filter(Boolean)},S&&{key:"link",label:(0,x.__)("Link"),hasValue:()=>!!B||!!T,resetValue:()=>{let e=jn(t,["elements","link",":hover","color","text"],void 0);e=jn(e,["elements","link","color","text"],void 0),n(e)},isShownByDefault:i.link,indicators:[C,I],tabs:[{key:"link",label:(0,x.__)("Default"),inheritedValue:C,setValue:e=>{n(jn(t,["elements","link","color","text"],b(e)))},userValue:B},{key:"hover",label:(0,x.__)("Hover"),inheritedValue:I,setValue:e=>{n(jn(t,["elements","link",":hover","color","text"],b(e)))},userValue:T}]}].filter(Boolean);return L.forEach((({name:e,label:r,showPanel:l})=>{if(!l)return;const s=f(o?.elements?.[e]?.color?.background),a=f(o?.elements?.[e]?.color?.gradient),c=f(o?.elements?.[e]?.color?.text),u=f(t?.elements?.[e]?.color?.background),d=f(t?.elements?.[e]?.color?.gradient),p=f(t?.elements?.[e]?.color?.text),m="caption"!==e;O.push({key:e,label:r,hasValue:()=>!!(p||u||d),resetValue:()=>{const o=jn(t,["elements",e,"color","background"],void 0);o.elements[e].color.gradient=void 0,o.elements[e].color.text=void 0,n(o)},isShownByDefault:i[e],indicators:m?[c,null!=a?a:s]:[c],tabs:[h&&{key:"text",label:(0,x.__)("Text"),inheritedValue:c,setValue:o=>{n(jn(t,["elements",e,"color","text"],b(o)))},userValue:p},h&&m&&{key:"background",label:(0,x.__)("Background"),inheritedValue:s,setValue:o=>{const r=jn(t,["elements",e,"color","background"],b(o));r.elements[e].color.gradient=void 0,n(r)},userValue:u},g&&m&&{key:"gradient",label:(0,x.__)("Gradient"),inheritedValue:a,setValue:o=>{const r=jn(t,["elements",e,"color","gradient"],v(o));r.elements[e].color.background=void 0,n(r)},userValue:d,isGradient:!0}].filter(Boolean)})})),(0,s.createElement)(e,{resetAllFilter:A,value:t,onChange:n,panelId:l},O.map((e=>(0,s.createElement)(ud,{key:e.key,...e,colorGradientControlSettings:{colors:c,disableCustomColors:!p,gradients:d,disableCustomGradients:!m},panelId:l}))),a)}Hc([Gc,jc]);const pd=function({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:n,fallbackLinkColor:o,fontSize:r,isLargeText:l,textColor:i,linkColor:a,enableAlphaChecker:c=!1}){const u=e||t;if(!u)return null;const d=i||n,p=a||o;if(!d&&!p)return null;const m=[{color:d,description:(0,x.__)("text color")},{color:p,description:(0,x.__)("link color")}],h=Vc(u),g=h.alpha()<1,f=h.brightness(),b={level:"AA",size:l||!1!==l&&r>=24?"large":"small"};let v="",k="";for(const e of m){if(!e.color)continue;const t=Vc(e.color),n=t.isReadable(h,b),o=t.alpha()<1;if(!n){if(g||o)continue;v=f<t.brightness()?(0,x.sprintf)((0,x.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."),e.description):(0,x.sprintf)((0,x.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."),e.description),k=(0,x.__)("This color combination may be hard for people to read.");break}o&&c&&(v=(0,x.__)("Transparent text may be hard for people to read."),k=(0,x.__)("Transparent text may be hard for people to read."))}return v?((0,vo.speak)(k),(0,s.createElement)("div",{className:"block-editor-contrast-checker"},(0,s.createElement)(_l.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},v))):null},md=(0,u.createContext)({refs:new Map,callbacks:new Map});function hd({children:e}){const t=(0,u.useMemo)((()=>({refs:new Map,callbacks:new Map})),[]);return(0,s.createElement)(md.Provider,{value:t},e)}function gd(e){const{refs:t,callbacks:n}=(0,u.useContext)(md),o=(0,u.useRef)();return(0,u.useLayoutEffect)((()=>(t.set(o,e),()=>{t.delete(o)})),[e]),(0,p.useRefEffect)((t=>{o.current=t,n.forEach(((n,o)=>{e===n&&o(t)}))}),[e])}function fd(e){const{refs:t}=(0,u.useContext)(md),n=(0,u.useRef)();return n.current=e,(0,u.useMemo)((()=>({get current(){let e=null;for(const[o,r]of t.entries())r===n.current&&o.current&&(e=o.current);return e}})),[])}function bd(e){const{callbacks:t}=(0,u.useContext)(md),n=fd(e),[o,r]=(0,u.useState)(null);return(0,u.useLayoutEffect)((()=>{if(e)return t.set(r,e),()=>{t.delete(r)}}),[e]),n.current||o}function vd(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function kd({clientId:e}){const[t,n]=(0,u.useState)(),[o,r]=(0,u.useState)(),[l,i]=(0,u.useState)(),a=fd(e);return(0,u.useEffect)((()=>{if(!a.current)return;r(vd(a.current).color);const e=a.current?.querySelector("a");e&&e.innerText&&i(vd(e).color);let t=a.current,o=vd(t).backgroundColor;for(;"rgba(0, 0, 0, 0)"===o&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)t=t.parentNode,o=vd(t).backgroundColor;n(o)})),(0,s.createElement)(pd,{backgroundColor:t,textColor:o,enableAlphaChecker:!0,linkColor:l})}const _d="color",yd=e=>{const t=(0,c.getBlockSupport)(e,_d);return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},Ed=e=>{if("web"!==u.Platform.OS)return!1;const t=(0,c.getBlockSupport)(e,_d);return null!==t&&"object"==typeof t&&!!t.link},wd=e=>{const t=(0,c.getBlockSupport)(e,_d);return null!==t&&"object"==typeof t&&!!t.gradients},Sd=e=>{const t=(0,c.getBlockSupport)(e,_d);return t&&!1!==t.background},Cd=e=>{const t=(0,c.getBlockSupport)(e,_d);return t&&!1!==t.text};function xd(e,t,n){if(!yd(t)||fl(t,_d))return e;const o=wd(t),{backgroundColor:r,textColor:l,gradient:i,style:s}=n,a=e=>!fl(t,_d,e),c=a("text")?Zc("color",l):void 0,u=a("gradients")?Gu(i):void 0,d=a("background")?Zc("background-color",r):void 0,p=a("background")||a("gradients"),m=r||s?.color?.background||o&&(i||s?.color?.gradient),h=ml()(e.className,c,u,{[d]:!(o&&s?.color?.gradient||!d),"has-text-color":a("text")&&(l||s?.color?.text),"has-background":p&&m,"has-link-color":a("link")&&s?.elements?.link?.color});return e.className=h||void 0,e}function Bd(e){const t=e?.color?.text,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,o=e?.color?.background,r=o?.startsWith("var:preset|color|")?o.substring(17):void 0,l=e?.color?.gradient,i=l?.startsWith("var:preset|gradient|")?l.substring(20):void 0,s={...e};return s.color={...s.color,text:n?void 0:t,background:r?void 0:o,gradient:i?void 0:l},{style:hl(s),textColor:n,backgroundColor:r,gradient:i}}function Id(e){return{...e.style,color:{...e.style?.color,text:e.textColor?"var:preset|color|"+e.textColor:e.style?.color?.text,background:e.backgroundColor?"var:preset|color|"+e.backgroundColor:e.style?.color?.background,gradient:e.gradient?"var:preset|gradient|"+e.gradient:e.style?.color?.gradient}}}function Td({children:e,resetAllFilter:t}){const n=(0,u.useCallback)((e=>{const n=Id(e),o=t(n);return{...e,...Bd(o)}}),[t]);return(0,s.createElement)(Bs,{group:"color",resetAllFilter:n},e)}function Md({clientId:e,name:t,setAttributes:n,settings:o}){const r=Qu(o);const{style:l,textColor:i,backgroundColor:a,gradient:p}=(0,d.useSelect)((function(t){const{style:n,textColor:o,backgroundColor:r,gradient:l}=t(Nr).getBlockAttributes(e)||{};return{style:n,textColor:o,backgroundColor:r,gradient:l}}),[e]),m=(0,u.useMemo)((()=>Id({style:l,textColor:i,backgroundColor:a,gradient:p})),[l,i,a,p]);if(!r)return null;const h=(0,c.getBlockSupport)(t,[_d,"__experimentalDefaultControls"]),g="web"===u.Platform.OS&&!m?.color?.gradient&&(o?.color?.text||o?.color?.link)&&!1!==(0,c.getBlockSupport)(t,[_d,"enableContrastChecker"]);return(0,s.createElement)(dd,{as:Td,panelId:e,settings:o,value:m,onChange:e=>{n(Bd(e))},defaultControls:h,enableContrastChecker:!1!==(0,c.getBlockSupport)(t,[_d,"enableContrastChecker"])},g&&(0,s.createElement)(kd,{clientId:e}))}const Pd={useBlockProps:function({name:e,backgroundColor:t,textColor:n,gradient:o,style:r}){const[l,i,s]=Ar("color.palette.custom","color.palette.theme","color.palette.default"),a=(0,u.useMemo)((()=>[...l||[],...i||[],...s||[]]),[l,i,s]);if(!yd(e)||fl(e,_d))return{};const c={};n&&!fl(e,_d,"text")&&(c.color=Wc(a,n)?.color),t&&!fl(e,_d,"background")&&(c.backgroundColor=Wc(a,t)?.color);const d=xd({style:c},e,{textColor:n,backgroundColor:t,gradient:o,style:r}),p=t||r?.color?.background||o||r?.color?.gradient;return{...d,className:ml()(d.className,!p&&ic(r))}},addSaveProps:xd,attributeKeys:["backgroundColor","textColor","gradient","style"],hasSupport:yd},Rd={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};function Nd({value:e="",onChange:t,fontFamilies:n,...o}){const[r]=Ar("typography.fontFamilies");if(n||(n=r),!n||0===n.length)return null;const l=[{value:"",label:(0,x.__)("Default")},...n.map((({fontFamily:e,name:t})=>({value:e,label:t||e})))];return(0,s.createElement)(_l.SelectControl,{label:(0,x.__)("Font"),options:l,value:e,onChange:t,labelPosition:"top",...o})}(0,m.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return yd(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),wd(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),(0,m.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,o){const r=e.name;return gl({linkColor:Ed(r),textColor:Cd(r),backgroundColor:Sd(r),gradient:wd(r)},Rd,e,t,n,o)}));const Ld=[{name:(0,x._x)("Regular","font style"),value:"normal"},{name:(0,x._x)("Italic","font style"),value:"italic"}],Ad=[{name:(0,x._x)("Thin","font weight"),value:"100"},{name:(0,x._x)("Extra Light","font weight"),value:"200"},{name:(0,x._x)("Light","font weight"),value:"300"},{name:(0,x._x)("Regular","font weight"),value:"400"},{name:(0,x._x)("Medium","font weight"),value:"500"},{name:(0,x._x)("Semi Bold","font weight"),value:"600"},{name:(0,x._x)("Bold","font weight"),value:"700"},{name:(0,x._x)("Extra Bold","font weight"),value:"800"},{name:(0,x._x)("Black","font weight"),value:"900"}],Od=(e,t)=>e?t?(0,x.__)("Appearance"):(0,x.__)("Font style"):(0,x.__)("Font weight");function Dd(e){const{onChange:t,hasFontStyles:n=!0,hasFontWeights:o=!0,value:{fontStyle:r,fontWeight:l},...i}=e,a=n||o,c=Od(n,o),d={key:"default",name:(0,x.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},p=(0,u.useMemo)((()=>n&&o?(()=>{const e=[d];return Ld.forEach((({name:t,value:n})=>{Ad.forEach((({name:o,value:r})=>{const l="normal"===n?o:(0,x.sprintf)((0,x.__)("%1$s %2$s"),o,t);e.push({key:`${n}-${r}`,name:l,style:{fontStyle:n,fontWeight:r}})}))})),e})():n?(()=>{const e=[d];return Ld.forEach((({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:n,fontWeight:void 0}})})),e})():(()=>{const e=[d];return Ad.forEach((({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:void 0,fontWeight:n}})})),e})()),[e.options]),m=p.find((e=>e.style.fontStyle===r&&e.style.fontWeight===l))||p[0];return a&&(0,s.createElement)(_l.CustomSelectControl,{...i,className:"components-font-appearance-control",label:c,describedBy:m?n?o?(0,x.sprintf)((0,x.__)("Currently selected font appearance: %s"),m.name):(0,x.sprintf)((0,x.__)("Currently selected font style: %s"),m.name):(0,x.sprintf)((0,x.__)("Currently selected font weight: %s"),m.name):(0,x.__)("No selected font appearance"),options:p,value:m,onChange:({selectedItem:e})=>t(e.style),__nextUnconstrainedWidth:!0})}const zd=1.5;const Vd=({value:e,onChange:t,__nextHasNoMarginBottom:n=!1,__unstableInputWidth:o="60px",...r})=>{const l=function(e){return void 0!==e&&""!==e}(e),i=(e,t)=>{if(l)return e;switch(`${e}`){case"0.1":return 1.6;case"0":return t?e:1.4;case"":return zd;default:return e}},a=l?e:"";n||w()("Bottom margin styles for wp.blockEditor.LineHeightControl",{since:"6.0",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version"});const c=n?void 0:{marginBottom:24};return(0,s.createElement)("div",{className:"block-editor-line-height-control",style:c},(0,s.createElement)(_l.__experimentalNumberControl,{...r,__unstableInputWidth:o,__unstableStateReducer:(e,t)=>{const n=["insertText","insertFromPaste"].includes(t.payload.event.nativeEvent?.inputType),o=i(e.value,n);return{...e,value:o}},onChange:(e,{event:n})=>{""!==e?"click"!==n.type?t(`${e}`):t(i(`${e}`,!1)):t()},label:(0,x.__)("Line height"),placeholder:zd,step:.01,spinFactor:10,value:a,min:0,spinControls:"custom"}))};function Fd({value:e,onChange:t,__unstableInputWidth:n="60px",...o}){const[r]=Ar("spacing.units"),l=(0,_l.__experimentalUseCustomUnits)({availableUnits:r||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return(0,s.createElement)(_l.__experimentalUnitControl,{...o,label:(0,x.__)("Letter spacing"),value:e,__unstableInputWidth:n,units:l,onChange:t})}const Hd=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M7 11.5h10V13H7z"})),Gd=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})),Ud=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})),$d=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),jd=[{name:(0,x.__)("None"),value:"none",icon:Hd},{name:(0,x.__)("Uppercase"),value:"uppercase",icon:Gd},{name:(0,x.__)("Lowercase"),value:"lowercase",icon:Ud},{name:(0,x.__)("Capitalize"),value:"capitalize",icon:$d}];function Wd({className:e,value:t,onChange:n}){return(0,s.createElement)("fieldset",{className:ml()("block-editor-text-transform-control",e)},(0,s.createElement)(_l.BaseControl.VisualLabel,{as:"legend"},(0,x.__)("Letter case")),(0,s.createElement)("div",{className:"block-editor-text-transform-control__buttons"},jd.map((e=>(0,s.createElement)(_l.Button,{key:e.value,icon:e.icon,label:e.name,isPressed:e.value===t,onClick:()=>{n(e.value===t?void 0:e.value)}})))))}const Kd=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})),Zd=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})),qd=[{name:(0,x.__)("None"),value:"none",icon:Hd},{name:(0,x.__)("Underline"),value:"underline",icon:Kd},{name:(0,x.__)("Strikethrough"),value:"line-through",icon:Zd}];function Yd({value:e,onChange:t,className:n}){return(0,s.createElement)("fieldset",{className:ml()("block-editor-text-decoration-control",n)},(0,s.createElement)(_l.BaseControl.VisualLabel,{as:"legend"},(0,x.__)("Decoration")),(0,s.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},qd.map((n=>(0,s.createElement)(_l.Button,{key:n.value,icon:n.icon,label:n.name,isPressed:n.value===e,onClick:()=>{t(n.value===e?void 0:n.value)}})))))}const Xd=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z"})),Qd=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M7 5.6v1.7l2.6.9v3.9L7 13v1.7L17.5 11V9.3L7 5.6zm4.2 6V8.8l4 1.4-4 1.4zm-5.7 5.6V5.5H4v14.3l3.6-2.2-.8-1.3-1.3.9z"})),Jd=[{name:(0,x.__)("Horizontal"),value:"horizontal-tb",icon:Xd},{name:(0,x.__)("Vertical"),value:(0,x.isRTL)()?"vertical-lr":"vertical-rl",icon:Qd}];function ep({className:e,value:t,onChange:n}){return(0,s.createElement)("fieldset",{className:ml()("block-editor-writing-mode-control",e)},(0,s.createElement)(_l.BaseControl.VisualLabel,{as:"legend"},(0,x.__)("Orientation")),(0,s.createElement)("div",{className:"block-editor-writing-mode-control__buttons"},Jd.map((e=>(0,s.createElement)(_l.Button,{key:e.value,icon:e.icon,label:e.name,isPressed:e.value===t,onClick:()=>{n(e.value===t?void 0:e.value)}})))))}const tp=1,np=6;function op(e){const t=lp(e),n=ip(e),o=sp(e),r=ap(e),l=cp(e),i=up(e),s=dp(e),a=pp(e),c=rp(e);return t||n||o||r||l||c||i||s||a}function rp(e){return Jn(e?.typography?.fontSizes)||e?.typography?.customFontSize}function lp(e){return Jn(e?.typography?.fontFamilies)}function ip(e){return e?.typography?.lineHeight}function sp(e){return e?.typography?.fontStyle||e?.typography?.fontWeight}function ap(e){return e?.typography?.letterSpacing}function cp(e){return e?.typography?.textTransform}function up(e){return e?.typography?.textDecoration}function dp(e){return e?.typography?.writingMode}function pp(e){return e?.typography?.textColumns}function mp({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){return(0,s.createElement)(_l.__experimentalToolsPanel,{label:(0,x.__)("Typography"),resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:Qr},r)}const hp={fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!0,textTransform:!0,textDecoration:!0,writingMode:!0,textColumns:!0};function gp({as:e=mp,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:l,defaultControls:i=hp}){var a;const c=e=>el({settings:r},"",e),d=lp(r),p=null!==(a=r?.typography?.fontFamilies)&&void 0!==a?a:{},m=p?function(e){let t=Xn.get(e);return t||(t=["default","theme","custom"].flatMap((t=>{var n;return null!==(n=e[t])&&void 0!==n?n:[]})),Xn.set(e,t)),t}(p):[],h=c(o?.typography?.fontFamily),g=e=>{const o=m?.find((({fontFamily:t})=>t===e))?.slug;n(jn(t,["typography","fontFamily"],o?`var:preset|font-family|${o}`:e||void 0))},f=rp(r),b=!r?.typography?.customFontSize,v=function(e){var t,n;const o=null!==(n=Qn(null!==(t=e?.typography?.fontSizes)&&void 0!==t?t:{}))&&void 0!==n?n:[],r=[];for(const e of o)r.some((({slug:t})=>t===e.slug))||r.push(e);return r}(r),k=c(o?.typography?.fontSize),_=(e,o)=>{n(jn(t,["typography","fontSize"],(o?.slug?`var:preset|font-size|${o?.slug}`:e)||void 0))},y=sp(r),E=function(e){return e?.typography?.fontStyle?e?.typography?.fontWeight?(0,x.__)("Appearance"):(0,x.__)("Font style"):(0,x.__)("Font weight")}(r),w=r?.typography?.fontStyle,S=r?.typography?.fontWeight,C=c(o?.typography?.fontStyle),B=c(o?.typography?.fontWeight),I=({fontStyle:e,fontWeight:o})=>{n({...t,typography:{...t?.typography,fontStyle:e||void 0,fontWeight:o||void 0}})},T=ip(r),M=c(o?.typography?.lineHeight),P=e=>{n(jn(t,["typography","lineHeight"],e||void 0))},R=ap(r),N=c(o?.typography?.letterSpacing),L=e=>{n(jn(t,["typography","letterSpacing"],e||void 0))},A=pp(r),O=c(o?.typography?.textColumns),D=e=>{n(jn(t,["typography","textColumns"],e||void 0))},z=cp(r),V=c(o?.typography?.textTransform),F=e=>{n(jn(t,["typography","textTransform"],e||void 0))},H=up(r),G=c(o?.typography?.textDecoration),U=e=>{n(jn(t,["typography","textDecoration"],e||void 0))},$=dp(r),j=c(o?.typography?.writingMode),W=e=>{n(jn(t,["typography","writingMode"],e||void 0))},K=(0,u.useCallback)((e=>({...e,typography:{}})),[]);return(0,s.createElement)(e,{resetAllFilter:K,value:t,onChange:n,panelId:l},d&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{label:(0,x.__)("Font family"),hasValue:()=>!!t?.typography?.fontFamily,onDeselect:()=>g(void 0),isShownByDefault:i.fontFamily,panelId:l},(0,s.createElement)(Nd,{fontFamilies:m,value:h,onChange:g,size:"__unstable-large",__nextHasNoMarginBottom:!0})),f&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{label:(0,x.__)("Font size"),hasValue:()=>!!t?.typography?.fontSize,onDeselect:()=>_(void 0),isShownByDefault:i.fontSize,panelId:l},(0,s.createElement)(_l.FontSizePicker,{value:k,onChange:_,fontSizes:v,disableCustomFontSizes:b,withReset:!1,withSlider:!0,size:"__unstable-large"})),y&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{className:"single-column",label:E,hasValue:()=>!!t?.typography?.fontStyle||!!t?.typography?.fontWeight,onDeselect:()=>{I({})},isShownByDefault:i.fontAppearance,panelId:l},(0,s.createElement)(Dd,{value:{fontStyle:C,fontWeight:B},onChange:I,hasFontStyles:w,hasFontWeights:S,size:"__unstable-large",__nextHasNoMarginBottom:!0})),T&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{className:"single-column",label:(0,x.__)("Line height"),hasValue:()=>void 0!==t?.typography?.lineHeight,onDeselect:()=>P(void 0),isShownByDefault:i.lineHeight,panelId:l},(0,s.createElement)(Vd,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",value:M,onChange:P,size:"__unstable-large"})),R&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{className:"single-column",label:(0,x.__)("Letter spacing"),hasValue:()=>!!t?.typography?.letterSpacing,onDeselect:()=>L(void 0),isShownByDefault:i.letterSpacing,panelId:l},(0,s.createElement)(Fd,{value:N,onChange:L,size:"__unstable-large",__unstableInputWidth:"auto"})),A&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{className:"single-column",label:(0,x.__)("Text columns"),hasValue:()=>!!t?.typography?.textColumns,onDeselect:()=>D(void 0),isShownByDefault:i.textColumns,panelId:l},(0,s.createElement)(_l.__experimentalNumberControl,{label:(0,x.__)("Text columns"),max:np,min:tp,onChange:D,size:"__unstable-large",spinControls:"custom",value:O,initialPosition:1})),H&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{className:"single-column",label:(0,x.__)("Text decoration"),hasValue:()=>!!t?.typography?.textDecoration,onDeselect:()=>U(void 0),isShownByDefault:i.textDecoration,panelId:l},(0,s.createElement)(Yd,{value:G,onChange:U,size:"__unstable-large",__unstableInputWidth:"auto"})),$&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{className:"single-column",label:(0,x.__)("Text orientation"),hasValue:()=>!!t?.typography?.writingMode,onDeselect:()=>W(void 0),isShownByDefault:i.writingMode,panelId:l},(0,s.createElement)(ep,{value:j,onChange:W,size:"__unstable-large",__nextHasNoMarginBottom:!0})),z&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{label:(0,x.__)("Letter case"),hasValue:()=>!!t?.typography?.textTransform,onDeselect:()=>F(void 0),isShownByDefault:i.textTransform,panelId:l},(0,s.createElement)(Wd,{value:V,onChange:F,showNone:!0,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})))}const fp="typography.lineHeight";const bp=window.wp.tokenList;var vp=n.n(bp);const kp="typography.__experimentalFontFamily";function _p(e,t,n){if(!(0,c.hasBlockSupport)(t,kp))return e;if(fl(t,Mp,"fontFamily"))return e;if(!n?.fontFamily)return e;const o=new(vp())(e.className),{kebabCase:r}=ie(_l.privateApis);o.add(`has-${r(n?.fontFamily)}-font-family`);const l=o.value;return e.className=l||void 0,e}const yp={useBlockProps:function({name:e,fontFamily:t}){return _p({},e,{fontFamily:t})},addSaveProps:_p,attributeKeys:["fontFamily"],hasSupport:e=>(0,c.hasBlockSupport)(e,kp)};(0,m.addFilter)("blocks.registerBlockType","core/fontFamily/addAttribute",(function(e){return(0,c.hasBlockSupport)(e,kp)?(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}}),e):e}));const Ep=(e,t,n)=>{if(t){const n=e?.find((({slug:e})=>e===t));if(n)return n}return{size:n}};function wp(e,t){const n=e?.find((({size:e})=>e===t));return n||{size:t}}function Sp(e){if(!e)return;const{kebabCase:t}=ie(_l.privateApis);return`has-${t(e)}-font-size`}const Cp="typography.fontSize";function xp(e,t,n){if(!(0,c.hasBlockSupport)(t,Cp))return e;if(fl(t,Mp,"fontSize"))return e;const o=new(vp())(e.className);o.add(Sp(n.fontSize));const r=o.value;return e.className=r||void 0,e}const Bp={useBlockProps:function({name:e,fontSize:t,style:n}){const[o,r,l]=Ar("typography.fontSizes","typography.fluid","layout");if(!(0,c.hasBlockSupport)(e,Cp)||fl(e,Mp,"fontSize")||!t&&!n?.typography?.fontSize)return;let i;if(n?.typography?.fontSize){const e=Zr({typography:{fluid:r},layout:l});i={style:{fontSize:Wr({size:n.typography.fontSize},e)}}}return t&&(i={style:{fontSize:Ep(o,t,n?.typography?.fontSize).size}}),i?xp(i,e,{fontSize:t}):void 0},addSaveProps:xp,attributeKeys:["fontSize","style"],hasSupport:e=>(0,c.hasBlockSupport)(e,Cp)},Ip={fontSize:[["fontSize"],["style","typography","fontSize"]]};function Tp(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))))}(0,m.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return(0,c.hasBlockSupport)(e,Cp)?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),(0,m.addFilter)("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",(function(e,t,n,o){const r=e.name;return gl({fontSize:(0,c.hasBlockSupport)(r,Cp)},Ip,e,t,n,o)}));const Mp="typography",Pp=[fp,Cp,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",kp,"typography.textColumns","typography.__experimentalTextDecoration","typography.__experimentalWritingMode","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing"];function Rp(e){const t={...Tp(e,["fontFamily"])},n=e?.typography?.fontSize,o=e?.typography?.fontFamily,r=n?.startsWith("var:preset|font-size|")?n.substring(21):void 0,l=o?.startsWith("var:preset|font-family|")?o.substring(23):void 0;return t.typography={...Tp(t.typography,["fontFamily"]),fontSize:r?void 0:n},{style:hl(t),fontFamily:l,fontSize:r}}function Np(e){return{...e.style,typography:{...e.style?.typography,fontFamily:e.fontFamily?"var:preset|font-family|"+e.fontFamily:void 0,fontSize:e.fontSize?"var:preset|font-size|"+e.fontSize:e.style?.typography?.fontSize}}}function Lp({children:e,resetAllFilter:t}){const n=(0,u.useCallback)((e=>{const n=Np(e),o=t(n);return{...e,...Rp(o)}}),[t]);return(0,s.createElement)(Bs,{group:"typography",resetAllFilter:n},e)}function Ap({clientId:e,name:t,setAttributes:n,settings:o}){const{style:r,fontFamily:l,fontSize:i}=(0,d.useSelect)((function(t){const{style:n,fontFamily:o,fontSize:r}=t(Nr).getBlockAttributes(e)||{};return{style:n,fontFamily:o,fontSize:r}}),[e]),a=op(o),p=(0,u.useMemo)((()=>Np({style:r,fontFamily:l,fontSize:i})),[r,i,l]);if(!a)return null;const m=(0,c.getBlockSupport)(t,[Mp,"__experimentalDefaultControls"]);return(0,s.createElement)(gp,{as:Lp,panelId:e,settings:o,value:p,onChange:e=>{n(Rp(e))},defaultControls:m})}const Op=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,s.createElement)(Z.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})),Dp={px:{max:300,steps:1},"%":{max:100,steps:1},vw:{max:100,steps:1},vh:{max:100,steps:1},em:{max:10,steps:.1},rm:{max:10,steps:.1},svw:{max:100,steps:1},lvw:{max:100,steps:1},dvw:{max:100,steps:1},svh:{max:100,steps:1},lvh:{max:100,steps:1},dvh:{max:100,steps:1},vi:{max:100,steps:1},svi:{max:100,steps:1},lvi:{max:100,steps:1},dvi:{max:100,steps:1},vb:{max:100,steps:1},svb:{max:100,steps:1},lvb:{max:100,steps:1},dvb:{max:100,steps:1},vmin:{max:100,steps:1},svmin:{max:100,steps:1},lvmin:{max:100,steps:1},dvmin:{max:100,steps:1},vmax:{max:100,steps:1},svmax:{max:100,steps:1},lvmax:{max:100,steps:1},dvmax:{max:100,steps:1}};function zp({icon:e,isMixed:t=!1,minimumCustomValue:n,onChange:o,onMouseOut:r,onMouseOver:l,showSideInLabel:i=!0,side:a,spacingSizes:c,type:m,value:h}){var g,f;h=Jl(h,c);let b=c;const v=c.length<=8,k=(0,d.useSelect)((e=>{const t=e(Nr).getSettings();return t?.disableCustomSpacingSizes})),[_,y]=(0,u.useState)(!k&&void 0!==h&&!Xl(h)),E=(0,p.usePrevious)(h);h&&E!==h&&!Xl(h)&&!0!==_&&y(!0);const[w]=Ar("spacing.units"),S=(0,_l.__experimentalUseCustomUnits)({availableUnits:w||["px","em","rem"]});let C=null;!v&&!_&&void 0!==h&&(!Xl(h)||Xl(h)&&t)?(b=[...c,{name:t?(0,x.__)("Mixed"):(0,x.sprintf)((0,x.__)("Custom (%s)"),h),slug:"custom",size:h}],C=b.length-1):t||(C=_?Ql(h,c):function(e,t){if(void 0===e)return 0;const n=0===parseFloat(e,10)?"0":ti(e),o=t.findIndex((e=>String(e.slug)===n));return-1!==o?o:NaN}(h,c));const B=(0,u.useMemo)((()=>(0,_l.__experimentalParseQuantityAndUnitFromRawValue)(C)),[C])[1]||S[0]?.value,I=parseFloat(C,10),T=(e,t)=>{const n=parseInt(e,10);if("selectList"===t){if(0===n)return;if(1===n)return"0"}else if(0===n)return"0";return`var:preset|spacing|${c[e]?.slug}`},M=t?(0,x.__)("Mixed"):null,P=b.map(((e,t)=>({key:t,name:e.name}))),R=c.map(((e,t)=>({value:t,label:void 0}))),N=Wl.includes(a)&&i?ql[a]:"",L=i?m?.toLowerCase():m,A=(0,x.sprintf)((0,x.__)("%1$s %2$s"),N,L).trim();return(0,s.createElement)(_l.__experimentalHStack,{className:"spacing-sizes-control__wrapper"},e&&(0,s.createElement)(_l.Icon,{className:"spacing-sizes-control__icon",icon:e,size:24}),_&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.__experimentalUnitControl,{onMouseOver:l,onMouseOut:r,onFocus:l,onBlur:r,onChange:e=>o((e=>isNaN(parseFloat(e))?void 0:e)(e)),value:C,units:S,min:n,placeholder:M,disableUnits:t,label:A,hideLabelFromVision:!0,className:"spacing-sizes-control__custom-value-input",size:"__unstable-large"}),(0,s.createElement)(_l.RangeControl,{onMouseOver:l,onMouseOut:r,onFocus:l,onBlur:r,value:I,min:0,max:null!==(g=Dp[B]?.max)&&void 0!==g?g:10,step:null!==(f=Dp[B]?.steps)&&void 0!==f?f:.1,withInputField:!1,onChange:e=>{o([e,B].join(""))},className:"spacing-sizes-control__custom-value-range",__nextHasNoMarginBottom:!0})),v&&!_&&(0,s.createElement)(_l.RangeControl,{onMouseOver:l,onMouseOut:r,className:"spacing-sizes-control__range-control",value:C,onChange:e=>o(T(e)),onMouseDown:e=>{e?.nativeEvent?.offsetX<35&&void 0===h&&o("0")},withInputField:!1,"aria-valuenow":C,"aria-valuetext":c[C]?.name,renderTooltipContent:e=>void 0===h?void 0:c[e]?.name,min:0,max:c.length-1,marks:R,label:A,hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,onFocus:l,onBlur:r}),!v&&!_&&(0,s.createElement)(_l.CustomSelectControl,{className:"spacing-sizes-control__custom-select-control",value:P.find((e=>e.key===C))||"",onChange:e=>{o(T(e.selectedItem.key,"selectList"))},options:P,label:A,hideLabelFromVision:!0,__nextUnconstrainedWidth:!0,size:"__unstable-large",onMouseOver:l,onMouseOut:r,onFocus:l,onBlur:r}),!k&&(0,s.createElement)(_l.Button,{label:_?(0,x.__)("Use size preset"):(0,x.__)("Set custom size"),icon:Op,onClick:()=>{y(!_)},isPressed:_,size:"small",className:"spacing-sizes-control__custom-toggle",iconSize:24}))}const Vp=["vertical","horizontal"];function Fp({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,sides:r,spacingSizes:l,type:i,values:a}){const c=e=>n=>{if(!t)return;const o={...Object.keys(a).reduce(((e,t)=>(e[t]=Jl(a[t],l),e)),{})};"vertical"===e&&(o.top=n,o.bottom=n),"horizontal"===e&&(o.left=n,o.right=n),t(o)},u=r?.length?Vp.filter((e=>ni(r,e))):Vp;return(0,s.createElement)(s.Fragment,null,u.map((t=>{const r="vertical"===t?a.top:a.left;return(0,s.createElement)(zp,{key:`spacing-sizes-control-${t}`,icon:Zl[t],label:ql[t],minimumCustomValue:e,onChange:c(t),onMouseOut:n,onMouseOver:o,side:t,spacingSizes:l,type:i,value:r,withInputField:!1})})))}function Hp({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,sides:r,spacingSizes:l,type:i,values:a}){const c=r?.length?Wl.filter((e=>r.includes(e))):Wl,u=e=>n=>{const o={...Object.keys(a).reduce(((e,t)=>(e[t]=Jl(a[t],l),e)),{})};o[e]=n,t(o)};return(0,s.createElement)(s.Fragment,null,c.map((t=>(0,s.createElement)(zp,{key:`spacing-sizes-control-${t}`,icon:Zl[t],label:ql[t],minimumCustomValue:e,onChange:u(t),onMouseOut:n,onMouseOver:o,side:t,spacingSizes:l,type:i,value:a[t],withInputField:!1}))))}function Gp({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,showSideInLabel:r,side:l,spacingSizes:i,type:a,values:c}){return(0,s.createElement)(zp,{label:ql[l],minimumCustomValue:e,onChange:(u=l,e=>{const n={...Object.keys(c).reduce(((e,t)=>(e[t]=Jl(c[t],i),e)),{})};n[u]=e,t(n)}),onMouseOut:n,onMouseOver:o,showSideInLabel:r,side:l,spacingSizes:i,type:a,value:c[l],withInputField:!1});var u}const Up=(0,s.createElement)(_l.Icon,{icon:uu,size:24});function $p({label:e,onChange:t,sides:n,value:o}){if(!n||!n.length)return;const r=function(e){if(!e||!e.length)return{};const t={},n=ni(e,"horizontal"),o=ni(e,"vertical");n&&o?t.axial={label:ql.axial,icon:Zl.axial}:n?t.axial={label:ql.horizontal,icon:Zl.horizontal}:o&&(t.axial={label:ql.vertical,icon:Zl.vertical});let r=0;return Wl.forEach((n=>{e.includes(n)&&(r+=1,t[n]={label:ql[n],icon:Zl[n]})})),r>1&&(t.custom={label:ql.custom,icon:Zl.custom}),t}(n),l=r[o].icon,{custom:i,...a}=r;return(0,s.createElement)(_l.DropdownMenu,{icon:l,label:e,className:"spacing-sizes-control__dropdown",toggleProps:{isSmall:!0}},(({onClose:e})=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.MenuGroup,null,Object.entries(a).map((([n,{label:r,icon:l}])=>{const i=o===n;return(0,s.createElement)(_l.MenuItem,{key:n,icon:l,iconPosition:"left",isSelected:i,role:"menuitemradio",onClick:()=>{t(n),e()},suffix:i?Up:void 0},r)}))),!!i&&(0,s.createElement)(_l.MenuGroup,null,(0,s.createElement)(_l.MenuItem,{icon:i.icon,iconPosition:"left",isSelected:o===Yl.custom,role:"menuitemradio",onClick:()=>{t(Yl.custom),e()},suffix:o===Yl.custom?Up:void 0},i.label)))))}function jp({inputProps:e,label:t,minimumCustomValue:n=0,onChange:o,onMouseOut:r,onMouseOver:l,showSideInLabel:i=!0,sides:a=Wl,useSelect:c,values:d}){const p=function(){const e=[{name:0,slug:"0",size:0}],[t]=Ar("spacing.spacingSizes");return t&&e.push(...t),e.length>8&&e.unshift({name:(0,x.__)("Default"),slug:"default",size:void 0}),e}(),m=d||Kl,h=1===a?.length,g=a?.includes("horizontal")&&a?.includes("vertical")&&2===a?.length,[f,b]=(0,u.useState)(function(e={},t){const{top:n,right:o,bottom:r,left:l}=e,i=[n,o,r,l].filter(Boolean),s=!(n!==r||l!==o||!n&&!l),a=!i.length&&function(e=[]){const t={top:0,right:0,bottom:0,left:0};return e.forEach((e=>t[e]+=1)),(t.top+t.bottom)%2==0&&(t.left+t.right)%2==0}(t);if(ni(t)&&(s||a))return Yl.axial;if(1===i.length){let t;return Object.entries(e).some((([e,n])=>(t=e,void 0!==n))),t}return 1!==t?.length||i.length?Yl.custom:t[0]}(m,a)),v={...e,minimumCustomValue:n,onChange:e=>{const t={...d,...e};o(t)},onMouseOut:r,onMouseOver:l,sides:a,spacingSizes:p,type:t,useSelect:c,values:m},k=Wl.includes(f)&&i?ql[f]:"",_=(0,x.sprintf)((0,x.__)("%1$s %2$s"),t,k).trim(),y=(0,x.sprintf)((0,x._x)("%s options","Button label to reveal side configuration options"),t);return(0,s.createElement)("fieldset",{className:"spacing-sizes-control"},(0,s.createElement)(_l.__experimentalHStack,{className:"spacing-sizes-control__header"},(0,s.createElement)(_l.BaseControl.VisualLabel,{as:"legend",className:"spacing-sizes-control__label"},_),!h&&!g&&(0,s.createElement)($p,{label:y,onChange:b,sides:a,value:f})),(0,s.createElement)(_l.__experimentalVStack,{spacing:.5},f===Yl.axial?(0,s.createElement)(Fp,{...v}):f===Yl.custom?(0,s.createElement)(Hp,{...v}):(0,s.createElement)(Gp,{side:f,...v,showSideInLabel:i})))}const Wp={px:{max:1e3,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:50,step:.1},rem:{max:50,step:.1},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}};function Kp({label:e=(0,x.__)("Height"),onChange:t,value:n}){var o,r;const l=parseFloat(n),[i]=Ar("spacing.units"),a=(0,_l.__experimentalUseCustomUnits)({availableUnits:i||["%","px","em","rem","vh","vw"]}),c=(0,u.useMemo)((()=>(0,_l.__experimentalParseQuantityAndUnitFromRawValue)(n)),[n])[1]||a[0]?.value||"px";return(0,s.createElement)("fieldset",{className:"block-editor-height-control"},(0,s.createElement)(_l.BaseControl.VisualLabel,{as:"legend"},e),(0,s.createElement)(_l.Flex,null,(0,s.createElement)(_l.FlexItem,{isBlock:!0},(0,s.createElement)(_l.__experimentalUnitControl,{value:n,units:a,onChange:t,onUnitChange:e=>{const[o,r]=(0,_l.__experimentalParseQuantityAndUnitFromRawValue)(n);["em","rem"].includes(e)&&"px"===r?t((o/16).toFixed(2)+e):["em","rem"].includes(r)&&"px"===e?t(Math.round(16*o)+e):["%","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax"].includes(e)&&o>100&&t(100+e)},min:0,size:"__unstable-large",label:e,hideLabelFromVision:!0})),(0,s.createElement)(_l.FlexItem,{isBlock:!0},(0,s.createElement)(_l.__experimentalSpacer,{marginX:2,marginBottom:0},(0,s.createElement)(_l.RangeControl,{value:l,min:0,max:null!==(o=Wp[c]?.max)&&void 0!==o?o:100,step:null!==(r=Wp[c]?.step)&&void 0!==r?r:.1,withInputField:!1,onChange:e=>{t([e,c].join(""))},__nextHasNoMarginBottom:!0,label:e,hideLabelFromVision:!0})))))}function Zp(e,t){const{orientation:n="horizontal"}=t;return"fill"===e?(0,x.__)("Stretch to fill available space."):"fixed"===e&&"horizontal"===n?(0,x.__)("Specify a fixed width."):"fixed"===e?(0,x.__)("Specify a fixed height."):(0,x.__)("Fit contents.")}function qp({value:e={},onChange:t,parentLayout:n}){const{selfStretch:o,flexSize:r}=e;return(0,u.useEffect)((()=>{"fixed"!==o||r||t({...e,selfStretch:"fit"})}),[]),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,size:"__unstable-large",label:Yp(n),value:o||"fit",help:Zp(o,n),onChange:n=>{const o="fixed"!==n?null:r;t({...e,selfStretch:n,flexSize:o})},isBlock:!0},(0,s.createElement)(_l.__experimentalToggleGroupControlOption,{key:"fit",value:"fit",label:(0,x.__)("Fit")}),(0,s.createElement)(_l.__experimentalToggleGroupControlOption,{key:"fill",value:"fill",label:(0,x.__)("Fill")}),(0,s.createElement)(_l.__experimentalToggleGroupControlOption,{key:"fixed",value:"fixed",label:(0,x.__)("Fixed")})),"fixed"===o&&(0,s.createElement)(_l.__experimentalUnitControl,{size:"__unstable-large",onChange:n=>{t({...e,flexSize:n})},value:r}))}function Yp(e){const{orientation:t="horizontal"}=e;return"horizontal"===t?(0,x.__)("Width"):(0,x.__)("Height")}const Xp=[{label:(0,x._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},{label:(0,x._x)("Square - 1:1","Aspect ratio option for dimensions control"),value:"1"},{label:(0,x._x)("Standard - 4:3","Aspect ratio option for dimensions control"),value:"4/3"},{label:(0,x._x)("Portrait - 3:4","Aspect ratio option for dimensions control"),value:"3/4"},{label:(0,x._x)("Classic - 3:2","Aspect ratio option for dimensions control"),value:"3/2"},{label:(0,x._x)("Classic Portrait - 2:3","Aspect ratio option for dimensions control"),value:"2/3"},{label:(0,x._x)("Wide - 16:9","Aspect ratio option for dimensions control"),value:"16/9"},{label:(0,x._x)("Tall - 9:16","Aspect ratio option for dimensions control"),value:"9/16"},{label:(0,x._x)("Custom","Aspect ratio option for dimensions control"),value:"custom",disabled:!0,hidden:!0}];function Qp({panelId:e,value:t,onChange:n=(()=>{}),options:o=Xp,defaultValue:r=Xp[0].value,hasValue:l,isShownByDefault:i=!0}){const a=null!=t?t:"auto";return(0,s.createElement)(_l.__experimentalToolsPanelItem,{hasValue:l||(()=>a!==r),label:(0,x.__)("Aspect ratio"),onDeselect:()=>n(void 0),isShownByDefault:i,panelId:e},(0,s.createElement)(_l.SelectControl,{label:(0,x.__)("Aspect ratio"),value:a,options:o,onChange:n,size:"__unstable-large",__nextHasNoMarginBottom:!0}))}const Jp=["horizontal","vertical"];function em(e){const t=tm(e),n=nm(e),o=om(e),r=rm(e),l=lm(e),i=im(e),s=sm(e),a=am(e);return"web"===u.Platform.OS&&(t||n||o||r||l||i||s||a)}function tm(e){return e?.layout?.contentSize}function nm(e){return e?.layout?.wideSize}function om(e){return e?.spacing?.padding}function rm(e){return e?.spacing?.margin}function lm(e){return e?.spacing?.blockGap}function im(e){return e?.dimensions?.minHeight}function sm(e){return e?.dimensions?.aspectRatio}function am(e){var t;const{type:n="default",default:{type:o="default"}={},allowSizingOnChildren:r=!1}=null!==(t=e?.parentLayout)&&void 0!==t?t:{},l=("flex"===o||"flex"===n)&&r;return!!e?.layout&&l}function cm(e,t){if(!t||!e)return e;const n={};return t.forEach((t=>{"vertical"===t&&(n.top=e.top,n.bottom=e.bottom),"horizontal"===t&&(n.left=e.left,n.right=e.right),n[t]=e?.[t]})),n}function um(e){return e&&"string"==typeof e?{top:e,right:e,bottom:e,left:e}:e}function dm({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){return(0,s.createElement)(_l.__experimentalToolsPanel,{label:(0,x.__)("Dimensions"),resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:Qr},r)}const pm={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,aspectRatio:!0,childLayout:!0};function mm({as:e=dm,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:l,defaultControls:i=pm,onVisualize:a=(()=>{}),includeLayoutControls:c=!1}){var d,p,m,h,g,f,b,v,k;const{dimensions:_,spacing:y}=r,E=e=>e&&"object"==typeof e?Object.keys(e).reduce(((t,n)=>(t[n]=el({settings:{dimensions:_,spacing:y}},"",e[n]),t)),{}):el({settings:{dimensions:_,spacing:y}},"",e),w=function(e){var t,n;const{custom:o,theme:r,default:l}=e?.spacing?.spacingSizes||{};return(null!==(t=null!==(n=null!=o?o:r)&&void 0!==n?n:l)&&void 0!==t?t:[]).length>0}(r),S=(0,_l.__experimentalUseCustomUnits)({availableUnits:r?.spacing?.units||["%","px","em","rem","vw"]}),C=tm(r)&&c,B=E(o?.layout?.contentSize),I=e=>{n(jn(t,["layout","contentSize"],e||void 0))},T=nm(r)&&c,M=E(o?.layout?.wideSize),P=e=>{n(jn(t,["layout","wideSize"],e||void 0))},R=om(r),N=um(E(o?.spacing?.padding)),L=Array.isArray(r?.spacing?.padding)?r?.spacing?.padding:r?.spacing?.padding?.sides,A=L&&L.some((e=>Jp.includes(e))),O=e=>{const o=cm(e,L);n(jn(t,["spacing","padding"],o))},D=()=>a("padding"),z=rm(r),V=um(E(o?.spacing?.margin)),F=Array.isArray(r?.spacing?.margin)?r?.spacing?.margin:r?.spacing?.margin?.sides,H=F&&F.some((e=>Jp.includes(e))),G=e=>{const o=cm(e,F);n(jn(t,["spacing","margin"],o))},U=()=>a("margin"),$=lm(r),j=E(o?.spacing?.blockGap),W=function(e){return e&&"string"==typeof e?{top:e}:e?{...e,right:e?.left,bottom:e?.top}:e}(j),K=Array.isArray(r?.spacing?.blockGap)?r?.spacing?.blockGap:r?.spacing?.blockGap?.sides,Z=K&&K.some((e=>Jp.includes(e))),q=e=>{n(jn(t,["spacing","blockGap"],e))},Y=e=>{e||q(null),!Z&&e?.hasOwnProperty("top")?q(e.top):q({top:e?.top,left:e?.left})},X=im(r),Q=E(o?.dimensions?.minHeight),J=e=>{const o=jn(t,["dimensions","minHeight"],e);n(jn(o,["dimensions","aspectRatio"],void 0))},ee=sm(r),te=E(o?.dimensions?.aspectRatio),ne=am(r),oe=o?.layout,{orientation:re="horizontal"}=null!==(d=r?.parentLayout)&&void 0!==d?d:{},le="horizontal"===re?(0,x.__)("Width"):(0,x.__)("Height"),ie=e=>{n({...t,layout:{...t?.layout,...e}})},se=(0,u.useCallback)((e=>({...e,layout:hl({...e?.layout,contentSize:void 0,wideSize:void 0,selfStretch:void 0,flexSize:void 0}),spacing:{...e?.spacing,padding:void 0,margin:void 0,blockGap:void 0},dimensions:{...e?.dimensions,minHeight:void 0,aspectRatio:void 0}})),[]),ae=()=>a(!1);return(0,s.createElement)(e,{resetAllFilter:se,value:t,onChange:n,panelId:l},(C||T)&&(0,s.createElement)("span",{className:"span-columns"},(0,x.__)("Set the width of the main content area.")),C&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{className:"single-column",label:(0,x.__)("Content size"),hasValue:()=>!!t?.layout?.contentSize,onDeselect:()=>I(void 0),isShownByDefault:null!==(p=i.contentSize)&&void 0!==p?p:pm.contentSize,panelId:l},(0,s.createElement)(_l.__experimentalHStack,{alignment:"flex-end",justify:"flex-start"},(0,s.createElement)(_l.__experimentalUnitControl,{label:(0,x.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:B||"",onChange:e=>{I(e)},units:S}),(0,s.createElement)(_l.__experimentalView,null,(0,s.createElement)(Ti,{icon:Mi})))),T&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{className:"single-column",label:(0,x.__)("Wide size"),hasValue:()=>!!t?.layout?.wideSize,onDeselect:()=>P(void 0),isShownByDefault:null!==(m=i.wideSize)&&void 0!==m?m:pm.wideSize,panelId:l},(0,s.createElement)(_l.__experimentalHStack,{alignment:"flex-end",justify:"flex-start"},(0,s.createElement)(_l.__experimentalUnitControl,{label:(0,x.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:M||"",onChange:e=>{P(e)},units:S}),(0,s.createElement)(_l.__experimentalView,null,(0,s.createElement)(Ti,{icon:Pi})))),R&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.padding&&Object.keys(t?.spacing?.padding).length,label:(0,x.__)("Padding"),onDeselect:()=>O(void 0),isShownByDefault:null!==(h=i.padding)&&void 0!==h?h:pm.padding,className:ml()({"tools-panel-item-spacing":w}),panelId:l},!w&&(0,s.createElement)(_l.__experimentalBoxControl,{values:N,onChange:O,label:(0,x.__)("Padding"),sides:L,units:S,allowReset:!1,splitOnAxis:A,onMouseOver:D,onMouseOut:ae}),w&&(0,s.createElement)(jp,{values:N,onChange:O,label:(0,x.__)("Padding"),sides:L,units:S,allowReset:!1,onMouseOver:D,onMouseOut:ae})),z&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.margin&&Object.keys(t?.spacing?.margin).length,label:(0,x.__)("Margin"),onDeselect:()=>G(void 0),isShownByDefault:null!==(g=i.margin)&&void 0!==g?g:pm.margin,className:ml()({"tools-panel-item-spacing":w}),panelId:l},!w&&(0,s.createElement)(_l.__experimentalBoxControl,{values:V,onChange:G,label:(0,x.__)("Margin"),sides:F,units:S,allowReset:!1,splitOnAxis:H,onMouseOver:U,onMouseOut:ae}),w&&(0,s.createElement)(jp,{values:V,onChange:G,label:(0,x.__)("Margin"),sides:F,units:S,allowReset:!1,onMouseOver:U,onMouseOut:ae})),$&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.blockGap,label:(0,x.__)("Block spacing"),onDeselect:()=>q(void 0),isShownByDefault:null!==(f=i.blockGap)&&void 0!==f?f:pm.blockGap,className:ml()({"tools-panel-item-spacing":w}),panelId:l},!w&&(Z?(0,s.createElement)(_l.__experimentalBoxControl,{label:(0,x.__)("Block spacing"),min:0,onChange:Y,units:S,sides:K,values:W,allowReset:!1,splitOnAxis:Z}):(0,s.createElement)(_l.__experimentalUnitControl,{label:(0,x.__)("Block spacing"),__unstableInputWidth:"80px",min:0,onChange:q,units:S,value:j})),w&&(0,s.createElement)(jp,{label:(0,x.__)("Block spacing"),min:0,onChange:Y,showSideInLabel:!1,sides:Z?K:["top"],values:W,allowReset:!1})),X&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{hasValue:()=>!!t?.dimensions?.minHeight,label:(0,x.__)("Minimum height"),onDeselect:()=>{J(void 0)},isShownByDefault:null!==(b=i.minHeight)&&void 0!==b?b:pm.minHeight,panelId:l},(0,s.createElement)(Kp,{label:(0,x.__)("Minimum height"),value:Q,onChange:J})),ee&&(0,s.createElement)(Qp,{hasValue:()=>!!t?.dimensions?.aspectRatio,value:te,onChange:e=>{const o=jn(t,["dimensions","aspectRatio"],e);n(jn(o,["dimensions","minHeight"],void 0))},panelId:l,isShownByDefault:null!==(v=i.aspectRatio)&&void 0!==v?v:pm.aspectRatio}),ne&&(0,s.createElement)(_l.__experimentalVStack,{as:_l.__experimentalToolsPanelItem,spacing:2,hasValue:()=>!!t?.layout,label:le,onDeselect:()=>{ie({selfStretch:void 0,flexSize:void 0})},isShownByDefault:null!==(k=i.childLayout)&&void 0!==k?k:pm.childLayout,panelId:l},(0,s.createElement)(qp,{value:oe,onChange:ie,parentLayout:r?.parentLayout})))}const hm=function(e){return(0,p.useRefEffect)((t=>{if(!e)return;function n(t){const{deltaX:n,deltaY:o}=t;e.current.scrollBy(n,o)}const o={passive:!0};return t.addEventListener("wheel",n,o),()=>{t.removeEventListener("wheel",n,o)}}),[e])},gm=Number.MAX_SAFE_INTEGER;const fm=(0,u.forwardRef)((function({clientId:e,bottomClientId:t,children:n,__unstableRefreshSize:o,__unstableCoverTarget:r=!1,__unstablePopoverSlot:l,__unstableContentRef:i,shift:a=!0,...c},d){const m=bd(e),h=bd(null!=t?t:e),g=(0,p.useMergeRefs)([d,hm(i)]),[f,b]=(0,u.useReducer)((e=>(e+1)%gm),0);(0,u.useLayoutEffect)((()=>{if(!m)return;const e=new window.MutationObserver(b);return e.observe(m,{attributes:!0}),()=>{e.disconnect()}}),[m]);const v=(0,u.useMemo)((()=>f<0||!m||h!==m?{}:{position:"absolute",width:m.offsetWidth,height:m.offsetHeight}),[m,h,o,f]),k=(0,u.useMemo)((()=>{if(!(f<0||!m||t&&!h))return{getBoundingClientRect(){var e,t,n,o;const r=m.getBoundingClientRect(),l=h?.getBoundingClientRect(),i=Math.min(r.left,null!==(e=l?.left)&&void 0!==e?e:1/0),s=Math.min(r.top,null!==(t=l?.top)&&void 0!==t?t:1/0),a=Math.max(r.right,null!==(n=l.right)&&void 0!==n?n:-1/0)-i,c=Math.max(r.bottom,null!==(o=l.bottom)&&void 0!==o?o:-1/0)-s;return new window.DOMRect(i,s,a,c)},contextElement:m}}),[t,h,m,f]);return!m||t&&!h?null:(0,s.createElement)(_l.Popover,{ref:g,animate:!1,focusOnMount:!1,anchor:k,__unstableSlotName:l,inline:!l,placement:"top-start",resize:!1,flip:!1,shift:a,...c,className:ml()("block-editor-block-popover",c.className),variant:"unstyled"},r&&(0,s.createElement)("div",{style:v},n),!r&&n)}));function bm(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function vm({clientId:e,attributes:t,forceShow:n}){const o=bd(e),[r,l]=(0,u.useState)(),i=t?.style?.spacing?.margin;(0,u.useEffect)((()=>{if(!o||null===o.ownerDocument.defaultView)return;const e=bm(o,"margin-top"),t=bm(o,"margin-right"),n=bm(o,"margin-bottom"),r=bm(o,"margin-left");l({borderTopWidth:e,borderRightWidth:t,borderBottomWidth:n,borderLeftWidth:r,top:e?`-${e}`:0,right:t?`-${t}`:0,bottom:n?`-${n}`:0,left:r?`-${r}`:0})}),[o,i]);const[a,c]=(0,u.useState)(!1),d=(0,u.useRef)(i),p=(0,u.useRef)();return(0,u.useEffect)((()=>(js()(i,d.current)||n||(c(!0),d.current=i,p.current=setTimeout((()=>{c(!1)}),400)),()=>{c(!1),p.current&&window.clearTimeout(p.current)})),[i,n]),a||n?(0,s.createElement)(fm,{clientId:e,__unstableCoverTarget:!0,__unstableRefreshSize:i,__unstablePopoverSlot:"block-toolbar",shift:!1},(0,s.createElement)("div",{className:"block-editor__padding-visualizer",style:r})):null}function km(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function _m({clientId:e,value:t,forceShow:n}){const o=bd(e),[r,l]=(0,u.useState)(),i=t?.spacing?.padding;(0,u.useEffect)((()=>{o&&null!==o.ownerDocument.defaultView&&l({borderTopWidth:km(o,"padding-top"),borderRightWidth:km(o,"padding-right"),borderBottomWidth:km(o,"padding-bottom"),borderLeftWidth:km(o,"padding-left")})}),[o,i]);const[a,c]=(0,u.useState)(!1),d=(0,u.useRef)(i),p=(0,u.useRef)();return(0,u.useEffect)((()=>(js()(i,d.current)||n||(c(!0),d.current=i,p.current=setTimeout((()=>{c(!1)}),400)),()=>{c(!1),p.current&&window.clearTimeout(p.current)})),[i,n]),a||n?(0,s.createElement)(fm,{clientId:e,__unstableCoverTarget:!0,__unstableRefreshSize:i,__unstablePopoverSlot:"block-toolbar",shift:!1},(0,s.createElement)("div",{className:"block-editor__padding-visualizer",style:r})):null}const ym="dimensions",Em="spacing";function wm({children:e,resetAllFilter:t}){const n=(0,u.useCallback)((e=>{const n=e.style,o=t(n);return{...e,style:o}}),[t]);return(0,s.createElement)(Bs,{group:"dimensions",resetAllFilter:n},e)}function Sm({clientId:e,name:t,setAttributes:n,settings:o}){const r=em(o),l=(0,d.useSelect)((t=>t(Nr).getBlockAttributes(e)?.style),[e]),[i,a]=function(){const[e,t]=(0,u.useState)(!1),{hideBlockInterface:n,showBlockInterface:o}=ie((0,d.useDispatch)(Nr));return(0,u.useEffect)((()=>{e?n():o()}),[e,o,n]),[e,t]}();if(!r)return null;const p={...(0,c.getBlockSupport)(t,[ym,"__experimentalDefaultControls"]),...(0,c.getBlockSupport)(t,[Em,"__experimentalDefaultControls"])};return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(mm,{as:wm,panelId:e,settings:o,value:l,onChange:e=>{n({style:hl(e)})},defaultControls:p,onVisualize:a}),!!o?.spacing?.padding&&(0,s.createElement)(_m,{forceShow:"padding"===i,clientId:e,value:l}),!!o?.spacing?.margin&&(0,s.createElement)(vm,{forceShow:"margin"===i,clientId:e,value:l}))}function Cm(e,t="any"){if("web"!==u.Platform.OS)return!1;const n=(0,c.getBlockSupport)(e,ym);return!0===n||("any"===t?!(!n?.aspectRatio&&!n?.minHeight):!!n?.[t])}const xm={useBlockProps:function({name:e,minHeight:t,style:n}){if(!Cm(e,"aspectRatio")||fl(e,ym,"aspectRatio"))return{};const o=ml()({"has-aspect-ratio":!!n?.dimensions?.aspectRatio}),r={};n?.dimensions?.aspectRatio?r.minHeight="unset":(t||n?.dimensions?.minHeight)&&(r.aspectRatio="unset");return{className:o,style:r}},attributeKeys:["minHeight","style"],hasSupport:e=>Cm(e,"aspectRatio")};function Bm(){w()("wp.blockEditor.__experimentalUseCustomSides",{since:"6.3",version:"6.4"})}const Im=[...Pp,Iu,_d,ym,tc,Em,Tu],Tm=e=>Im.some((t=>(0,c.hasBlockSupport)(e,t)));function Mm(e={}){const t={};return(0,Ri.getCSSRules)(e).forEach((e=>{t[e.key]=e.value})),t}const Pm={[`${Iu}.__experimentalSkipSerialization`]:["border"],[`${_d}.__experimentalSkipSerialization`]:[_d],[`${Mp}.__experimentalSkipSerialization`]:[Mp],[`${ym}.__experimentalSkipSerialization`]:[ym],[`${Em}.__experimentalSkipSerialization`]:[Em],[`${Tu}.__experimentalSkipSerialization`]:[Tu]},Rm={...Pm,[`${ym}.aspectRatio`]:[`${ym}.aspectRatio`],[`${tc}`]:[tc]},Nm={[`${ym}.aspectRatio`]:!0,[`${tc}`]:!0},Lm={gradients:"gradient"};function Am(e,t,n=!1){if(!e)return e;let o=e;return n||(o=JSON.parse(JSON.stringify(e))),Array.isArray(t)||(t=[t]),t.forEach((e=>{if(Array.isArray(e)||(e=e.split(".")),e.length>1){const[t,...n]=e;Am(o[t],[n],!0)}else 1===e.length&&delete o[e[0]]})),o}function Om(e,t,n,o=Rm){if(!Tm(t))return e;let{style:r}=n;return Object.entries(o).forEach((([e,n])=>{const o=Nm[e]||(0,c.getBlockSupport)(t,e);!0===o&&(r=Am(r,n)),Array.isArray(o)&&o.forEach((e=>{const t=Lm[e]||e;r=Am(r,[[...n,t]])}))})),e.style={...Mm(r),...e.style},e}const Dm={edit:function({clientId:e,name:t,setAttributes:n,__unstableParentLayout:o}){const r={clientId:e,name:t,setAttributes:n,settings:vl(t,o)};return"default"!==ns()?null:(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Md,{...r}),(0,s.createElement)(pc,{...r}),(0,s.createElement)(Ap,{...r}),(0,s.createElement)(Ou,{...r}),(0,s.createElement)(Sm,{...r}))},hasSupport:Tm,addSaveProps:Om,attributeKeys:["style"],useBlockProps:function e({name:t,style:n}){const o=`wp-elements-${(0,p.useInstanceId)(e)}`,r=`.editor-styles-wrapper .${o}`,l=n?.elements,i=(0,u.useMemo)((()=>{if(!l)return;const e=[];return zm.forEach((({elementType:n,pseudo:o,elements:i})=>{if(fl(t,_d,n))return;const s=l?.[n];if(s){const t=tl(r,c.__EXPERIMENTAL_ELEMENTS[n]);e.push((0,Ri.compileCSS)(s,{selector:t})),o&&o.forEach((t=>{s[t]&&e.push((0,Ri.compileCSS)(s[t],{selector:tl(r,`${c.__EXPERIMENTAL_ELEMENTS[n]}${t}`)}))}))}i&&i.forEach((t=>{l[t]&&e.push((0,Ri.compileCSS)(l[t],{selector:tl(r,c.__EXPERIMENTAL_ELEMENTS[t])}))}))})),e.length>0?e.join(""):void 0}),[r,l,t]);return bl({css:i}),Om({className:o},t,{style:n},Pm)}},zm=[{elementType:"button"},{elementType:"link",pseudo:[":hover"]},{elementType:"heading",elements:["h1","h2","h3","h4","h5","h6"]}];(0,m.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Tm(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e}));(0,m.addFilter)("blocks.registerBlockType","core/settings/addAttribute",(function(e){return t=e,(0,c.hasBlockSupport)(t,"__experimentalSettings",!1)?(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}}),e):e;var t}));const Vm=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"}));const Fm=function e({id:t,colorPalette:n,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:l,value:i,onChange:a}){let c;c="unset"===i?(0,s.createElement)(_l.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):i?(0,s.createElement)(_l.DuotoneSwatch,{values:i}):(0,s.createElement)(Ti,{icon:Vm});const u=(0,x.__)("Apply duotone filter"),d=`${(0,p.useInstanceId)(e,"duotone-control",t)}__description`;return(0,s.createElement)(_l.Dropdown,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:(0,x.__)("Duotone")},renderToggle:({isOpen:e,onToggle:t})=>(0,s.createElement)(_l.ToolbarButton,{showTooltip:!0,onClick:t,"aria-haspopup":"true","aria-expanded":e,onKeyDown:n=>{e||n.keyCode!==zs.DOWN||(n.preventDefault(),t())},label:u,icon:c}),renderContent:()=>(0,s.createElement)(_l.MenuGroup,{label:(0,x.__)("Duotone")},(0,s.createElement)("p",null,(0,x.__)("Create a two-tone color effect without losing your original image.")),(0,s.createElement)(_l.DuotonePicker,{"aria-label":u,"aria-describedby":d,colorPalette:n,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:l,value:i,onChange:a}))})};function Hm(e){return`${e}{filter:none}`}function Gm(e,t){return`${e}{filter:url(#${t})}`}function Um(e,t){const n=function(e=[]){const t={r:[],g:[],b:[],a:[]};return e.forEach((e=>{const n=Vc(e).toRgb();t.r.push(n.r/255),t.g.push(n.g/255),t.b.push(n.b/255),t.a.push(n.a)})),t}(t);return`\n<svg\n\txmlns:xlink="http://www.w3.org/1999/xlink"\n\tviewBox="0 0 0 0"\n\twidth="0"\n\theight="0"\n\tfocusable="false"\n\trole="none"\n\taria-hidden="true"\n\tstyle="visibility: hidden; position: absolute; left: -9999px; overflow: hidden;"\n>\n\t<defs>\n\t\t<filter id="${e}">\n\t\t\t\x3c!--\n\t\t\t\tUse sRGB instead of linearRGB so transparency looks correct.\n\t\t\t\tUse perceptual brightness to convert to grayscale.\n\t\t\t--\x3e\n\t\t\t<feColorMatrix color-interpolation-filters="sRGB" type="matrix" values=" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "></feColorMatrix>\n\t\t\t\x3c!-- Use sRGB instead of linearRGB to be consistent with how CSS gradients work. --\x3e\n\t\t\t<feComponentTransfer color-interpolation-filters="sRGB">\n\t\t\t\t<feFuncR type="table" tableValues="${n.r.join(" ")}"></feFuncR>\n\t\t\t\t<feFuncG type="table" tableValues="${n.g.join(" ")}"></feFuncG>\n\t\t\t\t<feFuncB type="table" tableValues="${n.b.join(" ")}"></feFuncB>\n\t\t\t\t<feFuncA type="table" tableValues="${n.a.join(" ")}"></feFuncA>\n\t\t\t</feComponentTransfer>\n\t\t\t\x3c!-- Re-mask the image with the original transparency since the feColorMatrix above loses that information. --\x3e\n\t\t\t<feComposite in2="SourceGraphic" operator="in"></feComposite>\n\t\t</filter>\n\t</defs>\n</svg>`}function $m(e,t="root",n={}){if(!t)return null;const{fallback:o=!1}=n,{name:r,selectors:l,supports:i}=e,s=l&&Object.keys(l).length>0,a=Array.isArray(t)?t.join("."):t;let c=null;if(c=s&&l.root?l?.root:i?.__experimentalSelector?i.__experimentalSelector:".wp-block-"+r.replace("core/","").replace("/","-"),"root"===a)return c;const u=Array.isArray(t)?t:t.split(".");if(1===u.length){const e=o?c:null;if(s){return Wn(l,`${a}.root`,null)||Wn(l,a,null)||e}const t=Wn(i,`${a}.__experimentalSelector`,null);return t?tl(c,t):e}let d;return s&&(d=Wn(l,a,null)),d||(o?$m(e,u[0],n):null)}const jm=[];function Wm(e,{presetSetting:t,defaultSetting:n}){const o=!e?.color?.[n],r=e?.color?.[t]?.custom||jm,l=e?.color?.[t]?.theme||jm,i=e?.color?.[t]?.default||jm;return(0,u.useMemo)((()=>[...r,...l,...o?jm:i]),[o,r,l,i])}function Km(e){return Zm(e)}function Zm(e){return e.color.customDuotone||e.color.defaultDuotone||e.color.duotone.length>0}function qm({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){return(0,s.createElement)(_l.__experimentalToolsPanel,{label:(0,x._x)("Filters","Name for applying graphical effects"),resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:Qr},r)}const Ym={duotone:!0},Xm={placement:"left-start",offset:36,shift:!0,className:"block-editor-duotone-control__popover",headerTitle:(0,x.__)("Duotone")},Qm=({indicator:e,label:t})=>(0,s.createElement)(_l.__experimentalHStack,{justify:"flex-start"},(0,s.createElement)(_l.__experimentalZStack,{isLayered:!1,offset:-8},(0,s.createElement)(_l.Flex,{expanded:!1},"unset"!==e&&e?(0,s.createElement)(_l.DuotoneSwatch,{values:e}):(0,s.createElement)(_l.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}))),(0,s.createElement)(_l.FlexItem,{title:t},t));function Jm({as:e=qm,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:l,defaultControls:i=Ym}){const a=Zm(r),c=Wm(r,{presetSetting:"duotone",defaultSetting:"defaultDuotone"}),d=Wm(r,{presetSetting:"palette",defaultSetting:"defaultPalette"}),p=(m=o?.filter?.duotone,el({settings:r},"",m));var m;const h=e=>{const o=c.find((({colors:t})=>t===e)),r=o?`var:preset|duotone|${o.slug}`:e;n(jn(t,["filter","duotone"],r))},g=(0,u.useCallback)((e=>({...e,filter:{...e.filter,duotone:void 0}})),[]);return(0,s.createElement)(e,{resetAllFilter:g,value:t,onChange:n,panelId:l},a&&(0,s.createElement)(_l.__experimentalToolsPanelItem,{label:(0,x.__)("Duotone"),hasValue:()=>!!t?.filter?.duotone,onDeselect:()=>h(void 0),isShownByDefault:i.duotone,panelId:l},(0,s.createElement)(_l.Dropdown,{popoverProps:Xm,className:"block-editor-global-styles-filters-panel__dropdown",renderToggle:({onToggle:e,isOpen:t})=>{const n={onClick:e,className:ml()({"is-open":t}),"aria-expanded":t};return(0,s.createElement)(_l.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,s.createElement)(_l.Button,{...n},(0,s.createElement)(Qm,{indicator:p,label:(0,x.__)("Duotone")})))},renderContent:()=>(0,s.createElement)(_l.__experimentalDropdownContentWrapper,{paddingSize:"small"},(0,s.createElement)(_l.MenuGroup,{label:(0,x.__)("Duotone")},(0,s.createElement)("p",null,(0,x.__)("Create a two-tone color effect without losing your original image.")),(0,s.createElement)(_l.DuotonePicker,{colorPalette:d,duotonePalette:c,disableCustomColors:!0,disableCustomDuotone:!0,value:p,onChange:h})))})))}const eh=[],th=window?.navigator.userAgent&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&!window.navigator.userAgent.includes("Chromium");function nh({presetSetting:e,defaultSetting:t}){const[n,o,r,l]=Ar(t,`${e}.custom`,`${e}.theme`,`${e}.default`);return(0,u.useMemo)((()=>[...o||eh,...r||eh,...n&&l||eh]),[n,o,r,l])}function oh(e,t){if(!e)return;const n=t?.find((({slug:t})=>e===`var:preset|duotone|${t}`));return n?n.colors:void 0}Hc([Gc]);const rh={shareWithChildBlocks:!0,edit:function({style:e,setAttributes:t,name:n}){const o=e?.color?.duotone,r=vl(n),l=ns(),i=nh({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),a=nh({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),[c,u]=Ar("color.custom","color.customDuotone"),d=!c,p=!u||0===a?.length&&d;if(0===i?.length&&p)return null;if("default"!==l)return null;const m=Array.isArray(o)?o:oh(o,i);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bs,{group:"filter"},(0,s.createElement)(Jm,{value:{filter:{duotone:m}},onChange:n=>{const o={...e,color:{...n?.filter}};t({style:o})},settings:r})),(0,s.createElement)(Bl,{group:"block",__experimentalShareWithChildBlocks:!0},(0,s.createElement)(Fm,{duotonePalette:i,colorPalette:a,disableCustomDuotone:p,disableCustomColors:d,value:m,onChange:n=>{const o=function(e,t){if(!e||!Array.isArray(e))return;const n=t?.find((t=>t?.colors?.every(((t,n)=>t===e[n]))));return n?`var:preset|duotone|${n.slug}`:void 0}(n,i),r={...e,color:{...e?.color,duotone:null!=o?o:n}};t({style:r})},settings:r})))},useBlockProps:function e({name:t,style:n}){const o=(0,p.useInstanceId)(e),r=(0,u.useMemo)((()=>{const e=(0,c.getBlockType)(t);if(e){if(!(0,c.getBlockSupport)(e,"filter.duotone",!1))return null;const t=(0,c.getBlockSupport)(e,"color.__experimentalDuotone",!1);if(t){const n=$m(e);return"string"==typeof t?tl(n,t):n}return $m(e,"filter.duotone",{fallback:!0})}}),[t]),l=n?.color?.duotone,i=`wp-duotone-${o}`,s=r&&l;return lh({clientId:o,id:i,selector:r,attribute:l}),{className:s?i:""}},attributeKeys:["style"],hasSupport:e=>(0,c.hasBlockSupport)(e,"filter.duotone")};function lh({clientId:e,id:t,selector:n,attribute:o}){const r=nh({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),l=Array.isArray(o),i=l?void 0:oh(o,r),s="string"==typeof o&&i;let a=null;s?a=i:("string"==typeof o&&!s||l)&&(a=o);const c=n.split(",").map((e=>`.${t}${e.trim()}`)).join(", "),d=Array.isArray(a)||"unset"===a;bl(d?{css:"unset"!==a?Gm(c,t):Hm(c),__unstableType:"presets"}:void 0),bl(d?{assets:"unset"!==a?Um(t,a):"",__unstableType:"svgs"}:void 0);const p=bd(e);(0,u.useEffect)((()=>{if(d&&p&&th){const e=p.style.display;p.style.display="inline-block",p.offsetHeight,p.style.display=e}}),[d,p])}function ih(e){return(0,d.useSelect)((t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:o,__experimentalGetReusableBlockTitle:r}=t(Nr),{getBlockType:l,getActiveBlockVariation:i}=t(c.store),s=n(e),a=l(s);if(!a)return null;const u=o(e),d=i(s,u),p=(0,c.isReusableBlock)(a),m=(p?r(u.ref):void 0)||a.title,h=p||(0,c.isTemplatePart)(a),g=function(e){const t=e?.style?.position?.type;return"sticky"===t?(0,x.__)("Sticky"):"fixed"===t?(0,x.__)("Fixed"):null}(u),f={isSynced:h,title:m,icon:a.icon,description:a.description,anchor:u?.anchor,positionLabel:g,positionType:u?.style?.position?.type,name:u?.metadata?.name};return d?{isSynced:h,title:d.title||a.title,icon:d.icon||a.icon,description:d.description||a.description,anchor:u?.anchor,positionLabel:g,positionType:u?.style?.position?.type,name:u?.metadata?.name}:f}),[e])}(0,m.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return(0,c.hasBlockSupport)(e,"filter.duotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e}));const{CustomSelectControl:sh}=ie(_l.privateApis),ah="position",ch="block-editor-hooks__position-selection__select-control__option",uh={key:"default",value:"",name:(0,x.__)("Default"),className:ch},dh={key:"sticky",value:"sticky",name:(0,x._x)("Sticky","Name for the value of the CSS position property"),className:ch,__experimentalHint:(0,x.__)("The block will stick to the top of the window instead of scrolling.")},ph={key:"fixed",value:"fixed",name:(0,x._x)("Fixed","Name for the value of the CSS position property"),className:ch,__experimentalHint:(0,x.__)("The block will not move when the page is scrolled.")},mh=["top","right","bottom","left"],hh=["sticky","fixed"];function gh(e){const t=e.style?.position?.type;return"sticky"===t||"fixed"===t}function fh({name:e}={}){const[t,n]=Ar("position.fixed","position.sticky"),o=!t&&!n;return r=e,!(0,c.getBlockSupport)(r,ah)||o;var r}function bh({style:e={},clientId:t,name:n,setAttributes:o}){const r=function(e){const t=(0,c.getBlockSupport)(e,ah);return!(!0!==t&&!t?.fixed)}(n),l=function(e){const t=(0,c.getBlockSupport)(e,ah);return!(!0!==t&&!t?.sticky)}(n),i=e?.position?.type,{firstParentClientId:a}=(0,d.useSelect)((e=>{const{getBlockParents:n}=e(Nr),o=n(t);return{firstParentClientId:o[o.length-1]}}),[t]),p=ih(a),m=l&&i===dh.value&&p?(0,x.sprintf)((0,x.__)("The block will stick to the scrollable area of the parent %s block."),p.title):null,h=(0,u.useMemo)((()=>{const e=[uh];return(l||i===dh.value)&&e.push(dh),(r||i===ph.value)&&e.push(ph),e}),[r,l,i]),g=i&&h.find((e=>e.value===i))||uh;return u.Platform.select({web:h.length>1?(0,s.createElement)(Bs,{group:"position"},(0,s.createElement)(_l.BaseControl,{className:"block-editor-hooks__position-selection",__nextHasNoMarginBottom:!0,help:m},(0,s.createElement)(sh,{__nextUnconstrainedWidth:!0,__next40pxDefaultSize:!0,className:"block-editor-hooks__position-selection__select-control",label:(0,x.__)("Position"),hideLabelFromVision:!0,describedBy:(0,x.sprintf)((0,x.__)("Currently selected position: %s"),g.name),options:h,value:g,__experimentalShowSelectedHint:!0,onChange:({selectedItem:t})=>{(t=>{const n={...e,position:{...e?.position,type:t,top:"sticky"===t||"fixed"===t?"0px":void 0}};o({style:hl(n)})})(t.value)},size:"__unstable-large"}))):null,native:null})}const vh={edit:function(e){return fh(e)?null:(0,s.createElement)(bh,{...e})},useBlockProps:function e({name:t,style:n}){const o=(0,c.hasBlockSupport)(t,ah),r=fh({name:t}),l=o&&!r,i=(0,p.useInstanceId)(e),s=`.wp-container-${i}.wp-container-${i}`;let a;l&&(a=function({selector:e,style:t}){let n="";const{type:o}=t?.position||{};return hh.includes(o)?(n+=`${e} {`,n+=`position: ${o};`,mh.forEach((e=>{void 0!==t?.position?.[e]&&(n+=`${e}: ${t.position[e]};`)})),"sticky"!==o&&"fixed"!==o||(n+="z-index: 10"),n+="}",n):n}({selector:s,style:n})||"");const u=ml()({[`wp-container-${i}`]:l&&!!a,[`is-position-${n?.position?.type}`]:l&&!!a&&!!n?.position?.type});return bl({css:a}),{className:u}},attributeKeys:["style"],hasSupport:e=>(0,c.hasBlockSupport)(e,ah)};const kh="layout";function _h(e){return(0,c.hasBlockSupport)(e,"layout")||(0,c.hasBlockSupport)(e,"__experimentalLayout")}function yh(e={},t=""){const{kebabCase:n}=ie(_l.privateApis),o=(0,d.useSelect)((e=>{const{getSettings:t}=e(Nr);return t().__experimentalFeatures?.useRootPaddingAwareAlignments}),[]),{layout:r}=e,{default:l}=(0,c.getBlockSupport)(t,kh)||{},i=r?.inherit||r?.contentSize||r?.wideSize?{...r,type:"constrained"}:r||l||{},s=[];if(Al[i?.type||"default"]?.className){const e=Al[i?.type||"default"]?.className,n=t.split("/"),o=`wp-block-${"core"===n[0]?n.pop():n.join("-")}-${e}`;s.push(e,o)}return(i?.inherit||i?.contentSize||"constrained"===i?.type)&&o&&s.push("has-global-padding"),i?.orientation&&s.push(`is-${n(i.orientation)}`),i?.justifyContent&&s.push(`is-content-justification-${n(i.justifyContent)}`),i?.flexWrap&&"nowrap"===i.flexWrap&&s.push("is-nowrap"),s}const Eh={shareWithChildBlocks:!0,edit:function({layout:e,setAttributes:t,name:n}){const o=vl(n),{layout:r}=o,[l]=Ar("layout"),{themeSupportsLayout:i}=(0,d.useSelect)((e=>{const{getSettings:t}=e(Nr);return{themeSupportsLayout:t().supportsLayout}}),[]);if("default"!==ns())return null;const a=(0,c.getBlockSupport)(n,kh,{}),u={...r,...a},{allowSwitching:p,allowEditing:m=!0,allowInheriting:h=!0,default:g}=u;if(!m)return null;const f=!(!h||!l||e?.type&&"default"!==e?.type&&"constrained"!==e?.type&&!e?.inherit),b=e||g||{},{inherit:v=!1,type:k="default",contentSize:_=null}=b;if(("default"===k||"constrained"===k)&&!i)return null;const y=Vi(k),E=Vi("constrained"),w=!b.type&&(_||v),S=!!v||!!_,C=e=>t({layout:e});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bs,null,(0,s.createElement)(_l.PanelBody,{title:(0,x.__)("Layout")},f&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__toggle-control",label:(0,x.__)("Inner blocks use content width"),checked:"constrained"===y?.name||S,onChange:()=>t({layout:{type:"constrained"===y?.name||S?"default":"constrained"}}),help:"constrained"===y?.name||S?(0,x.__)("Nested blocks use content width with options for full and wide widths."):(0,x.__)("Nested blocks will fill the width of this container. Toggle to constrain.")})),!v&&p&&(0,s.createElement)(wh,{type:k,onChange:e=>t({layout:{type:e}})}),y&&"default"!==y.name&&(0,s.createElement)(y.inspectorControls,{layout:b,onChange:C,layoutBlockSupport:u}),E&&w&&(0,s.createElement)(E.inspectorControls,{layout:b,onChange:C,layoutBlockSupport:u}))),!v&&y&&(0,s.createElement)(y.toolBarControls,{layout:b,onChange:C,layoutBlockSupport:a}))},attributeKeys:["layout"],hasSupport:e=>_h(e)};function wh({type:e,onChange:t}){return(0,s.createElement)(_l.ButtonGroup,null,zi.map((({name:n,label:o})=>(0,s.createElement)(_l.Button,{key:n,isPressed:e===n,onClick:()=>t(n)},o))))}function Sh({block:e,props:t,layoutClasses:n}){const{name:o,attributes:r}=t,l=(0,p.useInstanceId)(e),{layout:i}=r,{default:a}=(0,c.getBlockSupport)(o,kh)||{},u=i?.inherit||i?.contentSize||i?.wideSize?{...i,type:"constrained"}:i||a||{},{kebabCase:d}=ie(_l.privateApis),m=`wp-container-${d(o)}-is-layout-`,h=`.${m}${l}.${m}${l}`,[g]=Ar("spacing.blockGap"),f=null!==g,b=Vi(u?.type||"default"),v=b?.getLayoutStyle?.({blockName:o,selector:h,layout:u,style:r?.style,hasBlockGapSupport:f}),k=ml()({[`${m}${l}`]:!!v},n);return bl({css:v}),(0,s.createElement)(e,{...t,__unstableLayoutClassNames:k})}const Ch=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:o}=t,r=_h(t.name),l=yh(o,n);return(0,d.useSelect)((e=>!!r&&!e(Nr).getSettings().disableLayoutStyles),[r])?(0,s.createElement)(Sh,{block:e,props:t,layoutClasses:l}):(0,s.createElement)(e,{...t,__unstableLayoutClassNames:r?l:void 0})}),"withLayoutStyles");(0,m.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.layout)&&void 0!==t?t:{})||_h(e)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),(0,m.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",Ch);const xh={useBlockProps:function e({style:t}){var n;const o=(0,d.useSelect)((e=>!e(Nr).getSettings().disableLayoutStyles)),r=null!==(n=t?.layout)&&void 0!==n?n:{},{selfStretch:l,flexSize:i}=r,s=(0,p.useInstanceId)(e),a=`.wp-container-content-${s}`;let c="";if(o&&("fixed"===l&&i?c=`${a} {\n\t\t\t\tflex-basis: ${i};\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}`:"fill"===l&&(c=`${a} {\n\t\t\t\tflex-grow: 1;\n\t\t\t}`)),bl({css:c}),c)return{className:`wp-container-content-${s}`}},attributeKeys:["style"],hasSupport:()=>!0};function Bh(e){return(0,d.useSelect)((t=>{const{getBlocksByClientId:n,getSelectedBlockClientIds:o,isUngroupable:r,isGroupable:l}=t(Nr),{getGroupingBlockName:i,getBlockType:s}=t(c.store),a=e?.length?e:o(),u=n(a),[d]=u,p=1===a.length&&r(a[0]);return{clientIds:a,isGroupable:l(a),isUngroupable:p,blocksSelection:u,groupingBlockName:i(),onUngroup:p&&s(d.name)?.transforms?.ungroup}}),[e])}function Ih({clientIds:e,isGroupable:t,isUngroupable:n,onUngroup:o,blocksSelection:r,groupingBlockName:l,onClose:i=(()=>{})}){const{replaceBlocks:a}=(0,d.useDispatch)(Nr);return t||n?(0,s.createElement)(s.Fragment,null,t&&(0,s.createElement)(_l.MenuItem,{onClick:()=>{(()=>{const t=(0,c.switchToBlockType)(r,l);t&&a(e,t)})(),i()}},(0,x._x)("Group","verb")),n&&(0,s.createElement)(_l.MenuItem,{onClick:()=>{(()=>{let t=r[0].innerBlocks;t.length&&(o&&(t=o(r[0].attributes,r[0].innerBlocks)),a(e,t))})(),i()}},(0,x._x)("Ungroup","Ungrouping blocks from within a grouping block back into individual blocks within the Editor "))):null}function Th(e){return(0,d.useSelect)((t=>{const{canEditBlock:n,canMoveBlock:o,canRemoveBlock:r,canLockBlockType:l,getBlockName:i,getBlockRootClientId:s,getTemplateLock:a}=t(Nr),c=s(e),u=n(e),d=o(e,c),p=r(e,c);return{canEdit:u,canMove:d,canRemove:p,canLock:l(i(e)),isContentLocked:"contentOnly"===a(e),isLocked:!u||!d||!p}}),[e])}const Mh=(0,s.createElement)(Z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(Z.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"})),Ph=(0,s.createElement)(Z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(Z.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"})),Rh=(0,s.createElement)(Z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(Z.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"})),Nh=["core/block","core/navigation"];function Lh(e){return e.remove&&e.move?"all":!(!e.remove||e.move)&&"insert"}function Ah({clientId:e,onClose:t}){const[n,o]=(0,u.useState)({move:!1,remove:!1}),{canEdit:r,canMove:l,canRemove:i}=Th(e),{allowsEditLocking:a,templateLock:m,hasTemplateLock:h}=(0,d.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:o}=t(Nr),r=n(e),l=(0,c.getBlockType)(r);return{allowsEditLocking:Nh.includes(r),templateLock:o(e)?.templateLock,hasTemplateLock:!!l?.attributes?.templateLock}}),[e]),[g,f]=(0,u.useState)(!!m),{updateBlockAttributes:b}=(0,d.useDispatch)(Nr),v=ih(e),k=(0,p.useInstanceId)(Ah,"block-editor-block-lock-modal__options-title");(0,u.useEffect)((()=>{o({move:!l,remove:!i,...a?{edit:!r}:{}})}),[r,l,i,a]);const _=Object.values(n).every(Boolean),y=Object.values(n).some(Boolean)&&!_;return(0,s.createElement)(_l.Modal,{title:(0,x.sprintf)((0,x.__)("Lock %s"),v.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t},(0,s.createElement)("p",null,(0,x.__)("Choose specific attributes to restrict or lock all available options.")),(0,s.createElement)("form",{onSubmit:o=>{o.preventDefault(),b([e],{lock:n,templateLock:g?Lh(n):void 0}),t()}},(0,s.createElement)("div",{role:"group","aria-labelledby":k,className:"block-editor-block-lock-modal__options"},(0,s.createElement)(_l.CheckboxControl,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__options-title",label:(0,s.createElement)("span",{id:k},(0,x.__)("Lock all")),checked:_,indeterminate:y,onChange:e=>o({move:e,remove:e,...a?{edit:e}:{}})}),(0,s.createElement)("ul",{className:"block-editor-block-lock-modal__checklist"},a&&(0,s.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,s.createElement)(_l.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,x.__)("Restrict editing"),checked:!!n.edit,onChange:e=>o((t=>({...t,edit:e})))}),(0,s.createElement)(_l.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.edit?Rh:Mh})),(0,s.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,s.createElement)(_l.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,x.__)("Disable movement"),checked:n.move,onChange:e=>o((t=>({...t,move:e})))}),(0,s.createElement)(_l.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.move?Rh:Mh})),(0,s.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,s.createElement)(_l.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,x.__)("Prevent removal"),checked:n.remove,onChange:e=>o((t=>({...t,remove:e})))}),(0,s.createElement)(_l.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.remove?Rh:Mh}))),h&&(0,s.createElement)(_l.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__template-lock",label:(0,x.__)("Apply to all blocks inside"),checked:g,disabled:n.move&&!n.remove,onChange:()=>f(!g)})),(0,s.createElement)(_l.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1},(0,s.createElement)(_l.FlexItem,null,(0,s.createElement)(_l.Button,{variant:"tertiary",onClick:t},(0,x.__)("Cancel"))),(0,s.createElement)(_l.FlexItem,null,(0,s.createElement)(_l.Button,{variant:"primary",type:"submit"},(0,x.__)("Apply"))))))}function Oh({clientId:e}){const{canLock:t,isLocked:n}=Th(e),[o,r]=(0,u.useReducer)((e=>!e),!1);if(!t)return null;const l=n?(0,x.__)("Unlock"):(0,x.__)("Lock");return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.MenuItem,{icon:n?Mh:Ph,onClick:r,"aria-expanded":o,"aria-haspopup":"dialog"},l),o&&(0,s.createElement)(Ah,{clientId:e,onClose:r}))}const Dh=()=>{};const zh=(0,p.compose)([(0,d.withSelect)(((e,{clientId:t})=>{const{getBlock:n,getBlockMode:o,getSettings:r}=e(Nr),l=n(t),i=r().codeEditingEnabled;return{mode:o(t),blockType:l?(0,c.getBlockType)(l.name):null,isCodeEditingEnabled:i}})),(0,d.withDispatch)(((e,{onToggle:t=Dh,clientId:n})=>({onToggleMode(){e(Nr).toggleBlockMode(n),t()}})))])((function({blockType:e,mode:t,onToggleMode:n,small:o=!1,isCodeEditingEnabled:r=!0}){if(!e||!(0,c.hasBlockSupport)(e,"html",!0)||!r)return null;const l="visual"===t?(0,x.__)("Edit as HTML"):(0,x.__)("Edit visually");return(0,s.createElement)(_l.MenuItem,{onClick:n},!o&&l)}));function Vh(e){return 0===e?.trim()?.length}function Fh({blockName:e,originalBlockName:t,onClose:n,onSave:o}){const[r,l]=(0,u.useState)(e),i=r!==e,a=r===t,c=Vh(r),d=i||a,m=(0,p.useInstanceId)(Fh,"block-editor-rename-modal__description");return(0,s.createElement)(_l.Modal,{title:(0,x.__)("Rename"),onRequestClose:n,overlayClassName:"block-editor-block-rename-modal",aria:{describedby:m},focusOnMount:"firstContentElement"},(0,s.createElement)("p",{id:m},(0,x.__)("Enter a custom name for this block.")),(0,s.createElement)("form",{onSubmit:e=>{e.preventDefault(),d&&(()=>{const e=a||c?(0,x.sprintf)((0,x.__)('Block name reset to: "%s".'),r):(0,x.sprintf)((0,x.__)('Block name changed to: "%s".'),r);(0,vo.speak)(e,"assertive"),o(r),n()})()}},(0,s.createElement)(_l.__experimentalVStack,{spacing:"3"},(0,s.createElement)(_l.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:r,label:(0,x.__)("Block name"),hideLabelFromVision:!0,placeholder:t,onChange:l,onFocus:e=>e.target.select()}),(0,s.createElement)(_l.__experimentalHStack,{justify:"right"},(0,s.createElement)(_l.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:n},(0,x.__)("Cancel")),(0,s.createElement)(_l.Button,{__next40pxDefaultSize:!0,"aria-disabled":!d,variant:"primary",type:"submit"},(0,x.__)("Save"))))))}function Hh({clientId:e}){const[t,n]=(0,u.useState)(!1),{metadata:o}=(0,d.useSelect)((t=>{const{getBlockAttributes:n}=t(Nr),o=n(e)?.metadata;return{metadata:o}}),[e]),{updateBlockAttributes:r}=(0,d.useDispatch)(Nr),l=o?.name;const i=ih(e);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.MenuItem,{onClick:()=>{n(!0)},"aria-expanded":t,"aria-haspopup":"dialog"},(0,x.__)("Rename")),t&&(0,s.createElement)(Fh,{blockName:l||"",originalBlockName:i?.title,onClose:()=>n(!1),onSave:t=>{(t===i?.title||Vh(t))&&(t=void 0),function(t){r([e],{metadata:{...o&&o,name:t}})}(t)}}))}const{Fill:Gh,Slot:Uh}=(0,_l.createSlotFill)("BlockSettingsMenuControls");function $h({...e}){return(0,s.createElement)(_l.__experimentalStyleProvider,{document},(0,s.createElement)(Gh,{...e}))}$h.Slot=({fillProps:e,clientIds:t=null,__unstableDisplayLocation:n})=>{const{selectedBlocks:o,selectedClientIds:r}=(0,d.useSelect)((e=>{const{getBlockNamesByClientId:n,getSelectedBlockClientIds:o}=e(Nr),r=null!==t?t:o();return{selectedBlocks:n(r),selectedClientIds:r}}),[t]),{canLock:l}=Th(r[0]),{canRename:i}=(a=o[0],{canRename:(0,c.getBlockSupport)(a,"renaming",!0)});var a;const u=1===r.length&&l,m=1===r.length&&i,h=Bh(r),{isGroupable:g,isUngroupable:f}=h,b=g||f;return(0,s.createElement)(Uh,{fillProps:{...e,__unstableDisplayLocation:n,selectedBlocks:o,selectedClientIds:r}},(t=>!t?.length>0&&!b&&!u?null:(0,s.createElement)(_l.MenuGroup,null,b&&(0,s.createElement)(Ih,{...h,onClose:e?.onClose}),u&&(0,s.createElement)(Oh,{clientId:r[0]}),m&&(0,s.createElement)(Hh,{clientId:r[0]}),t,e?.canMove&&!e?.onlyBlock&&(0,s.createElement)(_l.MenuItem,{onClick:(0,p.pipe)(e?.onClose,e?.onMoveTo)},(0,x.__)("Move to")),1===e?.count&&(0,s.createElement)(zh,{clientId:e?.firstBlockClientId,onToggle:e?.onClose}))))};const jh=$h;const Wh={edit:function({clientId:e,isSelected:t}){const{getBlockListSettings:n,getSettings:o}=(0,d.useSelect)(Nr),{templateLock:r,isLockedByParent:l,isEditingAsBlocks:i}=(0,d.useSelect)((t=>{const{__unstableGetContentLockingParent:n,getTemplateLock:o,__unstableGetTemporarilyEditingAsBlocks:r}=t(Nr);return{templateLock:o(e),isLockedByParent:!!n(e),isEditingAsBlocks:r()===e}}),[e]),{updateSettings:a,updateBlockListSettings:c,__unstableSetTemporarilyEditingAsBlocks:p}=(0,d.useDispatch)(Nr),{stopEditingAsBlocks:m}=ie((0,d.useDispatch)(Nr)),h=!l&&"contentOnly"===r,{__unstableMarkNextChangeAsNotPersistent:g,updateBlockAttributes:f}=(0,d.useDispatch)(Nr),b=(0,u.useCallback)((()=>{m(e)}),[e,m]);if(!h&&!i)return null;const v=i&&!h,k=!i&&h&&t;return(0,s.createElement)(s.Fragment,null,v&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bl,{group:"other"},(0,s.createElement)(_l.ToolbarButton,{onClick:b},(0,x.__)("Done")))),k&&(0,s.createElement)(jh,null,(({onClose:t})=>(0,s.createElement)(_l.MenuItem,{onClick:()=>{g(),f(e,{templateLock:void 0}),c(e,{...n(e),templateLock:!1});const r=o().focusMode;a({focusMode:!0}),p(e,r),t()}},(0,x.__)("Modify")))))},hasSupport:()=>!0},Kh="metadata";(0,m.addFilter)("blocks.registerBlockType","core/metadata/addMetaAttribute",(function(e){return e?.attributes?.[Kh]?.type||(e.attributes={...e.attributes,[Kh]:{type:"object"}}),e}));const Zh=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.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"}));const qh=(0,u.memo)((function({icon:e,showColors:t=!1,className:n,context:o}){"block-default"===e?.src&&(e={src:Zh});const r=(0,s.createElement)(_l.Icon,{icon:e&&e.src?e.src:e,context:o}),l=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return(0,s.createElement)("span",{style:l,className:ml()("block-editor-block-icon",n,{"has-colors":t})},r)})),Yh={};const Xh={edit:function({name:e,clientId:t,metadata:{ignoredHookedBlocks:n=[]}={}}){const o=(0,d.useSelect)((e=>e(c.store).getBlockTypes()),[]),r=(0,u.useMemo)((()=>o?.filter((({name:t,blockHooks:o})=>o&&e in o||n.includes(t)))),[o,e,n]),{blockIndex:l,rootClientId:i,innerBlocksLength:a}=(0,d.useSelect)((e=>{const{getBlocks:n,getBlockIndex:o,getBlockRootClientId:r}=e(Nr);return{blockIndex:o(t),innerBlocksLength:n(t)?.length,rootClientId:r(t)}}),[t]),p=(0,d.useSelect)((n=>{const{getBlocks:o,getGlobalBlockCount:l}=n(Nr),s=r.reduce(((n,r)=>{if(0===l(r.name))return n;const s=r?.blockHooks?.[e];let a;switch(s){case"before":case"after":a=o(i);break;case"first_child":case"last_child":a=o(t);break;case void 0:a=[...o(i),...o(t)]}const c=a?.find((e=>e.name===r.name));return c?{...n,[r.name]:c.clientId}:n}),{});return Object.values(s).length>0?s:Yh}),[r,e,t,i]),{insertBlock:m,removeBlock:h}=(0,d.useDispatch)(Nr);if(!r.length)return null;const g=r.reduce(((e,t)=>{const[n]=t.name.split("/");return e[n]||(e[n]=[]),e[n].push(t),e}),{});return(0,s.createElement)(Bs,null,(0,s.createElement)(_l.PanelBody,{className:"block-editor-hooks__block-hooks",title:(0,x.__)("Plugins"),initialOpen:!0},(0,s.createElement)("p",{className:"block-editor-hooks__block-hooks-helptext"},(0,x.__)("Manage the inclusion of blocks added automatically by plugins.")),Object.keys(g).map((n=>(0,s.createElement)(u.Fragment,{key:n},(0,s.createElement)("h3",null,n),g[n].map((n=>{const o=n.name in p;return(0,s.createElement)(_l.ToggleControl,{checked:o,key:n.title,label:(0,s.createElement)(_l.__experimentalHStack,{justify:"flex-start"},(0,s.createElement)(qh,{icon:n.icon}),(0,s.createElement)("span",null,n.title)),onChange:()=>{if(o)h(p[n.name],!1);else{const o=n.blockHooks[e];((e,n)=>{switch(n){case"before":case"after":m(e,"after"===n?l+1:l,i,!1);break;case"first_child":case"last_child":m(e,"first_child"===n?0:a,t,!1);break;case void 0:m(e,l+1,i,!1)}})((0,c.createBlock)(n.name),o)}}})})))))))},attributeKeys:["metadata"],hasSupport:()=>!0};const Qh={edit:function({metadata:e,setAttributes:t}){return(0,s.createElement)(Bs,{group:"advanced"},(0,s.createElement)(_l.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,x.__)("Block name"),value:e?.name||"",onChange:n=>{t({metadata:{...e,name:n}})}}))},attributeKeys:["metadata"],hasSupport:e=>(0,c.hasBlockSupport)(e,"renaming",!0)};(0,m.addFilter)("blocks.registerBlockType","core/metadata/addLabelCallback",(function(e){return e.__experimentalLabel||(0,c.hasBlockSupport)(e,"renaming",!0)&&(e.__experimentalLabel=(e,{context:t})=>{const{metadata:n}=e;if("list-view"===t&&n?.name)return n.name}),e}));const Jh={"core/paragraph":["content"],"core/heading":["content"],"core/image":["url","title","alt"],"core/button":["url","text","linkTarget"]};function eg(e){return e in Jh}const tg=({args:e,attrName:t,blockProps:n,source:o,onPropValueChange:r})=>{const{placeholder:l,value:i}=o.useSource(n,e),{name:s}=n,a=n.attributes[t],d=(0,u.useCallback)(((e,n)=>{if(n instanceof Y.RichTextData){if(n.toHTMLString()===e)return;e=Y.RichTextData.fromHTMLString(e)}n!==e&&r({[t]:e})}),[t,r]);return(0,u.useLayoutEffect)((()=>{if(void 0!==i)d(i,a);else if(l){const e=(0,c.getBlockType)(s).attributes[t].attribute;if("src"===e||"href"===e)return void d(null);d(l)}}),[d,i,a,l,s,t]),null};function ng({blockProps:e,bindings:t,onPropValueChange:n}){const o=ie((0,d.useSelect)(c.store)).getAllBlockBindingsSources();return(0,s.createElement)(s.Fragment,null,Object.entries(t).map((([t,r])=>{const l=o[r.source];return l?.useSource?(0,s.createElement)(tg,{key:t,attrName:t,source:l,blockProps:e,args:r.args,onPropValueChange:n}):null})))}const og=(0,p.createHigherOrderComponent)((e=>t=>{const[n,o]=(0,u.useState)({}),r=(0,u.useCallback)((e=>o((t=>({...t,...e})))),[]),l=Object.fromEntries(Object.entries(t.attributes.metadata?.bindings||{}).filter((([e])=>{return n=t.name,o=e,eg(n)&&Jh[n].includes(o);var n,o})));return(0,s.createElement)(s.Fragment,null,Object.keys(l).length>0&&(0,s.createElement)(ng,{blockProps:t,bindings:l,onPropValueChange:r}),(0,s.createElement)(e,{...t,attributes:{...t.attributes,...n}}))}),"withBlockBindingSupport");function rg(e){const t=e.style?.border||{};return{className:Fu(e)||void 0,style:Mm({border:t})}}function lg(e){const{colors:t}=qc(),n=rg(e),{borderColor:o}=e;if(o){const e=Pu({colors:t,namedColor:o});n.style.borderColor=e.color}return n}function ig(e){return{style:Mm({shadow:e.style?.shadow||""})}}function sg(e){const{backgroundColor:t,textColor:n,gradient:o,style:r}=e,l=Zc("background-color",t),i=Zc("color",n),s=Gu(o),a=s||r?.color?.gradient;return{className:ml()(i,s,{[l]:!a&&!!l,"has-text-color":n||r?.color?.text,"has-background":t||r?.color?.background||o||r?.color?.gradient,"has-link-color":r?.elements?.link?.color})||void 0,style:Mm({color:r?.color||{}})}}function ag(e){const{backgroundColor:t,textColor:n,gradient:o}=e,[r,l,i,s,a,c]=Ar("color.palette.custom","color.palette.theme","color.palette.default","color.gradients.custom","color.gradients.theme","color.gradients.default"),d=(0,u.useMemo)((()=>[...r||[],...l||[],...i||[]]),[r,l,i]),p=(0,u.useMemo)((()=>[...s||[],...a||[],...c||[]]),[s,a,c]),m=sg(e);if(t){const e=Wc(d,t);m.style.backgroundColor=e.color}if(o&&(m.style.background=Uu(p,o)),n){const e=Wc(d,n);m.style.color=e.color}return m}function cg(e){const{style:t}=e;return{style:Mm({spacing:t?.spacing||{}})}}function ug(e,t){const{kebabCase:n}=ie(_l.privateApis);let o=e?.style?.typography||{};const r=Zr(t);o={...o,fontSize:Wr({size:e?.style?.typography?.fontSize},r)};const l=Mm({typography:o}),i=e?.fontFamily?`has-${n(e.fontFamily)}-font-family`:"";return{className:ml()(i,Sp(e?.fontSize)),style:l}}function dg(e){const[t,n]=(0,u.useState)(e);return(0,u.useEffect)((()=>{e&&n(e)}),[e]),t}var pg;(0,m.addFilter)("blocks.registerBlockType","core/editor/custom-sources-backwards-compatibility/shim-attribute-source",(function(e,t){return eg(t)?{...e,edit:og(e.edit)}:e})),function(e){e=e.map((e=>({...e,Edit:(0,u.memo)(e.edit)})));const t=(0,p.createHigherOrderComponent)((t=>n=>{const o=y();return[...e.map(((e,t)=>{const{Edit:r,hasSupport:l,attributeKeys:i=[],shareWithChildBlocks:a}=e;if(!(o[h]||o[g]&&a)||!l(n.name))return null;const c={};for(const e of i)n.attributes[e]&&(c[e]=n.attributes[e]);return(0,s.createElement)(r,{key:t,name:n.name,isSelected:n.isSelected,clientId:n.clientId,setAttributes:n.setAttributes,__unstableParentLayout:n.__unstableParentLayout,...c})})),(0,s.createElement)(t,{key:"edit",...n})]}),"withBlockEditHooks");(0,m.addFilter)("editor.BlockEdit","core/editor/hooks",t)}([is,Ms,Ns,Dm,rh,vh,Eh,Wh,Xh,Qh].filter(Boolean)),function(e){const t=(0,p.createHigherOrderComponent)((t=>n=>{const[o,r]=(0,u.useState)(Array(e.length).fill(void 0));return[...e.map(((e,t)=>{const{hasSupport:o,attributeKeys:l=[],useBlockProps:i}=e,a={};for(const e of l)n.attributes[e]&&(a[e]=n.attributes[e]);return Object.keys(a).length&&o(n.name)?(0,s.createElement)(kl,{key:t,index:t,useBlockProps:i,setAllWrapperProps:r,name:n.name,...a}):null})),(0,s.createElement)(t,{key:"edit",...n,wrapperProps:o.filter(Boolean).reduce(((e,t)=>({...e,...t,className:ml()(e.className,t.className),style:{...e.style,...t.style}})),n.wrapperProps||{})})]}),"withBlockListBlockHooks");(0,m.addFilter)("editor.BlockListBlock","core/editor/hooks",t)}([is,Dm,Pd,xm,rh,yp,Bp,Hu,vh,xh]),pg=[is,Ms,Rs,Ns,Hu,Pd,Dm,yp,Bp],(0,m.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",(function(e,t,n){return pg.reduce(((e,o)=>{const{hasSupport:r,attributeKeys:l=[],addSaveProps:i}=o,s={};for(const e of l)n[e]&&(s[e]=n[e]);return Object.keys(s).length&&r(t)?i(e,t,s):e}),e)}),0),(0,m.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",(e=>(e.hasOwnProperty("className")&&!e.className&&delete e.className,e)));const mg=([e,...t])=>e.toUpperCase()+t.join(""),hg=e=>(0,p.createHigherOrderComponent)((t=>n=>(0,s.createElement)(t,{...n,colors:e})),"withCustomColorPalette"),gg=()=>(0,p.createHigherOrderComponent)((e=>t=>{const[n,o,r]=Ar("color.palette.custom","color.palette.theme","color.palette.default"),l=(0,u.useMemo)((()=>[...n||[],...o||[],...r||[]]),[n,o,r]);return(0,s.createElement)(e,{...t,colors:l})}),"withEditorColorPalette");function fg(e,t){const{kebabCase:n}=ie(_l.privateApis),o=e.reduce(((e,t)=>({...e,..."string"==typeof t?{[t]:n(t)}:t})),{});return(0,p.compose)([t,e=>class extends u.Component{constructor(e){super(e),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(e){const{colors:t}=this.props;return function(e,t){const n=Vc(t),o=({color:e})=>n.contrast(e),r=Math.max(...e.map(o));return e.find((e=>o(e)===r)).color}(t,e)}createSetters(){return Object.keys(o).reduce(((e,t)=>{const n=mg(t),o=`custom${n}`;return e[`set${n}`]=this.createSetColor(t,o),e}),{})}createSetColor(e,t){return n=>{const o=Kc(this.props.colors,n);this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,colors:t},n){return Object.entries(o).reduce(((o,[r,l])=>{const i=Wc(t,e[r],e[`custom${mg(r)}`]),s=n[r],a=s?.color;return a===i.color&&s?o[r]=s:o[r]={...i,class:Zc(l,i.slug)},o}),{})}render(){return(0,s.createElement)(e,{...this.props,colors:void 0,...this.state,...this.setters,colorUtils:this.colorUtils})}}])}function bg(e){return(...t)=>{const n=hg(e);return(0,p.createHigherOrderComponent)(fg(t,n),"withCustomColors")}}function vg(...e){const t=gg();return(0,p.createHigherOrderComponent)(fg(e,t),"withColors")}const kg=function(e){const[t,n]=Ar("typography.fontSizes","typography.customFontSize");return(0,s.createElement)(_l.FontSizePicker,{...e,fontSizes:t,disableCustomFontSizes:!n})},_g=[],yg=([e,...t])=>e.toUpperCase()+t.join(""),Eg=(...e)=>{const t=e.reduce(((e,t)=>(e[t]=`custom${yg(t)}`,e)),{});return(0,p.createHigherOrderComponent)((0,p.compose)([(0,p.createHigherOrderComponent)((e=>t=>{const[n]=Ar("typography.fontSizes");return(0,s.createElement)(e,{...t,fontSizes:n||_g})}),"withFontSizes"),e=>class extends u.Component{constructor(e){super(e),this.setters=this.createSetters(),this.state={}}createSetters(){return Object.entries(t).reduce(((e,[t,n])=>(e[`set${yg(t)}`]=this.createSetFontSize(t,n),e)),{})}createSetFontSize(e,t){return n=>{const o=this.props.fontSizes?.find((({size:e})=>e===Number(n)));this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,fontSizes:n},o){const r=(t,n)=>!o[n]||(e[n]?e[n]!==o[n].slug:o[n].size!==e[t]);if(!Object.values(t).some(r))return null;const l=Object.entries(t).filter((([e,t])=>r(t,e))).reduce(((t,[o,r])=>{const l=e[o],i=Ep(n,l,e[r]);return t[o]={...i,class:Sp(l)},t}),{});return{...o,...l}}render(){return(0,s.createElement)(e,{...this.props,fontSizes:void 0,...this.state,...this.setters})}}]),"withFontSizes")},wg=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})),Sg=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})),Cg=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})),xg=[{icon:wg,title:(0,x.__)("Align text left"),align:"left"},{icon:Sg,title:(0,x.__)("Align text center"),align:"center"},{icon:Cg,title:(0,x.__)("Align text right"),align:"right"}],Bg={placement:"bottom-start"};const Ig=function({value:e,onChange:t,alignmentControls:n=xg,label:o=(0,x.__)("Align text"),describedBy:r=(0,x.__)("Change text alignment"),isCollapsed:l=!0,isToolbar:i}){function a(n){return()=>t(e===n?void 0:n)}const c=n.find((t=>t.align===e)),u=i?_l.ToolbarGroup:_l.ToolbarDropdownMenu,d=i?{isCollapsed:l}:{toggleProps:{describedBy:r},popoverProps:Bg};return(0,s.createElement)(u,{icon:c?c.icon:(0,x.isRTL)()?Cg:wg,label:o,controls:n.map((t=>{const{align:n}=t,o=e===n;return{...t,isActive:o,role:l?"menuitemradio":void 0,onClick:a(n)}})),...d})},Tg=e=>(0,s.createElement)(Ig,{...e,isToolbar:!1}),Mg=e=>(0,s.createElement)(Ig,{...e,isToolbar:!0});var Pg=n(9681),Rg=n.n(Pg);function Ng(e){return e.toLowerCase()}var Lg=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Ag=/[^A-Z0-9]+/gi;function Og(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}const Dg=e=>e.name||"",zg=e=>e.title,Vg=e=>e.description||"",Fg=e=>e.keywords||[],Hg=e=>e.category,Gg=()=>null;function Ug(e=""){return function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,o=void 0===n?Lg:n,r=t.stripRegexp,l=void 0===r?Ag:r,i=t.transform,s=void 0===i?Ng:i,a=t.delimiter,c=void 0===a?" ":a,u=Og(Og(e,o,"$1\0$2"),l,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(s).join(c)}(e,{splitRegexp:[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],stripRegexp:/(\p{C}|\p{P}|\p{S})+/giu}).split(" ").filter(Boolean)}function $g(e=""){return e=(e=(e=Rg()(e)).replace(/^\//,"")).toLowerCase()}const jg=(e="")=>Ug($g(e)),Wg=(e,t,n,o)=>{if(0===jg(o).length)return e;return Kg(e,o,{getCategory:e=>t.find((({slug:t})=>t===e.category))?.title,getCollection:e=>n[e.name.split("/")[0]]?.title})},Kg=(e=[],t="",n={})=>{if(0===jg(t).length)return e;const o=e.map((e=>[e,Zg(e,t,n)])).filter((([,e])=>e>0));return o.sort((([,e],[,t])=>t-e)),o.map((([e])=>e))};function Zg(e,t,n={}){const{getName:o=Dg,getTitle:r=zg,getDescription:l=Vg,getKeywords:i=Fg,getCategory:s=Hg,getCollection:a=Gg}=n,c=o(e),u=r(e),d=l(e),p=i(e),m=s(e),h=a(e),g=$g(t),f=$g(u);let b=0;if(g===f)b+=30;else if(f.startsWith(g))b+=20;else{const e=[c,u,d,...p,m,h].join(" ");0===((e,t)=>e.filter((e=>!jg(t).some((t=>t.includes(e))))))(Ug(g),e).length&&(b+=10)}if(0!==b&&c.startsWith("core/")){b+=c!==e.id?1:2}return b}const qg=(e,t)=>{const[n]=(0,d.useSelect)((t=>[t(Nr).getInserterItems(e)]),[e]),[o,r]=(0,d.useSelect)((e=>{const{getCategories:t,getCollections:n}=e(c.store);return[t(),n()]}),[]);return[n,o,r,(0,u.useCallback)((({name:e,initialAttributes:n,innerBlocks:o,syncStatus:r,content:l},i)=>{const s="unsynced"===r?(0,c.parse)(l,{__unstableSkipMigrationLogs:!0}):(0,c.createBlock)(e,n,(0,c.createBlocksFromInnerBlocksTemplate)(o));t(s,void 0,i)}),[t])]},Yg=(e,t)=>t?(e.sort((({id:e},{id:n})=>{let o=t.indexOf(e),r=t.indexOf(n);return o<0&&(o=t.length),r<0&&(r=t.length),o-r})),e):e,Xg=()=>{};const Qg={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockName:n,prioritizedBlocks:o}=(0,d.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockName:n,getBlockListSettings:o,getBlockRootClientId:r}=e(Nr),l=t(),i=r(l);return{selectedBlockName:l?n(l):null,rootClientId:i,prioritizedBlocks:o(i)?.prioritizedInserterBlocks}}),[]),[r,l,i]=qg(t,Xg),a=(0,u.useMemo)((()=>(e.trim()?Wg(r,l,i,e):Yg(ne(r,"frecency","desc"),o)).filter((e=>e.name!==n)).slice(0,9)),[e,n,r,l,i,o]);return[(0,u.useMemo)((()=>a.map((e=>{const{title:t,icon:n,isDisabled:o}=e;return{key:`block-${e.id}`,value:e,label:(0,s.createElement)(s.Fragment,null,(0,s.createElement)(qh,{key:"icon",icon:n,showColors:!0}),t),isDisabled:o}}))),[a])]},allowContext:(e,t)=>!(/\S/.test(e)||/\S/.test(t)),getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o,syncStatus:r,content:l}=e;return{action:"replace",value:"unsynced"===r?(0,c.parse)(l,{__unstableSkipMigrationLogs:!0}):(0,c.createBlock)(t,n,(0,c.createBlocksFromInnerBlocksTemplate)(o))}}},Jg=window.wp.apiFetch;var ef=n.n(Jg);const tf=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"}));const nf={name:"links",className:"block-editor-autocompleters__link",triggerPrefix:"[[",options:async e=>{let t=await ef()({path:(0,Ds.addQueryArgs)("/wp/v2/search",{per_page:10,search:e,type:"post",order_by:"menu_order"})});return t=t.filter((e=>""!==e.title)),t},getOptionKeywords:e=>[...e.title.split(/\s+/)],getOptionLabel:e=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Ti,{key:"icon",icon:"page"===e.subtype?la:tf}),e.title),getOptionCompletion:e=>(0,s.createElement)("a",{href:e.url},e.title)},of=[];function rf({completers:e=of}){const{name:t}=y();return(0,u.useMemo)((()=>{let n=[...e,nf];return(t===(0,c.getDefaultBlockName)()||(0,c.getBlockSupport)(t,"__experimentalSlashInserter",!1))&&(n=[...n,Qg]),(0,m.hasFilter)("editor.Autocomplete.completers")&&(n===e&&(n=n.map((e=>({...e})))),n=(0,m.applyFilters)("editor.Autocomplete.completers",n,t)),n}),[e,t])}const lf=function(e){return(0,s.createElement)(_l.Autocomplete,{...e,completers:rf(e)})},sf=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"}));const af=function({isActive:e,label:t=(0,x.__)("Toggle full height"),onToggle:n,isDisabled:o}){return(0,s.createElement)(_l.ToolbarButton,{isActive:e,icon:sf,label:t,onClick:()=>n(!e),disabled:o})},cf=()=>{};const uf=function(e){const{label:t=(0,x.__)("Change matrix alignment"),onChange:n=cf,value:o="center",isDisabled:r}=e,l=(0,s.createElement)(_l.__experimentalAlignmentMatrixControl.Icon,{value:o});return(0,s.createElement)(_l.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({onToggle:e,isOpen:n})=>(0,s.createElement)(_l.ToolbarButton,{onClick:e,"aria-haspopup":"true","aria-expanded":n,onKeyDown:t=>{n||t.keyCode!==zs.DOWN||(t.preventDefault(),e())},label:t,icon:l,showTooltip:!0,disabled:r}),renderContent:()=>(0,s.createElement)(_l.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:n,value:o})})};function df({clientId:e,maximumLength:t,context:n}){const o=(0,d.useSelect)((t=>{if(!e)return null;const{getBlockName:o,getBlockAttributes:r}=t(Nr),{getBlockType:l,getActiveBlockVariation:i}=t(c.store),s=o(e),a=l(s);if(!a)return null;const u=r(e),d=(0,c.__experimentalGetBlockLabel)(a,u,n);if(d!==a.title)return d;const p=i(s,u);return p?.title||a.title}),[e,n]);if(!o)return null;if(t&&t>0&&o.length>t){const e="...";return o.slice(0,t-e.length)+e}return o}function pf({clientId:e,maximumLength:t,context:n}){return df({clientId:e,maximumLength:t,context:n})}const mf=function({rootLabelText:e}){const{selectBlock:t,clearSelectedBlock:n}=(0,d.useDispatch)(Nr),{clientId:o,parents:r,hasSelection:l}=(0,d.useSelect)((e=>{const{getSelectionStart:t,getSelectedBlockClientId:n,getEnabledBlockParents:o}=ie(e(Nr)),r=n();return{parents:o(r),clientId:r,hasSelection:!!t().clientId}}),[]),i=e||(0,x.__)("Document");return(0,s.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":(0,x.__)("Block breadcrumb")},(0,s.createElement)("li",{className:l?void 0:"block-editor-block-breadcrumb__current","aria-current":l?void 0:"true"},l&&(0,s.createElement)(_l.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:n},i),!l&&i,!!o&&(0,s.createElement)(Ti,{icon:qs,className:"block-editor-block-breadcrumb__separator"})),r.map((e=>(0,s.createElement)("li",{key:e},(0,s.createElement)(_l.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:()=>t(e)},(0,s.createElement)(pf,{clientId:e,maximumLength:35})),(0,s.createElement)(Ti,{icon:qs,className:"block-editor-block-breadcrumb__separator"})))),!!o&&(0,s.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},(0,s.createElement)(pf,{clientId:o,maximumLength:35})))};function hf(e){return(0,d.useSelect)((t=>{const{__unstableHasActiveBlockOverlayActive:n}=t(Nr);return n(e)}),[e])}const gf=(0,u.createContext)({});function ff({value:e,children:t}){const n=(0,u.useContext)(gf),o=(0,u.useMemo)((()=>({...n,...e})),[n,e]);return(0,s.createElement)(gf.Provider,{value:o,children:t})}const bf=gf,vf={},kf=(0,_l.withFilters)("editor.BlockEdit")((e=>{const{name:t}=e,n=(0,c.getBlockType)(t);if(!n)return null;const o=n.edit||n.save;return(0,s.createElement)(o,{...e})})),_f=e=>{const{attributes:t={},name:n}=e,o=(0,c.getBlockType)(n),r=(0,u.useContext)(bf),l=(0,u.useMemo)((()=>o&&o.usesContext?Object.fromEntries(Object.entries(r).filter((([e])=>o.usesContext.includes(e)))):vf),[o,r]);if(!o)return null;if(o.apiVersion>1)return(0,s.createElement)(kf,{...e,context:l});const i=(0,c.hasBlockSupport)(o,"className",!0)?(0,c.getBlockDefaultClassName)(n):null,a=ml()(i,t.className,e.className);return(0,s.createElement)(kf,{...e,context:l,className:a})};function yf({mayDisplayControls:e,mayDisplayParentControls:t,blockEditingMode:n,...o}){const{name:r,isSelected:l,clientId:i,attributes:a={},__unstableLayoutClassNames:d}=o,{layout:p=null,metadata:m={}}=a,{bindings:v}=m,k=(0,c.hasBlockSupport)(r,"layout",!1)||(0,c.hasBlockSupport)(r,"__experimentalLayout",!1);return(0,s.createElement)(_,{value:(0,u.useMemo)((()=>({name:r,isSelected:l,clientId:i,layout:k?p:null,__unstableLayoutClassNames:d,[h]:e,[g]:t,[f]:n,[b]:v})),[r,l,i,k,p,d,e,t,n,v])},(0,s.createElement)(_f,{...o}))}const Ef=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const wf=function({className:e,actions:t,children:n,secondaryActions:o}){return(0,s.createElement)("div",{style:{display:"contents",all:"initial"}},(0,s.createElement)("div",{className:ml()(e,"block-editor-warning")},(0,s.createElement)("div",{className:"block-editor-warning__contents"},(0,s.createElement)("p",{className:"block-editor-warning__message"},n),(u.Children.count(t)>0||o)&&(0,s.createElement)("div",{className:"block-editor-warning__actions"},u.Children.count(t)>0&&u.Children.map(t,((e,t)=>(0,s.createElement)("span",{key:t,className:"block-editor-warning__action"},e))),o&&(0,s.createElement)(_l.DropdownMenu,{className:"block-editor-warning__secondary",icon:Ef,label:(0,x.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(()=>(0,s.createElement)(_l.MenuGroup,null,o.map(((e,t)=>(0,s.createElement)(_l.MenuItem,{onClick:e.onClick,key:t},e.title))))))))))};var Sf=n(8021);function Cf({title:e,rawContent:t,renderedContent:n,action:o,actionText:r,className:l}){return(0,s.createElement)("div",{className:l},(0,s.createElement)("div",{className:"block-editor-block-compare__content"},(0,s.createElement)("h2",{className:"block-editor-block-compare__heading"},e),(0,s.createElement)("div",{className:"block-editor-block-compare__html"},t),(0,s.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},(0,s.createElement)(u.RawHTML,null,(0,As.safeHTML)(n)))),(0,s.createElement)("div",{className:"block-editor-block-compare__action"},(0,s.createElement)(_l.Button,{variant:"secondary",tabIndex:"0",onClick:o},r)))}const xf=function({block:e,onKeep:t,onConvert:n,convertor:o,convertButtonText:r}){const l=(i=o(e),(Array.isArray(i)?i:[i]).map((e=>(0,c.getSaveContent)(e.name,e.attributes,e.innerBlocks))).join(""));var i;const a=(u=e.originalContent,d=l,(0,Sf.JJ)(u,d).map(((e,t)=>{const n=ml()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return(0,s.createElement)("span",{key:t,className:n},e.value)})));var u,d;return(0,s.createElement)("div",{className:"block-editor-block-compare__wrapper"},(0,s.createElement)(Cf,{title:(0,x.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:(0,x.__)("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),(0,s.createElement)(Cf,{title:(0,x.__)("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:r,rawContent:a,renderedContent:l}))},Bf=e=>(0,c.rawHandler)({HTML:e.originalContent});function If({clientId:e}){const{block:t,canInsertHTMLBlock:n,canInsertClassicBlock:o}=(0,d.useSelect)((t=>{const{canInsertBlockType:n,getBlock:o,getBlockRootClientId:r}=t(Nr),l=r(e);return{block:o(e),canInsertHTMLBlock:n("core/html",l),canInsertClassicBlock:n("core/freeform",l)}}),[e]),{replaceBlock:r}=(0,d.useDispatch)(Nr),[l,i]=(0,u.useState)(!1),a=(0,u.useCallback)((()=>i(!1)),[]),p=(0,u.useMemo)((()=>({toClassic(){const e=(0,c.createBlock)("core/freeform",{content:t.originalContent});return r(t.clientId,e)},toHTML(){const e=(0,c.createBlock)("core/html",{content:t.originalContent});return r(t.clientId,e)},toBlocks(){const e=Bf(t);return r(t.clientId,e)},toRecoveredBlock(){const e=(0,c.createBlock)(t.name,t.attributes,t.innerBlocks);return r(t.clientId,e)}})),[t,r]),m=(0,u.useMemo)((()=>[{title:(0,x._x)("Resolve","imperative verb"),onClick:()=>i(!0)},n&&{title:(0,x.__)("Convert to HTML"),onClick:p.toHTML},o&&{title:(0,x.__)("Convert to Classic Block"),onClick:p.toClassic}].filter(Boolean)),[n,o,p]);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(wf,{actions:[(0,s.createElement)(_l.Button,{key:"recover",onClick:p.toRecoveredBlock,variant:"primary"},(0,x.__)("Attempt Block Recovery"))],secondaryActions:m},(0,x.__)("This block contains unexpected or invalid content.")),l&&(0,s.createElement)(_l.Modal,{title:(0,x.__)("Resolve Block"),onRequestClose:a,className:"block-editor-block-compare"},(0,s.createElement)(xf,{block:t,onKeep:p.toHTML,onConvert:p.toBlocks,convertor:Bf,convertButtonText:(0,x.__)("Convert to Blocks")})))}const Tf=(0,s.createElement)(wf,{className:"block-editor-block-list__block-crash-warning"},(0,x.__)("This block has encountered an error and cannot be previewed.")),Mf=()=>Tf;class Pf extends u.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}const Rf=Pf;var Nf=n(4132);const Lf=function({clientId:e}){const[t,n]=(0,u.useState)(""),o=(0,d.useSelect)((t=>t(Nr).getBlock(e)),[e]),{updateBlock:r}=(0,d.useDispatch)(Nr);return(0,u.useEffect)((()=>{n((0,c.getBlockContent)(o))}),[o]),(0,s.createElement)(Nf.A,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:()=>{const l=(0,c.getBlockType)(o.name);if(!l)return;const i=(0,c.getBlockAttributes)(l,t,o.attributes),s=t||(0,c.getSaveContent)(l,i),[a]=t?(0,c.validateBlock)({...o,attributes:i,originalContent:s}):[!0];r(e,{attributes:i,originalContent:s,isValid:a}),t||n(s)},onChange:e=>n(e.target.value)})};var Af=Xf(),Of=e=>Kf(e,Af),Df=Xf();Of.write=e=>Kf(e,Df);var zf=Xf();Of.onStart=e=>Kf(e,zf);var Vf=Xf();Of.onFrame=e=>Kf(e,Vf);var Ff=Xf();Of.onFinish=e=>Kf(e,Ff);var Hf=[];Of.setTimeout=(e,t)=>{let n=Of.now()+t,o=()=>{let e=Hf.findIndex((e=>e.cancel==o));~e&&Hf.splice(e,1),jf-=~e?1:0},r={time:n,handler:e,cancel:o};return Hf.splice(Gf(n),0,r),jf+=1,Zf(),r};var Gf=e=>~(~Hf.findIndex((t=>t.time>e))||~Hf.length);Of.cancel=e=>{zf.delete(e),Vf.delete(e),Ff.delete(e),Af.delete(e),Df.delete(e)},Of.sync=e=>{Wf=!0,Of.batchedUpdates(e),Wf=!1},Of.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...e){t=e,Of.onStart(n)}return o.handler=e,o.cancel=()=>{zf.delete(n),t=null},o};var Uf=typeof window<"u"?window.requestAnimationFrame:()=>{};Of.use=e=>Uf=e,Of.now=typeof performance<"u"?()=>performance.now():Date.now,Of.batchedUpdates=e=>e(),Of.catch=console.error,Of.frameLoop="always",Of.advance=()=>{"demand"!==Of.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Yf()};var $f=-1,jf=0,Wf=!1;function Kf(e,t){Wf?(t.delete(e),e(0)):(t.add(e),Zf())}function Zf(){$f<0&&($f=0,"demand"!==Of.frameLoop&&Uf(qf))}function qf(){~$f&&(Uf(qf),Of.batchedUpdates(Yf))}function Yf(){let e=$f;$f=Of.now();let t=Gf($f);t&&(Qf(Hf.splice(0,t),(e=>e.handler())),jf-=t),jf?(zf.flush(),Af.flush(e?Math.min(64,$f-e):16.667),Vf.flush(),Df.flush(),Ff.flush()):$f=-1}function Xf(){let e=new Set,t=e;return{add(n){jf+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(jf-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,jf-=t.size,Qf(t,(t=>t(n)&&e.add(t))),jf+=e.size,t=e)}}}function Qf(e,t){e.forEach((e=>{try{t(e)}catch(e){Of.catch(e)}}))}var Jf=Object.defineProperty,eb={};function tb(){}((e,t)=>{for(var n in t)Jf(e,n,{get:t[n],enumerable:!0})})(eb,{assign:()=>gb,colors:()=>pb,createStringInterpolator:()=>ab,skipAnimation:()=>mb,to:()=>cb,willAdvance:()=>hb});var nb={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function ob(e,t){if(nb.arr(e)){if(!nb.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var rb=(e,t)=>e.forEach(t);function lb(e,t,n){if(nb.arr(e))for(let o=0;o<e.length;o++)t.call(n,e[o],`${o}`);else for(let o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}var ib=e=>nb.und(e)?[]:nb.arr(e)?e:[e];function sb(e,t){if(e.size){let n=Array.from(e);e.clear(),rb(n,t)}}var ab,cb,ub=(e,...t)=>sb(e,(e=>e(...t))),db=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),pb=null,mb=!1,hb=tb,gb=e=>{e.to&&(cb=e.to),e.now&&(Of.now=e.now),void 0!==e.colors&&(pb=e.colors),null!=e.skipAnimation&&(mb=e.skipAnimation),e.createStringInterpolator&&(ab=e.createStringInterpolator),e.requestAnimationFrame&&Of.use(e.requestAnimationFrame),e.batchedUpdates&&(Of.batchedUpdates=e.batchedUpdates),e.willAdvance&&(hb=e.willAdvance),e.frameLoop&&(Of.frameLoop=e.frameLoop)},fb=new Set,bb=[],vb=[],kb=0,_b={get idle(){return!fb.size&&!bb.length},start(e){kb>e.priority?(fb.add(e),Of.onStart(yb)):(Eb(e),Of(Sb))},advance:Sb,sort(e){if(kb)Of.onFrame((()=>_b.sort(e)));else{let t=bb.indexOf(e);~t&&(bb.splice(t,1),wb(e))}},clear(){bb=[],fb.clear()}};function yb(){fb.forEach(Eb),fb.clear(),Of(Sb)}function Eb(e){bb.includes(e)||wb(e)}function wb(e){bb.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(bb,(t=>t.priority>e.priority)),0,e)}function Sb(e){let t=vb;for(let n=0;n<bb.length;n++){let o=bb[n];kb=o.priority,o.idle||(hb(o),o.advance(e),o.idle||t.push(o))}return kb=0,(vb=bb).length=0,(bb=t).length>0}var Cb="[-+]?\\d*\\.?\\d+",xb=Cb+"%";function Bb(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Ib=new RegExp("rgb"+Bb(Cb,Cb,Cb)),Tb=new RegExp("rgba"+Bb(Cb,Cb,Cb,Cb)),Mb=new RegExp("hsl"+Bb(Cb,xb,xb)),Pb=new RegExp("hsla"+Bb(Cb,xb,xb,Cb)),Rb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Nb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Lb=/^#([0-9a-fA-F]{6})$/,Ab=/^#([0-9a-fA-F]{8})$/;function Ob(e,t,n){return n<0&&(n+=1),n>1&&(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 Db(e,t,n){let o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,l=Ob(r,o,e+1/3),i=Ob(r,o,e),s=Ob(r,o,e-1/3);return Math.round(255*l)<<24|Math.round(255*i)<<16|Math.round(255*s)<<8}function zb(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function Vb(e){return(parseFloat(e)%360+360)%360/360}function Fb(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Hb(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function Gb(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Lb.exec(e))?parseInt(t[1]+"ff",16)>>>0:pb&&void 0!==pb[e]?pb[e]:(t=Ib.exec(e))?(zb(t[1])<<24|zb(t[2])<<16|zb(t[3])<<8|255)>>>0:(t=Tb.exec(e))?(zb(t[1])<<24|zb(t[2])<<16|zb(t[3])<<8|Fb(t[4]))>>>0:(t=Rb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ab.exec(e))?parseInt(t[1],16)>>>0:(t=Nb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Mb.exec(e))?(255|Db(Vb(t[1]),Hb(t[2]),Hb(t[3])))>>>0:(t=Pb.exec(e))?(Db(Vb(t[1]),Hb(t[2]),Hb(t[3]))|Fb(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}var Ub=(e,t,n)=>{if(nb.fun(e))return e;if(nb.arr(e))return Ub({range:e,output:t,extrapolate:n});if(nb.str(e.output[0]))return ab(e);let o=e,r=o.output,l=o.range||[0,1],i=o.extrapolateLeft||o.extrapolate||"extend",s=o.extrapolateRight||o.extrapolate||"extend",a=o.easing||(e=>e);return e=>{let t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,l);return function(e,t,n,o,r,l,i,s,a){let c=a?a(e):e;if(c<t){if("identity"===i)return c;"clamp"===i&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t),c=l(c),o===-1/0?c=-c:r===1/0?c+=o:c=c*(r-o)+o,c)}(e,l[t],l[t+1],r[t],r[t+1],a,i,s,o.map)}};var $b=1.70158,jb=1.525*$b,Wb=$b+1,Kb=2*Math.PI/3,Zb=2*Math.PI/4.5,qb=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Yb={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Wb*e*e*e-$b*e*e,easeOutBack:e=>1+Wb*Math.pow(e-1,3)+$b*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(2*(jb+1)*e-jb)/2:(Math.pow(2*e-2,2)*((jb+1)*(2*e-2)+jb)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Kb),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Kb)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Zb)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Zb)/2+1,easeInBounce:e=>1-qb(1-e),easeOutBounce:qb,easeInOutBounce:e=>e<.5?(1-qb(1-2*e))/2:(1+qb(2*e-1))/2,steps:(e,t="end")=>n=>{let o=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(o):Math.ceil(o))/e)}},Xb=Symbol.for("FluidValue.get"),Qb=Symbol.for("FluidValue.observers"),Jb=e=>Boolean(e&&e[Xb]),ev=e=>e&&e[Xb]?e[Xb]():e,tv=e=>e[Qb]||null;function nv(e,t){let n=e[Qb];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var ov=class{[Xb];[Qb];constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");rv(this,e)}},rv=(e,t)=>av(e,Xb,t);function lv(e,t){if(e[Xb]){let n=e[Qb];n||av(e,Qb,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function iv(e,t){let n=e[Qb];if(n&&n.has(t)){let o=n.size-1;o?n.delete(t):e[Qb]=null,e.observerRemoved&&e.observerRemoved(o,t)}}var sv,av=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),cv=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,uv=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,dv=new RegExp(`(${cv.source})(%|[a-z]+)`,"i"),pv=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,mv=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,hv=e=>{let[t,n]=gv(e);if(!t||db())return e;let o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(n&&n.startsWith("--")){return window.getComputedStyle(document.documentElement).getPropertyValue(n)||e}return n&&mv.test(n)?hv(n):n||e},gv=e=>{let t=mv.exec(e);if(!t)return[,];let[,n,o]=t;return[n,o]},fv=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,bv=e=>{sv||(sv=pb?new RegExp(`(${Object.keys(pb).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map((e=>ev(e).replace(mv,hv).replace(uv,Gb).replace(sv,Gb))),n=t.map((e=>e.match(cv).map(Number))),o=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>Ub({...e,output:t})));return e=>{let n=!dv.test(t[0])&&t.find((e=>dv.test(e)))?.replace(cv,""),r=0;return t[0].replace(cv,(()=>`${o[r++](e)}${n||""}`)).replace(pv,fv)}},vv="react-spring: ",kv=e=>{let t=e,n=!1;if("function"!=typeof t)throw new TypeError(`${vv}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},_v=kv(console.warn);kv(console.warn);function yv(e){return nb.str(e)&&("#"==e[0]||/\d/.test(e)||!db()&&mv.test(e)||e in(pb||{}))}new WeakMap;new Set,new WeakMap,new WeakMap,new WeakMap;var Ev=db()?s.useEffect:s.useLayoutEffect;function wv(){let e=(0,s.useState)()[1],t=(()=>{let e=(0,s.useRef)(!1);return Ev((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var Sv=[];var Cv=Symbol.for("Animated:node"),xv=e=>e&&e[Cv],Bv=(e,t)=>((e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}))(e,Cv,t),Iv=e=>e&&e[Cv]&&e[Cv].getPayload(),Tv=class{payload;constructor(){Bv(this,this)}getPayload(){return this.payload||[]}},Mv=class extends Tv{constructor(e){super(),this._value=e,nb.num(this._value)&&(this.lastPosition=this._value)}done=!0;elapsedTime;lastPosition;lastVelocity;v0;durationProgress=0;static create(e){return new Mv(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return nb.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,nb.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Pv=class extends Mv{_string=null;_toString;constructor(e){super(0),this._toString=Ub({output:[e,e]})}static create(e){return new Pv(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(nb.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Ub({output:[this.getValue(),e]})),this._value=0,super.reset()}},Rv={dependencies:null},Nv=class extends Tv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return lb(this.source,((n,o)=>{(e=>!!e&&e[Cv]===e)(n)?t[o]=n.getValue(e):Jb(n)?t[o]=ev(n):e||(t[o]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&rb(this.payload,(e=>e.reset()))}_makePayload(e){if(e){let t=new Set;return lb(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Rv.dependencies&&Jb(e)&&Rv.dependencies.add(e);let t=Iv(e);t&&rb(t,(e=>this.add(e)))}},Lv=class extends Nv{constructor(e){super(e)}static create(e){return new Lv(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){let t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(Av)),!0)}};function Av(e){return(yv(e)?Pv:Mv).create(e)}function Ov(e){let t=xv(e);return t?t.constructor:nb.arr(e)?Lv:yv(e)?Pv:Mv}var Dv=(e,t)=>{let n=!nb.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,s.forwardRef)(((o,r)=>{let l=(0,s.useRef)(null),i=n&&(0,s.useCallback)((e=>{l.current=function(e,t){return e&&(nb.fun(e)?e(t):e.current=t),t}(r,e)}),[r]),[a,c]=function(e,t){let n=new Set;return Rv.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Nv(e),Rv.dependencies=null,[e,n]}(o,t),u=wv(),d=()=>{let e=l.current;n&&!e||!1===(!!e&&t.applyAnimatedValues(e,a.getValue(!0)))&&u()},p=new zv(d,c),m=(0,s.useRef)();Ev((()=>(m.current=p,rb(c,(e=>lv(e,p))),()=>{m.current&&(rb(m.current.deps,(e=>iv(e,m.current))),Of.cancel(m.current.update))}))),(0,s.useEffect)(d,[]),(e=>{(0,s.useEffect)(e,Sv)})((()=>()=>{let e=m.current;rb(e.deps,(t=>iv(t,e)))}));let h=t.getComponentProps(a.getValue());return s.createElement(e,{...h,ref:i})}))},zv=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&Of.write(this.update)}};var Vv=Symbol.for("AnimatedComponent"),Fv=e=>nb.str(e)?e:e&&nb.str(e.displayName)?e.displayName:nb.fun(e)&&e.name||null;function Hv(e,...t){return nb.fun(e)?e(...t):e}var Gv=(e,t)=>!0===e||!!(t&&e&&(nb.fun(e)?e(t):ib(e).includes(t))),Uv=(e,t)=>nb.obj(e)?t&&e[t]:e,$v=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,jv=e=>e,Wv=(e,t=jv)=>{let n=Kv;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));let o={};for(let r of n){let n=t(e[r],r);nb.und(n)||(o[r]=n)}return o},Kv=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Zv={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function qv(e){let t=function(e){let t={},n=0;if(lb(e,((e,o)=>{Zv[o]||(t[o]=e,n++)})),n)return t}(e);if(t){let n={to:t};return lb(e,((e,o)=>o in t||(n[o]=e))),n}return{...e}}function Yv(e){return e=ev(e),nb.arr(e)?e.map(Yv):yv(e)?eb.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Xv(e){return nb.fun(e)||nb.arr(e)&&nb.obj(e[0])}var Qv={tension:170,friction:26,mass:1,damping:1,easing:Yb.linear,clamp:!1},Jv=class{tension;friction;frequency;damping;mass;velocity=0;restVelocity;precision;progress;duration;easing;clamp;bounce;decay;round;constructor(){Object.assign(this,Qv)}};function ek(e,t){if(nb.und(t.decay)){let n=!nb.und(t.tension)||!nb.und(t.friction);(n||!nb.und(t.frequency)||!nb.und(t.damping)||!nb.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var tk=[],nk=class{changed=!1;values=tk;toValues=null;fromValues=tk;to;from;config=new Jv;immediate=!1};function ok(e,{key:t,props:n,defaultProps:o,state:r,actions:l}){return new Promise(((i,s)=>{let a,c,u=Gv(n.cancel??o?.cancel,t);if(u)m();else{nb.und(n.pause)||(r.paused=Gv(n.pause,t));let e=o?.pause;!0!==e&&(e=r.paused||Gv(e,t)),a=Hv(n.delay||0,t),e?(r.resumeQueue.add(p),l.pause()):(l.resume(),p())}function d(){r.resumeQueue.add(p),r.timeouts.delete(c),c.cancel(),a=c.time-Of.now()}function p(){a>0&&!eb.skipAnimation?(r.delayed=!0,c=Of.setTimeout(m,a),r.pauseQueue.add(d),r.timeouts.add(c)):m()}function m(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(d),r.timeouts.delete(c),e<=(r.cancelId||0)&&(u=!0);try{l.start({...n,callId:e,cancel:u},i)}catch(e){s(e)}}}))}var rk=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?sk(e.get()):t.every((e=>e.noop))?lk(e.get()):ik(e.get(),t.every((e=>e.finished))),lk=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),ik=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),sk=e=>({value:e,cancelled:!0,finished:!1});function ak(e,t,n,o){let{callId:r,parentId:l,onRest:i}=t,{asyncTo:s,promise:a}=n;return l||e!==s||t.reset?n.promise=(async()=>{n.asyncId=r,n.asyncTo=e;let c,u,d,p=Wv(t,((e,t)=>"onRest"===t?void 0:e)),m=new Promise(((e,t)=>(c=e,u=t))),h=e=>{let t=r<=(n.cancelId||0)&&sk(o)||r!==n.asyncId&&ik(o,!1);if(t)throw e.result=t,u(e),e},g=(e,t)=>{let l=new uk,i=new dk;return(async()=>{if(eb.skipAnimation)throw ck(n),i.result=ik(o,!1),u(i),i;h(l);let s=nb.obj(e)?{...e}:{...t,to:e};s.parentId=r,lb(p,((e,t)=>{nb.und(s[t])&&(s[t]=e)}));let a=await o.start(s);return h(l),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),a})()};if(eb.skipAnimation)return ck(n),ik(o,!1);try{let t;t=nb.arr(e)?(async e=>{for(let t of e)await g(t)})(e):Promise.resolve(e(g,o.stop.bind(o))),await Promise.all([t.then(c),m]),d=ik(o.get(),!0,!1)}catch(e){if(e instanceof uk)d=e.result;else{if(!(e instanceof dk))throw e;d=e.result}}finally{r==n.asyncId&&(n.asyncId=l,n.asyncTo=l?s:void 0,n.promise=l?a:void 0)}return nb.fun(i)&&Of.batchedUpdates((()=>{i(d,o,o.item)})),d})():a}function ck(e,t){sb(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var uk=class extends Error{result;constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},dk=class extends Error{result;constructor(){super("SkipAnimationSignal")}},pk=e=>e instanceof hk,mk=1,hk=class extends ov{id=mk++;_priority=0;get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=xv(this);return e&&e.getValue()}to(...e){return eb.to(this,e)}interpolate(...e){return _v(`${vv}The "interpolate" function is deprecated in v9 (use "to" instead)`),eb.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){nv(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||_b.sort(this),nv(this,{type:"priority",parent:this,priority:e})}},gk=Symbol.for("SpringPhase"),fk=e=>(1&e[gk])>0,bk=e=>(2&e[gk])>0,vk=e=>(4&e[gk])>0,kk=(e,t)=>t?e[gk]|=3:e[gk]&=-3,_k=(e,t)=>t?e[gk]|=4:e[gk]&=-5,yk=class extends hk{key;animation=new nk;queue;defaultProps={};_state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_pendingCalls=new Set;_lastCallId=0;_lastToId=0;_memoizedDuration=0;constructor(e,t){if(super(),!nb.und(e)||!nb.und(t)){let n=nb.obj(e)?{...e}:{...t,from:e};nb.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(bk(this)||this._state.asyncTo)||vk(this)}get goal(){return ev(this.animation.to)}get velocity(){let e=xv(this);return e instanceof Mv?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return fk(this)}get isAnimating(){return bk(this)}get isPaused(){return vk(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,o=this.animation,{config:r,toValues:l}=o,i=Iv(o.to);!i&&Jb(o.to)&&(l=ib(ev(o.to))),o.values.forEach(((s,a)=>{if(s.done)return;let c=s.constructor==Pv?1:i?i[a].lastPosition:l[a],u=o.immediate,d=c;if(!u){if(d=s.lastPosition,r.tension<=0)return void(s.done=!0);let t,n=s.elapsedTime+=e,l=o.fromValues[a],i=null!=s.v0?s.v0:s.v0=nb.arr(r.velocity)?r.velocity[a]:r.velocity,p=r.precision||(l==c?.005:Math.min(1,.001*Math.abs(c-l)));if(nb.und(r.duration))if(r.decay){let e=!0===r.decay?.998:r.decay,o=Math.exp(-(1-e)*n);d=l+i/(1-e)*(1-o),u=Math.abs(s.lastPosition-d)<=p,t=i*o}else{t=null==s.lastVelocity?i:s.lastVelocity;let n,o=r.restVelocity||p/10,a=r.clamp?0:r.bounce,m=!nb.und(a),h=l==c?s.v0>0:l<c,g=!1,f=1,b=Math.ceil(e/f);for(let e=0;e<b&&(n=Math.abs(t)>o,n||(u=Math.abs(c-d)<=p,!u));++e){m&&(g=d==c||d>c==h,g&&(t=-t*a,d=c)),t+=(1e-6*-r.tension*(d-c)+.001*-r.friction*t)/r.mass*f,d+=t*f}}else{let o=1;r.duration>0&&(this._memoizedDuration!==r.duration&&(this._memoizedDuration=r.duration,s.durationProgress>0&&(s.elapsedTime=r.duration*s.durationProgress,n=s.elapsedTime+=e)),o=(r.progress||0)+n/this._memoizedDuration,o=o>1?1:o<0?0:o,s.durationProgress=o),d=l+r.easing(o)*(c-l),t=(d-s.lastPosition)/e,u=1==o}s.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}i&&!i[a].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,r.round)&&(n=!0)}));let s=xv(this),a=s.getValue();if(t){let e=ev(o.to);a===e&&!n||r.decay?n&&r.decay&&this._onChange(a):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(a)}set(e){return Of.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(bk(this)){let{to:e,config:t}=this.animation;Of.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return nb.und(e)?(n=this.queue||[],this.queue=[]):n=[nb.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>rk(this,e)))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),ck(this._state,e&&this._lastCallId),Of.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:o}=e;n=nb.obj(n)?n[t]:n,(null==n||Xv(n))&&(n=void 0),o=nb.obj(o)?o[t]:o,null==o&&(o=void 0);let r={to:n,from:o};return fk(this)||(e.reverse&&([n,o]=[o,n]),o=ev(o),nb.und(o)?xv(this)||this._set(n):this._set(o)),r}_update({...e},t){let{key:n,defaultProps:o}=this;e.default&&Object.assign(o,Wv(e,((e,t)=>/^on/.test(t)?Uv(e,n):e))),Bk(this,e,"onProps"),Ik(this,"onProps",e,this);let r=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let l=this._state;return ok(++this._lastCallId,{key:n,props:e,defaultProps:o,state:l,actions:{pause:()=>{vk(this)||(_k(this,!0),ub(l.pauseQueue),Ik(this,"onPause",ik(this,Ek(this,this.animation.to)),this))},resume:()=>{vk(this)&&(_k(this,!1),bk(this)&&this._resume(),ub(l.resumeQueue),Ik(this,"onResume",ik(this,Ek(this,this.animation.to)),this))},start:this._merge.bind(this,r)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){let t=wk(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(sk(this));let o=!nb.und(e.to),r=!nb.und(e.from);if(o||r){if(!(t.callId>this._lastToId))return n(sk(this));this._lastToId=t.callId}let{key:l,defaultProps:i,animation:s}=this,{to:a,from:c}=s,{to:u=a,from:d=c}=e;r&&!o&&(!t.default||nb.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);let p=!ob(d,c);p&&(s.from=d),d=ev(d);let m=!ob(u,a);m&&this._focus(u);let h=Xv(t.to),{config:g}=s,{decay:f,velocity:b}=g;(o||r)&&(g.velocity=0),t.config&&!h&&function(e,t,n){n&&(ek(n={...n},t),t={...n,...t}),ek(e,t),Object.assign(e,t);for(let t in Qv)null==e[t]&&(e[t]=Qv[t]);let{mass:o,frequency:r,damping:l}=e;nb.und(r)||(r<.01&&(r=.01),l<0&&(l=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*l*o/r)}(g,Hv(t.config,l),t.config!==i.config?Hv(i.config,l):void 0);let v=xv(this);if(!v||nb.und(u))return n(ik(this,!0));let k=nb.und(t.reset)?r&&!t.default:!nb.und(d)&&Gv(t.reset,l),_=k?d:this.get(),y=Yv(u),E=nb.num(y)||nb.arr(y)||yv(y),w=!h&&(!E||Gv(i.immediate||t.immediate,l));if(m){let e=Ov(u);if(e!==v.constructor){if(!w)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(y)}}let S=v.constructor,C=Jb(u),x=!1;if(!C){let e=k||!fk(this)&&p;(m||e)&&(x=ob(Yv(_),y),C=!x),(!ob(s.immediate,w)&&!w||!ob(g.decay,f)||!ob(g.velocity,b))&&(C=!0)}if(x&&bk(this)&&(s.changed&&!k?C=!0:C||this._stop(a)),!h&&((C||Jb(a))&&(s.values=v.getPayload(),s.toValues=Jb(u)?null:S==Pv?[1]:ib(y)),s.immediate!=w&&(s.immediate=w,!w&&!k&&this._set(a)),C)){let{onRest:e}=s;rb(xk,(e=>Bk(this,t,e)));let o=ik(this,Ek(this,a));ub(this._pendingCalls,o),this._pendingCalls.add(n),s.changed&&Of.batchedUpdates((()=>{s.changed=!k,e?.(o,this),k?Hv(i.onRest,o):s.onStart?.(o,this)}))}k&&this._set(_),h?n(ak(t.to,t,this._state,this)):C?this._start():bk(this)&&!m?this._pendingCalls.add(n):n(lk(_))}_focus(e){let t=this.animation;e!==t.to&&(tv(this)&&this._detach(),t.to=e,tv(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;Jb(t)&&(lv(t,this),pk(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;Jb(e)&&iv(e,this)}_set(e,t=!0){let n=ev(e);if(!nb.und(n)){let e=xv(this);if(!e||!ob(n,e.getValue())){let o=Ov(n);e&&e.constructor==o?e.setValue(n):Bv(this,o.create(n)),e&&Of.batchedUpdates((()=>{this._onChange(n,t)}))}}return xv(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,Ik(this,"onStart",ik(this,Ek(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Hv(this.animation.onChange,e,this)),Hv(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;xv(this).reset(ev(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),bk(this)||(kk(this,!0),vk(this)||this._resume())}_resume(){eb.skipAnimation?this.finish():_b.start(this)}_stop(e,t){if(bk(this)){kk(this,!1);let n=this.animation;rb(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),nv(this,{type:"idle",parent:this});let o=t?sk(this.get()):ik(this.get(),Ek(this,e??n.to));ub(this._pendingCalls,o),n.changed&&(n.changed=!1,Ik(this,"onRest",o,this))}}};function Ek(e,t){let n=Yv(t);return ob(Yv(e.get()),n)}function wk(e,t=e.loop,n=e.to){let o=Hv(t);if(o){let r=!0!==o&&qv(o),l=(r||e).reverse,i=!r||r.reset;return Sk({...e,loop:t,default:!1,pause:void 0,to:!l||Xv(n)?n:void 0,from:i?e.from:void 0,reset:i,...r})}}function Sk(e){let{to:t,from:n}=e=qv(e),o=new Set;return nb.obj(t)&&Ck(t,o),nb.obj(n)&&Ck(n,o),e.keys=o.size?Array.from(o):null,e}function Ck(e,t){lb(e,((e,n)=>null!=e&&t.add(n)))}var xk=["onStart","onRest","onChange","onPause","onResume"];function Bk(e,t,n){e.animation[n]=t[n]!==$v(t,n)?Uv(t[n],e.key):void 0}function Ik(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var Tk=["onStart","onChange","onRest"],Mk=1,Pk=class{id=Mk++;springs={};queue=[];ref;_flush;_initialProps;_lastAsyncId=0;_active=new Set;_changed=new Set;_started=!1;_item;_state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_events={onStart:new Map,onChange:new Map,onRest:new Map};constructor(e,t){this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(let t in e){let n=e[t];nb.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Sk(e)),this}start(e){let{queue:t}=this;return e?t=ib(e).map(Sk):this.queue=[],this._flush?this._flush(this,t):(Ok(this,t),Rk(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let n=this.springs;rb(ib(t),(t=>n[t].stop(!!e)))}else ck(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(nb.und(e))this.start({pause:!0});else{let t=this.springs;rb(ib(e),(e=>t[e].pause()))}return this}resume(e){if(nb.und(e))this.start({pause:!1});else{let t=this.springs;rb(ib(e),(e=>t[e].resume()))}return this}each(e){lb(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,o=this._active.size>0,r=this._changed.size>0;(o&&!this._started||r&&!this._started)&&(this._started=!0,sb(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));let l=!o&&this._started,i=r||l&&n.size?this.get():null;r&&t.size&&sb(t,(([e,t])=>{t.value=i,e(t,this,this._item)})),l&&(this._started=!1,sb(n,(([e,t])=>{t.value=i,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}Of.onFrame(this._onFrame)}};function Rk(e,t){return Promise.all(t.map((t=>Nk(e,t)))).then((t=>rk(e,t)))}async function Nk(e,t,n){let{keys:o,to:r,from:l,loop:i,onRest:s,onResolve:a}=t,c=nb.obj(t.default)&&t.default;i&&(t.loop=!1),!1===r&&(t.to=null),!1===l&&(t.from=null);let u=nb.arr(r)||nb.fun(r)?r:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):rb(Tk,(n=>{let o=t[n];if(nb.fun(o)){let r=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=r.get(o);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):r.set(o,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));let d=e._state;t.pause===!d.paused?(d.paused=t.pause,ub(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let p=(o||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),m=!0===t.cancel||!0===$v(t,"cancel");(u||m&&d.asyncId)&&p.push(ok(++e._lastAsyncId,{props:t,state:d,actions:{pause:tb,resume:tb,start(t,n){m?(ck(d,e._lastAsyncId),n(sk(e))):(t.onRest=s,n(ak(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));let h=rk(e,await Promise.all(p));if(i&&h.finished&&(!n||!h.noop)){let n=wk(t,i,r);if(n)return Ok(e,[n]),Nk(e,n,!0)}return a&&Of.batchedUpdates((()=>a(h,e,e.item))),h}function Lk(e,t){let n=new yk;return n.key=e,t&&lv(n,t),n}function Ak(e,t,n){t.keys&&rb(t.keys,(o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)}))}function Ok(e,t){rb(t,(t=>{Ak(e.springs,t,(t=>Lk(t,e)))}))}var Dk=({children:e,...t})=>{let n=(0,s.useContext)(zk),o=t.pause||!!n.pause,r=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,s.useState)((()=>({inputs:t,result:e()}))),o=(0,s.useRef)(),r=o.current,l=r;return l?Boolean(t&&l.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,l.inputs))||(l={inputs:t,result:e()}):l=n,(0,s.useEffect)((()=>{o.current=l,r==n&&(n.inputs=n.result=void 0)}),[l]),l.result}((()=>({pause:o,immediate:r})),[o,r]);let{Provider:l}=zk;return s.createElement(l,{value:t},e)},zk=function(e,t){return Object.assign(e,s.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(Dk,{});Dk.Provider=zk.Provider,Dk.Consumer=zk.Consumer;var Vk=class extends hk{constructor(e,t){super(),this.source=e,this.calc=Ub(...t);let n=this._get(),o=Ov(n);Bv(this,o.create(n))}key;idle=!0;calc;_active=new Set;advance(e){let t=this._get();ob(t,this.get())||(xv(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Hk(this._active)&&Gk(this)}_get(){let e=nb.arr(this.source)?this.source.map(ev):ib(ev(this.source));return this.calc(...e)}_start(){this.idle&&!Hk(this._active)&&(this.idle=!1,rb(Iv(this),(e=>{e.done=!1})),eb.skipAnimation?(Of.batchedUpdates((()=>this.advance())),Gk(this)):_b.start(this))}_attach(){let e=1;rb(ib(this.source),(t=>{Jb(t)&&lv(t,this),pk(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){rb(ib(this.source),(e=>{Jb(e)&&iv(e,this)})),this._active.clear(),Gk(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=ib(this.source).reduce(((e,t)=>Math.max(e,(pk(t)?t.priority:0)+1)),0))}};function Fk(e){return!1!==e.idle}function Hk(e){return!e.size||Array.from(e).every(Fk)}function Gk(e){e.idle||(e.idle=!0,rb(Iv(e),(e=>{e.done=!0})),nv(e,{type:"idle",parent:e}))}eb.assign({createStringInterpolator:bv,to:(e,t)=>new Vk(e,t)});_b.advance;const Uk=window.ReactDOM;var $k=/^--/;function jk(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||$k.test(e)||Kk.hasOwnProperty(e)&&Kk[e]?(""+t).trim():t+"px"}var Wk={};var Kk={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},Zk=["Webkit","Ms","Moz","O"];Kk=Object.keys(Kk).reduce(((e,t)=>(Zk.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Kk);var qk=/^(matrix|translate|scale|rotate|skew)/,Yk=/^(translate)/,Xk=/^(rotate|skew)/,Qk=(e,t)=>nb.num(e)&&0!==e?e+t:e,Jk=(e,t)=>nb.arr(e)?e.every((e=>Jk(e,t))):nb.num(e)?e===t:parseFloat(e)===t,e_=class extends Nv{constructor({x:e,y:t,z:n,...o}){let r=[],l=[];(e||t||n)&&(r.push([e||0,t||0,n||0]),l.push((e=>[`translate3d(${e.map((e=>Qk(e,"px"))).join(",")})`,Jk(e,0)]))),lb(o,((e,t)=>{if("transform"===t)r.push([e||""]),l.push((e=>[e,""===e]));else if(qk.test(t)){if(delete o[t],nb.und(e))return;let n=Yk.test(t)?"px":Xk.test(t)?"deg":"";r.push(ib(e)),l.push("rotate3d"===t?([e,t,o,r])=>[`rotate3d(${e},${t},${o},${Qk(r,n)})`,Jk(r,0)]:e=>[`${t}(${e.map((e=>Qk(e,n))).join(",")})`,Jk(e,t.startsWith("scale")?1:0)])}})),r.length&&(o.transform=new t_(r,l)),super(o)}},t_=class extends ov{constructor(e,t){super(),this.inputs=e,this.transforms=t}_value=null;get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return rb(this.inputs,((n,o)=>{let r=ev(n[0]),[l,i]=this.transforms[o](nb.arr(r)?r:n.map(ev));e+=" "+l,t=t&&i})),t?"none":e}observerAdded(e){1==e&&rb(this.inputs,(e=>rb(e,(e=>Jb(e)&&lv(e,this)))))}observerRemoved(e){0==e&&rb(this.inputs,(e=>rb(e,(e=>Jb(e)&&iv(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),nv(this,e)}};eb.assign({batchedUpdates:Uk.unstable_batchedUpdates,createStringInterpolator:bv,colors:{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}});var n_=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new Nv(e)),getComponentProps:o=(e=>e)}={})=>{let r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:o},l=e=>{let t=Fv(e)||"Anonymous";return(e=nb.str(e)?l[e]||(l[e]=Dv(e,r)):e[Vv]||(e[Vv]=Dv(e,r))).displayName=`Animated(${t})`,e};return lb(e,((t,n)=>{nb.arr(e)&&(n=Fv(t)),l[n]=l(t)})),{animated:l}})(["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"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:o,children:r,scrollTop:l,scrollLeft:i,viewBox:s,...a}=t,c=Object.values(a),u=Object.keys(a).map((t=>n||e.hasAttribute(t)?t:Wk[t]||(Wk[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==r&&(e.textContent=r);for(let t in o)if(o.hasOwnProperty(t)){let n=jk(t,o[t]);$k.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==l&&(e.scrollTop=l),void 0!==i&&(e.scrollLeft=i),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new e_(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),o_=n_.animated;function r_(e){return{top:e.offsetTop,left:e.offsetLeft}}const l_=function({triggerAnimationOnChange:e,clientId:t}){const n=(0,u.useRef)(),{isTyping:o,getGlobalBlockCount:r,isBlockSelected:l,isFirstMultiSelectedBlock:i,isBlockMultiSelected:s,isAncestorMultiSelected:a}=(0,d.useSelect)(Nr),{previous:c,prevRect:p}=(0,u.useMemo)((()=>({previous:n.current&&r_(n.current),prevRect:n.current&&n.current.getBoundingClientRect()})),[e]);return(0,u.useLayoutEffect)((()=>{if(!c||!n.current)return;const e=(0,As.getScrollContainer)(n.current),u=l(t),d=u||i(t);function m(){if(d&&p){const t=n.current.getBoundingClientRect().top-p.top;t&&(e.scrollTop+=t)}}if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||o()||r()>200)return void m();const h=u||s(t)||a(t)?"1":"",g=new Pk({x:0,y:0,config:{mass:5,tension:2e3,friction:200},onChange({value:e}){if(!n.current)return;let{x:t,y:o}=e;t=Math.round(t),o=Math.round(o);const r=0===t&&0===o;n.current.style.transformOrigin="center center",n.current.style.transform=r?null:`translate3d(${t}px,${o}px,0)`,n.current.style.zIndex=h,m()}});n.current.style.transform=void 0;const f=r_(n.current),b=Math.round(c.left-f.left),v=Math.round(c.top-f.top);return g.start({x:0,y:0,from:{x:b,y:v}}),()=>{g.stop(),g.set({x:0,y:0})}}),[c,p,t,o,r,l,i,s,a]),n},i_=(0,u.createContext)({}),s_=".block-editor-block-list__block",a_=".block-list-appender",c_=".block-editor-button-block-appender";function u_(e,t){return e.closest(s_)===t.closest(s_)}function d_(e,t){return t.closest([s_,a_,c_].join(","))===e}function p_(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(s_);return t?t.id.slice(6):void 0}function m_({clientId:e,initialPosition:t}){const n=(0,u.useRef)(),{isBlockSelected:o,isMultiSelecting:r}=(0,d.useSelect)(Nr);return(0,u.useEffect)((()=>{if(!o(e)||r())return;if(null==t)return;if(!n.current)return;const{ownerDocument:l}=n.current;if(d_(n.current,l.activeElement))return;const i=As.focus.tabbable.find(n.current).filter((e=>(0,As.isTextField)(e))),s=-1===t,a=i[s?i.length-1:0]||n.current;if(d_(n.current,a)){if(!n.current.getAttribute("contenteditable")){const e=As.focus.tabbable.findNext(n.current);if(e&&d_(n.current,e)&&(0,As.isFormElement)(e))return void e.focus()}(0,As.placeCaretAtHorizontalEdge)(a,s)}else n.current.focus()}),[t,e]),n}function h_(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function g_({isEnabled:e}){return(0,p.useRefEffect)((t=>{if(e)return t.addEventListener("mouseout",h_),t.addEventListener("mouseover",h_),()=>{t.removeEventListener("mouseout",h_),t.removeEventListener("mouseover",h_),t.classList.remove("is-hovered")}}),[e])}function f_(e){const{isBlockSelected:t}=(0,d.useSelect)(Nr),{selectBlock:n,selectionChange:o}=(0,d.useDispatch)(Nr);return(0,p.useRefEffect)((r=>{function l(l){r.parentElement.closest('[contenteditable="true"]')||(t(e)?l.target.isContentEditable||o(e):d_(r,l.target)&&n(e))}return r.addEventListener("focusin",l),()=>{r.removeEventListener("focusin",l)}}),[t,n])}function b_({clientId:e,isSelected:t}){const{getBlockRootClientId:n,getBlockIndex:o}=(0,d.useSelect)(Nr),{insertAfterBlock:r,removeBlock:l}=(0,d.useDispatch)(Nr);return(0,p.useRefEffect)((n=>{if(t)return n.addEventListener("keydown",o),n.addEventListener("dragstart",i),()=>{n.removeEventListener("keydown",o),n.removeEventListener("dragstart",i)};function o(t){const{keyCode:o,target:i}=t;o!==zs.ENTER&&o!==zs.BACKSPACE&&o!==zs.DELETE||i!==n||(0,As.isTextField)(i)||(t.preventDefault(),o===zs.ENTER?r(e):l(e))}function i(e){e.preventDefault()}}),[e,t,n,o,r,l])}function v_(e){const{isNavigationMode:t,isBlockSelected:n}=(0,d.useSelect)(Nr),{setNavigationMode:o,selectBlock:r}=(0,d.useDispatch)(Nr);return(0,p.useRefEffect)((l=>{function i(l){t()&&!l.defaultPrevented&&(l.preventDefault(),n(e)?o(!1):r(e))}return l.addEventListener("mousedown",i),()=>{l.removeEventListener("mousedown",i)}}),[e,t,n,o])}function k_(){const e=(0,u.useContext)(Kw);return(0,p.useRefEffect)((t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}}),[e])}function __({clientId:e="",isEnabled:t=!0}={}){const{getEnabledClientIdsTree:n}=ie((0,d.useSelect)(Nr));return(0,p.useRefEffect)((o=>{if(!t)return;const r=t=>{(t.target===o||t.target.classList.contains("is-root-container"))&&(t.defaultPrevented||(t.preventDefault(),n(e).forEach((({clientId:e})=>{const t=o.querySelector(`[data-block="${e}"]`);t&&(t.classList.remove("has-editable-outline"),t.offsetWidth,t.classList.add("has-editable-outline"))}))))};return o.addEventListener("click",r),()=>o.removeEventListener("click",r)}),[t])}function y_(e={},{__unstableIsHtml:t}={}){const{clientId:n,className:o,wrapperProps:r={},isAligned:l,index:i,mode:s,name:a,blockApiVersion:c,blockTitle:d,isSelected:m,isSubtreeDisabled:h,isOutlineEnabled:g,hasOverlay:f,initialPosition:v,blockEditingMode:k,isHighlighted:_,isMultiSelected:E,isPartiallySelected:w,isReusable:S,isDragging:C,hasChildSelected:B,removeOutline:I,isBlockMovingMode:T,canInsertMovingBlock:M,isEditingDisabled:P,hasEditableOutline:R,isTemporarilyEditingAsBlocks:N,defaultClassName:L,templateLock:A}=(0,u.useContext)(i_),O=(0,x.sprintf)((0,x.__)("Block: %s"),d),D="html"!==s||t?"":"-visual",z=(0,p.useMergeRefs)([e.ref,m_({clientId:n,initialPosition:v}),gd(n),f_(n),b_({clientId:n,isSelected:m}),v_(n),g_({isEnabled:g}),k_(),l_({triggerAnimationOnChange:i,clientId:n}),(0,p.useDisabled)({isDisabled:!f}),__({clientId:n,isEnabled:"core/block"===a||"contentOnly"===A})]),V=y(),F=!!V[b]&&eg(a)?{"--wp-admin-theme-color":"var(--wp-bound-block-color)"}:{};return c<2&&V.clientId,{tabIndex:"disabled"===k?-1:0,...r,...e,ref:z,id:`block-${n}${D}`,role:"document","aria-label":O,"data-block":n,"data-type":a,"data-title":d,inert:h?"true":void 0,className:ml()("block-editor-block-list__block",{"wp-block":!l,"has-block-overlay":f,"is-selected":m,"is-highlighted":_,"is-multi-selected":E,"is-partially-selected":w,"is-reusable":S,"is-dragging":C,"has-child-selected":B,"remove-outline":I,"is-block-moving-mode":T,"can-insert-moving-block":M,"is-editing-disabled":P,"has-editable-outline":R,"is-content-locked-temporarily-editing-as-blocks":N},o,e.className,r.className,L),style:{...r.style,...e.style,...F}}}function E_({children:e,isHtml:t,...n}){return(0,s.createElement)("div",{...y_(n,{__unstableIsHtml:t})},e)}function w_({block:{__unstableBlockSource:e},mode:t,isLocked:n,canRemove:o,clientId:r,isSelected:l,isSelectionEnabled:i,className:a,__unstableLayoutClassNames:p,name:m,isValid:h,attributes:g,wrapperProps:f,setAttributes:b,onReplace:v,onInsertBlocksAfter:k,onMerge:_,toggleSelection:y}){var E;const{mayDisplayControls:w,mayDisplayParentControls:S,themeSupportsLayout:C,...x}=(0,u.useContext)(i_),{removeBlock:B}=(0,d.useDispatch)(Nr),I=(0,u.useCallback)((()=>B(r)),[r]),T=Ui()||{};let M=(0,s.createElement)(yf,{name:m,isSelected:l,attributes:g,setAttributes:b,insertBlocksAfter:n?void 0:k,onReplace:o?v:void 0,onRemove:o?I:void 0,mergeBlocks:o?_:void 0,clientId:r,isSelectionEnabled:i,toggleSelection:y,__unstableLayoutClassNames:p,__unstableParentLayout:Object.keys(T).length?T:void 0,mayDisplayControls:w,mayDisplayParentControls:S,blockEditingMode:x.blockEditingMode});const P=(0,c.getBlockType)(m);P?.getEditWrapperProps&&(f=function(e,t){const n={...e,...t};return e?.hasOwnProperty("className")&&t?.hasOwnProperty("className")&&(n.className=ml()(e.className,t.className)),e?.hasOwnProperty("style")&&t?.hasOwnProperty("style")&&(n.style={...e.style,...t.style}),n}(f,P.getEditWrapperProps(g)));const R=f&&!!f["data-align"]&&!C,N=a?.includes("is-position-sticky");let L;if(R&&(M=(0,s.createElement)("div",{className:ml()("wp-block",N&&a),"data-align":f["data-align"]},M)),h)L="html"===t?(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{style:{display:"none"}},M),(0,s.createElement)(E_,{isHtml:!0},(0,s.createElement)(Lf,{clientId:r}))):P?.apiVersion>1?M:(0,s.createElement)(E_,null,M);else{const t=e?(0,c.serializeRawBlock)(e):(0,c.getSaveContent)(P,g);L=(0,s.createElement)(E_,{className:"has-warning"},(0,s.createElement)(If,{clientId:r}),(0,s.createElement)(u.RawHTML,null,(0,As.safeHTML)(t)))}const{"data-align":A,...O}=null!==(E=f)&&void 0!==E?E:{};return O.className=ml()(O.className,A&&C&&`align${A}`,!(A&&N)&&a),(0,s.createElement)(i_.Provider,{value:{wrapperProps:O,isAligned:R,...x}},(0,s.createElement)(Rf,{fallback:(0,s.createElement)(E_,{className:"has-warning"},(0,s.createElement)(Mf,null))},L))}y_.save=c.__unstableGetBlockProps;const S_=(0,d.withDispatch)(((e,t,n)=>{const{updateBlockAttributes:o,insertBlocks:r,mergeBlocks:l,replaceBlocks:i,toggleSelection:s,__unstableMarkLastChangeAsPersistent:a,moveBlocksToPosition:u,removeBlock:d}=e(Nr);return{setAttributes(e){const{getMultiSelectedBlockClientIds:r}=n.select(Nr),l=r(),{clientId:i}=t,s=l.length?l:[i];o(s,e)},onInsertBlocks(e,n){const{rootClientId:o}=t;r(e,n,o)},onInsertBlocksAfter(e){const{clientId:o,rootClientId:l}=t,{getBlockIndex:i}=n.select(Nr),s=i(o);r(e,s+1,l)},onMerge(e){const{clientId:o,rootClientId:i}=t,{getPreviousBlockClientId:s,getNextBlockClientId:a,getBlock:p,getBlockAttributes:m,getBlockName:h,getBlockOrder:g,getBlockIndex:f,getBlockRootClientId:b,canInsertBlockType:v}=n.select(Nr);function k(e,t=!0){const o=b(e),l=g(e),[i]=l;1===l.length&&(0,c.isUnmodifiedBlock)(p(i))?d(e):n.batch((()=>{if(v(h(i),o))u([i],e,o,f(e));else{const n=(0,c.switchToBlockType)(p(i),(0,c.getDefaultBlockName)());n&&n.length&&(r(n,f(e),o,t),d(i,!1))}!g(e).length&&(0,c.isUnmodifiedBlock)(p(e))&&d(e,!1)}))}if(e){if(i){const e=a(i);if(e){if(h(i)!==h(e))return void l(i,e);{const t=m(i),o=m(e);if(Object.keys(t).every((e=>t[e]===o[e])))return void n.batch((()=>{u(g(e),e,i),d(e,!1)}))}}}const e=a(o);if(!e)return;g(e).length?k(e,!1):l(o,e)}else{const e=s(o);if(e)l(e,o);else if(i){const e=s(i);if(e&&h(i)===h(e)){const t=m(i),o=m(e);if(Object.keys(t).every((e=>t[e]===o[e])))return void n.batch((()=>{u(g(i),i,e),d(i,!1)}))}k(i)}else d(o)}},onReplace(e,n,o){e.length&&!(0,c.isUnmodifiedDefaultBlock)(e[e.length-1])&&a();const r=1===e?.length&&Array.isArray(e[0])?e[0]:e;i([t.clientId],r,n,o)},toggleSelection(e){s(e)}}}));w_=(0,p.compose)(S_,(0,_l.withFilters)("editor.BlockListBlock"))(w_);const C_=(0,u.memo)((function(e){const{clientId:t,rootClientId:n}=e,o=(0,d.useSelect)((e=>{const{isBlockSelected:o,getBlockMode:r,isSelectionEnabled:l,getTemplateLock:i,getBlockWithoutAttributes:s,getBlockAttributes:a,canRemoveBlock:u,canMoveBlock:d,getSettings:p,__unstableGetTemporarilyEditingAsBlocks:m,getBlockEditingMode:h,getBlockName:g,isFirstMultiSelectedBlock:f,getMultiSelectedBlockClientIds:b,hasSelectedInnerBlock:v,getBlockIndex:k,isTyping:_,isBlockMultiSelected:y,isBlockSubtreeDisabled:E,isBlockHighlighted:w,__unstableIsFullySelected:S,__unstableSelectionHasUnmergeableBlock:C,isBlockBeingDragged:x,isDragging:B,hasBlockMovingClientId:I,canInsertBlockType:T,__unstableHasActiveBlockOverlayActive:M,__unstableGetEditorMode:P,getSelectedBlocksInitialCaretPosition:R}=ie(e(Nr)),N=s(t);if(!N)return;const{hasBlockSupport:L,getActiveBlockVariation:A}=e(c.store),O=o(t),D=u(t,n),z=d(t,n),V=a(t),{name:F,isValid:H}=N,G=(0,c.getBlockType)(F),U=A(F,V),{outlineMode:$,supportsLayout:j}=p(),W=y(t),K=v(t,!0),Z=_(),q=G?.apiVersion>1,Y=I(),X=h(t);return{mode:r(t),isSelectionEnabled:l(),isLocked:!!i(n),templateLock:i(t),canRemove:D,canMove:z,blockWithoutAttributes:N,name:F,attributes:V,isValid:H,isSelected:O,themeSupportsLayout:j,isTemporarilyEditingAsBlocks:m()===t,blockEditingMode:X,mayDisplayControls:O||f(t)&&b().every((e=>g(e)===F)),mayDisplayParentControls:L(g(t),"__experimentalExposeControlsToChildren",!1)&&v(t),index:k(t),blockApiVersion:G?.apiVersion||1,blockTitle:U?.title||G?.title,isSubtreeDisabled:"disabled"===X&&E(t),isOutlineEnabled:$,hasOverlay:M(t)&&!B(),initialPosition:O&&"edit"===P()?R():void 0,isHighlighted:w(t),isMultiSelected:W,isPartiallySelected:W&&!S()&&!C(),isReusable:(0,c.isReusableBlock)(G),isDragging:x(t),hasChildSelected:K,removeOutline:O&&$&&Z,isBlockMovingMode:!!Y,canInsertMovingBlock:Y&&T(g(Y),n),isEditingDisabled:"disabled"===X,hasEditableOutline:"disabled"!==X&&"disabled"===h(n),className:q?V.className:void 0,defaultClassName:q?(0,c.getBlockDefaultClassName)(F):void 0}}),[t,n]),{mode:r,isSelectionEnabled:l,isLocked:i,canRemove:a,canMove:p,blockWithoutAttributes:m,name:h,attributes:g,isValid:f,isSelected:b,themeSupportsLayout:v,isTemporarilyEditingAsBlocks:k,blockEditingMode:_,mayDisplayControls:y,mayDisplayParentControls:E,index:w,blockApiVersion:S,blockTitle:C,isSubtreeDisabled:x,isOutlineEnabled:B,hasOverlay:I,initialPosition:T,isHighlighted:M,isMultiSelected:P,isPartiallySelected:R,isReusable:N,isDragging:L,hasChildSelected:A,removeOutline:O,isBlockMovingMode:D,canInsertMovingBlock:z,templateLock:V,isEditingDisabled:F,hasEditableOutline:H,className:G,defaultClassName:U}=o,$=(0,u.useMemo)((()=>({...m,attributes:g})),[m,g]);if(!o)return null;const j={clientId:t,className:G,index:w,mode:r,name:h,blockApiVersion:S,blockTitle:C,isSelected:b,isSubtreeDisabled:x,isOutlineEnabled:B,hasOverlay:I,initialPosition:T,blockEditingMode:_,isHighlighted:M,isMultiSelected:P,isPartiallySelected:R,isReusable:N,isDragging:L,hasChildSelected:A,removeOutline:O,isBlockMovingMode:D,canInsertMovingBlock:z,templateLock:V,isEditingDisabled:F,hasEditableOutline:H,isTemporarilyEditingAsBlocks:k,defaultClassName:U,mayDisplayControls:y,mayDisplayParentControls:E,themeSupportsLayout:v};return(0,s.createElement)(i_.Provider,{value:j},(0,s.createElement)(w_,{...e,mode:r,isSelectionEnabled:l,isLocked:i,canRemove:a,canMove:p,block:$,name:h,attributes:g,isValid:f,isSelected:b}))})),x_=window.wp.htmlEntities,B_=[(0,u.createInterpolateElement)((0,x.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,s.createElement)("kbd",null)}),(0,u.createInterpolateElement)((0,x.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,s.createElement)("kbd",null)}),(0,u.createInterpolateElement)((0,x.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,s.createElement)("kbd",null)}),(0,x.__)("Drag files into the editor to automatically insert media blocks."),(0,x.__)("Change a block's type by pressing the block icon on the toolbar.")];const I_=function(){const[e]=(0,u.useState)(Math.floor(Math.random()*B_.length));return(0,s.createElement)(_l.Tip,null,B_[e])},T_=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),M_=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));const P_=function({title:e,icon:t,description:n,blockType:o,className:r}){o&&(w()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:e,icon:t,description:n}=o));const{parentNavBlockClientId:l}=(0,d.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockParentsByBlockName:n}=e(Nr);return{parentNavBlockClientId:n(t(),"core/navigation",!0)[0]}}),[]),{selectBlock:i}=(0,d.useDispatch)(Nr);return(0,s.createElement)("div",{className:ml()("block-editor-block-card",r)},l&&(0,s.createElement)(_l.Button,{onClick:()=>i(l),label:(0,x.__)("Go to parent Navigation block"),style:{minWidth:24,padding:0},icon:(0,x.isRTL)()?T_:M_,size:"small"}),(0,s.createElement)(qh,{icon:t,showColors:!0}),(0,s.createElement)("div",{className:"block-editor-block-card__content"},(0,s.createElement)("h2",{className:"block-editor-block-card__title"},e),n&&(0,s.createElement)("span",{className:"block-editor-block-card__description"},n)))},R_=(0,p.createHigherOrderComponent)((e=>(0,d.withRegistry)((({useSubRegistry:t=!0,registry:n,...o})=>{if(!t)return(0,s.createElement)(e,{registry:n,...o});const[r,l]=(0,u.useState)(null);return(0,u.useEffect)((()=>{const e=(0,d.createRegistry)({},n);e.registerStore(oe,Rr),l(e)}),[n]),r?(0,s.createElement)(d.RegistryProvider,{value:r},(0,s.createElement)(e,{registry:r,...o})):null}))),"withRegistryProvider"),N_=()=>{};function L_({clientId:e=null,value:t,selection:n,onChange:o=N_,onInput:r=N_}){const l=(0,d.useRegistry)(),{resetBlocks:i,resetSelection:s,replaceInnerBlocks:a,setHasControlledInnerBlocks:p,__unstableMarkNextChangeAsNotPersistent:m}=l.dispatch(Nr),{getBlockName:h,getBlocks:g,getSelectionStart:f,getSelectionEnd:b}=l.select(Nr),v=(0,d.useSelect)((t=>!e||t(Nr).areInnerBlocksControlled(e)),[e]),k=(0,u.useRef)({incoming:null,outgoing:[]}),_=(0,u.useRef)(!1),y=()=>{t&&(m(),e?l.batch((()=>{p(e,!0);const n=t.map((e=>(0,c.cloneBlock)(e)));_.current&&(k.current.incoming=n),m(),a(e,n)})):(_.current&&(k.current.incoming=t),i(t)))},E=(0,u.useRef)(r),w=(0,u.useRef)(o);(0,u.useEffect)((()=>{E.current=r,w.current=o}),[r,o]),(0,u.useEffect)((()=>{k.current.outgoing.includes(t)?k.current.outgoing[k.current.outgoing.length-1]===t&&(k.current.outgoing=[]):g(e)!==t&&(k.current.outgoing=[],y(),n&&s(n.selectionStart,n.selectionEnd,n.initialPosition))}),[t,e]),(0,u.useEffect)((()=>{v||(k.current.outgoing=[],y())}),[v]),(0,u.useEffect)((()=>{const{getSelectedBlocksInitialCaretPosition:t,isLastBlockChangePersistent:n,__unstableIsLastBlockChangeIgnored:o,areInnerBlocksControlled:r}=l.select(Nr);let i=g(e),s=n(),a=!1;_.current=!0;const c=l.subscribe((()=>{if(null!==e&&null===h(e))return;if(!(!e||r(e)))return;const l=n(),c=g(e),u=c!==i;if(i=c,u&&(k.current.incoming||o()))return k.current.incoming=null,void(s=l);if(u||a&&!u&&l&&!s){s=l,k.current.outgoing.push(i);const e=s?w.current:E.current,n=wn.has(i);n&&wn.delete(i),e(i,{selection:{selectionStart:f(),selectionEnd:b(),initialPosition:t()},undoIgnore:n})}a=u}),Nr);return()=>{_.current=!1,c()}}),[l,e]),(0,u.useEffect)((()=>()=>{m(),e?(p(e,!1),m(),a(e,[])):i([])}),[])}const A_=window.wp.keyboardShortcuts;function O_(){return null}O_.Register=function(){const{registerShortcut:e}=(0,d.useDispatch)(A_.store);return(0,u.useEffect)((()=>{e({name:"core/block-editor/duplicate",category:"block",description:(0,x.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:(0,x.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:(0,x.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:(0,x.__)("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:(0,x.__)("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:(0,x.__)("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:(0,x.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/multi-text-selection",category:"selection",description:(0,x.__)("Select text across multiple blocks."),keyCombination:{modifier:"shift",character:"arrow"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:(0,x.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:(0,x.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:(0,x.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};const D_=O_,z_=R_((e=>{const{children:t,settings:n,stripExperimentalSettings:o=!1}=e,{__experimentalUpdateSettings:r}=ie((0,d.useDispatch)(Nr));return(0,u.useEffect)((()=>{r({...n,__internalIsInitialized:!0},{stripExperimentalSettings:o,reset:!0})}),[n,o,r]),L_(e),(0,s.createElement)(_l.SlotFillProvider,{passthrough:!0},!n?.__unstableIsPreviewMode&&(0,s.createElement)(D_.Register,null),(0,s.createElement)(hd,null,t))})),V_=e=>(0,s.createElement)(z_,{...e,stripExperimentalSettings:!0},e.children);function F_(){const{getSettings:e,hasSelectedBlock:t,hasMultiSelection:n}=(0,d.useSelect)(Nr),{clearSelectedBlock:o}=(0,d.useDispatch)(Nr),{clearBlockSelection:r}=e();return(0,p.useRefEffect)((e=>{if(r)return e.addEventListener("mousedown",l),()=>{e.removeEventListener("mousedown",l)};function l(r){(t()||n())&&r.target===e&&o()}}),[t,n,o,r])}function H_(e){return(0,s.createElement)("div",{ref:F_(),...e})}function G_(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:o,getSelectedBlockClientId:r,getSelectedBlocksInitialCaretPosition:l,__unstableIsFullySelected:i}=e(Nr);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:o(),selectedBlockClientId:r(),initialPosition:l(),isFullSelection:i()}}function U_(){const{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:o,selectedBlockClientId:r,isFullSelection:l}=(0,d.useSelect)(G_,[]);return(0,p.useRefEffect)((r=>{const{ownerDocument:i}=r,{defaultView:s}=i;if(null==e)return;if(!o||t)return;const{length:a}=n;a<2||l&&(r.contentEditable=!0,r.focus(),s.getSelection().removeAllRanges())}),[o,t,n,r,e,l])}function $_(e,t,n,o){let r,l=As.focus.focusable.find(n);return t&&l.reverse(),l=l.slice(l.indexOf(e)+1),o&&(r=e.getBoundingClientRect()),l.find((function(e){if(!(e.closest("[inert]")||1===e.children.length&&u_(e,e.firstElementChild)&&"true"===e.firstElementChild.getAttribute("contenteditable"))){if(!As.focus.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable)return!1;if(o){const t=e.getBoundingClientRect();if(t.left>=r.right||t.right<=r.left)return!1}return!0}}))}function j_(){const{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getSettings:n,hasMultiSelection:o,__unstableIsFullySelected:r}=(0,d.useSelect)(Nr),{selectBlock:l}=(0,d.useDispatch)(Nr);return(0,p.useRefEffect)((i=>{let s;function a(){s=null}function c(a){if(a.defaultPrevented)return;const{keyCode:c,target:u,shiftKey:d,ctrlKey:p,altKey:m,metaKey:h}=a,g=c===zs.UP,f=c===zs.DOWN,b=c===zs.LEFT,v=c===zs.RIGHT,k=g||b,_=b||v,y=g||f,E=_||y,w=d||p||m||h,S=y?As.isVerticalEdge:As.isHorizontalEdge,{ownerDocument:C}=i,{defaultView:x}=C;if(!E)return;if(o()){if(d)return;if(!r())return;return a.preventDefault(),void(k?l(e()):l(t(),-1))}if(!function(e,t,n){const o=t===zs.UP||t===zs.DOWN,{tagName:r}=e,l=e.getAttribute("type");if(o&&!n)return"INPUT"!==r||!["date","datetime-local","month","number","range","time","week"].includes(l);if("INPUT"===r)return["button","checkbox","number","color","file","image","radio","reset","submit"].includes(l);return"TEXTAREA"!==r}(u,c,w))return;y?s||(s=(0,As.computeCaretRect)(x)):s=null;const B=(0,As.isRTL)(u)?!k:k,{keepCaretInsideBlock:I}=n();if(d)(function(e,t){const n=$_(e,t,i);return n&&p_(n)})(u,k)&&S(u,k)&&(i.contentEditable=!0,i.focus());else if(!y||!(0,As.isVerticalEdge)(u,k)||m&&!(0,As.isHorizontalEdge)(u,B)||I){if(_&&x.getSelection().isCollapsed&&(0,As.isHorizontalEdge)(u,B)&&!I){const e=$_(u,B,i);(0,As.placeCaretAtHorizontalEdge)(e,k),a.preventDefault()}}else{const e=$_(u,k,i,!0);e&&((0,As.placeCaretAtVerticalEdge)(e,m?!k:k,m?void 0:s),a.preventDefault())}}return i.addEventListener("mousedown",a),i.addEventListener("keydown",c),()=>{i.removeEventListener("mousedown",a),i.removeEventListener("keydown",c)}}),[])}function W_(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=(0,d.useSelect)(Nr),{multiSelect:o,selectBlock:r}=(0,d.useDispatch)(Nr),l=(0,A_.__unstableUseShortcutEventMatch)();return(0,p.useRefEffect)((i=>{function s(s){if(!l("core/block-editor/select-all",s))return;const a=t();if(a.length<2&&!(0,As.isEntirelySelected)(s.target))return;s.preventDefault();const[c]=a,u=n(c),d=e(u);a.length!==d.length?o(d[0],d[d.length-1]):u&&(i.ownerDocument.defaultView.getSelection().removeAllRanges(),r(u))}return i.addEventListener("keydown",s),()=>{i.removeEventListener("keydown",s)}}),[])}function K_(e,t){e.contentEditable=t,t&&e.focus()}function Z_(){const{startMultiSelect:e,stopMultiSelect:t}=(0,d.useDispatch)(Nr),{isSelectionEnabled:n,hasSelectedBlock:o,isDraggingBlocks:r,isMultiSelecting:l}=(0,d.useSelect)(Nr);return(0,p.useRefEffect)((i=>{const{ownerDocument:s}=i,{defaultView:a}=s;let c,u;function d(){t(),a.removeEventListener("mouseup",d),u=a.requestAnimationFrame((()=>{if(!o())return;K_(i,!1);const e=a.getSelection();if(e.rangeCount){const t=e.getRangeAt(0),{commonAncestorContainer:n}=t,o=t.cloneRange();c.contains(n)&&(c.focus(),e.removeAllRanges(),e.addRange(o))}}))}function p({buttons:t,target:o,relatedTarget:s}){o.contains(s)||r()||1===t&&(l()||i!==o&&"true"===o.getAttribute("contenteditable")&&n()&&(c=o,e(),a.addEventListener("mouseup",d),K_(i,!0)))}return i.addEventListener("mouseout",p),()=>{i.removeEventListener("mouseout",p),a.removeEventListener("mouseup",d),a.cancelAnimationFrame(u)}}),[e,t,n,o])}function q_(e,t){e.contentEditable!==String(t)&&(e.contentEditable=t,t&&e.focus())}function Y_(e){const t=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;return t?.closest("[data-wp-block-attribute-key]")}function X_(){const{multiSelect:e,selectBlock:t,selectionChange:n}=(0,d.useDispatch)(Nr),{getBlockParents:o,getBlockSelectionStart:r,isMultiSelecting:l}=(0,d.useSelect)(Nr);return(0,p.useRefEffect)((i=>{const{ownerDocument:s}=i,{defaultView:a}=s;function c(s){const c=a.getSelection();if(!c.rangeCount)return;const u=function(e){const{anchorNode:t,anchorOffset:n}=e;return t.nodeType===t.TEXT_NODE||0===n?t:t.childNodes[n-1]}(c),d=function(e){const{focusNode:t,focusOffset:n}=e;return t.nodeType===t.TEXT_NODE||n===t.childNodes.length?t:t.childNodes[n]}(c);if(!i.contains(u)||!i.contains(d))return;const p=s.shiftKey&&"mouseup"===s.type;if(c.isCollapsed&&!p){if("true"===i.contentEditable&&!l()){q_(i,!1);let e=u.nodeType===u.ELEMENT_NODE?u:u.parentElement;e=e?.closest("[contenteditable]"),e?.focus()}return}let m=p_(u),h=p_(d);if(p){const e=r(),t=p_(s.target),n=t!==h;(m===h&&c.isCollapsed||!h||n)&&(h=t),m!==e&&(m=e)}if(void 0===m&&void 0===h)return void q_(i,!1);if(m===h)l()?e(m,m):t(m);else{const t=[...o(m),m],r=[...o(h),h],l=function(e,t){let n=0;for(;e[n]===t[n];)n++;return n}(t,r);if(t[l]!==m||r[l]!==h)return void e(t[l],r[l]);const i=Y_(u),s=Y_(d);if(i&&s){var g,f;const e=c.getRangeAt(0),t=(0,Y.create)({element:i,range:e,__unstableIsEditableTree:!0}),o=(0,Y.create)({element:s,range:e,__unstableIsEditableTree:!0}),r=null!==(g=t.start)&&void 0!==g?g:t.end,l=null!==(f=o.start)&&void 0!==f?f:o.end;n({start:{clientId:m,attributeKey:i.dataset.wpBlockAttributeKey,offset:r},end:{clientId:h,attributeKey:s.dataset.wpBlockAttributeKey,offset:l}})}else e(m,h)}}return s.addEventListener("selectionchange",c),a.addEventListener("mouseup",c),()=>{s.removeEventListener("selectionchange",c),a.removeEventListener("mouseup",c)}}),[e,t,n,o])}function Q_(){const{selectBlock:e}=(0,d.useDispatch)(Nr),{isSelectionEnabled:t,getBlockSelectionStart:n,hasMultiSelection:o}=(0,d.useSelect)(Nr);return(0,p.useRefEffect)((r=>{function l(l){if(!t()||0!==l.button)return;const i=n(),s=p_(l.target);l.shiftKey?i!==s&&(r.contentEditable=!0,r.focus()):o()&&e(s)}return r.addEventListener("mousedown",l),()=>{r.removeEventListener("mousedown",l)}}),[e,t,n,o])}function J_(){const{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,__unstableIsSelectionMergeable:n,hasMultiSelection:o}=(0,d.useSelect)(Nr),{replaceBlocks:r,__unstableSplitSelection:l,removeBlocks:i,__unstableDeleteSelection:s,__unstableExpandSelection:a}=(0,d.useDispatch)(Nr);return(0,p.useRefEffect)((u=>{function d(e){"true"===u.contentEditable&&e.preventDefault()}function p(d){d.defaultPrevented||o()&&(d.keyCode===zs.ENTER?(u.contentEditable=!1,d.preventDefault(),e()?r(t(),(0,c.createBlock)((0,c.getDefaultBlockName)())):l()):d.keyCode===zs.BACKSPACE||d.keyCode===zs.DELETE?(u.contentEditable=!1,d.preventDefault(),e()?i(t()):n()?s(d.keyCode===zs.DELETE):a()):1!==d.key.length||d.metaKey||d.ctrlKey||(u.contentEditable=!1,n()?s(d.keyCode===zs.DELETE):(d.preventDefault(),u.ownerDocument.defaultView.getSelection().removeAllRanges())))}function m(e){o()&&(u.contentEditable=!1,n()?s():(e.preventDefault(),u.ownerDocument.defaultView.getSelection().removeAllRanges()))}return u.addEventListener("beforeinput",d),u.addEventListener("keydown",p),u.addEventListener("compositionstart",m),()=>{u.removeEventListener("beforeinput",d),u.removeEventListener("keydown",p),u.removeEventListener("compositionstart",m)}}),[])}function ey(){const{getBlockName:e}=(0,d.useSelect)(Nr),{getBlockType:t}=(0,d.useSelect)(c.store),{createSuccessNotice:n}=(0,d.useDispatch)(Os.store);return(0,u.useCallback)(((o,r)=>{let l="";if(1===r.length){const n=r[0],i=t(e(n))?.title;l="copy"===o?(0,x.sprintf)((0,x.__)('Copied "%s" to clipboard.'),i):(0,x.sprintf)((0,x.__)('Moved "%s" to clipboard.'),i)}else l="copy"===o?(0,x.sprintf)((0,x._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",r.length),r.length):(0,x.sprintf)((0,x._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",r.length),r.length);n(l,{type:"snackbar"})}),[])}function ty({clipboardData:e}){let t="",n="";try{t=e.getData("text/plain"),n=e.getData("text/html")}catch(t){try{n=e.getData("Text")}catch(e){return}}n=function(e){const t="\x3c!--StartFragment--\x3e",n=e.indexOf(t);if(!(n>-1))return e;const o=(e=e.substring(n+20)).indexOf("\x3c!--EndFragment--\x3e");return o>-1&&(e=e.substring(0,o)),e}(n),n=function(e){const t="<meta charset='utf-8'>";return e.startsWith(t)?e.slice(22):e}(n);const o=(0,As.getFilesFromDataTransfer)(e);return o.length&&!function(e,t){if(t&&1===e?.length&&0===e[0].type.indexOf("image/")){const e=/<\s*img\b/gi;if(1!==t.match(e)?.length)return!0;const n=/<\s*img\b[^>]*\bsrc="file:\/\//i;if(t.match(n))return!0}return!1}(o,n)?{files:o}:{html:n,plainText:t,files:[]}}const ny=Symbol("requiresWrapperOnCopy");function oy(e,t,n){let o=t;const[r]=t;if(r){if(n.select(c.store).getBlockType(r.name)[ny]){const{getBlockRootClientId:e,getBlockName:t,getBlockAttributes:l}=n.select(Nr),i=e(r.clientId),s=t(i);s&&(o=(0,c.createBlock)(s,l(i),o))}}const l=(0,c.serialize)(o);e.clipboardData.setData("text/plain",function(e){e=e.replace(/<br>/g,"\n");return(0,As.__unstableStripHTML)(e).trim().replace(/\n\n+/g,"\n\n")}(l)),e.clipboardData.setData("text/html",l)}function ry(e,t){const{plainText:n,html:o,files:r}=ty(e);let l=[];if(r.length){const e=(0,c.getBlockTransforms)("from");l=r.reduce(((t,n)=>{const o=(0,c.findTransform)(e,(e=>"files"===e.type&&e.isMatch([n])));return o&&t.push(o.transform([n])),t}),[]).flat()}else l=(0,c.pasteHandler)({HTML:o,plainText:n,mode:"BLOCKS",canUserUseUnfilteredHTML:t});return l}function ly(){const e=(0,d.useRegistry)(),{getBlocksByClientId:t,getSelectedBlockClientIds:n,hasMultiSelection:o,getSettings:r,__unstableIsFullySelected:l,__unstableIsSelectionCollapsed:i,__unstableIsSelectionMergeable:s,__unstableGetSelectedBlocksWithPartialSelection:a,canInsertBlockType:c}=(0,d.useSelect)(Nr),{flashBlock:u,removeBlocks:m,replaceBlocks:h,__unstableDeleteSelection:g,__unstableExpandSelection:f,insertBlocks:b}=(0,d.useDispatch)(Nr),v=ey();return(0,p.useRefEffect)((d=>{function p(p){if(p.defaultPrevented)return;const k=n();if(0===k.length)return;if(!o()){const{target:e}=p,{ownerDocument:t}=e;if("copy"===p.type||"cut"===p.type?(0,As.documentHasUncollapsedSelection)(t):(0,As.documentHasSelection)(t))return}if(!d.contains(p.target.ownerDocument.activeElement))return;p.preventDefault();const _=s(),y=i()||l(),E=!y&&!_;if("copy"===p.type||"cut"===p.type)if(1===k.length&&u(k[0]),E)f();else{let n;if(v(p.type,k),y)n=t(k);else{const[e,o]=a();n=[e,...t(k.slice(1,k.length-1)),o]}oy(p,n,e)}if("cut"===p.type)y&&!E?m(k):(p.target.ownerDocument.activeElement.contentEditable=!1,g());else if("paste"===p.type){const{__experimentalCanUserUseUnfilteredHTML:e}=r(),t=ry(p,e);if(1===k.length){const[e]=k;if(t.every((t=>c(t.name,e))))return void b(t,void 0,e)}h(k,t,t.length-1,-1)}}return d.ownerDocument.addEventListener("copy",p),d.ownerDocument.addEventListener("cut",p),d.ownerDocument.addEventListener("paste",p),()=>{d.ownerDocument.removeEventListener("copy",p),d.ownerDocument.removeEventListener("cut",p),d.ownerDocument.removeEventListener("paste",p)}}),[])}function iy(){const[e,t,n]=function(){const e=(0,u.useRef)(),t=(0,u.useRef)(),n=(0,u.useRef)(),{hasMultiSelection:o,getSelectedBlockClientId:r,getBlockCount:l}=(0,d.useSelect)(Nr),{setNavigationMode:i,setLastFocus:a}=ie((0,d.useDispatch)(Nr)),c=(0,d.useSelect)((e=>e(Nr).isNavigationMode()),[]),{getLastFocus:m}=ie((0,d.useSelect)(Nr)),h=c?void 0:"0",g=(0,u.useRef)();function f(t){if(g.current)g.current=null;else if(o())e.current.focus();else if(r())m()?.current.focus();else{i(!0);const n=e.current.ownerDocument===t.target.ownerDocument?e.current:e.current.ownerDocument.defaultView.frameElement,o=t.target.compareDocumentPosition(n)&t.target.DOCUMENT_POSITION_FOLLOWING,r=As.focus.tabbable.find(e.current);r.length&&(o?r[0]:r[r.length-1]).focus()}}const b=(0,s.createElement)("div",{ref:t,tabIndex:h,onFocus:f}),v=(0,s.createElement)("div",{ref:n,tabIndex:h,onFocus:f}),k=(0,p.useRefEffect)((s=>{function c(e){if(e.defaultPrevented)return;if(e.keyCode===zs.ESCAPE&&!o())return e.preventDefault(),void i(!0);if(e.keyCode!==zs.TAB)return;const l=e.shiftKey,a=l?"findPrevious":"findNext";if(!o()&&!r())return void(e.target===s&&i(!0));const c=As.focus.tabbable[a](e.target),u=e.target.closest("[data-block]"),d=u&&c&&(u_(u,c)||d_(u,c));if((0,As.isFormElement)(c)&&d)return;const p=l?t:n;g.current=!0,p.current.focus({preventScroll:!0})}function u(e){a({...m(),current:e.target});const{ownerDocument:t}=s;e.relatedTarget||t.activeElement!==t.body||0!==l()||s.focus()}function d(o){if(o.keyCode!==zs.TAB)return;if("region"===o.target?.getAttribute("role"))return;if(e.current===o.target)return;const r=o.shiftKey?"findPrevious":"findNext",l=As.focus.tabbable[r](o.target);l!==t.current&&l!==n.current||(o.preventDefault(),l.focus({preventScroll:!0}))}const{ownerDocument:p}=s,{defaultView:h}=p;return h.addEventListener("keydown",d),s.addEventListener("keydown",c),s.addEventListener("focusout",u),()=>{h.removeEventListener("keydown",d),s.removeEventListener("keydown",c),s.removeEventListener("focusout",u)}}),[]);return[b,(0,p.useMergeRefs)([e,k]),v]}(),o=(0,d.useSelect)((e=>e(Nr).hasMultiSelection()),[]);return[e,(0,p.useMergeRefs)([t,ly(),J_(),Z_(),X_(),Q_(),U_(),W_(),j_(),(0,p.useRefEffect)((e=>{if(e.tabIndex=0,o)return e.classList.add("has-multi-selection"),e.setAttribute("aria-label",(0,x.__)("Multiple selected blocks")),()=>{e.classList.remove("has-multi-selection"),e.removeAttribute("aria-label")}}),[o])]),n]}const sy=(0,u.forwardRef)((function({children:e,...t},n){const[o,r,l]=iy();return(0,s.createElement)(s.Fragment,null,o,(0,s.createElement)("div",{...t,ref:(0,p.useMergeRefs)([r,n]),className:ml()(t.className,"block-editor-writing-flow")},e),l)}));let ay=null;function cy(e,t,n){const o={};for(const t in e)o[t]=e[t];if(e instanceof n.contentDocument.defaultView.MouseEvent){const e=n.getBoundingClientRect();o.clientX+=e.left,o.clientY+=e.top}const r=new t(e.type,o);o.defaultPrevented&&r.preventDefault();!n.dispatchEvent(r)&&e.preventDefault()}function uy(e){return(0,p.useRefEffect)((()=>{const{defaultView:t}=e;if(!t)return;const{frameElement:n}=t,o=e.documentElement,r=["dragover","mousemove"],l={};for(const e of r)l[e]=e=>{const t=Object.getPrototypeOf(e).constructor.name;cy(e,window[t],n)},o.addEventListener(e,l[e]);return()=>{for(const e of r)o.removeEventListener(e,l[e])}}))}function dy({contentRef:e,children:t,tabIndex:n=0,scale:o=1,frameSize:r=0,expand:l=!1,readonly:i,forwardedRef:a,...c}){const{resolvedAssets:m,isPreviewMode:h}=(0,d.useSelect)((e=>{const t=e(Nr).getSettings();return{resolvedAssets:t.__unstableResolvedAssets,isPreviewMode:t.__unstableIsPreviewMode}}),[]),{styles:g="",scripts:f=""}=m,[b,v]=(0,u.useState)(),[k,_]=(0,u.useState)([]),y=F_(),[E,w,S]=iy(),[C,{height:B}]=(0,p.useResizeObserver)(),I=(0,p.useRefEffect)((e=>{let t;function n(e){e.preventDefault()}function o(){const{contentDocument:o,ownerDocument:r}=e,{documentElement:l}=o;t=o,y(l),_(Array.from(r.body.classList).filter((e=>e.startsWith("admin-color-")||e.startsWith("post-type-")||"wp-embed-responsive"===e))),o.dir=r.dir;for(const e of ay||(ay=Array.from(document.styleSheets).reduce(((e,t)=>{try{t.cssRules}catch(t){return e}const{ownerNode:n,cssRules:o}=t;if(null===n)return e;if(!o)return e;if("wp-reset-editor-styles-css"===n.id)return e;if(!n.id)return e;if(function e(t){return Array.from(t).find((({selectorText:t,conditionText:n,cssRules:o})=>n?e(o):t&&(t.includes(".editor-styles-wrapper")||t.includes(".wp-block"))))}(o)){const t="STYLE"===n.tagName;if(t){const t=n.id.replace("-inline-css","-css"),o=document.getElementById(t);o&&e.push(o.cloneNode(!0))}if(e.push(n.cloneNode(!0)),!t){const t=n.id.replace("-css","-inline-css"),o=document.getElementById(t);o&&e.push(o.cloneNode(!0))}}return e}),[]),ay))o.getElementById(e.id)||(o.head.appendChild(e.cloneNode(!0)),h||console.warn(`${e.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,e));t.addEventListener("dragover",n,!1),t.addEventListener("drop",n,!1)}return e._load=()=>{v(e.contentDocument)},e.addEventListener("load",o),()=>{delete e._load,e.removeEventListener("load",o),t?.removeEventListener("dragover",n),t?.removeEventListener("drop",n)}}),[]),T=(0,p.useDisabled)({isDisabled:!i}),M=(0,p.useMergeRefs)([uy(b),e,y,w,T]),P=`<!doctype html>\n<html>\n\t<head>\n\t\t<meta charset="utf-8">\n\t\t<script>window.frameElement._load()<\/script>\n\t\t<style>html{height:auto!important;min-height:100%;}body{margin:0}</style>\n\t\t${g}\n\t\t${f}\n\t</head>\n\t<body>\n\t\t<script>document.currentScript.parentElement.remove()<\/script>\n\t</body>\n</html>`,[R,N]=(0,u.useMemo)((()=>{const e=URL.createObjectURL(new window.Blob([P],{type:"text/html"}));return[e,()=>URL.revokeObjectURL(e)]}),[P]);(0,u.useEffect)((()=>N),[N]);const L=B*(1-o)/2;return(0,s.createElement)(s.Fragment,null,n>=0&&E,(0,s.createElement)("iframe",{...c,style:{border:0,...c.style,height:l?B:c.style?.height,marginTop:1!==o?-L+r:c.style?.marginTop,marginBottom:1!==o?-L+r:c.style?.marginBottom,transform:1!==o?`scale( ${o} )`:c.style?.transform,transition:"all .3s"},ref:(0,p.useMergeRefs)([a,I]),tabIndex:n,src:R,title:(0,x.__)("Editor canvas"),onKeyDown:e=>{c.onKeyDown?c.onKeyDown(e):e.currentTarget.ownerDocument!==e.target.ownerDocument&&(e.stopPropagation(),cy(e,window.KeyboardEvent,e.currentTarget))}},b&&(0,u.createPortal)((0,s.createElement)("body",{ref:M,className:ml()("block-editor-iframe__body","editor-styles-wrapper",...k)},C,(0,s.createElement)(_l.__experimentalStyleProvider,{document:b},t)),b.documentElement)),n>=0&&S)}const py=(0,u.forwardRef)((function(e,t){return(0,d.useSelect)((e=>e(Nr).getSettings().__internalIsInitialized),[])?(0,s.createElement)(dy,{...e,forwardedRef:t}):null}));var my=n(4529);const hy=my,gy=(my.stringify,my.fromJSON,my.plugin,my.parse,my.list,my.document,my.comment,my.atRule,my.rule,my.decl,my.root,my.CssSyntaxError);my.Declaration,my.Container,my.Processor,my.Document,my.Comment,my.Warning,my.AtRule,my.Result,my.Input,my.Rule,my.Root,my.Node;var fy=n(8036),by=n.n(fy),vy=n(5404),ky=n.n(vy);const _y=new WeakMap;const yy=(e,t="")=>e.map((e=>{if(_y.has(e))return _y.get(e);const n=function({css:e,ignoredSelectors:t=[],baseURL:n},o=""){if(!o&&!n)return e;try{return hy([o&&by()(o,{ignoredSelectors:[...t,o]}),n&&ky()({rootUrl:n})].filter(Boolean)).process(e,{}).css}catch(e){return e instanceof gy?console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",e.message+"\n"+e.showSourceCode(!1)):console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",e),null}}(e,t);return _y.set(e,n),n}));function Ey(e,t){return(0,u.useCallback)((e=>{if(!e)return;const{ownerDocument:n}=e,{defaultView:o,body:r}=n,l=t?n.querySelector(t):r;let i;if(l)i=o?.getComputedStyle(l,null).getPropertyValue("background-color");else{const e=n.createElement("div");e.classList.add("editor-styles-wrapper"),r.appendChild(e),i=o?.getComputedStyle(e,null).getPropertyValue("background-color"),r.removeChild(e)}const s=Vc(i);s.luminance()>.5||0===s.alpha()?r.classList.remove("is-dark-theme"):r.classList.add("is-dark-theme")}),[e,t])}function wy({styles:e,scope:t}){const n=(0,d.useSelect)((e=>ie(e(Nr)).getStyleOverrides()),[]),[o,r]=(0,u.useMemo)((()=>{const o=Object.values(null!=e?e:[]);for(const[e,t]of n){const n=o.findIndex((({id:t})=>e===t)),r={...t,id:e};-1===n?o.push(r):o[n]=r}return[yy(o.filter((e=>e?.css)),t),o.filter((e=>"svgs"===e.__unstableType)).map((e=>e.assets)).join("")]}),[e,n,t]);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("style",{ref:Ey(o,t)}),o.map(((e,t)=>(0,s.createElement)("style",{key:t},e))),(0,s.createElement)(_l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 0 0",width:"0",height:"0",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"},dangerouslySetInnerHTML:{__html:r}}))}let Sy;Hc([Gc,jc]);const Cy=2e3,xy=[];function By({viewportWidth:e,containerWidth:t,minHeight:n,additionalStyles:o=xy}){e||(e=t);const[r,{height:l}]=(0,p.useResizeObserver)(),{styles:i}=(0,d.useSelect)((e=>({styles:e(Nr).getSettings().styles})),[]),a=(0,u.useMemo)((()=>i?[...i,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...o]:i),[i,o]);Sy=Sy||(0,u.memo)(Xw);const c=t/e,m=l?t/(l*c):0;return(0,s.createElement)(_l.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${c})`,aspectRatio:m,maxHeight:l>Cy?Cy*c:void 0,minHeight:n}},(0,s.createElement)(py,{contentRef:(0,p.useRefEffect)((e=>{const{ownerDocument:{documentElement:t}}=e;t.classList.add("block-editor-block-preview__content-iframe"),t.style.position="absolute",t.style.width="100%",e.style.boxSizing="border-box",e.style.position="absolute",e.style.width="100%"}),[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:l,pointerEvents:"none",maxHeight:Cy,minHeight:0!==c&&c<1&&n?n/c:n}},(0,s.createElement)(wy,{styles:a}),r,(0,s.createElement)(Sy,{renderAppender:!1})))}function Iy(e){const[t,{width:n}]=(0,p.useResizeObserver)();return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{style:{position:"relative",width:"100%",height:0}},t),(0,s.createElement)("div",{className:"block-editor-block-preview__container"},!!n&&(0,s.createElement)(By,{...e,containerWidth:n})))}const Ty=(0,u.memo)((function({blocks:e,viewportWidth:t=1200,minHeight:n,additionalStyles:o=[],__experimentalMinHeight:r,__experimentalPadding:l}){r&&(n=r,w()("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),l&&(o=[...o,{css:`body { padding: ${l}px; }`}],w()("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));const i=(0,d.useSelect)((e=>e(Nr).getSettings()),[]),a=(0,u.useMemo)((()=>({...i,focusMode:!1,__unstableIsPreviewMode:!0})),[i]),c=(0,u.useMemo)((()=>Array.isArray(e)?e:[e]),[e]);return e&&0!==e.length?(0,s.createElement)(z_,{value:c,settings:a},(0,s.createElement)(Iy,{viewportWidth:t,minHeight:n,additionalStyles:o})):null}));function My({blocks:e,props:t={},layout:n}){const o=(0,d.useSelect)((e=>e(Nr).getSettings()),[]),r=(0,u.useMemo)((()=>({...o,styles:void 0,focusMode:!1,__unstableIsPreviewMode:!0})),[o]),l=(0,p.useDisabled)(),i=(0,p.useMergeRefs)([t.ref,l]),a=(0,u.useMemo)((()=>Array.isArray(e)?e:[e]),[e]),c=(0,s.createElement)(z_,{value:a,settings:r},(0,s.createElement)(wy,null),(0,s.createElement)(Jw,{renderAppender:!1,layout:n}));return{...t,ref:i,className:ml()(t.className,"block-editor-block-preview__live-content","components-disabled"),children:e?.length?c:null}}const Py=function({item:e}){var t;const{name:n,title:o,icon:r,description:l,initialAttributes:i,example:a}=e,d=(0,c.isReusableBlock)(e),p=(0,u.useMemo)((()=>a?(0,c.getBlockFromExample)(n,{attributes:{...a.attributes,...i},innerBlocks:a.innerBlocks}):(0,c.createBlock)(n,i)),[n,a,i]);return(0,s.createElement)("div",{className:"block-editor-inserter__preview-container"},(0,s.createElement)("div",{className:"block-editor-inserter__preview"},d||a?(0,s.createElement)("div",{className:"block-editor-inserter__preview-content"},(0,s.createElement)(Ty,{blocks:p,viewportWidth:null!==(t=a?.viewportWidth)&&void 0!==t?t:500,additionalStyles:[{css:"body { padding: 24px; }"}]})):(0,s.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},(0,x.__)("No preview available."))),!d&&(0,s.createElement)(P_,{title:o,icon:r,description:l}))},{CompositeItemV2:Ry}=ie(_l.privateApis);const Ny=(0,u.forwardRef)((function({isFirst:e,as:t,children:n,...o},r){return(0,s.createElement)(Ry,{ref:r,role:"option",accessibleWhenDisabled:!0,...o,render:o=>{const r={...o,tabIndex:e?0:o.tabIndex};return t?(0,s.createElement)(t,{...r},n):"function"==typeof n?n(r):(0,s.createElement)(_l.Button,{...r},n)}})})),Ly=(0,s.createElement)(Z.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"}));function Ay({count:e,icon:t,isPattern:n,fadeWhenDisabled:o}){const r=n&&(0,x.__)("Pattern");return(0,s.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},(0,s.createElement)("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip"},(0,s.createElement)(_l.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},(0,s.createElement)(_l.FlexItem,null,t?(0,s.createElement)(qh,{icon:t}):r||(0,x.sprintf)((0,x._n)("%d block","%d blocks",e),e)),(0,s.createElement)(_l.FlexItem,null,(0,s.createElement)(qh,{icon:Ly})),o&&(0,s.createElement)(_l.FlexItem,{className:"block-editor-block-draggable-chip__disabled"},(0,s.createElement)("span",{className:"block-editor-block-draggable-chip__disabled-icon"})))))}const Oy=({isEnabled:e,blocks:t,icon:n,children:o,pattern:r})=>{const l={type:"inserter",blocks:t},i=(0,d.useSelect)((e=>{const{getBlockType:n}=e(c.store);return 1===t.length&&n(t[0].name)?.icon}),[t]),{startDragging:a,stopDragging:u}=ie((0,d.useDispatch)(Nr));return(0,s.createElement)(_l.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:l,onDragStart:e=>{a();const n=r?.type===Fn.user&&"unsynced"!==r?.syncStatus?[(0,c.createBlock)("core/block",{ref:r.id})]:t;e.dataTransfer.setData("text/html",(0,c.serialize)(n))},onDragEnd:()=>{u()},__experimentalDragComponent:(0,s.createElement)(Ay,{count:t.length,icon:n||!r&&i,isPattern:!!r})},(({onDraggableStart:t,onDraggableEnd:n})=>o({draggable:e,onDragStart:e?t:void 0,onDragEnd:e?n:void 0})))};const Dy=(0,u.memo)((function({className:e,isFirst:t,item:n,onSelect:o,onHover:r,isDraggable:l,...i}){const a=(0,u.useRef)(!1),d=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},p=(0,u.useMemo)((()=>[(0,c.createBlock)(n.name,n.initialAttributes,(0,c.createBlocksFromInnerBlocksTemplate)(n.innerBlocks))]),[n.name,n.initialAttributes,n.innerBlocks]),m=(0,c.isReusableBlock)(n)&&"unsynced"!==n.syncStatus||(0,c.isTemplatePart)(n);return(0,s.createElement)(Oy,{isEnabled:l&&!n.isDisabled,blocks:p,icon:n.icon},(({draggable:l,onDragStart:c,onDragEnd:u})=>(0,s.createElement)("div",{className:ml()("block-editor-block-types-list__list-item",{"is-synced":m}),draggable:l,onDragStart:e=>{a.current=!0,c&&(r(null),c(e))},onDragEnd:e=>{a.current=!1,u&&u(e)}},(0,s.createElement)(Ny,{isFirst:t,className:ml()("block-editor-block-types-list__item",e),disabled:n.isDisabled,onClick:e=>{e.preventDefault(),o(n,(0,zs.isAppleOS)()?e.metaKey:e.ctrlKey),r(null)},onKeyDown:e=>{const{keyCode:t}=e;t===zs.ENTER&&(e.preventDefault(),o(n,(0,zs.isAppleOS)()?e.metaKey:e.ctrlKey),r(null))},onMouseEnter:()=>{a.current||r(n)},onMouseLeave:()=>r(null),...i},(0,s.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:d},(0,s.createElement)(qh,{icon:n.icon,showColors:!0})),(0,s.createElement)("span",{className:"block-editor-block-types-list__item-title"},(0,s.createElement)(_l.__experimentalTruncate,{numberOfLines:3},n.title))))))}));const zy=(0,u.forwardRef)((function(e,t){const[n,o]=(0,u.useState)(!1);return(0,u.useEffect)((()=>{n&&(0,vo.speak)((0,x.__)("Use left and right arrow keys to move through blocks"))}),[n]),(0,s.createElement)("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{o(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&o(!1)},...e})})),{CompositeGroupV2:Vy}=ie(_l.privateApis);const Fy=(0,u.forwardRef)((function(e,t){return(0,s.createElement)(Vy,{role:"presentation",ref:t,...e})}));const Hy=function e({items:t=[],onSelect:n,onHover:o=(()=>{}),children:r,label:l,isDraggable:i=!0}){const a="block-editor-block-types-list",u=(0,p.useInstanceId)(e,a);return(0,s.createElement)(zy,{className:a,"aria-label":l},function(e,t){const n=[];for(let o=0,r=e.length;o<r;o+=t)n.push(e.slice(o,o+t));return n}(t,3).map(((e,t)=>(0,s.createElement)(Fy,{key:t},e.map(((e,r)=>(0,s.createElement)(Dy,{key:e.id,item:e,className:(0,c.getBlockMenuDefaultClassName)(e.id),onSelect:n,onHover:o,isDraggable:i&&!e.isDisabled,isFirst:0===t&&0===r,rowId:`${u}-${t}`})))))),r)};const Gy=function({title:e,icon:t,children:n}){return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"block-editor-inserter__panel-header"},(0,s.createElement)("h2",{className:"block-editor-inserter__panel-title"},e),(0,s.createElement)(_l.Icon,{icon:t})),(0,s.createElement)("div",{className:"block-editor-inserter__panel-content"},n))},{CompositeV2:Uy,useCompositeStoreV2:$y}=ie(_l.privateApis);const jy=function({children:e}){const t=$y({focusShift:!0,focusWrap:"horizontal"});return(0,s.createElement)(Uy,{store:t,render:(0,s.createElement)(s.Fragment,null)},e)},Wy=[];const Ky=function({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:o}){const[r,l,i,a]=qg(e,t),c=(0,u.useMemo)((()=>ne(r,"frecency","desc").slice(0,6)),[r]),d=(0,u.useMemo)((()=>r.filter((e=>!e.category))),[r]),m=(0,u.useMemo)((()=>(0,p.pipe)((e=>e.filter((e=>e.category&&"reusable"!==e.category))),(e=>e.reduce(((e,t)=>{const{category:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{})))(r)),[r]),h=(0,u.useMemo)((()=>{const e={...i};return Object.keys(i).forEach((t=>{e[t]=r.filter((e=>(e=>e.name.split("/")[0])(e)===t)),0===e[t].length&&delete e[t]})),e}),[r,i]);(0,u.useEffect)((()=>()=>n(null)),[]);const g=(0,p.useAsyncList)(l),f=l.length===g.length,b=(0,u.useMemo)((()=>Object.entries(i)),[i]),v=(0,p.useAsyncList)(f?b:Wy);return(0,s.createElement)(jy,null,(0,s.createElement)("div",null,o&&!!c.length&&(0,s.createElement)(Gy,{title:(0,x._x)("Most used","blocks")},(0,s.createElement)(Hy,{items:c,onSelect:a,onHover:n,label:(0,x._x)("Most used","blocks")})),g.map((e=>{const t=m[e.slug];return t&&t.length?(0,s.createElement)(Gy,{key:e.slug,title:e.title,icon:e.icon},(0,s.createElement)(Hy,{items:t,onSelect:a,onHover:n,label:e.title})):null})),f&&d.length>0&&(0,s.createElement)(Gy,{className:"block-editor-inserter__uncategorized-blocks-panel",title:(0,x.__)("Uncategorized")},(0,s.createElement)(Hy,{items:d,onSelect:a,onHover:n,label:(0,x.__)("Uncategorized")})),v.map((([e,t])=>{const o=h[e];return o&&o.length?(0,s.createElement)(Gy,{key:e,title:t.title,icon:t.icon},(0,s.createElement)(Hy,{items:o,onSelect:a,onHover:n,label:t.title})):null}))))};function Zy({selectedCategory:e,patternCategories:t,onClickCategory:n}){const o="block-editor-block-patterns-explorer__sidebar";return(0,s.createElement)("div",{className:`${o}__categories-list`},t.map((({name:t,label:r})=>(0,s.createElement)(_l.Button,{key:t,label:r,className:`${o}__categories-list__item`,isPressed:e===t,onClick:()=>{n(t)}},r))))}function qy({searchValue:e,setSearchValue:t}){return(0,s.createElement)("div",{className:"block-editor-block-patterns-explorer__search"},(0,s.createElement)(_l.SearchControl,{__nextHasNoMarginBottom:!0,onChange:t,value:e,label:(0,x.__)("Search for patterns"),placeholder:(0,x.__)("Search")}))}const Yy=function({selectedCategory:e,patternCategories:t,onClickCategory:n,searchValue:o,setSearchValue:r}){return(0,s.createElement)("div",{className:"block-editor-block-patterns-explorer__sidebar"},(0,s.createElement)(qy,{searchValue:o,setSearchValue:r}),!o&&(0,s.createElement)(Zy,{selectedCategory:e,patternCategories:t,onClickCategory:n}))};function Xy({currentPage:e,numPages:t,changePage:n,totalItems:o}){return(0,s.createElement)(_l.__experimentalVStack,{className:"block-editor-patterns__grid-pagination-wrapper"},(0,s.createElement)(_l.__experimentalText,{variant:"muted"},(0,x.sprintf)((0,x._n)("%s item","%s items",o),o)),t>1&&(0,s.createElement)(_l.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",className:"block-editor-patterns__grid-pagination"},(0,s.createElement)(_l.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-previous"},(0,s.createElement)(_l.Button,{variant:"tertiary",onClick:()=>n(1),disabled:1===e,"aria-label":(0,x.__)("First page"),__experimentalIsFocusable:!0},(0,s.createElement)("span",null,"«")),(0,s.createElement)(_l.Button,{variant:"tertiary",onClick:()=>n(e-1),disabled:1===e,"aria-label":(0,x.__)("Previous page"),__experimentalIsFocusable:!0},(0,s.createElement)("span",null,"‹"))),(0,s.createElement)(_l.__experimentalText,{variant:"muted"},(0,x.sprintf)((0,x._x)("%1$s of %2$s","paging"),e,t)),(0,s.createElement)(_l.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-next"},(0,s.createElement)(_l.Button,{variant:"tertiary",onClick:()=>n(e+1),disabled:e===t,"aria-label":(0,x.__)("Next page"),__experimentalIsFocusable:!0},(0,s.createElement)("span",null,"›")),(0,s.createElement)(_l.Button,{variant:"tertiary",onClick:()=>n(t),disabled:e===t,"aria-label":(0,x.__)("Last page"),size:"default",__experimentalIsFocusable:!0},(0,s.createElement)("span",null,"»")))))}const{CompositeV2:Qy,CompositeItemV2:Jy,useCompositeStoreV2:eE}=ie(_l.privateApis),tE=({showTooltip:e,title:t,children:n})=>e?(0,s.createElement)(_l.Tooltip,{text:t},n):(0,s.createElement)(s.Fragment,null,n);function nE({id:e,isDraggable:t,pattern:n,onClick:o,onHover:r,showTooltip:l}){const[i,a]=(0,u.useState)(!1),{blocks:c,viewportWidth:d}=n,m=`block-editor-block-patterns-list__item-description-${(0,p.useInstanceId)(nE)}`;return(0,s.createElement)(Oy,{isEnabled:t,blocks:c,pattern:n},(({draggable:t,onDragStart:u,onDragEnd:p})=>(0,s.createElement)("div",{className:"block-editor-block-patterns-list__list-item",draggable:t,onDragStart:e=>{a(!0),u&&(r?.(null),u(e))},onDragEnd:e=>{a(!1),p&&p(e)}},(0,s.createElement)(tE,{showTooltip:l&&!n.type!==Fn.user,title:n.title},(0,s.createElement)(Jy,{render:(0,s.createElement)("div",{role:"option","aria-label":n.title,"aria-describedby":n.description?m:void 0,className:ml()("block-editor-block-patterns-list__item",{"block-editor-block-patterns-list__list-item-synced":n.type===Fn.user&&!n.syncStatus})}),id:e,onClick:()=>{o(n,c),r?.(null)},onMouseEnter:()=>{i||r?.(n)},onMouseLeave:()=>r?.(null)},(0,s.createElement)(Ty,{blocks:c,viewportWidth:d}),(0,s.createElement)(_l.__experimentalHStack,{className:"block-editor-patterns__pattern-details"},n.type===Fn.user&&!n.syncStatus&&(0,s.createElement)("div",{className:"block-editor-patterns__pattern-icon-wrapper"},(0,s.createElement)(Ti,{className:"block-editor-patterns__pattern-icon",icon:q})),(!l||n.type===Fn.user)&&(0,s.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},n.title)),!!n.description&&(0,s.createElement)(_l.VisuallyHidden,{id:m},n.description))))))}function oE(){return(0,s.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}const rE=(0,u.forwardRef)((function({isDraggable:e,blockPatterns:t,shownPatterns:n,onHover:o,onClickPattern:r,orientation:l,label:i=(0,x.__)("Block patterns"),showTitlesAsTooltip:a,pagingProps:c},d){const p=eE({orientation:l}),{setActiveId:m}=p;return(0,u.useEffect)((()=>{m(void 0)}),[m,n,t]),(0,s.createElement)(Qy,{store:p,role:"listbox",className:"block-editor-block-patterns-list","aria-label":i,ref:d},t.map((t=>n.includes(t)?(0,s.createElement)(nE,{key:t.name,id:t.name,pattern:t,onClick:r,onHover:o,isDraggable:e,showTooltip:a}):(0,s.createElement)(oE,{key:t.name}))),c&&(0,s.createElement)(Xy,{...c}))}));const lE=function({rootClientId:e="",insertionIndex:t,clientId:n,isAppender:o,onSelect:r,shouldFocusBlock:l=!0,selectBlockOnInsert:i=!0}){const{getSelectedBlock:s}=(0,d.useSelect)(Nr),{destinationRootClientId:a,destinationIndex:p}=(0,d.useSelect)((r=>{const{getSelectedBlockClientId:l,getBlockRootClientId:i,getBlockIndex:s,getBlockOrder:a}=r(Nr),c=l();let u,d=e;return void 0!==t?u=t:n?u=s(n):!o&&c?(d=i(c),u=s(c)+1):u=a(d).length,{destinationRootClientId:d,destinationIndex:u}}),[e,t,n,o]),{replaceBlocks:m,insertBlocks:h,showInsertionPoint:g,hideInsertionPoint:f}=(0,d.useDispatch)(Nr),b=(0,u.useCallback)(((e,t,n=!1)=>{const u=s();!o&&u&&(0,c.isUnmodifiedDefaultBlock)(u)?m(u.clientId,e,null,l||n?0:null,t):h(e,p,a,i,l||n?0:null,t);const d=Array.isArray(e)?e.length:1,g=(0,x.sprintf)((0,x._n)("%d block added.","%d blocks added.",d),d);(0,vo.speak)(g),r&&r(e)}),[o,s,m,h,a,p,r,l,i]),v=(0,u.useCallback)((e=>{e?g(a,p):f()}),[g,f,a,p]);return[a,b,v]},iE=(e,t)=>{const{patternCategories:n,patterns:o,userPatternCategories:r}=(0,d.useSelect)((e=>{const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(Nr),{__experimentalUserPatternCategories:r,__experimentalBlockPatternCategories:l}=o();return{patterns:n(t),userPatternCategories:r,patternCategories:l}}),[t]),l=(0,u.useMemo)((()=>{const e=[...n];return r?.forEach((t=>{e.find((e=>e.name===t.name))||e.push(t)})),e}),[n,r]),{createSuccessNotice:i}=(0,d.useDispatch)(Os.store),s=(0,u.useCallback)(((t,n)=>{const o=t.type===Fn.user&&"unsynced"!==t.syncStatus?[(0,c.createBlock)("core/block",{ref:t.id})]:n;e((null!=o?o:[]).map((e=>(0,c.cloneBlock)(e))),t.name),i((0,x.sprintf)((0,x.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar",id:"block-pattern-inserted-notice"})}),[i,e]);return[o,l,s]},sE=20,aE=5;function cE(e,t,n,o=""){const[r,l]=(0,u.useState)(1),i=(0,p.usePrevious)(t),s=(0,p.usePrevious)(o);i===t&&s===o||1===r||l(1);const a=e.length,c=r-1,d=(0,u.useMemo)((()=>e.slice(c*sE,c*sE+sE)),[c,e]),m=(0,p.useAsyncList)(d,{step:aE}),h=Math.ceil(e.length/sE);return(0,u.useEffect)((function(){const e=(0,As.getScrollContainer)(n?.current);e?.scrollTo(0,0)}),[t,n]),{totalItems:a,categoryPatterns:d,categoryPatternsAsyncList:m,numPages:h,changePage:e=>{const t=(0,As.getScrollContainer)(n?.current);t?.scrollTo(0,0),l(e)},currentPage:r}}function uE({filterValue:e,filteredBlockPatternsLength:t}){return e?(0,s.createElement)(_l.__experimentalHeading,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count"},(0,x.sprintf)((0,x._n)("%d pattern found","%d patterns found",t),t)):null}const dE=function({searchValue:e,selectedCategory:t,patternCategories:n,rootClientId:o}){const r=(0,u.useRef)(),l=(0,p.useDebounce)(vo.speak,500),[i,a]=lE({rootClientId:o,shouldFocusBlock:!0}),[c,,d]=iE(a,i),m=(0,u.useMemo)((()=>n.map((e=>e.name))),[n]),h=(0,u.useMemo)((()=>{const n=c.filter((e=>{if(t===Gn.name)return!0;if(t===Un.name&&e.type===Fn.user)return!0;if("uncategorized"===t){const t=e.categories.some((e=>m.includes(e)));return!e.categories?.length||!t}return e.categories?.includes(t)}));return e?Kg(n,e):n}),[e,c,t,m]);(0,u.useEffect)((()=>{if(!e)return;const t=h.length,n=(0,x.sprintf)((0,x._n)("%d result found.","%d results found.",t),t);l(n)}),[e,l,h.length]);const g=cE(h,t,r),[f,b]=(0,u.useState)(e);e!==f&&(b(e),g.changePage(1));const v=!!h?.length;return(0,s.createElement)("div",{className:"block-editor-block-patterns-explorer__list",ref:r},(0,s.createElement)(uE,{filterValue:e,filteredBlockPatternsLength:h.length}),(0,s.createElement)(jy,null,v&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(rE,{shownPatterns:g.categoryPatternsAsyncList,blockPatterns:g.categoryPatterns,onClickPattern:d,isDraggable:!1}),(0,s.createElement)(Xy,{...g}))))};function pE(e,t="all"){const[n,o]=iE(void 0,e),r=(0,u.useMemo)((()=>"all"===t?n:n.filter((e=>!$n(e,t)))),[t,n]),l=(0,u.useMemo)((()=>{const e=o.filter((e=>r.some((t=>t.categories?.includes(e.name))))).sort(((e,t)=>e.label.localeCompare(t.label)));return r.some((e=>!function(e,t){return!(!e.categories||!e.categories.length)&&e.categories.some((e=>t.some((t=>t.name===e))))}(e,o)))&&!e.find((e=>"uncategorized"===e.name))&&e.push({name:"uncategorized",label:(0,x._x)("Uncategorized")}),r.some((e=>e.type===Fn.user))&&e.unshift(Un),r.length>0&&e.unshift({name:Gn.name,label:Gn.label}),(0,vo.speak)((0,x.sprintf)((0,x._n)("%d category button displayed.","%d category buttons displayed.",e.length),e.length)),e}),[o,r]);return l}function mE({initialCategory:e,rootClientId:t}){const[n,o]=(0,u.useState)(""),[r,l]=(0,u.useState)("all"),[i,a]=(0,u.useState)(e?.name),c=pE(t,r);return(0,s.createElement)("div",{className:"block-editor-block-patterns-explorer"},(0,s.createElement)(Yy,{selectedCategory:i,patternCategories:c,onClickCategory:a,searchValue:n,setSearchValue:o,patternSourceFilter:r,setPatternSourceFilter:l}),(0,s.createElement)(dE,{searchValue:n,selectedCategory:i,patternCategories:c,patternSourceFilter:r,rootClientId:t}))}const hE=function({onModalClose:e,...t}){return(0,s.createElement)(_l.Modal,{title:(0,x.__)("Patterns"),onRequestClose:e,isFullScreen:!0},(0,s.createElement)(mE,{...t}))};function gE({title:e}){return(0,s.createElement)(_l.__experimentalVStack,{spacing:0},(0,s.createElement)(_l.__experimentalView,null,(0,s.createElement)(_l.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3},(0,s.createElement)(_l.__experimentalHStack,{spacing:2},(0,s.createElement)(_l.__experimentalNavigatorBackButton,{style:{minWidth:24,padding:0},icon:(0,x.isRTL)()?T_:M_,isSmall:!0,"aria-label":(0,x.__)("Navigate to the previous view")}),(0,s.createElement)(_l.__experimentalSpacer,null,(0,s.createElement)(_l.__experimentalHeading,{level:5},e))))))}function fE({categories:e,children:t}){return(0,s.createElement)(_l.__experimentalNavigatorProvider,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation"},(0,s.createElement)(_l.__experimentalNavigatorScreen,{path:"/"},(0,s.createElement)(_l.__experimentalItemGroup,null,e.map((e=>(0,s.createElement)(_l.__experimentalNavigatorButton,{key:e.name,path:`/category/${e.name}`,as:_l.__experimentalItem,isAction:!0},(0,s.createElement)(_l.__experimentalHStack,null,(0,s.createElement)(_l.FlexBlock,null,e.label),(0,s.createElement)(Ti,{icon:(0,x.isRTL)()?M_:T_}))))))),e.map((e=>(0,s.createElement)(_l.__experimentalNavigatorScreen,{key:e.name,path:`/category/${e.name}`},(0,s.createElement)(gE,{title:(0,x.__)("Back")}),t(e)))))}const bE=e=>"all"!==e,vE=e=>e.name===Un.name;function kE({setPatternSyncFilter:e,setPatternSourceFilter:t,patternSyncFilter:n,patternSourceFilter:o,scrollContainerRef:r,category:l}){const i=l.name===Un.name?Fn.user:o,a=bE(i),c=vE(l),d=(0,u.useMemo)((()=>[{value:"all",label:(0,x._x)("All","patterns")},{value:Hn.full,label:(0,x._x)("Synced","patterns"),disabled:a},{value:Hn.unsynced,label:(0,x._x)("Not synced","patterns"),disabled:a}]),[a]),p=(0,u.useMemo)((()=>[{value:"all",label:(0,x._x)("All","patterns"),disabled:c},{value:Fn.directory,label:(0,x.__)("Pattern Directory"),disabled:c},{value:Fn.theme,label:(0,x.__)("Theme & Plugins"),disabled:c},{value:Fn.user,label:(0,x.__)("User")}]),[c]);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.DropdownMenu,{popoverProps:{placement:"right-end"},label:"Filter patterns",icon:(0,s.createElement)(Ti,{icon:(0,s.createElement)(_l.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(_l.Path,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"#1E1E1E"}))})},(()=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.MenuGroup,{label:(0,x.__)("Source")},(0,s.createElement)(_l.MenuItemsChoice,{choices:p,onSelect:n=>{var o;t(o=n),bE(o)&&e("all"),r.current?.scrollTo(0,0)},value:i})),(0,s.createElement)(_l.MenuGroup,{label:(0,x.__)("Type")},(0,s.createElement)(_l.MenuItemsChoice,{choices:d,onSelect:t=>{e(t),r.current?.scrollTo(0,0)},value:n})),(0,s.createElement)("div",{className:"block-editor-tool-selector__help"},(0,u.createInterpolateElement)((0,x.__)("Patterns are available from the <Link>WordPress.org Pattern Directory</Link>, bundled in the active theme, or created by users on this site. Only patterns created on this site can be synced."),{Link:(0,s.createElement)(_l.ExternalLink,{href:(0,x.__)("https://wordpress.org/patterns/")})}))))))}const _E=()=>{};function yE({rootClientId:e,onInsert:t,onHover:n=_E,category:o,showTitlesAsTooltip:r}){const[l,,i]=iE(t,e),[a,c]=(0,u.useState)("all"),[d,p]=(0,u.useState)("all"),m=pE(e,d),h=(0,u.useRef)(),g=(0,u.useMemo)((()=>l.filter((e=>!$n(e,d,a)&&(o.name===Gn.name||(o.name===Un.name&&e.type===Fn.user||("uncategorized"===o.name?!e.categories||!e.categories.some((e=>m.some((t=>t.name===e)))):e.categories?.includes(o.name))))))),[l,m,o.name,d,a]),f=cE(g,o,h),{changePage:b}=f;(0,u.useEffect)((()=>()=>n(null)),[]);const v=(0,u.useCallback)((e=>{c(e),b(1)}),[c,b]),k=(0,u.useCallback)((e=>{p(e),b(1)}),[p,b]);return(0,s.createElement)("div",{className:"block-editor-inserter__patterns-category-panel"},(0,s.createElement)(_l.__experimentalVStack,{spacing:2,className:"block-editor-inserter__patterns-category-panel-header"},(0,s.createElement)(_l.__experimentalHStack,null,(0,s.createElement)(_l.FlexBlock,null,(0,s.createElement)(_l.__experimentalHeading,{level:4,as:"div"},o.label)),(0,s.createElement)(kE,{patternSyncFilter:a,patternSourceFilter:d,setPatternSyncFilter:v,setPatternSourceFilter:k,scrollContainerRef:h,category:o})),!g.length&&(0,s.createElement)(_l.__experimentalText,{variant:"muted",className:"block-editor-inserter__patterns-category-no-results"},(0,x.__)("No results found"))),g.length>0&&(0,s.createElement)(rE,{ref:h,shownPatterns:f.categoryPatternsAsyncList,blockPatterns:f.categoryPatterns,onClickPattern:i,onHover:n,label:o.label,orientation:"vertical",category:o.name,isDraggable:!0,showTitlesAsTooltip:r,patternFilter:d,pagingProps:f}))}const EE=function({onSelectCategory:e,selectedCategory:t,onInsert:n,rootClientId:o}){const[r,l]=(0,u.useState)(!1),i=pE(o),a=t||i[0],c=(0,p.useViewportMatch)("medium","<");return(0,s.createElement)(s.Fragment,null,!c&&(0,s.createElement)("div",{className:"block-editor-inserter__block-patterns-tabs-container"},(0,s.createElement)("nav",{"aria-label":(0,x.__)("Block pattern categories"),className:"block-editor-inserter__block-patterns-tabs"},(0,s.createElement)(_l.__experimentalItemGroup,{role:"list"},i.map((n=>(0,s.createElement)(_l.__experimentalItem,{role:"listitem",key:n.name,onClick:()=>e(n),className:n===t?"block-editor-inserter__patterns-category block-editor-inserter__patterns-selected-category":"block-editor-inserter__patterns-category","aria-label":n.label,"aria-current":n===t?"true":void 0},(0,s.createElement)(_l.__experimentalHStack,null,(0,s.createElement)(_l.FlexBlock,null,n.label),(0,s.createElement)(Ti,{icon:(0,x.isRTL)()?M_:T_}))))),(0,s.createElement)("div",{role:"listitem"},(0,s.createElement)(_l.Button,{className:"block-editor-inserter__patterns-explore-button",onClick:()=>l(!0),variant:"secondary"},(0,x.__)("Explore all patterns")))))),c&&(0,s.createElement)(fE,{categories:i},(e=>(0,s.createElement)(yE,{key:e.name,onInsert:n,rootClientId:o,category:e,showTitlesAsTooltip:!1}))),r&&(0,s.createElement)(hE,{initialCategory:a,patternCategories:i,onModalClose:()=>l(!1),rootClientId:o}))};function wE({rootClientId:e,onInsert:t,onHover:n,category:o,showTitlesAsTooltip:r,patternFilter:l}){const i=(0,u.useRef)();return(0,u.useEffect)((()=>{const e=setTimeout((()=>{const[e]=As.focus.tabbable.find(i.current);e?.focus()}));return()=>clearTimeout(e)}),[o]),(0,s.createElement)("div",{ref:i,className:"block-editor-inserter__patterns-category-dialog"},(0,s.createElement)(yE,{key:o.name,rootClientId:e,onInsert:t,onHover:n,category:o,showTitlesAsTooltip:r,patternFilter:l}))}function SE(e){const[t,n]=(0,u.useState)([]),o=(0,d.useSelect)((e=>ie(e(Nr)).getInserterMediaCategories()),[]),{canInsertImage:r,canInsertVideo:l,canInsertAudio:i}=(0,d.useSelect)((t=>{const{canInsertBlockType:n}=t(Nr);return{canInsertImage:n("core/image",e),canInsertVideo:n("core/video",e),canInsertAudio:n("core/audio",e)}}),[e]);return(0,u.useEffect)((()=>{(async()=>{const e=[];if(!o)return;const t=new Map(await Promise.all(o.map((async e=>{if(e.isExternalResource)return[e.name,!0];let t=[];try{t=await e.fetch({per_page:1})}catch(e){}return[e.name,!!t.length]})))),s={image:r,video:l,audio:i};o.forEach((n=>{s[n.mediaType]&&t.get(n.name)&&e.push(n)})),e.length&&n(e)})()}),[r,l,i,o]),t}const CE=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})),xE={image:"img",video:"video",audio:"audio"};function BE(e,t){const n={id:e.id||void 0,caption:e.caption||void 0},o=e.url,r=e.alt||void 0;"image"===t?(n.url=o,n.alt=r):["video","audio"].includes(t)&&(n.src=o);const l=xE[t],i=(0,s.createElement)(l,{src:e.previewUrl||o,alt:r,controls:"audio"===t||void 0,inert:"true",onError:({currentTarget:t})=>{t.src===e.previewUrl&&(t.src=o)}});return[(0,c.createBlock)(`core/${t}`,n),i]}const IE=["image"],TE=25,ME={position:"bottom left",className:"block-editor-inserter__media-list__item-preview-options__popover"},{CompositeItemV2:PE}=ie(_l.privateApis);function RE({category:e,media:t}){if(!e.getReportUrl)return null;const n=e.getReportUrl(t);return(0,s.createElement)(_l.DropdownMenu,{className:"block-editor-inserter__media-list__item-preview-options",label:(0,x.__)("Options"),popoverProps:ME,icon:Ef},(()=>(0,s.createElement)(_l.MenuGroup,null,(0,s.createElement)(_l.MenuItem,{onClick:()=>window.open(n,"_blank").focus(),icon:CE},(0,x.sprintf)((0,x.__)("Report %s"),e.mediaType)))))}function NE({onClose:e,onSubmit:t}){return(0,s.createElement)(_l.Modal,{title:(0,x.__)("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal"},(0,s.createElement)(_l.__experimentalVStack,{spacing:3},(0,s.createElement)("p",null,(0,x.__)("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")),(0,s.createElement)("p",null,(0,x.__)("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation."))),(0,s.createElement)(_l.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1},(0,s.createElement)(_l.FlexItem,null,(0,s.createElement)(_l.Button,{variant:"tertiary",onClick:e},(0,x.__)("Cancel"))),(0,s.createElement)(_l.FlexItem,null,(0,s.createElement)(_l.Button,{variant:"primary",onClick:t},(0,x.__)("Insert")))))}function LE({media:e,onClick:t,category:n}){const[o,r]=(0,u.useState)(!1),[l,i]=(0,u.useState)(!1),[a,p]=(0,u.useState)(!1),[m,h]=(0,u.useMemo)((()=>BE(e,n.mediaType)),[e,n.mediaType]),{createErrorNotice:g,createSuccessNotice:f}=(0,d.useDispatch)(Os.store),b=(0,d.useSelect)((e=>e(Nr).getSettings().mediaUpload),[]),v=(0,u.useCallback)((e=>{if(a)return;const n=(0,c.cloneBlock)(e),{id:o,url:l,caption:i}=n.attributes;o?t(n):(p(!0),window.fetch(l).then((e=>e.blob())).then((e=>{b({filesList:[e],additionalData:{caption:i},onFileChange([e]){(0,Ls.isBlobURL)(e.url)||(t({...n,attributes:{...n.attributes,id:e.id,url:e.url}}),f((0,x.__)("Image uploaded and inserted."),{type:"snackbar"}),p(!1))},allowedTypes:IE,onError(e){g(e,{type:"snackbar"}),p(!1)}})})).catch((()=>{r(!0),p(!1)})))}),[a,t,b,g,f]),k="string"==typeof e.title?e.title:e.title?.rendered||(0,x.__)("no title");let _;if(k.length>TE){const e="...";_=k.slice(0,TE-e.length)+e}const y=(0,u.useCallback)((()=>i(!0)),[]),E=(0,u.useCallback)((()=>i(!1)),[]);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Oy,{isEnabled:!0,blocks:[m]},(({draggable:t,onDragStart:o,onDragEnd:r})=>(0,s.createElement)("div",{className:ml()("block-editor-inserter__media-list__list-item",{"is-hovered":l}),draggable:t,onDragStart:o,onDragEnd:r},(0,s.createElement)("div",{onMouseEnter:y,onMouseLeave:E},(0,s.createElement)(_l.Tooltip,{text:_||k},(0,s.createElement)(PE,{render:(0,s.createElement)("div",{"aria-label":k,role:"option",className:"block-editor-inserter__media-list__item"}),onClick:()=>v(m)},(0,s.createElement)("div",{className:"block-editor-inserter__media-list__item-preview"},h,a&&(0,s.createElement)("div",{className:"block-editor-inserter__media-list__item-preview-spinner"},(0,s.createElement)(_l.Spinner,null))))),!a&&(0,s.createElement)(RE,{category:n,media:e}))))),o&&(0,s.createElement)(NE,{onClose:()=>r(!1),onSubmit:()=>{t((0,c.cloneBlock)(m)),f((0,x.__)("Image inserted."),{type:"snackbar"}),r(!1)}}))}const{CompositeV2:AE,useCompositeStoreV2:OE}=ie(_l.privateApis);const DE=function({mediaList:e,category:t,onClick:n,label:o=(0,x.__)("Media List")}){const r=OE();return(0,s.createElement)(AE,{store:r,role:"listbox",className:"block-editor-inserter__media-list","aria-label":o},e.map(((e,o)=>(0,s.createElement)(LE,{key:e.id||e.sourceId||o,media:e,category:t,onClick:n}))))};const zE=function(){return(0,s.createElement)("div",{className:"block-editor-inserter__no-results"},(0,s.createElement)(Ti,{className:"block-editor-inserter__no-results-icon",icon:Zh}),(0,s.createElement)("p",null,(0,x.__)("No results found.")))},VE=10;function FE({rootClientId:e,onInsert:t,category:n}){const o=(0,u.useRef)();return(0,u.useEffect)((()=>{const e=setTimeout((()=>{const[e]=As.focus.tabbable.find(o.current);e?.focus()}));return()=>clearTimeout(e)}),[n]),(0,s.createElement)("div",{ref:o,className:"block-editor-inserter__media-dialog"},(0,s.createElement)(HE,{rootClientId:e,onInsert:t,category:n}))}function HE({rootClientId:e,onInsert:t,category:n}){const[o,r,l]=(0,p.useDebouncedInput)(),{mediaList:i,isLoading:a}=function(e,t={}){const[n,o]=(0,u.useState)(),[r,l]=(0,u.useState)(!1),i=(0,u.useRef)();return(0,u.useEffect)((()=>{(async()=>{const n=JSON.stringify({category:e.name,...t});i.current=n,l(!0),o([]);const r=await(e.fetch?.(t));n===i.current&&(o(r),l(!1))})()}),[e.name,...Object.values(t)]),{mediaList:n,isLoading:r}}(n,{per_page:l?20:VE,search:l}),c="block-editor-inserter__media-panel",d=n.labels.search_items||(0,x.__)("Search");return(0,s.createElement)("div",{className:c},(0,s.createElement)(_l.SearchControl,{className:`${c}-search`,onChange:r,value:o,label:d,placeholder:d}),a&&(0,s.createElement)("div",{className:`${c}-spinner`},(0,s.createElement)(_l.Spinner,null)),!a&&!i?.length&&(0,s.createElement)(zE,null),!a&&!!i?.length&&(0,s.createElement)(DE,{rootClientId:e,onClick:t,mediaList:i,category:n}))}const GE=["image","video","audio"];const UE=function({rootClientId:e,selectedCategory:t,onSelectCategory:n,onInsert:o}){const r=SE(e),l=(0,p.useViewportMatch)("medium","<"),i="block-editor-inserter__media-tabs",a=(0,u.useCallback)((e=>{if(!e?.url)return;const[t]=BE(e,e.type);o(t)}),[o]),c=(0,u.useMemo)((()=>r.map((e=>({...e,label:e.labels.name})))),[r]);return(0,s.createElement)(s.Fragment,null,!l&&(0,s.createElement)("div",{className:`${i}-container`},(0,s.createElement)("nav",{"aria-label":(0,x.__)("Media categories")},(0,s.createElement)(_l.__experimentalItemGroup,{role:"list",className:i},r.map((e=>(0,s.createElement)(_l.__experimentalItem,{role:"listitem",key:e.name,onClick:()=>n(e),className:ml()(`${i}__media-category`,{"is-selected":t===e}),"aria-label":e.labels.name,"aria-current":e===t?"true":void 0},(0,s.createElement)(_l.__experimentalHStack,null,(0,s.createElement)(_l.FlexBlock,null,e.labels.name),(0,s.createElement)(Ti,{icon:(0,x.isRTL)()?M_:T_}))))),(0,s.createElement)("div",{role:"listitem"},(0,s.createElement)(Us,null,(0,s.createElement)(Gs,{multiple:!1,onSelect:a,allowedTypes:GE,render:({open:e})=>(0,s.createElement)(_l.Button,{onClick:t=>{t.target.focus(),e()},className:"block-editor-inserter__media-library-button",variant:"secondary","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal"},(0,x.__)("Open Media Library"))})))))),l&&(0,s.createElement)(fE,{categories:c},(t=>(0,s.createElement)(HE,{onInsert:o,rootClientId:e,category:t}))))},{Fill:$E,Slot:jE}=(0,_l.createSlotFill)("__unstableInserterMenuExtension");$E.Slot=jE;const WE=$E,KE=[];const ZE=function({filterValue:e,onSelect:t,onHover:n,onHoverPattern:o,rootClientId:r,clientId:l,isAppender:i,__experimentalInsertionIndex:a,maxBlockPatterns:c,maxBlockTypes:m,showBlockDirectory:h=!1,isDraggable:g=!0,shouldFocusBlock:f=!0,prioritizePatterns:b,selectBlockOnInsert:v}){const k=(0,p.useDebounce)(vo.speak,500),{prioritizedBlocks:_}=(0,d.useSelect)((e=>{const t=e(Nr).getBlockListSettings(r);return{prioritizedBlocks:t?.prioritizedInserterBlocks||KE}}),[r]),[y,E]=lE({onSelect:t,rootClientId:r,clientId:l,isAppender:i,insertionIndex:a,shouldFocusBlock:f,selectBlockOnInsert:v}),[w,S,C,B]=qg(y,E),[I,,T]=iE(E,y),M=(0,u.useMemo)((()=>{if(0===c)return[];const t=Kg(I,e);return void 0!==c?t.slice(0,c):t}),[e,I,c]);let P=m;b&&M.length>2&&(P=0);const R=(0,u.useMemo)((()=>{if(0===P)return[];let t=ne(w.filter((e=>"core/block"!==e.name)),"frecency","desc");!e&&_.length&&(t=Yg(t,_));const n=Wg(t,S,C,e);return void 0!==P?n.slice(0,P):n}),[e,w,S,C,P,_]);(0,u.useEffect)((()=>{if(!e)return;const t=R.length+M.length,n=(0,x.sprintf)((0,x._n)("%d result found.","%d results found.",t),t);k(n)}),[e,k,R,M]);const N=(0,p.useAsyncList)(R,{step:9}),L=(0,p.useAsyncList)(N.length===R.length?M:KE),A=R.length>0||M.length>0,O=!!R.length&&(0,s.createElement)(Gy,{title:(0,s.createElement)(_l.VisuallyHidden,null,(0,x.__)("Blocks"))},(0,s.createElement)(Hy,{items:N,onSelect:B,onHover:n,label:(0,x.__)("Blocks"),isDraggable:g})),D=!!M.length&&(0,s.createElement)(Gy,{title:(0,s.createElement)(_l.VisuallyHidden,null,(0,x.__)("Block patterns"))},(0,s.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},(0,s.createElement)(rE,{shownPatterns:L,blockPatterns:M,onClickPattern:T,onHover:o,isDraggable:g})));return(0,s.createElement)(jy,null,!h&&!A&&(0,s.createElement)(zE,null),b?D:O,!!R.length&&!!M.length&&(0,s.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),b?O:D,h&&(0,s.createElement)(WE.Slot,{fillProps:{onSelect:B,onHover:n,filterValue:e,hasItems:A,rootClientId:y}},(e=>e.length?e:A?null:(0,s.createElement)(zE,null))))},{Tabs:qE}=ie(_l.privateApis),YE={name:"blocks",title:(0,x.__)("Blocks")},XE={name:"patterns",title:(0,x.__)("Patterns")},QE={name:"media",title:(0,x.__)("Media")};const JE=function({showPatterns:e=!1,showMedia:t=!1,onSelect:n,tabsContents:o}){const r=[YE,e&&XE,t&&QE].filter(Boolean);return(0,s.createElement)("div",{className:"block-editor-inserter__tabs"},(0,s.createElement)(qE,{onSelect:n},(0,s.createElement)(qE.TabList,null,r.map((e=>(0,s.createElement)(qE.Tab,{key:e.name,tabId:e.name},e.title)))),r.map((e=>(0,s.createElement)(qE.TabPanel,{key:e.name,tabId:e.name,focusable:!1},o[e.name])))))};const ew=(0,u.forwardRef)((function({rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,onSelect:r,showInserterHelpPanel:l,showMostUsedBlocks:i,__experimentalFilterValue:a="",shouldFocusBlock:c=!0},m){const[h,g,f]=(0,p.useDebouncedInput)(a),[b,v]=(0,u.useState)(null),[k,_]=(0,u.useState)(null),[y,E]=(0,u.useState)("all"),[w,S]=(0,u.useState)(null),[C,B]=(0,u.useState)(null),[I,T,M]=lE({rootClientId:e,clientId:t,isAppender:n,insertionIndex:o,shouldFocusBlock:c}),{showPatterns:P}=(0,d.useSelect)((e=>{const{hasAllowedPatterns:t}=ie(e(Nr));return{showPatterns:t(I)}}),[I]),R=SE(I).length>0,N=(0,u.useCallback)(((e,t,n)=>{T(e,t,n),r()}),[T,r]),L=(0,u.useCallback)(((e,t)=>{T(e,{patternName:t}),r()}),[T,r]),A=(0,u.useCallback)((e=>{M(!!e),v(e)}),[M,v]),O=(0,u.useCallback)((e=>{M(!!e)}),[M]),D=(0,u.useCallback)(((e,t)=>{_(e),E(t)}),[_]),z=(0,u.useMemo)((()=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"block-editor-inserter__block-list"},(0,s.createElement)(Ky,{rootClientId:I,onInsert:N,onHover:A,showMostUsedBlocks:i})),l&&(0,s.createElement)("div",{className:"block-editor-inserter__tips"},(0,s.createElement)(_l.VisuallyHidden,{as:"h2"},(0,x.__)("A tip for using the block editor")),(0,s.createElement)(I_,null)))),[I,N,A,i,l]),V=(0,u.useMemo)((()=>(0,s.createElement)(EE,{rootClientId:I,onInsert:L,onSelectCategory:D,selectedCategory:k})),[I,L,D,k]),F=(0,u.useMemo)((()=>(0,s.createElement)(UE,{rootClientId:I,selectedCategory:w,onSelectCategory:S,onInsert:N})),[I,N,w,S]),H=(0,u.useMemo)((()=>({blocks:z,patterns:V,media:F})),[z,F,V]),G=(0,u.useRef)();(0,u.useImperativeHandle)(m,(()=>({focusSearch:()=>{G.current.focus()}})));const U="patterns"===C&&!f&&k,$=!f&&(P||R),j="media"===C&&!f&&w;return(0,s.createElement)("div",{className:"block-editor-inserter__menu"},(0,s.createElement)("div",{className:ml()("block-editor-inserter__main-area",{"show-as-tabs":$})},(0,s.createElement)(_l.SearchControl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",onChange:e=>{b&&v(null),g(e)},value:h,label:(0,x.__)("Search for blocks and patterns"),placeholder:(0,x.__)("Search"),ref:G}),!!f&&(0,s.createElement)("div",{className:"block-editor-inserter__no-tab-container"},(0,s.createElement)(ZE,{filterValue:f,onSelect:r,onHover:A,onHoverPattern:O,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,showBlockDirectory:!0,shouldFocusBlock:c})),$&&(0,s.createElement)(JE,{showPatterns:P,showMedia:R,onSelect:e=>{"patterns"!==e&&_(null),B(e)},tabsContents:H}),!f&&!$&&(0,s.createElement)("div",{className:"block-editor-inserter__no-tab-container"},z)),j&&(0,s.createElement)(FE,{rootClientId:I,onInsert:N,category:w}),l&&b&&(0,s.createElement)(_l.Popover,{className:"block-editor-inserter__preview-container__popover",placement:"right-start",offset:16,focusOnMount:!1,animate:!1},(0,s.createElement)(Py,{item:b})),U&&(0,s.createElement)(wE,{rootClientId:I,onInsert:L,onHover:O,category:k,patternFilter:y,showTitlesAsTooltip:!0}))}));function tw({onSelect:e,rootClientId:t,clientId:n,isAppender:o,prioritizePatterns:r,selectBlockOnInsert:l,hasSearch:i=!0}){const[a,c]=(0,u.useState)(""),[p,m]=lE({onSelect:e,rootClientId:t,clientId:n,isAppender:o,selectBlockOnInsert:l}),[h]=qg(p,m),[g]=iE(m,p),{setInserterIsOpened:f,insertionIndex:b}=(0,d.useSelect)((e=>{const{getSettings:t,getBlockIndex:o,getBlockCount:r}=e(Nr),l=t(),i=o(n),s=r();return{setInserterIsOpened:l.__experimentalSetIsInserterOpened,insertionIndex:-1===i?s:i}}),[n]),v=g.length&&(!!a||r),k=i&&(v&&g.length>6||h.length>6);(0,u.useEffect)((()=>{f&&f(!1)}),[f]);let _=0;return v&&(_=r?4:2),(0,s.createElement)("div",{className:ml()("block-editor-inserter__quick-inserter",{"has-search":k,"has-expand":f})},k&&(0,s.createElement)(_l.SearchControl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",value:a,onChange:e=>{c(e)},label:(0,x.__)("Search for blocks and patterns"),placeholder:(0,x.__)("Search")}),(0,s.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},(0,s.createElement)(ZE,{filterValue:a,onSelect:e,rootClientId:t,clientId:n,isAppender:o,maxBlockPatterns:_,maxBlockTypes:6,isDraggable:!1,prioritizePatterns:r,selectBlockOnInsert:l})),f&&(0,s.createElement)(_l.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{f({rootClientId:t,insertionIndex:b,filterValue:a})},"aria-label":(0,x.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},(0,x.__)("Browse all")))}const nw=({onToggle:e,disabled:t,isOpen:n,blockTitle:o,hasSingleBlockType:r,toggleProps:l={},prioritizePatterns:i})=>{const{as:a=_l.Button,label:c,onClick:u,...d}=l;let p=c;return!p&&r?p=(0,x.sprintf)((0,x._x)("Add %s","directly add the only allowed block"),o):!p&&i?p=(0,x.__)("Add pattern"):p||(p=(0,x._x)("Add block","Generic label for block inserter button")),(0,s.createElement)(a,{icon:na,label:p,tooltipPosition:"bottom",onClick:function(t){e&&e(t),u&&u(t)},className:"block-editor-inserter__toggle","aria-haspopup":!r&&"true","aria-expanded":!r&&n,disabled:t,...d})};class ow extends u.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(e){const{onToggle:t}=this.props;t&&t(e)}renderToggle({onToggle:e,isOpen:t}){const{disabled:n,blockTitle:o,hasSingleBlockType:r,directInsertBlock:l,toggleProps:i,hasItems:s,renderToggle:a=nw,prioritizePatterns:c}=this.props;return a({onToggle:e,isOpen:t,disabled:n||!s,blockTitle:o,hasSingleBlockType:r,directInsertBlock:l,toggleProps:i,prioritizePatterns:c})}renderContent({onClose:e}){const{rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r,__experimentalIsQuick:l,prioritizePatterns:i,onSelectOrClose:a,selectBlockOnInsert:c}=this.props;return l?(0,s.createElement)(tw,{onSelect:t=>{const n=Array.isArray(t)&&t?.length?t[0]:t;a&&"function"==typeof a&&a(n),e()},rootClientId:t,clientId:n,isAppender:o,prioritizePatterns:i,selectBlockOnInsert:c}):(0,s.createElement)(ew,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r})}render(){const{position:e,hasSingleBlockType:t,directInsertBlock:n,insertOnlyAllowedBlock:o,__experimentalIsQuick:r,onSelectOrClose:l}=this.props;return t||n?this.renderToggle({onToggle:o}):(0,s.createElement)(_l.Dropdown,{className:"block-editor-inserter",contentClassName:ml()("block-editor-inserter__popover",{"is-quick":r}),popoverProps:{position:e,shift:!0},onToggle:this.onToggle,expandOnMobile:!0,headerTitle:(0,x.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:l})}}const rw=(0,p.compose)([(0,d.withSelect)(((e,{clientId:t,rootClientId:n,shouldDirectInsert:o=!0})=>{const{getBlockRootClientId:r,hasInserterItems:l,getAllowedBlocks:i,getDirectInsertBlock:s,getSettings:a}=e(Nr),{getBlockVariations:u}=e(c.store),d=i(n=n||r(t)||void 0),p=o&&s(n),m=a(),h=1===d?.length&&0===u(d[0].name,"inserter")?.length;let g=!1;return h&&(g=d[0]),{hasItems:l(n),hasSingleBlockType:h,blockTitle:g?g.title:"",allowedBlockType:g,directInsertBlock:p,rootClientId:n,prioritizePatterns:m.__experimentalPreferPatternsOnRoot&&!n}})),(0,d.withDispatch)(((e,t,{select:n})=>({insertOnlyAllowedBlock(){const{rootClientId:o,clientId:r,isAppender:l,hasSingleBlockType:i,allowedBlockType:s,directInsertBlock:a,onSelectOrClose:u,selectBlockOnInsert:d}=t;if(!i&&!a)return;const{insertBlock:p}=e(Nr);let m;if(a){const e=function(e){const{getBlock:t,getPreviousBlockClientId:l}=n(Nr);if(!e||!r&&!o)return{};const i={};let s={};if(r){const e=t(r),n=t(l(r));e?.name===n?.name&&(s=n?.attributes||{})}else{const e=t(o);if(e?.innerBlocks?.length){const t=e.innerBlocks[e.innerBlocks.length-1];a&&a?.name===t.name&&(s=t.attributes)}}return e.forEach((e=>{s.hasOwnProperty(e)&&(i[e]=s[e])})),i}(a.attributesToCopy);m=(0,c.createBlock)(a.name,{...a.attributes||{},...e})}else m=(0,c.createBlock)(s.name);p(m,function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:i,getBlockRootClientId:s}=n(Nr);if(r)return e(r);const a=t();return!l&&a&&s(a)===o?e(a)+1:i(o).length}(),o,d),u&&u({clientId:m?.clientId});const h=(0,x.sprintf)((0,x.__)("%s block added"),s.title);(0,vo.speak)(h)}}))),(0,p.ifCondition)((({hasItems:e,isAppender:t,rootClientId:n,clientId:o})=>e||!t&&!n&&!o))])(ow),lw=(0,u.forwardRef)(((e,t)=>(0,s.createElement)(rw,{ref:t,...e}))),iw="\ufeff";function sw({rootClientId:e}){const{showPrompt:t,isLocked:n,placeholder:o}=(0,d.useSelect)((t=>{const{getBlockCount:n,getSettings:o,getTemplateLock:r}=t(Nr),l=!n(e),{bodyPlaceholder:i}=o();return{showPrompt:l,isLocked:!!r(e),placeholder:i}}),[e]),{insertDefaultBlock:r,startTyping:l}=(0,d.useDispatch)(Nr);if(n)return null;const i=(0,x_.decodeEntities)(o)||(0,x.__)("Type / to choose a block"),a=()=>{r(void 0,e),l()};return(0,s.createElement)("div",{"data-root-client-id":e||"",className:ml()("block-editor-default-block-appender",{"has-visible-prompt":t})},(0,s.createElement)("p",{tabIndex:"0",role:"button","aria-label":(0,x.__)("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:e=>{zs.ENTER!==e.keyCode&&zs.SPACE!==e.keyCode||a()},onClick:()=>a(),onFocus:()=>{t&&a()}},t?i:iw),(0,s.createElement)(lw,{rootClientId:e,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}function aw({rootClientId:e,className:t,onFocus:n,tabIndex:o},r){return(0,s.createElement)(lw,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,renderToggle:({onToggle:e,disabled:l,isOpen:i,blockTitle:a,hasSingleBlockType:c})=>{let u;u=c?(0,x.sprintf)((0,x._x)("Add %s","directly add the only allowed block"),a):(0,x._x)("Add block","Generic label for block inserter button");const d=!c;let p=(0,s.createElement)(_l.Button,{ref:r,onFocus:n,tabIndex:o,className:ml()(t,"block-editor-button-block-appender"),onClick:e,"aria-haspopup":d?"true":void 0,"aria-expanded":d?i:void 0,disabled:l,label:u},!c&&(0,s.createElement)(_l.VisuallyHidden,{as:"span"},u),(0,s.createElement)(Ti,{icon:na}));return(d||c)&&(p=(0,s.createElement)(_l.Tooltip,{text:u},p)),p},isAppender:!0})}const cw=(0,u.forwardRef)(((e,t)=>(w()("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),aw(e,t)))),uw=(0,u.forwardRef)(aw);function dw({rootClientId:e}){return(0,d.useSelect)((t=>t(Nr).canInsertBlockType((0,c.getDefaultBlockName)(),e)))?(0,s.createElement)(sw,{rootClientId:e}):(0,s.createElement)(uw,{rootClientId:e,className:"block-list-appender__toggle"})}function pw({rootClientId:e,CustomAppender:t,className:n,tagName:o="div"}){const r=(0,d.useSelect)((t=>{const{getBlockInsertionPoint:n,isBlockInsertionPointVisible:o,getBlockCount:r}=t(Nr),l=n();return o()&&e===l?.rootClientId&&0===r(e)}),[e]);return(0,s.createElement)(o,{tabIndex:-1,className:ml()("block-list-appender wp-block",n,{"is-drag-over":r}),contentEditable:!1,"data-block":!0},t?(0,s.createElement)(t,null):(0,s.createElement)(dw,{rootClientId:e}))}const mw=Number.MAX_SAFE_INTEGER;(0,u.createContext)();const hw=function({previousClientId:e,nextClientId:t,children:n,__unstablePopoverSlot:o,__unstableContentRef:r,operation:l="insert",nearestSide:i="right",...a}){const[c,p]=(0,u.useReducer)((e=>(e+1)%mw),0),{orientation:m,rootClientId:h,isVisible:g}=(0,d.useSelect)((n=>{const{getBlockListSettings:o,getBlockRootClientId:r,isBlockVisible:l}=n(Nr),i=r(null!=e?e:t);return{orientation:o(i)?.orientation||"vertical",rootClientId:i,isVisible:l(e)&&l(t)}}),[e,t]),f=bd(e),b=bd(t),v="vertical"===m,k=(0,u.useMemo)((()=>{if(c<0||!f&&!b||!g)return;return{contextElement:"group"===l?b||f:f||b,getBoundingClientRect(){const e=f?f.getBoundingClientRect():null,t=b?b.getBoundingClientRect():null;let n=0,o=0,r=0,s=0;if("group"===l){const l=t||e;o=l.top,r=0,s=l.bottom-l.top,n="left"===i?l.left-2:l.right-2}else v?(o=e?e.bottom:t.top,r=e?e.width:t.width,s=t&&e?t.top-e.bottom:0,n=e?e.left:t.left):(o=e?e.top:t.top,s=e?e.height:t.height,(0,x.isRTL)()?(n=t?t.right:e.left,r=e&&t?e.left-t.right:0):(n=e?e.right:t.left,r=e&&t?t.left-e.right:0));return new window.DOMRect(n,o,r,s)}}}),[f,b,c,v,g,l,i]),_=hm(r);return(0,u.useLayoutEffect)((()=>{if(!f)return;const e=new window.MutationObserver(p);return e.observe(f,{attributes:!0}),()=>{e.disconnect()}}),[f]),(0,u.useLayoutEffect)((()=>{if(!b)return;const e=new window.MutationObserver(p);return e.observe(b,{attributes:!0}),()=>{e.disconnect()}}),[b]),(0,u.useLayoutEffect)((()=>{if(f)return f.ownerDocument.defaultView.addEventListener("resize",p),()=>{f.ownerDocument.defaultView?.removeEventListener("resize",p)}}),[f]),(f||b)&&g?(0,s.createElement)(_l.Popover,{ref:_,animate:!1,anchor:k,focusOnMount:!1,__unstableSlotName:o,inline:!o,key:t+"--"+h,...a,className:ml()("block-editor-block-popover","block-editor-block-popover__inbetween",a.className),resize:!1,flip:!1,placement:"overlay",variant:"unstyled"},(0,s.createElement)("div",{className:"block-editor-block-popover__inbetween-container"},n)):null},gw={hide:{opacity:0,scaleY:.75},show:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.9}};const fw=function({__unstablePopoverSlot:e,__unstableContentRef:t}){const{clientId:n}=(0,d.useSelect)((e=>{const{getBlockOrder:t,getBlockInsertionPoint:n}=e(Nr),o=n(),r=t(o.rootClientId);return r.length?{clientId:r[o.index]}:{}}),[]),o=(0,p.useReducedMotion)();return(0,s.createElement)(fm,{clientId:n,__unstableCoverTarget:!0,__unstablePopoverSlot:e,__unstableContentRef:t,className:"block-editor-block-popover__drop-zone"},(0,s.createElement)(_l.__unstableMotion.div,{"data-testid":"block-popover-drop-zone",initial:o?gw.show:gw.hide,animate:gw.show,exit:o?gw.show:gw.exit,className:"block-editor-block-popover__drop-zone-foreground"}))},bw=(0,u.createContext)();function vw({__unstablePopoverSlot:e,__unstableContentRef:t,operation:n="insert",nearestSide:o="right"}){const{selectBlock:r,hideInsertionPoint:l}=(0,d.useDispatch)(Nr),i=(0,u.useContext)(bw),a=(0,u.useRef)(),{orientation:c,previousClientId:m,nextClientId:h,rootClientId:g,isInserterShown:f,isDistractionFree:b,isNavigationMode:v}=(0,d.useSelect)((e=>{const{getBlockOrder:t,getBlockListSettings:n,getBlockInsertionPoint:o,isBlockBeingDragged:r,getPreviousBlockClientId:l,getNextBlockClientId:i,getSettings:s,isNavigationMode:a}=e(Nr),c=o(),u=t(c.rootClientId);if(!u.length)return{};let d=u[c.index-1],p=u[c.index];for(;r(d);)d=l(d);for(;r(p);)p=i(p);const m=s();return{previousClientId:d,nextClientId:p,orientation:n(c.rootClientId)?.orientation||"vertical",rootClientId:c.rootClientId,isNavigationMode:a(),isDistractionFree:m.isDistractionFree,isInserterShown:c?.__unstableWithInserter}}),[]),{getBlockEditingMode:k}=(0,d.useSelect)(Nr),_=(0,p.useReducedMotion)();const y={start:{opacity:0,scale:0},rest:{opacity:1,scale:1,transition:{delay:f?.5:0,type:"tween"}},hover:{opacity:1,scale:1,transition:{delay:.5,type:"tween"}}},E={start:{scale:_?1:0},rest:{scale:1,transition:{delay:.4,type:"tween"}}};if(b&&!v)return null;const w="horizontal"===c||"group"===n?"is-horizontal":"is-vertical",S=ml()("block-editor-block-list__insertion-point",w);return(0,s.createElement)(hw,{previousClientId:m,nextClientId:h,__unstablePopoverSlot:e,__unstableContentRef:t,operation:n,nearestSide:o},(0,s.createElement)(_l.__unstableMotion.div,{layout:!_,initial:_?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:a,tabIndex:-1,onClick:function(e){e.target===a.current&&h&&"disabled"!==k(h)&&r(h,-1)},onFocus:function(e){e.target!==a.current&&(i.current=!0)},className:ml()(S,{"is-with-inserter":f}),onHoverEnd:function(e){e.target!==a.current||i.current||l()}},(0,s.createElement)(_l.__unstableMotion.div,{variants:y,className:"block-editor-block-list__insertion-point-indicator","data-testid":"block-list-insertion-point-indicator"}),f&&(0,s.createElement)(_l.__unstableMotion.div,{variants:E,className:ml()("block-editor-block-list__insertion-point-inserter")},(0,s.createElement)(lw,{position:"bottom center",clientId:h,rootClientId:g,__experimentalIsQuick:!0,onToggle:e=>{i.current=e},onSelectOrClose:()=>{i.current=!1}}))))}function kw(e){const{insertionPoint:t,isVisible:n,isBlockListEmpty:o}=(0,d.useSelect)((e=>{const{getBlockInsertionPoint:t,isBlockInsertionPointVisible:n,getBlockCount:o}=e(Nr),r=t();return{insertionPoint:r,isVisible:n(),isBlockListEmpty:0===o(r?.rootClientId)}}),[]);return!n||o?null:"replace"===t.operation?(0,s.createElement)(fw,{key:`${t.rootClientId}-${t.index}`,...e}):(0,s.createElement)(vw,{operation:t.operation,nearestSide:t.nearestSide,...e})}function _w(){const e=(0,u.useContext)(bw),t=(0,d.useSelect)((e=>e(Nr).getSettings().isDistractionFree||"zoom-out"===e(Nr).__unstableGetEditorMode()),[]),{getBlockListSettings:n,getBlockIndex:o,isMultiSelecting:r,getSelectedBlockClientIds:l,getTemplateLock:i,__unstableIsWithinBlockOverlay:s,getBlockEditingMode:a,getBlockName:c}=(0,d.useSelect)(Nr),{showInsertionPoint:m,hideInsertionPoint:h}=(0,d.useDispatch)(Nr);return(0,p.useRefEffect)((u=>{if(!t)return u.addEventListener("mousemove",d),()=>{u.removeEventListener("mousemove",d)};function d(t){if(e.current)return;if(t.target.nodeType===t.target.TEXT_NODE)return;if(r())return;if(!t.target.classList.contains("block-editor-block-list__layout"))return void h();let u;if(!t.target.classList.contains("is-root-container")){u=(t.target.getAttribute("data-block")?t.target:t.target.closest("[data-block]")).getAttribute("data-block")}if(i(u)||"disabled"===a(u)||"core/block"===c(u))return;const d=n(u)?.orientation||"vertical",p=t.clientY,g=t.clientX;let f=Array.from(t.target.children).find((e=>{const t=e.getBoundingClientRect();return e.classList.contains("wp-block")&&"vertical"===d&&t.top>p||e.classList.contains("wp-block")&&"horizontal"===d&&((0,x.isRTL)()?t.right<g:t.left>g)}));if(!f)return void h();if(!f.id&&(f=f.firstElementChild,!f))return void h();const b=f.id.slice(6);if(!b||s(b))return;if(l().includes(b))return;const v=f.getBoundingClientRect();if("horizontal"===d&&(t.clientY>v.bottom||t.clientY<v.top)||"vertical"===d&&(t.clientX>v.right||t.clientX<v.left))return void h();const k=o(b);0!==k?m(u,k,{__unstableWithInserter:!0}):h()}}),[e,n,o,r,m,h,l,t])}const yw=(0,p.createHigherOrderComponent)((e=>t=>{const{clientId:n}=y();return(0,s.createElement)(e,{...t,clientId:n})}),"withClientId"),Ew=yw((({clientId:e,showSeparator:t,isFloating:n,onAddBlock:o,isToggle:r})=>(0,s.createElement)(uw,{className:ml()({"block-list-appender__toggle":r}),rootClientId:e,showSeparator:t,isFloating:n,onAddBlock:o}))),ww=(0,p.compose)([yw,(0,d.withSelect)(((e,{clientId:t})=>{const{getBlockOrder:n}=e(Nr),o=n(t);return{lastBlockClientId:o[o.length-1]}}))])((({clientId:e})=>(0,s.createElement)(sw,{rootClientId:e}))),Sw=new WeakMap;function Cw(e,t,n,o,r,l,i,s,a,c,p,m){const{updateBlockListSettings:h}=(0,d.useDispatch)(Nr),g=(0,d.useRegistry)(),f=function(e){const[t,n]=(0,u.useState)(e);return js()(t,e)||n(e),t}(n),b=(0,u.useMemo)((()=>o),o),v=void 0===a||"contentOnly"===t?t:a;(0,u.useLayoutEffect)((()=>{const t={allowedBlocks:f,prioritizedInserterBlocks:b,templateLock:v};if(void 0!==c&&(t.__experimentalCaptureToolbars=c),void 0!==p)t.orientation=p;else{const e=Vi(m?.type);t.orientation=e.getOrientation(m)}void 0!==i&&(w()("__experimentalDefaultBlock",{alternative:"defaultBlock",since:"6.3",version:"6.4"}),t.defaultBlock=i),void 0!==r&&(t.defaultBlock=r),void 0!==s&&(w()("__experimentalDirectInsert",{alternative:"directInsert",since:"6.3",version:"6.4"}),t.directInsert=s),void 0!==l&&(t.directInsert=l),Sw.get(g)||Sw.set(g,[]),Sw.get(g).push([e,t]),window.queueMicrotask((()=>{Sw.get(g)?.length&&g.batch((()=>{Sw.get(g).forEach((e=>{h(...e)})),Sw.set(g,[])}))}))}),[e,f,b,v,r,l,i,s,c,p,h,m,g])}function xw(e,t,n,o,r,l,i,s,a){return u=>{const{srcRootClientId:d,srcClientIds:p,type:m,blocks:h}=function(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch(e){return t}return t}(u);if("inserter"===m){i();const e=h.map((e=>(0,c.cloneBlock)(e)));l(e,!0,null)}if("block"===m){const i=n(p[0]);if(d===e&&i===t)return;if(p.includes(e)||o(p).some((t=>t===e)))return;if("group"===s){const e=p.map((e=>a(e)));return void l(e,!0,null,p)}const c=d===e,u=p.length;r(p,d,c&&i<t?t-u:t)}}}function Bw(e,t,n={}){const{operation:o="insert",nearestSide:r="right"}=n,{canInsertBlockType:l,getBlockIndex:i,getClientIdsOfDescendants:s,getBlockOrder:a,getBlocksByClientId:p,getSettings:m,getBlock:h,isGroupable:g}=(0,d.useSelect)(Nr),{getGroupingBlockName:f}=(0,d.useSelect)(c.store),{insertBlocks:b,moveBlocksToPosition:v,updateBlockAttributes:k,clearSelectedBlock:_,replaceBlocks:y,removeBlocks:E}=(0,d.useDispatch)(Nr),w=(0,d.useRegistry)(),S=(0,u.useCallback)(((n,i=!0,s=0,u=[])=>{Array.isArray(n)||(n=[n]);const d=a(e)[t],p=n.map((e=>e.clientId)),m=g([...p,d]);if("replace"===o)y(d,n,void 0,s);else if("group"===o&&m){const t=h(d);"left"===r?n.push(t):n.unshift(t);const o=n.map((e=>(0,c.createBlock)(e.name,e.attributes,e.innerBlocks))),i=n.every((e=>"core/image"===e.name)),a=l("core/gallery",e),p=(0,c.createBlock)(i&&a?"core/gallery":f(),{layout:{type:"flex",flexWrap:i&&a?null:"nowrap"}},o);y([d,...u],p,void 0,s)}else b(n,t,e,i,s)}),[a,e,t,g,o,y,h,r,l,f,b]),C=(0,u.useCallback)(((n,r,l)=>{if("replace"===o){const o=p(n),r=a(e)[t];w.batch((()=>{E(n,!1),y(r,o,void 0,0)}))}else v(n,r,e,l)}),[o,a,p,v,w,E,y,t,e]),x=xw(e,t,i,s,C,S,_,o,h),B=function(e,t,n,o,r){return l=>{if(!t().mediaUpload)return;const i=(0,c.findTransform)((0,c.getBlockTransforms)("from"),(t=>"files"===t.type&&o(t.blockName,e)&&t.isMatch(l)));if(i){const e=i.transform(l,n);r(e)}}}(e,m,k,l,S),I=function(e){return t=>{const n=(0,c.pasteHandler)({HTML:t,mode:"BLOCKS"});n.length&&e(n)}}(S);return e=>{const t=(0,As.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");n?I(n):t.length?B(t):x(e)}}function Iw(e,t,n=["top","bottom","left","right"]){let o,r;return n.forEach((n=>{const l=function(e,t,n){const o="top"===n||"bottom"===n,{x:r,y:l}=e,i=o?r:l,s=o?l:r,a=o?t.left:t.top,c=o?t.right:t.bottom,u=t[n];let d;return d=i>=a&&i<=c?i:i<c?a:c,Math.sqrt((i-d)**2+(s-u)**2)}(e,t,n);(void 0===o||l<o)&&(o=l,r=n)})),[o,r]}function Tw(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}const Mw=30,Pw=120,Rw=120;function Nw(e,t,n,o){let r=!0;if(t){const e=t?.map((({name:e})=>e));r=n.every((t=>e?.includes(t)))}const l=n.map((t=>e(t))).every((e=>{const[t]=e?.parent||[];return!t||t===o}));return r&&l}function Lw({dropZoneElement:e,rootClientId:t="",parentClientId:n="",isDisabled:o=!1}={}){const r=(0,d.useRegistry)(),[l,i]=(0,u.useState)({index:null,operation:"insert"}),{getBlockType:s}=(0,d.useSelect)(c.store),{getBlockListSettings:a,getBlocks:m,getBlockIndex:h,getDraggedBlockClientIds:g,getBlockNamesByClientId:f,getAllowedBlocks:b,isDragging:v}=ie((0,d.useSelect)(Nr)),{showInsertionPoint:k,hideInsertionPoint:_,startDragging:y,stopDragging:E}=ie((0,d.useDispatch)(Nr)),w=Bw("before"===l.operation||"after"===l.operation?n:t,l.index,{operation:l.operation,nearestSide:l.nearestSide}),S=(0,p.useThrottle)((0,u.useCallback)(((o,l)=>{v()||y();const u=b(t),d=f([t])[0],p=f(g());if(!Nw(s,u,p,d))return;const _=m(t);if(0===_.length)return void r.batch((()=>{i({index:0,operation:"insert"}),k(t,0,{operation:"insert"})}));const E=_.map((e=>{const t=e.clientId;return{isUnmodifiedDefaultBlock:(0,c.isUnmodifiedDefaultBlock)(e),getBoundingClientRect:()=>l.getElementById(`block-${t}`).getBoundingClientRect(),blockIndex:h(t),blockOrientation:a(t)?.orientation}})),[w,S,C]=function(e,t,n="vertical",o={}){const r="horizontal"===n?["left","right"]:["top","bottom"];let l=0,i="before",s=1/0,a=null,c="right";const{dropZoneElement:u,parentBlockOrientation:d,rootBlockIndex:p=0}=o;if(u&&"horizontal"!==d){const e=u.getBoundingClientRect(),[n,o]=Iw(t,e,["top","bottom"]);if(e.height>Pw&&n<Mw){if("top"===o)return[p,"before"];if("bottom"===o)return[p+1,"after"]}}const m=(0,x.isRTL)();if(u&&"horizontal"===d){const e=u.getBoundingClientRect(),[n,o]=Iw(t,e,["left","right"]);if(e.width>Rw&&n<Mw){if(m&&"right"===o||!m&&"left"===o)return[p,"before"];if(m&&"left"===o||!m&&"right"===o)return[p+1,"after"]}}e.forEach((({isUnmodifiedDefaultBlock:e,getBoundingClientRect:o,blockIndex:u,blockOrientation:d})=>{const p=o();let[h,g]=Iw(t,p,r);const[f,b]=Iw(t,p,["left","right"]),v=Tw(t,p);e&&v?h=0:"vertical"===n&&"horizontal"!==d&&(v&&f<Mw||!v&&function(e,t){return t.top<=e.y&&t.bottom>=e.y}(t,p))&&(a=u,c=b),h<s&&(i="bottom"===g||!m&&"right"===g||m&&"left"===g?"after":"before",s=h,l=u)}));const h=l+("after"===i?1:-1),g=!!e[l]?.isUnmodifiedDefaultBlock,f=!!e[h]?.isUnmodifiedDefaultBlock;if(null!==a)return[a,"group",c];if(!g&&!f)return["after"===i?l+1:l,"insert"];return[g?l:h,"replace"]}(E,{x:o.clientX,y:o.clientY},a(t)?.orientation,{dropZoneElement:e,parentBlockClientId:n,parentBlockOrientation:n?a(n)?.orientation:void 0,rootBlockIndex:h(t)});r.batch((()=>{i({index:w,operation:S,nearestSide:C});const e=["before","after"].includes(S)?n:t;k(e,w,{operation:S,nearestSide:C})}))}),[b,t,f,g,s,m,a,e,n,h,r,k,v,y]),200);return(0,p.__experimentalUseDropZone)({dropZoneElement:e,isDisabled:o,onDrop:w,onDragOver(e){S(e,e.currentTarget.ownerDocument)},onDragLeave(){S.cancel(),_()},onDragEnd(){S.cancel(),E(),_()}})}const Aw={};function Ow({children:e,clientId:t}){const n=function(e){return(0,d.useSelect)((t=>{const n=t(Nr).getBlock(e);if(!n)return;const o=t(c.store).getBlockType(n.name);return o&&0!==Object.keys(o.providesContext).length?Object.fromEntries(Object.entries(o.providesContext).map((([e,t])=>[e,n.attributes[t]]))):void 0}),[e])}(t);return(0,s.createElement)(ff,{value:n},e)}const Dw=(0,u.memo)(Jw);function zw(e){const{clientId:t,allowedBlocks:n,prioritizedInserterBlocks:o,defaultBlock:r,directInsert:l,__experimentalDefaultBlock:i,__experimentalDirectInsert:a,template:p,templateLock:m,wrapperRef:h,templateInsertUpdatesSelection:g,__experimentalCaptureToolbars:f,__experimentalAppenderTagName:b,renderAppender:v,orientation:k,placeholder:_,layout:y,name:E,blockType:w,parentLock:S,defaultLayout:x}=e;Cw(t,S,n,o,r,l,i,a,m,f,k,y),function(e,t,n,o){const{getBlocks:r,getSelectedBlocksInitialCaretPosition:l,isBlockSelected:i}=(0,d.useSelect)(Nr),{replaceInnerBlocks:s,__unstableMarkNextChangeAsNotPersistent:a}=(0,d.useDispatch)(Nr),p=(0,u.useRef)(null);(0,u.useLayoutEffect)((()=>{let u=!1;return window.queueMicrotask((()=>{if(u)return;const d=r(e),m=0===d.length||"all"===n||"contentOnly"===n,h=!C()(t,p.current);if(!m||!h)return;p.current=t;const g=(0,c.synchronizeBlocksWithTemplate)(d,t);C()(g,d)||(a(),s(e,g,0===d.length&&o&&0!==g.length&&i(e),l()))})),()=>{u=!0}}),[t,n,e])}(t,p,m,g);const B=(0,c.getBlockSupport)(E,"layout")||(0,c.getBlockSupport)(E,"__experimentalLayout")||Aw,{allowSizingOnChildren:I=!1}=B,T=y||B,M=(0,u.useMemo)((()=>({...x,...T,...I&&{allowSizingOnChildren:!0}})),[x,T,I]),P=(0,s.createElement)(Dw,{rootClientId:t,renderAppender:v,__experimentalAppenderTagName:b,layout:M,wrapperRef:h,placeholder:_});return 0===Object.keys(w.providesContext).length?P:(0,s.createElement)(Ow,{clientId:t},P)}function Vw(e){return L_(e),(0,s.createElement)(zw,{...e})}const Fw=(0,u.forwardRef)(((e,t)=>{const n=Hw({ref:t},e);return(0,s.createElement)("div",{className:"block-editor-inner-blocks"},(0,s.createElement)("div",{...n}))}));function Hw(e={},t={}){const{__unstableDisableLayoutClassNames:n,__unstableDisableDropZone:o,dropZoneElement:r}=t,{clientId:l,layout:i=null,__unstableLayoutClassNames:a=""}=y(),u=(0,d.useSelect)((e=>{if(!l)return{};const{getBlockName:t,isBlockSelected:n,hasSelectedInnerBlock:o,__unstableGetEditorMode:r,getTemplateLock:i,getBlockRootClientId:s,getBlockEditingMode:a,getBlockSettings:u,isDragging:d}=ie(e(Nr)),{hasBlockSupport:p,getBlockType:m}=e(c.store),h=t(l),g="navigation"===r(),f=a(l),b=s(l),[v]=u(l,"layout");return{__experimentalCaptureToolbars:p(h,"__experimentalExposeControlsToChildren",!1),hasOverlay:"core/template"!==h&&!n(l)&&!o(l,!0)&&g&&!d(),name:h,blockType:m(h),parentLock:i(b),parentClientId:b,isDropZoneDisabled:"disabled"===f,defaultLayout:v}}),[l]),{__experimentalCaptureToolbars:m,hasOverlay:h,name:g,blockType:f,parentLock:b,parentClientId:v,isDropZoneDisabled:k,defaultLayout:_}=u,E=Lw({dropZoneElement:r,rootClientId:l,parentClientId:v,isDisabled:k}),w=(0,p.useMergeRefs)([e.ref,o?null:E]),S={__experimentalCaptureToolbars:m,layout:i,name:g,blockType:f,parentLock:b,defaultLayout:_,...t},C=S.value&&S.onChange?Vw:zw;return{...e,ref:w,className:ml()(e.className,"block-editor-block-list__layout",n?"":a,{"has-overlay":h}),children:l?(0,s.createElement)(C,{...S,clientId:l}):(0,s.createElement)(Jw,{...t})}}Hw.save=c.__unstableGetInnerBlocksProps,Fw.DefaultBlockAppender=ww,Fw.ButtonBlockAppender=Ew,Fw.Content=()=>Hw.save().children;const Gw=Fw,Uw=new Set([zs.UP,zs.RIGHT,zs.DOWN,zs.LEFT,zs.ENTER,zs.BACKSPACE]);function $w(){const e=(0,d.useSelect)((e=>e(Nr).isTyping()),[]),{stopTyping:t}=(0,d.useDispatch)(Nr);return(0,p.useRefEffect)((n=>{if(!e)return;const{ownerDocument:o}=n;let r,l;function i(e){const{clientX:n,clientY:o}=e;r&&l&&(r!==n||l!==o)&&t(),r=n,l=o}return o.addEventListener("mousemove",i),()=>{o.removeEventListener("mousemove",i)}}),[e,t])}function jw(){const{isTyping:e,hasInlineToolbar:t}=(0,d.useSelect)((e=>{const{isTyping:t,getSettings:n}=e(Nr);return{isTyping:t(),hasInlineToolbar:n().hasInlineToolbar}}),[]),{startTyping:n,stopTyping:o}=(0,d.useDispatch)(Nr),r=$w(),l=(0,p.useRefEffect)((r=>{const{ownerDocument:l}=r,{defaultView:i}=l,s=i.getSelection();if(e){let c;function u(e){const{target:t}=e;c=i.setTimeout((()=>{(0,As.isTextField)(t)||o()}))}function d(e){const{keyCode:t}=e;t!==zs.ESCAPE&&t!==zs.TAB||o()}function p(){s.isCollapsed||o()}return r.addEventListener("focus",u),r.addEventListener("keydown",d),t||l.addEventListener("selectionchange",p),()=>{i.clearTimeout(c),r.removeEventListener("focus",u),r.removeEventListener("keydown",d),l.removeEventListener("selectionchange",p)}}function a(e){const{type:t,target:o}=e;(0,As.isTextField)(o)&&r.contains(o)&&("keydown"!==t||function(e){const{keyCode:t,shiftKey:n}=e;return!n&&Uw.has(t)}(e))&&n()}return r.addEventListener("keypress",a),r.addEventListener("keydown",a),()=>{r.removeEventListener("keypress",a),r.removeEventListener("keydown",a)}}),[e,t,n,o]);return(0,p.useMergeRefs)([r,l])}const Ww=function({children:e}){return(0,s.createElement)("div",{ref:jw()},e)},Kw=(0,u.createContext)(),Zw=new WeakMap;function qw({className:e,...t}){const n=(0,p.useViewportMatch)("medium"),{isOutlineMode:o,isFocusMode:r,editorMode:l}=(0,d.useSelect)((e=>{const{getSettings:t,__unstableGetEditorMode:n}=e(Nr),{outlineMode:o,focusMode:r}=t();return{isOutlineMode:o,isFocusMode:r,editorMode:n()}}),[]),i=(0,d.useRegistry)(),{setBlockVisibility:a}=(0,d.useDispatch)(Nr),c=(0,p.useDebounce)((0,u.useCallback)((()=>{const e={};Zw.get(i).forEach((([t,n])=>{e[t]=n})),a(e)}),[i]),300,{trailing:!0}),m=(0,u.useMemo)((()=>{const{IntersectionObserver:e}=window;if(e)return new e((e=>{Zw.get(i)||Zw.set(i,[]);for(const t of e){const e=t.target.getAttribute("data-block");Zw.get(i).push([e,t.isIntersecting])}c()}))}),[]),h=Hw({ref:(0,p.useMergeRefs)([F_(),_w(),jw()]),className:ml()("is-root-container",e,{"is-outline-mode":o,"is-focus-mode":r&&n,"is-navigate-mode":"navigation"===l})},t);return(0,s.createElement)(Kw.Provider,{value:m},(0,s.createElement)("div",{...h}))}function Yw({clientId:e}){const{stopEditingAsBlocks:t}=ie((0,d.useDispatch)(Nr)),n=(0,d.useSelect)((t=>{const{isBlockSelected:n,hasSelectedInnerBlock:o}=t(Nr);return n(e)||o(e,!0)}),[e]);return(0,u.useEffect)((()=>{n||t(e)}),[n,e,t]),null}function Xw(e){return(0,s.createElement)(_,{value:v},(0,s.createElement)(qw,{...e}))}function Qw({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:o,layout:r=Fi}){const l=!1!==n,i=!!n,{order:a,selectedBlocks:c,visibleBlocks:u,temporarilyEditingAsBlocks:p,shouldRenderAppender:m}=(0,d.useSelect)((e=>{const{getBlockOrder:n,getSelectedBlockClientId:o,getSelectedBlockClientIds:r,__unstableGetVisibleBlocks:s,__unstableGetTemporarilyEditingAsBlocks:a,getTemplateLock:c,getBlockEditingMode:u,__unstableGetEditorMode:d}=e(Nr),p=o();return{order:n(t),selectedBlocks:r(),visibleBlocks:s(),temporarilyEditingAsBlocks:a(),shouldRenderAppender:l&&(i?!c(t)&&"disabled"!==u(t)&&"zoom-out"!==d():t===p||!t&&!p)}}),[t,l,i]);return(0,s.createElement)(Gi,{value:r},a.map((e=>(0,s.createElement)(d.AsyncModeProvider,{key:e,value:!u.has(e)&&!c.includes(e)},(0,s.createElement)(C_,{rootClientId:t,clientId:e})))),a.length<1&&e,!!p&&(0,s.createElement)(Yw,{clientId:p}),m&&(0,s.createElement)(pw,{tagName:o,rootClientId:t,CustomAppender:n}))}function Jw(e){return(0,s.createElement)(d.AsyncModeProvider,{value:!1},(0,s.createElement)(Qw,{...e}))}const eS={placement:"top-start"},tS={...eS,flip:!1,shift:!0},nS={...eS,flip:!0,shift:!1};function oS(e,t,n,o,r){if(!e||!t)return tS;const l=n?.scrollTop||0,i=t.getBoundingClientRect(),s=l+e.getBoundingClientRect().top,a=e.ownerDocument.documentElement.clientHeight,c=s+o,u=i.top>c,d=i.height>a-o;return r||!u&&!d?nS:tS}function rS({contentElement:e,clientId:t}){const n=bd(t),[o,r]=(0,u.useState)(0),{blockIndex:l,isSticky:i}=(0,d.useSelect)((e=>{const{getBlockIndex:n,getBlockAttributes:o}=e(Nr);return{blockIndex:n(t),isSticky:gh(o(t))}}),[t]),s=(0,u.useMemo)((()=>{if(e)return(0,As.getScrollContainer)(e)}),[e]),[a,c]=(0,u.useState)((()=>oS(e,n,s,o,i))),m=(0,p.useRefEffect)((e=>{r(e.offsetHeight)}),[]),h=(0,u.useCallback)((()=>c(oS(e,n,s,o,i))),[e,n,s,o]);return(0,u.useLayoutEffect)(h,[l,h]),(0,u.useLayoutEffect)((()=>{if(!e||!n)return;const t=e?.ownerDocument?.defaultView;let o;t?.addEventHandler?.("resize",h);const r=n?.ownerDocument?.defaultView;return r.ResizeObserver&&(o=new r.ResizeObserver(h),o.observe(n)),()=>{t?.removeEventHandler?.("resize",h),o&&o.disconnect()}}),[h,e,n]),{...a,ref:m}}function lS(e){const t=(0,d.useSelect)((t=>{const{getBlockRootClientId:n,getBlockParents:o,__experimentalGetBlockListSettingsForBlocks:r,isBlockInsertionPointVisible:l,getBlockInsertionPoint:i,getBlockOrder:s,hasMultiSelection:a,getLastMultiSelectedBlockClientId:c}=t(Nr),u=o(e),d=r(u),p=u.find((e=>d[e]?.__experimentalCaptureToolbars));let m=!1;if(l()){const t=i();m=s(t.rootClientId)[t.index]===e}return{capturingClientId:p,isInsertionPointVisible:m,lastClientId:a()?c():null,rootClientId:n(e)}}),[e]);return t}function iS({clientId:e,__unstableContentRef:t}){const{capturingClientId:n,isInsertionPointVisible:o,lastClientId:r,rootClientId:l}=lS(e),i=rS({contentElement:t?.current,clientId:e});return(0,s.createElement)(fm,{clientId:n||e,__unstableCoverTarget:!0,bottomClientId:r,className:ml()("block-editor-block-list__block-side-inserter-popover",{"is-insertion-point-visible":o}),__unstableContentRef:t,resize:!1,shift:!1,...i},(0,s.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},(0,s.createElement)(lw,{position:"bottom right",rootClientId:l,clientId:e,__experimentalIsQuick:!0})))}const sS=({appendToOwnerDocument:e,children:t,clientIds:n,cloneClassname:o,elementId:r,onDragStart:l,onDragEnd:i,fadeWhenDisabled:a=!1,dragComponent:m})=>{const{srcRootClientId:h,isDraggable:g,icon:f,visibleInserter:b,getBlockType:v}=(0,d.useSelect)((e=>{const{canMoveBlocks:t,getBlockRootClientId:o,getBlockName:r,getBlockAttributes:l,isBlockInsertionPointVisible:i}=e(Nr),{getBlockType:s,getActiveBlockVariation:a}=e(c.store),u=o(n[0]),d=r(n[0]),p=a(d,l(n[0]));return{srcRootClientId:u,isDraggable:t(n,u),icon:p?.icon||s(d)?.icon,visibleInserter:i(),getBlockType:s}}),[n]),k=(0,u.useRef)(!1),[_,y,E]=function(){const e=(0,u.useRef)(null),t=(0,u.useRef)(null),n=(0,u.useRef)(null),o=(0,u.useRef)(null);return(0,u.useEffect)((()=>()=>{o.current&&(clearInterval(o.current),o.current=null)}),[]),[(0,u.useCallback)((r=>{e.current=r.clientY,n.current=(0,As.getScrollContainer)(r.target),o.current=setInterval((()=>{if(n.current&&t.current){const e=n.current.scrollTop+t.current;n.current.scroll({top:e})}}),25)}),[]),(0,u.useCallback)((o=>{if(!n.current)return;const r=n.current.offsetHeight,l=e.current-n.current.offsetTop,i=o.clientY-n.current.offsetTop;if(o.clientY>l){const e=Math.max(r-l-50,0),n=Math.max(i-l-50,0),o=0===e||0===n?0:n/e;t.current=25*o}else if(o.clientY<l){const e=Math.max(l-50,0),n=Math.max(l-i-50,0),o=0===e||0===n?0:n/e;t.current=-25*o}else t.current=0}),[]),()=>{e.current=null,n.current=null,o.current&&(clearInterval(o.current),o.current=null)}]}(),{getAllowedBlocks:w,getBlockNamesByClientId:S,getBlockRootClientId:C}=(0,d.useSelect)(Nr),{startDraggingBlocks:x,stopDraggingBlocks:B}=(0,d.useDispatch)(Nr);(0,u.useEffect)((()=>()=>{k.current&&B()}),[]);const I=fd(n[0]),T=I.current?.closest("body");if((0,u.useEffect)((()=>{if(!T||!a)return;const e=(0,p.throttle)((e=>{if(!e.target.closest("[data-block]"))return;const t=S(n),o=e.target.closest("[data-block]").getAttribute("data-block"),r=w(o),l=S([o])[0];let i;if(0===r?.length){const e=C(o),n=S([e])[0],r=w(e);i=Nw(v,r,t,n)}else i=Nw(v,r,t,l);i||b?window?.document?.body?.classList?.remove("block-draggable-invalid-drag-token"):window?.document?.body?.classList?.add("block-draggable-invalid-drag-token")}),200);return T.addEventListener("dragover",e),()=>{T.removeEventListener("dragover",e)}}),[n,T,a,w,S,C,v,b]),!g)return t({draggable:!1});const M={type:"block",srcClientIds:n,srcRootClientId:h};return(0,s.createElement)(_l.Draggable,{appendToOwnerDocument:e,cloneClassname:o,__experimentalTransferDataType:"wp-blocks",transferData:M,onDragStart:e=>{window.requestAnimationFrame((()=>{x(n),k.current=!0,_(e),l&&l()}))},onDragOver:y,onDragEnd:()=>{B(),k.current=!1,E(),i&&i()},__experimentalDragComponent:void 0!==m?m:(0,s.createElement)(Ay,{count:n.length,icon:f,fadeWhenDisabled:!0}),elementId:r},(({onDraggableStart:e,onDraggableEnd:n})=>t({draggable:!0,onDragStart:e,onDragEnd:n})))},aS=(0,s.createElement)(Z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(Z.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),cS=(0,s.createElement)(Z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(Z.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),uS=(e,t)=>"up"===e?"horizontal"===t?(0,x.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===t?(0,x.isRTL)()?"left":"right":"down":null;function dS(e,t,n,o,r,l,i){const s=n+1;if(e>1)return function(e,t,n,o,r,l){const i=t+1;if(n&&o)return(0,x.__)("All blocks are selected, and cannot be moved");if(r>0&&!o){const t=uS("down",l);if("down"===t)return(0,x.sprintf)((0,x.__)("Move %1$d blocks from position %2$d down by one place"),e,i);if("left"===t)return(0,x.sprintf)((0,x.__)("Move %1$d blocks from position %2$d left by one place"),e,i);if("right"===t)return(0,x.sprintf)((0,x.__)("Move %1$d blocks from position %2$d right by one place"),e,i)}if(r>0&&o){const e=uS("down",l);if("down"===e)return(0,x.__)("Blocks cannot be moved down as they are already at the bottom");if("left"===e)return(0,x.__)("Blocks cannot be moved left as they are already are at the leftmost position");if("right"===e)return(0,x.__)("Blocks cannot be moved right as they are already are at the rightmost position")}if(r<0&&!n){const t=uS("up",l);if("up"===t)return(0,x.sprintf)((0,x.__)("Move %1$d blocks from position %2$d up by one place"),e,i);if("left"===t)return(0,x.sprintf)((0,x.__)("Move %1$d blocks from position %2$d left by one place"),e,i);if("right"===t)return(0,x.sprintf)((0,x.__)("Move %1$d blocks from position %2$d right by one place"),e,i)}if(r<0&&n){const e=uS("up",l);if("up"===e)return(0,x.__)("Blocks cannot be moved up as they are already at the top");if("left"===e)return(0,x.__)("Blocks cannot be moved left as they are already are at the leftmost position");if("right"===e)return(0,x.__)("Blocks cannot be moved right as they are already are at the rightmost position")}}(e,n,o,r,l,i);if(o&&r)return(0,x.sprintf)((0,x.__)("Block %s is the only block, and cannot be moved"),t);if(l>0&&!r){const e=uS("down",i);if("down"===e)return(0,x.sprintf)((0,x.__)("Move %1$s block from position %2$d down to position %3$d"),t,s,s+1);if("left"===e)return(0,x.sprintf)((0,x.__)("Move %1$s block from position %2$d left to position %3$d"),t,s,s+1);if("right"===e)return(0,x.sprintf)((0,x.__)("Move %1$s block from position %2$d right to position %3$d"),t,s,s+1)}if(l>0&&r){const e=uS("down",i);if("down"===e)return(0,x.sprintf)((0,x.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===e)return(0,x.sprintf)((0,x.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===e)return(0,x.sprintf)((0,x.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(l<0&&!o){const e=uS("up",i);if("up"===e)return(0,x.sprintf)((0,x.__)("Move %1$s block from position %2$d up to position %3$d"),t,s,s-1);if("left"===e)return(0,x.sprintf)((0,x.__)("Move %1$s block from position %2$d left to position %3$d"),t,s,s-1);if("right"===e)return(0,x.sprintf)((0,x.__)("Move %1$s block from position %2$d right to position %3$d"),t,s,s-1)}if(l<0&&o){const e=uS("up",i);if("up"===e)return(0,x.sprintf)((0,x.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===e)return(0,x.sprintf)((0,x.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===e)return(0,x.sprintf)((0,x.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}const pS=(e,t)=>"up"===e?"horizontal"===t?(0,x.isRTL)()?T_:M_:aS:"down"===e?"horizontal"===t?(0,x.isRTL)()?M_:T_:cS:null,mS=(e,t)=>"up"===e?"horizontal"===t?(0,x.isRTL)()?(0,x.__)("Move right"):(0,x.__)("Move left"):(0,x.__)("Move up"):"down"===e?"horizontal"===t?(0,x.isRTL)()?(0,x.__)("Move left"):(0,x.__)("Move right"):(0,x.__)("Move down"):null,hS=(0,u.forwardRef)((({clientIds:e,direction:t,orientation:n,...o},r)=>{const l=(0,p.useInstanceId)(hS),i=Array.isArray(e)?e:[e],a=i.length,{blockType:u,isDisabled:m,rootClientId:h,isFirst:g,isLast:f,firstIndex:b,orientation:v="vertical"}=(0,d.useSelect)((e=>{const{getBlockIndex:o,getBlockRootClientId:r,getBlockOrder:l,getBlock:s,getBlockListSettings:a}=e(Nr),u=i[0],d=r(u),p=o(u),m=o(i[i.length-1]),h=l(d),g=s(u),f=0===p,b=m===h.length-1,{orientation:v}=a(d)||{};return{blockType:g?(0,c.getBlockType)(g.name):null,isDisabled:"up"===t?f:b,rootClientId:d,firstIndex:p,isFirst:f,isLast:b,orientation:n||v}}),[e,t]),{moveBlocksDown:k,moveBlocksUp:_}=(0,d.useDispatch)(Nr),y="up"===t?_:k,E=`block-editor-block-mover-button__description-${l}`;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.Button,{ref:r,className:ml()("block-editor-block-mover-button",`is-${t}-button`),icon:pS(t,v),label:mS(t,v),"aria-describedby":E,...o,onClick:m?null:t=>{y(e,h),o.onClick&&o.onClick(t)},disabled:m,__experimentalIsFocusable:!0}),(0,s.createElement)(_l.VisuallyHidden,{id:E},dS(a,u&&u.title,b,g,f,"up"===t?-1:1,v)))})),gS=(0,u.forwardRef)(((e,t)=>(0,s.createElement)(hS,{direction:"up",ref:t,...e}))),fS=(0,u.forwardRef)(((e,t)=>(0,s.createElement)(hS,{direction:"down",ref:t,...e})));const bS=function({clientIds:e,hideDragHandle:t}){const{canMove:n,rootClientId:o,isFirst:r,isLast:l,orientation:i}=(0,d.useSelect)((t=>{const{getBlockIndex:n,getBlockListSettings:o,canMoveBlocks:r,getBlockOrder:l,getBlockRootClientId:i}=t(Nr),s=Array.isArray(e)?e:[e],a=s[0],c=i(a),u=n(a),d=n(s[s.length-1]),p=l(c);return{canMove:r(e,c),rootClientId:c,isFirst:0===u,isLast:d===p.length-1,orientation:o(c)?.orientation}}),[e]);if(!n||r&&l&&!o)return null;const a=(0,x.__)("Drag");return(0,s.createElement)(_l.ToolbarGroup,{className:ml()("block-editor-block-mover",{"is-horizontal":"horizontal"===i})},!t&&(0,s.createElement)(sS,{clientIds:e,fadeWhenDisabled:!0},(e=>(0,s.createElement)(_l.Button,{icon:Ly,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:a,tabIndex:"-1",...e}))),(0,s.createElement)("div",{className:"block-editor-block-mover__move-button-container"},(0,s.createElement)(_l.ToolbarItem,null,(t=>(0,s.createElement)(gS,{clientIds:e,...t}))),(0,s.createElement)(_l.ToolbarItem,null,(t=>(0,s.createElement)(fS,{clientIds:e,...t})))))},{clearTimeout:vS,setTimeout:kS}=window,_S=200;function yS({ref:e,isFocused:t,highlightParent:n,debounceTimeout:o=_S}){const{getSelectedBlockClientId:r,getBlockRootClientId:l}=(0,d.useSelect)(Nr),{toggleBlockHighlight:i}=(0,d.useDispatch)(Nr),s=(0,u.useRef)(),a=(0,d.useSelect)((e=>e(Nr).getSettings().isDistractionFree),[]),c=e=>{if(e&&a)return;const t=r(),o=n?l(t):t;i(o,e)},p=()=>{const n=e?.current&&e.current.matches(":hover");return!t&&!n},m=()=>{const e=s.current;e&&vS&&vS(e)};return(0,u.useEffect)((()=>()=>{c(!1),m()}),[]),{debouncedShowGestures:e=>{e&&e.stopPropagation(),m(),c(!0)},debouncedHideGestures:e=>{e&&e.stopPropagation(),m(),s.current=kS((()=>{p()&&c(!1)}),o)}}}function ES({ref:e,highlightParent:t=!1,debounceTimeout:n=_S}){const[o,r]=(0,u.useState)(!1),{debouncedShowGestures:l,debouncedHideGestures:i}=yS({ref:e,debounceTimeout:n,isFocused:o,highlightParent:t}),s=(0,u.useRef)(!1),a=()=>e?.current&&e.current.contains(e.current.ownerDocument.activeElement);return(0,u.useEffect)((()=>{const t=e.current,n=()=>{a()&&(r(!0),l())},o=()=>{a()||(r(!1),i())};return t&&!s.current&&(t.addEventListener("focus",n,!0),t.addEventListener("blur",o,!0),s.current=!0),()=>{t&&(t.removeEventListener("focus",n),t.removeEventListener("blur",o))}}),[e,s,r,l,i]),{onMouseMove:l,onMouseLeave:i}}function wS(){const{selectBlock:e}=(0,d.useDispatch)(Nr),{firstParentClientId:t,isVisible:n}=(0,d.useSelect)((e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientId:o,getBlockEditingMode:r}=e(Nr),{hasBlockSupport:l}=e(c.store),i=n(o()),s=i[i.length-1],a=t(s),u=(0,c.getBlockType)(a);return{firstParentClientId:s,isVisible:s&&"default"===r(s)&&l(u,"__experimentalParentSelector",!0)}}),[]),o=ih(t),r=(0,u.useRef)(),l=ES({ref:r,highlightParent:!0});return n?(0,s.createElement)("div",{className:"block-editor-block-parent-selector",key:t,ref:r,...l},(0,s.createElement)(_l.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(t),label:(0,x.sprintf)((0,x.__)("Select parent block: %s"),o?.title),showTooltip:!0,icon:(0,s.createElement)(qh,{icon:o?.icon})})):null}const SS=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"}));function CS({blocks:e}){return(0,s.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},(0,s.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},(0,s.createElement)(_l.Popover,{className:"block-editor-block-switcher__preview__popover",placement:"bottom-start",focusOnMount:!1},(0,s.createElement)("div",{className:"block-editor-block-switcher__preview"},(0,s.createElement)("div",{className:"block-editor-block-switcher__preview-title"},(0,x.__)("Preview")),(0,s.createElement)(Ty,{viewportWidth:500,blocks:e})))))}const xS={};function BS({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:o,icon:r,title:l}=e;return(0,s.createElement)(_l.MenuItem,{className:(0,c.getBlockMenuDefaultClassName)(o),onClick:e=>{e.preventDefault(),t(o)},onMouseLeave:()=>n(null),onMouseEnter:()=>n(o)},(0,s.createElement)(qh,{icon:r,showColors:!0}),l)}const IS=({transformations:e,onSelect:t,blocks:n})=>{const[o,r]=(0,u.useState)();return(0,s.createElement)(s.Fragment,null,o&&(0,s.createElement)(CS,{blocks:(0,c.cloneBlock)(n[0],e.find((({name:e})=>e===o)).attributes)}),e?.map((e=>(0,s.createElement)(BS,{key:e.name,item:e,onSelect:t,setHoveredTransformItemName:r}))))};function TS({restTransformations:e,onSelect:t,setHoveredTransformItemName:n}){return e.map((e=>(0,s.createElement)(MS,{key:e.name,item:e,onSelect:t,setHoveredTransformItemName:n})))}function MS({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:o,icon:r,title:l,isDisabled:i}=e;return(0,s.createElement)(_l.MenuItem,{className:(0,c.getBlockMenuDefaultClassName)(o),onClick:e=>{e.preventDefault(),t(o)},disabled:i,onMouseLeave:()=>n(null),onMouseEnter:()=>n(o)},(0,s.createElement)(qh,{icon:r,showColors:!0}),l)}const PS=({className:e,possibleBlockTransformations:t,possibleBlockVariationTransformations:n,onSelect:o,onSelectVariation:r,blocks:l})=>{const[i,a]=(0,u.useState)(),{priorityTextTransformations:d,restTransformations:p}=function(e){const t={"core/paragraph":1,"core/heading":2,"core/list":3,"core/quote":4},n=(0,u.useMemo)((()=>{const n=Object.keys(t),o=e.reduce(((e,t)=>{const{name:o}=t;return n.includes(o)?e.priorityTextTransformations.push(t):e.restTransformations.push(t),e}),{priorityTextTransformations:[],restTransformations:[]});if(1===o.priorityTextTransformations.length&&"core/quote"===o.priorityTextTransformations[0].name){const e=o.priorityTextTransformations.pop();o.restTransformations.push(e)}return o}),[e]);return n.priorityTextTransformations.sort((({name:e},{name:n})=>t[e]<t[n]?-1:1)),n}(t),m=d.length&&p.length,h=!!p.length&&(0,s.createElement)(TS,{restTransformations:p,onSelect:o,setHoveredTransformItemName:a});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.MenuGroup,{label:(0,x.__)("Transform to"),className:e},i&&(0,s.createElement)(CS,{blocks:(0,c.switchToBlockType)(l,i)}),!!n?.length&&(0,s.createElement)(IS,{transformations:n,blocks:l,onSelect:r}),d.map((e=>(0,s.createElement)(MS,{key:e.name,item:e,onSelect:o,setHoveredTransformItemName:a}))),!m&&h),!!m&&(0,s.createElement)(_l.MenuGroup,{className:e},h))};function RS(e,t,n){const o=new(vp())(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}function NS(e){return e?.find((e=>e.isDefault))}function LS({clientId:e,onSwitch:t}){const{styles:n,block:o,blockType:r,className:l}=(0,d.useSelect)((t=>{const{getBlock:n}=t(Nr),o=n(e);if(!o)return{};const r=(0,c.getBlockType)(o.name),{getBlockStyles:l}=t(c.store);return{block:o,blockType:r,styles:l(o.name),className:o.attributes.className||""}}),[e]),{updateBlockAttributes:i}=(0,d.useDispatch)(Nr),s=function(e){return e&&0!==e.length?NS(e)?e:[{name:"default",label:(0,x._x)("Default","block style"),isDefault:!0},...e]:[]}(n),a=function(e,t){for(const n of new(vp())(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),o=e?.find((({name:e})=>e===t));if(o)return o}return NS(e)}(s,l),p=function(e,t){return(0,u.useMemo)((()=>{const n=t?.example,o=t?.name;return n&&o?(0,c.getBlockFromExample)(o,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?(0,c.cloneBlock)(e):void 0}),[t?.example?e?.name:e,t])}(o,r);return{onSelect:n=>{const o=RS(l,a,n);i(e,{className:o}),t()},stylesToRender:s,activeStyle:a,genericPreviewBlock:p,className:l}}const AS=()=>{};function OS({clientId:e,onSwitch:t=AS}){const{onSelect:n,stylesToRender:o,activeStyle:r}=LS({clientId:e,onSwitch:t});return o&&0!==o.length?(0,s.createElement)(s.Fragment,null,o.map((e=>{const t=e.label||e.name;return(0,s.createElement)(_l.MenuItem,{key:e.name,icon:r.name===e.name?uu:null,onClick:()=>n(e)},(0,s.createElement)(_l.__experimentalText,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0},t))}))):null}function DS({hoveredBlock:e,onSwitch:t}){const{clientId:n}=e;return(0,s.createElement)(_l.MenuGroup,{label:(0,x.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},(0,s.createElement)(OS,{clientId:n,onSwitch:t}))}const zS=(e,t,n=new Set)=>{const{clientId:o,name:r,innerBlocks:l=[]}=e;if(!n.has(o)){if(r===t)return e;for(const e of l){const o=zS(e,t,n);if(o)return o}}},VS=(e,t)=>{const n=((e,t)=>{const n=(0,c.__experimentalGetBlockAttributesNamesByRole)(e,"content");return n?.length?n.reduce(((e,n)=>(t[n]&&(e[n]=t[n]),e)),{}):t})(t.name,t.attributes);e.attributes={...e.attributes,...n}},FS=(e,t)=>(0,u.useMemo)((()=>e.reduce(((e,n)=>{const o=((e,t)=>{const n=t.map((e=>(0,c.cloneBlock)(e))),o=new Set;for(const t of e){let e=!1;for(const r of n){const n=zS(r,t.name,o);if(n){e=!0,o.add(n.clientId),VS(n,t);break}}if(!e)return}return n})(t,n.blocks);return o&&e.push({...n,transformedBlocks:o}),e}),[])),[e,t]),{CompositeV2:HS,CompositeItemV2:GS,useCompositeStoreV2:US}=ie(_l.privateApis);function $S({patterns:e,onSelect:t}){return(0,s.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},(0,s.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},(0,s.createElement)(_l.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right"},(0,s.createElement)("div",{className:"block-editor-block-switcher__preview is-pattern-list-preview"},(0,s.createElement)(jS,{patterns:e,onSelect:t})))))}function jS({patterns:e,onSelect:t}){const n=US();return(0,s.createElement)(HS,{store:n,role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":(0,x.__)("Patterns list")},e.map((e=>(0,s.createElement)(WS,{key:e.name,pattern:e,onSelect:t}))))}function WS({pattern:e,onSelect:t}){const n="block-editor-block-switcher__preview-patterns-container",o=(0,p.useInstanceId)(WS,`${n}-list__item-description`);return(0,s.createElement)("div",{className:`${n}-list__list-item`},(0,s.createElement)(GS,{render:(0,s.createElement)("div",{role:"option","aria-label":e.title,"aria-describedby":e.description?o:void 0,className:`${n}-list__item`}),onClick:()=>t(e.transformedBlocks)},(0,s.createElement)(Ty,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),(0,s.createElement)("div",{className:`${n}-list__item-title`},e.title)),!!e.description&&(0,s.createElement)(_l.VisuallyHidden,{id:o},e.description))}const KS=function({blocks:e,patterns:t,onSelect:n}){const[o,r]=(0,u.useState)(!1),l=FS(t,e);return l.length?(0,s.createElement)(_l.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup"},o&&(0,s.createElement)($S,{patterns:l,onSelect:n}),(0,s.createElement)(_l.MenuItem,{onClick:e=>{e.preventDefault(),r(!o)},icon:T_},(0,x.__)("Patterns"))):null};function ZS({onClose:e,clientIds:t,hasBlockStyles:n,canRemove:o}){const{replaceBlocks:r,multiSelect:l,updateBlockAttributes:i}=(0,d.useDispatch)(Nr),{possibleBlockTransformations:a,patterns:p,blocks:m}=(0,d.useSelect)((e=>{const{getBlocksByClientId:n,getBlockRootClientId:o,getBlockTransformItems:r,__experimentalGetPatternTransformItems:l}=e(Nr),i=o(Array.isArray(t)?t[0]:t),s=n(t);return{blocks:s,possibleBlockTransformations:r(s,i),patterns:l(s,i)}}),[t]),h=function({clientIds:e,blocks:t}){const{activeBlockVariation:n,blockVariationTransformations:o}=(0,d.useSelect)((n=>{const{getBlockRootClientId:o,getBlockAttributes:r,canRemoveBlocks:l}=n(Nr),{getActiveBlockVariation:i,getBlockVariations:s}=n(c.store),a=o(Array.isArray(e)?e[0]:e),u=l(e,a);if(1!==t.length||!u)return xS;const[d]=t;return{blockVariationTransformations:s(d.name,"transform"),activeBlockVariation:i(d.name,r(d.clientId))}}),[e,t]);return(0,u.useMemo)((()=>o?.filter((({name:e})=>e!==n?.name))),[o,n])}({clientIds:t,blocks:m});function g(e){e.length>1&&l(e[0].clientId,e[e.length-1].clientId)}const f=1===m.length&&(0,c.isTemplatePart)(m[0]),b=!!a.length&&o&&!f,v=!!h?.length,k=!!p?.length&&o,_=b||v;return n||_||k?(0,s.createElement)("div",{className:"block-editor-block-switcher__container"},k&&(0,s.createElement)(KS,{blocks:m,patterns:p,onSelect:n=>{!function(e){r(t,e),g(e)}(n),e()}}),_&&(0,s.createElement)(PS,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:a,possibleBlockVariationTransformations:h,blocks:m,onSelect:n=>{!function(e){const n=(0,c.switchToBlockType)(m,e);r(t,n),g(n)}(n),e()},onSelectVariation:t=>{!function(e){i(m[0].clientId,{...h.find((({name:t})=>t===e)).attributes})}(t),e()}}),n&&(0,s.createElement)(DS,{hoveredBlock:m[0],onSwitch:e})):(0,s.createElement)("p",{className:"block-editor-block-switcher__no-transforms"},(0,x.__)("No transforms."))}const qS=({clientIds:e})=>{const{canRemove:t,hasBlockStyles:n,icon:o,invalidBlocks:r,isReusable:l,isTemplate:i}=(0,d.useSelect)((t=>{const{getBlockRootClientId:n,getBlocksByClientId:o,getBlockAttributes:r,canRemoveBlocks:l}=t(Nr),{getBlockStyles:i,getBlockType:s,getActiveBlockVariation:a}=t(c.store),u=o(e);if(!u.length||u.some((e=>!e)))return{invalidBlocks:!0};const d=n(Array.isArray(e)?e[0]:e),[{name:p}]=u,m=1===u.length,h=s(p);let g;if(m){const t=a(p,r(e[0]));g=t?.icon||h.icon}else{g=1===new Set(u.map((({name:e})=>e))).size?h.icon:SS}return{canRemove:l(e,d),hasBlockStyles:m&&!!i(p)?.length,icon:g,isReusable:m&&(0,c.isReusableBlock)(u[0]),isTemplate:m&&(0,c.isTemplatePart)(u[0])}}),[e]),a=df({clientId:e?.[0],maximumLength:35});if(r)return null;const u=1===e.length,p=u?a:(0,x.__)("Multiple blocks selected");if(!n&&!t)return(0,s.createElement)(_l.ToolbarGroup,null,(0,s.createElement)(_l.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:p,icon:(0,s.createElement)(s.Fragment,null,(0,s.createElement)(qh,{icon:o,showColors:!0}),(l||i)&&(0,s.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},a))}));const m=u?(0,x.__)("Change block type or style"):(0,x.sprintf)((0,x._n)("Change type of %d block","Change type of %d blocks",e.length),e.length);return(0,s.createElement)(_l.ToolbarGroup,null,(0,s.createElement)(_l.ToolbarItem,null,(r=>(0,s.createElement)(_l.DropdownMenu,{className:"block-editor-block-switcher",label:p,popoverProps:{placement:"bottom-start",className:"block-editor-block-switcher__popover"},icon:(0,s.createElement)(s.Fragment,null,(0,s.createElement)(qh,{icon:o,className:"block-editor-block-switcher__toggle",showColors:!0}),(l||i)&&(0,s.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},a)),toggleProps:{describedBy:m,...r},menuProps:{orientation:"both"}},(({onClose:o})=>(0,s.createElement)(ZS,{onClose:o,clientIds:e,hasBlockStyles:n,canRemove:t}))))))},{Fill:YS,Slot:XS}=(0,_l.createSlotFill)("__unstableBlockToolbarLastItem");YS.Slot=XS;const QS=YS,JS="align",eC="__experimentalBorder",tC="color",nC="customClassName",oC="typography.__experimentalFontFamily",rC="typography.fontSize",lC="layout",iC=["shadow",...["typography.lineHeight",rC,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",oC,"typography.textColumns","typography.__experimentalTextDecoration","typography.__experimentalTextTransform","typography.__experimentalWritingMode","typography.__experimentalLetterSpacing"],eC,tC,"spacing"];const sC={align:e=>(0,c.hasBlockSupport)(e,JS),borderColor:e=>function(e,t="any"){if("web"!==u.Platform.OS)return!1;const n=(0,c.getBlockSupport)(e,eC);return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}(e,"color"),backgroundColor:e=>{const t=(0,c.getBlockSupport)(e,tC);return t&&!1!==t.background},textColor:e=>{const t=(0,c.getBlockSupport)(e,tC);return t&&!1!==t.text},gradient:e=>{const t=(0,c.getBlockSupport)(e,tC);return null!==t&&"object"==typeof t&&!!t.gradients},className:e=>(0,c.hasBlockSupport)(e,nC,!0),fontFamily:e=>(0,c.hasBlockSupport)(e,oC),fontSize:e=>(0,c.hasBlockSupport)(e,rC),layout:e=>(0,c.hasBlockSupport)(e,lC),style:e=>iC.some((t=>(0,c.hasBlockSupport)(e,t)))};function aC(e,t){return Object.entries(sC).reduce(((n,[o,r])=>(r(e.name)&&r(t.name)&&(n[o]=e.attributes[o]),n)),{})}function cC(e,t,n){for(let o=0;o<Math.min(t.length,e.length);o+=1)n(e[o].clientId,aC(t[o],e[o])),cC(e[o].innerBlocks,t[o].innerBlocks,n)}function uC(){const e=(0,d.useRegistry)(),{updateBlockAttributes:t}=(0,d.useDispatch)(Nr),{createSuccessNotice:n,createWarningNotice:o,createErrorNotice:r}=(0,d.useDispatch)(Os.store);return(0,u.useCallback)((async l=>{let i="";try{if(!window.navigator.clipboard)return void r((0,x.__)("Unable to paste styles. This feature is only available on secure (https) sites in supporting browsers."),{type:"snackbar"});i=await window.navigator.clipboard.readText()}catch(e){return void r((0,x.__)("Unable to paste styles. Please allow browser clipboard permissions before continuing."),{type:"snackbar"})}if(!i||!function(e){try{const t=(0,c.parse)(e,{__unstableSkipMigrationLogs:!0,__unstableSkipAutop:!0});return 1!==t.length||"core/freeform"!==t[0].name}catch(e){return!1}}(i))return void o((0,x.__)("Unable to paste styles. Block styles couldn't be found within the copied content."),{type:"snackbar"});const s=(0,c.parse)(i);if(1===s.length?e.batch((()=>{cC(l,l.map((()=>s[0])),t)})):e.batch((()=>{cC(l,s,t)})),1===l.length){const e=(0,c.getBlockType)(l[0].name)?.title;n((0,x.sprintf)((0,x.__)("Pasted styles to %s."),e),{type:"snackbar"})}else n((0,x.sprintf)((0,x.__)("Pasted styles to %d blocks."),l.length),{type:"snackbar"})}),[e.batch,t,n,o,r])}function dC({clientIds:e,children:t,__experimentalUpdateSelection:n}){const{getDefaultBlockName:o,getGroupingBlockName:r}=(0,d.useSelect)(c.store),l=(0,d.useSelect)((t=>{const{canInsertBlockType:n,getBlockRootClientId:r,getBlocksByClientId:l,getDirectInsertBlock:i,canMoveBlocks:s,canRemoveBlocks:a}=t(Nr),u=l(e),d=r(e[0]),p=n(o(),d),m=d?i(d):null;return{canMove:s(e,d),canRemove:a(e,d),canInsertBlock:p||!!m,canCopyStyles:u.every((e=>!!e&&((0,c.hasBlockSupport)(e.name,"color")||(0,c.hasBlockSupport)(e.name,"typography")))),canDuplicate:u.every((e=>!!e&&(0,c.hasBlockSupport)(e.name,"multiple",!0)&&n(e.name,d)))}}),[e,o]),{getBlocksByClientId:i,getBlocks:s}=(0,d.useSelect)(Nr),{canMove:a,canRemove:u,canInsertBlock:p,canCopyStyles:m,canDuplicate:h}=l,{removeBlocks:g,replaceBlocks:f,duplicateBlocks:b,insertAfterBlock:v,insertBeforeBlock:k,flashBlock:_,setBlockMovingClientId:y,setNavigationMode:E,selectBlock:w}=(0,d.useDispatch)(Nr),S=ey(),C=uC();return t({canCopyStyles:m,canDuplicate:h,canInsertBlock:p,canMove:a,canRemove:u,onDuplicate:()=>b(e,n),onRemove:()=>g(e,n),onInsertBefore(){const t=Array.isArray(e)?e[0]:t;k(t)},onInsertAfter(){const t=Array.isArray(e)?e[e.length-1]:t;v(t)},onMoveTo(){E(!0),w(e[0]),y(e[0])},onGroup(){if(!e.length)return;const t=r(),n=(0,c.switchToBlockType)(i(e),t);n&&f(e,n)},onUngroup(){if(!e.length)return;const t=s(e[0]);t.length&&f(e,t)},onCopy(){1===e.length&&_(e[0]),S("copy",e)},async onPasteStyles(){await C(i(e))}})}const pC=function({clientId:e}){const t=(0,d.useSelect)((t=>t(Nr).getBlock(e)),[e]),{replaceBlocks:n}=(0,d.useDispatch)(Nr);return t&&"core/html"===t.name?(0,s.createElement)(_l.MenuItem,{onClick:()=>n(e,(0,c.rawHandler)({HTML:(0,c.getBlockContent)(t)}))},(0,x.__)("Convert to Blocks")):null},{Fill:mC,Slot:hC}=(0,_l.createSlotFill)("__unstableBlockSettingsMenuFirstItem");mC.Slot=hC;const gC=mC,fC={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"};function bC({clientIds:e,onCopy:t,label:n}){const{getBlocksByClientId:o}=(0,d.useSelect)(Nr),r=(0,p.useCopyToClipboard)((()=>(0,c.serialize)(o(e))),t),l=n||(0,x.__)("Copy");return(0,s.createElement)(_l.MenuItem,{ref:r},l)}function vC({parentClientId:e,parentBlockType:t}){const n=(0,p.useViewportMatch)("medium","<"),{selectBlock:o}=(0,d.useDispatch)(Nr),r=(0,u.useRef)(),l=ES({ref:r,highlightParent:!0});return n?(0,s.createElement)(_l.MenuItem,{...l,ref:r,icon:(0,s.createElement)(qh,{icon:t.icon}),onClick:()=>o(e)},(0,x.sprintf)((0,x.__)("Select parent block (%s)"),t.title)):null}function kC({block:e,clientIds:t,__experimentalSelectBlock:n,children:o,__unstableDisplayLocation:r,...l}){const i=e?.clientId,a=Array.isArray(t)?t:[t],m=a.length,h=a[0],{firstParentClientId:g,onlyBlock:f,parentBlockType:b,previousBlockClientId:v,selectedBlockClientIds:k}=(0,d.useSelect)((e=>{const{getBlockCount:t,getBlockName:n,getBlockRootClientId:o,getPreviousBlockClientId:r,getSelectedBlockClientIds:l,getBlockAttributes:i}=e(Nr),{getActiveBlockVariation:s}=e(c.store),a=o(h),u=a&&n(a);return{firstParentClientId:a,onlyBlock:1===t(a),parentBlockType:a&&(s(u,i(a))||(0,c.getBlockType)(u)),previousBlockClientId:r(h),selectedBlockClientIds:l()}}),[h]),{getBlockOrder:_,getSelectedBlockClientIds:y}=(0,d.useSelect)(Nr),E=(0,d.useSelect)((e=>ie(e(Nr)).getOpenedBlockSettingsMenu()),[]),{setOpenedBlockSettingsMenu:w}=ie((0,d.useDispatch)(Nr)),S=(0,d.useSelect)((e=>{const{getShortcutRepresentation:t}=e(A_.store);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")}}),[]),C=(0,A_.__unstableUseShortcutEventMatch)(),B=k.length>0,I=(0,u.useCallback)((async e=>{if(n){const t=await e;t&&t[0]&&n(t[0],!1)}}),[n]),T=(0,u.useCallback)((()=>{if(n){let e=v||g;e||(e=_()[0]);const t=B&&0===y().length;n(e,t)}}),[n,v,g,_,B,y]),M=k?.includes(g),P=i?E===i||!1:void 0,R=(0,u.useCallback)((e=>{e&&E!==i?w(i):!e&&E&&E===i&&w(void 0)}),[i,E,w]);return(0,s.createElement)(dC,{clientIds:t,__experimentalUpdateSelection:!n},(({canCopyStyles:e,canDuplicate:n,canInsertBlock:i,canMove:a,canRemove:c,onDuplicate:d,onInsertAfter:v,onInsertBefore:k,onRemove:_,onCopy:y,onPasteStyles:E,onMoveTo:B})=>(0,s.createElement)(_l.DropdownMenu,{icon:Ef,label:(0,x.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:fC,open:P,onToggle:R,noIcons:!0,menuProps:{onKeyDown(e){e.defaultPrevented||(C("core/block-editor/remove",e)&&c?(e.preventDefault(),T(_())):C("core/block-editor/duplicate",e)&&n?(e.preventDefault(),I(d())):C("core/block-editor/insert-after",e)&&i?(e.preventDefault(),w(void 0),v()):C("core/block-editor/insert-before",e)&&i&&(e.preventDefault(),w(void 0),k()))}},...l},(({onClose:l})=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.MenuGroup,null,(0,s.createElement)(gC.Slot,{fillProps:{onClose:l}}),!M&&!!g&&(0,s.createElement)(vC,{parentClientId:g,parentBlockType:b}),1===m&&(0,s.createElement)(pC,{clientId:h}),(0,s.createElement)(bC,{clientIds:t,onCopy:y}),n&&(0,s.createElement)(_l.MenuItem,{onClick:(0,p.pipe)(l,d,I),shortcut:S.duplicate},(0,x.__)("Duplicate")),i&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.MenuItem,{onClick:(0,p.pipe)(l,k),shortcut:S.insertBefore},(0,x.__)("Add before")),(0,s.createElement)(_l.MenuItem,{onClick:(0,p.pipe)(l,v),shortcut:S.insertAfter},(0,x.__)("Add after")))),e&&(0,s.createElement)(_l.MenuGroup,null,(0,s.createElement)(bC,{clientIds:t,onCopy:y,label:(0,x.__)("Copy styles")}),(0,s.createElement)(_l.MenuItem,{onClick:E},(0,x.__)("Paste styles"))),(0,s.createElement)(jh.Slot,{fillProps:{onClose:l,canMove:a,onMoveTo:B,onlyBlock:f,count:m,firstBlockClientId:h},clientIds:t,__unstableDisplayLocation:r}),"function"==typeof o?o({onClose:l}):u.Children.map((e=>(0,u.cloneElement)(e,{onClose:l}))),c&&(0,s.createElement)(_l.MenuGroup,null,(0,s.createElement)(_l.MenuItem,{onClick:(0,p.pipe)(l,_,T),shortcut:S.remove},(0,x.__)("Delete"))))))))}const _C=kC;const yC=function({clientIds:e,...t}){return(0,s.createElement)(_l.ToolbarGroup,null,(0,s.createElement)(_l.ToolbarItem,null,(n=>(0,s.createElement)(_C,{clientIds:e,toggleProps:n,...t}))))};function EC({clientId:e}){const{canLock:t,isLocked:n}=Th(e),[o,r]=(0,u.useReducer)((e=>!e),!1),l=(0,u.useRef)(!1);if((0,u.useEffect)((()=>{n&&(l.current=!0)}),[n]),!n&&!l.current)return null;let i=n?(0,x.__)("Unlock"):(0,x.__)("Lock");return!t&&n&&(i=(0,x.__)("Locked")),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.ToolbarGroup,{className:"block-editor-block-lock-toolbar"},(0,s.createElement)(_l.ToolbarButton,{accessibleWhenDisabled:!0,disabled:!t,icon:n?Rh:Mh,label:i,onClick:r,"aria-expanded":o,"aria-haspopup":"dialog"})),o&&(0,s.createElement)(Ah,{clientId:e,onClose:r}))}const wC=(0,s.createElement)(Z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(Z.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"})),SC=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})),CC=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})),xC={group:{type:"constrained"},row:{type:"flex",flexWrap:"nowrap"},stack:{type:"flex",orientation:"vertical"}};const BC=function(){const{blocksSelection:e,clientIds:t,groupingBlockName:n,isGroupable:o}=Bh(),{replaceBlocks:r}=(0,d.useDispatch)(Nr),{canRemove:l,variations:i}=(0,d.useSelect)((e=>{const{canRemoveBlocks:o}=e(Nr),{getBlockVariations:r}=e(c.store);return{canRemove:o(t),variations:r(n,"transform")}}),[t,n]),a=o=>{const l=(0,c.switchToBlockType)(e,n);"string"!=typeof o&&(o="group"),l&&l.length>0&&(l[0].attributes.layout=xC[o],r(t,l))};if(!o||!l)return null;const u=!!i.find((({name:e})=>"group-row"===e)),p=!!i.find((({name:e})=>"group-stack"===e));return(0,s.createElement)(_l.ToolbarGroup,null,(0,s.createElement)(_l.ToolbarButton,{icon:wC,label:(0,x._x)("Group","verb"),onClick:a}),u&&(0,s.createElement)(_l.ToolbarButton,{icon:SC,label:(0,x._x)("Row","single horizontal line"),onClick:()=>a("row")}),p&&(0,s.createElement)(_l.ToolbarButton,{icon:CC,label:(0,x._x)("Stack","verb"),onClick:()=>a("stack")}))};function IC({clientIds:e}){const t=1===e.length?e[0]:void 0,n=(0,d.useSelect)((e=>!!t&&"html"===e(Nr).getBlockMode(t)),[t]),{toggleBlockMode:o}=(0,d.useDispatch)(Nr);return n?(0,s.createElement)(_l.ToolbarGroup,null,(0,s.createElement)(_l.ToolbarButton,{onClick:()=>{o(t)}},(0,x.__)("Edit visually"))):null}const TC=(0,u.createContext)("");function MC(e){return Array.from(e.querySelectorAll("[data-toolbar-item]:not([disabled])"))}function PC(e){return e.contains(e.ownerDocument.activeElement)}function RC({toolbarRef:e,focusOnMount:t,isAccessibleToolbar:n,defaultIndex:o,onIndexChange:r,shouldUseKeyboardFocusShortcut:l,focusEditorOnEscape:i}){const[s]=(0,u.useState)(t),[a]=(0,u.useState)(o),c=(0,u.useCallback)((()=>{!function(e){const[t]=As.focus.tabbable.find(e);t&&t.focus({preventScroll:!0})}(e.current)}),[e]);(0,A_.useShortcut)("core/block-editor/focus-toolbar",(()=>{l&&c()})),(0,u.useEffect)((()=>{s&&c()}),[n,s,c]),(0,u.useEffect)((()=>{const t=e.current;let n=0;return s||PC(t)||(n=window.requestAnimationFrame((()=>{const e=MC(t),n=a||0;e[n]&&PC(t)&&e[n].focus({preventScroll:!0})}))),()=>{if(window.cancelAnimationFrame(n),!r||!t)return;const e=MC(t).findIndex((e=>0===e.tabIndex));r(e)}}),[a,s,r,e]);const{getLastFocus:p}=ie((0,d.useSelect)(Nr));(0,u.useEffect)((()=>{const t=e.current;if(i){const e=e=>{const t=p();e.keyCode===zs.ESCAPE&&t?.current&&(e.preventDefault(),t.current.focus())};return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}}),[i,p,e])}function NC({children:e,focusOnMount:t,focusEditorOnEscape:n=!1,shouldUseKeyboardFocusShortcut:o=!0,__experimentalInitialIndex:r,__experimentalOnIndexChange:l,...i}){const a=(0,u.useRef)(),c=function(e){const[t,n]=(0,u.useState)(!0),o=(0,u.useCallback)((()=>{const t=!As.focus.tabbable.find(e.current).some((e=>!("toolbarItem"in e.dataset)));t||w()("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),n(t)}),[e]);return(0,u.useLayoutEffect)((()=>{const t=new window.MutationObserver(o);return t.observe(e.current,{childList:!0,subtree:!0}),()=>t.disconnect()}),[o,t,e]),t}(a);return RC({toolbarRef:a,focusOnMount:t,defaultIndex:r,onIndexChange:l,isAccessibleToolbar:c,shouldUseKeyboardFocusShortcut:o,focusEditorOnEscape:n}),c?(0,s.createElement)(_l.Toolbar,{label:i["aria-label"],ref:a,...i},e):(0,s.createElement)(_l.NavigableMenu,{orientation:"horizontal",role:"toolbar",ref:a,...i},e)}function LC(e="default"){const t=yl[e]?.Slot,n=(0,_l.__experimentalUseSlotFills)(t?.__unstableName);return t?!!n?.length:null}const AC=(0,s.createElement)(Z.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd"},(0,s.createElement)(Z.Path,{d:"M5 19L8 16L5 19Z"}),(0,s.createElement)(Z.Path,{d:"M16 8L19 5L16 8Z"}),(0,s.createElement)(Z.G,null,(0,s.createElement)(Z.Path,{d:"M5 19L8 16"}),(0,s.createElement)(Z.Path,{d:"M9.30003 17.3C9.523 17.5237 9.78794 17.7013 10.0797 17.8224C10.3714 17.9435 10.6842 18.0059 11 18.0059C11.3159 18.0059 11.6287 17.9435 11.9204 17.8224C12.2121 17.7013 12.4771 17.5237 12.7 17.3L15 15L9.00003 9L6.70003 11.3C6.47629 11.523 6.29876 11.7879 6.17763 12.0796C6.05649 12.3714 5.99414 12.6841 5.99414 13C5.99414 13.3159 6.05649 13.6286 6.17763 13.9204C6.29876 14.2121 6.47629 14.477 6.70003 14.7L9.30003 17.3Z"}),(0,s.createElement)(Z.Path,{d:"M16 8L19 5"}),(0,s.createElement)(Z.Path,{d:"M9 9.00003L15 15L17.3 12.7C17.5237 12.4771 17.7013 12.2121 17.8224 11.9204C17.9435 11.6287 18.0059 11.3159 18.0059 11C18.0059 10.6842 17.9435 10.3714 17.8224 10.0797C17.7013 9.78794 17.5237 9.523 17.3 9.30003L14.7 6.70003C14.477 6.47629 14.2121 6.29876 13.9204 6.17763C13.6286 6.05649 13.3159 5.99414 13 5.99414C12.6841 5.99414 12.3714 6.05649 12.0796 6.17763C11.7879 6.29876 11.523 6.47629 11.3 6.70003L9 9.00003Z"})));function OC(){return(0,s.createElement)(_l.ToolbarGroup,null,(0,s.createElement)(_l.ToolbarItem,{as:"div","aria-label":(0,x._x)("Connected","block toolbar button label"),className:"block-editor-block-bindings-toolbar-indicator"},(0,s.createElement)(_l.Icon,{icon:AC,size:24})))}function DC({hideDragHandle:e,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:o,variant:r="unstyled"}){const{blockClientId:l,blockClientIds:i,isDefaultEditingMode:a,blockType:m,blockName:h,shouldShowVisualToolbar:g,showParentSelector:f,isUsingBindings:b}=(0,d.useSelect)((e=>{const{getBlockName:t,getBlockMode:n,getBlockParents:o,getSelectedBlockClientIds:r,isBlockValid:l,getBlockRootClientId:i,getBlockEditingMode:s,getBlockAttributes:a}=e(Nr),u=r(),d=u[0],p=i(d),m=o(d),h=m[m.length-1],g=t(h),f=(0,c.getBlockType)(g),b="default"===s(d),v=t(d),k=u.every((e=>l(e))),_=u.every((e=>"visual"===n(e))),y=!!a(d)?.metadata?.bindings;return{blockClientId:d,blockClientIds:u,isDefaultEditingMode:b,blockName:v,blockType:d&&(0,c.getBlockType)(v),shouldShowVisualToolbar:k&&_,rootClientId:p,showParentSelector:f&&"default"===s(h)&&(0,c.hasBlockSupport)(f,"__experimentalParentSelector",!0)&&1===u.length&&b,isUsingBindings:y}}),[]),v=(0,u.useRef)(null),k=(0,u.useRef)(),_=ES({ref:k}),y=!(0,p.useViewportMatch)("medium","<"),E=m&&(0,c.hasBlockSupport)(m,"__experimentalToolbar",!0),w=function(){let e=!1;for(const t in yl)LC(t)&&(e=!0);return e}();if(!E||!a&&!w)return null;const S=i.length>1,C=(0,c.isReusableBlock)(m)||(0,c.isTemplatePart)(m),B=ml()("block-editor-block-contextual-toolbar",{"has-parent":f}),I=ml()("block-editor-block-toolbar",{"is-synced":C});return(0,s.createElement)(NC,{focusEditorOnEscape:!0,className:B,"aria-label":(0,x.__)("Block tools"),variant:"toolbar"===r?void 0:r,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:o,key:l},(0,s.createElement)("div",{ref:v,className:I},!S&&y&&a&&(0,s.createElement)(wS,null),b&&eg(h)&&(0,s.createElement)(OC,null),(g||S)&&a&&(0,s.createElement)("div",{ref:k,..._},(0,s.createElement)(_l.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},(0,s.createElement)(qS,{clientIds:i}),!S&&(0,s.createElement)(EC,{clientId:l}),(0,s.createElement)(bS,{clientIds:i,hideDragHandle:e}))),g&&S&&(0,s.createElement)(BC,null),g&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bl.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),(0,s.createElement)(Bl.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),(0,s.createElement)(Bl.Slot,{className:"block-editor-block-toolbar__slot"}),(0,s.createElement)(Bl.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),(0,s.createElement)(Bl.Slot,{group:"other",className:"block-editor-block-toolbar__slot"}),(0,s.createElement)(TC.Provider,{value:m?.name},(0,s.createElement)(QS.Slot,null))),(0,s.createElement)(IC,{clientIds:i}),a&&(0,s.createElement)(yC,{clientIds:i})))}function zC({hideDragHandle:e,variant:t}){return(0,s.createElement)(DC,{hideDragHandle:e,variant:t,focusOnMount:void 0,__experimentalInitialIndex:void 0,__experimentalOnIndexChange:void 0})}function VC({clientId:e,isTyping:t,__unstableContentRef:n}){const{capturingClientId:o,isInsertionPointVisible:r,lastClientId:l}=lS(e),i=(0,u.useRef)();(0,u.useEffect)((()=>{i.current=void 0}),[e]);const{stopTyping:a}=(0,d.useDispatch)(Nr),c=(0,u.useRef)(!1);(0,A_.useShortcut)("core/block-editor/focus-toolbar",(()=>{c.current=!0,a(!0)})),(0,u.useEffect)((()=>{c.current=!1}));const p=rS({contentElement:n?.current,clientId:e});return!t&&(0,s.createElement)(fm,{clientId:o||e,bottomClientId:l,className:ml()("block-editor-block-list__block-popover",{"is-insertion-point-visible":r}),resize:!1,...p},(0,s.createElement)(DC,{focusOnMount:c.current,__experimentalInitialIndex:i.current,__experimentalOnIndexChange:e=>{i.current=e},variant:"toolbar"}))}const FC=function({clientId:e,rootClientId:t}){const n=(0,d.useSelect)((n=>{const{getBlock:o,getBlockIndex:r,hasBlockMovingClientId:l,getBlockListSettings:i,__unstableGetEditorMode:s}=n(Nr),{getActiveBlockVariation:a,getBlockType:u}=n(c.store),d=r(e),{name:p,attributes:m}=o(e),h=u(p),g=i(t)?.orientation,f=a(p,m);return{blockMovingMode:l(),editorMode:s(),icon:f?.icon||h.icon,label:(0,c.__experimentalGetAccessibleBlockLabel)(h,m,d+1,g)}}),[e,t]),{label:o,icon:r,blockMovingMode:l,editorMode:i}=n,{setNavigationMode:a,removeBlock:p}=(0,d.useDispatch)(Nr),m=(0,u.useRef)();(0,u.useEffect)((()=>{m.current.focus(),(0,vo.speak)(o)}),[o]);const h=bd(e),{hasBlockMovingClientId:g,getBlockIndex:f,getBlockRootClientId:b,getClientIdsOfDescendants:v,getSelectedBlockClientId:k,getMultiSelectedBlocksEndClientId:_,getPreviousBlockClientId:y,getNextBlockClientId:E}=(0,d.useSelect)(Nr),{selectBlock:w,clearSelectedBlock:S,setBlockMovingClientId:C,moveBlockToPosition:B}=(0,d.useDispatch)(Nr),I=ml()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!l}),T=(0,x.__)("Drag");return(0,s.createElement)("div",{className:I},(0,s.createElement)(_l.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},(0,s.createElement)(_l.FlexItem,null,(0,s.createElement)(qh,{icon:r,showColors:!0})),(0,s.createElement)(_l.FlexItem,null,"zoom-out"===i&&(0,s.createElement)(bS,{clientIds:[e],hideDragHandle:!0}),"navigation"===i&&(0,s.createElement)(sS,{clientIds:[e]},(e=>(0,s.createElement)(_l.Button,{icon:Ly,className:"block-selection-button_drag-handle","aria-hidden":"true",label:T,tabIndex:"-1",...e})))),(0,s.createElement)(_l.FlexItem,null,(0,s.createElement)(_l.Button,{ref:m,onClick:"navigation"===i?()=>a(!1):void 0,onKeyDown:function(t){const{keyCode:n}=t,o=n===zs.UP,r=n===zs.DOWN,l=n===zs.LEFT,s=n===zs.RIGHT,c=n===zs.TAB,u=n===zs.ESCAPE,d=n===zs.ENTER,m=n===zs.SPACE,x=t.shiftKey;if(u&&"navigation"===i)return a(!1),void t.preventDefault();if(n===zs.BACKSPACE||n===zs.DELETE)return p(e),void t.preventDefault();const I=k(),T=_(),M=y(T||I),P=E(T||I),R=c&&x||o,N=c&&!x||r,L=l,A=s;let O;if(R)O=M;else if(N)O=P;else if(L){var D;O=null!==(D=b(I))&&void 0!==D?D:I}else if(A){var z;O=null!==(z=v(I)[0])&&void 0!==z?z:I}const V=g();if(u&&V&&!t.defaultPrevented&&(C(null),t.preventDefault()),(d||m)&&V){const e=b(V),t=b(I),n=f(V);let o=f(I);n<o&&e===t&&(o-=1),B(V,e,t,o),w(V),C(null)}if((!V||I!==V||!A)&&(N||R||L||A))if(O)t.preventDefault(),w(O);else if(c&&I){let e;if(N){e=h;do{e=As.focus.tabbable.findNext(e)}while(e&&h.contains(e));e||(e=h.ownerDocument.defaultView.frameElement,e=As.focus.tabbable.findNext(e))}else e=As.focus.tabbable.findPrevious(h);e&&(t.preventDefault(),e.focus(),S())}},label:o,showTooltip:!1,className:"block-selection-button_select-button"},(0,s.createElement)(pf,{clientId:e,maximumLength:35})))))};function HC({clientId:e,__unstableContentRef:t}){const{capturingClientId:n,isInsertionPointVisible:o,lastClientId:r,rootClientId:l}=lS(e),i=rS({contentElement:t?.current,clientId:e});return(0,s.createElement)(fm,{clientId:n||e,bottomClientId:r,className:ml()("block-editor-block-list__block-popover",{"is-insertion-point-visible":o}),resize:!1,...i},(0,s.createElement)(FC,{clientId:e,rootClientId:l}))}const GC=function({__unstableContentRef:e}){const[t,n]=(0,u.useState)(!1),o=(0,d.useSelect)((e=>e(Nr).getBlockOrder()),[]);return(0,u.useEffect)((()=>{const e=setTimeout((()=>{n(!0)}),500);return()=>{clearTimeout(e)}}),[]),t?o.map(((t,n)=>n===o.length-1?null:(0,s.createElement)(hw,{key:t,previousClientId:t,nextClientId:o[n+1],__unstableContentRef:e},(0,s.createElement)("div",{className:"block-editor-block-list__insertion-point-inserter is-with-inserter"},(0,s.createElement)(lw,{position:"bottom center",clientId:o[n+1],__experimentalIsQuick:!0}))))):null};function UC(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlock:o,getSettings:r,hasMultiSelection:l,__unstableGetEditorMode:i,isTyping:s}=e(Nr),a=t()||n(),{name:u="",attributes:d={}}=o(a)||{},p=i(),m=a&&u,h=(0,c.isUnmodifiedDefaultBlock)({name:u,attributes:d}),g=a&&!s()&&"edit"===p&&(0,c.isUnmodifiedDefaultBlock)({name:u,attributes:d}),f=m&&!l()&&("navigation"===p||"zoom-out"===p);return{clientId:a,hasFixedToolbar:r().hasFixedToolbar,isTyping:s(),isZoomOutMode:"zoom-out"===p,showEmptyBlockSideInserter:g,showBreadcrumb:!g&&f,showBlockToolbar:!r().hasFixedToolbar&&!g&&m&&!h&&!f}}function $C({children:e,__unstableContentRef:t,...n}){const{clientId:o,hasFixedToolbar:r,isTyping:l,isZoomOutMode:i,showEmptyBlockSideInserter:a,showBreadcrumb:c,showBlockToolbar:p}=(0,d.useSelect)(UC,[]),m=(0,A_.__unstableUseShortcutEventMatch)(),{getSelectedBlockClientIds:h,getBlockRootClientId:g}=(0,d.useSelect)(Nr),{duplicateBlocks:f,removeBlocks:b,insertAfterBlock:v,insertBeforeBlock:k,selectBlock:_,moveBlocksUp:y,moveBlocksDown:E}=(0,d.useDispatch)(Nr);const w=hm(t),S=hm(t);return(0,s.createElement)("div",{...n,onKeyDown:function(e){if(!e.defaultPrevented)if(m("core/block-editor/move-up",e)){const t=h();if(t.length){e.preventDefault();const n=g(t[0]);y(t,n)}}else if(m("core/block-editor/move-down",e)){const t=h();if(t.length){e.preventDefault();const n=g(t[0]);E(t,n)}}else if(m("core/block-editor/duplicate",e)){const t=h();t.length&&(e.preventDefault(),f(t))}else if(m("core/block-editor/remove",e)){const t=h();t.length&&(e.preventDefault(),b(t))}else if(m("core/block-editor/insert-after",e)){const t=h();t.length&&(e.preventDefault(),v(t[t.length-1]))}else if(m("core/block-editor/insert-before",e)){const t=h();t.length&&(e.preventDefault(),k(t[0]))}else if(m("core/block-editor/unselect",e)){if(e.target.closest("[role=toolbar]"))return;const t=h();t.length>1&&(e.preventDefault(),_(t[0]))}}},(0,s.createElement)(bw.Provider,{value:(0,u.useRef)(!1)},!l&&(0,s.createElement)(kw,{__unstableContentRef:t}),a&&(0,s.createElement)(iS,{__unstableContentRef:t,clientId:o}),p&&(0,s.createElement)(VC,{__unstableContentRef:t,clientId:o,isTyping:l}),c&&(0,s.createElement)(HC,{__unstableContentRef:t,clientId:o}),!i&&!r&&(0,s.createElement)(_l.Popover.Slot,{name:"block-toolbar",ref:w}),e,(0,s.createElement)(_l.Popover.Slot,{name:"__unstable-block-tools-after",ref:S}),i&&(0,s.createElement)(GC,{__unstableContentRef:t})))}function jC({shouldIframe:e=!0,height:t="300px",children:n=(0,s.createElement)(Xw,null),styles:o,contentRef:r,iframeProps:l}){const i=$w(),a=F_(),c=(0,u.useRef)(),d=(0,p.useMergeRefs)([r,a,c]);return e?(0,s.createElement)($C,{__unstableContentRef:c,style:{height:t,display:"flex"}},(0,s.createElement)(py,{...l,ref:i,contentRef:d,style:{...l?.style},name:"editor-canvas"},(0,s.createElement)(wy,{styles:o}),n)):(0,s.createElement)($C,{__unstableContentRef:c,style:{height:t,display:"flex"}},(0,s.createElement)(wy,{styles:o,scope:".editor-styles-wrapper"}),(0,s.createElement)(sy,{ref:d,className:"editor-styles-wrapper",tabIndex:-1,style:{height:"100%",width:"100%"}},n))}const WC=function({children:e,height:t,styles:n}){return(0,s.createElement)(jC,{height:t,styles:n},e)},KC=()=>(0,s.createElement)(_l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,s.createElement)(_l.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"})),ZC=({style:e,className:t})=>(0,s.createElement)("div",{className:"block-library-colors-selector__icon-container"},(0,s.createElement)("div",{className:`${t} block-library-colors-selector__state-selection`,style:e},(0,s.createElement)(KC,null))),qC=({TextColor:e,BackgroundColor:t})=>({onToggle:n,isOpen:o})=>(0,s.createElement)(_l.ToolbarGroup,null,(0,s.createElement)(_l.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:(0,x.__)("Open Colors Selector"),onClick:n,onKeyDown:e=>{o||e.keyCode!==zs.DOWN||(e.preventDefault(),n())},icon:(0,s.createElement)(t,null,(0,s.createElement)(e,null,(0,s.createElement)(ZC,null)))})),YC=({children:e,...t})=>(w()("wp.blockEditor.BlockColorsStyleSelector",{alternative:"block supports API",since:"6.1",version:"6.3"}),(0,s.createElement)(_l.Dropdown,{popoverProps:{placement:"bottom-start"},className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:qC(t),renderContent:()=>e})),XC=(0,s.createElement)(Z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(Z.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})),QC=(0,u.createContext)({}),JC=()=>(0,u.useContext)(QC);function ex({children:e,...t}){const n=(0,u.useRef)();return(0,u.useEffect)((()=>{n.current&&(n.current.textContent=n.current.textContent)}),[e]),(0,s.createElement)("div",{hidden:!0,...t,ref:n},e)}const tx=(0,u.forwardRef)((({nestingLevel:e,blockCount:t,clientId:n,...o},r)=>{const{insertedBlock:l,setInsertedBlock:i}=JC(),a=(0,p.useInstanceId)(tx),c=(0,d.useSelect)((e=>{const{getTemplateLock:t,__unstableGetEditorMode:o}=e(Nr);return!!t(n)||"zoom-out"===o()}),[n]),m=df({clientId:n,context:"list-view"}),h=df({clientId:l?.clientId,context:"list-view"});if((0,u.useEffect)((()=>{h?.length&&(0,vo.speak)((0,x.sprintf)((0,x.__)("%s block inserted"),h),"assertive")}),[h]),c)return null;const g=`list-view-appender__${a}`,f=(0,x.sprintf)((0,x.__)("Append to %1$s block at position %2$d, Level %3$d"),m,t+1,e);return(0,s.createElement)("div",{className:"list-view-appender"},(0,s.createElement)(lw,{ref:r,rootClientId:n,position:"bottom right",isAppender:!0,selectBlockOnInsert:!1,shouldDirectInsert:!1,__experimentalIsQuick:!0,...o,toggleProps:{"aria-describedby":g},onSelectOrClose:e=>{e?.clientId&&i(e)}}),(0,s.createElement)(ex,{id:g},f))})),nx=o_(_l.__experimentalTreeGridRow),ox=(0,u.forwardRef)((({isDragged:e,isSelected:t,position:n,level:o,rowCount:r,children:l,className:i,path:a,...c},u)=>{const d=l_({clientId:c["data-block"],enableAnimation:!0,triggerAnimationOnChange:a}),m=(0,p.useMergeRefs)([u,d]);return(0,s.createElement)(nx,{ref:m,className:ml()("block-editor-list-view-leaf",i),level:o,positionInSet:n,setSize:r,isExpanded:void 0,...c},l)})),rx=ox;const lx=(0,s.createElement)(Z.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(Z.Path,{d:"M10.97 10.159a3.382 3.382 0 0 0-2.857.955l1.724 1.723-2.836 2.913L7 17h1.25l2.913-2.837 1.723 1.723a3.38 3.38 0 0 0 .606-.825c.33-.63.446-1.343.35-2.032L17 10.695 13.305 7l-2.334 3.159Z"})),ix=(0,s.createElement)(Z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(Z.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"}));function sx({onClick:e}){return(0,s.createElement)("span",{className:"block-editor-list-view__expander",onClick:t=>e(t,{forceToggle:!0}),"aria-hidden":"true","data-testid":"list-view-expander"},(0,s.createElement)(Ti,{icon:(0,x.isRTL)()?Zs:qs}))}const ax=3;function cx(e){if("core/image"===e.name)return e.attributes?.url?{url:e.attributes.url,alt:e.attributes.alt,clientId:e.clientId}:void 0}function ux(e,t){const n=cx(e);return n?[n]:t?[]:function(e){if("core/gallery"!==e.name||!e.innerBlocks)return[];const t=[];for(const n of e.innerBlocks){const e=cx(n);if(e&&t.push(e),t.length>=ax)return t}return t}(e)}const dx=(0,u.forwardRef)((function({className:e,block:{clientId:t,name:n},onClick:o,onContextMenu:r,onMouseDown:l,onToggleExpanded:i,tabIndex:a,onFocus:p,onDragStart:m,onDragEnd:h,draggable:g,isExpanded:f,ariaLabel:b,ariaDescribedBy:v,updateFocusAndSelection:k},_){const y=ih(t),E=df({clientId:t,context:"list-view"}),{isLocked:w}=Th(t),{canInsertBlockType:S,getSelectedBlockClientIds:C,getPreviousBlockClientId:B,getBlockRootClientId:I,getBlockOrder:T,getBlocksByClientId:M,getBlockAttributes:P,canRemoveBlocks:R}=(0,d.useSelect)(Nr),{duplicateBlocks:N,multiSelect:L,removeBlocks:A}=(0,d.useDispatch)(Nr),O=(0,A_.__unstableUseShortcutEventMatch)(),D="sticky"===y?.positionType,z=function({clientId:e,isExpanded:t}){const{block:n}=(0,d.useSelect)((t=>({block:t(Nr).getBlock(e)})),[e]);return(0,u.useMemo)((()=>ux(n,t)),[n,t])}({clientId:t,isExpanded:f}),{rootClientId:V}=JC(),F=P(t)?.metadata?.bindings,H=y?.positionLabel?(0,x.sprintf)((0,x.__)("Position: %1$s"),y.positionLabel):"";function G(){const e=C(),n=e.includes(t),o=n?e[0]:t,r=I(o);return{blocksToUpdate:n?e:[t],firstBlockClientId:o,firstBlockRootClientId:r,selectedBlockClientIds:e}}return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.Button,{className:ml()("block-editor-list-view-block-select-button",e),onClick:o,onContextMenu:r,onKeyDown:async function(e){if(e.keyCode===zs.ENTER||e.keyCode===zs.SPACE)o(e);else if(e.keyCode===zs.BACKSPACE||e.keyCode===zs.DELETE||O("core/block-editor/remove",e)){var t;const{blocksToUpdate:e,firstBlockClientId:n,firstBlockRootClientId:o,selectedBlockClientIds:r}=G();if(!R(e,o))return;let l=null!==(t=B(n))&&void 0!==t?t:o;A(e,!1);const i=r.length>0&&0===C().length;l||(l=T()[0]),k(l,i)}else if(O("core/block-editor/duplicate",e)){if(e.defaultPrevented)return;e.preventDefault();const{blocksToUpdate:t,firstBlockRootClientId:n}=G(),o=M(t).every((e=>!!e&&(0,c.hasBlockSupport)(e.name,"multiple",!0)&&S(e.name,n)));if(o){const e=await N(t,!1);e?.length&&k(e[0],!1)}}else if(O("core/block-editor/select-all",e)){if(e.defaultPrevented)return;e.preventDefault();const{firstBlockRootClientId:t,selectedBlockClientIds:n}=G(),o=T(t);if(!o.length)return;if(js()(n,o)&&t&&t!==V)return void k(t,!0);L(o[0],o[o.length-1],null)}},onMouseDown:l,ref:_,tabIndex:a,onFocus:p,onDragStart:e=>{e.dataTransfer.clearData(),m?.(e)},onDragEnd:h,draggable:g,href:`#block-${t}`,"aria-label":b,"aria-describedby":v,"aria-expanded":f},(0,s.createElement)(sx,{onClick:i}),(0,s.createElement)(qh,{icon:y?.icon,showColors:!0,context:"list-view"}),(0,s.createElement)(_l.__experimentalHStack,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1},(0,s.createElement)("span",{className:"block-editor-list-view-block-select-button__title"},(0,s.createElement)(_l.__experimentalTruncate,{ellipsizeMode:"auto"},E)),y?.anchor&&(0,s.createElement)("span",{className:"block-editor-list-view-block-select-button__anchor-wrapper"},(0,s.createElement)(_l.__experimentalTruncate,{className:"block-editor-list-view-block-select-button__anchor",ellipsizeMode:"auto"},y.anchor)),F&&eg(n)&&(0,s.createElement)("span",{className:"block-editor-list-view-block-select-button__bindings"},(0,s.createElement)(Ti,{icon:AC})),H&&D&&(0,s.createElement)(_l.Tooltip,{text:H},(0,s.createElement)(Ti,{icon:lx})),z.length?(0,s.createElement)("span",{className:"block-editor-list-view-block-select-button__images","aria-hidden":!0},z.map(((e,t)=>(0,s.createElement)("span",{className:"block-editor-list-view-block-select-button__image",key:e.clientId,style:{backgroundImage:`url(${e.url})`,zIndex:z.length-t}})))):null,w&&(0,s.createElement)("span",{className:"block-editor-list-view-block-select-button__lock"},(0,s.createElement)(Ti,{icon:ix})))))})),px=(0,u.forwardRef)((({onClick:e,onToggleExpanded:t,block:n,isSelected:o,position:r,siblingBlockCount:l,level:i,isExpanded:a,selectedClientIds:c,...u},p)=>{const{clientId:m}=n,{blockMovingClientId:h,selectedBlockInBlockEditor:g}=(0,d.useSelect)((e=>{const{hasBlockMovingClientId:t,getSelectedBlockClientId:n}=e(Nr);return{blockMovingClientId:t(),selectedBlockInBlockEditor:n()}}),[]),{AdditionalBlockContent:f,insertedBlock:b,setInsertedBlock:v}=JC(),k=h&&g===m,_=ml()("block-editor-list-view-block-contents",{"is-dropping-before":k}),y=c.includes(m)?c:[m];return(0,s.createElement)(s.Fragment,null,f&&(0,s.createElement)(f,{block:n,insertedBlock:b,setInsertedBlock:v}),(0,s.createElement)(sS,{appendToOwnerDocument:!0,clientIds:y,cloneClassname:"block-editor-list-view-draggable-chip"},(({draggable:c,onDragStart:d,onDragEnd:m})=>(0,s.createElement)(dx,{ref:p,className:_,block:n,onClick:e,onToggleExpanded:t,isSelected:o,position:r,siblingBlockCount:l,level:i,draggable:c,onDragStart:d,onDragEnd:m,isExpanded:a,...u}))))})),mx=px;function hx(e,t){const n=()=>{const n=t?.querySelector(`[role=row][data-block="${e}"]`);return n?As.focus.focusable.find(n)[0]:null};let o=n();o?o.focus():window.requestAnimationFrame((()=>{o=n(),o&&o.focus()}))}const gx=(0,u.memo)((function e({block:{clientId:t},displacement:n,isAfterDraggedBlocks:o,isDragged:r,isNesting:l,isSelected:i,isBranchSelected:a,selectBlock:m,position:h,level:g,rowCount:f,siblingBlockCount:b,showBlockMovers:v,path:k,isExpanded:_,selectedClientIds:y,isSyncedBranch:E}){const w=(0,u.useRef)(null),S=(0,u.useRef)(null),C=(0,u.useRef)(null),[B,I]=(0,u.useState)(!1),[T,M]=(0,u.useState)(),{isLocked:P,canEdit:R,canMove:N}=Th(t),L=i&&y[0]===t,A=i&&y[y.length-1]===t,{toggleBlockHighlight:O}=(0,d.useDispatch)(Nr),D=ih(t),z=D?.name||D?.title||(0,x.__)("Untitled"),{block:V,blockName:F,blockEditingMode:H}=(0,d.useSelect)((e=>{const{getBlock:n,getBlockName:o,getBlockEditingMode:r}=e(Nr);return{block:n(t),blockName:o(t),blockEditingMode:r(t)}}),[t]),G=(0,d.useSelect)((e=>e(Nr).getSettings().allowRightClickOverrides),[]),U=(0,c.hasBlockSupport)(F,"__experimentalToolbar",!0)&&"default"===H,$=`list-view-block-select-button__${(0,p.useInstanceId)(e)}`,{expand:j,collapse:W,BlockSettingsMenu:K,listViewInstanceId:Z,expandedState:q,setInsertedBlock:Y,treeGridElementRef:X}=JC(),Q=(0,u.useCallback)((()=>{I(!0),O(t,!0)}),[t,I,O]),J=(0,u.useCallback)((()=>{I(!1),O(t,!1)}),[t,I,O]),ee=(0,u.useCallback)((e=>{m(e,t),e.preventDefault()}),[t,m]),te=(0,u.useCallback)(((e,t)=>{t&&m(void 0,e,null,null),hx(e,X?.current)}),[m,X]),ne=(0,u.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),!0===_?W(t):!1===_&&j(t)}),[t,j,W,_]),oe=(0,u.useCallback)((e=>{U&&G&&(C.current?.click(),M(new window.DOMRect(e.clientX,e.clientY,0,0)),e.preventDefault())}),[G,C,U]),re=(0,u.useCallback)((e=>{G&&2===e.button&&e.preventDefault()}),[G]),le=(0,u.useMemo)((()=>{const{ownerDocument:e}=S?.current||{};if(T&&e)return{ownerDocument:e,getBoundingClientRect:()=>T}}),[T]),ie=(0,u.useCallback)((()=>{M(void 0)}),[M]);if(function({isSelected:e,selectedClientIds:t,rowItemRef:n}){const o=1===t.length;(0,u.useLayoutEffect)((()=>{if(!e||!o||!n.current)return;const t=(0,As.getScrollContainer)(n.current),{ownerDocument:r}=n.current;if(t===r.body||t===r.documentElement||!t)return;const l=n.current.getBoundingClientRect(),i=t.getBoundingClientRect();(l.top<i.top||l.bottom>i.bottom)&&n.current.scrollIntoView()}),[e,o,n])}({isSelected:i,rowItemRef:S,selectedClientIds:y}),!V)return null;const se=((e,t,n)=>(0,x.sprintf)((0,x.__)("Block %1$d of %2$d, Level %3$d"),e,t,n))(h,b,g),ae=P?(0,x.sprintf)((0,x.__)("%s (locked)"),z):z,ce=(0,x.sprintf)((0,x.__)("Options for %s"),z),ue=v&&b>0,de=ml()("block-editor-list-view-block__mover-cell",{"is-visible":B||i}),pe=ml()("block-editor-list-view-block__menu-cell",{"is-visible":B||L});let me;ue?me=2:U||(me=3);const he=ml()({"is-selected":i,"is-first-selected":L,"is-last-selected":A,"is-branch-selected":a,"is-synced-branch":E,"is-dragging":r,"has-single-cell":!U,"is-synced":D?.isSynced,"is-draggable":N,"is-displacement-normal":"normal"===n,"is-displacement-up":"up"===n,"is-displacement-down":"down"===n,"is-after-dragged-blocks":o,"is-nesting":l}),ge=y.includes(t)?y:[t],fe=i&&1===y.length;return(0,s.createElement)(rx,{className:he,isDragged:r,onKeyDown:e=>{e.keyCode===zs.ESCAPE&&!e.defaultPrevented&&y.length>0&&(e.stopPropagation(),e.preventDefault(),m(e,void 0))},onMouseEnter:Q,onMouseLeave:J,onFocus:Q,onBlur:J,level:g,position:h,rowCount:f,path:k,id:`list-view-${Z}-block-${t}`,"data-block":t,"data-expanded":R?_:void 0,ref:S},(0,s.createElement)(_l.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:me,ref:w,"aria-selected":!!i},(({ref:e,tabIndex:t,onFocus:n})=>(0,s.createElement)("div",{className:"block-editor-list-view-block__contents-container"},(0,s.createElement)(mx,{block:V,onClick:ee,onContextMenu:oe,onMouseDown:re,onToggleExpanded:ne,isSelected:i,position:h,siblingBlockCount:b,level:g,ref:e,tabIndex:fe?0:t,onFocus:n,isExpanded:R?_:void 0,selectedClientIds:y,ariaLabel:ae,ariaDescribedBy:$,updateFocusAndSelection:te}),(0,s.createElement)(ex,{id:$},se)))),ue&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.__experimentalTreeGridCell,{className:de,withoutGridItem:!0},(0,s.createElement)(_l.__experimentalTreeGridItem,null,(({ref:e,tabIndex:n,onFocus:o})=>(0,s.createElement)(gS,{orientation:"vertical",clientIds:[t],ref:e,tabIndex:n,onFocus:o}))),(0,s.createElement)(_l.__experimentalTreeGridItem,null,(({ref:e,tabIndex:n,onFocus:o})=>(0,s.createElement)(fS,{orientation:"vertical",clientIds:[t],ref:e,tabIndex:n,onFocus:o}))))),U&&K&&(0,s.createElement)(_l.__experimentalTreeGridCell,{className:pe,"aria-selected":!!i,ref:C},(({ref:e,tabIndex:t,onFocus:n})=>(0,s.createElement)(K,{clientIds:ge,block:V,icon:Ef,label:ce,popoverProps:{anchor:le},toggleProps:{ref:e,className:"block-editor-list-view-block__menu",tabIndex:t,onClick:ie,onFocus:n},disableOpenOnArrowDown:!0,expand:j,expandedState:q,setInsertedBlock:Y,__experimentalSelectBlock:te}))))}));function fx(e,t,n,o){var r;const l=n?.includes(e.clientId);if(l)return 0;return(null!==(r=t[e.clientId])&&void 0!==r?r:o)?1+e.innerBlocks.reduce(bx(t,n,o),0):1}const bx=(e,t,n)=>(o,r)=>{var l;const i=t?.includes(r.clientId);if(i)return o;return(null!==(l=e[r.clientId])&&void 0!==l?l:n)&&r.innerBlocks.length>0?o+fx(r,e,t,n):o+1},vx=()=>{};const kx=(0,u.memo)((function e(t){const{blocks:n,selectBlock:o=vx,showBlockMovers:r,selectedClientIds:l,level:i=1,path:a="",isBranchSelected:c=!1,listPosition:u=0,fixedListWindow:p,isExpanded:m,parentId:h,shouldShowInnerBlocks:g=!0,isSyncedBranch:f=!1,showAppender:b=!0}=t,v=ih(h),k=f||!!v?.isSynced,_=(0,d.useSelect)((e=>!h||e(Nr).canEditBlock(h)),[h]),{blockDropPosition:y,blockDropTargetIndex:E,firstDraggedBlockIndex:w,blockIndexes:S,expandedState:C,draggedClientIds:x}=JC();if(!_)return null;const B=b&&1===i,I=n.filter(Boolean),T=I.length,M=B?T+1:T;let P=u;return(0,s.createElement)(s.Fragment,null,I.map(((t,n)=>{var u;const{clientId:h,innerBlocks:f}=t;n>0&&(P+=fx(I[n-1],C,x,m));const b=!!x?.includes(h),{displacement:v,isAfterDraggedBlocks:_,isNesting:B}=function({blockIndexes:e,blockDropTargetIndex:t,blockDropPosition:n,clientId:o,firstDraggedBlockIndex:r,isDragged:l}){let i,s,a;if(!l){s=!1;const l=e[o];a=l>r,null!=t&&void 0!==r?void 0!==l&&(i=l>=r&&l<t?"up":l<r&&l>=t?"down":"normal",s="number"==typeof t&&t-1===l&&"inside"===n):null===t&&void 0!==r?i=void 0!==l&&l>=r?"up":"normal":null!=t&&void 0===r?void 0!==l&&(i=l<t?"normal":"down"):null===t&&(i="normal")}return{displacement:i,isNesting:s,isAfterDraggedBlocks:a}}({blockIndexes:S,blockDropTargetIndex:E,blockDropPosition:y,clientId:h,firstDraggedBlockIndex:w,isDragged:b}),{itemInView:R}=p,N=R(P),L=n+1,A=a.length>0?`${a}_${L}`:`${L}`,O=!!f?.length,D=O&&g?null!==(u=C[h])&&void 0!==u?u:m:void 0,z=((e,t)=>Array.isArray(t)&&t.length?-1!==t.indexOf(e):t===e)(h,l),V=c||z&&O,F=b||N||z&&h===l[0];return(0,s.createElement)(d.AsyncModeProvider,{key:h,value:!z},F&&(0,s.createElement)(gx,{block:t,selectBlock:o,isSelected:z,isBranchSelected:V,isDragged:b,level:i,position:L,rowCount:M,siblingBlockCount:T,showBlockMovers:r,path:A,isExpanded:!b&&D,listPosition:P,selectedClientIds:l,isSyncedBranch:k,displacement:v,isAfterDraggedBlocks:_,isNesting:B}),!F&&(0,s.createElement)("tr",null,(0,s.createElement)("td",{className:"block-editor-list-view-placeholder"})),O&&D&&!b&&(0,s.createElement)(e,{parentId:h,blocks:f,selectBlock:o,showBlockMovers:r,level:i+1,path:A,listPosition:P+1,fixedListWindow:p,isBranchSelected:V,selectedClientIds:l,isExpanded:m,isSyncedBranch:k}))})),B&&(0,s.createElement)(_l.__experimentalTreeGridRow,{level:i,setSize:M,positionInSet:M,isExpanded:!0},(0,s.createElement)(_l.__experimentalTreeGridCell,null,(e=>(0,s.createElement)(tx,{clientId:h,nestingLevel:i,blockCount:T,...e})))))}));function _x({draggedBlockClientId:e,listViewRef:t,blockDropTarget:n}){const o=ih(e),r=df({clientId:e,context:"list-view"}),{rootClientId:l,clientId:i,dropPosition:a}=n||{},[c,d]=(0,u.useMemo)((()=>{if(!t.current)return[];return[l?t.current.querySelector(`[data-block="${l}"]`):void 0,i?t.current.querySelector(`[data-block="${i}"]`):void 0]}),[t,l,i]),p=d||c,m=(0,x.isRTL)(),h=(0,u.useCallback)(((e,t)=>{if(!p)return 0;let n=p.offsetWidth;const o=(0,As.getScrollContainer)(p,"horizontal"),r=p.ownerDocument,l=o===r.body||o===r.documentElement;if(o&&!l){const r=o.getBoundingClientRect(),l=(0,x.isRTL)()?r.right-e.right:e.left-r.left,i=o.clientWidth;if(i<n+l&&(n=i-l),!m&&e.left+t<r.left)return n-=r.left-e.left,n;if(m&&e.right-t>r.right)return n-=e.right-r.right,n}return n-t}),[m,p]),g=(0,u.useMemo)((()=>{if(!p)return{};const e=p.getBoundingClientRect();return{width:h(e,0)}}),[h,p]),f=(0,u.useMemo)((()=>{if(!p)return{};const e=(0,As.getScrollContainer)(p),t=p.ownerDocument,n=e===t.body||e===t.documentElement;if(e&&!n){const t=e.getBoundingClientRect(),n=p.getBoundingClientRect(),o=m?t.right-n.right:n.left-t.left;if(!m&&t.left>n.left)return{transform:`translateX( ${o}px )`};if(m&&t.right<n.right)return{transform:`translateX( ${-1*o}px )`}}return{}}),[m,p]),b=(0,u.useMemo)((()=>{if(!c)return 1;const e=parseInt(c.getAttribute("aria-level"),10);return e?e+1:1}),[c]),v=(0,u.useMemo)((()=>!!p&&p.classList.contains("is-branch-selected")),[p]),k=(0,u.useMemo)((()=>{if(p&&("top"===a||"bottom"===a||"inside"===a))return{contextElement:p,getBoundingClientRect(){const e=p.getBoundingClientRect();let t=e.left,n=0;const o=(0,As.getScrollContainer)(p,"horizontal"),r=p.ownerDocument,l=o===r.body||o===r.documentElement;if(o&&!l){const e=o.getBoundingClientRect(),n=m?o.offsetWidth-o.clientWidth:0;t<e.left+n&&(t=e.left+n)}n="top"===a?e.top-2*e.height:e.top;const i=h(e,0),s=e.height;return new window.DOMRect(t,n,i,s)}}}),[p,a,h,m]);return p?(0,s.createElement)(_l.Popover,{animate:!1,anchor:k,focusOnMount:!1,className:"block-editor-list-view-drop-indicator--preview",variant:"unstyled",flip:!1,resize:!0},(0,s.createElement)("div",{style:g,className:ml()("block-editor-list-view-drop-indicator__line",{"block-editor-list-view-drop-indicator__line--darker":v})},(0,s.createElement)("div",{className:"block-editor-list-view-leaf","aria-level":b},(0,s.createElement)("div",{className:ml()("block-editor-list-view-block-select-button","block-editor-list-view-block-contents"),style:f},(0,s.createElement)(sx,{onClick:()=>{}}),(0,s.createElement)(qh,{icon:o?.icon,showColors:!0,context:"list-view"}),(0,s.createElement)(_l.__experimentalHStack,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1},(0,s.createElement)("span",{className:"block-editor-list-view-block-select-button__title"},(0,s.createElement)(_l.__experimentalTruncate,{ellipsizeMode:"auto"},r)))),(0,s.createElement)("div",{className:"block-editor-list-view-block__menu-cell"})))):null}function yx(){const{clearSelectedBlock:e,multiSelect:t,selectBlock:n}=(0,d.useDispatch)(Nr),{getBlockName:o,getBlockParents:r,getBlockSelectionStart:l,getSelectedBlockClientIds:i,hasMultiSelection:s,hasSelectedBlock:a}=(0,d.useSelect)(Nr),{getBlockType:p}=(0,d.useSelect)(c.store);return{updateBlockSelection:(0,u.useCallback)((async(c,u,d,m)=>{if(!c?.shiftKey&&c?.keyCode!==zs.ESCAPE)return void n(u,m);c.preventDefault();const h="keydown"===c.type&&c.keyCode===zs.ESCAPE,g="keydown"===c.type&&(c.keyCode===zs.UP||c.keyCode===zs.DOWN||c.keyCode===zs.HOME||c.keyCode===zs.END);if(!g&&!a()&&!s())return void n(u,null);const f=i(),b=[...r(u),u];if((h||g&&!f.some((e=>b.includes(e))))&&await e(),!h){let e=l(),n=u;g&&(a()||s()||(e=u),d&&(n=d));const o=r(e),i=r(n),{start:c,end:p}=function(e,t,n,o){const r=[...n,e],l=[...o,t],i=Math.min(r.length,l.length)-1;return{start:r[i],end:l[i]}}(e,n,o,i);await t(c,p,null)}const v=i();if((c.keyCode===zs.HOME||c.keyCode===zs.END)&&v.length>1)return;const k=f.filter((e=>!v.includes(e)));let _;if(1===k.length){const e=p(o(k[0]))?.title;e&&(_=(0,x.sprintf)((0,x.__)("%s deselected."),e))}else k.length>1&&(_=(0,x.sprintf)((0,x.__)("%s blocks deselected."),k.length));_&&(0,vo.speak)(_,"assertive")}),[e,o,p,r,l,i,s,a,t,n])}}const Ex=28;function wx(e,t){const n=e[t+1];return n&&n.isDraggedBlock?wx(e,t+1):n}const Sx=["top","bottom"];function Cx(e,t,n=!1){let o,r,l,i,s;for(let n=0;n<e.length;n++){const a=e[n];if(a.isDraggedBlock)continue;const c=a.element.getBoundingClientRect(),[u,d]=Iw(t,c,Sx),p=Tw(t,c);if(void 0===l||u<l||p){l=u;const t=e.indexOf(a),n=e[t-1];if("top"===d&&n&&n.rootClientId===a.rootClientId&&!n.isDraggedBlock?(r=n,o="bottom",i=n.element.getBoundingClientRect(),s=t-1):(r=a,o=d,i=c,s=t),p)break}}if(!r)return;const a=function(e,t){const n=[];let o=e;for(;o;)n.push({...o}),o=t.find((e=>e.clientId===o.rootClientId));return n}(r,e),c="bottom"===o;if(c&&r.canInsertDraggedBlocksAsChild&&(r.innerBlockCount>0&&r.isExpanded||function(e,t,n=1,o=!1){const r=o?t.right-n*Ex:t.left+n*Ex;return(o?e.x<r-Ex:e.x>r+Ex)&&e.y<t.bottom}(t,i,a.length,n))){const e=r.isExpanded?0:r.innerBlockCount||0;return{rootClientId:r.clientId,clientId:r.clientId,blockIndex:e,dropPosition:"inside"}}if(c&&r.rootClientId&&function(e,t,n=1,o=!1){const r=o?t.right-n*Ex:t.left+n*Ex;return o?e.x>r:e.x<r}(t,i,a.length,n)){const l=wx(e,s),c=r.nestingLevel,u=l?l.nestingLevel:1;if(c&&u){const d=function(e,t,n=1,o=!1){const r=o?t.right-n*Ex:t.left+n*Ex,l=o?r-e.x:e.x-r,i=Math.round(l/Ex);return Math.abs(i)}(t,i,a.length,n),p=Math.max(Math.min(d,c-u),0);if(a[p]){let t=r.blockIndex;if(a[p].nestingLevel===l?.nestingLevel)t=l?.blockIndex;else for(let n=s;n>=0;n--){const o=e[n];if(o.rootClientId===a[p].rootClientId){t=o.blockIndex+1;break}}return{rootClientId:a[p].rootClientId,clientId:r.clientId,blockIndex:t,dropPosition:o}}}}if(!r.canInsertDraggedBlocksAsSibling)return;const u=c?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+u,dropPosition:o}}const xx={leading:!1,trailing:!0};function Bx({selectBlock:e}){const t=(0,d.useRegistry)(),{getBlockOrder:n,getBlockRootClientId:o,getBlocksByClientId:r,getPreviousBlockClientId:l,getSelectedBlockClientIds:i,getSettings:s,canInsertBlockType:a,canRemoveBlocks:c}=(0,d.useSelect)(Nr),{flashBlock:u,removeBlocks:m,replaceBlocks:h,insertBlocks:g}=(0,d.useDispatch)(Nr),f=ey();return(0,p.useRefEffect)((d=>{function p(t,n){n&&e(void 0,t,null,null),hx(t,d)}function b(e){if(e.defaultPrevented)return;if(!d.contains(e.target.ownerDocument.activeElement))return;const b=e.target.ownerDocument.activeElement?.closest("[role=row]"),v=b?.dataset?.block;if(!v)return;const{blocksToUpdate:k,firstBlockClientId:_,firstBlockRootClientId:y,originallySelectedBlockClientIds:E}=function(e){const t=i(),n=t.includes(e),r=n?t[0]:e;return{blocksToUpdate:n?t:[e],firstBlockClientId:r,firstBlockRootClientId:o(r),originallySelectedBlockClientIds:t}}(v);if(0!==k.length){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){1===k.length&&u(k[0]),f(e.type,k);oy(e,r(k),t)}if("cut"===e.type){var w;if(!c(k,y))return;let e=null!==(w=l(_))&&void 0!==w?w:y;m(k,!1);const t=E.length>0&&0===i().length;e||(e=n()[0]),p(e,t)}else if("paste"===e.type){const{__experimentalCanUserUseUnfilteredHTML:t}=s(),n=ry(e,t);if(1===k.length){const[e]=k;if(n.every((t=>a(t.name,e))))return g(n,void 0,e),void p(n[0]?.clientId,!1)}h(k,n,n.length-1,-1),p(n[0]?.clientId,!1)}}}return d.ownerDocument.addEventListener("copy",b),d.ownerDocument.addEventListener("cut",b),d.ownerDocument.addEventListener("paste",b),()=>{d.ownerDocument.removeEventListener("copy",b),d.ownerDocument.removeEventListener("cut",b),d.ownerDocument.removeEventListener("paste",b)}}),[])}const Ix=(e,t)=>Array.isArray(t.clientIds)?{...e,...t.clientIds.reduce(((e,n)=>({...e,[n]:"expand"===t.type})),{})}:e;const Tx=(0,u.forwardRef)((function e({id:t,blocks:n,dropZoneElement:o,showBlockMovers:r=!1,isExpanded:l=!1,showAppender:i=!1,blockSettingsMenu:a=kC,rootClientId:c,description:m,onSelect:h,additionalBlockContent:g},f){n&&w()("`blocks` property in `wp.blockEditor.__experimentalListView`",{since:"6.3",alternative:"`rootClientId` property"});const b=(0,p.useInstanceId)(e),{clientIdsTree:v,draggedClientIds:k,selectedClientIds:_}=function({blocks:e,rootClientId:t}){return(0,d.useSelect)((n=>{const{getDraggedBlockClientIds:o,getSelectedBlockClientIds:r,getEnabledClientIdsTree:l}=ie(n(Nr));return{selectedClientIds:r(),draggedClientIds:o(),clientIdsTree:null!=e?e:l(t)}}),[e,t])}({blocks:n,rootClientId:c}),y=function(e){const t=(0,u.useMemo)((()=>{const t={};let n=0;const o=e=>{e.forEach((e=>{t[e.clientId]=n,n++,e.innerBlocks.length>0&&o(e.innerBlocks)}))};return o(e),t}),[e]);return t}(v),{getBlock:E}=(0,d.useSelect)(Nr),{visibleBlockCount:S,shouldShowInnerBlocks:C}=(0,d.useSelect)((e=>{const{getGlobalBlockCount:t,getClientIdsOfDescendants:n,__unstableGetEditorMode:o}=e(Nr),r=k?.length>0?n(k).length+1:0;return{visibleBlockCount:t()-r,shouldShowInnerBlocks:"zoom-out"!==o()}}),[k]),{updateBlockSelection:B}=yx(),[I,T]=(0,u.useReducer)(Ix,{}),[M,P]=(0,u.useState)(null),{setSelectedTreeId:R}=function({firstSelectedBlockClientId:e,setExpandedState:t}){const[n,o]=(0,u.useState)(null),{selectedBlockParentClientIds:r}=(0,d.useSelect)((t=>{const{getBlockParents:n}=t(Nr);return{selectedBlockParentClientIds:n(e,!1)}}),[e]);return(0,u.useEffect)((()=>{n!==e&&r?.length&&t({type:"expand",clientIds:r})}),[e,r,n,t]),{setSelectedTreeId:o}}({firstSelectedBlockClientId:_[0],setExpandedState:T}),N=(0,u.useCallback)(((e,t,n)=>{B(e,t,null,n),R(t),h&&h(E(t))}),[R,B,h,E]),{ref:L,target:A}=function({dropZoneElement:e,expandedState:t,setExpandedState:n}){const{getBlockRootClientId:o,getBlockIndex:r,getBlockCount:l,getDraggedBlockClientIds:i,canInsertBlocks:s}=(0,d.useSelect)(Nr),[a,c]=(0,u.useState)(),{rootClientId:m,blockIndex:h}=a||{},g=Bw(m,h),f=(0,x.isRTL)(),b=(0,p.usePrevious)(m),v=(0,u.useCallback)(((e,t)=>{const{rootClientId:o}=t||{};o&&("inside"!==t?.dropPosition||e[o]||n({type:"expand",clientIds:[o]}))}),[n]),k=(0,p.useThrottle)(v,500,xx);(0,u.useEffect)((()=>{"inside"===a?.dropPosition&&b===a?.rootClientId?k(t,a):k.cancel()}),[t,b,a,k]);const _=i(),y=(0,p.useThrottle)((0,u.useCallback)(((e,t)=>{const n={x:e.clientX,y:e.clientY},i=!!_?.length,a=Cx(Array.from(t.querySelectorAll("[data-block]")).map((e=>{const t=e.dataset.block,n="true"===e.dataset.expanded,a=e.classList.contains("is-dragging"),c=parseInt(e.getAttribute("aria-level"),10),u=o(t);return{clientId:t,isExpanded:n,rootClientId:u,blockIndex:r(t),element:e,nestingLevel:c||void 0,isDraggedBlock:!!i&&a,innerBlockCount:l(t),canInsertDraggedBlocksAsSibling:!i||s(_,u),canInsertDraggedBlocksAsChild:!i||s(_,t)}})),n,f);a&&c(a)}),[s,_,l,r,o,f]),50);return{ref:(0,p.__experimentalUseDropZone)({dropZoneElement:e,onDrop(e){y.cancel(),a&&g(e),c(void 0)},onDragLeave(){y.cancel(),c(null)},onDragOver(e){y(e,e.currentTarget)},onDragEnd(){y.cancel(),c(void 0)}}),target:a}}({dropZoneElement:o,expandedState:I,setExpandedState:T}),O=(0,u.useRef)(),D=Bx({selectBlock:N}),z=(0,p.useMergeRefs)([D,O,L,f]);(0,u.useEffect)((()=>{_?.length&&hx(_[0],O?.current)}),[]);const V=(0,u.useCallback)((e=>{e&&T({type:"expand",clientIds:[e]})}),[T]),F=(0,u.useCallback)((e=>{e&&T({type:"collapse",clientIds:[e]})}),[T]),H=(0,u.useCallback)((e=>{V(e?.dataset?.block)}),[V]),G=(0,u.useCallback)((e=>{F(e?.dataset?.block)}),[F]),U=(0,u.useCallback)(((e,t,n)=>{e.shiftKey&&B(e,t?.dataset?.block,n?.dataset?.block)}),[B]),$=k?.[0],{blockDropTargetIndex:j,blockDropPosition:W,firstDraggedBlockIndex:K}=(0,u.useMemo)((()=>{let e,t;if(A?.clientId){const t=y[A.clientId];e=void 0===t||"top"===A?.dropPosition?t:t+1}else null===A&&(e=null);if($){const e=y[$];t=void 0===e||"top"===A?.dropPosition?e:e+1}return{blockDropTargetIndex:e,blockDropPosition:A?.dropPosition,firstDraggedBlockIndex:t}}),[A,y,$]),Z=(0,u.useMemo)((()=>({blockDropPosition:W,blockDropTargetIndex:j,blockIndexes:y,draggedClientIds:k,expandedState:I,expand:V,firstDraggedBlockIndex:K,collapse:F,BlockSettingsMenu:a,listViewInstanceId:b,AdditionalBlockContent:g,insertedBlock:M,setInsertedBlock:P,treeGridElementRef:O,rootClientId:c})),[W,j,y,k,I,V,K,F,a,b,g,M,P,c]),[q]=(0,p.__experimentalUseFixedWindowList)(O,36,S,{expandedState:I,useWindowing:!0,windowOverscan:40});if(!v.length&&!i)return null;const Y=m&&`block-editor-list-view-description-${b}`;return(0,s.createElement)(d.AsyncModeProvider,{value:!0},(0,s.createElement)(_x,{draggedBlockClientId:$,listViewRef:O,blockDropTarget:A}),m&&(0,s.createElement)(_l.VisuallyHidden,{id:Y},m),(0,s.createElement)(_l.__experimentalTreeGrid,{id:t,className:ml()("block-editor-list-view-tree",{"is-dragging":k?.length>0&&void 0!==j}),"aria-label":(0,x.__)("Block navigation structure"),ref:z,onCollapseRow:G,onExpandRow:H,onFocusRow:U,applicationAriaLabel:(0,x.__)("Block navigation structure"),"aria-describedby":Y,style:{"--wp-admin--list-view-dragged-items-height":k?.length?36*(k.length-1)+"px":null}},(0,s.createElement)(QC.Provider,{value:Z},(0,s.createElement)(kx,{blocks:v,parentId:c,selectBlock:N,showBlockMovers:r,fixedListWindow:q,selectedClientIds:_,isExpanded:l,shouldShowInnerBlocks:C,showAppender:i}))))})),Mx=(0,u.forwardRef)(((e,t)=>(0,s.createElement)(Tx,{ref:t,...e,showAppender:!1,rootClientId:null,onSelect:null,additionalBlockContent:null,blockSettingsMenu:void 0})));function Px({isEnabled:e,onToggle:t,isOpen:n,innerRef:o,...r}){return(0,s.createElement)(_l.Button,{...r,ref:o,icon:XC,"aria-expanded":n,"aria-haspopup":"true",onClick:e?t:void 0,label:(0,x.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!e})}const Rx=(0,u.forwardRef)((function({isDisabled:e,...t},n){w()("wp.blockEditor.BlockNavigationDropdown",{since:"6.1",alternative:"wp.components.Dropdown and wp.blockEditor.ListView"});const o=(0,d.useSelect)((e=>!!e(Nr).getBlockCount()),[])&&!e;return(0,s.createElement)(_l.Dropdown,{contentClassName:"block-editor-block-navigation__popover",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:e,onToggle:r})=>(0,s.createElement)(Px,{...t,innerRef:n,isOpen:e,onToggle:r,isEnabled:o}),renderContent:()=>(0,s.createElement)("div",{className:"block-editor-block-navigation__container"},(0,s.createElement)("p",{className:"block-editor-block-navigation__label"},(0,x.__)("List view")),(0,s.createElement)(Mx,null))})}));function Nx({genericPreviewBlock:e,style:t,className:n,activeStyle:o}){const r=(0,c.getBlockType)(e.name)?.example,l=RS(n,o,t),i=(0,u.useMemo)((()=>({...e,title:t.label||t.name,description:t.description,initialAttributes:{...e.attributes,className:l+" block-editor-block-styles__block-preview-container"},example:r})),[e,l]);return(0,s.createElement)(Py,{item:i})}const Lx=()=>{};const Ax=function({clientId:e,onSwitch:t=Lx,onHoverClassName:n=Lx}){const{onSelect:o,stylesToRender:r,activeStyle:l,genericPreviewBlock:i,className:a}=LS({clientId:e,onSwitch:t}),[c,d]=(0,u.useState)(null),m=(0,p.useViewportMatch)("medium","<");if(!r||0===r.length)return null;const h=(0,p.debounce)(d,250),g=e=>{var t;c!==e?(h(e),n(null!==(t=e?.name)&&void 0!==t?t:null)):h.cancel()};return(0,s.createElement)("div",{className:"block-editor-block-styles"},(0,s.createElement)("div",{className:"block-editor-block-styles__variants"},r.map((e=>{const t=e.label||e.name;return(0,s.createElement)(_l.Button,{__next40pxDefaultSize:!0,className:ml()("block-editor-block-styles__item",{"is-active":l.name===e.name}),key:e.name,variant:"secondary",label:t,onMouseEnter:()=>g(e),onFocus:()=>g(e),onMouseLeave:()=>g(null),onBlur:()=>g(null),onClick:()=>(e=>{o(e),n(null),d(null),h.cancel()})(e),"aria-current":l.name===e.name},(0,s.createElement)(_l.__experimentalTruncate,{numberOfLines:1,className:"block-editor-block-styles__item-text"},t))}))),c&&!m&&(0,s.createElement)(_l.Popover,{placement:"left-start",offset:34,focusOnMount:!1},(0,s.createElement)("div",{className:"block-editor-block-styles__preview-panel",onMouseLeave:()=>g(null)},(0,s.createElement)(Nx,{activeStyle:l,className:a,genericPreviewBlock:i,style:c}))))},Ox={0:(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})),1:(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})),2:(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.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.6v1.5h8v-2H17z"})),3:(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})),4:(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})),5:(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"})),6:(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"}))};function Dx({level:e}){return Ox[e]?(0,s.createElement)(_l.Icon,{icon:Ox[e]}):null}const zx=[1,2,3,4,5,6],Vx={className:"block-library-heading-level-dropdown"};function Fx({options:e=zx,value:t,onChange:n}){return(0,s.createElement)(_l.ToolbarDropdownMenu,{popoverProps:Vx,icon:(0,s.createElement)(Dx,{level:t}),label:(0,x.__)("Change level"),controls:e.map((e=>{{const o=e===t;return{icon:(0,s.createElement)(Dx,{level:e,isPressed:o}),title:0===e?(0,x.__)("Paragraph"):(0,x.sprintf)((0,x.__)("Heading %d"),e),isActive:o,onClick(){n(e)},role:"menuitemradio"}}}))})}const Hx=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));const Gx=function({icon:e=Hx,label:t=(0,x.__)("Choose variation"),instructions:n=(0,x.__)("Select a variation to start with."),variations:o,onSelect:r,allowSkip:l}){const i=ml()("block-editor-block-variation-picker",{"has-many-variations":o.length>4});return(0,s.createElement)(_l.Placeholder,{icon:e,label:t,instructions:n,className:i},(0,s.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":(0,x.__)("Block variations")},o.map((e=>(0,s.createElement)("li",{key:e.name},(0,s.createElement)(_l.Button,{variant:"secondary",icon:e.icon&&e.icon.src?e.icon.src:e.icon,iconSize:48,onClick:()=>r(e),className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),(0,s.createElement)("span",{className:"block-editor-block-variation-picker__variation-label"},e.title))))),l&&(0,s.createElement)("div",{className:"block-editor-block-variation-picker__skip"},(0,s.createElement)(_l.Button,{variant:"link",onClick:()=>r()},(0,x.__)("Skip"))))},Ux=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})),$x="carousel",jx="grid",Wx=({onBlockPatternSelect:e})=>(0,s.createElement)("div",{className:"block-editor-block-pattern-setup__actions"},(0,s.createElement)(_l.Button,{variant:"primary",onClick:e},(0,x.__)("Choose"))),Kx=({handlePrevious:e,handleNext:t,activeSlide:n,totalSlides:o})=>(0,s.createElement)("div",{className:"block-editor-block-pattern-setup__navigation"},(0,s.createElement)(_l.Button,{icon:M_,label:(0,x.__)("Previous pattern"),onClick:e,disabled:0===n,__experimentalIsFocusable:!0}),(0,s.createElement)(_l.Button,{icon:T_,label:(0,x.__)("Next pattern"),onClick:t,disabled:n===o-1,__experimentalIsFocusable:!0})),Zx=({viewMode:e,setViewMode:t,handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:l,onBlockPatternSelect:i})=>{const a=e===$x,c=(0,s.createElement)("div",{className:"block-editor-block-pattern-setup__display-controls"},(0,s.createElement)(_l.Button,{icon:Xi,label:(0,x.__)("Carousel view"),onClick:()=>t($x),isPressed:a}),(0,s.createElement)(_l.Button,{icon:Ux,label:(0,x.__)("Grid view"),onClick:()=>t(jx),isPressed:e===jx}));return(0,s.createElement)("div",{className:"block-editor-block-pattern-setup__toolbar"},a&&(0,s.createElement)(Kx,{handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:l}),c,a&&(0,s.createElement)(Wx,{onBlockPatternSelect:i}))};const qx=function(e,t,n){return(0,d.useSelect)((o=>{const{getBlockRootClientId:r,getPatternsByBlockTypes:l,__experimentalGetAllowedPatterns:i}=o(Nr),s=r(e);return n?i(s).filter(n):l(t,s)}),[e,t,n])},{CompositeV2:Yx,CompositeItemV2:Xx,useCompositeStoreV2:Qx}=ie(_l.privateApis),Jx=({viewMode:e,activeSlide:t,patterns:n,onBlockPatternSelect:o,showTitles:r})=>{const l=Qx(),i="block-editor-block-pattern-setup__container";if(e===$x){const e=new Map([[t,"active-slide"],[t-1,"previous-slide"],[t+1,"next-slide"]]);return(0,s.createElement)("div",{className:"block-editor-block-pattern-setup__carousel"},(0,s.createElement)("div",{className:i},(0,s.createElement)("div",{className:"carousel-container"},n.map(((n,o)=>(0,s.createElement)(tB,{active:o===t,className:e.get(o)||"",key:n.name,pattern:n}))))))}return(0,s.createElement)("div",{className:"block-editor-block-pattern-setup__grid"},(0,s.createElement)(Yx,{store:l,role:"listbox",className:i,"aria-label":(0,x.__)("Patterns list")},n.map((e=>(0,s.createElement)(eB,{key:e.name,pattern:e,onSelect:o,showTitles:r})))))};function eB({pattern:e,onSelect:t,showTitles:n}){const o="block-editor-block-pattern-setup-list",{blocks:r,description:l,viewportWidth:i=700}=e,a=(0,p.useInstanceId)(eB,`${o}__item-description`);return(0,s.createElement)("div",{className:`${o}__list-item`},(0,s.createElement)(Xx,{render:(0,s.createElement)("div",{"aria-describedby":l?a:void 0,"aria-label":e.title,className:`${o}__item`}),id:`${o}__pattern__${e.name}`,role:"option",onClick:()=>t(r)},(0,s.createElement)(Ty,{blocks:r,viewportWidth:i}),n&&(0,s.createElement)("div",{className:`${o}__item-title`},e.title),!!l&&(0,s.createElement)(_l.VisuallyHidden,{id:a},l)))}function tB({active:e,className:t,pattern:n,minHeight:o}){const{blocks:r,title:l,description:i}=n,a=(0,p.useInstanceId)(tB,"block-editor-block-pattern-setup-list__item-description");return(0,s.createElement)("div",{"aria-hidden":!e,role:"img",className:`pattern-slide ${t}`,"aria-label":l,"aria-describedby":i?a:void 0},(0,s.createElement)(Ty,{blocks:r,minHeight:o}),!!i&&(0,s.createElement)(_l.VisuallyHidden,{id:a},i))}const nB=({clientId:e,blockName:t,filterPatternsFn:n,onBlockPatternSelect:o,initialViewMode:r=$x,showTitles:l=!1})=>{const[i,a]=(0,u.useState)(r),[p,m]=(0,u.useState)(0),{replaceBlock:h}=(0,d.useDispatch)(Nr),g=qx(e,t,n);if(!g?.length)return null;const f=o||(t=>{const n=t.map((e=>(0,c.cloneBlock)(e)));h(e,n)});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:`block-editor-block-pattern-setup view-mode-${i}`},(0,s.createElement)(Jx,{viewMode:i,activeSlide:p,patterns:g,onBlockPatternSelect:f,showTitles:l}),(0,s.createElement)(Zx,{viewMode:i,setViewMode:a,activeSlide:p,totalSlides:g.length,handleNext:()=>{m((e=>Math.min(e+1,g.length-1)))},handlePrevious:()=>{m((e=>Math.max(e-1,0)))},onBlockPatternSelect:()=>{f(g[p].blocks)}})))};function oB({className:e,onSelectVariation:t,selectedValue:n,variations:o}){return(0,s.createElement)("fieldset",{className:e},(0,s.createElement)(_l.VisuallyHidden,{as:"legend"},(0,x.__)("Transform to variation")),o.map((e=>(0,s.createElement)(_l.Button,{key:e.name,icon:(0,s.createElement)(qh,{icon:e.icon,showColors:!0}),isPressed:n===e.name,label:n===e.name?e.title:(0,x.sprintf)((0,x.__)("Transform to %s"),e.title),onClick:()=>t(e.name),"aria-label":e.title,showTooltip:!0}))))}function rB({className:e,onSelectVariation:t,selectedValue:n,variations:o}){const r=o.map((({name:e,title:t,description:n})=>({value:e,label:t,info:n})));return(0,s.createElement)(_l.DropdownMenu,{className:e,label:(0,x.__)("Transform to variation"),text:(0,x.__)("Transform to variation"),popoverProps:{position:"bottom center",className:`${e}__popover`},icon:cS,toggleProps:{iconPosition:"right"}},(()=>(0,s.createElement)("div",{className:`${e}__container`},(0,s.createElement)(_l.MenuGroup,null,(0,s.createElement)(_l.MenuItemsChoice,{choices:r,value:n,onSelect:t})))))}function lB({className:e,onSelectVariation:t,selectedValue:n,variations:o}){return(0,s.createElement)("div",{className:e},(0,s.createElement)(_l.__experimentalToggleGroupControl,{label:(0,x.__)("Transform to variation"),value:n,hideLabelFromVision:!0,onChange:t,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0},o.map((e=>(0,s.createElement)(_l.__experimentalToggleGroupControlOptionIcon,{key:e.name,icon:e.icon,value:e.name,label:n===e.name?e.title:(0,x.sprintf)((0,x.__)("Transform to %s"),e.title)})))))}const iB=function({blockClientId:e}){const{updateBlockAttributes:t}=(0,d.useDispatch)(Nr),{activeBlockVariation:n,variations:o}=(0,d.useSelect)((t=>{const{getActiveBlockVariation:n,getBlockVariations:o}=t(c.store),{getBlockName:r,getBlockAttributes:l}=t(Nr),i=e&&r(e);return{activeBlockVariation:n(i,l(e)),variations:i&&o(i,"transform")}}),[e]),r=n?.name,l=(0,u.useMemo)((()=>{const e=new Set;return!!o&&(o.forEach((t=>{t.icon&&e.add(t.icon?.src||t.icon)})),e.size===o.length)}),[o]);if(!o?.length)return null;const i=o.length>5,a=l?i?oB:lB:rB;return(0,s.createElement)(a,{className:"block-editor-block-variation-transforms",onSelectVariation:n=>{t(e,{...o.find((({name:e})=>e===n)).attributes})},selectedValue:r,variations:o})},sB=(0,p.createHigherOrderComponent)((e=>t=>{const[n,o]=Ar("color.palette","color.custom"),{colors:r=n,disableCustomColors:l=!o}=t,i=r&&r.length>0||!l;return(0,s.createElement)(e,{...t,colors:r,disableCustomColors:l,hasColorsToChoose:i})}),"withColorContext"),aB=sB(_l.ColorPalette);function cB({onChange:e,value:t,...n}){return(0,s.createElement)(Xu,{...n,onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0})}const uB=window.wp.date,dB=new Date(2022,0,25);function pB({format:e,defaultFormat:t,onChange:n}){return(0,s.createElement)("fieldset",{className:"block-editor-date-format-picker"},(0,s.createElement)(_l.VisuallyHidden,{as:"legend"},(0,x.__)("Date format")),(0,s.createElement)(_l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,x.__)("Default format"),help:`${(0,x.__)("Example:")} ${(0,uB.dateI18n)(t,dB)}`,checked:!e,onChange:e=>n(e?null:t)}),e&&(0,s.createElement)(mB,{format:e,onChange:n}))}function mB({format:e,onChange:t}){var n;const o=[...new Set(["Y-m-d",(0,x._x)("n/j/Y","short date format"),(0,x._x)("n/j/Y g:i A","short date format with time"),(0,x._x)("M j, Y","medium date format"),(0,x._x)("M j, Y g:i A","medium date format with time"),(0,x._x)("F j, Y","long date format"),(0,x._x)("M j","short date format without the year")])],r=o.map(((e,t)=>({key:`suggested-${t}`,name:(0,uB.dateI18n)(e,dB),format:e}))),l={key:"custom",name:(0,x.__)("Custom"),className:"block-editor-date-format-picker__custom-format-select-control__custom-option",__experimentalHint:(0,x.__)("Enter your own date format")},[i,a]=(0,u.useState)((()=>!!e&&!o.includes(e)));return(0,s.createElement)(_l.__experimentalVStack,null,(0,s.createElement)(_l.CustomSelectControl,{__nextUnconstrainedWidth:!0,label:(0,x.__)("Choose a format"),options:[...r,l],value:i?l:null!==(n=r.find((t=>t.format===e)))&&void 0!==n?n:l,onChange:({selectedItem:e})=>{e===l?a(!0):(a(!1),t(e.format))}}),i&&(0,s.createElement)(_l.TextControl,{__nextHasNoMarginBottom:!0,label:(0,x.__)("Custom format"),hideLabelFromVision:!0,help:(0,u.createInterpolateElement)((0,x.__)("Enter a date or time <Link>format string</Link>."),{Link:(0,s.createElement)(_l.ExternalLink,{href:(0,x.__)("https://wordpress.org/documentation/article/customize-date-and-time-format/")})}),value:e,onChange:e=>t(e)}))}const hB=({setting:e,children:t,panelId:n,...o})=>(0,s.createElement)(_l.__experimentalToolsPanelItem,{hasValue:()=>!!e.colorValue||!!e.gradientValue,label:e.label,onDeselect:()=>{e.colorValue?e.onColorChange():e.gradientValue&&e.onGradientChange()},isShownByDefault:void 0===e.isShownByDefault||e.isShownByDefault,...o,className:"block-editor-tools-panel-color-gradient-settings__item",panelId:n,resetAllFilter:e.resetAllFilter},t),gB=({colorValue:e,label:t})=>(0,s.createElement)(_l.__experimentalHStack,{justify:"flex-start"},(0,s.createElement)(_l.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,s.createElement)(_l.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t},t)),fB=e=>({onToggle:t,isOpen:n})=>{const{colorValue:o,label:r}=e,l={onClick:t,className:ml()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":n}),"aria-expanded":n};return(0,s.createElement)(_l.Button,{...l},(0,s.createElement)(gB,{colorValue:o,label:r}))};function bB({colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:o,gradients:r,settings:l,__experimentalIsRenderedInSidebar:i,...a}){let c;return i&&(c={placement:"left-start",offset:36,shift:!0}),(0,s.createElement)(s.Fragment,null,l.map(((l,u)=>{var d;const p={clearable:!1,colorValue:l.colorValue,colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:o,gradientValue:l.gradientValue,gradients:r,label:l.label,onColorChange:l.onColorChange,onGradientChange:l.onGradientChange,showTitle:!1,__experimentalIsRenderedInSidebar:i,...l},m={colorValue:null!==(d=l.gradientValue)&&void 0!==d?d:l.colorValue,label:l.label};return l&&(0,s.createElement)(hB,{key:u,setting:l,...a},(0,s.createElement)(_l.Dropdown,{popoverProps:c,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:fB(m),renderContent:()=>(0,s.createElement)(_l.__experimentalDropdownContentWrapper,{paddingSize:"none"},(0,s.createElement)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content"},(0,s.createElement)(Xu,{...p})))}))})))}const vB=["colors","disableCustomColors","gradients","disableCustomGradients"],kB=({className:e,colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:r,children:l,settings:i,title:a,showTitle:c=!0,__experimentalIsRenderedInSidebar:u,enableAlpha:m})=>{const h=(0,p.useInstanceId)(kB),{batch:g}=(0,d.useRegistry)();return t&&0!==t.length||n&&0!==n.length||!o||!r||!i?.every((e=>(!e.colors||0===e.colors.length)&&(!e.gradients||0===e.gradients.length)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)))?(0,s.createElement)(_l.__experimentalToolsPanel,{className:ml()("block-editor-panel-color-gradient-settings",e),label:c?a:void 0,resetAll:()=>{g((()=>{i.forEach((({colorValue:e,gradientValue:t,onColorChange:n,onGradientChange:o})=>{e?n():t&&o()}))}))},panelId:h,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},(0,s.createElement)(bB,{settings:i,panelId:h,colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:r,__experimentalIsRenderedInSidebar:u,enableAlpha:m}),!!l&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.__experimentalSpacer,{marginY:4})," ",l)):null},_B=e=>{const t=qc();return(0,s.createElement)(kB,{...t,...e})},yB=e=>vB.every((t=>e.hasOwnProperty(t)))?(0,s.createElement)(kB,{...e}):(0,s.createElement)(_B,{...e});const EB=(0,u.createContext)({}),wB=()=>(0,u.useContext)(EB);function SB({id:e,url:t,naturalWidth:n,naturalHeight:o,onFinishEditing:r,onSaveImage:l,children:i}){const a=function({url:e,naturalWidth:t,naturalHeight:n}){const[o,r]=(0,u.useState)(),[l,i]=(0,u.useState)(),[s,a]=(0,u.useState)({x:0,y:0}),[c,d]=(0,u.useState)(100),[p,h]=(0,u.useState)(0),g=t/n,[f,b]=(0,u.useState)(g),v=(0,u.useCallback)((()=>{const t=(p+90)%360;let n=g;if(p%180==90&&(n=1/g),0===t)return r(),h(t),b(g),void a((e=>({x:-e.y*n,y:e.x*n})));const o=new window.Image;o.src=e,o.onload=function(e){const o=document.createElement("canvas");let l=0,i=0;t%180?(o.width=e.target.height,o.height=e.target.width):(o.width=e.target.width,o.height=e.target.height),90!==t&&180!==t||(l=o.width),270!==t&&180!==t||(i=o.height);const s=o.getContext("2d");s.translate(l,i),s.rotate(t*Math.PI/180),s.drawImage(e.target,0,0),o.toBlob((e=>{r(URL.createObjectURL(e)),h(t),b(o.width/o.height),a((e=>({x:-e.y*n,y:e.x*n})))}))};const l=(0,m.applyFilters)("media.crossOrigin",void 0,e);"string"==typeof l&&(o.crossOrigin=l)}),[p,g,e]);return(0,u.useMemo)((()=>({editedUrl:o,setEditedUrl:r,crop:l,setCrop:i,position:s,setPosition:a,zoom:c,setZoom:d,rotation:p,setRotation:h,rotateClockwise:v,aspect:f,setAspect:b,defaultAspect:g})),[o,l,s,c,p,v,f,g])}({url:t,naturalWidth:n,naturalHeight:o}),c=function({crop:e,rotation:t,url:n,id:o,onSaveImage:r,onFinishEditing:l}){const{createErrorNotice:i}=(0,d.useDispatch)(Os.store),[s,a]=(0,u.useState)(!1),c=(0,u.useCallback)((()=>{a(!1),l()}),[l]),p=(0,u.useCallback)((()=>{a(!0);const s=[];t>0&&s.push({type:"rotate",args:{angle:t}}),(e.width<99.9||e.height<99.9)&&s.push({type:"crop",args:{left:e.x,top:e.y,width:e.width,height:e.height}}),ef()({path:`/wp/v2/media/${o}/edit`,method:"POST",data:{src:n,modifiers:s}}).then((e=>{r({id:e.id,url:e.source_url})})).catch((e=>{i((0,x.sprintf)((0,x.__)("Could not edit image. %s"),(0,As.__unstableStripHTML)(e.message)),{id:"image-editing-error",type:"snackbar"})})).finally((()=>{a(!1),l()}))}),[e,t,o,n,r,i,l]);return(0,u.useMemo)((()=>({isInProgress:s,apply:p,cancel:c})),[s,p,c])}({id:e,url:t,onSaveImage:l,onFinishEditing:r,...a}),p=(0,u.useMemo)((()=>({...a,...c})),[a,c]);return(0,s.createElement)(EB.Provider,{value:p},i)}
-/*! *****************************************************************************
-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 CB=function(e,t){return CB=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},CB(e,t)};var xB=function(){return xB=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},xB.apply(this,arguments)};Object.create;Object.create;var BB=n(7520),IB=n.n(BB);function TB(e,t,n,o,r){void 0===r&&(r=0);var l=OB(t.width,t.height,r),i=l.width,s=l.height;return{x:MB(e.x,i,n.width,o),y:MB(e.y,s,n.height,o)}}function MB(e,t,n,o){var r=t*o/2-n/2;return DB(e,-r,r)}function PB(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function RB(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function NB(e,t){return Math.min(e,Math.max(0,t))}function LB(e,t){return t}function AB(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function OB(e,t,n){var o=n*Math.PI/180;return{width:Math.abs(Math.cos(o)*e)+Math.abs(Math.sin(o)*t),height:Math.abs(Math.sin(o)*e)+Math.abs(Math.cos(o)*t)}}function DB(e,t,n){return Math.min(Math.max(e,t),n)}function zB(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"==typeof e&&e.length>0})).join(" ").trim()}var VB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=a().createRef(),n.videoRef=a().createRef(),n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc="undefined"!=typeof document?document:null,n.currentWindow="undefined"!=typeof window?window:null,n.resizeObserver=null,n.state={cropSize:null,hasWheelJustStarted:!1},n.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&n.containerRef){var e=!0;n.resizeObserver=new window.ResizeObserver((function(t){e?e=!1:n.computeSizes()})),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturemove",n.onGestureMove),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var e=n.computeSizes();e&&(n.emitCropData(),n.setInitialCrop(e)),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(e){if(n.props.initialCroppedAreaPercentages){var t=function(e,t,n,o,r,l){var i=OB(t.width,t.height,n),s=DB(o.width/i.width*(100/e.width),r,l);return{crop:{x:s*i.width/2-o.width/2-i.width*s*(e.x/100),y:s*i.height/2-o.height/2-i.height*s*(e.y/100)},zoom:s}}(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom),o=t.crop,r=t.zoom;n.props.onCropChange(o),n.props.onZoomChange&&n.props.onZoomChange(r)}else if(n.props.initialCroppedAreaPixels){var l=function(e,t,n,o,r,l){void 0===n&&(n=0);var i=OB(t.naturalWidth,t.naturalHeight,n),s=DB(function(e,t,n){var o=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return n.height>n.width?n.height/(e.height*o):n.width/(e.width*o)}(e,t,o),r,l),a=o.height>o.width?o.height/e.height:o.width/e.width;return{crop:{x:((i.width-e.width)/2-e.x)*a,y:((i.height-e.height)/2-e.y)*a},zoom:s}}(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom);o=l.crop,r=l.zoom;n.props.onCropChange(o),n.props.onZoomChange&&n.props.onZoomChange(r)}},n.computeSizes=function(){var e,t,o,r,l,i,s=n.imageRef.current||n.videoRef.current;if(s&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect();var a=n.containerRect.width/n.containerRect.height,c=(null===(e=n.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,u=(null===(o=n.imageRef.current)||void 0===o?void 0:o.naturalHeight)||(null===(r=n.videoRef.current)||void 0===r?void 0:r.videoHeight)||0,d=c/u,p=void 0;if(s.offsetWidth<c||s.offsetHeight<u)switch(n.props.objectFit){default:case"contain":p=a>d?{width:n.containerRect.height*d,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/d};break;case"horizontal-cover":p={width:n.containerRect.width,height:n.containerRect.width/d};break;case"vertical-cover":p={width:n.containerRect.height*d,height:n.containerRect.height};break;case"auto-cover":p=c>u?{width:n.containerRect.width,height:n.containerRect.width/d}:{width:n.containerRect.height*d,height:n.containerRect.height}}else p={width:s.offsetWidth,height:s.offsetHeight};n.mediaSize=xB(xB({},p),{naturalWidth:c,naturalHeight:u}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var m=n.props.cropSize?n.props.cropSize:function(e,t,n,o,r,l){void 0===l&&(l=0);var i=OB(e,t,l),s=i.width,a=i.height,c=Math.min(s,n),u=Math.min(a,o);return c>u*r?{width:u*r,height:u}:{width:c,height:c/r}}(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(null===(l=n.state.cropSize)||void 0===l?void 0:l.height)===m.height&&(null===(i=n.state.cropSize)||void 0===i?void 0:i.width)===m.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(m),n.setState({cropSize:m},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(m),m}},n.onMouseDown=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.onDragStart(t.getMousePoint(e)))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onTouchStart=function(e){n.currentDoc&&(n.isTouching=!0,n.props.onTouchRequest&&!n.props.onTouchRequest(e)||(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0]))))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onGestureStart=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureMove),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureMove=function(e){if(e.preventDefault(),!n.isTouching){var o=t.getMousePoint(e),r=n.gestureZoomStart-1+e.scale;if(n.setNewZoom(r,o,{shouldUpdatePosition:!0}),n.props.onRotationChange){var l=n.gestureRotationStart+e.rotation;n.props.onRotationChange(l)}}},n.onGestureEnd=function(e){n.cleanEvents()},n.onDragStart=function(e){var t,o,r=e.x,l=e.y;n.dragStartPosition={x:r,y:l},n.dragStartCrop=xB({},n.props.crop),null===(o=(t=n.props).onInteractionStart)||void 0===o||o.call(t)},n.onDrag=function(e){var t=e.x,o=e.y;n.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame((function(){if(n.state.cropSize&&void 0!==t&&void 0!==o){var e=t-n.dragStartPosition.x,r=o-n.dragStartPosition.y,l={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+r},i=n.props.restrictPosition?TB(l,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):l;n.props.onCropChange(i)}})))},n.onDragStopped=function(){var e,t;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){if(n.currentWindow&&(!n.props.onWheelRequest||n.props.onWheelRequest(e))){e.preventDefault();var o=t.getMousePoint(e),r=IB()(e).pixelY,l=n.props.zoom-r*n.props.zoomSpeed/200;n.setNewZoom(l,o,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout((function(){return n.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)}},n.getPointOnContainer=function(e){var t=e.x,o=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(t-n.containerRect.left),y:n.containerRect.height/2-(o-n.containerRect.top)}},n.getPointOnMedia=function(e){var t=e.x,o=e.y,r=n.props,l=r.crop,i=r.zoom;return{x:(t+l.x)/i,y:(o+l.y)/i}},n.setNewZoom=function(e,t,o){var r=(void 0===o?{}:o).shouldUpdatePosition,l=void 0===r||r;if(n.state.cropSize&&n.props.onZoomChange){var i=DB(e,n.props.minZoom,n.props.maxZoom);if(l){var s=n.getPointOnContainer(t),a=n.getPointOnMedia(s),c={x:a.x*i-s.x,y:a.y*i-s.y},u=n.props.restrictPosition?TB(c,n.mediaSize,n.state.cropSize,i,n.props.rotation):c;n.props.onCropChange(u)}n.props.onZoomChange(i)}},n.getCropData=function(){return n.state.cropSize?function(e,t,n,o,r,l,i){void 0===l&&(l=0),void 0===i&&(i=!0);var s=i?NB:LB,a=OB(t.width,t.height,l),c=OB(t.naturalWidth,t.naturalHeight,l),u={x:s(100,((a.width-n.width/r)/2-e.x/r)/a.width*100),y:s(100,((a.height-n.height/r)/2-e.y/r)/a.height*100),width:s(100,n.width/a.width*100/r),height:s(100,n.height/a.height*100/r)},d=Math.round(s(c.width,u.width*c.width/100)),p=Math.round(s(c.height,u.height*c.height/100)),m=c.width>=c.height*o?{width:Math.round(p*o),height:p}:{width:d,height:Math.round(d/o)};return{croppedAreaPercentages:u,croppedAreaPixels:xB(xB({},m),{x:Math.round(s(c.width-m.width,u.x*c.width/100)),y:Math.round(s(c.height-m.height,u.y*c.height/100))})}}(n.props.restrictPosition?TB(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,o),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var e=n.props.restrictPosition?TB(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(e),n.emitCropData()}},n}return function(e,t){function n(){this.constructor=e}CB(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),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 display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\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}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\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",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,n,o,r,l,i,s,a,c;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===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(o=e.cropSize)||void 0===o?void 0:o.width)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.width)?this.computeSizes():(null===(l=e.crop)||void 0===l?void 0:l.x)===(null===(i=this.props.crop)||void 0===i?void 0:i.x)&&(null===(s=e.crop)||void 0===s?void 0:s.y)===(null===(a=this.props.crop)||void 0===a?void 0:a.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(c=this.videoRef.current)||void 0===c||c.load())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=PB(n,o),this.lastPinchRotation=RB(n,o),this.onDragStart(AB(n,o))},t.prototype.onPinchMove=function(e){var n=this;if(this.currentDoc&&this.currentWindow){var o=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]),l=AB(o,r);this.onDrag(l),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame((function(){var e=PB(o,r),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,l,{shouldUpdatePosition:!1}),n.lastPinchDistance=e;var i=RB(o,r),s=n.props.rotation+(i-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(s),n.lastPinchRotation=i}))}},t.prototype.render=function(){var e=this,t=this.props,n=t.image,o=t.video,r=t.mediaProps,l=t.transform,i=t.crop,s=i.x,c=i.y,u=t.rotation,d=t.zoom,p=t.cropShape,m=t.showGrid,h=t.style,g=h.containerStyle,f=h.cropAreaStyle,b=h.mediaStyle,v=t.classes,k=v.containerClassName,_=v.cropAreaClassName,y=v.mediaClassName,E=t.objectFit;return a().createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:g,className:zB("reactEasyCrop_Container",k)},n?a().createElement("img",xB({alt:"",className:zB("reactEasyCrop_Image","contain"===E&&"reactEasyCrop_Contain","horizontal-cover"===E&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===E&&"reactEasyCrop_Cover_Vertical","auto-cover"===E&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),y)},r,{src:n,ref:this.imageRef,style:xB(xB({},b),{transform:l||"translate(".concat(s,"px, ").concat(c,"px) rotate(").concat(u,"deg) scale(").concat(d,")")}),onLoad:this.onMediaLoad})):o&&a().createElement("video",xB({autoPlay:!0,loop:!0,muted:!0,className:zB("reactEasyCrop_Video","contain"===E&&"reactEasyCrop_Contain","horizontal-cover"===E&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===E&&"reactEasyCrop_Cover_Vertical","auto-cover"===E&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),y)},r,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:xB(xB({},b),{transform:l||"translate(".concat(s,"px, ").concat(c,"px) rotate(").concat(u,"deg) scale(").concat(d,")")}),controls:!1}),(Array.isArray(o)?o:[{src:o}]).map((function(e){return a().createElement("source",xB({key:e.src},e))}))),this.state.cropSize&&a().createElement("div",{style:xB(xB({},f),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:zB("reactEasyCrop_CropArea","round"===p&&"reactEasyCrop_CropAreaRound",m&&"reactEasyCrop_CropAreaGrid",_)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",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}(a().Component);const FB=100,HB=300,GB={placement:"bottom-start"};function UB({url:e,width:t,height:n,clientWidth:o,naturalHeight:r,naturalWidth:l,borderProps:i}){const{isInProgress:a,editedUrl:c,position:u,zoom:d,aspect:p,setPosition:m,setCrop:h,setZoom:g,rotation:f}=wB();let b=n||o*r/l;return f%180==90&&(b=o*l/r),(0,s.createElement)("div",{className:ml()("wp-block-image__crop-area",i?.className,{"is-applying":a}),style:{...i?.style,width:t||o,height:b}},(0,s.createElement)(VB,{image:c||e,disabled:a,minZoom:FB/100,maxZoom:HB/100,crop:u,zoom:d/100,aspect:p,onCropChange:e=>{m(e)},onCropComplete:e=>{h(e)},onZoomChange:e=>{g(100*e)}}),a&&(0,s.createElement)(_l.Spinner,null))}const $B=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));function jB(){const{isInProgress:e,zoom:t,setZoom:n}=wB();return(0,s.createElement)(_l.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:GB,renderToggle:({isOpen:t,onToggle:n})=>(0,s.createElement)(_l.ToolbarButton,{icon:$B,label:(0,x.__)("Zoom"),onClick:n,"aria-expanded":t,disabled:e}),renderContent:()=>(0,s.createElement)(_l.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,x.__)("Zoom"),min:FB,max:HB,value:Math.round(t),onChange:n})})}const WB=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.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"}));function KB({aspectRatios:e,isDisabled:t,label:n,onClick:o,value:r}){return(0,s.createElement)(_l.MenuGroup,{label:n},e.map((({title:e,aspect:n})=>(0,s.createElement)(_l.MenuItem,{key:n,disabled:t,onClick:()=>{o(n)},role:"menuitemradio",isSelected:n===r,icon:n===r?uu:void 0},e))))}function ZB({toggleProps:e}){const{isInProgress:t,aspect:n,setAspect:o,defaultAspect:r}=wB();return(0,s.createElement)(_l.DropdownMenu,{icon:WB,label:(0,x.__)("Aspect Ratio"),popoverProps:GB,toggleProps:e,className:"wp-block-image__aspect-ratio"},(({onClose:e})=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(KB,{isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{title:(0,x.__)("Original"),aspect:r},{title:(0,x.__)("Square"),aspect:1}]}),(0,s.createElement)(KB,{label:(0,x.__)("Landscape"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{title:(0,x.__)("16:9"),aspect:16/9},{title:(0,x.__)("4:3"),aspect:4/3},{title:(0,x.__)("3:2"),aspect:1.5}]}),(0,s.createElement)(KB,{label:(0,x.__)("Portrait"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{title:(0,x.__)("9:16"),aspect:9/16},{title:(0,x.__)("3:4"),aspect:3/4},{title:(0,x.__)("2:3"),aspect:2/3}]}))))}const qB=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.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"}));function YB(){const{isInProgress:e,rotateClockwise:t}=wB();return(0,s.createElement)(_l.ToolbarButton,{icon:qB,label:(0,x.__)("Rotate"),onClick:t,disabled:e})}function XB(){const{isInProgress:e,apply:t,cancel:n}=wB();return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.ToolbarButton,{onClick:t,disabled:e},(0,x.__)("Apply")),(0,s.createElement)(_l.ToolbarButton,{onClick:n},(0,x.__)("Cancel")))}function QB({id:e,url:t,width:n,height:o,clientWidth:r,naturalHeight:l,naturalWidth:i,onSaveImage:a,onFinishEditing:c,borderProps:u}){return(0,s.createElement)(SB,{id:e,url:t,naturalWidth:i,naturalHeight:l,onSaveImage:a,onFinishEditing:c},(0,s.createElement)(UB,{borderProps:u,url:t,width:n,height:o,clientWidth:r,naturalHeight:l,naturalWidth:i}),(0,s.createElement)(Bl,null,(0,s.createElement)(_l.ToolbarGroup,null,(0,s.createElement)(jB,null),(0,s.createElement)(_l.ToolbarItem,null,(e=>(0,s.createElement)(ZB,{toggleProps:e}))),(0,s.createElement)(YB,null)),(0,s.createElement)(_l.ToolbarGroup,null,(0,s.createElement)(XB,null))))}const JB=[25,50,75,100],eI=()=>{};function tI({imageSizeHelp:e,imageWidth:t,imageHeight:n,imageSizeOptions:o=[],isResizable:r=!0,slug:l,width:i,height:a,onChange:c,onChangeImage:d=eI}){const{currentHeight:p,currentWidth:m,updateDimension:h,updateDimensions:g}=function(e,t,n,o,r){var l,i;const[s,a]=(0,u.useState)(null!==(l=null!=t?t:o)&&void 0!==l?l:""),[c,d]=(0,u.useState)(null!==(i=null!=e?e:n)&&void 0!==i?i:"");return(0,u.useEffect)((()=>{void 0===t&&void 0!==o&&a(o),void 0===e&&void 0!==n&&d(n)}),[o,n]),(0,u.useEffect)((()=>{void 0!==t&&Number.parseInt(t)!==Number.parseInt(s)&&a(t),void 0!==e&&Number.parseInt(e)!==Number.parseInt(c)&&d(e)}),[t,e]),{currentHeight:c,currentWidth:s,updateDimension:(e,t)=>{const n=""===t?void 0:parseInt(t,10);"width"===e?a(n):d(n),r({[e]:n})},updateDimensions:(e,t)=>{d(null!=e?e:n),a(null!=t?t:o),r({height:e,width:t})}}}(a,i,n,t,c);return(0,s.createElement)(s.Fragment,null,o&&o.length>0&&(0,s.createElement)(_l.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,x.__)("Resolution"),value:l,options:o,onChange:d,help:e,size:"__unstable-large"}),r&&(0,s.createElement)("div",{className:"block-editor-image-size-control"},(0,s.createElement)(_l.__experimentalHStack,{align:"baseline",spacing:"3"},(0,s.createElement)(_l.__experimentalNumberControl,{className:"block-editor-image-size-control__width",label:(0,x.__)("Width"),value:m,min:1,onChange:e=>h("width",e),size:"__unstable-large"}),(0,s.createElement)(_l.__experimentalNumberControl,{className:"block-editor-image-size-control__height",label:(0,x.__)("Height"),value:p,min:1,onChange:e=>h("height",e),size:"__unstable-large"})),(0,s.createElement)(_l.__experimentalHStack,null,(0,s.createElement)(_l.ButtonGroup,{"aria-label":(0,x.__)("Image size presets")},JB.map((e=>{const o=Math.round(t*(e/100)),r=Math.round(n*(e/100)),l=m===o&&p===r;return(0,s.createElement)(_l.Button,{key:e,size:"small",variant:l?"primary":void 0,isPressed:l,onClick:()=>g(r,o)},e,"%")}))),(0,s.createElement)(_l.Button,{size:"small",onClick:()=>g()},(0,x.__)("Reset")))))}function nI({url:e,urlLabel:t,className:n}){const o=ml()(n,"block-editor-url-popover__link-viewer-url");return e?(0,s.createElement)(_l.ExternalLink,{className:o,href:e},t||(0,Ds.filterURLForDisplay)((0,Ds.safeDecodeURI)(e))):(0,s.createElement)("span",{className:o})}const{__experimentalPopoverLegacyPositionToPlacement:oI}=ie(_l.privateApis),rI=(0,u.forwardRef)((({additionalControls:e,children:t,renderSettings:n,placement:o,focusOnMount:r="firstElement",position:l,...i},a)=>{let c;void 0!==l&&w()("`position` prop in wp.blockEditor.URLPopover",{since:"6.2",alternative:"`placement` prop"}),void 0!==o?c=o:void 0!==l&&(c=oI(l)),c=c||"bottom";const[d,p]=(0,u.useState)(!1),m=!!n&&d;return(0,s.createElement)(_l.Popover,{ref:a,className:"block-editor-url-popover",focusOnMount:r,placement:c,shift:!0,variant:"toolbar",...i},(0,s.createElement)("div",{className:"block-editor-url-popover__input-container"},(0,s.createElement)("div",{className:"block-editor-url-popover__row"},t,!!n&&(0,s.createElement)(_l.Button,{className:"block-editor-url-popover__settings-toggle",icon:cS,label:(0,x.__)("Link settings"),onClick:()=>{p(!d)},"aria-expanded":d,size:"compact"}))),m&&(0,s.createElement)("div",{className:"block-editor-url-popover__settings"},n()),e&&!m&&(0,s.createElement)("div",{className:"block-editor-url-popover__additional-controls"},e))}));rI.LinkEditor=function({autocompleteRef:e,className:t,onChangeInputValue:n,value:o,...r}){return(0,s.createElement)("form",{className:ml()("block-editor-url-popover__link-editor",t),...r},(0,s.createElement)(ta,{__nextHasNoMarginBottom:!0,value:o,onChange:n,autocompleteRef:e}),(0,s.createElement)(_l.Button,{icon:Ks,label:(0,x.__)("Apply"),type:"submit",size:"compact"}))},rI.LinkViewer=function({className:e,linkClassName:t,onEditLinkClick:n,url:o,urlLabel:r,...l}){return(0,s.createElement)("div",{className:ml()("block-editor-url-popover__link-viewer",e),...l},(0,s.createElement)(nI,{url:o,urlLabel:r,className:t}),n&&(0,s.createElement)(_l.Button,{icon:La,label:(0,x.__)("Edit"),onClick:n,size:"compact"}))};const lI=rI,iI=()=>{},sI=({src:e,onChange:t,onSubmit:n,onClose:o,popoverAnchor:r})=>(0,s.createElement)(lI,{anchor:r,onClose:o},(0,s.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:n},(0,s.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"text","aria-label":(0,x.__)("URL"),placeholder:(0,x.__)("Paste or type URL"),onChange:t,value:e}),(0,s.createElement)(_l.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:Ks,label:(0,x.__)("Apply"),type:"submit"}))),aI=({isURLInputVisible:e,src:t,onChangeSrc:n,onSubmitSrc:o,openURLInput:r,closeURLInput:l})=>{const[i,a]=(0,u.useState)(null);return(0,s.createElement)("div",{className:"block-editor-media-placeholder__url-input-container",ref:a},(0,s.createElement)(_l.Button,{className:"block-editor-media-placeholder__button",onClick:r,isPressed:e,variant:"tertiary"},(0,x.__)("Insert from URL")),e&&(0,s.createElement)(sI,{src:t,onChange:n,onSubmit:o,onClose:l,popoverAnchor:i}))};const cI=(0,_l.withFilters)("editor.MediaPlaceholder")((function({value:e={},allowedTypes:t,className:n,icon:o,labels:r={},mediaPreview:l,notices:i,isAppender:a,accept:p,addToGallery:m,multiple:h=!1,handleUpload:g=!0,disableDropZone:f,disableMediaButtons:b,onError:v,onSelect:k,onCancel:_,onSelectURL:y,onToggleFeaturedImage:E,onDoubleClick:S,onFilesPreUpload:C=iI,onHTMLDrop:B,children:I,mediaLibraryButton:T,placeholder:M,style:P}){B&&w()("wp.blockEditor.MediaPlaceholder onHTMLDrop prop",{since:"6.2",version:"6.4"});const R=(0,d.useSelect)((e=>{const{getSettings:t}=e(Nr);return t().mediaUpload}),[]),[N,L]=(0,u.useState)(""),[A,O]=(0,u.useState)(!1);(0,u.useEffect)((()=>{var t;L(null!==(t=e?.src)&&void 0!==t?t:"")}),[e?.src]);const D=e=>{L(e.target.value)},z=()=>{O(!0)},V=()=>{O(!1)},F=e=>{e.preventDefault(),N&&y&&(y(N),V())},H=n=>{if(!g)return k(n);let o;if(C(n),h)if(m){let t=[];o=n=>{const o=(null!=e?e:[]).filter((e=>e.id?!t.some((({id:t})=>Number(t)===Number(e.id))):!t.some((({urlSlug:t})=>e.url.includes(t)))));k(o.concat(n)),t=n.map((e=>{const t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else o=k;else o=([e])=>k(e);R({allowedTypes:t,filesList:n,onFileChange:o,onError:v})};async function G(e){const n=(0,c.pasteHandler)({HTML:e});return await async function(e){if(!e||!Array.isArray(e))return;const n=function e(t){return t.flatMap((t=>"core/image"!==t.name&&"core/audio"!==t.name&&"core/video"!==t.name||!t.attributes.url?e(t.innerBlocks):[t]))}(e);if(!n.length)return;const o=await Promise.all(n.map((e=>e.attributes.id?e.attributes:new Promise(((n,o)=>{window.fetch(e.attributes.url).then((e=>e.blob())).then((r=>R({filesList:[r],additionalData:{title:e.attributes.title,alt_text:e.attributes.alt,caption:e.attributes.caption},onFileChange:([e])=>{e.id&&n(e)},allowedTypes:t,onError:o}))).catch((()=>n(e.attributes.url)))}))))).catch((e=>v(e)));k(h?o:o[0])}(n)}const U=e=>{H(e.target.files)},$=null!=M?M:e=>{let{instructions:c,title:u}=r;if(R||y||(c=(0,x.__)("To edit this block, you need permission to upload media.")),void 0===c||void 0===u){const e=null!=t?t:[],[n]=e,o=1===e.length,r=o&&"audio"===n,l=o&&"image"===n,i=o&&"video"===n;void 0===c&&R&&(c=(0,x.__)("Upload a media file or pick one from your media library."),r?c=(0,x.__)("Upload an audio file, pick one from your media library, or add one with a URL."):l?c=(0,x.__)("Upload an image file, pick one from your media library, or add one with a URL."):i&&(c=(0,x.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===u&&(u=(0,x.__)("Media"),r?u=(0,x.__)("Audio"):l?u=(0,x.__)("Image"):i&&(u=(0,x.__)("Video")))}const d=ml()("block-editor-media-placeholder",n,{"is-appender":a});return(0,s.createElement)(_l.Placeholder,{icon:o,label:u,instructions:c,className:d,notices:i,onDoubleClick:S,preview:l,style:P},e,I)},j=()=>f?null:(0,s.createElement)(_l.DropZone,{onFilesDrop:H,onHTMLDrop:G}),W=()=>_&&(0,s.createElement)(_l.Button,{className:"block-editor-media-placeholder__cancel-button",title:(0,x.__)("Cancel"),variant:"link",onClick:_},(0,x.__)("Cancel")),K=()=>y&&(0,s.createElement)(aI,{isURLInputVisible:A,src:N,onChangeSrc:D,onSubmitSrc:F,openURLInput:z,closeURLInput:V}),Z=()=>E&&(0,s.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},(0,s.createElement)(_l.Button,{className:"block-editor-media-placeholder__button",onClick:E,variant:"tertiary"},(0,x.__)("Use featured image")));return b?(0,s.createElement)(Us,null,j()):(0,s.createElement)(Us,{fallback:$(K())},(()=>{const n=null!=T?T:({open:e})=>(0,s.createElement)(_l.Button,{variant:"tertiary",onClick:()=>{e()}},(0,x.__)("Media Library")),o=(0,s.createElement)(Gs,{addToGallery:m,gallery:h&&!(!t||0===t.length)&&t.every((e=>"image"===e||e.startsWith("image/"))),multiple:h,onSelect:k,allowedTypes:t,mode:"browse",value:Array.isArray(e)?e.map((({id:e})=>e)):e.id,render:n});if(R&&a)return(0,s.createElement)(s.Fragment,null,j(),(0,s.createElement)(_l.FormFileUpload,{onChange:U,accept:p,multiple:!!h,render:({openFileDialog:e})=>{const t=(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.Button,{variant:"primary",className:ml()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:e},(0,x.__)("Upload")),o,K(),Z(),W());return $(t)}}));if(R){const e=(0,s.createElement)(s.Fragment,null,j(),(0,s.createElement)(_l.FormFileUpload,{variant:"primary",className:ml()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:U,accept:p,multiple:!!h},(0,x.__)("Upload")),o,K(),Z(),W());return $(e)}return $(o)})())})),uI=({colorSettings:e,...t})=>{const n=e.map((e=>{if(!e)return e;const{value:t,onChange:n,...o}=e;return{...o,colorValue:t,onColorChange:n}}));return(0,s.createElement)(yB,{settings:n,gradients:[],disableCustomGradients:!0,...t})},dI={placement:"bottom-start"},pI=()=>(0,s.createElement)(s.Fragment,null,["bold","italic","link","unknown"].map((e=>(0,s.createElement)(_l.Slot,{name:`RichText.ToolbarControls.${e}`,key:e}))),(0,s.createElement)(_l.Slot,{name:"RichText.ToolbarControls"},(e=>{if(!e.length)return null;const t=e.map((([{props:e}])=>e)).some((({isActive:e})=>e));return(0,s.createElement)(_l.ToolbarItem,null,(n=>(0,s.createElement)(_l.DropdownMenu,{icon:cS,label:(0,x.__)("More"),toggleProps:{...n,className:ml()(n.className,{"is-pressed":t}),describedBy:(0,x.__)("Displays more block tools")},controls:ne(e.map((([{props:e}])=>e)),"title"),popoverProps:dI})))})));function mI({editableContentElement:e,activeFormats:t}){const n=t[t.length-1],o=n?.type,r=(0,d.useSelect)((e=>e(Y.store).getFormatType(o)),[o]),l=(0,Y.useAnchor)({editableContentElement:e,settings:r});return(0,s.createElement)(hI,{popoverAnchor:l})}function hI({popoverAnchor:e}){return(0,s.createElement)(_l.Popover,{placement:"top",focusOnMount:!1,anchor:e,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar"},(0,s.createElement)(NC,{className:"block-editor-rich-text__inline-format-toolbar-group","aria-label":(0,x.__)("Format tools")},(0,s.createElement)(_l.ToolbarGroup,null,(0,s.createElement)(pI,null))))}const gI=({inline:e,editableContentElement:t,value:n})=>{const o=(0,d.useSelect)((e=>e(Nr).getSettings().hasInlineToolbar),[]);if(e)return(0,s.createElement)(hI,{popoverAnchor:t});if(o){const e=(0,Y.getActiveFormats)(n);return(0,Y.isCollapsed)(n)&&!e.length?null:(0,s.createElement)(mI,{editableContentElement:t,activeFormats:e})}return(0,s.createElement)(Bl,{group:"inline"},(0,s.createElement)(pI,null))};function fI(){const{didAutomaticChange:e,getSettings:t}=(0,d.useSelect)(Nr);return(0,p.useRefEffect)((n=>{function o(n){const{keyCode:o}=n;if(n.defaultPrevented)return;if(o!==zs.DELETE&&o!==zs.BACKSPACE&&o!==zs.ESCAPE)return;const{__experimentalUndo:r}=t();r&&e()&&(n.preventDefault(),r())}return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}}),[])}function bI(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function vI({allowedFormats:e,disableFormats:t}){return t?vI.EMPTY_ARRAY:e}function kI({value:e,pastedBlocks:t=[],onReplace:n,onSplit:o}){if(!n||!o)return;const{start:r=0,end:l=0}=e,i={...e,start:r,end:l},s=[],[a,c]=(0,Y.split)(i),u=t.length>0;let d=-1;const p=(0,Y.isEmpty)(a)&&!(0,Y.isEmpty)(c);u&&(0,Y.isEmpty)(a)||(s.push(o((0,Y.toHTMLString)({value:a}),!p)),d+=1),u&&(s.push(...t),d+=t.length),u&&(0,Y.isEmpty)(c)||s.push(o((0,Y.toHTMLString)({value:c}),p));n(s,u?d:1,u?-1:0)}function _I(e){const t=(0,u.useRef)(e);return t.current=e,(0,p.useRefEffect)((e=>{function n(e){const{isSelected:n,disableFormats:o,onChange:r,value:l,formatTypes:i,tagName:s,onReplace:a,onSplit:u,__unstableEmbedURLOnPaste:d,pastePlainText:p}=t.current;if(!n)return;const{plainText:m,html:h,files:g}=ty(e);if(e.preventDefault(),window.console.log("Received HTML:\n\n",h),window.console.log("Received plain text:\n\n",m),o)return void r((0,Y.insert)(l,m));function f(e){const t=i.reduce(((e,{__unstablePasteRule:t})=>(t&&e===l&&(e=t(l,{html:h,plainText:m})),e)),l);if(t!==l)r(t);else{const t=(0,Y.create)({html:e});!function(e,t){if(t?.length){let n=e.formats.length;for(;n--;)e.formats[n]=[...t,...e.formats[n]||[]]}}(t,l.activeFormats),r((0,Y.insert)(l,t))}}if("true"===e.clipboardData.getData("rich-text"))return void f(h);if(p)return void r((0,Y.insert)(l,(0,Y.create)({text:m})));if(g?.length){window.console.log("Received items:\n\n",g);const e=(0,c.getBlockTransforms)("from"),t=g.reduce(((t,n)=>{const o=(0,c.findTransform)(e,(e=>"files"===e.type&&e.isMatch([n])));return o&&t.push(o.transform([n])),t}),[]).flat();if(!t.length)return;return void(a&&(0,Y.isEmpty)(l)?a(t):kI({value:l,pastedBlocks:t,onReplace:a,onSplit:u}))}let b=a&&u?"AUTO":"INLINE";const v=m.trim();d&&(0,Y.isEmpty)(l)&&(0,Ds.isURL)(v)&&/^https?:/.test(v)&&(b="BLOCKS");const k=(0,c.pasteHandler)({HTML:h,plainText:m,mode:b,tagName:s});"string"==typeof k?f(k):k.length>0&&(a&&(0,Y.isEmpty)(l)?a(k,k.length-1,-1):kI({value:l,pastedBlocks:k,onReplace:a,onSplit:u}))}return e.addEventListener("paste",n),()=>{e.removeEventListener("paste",n)}}),[])}vI.EMPTY_ARRAY=[];const yI=["`",'"',"'","“”","‘’"];function EI(e){const{__unstableMarkLastChangeAsPersistent:t,__unstableMarkAutomaticChange:n}=(0,d.useDispatch)(Nr),o=(0,u.useRef)(e);return o.current=e,(0,p.useRefEffect)((e=>{function r(r){const{inputType:l,data:i}=r,{value:s,onChange:a}=o.current;if("insertText"!==l)return;if((0,Y.isCollapsed)(s))return;const c=(0,m.applyFilters)("blockEditor.wrapSelectionSettings",yI).find((([e,t])=>e===i||t===i));if(!c)return;const[u,d=u]=c,p=s.start,h=s.end+u.length;let g=(0,Y.insert)(s,u,p,p);g=(0,Y.insert)(g,d,h,h),t(),a(g),n();const f={};for(const e in r)f[e]=r[e];f.data=d;const{ownerDocument:b}=e,{defaultView:v}=b,k=new v.InputEvent("input",f);window.queueMicrotask((()=>{r.target.dispatchEvent(k)})),r.preventDefault()}return e.addEventListener("beforeinput",r),()=>{e.removeEventListener("beforeinput",r)}}),[])}function wI(e){let t=e.length;for(;t--;){const n=_o(e[t].attributes);if(n)return e[t].attributes[n]=e[t].attributes[n].toString().replace(ko,""),[e[t].clientId,n,0,0];const o=wI(e[t].innerBlocks);if(o)return o}return[]}function SI(e){const{__unstableMarkLastChangeAsPersistent:t,__unstableMarkAutomaticChange:n}=(0,d.useDispatch)(Nr),o=(0,u.useRef)(e);return o.current=e,(0,p.useRefEffect)((e=>{function r(){const{getValue:e,onReplace:t,selectionChange:r}=o.current;if(!t)return;const l=e(),{start:i,text:s}=l;if(" "!==s.slice(i-1,i))return;const a=s.slice(0,i).trim(),u=(0,c.getBlockTransforms)("from").filter((({type:e})=>"prefix"===e)),d=(0,c.findTransform)(u,(({prefix:e})=>a===e));if(!d)return;const p=(0,Y.toHTMLString)({value:(0,Y.insert)(l,ko,0,i)}),m=d.transform(p);return r(...wI([m])),t([m]),n(),!0}function l(e){const{inputType:l,type:i}=e,{getValue:s,onChange:a,__unstableAllowPrefixTransformations:c,formatTypes:u}=o.current;if("insertText"!==l&&"compositionend"!==i)return;if(c&&r())return;const d=s(),p=u.reduce(((e,{__unstableInputRule:t})=>(t&&(e=t(e)),e)),function(e){const t="tales of gutenberg",{start:n,text:o}=e;return n<18||o.slice(n-18,n).toLowerCase()!==t?e:(0,Y.insert)(e," 🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️")}(d));p!==d&&(t(),a({...p,activeFormats:d.activeFormats}),n())}return e.addEventListener("input",l),e.addEventListener("compositionend",l),()=>{e.removeEventListener("input",l),e.removeEventListener("compositionend",l)}}),[])}function CI(e){const t=(0,u.useRef)(e);return t.current=e,(0,p.useRefEffect)((e=>{function n(e){const{keyCode:n}=e;if(e.defaultPrevented)return;const{value:o,onMerge:r,onRemove:l}=t.current;if(n===zs.DELETE||n===zs.BACKSPACE){const{start:t,end:i,text:s}=o,a=n===zs.BACKSPACE,c=o.activeFormats&&!!o.activeFormats.length;if(!(0,Y.isCollapsed)(o)||c||a&&0!==t||!a&&i!==s.length)return;r?r(!a):l&&(0,Y.isEmpty)(o)&&a&&l(!a),e.preventDefault()}}return e.addEventListener("keydown",n),()=>{e.removeEventListener("keydown",n)}}),[])}function xI(e){const t=(0,d.useRegistry)(),{__unstableMarkAutomaticChange:n}=(0,d.useDispatch)(Nr),o=(0,u.useRef)(e);return o.current=e,(0,p.useRefEffect)((e=>{function r(e){if("true"!==e.target.contentEditable)return;if(e.defaultPrevented)return;if(e.keyCode!==zs.ENTER)return;const{removeEditorOnlyFormats:r,value:l,onReplace:i,onSplit:s,onChange:a,disableLineBreaks:u,onSplitAtEnd:d,onSplitAtDoubleLineEnd:p}=o.current;e.preventDefault();const m={...l};m.formats=r(l);const h=i&&s;if(i){const e=(0,c.getBlockTransforms)("from").filter((({type:e})=>"enter"===e)),t=(0,c.findTransform)(e,(e=>e.regExp.test(m.text)));if(t)return i([t.transform({content:m.text})]),void n()}const{text:g,start:f,end:b}=m;e.shiftKey?u||a((0,Y.insert)(m,"\n")):h?kI({value:m,onReplace:i,onSplit:s}):d&&f===b&&b===g.length?d():p&&f===b&&b===g.length&&"\n\n"===g.slice(-2)?t.batch((()=>{m.start=m.end-2,a((0,Y.remove)(m)),p()})):u||a((0,Y.insert)(m,"\n"))}return e.addEventListener("keydown",r),()=>{e.removeEventListener("keydown",r)}}),[])}function BI(e){return e(Y.store).getFormatTypes()}const II=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function TI(e,t){return"object"!=typeof e?{[t]:e}:Object.fromEntries(Object.entries(e).map((([e,n])=>[`${t}.${e}`,n])))}function MI(e,t){return e[t]?e[t]:Object.keys(e).filter((e=>e.startsWith(t+"."))).reduce(((n,o)=>(n[o.slice(t.length+1)]=e[o],n)),{})}function PI(e){return(0,p.useRefEffect)((t=>{function n(t){for(const n of e.current)n(t)}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}}),[])}function RI(e){return(0,p.useRefEffect)((t=>{function n(t){for(const n of e.current)n(t)}return t.addEventListener("input",n),()=>{t.removeEventListener("input",n)}}),[])}function NI(){const{__unstableMarkLastChangeAsPersistent:e}=(0,d.useDispatch)(Nr);return(0,p.useRefEffect)((t=>{function n(t){"insertReplacementText"===t.inputType&&e()}return t.addEventListener("beforeinput",n),()=>{t.removeEventListener("beforeinput",n)}}),[])}function LI(){const{isMultiSelecting:e}=(0,d.useSelect)(Nr);return(0,p.useRefEffect)((t=>{function n(){if(!e())return;const n=t.parentElement.closest('[contenteditable="true"]');n&&n.focus()}return t.addEventListener("focus",n),()=>{t.removeEventListener("focus",n)}}),[])}const AI={},OI=Symbol("usesContext");function DI({onChange:e,onFocus:t,value:n,forwardedRef:o,settings:r}){const{name:l,edit:i,[OI]:a}=r,c=(0,u.useContext)(bf),d=(0,u.useMemo)((()=>a?Object.fromEntries(Object.entries(c).filter((([e])=>a.includes(e)))):AI),[a,c]);if(!i)return null;const p=(0,Y.getActiveFormat)(n,l),m=void 0!==p,h=(0,Y.getActiveObject)(n),g=void 0!==h&&h.type===l;return(0,s.createElement)(i,{key:l,isActive:m,activeAttributes:m&&p.attributes||{},isObjectActive:g,activeObjectAttributes:g&&h.attributes||{},value:n,onChange:e,onFocus:t,contentRef:o,context:d})}function zI({formatTypes:e,...t}){return e.map((e=>(0,s.createElement)(DI,{settings:e,...t,key:e.name})))}function VI({value:e,tagName:t,multiline:n,format:o,...r}){if(KI.isEmpty(e)){const t=bI(n);e=t?(0,s.createElement)(t,null):null}else Array.isArray(e)?(w()("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),e=(0,s.createElement)(u.RawHTML,null,c.children.toHTML(e))):e="string"==typeof e?(0,s.createElement)(u.RawHTML,null,e):(0,s.createElement)(u.RawHTML,null,e.toHTMLString());return t?(0,s.createElement)(t,{...r},e):e}const FI=(0,u.forwardRef)((function({children:e,identifier:t,tagName:n="div",value:o="",onChange:r,multiline:l,...i},a){w()("wp.blockEditor.RichText multiline prop",{since:"6.1",version:"6.3",alternative:"nested blocks (InnerBlocks)",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/"});const{clientId:c}=y(),{selectionChange:u}=(0,d.useDispatch)(Nr),p=bI(l),m=`</${p}>${o=o||`<${p}></${p}>`}<${p}>`.split(`</${p}><${p}>`);function h(e){r(`<${p}>${e.join(`</${p}><${p}>`)}</${p}>`)}return m.shift(),m.pop(),(0,s.createElement)(n,{ref:a},m.map(((e,n)=>(0,s.createElement)(UI,{key:n,identifier:`${t}-${n}`,tagName:p,value:e,onChange:e=>{const t=m.slice();t[n]=e,h(t)},isSelected:void 0,onSplit:e=>e,onReplace:e=>{const o=m.slice();o.splice(n,1,...e),h(o),u(c,`${t}-${n+1}`,0,0)},onMerge:e=>{const o=m.slice();let r=0;if(e){if(!o[n+1])return;o.splice(n,2,o[n]+o[n+1]),r=o[n].length-1}else{if(!o[n-1])return;o.splice(n-1,2,o[n-1]+o[n]),r=o[n-1].length-1}h(o),u(c,`${t}-${n-(e?0:1)}`,r,r)},...i}))))}));const HI=(0,u.createContext)(),GI=(0,u.createContext)();function UI({children:e,tagName:t="div",value:n="",onChange:o,isSelected:r,multiline:l,inlineToolbar:i,wrapperClassName:a,autocompleters:m,onReplace:h,placeholder:g,allowedFormats:f,withoutInteractiveFormatting:v,onRemove:k,onMerge:_,onSplit:E,__unstableOnSplitAtEnd:w,__unstableOnSplitAtDoubleLineEnd:S,identifier:C,preserveWhiteSpace:x,__unstablePastePlainText:B,__unstableEmbedURLOnPaste:I,__unstableDisableFormats:T,disableLineBreaks:M,__unstableAllowPrefixTransformations:P,disableEditing:R,...N},L){N=function(e){const{__unstableMobileNoFocusOnMount:t,deleteEnter:n,placeholderTextColor:o,textAlign:r,selectionColor:l,tagsToEliminate:i,disableEditingMenu:s,fontSize:a,fontFamily:c,fontWeight:u,fontStyle:d,minWidth:p,maxWidth:m,setRef:h,disableSuggestions:g,disableAutocorrection:f,...b}=e;return b}(N);const A=(0,u.useRef)(),O=y(),{clientId:D,isSelected:z,name:V}=O,F=O[b],{selectionStart:H,selectionEnd:G,isSelected:U}=(0,d.useSelect)((e=>{if(!z)return{isSelected:!1};const{getSelectionStart:t,getSelectionEnd:n}=e(Nr),o=t(),l=n();let i;return void 0===r?i=o.clientId===D&&l.clientId===D&&o.attributeKey===C:r&&(i=o.clientId===D),{selectionStart:i?o.offset:void 0,selectionEnd:i?l.offset:void 0,isSelected:i}}),[D,C,r,z]),$=(0,d.useSelect)((e=>{let t=!1;if(F&&eg(V)){const n=(0,c.getBlockType)(V).attributes,{getBlockBindingsSource:o}=ie(e(c.store));for(const[e,r]of Object.entries(F)){if("rich-text"!==n?.[e]?.source)break;const l=o(r.source);if(!l||l.lockAttributesEditing){t=!0;break}}}return t}),[F,V]),j=R||$,{getSelectionStart:W,getSelectionEnd:K,getBlockRootClientId:Z}=(0,d.useSelect)(Nr),{selectionChange:q}=(0,d.useDispatch)(Nr),X=vI({allowedFormats:f,disableFormats:T}),Q=!X||X.length>0,J=(0,u.useCallback)(((e,t)=>{const n={},o=void 0===e&&void 0===t;if("number"==typeof e||o){if(void 0===t&&Z(D)!==Z(K().clientId))return;n.start={clientId:D,attributeKey:C,offset:e}}if("number"==typeof t||o){if(void 0===e&&Z(D)!==Z(W().clientId))return;n.end={clientId:D,attributeKey:C,offset:t}}q(n)}),[D,C]),{formatTypes:ee,prepareHandlers:te,valueHandlers:ne,changeHandlers:oe,dependencies:re}=function({clientId:e,identifier:t,withoutInteractiveFormatting:n,allowedFormats:o}){const r=(0,d.useSelect)(BI,[]),l=(0,u.useMemo)((()=>r.filter((({name:e,interactive:t,tagName:r})=>!(o&&!o.includes(e)||n&&(t||II.has(r)))))),[r,o,n]),i=(0,d.useSelect)((n=>l.reduce(((o,r)=>r.__experimentalGetPropsForEditableTreePreparation?{...o,...TI(r.__experimentalGetPropsForEditableTreePreparation(n,{richTextIdentifier:t,blockClientId:e}),r.name)}:o),{})),[l,e,t]),s=(0,d.useDispatch)(),a=[],c=[],p=[],m=[];for(const e in i)m.push(i[e]);return l.forEach((n=>{if(n.__experimentalCreatePrepareEditableTree){const o=n.__experimentalCreatePrepareEditableTree(MI(i,n.name),{richTextIdentifier:t,blockClientId:e});n.__experimentalCreateOnChangeEditableValue?c.push(o):a.push(o)}if(n.__experimentalCreateOnChangeEditableValue){let o={};n.__experimentalGetPropsForEditableTreeChangeHandler&&(o=n.__experimentalGetPropsForEditableTreeChangeHandler(s,{richTextIdentifier:t,blockClientId:e}));const r=MI(i,n.name);p.push(n.__experimentalCreateOnChangeEditableValue({..."object"==typeof r?r:{},...o},{richTextIdentifier:t,blockClientId:e}))}})),{formatTypes:l,prepareHandlers:a,valueHandlers:c,changeHandlers:p,dependencies:m}}({clientId:D,identifier:C,withoutInteractiveFormatting:v,allowedFormats:X});function le(e){return ee.forEach((t=>{t.__experimentalCreatePrepareEditableTree&&(e=(0,Y.removeFormat)(e,t.name,0,e.text.length))})),e.formats}const{value:se,getValue:ae,onChange:ce,ref:ue}=(0,Y.__unstableUseRichText)({value:n,onChange(e,{__unstableFormats:t,__unstableText:n}){o(e),Object.values(oe).forEach((e=>{e(t,n)}))},selectionStart:H,selectionEnd:G,onSelectionChange:J,placeholder:g,__unstableIsSelected:U,__unstableDisableFormats:T,preserveWhiteSpace:x,__unstableDependencies:[...re,t],__unstableAfterParse:function(e){return ne.reduce(((t,n)=>n(t,e.text)),e.formats)},__unstableBeforeSerialize:le,__unstableAddInvisibleFormats:function(e){return te.reduce(((t,n)=>n(t,e.text)),e.formats)}}),de=function(e){return(0,_l.__unstableUseAutocompleteProps)({...e,completers:rf(e)})}({onReplace:h,completers:m,record:se,onChange:ce});!function({html:e,value:t}){const n=(0,u.useRef)(),o=!!t.activeFormats?.length,{__unstableMarkLastChangeAsPersistent:r}=(0,d.useDispatch)(Nr);(0,u.useLayoutEffect)((()=>{if(n.current){if(n.current!==t.text){const e=window.setTimeout((()=>{r()}),1e3);return n.current=t.text,()=>{window.clearTimeout(e)}}r()}else n.current=t.text}),[e,o])}({html:n,value:se});const pe=(0,u.useRef)(new Set),me=(0,u.useRef)(new Set);function he(){A.current?.focus()}const ge=t;return(0,s.createElement)(s.Fragment,null,U&&(0,s.createElement)(HI.Provider,{value:pe},(0,s.createElement)(GI.Provider,{value:me},(0,s.createElement)(_l.Popover.__unstableSlotNameProvider,{value:"__unstable-block-tools-after"},e&&e({value:se,onChange:ce,onFocus:he}),(0,s.createElement)(zI,{value:se,onChange:ce,onFocus:he,formatTypes:ee,forwardedRef:A})))),U&&Q&&(0,s.createElement)(gI,{inline:i,editableContentElement:A.current,value:se}),(0,s.createElement)(ge,{role:"textbox","aria-multiline":!M,"aria-label":g,"aria-readonly":j,...N,...de,ref:(0,p.useMergeRefs)([ue,L,de.ref,N.ref,EI({value:se,onChange:ce}),SI({getValue:ae,onChange:ce,__unstableAllowPrefixTransformations:P,formatTypes:ee,onReplace:h,selectionChange:q}),NI(),(0,p.useRefEffect)((e=>{function t(e){(zs.isKeyboardEvent.primary(e,"z")||zs.isKeyboardEvent.primary(e,"y")||zs.isKeyboardEvent.primaryShift(e,"z"))&&e.preventDefault()}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[]),PI(pe),RI(me),fI(),_I({isSelected:U,disableFormats:T,onChange:ce,value:se,formatTypes:ee,tagName:t,onReplace:h,onSplit:E,__unstableEmbedURLOnPaste:I,pastePlainText:B}),CI({value:se,onMerge:_,onRemove:k}),xI({removeEditorOnlyFormats:le,value:se,onReplace:h,onSplit:E,onChange:ce,disableLineBreaks:M,onSplitAtEnd:w,onSplitAtDoubleLineEnd:S}),LI(),A]),contentEditable:!j,suppressContentEditableWarning:!0,className:ml()("block-editor-rich-text__editable",N.className,"rich-text"),tabIndex:0!==N.tabIndex||j?N.tabIndex:null,"data-wp-block-attribute-key":C}))}const $I=(jI=(0,u.forwardRef)(UI),(0,u.forwardRef)(((e,t)=>{let n=e.value,o=e.onChange;Array.isArray(n)&&(w()("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),n=c.children.toHTML(e.value),o=t=>e.onChange(c.children.fromDOM((0,Y.__unstableCreateElement)(document,t).childNodes)));const r=e.multiline?FI:jI,l=(0,p.useInstanceId)(r);return(0,s.createElement)(r,{...e,identifier:e.identifier||l,value:n,onChange:o,ref:t})})));var jI;$I.Content=VI,$I.isEmpty=e=>!e||0===e.length;const WI=(0,u.forwardRef)(((e,t)=>(0,s.createElement)($I,{ref:t,...e,disableEditing:!1})));WI.Content=VI,WI.isEmpty=e=>!e||0===e.length;const KI=WI,ZI=(0,u.forwardRef)(((e,t)=>(0,s.createElement)(KI,{ref:t,...e,__unstableDisableFormats:!0})));ZI.Content=({value:e="",tagName:t="div",...n})=>(0,s.createElement)(t,{...n},e);const qI=ZI,YI=(0,u.forwardRef)((({__experimentalVersion:e,...t},n)=>{if(2===e)return(0,s.createElement)(qI,{ref:n,...t});const{className:o,onChange:r,...l}=t;return(0,s.createElement)(Nf.A,{ref:n,className:ml()("block-editor-plain-text",o),onChange:e=>r(e.target.value),...l})}));function XI({property:e,viewport:t,desc:n}){const o=(0,p.useInstanceId)(XI),r=n||(0,x.sprintf)((0,x._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."),e,t.label);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("span",{"aria-describedby":`rbc-desc-${o}`},t.label),(0,s.createElement)(_l.VisuallyHidden,{as:"span",id:`rbc-desc-${o}`},r))}const QI=function(e){const{title:t,property:n,toggleLabel:o,onIsResponsiveChange:r,renderDefaultControl:l,renderResponsiveControls:i,isResponsive:a=!1,defaultLabel:c={id:"all",label:(0,x._x)("All","screen sizes")},viewports:d=[{id:"small",label:(0,x.__)("Small screens")},{id:"medium",label:(0,x.__)("Medium screens")},{id:"large",label:(0,x.__)("Large screens")}]}=e;if(!t||!n||!l)return null;const p=o||(0,x.sprintf)((0,x.__)("Use the same %s on all screensizes."),n),m=(0,x.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),h=l((0,s.createElement)(XI,{property:n,viewport:c}),c);return(0,s.createElement)("fieldset",{className:"block-editor-responsive-block-control"},(0,s.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),(0,s.createElement)("div",{className:"block-editor-responsive-block-control__inner"},(0,s.createElement)(_l.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-responsive-block-control__toggle",label:p,checked:!a,onChange:r,help:m}),(0,s.createElement)("div",{className:ml()("block-editor-responsive-block-control__group",{"is-responsive":a})},!a&&h,a&&(i?i(d):d.map((e=>(0,s.createElement)(u.Fragment,{key:e.id},l((0,s.createElement)(XI,{property:n,viewport:e}),e))))))))};function JI({character:e,type:t,onUse:n}){const o=(0,u.useContext)(HI),r=(0,u.useRef)();return r.current=n,(0,u.useEffect)((()=>{function n(n){zs.isKeyboardEvent[t](n,e)&&(r.current(),n.preventDefault())}return o.current.add(n),()=>{o.current.delete(n)}}),[e,t]),null}function eT({name:e,shortcutType:t,shortcutCharacter:n,...o}){let r,l="RichText.ToolbarControls";return e&&(l+=`.${e}`),t&&n&&(r=zs.displayShortcut[t](n)),(0,s.createElement)(_l.Fill,{name:l},(0,s.createElement)(_l.ToolbarButton,{...o,shortcut:r}))}function tT({inputType:e,onInput:t}){const n=(0,u.useContext)(GI),o=(0,u.useRef)();return o.current=t,(0,u.useEffect)((()=>{function t(t){t.inputType===e&&(o.current(),t.preventDefault())}return n.current.add(t),()=>{n.current.delete(t)}}),[e]),null}const nT=(0,s.createElement)(_l.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,s.createElement)(_l.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"}));const oT=(0,u.forwardRef)((function(e,t){const n=(0,d.useSelect)((e=>e(Nr).__unstableGetEditorMode()),[]),{__unstableSetEditorMode:o}=(0,d.useDispatch)(Nr);return(0,s.createElement)(_l.Dropdown,{renderToggle:({isOpen:o,onToggle:r})=>(0,s.createElement)(_l.Button,{...e,ref:t,icon:"navigation"===n?nT:La,"aria-expanded":o,"aria-haspopup":"true",onClick:r,label:(0,x.__)("Tools")}),popoverProps:{placement:"bottom-start"},renderContent:()=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.NavigableMenu,{role:"menu","aria-label":(0,x.__)("Tools")},(0,s.createElement)(_l.MenuItemsChoice,{value:"navigation"===n?"navigation":"edit",onSelect:o,choices:[{value:"edit",label:(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Ti,{icon:La}),(0,x.__)("Edit"))},{value:"navigation",label:(0,s.createElement)(s.Fragment,null,nT,(0,x.__)("Select"))}]})),(0,s.createElement)("div",{className:"block-editor-tool-selector__help"},(0,x.__)("Tools provide different interactions for selecting, navigating, and editing blocks. Toggle between select and edit by pressing Escape and Enter.")))})}));function rT({units:e,...t}){const[n]=Ar("spacing.units"),o=(0,_l.__experimentalUseCustomUnits)({availableUnits:n||["%","px","em","rem","vw"],units:e});return(0,s.createElement)(_l.__experimentalUnitControl,{units:o,...t})}const lT=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"}));class iT extends u.Component{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.submitLink=this.submitLink.bind(this),this.state={expanded:!1}}toggle(){this.setState({expanded:!this.state.expanded})}submitLink(e){e.preventDefault(),this.toggle()}render(){const{url:e,onChange:t}=this.props,{expanded:n}=this.state,o=e?(0,x.__)("Edit link"):(0,x.__)("Insert link");return(0,s.createElement)("div",{className:"block-editor-url-input__button"},(0,s.createElement)(_l.Button,{icon:ru,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!e}),n&&(0,s.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},(0,s.createElement)("div",{className:"block-editor-url-input__button-modal-line"},(0,s.createElement)(_l.Button,{className:"block-editor-url-input__back",icon:lT,label:(0,x.__)("Close"),onClick:this.toggle}),(0,s.createElement)(ta,{__nextHasNoMarginBottom:!0,value:e||"",onChange:t}),(0,s.createElement)(_l.Button,{icon:Ks,label:(0,x.__)("Submit"),type:"submit"}))))}}const sT=iT,aT=(0,s.createElement)(Z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(Z.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.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"})),cT="none",uT="custom",dT="media",pT="attachment",mT=["noreferrer","noopener"],hT=({linkDestination:e,onChangeUrl:t,url:n,mediaType:o="image",mediaUrl:r,mediaLink:l,linkTarget:i,linkClass:a,rel:c,showLightboxSetting:d,lightboxEnabled:p,onSetLightbox:m,resetLightbox:h})=>{const[g,f]=(0,u.useState)(!1),[b,v]=(0,u.useState)(null),[k,_]=(0,u.useState)(!1),[y,E]=(0,u.useState)(null),w=(0,u.useRef)(null),S=(0,u.useRef)();(0,u.useEffect)((()=>{if(!S.current)return;(As.focus.focusable.find(S.current)[0]||S.current).focus()}),[k,n,p]);const C=()=>{e!==dT&&e!==pT||E(""),_(!0)},B=()=>{_(!1)},I=()=>{const e=[{linkDestination:dT,title:(0,x.__)("Link to image file"),url:"image"===o?r:void 0,icon:aT}];return"image"===o&&l&&e.push({linkDestination:pT,title:(0,x.__)("Link to attachment page"),url:"image"===o?l:void 0,icon:la}),e},T=(0,s.createElement)(_l.__experimentalVStack,{spacing:"3"},(0,s.createElement)(_l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,x.__)("Open in new tab"),onChange:e=>{const n=(e=>{const t=e?"_blank":void 0;let n;if(t){const e=(null!=c?c:"").split(" ");mT.forEach((t=>{e.includes(t)||e.push(t)})),n=e.join(" ")}else{const e=(null!=c?c:"").split(" ").filter((e=>!1===mT.includes(e)));n=e.length?e.join(" "):void 0}return{linkTarget:t,rel:n}})(e);t(n)},checked:"_blank"===i}),(0,s.createElement)(_l.TextControl,{__nextHasNoMarginBottom:!0,label:(0,x.__)("Link rel"),value:null!=c?c:"",onChange:e=>{t({rel:e})}}),(0,s.createElement)(_l.TextControl,{__nextHasNoMarginBottom:!0,label:(0,x.__)("Link CSS class"),value:a||"",onChange:e=>{t({linkClass:e})}})),M=null!==y?y:n,P=!p||p&&!d,R=!M&&P,N=(I().find((t=>t.linkDestination===e))||{}).title;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.ToolbarButton,{icon:ru,className:"components-toolbar__control",label:(0,x.__)("Link"),"aria-expanded":g,onClick:()=>{f(!0)},ref:v,isActive:!!n||p&&d}),g&&(0,s.createElement)(lI,{ref:S,anchor:b,onFocusOutside:e=>{const t=w.current;t&&t.contains(e.target)||(f(!1),E(null),B())},onClose:()=>{E(null),B(),f(!1)},renderSettings:P?()=>T:null,additionalControls:R&&(0,s.createElement)(_l.NavigableMenu,null,I().map((e=>(0,s.createElement)(_l.MenuItem,{key:e.linkDestination,icon:e.icon,iconPosition:"left",onClick:()=>{E(null),(e=>{const n=I();let o;o=e?(n.find((t=>t.url===e))||{linkDestination:uT}).linkDestination:cT,t({linkDestination:o,href:e})})(e.url),B()}},e.title))),d&&(0,s.createElement)(_l.MenuItem,{key:"expand-on-click",className:"block-editor-url-popover__expand-on-click",icon:sf,info:(0,x.__)("Scale the image with a lightbox effect."),iconPosition:"left",onClick:()=>{E(null),t({linkDestination:cT,href:""}),m(!0),B()}},(0,x.__)("Expand on click"))),offset:13},p&&d&&!n&&!k?(0,s.createElement)("div",{className:"block-editor-url-popover__expand-on-click"},(0,s.createElement)(Ti,{icon:sf}),(0,s.createElement)("div",{className:"text"},(0,s.createElement)("p",null,(0,x.__)("Expand on click")),(0,s.createElement)("p",{className:"description"},(0,x.__)("Scales the image with a lightbox effect"))),(0,s.createElement)(_l.Button,{icon:Aa,label:(0,x.__)("Disable expand on click"),onClick:()=>{m(!1)},size:"compact"})):!n||k?(0,s.createElement)(lI.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:M,onChangeInputValue:E,onSubmit:e=>{if(y){const e=I().find((e=>e.url===y))?.linkDestination||uT;t({href:y,linkDestination:e,lightbox:{enabled:!1}})}B(),E(null),e.preventDefault()},autocompleteRef:w}):n&&!k?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(lI.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:n,onEditLinkClick:C,urlLabel:N}),(0,s.createElement)(_l.Button,{icon:Aa,label:(0,x.__)("Remove link"),onClick:()=>{t({linkDestination:cT,href:""}),h()},size:"compact"})):void 0))};function gT(){return w()("wp.blockEditor.PreviewOptions",{version:"6.5"}),null}function fT(e){const[t,n]=(0,u.useState)(window.innerWidth);(0,u.useEffect)((()=>{if("Desktop"===e)return;const t=()=>n(window.innerWidth);return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}}),[e]);const o=e=>{let n;switch(e){case"Tablet":n=780;break;case"Mobile":n=360;break;default:return null}return n<t?n:t};return(e=>{const t="Mobile"===e?"768px":"1024px",n=(window.innerHeight<800?36:72)+"px",r="auto";switch(e){case"Tablet":case"Mobile":return{width:o(e),marginTop:n,marginBottom:n,marginLeft:r,marginRight:r,height:t,borderRadius:"2px 2px 2px 2px",border:"1px solid #ddd",overflowY:"auto"};default:return{marginLeft:r,marginRight:r}}})(e)}const bT=(0,d.withSelect)((e=>({selectedBlockClientId:e(Nr).getBlockSelectionStart()})))((({selectedBlockClientId:e})=>{const t=fd(e);return e?(0,s.createElement)(_l.Button,{variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{t.current.focus()}},(0,x.__)("Skip to the selected block")):null})),vT=window.wp.wordcount;const kT=(0,d.withSelect)((e=>{const{getMultiSelectedBlocks:t}=e(Nr);return{blocks:t()}}))((function({blocks:e}){const t=(0,vT.count)((0,c.serialize)(e),"words");return(0,s.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},(0,s.createElement)(qh,{icon:SS,showColors:!0}),(0,s.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},(0,s.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},(0,x.sprintf)((0,x._n)("%d Block","%d Blocks",e.length),e.length)),(0,s.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},(0,x.sprintf)((0,x._n)("%d word selected.","%d words selected.",t),t))))}));function _T({blockName:e}){const{preferredStyle:t,onUpdatePreferredStyleVariations:n,styles:o}=(0,d.useSelect)((t=>{var n;const o=t(Nr).getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:o?.value?.[e],onUpdatePreferredStyleVariations:null!==(n=o?.onChange)&&void 0!==n?n:null,styles:t(c.store).getBlockStyles(e)}}),[e]),r=(0,u.useMemo)((()=>[{label:(0,x.__)("Not set"),value:""},...o.map((({label:e,name:t})=>({label:e,value:t})))]),[o]),l=(0,u.useMemo)((()=>NS(o)?.name),[o]),i=(0,u.useCallback)((t=>{n(e,t)}),[e,n]);return t&&t!==l?n&&(0,s.createElement)("div",{className:"default-style-picker__default-switcher"},(0,s.createElement)(_l.SelectControl,{__nextHasNoMarginBottom:!0,options:r,value:t||"",label:(0,x.__)("Default Style"),onChange:i})):null}const yT=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"})),ET=(0,s.createElement)(Z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(Z.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"})),wT={name:"settings",title:(0,x.__)("Settings"),value:"settings",icon:yT,className:"block-editor-block-inspector__tab-item"},ST={name:"styles",title:(0,x.__)("Styles"),value:"styles",icon:ET,className:"block-editor-block-inspector__tab-item"},CT={name:"list",title:(0,x.__)("List View"),value:"list-view",icon:XC,className:"block-editor-block-inspector__tab-item"},xT=()=>{const e=(0,_l.__experimentalUseSlotFills)(xs.slotName);return Boolean(e&&e.length)?(0,s.createElement)(_l.PanelBody,{className:"block-editor-block-inspector__advanced",title:(0,x.__)("Advanced"),initialOpen:!1},(0,s.createElement)(Bs.Slot,{group:"advanced"})):null},BT=()=>{const[e,t]=(0,u.useState)(),{multiSelectedBlocks:n}=(0,d.useSelect)((e=>{const{getBlocksByClientId:t,getSelectedBlockClientIds:n}=e(Nr);return{multiSelectedBlocks:t(n())}}),[]);return(0,u.useLayoutEffect)((()=>{void 0===e&&t(n.some((({attributes:e})=>!!e?.style?.position?.type)))}),[e,n,t]),(0,s.createElement)(_l.PanelBody,{className:"block-editor-block-inspector__position",title:(0,x.__)("Position"),initialOpen:null!=e&&e},(0,s.createElement)(Bs.Slot,{group:"position"}))},IT=()=>{const e=(0,_l.__experimentalUseSlotFills)(vs.position.Slot.__unstableName);return Boolean(e&&e.length)?(0,s.createElement)(BT,null):null},TT=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.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"})),MT="isInspectorControlsTabsHintVisible";function PT(){const e=(0,d.useSelect)((e=>{var t;return null===(t=e(Ws.store).get("core",MT))||void 0===t||t}),[]),t=(0,u.useRef)(),{set:n}=(0,d.useDispatch)(Ws.store);return e?(0,s.createElement)("div",{ref:t,className:"block-editor-inspector-controls-tabs__hint"},(0,s.createElement)("div",{className:"block-editor-inspector-controls-tabs__hint-content"},(0,x.__)("Looking for other block settings? They've moved to the styles tab.")),(0,s.createElement)(_l.Button,{className:"block-editor-inspector-controls-tabs__hint-dismiss",icon:TT,iconSize:"16",label:(0,x.__)("Dismiss hint"),onClick:()=>{const e=As.focus.tabbable.findPrevious(t.current);e?.focus(),n("core",MT,!1)},showTooltip:!1})):null}const RT=({showAdvancedControls:e=!1})=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bs.Slot,null),(0,s.createElement)(IT,null),e&&(0,s.createElement)("div",null,(0,s.createElement)(xT,null)),(0,s.createElement)(PT,null)),NT=({blockName:e,clientId:t,hasBlockStyles:n})=>{const o=zu({blockName:e});return(0,s.createElement)(s.Fragment,null,n&&(0,s.createElement)("div",null,(0,s.createElement)(_l.PanelBody,{title:(0,x.__)("Styles")},(0,s.createElement)(Ax,{clientId:t}),(0,c.hasBlockSupport)(e,"defaultStylePicker",!0)&&(0,s.createElement)(_T,{blockName:e}))),(0,s.createElement)(Bs.Slot,{group:"color",label:(0,x.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,s.createElement)(Bs.Slot,{group:"background",label:(0,x.__)("Background")}),(0,s.createElement)(Bs.Slot,{group:"filter"}),(0,s.createElement)(Bs.Slot,{group:"typography",label:(0,x.__)("Typography")}),(0,s.createElement)(Bs.Slot,{group:"dimensions",label:(0,x.__)("Dimensions")}),(0,s.createElement)(Bs.Slot,{group:"border",label:o}),(0,s.createElement)(Bs.Slot,{group:"styles"}))},LT=["core/navigation"],AT=e=>!LT.includes(e),{Tabs:OT}=ie(_l.privateApis);function DT({blockName:e,clientId:t,hasBlockStyles:n,tabs:o}){const r=AT(e)?void 0:CT.name;return(0,s.createElement)("div",{className:"block-editor-block-inspector__tabs"},(0,s.createElement)(OT,{initialTabId:r,key:t},(0,s.createElement)(OT.TabList,null,o.map((e=>(0,s.createElement)(OT.Tab,{key:e.name,tabId:e.name,render:(0,s.createElement)(_l.Button,{icon:e.icon,label:e.title,className:e.className})})))),(0,s.createElement)(OT.TabPanel,{tabId:wT.name,focusable:!1},(0,s.createElement)(RT,{showAdvancedControls:!!e})),(0,s.createElement)(OT.TabPanel,{tabId:ST.name,focusable:!1},(0,s.createElement)(NT,{blockName:e,clientId:t,hasBlockStyles:n})),(0,s.createElement)(OT.TabPanel,{tabId:CT.name,focusable:!1},(0,s.createElement)(Bs.Slot,{group:"list"}))))}const zT=[];function VT(e){const t=[],{border:n,color:o,default:r,dimensions:l,list:i,position:s,styles:a,typography:c,effects:u}=vs,p=AT(e),m=(0,_l.__experimentalUseSlotFills)(i.Slot.__unstableName),h=!p&&!!m&&m.length,g=[...(0,_l.__experimentalUseSlotFills)(n.Slot.__unstableName)||[],...(0,_l.__experimentalUseSlotFills)(o.Slot.__unstableName)||[],...(0,_l.__experimentalUseSlotFills)(l.Slot.__unstableName)||[],...(0,_l.__experimentalUseSlotFills)(a.Slot.__unstableName)||[],...(0,_l.__experimentalUseSlotFills)(c.Slot.__unstableName)||[],...(0,_l.__experimentalUseSlotFills)(u.Slot.__unstableName)||[]].length,f=(0,_l.__experimentalUseSlotFills)(xs.slotName)||[],b=[...(0,_l.__experimentalUseSlotFills)(r.Slot.__unstableName)||[],...(0,_l.__experimentalUseSlotFills)(s.Slot.__unstableName)||[],...h&&g>1?f:[]];h&&t.push(CT),b.length&&t.push(wT),g&&t.push(ST);const v=function(e,t={}){return void 0!==t[e]?t[e]:void 0===t.default||t.default}(e,(0,d.useSelect)((e=>e(Nr).getSettings().blockInspectorTabs),[]));return v?t:zT}const{createPrivateSlotFill:FT}=ie(_l.privateApis),{Fill:HT,Slot:GT}=FT("BlockInformation"),UT=e=>y()[h]?(0,s.createElement)(HT,{...e}):null;UT.Slot=e=>(0,s.createElement)(GT,{...e});const $T=UT;function jT({clientIds:e}){return e.length?(0,s.createElement)(_l.__experimentalVStack,{spacing:1},e.map((e=>(0,s.createElement)(WT,{key:e,clientId:e})))):null}function WT({clientId:e}){const{name:t,icon:n,isSelected:o}=(0,d.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:o,isBlockSelected:r,hasSelectedInnerBlock:l}=t(Nr),{getBlockType:i}=t(c.store),s=i(n(e)),a=o(e);return{name:s&&(0,c.__experimentalGetBlockLabel)(s,a,"list-view"),icon:s?.icon,isSelected:r(e)||l(e,!0)}}),[e]),{selectBlock:r}=(0,d.useDispatch)(Nr);return(0,s.createElement)(_l.Button,{isPressed:o,onClick:()=>r(e)},(0,s.createElement)(_l.Flex,null,(0,s.createElement)(_l.FlexItem,null,(0,s.createElement)(qh,{icon:n})),(0,s.createElement)(_l.FlexBlock,{style:{textAlign:"left"}},(0,s.createElement)(_l.__experimentalTruncate,null,t))))}function KT({topLevelLockedBlock:e}){const t=(0,d.useSelect)((t=>{const{getClientIdsOfDescendants:n,getBlockName:o,getBlockEditingMode:r}=t(Nr);return n(e).filter((e=>"core/list-item"!==o(e)&&"contentOnly"===r(e)))}),[e]),n=ih(e);return(0,s.createElement)("div",{className:"block-editor-block-inspector"},(0,s.createElement)(P_,{...n,className:n.isSynced&&"is-synced"}),(0,s.createElement)(iB,{blockClientId:e}),(0,s.createElement)($T.Slot,null),t.length>0&&(0,s.createElement)(_l.PanelBody,{title:(0,x.__)("Content")},(0,s.createElement)(jT,{clientIds:t})))}const ZT=({animate:e,wrapper:t,children:n})=>e?t(n):n,qT=({blockInspectorAnimationSettings:e,selectedBlockClientId:t,children:n})=>{const o=e&&"leftToRight"===e.enterDirection?-50:50;return(0,s.createElement)(_l.__unstableMotion.div,{animate:{x:0,opacity:1,transition:{ease:"easeInOut",duration:.14}},initial:{x:o,opacity:0},key:t},n)},YT=({clientId:e,blockName:t})=>{const n=VT(t),o=n?.length>1,r=(0,d.useSelect)((e=>{const{getBlockStyles:n}=e(c.store),o=n(t);return o&&o.length>0}),[t]),l=ih(e),i=zu({blockName:t});return(0,s.createElement)("div",{className:"block-editor-block-inspector"},(0,s.createElement)(P_,{...l,className:l.isSynced&&"is-synced"}),(0,s.createElement)(iB,{blockClientId:e}),(0,s.createElement)($T.Slot,null),o&&(0,s.createElement)(DT,{hasBlockStyles:r,clientId:e,blockName:t,tabs:n}),!o&&(0,s.createElement)(s.Fragment,null,r&&(0,s.createElement)("div",null,(0,s.createElement)(_l.PanelBody,{title:(0,x.__)("Styles")},(0,s.createElement)(Ax,{clientId:e}),(0,c.hasBlockSupport)(t,"defaultStylePicker",!0)&&(0,s.createElement)(_T,{blockName:t}))),(0,s.createElement)(Bs.Slot,null),(0,s.createElement)(Bs.Slot,{group:"list"}),(0,s.createElement)(Bs.Slot,{group:"color",label:(0,x.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,s.createElement)(Bs.Slot,{group:"typography",label:(0,x.__)("Typography")}),(0,s.createElement)(Bs.Slot,{group:"dimensions",label:(0,x.__)("Dimensions")}),(0,s.createElement)(Bs.Slot,{group:"border",label:i}),(0,s.createElement)(Bs.Slot,{group:"styles"}),(0,s.createElement)(Bs.Slot,{group:"background",label:(0,x.__)("Background")}),(0,s.createElement)(IT,null),(0,s.createElement)("div",null,(0,s.createElement)(xT,null))),(0,s.createElement)(bT,{key:"back"}))},XT=({showNoBlockSelectedMessage:e=!0})=>{const{count:t,selectedBlockName:n,selectedBlockClientId:o,blockType:r,topLevelLockedBlock:l}=(0,d.useSelect)((e=>{const{getSelectedBlockClientId:t,getSelectedBlockCount:n,getBlockName:o,__unstableGetContentLockingParent:r,getTemplateLock:l}=e(Nr),i=t(),s=i&&o(i),a=s&&(0,c.getBlockType)(s);return{count:n(),selectedBlockClientId:i,selectedBlockName:s,blockType:a,topLevelLockedBlock:r(i)||("contentOnly"===l(i)||"core/block"===s?i:void 0)}}),[]),i=VT(r?.name),a=i?.length>1,u=function(e,t){return(0,d.useSelect)((t=>{if(e){const n=t(Nr).getSettings().blockInspectorAnimation,o=n?.animationParent,{getSelectedBlockClientId:r,getBlockParentsByBlockName:l}=t(Nr);return l(r(),o,!0)[0]||e.name===o?n?.[e.name]:null}return null}),[t,e])}(r,o),p=zu({blockName:n});if(t>1)return(0,s.createElement)("div",{className:"block-editor-block-inspector"},(0,s.createElement)(kT,null),a?(0,s.createElement)(DT,{tabs:i}):(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Bs.Slot,null),(0,s.createElement)(Bs.Slot,{group:"color",label:(0,x.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,s.createElement)(Bs.Slot,{group:"typography",label:(0,x.__)("Typography")}),(0,s.createElement)(Bs.Slot,{group:"dimensions",label:(0,x.__)("Dimensions")}),(0,s.createElement)(Bs.Slot,{group:"border",label:p}),(0,s.createElement)(Bs.Slot,{group:"styles"})));const m=n===(0,c.getUnregisteredTypeHandlerName)();return r&&o&&!m?l?(0,s.createElement)(KT,{topLevelLockedBlock:l}):(0,s.createElement)(ZT,{animate:u,wrapper:e=>(0,s.createElement)(qT,{blockInspectorAnimationSettings:u,selectedBlockClientId:o},e)},(0,s.createElement)(YT,{clientId:o,blockName:r.name})):e?(0,s.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},(0,x.__)("No block selected.")):null},QT=()=>(w()("__unstableUseClipboardHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),ly());function JT(e){return w()("CopyHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),(0,s.createElement)("div",{...e,ref:ly()})}const eM=()=>{};const tM=(0,u.forwardRef)((function({rootClientId:e,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r=!1,__experimentalInsertionIndex:l,__experimentalFilterValue:i,onSelect:a=eM,shouldFocusBlock:c=!1},u){const{destinationRootClientId:p}=(0,d.useSelect)((n=>{const{getBlockRootClientId:o}=n(Nr);return{destinationRootClientId:e||o(t)||void 0}}),[t,e]);return(0,s.createElement)(ew,{onSelect:a,rootClientId:p,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r,__experimentalInsertionIndex:l,__experimentalFilterValue:i,shouldFocusBlock:c,ref:u})}));function nM(){return w()("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in.",since:"5.8"}),null}const oM=-1!==window.navigator.userAgent.indexOf("Trident"),rM=new Set([zs.UP,zs.DOWN,zs.LEFT,zs.RIGHT]),lM=.75;function iM(){const e=(0,d.useSelect)((e=>e(Nr).hasSelectedBlock()),[]);return(0,p.useRefEffect)((t=>{if(!e)return;const{ownerDocument:n}=t,{defaultView:o}=n;let r,l,i;function s(){r||(r=o.requestAnimationFrame((()=>{p(),r=null})))}function a(e){l&&o.cancelAnimationFrame(l),l=o.requestAnimationFrame((()=>{c(e),l=null}))}function c({keyCode:e}){if(!m())return;const r=(0,As.computeCaretRect)(o);if(!r)return;if(!i)return void(i=r);if(rM.has(e))return void(i=r);const l=r.top-i.top;if(0===l)return;const s=(0,As.getScrollContainer)(t);if(!s)return;const a=s===n.body||s===n.documentElement,c=a?o.scrollY:s.scrollTop,u=a?0:s.getBoundingClientRect().top,d=a?i.top/o.innerHeight:(i.top-u)/(o.innerHeight-u);if(0===c&&d<lM&&function(){const e=t.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===n.activeElement}())return void(i=r);const p=a?o.innerHeight:s.clientHeight;i.top+i.height>u+p||i.top<u?i=r:a?o.scrollBy(0,l):s.scrollTop+=l}function u(){n.addEventListener("selectionchange",d)}function d(){n.removeEventListener("selectionchange",d),p()}function p(){m()&&(i=(0,As.computeCaretRect)(o))}function m(){return t.contains(n.activeElement)&&n.activeElement.isContentEditable}return o.addEventListener("scroll",s,!0),o.addEventListener("resize",s,!0),t.addEventListener("keydown",a),t.addEventListener("keyup",c),t.addEventListener("mousedown",u),t.addEventListener("touchstart",u),()=>{o.removeEventListener("scroll",s,!0),o.removeEventListener("resize",s,!0),t.removeEventListener("keydown",a),t.removeEventListener("keyup",c),t.removeEventListener("mousedown",u),t.removeEventListener("touchstart",u),n.removeEventListener("selectionchange",d),o.cancelAnimationFrame(r),o.cancelAnimationFrame(l)}}),[e])}const sM=oM?e=>e.children:function({children:e}){return(0,s.createElement)("div",{ref:iM(),className:"block-editor__typewriter"},e)},aM=(0,u.createContext)({});function cM({children:e,uniqueId:t,blockName:n=""}){const o=(0,u.useContext)(aM),{name:r}=y();n=n||r;const l=(0,u.useMemo)((()=>function(e,t,n){const o={...e,[t]:e[t]?new Set(e[t]):new Set};return o[t].add(n),o}(o,n,t)),[o,n,t]);return(0,s.createElement)(aM.Provider,{value:l},e)}function uM(e,t=""){const n=(0,u.useContext)(aM),{name:o}=y();return t=t||o,Boolean(n[t]?.has(e))}const dM=e=>(w()("wp.blockEditor.__experimentalRecursionProvider",{since:"6.5",alternative:"wp.blockEditor.RecursionProvider"}),(0,s.createElement)(cM,{...e})),pM=(...e)=>(w()("wp.blockEditor.__experimentalUseHasRecursion",{since:"6.5",alternative:"wp.blockEditor.useHasRecursion"}),uM(...e)),mM=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));function hM({title:e,help:t,actions:n=[],onClose:o}){return(0,s.createElement)(_l.__experimentalVStack,{className:"block-editor-inspector-popover-header",spacing:4},(0,s.createElement)(_l.__experimentalHStack,{alignment:"center"},(0,s.createElement)(_l.__experimentalHeading,{className:"block-editor-inspector-popover-header__heading",level:2,size:13},e),(0,s.createElement)(_l.__experimentalSpacer,null),n.map((({label:e,icon:t,onClick:n})=>(0,s.createElement)(_l.Button,{key:e,className:"block-editor-inspector-popover-header__action",label:e,icon:t,variant:!t&&"tertiary",onClick:n},!t&&e))),o&&(0,s.createElement)(_l.Button,{className:"block-editor-inspector-popover-header__action",label:(0,x.__)("Close"),icon:mM,onClick:o})),t&&(0,s.createElement)(_l.__experimentalText,null,t))}const gM=(0,u.forwardRef)((function({onClose:e,onChange:t,...n},o){return(0,s.createElement)("div",{ref:o,className:"block-editor-publish-date-time-picker"},(0,s.createElement)(hM,{title:(0,x.__)("Publish"),actions:[{label:(0,x.__)("Now"),onClick:()=>t?.(null)}],onClose:e}),(0,s.createElement)(_l.DateTimePicker,{startOfWeek:(0,uB.getSettings)().l10n.startOfWeek,onChange:t,...n}))})),fM=window.wp.commands,bM=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M19.75 9c0-1.257-.565-2.197-1.39-2.858-.797-.64-1.827-1.017-2.815-1.247-1.802-.42-3.703-.403-4.383-.396L11 4.5V6l.177-.001c.696-.006 2.416-.02 4.028.356.887.207 1.67.518 2.216.957.52.416.829.945.829 1.688 0 .592-.167.966-.407 1.23-.255.281-.656.508-1.236.674-1.19.34-2.82.346-4.607.346h-.077c-1.692 0-3.527 0-4.942.404-.732.209-1.424.545-1.935 1.108-.526.579-.796 1.33-.796 2.238 0 1.257.565 2.197 1.39 2.858.797.64 1.827 1.017 2.815 1.247 1.802.42 3.703.403 4.383.396L13 19.5h.714V22L18 18.5 13.714 15v3H13l-.177.001c-.696.006-2.416.02-4.028-.356-.887-.207-1.67-.518-2.216-.957-.52-.416-.829-.945-.829-1.688 0-.592.167-.966.407-1.23.255-.281.656-.508 1.237-.674 1.189-.34 2.819-.346 4.606-.346h.077c1.692 0 3.527 0 4.941-.404.732-.209 1.425-.545 1.936-1.108.526-.579.796-1.33.796-2.238z"})),vM=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"})),kM=(0,s.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(Z.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})),_M=()=>{const{replaceBlocks:e,multiSelect:t}=(0,d.useDispatch)(Nr),{blocks:n,clientIds:o,canRemove:r,possibleBlockTransformations:l}=(0,d.useSelect)((e=>{const{getBlockRootClientId:t,getBlockTransformItems:n,getSelectedBlockClientIds:o,getBlocksByClientId:r,canRemoveBlocks:l}=e(Nr),i=o(),s=r(i),a=t(i[0]);return{blocks:s,clientIds:i,possibleBlockTransformations:n(s,a),canRemove:l(i,a)}}),[]),i=1===n.length&&(0,c.isTemplatePart)(n[0]);function a(r){const l=(0,c.switchToBlockType)(n,r);var i;e(o,l),(i=l).length>1&&t(i[0].clientId,i[i.length-1].clientId)}const u=!!l.length&&r&&!i;if(!o||o.length<1||!u)return{isLoading:!1,commands:[]};return{isLoading:!1,commands:l.map((e=>{const{name:t,title:n,icon:o}=e;return{name:"core/block-editor/transform-to-"+t.replace("/","-"),label:(0,x.sprintf)((0,x.__)("Transform to %s"),n),icon:(0,s.createElement)(qh,{icon:o}),callback:({close:e})=>{a(t),e()}}}))}},yM=()=>{const{clientIds:e}=(0,d.useSelect)((e=>{const{getSelectedBlockClientIds:t}=e(Nr);return{clientIds:t()}}),[]),{getBlockRootClientId:t,canMoveBlocks:n,getBlockCount:o}=(0,d.useSelect)(Nr),{setBlockMovingClientId:r,setNavigationMode:l,selectBlock:i}=(0,d.useDispatch)(Nr);if(!e||e.length<1)return{isLoading:!1,commands:[]};const s=t(e[0]),a=[];return n(e,s)&&1!==o(s)&&a.push({name:"move-to",label:(0,x.__)("Move to"),callback:()=>{l(!0),i(e[0]),r(e[0])},icon:bM}),{isLoading:!1,commands:a.map((e=>({...e,name:"core/block-editor/action-"+e.name,callback:({close:t})=>{e.callback(),t()}})))}},EM=()=>{const{clientIds:e,isUngroupable:t,isGroupable:n}=(0,d.useSelect)((e=>{const{getSelectedBlockClientIds:t,isUngroupable:n,isGroupable:o}=e(Nr);return{clientIds:t(),isUngroupable:n(),isGroupable:o()}}),[]),{canInsertBlockType:o,getBlockRootClientId:r,getBlocksByClientId:l,canRemoveBlocks:i}=(0,d.useSelect)(Nr),{getDefaultBlockName:s,getGroupingBlockName:a}=(0,d.useSelect)(c.store),u=l(e),{removeBlocks:p,replaceBlocks:m,duplicateBlocks:h,insertAfterBlock:g,insertBeforeBlock:f}=(0,d.useDispatch)(Nr),b=()=>{if(!u.length)return;const t=a(),n=(0,c.switchToBlockType)(u,t);n&&m(e,n)},v=()=>{if(!u.length)return;const t=u[0].innerBlocks;t.length&&m(e,t)};if(!e||e.length<1)return{isLoading:!1,commands:[]};const k=r(e[0]),_=o(s(),k),y=u.every((e=>!!e&&(0,c.hasBlockSupport)(e.name,"multiple",!0)&&o(e.name,k))),E=i(e,k),w=[];return y&&w.push({name:"duplicate",label:(0,x.__)("Duplicate"),callback:()=>h(e,!0),icon:SS}),_&&w.push({name:"add-before",label:(0,x.__)("Add before"),callback:()=>{const t=Array.isArray(e)?e[0]:t;f(t)},icon:na},{name:"add-after",label:(0,x.__)("Add after"),callback:()=>{const t=Array.isArray(e)?e[e.length-1]:t;g(t)},icon:na}),n&&w.push({name:"Group",label:(0,x.__)("Group"),callback:b,icon:wC}),t&&w.push({name:"ungroup",label:(0,x.__)("Ungroup"),callback:v,icon:vM}),E&&w.push({name:"remove",label:(0,x.__)("Delete"),callback:()=>p(e,!0),icon:kM}),{isLoading:!1,commands:w.map((e=>({...e,name:"core/block-editor/action-"+e.name,callback:({close:t})=>{e.callback(),t()}})))}},wM=()=>{(0,fM.useCommandLoader)({name:"core/block-editor/blockTransforms",hook:_M}),(0,fM.useCommandLoader)({name:"core/block-editor/blockActions",hook:yM}),(0,fM.useCommandLoader)({name:"core/block-editor/blockQuickActions",hook:EM,context:"block-selection-edit"})},SM="isResuableBlocksrRenameHintVisible";function CM(){const e=(0,d.useSelect)((e=>{var t;return null===(t=e(Ws.store).get("core",SM))||void 0===t||t}),[]),t=(0,u.useRef)(),{set:n}=(0,d.useDispatch)(Ws.store);return e?(0,s.createElement)("div",{ref:t,className:"reusable-blocks-menu-items__rename-hint"},(0,s.createElement)("div",{className:"reusable-blocks-menu-items__rename-hint-content"},(0,x.__)("Reusable blocks are now synced patterns. A synced pattern will behave in exactly the same way as a reusable block.")),(0,s.createElement)(_l.Button,{className:"reusable-blocks-menu-items__rename-hint-dismiss",icon:TT,iconSize:"16",label:(0,x.__)("Dismiss hint"),onClick:()=>{const e=As.focus.tabbable.findPrevious(t.current);e?.focus(),n("core",SM,!1)},showTooltip:!1})):null}const xM={button:"wp-element-button",caption:"wp-element-caption"},BM=e=>xM[e]?xM[e]:"",IM=()=>"",TM={__experimentalBorder:"border",color:"color",spacing:"spacing",typography:"typography"};function MM(e){const t="var:";if(e?.startsWith?.(t)){return`var(--wp--${e.slice(4).split("|").join("--")})`}return e}function PM(e={},t,n){const{kebabCase:o}=ie(_l.privateApis);let r=[];return Object.keys(e).forEach((l=>{const i=t+o(l.replace("/","-")),s=e[l];if(s instanceof Object){const e=i+n;r=[...r,...PM(s,e,n)]}else r.push(`${i}: ${s}`)})),r}const RM=(e,t)=>{const n={};return Object.entries(e).forEach((([e,o])=>{if("root"===e||!t?.[e])return;const r="string"==typeof o;if(r||Object.entries(o).forEach((([o,r])=>{if("root"===o||!t?.[e][o])return;const l=NM({[e]:{[o]:t[e][o]}});n[r]=[...n[r]||[],...l],delete t[e][o]})),r||o.root){const l=r?o:o.root,i=NM({[e]:t[e]});n[l]=[...n[l]||[],...i],delete t[e]}})),n};function NM(e={},t="",n,o={},r=!0){const{kebabCase:l}=ie(_l.privateApis),i=qr===t,s=Object.entries(c.__EXPERIMENTAL_STYLE_PROPERTY).reduce(((t,[o,{value:r,properties:s,useEngine:a,rootOnly:c}])=>{if(c&&!i)return t;const u=r;if("elements"===u[0]||a)return t;const d=Wn(e,u);if("--wp--style--root--padding"===o&&("string"==typeof d||!n))return t;if(s&&"string"!=typeof d)Object.entries(s).forEach((e=>{const[n,o]=e;if(!Wn(d,[o],!1))return;const r=n.startsWith("--")?n:l(n);t.push(`${r}: ${MM(Wn(d,[o]))}`)}));else if(Wn(e,u,!1)){const n=o.startsWith("--")?o:l(o);t.push(`${n}: ${MM(Wn(e,u))}`)}return t}),[]);return(0,Ri.getCSSRules)(e).forEach((e=>{if(i&&(n||!r)&&e.key.startsWith("padding"))return;const t=e.key.startsWith("--")?e.key:l(e.key);let a=e.value;if("string"!=typeof a&&a?.ref){const e=a.ref.split(".");if(a=Wn(o,e),!a||a?.ref)return}"font-size"===t&&(a=Wr({size:a},Zr(o?.settings))),"aspect-ratio"===t&&s.push("min-height: unset"),s.push(`${t}: ${a}`)})),s}function LM({layoutDefinitions:e=Al,style:t,selector:n,hasBlockGapSupport:o,hasFallbackGapSupport:r,fallbackGapValue:l}){let i="",s=o?oi(t?.spacing?.blockGap):"";if(r&&(n===qr?s=s||"0.5em":!o&&l&&(s=l)),s&&e&&(Object.values(e).forEach((({className:e,name:t,spacingStyles:r})=>{(o||"flex"===t||"grid"===t)&&r?.length&&r.forEach((t=>{const r=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{r.push(`${e}: ${t||s}`)})),r.length){let l="";l=o?n===qr?`:where(${n} .${e})${t?.selector||""}`:`${n}-${e}${t?.selector||""}`:n===qr?`:where(.${e}${t?.selector||""})`:`:where(${n}.${e}${t?.selector||""})`,i+=`${l} { ${r.join("; ")}; }`}}))})),n===qr&&o&&(i+=`${n} { --wp--style--block-gap: ${s}; }`)),n===qr&&e){const t=["block","flex","grid"];Object.values(e).forEach((({className:e,displayMode:o,baseStyles:r})=>{o&&t.includes(o)&&(i+=`${n} .${e} { display:${o}; }`),r?.length&&r.forEach((t=>{const o=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{o.push(`${e}: ${t}`)})),o.length){i+=`${`${n} .${e}${t?.selector||""}`} { ${o.join("; ")}; }`}}))}))}return i}const AM=["border","color","dimensions","spacing","typography","filter","outline","shadow"];function OM(e){if(!e)return{};const t=Object.entries(e).filter((([e])=>AM.includes(e))).map((([e,t])=>[e,JSON.parse(JSON.stringify(t))]));return Object.fromEntries(t)}const DM=(e,t)=>{var n;const o=[];if(!e?.settings)return o;const r=e=>{let t={};return Yr.forEach((({path:n})=>{const o=Wn(e,n,!1);!1!==o&&(t=jn(t,n,o))})),t},l=r(e.settings),i=e.settings?.custom;return(Object.keys(l).length>0||i)&&o.push({presets:l,custom:i,selector:qr}),Object.entries(null!==(n=e.settings?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{const l=r(n),i=n.custom;(Object.keys(l).length>0||i)&&o.push({presets:l,custom:i,selector:t[e]?.selector})})),o},zM=(e,t)=>{const n=DM(e,t);let o="";return n.forEach((({presets:t,custom:n,selector:r})=>{const l=function(e={},t){const{kebabCase:n}=ie(_l.privateApis);return Yr.reduce(((o,{path:r,valueKey:l,valueFunc:i,cssVarInfix:s})=>{const a=Wn(e,r,[]);return["default","theme","custom"].forEach((e=>{a[e]&&a[e].forEach((e=>{l&&!i?o.push(`--wp--preset--${s}--${n(e.slug)}: ${e[l]}`):i&&"function"==typeof i&&o.push(`--wp--preset--${s}--${n(e.slug)}: ${i(e,t)}`)}))})),o}),[])}(t,e?.settings),i=PM(n,"--wp--custom--","--");i.length>0&&l.push(...i),l.length>0&&(o+=`${r}{${l.join(";")};}`)})),o},VM=(e,t,n,o,r=!1,l=!0)=>{const i=((e,t)=>{var n;const o=[];if(!e?.styles)return o;const r=OM(e.styles);return r&&o.push({styles:r,selector:qr}),Object.entries(c.__EXPERIMENTAL_ELEMENTS).forEach((([t,n])=>{e.styles?.elements?.[t]&&o.push({styles:e.styles?.elements?.[t],selector:n})})),Object.entries(null!==(n=e.styles?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{var r;const l=OM(n);if(n?.variations){const e={};Object.keys(n.variations).forEach((t=>{e[t]=OM(n.variations[t])})),l.variations=e}l&&t?.[e]?.selector&&o.push({duotoneSelector:t[e].duotoneSelector,fallbackGapValue:t[e].fallbackGapValue,hasLayoutSupport:t[e].hasLayoutSupport,selector:t[e].selector,styles:l,featureSelectors:t[e].featureSelectors,styleVariationSelectors:t[e].styleVariationSelectors}),Object.entries(null!==(r=n?.elements)&&void 0!==r?r:{}).forEach((([n,r])=>{r&&t?.[e]&&c.__EXPERIMENTAL_ELEMENTS[n]&&o.push({styles:r,selector:t[e]?.selector.split(",").map((e=>c.__EXPERIMENTAL_ELEMENTS[n].split(",").map((t=>e+" "+t)))).join(",")})}))})),o})(e,t),s=DM(e,t),a=e?.settings?.useRootPaddingAwareAlignments,{contentSize:u,wideSize:d}=e?.settings?.layout||{};let p="body {margin: 0;";if(u&&(p+=` --wp--style--global--content-size: ${u};`),d&&(p+=` --wp--style--global--wide-size: ${d};`),a&&l&&(p+="padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) }\n\t\t\t.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }\n\t\t\t.has-global-padding :where(.has-global-padding:not(.wp-block-block)) { padding-right: 0; padding-left: 0; }\n\t\t\t.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }\n\t\t\t.has-global-padding :where(.has-global-padding:not(.wp-block-block)) > .alignfull { margin-right: 0; margin-left: 0; }\n\t\t\t.has-global-padding > .alignfull:where(:not(.has-global-padding):not(.is-layout-flex):not(.is-layout-grid)) > :where(.wp-block:not(.alignfull),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }\n\t\t\t.has-global-padding :where(.has-global-padding) > .alignfull:where(:not(.has-global-padding)) > :where(.wp-block:not(.alignfull),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: 0; padding-left: 0;"),p+="}",i.forEach((({selector:t,duotoneSelector:i,styles:s,fallbackGapValue:c,hasLayoutSupport:u,featureSelectors:d,styleVariationSelectors:m})=>{if(d){const e=RM(d,s);Object.entries(e).forEach((([e,t])=>{if(t.length){const n=t.join(";");p+=`${e}{${n};}`}}))}if(m&&Object.entries(m).forEach((([t,n])=>{const o=s?.variations?.[t];if(o){if(d){const e=RM(d,o);Object.entries(e).forEach((([e,t])=>{if(t.length){const o=function(e,t){const n=e.split(","),o=[];return n.forEach((e=>{o.push(`${t.trim()}${e.trim()}`)})),o.join(", ")}(e,n),r=t.join(";");p+=`${o}{${r};}`}}))}const t=NM(o,n,a,e);t.length&&(p+=`${n}{${t.join(";")};}`)}})),i){const e={};s?.filter&&(e.filter=s.filter,delete s.filter);const t=NM(e);t.length&&(p+=`${i}{${t.join(";")};}`)}r||qr!==t&&!u||(p+=LM({style:s,selector:t,hasBlockGapSupport:n,hasFallbackGapSupport:o,fallbackGapValue:c}));const h=NM(s,t,a,e,l);h?.length&&(p+=`${t}{${h.join(";")};}`);const g=Object.entries(s).filter((([e])=>e.startsWith(":")));g?.length&&g.forEach((([e,n])=>{const o=NM(n);if(!o?.length)return;const r=`${t.split(",").map((t=>t+e)).join(",")}{${o.join(";")};}`;p+=r}))})),p+=".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",p+=".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",p+=".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }",n){const t=oi(e?.styles?.spacing?.blockGap)||"0.5em";p+=`:where(.wp-site-blocks) > * { margin-block-start: ${t}; margin-block-end: 0; }`,p+=":where(.wp-site-blocks) > :first-child:first-child { margin-block-start: 0; }",p+=":where(.wp-site-blocks) > :last-child:last-child { margin-block-end: 0; }"}return s.forEach((({selector:e,presets:t})=>{qr===e&&(e="");const n=function(e="*",t={}){const{kebabCase:n}=ie(_l.privateApis);return Yr.reduce(((o,{path:r,cssVarInfix:l,classes:i})=>{if(!i)return o;const s=Wn(t,r,[]);return["default","theme","custom"].forEach((t=>{s[t]&&s[t].forEach((({slug:t})=>{i.forEach((({classSuffix:r,propertyName:i})=>{const s=`.has-${n(t)}-${r}`,a=e.split(",").map((e=>`${e}${s}`)).join(","),c=`var(--wp--preset--${l}--${n(t)})`;o+=`${a}{${i}: ${c} !important;}`}))}))})),o}),"")}(e,t);n.length>0&&(p+=n)})),p};function FM(e,t){return DM(e,t).flatMap((({presets:e})=>function(e={}){return Yr.filter((e=>"duotone"===e.path.at(-1))).flatMap((t=>{const n=Wn(e,t.path,{});return["default","theme"].filter((e=>n[e])).flatMap((e=>n[e].map((e=>Um(`wp-duotone-${e.slug}`,e.colors))))).join("")}))}(e)))}const HM=(e,t)=>{const n={};return e.forEach((e=>{const o=e.name,r=$m(e);let l=$m(e,"filter.duotone");if(!l){const t=$m(e),n=(0,c.getBlockSupport)(e,"color.__experimentalDuotone",!1);l=n&&tl(t,n)}const i=!!e?.supports?.layout||!!e?.supports?.__experimentalLayout,s=e?.supports?.spacing?.blockGap?.__experimentalDefault,a=t(o),u={};a?.length&&a.forEach((e=>{const t=function(e,t){const n=`.is-style-${e}`;if(!t)return n;const o=/((?::\([^)]+\))?\s*)([^\s:]+)/,r=(e,t,o)=>t+o+n;return t.split(",").map((e=>e.replace(o,r))).join(",")}(e.name,r);u[e.name]=t}));const d=((e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;const n={root:t};return Object.entries(TM).forEach((([t,o])=>{const r=$m(e,t);r&&(n[o]=r)})),n})(e,r);n[o]={duotoneSelector:l,fallbackGapValue:s,featureSelectors:Object.keys(d).length?d:void 0,hasLayoutSupport:i,name:o,selector:r,styleVariationSelectors:Object.keys(u).length?u:void 0}})),n};function GM(e,t){let n="";return e.split("&").forEach((e=>{if(!e.includes("{"))n+=`${t}{${e.trim()}}`;else{const o=e.replace("}","").split("{");if(2!==o.length)return;const[r,l]=o,i=r.startsWith(" ")?tl(t,r):function(e,t){return e.includes(",")?e.split(",").map((e=>e+t)).join(","):e+t}(t,r);n+=`${i}{${l.trim()}}`}})),n}function UM(e={}){const[t]=sl("spacing.blockGap"),n=null!==t,o=!n,r=(0,d.useSelect)((e=>{const{getSettings:t}=e(Nr);return!!t().disableLayoutStyles})),l=(0,u.useContext)(bf),i=void 0!==l?.templateSlug,{getBlockStyles:s}=(0,d.useSelect)(c.store);return(0,u.useMemo)((()=>{var t;if(!e?.styles||!e?.settings)return[];const l=(a=e,a.styles?.blocks?.["core/separator"]&&a.styles?.blocks?.["core/separator"].color?.background&&!a.styles?.blocks?.["core/separator"].color?.text&&!a.styles?.blocks?.["core/separator"].border?.color?{...a,styles:{...a.styles,blocks:{...a.styles.blocks,"core/separator":{...a.styles.blocks["core/separator"],color:{...a.styles.blocks["core/separator"].color,text:a.styles?.blocks["core/separator"].color.background}}}}}:a);var a;const u=HM((0,c.getBlockTypes)(),s),d=zM(l,u),p=VM(l,u,n,o,r,i),m=FM(l,u),h=[{css:d,isGlobalStyles:!0},{css:p,isGlobalStyles:!0},{css:null!==(t=l.styles.css)&&void 0!==t?t:"",isGlobalStyles:!0},{assets:m,__unstableType:"svg",isGlobalStyles:!0}];return(0,c.getBlockTypes)().forEach((e=>{if(l.styles.blocks[e.name]?.css){const t=u[e.name].selector;h.push({css:GM(l.styles.blocks[e.name]?.css,t),isGlobalStyles:!0})}})),[h,l.settings]}),[n,o,e,r,i,s])}function $M(){const{merged:e}=(0,u.useContext)(ol);return UM(e)}function jM(e,t,n){return"core/image"===e&&n?.lightbox?.allowEditing||!!t?.lightbox}function WM({onChange:e,value:t,inheritedValue:n,panelId:o}){const r=()=>{e(void 0)};let l=!1;return n?.lightbox?.enabled&&(l=n.lightbox.enabled),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_l.__experimentalToolsPanel,{label:(0,x._x)("Settings","Image settings"),resetAll:r,panelId:o,dropdownMenuProps:Qr},(0,s.createElement)(_l.__experimentalToolsPanelItem,{hasValue:()=>!!t?.lightbox,label:(0,x.__)("Expand on click"),onDeselect:r,isShownByDefault:!0,panelId:o},(0,s.createElement)(_l.ToggleControl,{label:(0,x.__)("Expand on click"),checked:l,onChange:t=>{e({enabled:t})}}))))}function KM({value:e,onChange:t,inheritedValue:n=e}){const[o,r]=(0,u.useState)(null),l=n?.css;return(0,s.createElement)(_l.__experimentalVStack,{spacing:3},o&&(0,s.createElement)(_l.Notice,{status:"error",onRemove:()=>r(null)},o),(0,s.createElement)(_l.TextareaControl,{label:(0,x.__)("Additional CSS"),__nextHasNoMarginBottom:!0,value:l,onChange:n=>function(n){if(t({...e,css:n}),o){const[e]=yy([{css:n}],".editor-styles-wrapper");e&&r(null)}}(n),onBlur:function(e){if(!e?.target?.value)return void r(null);const[t]=yy([{css:e.target.value}],".editor-styles-wrapper");r(null===t?(0,x.__)("There is an error with your CSS structure."):null)},className:"block-editor-global-styles-advanced-panel__custom-css-input",spellCheck:!1}))}const ZM=new Map,qM=[],YM={caption:(0,x.__)("Caption"),link:(0,x.__)("Link"),button:(0,x.__)("Button"),heading:(0,x.__)("Heading"),h1:(0,x.__)("H1"),h2:(0,x.__)("H2"),h3:(0,x.__)("H3"),h4:(0,x.__)("H4"),h5:(0,x.__)("H5"),h6:(0,x.__)("H6"),"settings.color":(0,x.__)("Color"),"settings.typography":(0,x.__)("Typography"),"styles.color":(0,x.__)("Colors"),"styles.spacing":(0,x.__)("Spacing"),"styles.typography":(0,x.__)("Typography")},XM=function(e,t){var n,o,r=0;function l(){var l,i,s=n,a=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i<a;i++)if(s.args[i]!==arguments[i]){s=s.next;continue e}return s!==n&&(s===o&&(o=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(l=new Array(a),i=0;i<a;i++)l[i]=arguments[i];return s={args:l,val:e.apply(null,l)},n?(n.prev=s,s.next=n):o=s,r===t.maxSize?(o=o.prev).next=null:r++,n=s,s.val}return t=t||{},l.clear=function(){n=null,o=null,r=0},l}((()=>(0,c.getBlockTypes)().reduce(((e,{name:t,title:n})=>(e[t]=n,e)),{}))),QM=e=>null!==e&&"object"==typeof e;function JM(e,t,n=""){if(!QM(e)&&!QM(t))return e!==t?n.split(".").slice(0,2).join("."):void 0;e=QM(e)?e:{},t=QM(t)?t:{};const o=new Set([...Object.keys(e),...Object.keys(t)]);let r=[];for(const l of o){const o=n?n+"."+l:l,i=JM(e[l],t[l],o);i&&(r=r.concat(i))}return r}function eP(e,t){const n=JSON.stringify({next:e,previous:t});if(ZM.has(n))return ZM.get(n);const o=JM({styles:{color:e?.styles?.color,typography:e?.styles?.typography,spacing:e?.styles?.spacing},blocks:e?.styles?.blocks,elements:e?.styles?.elements,settings:e?.settings},{styles:{color:t?.styles?.color,typography:t?.styles?.typography,spacing:t?.styles?.spacing},blocks:t?.styles?.blocks,elements:t?.styles?.elements,settings:t?.settings});if(!o.length)return ZM.set(n,qM),qM;const r=[...new Set(o)].reduce(((e,t)=>{const n=function(e){if(YM[e])return YM[e];const t=e.split(".");if("blocks"===t?.[0]){const e=XM()?.[t[1]];return e||t[1]}return"elements"===t?.[0]?YM[t[1]]||t[1]:void 0}(t);return n&&e.push([t.split(".")[0],n]),e}),[]);return ZM.set(n,r),r}function tP(e,t,n={}){let o=eP(e,t);const r=o.length,{maxResults:l}=n;return r?(l&&r>l&&(o=o.slice(0,l)),Object.entries(o.reduce(((e,t)=>{const n=e[t[0]]||[];return n.includes(t[1])||(e[t[0]]=[...n,t[1]]),e}),{})).map((([e,t])=>{const n=t.length,o=t.join((0,x.__)(", "));switch(e){case"blocks":return(0,x.sprintf)((0,x._n)("%s block.","%s blocks.",n),o);case"elements":return(0,x.sprintf)((0,x._n)("%s element.","%s elements.",n),o);case"settings":return(0,x.sprintf)((0,x.__)("%s settings."),o);case"styles":return(0,x.sprintf)((0,x.__)("%s styles."),o);default:return(0,x.sprintf)((0,x.__)("%s."),o)}}))):qM}function nP(e,t,n){if(null==e||!1===e)return;if(Array.isArray(e))return oP(e,t,n);switch(typeof e){case"string":case"number":return}const{type:o,props:r}=e;switch(o){case u.StrictMode:case u.Fragment:return oP(r.children,t,n);case u.RawHTML:return;case Gw.Content:return rP(t,n);case VI:return void t.push(r.value)}switch(typeof o){case"string":return void 0!==r.children?oP(r.children,t,n):void 0;case"function":return nP(o.prototype&&"function"==typeof o.prototype.render?new o(r).render():o(r),t,n)}}function oP(e,...t){e=Array.isArray(e)?e:[e];for(let n=0;n<e.length;n++)nP(e[n],...t)}function rP(e,t){for(let n=0;n<t.length;n++){const{name:o,attributes:r,innerBlocks:l}=t[n];nP((0,c.getSaveElement)(o,r,(0,s.createElement)(Gw.Content,null)),e,l)}}const lP=[{value:"fill",label:(0,x._x)("Fill","Scale option for dimensions control"),help:(0,x.__)("Fill the space by stretching the content.")},{value:"contain",label:(0,x._x)("Contain","Scale option for dimensions control"),help:(0,x.__)("Fit the content to the space without clipping.")},{value:"cover",label:(0,x._x)("Cover","Scale option for dimensions control"),help:(0,x.__)("Fill the space by clipping what doesn't fit.")},{value:"none",label:(0,x._x)("None","Scale option for dimensions control"),help:(0,x.__)("Do not adjust the sizing of the content. Content that is too large will be clipped, and content that is too small will have additional padding.")},{value:"scale-down",label:(0,x._x)("Scale down","Scale option for dimensions control"),help:(0,x.__)("Scale down the content to fit the space if it is too big. Content that is too small will have additional padding.")}];function iP({panelId:e,value:t,onChange:n,options:o=lP,defaultValue:r=lP[0].value,isShownByDefault:l=!0}){const i=null!=t?t:"fill",a=(0,u.useMemo)((()=>o.reduce(((e,t)=>(e[t.value]=t.help,e)),{})),[o]);return(0,s.createElement)(_l.__experimentalToolsPanelItem,{label:(0,x.__)("Scale"),isShownByDefault:l,hasValue:()=>i!==r,onDeselect:()=>n(r),panelId:e},(0,s.createElement)(_l.__experimentalToggleGroupControl,{label:(0,x.__)("Scale"),isBlock:!0,help:a[i],value:i,onChange:n,size:"__unstable-large"},o.map((e=>(0,s.createElement)(_l.__experimentalToggleGroupControlOption,{key:e.value,...e})))))}function sP(){return sP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},sP.apply(this,arguments)}function aP(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var cP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,uP=aP((function(e){return cP.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var dP=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),pP=Math.abs,mP=String.fromCharCode,hP=Object.assign;function gP(e){return e.trim()}function fP(e,t,n){return e.replace(t,n)}function bP(e,t){return e.indexOf(t)}function vP(e,t){return 0|e.charCodeAt(t)}function kP(e,t,n){return e.slice(t,n)}function _P(e){return e.length}function yP(e){return e.length}function EP(e,t){return t.push(e),e}var wP=1,SP=1,CP=0,xP=0,BP=0,IP="";function TP(e,t,n,o,r,l,i){return{value:e,root:t,parent:n,type:o,props:r,children:l,line:wP,column:SP,length:i,return:""}}function MP(e,t){return hP(TP("",null,null,"",null,null,0),e,{length:-e.length},t)}function PP(){return BP=xP>0?vP(IP,--xP):0,SP--,10===BP&&(SP=1,wP--),BP}function RP(){return BP=xP<CP?vP(IP,xP++):0,SP++,10===BP&&(SP=1,wP++),BP}function NP(){return vP(IP,xP)}function LP(){return xP}function AP(e,t){return kP(IP,e,t)}function OP(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function DP(e){return wP=SP=1,CP=_P(IP=e),xP=0,[]}function zP(e){return IP="",e}function VP(e){return gP(AP(xP-1,GP(91===e?e+2:40===e?e+1:e)))}function FP(e){for(;(BP=NP())&&BP<33;)RP();return OP(e)>2||OP(BP)>3?"":" "}function HP(e,t){for(;--t&&RP()&&!(BP<48||BP>102||BP>57&&BP<65||BP>70&&BP<97););return AP(e,LP()+(t<6&&32==NP()&&32==RP()))}function GP(e){for(;RP();)switch(BP){case e:return xP;case 34:case 39:34!==e&&39!==e&&GP(BP);break;case 40:41===e&&GP(e);break;case 92:RP()}return xP}function UP(e,t){for(;RP()&&e+BP!==57&&(e+BP!==84||47!==NP()););return"/*"+AP(t,xP-1)+"*"+mP(47===e?e:RP())}function $P(e){for(;!OP(NP());)RP();return AP(e,xP)}var jP="-ms-",WP="-moz-",KP="-webkit-",ZP="comm",qP="rule",YP="decl",XP="@keyframes";function QP(e,t){for(var n="",o=yP(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function JP(e,t,n,o){switch(e.type){case"@import":case YP:return e.return=e.return||e.value;case ZP:return"";case XP:return e.return=e.value+"{"+QP(e.children,o)+"}";case qP:e.value=e.props.join(",")}return _P(n=QP(e.children,o))?e.return=e.value+"{"+n+"}":""}function eR(e){return zP(tR("",null,null,null,[""],e=DP(e),0,[0],e))}function tR(e,t,n,o,r,l,i,s,a){for(var c=0,u=0,d=i,p=0,m=0,h=0,g=1,f=1,b=1,v=0,k="",_=r,y=l,E=o,w=k;f;)switch(h=v,v=RP()){case 40:if(108!=h&&58==vP(w,d-1)){-1!=bP(w+=fP(VP(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=VP(v);break;case 9:case 10:case 13:case 32:w+=FP(h);break;case 92:w+=HP(LP()-1,7);continue;case 47:switch(NP()){case 42:case 47:EP(oR(UP(RP(),LP()),t,n),a);break;default:w+="/"}break;case 123*g:s[c++]=_P(w)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:f=0;case 59+u:m>0&&_P(w)-d&&EP(m>32?rR(w+";",o,n,d-1):rR(fP(w," ","")+";",o,n,d-2),a);break;case 59:w+=";";default:if(EP(E=nR(w,t,n,c,u,r,s,k,_=[],y=[],d),l),123===v)if(0===u)tR(w,t,E,E,_,l,d,s,y);else switch(99===p&&110===vP(w,3)?100:p){case 100:case 109:case 115:tR(e,E,E,o&&EP(nR(e,E,E,0,0,r,s,k,r,_=[],d),y),r,y,d,s,o?_:y);break;default:tR(w,E,E,E,[""],y,0,s,y)}}c=u=m=0,g=b=1,k=w="",d=i;break;case 58:d=1+_P(w),m=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==PP())continue;switch(w+=mP(v),v*g){case 38:b=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(_P(w)-1)*b,b=1;break;case 64:45===NP()&&(w+=VP(RP())),p=NP(),u=d=_P(k=w+=$P(LP())),v++;break;case 45:45===h&&2==_P(w)&&(g=0)}}return l}function nR(e,t,n,o,r,l,i,s,a,c,u){for(var d=r-1,p=0===r?l:[""],m=yP(p),h=0,g=0,f=0;h<o;++h)for(var b=0,v=kP(e,d+1,d=pP(g=i[h])),k=e;b<m;++b)(k=gP(g>0?p[b]+" "+v:fP(v,/&\f/g,p[b])))&&(a[f++]=k);return TP(e,t,n,0===r?qP:s,a,c,u)}function oR(e,t,n){return TP(e,t,n,ZP,mP(BP),kP(e,2,-2),0)}function rR(e,t,n,o){return TP(e,t,n,YP,kP(e,0,o),kP(e,o+1,-1),o)}var lR=function(e,t,n){for(var o=0,r=0;o=r,r=NP(),38===o&&12===r&&(t[n]=1),!OP(r);)RP();return AP(e,xP)},iR=function(e,t){return zP(function(e,t){var n=-1,o=44;do{switch(OP(o)){case 0:38===o&&12===NP()&&(t[n]=1),e[n]+=lR(xP-1,t,n);break;case 2:e[n]+=VP(o);break;case 4:if(44===o){e[++n]=58===NP()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=mP(o)}}while(o=RP());return e}(DP(e),t))},sR=new WeakMap,aR=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||sR.get(n))&&!o){sR.set(e,!0);for(var r=[],l=iR(t,r),i=n.props,s=0,a=0;s<l.length;s++)for(var c=0;c<i.length;c++,a++)e.props[a]=r[s]?l[s].replace(/&\f/g,i[c]):i[c]+" "+l[s]}}},cR=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function uR(e,t){switch(function(e,t){return 45^vP(e,0)?(((t<<2^vP(e,0))<<2^vP(e,1))<<2^vP(e,2))<<2^vP(e,3):0}(e,t)){case 5103:return KP+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return KP+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return KP+e+WP+e+jP+e+e;case 6828:case 4268:return KP+e+jP+e+e;case 6165:return KP+e+jP+"flex-"+e+e;case 5187:return KP+e+fP(e,/(\w+).+(:[^]+)/,KP+"box-$1$2"+jP+"flex-$1$2")+e;case 5443:return KP+e+jP+"flex-item-"+fP(e,/flex-|-self/,"")+e;case 4675:return KP+e+jP+"flex-line-pack"+fP(e,/align-content|flex-|-self/,"")+e;case 5548:return KP+e+jP+fP(e,"shrink","negative")+e;case 5292:return KP+e+jP+fP(e,"basis","preferred-size")+e;case 6060:return KP+"box-"+fP(e,"-grow","")+KP+e+jP+fP(e,"grow","positive")+e;case 4554:return KP+fP(e,/([^-])(transform)/g,"$1"+KP+"$2")+e;case 6187:return fP(fP(fP(e,/(zoom-|grab)/,KP+"$1"),/(image-set)/,KP+"$1"),e,"")+e;case 5495:case 3959:return fP(e,/(image-set\([^]*)/,KP+"$1$`$1");case 4968:return fP(fP(e,/(.+:)(flex-)?(.*)/,KP+"box-pack:$3"+jP+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+KP+e+e;case 4095:case 3583:case 4068:case 2532:return fP(e,/(.+)-inline(.+)/,KP+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_P(e)-1-t>6)switch(vP(e,t+1)){case 109:if(45!==vP(e,t+4))break;case 102:return fP(e,/(.+:)(.+)-([^]+)/,"$1"+KP+"$2-$3$1"+WP+(108==vP(e,t+3)?"$3":"$2-$3"))+e;case 115:return~bP(e,"stretch")?uR(fP(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==vP(e,t+1))break;case 6444:switch(vP(e,_P(e)-3-(~bP(e,"!important")&&10))){case 107:return fP(e,":",":"+KP)+e;case 101:return fP(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+KP+(45===vP(e,14)?"inline-":"")+"box$3$1"+KP+"$2$3$1"+jP+"$2box$3")+e}break;case 5936:switch(vP(e,t+11)){case 114:return KP+e+jP+fP(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return KP+e+jP+fP(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return KP+e+jP+fP(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return KP+e+jP+e+e}return e}var dR=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case YP:e.return=uR(e.value,e.length);break;case XP:return QP([MP(e,{value:fP(e.value,"@","@"+KP)})],o);case qP:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return QP([MP(e,{props:[fP(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return QP([MP(e,{props:[fP(t,/:(plac\w+)/,":"+KP+"input-$1")]}),MP(e,{props:[fP(t,/:(plac\w+)/,":-moz-$1")]}),MP(e,{props:[fP(t,/:(plac\w+)/,jP+"input-$1")]})],o)}return""}))}}];const pR=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||dR;var r,l,i={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)}));var a,c,u,d,p=[JP,(d=function(e){a.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],m=(c=[aR,cR].concat(o,p),u=yP(c),function(e,t,n,o){for(var r="",l=0;l<u;l++)r+=c[l](e,t,n,o)||"";return r});l=function(e,t,n,o){a=n,function(e){QP(eR(e),m)}(e?e+"{"+t.styles+"}":t.styles),o&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new dP({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:l};return h.sheet.hydrate(s),h};const mR=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const hR={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function gR(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var fR=/[A-Z]|^ms/g,bR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vR=function(e){return 45===e.charCodeAt(1)},kR=function(e){return null!=e&&"boolean"!=typeof e},_R=gR((function(e){return vR(e)?e:e.replace(fR,"-$&").toLowerCase()})),yR=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(bR,(function(e,t,n){return wR={name:t,styles:n,next:wR},t}))}return 1===hR[e]||vR(e)||"number"!=typeof t||0===t?t:t+"px"};function ER(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return wR={name:n.name,styles:n.styles,next:wR},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)wR={name:o.name,styles:o.styles,next:wR},o=o.next;return n.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=ER(e,t,n[r])+";";else for(var l in n){var i=n[l];if("object"!=typeof i)null!=t&&void 0!==t[i]?o+=l+"{"+t[i]+"}":kR(i)&&(o+=_R(l)+":"+yR(l,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=ER(e,t,i);switch(l){case"animation":case"animationName":o+=_R(l)+":"+s+";";break;default:o+=l+"{"+s+"}"}}else for(var a=0;a<i.length;a++)kR(i[a])&&(o+=_R(l)+":"+yR(l,i[a])+";")}return o}(e,t,n);case"function":if(void 0!==e){var r=wR,l=n(e);return wR=r,ER(e,t,l)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var wR,SR=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var CR=!!s.useInsertionEffect&&s.useInsertionEffect,xR=CR||function(e){return e()},BR=(0,s.createContext)("undefined"!=typeof HTMLElement?pR({key:"css"}):null);BR.Provider;var IR=function(e){return(0,s.forwardRef)((function(t,n){var o=(0,s.useContext)(BR);return e(t,o,n)}))},TR=(0,s.createContext)({});var MR=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},PR=uP,RR=function(e){return"theme"!==e},NR=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?PR:RR},LR=function(e,t,n){var o;if(t){var r=t.shouldForwardProp;o=e.__emotion_forwardProp&&r?function(t){return e.__emotion_forwardProp(t)&&r(t)}:r}return"function"!=typeof o&&n&&(o=e.__emotion_forwardProp),o},AR=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;MR(t,n,o);xR((function(){return function(e,t,n){MR(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,n,o)}));return null};const OR=function e(t,n){var o,r,l=t.__emotion_real===t,i=l&&t.__emotion_base||t;void 0!==n&&(o=n.label,r=n.target);var a=LR(t,n,l),c=a||NR(i),u=!c("as");return function(){var d=arguments,p=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&p.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{0,p.push(d[0][0]);for(var m=d.length,h=1;h<m;h++)p.push(d[h],d[0][h])}var g=IR((function(e,t,n){var o=u&&e.as||i,l="",d=[],m=e;if(null==e.theme){for(var h in m={},e)m[h]=e[h];m.theme=(0,s.useContext)(TR)}"string"==typeof e.className?l=function(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):o+=n+" "})),o}(t.registered,d,e.className):null!=e.className&&(l=e.className+" ");var g=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,r="";wR=void 0;var l=e[0];null==l||void 0===l.raw?(o=!1,r+=ER(n,t,l)):r+=l[0];for(var i=1;i<e.length;i++)r+=ER(n,t,e[i]),o&&(r+=l[i]);SR.lastIndex=0;for(var s,a="";null!==(s=SR.exec(r));)a+="-"+s[1];return{name:mR(r)+a,styles:r,next:wR}}(p.concat(d),t.registered,m);l+=t.key+"-"+g.name,void 0!==r&&(l+=" "+r);var f=u&&void 0===a?NR(o):c,b={};for(var v in e)u&&"as"===v||f(v)&&(b[v]=e[v]);return b.className=l,b.ref=n,(0,s.createElement)(s.Fragment,null,(0,s.createElement)(AR,{cache:t,serialized:g,isStringTag:"string"==typeof o}),(0,s.createElement)(o,b))}));return g.displayName=void 0!==o?o:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=i,g.__emotion_styles=p,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return"."+r}}),g.withComponent=function(t,o){return e(t,sP({},n,o,{shouldForwardProp:LR(g,o,!0)})).apply(void 0,p)},g}};const DR=OR(_l.__experimentalToolsPanelItem,{target:"ef8pe3d0"})({name:"957xgf",styles:"grid-column:span 1"});function zR({panelId:e,value:t={},onChange:n=(()=>{}),units:o,isShownByDefault:r=!0}){var l,i;const a="auto"===t.width?"":null!==(l=t.width)&&void 0!==l?l:"",c="auto"===t.height?"":null!==(i=t.height)&&void 0!==i?i:"",u=e=>o=>{const r={...t};o?r[e]=o:delete r[e],n(r)};return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(DR,{label:(0,x.__)("Width"),isShownByDefault:r,hasValue:()=>""!==a,onDeselect:u("width"),panelId:e},(0,s.createElement)(_l.__experimentalUnitControl,{label:(0,x.__)("Width"),placeholder:(0,x.__)("Auto"),labelPosition:"top",units:o,min:0,value:a,onChange:u("width"),size:"__unstable-large"})),(0,s.createElement)(DR,{label:(0,x.__)("Height"),isShownByDefault:r,hasValue:()=>""!==c,onDeselect:u("height"),panelId:e},(0,s.createElement)(_l.__experimentalUnitControl,{label:(0,x.__)("Height"),placeholder:(0,x.__)("Auto"),labelPosition:"top",units:o,min:0,value:c,onChange:u("height"),size:"__unstable-large"})))}const VR=function({panelId:e,value:t={},onChange:n=(()=>{}),aspectRatioOptions:o,defaultAspectRatio:r="auto",scaleOptions:l,defaultScale:i="fill",unitsOptions:a}){const c=void 0===t.width||"auto"===t.width?null:t.width,d=void 0===t.height||"auto"===t.height?null:t.height,p=void 0===t.aspectRatio||"auto"===t.aspectRatio?null:t.aspectRatio,m=void 0===t.scale||"fill"===t.scale?null:t.scale,[h,g]=(0,u.useState)(m),[f,b]=(0,u.useState)(p),v=c&&d?"custom":f,k=p||c&&d;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Qp,{panelId:e,options:o,defaultValue:r,value:v,onChange:e=>{const o={...t};b(e="auto"===e?null:e),e?o.aspectRatio=e:delete o.aspectRatio,e?h?o.scale=h:(o.scale=i,g(i)):delete o.scale,"custom"!==e&&c&&d&&delete o.height,n(o)}}),(0,s.createElement)(zR,{panelId:e,units:a,value:{width:c,height:d},onChange:({width:e,height:o})=>{const r={...t};o="auto"===o?null:o,(e="auto"===e?null:e)?r.width=e:delete r.width,o?r.height=o:delete r.height,e&&o?delete r.aspectRatio:f&&(r.aspectRatio=f),f||!!e==!!o?h?r.scale=h:(r.scale=i,g(i)):delete r.scale,n(r)}}),k&&(0,s.createElement)(iP,{panelId:e,options:l,defaultValue:i,value:h,onChange:e=>{const o={...t};g(e="fill"===e?null:e),e?o.scale=e:delete o.scale,n(o)}}))},FR=[{label:(0,x._x)("Thumbnail","Image size option for resolution control"),value:"thumbnail"},{label:(0,x._x)("Medium","Image size option for resolution control"),value:"medium"},{label:(0,x._x)("Large","Image size option for resolution control"),value:"large"},{label:(0,x._x)("Full Size","Image size option for resolution control"),value:"full"}];const HR={};le(HR,{...i,ExperimentalBlockCanvas:jC,ExperimentalBlockEditorProvider:z_,getDuotoneFilter:Um,getRichTextValues:function(e=[]){c.__unstableGetBlockProps.skipFilters=!0;const t=[];return rP(t,e),c.__unstableGetBlockProps.skipFilters=!1,t.map((e=>e instanceof Y.RichTextData?e:Y.RichTextData.fromHTMLString(e)))},PrivateInserter:rw,PrivateQuickInserter:tw,PrivateListView:Tx,ResizableBoxPopover:function({clientId:e,resizableBoxProps:t,...n}){return(0,s.createElement)(fm,{clientId:e,__unstableCoverTarget:!0,__unstablePopoverSlot:"__unstable-block-tools-after",shift:!1,...n},(0,s.createElement)(_l.ResizableBox,{...t}))},BlockInfo:$T,useCanBlockToolbarBeFocused:function(){return(0,d.useSelect)((e=>{const{__unstableGetEditorMode:t,getBlock:n,getSettings:o,getSelectedBlockClientId:r,getFirstMultiSelectedBlockClientId:l}=ie(e(Nr)),i=l()||r(),s=(0,c.isUnmodifiedDefaultBlock)(n(i)||{});return!!i&&(o().hasFixedToolbar||"edit"===t()&&!s)}),[])},cleanEmptyObject:hl,useStyleOverride:bl,BlockQuickNavigation:jT,LayoutStyle:function({layout:e={},css:t,...n}){const o=Vi(e.type),[r]=Ar("spacing.blockGap"),l=null!==r;if(o){if(t)return(0,s.createElement)("style",null,t);const r=o.getLayoutStyle?.({hasBlockGapSupport:l,layout:e,...n});if(r)return(0,s.createElement)("style",null,r)}return null},BlockRemovalWarningModal:function({rules:e}){const{clientIds:t,selectPrevious:n,blockNamesForPrompt:o,messageType:r}=(0,d.useSelect)((e=>ie(e(Nr)).getRemovalPromptData())),{clearBlockRemovalPrompt:l,setBlockRemovalRules:i,privateRemoveBlocks:a}=ie((0,d.useDispatch)(Nr));if((0,u.useEffect)((()=>(i(e),()=>{i()})),[e,i]),!o)return;const c="templates"===r?(0,x._n)("Deleting this block will stop your post or page content from displaying on this template. It is not recommended.","Deleting these blocks will stop your post or page content from displaying on this template. It is not recommended.",o.length):(0,x._n)("Deleting this block could break patterns on your site that have content linked to it. Are you sure you want to delete it?","Deleting these blocks could break patterns on your site that have content linked to them. Are you sure you want to delete them?",o.length);return(0,s.createElement)(_l.Modal,{title:(0,x.__)("Be careful!"),onRequestClose:l,size:"medium"},(0,s.createElement)("p",null,c),(0,s.createElement)(_l.__experimentalHStack,{justify:"right"},(0,s.createElement)(_l.Button,{variant:"tertiary",onClick:l},(0,x.__)("Cancel")),(0,s.createElement)(_l.Button,{variant:"primary",onClick:()=>{a(t,n,!0),l()}},(0,x.__)("Delete"))))},useLayoutClasses:yh,useLayoutStyles:function(e={},t,n){const{layout:o={},style:r={}}=e,l=o?.inherit||o?.contentSize||o?.wideSize?{...o,type:"constrained"}:o||{},i=Vi(l?.type||"default"),[s]=Ar("spacing.blockGap"),a=null!==s,c=i?.getLayoutStyle?.({blockName:t,selector:n,layout:o,style:r,hasBlockGapSupport:a});return c},DimensionsTool:VR,ResolutionTool:function({panelId:e,value:t,onChange:n,options:o=FR,defaultValue:r=FR[0].value,isShownByDefault:l=!0}){const i=null!=t?t:r;return(0,s.createElement)(_l.__experimentalToolsPanelItem,{hasValue:()=>i!==r,label:(0,x.__)("Resolution"),onDeselect:()=>n(r),isShownByDefault:l,panelId:e},(0,s.createElement)(_l.SelectControl,{label:(0,x.__)("Resolution"),value:i,options:o,onChange:n,help:(0,x.__)("Select the size of the source image."),size:"__unstable-large"}))},ReusableBlocksRenameHint:CM,useReusableBlocksRenameHint:function(){return(0,d.useSelect)((e=>{var t;return null===(t=e(Ws.store).get("core",SM))||void 0===t||t}),[])},usesContextKey:OI,useFlashEditableBlocks:__,selectBlockPatternsKey:X,requiresWrapperOnCopy:ny,PrivateRichText:$I})})(),(window.wp=window.wp||{}).blockEditor=o})(); \ No newline at end of file
+ */,e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,s=n in document;if(!s){var i=document.createElement("div");i.setAttribute(n,"return;"),s="function"==typeof i[n]}return!s&&o&&"wheel"===e&&(s=document.implementation.hasFeature("Events.wheel","3.0")),s}},7191:(e,t,n)=>{"use strict";var o=n(2213),r=n(1087);function s(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(1==e.deltaMode?(o*=40,r*=40):(o*=800,r*=800)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}}s.getEventType=function(){return o.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=s},2775:e=>{var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},4465:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8036:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n(4465);const r=o(n(4529)),s=o(n(3576));e.exports=(0,s.default)(r.default)},5525:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prefixWrapCSSSelector=t.prefixWrapCSSRule=void 0;const o=n(3467);t.prefixWrapCSSRule=(e,n,r,s,i)=>{const l=e.selector.split(",").filter((e=>!(0,o.cssRuleMatchesPrefixSelector)({selector:e},s)));0!==l.length&&(e.selector=l.map((o=>(0,t.prefixWrapCSSSelector)(o,e,n,r,s,i))).filter(o.isValidCSSSelector).join(", "))};t.prefixWrapCSSSelector=(e,t,n,r,s,i)=>{const l=(0,o.cleanSelector)(e);return""===l?null:null!==n&&l.startsWith(n,0)||(0,o.isKeyframes)(t)||r.some((e=>l.match(e)))?l:(0,o.isNotRootTag)(l)?s+" "+l:i?s+" ."+l:l.replace(/^(body|html|:root)/,s)}},3467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cssRuleMatchesPrefixSelector=t.isNotRootTag=t.isKeyframes=t.cleanSelector=t.isValidCSSSelector=void 0;const n=/(^\s*|\s*$)/g,o=/^(body|html|:root).*$/;t.isValidCSSSelector=e=>null!==e;t.cleanSelector=e=>e.replace(n,"");t.isKeyframes=e=>{const{parent:t}=e,n=t;return void 0!==t&&"atrule"===n.type&&void 0!==n.name&&null!==n.name.match(/keyframes$/)};t.isNotRootTag=e=>!e.match(o);t.cssRuleMatchesPrefixSelector=(e,t)=>{const n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`^${n}$`).test(e.selector)}},9411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldIncludeFilePath=void 0;t.shouldIncludeFilePath=(e,t,n)=>t.length>0?null!=e&&t.some((t=>e.match(t))):!(n.length>0)||!(null!=e&&n.some((t=>e.match(t))))},8061:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.asPostCSSv7PluginGenerator=void 0;const i=s(n(1311));t.asPostCSSv7PluginGenerator=e=>e.plugin(i.PLUGIN_NAME,((e,t)=>new i.default(e,t).prefix()))},2888:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.asPostCSSv8PluginGenerator=t.isPostCSSv8=void 0;const i=s(n(1311));t.isPostCSSv8=e=>void 0!==e.Root;t.asPostCSSv8PluginGenerator=()=>(e,t)=>{const n=new i.default(e,t);return{postcssPlugin:i.PLUGIN_NAME,Once(e){n.prefixRoot(e)}}}},3576:(e,t,n)=>{"use strict";const o=n(2888),r=n(8061);e.exports=e=>(0,o.isPostCSSv8)(e)?(0,o.asPostCSSv8PluginGenerator)():(0,r.asPostCSSv7PluginGenerator)(e)},1311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PLUGIN_NAME=void 0;const o=n(5525),r=n(9411);t.PLUGIN_NAME="postcss-prefixwrap";t.default=class{blacklist;ignoredSelectors;isPrefixSelector;prefixRootTags;prefixSelector;whitelist;nested;constructor(e,t={}){this.blacklist=t.blacklist??[],this.ignoredSelectors=t.ignoredSelectors??[],this.isPrefixSelector=new RegExp(`^${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`),this.prefixRootTags=t.prefixRootTags??!1,this.prefixSelector=e,this.whitelist=t.whitelist??[],this.nested=t.nested??null}prefixRoot(e){(0,r.shouldIncludeFilePath)(e.source?.input?.file,this.whitelist,this.blacklist)&&e.walkRules((e=>{(0,o.prefixWrapCSSRule)(e,this.nested,this.ignoredSelectors,this.prefixSelector,this.prefixRootTags)}))}prefix(){return e=>{this.prefixRoot(e)}}}},5404:(e,t,n)=>{const o=n(1544);e.exports=e=>{const t=Object.assign({skipHostRelativeUrls:!0},e);return{postcssPlugin:"rebaseUrl",Declaration(n){const r=o(n.value);let s=!1;r.walk((n=>{if("function"!==n.type||"url"!==n.value)return;const o=n.nodes[0].value,r=new URL(o,e.rootUrl);return r.pathname===o&&t.skipHostRelativeUrls||(n.nodes[0].value=r.toString(),s=!0),!1})),s&&(n.value=o.stringify(r))}}},e.exports.postcss=!0},1544:(e,t,n)=>{var o=n(8491),r=n(3815),s=n(4725);function i(e){return this instanceof i?(this.nodes=o(e),this):new i(e)}i.prototype.toString=function(){return Array.isArray(this.nodes)?s(this.nodes):""},i.prototype.walk=function(e,t){return r(this.nodes,e,t),this},i.unit=n(1524),i.walk=r,i.stringify=s,e.exports=i},8491:e=>{var t="(".charCodeAt(0),n=")".charCodeAt(0),o="'".charCodeAt(0),r='"'.charCodeAt(0),s="\\".charCodeAt(0),i="/".charCodeAt(0),l=",".charCodeAt(0),a=":".charCodeAt(0),c="*".charCodeAt(0),u="u".charCodeAt(0),d="U".charCodeAt(0),p="+".charCodeAt(0),h=/^[a-f0-9?-]+$/i;e.exports=function(e){for(var g,m,f,b,v,k,_,x,y,S=[],w=e,C=0,B=w.charCodeAt(C),I=w.length,j=[{nodes:S}],E=0,T="",M="",P="";C<I;)if(B<=32){g=C;do{g+=1,B=w.charCodeAt(g)}while(B<=32);b=w.slice(C,g),f=S[S.length-1],B===n&&E?P=b:f&&"div"===f.type?(f.after=b,f.sourceEndIndex+=b.length):B===l||B===a||B===i&&w.charCodeAt(g+1)!==c&&(!y||y&&"function"===y.type&&"calc"!==y.value)?M=b:S.push({type:"space",sourceIndex:C,sourceEndIndex:g,value:b}),C=g}else if(B===o||B===r){g=C,b={type:"string",sourceIndex:C,quote:m=B===o?"'":'"'};do{if(v=!1,~(g=w.indexOf(m,g+1)))for(k=g;w.charCodeAt(k-1)===s;)k-=1,v=!v;else g=(w+=m).length-1,b.unclosed=!0}while(v);b.value=w.slice(C+1,g),b.sourceEndIndex=b.unclosed?g:g+1,S.push(b),C=g+1,B=w.charCodeAt(C)}else if(B===i&&w.charCodeAt(C+1)===c)b={type:"comment",sourceIndex:C,sourceEndIndex:(g=w.indexOf("*/",C))+2},-1===g&&(b.unclosed=!0,g=w.length,b.sourceEndIndex=g),b.value=w.slice(C+2,g),S.push(b),C=g+2,B=w.charCodeAt(C);else if(B!==i&&B!==c||!y||"function"!==y.type||"calc"!==y.value)if(B===i||B===l||B===a)b=w[C],S.push({type:"div",sourceIndex:C-M.length,sourceEndIndex:C+b.length,value:b,before:M,after:""}),M="",C+=1,B=w.charCodeAt(C);else if(t===B){g=C;do{g+=1,B=w.charCodeAt(g)}while(B<=32);if(x=C,b={type:"function",sourceIndex:C-T.length,value:T,before:w.slice(x+1,g)},C=g,"url"===T&&B!==o&&B!==r){g-=1;do{if(v=!1,~(g=w.indexOf(")",g+1)))for(k=g;w.charCodeAt(k-1)===s;)k-=1,v=!v;else g=(w+=")").length-1,b.unclosed=!0}while(v);_=g;do{_-=1,B=w.charCodeAt(_)}while(B<=32);x<_?(b.nodes=C!==_+1?[{type:"word",sourceIndex:C,sourceEndIndex:_+1,value:w.slice(C,_+1)}]:[],b.unclosed&&_+1!==g?(b.after="",b.nodes.push({type:"space",sourceIndex:_+1,sourceEndIndex:g,value:w.slice(_+1,g)})):(b.after=w.slice(_+1,g),b.sourceEndIndex=g)):(b.after="",b.nodes=[]),C=g+1,b.sourceEndIndex=b.unclosed?g:C,B=w.charCodeAt(C),S.push(b)}else E+=1,b.after="",b.sourceEndIndex=C+1,S.push(b),j.push(b),S=b.nodes=[],y=b;T=""}else if(n===B&&E)C+=1,B=w.charCodeAt(C),y.after=P,y.sourceEndIndex+=P.length,P="",E-=1,j[j.length-1].sourceEndIndex=C,j.pop(),S=(y=j[E]).nodes;else{g=C;do{B===s&&(g+=1),g+=1,B=w.charCodeAt(g)}while(g<I&&!(B<=32||B===o||B===r||B===l||B===a||B===i||B===t||B===c&&y&&"function"===y.type&&"calc"===y.value||B===i&&"function"===y.type&&"calc"===y.value||B===n&&E));b=w.slice(C,g),t===B?T=b:u!==b.charCodeAt(0)&&d!==b.charCodeAt(0)||p!==b.charCodeAt(1)||!h.test(b.slice(2))?S.push({type:"word",sourceIndex:C,sourceEndIndex:g,value:b}):S.push({type:"unicode-range",sourceIndex:C,sourceEndIndex:g,value:b}),C=g}else b=w[C],S.push({type:"word",sourceIndex:C-M.length,sourceEndIndex:C+b.length,value:b}),C+=1,B=w.charCodeAt(C);for(C=j.length-1;C;C-=1)j[C].unclosed=!0,j[C].sourceEndIndex=w.length;return j[0].nodes}},4725:e=>{function t(e,t){var o,r,s=e.type,i=e.value;return t&&void 0!==(r=t(e))?r:"word"===s||"space"===s?i:"string"===s?(o=e.quote||"")+i+(e.unclosed?"":o):"comment"===s?"/*"+i+(e.unclosed?"":"*/"):"div"===s?(e.before||"")+i+(e.after||""):Array.isArray(e.nodes)?(o=n(e.nodes,t),"function"!==s?o:i+"("+(e.before||"")+o+(e.after||"")+(e.unclosed?"":")")):i}function n(e,n){var o,r;if(Array.isArray(e)){for(o="",r=e.length-1;~r;r-=1)o=t(e[r],n)+o;return o}return t(e,n)}e.exports=n},1524:e=>{var t="-".charCodeAt(0),n="+".charCodeAt(0),o=".".charCodeAt(0),r="e".charCodeAt(0),s="E".charCodeAt(0);e.exports=function(e){var i,l,a,c=0,u=e.length;if(0===u||!function(e){var r,s=e.charCodeAt(0);if(s===n||s===t){if((r=e.charCodeAt(1))>=48&&r<=57)return!0;var i=e.charCodeAt(2);return r===o&&i>=48&&i<=57}return s===o?(r=e.charCodeAt(1))>=48&&r<=57:s>=48&&s<=57}(e))return!1;for((i=e.charCodeAt(c))!==n&&i!==t||c++;c<u&&!((i=e.charCodeAt(c))<48||i>57);)c+=1;if(i=e.charCodeAt(c),l=e.charCodeAt(c+1),i===o&&l>=48&&l<=57)for(c+=2;c<u&&!((i=e.charCodeAt(c))<48||i>57);)c+=1;if(i=e.charCodeAt(c),l=e.charCodeAt(c+1),a=e.charCodeAt(c+2),(i===r||i===s)&&(l>=48&&l<=57||(l===n||l===t)&&a>=48&&a<=57))for(c+=l===n||l===t?3:2;c<u&&!((i=e.charCodeAt(c))<48||i>57);)c+=1;return{number:e.slice(0,c),unit:e.slice(c)}}},3815:e=>{e.exports=function e(t,n,o){var r,s,i,l;for(r=0,s=t.length;r<s;r+=1)i=t[r],o||(l=n(i,r,t)),!1!==l&&"function"===i.type&&Array.isArray(i.nodes)&&e(i.nodes,n,o),o&&n(i,r,t)}},1326:(e,t,n)=>{"use strict";let o=n(683);class r extends o{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=r,r.default=r,o.registerAtRule(r)},6589:(e,t,n)=>{"use strict";let o=n(7490);class r extends o{constructor(e){super(e),this.type="comment"}}e.exports=r,r.default=r},683:(e,t,n)=>{"use strict";let o,r,s,i,{isClean:l,my:a}=n(1381),c=n(1516),u=n(6589),d=n(7490);function p(e){return e.map((e=>(e.nodes&&(e.nodes=p(e.nodes)),delete e.source,e)))}function h(e){if(e[l]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)h(t)}class g extends d{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,o=this.getIterator();for(;this.indexes[o]<this.proxyOf.nodes.length&&(t=this.indexes[o],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[o]+=1;return delete this.indexes[o],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e))):"every"===t||"some"===t?n=>e[t](((e,...t)=>n(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,o=this.index(e),r=this.normalize(t,this.proxyOf.nodes[o]).reverse();o=this.index(e);for(let e of r)this.proxyOf.nodes.splice(o+1,0,e);for(let e in this.indexes)n=this.indexes[e],o<n&&(this.indexes[e]=n+r.length);return this.markDirty(),this}insertBefore(e,t){let n,o=this.index(e),r=0===o&&"prepend",s=this.normalize(t,this.proxyOf.nodes[o],r).reverse();o=this.index(e);for(let e of s)this.proxyOf.nodes.splice(o,0,e);for(let e in this.indexes)n=this.indexes[e],o<=n&&(this.indexes[e]=n+s.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=p(o(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new c(e)]}else if(e.selector)e=[new r(e)];else if(e.name)e=[new s(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new u(e)]}return e.map((e=>(e[a]||g.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[l]&&h(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((o=>{t.props&&!t.props.includes(o.prop)||t.fast&&!o.value.includes(t.fast)||(o.value=o.value.replace(e,n))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,n)=>{let o;try{o=e(t,n)}catch(e){throw t.addToError(e)}return!1!==o&&t.walk&&(o=t.walk(e)),o}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,o)=>{if("atrule"===n.type&&e.test(n.name))return t(n,o)})):this.walk(((n,o)=>{if("atrule"===n.type&&n.name===e)return t(n,o)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,o)=>{if("decl"===n.type&&e.test(n.prop))return t(n,o)})):this.walk(((n,o)=>{if("decl"===n.type&&n.prop===e)return t(n,o)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,o)=>{if("rule"===n.type&&e.test(n.selector))return t(n,o)})):this.walk(((n,o)=>{if("rule"===n.type&&n.selector===e)return t(n,o)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}g.registerParse=e=>{o=e},g.registerRule=e=>{r=e},g.registerAtRule=e=>{s=e},g.registerRoot=e=>{i=e},e.exports=g,g.default=g,g.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,s.prototype):"rule"===e.type?Object.setPrototypeOf(e,r.prototype):"decl"===e.type?Object.setPrototypeOf(e,c.prototype):"comment"===e.type?Object.setPrototypeOf(e,u.prototype):"root"===e.type&&Object.setPrototypeOf(e,i.prototype),e[a]=!0,e.nodes&&e.nodes.forEach((e=>{g.rebuild(e)}))}},356:(e,t,n)=>{"use strict";let o=n(2775),r=n(9746);class s extends Error{constructor(e,t,n,o,r,i){super(e),this.name="CssSyntaxError",this.reason=e,r&&(this.file=r),o&&(this.source=o),i&&(this.plugin=i),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=o.isColorSupported),r&&e&&(t=r(t));let n,s,i=t.split(/\r?\n/),l=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),c=String(a).length;if(e){let{bold:e,gray:t,red:r}=o.createColors(!0);n=t=>e(r(t)),s=e=>t(e)}else n=s=e=>e;return i.slice(l,a).map(((e,t)=>{let o=l+1+t,r=" "+(" "+o).slice(-c)+" | ";if(o===this.line){let t=s(r.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+s(r)+e+"\n "+t+n("^")}return" "+s(r)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=s,s.default=s},1516:(e,t,n)=>{"use strict";let o=n(7490);class r extends o{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=r,r.default=r},271:(e,t,n)=>{"use strict";let o,r,s=n(683);class i extends s{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new o(new r,this,e).stringify()}}i.registerLazyResult=e=>{o=e},i.registerProcessor=e=>{r=e},e.exports=i,i.default=i},8940:(e,t,n)=>{"use strict";let o=n(1516),r=n(5696),s=n(6589),i=n(1326),l=n(5380),a=n(9434),c=n(4092);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:n,...d}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:l.prototype};n.map&&(n.map={...n.map,__proto__:r.prototype}),t.push(n)}}if(d.nodes&&(d.nodes=e.nodes.map((e=>u(e,t)))),d.source){let{inputId:e,...n}=d.source;d.source=n,null!=e&&(d.source.input=t[e])}if("root"===d.type)return new a(d);if("decl"===d.type)return new o(d);if("rule"===d.type)return new c(d);if("comment"===d.type)return new s(d);if("atrule"===d.type)return new i(d);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},5380:(e,t,n)=>{"use strict";let{SourceMapConsumer:o,SourceMapGenerator:r}=n(1866),{fileURLToPath:s,pathToFileURL:i}=n(2739),{isAbsolute:l,resolve:a}=n(197),{nanoid:c}=n(5042),u=n(9746),d=n(356),p=n(5696),h=Symbol("fromOffsetCache"),g=Boolean(o&&r),m=Boolean(a&&l);class f{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!m||/^\w+:\/\//.test(t.from)||l(t.from)?this.file=t.from:this.file=a(t.from)),m&&g){let e=new p(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,o={}){let r,s,l;if(t&&"object"==typeof t){let e=t,o=n;if("number"==typeof e.offset){let o=this.fromOffset(e.offset);t=o.line,n=o.col}else t=e.line,n=e.column;if("number"==typeof o.offset){let e=this.fromOffset(o.offset);s=e.line,l=e.col}else s=o.line,l=o.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let a=this.origin(t,n,s,l);return r=a?new d(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,o.plugin):new d(e,void 0===s?t:{column:n,line:t},void 0===s?n:{column:l,line:s},this.css,this.file,o.plugin),r.input={column:n,endColumn:l,endLine:s,line:t,source:this.css},this.file&&(i&&(r.input.url=i(this.file).toString()),r.input.file=this.file),r}fromOffset(e){let t,n;if(this[h])n=this[h];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let o=0,r=e.length;o<r;o++)n[o]=t,t+=e[o].length+1;this[h]=n}t=n[n.length-1];let o=0;if(e>=t)o=n.length-1;else{let t,r=n.length-2;for(;o<r;)if(t=o+(r-o>>1),e<n[t])r=t-1;else{if(!(e>=n[t+1])){o=t;break}o=t+1}}return{col:e-n[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:a(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,o){if(!this.map)return!1;let r,a,c=this.map.consumer(),u=c.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof n&&(r=c.originalPositionFor({column:o,line:n})),a=l(u.source)?i(u.source):new URL(u.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let d={column:u.column,endColumn:r&&r.column,endLine:r&&r.line,line:u.line,url:a.toString()};if("file:"===a.protocol){if(!s)throw new Error("file: protocol is not available in this PostCSS build");d.file=s(a)}let p=c.sourceContentFor(u.source);return p&&(d.source=p),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}e.exports=f,f.default=f,u&&u.registerInput&&u.registerInput(f)},448:(e,t,n)=>{"use strict";let{isClean:o,my:r}=n(1381),s=n(1670),i=n(633),l=n(683),a=n(271),c=(n(3122),n(9055)),u=n(4295),d=n(9434);const p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},g={Once:!0,postcssPlugin:!0,prepare:!0},m=0;function f(e){return"object"==typeof e&&"function"==typeof e.then}function b(e){let t=!1,n=p[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,m,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,m,n+"Exit"]:[n,n+"Exit"]}function v(e){let t;return t="document"===e.type?["Document",m,"DocumentExit"]:"root"===e.type?["Root",m,"RootExit"]:b(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function k(e){return e[o]=!1,e.nodes&&e.nodes.forEach((e=>k(e))),e}let _={};class x{constructor(e,t,n){let o;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof x||t instanceof c)o=k(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=u;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{o=e(t,n)}catch(e){this.processed=!0,this.error=e}o&&!o[r]&&l.rebuild(o)}else o=k(t);this.result=new c(e,o,n),this.helpers={..._,postcss:_,result:this.result},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!h[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!g[n])if("object"==typeof t[n])for(let o in t[n])e(t,"*"===o?n:n+"-"+o.toLowerCase(),t[n][o]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(f(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[o];){e[o]=!0;let t=[v(e)];for(;t.length>0;){let e=this.visitTick(t);if(f(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>n(e,this.helpers)));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return f(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=i;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new s(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(f(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[o];)e[o]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,o]of e){let e;this.result.lastPlugin=n;try{e=o(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(f(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,o]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return o(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let r,s=t.iterator;for(;r=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!r[o])return r[o]=!0,void e.push(v(r));t.iterator=0,delete n.indexes[s]}let s=t.events;for(;t.eventIndex<s.length;){let e=s[t.eventIndex];if(t.eventIndex+=1,e===m)return void(n.nodes&&n.nodes.length&&(n[o]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[o]=!0;let t=b(e);for(let n of t)if(n===m)e.nodes&&e.each((e=>{e[o]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}x.registerPostcss=e=>{_=e},e.exports=x,x.default=x,d.registerLazyResult(x),a.registerLazyResult(x)},7374:e=>{"use strict";let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n","\t"]),split(e,t,n){let o=[],r="",s=!1,i=0,l=!1,a="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:l?n===a&&(l=!1):'"'===n||"'"===n?(l=!0,a=n):"("===n?i+=1:")"===n?i>0&&(i-=1):0===i&&t.includes(n)&&(s=!0),s?(""!==r&&o.push(r.trim()),r="",s=!1):r+=n;return(n||""!==r)&&o.push(r.trim()),o}};e.exports=t,t.default=t},1670:(e,t,n)=>{"use strict";let{SourceMapConsumer:o,SourceMapGenerator:r}=n(1866),{dirname:s,relative:i,resolve:l,sep:a}=n(197),{pathToFileURL:c}=n(2739),u=n(5380),d=Boolean(o&&r),p=Boolean(s&&l&&i&&a);e.exports=class{constructor(e,t,n,o){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),r=e.root||s(e.file);!1===this.mapOpts.sourcesContent?(t=new o(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&d&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=r.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,n=1,o=1,s="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((r,l,a)=>{if(this.css+=r,l&&"end"!==a&&(i.generated.line=n,i.generated.column=o-1,l.source&&l.source.start?(i.source=this.sourcePath(l),i.original.line=l.source.start.line,i.original.column=l.source.start.column-1,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,this.map.addMapping(i))),e=r.match(/\n/g),e?(n+=e.length,t=r.lastIndexOf("\n"),o=r.length-t):o+=r.length,l&&"start"!==a){let e=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===e.last&&!e.raws.semicolon||(l.source&&l.source.end?(i.source=this.sourcePath(l),i.original.line=l.source.end.line,i.original.column=l.source.end.column-1,i.generated.line=n,i.generated.column=o-2,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,i.generated.line=n,i.generated.column=o-1,this.map.addMapping(i)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?s(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=s(l(n,this.mapOpts.annotation)));let o=i(n,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new u(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let o=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(o,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(c){let t=c(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===a&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}},7661:(e,t,n)=>{"use strict";let o=n(1670),r=n(633),s=(n(3122),n(4295));const i=n(9055);class l{constructor(e,t,n){let s;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let l=r;this.result=new i(this._processor,s,this._opts),this.result.css=t;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let c=new o(l,s,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=s;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}}e.exports=l,l.default=l},7490:(e,t,n)=>{"use strict";let{isClean:o,my:r}=n(1381),s=n(356),i=n(346),l=n(633);function a(e,t){let n=new e.constructor;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;if("proxyCache"===o)continue;let r=e[o],s=typeof r;"parent"===o&&"object"===s?t&&(n[o]=t):"source"===o?n[o]=r:Array.isArray(r)?n[o]=r.map((e=>a(e,n))):("object"===s&&null!==r&&(r=a(r)),n[o]=r)}return n}class c{constructor(e={}){this.raws={},this[o]=!1,this[r]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=a(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:o}=this.rangeBy(t);return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},t)}return new s(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[o]){this[o]=!1;let e=this;for(;e=e.parent;)e[o]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){let o=(t=this.toString()).indexOf(e.word);-1!==o&&(n=this.positionInside(o,t))}return n}positionInside(e,t){let n=t||this.toString(),o=this.source.start.column,r=this.source.start.line;for(let t=0;t<e;t++)"\n"===n[t]?(o=1,r+=1):o+=1;return{column:o,line:r}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let o=this.toString(),r=o.indexOf(e.word);-1!==r&&(t=this.positionInside(r,o),n=this.positionInside(r+e.word.length,o))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new i).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let o of e)o===this?n=!0:n?(this.parent.insertAfter(t,o),t=o):this.parent.insertBefore(t,o);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},o=null==t;t=t||new Map;let r=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let o=this[e];if(Array.isArray(o))n[e]=o.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof o&&o.toJSON)n[e]=o.toJSON(null,t);else if("source"===e){let s=t.get(o.input);null==s&&(s=r,t.set(o.input,r),r++),n[e]={end:o.end,inputId:s,start:o.start}}else n[e]=o}return o&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=l){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n){let o={node:this};for(let e in n)o[e]=n[e];return e.warn(t,o)}get proxyOf(){return this}}e.exports=c,c.default=c},4295:(e,t,n)=>{"use strict";let o=n(683),r=n(3937),s=n(5380);function i(e,t){let n=new s(e,t),o=new r(n);try{o.parse()}catch(e){throw e}return o.root}e.exports=i,i.default=i,o.registerParse(i)},3937:(e,t,n)=>{"use strict";let o=n(1516),r=n(2327),s=n(6589),i=n(1326),l=n(9434),a=n(4092);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new l,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,n,o,r=new i;r.name=e[1].slice(1),""===r.name&&this.unnamedAtrule(r,e),this.init(r,e[2]);let s=!1,l=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}if("{"===t){l=!0;break}if("}"===t){if(a.length>0){for(o=a.length-1,n=a[o];n&&"space"===n[0];)n=a[--o];n&&(r.source.end=this.getPosition(n[3]||n[2]),r.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(r.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(r,"params",a),s&&(e=a[a.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),l&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,o=0;for(let r=t-1;r>=0&&(n=e[r],"space"===n[0]||(o+=1,2!==o));r--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,o,r=0;for(let[s,i]of e.entries()){if(t=i,n=t[0],"("===n&&(r+=1),")"===n&&(r-=1),0===r&&":"===n){if(o){if("word"===o[0]&&"progid"===o[1])continue;return s}this.doubleColon(t)}o=t}return!1}comment(e){let t=new s;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=r(this.input)}decl(e,t){let n=new o;this.init(n,e[0][2]);let r,s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],o=n[3]||n[2];if(o)return o}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let i,l=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)l.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){n.important=!0;let o=this.stringFrom(e,t);o=this.spacesFromEnd(e)+o," !important"!==o&&(n.raws.important=o);break}if("important"===r[1].toLowerCase()){let o=e.slice(0),r="";for(let e=t;e>0;e--){let t=o[e][0];if(0===r.trim().indexOf("!")&&"space"!==t)break;r=o.pop()[1]+r}0===r.trim().indexOf("!")&&(n.important=!0,n.raws.important=r,e=o)}if("space"!==r[0]&&"comment"!==r[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=l.map((e=>e[1])).join(""),l=[]),this.raw(n,"value",l.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new a;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,n=null,o=!1,r=null,s=[],i=e[1].startsWith("--"),l=[],a=e;for(;a;){if(n=a[0],l.push(a),"("===n||"["===n)r||(r=a),s.push("("===n?")":"]");else if(i&&o&&"{"===n)r||(r=a),s.push("}");else if(0===s.length){if(";"===n){if(o)return void this.decl(l,i);break}if("{"===n)return void this.rule(l);if("}"===n){this.tokenizer.back(l.pop()),t=!0;break}":"===n&&(o=!0)}else n===s[s.length-1]&&(s.pop(),0===s.length&&(r=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(r),t&&o){if(!i)for(;l.length&&(a=l[l.length-1][0],"space"===a||"comment"===a);)this.tokenizer.back(l.pop());this.decl(l,i)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,o){let r,s,i,l,a=n.length,u="",d=!0;for(let e=0;e<a;e+=1)r=n[e],s=r[0],"space"!==s||e!==a-1||o?"comment"===s?(l=n[e-1]?n[e-1][0]:"empty",i=n[e+1]?n[e+1][0]:"empty",c[l]||c[i]||","===u.slice(-1)?d=!1:u+=r[1]):u+=r[1]:d=!1;if(!d){let o=n.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:o,value:u}}e[t]=u}rule(e){e.pop();let t=new a;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let o=t;o<e.length;o++)n+=e[o][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}},4529:(e,t,n)=>{"use strict";let o=n(356),r=n(1516),s=n(448),i=n(683),l=n(9656),a=n(633),c=n(8940),u=n(271),d=n(5776),p=n(6589),h=n(1326),g=n(9055),m=n(5380),f=n(4295),b=n(7374),v=n(4092),k=n(9434),_=n(7490);function x(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new l(e)}x.plugin=function(e,t){let n,o=!1;function r(...n){console&&console.warn&&!o&&(o=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let r=t(...n);return r.postcssPlugin=e,r.postcssVersion=(new l).version,r}return Object.defineProperty(r,"postcss",{get:()=>(n||(n=r()),n)}),r.process=function(e,t,n){return x([r(n)]).process(e,t)},r},x.stringify=a,x.parse=f,x.fromJSON=c,x.list=b,x.comment=e=>new p(e),x.atRule=e=>new h(e),x.decl=e=>new r(e),x.rule=e=>new v(e),x.root=e=>new k(e),x.document=e=>new u(e),x.CssSyntaxError=o,x.Declaration=r,x.Container=i,x.Processor=l,x.Document=u,x.Comment=p,x.Warning=d,x.AtRule=h,x.Result=g,x.Input=m,x.Rule=v,x.Root=k,x.Node=_,s.registerPostcss(x),e.exports=x,x.default=x},5696:(e,t,n)=>{"use strict";let{SourceMapConsumer:o,SourceMapGenerator:r}=n(1866),{existsSync:s,readFileSync:i}=n(9977),{dirname:l,join:a}=n(197);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,o=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=l(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new o(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),o=e.indexOf("*/",n);n>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,o)))}loadFile(e){if(this.root=l(e),s(e))return this.mapFile=e,i(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof o)return r.fromSourceMap(t).toString();if(t instanceof r)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=a(l(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=c,c.default=c},9656:(e,t,n)=>{"use strict";let o=n(7661),r=n(448),s=n(271),i=n(9434);class l{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new r(this,e,t):new o(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=l,l.default=l,i.registerProcessor(l),s.registerProcessor(l)},9055:(e,t,n)=>{"use strict";let o=n(5776);class r{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new o(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}e.exports=r,r.default=r},9434:(e,t,n)=>{"use strict";let o,r,s=n(683);class i extends s{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let o=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of o)e.raws.before=t.raws.before;return o}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new o(new r,this,e).stringify()}}i.registerLazyResult=e=>{o=e},i.registerProcessor=e=>{r=e},e.exports=i,i.default=i,s.registerRoot(i)},4092:(e,t,n)=>{"use strict";let o=n(683),r=n(7374);class s extends o{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}e.exports=s,s.default=s,o.registerRule(s)},346:e=>{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class n{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:o&&(n+=" "),e.nodes)this.block(e,n+o);else{let r=(e.raws.between||"")+(t?";":"");this.builder(n+o+r,e)}}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let o=e.parent,r=0;for(;o&&"root"!==o.type;)r+=1,o=o.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<r;e++)n+=t}return n}block(e,t){let n,o=this.raw(e,"between","beforeOpen");this.builder(t+o+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let o=0;o<e.nodes.length;o++){let r=e.nodes[o],s=this.raw(r,"before");s&&this.builder(s),this.stringify(r,t!==o||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),o=e.prop+n+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),t&&(o+=";"),this.builder(o,e)}document(e){this.body(e)}raw(e,n,o){let r;if(o||(o=n),n&&(r=e.raws[n],void 0!==r))return r;let s=e.parent;if("before"===o){if(!s||"root"===s.type&&s.first===e)return"";if(s&&"document"===s.type)return""}if(!s)return t[o];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[o])return i.rawCache[o];if("before"===o||"after"===o)return this.beforeAfter(e,o);{let t="raw"+((l=o)[0].toUpperCase()+l.slice(1));this[t]?r=this[t](i,e):i.walk((e=>{if(r=e.raws[n],void 0!==r)return!1}))}var l;return void 0===r&&(r=t[o]),i.rawCache[o]=r,r}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=>{let o=n.parent;if(o&&o!==e&&o.parent&&o.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let n=e[t],o=e.raws[t];return o&&o.value===n?o.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}e.exports=n,n.default=n},633:(e,t,n)=>{"use strict";let o=n(346);function r(e,t){new o(t).stringify(e)}e.exports=r,r.default=r},1381:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},2327:e=>{"use strict";const t="'".charCodeAt(0),n='"'.charCodeAt(0),o="\\".charCodeAt(0),r="/".charCodeAt(0),s="\n".charCodeAt(0),i=" ".charCodeAt(0),l="\f".charCodeAt(0),a="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),d="]".charCodeAt(0),p="(".charCodeAt(0),h=")".charCodeAt(0),g="{".charCodeAt(0),m="}".charCodeAt(0),f=";".charCodeAt(0),b="*".charCodeAt(0),v=":".charCodeAt(0),k="@".charCodeAt(0),_=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,S=/[\da-f]/i;e.exports=function(e,w={}){let C,B,I,j,E,T,M,P,R,N,A=e.css.valueOf(),L=w.ignoreErrors,O=A.length,D=0,z=[],V=[];function F(t){throw e.error("Unclosed "+t,D)}return{back:function(e){V.push(e)},endOfFile:function(){return 0===V.length&&D>=O},nextToken:function(e){if(V.length)return V.pop();if(D>=O)return;let w=!!e&&e.ignoreUnclosed;switch(C=A.charCodeAt(D),C){case s:case i:case a:case c:case l:B=D;do{B+=1,C=A.charCodeAt(B)}while(C===i||C===s||C===a||C===c||C===l);N=["space",A.slice(D,B)],D=B-1;break;case u:case d:case g:case m:case v:case f:case h:{let e=String.fromCharCode(C);N=[e,e,D];break}case p:if(P=z.length?z.pop()[1]:"",R=A.charCodeAt(D+1),"url"===P&&R!==t&&R!==n&&R!==i&&R!==s&&R!==a&&R!==l&&R!==c){B=D;do{if(T=!1,B=A.indexOf(")",B+1),-1===B){if(L||w){B=D;break}F("bracket")}for(M=B;A.charCodeAt(M-1)===o;)M-=1,T=!T}while(T);N=["brackets",A.slice(D,B+1),D,B],D=B}else B=A.indexOf(")",D+1),j=A.slice(D,B+1),-1===B||y.test(j)?N=["(","(",D]:(N=["brackets",j,D,B],D=B);break;case t:case n:I=C===t?"'":'"',B=D;do{if(T=!1,B=A.indexOf(I,B+1),-1===B){if(L||w){B=D+1;break}F("string")}for(M=B;A.charCodeAt(M-1)===o;)M-=1,T=!T}while(T);N=["string",A.slice(D,B+1),D,B],D=B;break;case k:_.lastIndex=D+1,_.test(A),B=0===_.lastIndex?A.length-1:_.lastIndex-2,N=["at-word",A.slice(D,B+1),D,B],D=B;break;case o:for(B=D,E=!0;A.charCodeAt(B+1)===o;)B+=1,E=!E;if(C=A.charCodeAt(B+1),E&&C!==r&&C!==i&&C!==s&&C!==a&&C!==c&&C!==l&&(B+=1,S.test(A.charAt(B)))){for(;S.test(A.charAt(B+1));)B+=1;A.charCodeAt(B+1)===i&&(B+=1)}N=["word",A.slice(D,B+1),D,B],D=B;break;default:C===r&&A.charCodeAt(D+1)===b?(B=A.indexOf("*/",D+2)+1,0===B&&(L||w?B=A.length:F("comment")),N=["comment",A.slice(D,B+1),D,B],D=B):(x.lastIndex=D+1,x.test(A),B=0===x.lastIndex?A.length-1:x.lastIndex-2,N=["word",A.slice(D,B+1),D,B],z.push(N),D=B)}return D++,N},position:function(){return D}}}},3122:e=>{"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},5776:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},628:(e,t,n)=>{"use strict";var o=n(4067);function r(){}function s(){}s.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,s,i){if(i!==o){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint: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:s,resetWarningCache:r};return n.PropTypes=n,n}},5826:(e,t,n)=>{e.exports=n(628)()},4067:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4462:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n};t.__esModule=!0;var l=n(1609),a=n(5826),c=n(4306),u=n(461),d="autosize:resized",p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||o?setTimeout((function(){return e.textarea&&c(e.textarea)})):this.textarea&&c(this.textarea),this.textarea&&this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(d,this.onResize),c.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),r=(t.innerRef,t.children),a=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return l.createElement("textarea",s({},a,{onChange:this.onChange,style:u?s({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&c.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:a.number,maxRows:a.number,onResize:a.func,innerRef:a.any,async:a.bool},t}(l.Component);t.TextareaAutosize=l.forwardRef((function(e,t){return l.createElement(p,s({},e,{innerRef:t}))}))},4132:(e,t,n)=>{"use strict";var o=n(4462);t.A=o.TextareaAutosize},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),o=new RegExp(n,"g"),r=new RegExp(n,"");function s(e){return t[e]}var i=function(e){return e.replace(o,s)};e.exports=i,e.exports.has=function(e){return!!e.match(r)},e.exports.remove=i},1609:e=>{"use strict";e.exports=window.React},9746:()=>{},9977:()=>{},197:()=>{},1866:()=>{},2739:()=>{},5042:e=>{e.exports={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let o="",r=n;for(;r--;)o+=e[Math.random()*e.length|0];return o}}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var s=t[o]={exports:{}};return e[o].call(s.exports,s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{AlignmentControl:()=>Ch,AlignmentToolbar:()=>Bh,Autocomplete:()=>Ob,BlockAlignmentControl:()=>Tl,BlockAlignmentToolbar:()=>Ml,BlockBreadcrumb:()=>Ub,BlockCanvas:()=>qI,BlockColorsStyleSelector:()=>JI,BlockContextProvider:()=>Kb,BlockControls:()=>zs,BlockEdit:()=>nv,BlockEditorKeyboardShortcuts:()=>my,BlockEditorProvider:()=>by,BlockFormatControls:()=>Ds,BlockIcon:()=>jf,BlockInspector:()=>ZM,BlockList:()=>zC,BlockMover:()=>lB,BlockNavigationDropdown:()=>Aj,BlockPopover:()=>tl,BlockPreview:()=>lS,BlockSelectionClearer:()=>ky,BlockSettingsMenu:()=>pI,BlockSettingsMenuControls:()=>wf,BlockStyles:()=>Dj,BlockTitle:()=>Gb,BlockToolbar:()=>RI,BlockTools:()=>VI,BlockVerticalAlignmentControl:()=>Ci,BlockVerticalAlignmentToolbar:()=>Bi,ButtonBlockAppender:()=>Qw,ButtonBlockerAppender:()=>Xw,ColorPalette:()=>uE,ColorPaletteControl:()=>dE,ContrastChecker:()=>Jd,CopyHandler:()=>YM,DefaultBlockAppender:()=>qw,FontSizePicker:()=>tb,HeadingLevelDropdown:()=>Gj,HeightControl:()=>eg,InnerBlocks:()=>TC,Inserter:()=>Kw,InspectorAdvancedControls:()=>na,InspectorControls:()=>oa,JustifyContentControl:()=>Ei,JustifyToolbar:()=>Ti,LineHeightControl:()=>xp,MediaPlaceholder:()=>gT,MediaReplaceFlow:()=>yc,MediaUpload:()=>da,MediaUploadCheck:()=>pa,MultiSelectScrollIntoView:()=>eP,NavigableToolbar:()=>CI,ObserveTyping:()=>NC,PanelColorSettings:()=>mT,PlainText:()=>ZT,RecursionProvider:()=>lP,ReusableBlocksRenameHint:()=>mP,RichText:()=>$T,RichTextShortcut:()=>XT,RichTextToolbarButton:()=>QT,SETTINGS_DEFAULTS:()=>I,SkipToSelectedBlock:()=>mM,ToolSelector:()=>tM,Typewriter:()=>sP,URLInput:()=>Sa,URLInputButton:()=>sM,URLPopover:()=>uT,Warning:()=>Jb,WritingFlow:()=>Dy,__experimentalBlockAlignmentMatrixControl:()=>Fb,__experimentalBlockFullHeightAligmentControl:()=>zb,__experimentalBlockPatternSetup:()=>rE,__experimentalBlockPatternsList:()=>FS,__experimentalBlockVariationPicker:()=>$j,__experimentalBlockVariationTransforms:()=>aE,__experimentalBorderRadiusControl:()=>$u,__experimentalColorGradientControl:()=>Od,__experimentalColorGradientSettingsDropdown:()=>kE,__experimentalDateFormatPicker:()=>gE,__experimentalDuotoneControl:()=>Gg,__experimentalFontAppearanceControl:()=>kp,__experimentalFontFamilyControl:()=>mp,__experimentalGetBorderClassesAndStyles:()=>Of,__experimentalGetColorClassesAndStyles:()=>Vf,__experimentalGetElementClassName:()=>bP,__experimentalGetGapCSSValue:()=>fi,__experimentalGetGradientClass:()=>Id,__experimentalGetGradientObjectByGradientValue:()=>Ed,__experimentalGetShadowClassesAndStyles:()=>zf,__experimentalGetSpacingClassesAndStyles:()=>Hf,__experimentalImageEditor:()=>oT,__experimentalImageSizeControl:()=>iT,__experimentalImageURLInputUI:()=>pM,__experimentalInspectorPopoverHeader:()=>dP,__experimentalLetterSpacingControl:()=>yp,__experimentalLibrary:()=>JM,__experimentalLinkControl:()=>kc,__experimentalLinkControlSearchInput:()=>ec,__experimentalLinkControlSearchItem:()=>za,__experimentalLinkControlSearchResults:()=>Wa,__experimentalListView:()=>Rj,__experimentalPanelColorGradientSettings:()=>SE,__experimentalPreviewOptions:()=>hM,__experimentalPublishDateTimePicker:()=>hP,__experimentalRecursionProvider:()=>cP,__experimentalResponsiveBlockControl:()=>YT,__experimentalSpacingSizesControl:()=>Qh,__experimentalTextDecorationControl:()=>Vp,__experimentalTextTransformControl:()=>Lp,__experimentalUnitControl:()=>nM,__experimentalUseBlockOverlayActive:()=>$b,__experimentalUseBlockPreview:()=>aS,__experimentalUseBorderProps:()=>Df,__experimentalUseColorProps:()=>Ff,__experimentalUseCustomSides:()=>Tg,__experimentalUseGradient:()=>Md,__experimentalUseHasRecursion:()=>uP,__experimentalUseMultipleOriginColorsAndGradients:()=>Mu,__experimentalUseResizeCanvas:()=>gM,__experimentalWritingModeControl:()=>Up,__unstableBlockNameContext:()=>xI,__unstableBlockSettingsMenuFirstItem:()=>iI,__unstableBlockToolbarLastItem:()=>HB,__unstableEditorStyles:()=>eS,__unstableIframe:()=>Gy,__unstableInserterMenuExtension:()=>Mw,__unstableRichTextInputEvent:()=>JT,__unstableUseBlockSelectionClearer:()=>vy,__unstableUseClipboardHandler:()=>qM,__unstableUseMouseMoveTypingReset:()=>PC,__unstableUseTypewriter:()=>rP,__unstableUseTypingObserver:()=>RC,createCustomColorsHOC:()=>Jf,getColorClassName:()=>Tu,getColorObjectByAttributeValues:()=>ju,getColorObjectByColorValue:()=>Eu,getComputedFluidTypographyValue:()=>Jr,getCustomValueFromPreset:()=>di,getFontSize:()=>mh,getFontSizeClass:()=>bh,getFontSizeObjectByValue:()=>fh,getGradientSlugByValue:()=>Td,getGradientValueBySlug:()=>jd,getPxFromCssUnit:()=>vP,getSpacingPresetCssVar:()=>hi,getTypographyClassesAndStyles:()=>Uf,isValueSpacingPreset:()=>ui,privateApis:()=>mN,store:()=>Gr,storeConfig:()=>Hr,transformStyles:()=>Qy,useBlockCommands:()=>KI,useBlockDisplayInformation:()=>cm,useBlockEditContext:()=>_,useBlockEditingMode:()=>Pl,useBlockProps:()=>Jx,useCachedTruthy:()=>$f,useHasRecursion:()=>aP,useInnerBlocksProps:()=>EC,useSetting:()=>Wr,useSettings:()=>$r,useZoomOut:()=>Wf,withColorContext:()=>cE,withColors:()=>eb,withFontSizes:()=>rb});var e={};n.r(e),n.d(e,{getAllPatterns:()=>Ne,getBlockRemovalRules:()=>Be,getBlockSettings:()=>ve,getBlockWithoutAttributes:()=>xe,getContentLockingParent:()=>Fe,getEnabledBlockParents:()=>we,getEnabledClientIdsTree:()=>Se,getExpandedBlock:()=>Ve,getInserterMediaCategories:()=>Te,getLastFocus:()=>De,getLastInsertedBlocksClientIds:()=>_e,getOpenedBlockSettingsMenu:()=>Ie,getPatternBySlug:()=>Re,getRegisteredInserterMediaCategories:()=>Ee,getRemovalPromptData:()=>Ce,getReusableBlocks:()=>Oe,getStyleOverrides:()=>je,getTemporarilyEditingAsBlocks:()=>He,getTemporarilyEditingFocusModeToRevert:()=>Ge,hasAllowedPatterns:()=>Me,isBlockInterfaceHidden:()=>ke,isBlockSubtreeDisabled:()=>ye,isDragging:()=>ze,isResolvingPatterns:()=>Ae});var t={};n.r(t),n.d(t,{__experimentalGetActiveBlockIdByBlockNames:()=>Zn,__experimentalGetAllowedBlocks:()=>Bn,__experimentalGetAllowedPatterns:()=>Mn,__experimentalGetBlockListSettingsForBlocks:()=>Dn,__experimentalGetDirectInsertBlock:()=>jn,__experimentalGetGlobalBlocksByName:()=>st,__experimentalGetLastBlockAttributeChanges:()=>Fn,__experimentalGetParsedPattern:()=>En,__experimentalGetPatternTransformItems:()=>Nn,__experimentalGetPatternsByBlockTypes:()=>Rn,__experimentalGetReusableBlockTitle:()=>zn,__unstableGetBlockWithoutInnerBlocks:()=>Xe,__unstableGetClientIdWithClientIdsTree:()=>Je,__unstableGetClientIdsTree:()=>et,__unstableGetContentLockingParent:()=>oo,__unstableGetEditorMode:()=>Gn,__unstableGetSelectedBlocksWithPartialSelection:()=>Vt,__unstableGetTemporarilyEditingAsBlocks:()=>ro,__unstableGetTemporarilyEditingFocusModeToRevert:()=>so,__unstableGetVisibleBlocks:()=>Xn,__unstableHasActiveBlockOverlayActive:()=>Qn,__unstableIsFullySelected:()=>Lt,__unstableIsLastBlockChangeIgnored:()=>Vn,__unstableIsSelectionCollapsed:()=>Ot,__unstableIsSelectionMergeable:()=>zt,__unstableIsWithinBlockOverlay:()=>Jn,__unstableSelectionHasUnmergeableBlock:()=>Dt,areInnerBlocksControlled:()=>Kn,canEditBlock:()=>fn,canInsertBlockType:()=>un,canInsertBlocks:()=>dn,canLockBlockType:()=>bn,canMoveBlock:()=>gn,canMoveBlocks:()=>mn,canRemoveBlock:()=>pn,canRemoveBlocks:()=>hn,didAutomaticChange:()=>$n,getAdjacentBlockClientId:()=>yt,getAllowedBlocks:()=>Cn,getBlock:()=>Ye,getBlockAttributes:()=>qe,getBlockCount:()=>at,getBlockEditingMode:()=>eo,getBlockHierarchyRootClientId:()=>_t,getBlockIndex:()=>Ht,getBlockInsertionPoint:()=>on,getBlockListSettings:()=>An,getBlockMode:()=>Yt,getBlockName:()=>Ke,getBlockNamesByClientId:()=>lt,getBlockOrder:()=>Ft,getBlockParents:()=>vt,getBlockParentsByBlockName:()=>kt,getBlockRootClientId:()=>bt,getBlockSelectionEnd:()=>pt,getBlockSelectionStart:()=>dt,getBlockTransformItems:()=>Sn,getBlocks:()=>Qe,getBlocksByClientId:()=>it,getBlocksByName:()=>rt,getClientIdsOfDescendants:()=>tt,getClientIdsWithDescendants:()=>nt,getDirectInsertBlock:()=>In,getDraggedBlockClientIds:()=>Jt,getFirstMultiSelectedBlockClientId:()=>Et,getGlobalBlockCount:()=>ot,getInserterItems:()=>yn,getLastMultiSelectedBlockClientId:()=>Tt,getLowestCommonAncestorWithSelectedBlock:()=>xt,getMultiSelectedBlockClientIds:()=>It,getMultiSelectedBlocks:()=>jt,getMultiSelectedBlocksEndClientId:()=>At,getMultiSelectedBlocksStartClientId:()=>Nt,getNextBlockClientId:()=>wt,getPatternsByBlockTypes:()=>Pn,getPreviousBlockClientId:()=>St,getSelectedBlock:()=>ft,getSelectedBlockClientId:()=>mt,getSelectedBlockClientIds:()=>Bt,getSelectedBlockCount:()=>ht,getSelectedBlocksInitialCaretPosition:()=>Ct,getSelectionEnd:()=>ut,getSelectionStart:()=>ct,getSettings:()=>Ln,getTemplate:()=>ln,getTemplateLock:()=>an,hasBlockMovingClientId:()=>Un,hasDraggedInnerBlock:()=>$t,hasInserterItems:()=>wn,hasMultiSelection:()=>Kt,hasSelectedBlock:()=>gt,hasSelectedInnerBlock:()=>Ut,isAncestorBeingDragged:()=>tn,isAncestorMultiSelected:()=>Rt,isBlockBeingDragged:()=>en,isBlockHighlighted:()=>Wn,isBlockInsertionPointVisible:()=>rn,isBlockMultiSelected:()=>Pt,isBlockSelected:()=>Gt,isBlockValid:()=>Ze,isBlockVisible:()=>Yn,isBlockWithinSelection:()=>Wt,isCaretWithinFormattedText:()=>nn,isDraggingBlocks:()=>Qt,isFirstMultiSelectedBlock:()=>Mt,isGroupable:()=>no,isLastBlockChangePersistent:()=>On,isMultiSelecting:()=>Zt,isNavigationMode:()=>Hn,isSelectionEnabled:()=>qt,isTyping:()=>Xt,isUngroupable:()=>to,isValidTemplate:()=>sn,wasBlockJustInserted:()=>qn});var r={};n.r(r),n.d(r,{__experimentalUpdateSettings:()=>ao,clearBlockRemovalPrompt:()=>mo,deleteStyleOverride:()=>ko,ensureDefaultBlock:()=>ho,expandBlock:()=>Co,hideBlockInterface:()=>co,modifyContentLockBlock:()=>Bo,privateRemoveBlocks:()=>po,setBlockRemovalRules:()=>fo,setLastFocus:()=>xo,setOpenedBlockSettingsMenu:()=>bo,setStyleOverride:()=>vo,showBlockInterface:()=>uo,startDragging:()=>So,stopDragging:()=>wo,stopEditingAsBlocks:()=>yo,syncDerivedUpdates:()=>_o});var s={};n.r(s),n.d(s,{__unstableDeleteSelection:()=>ir,__unstableExpandSelection:()=>ar,__unstableMarkAutomaticChange:()=>Ir,__unstableMarkLastChangeAsPersistent:()=>Cr,__unstableMarkNextChangeAsNotPersistent:()=>Br,__unstableSaveReusableBlock:()=>wr,__unstableSetEditorMode:()=>Er,__unstableSetTemporarilyEditingAsBlocks:()=>Dr,__unstableSplitSelection:()=>lr,clearSelectedBlock:()=>$o,duplicateBlocks:()=>Mr,enterFormattedText:()=>vr,exitFormattedText:()=>kr,flashBlock:()=>Ar,hideInsertionPoint:()=>or,insertAfterBlock:()=>Rr,insertBeforeBlock:()=>Pr,insertBlock:()=>er,insertBlocks:()=>tr,insertDefaultBlock:()=>xr,mergeBlocks:()=>cr,moveBlockToPosition:()=>Jo,moveBlocksDown:()=>Yo,moveBlocksToPosition:()=>Qo,moveBlocksUp:()=>Xo,multiSelect:()=>Uo,receiveBlocks:()=>Lo,registerInserterMediaCategory:()=>zr,removeBlock:()=>dr,removeBlocks:()=>ur,replaceBlock:()=>Zo,replaceBlocks:()=>Ko,replaceInnerBlocks:()=>pr,resetBlocks:()=>Ro,resetSelection:()=>Ao,selectBlock:()=>zo,selectNextBlock:()=>Fo,selectPreviousBlock:()=>Vo,selectionChange:()=>_r,setBlockEditingMode:()=>Vr,setBlockMovingClientId:()=>Tr,setBlockVisibility:()=>Or,setHasControlledInnerBlocks:()=>Lr,setNavigationMode:()=>jr,setTemplateValidity:()=>rr,showInsertionPoint:()=>nr,startDraggingBlocks:()=>fr,startMultiSelect:()=>Ho,startTyping:()=>gr,stopDraggingBlocks:()=>br,stopMultiSelect:()=>Go,stopTyping:()=>mr,synchronizeTemplate:()=>sr,toggleBlockHighlight:()=>Nr,toggleBlockMode:()=>hr,toggleSelection:()=>Wo,unsetBlockEditingMode:()=>Fr,updateBlock:()=>Do,updateBlockAttributes:()=>Oo,updateBlockListSettings:()=>yr,updateSettings:()=>Sr,validateBlocksToTemplate:()=>No});var i={};n.r(i),n.d(i,{AdvancedPanel:()=>xP,BackgroundPanel:()=>Nc,BorderPanel:()=>pd,ColorPanel:()=>Qd,DimensionsPanel:()=>kg,FiltersPanel:()=>nm,GlobalStylesContext:()=>hs,ImageSettingsPanel:()=>_P,TypographyPanel:()=>ih,areGlobalStyleConfigsEqual:()=>ps,getBlockCSSSelector:()=>Kg,getBlockSelectors:()=>Om,getGlobalStylesChanges:()=>EP,getLayoutStyles:()=>Em,toStyles:()=>Am,useGlobalSetting:()=>bs,useGlobalStyle:()=>vs,useGlobalStyleLinks:()=>ks,useGlobalStylesOutput:()=>Vm,useGlobalStylesOutputWithConfig:()=>zm,useGlobalStylesReset:()=>fs,useHasBackgroundPanel:()=>Bc,useHasBorderPanel:()=>od,useHasBorderPanelControls:()=>rd,useHasColorPanel:()=>Dd,useHasDimensionsPanel:()=>ig,useHasFiltersPanel:()=>Yg,useHasImageSettingsPanel:()=>kP,useHasTypographyPanel:()=>Kp,useSettingsForBlockElement:()=>_s});const l=window.wp.blocks,a=window.wp.element,c=window.wp.data,u=window.wp.compose,d=window.wp.hooks,p=Symbol("mayDisplayControls"),h=Symbol("mayDisplayParentControls"),g=Symbol("blockEditingMode"),m=Symbol("blockBindings"),f=Symbol("isPreviewMode"),b={name:"",isSelected:!1},v=(0,a.createContext)(b),{Provider:k}=v;function _(){return(0,a.useContext)(v)}const x=window.wp.deprecated;var y=n.n(x),S=n(7734),w=n.n(S);const C=window.wp.i18n,B={insertUsage:{}},I={alignWide:!1,supportsLayout:!0,colors:[{name:(0,C.__)("Black"),slug:"black",color:"#000000"},{name:(0,C.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,C.__)("White"),slug:"white",color:"#ffffff"},{name:(0,C.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,C.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,C.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,C.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,C.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,C.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,C.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,C.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,C.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,C._x)("Small","font size name"),size:13,slug:"small"},{name:(0,C._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,C._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,C._x)("Large","font size name"),size:36,slug:"large"},{name:(0,C._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,C.__)("Thumbnail")},{slug:"medium",name:(0,C.__)("Medium")},{slug:"large",name:(0,C.__)("Large")},{slug:"full",name:(0,C.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,enableOpenverseMediaCategory:!0,clearBlockSelection:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__unstableGalleryWithImageBlocks:!1,__unstableIsPreviewMode:!1,blockInspectorAnimation:{animationParent:"core/navigation","core/navigation":{enterDirection:"leftToRight"},"core/navigation-submenu":{enterDirection:"rightToLeft"},"core/navigation-link":{enterDirection:"rightToLeft"},"core/search":{enterDirection:"rightToLeft"},"core/social-links":{enterDirection:"rightToLeft"},"core/page-list":{enterDirection:"rightToLeft"},"core/spacer":{enterDirection:"rightToLeft"},"core/home-link":{enterDirection:"rightToLeft"},"core/site-title":{enterDirection:"rightToLeft"},"core/site-logo":{enterDirection:"rightToLeft"}},generateAnchors:!1,gradients:[{name:(0,C.__)("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:(0,C.__)("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:(0,C.__)("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:(0,C.__)("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:(0,C.__)("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:(0,C.__)("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:(0,C.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,C.__)("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:(0,C.__)("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:(0,C.__)("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:(0,C.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,C.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function j(e,t,n){return[...e.slice(0,n),...Array.isArray(t)?t:[t],...e.slice(n)]}function E(e,t,n,o=1){const r=[...e];return r.splice(t,o),j(r,e.slice(t,t+o),n)}const T=e=>e;function M(e,t=""){const n=new Map,o=[];return n.set(t,o),e.forEach((e=>{const{clientId:t,innerBlocks:r}=e;o.push(t),M(r,t).forEach(((e,t)=>{n.set(t,e)}))})),n}function P(e,t=""){const n=[],o=[[t,e]];for(;o.length;){const[e,t]=o.shift();t.forEach((({innerBlocks:t,...r})=>{n.push([r.clientId,e]),t?.length&&o.push([r.clientId,t])}))}return n}function R(e,t=T){const n=[],o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n.push([r.clientId,t(r)])}return n}function N(e){return R(e,(e=>{const{attributes:t,...n}=e;return n}))}function A(e){return R(e,(e=>e.attributes))}function L(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&w()(e.clientIds,t.clientIds)&&function(e,t){return w()(Object.keys(e),Object.keys(t))}(e.attributes,t.attributes)}function O(e,t){const n=e.tree,o=[...t],r=[...t];for(;o.length;){const e=o.shift();o.push(...e.innerBlocks),r.push(...e.innerBlocks)}for(const e of r)n.set(e.clientId,{});for(const t of r)n.set(t.clientId,Object.assign(n.get(t.clientId),{...e.byClientId.get(t.clientId),attributes:e.attributes.get(t.clientId),innerBlocks:t.innerBlocks.map((e=>n.get(e.clientId)))}))}function D(e,t,n=!1){const o=e.tree,r=new Set([]),s=new Set;for(const o of t){let t=n?o:e.parents.get(o);do{if(e.controlledInnerBlocks[t]){s.add(t);break}r.add(t),t=e.parents.get(t)}while(void 0!==t)}for(const e of r)o.set(e,{...o.get(e)});for(const t of r)o.get(t).innerBlocks=(e.order.get(t)||[]).map((e=>o.get(e)));for(const t of s)o.set("controlled||"+t,{innerBlocks:(e.order.get(t)||[]).map((e=>o.get(e)))})}const z=(0,u.pipe)(c.combineReducers,(e=>(t,n)=>{if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){const{id:e,updatedId:o}=n;if(e===o)return t;(t={...t}).attributes=new Map(t.attributes),t.attributes.forEach(((n,r)=>{const{name:s}=t.byClientId.get(r);"core/block"===s&&n.ref===e&&t.attributes.set(r,{...n,ref:o})}))}return e(t,n)}),(e=>(t={},n)=>{const o=e(t,n);if(o===t)return t;switch(o.tree=t.tree?t.tree:new Map,n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":o.tree=new Map(o.tree),O(o,n.blocks),D(o,n.rootClientId?[n.rootClientId]:[""],!0);break;case"UPDATE_BLOCK":o.tree=new Map(o.tree),o.tree.set(n.clientId,{...o.tree.get(n.clientId),...o.byClientId.get(n.clientId),attributes:o.attributes.get(n.clientId)}),D(o,[n.clientId],!1);break;case"SYNC_DERIVED_BLOCK_ATTRIBUTES":case"UPDATE_BLOCK_ATTRIBUTES":o.tree=new Map(o.tree),n.clientIds.forEach((e=>{o.tree.set(e,{...o.tree.get(e),attributes:o.attributes.get(e)})})),D(o,n.clientIds,!1);break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=function(e){const t={},n=[...e];for(;n.length;){const{innerBlocks:e,...o}=n.shift();n.push(...e),t[o.clientId]=!0}return t}(n.blocks);o.tree=new Map(o.tree),n.replacedClientIds.forEach((t=>{o.tree.delete(t),e[t]||o.tree.delete("controlled||"+t)})),O(o,n.blocks),D(o,n.blocks.map((e=>e.clientId)),!1);const r=[];for(const e of n.clientIds){const n=t.parents.get(e);void 0===n||""!==n&&!o.byClientId.get(n)||r.push(n)}D(o,r,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const r of n.clientIds){const n=t.parents.get(r);void 0===n||""!==n&&!o.byClientId.get(n)||e.push(n)}o.tree=new Map(o.tree),n.removedClientIds.forEach((e=>{o.tree.delete(e),o.tree.delete("controlled||"+e)})),D(o,e,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const e=[];n.fromRootClientId?e.push(n.fromRootClientId):e.push(""),n.toRootClientId&&e.push(n.toRootClientId),o.tree=new Map(o.tree),D(o,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];o.tree=new Map(o.tree),D(o,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=[];o.attributes.forEach(((t,r)=>{"core/block"===o.byClientId.get(r).name&&t.ref===n.updatedId&&e.push(r)})),o.tree=new Map(o.tree),e.forEach((e=>{o.tree.set(e,{...o.byClientId.get(e),attributes:o.attributes.get(e),innerBlocks:o.tree.get(e).innerBlocks})})),D(o,e,!1)}}return o}),(e=>(t,n)=>{const o=e=>{let o=e;for(let r=0;r<o.length;r++)!t.order.get(o[r])||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[o[r]]||(o===e&&(o=[...o]),o.push(...t.order.get(o[r])));return o};if(t)switch(n.type){case"REMOVE_BLOCKS":n={...n,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:o(n.clientIds)};break;case"REPLACE_BLOCKS":n={...n,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:o(n.clientIds)}}return e(t,n)}),(e=>(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...r}=e.shift();e.push(...n),t.controlledInnerBlocks[r.clientId]&&(o[r.clientId]=!0)}}let r=t;t.order.get(n.rootClientId)&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order.get(n.rootClientId)}));let s=r;if(n.blocks.length){s=e(s,{...n,type:"INSERT_BLOCKS",index:0});const r=new Map(s.order);Object.keys(o).forEach((e=>{t.order.get(e)&&r.set(e,t.order.get(e))})),s.order=r,s.tree=new Map(s.tree),Object.keys(o).forEach((e=>{const n=`controlled||${e}`;t.tree.has(n)&&s.tree.set(n,t.tree.get(n))}))}return s}),(e=>(t,n)=>{if("RESET_BLOCKS"===n.type){const e={...t,byClientId:new Map(N(n.blocks)),attributes:new Map(A(n.blocks)),order:M(n.blocks),parents:new Map(P(n.blocks)),controlledInnerBlocks:{}};return e.tree=new Map(t?.tree),O(e,n.blocks),e.tree.set("",{innerBlocks:n.blocks.map((t=>e.tree.get(t.clientId)))}),e}return e(t,n)}),(function(e){let t,n,o=!1;return(r,s)=>{let i,l=e(r,s);var a;"SET_EXPLICIT_PERSISTENT"===s.type&&(n=s.isPersistentChange,i=null===(a=r.isPersistentChange)||void 0===a||a);if(void 0!==n)return i=n,i===l.isPersistentChange?l:{...l,isPersistentChange:i};const c="MARK_LAST_CHANGE_AS_PERSISTENT"===s.type||o;var u;return r!==l||c?(l={...l,isPersistentChange:c?!o:!L(s,t)},t=s,o="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===s.type,l):(o="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===s.type,i=null===(u=r?.isPersistentChange)||void 0===u||u,r.isPersistentChange===i?r:{...l,isPersistentChange:i})}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const r=e(n,o);return r!==n&&(r.isIgnoredChange=t.has(o.type)),r}}),(e=>(t,n)=>{if("SET_HAS_CONTROLLED_INNER_BLOCKS"===n.type){const o=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:n.clientId,blocks:[]});return e(o,n)}return e(t,n)}))({byClientId(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return N(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"UPDATE_BLOCK":{if(!e.has(t.clientId))return e;const{attributes:n,...o}=t.updates;if(0===Object.values(o).length)return e;const r=new Map(e);return r.set(t.clientId,{...e.get(t.clientId),...o}),r}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),N(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},attributes(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return A(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"UPDATE_BLOCK":{if(!e.get(t.clientId)||!t.updates.attributes)return e;const n=new Map(e);return n.set(t.clientId,{...e.get(t.clientId),...t.updates.attributes}),n}case"SYNC_DERIVED_BLOCK_ATTRIBUTES":case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every((t=>!e.get(t))))return e;let o=!1;const r=new Map(e);for(const s of t.clientIds){var n;const i=Object.entries(t.uniqueByBlock?t.attributes[s]:null!==(n=t.attributes)&&void 0!==n?n:{});if(0===i.length)continue;let l=!1;const a=e.get(s),c={};i.forEach((([e,t])=>{a[e]!==t&&(l=!0,c[e]=t)})),o=o||l,l&&r.set(s,{...a,...c})}return o?r:e}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),A(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},order(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{var n;const o=M(t.blocks),r=new Map(e);return o.forEach(((e,t)=>{""!==t&&r.set(t,e)})),r.set("",(null!==(n=e.get(""))&&void 0!==n?n:[]).concat(o[""])),r}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e.get(n)||[],r=M(t.blocks,n),{index:s=o.length}=t,i=new Map(e);return r.forEach(((e,t)=>{i.set(t,e)})),i.set(n,j(o,r.get(n),s)),i}case"MOVE_BLOCKS_TO_POSITION":{var o;const{fromRootClientId:n="",toRootClientId:r="",clientIds:s}=t,{index:i=e.get(r).length}=t;if(n===r){const t=e.get(r).indexOf(s[0]),n=new Map(e);return n.set(r,E(e.get(r),t,i,s.length)),n}const l=new Map(e);return l.set(n,null!==(o=e.get(n)?.filter((e=>!s.includes(e))))&&void 0!==o?o:[]),l.set(r,j(e.get(r),s,i)),l}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=n[0],s=e.get(o);if(!s.length||r===s[0])return e;const i=s.indexOf(r),l=new Map(e);return l.set(o,E(s,i,i-1,n.length)),l}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=n[0],s=n[n.length-1],i=e.get(o);if(!i.length||s===i[i.length-1])return e;const l=i.indexOf(r),a=new Map(e);return a.set(o,E(i,l,l+1,n.length)),a}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=M(t.blocks),r=new Map(e);return t.replacedClientIds.forEach((e=>{r.delete(e)})),o.forEach(((e,t)=>{""!==t&&r.set(t,e)})),r.forEach(((e,t)=>{const s=Object.values(e).reduce(((e,t)=>t===n[0]?[...e,...o.get("")]:(-1===n.indexOf(t)&&e.push(t),e)),[]);r.set(t,s)})),r}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n.forEach(((e,o)=>{var r;const s=null!==(r=e?.filter((e=>!t.removedClientIds.includes(e))))&&void 0!==r?r:[];s.length!==e.length&&n.set(o,s)})),n}}return e},parents(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{const n=new Map(e);return P(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"INSERT_BLOCKS":{const n=new Map(e);return P(t.blocks,t.rootClientId||"").forEach((([e,t])=>{n.set(e,t)})),n}case"MOVE_BLOCKS_TO_POSITION":{const n=new Map(e);return t.clientIds.forEach((e=>{n.set(e,t.toRootClientId||"")})),n}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),P(t.blocks,e.get(t.clientIds[0])).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},controlledInnerBlocks:(e={},{type:t,clientId:n,hasControlledInnerBlocks:o})=>"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e});function V(e={},t){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;const n=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return n?n.clientId===e.clientId?e:{clientId:n.clientId}:{}}}return e}const F=(0,c.combineReducers)({blocks:z,isDragging:function(e=!1,t){switch(t.type){case"START_DRAGGING":return!0;case"STOP_DRAGGING":return!1}return e},isTyping:function(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isBlockInterfaceHidden:function(e=!1,t){switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e},draggedBlocks:function(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},selection:function(e={},t){switch(t.type){case"SELECTION_CHANGE":return t.clientId?{selectionStart:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},selectionEnd:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}}:{selectionStart:t.start||e.selectionStart,selectionEnd:t.end||e.selectionEnd};case"RESET_SELECTION":const{selectionStart:n,selectionEnd:o}=t;return{selectionStart:n,selectionEnd:o};case"MULTI_SELECT":const{start:r,end:s}=t;return r===e.selectionStart?.clientId&&s===e.selectionEnd?.clientId?e:{selectionStart:{clientId:r},selectionEnd:{clientId:s}};case"RESET_BLOCKS":const i=e?.selectionStart?.clientId,l=e?.selectionEnd?.clientId;if(!i&&!l)return e;if(!t.blocks.some((e=>e.clientId===i)))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some((e=>e.clientId===l)))return{...e,selectionEnd:e.selectionStart}}const n=V(e.selectionStart,t),o=V(e.selectionEnd,t);return n===e.selectionStart&&o===e.selectionEnd?e:{selectionStart:n,selectionEnd:o}},isMultiSelecting:function(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(e=!0,t){return"TOGGLE_SELECTION"===t.type?t.isSelectionEnabled:e},initialPosition:function(e=null,t){return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["MULTI_SELECT","SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(e={},t){if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:(e={},t)=>{switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object.fromEntries(Object.entries(e).filter((([e])=>!t.clientIds.includes(e))));case"UPDATE_BLOCK_LIST_SETTINGS":{const n="string"==typeof t.clientId?{[t.clientId]:t.settings}:t.clientId;for(const t in n)n[t]?w()(e[t],n[t])&&delete n[t]:e[t]||delete n[t];if(0===Object.keys(n).length)return e;const o={...e,...n};for(const e in n)n[e]||delete o[e];return o}}return e},insertionPoint:function(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":{const{rootClientId:n,index:o,__unstableWithInserter:r,operation:s,nearestSide:i}=t,l={rootClientId:n,index:o,__unstableWithInserter:r,operation:s,nearestSide:i};return w()(e,l)?e:l}case"HIDE_INSERTION_POINT":return null}return e},template:function(e={isValid:!0},t){return"SET_TEMPLATE_VALIDITY"===t.type?{...e,isValid:t.isValid}:e},settings:function(e=I,t){return"UPDATE_SETTINGS"===t.type?t.reset?{...I,...t.settings}:{...e,...t.settings}:e},preferences:function(e=B,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":{const n=t.blocks.reduce(((e,n)=>{const{attributes:o,name:r}=n;let s=r;const i=(0,c.select)(l.store).getActiveBlockVariation(r,o);return i?.name&&(s+="/"+i.name),"core/block"===r&&(s+="/"+o.ref),{...e,[s]:{time:t.time,count:e[s]?e[s].count+1:1}}}),e.insertUsage);return{...e,insertUsage:n}}}return e},lastBlockAttributesChange:function(e=null,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce(((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes})),{})}return e},lastFocus:function(e=!1,t){return"LAST_FOCUS"===t.type?t.lastFocus:e},editorMode:function(e="edit",t){return"INSERT_BLOCKS"===t.type&&"navigation"===e?"edit":"SET_EDITOR_MODE"===t.type?t.mode:e},hasBlockMovingClientId:function(e=null,t){return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_EDITOR_MODE"===t.type?null:e},expandedBlock:function(e=null,t){switch(t.type){case"SET_BLOCK_EXPANDED_IN_LIST_VIEW":return t.clientId;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(e={},t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":if(!t.blocks.length)return e;const n=t.blocks.map((e=>e.clientId)),o=t.meta?.source;return{clientIds:n,source:o};case"RESET_BLOCKS":return{}}return e},temporarilyEditingAsBlocks:function(e="",t){return"SET_TEMPORARILY_EDITING_AS_BLOCKS"===t.type?t.temporarilyEditingAsBlocks:e},temporarilyEditingFocusModeRevert:function(e="",t){return"SET_TEMPORARILY_EDITING_AS_BLOCKS"===t.type?t.focusModeToRevert:e},blockVisibility:function(e={},t){return"SET_BLOCK_VISIBILITY"===t.type?{...e,...t.updates}:e},blockEditingModes:function(e=new Map,t){switch(t.type){case"SET_BLOCK_EDITING_MODE":return new Map(e).set(t.clientId,t.mode);case"UNSET_BLOCK_EDITING_MODE":{const n=new Map(e);return n.delete(t.clientId),n}case"RESET_BLOCKS":return e.has("")?(new Map).set("",e.get("")):e}return e},styleOverrides:function(e=new Map,t){switch(t.type){case"SET_STYLE_OVERRIDE":return new Map(e).set(t.id,t.style);case"DELETE_STYLE_OVERRIDE":{const n=new Map(e);return n.delete(t.id),n}}return e},removalPromptData:function(e=!1,t){switch(t.type){case"DISPLAY_BLOCK_REMOVAL_PROMPT":const{clientIds:e,selectPrevious:n,message:o}=t;return{clientIds:e,selectPrevious:n,message:o};case"CLEAR_BLOCK_REMOVAL_PROMPT":return!1}return e},blockRemovalRules:function(e=!1,t){return"SET_BLOCK_REMOVAL_RULES"===t.type?t.rules:e},openedBlockSettingsMenu:function(e=null,t){var n;return"SET_OPENED_BLOCK_SETTINGS_MENU"===t.type?null!==(n=t?.clientId)&&void 0!==n?n:null:e},registeredInserterMediaCategories:function(e=[],t){return"REGISTER_INSERTER_MEDIA_CATEGORY"===t.type?[...e,t.category]:e}});const H=function(e){return(t,n)=>{const o=e(t,n);return t?(o.automaticChangeStatus=t.automaticChangeStatus,"MARK_AUTOMATIC_CHANGE"===n.type?{...o,automaticChangeStatus:"pending"}:"MARK_AUTOMATIC_CHANGE_FINAL"===n.type&&"pending"===t.automaticChangeStatus?{...o,automaticChangeStatus:"final"}:o.blocks===t.blocks&&o.selection===t.selection||"final"!==o.automaticChangeStatus&&o.selection!==t.selection?o:{...o,automaticChangeStatus:void 0}):o}}(F),G=window.wp.primitives,U=window.ReactJSXRuntime,$=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})}),W=window.wp.richText,K=Symbol("globalStylesDataKey"),Z=Symbol("selectBlockPatternsKey"),q=Symbol("reusableBlocksSelect"),Y=window.wp.privateApis,{lock:X,unlock:Q}=(0,Y.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/block-editor"),J="core/block-editor",ee=Symbol("withRootClientId"),te=(e,t,n=null)=>"boolean"==typeof e?e:Array.isArray(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n,ne=(e,t)=>{if("boolean"==typeof t)return t;const n=[...e];for(;n.length>0;){const e=n.shift();if(!te(t,e.name||e.blockName,!0))return!1;e.innerBlocks?.forEach((e=>{n.push(e)}))}return!0},oe=e=>t=>[t.settings.__experimentalBlockPatterns,t.settings.__experimentalUserPatternCategories,t.settings.__experimentalReusableBlocks,t.settings[Z]?.(e),t.blockPatterns,Q(e(J)).getReusableBlocks()];function re(e,t){return[e.blockListSettings[t],e.blocks.byClientId.get(t),e.settings.allowedBlockTypes,e.settings.templateLock,e.blockEditingModes]}const se=(e,t,n)=>(o,r)=>{let s,i;if("function"==typeof e?(s=e(o),i=e(r)):(s=o[e],i=r[e]),s>i)return"asc"===n?1:-1;if(i>s)return"asc"===n?-1:1;const l=t.findIndex((e=>e===o)),a=t.findIndex((e=>e===r));return l>a?1:a>l?-1:0};function ie(e,t,n="asc"){return e.concat().sort(se(t,e,n))}const le={user:"user",theme:"theme",directory:"directory"},ae={full:"fully",unsynced:"unsynced"},ce={name:"allPatterns",label:(0,C._x)("All","patterns")},ue={name:"myPatterns",label:(0,C.__)("My patterns")};function de(e,t,n){const o=e.name.startsWith("core/block"),r="core"===e.source||e.source?.startsWith("pattern-directory");return!(t!==le.theme||!o&&!r)||(!(t!==le.directory||!o&&r)||(t===le.user&&e.type!==le.user||(n===ae.full&&""!==e.syncStatus||!(n!==ae.unsynced||"unsynced"===e.syncStatus||!o))))}function pe(e,t,n){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};const o=t.pop();let r=e;for(const e of t){const t=r[e];r=r[e]=Array.isArray(t)?[...t]:{...t}}return r[o]=n,e}const he=(e,t,n)=>{var o;const r=Array.isArray(t)?t:t.split(".");let s=e;return r.forEach((e=>{s=s?.[e]})),null!==(o=s)&&void 0!==o?o:n};const ge=["color","border","dimensions","typography","spacing"],me={"color.palette":e=>e.colors,"color.gradients":e=>e.gradients,"color.custom":e=>void 0===e.disableCustomColors?void 0:!e.disableCustomColors,"color.customGradient":e=>void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>e.fontSizes,"typography.customFontSize":e=>void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},fe={"border.customColor":"border.color","border.customStyle":"border.style","border.customWidth":"border.width","typography.customFontStyle":"typography.fontStyle","typography.customFontWeight":"typography.fontWeight","typography.customLetterSpacing":"typography.letterSpacing","typography.customTextDecorations":"typography.textDecoration","typography.customTextTransforms":"typography.textTransform","border.customRadius":"border.radius","spacing.customMargin":"spacing.margin","spacing.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"},be=e=>fe[e]||e;function ve(e,t,...n){const o=Ke(e,t),r=[];if(t){let n=t;do{const t=Ke(e,n);(0,l.hasBlockSupport)(t,"__experimentalSettings",!1)&&r.push(n)}while(n=e.blocks.parents.get(n))}return n.map((n=>{if(ge.includes(n))return void console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");let s=(0,d.applyFilters)("blockEditor.useSetting.before",void 0,n,t,o);if(void 0!==s)return s;const i=be(n);for(const t of r){var a;const n=qe(e,t);if(s=null!==(a=he(n.settings?.blocks?.[o],i))&&void 0!==a?a:he(n.settings,i),void 0!==s)break}const c=Ln(e);var u,p;if(void 0===s&&o&&(s=he(c.__experimentalFeatures?.blocks?.[o],i)),void 0===s&&(s=he(c.__experimentalFeatures,i)),void 0!==s)return l.__EXPERIMENTAL_PATHS_WITH_OVERRIDE[i]?null!==(u=null!==(p=s.custom)&&void 0!==p?p:s.theme)&&void 0!==u?u:s.default:s;const h=me[i]?.(c);return void 0!==h?h:"typography.dropCap"===i||void 0}))}function ke(e){return e.isBlockInterfaceHidden}function _e(e){return e?.lastBlockInserted?.clientIds}function xe(e,t){return e.blocks.byClientId.get(t)}const ye=(e,t)=>{const n=t=>"disabled"===eo(e,t)&&Ft(e,t).every(n);return Ft(e,t).every(n)};const Se=(0,c.createSelector)((function e(t,n){const o=Ft(t,n),r=[];for(const n of o){const o=e(t,n);"disabled"!==eo(t,n)?r.push({clientId:n,innerBlocks:o}):r.push(...o)}return r}),(e=>[e.blocks.order,e.blockEditingModes,e.settings.templateLock,e.blockListSettings])),we=(0,c.createSelector)(((e,t,n=!1)=>vt(e,t,n).filter((t=>"disabled"!==eo(e,t)))),(e=>[e.blocks.parents,e.blockEditingModes,e.settings.templateLock,e.blockListSettings]));function Ce(e){return e.removalPromptData}function Be(e){return e.blockRemovalRules}function Ie(e){return e.openedBlockSettingsMenu}const je=(0,c.createSelector)((e=>{const t=nt(e).reduce(((e,t,n)=>(e[t]=n,e)),{});return[...e.styleOverrides].sort(((e,n)=>{var o,r;const[,{clientId:s}]=e,[,{clientId:i}]=n;return(null!==(o=t[s])&&void 0!==o?o:-1)-(null!==(r=t[i])&&void 0!==r?r:-1)}))}),(e=>[e.blocks.order,e.styleOverrides]));function Ee(e){return e.registeredInserterMediaCategories}const Te=(0,c.createSelector)((e=>{const{settings:{inserterMediaCategories:t,allowedMimeTypes:n,enableOpenverseMediaCategory:o},registeredInserterMediaCategories:r}=e;if(!t&&!r.length||!n)return;const s=t?.map((({name:e})=>e))||[];return[...t||[],...(r||[]).filter((({name:e})=>!s.includes(e)))].filter((e=>!(!o&&"openverse"===e.name)&&Object.values(n).some((t=>t.startsWith(`${e.mediaType}/`)))))}),(e=>[e.settings.inserterMediaCategories,e.settings.allowedMimeTypes,e.settings.enableOpenverseMediaCategory,e.registeredInserterMediaCategories])),Me=(0,c.createRegistrySelector)((e=>(0,c.createSelector)(((t,n=null)=>{const{getAllPatterns:o,__experimentalGetParsedPattern:r}=Q(e(J)),s=o(),{allowedBlockTypes:i}=Ln(t);return s.some((({name:e,inserter:o=!0})=>{if(!o)return!1;const{blocks:s}=r(e);return ne(s,i)&&s.every((({name:e})=>un(t,e,n)))}))}),((t,n)=>[...oe(e)(t),...re(t,n)]))));function Pe(e,t=[]){return{name:`core/block/${e.id}`,id:e.id,type:le.user,title:e.title.raw,categories:e.wp_pattern_category.map((e=>{const n=t.find((({id:t})=>t===e));return n?n.slug:e})),content:e.content.raw,syncStatus:e.wp_pattern_sync_status}}const Re=(0,c.createRegistrySelector)((e=>(0,c.createSelector)(((t,n)=>{var o,r;if(n?.startsWith("core/block/")){const o=parseInt(n.slice(11),10),r=Q(e(J)).getReusableBlocks().find((({id:e})=>e===o));return r?Pe(r,t.settings.__experimentalUserPatternCategories):null}return[...null!==(o=t.settings.__experimentalBlockPatterns)&&void 0!==o?o:[],...null!==(r=t.settings[Z]?.(e))&&void 0!==r?r:[]].find((({name:e})=>e===n))}),((t,n)=>n?.startsWith("core/block/")?[Q(e(J)).getReusableBlocks(),t.settings.__experimentalReusableBlocks]:[t.settings.__experimentalBlockPatterns,t.settings[Z]?.(e)])))),Ne=(0,c.createRegistrySelector)((e=>(0,c.createSelector)((t=>{var n,o;return[...Q(e(J)).getReusableBlocks().map((e=>Pe(e,t.settings.__experimentalUserPatternCategories))),...null!==(n=t.settings.__experimentalBlockPatterns)&&void 0!==n?n:[],...null!==(o=t.settings[Z]?.(e))&&void 0!==o?o:[]].filter(((e,t,n)=>t===n.findIndex((t=>e.name===t.name))))}),oe(e)))),Ae=(0,c.createRegistrySelector)((e=>(0,c.createSelector)((t=>{const n=t.settings[Z],o=t.settings[q];return!!n&&void 0===n(e)||!!o&&void 0===o(e)}),oe(e)))),Le=[],Oe=(0,c.createRegistrySelector)((e=>t=>{var n;const o=t.settings[q];return o?o(e):null!==(n=t.settings.__experimentalReusableBlocks)&&void 0!==n?n:Le}));function De(e){return e.lastFocus}function ze(e){return e.isDragging}function Ve(e){return e.expandedBlock}const Fe=(0,c.createSelector)(((e,t)=>{let n,o=t;for(;o=e.blocks.parents.get(o);)"core/block"!==Ke(e,o)&&"contentOnly"!==an(e,o)||(n=o);return n}),(e=>[e.blocks.parents,e.blockListSettings]));function He(e){return e.temporarilyEditingAsBlocks}function Ge(e){return e.temporarilyEditingFocusModeRevert}const Ue=[],$e=new Set,We={};function Ke(e,t){const n=e.blocks.byClientId.get(t),o="core/social-link";if("web"!==a.Platform.OS&&n?.name===o){const n=e.blocks.attributes.get(t),{service:r}=null!=n?n:{};return r?`${o}-${r}`:o}return n?n.name:null}function Ze(e,t){const n=e.blocks.byClientId.get(t);return!!n&&n.isValid}function qe(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function Ye(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}const Xe=(0,c.createSelector)(((e,t)=>{const n=e.blocks.byClientId.get(t);return n?{...n,attributes:qe(e,t)}:null}),((e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]));function Qe(e,t){const n=t&&Kn(e,t)?"controlled||"+t:t||"";return e.blocks.tree.get(n)?.innerBlocks||Ue}const Je=(0,c.createSelector)(((e,t)=>(y()("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),{clientId:t,innerBlocks:et(e,t)})),(e=>[e.blocks.order])),et=(0,c.createSelector)(((e,t="")=>(y()("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),Ft(e,t).map((t=>Je(e,t))))),(e=>[e.blocks.order])),tt=(0,c.createSelector)(((e,t)=>{t=Array.isArray(t)?[...t]:[t];const n=[];for(const o of t){const t=e.blocks.order.get(o);t&&n.push(...t)}let o=0;for(;o<n.length;){const t=n[o],r=e.blocks.order.get(t);r&&n.splice(o+1,0,...r),o++}return n}),(e=>[e.blocks.order])),nt=e=>tt(e,""),ot=(0,c.createSelector)(((e,t)=>{const n=nt(e);if(!t)return n.length;let o=0;for(const r of n){e.blocks.byClientId.get(r).name===t&&o++}return o}),(e=>[e.blocks.order,e.blocks.byClientId])),rt=(0,c.createSelector)(((e,t)=>{if(!t)return Ue;const n=Array.isArray(t)?t:[t],o=nt(e).filter((t=>{const o=e.blocks.byClientId.get(t);return n.includes(o.name)}));return o.length>0?o:Ue}),(e=>[e.blocks.order,e.blocks.byClientId]));function st(e,t){return y()("wp.data.select( 'core/block-editor' ).__experimentalGetGlobalBlocksByName",{since:"6.5",alternative:"wp.data.select( 'core/block-editor' ).getBlocksByName"}),rt(e,t)}const it=(0,c.createSelector)(((e,t)=>(Array.isArray(t)?t:[t]).map((t=>Ye(e,t)))),((e,t)=>(Array.isArray(t)?t:[t]).map((t=>e.blocks.tree.get(t))))),lt=(0,c.createSelector)(((e,t)=>it(e,t).filter(Boolean).map((e=>e.name))),((e,t)=>it(e,t)));function at(e,t){return Ft(e,t).length}function ct(e){return e.selection.selectionStart}function ut(e){return e.selection.selectionEnd}function dt(e){return e.selection.selectionStart.clientId}function pt(e){return e.selection.selectionEnd.clientId}function ht(e){const t=It(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function gt(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function mt(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function ft(e){const t=mt(e);return t?Ye(e,t):null}function bt(e,t){var n;return null!==(n=e.blocks.parents.get(t))&&void 0!==n?n:null}const vt=(0,c.createSelector)(((e,t,n=!1)=>{const o=[];let r=t;for(;r=e.blocks.parents.get(r);)o.push(r);return o.length?n?o:o.reverse():Ue}),(e=>[e.blocks.parents])),kt=(0,c.createSelector)(((e,t,n,o=!1)=>{const r=vt(e,t,o),s=Array.isArray(n)?e=>n.includes(e):e=>n===e;return r.filter((t=>s(Ke(e,t))))}),(e=>[e.blocks.parents]));function _t(e,t){let n,o=t;do{n=o,o=e.blocks.parents.get(o)}while(o);return n}function xt(e,t){const n=mt(e),o=[...vt(e,t),t],r=[...vt(e,n),n];let s;const i=Math.min(o.length,r.length);for(let e=0;e<i&&o[e]===r[e];e++)s=o[e];return s}function yt(e,t,n=1){if(void 0===t&&(t=mt(e)),void 0===t&&(t=n<0?Et(e):Tt(e)),!t)return null;const o=bt(e,t);if(null===o)return null;const{order:r}=e.blocks,s=r.get(o),i=s.indexOf(t)+1*n;return i<0||i===s.length?null:s[i]}function St(e,t){return yt(e,t,-1)}function wt(e,t){return yt(e,t,1)}function Ct(e){return e.initialPosition}const Bt=(0,c.createSelector)((e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(!t.clientId||!n.clientId)return Ue;if(t.clientId===n.clientId)return[t.clientId];const o=bt(e,t.clientId);if(null===o)return Ue;const r=Ft(e,o),s=r.indexOf(t.clientId),i=r.indexOf(n.clientId);return s>i?r.slice(i,s+1):r.slice(s,i+1)}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function It(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?Ue:Bt(e)}const jt=(0,c.createSelector)((e=>{const t=It(e);return t.length?t.map((t=>Ye(e,t))):Ue}),(e=>[...Bt.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function Et(e){return It(e)[0]||null}function Tt(e){const t=It(e);return t[t.length-1]||null}function Mt(e,t){return Et(e)===t}function Pt(e,t){return-1!==It(e).indexOf(t)}const Rt=(0,c.createSelector)(((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=bt(e,n),o=Pt(e,n);return o}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function Nt(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function At(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function Lt(e){const t=ct(e),n=ut(e);return!t.attributeKey&&!n.attributeKey&&void 0===t.offset&&void 0===n.offset}function Ot(e){const t=ct(e),n=ut(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function Dt(e){return Bt(e).some((t=>{const n=Ke(e,t);return!(0,l.getBlockType)(n).merge}))}function zt(e,t){const n=ct(e),o=ut(e);if(n.clientId===o.clientId)return!1;if(!n.attributeKey||!o.attributeKey||void 0===n.offset||void 0===o.offset)return!1;const r=bt(e,n.clientId);if(r!==bt(e,o.clientId))return!1;const s=Ft(e,r);let i,a;s.indexOf(n.clientId)>s.indexOf(o.clientId)?(i=o,a=n):(i=n,a=o);const c=t?a.clientId:i.clientId,u=t?i.clientId:a.clientId,d=Ke(e,c);if(!(0,l.getBlockType)(d).merge)return!1;const p=Ye(e,u);if(p.name===d)return!0;const h=(0,l.switchToBlockType)(p,d);return h&&h.length}const Vt=e=>{const t=ct(e),n=ut(e);if(t.clientId===n.clientId)return Ue;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return Ue;const o=bt(e,t.clientId);if(o!==bt(e,n.clientId))return Ue;const r=Ft(e,o),s=r.indexOf(t.clientId),i=r.indexOf(n.clientId),[l,a]=s>i?[n,t]:[t,n],c=Ye(e,l.clientId),u=Ye(e,a.clientId),d=c.attributes[l.attributeKey],p=u.attributes[a.attributeKey];let h=(0,W.create)({html:d}),g=(0,W.create)({html:p});return h=(0,W.remove)(h,0,l.offset),g=(0,W.remove)(g,a.offset,g.text.length),[{...c,attributes:{...c.attributes,[l.attributeKey]:(0,W.toHTMLString)({value:h})}},{...u,attributes:{...u.attributes,[a.attributeKey]:(0,W.toHTMLString)({value:g})}}]};function Ft(e,t){return e.blocks.order.get(t||"")||Ue}function Ht(e,t){return Ft(e,bt(e,t)).indexOf(t)}function Gt(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function Ut(e,t,n=!1){const o=Bt(e);return!!o.length&&(n?o.some((n=>vt(e,n,!0).includes(t))):o.some((n=>bt(e,n)===t)))}function $t(e,t,n=!1){return Ft(e,t).some((t=>en(e,t)||n&&$t(e,t,n)))}function Wt(e,t){if(!t)return!1;const n=It(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function Kt(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function Zt(e){return e.isMultiSelecting}function qt(e){return e.isSelectionEnabled}function Yt(e,t){return e.blocksMode[t]||"visual"}function Xt(e){return e.isTyping}function Qt(e){return!!e.draggedBlocks.length}function Jt(e){return e.draggedBlocks}function en(e,t){return e.draggedBlocks.includes(t)}function tn(e,t){if(!Qt(e))return!1;return vt(e,t).some((t=>en(e,t)))}function nn(){return y()('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}const on=(0,c.createSelector)((e=>{let t,n;const{insertionPoint:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:s}=r;return s?(t=bt(e,s)||void 0,n=Ht(e,r.clientId)+1):n=Ft(e).length,{rootClientId:t,index:n}}),(e=>[e.insertionPoint,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]));function rn(e){return null!==e.insertionPoint}function sn(e){return e.template.isValid}function ln(e){return e.settings.template}function an(e,t){var n,o;return t?null!==(n=An(e,t)?.templateLock)&&void 0!==n&&n:null!==(o=e.settings.templateLock)&&void 0!==o&&o}const cn=(e,t,n=null)=>{let o;if(t&&"object"==typeof t?(o=t,t=o.name):o=(0,l.getBlockType)(t),!o)return!1;const{allowedBlockTypes:r}=Ln(e);if(!te(r,t,!0))return!1;if(!!an(e,n))return!1;if("disabled"===eo(e,null!=n?n:""))return!1;const s=An(e,n);if(n&&void 0===s)return!1;const i=Ke(e,n),a=(0,l.getBlockType)(i),c=a?.allowedBlocks;let u=te(c,t);if(!1!==u){const e=s?.allowedBlocks,n=te(e,t);null!==n&&(u=n)}const p=o.parent,h=te(p,i);let g=!0;const m=o.ancestor;if(m){g=[n,...vt(e,n)].some((t=>te(m,Ke(e,t))))}const f=g&&(null===u&&null===h||!0===u||!0===h);return f?(0,d.applyFilters)("blockEditor.__unstableCanInsertBlockType",f,o,n,{getBlock:Ye.bind(null,e),getBlockParentsByBlockName:kt.bind(null,e)}):f},un=(0,c.createSelector)(cn,((e,t,n)=>re(e,n)));function dn(e,t,n=null){return t.every((t=>un(e,Ke(e,t),n)))}function pn(e,t){const n=qe(e,t);if(null===n)return!0;if(void 0!==n.lock?.remove)return!n.lock.remove;const o=bt(e,t);return!an(e,o)&&"disabled"!==eo(e,o)}function hn(e,t){return t.every((t=>pn(e,t)))}function gn(e,t){const n=qe(e,t);if(null===n)return!0;if(void 0!==n.lock?.move)return!n.lock.move;const o=bt(e,t);return"all"!==an(e,o)&&"disabled"!==eo(e,o)}function mn(e,t){return t.every((t=>gn(e,t)))}function fn(e,t){const n=qe(e,t);if(null===n)return!0;const{lock:o}=n;return!o?.edit}function bn(e,t){return!!(0,l.hasBlockSupport)(t,"lock",!0)&&!!e.settings?.canLockBlocks}function vn(e,t){var n;return null!==(n=e.preferences.insertUsage?.[t])&&void 0!==n?n:null}const kn=(e,t,n)=>!!(0,l.hasBlockSupport)(t,"inserter",!0)&&cn(e,t.name,n),_n=(e,t)=>{if(!e)return t;const 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}},xn=(e,{buildScope:t="inserter"})=>n=>{const o=n.name;let r=!1;(0,l.hasBlockSupport)(n.name,"multiple",!0)||(r=it(e,nt(e)).some((({name:e})=>e===n.name)));const{time:s,count:i=0}=vn(e,o)||{},a={id:o,name:n.name,title:n.title,icon:n.icon,isDisabled:r,frecency:_n(s,i)};if("transform"===t)return a;const c=(0,l.getBlockVariations)(n.name,"inserter");return{...a,initialAttributes:{},description:n.description,category:n.category,keywords:n.keywords,variations:c,example:n.example,utility:1}},yn=(0,c.createRegistrySelector)((e=>(0,c.createSelector)(((t,n=null,o=We)=>{const r=cn(t,"core/block",n)?Q(e(J)).getReusableBlocks().map((e=>{const n=e.wp_pattern_sync_status?$:{src:$,foreground:"var(--wp-block-synced-color)"},o=`core/block/${e.id}`,{time:r,count:s=0}=vn(t,o)||{},i=_n(r,s);return{id:o,name:"core/block",initialAttributes:{ref:e.id},title:e.title?.raw,icon:n,category:"reusable",keywords:["reusable"],isDisabled:!1,utility:1,frecency:i,content:e.content?.raw,syncStatus:e.wp_pattern_sync_status}})):[],s=xn(t,{buildScope:"inserter"});let i=(0,l.getBlockTypes)().filter((e=>(0,l.hasBlockSupport)(e,"inserter",!0))).map(s);i=o[ee]?i.reduce(((e,o)=>{for(o.rootClientId=null!=n?n:"";!cn(t,o.name,o.rootClientId);){if(!o.rootClientId){let e;try{e=Q(Ln(t)).sectionRootClientId}catch(e){}e&&cn(t,o.name,e)?o.rootClientId=e:delete o.rootClientId;break}{const e=bt(t,o.rootClientId);o.rootClientId=e}}return o.hasOwnProperty("rootClientId")&&e.push(o),e}),[]):i.filter((e=>kn(t,e,n)));const a=i.reduce(((e,n)=>{const{variations:o=[]}=n;if(o.some((({isDefault:e})=>e))||e.push(n),o.length){const r=((e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:s=0}=vn(e,o)||{};return{...t,id:o,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:_n(r,s)}})(t,n);e.push(...o.map(r))}return e}),[]),{core:c,noncore:u}=a.reduce(((e,t)=>{const{core:n,noncore:o}=e;return(t.name.startsWith("core/")?n:o).push(t),e}),{core:[],noncore:[]});return[...[...c,...u],...r]}),((t,n)=>[(0,l.getBlockTypes)(),Q(e(J)).getReusableBlocks(),t.blocks.order,t.preferences.insertUsage,...re(t,n)])))),Sn=(0,c.createSelector)(((e,t,n=null)=>{const o=Array.isArray(t)?t:[t],r=xn(e,{buildScope:"transform"}),s=(0,l.getBlockTypes)().filter((t=>kn(e,t,n))).map(r),i=Object.fromEntries(Object.entries(s).map((([,e])=>[e.name,e]))),a=(0,l.getPossibleBlockTransformations)(o).reduce(((e,t)=>(i[t?.name]&&e.push(i[t.name]),e)),[]);return ie(a,(e=>i[e.name].frecency),"desc")}),((e,t,n)=>[(0,l.getBlockTypes)(),e.preferences.insertUsage,...re(e,n)])),wn=(0,c.createRegistrySelector)((e=>(t,n=null)=>{if((0,l.getBlockTypes)().some((e=>kn(t,e,n))))return!0;return cn(t,"core/block",n)&&Q(e(J)).getReusableBlocks().length>0})),Cn=(0,c.createRegistrySelector)((e=>(0,c.createSelector)(((t,n=null)=>{if(!n)return;const o=(0,l.getBlockTypes)().filter((e=>kn(t,e,n)));return cn(t,"core/block",n)&&Q(e(J)).getReusableBlocks().length>0&&o.push("core/block"),o}),((t,n)=>[(0,l.getBlockTypes)(),Q(e(J)).getReusableBlocks(),...re(t,n)])))),Bn=(0,c.createSelector)(((e,t=null)=>(y()('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),Cn(e,t))),((e,t)=>Cn.getDependants(e,t)));function In(e,t=null){var n;if(!t)return;const{defaultBlock:o,directInsert:r}=null!==(n=e.blockListSettings[t])&&void 0!==n?n:{};return o&&r?o:void 0}function jn(e,t=null){return y()('wp.data.select( "core/block-editor" ).__experimentalGetDirectInsertBlock',{alternative:'wp.data.select( "core/block-editor" ).getDirectInsertBlock',since:"6.3",version:"6.4"}),In(e,t)}const En=(0,c.createRegistrySelector)((e=>(0,c.createSelector)(((t,n)=>{const o=Q(e(J)).getPatternBySlug(n);if(!o)return null;const r=(0,l.parse)(o.content,{__unstableSkipMigrationLogs:!0});return 1===r.length&&(r[0].attributes={...r[0].attributes,metadata:{...r[0].attributes.metadata||{},categories:o.categories,patternName:o.name,name:r[0].attributes.metadata?.name||o.title}}),{...o,blocks:r}}),((t,n)=>[Q(e(J)).getPatternBySlug(n)])))),Tn=e=>(t,n)=>[...oe(e)(t),...re(t,n)],Mn=(0,c.createRegistrySelector)((e=>(0,c.createSelector)(((t,n=null)=>{const{getAllPatterns:o,__experimentalGetParsedPattern:r}=Q(e(J)),s=o(),{allowedBlockTypes:i}=Ln(t),l=s.filter((({inserter:e=!0})=>!!e)).map((({name:e})=>r(e))),a=l.filter((({blocks:e})=>ne(e,i))),c=a.filter((({blocks:e})=>e.every((({name:e})=>un(t,e,n)))));return c}),Tn(e)))),Pn=(0,c.createRegistrySelector)((e=>(0,c.createSelector)(((t,n,o=null)=>{if(!n)return Ue;const r=e(J).__experimentalGetAllowedPatterns(o),s=Array.isArray(n)?n:[n],i=r.filter((e=>e?.blockTypes?.some?.((e=>s.includes(e)))));return 0===i.length?Ue:i}),((t,n,o)=>Tn(e)(t,o))))),Rn=(0,c.createRegistrySelector)((e=>(y()('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),e(J).getPatternsByBlockTypes))),Nn=(0,c.createRegistrySelector)((e=>(0,c.createSelector)(((t,n,o=null)=>{if(!n)return Ue;if(n.some((({clientId:e,innerBlocks:n})=>n.length||Kn(t,e))))return Ue;const r=Array.from(new Set(n.map((({name:e})=>e))));return e(J).getPatternsByBlockTypes(r,o)}),((t,n,o)=>Tn(e)(t,o)))));function An(e,t){return e.blockListSettings[t]}function Ln(e){return e.settings}function On(e){return e.blocks.isPersistentChange}const Dn=(0,c.createSelector)(((e,t=[])=>t.reduce(((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t),{})),(e=>[e.blockListSettings])),zn=(0,c.createRegistrySelector)((e=>(0,c.createSelector)(((t,n)=>{y()("wp.data.select( 'core/block-editor' ).__experimentalGetReusableBlockTitle",{since:"6.6",version:"6.8"});const o=Q(e(J)).getReusableBlocks().find((e=>e.id===n));return o?o.title?.raw:null}),(()=>[Q(e(J)).getReusableBlocks()]))));function Vn(e){return e.blocks.isIgnoredChange}function Fn(e){return e.lastBlockAttributesChange}function Hn(e){return"navigation"===e.editorMode}function Gn(e){return e.editorMode}function Un(e){return e.hasBlockMovingClientId}function $n(e){return!!e.automaticChangeStatus}function Wn(e,t){return e.highlightedBlock===t}function Kn(e,t){return!!e.blocks.controlledInnerBlocks[t]}const Zn=(0,c.createSelector)(((e,t)=>{if(!t.length)return null;const n=mt(e);if(t.includes(Ke(e,n)))return n;const o=It(e),r=kt(e,n||o[0],t);return r?r[r.length-1]:null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function qn(e,t,n){const{lastBlockInserted:o}=e;return o.clientIds?.includes(t)&&o.source===n}function Yn(e,t){var n;return null===(n=e.blockVisibility?.[t])||void 0===n||n}const Xn=(0,c.createSelector)((e=>{const t=new Set(Object.keys(e.blockVisibility).filter((t=>e.blockVisibility[t])));return 0===t.size?$e:t}),(e=>[e.blockVisibility]));function Qn(e,t){if("default"!==eo(e,t))return!1;if(!fn(e,t))return!0;const n=Gn(e);if("zoom-out"===n){const{sectionRootClientId:n}=Q(Ln(e));if(n){const o=Ft(e,n);if(o?.includes(t))return!0}else if(t&&!bt(e,t))return!0}const o=(0,l.hasBlockSupport)(Ke(e,t),"__experimentalDisableBlockOverlay",!1);return("navigation"===n||!o&&Kn(e,t))&&!Gt(e,t)&&!Ut(e,t,!0)}function Jn(e,t){let n=e.blocks.parents.get(t);for(;n;){if(Qn(e,n))return!0;n=e.blocks.parents.get(n)}return!1}const eo=(0,c.createRegistrySelector)((e=>(t,n="")=>{null===n&&(n="");if("zoom-out"===Gn(t)){const{sectionRootClientId:e}=Q(Ln(t));if(""===n)return e?"disabled":"contentOnly";if(n===e)return"contentOnly";const o=Ft(t,e);if(!o?.includes(n))return"disabled"}const o=t.blockEditingModes.get(n);if(o)return o;if(!n)return"default";const r=bt(t,n);if("contentOnly"===an(t,r)){const o=Ke(t,n);return e(l.store).__experimentalHasContentRoleAttribute(o)?"contentOnly":"disabled"}const s=eo(t,r);return"contentOnly"===s?"default":s})),to=(0,c.createRegistrySelector)((e=>(t,n="")=>{const o=n||mt(t);if(!o)return!1;const{getGroupingBlockName:r}=e(l.store),s=Ye(t,o),i=r();return s&&(s.name===i||(0,l.getBlockType)(s.name)?.transforms?.ungroup)&&!!s.innerBlocks.length&&pn(t,o)})),no=(0,c.createRegistrySelector)((e=>(t,n=Ue)=>{const{getGroupingBlockName:o}=e(l.store),r=o(),s=n?.length?n:Bt(t),i=s?.length?bt(t,s[0]):void 0;return un(t,r,i)&&s.length&&hn(t,s)})),oo=(e,t)=>(y()("wp.data.select( 'core/block-editor' ).__unstableGetContentLockingParent",{since:"6.1",version:"6.7"}),Fe(e,t));function ro(e){return y()("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingAsBlocks",{since:"6.1",version:"6.7"}),He(e)}function so(e){return y()("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingFocusModeToRevert",{since:"6.5",version:"6.7"}),Ge(e)}const io=new WeakSet,lo=["inserterMediaCategories","blockInspectorAnimation"];function ao(e,{stripExperimentalSettings:t=!1,reset:n=!1}={}){let o=e;if(t&&"web"===a.Platform.OS){o={};for(const t in e)lo.includes(t)||(o[t]=e[t])}return{type:"UPDATE_SETTINGS",settings:o,reset:n}}function co(){return{type:"HIDE_BLOCK_INTERFACE"}}function uo(){return{type:"SHOW_BLOCK_INTERFACE"}}const po=(e,t=!0,n=!1)=>({select:o,dispatch:r,registry:s})=>{if(!e||!e.length)return;var i;i=e,e=Array.isArray(i)?i:[i];if(!o.canRemoveBlocks(e))return;const l=!n&&o.getBlockRemovalRules();if(l){function a(e){const t=[],n=[...e];for(;n.length;){const{innerBlocks:e,...o}=n.shift();n.push(...e),t.push(o)}return t}const c=a(e.map(o.getBlock));let u;for(const d of l)if(u=d.callback(c),u)return void r(go(e,t,u))}t&&r.selectPreviousBlock(e[0],t),s.batch((()=>{r({type:"REMOVE_BLOCKS",clientIds:e}),r(ho())}))},ho=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;const{__unstableHasCustomAppender:n}=e.getSettings();n||t.insertDefaultBlock()};function go(e,t,n){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,message:n}}function mo(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function fo(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}function bo(e){return{type:"SET_OPENED_BLOCK_SETTINGS_MENU",clientId:e}}function vo(e,t){return{type:"SET_STYLE_OVERRIDE",id:e,style:t}}function ko(e){return{type:"DELETE_STYLE_OVERRIDE",id:e}}function _o(e){return({dispatch:t,select:n,registry:o})=>{o.batch((()=>{t({type:"SET_EXPLICIT_PERSISTENT",isPersistentChange:!1}),e(),t({type:"SET_EXPLICIT_PERSISTENT",isPersistentChange:void 0});const o=n.getBlocks();io.add(o)}))}}function xo(e=null){return{type:"LAST_FOCUS",lastFocus:e}}function yo(e){return({select:t,dispatch:n,registry:o})=>{const r=Q(o.select(Gr)).getTemporarilyEditingFocusModeToRevert();n.__unstableMarkNextChangeAsNotPersistent(),n.updateBlockAttributes(e,{templateLock:"contentOnly"}),n.updateBlockListSettings(e,{...t.getBlockListSettings(e),templateLock:"contentOnly"}),n.updateSettings({focusMode:r}),n.__unstableSetTemporarilyEditingAsBlocks()}}function So(){return{type:"START_DRAGGING"}}function wo(){return{type:"STOP_DRAGGING"}}function Co(e){return{type:"SET_BLOCK_EXPANDED_IN_LIST_VIEW",clientId:e}}const Bo=e=>({select:t,dispatch:n})=>{n.__unstableMarkNextChangeAsNotPersistent(),n.updateBlockAttributes(e,{templateLock:void 0}),n.updateBlockListSettings(e,{...t.getBlockListSettings(e),templateLock:!1});const o=t.getSettings().focusMode;n.updateSettings({focusMode:!0}),n.__unstableSetTemporarilyEditingAsBlocks(e,o)},Io=window.wp.a11y,jo=window.wp.notices,Eo="†";function To(e){if(e)return Object.keys(e).find((t=>{const n=e[t];return("string"==typeof n||n instanceof W.RichTextData)&&-1!==n.toString().indexOf(Eo)}))}function Mo(e){for(const[t,n]of Object.entries(e.attributes))if("rich-text"===n.source||"html"===n.source)return t}const Po=e=>Array.isArray(e)?e:[e],Ro=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(No(e))},No=e=>({select:t,dispatch:n})=>{const o=t.getTemplate(),r=t.getTemplateLock(),s=!o||"all"!==r||(0,l.doBlocksMatchTemplate)(e,o);if(s!==t.isValidTemplate())return n.setTemplateValidity(s),s};function Ao(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Lo(e){return y()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function Oo(e,t,n=!1){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:Po(e),attributes:t,uniqueByBlock:n}}function Do(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function zo(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const Vo=(e,t=!1)=>({select:n,dispatch:o})=>{const r=n.getPreviousBlockClientId(e);if(r)o.selectBlock(r,-1);else if(t){const t=n.getBlockRootClientId(e);t&&o.selectBlock(t,-1)}},Fo=e=>({select:t,dispatch:n})=>{const o=t.getNextBlockClientId(e);o&&n.selectBlock(o)};function Ho(){return{type:"START_MULTI_SELECT"}}function Go(){return{type:"STOP_MULTI_SELECT"}}const Uo=(e,t,n=0)=>({select:o,dispatch:r})=>{if(o.getBlockRootClientId(e)!==o.getBlockRootClientId(t))return;r({type:"MULTI_SELECT",start:e,end:t,initialPosition:n});const s=o.getSelectedBlockCount();(0,Io.speak)((0,C.sprintf)((0,C._n)("%s block selected.","%s blocks selected.",s),s),"assertive")};function $o(){return{type:"CLEAR_SELECTED_BLOCK"}}function Wo(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}const Ko=(e,t,n,o=0,r)=>({select:s,dispatch:i,registry:l})=>{e=Po(e),t=Po(t);const a=s.getBlockRootClientId(e[0]);for(let e=0;e<t.length;e++){const n=t[e];if(!s.canInsertBlockType(n.name,a))return}l.batch((()=>{i({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r}),i.ensureDefaultBlock()}))};function Zo(e,t){return Ko(e,t)}const qo=e=>(t,n)=>({select:o,dispatch:r})=>{o.canMoveBlocks(t)&&r({type:e,clientIds:Po(t),rootClientId:n})},Yo=qo("MOVE_BLOCKS_DOWN"),Xo=qo("MOVE_BLOCKS_UP"),Qo=(e,t="",n="",o)=>({select:r,dispatch:s})=>{if(r.canMoveBlocks(e)){if(t!==n){if(!r.canRemoveBlocks(e))return;if(!r.canInsertBlocks(e,n))return}s({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o})}};function Jo(e,t="",n="",o){return Qo([e],t,n,o)}function er(e,t,n,o,r){return tr([e],t,n,o,0,r)}const tr=(e,t,n,o=!0,r=0,s)=>({select:i,dispatch:l})=>{null!==r&&"object"==typeof r&&(s=r,r=0,y()("meta argument in wp.data.dispatch('core/block-editor')",{since:"5.8",hint:"The meta argument is now the 6th argument of the function"})),e=Po(e);const a=[];for(const t of e){i.canInsertBlockType(t.name,n)&&a.push(t)}a.length&&l({type:"INSERT_BLOCKS",blocks:a,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:s})};function nr(e,t,n={}){const{__unstableWithInserter:o,operation:r,nearestSide:s}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o,operation:r,nearestSide:s}}const or=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function rr(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const sr=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});const n=e.getBlocks(),o=e.getTemplate(),r=(0,l.synchronizeBlocksWithTemplate)(n,o);t.resetBlocks(r)},ir=e=>({registry:t,select:n,dispatch:o})=>{const r=n.getSelectionStart(),s=n.getSelectionEnd();if(r.clientId===s.clientId)return;if(!r.attributeKey||!s.attributeKey||void 0===r.offset||void 0===s.offset)return!1;const i=n.getBlockRootClientId(r.clientId);if(i!==n.getBlockRootClientId(s.clientId))return;const a=n.getBlockOrder(i);let c,u;a.indexOf(r.clientId)>a.indexOf(s.clientId)?(c=s,u=r):(c=r,u=s);const d=e?u:c,p=n.getBlock(d.clientId),h=(0,l.getBlockType)(p.name);if(!h.merge)return;const g=c,m=u,f=n.getBlock(g.clientId),b=n.getBlock(m.clientId),v=f.attributes[g.attributeKey],k=b.attributes[m.attributeKey];let _=(0,W.create)({html:v}),x=(0,W.create)({html:k});_=(0,W.remove)(_,g.offset,_.text.length),x=(0,W.insert)(x,Eo,0,m.offset);const y=(0,l.cloneBlock)(f,{[g.attributeKey]:(0,W.toHTMLString)({value:_})}),S=(0,l.cloneBlock)(b,{[m.attributeKey]:(0,W.toHTMLString)({value:x})}),w=e?y:S,C=f.name===b.name?[w]:(0,l.switchToBlockType)(w,h.name);if(!C||!C.length)return;let B;if(e){const e=C.pop();B=h.merge(e.attributes,S.attributes)}else{const e=C.shift();B=h.merge(y.attributes,e.attributes)}const I=To(B),j=B[I],E=(0,W.create)({html:j}),T=E.text.indexOf(Eo),M=(0,W.remove)(E,T,T+1),P=(0,W.toHTMLString)({value:M});B[I]=P;const R=n.getSelectedBlockClientIds(),N=[...e?C:[],{...p,attributes:{...p.attributes,...B}},...e?[]:C];t.batch((()=>{o.selectionChange(p.clientId,I,T,T),o.replaceBlocks(R,N,0,n.getSelectedBlocksInitialCaretPosition())}))},lr=(e=[])=>({registry:t,select:n,dispatch:o})=>{const r=n.getSelectionStart(),s=n.getSelectionEnd(),i=n.getBlockRootClientId(r.clientId),a=n.getBlockRootClientId(s.clientId);if(i!==a)return;const c=n.getBlockOrder(i);let u,d;c.indexOf(r.clientId)>c.indexOf(s.clientId)?(u=s,d=r):(u=r,d=s);const p=u,h=d,g=n.getBlock(p.clientId),m=n.getBlock(h.clientId),f=(0,l.getBlockType)(g.name),b=(0,l.getBlockType)(m.name),v="string"==typeof p.attributeKey?p.attributeKey:Mo(f),k="string"==typeof h.attributeKey?h.attributeKey:Mo(b),_=n.getBlockAttributes(p.clientId),x=_?.metadata?.bindings;if(x?.[v]){if(e.length){const{createWarningNotice:D}=t.dispatch(jo.store);return void D((0,C.__)("Blocks can't be inserted into other blocks with bindings"),{type:"snackbar"})}return void o.insertAfterBlock(p.clientId)}if(!v||!k||void 0===r.offset||void 0===s.offset)return;if(p.clientId===h.clientId&&v===k&&p.offset===h.offset)if(e.length){if((0,l.isUnmodifiedDefaultBlock)(g))return void o.replaceBlocks([p.clientId],e,e.length-1,-1)}else if(!n.getBlockOrder(p.clientId).length){function z(){const e=(0,l.getDefaultBlockName)();return n.canInsertBlockType(e,i)?(0,l.createBlock)(e):(0,l.createBlock)(n.getBlockName(p.clientId))}const V=_[v].length;if(0===p.offset&&V)return void o.insertBlocks([z()],n.getBlockIndex(p.clientId),i,!1);if(p.offset===V)return void o.insertBlocks([z()],n.getBlockIndex(p.clientId)+1,i)}const y=g.attributes[v],S=m.attributes[k];let w=(0,W.create)({html:y}),B=(0,W.create)({html:S});w=(0,W.remove)(w,p.offset,w.text.length),B=(0,W.remove)(B,0,h.offset);let I={...g,innerBlocks:g.clientId===m.clientId?[]:g.innerBlocks,attributes:{...g.attributes,[v]:(0,W.toHTMLString)({value:w})}},j={...m,clientId:g.clientId===m.clientId?(0,l.createBlock)(m.name).clientId:m.clientId,attributes:{...m.attributes,[k]:(0,W.toHTMLString)({value:B})}};const E=(0,l.getDefaultBlockName)();if(g.clientId===m.clientId&&E&&j.name!==E&&n.canInsertBlockType(E,i)){const F=(0,l.switchToBlockType)(j,E);1===F?.length&&(j=F[0])}if(!e.length)return void o.replaceBlocks(n.getSelectedBlockClientIds(),[I,j]);let T;const M=[],P=[...e],R=P.shift(),N=(0,l.getBlockType)(I.name),A=N.merge&&R.name===N.name?[R]:(0,l.switchToBlockType)(R,N.name);if(A?.length){const H=A.shift();I={...I,attributes:{...I.attributes,...N.merge(I.attributes,H.attributes)}},M.push(I),T={clientId:I.clientId,attributeKey:v,offset:(0,W.create)({html:I.attributes[v]}).text.length},P.unshift(...A)}else(0,l.isUnmodifiedBlock)(I)||M.push(I),M.push(R);const L=P.pop(),O=(0,l.getBlockType)(j.name);if(P.length&&M.push(...P),L){const G=O.merge&&O.name===L.name?[L]:(0,l.switchToBlockType)(L,O.name);if(G?.length){const U=G.pop();M.push({...j,attributes:{...j.attributes,...O.merge(U.attributes,j.attributes)}}),M.push(...G),T={clientId:j.clientId,attributeKey:k,offset:(0,W.create)({html:U.attributes[k]}).text.length}}else M.push(L),(0,l.isUnmodifiedBlock)(j)||M.push(j)}else(0,l.isUnmodifiedBlock)(j)||M.push(j);t.batch((()=>{o.replaceBlocks(n.getSelectedBlockClientIds(),M,M.length-1,0),T&&o.selectionChange(T.clientId,T.attributeKey,T.offset,T.offset)}))},ar=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),o=e.getSelectionEnd();t.selectionChange({start:{clientId:n.clientId},end:{clientId:o.clientId}})},cr=(e,t)=>({registry:n,select:o,dispatch:r})=>{const s=e,i=t,a=o.getBlock(s),c=(0,l.getBlockType)(a.name);if(!c)return;const u=o.getBlock(i);if(!c.merge&&(0,l.getBlockSupport)(a.name,"__experimentalOnMerge")){const e=(0,l.switchToBlockType)(u,c.name);if(1!==e?.length)return void r.selectBlock(a.clientId);const[t]=e;return t.innerBlocks.length<1?void r.selectBlock(a.clientId):void n.batch((()=>{r.insertBlocks(t.innerBlocks,void 0,s),r.removeBlock(i),r.selectBlock(t.innerBlocks[0].clientId);const e=o.getNextBlockClientId(s);if(e&&o.getBlockName(s)===o.getBlockName(e)){const t=o.getBlockAttributes(s),n=o.getBlockAttributes(e);Object.keys(t).every((e=>t[e]===n[e]))&&(r.moveBlocksToPosition(o.getBlockOrder(e),e,s),r.removeBlock(e,!1))}}))}if((0,l.isUnmodifiedDefaultBlock)(a))return void r.removeBlock(s,o.isBlockSelected(s));if((0,l.isUnmodifiedDefaultBlock)(u))return void r.removeBlock(i,o.isBlockSelected(i));if(!c.merge)return void r.selectBlock(a.clientId);const d=(0,l.getBlockType)(u.name),{clientId:p,attributeKey:h,offset:g}=o.getSelectionStart(),m=(p===s?c:d).attributes[h],f=(p===s||p===i)&&void 0!==h&&void 0!==g&&!!m;m||("number"==typeof h?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 "+typeof h):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const b=(0,l.cloneBlock)(a),v=(0,l.cloneBlock)(u);if(f){const e=p===s?b:v,t=e.attributes[h],n=(0,W.insert)((0,W.create)({html:t}),Eo,g,g);e.attributes[h]=(0,W.toHTMLString)({value:n})}const k=a.name===u.name?[v]:(0,l.switchToBlockType)(v,a.name);if(!k||!k.length)return;const _=c.merge(b.attributes,k[0].attributes);if(f){const e=To(_),t=_[e],n=(0,W.create)({html:t}),o=n.text.indexOf(Eo),s=(0,W.remove)(n,o,o+1),i=(0,W.toHTMLString)({value:s});_[e]=i,r.selectionChange(a.clientId,e,o,o)}r.replaceBlocks([a.clientId,u.clientId],[{...a,attributes:{...a.attributes,..._}},...k.slice(1)],0)},ur=(e,t=!0)=>po(e,t);function dr(e,t){return ur([e],t)}function pr(e,t,n=!1,o=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function hr(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function gr(){return{type:"START_TYPING"}}function mr(){return{type:"STOP_TYPING"}}function fr(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function br(){return{type:"STOP_DRAGGING_BLOCKS"}}function vr(){return y()('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function kr(){return y()('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function _r(e,t,n,o){return"string"==typeof e?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}:{type:"SELECTION_CHANGE",...e}}const xr=(e,t,n)=>({dispatch:o})=>{const r=(0,l.getDefaultBlockName)();if(!r)return;const s=(0,l.createBlock)(r,e);return o.insertBlock(s,n,t)};function yr(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function Sr(e){return ao(e,{stripExperimentalSettings:!0})}function wr(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Cr(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Br(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const Ir=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:t=(e=>setTimeout(e,100))}=window;t((()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))},jr=(e=!0)=>({dispatch:t})=>{t.__unstableSetEditorMode(e?"navigation":"edit")},Er=e=>({dispatch:t,select:n,registry:o})=>{if("zoom-out"===e){const e=n.getBlockSelectionStart(),{sectionRootClientId:r}=Q(o.select(J).getSettings());if(e){let o;if(r){const t=n.getBlockOrder(r);o=n.getBlockParents(e).find((e=>t.includes(e)))}else o=n.getBlockHierarchyRootClientId(e);o?t.selectBlock(o):t.clearSelectedBlock()}}t({type:"SET_EDITOR_MODE",mode:e}),"navigation"===e?(0,Io.speak)((0,C.__)("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.")):"edit"===e?(0,Io.speak)((0,C.__)("You are currently in edit mode. To return to the navigation mode, press Escape.")):"zoom-out"===e&&(0,Io.speak)((0,C.__)("You are currently in zoom-out mode."))},Tr=(e=null)=>({dispatch:t})=>{t({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&(0,Io.speak)((0,C.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."))},Mr=(e,t=!0)=>({select:n,dispatch:o})=>{if(!e||!e.length)return;const r=n.getBlocksByClientId(e);if(r.some((e=>!e)))return;const s=r.map((e=>e.name));if(s.some((e=>!(0,l.hasBlockSupport)(e,"multiple",!0))))return;const i=n.getBlockRootClientId(e[0]),a=Po(e),c=n.getBlockIndex(a[a.length-1]),u=r.map((e=>(0,l.__experimentalCloneSanitizedBlock)(e)));return o.insertBlocks(u,c+1,i,t),u.length>1&&t&&o.multiSelect(u[0].clientId,u[u.length-1].clientId),u.map((e=>e.clientId))},Pr=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const r=t.getBlockIndex(e),s=o?t.getDirectInsertBlock(o):null;if(!s)return n.insertDefaultBlock({},o,r);const i={};if(s.attributesToCopy){const n=t.getBlockAttributes(e);s.attributesToCopy.forEach((e=>{n[e]&&(i[e]=n[e])}))}const a=(0,l.createBlock)(s.name,{...s.attributes,...i});return n.insertBlock(a,r,o)},Rr=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const r=t.getBlockIndex(e),s=o?t.getDirectInsertBlock(o):null;if(!s)return n.insertDefaultBlock({},o,r+1);const i={};if(s.attributesToCopy){const n=t.getBlockAttributes(e);s.attributesToCopy.forEach((e=>{n[e]&&(i[e]=n[e])}))}const a=(0,l.createBlock)(s.name,{...s.attributes,...i});return n.insertBlock(a,r+1,o)};function Nr(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const Ar=e=>async({dispatch:t})=>{t(Nr(e,!0)),await new Promise((e=>setTimeout(e,150))),t(Nr(e,!1))};function Lr(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function Or(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function Dr(e,t){return{type:"SET_TEMPORARILY_EDITING_AS_BLOCKS",temporarilyEditingAsBlocks:e,focusModeToRevert:t}}const zr=e=>({select:t,dispatch:n})=>{if(!e||"object"!=typeof e)return void console.error("Category should be an `InserterMediaCategory` object.");if(!e.name)return void console.error("Category should have a `name` that should be unique among all media categories.");if(!e.labels?.name)return void console.error("Category should have a `labels.name`.");if(!["image","audio","video"].includes(e.mediaType))return void console.error("Category should have `mediaType` property that is one of `image|audio|video`.");if(!e.fetch||"function"!=typeof e.fetch)return void console.error("Category should have a `fetch` function defined with the following signature `(InserterMediaRequest) => Promise<InserterMediaItem[]>`.");const o=t.getRegisteredInserterMediaCategories();o.some((({name:t})=>t===e.name))?console.error(`A category is already registered with the same name: "${e.name}".`):o.some((({labels:{name:t}={}})=>t===e.labels?.name))?console.error(`A category is already registered with the same labels.name: "${e.labels.name}".`):n({type:"REGISTER_INSERTER_MEDIA_CATEGORY",category:{...e,isExternalResource:!0}})};function Vr(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function Fr(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}const Hr={reducer:H,selectors:t,actions:s},Gr=(0,c.createReduxStore)(J,{...Hr,persist:["preferences"]}),Ur=(0,c.registerStore)(J,{...Hr,persist:["preferences"]});function $r(...e){const{clientId:t=null}=_();return(0,c.useSelect)((n=>Q(n(Gr)).getBlockSettings(t,...e)),[t,...e])}function Wr(e){y()("wp.blockEditor.useSetting",{since:"6.5",alternative:"wp.blockEditor.useSettings",note:"The new useSettings function can retrieve multiple settings at once, with better performance."});const[t]=$r(e);return t}Q(Ur).registerPrivateActions(r),Q(Ur).registerPrivateSelectors(e),Q(Gr).registerPrivateActions(r),Q(Gr).registerPrivateSelectors(e);const Kr="1600px",Zr="320px",qr=1,Yr=.25,Xr=.75,Qr="14px";function Jr({minimumFontSize:e,maximumFontSize:t,fontSize:n,minimumViewportWidth:o=Zr,maximumViewportWidth:r=Kr,scaleFactor:s=qr,minimumFontSizeLimit:i}){if(i=es(i)?i:Qr,n){const o=es(n);if(!o?.unit)return null;const r=es(i,{coerceTo:o.unit});if(r?.value&&!e&&!t&&o?.value<=r?.value)return null;if(t||(t=`${o.value}${o.unit}`),!e){const t="px"===o.unit?o.value:16*o.value,n=Math.min(Math.max(1-.075*Math.log2(t),Yr),Xr),s=ts(o.value*n,3);e=r?.value&&s<r?.value?`${r.value}${r.unit}`:`${s}${o.unit}`}}const l=es(e),a=l?.unit||"rem",c=es(t,{coerceTo:a});if(!l||!c)return null;const u=es(e,{coerceTo:"rem"}),d=es(r,{coerceTo:a}),p=es(o,{coerceTo:a});if(!d||!p||!u)return null;const h=d.value-p.value;if(!h)return null;const g=ts(p.value/100,3),m=ts(g,3)+a,f=ts(((c.value-l.value)/h*100||1)*s,3);return`clamp(${e}, ${`${u.value}${u.unit} + ((1vw - ${m}) * ${f})`}, ${t})`}function es(e,t={}){if("string"!=typeof e&&"number"!=typeof e)return null;isFinite(e)&&(e=`${e}px`);const{coerceTo:n,rootSizeValue:o,acceptableUnits:r}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},s=r?.join("|"),i=new RegExp(`^(\\d*\\.?\\d+)(${s}){1,1}$`),l=e.match(i);if(!l||l.length<3)return null;let[,a,c]=l,u=parseFloat(a);return"px"!==n||"em"!==c&&"rem"!==c||(u*=o,c=n),"px"!==c||"em"!==n&&"rem"!==n||(u/=o,c=n),"em"!==n&&"rem"!==n||"em"!==c&&"rem"!==c||(c=n),{value:ts(u,3),unit:c}}function ts(e,t=3){const n=Math.pow(10,t);return Number.isFinite(e)?parseFloat(Math.round(e*n)/n):void 0}function ns(e,t){const{size:n}=e;if(!os(t?.typography))return n;if(!n||"0"===n||!1===e?.fluid)return n;let o=function(e){const t=e?.typography,n=e?.layout,o=es(n?.wideSize)?n?.wideSize:null;return os(t)&&o?{fluid:{maxViewportWidth:o,...t.fluid}}:{fluid:t?.fluid}}(t);o="object"==typeof o?.fluid?o?.fluid:{};const r=Jr({minimumFontSize:e?.fluid?.min,maximumFontSize:e?.fluid?.max,fontSize:n,minimumFontSizeLimit:o?.minFontSize,maximumViewportWidth:o?.maxViewportWidth,minimumViewportWidth:o?.minViewportWidth});return r||n}function os(e){const t=e?.fluid;return!0===t||t&&"object"==typeof t&&Object.keys(t).length>0}const rs="body",ss=":root",is=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["color","duotone"],valueKey:"colors",cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["shadow","presets"],valueKey:"shadow",cssVarInfix:"shadow",classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>ns(e,t),valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]}],ls={"color.background":"color","color.text":"color","filter.duotone":"duotone","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.caption.color.text":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient",shadow:"shadow","typography.fontSize":"font-size","typography.fontFamily":"font-family"};function as(){return(0,u.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}function cs(e,t,n,o,r){const s=[he(e,["blocks",t,...n]),he(e,n)];for(const i of s)if(i){const s=["custom","theme","default"];for(const l of s){const s=i[l];if(s){const i=s.find((e=>e[o]===r));if(i){if("slug"===o)return i;return cs(e,t,n,"slug",i.slug)[o]===i[o]?i:void 0}}}}}function us(e,t,n){if(!n||"string"!=typeof n){if(!n?.ref||"string"!=typeof n?.ref)return n;{const t=n.ref.split(".");if(!(n=he(e,t))||n?.ref)return n}}const o="var:",r="var(--wp--";let s;if(n.startsWith(o))s=n.slice(4).split("|");else{if(!n.startsWith(r)||!n.endsWith(")"))return n;s=n.slice(10,-1).split("--")}const[i,...l]=s;return"preset"===i?function(e,t,n,[o,r]){const s=is.find((e=>e.cssVarInfix===o));if(!s)return n;const i=cs(e.settings,t,s.path,"slug",r);if(i){const{valueKey:n}=s;return us(e,t,i[n])}return n}(e,t,n,l):"custom"===i?function(e,t,n,o){var r;const s=null!==(r=he(e.settings,["blocks",t,"custom",...o]))&&void 0!==r?r:he(e.settings,["custom",...o]);return s?us(e,t,s):n}(e,t,n,l):n}function ds(e,t){if(!e||!t)return t;const n=e.split(","),o=t.split(","),r=[];return n.forEach((e=>{o.forEach((t=>{r.push(`${e.trim()} ${t.trim()}`)}))})),r.join(", ")}function ps(e,t){return"object"!=typeof e||"object"!=typeof t?e===t:w()(e?.styles,t?.styles)&&w()(e?.settings,t?.settings)}const hs=(0,a.createContext)({user:{},base:{},merged:{},setUserConfig:()=>{}}),gs={settings:{},styles:{}},ms=["appearanceTools","useRootPaddingAwareAlignments","background.backgroundImage","background.backgroundRepeat","background.backgroundSize","background.backgroundPosition","border.color","border.radius","border.style","border.width","shadow.presets","shadow.defaultPresets","color.background","color.button","color.caption","color.custom","color.customDuotone","color.customGradient","color.defaultDuotone","color.defaultGradients","color.defaultPalette","color.duotone","color.gradients","color.heading","color.link","color.palette","color.text","custom","dimensions.aspectRatio","dimensions.minHeight","layout.contentSize","layout.definitions","layout.wideSize","lightbox.enabled","lightbox.allowEditing","position.fixed","position.sticky","spacing.customSpacingSize","spacing.defaultSpacingSizes","spacing.spacingSizes","spacing.spacingScale","spacing.blockGap","spacing.margin","spacing.padding","spacing.units","typography.fluid","typography.customFontSize","typography.defaultFontSizes","typography.dropCap","typography.fontFamilies","typography.fontSizes","typography.fontStyle","typography.fontWeight","typography.letterSpacing","typography.lineHeight","typography.textAlign","typography.textColumns","typography.textDecoration","typography.textTransform","typography.writingMode"],fs=()=>{const{user:e,setUserConfig:t}=(0,a.useContext)(hs),n={settings:e.settings,styles:e.styles};return[!!n&&!w()(n,gs),(0,a.useCallback)((()=>t(gs)),[t])]};function bs(e,t,n="all"){const{setUserConfig:o,...r}=(0,a.useContext)(hs),s=t?".blocks."+t:"",i=e?"."+e:"",l=`settings${s}${i}`,c=`settings${i}`,u="all"===n?"merged":n;return[(0,a.useMemo)((()=>{const t=r[u];if(!t)throw"Unsupported source";var n;if(e)return null!==(n=he(t,l))&&void 0!==n?n:he(t,c);let o={};return ms.forEach((e=>{var n;const r=null!==(n=he(t,`settings${s}.${e}`))&&void 0!==n?n:he(t,`settings.${e}`);void 0!==r&&(o=pe(o,e.split("."),r))})),o}),[r,u,e,l,c,s]),e=>{o((t=>pe(t,l.split("."),e)))}]}function vs(e,t,n="all",{shouldDecodeEncode:o=!0}={}){const{merged:r,base:s,user:i,setUserConfig:l}=(0,a.useContext)(hs),c=e?"."+e:"",u=t?`styles.blocks.${t}${c}`:`styles${c}`;let d,p;switch(n){case"all":d=he(r,u),p=o?us(r,t,d):d;break;case"user":d=he(i,u),p=o?us(r,t,d):d;break;case"base":d=he(s,u),p=o?us(s,t,d):d;break;default:throw"Unsupported source"}return[p,n=>{l((s=>pe(s,u.split("."),o?function(e,t,n,o){if(!o)return o;const r=ls[n],s=is.find((e=>e.cssVarInfix===r));if(!s)return o;const{valueKey:i,path:l}=s,a=cs(e,t,l,i,o);return a?`var:preset|${r}|${a.slug}`:o}(r.settings,t,e,n):n)))}]}function ks(){const{merged:e}=(0,a.useContext)(hs);return e?._links}function _s(e,t,n){const{supportedStyles:o,supports:r}=(0,c.useSelect)((e=>({supportedStyles:Q(e(l.store)).getSupportedStyles(t,n),supports:e(l.store).getBlockType(t)?.supports})),[t,n]);return(0,a.useMemo)((()=>{const t={...e};return o.includes("fontSize")||(t.typography={...t.typography,fontSizes:{},customFontSize:!1,defaultFontSizes:!1}),o.includes("fontFamily")||(t.typography={...t.typography,fontFamilies:{}}),t.color={...t.color,text:t.color?.text&&o.includes("color"),background:t.color?.background&&(o.includes("background")||o.includes("backgroundColor")),button:t.color?.button&&o.includes("buttonColor"),heading:t.color?.heading&&o.includes("headingColor"),link:t.color?.link&&o.includes("linkColor"),caption:t.color?.caption&&o.includes("captionColor")},o.includes("background")||(t.color.gradients=[],t.color.customGradient=!1),o.includes("filter")||(t.color.defaultDuotone=!1,t.color.customDuotone=!1),["lineHeight","fontStyle","fontWeight","letterSpacing","textAlign","textTransform","textDecoration","writingMode"].forEach((e=>{o.includes(e)||(t.typography={...t.typography,[e]:!1})})),o.includes("columnCount")||(t.typography={...t.typography,textColumns:!1}),["contentSize","wideSize"].forEach((e=>{o.includes(e)||(t.layout={...t.layout,[e]:!1})})),["padding","margin","blockGap"].forEach((e=>{o.includes(e)||(t.spacing={...t.spacing,[e]:!1});const n=Array.isArray(r?.spacing?.[e])?r?.spacing?.[e]:r?.spacing?.[e]?.sides;n?.length&&t.spacing?.[e]&&(t.spacing={...t.spacing,[e]:{...t.spacing?.[e],sides:n}})})),["aspectRatio","minHeight"].forEach((e=>{o.includes(e)||(t.dimensions={...t.dimensions,[e]:!1})})),["radius","color","style","width"].forEach((e=>{o.includes("border"+e.charAt(0).toUpperCase()+e.slice(1))||(t.border={...t.border,[e]:!1})})),t.shadow=!!o.includes("shadow")&&t.shadow,n&&(t.typography.textAlign=!1),t}),[e,o,r,n])}function xs(e){const t=e?.color?.palette?.custom,n=e?.color?.palette?.theme,o=e?.color?.palette?.default,r=e?.color?.defaultPalette;return(0,a.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,C._x)("Theme","Indicates this palette comes from the theme."),colors:n}),r&&o&&o.length&&e.push({name:(0,C._x)("Default","Indicates this palette comes from WordPress."),colors:o}),t&&t.length&&e.push({name:(0,C._x)("Custom","Indicates this palette is created by the user."),colors:t}),e}),[t,n,o,r])}function ys(e){const t=e?.color?.gradients?.custom,n=e?.color?.gradients?.theme,o=e?.color?.gradients?.default,r=e?.color?.defaultGradients;return(0,a.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,C._x)("Theme","Indicates this palette comes from the theme."),gradients:n}),r&&o&&o.length&&e.push({name:(0,C._x)("Default","Indicates this palette comes from WordPress."),gradients:o}),t&&t.length&&e.push({name:(0,C._x)("Custom","Indicates this palette is created by the user."),gradients:t}),e}),[t,n,o,r])}function Ss(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Ss(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}const ws=function(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Ss(e))&&(o&&(o+=" "),o+=t);return o},Cs=e=>{if(null===e||"object"!=typeof e||Array.isArray(e))return e;const t=Object.entries(e).map((([e,t])=>[e,Cs(t)])).filter((([,e])=>void 0!==e));return t.length?Object.fromEntries(t):void 0};function Bs(e,t,n,o,r,s){if(Object.values(null!=e?e:{}).every((e=>!e)))return n;if(1===s.length&&n.innerBlocks.length===o.length)return n;let i=o[0]?.attributes;if(s.length>1&&o.length>1){if(!o[r])return n;i=o[r]?.attributes}let l=n;return Object.entries(e).forEach((([e,n])=>{n&&t[e].forEach((e=>{const t=he(i,e);t&&(l={...l,attributes:pe(l.attributes,e,t)})}))})),l}function Is(e,t,n){const o=(0,l.getBlockSupport)(e,t),r=o?.__experimentalSkipSerialization;return Array.isArray(r)?r.includes(n):r}const js=new WeakMap;function Es({id:e,css:t,assets:n,__unstableType:o,variation:r,clientId:s}={}){const{setStyleOverride:i,deleteStyleOverride:l}=Q((0,c.useDispatch)(Gr)),u=(0,c.useRegistry)(),d=(0,a.useId)();(0,a.useEffect)((()=>{if(!t&&!n)return;const a=e||d,c={id:e,css:t,assets:n,__unstableType:o,variation:r,clientId:s};return js.get(u)||js.set(u,[]),js.get(u).push([a,c]),window.queueMicrotask((()=>{js.get(u)?.length&&u.batch((()=>{js.get(u).forEach((e=>{i(...e)})),js.set(u,[])}))})),()=>{const e=js.get(u)?.find((([e])=>e===a));e?js.set(u,js.get(u).filter((([e])=>e!==a))):l(a)}}),[e,t,s,n,o,d,i,l,u])}function Ts(e,t){const[n,o,r,s,i,l,c,u,d,p,h,g,m,f,b,v,k,_,x,y,S,w,C,B,I,j,E,T,M,P,R,N,A,L,O,D,z,V,F,H,G,U,$,W,K,Z,q,Y,X,Q,J,ee,te,ne,oe,re]=$r("background.backgroundImage","background.backgroundSize","typography.fontFamilies.custom","typography.fontFamilies.default","typography.fontFamilies.theme","typography.defaultFontSizes","typography.fontSizes.custom","typography.fontSizes.default","typography.fontSizes.theme","typography.customFontSize","typography.fontStyle","typography.fontWeight","typography.lineHeight","typography.textAlign","typography.textColumns","typography.textDecoration","typography.writingMode","typography.textTransform","typography.letterSpacing","spacing.padding","spacing.margin","spacing.blockGap","spacing.defaultSpacingSizes","spacing.customSpacingSize","spacing.spacingSizes.custom","spacing.spacingSizes.default","spacing.spacingSizes.theme","spacing.units","dimensions.aspectRatio","dimensions.minHeight","layout","border.color","border.radius","border.style","border.width","color.custom","color.palette.custom","color.customDuotone","color.palette.theme","color.palette.default","color.defaultPalette","color.defaultDuotone","color.duotone.custom","color.duotone.theme","color.duotone.default","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients","color.customGradient","color.background","color.link","color.text","color.heading","color.button","shadow");return _s((0,a.useMemo)((()=>({background:{backgroundImage:n,backgroundSize:o},color:{palette:{custom:z,theme:F,default:H},gradients:{custom:Z,theme:q,default:Y},duotone:{custom:$,theme:W,default:K},defaultGradients:X,defaultPalette:G,defaultDuotone:U,custom:D,customGradient:Q,customDuotone:V,background:J,link:ee,heading:ne,button:oe,text:te},typography:{fontFamilies:{custom:r,default:s,theme:i},fontSizes:{custom:c,default:u,theme:d},customFontSize:p,defaultFontSizes:l,fontStyle:h,fontWeight:g,lineHeight:m,textAlign:f,textColumns:b,textDecoration:v,textTransform:_,letterSpacing:x,writingMode:k},spacing:{spacingSizes:{custom:I,default:j,theme:E},customSpacingSize:B,defaultSpacingSizes:C,padding:y,margin:S,blockGap:w,units:T},border:{color:N,radius:A,style:L,width:O},dimensions:{aspectRatio:M,minHeight:P},layout:R,parentLayout:t,shadow:re})),[n,o,r,s,i,l,c,u,d,p,h,g,m,f,b,v,_,x,k,y,S,w,C,B,I,j,E,T,M,P,R,t,N,A,L,O,D,z,V,F,H,G,U,$,W,K,Z,q,Y,X,Q,J,ee,te,ne,oe,re]),e)}const Ms=(0,a.memo)((function({index:e,useBlockProps:t,setAllWrapperProps:n,...o}){const r=t(o),s=t=>n((n=>{const o=[...n];return o[e]=t,o}));return(0,a.useEffect)((()=>(s(r),()=>{s(void 0)}))),null}));(0,d.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&(0,l.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));const Ps=window.wp.components,Rs={default:(0,Ps.createSlotFill)("BlockControls"),block:(0,Ps.createSlotFill)("BlockControlsBlock"),inline:(0,Ps.createSlotFill)("BlockFormatControls"),other:(0,Ps.createSlotFill)("BlockControlsOther"),parent:(0,Ps.createSlotFill)("BlockControlsParent")};function Ns({group:e="default",controls:t,children:n,__experimentalShareWithChildBlocks:o=!1}){const r=function(e,t){const n=_();return n[p]?Rs[e]?.Fill:n[h]&&t?Rs.parent.Fill:null}(e,o);if(!r)return null;const s=(0,U.jsxs)(U.Fragment,{children:["default"===e&&(0,U.jsx)(Ps.ToolbarGroup,{controls:t}),n]});return(0,U.jsx)(Ps.__experimentalStyleProvider,{document,children:(0,U.jsx)(r,{children:e=>{const{forwardedContext:t=[]}=e;return t.reduce(((e,[t,n])=>(0,U.jsx)(t,{...n,children:e})),s)}})})}window.wp.warning;const{ComponentsContext:As}=Q(Ps.privateApis);function Ls({group:e="default",...t}){const n=(0,a.useContext)(Ps.__experimentalToolbarContext),o=(0,a.useContext)(As),r=(0,a.useMemo)((()=>({forwardedContext:[[Ps.__experimentalToolbarContext.Provider,{value:n}],[As.Provider,{value:o}]]})),[n,o]),s=Rs[e]?.Slot,i=(0,Ps.__experimentalUseSlotFills)(s?.__unstableName);if(!s)return null;if(!i?.length)return null;const l=(0,U.jsx)(s,{...t,bubblesVirtually:!0,fillProps:r});return"default"===e?l:(0,U.jsx)(Ps.ToolbarGroup,{children:l})}const Os=Ns;Os.Slot=Ls;const Ds=e=>(0,U.jsx)(Ns,{group:"inline",...e});Ds.Slot=e=>(0,U.jsx)(Ls,{group:"inline",...e});const zs=Os,Vs=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})}),Fs=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})}),Hs=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})}),Gs=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})}),Us=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})}),$s=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})}),Ws=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})}),Ks={default:{name:"default",slug:"flow",className:"is-layout-flow",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},constrained:{name:"constrained",slug:"constrained",className:"is-layout-constrained",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > :where(:not(.alignleft):not(.alignright):not(.alignfull))",rules:{"max-width":"var(--wp--style--global--content-size)","margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > .alignwide",rules:{"max-width":"var(--wp--style--global--wide-size)"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},flex:{name:"flex",slug:"flex",className:"is-layout-flex",displayMode:"flex",baseStyles:[{selector:"",rules:{"flex-wrap":"wrap","align-items":"center"}},{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};function Zs(e,t=""){return e.split(",").map((e=>`.editor-styles-wrapper ${e}${t?` ${t}`:""}`)).join(",")}function qs(e,t=Ks,n,o){let r="";return t?.[n]?.spacingStyles?.length&&o&&t[n].spacingStyles.forEach((t=>{r+=`${Zs(e,t.selector.trim())} { `,r+=Object.entries(t.rules).map((([e,t])=>`${e}: ${t||o}`)).join("; "),r+="; }"})),r}function Ys(e){const{contentSize:t,wideSize:n,type:o="default"}=e,r={},s=/^(?!0)\d+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i;return s.test(t)&&"constrained"===o&&(r.none=(0,C.sprintf)((0,C.__)("Max %s wide"),t)),s.test(n)&&(r.wide=(0,C.sprintf)((0,C.__)("Max %s wide"),n)),r}const Xs=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"})}),Qs=(0,U.jsxs)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,U.jsx)(G.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,U.jsx)(G.Path,{d:"m4.5 7.5v9h1.5v-9z"}),(0,U.jsx)(G.Path,{d:"m18 7.5v9h1.5v-9z"})]}),Js=(0,U.jsxs)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,U.jsx)(G.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,U.jsx)(G.Path,{d:"m7.5 6h9v-1.5h-9z"}),(0,U.jsx)(G.Path,{d:"m7.5 19.5h9v-1.5h-9z"})]}),ei=(0,U.jsxs)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,U.jsx)(G.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,U.jsx)(G.Path,{d:"m16.5 6h-9v-1.5h9z"})]}),ti=(0,U.jsxs)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,U.jsx)(G.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,U.jsx)(G.Path,{d:"m18 16.5v-9h1.5v9z"})]}),ni=(0,U.jsxs)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,U.jsx)(G.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,U.jsx)(G.Path,{d:"m16.5 19.5h-9v-1.5h9z",style:{fill:"#1e1e1e"}})]}),oi=(0,U.jsxs)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,U.jsx)(G.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,U.jsx)(G.Path,{d:"m4.5 16.5v-9h1.5v9z"})]}),ri=8,si=["top","right","bottom","left"],ii={top:void 0,right:void 0,bottom:void 0,left:void 0},li={custom:Xs,axial:Xs,horizontal:Qs,vertical:Js,top:ei,right:ti,bottom:ni,left:oi},ai={default:(0,C.__)("Spacing control"),top:(0,C.__)("Top"),bottom:(0,C.__)("Bottom"),left:(0,C.__)("Left"),right:(0,C.__)("Right"),mixed:(0,C.__)("Mixed"),vertical:(0,C.__)("Vertical"),horizontal:(0,C.__)("Horizontal"),axial:(0,C.__)("Horizontal & vertical"),custom:(0,C.__)("Custom")},ci={axial:"axial",top:"top",right:"right",bottom:"bottom",left:"left",custom:"custom"};function ui(e){return!!e?.includes&&("0"===e||e.includes("var:preset|spacing|"))}function di(e,t){if(!ui(e))return e;const n=gi(e),o=t.find((e=>String(e.slug)===n));return o?.size}function pi(e,t){if(!e||ui(e)||"0"===e)return e;const n=t.find((t=>String(t.size)===String(e)));return n?.slug?`var:preset|spacing|${n.slug}`:e}function hi(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function gi(e){if(!e)return;if("0"===e||"default"===e)return e;const t=e.match(/var:preset\|spacing\|(.+)/);return t?t[1]:void 0}function mi(e,t){if(!e||!e.length)return!1;const n=e.includes("horizontal")||e.includes("left")&&e.includes("right"),o=e.includes("vertical")||e.includes("top")&&e.includes("bottom");return"horizontal"===t?n:"vertical"===t?o:n||o}function fi(e,t="0"){const n=function(e){if(!e)return null;const t="string"==typeof e;return{top:t?e:e?.top,left:t?e:e?.left}}(e);if(!n)return null;const o=hi(n?.top)||t,r=hi(n?.left)||t;return o===r?o:`${o} ${r}`}const bi=(0,U.jsx)(Ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(Ps.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})}),vi=(0,U.jsx)(Ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(Ps.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})}),ki=(0,U.jsx)(Ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(Ps.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})}),_i=(0,U.jsx)(Ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(Ps.Path,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})}),xi=(0,U.jsx)(Ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(Ps.Path,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})}),yi={top:{icon:ki,title:(0,C._x)("Align top","Block vertical alignment setting")},center:{icon:vi,title:(0,C._x)("Align middle","Block vertical alignment setting")},bottom:{icon:bi,title:(0,C._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:_i,title:(0,C._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:xi,title:(0,C._x)("Space between","Block vertical alignment setting")}},Si=["top","center","bottom"];const wi=function({value:e,onChange:t,controls:n=Si,isCollapsed:o=!0,isToolbar:r}){function s(n){return()=>t(e===n?void 0:n)}const i=yi[e],l=yi.top,a=r?Ps.ToolbarGroup:Ps.ToolbarDropdownMenu,c=r?{isCollapsed:o}:{};return(0,U.jsx)(a,{icon:i?i.icon:l.icon,label:(0,C._x)("Change vertical alignment","Block vertical alignment setting label"),controls:n.map((t=>({...yi[t],isActive:e===t,role:o?"menuitemradio":void 0,onClick:s(t)}))),...c})},Ci=e=>(0,U.jsx)(wi,{...e,isToolbar:!1}),Bi=e=>(0,U.jsx)(wi,{...e,isToolbar:!0}),Ii={left:Vs,center:Fs,right:Hs,"space-between":Gs,stretch:Us};const ji=function({allowedControls:e=["left","center","right","space-between"],isCollapsed:t=!0,onChange:n,value:o,popoverProps:r,isToolbar:s}){const i=e=>{n(e===o?void 0:e)},l=o?Ii[o]:Ii.left,a=[{name:"left",icon:Vs,title:(0,C.__)("Justify items left"),isActive:"left"===o,onClick:()=>i("left")},{name:"center",icon:Fs,title:(0,C.__)("Justify items center"),isActive:"center"===o,onClick:()=>i("center")},{name:"right",icon:Hs,title:(0,C.__)("Justify items right"),isActive:"right"===o,onClick:()=>i("right")},{name:"space-between",icon:Gs,title:(0,C.__)("Space between items"),isActive:"space-between"===o,onClick:()=>i("space-between")},{name:"stretch",icon:Us,title:(0,C.__)("Stretch items"),isActive:"stretch"===o,onClick:()=>i("stretch")}],c=s?Ps.ToolbarGroup:Ps.ToolbarDropdownMenu,u=s?{isCollapsed:t}:{};return(0,U.jsx)(c,{icon:l,popoverProps:r,label:(0,C.__)("Change items justification"),controls:a.filter((t=>e.includes(t.name))),...u})},Ei=e=>(0,U.jsx)(ji,{...e,isToolbar:!1}),Ti=e=>(0,U.jsx)(ji,{...e,isToolbar:!0}),Mi={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},Pi={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},Ri={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},Ni=["wrap","nowrap"],Ai={name:"flex",label:(0,C.__)("Flex"),inspectorControls:function({layout:e={},onChange:t,layoutBlockSupport:n={}}){const{allowOrientation:o=!0}=n;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Ps.Flex,{children:[(0,U.jsx)(Ps.FlexItem,{children:(0,U.jsx)(Di,{layout:e,onChange:t})}),(0,U.jsx)(Ps.FlexItem,{children:o&&(0,U.jsx)(Vi,{layout:e,onChange:t})})]}),(0,U.jsx)(zi,{layout:e,onChange:t})]})},toolBarControls:function({layout:e={},onChange:t,layoutBlockSupport:n}){if(n?.allowSwitching)return null;const{allowVerticalAlignment:o=!0}=n;return(0,U.jsxs)(zs,{group:"block",__experimentalShareWithChildBlocks:!0,children:[(0,U.jsx)(Di,{layout:e,onChange:t,isToolbar:!0}),o&&(0,U.jsx)(Li,{layout:e,onChange:t,isToolbar:!0})]})},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:s=Ks}){const{orientation:i="horizontal"}=t,l=n?.spacing?.blockGap&&!Is(o,"spacing","blockGap")?fi(n?.spacing?.blockGap,"0.5em"):void 0,a=Mi[t.justifyContent],c=Ni.includes(t.flexWrap)?t.flexWrap:"wrap",u=Ri[t.verticalAlignment],d=Pi[t.justifyContent]||Pi.left;let p="";const h=[];return c&&"wrap"!==c&&h.push(`flex-wrap: ${c}`),"horizontal"===i?(u&&h.push(`align-items: ${u}`),a&&h.push(`justify-content: ${a}`)):(u&&h.push(`justify-content: ${u}`),h.push("flex-direction: column"),h.push(`align-items: ${d}`)),h.length&&(p=`${Zs(e)} {\n\t\t\t\t${h.join("; ")};\n\t\t\t}`),r&&l&&(p+=qs(e,s,"flex",l)),p},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments:()=>[]};function Li({layout:e,onChange:t,isToolbar:n=!1}){const{orientation:o="horizontal"}=e,r="horizontal"===o?Ri.center:Ri.top,{verticalAlignment:s=r}=e,i=n=>{t({...e,verticalAlignment:n})};if(n)return(0,U.jsx)(Ci,{onChange:i,value:s,controls:"horizontal"===o?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]});const l=[{value:"flex-start",label:(0,C.__)("Align items top")},{value:"center",label:(0,C.__)("Align items center")},{value:"flex-end",label:(0,C.__)("Align items bottom")}];return(0,U.jsxs)("fieldset",{className:"block-editor-hooks__flex-layout-vertical-alignment-control",children:[(0,U.jsx)("legend",{children:(0,C.__)("Vertical alignment")}),(0,U.jsx)("div",{children:l.map(((e,t,n)=>(0,U.jsx)(Ps.Button,{label:n,icon:t,isPressed:s===e,onClick:()=>i(e)},e)))})]})}const Oi={placement:"bottom-start"};function Di({layout:e,onChange:t,isToolbar:n=!1}){const{justifyContent:o="left",orientation:r="horizontal"}=e,s=n=>{t({...e,justifyContent:n})},i=["left","center","right"];if("horizontal"===r?i.push("space-between"):i.push("stretch"),n)return(0,U.jsx)(Ei,{allowedControls:i,value:o,onChange:s,popoverProps:Oi});const l=[{value:"left",icon:Vs,label:(0,C.__)("Justify items left")},{value:"center",icon:Fs,label:(0,C.__)("Justify items center")},{value:"right",icon:Hs,label:(0,C.__)("Justify items right")}];return"horizontal"===r?l.push({value:"space-between",icon:Gs,label:(0,C.__)("Space between items")}):l.push({value:"stretch",icon:Us,label:(0,C.__)("Stretch items")}),(0,U.jsx)(Ps.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,C.__)("Justification"),value:o,onChange:s,className:"block-editor-hooks__flex-layout-justification-controls",children:l.map((({value:e,icon:t,label:n})=>(0,U.jsx)(Ps.__experimentalToggleGroupControlOptionIcon,{value:e,icon:t,label:n},e)))})}function zi({layout:e,onChange:t}){const{flexWrap:n="wrap"}=e;return(0,U.jsx)(Ps.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,C.__)("Allow to wrap to multiple lines"),onChange:n=>{t({...e,flexWrap:n?"wrap":"nowrap"})},checked:"wrap"===n})}function Vi({layout:e,onChange:t}){const{orientation:n="horizontal",verticalAlignment:o,justifyContent:r}=e;return(0,U.jsxs)(Ps.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__flex-layout-orientation-controls",label:(0,C.__)("Orientation"),value:n,onChange:n=>{let s=o,i=r;return"horizontal"===n?("space-between"===o&&(s="center"),"stretch"===r&&(i="left")):("stretch"===o&&(s="top"),"space-between"===r&&(i="left")),t({...e,orientation:n,verticalAlignment:s,justifyContent:i})},children:[(0,U.jsx)(Ps.__experimentalToggleGroupControlOptionIcon,{icon:$s,value:"horizontal",label:(0,C.__)("Horizontal")}),(0,U.jsx)(Ps.__experimentalToggleGroupControlOptionIcon,{icon:Ws,value:"vertical",label:(0,C.__)("Vertical")})]})}const Fi={name:"default",label:(0,C.__)("Flow"),inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,style:t,blockName:n,hasBlockGapSupport:o,layoutDefinitions:r=Ks}){const s=fi(t?.spacing?.blockGap);let i="";Is(n,"spacing","blockGap")||(s?.top?i=fi(s?.top):"string"==typeof s&&(i=fi(s)));let l="";return o&&i&&(l+=qs(e,r,"default",i)),l},getOrientation:()=>"vertical",getAlignments(e,t){const n=Ys(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:n[e]})));const o=[{name:"left"},{name:"center"},{name:"right"}];if(!t){const{contentSize:t,wideSize:r}=e;t&&o.unshift({name:"full"}),r&&o.unshift({name:"wide",info:n.wide})}return o.unshift({name:"none",info:n.none}),o}};const Hi=(0,a.forwardRef)((function({icon:e,size:t=24,...n},o){return(0,a.cloneElement)(e,{width:t,height:t,...n,ref:o})})),Gi=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})}),Ui=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})}),$i=window.wp.styleEngine,Wi={name:"constrained",label:(0,C.__)("Constrained"),inspectorControls:function({layout:e,onChange:t,layoutBlockSupport:n={}}){const{wideSize:o,contentSize:r,justifyContent:s="center"}=e,{allowJustification:i=!0,allowCustomContentAndWideSize:l=!0}=n,a=[{value:"left",icon:Vs,label:(0,C.__)("Justify items left")},{value:"center",icon:Fs,label:(0,C.__)("Justify items center")},{value:"right",icon:Hs,label:(0,C.__)("Justify items right")}],[c]=$r("spacing.units"),u=(0,Ps.__experimentalUseCustomUnits)({availableUnits:c||["%","px","em","rem","vw"]});return(0,U.jsxs)(U.Fragment,{children:[l&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)("div",{className:"block-editor-hooks__layout-controls",children:[(0,U.jsxs)("div",{className:"block-editor-hooks__layout-controls-unit",children:[(0,U.jsx)(Ps.__experimentalUnitControl,{className:"block-editor-hooks__layout-controls-unit-input",label:(0,C.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:r||o||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,contentSize:n})},units:u}),(0,U.jsx)(Hi,{icon:Gi})]}),(0,U.jsxs)("div",{className:"block-editor-hooks__layout-controls-unit",children:[(0,U.jsx)(Ps.__experimentalUnitControl,{className:"block-editor-hooks__layout-controls-unit-input",label:(0,C.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:o||r||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,wideSize:n})},units:u}),(0,U.jsx)(Hi,{icon:Ui})]})]}),(0,U.jsx)("p",{className:"block-editor-hooks__layout-controls-helptext",children:(0,C.__)("Customize the width for all elements that are assigned to the center or wide columns.")})]}),i&&(0,U.jsx)(Ps.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,C.__)("Justification"),value:s,onChange:n=>{t({...e,justifyContent:n})},children:a.map((({value:e,icon:t,label:n})=>(0,U.jsx)(Ps.__experimentalToggleGroupControlOptionIcon,{value:e,icon:t,label:n},e)))})]})},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,layout:t={},style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:s=Ks}){const{contentSize:i,wideSize:l,justifyContent:a}=t,c=fi(n?.spacing?.blockGap);let u="";Is(o,"spacing","blockGap")||(c?.top?u=fi(c?.top):"string"==typeof c&&(u=fi(c)));const d="left"===a?"0 !important":"auto !important",p="right"===a?"0 !important":"auto !important";let h=i||l?`\n\t\t\t\t\t${Zs(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} {\n\t\t\t\t\t\tmax-width: ${null!=i?i:l};\n\t\t\t\t\t\tmargin-left: ${d};\n\t\t\t\t\t\tmargin-right: ${p};\n\t\t\t\t\t}\n\t\t\t\t\t${Zs(e,"> .alignwide")} {\n\t\t\t\t\t\tmax-width: ${null!=l?l:i};\n\t\t\t\t\t}\n\t\t\t\t\t${Zs(e,"> .alignfull")} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:"";if("left"===a?h+=`${Zs(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-left: ${d}; }`:"right"===a&&(h+=`${Zs(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-right: ${p}; }`),n?.spacing?.padding){(0,$i.getCSSRules)(n).forEach((t=>{if("paddingRight"===t.key){const n="0"===t.value?"0px":t.value;h+=`\n\t\t\t\t\t${Zs(e,"> .alignfull")} {\n\t\t\t\t\t\tmargin-right: calc(${n} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`}else if("paddingLeft"===t.key){const n="0"===t.value?"0px":t.value;h+=`\n\t\t\t\t\t${Zs(e,"> .alignfull")} {\n\t\t\t\t\t\tmargin-left: calc(${n} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`}}))}return r&&u&&(h+=qs(e,s,"constrained",u)),h},getOrientation:()=>"vertical",getAlignments(e){const t=Ys(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:t[e]})));const{contentSize:n,wideSize:o}=e,r=[{name:"left"},{name:"center"},{name:"right"}];return n&&r.unshift({name:"full"}),o&&r.unshift({name:"wide",info:t.wide}),r.unshift({name:"none",info:t.none}),r}},Ki=(0,a.createContext)({refsMap:(0,u.observableMap)()});function Zi({children:e}){const t=(0,a.useMemo)((()=>({refsMap:(0,u.observableMap)()})),[]);return(0,U.jsx)(Ki.Provider,{value:t,children:e})}function qi(e){const{refsMap:t}=(0,a.useContext)(Ki);return(0,u.useRefEffect)((n=>(t.set(e,n),()=>t.delete(e))),[e])}function Yi(e){const{refsMap:t}=(0,a.useContext)(Ki),n=(0,a.useRef)();return n.current=e,(0,a.useMemo)((()=>({get current(){var e;return null!==(e=t.get(n.current))&&void 0!==e?e:null}})),[t])}function Xi(e){const{refsMap:t}=(0,a.useContext)(Ki),[n,o]=(0,a.useState)(null);return(0,a.useLayoutEffect)((()=>(o(t.get(e)),t.subscribe(e,(()=>o(t.get(e)))))),[t,e]),n}const Qi=function(e){return(0,u.useRefEffect)((t=>{if(!e)return;function n(t){const{deltaX:n,deltaY:o}=t;e.current.scrollBy(n,o)}const o={passive:!0};return t.addEventListener("wheel",n,o),()=>{t.removeEventListener("wheel",n,o)}}),[e])},Ji=Number.MAX_SAFE_INTEGER;const el=(0,a.forwardRef)((function({clientId:e,bottomClientId:t,children:n,__unstablePopoverSlot:o,__unstableContentRef:r,shift:s=!0,...i},l){const c=Xi(e),d=Xi(null!=t?t:e),p=(0,u.useMergeRefs)([l,Qi(r)]),[h,g]=(0,a.useReducer)((e=>(e+1)%Ji),0);(0,a.useLayoutEffect)((()=>{if(!c)return;const e=new window.MutationObserver(g);return e.observe(c,{attributes:!0}),()=>{e.disconnect()}}),[c]);const m=(0,a.useMemo)((()=>{if(!(h<0||!c||t&&!d))return{getBoundingClientRect(){var e,t,n,o;const r=c.getBoundingClientRect(),s=d?.getBoundingClientRect(),i=Math.min(r.left,null!==(e=s?.left)&&void 0!==e?e:1/0),l=Math.min(r.top,null!==(t=s?.top)&&void 0!==t?t:1/0),a=Math.max(r.right,null!==(n=s.right)&&void 0!==n?n:-1/0)-i,u=Math.max(r.bottom,null!==(o=s.bottom)&&void 0!==o?o:-1/0)-l;return new window.DOMRect(i,l,a,u)},contextElement:c}}),[t,d,c,h]);return!c||t&&!d?null:(0,U.jsx)(Ps.Popover,{ref:p,animate:!1,focusOnMount:!1,anchor:m,__unstableSlotName:o,inline:!o,placement:"top-start",resize:!1,flip:!1,shift:s,...i,className:ws("block-editor-block-popover",i.className),variant:"unstyled",children:n})})),tl=(0,a.forwardRef)((({clientId:e,bottomClientId:t,children:n,...o},r)=>(0,U.jsx)(el,{...o,bottomClientId:t,clientId:e,__unstableContentRef:void 0,__unstablePopoverSlot:void 0,ref:r,children:n})));function nl({selectedElement:e,additionalStyles:t={},children:n}){const[o,r]=(0,a.useState)(e.offsetWidth),[s,i]=(0,a.useState)(e.offsetHeight);(0,a.useEffect)((()=>{const t=new window.ResizeObserver((()=>{r(e.offsetWidth),i(e.offsetHeight)}));return t.observe(e,{box:"border-box"}),()=>t.disconnect()}),[e]);const l=(0,a.useMemo)((()=>({position:"absolute",width:o,height:s,...t})),[o,s,t]);return(0,U.jsx)("div",{style:l,children:n})}const ol=(0,a.forwardRef)((function({clientId:e,bottomClientId:t,children:n,shift:o=!1,additionalStyles:r,...s},i){var l;null!==(l=t)&&void 0!==l||(t=e);const a=Xi(e);return(0,U.jsx)(el,{ref:i,clientId:e,bottomClientId:t,shift:o,...s,children:a&&e===t?(0,U.jsx)(nl,{selectedElement:a,additionalStyles:r,children:n}):n})}));function rl(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function sl({clientId:e,contentRef:t}){const n=(0,c.useSelect)((e=>e(Gr).getSettings().isDistractionFree),[]),o=Xi(e);return n||!o?null:(0,U.jsx)(ol,{className:"block-editor-grid-visualizer",clientId:e,__unstablePopoverSlot:"block-toolbar",children:(0,U.jsx)(il,{ref:t,blockElement:o})})}const il=(0,a.forwardRef)((({blockElement:e},t)=>{const[n,o]=(0,a.useState)((()=>ll(e)));return(0,a.useEffect)((()=>{const t=[];for(const n of[e,...e.children]){const r=new window.ResizeObserver((()=>{o(ll(e))}));r.observe(n),t.push(r)}return()=>{for(const e of t)e.disconnect()}}),[e]),(0,U.jsx)("div",{ref:t,className:"block-editor-grid-visualizer__grid",style:n.style,children:Array.from({length:n.numItems},((e,t)=>(0,U.jsx)("div",{className:"block-editor-grid-visualizer__item",style:{boxShadow:`inset 0 0 0 1px color-mix(in srgb, ${n.currentColor} 20%, #0000)`}},t)))})}));function ll(e){const t=rl(e,"grid-template-columns"),n=rl(e,"grid-template-rows");return{numItems:t.split(" ").length*n.split(" ").length,currentColor:rl(e,"color"),style:{gridTemplateColumns:t,gridTemplateRows:n,gap:rl(e,"gap"),padding:rl(e,"padding")}}}const al={px:600,"%":100,vw:100,vh:100,em:38,rem:38,svw:100,lvw:100,dvw:100,svh:100,lvh:100,dvh:100,vi:100,svi:100,lvi:100,dvi:100,vb:100,svb:100,lvb:100,dvb:100,vmin:100,svmin:100,lvmin:100,dvmin:100,vmax:100,svmax:100,lvmax:100,dvmax:100},cl=[{value:"px",label:"px",default:0},{value:"rem",label:"rem",default:0},{value:"em",label:"em",default:0}],ul={name:"grid",label:(0,C.__)("Grid"),inspectorControls:function({layout:e={},onChange:t,layoutBlockSupport:n={}}){const{allowSizingOnChildren:o=!1}=n;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(hl,{layout:e,onChange:t}),e?.columnCount?(0,U.jsx)(pl,{layout:e,onChange:t,allowSizingOnChildren:o}):(0,U.jsx)(dl,{layout:e,onChange:t})]})},toolBarControls:function({clientId:e}){return(0,U.jsx)(sl,{clientId:e})},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:s=Ks}){const{minimumColumnWidth:i="12rem",columnCount:l=null,rowCount:a=null}=t,c=n?.spacing?.blockGap&&!Is(o,"spacing","blockGap")?fi(n?.spacing?.blockGap,"0.5em"):void 0;let u="";const d=[];return l?(d.push(`grid-template-columns: repeat(${l}, minmax(0, 1fr))`),a&&d.push(`grid-template-rows: repeat(${a}, minmax(0, 1fr))`)):i&&d.push(`grid-template-columns: repeat(auto-fill, minmax(min(${i}, 100%), 1fr))`,"container-type: inline-size"),d.length&&(u=`${Zs(e)} { ${d.join("; ")}; }`),r&&c&&(u+=qs(e,s,"grid",c)),u},getOrientation:()=>"horizontal",getAlignments:()=>[]};function dl({layout:e,onChange:t}){const{minimumColumnWidth:n="12rem"}=e,[o,r]=(0,Ps.__experimentalParseQuantityAndUnitFromRawValue)(n);return(0,U.jsxs)("fieldset",{children:[(0,U.jsx)(Ps.BaseControl.VisualLabel,{as:"legend",children:(0,C.__)("Minimum column width")}),(0,U.jsxs)(Ps.Flex,{gap:4,children:[(0,U.jsx)(Ps.FlexItem,{isBlock:!0,children:(0,U.jsx)(Ps.__experimentalUnitControl,{size:"__unstable-large",onChange:n=>{t({...e,minimumColumnWidth:n})},onUnitChange:n=>{let s;["em","rem"].includes(n)&&"px"===r?s=(o/16).toFixed(2)+n:["em","rem"].includes(r)&&"px"===n&&(s=Math.round(16*o)+n),t({...e,minimumColumnWidth:s})},value:n,units:cl,min:0,label:(0,C.__)("Minimum column width"),hideLabelFromVision:!0})}),(0,U.jsx)(Ps.FlexItem,{isBlock:!0,children:(0,U.jsx)(Ps.RangeControl,{onChange:n=>{t({...e,minimumColumnWidth:[n,r].join("")})},value:o,min:0,max:al[r]||600,withInputField:!1,label:(0,C.__)("Minimum column width"),hideLabelFromVision:!0})})]})]})}function pl({layout:e,onChange:t,allowSizingOnChildren:n}){const{columnCount:o=3,rowCount:r}=e;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)("fieldset",{children:[(0,U.jsx)(Ps.BaseControl.VisualLabel,{as:"legend",children:(0,C.__)("Columns")}),(0,U.jsxs)(Ps.Flex,{gap:4,children:[(0,U.jsx)(Ps.FlexItem,{isBlock:!0,children:(0,U.jsx)(Ps.__experimentalNumberControl,{size:"__unstable-large",onChange:n=>{const o=""!==n?n:"1";t({...e,columnCount:o})},value:o,min:1,label:(0,C.__)("Columns"),hideLabelFromVision:!0})}),(0,U.jsx)(Ps.FlexItem,{isBlock:!0,children:(0,U.jsx)(Ps.RangeControl,{value:parseInt(o,10),onChange:n=>t({...e,columnCount:n}),min:1,max:16,withInputField:!1,label:(0,C.__)("Columns"),hideLabelFromVision:!0})})]})]}),n&&window.__experimentalEnableGridInteractivity&&(0,U.jsxs)("fieldset",{children:[(0,U.jsx)(Ps.BaseControl.VisualLabel,{as:"legend",children:(0,C.__)("Rows")}),(0,U.jsxs)(Ps.Flex,{gap:4,children:[(0,U.jsx)(Ps.FlexItem,{isBlock:!0,children:(0,U.jsx)(Ps.__experimentalNumberControl,{size:"__unstable-large",onChange:n=>{t({...e,rowCount:n})},value:r,min:1,label:(0,C.__)("Rows"),hideLabelFromVision:!0})}),(0,U.jsx)(Ps.FlexItem,{isBlock:!0,children:(0,U.jsx)(Ps.RangeControl,{value:parseInt(r,10),onChange:n=>t({...e,rowCount:n}),min:1,max:16,withInputField:!1,label:(0,C.__)("Rows"),hideLabelFromVision:!0})})]})]})]})}function hl({layout:e,onChange:t}){const{columnCount:n,minimumColumnWidth:o}=e,[r,s]=(0,a.useState)(n||3),[i,l]=(0,a.useState)(o||"12rem"),c=n?"manual":"auto";return(0,U.jsxs)(Ps.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,C.__)("Type"),value:c,onChange:a=>{"manual"===a?l(o||"12rem"):s(n||3),t({...e,columnCount:"manual"===a?r:null,minimumColumnWidth:"auto"===a?i:null})},isBlock:!0,children:[(0,U.jsx)(Ps.__experimentalToggleGroupControlOption,{value:"auto",label:(0,C.__)("Auto")},"auto"),(0,U.jsx)(Ps.__experimentalToggleGroupControlOption,{value:"manual",label:(0,C.__)("Manual")},"manual")]})}const gl=[Fi,Ai,Wi,ul];function ml(e="default"){return gl.find((t=>t.name===e))}const fl={type:"default"},bl=(0,a.createContext)(fl),vl=bl.Provider;function kl(){return(0,a.useContext)(bl)}const _l=[],xl=["none","left","center","right","wide","full"],yl=["wide","full"];function Sl(e=xl){e.includes("none")||(e=["none",...e]);const t=1===e.length&&"none"===e[0],[n,o,r]=(0,c.useSelect)((e=>{var n;if(t)return[!1,!1,!1];const o=e(Gr).getSettings();return[null!==(n=o.alignWide)&&void 0!==n&&n,o.supportsLayout,o.__unstableIsBlockBasedTheme]}),[t]),s=kl();if(t)return _l;const i=ml(s?.type);if(o){const t=i.getAlignments(s,r).filter((t=>e.includes(t.name)));return 1===t.length&&"none"===t[0].name?_l:t}if("default"!==i.name&&"constrained"!==i.name)return _l;const l=e.filter((e=>s.alignments?s.alignments.includes(e):!(!n&&yl.includes(e))&&xl.includes(e))).map((e=>({name:e})));return 1===l.length&&"none"===l[0].name?_l:l}const wl=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})}),Cl=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})}),Bl=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})}),Il=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"})}),jl={none:{icon:wl,title:(0,C._x)("None","Alignment option")},left:{icon:Cl,title:(0,C.__)("Align left")},center:{icon:Gi,title:(0,C.__)("Align center")},right:{icon:Bl,title:(0,C.__)("Align right")},wide:{icon:Ui,title:(0,C.__)("Wide width")},full:{icon:Il,title:(0,C.__)("Full width")}};const El=function({value:e,onChange:t,controls:n,isToolbar:o,isCollapsed:r=!0}){const s=Sl(n);if(!!!s.length)return null;function i(n){t([e,"none"].includes(n)?void 0:n)}const l=jl[e],a=jl.none,c=o?Ps.ToolbarGroup:Ps.ToolbarDropdownMenu,u={icon:l?l.icon:a.icon,label:(0,C.__)("Align")},d=o?{isCollapsed:r,controls:s.map((({name:t})=>({...jl[t],isActive:e===t||!e&&"none"===t,role:r?"menuitemradio":void 0,onClick:()=>i(t)})))}:{toggleProps:{describedBy:(0,C.__)("Change alignment")},children:({onClose:t})=>(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(Ps.MenuGroup,{className:"block-editor-block-alignment-control__menu-group",children:s.map((({name:n,info:o})=>{const{icon:r,title:s}=jl[n],l=n===e||!e&&"none"===n;return(0,U.jsx)(Ps.MenuItem,{icon:r,iconPosition:"left",className:ws("components-dropdown-menu__menu-item",{"is-active":l}),isSelected:l,onClick:()=>{i(n),t()},role:"menuitemradio",info:o,children:s},n)}))})})};return(0,U.jsx)(c,{...u,...d})},Tl=e=>(0,U.jsx)(El,{...e,isToolbar:!1}),Ml=e=>(0,U.jsx)(El,{...e,isToolbar:!0});function Pl(e){const t=_(),{clientId:n=""}=t,{setBlockEditingMode:o,unsetBlockEditingMode:r}=(0,c.useDispatch)(Gr),s=(0,c.useSelect)((e=>n?null:e(Gr).getBlockEditingMode()),[n]);return(0,a.useEffect)((()=>(e&&o(n,e),()=>{e&&r(n)})),[n,e,o,r]),n?t[g]:s}const Rl=["left","center","right","wide","full"],Nl=["wide","full"];function Al(e,t=!0,n=!0){let o;return o=Array.isArray(e)?Rl.filter((t=>e.includes(t))):!0===e?[...Rl]:[],!n||!0===e&&!t?o.filter((e=>!Nl.includes(e))):o}const Ll={shareWithChildBlocks:!0,edit:function({name:e,align:t,setAttributes:n}){const o=Sl(Al((0,l.getBlockSupport)(e,"align"),(0,l.hasBlockSupport)(e,"alignWide",!0))).map((({name:e})=>e)),r=Pl();return o.length&&"default"===r?(0,U.jsx)(zs,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,U.jsx)(Tl,{value:t,onChange:t=>{if(!t){const n=(0,l.getBlockType)(e),o=n?.attributes?.align?.default;o&&(t="")}n({align:t})},controls:o})}):null},useBlockProps:function({name:e,align:t}){const n=Al((0,l.getBlockSupport)(e,"align"),(0,l.hasBlockSupport)(e,"alignWide",!0));if(Sl(n).some((e=>e.name===t)))return{"data-align":t};return{}},addSaveProps:function(e,t,n){const{align:o}=n,r=(0,l.getBlockSupport)(t,"align"),s=(0,l.hasBlockSupport)(t,"alignWide",!0),i=Al(r,s).includes(o);i&&(e.className=ws(`align${o}`,e.className));return e},attributeKeys:["align"],hasSupport:e=>(0,l.hasBlockSupport)(e,"align",!1)};(0,d.addFilter)("blocks.registerBlockType","core/editor/align/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.align)&&void 0!==t?t:{})||(0,l.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...Rl,""]}}),e}));const Ol=(0,Ps.createSlotFill)("InspectorControls"),Dl=(0,Ps.createSlotFill)("InspectorAdvancedControls"),zl=(0,Ps.createSlotFill)("InspectorControlsBackground"),Vl=(0,Ps.createSlotFill)("InspectorControlsBorder"),Fl=(0,Ps.createSlotFill)("InspectorControlsColor"),Hl=(0,Ps.createSlotFill)("InspectorControlsFilter"),Gl=(0,Ps.createSlotFill)("InspectorControlsDimensions"),Ul=(0,Ps.createSlotFill)("InspectorControlsPosition"),$l=(0,Ps.createSlotFill)("InspectorControlsTypography"),Wl=(0,Ps.createSlotFill)("InspectorControlsListView"),Kl=(0,Ps.createSlotFill)("InspectorControlsStyles"),Zl={default:Ol,advanced:Dl,background:zl,border:Vl,color:Fl,dimensions:Gl,effects:(0,Ps.createSlotFill)("InspectorControlsEffects"),filter:Hl,list:Wl,position:Ul,settings:Ol,styles:Kl,typography:$l};function ql({children:e,group:t="default",__experimentalGroup:n,resetAllFilter:o}){n&&(y()("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=n);const r=_(),s=Zl[t]?.Fill;return s&&r[p]?(0,U.jsx)(Ps.__experimentalStyleProvider,{document,children:(0,U.jsx)(s,{children:t=>(0,U.jsx)(Xl,{fillProps:t,children:e,resetAllFilter:o})})}):null}function Yl({resetAllFilter:e,children:t}){const{registerResetAllFilter:n,deregisterResetAllFilter:o}=(0,a.useContext)(Ps.__experimentalToolsPanelContext);return(0,a.useEffect)((()=>{if(e&&n&&o)return n(e),()=>{o(e)}}),[e,n,o]),t}function Xl({children:e,resetAllFilter:t,fillProps:n}){const{forwardedContext:o=[]}=n,r=(0,U.jsx)(Yl,{resetAllFilter:t,children:e});return o.reduce(((e,[t,n])=>(0,U.jsx)(t,{...n,children:e})),r)}function Ql({children:e,group:t,label:n}){const{updateBlockAttributes:o}=(0,c.useDispatch)(Gr),{getBlockAttributes:r,getMultiSelectedBlockClientIds:s,getSelectedBlockClientId:i,hasMultiSelection:l}=(0,c.useSelect)(Gr),u=as(),d=i(),p=(0,a.useCallback)(((e=[])=>{const t={},n=l()?s():[d];n.forEach((n=>{const{style:o}=r(n);let s={style:o};e.forEach((e=>{s={...s,...e(s)}})),s={...s,style:Cs(s.style)},t[n]=s})),o(n,t,!0)}),[r,s,l,d,o]);return(0,U.jsx)(Ps.__experimentalToolsPanel,{className:`${t}-block-support-panel`,label:n,resetAll:p,panelId:d,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:u,children:e},d)}function Jl({Slot:e,fillProps:t,...n}){const o=(0,a.useContext)(Ps.__experimentalToolsPanelContext),r=(0,a.useMemo)((()=>{var e;return{...null!=t?t:{},forwardedContext:[...null!==(e=t?.forwardedContext)&&void 0!==e?e:[],[Ps.__experimentalToolsPanelContext.Provider,{value:o}]]}}),[o,t]);return(0,U.jsx)(e,{...n,fillProps:r,bubblesVirtually:!0})}function ea({__experimentalGroup:e,group:t="default",label:n,fillProps:o,...r}){e&&(y()("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=e);const s=Zl[t]?.Slot,i=(0,Ps.__experimentalUseSlotFills)(s?.__unstableName),l=(0,a.useContext)(Ps.__unstableMotionContext),c=(0,a.useMemo)((()=>{var e;return{...null!=o?o:{},forwardedContext:[...null!==(e=o?.forwardedContext)&&void 0!==e?e:[],[Ps.__unstableMotionContext.Provider,{value:l}]]}}),[l,o]);return s&&i?.length?n?(0,U.jsx)(Ql,{group:t,label:n,children:(0,U.jsx)(Jl,{...r,fillProps:c,Slot:s})}):(0,U.jsx)(s,{...r,fillProps:c,bubblesVirtually:!0}):null}const ta=ql;ta.Slot=ea;const na=e=>(0,U.jsx)(ql,{...e,group:"advanced"});na.Slot=e=>(0,U.jsx)(ea,{...e,group:"advanced"}),na.slotName="InspectorAdvancedControls";const oa=ta,ra=window.wp.url,sa=window.wp.dom,ia=window.wp.blob,la=window.wp.keycodes,aa=(0,U.jsxs)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,U.jsx)(G.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,U.jsx)(G.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})]}),ca=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})}),ua=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})}),da=(0,Ps.withFilters)("editor.MediaUpload")((()=>null));const pa=function({fallback:e=null,children:t}){const n=(0,c.useSelect)((e=>{const{getSettings:t}=e(Gr);return!!t().mediaUpload}),[]);return n?t:e},ha=window.wp.isShallowEqual;var ga=n.n(ha);const ma=window.wp.preferences,fa=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",children:(0,U.jsx)(G.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})}),ba=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})}),va=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})});const ka=function e({children:t,settingsOpen:n,setSettingsOpen:o}){const r=(0,u.useReducedMotion)(),s=r?a.Fragment:Ps.__unstableAnimatePresence,i=r?"div":Ps.__unstableMotion.div,l=`link-control-settings-drawer-${(0,u.useInstanceId)(e)}`;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ps.Button,{className:"block-editor-link-control__drawer-toggle","aria-expanded":n,onClick:()=>o(!n),icon:(0,C.isRTL)()?ba:va,"aria-controls":l,children:(0,C._x)("Advanced","Additional link settings")}),(0,U.jsx)(s,{children:n&&(0,U.jsx)(i,{className:"block-editor-link-control__drawer",hidden:!n,id:l,initial:"collapsed",animate:"open",exit:"collapsed",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},transition:{duration:.1},children:(0,U.jsx)("div",{className:"block-editor-link-control__drawer-inner",children:t})})})]})};var _a=n(1609);function xa(e){return"function"==typeof e}class ya extends a.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=e.autocompleteRef||(0,a.createRef)(),this.inputRef=(0,a.createRef)(),this.updateSuggestions=(0,u.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.suggestionsRequest=null,this.state={suggestions:[],showSuggestions:!1,suggestionsValue:null,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(e){const{showSuggestions:t,selectedSuggestion:n}=this.state,{value:o,__experimentalShowInitialSuggestions:r=!1}=this.props;t&&null!==n&&this.suggestionNodes[n]&&this.suggestionNodes[n].scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"}),e.value===o||this.props.disableSuggestions||(o?.length?this.updateSuggestions(o):r&&this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){const{__experimentalShowInitialSuggestions:e=!1,value:t}=this.props;return e&&!(t&&t.length)}updateSuggestions(e=""){const{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:n}=this.props;if(!t)return;const o=!e?.length;if(e=e.trim(),!o&&(e.length<2||!n&&(0,ra.isURL)(e)))return this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null,void this.setState({suggestions:[],showSuggestions:!1,suggestionsValue:e,selectedSuggestion:null,loading:!1});this.setState({selectedSuggestion:null,loading:!0});const r=t(e,{isInitialSuggestions:o});r.then((t=>{this.suggestionsRequest===r&&(this.setState({suggestions:t,suggestionsValue:e,loading:!1,showSuggestions:!!t.length}),t.length?this.props.debouncedSpeak((0,C.sprintf)((0,C._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"):this.props.debouncedSpeak((0,C.__)("No results."),"assertive"))})).catch((()=>{this.suggestionsRequest===r&&this.setState({loading:!1})})).finally((()=>{this.suggestionsRequest===r&&(this.suggestionsRequest=null)})),this.suggestionsRequest=r}onChange(e){this.props.onChange(e.target.value)}onFocus(){const{suggestions:e}=this.state,{disableSuggestions:t,value:n}=this.props;!n||t||e&&e.length||null!==this.suggestionsRequest||this.updateSuggestions(n)}onKeyDown(e){this.props.onKeyDown?.(e);const{showSuggestions:t,selectedSuggestion:n,suggestions:o,loading:r}=this.state;if(!t||!o.length||r){switch(e.keyCode){case la.UP:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case la.DOWN:this.props.value.length!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case la.ENTER:this.props.onSubmit&&(e.preventDefault(),this.props.onSubmit(null,e))}return}const s=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case la.UP:{e.preventDefault();const t=n?n-1:o.length-1;this.setState({selectedSuggestion:t});break}case la.DOWN:{e.preventDefault();const t=null===n||n===o.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case la.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(s),this.props.speak((0,C.__)("Link selected.")));break;case la.ENTER:e.preventDefault(),null!==this.state.selectedSuggestion?(this.selectLink(s),this.props.onSubmit&&this.props.onSubmit(s,e)):this.props.onSubmit&&this.props.onSubmit(null,e)}}selectLink(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(e){this.selectLink(e),this.inputRef.current.focus()}static getDerivedStateFromProps({value:e,instanceId:t,disableSuggestions:n,__experimentalShowInitialSuggestions:o=!1},{showSuggestions:r}){let s=r;const i=e&&e.length;return o||i||(s=!1),!0===n&&(s=!1),{showSuggestions:s,suggestionsListboxId:`block-editor-url-input-suggestions-${t}`,suggestionOptionIdPrefix:`block-editor-url-input-suggestion-${t}`}}render(){return(0,U.jsxs)(U.Fragment,{children:[this.renderControl(),this.renderSuggestions()]})}renderControl(){const{__nextHasNoMarginBottom:e=!1,label:t=null,className:n,isFullWidth:o,instanceId:r,placeholder:s=(0,C.__)("Paste URL or type to search"),__experimentalRenderControl:i,value:l="",hideLabelFromVision:a=!1}=this.props,{loading:c,showSuggestions:u,selectedSuggestion:d,suggestionsListboxId:p,suggestionOptionIdPrefix:h}=this.state,g=`url-input-control-${r}`,m={id:g,label:t,className:ws("block-editor-url-input",n,{"is-full-width":o}),hideLabelFromVision:a},f={id:g,value:l,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:s,onKeyDown:this.onKeyDown,role:"combobox","aria-label":t?void 0:(0,C.__)("URL"),"aria-expanded":u,"aria-autocomplete":"list","aria-owns":p,"aria-activedescendant":null!==d?`${h}-${d}`:void 0,ref:this.inputRef};return i?i(m,f,c):(e||y()("Bottom margin styles for wp.blockEditor.URLInput",{since:"6.2",version:"6.5",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version"}),(0,U.jsxs)(Ps.BaseControl,{__nextHasNoMarginBottom:e,...m,children:[(0,U.jsx)("input",{...f}),c&&(0,U.jsx)(Ps.Spinner,{})]}))}renderSuggestions(){const{className:e,__experimentalRenderSuggestions:t}=this.props,{showSuggestions:n,suggestions:o,suggestionsValue:r,selectedSuggestion:s,suggestionsListboxId:i,suggestionOptionIdPrefix:l,loading:a}=this.state;if(!n||0===o.length)return null;const c={id:i,ref:this.autocompleteRef,role:"listbox"},u=(e,t)=>({role:"option",tabIndex:"-1",id:`${l}-${t}`,ref:this.bindSuggestionNode(t),"aria-selected":t===s||void 0});return xa(t)?t({suggestions:o,selectedSuggestion:s,suggestionsListProps:c,buildSuggestionItemProps:u,isLoading:a,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:!r?.length,currentInputValue:r}):(0,U.jsx)(Ps.Popover,{placement:"bottom",focusOnMount:!1,children:(0,U.jsx)("div",{...c,className:ws("block-editor-url-input__suggestions",`${e}__suggestions`),children:o.map(((e,t)=>(0,_a.createElement)(Ps.Button,{...u(0,t),key:e.id,className:ws("block-editor-url-input__suggestion",{"is-selected":t===s}),onClick:()=>this.handleOnClick(e)},e.title)))})})}}const Sa=(0,u.compose)(u.withSafeTimeout,Ps.withSpokenMessages,u.withInstanceId,(0,c.withSelect)(((e,t)=>{if(xa(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(Gr);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}})))(ya),wa=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),Ca=({searchTerm:e,onClick:t,itemProps:n,buttonText:o})=>{if(!e)return null;let r;return r=o?"function"==typeof o?o(e):o:(0,a.createInterpolateElement)((0,C.sprintf)((0,C.__)("Create: <mark>%s</mark>"),e),{mark:(0,U.jsx)("mark",{})}),(0,U.jsx)(Ps.MenuItem,{...n,iconPosition:"left",icon:wa,className:"block-editor-link-control__search-item",onClick:t,children:r})},Ba=(0,U.jsx)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,U.jsx)(G.Path,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})}),Ia=(0,U.jsxs)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,U.jsx)(G.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,U.jsx)(G.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]}),ja=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})}),Ea=(0,U.jsx)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,U.jsx)(G.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})}),Ta=(0,U.jsx)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,U.jsx)(G.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})}),Ma=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"})}),Pa=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})}),Ra=(0,U.jsx)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,U.jsx)(G.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"})}),Na={post:Ba,page:Ia,post_tag:ja,category:Ea,attachment:Ta};function Aa({isURL:e,suggestion:t}){let n=null;return e?n=Ma:t.type in Na&&(n=Na[t.type],"page"===t.type&&(t.isFrontPage&&(n=Pa),t.isBlogHome&&(n=Ra))),n?(0,U.jsx)(Hi,{className:"block-editor-link-control__search-item-icon",icon:n}):null}function La(e){const t=e?.trim();return t?.length?e?.replace(/^\/?/,"/"):e}function Oa(e){const t=e?.trim();return t?.length?e?.replace(/\/$/,""):e}function Da(e){return e.isFrontPage?"front page":e.isBlogHome?"blog home":"post_tag"===e.type?"tag":e.type}const za=({itemProps:e,suggestion:t,searchTerm:n,onClick:o,isURL:r=!1,shouldShowType:s=!1})=>{const i=r?(0,C.__)("Press ENTER to add this link"):(l=t.url)?(0,u.pipe)(ra.safeDecodeURI,ra.getPath,(e=>t=>null==t||t!=t?e:t)(""),((e,...t)=>(...n)=>e(...n,...t))(ra.filterURLForDisplay,24),Oa,La)(l):l;var l;return(0,U.jsx)(Ps.MenuItem,{...e,info:i,iconPosition:"left",icon:(0,U.jsx)(Aa,{suggestion:t,isURL:r}),onClick:o,shortcut:s&&Da(t),className:"block-editor-link-control__search-item",children:(0,U.jsx)(Ps.TextHighlight,{text:(0,sa.__unstableStripHTML)(t.title),highlight:n})})},Va="__CREATE__",Fa="link",Ha="mailto",Ga="internal",Ua=[Fa,Ha,"tel",Ga],$a=[{id:"opensInNewTab",title:(0,C.__)("Open in new tab")}];function Wa({instanceId:e,withCreateSuggestion:t,currentInputValue:n,handleSuggestionClick:o,suggestionsListProps:r,buildSuggestionItemProps:s,suggestions:i,selectedSuggestion:l,isLoading:a,isInitialSuggestions:c,createSuggestionButtonText:u,suggestionsQuery:d}){const p=ws("block-editor-link-control__search-results",{"is-loading":a}),h=1===i.length&&Ua.includes(i[0].type),g=t&&!h&&!c,m=!d?.type,f=`block-editor-link-control-search-results-label-${e}`,b=c?(0,C.__)("Suggestions"):(0,C.sprintf)((0,C.__)('Search results for "%s"'),n),v=(0,U.jsx)(Ps.VisuallyHidden,{id:f,children:b});return(0,U.jsxs)("div",{className:"block-editor-link-control__search-results-wrapper",children:[v,(0,U.jsx)("div",{...r,className:p,"aria-labelledby":f,children:(0,U.jsx)(Ps.MenuGroup,{children:i.map(((e,t)=>g&&Va===e.type?(0,U.jsx)(Ca,{searchTerm:n,buttonText:u,onClick:()=>o(e),itemProps:s(e,t),isSelected:t===l},e.type):Va===e.type?null:(0,U.jsx)(za,{itemProps:s(e,t),suggestion:e,index:t,onClick:()=>{o(e)},isSelected:t===l,isURL:Ua.includes(e.type),searchTerm:n,shouldShowType:m,isFrontPage:e?.isFrontPage,isBlogHome:e?.isBlogHome},`${e.id}-${e.type}`)))})})]})}function Ka(e){if(e.includes(" "))return!1;const t=(0,ra.getProtocol)(e),n=(0,ra.isValidProtocol)(t),o=function(e,t=6){const n=e.split(/[?#]/)[0];return new RegExp(`(?<=\\S)\\.(?:[a-zA-Z_]{2,${t}})(?:\\/|$)`).test(n)}(e),r=e?.startsWith("www."),s=e?.startsWith("#")&&(0,ra.isValidFragment)(e);return n||r||s||o}const Za=()=>Promise.resolve([]),qa=e=>{let t=Fa;const n=(0,ra.getProtocol)(e)||"";return n.includes("mailto")&&(t=Ha),n.includes("tel")&&(t="tel"),e?.startsWith("#")&&(t=Ga),Promise.resolve([{id:e,title:e,url:"URL"===t?(0,ra.prependHTTP)(e):e,type:t}])};function Ya(e,t,n){const{fetchSearchSuggestions:o,pageOnFront:r,pageForPosts:s}=(0,c.useSelect)((e=>{const{getSettings:t}=e(Gr);return{pageOnFront:t().pageOnFront,pageForPosts:t().pageForPosts,fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}}),[]),i=t?qa:Za;return(0,a.useCallback)(((t,{isInitialSuggestions:l})=>Ka(t)?i(t,{isInitialSuggestions:l}):(async(e,t,n,o,r,s)=>{const{isInitialSuggestions:i}=t,l=await n(e,t);return l.map((e=>Number(e.id)===r?(e.isFrontPage=!0,e):Number(e.id)===s?(e.isBlogHome=!0,e):e)),i||Ka(e)||!o?l:l.concat({title:e,url:e,type:Va})})(t,{...e,isInitialSuggestions:l},o,n,r,s)),[i,o,r,s,e,n])}const Xa=()=>Promise.resolve([]),Qa=()=>{},Ja=(0,a.forwardRef)((({value:e,children:t,currentLink:n={},className:o=null,placeholder:r=null,withCreateSuggestion:s=!1,onCreateSuggestion:i=Qa,onChange:l=Qa,onSelect:c=Qa,showSuggestions:d=!0,renderSuggestions:p=(e=>(0,U.jsx)(Wa,{...e})),fetchSuggestions:h=null,allowDirectEntry:g=!0,showInitialSuggestions:m=!1,suggestionsQuery:f={},withURLSuggestion:b=!0,createSuggestionButtonText:v,hideLabelFromVision:k=!1},_)=>{const x=Ya(f,g,s),y=d?h||x:Xa,S=(0,u.useInstanceId)(Ja),[w,B]=(0,a.useState)(),I=async e=>{let t=e;if(Va!==e.type){if(g||t&&Object.keys(t).length>=1){const{id:e,url:o,...r}=null!=n?n:{};c({...r,...t},t)}}else try{t=await i(e.title),t?.url&&c(t)}catch(e){}};return(0,U.jsxs)("div",{className:"block-editor-link-control__search-input-container",children:[(0,U.jsx)(Sa,{disableSuggestions:n?.url===e,__nextHasNoMarginBottom:!0,label:(0,C.__)("Link"),hideLabelFromVision:k,className:o,value:e,onChange:(e,t)=>{l(e),B(t)},placeholder:null!=r?r:(0,C.__)("Search or type URL"),__experimentalRenderSuggestions:d?e=>p({...e,instanceId:S,withCreateSuggestion:s,createSuggestionButtonText:v,suggestionsQuery:f,handleSuggestionClick:t=>{e.handleSuggestionClick&&e.handleSuggestionClick(t),I(t)}}):null,__experimentalFetchLinkSuggestions:y,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:m,onSubmit:(t,n)=>{const o=t||w;o||e?.trim()?.length?I(o||{url:e}):n.preventDefault()},ref:_}),t]})})),ec=Ja,tc=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})}),nc=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),oc=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})}),rc=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.625 5.5h9.75c.069 0 .125.056.125.125v9.75a.125.125 0 0 1-.125.125h-9.75a.125.125 0 0 1-.125-.125v-9.75c0-.069.056-.125.125-.125ZM4 5.625C4 4.728 4.728 4 5.625 4h9.75C16.273 4 17 4.728 17 5.625v9.75c0 .898-.727 1.625-1.625 1.625h-9.75A1.625 1.625 0 0 1 4 15.375v-9.75Zm14.5 11.656v-9H20v9C20 18.8 18.77 20 17.251 20H6.25v-1.5h11.001c.69 0 1.249-.528 1.249-1.219Z"})}),{Slot:sc,Fill:ic}=(0,Ps.createSlotFill)("BlockEditorLinkControlViewer");function lc(e,t){switch(t.type){case"RESOLVED":return{...e,isFetching:!1,richData:t.richData};case"ERROR":return{...e,isFetching:!1,richData:null};case"LOADING":return{...e,isFetching:!0};default:throw new Error(`Unexpected action type ${t.type}`)}}const ac=function(e){const[t,n]=(0,a.useReducer)(lc,{richData:null,isFetching:!1}),{fetchRichUrlData:o}=(0,c.useSelect)((e=>{const{getSettings:t}=e(Gr);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}}),[]);return(0,a.useEffect)((()=>{if(e?.length&&o&&"undefined"!=typeof AbortController){n({type:"LOADING"});const t=new window.AbortController,r=t.signal;return o(e,{signal:r}).then((e=>{n({type:"RESOLVED",richData:e})})).catch((()=>{r.aborted||n({type:"ERROR"})})),()=>{t.abort()}}}),[e]),t};function cc({value:e,onEditClick:t,hasRichPreviews:n=!1,hasUnlinkControl:o=!1,onRemove:r}){const s=(0,c.useSelect)((e=>e(ma.store).get("core","showIconLabels")),[]),i=n?e?.url:null,{richData:l,isFetching:a}=ac(i),d=l&&Object.keys(l).length,p=e&&(0,ra.filterURLForDisplay)((0,ra.safeDecodeURI)(e.url),24)||"",h=!e?.url?.length,g=!h&&(0,sa.__unstableStripHTML)(l?.title||e?.title||p);let m;m=l?.icon?(0,U.jsx)("img",{src:l?.icon,alt:""}):h?(0,U.jsx)(Hi,{icon:tc,size:32}):(0,U.jsx)(Hi,{icon:Ma});const{createNotice:f}=(0,c.useDispatch)(jo.store),b=(0,u.useCopyToClipboard)(e.url,(()=>{f("info",(0,C.__)("Link copied to clipboard."),{isDismissible:!0,type:"snackbar"})}));return(0,U.jsx)("div",{"aria-label":(0,C.__)("Currently selected"),className:ws("block-editor-link-control__search-item",{"is-current":!0,"is-rich":d,"is-fetching":!!a,"is-preview":!0,"is-error":h,"is-url-title":g===p}),children:(0,U.jsxs)("div",{className:"block-editor-link-control__search-item-top",children:[(0,U.jsxs)("span",{className:"block-editor-link-control__search-item-header",children:[(0,U.jsx)("span",{className:ws("block-editor-link-control__search-item-icon",{"is-image":l?.icon}),children:m}),(0,U.jsx)("span",{className:"block-editor-link-control__search-item-details",children:h?(0,U.jsx)("span",{className:"block-editor-link-control__search-item-error-notice",children:(0,C.__)("Link is empty")}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ps.ExternalLink,{className:"block-editor-link-control__search-item-title",href:e.url,children:(0,U.jsx)(Ps.__experimentalTruncate,{numberOfLines:1,children:g})}),e?.url&&g!==p&&(0,U.jsx)("span",{className:"block-editor-link-control__search-item-info",children:(0,U.jsx)(Ps.__experimentalTruncate,{numberOfLines:1,children:p})})]})})]}),(0,U.jsx)(Ps.Button,{icon:nc,label:(0,C.__)("Edit link"),onClick:t,size:"compact"}),o&&(0,U.jsx)(Ps.Button,{icon:oc,label:(0,C.__)("Remove link"),onClick:r,size:"compact"}),(0,U.jsx)(Ps.Button,{icon:rc,label:(0,C.sprintf)((0,C.__)("Copy link%s"),h||s?"":": "+e.url),ref:b,__experimentalIsFocusable:!0,disabled:h,size:"compact"}),(0,U.jsx)(sc,{fillProps:e})]})})}const uc=()=>{},dc=({value:e,onChange:t=uc,settings:n})=>{if(!n||!n.length)return null;const o=n=>o=>{t({...e,[n.id]:o})},r=n.map((t=>(0,U.jsx)(Ps.CheckboxControl,{__nextHasNoMarginBottom:!0,className:"block-editor-link-control__setting",label:t.title,onChange:o(t),checked:!!e&&!!e[t.id],help:t?.help},t.id)));return(0,U.jsxs)("fieldset",{className:"block-editor-link-control__settings",children:[(0,U.jsx)(Ps.VisuallyHidden,{as:"legend",children:(0,C.__)("Currently selected link settings")}),r]})};const pc=e=>{let t=!1;return{promise:new Promise(((n,o)=>{e.then((e=>t?o({isCanceled:!0}):n(e)),(e=>o(t?{isCanceled:!0}:e)))})),cancel(){t=!0}}};var hc=n(5215),gc=n.n(hc);const mc=()=>{},fc="core/block-editor",bc="linkControlSettingsDrawer";function vc({searchInputPlaceholder:e,value:t,settings:n=$a,onChange:o=mc,onRemove:r,onCancel:s,noDirectEntry:i=!1,showSuggestions:l=!0,showInitialSuggestions:u,forceIsEditingLink:d,createSuggestion:p,withCreateSuggestion:h,inputValue:g="",suggestionsQuery:m={},noURLSuggestion:f=!1,createSuggestionButtonText:b,hasRichPreviews:v=!1,hasTextControl:k=!1,renderControlBottom:_=null}){void 0===h&&p&&(h=!0);const[x,y]=(0,a.useState)(!1),{advancedSettingsPreference:S}=(0,c.useSelect)((e=>{var t;return{advancedSettingsPreference:null!==(t=e(ma.store).get(fc,bc))&&void 0!==t&&t}}),[]),{set:w}=(0,c.useDispatch)(ma.store),B=S||x,I=(0,a.useRef)(!0),j=(0,a.useRef)(),E=(0,a.useRef)(),T=(0,a.useRef)(!1),M=n.map((({id:e})=>e)),[P,R,N,A,L]=function(e){const[t,n]=(0,a.useState)(e||{}),[o,r]=(0,a.useState)(e);return gc()(e,o)||(r(e),n(e)),[t,n,e=>{n({...t,url:e})},e=>{n({...t,title:e})},e=>o=>{const r=Object.keys(o).reduce(((t,n)=>(e.includes(n)&&(t[n]=o[n]),t)),{});n({...t,...r})}]}(t),O=t&&!(0,ha.isShallowEqualObjects)(P,t),[D,z]=(0,a.useState)(void 0!==d?d:!t||!t.url),{createPage:V,isCreatingPage:F,errorMessage:H}=function(e){const t=(0,a.useRef)(),[n,o]=(0,a.useState)(!1),[r,s]=(0,a.useState)(null);return(0,a.useEffect)((()=>()=>{t.current&&t.current.cancel()}),[]),{createPage:async function(n){o(!0),s(null);try{return t.current=pc(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&&e.isCanceled)return;throw s(e.message||(0,C.__)("An unknown error occurred during creation. Please try again.")),e}finally{o(!1)}},isCreatingPage:n,errorMessage:r}}(p);(0,a.useEffect)((()=>{void 0!==d&&z(d)}),[d]),(0,a.useEffect)((()=>{if(I.current)return;(sa.focus.focusable.find(j.current)[0]||j.current).focus(),T.current=!1}),[D,F]),(0,a.useEffect)((()=>(I.current=!1,()=>{I.current=!0})),[]);const G=t?.url?.trim()?.length>0,$=()=>{T.current=!!j.current?.contains(j.current.ownerDocument.activeElement),z(!1)},W=()=>{O&&o({...t,...P,url:K}),$()},K=g||P?.url||"",Z=!K?.trim()?.length,q=r&&t&&!D&&!F,Y=D&&G,X=G&&k,Q=(D||!t)&&!F,J=!O||Z,ee=!!n?.length&&D&&G;return(0,U.jsxs)("div",{tabIndex:-1,ref:j,className:"block-editor-link-control",children:[F&&(0,U.jsxs)("div",{className:"block-editor-link-control__loading",children:[(0,U.jsx)(Ps.Spinner,{})," ",(0,C.__)("Creating"),"…"]}),Q&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)("div",{className:ws({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":X,"has-actions":Y}),children:[X&&(0,U.jsx)(Ps.TextControl,{__nextHasNoMarginBottom:!0,ref:E,className:"block-editor-link-control__field block-editor-link-control__text-content",label:(0,C.__)("Text"),value:P?.title,onChange:A,onKeyDown:e=>{const{keyCode:t}=e;t!==la.ENTER||Z||(e.preventDefault(),W())},size:"__unstable-large"}),(0,U.jsx)(ec,{currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:K,withCreateSuggestion:h,onCreateSuggestion:V,onChange:N,onSelect:e=>{const t=Object.keys(e).reduce(((t,n)=>(M.includes(n)||(t[n]=e[n]),t)),{});o({...P,...t,title:P?.title||e?.title}),$()},showInitialSuggestions:u,allowDirectEntry:!i,showSuggestions:l,suggestionsQuery:m,withURLSuggestion:!f,createSuggestionButtonText:b,hideLabelFromVision:!X}),!Y&&(0,U.jsx)("div",{className:"block-editor-link-control__search-enter",children:(0,U.jsx)(Ps.Button,{onClick:J?mc:W,label:(0,C.__)("Submit"),icon:fa,className:"block-editor-link-control__search-submit","aria-disabled":J})})]}),H&&(0,U.jsx)(Ps.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1,children:H})]}),t&&!D&&!F&&(0,U.jsx)(cc,{value:t,onEditClick:()=>z(!0),hasRichPreviews:v,hasUnlinkControl:q,onRemove:()=>{r(),z(!0)}},t?.url),ee&&(0,U.jsx)("div",{className:"block-editor-link-control__tools",children:!Z&&(0,U.jsx)(ka,{settingsOpen:B,setSettingsOpen:e=>{w&&w(fc,bc,e),y(e)},children:(0,U.jsx)(dc,{value:P,settings:n,onChange:L(M)})})}),Y&&(0,U.jsxs)(Ps.__experimentalHStack,{justify:"right",className:"block-editor-link-control__search-actions",children:[(0,U.jsx)(Ps.Button,{variant:"tertiary",onClick:e=>{e.preventDefault(),e.stopPropagation(),R(t),G?$():r?.(),s?.()},children:(0,C.__)("Cancel")}),(0,U.jsx)(Ps.Button,{variant:"primary",onClick:J?mc:W,className:"block-editor-link-control__search-submit","aria-disabled":J,children:(0,C.__)("Save")})]}),!F&&_&&_()]})}vc.ViewerFill=ic,vc.DEFAULT_LINK_SETTINGS=$a;const kc=vc,_c=()=>{};let xc=0;const yc=(0,u.compose)([(0,c.withDispatch)((e=>{const{createNotice:t,removeNotice:n}=e(jo.store);return{createNotice:t,removeNotice:n}})),(0,Ps.withFilters)("editor.MediaReplaceFlow")])((({mediaURL:e,mediaId:t,mediaIds:n,allowedTypes:o,accept:r,onError:s,onSelect:i,onSelectURL:l,onToggleFeaturedImage:u,useFeaturedImage:d,onFilesUpload:p=_c,name:h=(0,C.__)("Replace"),createNotice:g,removeNotice:m,children:f,multiple:b=!1,addToGallery:v,handleUpload:k=!0,popoverProps:_})=>{const x=(0,c.useSelect)((e=>e(Gr).getSettings().mediaUpload),[]),y=!!x,S=(0,a.useRef)(),w="block-editor/media-replace-flow/error-notice/"+ ++xc,B=e=>{const t=(0,sa.__unstableStripHTML)(e);s?s(t):setTimeout((()=>{g("error",t,{speak:!0,id:w,isDismissible:!0})}),1e3)},I=(e,t)=>{d&&u&&u(),t(),i(e),(0,Io.speak)((0,C.__)("The media file has been replaced")),m(w)},j=e=>{e.keyCode===la.DOWN&&(e.preventDefault(),e.target.click())},E=b&&!(!o||0===o.length)&&o.every((e=>"image"===e||e.startsWith("image/")));return(0,U.jsx)(Ps.Dropdown,{popoverProps:_,contentClassName:"block-editor-media-replace-flow__options",renderToggle:({isOpen:e,onToggle:t})=>(0,U.jsx)(Ps.ToolbarButton,{ref:S,"aria-expanded":e,"aria-haspopup":"true",onClick:t,onKeyDown:j,children:h}),renderContent:({onClose:s})=>(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Ps.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu",children:[(0,U.jsxs)(pa,{children:[(0,U.jsx)(da,{gallery:E,addToGallery:v,multiple:b,value:b?n:t,onSelect:e=>I(e,s),allowedTypes:o,render:({open:e})=>(0,U.jsx)(Ps.MenuItem,{icon:aa,onClick:e,children:(0,C.__)("Open Media Library")})}),(0,U.jsx)(Ps.FormFileUpload,{onChange:e=>{((e,t)=>{const n=e.target.files;if(!k)return t(),i(n);p(n),x({allowedTypes:o,filesList:n,onFileChange:([e])=>{I(e,t)},onError:B})})(e,s)},accept:r,multiple:!!b,render:({openFileDialog:e})=>(0,U.jsx)(Ps.MenuItem,{icon:ca,onClick:()=>{e()},children:(0,C.__)("Upload")})})]}),u&&(0,U.jsx)(Ps.MenuItem,{icon:ua,onClick:u,isPressed:d,children:(0,C.__)("Use featured image")}),f]}),l&&(0,U.jsxs)("form",{className:ws("block-editor-media-flow__url-input",{"has-siblings":y||u}),children:[(0,U.jsx)("span",{className:"block-editor-media-replace-flow__image-url-label",children:(0,C.__)("Current media URL:")}),(0,U.jsx)(kc,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:e})=>{l(e),S.current.focus()}})]})]})})}));function Sc(e,t=[]){const n=t.find((t=>t.name===e));return n?.href?n?.href:e}const wc="image",Cc={backgroundImage:!0,backgroundSize:!1};function Bc(e){return"web"===a.Platform.OS&&e?.background?.backgroundImage}function Ic(e){return!!e?.background?.backgroundImage?.id||"string"==typeof e?.background?.backgroundImage||!!e?.background?.backgroundImage?.url}const jc=e=>{if(!e||isNaN(e.x)&&isNaN(e.y))return;return`${100*(isNaN(e.x)?.5:e.x)}% ${100*(isNaN(e.y)?.5:e.y)}%`},Ec=e=>{if(!e)return{x:void 0,y:void 0};let[t,n]=e.split(" ").map((e=>parseFloat(e)/100));return t=isNaN(t)?void 0:t,n=isNaN(n)?t:n,{x:t,y:n}};function Tc({label:e,filename:t,url:n}){const o=e||(0,ra.getFilename)(n)||(0,C.__)("Add background image");return(0,U.jsx)(Ps.__experimentalItemGroup,{as:"span",children:(0,U.jsxs)(Ps.__experimentalHStack,{justify:n?"flex-start":"center",as:"span",children:[n&&(0,U.jsx)("span",{className:ws("block-editor-global-styles-background-panel__inspector-image-indicator-wrapper",{"has-image":n}),"aria-hidden":!0,children:(0,U.jsx)("span",{className:"block-editor-global-styles-background-panel__inspector-image-indicator",style:{backgroundImage:`url(${n})`}})}),(0,U.jsxs)(Ps.FlexItem,{as:"span",children:[(0,U.jsx)(Ps.__experimentalTruncate,{numberOfLines:1,className:"block-editor-global-styles-background-panel__inspector-media-replace-title",children:o}),(0,U.jsx)(Ps.VisuallyHidden,{as:"span",children:n?(0,C.sprintf)((0,C.__)("Background image: %s"),t||o):(0,C.__)("No background image selected")})]})]})})}function Mc({panelId:e,isShownByDefault:t,onChange:n,style:o,inheritedValue:r,themeFileURIs:s}){const i=(0,c.useSelect)((e=>e(Gr).getSettings().mediaUpload),[]),{id:l,title:u,url:d}=o?.background?.backgroundImage||{...r?.background?.backgroundImage},p=(0,a.useRef)(),{createErrorNotice:h}=(0,c.useDispatch)(jo.store),g=e=>{h(e,{type:"snackbar"})},m=()=>n(pe(o,["background","backgroundImage"],void 0)),f=e=>{if(!e||!e.url)return void m();if((0,ia.isBlobURL)(e.url))return;if(e.media_type&&e.media_type!==wc||!e.media_type&&e.type&&e.type!==wc)return void g((0,C.__)("Only images can be used as a background image."));const t=o?.background?.backgroundSize,r=o?.background?.backgroundPosition;n(pe(o,["background"],{...o?.background,backgroundImage:{url:e.url,id:e.id,source:"file",title:e.title||void 0},backgroundPosition:r||"auto"!==t&&t?r:"50% 0"}))},b=(0,a.useCallback)((e=>({...e,style:{...e.style,background:void 0}})),[]),v=Ic(o),k=()=>{const[e]=sa.focus.tabbable.find(p.current);e?.focus(),e?.click()},_=!v&&Ic(r);return(0,U.jsx)(Ps.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>v,label:(0,C.__)("Background image"),onDeselect:m,isShownByDefault:t,resetAllFilter:b,panelId:e,children:(0,U.jsxs)("div",{className:"block-editor-global-styles-background-panel__inspector-media-replace-container",ref:p,children:[(0,U.jsxs)(yc,{mediaId:l,mediaURL:d,allowedTypes:[wc],accept:"image/*",onSelect:f,name:(0,U.jsx)(Tc,{label:u,filename:u,url:Sc(d,s)}),variant:"secondary",children:[_&&(0,U.jsx)(Ps.MenuItem,{onClick:()=>{k(),n(pe(o,["background","backgroundImage"],"none"))},children:(0,C.__)("Remove")}),v&&(0,U.jsx)(Ps.MenuItem,{onClick:()=>{k(),m()},children:(0,C.__)("Reset ")})]}),(0,U.jsx)(Ps.DropZone,{onFilesDrop:e=>{i({allowedTypes:[wc],filesList:e,onFileChange([e]){(0,ia.isBlobURL)(e?.url)||f(e)},onError:g})},label:(0,C.__)("Drop to upload")})]})})}function Pc({panelId:e,isShownByDefault:t,onChange:n,style:o,inheritedValue:r,defaultValues:s,themeFileURIs:i}){const l=o?.background?.backgroundSize||r?.background?.backgroundSize,c=o?.background?.backgroundRepeat||r?.background?.backgroundRepeat,u=o?.background?.backgroundImage?.url||r?.background?.backgroundImage?.url,d=o?.background?.backgroundPosition||r?.background?.backgroundPosition,p=void 0!==l&&"cover"!==l&&"contain"!==l||""===l?"auto":l||s?.backgroundSize,h=!("no-repeat"===c||"cover"===p&&void 0===c),g=function(e){return void 0!==e?.background?.backgroundPosition||void 0!==e?.background?.backgroundSize}(o),m=(0,a.useCallback)((e=>({...e,style:{...e.style,background:{...e.style?.background,backgroundRepeat:void 0,backgroundSize:void 0}}})),[]),f=e=>{let t=c,r=d;"contain"===e&&(t="no-repeat",r=void 0),"cover"===e&&(t=void 0,r=void 0),"cover"!==p&&"contain"!==p||"auto"!==e||(t=void 0,o?.background?.backgroundImage?.id&&(r="50% 0")),e||"auto"!==p||(e="auto"),n(pe(o,["background"],{...o?.background,backgroundPosition:r,backgroundRepeat:t,backgroundSize:e}))};return(0,U.jsxs)(Ps.__experimentalVStack,{as:Ps.__experimentalToolsPanelItem,spacing:2,className:"single-column",hasValue:()=>g,label:(0,C.__)("Size"),onDeselect:()=>n(pe(o,["background"],{...o?.background,backgroundPosition:void 0,backgroundRepeat:void 0,backgroundSize:void 0})),isShownByDefault:t,resetAllFilter:m,panelId:e,children:[(0,U.jsx)(Ps.FocalPointPicker,{__next40pxDefaultSize:!0,label:(0,C.__)("Position"),url:Sc(u,i),value:Ec(d),onChange:e=>{n(pe(o,["background","backgroundPosition"],jc(e)))}}),(0,U.jsxs)(Ps.__experimentalToggleGroupControl,{size:"__unstable-large",label:(0,C.__)("Size"),value:p,onChange:f,isBlock:!0,help:(b=l||s?.backgroundSize,"cover"===b||void 0===b?(0,C.__)("Image covers the space evenly."):"contain"===b?(0,C.__)("Image is contained without distortion."):(0,C.__)("Image has a fixed width.")),children:[(0,U.jsx)(Ps.__experimentalToggleGroupControlOption,{value:"cover",label:(0,C._x)("Cover","Size option for background image control")},"cover"),(0,U.jsx)(Ps.__experimentalToggleGroupControlOption,{value:"contain",label:(0,C._x)("Contain","Size option for background image control")},"contain"),(0,U.jsx)(Ps.__experimentalToggleGroupControlOption,{value:"auto",label:(0,C._x)("Tile","Size option for background image control")},"tile")]}),(0,U.jsxs)(Ps.__experimentalHStack,{justify:"flex-start",spacing:2,as:"span",children:[void 0!==p&&"cover"!==p&&"contain"!==p?(0,U.jsx)(Ps.__experimentalUnitControl,{"aria-label":(0,C.__)("Background image width"),onChange:f,value:l,size:"__unstable-large",__unstableInputWidth:"100px",min:0,placeholder:(0,C.__)("Auto")}):null,"cover"!==p&&(0,U.jsx)(Ps.ToggleControl,{label:(0,C.__)("Repeat"),checked:h,onChange:()=>n(pe(o,["background","backgroundRepeat"],!0===h?"no-repeat":"repeat"))})]})]});var b}function Rc({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r,headerLabel:s}){const i=as();return(0,U.jsx)(Ps.__experimentalVStack,{as:Ps.__experimentalToolsPanel,spacing:4,label:s,resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:i,children:r})}function Nc({as:e=Rc,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:s,defaultControls:i=Cc,defaultValues:l={},headerLabel:c=(0,C.__)("Background image"),themeFileURIs:u}){const d=(0,a.useCallback)((e=>({...e,background:{}})),[]),p=r?.background?.backgroundSize;return(0,U.jsxs)(e,{resetAllFilter:d,value:t,onChange:n,panelId:s,headerLabel:c,children:[(0,U.jsx)(Mc,{onChange:n,panelId:s,isShownByDefault:i.backgroundImage,style:t,inheritedValue:o,themeFileURIs:u}),p&&(0,U.jsx)(Pc,{onChange:n,panelId:s,isShownByDefault:i.backgroundSize,style:t,inheritedValue:o,defaultValues:l,themeFileURIs:u})]})}const Ac="background",Lc={backgroundSize:"cover"};function Oc(e,t="any"){const n=(0,l.getBlockSupport)(e,Ac);return!0===n||("any"===t?!!n?.backgroundImage||!!n?.backgroundSize||!!n?.backgroundRepeat:!!n?.[t])}function Dc(e){return Ic(e)?"has-background":""}function zc({children:e}){const t=(0,a.useCallback)((e=>({...e,style:{...e.style,background:void 0}})),[]);return(0,U.jsx)(oa,{group:"background",resetAllFilter:t,children:e})}function Vc({clientId:e,name:t,setAttributes:n,settings:o}){const r=(0,c.useSelect)((t=>t(Gr).getBlockAttributes(e)?.style),[e]);if(!Bc(o)||!Oc(t,"backgroundImage"))return null;const s=(0,l.getBlockSupport)(t,[Ac,"__experimentalDefaultControls"]),i={...o,background:{...o.background,backgroundSize:o?.background?.backgroundSize&&Oc(t,"backgroundSize")}};return(0,U.jsx)(Nc,{as:zc,panelId:e,defaultControls:s,defaultValues:Lc,settings:i,onChange:e=>{n({style:Cs(e)})},value:r})}const Fc={useBlockProps:function({name:e,style:t}){if(!Oc(e)||!t?.background?.backgroundImage)return;const n=function(e){if(!e)return;const t=e?.backgroundImage;let n;return t?.url&&(e?.backgroundSize||(n={backgroundSize:"cover"}),"contain"!==e?.backgroundSize||e?.backgroundPosition||(n={backgroundPosition:"center"})),n}(t?.background);return n?{style:{...n}}:void 0},attributeKeys:["style"],hasSupport:Oc};(0,d.addFilter)("blocks.registerBlockType","core/lock/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.lock)&&void 0!==t?t:{})||(e.attributes={...e.attributes,lock:{type:"object"}}),e}));const Hc=/[\s#]/g,Gc={type:"string",source:"attribute",attribute:"id",selector:"*"};const Uc={addSaveProps:function(e,t,n){(0,l.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor);return e},edit:function({anchor:e,setAttributes:t}){if("default"!==Pl())return null;const n="web"===a.Platform.OS;return(0,U.jsx)(oa,{group:"advanced",children:(0,U.jsx)(Ps.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"html-anchor-control",label:(0,C.__)("HTML anchor"),help:(0,U.jsxs)(U.Fragment,{children:[(0,C.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor”. Then, you’ll be able to link directly to this section of your page."),n&&(0,U.jsxs)(U.Fragment,{children:[" ",(0,U.jsx)(Ps.ExternalLink,{href:(0,C.__)("https://wordpress.org/documentation/article/page-jumps/"),children:(0,C.__)("Learn more about anchors")})]})]}),value:e||"",placeholder:n?null:(0,C.__)("Add an anchor"),onChange:e=>{e=e.replace(Hc,"-"),t({anchor:e})},autoCapitalize:"none",autoComplete:"off"})})},attributeKeys:["anchor"],hasSupport:e=>(0,l.hasBlockSupport)(e,"anchor")};(0,d.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.anchor)&&void 0!==t?t:{})||(0,l.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:Gc}),e}));const $c={type:"string",source:"attribute",attribute:"aria-label",selector:"*"};const Wc={addSaveProps:function(e,t,n){return(0,l.hasBlockSupport)(t,"ariaLabel")&&(e["aria-label"]=""===n.ariaLabel?null:n.ariaLabel),e},attributeKeys:["ariaLabel"],hasSupport:e=>(0,l.hasBlockSupport)(e,"ariaLabel")};(0,d.addFilter)("blocks.registerBlockType","core/ariaLabel/attribute",(function(e){return e?.attributes?.ariaLabel?.type||(0,l.hasBlockSupport)(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:$c}),e}));const Kc={edit:function({className:e,setAttributes:t}){return"default"!==Pl()?null:(0,U.jsx)(oa,{group:"advanced",children:(0,U.jsx)(Ps.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,C.__)("Additional CSS class(es)"),value:e||"",onChange:e=>{t({className:""!==e?e:void 0})},help:(0,C.__)("Separate multiple classes with spaces.")})})},addSaveProps:function(e,t,n){(0,l.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=ws(e.className,n.className));return e},attributeKeys:["className"],hasSupport:e=>(0,l.hasBlockSupport)(e,"customClassName",!0)};(0,d.addFilter)("blocks.registerBlockType","core/editor/custom-class-name/attribute",(function(e){return(0,l.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),(0,d.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,o){if(!(0,l.hasBlockSupport)(e.name,"customClassName",!0))return e;if(1===o.length&&e.innerBlocks.length===t.length)return e;if(1===o.length&&t.length>1||o.length>1&&1===t.length)return e;if(t[n]){const o=t[n]?.attributes.className;if(o)return{...e,attributes:{...e.attributes,className:o}}}return e})),(0,d.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return(0,l.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=[...new Set([(0,l.getBlockDefaultClassName)(t.name),...e.className.split(" ")])].join(" ").trim():e.className=(0,l.getBlockDefaultClassName)(t.name)),e}));var Zc={grad:.9,turn:360,rad:360/(2*Math.PI)},qc=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Yc=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Xc=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Qc=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Jc=function(e){return{r:Xc(e.r,0,255),g:Xc(e.g,0,255),b:Xc(e.b,0,255),a:Xc(e.a)}},eu=function(e){return{r:Yc(e.r),g:Yc(e.g),b:Yc(e.b),a:Yc(e.a,3)}},tu=/^#([0-9a-f]{3,8})$/i,nu=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},ou=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,s=Math.max(t,n,o),i=s-Math.min(t,n,o),l=i?s===t?(n-o)/i:s===n?2+(o-t)/i:4+(t-n)/i:0;return{h:60*(l<0?l+6:l),s:s?i/s*100:0,v:s/255*100,a:r}},ru=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var s=Math.floor(t),i=o*(1-n),l=o*(1-(t-s)*n),a=o*(1-(1-t+s)*n),c=s%6;return{r:255*[o,l,i,i,a,o][c],g:255*[a,o,o,l,i,i][c],b:255*[i,i,a,o,o,l][c],a:r}},su=function(e){return{h:Qc(e.h),s:Xc(e.s,0,100),l:Xc(e.l,0,100),a:Xc(e.a)}},iu=function(e){return{h:Yc(e.h),s:Yc(e.s),l:Yc(e.l),a:Yc(e.a,3)}},lu=function(e){return ru((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},au=function(e){return{h:(t=ou(e)).h,s:(r=(200-(n=t.s))*(o=t.v)/100)>0&&r<200?n*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,o,r},cu=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,uu=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,du=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,pu=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,hu={string:[[function(e){var t=tu.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Yc(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Yc(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=du.exec(e)||pu.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Jc({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=cu.exec(e)||uu.exec(e);if(!t)return null;var n,o,r=su({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(Zc[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return lu(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,r=e.a,s=void 0===r?1:r;return qc(t)&&qc(n)&&qc(o)?Jc({r:Number(t),g:Number(n),b:Number(o),a:Number(s)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,r=e.a,s=void 0===r?1:r;if(!qc(t)||!qc(n)||!qc(o))return null;var i=su({h:Number(t),s:Number(n),l:Number(o),a:Number(s)});return lu(i)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,r=e.a,s=void 0===r?1:r;if(!qc(t)||!qc(n)||!qc(o))return null;var i=function(e){return{h:Qc(e.h),s:Xc(e.s,0,100),v:Xc(e.v,0,100),a:Xc(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(s)});return ru(i)},"hsv"]]},gu=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},mu=function(e){return"string"==typeof e?gu(e.trim(),hu.string):"object"==typeof e&&null!==e?gu(e,hu.object):[null,void 0]},fu=function(e,t){var n=au(e);return{h:n.h,s:Xc(n.s+100*t,0,100),l:n.l,a:n.a}},bu=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},vu=function(e,t){var n=au(e);return{h:n.h,s:n.s,l:Xc(n.l+100*t,0,100),a:n.a}},ku=function(){function e(e){this.parsed=mu(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Yc(bu(this.rgba),2)},e.prototype.isDark=function(){return bu(this.rgba)<.5},e.prototype.isLight=function(){return bu(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=eu(this.rgba)).r,n=e.g,o=e.b,s=(r=e.a)<1?nu(Yc(255*r)):"","#"+nu(t)+nu(n)+nu(o)+s;var e,t,n,o,r,s},e.prototype.toRgb=function(){return eu(this.rgba)},e.prototype.toRgbString=function(){return t=(e=eu(this.rgba)).r,n=e.g,o=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+o+", "+r+")":"rgb("+t+", "+n+", "+o+")";var e,t,n,o,r},e.prototype.toHsl=function(){return iu(au(this.rgba))},e.prototype.toHslString=function(){return t=(e=iu(au(this.rgba))).h,n=e.s,o=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+o+"%, "+r+")":"hsl("+t+", "+n+"%, "+o+"%)";var e,t,n,o,r},e.prototype.toHsv=function(){return e=ou(this.rgba),{h:Yc(e.h),s:Yc(e.s),v:Yc(e.v),a:Yc(e.a,3)};var e},e.prototype.invert=function(){return _u({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),_u(fu(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),_u(fu(this.rgba,-e))},e.prototype.grayscale=function(){return _u(fu(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),_u(vu(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),_u(vu(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?_u({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Yc(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=au(this.rgba);return"number"==typeof e?_u({h:e,s:t.s,l:t.l,a:t.a}):Yc(t.h)},e.prototype.isEqual=function(e){return this.toHex()===_u(e).toHex()},e}(),_u=function(e){return e instanceof ku?e:new ku(e)},xu=[],yu=function(e){e.forEach((function(e){xu.indexOf(e)<0&&(e(ku,hu),xu.push(e))}))};function Su(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var r in n)o[n[r]]=r;var s={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,i,l=o[this.toHex()];if(l)return l;if(null==t?void 0:t.closest){var a=this.toRgb(),c=1/0,u="black";if(!s.length)for(var d in n)s[d]=new e(n[d]).toRgb();for(var p in n){var h=(r=a,i=s[p],Math.pow(r.r-i.r,2)+Math.pow(r.g-i.g,2)+Math.pow(r.b-i.b,2));h<c&&(c=h,u=p)}return u}},t.string.push([function(t){var o=t.toLowerCase(),r="transparent"===o?"#0000":n[o];return r?new e(r).toRgb():null},"name"])}var wu=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Cu=function(e){return.2126*wu(e.r)+.7152*wu(e.g)+.0722*wu(e.b)};function Bu(e){e.prototype.luminance=function(){return e=Cu(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,o,r,s,i,l,a,c=t instanceof e?t:new e(t);return s=this.rgba,i=c.toRgb(),n=(l=Cu(s))>(a=Cu(i))?(l+.05)/(a+.05):(a+.05)/(l+.05),void 0===(o=2)&&(o=0),void 0===r&&(r=Math.pow(10,o)),Math.floor(r*n)/r+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(i=void 0===(s=(n=t).size)?"normal":s,"AAA"===(r=void 0===(o=n.level)?"AA":o)&&"normal"===i?7:"AA"===r&&"large"===i?3:4.5);var n,o,r,s,i}}yu([Su,Bu]);const{kebabCase:Iu}=Q(Ps.privateApis),ju=(e,t,n)=>{if(t){const n=e?.find((e=>e.slug===t));if(n)return n}return{color:n}},Eu=(e,t)=>e?.find((e=>e.color===t));function Tu(e,t){if(e&&t)return`has-${Iu(t)}-${e}`}function Mu(){const[e,t,n,o,r,s,i,l,c,u]=$r("color.custom","color.palette.custom","color.palette.theme","color.palette.default","color.defaultPalette","color.customGradient","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients"),d={disableCustomColors:!e,disableCustomGradients:!s};return d.colors=(0,a.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,C._x)("Theme","Indicates this palette comes from the theme."),colors:n}),r&&o&&o.length&&e.push({name:(0,C._x)("Default","Indicates this palette comes from WordPress."),colors:o}),t&&t.length&&e.push({name:(0,C._x)("Custom","Indicates this palette comes from the theme."),colors:t}),e}),[t,n,o,r]),d.gradients=(0,a.useMemo)((()=>{const e=[];return l&&l.length&&e.push({name:(0,C._x)("Theme","Indicates this palette comes from the theme."),gradients:l}),u&&c&&c.length&&e.push({name:(0,C._x)("Default","Indicates this palette comes from WordPress."),gradients:c}),i&&i.length&&e.push({name:(0,C._x)("Custom","Indicates this palette is created by the user."),gradients:i}),e}),[i,l,c,u]),d.hasColorsOrGradients=!!d.colors.length||!!d.gradients.length,d}function Pu(e){return[...e].sort(((t,n)=>e.filter((e=>e===n)).length-e.filter((e=>e===t)).length)).shift()}function Ru(e={}){const{flat:t,...n}=e;return t||Pu(Object.values(n).filter(Boolean))||"px"}function Nu(e={}){if("string"==typeof e)return e;const t=Object.values(e).map((e=>(0,Ps.__experimentalParseQuantityAndUnitFromRawValue)(e))),n=t.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),o=t.map((e=>e[1])),r=n.every((e=>e===n[0]))?n[0]:"",s=Pu(o);return 0===r||r?`${r}${s}`:void 0}function Au(e={}){const t=Nu(e);return"string"!=typeof e&&isNaN(parseFloat(t))}function Lu(e){if(!e)return!1;if("string"==typeof e)return!0;return!!Object.values(e).filter((e=>!!e||0===e)).length}function Ou({onChange:e,selectedUnits:t,setSelectedUnits:n,values:o,...r}){let s=Nu(o);void 0===s&&(s=Ru(t));const i=Lu(o)&&Au(o),l=i?(0,C.__)("Mixed"):null;return(0,U.jsx)(Ps.__experimentalUnitControl,{...r,"aria-label":(0,C.__)("Border radius"),disableUnits:i,isOnly:!0,value:s,onChange:t=>{const n=!isNaN(parseFloat(t));e(n?t:void 0)},onUnitChange:e=>{n({topLeft:e,topRight:e,bottomLeft:e,bottomRight:e})},placeholder:l,size:"__unstable-large"})}const Du={topLeft:(0,C.__)("Top left"),topRight:(0,C.__)("Top right"),bottomLeft:(0,C.__)("Bottom left"),bottomRight:(0,C.__)("Bottom right")};function zu({onChange:e,selectedUnits:t,setSelectedUnits:n,values:o,...r}){const s=t=>n=>{if(!e)return;const o=!isNaN(parseFloat(n))?n:void 0;e({...i,[t]:o})},i="string"!=typeof o?o:{topLeft:o,topRight:o,bottomLeft:o,bottomRight:o};return(0,U.jsx)("div",{className:"components-border-radius-control__input-controls-wrapper",children:Object.entries(Du).map((([e,o])=>{const[l,a]=(0,Ps.__experimentalParseQuantityAndUnitFromRawValue)(i[e]),c=i[e]?a:t[e]||t.flat;return(0,U.jsx)(Ps.Tooltip,{text:o,placement:"top",children:(0,U.jsx)("div",{className:"components-border-radius-control__tooltip-wrapper",children:(0,U.jsx)(Ps.__experimentalUnitControl,{...r,"aria-label":o,value:[l,c].join(""),onChange:s(e),onUnitChange:(u=e,e=>{const o={...t};o[u]=e,n(o)}),size:"__unstable-large"})})},e);var u}))})}const Vu=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})});function Fu({isLinked:e,...t}){const n=e?(0,C.__)("Unlink radii"):(0,C.__)("Link radii");return(0,U.jsx)(Ps.Tooltip,{text:n,children:(0,U.jsx)(Ps.Button,{...t,className:"component-border-radius-control__linked-button",size:"small",icon:e?Vu:oc,iconSize:24,"aria-label":n})})}const Hu={topLeft:void 0,topRight:void 0,bottomLeft:void 0,bottomRight:void 0},Gu=0,Uu={px:100,em:20,rem:20};function $u({onChange:e,values:t}){const[n,o]=(0,a.useState)(!Lu(t)||!Au(t)),[r,s]=(0,a.useState)({flat:"string"==typeof t?(0,Ps.__experimentalParseQuantityAndUnitFromRawValue)(t)[1]:void 0,topLeft:(0,Ps.__experimentalParseQuantityAndUnitFromRawValue)(t?.topLeft)[1],topRight:(0,Ps.__experimentalParseQuantityAndUnitFromRawValue)(t?.topRight)[1],bottomLeft:(0,Ps.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomLeft)[1],bottomRight:(0,Ps.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomRight)[1]}),[i]=$r("spacing.units"),l=(0,Ps.__experimentalUseCustomUnits)({availableUnits:i||["px","em","rem"]}),c=Ru(r),u=l&&l.find((e=>e.value===c)),d=u?.step||1,[p]=(0,Ps.__experimentalParseQuantityAndUnitFromRawValue)(Nu(t));return(0,U.jsxs)("fieldset",{className:"components-border-radius-control",children:[(0,U.jsx)(Ps.BaseControl.VisualLabel,{as:"legend",children:(0,C.__)("Radius")}),(0,U.jsxs)("div",{className:"components-border-radius-control__wrapper",children:[n?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ou,{className:"components-border-radius-control__unit-control",values:t,min:Gu,onChange:e,selectedUnits:r,setSelectedUnits:s,units:l}),(0,U.jsx)(Ps.RangeControl,{label:(0,C.__)("Border radius"),hideLabelFromVision:!0,className:"components-border-radius-control__range-control",value:null!=p?p:"",min:Gu,max:Uu[c],initialPosition:0,withInputField:!1,onChange:t=>{e(void 0!==t?`${t}${c}`:void 0)},step:d,__nextHasNoMarginBottom:!0})]}):(0,U.jsx)(zu,{min:Gu,onChange:e,selectedUnits:r,setSelectedUnits:s,values:t||Hu,units:l}),(0,U.jsx)(Fu,{onClick:()=>o(!n),isLinked:n})]})]})}const Wu=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})}),Ku=(0,U.jsx)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,U.jsx)(G.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})}),Zu=[],{CompositeItemV2:qu,CompositeV2:Yu,useCompositeStoreV2:Xu}=Q(Ps.privateApis);function Qu({shadow:e,onShadowChange:t,settings:n}){const o=nd(n);return(0,U.jsx)("div",{className:"block-editor-global-styles__shadow-popover-container",children:(0,U.jsxs)(Ps.__experimentalVStack,{spacing:4,children:[(0,U.jsx)(Ps.__experimentalHeading,{level:5,children:(0,C.__)("Drop shadow")}),(0,U.jsx)(Ju,{presets:o,activeShadow:e,onSelect:t}),(0,U.jsx)("div",{className:"block-editor-global-styles__clear-shadow",children:(0,U.jsx)(Ps.Button,{variant:"tertiary",onClick:()=>t(void 0),children:(0,C.__)("Clear")})})]})})}function Ju({presets:e,activeShadow:t,onSelect:n}){const o=Xu();return e?(0,U.jsx)(Yu,{store:o,role:"listbox",className:"block-editor-global-styles__shadow__list","aria-label":(0,C.__)("Drop shadows"),children:e.map((({name:e,slug:o,shadow:r})=>(0,U.jsx)(ed,{label:e,isActive:r===t,type:"unset"===o?"unset":"preset",onSelect:()=>n(r===t?void 0:r),shadow:r},o)))}):null}function ed({type:e,label:t,isActive:n,onSelect:o,shadow:r}){return(0,U.jsx)(qu,{role:"option","aria-label":t,"aria-selected":n,className:ws("block-editor-global-styles__shadow__item",{"is-active":n}),render:(0,U.jsx)(Ps.Button,{className:ws("block-editor-global-styles__shadow-indicator",{unset:"unset"===e}),onClick:o,label:t,style:{boxShadow:r},showTooltip:!0,children:n&&(0,U.jsx)(Hi,{icon:Wu})})})}function td({shadow:e,onShadowChange:t,settings:n}){return(0,U.jsx)(Ps.Dropdown,{popoverProps:{placement:"left-start",offset:36,shift:!0},className:"block-editor-global-styles__shadow-dropdown",renderToggle:({onToggle:e,isOpen:t})=>{const n={onClick:e,className:ws({"is-open":t}),"aria-expanded":t};return(0,U.jsx)(Ps.Button,{...n,children:(0,U.jsxs)(Ps.__experimentalHStack,{justify:"flex-start",children:[(0,U.jsx)(Hi,{className:"block-editor-global-styles__toggle-icon",icon:Ku,size:24}),(0,U.jsx)(Ps.FlexItem,{children:(0,C.__)("Drop shadow")})]})})},renderContent:()=>(0,U.jsx)(Ps.__experimentalDropdownContentWrapper,{paddingSize:"medium",children:(0,U.jsx)(Qu,{shadow:e,onShadowChange:t,settings:n})})})}function nd(e){return(0,a.useMemo)((()=>{var t;if(!e?.shadow)return Zu;const n=e?.shadow?.defaultPresets,{default:o,theme:r,custom:s}=null!==(t=e?.shadow?.presets)&&void 0!==t?t:{},i={name:(0,C.__)("Unset"),slug:"unset",shadow:"none"},l=[...n&&o||Zu,...r||Zu,...s||Zu];return l.length&&l.unshift(i),l}),[e])}function od(e){return Object.values(rd(e)).some(Boolean)}function rd(e){return{hasBorderColor:sd(e),hasBorderRadius:id(e),hasBorderStyle:ld(e),hasBorderWidth:ad(e),hasShadow:cd(e)}}function sd(e){return e?.border?.color}function id(e){return e?.border?.radius}function ld(e){return e?.border?.style}function ad(e){return e?.border?.width}function cd(e){const t=nd(e);return!!e?.shadow&&t.length>0}function ud({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r,label:s}){const i=as();return(0,U.jsx)(Ps.__experimentalToolsPanel,{label:s,resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:i,children:r})}const dd={radius:!0,color:!0,width:!0,shadow:!0};function pd({as:e=ud,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:s,name:i,defaultControls:l=dd}){var c,u,d,p;const h=xs(r),g=(0,a.useCallback)((e=>us({settings:r},"",e)),[r]),m=e=>{const t=h.flatMap((({colors:e})=>e)).find((({color:t})=>t===e));return t?"var:preset|color|"+t.slug:e},f=(0,a.useMemo)((()=>{if((0,Ps.__experimentalHasSplitBorders)(o?.border)){const e={...o?.border};return["top","right","bottom","left"].forEach((t=>{e[t]={...e[t],color:g(e[t]?.color)}})),e}return{...o?.border,color:o?.border?.color?g(o?.border?.color):void 0}}),[o?.border,g]),b=e=>n({...t,border:e}),v=sd(r),k=ld(r),_=ad(r),x=id(r),y=g(f?.radius),S=e=>b({...f,radius:e}),w=()=>{const e=t?.border?.radius;return"object"==typeof e?Object.entries(e).some(Boolean):!!e},B=cd(r),I=g(o?.shadow),j=null!==(c=r?.shadow?.presets)&&void 0!==c?c:{},E=null!==(u=null!==(d=null!==(p=j.custom)&&void 0!==p?p:j.theme)&&void 0!==d?d:j.default)&&void 0!==u?u:[],T=e=>{const o=E?.find((({shadow:t})=>t===e))?.slug;n(pe(t,["shadow"],o?`var:preset|shadow|${o}`:e||void 0))},M=(0,a.useCallback)((e=>({...e,border:void 0,shadow:void 0})),[]),P=l?.color||l?.width,R=v||k||_||x,N=Sd({blockName:i,hasShadowControl:B,hasBorderControl:R});return(0,U.jsxs)(e,{resetAllFilter:M,value:t,onChange:n,panelId:s,label:N,children:[(_||v)&&(0,U.jsx)(Ps.__experimentalToolsPanelItem,{hasValue:()=>(0,Ps.__experimentalIsDefinedBorder)(t?.border),label:(0,C.__)("Border"),onDeselect:()=>(()=>{if(w())return b({radius:t?.border?.radius});b(void 0)})(),isShownByDefault:P,panelId:s,children:(0,U.jsx)(Ps.__experimentalBorderBoxControl,{colors:h,enableAlpha:!0,enableStyle:k,onChange:e=>{const t={...e};(0,Ps.__experimentalHasSplitBorders)(t)?["top","right","bottom","left"].forEach((e=>{t[e]&&(t[e]={...t[e],color:m(t[e]?.color)})})):t&&(t.color=m(t.color)),b({radius:f?.radius,...t})},popoverOffset:40,popoverPlacement:"left-start",value:f,__experimentalIsRenderedInSidebar:!0,size:"__unstable-large",hideLabelFromVision:!B,label:(0,C.__)("Border")})}),x&&(0,U.jsx)(Ps.__experimentalToolsPanelItem,{hasValue:w,label:(0,C.__)("Radius"),onDeselect:()=>S(void 0),isShownByDefault:l.radius,panelId:s,children:(0,U.jsx)($u,{values:y,onChange:e=>{S(e||void 0)}})}),B&&(0,U.jsxs)(Ps.__experimentalToolsPanelItem,{label:(0,C.__)("Shadow"),hasValue:()=>!!t?.shadow,onDeselect:()=>T(void 0),isShownByDefault:l.shadow,panelId:s,children:[R?(0,U.jsx)(Ps.BaseControl.VisualLabel,{as:"legend",children:(0,C.__)("Shadow")}):null,(0,U.jsx)(Ps.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:(0,U.jsx)(td,{shadow:I,onShadowChange:T,settings:r})})]})]})}const hd="__experimentalBorder",gd="shadow",md=(e,t,n)=>{let o;return e.some((e=>e.colors.some((e=>e[t]===n&&(o=e,!0))))),o},fd=({colors:e,namedColor:t,customColor:n})=>{if(t){const n=md(e,"slug",t);if(n)return n}if(!n)return{color:void 0};const o=md(e,"color",n);return o||{color:n}};function bd(e){const t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function vd(e){if((0,Ps.__experimentalHasSplitBorders)(e?.border))return{style:e,borderColor:void 0};const t=e?.border?.color,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,o={...e};return o.border={...o.border,color:n?void 0:t},{style:Cs(o),borderColor:n}}function kd(e){return(0,Ps.__experimentalHasSplitBorders)(e.style?.border)?e.style:{...e.style,border:{...e.style?.border,color:e.borderColor?"var:preset|color|"+e.borderColor:e.style?.border?.color}}}function _d({label:e,children:t,resetAllFilter:n}){const o=(0,a.useCallback)((e=>{const t=kd(e),o=n(t);return{...e,...vd(o)}}),[n]);return(0,U.jsx)(oa,{group:"border",resetAllFilter:o,label:e,children:t})}function xd({clientId:e,name:t,setAttributes:n,settings:o}){const r=od(o);const{style:s,borderColor:i}=(0,c.useSelect)((function(t){const{style:n,borderColor:o}=t(Gr).getBlockAttributes(e)||{};return{style:n,borderColor:o}}),[e]),u=(0,a.useMemo)((()=>kd({style:s,borderColor:i})),[s,i]);if(!r)return null;const d={...(0,l.getBlockSupport)(t,[hd,"__experimentalDefaultControls"]),...(0,l.getBlockSupport)(t,[gd,"__experimentalDefaultControls"])};return(0,U.jsx)(pd,{as:_d,panelId:e,settings:o,value:u,onChange:e=>{n(vd(e))},defaultControls:d})}function yd(e,t="any"){if("web"!==a.Platform.OS)return!1;const n=(0,l.getBlockSupport)(e,hd);return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}function Sd({blockName:e,hasBorderControl:t,hasShadowControl:n}={}){const o=rd(Ts(e));return t||n||!e||(t=o?.hasBorderColor||o?.hasBorderStyle||o?.hasBorderWidth||o?.hasBorderRadius,n=o?.hasShadow),t&&n?(0,C.__)("Border & Shadow"):n?(0,C.__)("Shadow"):(0,C.__)("Border")}function wd(e,t,n){if(!yd(t,"color")||Is(t,hd,"color"))return e;const o=Cd(n),r=ws(e.className,o);return e.className=r||void 0,e}function Cd(e){const{borderColor:t,style:n}=e,o=Tu("border-color",t);return ws({"has-border-color":t||n?.border?.color,[o]:!!o})}const Bd={useBlockProps:function({name:e,borderColor:t,style:n}){const{colors:o}=Mu();if(!yd(e,"color")||Is(e,hd,"color"))return{};const{color:r}=fd({colors:o,namedColor:t}),{color:s}=fd({colors:o,namedColor:bd(n?.border?.top?.color)}),{color:i}=fd({colors:o,namedColor:bd(n?.border?.right?.color)}),{color:l}=fd({colors:o,namedColor:bd(n?.border?.bottom?.color)}),{color:a}=fd({colors:o,namedColor:bd(n?.border?.left?.color)});return wd({style:Cs({borderTopColor:s||r,borderRightColor:i||r,borderBottomColor:l||r,borderLeftColor:a||r})||{}},e,{borderColor:t,style:n})},addSaveProps:wd,attributeKeys:["borderColor","style"],hasSupport:e=>yd(e,"color")};function Id(e){if(e)return`has-${e}-gradient-background`}function jd(e,t){const n=e?.find((e=>e.slug===t));return n&&n.gradient}function Ed(e,t){const n=e?.find((e=>e.gradient===t));return n}function Td(e,t){const n=Ed(e,t);return n&&n.slug}function Md({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){const{clientId:n}=_(),[o,r,s]=$r("color.gradients.custom","color.gradients.theme","color.gradients.default"),i=(0,a.useMemo)((()=>[...o||[],...r||[],...s||[]]),[o,r,s]),{gradient:l,customGradient:u}=(0,c.useSelect)((o=>{const{getBlockAttributes:r}=o(Gr),s=r(n)||{};return{customGradient:s[t],gradient:s[e]}}),[n,e,t]),{updateBlockAttributes:d}=(0,c.useDispatch)(Gr),p=(0,a.useCallback)((o=>{const r=Td(i,o);d(n,r?{[e]:r,[t]:void 0}:{[e]:void 0,[t]:o})}),[i,n,d]),h=Id(l);let g;return g=l?jd(i,l):u,{gradientClass:h,gradientValue:g,setGradient:p}}(0,d.addFilter)("blocks.registerBlockType","core/border/addAttributes",(function(e){return yd(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e}));const{Tabs:Pd}=Q(Ps.privateApis),Rd=["colors","disableCustomColors","gradients","disableCustomGradients"],Nd={color:"color",gradient:"gradient"};function Ad({colors:e,gradients:t,disableCustomColors:n,disableCustomGradients:o,__experimentalIsRenderedInSidebar:r,className:s,label:i,onColorChange:l,onGradientChange:a,colorValue:c,gradientValue:u,clearable:d,showTitle:p=!0,enableAlpha:h,headingLevel:g}){const m=l&&(e&&e.length>0||!n),f=a&&(t&&t.length>0||!o);if(!m&&!f)return null;const b={[Nd.color]:(0,U.jsx)(Ps.ColorPalette,{value:c,onChange:f?e=>{l(e),a()}:l,colors:e,disableCustomColors:n,__experimentalIsRenderedInSidebar:r,clearable:d,enableAlpha:h,headingLevel:g}),[Nd.gradient]:(0,U.jsx)(Ps.GradientPicker,{value:u,onChange:m?e=>{a(e),l()}:a,gradients:t,disableCustomGradients:o,__experimentalIsRenderedInSidebar:r,clearable:d,headingLevel:g})},v=e=>(0,U.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:b[e]});return(0,U.jsx)(Ps.BaseControl,{__nextHasNoMarginBottom:!0,className:ws("block-editor-color-gradient-control",s),children:(0,U.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,U.jsxs)(Ps.__experimentalVStack,{spacing:1,children:[p&&(0,U.jsx)("legend",{children:(0,U.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,U.jsx)(Ps.BaseControl.VisualLabel,{children:i})})}),m&&f&&(0,U.jsx)("div",{children:(0,U.jsxs)(Pd,{defaultTabId:u?Nd.gradient:!!m&&Nd.color,children:[(0,U.jsxs)(Pd.TabList,{children:[(0,U.jsx)(Pd.Tab,{tabId:Nd.color,children:(0,C.__)("Color")}),(0,U.jsx)(Pd.Tab,{tabId:Nd.gradient,children:(0,C.__)("Gradient")})]}),(0,U.jsx)(Pd.TabPanel,{tabId:Nd.color,className:"block-editor-color-gradient-control__panel",focusable:!1,children:b.color}),(0,U.jsx)(Pd.TabPanel,{tabId:Nd.gradient,className:"block-editor-color-gradient-control__panel",focusable:!1,children:b.gradient})]})}),!f&&v(Nd.color),!m&&v(Nd.gradient)]})})})}function Ld(e){const[t,n,o,r]=$r("color.palette","color.gradients","color.custom","color.customGradient");return(0,U.jsx)(Ad,{colors:t,gradients:n,disableCustomColors:!o,disableCustomGradients:!r,...e})}const Od=function(e){return Rd.every((t=>e.hasOwnProperty(t)))?(0,U.jsx)(Ad,{...e}):(0,U.jsx)(Ld,{...e})};function Dd(e){const t=zd(e),n=Ud(e),o=Vd(e),r=Hd(e),s=Gd(e),i=Fd(e);return t||n||o||r||s||i}function zd(e){const t=xs(e);return e?.color?.text&&(t?.length>0||e?.color?.custom)}function Vd(e){const t=xs(e);return e?.color?.link&&(t?.length>0||e?.color?.custom)}function Fd(e){const t=xs(e);return e?.color?.caption&&(t?.length>0||e?.color?.custom)}function Hd(e){const t=xs(e),n=ys(e);return e?.color?.heading&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function Gd(e){const t=xs(e),n=ys(e);return e?.color?.button&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function Ud(e){const t=xs(e),n=ys(e);return e?.color?.background&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function $d({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const s=as();return(0,U.jsx)(Ps.__experimentalToolsPanel,{label:(0,C.__)("Elements"),resetAll:()=>{const o=e(n);t(o)},panelId:o,hasInnerWrapper:!0,headingLevel:3,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:s,children:(0,U.jsx)("div",{className:"color-block-support-panel__inner-wrapper",children:r})})}const Wd={text:!0,background:!0,link:!0,heading:!0,button:!0,caption:!0},Kd={placement:"left-start",offset:36,shift:!0},{Tabs:Zd}=Q(Ps.privateApis),qd=({indicators:e,label:t})=>(0,U.jsxs)(Ps.__experimentalHStack,{justify:"flex-start",children:[(0,U.jsx)(Ps.__experimentalZStack,{isLayered:!1,offset:-8,children:e.map(((e,t)=>(0,U.jsx)(Ps.Flex,{expanded:!1,children:(0,U.jsx)(Ps.ColorIndicator,{colorValue:e})},t)))}),(0,U.jsx)(Ps.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]});function Yd({isGradient:e,inheritedValue:t,userValue:n,setValue:o,colorGradientControlSettings:r}){return(0,U.jsx)(Od,{...r,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:e?void 0:t,gradientValue:e?t:void 0,onColorChange:e?void 0:o,onGradientChange:e?o:void 0,clearable:t===n,headingLevel:3})}function Xd({label:e,hasValue:t,resetValue:n,isShownByDefault:o,indicators:r,tabs:s,colorGradientControlSettings:i,panelId:l}){var a;const c=s.find((e=>void 0!==e.userValue)),{key:u,...d}=null!==(a=s[0])&&void 0!==a?a:{};return(0,U.jsx)(Ps.__experimentalToolsPanelItem,{className:"block-editor-tools-panel-color-gradient-settings__item",hasValue:t,label:e,onDeselect:n,isShownByDefault:o,panelId:l,children:(0,U.jsx)(Ps.Dropdown,{popoverProps:Kd,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:t,isOpen:n})=>{const o={onClick:t,className:ws("block-editor-panel-color-gradient-settings__dropdown",{"is-open":n}),"aria-expanded":n,"aria-label":(0,C.sprintf)((0,C.__)("Color %s styles"),e)};return(0,U.jsx)(Ps.Button,{...o,children:(0,U.jsx)(qd,{indicators:r,label:e})})},renderContent:()=>(0,U.jsx)(Ps.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,U.jsxs)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:[1===s.length&&(0,U.jsx)(Yd,{...d,colorGradientControlSettings:i},u),s.length>1&&(0,U.jsxs)(Zd,{defaultTabId:c?.key,children:[(0,U.jsx)(Zd.TabList,{children:s.map((e=>(0,U.jsx)(Zd.Tab,{tabId:e.key,children:e.label},e.key)))}),s.map((e=>{const{key:t,...n}=e;return(0,U.jsx)(Zd.TabPanel,{tabId:t,focusable:!1,children:(0,U.jsx)(Yd,{...n,colorGradientControlSettings:i},t)},t)}))]})]})})})})}function Qd({as:e=$d,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:s,defaultControls:i=Wd,children:l}){const c=xs(r),u=ys(r),d=r?.color?.custom,p=r?.color?.customGradient,h=c.length>0||d,g=u.length>0||p,m=e=>us({settings:r},"",e),f=e=>{const t=c.flatMap((({colors:e})=>e)).find((({color:t})=>t===e));return t?"var:preset|color|"+t.slug:e},b=e=>{const t=u.flatMap((({gradients:e})=>e)).find((({gradient:t})=>t===e));return t?"var:preset|gradient|"+t.slug:e},v=Ud(r),k=m(o?.color?.background),_=m(t?.color?.background),x=m(o?.color?.gradient),y=m(t?.color?.gradient),S=Vd(r),w=m(o?.elements?.link?.color?.text),B=m(t?.elements?.link?.color?.text),I=m(o?.elements?.link?.[":hover"]?.color?.text),j=m(t?.elements?.link?.[":hover"]?.color?.text),E=zd(r),T=m(o?.color?.text),M=m(t?.color?.text),P=e=>{let o=pe(t,["color","text"],f(e));T===w&&(o=pe(o,["elements","link","color","text"],f(e))),n(o)},R=[{name:"caption",label:(0,C.__)("Captions"),showPanel:Fd(r)},{name:"button",label:(0,C.__)("Button"),showPanel:Gd(r)},{name:"heading",label:(0,C.__)("Heading"),showPanel:Hd(r)},{name:"h1",label:(0,C.__)("H1"),showPanel:Hd(r)},{name:"h2",label:(0,C.__)("H2"),showPanel:Hd(r)},{name:"h3",label:(0,C.__)("H3"),showPanel:Hd(r)},{name:"h4",label:(0,C.__)("H4"),showPanel:Hd(r)},{name:"h5",label:(0,C.__)("H5"),showPanel:Hd(r)},{name:"h6",label:(0,C.__)("H6"),showPanel:Hd(r)}],N=(0,a.useCallback)((e=>({...e,color:void 0,elements:{...e?.elements,link:{...e?.elements?.link,color:void 0,":hover":{color:void 0}},...R.reduce(((t,n)=>({...t,[n.name]:{...e?.elements?.[n.name],color:void 0}})),{})}})),[]),A=[E&&{key:"text",label:(0,C.__)("Text"),hasValue:()=>!!M,resetValue:()=>P(void 0),isShownByDefault:i.text,indicators:[T],tabs:[{key:"text",label:(0,C.__)("Text"),inheritedValue:T,setValue:P,userValue:M}]},v&&{key:"background",label:(0,C.__)("Background"),hasValue:()=>!!_||!!y,resetValue:()=>{const e=pe(t,["color","background"],void 0);e.color.gradient=void 0,n(e)},isShownByDefault:i.background,indicators:[null!=x?x:k],tabs:[h&&{key:"background",label:(0,C.__)("Color"),inheritedValue:k,setValue:e=>{const o=pe(t,["color","background"],f(e));o.color.gradient=void 0,n(o)},userValue:_},g&&{key:"gradient",label:(0,C.__)("Gradient"),inheritedValue:x,setValue:e=>{const o=pe(t,["color","gradient"],b(e));o.color.background=void 0,n(o)},userValue:y,isGradient:!0}].filter(Boolean)},S&&{key:"link",label:(0,C.__)("Link"),hasValue:()=>!!B||!!j,resetValue:()=>{let e=pe(t,["elements","link",":hover","color","text"],void 0);e=pe(e,["elements","link","color","text"],void 0),n(e)},isShownByDefault:i.link,indicators:[w,I],tabs:[{key:"link",label:(0,C.__)("Default"),inheritedValue:w,setValue:e=>{n(pe(t,["elements","link","color","text"],f(e)))},userValue:B},{key:"hover",label:(0,C.__)("Hover"),inheritedValue:I,setValue:e=>{n(pe(t,["elements","link",":hover","color","text"],f(e)))},userValue:j}]}].filter(Boolean);return R.forEach((({name:e,label:r,showPanel:s})=>{if(!s)return;const l=m(o?.elements?.[e]?.color?.background),a=m(o?.elements?.[e]?.color?.gradient),c=m(o?.elements?.[e]?.color?.text),u=m(t?.elements?.[e]?.color?.background),d=m(t?.elements?.[e]?.color?.gradient),p=m(t?.elements?.[e]?.color?.text),v="caption"!==e;A.push({key:e,label:r,hasValue:()=>!!(p||u||d),resetValue:()=>{const o=pe(t,["elements",e,"color","background"],void 0);o.elements[e].color.gradient=void 0,o.elements[e].color.text=void 0,n(o)},isShownByDefault:i[e],indicators:v?[c,null!=a?a:l]:[c],tabs:[h&&{key:"text",label:(0,C.__)("Text"),inheritedValue:c,setValue:o=>{n(pe(t,["elements",e,"color","text"],f(o)))},userValue:p},h&&v&&{key:"background",label:(0,C.__)("Background"),inheritedValue:l,setValue:o=>{const r=pe(t,["elements",e,"color","background"],f(o));r.elements[e].color.gradient=void 0,n(r)},userValue:u},g&&v&&{key:"gradient",label:(0,C.__)("Gradient"),inheritedValue:a,setValue:o=>{const r=pe(t,["elements",e,"color","gradient"],b(o));r.elements[e].color.background=void 0,n(r)},userValue:d,isGradient:!0}].filter(Boolean)})})),(0,U.jsxs)(e,{resetAllFilter:N,value:t,onChange:n,panelId:s,children:[A.map((e=>{const{key:t,...n}=e;return(0,U.jsx)(Xd,{...n,colorGradientControlSettings:{colors:c,disableCustomColors:!d,gradients:u,disableCustomGradients:!p},panelId:s},t)})),l]})}yu([Su,Bu]);const Jd=function({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:n,fallbackLinkColor:o,fontSize:r,isLargeText:s,textColor:i,linkColor:l,enableAlphaChecker:a=!1}){const c=e||t;if(!c)return null;const u=i||n,d=l||o;if(!u&&!d)return null;const p=[{color:u,description:(0,C.__)("text color")},{color:d,description:(0,C.__)("link color")}],h=_u(c),g=h.alpha()<1,m=h.brightness(),f={level:"AA",size:s||!1!==s&&r>=24?"large":"small"};let b="",v="";for(const e of p){if(!e.color)continue;const t=_u(e.color),n=t.isReadable(h,f),o=t.alpha()<1;if(!n){if(g||o)continue;b=m<t.brightness()?(0,C.sprintf)((0,C.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."),e.description):(0,C.sprintf)((0,C.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."),e.description),v=(0,C.__)("This color combination may be hard for people to read.");break}o&&a&&(b=(0,C.__)("Transparent text may be hard for people to read."),v=(0,C.__)("Transparent text may be hard for people to read."))}return b?((0,Io.speak)(v),(0,U.jsx)("div",{className:"block-editor-contrast-checker",children:(0,U.jsx)(Ps.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,children:b})})):null};function ep(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function tp({clientId:e}){const[t,n]=(0,a.useState)(),[o,r]=(0,a.useState)(),[s,i]=(0,a.useState)(),l=Yi(e);return(0,a.useEffect)((()=>{if(!l.current)return;r(ep(l.current).color);const e=l.current?.querySelector("a");e&&e.innerText&&i(ep(e).color);let t=l.current,o=ep(t).backgroundColor;for(;"rgba(0, 0, 0, 0)"===o&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)t=t.parentNode,o=ep(t).backgroundColor;n(o)})),(0,U.jsx)(Jd,{backgroundColor:t,textColor:o,enableAlphaChecker:!0,linkColor:s})}const np="color",op=e=>{const t=(0,l.getBlockSupport)(e,np);return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},rp=e=>{if("web"!==a.Platform.OS)return!1;const t=(0,l.getBlockSupport)(e,np);return null!==t&&"object"==typeof t&&!!t.link},sp=e=>{const t=(0,l.getBlockSupport)(e,np);return null!==t&&"object"==typeof t&&!!t.gradients},ip=e=>{const t=(0,l.getBlockSupport)(e,np);return t&&!1!==t.background},lp=e=>{const t=(0,l.getBlockSupport)(e,np);return t&&!1!==t.text};function ap(e,t,n){if(!op(t)||Is(t,np))return e;const o=sp(t),{backgroundColor:r,textColor:s,gradient:i,style:l}=n,a=e=>!Is(t,np,e),c=a("text")?Tu("color",s):void 0,u=a("gradients")?Id(i):void 0,d=a("background")?Tu("background-color",r):void 0,p=a("background")||a("gradients"),h=r||l?.color?.background||o&&(i||l?.color?.gradient),g=ws(e.className,c,u,{[d]:!(o&&l?.color?.gradient||!d),"has-text-color":a("text")&&(s||l?.color?.text),"has-background":p&&h,"has-link-color":a("link")&&l?.elements?.link?.color});return e.className=g||void 0,e}function cp(e){const t=e?.color?.text,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,o=e?.color?.background,r=o?.startsWith("var:preset|color|")?o.substring(17):void 0,s=e?.color?.gradient,i=s?.startsWith("var:preset|gradient|")?s.substring(20):void 0,l={...e};return l.color={...l.color,text:n?void 0:t,background:r?void 0:o,gradient:i?void 0:s},{style:Cs(l),textColor:n,backgroundColor:r,gradient:i}}function up(e){return{...e.style,color:{...e.style?.color,text:e.textColor?"var:preset|color|"+e.textColor:e.style?.color?.text,background:e.backgroundColor?"var:preset|color|"+e.backgroundColor:e.style?.color?.background,gradient:e.gradient?"var:preset|gradient|"+e.gradient:e.style?.color?.gradient}}}function dp({children:e,resetAllFilter:t}){const n=(0,a.useCallback)((e=>{const n=up(e),o=t(n);return{...e,...cp(o)}}),[t]);return(0,U.jsx)(oa,{group:"color",resetAllFilter:n,children:e})}function pp({clientId:e,name:t,setAttributes:n,settings:o}){const r=Dd(o);const{style:s,textColor:i,backgroundColor:u,gradient:d}=(0,c.useSelect)((function(t){const{style:n,textColor:o,backgroundColor:r,gradient:s}=t(Gr).getBlockAttributes(e)||{};return{style:n,textColor:o,backgroundColor:r,gradient:s}}),[e]),p=(0,a.useMemo)((()=>up({style:s,textColor:i,backgroundColor:u,gradient:d})),[s,i,u,d]);if(!r)return null;const h=(0,l.getBlockSupport)(t,[np,"__experimentalDefaultControls"]),g="web"===a.Platform.OS&&!p?.color?.gradient&&(o?.color?.text||o?.color?.link)&&!1!==(0,l.getBlockSupport)(t,[np,"enableContrastChecker"]);return(0,U.jsx)(Qd,{as:dp,panelId:e,settings:o,value:p,onChange:e=>{n(cp(e))},defaultControls:h,enableContrastChecker:!1!==(0,l.getBlockSupport)(t,[np,"enableContrastChecker"]),children:g&&(0,U.jsx)(tp,{clientId:e})})}const hp={useBlockProps:function({name:e,backgroundColor:t,textColor:n,gradient:o,style:r}){const[s,i,l]=$r("color.palette.custom","color.palette.theme","color.palette.default"),c=(0,a.useMemo)((()=>[...s||[],...i||[],...l||[]]),[s,i,l]);if(!op(e)||Is(e,np))return{};const u={};n&&!Is(e,np,"text")&&(u.color=ju(c,n)?.color),t&&!Is(e,np,"background")&&(u.backgroundColor=ju(c,t)?.color);const d=ap({style:u},e,{textColor:n,backgroundColor:t,gradient:o,style:r}),p=t||r?.color?.background||o||r?.color?.gradient;return{...d,className:ws(d.className,!p&&Dc(r))}},addSaveProps:ap,attributeKeys:["backgroundColor","textColor","gradient","style"],hasSupport:op},gp={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};function mp({value:e="",onChange:t,fontFamilies:n,...o}){const[r]=$r("typography.fontFamilies");if(n||(n=r),!n||0===n.length)return null;const s=[{value:"",label:(0,C.__)("Default")},...n.map((({fontFamily:e,name:t})=>({value:e,label:t||e})))];return(0,U.jsx)(Ps.SelectControl,{label:(0,C.__)("Font"),options:s,value:e,onChange:t,labelPosition:"top",...o})}(0,d.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return op(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),sp(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),(0,d.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,o){const r=e.name;return Bs({linkColor:rp(r),textColor:lp(r),backgroundColor:ip(r),gradient:sp(r)},gp,e,t,n,o)}));const fp=[{name:(0,C._x)("Regular","font style"),value:"normal"},{name:(0,C._x)("Italic","font style"),value:"italic"}],bp=[{name:(0,C._x)("Thin","font weight"),value:"100"},{name:(0,C._x)("Extra Light","font weight"),value:"200"},{name:(0,C._x)("Light","font weight"),value:"300"},{name:(0,C._x)("Regular","font weight"),value:"400"},{name:(0,C._x)("Medium","font weight"),value:"500"},{name:(0,C._x)("Semi Bold","font weight"),value:"600"},{name:(0,C._x)("Bold","font weight"),value:"700"},{name:(0,C._x)("Extra Bold","font weight"),value:"800"},{name:(0,C._x)("Black","font weight"),value:"900"}],vp=(e,t)=>e?t?(0,C.__)("Appearance"):(0,C.__)("Font style"):(0,C.__)("Font weight");function kp(e){const{onChange:t,hasFontStyles:n=!0,hasFontWeights:o=!0,value:{fontStyle:r,fontWeight:s},...i}=e,l=n||o,c=vp(n,o),u={key:"default",name:(0,C.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},d=(0,a.useMemo)((()=>n&&o?(()=>{const e=[u];return fp.forEach((({name:t,value:n})=>{bp.forEach((({name:o,value:r})=>{const s="normal"===n?o:(0,C.sprintf)((0,C.__)("%1$s %2$s"),o,t);e.push({key:`${n}-${r}`,name:s,style:{fontStyle:n,fontWeight:r}})}))})),e})():n?(()=>{const e=[u];return fp.forEach((({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:n,fontWeight:void 0}})})),e})():(()=>{const e=[u];return bp.forEach((({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:void 0,fontWeight:n}})})),e})()),[e.options]),p=d.find((e=>e.style.fontStyle===r&&e.style.fontWeight===s))||d[0];return l&&(0,U.jsx)(Ps.CustomSelectControl,{...i,className:"components-font-appearance-control",label:c,describedBy:p?n?o?(0,C.sprintf)((0,C.__)("Currently selected font appearance: %s"),p.name):(0,C.sprintf)((0,C.__)("Currently selected font style: %s"),p.name):(0,C.sprintf)((0,C.__)("Currently selected font weight: %s"),p.name):(0,C.__)("No selected font appearance"),options:d,value:p,onChange:({selectedItem:e})=>t(e.style)})}const _p=1.5;const xp=({value:e,onChange:t,__nextHasNoMarginBottom:n=!1,__unstableInputWidth:o="60px",...r})=>{const s=function(e){return void 0!==e&&""!==e}(e),i=(e,t)=>{if(s)return e;switch(`${e}`){case"0.1":return 1.6;case"0":return t?e:1.4;case"":return _p;default:return e}},l=s?e:"";n||y()("Bottom margin styles for wp.blockEditor.LineHeightControl",{since:"6.0",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version"});const a=n?void 0:{marginBottom:24};return(0,U.jsx)("div",{className:"block-editor-line-height-control",style:a,children:(0,U.jsx)(Ps.__experimentalNumberControl,{...r,__unstableInputWidth:o,__unstableStateReducer:(e,t)=>{const n=["insertText","insertFromPaste"].includes(t.payload.event.nativeEvent?.inputType),o=i(e.value,n);return{...e,value:o}},onChange:(e,{event:n})=>{""!==e?"click"!==n.type?t(`${e}`):t(i(`${e}`,!1)):t()},label:(0,C.__)("Line height"),placeholder:_p,step:.01,spinFactor:10,value:l,min:0,spinControls:"custom"})})};function yp({value:e,onChange:t,__unstableInputWidth:n="60px",...o}){const[r]=$r("spacing.units"),s=(0,Ps.__experimentalUseCustomUnits)({availableUnits:r||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return(0,U.jsx)(Ps.__experimentalUnitControl,{...o,label:(0,C.__)("Letter spacing"),value:e,__unstableInputWidth:n,units:s,onChange:t})}const Sp=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})}),wp=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})}),Cp=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})}),Bp=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})});function Ip({label:e,value:t,options:n,onChange:o,className:r}){return(0,U.jsxs)("fieldset",{className:ws("block-editor-segmented-text-control",r),children:[(0,U.jsx)(Ps.BaseControl.VisualLabel,{as:"legend",children:e}),(0,U.jsx)("div",{className:"block-editor-segmented-text-control__buttons",children:n.map((e=>(0,U.jsx)(Ps.Button,{size:"compact",icon:e.icon,label:e.label,isPressed:e.value===t,onClick:()=>o(e.value)},e.value)))})]})}const jp=[{label:(0,C.__)("Align text left"),value:"left",icon:Sp},{label:(0,C.__)("Align text center"),value:"center",icon:wp},{label:(0,C.__)("Align text right"),value:"right",icon:Cp},{label:(0,C.__)("Justify text"),value:"justify",icon:Bp}],Ep=["left","center","right"];function Tp({className:e,value:t,onChange:n,options:o=Ep}){const r=(0,a.useMemo)((()=>jp.filter((e=>o.includes(e.value)))),[o]);return r.length?(0,U.jsx)(Ip,{label:(0,C.__)("Text alignment"),options:r,className:ws("block-editor-text-alignment-control",e),value:t,onChange:e=>{n(e===t?void 0:e)}}):null}const Mp=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M7 11.5h10V13H7z"})}),Pp=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})}),Rp=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})}),Np=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})}),Ap=[{label:(0,C.__)("None"),value:"none",icon:Mp},{label:(0,C.__)("Uppercase"),value:"uppercase",icon:Pp},{label:(0,C.__)("Lowercase"),value:"lowercase",icon:Rp},{label:(0,C.__)("Capitalize"),value:"capitalize",icon:Np}];function Lp({className:e,value:t,onChange:n}){return(0,U.jsx)(Ip,{label:(0,C.__)("Letter case"),options:Ap,className:ws("block-editor-text-transform-control",e),value:t,onChange:e=>{n(e===t?void 0:e)}})}const Op=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})}),Dp=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})}),zp=[{label:(0,C.__)("None"),value:"none",icon:Mp},{label:(0,C.__)("Underline"),value:"underline",icon:Op},{label:(0,C.__)("Strikethrough"),value:"line-through",icon:Dp}];function Vp({value:e,onChange:t,className:n}){return(0,U.jsx)(Ip,{label:(0,C.__)("Decoration"),options:zp,className:ws("block-editor-text-decoration-control",n),value:e,onChange:n=>{t(n===e?void 0:n)}})}const Fp=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z"})}),Hp=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M7 5.6v1.7l2.6.9v3.9L7 13v1.7L17.5 11V9.3L7 5.6zm4.2 6V8.8l4 1.4-4 1.4zm-5.7 5.6V5.5H4v14.3l3.6-2.2-.8-1.3-1.3.9z"})}),Gp=[{label:(0,C.__)("Horizontal"),value:"horizontal-tb",icon:Fp},{label:(0,C.__)("Vertical"),value:(0,C.isRTL)()?"vertical-lr":"vertical-rl",icon:Hp}];function Up({className:e,value:t,onChange:n}){return(0,U.jsx)(Ip,{label:(0,C.__)("Orientation"),options:Gp,className:ws("block-editor-writing-mode-control",e),value:t,onChange:e=>{n(e===t?void 0:e)}})}const $p=1,Wp=6;function Kp(e){const t=qp(e),n=Yp(e),o=Xp(e),r=Qp(e),s=eh(e),i=Jp(e),l=th(e),a=nh(e),c=oh(e),u=Zp(e);return t||n||o||r||s||i||u||l||a||c}function Zp(e){return!1!==e?.typography?.defaultFontSizes&&e?.typography?.fontSizes?.default?.length||e?.typography?.fontSizes?.theme?.length||e?.typography?.fontSizes?.custom?.length||e?.typography?.customFontSize}function qp(e){return["default","theme","custom"].some((t=>e?.typography?.fontFamilies?.[t]?.length))}function Yp(e){return e?.typography?.lineHeight}function Xp(e){return e?.typography?.fontStyle||e?.typography?.fontWeight}function Qp(e){return e?.typography?.letterSpacing}function Jp(e){return e?.typography?.textTransform}function eh(e){return e?.typography?.textAlign}function th(e){return e?.typography?.textDecoration}function nh(e){return e?.typography?.writingMode}function oh(e){return e?.typography?.textColumns}function rh({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const s=as();return(0,U.jsx)(Ps.__experimentalToolsPanel,{label:(0,C.__)("Typography"),resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:s,children:r})}const sh={fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!0,textAlign:!0,textTransform:!0,textDecoration:!0,writingMode:!0,textColumns:!0};function ih({as:e=rh,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:s,defaultControls:i=sh}){const l=e=>us({settings:r},"",e),c=qp(r),u=r?.typography?.fontFamilies,d=(0,a.useMemo)((()=>["default","theme","custom"].flatMap((e=>{var t;return null!==(t=u?.[e])&&void 0!==t?t:[]}))),[u]),p=l(o?.typography?.fontFamily),h=e=>{const o=d?.find((({fontFamily:t})=>t===e))?.slug;n(pe(t,["typography","fontFamily"],o?`var:preset|font-family|${o}`:e||void 0))},g=Zp(r),m=!r?.typography?.customFontSize,f=function(e){var t,n,o;const r=e?.typography?.fontSizes,s=!!e?.typography?.defaultFontSizes;return[...null!==(t=r?.custom)&&void 0!==t?t:[],...null!==(n=r?.theme)&&void 0!==n?n:[],...s&&null!==(o=r?.default)&&void 0!==o?o:[]]}(r),b=l(o?.typography?.fontSize),v=(e,o)=>{n(pe(t,["typography","fontSize"],(o?.slug?`var:preset|font-size|${o?.slug}`:e)||void 0))},k=Xp(r),_=function(e){return e?.typography?.fontStyle?e?.typography?.fontWeight?(0,C.__)("Appearance"):(0,C.__)("Font style"):(0,C.__)("Font weight")}(r),x=r?.typography?.fontStyle,y=r?.typography?.fontWeight,S=l(o?.typography?.fontStyle),w=l(o?.typography?.fontWeight),B=({fontStyle:e,fontWeight:o})=>{n({...t,typography:{...t?.typography,fontStyle:e||void 0,fontWeight:o||void 0}})},I=Yp(r),j=l(o?.typography?.lineHeight),E=e=>{n(pe(t,["typography","lineHeight"],e||void 0))},T=Qp(r),M=l(o?.typography?.letterSpacing),P=e=>{n(pe(t,["typography","letterSpacing"],e||void 0))},R=oh(r),N=l(o?.typography?.textColumns),A=e=>{n(pe(t,["typography","textColumns"],e||void 0))},L=Jp(r),O=l(o?.typography?.textTransform),D=e=>{n(pe(t,["typography","textTransform"],e||void 0))},z=th(r),V=l(o?.typography?.textDecoration),F=e=>{n(pe(t,["typography","textDecoration"],e||void 0))},H=nh(r),G=l(o?.typography?.writingMode),$=e=>{n(pe(t,["typography","writingMode"],e||void 0))},W=eh(r),K=l(o?.typography?.textAlign),Z=e=>{n(pe(t,["typography","textAlign"],e||void 0))},q=(0,a.useCallback)((e=>({...e,typography:{}})),[]);return(0,U.jsxs)(e,{resetAllFilter:q,value:t,onChange:n,panelId:s,children:[c&&(0,U.jsx)(Ps.__experimentalToolsPanelItem,{label:(0,C.__)("Font"),hasValue:()=>!!t?.typography?.fontFamily,onDeselect:()=>h(void 0),isShownByDefault:i.fontFamily,panelId:s,children:(0,U.jsx)(mp,{fontFamilies:d,value:p,onChange:h,size:"__unstable-large",__nextHasNoMarginBottom:!0})}),g&&(0,U.jsx)(Ps.__experimentalToolsPanelItem,{label:(0,C.__)("Size"),hasValue:()=>!!t?.typography?.fontSize,onDeselect:()=>v(void 0),isShownByDefault:i.fontSize,panelId:s,children:(0,U.jsx)(Ps.FontSizePicker,{value:b,onChange:v,fontSizes:f,disableCustomFontSizes:m,withReset:!1,withSlider:!0,size:"__unstable-large"})}),k&&(0,U.jsx)(Ps.__experimentalToolsPanelItem,{className:"single-column",label:_,hasValue:()=>!!t?.typography?.fontStyle||!!t?.typography?.fontWeight,onDeselect:()=>{B({})},isShownByDefault:i.fontAppearance,panelId:s,children:(0,U.jsx)(kp,{value:{fontStyle:S,fontWeight:w},onChange:B,hasFontStyles:x,hasFontWeights:y,size:"__unstable-large",__nextHasNoMarginBottom:!0})}),I&&(0,U.jsx)(Ps.__experimentalToolsPanelItem,{className:"single-column",label:(0,C.__)("Line height"),hasValue:()=>void 0!==t?.typography?.lineHeight,onDeselect:()=>E(void 0),isShownByDefault:i.lineHeight,panelId:s,children:(0,U.jsx)(xp,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",value:j,onChange:E,size:"__unstable-large"})}),T&&(0,U.jsx)(Ps.__experimentalToolsPanelItem,{className:"single-column",label:(0,C.__)("Letter spacing"),hasValue:()=>!!t?.typography?.letterSpacing,onDeselect:()=>P(void 0),isShownByDefault:i.letterSpacing,panelId:s,children:(0,U.jsx)(yp,{value:M,onChange:P,size:"__unstable-large",__unstableInputWidth:"auto"})}),R&&(0,U.jsx)(Ps.__experimentalToolsPanelItem,{className:"single-column",label:(0,C.__)("Columns"),hasValue:()=>!!t?.typography?.textColumns,onDeselect:()=>A(void 0),isShownByDefault:i.textColumns,panelId:s,children:(0,U.jsx)(Ps.__experimentalNumberControl,{label:(0,C.__)("Columns"),max:Wp,min:$p,onChange:A,size:"__unstable-large",spinControls:"custom",value:N,initialPosition:1})}),z&&(0,U.jsx)(Ps.__experimentalToolsPanelItem,{className:"single-column",label:(0,C.__)("Decoration"),hasValue:()=>!!t?.typography?.textDecoration,onDeselect:()=>F(void 0),isShownByDefault:i.textDecoration,panelId:s,children:(0,U.jsx)(Vp,{value:V,onChange:F,size:"__unstable-large",__unstableInputWidth:"auto"})}),H&&(0,U.jsx)(Ps.__experimentalToolsPanelItem,{className:"single-column",label:(0,C.__)("Orientation"),hasValue:()=>!!t?.typography?.writingMode,onDeselect:()=>$(void 0),isShownByDefault:i.writingMode,panelId:s,children:(0,U.jsx)(Up,{value:G,onChange:$,size:"__unstable-large",__nextHasNoMarginBottom:!0})}),L&&(0,U.jsx)(Ps.__experimentalToolsPanelItem,{label:(0,C.__)("Letter case"),hasValue:()=>!!t?.typography?.textTransform,onDeselect:()=>D(void 0),isShownByDefault:i.textTransform,panelId:s,children:(0,U.jsx)(Lp,{value:O,onChange:D,showNone:!0,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})}),W&&(0,U.jsx)(Ps.__experimentalToolsPanelItem,{label:(0,C.__)("Text alignment"),hasValue:()=>!!t?.typography?.textAlign,onDeselect:()=>Z(void 0),isShownByDefault:i.textAlign,panelId:s,children:(0,U.jsx)(Tp,{value:K,onChange:Z,size:"__unstable-large",__nextHasNoMarginBottom:!0})})]})}const lh="typography.lineHeight";const ah=window.wp.tokenList;var ch=n.n(ah);const uh="typography.__experimentalFontFamily",{kebabCase:dh}=Q(Ps.privateApis);function ph(e,t,n){if(!(0,l.hasBlockSupport)(t,uh))return e;if(Is(t,Nh,"fontFamily"))return e;if(!n?.fontFamily)return e;const o=new(ch())(e.className);o.add(`has-${dh(n?.fontFamily)}-font-family`);const r=o.value;return e.className=r||void 0,e}const hh={useBlockProps:function({name:e,fontFamily:t}){return ph({},e,{fontFamily:t})},addSaveProps:ph,attributeKeys:["fontFamily"],hasSupport:e=>(0,l.hasBlockSupport)(e,uh)};(0,d.addFilter)("blocks.registerBlockType","core/fontFamily/addAttribute",(function(e){return(0,l.hasBlockSupport)(e,uh)?(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}}),e):e}));const{kebabCase:gh}=Q(Ps.privateApis),mh=(e,t,n)=>{if(t){const n=e?.find((({slug:e})=>e===t));if(n)return n}return{size:n}};function fh(e,t){const n=e?.find((({size:e})=>e===t));return n||{size:t}}function bh(e){if(e)return`has-${gh(e)}-font-size`}const vh="typography.fontSize";function kh(e,t,n){if(!(0,l.hasBlockSupport)(t,vh))return e;if(Is(t,Nh,"fontSize"))return e;const o=new(ch())(e.className);o.add(bh(n.fontSize));const r=o.value;return e.className=r||void 0,e}const _h={useBlockProps:function({name:e,fontSize:t,style:n}){const[o,r,s]=$r("typography.fontSizes","typography.fluid","layout");if(!(0,l.hasBlockSupport)(e,vh)||Is(e,Nh,"fontSize")||!t&&!n?.typography?.fontSize)return;let i;return n?.typography?.fontSize&&(i={style:{fontSize:ns({size:n.typography.fontSize},{typography:{fluid:r},layout:s})}}),t&&(i={style:{fontSize:mh(o,t,n?.typography?.fontSize).size}}),i?kh(i,e,{fontSize:t}):void 0},addSaveProps:kh,attributeKeys:["fontSize","style"],hasSupport:e=>(0,l.hasBlockSupport)(e,vh)},xh={fontSize:[["fontSize"],["style","typography","fontSize"]]};(0,d.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return(0,l.hasBlockSupport)(e,vh)?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),(0,d.addFilter)("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",(function(e,t,n,o){const r=e.name;return Bs({fontSize:(0,l.hasBlockSupport)(r,vh)},xh,e,t,n,o)}));const yh=[{icon:Sp,title:(0,C.__)("Align text left"),align:"left"},{icon:wp,title:(0,C.__)("Align text center"),align:"center"},{icon:Cp,title:(0,C.__)("Align text right"),align:"right"}],Sh={placement:"bottom-start"};const wh=function({value:e,onChange:t,alignmentControls:n=yh,label:o=(0,C.__)("Align text"),describedBy:r=(0,C.__)("Change text alignment"),isCollapsed:s=!0,isToolbar:i}){function l(n){return()=>t(e===n?void 0:n)}const a=n.find((t=>t.align===e)),c=i?Ps.ToolbarGroup:Ps.ToolbarDropdownMenu,u=i?{isCollapsed:s}:{toggleProps:{describedBy:r},popoverProps:Sh};return(0,U.jsx)(c,{icon:a?a.icon:(0,C.isRTL)()?Cp:Sp,label:o,controls:n.map((t=>{const{align:n}=t,o=e===n;return{...t,isActive:o,role:s?"menuitemradio":void 0,onClick:l(n)}})),...u})},Ch=e=>(0,U.jsx)(wh,{...e,isToolbar:!1}),Bh=e=>(0,U.jsx)(wh,{...e,isToolbar:!0}),Ih="typography.textAlign",jh=[{icon:Sp,title:(0,C.__)("Align text left"),align:"left"},{icon:wp,title:(0,C.__)("Align text center"),align:"center"},{icon:Cp,title:(0,C.__)("Align text right"),align:"right"}],Eh=["left","center","right"],Th=[];function Mh(e){return Array.isArray(e)?Eh.filter((t=>e.includes(t))):!0===e?Eh:Th}const Ph={edit:function({style:e,name:t,setAttributes:n}){const o=Ts(t),r=o?.typography?.textAlign,s=Pl();if(!r||"default"!==s)return null;const i=Mh((0,l.getBlockSupport)(t,Ih));if(!i.length)return null;const a=jh.filter((e=>i.includes(e.align)));return(0,U.jsx)(zs,{group:"block",children:(0,U.jsx)(Ch,{value:e?.typography?.textAlign,onChange:t=>{const o={...e,typography:{...e?.typography,textAlign:t}};n({style:Cs(o)})},alignmentControls:a})})},useBlockProps:function({name:e,style:t}){if(!t?.typography?.textAlign)return null;if(!Mh((0,l.getBlockSupport)(e,Ih)).length)return null;if(Is(e,Nh,"textAlign"))return null;const n=t.typography.textAlign;return{className:ws({[`has-text-align-${n}`]:n})}},addSaveProps:function(e,t,n){if(!n?.style?.typography?.textAlign)return e;const{textAlign:o}=n.style.typography,r=(0,l.getBlockSupport)(t,Ih);Mh(r).includes(o)&&!Is(t,Nh,"textAlign")&&(e.className=ws(`has-text-align-${o}`,e.className));return e},attributeKeys:["style"],hasSupport:e=>(0,l.hasBlockSupport)(e,Ih,!1)};function Rh(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))))}const Nh="typography",Ah=[lh,vh,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",uh,Ih,"typography.textColumns","typography.__experimentalTextDecoration","typography.__experimentalWritingMode","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing"];function Lh(e){const t={...Rh(e,["fontFamily"])},n=e?.typography?.fontSize,o=e?.typography?.fontFamily,r=n?.startsWith("var:preset|font-size|")?n.substring(21):void 0,s=o?.startsWith("var:preset|font-family|")?o.substring(23):void 0;return t.typography={...Rh(t.typography,["fontFamily"]),fontSize:r?void 0:n},{style:Cs(t),fontFamily:s,fontSize:r}}function Oh(e){return{...e.style,typography:{...e.style?.typography,fontFamily:e.fontFamily?"var:preset|font-family|"+e.fontFamily:void 0,fontSize:e.fontSize?"var:preset|font-size|"+e.fontSize:e.style?.typography?.fontSize}}}function Dh({children:e,resetAllFilter:t}){const n=(0,a.useCallback)((e=>{const n=Oh(e),o=t(n);return{...e,...Lh(o)}}),[t]);return(0,U.jsx)(oa,{group:"typography",resetAllFilter:n,children:e})}function zh({clientId:e,name:t,setAttributes:n,settings:o}){const{style:r,fontFamily:s,fontSize:i}=(0,c.useSelect)((function(t){const{style:n,fontFamily:o,fontSize:r}=t(Gr).getBlockAttributes(e)||{};return{style:n,fontFamily:o,fontSize:r}}),[e]),u=Kp(o),d=(0,a.useMemo)((()=>Oh({style:r,fontFamily:s,fontSize:i})),[r,i,s]);if(!u)return null;const p=(0,l.getBlockSupport)(t,[Nh,"__experimentalDefaultControls"]);return(0,U.jsx)(ih,{as:Dh,panelId:e,settings:o,value:d,onChange:e=>{n(Lh(e))},defaultControls:p})}const Vh=(0,U.jsxs)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,U.jsx)(G.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,U.jsx)(G.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]}),Fh={px:{max:300,steps:1},"%":{max:100,steps:1},vw:{max:100,steps:1},vh:{max:100,steps:1},em:{max:10,steps:.1},rm:{max:10,steps:.1},svw:{max:100,steps:1},lvw:{max:100,steps:1},dvw:{max:100,steps:1},svh:{max:100,steps:1},lvh:{max:100,steps:1},dvh:{max:100,steps:1},vi:{max:100,steps:1},svi:{max:100,steps:1},lvi:{max:100,steps:1},dvi:{max:100,steps:1},vb:{max:100,steps:1},svb:{max:100,steps:1},lvb:{max:100,steps:1},dvb:{max:100,steps:1},vmin:{max:100,steps:1},svmin:{max:100,steps:1},lvmin:{max:100,steps:1},dvmin:{max:100,steps:1},vmax:{max:100,steps:1},svmax:{max:100,steps:1},lvmax:{max:100,steps:1},dvmax:{max:100,steps:1}};function Hh({icon:e,isMixed:t=!1,minimumCustomValue:n,onChange:o,onMouseOut:r,onMouseOver:s,showSideInLabel:i=!0,side:l,spacingSizes:d,type:p,value:h}){var g,m;h=pi(h,d);let f=d;const b=d.length<=ri,v=(0,c.useSelect)((e=>{const t=e(Gr).getSettings();return t?.disableCustomSpacingSizes})),[k,_]=(0,a.useState)(!v&&void 0!==h&&!ui(h)),[x,y]=(0,a.useState)(n),S=(0,u.usePrevious)(h);h&&S!==h&&!ui(h)&&!0!==k&&_(!0);const[w]=$r("spacing.units"),B=(0,Ps.__experimentalUseCustomUnits)({availableUnits:w||["px","em","rem"]});let I=null;!b&&!k&&void 0!==h&&(!ui(h)||ui(h)&&t)?(f=[...d,{name:t?(0,C.__)("Mixed"):(0,C.sprintf)((0,C.__)("Custom (%s)"),h),slug:"custom",size:h}],I=f.length-1):t||(I=k?di(h,d):function(e,t){if(void 0===e)return 0;const n=0===parseFloat(e,10)?"0":gi(e),o=t.findIndex((e=>String(e.slug)===n));return-1!==o?o:NaN}(h,d));const j=(0,a.useMemo)((()=>(0,Ps.__experimentalParseQuantityAndUnitFromRawValue)(I)),[I])[1]||B[0]?.value,E=parseFloat(I,10),T=(e,t)=>{const n=parseInt(e,10);if("selectList"===t){if(0===n)return;if(1===n)return"0"}else if(0===n)return"0";return`var:preset|spacing|${d[e]?.slug}`},M=t?(0,C.__)("Mixed"):null,P=f.map(((e,t)=>({key:t,name:e.name}))),R=d.map(((e,t)=>({value:t,label:void 0}))),N=si.includes(l)&&i?ai[l]:"",A=i?p?.toLowerCase():p,L=(0,C.sprintf)((0,C.__)("%1$s %2$s"),N,A).trim();return(0,U.jsxs)(Ps.__experimentalHStack,{className:"spacing-sizes-control__wrapper",children:[e&&(0,U.jsx)(Ps.Icon,{className:"spacing-sizes-control__icon",icon:e,size:24}),k&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ps.__experimentalUnitControl,{onMouseOver:s,onMouseOut:r,onFocus:s,onBlur:r,onChange:e=>o((e=>isNaN(parseFloat(e))?void 0:e)(e)),value:I,units:B,min:x,placeholder:M,disableUnits:t,label:L,hideLabelFromVision:!0,className:"spacing-sizes-control__custom-value-input",size:"__unstable-large",onDragStart:()=>{"-"===h?.charAt(0)&&y(0)},onDrag:()=>{"-"===h?.charAt(0)&&y(0)},onDragEnd:()=>{y(n)}}),(0,U.jsx)(Ps.RangeControl,{onMouseOver:s,onMouseOut:r,onFocus:s,onBlur:r,value:E,min:0,max:null!==(g=Fh[j]?.max)&&void 0!==g?g:10,step:null!==(m=Fh[j]?.steps)&&void 0!==m?m:.1,withInputField:!1,onChange:e=>{o([e,j].join(""))},className:"spacing-sizes-control__custom-value-range",__nextHasNoMarginBottom:!0})]}),b&&!k&&(0,U.jsx)(Ps.RangeControl,{onMouseOver:s,onMouseOut:r,className:"spacing-sizes-control__range-control",value:I,onChange:e=>o(T(e)),onMouseDown:e=>{e?.nativeEvent?.offsetX<35&&void 0===h&&o("0")},withInputField:!1,"aria-valuenow":I,"aria-valuetext":d[I]?.name,renderTooltipContent:e=>void 0===h?void 0:d[e]?.name,min:0,max:d.length-1,marks:R,label:L,hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,onFocus:s,onBlur:r}),!b&&!k&&(0,U.jsx)(Ps.CustomSelectControl,{className:"spacing-sizes-control__custom-select-control",value:P.find((e=>e.key===I))||"",onChange:e=>{o(T(e.selectedItem.key,"selectList"))},options:P,label:L,hideLabelFromVision:!0,size:"__unstable-large",onMouseOver:s,onMouseOut:r,onFocus:s,onBlur:r}),!v&&(0,U.jsx)(Ps.Button,{label:k?(0,C.__)("Use size preset"):(0,C.__)("Set custom size"),icon:Vh,onClick:()=>{_(!k)},isPressed:k,size:"small",className:"spacing-sizes-control__custom-toggle",iconSize:24})]})}const Gh=["vertical","horizontal"];function Uh({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,sides:r,spacingSizes:s,type:i,values:l}){const a=e=>n=>{if(!t)return;const o={...Object.keys(l).reduce(((e,t)=>(e[t]=pi(l[t],s),e)),{})};"vertical"===e&&(o.top=n,o.bottom=n),"horizontal"===e&&(o.left=n,o.right=n),t(o)},c=r?.length?Gh.filter((e=>mi(r,e))):Gh;return(0,U.jsx)(U.Fragment,{children:c.map((t=>{const r="vertical"===t?l.top:l.left;return(0,U.jsx)(Hh,{icon:li[t],label:ai[t],minimumCustomValue:e,onChange:a(t),onMouseOut:n,onMouseOver:o,side:t,spacingSizes:s,type:i,value:r,withInputField:!1},`spacing-sizes-control-${t}`)}))})}function $h({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,sides:r,spacingSizes:s,type:i,values:l}){const a=r?.length?si.filter((e=>r.includes(e))):si,c=e=>n=>{const o={...Object.keys(l).reduce(((e,t)=>(e[t]=pi(l[t],s),e)),{})};o[e]=n,t(o)};return(0,U.jsx)(U.Fragment,{children:a.map((t=>(0,U.jsx)(Hh,{icon:li[t],label:ai[t],minimumCustomValue:e,onChange:c(t),onMouseOut:n,onMouseOver:o,side:t,spacingSizes:s,type:i,value:l[t],withInputField:!1},`spacing-sizes-control-${t}`)))})}function Wh({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,showSideInLabel:r,side:s,spacingSizes:i,type:l,values:a}){return(0,U.jsx)(Hh,{label:ai[s],minimumCustomValue:e,onChange:(c=s,e=>{const n={...Object.keys(a).reduce(((e,t)=>(e[t]=pi(a[t],i),e)),{})};n[c]=e,t(n)}),onMouseOut:n,onMouseOver:o,showSideInLabel:r,side:s,spacingSizes:i,type:l,value:a[s],withInputField:!1});var c}const Kh=(0,U.jsx)(Ps.Icon,{icon:Wu,size:24});function Zh({label:e,onChange:t,sides:n,value:o}){if(!n||!n.length)return;const r=function(e){if(!e||!e.length)return{};const t={},n=mi(e,"horizontal"),o=mi(e,"vertical");n&&o?t.axial={label:ai.axial,icon:li.axial}:n?t.axial={label:ai.horizontal,icon:li.horizontal}:o&&(t.axial={label:ai.vertical,icon:li.vertical});let r=0;return si.forEach((n=>{e.includes(n)&&(r+=1,t[n]={label:ai[n],icon:li[n]})})),r>1&&(t.custom={label:ai.custom,icon:li.custom}),t}(n),s=r[o].icon,{custom:i,...l}=r;return(0,U.jsx)(Ps.DropdownMenu,{icon:s,label:e,className:"spacing-sizes-control__dropdown",toggleProps:{size:"small"},children:({onClose:e})=>(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ps.MenuGroup,{children:Object.entries(l).map((([n,{label:r,icon:s}])=>{const i=o===n;return(0,U.jsx)(Ps.MenuItem,{icon:s,iconPosition:"left",isSelected:i,role:"menuitemradio",onClick:()=>{t(n),e()},suffix:i?Kh:void 0,children:r},n)}))}),!!i&&(0,U.jsx)(Ps.MenuGroup,{children:(0,U.jsx)(Ps.MenuItem,{icon:i.icon,iconPosition:"left",isSelected:o===ci.custom,role:"menuitemradio",onClick:()=>{t(ci.custom),e()},suffix:o===ci.custom?Kh:void 0,children:i.label})})]})})}const qh=[],Yh=new Intl.Collator("und",{numeric:!0}).compare;function Xh(){const[e,t,n,o]=$r("spacing.spacingSizes.custom","spacing.spacingSizes.theme","spacing.spacingSizes.default","spacing.defaultSpacingSizes"),r=null!=e?e:qh,s=null!=t?t:qh,i=n&&!1!==o?n:qh;return(0,a.useMemo)((()=>{const e=[{name:(0,C.__)("None"),slug:"0",size:0},...r,...s,...i];return e.every((({slug:e})=>/^[0-9]/.test(e)))&&e.sort(((e,t)=>Yh(e.slug,t.slug))),e.length>ri?[{name:(0,C.__)("Default"),slug:"default",size:void 0},...e]:e}),[r,s,i])}function Qh({inputProps:e,label:t,minimumCustomValue:n=0,onChange:o,onMouseOut:r,onMouseOver:s,showSideInLabel:i=!0,sides:l=si,useSelect:c,values:u}){const d=Xh(),p=u||ii,h=1===l?.length,g=l?.includes("horizontal")&&l?.includes("vertical")&&2===l?.length,[m,f]=(0,a.useState)(function(e={},t){const{top:n,right:o,bottom:r,left:s}=e,i=[n,o,r,s].filter(Boolean),l=!(n!==r||s!==o||!n&&!s),a=!i.length&&function(e=[]){const t={top:0,right:0,bottom:0,left:0};return e.forEach((e=>t[e]+=1)),(t.top+t.bottom)%2==0&&(t.left+t.right)%2==0}(t);if(mi(t)&&(l||a))return ci.axial;if(1===i.length){let t;return Object.entries(e).some((([e,n])=>(t=e,void 0!==n))),t}return 1!==t?.length||i.length?ci.custom:t[0]}(p,l)),b={...e,minimumCustomValue:n,onChange:e=>{const t={...u,...e};o(t)},onMouseOut:r,onMouseOver:s,sides:l,spacingSizes:d,type:t,useSelect:c,values:p},v=si.includes(m)&&i?ai[m]:"",k=(0,C.sprintf)((0,C.__)("%1$s %2$s"),t,v).trim(),_=(0,C.sprintf)((0,C._x)("%s options","Button label to reveal side configuration options"),t);return(0,U.jsxs)("fieldset",{className:"spacing-sizes-control",children:[(0,U.jsxs)(Ps.__experimentalHStack,{className:"spacing-sizes-control__header",children:[(0,U.jsx)(Ps.BaseControl.VisualLabel,{as:"legend",className:"spacing-sizes-control__label",children:k}),!h&&!g&&(0,U.jsx)(Zh,{label:_,onChange:f,sides:l,value:m})]}),(0,U.jsx)(Ps.__experimentalVStack,{spacing:.5,children:m===ci.axial?(0,U.jsx)(Uh,{...b}):m===ci.custom?(0,U.jsx)($h,{...b}):(0,U.jsx)(Wh,{side:m,...b,showSideInLabel:i})})]})}const Jh={px:{max:1e3,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:50,step:.1},rem:{max:50,step:.1},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}};function eg({label:e=(0,C.__)("Height"),onChange:t,value:n}){var o,r;const s=parseFloat(n),[i]=$r("spacing.units"),l=(0,Ps.__experimentalUseCustomUnits)({availableUnits:i||["%","px","em","rem","vh","vw"]}),c=(0,a.useMemo)((()=>(0,Ps.__experimentalParseQuantityAndUnitFromRawValue)(n)),[n])[1]||l[0]?.value||"px";return(0,U.jsxs)("fieldset",{className:"block-editor-height-control",children:[(0,U.jsx)(Ps.BaseControl.VisualLabel,{as:"legend",children:e}),(0,U.jsxs)(Ps.Flex,{children:[(0,U.jsx)(Ps.FlexItem,{isBlock:!0,children:(0,U.jsx)(Ps.__experimentalUnitControl,{value:n,units:l,onChange:t,onUnitChange:e=>{const[o,r]=(0,Ps.__experimentalParseQuantityAndUnitFromRawValue)(n);["em","rem"].includes(e)&&"px"===r?t((o/16).toFixed(2)+e):["em","rem"].includes(r)&&"px"===e?t(Math.round(16*o)+e):["%","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax"].includes(e)&&o>100&&t(100+e)},min:0,size:"__unstable-large",label:e,hideLabelFromVision:!0})}),(0,U.jsx)(Ps.FlexItem,{isBlock:!0,children:(0,U.jsx)(Ps.__experimentalSpacer,{marginX:2,marginBottom:0,children:(0,U.jsx)(Ps.RangeControl,{value:s,min:0,max:null!==(o=Jh[c]?.max)&&void 0!==o?o:100,step:null!==(r=Jh[c]?.step)&&void 0!==r?r:.1,withInputField:!1,onChange:e=>{t([e,c].join(""))},__nextHasNoMarginBottom:!0,label:e,hideLabelFromVision:!0})})})]})]})}function tg(e,t){const{orientation:n="horizontal"}=t;return"fill"===e?(0,C.__)("Stretch to fill available space."):"fixed"===e&&"horizontal"===n?(0,C.__)("Specify a fixed width."):"fixed"===e?(0,C.__)("Specify a fixed height."):(0,C.__)("Fit contents.")}function ng({value:e={},onChange:t,parentLayout:n,isShownByDefault:o,panelId:r}){const{selfStretch:s,flexSize:i,columnStart:l,rowStart:c,columnSpan:u,rowSpan:d}=e,{type:p,default:{type:h="default"}={},orientation:g="horizontal"}=null!=n?n:{},m=p||h,f="horizontal"===g?(0,C.__)("Width"):(0,C.__)("Height");return(0,a.useEffect)((()=>{"fixed"!==s||i||t({...e,selfStretch:"fit"})}),[]),(0,U.jsxs)(U.Fragment,{children:["flex"===m&&(0,U.jsxs)(Ps.__experimentalVStack,{as:Ps.__experimentalToolsPanelItem,spacing:2,hasValue:()=>!!s,label:f,onDeselect:()=>{t({selfStretch:void 0,flexSize:void 0})},isShownByDefault:o,panelId:r,children:[(0,U.jsxs)(Ps.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,size:"__unstable-large",label:og(n),value:s||"fit",help:tg(s,n),onChange:e=>{t({selfStretch:e,flexSize:"fixed"!==e?null:i})},isBlock:!0,children:[(0,U.jsx)(Ps.__experimentalToggleGroupControlOption,{value:"fit",label:(0,C.__)("Fit")},"fit"),(0,U.jsx)(Ps.__experimentalToggleGroupControlOption,{value:"fill",label:(0,C.__)("Fill")},"fill"),(0,U.jsx)(Ps.__experimentalToggleGroupControlOption,{value:"fixed",label:(0,C.__)("Fixed")},"fixed")]}),"fixed"===s&&(0,U.jsx)(Ps.__experimentalUnitControl,{size:"__unstable-large",onChange:e=>{t({selfStretch:s,flexSize:e})},value:i})]}),"grid"===m&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Ps.__experimentalHStack,{as:Ps.__experimentalToolsPanelItem,hasValue:()=>!!u||!!d,label:(0,C.__)("Grid span"),onDeselect:()=>{t({columnSpan:void 0,rowSpan:void 0})},isShownByDefault:o,panelId:r,children:[(0,U.jsx)(Ps.__experimentalInputControl,{size:"__unstable-large",label:(0,C.__)("Column span"),type:"number",onChange:e=>{t({columnStart:l,rowStart:c,rowSpan:d,columnSpan:e})},value:u,min:1}),(0,U.jsx)(Ps.__experimentalInputControl,{size:"__unstable-large",label:(0,C.__)("Row span"),type:"number",onChange:e=>{t({columnStart:l,rowStart:c,columnSpan:u,rowSpan:e})},value:d,min:1})]}),window.__experimentalEnableGridInteractivity&&(0,U.jsxs)(Ps.Flex,{as:Ps.__experimentalToolsPanelItem,hasValue:()=>!!l||!!c,label:(0,C.__)("Grid placement"),onDeselect:()=>{t({columnStart:void 0,rowStart:void 0})},isShownByDefault:!1,panelId:r,children:[(0,U.jsx)(Ps.FlexItem,{style:{width:"50%"},children:(0,U.jsx)(Ps.__experimentalInputControl,{size:"__unstable-large",label:(0,C.__)("Column"),type:"number",onChange:e=>{t({columnStart:e,rowStart:c,columnSpan:u,rowSpan:d})},value:l,min:1,max:n?.columnCount?n.columnCount-(null!=u?u:1)+1:void 0})}),(0,U.jsx)(Ps.FlexItem,{style:{width:"50%"},children:(0,U.jsx)(Ps.__experimentalInputControl,{size:"__unstable-large",label:(0,C.__)("Row"),type:"number",onChange:e=>{t({columnStart:l,rowStart:e,columnSpan:u,rowSpan:d})},value:c,min:1,max:n?.rowCount?n.rowCount-(null!=d?d:1)+1:void 0})})]})]})]})}function og(e){const{orientation:t="horizontal"}=e;return"horizontal"===t?(0,C.__)("Width"):(0,C.__)("Height")}function rg({panelId:e,value:t,onChange:n=(()=>{}),options:o,defaultValue:r="auto",hasValue:s,isShownByDefault:i=!0}){const l=null!=t?t:"auto",[a,c,u]=$r("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),d=c?.map((({name:e,ratio:t})=>({label:e,value:t}))),p=a?.map((({name:e,ratio:t})=>({label:e,value:t}))),h=[{label:(0,C._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...u?p:[],...d||[],{label:(0,C._x)("Custom","Aspect ratio option for dimensions control"),value:"custom",disabled:!0,hidden:!0}];return(0,U.jsx)(Ps.__experimentalToolsPanelItem,{hasValue:s||(()=>l!==r),label:(0,C.__)("Aspect ratio"),onDeselect:()=>n(void 0),isShownByDefault:i,panelId:e,children:(0,U.jsx)(Ps.SelectControl,{label:(0,C.__)("Aspect ratio"),value:l,options:null!=o?o:h,onChange:n,size:"__unstable-large",__nextHasNoMarginBottom:!0})})}const sg=["horizontal","vertical"];function ig(e){const t=lg(e),n=ag(e),o=cg(e),r=ug(e),s=dg(e),i=pg(e),l=hg(e),c=gg(e);return"web"===a.Platform.OS&&(t||n||o||r||s||i||l||c)}function lg(e){return e?.layout?.contentSize}function ag(e){return e?.layout?.wideSize}function cg(e){return e?.spacing?.padding}function ug(e){return e?.spacing?.margin}function dg(e){return e?.spacing?.blockGap}function pg(e){return e?.dimensions?.minHeight}function hg(e){return e?.dimensions?.aspectRatio}function gg(e){var t;const{type:n="default",default:{type:o="default"}={},allowSizingOnChildren:r=!1}=null!==(t=e?.parentLayout)&&void 0!==t?t:{},s=("flex"===o||"flex"===n||"grid"===o||"grid"===n)&&r;return!!e?.layout&&s}function mg(e,t){if(!t||!e)return e;const n={};return t.forEach((t=>{"vertical"===t&&(n.top=e.top,n.bottom=e.bottom),"horizontal"===t&&(n.left=e.left,n.right=e.right),n[t]=e?.[t]})),n}function fg(e){return e&&"string"==typeof e?{top:e,right:e,bottom:e,left:e}:e}function bg({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const s=as();return(0,U.jsx)(Ps.__experimentalToolsPanel,{label:(0,C.__)("Dimensions"),resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:s,children:r})}const vg={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,aspectRatio:!0,childLayout:!0};function kg({as:e=bg,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:s,defaultControls:i=vg,onVisualize:l=(()=>{}),includeLayoutControls:c=!1}){var u,d,p,h,g,m,f,b;const{dimensions:v,spacing:k}=r,_=e=>e&&"object"==typeof e?Object.keys(e).reduce(((t,n)=>(t[n]=us({settings:{dimensions:v,spacing:k}},"",e[n]),t)),{}):us({settings:{dimensions:v,spacing:k}},"",e),x=function(e){const{defaultSpacingSizes:t,spacingSizes:n}=e?.spacing||{};return!1!==t&&n?.default?.length>0||n?.theme?.length>0||n?.custom?.length>0}(r),y=(0,Ps.__experimentalUseCustomUnits)({availableUnits:r?.spacing?.units||["%","px","em","rem","vw"]}),S=-1/0,[w,B]=(0,a.useState)(S),I=lg(r)&&c,j=_(o?.layout?.contentSize),E=e=>{n(pe(t,["layout","contentSize"],e||void 0))},T=ag(r)&&c,M=_(o?.layout?.wideSize),P=e=>{n(pe(t,["layout","wideSize"],e||void 0))},R=cg(r),N=fg(_(o?.spacing?.padding)),A=Array.isArray(r?.spacing?.padding)?r?.spacing?.padding:r?.spacing?.padding?.sides,L=A&&A.some((e=>sg.includes(e))),O=e=>{const o=mg(e,A);n(pe(t,["spacing","padding"],o))},D=()=>l("padding"),z=ug(r),V=fg(_(o?.spacing?.margin)),F=Array.isArray(r?.spacing?.margin)?r?.spacing?.margin:r?.spacing?.margin?.sides,H=F&&F.some((e=>sg.includes(e))),G=e=>{const o=mg(e,F);n(pe(t,["spacing","margin"],o))},$=()=>l("margin"),W=dg(r),K=_(o?.spacing?.blockGap),Z=function(e){return e&&"string"==typeof e?{top:e}:e?{...e,right:e?.left,bottom:e?.top}:e}(K),q=Array.isArray(r?.spacing?.blockGap)?r?.spacing?.blockGap:r?.spacing?.blockGap?.sides,Y=q&&q.some((e=>sg.includes(e))),X=e=>{n(pe(t,["spacing","blockGap"],e))},Q=e=>{e||X(null),!Y&&e?.hasOwnProperty("top")?X(e.top):X({top:e?.top,left:e?.left})},J=pg(r),ee=_(o?.dimensions?.minHeight),te=e=>{const o=pe(t,["dimensions","minHeight"],e);n(pe(o,["dimensions","aspectRatio"],void 0))},ne=hg(r),oe=_(o?.dimensions?.aspectRatio),re=gg(r),se=o?.layout,ie=(0,a.useCallback)((e=>({...e,layout:Cs({...e?.layout,contentSize:void 0,wideSize:void 0,selfStretch:void 0,flexSize:void 0,columnStart:void 0,rowStart:void 0,columnSpan:void 0,rowSpan:void 0}),spacing:{...e?.spacing,padding:void 0,margin:void 0,blockGap:void 0},dimensions:{...e?.dimensions,minHeight:void 0,aspectRatio:void 0}})),[]),le=()=>l(!1),ae={min:w,onDragStart:()=>{B(0)},onDragEnd:()=>{B(S)}};return(0,U.jsxs)(e,{resetAllFilter:ie,value:t,onChange:n,panelId:s,children:[(I||T)&&(0,U.jsx)("span",{className:"span-columns",children:(0,C.__)("Set the width of the main content area.")}),I&&(0,U.jsx)(Ps.__experimentalToolsPanelItem,{className:"single-column",label:(0,C.__)("Content size"),hasValue:()=>!!t?.layout?.contentSize,onDeselect:()=>E(void 0),isShownByDefault:null!==(u=i.contentSize)&&void 0!==u?u:vg.contentSize,panelId:s,children:(0,U.jsxs)(Ps.__experimentalHStack,{alignment:"flex-end",justify:"flex-start",children:[(0,U.jsx)(Ps.__experimentalUnitControl,{label:(0,C.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:j||"",onChange:e=>{E(e)},units:y}),(0,U.jsx)(Ps.__experimentalView,{children:(0,U.jsx)(Hi,{icon:Gi})})]})}),T&&(0,U.jsx)(Ps.__experimentalToolsPanelItem,{className:"single-column",label:(0,C.__)("Wide size"),hasValue:()=>!!t?.layout?.wideSize,onDeselect:()=>P(void 0),isShownByDefault:null!==(d=i.wideSize)&&void 0!==d?d:vg.wideSize,panelId:s,children:(0,U.jsxs)(Ps.__experimentalHStack,{alignment:"flex-end",justify:"flex-start",children:[(0,U.jsx)(Ps.__experimentalUnitControl,{label:(0,C.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:M||"",onChange:e=>{P(e)},units:y}),(0,U.jsx)(Ps.__experimentalView,{children:(0,U.jsx)(Hi,{icon:Ui})})]})}),R&&(0,U.jsxs)(Ps.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.padding&&Object.keys(t?.spacing?.padding).length,label:(0,C.__)("Padding"),onDeselect:()=>O(void 0),isShownByDefault:null!==(p=i.padding)&&void 0!==p?p:vg.padding,className:ws({"tools-panel-item-spacing":x}),panelId:s,children:[!x&&(0,U.jsx)(Ps.__experimentalBoxControl,{values:N,onChange:O,label:(0,C.__)("Padding"),sides:A,units:y,allowReset:!1,splitOnAxis:L,onMouseOver:D,onMouseOut:le}),x&&(0,U.jsx)(Qh,{values:N,onChange:O,label:(0,C.__)("Padding"),sides:A,units:y,allowReset:!1,onMouseOver:D,onMouseOut:le})]}),z&&(0,U.jsxs)(Ps.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.margin&&Object.keys(t?.spacing?.margin).length,label:(0,C.__)("Margin"),onDeselect:()=>G(void 0),isShownByDefault:null!==(h=i.margin)&&void 0!==h?h:vg.margin,className:ws({"tools-panel-item-spacing":x}),panelId:s,children:[!x&&(0,U.jsx)(Ps.__experimentalBoxControl,{values:V,onChange:G,inputProps:ae,label:(0,C.__)("Margin"),sides:F,units:y,allowReset:!1,splitOnAxis:H,onMouseOver:$,onMouseOut:le}),x&&(0,U.jsx)(Qh,{values:V,onChange:G,minimumCustomValue:-1/0,label:(0,C.__)("Margin"),sides:F,units:y,allowReset:!1,onMouseOver:$,onMouseOut:le})]}),W&&(0,U.jsxs)(Ps.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.blockGap,label:(0,C.__)("Block spacing"),onDeselect:()=>X(void 0),isShownByDefault:null!==(g=i.blockGap)&&void 0!==g?g:vg.blockGap,className:ws({"tools-panel-item-spacing":x}),panelId:s,children:[!x&&(Y?(0,U.jsx)(Ps.__experimentalBoxControl,{label:(0,C.__)("Block spacing"),min:0,onChange:Q,units:y,sides:q,values:Z,allowReset:!1,splitOnAxis:Y}):(0,U.jsx)(Ps.__experimentalUnitControl,{label:(0,C.__)("Block spacing"),__unstableInputWidth:"80px",min:0,onChange:X,units:y,value:K})),x&&(0,U.jsx)(Qh,{label:(0,C.__)("Block spacing"),min:0,onChange:Q,showSideInLabel:!1,sides:Y?q:["top"],values:Z,allowReset:!1})]}),re&&(0,U.jsx)(ng,{value:se,onChange:e=>{n({...t,layout:{...e}})},parentLayout:r?.parentLayout,panelId:s,isShownByDefault:null!==(m=i.childLayout)&&void 0!==m?m:vg.childLayout}),J&&(0,U.jsx)(Ps.__experimentalToolsPanelItem,{hasValue:()=>!!t?.dimensions?.minHeight,label:(0,C.__)("Minimum height"),onDeselect:()=>{te(void 0)},isShownByDefault:null!==(f=i.minHeight)&&void 0!==f?f:vg.minHeight,panelId:s,children:(0,U.jsx)(eg,{label:(0,C.__)("Minimum height"),value:ee,onChange:te})}),ne&&(0,U.jsx)(rg,{hasValue:()=>!!t?.dimensions?.aspectRatio,value:oe,onChange:e=>{const o=pe(t,["dimensions","aspectRatio"],e);n(pe(o,["dimensions","minHeight"],void 0))},panelId:s,isShownByDefault:null!==(b=i.aspectRatio)&&void 0!==b?b:vg.aspectRatio})]})}function _g({clientId:e,value:t,computeStyle:n,forceShow:o}){const r=Xi(e),[s,i]=(0,a.useReducer)((()=>n(r)));(0,a.useLayoutEffect)((()=>{r&&window.requestAnimationFrame((()=>window.requestAnimationFrame(i)))}),[r,t]);const l=(0,a.useRef)(t),[c,u]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{if(ga()(t,l.current)||o)return;u(!0),l.current=t;const e=setTimeout((()=>{u(!1)}),400);return()=>{u(!1),clearTimeout(e)}}),[t,o]),c||o?(0,U.jsx)(ol,{clientId:e,__unstablePopoverSlot:"block-toolbar",children:(0,U.jsx)("div",{className:"block-editor__spacing-visualizer",style:s})}):null}function xg(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function yg({clientId:e,value:t,forceShow:n}){return(0,U.jsx)(_g,{clientId:e,value:t?.spacing?.margin,computeStyle:e=>{const t=xg(e,"margin-top"),n=xg(e,"margin-right"),o=xg(e,"margin-bottom"),r=xg(e,"margin-left");return{borderTopWidth:t,borderRightWidth:n,borderBottomWidth:o,borderLeftWidth:r,top:t?`-${t}`:0,right:n?`-${n}`:0,bottom:o?`-${o}`:0,left:r?`-${r}`:0}},forceShow:n})}function Sg({clientId:e,value:t,forceShow:n}){return(0,U.jsx)(_g,{clientId:e,value:t?.spacing?.padding,computeStyle:e=>({borderTopWidth:xg(e,"padding-top"),borderRightWidth:xg(e,"padding-right"),borderBottomWidth:xg(e,"padding-bottom"),borderLeftWidth:xg(e,"padding-left")}),forceShow:n})}const wg="dimensions",Cg="spacing";function Bg({children:e,resetAllFilter:t}){const n=(0,a.useCallback)((e=>{const n=e.style,o=t(n);return{...e,style:o}}),[t]);return(0,U.jsx)(oa,{group:"dimensions",resetAllFilter:n,children:e})}function Ig({clientId:e,name:t,setAttributes:n,settings:o}){const r=ig(o),s=(0,c.useSelect)((t=>t(Gr).getBlockAttributes(e)?.style),[e]),[i,u]=function(){const[e,t]=(0,a.useState)(!1),{hideBlockInterface:n,showBlockInterface:o}=Q((0,c.useDispatch)(Gr));return(0,a.useEffect)((()=>{e?n():o()}),[e,o,n]),[e,t]}();if(!r)return null;const d={...(0,l.getBlockSupport)(t,[wg,"__experimentalDefaultControls"]),...(0,l.getBlockSupport)(t,[Cg,"__experimentalDefaultControls"])};return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(kg,{as:Bg,panelId:e,settings:o,value:s,onChange:e=>{n({style:Cs(e)})},defaultControls:d,onVisualize:u}),!!o?.spacing?.padding&&(0,U.jsx)(Sg,{forceShow:"padding"===i,clientId:e,value:s}),!!o?.spacing?.margin&&(0,U.jsx)(yg,{forceShow:"margin"===i,clientId:e,value:s})]})}function jg(e,t="any"){if("web"!==a.Platform.OS)return!1;const n=(0,l.getBlockSupport)(e,wg);return!0===n||("any"===t?!(!n?.aspectRatio&&!n?.minHeight):!!n?.[t])}const Eg={useBlockProps:function({name:e,minHeight:t,style:n}){if(!jg(e,"aspectRatio")||Is(e,wg,"aspectRatio"))return{};const o=ws({"has-aspect-ratio":!!n?.dimensions?.aspectRatio}),r={};n?.dimensions?.aspectRatio?r.minHeight="unset":(t||n?.dimensions?.minHeight)&&(r.aspectRatio="unset");return{className:o,style:r}},attributeKeys:["minHeight","style"],hasSupport:e=>jg(e,"aspectRatio")};function Tg(){y()("wp.blockEditor.__experimentalUseCustomSides",{since:"6.3",version:"6.4"})}const Mg=[...Ah,hd,np,wg,Ac,Cg,gd],Pg=e=>Mg.some((t=>(0,l.hasBlockSupport)(e,t)));function Rg(e={}){const t={};return(0,$i.getCSSRules)(e).forEach((e=>{t[e.key]=e.value})),t}const Ng={[`${hd}.__experimentalSkipSerialization`]:["border"],[`${np}.__experimentalSkipSerialization`]:[np],[`${Nh}.__experimentalSkipSerialization`]:[Nh],[`${wg}.__experimentalSkipSerialization`]:[wg],[`${Cg}.__experimentalSkipSerialization`]:[Cg],[`${gd}.__experimentalSkipSerialization`]:[gd]},Ag={...Ng,[`${wg}.aspectRatio`]:[`${wg}.aspectRatio`],[`${Ac}`]:[Ac]},Lg={[`${wg}.aspectRatio`]:!0,[`${Ac}`]:!0},Og={gradients:"gradient"};function Dg(e,t,n=!1){if(!e)return e;let o=e;return n||(o=JSON.parse(JSON.stringify(e))),Array.isArray(t)||(t=[t]),t.forEach((e=>{if(Array.isArray(e)||(e=e.split(".")),e.length>1){const[t,...n]=e;Dg(o[t],[n],!0)}else 1===e.length&&delete o[e[0]]})),o}function zg(e,t,n,o=Ag){if(!Pg(t))return e;let{style:r}=n;return Object.entries(o).forEach((([e,n])=>{const o=Lg[e]||(0,l.getBlockSupport)(t,e);!0===o&&(r=Dg(r,n)),Array.isArray(o)&&o.forEach((e=>{const t=Og[e]||e;r=Dg(r,[[...n,t]])}))})),e.style={...Rg(r),...e.style},e}const Vg={edit:function({clientId:e,name:t,setAttributes:n,__unstableParentLayout:o}){const r=Ts(t,o),s=Pl(),i={clientId:e,name:t,setAttributes:n,settings:{...r,typography:{...r.typography,textAlign:!1}}};return"default"!==s?null:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(pp,{...i}),(0,U.jsx)(Vc,{...i}),(0,U.jsx)(zh,{...i}),(0,U.jsx)(xd,{...i}),(0,U.jsx)(Ig,{...i})]})},hasSupport:Pg,addSaveProps:zg,attributeKeys:["style"],useBlockProps:function e({name:t,style:n}){const o=`wp-elements-${(0,u.useInstanceId)(e)}`,r=`.editor-styles-wrapper .${o}`,s=n?.elements,i=(0,a.useMemo)((()=>{if(!s)return;const e=[];return Fg.forEach((({elementType:n,pseudo:o,elements:i})=>{if(Is(t,np,n))return;const a=s?.[n];if(a){const t=ds(r,l.__EXPERIMENTAL_ELEMENTS[n]);e.push((0,$i.compileCSS)(a,{selector:t})),o&&o.forEach((t=>{a[t]&&e.push((0,$i.compileCSS)(a[t],{selector:ds(r,`${l.__EXPERIMENTAL_ELEMENTS[n]}${t}`)}))}))}i&&i.forEach((t=>{s[t]&&e.push((0,$i.compileCSS)(s[t],{selector:ds(r,l.__EXPERIMENTAL_ELEMENTS[t])}))}))})),e.length>0?e.join(""):void 0}),[r,s,t]);return Es({css:i}),zg({className:o},t,{style:n},Ng)}},Fg=[{elementType:"button"},{elementType:"link",pseudo:[":hover"]},{elementType:"heading",elements:["h1","h2","h3","h4","h5","h6"]}];(0,d.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Pg(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e}));(0,d.addFilter)("blocks.registerBlockType","core/settings/addAttribute",(function(e){return t=e,(0,l.hasBlockSupport)(t,"__experimentalSettings",!1)?(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}}),e):e;var t}));const Hg=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"})});const Gg=function e({id:t,colorPalette:n,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:s,value:i,onChange:l}){let a;a="unset"===i?(0,U.jsx)(Ps.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):i?(0,U.jsx)(Ps.DuotoneSwatch,{values:i}):(0,U.jsx)(Hi,{icon:Hg});const c=(0,C.__)("Apply duotone filter"),d=`${(0,u.useInstanceId)(e,"duotone-control",t)}__description`;return(0,U.jsx)(Ps.Dropdown,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:(0,C.__)("Duotone")},renderToggle:({isOpen:e,onToggle:t})=>(0,U.jsx)(Ps.ToolbarButton,{showTooltip:!0,onClick:t,"aria-haspopup":"true","aria-expanded":e,onKeyDown:n=>{e||n.keyCode!==la.DOWN||(n.preventDefault(),t())},label:c,icon:a}),renderContent:()=>(0,U.jsxs)(Ps.MenuGroup,{label:(0,C.__)("Duotone"),children:[(0,U.jsx)("p",{children:(0,C.__)("Create a two-tone color effect without losing your original image.")}),(0,U.jsx)(Ps.DuotonePicker,{"aria-label":c,"aria-describedby":d,colorPalette:n,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:s,value:i,onChange:l})]})})};function Ug(e){return`${e}{filter:none}`}function $g(e,t){return`${e}{filter:url(#${t})}`}function Wg(e,t){const n=function(e=[]){const t={r:[],g:[],b:[],a:[]};return e.forEach((e=>{const n=_u(e).toRgb();t.r.push(n.r/255),t.g.push(n.g/255),t.b.push(n.b/255),t.a.push(n.a)})),t}(t);return`\n<svg\n\txmlns:xlink="http://www.w3.org/1999/xlink"\n\tviewBox="0 0 0 0"\n\twidth="0"\n\theight="0"\n\tfocusable="false"\n\trole="none"\n\taria-hidden="true"\n\tstyle="visibility: hidden; position: absolute; left: -9999px; overflow: hidden;"\n>\n\t<defs>\n\t\t<filter id="${e}">\n\t\t\t\x3c!--\n\t\t\t\tUse sRGB instead of linearRGB so transparency looks correct.\n\t\t\t\tUse perceptual brightness to convert to grayscale.\n\t\t\t--\x3e\n\t\t\t<feColorMatrix color-interpolation-filters="sRGB" type="matrix" values=" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "></feColorMatrix>\n\t\t\t\x3c!-- Use sRGB instead of linearRGB to be consistent with how CSS gradients work. --\x3e\n\t\t\t<feComponentTransfer color-interpolation-filters="sRGB">\n\t\t\t\t<feFuncR type="table" tableValues="${n.r.join(" ")}"></feFuncR>\n\t\t\t\t<feFuncG type="table" tableValues="${n.g.join(" ")}"></feFuncG>\n\t\t\t\t<feFuncB type="table" tableValues="${n.b.join(" ")}"></feFuncB>\n\t\t\t\t<feFuncA type="table" tableValues="${n.a.join(" ")}"></feFuncA>\n\t\t\t</feComponentTransfer>\n\t\t\t\x3c!-- Re-mask the image with the original transparency since the feColorMatrix above loses that information. --\x3e\n\t\t\t<feComposite in2="SourceGraphic" operator="in"></feComposite>\n\t\t</filter>\n\t</defs>\n</svg>`}function Kg(e,t="root",n={}){if(!t)return null;const{fallback:o=!1}=n,{name:r,selectors:s,supports:i}=e,l=s&&Object.keys(s).length>0,a=Array.isArray(t)?t.join("."):t;let c=null;if(c=l&&s.root?s?.root:i?.__experimentalSelector?i.__experimentalSelector:".wp-block-"+r.replace("core/","").replace("/","-"),"root"===a)return c;const u=Array.isArray(t)?t:t.split(".");if(1===u.length){const e=o?c:null;if(l){return he(s,`${a}.root`,null)||he(s,a,null)||e}const t=he(i,`${a}.__experimentalSelector`,null);return t?ds(c,t):e}let d;return l&&(d=he(s,a,null)),d||(o?Kg(e,u[0],n):null)}const Zg=[];function qg(e,{presetSetting:t,defaultSetting:n}){const o=!e?.color?.[n],r=e?.color?.[t]?.custom||Zg,s=e?.color?.[t]?.theme||Zg,i=e?.color?.[t]?.default||Zg;return(0,a.useMemo)((()=>[...r,...s,...o?Zg:i]),[o,r,s,i])}function Yg(e){return Xg(e)}function Xg(e){return e.color.customDuotone||e.color.defaultDuotone||e.color.duotone.length>0}function Qg({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const s=as();return(0,U.jsx)(Ps.__experimentalToolsPanel,{label:(0,C._x)("Filters","Name for applying graphical effects"),resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:s,children:r})}const Jg={duotone:!0},em={placement:"left-start",offset:36,shift:!0,className:"block-editor-duotone-control__popover",headerTitle:(0,C.__)("Duotone")},tm=({indicator:e,label:t})=>(0,U.jsxs)(Ps.__experimentalHStack,{justify:"flex-start",children:[(0,U.jsx)(Ps.__experimentalZStack,{isLayered:!1,offset:-8,children:(0,U.jsx)(Ps.Flex,{expanded:!1,children:"unset"!==e&&e?(0,U.jsx)(Ps.DuotoneSwatch,{values:e}):(0,U.jsx)(Ps.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"})})}),(0,U.jsx)(Ps.FlexItem,{title:t,children:t})]});function nm({as:e=Qg,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:s,defaultControls:i=Jg}){const l=Xg(r),c=qg(r,{presetSetting:"duotone",defaultSetting:"defaultDuotone"}),u=qg(r,{presetSetting:"palette",defaultSetting:"defaultPalette"}),d=(p=o?.filter?.duotone,us({settings:r},"",p));var p;const h=e=>{const o=c.find((({colors:t})=>t===e)),r=o?`var:preset|duotone|${o.slug}`:e;n(pe(t,["filter","duotone"],r))},g=(0,a.useCallback)((e=>({...e,filter:{...e.filter,duotone:void 0}})),[]);return(0,U.jsx)(e,{resetAllFilter:g,value:t,onChange:n,panelId:s,children:l&&(0,U.jsx)(Ps.__experimentalToolsPanelItem,{label:(0,C.__)("Duotone"),hasValue:()=>!!t?.filter?.duotone,onDeselect:()=>h(void 0),isShownByDefault:i.duotone,panelId:s,children:(0,U.jsx)(Ps.Dropdown,{popoverProps:em,className:"block-editor-global-styles-filters-panel__dropdown",renderToggle:({onToggle:e,isOpen:t})=>{const n={onClick:e,className:ws({"is-open":t}),"aria-expanded":t};return(0,U.jsx)(Ps.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:(0,U.jsx)(Ps.Button,{...n,children:(0,U.jsx)(tm,{indicator:d,label:(0,C.__)("Duotone")})})})},renderContent:()=>(0,U.jsx)(Ps.__experimentalDropdownContentWrapper,{paddingSize:"small",children:(0,U.jsxs)(Ps.MenuGroup,{label:(0,C.__)("Duotone"),children:[(0,U.jsx)("p",{children:(0,C.__)("Create a two-tone color effect without losing your original image.")}),(0,U.jsx)(Ps.DuotonePicker,{colorPalette:u,duotonePalette:c,disableCustomColors:!0,disableCustomDuotone:!0,value:d,onChange:h})]})})})})})}const om=[],rm=window?.navigator.userAgent&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&!window.navigator.userAgent.includes("Chromium");function sm({presetSetting:e,defaultSetting:t}){const[n,o,r,s]=$r(t,`${e}.custom`,`${e}.theme`,`${e}.default`);return(0,a.useMemo)((()=>[...o||om,...r||om,...n&&s||om]),[n,o,r,s])}function im(e,t){if(!e)return;const n=t?.find((({slug:t})=>e===`var:preset|duotone|${t}`));return n?n.colors:void 0}yu([Su]);const lm={shareWithChildBlocks:!0,edit:function({style:e,setAttributes:t,name:n}){const o=e?.color?.duotone,r=Ts(n),s=Pl(),i=sm({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),l=sm({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),[a,c]=$r("color.custom","color.customDuotone"),u=!a,d=!c||0===l?.length&&u;if(0===i?.length&&d)return null;if("default"!==s)return null;const p=Array.isArray(o)?o:im(o,i);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(oa,{group:"filter",children:(0,U.jsx)(nm,{value:{filter:{duotone:p}},onChange:n=>{const o={...e,color:{...n?.filter}};t({style:o})},settings:r})}),(0,U.jsx)(zs,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,U.jsx)(Gg,{duotonePalette:i,colorPalette:l,disableCustomDuotone:d,disableCustomColors:u,value:p,onChange:n=>{const o=function(e,t){if(!e||!Array.isArray(e))return;const n=t?.find((t=>t?.colors?.every(((t,n)=>t===e[n]))));return n?`var:preset|duotone|${n.slug}`:void 0}(n,i),r={...e,color:{...e?.color,duotone:null!=o?o:n}};t({style:r})},settings:r})})]})},useBlockProps:function e({clientId:t,name:n,style:o}){const r=(0,u.useInstanceId)(e),s=(0,a.useMemo)((()=>{const e=(0,l.getBlockType)(n);if(e){if(!(0,l.getBlockSupport)(e,"filter.duotone",!1))return null;const t=(0,l.getBlockSupport)(e,"color.__experimentalDuotone",!1);if(t){const n=Kg(e);return"string"==typeof t?ds(n,t):n}return Kg(e,"filter.duotone",{fallback:!0})}}),[n]),i=o?.color?.duotone,c=`wp-duotone-${r}`,d=s&&i;return am({clientId:t,id:c,selector:s,attribute:i}),{className:d?c:""}},attributeKeys:["style"],hasSupport:e=>(0,l.hasBlockSupport)(e,"filter.duotone")};function am({clientId:e,id:t,selector:n,attribute:o}){const r=sm({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),s=Array.isArray(o),i=s?void 0:im(o,r),l="string"==typeof o&&i;let c=null;l?c=i:("string"==typeof o&&!l||s)&&(c=o);const u=n.split(",").map((e=>`.${t}${e.trim()}`)).join(", "),d=Array.isArray(c)||"unset"===c;Es(d?{css:"unset"!==c?$g(u,t):Ug(u),__unstableType:"presets"}:void 0),Es(d?{assets:"unset"!==c?Wg(t,c):"",__unstableType:"svgs"}:void 0);const p=Xi(e);(0,a.useEffect)((()=>{if(d&&p&&rm){const e=p.style.display;p.style.display="inline-block",p.offsetHeight,p.style.display=e}}),[d,p,c])}function cm(e){return(0,c.useSelect)((t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:o}=t(Gr),{getBlockType:r,getActiveBlockVariation:s}=t(l.store),i=n(e),a=r(i);if(!a)return null;const c=o(e),u=s(i,c),d=(0,l.isReusableBlock)(a)||(0,l.isTemplatePart)(a),p=(d?(0,l.__experimentalGetBlockLabel)(a,c):void 0)||a.title,h=function(e){const t=e?.style?.position?.type;return"sticky"===t?(0,C.__)("Sticky"):"fixed"===t?(0,C.__)("Fixed"):null}(c),g={isSynced:d,title:p,icon:a.icon,description:a.description,anchor:c?.anchor,positionLabel:h,positionType:c?.style?.position?.type,name:c?.metadata?.name};return u?{isSynced:d,title:u.title||a.title,icon:u.icon||a.icon,description:u.description||a.description,anchor:c?.anchor,positionLabel:h,positionType:c?.style?.position?.type,name:c?.metadata?.name}:g}),[e])}(0,d.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return(0,l.hasBlockSupport)(e,"filter.duotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e}));const{CustomSelectControl:um}=Q(Ps.privateApis),dm="position",pm="block-editor-hooks__position-selection__select-control__option",hm={key:"default",value:"",name:(0,C.__)("Default"),className:pm},gm={key:"sticky",value:"sticky",name:(0,C._x)("Sticky","Name for the value of the CSS position property"),className:pm,__experimentalHint:(0,C.__)("The block will stick to the top of the window instead of scrolling.")},mm={key:"fixed",value:"fixed",name:(0,C._x)("Fixed","Name for the value of the CSS position property"),className:pm,__experimentalHint:(0,C.__)("The block will not move when the page is scrolled.")},fm=["top","right","bottom","left"],bm=["sticky","fixed"];function vm(e){const t=e?.style?.position?.type;return"sticky"===t||"fixed"===t}function km({name:e}={}){const[t,n]=$r("position.fixed","position.sticky"),o=!t&&!n;return r=e,!(0,l.getBlockSupport)(r,dm)||o;var r}function _m({style:e={},clientId:t,name:n,setAttributes:o}){const r=function(e){const t=(0,l.getBlockSupport)(e,dm);return!(!0!==t&&!t?.fixed)}(n),s=function(e){const t=(0,l.getBlockSupport)(e,dm);return!(!0!==t&&!t?.sticky)}(n),i=e?.position?.type,{firstParentClientId:u}=(0,c.useSelect)((e=>{const{getBlockParents:n}=e(Gr),o=n(t);return{firstParentClientId:o[o.length-1]}}),[t]),d=cm(u),p=s&&i===gm.value&&d?(0,C.sprintf)((0,C.__)("The block will stick to the scrollable area of the parent %s block."),d.title):null,h=(0,a.useMemo)((()=>{const e=[hm];return(s||i===gm.value)&&e.push(gm),(r||i===mm.value)&&e.push(mm),e}),[r,s,i]),g=i&&h.find((e=>e.value===i))||hm;return a.Platform.select({web:h.length>1?(0,U.jsx)(oa,{group:"position",children:(0,U.jsx)(Ps.BaseControl,{className:"block-editor-hooks__position-selection",__nextHasNoMarginBottom:!0,help:p,children:(0,U.jsx)(um,{__next40pxDefaultSize:!0,className:"block-editor-hooks__position-selection__select-control",label:(0,C.__)("Position"),hideLabelFromVision:!0,describedBy:(0,C.sprintf)((0,C.__)("Currently selected position: %s"),g.name),options:h,value:g,__experimentalShowSelectedHint:!0,onChange:({selectedItem:t})=>{(t=>{const n={...e,position:{...e?.position,type:t,top:"sticky"===t||"fixed"===t?"0px":void 0}};o({style:Cs(n)})})(t.value)},size:"__unstable-large"})})}):null,native:null})}const xm={edit:function(e){return km(e)?null:(0,U.jsx)(_m,{...e})},useBlockProps:function e({name:t,style:n}){const o=(0,l.hasBlockSupport)(t,dm),r=km({name:t}),s=o&&!r,i=(0,u.useInstanceId)(e),a=`.wp-container-${i}.wp-container-${i}`;let c;s&&(c=function({selector:e,style:t}){let n="";const{type:o}=t?.position||{};return bm.includes(o)?(n+=`${e} {`,n+=`position: ${o};`,fm.forEach((e=>{void 0!==t?.position?.[e]&&(n+=`${e}: ${t.position[e]};`)})),"sticky"!==o&&"fixed"!==o||(n+="z-index: 10"),n+="}",n):n}({selector:a,style:n})||"");const d=ws({[`wp-container-${i}`]:s&&!!c,[`is-position-${n?.position?.type}`]:s&&!!c&&!!n?.position?.type});return Es({css:c}),{className:d}},attributeKeys:["style"],hasSupport:e=>(0,l.hasBlockSupport)(e,dm)};const ym={button:"wp-element-button",caption:"wp-element-caption"},Sm={__experimentalBorder:"border",color:"color",spacing:"spacing",typography:"typography"},{kebabCase:wm}=Q(Ps.privateApis);function Cm(e){const t="var:";if(e?.startsWith?.(t)){return`var(--wp--${e.slice(4).split("|").join("--")})`}return e}function Bm(e={},t,n){let o=[];return Object.keys(e).forEach((r=>{const s=t+wm(r.replace("/","-")),i=e[r];if(i instanceof Object){const e=s+n;o=[...o,...Bm(i,e,n)]}else o.push(`${s}: ${i}`)})),o}const Im=(e,t)=>{const n={};return Object.entries(e).forEach((([e,o])=>{if("root"===e||!t?.[e])return;const r="string"==typeof o;if(r||Object.entries(o).forEach((([o,r])=>{if("root"===o||!t?.[e][o])return;const s=jm({[e]:{[o]:t[e][o]}});n[r]=[...n[r]||[],...s],delete t[e][o]})),r||o.root){const s=r?o:o.root,i=jm({[e]:t[e]});n[s]=[...n[s]||[],...i],delete t[e]}})),n};function jm(e={},t="",n,o={},r=!1){const s=rs===t,i=Object.entries(l.__EXPERIMENTAL_STYLE_PROPERTY).reduce(((t,[o,{value:r,properties:i,useEngine:l,rootOnly:a}])=>{if(a&&!s)return t;const c=r;if("elements"===c[0]||l)return t;const u=he(e,c);if("--wp--style--root--padding"===o&&("string"==typeof u||!n))return t;if(i&&"string"!=typeof u)Object.entries(i).forEach((e=>{const[n,o]=e;if(!he(u,[o],!1))return;const r=n.startsWith("--")?n:wm(n);t.push(`${r}: ${Cm(he(u,[o]))}`)}));else if(he(e,c,!1)){const n=o.startsWith("--")?o:wm(o);t.push(`${n}: ${Cm(he(e,c))}`)}return t}),[]);return(0,$i.getCSSRules)(e).forEach((e=>{if(s&&(n||r)&&e.key.startsWith("padding"))return;const t=e.key.startsWith("--")?e.key:wm(e.key);let l=e.value;if("string"!=typeof l&&l?.ref){const e=l.ref.split(".");if(l=Cm(he(o,e)),!l||l?.ref)return}"font-size"===t&&(l=ns({size:l},o?.settings)),"aspect-ratio"===t&&i.push("min-height: unset"),i.push(`${t}: ${l}`)})),i}function Em({layoutDefinitions:e=Ks,style:t,selector:n,hasBlockGapSupport:o,hasFallbackGapSupport:r,fallbackGapValue:s}){let i="",l=o?fi(t?.spacing?.blockGap):"";if(r&&(n===rs?l=l||"0.5em":!o&&s&&(l=s)),l&&e&&(Object.values(e).forEach((({className:e,name:t,spacingStyles:r})=>{(o||"flex"===t||"grid"===t)&&r?.length&&r.forEach((t=>{const r=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{r.push(`${e}: ${t||l}`)})),r.length){let s="";s=o?n===rs?`.${e}${t?.selector||""}`:`${n}-${e}${t?.selector||""}`:n===rs?`:where(.${e}${t?.selector||""})`:`:where(${n}.${e}${t?.selector||""})`,i+=`${s} { ${r.join("; ")}; }`}}))})),n===rs&&o&&(i+=`${ss} { --wp--style--block-gap: ${l}; }`)),n===rs&&e){const t=["block","flex","grid"];Object.values(e).forEach((({className:e,displayMode:o,baseStyles:r})=>{o&&t.includes(o)&&(i+=`${n} .${e} { display:${o}; }`),r?.length&&r.forEach((t=>{const n=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{n.push(`${e}: ${t}`)})),n.length){i+=`${`.${e}${t?.selector||""}`} { ${n.join("; ")}; }`}}))}))}return i}const Tm=["border","color","dimensions","spacing","typography","filter","outline","shadow","background"];function Mm(e){if(!e)return{};const t=Object.entries(e).filter((([e])=>Tm.includes(e))).map((([e,t])=>[e,JSON.parse(JSON.stringify(t))]));return Object.fromEntries(t)}const Pm=(e,t)=>{var n;const o=[];if(!e?.styles)return o;const r=Mm(e.styles);return r&&o.push({styles:r,selector:rs}),Object.entries(l.__EXPERIMENTAL_ELEMENTS).forEach((([t,n])=>{e.styles?.elements?.[t]&&o.push({styles:e.styles?.elements?.[t],selector:n,skipSelectorWrapper:!ym[t]})})),Object.entries(null!==(n=e.styles?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{var r;const s=Mm(n);if(n?.variations){const r={};Object.entries(n.variations).forEach((([n,s])=>{var i,a;r[n]=Mm(s),s?.css&&(r[n].css=s.css);const c=t[e]?.styleVariationSelectors?.[n];Object.entries(null!==(i=s?.elements)&&void 0!==i?i:{}).forEach((([e,t])=>{t&&l.__EXPERIMENTAL_ELEMENTS[e]&&o.push({styles:t,selector:ds(c,l.__EXPERIMENTAL_ELEMENTS[e])})})),Object.entries(null!==(a=s?.blocks)&&void 0!==a?a:{}).forEach((([e,n])=>{var r;const s=ds(c,t[e]?.selector),i=ds(c,t[e]?.duotoneSelector),a=function(e,t){if(!e||!t)return;const n={};return Object.entries(t).forEach((([t,o])=>{"string"==typeof o&&(n[t]=ds(e,o)),"object"==typeof o&&(n[t]={},Object.entries(o).forEach((([o,r])=>{n[t][o]=ds(e,r)})))})),n}(c,t[e]?.featureSelectors),u=Mm(n);n?.css&&(u.css=n.css),o.push({selector:s,duotoneSelector:i,featureSelectors:a,fallbackGapValue:t[e]?.fallbackGapValue,hasLayoutSupport:t[e]?.hasLayoutSupport,styles:u}),Object.entries(null!==(r=n.elements)&&void 0!==r?r:{}).forEach((([e,t])=>{t&&l.__EXPERIMENTAL_ELEMENTS[e]&&o.push({styles:t,selector:ds(s,l.__EXPERIMENTAL_ELEMENTS[e])})}))}))})),s.variations=r}t?.[e]?.selector&&o.push({duotoneSelector:t[e].duotoneSelector,fallbackGapValue:t[e].fallbackGapValue,hasLayoutSupport:t[e].hasLayoutSupport,selector:t[e].selector,styles:s,featureSelectors:t[e].featureSelectors,styleVariationSelectors:t[e].styleVariationSelectors}),Object.entries(null!==(r=n?.elements)&&void 0!==r?r:{}).forEach((([n,r])=>{r&&t?.[e]&&l.__EXPERIMENTAL_ELEMENTS[n]&&o.push({styles:r,selector:t[e]?.selector.split(",").map((e=>l.__EXPERIMENTAL_ELEMENTS[n].split(",").map((t=>e+" "+t)))).join(",")})}))})),o},Rm=(e,t)=>{var n;const o=[];if(!e?.settings)return o;const r=e=>{let t={};return is.forEach((({path:n})=>{const o=he(e,n,!1);!1!==o&&(t=pe(t,n,o))})),t},s=r(e.settings),i=e.settings?.custom;return(Object.keys(s).length>0||i)&&o.push({presets:s,custom:i,selector:ss}),Object.entries(null!==(n=e.settings?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{const s=r(n),i=n.custom;(Object.keys(s).length>0||i)&&o.push({presets:s,custom:i,selector:t[e]?.selector})})),o},Nm=(e,t)=>{const n=Rm(e,t);let o="";return n.forEach((({presets:t,custom:n,selector:r})=>{const s=function(e={},t){return is.reduce(((n,{path:o,valueKey:r,valueFunc:s,cssVarInfix:i})=>{const l=he(e,o,[]);return["default","theme","custom"].forEach((e=>{l[e]&&l[e].forEach((e=>{r&&!s?n.push(`--wp--preset--${i}--${wm(e.slug)}: ${e[r]}`):s&&"function"==typeof s&&n.push(`--wp--preset--${i}--${wm(e.slug)}: ${s(e,t)}`)}))})),n}),[])}(t,e?.settings),i=Bm(n,"--wp--custom--","--");i.length>0&&s.push(...i),s.length>0&&(o+=`${r}{${s.join(";")};}`)})),o},Am=(e,t,n,o,r=!1,s=!1,i=void 0)=>{const l={blockGap:!0,blockStyles:!0,layoutStyles:!0,marginReset:!0,presets:!0,rootPadding:!0,variationStyles:!1,...i},a=Pm(e,t),c=Rm(e,t),u=e?.settings?.useRootPaddingAwareAlignments,{contentSize:d,wideSize:p}=e?.settings?.layout||{},h=l.marginReset||l.rootPadding||l.layoutStyles;let g="";if(l.presets&&(d||p)&&(g+=`${ss} {`,g=d?g+` --wp--style--global--content-size: ${d};`:g,g=p?g+` --wp--style--global--wide-size: ${p};`:g,g+="}"),h&&(g+=":where(body) {margin: 0;",l.rootPadding&&u&&(g+="padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) }\n\t\t\t\t.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }\n\t\t\t\t.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }\n\t\t\t\t.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; }\n\t\t\t\t.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0;\n\t\t\t\t"),g+="}"),l.blockStyles&&a.forEach((({selector:t,duotoneSelector:i,styles:a,fallbackGapValue:c,hasLayoutSupport:d,featureSelectors:p,styleVariationSelectors:h,skipSelectorWrapper:m})=>{if(p){const e=Im(p,a);Object.entries(e).forEach((([e,t])=>{if(t.length){const n=t.join(";");g+=`:root :where(${e}){${n};}`}}))}if(i){const e={};a?.filter&&(e.filter=a.filter,delete a.filter);const t=jm(e);t.length&&(g+=`${i}{${t.join(";")};}`)}r||rs!==t&&!d||(g+=Em({style:a,selector:t,hasBlockGapSupport:n,hasFallbackGapSupport:o,fallbackGapValue:c}));const f=jm(a,t,u,e,s);if(f?.length){g+=`${m?t:`:root :where(${t})`}{${f.join(";")};}`}a?.css&&(g+=Dm(a.css,`:root :where(${t})`)),l.variationStyles&&h&&Object.entries(h).forEach((([t,n])=>{const o=a?.variations?.[t];if(o){if(p){const e=Im(p,o);Object.entries(e).forEach((([e,t])=>{if(t.length){const o=function(e,t){const n=e.split(","),o=[];return n.forEach((e=>{o.push(`${t.trim()}${e.trim()}`)})),o.join(", ")}(e,n),r=t.join(";");g+=`:root :where(${o}){${r};}`}}))}const t=jm(o,n,u,e);t.length&&(g+=`:root :where(${n}){${t.join(";")};}`),o?.css&&(g+=Dm(o.css,`:root :where(${n})`))}}));const b=Object.entries(a).filter((([e])=>e.startsWith(":")));b?.length&&b.forEach((([e,n])=>{const o=jm(n);if(!o?.length)return;const r=`:root :where(${t.split(",").map((t=>t+e)).join(",")}){${o.join(";")};}`;g+=r}))})),l.layoutStyles&&(g+=".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",g+=".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",g+=".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }"),l.blockGap&&n){const t=fi(e?.styles?.spacing?.blockGap)||"0.5em";g+=`:root :where(.wp-site-blocks) > * { margin-block-start: ${t}; margin-block-end: 0; }`,g+=":root :where(.wp-site-blocks) > :first-child { margin-block-start: 0; }",g+=":root :where(.wp-site-blocks) > :last-child { margin-block-end: 0; }"}return l.presets&&c.forEach((({selector:e,presets:t})=>{rs!==e&&ss!==e||(e="");const n=function(e="*",t={}){return is.reduce(((n,{path:o,cssVarInfix:r,classes:s})=>{if(!s)return n;const i=he(t,o,[]);return["default","theme","custom"].forEach((t=>{i[t]&&i[t].forEach((({slug:t})=>{s.forEach((({classSuffix:o,propertyName:s})=>{const i=`.has-${wm(t)}-${o}`,l=e.split(",").map((e=>`${e}${i}`)).join(","),a=`var(--wp--preset--${r}--${wm(t)})`;n+=`${l}{${s}: ${a} !important;}`}))}))})),n}),"")}(e,t);n.length>0&&(g+=n)})),g};function Lm(e,t){return Rm(e,t).flatMap((({presets:e})=>function(e={}){return is.filter((e=>"duotone"===e.path.at(-1))).flatMap((t=>{const n=he(e,t.path,{});return["default","theme"].filter((e=>n[e])).flatMap((e=>n[e].map((e=>Wg(`wp-duotone-${e.slug}`,e.colors))))).join("")}))}(e)))}const Om=(e,t,n)=>{const o={};return e.forEach((e=>{const r=e.name,s=Kg(e);let i=Kg(e,"filter.duotone");if(!i){const t=Kg(e),n=(0,l.getBlockSupport)(e,"color.__experimentalDuotone",!1);i=n&&ds(t,n)}const a=!!e?.supports?.layout||!!e?.supports?.__experimentalLayout,c=e?.supports?.spacing?.blockGap?.__experimentalDefault,u=t(r),d={};u?.forEach((e=>{const t=n?`-${n}`:"",o=`${e.name}${t}`,r=function(e,t){const n=`.is-style-${e}`;if(!t)return n;const o=/((?::\([^)]+\))?\s*)([^\s:]+)/,r=(e,t,o)=>t+o+n;return t.split(",").map((e=>e.replace(o,r))).join(",")}(o,s);d[o]=r}));const p=((e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;const n={root:t};return Object.entries(Sm).forEach((([t,o])=>{const r=Kg(e,t);r&&(n[o]=r)})),n})(e,s);o[r]={duotoneSelector:i,fallbackGapValue:c,featureSelectors:Object.keys(p).length?p:void 0,hasLayoutSupport:a,name:r,selector:s,styleVariationSelectors:u?.length?d:void 0}})),o};function Dm(e,t){let n="";return e.split("&").forEach((e=>{if(!e.includes("{"))n+=`:root :where(${t}){${e.trim()}}`;else{const o=e.replace("}","").split("{");if(2!==o.length)return;const[r,s]=o,i=r.startsWith(" ")?ds(t,r):function(e,t){return e.includes(",")?e.split(",").map((e=>e+t)).join(","):e+t}(t,r);n+=`:root :where(${i}){${s.trim()}}`}})),n}function zm(e={},t){const[n]=bs("spacing.blockGap");var o,r;o=e,r=e?._links?.["wp:theme-file"],e=o?.styles&&r?(r.forEach((({name:e,href:t,target:n})=>{he(o,n)===e&&(o=function(e,t,n){const o=(t=t.split(".")).pop();let r=e;for(const e of t)r=r[e];return r[o]=n,e}(o,n,t))})),o):o;const s=null!==n,i=!s,u=(0,c.useSelect)((e=>{const{getSettings:t}=e(Gr);return!!t().disableLayoutStyles})),{getBlockStyles:d}=(0,c.useSelect)(l.store);return(0,a.useMemo)((()=>{var n;if(!e?.styles||!e?.settings)return[];const o=(r=e,r.styles?.blocks?.["core/separator"]&&r.styles?.blocks?.["core/separator"].color?.background&&!r.styles?.blocks?.["core/separator"].color?.text&&!r.styles?.blocks?.["core/separator"].border?.color?{...r,styles:{...r.styles,blocks:{...r.styles.blocks,"core/separator":{...r.styles.blocks["core/separator"],color:{...r.styles.blocks["core/separator"].color,text:r.styles?.blocks["core/separator"].color.background}}}}}:r);var r;const a=Om((0,l.getBlockTypes)(),d),c=Nm(o,a),p=Am(o,a,s,i,u,t),h=Lm(o,a),g=[{css:c,isGlobalStyles:!0},{css:p,isGlobalStyles:!0},{css:null!==(n=o.styles.css)&&void 0!==n?n:"",isGlobalStyles:!0},{assets:h,__unstableType:"svg",isGlobalStyles:!0}];return(0,l.getBlockTypes)().forEach((e=>{if(o.styles.blocks[e.name]?.css){const t=a[e.name].selector;g.push({css:Dm(o.styles.blocks[e.name]?.css,t),isGlobalStyles:!0})}})),[g,o.settings]}),[s,i,e,u,t,d])}function Vm(e=!1){const{merged:t}=(0,a.useContext)(hs);return zm(t,e)}const Fm="is-style-";function Hm(e){return e?e.split(/\s+/).reduce(((e,t)=>{if(t.startsWith(Fm)){const n=t.slice(Fm.length);"default"!==n&&e.push(n)}return e}),[]):[]}function Gm({override:e}){Es(e)}function Um(e,t,n){const{merged:o}=(0,a.useContext)(hs),{globalSettings:r,globalStyles:s}=(0,c.useSelect)((e=>{const t=e(Gr).getSettings();return{globalSettings:t.__experimentalFeatures,globalStyles:t[K]}}),[]);return(0,a.useMemo)((()=>{var i,l,a;const c=function(e,t,n){if(!e?.styles?.blocks?.[t]?.variations?.[n])return;const o=t=>{Object.keys(t).forEach((n=>{const r=t[n];if("object"==typeof r&&null!==r)if(void 0!==r.ref)if("string"!=typeof r.ref||""===r.ref.trim())delete t[n];else{const o=he(e,r.ref);o?t[n]=o:delete t[n]}else o(r),0===Object.keys(r).length&&delete t[n]}))},r=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[n]));return o(r),r}({settings:null!==(i=o?.settings)&&void 0!==i?i:r,styles:null!==(l=o?.styles)&&void 0!==l?l:s},e,t);return{settings:null!==(a=o?.settings)&&void 0!==a?a:r,styles:{blocks:{[e]:{variations:{[`${t}-${n}`]:c}}}}}}),[o,r,s,t,n,e])}const $m={hasSupport:()=>!0,attributeKeys:["className"],isMatch:({className:e})=>Hm(e).length>0,useBlockProps:function({name:e,className:t,clientId:n}){const{getBlockStyles:o}=(0,c.useSelect)(l.store),r=function(e,t=[]){const n=Hm(e);if(!n)return null;for(const e of n)if(t.some((t=>t.name===e)))return e;return null}(t,o(e)),s=`${Fm}${r}-${n}`,{settings:i,styles:u}=Um(e,r,n),d=(0,a.useMemo)((()=>{if(!r)return;const e={settings:i,styles:u},t=Om((0,l.getBlockTypes)(),o,n);return Am(e,t,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0})}),[r,i,u,o,n]);return Es({id:`variation-${n}`,css:d,__unstableType:"variation",variation:r,clientId:n}),r?{className:s}:{}}},Wm="layout",{kebabCase:Km}=Q(Ps.privateApis);function Zm(e){return(0,l.hasBlockSupport)(e,"layout")||(0,l.hasBlockSupport)(e,"__experimentalLayout")}function qm(e={},t=""){const{layout:n}=e,{default:o}=(0,l.getBlockSupport)(t,Wm)||{},r=n?.inherit||n?.contentSize||n?.wideSize?{...n,type:"constrained"}:n||o||{},s=[];if(Ks[r?.type||"default"]?.className){const e=Ks[r?.type||"default"]?.className,n=t.split("/"),o=`wp-block-${"core"===n[0]?n.pop():n.join("-")}-${e}`;s.push(e,o)}return(0,c.useSelect)((e=>(r?.inherit||r?.contentSize||"constrained"===r?.type)&&e(Gr).getSettings().__experimentalFeatures?.useRootPaddingAwareAlignments),[r?.contentSize,r?.inherit,r?.type])&&s.push("has-global-padding"),r?.orientation&&s.push(`is-${Km(r.orientation)}`),r?.justifyContent&&s.push(`is-content-justification-${Km(r.justifyContent)}`),r?.flexWrap&&"nowrap"===r.flexWrap&&s.push("is-nowrap"),s}const Ym={shareWithChildBlocks:!0,edit:function({layout:e,setAttributes:t,name:n,clientId:o}){const r=Ts(n),{layout:s}=r,{themeSupportsLayout:i}=(0,c.useSelect)((e=>{const{getSettings:t}=e(Gr);return{themeSupportsLayout:t().supportsLayout}}),[]);if("default"!==Pl())return null;const a=(0,l.getBlockSupport)(n,Wm,{}),u={...s,...a},{allowSwitching:d,allowEditing:p=!0,allowInheriting:h=!0,default:g}=u;if(!p)return null;const m={...a,...e},{type:f,default:{type:b="default"}={}}=m,v=f||b,k=!(!h||v&&"default"!==v&&"constrained"!==v&&!m.inherit),_=e||g||{},{inherit:x=!1,contentSize:y=null}=_;if(("default"===v||"constrained"===v)&&!i)return null;const S=ml(v),w=ml("constrained"),B=!_.type&&(y||x),I=!!x||!!y,j=e=>t({layout:e});return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(oa,{children:(0,U.jsxs)(Ps.PanelBody,{title:(0,C.__)("Layout"),children:[k&&(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(Ps.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__toggle-control",label:(0,C.__)("Inner blocks use content width"),checked:"constrained"===S?.name||I,onChange:()=>t({layout:{type:"constrained"===S?.name||I?"default":"constrained"}}),help:"constrained"===S?.name||I?(0,C.__)("Nested blocks use content width with options for full and wide widths."):(0,C.__)("Nested blocks will fill the width of this container. Toggle to constrain.")})}),!x&&d&&(0,U.jsx)(Xm,{type:v,onChange:e=>t({layout:{type:e}})}),S&&"default"!==S.name&&(0,U.jsx)(S.inspectorControls,{layout:_,onChange:j,layoutBlockSupport:u,name:n,clientId:o}),w&&B&&(0,U.jsx)(w.inspectorControls,{layout:_,onChange:j,layoutBlockSupport:u,name:n,clientId:o})]})}),!x&&S&&(0,U.jsx)(S.toolBarControls,{layout:_,onChange:j,layoutBlockSupport:a,name:n,clientId:o})]})},attributeKeys:["layout"],hasSupport:e=>Zm(e)};function Xm({type:e,onChange:t}){return(0,U.jsx)(Ps.ButtonGroup,{children:gl.map((({name:n,label:o})=>(0,U.jsx)(Ps.Button,{isPressed:e===n,onClick:()=>t(n),children:o},n)))})}function Qm({block:e,props:t,blockGapSupport:n,layoutClasses:o}){const{name:r,attributes:s}=t,i=(0,u.useInstanceId)(e),{layout:a}=s,{default:c}=(0,l.getBlockSupport)(r,Wm)||{},d=a?.inherit||a?.contentSize||a?.wideSize?{...a,type:"constrained"}:a||c||{},p=`wp-container-${Km(r)}-is-layout-`,h=`.${p}${i}`,g=null!==n,m=ml(d?.type||"default"),f=m?.getLayoutStyle?.({blockName:r,selector:h,layout:d,style:s?.style,hasBlockGapSupport:g}),b=ws({[`${p}${i}`]:!!f},o);return Es({css:f}),(0,U.jsx)(e,{...t,__unstableLayoutClassNames:b})}const Jm=(0,u.createHigherOrderComponent)((e=>t=>{const{clientId:n,name:o,attributes:r}=t,s=Zm(o),i=qm(r,o),l=(0,c.useSelect)((e=>{if(!s)return;const{getSettings:t,getBlockSettings:o}=Q(e(Gr)),{disableLayoutStyles:r}=t();if(r)return;const[i]=o(n,"spacing.blockGap");return{blockGapSupport:i}}),[s,n]);return l?(0,U.jsx)(Qm,{block:e,props:t,layoutClasses:i,...l}):(0,U.jsx)(e,{...t,__unstableLayoutClassNames:s?i:void 0})}),"withLayoutStyles");function ef({clientId:e,bounds:t,onChange:n}){const o=Xi(e),r=o?.parentElement;return o&&r?(0,U.jsx)(tf,{clientId:e,bounds:t,blockElement:o,rootBlockElement:r,onChange:n}):null}function tf({clientId:e,bounds:t,blockElement:n,rootBlockElement:o,onChange:r}){const[s,i]=(0,a.useState)(null),[l,c]=(0,a.useState)({top:!1,bottom:!1,left:!1,right:!1});(0,a.useEffect)((()=>{const e=new window.ResizeObserver((()=>{const e=n.getBoundingClientRect(),t=o.getBoundingClientRect();c({top:e.top>t.top,bottom:e.bottom<t.bottom,left:e.left>t.left,right:e.right<t.right})}));return e.observe(n),()=>e.disconnect()}),[n,o]);const u={right:"flex-start",left:"flex-end"},d={top:"flex-end",bottom:"flex-start"},p={display:"flex",justifyContent:"center",alignItems:"center",...u[s]&&{justifyContent:u[s]},...d[s]&&{alignItems:d[s]}};return(0,U.jsx)(ol,{className:"block-editor-grid-item-resizer",clientId:e,__unstablePopoverSlot:"block-toolbar",additionalStyles:p,children:(0,U.jsx)(Ps.ResizableBox,{className:"block-editor-grid-item-resizer__box",size:{width:"100%",height:"100%"},enable:{bottom:l.bottom,bottomLeft:!1,bottomRight:!1,left:l.left,right:l.right,top:l.top,topLeft:!1,topRight:!1},bounds:t,boundsByDirection:!0,onResizeStart:(e,t)=>{i(t),n.ownerDocument.addEventListener("mouseup",(()=>{e.target.dispatchEvent(new Event("mouseup",{bubbles:!0}))}),{once:!0})},onResizeStop:(e,t,s)=>{const i=parseFloat(rl(o,"column-gap")),l=parseFloat(rl(o,"row-gap")),a=nf(rl(o,"grid-template-columns"),i),c=nf(rl(o,"grid-template-rows"),l),u=new window.DOMRect(n.offsetLeft+s.offsetLeft,n.offsetTop+s.offsetTop,s.offsetWidth,s.offsetHeight),d=of(a,u.left)+1,p=of(c,u.top)+1,h=of(a,u.right,"end")+1,g=of(c,u.bottom,"end")+1;r({columnSpan:h-d+1,rowSpan:g-p+1})}})})}function nf(e,t){const n=[];for(const o of e.split(" ")){const e=n[n.length-1],r=e?e.end+t:0,s=r+parseFloat(o);n.push({start:r,end:s})}return n}function of(e,t,n="start"){return e.reduce(((o,r,s)=>Math.abs(r[n]-t)<Math.abs(e[o][n]-t)?s:o),0)}(0,d.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.layout)&&void 0!==t?t:{})||Zm(e)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),(0,d.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",Jm);const rf={useBlockProps:function e({style:t}){var n;const o=(0,c.useSelect)((e=>!e(Gr).getSettings().disableLayoutStyles)),r=null!==(n=t?.layout)&&void 0!==n?n:{},{selfStretch:s,flexSize:i,columnStart:l,rowStart:a,columnSpan:d,rowSpan:p}=r,h=kl()||{},{columnCount:g,minimumColumnWidth:m}=h,f=(0,u.useInstanceId)(e),b=`.wp-container-content-${f}`;let v="";if(o){if("fixed"===s&&i?v=`${b} {\n\t\t\t\tflex-basis: ${i};\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}`:"fill"===s?v=`${b} {\n\t\t\t\tflex-grow: 1;\n\t\t\t}`:l&&d?v=`${b} {\n\t\t\t\tgrid-column: ${l} / span ${d};\n\t\t\t}`:l?v=`${b} {\n\t\t\t\tgrid-column: ${l};\n\t\t\t}`:d&&(v=`${b} {\n\t\t\t\tgrid-column: span ${d};\n\t\t\t}`),(d||l)&&(m||!g)){const e=d?parseInt(d):null,t=l?parseInt(l):null,n=Math.max(e,t);let o=parseFloat(m);isNaN(o)&&(o=12);let r=m?.replace(o,"");["px","rem","em"].includes(r)||(r="rem");v+=`@container (max-width: ${n*o+(n-1)*("px"===r?24:1.5)}${r}) {\n\t\t\t\t${b} {\n\t\t\t\t\tgrid-column: ${d?"1/-1":"auto"};\n\t\t\t\t}\n\t\t\t}`}a&&p?v+=`${b} {\n\t\t\t\tgrid-row: ${a} / span ${p};\n\t\t\t}`:a?v+=`${b} {\n\t\t\t\tgrid-row: ${a};\n\t\t\t}`:p&&(v+=`${b} {\n\t\t\t\tgrid-row: span ${p};\n\t\t\t}`)}if(Es({css:v}),v)return{className:`wp-container-content-${f}`}},edit:function({clientId:e,style:t,setAttributes:n}){const{type:o="default",allowSizingOnChildren:r=!1}=kl()||{},s=(0,c.useSelect)((t=>t(Gr).getBlockRootClientId(e)),[e]),[i,l]=(0,a.useState)();return"grid"!==o?null:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(sl,{clientId:s,contentRef:l}),r&&(0,U.jsx)(ef,{clientId:e,bounds:i,onChange:({columnSpan:e,rowSpan:o})=>{n({style:{...t,layout:{...t?.layout,columnSpan:e,rowSpan:o}}})}})]})},attributeKeys:["style"],hasSupport:()=>!0};function sf(e){return(0,c.useSelect)((t=>{const{getBlocksByClientId:n,getSelectedBlockClientIds:o,isUngroupable:r,isGroupable:s}=t(Gr),{getGroupingBlockName:i,getBlockType:a}=t(l.store),c=e?.length?e:o(),u=n(c),[d]=u,p=1===c.length&&r(c[0]);return{clientIds:c,isGroupable:s(c),isUngroupable:p,blocksSelection:u,groupingBlockName:i(),onUngroup:p&&a(d.name)?.transforms?.ungroup}}),[e])}function lf({clientIds:e,isGroupable:t,isUngroupable:n,onUngroup:o,blocksSelection:r,groupingBlockName:s,onClose:i=(()=>{})}){const{getSelectedBlockClientIds:a}=(0,c.useSelect)(Gr),{replaceBlocks:u}=(0,c.useDispatch)(Gr);if(!t&&!n)return null;const d=a();return(0,U.jsxs)(U.Fragment,{children:[t&&(0,U.jsx)(Ps.MenuItem,{shortcut:d.length>1?la.displayShortcut.primary("g"):void 0,onClick:()=>{(()=>{const t=(0,l.switchToBlockType)(r,s);t&&u(e,t)})(),i()},children:(0,C._x)("Group","verb")}),n&&(0,U.jsx)(Ps.MenuItem,{onClick:()=>{(()=>{let t=r[0].innerBlocks;t.length&&(o&&(t=o(r[0].attributes,r[0].innerBlocks)),u(e,t))})(),i()},children:(0,C._x)("Ungroup","Ungrouping blocks from within a grouping block back into individual blocks within the Editor ")})]})}function af(e){return(0,c.useSelect)((t=>{const{canEditBlock:n,canMoveBlock:o,canRemoveBlock:r,canLockBlockType:s,getBlockName:i,getTemplateLock:l}=t(Gr),a=n(e),c=o(e),u=r(e);return{canEdit:a,canMove:c,canRemove:u,canLock:s(i(e)),isContentLocked:"contentOnly"===l(e),isLocked:!a||!c||!u}}),[e])}const cf=(0,U.jsx)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,U.jsx)(G.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"})}),uf=(0,U.jsx)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,U.jsx)(G.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"})}),df=(0,U.jsx)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,U.jsx)(G.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"})}),pf=["core/block","core/navigation"];function hf(e){return e.remove&&e.move?"all":!(!e.remove||e.move)&&"insert"}function gf({clientId:e,onClose:t}){const[n,o]=(0,a.useState)({move:!1,remove:!1}),{canEdit:r,canMove:s,canRemove:i}=af(e),{allowsEditLocking:d,templateLock:p,hasTemplateLock:h}=(0,c.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:o}=t(Gr),r=n(e),s=(0,l.getBlockType)(r);return{allowsEditLocking:pf.includes(r),templateLock:o(e)?.templateLock,hasTemplateLock:!!s?.attributes?.templateLock}}),[e]),[g,m]=(0,a.useState)(!!p),{updateBlockAttributes:f}=(0,c.useDispatch)(Gr),b=cm(e),v=(0,u.useInstanceId)(gf,"block-editor-block-lock-modal__options-title");(0,a.useEffect)((()=>{o({move:!s,remove:!i,...d?{edit:!r}:{}})}),[r,s,i,d]);const k=Object.values(n).every(Boolean),_=Object.values(n).some(Boolean)&&!k;return(0,U.jsxs)(Ps.Modal,{title:(0,C.sprintf)((0,C.__)("Lock %s"),b.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t,children:[(0,U.jsx)("p",{children:(0,C.__)("Choose specific attributes to restrict or lock all available options.")}),(0,U.jsxs)("form",{onSubmit:o=>{o.preventDefault(),f([e],{lock:n,templateLock:g?hf(n):void 0}),t()},children:[(0,U.jsxs)("div",{role:"group","aria-labelledby":v,className:"block-editor-block-lock-modal__options",children:[(0,U.jsx)(Ps.CheckboxControl,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__options-title",label:(0,U.jsx)("span",{id:v,children:(0,C.__)("Lock all")}),checked:k,indeterminate:_,onChange:e=>o({move:e,remove:e,...d?{edit:e}:{}})}),(0,U.jsxs)("ul",{className:"block-editor-block-lock-modal__checklist",children:[d&&(0,U.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,U.jsx)(Ps.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,C.__)("Restrict editing"),checked:!!n.edit,onChange:e=>o((t=>({...t,edit:e})))}),(0,U.jsx)(Ps.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.edit?df:cf})]}),(0,U.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,U.jsx)(Ps.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,C.__)("Disable movement"),checked:n.move,onChange:e=>o((t=>({...t,move:e})))}),(0,U.jsx)(Ps.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.move?df:cf})]}),(0,U.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,U.jsx)(Ps.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,C.__)("Prevent removal"),checked:n.remove,onChange:e=>o((t=>({...t,remove:e})))}),(0,U.jsx)(Ps.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.remove?df:cf})]})]}),h&&(0,U.jsx)(Ps.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__template-lock",label:(0,C.__)("Apply to all blocks inside"),checked:g,disabled:n.move&&!n.remove,onChange:()=>m(!g)})]}),(0,U.jsxs)(Ps.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,U.jsx)(Ps.FlexItem,{children:(0,U.jsx)(Ps.Button,{variant:"tertiary",onClick:t,children:(0,C.__)("Cancel")})}),(0,U.jsx)(Ps.FlexItem,{children:(0,U.jsx)(Ps.Button,{variant:"primary",type:"submit",children:(0,C.__)("Apply")})})]})]})]})}function mf({clientId:e}){const{canLock:t,isLocked:n}=af(e),[o,r]=(0,a.useReducer)((e=>!e),!1);if(!t)return null;const s=n?(0,C.__)("Unlock"):(0,C.__)("Lock");return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ps.MenuItem,{icon:n?cf:uf,onClick:r,"aria-expanded":o,"aria-haspopup":"dialog",children:s}),o&&(0,U.jsx)(gf,{clientId:e,onClose:r})]})}const ff=()=>{};const bf=(0,u.compose)([(0,c.withSelect)(((e,{clientId:t})=>{const{getBlock:n,getBlockMode:o,getSettings:r}=e(Gr),s=n(t),i=r().codeEditingEnabled;return{mode:o(t),blockType:s?(0,l.getBlockType)(s.name):null,isCodeEditingEnabled:i}})),(0,c.withDispatch)(((e,{onToggle:t=ff,clientId:n})=>({onToggleMode(){e(Gr).toggleBlockMode(n),t()}})))])((function({blockType:e,mode:t,onToggleMode:n,small:o=!1,isCodeEditingEnabled:r=!0}){if(!e||!(0,l.hasBlockSupport)(e,"html",!0)||!r)return null;const s="visual"===t?(0,C.__)("Edit as HTML"):(0,C.__)("Edit visually");return(0,U.jsx)(Ps.MenuItem,{onClick:n,children:!o&&s})}));function vf(e){return 0===e?.trim()?.length}function kf({blockName:e,originalBlockName:t,onClose:n,onSave:o,hasOverridesWarning:r}){const[s,i]=(0,a.useState)(e),l=(0,a.useId)(),c=s!==e,u=s===t,d=vf(s),p=c||u;return(0,U.jsx)(Ps.Modal,{title:(0,C.__)("Rename"),onRequestClose:n,overlayClassName:"block-editor-block-rename-modal",focusOnMount:"firstContentElement",aria:{describedby:l},size:"small",children:(0,U.jsxs)("form",{onSubmit:e=>{e.preventDefault(),p&&(()=>{const e=u||d?(0,C.sprintf)((0,C.__)('Block name reset to: "%s".'),s):(0,C.sprintf)((0,C.__)('Block name changed to: "%s".'),s);(0,Io.speak)(e,"assertive"),o(s),n()})()},children:[(0,U.jsx)("p",{id:l,children:(0,C.__)("Enter a custom name for this block.")}),(0,U.jsxs)(Ps.__experimentalVStack,{spacing:"3",children:[(0,U.jsx)(Ps.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:s,label:(0,C.__)("Block name"),hideLabelFromVision:!0,help:r?(0,C.__)("This block allows overrides. Changing the name can cause problems with content entered into instances of this pattern."):void 0,placeholder:t,onChange:i,onFocus:e=>e.target.select()}),(0,U.jsxs)(Ps.__experimentalHStack,{justify:"right",children:[(0,U.jsx)(Ps.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:n,children:(0,C.__)("Cancel")}),(0,U.jsx)(Ps.Button,{__next40pxDefaultSize:!0,"aria-disabled":!p,variant:"primary",type:"submit",children:(0,C.__)("Save")})]})]})]})})}function _f({clientId:e}){const[t,n]=(0,a.useState)(!1),{metadata:o}=(0,c.useSelect)((t=>{const{getBlockAttributes:n}=t(Gr),o=n(e)?.metadata;return{metadata:o}}),[e]),{updateBlockAttributes:r}=(0,c.useDispatch)(Gr),s=o?.name,i=!!s&&!!o?.bindings&&Object.values(o.bindings).some((e=>"core/pattern-overrides"===e.source));const l=cm(e);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ps.MenuItem,{onClick:()=>{n(!0)},"aria-expanded":t,"aria-haspopup":"dialog",children:(0,C.__)("Rename")}),t&&(0,U.jsx)(kf,{blockName:s||"",originalBlockName:l?.title,hasOverridesWarning:i,onClose:()=>n(!1),onSave:t=>{(t===l?.title||vf(t))&&(t=void 0),function(t){r([e],{metadata:{...o,name:t}})}(t)}})]})}const{Fill:xf,Slot:yf}=(0,Ps.createSlotFill)("BlockSettingsMenuControls");function Sf({...e}){return(0,U.jsx)(Ps.__experimentalStyleProvider,{document,children:(0,U.jsx)(xf,{...e})})}Sf.Slot=({fillProps:e,clientIds:t=null})=>{const{selectedBlocks:n,selectedClientIds:o,isContentOnly:r}=(0,c.useSelect)((e=>{const{getBlockNamesByClientId:n,getSelectedBlockClientIds:o,getBlockEditingMode:r}=e(Gr),s=null!==t?t:o();return{selectedBlocks:n(s),selectedClientIds:s,isContentOnly:"contentOnly"===r(s[0])}}),[t]),{canLock:s}=af(o[0]),{canRename:i}=(a=n[0],{canRename:(0,l.getBlockSupport)(a,"renaming",!0)});var a;const d=1===o.length&&s&&!r,p=1===o.length&&i&&!r,h=sf(o),{isGroupable:g,isUngroupable:m}=h,f=g||m;return(0,U.jsx)(yf,{fillProps:{...e,selectedBlocks:n,selectedClientIds:o},children:t=>!t?.length>0&&!f&&!d?null:(0,U.jsxs)(Ps.MenuGroup,{children:[f&&(0,U.jsx)(lf,{...h,onClose:e?.onClose}),d&&(0,U.jsx)(mf,{clientId:o[0]}),p&&(0,U.jsx)(_f,{clientId:o[0]}),t,e?.canMove&&!e?.onlyBlock&&!r&&(0,U.jsx)(Ps.MenuItem,{onClick:(0,u.pipe)(e?.onClose,e?.onMoveTo),children:(0,C.__)("Move to")}),1===e?.count&&!r&&(0,U.jsx)(bf,{clientId:e?.firstBlockClientId,onToggle:e?.onClose})]})})};const wf=Sf;const Cf={edit:function({clientId:e,isSelected:t}){const{templateLock:n,isLockedByParent:o,isEditingAsBlocks:r}=(0,c.useSelect)((t=>{const{getContentLockingParent:n,getTemplateLock:o,getTemporarilyEditingAsBlocks:r}=Q(t(Gr));return{templateLock:o(e),isLockedByParent:!!n(e),isEditingAsBlocks:r()===e}}),[e]),{stopEditingAsBlocks:s,modifyContentLockBlock:i}=Q((0,c.useDispatch)(Gr)),l=!o&&"contentOnly"===n,u=(0,a.useCallback)((()=>{s(e)}),[e,s]);if(!l&&!r)return null;const d=r&&!l,p=!r&&l&&t;return(0,U.jsxs)(U.Fragment,{children:[d&&(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(zs,{group:"other",children:(0,U.jsx)(Ps.ToolbarButton,{onClick:u,children:(0,C.__)("Done")})})}),p&&(0,U.jsx)(wf,{children:({selectedClientIds:t,onClose:n})=>1===t.length&&t[0]===e&&(0,U.jsx)(Ps.MenuItem,{onClick:()=>{i(e),n()},children:(0,C.__)("Modify")})})]})},hasSupport:()=>!0},Bf="metadata";(0,d.addFilter)("blocks.registerBlockType","core/metadata/addMetaAttribute",(function(e){return e?.attributes?.[Bf]?.type||(e.attributes={...e.attributes,[Bf]:{type:"object"}}),e}));const If=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.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"})});const jf=(0,a.memo)((function({icon:e,showColors:t=!1,className:n,context:o}){"block-default"===e?.src&&(e={src:If});const r=(0,U.jsx)(Ps.Icon,{icon:e&&e.src?e.src:e,context:o}),s=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return(0,U.jsx)("span",{style:s,className:ws("block-editor-block-icon",n,{"has-colors":t}),children:r})})),Ef={};const Tf={edit:function({name:e,clientId:t,metadata:{ignoredHookedBlocks:n=[]}={}}){const o=(0,c.useSelect)((e=>e(l.store).getBlockTypes()),[]),r=(0,a.useMemo)((()=>o?.filter((({name:t,blockHooks:o})=>o&&e in o||n.includes(t)))),[o,e,n]),{blockIndex:s,rootClientId:i,innerBlocksLength:u}=(0,c.useSelect)((e=>{const{getBlocks:n,getBlockIndex:o,getBlockRootClientId:r}=e(Gr);return{blockIndex:o(t),innerBlocksLength:n(t)?.length,rootClientId:r(t)}}),[t]),d=(0,c.useSelect)((n=>{const{getBlocks:o,getGlobalBlockCount:s}=n(Gr),l=r.reduce(((n,r)=>{if(0===s(r.name))return n;const l=r?.blockHooks?.[e];let a;switch(l){case"before":case"after":a=o(i);break;case"first_child":case"last_child":a=o(t);break;case void 0:a=[...o(i),...o(t)]}const c=a?.find((e=>e.name===r.name));return c?{...n,[r.name]:c.clientId}:n}),{});return Object.values(l).length>0?l:Ef}),[r,e,t,i]),{insertBlock:p,removeBlock:h}=(0,c.useDispatch)(Gr);if(!r.length)return null;const g=r.reduce(((e,t)=>{const[n]=t.name.split("/");return e[n]||(e[n]=[]),e[n].push(t),e}),{});return(0,U.jsx)(oa,{children:(0,U.jsxs)(Ps.PanelBody,{className:"block-editor-hooks__block-hooks",title:(0,C.__)("Plugins"),initialOpen:!0,children:[(0,U.jsx)("p",{className:"block-editor-hooks__block-hooks-helptext",children:(0,C.__)("Manage the inclusion of blocks added automatically by plugins.")}),Object.keys(g).map((n=>(0,U.jsxs)(a.Fragment,{children:[(0,U.jsx)("h3",{children:n}),g[n].map((n=>{const o=n.name in d;return(0,U.jsx)(Ps.ToggleControl,{checked:o,label:(0,U.jsxs)(Ps.__experimentalHStack,{justify:"flex-start",children:[(0,U.jsx)(jf,{icon:n.icon}),(0,U.jsx)("span",{children:n.title})]}),onChange:()=>{if(o)h(d[n.name],!1);else{const o=n.blockHooks[e];((e,n)=>{switch(n){case"before":case"after":p(e,"after"===n?s+1:s,i,!1);break;case"first_child":case"last_child":p(e,"first_child"===n?0:u,t,!1);break;case void 0:p(e,s+1,i,!1)}})((0,l.createBlock)(n.name),o)}}},n.title)}))]},n)))]})})},attributeKeys:["metadata"],hasSupport:()=>!0},Mf={"core/paragraph":["content"],"core/heading":["content"],"core/image":["id","url","title","alt"],"core/button":["url","text","linkTarget","rel"]},Pf="__default";function Rf(e){return e in Mf}function Nf(e,t){return Rf(e)&&Mf[e].includes(t)}const Af=(0,u.createHigherOrderComponent)((e=>t=>{const n=(0,c.useRegistry)(),o=(0,c.useSelect)((e=>Q(e(l.store)).getAllBlockBindingsSources())),{name:r,clientId:s,context:i}=t,u=!!t.context["pattern/overrides"],d="core/pattern-overrides"===t.attributes.metadata?.bindings?.[Pf]?.source,p=(0,a.useMemo)((()=>function(e,t){if("core/pattern-overrides"===t?.[Pf]?.source){const n=Mf[e],o={};for(const e of n){const n=t[e]?t[e]:{source:"core/pattern-overrides"};o[e]=n}return o}return t}(r,t.attributes.metadata?.bindings)),[t.attributes.metadata?.bindings,r]),h=(0,c.useSelect)((()=>{if(!p)return;const e={};for(const[t,l]of Object.entries(p)){const a=o[l.source];if(!a?.getValue||!Nf(r,t))continue;const c={registry:n,context:i,clientId:s,attributeName:t,args:l.args};e[t]=a.getValue(c),void 0===e[t]&&(e[t]="url"===t?null:a.getPlaceholder?.(c))}return e}),[p,r,s,i,n,o]),{setAttributes:g}=t,m=(0,a.useCallback)((e=>{n.batch((()=>{if(!p)return void g(e);const t={...e},l=new Map;for(const[e,n]of Object.entries(t)){if(!p[e]||!Nf(r,e))continue;const s=p[e],i=o[s?.source];(i?.setValue||i?.setValues)&&(l.set(i,{...l.get(i),[e]:n}),delete t[e])}if(l.size)for(const[e,t]of l)if(e.setValues)e.setValues({registry:n,context:i,clientId:s,attributes:t});else for(const[o,r]of Object.entries(t)){const t=p[o];e.setValue({registry:n,context:i,clientId:s,attributeName:o,args:t.args,value:r})}d&&u||!Object.keys(t).length||(d&&(delete t?.caption,delete t?.href),g(t))}))}),[n,p,r,s,i,g,o,d,u]);return(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(e,{...t,attributes:{...t.attributes,...h},setAttributes:m})})}),"withBlockBindingSupport");(0,d.addFilter)("blocks.registerBlockType","core/editor/custom-sources-backwards-compatibility/shim-attribute-source",(function(e,t){return Rf(t)?{...e,edit:Af(e.edit)}:e}));const Lf={edit:({name:e,metadata:t})=>{const{bindings:n}=t||{},{sources:o}=(0,c.useSelect)((e=>({sources:Q(e(l.store)).getAllBlockBindingsSources()})),[]);if(!n)return null;const r={...n};return Object.keys(r).forEach((t=>{Nf(e,t)&&"core/pattern-overrides"!==r[t].source||delete r[t]})),0===Object.keys(r).length?null:(0,U.jsx)(oa,{children:(0,U.jsx)(Ps.PanelBody,{title:(0,C.__)("Attributes"),className:"components-panel__block-bindings-panel",children:(0,U.jsx)(Ps.BaseControl,{help:(0,C.__)("Attributes connected to various sources."),children:(0,U.jsx)(Ps.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,size:"large",children:Object.keys(r).map((e=>(0,U.jsx)(Ps.__experimentalItem,{children:(0,U.jsxs)(Ps.__experimentalHStack,{children:[(0,U.jsx)("span",{children:e}),(0,U.jsx)("span",{className:"components-item__block-bindings-source",children:o[r[e].source]?o[r[e].source].label:r[e].source})]})},e)))})})})})},attributeKeys:["metadata"],hasSupport:()=>!0};function Of(e){const t=e.style?.border||{};return{className:Cd(e)||void 0,style:Rg({border:t})}}function Df(e){const{colors:t}=Mu(),n=Of(e),{borderColor:o}=e;if(o){const e=fd({colors:t,namedColor:o});n.style.borderColor=e.color}return n}function zf(e){return{style:Rg({shadow:e.style?.shadow||""})}}function Vf(e){const{backgroundColor:t,textColor:n,gradient:o,style:r}=e,s=Tu("background-color",t),i=Tu("color",n),l=Id(o);return{className:ws(i,l,{[s]:!(l||r?.color?.gradient)&&!!s,"has-text-color":n||r?.color?.text,"has-background":t||r?.color?.background||o||r?.color?.gradient,"has-link-color":r?.elements?.link?.color})||void 0,style:Rg({color:r?.color||{}})}}function Ff(e){const{backgroundColor:t,textColor:n,gradient:o}=e,[r,s,i,l,c,u]=$r("color.palette.custom","color.palette.theme","color.palette.default","color.gradients.custom","color.gradients.theme","color.gradients.default"),d=(0,a.useMemo)((()=>[...r||[],...s||[],...i||[]]),[r,s,i]),p=(0,a.useMemo)((()=>[...l||[],...c||[],...u||[]]),[l,c,u]),h=Vf(e);if(t){const e=ju(d,t);h.style.backgroundColor=e.color}if(o&&(h.style.background=jd(p,o)),n){const e=ju(d,n);h.style.color=e.color}return h}function Hf(e){const{style:t}=e;return{style:Rg({spacing:t?.spacing||{}})}}(0,d.addFilter)("blocks.registerBlockType","core/metadata/addLabelCallback",(function(e){return e.__experimentalLabel||(0,l.hasBlockSupport)(e,"renaming",!0)&&(e.__experimentalLabel=(e,{context:t})=>{const{metadata:n}=e;if("list-view"===t&&n?.name)return n.name}),e}));const{kebabCase:Gf}=Q(Ps.privateApis);function Uf(e,t){let n=e?.style?.typography||{};n={...n,fontSize:ns({size:e?.style?.typography?.fontSize},t)};const o=Rg({typography:n}),r=e?.fontFamily?`has-${Gf(e.fontFamily)}-font-family`:"";return{className:ws(r,e?.style?.typography?.textAlign?`has-text-align-${e?.style?.typography?.textAlign}`:"",bh(e?.fontSize)),style:o}}function $f(e){const[t,n]=(0,a.useState)(e);return(0,a.useEffect)((()=>{e&&n(e)}),[e]),t}function Wf(e=!0){const{__unstableSetEditorMode:t}=(0,c.useDispatch)(Gr),{__unstableGetEditorMode:n}=(0,c.useSelect)(Gr),o=(0,a.useRef)(null),r=n();(0,a.useEffect)((()=>(o.current||(o.current=r),()=>{"zoom-out"===n()&&n()!==o.current&&t(o.current)})),[]),(0,a.useEffect)((()=>{e&&"zoom-out"!==r?t("zoom-out"):e||"zoom-out"!==n()||o.current===r||t(o.current)}),[t,e,r])}var Kf;!function(e){e=e.map((e=>({...e,Edit:(0,a.memo)(e.edit)})));const t=(0,u.createHigherOrderComponent)((t=>n=>{const o=_();return[...e.map(((e,t)=>{const{Edit:r,hasSupport:s,attributeKeys:i=[],shareWithChildBlocks:l}=e;if(!(o[p]||o[h]&&l)||!s(n.name))return null;const a={};for(const e of i)n.attributes[e]&&(a[e]=n.attributes[e]);return(0,U.jsx)(r,{name:n.name,isSelected:n.isSelected,clientId:n.clientId,setAttributes:n.setAttributes,__unstableParentLayout:n.__unstableParentLayout,...a},t)})),(0,U.jsx)(t,{...n},"edit")]}),"withBlockEditHooks");(0,d.addFilter)("editor.BlockEdit","core/editor/hooks",t)}([Lf,Ll,Ph,Uc,Kc,Vg,lm,xm,Ym,Cf,Tf,rf].filter(Boolean)),function(e){const t=(0,u.createHigherOrderComponent)((t=>n=>{const[o,r]=(0,a.useState)(Array(e.length).fill(void 0));return[...e.map(((e,t)=>{const{hasSupport:o,attributeKeys:s=[],useBlockProps:i,isMatch:l}=e,a={};for(const e of s)n.attributes[e]&&(a[e]=n.attributes[e]);return!Object.keys(a).length||!o(n.name)||l&&!l(a)?null:(0,U.jsx)(Ms,{index:t,useBlockProps:i,setAllWrapperProps:r,name:n.name,clientId:n.clientId,...a},t)})),(0,U.jsx)(t,{...n,wrapperProps:o.filter(Boolean).reduce(((e,t)=>({...e,...t,className:ws(e.className,t.className),style:{...e.style,...t.style}})),n.wrapperProps||{})},"edit")]}),"withBlockListBlockHooks");(0,d.addFilter)("editor.BlockListBlock","core/editor/hooks",t)}([Ll,Ph,Fc,Vg,hp,Eg,lm,hh,_h,Bd,xm,$m,rf]),Kf=[Ll,Ph,Uc,Wc,Kc,Bd,hp,Vg,hh,_h],(0,d.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",(function(e,t,n){return Kf.reduce(((e,o)=>{const{hasSupport:r,attributeKeys:s=[],addSaveProps:i}=o,l={};for(const e of s)n[e]&&(l[e]=n[e]);return Object.keys(l).length&&r(t)?i(e,t,l):e}),e)}),0),(0,d.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",(e=>(e.hasOwnProperty("className")&&!e.className&&delete e.className,e)));const{kebabCase:Zf}=Q(Ps.privateApis),qf=([e,...t])=>e.toUpperCase()+t.join(""),Yf=e=>(0,u.createHigherOrderComponent)((t=>n=>(0,U.jsx)(t,{...n,colors:e})),"withCustomColorPalette"),Xf=()=>(0,u.createHigherOrderComponent)((e=>t=>{const[n,o,r]=$r("color.palette.custom","color.palette.theme","color.palette.default"),s=(0,a.useMemo)((()=>[...n||[],...o||[],...r||[]]),[n,o,r]);return(0,U.jsx)(e,{...t,colors:s})}),"withEditorColorPalette");function Qf(e,t){const n=e.reduce(((e,t)=>({...e,..."string"==typeof t?{[t]:Zf(t)}:t})),{});return(0,u.compose)([t,e=>class extends a.Component{constructor(e){super(e),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(e){const{colors:t}=this.props;return function(e,t){const n=_u(t),o=({color:e})=>n.contrast(e),r=Math.max(...e.map(o));return e.find((e=>o(e)===r)).color}(t,e)}createSetters(){return Object.keys(n).reduce(((e,t)=>{const n=qf(t),o=`custom${n}`;return e[`set${n}`]=this.createSetColor(t,o),e}),{})}createSetColor(e,t){return n=>{const o=Eu(this.props.colors,n);this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,colors:t},o){return Object.entries(n).reduce(((n,[r,s])=>{const i=ju(t,e[r],e[`custom${qf(r)}`]),l=o[r],a=l?.color;return a===i.color&&l?n[r]=l:n[r]={...i,class:Tu(s,i.slug)},n}),{})}render(){return(0,U.jsx)(e,{...this.props,colors:void 0,...this.state,...this.setters,colorUtils:this.colorUtils})}}])}function Jf(e){return(...t)=>{const n=Yf(e);return(0,u.createHigherOrderComponent)(Qf(t,n),"withCustomColors")}}function eb(...e){const t=Xf();return(0,u.createHigherOrderComponent)(Qf(e,t),"withColors")}const tb=function(e){const[t,n]=$r("typography.fontSizes","typography.customFontSize");return(0,U.jsx)(Ps.FontSizePicker,{...e,fontSizes:t,disableCustomFontSizes:!n})},nb=[],ob=([e,...t])=>e.toUpperCase()+t.join(""),rb=(...e)=>{const t=e.reduce(((e,t)=>(e[t]=`custom${ob(t)}`,e)),{});return(0,u.createHigherOrderComponent)((0,u.compose)([(0,u.createHigherOrderComponent)((e=>t=>{const[n]=$r("typography.fontSizes");return(0,U.jsx)(e,{...t,fontSizes:n||nb})}),"withFontSizes"),e=>class extends a.Component{constructor(e){super(e),this.setters=this.createSetters(),this.state={}}createSetters(){return Object.entries(t).reduce(((e,[t,n])=>(e[`set${ob(t)}`]=this.createSetFontSize(t,n),e)),{})}createSetFontSize(e,t){return n=>{const o=this.props.fontSizes?.find((({size:e})=>e===Number(n)));this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,fontSizes:n},o){const r=(t,n)=>!o[n]||(e[n]?e[n]!==o[n].slug:o[n].size!==e[t]);if(!Object.values(t).some(r))return null;const s=Object.entries(t).filter((([e,t])=>r(t,e))).reduce(((t,[o,r])=>{const s=e[o],i=mh(n,s,e[r]);return t[o]={...i,class:bh(s)},t}),{});return{...o,...s}}render(){return(0,U.jsx)(e,{...this.props,fontSizes:void 0,...this.state,...this.setters})}}]),"withFontSizes")};var sb=n(9681),ib=n.n(sb);function lb(e){return e.toLowerCase()}var ab=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],cb=/[^A-Z0-9]+/gi;function ub(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}const db=e=>e.name||"",pb=e=>e.title,hb=e=>e.description||"",gb=e=>e.keywords||[],mb=e=>e.category,fb=()=>null,bb=[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],vb=/(\p{C}|\p{P}|\p{S})+/giu,kb=new Map,_b=new Map;function xb(e=""){if(kb.has(e))return kb.get(e);const t=function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,o=void 0===n?ab:n,r=t.stripRegexp,s=void 0===r?cb:r,i=t.transform,l=void 0===i?lb:i,a=t.delimiter,c=void 0===a?" ":a,u=ub(ub(e,o,"$1\0$2"),s,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(l).join(c)}(e,{splitRegexp:bb,stripRegexp:vb}).split(" ").filter(Boolean);return kb.set(e,t),t}function yb(e=""){if(_b.has(e))return _b.get(e);let t=ib()(e);return t=t.replace(/^\//,""),t=t.toLowerCase(),_b.set(e,t),t}const Sb=(e="")=>xb(yb(e)),wb=(e,t,n,o)=>{if(0===Sb(o).length)return e;return Cb(e,o,{getCategory:e=>t.find((({slug:t})=>t===e.category))?.title,getCollection:e=>n[e.name.split("/")[0]]?.title})},Cb=(e=[],t="",n={})=>{if(0===Sb(t).length)return e;const o=e.map((e=>[e,Bb(e,t,n)])).filter((([,e])=>e>0));return o.sort((([,e],[,t])=>t-e)),o.map((([e])=>e))};function Bb(e,t,n={}){const{getName:o=db,getTitle:r=pb,getDescription:s=hb,getKeywords:i=gb,getCategory:l=mb,getCollection:a=fb}=n,c=o(e),u=r(e),d=s(e),p=i(e),h=l(e),g=a(e),m=yb(t),f=yb(u);let b=0;if(m===f)b+=30;else if(f.startsWith(m))b+=20;else{const e=[c,u,d,...p,h,g].join(" ");0===((e,t)=>e.filter((e=>!Sb(t).some((t=>t.includes(e))))))(xb(m),e).length&&(b+=10)}if(0!==b&&c.startsWith("core/")){b+=c!==e.id?1:2}return b}const Ib=(e,t,n)=>{const o=(0,a.useMemo)((()=>({[ee]:!n})),[n]),[r]=(0,c.useSelect)((t=>[t(Gr).getInserterItems(e,o)]),[e,o]),[s,i]=(0,c.useSelect)((e=>{const{getCategories:t,getCollections:n}=e(l.store);return[t(),n()]}),[]);return[r,s,i,(0,a.useCallback)((({name:e,initialAttributes:n,innerBlocks:o,syncStatus:r,content:s,rootClientId:i},a)=>{const c="unsynced"===r?(0,l.parse)(s,{__unstableSkipMigrationLogs:!0}):(0,l.createBlock)(e,n,(0,l.createBlocksFromInnerBlocksTemplate)(o));t(c,void 0,a,i)}),[t])]},jb=(e,t)=>t?(e.sort((({id:e},{id:n})=>{let o=t.indexOf(e),r=t.indexOf(n);return o<0&&(o=t.length),r<0&&(r=t.length),o-r})),e):e,Eb=()=>{};const Tb={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockName:n,prioritizedBlocks:o}=(0,c.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockName:n,getBlockListSettings:o,getBlockRootClientId:r}=e(Gr),s=t(),i=r(s);return{selectedBlockName:s?n(s):null,rootClientId:i,prioritizedBlocks:o(i)?.prioritizedInserterBlocks}}),[]),[r,s,i]=Ib(t,Eb),l=(0,a.useMemo)((()=>(e.trim()?wb(r,s,i,e):jb(ie(r,"frecency","desc"),o)).filter((e=>e.name!==n)).slice(0,9)),[e,n,r,s,i,o]);return[(0,a.useMemo)((()=>l.map((e=>{const{title:t,icon:n,isDisabled:o}=e;return{key:`block-${e.id}`,value:e,label:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(jf,{icon:n,showColors:!0},"icon"),t]}),isDisabled:o}}))),[l])]},allowContext:(e,t)=>!(/\S/.test(e)||/\S/.test(t)),getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o,syncStatus:r,content:s}=e;return{action:"replace",value:"unsynced"===r?(0,l.parse)(s,{__unstableSkipMigrationLogs:!0}):(0,l.createBlock)(t,n,(0,l.createBlocksFromInnerBlocksTemplate)(o))}}},Mb=window.wp.apiFetch;var Pb=n.n(Mb);const Rb=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})});const Nb={name:"links",className:"block-editor-autocompleters__link",triggerPrefix:"[[",options:async e=>{let t=await Pb()({path:(0,ra.addQueryArgs)("/wp/v2/search",{per_page:10,search:e,type:"post",order_by:"menu_order"})});return t=t.filter((e=>""!==e.title)),t},getOptionKeywords:e=>[...e.title.split(/\s+/)],getOptionLabel:e=>(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Hi,{icon:"page"===e.subtype?Ia:Rb},"icon"),e.title]}),getOptionCompletion:e=>(0,U.jsx)("a",{href:e.url,children:e.title})},Ab=[];function Lb({completers:e=Ab}){const{name:t}=_();return(0,a.useMemo)((()=>{let n=[...e,Nb];return(t===(0,l.getDefaultBlockName)()||(0,l.getBlockSupport)(t,"__experimentalSlashInserter",!1))&&(n=[...n,Tb]),(0,d.hasFilter)("editor.Autocomplete.completers")&&(n===e&&(n=n.map((e=>({...e})))),n=(0,d.applyFilters)("editor.Autocomplete.completers",n,t)),n}),[e,t])}const Ob=function(e){return(0,U.jsx)(Ps.Autocomplete,{...e,completers:Lb(e)})},Db=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})});const zb=function({isActive:e,label:t=(0,C.__)("Toggle full height"),onToggle:n,isDisabled:o}){return(0,U.jsx)(Ps.ToolbarButton,{isActive:e,icon:Db,label:t,onClick:()=>n(!e),disabled:o})},Vb=()=>{};const Fb=function(e){const{label:t=(0,C.__)("Change matrix alignment"),onChange:n=Vb,value:o="center",isDisabled:r}=e,s=(0,U.jsx)(Ps.__experimentalAlignmentMatrixControl.Icon,{value:o});return(0,U.jsx)(Ps.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({onToggle:e,isOpen:n})=>(0,U.jsx)(Ps.ToolbarButton,{onClick:e,"aria-haspopup":"true","aria-expanded":n,onKeyDown:t=>{n||t.keyCode!==la.DOWN||(t.preventDefault(),e())},label:t,icon:s,showTooltip:!0,disabled:r}),renderContent:()=>(0,U.jsx)(Ps.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:n,value:o})})};function Hb({clientId:e,maximumLength:t,context:n}){const o=(0,c.useSelect)((t=>{if(!e)return null;const{getBlockName:o,getBlockAttributes:r}=t(Gr),{getBlockType:s,getActiveBlockVariation:i}=t(l.store),a=o(e),c=s(a);if(!c)return null;const u=r(e),d=(0,l.__experimentalGetBlockLabel)(c,u,n);if(d!==c.title)return d;const p=i(a,u);return p?.title||c.title}),[e,n]);if(!o)return null;if(t&&t>0&&o.length>t){const e="...";return o.slice(0,t-e.length)+e}return o}function Gb({clientId:e,maximumLength:t,context:n}){return Hb({clientId:e,maximumLength:t,context:n})}const Ub=function({rootLabelText:e}){const{selectBlock:t,clearSelectedBlock:n}=(0,c.useDispatch)(Gr),{clientId:o,parents:r,hasSelection:s}=(0,c.useSelect)((e=>{const{getSelectionStart:t,getSelectedBlockClientId:n,getEnabledBlockParents:o}=Q(e(Gr)),r=n();return{parents:o(r),clientId:r,hasSelection:!!t().clientId}}),[]),i=e||(0,C.__)("Document");return(0,U.jsxs)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":(0,C.__)("Block breadcrumb"),children:[(0,U.jsxs)("li",{className:s?void 0:"block-editor-block-breadcrumb__current","aria-current":s?void 0:"true",children:[s&&(0,U.jsx)(Ps.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:n,children:i}),!s&&i,!!o&&(0,U.jsx)(Hi,{icon:va,className:"block-editor-block-breadcrumb__separator"})]}),r.map((e=>(0,U.jsxs)("li",{children:[(0,U.jsx)(Ps.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:()=>t(e),children:(0,U.jsx)(Gb,{clientId:e,maximumLength:35})}),(0,U.jsx)(Hi,{icon:va,className:"block-editor-block-breadcrumb__separator"})]},e))),!!o&&(0,U.jsx)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true",children:(0,U.jsx)(Gb,{clientId:o,maximumLength:35})})]})};function $b(e){return(0,c.useSelect)((t=>{const{__unstableHasActiveBlockOverlayActive:n}=t(Gr);return n(e)}),[e])}const Wb=(0,a.createContext)({});function Kb({value:e,children:t}){const n=(0,a.useContext)(Wb),o=(0,a.useMemo)((()=>({...n,...e})),[n,e]);return(0,U.jsx)(Wb.Provider,{value:o,children:t})}const Zb=Wb,qb={},Yb=(0,Ps.withFilters)("editor.BlockEdit")((e=>{const{name:t}=e,n=(0,l.getBlockType)(t);if(!n)return null;const o=n.edit||n.save;return(0,U.jsx)(o,{...e})})),Xb=e=>{const{attributes:t={},name:n}=e,o=(0,l.getBlockType)(n),r=(0,a.useContext)(Zb),s=(0,a.useMemo)((()=>o&&o.usesContext?Object.fromEntries(Object.entries(r).filter((([e])=>o.usesContext.includes(e)))):qb),[o,r]);if(!o)return null;if(o.apiVersion>1)return(0,U.jsx)(Yb,{...e,context:s});const i=(0,l.hasBlockSupport)(o,"className",!0)?(0,l.getBlockDefaultClassName)(n):null,c=ws(i,t.className,e.className);return(0,U.jsx)(Yb,{...e,context:s,className:c})},Qb=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});const Jb=function({className:e,actions:t,children:n,secondaryActions:o}){return(0,U.jsx)("div",{style:{display:"contents",all:"initial"},children:(0,U.jsx)("div",{className:ws(e,"block-editor-warning"),children:(0,U.jsxs)("div",{className:"block-editor-warning__contents",children:[(0,U.jsx)("p",{className:"block-editor-warning__message",children:n}),(a.Children.count(t)>0||o)&&(0,U.jsxs)("div",{className:"block-editor-warning__actions",children:[a.Children.count(t)>0&&a.Children.map(t,((e,t)=>(0,U.jsx)("span",{className:"block-editor-warning__action",children:e},t))),o&&(0,U.jsx)(Ps.DropdownMenu,{className:"block-editor-warning__secondary",icon:Qb,label:(0,C.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0,children:()=>(0,U.jsx)(Ps.MenuGroup,{children:o.map(((e,t)=>(0,U.jsx)(Ps.MenuItem,{onClick:e.onClick,children:e.title},t)))})})]})]})})})};function ev({originalBlockClientId:e,name:t,onReplace:n}){const{selectBlock:o}=(0,c.useDispatch)(Gr),r=(0,l.getBlockType)(t);return(0,U.jsxs)(Jb,{actions:[(0,U.jsx)(Ps.Button,{variant:"secondary",onClick:()=>o(e),children:(0,C.__)("Find original")},"find-original"),(0,U.jsx)(Ps.Button,{variant:"secondary",onClick:()=>n([]),children:(0,C.__)("Remove")},"remove")],children:[(0,U.jsxs)("strong",{children:[r?.title,": "]}),(0,C.__)("This block can only be used once.")]})}const tv=(0,a.createContext)({});function nv({mayDisplayControls:e,mayDisplayParentControls:t,blockEditingMode:n,isPreviewMode:o,...r}){const{name:s,isSelected:i,clientId:c,attributes:u={},__unstableLayoutClassNames:d}=r,{layout:b=null,metadata:v={}}=u,{bindings:_}=v,x=(0,l.hasBlockSupport)(s,"layout",!1)||(0,l.hasBlockSupport)(s,"__experimentalLayout",!1),{originalBlockClientId:y}=(0,a.useContext)(tv);return(0,U.jsxs)(k,{value:(0,a.useMemo)((()=>({name:s,isSelected:i,clientId:c,layout:x?b:null,__unstableLayoutClassNames:d,[p]:e,[h]:t,[g]:n,[m]:_,[f]:o})),[s,i,c,x,b,d,e,t,n,_,o]),children:[(0,U.jsx)(Xb,{...r}),y&&(0,U.jsx)(ev,{originalBlockClientId:y,name:s,onReplace:r.onReplace})]})}var ov=n(8021);function rv({title:e,rawContent:t,renderedContent:n,action:o,actionText:r,className:s}){return(0,U.jsxs)("div",{className:s,children:[(0,U.jsxs)("div",{className:"block-editor-block-compare__content",children:[(0,U.jsx)("h2",{className:"block-editor-block-compare__heading",children:e}),(0,U.jsx)("div",{className:"block-editor-block-compare__html",children:t}),(0,U.jsx)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor",children:(0,U.jsx)(a.RawHTML,{children:(0,sa.safeHTML)(n)})})]}),(0,U.jsx)("div",{className:"block-editor-block-compare__action",children:(0,U.jsx)(Ps.Button,{variant:"secondary",tabIndex:"0",onClick:o,children:r})})]})}const sv=function({block:e,onKeep:t,onConvert:n,convertor:o,convertButtonText:r}){const s=(i=o(e),(Array.isArray(i)?i:[i]).map((e=>(0,l.getSaveContent)(e.name,e.attributes,e.innerBlocks))).join(""));var i;const a=(c=e.originalContent,u=s,(0,ov.JJ)(c,u).map(((e,t)=>{const n=ws({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return(0,U.jsx)("span",{className:n,children:e.value},t)})));var c,u;return(0,U.jsxs)("div",{className:"block-editor-block-compare__wrapper",children:[(0,U.jsx)(rv,{title:(0,C.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:(0,C.__)("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),(0,U.jsx)(rv,{title:(0,C.__)("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:r,rawContent:a,renderedContent:s})]})},iv=e=>(0,l.rawHandler)({HTML:e.originalContent});function lv({clientId:e}){const{block:t,canInsertHTMLBlock:n,canInsertClassicBlock:o}=(0,c.useSelect)((t=>{const{canInsertBlockType:n,getBlock:o,getBlockRootClientId:r}=t(Gr),s=r(e);return{block:o(e),canInsertHTMLBlock:n("core/html",s),canInsertClassicBlock:n("core/freeform",s)}}),[e]),{replaceBlock:r}=(0,c.useDispatch)(Gr),[s,i]=(0,a.useState)(!1),u=(0,a.useCallback)((()=>i(!1)),[]),d=(0,a.useMemo)((()=>({toClassic(){const e=(0,l.createBlock)("core/freeform",{content:t.originalContent});return r(t.clientId,e)},toHTML(){const e=(0,l.createBlock)("core/html",{content:t.originalContent});return r(t.clientId,e)},toBlocks(){const e=iv(t);return r(t.clientId,e)},toRecoveredBlock(){const e=(0,l.createBlock)(t.name,t.attributes,t.innerBlocks);return r(t.clientId,e)}})),[t,r]),p=(0,a.useMemo)((()=>[{title:(0,C._x)("Resolve","imperative verb"),onClick:()=>i(!0)},n&&{title:(0,C.__)("Convert to HTML"),onClick:d.toHTML},o&&{title:(0,C.__)("Convert to Classic Block"),onClick:d.toClassic}].filter(Boolean)),[n,o,d]);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Jb,{actions:[(0,U.jsx)(Ps.Button,{onClick:d.toRecoveredBlock,variant:"primary",children:(0,C.__)("Attempt Block Recovery")},"recover")],secondaryActions:p,children:(0,C.__)("This block contains unexpected or invalid content.")}),s&&(0,U.jsx)(Ps.Modal,{title:(0,C.__)("Resolve Block"),onRequestClose:u,className:"block-editor-block-compare",children:(0,U.jsx)(sv,{block:t,onKeep:d.toHTML,onConvert:d.toBlocks,convertor:iv,convertButtonText:(0,C.__)("Convert to Blocks")})})]})}const av=(0,U.jsx)(Jb,{className:"block-editor-block-list__block-crash-warning",children:(0,C.__)("This block has encountered an error and cannot be previewed.")}),cv=()=>av;class uv extends a.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}const dv=uv;var pv=n(4132);const hv=function({clientId:e}){const[t,n]=(0,a.useState)(""),o=(0,c.useSelect)((t=>t(Gr).getBlock(e)),[e]),{updateBlock:r}=(0,c.useDispatch)(Gr);return(0,a.useEffect)((()=>{n((0,l.getBlockContent)(o))}),[o]),(0,U.jsx)(pv.A,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:()=>{const s=(0,l.getBlockType)(o.name);if(!s)return;const i=(0,l.getBlockAttributes)(s,t,o.attributes),a=t||(0,l.getSaveContent)(s,i),[c]=t?(0,l.validateBlock)({...o,attributes:i,originalContent:a}):[!0];r(e,{attributes:i,originalContent:a,isValid:c}),t||n(a)},onChange:e=>n(e.target.value)})};var gv=Tv(),mv=e=>Bv(e,gv),fv=Tv();mv.write=e=>Bv(e,fv);var bv=Tv();mv.onStart=e=>Bv(e,bv);var vv=Tv();mv.onFrame=e=>Bv(e,vv);var kv=Tv();mv.onFinish=e=>Bv(e,kv);var _v=[];mv.setTimeout=(e,t)=>{let n=mv.now()+t,o=()=>{let e=_v.findIndex((e=>e.cancel==o));~e&&_v.splice(e,1),wv-=~e?1:0},r={time:n,handler:e,cancel:o};return _v.splice(xv(n),0,r),wv+=1,Iv(),r};var xv=e=>~(~_v.findIndex((t=>t.time>e))||~_v.length);mv.cancel=e=>{bv.delete(e),vv.delete(e),kv.delete(e),gv.delete(e),fv.delete(e)},mv.sync=e=>{Cv=!0,mv.batchedUpdates(e),Cv=!1},mv.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...e){t=e,mv.onStart(n)}return o.handler=e,o.cancel=()=>{bv.delete(n),t=null},o};var yv=typeof window<"u"?window.requestAnimationFrame:()=>{};mv.use=e=>yv=e,mv.now=typeof performance<"u"?()=>performance.now():Date.now,mv.batchedUpdates=e=>e(),mv.catch=console.error,mv.frameLoop="always",mv.advance=()=>{"demand"!==mv.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ev()};var Sv=-1,wv=0,Cv=!1;function Bv(e,t){Cv?(t.delete(e),e(0)):(t.add(e),Iv())}function Iv(){Sv<0&&(Sv=0,"demand"!==mv.frameLoop&&yv(jv))}function jv(){~Sv&&(yv(jv),mv.batchedUpdates(Ev))}function Ev(){let e=Sv;Sv=mv.now();let t=xv(Sv);t&&(Mv(_v.splice(0,t),(e=>e.handler())),wv-=t),wv?(bv.flush(),gv.flush(e?Math.min(64,Sv-e):16.667),vv.flush(),fv.flush(),kv.flush()):Sv=-1}function Tv(){let e=new Set,t=e;return{add(n){wv+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(wv-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,wv-=t.size,Mv(t,(t=>t(n)&&e.add(t))),wv+=e.size,t=e)}}}function Mv(e,t){e.forEach((e=>{try{t(e)}catch(e){mv.catch(e)}}))}var Pv=Object.defineProperty,Rv={};function Nv(){}((e,t)=>{for(var n in t)Pv(e,n,{get:t[n],enumerable:!0})})(Rv,{assign:()=>Zv,colors:()=>$v,createStringInterpolator:()=>Fv,skipAnimation:()=>Wv,to:()=>Hv,willAdvance:()=>Kv});var Av={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function Lv(e,t){if(Av.arr(e)){if(!Av.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Ov=(e,t)=>e.forEach(t);function Dv(e,t,n){if(Av.arr(e))for(let o=0;o<e.length;o++)t.call(n,e[o],`${o}`);else for(let o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}var zv=e=>Av.und(e)?[]:Av.arr(e)?e:[e];function Vv(e,t){if(e.size){let n=Array.from(e);e.clear(),Ov(n,t)}}var Fv,Hv,Gv=(e,...t)=>Vv(e,(e=>e(...t))),Uv=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),$v=null,Wv=!1,Kv=Nv,Zv=e=>{e.to&&(Hv=e.to),e.now&&(mv.now=e.now),void 0!==e.colors&&($v=e.colors),null!=e.skipAnimation&&(Wv=e.skipAnimation),e.createStringInterpolator&&(Fv=e.createStringInterpolator),e.requestAnimationFrame&&mv.use(e.requestAnimationFrame),e.batchedUpdates&&(mv.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Kv=e.willAdvance),e.frameLoop&&(mv.frameLoop=e.frameLoop)},qv=new Set,Yv=[],Xv=[],Qv=0,Jv={get idle(){return!qv.size&&!Yv.length},start(e){Qv>e.priority?(qv.add(e),mv.onStart(ek)):(tk(e),mv(ok))},advance:ok,sort(e){if(Qv)mv.onFrame((()=>Jv.sort(e)));else{let t=Yv.indexOf(e);~t&&(Yv.splice(t,1),nk(e))}},clear(){Yv=[],qv.clear()}};function ek(){qv.forEach(tk),qv.clear(),mv(ok)}function tk(e){Yv.includes(e)||nk(e)}function nk(e){Yv.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(Yv,(t=>t.priority>e.priority)),0,e)}function ok(e){let t=Xv;for(let n=0;n<Yv.length;n++){let o=Yv[n];Qv=o.priority,o.idle||(Kv(o),o.advance(e),o.idle||t.push(o))}return Qv=0,(Xv=Yv).length=0,(Yv=t).length>0}var rk="[-+]?\\d*\\.?\\d+",sk=rk+"%";function ik(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var lk=new RegExp("rgb"+ik(rk,rk,rk)),ak=new RegExp("rgba"+ik(rk,rk,rk,rk)),ck=new RegExp("hsl"+ik(rk,sk,sk)),uk=new RegExp("hsla"+ik(rk,sk,sk,rk)),dk=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,pk=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hk=/^#([0-9a-fA-F]{6})$/,gk=/^#([0-9a-fA-F]{8})$/;function mk(e,t,n){return n<0&&(n+=1),n>1&&(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 fk(e,t,n){let o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,s=mk(r,o,e+1/3),i=mk(r,o,e),l=mk(r,o,e-1/3);return Math.round(255*s)<<24|Math.round(255*i)<<16|Math.round(255*l)<<8}function bk(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function vk(e){return(parseFloat(e)%360+360)%360/360}function kk(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function _k(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function xk(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=hk.exec(e))?parseInt(t[1]+"ff",16)>>>0:$v&&void 0!==$v[e]?$v[e]:(t=lk.exec(e))?(bk(t[1])<<24|bk(t[2])<<16|bk(t[3])<<8|255)>>>0:(t=ak.exec(e))?(bk(t[1])<<24|bk(t[2])<<16|bk(t[3])<<8|kk(t[4]))>>>0:(t=dk.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=gk.exec(e))?parseInt(t[1],16)>>>0:(t=pk.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ck.exec(e))?(255|fk(vk(t[1]),_k(t[2]),_k(t[3])))>>>0:(t=uk.exec(e))?(fk(vk(t[1]),_k(t[2]),_k(t[3]))|kk(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}var yk=(e,t,n)=>{if(Av.fun(e))return e;if(Av.arr(e))return yk({range:e,output:t,extrapolate:n});if(Av.str(e.output[0]))return Fv(e);let o=e,r=o.output,s=o.range||[0,1],i=o.extrapolateLeft||o.extrapolate||"extend",l=o.extrapolateRight||o.extrapolate||"extend",a=o.easing||(e=>e);return e=>{let t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,s);return function(e,t,n,o,r,s,i,l,a){let c=a?a(e):e;if(c<t){if("identity"===i)return c;"clamp"===i&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t),c=s(c),o===-1/0?c=-c:r===1/0?c+=o:c=c*(r-o)+o,c)}(e,s[t],s[t+1],r[t],r[t+1],a,i,l,o.map)}};var Sk=1.70158,wk=1.525*Sk,Ck=Sk+1,Bk=2*Math.PI/3,Ik=2*Math.PI/4.5,jk=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Ek={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Ck*e*e*e-Sk*e*e,easeOutBack:e=>1+Ck*Math.pow(e-1,3)+Sk*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(2*(wk+1)*e-wk)/2:(Math.pow(2*e-2,2)*((wk+1)*(2*e-2)+wk)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Bk),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Bk)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Ik)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Ik)/2+1,easeInBounce:e=>1-jk(1-e),easeOutBounce:jk,easeInOutBounce:e=>e<.5?(1-jk(1-2*e))/2:(1+jk(2*e-1))/2,steps:(e,t="end")=>n=>{let o=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(o):Math.ceil(o))/e)}},Tk=Symbol.for("FluidValue.get"),Mk=Symbol.for("FluidValue.observers"),Pk=e=>Boolean(e&&e[Tk]),Rk=e=>e&&e[Tk]?e[Tk]():e,Nk=e=>e[Mk]||null;function Ak(e,t){let n=e[Mk];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var Lk=class{[Tk];[Mk];constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ok(this,e)}},Ok=(e,t)=>Fk(e,Tk,t);function Dk(e,t){if(e[Tk]){let n=e[Mk];n||Fk(e,Mk,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function zk(e,t){let n=e[Mk];if(n&&n.has(t)){let o=n.size-1;o?n.delete(t):e[Mk]=null,e.observerRemoved&&e.observerRemoved(o,t)}}var Vk,Fk=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Hk=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Gk=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Uk=new RegExp(`(${Hk.source})(%|[a-z]+)`,"i"),$k=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Wk=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Kk=e=>{let[t,n]=Zk(e);if(!t||Uv())return e;let o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(n&&n.startsWith("--")){return window.getComputedStyle(document.documentElement).getPropertyValue(n)||e}return n&&Wk.test(n)?Kk(n):n||e},Zk=e=>{let t=Wk.exec(e);if(!t)return[,];let[,n,o]=t;return[n,o]},qk=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,Yk=e=>{Vk||(Vk=$v?new RegExp(`(${Object.keys($v).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map((e=>Rk(e).replace(Wk,Kk).replace(Gk,xk).replace(Vk,xk))),n=t.map((e=>e.match(Hk).map(Number))),o=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>yk({...e,output:t})));return e=>{let n=!Uk.test(t[0])&&t.find((e=>Uk.test(e)))?.replace(Hk,""),r=0;return t[0].replace(Hk,(()=>`${o[r++](e)}${n||""}`)).replace($k,qk)}},Xk="react-spring: ",Qk=e=>{let t=e,n=!1;if("function"!=typeof t)throw new TypeError(`${Xk}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Jk=Qk(console.warn);Qk(console.warn);function e_(e){return Av.str(e)&&("#"==e[0]||/\d/.test(e)||!Uv()&&Wk.test(e)||e in($v||{}))}new WeakMap;new Set,new WeakMap,new WeakMap,new WeakMap;var t_=Uv()?_a.useEffect:_a.useLayoutEffect;function n_(){let e=(0,_a.useState)()[1],t=(()=>{let e=(0,_a.useRef)(!1);return t_((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var o_=[];var r_=Symbol.for("Animated:node"),s_=e=>e&&e[r_],i_=(e,t)=>((e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}))(e,r_,t),l_=e=>e&&e[r_]&&e[r_].getPayload(),a_=class{payload;constructor(){i_(this,this)}getPayload(){return this.payload||[]}},c_=class extends a_{constructor(e){super(),this._value=e,Av.num(this._value)&&(this.lastPosition=this._value)}done=!0;elapsedTime;lastPosition;lastVelocity;v0;durationProgress=0;static create(e){return new c_(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Av.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,Av.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},u_=class extends c_{_string=null;_toString;constructor(e){super(0),this._toString=yk({output:[e,e]})}static create(e){return new u_(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(Av.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=yk({output:[this.getValue(),e]})),this._value=0,super.reset()}},d_={dependencies:null},p_=class extends a_{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return Dv(this.source,((n,o)=>{(e=>!!e&&e[r_]===e)(n)?t[o]=n.getValue(e):Pk(n)?t[o]=Rk(n):e||(t[o]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ov(this.payload,(e=>e.reset()))}_makePayload(e){if(e){let t=new Set;return Dv(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){d_.dependencies&&Pk(e)&&d_.dependencies.add(e);let t=l_(e);t&&Ov(t,(e=>this.add(e)))}},h_=class extends p_{constructor(e){super(e)}static create(e){return new h_(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){let t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(g_)),!0)}};function g_(e){return(e_(e)?u_:c_).create(e)}function m_(e){let t=s_(e);return t?t.constructor:Av.arr(e)?h_:e_(e)?u_:c_}var f_=(e,t)=>{let n=!Av.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,_a.forwardRef)(((o,r)=>{let s=(0,_a.useRef)(null),i=n&&(0,_a.useCallback)((e=>{s.current=function(e,t){return e&&(Av.fun(e)?e(t):e.current=t),t}(r,e)}),[r]),[l,a]=function(e,t){let n=new Set;return d_.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new p_(e),d_.dependencies=null,[e,n]}(o,t),c=n_(),u=()=>{let e=s.current;n&&!e||!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&c()},d=new b_(u,a),p=(0,_a.useRef)();t_((()=>(p.current=d,Ov(a,(e=>Dk(e,d))),()=>{p.current&&(Ov(p.current.deps,(e=>zk(e,p.current))),mv.cancel(p.current.update))}))),(0,_a.useEffect)(u,[]),(e=>{(0,_a.useEffect)(e,o_)})((()=>()=>{let e=p.current;Ov(e.deps,(t=>zk(t,e)))}));let h=t.getComponentProps(l.getValue());return _a.createElement(e,{...h,ref:i})}))},b_=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&mv.write(this.update)}};var v_=Symbol.for("AnimatedComponent"),k_=e=>Av.str(e)?e:e&&Av.str(e.displayName)?e.displayName:Av.fun(e)&&e.name||null;function __(e,...t){return Av.fun(e)?e(...t):e}var x_=(e,t)=>!0===e||!!(t&&e&&(Av.fun(e)?e(t):zv(e).includes(t))),y_=(e,t)=>Av.obj(e)?t&&e[t]:e,S_=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,w_=e=>e,C_=(e,t=w_)=>{let n=B_;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));let o={};for(let r of n){let n=t(e[r],r);Av.und(n)||(o[r]=n)}return o},B_=["config","onProps","onStart","onChange","onPause","onResume","onRest"],I_={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function j_(e){let t=function(e){let t={},n=0;if(Dv(e,((e,o)=>{I_[o]||(t[o]=e,n++)})),n)return t}(e);if(t){let n={to:t};return Dv(e,((e,o)=>o in t||(n[o]=e))),n}return{...e}}function E_(e){return e=Rk(e),Av.arr(e)?e.map(E_):e_(e)?Rv.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function T_(e){return Av.fun(e)||Av.arr(e)&&Av.obj(e[0])}var M_={tension:170,friction:26,mass:1,damping:1,easing:Ek.linear,clamp:!1},P_=class{tension;friction;frequency;damping;mass;velocity=0;restVelocity;precision;progress;duration;easing;clamp;bounce;decay;round;constructor(){Object.assign(this,M_)}};function R_(e,t){if(Av.und(t.decay)){let n=!Av.und(t.tension)||!Av.und(t.friction);(n||!Av.und(t.frequency)||!Av.und(t.damping)||!Av.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var N_=[],A_=class{changed=!1;values=N_;toValues=null;fromValues=N_;to;from;config=new P_;immediate=!1};function L_(e,{key:t,props:n,defaultProps:o,state:r,actions:s}){return new Promise(((i,l)=>{let a,c,u=x_(n.cancel??o?.cancel,t);if(u)h();else{Av.und(n.pause)||(r.paused=x_(n.pause,t));let e=o?.pause;!0!==e&&(e=r.paused||x_(e,t)),a=__(n.delay||0,t),e?(r.resumeQueue.add(p),s.pause()):(s.resume(),p())}function d(){r.resumeQueue.add(p),r.timeouts.delete(c),c.cancel(),a=c.time-mv.now()}function p(){a>0&&!Rv.skipAnimation?(r.delayed=!0,c=mv.setTimeout(h,a),r.pauseQueue.add(d),r.timeouts.add(c)):h()}function h(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(d),r.timeouts.delete(c),e<=(r.cancelId||0)&&(u=!0);try{s.start({...n,callId:e,cancel:u},i)}catch(e){l(e)}}}))}var O_=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?V_(e.get()):t.every((e=>e.noop))?D_(e.get()):z_(e.get(),t.every((e=>e.finished))),D_=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),z_=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),V_=e=>({value:e,cancelled:!0,finished:!1});function F_(e,t,n,o){let{callId:r,parentId:s,onRest:i}=t,{asyncTo:l,promise:a}=n;return s||e!==l||t.reset?n.promise=(async()=>{n.asyncId=r,n.asyncTo=e;let c,u,d,p=C_(t,((e,t)=>"onRest"===t?void 0:e)),h=new Promise(((e,t)=>(c=e,u=t))),g=e=>{let t=r<=(n.cancelId||0)&&V_(o)||r!==n.asyncId&&z_(o,!1);if(t)throw e.result=t,u(e),e},m=(e,t)=>{let s=new G_,i=new U_;return(async()=>{if(Rv.skipAnimation)throw H_(n),i.result=z_(o,!1),u(i),i;g(s);let l=Av.obj(e)?{...e}:{...t,to:e};l.parentId=r,Dv(p,((e,t)=>{Av.und(l[t])&&(l[t]=e)}));let a=await o.start(l);return g(s),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),a})()};if(Rv.skipAnimation)return H_(n),z_(o,!1);try{let t;t=Av.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,o.stop.bind(o))),await Promise.all([t.then(c),h]),d=z_(o.get(),!0,!1)}catch(e){if(e instanceof G_)d=e.result;else{if(!(e instanceof U_))throw e;d=e.result}}finally{r==n.asyncId&&(n.asyncId=s,n.asyncTo=s?l:void 0,n.promise=s?a:void 0)}return Av.fun(i)&&mv.batchedUpdates((()=>{i(d,o,o.item)})),d})():a}function H_(e,t){Vv(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var G_=class extends Error{result;constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},U_=class extends Error{result;constructor(){super("SkipAnimationSignal")}},$_=e=>e instanceof K_,W_=1,K_=class extends Lk{id=W_++;_priority=0;get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=s_(this);return e&&e.getValue()}to(...e){return Rv.to(this,e)}interpolate(...e){return Jk(`${Xk}The "interpolate" function is deprecated in v9 (use "to" instead)`),Rv.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ak(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Jv.sort(this),Ak(this,{type:"priority",parent:this,priority:e})}},Z_=Symbol.for("SpringPhase"),q_=e=>(1&e[Z_])>0,Y_=e=>(2&e[Z_])>0,X_=e=>(4&e[Z_])>0,Q_=(e,t)=>t?e[Z_]|=3:e[Z_]&=-3,J_=(e,t)=>t?e[Z_]|=4:e[Z_]&=-5,ex=class extends K_{key;animation=new A_;queue;defaultProps={};_state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_pendingCalls=new Set;_lastCallId=0;_lastToId=0;_memoizedDuration=0;constructor(e,t){if(super(),!Av.und(e)||!Av.und(t)){let n=Av.obj(e)?{...e}:{...t,from:e};Av.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Y_(this)||this._state.asyncTo)||X_(this)}get goal(){return Rk(this.animation.to)}get velocity(){let e=s_(this);return e instanceof c_?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return q_(this)}get isAnimating(){return Y_(this)}get isPaused(){return X_(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,o=this.animation,{config:r,toValues:s}=o,i=l_(o.to);!i&&Pk(o.to)&&(s=zv(Rk(o.to))),o.values.forEach(((l,a)=>{if(l.done)return;let c=l.constructor==u_?1:i?i[a].lastPosition:s[a],u=o.immediate,d=c;if(!u){if(d=l.lastPosition,r.tension<=0)return void(l.done=!0);let t,n=l.elapsedTime+=e,s=o.fromValues[a],i=null!=l.v0?l.v0:l.v0=Av.arr(r.velocity)?r.velocity[a]:r.velocity,p=r.precision||(s==c?.005:Math.min(1,.001*Math.abs(c-s)));if(Av.und(r.duration))if(r.decay){let e=!0===r.decay?.998:r.decay,o=Math.exp(-(1-e)*n);d=s+i/(1-e)*(1-o),u=Math.abs(l.lastPosition-d)<=p,t=i*o}else{t=null==l.lastVelocity?i:l.lastVelocity;let n,o=r.restVelocity||p/10,a=r.clamp?0:r.bounce,h=!Av.und(a),g=s==c?l.v0>0:s<c,m=!1,f=1,b=Math.ceil(e/f);for(let e=0;e<b&&(n=Math.abs(t)>o,n||(u=Math.abs(c-d)<=p,!u));++e){h&&(m=d==c||d>c==g,m&&(t=-t*a,d=c)),t+=(1e-6*-r.tension*(d-c)+.001*-r.friction*t)/r.mass*f,d+=t*f}}else{let o=1;r.duration>0&&(this._memoizedDuration!==r.duration&&(this._memoizedDuration=r.duration,l.durationProgress>0&&(l.elapsedTime=r.duration*l.durationProgress,n=l.elapsedTime+=e)),o=(r.progress||0)+n/this._memoizedDuration,o=o>1?1:o<0?0:o,l.durationProgress=o),d=s+r.easing(o)*(c-s),t=(d-l.lastPosition)/e,u=1==o}l.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}i&&!i[a].done&&(u=!1),u?l.done=!0:t=!1,l.setValue(d,r.round)&&(n=!0)}));let l=s_(this),a=l.getValue();if(t){let e=Rk(o.to);a===e&&!n||r.decay?n&&r.decay&&this._onChange(a):(l.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(a)}set(e){return mv.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Y_(this)){let{to:e,config:t}=this.animation;mv.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Av.und(e)?(n=this.queue||[],this.queue=[]):n=[Av.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>O_(this,e)))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),H_(this._state,e&&this._lastCallId),mv.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:o}=e;n=Av.obj(n)?n[t]:n,(null==n||T_(n))&&(n=void 0),o=Av.obj(o)?o[t]:o,null==o&&(o=void 0);let r={to:n,from:o};return q_(this)||(e.reverse&&([n,o]=[o,n]),o=Rk(o),Av.und(o)?s_(this)||this._set(n):this._set(o)),r}_update({...e},t){let{key:n,defaultProps:o}=this;e.default&&Object.assign(o,C_(e,((e,t)=>/^on/.test(t)?y_(e,n):e))),ix(this,e,"onProps"),lx(this,"onProps",e,this);let r=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let s=this._state;return L_(++this._lastCallId,{key:n,props:e,defaultProps:o,state:s,actions:{pause:()=>{X_(this)||(J_(this,!0),Gv(s.pauseQueue),lx(this,"onPause",z_(this,tx(this,this.animation.to)),this))},resume:()=>{X_(this)&&(J_(this,!1),Y_(this)&&this._resume(),Gv(s.resumeQueue),lx(this,"onResume",z_(this,tx(this,this.animation.to)),this))},start:this._merge.bind(this,r)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){let t=nx(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(V_(this));let o=!Av.und(e.to),r=!Av.und(e.from);if(o||r){if(!(t.callId>this._lastToId))return n(V_(this));this._lastToId=t.callId}let{key:s,defaultProps:i,animation:l}=this,{to:a,from:c}=l,{to:u=a,from:d=c}=e;r&&!o&&(!t.default||Av.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);let p=!Lv(d,c);p&&(l.from=d),d=Rk(d);let h=!Lv(u,a);h&&this._focus(u);let g=T_(t.to),{config:m}=l,{decay:f,velocity:b}=m;(o||r)&&(m.velocity=0),t.config&&!g&&function(e,t,n){n&&(R_(n={...n},t),t={...n,...t}),R_(e,t),Object.assign(e,t);for(let t in M_)null==e[t]&&(e[t]=M_[t]);let{mass:o,frequency:r,damping:s}=e;Av.und(r)||(r<.01&&(r=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*s*o/r)}(m,__(t.config,s),t.config!==i.config?__(i.config,s):void 0);let v=s_(this);if(!v||Av.und(u))return n(z_(this,!0));let k=Av.und(t.reset)?r&&!t.default:!Av.und(d)&&x_(t.reset,s),_=k?d:this.get(),x=E_(u),y=Av.num(x)||Av.arr(x)||e_(x),S=!g&&(!y||x_(i.immediate||t.immediate,s));if(h){let e=m_(u);if(e!==v.constructor){if(!S)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(x)}}let w=v.constructor,C=Pk(u),B=!1;if(!C){let e=k||!q_(this)&&p;(h||e)&&(B=Lv(E_(_),x),C=!B),(!Lv(l.immediate,S)&&!S||!Lv(m.decay,f)||!Lv(m.velocity,b))&&(C=!0)}if(B&&Y_(this)&&(l.changed&&!k?C=!0:C||this._stop(a)),!g&&((C||Pk(a))&&(l.values=v.getPayload(),l.toValues=Pk(u)?null:w==u_?[1]:zv(x)),l.immediate!=S&&(l.immediate=S,!S&&!k&&this._set(a)),C)){let{onRest:e}=l;Ov(sx,(e=>ix(this,t,e)));let o=z_(this,tx(this,a));Gv(this._pendingCalls,o),this._pendingCalls.add(n),l.changed&&mv.batchedUpdates((()=>{l.changed=!k,e?.(o,this),k?__(i.onRest,o):l.onStart?.(o,this)}))}k&&this._set(_),g?n(F_(t.to,t,this._state,this)):C?this._start():Y_(this)&&!h?this._pendingCalls.add(n):n(D_(_))}_focus(e){let t=this.animation;e!==t.to&&(Nk(this)&&this._detach(),t.to=e,Nk(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;Pk(t)&&(Dk(t,this),$_(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;Pk(e)&&zk(e,this)}_set(e,t=!0){let n=Rk(e);if(!Av.und(n)){let e=s_(this);if(!e||!Lv(n,e.getValue())){let o=m_(n);e&&e.constructor==o?e.setValue(n):i_(this,o.create(n)),e&&mv.batchedUpdates((()=>{this._onChange(n,t)}))}}return s_(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,lx(this,"onStart",z_(this,tx(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),__(this.animation.onChange,e,this)),__(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;s_(this).reset(Rk(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),Y_(this)||(Q_(this,!0),X_(this)||this._resume())}_resume(){Rv.skipAnimation?this.finish():Jv.start(this)}_stop(e,t){if(Y_(this)){Q_(this,!1);let n=this.animation;Ov(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ak(this,{type:"idle",parent:this});let o=t?V_(this.get()):z_(this.get(),tx(this,e??n.to));Gv(this._pendingCalls,o),n.changed&&(n.changed=!1,lx(this,"onRest",o,this))}}};function tx(e,t){let n=E_(t);return Lv(E_(e.get()),n)}function nx(e,t=e.loop,n=e.to){let o=__(t);if(o){let r=!0!==o&&j_(o),s=(r||e).reverse,i=!r||r.reset;return ox({...e,loop:t,default:!1,pause:void 0,to:!s||T_(n)?n:void 0,from:i?e.from:void 0,reset:i,...r})}}function ox(e){let{to:t,from:n}=e=j_(e),o=new Set;return Av.obj(t)&&rx(t,o),Av.obj(n)&&rx(n,o),e.keys=o.size?Array.from(o):null,e}function rx(e,t){Dv(e,((e,n)=>null!=e&&t.add(n)))}var sx=["onStart","onRest","onChange","onPause","onResume"];function ix(e,t,n){e.animation[n]=t[n]!==S_(t,n)?y_(t[n],e.key):void 0}function lx(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var ax=["onStart","onChange","onRest"],cx=1,ux=class{id=cx++;springs={};queue=[];ref;_flush;_initialProps;_lastAsyncId=0;_active=new Set;_changed=new Set;_started=!1;_item;_state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_events={onStart:new Map,onChange:new Map,onRest:new Map};constructor(e,t){this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(let t in e){let n=e[t];Av.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ox(e)),this}start(e){let{queue:t}=this;return e?t=zv(e).map(ox):this.queue=[],this._flush?this._flush(this,t):(mx(this,t),dx(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let n=this.springs;Ov(zv(t),(t=>n[t].stop(!!e)))}else H_(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Av.und(e))this.start({pause:!0});else{let t=this.springs;Ov(zv(e),(e=>t[e].pause()))}return this}resume(e){if(Av.und(e))this.start({pause:!1});else{let t=this.springs;Ov(zv(e),(e=>t[e].resume()))}return this}each(e){Dv(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,o=this._active.size>0,r=this._changed.size>0;(o&&!this._started||r&&!this._started)&&(this._started=!0,Vv(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));let s=!o&&this._started,i=r||s&&n.size?this.get():null;r&&t.size&&Vv(t,(([e,t])=>{t.value=i,e(t,this,this._item)})),s&&(this._started=!1,Vv(n,(([e,t])=>{t.value=i,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}mv.onFrame(this._onFrame)}};function dx(e,t){return Promise.all(t.map((t=>px(e,t)))).then((t=>O_(e,t)))}async function px(e,t,n){let{keys:o,to:r,from:s,loop:i,onRest:l,onResolve:a}=t,c=Av.obj(t.default)&&t.default;i&&(t.loop=!1),!1===r&&(t.to=null),!1===s&&(t.from=null);let u=Av.arr(r)||Av.fun(r)?r:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Ov(ax,(n=>{let o=t[n];if(Av.fun(o)){let r=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=r.get(o);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):r.set(o,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));let d=e._state;t.pause===!d.paused?(d.paused=t.pause,Gv(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let p=(o||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),h=!0===t.cancel||!0===S_(t,"cancel");(u||h&&d.asyncId)&&p.push(L_(++e._lastAsyncId,{props:t,state:d,actions:{pause:Nv,resume:Nv,start(t,n){h?(H_(d,e._lastAsyncId),n(V_(e))):(t.onRest=l,n(F_(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));let g=O_(e,await Promise.all(p));if(i&&g.finished&&(!n||!g.noop)){let n=nx(t,i,r);if(n)return mx(e,[n]),px(e,n,!0)}return a&&mv.batchedUpdates((()=>a(g,e,e.item))),g}function hx(e,t){let n=new ex;return n.key=e,t&&Dk(n,t),n}function gx(e,t,n){t.keys&&Ov(t.keys,(o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)}))}function mx(e,t){Ov(t,(t=>{gx(e.springs,t,(t=>hx(t,e)))}))}var fx=({children:e,...t})=>{let n=(0,_a.useContext)(bx),o=t.pause||!!n.pause,r=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,_a.useState)((()=>({inputs:t,result:e()}))),o=(0,_a.useRef)(),r=o.current,s=r;return s?Boolean(t&&s.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,s.inputs))||(s={inputs:t,result:e()}):s=n,(0,_a.useEffect)((()=>{o.current=s,r==n&&(n.inputs=n.result=void 0)}),[s]),s.result}((()=>({pause:o,immediate:r})),[o,r]);let{Provider:s}=bx;return _a.createElement(s,{value:t},e)},bx=function(e,t){return Object.assign(e,_a.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(fx,{});fx.Provider=bx.Provider,fx.Consumer=bx.Consumer;var vx=class extends K_{constructor(e,t){super(),this.source=e,this.calc=yk(...t);let n=this._get(),o=m_(n);i_(this,o.create(n))}key;idle=!0;calc;_active=new Set;advance(e){let t=this._get();Lv(t,this.get())||(s_(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&_x(this._active)&&xx(this)}_get(){let e=Av.arr(this.source)?this.source.map(Rk):zv(Rk(this.source));return this.calc(...e)}_start(){this.idle&&!_x(this._active)&&(this.idle=!1,Ov(l_(this),(e=>{e.done=!1})),Rv.skipAnimation?(mv.batchedUpdates((()=>this.advance())),xx(this)):Jv.start(this))}_attach(){let e=1;Ov(zv(this.source),(t=>{Pk(t)&&Dk(t,this),$_(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Ov(zv(this.source),(e=>{Pk(e)&&zk(e,this)})),this._active.clear(),xx(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=zv(this.source).reduce(((e,t)=>Math.max(e,($_(t)?t.priority:0)+1)),0))}};function kx(e){return!1!==e.idle}function _x(e){return!e.size||Array.from(e).every(kx)}function xx(e){e.idle||(e.idle=!0,Ov(l_(e),(e=>{e.done=!0})),Ak(e,{type:"idle",parent:e}))}Rv.assign({createStringInterpolator:Yk,to:(e,t)=>new vx(e,t)});Jv.advance;const yx=window.ReactDOM;var Sx=/^--/;function wx(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Sx.test(e)||Bx.hasOwnProperty(e)&&Bx[e]?(""+t).trim():t+"px"}var Cx={};var Bx={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},Ix=["Webkit","Ms","Moz","O"];Bx=Object.keys(Bx).reduce(((e,t)=>(Ix.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Bx);var jx=/^(matrix|translate|scale|rotate|skew)/,Ex=/^(translate)/,Tx=/^(rotate|skew)/,Mx=(e,t)=>Av.num(e)&&0!==e?e+t:e,Px=(e,t)=>Av.arr(e)?e.every((e=>Px(e,t))):Av.num(e)?e===t:parseFloat(e)===t,Rx=class extends p_{constructor({x:e,y:t,z:n,...o}){let r=[],s=[];(e||t||n)&&(r.push([e||0,t||0,n||0]),s.push((e=>[`translate3d(${e.map((e=>Mx(e,"px"))).join(",")})`,Px(e,0)]))),Dv(o,((e,t)=>{if("transform"===t)r.push([e||""]),s.push((e=>[e,""===e]));else if(jx.test(t)){if(delete o[t],Av.und(e))return;let n=Ex.test(t)?"px":Tx.test(t)?"deg":"";r.push(zv(e)),s.push("rotate3d"===t?([e,t,o,r])=>[`rotate3d(${e},${t},${o},${Mx(r,n)})`,Px(r,0)]:e=>[`${t}(${e.map((e=>Mx(e,n))).join(",")})`,Px(e,t.startsWith("scale")?1:0)])}})),r.length&&(o.transform=new Nx(r,s)),super(o)}},Nx=class extends Lk{constructor(e,t){super(),this.inputs=e,this.transforms=t}_value=null;get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ov(this.inputs,((n,o)=>{let r=Rk(n[0]),[s,i]=this.transforms[o](Av.arr(r)?r:n.map(Rk));e+=" "+s,t=t&&i})),t?"none":e}observerAdded(e){1==e&&Ov(this.inputs,(e=>Ov(e,(e=>Pk(e)&&Dk(e,this)))))}observerRemoved(e){0==e&&Ov(this.inputs,(e=>Ov(e,(e=>Pk(e)&&zk(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Ak(this,e)}};Rv.assign({batchedUpdates:yx.unstable_batchedUpdates,createStringInterpolator:Yk,colors:{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}});var Ax=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new p_(e)),getComponentProps:o=(e=>e)}={})=>{let r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:o},s=e=>{let t=k_(e)||"Anonymous";return(e=Av.str(e)?s[e]||(s[e]=f_(e,r)):e[v_]||(e[v_]=f_(e,r))).displayName=`Animated(${t})`,e};return Dv(e,((t,n)=>{Av.arr(e)&&(n=k_(t)),s[n]=s(t)})),{animated:s}})(["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"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:o,children:r,scrollTop:s,scrollLeft:i,viewBox:l,...a}=t,c=Object.values(a),u=Object.keys(a).map((t=>n||e.hasAttribute(t)?t:Cx[t]||(Cx[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==r&&(e.textContent=r);for(let t in o)if(o.hasOwnProperty(t)){let n=wx(t,o[t]);Sx.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==s&&(e.scrollTop=s),void 0!==i&&(e.scrollLeft=i),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new Rx(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Lx=Ax.animated;function Ox(e){return{top:e.offsetTop,left:e.offsetLeft}}const Dx=function({triggerAnimationOnChange:e,clientId:t}){const n=(0,a.useRef)(),{isTyping:o,getGlobalBlockCount:r,isBlockSelected:s,isFirstMultiSelectedBlock:i,isBlockMultiSelected:l,isAncestorMultiSelected:u}=(0,c.useSelect)(Gr),{previous:d,prevRect:p}=(0,a.useMemo)((()=>({previous:n.current&&Ox(n.current),prevRect:n.current&&n.current.getBoundingClientRect()})),[e]);return(0,a.useLayoutEffect)((()=>{if(!d||!n.current)return;const e=(0,sa.getScrollContainer)(n.current),a=s(t),c=a||i(t);function h(){if(c&&p){const t=n.current.getBoundingClientRect().top-p.top;t&&(e.scrollTop+=t)}}if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||o()||r()>200)return void h();const g=a||l(t)||u(t)?"1":"",m=new ux({x:0,y:0,config:{mass:5,tension:2e3,friction:200},onChange({value:e}){if(!n.current)return;let{x:t,y:o}=e;t=Math.round(t),o=Math.round(o);const r=0===t&&0===o;n.current.style.transformOrigin="center center",n.current.style.transform=r?null:`translate3d(${t}px,${o}px,0)`,n.current.style.zIndex=g,h()}});n.current.style.transform=void 0;const f=Ox(n.current),b=Math.round(d.left-f.left),v=Math.round(d.top-f.top);return m.start({x:0,y:0,from:{x:b,y:v}}),()=>{m.stop(),m.set({x:0,y:0})}}),[d,p,t,o,r,s,i,l,u]),n},zx=".block-editor-block-list__block",Vx=".block-list-appender",Fx=".block-editor-button-block-appender";function Hx(e,t){return e.closest(zx)===t.closest(zx)}function Gx(e,t){return t.closest([zx,Vx,Fx].join(","))===e}function Ux(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(zx);return t?t.id.slice(6):void 0}function $x({clientId:e,initialPosition:t}){const n=(0,a.useRef)(),{isBlockSelected:o,isMultiSelecting:r,__unstableGetEditorMode:s}=(0,c.useSelect)(Gr);return(0,a.useEffect)((()=>{if(!o(e)||r()||"zoom-out"===s())return;if(null==t)return;if(!n.current)return;const{ownerDocument:i}=n.current;if(Gx(n.current,i.activeElement))return;const l=sa.focus.tabbable.find(n.current).filter((e=>(0,sa.isTextField)(e))),a=-1===t,c=l[a?l.length-1:0]||n.current;if(Gx(n.current,c)){if(!n.current.getAttribute("contenteditable")){const e=sa.focus.tabbable.findNext(n.current);if(e&&Gx(n.current,e)&&(0,sa.isFormElement)(e))return void e.focus()}(0,sa.placeCaretAtHorizontalEdge)(c,a)}else n.current.focus()}),[t,e]),n}function Wx(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function Kx(e){const{isBlockSelected:t}=(0,c.useSelect)(Gr),{selectBlock:n,selectionChange:o}=(0,c.useDispatch)(Gr);return(0,u.useRefEffect)((r=>{function s(s){r.parentElement.closest('[contenteditable="true"]')||(t(e)?s.target.isContentEditable||o(e):Gx(r,s.target)&&n(e))}return r.addEventListener("focusin",s),()=>{r.removeEventListener("focusin",s)}}),[t,n])}function Zx({clientId:e,isSelected:t}){const{getBlockRootClientId:n,getBlockIndex:o}=(0,c.useSelect)(Gr),{insertAfterBlock:r,removeBlock:s}=(0,c.useDispatch)(Gr);return(0,u.useRefEffect)((n=>{if(t)return n.addEventListener("keydown",o),n.addEventListener("dragstart",i),()=>{n.removeEventListener("keydown",o),n.removeEventListener("dragstart",i)};function o(t){const{keyCode:o,target:i}=t;o!==la.ENTER&&o!==la.BACKSPACE&&o!==la.DELETE||i!==n||(0,sa.isTextField)(i)||(t.preventDefault(),o===la.ENTER?r(e):s(e))}function i(e){e.preventDefault()}}),[e,t,n,o,r,s])}function qx(e){const{isNavigationMode:t,isBlockSelected:n}=(0,c.useSelect)(Gr),{setNavigationMode:o,selectBlock:r}=(0,c.useDispatch)(Gr);return(0,u.useRefEffect)((s=>{function i(s){t()&&!s.defaultPrevented&&(s.preventDefault(),n(e)?o(!1):r(e))}return s.addEventListener("mousedown",i),()=>{s.removeEventListener("mousedown",i)}}),[e,t,n,o])}function Yx(){const e=(0,a.useContext)(AC);return(0,u.useRefEffect)((t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}}),[e])}function Xx({isSelected:e}){const t=(0,u.useReducedMotion)();return(0,u.useRefEffect)((n=>{if(e){const{ownerDocument:e}=n,{defaultView:o}=e;if(!o.IntersectionObserver)return;const r=new o.IntersectionObserver((e=>{e[0].isIntersecting||n.scrollIntoView({behavior:t?"instant":"smooth"}),r.disconnect()}));return r.observe(n),()=>{r.disconnect()}}}),[e])}function Qx({clientId:e="",isEnabled:t=!0}={}){const{getEnabledClientIdsTree:n}=Q((0,c.useSelect)(Gr));return(0,u.useRefEffect)((o=>{if(!t)return;const r=t=>{(t.target===o||t.target.classList.contains("is-root-container"))&&(t.defaultPrevented||(t.preventDefault(),n(e).forEach((({clientId:e})=>{const t=o.querySelector(`[data-block="${e}"]`);t&&(t.classList.remove("has-editable-outline"),t.offsetWidth,t.classList.add("has-editable-outline"))}))))};return o.addEventListener("click",r),()=>o.removeEventListener("click",r)}),[t])}function Jx(e={},{__unstableIsHtml:t}={}){const{clientId:n,className:o,wrapperProps:r={},isAligned:s,index:i,mode:l,name:c,blockApiVersion:d,blockTitle:p,isSelected:h,isSubtreeDisabled:g,hasOverlay:f,initialPosition:b,blockEditingMode:v,isHighlighted:k,isMultiSelected:x,isPartiallySelected:y,isReusable:S,isDragging:w,hasChildSelected:B,isBlockMovingMode:I,canInsertMovingBlock:j,isEditingDisabled:E,hasEditableOutline:T,isTemporarilyEditingAsBlocks:M,defaultClassName:P,templateLock:R}=(0,a.useContext)(tv),N=(0,C.sprintf)((0,C.__)("Block: %s"),p),A="html"!==l||t?"":"-visual",L=(0,u.useMergeRefs)([e.ref,$x({clientId:n,initialPosition:b}),qi(n),Kx(n),Zx({clientId:n,isSelected:h}),qx(n),(0,u.useRefEffect)((e=>(e.addEventListener("mouseout",Wx),e.addEventListener("mouseover",Wx),()=>{e.removeEventListener("mouseout",Wx),e.removeEventListener("mouseover",Wx),e.classList.remove("is-hovered")})),[]),Yx(),Dx({triggerAnimationOnChange:i,clientId:n}),(0,u.useDisabled)({isDisabled:!f}),Qx({clientId:n,isEnabled:"core/block"===c||"contentOnly"===R}),Xx({isSelected:h})]),O=_(),D=!!O[m]&&Rf(c)?{"--wp-admin-theme-color":"var(--wp-block-synced-color)","--wp-admin-theme-color--rgb":"var(--wp-block-synced-color--rgb)"}:{};d<2&&O.clientId;let z=!1;return"-"!==r?.style?.marginTop?.charAt(0)&&"-"!==r?.style?.marginBottom?.charAt(0)&&"-"!==r?.style?.marginLeft?.charAt(0)&&"-"!==r?.style?.marginRight?.charAt(0)||(z=!0),{tabIndex:"disabled"===v?-1:0,...r,...e,ref:L,id:`block-${n}${A}`,role:"document","aria-label":N,"data-block":n,"data-type":c,"data-title":p,inert:g?"true":void 0,className:ws("block-editor-block-list__block",{"wp-block":!s,"has-block-overlay":f,"is-selected":h,"is-highlighted":k,"is-multi-selected":x,"is-partially-selected":y,"is-reusable":S,"is-dragging":w,"has-child-selected":B,"is-block-moving-mode":I,"can-insert-moving-block":j,"is-editing-disabled":E,"has-editable-outline":T,"has-negative-margin":z,"is-content-locked-temporarily-editing-as-blocks":M},o,e.className,r.className,P),style:{...r.style,...e.style,...D}}}function ey({children:e,isHtml:t,...n}){return(0,U.jsx)("div",{...Jx(n,{__unstableIsHtml:t}),children:e})}function ty({block:{__unstableBlockSource:e},mode:t,isLocked:n,canRemove:o,clientId:r,isSelected:s,isSelectionEnabled:i,className:u,__unstableLayoutClassNames:d,name:p,isValid:h,attributes:g,wrapperProps:m,setAttributes:f,onReplace:b,onInsertBlocksAfter:v,onMerge:k,toggleSelection:_}){var x;const{mayDisplayControls:y,mayDisplayParentControls:S,themeSupportsLayout:w,...C}=(0,a.useContext)(tv),{removeBlock:B}=(0,c.useDispatch)(Gr),I=(0,a.useCallback)((()=>B(r)),[r,B]),j=kl()||{};let E=(0,U.jsx)(nv,{name:p,isSelected:s,attributes:g,setAttributes:f,insertBlocksAfter:n?void 0:v,onReplace:o?b:void 0,onRemove:o?I:void 0,mergeBlocks:o?k:void 0,clientId:r,isSelectionEnabled:i,toggleSelection:_,__unstableLayoutClassNames:d,__unstableParentLayout:Object.keys(j).length?j:void 0,mayDisplayControls:y,mayDisplayParentControls:S,blockEditingMode:C.blockEditingMode,isPreviewMode:C.isPreviewMode});const T=(0,l.getBlockType)(p);T?.getEditWrapperProps&&(m=function(e,t){const n={...e,...t};return e?.hasOwnProperty("className")&&t?.hasOwnProperty("className")&&(n.className=ws(e.className,t.className)),e?.hasOwnProperty("style")&&t?.hasOwnProperty("style")&&(n.style={...e.style,...t.style}),n}(m,T.getEditWrapperProps(g)));const M=m&&!!m["data-align"]&&!w,P=u?.includes("is-position-sticky");let R;if(M&&(E=(0,U.jsx)("div",{className:ws("wp-block",P&&u),"data-align":m["data-align"],children:E})),h)R="html"===t?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{style:{display:"none"},children:E}),(0,U.jsx)(ey,{isHtml:!0,children:(0,U.jsx)(hv,{clientId:r})})]}):T?.apiVersion>1?E:(0,U.jsx)(ey,{children:E});else{const t=e?(0,l.serializeRawBlock)(e):(0,l.getSaveContent)(T,g);R=(0,U.jsxs)(ey,{className:"has-warning",children:[(0,U.jsx)(lv,{clientId:r}),(0,U.jsx)(a.RawHTML,{children:(0,sa.safeHTML)(t)})]})}const{"data-align":N,...A}=null!==(x=m)&&void 0!==x?x:{},L={...A,className:ws(A.className,N&&w&&`align${N}`,!(N&&P)&&u)};return(0,U.jsx)(tv.Provider,{value:{wrapperProps:L,isAligned:M,...C},children:(0,U.jsx)(dv,{fallback:(0,U.jsx)(ey,{className:"has-warning",children:(0,U.jsx)(cv,{})}),children:R})})}Jx.save=l.__unstableGetBlockProps;const ny=(0,c.withDispatch)(((e,t,n)=>{const{updateBlockAttributes:o,insertBlocks:r,mergeBlocks:s,replaceBlocks:i,toggleSelection:a,__unstableMarkLastChangeAsPersistent:c,moveBlocksToPosition:u,removeBlock:d,selectBlock:p}=e(Gr);return{setAttributes(e){const{getMultiSelectedBlockClientIds:r}=n.select(Gr),s=r(),{clientId:i}=t,l=s.length?s:[i];o(l,e)},onInsertBlocks(e,n){const{rootClientId:o}=t;r(e,n,o)},onInsertBlocksAfter(e){const{clientId:o,rootClientId:s}=t,{getBlockIndex:i}=n.select(Gr),l=i(o);r(e,l+1,s)},onMerge(e){const{clientId:o,rootClientId:a}=t,{getPreviousBlockClientId:c,getNextBlockClientId:h,getBlock:g,getBlockAttributes:m,getBlockName:f,getBlockOrder:b,getBlockIndex:v,getBlockRootClientId:k,canInsertBlockType:_}=n.select(Gr);function x(){const e=g(o),t=(0,l.getDefaultBlockName)();if(f(o)!==t){const n=(0,l.switchToBlockType)(e,t);n&&n.length&&i(o,n)}else if((0,l.isUnmodifiedDefaultBlock)(e)){const e=h(o);e&&n.batch((()=>{d(o),p(e)}))}}function y(e,t=!0){const o=k(e),s=b(e),[i]=s;1===s.length&&(0,l.isUnmodifiedBlock)(g(i))?d(e):n.batch((()=>{if(_(f(i),o))u([i],e,o,v(e));else{const n=(0,l.switchToBlockType)(g(i),(0,l.getDefaultBlockName)());n&&n.length&&n.every((e=>_(e.name,o)))?(r(n,v(e),o,t),d(i,!1)):x()}!b(e).length&&(0,l.isUnmodifiedBlock)(g(e))&&d(e,!1)}))}if(e){if(a){const e=h(a);if(e){if(f(a)!==f(e))return void s(a,e);{const t=m(a),o=m(e);if(Object.keys(t).every((e=>t[e]===o[e])))return void n.batch((()=>{u(b(e),e,a),d(e,!1)}))}}}const e=h(o);if(!e)return;b(e).length?y(e,!1):s(o,e)}else{const e=c(o);if(e)s(e,o);else if(a){const e=c(a);if(e&&f(a)===f(e)){const t=m(a),o=m(e);if(Object.keys(t).every((e=>t[e]===o[e])))return void n.batch((()=>{u(b(a),a,e),d(a,!1)}))}y(a)}else x()}},onReplace(e,n,o){e.length&&!(0,l.isUnmodifiedDefaultBlock)(e[e.length-1])&&c();const r=1===e?.length&&Array.isArray(e[0])?e[0]:e;i([t.clientId],r,n,o)},toggleSelection(e){a(e)}}}));ty=(0,u.compose)(ny,(0,Ps.withFilters)("editor.BlockListBlock"))(ty);const oy=(0,a.memo)((function(e){const{clientId:t,rootClientId:n}=e,o=(0,c.useSelect)((e=>{const{isBlockSelected:o,getBlockMode:r,isSelectionEnabled:s,getTemplateLock:i,getBlockWithoutAttributes:a,getBlockAttributes:c,canRemoveBlock:u,canMoveBlock:d,getSettings:p,getTemporarilyEditingAsBlocks:h,getBlockEditingMode:g,getBlockName:m,isFirstMultiSelectedBlock:f,getMultiSelectedBlockClientIds:b,hasSelectedInnerBlock:v,getBlocksByName:k,getBlockIndex:_,isBlockMultiSelected:x,isBlockSubtreeDisabled:y,isBlockHighlighted:S,__unstableIsFullySelected:w,__unstableSelectionHasUnmergeableBlock:C,isBlockBeingDragged:B,isDragging:I,hasBlockMovingClientId:j,canInsertBlockType:E,__unstableHasActiveBlockOverlayActive:T,__unstableGetEditorMode:M,getSelectedBlocksInitialCaretPosition:P}=Q(e(Gr)),R=a(t);if(!R)return;const{hasBlockSupport:N,getActiveBlockVariation:A}=e(l.store),L=c(t),{name:O,isValid:D}=R,z=(0,l.getBlockType)(O),{supportsLayout:V,__unstableIsPreviewMode:F}=p(),H=z?.apiVersion>1,G={isPreviewMode:F,blockWithoutAttributes:R,name:O,attributes:L,isValid:D,themeSupportsLayout:V,index:_(t),isReusable:(0,l.isReusableBlock)(z),className:H?L.className:void 0,defaultClassName:H?(0,l.getBlockDefaultClassName)(O):void 0,blockTitle:z?.title};if(F)return G;const U=o(t),$=u(t),W=d(t),K=A(O,L),Z=x(t),q=v(t,!0),Y=j(),X=g(t),J=(0,l.hasBlockSupport)(O,"multiple",!0)?[]:k(O),ee=J.length&&J[0]!==t;return{...G,mode:r(t),isSelectionEnabled:s(),isLocked:!!i(n),templateLock:i(t),canRemove:$,canMove:W,isSelected:U,isTemporarilyEditingAsBlocks:h()===t,blockEditingMode:X,mayDisplayControls:U||f(t)&&b().every((e=>m(e)===O)),mayDisplayParentControls:N(m(t),"__experimentalExposeControlsToChildren",!1)&&v(t),blockApiVersion:z?.apiVersion||1,blockTitle:K?.title||z?.title,isSubtreeDisabled:"disabled"===X&&y(t),hasOverlay:T(t)&&!I(),initialPosition:!U||"edit"!==M()&&"zoom-out"!==M()?void 0:P(),isHighlighted:S(t),isMultiSelected:Z,isPartiallySelected:Z&&!w()&&!C(),isDragging:B(t),hasChildSelected:q,isBlockMovingMode:!!Y,canInsertMovingBlock:Y&&E(m(Y),n),isEditingDisabled:"disabled"===X,hasEditableOutline:"disabled"!==X&&"disabled"===g(n),originalBlockClientId:!!ee&&J[0]}}),[t,n]),{isPreviewMode:r,mode:s="visual",isSelectionEnabled:i=!1,isLocked:u=!1,canRemove:d=!1,canMove:p=!1,blockWithoutAttributes:h,name:g,attributes:m,isValid:f,isSelected:b=!1,themeSupportsLayout:v,isTemporarilyEditingAsBlocks:k,blockEditingMode:_,mayDisplayControls:x,mayDisplayParentControls:y,index:S,blockApiVersion:w,blockTitle:C,isSubtreeDisabled:B,hasOverlay:I,initialPosition:j,isHighlighted:E,isMultiSelected:T,isPartiallySelected:M,isReusable:P,isDragging:R,hasChildSelected:N,isBlockMovingMode:A,canInsertMovingBlock:L,templateLock:O,isEditingDisabled:D,hasEditableOutline:z,className:V,defaultClassName:F,originalBlockClientId:H}=o,G=(0,a.useMemo)((()=>({...h,attributes:m})),[h,m]);if(!o)return null;const $={isPreviewMode:r,clientId:t,className:V,index:S,mode:s,name:g,blockApiVersion:w,blockTitle:C,isSelected:b,isSubtreeDisabled:B,hasOverlay:I,initialPosition:j,blockEditingMode:_,isHighlighted:E,isMultiSelected:T,isPartiallySelected:M,isReusable:P,isDragging:R,hasChildSelected:N,isBlockMovingMode:A,canInsertMovingBlock:L,templateLock:O,isEditingDisabled:D,hasEditableOutline:z,isTemporarilyEditingAsBlocks:k,defaultClassName:F,mayDisplayControls:x,mayDisplayParentControls:y,originalBlockClientId:H,themeSupportsLayout:v};return(0,U.jsx)(tv.Provider,{value:$,children:(0,U.jsx)(ty,{...e,mode:s,isSelectionEnabled:i,isLocked:u,canRemove:d,canMove:p,block:G,name:g,attributes:m,isValid:f,isSelected:b})})})),ry=window.wp.htmlEntities,sy=[(0,a.createInterpolateElement)((0,C.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,U.jsx)("kbd",{})}),(0,a.createInterpolateElement)((0,C.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,U.jsx)("kbd",{})}),(0,a.createInterpolateElement)((0,C.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,U.jsx)("kbd",{})}),(0,C.__)("Drag files into the editor to automatically insert media blocks."),(0,C.__)("Change a block's type by pressing the block icon on the toolbar.")];const iy=function(){const[e]=(0,a.useState)(Math.floor(Math.random()*sy.length));return(0,U.jsx)(Ps.Tip,{children:sy[e]})},ly=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})}),ay=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})});const cy=function({title:e,icon:t,description:n,blockType:o,className:r}){o&&(y()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:e,icon:t,description:n}=o));const{parentNavBlockClientId:s}=(0,c.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockParentsByBlockName:n}=e(Gr);return{parentNavBlockClientId:n(t(),"core/navigation",!0)[0]}}),[]),{selectBlock:i}=(0,c.useDispatch)(Gr);return(0,U.jsxs)("div",{className:ws("block-editor-block-card",r),children:[s&&(0,U.jsx)(Ps.Button,{onClick:()=>i(s),label:(0,C.__)("Go to parent Navigation block"),style:{minWidth:24,padding:0},icon:(0,C.isRTL)()?ly:ay,size:"small"}),(0,U.jsx)(jf,{icon:t,showColors:!0}),(0,U.jsxs)(Ps.__experimentalVStack,{spacing:1,children:[(0,U.jsx)("h2",{className:"block-editor-block-card__title",children:e}),n&&(0,U.jsx)(Ps.__experimentalText,{className:"block-editor-block-card__description",children:n})]})]})};const uy=(0,u.createHigherOrderComponent)((e=>({useSubRegistry:t=!0,...n})=>{const o=(0,c.useRegistry)(),[r]=(0,a.useState)((()=>new WeakMap)),s=function(e,t,n){if(!n)return t;let o=e.get(t);return o||(o=(0,c.createRegistry)({},t),o.registerStore(J,Hr),e.set(t,o)),o}(r,o,t);return s===o?(0,U.jsx)(e,{registry:o,...n}):(0,U.jsx)(c.RegistryProvider,{value:s,children:(0,U.jsx)(e,{registry:s,...n})})}),"withRegistryProvider"),dy=()=>{};function py({clientId:e=null,value:t,selection:n,onChange:o=dy,onInput:r=dy}){const s=(0,c.useRegistry)(),{resetBlocks:i,resetSelection:u,replaceInnerBlocks:d,setHasControlledInnerBlocks:p,__unstableMarkNextChangeAsNotPersistent:h}=s.dispatch(Gr),{getBlockName:g,getBlocks:m,getSelectionStart:f,getSelectionEnd:b}=s.select(Gr),v=(0,c.useSelect)((t=>!e||t(Gr).areInnerBlocksControlled(e)),[e]),k=(0,a.useRef)({incoming:null,outgoing:[]}),_=(0,a.useRef)(!1),x=()=>{t&&(h(),e?s.batch((()=>{p(e,!0);const n=t.map((e=>(0,l.cloneBlock)(e)));_.current&&(k.current.incoming=n),h(),d(e,n)})):(_.current&&(k.current.incoming=t),i(t)))},y=(0,a.useRef)(r),S=(0,a.useRef)(o);(0,a.useEffect)((()=>{y.current=r,S.current=o}),[r,o]),(0,a.useEffect)((()=>{k.current.outgoing.includes(t)?k.current.outgoing[k.current.outgoing.length-1]===t&&(k.current.outgoing=[]):m(e)!==t&&(k.current.outgoing=[],x(),n&&u(n.selectionStart,n.selectionEnd,n.initialPosition))}),[t,e]);const w=(0,a.useRef)(!1);(0,a.useEffect)((()=>{w.current?v||(k.current.outgoing=[],x()):w.current=!0}),[v]),(0,a.useEffect)((()=>{const{getSelectedBlocksInitialCaretPosition:t,isLastBlockChangePersistent:n,__unstableIsLastBlockChangeIgnored:o,areInnerBlocksControlled:r}=s.select(Gr);let i=m(e),l=n(),a=!1;_.current=!0;const c=s.subscribe((()=>{if(null!==e&&null===g(e))return;if(!(!e||r(e)))return;const s=n(),c=m(e),u=c!==i;if(i=c,u&&(k.current.incoming||o()))return k.current.incoming=null,void(l=s);if(u||a&&!u&&s&&!l){l=s,k.current.outgoing.push(i);const e=l?S.current:y.current,n=io.has(i);n&&io.delete(i),e(i,{selection:{selectionStart:f(),selectionEnd:b(),initialPosition:t()},undoIgnore:n})}a=u}),Gr);return()=>{_.current=!1,c()}}),[s,e]),(0,a.useEffect)((()=>()=>{h(),e?(p(e,!1),h(),d(e,[])):i([])}),[])}const hy=window.wp.keyboardShortcuts;function gy(){return null}gy.Register=function(){const{registerShortcut:e}=(0,c.useDispatch)(hy.store);return(0,a.useEffect)((()=>{e({name:"core/block-editor/duplicate",category:"block",description:(0,C.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:(0,C.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:(0,C.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:(0,C.__)("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:(0,C.__)("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:(0,C.__)("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:(0,C.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/multi-text-selection",category:"selection",description:(0,C.__)("Select text across multiple blocks."),keyCombination:{modifier:"shift",character:"arrow"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:(0,C.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:(0,C.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:(0,C.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}}),e({name:"core/block-editor/collapse-list-view",category:"list-view",description:(0,C.__)("Collapse all other items."),keyCombination:{modifier:"alt",character:"l"}}),e({name:"core/block-editor/group",category:"block",description:(0,C.__)("Create a group block from the selected multiple blocks."),keyCombination:{modifier:"primary",character:"g"}})}),[e]),null};const my=gy,fy=uy((e=>{const{children:t,settings:n,stripExperimentalSettings:o=!1}=e,{__experimentalUpdateSettings:r}=Q((0,c.useDispatch)(Gr));return(0,a.useEffect)((()=>{r({...n,__internalIsInitialized:!0},{stripExperimentalSettings:o,reset:!0})}),[n,o,r]),py(e),(0,U.jsxs)(Ps.SlotFillProvider,{passthrough:!0,children:[!n?.__unstableIsPreviewMode&&(0,U.jsx)(my.Register,{}),(0,U.jsx)(Zi,{children:t})]})})),by=e=>(0,U.jsx)(fy,{...e,stripExperimentalSettings:!0,children:e.children});function vy(){const{getSettings:e,hasSelectedBlock:t,hasMultiSelection:n}=(0,c.useSelect)(Gr),{clearSelectedBlock:o}=(0,c.useDispatch)(Gr),{clearBlockSelection:r}=e();return(0,u.useRefEffect)((e=>{if(r)return e.addEventListener("mousedown",s),()=>{e.removeEventListener("mousedown",s)};function s(r){(t()||n())&&r.target===e&&o()}}),[t,n,o,r])}function ky(e){return(0,U.jsx)("div",{ref:vy(),...e})}function _y(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:o,getSelectedBlockClientId:r,getSelectedBlocksInitialCaretPosition:s,__unstableIsFullySelected:i}=e(Gr);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:o(),selectedBlockClientId:r(),initialPosition:s(),isFullSelection:i()}}function xy(){const{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:o,selectedBlockClientId:r,isFullSelection:s}=(0,c.useSelect)(_y,[]);return(0,u.useRefEffect)((r=>{const{ownerDocument:i}=r,{defaultView:l}=i;if(null==e)return;if(!o||t)return;const{length:a}=n;a<2||s&&(r.contentEditable=!0,r.focus(),l.getSelection().removeAllRanges())}),[o,t,n,r,e,s])}function yy(e,t,n,o){let r,s=sa.focus.focusable.find(n);return t&&s.reverse(),s=s.slice(s.indexOf(e)+1),o&&(r=e.getBoundingClientRect()),s.find((function(e){if(!(e.closest("[inert]")||1===e.children.length&&Hx(e,e.firstElementChild)&&"true"===e.firstElementChild.getAttribute("contenteditable"))){if(!sa.focus.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable)return!1;if(o){const t=e.getBoundingClientRect();if(t.left>=r.right||t.right<=r.left)return!1}return!0}}))}function Sy(){const{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getSettings:n,hasMultiSelection:o,__unstableIsFullySelected:r}=(0,c.useSelect)(Gr),{selectBlock:s}=(0,c.useDispatch)(Gr);return(0,u.useRefEffect)((i=>{let l;function a(){l=null}function c(a){if(a.defaultPrevented)return;const{keyCode:c,target:u,shiftKey:d,ctrlKey:p,altKey:h,metaKey:g}=a,m=c===la.UP,f=c===la.DOWN,b=c===la.LEFT,v=c===la.RIGHT,k=m||b,_=b||v,x=m||f,y=_||x,S=d||p||h||g,w=x?sa.isVerticalEdge:sa.isHorizontalEdge,{ownerDocument:C}=i,{defaultView:B}=C;if(!y)return;if(o()){if(d)return;if(!r())return;return a.preventDefault(),void(k?s(e()):s(t(),-1))}if(!function(e,t,n){const o=t===la.UP||t===la.DOWN,{tagName:r}=e,s=e.getAttribute("type");if(o&&!n)return"INPUT"!==r||!["date","datetime-local","month","number","range","time","week"].includes(s);if("INPUT"===r)return["button","checkbox","number","color","file","image","radio","reset","submit"].includes(s);return"TEXTAREA"!==r}(u,c,S))return;x?l||(l=(0,sa.computeCaretRect)(B)):l=null;const I=(0,sa.isRTL)(u)?!k:k,{keepCaretInsideBlock:j}=n();if(d)(function(e,t){const n=yy(e,t,i);return n&&Ux(n)})(u,k)&&w(u,k)&&(i.contentEditable=!0,i.focus());else if(!x||!(0,sa.isVerticalEdge)(u,k)||h&&!(0,sa.isHorizontalEdge)(u,I)||j){if(_&&B.getSelection().isCollapsed&&(0,sa.isHorizontalEdge)(u,I)&&!j){const e=yy(u,I,i);(0,sa.placeCaretAtHorizontalEdge)(e,k),a.preventDefault()}}else{const e=yy(u,k,i,!0);e&&((0,sa.placeCaretAtVerticalEdge)(e,h?!k:k,h?void 0:l),a.preventDefault())}}return i.addEventListener("mousedown",a),i.addEventListener("keydown",c),()=>{i.removeEventListener("mousedown",a),i.removeEventListener("keydown",c)}}),[])}function wy(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=(0,c.useSelect)(Gr),{multiSelect:o,selectBlock:r}=(0,c.useDispatch)(Gr),s=(0,hy.__unstableUseShortcutEventMatch)();return(0,u.useRefEffect)((i=>{function l(l){if(!s("core/block-editor/select-all",l))return;const a=t();if(a.length<2&&!(0,sa.isEntirelySelected)(l.target))return;l.preventDefault();const[c]=a,u=n(c),d=e(u);a.length!==d.length?o(d[0],d[d.length-1]):u&&(i.ownerDocument.defaultView.getSelection().removeAllRanges(),r(u))}return i.addEventListener("keydown",l),()=>{i.removeEventListener("keydown",l)}}),[])}function Cy(e,t){e.contentEditable=t,t&&e.focus()}function By(){const{startMultiSelect:e,stopMultiSelect:t}=(0,c.useDispatch)(Gr),{isSelectionEnabled:n,hasSelectedBlock:o,isDraggingBlocks:r,isMultiSelecting:s}=(0,c.useSelect)(Gr);return(0,u.useRefEffect)((i=>{const{ownerDocument:l}=i,{defaultView:a}=l;let c,u;function d(){t(),a.removeEventListener("mouseup",d),u=a.requestAnimationFrame((()=>{if(!o())return;Cy(i,!1);const e=a.getSelection();if(e.rangeCount){const t=e.getRangeAt(0),{commonAncestorContainer:n}=t,o=t.cloneRange();c.contains(n)&&(c.focus(),e.removeAllRanges(),e.addRange(o))}}))}function p({buttons:t,target:o,relatedTarget:l}){o.contains(l)||r()||1===t&&(s()||i!==o&&"true"===o.getAttribute("contenteditable")&&n()&&(c=o,e(),a.addEventListener("mouseup",d),Cy(i,!0)))}return i.addEventListener("mouseout",p),()=>{i.removeEventListener("mouseout",p),a.removeEventListener("mouseup",d),a.cancelAnimationFrame(u)}}),[e,t,n,o])}function Iy(e,t){e.contentEditable!==String(t)&&(e.contentEditable=t,t&&e.focus())}function jy(e){const t=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;return t?.closest("[data-wp-block-attribute-key]")}function Ey(){const{multiSelect:e,selectBlock:t,selectionChange:n}=(0,c.useDispatch)(Gr),{getBlockParents:o,getBlockSelectionStart:r,isMultiSelecting:s}=(0,c.useSelect)(Gr);return(0,u.useRefEffect)((i=>{const{ownerDocument:l}=i,{defaultView:a}=l;function c(l){const c=a.getSelection();if(!c.rangeCount)return;const u=function(e){const{anchorNode:t,anchorOffset:n}=e;return t.nodeType===t.TEXT_NODE||0===n?t:t.childNodes[n-1]}(c),d=function(e){const{focusNode:t,focusOffset:n}=e;return t.nodeType===t.TEXT_NODE||n===t.childNodes.length?t:t.childNodes[n]}(c);if(!i.contains(u)||!i.contains(d))return;const p=l.shiftKey&&"mouseup"===l.type;if(c.isCollapsed&&!p){if("true"===i.contentEditable&&!s()){Iy(i,!1);let e=u.nodeType===u.ELEMENT_NODE?u:u.parentElement;e=e?.closest("[contenteditable]"),e?.focus()}return}let h=Ux(u),g=Ux(d);if(p){const e=r(),t=Ux(l.target),n=t!==g;(h===g&&c.isCollapsed||!g||n)&&(g=t),h!==e&&(h=e)}if(void 0===h&&void 0===g)return void Iy(i,!1);if(h===g)s()?e(h,h):t(h);else{const t=[...o(h),h],r=[...o(g),g],s=function(e,t){let n=0;for(;e[n]===t[n];)n++;return n}(t,r);if(t[s]!==h||r[s]!==g)return void e(t[s],r[s]);const i=jy(u),l=jy(d);if(i&&l){var m,f;const e=c.getRangeAt(0),t=(0,W.create)({element:i,range:e,__unstableIsEditableTree:!0}),o=(0,W.create)({element:l,range:e,__unstableIsEditableTree:!0}),r=null!==(m=t.start)&&void 0!==m?m:t.end,s=null!==(f=o.start)&&void 0!==f?f:o.end;n({start:{clientId:h,attributeKey:i.dataset.wpBlockAttributeKey,offset:r},end:{clientId:g,attributeKey:l.dataset.wpBlockAttributeKey,offset:s}})}else e(h,g)}}return l.addEventListener("selectionchange",c),a.addEventListener("mouseup",c),()=>{l.removeEventListener("selectionchange",c),a.removeEventListener("mouseup",c)}}),[e,t,n,o])}function Ty(){const{selectBlock:e}=(0,c.useDispatch)(Gr),{isSelectionEnabled:t,getBlockSelectionStart:n,hasMultiSelection:o}=(0,c.useSelect)(Gr);return(0,u.useRefEffect)((r=>{function s(s){if(!t()||0!==s.button)return;const i=n(),l=Ux(s.target);s.shiftKey?i!==l&&(r.contentEditable=!0,r.focus()):o()&&e(l)}return r.addEventListener("mousedown",s),()=>{r.removeEventListener("mousedown",s)}}),[e,t,n,o])}function My(){const{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,getSelectedBlockClientId:n,__unstableIsSelectionMergeable:o,hasMultiSelection:r,getBlockName:s,canInsertBlockType:i,getBlockRootClientId:a,getSelectionStart:d,getSelectionEnd:p,getBlockAttributes:h}=(0,c.useSelect)(Gr),{replaceBlocks:g,__unstableSplitSelection:m,removeBlocks:f,__unstableDeleteSelection:b,__unstableExpandSelection:v,__unstableMarkAutomaticChange:k}=(0,c.useDispatch)(Gr);return(0,u.useRefEffect)((c=>{function u(e){"true"===c.contentEditable&&e.preventDefault()}function _(u){if(!u.defaultPrevented)if(r())u.keyCode===la.ENTER?(c.contentEditable=!1,u.preventDefault(),e()?g(t(),(0,l.createBlock)((0,l.getDefaultBlockName)())):m()):u.keyCode===la.BACKSPACE||u.keyCode===la.DELETE?(c.contentEditable=!1,u.preventDefault(),e()?f(t()):o()?b(u.keyCode===la.DELETE):v()):1!==u.key.length||u.metaKey||u.ctrlKey||(c.contentEditable=!1,o()?b(u.keyCode===la.DELETE):(u.preventDefault(),c.ownerDocument.defaultView.getSelection().removeAllRanges()));else if(u.keyCode===la.ENTER){if(u.shiftKey||e())return;const t=n(),o=s(t),r=d(),c=p();if(r.attributeKey===c.attributeKey){const e=h(t)[r.attributeKey],n=(0,l.getBlockTransforms)("from").filter((({type:e})=>"enter"===e)),o=(0,l.findTransform)(n,(t=>t.regExp.test(e)));if(o)return g(t,o.transform({content:e})),void k()}if(!(0,l.hasBlockSupport)(o,"splitting",!1)&&!u.__deprecatedOnSplit)return;i(o,a(t))&&(m(),u.preventDefault())}}function x(e){r()&&(c.contentEditable=!1,o()?b():(e.preventDefault(),c.ownerDocument.defaultView.getSelection().removeAllRanges()))}return c.addEventListener("beforeinput",u),c.addEventListener("keydown",_),c.addEventListener("compositionstart",x),()=>{c.removeEventListener("beforeinput",u),c.removeEventListener("keydown",_),c.removeEventListener("compositionstart",x)}}),[])}function Py(){const{getBlockName:e}=(0,c.useSelect)(Gr),{getBlockType:t}=(0,c.useSelect)(l.store),{createSuccessNotice:n}=(0,c.useDispatch)(jo.store);return(0,a.useCallback)(((o,r)=>{let s="";if(1===r.length){const n=r[0],i=t(e(n))?.title;s="copy"===o?(0,C.sprintf)((0,C.__)('Copied "%s" to clipboard.'),i):(0,C.sprintf)((0,C.__)('Moved "%s" to clipboard.'),i)}else s="copy"===o?(0,C.sprintf)((0,C._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",r.length),r.length):(0,C.sprintf)((0,C._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",r.length),r.length);n(s,{type:"snackbar"})}),[])}function Ry({clipboardData:e}){let t="",n="";try{t=e.getData("text/plain"),n=e.getData("text/html")}catch(t){try{n=e.getData("Text")}catch(e){return}}n=function(e){const t="\x3c!--StartFragment--\x3e",n=e.indexOf(t);if(!(n>-1))return e;const o=(e=e.substring(n+20)).indexOf("\x3c!--EndFragment--\x3e");return o>-1&&(e=e.substring(0,o)),e}(n),n=function(e){const t="<meta charset='utf-8'>";return e.startsWith(t)?e.slice(22):e}(n);const o=(0,sa.getFilesFromDataTransfer)(e);return o.length&&!function(e,t){if(t&&1===e?.length&&0===e[0].type.indexOf("image/")){const e=/<\s*img\b/gi;if(1!==t.match(e)?.length)return!0;const n=/<\s*img\b[^>]*\bsrc="file:\/\//i;if(t.match(n))return!0}return!1}(o,n)?{files:o}:{html:n,plainText:t,files:[]}}const Ny=Symbol("requiresWrapperOnCopy");function Ay(e,t,n){let o=t;const[r]=t;if(r){if(n.select(l.store).getBlockType(r.name)[Ny]){const{getBlockRootClientId:e,getBlockName:t,getBlockAttributes:s}=n.select(Gr),i=e(r.clientId),a=t(i);a&&(o=(0,l.createBlock)(a,s(i),o))}}const s=(0,l.serialize)(o);e.clipboardData.setData("text/plain",function(e){e=e.replace(/<br>/g,"\n");return(0,sa.__unstableStripHTML)(e).trim().replace(/\n\n+/g,"\n\n")}(s)),e.clipboardData.setData("text/html",s)}function Ly(){const e=(0,c.useRegistry)(),{getBlocksByClientId:t,getSelectedBlockClientIds:n,hasMultiSelection:o,getSettings:r,getBlockName:s,__unstableIsFullySelected:i,__unstableIsSelectionCollapsed:a,__unstableIsSelectionMergeable:d,__unstableGetSelectedBlocksWithPartialSelection:p,canInsertBlockType:h,getBlockRootClientId:g}=(0,c.useSelect)(Gr),{flashBlock:m,removeBlocks:f,replaceBlocks:b,__unstableDeleteSelection:v,__unstableExpandSelection:k,__unstableSplitSelection:_}=(0,c.useDispatch)(Gr),x=Py();return(0,u.useRefEffect)((c=>{function u(u){if(u.defaultPrevented)return;const y=n();if(0===y.length)return;if(!o()){const{target:e}=u,{ownerDocument:t}=e;if("copy"===u.type||"cut"===u.type?(0,sa.documentHasUncollapsedSelection)(t):(0,sa.documentHasSelection)(t)&&!t.activeElement.isContentEditable)return}const{activeElement:S}=u.target.ownerDocument;if(!c.contains(S))return;const w=d(),C=a()||i(),B=!C&&!w;if("copy"===u.type||"cut"===u.type)if(u.preventDefault(),1===y.length&&m(y[0]),B)k();else{let n;if(x(u.type,y),C)n=t(y);else{const[e,o]=p();n=[e,...t(y.slice(1,y.length-1)),o]}Ay(u,n,e)}if("cut"===u.type)C&&!B?f(y):(u.target.ownerDocument.activeElement.contentEditable=!1,v());else if("paste"===u.type){const{__experimentalCanUserUseUnfilteredHTML:e}=r();if("true"===u.clipboardData.getData("rich-text"))return;const{plainText:t,html:n,files:a}=Ry(u),c=i();let d=[];if(a.length){const e=(0,l.getBlockTransforms)("from");d=a.reduce(((t,n)=>{const o=(0,l.findTransform)(e,(e=>"files"===e.type&&e.isMatch([n])));return o&&t.push(o.transform([n])),t}),[]).flat()}else d=(0,l.pasteHandler)({HTML:n,plainText:t,mode:c?"BLOCKS":"AUTO",canUserUseUnfilteredHTML:e});if("string"==typeof d)return;if(c)return b(y,d,d.length-1,-1),void u.preventDefault();if(!o()&&!(0,l.hasBlockSupport)(s(y[0]),"splitting",!1)&&!u.__deprecatedOnSplit)return;const[p]=y,m=g(p),f=[];for(const e of d)if(h(e.name,m))f.push(e);else{const t=s(m),n=e.name!==t?(0,l.switchToBlockType)(e,t):[e];if(!n)return;for(const e of n)for(const t of e.innerBlocks)f.push(t)}_(f),u.preventDefault()}}return c.ownerDocument.addEventListener("copy",u),c.ownerDocument.addEventListener("cut",u),c.ownerDocument.addEventListener("paste",u),()=>{c.ownerDocument.removeEventListener("copy",u),c.ownerDocument.removeEventListener("cut",u),c.ownerDocument.removeEventListener("paste",u)}}),[])}function Oy(){const[e,t,n]=function(){const e=(0,a.useRef)(),t=(0,a.useRef)(),n=(0,a.useRef)(),{hasMultiSelection:o,getSelectedBlockClientId:r,getBlockCount:s}=(0,c.useSelect)(Gr),{setNavigationMode:i,setLastFocus:l}=Q((0,c.useDispatch)(Gr)),d=(0,c.useSelect)((e=>e(Gr).isNavigationMode()),[]),{getLastFocus:p}=Q((0,c.useSelect)(Gr)),h=d?void 0:"0",g=(0,a.useRef)();function m(t){if(g.current)g.current=null;else if(o())e.current.focus();else if(r())p()?.current?p().current.focus():e.current.querySelector(`[data-block="${r()}"]`).focus();else{i(!0);const n=e.current.ownerDocument===t.target.ownerDocument?e.current:e.current.ownerDocument.defaultView.frameElement,o=t.target.compareDocumentPosition(n)&t.target.DOCUMENT_POSITION_FOLLOWING,r=sa.focus.tabbable.find(e.current);r.length&&(o?r[0]:r[r.length-1]).focus()}}const f=(0,U.jsx)("div",{ref:t,tabIndex:h,onFocus:m}),b=(0,U.jsx)("div",{ref:n,tabIndex:h,onFocus:m}),v=(0,u.useRefEffect)((a=>{function c(e){if(e.defaultPrevented)return;if(e.keyCode===la.ESCAPE&&!o())return e.preventDefault(),void i(!0);if(e.keyCode!==la.TAB)return;const s=e.shiftKey,l=s?"findPrevious":"findNext";if(!o()&&!r())return void(e.target===a&&i(!0));const c=sa.focus.tabbable[l](e.target),u=e.target.closest("[data-block]"),d=u&&c&&(Hx(u,c)||Gx(u,c));if((0,sa.isFormElement)(c)&&d)return;const p=s?t:n;g.current=!0,p.current.focus({preventScroll:!0})}function u(e){l({...p(),current:e.target});const{ownerDocument:t}=a;e.relatedTarget||t.activeElement!==t.body||0!==s()||a.focus()}function d(o){if(o.keyCode!==la.TAB)return;if("region"===o.target?.getAttribute("role"))return;if(e.current===o.target)return;const r=o.shiftKey?"findPrevious":"findNext",s=sa.focus.tabbable[r](o.target);s!==t.current&&s!==n.current||(o.preventDefault(),s.focus({preventScroll:!0}))}const{ownerDocument:h}=a,{defaultView:m}=h;return m.addEventListener("keydown",d),a.addEventListener("keydown",c),a.addEventListener("focusout",u),()=>{m.removeEventListener("keydown",d),a.removeEventListener("keydown",c),a.removeEventListener("focusout",u)}}),[]);return[f,(0,u.useMergeRefs)([e,v]),b]}(),o=(0,c.useSelect)((e=>e(Gr).hasMultiSelection()),[]);return[e,(0,u.useMergeRefs)([t,Ly(),My(),By(),Ey(),Ty(),xy(),wy(),Sy(),(0,u.useRefEffect)((e=>{if(e.tabIndex=0,o)return e.classList.add("has-multi-selection"),e.setAttribute("aria-label",(0,C.__)("Multiple selected blocks")),()=>{e.classList.remove("has-multi-selection"),e.removeAttribute("aria-label")}}),[o])]),n]}const Dy=(0,a.forwardRef)((function({children:e,...t},n){const[o,r,s]=Oy();return(0,U.jsxs)(U.Fragment,{children:[o,(0,U.jsx)("div",{...t,ref:(0,u.useMergeRefs)([r,n]),className:ws(t.className,"block-editor-writing-flow"),children:e}),s]})}));let zy=null;function Vy(e,t,n){const o={};for(const t in e)o[t]=e[t];if(e instanceof n.contentDocument.defaultView.MouseEvent){const e=n.getBoundingClientRect();o.clientX+=e.left,o.clientY+=e.top}const r=new t(e.type,o);o.defaultPrevented&&r.preventDefault();!n.dispatchEvent(r)&&e.preventDefault()}function Fy(e){return(0,u.useRefEffect)((()=>{const{defaultView:t}=e;if(!t)return;const{frameElement:n}=t,o=e.documentElement,r=["dragover","mousemove"],s={};for(const e of r)s[e]=e=>{const t=Object.getPrototypeOf(e).constructor.name;Vy(e,window[t],n)},o.addEventListener(e,s[e]);return()=>{for(const e of r)o.removeEventListener(e,s[e])}}))}function Hy({contentRef:e,children:t,tabIndex:n=0,scale:o=1,frameSize:r=0,readonly:s,forwardedRef:i,title:l=(0,C.__)("Editor canvas"),...d}){const{resolvedAssets:p,isPreviewMode:h}=(0,c.useSelect)((e=>{const{getSettings:t}=e(Gr),n=t();return{resolvedAssets:n.__unstableResolvedAssets,isPreviewMode:n.__unstableIsPreviewMode}}),[]),{styles:g="",scripts:m=""}=p,[f,b]=(0,a.useState)(),v=(0,a.useRef)(),[k,_]=(0,a.useState)([]),x=vy(),[y,S,w]=Oy(),[B,{height:I}]=(0,u.useResizeObserver)(),[j,{width:E}]=(0,u.useResizeObserver)(),T=(0,u.useRefEffect)((e=>{let t;function n(e){e.preventDefault()}function o(){const{contentDocument:o,ownerDocument:r}=e,{documentElement:s}=o;t=o,s.classList.add("block-editor-iframe__html"),x(s),_(Array.from(r.body.classList).filter((e=>e.startsWith("admin-color-")||e.startsWith("post-type-")||"wp-embed-responsive"===e))),o.dir=r.dir;for(const e of zy||(zy=Array.from(document.styleSheets).reduce(((e,t)=>{try{t.cssRules}catch(t){return e}const{ownerNode:n,cssRules:o}=t;if(null===n)return e;if(!o)return e;if("wp-reset-editor-styles-css"===n.id)return e;if(!n.id)return e;if(function e(t){return Array.from(t).find((({selectorText:t,conditionText:n,cssRules:o})=>n?e(o):t&&(t.includes(".editor-styles-wrapper")||t.includes(".wp-block"))))}(o)){const t="STYLE"===n.tagName;if(t){const t=n.id.replace("-inline-css","-css"),o=document.getElementById(t);o&&e.push(o.cloneNode(!0))}if(e.push(n.cloneNode(!0)),!t){const t=n.id.replace("-css","-inline-css"),o=document.getElementById(t);o&&e.push(o.cloneNode(!0))}}return e}),[]),zy))o.getElementById(e.id)||(o.head.appendChild(e.cloneNode(!0)),h||console.warn(`${e.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,e));t.addEventListener("dragover",n,!1),t.addEventListener("drop",n,!1)}return e._load=()=>{b(e.contentDocument)},e.addEventListener("load",o),()=>{delete e._load,e.removeEventListener("load",o),t?.removeEventListener("dragover",n),t?.removeEventListener("drop",n)}}),[]),[M,P]=(0,a.useState)(),R=(0,u.useRefEffect)((e=>{const t=e.ownerDocument.defaultView;P(t.innerHeight);const n=()=>{P(t.innerHeight)};return t.addEventListener("resize",n),()=>{t.removeEventListener("resize",n)}}),[]),[N,A]=(0,a.useState)(),L=(0,u.useRefEffect)((e=>{const t=e.ownerDocument.defaultView;A(t.innerWidth);const n=()=>{A(t.innerWidth)};return t.addEventListener("resize",n),()=>{t.removeEventListener("resize",n)}}),[]),O=1!==o;(0,a.useEffect)((()=>{O||(v.current=E)}),[E,O]);const D=(0,u.useDisabled)({isDisabled:!s}),z=(0,u.useMergeRefs)([Fy(f),e,x,S,D,O?R:null]),V=`<!doctype html>\n<html>\n\t<head>\n\t\t<meta charset="utf-8">\n\t\t<script>window.frameElement._load()<\/script>\n\t\t<style>\n\t\t\thtml{\n\t\t\t\theight: auto !important;\n\t\t\t\tmin-height: 100%;\n\t\t\t}\n\t\t\t/* Lowest specificity to not override global styles */\n\t\t\t:where(body) {\n\t\t\t\tmargin: 0;\n\t\t\t\t/* Default background color in case zoom out mode background\n\t\t\t\tcolors the html element */\n\t\t\t\tbackground-color: white;\n\t\t\t}\n\t\t</style>\n\t\t${g}\n\t\t${m}\n\t</head>\n\t<body>\n\t\t<script>document.currentScript.parentElement.remove()<\/script>\n\t</body>\n</html>`,[F,H]=(0,a.useMemo)((()=>{const e=URL.createObjectURL(new window.Blob([V],{type:"text/html"}));return[e,()=>URL.revokeObjectURL(e)]}),[V]);(0,a.useEffect)((()=>H),[H]),(0,a.useEffect)((()=>{if(!f||!O)return;f.documentElement.classList.add("is-zoomed-out");return f.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale","default"===o?Math.min(E,800)/v.current:o),f.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-frame-size","number"==typeof r?`${r}px`:r),f.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-content-height",`${I}px`),f.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-inner-height",`${M}px`),f.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-container-width",`${E}px`),f.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-prev-container-width",`${v.current}px`),()=>{f.documentElement.classList.remove("is-zoomed-out"),f.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-scale"),f.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-frame-size"),f.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-content-height"),f.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-inner-height"),f.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-container-width"),f.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-prev-container-width")}}),[o,r,f,M,I,E,N,O]);const G=n>=0&&!h,$=(0,U.jsxs)(U.Fragment,{children:[G&&y,(0,U.jsx)("iframe",{...d,style:{border:0,...d.style,height:d.style?.height,transition:"all .3s"},ref:(0,u.useMergeRefs)([i,T]),tabIndex:n,src:F,title:l,onKeyDown:e=>{if(d.onKeyDown&&d.onKeyDown(e),e.currentTarget.ownerDocument!==e.target.ownerDocument){const{stopPropagation:t}=e.nativeEvent;e.nativeEvent.stopPropagation=()=>{},e.stopPropagation(),e.nativeEvent.stopPropagation=t,Vy(e,window.KeyboardEvent,e.currentTarget)}},children:f&&(0,a.createPortal)((0,U.jsxs)("body",{ref:z,className:ws("block-editor-iframe__body","editor-styles-wrapper",...k),children:[B,(0,U.jsx)(Ps.__experimentalStyleProvider,{document:f,children:t})]}),f.documentElement)}),G&&w]});return(0,U.jsxs)("div",{className:"block-editor-iframe__container",ref:L,children:[j,(0,U.jsx)("div",{className:ws("block-editor-iframe__scale-container",O&&"is-zoomed-out"),style:{"--wp-block-editor-iframe-zoom-out-container-width":O&&`${E}px`,"--wp-block-editor-iframe-zoom-out-prev-container-width":O&&`${v.current}px`},children:$})]})}const Gy=(0,a.forwardRef)((function(e,t){return(0,c.useSelect)((e=>e(Gr).getSettings().__internalIsInitialized),[])?(0,U.jsx)(Hy,{...e,forwardedRef:t}):null}));var Uy=n(4529);const $y=Uy,Wy=(Uy.stringify,Uy.fromJSON,Uy.plugin,Uy.parse,Uy.list,Uy.document,Uy.comment,Uy.atRule,Uy.rule,Uy.decl,Uy.root,Uy.CssSyntaxError);Uy.Declaration,Uy.Container,Uy.Processor,Uy.Document,Uy.Comment,Uy.Warning,Uy.AtRule,Uy.Result,Uy.Input,Uy.Rule,Uy.Root,Uy.Node;var Ky=n(8036),Zy=n.n(Ky),qy=n(5404),Yy=n.n(qy);const Xy=new Map;const Qy=(e,t="")=>{let n=Xy.get(t);return n||(n=new WeakMap,Xy.set(t,n)),e.map((e=>{let o=n.get(e);return o||(o=function({css:e,ignoredSelectors:t=[],baseURL:n},o=""){if(!o&&!n)return e;const r=e.replace(/:root :where\(body\)/g,"body").replace(/:where\(body\)/g,"body");try{return $y([o&&Zy()(o,{ignoredSelectors:[...t,o]}),n&&Yy()({rootUrl:n})].filter(Boolean)).process(r,{}).css}catch(e){return e instanceof Wy?console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",e.message+"\n"+e.showSourceCode(!1)):console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",e),null}}(e,t),n.set(e,o)),o}))};function Jy(e,t){return(0,a.useCallback)((e=>{if(!e)return;const{ownerDocument:n}=e,{defaultView:o,body:r}=n,s=t?n.querySelector(t):r;let i;if(s)i=o?.getComputedStyle(s,null).getPropertyValue("background-color");else{const e=n.createElement("div");e.classList.add("editor-styles-wrapper"),r.appendChild(e),i=o?.getComputedStyle(e,null).getPropertyValue("background-color"),r.removeChild(e)}const l=_u(i);l.luminance()>.5||0===l.alpha()?r.classList.remove("is-dark-theme"):r.classList.add("is-dark-theme")}),[e,t])}yu([Su,Bu]);const eS=(0,a.memo)((function({styles:e,scope:t}){const n=(0,c.useSelect)((e=>Q(e(Gr)).getStyleOverrides()),[]),[o,r]=(0,a.useMemo)((()=>{const o=Object.values(null!=e?e:[]);for(const[e,t]of n){const n=o.findIndex((({id:t})=>e===t)),r={...t,id:e};-1===n?o.push(r):o[n]=r}return[Qy(o.filter((e=>e?.css)),t),o.filter((e=>"svgs"===e.__unstableType)).map((e=>e.assets)).join("")]}),[e,n,t]);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("style",{ref:Jy(o,t)}),o.map(((e,t)=>(0,U.jsx)("style",{children:e},t))),(0,U.jsx)(Ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 0 0",width:"0",height:"0",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"},dangerouslySetInnerHTML:{__html:r}})]})}));let tS;const nS=2e3,oS=[];function rS({viewportWidth:e,containerWidth:t,minHeight:n,additionalStyles:o=oS}){e||(e=t);const[r,{height:s}]=(0,u.useResizeObserver)(),{styles:i}=(0,c.useSelect)((e=>({styles:e(Gr).getSettings().styles})),[]),l=(0,a.useMemo)((()=>i?[...i,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...o]:i),[i,o]);tS=tS||(0,a.memo)(zC);const d=t/e,p=s?t/(s*d):0;return(0,U.jsx)(Ps.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${d})`,aspectRatio:p,maxHeight:s>nS?nS*d:void 0,minHeight:n},children:(0,U.jsxs)(Gy,{contentRef:(0,u.useRefEffect)((e=>{const{ownerDocument:{documentElement:t}}=e;t.classList.add("block-editor-block-preview__content-iframe"),t.style.position="absolute",t.style.width="100%",e.style.boxSizing="border-box",e.style.position="absolute",e.style.width="100%"}),[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:s,pointerEvents:"none",maxHeight:nS,minHeight:0!==d&&d<1&&n?n/d:n},children:[(0,U.jsx)(eS,{styles:l}),r,(0,U.jsx)(tS,{renderAppender:!1})]})})}function sS(e){const[t,{width:n}]=(0,u.useResizeObserver)();return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{style:{position:"relative",width:"100%",height:0},children:t}),(0,U.jsx)("div",{className:"block-editor-block-preview__container",children:!!n&&(0,U.jsx)(rS,{...e,containerWidth:n})})]})}const iS=[];const lS=(0,a.memo)((function({blocks:e,viewportWidth:t=1200,minHeight:n,additionalStyles:o=iS,__experimentalMinHeight:r,__experimentalPadding:s}){r&&(n=r,y()("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),s&&(o=[...o,{css:`body { padding: ${s}px; }`}],y()("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));const i=(0,c.useSelect)((e=>e(Gr).getSettings()),[]),l=(0,a.useMemo)((()=>({...i,focusMode:!1,__unstableIsPreviewMode:!0})),[i]),u=(0,a.useMemo)((()=>Array.isArray(e)?e:[e]),[e]);return e&&0!==e.length?(0,U.jsx)(fy,{value:u,settings:l,children:(0,U.jsx)(sS,{viewportWidth:t,minHeight:n,additionalStyles:o})}):null}));function aS({blocks:e,props:t={},layout:n}){const o=(0,c.useSelect)((e=>e(Gr).getSettings()),[]),r=(0,a.useMemo)((()=>({...o,styles:void 0,focusMode:!1,__unstableIsPreviewMode:!0})),[o]),s=(0,u.useDisabled)(),i=(0,u.useMergeRefs)([t.ref,s]),l=(0,a.useMemo)((()=>Array.isArray(e)?e:[e]),[e]),d=(0,U.jsxs)(fy,{value:l,settings:r,children:[(0,U.jsx)(eS,{}),(0,U.jsx)(GC,{renderAppender:!1,layout:n})]});return{...t,ref:i,className:ws(t.className,"block-editor-block-preview__live-content","components-disabled"),children:e?.length?d:null}}const cS=function({item:e}){var t;const{name:n,title:o,icon:r,description:s,initialAttributes:i,example:c}=e,u=(0,l.isReusableBlock)(e),d=(0,a.useMemo)((()=>c?(0,l.getBlockFromExample)(n,{attributes:{...c.attributes,...i},innerBlocks:c.innerBlocks}):(0,l.createBlock)(n,i)),[n,c,i]);return(0,U.jsxs)("div",{className:"block-editor-inserter__preview-container",children:[(0,U.jsx)("div",{className:"block-editor-inserter__preview",children:u||c?(0,U.jsx)("div",{className:"block-editor-inserter__preview-content",children:(0,U.jsx)(lS,{blocks:d,viewportWidth:null!==(t=c?.viewportWidth)&&void 0!==t?t:500,additionalStyles:[{css:"body { padding: 24px; }"}]})}):(0,U.jsx)("div",{className:"block-editor-inserter__preview-content-missing",children:(0,C.__)("No preview available.")})}),!u&&(0,U.jsx)(cy,{title:o,icon:r,description:s})]})},{CompositeItemV2:uS}=Q(Ps.privateApis);const dS=(0,a.forwardRef)((function({isFirst:e,as:t,children:n,...o},r){return(0,U.jsx)(uS,{ref:r,role:"option",accessibleWhenDisabled:!0,...o,render:o=>{const r={...o,tabIndex:e?0:o.tabIndex};return t?(0,U.jsx)(t,{...r,children:n}):"function"==typeof n?n(r):(0,U.jsx)(Ps.Button,{...r,children:n})}})})),pS=(0,U.jsx)(G.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"})});function hS({count:e,icon:t,isPattern:n,fadeWhenDisabled:o}){const r=n&&(0,C.__)("Pattern");return(0,U.jsx)("div",{className:"block-editor-block-draggable-chip-wrapper",children:(0,U.jsx)("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip",children:(0,U.jsxs)(Ps.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content",children:[(0,U.jsx)(Ps.FlexItem,{children:t?(0,U.jsx)(jf,{icon:t}):r||(0,C.sprintf)((0,C._n)("%d block","%d blocks",e),e)}),(0,U.jsx)(Ps.FlexItem,{children:(0,U.jsx)(jf,{icon:pS})}),o&&(0,U.jsx)(Ps.FlexItem,{className:"block-editor-block-draggable-chip__disabled",children:(0,U.jsx)("span",{className:"block-editor-block-draggable-chip__disabled-icon"})})]})})})}const gS=({isEnabled:e,blocks:t,icon:n,children:o,pattern:r})=>{const s={type:"inserter",blocks:t},i=(0,c.useSelect)((e=>{const{getBlockType:n}=e(l.store);return 1===t.length&&n(t[0].name)?.icon}),[t]),{startDragging:a,stopDragging:u}=Q((0,c.useDispatch)(Gr));return(0,U.jsx)(Ps.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:s,onDragStart:e=>{a();const n=r?.type===le.user&&"unsynced"!==r?.syncStatus?[(0,l.createBlock)("core/block",{ref:r.id})]:t;e.dataTransfer.setData("text/html",(0,l.serialize)(n))},onDragEnd:()=>{u()},__experimentalDragComponent:(0,U.jsx)(hS,{count:t.length,icon:n||!r&&i,isPattern:!!r}),children:({onDraggableStart:t,onDraggableEnd:n})=>o({draggable:e,onDragStart:e?t:void 0,onDragEnd:e?n:void 0})})};const mS=(0,a.memo)((function({className:e,isFirst:t,item:n,onSelect:o,onHover:r,isDraggable:s,...i}){const c=(0,a.useRef)(!1),u=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},d=(0,a.useMemo)((()=>[(0,l.createBlock)(n.name,n.initialAttributes,(0,l.createBlocksFromInnerBlocksTemplate)(n.innerBlocks))]),[n.name,n.initialAttributes,n.innerBlocks]),p=(0,l.isReusableBlock)(n)&&"unsynced"!==n.syncStatus||(0,l.isTemplatePart)(n);return(0,U.jsx)(gS,{isEnabled:s&&!n.isDisabled,blocks:d,icon:n.icon,children:({draggable:s,onDragStart:l,onDragEnd:a})=>(0,U.jsx)("div",{className:ws("block-editor-block-types-list__list-item",{"is-synced":p}),draggable:s,onDragStart:e=>{c.current=!0,l&&(r(null),l(e))},onDragEnd:e=>{c.current=!1,a&&a(e)},children:(0,U.jsxs)(dS,{isFirst:t,className:ws("block-editor-block-types-list__item",e),disabled:n.isDisabled,onClick:e=>{e.preventDefault(),o(n,(0,la.isAppleOS)()?e.metaKey:e.ctrlKey),r(null)},onKeyDown:e=>{const{keyCode:t}=e;t===la.ENTER&&(e.preventDefault(),o(n,(0,la.isAppleOS)()?e.metaKey:e.ctrlKey),r(null))},onMouseEnter:()=>{c.current||r(n)},onMouseLeave:()=>r(null),...i,children:[(0,U.jsx)("span",{className:"block-editor-block-types-list__item-icon",style:u,children:(0,U.jsx)(jf,{icon:n.icon,showColors:!0})}),(0,U.jsx)("span",{className:"block-editor-block-types-list__item-title",children:(0,U.jsx)(Ps.__experimentalTruncate,{numberOfLines:3,children:n.title})})]})})})}));const fS=(0,a.forwardRef)((function(e,t){const[n,o]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{n&&(0,Io.speak)((0,C.__)("Use left and right arrow keys to move through blocks"))}),[n]),(0,U.jsx)("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{o(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&o(!1)},...e})})),{CompositeGroupV2:bS}=Q(Ps.privateApis);const vS=(0,a.forwardRef)((function(e,t){return(0,U.jsx)(bS,{role:"presentation",ref:t,...e})}));function kS(e,t){const n=[];for(let o=0,r=e.length;o<r;o+=t)n.push(e.slice(o,o+t));return n}const _S=function e({items:t=[],onSelect:n,onHover:o=(()=>{}),children:r,label:s,isDraggable:i=!0}){const a="block-editor-block-types-list",c=(0,u.useInstanceId)(e,a);return(0,U.jsxs)(fS,{className:a,"aria-label":s,children:[kS(t,3).map(((e,t)=>(0,U.jsx)(vS,{children:e.map(((e,r)=>(0,U.jsx)(mS,{item:e,className:(0,l.getBlockMenuDefaultClassName)(e.id),onSelect:n,onHover:o,isDraggable:i&&!e.isDisabled,isFirst:0===t&&0===r,rowId:`${c}-${t}`},e.id)))},t))),r]})};const xS=function({title:e,icon:t,children:n}){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)("div",{className:"block-editor-inserter__panel-header",children:[(0,U.jsx)("h2",{className:"block-editor-inserter__panel-title",children:e}),(0,U.jsx)(Ps.Icon,{icon:t})]}),(0,U.jsx)("div",{className:"block-editor-inserter__panel-content",children:n})]})},{CompositeV2:yS,useCompositeStoreV2:SS}=Q(Ps.privateApis);const wS=function({children:e}){const t=SS({focusShift:!0,focusWrap:"horizontal"});return(0,U.jsx)(yS,{store:t,render:(0,U.jsx)(U.Fragment,{}),children:e})};const CS=function(){return(0,U.jsxs)("div",{className:"block-editor-inserter__no-results",children:[(0,U.jsx)(Hi,{className:"block-editor-inserter__no-results-icon",icon:If}),(0,U.jsx)("p",{children:(0,C.__)("No results found.")})]})},BS=e=>e.name.split("/")[0],IS=6,jS=[];function ES({items:e,collections:t,categories:n,onSelectItem:o,onHover:r,showMostUsedBlocks:s,className:i}){const l=(0,a.useMemo)((()=>ie(e,"frecency","desc").slice(0,IS)),[e]),c=(0,a.useMemo)((()=>e.filter((e=>!e.category))),[e]),d=(0,a.useMemo)((()=>{const n={...t};return Object.keys(t).forEach((t=>{n[t]=e.filter((e=>BS(e)===t)),0===n[t].length&&delete n[t]})),n}),[e,t]);(0,a.useEffect)((()=>()=>r(null)),[]);const p=(0,u.useAsyncList)(n),h=n.length===p.length,g=(0,a.useMemo)((()=>Object.entries(t)),[t]),m=(0,u.useAsyncList)(h?g:jS);return(0,U.jsxs)("div",{className:i,children:[s&&e.length>3&&!!l.length&&(0,U.jsx)(xS,{title:(0,C._x)("Most used","blocks"),children:(0,U.jsx)(_S,{items:l,onSelect:o,onHover:r,label:(0,C._x)("Most used","blocks")})}),p.map((t=>{const n=e.filter((e=>e.category===t.slug));return n&&n.length?(0,U.jsx)(xS,{title:t.title,icon:t.icon,children:(0,U.jsx)(_S,{items:n,onSelect:o,onHover:r,label:t.title})},t.slug):null})),h&&c.length>0&&(0,U.jsx)(xS,{className:"block-editor-inserter__uncategorized-blocks-panel",title:(0,C.__)("Uncategorized"),children:(0,U.jsx)(_S,{items:c,onSelect:o,onHover:r,label:(0,C.__)("Uncategorized")})}),m.map((([e,t])=>{const n=d[e];return n&&n.length?(0,U.jsx)(xS,{title:t.title,icon:t.icon,children:(0,U.jsx)(_S,{items:n,onSelect:o,onHover:r,label:t.title})},e):null}))]})}const TS=(0,a.forwardRef)((function({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:o},r){const[s,i,l,a]=Ib(e,t);if(!s.length)return(0,U.jsx)(CS,{});const c=[],u=[];for(const t of s)"reusable"!==t.category&&(e&&t.rootClientId===e?c.push(t):u.push(t));return(0,U.jsx)(wS,{children:(0,U.jsxs)("div",{ref:r,children:[!!c.length&&(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(ES,{items:c,categories:i,collections:l,onSelectItem:a,onHover:n,showMostUsedBlocks:o,className:"block-editor-inserter__insertable-blocks-at-selection"})}),(0,U.jsx)(ES,{items:u,categories:i,collections:l,onSelectItem:a,onHover:n,showMostUsedBlocks:o,className:"block-editor-inserter__all-blocks"})]})})}));function MS({selectedCategory:e,patternCategories:t,onClickCategory:n}){const o="block-editor-block-patterns-explorer__sidebar";return(0,U.jsx)("div",{className:`${o}__categories-list`,children:t.map((({name:t,label:r})=>(0,U.jsx)(Ps.Button,{label:r,className:`${o}__categories-list__item`,isPressed:e===t,onClick:()=>{n(t)},children:r},t)))})}function PS({searchValue:e,setSearchValue:t}){return(0,U.jsx)("div",{className:"block-editor-block-patterns-explorer__search",children:(0,U.jsx)(Ps.SearchControl,{__nextHasNoMarginBottom:!0,onChange:t,value:e,label:(0,C.__)("Search for patterns"),placeholder:(0,C.__)("Search")})})}const RS=function({selectedCategory:e,patternCategories:t,onClickCategory:n,searchValue:o,setSearchValue:r}){return(0,U.jsxs)("div",{className:"block-editor-block-patterns-explorer__sidebar",children:[(0,U.jsx)(PS,{searchValue:o,setSearchValue:r}),!o&&(0,U.jsx)(MS,{selectedCategory:e,patternCategories:t,onClickCategory:n})]})};function NS({currentPage:e,numPages:t,changePage:n,totalItems:o}){return(0,U.jsxs)(Ps.__experimentalVStack,{className:"block-editor-patterns__grid-pagination-wrapper",children:[(0,U.jsx)(Ps.__experimentalText,{variant:"muted",children:(0,C.sprintf)((0,C._n)("%s item","%s items",o),o)}),t>1&&(0,U.jsxs)(Ps.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",className:"block-editor-patterns__grid-pagination",children:[(0,U.jsxs)(Ps.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-previous",children:[(0,U.jsx)(Ps.Button,{variant:"tertiary",onClick:()=>n(1),disabled:1===e,"aria-label":(0,C.__)("First page"),__experimentalIsFocusable:!0,children:(0,U.jsx)("span",{children:"«"})}),(0,U.jsx)(Ps.Button,{variant:"tertiary",onClick:()=>n(e-1),disabled:1===e,"aria-label":(0,C.__)("Previous page"),__experimentalIsFocusable:!0,children:(0,U.jsx)("span",{children:"‹"})})]}),(0,U.jsx)(Ps.__experimentalText,{variant:"muted",children:(0,C.sprintf)((0,C._x)("%1$s of %2$s","paging"),e,t)}),(0,U.jsxs)(Ps.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-next",children:[(0,U.jsx)(Ps.Button,{variant:"tertiary",onClick:()=>n(e+1),disabled:e===t,"aria-label":(0,C.__)("Next page"),__experimentalIsFocusable:!0,children:(0,U.jsx)("span",{children:"›"})}),(0,U.jsx)(Ps.Button,{variant:"tertiary",onClick:()=>n(t),disabled:e===t,"aria-label":(0,C.__)("Last page"),size:"default",__experimentalIsFocusable:!0,children:(0,U.jsx)("span",{children:"»"})})]})]})]})}const{CompositeV2:AS,CompositeItemV2:LS,useCompositeStoreV2:OS}=Q(Ps.privateApis),DS=({showTooltip:e,title:t,children:n})=>e?(0,U.jsx)(Ps.Tooltip,{text:t,children:n}):(0,U.jsx)(U.Fragment,{children:n});function zS({id:e,isDraggable:t,pattern:n,onClick:o,onHover:r,showTitle:s=!0,showTooltip:i,category:c}){const[d,p]=(0,a.useState)(!1),{blocks:h,viewportWidth:g}=n,m=`block-editor-block-patterns-list__item-description-${(0,u.useInstanceId)(zS)}`,f=(0,a.useMemo)((()=>c&&t?(null!=h?h:[]).map((e=>{const t=(0,l.cloneBlock)(e);return t.attributes.metadata?.categories?.includes(c)&&(t.attributes.metadata.categories=[c]),t})):h),[h,t,c]);return(0,U.jsx)(gS,{isEnabled:t,blocks:f,pattern:n,children:({draggable:t,onDragStart:l,onDragEnd:a})=>(0,U.jsx)("div",{className:"block-editor-block-patterns-list__list-item",draggable:t,onDragStart:e=>{p(!0),l&&(r?.(null),l(e))},onDragEnd:e=>{p(!1),a&&a(e)},children:(0,U.jsx)(DS,{showTooltip:i&&!n.type!==le.user,title:n.title,children:(0,U.jsxs)(LS,{render:(0,U.jsx)("div",{role:"option","aria-label":n.title,"aria-describedby":n.description?m:void 0,className:ws("block-editor-block-patterns-list__item",{"block-editor-block-patterns-list__list-item-synced":n.type===le.user&&!n.syncStatus})}),id:e,onClick:()=>{o(n,h),r?.(null)},onMouseEnter:()=>{d||r?.(n)},onMouseLeave:()=>r?.(null),children:[(0,U.jsx)(lS,{blocks:h,viewportWidth:g}),s&&(0,U.jsxs)(Ps.__experimentalHStack,{className:"block-editor-patterns__pattern-details",spacing:2,children:[n.type===le.user&&!n.syncStatus&&(0,U.jsx)("div",{className:"block-editor-patterns__pattern-icon-wrapper",children:(0,U.jsx)(Hi,{className:"block-editor-patterns__pattern-icon",icon:$})}),(!i||n.type===le.user)&&(0,U.jsx)("div",{className:"block-editor-block-patterns-list__item-title",children:n.title})]}),!!n.description&&(0,U.jsx)(Ps.VisuallyHidden,{id:m,children:n.description})]})})})})}function VS(){return(0,U.jsx)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}const FS=(0,a.forwardRef)((function({isDraggable:e,blockPatterns:t,shownPatterns:n,onHover:o,onClickPattern:r,orientation:s,label:i=(0,C.__)("Block patterns"),category:l,showTitle:c=!0,showTitlesAsTooltip:u,pagingProps:d},p){const h=OS({orientation:s}),{setActiveId:g}=h;return(0,a.useEffect)((()=>{g(void 0)}),[g,n,t]),(0,U.jsxs)(AS,{store:h,role:"listbox",className:"block-editor-block-patterns-list","aria-label":i,ref:p,children:[t.map((t=>n.includes(t)?(0,U.jsx)(zS,{id:t.name,pattern:t,onClick:r,onHover:o,isDraggable:e,showTitle:c,showTooltip:u,category:l},t.name):(0,U.jsx)(VS,{},t.name))),d&&(0,U.jsx)(NS,{...d})]})}));function HS({destinationRootClientId:e,destinationIndex:t,rootClientId:n,registry:o}){if(n===e)return t;const r=["",...o.select(Gr).getBlockParents(e),e],s=r.indexOf(n);return-1!==s?o.select(Gr).getBlockIndex(r[s+1])+1:o.select(Gr).getBlockOrder(n).length}const GS=function({rootClientId:e="",insertionIndex:t,clientId:n,isAppender:o,onSelect:r,shouldFocusBlock:s=!0,selectBlockOnInsert:i=!0}){const u=(0,c.useRegistry)(),{getSelectedBlock:d}=(0,c.useSelect)(Gr),{destinationRootClientId:p,destinationIndex:h}=(0,c.useSelect)((r=>{const{getSelectedBlockClientId:s,getBlockRootClientId:i,getBlockIndex:l,getBlockOrder:a}=r(Gr),c=s();let u,d=e;return void 0!==t?u=t:n?u=l(n):!o&&c?(d=i(c),u=l(c)+1):u=a(d).length,{destinationRootClientId:d,destinationIndex:u}}),[e,t,n,o]),{replaceBlocks:g,insertBlocks:m,showInsertionPoint:f,hideInsertionPoint:b,setLastFocus:v}=Q((0,c.useDispatch)(Gr)),k=(0,a.useCallback)(((e,t,n=!1,a)=>{(n||s||i)&&v(null);const c=d();!o&&c&&(0,l.isUnmodifiedDefaultBlock)(c)?g(c.clientId,e,null,s||n?0:null,t):m(e,o||void 0===a?h:HS({destinationRootClientId:p,destinationIndex:h,rootClientId:a,registry:u}),o||void 0===a?p:a,i,s||n?0:null,t);const f=Array.isArray(e)?e.length:1,b=(0,C.sprintf)((0,C._n)("%d block added.","%d blocks added.",f),f);(0,Io.speak)(b),r&&r(e)}),[o,d,g,m,p,h,r,s,i]),_=(0,a.useCallback)((e=>{e?.hasOwnProperty("rootClientId")?f(e.rootClientId,HS({destinationRootClientId:p,destinationIndex:h,rootClientId:e.rootClientId,registry:u})):b()}),[f,b,p,h]);return[p,k,_]},US=(e,t,n)=>{const{patternCategories:o,patterns:r,userPatternCategories:s}=(0,c.useSelect)((e=>{const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(Gr),{__experimentalUserPatternCategories:r,__experimentalBlockPatternCategories:s}=o();return{patterns:n(t),userPatternCategories:r,patternCategories:s}}),[t]),i=(0,a.useMemo)((()=>{const e=[...o];return s?.forEach((t=>{e.find((e=>e.name===t.name))||e.push(t)})),e}),[o,s]),{createSuccessNotice:u}=(0,c.useDispatch)(jo.store),d=(0,a.useCallback)(((t,o)=>{const r=t.type===le.user&&"unsynced"!==t.syncStatus?[(0,l.createBlock)("core/block",{ref:t.id})]:o;e((null!=r?r:[]).map((e=>{const t=(0,l.cloneBlock)(e);return t.attributes.metadata?.categories?.includes(n)&&(t.attributes.metadata.categories=[n]),t})),t.name),u((0,C.sprintf)((0,C.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar",id:"block-pattern-inserted-notice"})}),[u,e,n]);return[r,i,d]},$S=20,WS=5;function KS(e,t,n,o=""){const[r,s]=(0,a.useState)(1),i=(0,u.usePrevious)(t),l=(0,u.usePrevious)(o);i===t&&l===o||1===r||s(1);const c=e.length,d=r-1,p=(0,a.useMemo)((()=>e.slice(d*$S,d*$S+$S)),[d,e]),h=(0,u.useAsyncList)(p,{step:WS}),g=Math.ceil(e.length/$S);return(0,a.useEffect)((function(){const e=(0,sa.getScrollContainer)(n?.current);e?.scrollTo(0,0)}),[t,n]),{totalItems:c,categoryPatterns:p,categoryPatternsAsyncList:h,numPages:g,changePage:e=>{const t=(0,sa.getScrollContainer)(n?.current);t?.scrollTo(0,0),s(e)},currentPage:r}}function ZS({filterValue:e,filteredBlockPatternsLength:t}){return e?(0,U.jsx)(Ps.__experimentalHeading,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count",children:(0,C.sprintf)((0,C._n)("%d pattern found","%d patterns found",t),t)}):null}const qS=function({searchValue:e,selectedCategory:t,patternCategories:n,rootClientId:o}){const r=(0,a.useRef)(),s=(0,u.useDebounce)(Io.speak,500),[i,l]=GS({rootClientId:o,shouldFocusBlock:!0}),[c,,d]=US(l,i,t),p=(0,a.useMemo)((()=>n.map((e=>e.name))),[n]),h=(0,a.useMemo)((()=>{const n=c.filter((e=>{if(t===ce.name)return!0;if(t===ue.name&&e.type===le.user)return!0;if("uncategorized"===t){const t=e.categories.some((e=>p.includes(e)));return!e.categories?.length||!t}return e.categories?.includes(t)}));return e?Cb(n,e):n}),[e,c,t,p]);(0,a.useEffect)((()=>{if(!e)return;const t=h.length,n=(0,C.sprintf)((0,C._n)("%d result found.","%d results found.",t),t);s(n)}),[e,s,h.length]);const g=KS(h,t,r),[m,f]=(0,a.useState)(e);e!==m&&(f(e),g.changePage(1));const b=!!h?.length;return(0,U.jsxs)("div",{className:"block-editor-block-patterns-explorer__list",ref:r,children:[(0,U.jsx)(ZS,{filterValue:e,filteredBlockPatternsLength:h.length}),(0,U.jsx)(wS,{children:b&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(FS,{shownPatterns:g.categoryPatternsAsyncList,blockPatterns:g.categoryPatterns,onClickPattern:d,isDraggable:!1}),(0,U.jsx)(NS,{...g})]})})]})};function YS(e,t="all"){const[n,o]=US(void 0,e),r=(0,a.useMemo)((()=>"all"===t?n:n.filter((e=>!de(e,t)))),[t,n]),s=(0,a.useMemo)((()=>{const e=o.filter((e=>r.some((t=>t.categories?.includes(e.name))))).sort(((e,t)=>e.label.localeCompare(t.label)));return r.some((e=>!function(e,t){return!(!e.categories||!e.categories.length)&&e.categories.some((e=>t.some((t=>t.name===e))))}(e,o)))&&!e.find((e=>"uncategorized"===e.name))&&e.push({name:"uncategorized",label:(0,C._x)("Uncategorized")}),r.some((e=>e.type===le.user))&&e.unshift(ue),r.length>0&&e.unshift({name:ce.name,label:ce.label}),(0,Io.speak)((0,C.sprintf)((0,C._n)("%d category button displayed.","%d category buttons displayed.",e.length),e.length)),e}),[o,r]);return s}function XS({initialCategory:e,rootClientId:t}){const[n,o]=(0,a.useState)(""),[r,s]=(0,a.useState)(e?.name),i=YS(t);return(0,U.jsxs)("div",{className:"block-editor-block-patterns-explorer",children:[(0,U.jsx)(RS,{selectedCategory:r,patternCategories:i,onClickCategory:s,searchValue:n,setSearchValue:o}),(0,U.jsx)(qS,{searchValue:n,selectedCategory:r,patternCategories:i,rootClientId:t})]})}const QS=function({onModalClose:e,...t}){return(0,U.jsx)(Ps.Modal,{title:(0,C.__)("Patterns"),onRequestClose:e,isFullScreen:!0,children:(0,U.jsx)(XS,{...t})})};function JS({title:e}){return(0,U.jsx)(Ps.__experimentalVStack,{spacing:0,children:(0,U.jsx)(Ps.__experimentalView,{children:(0,U.jsx)(Ps.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3,children:(0,U.jsxs)(Ps.__experimentalHStack,{spacing:2,children:[(0,U.jsx)(Ps.__experimentalNavigatorBackButton,{style:{minWidth:24,padding:0},icon:(0,C.isRTL)()?ly:ay,size:"small",label:(0,C.__)("Back")}),(0,U.jsx)(Ps.__experimentalSpacer,{children:(0,U.jsx)(Ps.__experimentalHeading,{level:5,children:e})})]})})})})}function ew({categories:e,children:t}){return(0,U.jsxs)(Ps.__experimentalNavigatorProvider,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation",children:[(0,U.jsx)(Ps.__experimentalNavigatorScreen,{path:"/",children:(0,U.jsx)(Ps.__experimentalItemGroup,{children:e.map((e=>(0,U.jsx)(Ps.__experimentalNavigatorButton,{path:`/category/${e.name}`,as:Ps.__experimentalItem,isAction:!0,children:(0,U.jsxs)(Ps.__experimentalHStack,{children:[(0,U.jsx)(Ps.FlexBlock,{children:e.label}),(0,U.jsx)(Hi,{icon:(0,C.isRTL)()?ay:ly})]})},e.name)))})}),e.map((e=>(0,U.jsxs)(Ps.__experimentalNavigatorScreen,{path:`/category/${e.name}`,children:[(0,U.jsx)(JS,{title:(0,C.__)("Back")}),t(e)]},e.name)))]})}const tw=e=>"all"!==e,nw=e=>e.name===ue.name;function ow({setPatternSyncFilter:e,setPatternSourceFilter:t,patternSyncFilter:n,patternSourceFilter:o,scrollContainerRef:r,category:s}){const i=s.name===ue.name?le.user:o,l=tw(i),c=nw(s),u=(0,a.useMemo)((()=>[{value:"all",label:(0,C._x)("All","patterns")},{value:ae.full,label:(0,C._x)("Synced","patterns"),disabled:l},{value:ae.unsynced,label:(0,C._x)("Not synced","patterns"),disabled:l}]),[l]),d=(0,a.useMemo)((()=>[{value:"all",label:(0,C._x)("All","patterns"),disabled:c},{value:le.directory,label:(0,C.__)("Pattern Directory"),disabled:c},{value:le.theme,label:(0,C.__)("Theme & Plugins"),disabled:c},{value:le.user,label:(0,C.__)("User")}]),[c]);return(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(Ps.DropdownMenu,{popoverProps:{placement:"right-end"},label:(0,C.__)("Filter patterns"),toggleProps:{size:"compact"},icon:(0,U.jsx)(Hi,{icon:(0,U.jsx)(Ps.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,U.jsx)(Ps.Path,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"currentColor"})})}),children:()=>(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ps.MenuGroup,{label:(0,C.__)("Source"),children:(0,U.jsx)(Ps.MenuItemsChoice,{choices:d,onSelect:n=>{var o;t(o=n),tw(o)&&e("all"),r.current?.scrollTo(0,0)},value:i})}),(0,U.jsx)(Ps.MenuGroup,{label:(0,C.__)("Type"),children:(0,U.jsx)(Ps.MenuItemsChoice,{choices:u,onSelect:t=>{e(t),r.current?.scrollTo(0,0)},value:n})}),(0,U.jsx)("div",{className:"block-editor-tool-selector__help",children:(0,a.createInterpolateElement)((0,C.__)("Patterns are available from the <Link>WordPress.org Pattern Directory</Link>, bundled in the active theme, or created by users on this site. Only patterns created on this site can be synced."),{Link:(0,U.jsx)(Ps.ExternalLink,{href:(0,C.__)("https://wordpress.org/patterns/")})})})]})})})}const rw=()=>{};function sw({rootClientId:e,onInsert:t,onHover:n=rw,category:o,showTitlesAsTooltip:r}){const[s,,i]=US(t,e,o?.name),[l,c]=(0,a.useState)("all"),[u,d]=(0,a.useState)("all"),p=YS(e,u),h=(0,a.useRef)(),g=(0,a.useMemo)((()=>s.filter((e=>!de(e,u,l)&&(o.name===ce.name||(o.name===ue.name&&e.type===le.user||("uncategorized"===o.name?!e.categories||!e.categories.some((e=>p.some((t=>t.name===e)))):e.categories?.includes(o.name))))))),[s,p,o.name,u,l]),m=KS(g,o,h),{changePage:f}=m;(0,a.useEffect)((()=>()=>n(null)),[]);const b=(0,a.useCallback)((e=>{c(e),f(1)}),[c,f]),v=(0,a.useCallback)((e=>{d(e),f(1)}),[d,f]);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Ps.__experimentalVStack,{spacing:2,className:"block-editor-inserter__patterns-category-panel-header",children:[(0,U.jsxs)(Ps.__experimentalHStack,{children:[(0,U.jsx)(Ps.FlexBlock,{children:(0,U.jsx)(Ps.__experimentalHeading,{className:"block-editor-inserter__patterns-category-panel-title",size:13,level:4,as:"div",children:o.label})}),(0,U.jsx)(ow,{patternSyncFilter:l,patternSourceFilter:u,setPatternSyncFilter:b,setPatternSourceFilter:v,scrollContainerRef:h,category:o})]}),!g.length&&(0,U.jsx)(Ps.__experimentalText,{variant:"muted",className:"block-editor-inserter__patterns-category-no-results",children:(0,C.__)("No results found")})]}),g.length>0&&(0,U.jsx)(FS,{ref:h,shownPatterns:m.categoryPatternsAsyncList,blockPatterns:m.categoryPatterns,onClickPattern:i,onHover:n,label:o.label,orientation:"vertical",category:o.name,isDraggable:!0,showTitlesAsTooltip:r,patternFilter:u,pagingProps:m})]})}const{Tabs:iw}=Q(Ps.privateApis);const lw=function({categories:e,selectedCategory:t,onSelectCategory:n,children:o}){return(0,U.jsxs)(iw,{className:"block-editor-inserter__category-tabs",selectOnMove:!1,selectedTabId:t?t.name:null,orientation:"vertical",onSelect:t=>{n(e.find((e=>e.name===t)))},children:[(0,U.jsx)(iw.TabList,{className:"block-editor-inserter__category-tablist",children:e.map((e=>(0,U.jsx)(iw.Tab,{tabId:e.name,className:"block-editor-inserter__category-tab","aria-label":e.label,"aria-current":e===t?"true":void 0,children:(0,U.jsxs)(Ps.__experimentalHStack,{children:[(0,U.jsx)(Ps.FlexBlock,{children:e.label}),(0,U.jsx)(Hi,{icon:(0,C.isRTL)()?ay:ly})]})},e.name)))}),e.map((e=>(0,U.jsx)(iw.TabPanel,{tabId:e.name,focusable:!1,className:"block-editor-inserter__category-panel",children:o},e.name)))]})};const aw=function({onSelectCategory:e,selectedCategory:t,onInsert:n,rootClientId:o,children:r}){const[s,i]=(0,a.useState)(!1),l=YS(o),d=(0,u.useViewportMatch)("medium","<");return(0,c.useSelect)((e=>Q(e(Gr)).isResolvingPatterns()),[])?(0,U.jsx)("div",{className:"block-editor-inserter__patterns-loading",children:(0,U.jsx)(Ps.Spinner,{})}):l.length?(0,U.jsxs)(U.Fragment,{children:[!d&&(0,U.jsxs)("div",{className:"block-editor-inserter__block-patterns-tabs-container",children:[(0,U.jsx)(lw,{categories:l,selectedCategory:t,onSelectCategory:e,children:r}),(0,U.jsx)(Ps.Button,{className:"block-editor-inserter__patterns-explore-button",onClick:()=>i(!0),variant:"secondary",children:(0,C.__)("Explore all patterns")})]}),d&&(0,U.jsx)(ew,{categories:l,children:e=>(0,U.jsx)("div",{className:"block-editor-inserter__category-panel",children:(0,U.jsx)(sw,{onInsert:n,rootClientId:o,category:e,showTitlesAsTooltip:!1},e.name)})}),s&&(0,U.jsx)(QS,{initialCategory:t||l[0],patternCategories:l,onModalClose:()=>i(!1),rootClientId:o})]}):(0,U.jsx)(CS,{})};function cw({rootClientId:e,onInsert:t,onHover:n,category:o,showTitlesAsTooltip:r,patternFilter:s}){return(0,U.jsx)(sw,{rootClientId:e,onInsert:t,onHover:n,category:o,showTitlesAsTooltip:r,patternFilter:s},o.name)}function uw(e){return Wf(),(0,U.jsx)(cw,{...e})}function dw(e){return window.__experimentalEnableZoomedOutPatternsTab?(0,U.jsx)(uw,{...e}):(0,U.jsx)(cw,{...e})}const pw=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})}),hw={image:"img",video:"video",audio:"audio"};function gw(e,t){const n={id:e.id||void 0,caption:e.caption||void 0},o=e.url,r=e.alt||void 0;"image"===t?(n.url=o,n.alt=r):["video","audio"].includes(t)&&(n.src=o);const s=hw[t],i=(0,U.jsx)(s,{src:e.previewUrl||o,alt:r,controls:"audio"===t||void 0,inert:"true",onError:({currentTarget:t})=>{t.src===e.previewUrl&&(t.src=o)}});return[(0,l.createBlock)(`core/${t}`,n),i]}const mw=["image"],fw=25,bw={position:"bottom left",className:"block-editor-inserter__media-list__item-preview-options__popover"},{CompositeItemV2:vw}=Q(Ps.privateApis);function kw({category:e,media:t}){if(!e.getReportUrl)return null;const n=e.getReportUrl(t);return(0,U.jsx)(Ps.DropdownMenu,{className:"block-editor-inserter__media-list__item-preview-options",label:(0,C.__)("Options"),popoverProps:bw,icon:Qb,children:()=>(0,U.jsx)(Ps.MenuGroup,{children:(0,U.jsx)(Ps.MenuItem,{onClick:()=>window.open(n,"_blank").focus(),icon:pw,children:(0,C.sprintf)((0,C.__)("Report %s"),e.mediaType)})})})}function _w({onClose:e,onSubmit:t}){return(0,U.jsxs)(Ps.Modal,{title:(0,C.__)("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal",children:[(0,U.jsxs)(Ps.__experimentalVStack,{spacing:3,children:[(0,U.jsx)("p",{children:(0,C.__)("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")}),(0,U.jsx)("p",{children:(0,C.__)("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation.")})]}),(0,U.jsxs)(Ps.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,U.jsx)(Ps.FlexItem,{children:(0,U.jsx)(Ps.Button,{variant:"tertiary",onClick:e,children:(0,C.__)("Cancel")})}),(0,U.jsx)(Ps.FlexItem,{children:(0,U.jsx)(Ps.Button,{variant:"primary",onClick:t,children:(0,C.__)("Insert")})})]})]})}function xw({media:e,onClick:t,category:n}){const[o,r]=(0,a.useState)(!1),[s,i]=(0,a.useState)(!1),[u,d]=(0,a.useState)(!1),[p,h]=(0,a.useMemo)((()=>gw(e,n.mediaType)),[e,n.mediaType]),{createErrorNotice:g,createSuccessNotice:m}=(0,c.useDispatch)(jo.store),{getSettings:f}=(0,c.useSelect)(Gr),b=(0,a.useCallback)((e=>{if(u)return;const n=f(),o=(0,l.cloneBlock)(e),{id:s,url:i,caption:a}=o.attributes;s||n.mediaUpload?s?t(o):(d(!0),window.fetch(i).then((e=>e.blob())).then((e=>{n.mediaUpload({filesList:[e],additionalData:{caption:a},onFileChange([e]){(0,ia.isBlobURL)(e.url)||(t({...o,attributes:{...o.attributes,id:e.id,url:e.url}}),m((0,C.__)("Image uploaded and inserted."),{type:"snackbar"}),d(!1))},allowedTypes:mw,onError(e){g(e,{type:"snackbar"}),d(!1)}})})).catch((()=>{r(!0),d(!1)}))):r(!0)}),[u,f,t,m,g]),v="string"==typeof e.title?e.title:e.title?.rendered||(0,C.__)("no title");let k;if(v.length>fw){const e="...";k=v.slice(0,fw-e.length)+e}const _=(0,a.useCallback)((()=>i(!0)),[]),x=(0,a.useCallback)((()=>i(!1)),[]);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(gS,{isEnabled:!0,blocks:[p],children:({draggable:t,onDragStart:o,onDragEnd:r})=>(0,U.jsx)("div",{className:ws("block-editor-inserter__media-list__list-item",{"is-hovered":s}),draggable:t,onDragStart:o,onDragEnd:r,children:(0,U.jsxs)("div",{onMouseEnter:_,onMouseLeave:x,children:[(0,U.jsx)(Ps.Tooltip,{text:k||v,children:(0,U.jsx)(vw,{render:(0,U.jsx)("div",{"aria-label":v,role:"option",className:"block-editor-inserter__media-list__item"}),onClick:()=>b(p),children:(0,U.jsxs)("div",{className:"block-editor-inserter__media-list__item-preview",children:[h,u&&(0,U.jsx)("div",{className:"block-editor-inserter__media-list__item-preview-spinner",children:(0,U.jsx)(Ps.Spinner,{})})]})})}),!u&&(0,U.jsx)(kw,{category:n,media:e})]})})}),o&&(0,U.jsx)(_w,{onClose:()=>r(!1),onSubmit:()=>{t((0,l.cloneBlock)(p)),m((0,C.__)("Image inserted."),{type:"snackbar"}),r(!1)}})]})}const{CompositeV2:yw,useCompositeStoreV2:Sw}=Q(Ps.privateApis);const ww=function({mediaList:e,category:t,onClick:n,label:o=(0,C.__)("Media List")}){const r=Sw();return(0,U.jsx)(yw,{store:r,role:"listbox",className:"block-editor-inserter__media-list","aria-label":o,children:e.map(((e,o)=>(0,U.jsx)(xw,{media:e,category:t,onClick:n},e.id||e.sourceId||o)))})};const Cw=10;function Bw({rootClientId:e,onInsert:t,category:n}){const[o,r,s]=(0,u.useDebouncedInput)(),{mediaList:i,isLoading:l}=function(e,t={}){const[n,o]=(0,a.useState)(),[r,s]=(0,a.useState)(!1),i=(0,a.useRef)();return(0,a.useEffect)((()=>{(async()=>{const n=JSON.stringify({category:e.name,...t});i.current=n,s(!0),o([]);const r=await(e.fetch?.(t));n===i.current&&(o(r),s(!1))})()}),[e.name,...Object.values(t)]),{mediaList:n,isLoading:r}}(n,{per_page:s?20:Cw,search:s}),c="block-editor-inserter__media-panel",d=n.labels.search_items||(0,C.__)("Search");return(0,U.jsxs)("div",{className:c,children:[(0,U.jsx)(Ps.SearchControl,{className:`${c}-search`,onChange:r,value:o,label:d,placeholder:d}),l&&(0,U.jsx)("div",{className:`${c}-spinner`,children:(0,U.jsx)(Ps.Spinner,{})}),!l&&!i?.length&&(0,U.jsx)(CS,{}),!l&&!!i?.length&&(0,U.jsx)(ww,{rootClientId:e,onClick:t,mediaList:i,category:n})]})}const Iw=["image","video","audio"];const jw=function({rootClientId:e,selectedCategory:t,onSelectCategory:n,onInsert:o,children:r}){const s=function(e){const[t,n]=(0,a.useState)([]),o=(0,c.useSelect)((e=>Q(e(Gr)).getInserterMediaCategories()),[]),{canInsertImage:r,canInsertVideo:s,canInsertAudio:i}=(0,c.useSelect)((t=>{const{canInsertBlockType:n}=t(Gr);return{canInsertImage:n("core/image",e),canInsertVideo:n("core/video",e),canInsertAudio:n("core/audio",e)}}),[e]);return(0,a.useEffect)((()=>{(async()=>{const e=[];if(!o)return;const t=new Map(await Promise.all(o.map((async e=>{if(e.isExternalResource)return[e.name,!0];let t=[];try{t=await e.fetch({per_page:1})}catch(e){}return[e.name,!!t.length]})))),l={image:r,video:s,audio:i};o.forEach((n=>{l[n.mediaType]&&t.get(n.name)&&e.push(n)})),e.length&&n(e)})()}),[r,s,i,o]),t}(e),i=(0,u.useViewportMatch)("medium","<"),l=(0,a.useCallback)((e=>{if(!e?.url)return;const[t]=gw(e,e.type);o(t)}),[o]),d=(0,a.useMemo)((()=>s.map((e=>({...e,label:e.labels.name})))),[s]);return d.length?(0,U.jsxs)(U.Fragment,{children:[!i&&(0,U.jsxs)("div",{className:"block-editor-inserter__media-tabs-container",children:[(0,U.jsx)(lw,{categories:d,selectedCategory:t,onSelectCategory:n,children:r}),(0,U.jsx)(pa,{children:(0,U.jsx)(da,{multiple:!1,onSelect:l,allowedTypes:Iw,render:({open:e})=>(0,U.jsx)(Ps.Button,{onClick:t=>{t.target.focus(),e()},className:"block-editor-inserter__media-library-button",variant:"secondary","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal",children:(0,C.__)("Open Media Library")})})})]}),i&&(0,U.jsx)(ew,{categories:d,children:t=>(0,U.jsx)(Bw,{onInsert:o,rootClientId:e,category:t})})]}):(0,U.jsx)(CS,{})},{Fill:Ew,Slot:Tw}=(0,Ps.createSlotFill)("__unstableInserterMenuExtension");Ew.Slot=Tw;const Mw=Ew,Pw=[];const Rw=function({filterValue:e,onSelect:t,onHover:n,onHoverPattern:o,rootClientId:r,clientId:s,isAppender:i,__experimentalInsertionIndex:l,maxBlockPatterns:d,maxBlockTypes:p,showBlockDirectory:h=!1,isDraggable:g=!0,shouldFocusBlock:m=!0,prioritizePatterns:f,selectBlockOnInsert:b,isQuick:v}){const k=(0,u.useDebounce)(Io.speak,500),{prioritizedBlocks:_}=(0,c.useSelect)((e=>{const t=e(Gr).getBlockListSettings(r);return{prioritizedBlocks:t?.prioritizedInserterBlocks||Pw}}),[r]),[x,y]=GS({onSelect:t,rootClientId:r,clientId:s,isAppender:i,insertionIndex:l,shouldFocusBlock:m,selectBlockOnInsert:b}),[S,w,B,I]=Ib(x,y,v),[j,,E]=US(y,x),T=(0,a.useMemo)((()=>{if(0===d)return[];const t=Cb(j,e);return void 0!==d?t.slice(0,d):t}),[e,j,d]);let M=p;f&&T.length>2&&(M=0);const P=(0,a.useMemo)((()=>{if(0===M)return[];let t=ie(S.filter((e=>"core/block"!==e.name)),"frecency","desc");!e&&_.length&&(t=jb(t,_));const n=wb(t,w,B,e);return void 0!==M?n.slice(0,M):n}),[e,S,w,B,M,_]);(0,a.useEffect)((()=>{if(!e)return;const t=P.length+T.length,n=(0,C.sprintf)((0,C._n)("%d result found.","%d results found.",t),t);k(n)}),[e,k,P,T]);const R=(0,u.useAsyncList)(P,{step:9}),N=(0,u.useAsyncList)(R.length===P.length?T:Pw),A=P.length>0||T.length>0,L=!!P.length&&(0,U.jsx)(xS,{title:(0,U.jsx)(Ps.VisuallyHidden,{children:(0,C.__)("Blocks")}),children:(0,U.jsx)(_S,{items:R,onSelect:I,onHover:n,label:(0,C.__)("Blocks"),isDraggable:g})}),O=!!T.length&&(0,U.jsx)(xS,{title:(0,U.jsx)(Ps.VisuallyHidden,{children:(0,C.__)("Block patterns")}),children:(0,U.jsx)("div",{className:"block-editor-inserter__quick-inserter-patterns",children:(0,U.jsx)(FS,{shownPatterns:N,blockPatterns:T,onClickPattern:E,onHover:o,isDraggable:g})})});return(0,U.jsxs)(wS,{children:[!h&&!A&&(0,U.jsx)(CS,{}),f?O:L,!!P.length&&!!T.length&&(0,U.jsx)("div",{className:"block-editor-inserter__quick-inserter-separator"}),f?L:O,h&&(0,U.jsx)(Mw.Slot,{fillProps:{onSelect:I,onHover:n,filterValue:e,hasItems:A,rootClientId:x},children:e=>e.length?e:A?null:(0,U.jsx)(CS,{})})]})},Nw=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})}),{Tabs:Aw}=Q(Ps.privateApis),Lw={name:"blocks",title:(0,C.__)("Blocks")},Ow={name:"patterns",title:(0,C.__)("Patterns")},Dw={name:"media",title:(0,C.__)("Media")};const zw=(0,a.forwardRef)((function({onSelect:e,children:t,onClose:n,selectedTab:o},r){const s=[Lw,Ow,Dw];return(0,U.jsx)("div",{className:"block-editor-inserter__tabs",ref:r,children:(0,U.jsxs)(Aw,{onSelect:e,selectedTabId:o,children:[(0,U.jsxs)("div",{className:"block-editor-inserter__tablist-and-close-button",children:[(0,U.jsx)(Ps.Button,{className:"block-editor-inserter__close-button",icon:Nw,label:(0,C.__)("Close block inserter"),onClick:()=>n(),size:"small"}),(0,U.jsx)(Aw.TabList,{className:"block-editor-inserter__tablist",children:s.map((e=>(0,U.jsx)(Aw.Tab,{tabId:e.name,className:"block-editor-inserter__tab",children:e.title},e.name)))})]}),s.map((e=>(0,U.jsx)(Aw.TabPanel,{tabId:e.name,focusable:!1,className:"block-editor-inserter__tabpanel",children:t},e.name)))]})})})),Vw=()=>{};const Fw=(0,a.forwardRef)((function({rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,onSelect:r,showInserterHelpPanel:s,showMostUsedBlocks:i,__experimentalFilterValue:l="",shouldFocusBlock:d=!0,onPatternCategorySelection:p,onClose:h,__experimentalInitialTab:g,__experimentalInitialCategory:m},f){const b=(0,c.useSelect)((e=>"zoom-out"===e(Gr).__unstableGetEditorMode()),[]),[v,k,_]=(0,u.useDebouncedInput)(l),[x,y]=(0,a.useState)(null),[S,w]=(0,a.useState)(m),[B,I]=(0,a.useState)("all"),[j,E]=(0,a.useState)(null),[T,M]=(0,a.useState)(g),[P,R,N]=GS({rootClientId:e,clientId:t,isAppender:n,insertionIndex:o,shouldFocusBlock:d}),A=(0,a.useRef)(),L=(0,a.useCallback)(((e,t,n,o)=>{R(e,t,n,o),r(),window.requestAnimationFrame((()=>{d||A?.current.contains(f.current.ownerDocument.activeElement)||A?.current.querySelector("button").focus()}))}),[R,r,d]),O=(0,a.useCallback)(((e,t)=>{R(e,{patternName:t}),r()}),[R,r]),D=(0,a.useCallback)((e=>{N(e),y(e)}),[N,y]),z=(0,a.useCallback)((e=>{N(!!e)}),[N]),V=(0,a.useCallback)(((e,t)=>{w(e),I(t),p?.()}),[w,p]),F="patterns"===T&&!_&&!!S,H="media"===T&&!!j,G=(0,a.useMemo)((()=>"media"===T?null:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ps.SearchControl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",onChange:e=>{x&&y(null),k(e)},value:v,label:(0,C.__)("Search for blocks and patterns"),placeholder:(0,C.__)("Search")}),!!_&&(0,U.jsx)(Rw,{filterValue:_,onSelect:r,onHover:D,onHoverPattern:z,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,showBlockDirectory:!0,shouldFocusBlock:d,prioritizePatterns:"patterns"===T})]})),[T,x,y,k,v,_,r,D,z,d,t,e,o,n]),$=(0,a.useMemo)((()=>(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{className:"block-editor-inserter__block-list",children:(0,U.jsx)(TS,{ref:A,rootClientId:P,onInsert:L,onHover:D,showMostUsedBlocks:i})}),s&&(0,U.jsxs)("div",{className:"block-editor-inserter__tips",children:[(0,U.jsx)(Ps.VisuallyHidden,{as:"h2",children:(0,C.__)("A tip for using the block editor")}),(0,U.jsx)(iy,{})]})]})),[P,L,D,i,s]),W=(0,a.useMemo)((()=>(0,U.jsx)(aw,{rootClientId:P,onInsert:O,onSelectCategory:V,selectedCategory:S,children:F&&(0,U.jsx)(dw,{rootClientId:P,onInsert:O,onHover:z,category:S,patternFilter:B,showTitlesAsTooltip:!0})})),[P,z,O,V,B,S,F]),K=(0,a.useMemo)((()=>(0,U.jsx)(jw,{rootClientId:P,selectedCategory:j,onSelectCategory:E,onInsert:L,children:H&&(0,U.jsx)(Bw,{rootClientId:P,onInsert:L,category:j})})),[P,L,j,E,H]),Z=(0,a.useRef)();return(0,a.useLayoutEffect)((()=>{Z.current&&window.requestAnimationFrame((()=>{Z.current.querySelector('[role="tab"][aria-selected="true"]')?.focus()}))}),[]),(0,U.jsxs)("div",{className:ws("block-editor-inserter__menu",{"show-panel":F||H,"is-zoom-out":b}),ref:f,children:[(0,U.jsx)("div",{className:"block-editor-inserter__main-area",children:(0,U.jsxs)(zw,{ref:Z,onSelect:e=>{"patterns"!==e&&w(null),M(e)},onClose:h,selectedTab:T,children:[G,"blocks"===T&&!_&&$,"patterns"===T&&!_&&W,"media"===T&&K]})}),s&&x&&(0,U.jsx)(Ps.Popover,{className:"block-editor-inserter__preview-container__popover",placement:"right-start",offset:16,focusOnMount:!1,animate:!1,children:(0,U.jsx)(cS,{item:x})})]})}));const Hw=(0,a.forwardRef)((function(e,t){return(0,U.jsx)(Fw,{...e,onPatternCategorySelection:Vw,ref:t})}));function Gw({onSelect:e,rootClientId:t,clientId:n,isAppender:o,prioritizePatterns:r,selectBlockOnInsert:s,hasSearch:i=!0}){const[l,u]=(0,a.useState)(""),[d,p]=GS({onSelect:e,rootClientId:t,clientId:n,isAppender:o,selectBlockOnInsert:s}),[h]=Ib(d,p,!0),[g]=US(p,d),{setInserterIsOpened:m,insertionIndex:f}=(0,c.useSelect)((e=>{const{getSettings:t,getBlockIndex:o,getBlockCount:r}=e(Gr),s=t(),i=o(n),l=r();return{setInserterIsOpened:s.__experimentalSetIsInserterOpened,insertionIndex:-1===i?l:i}}),[n]),b=g.length&&(!!l||r),v=i&&(b&&g.length>6||h.length>6);(0,a.useEffect)((()=>{m&&m(!1)}),[m]);let k=0;return b&&(k=r?4:2),(0,U.jsxs)("div",{className:ws("block-editor-inserter__quick-inserter",{"has-search":v,"has-expand":m}),children:[v&&(0,U.jsx)(Ps.SearchControl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",value:l,onChange:e=>{u(e)},label:(0,C.__)("Search for blocks and patterns"),placeholder:(0,C.__)("Search")}),(0,U.jsx)("div",{className:"block-editor-inserter__quick-inserter-results",children:(0,U.jsx)(Rw,{filterValue:l,onSelect:e,rootClientId:t,clientId:n,isAppender:o,maxBlockPatterns:k,maxBlockTypes:6,isDraggable:!1,prioritizePatterns:r,selectBlockOnInsert:s,isQuick:!0})}),m&&(0,U.jsx)(Ps.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{m({rootClientId:t,insertionIndex:f,filterValue:l})},"aria-label":(0,C.__)("Browse all. This will open the main inserter panel in the editor toolbar."),children:(0,C.__)("Browse all")})]})}const Uw=({onToggle:e,disabled:t,isOpen:n,blockTitle:o,hasSingleBlockType:r,toggleProps:s={},prioritizePatterns:i})=>{const{as:l=Ps.Button,label:a,onClick:c,...u}=s;let d=a;return!d&&r?d=(0,C.sprintf)((0,C._x)("Add %s","directly add the only allowed block"),o):!d&&i?d=(0,C.__)("Add pattern"):d||(d=(0,C._x)("Add block","Generic label for block inserter button")),(0,U.jsx)(l,{icon:wa,label:d,tooltipPosition:"bottom",onClick:function(t){e&&e(t),c&&c(t)},className:"block-editor-inserter__toggle","aria-haspopup":!r&&"true","aria-expanded":!r&&n,disabled:t,...u})};class $w extends a.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(e){const{onToggle:t}=this.props;t&&t(e)}renderToggle({onToggle:e,isOpen:t}){const{disabled:n,blockTitle:o,hasSingleBlockType:r,directInsertBlock:s,toggleProps:i,hasItems:l,renderToggle:a=Uw,prioritizePatterns:c}=this.props;return a({onToggle:e,isOpen:t,disabled:n||!l,blockTitle:o,hasSingleBlockType:r,directInsertBlock:s,toggleProps:i,prioritizePatterns:c})}renderContent({onClose:e}){const{rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r,__experimentalIsQuick:s,prioritizePatterns:i,onSelectOrClose:l,selectBlockOnInsert:a}=this.props;return s?(0,U.jsx)(Gw,{onSelect:t=>{const n=Array.isArray(t)&&t?.length?t[0]:t;l&&"function"==typeof l&&l(n),e()},rootClientId:t,clientId:n,isAppender:o,prioritizePatterns:i,selectBlockOnInsert:a}):(0,U.jsx)(Hw,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r})}render(){const{position:e,hasSingleBlockType:t,directInsertBlock:n,insertOnlyAllowedBlock:o,__experimentalIsQuick:r,onSelectOrClose:s}=this.props;return t||n?this.renderToggle({onToggle:o}):(0,U.jsx)(Ps.Dropdown,{className:"block-editor-inserter",contentClassName:ws("block-editor-inserter__popover",{"is-quick":r}),popoverProps:{position:e,shift:!0},onToggle:this.onToggle,expandOnMobile:!0,headerTitle:(0,C.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:s})}}const Ww=(0,u.compose)([(0,c.withSelect)(((e,{clientId:t,rootClientId:n,shouldDirectInsert:o=!0})=>{const{getBlockRootClientId:r,hasInserterItems:s,getAllowedBlocks:i,getDirectInsertBlock:a,getSettings:c}=e(Gr),{getBlockVariations:u}=e(l.store),d=i(n=n||r(t)||void 0),p=o&&a(n),h=c(),g=1===d?.length&&0===u(d[0].name,"inserter")?.length;let m=!1;return g&&(m=d[0]),{hasItems:s(n),hasSingleBlockType:g,blockTitle:m?m.title:"",allowedBlockType:m,directInsertBlock:p,rootClientId:n,prioritizePatterns:h.__experimentalPreferPatternsOnRoot&&!n}})),(0,c.withDispatch)(((e,t,{select:n})=>({insertOnlyAllowedBlock(){const{rootClientId:o,clientId:r,isAppender:s,hasSingleBlockType:i,allowedBlockType:a,directInsertBlock:c,onSelectOrClose:u,selectBlockOnInsert:d}=t;if(!i&&!c)return;const{insertBlock:p}=e(Gr);let h;if(c){const e=function(e){const{getBlock:t,getPreviousBlockClientId:s}=n(Gr);if(!e||!r&&!o)return{};const i={};let l={};if(r){const e=t(r),n=t(s(r));e?.name===n?.name&&(l=n?.attributes||{})}else{const e=t(o);if(e?.innerBlocks?.length){const t=e.innerBlocks[e.innerBlocks.length-1];c&&c?.name===t.name&&(l=t.attributes)}}return e.forEach((e=>{l.hasOwnProperty(e)&&(i[e]=l[e])})),i}(c.attributesToCopy);h=(0,l.createBlock)(c.name,{...c.attributes||{},...e})}else h=(0,l.createBlock)(a.name);p(h,function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:i,getBlockRootClientId:l}=n(Gr);if(r)return e(r);const a=t();return!s&&a&&l(a)===o?e(a)+1:i(o).length}(),o,d),u&&u({clientId:h?.clientId});const g=(0,C.sprintf)((0,C.__)("%s block added"),a.title);(0,Io.speak)(g)}}))),(0,u.ifCondition)((({hasItems:e,isAppender:t,rootClientId:n,clientId:o})=>e||!t&&!n&&!o))])($w),Kw=(0,a.forwardRef)(((e,t)=>(0,U.jsx)(Ww,{ref:t,...e}))),Zw="\ufeff";function qw({rootClientId:e}){const{showPrompt:t,isLocked:n,placeholder:o}=(0,c.useSelect)((t=>{const{getBlockCount:n,getSettings:o,getTemplateLock:r}=t(Gr),s=!n(e),{bodyPlaceholder:i}=o();return{showPrompt:s,isLocked:!!r(e),placeholder:i}}),[e]),{insertDefaultBlock:r,startTyping:s}=(0,c.useDispatch)(Gr);if(n)return null;const i=(0,ry.decodeEntities)(o)||(0,C.__)("Type / to choose a block"),l=()=>{r(void 0,e),s()};return(0,U.jsxs)("div",{"data-root-client-id":e||"",className:ws("block-editor-default-block-appender",{"has-visible-prompt":t}),children:[(0,U.jsx)("p",{tabIndex:"0",role:"button","aria-label":(0,C.__)("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:e=>{la.ENTER!==e.keyCode&&la.SPACE!==e.keyCode||l()},onClick:()=>l(),onFocus:()=>{t&&l()},children:t?i:Zw}),(0,U.jsx)(Kw,{rootClientId:e,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0})]})}function Yw({rootClientId:e,className:t,onFocus:n,tabIndex:o},r){return(0,U.jsx)(Kw,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,renderToggle:({onToggle:e,disabled:s,isOpen:i,blockTitle:l,hasSingleBlockType:a})=>{let c;c=a?(0,C.sprintf)((0,C._x)("Add %s","directly add the only allowed block"),l):(0,C._x)("Add block","Generic label for block inserter button");const u=!a;let d=(0,U.jsxs)(Ps.Button,{ref:r,onFocus:n,tabIndex:o,className:ws(t,"block-editor-button-block-appender"),onClick:e,"aria-haspopup":u?"true":void 0,"aria-expanded":u?i:void 0,disabled:s,label:c,children:[!a&&(0,U.jsx)(Ps.VisuallyHidden,{as:"span",children:c}),(0,U.jsx)(Hi,{icon:wa})]});return(u||a)&&(d=(0,U.jsx)(Ps.Tooltip,{text:c,children:d})),d},isAppender:!0})}const Xw=(0,a.forwardRef)(((e,t)=>(y()("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),Yw(e,t)))),Qw=(0,a.forwardRef)(Yw);function Jw({rootClientId:e}){return(0,c.useSelect)((t=>t(Gr).canInsertBlockType((0,l.getDefaultBlockName)(),e)))?(0,U.jsx)(qw,{rootClientId:e}):(0,U.jsx)(Qw,{rootClientId:e,className:"block-list-appender__toggle"})}function eC({rootClientId:e,CustomAppender:t,className:n,tagName:o="div"}){const r=(0,c.useSelect)((t=>{const{getBlockInsertionPoint:n,isBlockInsertionPointVisible:o,getBlockCount:r}=t(Gr),s=n();return o()&&e===s?.rootClientId&&0===r(e)}),[e]);return(0,U.jsx)(o,{tabIndex:-1,className:ws("block-list-appender wp-block",n,{"is-drag-over":r}),contentEditable:!1,"data-block":!0,children:t?(0,U.jsx)(t,{}):(0,U.jsx)(Jw,{rootClientId:e})})}const tC=Number.MAX_SAFE_INTEGER;(0,a.createContext)();const nC=function({previousClientId:e,nextClientId:t,children:n,__unstablePopoverSlot:o,__unstableContentRef:r,operation:s="insert",nearestSide:i="right",...l}){const[u,d]=(0,a.useReducer)((e=>(e+1)%tC),0),{orientation:p,rootClientId:h,isVisible:g}=(0,c.useSelect)((n=>{const{getBlockListSettings:o,getBlockRootClientId:r,isBlockVisible:s}=n(Gr),i=r(null!=e?e:t);return{orientation:o(i)?.orientation||"vertical",rootClientId:i,isVisible:s(e)&&s(t)}}),[e,t]),m=Xi(e),f=Xi(t),b="vertical"===p,v=(0,a.useMemo)((()=>{if(u<0||!m&&!f||!g)return;return{contextElement:"group"===s?f||m:m||f,getBoundingClientRect(){const e=m?m.getBoundingClientRect():null,t=f?f.getBoundingClientRect():null;let n=0,o=0,r=0,l=0;if("group"===s){const s=t||e;o=s.top,r=0,l=s.bottom-s.top,n="left"===i?s.left-2:s.right-2}else b?(o=e?e.bottom:t.top,r=e?e.width:t.width,l=t&&e?t.top-e.bottom:0,n=e?e.left:t.left):(o=e?e.top:t.top,l=e?e.height:t.height,(0,C.isRTL)()?(n=t?t.right:e.left,r=e&&t?e.left-t.right:0):(n=e?e.right:t.left,r=e&&t?t.left-e.right:0));return new window.DOMRect(n,o,r,l)}}}),[m,f,u,b,g,s,i]),k=Qi(r);return(0,a.useLayoutEffect)((()=>{if(!m)return;const e=new window.MutationObserver(d);return e.observe(m,{attributes:!0}),()=>{e.disconnect()}}),[m]),(0,a.useLayoutEffect)((()=>{if(!f)return;const e=new window.MutationObserver(d);return e.observe(f,{attributes:!0}),()=>{e.disconnect()}}),[f]),(0,a.useLayoutEffect)((()=>{if(m)return m.ownerDocument.defaultView.addEventListener("resize",d),()=>{m.ownerDocument.defaultView?.removeEventListener("resize",d)}}),[m]),(m||f)&&g?(0,U.jsx)(Ps.Popover,{ref:k,animate:!1,anchor:v,focusOnMount:!1,__unstableSlotName:o,inline:!o,...l,className:ws("block-editor-block-popover","block-editor-block-popover__inbetween",l.className),resize:!1,flip:!1,placement:"overlay",variant:"unstyled",children:(0,U.jsx)("div",{className:"block-editor-block-popover__inbetween-container",children:n})},t+"--"+h):null},oC={hide:{opacity:0,scaleY:.75},show:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.9}};const rC=function({__unstablePopoverSlot:e,__unstableContentRef:t}){const{clientId:n}=(0,c.useSelect)((e=>{const{getBlockOrder:t,getBlockInsertionPoint:n}=e(Gr),o=n(),r=t(o.rootClientId);return r.length?{clientId:r[o.index]}:{}}),[]),o=(0,u.useReducedMotion)();return(0,U.jsx)(ol,{clientId:n,__unstablePopoverSlot:e,__unstableContentRef:t,className:"block-editor-block-popover__drop-zone",children:(0,U.jsx)(Ps.__unstableMotion.div,{"data-testid":"block-popover-drop-zone",initial:o?oC.show:oC.hide,animate:oC.show,exit:o?oC.show:oC.exit,className:"block-editor-block-popover__drop-zone-foreground"})})},sC=(0,a.createContext)();function iC({__unstablePopoverSlot:e,__unstableContentRef:t,operation:n="insert",nearestSide:o="right"}){const{selectBlock:r,hideInsertionPoint:s}=(0,c.useDispatch)(Gr),i=(0,a.useContext)(sC),l=(0,a.useRef)(),{orientation:d,previousClientId:p,nextClientId:h,rootClientId:g,isInserterShown:m,isDistractionFree:f,isNavigationMode:b}=(0,c.useSelect)((e=>{const{getBlockOrder:t,getBlockListSettings:n,getBlockInsertionPoint:o,isBlockBeingDragged:r,getPreviousBlockClientId:s,getNextBlockClientId:i,getSettings:l,isNavigationMode:a}=e(Gr),c=o(),u=t(c.rootClientId);if(!u.length)return{};let d=u[c.index-1],p=u[c.index];for(;r(d);)d=s(d);for(;r(p);)p=i(p);const h=l();return{previousClientId:d,nextClientId:p,orientation:n(c.rootClientId)?.orientation||"vertical",rootClientId:c.rootClientId,isNavigationMode:a(),isDistractionFree:h.isDistractionFree,isInserterShown:c?.__unstableWithInserter}}),[]),{getBlockEditingMode:v}=(0,c.useSelect)(Gr),k=(0,u.useReducedMotion)();const _={start:{opacity:0,scale:0},rest:{opacity:1,scale:1,transition:{delay:m?.5:0,type:"tween"}},hover:{opacity:1,scale:1,transition:{delay:.5,type:"tween"}}},x={start:{scale:k?1:0},rest:{scale:1,transition:{delay:.4,type:"tween"}}};if(f&&!b)return null;const y=ws("block-editor-block-list__insertion-point","horizontal"===d||"group"===n?"is-horizontal":"is-vertical");return(0,U.jsx)(nC,{previousClientId:p,nextClientId:h,__unstablePopoverSlot:e,__unstableContentRef:t,operation:n,nearestSide:o,children:(0,U.jsxs)(Ps.__unstableMotion.div,{layout:!k,initial:k?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:l,tabIndex:-1,onClick:function(e){e.target===l.current&&h&&"disabled"!==v(h)&&r(h,-1)},onFocus:function(e){e.target!==l.current&&(i.current=!0)},className:ws(y,{"is-with-inserter":m}),onHoverEnd:function(e){e.target!==l.current||i.current||s()},children:[(0,U.jsx)(Ps.__unstableMotion.div,{variants:_,className:"block-editor-block-list__insertion-point-indicator","data-testid":"block-list-insertion-point-indicator"}),m&&(0,U.jsx)(Ps.__unstableMotion.div,{variants:x,className:ws("block-editor-block-list__insertion-point-inserter"),children:(0,U.jsx)(Kw,{position:"bottom center",clientId:h,rootClientId:g,__experimentalIsQuick:!0,onToggle:e=>{i.current=e},onSelectOrClose:()=>{i.current=!1}})})]})})}function lC(e){const{insertionPoint:t,isVisible:n,isBlockListEmpty:o}=(0,c.useSelect)((e=>{const{getBlockInsertionPoint:t,isBlockInsertionPointVisible:n,getBlockCount:o}=e(Gr),r=t();return{insertionPoint:r,isVisible:n(),isBlockListEmpty:0===o(r?.rootClientId)}}),[]);return!n||o?null:"replace"===t.operation?(0,U.jsx)(rC,{...e},`${t.rootClientId}-${t.index}`):(0,U.jsx)(iC,{operation:t.operation,nearestSide:t.nearestSide,...e})}function aC(){const e=(0,a.useContext)(sC),t=(0,c.useSelect)((e=>e(Gr).getSettings().isDistractionFree||"zoom-out"===e(Gr).__unstableGetEditorMode()),[]),{getBlockListSettings:n,getBlockIndex:o,isMultiSelecting:r,getSelectedBlockClientIds:s,getTemplateLock:i,__unstableIsWithinBlockOverlay:l,getBlockEditingMode:d,getBlockName:p}=(0,c.useSelect)(Gr),{showInsertionPoint:h,hideInsertionPoint:g}=(0,c.useDispatch)(Gr);return(0,u.useRefEffect)((a=>{if(!t)return a.addEventListener("mousemove",c),()=>{a.removeEventListener("mousemove",c)};function c(t){if(void 0===e||e.current)return;if(t.target.nodeType===t.target.TEXT_NODE)return;if(r())return;if(!t.target.classList.contains("block-editor-block-list__layout"))return void g();let a;if(!t.target.classList.contains("is-root-container")){a=(t.target.getAttribute("data-block")?t.target:t.target.closest("[data-block]")).getAttribute("data-block")}if(i(a)||"disabled"===d(a)||"core/block"===p(a))return;const c=n(a)?.orientation||"vertical",u=t.clientY,m=t.clientX;let f=Array.from(t.target.children).find((e=>{const t=e.getBoundingClientRect();return e.classList.contains("wp-block")&&"vertical"===c&&t.top>u||e.classList.contains("wp-block")&&"horizontal"===c&&((0,C.isRTL)()?t.right<m:t.left>m)}));if(!f)return void g();if(!f.id&&(f=f.firstElementChild,!f))return void g();const b=f.id.slice(6);if(!b||l(b))return;if(s().includes(b))return;const v=f.getBoundingClientRect();if("horizontal"===c&&(t.clientY>v.bottom||t.clientY<v.top)||"vertical"===c&&(t.clientX>v.right||t.clientX<v.left))return void g();const k=o(b);0!==k?h(a,k,{__unstableWithInserter:!0}):g()}}),[e,n,o,r,h,g,s,t])}const cC=(0,u.createHigherOrderComponent)((e=>t=>{const{clientId:n}=_();return(0,U.jsx)(e,{...t,clientId:n})}),"withClientId"),uC=cC((({clientId:e,showSeparator:t,isFloating:n,onAddBlock:o,isToggle:r})=>(0,U.jsx)(Qw,{className:ws({"block-list-appender__toggle":r}),rootClientId:e,showSeparator:t,isFloating:n,onAddBlock:o}))),dC=(0,u.compose)([cC,(0,c.withSelect)(((e,{clientId:t})=>{const{getBlockOrder:n}=e(Gr),o=n(t);return{lastBlockClientId:o[o.length-1]}}))])((({clientId:e})=>(0,U.jsx)(qw,{rootClientId:e}))),pC=new WeakMap;function hC(e,t,n,o,r,s,i,l,u,d,p,h){const g=(0,c.useRegistry)(),m=function(e){const[t,n]=(0,a.useState)(e);return ga()(t,e)||n(e),t}(n),f=(0,a.useMemo)((()=>o),o),b=void 0===u||"contentOnly"===t?t:u;(0,a.useLayoutEffect)((()=>{const t={allowedBlocks:m,prioritizedInserterBlocks:f,templateLock:b};if(void 0!==d&&(t.__experimentalCaptureToolbars=d),void 0!==p)t.orientation=p;else{const e=ml(h?.type);t.orientation=e.getOrientation(h)}void 0!==i&&(y()("__experimentalDefaultBlock",{alternative:"defaultBlock",since:"6.3",version:"6.4"}),t.defaultBlock=i),void 0!==r&&(t.defaultBlock=r),void 0!==l&&(y()("__experimentalDirectInsert",{alternative:"directInsert",since:"6.3",version:"6.4"}),t.directInsert=l),void 0!==s&&(t.directInsert=s),void 0!==t.directInsert&&"boolean"!=typeof t.directInsert&&y()("Using `Function` as a `directInsert` argument",{alternative:"`boolean` values",since:"6.5"}),pC.get(g)||pC.set(g,{}),pC.get(g)[e]=t,window.queueMicrotask((()=>{const e=pC.get(g);if(Object.keys(e).length){const{updateBlockListSettings:t}=g.dispatch(Gr);t(e),pC.set(g,{})}}))}),[e,m,f,b,r,s,i,l,d,p,h,g])}function gC(e,t,n,o,r,s,i,a,c){return u=>{const{srcRootClientId:d,srcClientIds:p,type:h,blocks:g}=function(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch(e){return t}return t}(u);if("inserter"===h){i();const e=g.map((e=>(0,l.cloneBlock)(e)));s(e,!0,null)}if("block"===h){const i=n(p[0]);if(d===e&&i===t)return;if(p.includes(e)||o(p).some((t=>t===e)))return;if("group"===a){const e=p.map((e=>c(e)));return void s(e,!0,null,p)}const l=d===e,u=p.length;r(p,d,l&&i<t?t-u:t)}}}function mC(e,t,n={}){const{operation:o="insert",nearestSide:r="right"}=n,{canInsertBlockType:s,getBlockIndex:i,getClientIdsOfDescendants:u,getBlockOrder:d,getBlocksByClientId:p,getSettings:h,getBlock:g,isGroupable:m}=(0,c.useSelect)(Gr),{getGroupingBlockName:f}=(0,c.useSelect)(l.store),{insertBlocks:b,moveBlocksToPosition:v,updateBlockAttributes:k,clearSelectedBlock:_,replaceBlocks:x,removeBlocks:y}=(0,c.useDispatch)(Gr),S=(0,c.useRegistry)(),w=(0,a.useCallback)(((n,i=!0,a=0,c=[])=>{Array.isArray(n)||(n=[n]);const u=d(e)[t],p=n.map((e=>e.clientId)),h=m([...p,u]);if("replace"===o)x(u,n,void 0,a);else if("group"===o&&h){const t=g(u);"left"===r?n.push(t):n.unshift(t);const o=n.map((e=>(0,l.createBlock)(e.name,e.attributes,e.innerBlocks))),i=n.every((e=>"core/image"===e.name)),d=s("core/gallery",e),p=(0,l.createBlock)(i&&d?"core/gallery":f(),{layout:{type:"flex",flexWrap:i&&d?null:"nowrap"}},o);x([u,...c],p,void 0,a)}else b(n,t,e,i,a)}),[d,e,t,m,o,x,g,r,s,f,b]),C=(0,a.useCallback)(((n,r,s)=>{if("replace"===o){const o=p(n),r=d(e)[t];S.batch((()=>{y(n,!1),x(r,o,void 0,0)}))}else v(n,r,e,s)}),[o,d,p,v,S,y,x,t,e]),B=gC(e,t,i,u,C,w,_,o,g),I=function(e,t,n,o,r){return s=>{if(!t().mediaUpload)return;const i=(0,l.findTransform)((0,l.getBlockTransforms)("from"),(t=>"files"===t.type&&o(t.blockName,e)&&t.isMatch(s)));if(i){const e=i.transform(s,n);r(e)}}}(e,h,k,s,w),j=function(e){return t=>{const n=(0,l.pasteHandler)({HTML:t,mode:"BLOCKS"});n.length&&e(n)}}(w);return e=>{const t=(0,sa.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");n?j(n):t.length?I(t):B(e)}}function fC(e,t,n=["top","bottom","left","right"]){let o,r;return n.forEach((n=>{const s=function(e,t,n){const o="top"===n||"bottom"===n,{x:r,y:s}=e,i=o?r:s,l=o?s:r,a=o?t.left:t.top,c=o?t.right:t.bottom,u=t[n];let d;return d=i>=a&&i<=c?i:i<c?a:c,Math.sqrt((i-d)**2+(l-u)**2)}(e,t,n);(void 0===o||s<o)&&(o=s,r=n)})),[o,r]}function bC(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}const vC=30,kC=120,_C=120;function xC(e,t,n,o){let r=!0;if(t){const e=t?.map((({name:e})=>e));r=n.every((t=>e?.includes(t)))}const s=n.map((t=>e(t))).every((e=>{const[t]=e?.parent||[];return!t||t===o}));return r&&s}function yC({dropZoneElement:e,rootClientId:t="",parentClientId:n="",isDisabled:o=!1}={}){const r=(0,c.useRegistry)(),[s,i]=(0,a.useState)({index:null,operation:"insert"}),{getBlockType:d}=(0,c.useSelect)(l.store),{getBlockListSettings:p,getBlocks:h,getBlockIndex:g,getDraggedBlockClientIds:m,getBlockNamesByClientId:f,getAllowedBlocks:b,isDragging:v}=Q((0,c.useSelect)(Gr)),{showInsertionPoint:k,hideInsertionPoint:_,startDragging:x,stopDragging:y}=Q((0,c.useDispatch)(Gr)),S=mC("before"===s.operation||"after"===s.operation?n:t,s.index,{operation:s.operation,nearestSide:s.nearestSide}),w=(0,u.useThrottle)((0,a.useCallback)(((o,s)=>{v()||x();const a=b(t),c=f([t])[0],u=f(m());if(!xC(d,a,u,c))return;const _=h(t);if(0===_.length)return void r.batch((()=>{i({index:0,operation:"insert"}),k(t,0,{operation:"insert"})}));const y=_.map((e=>{const t=e.clientId;return{isUnmodifiedDefaultBlock:(0,l.isUnmodifiedDefaultBlock)(e),getBoundingClientRect:()=>s.getElementById(`block-${t}`).getBoundingClientRect(),blockIndex:g(t),blockOrientation:p(t)?.orientation}})),[S,w,B]=function(e,t,n="vertical",o={}){const r="horizontal"===n?["left","right"]:["top","bottom"];let s=0,i="before",l=1/0,a=null,c="right";const{dropZoneElement:u,parentBlockOrientation:d,rootBlockIndex:p=0}=o;if(u&&"horizontal"!==d){const e=u.getBoundingClientRect(),[n,o]=fC(t,e,["top","bottom"]);if(e.height>kC&&n<vC){if("top"===o)return[p,"before"];if("bottom"===o)return[p+1,"after"]}}const h=(0,C.isRTL)();if(u&&"horizontal"===d){const e=u.getBoundingClientRect(),[n,o]=fC(t,e,["left","right"]);if(e.width>_C&&n<vC){if(h&&"right"===o||!h&&"left"===o)return[p,"before"];if(h&&"left"===o||!h&&"right"===o)return[p+1,"after"]}}e.forEach((({isUnmodifiedDefaultBlock:e,getBoundingClientRect:o,blockIndex:u,blockOrientation:d})=>{const p=o();let[g,m]=fC(t,p,r);const[f,b]=fC(t,p,["left","right"]),v=bC(t,p);e&&v?g=0:"vertical"===n&&"horizontal"!==d&&(v&&f<vC||!v&&function(e,t){return t.top<=e.y&&t.bottom>=e.y}(t,p))&&(a=u,c=b),g<l&&(i="bottom"===m||!h&&"right"===m||h&&"left"===m?"after":"before",l=g,s=u)}));const g=s+("after"===i?1:-1),m=!!e[s]?.isUnmodifiedDefaultBlock,f=!!e[g]?.isUnmodifiedDefaultBlock;if(null!==a)return[a,"group",c];if(!m&&!f)return["after"===i?s+1:s,"insert"];return[m?s:g,"replace"]}(y,{x:o.clientX,y:o.clientY},p(t)?.orientation,{dropZoneElement:e,parentBlockClientId:n,parentBlockOrientation:n?p(n)?.orientation:void 0,rootBlockIndex:g(t)});r.batch((()=>{i({index:S,operation:w,nearestSide:B});const e=["before","after"].includes(w)?n:t;k(e,S,{operation:w,nearestSide:B})}))}),[b,t,f,m,d,h,p,e,n,g,r,k,v,x]),200);return(0,u.__experimentalUseDropZone)({dropZoneElement:e,isDisabled:o,onDrop:S,onDragOver(e){w(e,e.currentTarget.ownerDocument)},onDragLeave(){w.cancel(),_()},onDragEnd(){w.cancel(),y(),_()}})}const SC={};function wC({children:e,clientId:t}){const n=function(e){return(0,c.useSelect)((t=>{const n=t(Gr).getBlock(e);if(!n)return;const o=t(l.store).getBlockType(n.name);return o&&0!==Object.keys(o.providesContext).length?Object.fromEntries(Object.entries(o.providesContext).map((([e,t])=>[e,n.attributes[t]]))):void 0}),[e])}(t);return(0,U.jsx)(Kb,{value:n,children:e})}const CC=(0,a.memo)(GC);function BC(e){const{clientId:t,allowedBlocks:n,prioritizedInserterBlocks:o,defaultBlock:r,directInsert:s,__experimentalDefaultBlock:i,__experimentalDirectInsert:u,template:d,templateLock:p,wrapperRef:h,templateInsertUpdatesSelection:g,__experimentalCaptureToolbars:m,__experimentalAppenderTagName:f,renderAppender:b,orientation:v,placeholder:k,layout:_,name:x,blockType:y,parentLock:S,defaultLayout:C}=e;hC(t,S,n,o,r,s,i,u,p,m,v,_),function(e,t,n,o){const{getBlocks:r,getSelectedBlocksInitialCaretPosition:s,isBlockSelected:i}=(0,c.useSelect)(Gr),{replaceInnerBlocks:u,__unstableMarkNextChangeAsNotPersistent:d}=(0,c.useDispatch)(Gr),p=(0,a.useRef)(null);(0,a.useLayoutEffect)((()=>{let a=!1;return window.queueMicrotask((()=>{if(a)return;const c=r(e),h=0===c.length||"all"===n||"contentOnly"===n,g=!w()(t,p.current);if(!h||!g)return;p.current=t;const m=(0,l.synchronizeBlocksWithTemplate)(c,t);w()(m,c)||(d(),u(e,m,0===c.length&&o&&0!==m.length&&i(e),s()))})),()=>{a=!0}}),[t,n,e])}(t,d,p,g);const B=(0,l.getBlockSupport)(x,"layout")||(0,l.getBlockSupport)(x,"__experimentalLayout")||SC,{allowSizingOnChildren:I=!1}=B,j=_||B,E=(0,a.useMemo)((()=>({...C,...j,...I&&{allowSizingOnChildren:!0}})),[C,j,I]),T=(0,U.jsx)(CC,{rootClientId:t,renderAppender:b,__experimentalAppenderTagName:f,layout:E,wrapperRef:h,placeholder:k});return 0===Object.keys(y.providesContext).length?T:(0,U.jsx)(wC,{clientId:t,children:T})}function IC(e){return py(e),(0,U.jsx)(BC,{...e})}const jC=(0,a.forwardRef)(((e,t)=>{const n=EC({ref:t},e);return(0,U.jsx)("div",{className:"block-editor-inner-blocks",children:(0,U.jsx)("div",{...n})})}));function EC(e={},t={}){const{__unstableDisableLayoutClassNames:n,__unstableDisableDropZone:o,dropZoneElement:r}=t,{clientId:s,layout:i=null,__unstableLayoutClassNames:a=""}=_(),d=(0,c.useSelect)((e=>{const{getBlockName:t,isBlockSelected:n,hasSelectedInnerBlock:o,__unstableGetEditorMode:r,getTemplateLock:i,getBlockRootClientId:a,getBlockEditingMode:c,getBlockSettings:u,isDragging:d,getSettings:p}=Q(e(Gr));let h;if("zoom-out"===r()){const{sectionRootClientId:e}=Q(p());h=s!==e}if(!s)return{isDropZoneDisabled:h};const{hasBlockSupport:g,getBlockType:m}=e(l.store),f=t(s),b="navigation"===r(),v=c(s),k=a(s),[_]=u(s,"layout");return void 0!==h&&(h="disabled"===v),{__experimentalCaptureToolbars:g(f,"__experimentalExposeControlsToChildren",!1),hasOverlay:"core/template"!==f&&!n(s)&&!o(s,!0)&&b&&!d(),name:f,blockType:m(f),parentLock:i(k),parentClientId:k,isDropZoneDisabled:h,defaultLayout:_}}),[s]),{__experimentalCaptureToolbars:p,hasOverlay:h,name:g,blockType:m,parentLock:f,parentClientId:b,isDropZoneDisabled:v,defaultLayout:k}=d,x=yC({dropZoneElement:r,rootClientId:s,parentClientId:b}),y=(0,u.useMergeRefs)([e.ref,o||v?null:x]),S={__experimentalCaptureToolbars:p,layout:i,name:g,blockType:m,parentLock:f,defaultLayout:k,...t},w=S.value&&S.onChange?IC:BC;return{...e,ref:y,className:ws(e.className,"block-editor-block-list__layout",n?"":a,{"has-overlay":h}),children:s?(0,U.jsx)(w,{...S,clientId:s}):(0,U.jsx)(GC,{...t})}}EC.save=l.__unstableGetInnerBlocksProps,jC.DefaultBlockAppender=dC,jC.ButtonBlockAppender=uC,jC.Content=()=>EC.save().children;const TC=jC,MC=new Set([la.UP,la.RIGHT,la.DOWN,la.LEFT,la.ENTER,la.BACKSPACE]);function PC(){const e=(0,c.useSelect)((e=>e(Gr).isTyping()),[]),{stopTyping:t}=(0,c.useDispatch)(Gr);return(0,u.useRefEffect)((n=>{if(!e)return;const{ownerDocument:o}=n;let r,s;function i(e){const{clientX:n,clientY:o}=e;r&&s&&(r!==n||s!==o)&&t(),r=n,s=o}return o.addEventListener("mousemove",i),()=>{o.removeEventListener("mousemove",i)}}),[e,t])}function RC(){const{isTyping:e}=(0,c.useSelect)((e=>{const{isTyping:t}=e(Gr);return{isTyping:t()}}),[]),{startTyping:t,stopTyping:n}=(0,c.useDispatch)(Gr),o=PC(),r=(0,u.useRefEffect)((o=>{const{ownerDocument:r}=o,{defaultView:s}=r,i=s.getSelection();if(e){let a;function c(e){const{target:t}=e;a=s.setTimeout((()=>{(0,sa.isTextField)(t)||n()}))}function u(e){const{keyCode:t}=e;t!==la.ESCAPE&&t!==la.TAB||n()}function d(){i.isCollapsed||n()}return o.addEventListener("focus",c),o.addEventListener("keydown",u),r.addEventListener("selectionchange",d),()=>{s.clearTimeout(a),o.removeEventListener("focus",c),o.removeEventListener("keydown",u),r.removeEventListener("selectionchange",d)}}function l(e){const{type:n,target:r}=e;(0,sa.isTextField)(r)&&o.contains(r)&&("keydown"!==n||function(e){const{keyCode:t,shiftKey:n}=e;return!n&&MC.has(t)}(e))&&t()}return o.addEventListener("keypress",l),o.addEventListener("keydown",l),()=>{o.removeEventListener("keypress",l),o.removeEventListener("keydown",l)}}),[e,t,n]);return(0,u.useMergeRefs)([o,r])}const NC=function({children:e}){return(0,U.jsx)("div",{ref:RC(),children:e})},AC=(0,a.createContext)(),LC=new WeakMap;function OC({className:e,...t}){const n=(0,u.useViewportMatch)("medium"),{isOutlineMode:o,isFocusMode:r,editorMode:s,temporarilyEditingAsBlocks:i}=(0,c.useSelect)((e=>{const{getSettings:t,__unstableGetEditorMode:n,getTemporarilyEditingAsBlocks:o,isTyping:r}=Q(e(Gr)),{outlineMode:s,focusMode:i}=t();return{isOutlineMode:s&&!r(),isFocusMode:i,editorMode:n(),temporarilyEditingAsBlocks:o()}}),[]),l=(0,c.useRegistry)(),{setBlockVisibility:d}=(0,c.useDispatch)(Gr),p=(0,u.useDebounce)((0,a.useCallback)((()=>{const e={};LC.get(l).forEach((([t,n])=>{e[t]=n})),d(e)}),[l]),300,{trailing:!0}),h=(0,a.useMemo)((()=>{const{IntersectionObserver:e}=window;if(e)return new e((e=>{LC.get(l)||LC.set(l,[]);for(const t of e){const e=t.target.getAttribute("data-block");LC.get(l).push([e,t.isIntersecting])}p()}))}),[]),g=EC({ref:(0,u.useMergeRefs)([vy(),aC(),RC()]),className:ws("is-root-container",e,{"is-outline-mode":o,"is-focus-mode":r&&n,"is-navigate-mode":"navigation"===s})},t);return(0,U.jsxs)(AC.Provider,{value:h,children:[(0,U.jsx)("div",{...g}),!!i&&(0,U.jsx)(DC,{clientId:i})]})}function DC({clientId:e}){const{stopEditingAsBlocks:t}=Q((0,c.useDispatch)(Gr)),n=(0,c.useSelect)((t=>{const{isBlockSelected:n,hasSelectedInnerBlock:o}=t(Gr);return n(e)||o(e,!0)}),[e]);return(0,a.useEffect)((()=>{n||t(e)}),[n,e,t]),null}function zC(e){return(0,U.jsx)(k,{value:b,children:(0,U.jsx)(OC,{...e})})}const VC=[],FC=new Set;function HC({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:o,layout:r=fl}){const s=!1!==n,i=!!n,{order:l,selectedBlocks:a,visibleBlocks:u,shouldRenderAppender:d}=(0,c.useSelect)((e=>{const{getSettings:n,getBlockOrder:o,getSelectedBlockClientId:r,getSelectedBlockClientIds:l,__unstableGetVisibleBlocks:a,getTemplateLock:c,getBlockEditingMode:u,__unstableGetEditorMode:d}=e(Gr),p=o(t);if(n().__unstableIsPreviewMode)return{order:p,selectedBlocks:VC,visibleBlocks:FC};const h=r();return{order:p,selectedBlocks:l(),visibleBlocks:a(),shouldRenderAppender:s&&"zoom-out"!==d()&&(i?!c(t)&&"disabled"!==u(t):t===h||!t&&!h&&!p.length)}}),[t,s,i]);return(0,U.jsxs)(vl,{value:r,children:[l.map((e=>(0,U.jsx)(c.AsyncModeProvider,{value:!u.has(e)&&!a.includes(e),children:(0,U.jsx)(oy,{rootClientId:t,clientId:e})},e))),l.length<1&&e,d&&(0,U.jsx)(eC,{tagName:o,rootClientId:t,CustomAppender:n})]})}function GC(e){return(0,U.jsx)(c.AsyncModeProvider,{value:!1,children:(0,U.jsx)(HC,{...e})})}const UC={placement:"top-start"},$C={...UC,flip:!1,shift:!0},WC={...UC,flip:!0,shift:!1};function KC(e,t,n,o,r){if(!e||!t)return $C;const s=n?.scrollTop||0,i=t.getBoundingClientRect(),l=s+e.getBoundingClientRect().top,a=e.ownerDocument.documentElement.clientHeight,c=l+o,u=i.top>c,d=i.height>a-o;return r||!u&&!d?WC:$C}function ZC({contentElement:e,clientId:t}){const n=Xi(t),[o,r]=(0,a.useState)(0),{blockIndex:s,isSticky:i}=(0,c.useSelect)((e=>{const{getBlockIndex:n,getBlockAttributes:o}=e(Gr);return{blockIndex:n(t),isSticky:vm(o(t))}}),[t]),l=(0,a.useMemo)((()=>{if(e)return(0,sa.getScrollContainer)(e)}),[e]),[d,p]=(0,a.useState)((()=>KC(e,n,l,o,i))),h=(0,u.useRefEffect)((e=>{r(e.offsetHeight)}),[]),g=(0,a.useCallback)((()=>p(KC(e,n,l,o,i))),[e,n,l,o]);return(0,a.useLayoutEffect)(g,[s,g]),(0,a.useLayoutEffect)((()=>{if(!e||!n)return;const t=e?.ownerDocument?.defaultView;let o;t?.addEventHandler?.("resize",g);const r=n?.ownerDocument?.defaultView;return r.ResizeObserver&&(o=new r.ResizeObserver(g),o.observe(n)),()=>{t?.removeEventHandler?.("resize",g),o&&o.disconnect()}}),[g,e,n]),{...d,ref:h}}function qC(e){const t=(0,c.useSelect)((t=>{const{getBlockRootClientId:n,getBlockParents:o,__experimentalGetBlockListSettingsForBlocks:r,isBlockInsertionPointVisible:s,getBlockInsertionPoint:i,getBlockOrder:l,hasMultiSelection:a,getLastMultiSelectedBlockClientId:c}=t(Gr),u=o(e),d=r(u),p=u.find((e=>d[e]?.__experimentalCaptureToolbars));let h=!1;if(s()){const t=i();h=l(t.rootClientId)[t.index]===e}return{capturingClientId:p,isInsertionPointVisible:h,lastClientId:a()?c():null,rootClientId:n(e)}}),[e]);return t}function YC({clientId:e,__unstableContentRef:t}){const{capturingClientId:n,isInsertionPointVisible:o,lastClientId:r,rootClientId:s}=qC(e),i=ZC({contentElement:t?.current,clientId:e});return(0,U.jsx)(ol,{clientId:n||e,bottomClientId:r,className:ws("block-editor-block-list__block-side-inserter-popover",{"is-insertion-point-visible":o}),__unstableContentRef:t,...i,children:(0,U.jsx)("div",{className:"block-editor-block-list__empty-block-inserter",children:(0,U.jsx)(Kw,{position:"bottom right",rootClientId:s,clientId:e,__experimentalIsQuick:!0})})})}const XC=({appendToOwnerDocument:e,children:t,clientIds:n,cloneClassname:o,elementId:r,onDragStart:s,onDragEnd:i,fadeWhenDisabled:d=!1,dragComponent:p})=>{const{srcRootClientId:h,isDraggable:g,icon:m,visibleInserter:f,getBlockType:b}=(0,c.useSelect)((e=>{const{canMoveBlocks:t,getBlockRootClientId:o,getBlockName:r,getBlockAttributes:s,isBlockInsertionPointVisible:i}=e(Gr),{getBlockType:a,getActiveBlockVariation:c}=e(l.store),u=o(n[0]),d=r(n[0]),p=c(d,s(n[0]));return{srcRootClientId:u,isDraggable:t(n),icon:p?.icon||a(d)?.icon,visibleInserter:i(),getBlockType:a}}),[n]),v=(0,a.useRef)(!1),[k,_,x]=function(){const e=(0,a.useRef)(null),t=(0,a.useRef)(null),n=(0,a.useRef)(null),o=(0,a.useRef)(null);return(0,a.useEffect)((()=>()=>{o.current&&(clearInterval(o.current),o.current=null)}),[]),[(0,a.useCallback)((r=>{e.current=r.clientY,n.current=(0,sa.getScrollContainer)(r.target),o.current=setInterval((()=>{if(n.current&&t.current){const e=n.current.scrollTop+t.current;n.current.scroll({top:e})}}),25)}),[]),(0,a.useCallback)((o=>{if(!n.current)return;const r=n.current.offsetHeight,s=e.current-n.current.offsetTop,i=o.clientY-n.current.offsetTop;if(o.clientY>s){const e=Math.max(r-s-50,0),n=Math.max(i-s-50,0),o=0===e||0===n?0:n/e;t.current=25*o}else if(o.clientY<s){const e=Math.max(s-50,0),n=Math.max(s-i-50,0),o=0===e||0===n?0:n/e;t.current=-25*o}else t.current=0}),[]),()=>{e.current=null,n.current=null,o.current&&(clearInterval(o.current),o.current=null)}]}(),{getAllowedBlocks:y,getBlockNamesByClientId:S,getBlockRootClientId:w}=(0,c.useSelect)(Gr),{startDraggingBlocks:C,stopDraggingBlocks:B}=(0,c.useDispatch)(Gr);(0,a.useEffect)((()=>()=>{v.current&&B()}),[]);const I=Yi(n[0]),j=I.current?.closest("body");if((0,a.useEffect)((()=>{if(!j||!d)return;const e=(0,u.throttle)((e=>{if(!e.target.closest("[data-block]"))return;const t=S(n),o=e.target.closest("[data-block]").getAttribute("data-block"),r=y(o),s=S([o])[0];let i;if(0===r?.length){const e=w(o),n=S([e])[0],r=y(e);i=xC(b,r,t,n)}else i=xC(b,r,t,s);i||f?window?.document?.body?.classList?.remove("block-draggable-invalid-drag-token"):window?.document?.body?.classList?.add("block-draggable-invalid-drag-token")}),200);return j.addEventListener("dragover",e),()=>{j.removeEventListener("dragover",e)}}),[n,j,d,y,S,w,b,f]),!g)return t({draggable:!1});const E={type:"block",srcClientIds:n,srcRootClientId:h};return(0,U.jsx)(Ps.Draggable,{appendToOwnerDocument:e,cloneClassname:o,__experimentalTransferDataType:"wp-blocks",transferData:E,onDragStart:e=>{window.requestAnimationFrame((()=>{C(n),v.current=!0,k(e),s&&s()}))},onDragOver:_,onDragEnd:()=>{B(),v.current=!1,x(),i&&i()},__experimentalDragComponent:void 0!==p?p:(0,U.jsx)(hS,{count:n.length,icon:m,fadeWhenDisabled:!0}),elementId:r,children:({onDraggableStart:e,onDraggableEnd:n})=>t({draggable:!0,onDragStart:e,onDragEnd:n})})},QC=(0,U.jsx)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,U.jsx)(G.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),JC=(0,U.jsx)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,U.jsx)(G.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),eB=(e,t)=>"up"===e?"horizontal"===t?(0,C.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===t?(0,C.isRTL)()?"left":"right":"down":null;function tB(e,t,n,o,r,s,i){const l=n+1;if(e>1)return function(e,t,n,o,r,s){const i=t+1;if(n&&o)return(0,C.__)("All blocks are selected, and cannot be moved");if(r>0&&!o){const t=eB("down",s);if("down"===t)return(0,C.sprintf)((0,C.__)("Move %1$d blocks from position %2$d down by one place"),e,i);if("left"===t)return(0,C.sprintf)((0,C.__)("Move %1$d blocks from position %2$d left by one place"),e,i);if("right"===t)return(0,C.sprintf)((0,C.__)("Move %1$d blocks from position %2$d right by one place"),e,i)}if(r>0&&o){const e=eB("down",s);if("down"===e)return(0,C.__)("Blocks cannot be moved down as they are already at the bottom");if("left"===e)return(0,C.__)("Blocks cannot be moved left as they are already are at the leftmost position");if("right"===e)return(0,C.__)("Blocks cannot be moved right as they are already are at the rightmost position")}if(r<0&&!n){const t=eB("up",s);if("up"===t)return(0,C.sprintf)((0,C.__)("Move %1$d blocks from position %2$d up by one place"),e,i);if("left"===t)return(0,C.sprintf)((0,C.__)("Move %1$d blocks from position %2$d left by one place"),e,i);if("right"===t)return(0,C.sprintf)((0,C.__)("Move %1$d blocks from position %2$d right by one place"),e,i)}if(r<0&&n){const e=eB("up",s);if("up"===e)return(0,C.__)("Blocks cannot be moved up as they are already at the top");if("left"===e)return(0,C.__)("Blocks cannot be moved left as they are already are at the leftmost position");if("right"===e)return(0,C.__)("Blocks cannot be moved right as they are already are at the rightmost position")}}(e,n,o,r,s,i);if(o&&r)return(0,C.sprintf)((0,C.__)("Block %s is the only block, and cannot be moved"),t);if(s>0&&!r){const e=eB("down",i);if("down"===e)return(0,C.sprintf)((0,C.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===e)return(0,C.sprintf)((0,C.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===e)return(0,C.sprintf)((0,C.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(s>0&&r){const e=eB("down",i);if("down"===e)return(0,C.sprintf)((0,C.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===e)return(0,C.sprintf)((0,C.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===e)return(0,C.sprintf)((0,C.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(s<0&&!o){const e=eB("up",i);if("up"===e)return(0,C.sprintf)((0,C.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===e)return(0,C.sprintf)((0,C.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===e)return(0,C.sprintf)((0,C.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(s<0&&o){const e=eB("up",i);if("up"===e)return(0,C.sprintf)((0,C.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===e)return(0,C.sprintf)((0,C.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===e)return(0,C.sprintf)((0,C.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}const nB=(e,t)=>"up"===e?"horizontal"===t?(0,C.isRTL)()?ly:ay:QC:"down"===e?"horizontal"===t?(0,C.isRTL)()?ay:ly:JC:null,oB=(e,t)=>"up"===e?"horizontal"===t?(0,C.isRTL)()?(0,C.__)("Move right"):(0,C.__)("Move left"):(0,C.__)("Move up"):"down"===e?"horizontal"===t?(0,C.isRTL)()?(0,C.__)("Move left"):(0,C.__)("Move right"):(0,C.__)("Move down"):null,rB=(0,a.forwardRef)((({clientIds:e,direction:t,orientation:n,...o},r)=>{const s=(0,u.useInstanceId)(rB),i=Array.isArray(e)?e:[e],a=i.length,{disabled:d}=o,{blockType:p,isDisabled:h,rootClientId:g,isFirst:m,isLast:f,firstIndex:b,orientation:v="vertical"}=(0,c.useSelect)((e=>{const{getBlockIndex:o,getBlockRootClientId:r,getBlockOrder:s,getBlock:a,getBlockListSettings:c}=e(Gr),u=i[0],p=r(u),h=o(u),g=o(i[i.length-1]),m=s(p),f=a(u),b=0===h,v=g===m.length-1,{orientation:k}=c(p)||{};return{blockType:f?(0,l.getBlockType)(f.name):null,isDisabled:d||("up"===t?b:v),rootClientId:p,firstIndex:h,isFirst:b,isLast:v,orientation:n||k}}),[e,t]),{moveBlocksDown:k,moveBlocksUp:_}=(0,c.useDispatch)(Gr),x="up"===t?_:k,y=`block-editor-block-mover-button__description-${s}`;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ps.Button,{ref:r,className:ws("block-editor-block-mover-button",`is-${t}-button`),icon:nB(t,v),label:oB(t,v),"aria-describedby":y,...o,onClick:h?null:t=>{x(e,g),o.onClick&&o.onClick(t)},disabled:h,__experimentalIsFocusable:!0}),(0,U.jsx)(Ps.VisuallyHidden,{id:y,children:tB(a,p&&p.title,b,m,f,"up"===t?-1:1,v)})]})})),sB=(0,a.forwardRef)(((e,t)=>(0,U.jsx)(rB,{direction:"up",ref:t,...e}))),iB=(0,a.forwardRef)(((e,t)=>(0,U.jsx)(rB,{direction:"down",ref:t,...e})));const lB=function({clientIds:e,hideDragHandle:t,isBlockMoverUpButtonDisabled:n,isBlockMoverDownButtonDisabled:o}){const{canMove:r,rootClientId:s,isFirst:i,isLast:l,orientation:a}=(0,c.useSelect)((t=>{const{getBlockIndex:n,getBlockListSettings:o,canMoveBlocks:r,getBlockOrder:s,getBlockRootClientId:i}=t(Gr),l=Array.isArray(e)?e:[e],a=l[0],c=i(a),u=n(a),d=n(l[l.length-1]),p=s(c);return{canMove:r(e),rootClientId:c,isFirst:0===u,isLast:d===p.length-1,orientation:o(c)?.orientation}}),[e]);if(!r||i&&l&&!s)return null;const u=(0,C.__)("Drag");return(0,U.jsxs)(Ps.ToolbarGroup,{className:ws("block-editor-block-mover",{"is-horizontal":"horizontal"===a}),children:[!t&&(0,U.jsx)(XC,{clientIds:e,fadeWhenDisabled:!0,children:e=>(0,U.jsx)(Ps.Button,{icon:pS,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:u,tabIndex:"-1",...e})}),(0,U.jsxs)("div",{className:"block-editor-block-mover__move-button-container",children:[(0,U.jsx)(Ps.ToolbarItem,{children:t=>(0,U.jsx)(sB,{disabled:n,clientIds:e,...t})}),(0,U.jsx)(Ps.ToolbarItem,{children:t=>(0,U.jsx)(iB,{disabled:o,clientIds:e,...t})})]})]})},{clearTimeout:aB,setTimeout:cB}=window,uB=200;function dB({ref:e,isFocused:t,highlightParent:n,debounceTimeout:o=uB}){const{getSelectedBlockClientId:r,getBlockRootClientId:s}=(0,c.useSelect)(Gr),{toggleBlockHighlight:i}=(0,c.useDispatch)(Gr),l=(0,a.useRef)(),u=(0,c.useSelect)((e=>e(Gr).getSettings().isDistractionFree),[]),d=e=>{if(e&&u)return;const t=r(),o=n?s(t):t;i(o,e)},p=()=>{const n=e?.current&&e.current.matches(":hover");return!t&&!n},h=()=>{const e=l.current;e&&aB&&aB(e)};return(0,a.useEffect)((()=>()=>{d(!1),h()}),[]),{debouncedShowGestures:e=>{e&&e.stopPropagation(),h(),d(!0)},debouncedHideGestures:e=>{e&&e.stopPropagation(),h(),l.current=cB((()=>{p()&&d(!1)}),o)}}}function pB({ref:e,highlightParent:t=!1,debounceTimeout:n=uB}){const[o,r]=(0,a.useState)(!1),{debouncedShowGestures:s,debouncedHideGestures:i}=dB({ref:e,debounceTimeout:n,isFocused:o,highlightParent:t}),l=(0,a.useRef)(!1),c=()=>e?.current&&e.current.contains(e.current.ownerDocument.activeElement);return(0,a.useEffect)((()=>{const t=e.current,n=()=>{c()&&(r(!0),s())},o=()=>{c()||(r(!1),i())};return t&&!l.current&&(t.addEventListener("focus",n,!0),t.addEventListener("blur",o,!0),l.current=!0),()=>{t&&(t.removeEventListener("focus",n),t.removeEventListener("blur",o))}}),[e,l,r,s,i]),{onMouseMove:s,onMouseLeave:i}}function hB(){const{selectBlock:e}=(0,c.useDispatch)(Gr),{firstParentClientId:t,isVisible:n}=(0,c.useSelect)((e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientId:o,getBlockEditingMode:r}=e(Gr),{hasBlockSupport:s}=e(l.store),i=n(o()),a=i[i.length-1],c=t(a),u=(0,l.getBlockType)(c);return{firstParentClientId:a,isVisible:a&&"default"===r(a)&&s(u,"__experimentalParentSelector",!0)}}),[]),o=cm(t),r=(0,a.useRef)(),s=pB({ref:r,highlightParent:!0});return n?(0,U.jsx)("div",{className:"block-editor-block-parent-selector",ref:r,...s,children:(0,U.jsx)(Ps.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(t),label:(0,C.sprintf)((0,C.__)("Select parent block: %s"),o?.title),showTooltip:!0,icon:(0,U.jsx)(jf,{icon:o?.icon})})},t):null}const gB=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})});function mB({blocks:e}){return(0,U.jsx)("div",{className:"block-editor-block-switcher__popover__preview__parent",children:(0,U.jsx)("div",{className:"block-editor-block-switcher__popover__preview__container",children:(0,U.jsx)(Ps.Popover,{className:"block-editor-block-switcher__preview__popover",placement:"bottom-start",focusOnMount:!1,children:(0,U.jsxs)("div",{className:"block-editor-block-switcher__preview",children:[(0,U.jsx)("div",{className:"block-editor-block-switcher__preview-title",children:(0,C.__)("Preview")}),(0,U.jsx)(lS,{viewportWidth:500,blocks:e})]})})})})}const fB={};function bB({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:o,icon:r,title:s}=e;return(0,U.jsxs)(Ps.MenuItem,{className:(0,l.getBlockMenuDefaultClassName)(o),onClick:e=>{e.preventDefault(),t(o)},onMouseLeave:()=>n(null),onMouseEnter:()=>n(o),children:[(0,U.jsx)(jf,{icon:r,showColors:!0}),s]})}const vB=({transformations:e,onSelect:t,blocks:n})=>{const[o,r]=(0,a.useState)();return(0,U.jsxs)(U.Fragment,{children:[o&&(0,U.jsx)(mB,{blocks:(0,l.cloneBlock)(n[0],e.find((({name:e})=>e===o)).attributes)}),e?.map((e=>(0,U.jsx)(bB,{item:e,onSelect:t,setHoveredTransformItemName:r},e.name)))]})};function kB({restTransformations:e,onSelect:t,setHoveredTransformItemName:n}){return e.map((e=>(0,U.jsx)(_B,{item:e,onSelect:t,setHoveredTransformItemName:n},e.name)))}function _B({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:o,icon:r,title:s,isDisabled:i}=e;return(0,U.jsxs)(Ps.MenuItem,{className:(0,l.getBlockMenuDefaultClassName)(o),onClick:e=>{e.preventDefault(),t(o)},disabled:i,onMouseLeave:()=>n(null),onMouseEnter:()=>n(o),children:[(0,U.jsx)(jf,{icon:r,showColors:!0}),s]})}const xB=({className:e,possibleBlockTransformations:t,possibleBlockVariationTransformations:n,onSelect:o,onSelectVariation:r,blocks:s})=>{const[i,c]=(0,a.useState)(),{priorityTextTransformations:u,restTransformations:d}=function(e){const t={"core/paragraph":1,"core/heading":2,"core/list":3,"core/quote":4},n=(0,a.useMemo)((()=>{const n=Object.keys(t),o=e.reduce(((e,t)=>{const{name:o}=t;return n.includes(o)?e.priorityTextTransformations.push(t):e.restTransformations.push(t),e}),{priorityTextTransformations:[],restTransformations:[]});if(1===o.priorityTextTransformations.length&&"core/quote"===o.priorityTextTransformations[0].name){const e=o.priorityTextTransformations.pop();o.restTransformations.push(e)}return o}),[e]);return n.priorityTextTransformations.sort((({name:e},{name:n})=>t[e]<t[n]?-1:1)),n}(t),p=u.length&&d.length,h=!!d.length&&(0,U.jsx)(kB,{restTransformations:d,onSelect:o,setHoveredTransformItemName:c});return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Ps.MenuGroup,{label:(0,C.__)("Transform to"),className:e,children:[i&&(0,U.jsx)(mB,{blocks:(0,l.switchToBlockType)(s,i)}),!!n?.length&&(0,U.jsx)(vB,{transformations:n,blocks:s,onSelect:r}),u.map((e=>(0,U.jsx)(_B,{item:e,onSelect:o,setHoveredTransformItemName:c},e.name))),!p&&h]}),!!p&&(0,U.jsx)(Ps.MenuGroup,{className:e,children:h})]})};function yB(e,t,n){const o=new(ch())(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}function SB(e){return e?.find((e=>e.isDefault))}function wB({clientId:e,onSwitch:t}){const{styles:n,block:o,blockType:r,className:s}=(0,c.useSelect)((t=>{const{getBlock:n}=t(Gr),o=n(e);if(!o)return{};const r=(0,l.getBlockType)(o.name),{getBlockStyles:s}=t(l.store);return{block:o,blockType:r,styles:s(o.name),className:o.attributes.className||""}}),[e]),{updateBlockAttributes:i}=(0,c.useDispatch)(Gr),u=function(e){return e&&0!==e.length?SB(e)?e:[{name:"default",label:(0,C._x)("Default","block style"),isDefault:!0},...e]:[]}(n),d=function(e,t){for(const n of new(ch())(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),o=e?.find((({name:e})=>e===t));if(o)return o}return SB(e)}(u,s),p=function(e,t){return(0,a.useMemo)((()=>{const n=t?.example,o=t?.name;return n&&o?(0,l.getBlockFromExample)(o,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?(0,l.cloneBlock)(e):void 0}),[t?.example?e?.name:e,t])}(o,r);return{onSelect:n=>{const o=yB(s,d,n);i(e,{className:o}),t()},stylesToRender:u,activeStyle:d,genericPreviewBlock:p,className:s}}const CB=()=>{};function BB({clientId:e,onSwitch:t=CB}){const{onSelect:n,stylesToRender:o,activeStyle:r}=wB({clientId:e,onSwitch:t});return o&&0!==o.length?(0,U.jsx)(U.Fragment,{children:o.map((e=>{const t=e.label||e.name;return(0,U.jsx)(Ps.MenuItem,{icon:r.name===e.name?Wu:null,onClick:()=>n(e),children:(0,U.jsx)(Ps.__experimentalText,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0,children:t})},e.name)}))}):null}function IB({hoveredBlock:e,onSwitch:t}){const{clientId:n}=e;return(0,U.jsx)(Ps.MenuGroup,{label:(0,C.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup",children:(0,U.jsx)(BB,{clientId:n,onSwitch:t})})}const jB=(e,t,n=new Set)=>{const{clientId:o,name:r,innerBlocks:s=[]}=e;if(!n.has(o)){if(r===t)return e;for(const e of s){const o=jB(e,t,n);if(o)return o}}},EB=(e,t)=>{const n=((e,t)=>{const n=(0,l.__experimentalGetBlockAttributesNamesByRole)(e,"content");return n?.length?n.reduce(((e,n)=>(t[n]&&(e[n]=t[n]),e)),{}):t})(t.name,t.attributes);e.attributes={...e.attributes,...n}},TB=(e,t)=>(0,a.useMemo)((()=>e.reduce(((e,n)=>{const o=((e,t)=>{const n=t.map((e=>(0,l.cloneBlock)(e))),o=new Set;for(const t of e){let e=!1;for(const r of n){const n=jB(r,t.name,o);if(n){e=!0,o.add(n.clientId),EB(n,t);break}}if(!e)return}return n})(t,n.blocks);return o&&e.push({...n,transformedBlocks:o}),e}),[])),[e,t]),{CompositeV2:MB,CompositeItemV2:PB,useCompositeStoreV2:RB}=Q(Ps.privateApis);function NB({patterns:e,onSelect:t}){return(0,U.jsx)("div",{className:"block-editor-block-switcher__popover__preview__parent",children:(0,U.jsx)("div",{className:"block-editor-block-switcher__popover__preview__container",children:(0,U.jsx)(Ps.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right",children:(0,U.jsx)("div",{className:"block-editor-block-switcher__preview is-pattern-list-preview",children:(0,U.jsx)(AB,{patterns:e,onSelect:t})})})})})}function AB({patterns:e,onSelect:t}){const n=RB();return(0,U.jsx)(MB,{store:n,role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":(0,C.__)("Patterns list"),children:e.map((e=>(0,U.jsx)(LB,{pattern:e,onSelect:t},e.name)))})}function LB({pattern:e,onSelect:t}){const n="block-editor-block-switcher__preview-patterns-container",o=(0,u.useInstanceId)(LB,`${n}-list__item-description`);return(0,U.jsxs)("div",{className:`${n}-list__list-item`,children:[(0,U.jsxs)(PB,{render:(0,U.jsx)("div",{role:"option","aria-label":e.title,"aria-describedby":e.description?o:void 0,className:`${n}-list__item`}),onClick:()=>t(e.transformedBlocks),children:[(0,U.jsx)(lS,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),(0,U.jsx)("div",{className:`${n}-list__item-title`,children:e.title})]}),!!e.description&&(0,U.jsx)(Ps.VisuallyHidden,{id:o,children:e.description})]})}const OB=function({blocks:e,patterns:t,onSelect:n}){const[o,r]=(0,a.useState)(!1),s=TB(t,e);return s.length?(0,U.jsxs)(Ps.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup",children:[o&&(0,U.jsx)(NB,{patterns:s,onSelect:n}),(0,U.jsx)(Ps.MenuItem,{onClick:e=>{e.preventDefault(),r(!o)},icon:ly,children:(0,C.__)("Patterns")})]}):null};function DB({onClose:e,clientIds:t,hasBlockStyles:n,canRemove:o,isUsingBindings:r}){const{replaceBlocks:s,multiSelect:i,updateBlockAttributes:u}=(0,c.useDispatch)(Gr),{possibleBlockTransformations:d,patterns:p,blocks:h}=(0,c.useSelect)((e=>{const{getBlocksByClientId:n,getBlockRootClientId:o,getBlockTransformItems:r,__experimentalGetPatternTransformItems:s}=e(Gr),i=o(Array.isArray(t)?t[0]:t),l=n(t);return{blocks:l,possibleBlockTransformations:r(l,i),patterns:s(l,i)}}),[t]),g=function({clientIds:e,blocks:t}){const{activeBlockVariation:n,blockVariationTransformations:o}=(0,c.useSelect)((n=>{const{getBlockAttributes:o,canRemoveBlocks:r}=n(Gr),{getActiveBlockVariation:s,getBlockVariations:i}=n(l.store),a=r(e);if(1!==t.length||!a)return fB;const[c]=t;return{blockVariationTransformations:i(c.name,"transform"),activeBlockVariation:s(c.name,o(c.clientId))}}),[e,t]);return(0,a.useMemo)((()=>o?.filter((({name:e})=>e!==n?.name))),[o,n])}({clientIds:t,blocks:h});function m(e){e.length>1&&i(e[0].clientId,e[e.length-1].clientId)}const f=1===h.length,b=f&&(0,l.isTemplatePart)(h[0]),v=!!d.length&&o&&!b,k=!!g?.length,_=!!p?.length&&o,x=v||k;if(!(n||x||_))return(0,U.jsx)("p",{className:"block-editor-block-switcher__no-transforms",children:(0,C.__)("No transforms.")});const y=f?(0,C._x)("This block is connected.","block toolbar button label and description"):(0,C._x)("These blocks are connected.","block toolbar button label and description");return(0,U.jsxs)("div",{className:"block-editor-block-switcher__container",children:[_&&(0,U.jsx)(OB,{blocks:h,patterns:p,onSelect:n=>{!function(e){s(t,e),m(e)}(n),e()}}),x&&(0,U.jsx)(xB,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:d,possibleBlockVariationTransformations:g,blocks:h,onSelect:n=>{!function(e){const n=(0,l.switchToBlockType)(h,e);s(t,n),m(n)}(n),e()},onSelectVariation:t=>{!function(e){u(h[0].clientId,{...g.find((({name:t})=>t===e)).attributes})}(t),e()}}),n&&(0,U.jsx)(IB,{hoveredBlock:h[0],onSwitch:e}),r&&(0,U.jsx)(Ps.MenuGroup,{children:(0,U.jsx)(Ps.__experimentalText,{className:"block-editor-block-switcher__binding-indicator",children:y})})]})}const zB=({clientIds:e,disabled:t,isUsingBindings:n})=>{const{canRemove:o,hasBlockStyles:r,icon:s,invalidBlocks:i,isReusable:a,isTemplate:u}=(0,c.useSelect)((t=>{const{getBlocksByClientId:n,getBlockAttributes:o,canRemoveBlocks:r}=t(Gr),{getBlockStyles:s,getBlockType:i,getActiveBlockVariation:a}=t(l.store),c=n(e);if(!c.length||c.some((e=>!e)))return{invalidBlocks:!0};const[{name:u}]=c,d=1===c.length,p=i(u);let h;if(d){const t=a(u,o(e[0]));h=t?.icon||p.icon}else{h=1===new Set(c.map((({name:e})=>e))).size?p.icon:gB}return{canRemove:r(e),hasBlockStyles:d&&!!s(u)?.length,icon:h,isReusable:d&&(0,l.isReusableBlock)(c[0]),isTemplate:d&&(0,l.isTemplatePart)(c[0])}}),[e]),d=Hb({clientId:e?.[0],maximumLength:35});if(i)return null;const p=1===e.length,h=p?d:(0,C.__)("Multiple blocks selected");if(t||!r&&!o)return(0,U.jsx)(Ps.ToolbarGroup,{children:(0,U.jsx)(Ps.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:h,icon:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(jf,{icon:s,showColors:!0}),(a||u)&&(0,U.jsx)("span",{className:"block-editor-block-switcher__toggle-text",children:d})]})})});const g=p?(0,C.__)("Change block type or style"):(0,C.sprintf)((0,C._n)("Change type of %d block","Change type of %d blocks",e.length),e.length);return(0,U.jsx)(Ps.ToolbarGroup,{children:(0,U.jsx)(Ps.ToolbarItem,{children:t=>(0,U.jsx)(Ps.DropdownMenu,{className:"block-editor-block-switcher",label:h,popoverProps:{placement:"bottom-start",className:"block-editor-block-switcher__popover"},icon:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(jf,{icon:s,className:"block-editor-block-switcher__toggle",showColors:!0}),(a||u)&&(0,U.jsx)("span",{className:"block-editor-block-switcher__toggle-text",children:d})]}),toggleProps:{describedBy:g,...t},menuProps:{orientation:"both"},children:({onClose:t})=>(0,U.jsx)(DB,{onClose:t,clientIds:e,hasBlockStyles:r,canRemove:o,isUsingBindings:n})})})})},{Fill:VB,Slot:FB}=(0,Ps.createSlotFill)("__unstableBlockToolbarLastItem");VB.Slot=FB;const HB=VB,GB="align",UB="__experimentalBorder",$B="color",WB="customClassName",KB="typography.__experimentalFontFamily",ZB="typography.fontSize",qB="typography.textAlign",YB="layout",XB=["shadow",...["typography.lineHeight",ZB,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",KB,qB,"typography.textColumns","typography.__experimentalTextDecoration","typography.__experimentalTextTransform","typography.__experimentalWritingMode","typography.__experimentalLetterSpacing"],UB,$B,"spacing"];const QB={align:e=>(0,l.hasBlockSupport)(e,GB),borderColor:e=>function(e,t="any"){if("web"!==a.Platform.OS)return!1;const n=(0,l.getBlockSupport)(e,UB);return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}(e,"color"),backgroundColor:e=>{const t=(0,l.getBlockSupport)(e,$B);return t&&!1!==t.background},textAlign:e=>(0,l.hasBlockSupport)(e,qB),textColor:e=>{const t=(0,l.getBlockSupport)(e,$B);return t&&!1!==t.text},gradient:e=>{const t=(0,l.getBlockSupport)(e,$B);return null!==t&&"object"==typeof t&&!!t.gradients},className:e=>(0,l.hasBlockSupport)(e,WB,!0),fontFamily:e=>(0,l.hasBlockSupport)(e,KB),fontSize:e=>(0,l.hasBlockSupport)(e,ZB),layout:e=>(0,l.hasBlockSupport)(e,YB),style:e=>XB.some((t=>(0,l.hasBlockSupport)(e,t)))};function JB(e,t){return Object.entries(QB).reduce(((n,[o,r])=>(r(e.name)&&r(t.name)&&(n[o]=e.attributes[o]),n)),{})}function eI(e,t,n){for(let o=0;o<Math.min(t.length,e.length);o+=1)n(e[o].clientId,JB(t[o],e[o])),eI(e[o].innerBlocks,t[o].innerBlocks,n)}function tI(){const e=(0,c.useRegistry)(),{updateBlockAttributes:t}=(0,c.useDispatch)(Gr),{createSuccessNotice:n,createWarningNotice:o,createErrorNotice:r}=(0,c.useDispatch)(jo.store);return(0,a.useCallback)((async s=>{let i="";try{if(!window.navigator.clipboard)return void r((0,C.__)("Unable to paste styles. This feature is only available on secure (https) sites in supporting browsers."),{type:"snackbar"});i=await window.navigator.clipboard.readText()}catch(e){return void r((0,C.__)("Unable to paste styles. Please allow browser clipboard permissions before continuing."),{type:"snackbar"})}if(!i||!function(e){try{const t=(0,l.parse)(e,{__unstableSkipMigrationLogs:!0,__unstableSkipAutop:!0});return 1!==t.length||"core/freeform"!==t[0].name}catch(e){return!1}}(i))return void o((0,C.__)("Unable to paste styles. Block styles couldn't be found within the copied content."),{type:"snackbar"});const a=(0,l.parse)(i);if(1===a.length?e.batch((()=>{eI(s,s.map((()=>a[0])),t)})):e.batch((()=>{eI(s,a,t)})),1===s.length){const e=(0,l.getBlockType)(s[0].name)?.title;n((0,C.sprintf)((0,C.__)("Pasted styles to %s."),e),{type:"snackbar"})}else n((0,C.sprintf)((0,C.__)("Pasted styles to %d blocks."),s.length),{type:"snackbar"})}),[e.batch,t,n,o,r])}function nI({clientIds:e,children:t,__experimentalUpdateSelection:n}){const{getDefaultBlockName:o,getGroupingBlockName:r}=(0,c.useSelect)(l.store),s=(0,c.useSelect)((t=>{const{canInsertBlockType:n,getBlockRootClientId:r,getBlocksByClientId:s,getDirectInsertBlock:i,canMoveBlocks:a,canRemoveBlocks:c}=t(Gr),u=s(e),d=r(e[0]),p=n(o(),d),h=d?i(d):null;return{canMove:a(e),canRemove:c(e),canInsertBlock:p||!!h,canCopyStyles:u.every((e=>!!e&&((0,l.hasBlockSupport)(e.name,"color")||(0,l.hasBlockSupport)(e.name,"typography")))),canDuplicate:u.every((e=>!!e&&(0,l.hasBlockSupport)(e.name,"multiple",!0)&&n(e.name,d)))}}),[e,o]),{getBlocksByClientId:i,getBlocks:a}=(0,c.useSelect)(Gr),{canMove:u,canRemove:d,canInsertBlock:p,canCopyStyles:h,canDuplicate:g}=s,{removeBlocks:m,replaceBlocks:f,duplicateBlocks:b,insertAfterBlock:v,insertBeforeBlock:k,flashBlock:_,setBlockMovingClientId:x,setNavigationMode:y,selectBlock:S}=(0,c.useDispatch)(Gr),w=Py(),C=tI();return t({canCopyStyles:h,canDuplicate:g,canInsertBlock:p,canMove:u,canRemove:d,onDuplicate:()=>b(e,n),onRemove:()=>m(e,n),onInsertBefore(){k(e[0])},onInsertAfter(){v(e[e.length-1])},onMoveTo(){y(!0),S(e[0]),x(e[0])},onGroup(){if(!e.length)return;const t=r(),n=(0,l.switchToBlockType)(i(e),t);n&&f(e,n)},onUngroup(){if(!e.length)return;const t=a(e[0]);t.length&&f(e,t)},onCopy(){1===e.length&&_(e[0]),w("copy",e)},async onPasteStyles(){await C(i(e))}})}const oI=function({clientId:e}){const t=(0,c.useSelect)((t=>t(Gr).getBlock(e)),[e]),{replaceBlocks:n}=(0,c.useDispatch)(Gr);return t&&"core/html"===t.name?(0,U.jsx)(Ps.MenuItem,{onClick:()=>n(e,(0,l.rawHandler)({HTML:(0,l.getBlockContent)(t)})),children:(0,C.__)("Convert to Blocks")}):null},{Fill:rI,Slot:sI}=(0,Ps.createSlotFill)("__unstableBlockSettingsMenuFirstItem");rI.Slot=sI;const iI=rI;function lI({parentClientId:e,parentBlockType:t}){const n=(0,u.useViewportMatch)("medium","<"),{selectBlock:o}=(0,c.useDispatch)(Gr),r=(0,a.useRef)(),s=pB({ref:r,highlightParent:!0});return n?(0,U.jsx)(Ps.MenuItem,{...s,ref:r,icon:(0,U.jsx)(jf,{icon:t.icon}),onClick:()=>o(e),children:(0,C.sprintf)((0,C.__)("Select parent block (%s)"),t.title)}):null}const aI={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"};function cI({clientIds:e,onCopy:t,label:n,shortcut:o}){const{getBlocksByClientId:r}=(0,c.useSelect)(Gr),s=(0,u.useCopyToClipboard)((()=>(0,l.serialize)(r(e))),t),i=n||(0,C.__)("Copy");return(0,U.jsx)(Ps.MenuItem,{ref:s,shortcut:o,children:i})}function uI({block:e,clientIds:t,children:n,__experimentalSelectBlock:o,...r}){const s=e?.clientId,i=t.length,d=t[0],{firstParentClientId:p,onlyBlock:h,parentBlockType:g,previousBlockClientId:m,selectedBlockClientIds:f,openedBlockSettingsMenu:b,isContentOnly:v}=(0,c.useSelect)((e=>{const{getBlockCount:t,getBlockName:n,getBlockRootClientId:o,getPreviousBlockClientId:r,getSelectedBlockClientIds:s,getBlockAttributes:i,getOpenedBlockSettingsMenu:a,getBlockEditingMode:c}=Q(e(Gr)),{getActiveBlockVariation:u}=e(l.store),p=o(d),h=p&&n(p);return{firstParentClientId:p,onlyBlock:1===t(p),parentBlockType:p&&(u(h,i(p))||(0,l.getBlockType)(h)),previousBlockClientId:r(d),selectedBlockClientIds:s(),openedBlockSettingsMenu:a(),isContentOnly:"contentOnly"===c(d)}}),[d]),{getBlockOrder:k,getSelectedBlockClientIds:_}=(0,c.useSelect)(Gr),{setOpenedBlockSettingsMenu:x}=Q((0,c.useDispatch)(Gr)),y=(0,c.useSelect)((e=>{const{getShortcutRepresentation:t}=e(hy.store);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")}}),[]),S=f.length>0;async function w(e){if(!o)return;const t=await e;t&&t[0]&&o(t[0],!1)}function B(){if(!o)return;let e=m||p;e||(e=k()[0]);const t=S&&0===_().length;o(e,t)}const I=f?.includes(p),j=s?b===s||!1:void 0;function E(e){e&&b!==s?x(s):!e&&b&&b===s&&x(void 0)}return(0,U.jsx)(nI,{clientIds:t,__experimentalUpdateSelection:!o,children:({canCopyStyles:e,canDuplicate:o,canInsertBlock:s,canMove:l,canRemove:c,onDuplicate:m,onInsertAfter:f,onInsertBefore:b,onRemove:k,onCopy:_,onPasteStyles:x,onMoveTo:S})=>(0,U.jsx)(Ps.DropdownMenu,{icon:Qb,label:(0,C.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:aI,open:j,onToggle:E,noIcons:!0,...r,children:({onClose:r})=>(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Ps.MenuGroup,{children:[(0,U.jsx)(iI.Slot,{fillProps:{onClose:r}}),!I&&!!p&&(0,U.jsx)(lI,{parentClientId:p,parentBlockType:g}),1===i&&(0,U.jsx)(oI,{clientId:d}),!v&&(0,U.jsx)(cI,{clientIds:t,onCopy:_,shortcut:la.displayShortcut.primary("c")}),o&&(0,U.jsx)(Ps.MenuItem,{onClick:(0,u.pipe)(r,m,w),shortcut:y.duplicate,children:(0,C.__)("Duplicate")}),s&&!v&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ps.MenuItem,{onClick:(0,u.pipe)(r,b),shortcut:y.insertBefore,children:(0,C.__)("Add before")}),(0,U.jsx)(Ps.MenuItem,{onClick:(0,u.pipe)(r,f),shortcut:y.insertAfter,children:(0,C.__)("Add after")})]})]}),e&&!v&&(0,U.jsxs)(Ps.MenuGroup,{children:[(0,U.jsx)(cI,{clientIds:t,onCopy:_,label:(0,C.__)("Copy styles")}),(0,U.jsx)(Ps.MenuItem,{onClick:x,children:(0,C.__)("Paste styles")})]}),(0,U.jsx)(wf.Slot,{fillProps:{onClose:r,canMove:l,onMoveTo:S,onlyBlock:h,count:i,firstBlockClientId:d},clientIds:t}),"function"==typeof n?n({onClose:r}):a.Children.map((e=>(0,a.cloneElement)(e,{onClose:r}))),c&&(0,U.jsx)(Ps.MenuGroup,{children:(0,U.jsx)(Ps.MenuItem,{onClick:(0,u.pipe)(r,k,B),shortcut:y.remove,children:(0,C.__)("Delete")})})]})})})}const dI=uI;const pI=function({clientIds:e,...t}){return(0,U.jsx)(Ps.ToolbarGroup,{children:(0,U.jsx)(Ps.ToolbarItem,{children:n=>(0,U.jsx)(dI,{clientIds:e,toggleProps:n,...t})})})};function hI({clientId:e}){const{canLock:t,isLocked:n}=af(e),[o,r]=(0,a.useReducer)((e=>!e),!1),s=(0,a.useRef)(!1);if((0,a.useEffect)((()=>{n&&(s.current=!0)}),[n]),!n&&!s.current)return null;let i=n?(0,C.__)("Unlock"):(0,C.__)("Lock");return!t&&n&&(i=(0,C.__)("Locked")),(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ps.ToolbarGroup,{className:"block-editor-block-lock-toolbar",children:(0,U.jsx)(Ps.ToolbarButton,{accessibleWhenDisabled:!0,disabled:!t,icon:n?df:cf,label:i,onClick:r,"aria-expanded":o,"aria-haspopup":"dialog"})}),o&&(0,U.jsx)(gf,{clientId:e,onClose:r})]})}const gI=(0,U.jsx)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,U.jsx)(G.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"})}),mI=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})}),fI=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})}),bI=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})}),vI={group:{type:"constrained"},row:{type:"flex",flexWrap:"nowrap"},stack:{type:"flex",orientation:"vertical"},grid:{type:"grid"}};const kI=function(){const{blocksSelection:e,clientIds:t,groupingBlockName:n,isGroupable:o}=sf(),{replaceBlocks:r}=(0,c.useDispatch)(Gr),{canRemove:s,variations:i}=(0,c.useSelect)((e=>{const{canRemoveBlocks:o}=e(Gr),{getBlockVariations:r}=e(l.store);return{canRemove:o(t),variations:r(n,"transform")}}),[t,n]),a=o=>{const s=(0,l.switchToBlockType)(e,n);"string"!=typeof o&&(o="group"),s&&s.length>0&&(s[0].attributes.layout=vI[o],r(t,s))};if(!o||!s)return null;const u=!!i.find((({name:e})=>"group-row"===e)),d=!!i.find((({name:e})=>"group-stack"===e)),p=!!i.find((({name:e})=>"group-grid"===e));return(0,U.jsxs)(Ps.ToolbarGroup,{children:[(0,U.jsx)(Ps.ToolbarButton,{icon:gI,label:(0,C._x)("Group","verb"),onClick:a}),u&&(0,U.jsx)(Ps.ToolbarButton,{icon:mI,label:(0,C._x)("Row","single horizontal line"),onClick:()=>a("row")}),d&&(0,U.jsx)(Ps.ToolbarButton,{icon:fI,label:(0,C._x)("Stack","verb"),onClick:()=>a("stack")}),p&&(0,U.jsx)(Ps.ToolbarButton,{icon:bI,label:(0,C._x)("Grid","verb"),onClick:()=>a("grid")})]})};function _I({clientIds:e}){const t=1===e.length?e[0]:void 0,n=(0,c.useSelect)((e=>!!t&&"html"===e(Gr).getBlockMode(t)),[t]),{toggleBlockMode:o}=(0,c.useDispatch)(Gr);return n?(0,U.jsx)(Ps.ToolbarGroup,{children:(0,U.jsx)(Ps.ToolbarButton,{onClick:()=>{o(t)},children:(0,C.__)("Edit visually")})}):null}const xI=(0,a.createContext)("");function yI(e){return Array.from(e.querySelectorAll("[data-toolbar-item]:not([disabled])"))}function SI(e){return e.contains(e.ownerDocument.activeElement)}function wI({toolbarRef:e,focusOnMount:t,isAccessibleToolbar:n,defaultIndex:o,onIndexChange:r,shouldUseKeyboardFocusShortcut:s,focusEditorOnEscape:i}){const[l]=(0,a.useState)(t),[u]=(0,a.useState)(o),d=(0,a.useCallback)((()=>{!function(e){const[t]=sa.focus.tabbable.find(e);t&&t.focus({preventScroll:!0})}(e.current)}),[e]);(0,hy.useShortcut)("core/block-editor/focus-toolbar",(()=>{s&&d()})),(0,a.useEffect)((()=>{l&&d()}),[n,l,d]),(0,a.useEffect)((()=>{const t=e.current;let n=0;return l||SI(t)||(n=window.requestAnimationFrame((()=>{const e=yI(t),n=u||0;e[n]&&SI(t)&&e[n].focus({preventScroll:!0})}))),()=>{if(window.cancelAnimationFrame(n),!r||!t)return;const e=yI(t).findIndex((e=>0===e.tabIndex));r(e)}}),[u,l,r,e]);const{getLastFocus:p}=Q((0,c.useSelect)(Gr));(0,a.useEffect)((()=>{const t=e.current;if(i){const e=e=>{const t=p();e.keyCode===la.ESCAPE&&t?.current&&(e.preventDefault(),t.current.focus())};return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}}),[i,p,e])}function CI({children:e,focusOnMount:t,focusEditorOnEscape:n=!1,shouldUseKeyboardFocusShortcut:o=!0,__experimentalInitialIndex:r,__experimentalOnIndexChange:s,...i}){const l=(0,a.useRef)(),c=function(e){const[t,n]=(0,a.useState)(!0),o=(0,a.useCallback)((()=>{const t=!sa.focus.tabbable.find(e.current).some((e=>!("toolbarItem"in e.dataset)));t||y()("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),n(t)}),[e]);return(0,a.useLayoutEffect)((()=>{const t=new window.MutationObserver(o);return t.observe(e.current,{childList:!0,subtree:!0}),()=>t.disconnect()}),[o,t,e]),t}(l);return wI({toolbarRef:l,focusOnMount:t,defaultIndex:r,onIndexChange:s,isAccessibleToolbar:c,shouldUseKeyboardFocusShortcut:o,focusEditorOnEscape:n}),c?(0,U.jsx)(Ps.Toolbar,{label:i["aria-label"],ref:l,...i,children:e}):(0,U.jsx)(Ps.NavigableMenu,{orientation:"horizontal",role:"toolbar",ref:l,...i,children:e})}const BI=(0,U.jsx)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/SVG",children:(0,U.jsx)(G.Path,{d:"M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z"})}),II=[];function jI(e){return(0,U.jsx)(Ps.ToolbarGroup,{children:(0,U.jsx)(Ps.ToolbarButton,{...e})})}function EI({clientId:e,as:t=jI}){const{categories:n,patterns:o,patternName:r}=(0,c.useSelect)((t=>{const{getBlockAttributes:n,getBlockRootClientId:o,__experimentalGetAllowedPatterns:r}=t(Gr),s=n(e),i=s?.metadata?.categories||II,l=s?.metadata?.patternName;return{categories:i,patterns:r(o(e)),patternName:l}}),[e]),{replaceBlocks:s}=(0,c.useDispatch)(Gr),i=(0,a.useMemo)((()=>n&&0!==n.length&&o&&0!==o.length?o.filter((e=>1===e.blocks.length&&e.categories?.some((e=>n.includes(e)))&&("unsynced"===e.syncStatus||!e.id))):II),[n,o]);if(i.length<2)return null;const l=t;return(0,U.jsx)(l,{label:(0,C.__)("Shuffle"),icon:BI,onClick:()=>{const t=function(){const e=i.length,t=i.findIndex((({name:e})=>e===r));return i[t+1<e?t+1:0]}();t.blocks[0].attributes={...t.blocks[0].attributes,metadata:{...t.blocks[0].attributes.metadata,categories:n}},s(e,t.blocks)}})}function TI(e="default"){const t=Rs[e]?.Slot,n=(0,Ps.__experimentalUseSlotFills)(t?.__unstableName);return t?!!n?.length:null}function MI(){const{isToolbarEnabled:e,isDefaultEditingMode:t}=(0,c.useSelect)((e=>{const{getBlockEditingMode:t,getBlockName:n,getBlockSelectionStart:o}=e(Gr),r=o(),s=r&&(0,l.getBlockType)(n(r));return{isToolbarEnabled:s&&(0,l.hasBlockSupport)(s,"__experimentalToolbar",!0),isDefaultEditingMode:"default"===t(r)}}),[]),n=function(){let e=!1;for(const t in Rs)TI(t)&&(e=!0);return e}();return!(!e||!t&&!n)}function PI({hideDragHandle:e,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:o,variant:r="unstyled"}){const{blockClientId:s,blockClientIds:i,isDefaultEditingMode:d,blockType:p,toolbarKey:h,shouldShowVisualToolbar:g,showParentSelector:m,isUsingBindings:f}=(0,c.useSelect)((e=>{const{getBlockName:t,getBlockMode:n,getBlockParents:o,getSelectedBlockClientIds:r,isBlockValid:s,getBlockRootClientId:i,getBlockEditingMode:a,getBlockAttributes:c}=e(Gr),u=r(),d=u[0],p=i(d),h=o(d),g=h[h.length-1],m=t(g),f=(0,l.getBlockType)(m),b="default"===a(d),v=t(d),k=u.every((e=>s(e))),_=u.every((e=>"visual"===n(e))),x=u.every((e=>!!c(e)?.metadata?.bindings));return{blockClientId:d,blockClientIds:u,isDefaultEditingMode:b,blockType:d&&(0,l.getBlockType)(v),shouldShowVisualToolbar:k&&_,rootClientId:p,toolbarKey:`${d}${g}`,showParentSelector:f&&"default"===a(g)&&(0,l.hasBlockSupport)(f,"__experimentalParentSelector",!0)&&1===u.length&&b,isUsingBindings:x}}),[]),b=(0,a.useRef)(null),v=(0,a.useRef)(),k=pB({ref:v}),_=!(0,u.useViewportMatch)("medium","<");if(!MI())return null;const x=i.length>1,y=(0,l.isReusableBlock)(p)||(0,l.isTemplatePart)(p),S=ws("block-editor-block-contextual-toolbar",{"has-parent":m}),w=ws("block-editor-block-toolbar",{"is-synced":y,"is-connected":f});return(0,U.jsx)(CI,{focusEditorOnEscape:!0,className:S,"aria-label":(0,C.__)("Block tools"),variant:"toolbar"===r?void 0:r,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:o,children:(0,U.jsxs)("div",{ref:b,className:w,children:[!x&&_&&d&&(0,U.jsx)(hB,{}),(g||x)&&(d||y)&&(0,U.jsx)("div",{ref:v,...k,children:(0,U.jsxs)(Ps.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls",children:[(0,U.jsx)(zB,{clientIds:i,disabled:!d,isUsingBindings:f}),d&&(0,U.jsxs)(U.Fragment,{children:[!x&&(0,U.jsx)(hI,{clientId:s}),(0,U.jsx)(lB,{clientIds:i,hideDragHandle:e})]})]})}),(0,U.jsx)(EI,{clientId:s}),g&&x&&(0,U.jsx)(kI,{}),g&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(zs.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),(0,U.jsx)(zs.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),(0,U.jsx)(zs.Slot,{className:"block-editor-block-toolbar__slot"}),(0,U.jsx)(zs.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),(0,U.jsx)(zs.Slot,{group:"other",className:"block-editor-block-toolbar__slot"}),(0,U.jsx)(xI.Provider,{value:p?.name,children:(0,U.jsx)(HB.Slot,{})})]}),(0,U.jsx)(_I,{clientIds:i}),d&&(0,U.jsx)(pI,{clientIds:i})]})},h)}function RI({hideDragHandle:e,variant:t}){return(0,U.jsx)(PI,{hideDragHandle:e,variant:t,focusOnMount:void 0,__experimentalInitialIndex:void 0,__experimentalOnIndexChange:void 0})}function NI({clientId:e,isTyping:t,__unstableContentRef:n}){const{capturingClientId:o,isInsertionPointVisible:r,lastClientId:s}=qC(e),i=(0,a.useRef)();(0,a.useEffect)((()=>{i.current=void 0}),[e]);const{stopTyping:l}=(0,c.useDispatch)(Gr),u=(0,a.useRef)(!1);(0,hy.useShortcut)("core/block-editor/focus-toolbar",(()=>{u.current=!0,l(!0)})),(0,a.useEffect)((()=>{u.current=!1}));const d=ZC({contentElement:n?.current,clientId:e});return!t&&(0,U.jsx)(tl,{clientId:o||e,bottomClientId:s,className:ws("block-editor-block-list__block-popover",{"is-insertion-point-visible":r}),resize:!1,...d,children:(0,U.jsx)(PI,{focusOnMount:u.current,__experimentalInitialIndex:i.current,__experimentalOnIndexChange:e=>{i.current=e},variant:"toolbar"})})}const AI=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})});const LI=function({clientId:e,rootClientId:t}){const n=(0,c.useSelect)((n=>{const{getBlock:o,getBlockIndex:r,hasBlockMovingClientId:s,getBlockListSettings:i,__unstableGetEditorMode:a,getNextBlockClientId:c,getPreviousBlockClientId:u,canRemoveBlock:d,canMoveBlock:p}=n(Gr),{getActiveBlockVariation:h,getBlockType:g}=n(l.store),m=r(e),{name:f,attributes:b}=o(e),v=g(f),k=i(t)?.orientation,_=h(f,b),x="core/template-part"===v?.name;let y=!1;const S=c();if(S){const{name:e}=o(S),t=g(e);y="core/template-part"===t?.name}let w=!1;const C=u();if(C){const{name:e}=o(C),t=g(e);w="core/template-part"===t?.name}return{blockMovingMode:s(),editorMode:a(),icon:_?.icon||v.icon,label:(0,l.__experimentalGetAccessibleBlockLabel)(v,b,m+1,k),isBlockTemplatePart:x,isNextBlockTemplatePart:y,isPrevBlockTemplatePart:w,canRemove:d(e),canMove:p(e)}}),[e,t]),{label:o,icon:r,blockMovingMode:s,editorMode:i,isBlockTemplatePart:u,isNextBlockTemplatePart:d,isPrevBlockTemplatePart:p,canRemove:h,canMove:g}=n,{setNavigationMode:m,removeBlock:f}=(0,c.useDispatch)(Gr),b=(0,a.useRef)();(0,a.useEffect)((()=>{"navigation"===i&&(b.current.focus(),(0,Io.speak)(o))}),[o,i]);const v=Xi(e),{hasBlockMovingClientId:k,getBlockIndex:_,getBlockRootClientId:x,getClientIdsOfDescendants:y,getSelectedBlockClientId:S,getMultiSelectedBlocksEndClientId:w,getPreviousBlockClientId:B,getNextBlockClientId:I}=(0,c.useSelect)(Gr),{selectBlock:j,clearSelectedBlock:E,setBlockMovingClientId:T,moveBlockToPosition:M}=(0,c.useDispatch)(Gr),P=ws("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!s}),R=(0,C.__)("Drag"),N=g&&"navigation"===i||"zoom-out"===i&&g&&!u;return(0,U.jsx)("div",{className:P,children:(0,U.jsxs)(Ps.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content",children:[(0,U.jsx)(Ps.FlexItem,{children:(0,U.jsx)(jf,{icon:r,showColors:!0})}),N&&(0,U.jsx)(Ps.FlexItem,{children:(0,U.jsx)(XC,{clientIds:[e],children:e=>(0,U.jsx)(Ps.Button,{icon:pS,className:"block-selection-button_drag-handle","aria-hidden":"true",label:R,tabIndex:"-1",...e})})}),"zoom-out"===i&&!u&&(0,U.jsx)(Ps.FlexItem,{children:(0,U.jsx)(lB,{clientIds:[e],hideDragHandle:!0,isBlockMoverUpButtonDisabled:p,isBlockMoverDownButtonDisabled:d})}),g&&h&&"zoom-out"===i&&(0,U.jsx)(EI,{clientId:e,as:Ps.Button}),h&&"zoom-out"===i&&!u&&(0,U.jsx)(Ps.FlexItem,{children:(0,U.jsx)(Ps.ToolbarButton,{icon:AI,label:"Delete",onClick:()=>{f(e)}})}),"navigation"===i&&(0,U.jsx)(Ps.FlexItem,{children:(0,U.jsx)(Ps.Button,{ref:b,onClick:"navigation"===i?()=>m(!1):void 0,onKeyDown:function(t){const{keyCode:n}=t,o=n===la.UP,r=n===la.DOWN,s=n===la.LEFT,l=n===la.RIGHT,a=n===la.TAB,c=n===la.ESCAPE,u=n===la.ENTER,d=n===la.SPACE,p=t.shiftKey;if(c&&"navigation"===i)return m(!1),void t.preventDefault();if(n===la.BACKSPACE||n===la.DELETE)return f(e),void t.preventDefault();const h=S(),g=w(),b=B(g||h),C=I(g||h),P=a&&p||o,R=a&&!p||r,N=s,A=l;let L;if(P)L=b;else if(R)L=C;else if(N){var O;L=null!==(O=x(h))&&void 0!==O?O:h}else if(A){var D;L=null!==(D=y(h)[0])&&void 0!==D?D:h}const z=k();if(c&&z&&!t.defaultPrevented&&(T(null),t.preventDefault()),(u||d)&&z){const e=x(z),t=x(h),n=_(z);let o=_(h);n<o&&e===t&&(o-=1),M(z,e,t,o),j(z),T(null)}if((!z||h!==z||!A)&&(R||P||N||A))if(L)t.preventDefault(),j(L);else if(a&&h){let e;if(R){e=v;do{e=sa.focus.tabbable.findNext(e)}while(e&&v.contains(e));e||(e=v.ownerDocument.defaultView.frameElement,e=sa.focus.tabbable.findNext(e))}else e=sa.focus.tabbable.findPrevious(v);e&&(t.preventDefault(),e.focus(),E())}},label:o,showTooltip:!1,className:"block-selection-button_select-button",children:(0,U.jsx)(Gb,{clientId:e,maximumLength:35})})})]})})};function OI({clientId:e,__unstableContentRef:t}){const{capturingClientId:n,isInsertionPointVisible:o,lastClientId:r,rootClientId:s}=qC(e),i=ZC({contentElement:t?.current,clientId:e});return(0,U.jsx)(el,{clientId:n||e,bottomClientId:r,className:ws("block-editor-block-list__block-popover",{"is-insertion-point-visible":o}),resize:!1,...i,children:(0,U.jsx)(LI,{clientId:e,rootClientId:s})})}const DI=function(){const[e,t]=(0,a.useState)(!1),{blockOrder:n,sectionRootClientId:o,insertionPoint:r,setInserterIsOpened:s,selectedSection:i}=(0,c.useSelect)((e=>{const{getSettings:t,getBlockOrder:n}=e(Gr),{sectionRootClientId:o}=Q(t()),r=e("core/editor");return{selectedSection:r.getSelectedBlock(),blockOrder:n(o),insertionPoint:Q(r).getInsertionPoint(),sectionRootClientId:o,setInserterIsOpened:t().__experimentalSetIsInserterOpened}}),[]),l=(0,a.useRef)(!1);return(0,a.useEffect)((()=>{l.current?s(!0):l.current=!0}),[n,s]),(0,a.useEffect)((()=>{const e=setTimeout((()=>{t(!0)}),500);return()=>{clearTimeout(e)}}),[]),e&&i?[void 0,...n].map(((e,t)=>(0,U.jsxs)(nC,{previousClientId:e,nextClientId:n[t],children:[r.insertionIndex===t&&(0,U.jsx)("div",{style:{borderRadius:"0",height:"12px",opacity:1,transform:"translateY(-50%)",width:"100%"},className:"block-editor-block-list__insertion-point-indicator"}),r.insertionIndex!==t&&(0,U.jsx)(Ps.Button,{variant:"primary",icon:wa,size:"compact",className:"block-editor-button-pattern-inserter__button",onClick:()=>{s({rootClientId:o,insertionIndex:t,tab:"patterns",category:"all"})},label:(0,C._x)("Add pattern","Generic label for pattern inserter button")})]},t))):null};function zI(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getSettings:o,__unstableGetEditorMode:r,isTyping:s}=e(Gr),i=t()||n(),l=r();return{clientId:i,hasFixedToolbar:o().hasFixedToolbar,isTyping:s(),isZoomOutMode:"zoom-out"===l}}function VI({children:e,__unstableContentRef:t,...n}){const{clientId:o,hasFixedToolbar:r,isTyping:s,isZoomOutMode:i}=(0,c.useSelect)(zI,[]),u=(0,hy.__unstableUseShortcutEventMatch)(),{getBlocksByClientId:d,getSelectedBlockClientIds:p,getBlockRootClientId:h,isGroupable:g}=(0,c.useSelect)(Gr),{getGroupingBlockName:m}=(0,c.useSelect)(l.store),{showEmptyBlockSideInserter:f,showBreadcrumb:b,showBlockToolbarPopover:v}=(0,c.useSelect)((e=>{const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlock:o,getSettings:r,hasMultiSelection:s,__unstableGetEditorMode:i,isTyping:a}=e(Gr),c=t()||n(),u=o(c)||{name:"",attributes:{}},d=i(),p=c&&u?.name,h=(0,l.isUnmodifiedDefaultBlock)(u),g=c&&!a()&&"edit"===d&&h,m=p&&!s()&&("navigation"===d||"zoom-out"===d);return{showEmptyBlockSideInserter:g,showBreadcrumb:!g&&m,showBlockToolbarPopover:!r().hasFixedToolbar&&!g&&p&&!h&&!m}}),[]),{duplicateBlocks:k,removeBlocks:_,replaceBlocks:x,insertAfterBlock:y,insertBeforeBlock:S,selectBlock:w,moveBlocksUp:B,moveBlocksDown:I,expandBlock:j}=Q((0,c.useDispatch)(Gr));const E=Qi(t),T=Qi(t);return(0,U.jsx)("div",{...n,onKeyDown:function(e){if(!e.defaultPrevented)if(u("core/block-editor/move-up",e)){const t=p();if(t.length){e.preventDefault();const n=h(t[0]);B(t,n)}}else if(u("core/block-editor/move-down",e)){const t=p();if(t.length){e.preventDefault();const n=h(t[0]);I(t,n)}}else if(u("core/block-editor/duplicate",e)){const t=p();t.length&&(e.preventDefault(),k(t))}else if(u("core/block-editor/remove",e)){const t=p();t.length&&(e.preventDefault(),_(t))}else if(u("core/block-editor/insert-after",e)){const t=p();t.length&&(e.preventDefault(),y(t[t.length-1]))}else if(u("core/block-editor/insert-before",e)){const t=p();t.length&&(e.preventDefault(),S(t[0]))}else if(u("core/block-editor/unselect",e)){if(e.target.closest("[role=toolbar]"))return;const t=p();t.length>1&&(e.preventDefault(),w(t[0]))}else if(u("core/block-editor/collapse-list-view",e)){if((0,sa.isTextField)(e.target)||(0,sa.isTextField)(e.target?.contentWindow?.document?.activeElement))return;e.preventDefault(),j(o)}else if(u("core/block-editor/group",e)){const t=p();if(t.length>1&&g(t)){e.preventDefault();const n=d(t),o=m(),r=(0,l.switchToBlockType)(n,o);x(t,r),(0,Io.speak)((0,C.__)("Selected blocks are grouped."))}}},children:(0,U.jsxs)(sC.Provider,{value:(0,a.useRef)(!1),children:[!s&&(0,U.jsx)(lC,{__unstableContentRef:t}),f&&(0,U.jsx)(YC,{__unstableContentRef:t,clientId:o}),v&&(0,U.jsx)(NI,{__unstableContentRef:t,clientId:o,isTyping:s}),b&&(0,U.jsx)(OI,{__unstableContentRef:t,clientId:o}),!i&&!r&&(0,U.jsx)(Ps.Popover.Slot,{name:"block-toolbar",ref:E}),e,(0,U.jsx)(Ps.Popover.Slot,{name:"__unstable-block-tools-after",ref:T}),window.__experimentalEnableZoomedOutPatternsTab&&i&&(0,U.jsx)(DI,{__unstableContentRef:t})]})})}const FI=window.wp.commands,HI=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M19.75 9c0-1.257-.565-2.197-1.39-2.858-.797-.64-1.827-1.017-2.815-1.247-1.802-.42-3.703-.403-4.383-.396L11 4.5V6l.177-.001c.696-.006 2.416-.02 4.028.356.887.207 1.67.518 2.216.957.52.416.829.945.829 1.688 0 .592-.167.966-.407 1.23-.255.281-.656.508-1.236.674-1.19.34-2.82.346-4.607.346h-.077c-1.692 0-3.527 0-4.942.404-.732.209-1.424.545-1.935 1.108-.526.579-.796 1.33-.796 2.238 0 1.257.565 2.197 1.39 2.858.797.64 1.827 1.017 2.815 1.247 1.802.42 3.703.403 4.383.396L13 19.5h.714V22L18 18.5 13.714 15v3H13l-.177.001c-.696.006-2.416.02-4.028-.356-.887-.207-1.67-.518-2.216-.957-.52-.416-.829-.945-.829-1.688 0-.592.167-.966.407-1.23.255-.281.656-.508 1.237-.674 1.189-.34 2.819-.346 4.606-.346h.077c1.692 0 3.527 0 4.941-.404.732-.209 1.425-.545 1.936-1.108.526-.579.796-1.33.796-2.238z"})}),GI=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"})}),UI=()=>{const{replaceBlocks:e,multiSelect:t}=(0,c.useDispatch)(Gr),{blocks:n,clientIds:o,canRemove:r,possibleBlockTransformations:s,invalidSelection:i}=(0,c.useSelect)((e=>{const{getBlockRootClientId:t,getBlockTransformItems:n,getSelectedBlockClientIds:o,getBlocksByClientId:r,canRemoveBlocks:s}=e(Gr),i=o(),l=r(i);if(l.filter((e=>!e)).length>0)return{invalidSelection:!0};return{blocks:l,clientIds:i,possibleBlockTransformations:n(l,t(i[0])),canRemove:s(i),invalidSelection:!1}}),[]);if(i)return{isLoading:!1,commands:[]};const a=1===n.length&&(0,l.isTemplatePart)(n[0]);function u(r){const s=(0,l.switchToBlockType)(n,r);var i;e(o,s),(i=s).length>1&&t(i[0].clientId,i[i.length-1].clientId)}const d=!!s.length&&r&&!a;if(!o||o.length<1||!d)return{isLoading:!1,commands:[]};return{isLoading:!1,commands:s.map((e=>{const{name:t,title:n,icon:o}=e;return{name:"core/block-editor/transform-to-"+t.replace("/","-"),label:(0,C.sprintf)((0,C.__)("Transform to %s"),n),icon:(0,U.jsx)(jf,{icon:o}),callback:({close:e})=>{u(t),e()}}}))}},$I=()=>{const{clientIds:e}=(0,c.useSelect)((e=>{const{getSelectedBlockClientIds:t}=e(Gr);return{clientIds:t()}}),[]),{getBlockRootClientId:t,canMoveBlocks:n,getBlockCount:o}=(0,c.useSelect)(Gr),{setBlockMovingClientId:r,setNavigationMode:s,selectBlock:i}=(0,c.useDispatch)(Gr);if(!e||e.length<1)return{isLoading:!1,commands:[]};const l=t(e[0]),a=[];return n(e)&&1!==o(l)&&a.push({name:"move-to",label:(0,C.__)("Move to"),callback:()=>{s(!0),i(e[0]),r(e[0])},icon:HI}),{isLoading:!1,commands:a.map((e=>({...e,name:"core/block-editor/action-"+e.name,callback:({close:t})=>{e.callback(),t()}})))}},WI=()=>{const{clientIds:e,isUngroupable:t,isGroupable:n}=(0,c.useSelect)((e=>{const{getSelectedBlockClientIds:t,isUngroupable:n,isGroupable:o}=e(Gr);return{clientIds:t(),isUngroupable:n(),isGroupable:o()}}),[]),{canInsertBlockType:o,getBlockRootClientId:r,getBlocksByClientId:s,canRemoveBlocks:i}=(0,c.useSelect)(Gr),{getDefaultBlockName:a,getGroupingBlockName:u}=(0,c.useSelect)(l.store),d=s(e),{removeBlocks:p,replaceBlocks:h,duplicateBlocks:g,insertAfterBlock:m,insertBeforeBlock:f}=(0,c.useDispatch)(Gr),b=()=>{if(!d.length)return;const t=u(),n=(0,l.switchToBlockType)(d,t);n&&h(e,n)},v=()=>{if(!d.length)return;const t=d[0].innerBlocks;t.length&&h(e,t)};if(!e||e.length<1)return{isLoading:!1,commands:[]};const k=r(e[0]),_=o(a(),k),x=d.every((e=>!!e&&(0,l.hasBlockSupport)(e.name,"multiple",!0)&&o(e.name,k))),y=i(e),S=[];return x&&S.push({name:"duplicate",label:(0,C.__)("Duplicate"),callback:()=>g(e,!0),icon:gB}),_&&S.push({name:"add-before",label:(0,C.__)("Add before"),callback:()=>{const t=Array.isArray(e)?e[0]:t;f(t)},icon:wa},{name:"add-after",label:(0,C.__)("Add after"),callback:()=>{const t=Array.isArray(e)?e[e.length-1]:t;m(t)},icon:wa}),n&&S.push({name:"Group",label:(0,C.__)("Group"),callback:b,icon:gI}),t&&S.push({name:"ungroup",label:(0,C.__)("Ungroup"),callback:v,icon:GI}),y&&S.push({name:"remove",label:(0,C.__)("Delete"),callback:()=>p(e,!0),icon:AI}),{isLoading:!1,commands:S.map((e=>({...e,name:"core/block-editor/action-"+e.name,callback:({close:t})=>{e.callback(),t()}})))}},KI=()=>{(0,FI.useCommandLoader)({name:"core/block-editor/blockTransforms",hook:UI}),(0,FI.useCommandLoader)({name:"core/block-editor/blockActions",hook:$I}),(0,FI.useCommandLoader)({name:"core/block-editor/blockQuickActions",hook:WI,context:"block-selection-edit"})};function ZI({shouldIframe:e=!0,height:t="300px",children:n=(0,U.jsx)(zC,{}),styles:o,contentRef:r,iframeProps:s}){KI();const i=PC(),l=vy(),c=(0,a.useRef)(),d=(0,u.useMergeRefs)([r,l,c]);return e?(0,U.jsx)(VI,{__unstableContentRef:c,style:{height:t,display:"flex"},children:(0,U.jsxs)(Gy,{...s,ref:i,contentRef:d,style:{...s?.style},name:"editor-canvas",children:[(0,U.jsx)(eS,{styles:o}),n]})}):(0,U.jsxs)(VI,{__unstableContentRef:c,style:{height:t,display:"flex"},children:[(0,U.jsx)(eS,{styles:o,scope:".editor-styles-wrapper"}),(0,U.jsx)(Dy,{ref:d,className:"editor-styles-wrapper",tabIndex:-1,style:{height:"100%",width:"100%"},children:n})]})}const qI=function({children:e,height:t,styles:n}){return(0,U.jsx)(ZI,{height:t,styles:n,children:e})},YI=()=>(0,U.jsx)(Ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,U.jsx)(Ps.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"})}),XI=({style:e,className:t})=>(0,U.jsx)("div",{className:"block-library-colors-selector__icon-container",children:(0,U.jsx)("div",{className:`${t} block-library-colors-selector__state-selection`,style:e,children:(0,U.jsx)(YI,{})})}),QI=({TextColor:e,BackgroundColor:t})=>({onToggle:n,isOpen:o})=>(0,U.jsx)(Ps.ToolbarGroup,{children:(0,U.jsx)(Ps.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:(0,C.__)("Open Colors Selector"),onClick:n,onKeyDown:e=>{o||e.keyCode!==la.DOWN||(e.preventDefault(),n())},icon:(0,U.jsx)(t,{children:(0,U.jsx)(e,{children:(0,U.jsx)(XI,{})})})})}),JI=({children:e,...t})=>(y()("wp.blockEditor.BlockColorsStyleSelector",{alternative:"block supports API",since:"6.1",version:"6.3"}),(0,U.jsx)(Ps.Dropdown,{popoverProps:{placement:"bottom-start"},className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:QI(t),renderContent:()=>e})),ej=(0,U.jsx)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,U.jsx)(G.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})}),tj=(0,a.createContext)({}),nj=()=>(0,a.useContext)(tj);function oj({children:e,...t}){const n=(0,a.useRef)();return(0,a.useEffect)((()=>{n.current&&(n.current.textContent=n.current.textContent)}),[e]),(0,U.jsx)("div",{hidden:!0,...t,ref:n,children:e})}const rj=(0,a.forwardRef)((({nestingLevel:e,blockCount:t,clientId:n,...o},r)=>{const{insertedBlock:s,setInsertedBlock:i}=nj(),l=(0,u.useInstanceId)(rj),d=(0,c.useSelect)((e=>{const{getTemplateLock:t,__unstableGetEditorMode:o}=e(Gr);return!!t(n)||"zoom-out"===o()}),[n]),p=Hb({clientId:n,context:"list-view"}),h=Hb({clientId:s?.clientId,context:"list-view"});if((0,a.useEffect)((()=>{h?.length&&(0,Io.speak)((0,C.sprintf)((0,C.__)("%s block inserted"),h),"assertive")}),[h]),d)return null;const g=`list-view-appender__${l}`,m=(0,C.sprintf)((0,C.__)("Append to %1$s block at position %2$d, Level %3$d"),p,t+1,e);return(0,U.jsxs)("div",{className:"list-view-appender",children:[(0,U.jsx)(Kw,{ref:r,rootClientId:n,position:"bottom right",isAppender:!0,selectBlockOnInsert:!1,shouldDirectInsert:!1,__experimentalIsQuick:!0,...o,toggleProps:{"aria-describedby":g},onSelectOrClose:e=>{e?.clientId&&i(e)}}),(0,U.jsx)(oj,{id:g,children:m})]})})),sj=Lx(Ps.__experimentalTreeGridRow),ij=(0,a.forwardRef)((({isDragged:e,isSelected:t,position:n,level:o,rowCount:r,children:s,className:i,path:l,...a},c)=>{const d=Dx({clientId:a["data-block"],enableAnimation:!0,triggerAnimationOnChange:l}),p=(0,u.useMergeRefs)([c,d]);return(0,U.jsx)(sj,{ref:p,className:ws("block-editor-list-view-leaf",i),level:o,positionInSet:n,setSize:r,isExpanded:void 0,...a,children:s})})),lj=ij;const aj=(0,U.jsx)(G.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,U.jsx)(G.Path,{d:"M10.97 10.159a3.382 3.382 0 0 0-2.857.955l1.724 1.723-2.836 2.913L7 17h1.25l2.913-2.837 1.723 1.723a3.38 3.38 0 0 0 .606-.825c.33-.63.446-1.343.35-2.032L17 10.695 13.305 7l-2.334 3.159Z"})}),cj=(0,U.jsx)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,U.jsx)(G.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"})});function uj({onClick:e}){return(0,U.jsx)("span",{className:"block-editor-list-view__expander",onClick:t=>e(t,{forceToggle:!0}),"aria-hidden":"true","data-testid":"list-view-expander",children:(0,U.jsx)(Hi,{icon:(0,C.isRTL)()?ba:va})})}const dj=3;function pj(e){if("core/image"===e.name)return e.attributes?.url?{url:e.attributes.url,alt:e.attributes.alt,clientId:e.clientId}:void 0}function hj(e,t){const n=pj(e);return n?[n]:t?[]:function(e){if("core/gallery"!==e.name||!e.innerBlocks)return[];const t=[];for(const n of e.innerBlocks){const e=pj(n);if(e&&t.push(e),t.length>=dj)return t}return t}(e)}const gj=(0,a.forwardRef)((function({className:e,block:{clientId:t},onClick:n,onContextMenu:o,onMouseDown:r,onToggleExpanded:s,tabIndex:i,onFocus:l,onDragStart:u,onDragEnd:d,draggable:p,isExpanded:h,ariaDescribedBy:g},m){const f=cm(t),b=Hb({clientId:t,context:"list-view"}),{isLocked:v}=af(t),{isContentOnly:k}=(0,c.useSelect)((e=>({isContentOnly:"contentOnly"===e(Gr).getBlockEditingMode(t)})),[t]),_=v&&!k,x="sticky"===f?.positionType,y=function({clientId:e,isExpanded:t}){const{block:n}=(0,c.useSelect)((t=>({block:t(Gr).getBlock(e)})),[e]);return(0,a.useMemo)((()=>hj(n,t)),[n,t])}({clientId:t,isExpanded:h}),S=f?.positionLabel?(0,C.sprintf)((0,C.__)("Position: %1$s"),f.positionLabel):"";return(0,U.jsxs)(Ps.Button,{className:ws("block-editor-list-view-block-select-button",e),onClick:n,onContextMenu:o,onKeyDown:function(e){e.keyCode!==la.ENTER&&e.keyCode!==la.SPACE||n(e)},onMouseDown:r,ref:m,tabIndex:i,onFocus:l,onDragStart:e=>{e.dataTransfer.clearData(),u?.(e)},onDragEnd:d,draggable:p,href:`#block-${t}`,"aria-describedby":g,"aria-expanded":h,children:[(0,U.jsx)(uj,{onClick:s}),(0,U.jsx)(jf,{icon:f?.icon,showColors:!0,context:"list-view"}),(0,U.jsxs)(Ps.__experimentalHStack,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1,children:[(0,U.jsx)("span",{className:"block-editor-list-view-block-select-button__title",children:(0,U.jsx)(Ps.__experimentalTruncate,{ellipsizeMode:"auto",children:b})}),f?.anchor&&(0,U.jsx)("span",{className:"block-editor-list-view-block-select-button__anchor-wrapper",children:(0,U.jsx)(Ps.__experimentalTruncate,{className:"block-editor-list-view-block-select-button__anchor",ellipsizeMode:"auto",children:f.anchor})}),S&&x&&(0,U.jsx)(Ps.Tooltip,{text:S,children:(0,U.jsx)(Hi,{icon:aj})}),y.length?(0,U.jsx)("span",{className:"block-editor-list-view-block-select-button__images","aria-hidden":!0,children:y.map(((e,t)=>(0,U.jsx)("span",{className:"block-editor-list-view-block-select-button__image",style:{backgroundImage:`url(${e.url})`,zIndex:y.length-t}},e.clientId)))}):null,_&&(0,U.jsx)("span",{className:"block-editor-list-view-block-select-button__lock",children:(0,U.jsx)(Hi,{icon:cj})})]})]})})),mj=(0,a.forwardRef)((({onClick:e,onToggleExpanded:t,block:n,isSelected:o,position:r,siblingBlockCount:s,level:i,isExpanded:l,selectedClientIds:a,...u},d)=>{const{clientId:p}=n,{blockMovingClientId:h,selectedBlockInBlockEditor:g}=(0,c.useSelect)((e=>{const{hasBlockMovingClientId:t,getSelectedBlockClientId:n}=e(Gr);return{blockMovingClientId:t(),selectedBlockInBlockEditor:n()}}),[]),{AdditionalBlockContent:m,insertedBlock:f,setInsertedBlock:b}=nj(),v=ws("block-editor-list-view-block-contents",{"is-dropping-before":h&&g===p}),k=a.includes(p)?a:[p];return(0,U.jsxs)(U.Fragment,{children:[m&&(0,U.jsx)(m,{block:n,insertedBlock:f,setInsertedBlock:b}),(0,U.jsx)(XC,{appendToOwnerDocument:!0,clientIds:k,cloneClassname:"block-editor-list-view-draggable-chip",children:({draggable:a,onDragStart:c,onDragEnd:p})=>(0,U.jsx)(gj,{ref:d,className:v,block:n,onClick:e,onToggleExpanded:t,isSelected:o,position:r,siblingBlockCount:s,level:i,draggable:a,onDragStart:c,onDragEnd:p,isExpanded:l,...u})})]})})),fj=mj;function bj(e,t){const n=()=>{const n=t?.querySelector(`[role=row][data-block="${e}"]`);return n?sa.focus.focusable.find(n)[0]:null};let o=n();o?o.focus():window.requestAnimationFrame((()=>{o=n(),o&&o.focus()}))}const vj=(0,a.memo)((function e({block:{clientId:t},displacement:n,isAfterDraggedBlocks:o,isDragged:r,isNesting:s,isSelected:i,isBranchSelected:d,selectBlock:p,position:h,level:g,rowCount:m,siblingBlockCount:f,showBlockMovers:b,path:v,isExpanded:k,selectedClientIds:_,isSyncedBranch:x}){const y=(0,a.useRef)(null),S=(0,a.useRef)(null),w=(0,a.useRef)(null),[B,I]=(0,a.useState)(!1),[j,E]=(0,a.useState)(),{isLocked:T,canEdit:M,canMove:P}=af(t),R=i&&_[0]===t,N=i&&_[_.length-1]===t,{toggleBlockHighlight:A,duplicateBlocks:L,multiSelect:O,replaceBlocks:D,removeBlocks:z,insertAfterBlock:V,insertBeforeBlock:F,setOpenedBlockSettingsMenu:H}=Q((0,c.useDispatch)(Gr)),{canInsertBlockType:G,getSelectedBlockClientIds:$,getPreviousBlockClientId:W,getBlockRootClientId:K,getBlockOrder:Z,getBlockParents:q,getBlocksByClientId:Y,canRemoveBlocks:X,isGroupable:J}=(0,c.useSelect)(Gr),{getGroupingBlockName:ee}=(0,c.useSelect)(l.store),te=cm(t),{block:ne,blockName:oe,allowRightClickOverrides:re}=(0,c.useSelect)((e=>{const{getBlock:n,getBlockName:o,getSettings:r}=e(Gr);return{block:n(t),blockName:o(t),allowRightClickOverrides:r().allowRightClickOverrides}}),[t]),se=(0,l.hasBlockSupport)(oe,"__experimentalToolbar",!0),ie=`list-view-block-select-button__description-${(0,u.useInstanceId)(e)}`,{expand:le,collapse:ae,collapseAll:ce,BlockSettingsMenu:ue,listViewInstanceId:de,expandedState:pe,setInsertedBlock:he,treeGridElementRef:ge,rootClientId:me}=nj(),fe=(0,hy.__unstableUseShortcutEventMatch)();function be(){const e=$(),n=e.includes(t),o=n?e[0]:t,r=K(o);return{blocksToUpdate:n?e:[t],firstBlockClientId:o,firstBlockRootClientId:r,selectedBlockClientIds:e}}const ve=(0,a.useCallback)((()=>{I(!0),A(t,!0)}),[t,I,A]),ke=(0,a.useCallback)((()=>{I(!1),A(t,!1)}),[t,I,A]),_e=(0,a.useCallback)((e=>{p(e,t),e.preventDefault()}),[t,p]),xe=(0,a.useCallback)(((e,t)=>{t&&p(void 0,e,null,null),bj(e,ge?.current)}),[p,ge]),ye=(0,a.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),!0===k?ae(t):!1===k&&le(t)}),[t,le,ae,k]),Se=(0,a.useCallback)((e=>{se&&re&&(w.current?.click(),E(new window.DOMRect(e.clientX,e.clientY,0,0)),e.preventDefault())}),[re,w,se]),we=(0,a.useCallback)((e=>{re&&2===e.button&&e.preventDefault()}),[re]),Ce=(0,a.useMemo)((()=>{const{ownerDocument:e}=S?.current||{};if(j&&e)return{ownerDocument:e,getBoundingClientRect:()=>j}}),[j]),Be=(0,a.useCallback)((()=>{E(void 0)}),[E]);if(function({isSelected:e,selectedClientIds:t,rowItemRef:n}){const o=1===t.length;(0,a.useLayoutEffect)((()=>{if(!e||!o||!n.current)return;const t=(0,sa.getScrollContainer)(n.current),{ownerDocument:r}=n.current;if(t===r.body||t===r.documentElement||!t)return;const s=n.current.getBoundingClientRect(),i=t.getBoundingClientRect();(s.top<i.top||s.bottom>i.bottom)&&n.current.scrollIntoView()}),[e,o,n])}({isSelected:i,rowItemRef:S,selectedClientIds:_}),!ne)return null;const Ie=((e,t,n)=>(0,C.sprintf)((0,C.__)("Block %1$d of %2$d, Level %3$d."),e,t,n))(h,f,g),je=(e=>e?(0,C.__)("This block is locked."):"")(T),Ee=b&&f>0,Te=ws("block-editor-list-view-block__mover-cell",{"is-visible":B||i}),Me=ws("block-editor-list-view-block__menu-cell",{"is-visible":B||R});let Pe;Ee?Pe=2:se||(Pe=3);const Re=ws({"is-selected":i,"is-first-selected":R,"is-last-selected":N,"is-branch-selected":d,"is-synced-branch":x,"is-dragging":r,"has-single-cell":!se,"is-synced":te?.isSynced,"is-draggable":P,"is-displacement-normal":"normal"===n,"is-displacement-up":"up"===n,"is-displacement-down":"down"===n,"is-after-dragged-blocks":o,"is-nesting":s}),Ne=_.includes(t)?_:[t],Ae=i&&1===_.length;return(0,U.jsxs)(lj,{className:Re,isDragged:r,onKeyDown:async function(e){if(e.defaultPrevented)return;if(e.target.closest("[role=dialog]"))return;const t=[la.BACKSPACE,la.DELETE].includes(e.keyCode);if(fe("core/block-editor/unselect",e)&&_.length>0)e.stopPropagation(),e.preventDefault(),p(e,void 0);else if(t||fe("core/block-editor/remove",e)){var n;const{blocksToUpdate:e,firstBlockClientId:t,firstBlockRootClientId:o,selectedBlockClientIds:r}=be();if(!X(e))return;let s=null!==(n=W(t))&&void 0!==n?n:o;z(e,!1);const i=r.length>0&&0===$().length;s||(s=Z()[0]),xe(s,i)}else if(fe("core/block-editor/duplicate",e)){e.preventDefault();const{blocksToUpdate:t,firstBlockRootClientId:n}=be();if(Y(t).every((e=>!!e&&(0,l.hasBlockSupport)(e.name,"multiple",!0)&&G(e.name,n)))){const e=await L(t,!1);e?.length&&xe(e[0],!1)}}else if(fe("core/block-editor/insert-before",e)){e.preventDefault();const{blocksToUpdate:t}=be();await F(t[0]);const n=$();H(void 0),xe(n[0],!1)}else if(fe("core/block-editor/insert-after",e)){e.preventDefault();const{blocksToUpdate:t}=be();await V(t.at(-1));const n=$();H(void 0),xe(n[0],!1)}else if(fe("core/block-editor/select-all",e)){e.preventDefault();const{firstBlockRootClientId:t,selectedBlockClientIds:n}=be(),o=Z(t);if(!o.length)return;if(ga()(n,o)&&t&&t!==me)return void xe(t,!0);O(o[0],o[o.length-1],null)}else if(fe("core/block-editor/collapse-list-view",e)){e.preventDefault();const{firstBlockClientId:t}=be(),n=q(t,!1);ce(),le(n)}else if(fe("core/block-editor/group",e)){const{blocksToUpdate:t}=be();if(t.length>1&&J(t)){e.preventDefault();const n=Y(t),o=ee(),r=(0,l.switchToBlockType)(n,o);D(t,r),(0,Io.speak)((0,C.__)("Selected blocks are grouped."));const s=$();H(void 0),xe(s[0],!1)}}},onMouseEnter:ve,onMouseLeave:ke,onFocus:ve,onBlur:ke,level:g,position:h,rowCount:m,path:v,id:`list-view-${de}-block-${t}`,"data-block":t,"data-expanded":M?k:void 0,ref:S,children:[(0,U.jsx)(Ps.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:Pe,ref:y,"aria-selected":!!i,children:({ref:e,tabIndex:t,onFocus:n})=>(0,U.jsxs)("div",{className:"block-editor-list-view-block__contents-container",children:[(0,U.jsx)(fj,{block:ne,onClick:_e,onContextMenu:Se,onMouseDown:we,onToggleExpanded:ye,isSelected:i,position:h,siblingBlockCount:f,level:g,ref:e,tabIndex:Ae?0:t,onFocus:n,isExpanded:M?k:void 0,selectedClientIds:_,ariaDescribedBy:ie}),(0,U.jsx)(oj,{id:ie,children:`${Ie} ${je}`})]})}),Ee&&(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)(Ps.__experimentalTreeGridCell,{className:Te,withoutGridItem:!0,children:[(0,U.jsx)(Ps.__experimentalTreeGridItem,{children:({ref:e,tabIndex:n,onFocus:o})=>(0,U.jsx)(sB,{orientation:"vertical",clientIds:[t],ref:e,tabIndex:n,onFocus:o})}),(0,U.jsx)(Ps.__experimentalTreeGridItem,{children:({ref:e,tabIndex:n,onFocus:o})=>(0,U.jsx)(iB,{orientation:"vertical",clientIds:[t],ref:e,tabIndex:n,onFocus:o})})]})}),se&&ue&&(0,U.jsx)(Ps.__experimentalTreeGridCell,{className:Me,"aria-selected":!!i,ref:w,children:({ref:e,tabIndex:t,onFocus:n})=>(0,U.jsx)(ue,{clientIds:Ne,block:ne,icon:Qb,label:(0,C.__)("Options"),popoverProps:{anchor:Ce},toggleProps:{ref:e,className:"block-editor-list-view-block__menu",tabIndex:t,onClick:Be,onFocus:n},disableOpenOnArrowDown:!0,expand:le,expandedState:pe,setInsertedBlock:he,__experimentalSelectBlock:xe})})]})}));function kj(e,t,n,o){var r;const s=n?.includes(e.clientId);if(s)return 0;return(null!==(r=t[e.clientId])&&void 0!==r?r:o)?1+e.innerBlocks.reduce(_j(t,n,o),0):1}const _j=(e,t,n)=>(o,r)=>{var s;const i=t?.includes(r.clientId);if(i)return o;return(null!==(s=e[r.clientId])&&void 0!==s?s:n)&&r.innerBlocks.length>0?o+kj(r,e,t,n):o+1},xj=()=>{};const yj=(0,a.memo)((function e(t){const{blocks:n,selectBlock:o=xj,showBlockMovers:r,selectedClientIds:s,level:i=1,path:l="",isBranchSelected:a=!1,listPosition:u=0,fixedListWindow:d,isExpanded:p,parentId:h,shouldShowInnerBlocks:g=!0,isSyncedBranch:m=!1,showAppender:f=!0}=t,b=cm(h),v=m||!!b?.isSynced,k=(0,c.useSelect)((e=>!h||e(Gr).canEditBlock(h)),[h]),{blockDropPosition:_,blockDropTargetIndex:x,firstDraggedBlockIndex:y,blockIndexes:S,expandedState:w,draggedClientIds:C}=nj();if(!k)return null;const B=f&&1===i,I=n.filter(Boolean),j=I.length,E=B?j+1:j;let T=u;return(0,U.jsxs)(U.Fragment,{children:[I.map(((t,n)=>{var u;const{clientId:h,innerBlocks:m}=t;n>0&&(T+=kj(I[n-1],w,C,p));const f=!!C?.includes(h),{displacement:b,isAfterDraggedBlocks:k,isNesting:B}=function({blockIndexes:e,blockDropTargetIndex:t,blockDropPosition:n,clientId:o,firstDraggedBlockIndex:r,isDragged:s}){let i,l,a;if(!s){l=!1;const s=e[o];a=s>r,null!=t&&void 0!==r?void 0!==s&&(i=s>=r&&s<t?"up":s<r&&s>=t?"down":"normal",l="number"==typeof t&&t-1===s&&"inside"===n):null===t&&void 0!==r?i=void 0!==s&&s>=r?"up":"normal":null!=t&&void 0===r?void 0!==s&&(i=s<t?"normal":"down"):null===t&&(i="normal")}return{displacement:i,isNesting:l,isAfterDraggedBlocks:a}}({blockIndexes:S,blockDropTargetIndex:x,blockDropPosition:_,clientId:h,firstDraggedBlockIndex:y,isDragged:f}),{itemInView:M}=d,P=M(T),R=n+1,N=l.length>0?`${l}_${R}`:`${R}`,A=!!m?.length,L=A&&g?null!==(u=w[h])&&void 0!==u?u:p:void 0,O=((e,t)=>Array.isArray(t)&&t.length?-1!==t.indexOf(e):t===e)(h,s),D=a||O&&A,z=f||P||O&&h===s[0]||0===n||n===j-1;return(0,U.jsxs)(c.AsyncModeProvider,{value:!O,children:[z&&(0,U.jsx)(vj,{block:t,selectBlock:o,isSelected:O,isBranchSelected:D,isDragged:f,level:i,position:R,rowCount:E,siblingBlockCount:j,showBlockMovers:r,path:N,isExpanded:!f&&L,listPosition:T,selectedClientIds:s,isSyncedBranch:v,displacement:b,isAfterDraggedBlocks:k,isNesting:B}),!z&&(0,U.jsx)("tr",{children:(0,U.jsx)("td",{className:"block-editor-list-view-placeholder"})}),A&&L&&!f&&(0,U.jsx)(e,{parentId:h,blocks:m,selectBlock:o,showBlockMovers:r,level:i+1,path:N,listPosition:T+1,fixedListWindow:d,isBranchSelected:D,selectedClientIds:s,isExpanded:p,isSyncedBranch:v})]},h)})),B&&(0,U.jsx)(Ps.__experimentalTreeGridRow,{level:i,setSize:E,positionInSet:E,isExpanded:!0,children:(0,U.jsx)(Ps.__experimentalTreeGridCell,{children:e=>(0,U.jsx)(rj,{clientId:h,nestingLevel:i,blockCount:j,...e})})})]})}));function Sj({draggedBlockClientId:e,listViewRef:t,blockDropTarget:n}){const o=cm(e),r=Hb({clientId:e,context:"list-view"}),{rootClientId:s,clientId:i,dropPosition:l}=n||{},[c,u]=(0,a.useMemo)((()=>{if(!t.current)return[];return[s?t.current.querySelector(`[data-block="${s}"]`):void 0,i?t.current.querySelector(`[data-block="${i}"]`):void 0]}),[t,s,i]),d=u||c,p=(0,C.isRTL)(),h=(0,a.useCallback)(((e,t)=>{if(!d)return 0;let n=d.offsetWidth;const o=(0,sa.getScrollContainer)(d,"horizontal"),r=d.ownerDocument,s=o===r.body||o===r.documentElement;if(o&&!s){const r=o.getBoundingClientRect(),s=(0,C.isRTL)()?r.right-e.right:e.left-r.left,i=o.clientWidth;if(i<n+s&&(n=i-s),!p&&e.left+t<r.left)return n-=r.left-e.left,n;if(p&&e.right-t>r.right)return n-=e.right-r.right,n}return n-t}),[p,d]),g=(0,a.useMemo)((()=>{if(!d)return{};const e=d.getBoundingClientRect();return{width:h(e,0)}}),[h,d]),m=(0,a.useMemo)((()=>{if(!d)return{};const e=(0,sa.getScrollContainer)(d),t=d.ownerDocument,n=e===t.body||e===t.documentElement;if(e&&!n){const t=e.getBoundingClientRect(),n=d.getBoundingClientRect(),o=p?t.right-n.right:n.left-t.left;if(!p&&t.left>n.left)return{transform:`translateX( ${o}px )`};if(p&&t.right<n.right)return{transform:`translateX( ${-1*o}px )`}}return{}}),[p,d]),f=(0,a.useMemo)((()=>{if(!c)return 1;const e=parseInt(c.getAttribute("aria-level"),10);return e?e+1:1}),[c]),b=(0,a.useMemo)((()=>!!d&&d.classList.contains("is-branch-selected")),[d]),v=(0,a.useMemo)((()=>{if(d&&("top"===l||"bottom"===l||"inside"===l))return{contextElement:d,getBoundingClientRect(){const e=d.getBoundingClientRect();let t=e.left,n=0;const o=(0,sa.getScrollContainer)(d,"horizontal"),r=d.ownerDocument,s=o===r.body||o===r.documentElement;if(o&&!s){const e=o.getBoundingClientRect(),n=p?o.offsetWidth-o.clientWidth:0;t<e.left+n&&(t=e.left+n)}n="top"===l?e.top-2*e.height:e.top;const i=h(e,0),a=e.height;return new window.DOMRect(t,n,i,a)}}}),[d,l,h,p]);return d?(0,U.jsx)(Ps.Popover,{animate:!1,anchor:v,focusOnMount:!1,className:"block-editor-list-view-drop-indicator--preview",variant:"unstyled",flip:!1,resize:!0,children:(0,U.jsx)("div",{style:g,className:ws("block-editor-list-view-drop-indicator__line",{"block-editor-list-view-drop-indicator__line--darker":b}),children:(0,U.jsxs)("div",{className:"block-editor-list-view-leaf","aria-level":f,children:[(0,U.jsxs)("div",{className:ws("block-editor-list-view-block-select-button","block-editor-list-view-block-contents"),style:m,children:[(0,U.jsx)(uj,{onClick:()=>{}}),(0,U.jsx)(jf,{icon:o?.icon,showColors:!0,context:"list-view"}),(0,U.jsx)(Ps.__experimentalHStack,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1,children:(0,U.jsx)("span",{className:"block-editor-list-view-block-select-button__title",children:(0,U.jsx)(Ps.__experimentalTruncate,{ellipsizeMode:"auto",children:r})})})]}),(0,U.jsx)("div",{className:"block-editor-list-view-block__menu-cell"})]})})}):null}function wj(){const{clearSelectedBlock:e,multiSelect:t,selectBlock:n}=(0,c.useDispatch)(Gr),{getBlockName:o,getBlockParents:r,getBlockSelectionStart:s,getSelectedBlockClientIds:i,hasMultiSelection:u,hasSelectedBlock:d}=(0,c.useSelect)(Gr),{getBlockType:p}=(0,c.useSelect)(l.store);return{updateBlockSelection:(0,a.useCallback)((async(l,a,c,h)=>{if(!l?.shiftKey&&l?.keyCode!==la.ESCAPE)return void n(a,h);l.preventDefault();const g="keydown"===l.type&&l.keyCode===la.ESCAPE,m="keydown"===l.type&&(l.keyCode===la.UP||l.keyCode===la.DOWN||l.keyCode===la.HOME||l.keyCode===la.END);if(!m&&!d()&&!u())return void n(a,null);const f=i(),b=[...r(a),a];if((g||m&&!f.some((e=>b.includes(e))))&&await e(),!g){let e=s(),n=a;m&&(d()||u()||(e=a),c&&(n=c));const o=r(e),i=r(n),{start:l,end:p}=function(e,t,n,o){const r=[...n,e],s=[...o,t],i=Math.min(r.length,s.length)-1;return{start:r[i],end:s[i]}}(e,n,o,i);await t(l,p,null)}const v=i();if((l.keyCode===la.HOME||l.keyCode===la.END)&&v.length>1)return;const k=f.filter((e=>!v.includes(e)));let _;if(1===k.length){const e=p(o(k[0]))?.title;e&&(_=(0,C.sprintf)((0,C.__)("%s deselected."),e))}else k.length>1&&(_=(0,C.sprintf)((0,C.__)("%s blocks deselected."),k.length));_&&(0,Io.speak)(_,"assertive")}),[e,o,p,r,s,i,u,d,t,n])}}const Cj=24;function Bj(e,t){const n=e[t+1];return n&&n.isDraggedBlock?Bj(e,t+1):n}const Ij=["top","bottom"];function jj(e,t,n=!1){let o,r,s,i,l;for(let n=0;n<e.length;n++){const a=e[n];if(a.isDraggedBlock)continue;const c=a.element.getBoundingClientRect(),[u,d]=fC(t,c,Ij),p=bC(t,c);if(void 0===s||u<s||p){s=u;const t=e.indexOf(a),n=e[t-1];if("top"===d&&n&&n.rootClientId===a.rootClientId&&!n.isDraggedBlock?(r=n,o="bottom",i=n.element.getBoundingClientRect(),l=t-1):(r=a,o=d,i=c,l=t),p)break}}if(!r)return;const a=function(e,t){const n=[];let o=e;for(;o;)n.push({...o}),o=t.find((e=>e.clientId===o.rootClientId));return n}(r,e),c="bottom"===o;if(c&&r.canInsertDraggedBlocksAsChild&&(r.innerBlockCount>0&&r.isExpanded||function(e,t,n=1,o=!1){const r=o?t.right-n*Cj:t.left+n*Cj;return(o?e.x<r-Cj:e.x>r+Cj)&&e.y<t.bottom}(t,i,a.length,n))){const e=r.isExpanded?0:r.innerBlockCount||0;return{rootClientId:r.clientId,clientId:r.clientId,blockIndex:e,dropPosition:"inside"}}if(c&&r.rootClientId&&function(e,t,n=1,o=!1){const r=o?t.right-n*Cj:t.left+n*Cj;return o?e.x>r:e.x<r}(t,i,a.length,n)){const s=Bj(e,l),c=r.nestingLevel,u=s?s.nestingLevel:1;if(c&&u){const d=function(e,t,n=1,o=!1){const r=o?t.right-n*Cj:t.left+n*Cj,s=o?r-e.x:e.x-r,i=Math.round(s/Cj);return Math.abs(i)}(t,i,a.length,n),p=Math.max(Math.min(d,c-u),0);if(a[p]){let t=r.blockIndex;if(a[p].nestingLevel===s?.nestingLevel)t=s?.blockIndex;else for(let n=l;n>=0;n--){const o=e[n];if(o.rootClientId===a[p].rootClientId){t=o.blockIndex+1;break}}return{rootClientId:a[p].rootClientId,clientId:r.clientId,blockIndex:t,dropPosition:o}}}}if(!r.canInsertDraggedBlocksAsSibling)return;const u=c?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+u,dropPosition:o}}const Ej={leading:!1,trailing:!0};function Tj({selectBlock:e}){const t=(0,c.useRegistry)(),{getBlockOrder:n,getBlockRootClientId:o,getBlocksByClientId:r,getPreviousBlockClientId:s,getSelectedBlockClientIds:i,getSettings:a,canInsertBlockType:d,canRemoveBlocks:p}=(0,c.useSelect)(Gr),{flashBlock:h,removeBlocks:g,replaceBlocks:m,insertBlocks:f}=(0,c.useDispatch)(Gr),b=Py();return(0,u.useRefEffect)((c=>{function u(t,n){n&&e(void 0,t,null,null),bj(t,c)}function v(e){if(e.defaultPrevented)return;if(!c.contains(e.target.ownerDocument.activeElement))return;const v=e.target.ownerDocument.activeElement?.closest("[role=row]"),k=v?.dataset?.block;if(!k)return;const{blocksToUpdate:_,firstBlockClientId:x,firstBlockRootClientId:y,originallySelectedBlockClientIds:S}=function(e){const t=i(),n=t.includes(e),r=n?t[0]:e;return{blocksToUpdate:n?t:[e],firstBlockClientId:r,firstBlockRootClientId:o(r),originallySelectedBlockClientIds:t}}(k);if(0!==_.length){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){1===_.length&&h(_[0]),b(e.type,_);Ay(e,r(_),t)}if("cut"===e.type){var w;if(!p(_))return;let e=null!==(w=s(x))&&void 0!==w?w:y;g(_,!1);const t=S.length>0&&0===i().length;e||(e=n()[0]),u(e,t)}else if("paste"===e.type){const{__experimentalCanUserUseUnfilteredHTML:t}=a(),n=function(e,t){const{plainText:n,html:o,files:r}=Ry(e);let s=[];if(r.length){const e=(0,l.getBlockTransforms)("from");s=r.reduce(((t,n)=>{const o=(0,l.findTransform)(e,(e=>"files"===e.type&&e.isMatch([n])));return o&&t.push(o.transform([n])),t}),[]).flat()}else s=(0,l.pasteHandler)({HTML:o,plainText:n,mode:"BLOCKS",canUserUseUnfilteredHTML:t});return s}(e,t);if(1===_.length){const[e]=_;if(n.every((t=>d(t.name,e))))return f(n,void 0,e),void u(n[0]?.clientId,!1)}m(_,n,n.length-1,-1),u(n[0]?.clientId,!1)}}}return c.ownerDocument.addEventListener("copy",v),c.ownerDocument.addEventListener("cut",v),c.ownerDocument.addEventListener("paste",v),()=>{c.ownerDocument.removeEventListener("copy",v),c.ownerDocument.removeEventListener("cut",v),c.ownerDocument.removeEventListener("paste",v)}}),[])}const Mj=(e,t)=>"clear"===t.type?{}:Array.isArray(t.clientIds)?{...e,...t.clientIds.reduce(((e,n)=>({...e,[n]:"expand"===t.type})),{})}:e;const Pj=(0,a.forwardRef)((function e({id:t,blocks:n,dropZoneElement:o,showBlockMovers:r=!1,isExpanded:s=!1,showAppender:i=!1,blockSettingsMenu:l=uI,rootClientId:d,description:p,onSelect:h,additionalBlockContent:g},m){n&&y()("`blocks` property in `wp.blockEditor.__experimentalListView`",{since:"6.3",alternative:"`rootClientId` property"});const f=(0,u.useInstanceId)(e),{clientIdsTree:b,draggedClientIds:v,selectedClientIds:k}=function({blocks:e,rootClientId:t}){return(0,c.useSelect)((n=>{const{getDraggedBlockClientIds:o,getSelectedBlockClientIds:r,getEnabledClientIdsTree:s}=Q(n(Gr));return{selectedClientIds:r(),draggedClientIds:o(),clientIdsTree:null!=e?e:s(t)}}),[e,t])}({blocks:n,rootClientId:d}),_=function(e){const t=(0,a.useMemo)((()=>{const t={};let n=0;const o=e=>{e.forEach((e=>{t[e.clientId]=n,n++,e.innerBlocks.length>0&&o(e.innerBlocks)}))};return o(e),t}),[e]);return t}(b),{getBlock:x}=(0,c.useSelect)(Gr),{visibleBlockCount:S,shouldShowInnerBlocks:w}=(0,c.useSelect)((e=>{const{getGlobalBlockCount:t,getClientIdsOfDescendants:n,__unstableGetEditorMode:o}=e(Gr),r=v?.length>0?n(v).length+1:0;return{visibleBlockCount:t()-r,shouldShowInnerBlocks:"zoom-out"!==o()}}),[v]),{updateBlockSelection:B}=wj(),[I,j]=(0,a.useReducer)(Mj,{}),[E,T]=(0,a.useState)(null),{setSelectedTreeId:M}=function({firstSelectedBlockClientId:e,setExpandedState:t}){const[n,o]=(0,a.useState)(null),{selectedBlockParentClientIds:r}=(0,c.useSelect)((t=>{const{getBlockParents:n}=t(Gr);return{selectedBlockParentClientIds:n(e,!1)}}),[e]);return(0,a.useEffect)((()=>{n!==e&&r?.length&&t({type:"expand",clientIds:r})}),[e,r,n,t]),{setSelectedTreeId:o}}({firstSelectedBlockClientId:k[0],setExpandedState:j}),P=(0,a.useCallback)(((e,t,n)=>{B(e,t,null,n),M(t),h&&h(x(t))}),[M,B,h,x]),{ref:R,target:N}=function({dropZoneElement:e,expandedState:t,setExpandedState:n}){const{getBlockRootClientId:o,getBlockIndex:r,getBlockCount:s,getDraggedBlockClientIds:i,canInsertBlocks:l}=(0,c.useSelect)(Gr),[d,p]=(0,a.useState)(),{rootClientId:h,blockIndex:g}=d||{},m=mC(h,g),f=(0,C.isRTL)(),b=(0,u.usePrevious)(h),v=(0,a.useCallback)(((e,t)=>{const{rootClientId:o}=t||{};o&&("inside"!==t?.dropPosition||e[o]||n({type:"expand",clientIds:[o]}))}),[n]),k=(0,u.useThrottle)(v,500,Ej);(0,a.useEffect)((()=>{"inside"===d?.dropPosition&&b===d?.rootClientId?k(t,d):k.cancel()}),[t,b,d,k]);const _=i(),x=(0,u.useThrottle)((0,a.useCallback)(((e,t)=>{const n={x:e.clientX,y:e.clientY},i=!!_?.length,a=jj(Array.from(t.querySelectorAll("[data-block]")).map((e=>{const t=e.dataset.block,n="true"===e.dataset.expanded,a=e.classList.contains("is-dragging"),c=parseInt(e.getAttribute("aria-level"),10),u=o(t);return{clientId:t,isExpanded:n,rootClientId:u,blockIndex:r(t),element:e,nestingLevel:c||void 0,isDraggedBlock:!!i&&a,innerBlockCount:s(t),canInsertDraggedBlocksAsSibling:!i||l(_,u),canInsertDraggedBlocksAsChild:!i||l(_,t)}})),n,f);a&&p(a)}),[l,_,s,r,o,f]),50);return{ref:(0,u.__experimentalUseDropZone)({dropZoneElement:e,onDrop(e){x.cancel(),d&&m(e),p(void 0)},onDragLeave(){x.cancel(),p(null)},onDragOver(e){x(e,e.currentTarget)},onDragEnd(){x.cancel(),p(void 0)}}),target:d}}({dropZoneElement:o,expandedState:I,setExpandedState:j}),A=(0,a.useRef)(),L=Tj({selectBlock:P}),O=(0,u.useMergeRefs)([L,A,R,m]);(0,a.useEffect)((()=>{k?.length&&bj(k[0],A?.current)}),[]);const D=(0,a.useCallback)((e=>{if(!e)return;const t=Array.isArray(e)?e:[e];j({type:"expand",clientIds:t})}),[j]),z=(0,a.useCallback)((e=>{e&&j({type:"collapse",clientIds:[e]})}),[j]),V=(0,a.useCallback)((()=>{j({type:"clear"})}),[j]),F=(0,a.useCallback)((e=>{D(e?.dataset?.block)}),[D]),H=(0,a.useCallback)((e=>{z(e?.dataset?.block)}),[z]),G=(0,a.useCallback)(((e,t,n)=>{e.shiftKey&&B(e,t?.dataset?.block,n?.dataset?.block)}),[B]);!function({collapseAll:e,expand:t}){const{expandedBlock:n,getBlockParents:o}=(0,c.useSelect)((e=>{const{getBlockParents:t,getExpandedBlock:n}=Q(e(Gr));return{expandedBlock:n(),getBlockParents:t}}),[]);(0,a.useEffect)((()=>{if(n){const r=o(n,!1);e(),t(r)}}),[e,t,n,o])}({collapseAll:V,expand:D});const $=v?.[0],{blockDropTargetIndex:W,blockDropPosition:K,firstDraggedBlockIndex:Z}=(0,a.useMemo)((()=>{let e,t;if(N?.clientId){const t=_[N.clientId];e=void 0===t||"top"===N?.dropPosition?t:t+1}else null===N&&(e=null);if($){const e=_[$];t=void 0===e||"top"===N?.dropPosition?e:e+1}return{blockDropTargetIndex:e,blockDropPosition:N?.dropPosition,firstDraggedBlockIndex:t}}),[N,_,$]),q=(0,a.useMemo)((()=>({blockDropPosition:K,blockDropTargetIndex:W,blockIndexes:_,draggedClientIds:v,expandedState:I,expand:D,firstDraggedBlockIndex:Z,collapse:z,collapseAll:V,BlockSettingsMenu:l,listViewInstanceId:f,AdditionalBlockContent:g,insertedBlock:E,setInsertedBlock:T,treeGridElementRef:A,rootClientId:d})),[K,W,_,v,I,D,Z,z,V,l,f,g,E,T,d]),[Y]=(0,u.__experimentalUseFixedWindowList)(A,32,S,{expandedState:I,useWindowing:!0,windowOverscan:40});if(!b.length&&!i)return null;const X=p&&`block-editor-list-view-description-${f}`;return(0,U.jsxs)(c.AsyncModeProvider,{value:!0,children:[(0,U.jsx)(Sj,{draggedBlockClientId:$,listViewRef:A,blockDropTarget:N}),p&&(0,U.jsx)(Ps.VisuallyHidden,{id:X,children:p}),(0,U.jsx)(Ps.__experimentalTreeGrid,{id:t,className:ws("block-editor-list-view-tree",{"is-dragging":v?.length>0&&void 0!==W}),"aria-label":(0,C.__)("Block navigation structure"),ref:O,onCollapseRow:H,onExpandRow:F,onFocusRow:G,applicationAriaLabel:(0,C.__)("Block navigation structure"),"aria-describedby":X,style:{"--wp-admin--list-view-dragged-items-height":v?.length?32*(v.length-1)+"px":null},children:(0,U.jsx)(tj.Provider,{value:q,children:(0,U.jsx)(yj,{blocks:b,parentId:d,selectBlock:P,showBlockMovers:r,fixedListWindow:Y,selectedClientIds:k,isExpanded:s,shouldShowInnerBlocks:w,showAppender:i})})})]})})),Rj=(0,a.forwardRef)(((e,t)=>(0,U.jsx)(Pj,{ref:t,...e,showAppender:!1,rootClientId:null,onSelect:null,additionalBlockContent:null,blockSettingsMenu:void 0})));function Nj({isEnabled:e,onToggle:t,isOpen:n,innerRef:o,...r}){return(0,U.jsx)(Ps.Button,{...r,ref:o,icon:ej,"aria-expanded":n,"aria-haspopup":"true",onClick:e?t:void 0,label:(0,C.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!e})}const Aj=(0,a.forwardRef)((function({isDisabled:e,...t},n){y()("wp.blockEditor.BlockNavigationDropdown",{since:"6.1",alternative:"wp.components.Dropdown and wp.blockEditor.ListView"});const o=(0,c.useSelect)((e=>!!e(Gr).getBlockCount()),[])&&!e;return(0,U.jsx)(Ps.Dropdown,{contentClassName:"block-editor-block-navigation__popover",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:e,onToggle:r})=>(0,U.jsx)(Nj,{...t,innerRef:n,isOpen:e,onToggle:r,isEnabled:o}),renderContent:()=>(0,U.jsxs)("div",{className:"block-editor-block-navigation__container",children:[(0,U.jsx)("p",{className:"block-editor-block-navigation__label",children:(0,C.__)("List view")}),(0,U.jsx)(Rj,{})]})})}));function Lj({genericPreviewBlock:e,style:t,className:n,activeStyle:o}){const r=(0,l.getBlockType)(e.name)?.example,s=yB(n,o,t),i=(0,a.useMemo)((()=>({...e,title:t.label||t.name,description:t.description,initialAttributes:{...e.attributes,className:s+" block-editor-block-styles__block-preview-container"},example:r})),[e,s]);return(0,U.jsx)(cS,{item:i})}const Oj=()=>{};const Dj=function({clientId:e,onSwitch:t=Oj,onHoverClassName:n=Oj}){const{onSelect:o,stylesToRender:r,activeStyle:s,genericPreviewBlock:i,className:l}=wB({clientId:e,onSwitch:t}),[c,d]=(0,a.useState)(null),p=(0,u.useViewportMatch)("medium","<");if(!r||0===r.length)return null;const h=(0,u.debounce)(d,250),g=e=>{var t;c!==e?(h(e),n(null!==(t=e?.name)&&void 0!==t?t:null)):h.cancel()};return(0,U.jsxs)("div",{className:"block-editor-block-styles",children:[(0,U.jsx)("div",{className:"block-editor-block-styles__variants",children:r.map((e=>{const t=e.label||e.name;return(0,U.jsx)(Ps.Button,{__next40pxDefaultSize:!0,className:ws("block-editor-block-styles__item",{"is-active":s.name===e.name}),variant:"secondary",label:t,onMouseEnter:()=>g(e),onFocus:()=>g(e),onMouseLeave:()=>g(null),onBlur:()=>g(null),onClick:()=>(e=>{o(e),n(null),d(null),h.cancel()})(e),"aria-current":s.name===e.name,children:(0,U.jsx)(Ps.__experimentalTruncate,{numberOfLines:1,className:"block-editor-block-styles__item-text",children:t})},e.name)}))}),c&&!p&&(0,U.jsx)(Ps.Popover,{placement:"left-start",offset:34,focusOnMount:!1,children:(0,U.jsx)("div",{className:"block-editor-block-styles__preview-panel",onMouseLeave:()=>g(null),children:(0,U.jsx)(Lj,{activeStyle:s,className:l,genericPreviewBlock:i,style:c})})})]})},zj={0:(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})}),1:(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})}),2:(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.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.6v1.5h8v-2H17z"})}),3:(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})}),4:(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})}),5:(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"})}),6:(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"})})};function Vj({level:e}){return zj[e]?(0,U.jsx)(Ps.Icon,{icon:zj[e]}):null}const Fj=[1,2,3,4,5,6],Hj={className:"block-library-heading-level-dropdown"};function Gj({options:e=Fj,value:t,onChange:n}){return(0,U.jsx)(Ps.ToolbarDropdownMenu,{popoverProps:Hj,icon:(0,U.jsx)(Vj,{level:t}),label:(0,C.__)("Change level"),controls:e.map((e=>{const o=e===t;return{icon:(0,U.jsx)(Vj,{level:e}),title:0===e?(0,C.__)("Paragraph"):(0,C.sprintf)((0,C.__)("Heading %d"),e),isActive:o,onClick(){n(e)},role:"menuitemradio"}}))})}const Uj=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});const $j=function({icon:e=Uj,label:t=(0,C.__)("Choose variation"),instructions:n=(0,C.__)("Select a variation to start with:"),variations:o,onSelect:r,allowSkip:s}){const i=ws("block-editor-block-variation-picker",{"has-many-variations":o.length>4});return(0,U.jsxs)(Ps.Placeholder,{icon:e,label:t,instructions:n,className:i,children:[(0,U.jsx)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":(0,C.__)("Block variations"),children:o.map((e=>(0,U.jsxs)("li",{children:[(0,U.jsx)(Ps.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:e.icon&&e.icon.src?e.icon.src:e.icon,iconSize:48,onClick:()=>r(e),className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),(0,U.jsx)("span",{className:"block-editor-block-variation-picker__variation-label",children:e.title})]},e.name)))}),s&&(0,U.jsx)("div",{className:"block-editor-block-variation-picker__skip",children:(0,U.jsx)(Ps.Button,{variant:"link",onClick:()=>r(),children:(0,C.__)("Skip")})})]})},Wj="carousel",Kj="grid",Zj=({onBlockPatternSelect:e})=>(0,U.jsx)("div",{className:"block-editor-block-pattern-setup__actions",children:(0,U.jsx)(Ps.Button,{variant:"primary",onClick:e,children:(0,C.__)("Choose")})}),qj=({handlePrevious:e,handleNext:t,activeSlide:n,totalSlides:o})=>(0,U.jsxs)("div",{className:"block-editor-block-pattern-setup__navigation",children:[(0,U.jsx)(Ps.Button,{icon:ay,label:(0,C.__)("Previous pattern"),onClick:e,disabled:0===n,__experimentalIsFocusable:!0}),(0,U.jsx)(Ps.Button,{icon:ly,label:(0,C.__)("Next pattern"),onClick:t,disabled:n===o-1,__experimentalIsFocusable:!0})]}),Yj=({viewMode:e,setViewMode:t,handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:s,onBlockPatternSelect:i})=>{const l=e===Wj,a=(0,U.jsxs)("div",{className:"block-editor-block-pattern-setup__display-controls",children:[(0,U.jsx)(Ps.Button,{icon:Il,label:(0,C.__)("Carousel view"),onClick:()=>t(Wj),isPressed:l}),(0,U.jsx)(Ps.Button,{icon:bI,label:(0,C.__)("Grid view"),onClick:()=>t(Kj),isPressed:e===Kj})]});return(0,U.jsxs)("div",{className:"block-editor-block-pattern-setup__toolbar",children:[l&&(0,U.jsx)(qj,{handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:s}),a,l&&(0,U.jsx)(Zj,{onBlockPatternSelect:i})]})};const Xj=function(e,t,n){return(0,c.useSelect)((o=>{const{getBlockRootClientId:r,getPatternsByBlockTypes:s,__experimentalGetAllowedPatterns:i}=o(Gr),l=r(e);return n?i(l).filter(n):s(t,l)}),[e,t,n])},{CompositeV2:Qj,CompositeItemV2:Jj,useCompositeStoreV2:eE}=Q(Ps.privateApis),tE=({viewMode:e,activeSlide:t,patterns:n,onBlockPatternSelect:o,showTitles:r})=>{const s=eE(),i="block-editor-block-pattern-setup__container";if(e===Wj){const e=new Map([[t,"active-slide"],[t-1,"previous-slide"],[t+1,"next-slide"]]);return(0,U.jsx)("div",{className:"block-editor-block-pattern-setup__carousel",children:(0,U.jsx)("div",{className:i,children:(0,U.jsx)("div",{className:"carousel-container",children:n.map(((n,o)=>(0,U.jsx)(oE,{active:o===t,className:e.get(o)||"",pattern:n},n.name)))})})})}return(0,U.jsx)("div",{className:"block-editor-block-pattern-setup__grid",children:(0,U.jsx)(Qj,{store:s,role:"listbox",className:i,"aria-label":(0,C.__)("Patterns list"),children:n.map((e=>(0,U.jsx)(nE,{pattern:e,onSelect:o,showTitles:r},e.name)))})})};function nE({pattern:e,onSelect:t,showTitles:n}){const o="block-editor-block-pattern-setup-list",{blocks:r,description:s,viewportWidth:i=700}=e,l=(0,u.useInstanceId)(nE,`${o}__item-description`);return(0,U.jsx)("div",{className:`${o}__list-item`,children:(0,U.jsxs)(Jj,{render:(0,U.jsx)("div",{"aria-describedby":s?l:void 0,"aria-label":e.title,className:`${o}__item`}),id:`${o}__pattern__${e.name}`,role:"option",onClick:()=>t(r),children:[(0,U.jsx)(lS,{blocks:r,viewportWidth:i}),n&&(0,U.jsx)("div",{className:`${o}__item-title`,children:e.title}),!!s&&(0,U.jsx)(Ps.VisuallyHidden,{id:l,children:s})]})})}function oE({active:e,className:t,pattern:n,minHeight:o}){const{blocks:r,title:s,description:i}=n,l=(0,u.useInstanceId)(oE,"block-editor-block-pattern-setup-list__item-description");return(0,U.jsxs)("div",{"aria-hidden":!e,role:"img",className:`pattern-slide ${t}`,"aria-label":s,"aria-describedby":i?l:void 0,children:[(0,U.jsx)(lS,{blocks:r,minHeight:o}),!!i&&(0,U.jsx)(Ps.VisuallyHidden,{id:l,children:i})]})}const rE=({clientId:e,blockName:t,filterPatternsFn:n,onBlockPatternSelect:o,initialViewMode:r=Wj,showTitles:s=!1})=>{const[i,u]=(0,a.useState)(r),[d,p]=(0,a.useState)(0),{replaceBlock:h}=(0,c.useDispatch)(Gr),g=Xj(e,t,n);if(!g?.length)return null;const m=o||(t=>{const n=t.map((e=>(0,l.cloneBlock)(e)));h(e,n)});return(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)("div",{className:`block-editor-block-pattern-setup view-mode-${i}`,children:[(0,U.jsx)(tE,{viewMode:i,activeSlide:d,patterns:g,onBlockPatternSelect:m,showTitles:s}),(0,U.jsx)(Yj,{viewMode:i,setViewMode:u,activeSlide:d,totalSlides:g.length,handleNext:()=>{p((e=>Math.min(e+1,g.length-1)))},handlePrevious:()=>{p((e=>Math.max(e-1,0)))},onBlockPatternSelect:()=>{m(g[d].blocks)}})]})})};function sE({className:e,onSelectVariation:t,selectedValue:n,variations:o}){return(0,U.jsxs)("fieldset",{className:e,children:[(0,U.jsx)(Ps.VisuallyHidden,{as:"legend",children:(0,C.__)("Transform to variation")}),o.map((e=>(0,U.jsx)(Ps.Button,{icon:(0,U.jsx)(jf,{icon:e.icon,showColors:!0}),isPressed:n===e.name,label:n===e.name?e.title:(0,C.sprintf)((0,C.__)("Transform to %s"),e.title),onClick:()=>t(e.name),"aria-label":e.title,showTooltip:!0},e.name)))]})}function iE({className:e,onSelectVariation:t,selectedValue:n,variations:o}){const r=o.map((({name:e,title:t,description:n})=>({value:e,label:t,info:n})));return(0,U.jsx)(Ps.DropdownMenu,{className:e,label:(0,C.__)("Transform to variation"),text:(0,C.__)("Transform to variation"),popoverProps:{position:"bottom center",className:`${e}__popover`},icon:JC,toggleProps:{iconPosition:"right"},children:()=>(0,U.jsx)("div",{className:`${e}__container`,children:(0,U.jsx)(Ps.MenuGroup,{children:(0,U.jsx)(Ps.MenuItemsChoice,{choices:r,value:n,onSelect:t})})})})}function lE({className:e,onSelectVariation:t,selectedValue:n,variations:o}){return(0,U.jsx)("div",{className:e,children:(0,U.jsx)(Ps.__experimentalToggleGroupControl,{label:(0,C.__)("Transform to variation"),value:n,hideLabelFromVision:!0,onChange:t,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:o.map((e=>(0,U.jsx)(Ps.__experimentalToggleGroupControlOptionIcon,{icon:(0,U.jsx)(jf,{icon:e.icon,showColors:!0}),value:e.name,label:n===e.name?e.title:(0,C.sprintf)((0,C.__)("Transform to %s"),e.title)},e.name)))})})}const aE=function({blockClientId:e}){const{updateBlockAttributes:t}=(0,c.useDispatch)(Gr),{activeBlockVariation:n,variations:o}=(0,c.useSelect)((t=>{const{getActiveBlockVariation:n,getBlockVariations:o}=t(l.store),{getBlockName:r,getBlockAttributes:s}=t(Gr),i=e&&r(e);return{activeBlockVariation:n(i,s(e)),variations:i&&o(i,"transform")}}),[e]),r=n?.name,s=(0,a.useMemo)((()=>{const e=new Set;return!!o&&(o.forEach((t=>{t.icon&&e.add(t.icon?.src||t.icon)})),e.size===o.length)}),[o]);if(!o?.length)return null;const i=o.length>5,u=s?i?sE:lE:iE;return(0,U.jsx)(u,{className:"block-editor-block-variation-transforms",onSelectVariation:n=>{t(e,{...o.find((({name:e})=>e===n)).attributes})},selectedValue:r,variations:o})},cE=(0,u.createHigherOrderComponent)((e=>t=>{const[n,o]=$r("color.palette","color.custom"),{colors:r=n,disableCustomColors:s=!o}=t,i=r&&r.length>0||!s;return(0,U.jsx)(e,{...t,colors:r,disableCustomColors:s,hasColorsToChoose:i})}),"withColorContext"),uE=cE(Ps.ColorPalette);function dE({onChange:e,value:t,...n}){return(0,U.jsx)(Od,{...n,onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0})}const pE=window.wp.date,hE=new Date(2022,0,25);function gE({format:e,defaultFormat:t,onChange:n}){return(0,U.jsxs)("fieldset",{className:"block-editor-date-format-picker",children:[(0,U.jsx)(Ps.VisuallyHidden,{as:"legend",children:(0,C.__)("Date format")}),(0,U.jsx)(Ps.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,C.__)("Default format"),help:`${(0,C.__)("Example:")} ${(0,pE.dateI18n)(t,hE)}`,checked:!e,onChange:e=>n(e?null:t)}),e&&(0,U.jsx)(mE,{format:e,onChange:n})]})}function mE({format:e,onChange:t}){var n;const o=[...new Set(["Y-m-d",(0,C._x)("n/j/Y","short date format"),(0,C._x)("n/j/Y g:i A","short date format with time"),(0,C._x)("M j, Y","medium date format"),(0,C._x)("M j, Y g:i A","medium date format with time"),(0,C._x)("F j, Y","long date format"),(0,C._x)("M j","short date format without the year")])],r=o.map(((e,t)=>({key:`suggested-${t}`,name:(0,pE.dateI18n)(e,hE),format:e}))),s={key:"custom",name:(0,C.__)("Custom"),className:"block-editor-date-format-picker__custom-format-select-control__custom-option",__experimentalHint:(0,C.__)("Enter your own date format")},[i,l]=(0,a.useState)((()=>!!e&&!o.includes(e)));return(0,U.jsxs)(Ps.__experimentalVStack,{children:[(0,U.jsx)(Ps.CustomSelectControl,{label:(0,C.__)("Choose a format"),options:[...r,s],value:i?s:null!==(n=r.find((t=>t.format===e)))&&void 0!==n?n:s,onChange:({selectedItem:e})=>{e===s?l(!0):(l(!1),t(e.format))}}),i&&(0,U.jsx)(Ps.TextControl,{__nextHasNoMarginBottom:!0,label:(0,C.__)("Custom format"),hideLabelFromVision:!0,help:(0,a.createInterpolateElement)((0,C.__)("Enter a date or time <Link>format string</Link>."),{Link:(0,U.jsx)(Ps.ExternalLink,{href:(0,C.__)("https://wordpress.org/documentation/article/customize-date-and-time-format/")})}),value:e,onChange:e=>t(e)})]})}const fE=({setting:e,children:t,panelId:n,...o})=>(0,U.jsx)(Ps.__experimentalToolsPanelItem,{hasValue:()=>!!e.colorValue||!!e.gradientValue,label:e.label,onDeselect:()=>{e.colorValue?e.onColorChange():e.gradientValue&&e.onGradientChange()},isShownByDefault:void 0===e.isShownByDefault||e.isShownByDefault,...o,className:"block-editor-tools-panel-color-gradient-settings__item",panelId:n,resetAllFilter:e.resetAllFilter,children:t}),bE=({colorValue:e,label:t})=>(0,U.jsxs)(Ps.__experimentalHStack,{justify:"flex-start",children:[(0,U.jsx)(Ps.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,U.jsx)(Ps.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),vE=e=>({onToggle:t,isOpen:n})=>{const{colorValue:o,label:r}=e,s={onClick:t,className:ws("block-editor-panel-color-gradient-settings__dropdown",{"is-open":n}),"aria-expanded":n};return(0,U.jsx)(Ps.Button,{...s,children:(0,U.jsx)(bE,{colorValue:o,label:r})})};function kE({colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:o,gradients:r,settings:s,__experimentalIsRenderedInSidebar:i,...l}){let a;return i&&(a={placement:"left-start",offset:36,shift:!0}),(0,U.jsx)(U.Fragment,{children:s.map(((s,c)=>{var u;const d={clearable:!1,colorValue:s.colorValue,colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:o,gradientValue:s.gradientValue,gradients:r,label:s.label,onColorChange:s.onColorChange,onGradientChange:s.onGradientChange,showTitle:!1,__experimentalIsRenderedInSidebar:i,...s},p={colorValue:null!==(u=s.gradientValue)&&void 0!==u?u:s.colorValue,label:s.label};return s&&(0,U.jsx)(fE,{setting:s,...l,children:(0,U.jsx)(Ps.Dropdown,{popoverProps:a,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:vE(p),renderContent:()=>(0,U.jsx)(Ps.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,U.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,U.jsx)(Od,{...d})})})})},c)}))})}const _E=["colors","disableCustomColors","gradients","disableCustomGradients"],xE=({className:e,colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:r,children:s,settings:i,title:l,showTitle:a=!0,__experimentalIsRenderedInSidebar:d,enableAlpha:p})=>{const h=(0,u.useInstanceId)(xE),{batch:g}=(0,c.useRegistry)();return t&&0!==t.length||n&&0!==n.length||!o||!r||!i?.every((e=>(!e.colors||0===e.colors.length)&&(!e.gradients||0===e.gradients.length)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)))?(0,U.jsxs)(Ps.__experimentalToolsPanel,{className:ws("block-editor-panel-color-gradient-settings",e),label:a?l:void 0,resetAll:()=>{g((()=>{i.forEach((({colorValue:e,gradientValue:t,onColorChange:n,onGradientChange:o})=>{e?n():t&&o()}))}))},panelId:h,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",children:[(0,U.jsx)(kE,{settings:i,panelId:h,colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:r,__experimentalIsRenderedInSidebar:d,enableAlpha:p}),!!s&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ps.__experimentalSpacer,{marginY:4})," ",s]})]}):null},yE=e=>{const t=Mu();return(0,U.jsx)(xE,{...t,...e})},SE=e=>_E.every((t=>e.hasOwnProperty(t)))?(0,U.jsx)(xE,{...e}):(0,U.jsx)(yE,{...e}),wE=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.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"})}),CE=100,BE=300,IE={placement:"bottom-start"};const jE=(0,a.createContext)({}),EE=()=>(0,a.useContext)(jE);function TE({id:e,url:t,naturalWidth:n,naturalHeight:o,onFinishEditing:r,onSaveImage:s,children:i}){const l=function({url:e,naturalWidth:t,naturalHeight:n}){const[o,r]=(0,a.useState)(),[s,i]=(0,a.useState)(),[l,c]=(0,a.useState)({x:0,y:0}),[u,p]=(0,a.useState)(100),[h,g]=(0,a.useState)(0),m=t/n,[f,b]=(0,a.useState)(m),v=(0,a.useCallback)((()=>{const t=(h+90)%360;let n=m;if(h%180==90&&(n=1/m),0===t)return r(),g(t),b(m),void c((e=>({x:-e.y*n,y:e.x*n})));const o=new window.Image;o.src=e,o.onload=function(e){const o=document.createElement("canvas");let s=0,i=0;t%180?(o.width=e.target.height,o.height=e.target.width):(o.width=e.target.width,o.height=e.target.height),90!==t&&180!==t||(s=o.width),270!==t&&180!==t||(i=o.height);const l=o.getContext("2d");l.translate(s,i),l.rotate(t*Math.PI/180),l.drawImage(e.target,0,0),o.toBlob((e=>{r(URL.createObjectURL(e)),g(t),b(o.width/o.height),c((e=>({x:-e.y*n,y:e.x*n})))}))};const s=(0,d.applyFilters)("media.crossOrigin",void 0,e);"string"==typeof s&&(o.crossOrigin=s)}),[h,m,e]);return(0,a.useMemo)((()=>({editedUrl:o,setEditedUrl:r,crop:s,setCrop:i,position:l,setPosition:c,zoom:u,setZoom:p,rotation:h,setRotation:g,rotateClockwise:v,aspect:f,setAspect:b,defaultAspect:m})),[o,s,l,u,h,v,f,m])}({url:t,naturalWidth:n,naturalHeight:o}),u=function({crop:e,rotation:t,url:n,id:o,onSaveImage:r,onFinishEditing:s}){const{createErrorNotice:i}=(0,c.useDispatch)(jo.store),[l,u]=(0,a.useState)(!1),d=(0,a.useCallback)((()=>{u(!1),s()}),[s]),p=(0,a.useCallback)((()=>{u(!0);const l=[];t>0&&l.push({type:"rotate",args:{angle:t}}),(e.width<99.9||e.height<99.9)&&l.push({type:"crop",args:{left:e.x,top:e.y,width:e.width,height:e.height}}),Pb()({path:`/wp/v2/media/${o}/edit`,method:"POST",data:{src:n,modifiers:l}}).then((e=>{r({id:e.id,url:e.source_url})})).catch((e=>{i((0,C.sprintf)((0,C.__)("Could not edit image. %s"),(0,sa.__unstableStripHTML)(e.message)),{id:"image-editing-error",type:"snackbar"})})).finally((()=>{u(!1),s()}))}),[e,t,o,n,r,i,s]);return(0,a.useMemo)((()=>({isInProgress:l,apply:p,cancel:d})),[l,p,d])}({id:e,url:t,onSaveImage:s,onFinishEditing:r,...l}),p=(0,a.useMemo)((()=>({...l,...u})),[l,u]);return(0,U.jsx)(jE.Provider,{value:p,children:i})}function ME({aspectRatios:e,isDisabled:t,label:n,onClick:o,value:r}){return(0,U.jsx)(Ps.MenuGroup,{label:n,children:e.map((({name:e,slug:n,ratio:s})=>(0,U.jsx)(Ps.MenuItem,{disabled:t,onClick:()=>{o(s)},role:"menuitemradio",isSelected:s===r,icon:s===r?Wu:void 0,children:e},n)))})}function PE(e){const[t,n,...o]=e.split("/").map(Number);return t<=0||n<=0||Number.isNaN(t)||Number.isNaN(n)||o.length?NaN:n?t/n:t}function RE({ratio:e,...t}){return{ratio:PE(e),...t}}function NE({toggleProps:e}){const{isInProgress:t,aspect:n,setAspect:o,defaultAspect:r}=EE(),[s,i,l]=$r("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios");return(0,U.jsx)(Ps.DropdownMenu,{icon:wE,label:(0,C.__)("Aspect Ratio"),popoverProps:IE,toggleProps:e,children:({onClose:e})=>(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(ME,{isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{slug:"original",name:(0,C.__)("Original"),aspect:r},...l?s.map(RE).filter((({ratio:e})=>1===e)):[]]}),i?.length>0&&(0,U.jsx)(ME,{label:(0,C.__)("Theme"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:i}),l&&(0,U.jsx)(ME,{label:(0,C.__)("Landscape"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:s.map(RE).filter((({ratio:e})=>e>1))}),l&&(0,U.jsx)(ME,{label:(0,C.__)("Portrait"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:s.map(RE).filter((({ratio:e})=>e<1))})]})})}var AE=function(e,t){return AE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},AE(e,t)};function LE(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}AE(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var OE=function(){return OE=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},OE.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var DE=n(7520),zE=n.n(DE);function VE(e,t,n,o,r){void 0===r&&(r=0);var s=KE(t.width,t.height,r),i=s.width,l=s.height;return{x:FE(e.x,i,n.width,o),y:FE(e.y,l,n.height,o)}}function FE(e,t,n,o){var r=t*o/2-n/2;return ZE(e,-r,r)}function HE(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function GE(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function UE(e,t){return Math.min(e,Math.max(0,t))}function $E(e,t){return t}function WE(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function KE(e,t,n){var o=n*Math.PI/180;return{width:Math.abs(Math.cos(o)*e)+Math.abs(Math.sin(o)*t),height:Math.abs(Math.sin(o)*e)+Math.abs(Math.cos(o)*t)}}function ZE(e,t,n){return Math.min(Math.max(e,t),n)}function qE(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"==typeof e&&e.length>0})).join(" ").trim()}var YE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=_a.createRef(),n.videoRef=_a.createRef(),n.containerPosition={x:0,y:0},n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc="undefined"!=typeof document?document:null,n.currentWindow="undefined"!=typeof window?window:null,n.resizeObserver=null,n.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},n.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&n.containerRef){var e=!0;n.resizeObserver=new window.ResizeObserver((function(t){e?e=!1:n.computeSizes()})),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturemove",n.onGestureMove),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd),n.currentDoc.removeEventListener("scroll",n.onScroll))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var e=n.computeSizes();e&&(n.emitCropData(),n.setInitialCrop(e)),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(e){if(n.props.initialCroppedAreaPercentages){var t=function(e,t,n,o,r,s){var i=KE(t.width,t.height,n),l=ZE(o.width/i.width*(100/e.width),r,s);return{crop:{x:l*i.width/2-o.width/2-i.width*l*(e.x/100),y:l*i.height/2-o.height/2-i.height*l*(e.y/100)},zoom:l}}(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom),o=t.crop,r=t.zoom;n.props.onCropChange(o),n.props.onZoomChange&&n.props.onZoomChange(r)}else if(n.props.initialCroppedAreaPixels){var s=function(e,t,n,o,r,s){void 0===n&&(n=0);var i=KE(t.naturalWidth,t.naturalHeight,n),l=ZE(function(e,t,n){var o=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return n.height>n.width?n.height/(e.height*o):n.width/(e.width*o)}(e,t,o),r,s),a=o.height>o.width?o.height/e.height:o.width/e.width;return{crop:{x:((i.width-e.width)/2-e.x)*a,y:((i.height-e.height)/2-e.y)*a},zoom:l}}(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom);o=s.crop,r=s.zoom;n.props.onCropChange(o),n.props.onZoomChange&&n.props.onZoomChange(r)}},n.computeSizes=function(){var e,t,o,r,s,i,l=n.imageRef.current||n.videoRef.current;if(l&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.saveContainerPosition();var a=n.containerRect.width/n.containerRect.height,c=(null===(e=n.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,u=(null===(o=n.imageRef.current)||void 0===o?void 0:o.naturalHeight)||(null===(r=n.videoRef.current)||void 0===r?void 0:r.videoHeight)||0,d=c/u,p=void 0;if(l.offsetWidth<c||l.offsetHeight<u)switch(n.state.mediaObjectFit){default:case"contain":p=a>d?{width:n.containerRect.height*d,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/d};break;case"horizontal-cover":p={width:n.containerRect.width,height:n.containerRect.width/d};break;case"vertical-cover":p={width:n.containerRect.height*d,height:n.containerRect.height}}else p={width:l.offsetWidth,height:l.offsetHeight};n.mediaSize=OE(OE({},p),{naturalWidth:c,naturalHeight:u}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var h=n.props.cropSize?n.props.cropSize:function(e,t,n,o,r,s){void 0===s&&(s=0);var i=KE(e,t,s),l=i.width,a=i.height,c=Math.min(l,n),u=Math.min(a,o);return c>u*r?{width:u*r,height:u}:{width:c,height:c/r}}(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(null===(s=n.state.cropSize)||void 0===s?void 0:s.height)===h.height&&(null===(i=n.state.cropSize)||void 0===i?void 0:i.width)===h.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(h),n.setState({cropSize:h},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(h),h}},n.saveContainerPosition=function(){if(n.containerRef){var e=n.containerRef.getBoundingClientRect();n.containerPosition={x:e.left,y:e.top}}},n.onMouseDown=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.saveContainerPosition(),n.onDragStart(t.getMousePoint(e)))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onScroll=function(e){n.currentDoc&&(e.preventDefault(),n.saveContainerPosition())},n.onTouchStart=function(e){n.currentDoc&&(n.isTouching=!0,n.props.onTouchRequest&&!n.props.onTouchRequest(e)||(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),n.saveContainerPosition(),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0]))))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onGestureStart=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureMove),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureMove=function(e){if(e.preventDefault(),!n.isTouching){var o=t.getMousePoint(e),r=n.gestureZoomStart-1+e.scale;if(n.setNewZoom(r,o,{shouldUpdatePosition:!0}),n.props.onRotationChange){var s=n.gestureRotationStart+e.rotation;n.props.onRotationChange(s)}}},n.onGestureEnd=function(e){n.cleanEvents()},n.onDragStart=function(e){var t,o,r=e.x,s=e.y;n.dragStartPosition={x:r,y:s},n.dragStartCrop=OE({},n.props.crop),null===(o=(t=n.props).onInteractionStart)||void 0===o||o.call(t)},n.onDrag=function(e){var t=e.x,o=e.y;n.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame((function(){if(n.state.cropSize&&void 0!==t&&void 0!==o){var e=t-n.dragStartPosition.x,r=o-n.dragStartPosition.y,s={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+r},i=n.props.restrictPosition?VE(s,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):s;n.props.onCropChange(i)}})))},n.onDragStopped=function(){var e,t;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){if(n.currentWindow&&(!n.props.onWheelRequest||n.props.onWheelRequest(e))){e.preventDefault();var o=t.getMousePoint(e),r=zE()(e).pixelY,s=n.props.zoom-r*n.props.zoomSpeed/200;n.setNewZoom(s,o,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout((function(){return n.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)}},n.getPointOnContainer=function(e,t){var o=e.x,r=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(o-t.x),y:n.containerRect.height/2-(r-t.y)}},n.getPointOnMedia=function(e){var t=e.x,o=e.y,r=n.props,s=r.crop,i=r.zoom;return{x:(t+s.x)/i,y:(o+s.y)/i}},n.setNewZoom=function(e,t,o){var r=(void 0===o?{}:o).shouldUpdatePosition,s=void 0===r||r;if(n.state.cropSize&&n.props.onZoomChange){var i=ZE(e,n.props.minZoom,n.props.maxZoom);if(s){var l=n.getPointOnContainer(t,n.containerPosition),a=n.getPointOnMedia(l),c={x:a.x*i-l.x,y:a.y*i-l.y},u=n.props.restrictPosition?VE(c,n.mediaSize,n.state.cropSize,i,n.props.rotation):c;n.props.onCropChange(u)}n.props.onZoomChange(i)}},n.getCropData=function(){return n.state.cropSize?function(e,t,n,o,r,s,i){void 0===s&&(s=0),void 0===i&&(i=!0);var l=i?UE:$E,a=KE(t.width,t.height,s),c=KE(t.naturalWidth,t.naturalHeight,s),u={x:l(100,((a.width-n.width/r)/2-e.x/r)/a.width*100),y:l(100,((a.height-n.height/r)/2-e.y/r)/a.height*100),width:l(100,n.width/a.width*100/r),height:l(100,n.height/a.height*100/r)},d=Math.round(l(c.width,u.width*c.width/100)),p=Math.round(l(c.height,u.height*c.height/100)),h=c.width>=c.height*o?{width:Math.round(p*o),height:p}:{width:d,height:Math.round(d/o)};return{croppedAreaPercentages:u,croppedAreaPixels:OE(OE({},h),{x:Math.round(l(c.width-h.width,u.x*c.width/100)),y:Math.round(l(c.height-h.height,u.y*c.height/100))})}}(n.props.restrictPosition?VE(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,o),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var e=n.props.restrictPosition?VE(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(e),n.emitCropData()}},n}return LE(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),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 display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\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}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\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",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,n,o,r,s,i,l,a,c;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect||e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(o=e.cropSize)||void 0===o?void 0:o.width)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.width)?this.computeSizes():(null===(s=e.crop)||void 0===s?void 0:s.x)===(null===(i=this.props.crop)||void 0===i?void 0:i.x)&&(null===(l=e.crop)||void 0===l?void 0:l.y)===(null===(a=this.props.crop)||void 0===a?void 0:a.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(c=this.videoRef.current)||void 0===c||c.load());var u=this.getObjectFit();u!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:u},this.computeSizes)},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.getObjectFit=function(){var e,t,n,o;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var r=this.containerRect.width/this.containerRect.height;return((null===(e=this.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=this.videoRef.current)||void 0===t?void 0:t.videoWidth)||0)/((null===(n=this.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(o=this.videoRef.current)||void 0===o?void 0:o.videoHeight)||0)<r?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=HE(n,o),this.lastPinchRotation=GE(n,o),this.onDragStart(WE(n,o))},t.prototype.onPinchMove=function(e){var n=this;if(this.currentDoc&&this.currentWindow){var o=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]),s=WE(o,r);this.onDrag(s),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame((function(){var e=HE(o,r),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,s,{shouldUpdatePosition:!1}),n.lastPinchDistance=e;var i=GE(o,r),l=n.props.rotation+(i-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(l),n.lastPinchRotation=i}))}},t.prototype.render=function(){var e=this,t=this.props,n=t.image,o=t.video,r=t.mediaProps,s=t.transform,i=t.crop,l=i.x,a=i.y,c=t.rotation,u=t.zoom,d=t.cropShape,p=t.showGrid,h=t.style,g=h.containerStyle,m=h.cropAreaStyle,f=h.mediaStyle,b=t.classes,v=b.containerClassName,k=b.cropAreaClassName,_=b.mediaClassName,x=this.state.mediaObjectFit;return _a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:g,className:qE("reactEasyCrop_Container",v)},n?_a.createElement("img",OE({alt:"",className:qE("reactEasyCrop_Image","contain"===x&&"reactEasyCrop_Contain","horizontal-cover"===x&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===x&&"reactEasyCrop_Cover_Vertical",_)},r,{src:n,ref:this.imageRef,style:OE(OE({},f),{transform:s||"translate(".concat(l,"px, ").concat(a,"px) rotate(").concat(c,"deg) scale(").concat(u,")")}),onLoad:this.onMediaLoad})):o&&_a.createElement("video",OE({autoPlay:!0,loop:!0,muted:!0,className:qE("reactEasyCrop_Video","contain"===x&&"reactEasyCrop_Contain","horizontal-cover"===x&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===x&&"reactEasyCrop_Cover_Vertical",_)},r,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:OE(OE({},f),{transform:s||"translate(".concat(l,"px, ").concat(a,"px) rotate(").concat(c,"deg) scale(").concat(u,")")}),controls:!1}),(Array.isArray(o)?o:[{src:o}]).map((function(e){return _a.createElement("source",OE({key:e.src},e))}))),this.state.cropSize&&_a.createElement("div",{style:OE(OE({},m),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:qE("reactEasyCrop_CropArea","round"===d&&"reactEasyCrop_CropAreaRound",p&&"reactEasyCrop_CropAreaGrid",k)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",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}(_a.Component);function XE({url:e,width:t,height:n,naturalHeight:o,naturalWidth:r,borderProps:s}){const{isInProgress:i,editedUrl:l,position:a,zoom:c,aspect:d,setPosition:p,setCrop:h,setZoom:g,rotation:m}=EE(),[f,{width:b}]=(0,u.useResizeObserver)();let v=n||b*o/r;m%180==90&&(v=b*r/o);const k=(0,U.jsxs)("div",{className:ws("wp-block-image__crop-area",s?.className,{"is-applying":i}),style:{...s?.style,width:t||b,height:v},children:[(0,U.jsx)(YE,{image:l||e,disabled:i,minZoom:CE/100,maxZoom:BE/100,crop:a,zoom:c/100,aspect:d,onCropChange:e=>{p(e)},onCropComplete:e=>{h(e)},onZoomChange:e=>{g(100*e)}}),i&&(0,U.jsx)(Ps.Spinner,{})]});return(0,U.jsxs)(U.Fragment,{children:[f,k]})}const QE=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})});function JE(){const{isInProgress:e,zoom:t,setZoom:n}=EE();return(0,U.jsx)(Ps.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:IE,renderToggle:({isOpen:t,onToggle:n})=>(0,U.jsx)(Ps.ToolbarButton,{icon:QE,label:(0,C.__)("Zoom"),onClick:n,"aria-expanded":t,disabled:e}),renderContent:()=>(0,U.jsx)(Ps.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,C.__)("Zoom"),min:CE,max:BE,value:Math.round(t),onChange:n})})}const eT=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.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"})});function tT(){const{isInProgress:e,rotateClockwise:t}=EE();return(0,U.jsx)(Ps.ToolbarButton,{icon:eT,label:(0,C.__)("Rotate"),onClick:t,disabled:e})}function nT(){const{isInProgress:e,apply:t,cancel:n}=EE();return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ps.ToolbarButton,{onClick:t,disabled:e,children:(0,C.__)("Apply")}),(0,U.jsx)(Ps.ToolbarButton,{onClick:n,children:(0,C.__)("Cancel")})]})}function oT({id:e,url:t,width:n,height:o,naturalHeight:r,naturalWidth:s,onSaveImage:i,onFinishEditing:l,borderProps:a}){return(0,U.jsxs)(TE,{id:e,url:t,naturalWidth:s,naturalHeight:r,onSaveImage:i,onFinishEditing:l,children:[(0,U.jsx)(XE,{borderProps:a,url:t,width:n,height:o,naturalHeight:r,naturalWidth:s}),(0,U.jsxs)(zs,{children:[(0,U.jsxs)(Ps.ToolbarGroup,{children:[(0,U.jsx)(JE,{}),(0,U.jsx)(Ps.ToolbarItem,{children:e=>(0,U.jsx)(NE,{toggleProps:e})}),(0,U.jsx)(tT,{})]}),(0,U.jsx)(Ps.ToolbarGroup,{children:(0,U.jsx)(nT,{})})]})]})}const rT=[25,50,75,100],sT=()=>{};function iT({imageSizeHelp:e,imageWidth:t,imageHeight:n,imageSizeOptions:o=[],isResizable:r=!0,slug:s,width:i,height:l,onChange:c,onChangeImage:u=sT}){const{currentHeight:d,currentWidth:p,updateDimension:h,updateDimensions:g}=function(e,t,n,o,r){var s,i;const[l,c]=(0,a.useState)(null!==(s=null!=t?t:o)&&void 0!==s?s:""),[u,d]=(0,a.useState)(null!==(i=null!=e?e:n)&&void 0!==i?i:"");return(0,a.useEffect)((()=>{void 0===t&&void 0!==o&&c(o),void 0===e&&void 0!==n&&d(n)}),[o,n]),(0,a.useEffect)((()=>{void 0!==t&&Number.parseInt(t)!==Number.parseInt(l)&&c(t),void 0!==e&&Number.parseInt(e)!==Number.parseInt(u)&&d(e)}),[t,e]),{currentHeight:u,currentWidth:l,updateDimension:(e,t)=>{const n=""===t?void 0:parseInt(t,10);"width"===e?c(n):d(n),r({[e]:n})},updateDimensions:(e,t)=>{d(null!=e?e:n),c(null!=t?t:o),r({height:e,width:t})}}}(l,i,n,t,c);return(0,U.jsxs)(U.Fragment,{children:[o&&o.length>0&&(0,U.jsx)(Ps.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,C.__)("Resolution"),value:s,options:o,onChange:u,help:e,size:"__unstable-large"}),r&&(0,U.jsxs)("div",{className:"block-editor-image-size-control",children:[(0,U.jsxs)(Ps.__experimentalHStack,{align:"baseline",spacing:"3",children:[(0,U.jsx)(Ps.__experimentalNumberControl,{className:"block-editor-image-size-control__width",label:(0,C.__)("Width"),value:p,min:1,onChange:e=>h("width",e),size:"__unstable-large"}),(0,U.jsx)(Ps.__experimentalNumberControl,{className:"block-editor-image-size-control__height",label:(0,C.__)("Height"),value:d,min:1,onChange:e=>h("height",e),size:"__unstable-large"})]}),(0,U.jsxs)(Ps.__experimentalHStack,{children:[(0,U.jsx)(Ps.ButtonGroup,{"aria-label":(0,C.__)("Image size presets"),children:rT.map((e=>{const o=Math.round(t*(e/100)),r=Math.round(n*(e/100)),s=p===o&&d===r;return(0,U.jsxs)(Ps.Button,{size:"small",variant:s?"primary":void 0,isPressed:s,onClick:()=>g(r,o),children:[e,"%"]},e)}))}),(0,U.jsx)(Ps.Button,{size:"small",onClick:()=>g(),children:(0,C.__)("Reset")})]})]})]})}function lT({url:e,urlLabel:t,className:n}){const o=ws(n,"block-editor-url-popover__link-viewer-url");return e?(0,U.jsx)(Ps.ExternalLink,{className:o,href:e,children:t||(0,ra.filterURLForDisplay)((0,ra.safeDecodeURI)(e))}):(0,U.jsx)("span",{className:o})}const{__experimentalPopoverLegacyPositionToPlacement:aT}=Q(Ps.privateApis),cT=(0,a.forwardRef)((({additionalControls:e,children:t,renderSettings:n,placement:o,focusOnMount:r="firstElement",position:s,...i},l)=>{let c;void 0!==s&&y()("`position` prop in wp.blockEditor.URLPopover",{since:"6.2",alternative:"`placement` prop"}),void 0!==o?c=o:void 0!==s&&(c=aT(s)),c=c||"bottom";const[u,d]=(0,a.useState)(!1),p=!!n&&u;return(0,U.jsxs)(Ps.Popover,{ref:l,className:"block-editor-url-popover",focusOnMount:r,placement:c,shift:!0,variant:"toolbar",...i,children:[(0,U.jsx)("div",{className:"block-editor-url-popover__input-container",children:(0,U.jsxs)("div",{className:"block-editor-url-popover__row",children:[t,!!n&&(0,U.jsx)(Ps.Button,{className:"block-editor-url-popover__settings-toggle",icon:JC,label:(0,C.__)("Link settings"),onClick:()=>{d(!u)},"aria-expanded":u,size:"compact"})]})}),p&&(0,U.jsx)("div",{className:"block-editor-url-popover__settings",children:n()}),e&&!p&&(0,U.jsx)("div",{className:"block-editor-url-popover__additional-controls",children:e})]})}));cT.LinkEditor=function({autocompleteRef:e,className:t,onChangeInputValue:n,value:o,...r}){return(0,U.jsxs)("form",{className:ws("block-editor-url-popover__link-editor",t),...r,children:[(0,U.jsx)(Sa,{__nextHasNoMarginBottom:!0,value:o,onChange:n,autocompleteRef:e}),(0,U.jsx)(Ps.Button,{icon:fa,label:(0,C.__)("Apply"),type:"submit",size:"compact"})]})},cT.LinkViewer=function({className:e,linkClassName:t,onEditLinkClick:n,url:o,urlLabel:r,...s}){return(0,U.jsxs)("div",{className:ws("block-editor-url-popover__link-viewer",e),...s,children:[(0,U.jsx)(lT,{url:o,urlLabel:r,className:t}),n&&(0,U.jsx)(Ps.Button,{icon:nc,label:(0,C.__)("Edit"),onClick:n,size:"compact"})]})};const uT=cT,dT=()=>{},pT=({src:e,onChange:t,onSubmit:n,onClose:o,popoverAnchor:r})=>(0,U.jsx)(uT,{anchor:r,onClose:o,children:(0,U.jsxs)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:n,children:[(0,U.jsx)("input",{className:"block-editor-media-placeholder__url-input-field",type:"text","aria-label":(0,C.__)("URL"),placeholder:(0,C.__)("Paste or type URL"),onChange:t,value:e}),(0,U.jsx)(Ps.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:fa,label:(0,C.__)("Apply"),type:"submit"})]})}),hT=({isURLInputVisible:e,src:t,onChangeSrc:n,onSubmitSrc:o,openURLInput:r,closeURLInput:s})=>{const[i,l]=(0,a.useState)(null);return(0,U.jsxs)("div",{className:"block-editor-media-placeholder__url-input-container",ref:l,children:[(0,U.jsx)(Ps.Button,{className:"block-editor-media-placeholder__button",onClick:r,isPressed:e,variant:"secondary",children:(0,C.__)("Insert from URL")}),e&&(0,U.jsx)(pT,{src:t,onChange:n,onSubmit:o,onClose:s,popoverAnchor:i})]})};const gT=(0,Ps.withFilters)("editor.MediaPlaceholder")((function({value:e={},allowedTypes:t,className:n,icon:o,labels:r={},mediaPreview:s,notices:i,isAppender:u,accept:d,addToGallery:p,multiple:h=!1,handleUpload:g=!0,disableDropZone:m,disableMediaButtons:f,onError:b,onSelect:v,onCancel:k,onSelectURL:_,onToggleFeaturedImage:x,onDoubleClick:S,onFilesPreUpload:w=dT,onHTMLDrop:B,children:I,mediaLibraryButton:j,placeholder:E,style:T}){B&&y()("wp.blockEditor.MediaPlaceholder onHTMLDrop prop",{since:"6.2",version:"6.4"});const M=(0,c.useSelect)((e=>{const{getSettings:t}=e(Gr);return t().mediaUpload}),[]),[P,R]=(0,a.useState)(""),[N,A]=(0,a.useState)(!1);(0,a.useEffect)((()=>{var t;R(null!==(t=e?.src)&&void 0!==t?t:"")}),[e?.src]);const L=e=>{R(e.target.value)},O=()=>{A(!0)},D=()=>{A(!1)},z=e=>{e.preventDefault(),P&&_&&(_(P),D())},V=n=>{if(!g)return v(n);let o;if(w(n),h)if(p){let t=[];o=n=>{const o=(null!=e?e:[]).filter((e=>e.id?!t.some((({id:t})=>Number(t)===Number(e.id))):!t.some((({urlSlug:t})=>e.url.includes(t)))));v(o.concat(n)),t=n.map((e=>{const t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else o=v;else o=([e])=>v(e);M({allowedTypes:t,filesList:n,onFileChange:o,onError:b})};async function F(e){const n=(0,l.pasteHandler)({HTML:e});return await async function(e){if(!e||!Array.isArray(e))return;const n=function e(t){return t.flatMap((t=>"core/image"!==t.name&&"core/audio"!==t.name&&"core/video"!==t.name||!t.attributes.url?e(t.innerBlocks):[t]))}(e);if(!n.length)return;const o=await Promise.all(n.map((e=>e.attributes.id?e.attributes:new Promise(((n,o)=>{window.fetch(e.attributes.url).then((e=>e.blob())).then((r=>M({filesList:[r],additionalData:{title:e.attributes.title,alt_text:e.attributes.alt,caption:e.attributes.caption},onFileChange:([e])=>{e.id&&n(e)},allowedTypes:t,onError:o}))).catch((()=>n(e.attributes.url)))}))))).catch((e=>b(e)));v(h?o:o[0])}(n)}const H=e=>{V(e.target.files)},G=null!=E?E:e=>{let{instructions:l,title:a}=r;if(M||_||(l=(0,C.__)("To edit this block, you need permission to upload media.")),void 0===l||void 0===a){const e=null!=t?t:[],[n]=e,o=1===e.length,r=o&&"audio"===n,s=o&&"image"===n,i=o&&"video"===n;void 0===l&&M&&(l=(0,C.__)("Upload a media file or pick one from your media library."),r?l=(0,C.__)("Upload an audio file, pick one from your media library, or add one with a URL."):s?l=(0,C.__)("Upload an image file, pick one from your media library, or add one with a URL."):i&&(l=(0,C.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===a&&(a=(0,C.__)("Media"),r?a=(0,C.__)("Audio"):s?a=(0,C.__)("Image"):i&&(a=(0,C.__)("Video")))}const c=ws("block-editor-media-placeholder",n,{"is-appender":u});return(0,U.jsxs)(Ps.Placeholder,{icon:o,label:a,instructions:l,className:c,notices:i,onDoubleClick:S,preview:s,style:T,children:[e,I]})},$=()=>m?null:(0,U.jsx)(Ps.DropZone,{onFilesDrop:V,onHTMLDrop:F}),W=()=>k&&(0,U.jsx)(Ps.Button,{className:"block-editor-media-placeholder__cancel-button",title:(0,C.__)("Cancel"),variant:"link",onClick:k,children:(0,C.__)("Cancel")}),K=()=>_&&(0,U.jsx)(hT,{isURLInputVisible:N,src:P,onChangeSrc:L,onSubmitSrc:z,openURLInput:O,closeURLInput:D}),Z=()=>x&&(0,U.jsx)("div",{className:"block-editor-media-placeholder__url-input-container",children:(0,U.jsx)(Ps.Button,{className:"block-editor-media-placeholder__button",onClick:x,variant:"secondary",children:(0,C.__)("Use featured image")})});return f?(0,U.jsx)(pa,{children:$()}):(0,U.jsx)(pa,{fallback:G(K()),children:(()=>{const n=null!=j?j:({open:e})=>(0,U.jsx)(Ps.Button,{variant:"secondary",onClick:()=>{e()},children:(0,C.__)("Media Library")}),o=(0,U.jsx)(da,{addToGallery:p,gallery:h&&!(!t||0===t.length)&&t.every((e=>"image"===e||e.startsWith("image/"))),multiple:h,onSelect:v,allowedTypes:t,mode:"browse",value:Array.isArray(e)?e.map((({id:e})=>e)):e.id,render:n});if(M&&u)return(0,U.jsxs)(U.Fragment,{children:[$(),(0,U.jsx)(Ps.FormFileUpload,{onChange:H,accept:d,multiple:!!h,render:({openFileDialog:e})=>{const t=(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ps.Button,{variant:"primary",className:ws("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:e,children:(0,C.__)("Upload")}),o,K(),Z(),W()]});return G(t)}})]});if(M){const e=(0,U.jsxs)(U.Fragment,{children:[$(),(0,U.jsx)(Ps.FormFileUpload,{variant:"primary",className:ws("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:H,accept:d,multiple:!!h,children:(0,C.__)("Upload")}),o,K(),Z(),W()]});return G(e)}return G(o)})()})})),mT=({colorSettings:e,...t})=>{const n=e.map((e=>{if(!e)return e;const{value:t,onChange:n,...o}=e;return{...o,colorValue:t,onColorChange:n}}));return(0,U.jsx)(SE,{settings:n,gradients:[],disableCustomGradients:!0,...t})},fT={placement:"bottom-start"},bT=()=>(0,U.jsxs)(U.Fragment,{children:[["bold","italic","link","unknown"].map((e=>(0,U.jsx)(Ps.Slot,{name:`RichText.ToolbarControls.${e}`},e))),(0,U.jsx)(Ps.Slot,{name:"RichText.ToolbarControls",children:e=>{if(!e.length)return null;const t=e.map((([{props:e}])=>e)).some((({isActive:e})=>e));return(0,U.jsx)(Ps.ToolbarItem,{children:n=>(0,U.jsx)(Ps.DropdownMenu,{icon:JC,label:(0,C.__)("More"),toggleProps:{...n,className:ws(n.className,{"is-pressed":t}),describedBy:(0,C.__)("Displays more block tools")},controls:ie(e.map((([{props:e}])=>e)),"title"),popoverProps:fT})})}})]});function vT({popoverAnchor:e}){return(0,U.jsx)(Ps.Popover,{placement:"top",focusOnMount:!1,anchor:e,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar",children:(0,U.jsx)(CI,{className:"block-editor-rich-text__inline-format-toolbar-group","aria-label":(0,C.__)("Format tools"),children:(0,U.jsx)(Ps.ToolbarGroup,{children:(0,U.jsx)(bT,{})})})})}const kT=({inline:e,editableContentElement:t})=>e?(0,U.jsx)(vT,{popoverAnchor:t}):(0,U.jsx)(zs,{group:"inline",children:(0,U.jsx)(bT,{})});function _T(e){return e(W.store).getFormatTypes()}const xT=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function yT(e,t){return"object"!=typeof e?{[t]:e}:Object.fromEntries(Object.entries(e).map((([e,n])=>[`${t}.${e}`,n])))}function ST(e,t){return e[t]?e[t]:Object.keys(e).filter((e=>e.startsWith(t+"."))).reduce(((n,o)=>(n[o.slice(t.length+1)]=e[o],n)),{})}const wT=["`",'"',"'","“”","‘’"];function CT(e){let t=e.length;for(;t--;){const n=To(e[t].attributes);if(n)return e[t].attributes[n]=e[t].attributes[n].toString().replace(Eo,""),[e[t].clientId,n,0,0];const o=CT(e[t].innerBlocks);if(o)return o}return[]}function BT(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function IT({allowedFormats:e,disableFormats:t}){return t?IT.EMPTY_ARRAY:e}IT.EMPTY_ARRAY=[];const jT=[e=>t=>{function n(n){const{inputType:o,data:r}=n,{value:s,onChange:i,registry:l}=e.current;if("insertText"!==o)return;if((0,W.isCollapsed)(s))return;const a=(0,d.applyFilters)("blockEditor.wrapSelectionSettings",wT).find((([e,t])=>e===r||t===r));if(!a)return;const[c,u=c]=a,p=s.start,h=s.end+c.length;let g=(0,W.insert)(s,c,p,p);g=(0,W.insert)(g,u,h,h);const{__unstableMarkLastChangeAsPersistent:m,__unstableMarkAutomaticChange:f}=l.dispatch(Gr);m(),i(g),f();const b={};for(const e in n)b[e]=n[e];b.data=u;const{ownerDocument:v}=t,{defaultView:k}=v,_=new k.InputEvent("input",b);window.queueMicrotask((()=>{n.target.dispatchEvent(_)})),n.preventDefault()}return t.addEventListener("beforeinput",n),()=>{t.removeEventListener("beforeinput",n)}},e=>t=>{function n(){const{getValue:t,onReplace:n,selectionChange:o,registry:r}=e.current;if(!n)return;const s=t(),{start:i,text:a}=s;if(" "!==a.slice(i-1,i))return;const c=a.slice(0,i).trim(),u=(0,l.getBlockTransforms)("from").filter((({type:e})=>"prefix"===e)),d=(0,l.findTransform)(u,(({prefix:e})=>c===e));if(!d)return;const p=(0,W.toHTMLString)({value:(0,W.insert)(s,Eo,0,i)}),h=d.transform(p);return o(...CT([h])),n([h]),r.dispatch(Gr).__unstableMarkAutomaticChange(),!0}function o(t){const{inputType:o,type:r}=t,{getValue:s,onChange:i,__unstableAllowPrefixTransformations:l,formatTypes:a,registry:c}=e.current;if("insertText"!==o&&"compositionend"!==r)return;if(l&&n())return;const u=s(),d=a.reduce(((e,{__unstableInputRule:t})=>(t&&(e=t(e)),e)),function(e){const t="tales of gutenberg",{start:n,text:o}=e;return n<18||o.slice(n-18,n).toLowerCase()!==t?e:(0,W.insert)(e," 🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️")}(u)),{__unstableMarkLastChangeAsPersistent:p,__unstableMarkAutomaticChange:h}=c.dispatch(Gr);d!==u&&(p(),i({...d,activeFormats:u.activeFormats}),h())}return t.addEventListener("input",o),t.addEventListener("compositionend",o),()=>{t.removeEventListener("input",o),t.removeEventListener("compositionend",o)}},e=>t=>{function n(t){if("insertReplacementText"!==t.inputType)return;const{registry:n}=e.current;n.dispatch(Gr).__unstableMarkLastChangeAsPersistent()}return t.addEventListener("beforeinput",n),()=>{t.removeEventListener("beforeinput",n)}},()=>e=>{function t(e){(la.isKeyboardEvent.primary(e,"z")||la.isKeyboardEvent.primary(e,"y")||la.isKeyboardEvent.primaryShift(e,"z"))&&e.preventDefault()}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},e=>t=>{const{keyboardShortcuts:n}=e.current;function o(e){for(const t of n.current)t(e)}return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}},e=>t=>{const{inputEvents:n}=e.current;function o(e){for(const t of n.current)t(e)}return t.addEventListener("input",o),()=>{t.removeEventListener("input",o)}},e=>t=>{function n(t){const{keyCode:n}=t;if(t.defaultPrevented)return;if(n!==la.BACKSPACE&&n!==la.ESCAPE)return;const{registry:o}=e.current,{didAutomaticChange:r,getSettings:s}=o.select(Gr),{__experimentalUndo:i}=s();i&&r()&&(t.preventDefault(),i())}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}},e=>t=>{function n(n){const{disableFormats:o,onChange:r,value:s,formatTypes:i,tagName:a,onReplace:c,__unstableEmbedURLOnPaste:u,preserveWhiteSpace:d,pastePlainText:p}=e.current;if(n.target!==t)return;if(n.defaultPrevented)return;const{plainText:h,html:g}=Ry(n);if(n.preventDefault(),window.console.log("Received HTML:\n\n",g),window.console.log("Received plain text:\n\n",h),o)return void r((0,W.insert)(s,h));function m(e){const t=i.reduce(((e,{__unstablePasteRule:t})=>(t&&e===s&&(e=t(s,{html:g,plainText:h})),e)),s);if(t!==s)r(t);else{const t=(0,W.create)({html:e});!function(e,t){if(t?.length){let n=e.formats.length;for(;n--;)e.formats[n]=[...t,...e.formats[n]||[]]}}(t,s.activeFormats),r((0,W.insert)(s,t))}}if("true"===n.clipboardData.getData("rich-text"))return void m(g);if(p)return void r((0,W.insert)(s,(0,W.create)({text:h})));let f="INLINE";const b=h.trim();u&&(0,W.isEmpty)(s)&&(0,ra.isURL)(b)&&/^https?:/.test(b)&&(f="BLOCKS");const v=(0,l.pasteHandler)({HTML:g,plainText:h,mode:f,tagName:a,preserveWhiteSpace:d});"string"==typeof v?m(v):v.length>0&&c&&(0,W.isEmpty)(s)&&c(v,v.length-1,-1)}const{defaultView:o}=t.ownerDocument;return o.addEventListener("paste",n),()=>{o.removeEventListener("paste",n)}},e=>t=>{function n(t){const{keyCode:n}=t;if(t.defaultPrevented)return;const{value:o,onMerge:r,onRemove:s}=e.current;if(n===la.DELETE||n===la.BACKSPACE){const{start:e,end:i,text:l}=o,a=n===la.BACKSPACE,c=o.activeFormats&&!!o.activeFormats.length;if(!(0,W.isCollapsed)(o)||c||a&&0!==e||!a&&i!==l.length)return;r?r(!a):s&&(0,W.isEmpty)(o)&&a&&s(!a),t.preventDefault()}}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}},e=>t=>{function n(t){if(t.keyCode!==la.ENTER)return;const{onReplace:n,onSplit:o}=e.current;n&&o&&(t.__deprecatedOnSplit=!0)}function o(n){if(n.defaultPrevented)return;if(n.target!==t)return;if(n.keyCode!==la.ENTER)return;const{value:o,onChange:r,disableLineBreaks:s,onSplitAtEnd:i,onSplitAtDoubleLineEnd:l,registry:a}=e.current;n.preventDefault();const{text:c,start:u,end:d}=o;n.shiftKey?s||r((0,W.insert)(o,"\n")):i&&u===d&&d===c.length?i():l&&u===d&&d===c.length&&"\n\n"===c.slice(-2)?a.batch((()=>{const e={...o};e.start=e.end-2,r((0,W.remove)(e)),l()})):s||r((0,W.insert)(o,"\n"))}const{defaultView:r}=t.ownerDocument;return r.addEventListener("keydown",o),t.addEventListener("keydown",n),()=>{r.removeEventListener("keydown",o),t.removeEventListener("keydown",n)}},e=>t=>{function n(){const{registry:n}=e.current;if(!n.select(Gr).isMultiSelecting())return;const o=t.parentElement.closest('[contenteditable="true"]');o&&o.focus()}return t.addEventListener("focus",n),()=>{t.removeEventListener("focus",n)}}];function ET(e){const t=(0,a.useRef)(e);t.current=e;const n=(0,a.useMemo)((()=>jT.map((e=>e(t)))),[t]);return(0,u.useRefEffect)((t=>{if(!e.isSelected)return;const o=n.map((e=>e(t)));return()=>{o.forEach((e=>e()))}}),[n,e.isSelected])}const TT={},MT=Symbol("usesContext");function PT({onChange:e,onFocus:t,value:n,forwardedRef:o,settings:r}){const{name:s,edit:i,[MT]:l}=r,c=(0,a.useContext)(Zb),u=(0,a.useMemo)((()=>l?Object.fromEntries(Object.entries(c).filter((([e])=>l.includes(e)))):TT),[l,c]);if(!i)return null;const d=(0,W.getActiveFormat)(n,s),p=void 0!==d,h=(0,W.getActiveObject)(n),g=void 0!==h&&h.type===s;return(0,U.jsx)(i,{isActive:p,activeAttributes:p&&d.attributes||{},isObjectActive:g,activeObjectAttributes:g&&h.attributes||{},value:n,onChange:e,onFocus:t,contentRef:o,context:u},s)}function RT({formatTypes:e,...t}){return e.map((e=>(0,_a.createElement)(PT,{settings:e,...t,key:e.name})))}function NT(e,t){if($T.isEmpty(e)){const e=BT(t);return e?`<${e}></${e}>`:""}return Array.isArray(e)?(y()("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),l.children.toHTML(e)):"string"==typeof e?e:e.toHTMLString()}function AT({value:e,tagName:t,multiline:n,format:o,...r}){return e=(0,U.jsx)(a.RawHTML,{children:NT(e,n)}),t?(0,U.jsx)(t,{...r,children:e}):e}const LT=(0,a.forwardRef)((function({children:e,identifier:t,tagName:n="div",value:o="",onChange:r,multiline:s,...i},l){y()("wp.blockEditor.RichText multiline prop",{since:"6.1",version:"6.3",alternative:"nested blocks (InnerBlocks)",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/"});const{clientId:a}=_(),{getSelectionStart:u,getSelectionEnd:d}=(0,c.useSelect)(Gr),{selectionChange:p}=(0,c.useDispatch)(Gr),h=BT(s),g=`</${h}>${o=o||`<${h}></${h}>`}<${h}>`.split(`</${h}><${h}>`);function m(e){r(`<${h}>${e.join(`</${h}><${h}>`)}</${h}>`)}return g.shift(),g.pop(),(0,U.jsx)(n,{ref:l,children:g.map(((e,n)=>(0,U.jsx)(FT,{identifier:`${t}-${n}`,tagName:h,value:e,onChange:e=>{const t=g.slice();t[n]=e,m(t)},isSelected:void 0,onKeyDown:o=>{if(o.keyCode!==la.ENTER)return;o.preventDefault();const{offset:r}=u(),{offset:s}=d();if("number"!=typeof r||"number"!=typeof s)return;const i=(0,W.create)({html:e});i.start=r,i.end=s;const l=(0,W.split)(i).map((e=>(0,W.toHTMLString)({value:e}))),c=g.slice();c.splice(n,1,...l),m(c),p(a,`${t}-${n+1}`,0,0)},onMerge:e=>{const o=g.slice();let r=0;if(e){if(!o[n+1])return;o.splice(n,2,o[n]+o[n+1]),r=o[n].length-1}else{if(!o[n-1])return;o.splice(n-1,2,o[n-1]+o[n]),r=o[n-1].length-1}m(o),p(a,`${t}-${n-(e?0:1)}`,r,r)},...i},n)))})}));const OT=(0,a.createContext)(),DT=(0,a.createContext)(),zT=Symbol("instanceId");function VT(e){const{__unstableMobileNoFocusOnMount:t,deleteEnter:n,placeholderTextColor:o,textAlign:r,selectionColor:s,tagsToEliminate:i,disableEditingMenu:l,fontSize:a,fontFamily:c,fontWeight:u,fontStyle:d,minWidth:p,maxWidth:h,disableSuggestions:g,disableAutocorrection:m,...f}=e;return f}function FT({children:e,tagName:t="div",value:n="",onChange:o,isSelected:r,multiline:s,inlineToolbar:i,wrapperClassName:d,autocompleters:p,onReplace:h,placeholder:g,allowedFormats:f,withoutInteractiveFormatting:b,onRemove:v,onMerge:k,onSplit:x,__unstableOnSplitAtEnd:S,__unstableOnSplitAtDoubleLineEnd:w,identifier:C,preserveWhiteSpace:B,__unstablePastePlainText:I,__unstableEmbedURLOnPaste:j,__unstableDisableFormats:E,disableLineBreaks:T,__unstableAllowPrefixTransformations:M,readOnly:P,...R},N){R=VT(R),x&&y()("wp.blockEditor.RichText onSplit prop",{since:"6.4",alternative:'block.json support key: "splitting"'});const A=(0,u.useInstanceId)(FT),L=(0,a.useRef)(),O=_(),{clientId:D,isSelected:z,name:V}=O,F=O[m],H=(0,a.useContext)(Zb),{selectionStart:G,selectionEnd:$,isSelected:K}=(0,c.useSelect)((e=>{if(!z)return{isSelected:!1};const{getSelectionStart:t,getSelectionEnd:n}=e(Gr),o=t(),s=n();let i;return void 0===r?i=o.clientId===D&&s.clientId===D&&(C?o.attributeKey===C:o[zT]===A):r&&(i=o.clientId===D),{selectionStart:i?o.offset:void 0,selectionEnd:i?s.offset:void 0,isSelected:i}}),[D,C,A,r,z]),Z=(0,c.useSelect)((e=>{let t=!1;if(F&&Rf(V)){const n=(0,l.getBlockType)(V).attributes,{getBlockBindingsSource:o}=Q(e(l.store));for(const[r,s]of Object.entries(F)){if("rich-text"!==n?.[r]?.source)break;const i=o(s.source);if(!i?.canUserEditValue({select:e,context:H,args:s.args})){t=!0;break}}}return t}),[F,V]),q=P||Z,{getSelectionStart:Y,getSelectionEnd:X,getBlockRootClientId:J}=(0,c.useSelect)(Gr),{selectionChange:ee}=(0,c.useDispatch)(Gr),te=IT({allowedFormats:f,disableFormats:E}),ne=!te||te.length>0,oe=(0,a.useCallback)(((e,t)=>{const n={},o=void 0===e&&void 0===t,r={clientId:D,[C?"attributeKey":zT]:C||A};if("number"==typeof e||o){if(void 0===t&&J(D)!==J(X().clientId))return;n.start={...r,offset:e}}if("number"==typeof t||o){if(void 0===e&&J(D)!==J(Y().clientId))return;n.end={...r,offset:t}}ee(n)}),[D,J,X,Y,C,A,ee]),{formatTypes:re,prepareHandlers:se,valueHandlers:ie,changeHandlers:le,dependencies:ae}=function({clientId:e,identifier:t,withoutInteractiveFormatting:n,allowedFormats:o}){const r=(0,c.useSelect)(_T,[]),s=(0,a.useMemo)((()=>r.filter((({name:e,interactive:t,tagName:r})=>!(o&&!o.includes(e)||n&&(t||xT.has(r)))))),[r,o,n]),i=(0,c.useSelect)((n=>s.reduce(((o,r)=>r.__experimentalGetPropsForEditableTreePreparation?{...o,...yT(r.__experimentalGetPropsForEditableTreePreparation(n,{richTextIdentifier:t,blockClientId:e}),r.name)}:o),{})),[s,e,t]),l=(0,c.useDispatch)(),u=[],d=[],p=[],h=[];for(const e in i)h.push(i[e]);return s.forEach((n=>{if(n.__experimentalCreatePrepareEditableTree){const o=n.__experimentalCreatePrepareEditableTree(ST(i,n.name),{richTextIdentifier:t,blockClientId:e});n.__experimentalCreateOnChangeEditableValue?d.push(o):u.push(o)}if(n.__experimentalCreateOnChangeEditableValue){let o={};n.__experimentalGetPropsForEditableTreeChangeHandler&&(o=n.__experimentalGetPropsForEditableTreeChangeHandler(l,{richTextIdentifier:t,blockClientId:e}));const r=ST(i,n.name);p.push(n.__experimentalCreateOnChangeEditableValue({..."object"==typeof r?r:{},...o},{richTextIdentifier:t,blockClientId:e}))}})),{formatTypes:s,prepareHandlers:u,valueHandlers:d,changeHandlers:p,dependencies:h}}({clientId:D,identifier:C,withoutInteractiveFormatting:b,allowedFormats:te});function ce(e){return re.forEach((t=>{t.__experimentalCreatePrepareEditableTree&&(e=(0,W.removeFormat)(e,t.name,0,e.text.length))})),e.formats}const{value:ue,getValue:de,onChange:pe,ref:he}=(0,W.__unstableUseRichText)({value:n,onChange(e,{__unstableFormats:t,__unstableText:n}){o(e),Object.values(le).forEach((e=>{e(t,n)}))},selectionStart:G,selectionEnd:$,onSelectionChange:oe,placeholder:g,__unstableIsSelected:K,__unstableDisableFormats:E,preserveWhiteSpace:B,__unstableDependencies:[...ae,t],__unstableAfterParse:function(e){return ie.reduce(((t,n)=>n(t,e.text)),e.formats)},__unstableBeforeSerialize:ce,__unstableAddInvisibleFormats:function(e){return se.reduce(((t,n)=>n(t,e.text)),e.formats)}}),ge=function(e){return(0,Ps.__unstableUseAutocompleteProps)({...e,completers:Lb(e)})}({onReplace:h,completers:p,record:ue,onChange:pe});!function({html:e,value:t}){const n=(0,a.useRef)(),o=!!t.activeFormats?.length,{__unstableMarkLastChangeAsPersistent:r}=(0,c.useDispatch)(Gr);(0,a.useLayoutEffect)((()=>{if(n.current){if(n.current!==t.text){const e=window.setTimeout((()=>{r()}),1e3);return n.current=t.text,()=>{window.clearTimeout(e)}}r()}else n.current=t.text}),[e,o])}({html:n,value:ue});const me=(0,a.useRef)(new Set),fe=(0,a.useRef)(new Set);function be(){L.current?.focus()}const ve=(0,c.useRegistry)(),ke=t;return(0,U.jsxs)(U.Fragment,{children:[K&&(0,U.jsx)(OT.Provider,{value:me,children:(0,U.jsx)(DT.Provider,{value:fe,children:(0,U.jsxs)(Ps.Popover.__unstableSlotNameProvider,{value:"__unstable-block-tools-after",children:[e&&e({value:ue,onChange:pe,onFocus:be}),(0,U.jsx)(RT,{value:ue,onChange:pe,onFocus:be,formatTypes:re,forwardedRef:L})]})})}),K&&ne&&(0,U.jsx)(kT,{inline:i,editableContentElement:L.current}),(0,U.jsx)(ke,{role:"textbox","aria-multiline":!T,"aria-label":g,"aria-readonly":q,...R,...ge,ref:(0,u.useMergeRefs)([he,N,ge.ref,R.ref,ET({registry:ve,getValue:de,onChange:pe,__unstableAllowPrefixTransformations:M,formatTypes:re,onReplace:h,selectionChange:ee,isSelected:K,disableFormats:E,value:ue,tagName:t,onSplit:x,__unstableEmbedURLOnPaste:j,pastePlainText:I,onMerge:k,onRemove:v,removeEditorOnlyFormats:ce,disableLineBreaks:T,onSplitAtEnd:S,onSplitAtDoubleLineEnd:w,keyboardShortcuts:me,inputEvents:fe}),L]),contentEditable:!q,suppressContentEditableWarning:!0,className:ws("block-editor-rich-text__editable",R.className,"rich-text"),tabIndex:0!==R.tabIndex||q?R.tabIndex:null,"data-wp-block-attribute-key":C})]})}const HT=(GT=(0,a.forwardRef)(FT),(0,a.forwardRef)(((e,t)=>{let n=e.value,o=e.onChange;Array.isArray(n)&&(y()("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),n=l.children.toHTML(e.value),o=t=>e.onChange(l.children.fromDOM((0,W.__unstableCreateElement)(document,t).childNodes)));const r=e.multiline?LT:GT;return(0,U.jsx)(r,{...e,value:n,onChange:o,ref:t})})));var GT;HT.Content=AT,HT.isEmpty=e=>!e||0===e.length;const UT=(0,a.forwardRef)(((e,t)=>{if(_()[f]){const{children:t,tagName:n="div",value:o,onChange:r,isSelected:s,multiline:i,inlineToolbar:l,wrapperClassName:a,autocompleters:c,onReplace:u,placeholder:d,allowedFormats:p,withoutInteractiveFormatting:h,onRemove:g,onMerge:m,onSplit:f,__unstableOnSplitAtEnd:b,__unstableOnSplitAtDoubleLineEnd:v,identifier:k,preserveWhiteSpace:_,__unstablePastePlainText:x,__unstableEmbedURLOnPaste:y,__unstableDisableFormats:S,disableLineBreaks:w,__unstableAllowPrefixTransformations:C,readOnly:B,...I}=VT(e);return(0,U.jsx)(n,{...I,dangerouslySetInnerHTML:{__html:NT(o,i)}})}return(0,U.jsx)(HT,{ref:t,...e,readOnly:!1})}));UT.Content=AT,UT.isEmpty=e=>!e||0===e.length;const $T=UT,WT=(0,a.forwardRef)(((e,t)=>(0,U.jsx)($T,{ref:t,...e,__unstableDisableFormats:!0})));WT.Content=({value:e="",tagName:t="div",...n})=>(0,U.jsx)(t,{...n,children:e});const KT=WT,ZT=(0,a.forwardRef)((({__experimentalVersion:e,...t},n)=>{if(2===e)return(0,U.jsx)(KT,{ref:n,...t});const{className:o,onChange:r,...s}=t;return(0,U.jsx)(pv.A,{ref:n,className:ws("block-editor-plain-text",o),onChange:e=>r(e.target.value),...s})}));function qT({property:e,viewport:t,desc:n}){const o=(0,u.useInstanceId)(qT),r=n||(0,C.sprintf)((0,C._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."),e,t.label);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("span",{"aria-describedby":`rbc-desc-${o}`,children:t.label}),(0,U.jsx)(Ps.VisuallyHidden,{as:"span",id:`rbc-desc-${o}`,children:r})]})}const YT=function(e){const{title:t,property:n,toggleLabel:o,onIsResponsiveChange:r,renderDefaultControl:s,renderResponsiveControls:i,isResponsive:l=!1,defaultLabel:c={id:"all",label:(0,C._x)("All","screen sizes")},viewports:u=[{id:"small",label:(0,C.__)("Small screens")},{id:"medium",label:(0,C.__)("Medium screens")},{id:"large",label:(0,C.__)("Large screens")}]}=e;if(!t||!n||!s)return null;const d=o||(0,C.sprintf)((0,C.__)("Use the same %s on all screen sizes."),n),p=(0,C.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),h=s((0,U.jsx)(qT,{property:n,viewport:c}),c);return(0,U.jsxs)("fieldset",{className:"block-editor-responsive-block-control",children:[(0,U.jsx)("legend",{className:"block-editor-responsive-block-control__title",children:t}),(0,U.jsxs)("div",{className:"block-editor-responsive-block-control__inner",children:[(0,U.jsx)(Ps.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-responsive-block-control__toggle",label:d,checked:!l,onChange:r,help:p}),(0,U.jsxs)("div",{className:ws("block-editor-responsive-block-control__group",{"is-responsive":l}),children:[!l&&h,l&&(i?i(u):u.map((e=>(0,U.jsx)(a.Fragment,{children:s((0,U.jsx)(qT,{property:n,viewport:e}),e)},e.id))))]})]})]})};function XT({character:e,type:t,onUse:n}){const o=(0,a.useContext)(OT),r=(0,a.useRef)();return r.current=n,(0,a.useEffect)((()=>{function n(n){la.isKeyboardEvent[t](n,e)&&(r.current(),n.preventDefault())}return o.current.add(n),()=>{o.current.delete(n)}}),[e,t]),null}function QT({name:e,shortcutType:t,shortcutCharacter:n,...o}){let r,s="RichText.ToolbarControls";return e&&(s+=`.${e}`),t&&n&&(r=la.displayShortcut[t](n)),(0,U.jsx)(Ps.Fill,{name:s,children:(0,U.jsx)(Ps.ToolbarButton,{...o,shortcut:r})})}function JT({inputType:e,onInput:t}){const n=(0,a.useContext)(DT),o=(0,a.useRef)();return o.current=t,(0,a.useEffect)((()=>{function t(t){t.inputType===e&&(o.current(),t.preventDefault())}return n.current.add(t),()=>{n.current.delete(t)}}),[e]),null}const eM=(0,U.jsx)(Ps.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,U.jsx)(Ps.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"})});const tM=(0,a.forwardRef)((function(e,t){const n=(0,c.useSelect)((e=>e(Gr).__unstableGetEditorMode()),[]),{__unstableSetEditorMode:o}=(0,c.useDispatch)(Gr);return(0,U.jsx)(Ps.Dropdown,{renderToggle:({isOpen:o,onToggle:r})=>(0,U.jsx)(Ps.Button,{...e,ref:t,icon:"navigation"===n?eM:nc,"aria-expanded":o,"aria-haspopup":"true",onClick:r,label:(0,C.__)("Tools")}),popoverProps:{placement:"bottom-start"},renderContent:()=>(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ps.NavigableMenu,{role:"menu","aria-label":(0,C.__)("Tools"),children:(0,U.jsx)(Ps.MenuItemsChoice,{value:"navigation"===n?"navigation":"edit",onSelect:o,choices:[{value:"edit",label:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Hi,{icon:nc}),(0,C.__)("Edit")]})},{value:"navigation",label:(0,U.jsxs)(U.Fragment,{children:[eM,(0,C.__)("Select")]})}]})}),(0,U.jsx)("div",{className:"block-editor-tool-selector__help",children:(0,C.__)("Tools provide different interactions for selecting, navigating, and editing blocks. Toggle between select and edit by pressing Escape and Enter.")})]})})}));function nM({units:e,...t}){const[n]=$r("spacing.units"),o=(0,Ps.__experimentalUseCustomUnits)({availableUnits:n||["%","px","em","rem","vw"],units:e});return(0,U.jsx)(Ps.__experimentalUnitControl,{units:o,...t})}const oM=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})});class rM extends a.Component{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.submitLink=this.submitLink.bind(this),this.state={expanded:!1}}toggle(){this.setState({expanded:!this.state.expanded})}submitLink(e){e.preventDefault(),this.toggle()}render(){const{url:e,onChange:t}=this.props,{expanded:n}=this.state,o=e?(0,C.__)("Edit link"):(0,C.__)("Insert link");return(0,U.jsxs)("div",{className:"block-editor-url-input__button",children:[(0,U.jsx)(Ps.Button,{icon:Vu,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!e}),n&&(0,U.jsx)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink,children:(0,U.jsxs)("div",{className:"block-editor-url-input__button-modal-line",children:[(0,U.jsx)(Ps.Button,{className:"block-editor-url-input__back",icon:oM,label:(0,C.__)("Close"),onClick:this.toggle}),(0,U.jsx)(Sa,{__nextHasNoMarginBottom:!0,value:e||"",onChange:t}),(0,U.jsx)(Ps.Button,{icon:fa,label:(0,C.__)("Submit"),type:"submit"})]})})]})}}const sM=rM,iM=(0,U.jsx)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,U.jsx)(G.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.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"})}),lM="none",aM="custom",cM="media",uM="attachment",dM=["noreferrer","noopener"],pM=({linkDestination:e,onChangeUrl:t,url:n,mediaType:o="image",mediaUrl:r,mediaLink:s,linkTarget:i,linkClass:l,rel:c,showLightboxSetting:u,lightboxEnabled:d,onSetLightbox:p,resetLightbox:h})=>{const[g,m]=(0,a.useState)(!1),[f,b]=(0,a.useState)(null),[v,k]=(0,a.useState)(!1),[_,x]=(0,a.useState)(null),y=(0,a.useRef)(null),S=(0,a.useRef)();(0,a.useEffect)((()=>{if(!S.current)return;(sa.focus.focusable.find(S.current)[0]||S.current).focus()}),[v,n,d]);const w=()=>{e!==cM&&e!==uM||x(""),k(!0)},B=()=>{k(!1)},I=()=>{const e=[{linkDestination:cM,title:(0,C.__)("Link to image file"),url:"image"===o?r:void 0,icon:iM}];return"image"===o&&s&&e.push({linkDestination:uM,title:(0,C.__)("Link to attachment page"),url:"image"===o?s:void 0,icon:Ia}),e},j=(0,U.jsxs)(Ps.__experimentalVStack,{spacing:"3",children:[(0,U.jsx)(Ps.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,C.__)("Open in new tab"),onChange:e=>{const n=(e=>{const t=e?"_blank":void 0;let n;if(t){const e=(null!=c?c:"").split(" ");dM.forEach((t=>{e.includes(t)||e.push(t)})),n=e.join(" ")}else{const e=(null!=c?c:"").split(" ").filter((e=>!1===dM.includes(e)));n=e.length?e.join(" "):void 0}return{linkTarget:t,rel:n}})(e);t(n)},checked:"_blank"===i}),(0,U.jsx)(Ps.TextControl,{__nextHasNoMarginBottom:!0,label:(0,C.__)("Link rel"),value:null!=c?c:"",onChange:e=>{t({rel:e})}}),(0,U.jsx)(Ps.TextControl,{__nextHasNoMarginBottom:!0,label:(0,C.__)("Link CSS class"),value:l||"",onChange:e=>{t({linkClass:e})}})]}),E=null!==_?_:n,T=!d||d&&!u,M=!E&&T,P=(I().find((t=>t.linkDestination===e))||{}).title;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ps.ToolbarButton,{icon:Vu,className:"components-toolbar__control",label:(0,C.__)("Link"),"aria-expanded":g,onClick:()=>{m(!0)},ref:b,isActive:!!n||d&&u}),g&&(0,U.jsx)(uT,{ref:S,anchor:f,onFocusOutside:e=>{const t=y.current;t&&t.contains(e.target)||(m(!1),x(null),B())},onClose:()=>{x(null),B(),m(!1)},renderSettings:T?()=>j:null,additionalControls:M&&(0,U.jsxs)(Ps.NavigableMenu,{children:[I().map((e=>(0,U.jsx)(Ps.MenuItem,{icon:e.icon,iconPosition:"left",onClick:()=>{x(null),(e=>{const n=I();let o;o=e?(n.find((t=>t.url===e))||{linkDestination:aM}).linkDestination:lM,t({linkDestination:o,href:e})})(e.url),B()},children:e.title},e.linkDestination))),u&&(0,U.jsx)(Ps.MenuItem,{className:"block-editor-url-popover__expand-on-click",icon:Db,info:(0,C.__)("Scale the image with a lightbox effect."),iconPosition:"left",onClick:()=>{x(null),t({linkDestination:lM,href:""}),p(!0),B()},children:(0,C.__)("Expand on click")},"expand-on-click")]}),offset:13,children:d&&u&&!n&&!v?(0,U.jsxs)("div",{className:"block-editor-url-popover__expand-on-click",children:[(0,U.jsx)(Hi,{icon:Db}),(0,U.jsxs)("div",{className:"text",children:[(0,U.jsx)("p",{children:(0,C.__)("Expand on click")}),(0,U.jsx)("p",{className:"description",children:(0,C.__)("Scales the image with a lightbox effect")})]}),(0,U.jsx)(Ps.Button,{icon:oc,label:(0,C.__)("Disable expand on click"),onClick:()=>{p(!1)},size:"compact"})]}):!n||v?(0,U.jsx)(uT.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:E,onChangeInputValue:x,onSubmit:e=>{if(_){const e=I().find((e=>e.url===_))?.linkDestination||aM;t({href:_,linkDestination:e,lightbox:{enabled:!1}})}B(),x(null),e.preventDefault()},autocompleteRef:y}):n&&!v?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(uT.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:n,onEditLinkClick:w,urlLabel:P}),(0,U.jsx)(Ps.Button,{icon:oc,label:(0,C.__)("Remove link"),onClick:()=>{t({linkDestination:lM,href:""}),h()},size:"compact"})]}):void 0})]})};function hM(){return y()("wp.blockEditor.PreviewOptions",{version:"6.5"}),null}function gM(e){const[t,n]=(0,a.useState)(window.innerWidth);(0,a.useEffect)((()=>{if("Desktop"===e)return;const t=()=>n(window.innerWidth);return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}}),[e]);const o=e=>{let n;switch(e){case"Tablet":n=780;break;case"Mobile":n=360;break;default:return null}return n<t?n:t};return(e=>{const t="Mobile"===e?"768px":"1024px",n=(window.innerHeight<800?36:72)+"px",r="auto";switch(e){case"Tablet":case"Mobile":return{width:o(e),marginTop:n,marginBottom:n,marginLeft:r,marginRight:r,height:t,borderRadius:"2px 2px 2px 2px",border:"1px solid #ddd",overflowY:"auto"};default:return{marginLeft:r,marginRight:r}}})(e)}function mM(){const e=(0,c.useSelect)((e=>e(Gr).getBlockSelectionStart()),[]),t=Yi(e);return e?(0,U.jsx)(Ps.Button,{variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{t.current.focus()},children:(0,C.__)("Skip to the selected block")}):null}const fM=window.wp.wordcount;const bM=(0,c.withSelect)((e=>{const{getMultiSelectedBlocks:t}=e(Gr);return{blocks:t()}}))((function({blocks:e}){const t=(0,fM.count)((0,l.serialize)(e),"words");return(0,U.jsxs)("div",{className:"block-editor-multi-selection-inspector__card",children:[(0,U.jsx)(jf,{icon:gB,showColors:!0}),(0,U.jsxs)("div",{className:"block-editor-multi-selection-inspector__card-content",children:[(0,U.jsx)("div",{className:"block-editor-multi-selection-inspector__card-title",children:(0,C.sprintf)((0,C._n)("%d Block","%d Blocks",e.length),e.length)}),(0,U.jsx)("div",{className:"block-editor-multi-selection-inspector__card-description",children:(0,C.sprintf)((0,C._n)("%d word selected.","%d words selected.",t),t)})]})]})})),vM=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"})}),kM=(0,U.jsx)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,U.jsx)(G.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"})}),_M={name:"settings",title:(0,C.__)("Settings"),value:"settings",icon:vM,className:"block-editor-block-inspector__tab-item"},xM={name:"styles",title:(0,C.__)("Styles"),value:"styles",icon:kM,className:"block-editor-block-inspector__tab-item"},yM={name:"list",title:(0,C.__)("List View"),value:"list-view",icon:ej,className:"block-editor-block-inspector__tab-item"},SM=()=>{const e=(0,Ps.__experimentalUseSlotFills)(na.slotName);return Boolean(e&&e.length)?(0,U.jsx)(Ps.PanelBody,{className:"block-editor-block-inspector__advanced",title:(0,C.__)("Advanced"),initialOpen:!1,children:(0,U.jsx)(oa.Slot,{group:"advanced"})}):null},wM=()=>{const[e,t]=(0,a.useState)(),{multiSelectedBlocks:n}=(0,c.useSelect)((e=>{const{getBlocksByClientId:t,getSelectedBlockClientIds:n}=e(Gr);return{multiSelectedBlocks:t(n())}}),[]);return(0,a.useLayoutEffect)((()=>{void 0===e&&t(n.some((({attributes:e})=>!!e?.style?.position?.type)))}),[e,n,t]),(0,U.jsx)(Ps.PanelBody,{className:"block-editor-block-inspector__position",title:(0,C.__)("Position"),initialOpen:null!=e&&e,children:(0,U.jsx)(oa.Slot,{group:"position"})})},CM=()=>{const e=(0,Ps.__experimentalUseSlotFills)(Zl.position.Slot.__unstableName);return Boolean(e&&e.length)?(0,U.jsx)(wM,{}):null},BM=(0,U.jsx)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U.jsx)(G.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"})}),IM="isInspectorControlsTabsHintVisible";function jM(){const e=(0,c.useSelect)((e=>{var t;return null===(t=e(ma.store).get("core",IM))||void 0===t||t}),[]),t=(0,a.useRef)(),{set:n}=(0,c.useDispatch)(ma.store);return e?(0,U.jsxs)("div",{ref:t,className:"block-editor-inspector-controls-tabs__hint",children:[(0,U.jsx)("div",{className:"block-editor-inspector-controls-tabs__hint-content",children:(0,C.__)("Looking for other block settings? They've moved to the styles tab.")}),(0,U.jsx)(Ps.Button,{className:"block-editor-inspector-controls-tabs__hint-dismiss",icon:BM,iconSize:"16",label:(0,C.__)("Dismiss hint"),onClick:()=>{const e=sa.focus.tabbable.findPrevious(t.current);e?.focus(),n("core",IM,!1)},showTooltip:!1})]}):null}const EM=({showAdvancedControls:e=!1})=>(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(oa.Slot,{}),(0,U.jsx)(CM,{}),e&&(0,U.jsx)("div",{children:(0,U.jsx)(SM,{})}),(0,U.jsx)(jM,{})]}),TM=({blockName:e,clientId:t,hasBlockStyles:n})=>{const o=Sd({blockName:e});return(0,U.jsxs)(U.Fragment,{children:[n&&(0,U.jsx)("div",{children:(0,U.jsx)(Ps.PanelBody,{title:(0,C.__)("Styles"),children:(0,U.jsx)(Dj,{clientId:t})})}),(0,U.jsx)(oa.Slot,{group:"color",label:(0,C.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,U.jsx)(oa.Slot,{group:"background",label:(0,C.__)("Background image")}),(0,U.jsx)(oa.Slot,{group:"filter"}),(0,U.jsx)(oa.Slot,{group:"typography",label:(0,C.__)("Typography")}),(0,U.jsx)(oa.Slot,{group:"dimensions",label:(0,C.__)("Dimensions")}),(0,U.jsx)(oa.Slot,{group:"border",label:o}),(0,U.jsx)(oa.Slot,{group:"styles"})]})},MM=["core/navigation"],PM=e=>!MM.includes(e),{Tabs:RM}=Q(Ps.privateApis);function NM({blockName:e,clientId:t,hasBlockStyles:n,tabs:o}){const r=(0,c.useSelect)((e=>e(ma.store).get("core","showIconLabels")),[]),s=PM(e)?void 0:yM.name;return(0,U.jsx)("div",{className:"block-editor-block-inspector__tabs",children:(0,U.jsxs)(RM,{defaultTabId:s,children:[(0,U.jsx)(RM.TabList,{children:o.map((e=>(0,U.jsx)(RM.Tab,{tabId:e.name,render:(0,U.jsx)(Ps.Button,{icon:r?void 0:e.icon,label:r?void 0:e.title,className:e.className,children:r&&e.title})},e.name)))}),(0,U.jsx)(RM.TabPanel,{tabId:_M.name,focusable:!1,children:(0,U.jsx)(EM,{showAdvancedControls:!!e})}),(0,U.jsx)(RM.TabPanel,{tabId:xM.name,focusable:!1,children:(0,U.jsx)(TM,{blockName:e,clientId:t,hasBlockStyles:n})}),(0,U.jsx)(RM.TabPanel,{tabId:yM.name,focusable:!1,children:(0,U.jsx)(oa.Slot,{group:"list"})})]},t)})}const AM=[];function LM(e){const t=[],{border:n,color:o,default:r,dimensions:s,list:i,position:l,styles:a,typography:u,effects:d}=Zl,p=PM(e),h=(0,Ps.__experimentalUseSlotFills)(i.Slot.__unstableName),g=!p&&!!h&&h.length,m=[...(0,Ps.__experimentalUseSlotFills)(n.Slot.__unstableName)||[],...(0,Ps.__experimentalUseSlotFills)(o.Slot.__unstableName)||[],...(0,Ps.__experimentalUseSlotFills)(s.Slot.__unstableName)||[],...(0,Ps.__experimentalUseSlotFills)(a.Slot.__unstableName)||[],...(0,Ps.__experimentalUseSlotFills)(u.Slot.__unstableName)||[],...(0,Ps.__experimentalUseSlotFills)(d.Slot.__unstableName)||[]].length,f=(0,Ps.__experimentalUseSlotFills)(na.slotName)||[],b=[...(0,Ps.__experimentalUseSlotFills)(r.Slot.__unstableName)||[],...(0,Ps.__experimentalUseSlotFills)(l.Slot.__unstableName)||[],...g&&m>1?f:[]];g&&t.push(yM),b.length&&t.push(_M),m&&t.push(xM);const v=function(e,t={}){return void 0!==t[e]?t[e]:void 0===t.default||t.default}(e,(0,c.useSelect)((e=>e(Gr).getSettings().blockInspectorTabs),[]));return v?t:AM}const{createPrivateSlotFill:OM}=Q(Ps.privateApis),{Fill:DM,Slot:zM}=OM("BlockInformation"),VM=e=>_()[p]?(0,U.jsx)(DM,{...e}):null;VM.Slot=e=>(0,U.jsx)(zM,{...e});const FM=VM;function HM({clientIds:e}){return e.length?(0,U.jsx)(Ps.__experimentalVStack,{spacing:1,children:e.map((e=>(0,U.jsx)(GM,{clientId:e},e)))}):null}function GM({clientId:e}){const{name:t,icon:n,isSelected:o}=(0,c.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:o,isBlockSelected:r,hasSelectedInnerBlock:s}=t(Gr),{getBlockType:i}=t(l.store),a=i(n(e)),c=o(e);return{name:a&&(0,l.__experimentalGetBlockLabel)(a,c,"list-view"),icon:a?.icon,isSelected:r(e)||s(e,!0)}}),[e]),{selectBlock:r}=(0,c.useDispatch)(Gr);return(0,U.jsx)(Ps.Button,{isPressed:o,onClick:()=>r(e),children:(0,U.jsxs)(Ps.Flex,{children:[(0,U.jsx)(Ps.FlexItem,{children:(0,U.jsx)(jf,{icon:n})}),(0,U.jsx)(Ps.FlexBlock,{style:{textAlign:"left"},children:(0,U.jsx)(Ps.__experimentalTruncate,{children:t})})]})})}function UM({topLevelLockedBlock:e}){const t=(0,c.useSelect)((t=>{const{getClientIdsOfDescendants:n,getBlockName:o,getBlockEditingMode:r}=t(Gr);return n(e).filter((e=>"core/list-item"!==o(e)&&"contentOnly"===r(e)))}),[e]),n=cm(e);return(0,U.jsxs)("div",{className:"block-editor-block-inspector",children:[(0,U.jsx)(cy,{...n,className:n.isSynced&&"is-synced"}),(0,U.jsx)(aE,{blockClientId:e}),(0,U.jsx)(FM.Slot,{}),t.length>0&&(0,U.jsx)(Ps.PanelBody,{title:(0,C.__)("Content"),children:(0,U.jsx)(HM,{clientIds:t})})]})}const $M=({animate:e,wrapper:t,children:n})=>e?t(n):n,WM=({blockInspectorAnimationSettings:e,selectedBlockClientId:t,children:n})=>{const o=e&&"leftToRight"===e.enterDirection?-50:50;return(0,U.jsx)(Ps.__unstableMotion.div,{animate:{x:0,opacity:1,transition:{ease:"easeInOut",duration:.14}},initial:{x:o,opacity:0},children:n},t)},KM=({clientId:e,blockName:t})=>{const n=LM(t),o=n?.length>1,r=(0,c.useSelect)((e=>{const{getBlockStyles:n}=e(l.store),o=n(t);return o&&o.length>0}),[t]),s=cm(e),i=Sd({blockName:t});return(0,U.jsxs)("div",{className:"block-editor-block-inspector",children:[(0,U.jsx)(cy,{...s,className:s.isSynced&&"is-synced"}),(0,U.jsx)(aE,{blockClientId:e}),(0,U.jsx)(FM.Slot,{}),o&&(0,U.jsx)(NM,{hasBlockStyles:r,clientId:e,blockName:t,tabs:n}),!o&&(0,U.jsxs)(U.Fragment,{children:[r&&(0,U.jsx)("div",{children:(0,U.jsx)(Ps.PanelBody,{title:(0,C.__)("Styles"),children:(0,U.jsx)(Dj,{clientId:e})})}),(0,U.jsx)(oa.Slot,{}),(0,U.jsx)(oa.Slot,{group:"list"}),(0,U.jsx)(oa.Slot,{group:"color",label:(0,C.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,U.jsx)(oa.Slot,{group:"typography",label:(0,C.__)("Typography")}),(0,U.jsx)(oa.Slot,{group:"dimensions",label:(0,C.__)("Dimensions")}),(0,U.jsx)(oa.Slot,{group:"border",label:i}),(0,U.jsx)(oa.Slot,{group:"styles"}),(0,U.jsx)(oa.Slot,{group:"background",label:(0,C.__)("Background image")}),(0,U.jsx)(CM,{}),(0,U.jsx)("div",{children:(0,U.jsx)(SM,{})})]}),(0,U.jsx)(mM,{},"back")]})},ZM=({showNoBlockSelectedMessage:e=!0})=>{const{count:t,selectedBlockName:n,selectedBlockClientId:o,blockType:r,topLevelLockedBlock:s}=(0,c.useSelect)((e=>{const{getSelectedBlockClientId:t,getSelectedBlockCount:n,getBlockName:o,getContentLockingParent:r,getTemplateLock:s}=Q(e(Gr)),i=t(),a=i&&o(i),c=a&&(0,l.getBlockType)(a);return{count:n(),selectedBlockClientId:i,selectedBlockName:a,blockType:c,topLevelLockedBlock:r(i)||("contentOnly"===s(i)||"core/block"===a?i:void 0)}}),[]),i=LM(r?.name),a=i?.length>1,u=function(e){return(0,c.useSelect)((t=>{if(e){const n=t(Gr).getSettings().blockInspectorAnimation,o=n?.animationParent,{getSelectedBlockClientId:r,getBlockParentsByBlockName:s}=t(Gr);return s(r(),o,!0)[0]||e.name===o?n?.[e.name]:null}return null}),[e])}(r),d=Sd({blockName:n});if(t>1)return(0,U.jsxs)("div",{className:"block-editor-block-inspector",children:[(0,U.jsx)(bM,{}),a?(0,U.jsx)(NM,{tabs:i}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(oa.Slot,{}),(0,U.jsx)(oa.Slot,{group:"color",label:(0,C.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,U.jsx)(oa.Slot,{group:"typography",label:(0,C.__)("Typography")}),(0,U.jsx)(oa.Slot,{group:"dimensions",label:(0,C.__)("Dimensions")}),(0,U.jsx)(oa.Slot,{group:"border",label:d}),(0,U.jsx)(oa.Slot,{group:"styles"})]})]});const p=n===(0,l.getUnregisteredTypeHandlerName)();return r&&o&&!p?s?(0,U.jsx)(UM,{topLevelLockedBlock:s}):(0,U.jsx)($M,{animate:u,wrapper:e=>(0,U.jsx)(WM,{blockInspectorAnimationSettings:u,selectedBlockClientId:o,children:e}),children:(0,U.jsx)(KM,{clientId:o,blockName:r.name})}):e?(0,U.jsx)("span",{className:"block-editor-block-inspector__no-blocks",children:(0,C.__)("No block selected.")}):null},qM=()=>(y()("__unstableUseClipboardHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),Ly());function YM(e){return y()("CopyHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),(0,U.jsx)("div",{...e,ref:Ly()})}const XM=()=>{};const QM=(0,a.forwardRef)((function({rootClientId:e,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r=!1,__experimentalInsertionIndex:s,__experimentalInitialTab:i,__experimentalInitialCategory:l,__experimentalFilterValue:a,onPatternCategorySelection:u,onSelect:d=XM,shouldFocusBlock:p=!1,onClose:h},g){const{destinationRootClientId:m}=(0,c.useSelect)((n=>{const{getBlockRootClientId:o}=n(Gr);return{destinationRootClientId:e||o(t)||void 0}}),[t,e]);return(0,U.jsx)(Fw,{onSelect:d,rootClientId:m,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r,__experimentalInsertionIndex:s,__experimentalFilterValue:a,onPatternCategorySelection:u,__experimentalInitialTab:i,__experimentalInitialCategory:l,shouldFocusBlock:p,ref:g,onClose:h})}));const JM=(0,a.forwardRef)((function(e,t){return(0,U.jsx)(QM,{...e,onPatternCategorySelection:void 0,ref:t})}));function eP(){return y()("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in.",since:"5.8"}),null}const tP=-1!==window.navigator.userAgent.indexOf("Trident"),nP=new Set([la.UP,la.DOWN,la.LEFT,la.RIGHT]),oP=.75;function rP(){const e=(0,c.useSelect)((e=>e(Gr).hasSelectedBlock()),[]);return(0,u.useRefEffect)((t=>{if(!e)return;const{ownerDocument:n}=t,{defaultView:o}=n;let r,s,i;function l(){r||(r=o.requestAnimationFrame((()=>{p(),r=null})))}function a(e){s&&o.cancelAnimationFrame(s),s=o.requestAnimationFrame((()=>{c(e),s=null}))}function c({keyCode:e}){if(!h())return;const r=(0,sa.computeCaretRect)(o);if(!r)return;if(!i)return void(i=r);if(nP.has(e))return void(i=r);const s=r.top-i.top;if(0===s)return;const l=(0,sa.getScrollContainer)(t);if(!l)return;const a=l===n.body||l===n.documentElement,c=a?o.scrollY:l.scrollTop,u=a?0:l.getBoundingClientRect().top,d=a?i.top/o.innerHeight:(i.top-u)/(o.innerHeight-u);if(0===c&&d<oP&&function(){const e=t.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===n.activeElement}())return void(i=r);const p=a?o.innerHeight:l.clientHeight;i.top+i.height>u+p||i.top<u?i=r:a?o.scrollBy(0,s):l.scrollTop+=s}function u(){n.addEventListener("selectionchange",d)}function d(){n.removeEventListener("selectionchange",d),p()}function p(){h()&&(i=(0,sa.computeCaretRect)(o))}function h(){return t.contains(n.activeElement)&&n.activeElement.isContentEditable}return o.addEventListener("scroll",l,!0),o.addEventListener("resize",l,!0),t.addEventListener("keydown",a),t.addEventListener("keyup",c),t.addEventListener("mousedown",u),t.addEventListener("touchstart",u),()=>{o.removeEventListener("scroll",l,!0),o.removeEventListener("resize",l,!0),t.removeEventListener("keydown",a),t.removeEventListener("keyup",c),t.removeEventListener("mousedown",u),t.removeEventListener("touchstart",u),n.removeEventListener("selectionchange",d),o.cancelAnimationFrame(r),o.cancelAnimationFrame(s)}}),[e])}const sP=tP?e=>e.children:function({children:e}){return(0,U.jsx)("div",{ref:rP(),className:"block-editor__typewriter",children:e})},iP=(0,a.createContext)({});function lP({children:e,uniqueId:t,blockName:n=""}){const o=(0,a.useContext)(iP),{name:r}=_();n=n||r;const s=(0,a.useMemo)((()=>function(e,t,n){const o={...e,[t]:e[t]?new Set(e[t]):new Set};return o[t].add(n),o}(o,n,t)),[o,n,t]);return(0,U.jsx)(iP.Provider,{value:s,children:e})}function aP(e,t=""){const n=(0,a.useContext)(iP),{name:o}=_();return t=t||o,Boolean(n[t]?.has(e))}const cP=e=>(y()("wp.blockEditor.__experimentalRecursionProvider",{since:"6.5",alternative:"wp.blockEditor.RecursionProvider"}),(0,U.jsx)(lP,{...e})),uP=(...e)=>(y()("wp.blockEditor.__experimentalUseHasRecursion",{since:"6.5",alternative:"wp.blockEditor.useHasRecursion"}),aP(...e));function dP({title:e,help:t,actions:n=[],onClose:o}){return(0,U.jsxs)(Ps.__experimentalVStack,{className:"block-editor-inspector-popover-header",spacing:4,children:[(0,U.jsxs)(Ps.__experimentalHStack,{alignment:"center",children:[(0,U.jsx)(Ps.__experimentalHeading,{className:"block-editor-inspector-popover-header__heading",level:2,size:13,children:e}),(0,U.jsx)(Ps.__experimentalSpacer,{}),n.map((({label:e,icon:t,onClick:n})=>(0,U.jsx)(Ps.Button,{className:"block-editor-inspector-popover-header__action",label:e,icon:t,variant:!t&&"tertiary",onClick:n,children:!t&&e},e))),o&&(0,U.jsx)(Ps.Button,{className:"block-editor-inspector-popover-header__action",label:(0,C.__)("Close"),icon:Nw,onClick:o})]}),t&&(0,U.jsx)(Ps.__experimentalText,{children:t})]})}const pP=(0,a.forwardRef)((function({onClose:e,onChange:t,showPopoverHeaderActions:n,isCompact:o,currentDate:r,...s},i){const l={startOfWeek:(0,pE.getSettings)().l10n.startOfWeek,onChange:t,currentDate:o?void 0:r,currentTime:o?r:void 0,...s},a=o?Ps.TimePicker:Ps.DateTimePicker;return(0,U.jsxs)("div",{ref:i,className:"block-editor-publish-date-time-picker",children:[(0,U.jsx)(dP,{title:(0,C.__)("Publish"),actions:n?[{label:(0,C.__)("Now"),onClick:()=>t?.(null)}]:void 0,onClose:e}),(0,U.jsx)(a,{...l})]})}));const hP=(0,a.forwardRef)((function(e,t){return(0,U.jsx)(pP,{...e,showPopoverHeaderActions:!0,isCompact:!1,ref:t})})),gP="isResuableBlocksrRenameHintVisible";function mP(){const e=(0,c.useSelect)((e=>{var t;return null===(t=e(ma.store).get("core",gP))||void 0===t||t}),[]),t=(0,a.useRef)(),{set:n}=(0,c.useDispatch)(ma.store);return e?(0,U.jsxs)("div",{ref:t,className:"reusable-blocks-menu-items__rename-hint",children:[(0,U.jsx)("div",{className:"reusable-blocks-menu-items__rename-hint-content",children:(0,C.__)("Reusable blocks are now synced patterns. A synced pattern will behave in exactly the same way as a reusable block.")}),(0,U.jsx)(Ps.Button,{className:"reusable-blocks-menu-items__rename-hint-dismiss",icon:BM,iconSize:"16",label:(0,C.__)("Dismiss hint"),onClick:()=>{const e=sa.focus.tabbable.findPrevious(t.current);e?.focus(),n("core",gP,!1)},showTooltip:!1})]}):null}const fP={button:"wp-element-button",caption:"wp-element-caption"},bP=e=>fP[e]?fP[e]:"",vP=()=>"";function kP(e,t,n){return"core/image"===e&&n?.lightbox?.allowEditing||!!t?.lightbox}function _P({onChange:e,value:t,inheritedValue:n,panelId:o}){const r=as(),s=()=>{e(void 0)};let i=!1;return n?.lightbox?.enabled&&(i=n.lightbox.enabled),(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(Ps.__experimentalToolsPanel,{label:(0,C._x)("Settings","Image settings"),resetAll:s,panelId:o,dropdownMenuProps:r,children:(0,U.jsx)(Ps.__experimentalToolsPanelItem,{hasValue:()=>!!t?.lightbox,label:(0,C.__)("Expand on click"),onDeselect:s,isShownByDefault:!0,panelId:o,children:(0,U.jsx)(Ps.ToggleControl,{label:(0,C.__)("Expand on click"),checked:i,onChange:t=>{e({enabled:t})}})})})})}function xP({value:e,onChange:t,inheritedValue:n=e}){const[o,r]=(0,a.useState)(null),s=n?.css;return(0,U.jsxs)(Ps.__experimentalVStack,{spacing:3,children:[o&&(0,U.jsx)(Ps.Notice,{status:"error",onRemove:()=>r(null),children:o}),(0,U.jsx)(Ps.TextareaControl,{label:(0,C.__)("Additional CSS"),__nextHasNoMarginBottom:!0,value:s,onChange:n=>function(n){if(t({...e,css:n}),o){const[e]=Qy([{css:n}],".for-validation-only");e&&r(null)}}(n),onBlur:function(e){if(!e?.target?.value)return void r(null);const[t]=Qy([{css:e.target.value}],".for-validation-only");r(null===t?(0,C.__)("There is an error with your CSS structure."):null)},className:"block-editor-global-styles-advanced-panel__custom-css-input",spellCheck:!1})]})}const yP=new Map,SP=[],wP={caption:(0,C.__)("Caption"),link:(0,C.__)("Link"),button:(0,C.__)("Button"),heading:(0,C.__)("Heading"),h1:(0,C.__)("H1"),h2:(0,C.__)("H2"),h3:(0,C.__)("H3"),h4:(0,C.__)("H4"),h5:(0,C.__)("H5"),h6:(0,C.__)("H6"),"settings.color":(0,C.__)("Color"),"settings.typography":(0,C.__)("Typography"),"styles.color":(0,C.__)("Colors"),"styles.spacing":(0,C.__)("Spacing"),"styles.background":(0,C.__)("Background"),"styles.typography":(0,C.__)("Typography")},CP=function(e,t){var n,o,r=0;function s(){var s,i,l=n,a=arguments.length;e:for(;l;){if(l.args.length===arguments.length){for(i=0;i<a;i++)if(l.args[i]!==arguments[i]){l=l.next;continue e}return l!==n&&(l===o&&(o=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=n,l.prev=null,n.prev=l,n=l),l.val}l=l.next}for(s=new Array(a),i=0;i<a;i++)s[i]=arguments[i];return l={args:s,val:e.apply(null,s)},n?(n.prev=l,l.next=n):o=l,r===t.maxSize?(o=o.prev).next=null:r++,n=l,l.val}return t=t||{},s.clear=function(){n=null,o=null,r=0},s}((()=>(0,l.getBlockTypes)().reduce(((e,{name:t,title:n})=>(e[t]=n,e)),{}))),BP=e=>null!==e&&"object"==typeof e;function IP(e,t,n=""){if(!BP(e)&&!BP(t))return e!==t?n.split(".").slice(0,2).join("."):void 0;e=BP(e)?e:{},t=BP(t)?t:{};const o=new Set([...Object.keys(e),...Object.keys(t)]);let r=[];for(const s of o){const o=n?n+"."+s:s,i=IP(e[s],t[s],o);i&&(r=r.concat(i))}return r}function jP(e,t){const n=JSON.stringify({next:e,previous:t});if(yP.has(n))return yP.get(n);const o=IP({styles:{background:e?.styles?.background,color:e?.styles?.color,typography:e?.styles?.typography,spacing:e?.styles?.spacing},blocks:e?.styles?.blocks,elements:e?.styles?.elements,settings:e?.settings},{styles:{background:t?.styles?.background,color:t?.styles?.color,typography:t?.styles?.typography,spacing:t?.styles?.spacing},blocks:t?.styles?.blocks,elements:t?.styles?.elements,settings:t?.settings});if(!o.length)return yP.set(n,SP),SP;const r=[...new Set(o)].reduce(((e,t)=>{const n=function(e){if(wP[e])return wP[e];const t=e.split(".");if("blocks"===t?.[0]){const e=CP()?.[t[1]];return e||t[1]}return"elements"===t?.[0]?wP[t[1]]||t[1]:void 0}(t);return n&&e.push([t.split(".")[0],n]),e}),[]);return yP.set(n,r),r}function EP(e,t,n={}){let o=jP(e,t);const r=o.length,{maxResults:s}=n;return r?(s&&r>s&&(o=o.slice(0,s)),Object.entries(o.reduce(((e,t)=>{const n=e[t[0]]||[];return n.includes(t[1])||(e[t[0]]=[...n,t[1]]),e}),{})).map((([e,t])=>{const n=t.length,o=t.join((0,C.__)(", "));switch(e){case"blocks":return(0,C.sprintf)((0,C._n)("%s block.","%s blocks.",n),o);case"elements":return(0,C.sprintf)((0,C._n)("%s element.","%s elements.",n),o);case"settings":return(0,C.sprintf)((0,C.__)("%s settings."),o);case"styles":return(0,C.sprintf)((0,C.__)("%s styles."),o);default:return(0,C.sprintf)((0,C.__)("%s."),o)}}))):SP}function TP(e,t,n){if(null==e||!1===e)return;if(Array.isArray(e))return MP(e,t,n);switch(typeof e){case"string":case"number":return}const{type:o,props:r}=e;switch(o){case a.StrictMode:case a.Fragment:return MP(r.children,t,n);case a.RawHTML:return;case TC.Content:return PP(t,n);case AT:return void t.push(r.value)}switch(typeof o){case"string":return void 0!==r.children?MP(r.children,t,n):void 0;case"function":return TP(o.prototype&&"function"==typeof o.prototype.render?new o(r).render():o(r),t,n)}}function MP(e,...t){e=Array.isArray(e)?e:[e];for(let n=0;n<e.length;n++)TP(e[n],...t)}function PP(e,t){for(let n=0;n<t.length;n++){const{name:o,attributes:r,innerBlocks:s}=t[n];TP((0,l.getSaveElement)(o,r,(0,U.jsx)(TC.Content,{})),e,s)}}const RP=[{value:"fill",label:(0,C._x)("Fill","Scale option for dimensions control"),help:(0,C.__)("Fill the space by stretching the content.")},{value:"contain",label:(0,C._x)("Contain","Scale option for dimensions control"),help:(0,C.__)("Fit the content to the space without clipping.")},{value:"cover",label:(0,C._x)("Cover","Scale option for dimensions control"),help:(0,C.__)("Fill the space by clipping what doesn't fit.")},{value:"none",label:(0,C._x)("None","Scale option for dimensions control"),help:(0,C.__)("Do not adjust the sizing of the content. Content that is too large will be clipped, and content that is too small will have additional padding.")},{value:"scale-down",label:(0,C._x)("Scale down","Scale option for dimensions control"),help:(0,C.__)("Scale down the content to fit the space if it is too big. Content that is too small will have additional padding.")}];function NP({panelId:e,value:t,onChange:n,options:o=RP,defaultValue:r=RP[0].value,isShownByDefault:s=!0}){const i=null!=t?t:"fill",l=(0,a.useMemo)((()=>o.reduce(((e,t)=>(e[t.value]=t.help,e)),{})),[o]);return(0,U.jsx)(Ps.__experimentalToolsPanelItem,{label:(0,C.__)("Scale"),isShownByDefault:s,hasValue:()=>i!==r,onDeselect:()=>n(r),panelId:e,children:(0,U.jsx)(Ps.__experimentalToggleGroupControl,{label:(0,C.__)("Scale"),isBlock:!0,help:l[i],value:i,onChange:n,size:"__unstable-large",children:o.map((e=>(0,U.jsx)(Ps.__experimentalToggleGroupControlOption,{...e},e.value)))})})}function AP(){return AP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},AP.apply(this,arguments)}function LP(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var OP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,DP=LP((function(e){return OP.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var zP=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),VP=Math.abs,FP=String.fromCharCode,HP=Object.assign;function GP(e){return e.trim()}function UP(e,t,n){return e.replace(t,n)}function $P(e,t){return e.indexOf(t)}function WP(e,t){return 0|e.charCodeAt(t)}function KP(e,t,n){return e.slice(t,n)}function ZP(e){return e.length}function qP(e){return e.length}function YP(e,t){return t.push(e),e}var XP=1,QP=1,JP=0,eR=0,tR=0,nR="";function oR(e,t,n,o,r,s,i){return{value:e,root:t,parent:n,type:o,props:r,children:s,line:XP,column:QP,length:i,return:""}}function rR(e,t){return HP(oR("",null,null,"",null,null,0),e,{length:-e.length},t)}function sR(){return tR=eR>0?WP(nR,--eR):0,QP--,10===tR&&(QP=1,XP--),tR}function iR(){return tR=eR<JP?WP(nR,eR++):0,QP++,10===tR&&(QP=1,XP++),tR}function lR(){return WP(nR,eR)}function aR(){return eR}function cR(e,t){return KP(nR,e,t)}function uR(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function dR(e){return XP=QP=1,JP=ZP(nR=e),eR=0,[]}function pR(e){return nR="",e}function hR(e){return GP(cR(eR-1,fR(91===e?e+2:40===e?e+1:e)))}function gR(e){for(;(tR=lR())&&tR<33;)iR();return uR(e)>2||uR(tR)>3?"":" "}function mR(e,t){for(;--t&&iR()&&!(tR<48||tR>102||tR>57&&tR<65||tR>70&&tR<97););return cR(e,aR()+(t<6&&32==lR()&&32==iR()))}function fR(e){for(;iR();)switch(tR){case e:return eR;case 34:case 39:34!==e&&39!==e&&fR(tR);break;case 40:41===e&&fR(e);break;case 92:iR()}return eR}function bR(e,t){for(;iR()&&e+tR!==57&&(e+tR!==84||47!==lR()););return"/*"+cR(t,eR-1)+"*"+FP(47===e?e:iR())}function vR(e){for(;!uR(lR());)iR();return cR(e,eR)}var kR="-ms-",_R="-moz-",xR="-webkit-",yR="comm",SR="rule",wR="decl",CR="@keyframes";function BR(e,t){for(var n="",o=qP(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function IR(e,t,n,o){switch(e.type){case"@import":case wR:return e.return=e.return||e.value;case yR:return"";case CR:return e.return=e.value+"{"+BR(e.children,o)+"}";case SR:e.value=e.props.join(",")}return ZP(n=BR(e.children,o))?e.return=e.value+"{"+n+"}":""}function jR(e){return pR(ER("",null,null,null,[""],e=dR(e),0,[0],e))}function ER(e,t,n,o,r,s,i,l,a){for(var c=0,u=0,d=i,p=0,h=0,g=0,m=1,f=1,b=1,v=0,k="",_=r,x=s,y=o,S=k;f;)switch(g=v,v=iR()){case 40:if(108!=g&&58==WP(S,d-1)){-1!=$P(S+=UP(hR(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:S+=hR(v);break;case 9:case 10:case 13:case 32:S+=gR(g);break;case 92:S+=mR(aR()-1,7);continue;case 47:switch(lR()){case 42:case 47:YP(MR(bR(iR(),aR()),t,n),a);break;default:S+="/"}break;case 123*m:l[c++]=ZP(S)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:f=0;case 59+u:h>0&&ZP(S)-d&&YP(h>32?PR(S+";",o,n,d-1):PR(UP(S," ","")+";",o,n,d-2),a);break;case 59:S+=";";default:if(YP(y=TR(S,t,n,c,u,r,l,k,_=[],x=[],d),s),123===v)if(0===u)ER(S,t,y,y,_,s,d,l,x);else switch(99===p&&110===WP(S,3)?100:p){case 100:case 109:case 115:ER(e,y,y,o&&YP(TR(e,y,y,0,0,r,l,k,r,_=[],d),x),r,x,d,l,o?_:x);break;default:ER(S,y,y,y,[""],x,0,l,x)}}c=u=h=0,m=b=1,k=S="",d=i;break;case 58:d=1+ZP(S),h=g;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==sR())continue;switch(S+=FP(v),v*m){case 38:b=u>0?1:(S+="\f",-1);break;case 44:l[c++]=(ZP(S)-1)*b,b=1;break;case 64:45===lR()&&(S+=hR(iR())),p=lR(),u=d=ZP(k=S+=vR(aR())),v++;break;case 45:45===g&&2==ZP(S)&&(m=0)}}return s}function TR(e,t,n,o,r,s,i,l,a,c,u){for(var d=r-1,p=0===r?s:[""],h=qP(p),g=0,m=0,f=0;g<o;++g)for(var b=0,v=KP(e,d+1,d=VP(m=i[g])),k=e;b<h;++b)(k=GP(m>0?p[b]+" "+v:UP(v,/&\f/g,p[b])))&&(a[f++]=k);return oR(e,t,n,0===r?SR:l,a,c,u)}function MR(e,t,n){return oR(e,t,n,yR,FP(tR),KP(e,2,-2),0)}function PR(e,t,n,o){return oR(e,t,n,wR,KP(e,0,o),KP(e,o+1,-1),o)}var RR=function(e,t,n){for(var o=0,r=0;o=r,r=lR(),38===o&&12===r&&(t[n]=1),!uR(r);)iR();return cR(e,eR)},NR=function(e,t){return pR(function(e,t){var n=-1,o=44;do{switch(uR(o)){case 0:38===o&&12===lR()&&(t[n]=1),e[n]+=RR(eR-1,t,n);break;case 2:e[n]+=hR(o);break;case 4:if(44===o){e[++n]=58===lR()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=FP(o)}}while(o=iR());return e}(dR(e),t))},AR=new WeakMap,LR=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||AR.get(n))&&!o){AR.set(e,!0);for(var r=[],s=NR(t,r),i=n.props,l=0,a=0;l<s.length;l++)for(var c=0;c<i.length;c++,a++)e.props[a]=r[l]?s[l].replace(/&\f/g,i[c]):i[c]+" "+s[l]}}},OR=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function DR(e,t){switch(function(e,t){return 45^WP(e,0)?(((t<<2^WP(e,0))<<2^WP(e,1))<<2^WP(e,2))<<2^WP(e,3):0}(e,t)){case 5103:return xR+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xR+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xR+e+_R+e+kR+e+e;case 6828:case 4268:return xR+e+kR+e+e;case 6165:return xR+e+kR+"flex-"+e+e;case 5187:return xR+e+UP(e,/(\w+).+(:[^]+)/,xR+"box-$1$2"+kR+"flex-$1$2")+e;case 5443:return xR+e+kR+"flex-item-"+UP(e,/flex-|-self/,"")+e;case 4675:return xR+e+kR+"flex-line-pack"+UP(e,/align-content|flex-|-self/,"")+e;case 5548:return xR+e+kR+UP(e,"shrink","negative")+e;case 5292:return xR+e+kR+UP(e,"basis","preferred-size")+e;case 6060:return xR+"box-"+UP(e,"-grow","")+xR+e+kR+UP(e,"grow","positive")+e;case 4554:return xR+UP(e,/([^-])(transform)/g,"$1"+xR+"$2")+e;case 6187:return UP(UP(UP(e,/(zoom-|grab)/,xR+"$1"),/(image-set)/,xR+"$1"),e,"")+e;case 5495:case 3959:return UP(e,/(image-set\([^]*)/,xR+"$1$`$1");case 4968:return UP(UP(e,/(.+:)(flex-)?(.*)/,xR+"box-pack:$3"+kR+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xR+e+e;case 4095:case 3583:case 4068:case 2532:return UP(e,/(.+)-inline(.+)/,xR+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ZP(e)-1-t>6)switch(WP(e,t+1)){case 109:if(45!==WP(e,t+4))break;case 102:return UP(e,/(.+:)(.+)-([^]+)/,"$1"+xR+"$2-$3$1"+_R+(108==WP(e,t+3)?"$3":"$2-$3"))+e;case 115:return~$P(e,"stretch")?DR(UP(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==WP(e,t+1))break;case 6444:switch(WP(e,ZP(e)-3-(~$P(e,"!important")&&10))){case 107:return UP(e,":",":"+xR)+e;case 101:return UP(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xR+(45===WP(e,14)?"inline-":"")+"box$3$1"+xR+"$2$3$1"+kR+"$2box$3")+e}break;case 5936:switch(WP(e,t+11)){case 114:return xR+e+kR+UP(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xR+e+kR+UP(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xR+e+kR+UP(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xR+e+kR+e+e}return e}var zR=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case wR:e.return=DR(e.value,e.length);break;case CR:return BR([rR(e,{value:UP(e.value,"@","@"+xR)})],o);case SR:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return BR([rR(e,{props:[UP(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return BR([rR(e,{props:[UP(t,/:(plac\w+)/,":"+xR+"input-$1")]}),rR(e,{props:[UP(t,/:(plac\w+)/,":-moz-$1")]}),rR(e,{props:[UP(t,/:(plac\w+)/,kR+"input-$1")]})],o)}return""}))}}];const VR=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||zR;var r,s,i={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)}));var a,c,u,d,p=[IR,(d=function(e){a.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[LR,OR].concat(o,p),u=qP(c),function(e,t,n,o){for(var r="",s=0;s<u;s++)r+=c[s](e,t,n,o)||"";return r});s=function(e,t,n,o){a=n,function(e){BR(jR(e),h)}(e?e+"{"+t.styles+"}":t.styles),o&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new zP({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return g.sheet.hydrate(l),g};const FR=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const HR={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function GR(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var UR=/[A-Z]|^ms/g,$R=/_EMO_([^_]+?)_([^]*?)_EMO_/g,WR=function(e){return 45===e.charCodeAt(1)},KR=function(e){return null!=e&&"boolean"!=typeof e},ZR=GR((function(e){return WR(e)?e:e.replace(UR,"-$&").toLowerCase()})),qR=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace($R,(function(e,t,n){return XR={name:t,styles:n,next:XR},t}))}return 1===HR[e]||WR(e)||"number"!=typeof t||0===t?t:t+"px"};function YR(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return XR={name:n.name,styles:n.styles,next:XR},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)XR={name:o.name,styles:o.styles,next:XR},o=o.next;return n.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=YR(e,t,n[r])+";";else for(var s in n){var i=n[s];if("object"!=typeof i)null!=t&&void 0!==t[i]?o+=s+"{"+t[i]+"}":KR(i)&&(o+=ZR(s)+":"+qR(s,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=YR(e,t,i);switch(s){case"animation":case"animationName":o+=ZR(s)+":"+l+";";break;default:o+=s+"{"+l+"}"}}else for(var a=0;a<i.length;a++)KR(i[a])&&(o+=ZR(s)+":"+qR(s,i[a])+";")}return o}(e,t,n);case"function":if(void 0!==e){var r=XR,s=n(e);return XR=r,YR(e,t,s)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var XR,QR=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var JR=!!_a.useInsertionEffect&&_a.useInsertionEffect,eN=JR||function(e){return e()},tN=(0,_a.createContext)("undefined"!=typeof HTMLElement?VR({key:"css"}):null);tN.Provider;var nN=function(e){return(0,_a.forwardRef)((function(t,n){var o=(0,_a.useContext)(tN);return e(t,o,n)}))},oN=(0,_a.createContext)({});var rN=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},sN=DP,iN=function(e){return"theme"!==e},lN=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?sN:iN},aN=function(e,t,n){var o;if(t){var r=t.shouldForwardProp;o=e.__emotion_forwardProp&&r?function(t){return e.__emotion_forwardProp(t)&&r(t)}:r}return"function"!=typeof o&&n&&(o=e.__emotion_forwardProp),o},cN=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;rN(t,n,o);eN((function(){return function(e,t,n){rN(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,n,o)}));return null};const uN=function e(t,n){var o,r,s=t.__emotion_real===t,i=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,r=n.target);var l=aN(t,n,s),a=l||lN(i),c=!a("as");return function(){var u=arguments,d=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&d.push("label:"+o+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{0,d.push(u[0][0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],u[0][h])}var g=nN((function(e,t,n){var o=c&&e.as||i,s="",u=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=(0,_a.useContext)(oN)}"string"==typeof e.className?s=function(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):o+=n+" "})),o}(t.registered,u,e.className):null!=e.className&&(s=e.className+" ");var g=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,r="";XR=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,r+=YR(n,t,s)):r+=s[0];for(var i=1;i<e.length;i++)r+=YR(n,t,e[i]),o&&(r+=s[i]);QR.lastIndex=0;for(var l,a="";null!==(l=QR.exec(r));)a+="-"+l[1];return{name:FR(r)+a,styles:r,next:XR}}(d.concat(u),t.registered,p);s+=t.key+"-"+g.name,void 0!==r&&(s+=" "+r);var m=c&&void 0===l?lN(o):a,f={};for(var b in e)c&&"as"===b||m(b)&&(f[b]=e[b]);return f.className=s,f.ref=n,(0,_a.createElement)(_a.Fragment,null,(0,_a.createElement)(cN,{cache:t,serialized:g,isStringTag:"string"==typeof o}),(0,_a.createElement)(o,f))}));return g.displayName=void 0!==o?o:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=i,g.__emotion_styles=d,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+r}}),g.withComponent=function(t,o){return e(t,AP({},n,o,{shouldForwardProp:aN(g,o,!0)})).apply(void 0,d)},g}};const dN=uN(Ps.__experimentalToolsPanelItem,{target:"ef8pe3d0"})({name:"957xgf",styles:"grid-column:span 1"});function pN({panelId:e,value:t={},onChange:n=(()=>{}),units:o,isShownByDefault:r=!0}){var s,i;const l="auto"===t.width?"":null!==(s=t.width)&&void 0!==s?s:"",a="auto"===t.height?"":null!==(i=t.height)&&void 0!==i?i:"",c=e=>o=>{const r={...t};o?r[e]=o:delete r[e],n(r)};return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(dN,{label:(0,C.__)("Width"),isShownByDefault:r,hasValue:()=>""!==l,onDeselect:c("width"),panelId:e,children:(0,U.jsx)(Ps.__experimentalUnitControl,{label:(0,C.__)("Width"),placeholder:(0,C.__)("Auto"),labelPosition:"top",units:o,min:0,value:l,onChange:c("width"),size:"__unstable-large"})}),(0,U.jsx)(dN,{label:(0,C.__)("Height"),isShownByDefault:r,hasValue:()=>""!==a,onDeselect:c("height"),panelId:e,children:(0,U.jsx)(Ps.__experimentalUnitControl,{label:(0,C.__)("Height"),placeholder:(0,C.__)("Auto"),labelPosition:"top",units:o,min:0,value:a,onChange:c("height"),size:"__unstable-large"})})]})}const hN=function({panelId:e,value:t={},onChange:n=(()=>{}),aspectRatioOptions:o,defaultAspectRatio:r="auto",scaleOptions:s,defaultScale:i="fill",unitsOptions:l}){const c=void 0===t.width||"auto"===t.width?null:t.width,u=void 0===t.height||"auto"===t.height?null:t.height,d=void 0===t.aspectRatio||"auto"===t.aspectRatio?null:t.aspectRatio,p=void 0===t.scale||"fill"===t.scale?null:t.scale,[h,g]=(0,a.useState)(p),[m,f]=(0,a.useState)(d),b=c&&u?"custom":m,v=d||c&&u;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(rg,{panelId:e,options:o,defaultValue:r,value:b,onChange:e=>{const o={...t};f(e="auto"===e?null:e),e?o.aspectRatio=e:delete o.aspectRatio,e?h?o.scale=h:(o.scale=i,g(i)):delete o.scale,"custom"!==e&&c&&u&&delete o.height,n(o)}}),(0,U.jsx)(pN,{panelId:e,units:l,value:{width:c,height:u},onChange:({width:e,height:o})=>{const r={...t};o="auto"===o?null:o,(e="auto"===e?null:e)?r.width=e:delete r.width,o?r.height=o:delete r.height,e&&o?delete r.aspectRatio:m&&(r.aspectRatio=m),m||!!e==!!o?h?r.scale=h:(r.scale=i,g(i)):delete r.scale,n(r)}}),v&&(0,U.jsx)(NP,{panelId:e,options:s,defaultValue:i,value:h,onChange:e=>{const o={...t};g(e="fill"===e?null:e),e?o.scale=e:delete o.scale,n(o)}})]})},gN=[{label:(0,C._x)("Thumbnail","Image size option for resolution control"),value:"thumbnail"},{label:(0,C._x)("Medium","Image size option for resolution control"),value:"medium"},{label:(0,C._x)("Large","Image size option for resolution control"),value:"large"},{label:(0,C._x)("Full Size","Image size option for resolution control"),value:"full"}];const mN={};X(mN,{...i,ExperimentalBlockCanvas:ZI,ExperimentalBlockEditorProvider:fy,getDuotoneFilter:Wg,getRichTextValues:function(e=[]){l.__unstableGetBlockProps.skipFilters=!0;const t=[];return PP(t,e),l.__unstableGetBlockProps.skipFilters=!1,t.map((e=>e instanceof W.RichTextData?e:W.RichTextData.fromHTMLString(e)))},PrivateInserter:Ww,PrivateQuickInserter:Gw,extractWords:xb,getNormalizedSearchTerms:Sb,normalizeString:yb,PrivateListView:Pj,ResizableBoxPopover:function({clientId:e,resizableBoxProps:t,...n}){return(0,U.jsx)(ol,{clientId:e,__unstablePopoverSlot:"block-toolbar",...n,children:(0,U.jsx)(Ps.ResizableBox,{...t})})},BlockInfo:FM,useHasBlockToolbar:MI,cleanEmptyObject:Cs,useStyleOverride:Es,BlockQuickNavigation:HM,LayoutStyle:function({layout:e={},css:t,...n}){const o=ml(e.type),[r]=$r("spacing.blockGap"),s=null!==r;if(o){if(t)return(0,U.jsx)("style",{children:t});const r=o.getLayoutStyle?.({hasBlockGapSupport:s,layout:e,...n});if(r)return(0,U.jsx)("style",{children:r})}return null},BlockRemovalWarningModal:function({rules:e}){const{clientIds:t,selectPrevious:n,message:o}=(0,c.useSelect)((e=>Q(e(Gr)).getRemovalPromptData())),{clearBlockRemovalPrompt:r,setBlockRemovalRules:s,privateRemoveBlocks:i}=Q((0,c.useDispatch)(Gr));if((0,a.useEffect)((()=>(s(e),()=>{s()})),[e,s]),!o)return;return(0,U.jsxs)(Ps.Modal,{title:(0,C.__)("Be careful!"),onRequestClose:r,size:"medium",children:[(0,U.jsx)("p",{children:o}),(0,U.jsxs)(Ps.__experimentalHStack,{justify:"right",children:[(0,U.jsx)(Ps.Button,{variant:"tertiary",onClick:r,children:(0,C.__)("Cancel")}),(0,U.jsx)(Ps.Button,{variant:"primary",onClick:()=>{i(t,n,!0),r()},children:(0,C.__)("Delete")})]})]})},useLayoutClasses:qm,useLayoutStyles:function(e={},t,n){const{layout:o={},style:r={}}=e,s=o?.inherit||o?.contentSize||o?.wideSize?{...o,type:"constrained"}:o||{},i=ml(s?.type||"default"),[l]=$r("spacing.blockGap"),a=null!==l;return i?.getLayoutStyle?.({blockName:t,selector:n,layout:o,style:r,hasBlockGapSupport:a})},DimensionsTool:hN,ResolutionTool:function({panelId:e,value:t,onChange:n,options:o=gN,defaultValue:r=gN[0].value,isShownByDefault:s=!0}){const i=null!=t?t:r;return(0,U.jsx)(Ps.__experimentalToolsPanelItem,{hasValue:()=>i!==r,label:(0,C.__)("Resolution"),onDeselect:()=>n(r),isShownByDefault:s,panelId:e,children:(0,U.jsx)(Ps.SelectControl,{label:(0,C.__)("Resolution"),value:i,options:o,onChange:n,help:(0,C.__)("Select the size of the source image."),size:"__unstable-large"})})},TextAlignmentControl:Tp,ReusableBlocksRenameHint:mP,useReusableBlocksRenameHint:function(){return(0,c.useSelect)((e=>{var t;return null===(t=e(ma.store).get("core",gP))||void 0===t||t}),[])},usesContextKey:MT,useFlashEditableBlocks:Qx,globalStylesDataKey:K,selectBlockPatternsKey:Z,requiresWrapperOnCopy:Ny,PrivateRichText:HT,PrivateInserterLibrary:QM,reusableBlocksSelectKey:q,PrivateBlockPopover:el,PrivatePublishDateTimePicker:pP,useSpacingSizes:Xh,useBlockDisplayTitle:Hb,__unstableBlockStyleVariationOverridesWithConfig:function({config:e}){const{getBlockStyles:t,overrides:n}=(0,c.useSelect)((e=>({getBlockStyles:e(l.store).getBlockStyles,overrides:Q(e(Gr)).getStyleOverrides()})),[]),{getBlockName:o}=(0,c.useSelect)(Gr),r=(0,a.useMemo)((()=>{if(!n?.length)return;const r=[],s=[];for(const[,i]of n)if(i?.variation&&i?.clientId&&!s.includes(i.clientId)){const n=o(i.clientId),a=e?.styles?.blocks?.[n]?.variations?.[i.variation];if(a){const o={settings:e?.settings,styles:{blocks:{[n]:{variations:{[`${i.variation}-${i.clientId}`]:a}}}}},c=Om((0,l.getBlockTypes)(),t,i.clientId),u=Am(o,c,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0});r.push({id:`${i.variation}-${i.clientId}`,css:u,__unstableType:"variation",variation:i.variation,clientId:i.clientId}),s.push(i.clientId)}}return r}),[e,n,t,o]);if(r&&r.length)return(0,U.jsx)(U.Fragment,{children:r.map((e=>(0,U.jsx)(Gm,{override:e},e.id)))})}})})(),(window.wp=window.wp||{}).blockEditor=o})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/block-library.js b/wp-includes/js/dist/block-library.js
index a60f80c..47f3943 100644
--- a/wp-includes/js/dist/block-library.js
+++ b/wp-includes/js/dist/block-library.js
@@ -23,193 +23,6 @@ module.exports = function isBlockMetadataExperimental(metadata) {
/***/ }),
-/***/ 1668:
-/***/ ((module, exports) => {
-
-var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/
-/* global define */
-
-(function () {
- 'use strict';
-
- var classNames = (function () {
- // don't inherit from Object so we can skip hasOwnProperty check later
- // http://stackoverflow.com/questions/15518328/creating-js-object-with-object-createnull#answer-21079232
- function StorageObject() {}
- StorageObject.prototype = Object.create(null);
-
- function _parseArray (resultSet, array) {
- var length = array.length;
-
- for (var i = 0; i < length; ++i) {
- _parse(resultSet, array[i]);
- }
- }
-
- var hasOwn = {}.hasOwnProperty;
-
- function _parseNumber (resultSet, num) {
- resultSet[num] = true;
- }
-
- function _parseObject (resultSet, object) {
- if (object.toString !== Object.prototype.toString && !object.toString.toString().includes('[native code]')) {
- resultSet[object.toString()] = true;
- return;
- }
-
- for (var k in object) {
- if (hasOwn.call(object, k)) {
- // set value to false instead of deleting it to avoid changing object structure
- // https://www.smashingmagazine.com/2012/11/writing-fast-memory-efficient-javascript/#de-referencing-misconceptions
- resultSet[k] = !!object[k];
- }
- }
- }
-
- var SPACE = /\s+/;
- function _parseString (resultSet, str) {
- var array = str.split(SPACE);
- var length = array.length;
-
- for (var i = 0; i < length; ++i) {
- resultSet[array[i]] = true;
- }
- }
-
- function _parse (resultSet, arg) {
- if (!arg) return;
- var argType = typeof arg;
-
- // 'foo bar'
- if (argType === 'string') {
- _parseString(resultSet, arg);
-
- // ['foo', 'bar', ...]
- } else if (Array.isArray(arg)) {
- _parseArray(resultSet, arg);
-
- // { 'foo': true, ... }
- } else if (argType === 'object') {
- _parseObject(resultSet, arg);
-
- // '130'
- } else if (argType === 'number') {
- _parseNumber(resultSet, arg);
- }
- }
-
- function _classNames () {
- // don't leak arguments
- // https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#32-leaking-arguments
- var len = arguments.length;
- var args = Array(len);
- for (var i = 0; i < len; i++) {
- args[i] = arguments[i];
- }
-
- var classSet = new StorageObject();
- _parseArray(classSet, args);
-
- var list = [];
-
- for (var k in classSet) {
- if (classSet[k]) {
- list.push(k)
- }
- }
-
- return list.join(' ');
- }
-
- return _classNames;
- })();
-
- 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 {}
-}());
-
-
-/***/ }),
-
-/***/ 5755:
-/***/ ((module, exports) => {
-
-var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/
-/* global define */
-
-(function () {
- 'use strict';
-
- var hasOwn = {}.hasOwnProperty;
- var nativeCodeString = '[native code]';
-
- 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)) {
- if (arg.length) {
- var inner = classNames.apply(null, arg);
- if (inner) {
- classes.push(inner);
- }
- }
- } else if (argType === 'object') {
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
- classes.push(arg.toString());
- continue;
- }
-
- 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 {}
-}());
-
-
-/***/ }),
-
/***/ 7734:
/***/ ((module) => {
@@ -857,6 +670,7 @@ __webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
__experimentalGetCoreBlocks: () => (/* binding */ __experimentalGetCoreBlocks),
__experimentalRegisterExperimentalCoreBlocks: () => (/* binding */ __experimentalRegisterExperimentalCoreBlocks),
+ privateApis: () => (/* reexport */ privateApis),
registerCoreBlocks: () => (/* binding */ registerCoreBlocks)
});
@@ -1872,24 +1686,25 @@ __webpack_require__.d(footnotes_namespaceObject, {
;// CONCATENATED MODULE: external ["wp","blocks"]
const external_wp_blocks_namespaceObject = window["wp"]["blocks"];
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: external ["wp","primitives"]
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/archive.js
-
/**
* WordPress dependencies
*/
-const archive = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const archive = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"
+ })
+});
/* harmony default export */ const library_archive = (archive);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/utils/init-block.js
@@ -1931,7 +1746,6 @@ const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
const external_wp_serverSideRender_namespaceObject = window["wp"]["serverSideRender"];
var external_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_wp_serverSideRender_namespaceObject);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/edit.js
-
/**
* WordPress dependencies
*/
@@ -1939,6 +1753,9 @@ var external_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(ex
+
+
+
function ArchivesEdit({
attributes,
setAttributes
@@ -1949,56 +1766,64 @@ function ArchivesEdit({
displayAsDropdown,
type
} = attributes;
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Display as dropdown'),
- checked: displayAsDropdown,
- onChange: () => setAttributes({
- displayAsDropdown: !displayAsDropdown
- })
- }), displayAsDropdown && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Show label'),
- checked: showLabel,
- onChange: () => setAttributes({
- showLabel: !showLabel
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Show post counts'),
- checked: showPostCounts,
- onChange: () => setAttributes({
- showPostCounts: !showPostCounts
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Group by:'),
- options: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Year'),
- value: 'yearly'
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('Month'),
- value: 'monthly'
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('Week'),
- value: 'weekly'
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('Day'),
- value: 'daily'
- }],
- value: type,
- onChange: value => setAttributes({
- type: value
- })
- }))), (0,external_React_namespaceObject.createElement)("div", {
- ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)()
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Disabled, null, (0,external_React_namespaceObject.createElement)((external_wp_serverSideRender_default()), {
- block: "core/archives",
- skipBlockSupportAttributes: true,
- attributes: attributes
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Display as dropdown'),
+ checked: displayAsDropdown,
+ onChange: () => setAttributes({
+ displayAsDropdown: !displayAsDropdown
+ })
+ }), displayAsDropdown && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show label'),
+ checked: showLabel,
+ onChange: () => setAttributes({
+ showLabel: !showLabel
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show post counts'),
+ checked: showPostCounts,
+ onChange: () => setAttributes({
+ showPostCounts: !showPostCounts
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Group by:'),
+ options: [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Year'),
+ value: 'yearly'
+ }, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Month'),
+ value: 'monthly'
+ }, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Week'),
+ value: 'weekly'
+ }, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Day'),
+ value: 'daily'
+ }],
+ value: type,
+ onChange: value => setAttributes({
+ type: value
+ })
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)(),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Disabled, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)((external_wp_serverSideRender_default()), {
+ block: "core/archives",
+ skipBlockSupportAttributes: true,
+ attributes: attributes
+ })
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/index.js
@@ -2084,24 +1909,24 @@ const init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/comment-author-avatar.js
-
/**
* WordPress dependencies
*/
-const commentAuthorAvatar = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const commentAuthorAvatar = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- d: "M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",
- clipRule: "evenodd"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ d: "M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",
+ clipRule: "evenodd"
+ })
+});
/* harmony default export */ const comment_author_avatar = (commentAuthorAvatar);
-// EXTERNAL MODULE: ./node_modules/classnames/index.js
-var classnames = __webpack_require__(5755);
-var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
+;// CONCATENATED MODULE: ./node_modules/clsx/dist/clsx.mjs
+function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
;// CONCATENATED MODULE: external ["wp","url"]
const external_wp_url_namespaceObject = window["wp"]["url"];
;// CONCATENATED MODULE: external ["wp","coreData"]
@@ -2203,7 +2028,6 @@ function useUserAvatar({
;// CONCATENATED MODULE: external ["wp","element"]
const external_wp_element_namespaceObject = window["wp"]["element"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/avatar/user-control.js
-
/**
* WordPress dependencies
*/
@@ -2212,6 +2036,7 @@ const external_wp_element_namespaceObject = window["wp"]["element"];
+
const AUTHORS_QUERY = {
who: 'authors',
per_page: -1,
@@ -2238,7 +2063,7 @@ function UserControl({
value: author.id
};
});
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ComboboxControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ComboboxControl, {
__nextHasNoMarginBottom: true,
label: (0,external_wp_i18n_namespaceObject.__)('User'),
help: (0,external_wp_i18n_namespaceObject.__)('Select the avatar user to display, if it is blank it will use the post/page author.'),
@@ -2251,7 +2076,6 @@ function UserControl({
/* harmony default export */ const user_control = (UserControl);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/avatar/edit.js
-
/**
* External dependencies
*/
@@ -2270,45 +2094,51 @@ function UserControl({
*/
+
+
+
const AvatarInspectorControls = ({
setAttributes,
avatar,
attributes,
selectUser
-}) => (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Image size'),
- onChange: newSize => setAttributes({
- size: newSize
- }),
- min: avatar.minSize,
- max: avatar.maxSize,
- initialPosition: attributes?.size,
- value: attributes?.size
-}), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Link to user profile'),
- onChange: () => setAttributes({
- isLink: !attributes.isLink
- }),
- checked: attributes.isLink
-}), attributes.isLink && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
- onChange: value => setAttributes({
- linkTarget: value ? '_blank' : '_self'
- }),
- checked: attributes.linkTarget === '_blank'
-}), selectUser && (0,external_React_namespaceObject.createElement)(user_control, {
- value: attributes?.userId,
- onChange: value => {
- setAttributes({
- userId: value
- });
- }
-})));
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Image size'),
+ onChange: newSize => setAttributes({
+ size: newSize
+ }),
+ min: avatar.minSize,
+ max: avatar.maxSize,
+ initialPosition: attributes?.size,
+ value: attributes?.size
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Link to user profile'),
+ onChange: () => setAttributes({
+ isLink: !attributes.isLink
+ }),
+ checked: attributes.isLink
+ }), attributes.isLink && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
+ onChange: value => setAttributes({
+ linkTarget: value ? '_blank' : '_self'
+ }),
+ checked: attributes.linkTarget === '_blank'
+ }), selectUser && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(user_control, {
+ value: attributes?.userId,
+ onChange: value => {
+ setAttributes({
+ userId: value
+ });
+ }
+ })]
+ })
+});
const ResizableAvatar = ({
setAttributes,
attributes,
@@ -2320,34 +2150,36 @@ const ResizableAvatar = ({
const doubledSizedSrc = (0,external_wp_url_namespaceObject.addQueryArgs)((0,external_wp_url_namespaceObject.removeQueryArgs)(avatar?.src, ['s']), {
s: attributes?.size * 2
});
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ResizableBox, {
- size: {
- width: attributes.size,
- height: attributes.size
- },
- showHandle: isSelected,
- onResizeStop: (event, direction, elt, delta) => {
- setAttributes({
- size: parseInt(attributes.size + (delta.height || delta.width), 10)
- });
- },
- lockAspectRatio: true,
- enable: {
- top: false,
- right: !(0,external_wp_i18n_namespaceObject.isRTL)(),
- bottom: true,
- left: (0,external_wp_i18n_namespaceObject.isRTL)()
- },
- minWidth: avatar.minSize,
- maxWidth: avatar.maxSize
- }, (0,external_React_namespaceObject.createElement)("img", {
- src: doubledSizedSrc,
- alt: avatar.alt,
- className: classnames_default()('avatar', 'avatar-' + attributes.size, 'photo', 'wp-block-avatar__image', borderProps.className),
- style: borderProps.style
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ResizableBox, {
+ size: {
+ width: attributes.size,
+ height: attributes.size
+ },
+ showHandle: isSelected,
+ onResizeStop: (event, direction, elt, delta) => {
+ setAttributes({
+ size: parseInt(attributes.size + (delta.height || delta.width), 10)
+ });
+ },
+ lockAspectRatio: true,
+ enable: {
+ top: false,
+ right: !(0,external_wp_i18n_namespaceObject.isRTL)(),
+ bottom: true,
+ left: (0,external_wp_i18n_namespaceObject.isRTL)()
+ },
+ minWidth: avatar.minSize,
+ maxWidth: avatar.maxSize,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: doubledSizedSrc,
+ alt: avatar.alt,
+ className: dist_clsx('avatar', 'avatar-' + attributes.size, 'photo', 'wp-block-avatar__image', borderProps.className),
+ style: borderProps.style
+ })
+ })
+ });
};
const CommentEdit = ({
attributes,
@@ -2362,28 +2194,31 @@ const CommentEdit = ({
const avatar = useCommentAvatar({
commentId
});
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(AvatarInspectorControls, {
- avatar: avatar,
- setAttributes: setAttributes,
- attributes: attributes,
- selectUser: false
- }), attributes.isLink ? (0,external_React_namespaceObject.createElement)("a", {
- href: "#avatar-pseudo-link",
- className: "wp-block-avatar__link",
- onClick: event => event.preventDefault()
- }, (0,external_React_namespaceObject.createElement)(ResizableAvatar, {
- attributes: attributes,
- avatar: avatar,
- blockProps: blockProps,
- isSelected: isSelected,
- setAttributes: setAttributes
- })) : (0,external_React_namespaceObject.createElement)(ResizableAvatar, {
- attributes: attributes,
- avatar: avatar,
- blockProps: blockProps,
- isSelected: isSelected,
- setAttributes: setAttributes
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AvatarInspectorControls, {
+ avatar: avatar,
+ setAttributes: setAttributes,
+ attributes: attributes,
+ selectUser: false
+ }), attributes.isLink ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: "#avatar-pseudo-link",
+ className: "wp-block-avatar__link",
+ onClick: event => event.preventDefault(),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResizableAvatar, {
+ attributes: attributes,
+ avatar: avatar,
+ blockProps: blockProps,
+ isSelected: isSelected,
+ setAttributes: setAttributes
+ })
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResizableAvatar, {
+ attributes: attributes,
+ avatar: avatar,
+ blockProps: blockProps,
+ isSelected: isSelected,
+ setAttributes: setAttributes
+ })]
+ });
};
const UserEdit = ({
attributes,
@@ -2401,37 +2236,40 @@ const UserEdit = ({
postType
});
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)();
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(AvatarInspectorControls, {
- selectUser: true,
- attributes: attributes,
- avatar: avatar,
- setAttributes: setAttributes
- }), attributes.isLink ? (0,external_React_namespaceObject.createElement)("a", {
- href: "#avatar-pseudo-link",
- className: "wp-block-avatar__link",
- onClick: event => event.preventDefault()
- }, (0,external_React_namespaceObject.createElement)(ResizableAvatar, {
- attributes: attributes,
- avatar: avatar,
- blockProps: blockProps,
- isSelected: isSelected,
- setAttributes: setAttributes
- })) : (0,external_React_namespaceObject.createElement)(ResizableAvatar, {
- attributes: attributes,
- avatar: avatar,
- blockProps: blockProps,
- isSelected: isSelected,
- setAttributes: setAttributes
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AvatarInspectorControls, {
+ selectUser: true,
+ attributes: attributes,
+ avatar: avatar,
+ setAttributes: setAttributes
+ }), attributes.isLink ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: "#avatar-pseudo-link",
+ className: "wp-block-avatar__link",
+ onClick: event => event.preventDefault(),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResizableAvatar, {
+ attributes: attributes,
+ avatar: avatar,
+ blockProps: blockProps,
+ isSelected: isSelected,
+ setAttributes: setAttributes
+ })
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResizableAvatar, {
+ attributes: attributes,
+ avatar: avatar,
+ blockProps: blockProps,
+ isSelected: isSelected,
+ setAttributes: setAttributes
+ })]
+ });
};
function Edit(props) {
// Don't show the Comment Edit controls if we have a comment ID set, or if we're in the Site Editor (where it is `null`).
if (props?.context?.commentId || props?.context?.commentId === null) {
- return (0,external_React_namespaceObject.createElement)(CommentEdit, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CommentEdit, {
...props
});
}
- return (0,external_React_namespaceObject.createElement)(UserEdit, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(UserEdit, {
...props
});
}
@@ -2525,25 +2363,27 @@ const avatar_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/audio.js
-
/**
* WordPress dependencies
*/
-const audio = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const audio = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
/* harmony default export */ const library_audio = (audio);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/deprecated.js
-
/**
* WordPress dependencies
*/
+
+
/* harmony default export */ const deprecated = ([{
attributes: {
src: {
@@ -2592,16 +2432,18 @@ const audio = (0,external_React_namespaceObject.createElement)(external_wp_primi
preload,
src
} = attributes;
- return (0,external_React_namespaceObject.createElement)("figure", null, (0,external_React_namespaceObject.createElement)("audio", {
- controls: "controls",
- src: src,
- autoPlay: autoplay,
- loop: loop,
- preload: preload
- }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- value: caption
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("audio", {
+ controls: "controls",
+ src: src,
+ autoPlay: autoplay,
+ loop: loop,
+ preload: preload
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ value: caption
+ })]
+ });
}
}]);
@@ -2609,9 +2451,6 @@ const audio = (0,external_React_namespaceObject.createElement)(external_wp_primi
const external_wp_blob_namespaceObject = window["wp"]["blob"];
;// CONCATENATED MODULE: external ["wp","notices"]
const external_wp_notices_namespaceObject = window["wp"]["notices"];
-// EXTERNAL MODULE: ./node_modules/classnames/dedupe.js
-var dedupe = __webpack_require__(1668);
-var dedupe_default = /*#__PURE__*/__webpack_require__.n(dedupe);
;// CONCATENATED MODULE: ./node_modules/memize/dist/index.js
/**
* Memize options object.
@@ -2813,10 +2652,9 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
const {
lock,
unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/block-library');
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/block-library');
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/util.js
-
/**
* External dependencies
*/
@@ -2889,9 +2727,13 @@ const util_metadata = {
};
+
const {
name: DEFAULT_EMBED_BLOCK
} = util_metadata;
+const {
+ kebabCase
+} = unlock(external_wp_components_namespaceObject.privateApis);
/** @typedef {import('@wordpress/blocks').WPBlockVariation} WPBlockVariation */
@@ -2931,11 +2773,13 @@ const getPhotoHtml = photo => {
// 100% width for the preview so it fits nicely into the document, some "thumbnails" are
// actually the full size photo.
- const photoPreview = (0,external_React_namespaceObject.createElement)("p", null, (0,external_React_namespaceObject.createElement)("img", {
- src: imageUrl,
- alt: photo.title,
- width: "100%"
- }));
+ const photoPreview = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: imageUrl,
+ alt: photo.title,
+ width: "100%"
+ })
+ });
return (0,external_wp_element_namespaceObject.renderToString)(photoPreview);
};
@@ -2964,7 +2808,9 @@ const createUpgradedEmbedBlock = (props, attributesFromPreview = {}) => {
type,
...restAttributes
} = attributes;
- if (!url || !(0,external_wp_blocks_namespaceObject.getBlockType)(DEFAULT_EMBED_BLOCK)) return;
+ if (!url || !(0,external_wp_blocks_namespaceObject.getBlockType)(DEFAULT_EMBED_BLOCK)) {
+ return;
+ }
const matchedBlock = findMoreSuitableBlock(url);
// WordPress blocks can work on multiple sites, and so don't have patterns,
@@ -3030,18 +2876,20 @@ const removeAspectRatioClasses = existingClassNames => {
if (!existingClassNames) {
// Avoids extraneous work and also, by returning the same value as
// received, ensures the post is not dirtied by a change of the block
- // attribute from `undefined` to an emtpy string.
+ // attribute from `undefined` to an empty string.
return existingClassNames;
}
const aspectRatioClassNames = ASPECT_RATIOS.reduce((accumulator, {
className
}) => {
- accumulator[className] = false;
+ accumulator.push(className);
return accumulator;
- }, {
- 'wp-has-aspect-ratio': false
- });
- return dedupe_default()(existingClassNames, aspectRatioClassNames);
+ }, ['wp-has-aspect-ratio']);
+ let outputClassNames = existingClassNames;
+ for (const className of aspectRatioClassNames) {
+ outputClassNames = outputClassNames.replace(className, '');
+ }
+ return outputClassNames.trim();
};
/**
@@ -3075,7 +2923,7 @@ function getClassNames(html, existingClassNames, allowResponsive = true) {
return removeAspectRatioClasses(existingClassNames);
}
// Close aspect ratio match found.
- return dedupe_default()(removeAspectRatioClasses(existingClassNames), potentialRatio.className, 'wp-has-aspect-ratio');
+ return dist_clsx(removeAspectRatioClasses(existingClassNames), potentialRatio.className, 'wp-has-aspect-ratio');
}
}
}
@@ -3090,9 +2938,10 @@ function getClassNames(html, existingClassNames, allowResponsive = true) {
* @param {Function} onReplace Function to call with the created fallback block.
*/
function fallback(url, onReplace) {
- const link = (0,external_React_namespaceObject.createElement)("a", {
- href: url
- }, url);
+ const link = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: url,
+ children: url
+ });
onReplace((0,external_wp_blocks_namespaceObject.createBlock)('core/paragraph', {
content: (0,external_wp_element_namespaceObject.renderToString)(link)
}));
@@ -3123,9 +2972,6 @@ const getAttributesFromPreview = memize((preview, title, currentClassNames, isRe
html,
provider_name: providerName
} = preview;
- const {
- kebabCase
- } = unlock(external_wp_components_namespaceObject.privateApis);
const providerNameSlug = kebabCase((providerName || title).toLowerCase());
if (isFromWordPress(html)) {
type = WP_EMBED_TYPE;
@@ -3167,24 +3013,117 @@ const getMergedAttributesWithPreview = (currentAttributes, preview, title, isRes
;// CONCATENATED MODULE: external ["wp","compose"]
const external_wp_compose_namespaceObject = window["wp"]["compose"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/caption.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/utils/hooks.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+/**
+ * Returns whether the current user can edit the given entity.
+ *
+ * @param {string} kind Entity kind.
+ * @param {string} name Entity name.
+ * @param {string} recordId Record's id.
+ */
+function useCanEditEntity(kind, name, recordId) {
+ return (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).canUserEditEntityRecord(kind, name, recordId), [kind, name, recordId]);
+}
+
+/**
+ * Handles uploading a media file from a blob URL on mount.
+ *
+ * @param {Object} args Upload media arguments.
+ * @param {string} args.url Blob URL.
+ * @param {?Array} args.allowedTypes Array of allowed media types.
+ * @param {Function} args.onChange Function called when the media is uploaded.
+ * @param {Function} args.onError Function called when an error happens.
+ */
+function useUploadMediaFromBlobURL(args = {}) {
+ const latestArgs = (0,external_wp_element_namespaceObject.useRef)(args);
+ const hasUploadStarted = (0,external_wp_element_namespaceObject.useRef)(false);
+ const {
+ getSettings
+ } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
+ (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
+ latestArgs.current = args;
+ });
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ // Uploading is a special effect that can't be canceled via the cleanup method.
+ // The extra check avoids duplicate uploads in development mode (React.StrictMode).
+ if (hasUploadStarted.current) {
+ return;
+ }
+ if (!latestArgs.current.url || !(0,external_wp_blob_namespaceObject.isBlobURL)(latestArgs.current.url)) {
+ return;
+ }
+ const file = (0,external_wp_blob_namespaceObject.getBlobByURL)(latestArgs.current.url);
+ if (!file) {
+ return;
+ }
+ const {
+ url,
+ allowedTypes,
+ onChange,
+ onError
+ } = latestArgs.current;
+ const {
+ mediaUpload
+ } = getSettings();
+ hasUploadStarted.current = true;
+ mediaUpload({
+ filesList: [file],
+ allowedTypes,
+ onFileChange: ([media]) => {
+ if ((0,external_wp_blob_namespaceObject.isBlobURL)(media?.url)) {
+ return;
+ }
+ (0,external_wp_blob_namespaceObject.revokeBlobURL)(url);
+ onChange(media);
+ hasUploadStarted.current = false;
+ },
+ onError: message => {
+ (0,external_wp_blob_namespaceObject.revokeBlobURL)(url);
+ onError(message);
+ hasUploadStarted.current = false;
+ }
+ });
+ }, [getSettings]);
+}
+function useToolsPanelDropdownMenuProps() {
+ const isMobile = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
+ return !isMobile ? {
+ popoverProps: {
+ placement: 'left-start',
+ // For non-mobile, inner sidebar width (248px) - button width (24px) - border (1px) + padding (16px) + spacing (20px)
+ offset: 259
+ }
+ } : {};
+}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/caption.js
/**
* WordPress dependencies
*/
-const caption = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const caption = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"
+ })
+});
/* harmony default export */ const library_caption = (caption);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/utils/caption.js
-
/**
* External dependencies
*/
@@ -3205,11 +3144,11 @@ const caption = (0,external_React_namespaceObject.createElement)(external_wp_pri
* Internal dependencies
*/
-const {
- PrivateRichText: RichText
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+
+
+
function Caption({
- key = 'caption',
+ attributeKey = 'caption',
attributes,
setAttributes,
isSelected,
@@ -3217,11 +3156,20 @@ function Caption({
placeholder = (0,external_wp_i18n_namespaceObject.__)('Add caption'),
label = (0,external_wp_i18n_namespaceObject.__)('Caption text'),
showToolbarButton = true,
+ excludeElementClassName,
className,
- disableEditing
+ readOnly,
+ tagName = 'figcaption',
+ addLabel = (0,external_wp_i18n_namespaceObject.__)('Add caption'),
+ removeLabel = (0,external_wp_i18n_namespaceObject.__)('Remove caption'),
+ icon = library_caption,
+ ...props
}) {
- const caption = attributes[key];
+ const caption = attributes[attributeKey];
const prevCaption = (0,external_wp_compose_namespaceObject.usePrevious)(caption);
+ const {
+ PrivateRichText: RichText
+ } = unlock(external_wp_blockEditor_namespaceObject.privateApis);
const isCaptionEmpty = RichText.isEmpty(caption);
const isPrevCaptionEmpty = RichText.isEmpty(prevCaption);
const [showCaption, setShowCaption] = (0,external_wp_element_namespaceObject.useState)(!isCaptionEmpty);
@@ -3245,39 +3193,42 @@ function Caption({
node.focus();
}
}, [isCaptionEmpty]);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, showToolbarButton && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- onClick: () => {
- setShowCaption(!showCaption);
- if (showCaption && caption) {
- setAttributes({
- caption: undefined
- });
- }
- },
- icon: library_caption,
- isPressed: showCaption,
- label: showCaption ? (0,external_wp_i18n_namespaceObject.__)('Remove caption') : (0,external_wp_i18n_namespaceObject.__)('Add caption')
- })), showCaption && (!RichText.isEmpty(caption) || isSelected) && (0,external_React_namespaceObject.createElement)(RichText, {
- identifier: key,
- tagName: "figcaption",
- className: classnames_default()(className, (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption')),
- ref: ref,
- "aria-label": label,
- placeholder: placeholder,
- value: caption,
- onChange: value => setAttributes({
- caption: value
- }),
- inlineToolbar: true,
- __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)())),
- disableEditing: disableEditing
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [showToolbarButton && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ onClick: () => {
+ setShowCaption(!showCaption);
+ if (showCaption && caption) {
+ setAttributes({
+ [attributeKey]: undefined
+ });
+ }
+ },
+ icon: icon,
+ isPressed: showCaption,
+ label: showCaption ? removeLabel : addLabel
+ })
+ }), showCaption && (!RichText.isEmpty(caption) || isSelected) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RichText, {
+ identifier: attributeKey,
+ tagName: tagName,
+ className: dist_clsx(className, excludeElementClassName ? '' : (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption')),
+ ref: ref,
+ "aria-label": label,
+ placeholder: placeholder,
+ value: caption,
+ onChange: value => setAttributes({
+ [attributeKey]: value
+ }),
+ inlineToolbar: true,
+ __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)())),
+ readOnly: readOnly,
+ ...props
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/edit.js
-
/**
* External dependencies
*/
@@ -3294,12 +3245,15 @@ function Caption({
-
/**
* Internal dependencies
*/
+
+
+
+
const ALLOWED_MEDIA_TYPES = ['audio'];
function AudioEdit({
attributes,
@@ -3317,22 +3271,12 @@ function AudioEdit({
src
} = attributes;
const isTemporaryAudio = !id && (0,external_wp_blob_namespaceObject.isBlobURL)(src);
- const {
- getSettings
- } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!id && (0,external_wp_blob_namespaceObject.isBlobURL)(src)) {
- const file = (0,external_wp_blob_namespaceObject.getBlobByURL)(src);
- if (file) {
- getSettings().mediaUpload({
- filesList: [file],
- onFileChange: ([media]) => onSelectAudio(media),
- onError: e => onUploadError(e),
- allowedTypes: ALLOWED_MEDIA_TYPES
- });
- }
- }
- }, []);
+ useUploadMediaFromBlobURL({
+ url: src,
+ allowedTypes: ALLOWED_MEDIA_TYPES,
+ onChange: onSelectAudio,
+ onError: onUploadError
+ });
function toggleAttribute(attribute) {
return newValue => {
setAttributes({
@@ -3390,96 +3334,106 @@ function AudioEdit({
caption: media.caption
});
}
- const classes = classnames_default()(className, {
+ const classes = dist_clsx(className, {
'is-transient': isTemporaryAudio
});
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
className: classes
});
if (!src) {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
- icon: (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
- icon: library_audio
- }),
- onSelect: onSelectAudio,
- onSelectURL: onSelectURL,
- accept: "audio/*",
- allowedTypes: ALLOWED_MEDIA_TYPES,
- value: attributes,
- onError: onUploadError
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ icon: library_audio
+ }),
+ onSelect: onSelectAudio,
+ onSelectURL: onSelectURL,
+ accept: "audio/*",
+ allowedTypes: ALLOWED_MEDIA_TYPES,
+ value: attributes,
+ onError: onUploadError
+ })
+ });
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, isSingleSelected && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "other"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, {
- mediaId: id,
- mediaURL: src,
- allowedTypes: ALLOWED_MEDIA_TYPES,
- accept: "audio/*",
- onSelect: onSelectAudio,
- onSelectURL: onSelectURL,
- onError: onUploadError
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Autoplay'),
- onChange: toggleAttribute('autoplay'),
- checked: autoplay,
- help: getAutoplayHelp
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Loop'),
- onChange: toggleAttribute('loop'),
- checked: loop
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject._x)('Preload', 'noun; Audio block parameter'),
- value: preload || ''
- // `undefined` is required for the preload attribute to be unset.
- ,
- onChange: value => setAttributes({
- preload: value || undefined
- }),
- options: [{
- value: '',
- label: (0,external_wp_i18n_namespaceObject.__)('Browser default')
- }, {
- value: 'auto',
- label: (0,external_wp_i18n_namespaceObject.__)('Auto')
- }, {
- value: 'metadata',
- label: (0,external_wp_i18n_namespaceObject.__)('Metadata')
- }, {
- value: 'none',
- label: (0,external_wp_i18n_namespaceObject._x)('None', 'Preload value')
- }]
- }))), (0,external_React_namespaceObject.createElement)("figure", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Disabled, {
- isDisabled: !isSingleSelected
- }, (0,external_React_namespaceObject.createElement)("audio", {
- controls: "controls",
- src: src
- })), isTemporaryAudio && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null), (0,external_React_namespaceObject.createElement)(Caption, {
- attributes: attributes,
- setAttributes: setAttributes,
- isSelected: isSingleSelected,
- insertBlocksAfter: insertBlocksAfter,
- label: (0,external_wp_i18n_namespaceObject.__)('Audio caption text'),
- showToolbarButton: isSingleSelected
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [isSingleSelected && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "other",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, {
+ mediaId: id,
+ mediaURL: src,
+ allowedTypes: ALLOWED_MEDIA_TYPES,
+ accept: "audio/*",
+ onSelect: onSelectAudio,
+ onSelectURL: onSelectURL,
+ onError: onUploadError
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Autoplay'),
+ onChange: toggleAttribute('autoplay'),
+ checked: autoplay,
+ help: getAutoplayHelp
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Loop'),
+ onChange: toggleAttribute('loop'),
+ checked: loop
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject._x)('Preload', 'noun; Audio block parameter'),
+ value: preload || ''
+ // `undefined` is required for the preload attribute to be unset.
+ ,
+ onChange: value => setAttributes({
+ preload: value || undefined
+ }),
+ options: [{
+ value: '',
+ label: (0,external_wp_i18n_namespaceObject.__)('Browser default')
+ }, {
+ value: 'auto',
+ label: (0,external_wp_i18n_namespaceObject.__)('Auto')
+ }, {
+ value: 'metadata',
+ label: (0,external_wp_i18n_namespaceObject.__)('Metadata')
+ }, {
+ value: 'none',
+ label: (0,external_wp_i18n_namespaceObject._x)('None', 'Preload value')
+ }]
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ ...blockProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Disabled, {
+ isDisabled: !isSingleSelected,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("audio", {
+ controls: "controls",
+ src: src
+ })
+ }), isTemporaryAudio && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Caption, {
+ attributes: attributes,
+ setAttributes: setAttributes,
+ isSelected: isSingleSelected,
+ insertBlocksAfter: insertBlocksAfter,
+ label: (0,external_wp_i18n_namespaceObject.__)('Audio caption text'),
+ showToolbarButton: isSingleSelected
+ })]
+ })]
+ });
}
/* harmony default export */ const edit = (AudioEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/save.js
-
/**
* WordPress dependencies
*/
+
+
function save({
attributes
}) {
@@ -3490,19 +3444,20 @@ function save({
preload,
src
} = attributes;
- return src && (0,external_React_namespaceObject.createElement)("figure", {
- ...external_wp_blockEditor_namespaceObject.useBlockProps.save()
- }, (0,external_React_namespaceObject.createElement)("audio", {
- controls: "controls",
- src: src,
- autoPlay: autoplay,
- loop: loop,
- preload: preload
- }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- value: caption,
- className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption')
- }));
+ return src && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save(),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("audio", {
+ controls: "controls",
+ src: src,
+ autoPlay: autoplay,
+ loop: loop,
+ preload: preload
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ value: caption,
+ className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption')
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/transforms.js
@@ -3683,17 +3638,18 @@ const audio_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/button.js
-
/**
* WordPress dependencies
*/
-const button_button = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const button_button = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"
+ })
+});
/* harmony default export */ const library_button = (button_button);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/utils/migrate-font-family.js
@@ -3737,7 +3693,6 @@ const {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/deprecated.js
-
/**
* External dependencies
*/
@@ -3753,6 +3708,7 @@ const {
* Internal dependencies
*/
+
const migrateBorderRadius = attributes => {
const {
borderRadius,
@@ -3787,7 +3743,7 @@ function migrateAlign(attributes) {
} = attributes;
return {
...otherAttributes,
- className: classnames_default()(otherAttributes.className, `align${attributes.align}`)
+ className: dist_clsx(otherAttributes.className, `align${attributes.align}`)
};
}
const migrateCustomColorsAndGradients = attributes => {
@@ -3951,7 +3907,7 @@ const v11 = {
const borderProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetBorderClassesAndStyles)(attributes);
const colorProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetColorClassesAndStyles)(attributes);
const spacingProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetSpacingClassesAndStyles)(attributes);
- const buttonClasses = classnames_default()('wp-block-button__link', colorProps.className, borderProps.className, {
+ const buttonClasses = dist_clsx('wp-block-button__link', colorProps.className, borderProps.className, {
// For backwards compatibility add style that isn't provided via
// block support.
'no-border-radius': style?.border?.radius === 0
@@ -3966,24 +3922,25 @@ const v11 = {
// 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.
- const wrapperClasses = classnames_default()(className, {
+ const wrapperClasses = dist_clsx(className, {
[`has-custom-width wp-block-button__width-${width}`]: width,
[`has-custom-font-size`]: fontSize || style?.typography?.fontSize
});
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: wrapperClasses
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "a",
+ className: buttonClasses,
+ href: url,
+ title: title,
+ style: buttonStyle,
+ value: text,
+ target: linkTarget,
+ rel: rel
})
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "a",
- className: buttonClasses,
- href: url,
- title: title,
- style: buttonStyle,
- value: text,
- target: linkTarget,
- rel: rel
- }));
+ });
}
};
const v10 = {
@@ -4079,7 +4036,7 @@ const v10 = {
const borderProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetBorderClassesAndStyles)(attributes);
const colorProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetColorClassesAndStyles)(attributes);
const spacingProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetSpacingClassesAndStyles)(attributes);
- const buttonClasses = classnames_default()('wp-block-button__link', colorProps.className, borderProps.className, {
+ const buttonClasses = dist_clsx('wp-block-button__link', colorProps.className, borderProps.className, {
// For backwards compatibility add style that isn't provided via
// block support.
'no-border-radius': style?.border?.radius === 0
@@ -4094,24 +4051,25 @@ const v10 = {
// 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.
- const wrapperClasses = classnames_default()(className, {
+ const wrapperClasses = dist_clsx(className, {
[`has-custom-width wp-block-button__width-${width}`]: width,
[`has-custom-font-size`]: fontSize || style?.typography?.fontSize
});
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: wrapperClasses
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "a",
+ className: buttonClasses,
+ href: url,
+ title: title,
+ style: buttonStyle,
+ value: text,
+ target: linkTarget,
+ rel: rel
})
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "a",
- className: buttonClasses,
- href: url,
- title: title,
- style: buttonStyle,
- value: text,
- target: linkTarget,
- rel: rel
- }));
+ });
},
migrate: migrate_font_family,
isEligible({
@@ -4190,7 +4148,7 @@ const deprecated_deprecated = [v11, v10, {
}
const borderRadius = style?.border?.radius;
const colorProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetColorClassesAndStyles)(attributes);
- const buttonClasses = classnames_default()('wp-block-button__link', colorProps.className, {
+ const buttonClasses = dist_clsx('wp-block-button__link', colorProps.className, {
'no-border-radius': style?.border?.radius === 0
});
const buttonStyle = {
@@ -4202,24 +4160,25 @@ const deprecated_deprecated = [v11, v10, {
// 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.
- const wrapperClasses = classnames_default()(className, {
+ const wrapperClasses = dist_clsx(className, {
[`has-custom-width wp-block-button__width-${width}`]: width,
[`has-custom-font-size`]: fontSize || style?.typography?.fontSize
});
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: wrapperClasses
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "a",
+ className: buttonClasses,
+ href: url,
+ title: title,
+ style: buttonStyle,
+ value: text,
+ target: linkTarget,
+ rel: rel
})
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "a",
- className: buttonClasses,
- href: url,
- title: title,
- style: buttonStyle,
- value: text,
- target: linkTarget,
- rel: rel
- }));
+ });
},
migrate: (0,external_wp_compose_namespaceObject.compose)(migrate_font_family, migrateBorderRadius)
}, {
@@ -4283,7 +4242,7 @@ const deprecated_deprecated = [v11, v10, {
width
} = attributes;
const colorProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetColorClassesAndStyles)(attributes);
- const buttonClasses = classnames_default()('wp-block-button__link', colorProps.className, {
+ const buttonClasses = dist_clsx('wp-block-button__link', colorProps.className, {
'no-border-radius': borderRadius === 0
});
const buttonStyle = {
@@ -4295,23 +4254,24 @@ const deprecated_deprecated = [v11, v10, {
// 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.
- const wrapperClasses = classnames_default()(className, {
+ const wrapperClasses = dist_clsx(className, {
[`has-custom-width wp-block-button__width-${width}`]: width
});
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: wrapperClasses
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "a",
+ className: buttonClasses,
+ href: url,
+ title: title,
+ style: buttonStyle,
+ value: text,
+ target: linkTarget,
+ rel: rel
})
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "a",
- className: buttonClasses,
- href: url,
- title: title,
- style: buttonStyle,
- value: text,
- target: linkTarget,
- rel: rel
- }));
+ });
},
migrate: (0,external_wp_compose_namespaceObject.compose)(migrate_font_family, migrateBorderRadius)
}, {
@@ -4375,7 +4335,7 @@ const deprecated_deprecated = [v11, v10, {
width
} = attributes;
const colorProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetColorClassesAndStyles)(attributes);
- const buttonClasses = classnames_default()('wp-block-button__link', colorProps.className, {
+ const buttonClasses = dist_clsx('wp-block-button__link', colorProps.className, {
'no-border-radius': borderRadius === 0
});
const buttonStyle = {
@@ -4387,23 +4347,24 @@ const deprecated_deprecated = [v11, v10, {
// 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.
- const wrapperClasses = classnames_default()(className, {
+ const wrapperClasses = dist_clsx(className, {
[`has-custom-width wp-block-button__width-${width}`]: width
});
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: wrapperClasses
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "a",
+ className: buttonClasses,
+ href: url,
+ title: title,
+ style: buttonStyle,
+ value: text,
+ target: linkTarget,
+ rel: rel
})
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "a",
- className: buttonClasses,
- href: url,
- title: title,
- style: buttonStyle,
- value: text,
- target: linkTarget,
- rel: rel
- }));
+ });
},
migrate: (0,external_wp_compose_namespaceObject.compose)(migrate_font_family, migrateBorderRadius)
}, {
@@ -4458,13 +4419,13 @@ const deprecated_deprecated = [v11, v10, {
title,
url
} = attributes;
- const buttonClasses = classnames_default()('wp-block-button__link', {
+ const buttonClasses = dist_clsx('wp-block-button__link', {
'no-border-radius': borderRadius === 0
});
const buttonStyle = {
borderRadius: borderRadius ? borderRadius + 'px' : undefined
};
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
tagName: "a",
className: buttonClasses,
href: url,
@@ -4542,7 +4503,7 @@ const deprecated_deprecated = [v11, v10, {
const textClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', textColor);
const backgroundClass = !customGradient && (0,external_wp_blockEditor_namespaceObject.getColorClassName)('background-color', backgroundColor);
const gradientClass = (0,external_wp_blockEditor_namespaceObject.__experimentalGetGradientClass)(gradient);
- const buttonClasses = classnames_default()('wp-block-button__link', {
+ const buttonClasses = dist_clsx('wp-block-button__link', {
'has-text-color': textColor || customTextColor,
[textClass]: textClass,
'has-background': backgroundColor || customBackgroundColor || customGradient || gradient,
@@ -4561,16 +4522,18 @@ const deprecated_deprecated = [v11, v10, {
// 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 (0,external_React_namespaceObject.createElement)("div", null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "a",
- className: buttonClasses,
- href: url,
- title: title,
- style: buttonStyle,
- value: text,
- target: linkTarget,
- rel: rel
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "a",
+ className: buttonClasses,
+ href: url,
+ title: title,
+ style: buttonStyle,
+ value: text,
+ target: linkTarget,
+ rel: rel
+ })
+ });
}
}, {
attributes: {
@@ -4637,7 +4600,7 @@ const deprecated_deprecated = [v11, v10, {
} = attributes;
const textClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', textColor);
const backgroundClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('background-color', backgroundColor);
- const buttonClasses = classnames_default()('wp-block-button__link', {
+ const buttonClasses = dist_clsx('wp-block-button__link', {
'has-text-color': textColor || customTextColor,
[textClass]: textClass,
'has-background': backgroundColor || customBackgroundColor,
@@ -4647,16 +4610,18 @@ const deprecated_deprecated = [v11, v10, {
backgroundColor: backgroundClass ? undefined : customBackgroundColor,
color: textClass ? undefined : customTextColor
};
- return (0,external_React_namespaceObject.createElement)("div", null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "a",
- className: buttonClasses,
- href: url,
- title: title,
- style: buttonStyle,
- value: text,
- target: linkTarget,
- rel: rel
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "a",
+ className: buttonClasses,
+ href: url,
+ title: title,
+ style: buttonStyle,
+ value: text,
+ target: linkTarget,
+ rel: rel
+ })
+ });
}
}, {
attributes: {
@@ -4693,7 +4658,7 @@ const deprecated_deprecated = [v11, v10, {
} = attributes;
const textClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', textColor);
const backgroundClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('background-color', backgroundColor);
- const buttonClasses = classnames_default()('wp-block-button__link', {
+ const buttonClasses = dist_clsx('wp-block-button__link', {
'has-text-color': textColor || customTextColor,
[textClass]: textClass,
'has-background': backgroundColor || customBackgroundColor,
@@ -4703,14 +4668,16 @@ const deprecated_deprecated = [v11, v10, {
backgroundColor: backgroundClass ? undefined : customBackgroundColor,
color: textClass ? undefined : customTextColor
};
- return (0,external_React_namespaceObject.createElement)("div", null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "a",
- className: buttonClasses,
- href: url,
- title: title,
- style: buttonStyle,
- value: text
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "a",
+ className: buttonClasses,
+ href: url,
+ title: title,
+ style: buttonStyle,
+ value: text
+ })
+ });
}
}, {
attributes: {
@@ -4742,16 +4709,17 @@ const deprecated_deprecated = [v11, v10, {
color: textColor
};
const linkClass = 'wp-block-button__link';
- return (0,external_React_namespaceObject.createElement)("div", {
- className: `align${align}`
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "a",
- className: linkClass,
- href: url,
- title: title,
- style: buttonStyle,
- value: text
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: `align${align}`,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "a",
+ className: linkClass,
+ href: url,
+ title: title,
+ style: buttonStyle,
+ value: text
+ })
+ });
},
migrate: oldColorsMigration
}, {
@@ -4779,20 +4747,21 @@ const deprecated_deprecated = [v11, v10, {
color,
textColor
} = attributes;
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: `align${align}`,
style: {
backgroundColor: color
- }
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "a",
- href: url,
- title: title,
- style: {
- color: textColor
},
- value: text
- }));
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "a",
+ href: url,
+ title: title,
+ style: {
+ color: textColor
+ },
+ value: text
+ })
+ });
},
migrate: oldColorsMigration
}];
@@ -4868,35 +4837,36 @@ function removeAnchorTag(value) {
;// CONCATENATED MODULE: external ["wp","keycodes"]
const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js
-
/**
* WordPress dependencies
*/
-const link_link = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const link_link = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"
+ })
+});
/* harmony default export */ const library_link = (link_link);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/link-off.js
-
/**
* WordPress dependencies
*/
-const linkOff = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const linkOff = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"
+ })
+});
/* harmony default export */ const link_off = (linkOff);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/edit.js
-
/**
* External dependencies
*/
@@ -4922,6 +4892,9 @@ const linkOff = (0,external_React_namespaceObject.createElement)(external_wp_pri
+
+
+
const LINK_SETTINGS = [...external_wp_blockEditor_namespaceObject.__experimentalLinkControl.DEFAULT_LINK_SETTINGS, {
id: 'nofollow',
title: (0,external_wp_i18n_namespaceObject.__)('Mark as nofollow')
@@ -4987,18 +4960,20 @@ function WidthPanel({
width
});
}
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Width settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ButtonGroup, {
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Button width')
- }, [25, 50, 75, 100].map(widthValue => {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- key: widthValue,
- size: "small",
- variant: widthValue === selectedWidth ? 'primary' : undefined,
- onClick: () => handleChange(widthValue)
- }, widthValue, "%");
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ButtonGroup, {
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Button width'),
+ children: [25, 50, 75, 100].map(widthValue => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Button, {
+ size: "small",
+ variant: widthValue === selectedWidth ? 'primary' : undefined,
+ onClick: () => handleChange(widthValue),
+ children: [widthValue, "%"]
+ }, widthValue);
+ })
+ })
+ });
}
function ButtonEdit(props) {
const {
@@ -5008,7 +4983,8 @@ function ButtonEdit(props) {
isSelected,
onReplace,
mergeBlocks,
- clientId
+ clientId,
+ context
} = props;
const {
tagName,
@@ -5089,111 +5065,118 @@ function ButtonEdit(props) {
}
const blockBindingsSource = unlock(select(external_wp_blocks_namespaceObject.store)).getBlockBindingsSource(metadata?.bindings?.url?.source);
return {
- lockUrlControls: !!metadata?.bindings?.url && (!blockBindingsSource || blockBindingsSource?.lockAttributesEditing)
+ lockUrlControls: !!metadata?.bindings?.url && !blockBindingsSource?.canUserEditValue({
+ select,
+ context,
+ args: metadata?.bindings?.url?.args
+ })
};
- }, [isSelected]);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps,
- className: classnames_default()(blockProps.className, {
- [`has-custom-width wp-block-button__width-${width}`]: width,
- [`has-custom-font-size`]: blockProps.style.fontSize
- })
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- ref: mergedRef,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Button text'),
- placeholder: placeholder || (0,external_wp_i18n_namespaceObject.__)('Add text…'),
- value: text,
- onChange: value => setAttributes({
- text: removeAnchorTag(value)
- }),
- withoutInteractiveFormatting: true,
- className: classnames_default()(className, 'wp-block-button__link', colorProps.className, borderProps.className, {
- [`has-text-align-${textAlign}`]: textAlign,
- // For backwards compatibility add style that isn't
- // provided via block support.
- 'no-border-radius': style?.border?.radius === 0
- }, (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('button')),
- style: {
- ...borderProps.style,
- ...colorProps.style,
- ...spacingProps.style,
- ...shadowProps.style
- },
- onSplit: value => (0,external_wp_blocks_namespaceObject.createBlock)('core/button', {
- ...attributes,
- text: value
- }),
- onReplace: onReplace,
- onMerge: mergeBlocks,
- identifier: "text"
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, blockEditingMode === 'default' && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- }), !isURLSet && isLinkTag && !lockUrlControls && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- name: "link",
- icon: library_link,
- title: (0,external_wp_i18n_namespaceObject.__)('Link'),
- shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('k'),
- onClick: startEditing
- }), isURLSet && isLinkTag && !lockUrlControls && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- name: "link",
- icon: link_off,
- title: (0,external_wp_i18n_namespaceObject.__)('Unlink'),
- shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primaryShift('k'),
- onClick: unlink,
- isActive: true
- })), isLinkTag && isSelected && (isEditingURL || isURLSet) && !lockUrlControls && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Popover, {
- placement: "bottom",
- onClose: () => {
- setIsEditingURL(false);
- richTextRef.current?.focus();
- },
- anchor: popoverAnchor,
- focusOnMount: isEditingURL ? 'firstElement' : false,
- __unstableSlotName: '__unstable-block-tools-after',
- shift: true
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalLinkControl, {
- value: linkValue,
- onChange: ({
- url: newURL,
- opensInNewTab: newOpensInNewTab,
- nofollow: newNofollow
- }) => setAttributes(getUpdatedLinkAttributes({
- rel,
- url: newURL,
- opensInNewTab: newOpensInNewTab,
- nofollow: newNofollow
- })),
- onRemove: () => {
- unlink();
- richTextRef.current?.focus();
- },
- forceIsEditingLink: isEditingURL,
- settings: LINK_SETTINGS
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(WidthPanel, {
- selectedWidth: width,
- setAttributes: setAttributes
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "advanced"
- }, isLinkTag && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Link rel'),
- value: rel || '',
- onChange: newRel => setAttributes({
- rel: newRel
- })
- })));
+ }, [isSelected, metadata?.bindings?.url]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ className: dist_clsx(blockProps.className, {
+ [`has-custom-width wp-block-button__width-${width}`]: width,
+ [`has-custom-font-size`]: blockProps.style.fontSize
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ ref: mergedRef,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Button text'),
+ placeholder: placeholder || (0,external_wp_i18n_namespaceObject.__)('Add text…'),
+ value: text,
+ onChange: value => setAttributes({
+ text: removeAnchorTag(value)
+ }),
+ withoutInteractiveFormatting: true,
+ className: dist_clsx(className, 'wp-block-button__link', colorProps.className, borderProps.className, {
+ [`has-text-align-${textAlign}`]: textAlign,
+ // For backwards compatibility add style that isn't
+ // provided via block support.
+ 'no-border-radius': style?.border?.radius === 0
+ }, (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('button')),
+ style: {
+ ...borderProps.style,
+ ...colorProps.style,
+ ...spacingProps.style,
+ ...shadowProps.style
+ },
+ onReplace: onReplace,
+ onMerge: mergeBlocks,
+ identifier: "text"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: [blockEditingMode === 'default' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ }), !isURLSet && isLinkTag && !lockUrlControls && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ name: "link",
+ icon: library_link,
+ title: (0,external_wp_i18n_namespaceObject.__)('Link'),
+ shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('k'),
+ onClick: startEditing
+ }), isURLSet && isLinkTag && !lockUrlControls && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ name: "link",
+ icon: link_off,
+ title: (0,external_wp_i18n_namespaceObject.__)('Unlink'),
+ shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primaryShift('k'),
+ onClick: unlink,
+ isActive: true
+ })]
+ }), isLinkTag && isSelected && (isEditingURL || isURLSet) && !lockUrlControls && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover, {
+ placement: "bottom",
+ onClose: () => {
+ setIsEditingURL(false);
+ richTextRef.current?.focus();
+ },
+ anchor: popoverAnchor,
+ focusOnMount: isEditingURL ? 'firstElement' : false,
+ __unstableSlotName: "__unstable-block-tools-after",
+ shift: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalLinkControl, {
+ value: linkValue,
+ onChange: ({
+ url: newURL,
+ opensInNewTab: newOpensInNewTab,
+ nofollow: newNofollow
+ }) => setAttributes(getUpdatedLinkAttributes({
+ rel,
+ url: newURL,
+ opensInNewTab: newOpensInNewTab,
+ nofollow: newNofollow
+ })),
+ onRemove: () => {
+ unlink();
+ richTextRef.current?.focus();
+ },
+ forceIsEditingLink: isEditingURL,
+ settings: LINK_SETTINGS
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WidthPanel, {
+ selectedWidth: width,
+ setAttributes: setAttributes
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "advanced",
+ children: isLinkTag && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Link rel'),
+ value: rel || '',
+ onChange: newRel => setAttributes({
+ rel: newRel
+ })
+ })
+ })]
+ });
}
/* harmony default export */ const button_edit = (ButtonEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/save.js
-
/**
* External dependencies
*/
@@ -5203,6 +5186,7 @@ function ButtonEdit(props) {
* WordPress dependencies
*/
+
function save_save({
attributes,
className
@@ -5220,9 +5204,6 @@ function save_save({
url,
width
} = attributes;
- if (external_wp_blockEditor_namespaceObject.RichText.isEmpty(text)) {
- return null;
- }
const TagName = tagName || 'a';
const isButtonTag = 'button' === TagName;
const buttonType = type || 'button';
@@ -5230,7 +5211,7 @@ function save_save({
const colorProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetColorClassesAndStyles)(attributes);
const spacingProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetSpacingClassesAndStyles)(attributes);
const shadowProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetShadowClassesAndStyles)(attributes);
- const buttonClasses = classnames_default()('wp-block-button__link', colorProps.className, borderProps.className, {
+ const buttonClasses = dist_clsx('wp-block-button__link', colorProps.className, borderProps.className, {
[`has-text-align-${textAlign}`]: textAlign,
// For backwards compatibility add style that isn't provided via
// block support.
@@ -5247,25 +5228,26 @@ function save_save({
// 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.
- const wrapperClasses = classnames_default()(className, {
+ const wrapperClasses = dist_clsx(className, {
[`has-custom-width wp-block-button__width-${width}`]: width,
[`has-custom-font-size`]: fontSize || style?.typography?.fontSize
});
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: wrapperClasses
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: TagName,
+ type: isButtonTag ? buttonType : null,
+ className: buttonClasses,
+ href: isButtonTag ? null : url,
+ title: title,
+ style: buttonStyle,
+ value: text,
+ target: isButtonTag ? null : linkTarget,
+ rel: isButtonTag ? null : rel
})
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: TagName,
- type: isButtonTag ? buttonType : null,
- className: buttonClasses,
- href: isButtonTag ? null : url,
- title: title,
- style: buttonStyle,
- value: text,
- target: isButtonTag ? null : linkTarget,
- rel: isButtonTag ? null : rel
- }));
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/index.js
@@ -5356,6 +5338,7 @@ const button_metadata = {
},
supports: {
anchor: true,
+ splitting: true,
align: false,
alignWide: false,
color: {
@@ -5449,21 +5432,21 @@ const button_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/buttons.js
-
/**
* WordPress dependencies
*/
-const buttons = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const buttons = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"
+ })
+});
/* harmony default export */ const library_buttons = (buttons);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/buttons/deprecated.js
-
/**
* External dependencies
*/
@@ -5476,6 +5459,7 @@ const buttons = (0,external_React_namespaceObject.createElement)(external_wp_pri
/**
* @param {Object} attributes Block's attributes.
*/
+
const migrateWithLayout = attributes => {
if (!!attributes.layout) {
return attributes;
@@ -5533,14 +5517,15 @@ const buttons_deprecated_deprecated = [{
orientation
}
}) {
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
- className: classnames_default()({
+ className: dist_clsx({
[`is-content-justification-${contentJustification}`]: contentJustification,
'is-vertical': orientation === 'vertical'
})
- })
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null));
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ });
}
}, {
supports: {
@@ -5548,7 +5533,9 @@ const buttons_deprecated_deprecated = [{
anchor: true
},
save() {
- return (0,external_React_namespaceObject.createElement)("div", null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ });
},
isEligible({
align
@@ -5691,7 +5678,6 @@ const transforms_transforms = {
/* harmony default export */ const buttons_transforms = (transforms_transforms);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/buttons/edit.js
-
/**
* External dependencies
*/
@@ -5703,6 +5689,7 @@ const transforms_transforms = {
+
const DEFAULT_BLOCK = {
name: 'core/button',
attributesToCopy: ['backgroundColor', 'border', 'className', 'fontFamily', 'fontSize', 'gradient', 'style', 'textColor', 'width']
@@ -5718,18 +5705,15 @@ function ButtonsEdit({
style
} = attributes;
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()(className, {
+ className: dist_clsx(className, {
'has-custom-font-size': fontSize || style?.typography?.fontSize
})
});
const {
- preferredStyle,
hasButtonVariations
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const preferredStyleVariations = select(external_wp_blockEditor_namespaceObject.store).getSettings().__experimentalPreferredStyleVariations;
const buttonVariations = select(external_wp_blocks_namespaceObject.store).getBlockVariations('core/button', 'inserter');
return {
- preferredStyle: preferredStyleVariations?.value?.['core/button'],
hasButtonVariations: buttonVariations.length > 0
};
}, []);
@@ -5737,20 +5721,17 @@ function ButtonsEdit({
defaultBlock: DEFAULT_BLOCK,
// This check should be handled by the `Inserter` internally to be consistent across all blocks that use it.
directInsert: !hasButtonVariations,
- template: [['core/button', {
- className: preferredStyle && `is-style-${preferredStyle}`
- }]],
+ template: [['core/button']],
templateInsertUpdatesSelection: true,
orientation: (_layout$orientation = layout?.orientation) !== null && _layout$orientation !== void 0 ? _layout$orientation : 'horizontal'
});
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...innerBlocksProps
});
}
/* harmony default export */ const buttons_edit = (ButtonsEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/buttons/save.js
-
/**
* External dependencies
*/
@@ -5760,6 +5741,7 @@ function ButtonsEdit({
* WordPress dependencies
*/
+
function buttons_save_save({
attributes,
className
@@ -5769,12 +5751,12 @@ function buttons_save_save({
style
} = attributes;
const blockProps = external_wp_blockEditor_namespaceObject.useBlockProps.save({
- className: classnames_default()(className, {
+ className: dist_clsx(className, {
'has-custom-font-size': fontSize || style?.typography?.fontSize
})
});
const innerBlocksProps = external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save(blockProps);
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...innerBlocksProps
});
}
@@ -5874,21 +5856,21 @@ const buttons_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/calendar.js
-
/**
* WordPress dependencies
*/
-const calendar = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const calendar = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"
+ })
+});
/* harmony default export */ const library_calendar = (calendar);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/edit.js
-
/**
* External dependencies
*/
@@ -5913,6 +5895,7 @@ const calendar = (0,external_React_namespaceObject.createElement)(external_wp_pr
* @param {string} date Date in `ISO8601/RFC3339` format.
* @return {Object} Year and date of the specified date.
*/
+
const getYearMonth = memize(date => {
if (!date) {
return {};
@@ -5964,22 +5947,27 @@ function CalendarEdit({
};
}, []);
if (!hasPosts) {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- icon: library_calendar,
- label: (0,external_wp_i18n_namespaceObject.__)('Calendar')
- }, !hasPostsResolved ? (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null) : (0,external_wp_i18n_namespaceObject.__)('No published posts found.')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ icon: library_calendar,
+ label: (0,external_wp_i18n_namespaceObject.__)('Calendar'),
+ children: !hasPostsResolved ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}) : (0,external_wp_i18n_namespaceObject.__)('No published posts found.')
+ })
+ });
}
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Disabled, null, (0,external_React_namespaceObject.createElement)((external_wp_serverSideRender_default()), {
- block: "core/calendar",
- attributes: {
- ...attributes,
- ...getYearMonth(date)
- }
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Disabled, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)((external_wp_serverSideRender_default()), {
+ block: "core/calendar",
+ attributes: {
+ ...attributes,
+ ...getYearMonth(date)
+ }
+ })
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/transforms.js
@@ -6076,39 +6064,40 @@ const calendar_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/category.js
-
/**
* WordPress dependencies
*/
-const category = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const category = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",
- fillRule: "evenodd",
- clipRule: "evenodd"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",
+ fillRule: "evenodd",
+ clipRule: "evenodd"
+ })
+});
/* harmony default export */ const library_category = (category);
;// CONCATENATED MODULE: external ["wp","htmlEntities"]
const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pin.js
-
/**
* WordPress dependencies
*/
-const pin = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const pin = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"
+ })
+});
/* harmony default export */ const library_pin = (pin);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/categories/edit.js
-
/**
* External dependencies
*/
@@ -6124,6 +6113,9 @@ const pin = (0,external_React_namespaceObject.createElement)(external_wp_primiti
+
+
+
function CategoriesEdit({
attributes: {
displayAsDropdown,
@@ -6176,26 +6168,34 @@ function CategoriesEdit({
count,
name
} = category;
- return (0,external_React_namespaceObject.createElement)("li", {
- key: id,
- className: `cat-item cat-item-${id}`
- }, (0,external_React_namespaceObject.createElement)("a", {
- href: link,
- target: "_blank",
- rel: "noreferrer noopener"
- }, renderCategoryName(name)), showPostCounts && ` (${count})`, showHierarchy && !!childCategories.length && (0,external_React_namespaceObject.createElement)("ul", {
- className: "children"
- }, childCategories.map(childCategory => renderCategoryListItem(childCategory))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ className: `cat-item cat-item-${id}`,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: link,
+ target: "_blank",
+ rel: "noreferrer noopener",
+ children: renderCategoryName(name)
+ }), showPostCounts && ` (${count})`, showHierarchy && !!childCategories.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ className: "children",
+ children: childCategories.map(childCategory => renderCategoryListItem(childCategory))
+ })]
+ }, id);
};
const renderCategoryDropdown = () => {
const parentId = showHierarchy ? 0 : null;
const categoriesList = getCategoriesList(parentId);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "label",
- htmlFor: selectId
- }, (0,external_wp_i18n_namespaceObject.__)('Categories')), (0,external_React_namespaceObject.createElement)("select", {
- id: selectId
- }, (0,external_React_namespaceObject.createElement)("option", null, (0,external_wp_i18n_namespaceObject.__)('Select Category')), categoriesList.map(category => renderCategoryDropdownItem(category, 0))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ as: "label",
+ htmlFor: selectId,
+ children: (0,external_wp_i18n_namespaceObject.__)('Categories')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("select", {
+ id: selectId,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("option", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Select Category')
+ }), categoriesList.map(category => renderCategoryDropdownItem(category, 0))]
+ })]
+ });
};
const renderCategoryDropdownItem = (category, level) => {
const {
@@ -6204,54 +6204,61 @@ function CategoriesEdit({
name
} = category;
const childCategories = getCategoriesList(id);
- return [(0,external_React_namespaceObject.createElement)("option", {
- key: id,
- className: `level-${level}`
- }, Array.from({
- length: level * 3
- }).map(() => '\xa0'), renderCategoryName(name), showPostCounts && ` (${count})`), showHierarchy && !!childCategories.length && childCategories.map(childCategory => renderCategoryDropdownItem(childCategory, level + 1))];
+ return [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("option", {
+ className: `level-${level}`,
+ children: [Array.from({
+ length: level * 3
+ }).map(() => '\xa0'), renderCategoryName(name), showPostCounts && ` (${count})`]
+ }, id), showHierarchy && !!childCategories.length && childCategories.map(childCategory => renderCategoryDropdownItem(childCategory, level + 1))];
};
const TagName = !!categories?.length && !displayAsDropdown && !isResolving ? 'ul' : 'div';
- const classes = classnames_default()(className, {
+ const classes = dist_clsx(className, {
'wp-block-categories-list': !!categories?.length && !displayAsDropdown && !isResolving,
'wp-block-categories-dropdown': !!categories?.length && displayAsDropdown && !isResolving
});
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
className: classes
});
- return (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Display as dropdown'),
- checked: displayAsDropdown,
- onChange: toggleAttribute('displayAsDropdown')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Show post counts'),
- checked: showPostCounts,
- onChange: toggleAttribute('showPostCounts')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Show only top level categories'),
- checked: showOnlyTopLevel,
- onChange: toggleAttribute('showOnlyTopLevel')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Show empty categories'),
- checked: showEmpty,
- onChange: toggleAttribute('showEmpty')
- }), !showOnlyTopLevel && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Show hierarchy'),
- checked: showHierarchy,
- onChange: toggleAttribute('showHierarchy')
- }))), isResolving && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- icon: library_pin,
- label: (0,external_wp_i18n_namespaceObject.__)('Categories')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null)), !isResolving && categories?.length === 0 && (0,external_React_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Your site does not have any posts, so there is nothing to display here at the moment.')), !isResolving && categories?.length > 0 && (displayAsDropdown ? renderCategoryDropdown() : renderCategoryList()));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(TagName, {
+ ...blockProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Display as dropdown'),
+ checked: displayAsDropdown,
+ onChange: toggleAttribute('displayAsDropdown')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show post counts'),
+ checked: showPostCounts,
+ onChange: toggleAttribute('showPostCounts')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show only top level categories'),
+ checked: showOnlyTopLevel,
+ onChange: toggleAttribute('showOnlyTopLevel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show empty categories'),
+ checked: showEmpty,
+ onChange: toggleAttribute('showEmpty')
+ }), !showOnlyTopLevel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show hierarchy'),
+ checked: showHierarchy,
+ onChange: toggleAttribute('showHierarchy')
+ })]
+ })
+ }), isResolving && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ icon: library_pin,
+ label: (0,external_wp_i18n_namespaceObject.__)('Categories'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
+ }), !isResolving && categories?.length === 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Your site does not have any posts, so there is nothing to display here at the moment.')
+ }), !isResolving && categories?.length > 0 && (displayAsDropdown ? renderCategoryDropdown() : renderCategoryList())]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/categories/index.js
@@ -6342,21 +6349,21 @@ const categories_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/classic.js
-
/**
* WordPress dependencies
*/
-const classic = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const classic = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
/* harmony default export */ const library_classic = (classic);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/freeform/convert-to-blocks-button.js
-
/**
* WordPress dependencies
*/
@@ -6365,6 +6372,7 @@ const classic = (0,external_React_namespaceObject.createElement)(external_wp_pri
+
const ConvertToBlocksButton = ({
clientId
}) => {
@@ -6374,30 +6382,31 @@ const ConvertToBlocksButton = ({
const block = (0,external_wp_data_namespaceObject.useSelect)(select => {
return select(external_wp_blockEditor_namespaceObject.store).getBlock(clientId);
}, [clientId]);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
onClick: () => replaceBlocks(block.clientId, (0,external_wp_blocks_namespaceObject.rawHandler)({
HTML: (0,external_wp_blocks_namespaceObject.serialize)(block)
- }))
- }, (0,external_wp_i18n_namespaceObject.__)('Convert to blocks'));
+ })),
+ children: (0,external_wp_i18n_namespaceObject.__)('Convert to blocks')
+ });
};
/* harmony default export */ const convert_to_blocks_button = (ConvertToBlocksButton);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/fullscreen.js
-
/**
* WordPress dependencies
*/
-const fullscreen = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const fullscreen = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"
+ })
+});
/* harmony default export */ const library_fullscreen = (fullscreen);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/freeform/modal.js
-
/**
* WordPress dependencies
*/
@@ -6408,6 +6417,9 @@ const fullscreen = (0,external_React_namespaceObject.createElement)(external_wp_
+
+
+
function ModalAuxiliaryActions({
onClick,
isModalFullScreen
@@ -6417,7 +6429,7 @@ function ModalAuxiliaryActions({
if (isMobileViewport) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
onClick: onClick,
icon: library_fullscreen,
isPressed: isModalFullScreen,
@@ -6457,7 +6469,7 @@ function ClassicEdit(props) {
window.wp.oldEditor.remove(props.id);
};
}, []);
- return (0,external_React_namespaceObject.createElement)("textarea", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("textarea", {
...props
});
}
@@ -6474,42 +6486,58 @@ function ModalEdit(props) {
const [isModalFullScreen, setIsModalFullScreen] = (0,external_wp_element_namespaceObject.useState)(false);
const id = `editor-${clientId}`;
const onClose = () => content ? setOpen(false) : onReplace([]);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- onClick: () => setOpen(true)
- }, (0,external_wp_i18n_namespaceObject.__)('Edit')))), content && (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, content), (isOpen || !content) && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
- title: (0,external_wp_i18n_namespaceObject.__)('Classic Editor'),
- onRequestClose: onClose,
- shouldCloseOnClickOutside: false,
- overlayClassName: "block-editor-freeform-modal",
- isFullScreen: isModalFullScreen,
- className: "block-editor-freeform-modal__content",
- headerActions: (0,external_React_namespaceObject.createElement)(ModalAuxiliaryActions, {
- onClick: () => setIsModalFullScreen(!isModalFullScreen),
- isModalFullScreen: isModalFullScreen
- })
- }, (0,external_React_namespaceObject.createElement)(ClassicEdit, {
- id: id,
- defaultValue: content
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Flex, {
- className: "block-editor-freeform-modal__actions",
- justify: "flex-end",
- expanded: false
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: onClose
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel'))), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: () => {
- setAttributes({
- content: window.wp.oldEditor.getContent(id)
- });
- setOpen(false);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Save'))))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ onClick: () => setOpen(true),
+ children: (0,external_wp_i18n_namespaceObject.__)('Edit')
+ })
+ })
+ }), content && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
+ children: content
+ }), (isOpen || !content) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Modal, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Classic Editor'),
+ onRequestClose: onClose,
+ shouldCloseOnClickOutside: false,
+ overlayClassName: "block-editor-freeform-modal",
+ isFullScreen: isModalFullScreen,
+ className: "block-editor-freeform-modal__content",
+ headerActions: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ModalAuxiliaryActions, {
+ onClick: () => setIsModalFullScreen(!isModalFullScreen),
+ isModalFullScreen: isModalFullScreen
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ClassicEdit, {
+ id: id,
+ defaultValue: content
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ className: "block-editor-freeform-modal__actions",
+ justify: "flex-end",
+ expanded: false,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: onClose,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ onClick: () => {
+ setAttributes({
+ content: window.wp.oldEditor.getContent(id)
+ });
+ setOpen(false);
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Save')
+ })
+ })]
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/freeform/edit.js
-
/**
* WordPress dependencies
*/
@@ -6526,6 +6554,9 @@ function ModalEdit(props) {
*/
+
+
+
const {
wp
} = window;
@@ -6553,17 +6584,24 @@ function FreeformEdit(props) {
const ref = (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
setIsIframed(element.ownerDocument !== document);
}, []);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, canRemove && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_namespaceObject.createElement)(convert_to_blocks_button, {
- clientId: clientId
- }))), (0,external_React_namespaceObject.createElement)("div", {
- ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- ref
- })
- }, isIframed ? (0,external_React_namespaceObject.createElement)(ModalEdit, {
- ...props
- }) : (0,external_React_namespaceObject.createElement)(edit_ClassicEdit, {
- ...props
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [canRemove && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(convert_to_blocks_button, {
+ clientId: clientId
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)({
+ ref
+ }),
+ children: isIframed ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ModalEdit, {
+ ...props
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(edit_ClassicEdit, {
+ ...props
+ })
+ })]
+ });
}
function edit_ClassicEdit({
clientId,
@@ -6582,11 +6620,14 @@ function edit_ClassicEdit({
return;
}
const editor = window.tinymce.get(`editor-${clientId}`);
- const currentContent = editor?.getContent();
+ if (!editor) {
+ return;
+ }
+ const currentContent = editor.getContent();
if (currentContent !== content) {
editor.setContent(content || '');
}
- }, [content]);
+ }, [clientId, content]);
(0,external_wp_element_namespaceObject.useEffect)(() => {
const {
baseURL,
@@ -6704,6 +6745,7 @@ function edit_ClassicEdit({
return () => {
document.removeEventListener('readystatechange', onReadyStateChange);
wp.oldEditor.remove(`editor-${clientId}`);
+ didMount.current = false;
};
}, []);
function focus() {
@@ -6726,34 +6768,36 @@ function edit_ClassicEdit({
// from the KeyboardShortcuts component to stop their propagation.
/* eslint-disable jsx-a11y/no-static-element-interactions */
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("div", {
- key: "toolbar",
- id: `toolbar-${clientId}`,
- className: "block-library-classic__toolbar",
- onClick: focus,
- "data-placeholder": (0,external_wp_i18n_namespaceObject.__)('Classic'),
- onKeyDown: onToolbarKeyDown
- }), (0,external_React_namespaceObject.createElement)("div", {
- key: "editor",
- id: `editor-${clientId}`,
- className: "wp-block-freeform block-library-rich-text__tinymce"
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ id: `toolbar-${clientId}`,
+ className: "block-library-classic__toolbar",
+ onClick: focus,
+ "data-placeholder": (0,external_wp_i18n_namespaceObject.__)('Classic'),
+ onKeyDown: onToolbarKeyDown
+ }, "toolbar"), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ id: `editor-${clientId}`,
+ className: "wp-block-freeform block-library-rich-text__tinymce"
+ }, "editor")]
+ });
/* eslint-enable jsx-a11y/no-static-element-interactions */
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/freeform/save.js
-
/**
* WordPress dependencies
*/
+
function freeform_save_save({
attributes
}) {
const {
content
} = attributes;
- return (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, content);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
+ children: content
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/freeform/index.js
@@ -6805,27 +6849,28 @@ const freeform_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/code.js
-
/**
* WordPress dependencies
*/
-const code = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const code = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"
+ })
+});
/* harmony default export */ const library_code = (code);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/edit.js
-
/**
* WordPress dependencies
*/
+
function CodeEdit({
attributes,
setAttributes,
@@ -6834,23 +6879,24 @@ function CodeEdit({
mergeBlocks
}) {
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)();
- return (0,external_React_namespaceObject.createElement)("pre", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- tagName: "code",
- identifier: "content",
- value: attributes.content,
- onChange: content => setAttributes({
- content
- }),
- onRemove: onRemove,
- onMerge: mergeBlocks,
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Write code…'),
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Code'),
- preserveWhiteSpace: true,
- __unstablePastePlainText: true,
- __unstableOnSplitAtDoubleLineEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)()))
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("pre", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ tagName: "code",
+ identifier: "content",
+ value: attributes.content,
+ onChange: content => setAttributes({
+ content
+ }),
+ onRemove: onRemove,
+ onMerge: mergeBlocks,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Write code…'),
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Code'),
+ preserveWhiteSpace: true,
+ __unstablePastePlainText: true,
+ __unstableOnSplitAtDoubleLineEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)()))
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/utils.js
@@ -6905,7 +6951,6 @@ function escapeProtocolInIsolatedUrls(content) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/save.js
-
/**
* WordPress dependencies
*/
@@ -6915,21 +6960,23 @@ function escapeProtocolInIsolatedUrls(content) {
* Internal dependencies
*/
+
function code_save_save({
attributes
}) {
- return (0,external_React_namespaceObject.createElement)("pre", {
- ...external_wp_blockEditor_namespaceObject.useBlockProps.save()
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "code"
- // To do: `escape` encodes characters in shortcodes and URLs to
- // prevent embedding in PHP. Ideally checks for the code block,
- // or pre/code tags, should be made on the PHP side?
- ,
- value: utils_escape(typeof attributes.content === 'string' ? attributes.content : attributes.content.toHTMLString({
- preserveWhiteSpace: true
- }))
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("pre", {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save(),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "code"
+ // To do: `escape` encodes characters in shortcodes and URLs to
+ // prevent embedding in PHP. Ideally checks for the code block,
+ // or pre/code tags, should be made on the PHP side?
+ ,
+ value: utils_escape(typeof attributes.content === 'string' ? attributes.content : attributes.content.toHTMLString({
+ preserveWhiteSpace: true
+ }))
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/transforms.js
@@ -7114,21 +7161,21 @@ const code_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/column.js
-
/**
* WordPress dependencies
*/
-const column = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const column = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
/* harmony default export */ const library_column = (column);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/column/deprecated.js
-
/**
* External dependencies
*/
@@ -7138,6 +7185,7 @@ const column = (0,external_React_namespaceObject.createElement)(external_wp_prim
* WordPress dependencies
*/
+
const column_deprecated_deprecated = [{
attributes: {
verticalAlignment: {
@@ -7167,22 +7215,22 @@ const column_deprecated_deprecated = [{
verticalAlignment,
width
} = attributes;
- const wrapperClasses = classnames_default()({
+ const wrapperClasses = dist_clsx({
[`is-vertically-aligned-${verticalAlignment}`]: verticalAlignment
});
const style = {
flexBasis: width + '%'
};
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: wrapperClasses,
- style: style
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null));
+ style: style,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ });
}
}];
/* harmony default export */ const column_deprecated = (column_deprecated_deprecated);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/column/edit.js
-
/**
* External dependencies
*/
@@ -7195,6 +7243,34 @@ const column_deprecated_deprecated = [{
+
+
+
+function ColumnInspectorControls({
+ width,
+ setAttributes
+}) {
+ const [availableUnits] = (0,external_wp_blockEditor_namespaceObject.useSettings)('spacing.units');
+ const units = (0,external_wp_components_namespaceObject.__experimentalUseCustomUnits)({
+ availableUnits: availableUnits || ['%', 'px', 'em', 'rem', 'vw']
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Width'),
+ labelPosition: "edge",
+ __unstableInputWidth: "80px",
+ value: width || '',
+ onChange: nextWidth => {
+ nextWidth = 0 > parseFloat(nextWidth) ? '0' : nextWidth;
+ setAttributes({
+ width: nextWidth
+ });
+ },
+ units: units
+ })
+ });
+}
function ColumnEdit({
attributes: {
verticalAlignment,
@@ -7205,13 +7281,9 @@ function ColumnEdit({
setAttributes,
clientId
}) {
- const classes = classnames_default()('block-core-columns', {
+ const classes = dist_clsx('block-core-columns', {
[`is-vertically-aligned-${verticalAlignment}`]: verticalAlignment
});
- const [availableUnits] = (0,external_wp_blockEditor_namespaceObject.useSettings)('spacing.units');
- const units = (0,external_wp_components_namespaceObject.__experimentalUseCustomUnits)({
- availableUnits: availableUnits || ['%', 'px', 'em', 'rem', 'vw']
- });
const {
columnsIds,
hasChildBlocks,
@@ -7260,32 +7332,26 @@ function ColumnEdit({
allowedBlocks,
renderAppender: hasChildBlocks ? undefined : external_wp_blockEditor_namespaceObject.InnerBlocks.ButtonBlockAppender
});
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockVerticalAlignmentToolbar, {
- onChange: updateAlignment,
- value: verticalAlignment,
- controls: ['top', 'center', 'bottom', 'stretch']
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Width'),
- labelPosition: "edge",
- __unstableInputWidth: "80px",
- value: width || '',
- onChange: nextWidth => {
- nextWidth = 0 > parseFloat(nextWidth) ? '0' : nextWidth;
- setAttributes({
- width: nextWidth
- });
- },
- units: units
- }))), (0,external_React_namespaceObject.createElement)("div", {
- ...innerBlocksProps
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockVerticalAlignmentToolbar, {
+ onChange: updateAlignment,
+ value: verticalAlignment,
+ controls: ['top', 'center', 'bottom', 'stretch']
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColumnInspectorControls, {
+ width: width,
+ setAttributes: setAttributes
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...innerBlocksProps
+ })]
+ });
}
/* harmony default export */ const column_edit = (ColumnEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/column/save.js
-
/**
* External dependencies
*/
@@ -7295,6 +7361,7 @@ function ColumnEdit({
* WordPress dependencies
*/
+
function column_save_save({
attributes
}) {
@@ -7302,7 +7369,7 @@ function column_save_save({
verticalAlignment,
width
} = attributes;
- const wrapperClasses = classnames_default()({
+ const wrapperClasses = dist_clsx({
[`is-vertically-aligned-${verticalAlignment}`]: verticalAlignment
});
let style;
@@ -7324,7 +7391,7 @@ function column_save_save({
style
});
const innerBlocksProps = external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save(blockProps);
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...innerBlocksProps
});
}
@@ -7436,23 +7503,23 @@ const column_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/columns.js
-
/**
* WordPress dependencies
*/
-const columns = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const columns = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"
+ })
+});
/* harmony default export */ const library_columns = (columns);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/deprecated.js
-
/**
* External dependencies
*/
@@ -7473,6 +7540,7 @@ const columns = (0,external_React_namespaceObject.createElement)(external_wp_pri
*
* @return {number | undefined} Column to which inner block is to be assigned.
*/
+
function getDeprecatedLayoutColumn(originalContent) {
let {
doc
@@ -7544,7 +7612,7 @@ const migrateCustomColors = attributes => {
} = attributes;
const backgroundClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('background-color', backgroundColor);
const textClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', textColor);
- const className = classnames_default()({
+ const className = dist_clsx({
'has-background': backgroundColor || customBackgroundColor,
'has-text-color': textColor || customTextColor,
[backgroundClass]: backgroundClass,
@@ -7555,10 +7623,11 @@ const migrateCustomColors = attributes => {
backgroundColor: backgroundClass ? undefined : customBackgroundColor,
color: textClass ? undefined : customTextColor
};
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: className ? className : undefined,
- style: style
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null));
+ style: style,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ });
}
}, {
attributes: {
@@ -7612,9 +7681,10 @@ const migrateCustomColors = attributes => {
const {
columns
} = attributes;
- return (0,external_React_namespaceObject.createElement)("div", {
- className: `has-${columns}-columns`
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: `has-${columns}-columns`,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ });
}
}, {
attributes: {
@@ -7641,12 +7711,13 @@ const migrateCustomColors = attributes => {
verticalAlignment,
columns
} = attributes;
- const wrapperClasses = classnames_default()(`has-${columns}-columns`, {
+ const wrapperClasses = dist_clsx(`has-${columns}-columns`, {
[`are-vertically-aligned-${verticalAlignment}`]: verticalAlignment
});
- return (0,external_React_namespaceObject.createElement)("div", {
- className: wrapperClasses
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: wrapperClasses,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ });
}
}]);
@@ -7807,7 +7878,6 @@ function isPercentageUnit(unit) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/edit.js
-
/**
* External dependencies
*/
@@ -7826,17 +7896,18 @@ function isPercentageUnit(unit) {
* Internal dependencies
*/
-function ColumnsEditContainer({
- attributes,
+
+
+
+const edit_DEFAULT_BLOCK = {
+ name: 'core/column'
+};
+function edit_ColumnInspectorControls({
+ clientId,
setAttributes,
- clientId
+ isStackedOnMobile
}) {
const {
- isStackedOnMobile,
- verticalAlignment,
- templateLock
- } = attributes;
- const {
count,
canInsertColumnBlock,
minCount
@@ -7863,49 +7934,12 @@ function ColumnsEditContainer({
minCount: Math.max(...preventRemovalBlockIndexes) + 1
};
}, [clientId]);
- const registry = (0,external_wp_data_namespaceObject.useRegistry)();
const {
- getBlocks,
- getBlockOrder
+ getBlocks
} = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
const {
- updateBlockAttributes,
replaceInnerBlocks
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- const classes = classnames_default()({
- [`are-vertically-aligned-${verticalAlignment}`]: verticalAlignment,
- [`is-not-stacked-on-mobile`]: !isStackedOnMobile
- });
- const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classes
- });
- const innerBlocksProps = (0,external_wp_blockEditor_namespaceObject.useInnerBlocksProps)(blockProps, {
- orientation: 'horizontal',
- renderAppender: false,
- templateLock
- });
-
- /**
- * Update all child Column blocks with a new vertical alignment setting
- * based on whatever alignment is passed in. This allows change to parent
- * to overide anything set on a individual column basis.
- *
- * @param {string} newVerticalAlignment The vertical alignment setting.
- */
- function updateAlignment(newVerticalAlignment) {
- const innerBlockClientIds = getBlockOrder(clientId);
-
- // Update own and child Column block vertical alignments.
- // This is a single action; the batching prevents creating multiple history records.
- registry.batch(() => {
- setAttributes({
- verticalAlignment: newVerticalAlignment
- });
- updateBlockAttributes(innerBlockClientIds, {
- verticalAlignment: newVerticalAlignment
- });
- });
- }
/**
* Updates the column count, including necessary revisions to child Column
@@ -7924,12 +7958,13 @@ function ColumnsEditContainer({
// If adding a new column, assign width to the new column equal to
// as if it were `1 / columns` of the total available space.
const newColumnWidth = toWidthPrecision(100 / newColumns);
+ const newlyAddedColumns = newColumns - previousColumns;
// Redistribute in consideration of pending block insertion as
// constraining the available working width.
- const widths = getRedistributedColumnWidths(innerBlocks, 100 - newColumnWidth);
+ const widths = getRedistributedColumnWidths(innerBlocks, 100 - newColumnWidth * newlyAddedColumns);
innerBlocks = [...getMappedColumnWidths(innerBlocks, widths), ...Array.from({
- length: newColumns - previousColumns
+ length: newlyAddedColumns
}).map(() => {
return (0,external_wp_blocks_namespaceObject.createBlock)('core/column', {
width: `${newColumnWidth}%`
@@ -7952,32 +7987,101 @@ function ColumnsEditContainer({
}
replaceInnerBlocks(clientId, innerBlocks);
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockVerticalAlignmentToolbar, {
- onChange: updateAlignment,
- value: verticalAlignment
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, canInsertColumnBlock && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
- value: count,
- onChange: value => updateColumns(count, Math.max(minCount, value)),
- min: Math.max(1, minCount),
- max: Math.max(6, count)
- }), count > 6 && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Notice, {
- status: "warning",
- isDismissible: false
- }, (0,external_wp_i18n_namespaceObject.__)('This column count exceeds the recommended amount and may cause visual breakage.'))), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Stack on mobile'),
- checked: isStackedOnMobile,
- onChange: () => setAttributes({
- isStackedOnMobile: !isStackedOnMobile
- })
- }))), (0,external_React_namespaceObject.createElement)("div", {
- ...innerBlocksProps
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [canInsertColumnBlock && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
+ value: count,
+ onChange: value => updateColumns(count, Math.max(minCount, value)),
+ min: Math.max(1, minCount),
+ max: Math.max(6, count)
+ }), count > 6 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
+ status: "warning",
+ isDismissible: false,
+ children: (0,external_wp_i18n_namespaceObject.__)('This column count exceeds the recommended amount and may cause visual breakage.')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Stack on mobile'),
+ checked: isStackedOnMobile,
+ onChange: () => setAttributes({
+ isStackedOnMobile: !isStackedOnMobile
+ })
+ })]
+ });
+}
+function ColumnsEditContainer({
+ attributes,
+ setAttributes,
+ clientId
+}) {
+ const {
+ isStackedOnMobile,
+ verticalAlignment,
+ templateLock
+ } = attributes;
+ const registry = (0,external_wp_data_namespaceObject.useRegistry)();
+ const {
+ getBlockOrder
+ } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
+ const {
+ updateBlockAttributes
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
+ const classes = dist_clsx({
+ [`are-vertically-aligned-${verticalAlignment}`]: verticalAlignment,
+ [`is-not-stacked-on-mobile`]: !isStackedOnMobile
+ });
+ const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
+ className: classes
+ });
+ const innerBlocksProps = (0,external_wp_blockEditor_namespaceObject.useInnerBlocksProps)(blockProps, {
+ defaultBlock: edit_DEFAULT_BLOCK,
+ directInsert: true,
+ orientation: 'horizontal',
+ renderAppender: false,
+ templateLock
+ });
+
+ /**
+ * Update all child Column blocks with a new vertical alignment setting
+ * based on whatever alignment is passed in. This allows change to parent
+ * to overide anything set on a individual column basis.
+ *
+ * @param {string} newVerticalAlignment The vertical alignment setting.
+ */
+ function updateAlignment(newVerticalAlignment) {
+ const innerBlockClientIds = getBlockOrder(clientId);
+
+ // Update own and child Column block vertical alignments.
+ // This is a single action; the batching prevents creating multiple history records.
+ registry.batch(() => {
+ setAttributes({
+ verticalAlignment: newVerticalAlignment
+ });
+ updateBlockAttributes(innerBlockClientIds, {
+ verticalAlignment: newVerticalAlignment
+ });
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockVerticalAlignmentToolbar, {
+ onChange: updateAlignment,
+ value: verticalAlignment
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(edit_ColumnInspectorControls, {
+ clientId: clientId,
+ setAttributes: setAttributes,
+ isStackedOnMobile: isStackedOnMobile
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...innerBlocksProps
+ })]
+ });
}
function Placeholder({
clientId,
@@ -8004,22 +8108,24 @@ function Placeholder({
replaceInnerBlocks
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)();
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalBlockVariationPicker, {
- icon: blockType?.icon?.src,
- label: blockType?.title,
- variations: variations,
- onSelect: (nextVariation = defaultVariation) => {
- if (nextVariation.attributes) {
- setAttributes(nextVariation.attributes);
- }
- if (nextVariation.innerBlocks) {
- replaceInnerBlocks(clientId, (0,external_wp_blocks_namespaceObject.createBlocksFromInnerBlocksTemplate)(nextVariation.innerBlocks), true);
- }
- },
- allowSkip: true
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalBlockVariationPicker, {
+ icon: blockType?.icon?.src,
+ label: blockType?.title,
+ variations: variations,
+ instructions: (0,external_wp_i18n_namespaceObject.__)('Divide into columns. Select a layout:'),
+ onSelect: (nextVariation = defaultVariation) => {
+ if (nextVariation.attributes) {
+ setAttributes(nextVariation.attributes);
+ }
+ if (nextVariation.innerBlocks) {
+ replaceInnerBlocks(clientId, (0,external_wp_blocks_namespaceObject.createBlocksFromInnerBlocksTemplate)(nextVariation.innerBlocks), true);
+ }
+ },
+ allowSkip: true
+ })
+ });
}
const ColumnsEdit = props => {
const {
@@ -8027,14 +8133,13 @@ const ColumnsEdit = props => {
} = props;
const hasInnerBlocks = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).getBlocks(clientId).length > 0, [clientId]);
const Component = hasInnerBlocks ? ColumnsEditContainer : Placeholder;
- return (0,external_React_namespaceObject.createElement)(Component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
...props
});
};
/* harmony default export */ const columns_edit = (ColumnsEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/save.js
-
/**
* External dependencies
*/
@@ -8044,6 +8149,7 @@ const ColumnsEdit = props => {
* WordPress dependencies
*/
+
function columns_save_save({
attributes
}) {
@@ -8051,7 +8157,7 @@ function columns_save_save({
isStackedOnMobile,
verticalAlignment
} = attributes;
- const className = classnames_default()({
+ const className = dist_clsx({
[`are-vertically-aligned-${verticalAlignment}`]: verticalAlignment,
[`is-not-stacked-on-mobile`]: !isStackedOnMobile
});
@@ -8059,13 +8165,12 @@ function columns_save_save({
className
});
const innerBlocksProps = external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save(blockProps);
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...innerBlocksProps
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/variations.js
-
/**
* WordPress dependencies
*/
@@ -8079,36 +8184,35 @@ function columns_save_save({
*
* @type {WPBlockVariation[]}
*/
+
const variations = [{
name: 'one-column-full',
title: (0,external_wp_i18n_namespaceObject.__)('100'),
description: (0,external_wp_i18n_namespaceObject.__)('One column'),
- icon: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
width: "48",
height: "48",
viewBox: "0 0 48 48",
- xmlns: "http://www.w3.org/2000/svg"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"
- })),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"
+ })
+ }),
innerBlocks: [['core/column']],
scope: ['block']
}, {
name: 'two-columns-equal',
title: (0,external_wp_i18n_namespaceObject.__)('50 / 50'),
description: (0,external_wp_i18n_namespaceObject.__)('Two columns; equal split'),
- icon: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
width: "48",
height: "48",
viewBox: "0 0 48 48",
- xmlns: "http://www.w3.org/2000/svg"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
- })),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"
+ })
+ }),
isDefault: true,
innerBlocks: [['core/column'], ['core/column']],
scope: ['block']
@@ -8116,16 +8220,15 @@ const variations = [{
name: 'two-columns-one-third-two-thirds',
title: (0,external_wp_i18n_namespaceObject.__)('33 / 66'),
description: (0,external_wp_i18n_namespaceObject.__)('Two columns; one-third, two-thirds split'),
- icon: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
width: "48",
height: "48",
viewBox: "0 0 48 48",
- xmlns: "http://www.w3.org/2000/svg"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
- })),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M0 10a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm17 0a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H19a2 2 0 0 1-2-2V10Z"
+ })
+ }),
innerBlocks: [['core/column', {
width: '33.33%'
}], ['core/column', {
@@ -8136,16 +8239,15 @@ const variations = [{
name: 'two-columns-two-thirds-one-third',
title: (0,external_wp_i18n_namespaceObject.__)('66 / 33'),
description: (0,external_wp_i18n_namespaceObject.__)('Two columns; two-thirds, one-third split'),
- icon: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
width: "48",
height: "48",
viewBox: "0 0 48 48",
- xmlns: "http://www.w3.org/2000/svg"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
- })),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M0 10a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm33 0a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35a2 2 0 0 1-2-2V10Z"
+ })
+ }),
innerBlocks: [['core/column', {
width: '66.66%'
}], ['core/column', {
@@ -8156,30 +8258,30 @@ const variations = [{
name: 'three-columns-equal',
title: (0,external_wp_i18n_namespaceObject.__)('33 / 33 / 33'),
description: (0,external_wp_i18n_namespaceObject.__)('Three columns; equal split'),
- icon: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
width: "48",
height: "48",
viewBox: "0 0 48 48",
- xmlns: "http://www.w3.org/2000/svg"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
- })),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M0 10a2 2 0 0 1 2-2h10.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm16.5 0c0-1.105.864-2 1.969-2H29.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H18.47c-1.105 0-1.969-.895-1.969-2V10Zm17 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35.469c-1.105 0-1.969-.895-1.969-2V10Z"
+ })
+ }),
innerBlocks: [['core/column'], ['core/column'], ['core/column']],
scope: ['block']
}, {
name: 'three-columns-wider-center',
title: (0,external_wp_i18n_namespaceObject.__)('25 / 50 / 25'),
description: (0,external_wp_i18n_namespaceObject.__)('Three columns; wide center column'),
- icon: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
width: "48",
height: "48",
viewBox: "0 0 48 48",
- xmlns: "http://www.w3.org/2000/svg"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
- })),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M0 10a2 2 0 0 1 2-2h7.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm13.5 0c0-1.105.864-2 1.969-2H32.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H15.47c-1.105 0-1.969-.895-1.969-2V10Zm23 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2h-7.531c-1.105 0-1.969-.895-1.969-2V10Z"
+ })
+ }),
innerBlocks: [['core/column', {
width: '25%'
}], ['core/column', {
@@ -8457,21 +8559,21 @@ const columns_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post-comments.js
-
/**
* WordPress dependencies
*/
-const postComments = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const postComments = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"
+ })
+});
/* harmony default export */ const post_comments = (postComments);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments/deprecated.js
-
/**
* WordPress dependencies
*/
@@ -8479,6 +8581,7 @@ const postComments = (0,external_React_namespaceObject.createElement)(external_w
// v1: Deprecate the initial version of the block which was called "Comments
// Query Loop" instead of "Comments".
+
const v1 = {
attributes: {
tagName: {
@@ -8519,21 +8622,22 @@ const v1 = {
...blockProps,
className: newClasses.join(' ')
};
- return (0,external_React_namespaceObject.createElement)(Tag, {
- ...newBlockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
+ ...newBlockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ });
}
};
/* harmony default export */ const comments_deprecated = ([v1]);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments/edit/comments-inspector-controls.js
-
/**
* WordPress dependencies
*/
+
function CommentsInspectorControls({
attributes: {
tagName
@@ -8544,32 +8648,34 @@ function CommentsInspectorControls({
section: (0,external_wp_i18n_namespaceObject.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),
aside: (0,external_wp_i18n_namespaceObject.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.")
};
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "advanced"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('HTML element'),
- options: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Default (<div>)'),
- value: 'div'
- }, {
- label: '<section>',
- value: 'section'
- }, {
- label: '<aside>',
- value: 'aside'
- }],
- value: tagName,
- onChange: value => setAttributes({
- tagName: value
- }),
- help: htmlElementMessages[tagName]
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "advanced",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('HTML element'),
+ options: [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Default (<div>)'),
+ value: 'div'
+ }, {
+ label: '<section>',
+ value: 'section'
+ }, {
+ label: '<aside>',
+ value: 'aside'
+ }],
+ value: tagName,
+ onChange: value => setAttributes({
+ tagName: value
+ }),
+ help: htmlElementMessages[tagName]
+ })
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-comments-form/form.js
-
/**
* External dependencies
*/
@@ -8584,34 +8690,43 @@ function CommentsInspectorControls({
+
+
const CommentsFormPlaceholder = () => {
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(CommentsFormPlaceholder);
- return (0,external_React_namespaceObject.createElement)("div", {
- className: "comment-respond"
- }, (0,external_React_namespaceObject.createElement)("h3", {
- className: "comment-reply-title"
- }, (0,external_wp_i18n_namespaceObject.__)('Leave a Reply')), (0,external_React_namespaceObject.createElement)("form", {
- noValidate: true,
- className: "comment-form",
- onSubmit: event => event.preventDefault()
- }, (0,external_React_namespaceObject.createElement)("p", null, (0,external_React_namespaceObject.createElement)("label", {
- htmlFor: `comment-${instanceId}`
- }, (0,external_wp_i18n_namespaceObject.__)('Comment')), (0,external_React_namespaceObject.createElement)("textarea", {
- id: `comment-${instanceId}`,
- name: "comment",
- cols: "45",
- rows: "8",
- readOnly: true
- })), (0,external_React_namespaceObject.createElement)("p", {
- className: "form-submit wp-block-button"
- }, (0,external_React_namespaceObject.createElement)("input", {
- name: "submit",
- type: "submit",
- className: classnames_default()('wp-block-button__link', (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('button')),
- label: (0,external_wp_i18n_namespaceObject.__)('Post Comment'),
- value: (0,external_wp_i18n_namespaceObject.__)('Post Comment'),
- "aria-disabled": "true"
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "comment-respond",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h3", {
+ className: "comment-reply-title",
+ children: (0,external_wp_i18n_namespaceObject.__)('Leave a Reply')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("form", {
+ noValidate: true,
+ className: "comment-form",
+ onSubmit: event => event.preventDefault(),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("p", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("label", {
+ htmlFor: `comment-${instanceId}`,
+ children: (0,external_wp_i18n_namespaceObject.__)('Comment')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("textarea", {
+ id: `comment-${instanceId}`,
+ name: "comment",
+ cols: "45",
+ rows: "8",
+ readOnly: true
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "form-submit wp-block-button",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
+ name: "submit",
+ type: "submit",
+ className: dist_clsx('wp-block-button__link', (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('button')),
+ label: (0,external_wp_i18n_namespaceObject.__)('Post Comment'),
+ value: (0,external_wp_i18n_namespaceObject.__)('Post Comment'),
+ "aria-disabled": "true"
+ })
+ })]
+ })]
+ });
};
const CommentsForm = ({
postId,
@@ -8625,27 +8740,31 @@ const CommentsForm = ({
const postTypeSupportsComments = (0,external_wp_data_namespaceObject.useSelect)(select => postType ? !!select(external_wp_coreData_namespaceObject.store).getPostType(postType)?.supports.comments : false);
if (!isSiteEditor && 'open' !== commentStatus) {
if ('closed' === commentStatus) {
- const actions = [(0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- key: "enableComments",
+ const actions = [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
onClick: () => setCommentStatus('open'),
- variant: "primary"
- }, (0,external_wp_i18n_namespaceObject._x)('Enable comments', 'action that affects the current post'))];
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, {
- actions: actions
- }, (0,external_wp_i18n_namespaceObject.__)('Post Comments Form block: Comments are not enabled for this item.'));
+ variant: "primary",
+ children: (0,external_wp_i18n_namespaceObject._x)('Enable comments', 'action that affects the current post')
+ }, "enableComments")];
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ actions: actions,
+ children: (0,external_wp_i18n_namespaceObject.__)('Post Comments Form block: Comments are not enabled for this item.')
+ });
} else if (!postTypeSupportsComments) {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Post type (i.e. "post", "page") */
- (0,external_wp_i18n_namespaceObject.__)('Post Comments Form block: Comments are not enabled for this post type (%s).'), postType));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Post type (i.e. "post", "page") */
+ (0,external_wp_i18n_namespaceObject.__)('Post Comments Form block: Comments are not enabled for this post type (%s).'), postType)
+ });
} else if ('open' !== defaultCommentStatus) {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_i18n_namespaceObject.__)('Post Comments Form block: Comments are not enabled.'));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Post Comments Form block: Comments are not enabled.')
+ });
}
}
- return (0,external_React_namespaceObject.createElement)(CommentsFormPlaceholder, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CommentsFormPlaceholder, {});
};
/* harmony default export */ const post_comments_form_form = (CommentsForm);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments/edit/placeholder.js
-
/**
* WordPress dependencies
*/
@@ -8659,6 +8778,8 @@ const CommentsForm = ({
* Internal dependencies
*/
+
+
function PostCommentsPlaceholder({
postType,
postId
@@ -8668,87 +8789,118 @@ function PostCommentsPlaceholder({
const {
avatarURL
} = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).getSettings().__experimentalDiscussionSettings);
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: "wp-block-comments__legacy-placeholder",
- inert: "true"
- }, (0,external_React_namespaceObject.createElement)("h3", null, /* translators: %s: Post title. */
- (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('One response to %s'), postTitle)), (0,external_React_namespaceObject.createElement)("div", {
- className: "navigation"
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "alignleft"
- }, (0,external_React_namespaceObject.createElement)("a", {
- href: "#top"
- }, "\xAB ", (0,external_wp_i18n_namespaceObject.__)('Older Comments'))), (0,external_React_namespaceObject.createElement)("div", {
- className: "alignright"
- }, (0,external_React_namespaceObject.createElement)("a", {
- href: "#top"
- }, (0,external_wp_i18n_namespaceObject.__)('Newer Comments'), " \xBB"))), (0,external_React_namespaceObject.createElement)("ol", {
- className: "commentlist"
- }, (0,external_React_namespaceObject.createElement)("li", {
- className: "comment even thread-even depth-1"
- }, (0,external_React_namespaceObject.createElement)("article", {
- className: "comment-body"
- }, (0,external_React_namespaceObject.createElement)("footer", {
- className: "comment-meta"
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "comment-author vcard"
- }, (0,external_React_namespaceObject.createElement)("img", {
- alt: (0,external_wp_i18n_namespaceObject.__)('Commenter Avatar'),
- src: avatarURL,
- className: "avatar avatar-32 photo",
- height: "32",
- width: "32",
- loading: "lazy"
- }), (0,external_React_namespaceObject.createElement)("b", {
- className: "fn"
- }, (0,external_React_namespaceObject.createElement)("a", {
- href: "#top",
- className: "url"
- }, (0,external_wp_i18n_namespaceObject.__)('A WordPress Commenter'))), ' ', (0,external_React_namespaceObject.createElement)("span", {
- className: "says"
- }, (0,external_wp_i18n_namespaceObject.__)('says'), ":")), (0,external_React_namespaceObject.createElement)("div", {
- className: "comment-metadata"
- }, (0,external_React_namespaceObject.createElement)("a", {
- href: "#top"
- }, (0,external_React_namespaceObject.createElement)("time", {
- dateTime: "2000-01-01T00:00:00+00:00"
- }, (0,external_wp_i18n_namespaceObject.__)('January 1, 2000 at 00:00 am'))), ' ', (0,external_React_namespaceObject.createElement)("span", {
- className: "edit-link"
- }, (0,external_React_namespaceObject.createElement)("a", {
- className: "comment-edit-link",
- href: "#top"
- }, (0,external_wp_i18n_namespaceObject.__)('Edit'))))), (0,external_React_namespaceObject.createElement)("div", {
- className: "comment-content"
- }, (0,external_React_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Hi, this is a comment.'), (0,external_React_namespaceObject.createElement)("br", null), (0,external_wp_i18n_namespaceObject.__)('To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.'), (0,external_React_namespaceObject.createElement)("br", null), (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('Commenter avatars come from <a>Gravatar</a>.'), {
- a:
- // eslint-disable-next-line jsx-a11y/anchor-has-content
- (0,external_React_namespaceObject.createElement)("a", {
- href: "https://gravatar.com/"
- })
- }))), (0,external_React_namespaceObject.createElement)("div", {
- className: "reply"
- }, (0,external_React_namespaceObject.createElement)("a", {
- className: "comment-reply-link",
- href: "#top",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Reply to A WordPress Commenter')
- }, (0,external_wp_i18n_namespaceObject.__)('Reply')))))), (0,external_React_namespaceObject.createElement)("div", {
- className: "navigation"
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "alignleft"
- }, (0,external_React_namespaceObject.createElement)("a", {
- href: "#top"
- }, "\xAB ", (0,external_wp_i18n_namespaceObject.__)('Older Comments'))), (0,external_React_namespaceObject.createElement)("div", {
- className: "alignright"
- }, (0,external_React_namespaceObject.createElement)("a", {
- href: "#top"
- }, (0,external_wp_i18n_namespaceObject.__)('Newer Comments'), " \xBB"))), (0,external_React_namespaceObject.createElement)(post_comments_form_form, {
- postId: postId,
- postType: postType
- }));
+ inert: "true",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h3", {
+ children: /* translators: %s: Post title. */
+ (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('One response to %s'), postTitle)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "navigation",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "alignleft",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("a", {
+ href: "#top",
+ children: ["\xAB ", (0,external_wp_i18n_namespaceObject.__)('Older Comments')]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "alignright",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("a", {
+ href: "#top",
+ children: [(0,external_wp_i18n_namespaceObject.__)('Newer Comments'), " \xBB"]
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ol", {
+ className: "commentlist",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ className: "comment even thread-even depth-1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("article", {
+ className: "comment-body",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("footer", {
+ className: "comment-meta",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "comment-author vcard",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ alt: (0,external_wp_i18n_namespaceObject.__)('Commenter Avatar'),
+ src: avatarURL,
+ className: "avatar avatar-32 photo",
+ height: "32",
+ width: "32",
+ loading: "lazy"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("b", {
+ className: "fn",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: "#top",
+ className: "url",
+ children: (0,external_wp_i18n_namespaceObject.__)('A WordPress Commenter')
+ })
+ }), ' ', /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
+ className: "says",
+ children: [(0,external_wp_i18n_namespaceObject.__)('says'), ":"]
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "comment-metadata",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: "#top",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("time", {
+ dateTime: "2000-01-01T00:00:00+00:00",
+ children: (0,external_wp_i18n_namespaceObject.__)('January 1, 2000 at 00:00 am')
+ })
+ }), ' ', /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "edit-link",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ className: "comment-edit-link",
+ href: "#top",
+ children: (0,external_wp_i18n_namespaceObject.__)('Edit')
+ })
+ })]
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "comment-content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("p", {
+ children: [(0,external_wp_i18n_namespaceObject.__)('Hi, this is a comment.'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("br", {}), (0,external_wp_i18n_namespaceObject.__)('To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("br", {}), (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('Commenter avatars come from <a>Gravatar</a>.'), {
+ a:
+ /*#__PURE__*/
+ // eslint-disable-next-line jsx-a11y/anchor-has-content
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: "https://gravatar.com/"
+ })
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "reply",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ className: "comment-reply-link",
+ href: "#top",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Reply to A WordPress Commenter'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Reply')
+ })
+ })]
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "navigation",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "alignleft",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("a", {
+ href: "#top",
+ children: ["\xAB ", (0,external_wp_i18n_namespaceObject.__)('Older Comments')]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "alignright",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("a", {
+ href: "#top",
+ children: [(0,external_wp_i18n_namespaceObject.__)('Newer Comments'), " \xBB"]
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_comments_form_form, {
+ postId: postId,
+ postType: postType
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments/edit/comments-legacy.js
-
/**
* External dependencies
*/
@@ -8765,6 +8917,9 @@ function PostCommentsPlaceholder({
* Internal dependencies
*/
+
+
+
function CommentsLegacy({
attributes,
setAttributes,
@@ -8776,35 +8931,40 @@ function CommentsLegacy({
const {
textAlign
} = attributes;
- const actions = [(0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- key: "convert",
+ const actions = [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
onClick: () => void setAttributes({
legacy: false
}),
- variant: "primary"
- }, (0,external_wp_i18n_namespaceObject.__)('Switch to editable mode'))];
+ variant: "primary",
+ children: (0,external_wp_i18n_namespaceObject.__)('Switch to editable mode')
+ }, "convert")];
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
})
});
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- })), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, {
- actions: actions
- }, (0,external_wp_i18n_namespaceObject.__)('Comments block: You’re currently using the legacy version of the block. ' + 'The following is just a placeholder - the final styling will likely look different. ' + 'For a better representation and more customization options, ' + 'switch the block to its editable mode.')), (0,external_React_namespaceObject.createElement)(PostCommentsPlaceholder, {
- postId: postId,
- postType: postType
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...blockProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ actions: actions,
+ children: (0,external_wp_i18n_namespaceObject.__)('Comments block: You’re currently using the legacy version of the block. ' + 'The following is just a placeholder - the final styling will likely look different. ' + 'For a better representation and more customization options, ' + 'switch the block to its editable mode.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostCommentsPlaceholder, {
+ postId: postId,
+ postType: postType
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments/edit/template.js
@@ -8841,7 +9001,6 @@ const TEMPLATE = [['core/comments-title'], ['core/comment-template', {}, [['core
/* harmony default export */ const template = (TEMPLATE);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments/edit/index.js
-
/**
* WordPress dependencies
*/
@@ -8853,6 +9012,9 @@ const TEMPLATE = [['core/comments-title'], ['core/comment-template', {}, [['core
+
+
+
function CommentsEdit(props) {
const {
attributes,
@@ -8867,24 +9029,26 @@ function CommentsEdit(props) {
template: template
});
if (legacy) {
- return (0,external_React_namespaceObject.createElement)(CommentsLegacy, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CommentsLegacy, {
...props
});
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(CommentsInspectorControls, {
- attributes: attributes,
- setAttributes: setAttributes
- }), (0,external_React_namespaceObject.createElement)(TagName, {
- ...innerBlocksProps
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CommentsInspectorControls, {
+ attributes: attributes,
+ setAttributes: setAttributes
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...innerBlocksProps
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments/save.js
-
/**
* WordPress dependencies
*/
+
function comments_save_save({
attributes: {
tagName: Tag,
@@ -8896,7 +9060,7 @@ function comments_save_save({
// The legacy version is dynamic (i.e. PHP rendered) and doesn't allow inner
// blocks, so nothing is saved in that case.
- return legacy ? null : (0,external_React_namespaceObject.createElement)(Tag, {
+ return legacy ? null : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
...innerBlocksProps
});
}
@@ -8983,7 +9147,6 @@ const comments_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comment-author-avatar/edit.js
-
/**
* WordPress dependencies
*/
@@ -8992,6 +9155,9 @@ const comments_init = () => initBlock({
+
+
+
function edit_Edit({
attributes,
context: {
@@ -9024,22 +9190,25 @@ function edit_Edit({
} = getSettings();
return __experimentalDiscussionSettings;
});
- const inspectorControls = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Avatar Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Image size'),
- onChange: newWidth => setAttributes({
- width: newWidth,
- height: newWidth
- }),
- min: minSize,
- max: maxSizeBuffer,
- initialPosition: width,
- value: width
- })));
- const resizableAvatar = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ResizableBox, {
+ const inspectorControls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Image size'),
+ onChange: newWidth => setAttributes({
+ width: newWidth,
+ height: newWidth
+ }),
+ min: minSize,
+ max: maxSizeBuffer,
+ initialPosition: width,
+ value: width
+ })
+ })
+ });
+ const resizableAvatar = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ResizableBox, {
size: {
width,
height
@@ -9059,15 +9228,19 @@ function edit_Edit({
left: (0,external_wp_i18n_namespaceObject.isRTL)()
},
minWidth: minSize,
- maxWidth: maxSizeBuffer
- }, (0,external_React_namespaceObject.createElement)("img", {
- src: avatarUrls ? avatarUrls[avatarUrls.length - 1] : avatarURL,
- alt: `${authorName} ${(0,external_wp_i18n_namespaceObject.__)('Avatar')}`,
- ...blockProps
- }));
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, inspectorControls, (0,external_React_namespaceObject.createElement)("div", {
- ...spacingProps
- }, resizableAvatar));
+ maxWidth: maxSizeBuffer,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: avatarUrls ? avatarUrls[avatarUrls.length - 1] : avatarURL,
+ alt: `${authorName} ${(0,external_wp_i18n_namespaceObject.__)('Avatar')}`,
+ ...blockProps
+ })
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [inspectorControls, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...spacingProps,
+ children: resizableAvatar
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comment-author-avatar/index.js
@@ -9143,33 +9316,34 @@ const comment_author_avatar_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/comment-author-name.js
-
/**
* WordPress dependencies
*/
-const commentAuthorName = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const commentAuthorName = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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",
- fillRule: "evenodd",
- clipRule: "evenodd"
-}), (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",
- fillRule: "evenodd",
- clipRule: "evenodd"
-}), (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Circle, {
- cx: "12",
- cy: "9",
- r: "2",
- fillRule: "evenodd",
- clipRule: "evenodd"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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",
+ fillRule: "evenodd",
+ clipRule: "evenodd"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",
+ fillRule: "evenodd",
+ clipRule: "evenodd"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Circle, {
+ cx: "12",
+ cy: "9",
+ r: "2",
+ fillRule: "evenodd",
+ clipRule: "evenodd"
+ })]
+});
/* harmony default export */ const comment_author_name = (commentAuthorName);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comment-author-name/edit.js
-
/**
* External dependencies
*/
@@ -9198,6 +9372,9 @@ const commentAuthorName = (0,external_React_namespaceObject.createElement)(exter
*
* @return {JSX.Element} React element.
*/
+
+
+
function comment_author_name_edit_Edit({
attributes: {
isLink,
@@ -9210,7 +9387,7 @@ function comment_author_name_edit_Edit({
setAttributes
}) {
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
})
});
@@ -9228,41 +9405,49 @@ function comment_author_name_edit_Edit({
}
return authorName !== null && authorName !== void 0 ? authorName : '';
}, [commentId]);
- const blockControls = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: newAlign => setAttributes({
- textAlign: newAlign
+ const blockControls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: newAlign => setAttributes({
+ textAlign: newAlign
+ })
})
- }));
- const inspectorControls = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Link to authors URL'),
- onChange: () => setAttributes({
- isLink: !isLink
- }),
- checked: isLink
- }), isLink && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
- onChange: value => setAttributes({
- linkTarget: value ? '_blank' : '_self'
- }),
- checked: linkTarget === '_blank'
- })));
+ });
+ const inspectorControls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Link to authors URL'),
+ onChange: () => setAttributes({
+ isLink: !isLink
+ }),
+ checked: isLink
+ }), isLink && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
+ onChange: value => setAttributes({
+ linkTarget: value ? '_blank' : '_self'
+ }),
+ checked: linkTarget === '_blank'
+ })]
+ })
+ });
if (!commentId || !displayName) {
displayName = (0,external_wp_i18n_namespaceObject._x)('Comment Author', 'block title');
}
- const displayAuthor = isLink ? (0,external_React_namespaceObject.createElement)("a", {
+ const displayAuthor = isLink ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
href: "#comment-author-pseudo-link",
- onClick: event => event.preventDefault()
- }, displayName) : displayName;
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, inspectorControls, blockControls, (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, displayAuthor));
+ onClick: event => event.preventDefault(),
+ children: displayName
+ }) : displayName;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [inspectorControls, blockControls, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: displayAuthor
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comment-author-name/deprecated.js
@@ -9402,23 +9587,23 @@ const comment_author_name_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/comment-content.js
-
/**
* WordPress dependencies
*/
-const commentContent = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const commentContent = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"
+ })
+});
/* harmony default export */ const comment_content = (commentContent);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comment-content/edit.js
-
/**
* External dependencies
*/
@@ -9445,6 +9630,9 @@ const commentContent = (0,external_React_namespaceObject.createElement)(external
*
* @return {JSX.Element} React element.
*/
+
+
+
function comment_content_edit_Edit({
setAttributes,
attributes: {
@@ -9455,29 +9643,40 @@ function comment_content_edit_Edit({
}
}) {
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
})
});
const [content] = (0,external_wp_coreData_namespaceObject.useEntityProp)('root', 'comment', 'content', commentId);
- const blockControls = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: newAlign => setAttributes({
- textAlign: newAlign
+ const blockControls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: newAlign => setAttributes({
+ textAlign: newAlign
+ })
})
- }));
+ });
if (!commentId || !content) {
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, blockControls, (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject._x)('Comment Content', 'block title'))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [blockControls, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject._x)('Comment Content', 'block title')
+ })
+ })]
+ });
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, blockControls, (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Disabled, null, (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, {
- key: "html"
- }, content.rendered))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [blockControls, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Disabled, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
+ children: content.rendered
+ }, "html")
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comment-content/index.js
@@ -9552,25 +9751,26 @@ const comment_content_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post-date.js
-
/**
* WordPress dependencies
*/
-const postDate = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const postDate = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"
-}), (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"
+ })]
+});
/* harmony default export */ const post_date = (postDate);
;// CONCATENATED MODULE: external ["wp","date"]
const external_wp_date_namespaceObject = window["wp"]["date"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comment-date/edit.js
-
/**
* WordPress dependencies
*/
@@ -9593,6 +9793,9 @@ const external_wp_date_namespaceObject = window["wp"]["date"];
*
* @return {JSX.Element} React element.
*/
+
+
+
function comment_date_edit_Edit({
attributes: {
format,
@@ -9606,37 +9809,47 @@ function comment_date_edit_Edit({
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)();
let [date] = (0,external_wp_coreData_namespaceObject.useEntityProp)('root', 'comment', 'date', commentId);
const [siteFormat = (0,external_wp_date_namespaceObject.getSettings)().formats.date] = (0,external_wp_coreData_namespaceObject.useEntityProp)('root', 'site', 'date_format');
- const inspectorControls = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalDateFormatPicker, {
- format: format,
- defaultFormat: siteFormat,
- onChange: nextFormat => setAttributes({
- format: nextFormat
+ const inspectorControls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalDateFormatPicker, {
+ format: format,
+ defaultFormat: siteFormat,
+ onChange: nextFormat => setAttributes({
+ format: nextFormat
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Link to comment'),
+ onChange: () => setAttributes({
+ isLink: !isLink
+ }),
+ checked: isLink
+ })]
})
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Link to comment'),
- onChange: () => setAttributes({
- isLink: !isLink
- }),
- checked: isLink
- })));
+ });
if (!commentId || !date) {
date = (0,external_wp_i18n_namespaceObject._x)('Comment Date', 'block title');
}
- let commentDate = date instanceof Date ? (0,external_React_namespaceObject.createElement)("time", {
- dateTime: (0,external_wp_date_namespaceObject.dateI18n)('c', date)
- }, (0,external_wp_date_namespaceObject.dateI18n)(format || siteFormat, date)) : (0,external_React_namespaceObject.createElement)("time", null, date);
+ let commentDate = date instanceof Date ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("time", {
+ dateTime: (0,external_wp_date_namespaceObject.dateI18n)('c', date),
+ children: (0,external_wp_date_namespaceObject.dateI18n)(format || siteFormat, date)
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("time", {
+ children: date
+ });
if (isLink) {
- commentDate = (0,external_React_namespaceObject.createElement)("a", {
+ commentDate = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
href: "#comment-date-pseudo-link",
- onClick: event => event.preventDefault()
- }, commentDate);
+ onClick: event => event.preventDefault(),
+ children: commentDate
+ });
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, inspectorControls, (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, commentDate));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [inspectorControls, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: commentDate
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comment-date/deprecated.js
@@ -9771,23 +9984,23 @@ const comment_date_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/comment-edit-link.js
-
/**
* WordPress dependencies
*/
-const commentEditLink = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const commentEditLink = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"
+ })
+});
/* harmony default export */ const comment_edit_link = (commentEditLink);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comment-edit-link/edit.js
-
/**
* External dependencies
*/
@@ -9799,6 +10012,9 @@ const commentEditLink = (0,external_React_namespaceObject.createElement)(externa
+
+
+
function comment_edit_link_edit_Edit({
attributes: {
linkTarget,
@@ -9807,34 +10023,42 @@ function comment_edit_link_edit_Edit({
setAttributes
}) {
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
})
});
- const blockControls = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: newAlign => setAttributes({
- textAlign: newAlign
+ const blockControls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: newAlign => setAttributes({
+ textAlign: newAlign
+ })
+ })
+ });
+ const inspectorControls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
+ onChange: value => setAttributes({
+ linkTarget: value ? '_blank' : '_self'
+ }),
+ checked: linkTarget === '_blank'
+ })
})
- }));
- const inspectorControls = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
- onChange: value => setAttributes({
- linkTarget: value ? '_blank' : '_self'
- }),
- checked: linkTarget === '_blank'
- })));
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, blockControls, inspectorControls, (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)("a", {
- href: "#edit-comment-pseudo-link",
- onClick: event => event.preventDefault()
- }, (0,external_wp_i18n_namespaceObject.__)('Edit'))));
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [blockControls, inspectorControls, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: "#edit-comment-pseudo-link",
+ onClick: event => event.preventDefault(),
+ children: (0,external_wp_i18n_namespaceObject.__)('Edit')
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comment-edit-link/index.js
@@ -9915,23 +10139,23 @@ const comment_edit_link_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/comment-reply-link.js
-
/**
* WordPress dependencies
*/
-const commentReplyLink = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const commentReplyLink = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"
+ })
+});
/* harmony default export */ const comment_reply_link = (commentReplyLink);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comment-reply-link/edit.js
-
/**
* External dependencies
*/
@@ -9953,6 +10177,9 @@ const commentReplyLink = (0,external_React_namespaceObject.createElement)(extern
*
* @return {JSX.Element} React element.
*/
+
+
+
function comment_reply_link_edit_Edit({
setAttributes,
attributes: {
@@ -9960,24 +10187,29 @@ function comment_reply_link_edit_Edit({
}
}) {
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
})
});
- const blockControls = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: newAlign => setAttributes({
- textAlign: newAlign
+ const blockControls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: newAlign => setAttributes({
+ textAlign: newAlign
+ })
})
- }));
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, blockControls, (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)("a", {
- href: "#comment-reply-pseudo-link",
- onClick: event => event.preventDefault()
- }, (0,external_wp_i18n_namespaceObject.__)('Reply'))));
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [blockControls, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: "#comment-reply-pseudo-link",
+ onClick: event => event.preventDefault(),
+ children: (0,external_wp_i18n_namespaceObject.__)('Reply')
+ })
+ })]
+ });
}
/* harmony default export */ const comment_reply_link_edit = (comment_reply_link_edit_Edit);
@@ -10052,17 +10284,18 @@ const comment_reply_link_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/layout.js
-
/**
* WordPress dependencies
*/
-const layout = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const layout = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
+ })
+});
/* harmony default export */ const library_layout = (layout);
;// CONCATENATED MODULE: external ["wp","apiFetch"]
@@ -10223,7 +10456,6 @@ const useCommentTree = topLevelComments => {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comment-template/edit.js
-
/**
* WordPress dependencies
*/
@@ -10238,6 +10470,8 @@ const useCommentTree = topLevelComments => {
* Internal dependencies
*/
+
+
const edit_TEMPLATE = [['core/avatar'], ['core/comment-author-name'], ['core/comment-date'], ['core/comment-content'], ['core/comment-reply-link'], ['core/comment-edit-link']];
/**
@@ -10327,20 +10561,21 @@ function CommentTemplateInnerBlocks({
} = (0,external_wp_blockEditor_namespaceObject.useInnerBlocksProps)({}, {
template: edit_TEMPLATE
});
- return (0,external_React_namespaceObject.createElement)("li", {
- ...innerBlocksProps
- }, comment.commentId === (activeCommentId || firstCommentId) ? children : null, (0,external_React_namespaceObject.createElement)(MemoizedCommentTemplatePreview, {
- blocks: blocks,
- commentId: comment.commentId,
- setActiveCommentId: setActiveCommentId,
- isHidden: comment.commentId === (activeCommentId || firstCommentId)
- }), comment?.children?.length > 0 ? (0,external_React_namespaceObject.createElement)(CommentsList, {
- comments: comment.children,
- activeCommentId: activeCommentId,
- setActiveCommentId: setActiveCommentId,
- blocks: blocks,
- firstCommentId: firstCommentId
- }) : null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ ...innerBlocksProps,
+ children: [comment.commentId === (activeCommentId || firstCommentId) ? children : null, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MemoizedCommentTemplatePreview, {
+ blocks: blocks,
+ commentId: comment.commentId,
+ setActiveCommentId: setActiveCommentId,
+ isHidden: comment.commentId === (activeCommentId || firstCommentId)
+ }), comment?.children?.length > 0 ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CommentsList, {
+ comments: comment.children,
+ activeCommentId: activeCommentId,
+ setActiveCommentId: setActiveCommentId,
+ blocks: blocks,
+ firstCommentId: firstCommentId
+ }) : null]
+ });
}
const CommentTemplatePreview = ({
blocks,
@@ -10363,7 +10598,7 @@ const CommentTemplatePreview = ({
const style = {
display: isHidden ? 'none' : undefined
};
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...blockPreviewProps,
tabIndex: 0,
role: "button",
@@ -10396,31 +10631,32 @@ const CommentsList = ({
setActiveCommentId,
blocks,
firstCommentId
-}) => (0,external_React_namespaceObject.createElement)("ol", {
- ...blockProps
-}, comments && comments.map(({
- commentId,
- ...comment
-}, index) => (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockContextProvider, {
- key: comment.commentId || index,
- value: {
- // If the commentId is negative it means that this comment is a
- // "placeholder" and that the block is most likely being used in the
- // site editor. In this case, we have to set the commentId to `null`
- // because otherwise the (non-existent) comment with a negative ID
- // would be reqested from the REST API.
- commentId: commentId < 0 ? null : commentId
- }
-}, (0,external_React_namespaceObject.createElement)(CommentTemplateInnerBlocks, {
- comment: {
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ol", {
+ ...blockProps,
+ children: comments && comments.map(({
commentId,
...comment
- },
- activeCommentId: activeCommentId,
- setActiveCommentId: setActiveCommentId,
- blocks: blocks,
- firstCommentId: firstCommentId
-}))));
+ }, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockContextProvider, {
+ value: {
+ // If the commentId is negative it means that this comment is a
+ // "placeholder" and that the block is most likely being used in the
+ // site editor. In this case, we have to set the commentId to `null`
+ // because otherwise the (non-existent) comment with a negative ID
+ // would be reqested from the REST API.
+ commentId: commentId < 0 ? null : commentId
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CommentTemplateInnerBlocks, {
+ comment: {
+ commentId,
+ ...comment
+ },
+ activeCommentId: activeCommentId,
+ setActiveCommentId: setActiveCommentId,
+ blocks: blocks,
+ firstCommentId: firstCommentId
+ })
+ }, comment.commentId || index))
+});
function CommentTemplateEdit({
clientId,
context: {
@@ -10466,9 +10702,10 @@ function CommentTemplateEdit({
// Reverse the order of top comments if needed.
commentOrder === 'desc' && topLevelComments ? [...topLevelComments].reverse() : topLevelComments);
if (!topLevelComments) {
- return (0,external_React_namespaceObject.createElement)("p", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
+ });
}
if (!postId) {
commentTree = getCommentsPlaceholder({
@@ -10479,11 +10716,12 @@ function CommentTemplateEdit({
});
}
if (!commentTree.length) {
- return (0,external_React_namespaceObject.createElement)("p", {
- ...blockProps
- }, (0,external_wp_i18n_namespaceObject.__)('No results found.'));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ ...blockProps,
+ children: (0,external_wp_i18n_namespaceObject.__)('No results found.')
+ });
}
- return (0,external_React_namespaceObject.createElement)(CommentsList, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CommentsList, {
comments: commentTree,
blockProps: blockProps,
blocks: blocks,
@@ -10494,13 +10732,13 @@ function CommentTemplateEdit({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comment-template/save.js
-
/**
* WordPress dependencies
*/
+
function CommentTemplateSave() {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comment-template/index.js
@@ -10568,26 +10806,28 @@ const comment_template_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/query-pagination-previous.js
-
/**
* WordPress dependencies
*/
-const queryPaginationPrevious = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const queryPaginationPrevious = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"
+ })
+});
/* harmony default export */ const query_pagination_previous = (queryPaginationPrevious);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments-pagination-previous/edit.js
-
/**
* WordPress dependencies
*/
+
+
const arrowMap = {
none: '',
arrow: '←',
@@ -10603,22 +10843,24 @@ function CommentsPaginationPreviousEdit({
}
}) {
const displayArrow = arrowMap[paginationArrow];
- return (0,external_React_namespaceObject.createElement)("a", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("a", {
href: "#comments-pagination-previous-pseudo-link",
onClick: event => event.preventDefault(),
- ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)()
- }, displayArrow && (0,external_React_namespaceObject.createElement)("span", {
- className: `wp-block-comments-pagination-previous-arrow is-arrow-${paginationArrow}`
- }, displayArrow), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.PlainText, {
- __experimentalVersion: 2,
- tagName: "span",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Older comments page link'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Older Comments'),
- value: label,
- onChange: newLabel => setAttributes({
- label: newLabel
- })
- }));
+ ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)(),
+ children: [displayArrow && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: `wp-block-comments-pagination-previous-arrow is-arrow-${paginationArrow}`,
+ children: displayArrow
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.PlainText, {
+ __experimentalVersion: 2,
+ tagName: "span",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Older comments page link'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Older Comments'),
+ value: label,
+ onChange: newLabel => setAttributes({
+ label: newLabel
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments-pagination-previous/index.js
@@ -10690,51 +10932,53 @@ const comments_pagination_previous_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/query-pagination.js
-
/**
* WordPress dependencies
*/
-const queryPagination = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const queryPagination = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"
+ })
+});
/* harmony default export */ const query_pagination = (queryPagination);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments-pagination/comments-pagination-arrow-controls.js
-
/**
* WordPress dependencies
*/
+
+
function CommentsPaginationArrowControls({
value,
onChange
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
__nextHasNoMarginBottom: true,
label: (0,external_wp_i18n_namespaceObject.__)('Arrow'),
value: value,
onChange: onChange,
help: (0,external_wp_i18n_namespaceObject.__)('A decorative arrow appended to the next and previous comments link.'),
- isBlock: true
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "none",
- label: (0,external_wp_i18n_namespaceObject._x)('None', 'Arrow option for Comments Pagination Next/Previous blocks')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "arrow",
- label: (0,external_wp_i18n_namespaceObject._x)('Arrow', 'Arrow option for Comments Pagination Next/Previous blocks')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "chevron",
- label: (0,external_wp_i18n_namespaceObject._x)('Chevron', 'Arrow option for Comments Pagination Next/Previous blocks')
- }));
+ isBlock: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "none",
+ label: (0,external_wp_i18n_namespaceObject._x)('None', 'Arrow option for Comments Pagination Next/Previous blocks')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "arrow",
+ label: (0,external_wp_i18n_namespaceObject._x)('Arrow', 'Arrow option for Comments Pagination Next/Previous blocks')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "chevron",
+ label: (0,external_wp_i18n_namespaceObject._x)('Chevron', 'Arrow option for Comments Pagination Next/Previous blocks')
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments-pagination/edit.js
-
/**
* WordPress dependencies
*/
@@ -10747,6 +10991,9 @@ function CommentsPaginationArrowControls({
* Internal dependencies
*/
+
+
+
const comments_pagination_edit_TEMPLATE = [['core/comments-pagination-previous'], ['core/comments-pagination-numbers'], ['core/comments-pagination-next']];
function QueryPaginationEdit({
attributes: {
@@ -10789,30 +11036,37 @@ function QueryPaginationEdit({
// controls. We don't want to remove them from the template so that when the user enables
// paging comments, the controls will be visible.
if (!pageComments) {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_i18n_namespaceObject.__)('Comments Pagination block: paging comments is disabled in the Discussion Settings'));
- }
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, hasNextPreviousBlocks && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(CommentsPaginationArrowControls, {
- value: paginationArrow,
- onChange: value => {
- setAttributes({
- paginationArrow: value
- });
- }
- }))), (0,external_React_namespaceObject.createElement)("div", {
- ...innerBlocksProps
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Comments Pagination block: paging comments is disabled in the Discussion Settings')
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [hasNextPreviousBlocks && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CommentsPaginationArrowControls, {
+ value: paginationArrow,
+ onChange: value => {
+ setAttributes({
+ paginationArrow: value
+ });
+ }
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...innerBlocksProps
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments-pagination/save.js
-
/**
* WordPress dependencies
*/
+
function comments_pagination_save_save() {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments-pagination/index.js
@@ -10902,26 +11156,28 @@ const comments_pagination_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/query-pagination-next.js
-
/**
* WordPress dependencies
*/
-const queryPaginationNext = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const queryPaginationNext = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"
+ })
+});
/* harmony default export */ const query_pagination_next = (queryPaginationNext);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments-pagination-next/edit.js
-
/**
* WordPress dependencies
*/
+
+
const edit_arrowMap = {
none: '',
arrow: '→',
@@ -10937,22 +11193,24 @@ function CommentsPaginationNextEdit({
}
}) {
const displayArrow = edit_arrowMap[paginationArrow];
- return (0,external_React_namespaceObject.createElement)("a", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("a", {
href: "#comments-pagination-next-pseudo-link",
onClick: event => event.preventDefault(),
- ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)()
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.PlainText, {
- __experimentalVersion: 2,
- tagName: "span",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Newer comments page link'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Newer Comments'),
- value: label,
- onChange: newLabel => setAttributes({
- label: newLabel
- })
- }), displayArrow && (0,external_React_namespaceObject.createElement)("span", {
- className: `wp-block-comments-pagination-next-arrow is-arrow-${paginationArrow}`
- }, displayArrow));
+ ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)(),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.PlainText, {
+ __experimentalVersion: 2,
+ tagName: "span",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Newer comments page link'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Newer Comments'),
+ value: label,
+ onChange: newLabel => setAttributes({
+ label: newLabel
+ })
+ }), displayArrow && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: `wp-block-comments-pagination-next-arrow is-arrow-${paginationArrow}`,
+ children: displayArrow
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments-pagination-next/index.js
@@ -11024,58 +11282,63 @@ const comments_pagination_next_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/query-pagination-numbers.js
-
/**
* WordPress dependencies
*/
-const queryPaginationNumbers = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const queryPaginationNumbers = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.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.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.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.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"
+ })
+});
/* harmony default export */ const query_pagination_numbers = (queryPaginationNumbers);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments-pagination-numbers/edit.js
-
/**
* WordPress dependencies
*/
+
+
const PaginationItem = ({
content,
tag: Tag = 'a',
extraClass = ''
-}) => Tag === 'a' ? (0,external_React_namespaceObject.createElement)(Tag, {
+}) => Tag === 'a' ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
className: `page-numbers ${extraClass}`,
href: "#comments-pagination-numbers-pseudo-link",
- onClick: event => event.preventDefault()
-}, content) : (0,external_React_namespaceObject.createElement)(Tag, {
- className: `page-numbers ${extraClass}`
-}, content);
+ onClick: event => event.preventDefault(),
+ children: content
+}) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
+ className: `page-numbers ${extraClass}`,
+ children: content
+});
function CommentsPaginationNumbersEdit() {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)()
- }, (0,external_React_namespaceObject.createElement)(PaginationItem, {
- content: "1"
- }), (0,external_React_namespaceObject.createElement)(PaginationItem, {
- content: "2"
- }), (0,external_React_namespaceObject.createElement)(PaginationItem, {
- content: "3",
- tag: "span",
- extraClass: "current"
- }), (0,external_React_namespaceObject.createElement)(PaginationItem, {
- content: "4"
- }), (0,external_React_namespaceObject.createElement)(PaginationItem, {
- content: "5"
- }), (0,external_React_namespaceObject.createElement)(PaginationItem, {
- content: "...",
- tag: "span",
- extraClass: "dots"
- }), (0,external_React_namespaceObject.createElement)(PaginationItem, {
- content: "8"
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)(),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PaginationItem, {
+ content: "1"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PaginationItem, {
+ content: "2"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PaginationItem, {
+ content: "3",
+ tag: "span",
+ extraClass: "current"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PaginationItem, {
+ content: "4"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PaginationItem, {
+ content: "5"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PaginationItem, {
+ content: "...",
+ tag: "span",
+ extraClass: "dots"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PaginationItem, {
+ content: "8"
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments-pagination-numbers/index.js
@@ -11142,21 +11405,21 @@ const comments_pagination_numbers_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/title.js
-
/**
* WordPress dependencies
*/
-const title = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const title = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"
+ })
+});
/* harmony default export */ const library_title = (title);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments-title/edit.js
-
/**
* External dependencies
*/
@@ -11173,6 +11436,9 @@ const title = (0,external_React_namespaceObject.createElement)(external_wp_primi
+
+
+
function comments_title_edit_Edit({
attributes: {
textAlign,
@@ -11191,7 +11457,7 @@ function comments_title_edit_Edit({
const [rawTitle] = (0,external_wp_coreData_namespaceObject.useEntityProp)('postType', postType, 'title', postId);
const isSiteEditor = typeof postId === 'undefined';
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
})
});
@@ -11233,36 +11499,40 @@ function comments_title_edit_Edit({
setCommentsCount(0);
});
}, [postId]);
- const blockControls = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: newAlign => setAttributes({
- textAlign: newAlign
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.HeadingLevelDropdown, {
- value: level,
- onChange: newLevel => setAttributes({
- level: newLevel
- })
- }));
- const inspectorControls = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Show post title'),
- checked: showPostTitle,
- onChange: value => setAttributes({
- showPostTitle: value
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Show comments count'),
- checked: showCommentsCount,
- onChange: value => setAttributes({
- showCommentsCount: value
+ const blockControls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: newAlign => setAttributes({
+ textAlign: newAlign
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.HeadingLevelDropdown, {
+ value: level,
+ onChange: newLevel => setAttributes({
+ level: newLevel
+ })
+ })]
+ });
+ const inspectorControls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show post title'),
+ checked: showPostTitle,
+ onChange: value => setAttributes({
+ showPostTitle: value
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show comments count'),
+ checked: showCommentsCount,
+ onChange: value => setAttributes({
+ showCommentsCount: value
+ })
+ })]
})
- })));
+ });
const postTitle = isSiteEditor ? (0,external_wp_i18n_namespaceObject.__)('“Post Title”') : `"${rawTitle}"`;
let placeholder;
if (showCommentsCount && commentsCount !== undefined) {
@@ -11293,9 +11563,12 @@ function comments_title_edit_Edit({
} else {
placeholder = (0,external_wp_i18n_namespaceObject.__)('Responses');
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, blockControls, inspectorControls, (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps
- }, placeholder));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [blockControls, inspectorControls, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...blockProps,
+ children: placeholder
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments-title/deprecated.js
@@ -11498,17 +11771,18 @@ const comments_title_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/cover.js
-
/**
* WordPress dependencies
*/
-const cover = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const cover = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
/* harmony default export */ const library_cover = (cover);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/shared.js
@@ -11606,12 +11880,13 @@ function getPositionClassName(contentPosition) {
/*
* Only render a className if the contentPosition is not center (the default).
*/
- if (isContentPositionCenter(contentPosition)) return '';
+ if (isContentPositionCenter(contentPosition)) {
+ return '';
+ }
return POSITION_CLASSNAMES[contentPosition];
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/deprecated.js
-
/**
* External dependencies
*/
@@ -11629,6 +11904,8 @@ function getPositionClassName(contentPosition) {
* Internal dependencies
*/
+
+
function backgroundImageStyles(url) {
return url ? {
backgroundImage: `url(${url})`
@@ -11879,67 +12156,68 @@ const v13 = {
focalPoint && isImgElement ? mediaPosition(focalPoint) : undefined;
const backgroundImage = url ? `url(${url})` : undefined;
const backgroundPosition = mediaPosition(focalPoint);
- const classes = classnames_default()({
+ const classes = dist_clsx({
'is-light': !isDark,
'has-parallax': hasParallax,
'is-repeated': isRepeated,
'has-custom-content-position': !isContentPositionCenter(contentPosition)
}, getPositionClassName(contentPosition));
- const imgClasses = classnames_default()('wp-block-cover__image-background', id ? `wp-image-${id}` : null, {
+ const imgClasses = dist_clsx('wp-block-cover__image-background', id ? `wp-image-${id}` : null, {
'has-parallax': hasParallax,
'is-repeated': isRepeated
});
const gradientValue = gradient || customGradient;
- return (0,external_React_namespaceObject.createElement)(Tag, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tag, {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: classes,
style
- })
- }, (0,external_React_namespaceObject.createElement)("span", {
- "aria-hidden": "true",
- className: classnames_default()('wp-block-cover__background', overlayColorClass, dimRatioToClass(dimRatio), {
- 'has-background-dim': dimRatio !== undefined,
- // For backwards compatibility. Former versions of the Cover Block applied
- // `.wp-block-cover__gradient-background` in the presence of
- // media, a gradient and a dim.
- 'wp-block-cover__gradient-background': url && gradientValue && dimRatio !== 0,
- 'has-background-gradient': gradientValue,
- [gradientClass]: gradientClass
}),
- style: bgStyle
- }), !useFeaturedImage && isImageBackground && url && (isImgElement ? (0,external_React_namespaceObject.createElement)("img", {
- className: imgClasses,
- alt: alt,
- src: url,
- style: {
- objectPosition
- },
- "data-object-fit": "cover",
- "data-object-position": objectPosition
- }) : (0,external_React_namespaceObject.createElement)("div", {
- role: "img",
- className: imgClasses,
- style: {
- backgroundPosition,
- backgroundImage
- }
- })), isVideoBackground && url && (0,external_React_namespaceObject.createElement)("video", {
- className: classnames_default()('wp-block-cover__video-background', 'intrinsic-ignore'),
- autoPlay: true,
- muted: true,
- loop: true,
- playsInline: true,
- src: url,
- style: {
- objectPosition
- },
- "data-object-fit": "cover",
- "data-object-position": objectPosition
- }), (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
- className: 'wp-block-cover__inner-container'
- })
- }));
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-hidden": "true",
+ className: dist_clsx('wp-block-cover__background', overlayColorClass, dimRatioToClass(dimRatio), {
+ 'has-background-dim': dimRatio !== undefined,
+ // For backwards compatibility. Former versions of the Cover Block applied
+ // `.wp-block-cover__gradient-background` in the presence of
+ // media, a gradient and a dim.
+ 'wp-block-cover__gradient-background': url && gradientValue && dimRatio !== 0,
+ 'has-background-gradient': gradientValue,
+ [gradientClass]: gradientClass
+ }),
+ style: bgStyle
+ }), !useFeaturedImage && isImageBackground && url && (isImgElement ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ className: imgClasses,
+ alt: alt,
+ src: url,
+ style: {
+ objectPosition
+ },
+ "data-object-fit": "cover",
+ "data-object-position": objectPosition
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ role: "img",
+ className: imgClasses,
+ style: {
+ backgroundPosition,
+ backgroundImage
+ }
+ })), isVideoBackground && url && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
+ className: dist_clsx('wp-block-cover__video-background', 'intrinsic-ignore'),
+ autoPlay: true,
+ muted: true,
+ loop: true,
+ playsInline: true,
+ src: url,
+ style: {
+ objectPosition
+ },
+ "data-object-fit": "cover",
+ "data-object-position": objectPosition
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
+ className: 'wp-block-cover__inner-container'
+ })
+ })]
+ });
}
};
@@ -11997,67 +12275,68 @@ const v12 = {
focalPoint && isImgElement ? mediaPosition(focalPoint) : undefined;
const backgroundImage = url ? `url(${url})` : undefined;
const backgroundPosition = mediaPosition(focalPoint);
- const classes = classnames_default()({
+ const classes = dist_clsx({
'is-light': !isDark,
'has-parallax': hasParallax,
'is-repeated': isRepeated,
'has-custom-content-position': !isContentPositionCenter(contentPosition)
}, getPositionClassName(contentPosition));
- const imgClasses = classnames_default()('wp-block-cover__image-background', id ? `wp-image-${id}` : null, {
+ const imgClasses = dist_clsx('wp-block-cover__image-background', id ? `wp-image-${id}` : null, {
'has-parallax': hasParallax,
'is-repeated': isRepeated
});
const gradientValue = gradient || customGradient;
- return (0,external_React_namespaceObject.createElement)(Tag, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tag, {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: classes,
style
- })
- }, (0,external_React_namespaceObject.createElement)("span", {
- "aria-hidden": "true",
- className: classnames_default()('wp-block-cover__background', overlayColorClass, dimRatioToClass(dimRatio), {
- 'has-background-dim': dimRatio !== undefined,
- // For backwards compatibility. Former versions of the Cover Block applied
- // `.wp-block-cover__gradient-background` in the presence of
- // media, a gradient and a dim.
- 'wp-block-cover__gradient-background': url && gradientValue && dimRatio !== 0,
- 'has-background-gradient': gradientValue,
- [gradientClass]: gradientClass
}),
- style: bgStyle
- }), !useFeaturedImage && isImageBackground && url && (isImgElement ? (0,external_React_namespaceObject.createElement)("img", {
- className: imgClasses,
- alt: alt,
- src: url,
- style: {
- objectPosition
- },
- "data-object-fit": "cover",
- "data-object-position": objectPosition
- }) : (0,external_React_namespaceObject.createElement)("div", {
- role: "img",
- className: imgClasses,
- style: {
- backgroundPosition,
- backgroundImage
- }
- })), isVideoBackground && url && (0,external_React_namespaceObject.createElement)("video", {
- className: classnames_default()('wp-block-cover__video-background', 'intrinsic-ignore'),
- autoPlay: true,
- muted: true,
- loop: true,
- playsInline: true,
- src: url,
- style: {
- objectPosition
- },
- "data-object-fit": "cover",
- "data-object-position": objectPosition
- }), (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
- className: 'wp-block-cover__inner-container'
- })
- }));
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-hidden": "true",
+ className: dist_clsx('wp-block-cover__background', overlayColorClass, dimRatioToClass(dimRatio), {
+ 'has-background-dim': dimRatio !== undefined,
+ // For backwards compatibility. Former versions of the Cover Block applied
+ // `.wp-block-cover__gradient-background` in the presence of
+ // media, a gradient and a dim.
+ 'wp-block-cover__gradient-background': url && gradientValue && dimRatio !== 0,
+ 'has-background-gradient': gradientValue,
+ [gradientClass]: gradientClass
+ }),
+ style: bgStyle
+ }), !useFeaturedImage && isImageBackground && url && (isImgElement ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ className: imgClasses,
+ alt: alt,
+ src: url,
+ style: {
+ objectPosition
+ },
+ "data-object-fit": "cover",
+ "data-object-position": objectPosition
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ role: "img",
+ className: imgClasses,
+ style: {
+ backgroundPosition,
+ backgroundImage
+ }
+ })), isVideoBackground && url && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
+ className: dist_clsx('wp-block-cover__video-background', 'intrinsic-ignore'),
+ autoPlay: true,
+ muted: true,
+ loop: true,
+ playsInline: true,
+ src: url,
+ style: {
+ objectPosition
+ },
+ "data-object-fit": "cover",
+ "data-object-position": objectPosition
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
+ className: 'wp-block-cover__inner-container'
+ })
+ })]
+ });
}
};
@@ -12105,67 +12384,68 @@ const deprecated_v11 = {
focalPoint && isImgElement ? mediaPosition(focalPoint) : undefined;
const backgroundImage = url ? `url(${url})` : undefined;
const backgroundPosition = mediaPosition(focalPoint);
- const classes = classnames_default()({
+ const classes = dist_clsx({
'is-light': !isDark,
'has-parallax': hasParallax,
'is-repeated': isRepeated,
'has-custom-content-position': !isContentPositionCenter(contentPosition)
}, getPositionClassName(contentPosition));
- const imgClasses = classnames_default()('wp-block-cover__image-background', id ? `wp-image-${id}` : null, {
+ const imgClasses = dist_clsx('wp-block-cover__image-background', id ? `wp-image-${id}` : null, {
'has-parallax': hasParallax,
'is-repeated': isRepeated
});
const gradientValue = gradient || customGradient;
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: classes,
style
- })
- }, (0,external_React_namespaceObject.createElement)("span", {
- "aria-hidden": "true",
- className: classnames_default()('wp-block-cover__background', overlayColorClass, dimRatioToClass(dimRatio), {
- 'has-background-dim': dimRatio !== undefined,
- // For backwards compatibility. Former versions of the Cover Block applied
- // `.wp-block-cover__gradient-background` in the presence of
- // media, a gradient and a dim.
- 'wp-block-cover__gradient-background': url && gradientValue && dimRatio !== 0,
- 'has-background-gradient': gradientValue,
- [gradientClass]: gradientClass
}),
- style: bgStyle
- }), !useFeaturedImage && isImageBackground && url && (isImgElement ? (0,external_React_namespaceObject.createElement)("img", {
- className: imgClasses,
- alt: alt,
- src: url,
- style: {
- objectPosition
- },
- "data-object-fit": "cover",
- "data-object-position": objectPosition
- }) : (0,external_React_namespaceObject.createElement)("div", {
- role: "img",
- className: imgClasses,
- style: {
- backgroundPosition,
- backgroundImage
- }
- })), isVideoBackground && url && (0,external_React_namespaceObject.createElement)("video", {
- className: classnames_default()('wp-block-cover__video-background', 'intrinsic-ignore'),
- autoPlay: true,
- muted: true,
- loop: true,
- playsInline: true,
- src: url,
- style: {
- objectPosition
- },
- "data-object-fit": "cover",
- "data-object-position": objectPosition
- }), (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
- className: 'wp-block-cover__inner-container'
- })
- }));
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-hidden": "true",
+ className: dist_clsx('wp-block-cover__background', overlayColorClass, dimRatioToClass(dimRatio), {
+ 'has-background-dim': dimRatio !== undefined,
+ // For backwards compatibility. Former versions of the Cover Block applied
+ // `.wp-block-cover__gradient-background` in the presence of
+ // media, a gradient and a dim.
+ 'wp-block-cover__gradient-background': url && gradientValue && dimRatio !== 0,
+ 'has-background-gradient': gradientValue,
+ [gradientClass]: gradientClass
+ }),
+ style: bgStyle
+ }), !useFeaturedImage && isImageBackground && url && (isImgElement ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ className: imgClasses,
+ alt: alt,
+ src: url,
+ style: {
+ objectPosition
+ },
+ "data-object-fit": "cover",
+ "data-object-position": objectPosition
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ role: "img",
+ className: imgClasses,
+ style: {
+ backgroundPosition,
+ backgroundImage
+ }
+ })), isVideoBackground && url && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
+ className: dist_clsx('wp-block-cover__video-background', 'intrinsic-ignore'),
+ autoPlay: true,
+ muted: true,
+ loop: true,
+ playsInline: true,
+ src: url,
+ style: {
+ objectPosition
+ },
+ "data-object-fit": "cover",
+ "data-object-position": objectPosition
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
+ className: 'wp-block-cover__inner-container'
+ })
+ })]
+ });
},
migrate: migrateTag
};
@@ -12213,56 +12493,57 @@ const deprecated_v10 = {
const objectPosition =
// prettier-ignore
focalPoint && isImgElement ? `${Math.round(focalPoint.x * 100)}% ${Math.round(focalPoint.y * 100)}%` : undefined;
- const classes = classnames_default()({
+ const classes = dist_clsx({
'is-light': !isDark,
'has-parallax': hasParallax,
'is-repeated': isRepeated,
'has-custom-content-position': !isContentPositionCenter(contentPosition)
}, getPositionClassName(contentPosition));
const gradientValue = gradient || customGradient;
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: classes,
style
- })
- }, (0,external_React_namespaceObject.createElement)("span", {
- "aria-hidden": "true",
- className: classnames_default()('wp-block-cover__background', overlayColorClass, dimRatioToClass(dimRatio), {
- 'has-background-dim': dimRatio !== undefined,
- // For backwards compatibility. Former versions of the Cover Block applied
- // `.wp-block-cover__gradient-background` in the presence of
- // media, a gradient and a dim.
- 'wp-block-cover__gradient-background': url && gradientValue && dimRatio !== 0,
- 'has-background-gradient': gradientValue,
- [gradientClass]: gradientClass
}),
- style: bgStyle
- }), !useFeaturedImage && isImageBackground && isImgElement && url && (0,external_React_namespaceObject.createElement)("img", {
- className: classnames_default()('wp-block-cover__image-background', id ? `wp-image-${id}` : null),
- alt: alt,
- src: url,
- style: {
- objectPosition
- },
- "data-object-fit": "cover",
- "data-object-position": objectPosition
- }), isVideoBackground && url && (0,external_React_namespaceObject.createElement)("video", {
- className: classnames_default()('wp-block-cover__video-background', 'intrinsic-ignore'),
- autoPlay: true,
- muted: true,
- loop: true,
- playsInline: true,
- src: url,
- style: {
- objectPosition
- },
- "data-object-fit": "cover",
- "data-object-position": objectPosition
- }), (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
- className: 'wp-block-cover__inner-container'
- })
- }));
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-hidden": "true",
+ className: dist_clsx('wp-block-cover__background', overlayColorClass, dimRatioToClass(dimRatio), {
+ 'has-background-dim': dimRatio !== undefined,
+ // For backwards compatibility. Former versions of the Cover Block applied
+ // `.wp-block-cover__gradient-background` in the presence of
+ // media, a gradient and a dim.
+ 'wp-block-cover__gradient-background': url && gradientValue && dimRatio !== 0,
+ 'has-background-gradient': gradientValue,
+ [gradientClass]: gradientClass
+ }),
+ style: bgStyle
+ }), !useFeaturedImage && isImageBackground && isImgElement && url && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ className: dist_clsx('wp-block-cover__image-background', id ? `wp-image-${id}` : null),
+ alt: alt,
+ src: url,
+ style: {
+ objectPosition
+ },
+ "data-object-fit": "cover",
+ "data-object-position": objectPosition
+ }), isVideoBackground && url && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
+ className: dist_clsx('wp-block-cover__video-background', 'intrinsic-ignore'),
+ autoPlay: true,
+ muted: true,
+ loop: true,
+ playsInline: true,
+ src: url,
+ style: {
+ objectPosition
+ },
+ "data-object-fit": "cover",
+ "data-object-position": objectPosition
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
+ className: 'wp-block-cover__inner-container'
+ })
+ })]
+ });
},
migrate: migrateTag
};
@@ -12309,56 +12590,57 @@ const v9 = {
const objectPosition =
// prettier-ignore
focalPoint && isImgElement ? `${Math.round(focalPoint.x * 100)}% ${Math.round(focalPoint.y * 100)}%` : undefined;
- const classes = classnames_default()({
+ const classes = dist_clsx({
'is-light': !isDark,
'has-parallax': hasParallax,
'is-repeated': isRepeated,
'has-custom-content-position': !isContentPositionCenter(contentPosition)
}, getPositionClassName(contentPosition));
const gradientValue = gradient || customGradient;
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: classes,
style
- })
- }, (0,external_React_namespaceObject.createElement)("span", {
- "aria-hidden": "true",
- className: classnames_default()('wp-block-cover__background', overlayColorClass, dimRatioToClass(dimRatio), {
- 'has-background-dim': dimRatio !== undefined,
- // For backwards compatibility. Former versions of the Cover Block applied
- // `.wp-block-cover__gradient-background` in the presence of
- // media, a gradient and a dim.
- 'wp-block-cover__gradient-background': url && gradientValue && dimRatio !== 0,
- 'has-background-gradient': gradientValue,
- [gradientClass]: gradientClass
}),
- style: bgStyle
- }), isImageBackground && isImgElement && url && (0,external_React_namespaceObject.createElement)("img", {
- className: classnames_default()('wp-block-cover__image-background', id ? `wp-image-${id}` : null),
- alt: alt,
- src: url,
- style: {
- objectPosition
- },
- "data-object-fit": "cover",
- "data-object-position": objectPosition
- }), isVideoBackground && url && (0,external_React_namespaceObject.createElement)("video", {
- className: classnames_default()('wp-block-cover__video-background', 'intrinsic-ignore'),
- autoPlay: true,
- muted: true,
- loop: true,
- playsInline: true,
- src: url,
- style: {
- objectPosition
- },
- "data-object-fit": "cover",
- "data-object-position": objectPosition
- }), (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
- className: 'wp-block-cover__inner-container'
- })
- }));
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-hidden": "true",
+ className: dist_clsx('wp-block-cover__background', overlayColorClass, dimRatioToClass(dimRatio), {
+ 'has-background-dim': dimRatio !== undefined,
+ // For backwards compatibility. Former versions of the Cover Block applied
+ // `.wp-block-cover__gradient-background` in the presence of
+ // media, a gradient and a dim.
+ 'wp-block-cover__gradient-background': url && gradientValue && dimRatio !== 0,
+ 'has-background-gradient': gradientValue,
+ [gradientClass]: gradientClass
+ }),
+ style: bgStyle
+ }), isImageBackground && isImgElement && url && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ className: dist_clsx('wp-block-cover__image-background', id ? `wp-image-${id}` : null),
+ alt: alt,
+ src: url,
+ style: {
+ objectPosition
+ },
+ "data-object-fit": "cover",
+ "data-object-position": objectPosition
+ }), isVideoBackground && url && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
+ className: dist_clsx('wp-block-cover__video-background', 'intrinsic-ignore'),
+ autoPlay: true,
+ muted: true,
+ loop: true,
+ playsInline: true,
+ src: url,
+ style: {
+ objectPosition
+ },
+ "data-object-fit": "cover",
+ "data-object-position": objectPosition
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
+ className: 'wp-block-cover__inner-container'
+ })
+ })]
+ });
},
migrate: migrateTag
};
@@ -12405,51 +12687,52 @@ const v8 = {
const objectPosition =
// prettier-ignore
focalPoint && isImgElement ? `${Math.round(focalPoint.x * 100)}% ${Math.round(focalPoint.y * 100)}%` : undefined;
- const classes = classnames_default()({
+ const classes = dist_clsx({
'is-light': !isDark,
'has-parallax': hasParallax,
'is-repeated': isRepeated,
'has-custom-content-position': !isContentPositionCenter(contentPosition)
}, getPositionClassName(contentPosition));
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: classes,
style
- })
- }, (0,external_React_namespaceObject.createElement)("span", {
- "aria-hidden": "true",
- className: classnames_default()(overlayColorClass, dimRatioToClass(dimRatio), 'wp-block-cover__gradient-background', gradientClass, {
- 'has-background-dim': dimRatio !== undefined,
- 'has-background-gradient': gradient || customGradient,
- [gradientClass]: !url && gradientClass
}),
- style: bgStyle
- }), isImageBackground && isImgElement && url && (0,external_React_namespaceObject.createElement)("img", {
- className: classnames_default()('wp-block-cover__image-background', id ? `wp-image-${id}` : null),
- alt: alt,
- src: url,
- style: {
- objectPosition
- },
- "data-object-fit": "cover",
- "data-object-position": objectPosition
- }), isVideoBackground && url && (0,external_React_namespaceObject.createElement)("video", {
- className: classnames_default()('wp-block-cover__video-background', 'intrinsic-ignore'),
- autoPlay: true,
- muted: true,
- loop: true,
- playsInline: true,
- src: url,
- style: {
- objectPosition
- },
- "data-object-fit": "cover",
- "data-object-position": objectPosition
- }), (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
- className: 'wp-block-cover__inner-container'
- })
- }));
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-hidden": "true",
+ className: dist_clsx(overlayColorClass, dimRatioToClass(dimRatio), 'wp-block-cover__gradient-background', gradientClass, {
+ 'has-background-dim': dimRatio !== undefined,
+ 'has-background-gradient': gradient || customGradient,
+ [gradientClass]: !url && gradientClass
+ }),
+ style: bgStyle
+ }), isImageBackground && isImgElement && url && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ className: dist_clsx('wp-block-cover__image-background', id ? `wp-image-${id}` : null),
+ alt: alt,
+ src: url,
+ style: {
+ objectPosition
+ },
+ "data-object-fit": "cover",
+ "data-object-position": objectPosition
+ }), isVideoBackground && url && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
+ className: dist_clsx('wp-block-cover__video-background', 'intrinsic-ignore'),
+ autoPlay: true,
+ muted: true,
+ loop: true,
+ playsInline: true,
+ src: url,
+ style: {
+ objectPosition
+ },
+ "data-object-fit": "cover",
+ "data-object-position": objectPosition
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
+ className: 'wp-block-cover__inner-container'
+ })
+ })]
+ });
},
migrate: migrateTag
};
@@ -12519,7 +12802,7 @@ const v7 = {
const objectPosition =
// prettier-ignore
focalPoint && isImgElement ? `${Math.round(focalPoint.x * 100)}% ${Math.round(focalPoint.y * 100)}%` : undefined;
- const classes = classnames_default()(dimRatioToClassV1(dimRatio), overlayColorClass, {
+ const classes = dist_clsx(dimRatioToClassV1(dimRatio), overlayColorClass, {
'has-background-dim': dimRatio !== 0,
'has-parallax': hasParallax,
'is-repeated': isRepeated,
@@ -12527,41 +12810,43 @@ const v7 = {
[gradientClass]: !url && gradientClass,
'has-custom-content-position': !isContentPositionCenter(contentPosition)
}, getPositionClassName(contentPosition));
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: classes,
style
- })
- }, url && (gradient || customGradient) && dimRatio !== 0 && (0,external_React_namespaceObject.createElement)("span", {
- "aria-hidden": "true",
- className: classnames_default()('wp-block-cover__gradient-background', gradientClass),
- style: customGradient ? {
- background: customGradient
- } : undefined
- }), isImageBackground && isImgElement && url && (0,external_React_namespaceObject.createElement)("img", {
- className: classnames_default()('wp-block-cover__image-background', id ? `wp-image-${id}` : null),
- alt: alt,
- src: url,
- style: {
- objectPosition
- },
- "data-object-fit": "cover",
- "data-object-position": objectPosition
- }), isVideoBackground && url && (0,external_React_namespaceObject.createElement)("video", {
- className: classnames_default()('wp-block-cover__video-background', 'intrinsic-ignore'),
- autoPlay: true,
- muted: true,
- loop: true,
- playsInline: true,
- src: url,
- style: {
- objectPosition
- },
- "data-object-fit": "cover",
- "data-object-position": objectPosition
- }), (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-cover__inner-container"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)));
+ }),
+ children: [url && (gradient || customGradient) && dimRatio !== 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-hidden": "true",
+ className: dist_clsx('wp-block-cover__gradient-background', gradientClass),
+ style: customGradient ? {
+ background: customGradient
+ } : undefined
+ }), isImageBackground && isImgElement && url && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ className: dist_clsx('wp-block-cover__image-background', id ? `wp-image-${id}` : null),
+ alt: alt,
+ src: url,
+ style: {
+ objectPosition
+ },
+ "data-object-fit": "cover",
+ "data-object-position": objectPosition
+ }), isVideoBackground && url && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
+ className: dist_clsx('wp-block-cover__video-background', 'intrinsic-ignore'),
+ autoPlay: true,
+ muted: true,
+ loop: true,
+ playsInline: true,
+ src: url,
+ style: {
+ objectPosition
+ },
+ "data-object-fit": "cover",
+ "data-object-position": objectPosition
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-cover__inner-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ })]
+ });
},
migrate: (0,external_wp_compose_namespaceObject.compose)(migrateDimRatio, migrateTag)
};
@@ -12633,7 +12918,7 @@ const v6 = {
videoStyle.objectPosition = positionValue;
}
}
- const classes = classnames_default()(dimRatioToClassV1(dimRatio), overlayColorClass, {
+ const classes = dist_clsx(dimRatioToClassV1(dimRatio), overlayColorClass, {
'has-background-dim': dimRatio !== 0,
'has-parallax': hasParallax,
'is-repeated': isRepeated,
@@ -12641,28 +12926,30 @@ const v6 = {
[gradientClass]: !url && gradientClass,
'has-custom-content-position': !isContentPositionCenter(contentPosition)
}, getPositionClassName(contentPosition));
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: classes,
style
- })
- }, url && (gradient || customGradient) && dimRatio !== 0 && (0,external_React_namespaceObject.createElement)("span", {
- "aria-hidden": "true",
- className: classnames_default()('wp-block-cover__gradient-background', gradientClass),
- style: customGradient ? {
- background: customGradient
- } : undefined
- }), isVideoBackground && url && (0,external_React_namespaceObject.createElement)("video", {
- className: "wp-block-cover__video-background",
- autoPlay: true,
- muted: true,
- loop: true,
- playsInline: true,
- src: url,
- style: videoStyle
- }), (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-cover__inner-container"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)));
+ }),
+ children: [url && (gradient || customGradient) && dimRatio !== 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-hidden": "true",
+ className: dist_clsx('wp-block-cover__gradient-background', gradientClass),
+ style: customGradient ? {
+ background: customGradient
+ } : undefined
+ }), isVideoBackground && url && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
+ className: "wp-block-cover__video-background",
+ autoPlay: true,
+ muted: true,
+ loop: true,
+ playsInline: true,
+ src: url,
+ style: videoStyle
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-cover__inner-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ })]
+ });
},
migrate: (0,external_wp_compose_namespaceObject.compose)(migrateDimRatio, migrateTag)
};
@@ -12710,30 +12997,32 @@ const v5 = {
style.background = customGradient;
}
style.minHeight = minHeight || undefined;
- const classes = classnames_default()(dimRatioToClassV1(dimRatio), overlayColorClass, {
+ const classes = dist_clsx(dimRatioToClassV1(dimRatio), overlayColorClass, {
'has-background-dim': dimRatio !== 0,
'has-parallax': hasParallax,
'has-background-gradient': customGradient,
[gradientClass]: !url && gradientClass
});
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: classes,
- style: style
- }, url && (gradient || customGradient) && dimRatio !== 0 && (0,external_React_namespaceObject.createElement)("span", {
- "aria-hidden": "true",
- className: classnames_default()('wp-block-cover__gradient-background', gradientClass),
- style: customGradient ? {
- background: customGradient
- } : undefined
- }), VIDEO_BACKGROUND_TYPE === backgroundType && url && (0,external_React_namespaceObject.createElement)("video", {
- className: "wp-block-cover__video-background",
- autoPlay: true,
- muted: true,
- loop: true,
- src: url
- }), (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-cover__inner-container"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)));
+ style: style,
+ children: [url && (gradient || customGradient) && dimRatio !== 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-hidden": "true",
+ className: dist_clsx('wp-block-cover__gradient-background', gradientClass),
+ style: customGradient ? {
+ background: customGradient
+ } : undefined
+ }), VIDEO_BACKGROUND_TYPE === backgroundType && url && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
+ className: "wp-block-cover__video-background",
+ autoPlay: true,
+ muted: true,
+ loop: true,
+ src: url
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-cover__inner-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ })]
+ });
},
migrate: (0,external_wp_compose_namespaceObject.compose)(migrateDimRatio, migrateTag)
};
@@ -12781,30 +13070,32 @@ const v4 = {
style.background = customGradient;
}
style.minHeight = minHeight || undefined;
- const classes = classnames_default()(dimRatioToClassV1(dimRatio), overlayColorClass, {
+ const classes = dist_clsx(dimRatioToClassV1(dimRatio), overlayColorClass, {
'has-background-dim': dimRatio !== 0,
'has-parallax': hasParallax,
'has-background-gradient': customGradient,
[gradientClass]: !url && gradientClass
});
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: classes,
- style: style
- }, url && (gradient || customGradient) && dimRatio !== 0 && (0,external_React_namespaceObject.createElement)("span", {
- "aria-hidden": "true",
- className: classnames_default()('wp-block-cover__gradient-background', gradientClass),
- style: customGradient ? {
- background: customGradient
- } : undefined
- }), VIDEO_BACKGROUND_TYPE === backgroundType && url && (0,external_React_namespaceObject.createElement)("video", {
- className: "wp-block-cover__video-background",
- autoPlay: true,
- muted: true,
- loop: true,
- src: url
- }), (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-cover__inner-container"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)));
+ style: style,
+ children: [url && (gradient || customGradient) && dimRatio !== 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-hidden": "true",
+ className: dist_clsx('wp-block-cover__gradient-background', gradientClass),
+ style: customGradient ? {
+ background: customGradient
+ } : undefined
+ }), VIDEO_BACKGROUND_TYPE === backgroundType && url && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
+ className: "wp-block-cover__video-background",
+ autoPlay: true,
+ muted: true,
+ loop: true,
+ src: url
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-cover__inner-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ })]
+ });
},
migrate: (0,external_wp_compose_namespaceObject.compose)(migrateDimRatio, migrateTag)
};
@@ -12846,25 +13137,26 @@ const v3 = {
if (focalPoint && !hasParallax) {
style.backgroundPosition = `${focalPoint.x * 100}% ${focalPoint.y * 100}%`;
}
- const classes = classnames_default()(dimRatioToClassV1(dimRatio), overlayColorClass, {
+ const classes = dist_clsx(dimRatioToClassV1(dimRatio), overlayColorClass, {
'has-background-dim': dimRatio !== 0,
'has-parallax': hasParallax,
[`has-${contentAlign}-content`]: contentAlign !== 'center'
});
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: classes,
- style: style
- }, VIDEO_BACKGROUND_TYPE === backgroundType && url && (0,external_React_namespaceObject.createElement)("video", {
- className: "wp-block-cover__video-background",
- autoPlay: true,
- muted: true,
- loop: true,
- src: url
- }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(title) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "p",
- className: "wp-block-cover-text",
- value: title
- }));
+ style: style,
+ children: [VIDEO_BACKGROUND_TYPE === backgroundType && url && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
+ className: "wp-block-cover__video-background",
+ autoPlay: true,
+ muted: true,
+ loop: true,
+ src: url
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(title) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "p",
+ className: "wp-block-cover-text",
+ value: title
+ })]
+ });
},
migrate(attributes) {
const newAttribs = {
@@ -12922,19 +13214,20 @@ const v2 = {
if (!overlayColorClass) {
style.backgroundColor = customOverlayColor;
}
- const classes = classnames_default()('wp-block-cover-image', dimRatioToClassV1(dimRatio), overlayColorClass, {
+ const classes = dist_clsx('wp-block-cover-image', dimRatioToClassV1(dimRatio), overlayColorClass, {
'has-background-dim': dimRatio !== 0,
'has-parallax': hasParallax,
[`has-${contentAlign}-content`]: contentAlign !== 'center'
}, align ? `align${align}` : null);
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: classes,
- style: style
- }, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(title) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "p",
- className: "wp-block-cover-image-text",
- value: title
- }));
+ style: style,
+ children: !external_wp_blockEditor_namespaceObject.RichText.isEmpty(title) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "p",
+ className: "wp-block-cover-image-text",
+ value: title
+ })
+ });
},
migrate(attributes) {
const newAttribs = {
@@ -12986,17 +13279,18 @@ const cover_deprecated_v1 = {
align
} = attributes;
const style = backgroundImageStyles(url);
- const classes = classnames_default()('wp-block-cover-image', dimRatioToClassV1(dimRatio), {
+ const classes = dist_clsx('wp-block-cover-image', dimRatioToClassV1(dimRatio), {
'has-background-dim': dimRatio !== 0,
'has-parallax': hasParallax
}, align ? `align${align}` : null);
- return (0,external_React_namespaceObject.createElement)("section", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("section", {
className: classes,
- style: style
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "h2",
- value: title
- }));
+ style: style,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "h2",
+ value: title
+ })
+ });
},
migrate(attributes) {
const newAttribs = {
@@ -13021,7 +13315,6 @@ const cover_deprecated_v1 = {
/* harmony default export */ const cover_deprecated = ([v13, v12, deprecated_v11, deprecated_v10, v9, v8, v7, v6, v5, v4, v3, v2, cover_deprecated_v1]);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/edit/inspector-controls.js
-
/**
* WordPress dependencies
*/
@@ -13036,6 +13329,9 @@ const cover_deprecated_v1 = {
*/
+
+
+
const {
cleanEmptyObject: inspector_controls_cleanEmptyObject
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
@@ -13072,14 +13368,14 @@ function CoverHeightInput({
return [parsedQuantity, unit].join('');
}, [unit, value]);
const min = isPx ? COVER_MIN_HEIGHT : 0;
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
label: (0,external_wp_i18n_namespaceObject.__)('Minimum height of cover'),
id: inputId,
isResetValueOnUnitChange: true,
min: min,
onChange: handleOnChange,
onUnitChange: onUnitChange,
- __unstableInputWidth: '80px',
+ __unstableInputWidth: "80px",
units: units,
value: computedValue
});
@@ -13143,156 +13439,175 @@ function CoverInspectorControls({
aside: (0,external_wp_i18n_namespaceObject.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),
footer: (0,external_wp_i18n_namespaceObject.__)('The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).')
};
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, !!url && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, isImageBackground && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Fixed background'),
- checked: hasParallax,
- onChange: toggleParallax
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Repeated background'),
- checked: isRepeated,
- onChange: toggleIsRepeated
- })), showFocalPointPicker && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FocalPointPicker, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Focal point'),
- url: url,
- value: focalPoint,
- onDragStart: imperativeFocalPointPreview,
- onDrag: imperativeFocalPointPreview,
- onChange: newFocalPoint => setAttributes({
- focalPoint: newFocalPoint
- })
- }), !useFeaturedImage && url && !isVideoBackground && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextareaControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Alternative text'),
- value: alt,
- onChange: newAlt => setAttributes({
- alt: newAlt
- }),
- help: (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: "https://www.w3.org/WAI/tutorials/images/decision-tree"
- }, (0,external_wp_i18n_namespaceObject.__)('Describe the purpose of the image.')), (0,external_React_namespaceObject.createElement)("br", null), (0,external_wp_i18n_namespaceObject.__)('Leave empty if decorative.'))
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelRow, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "secondary",
- size: "small",
- className: "block-library-cover__reset-button",
- onClick: onClearMedia
- }, (0,external_wp_i18n_namespaceObject.__)('Clear Media'))))), colorGradientSettings.hasColorsOrGradients && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "color"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalColorGradientSettingsDropdown, {
- __experimentalIsRenderedInSidebar: true,
- settings: [{
- colorValue: overlayColor.color,
- gradientValue,
- label: (0,external_wp_i18n_namespaceObject.__)('Overlay'),
- onColorChange: setOverlayColor,
- onGradientChange: setGradient,
- isShownByDefault: true,
- resetAllFilter: () => ({
- overlayColor: undefined,
- customOverlayColor: undefined,
- gradient: undefined,
- customGradient: undefined
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: !!url && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [isImageBackground && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Fixed background'),
+ checked: hasParallax,
+ onChange: toggleParallax
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Repeated background'),
+ checked: isRepeated,
+ onChange: toggleIsRepeated
+ })]
+ }), showFocalPointPicker && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FocalPointPicker, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Focal point'),
+ url: url,
+ value: focalPoint,
+ onDragStart: imperativeFocalPointPreview,
+ onDrag: imperativeFocalPointPreview,
+ onChange: newFocalPoint => setAttributes({
+ focalPoint: newFocalPoint
+ })
+ }), !useFeaturedImage && url && !isVideoBackground && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextareaControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Alternative text'),
+ value: alt,
+ onChange: newAlt => setAttributes({
+ alt: newAlt
+ }),
+ help: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href:
+ // translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations.
+ (0,external_wp_i18n_namespaceObject.__)('https://www.w3.org/WAI/tutorials/images/decision-tree/'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Describe the purpose of the image.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("br", {}), (0,external_wp_i18n_namespaceObject.__)('Leave empty if decorative.')]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelRow, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "secondary",
+ size: "small",
+ className: "block-library-cover__reset-button",
+ onClick: onClearMedia,
+ children: (0,external_wp_i18n_namespaceObject.__)('Clear Media')
+ })
+ })]
})
- }],
- panelId: clientId,
- ...colorGradientSettings
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- hasValue: () => {
- // If there's a media background the dimRatio will be
- // defaulted to 50 whereas it will be 100 for colors.
- return dimRatio === undefined ? false : dimRatio !== (url ? 50 : 100);
- },
- label: (0,external_wp_i18n_namespaceObject.__)('Overlay opacity'),
- onDeselect: () => updateDimRatio(url ? 50 : 100),
- resetAllFilter: () => ({
- dimRatio: url ? 50 : 100
- }),
- isShownByDefault: true,
- panelId: clientId
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Overlay opacity'),
- value: dimRatio,
- onChange: newDimRatio => updateDimRatio(newDimRatio),
- min: 0,
- max: 100,
- step: 10,
- required: true,
- __next40pxDefaultSize: true
- }))), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "dimensions"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- hasValue: () => !!minHeight,
- label: (0,external_wp_i18n_namespaceObject.__)('Minimum height'),
- onDeselect: () => setAttributes({
- minHeight: undefined,
- minHeightUnit: undefined
- }),
- resetAllFilter: () => ({
- minHeight: undefined,
- minHeightUnit: undefined
- }),
- isShownByDefault: true,
- panelId: clientId
- }, (0,external_React_namespaceObject.createElement)(CoverHeightInput, {
- value: attributes?.style?.dimensions?.aspectRatio ? '' : minHeight,
- unit: minHeightUnit,
- onChange: newMinHeight => setAttributes({
- minHeight: newMinHeight,
- style: inspector_controls_cleanEmptyObject({
- ...attributes?.style,
- dimensions: {
- ...attributes?.style?.dimensions,
- aspectRatio: undefined // Reset aspect ratio when minHeight is set.
- }
+ }), colorGradientSettings.hasColorsOrGradients && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "color",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalColorGradientSettingsDropdown, {
+ __experimentalIsRenderedInSidebar: true,
+ settings: [{
+ colorValue: overlayColor.color,
+ gradientValue,
+ label: (0,external_wp_i18n_namespaceObject.__)('Overlay'),
+ onColorChange: setOverlayColor,
+ onGradientChange: setGradient,
+ isShownByDefault: true,
+ resetAllFilter: () => ({
+ overlayColor: undefined,
+ customOverlayColor: undefined,
+ gradient: undefined,
+ customGradient: undefined
+ })
+ }],
+ panelId: clientId,
+ ...colorGradientSettings
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ hasValue: () => {
+ // If there's a media background the dimRatio will be
+ // defaulted to 50 whereas it will be 100 for colors.
+ return dimRatio === undefined ? false : dimRatio !== (url ? 50 : 100);
+ },
+ label: (0,external_wp_i18n_namespaceObject.__)('Overlay opacity'),
+ onDeselect: () => updateDimRatio(url ? 50 : 100),
+ resetAllFilter: () => ({
+ dimRatio: url ? 50 : 100
+ }),
+ isShownByDefault: true,
+ panelId: clientId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Overlay opacity'),
+ value: dimRatio,
+ onChange: newDimRatio => updateDimRatio(newDimRatio),
+ min: 0,
+ max: 100,
+ step: 10,
+ required: true,
+ __next40pxDefaultSize: true
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "dimensions",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ hasValue: () => !!minHeight,
+ label: (0,external_wp_i18n_namespaceObject.__)('Minimum height'),
+ onDeselect: () => setAttributes({
+ minHeight: undefined,
+ minHeightUnit: undefined
+ }),
+ resetAllFilter: () => ({
+ minHeight: undefined,
+ minHeightUnit: undefined
+ }),
+ isShownByDefault: true,
+ panelId: clientId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CoverHeightInput, {
+ value: attributes?.style?.dimensions?.aspectRatio ? '' : minHeight,
+ unit: minHeightUnit,
+ onChange: newMinHeight => setAttributes({
+ minHeight: newMinHeight,
+ style: inspector_controls_cleanEmptyObject({
+ ...attributes?.style,
+ dimensions: {
+ ...attributes?.style?.dimensions,
+ aspectRatio: undefined // Reset aspect ratio when minHeight is set.
+ }
+ })
+ }),
+ onUnitChange: nextUnit => setAttributes({
+ minHeightUnit: nextUnit
+ })
+ })
})
- }),
- onUnitChange: nextUnit => setAttributes({
- minHeightUnit: nextUnit
- })
- }))), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "advanced"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('HTML element'),
- options: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Default (<div>)'),
- value: 'div'
- }, {
- label: '<header>',
- value: 'header'
- }, {
- label: '<main>',
- value: 'main'
- }, {
- label: '<section>',
- value: 'section'
- }, {
- label: '<article>',
- value: 'article'
- }, {
- label: '<aside>',
- value: 'aside'
- }, {
- label: '<footer>',
- value: 'footer'
- }],
- value: tagName,
- onChange: value => setAttributes({
- tagName: value
- }),
- help: htmlElementMessages[tagName]
- })));
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "advanced",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('HTML element'),
+ options: [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Default (<div>)'),
+ value: 'div'
+ }, {
+ label: '<header>',
+ value: 'header'
+ }, {
+ label: '<main>',
+ value: 'main'
+ }, {
+ label: '<section>',
+ value: 'section'
+ }, {
+ label: '<article>',
+ value: 'article'
+ }, {
+ label: '<aside>',
+ value: 'aside'
+ }, {
+ label: '<footer>',
+ value: 'footer'
+ }],
+ value: tagName,
+ onChange: value => setAttributes({
+ tagName: value
+ }),
+ help: htmlElementMessages[tagName]
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/edit/block-controls.js
-
/**
* WordPress dependencies
*/
@@ -13305,6 +13620,9 @@ function CoverInspectorControls({
*/
+
+
+
const {
cleanEmptyObject: block_controls_cleanEmptyObject
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
@@ -13361,35 +13679,38 @@ function CoverBlockControls({
})
});
};
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalBlockAlignmentMatrixControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Change content position'),
- value: contentPosition,
- onChange: nextPosition => setAttributes({
- contentPosition: nextPosition
- }),
- isDisabled: !hasInnerBlocks
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalBlockFullHeightAligmentControl, {
- isActive: isMinFullHeight,
- onToggle: toggleMinFullHeight,
- isDisabled: !hasInnerBlocks
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "other"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, {
- mediaId: id,
- mediaURL: url,
- allowedTypes: shared_ALLOWED_MEDIA_TYPES,
- accept: "image/*,video/*",
- onSelect: onSelectMedia,
- onToggleFeaturedImage: toggleUseFeaturedImage,
- useFeaturedImage: useFeaturedImage,
- name: !url ? (0,external_wp_i18n_namespaceObject.__)('Add Media') : (0,external_wp_i18n_namespaceObject.__)('Replace')
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalBlockAlignmentMatrixControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Change content position'),
+ value: contentPosition,
+ onChange: nextPosition => setAttributes({
+ contentPosition: nextPosition
+ }),
+ isDisabled: !hasInnerBlocks
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalBlockFullHeightAligmentControl, {
+ isActive: isMinFullHeight,
+ onToggle: toggleMinFullHeight,
+ isDisabled: !hasInnerBlocks
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "other",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, {
+ mediaId: id,
+ mediaURL: url,
+ allowedTypes: shared_ALLOWED_MEDIA_TYPES,
+ accept: "image/*,video/*",
+ onSelect: onSelectMedia,
+ onToggleFeaturedImage: toggleUseFeaturedImage,
+ useFeaturedImage: useFeaturedImage,
+ name: !url ? (0,external_wp_i18n_namespaceObject.__)('Add Media') : (0,external_wp_i18n_namespaceObject.__)('Replace')
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/edit/cover-placeholder.js
-
/**
* WordPress dependencies
*/
@@ -13401,6 +13722,7 @@ function CoverBlockControls({
* Internal dependencies
*/
+
function CoverPlaceholder({
disableMediaButtons = false,
children,
@@ -13409,8 +13731,8 @@ function CoverPlaceholder({
style,
toggleUseFeaturedImage
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
- icon: (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
icon: library_cover
}),
labels: {
@@ -13423,12 +13745,12 @@ function CoverPlaceholder({
disableMediaButtons: disableMediaButtons,
onToggleFeaturedImage: toggleUseFeaturedImage,
onError: onError,
- style: style
- }, children);
+ style: style,
+ children: children
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/edit/resizable-cover-popover.js
-
/**
* External dependencies
*/
@@ -13444,6 +13766,7 @@ function CoverPlaceholder({
* Internal dependencies
*/
+
const RESIZABLE_BOX_ENABLE_OPTION = {
top: false,
right: false,
@@ -13470,13 +13793,8 @@ function ResizableCoverPopover({
...props
}) {
const [isResizing, setIsResizing] = (0,external_wp_element_namespaceObject.useState)(false);
- const dimensions = (0,external_wp_element_namespaceObject.useMemo)(() => ({
- height,
- minHeight,
- width
- }), [minHeight, height, width]);
const resizableBoxProps = {
- className: classnames_default()(className, {
+ className: dist_clsx(className, {
'is-resizing': isResizing
}),
enable: RESIZABLE_BOX_ENABLE_OPTION,
@@ -13503,16 +13821,15 @@ function ResizableCoverPopover({
isVisible: isResizing
}
};
- return (0,external_React_namespaceObject.createElement)(ResizableBoxPopover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResizableBoxPopover, {
className: "block-library-cover__resizable-box-popover",
- __unstableRefreshSize: dimensions,
resizableBoxProps: resizableBoxProps,
...props
});
}
;// CONCATENATED MODULE: ./node_modules/colord/index.mjs
-var r={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(r){return"string"==typeof r?r.length>0:"number"==typeof r},n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},a=function(r){return{r:e(r.r,0,255),g:e(r.g,0,255),b:e(r.b,0,255),a:e(r.a)}},o=function(r){return{r:n(r.r),g:n(r.g),b:n(r.b),a:n(r.a,3)}},i=/^#([0-9a-f]{3,8})$/i,s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},g=function(r){return{h:u(r.h),s:e(r.s,0,100),l:e(r.l,0,100),a:e(r.a)}},d=function(r){return{h:n(r.h),s:n(r.s),l:n(r.l),a:n(r.a,3)}},f=function(r){return b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},c=function(r){return{h:(t=h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y={string:[[function(r){var t=i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=v.exec(r)||m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=l.exec(t)||p.exec(t);if(!n)return null;var e,u,a=g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return f(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return t(n)&&t(e)&&t(u)?a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!t(n)||!t(e)||!t(u))return null;var i=g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return f(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!t(n)||!t(a)||!t(o))return null;var h=function(r){return{h:u(r.h),s:e(r.s,0,100),v:e(r.v,0,100),a:e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return b(h)},"hsv"]]},N=function(r,t){for(var n=0;n<t.length;n++){var e=t[n][0](r);if(e)return[e,t[n][1]]}return[null,void 0]},x=function(r){return"string"==typeof r?N(r.trim(),y.string):"object"==typeof r&&null!==r?N(r,y.object):[null,void 0]},I=function(r){return x(r)[1]},M=function(r,t){var n=c(r);return{h:n.h,s:e(n.s+100*t,0,100),l:n.l,a:n.a}},H=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},$=function(r,t){var n=c(r);return{h:n.h,s:n.s,l:e(n.l+100*t,0,100),a:n.a}},j=function(){function r(r){this.parsed=x(r)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return n(H(this.rgba),2)},r.prototype.isDark=function(){return H(this.rgba)<.5},r.prototype.isLight=function(){return H(this.rgba)>=.5},r.prototype.toHex=function(){return r=o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?s(n(255*a)):"","#"+s(t)+s(e)+s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return o(this.rgba)},r.prototype.toRgbString=function(){return r=o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u},r.prototype.toHsl=function(){return d(c(this.rgba))},r.prototype.toHslString=function(){return r=d(c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u},r.prototype.toHsv=function(){return r=h(this.rgba),{h:n(r.h),s:n(r.s),v:n(r.v),a:n(r.a,3)};var r},r.prototype.invert=function(){return w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,-r))},r.prototype.grayscale=function(){return w(M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return"number"==typeof r?w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=c(this.rgba);return"number"==typeof r?w({h:r,s:t.s,l:t.l,a:t.a}):n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===w(r).toHex()},r}(),w=function(r){return r instanceof j?r:new j(r)},S=[],k=function(r){r.forEach(function(r){S.indexOf(r)<0&&(r(j,y),S.push(r))})},E=function(){return new j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})};
+var colord_r={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(r){return"string"==typeof r?r.length>0:"number"==typeof r},n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},a=function(r){return{r:e(r.r,0,255),g:e(r.g,0,255),b:e(r.b,0,255),a:e(r.a)}},o=function(r){return{r:n(r.r),g:n(r.g),b:n(r.b),a:n(r.a,3)}},i=/^#([0-9a-f]{3,8})$/i,s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},g=function(r){return{h:u(r.h),s:e(r.s,0,100),l:e(r.l,0,100),a:e(r.a)}},d=function(r){return{h:n(r.h),s:n(r.s),l:n(r.l),a:n(r.a,3)}},f=function(r){return b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},c=function(r){return{h:(t=h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y={string:[[function(r){var t=i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=v.exec(r)||m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=l.exec(t)||p.exec(t);if(!n)return null;var e,u,a=g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(colord_r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return f(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return t(n)&&t(e)&&t(u)?a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!t(n)||!t(e)||!t(u))return null;var i=g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return f(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!t(n)||!t(a)||!t(o))return null;var h=function(r){return{h:u(r.h),s:e(r.s,0,100),v:e(r.v,0,100),a:e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return b(h)},"hsv"]]},N=function(r,t){for(var n=0;n<t.length;n++){var e=t[n][0](r);if(e)return[e,t[n][1]]}return[null,void 0]},x=function(r){return"string"==typeof r?N(r.trim(),y.string):"object"==typeof r&&null!==r?N(r,y.object):[null,void 0]},I=function(r){return x(r)[1]},M=function(r,t){var n=c(r);return{h:n.h,s:e(n.s+100*t,0,100),l:n.l,a:n.a}},H=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},$=function(r,t){var n=c(r);return{h:n.h,s:n.s,l:e(n.l+100*t,0,100),a:n.a}},j=function(){function r(r){this.parsed=x(r)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return n(H(this.rgba),2)},r.prototype.isDark=function(){return H(this.rgba)<.5},r.prototype.isLight=function(){return H(this.rgba)>=.5},r.prototype.toHex=function(){return r=o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?s(n(255*a)):"","#"+s(t)+s(e)+s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return o(this.rgba)},r.prototype.toRgbString=function(){return r=o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u},r.prototype.toHsl=function(){return d(c(this.rgba))},r.prototype.toHslString=function(){return r=d(c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u},r.prototype.toHsv=function(){return r=h(this.rgba),{h:n(r.h),s:n(r.s),v:n(r.v),a:n(r.a,3)};var r},r.prototype.invert=function(){return w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,-r))},r.prototype.grayscale=function(){return w(M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return"number"==typeof r?w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=c(this.rgba);return"number"==typeof r?w({h:r,s:t.s,l:t.l,a:t.a}):n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===w(r).toHex()},r}(),w=function(r){return r instanceof j?r:new j(r)},S=[],k=function(r){r.forEach(function(r){S.indexOf(r)<0&&(r(j,y),S.push(r))})},E=function(){return new j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})};
;// CONCATENATED MODULE: ./node_modules/colord/plugins/names.mjs
/* harmony default export */ function names(e,f){var a={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var d in a)r[a[d]]=d;var l={};e.prototype.toName=function(f){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var d,i,n=r[this.toHex()];if(n)return n;if(null==f?void 0:f.closest){var o=this.toRgb(),t=1/0,b="black";if(!l.length)for(var c in a)l[c]=new e(a[c]).toRgb();for(var g in a){var u=(d=o,i=l[g],Math.pow(d.r-i.r,2)+Math.pow(d.g-i.g,2)+Math.pow(d.b-i.b,2));u<t&&(t=u,b=g)}return b}};f.string.push([function(f){var r=f.toLowerCase(),d="transparent"===r?"#0000":a[r];return d?new e(d).toRgb():null},"name"])}
@@ -14154,7 +14471,6 @@ function compositeIsDark(dimRatio, overlayColor, backgroundColor) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/edit/index.js
-
/**
* External dependencies
*/
@@ -14182,6 +14498,9 @@ function compositeIsDark(dimRatio, overlayColor, backgroundColor) {
+
+
+
function getInnerBlocksTemplate(attributes) {
return [['core/paragraph', {
align: 'center',
@@ -14439,14 +14758,14 @@ function CoverEdit({
isDark: newIsDark
});
};
- const blockControls = (0,external_React_namespaceObject.createElement)(CoverBlockControls, {
+ const blockControls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CoverBlockControls, {
attributes: attributes,
setAttributes: setAttributes,
onSelectMedia: onSelectMedia,
currentSettings: currentSettings,
toggleUseFeaturedImage: toggleUseFeaturedImage
});
- const inspectorControls = (0,external_React_namespaceObject.createElement)(CoverInspectorControls, {
+ const inspectorControls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CoverInspectorControls, {
attributes: attributes,
setAttributes: setAttributes,
clientId: clientId,
@@ -14485,29 +14804,34 @@ function CoverEdit({
width
};
if (!useFeaturedImage && !hasInnerBlocks && !hasBackground) {
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, blockControls, inspectorControls, isSelected && (0,external_React_namespaceObject.createElement)(ResizableCoverPopover, {
- ...resizableCoverProps
- }), (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps,
- className: classnames_default()('is-placeholder', blockProps.className),
- style: {
- ...blockProps.style,
- minHeight: minHeightWithUnit || undefined
- }
- }, resizeListener, (0,external_React_namespaceObject.createElement)(CoverPlaceholder, {
- onSelectMedia: onSelectMedia,
- onError: onUploadError,
- toggleUseFeaturedImage: toggleUseFeaturedImage
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-cover__placeholder-background-options"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.ColorPalette, {
- disableCustomColors: true,
- value: overlayColor.color,
- onChange: onSetOverlayColor,
- clearable: false
- })))));
- }
- const classes = classnames_default()({
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [blockControls, inspectorControls, isSelected && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResizableCoverPopover, {
+ ...resizableCoverProps
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(TagName, {
+ ...blockProps,
+ className: dist_clsx('is-placeholder', blockProps.className),
+ style: {
+ ...blockProps.style,
+ minHeight: minHeightWithUnit || undefined
+ },
+ children: [resizeListener, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CoverPlaceholder, {
+ onSelectMedia: onSelectMedia,
+ onError: onUploadError,
+ toggleUseFeaturedImage: toggleUseFeaturedImage,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-cover__placeholder-background-options",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.ColorPalette, {
+ disableCustomColors: true,
+ value: overlayColor.color,
+ onChange: onSetOverlayColor,
+ clearable: false
+ })
+ })
+ })]
+ })]
+ });
+ }
+ const classes = dist_clsx({
'is-dark-theme': isDark,
'is-light': !isDark,
'is-transient': isUploadingMedia,
@@ -14515,73 +14839,76 @@ function CoverEdit({
'is-repeated': isRepeated,
'has-custom-content-position': !isContentPositionCenter(contentPosition)
}, getPositionClassName(contentPosition));
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, blockControls, inspectorControls, (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps,
- className: classnames_default()(classes, blockProps.className),
- style: {
- ...style,
- ...blockProps.style
- },
- "data-url": url
- }, resizeListener, (!useFeaturedImage || url) && (0,external_React_namespaceObject.createElement)("span", {
- "aria-hidden": "true",
- className: classnames_default()('wp-block-cover__background', dimRatioToClass(dimRatio), {
- [overlayColor.class]: overlayColor.class,
- 'has-background-dim': dimRatio !== undefined,
- // For backwards compatibility. Former versions of the Cover Block applied
- // `.wp-block-cover__gradient-background` in the presence of
- // media, a gradient and a dim.
- 'wp-block-cover__gradient-background': url && gradientValue && dimRatio !== 0,
- 'has-background-gradient': gradientValue,
- [gradientClass]: gradientClass
- }),
- style: {
- backgroundImage: gradientValue,
- ...bgStyle
- }
- }), !url && useFeaturedImage && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- className: "wp-block-cover__image--placeholder-image",
- withIllustration: true
- }), url && isImageBackground && (isImgElement ? (0,external_React_namespaceObject.createElement)("img", {
- ref: mediaElement,
- className: "wp-block-cover__image-background",
- alt: alt,
- src: url,
- style: mediaStyle
- }) : (0,external_React_namespaceObject.createElement)("div", {
- ref: mediaElement,
- role: alt ? 'img' : undefined,
- "aria-label": alt ? alt : undefined,
- className: classnames_default()(classes, 'wp-block-cover__image-background'),
- style: {
- backgroundImage,
- backgroundPosition
- }
- })), url && isVideoBackground && (0,external_React_namespaceObject.createElement)("video", {
- ref: mediaElement,
- className: "wp-block-cover__video-background",
- autoPlay: true,
- muted: true,
- loop: true,
- src: url,
- style: mediaStyle
- }), isUploadingMedia && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null), (0,external_React_namespaceObject.createElement)(CoverPlaceholder, {
- disableMediaButtons: true,
- onSelectMedia: onSelectMedia,
- onError: onUploadError,
- toggleUseFeaturedImage: toggleUseFeaturedImage
- }), (0,external_React_namespaceObject.createElement)("div", {
- ...innerBlocksProps
- })), isSelected && (0,external_React_namespaceObject.createElement)(ResizableCoverPopover, {
- ...resizableCoverProps
- }));
+ const showOverlay = url || !useFeaturedImage || useFeaturedImage && !url;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [blockControls, inspectorControls, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(TagName, {
+ ...blockProps,
+ className: dist_clsx(classes, blockProps.className),
+ style: {
+ ...style,
+ ...blockProps.style
+ },
+ "data-url": url,
+ children: [resizeListener, showOverlay && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-hidden": "true",
+ className: dist_clsx('wp-block-cover__background', dimRatioToClass(dimRatio), {
+ [overlayColor.class]: overlayColor.class,
+ 'has-background-dim': dimRatio !== undefined,
+ // For backwards compatibility. Former versions of the Cover Block applied
+ // `.wp-block-cover__gradient-background` in the presence of
+ // media, a gradient and a dim.
+ 'wp-block-cover__gradient-background': url && gradientValue && dimRatio !== 0,
+ 'has-background-gradient': gradientValue,
+ [gradientClass]: gradientClass
+ }),
+ style: {
+ backgroundImage: gradientValue,
+ ...bgStyle
+ }
+ }), !url && useFeaturedImage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ className: "wp-block-cover__image--placeholder-image",
+ withIllustration: true
+ }), url && isImageBackground && (isImgElement ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ ref: mediaElement,
+ className: "wp-block-cover__image-background",
+ alt: alt,
+ src: url,
+ style: mediaStyle
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ref: mediaElement,
+ role: alt ? 'img' : undefined,
+ "aria-label": alt ? alt : undefined,
+ className: dist_clsx(classes, 'wp-block-cover__image-background'),
+ style: {
+ backgroundImage,
+ backgroundPosition
+ }
+ })), url && isVideoBackground && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
+ ref: mediaElement,
+ className: "wp-block-cover__video-background",
+ autoPlay: true,
+ muted: true,
+ loop: true,
+ src: url,
+ style: mediaStyle
+ }), isUploadingMedia && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CoverPlaceholder, {
+ disableMediaButtons: true,
+ onSelectMedia: onSelectMedia,
+ onError: onUploadError,
+ toggleUseFeaturedImage: toggleUseFeaturedImage
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...innerBlocksProps
+ })]
+ }), isSelected && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResizableCoverPopover, {
+ ...resizableCoverProps
+ })]
+ });
}
/* harmony default export */ const cover_edit = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_blockEditor_namespaceObject.withColors)({
overlayColor: 'background-color'
})])(CoverEdit));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/save.js
-
/**
* External dependencies
*/
@@ -14596,6 +14923,8 @@ function CoverEdit({
* Internal dependencies
*/
+
+
function cover_save_save({
attributes
}) {
@@ -14637,68 +14966,69 @@ function cover_save_save({
focalPoint && isImgElement ? mediaPosition(focalPoint) : undefined;
const backgroundImage = url ? `url(${url})` : undefined;
const backgroundPosition = mediaPosition(focalPoint);
- const classes = classnames_default()({
+ const classes = dist_clsx({
'is-light': !isDark,
'has-parallax': hasParallax,
'is-repeated': isRepeated,
'has-custom-content-position': !isContentPositionCenter(contentPosition)
}, getPositionClassName(contentPosition));
- const imgClasses = classnames_default()('wp-block-cover__image-background', id ? `wp-image-${id}` : null, {
+ const imgClasses = dist_clsx('wp-block-cover__image-background', id ? `wp-image-${id}` : null, {
'has-parallax': hasParallax,
'is-repeated': isRepeated
});
const gradientValue = gradient || customGradient;
- return (0,external_React_namespaceObject.createElement)(Tag, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tag, {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: classes,
style
- })
- }, (0,external_React_namespaceObject.createElement)("span", {
- "aria-hidden": "true",
- className: classnames_default()('wp-block-cover__background', overlayColorClass, dimRatioToClass(dimRatio), {
- 'has-background-dim': dimRatio !== undefined,
- // For backwards compatibility. Former versions of the Cover Block applied
- // `.wp-block-cover__gradient-background` in the presence of
- // media, a gradient and a dim.
- 'wp-block-cover__gradient-background': url && gradientValue && dimRatio !== 0,
- 'has-background-gradient': gradientValue,
- [gradientClass]: gradientClass
}),
- style: bgStyle
- }), !useFeaturedImage && isImageBackground && url && (isImgElement ? (0,external_React_namespaceObject.createElement)("img", {
- className: imgClasses,
- alt: alt,
- src: url,
- style: {
- objectPosition
- },
- "data-object-fit": "cover",
- "data-object-position": objectPosition
- }) : (0,external_React_namespaceObject.createElement)("div", {
- role: alt ? 'img' : undefined,
- "aria-label": alt ? alt : undefined,
- className: imgClasses,
- style: {
- backgroundPosition,
- backgroundImage
- }
- })), isVideoBackground && url && (0,external_React_namespaceObject.createElement)("video", {
- className: classnames_default()('wp-block-cover__video-background', 'intrinsic-ignore'),
- autoPlay: true,
- muted: true,
- loop: true,
- playsInline: true,
- src: url,
- style: {
- objectPosition
- },
- "data-object-fit": "cover",
- "data-object-position": objectPosition
- }), (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
- className: 'wp-block-cover__inner-container'
- })
- }));
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-hidden": "true",
+ className: dist_clsx('wp-block-cover__background', overlayColorClass, dimRatioToClass(dimRatio), {
+ 'has-background-dim': dimRatio !== undefined,
+ // For backwards compatibility. Former versions of the Cover Block applied
+ // `.wp-block-cover__gradient-background` in the presence of
+ // media, a gradient and a dim.
+ 'wp-block-cover__gradient-background': url && gradientValue && dimRatio !== 0,
+ 'has-background-gradient': gradientValue,
+ [gradientClass]: gradientClass
+ }),
+ style: bgStyle
+ }), !useFeaturedImage && isImageBackground && url && (isImgElement ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ className: imgClasses,
+ alt: alt,
+ src: url,
+ style: {
+ objectPosition
+ },
+ "data-object-fit": "cover",
+ "data-object-position": objectPosition
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ role: alt ? 'img' : undefined,
+ "aria-label": alt ? alt : undefined,
+ className: imgClasses,
+ style: {
+ backgroundPosition,
+ backgroundImage
+ }
+ })), isVideoBackground && url && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
+ className: dist_clsx('wp-block-cover__video-background', 'intrinsic-ignore'),
+ autoPlay: true,
+ muted: true,
+ loop: true,
+ playsInline: true,
+ src: url,
+ style: {
+ objectPosition
+ },
+ "data-object-fit": "cover",
+ "data-object-position": objectPosition
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
+ className: 'wp-block-cover__inner-container'
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/transforms.js
@@ -15071,6 +15401,7 @@ const cover_metadata = {
anchor: true,
align: true,
html: false,
+ shadow: true,
spacing: {
padding: true,
margin: ["top", "bottom"],
@@ -15170,25 +15501,26 @@ const cover_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/details.js
-
/**
* WordPress dependencies
*/
-const details = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const details = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",
- fillRule: "evenodd",
- clipRule: "evenodd"
-}), (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m4 5.25 4 2.5-4 2.5v-5Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",
+ fillRule: "evenodd",
+ clipRule: "evenodd"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m4 5.25 4 2.5-4 2.5v-5Z"
+ })]
+});
/* harmony default export */ const library_details = (details);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/details/edit.js
-
/**
* WordPress dependencies
*/
@@ -15196,6 +15528,9 @@ const details = (0,external_React_namespaceObject.createElement)(external_wp_pri
+
+
+
const details_edit_TEMPLATE = [['core/paragraph', {
placeholder: (0,external_wp_i18n_namespaceObject.__)('Type / to add a hidden block')
}]];
@@ -15223,38 +15558,47 @@ function DetailsEdit({
/* Sets deep to true to also find blocks inside the details content block. */
return hasSelectedInnerBlock(clientId, true) || isBlockSelected(clientId);
}, [clientId]);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Open by default'),
- checked: showContent,
- onChange: () => setAttributes({
- showContent: !showContent
- })
- }))), (0,external_React_namespaceObject.createElement)("details", {
- ...innerBlocksProps,
- open: hasSelection || showContent
- }, (0,external_React_namespaceObject.createElement)("summary", {
- onClick: event => event.preventDefault()
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Write summary'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Write summary…'),
- allowedFormats: [],
- withoutInteractiveFormatting: true,
- value: summary,
- onChange: newSummary => setAttributes({
- summary: newSummary
- })
- })), innerBlocksProps.children));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Open by default'),
+ checked: showContent,
+ onChange: () => setAttributes({
+ showContent: !showContent
+ })
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("details", {
+ ...innerBlocksProps,
+ open: hasSelection || showContent,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("summary", {
+ onClick: event => event.preventDefault(),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ identifier: "summary",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Write summary'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Write summary…'),
+ allowedFormats: [],
+ withoutInteractiveFormatting: true,
+ value: summary,
+ onChange: newSummary => setAttributes({
+ summary: newSummary
+ })
+ })
+ }), innerBlocksProps.children]
+ })]
+ });
}
/* harmony default export */ const details_edit = (DetailsEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/details/save.js
-
/**
* WordPress dependencies
*/
+
+
function details_save_save({
attributes
}) {
@@ -15263,12 +15607,15 @@ function details_save_save({
} = attributes;
const summary = attributes.summary ? attributes.summary : 'Details';
const blockProps = external_wp_blockEditor_namespaceObject.useBlockProps.save();
- return (0,external_React_namespaceObject.createElement)("details", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("details", {
...blockProps,
- open: showContent
- }, (0,external_React_namespaceObject.createElement)("summary", null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: summary
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null));
+ open: showContent,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("summary", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: summary
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/details/index.js
@@ -15303,6 +15650,7 @@ const details_metadata = {
}
},
supports: {
+ __experimentalOnEnter: true,
align: ["wide", "full"],
color: {
gradients: true,
@@ -15380,17 +15728,18 @@ const details_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js
-
/**
* WordPress dependencies
*/
-const pencil = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const pencil = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"
+ })
+});
/* harmony default export */ const library_pencil = (pencil);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js
@@ -15402,7 +15751,6 @@ const pencil = (0,external_React_namespaceObject.createElement)(external_wp_prim
/* harmony default export */ const library_edit = (library_pencil);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-controls.js
-
/**
* WordPress dependencies
*/
@@ -15410,6 +15758,9 @@ const pencil = (0,external_React_namespaceObject.createElement)(external_wp_prim
+
+
+
function getResponsiveHelp(checked) {
return checked ? (0,external_wp_i18n_namespaceObject.__)('This embed will preserve its aspect ratio when the browser is resized.') : (0,external_wp_i18n_namespaceObject.__)('This embed may not preserve its aspect ratio when the browser is resized.');
}
@@ -15420,214 +15771,261 @@ const EmbedControls = ({
allowResponsive,
toggleResponsive,
switchBackToURLInput
-}) => (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, showEditButton && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- className: "components-toolbar__control",
- label: (0,external_wp_i18n_namespaceObject.__)('Edit URL'),
- icon: library_edit,
- onClick: switchBackToURLInput
-}))), themeSupportsResponsive && blockSupportsResponsive && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Media settings'),
- className: "blocks-responsive"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Resize for smaller devices'),
- checked: allowResponsive,
- help: getResponsiveHelp,
- onChange: toggleResponsive
-}))));
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: showEditButton && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ className: "components-toolbar__control",
+ label: (0,external_wp_i18n_namespaceObject.__)('Edit URL'),
+ icon: library_edit,
+ onClick: switchBackToURLInput
+ })
+ })
+ }), themeSupportsResponsive && blockSupportsResponsive && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Media settings'),
+ className: "blocks-responsive",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Resize for smaller devices'),
+ checked: allowResponsive,
+ help: getResponsiveHelp,
+ onChange: toggleResponsive
+ })
+ })
+ })]
+});
/* harmony default export */ const embed_controls = (EmbedControls);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/icons.js
-
/**
* WordPress dependencies
*/
-const embedContentIcon = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+
+
+const embedContentIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
-}));
-const embedAudioIcon = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ })
+});
+const embedAudioIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
-}));
-const embedPhotoIcon = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ })
+});
+const embedPhotoIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
-}));
-const embedVideoIcon = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ })
+});
+const embedVideoIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ })
+});
const embedTwitterIcon = {
foreground: '#1da1f2',
- src: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ src: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.G, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
- })))
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.G, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ })
+ })
+ })
};
const embedYouTubeIcon = {
foreground: '#ff0000',
- src: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
- viewBox: "0 0 24 24"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
- }))
+ src: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ })
+ })
};
const embedFacebookIcon = {
foreground: '#3b5998',
- src: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
- viewBox: "0 0 24 24"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
- }))
-};
-const embedInstagramIcon = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.G, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
-})));
+ src: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ })
+ })
+};
+const embedInstagramIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.G, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ })
+ })
+});
const embedWordPressIcon = {
foreground: '#0073AA',
- src: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
- viewBox: "0 0 24 24"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.G, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
- })))
+ src: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.G, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ })
+ })
+ })
};
const embedSpotifyIcon = {
foreground: '#1db954',
- src: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
- viewBox: "0 0 24 24"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
- }))
-};
-const embedFlickrIcon = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
-}));
+ src: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ })
+ })
+};
+const embedFlickrIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ })
+});
const embedVimeoIcon = {
foreground: '#1ab7ea',
- src: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ src: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.G, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
- })))
-};
-const embedRedditIcon = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.G, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ })
+ })
+ })
+};
+const embedRedditIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"
+ })
+});
const embedTumblrIcon = {
foreground: '#35465c',
- src: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
- viewBox: "0 0 24 24"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
- }))
-};
-const embedAmazonIcon = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
-}), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
-}), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
-}));
-const embedAnimotoIcon = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",
- fill: "#4bc7ee"
-}), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
-}), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",
- fill: "#c3d82e"
-}), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
-}), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "m.0206909 21 19.5468091-9.063 1.6621 2.8344z",
- fill: "#209dbd"
-}), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",
- fill: "#7cb3c9"
-}));
-const embedDailymotionIcon = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M11.903 16.568c-1.82 0-3.124-1.281-3.124-2.967a2.987 2.987 0 0 1 2.989-2.989c1.663 0 2.944 1.304 2.944 3.034 0 1.663-1.281 2.922-2.81 2.922ZM17.997 3l-3.308.73v5.107c-.809-1.034-2.045-1.37-3.505-1.37-1.529 0-2.9.561-4.023 1.662-1.259 1.214-1.933 2.764-1.933 4.495 0 1.888.72 3.506 2.113 4.742 1.056.944 2.314 1.415 3.775 1.415 1.438 0 2.517-.382 3.573-1.415v1.415h3.308V3Z",
- fill: "#333436"
-}));
-const embedPinterestIcon = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ src: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ })
+ })
+};
+const embedAmazonIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ })]
+});
+const embedAnimotoIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",
+ fill: "#4bc7ee"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",
+ fill: "#c3d82e"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "m.0206909 21 19.5468091-9.063 1.6621 2.8344z",
+ fill: "#209dbd"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",
+ fill: "#7cb3c9"
+ })]
+});
+const embedDailymotionIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M11.903 16.568c-1.82 0-3.124-1.281-3.124-2.967a2.987 2.987 0 0 1 2.989-2.989c1.663 0 2.944 1.304 2.944 3.034 0 1.663-1.281 2.922-2.81 2.922ZM17.997 3l-3.308.73v5.107c-.809-1.034-2.045-1.37-3.505-1.37-1.529 0-2.9.561-4.023 1.662-1.259 1.214-1.933 2.764-1.933 4.495 0 1.888.72 3.506 2.113 4.742 1.056.944 2.314 1.415 3.775 1.415 1.438 0 2.517-.382 3.573-1.415v1.415h3.308V3Z",
+ fill: "#333436"
+ })
+});
+const embedPinterestIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.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"
-}));
-const embedWolframIcon = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
- viewBox: "0 0 44 44"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M32.59521,22.001l4.31885-4.84473-6.34131-1.38379.646-6.459-5.94336,2.61035L22,6.31934l-3.27344,5.60351L12.78418,9.3125l.645,6.458L7.08643,17.15234,11.40479,21.999,7.08594,26.84375l6.34131,1.38379-.64551,6.458,5.94287-2.60938L22,37.68066l3.27344-5.60351,5.94287,2.61035-.64551-6.458,6.34277-1.38183Zm.44385,2.75244L30.772,23.97827l-1.59558-2.07391,1.97888.735Zm-8.82147,6.1579L22.75,33.424V30.88977l1.52228-2.22168ZM18.56226,13.48816,19.819,15.09534l-2.49219-.88642L15.94037,12.337Zm6.87719.00116,2.62043-1.15027-1.38654,1.86981L24.183,15.0946Zm3.59357,2.6029-1.22546,1.7381.07525-2.73486,1.44507-1.94867ZM22,29.33008l-2.16406-3.15686L22,23.23688l2.16406,2.93634Zm-4.25458-9.582-.10528-3.836,3.60986,1.284v3.73242Zm5.00458-2.552,3.60986-1.284-.10528,3.836L22.75,20.92853Zm-7.78174-1.10559-.29352-2.94263,1.44245,1.94739.07519,2.73321Zm2.30982,5.08319,3.50817,1.18164-2.16247,2.9342-3.678-1.08447Zm2.4486,7.49285L21.25,30.88977v2.53485L19.78052,30.91Zm3.48707-6.31121,3.50817-1.18164,2.33228,3.03137-3.678,1.08447Zm10.87219-4.28113-2.714,3.04529L28.16418,19.928l1.92176-2.72565ZM24.06036,12.81769l-2.06012,2.6322-2.059-2.63318L22,9.292ZM9.91455,18.07227l4.00079-.87195,1.921,2.72735-3.20794,1.19019Zm2.93024,4.565,1.9801-.73462L13.228,23.97827l-2.26838.77429Zm-1.55591,3.58819L13.701,25.4021l2.64935.78058-2.14447.67853Zm3.64868,1.977L18.19,27.17334l.08313,3.46332L14.52979,32.2793Zm10.7876,2.43549.08447-3.464,3.25165,1.03052.407,4.07684Zm4.06824-3.77478-2.14545-.68,2.65063-.781,2.41266.825Z"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.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"
+ })
+});
+const embedWolframIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 44 44",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M32.59521,22.001l4.31885-4.84473-6.34131-1.38379.646-6.459-5.94336,2.61035L22,6.31934l-3.27344,5.60351L12.78418,9.3125l.645,6.458L7.08643,17.15234,11.40479,21.999,7.08594,26.84375l6.34131,1.38379-.64551,6.458,5.94287-2.60938L22,37.68066l3.27344-5.60351,5.94287,2.61035-.64551-6.458,6.34277-1.38183Zm.44385,2.75244L30.772,23.97827l-1.59558-2.07391,1.97888.735Zm-8.82147,6.1579L22.75,33.424V30.88977l1.52228-2.22168ZM18.56226,13.48816,19.819,15.09534l-2.49219-.88642L15.94037,12.337Zm6.87719.00116,2.62043-1.15027-1.38654,1.86981L24.183,15.0946Zm3.59357,2.6029-1.22546,1.7381.07525-2.73486,1.44507-1.94867ZM22,29.33008l-2.16406-3.15686L22,23.23688l2.16406,2.93634Zm-4.25458-9.582-.10528-3.836,3.60986,1.284v3.73242Zm5.00458-2.552,3.60986-1.284-.10528,3.836L22.75,20.92853Zm-7.78174-1.10559-.29352-2.94263,1.44245,1.94739.07519,2.73321Zm2.30982,5.08319,3.50817,1.18164-2.16247,2.9342-3.678-1.08447Zm2.4486,7.49285L21.25,30.88977v2.53485L19.78052,30.91Zm3.48707-6.31121,3.50817-1.18164,2.33228,3.03137-3.678,1.08447Zm10.87219-4.28113-2.714,3.04529L28.16418,19.928l1.92176-2.72565ZM24.06036,12.81769l-2.06012,2.6322-2.059-2.63318L22,9.292ZM9.91455,18.07227l4.00079-.87195,1.921,2.72735-3.20794,1.19019Zm2.93024,4.565,1.9801-.73462L13.228,23.97827l-2.26838.77429Zm-1.55591,3.58819L13.701,25.4021l2.64935.78058-2.14447.67853Zm3.64868,1.977L18.19,27.17334l.08313,3.46332L14.52979,32.2793Zm10.7876,2.43549.08447-3.464,3.25165,1.03052.407,4.07684Zm4.06824-3.77478-2.14545-.68,2.65063-.781,2.41266.825Z"
+ })
+});
const embedPocketCastsIcon = {
foreground: '#f43e37',
- src: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ src: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
fill: "none",
- xmlns: "http://www.w3.org/2000/svg"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M2.67,12a9.33,9.33,0,0,1,18.66,0H19a7,7,0,1,0-7,7v2.33A9.33,9.33,0,0,1,2.67,12ZM12,17.6A5.6,5.6,0,1,1,17.6,12h-2A3.56,3.56,0,1,0,12,15.56Z",
- fill: "#fff"
- }))
+ xmlns: "http://www.w3.org/2000/svg",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M2.67,12a9.33,9.33,0,0,1,18.66,0H19a7,7,0,1,0-7,7v2.33A9.33,9.33,0,0,1,2.67,12ZM12,17.6A5.6,5.6,0,1,1,17.6,12h-2A3.56,3.56,0,1,0,12,15.56Z",
+ fill: "#fff"
+ })]
+ })
};
+const embedBlueskyIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ fill: "#0a7aff",
+ d: "M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-loading.js
-
/**
* WordPress dependencies
*/
-const EmbedLoading = () => (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-embed is-loading"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null));
+
+const EmbedLoading = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-embed is-loading",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
+});
/* harmony default export */ const embed_loading = (EmbedLoading);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-placeholder.js
-
/**
* WordPress dependencies
*/
+
+
const EmbedPlaceholder = ({
icon,
label,
@@ -15638,46 +16036,60 @@ const EmbedPlaceholder = ({
fallback,
tryAgain
}) => {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- icon: (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Placeholder, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
icon: icon,
showColors: true
}),
label: label,
className: "wp-block-embed",
- instructions: (0,external_wp_i18n_namespaceObject.__)('Paste a link to the content you want to display on your site.')
- }, (0,external_React_namespaceObject.createElement)("form", {
- onSubmit: onSubmit
- }, (0,external_React_namespaceObject.createElement)("input", {
- type: "url",
- value: value || '',
- className: "components-placeholder__input",
- "aria-label": label,
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Enter URL to embed here…'),
- onChange: onChange
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- type: "submit"
- }, (0,external_wp_i18n_namespaceObject._x)('Embed', 'button label'))), (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-embed__learn-more"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/embeds/')
- }, (0,external_wp_i18n_namespaceObject.__)('Learn more about embeds'))), cannotEmbed && (0,external_React_namespaceObject.createElement)("div", {
- className: "components-placeholder__error"
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "components-placeholder__instructions"
- }, (0,external_wp_i18n_namespaceObject.__)('Sorry, this content could not be embedded.')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "secondary",
- onClick: tryAgain
- }, (0,external_wp_i18n_namespaceObject._x)('Try again', 'button label')), ' ', (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "secondary",
- onClick: fallback
- }, (0,external_wp_i18n_namespaceObject._x)('Convert to link', 'button label'))));
+ instructions: (0,external_wp_i18n_namespaceObject.__)('Paste a link to the content you want to display on your site.'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("form", {
+ onSubmit: onSubmit,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
+ type: "url",
+ value: value || '',
+ className: "components-placeholder__input",
+ "aria-label": label,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Enter URL to embed here…'),
+ onChange: onChange
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ type: "submit",
+ children: (0,external_wp_i18n_namespaceObject._x)('Embed', 'button label')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-embed__learn-more",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/embeds/'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Learn more about embeds')
+ })
+ }), cannotEmbed && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 3,
+ className: "components-placeholder__error",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "components-placeholder__instructions",
+ children: (0,external_wp_i18n_namespaceObject.__)('Sorry, this content could not be embedded.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ expanded: false,
+ spacing: 3,
+ justify: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "secondary",
+ onClick: tryAgain,
+ children: (0,external_wp_i18n_namespaceObject._x)('Try again', 'button label')
+ }), ' ', /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "secondary",
+ onClick: fallback,
+ children: (0,external_wp_i18n_namespaceObject._x)('Convert to link', 'button label')
+ })]
+ })]
+ })]
+ });
};
/* harmony default export */ const embed_placeholder = (EmbedPlaceholder);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/wp-embed-preview.js
-
/**
* WordPress dependencies
*/
@@ -15700,12 +16112,16 @@ function WpEmbedPreview({
const doc = new window.DOMParser().parseFromString(html, 'text/html');
const iframe = doc.querySelector('iframe');
const iframeProps = {};
- if (!iframe) return iframeProps;
+ if (!iframe) {
+ return iframeProps;
+ }
Array.from(iframe.attributes).forEach(({
name,
value
}) => {
- if (name === 'style') return;
+ if (name === 'style') {
+ return;
+ }
iframeProps[attributeMap[name] || name] = value;
});
return iframeProps;
@@ -15750,17 +16166,17 @@ function WpEmbedPreview({
defaultView.removeEventListener('message', resizeWPembeds);
};
}, []);
- return (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-embed__wrapper"
- }, (0,external_React_namespaceObject.createElement)("iframe", {
- ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, (0,external_wp_compose_namespaceObject.useFocusableIframe)()]),
- title: props.title,
- ...props
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-embed__wrapper",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("iframe", {
+ ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, (0,external_wp_compose_namespaceObject.useFocusableIframe)()]),
+ title: props.title,
+ ...props
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-preview.js
-
/**
* Internal dependencies
*/
@@ -15784,6 +16200,8 @@ function WpEmbedPreview({
* Internal dependencies
*/
+
+
class EmbedPreview extends external_wp_element_namespaceObject.Component {
constructor() {
super(...arguments);
@@ -15839,61 +16257,66 @@ class EmbedPreview extends external_wp_element_namespaceObject.Component {
const iframeTitle = (0,external_wp_i18n_namespaceObject.sprintf)(
// translators: %s: host providing embed content e.g: www.youtube.com
(0,external_wp_i18n_namespaceObject.__)('Embedded content from %s'), parsedHostBaseUrl);
- const sandboxClassnames = dedupe_default()(type, className, 'wp-block-embed__wrapper');
+ const sandboxClassnames = dist_clsx(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.
/* eslint-disable jsx-a11y/no-static-element-interactions */
- const embedWrapper = 'wp-embed' === type ? (0,external_React_namespaceObject.createElement)(WpEmbedPreview, {
+ const embedWrapper = 'wp-embed' === type ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WpEmbedPreview, {
html: html
- }) : (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-embed__wrapper"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SandBox, {
- html: html,
- scripts: scripts,
- title: iframeTitle,
- type: sandboxClassnames,
- onFocus: this.hideOverlay
- }), !interactive && (0,external_React_namespaceObject.createElement)("div", {
- className: "block-library-embed__interactive-overlay",
- onMouseUp: this.hideOverlay
- }));
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "wp-block-embed__wrapper",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SandBox, {
+ html: html,
+ scripts: scripts,
+ title: iframeTitle,
+ type: sandboxClassnames,
+ onFocus: this.hideOverlay
+ }), !interactive && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-library-embed__interactive-overlay",
+ onMouseUp: this.hideOverlay
+ })]
+ });
/* eslint-enable jsx-a11y/no-static-element-interactions */
- return (0,external_React_namespaceObject.createElement)("figure", {
- className: dedupe_default()(className, 'wp-block-embed', {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ className: dist_clsx(className, 'wp-block-embed', {
'is-type-video': 'video' === type
- })
- }, previewable ? embedWrapper : (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- icon: (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
- icon: icon,
- showColors: true
}),
- label: label
- }, (0,external_React_namespaceObject.createElement)("p", {
- className: "components-placeholder__error"
- }, (0,external_React_namespaceObject.createElement)("a", {
- href: url
- }, url)), (0,external_React_namespaceObject.createElement)("p", {
- className: "components-placeholder__error"
- }, (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: host providing embed content e.g: www.youtube.com */
- (0,external_wp_i18n_namespaceObject.__)("Embedded content from %s can't be previewed in the editor."), parsedHostBaseUrl))), (!external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) || isSelected) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- identifier: "caption",
- tagName: "figcaption",
- className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Add caption'),
- value: caption,
- onChange: onCaptionChange,
- inlineToolbar: true,
- __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)()))
- }));
+ children: [previewable ? embedWrapper : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Placeholder, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ icon: icon,
+ showColors: true
+ }),
+ label: label,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "components-placeholder__error",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: url,
+ children: url
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "components-placeholder__error",
+ children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: host providing embed content e.g: www.youtube.com */
+ (0,external_wp_i18n_namespaceObject.__)("Embedded content from %s can't be previewed in the editor."), parsedHostBaseUrl)
+ })]
+ }), (!external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) || isSelected) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ identifier: "caption",
+ tagName: "figcaption",
+ className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Add caption'),
+ value: caption,
+ onChange: onCaptionChange,
+ inlineToolbar: true,
+ __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)()))
+ })]
+ });
}
}
/* harmony default export */ const embed_preview = (EmbedPreview);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/edit.js
-
/**
* Internal dependencies
*/
@@ -15919,6 +16342,9 @@ class EmbedPreview extends external_wp_element_namespaceObject.Component {
+
+
+
const EmbedEdit = props => {
const {
attributes: {
@@ -15951,13 +16377,15 @@ const EmbedEdit = props => {
preview,
fetching,
themeSupportsResponsive,
- cannotEmbed
+ cannotEmbed,
+ hasResolved
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getEmbedPreview,
isPreviewEmbedFallback,
isRequestingEmbedPreview,
- getThemeSupports
+ getThemeSupports,
+ hasFinishedResolution
} = select(external_wp_coreData_namespaceObject.store);
if (!attributesUrl) {
return {
@@ -15979,7 +16407,8 @@ const EmbedEdit = props => {
preview: validPreview ? embedPreview : undefined,
fetching: isRequestingEmbedPreview(attributesUrl),
themeSupportsResponsive: getThemeSupports()['responsive-embeds'],
- cannotEmbed: !validPreview || previewIsFallback
+ cannotEmbed: !validPreview || previewIsFallback,
+ hasResolved: hasFinishedResolution('getEmbedPreview', [attributesUrl])
};
}, [attributesUrl]);
@@ -16004,7 +16433,7 @@ const EmbedEdit = props => {
});
};
(0,external_wp_element_namespaceObject.useEffect)(() => {
- if (preview?.html || !cannotEmbed || fetching) {
+ if (preview?.html || !cannotEmbed || !hasResolved) {
return;
}
@@ -16016,7 +16445,7 @@ const EmbedEdit = props => {
setAttributes({
url: newURL
});
- }, [preview?.html, attributesUrl, cannotEmbed, fetching, setAttributes]);
+ }, [preview?.html, attributesUrl, cannotEmbed, hasResolved, setAttributes]);
// Try a different provider in case the embed url is not supported.
(0,external_wp_element_namespaceObject.useEffect)(() => {
@@ -16051,9 +16480,10 @@ const EmbedEdit = props => {
}, [preview, isEditingURL]);
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)();
if (fetching) {
- return (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.View, {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(embed_loading, null));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.View, {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(embed_loading, {})
+ });
}
// translators: %s: type of embed e.g: "YouTube", "Twitter", etc. "Embed" is used when no specific type exists
@@ -16062,34 +16492,35 @@ const EmbedEdit = props => {
// No preview, or we can't embed the current URL, or we've clicked the edit button.
const showEmbedPlaceholder = !preview || cannotEmbed || isEditingURL;
if (showEmbedPlaceholder) {
- return (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.View, {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(embed_placeholder, {
- icon: icon,
- label: label,
- onFocus: onFocus,
- onSubmit: event => {
- if (event) {
- event.preventDefault();
- }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.View, {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(embed_placeholder, {
+ icon: icon,
+ label: label,
+ onFocus: onFocus,
+ onSubmit: event => {
+ if (event) {
+ event.preventDefault();
+ }
- // If the embed URL was changed, we need to reset the aspect ratio class.
- // To do this we have to remove the existing ratio class so it can be recalculated.
- const blockClass = removeAspectRatioClasses(attributes.className);
- setIsEditingURL(false);
- setAttributes({
- url,
- className: blockClass
- });
- },
- value: url,
- cannotEmbed: cannotEmbed,
- onChange: event => setURL(event.target.value),
- fallback: () => fallback(url, onReplace),
- tryAgain: () => {
- invalidateResolution('getEmbedPreview', [url]);
- }
- }));
+ // If the embed URL was changed, we need to reset the aspect ratio class.
+ // To do this we have to remove the existing ratio class so it can be recalculated.
+ const blockClass = removeAspectRatioClasses(attributes.className);
+ setIsEditingURL(false);
+ setAttributes({
+ url,
+ className: blockClass
+ });
+ },
+ value: url,
+ cannotEmbed: cannotEmbed,
+ onChange: event => setURL(event.target.value),
+ fallback: () => fallback(url, onReplace),
+ tryAgain: () => {
+ invalidateResolution('getEmbedPreview', [url]);
+ }
+ })
+ });
}
// Even though we set attributes that get derived from the preview,
@@ -16106,36 +16537,38 @@ const EmbedEdit = props => {
allowResponsive,
className: classFromPreview
} = getMergedAttributes();
- const className = classnames_default()(classFromPreview, props.className);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(embed_controls, {
- showEditButton: preview && !cannotEmbed,
- themeSupportsResponsive: themeSupportsResponsive,
- blockSupportsResponsive: responsive,
- allowResponsive: allowResponsive,
- toggleResponsive: toggleResponsive,
- switchBackToURLInput: () => setIsEditingURL(true)
- }), (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.View, {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(embed_preview, {
- preview: preview,
- previewable: previewable,
- className: className,
- url: url,
- type: type,
- caption: caption,
- onCaptionChange: value => setAttributes({
- caption: value
- }),
- isSelected: isSelected,
- icon: icon,
- label: label,
- insertBlocksAfter: insertBlocksAfter
- })));
+ const className = dist_clsx(classFromPreview, props.className);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(embed_controls, {
+ showEditButton: preview && !cannotEmbed,
+ themeSupportsResponsive: themeSupportsResponsive,
+ blockSupportsResponsive: responsive,
+ allowResponsive: allowResponsive,
+ toggleResponsive: toggleResponsive,
+ switchBackToURLInput: () => setIsEditingURL(true)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.View, {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(embed_preview, {
+ preview: preview,
+ previewable: previewable,
+ className: className,
+ url: url,
+ type: type,
+ caption: caption,
+ onCaptionChange: value => setAttributes({
+ caption: value
+ }),
+ isSelected: isSelected,
+ icon: icon,
+ label: label,
+ insertBlocksAfter: insertBlocksAfter
+ })
+ })]
+ });
};
/* harmony default export */ const embed_edit = (EmbedEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/save.js
-
/**
* External dependencies
*/
@@ -16145,6 +16578,8 @@ const EmbedEdit = props => {
* WordPress dependencies
*/
+
+
function embed_save_save({
attributes
}) {
@@ -16157,22 +16592,24 @@ function embed_save_save({
if (!url) {
return null;
}
- const className = dedupe_default()('wp-block-embed', {
+ const className = dist_clsx('wp-block-embed', {
[`is-type-${type}`]: type,
[`is-provider-${providerNameSlug}`]: providerNameSlug,
[`wp-block-embed-${providerNameSlug}`]: providerNameSlug
});
- return (0,external_React_namespaceObject.createElement)("figure", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className
- })
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-embed__wrapper"
- }, `\n${url}\n` /* URL needs to be on its own line. */), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
- tagName: "figcaption",
- value: caption
- }));
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-embed__wrapper",
+ children: `\n${url}\n` /* URL needs to be on its own line. */
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
+ tagName: "figcaption",
+ value: caption
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/transforms.js
@@ -16546,16 +16983,6 @@ const embed_variations_variations = [{
responsive: true
}
}, {
- name: 'slideshare',
- title: 'Slideshare',
- icon: embedContentIcon,
- description: (0,external_wp_i18n_namespaceObject.__)('Embed Slideshare content.'),
- patterns: [/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],
- attributes: {
- providerNameSlug: 'slideshare',
- responsive: true
- }
-}, {
name: 'smugmug',
title: 'SmugMug',
icon: embedPhotoIcon,
@@ -16659,6 +17086,15 @@ const embed_variations_variations = [{
providerNameSlug: 'wolfram-cloud',
responsive: true
}
+}, {
+ name: 'bluesky',
+ title: 'Bluesky',
+ icon: embedBlueskyIcon,
+ description: (0,external_wp_i18n_namespaceObject.__)('Embed a Bluesky post.'),
+ patterns: [/^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i],
+ attributes: {
+ providerNameSlug: 'bluesky'
+ }
}];
/**
@@ -16667,13 +17103,14 @@ const embed_variations_variations = [{
* Block by providing its attributes.
*/
embed_variations_variations.forEach(variation => {
- if (variation.isActive) return;
+ if (variation.isActive) {
+ return;
+ }
variation.isActive = (blockAttributes, variationAttributes) => blockAttributes.providerNameSlug === variationAttributes.providerNameSlug;
});
/* harmony default export */ const embed_variations = (embed_variations_variations);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/deprecated.js
-
/**
* External dependencies
*/
@@ -16740,6 +17177,8 @@ const embed_deprecated_metadata = {
* WordPress dependencies
*/
+
+
const {
attributes: embed_deprecated_blockAttributes
} = embed_deprecated_metadata;
@@ -16760,21 +17199,23 @@ const deprecated_v2 = {
if (!url) {
return null;
}
- const className = classnames_default()('wp-block-embed', {
+ const className = dist_clsx('wp-block-embed', {
[`is-type-${type}`]: type,
[`is-provider-${providerNameSlug}`]: providerNameSlug,
[`wp-block-embed-${providerNameSlug}`]: providerNameSlug
});
- return (0,external_React_namespaceObject.createElement)("figure", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className
- })
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-embed__wrapper"
- }, `\n${url}\n` /* URL needs to be on its own line. */), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- value: caption
- }));
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-embed__wrapper",
+ children: `\n${url}\n` /* URL needs to be on its own line. */
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ value: caption
+ })]
+ });
}
};
const embed_deprecated_v1 = {
@@ -16790,16 +17231,17 @@ const embed_deprecated_v1 = {
if (!url) {
return null;
}
- const embedClassName = classnames_default()('wp-block-embed', {
+ const embedClassName = dist_clsx('wp-block-embed', {
[`is-type-${type}`]: type,
[`is-provider-${providerNameSlug}`]: providerNameSlug
});
- return (0,external_React_namespaceObject.createElement)("figure", {
- className: embedClassName
- }, `\n${url}\n` /* URL needs to be on its own line. */, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- value: caption
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ className: embedClassName,
+ children: [`\n${url}\n` /* URL needs to be on its own line. */, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ value: caption
+ })]
+ });
}
};
const embed_deprecated_deprecated = [deprecated_v2, embed_deprecated_v1];
@@ -16889,23 +17331,23 @@ const embed_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/file.js
-
/**
* WordPress dependencies
*/
-const file = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const file = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"
+ })
+});
/* harmony default export */ const library_file = (file);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/deprecated.js
-
/**
* External dependencies
*/
@@ -16918,6 +17360,9 @@ const file = (0,external_React_namespaceObject.createElement)(external_wp_primit
// Version of the file block without PR#43050 removing the translated aria-label.
+
+
+
const deprecated_v3 = {
attributes: {
id: {
@@ -16991,32 +17436,37 @@ const deprecated_v3 = {
// Only output an `aria-describedby` when the element it's referring to is
// actually rendered.
const describedById = hasFilename ? fileId : undefined;
- return href && (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useBlockProps.save()
- }, displayPreview && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("object", {
- className: "wp-block-file__embed",
- data: href,
- type: "application/pdf",
- style: {
- width: '100%',
- height: `${previewHeight}px`
- },
- "aria-label": pdfEmbedLabel
- })), hasFilename && (0,external_React_namespaceObject.createElement)("a", {
- id: describedById,
- href: textLinkHref,
- target: textLinkTarget,
- rel: textLinkTarget ? 'noreferrer noopener' : undefined
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: fileName
- })), showDownloadButton && (0,external_React_namespaceObject.createElement)("a", {
- href: href,
- className: classnames_default()('wp-block-file__button', (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('button')),
- download: true,
- "aria-describedby": describedById
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: downloadButtonText
- })));
+ return href && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save(),
+ children: [displayPreview && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("object", {
+ className: "wp-block-file__embed",
+ data: href,
+ type: "application/pdf",
+ style: {
+ width: '100%',
+ height: `${previewHeight}px`
+ },
+ "aria-label": pdfEmbedLabel
+ })
+ }), hasFilename && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ id: describedById,
+ href: textLinkHref,
+ target: textLinkTarget,
+ rel: textLinkTarget ? 'noreferrer noopener' : undefined,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: fileName
+ })
+ }), showDownloadButton && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: href,
+ className: dist_clsx('wp-block-file__button', (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('button')),
+ download: true,
+ "aria-describedby": describedById,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: downloadButtonText
+ })
+ })]
+ });
}
};
@@ -17095,32 +17545,37 @@ const file_deprecated_v2 = {
// Only output an `aria-describedby` when the element it's referring to is
// actually rendered.
const describedById = hasFilename ? fileId : undefined;
- return href && (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useBlockProps.save()
- }, displayPreview && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("object", {
- className: "wp-block-file__embed",
- data: href,
- type: "application/pdf",
- style: {
- width: '100%',
- height: `${previewHeight}px`
- },
- "aria-label": pdfEmbedLabel
- })), hasFilename && (0,external_React_namespaceObject.createElement)("a", {
- id: describedById,
- href: textLinkHref,
- target: textLinkTarget,
- rel: textLinkTarget ? 'noreferrer noopener' : undefined
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: fileName
- })), showDownloadButton && (0,external_React_namespaceObject.createElement)("a", {
- href: href,
- className: "wp-block-file__button",
- download: true,
- "aria-describedby": describedById
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: downloadButtonText
- })));
+ return href && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save(),
+ children: [displayPreview && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("object", {
+ className: "wp-block-file__embed",
+ data: href,
+ type: "application/pdf",
+ style: {
+ width: '100%',
+ height: `${previewHeight}px`
+ },
+ "aria-label": pdfEmbedLabel
+ })
+ }), hasFilename && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ id: describedById,
+ href: textLinkHref,
+ target: textLinkTarget,
+ rel: textLinkTarget ? 'noreferrer noopener' : undefined,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: fileName
+ })
+ }), showDownloadButton && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: href,
+ className: "wp-block-file__button",
+ download: true,
+ "aria-describedby": describedById,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: downloadButtonText
+ })
+ })]
+ });
}
};
@@ -17186,37 +17641,41 @@ const file_deprecated_v1 = {
} = attributes;
const pdfEmbedLabel = external_wp_blockEditor_namespaceObject.RichText.isEmpty(fileName) ? (0,external_wp_i18n_namespaceObject.__)('PDF embed') : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: filename. */
(0,external_wp_i18n_namespaceObject.__)('Embed of %s.'), fileName);
- return href && (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useBlockProps.save()
- }, displayPreview && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("object", {
- className: "wp-block-file__embed",
- data: href,
- type: "application/pdf",
- style: {
- width: '100%',
- height: `${previewHeight}px`
- },
- "aria-label": pdfEmbedLabel
- })), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(fileName) && (0,external_React_namespaceObject.createElement)("a", {
- href: textLinkHref,
- target: textLinkTarget,
- rel: textLinkTarget ? 'noreferrer noopener' : undefined
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: fileName
- })), showDownloadButton && (0,external_React_namespaceObject.createElement)("a", {
- href: href,
- className: "wp-block-file__button",
- download: true
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: downloadButtonText
- })));
+ return href && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save(),
+ children: [displayPreview && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("object", {
+ className: "wp-block-file__embed",
+ data: href,
+ type: "application/pdf",
+ style: {
+ width: '100%',
+ height: `${previewHeight}px`
+ },
+ "aria-label": pdfEmbedLabel
+ })
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(fileName) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: textLinkHref,
+ target: textLinkTarget,
+ rel: textLinkTarget ? 'noreferrer noopener' : undefined,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: fileName
+ })
+ }), showDownloadButton && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: href,
+ className: "wp-block-file__button",
+ download: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: downloadButtonText
+ })
+ })]
+ });
}
};
const file_deprecated_deprecated = [deprecated_v3, file_deprecated_v2, file_deprecated_v1];
/* harmony default export */ const file_deprecated = (file_deprecated_deprecated);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/inspector.js
-
/**
* WordPress dependencies
*/
@@ -17228,6 +17687,9 @@ const file_deprecated_deprecated = [deprecated_v3, file_deprecated_v2, file_depr
* Internal dependencies
*/
+
+
+
function FileBlockInspector({
hrefs,
openInNewWindow,
@@ -17258,41 +17720,47 @@ function FileBlockInspector({
label: (0,external_wp_i18n_namespaceObject.__)('Attachment page')
}];
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, href.endsWith('.pdf') && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('PDF settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Show inline embed'),
- help: displayPreview ? (0,external_wp_i18n_namespaceObject.__)("Note: Most phone and tablet browsers won't display embedded PDFs.") : null,
- checked: !!displayPreview,
- onChange: changeDisplayPreview
- }), displayPreview && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Height in pixels'),
- min: MIN_PREVIEW_HEIGHT,
- max: Math.max(MAX_PREVIEW_HEIGHT, previewHeight),
- value: previewHeight,
- onChange: changePreviewHeight
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Link to'),
- value: textLinkHref,
- options: linkDestinationOptions,
- onChange: changeLinkDestinationOption
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
- checked: openInNewWindow,
- onChange: changeOpenInNewWindow
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Show download button'),
- checked: showDownloadButton,
- onChange: changeShowDownloadButton
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: [href.endsWith('.pdf') && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('PDF settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show inline embed'),
+ help: displayPreview ? (0,external_wp_i18n_namespaceObject.__)("Note: Most phone and tablet browsers won't display embedded PDFs.") : null,
+ checked: !!displayPreview,
+ onChange: changeDisplayPreview
+ }), displayPreview && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Height in pixels'),
+ min: MIN_PREVIEW_HEIGHT,
+ max: Math.max(MAX_PREVIEW_HEIGHT, previewHeight),
+ value: previewHeight,
+ onChange: changePreviewHeight
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Link to'),
+ value: textLinkHref,
+ options: linkDestinationOptions,
+ onChange: changeLinkDestinationOption
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
+ checked: openInNewWindow,
+ onChange: changeOpenInNewWindow
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show download button'),
+ checked: showDownloadButton,
+ onChange: changeShowDownloadButton
+ })]
+ })]
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/utils/index.js
@@ -17343,7 +17811,6 @@ const createActiveXObject = type => {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/edit.js
-
/**
* External dependencies
*/
@@ -17369,6 +17836,10 @@ const createActiveXObject = type => {
+
+
+
+
const MIN_PREVIEW_HEIGHT = 200;
const MAX_PREVIEW_HEIGHT = 2000;
function ClipboardToolbarButton({
@@ -17384,11 +17855,12 @@ function ClipboardToolbarButton({
type: 'snackbar'
});
});
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
className: "components-clipboard-toolbar-button",
ref: ref,
- disabled: disabled
- }, (0,external_wp_i18n_namespaceObject.__)('Copy URL'));
+ disabled: disabled,
+ children: (0,external_wp_i18n_namespaceObject.__)('Copy URL')
+ });
}
function FileEdit({
attributes,
@@ -17408,9 +17880,6 @@ function FileEdit({
previewHeight
} = attributes;
const {
- getSettings
- } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
- const {
media
} = (0,external_wp_data_namespaceObject.useSelect)(select => ({
media: id === undefined ? undefined : select(external_wp_coreData_namespaceObject.store).getMedia(id)
@@ -17419,24 +17888,26 @@ function FileEdit({
createErrorNotice
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
const {
- toggleSelection
+ toggleSelection,
+ __unstableMarkNextChangeAsNotPersistent
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
+ useUploadMediaFromBlobURL({
+ url: href,
+ onChange: onSelectFile,
+ onError: onUploadError
+ });
+
+ // Note: Handle setting a default value for `downloadButtonText` via HTML API
+ // when it supports replacing text content for HTML tags.
(0,external_wp_element_namespaceObject.useEffect)(() => {
- // Upload a file drag-and-dropped into the editor.
- if ((0,external_wp_blob_namespaceObject.isBlobURL)(href)) {
- const file = (0,external_wp_blob_namespaceObject.getBlobByURL)(href);
- getSettings().mediaUpload({
- filesList: [file],
- onFileChange: ([newMedia]) => onSelectFile(newMedia),
- onError: onUploadError
- });
- (0,external_wp_blob_namespaceObject.revokeBlobURL)(href);
- }
if (external_wp_blockEditor_namespaceObject.RichText.isEmpty(downloadButtonText)) {
+ __unstableMarkNextChangeAsNotPersistent();
setAttributes({
downloadButtonText: (0,external_wp_i18n_namespaceObject._x)('Download', 'button label')
});
}
+ // Reason: This effect should only run on mount.
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
function onSelectFile(newMedia) {
if (!newMedia || !newMedia.url) {
@@ -17497,7 +17968,7 @@ function FileEdit({
}
const attachmentPage = media && media.link;
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()((0,external_wp_blob_namespaceObject.isBlobURL)(href) && (0,external_wp_components_namespaceObject.__unstableGetAnimateClassName)({
+ className: dist_clsx((0,external_wp_blob_namespaceObject.isBlobURL)(href) && (0,external_wp_components_namespaceObject.__unstableGetAnimateClassName)({
type: 'loading'
}), {
'is-transient': (0,external_wp_blob_namespaceObject.isBlobURL)(href)
@@ -17505,107 +17976,116 @@ function FileEdit({
});
const displayPreviewInEditor = browserSupportsPdfs() && displayPreview;
if (!href) {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
- icon: (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
- icon: library_file
- }),
- labels: {
- title: (0,external_wp_i18n_namespaceObject.__)('File'),
- instructions: (0,external_wp_i18n_namespaceObject.__)('Upload a file or pick one from your media library.')
- },
- onSelect: onSelectFile,
- onError: onUploadError,
- accept: "*"
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ icon: library_file
+ }),
+ labels: {
+ title: (0,external_wp_i18n_namespaceObject.__)('File'),
+ instructions: (0,external_wp_i18n_namespaceObject.__)('Upload a file or pick one from your media library.')
+ },
+ onSelect: onSelectFile,
+ onError: onUploadError,
+ accept: "*"
+ })
+ });
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(FileBlockInspector, {
- hrefs: {
- href,
- textLinkHref,
- attachmentPage
- },
- openInNewWindow: !!textLinkTarget,
- showDownloadButton,
- changeLinkDestinationOption,
- changeOpenInNewWindow,
- changeShowDownloadButton,
- displayPreview,
- changeDisplayPreview,
- previewHeight,
- changePreviewHeight
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "other"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, {
- mediaId: id,
- mediaURL: href,
- accept: "*",
- onSelect: onSelectFile,
- onError: onUploadError
- }), (0,external_React_namespaceObject.createElement)(ClipboardToolbarButton, {
- text: href,
- disabled: (0,external_wp_blob_namespaceObject.isBlobURL)(href)
- })), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, displayPreviewInEditor && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ResizableBox, {
- size: {
- height: previewHeight
- },
- minHeight: MIN_PREVIEW_HEIGHT,
- maxHeight: MAX_PREVIEW_HEIGHT,
- minWidth: "100%",
- grid: [10, 10],
- enable: {
- top: false,
- right: false,
- bottom: true,
- left: false,
- topRight: false,
- bottomRight: false,
- bottomLeft: false,
- topLeft: false
- },
- onResizeStart: () => toggleSelection(false),
- onResizeStop: handleOnResizeStop,
- showHandle: isSelected
- }, (0,external_React_namespaceObject.createElement)("object", {
- className: "wp-block-file__preview",
- data: href,
- type: "application/pdf",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Embed of the selected PDF file.')
- }), !isSelected && (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-file__preview-overlay"
- })), (0,external_React_namespaceObject.createElement)("div", {
- className: 'wp-block-file__content-wrapper'
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- tagName: "a",
- value: fileName,
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Write file name…'),
- withoutInteractiveFormatting: true,
- onChange: text => setAttributes({
- fileName: removeAnchorTag(text)
- }),
- href: textLinkHref
- }), showDownloadButton && (0,external_React_namespaceObject.createElement)("div", {
- className: 'wp-block-file__button-richtext-wrapper'
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- tagName: "div" // Must be block-level or else cursor disappears.
- ,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Download button text'),
- className: classnames_default()('wp-block-file__button', (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('button')),
- value: downloadButtonText,
- withoutInteractiveFormatting: true,
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Add text…'),
- onChange: text => setAttributes({
- downloadButtonText: removeAnchorTag(text)
- })
- })))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FileBlockInspector, {
+ hrefs: {
+ href,
+ textLinkHref,
+ attachmentPage
+ },
+ openInNewWindow: !!textLinkTarget,
+ showDownloadButton,
+ changeLinkDestinationOption,
+ changeOpenInNewWindow,
+ changeShowDownloadButton,
+ displayPreview,
+ changeDisplayPreview,
+ previewHeight,
+ changePreviewHeight
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "other",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, {
+ mediaId: id,
+ mediaURL: href,
+ accept: "*",
+ onSelect: onSelectFile,
+ onError: onUploadError
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ClipboardToolbarButton, {
+ text: href,
+ disabled: (0,external_wp_blob_namespaceObject.isBlobURL)(href)
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...blockProps,
+ children: [displayPreviewInEditor && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.ResizableBox, {
+ size: {
+ height: previewHeight
+ },
+ minHeight: MIN_PREVIEW_HEIGHT,
+ maxHeight: MAX_PREVIEW_HEIGHT,
+ minWidth: "100%",
+ grid: [10, 10],
+ enable: {
+ top: false,
+ right: false,
+ bottom: true,
+ left: false,
+ topRight: false,
+ bottomRight: false,
+ bottomLeft: false,
+ topLeft: false
+ },
+ onResizeStart: () => toggleSelection(false),
+ onResizeStop: handleOnResizeStop,
+ showHandle: isSelected,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("object", {
+ className: "wp-block-file__preview",
+ data: href,
+ type: "application/pdf",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Embed of the selected PDF file.')
+ }), !isSelected && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-file__preview-overlay"
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "wp-block-file__content-wrapper",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ identifier: "fileName",
+ tagName: "a",
+ value: fileName,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Write file name…'),
+ withoutInteractiveFormatting: true,
+ onChange: text => setAttributes({
+ fileName: removeAnchorTag(text)
+ }),
+ href: textLinkHref
+ }), showDownloadButton && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-file__button-richtext-wrapper",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ identifier: "downloadButtonText",
+ tagName: "div" // Must be block-level or else cursor disappears.
+ ,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Download button text'),
+ className: dist_clsx('wp-block-file__button', (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('button')),
+ value: downloadButtonText,
+ withoutInteractiveFormatting: true,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Add text…'),
+ onChange: text => setAttributes({
+ downloadButtonText: removeAnchorTag(text)
+ })
+ })
+ })]
+ })]
+ })]
+ });
}
/* harmony default export */ const file_edit = (FileEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/save.js
-
/**
* External dependencies
*/
@@ -17615,6 +18095,9 @@ function FileEdit({
* WordPress dependencies
*/
+
+
+
function file_save_save({
attributes
}) {
@@ -17638,32 +18121,37 @@ function file_save_save({
// Only output an `aria-describedby` when the element it's referring to is
// actually rendered.
const describedById = hasFilename ? fileId : undefined;
- return href && (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useBlockProps.save()
- }, displayPreview && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("object", {
- className: "wp-block-file__embed",
- data: href,
- type: "application/pdf",
- style: {
- width: '100%',
- height: `${previewHeight}px`
- },
- "aria-label": pdfEmbedLabel
- })), hasFilename && (0,external_React_namespaceObject.createElement)("a", {
- id: describedById,
- href: textLinkHref,
- target: textLinkTarget,
- rel: textLinkTarget ? 'noreferrer noopener' : undefined
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: fileName
- })), showDownloadButton && (0,external_React_namespaceObject.createElement)("a", {
- href: href,
- className: classnames_default()('wp-block-file__button', (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('button')),
- download: true,
- "aria-describedby": describedById
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: downloadButtonText
- })));
+ return href && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save(),
+ children: [displayPreview && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("object", {
+ className: "wp-block-file__embed",
+ data: href,
+ type: "application/pdf",
+ style: {
+ width: '100%',
+ height: `${previewHeight}px`
+ },
+ "aria-label": pdfEmbedLabel
+ })
+ }), hasFilename && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ id: describedById,
+ href: textLinkHref,
+ target: textLinkTarget,
+ rel: textLinkTarget ? 'noreferrer noopener' : undefined,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: fileName
+ })
+ }), showDownloadButton && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: href,
+ className: dist_clsx('wp-block-file__button', (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('button')),
+ download: true,
+ "aria-describedby": describedById,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: downloadButtonText
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/transforms.js
@@ -17940,7 +18428,6 @@ const formSubmissionNotificationError = ['core/form-submission-notification', {
}]]];
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/form/edit.js
-
/**
* WordPress dependencies
*/
@@ -17953,6 +18440,9 @@ const formSubmissionNotificationError = ['core/form-submission-notification', {
* Internal dependencies
*/
+
+
+
const form_edit_TEMPLATE = [formSubmissionNotificationSuccess, formSubmissionNotificationError, ['core/form-input', {
type: 'text',
label: (0,external_wp_i18n_namespaceObject.__)('Name'),
@@ -17993,101 +18483,107 @@ const form_edit_Edit = ({
template: form_edit_TEMPLATE,
renderAppender: hasInnerBlocks ? undefined : external_wp_blockEditor_namespaceObject.InnerBlocks.ButtonBlockAppender
});
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl
- // __nextHasNoMarginBottom
- // size={ '__unstable-large' }
- , {
- label: (0,external_wp_i18n_namespaceObject.__)('Submissions method'),
- options: [
- // TODO: Allow plugins to add their own submission methods.
- {
- label: (0,external_wp_i18n_namespaceObject.__)('Send email'),
- value: 'email'
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('- Custom -'),
- value: 'custom'
- }],
- value: submissionMethod,
- onChange: value => setAttributes({
- submissionMethod: value
- }),
- help: submissionMethod === 'custom' ? (0,external_wp_i18n_namespaceObject.__)('Select the method to use for form submissions. Additional options for the "custom" mode can be found in the "Advanced" section.') : (0,external_wp_i18n_namespaceObject.__)('Select the method to use for form submissions.')
- }), submissionMethod === 'email' && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- autoComplete: "off",
- label: (0,external_wp_i18n_namespaceObject.__)('Email for form submissions'),
- value: email,
- required: true,
- onChange: value => {
- setAttributes({
- email: value
- });
- setAttributes({
- action: `mailto:${value}`
- });
- setAttributes({
- method: 'post'
- });
- },
- help: (0,external_wp_i18n_namespaceObject.__)('The email address where form submissions will be sent. Separate multiple email addresses with a comma.')
- }))), submissionMethod !== 'email' && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "advanced"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Method'),
- options: [{
- label: 'Get',
- value: 'get'
- }, {
- label: 'Post',
- value: 'post'
- }],
- value: method,
- onChange: value => setAttributes({
- method: value
- }),
- help: (0,external_wp_i18n_namespaceObject.__)('Select the method to use for form submissions.')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- autoComplete: "off",
- label: (0,external_wp_i18n_namespaceObject.__)('Form action'),
- value: action,
- onChange: newVal => {
- setAttributes({
- action: newVal
- });
- },
- help: (0,external_wp_i18n_namespaceObject.__)('The URL where the form should be submitted.')
- })), (0,external_React_namespaceObject.createElement)("form", {
- ...innerBlocksProps,
- className: "wp-block-form",
- encType: submissionMethod === 'email' ? 'text/plain' : null
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl
+ // __nextHasNoMarginBottom
+ // size={ '__unstable-large' }
+ , {
+ label: (0,external_wp_i18n_namespaceObject.__)('Submissions method'),
+ options: [
+ // TODO: Allow plugins to add their own submission methods.
+ {
+ label: (0,external_wp_i18n_namespaceObject.__)('Send email'),
+ value: 'email'
+ }, {
+ label: (0,external_wp_i18n_namespaceObject.__)('- Custom -'),
+ value: 'custom'
+ }],
+ value: submissionMethod,
+ onChange: value => setAttributes({
+ submissionMethod: value
+ }),
+ help: submissionMethod === 'custom' ? (0,external_wp_i18n_namespaceObject.__)('Select the method to use for form submissions. Additional options for the "custom" mode can be found in the "Advanced" section.') : (0,external_wp_i18n_namespaceObject.__)('Select the method to use for form submissions.')
+ }), submissionMethod === 'email' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ autoComplete: "off",
+ label: (0,external_wp_i18n_namespaceObject.__)('Email for form submissions'),
+ value: email,
+ required: true,
+ onChange: value => {
+ setAttributes({
+ email: value
+ });
+ setAttributes({
+ action: `mailto:${value}`
+ });
+ setAttributes({
+ method: 'post'
+ });
+ },
+ help: (0,external_wp_i18n_namespaceObject.__)('The email address where form submissions will be sent. Separate multiple email addresses with a comma.')
+ })]
+ })
+ }), submissionMethod !== 'email' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "advanced",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Method'),
+ options: [{
+ label: 'Get',
+ value: 'get'
+ }, {
+ label: 'Post',
+ value: 'post'
+ }],
+ value: method,
+ onChange: value => setAttributes({
+ method: value
+ }),
+ help: (0,external_wp_i18n_namespaceObject.__)('Select the method to use for form submissions.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ autoComplete: "off",
+ label: (0,external_wp_i18n_namespaceObject.__)('Form action'),
+ value: action,
+ onChange: newVal => {
+ setAttributes({
+ action: newVal
+ });
+ },
+ help: (0,external_wp_i18n_namespaceObject.__)('The URL where the form should be submitted.')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ ...innerBlocksProps,
+ className: "wp-block-form",
+ encType: submissionMethod === 'email' ? 'text/plain' : null
+ })]
+ });
};
/* harmony default export */ const form_edit = (form_edit_Edit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/form/save.js
-
/**
* WordPress dependencies
*/
-const Save = ({
+
+function form_save_save({
attributes
-}) => {
+}) {
const blockProps = external_wp_blockEditor_namespaceObject.useBlockProps.save();
const {
submissionMethod
} = attributes;
- return (0,external_React_namespaceObject.createElement)("form", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
...blockProps,
className: "wp-block-form",
- encType: submissionMethod === 'email' ? 'text/plain' : null
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null));
-};
-/* harmony default export */ const form_save = (Save);
+ encType: submissionMethod === 'email' ? 'text/plain' : null,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ });
+}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/form/variations.js
/**
@@ -18256,7 +18752,7 @@ const {
const form_settings = {
edit: form_edit,
- save: form_save,
+ save: form_save_save,
variations: form_variations
};
const form_init = () => {
@@ -18290,7 +18786,6 @@ var remove_accents_default = /*#__PURE__*/__webpack_require__.n(remove_accents);
;// CONCATENATED MODULE: external ["wp","dom"]
const external_wp_dom_namespaceObject = window["wp"]["dom"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/form-input/deprecated.js
-
/**
* External dependencies
*/
@@ -18302,6 +18797,8 @@ const external_wp_dom_namespaceObject = window["wp"]["dom"];
*/
+
+
const getNameFromLabelV1 = content => {
return remove_accents_default()((0,external_wp_dom_namespaceObject.__unstableStripHTML)(content))
// Convert anything that's not a letter or number to a hyphen.
@@ -18393,10 +18890,10 @@ const form_input_deprecated_v1 = {
...borderProps.style,
...colorProps.style
};
- const inputClasses = classnames_default()('wp-block-form-input__input', colorProps.className, borderProps.className);
+ const inputClasses = dist_clsx('wp-block-form-input__input', colorProps.className, borderProps.className);
const TagName = type === 'textarea' ? 'textarea' : 'input';
if ('hidden' === type) {
- return (0,external_React_namespaceObject.createElement)("input", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
type: type,
name: name,
value: value
@@ -18404,23 +18901,25 @@ const form_input_deprecated_v1 = {
}
/* eslint-disable jsx-a11y/label-has-associated-control */
- return (0,external_React_namespaceObject.createElement)("label", {
- className: classnames_default()('wp-block-form-input__label', {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("label", {
+ className: dist_clsx('wp-block-form-input__label', {
'is-label-inline': inlineLabel
- })
- }, (0,external_React_namespaceObject.createElement)("span", {
- className: "wp-block-form-input__label-content"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: label
- })), (0,external_React_namespaceObject.createElement)(TagName, {
- className: inputClasses,
- type: 'textarea' === type ? undefined : type,
- name: name || getNameFromLabelV1(label),
- required: required,
- "aria-required": required,
- placeholder: placeholder || undefined,
- style: inputStyle
- }));
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "wp-block-form-input__label-content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: label
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ className: inputClasses,
+ type: 'textarea' === type ? undefined : type,
+ name: name || getNameFromLabelV1(label),
+ required: required,
+ "aria-required": required,
+ placeholder: placeholder || undefined,
+ style: inputStyle
+ })]
+ });
/* eslint-enable jsx-a11y/label-has-associated-control */
}
};
@@ -18428,7 +18927,6 @@ const form_input_deprecated_deprecated = [form_input_deprecated_v1];
/* harmony default export */ const form_input_deprecated = (form_input_deprecated_deprecated);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/form-input/edit.js
-
/**
* External dependencies
*/
@@ -18441,6 +18939,9 @@ const form_input_deprecated_deprecated = [form_input_deprecated_v1];
+
+
+
function InputFieldBlock({
attributes,
setAttributes,
@@ -18463,88 +18964,97 @@ function InputFieldBlock({
if (ref.current) {
ref.current.focus();
}
- const controls = (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, 'hidden' !== type && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Input settings')
- }, 'checkbox' !== type && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Inline label'),
- checked: inlineLabel,
- onChange: newVal => {
- setAttributes({
- inlineLabel: newVal
- });
- }
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Required'),
- checked: required,
- onChange: newVal => {
- setAttributes({
- required: newVal
- });
- }
- }))), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "advanced"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- autoComplete: "off",
- label: (0,external_wp_i18n_namespaceObject.__)('Name'),
- value: name,
- onChange: newVal => {
- setAttributes({
- name: newVal
- });
- },
- help: (0,external_wp_i18n_namespaceObject.__)('Affects the "name" atribute of the input element, and is used as a name for the form submission results.')
- })));
- if ('hidden' === type) {
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, controls, (0,external_React_namespaceObject.createElement)("input", {
- type: "hidden",
- className: classnames_default()(className, 'wp-block-form-input__input', colorProps.className, borderProps.className),
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Value'),
- value: value,
- onChange: event => setAttributes({
- value: event.target.value
+ const controls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: ['hidden' !== type && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: ['checkbox' !== type && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Inline label'),
+ checked: inlineLabel,
+ onChange: newVal => {
+ setAttributes({
+ inlineLabel: newVal
+ });
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Required'),
+ checked: required,
+ onChange: newVal => {
+ setAttributes({
+ required: newVal
+ });
+ }
+ })]
})
- }));
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "advanced",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ autoComplete: "off",
+ label: (0,external_wp_i18n_namespaceObject.__)('Name'),
+ value: name,
+ onChange: newVal => {
+ setAttributes({
+ name: newVal
+ });
+ },
+ help: (0,external_wp_i18n_namespaceObject.__)('Affects the "name" atribute of the input element, and is used as a name for the form submission results.')
+ })
+ })]
+ });
+ if ('hidden' === type) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [controls, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
+ type: "hidden",
+ className: dist_clsx(className, 'wp-block-form-input__input', colorProps.className, borderProps.className),
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Value'),
+ value: value,
+ onChange: event => setAttributes({
+ value: event.target.value
+ })
+ })]
+ });
}
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, controls, (0,external_React_namespaceObject.createElement)("span", {
- className: classnames_default()('wp-block-form-input__label', {
- 'is-label-inline': inlineLabel || 'checkbox' === type
- })
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- tagName: "span",
- className: "wp-block-form-input__label-content",
- value: label,
- onChange: newLabel => setAttributes({
- label: newLabel
- }),
- "aria-label": label ? (0,external_wp_i18n_namespaceObject.__)('Label') : (0,external_wp_i18n_namespaceObject.__)('Empty label'),
- "data-empty": label ? false : true,
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Type the label for this input')
- }), (0,external_React_namespaceObject.createElement)(TagName, {
- type: 'textarea' === type ? undefined : type,
- className: classnames_default()(className, 'wp-block-form-input__input', colorProps.className, borderProps.className),
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Optional placeholder text')
- // We hide the placeholder field's placeholder when there is a value. This
- // stops screen readers from reading the placeholder field's placeholder
- // which is confusing.
- ,
- placeholder: placeholder ? undefined : (0,external_wp_i18n_namespaceObject.__)('Optional placeholder…'),
- value: placeholder,
- onChange: event => setAttributes({
- placeholder: event.target.value
- }),
- "aria-required": required,
- style: {
- ...borderProps.style,
- ...colorProps.style
- }
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...blockProps,
+ children: [controls, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
+ className: dist_clsx('wp-block-form-input__label', {
+ 'is-label-inline': inlineLabel || 'checkbox' === type
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ tagName: "span",
+ className: "wp-block-form-input__label-content",
+ value: label,
+ onChange: newLabel => setAttributes({
+ label: newLabel
+ }),
+ "aria-label": label ? (0,external_wp_i18n_namespaceObject.__)('Label') : (0,external_wp_i18n_namespaceObject.__)('Empty label'),
+ "data-empty": label ? false : true,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Type the label for this input')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ type: 'textarea' === type ? undefined : type,
+ className: dist_clsx(className, 'wp-block-form-input__input', colorProps.className, borderProps.className),
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Optional placeholder text')
+ // We hide the placeholder field's placeholder when there is a value. This
+ // stops screen readers from reading the placeholder field's placeholder
+ // which is confusing.
+ ,
+ placeholder: placeholder ? undefined : (0,external_wp_i18n_namespaceObject.__)('Optional placeholder…'),
+ value: placeholder,
+ onChange: event => setAttributes({
+ placeholder: event.target.value
+ }),
+ "aria-required": required,
+ style: {
+ ...borderProps.style,
+ ...colorProps.style
+ }
+ })]
+ })]
+ });
}
/* harmony default export */ const form_input_edit = (InputFieldBlock);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/form-input/save.js
-
/**
* External dependencies
*/
@@ -18564,6 +19074,8 @@ function InputFieldBlock({
*
* @return {string} Returns the slug.
*/
+
+
const getNameFromLabel = content => {
return remove_accents_default()((0,external_wp_dom_namespaceObject.__unstableStripHTML)(content))
// Convert anything that's not a letter or number to a hyphen.
@@ -18591,35 +19103,38 @@ function form_input_save_save({
...borderProps.style,
...colorProps.style
};
- const inputClasses = classnames_default()('wp-block-form-input__input', colorProps.className, borderProps.className);
+ const inputClasses = dist_clsx('wp-block-form-input__input', colorProps.className, borderProps.className);
const TagName = type === 'textarea' ? 'textarea' : 'input';
const blockProps = external_wp_blockEditor_namespaceObject.useBlockProps.save();
if ('hidden' === type) {
- return (0,external_React_namespaceObject.createElement)("input", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
type: type,
name: name,
value: value
});
}
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)("label", {
- className: classnames_default()('wp-block-form-input__label', {
- 'is-label-inline': inlineLabel
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("label", {
+ className: dist_clsx('wp-block-form-input__label', {
+ 'is-label-inline': inlineLabel
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "wp-block-form-input__label-content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: label
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ className: inputClasses,
+ type: 'textarea' === type ? undefined : type,
+ name: name || getNameFromLabel(label),
+ required: required,
+ "aria-required": required,
+ placeholder: placeholder || undefined,
+ style: inputStyle
+ })]
})
- }, (0,external_React_namespaceObject.createElement)("span", {
- className: "wp-block-form-input__label-content"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: label
- })), (0,external_React_namespaceObject.createElement)(TagName, {
- className: inputClasses,
- type: 'textarea' === type ? undefined : type,
- name: name || getNameFromLabel(label),
- required: required,
- "aria-required": required,
- placeholder: placeholder || undefined,
- style: inputStyle
- })));
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/form-input/variations.js
@@ -18807,12 +19322,12 @@ const form_input_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/form-submit-button/edit.js
-
/**
* WordPress dependencies
*/
+
const form_submit_button_edit_TEMPLATE = [['core/buttons', {}, [['core/button', {
text: (0,external_wp_i18n_namespaceObject.__)('Submit'),
tagName: 'button',
@@ -18824,7 +19339,7 @@ const form_submit_button_edit_Edit = () => {
template: form_submit_button_edit_TEMPLATE,
templateLock: 'all'
});
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: "wp-block-form-submit-wrapper",
...innerBlocksProps
});
@@ -18832,19 +19347,19 @@ const form_submit_button_edit_Edit = () => {
/* harmony default export */ const form_submit_button_edit = (form_submit_button_edit_Edit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/form-submit-button/save.js
-
/**
* WordPress dependencies
*/
-const save_Save = () => {
+
+function form_submit_button_save_save() {
const blockProps = external_wp_blockEditor_namespaceObject.useBlockProps.save();
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: "wp-block-form-submit-wrapper",
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null));
-};
-/* harmony default export */ const form_submit_button_save = (save_Save);
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ });
+}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/form-submit-button/index.js
/**
@@ -18874,7 +19389,7 @@ const {
const form_submit_button_settings = {
edit: form_submit_button_edit,
- save: form_submit_button_save
+ save: form_submit_button_save_save
};
const form_submit_button_init = () => initBlock({
name: form_submit_button_name,
@@ -18883,21 +19398,21 @@ const form_submit_button_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/group.js
-
/**
* WordPress dependencies
*/
-const group = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const group = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
/* harmony default export */ const library_group = (group);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/form-submission-notification/edit.js
-
/**
* WordPress dependencies
*/
@@ -18909,6 +19424,7 @@ const group = (0,external_React_namespaceObject.createElement)(external_wp_primi
* External dependencies
*/
+
const form_submission_notification_edit_TEMPLATE = [['core/paragraph', {
content: (0,external_wp_i18n_namespaceObject.__)("Enter the message you wish displayed for form submission error/success, and select the type of the message (success/error) from the block's options.")
}]];
@@ -18920,7 +19436,7 @@ const form_submission_notification_edit_Edit = ({
type
} = attributes;
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()('wp-block-form-submission-notification', {
+ className: dist_clsx('wp-block-form-submission-notification', {
[`form-notification-type-${type}`]: type
})
});
@@ -18939,7 +19455,7 @@ const form_submission_notification_edit_Edit = ({
template: form_submission_notification_edit_TEMPLATE,
renderAppender: hasInnerBlocks ? undefined : external_wp_blockEditor_namespaceObject.InnerBlocks.ButtonBlockAppender
});
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...innerBlocksProps,
"data-message-success": (0,external_wp_i18n_namespaceObject.__)('Submission success notification'),
"data-message-error": (0,external_wp_i18n_namespaceObject.__)('Submission error notification')
@@ -18948,7 +19464,6 @@ const form_submission_notification_edit_Edit = ({
/* harmony default export */ const form_submission_notification_edit = (form_submission_notification_edit_Edit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/form-submission-notification/save.js
-
/**
* WordPress dependencies
*/
@@ -18958,15 +19473,16 @@ const form_submission_notification_edit_Edit = ({
* External dependencies
*/
+
function form_submission_notification_save_save({
attributes
}) {
const {
type
} = attributes;
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save(external_wp_blockEditor_namespaceObject.useBlockProps.save({
- className: classnames_default()('wp-block-form-submission-notification', {
+ className: dist_clsx('wp-block-form-submission-notification', {
[`form-notification-type-${type}`]: type
})
}))
@@ -19078,19 +19594,20 @@ const form_submission_notification_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/gallery.js
-
/**
* WordPress dependencies
*/
-const gallery = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const gallery = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z",
- fillRule: "evenodd",
- clipRule: "evenodd"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z",
+ fillRule: "evenodd",
+ clipRule: "evenodd"
+ })
+});
/* harmony default export */ const library_gallery = (gallery);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/constants.js
@@ -19140,7 +19657,6 @@ function isGalleryV2Enabled() {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/deprecated.js
-
/**
* External dependencies
*/
@@ -19157,6 +19673,8 @@ function isGalleryV2Enabled() {
*/
+
+
const DEPRECATED_LINK_DESTINATION_MEDIA = 'file';
const DEPRECATED_LINK_DESTINATION_ATTACHMENT = 'post';
@@ -19365,7 +19883,7 @@ const deprecated_v7 = {
columns,
imageCrop
} = attributes;
- const className = classnames_default()('has-nested-images', {
+ const className = dist_clsx('has-nested-images', {
[`columns-${columns}`]: columns !== undefined,
[`columns-default`]: columns === undefined,
'is-cropped': imageCrop
@@ -19374,13 +19892,14 @@ const deprecated_v7 = {
className
});
const innerBlocksProps = external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save(blockProps);
- return (0,external_React_namespaceObject.createElement)("figure", {
- ...innerBlocksProps
- }, innerBlocksProps.children, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- className: "blocks-gallery-caption",
- value: caption
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ ...innerBlocksProps,
+ children: [innerBlocksProps.children, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ className: "blocks-gallery-caption",
+ value: caption
+ })]
+ });
}
};
const deprecated_v6 = {
@@ -19477,45 +19996,50 @@ const deprecated_v6 = {
linkTo
} = attributes;
const className = `columns-${columns} ${imageCrop ? 'is-cropped' : ''}`;
- return (0,external_React_namespaceObject.createElement)("figure", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className
- })
- }, (0,external_React_namespaceObject.createElement)("ul", {
- className: "blocks-gallery-grid"
- }, images.map(image => {
- let href;
- switch (linkTo) {
- case DEPRECATED_LINK_DESTINATION_MEDIA:
- href = image.fullUrl || image.url;
- break;
- case DEPRECATED_LINK_DESTINATION_ATTACHMENT:
- href = image.link;
- break;
- }
- const img = (0,external_React_namespaceObject.createElement)("img", {
- src: image.url,
- alt: image.alt,
- "data-id": image.id,
- "data-full-url": image.fullUrl,
- "data-link": image.link,
- className: image.id ? `wp-image-${image.id}` : null
- });
- return (0,external_React_namespaceObject.createElement)("li", {
- key: image.id || image.url,
- className: "blocks-gallery-item"
- }, (0,external_React_namespaceObject.createElement)("figure", null, href ? (0,external_React_namespaceObject.createElement)("a", {
- href: href
- }, img) : img, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(image.caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ className: "blocks-gallery-grid",
+ children: images.map(image => {
+ let href;
+ switch (linkTo) {
+ case DEPRECATED_LINK_DESTINATION_MEDIA:
+ href = image.fullUrl || image.url;
+ break;
+ case DEPRECATED_LINK_DESTINATION_ATTACHMENT:
+ href = image.link;
+ break;
+ }
+ const img = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: image.url,
+ alt: image.alt,
+ "data-id": image.id,
+ "data-full-url": image.fullUrl,
+ "data-link": image.link,
+ className: image.id ? `wp-image-${image.id}` : null
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ className: "blocks-gallery-item",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ children: [href ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: href,
+ children: img
+ }) : img, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(image.caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ className: "blocks-gallery-item__caption",
+ value: image.caption
+ })]
+ })
+ }, image.id || image.url);
+ })
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
tagName: "figcaption",
- className: "blocks-gallery-item__caption",
- value: image.caption
- })));
- })), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- className: "blocks-gallery-caption",
- value: caption
- }));
+ className: "blocks-gallery-caption",
+ value: caption
+ })]
+ });
},
migrate(attributes) {
if (isGalleryV2Enabled()) {
@@ -19635,43 +20159,48 @@ const deprecated_v5 = {
caption,
linkTo
} = attributes;
- return (0,external_React_namespaceObject.createElement)("figure", {
- className: `columns-${columns} ${imageCrop ? 'is-cropped' : ''}`
- }, (0,external_React_namespaceObject.createElement)("ul", {
- className: "blocks-gallery-grid"
- }, images.map(image => {
- let href;
- switch (linkTo) {
- case 'media':
- href = image.fullUrl || image.url;
- break;
- case 'attachment':
- href = image.link;
- break;
- }
- const img = (0,external_React_namespaceObject.createElement)("img", {
- src: image.url,
- alt: image.alt,
- "data-id": image.id,
- "data-full-url": image.fullUrl,
- "data-link": image.link,
- className: image.id ? `wp-image-${image.id}` : null
- });
- return (0,external_React_namespaceObject.createElement)("li", {
- key: image.id || image.url,
- className: "blocks-gallery-item"
- }, (0,external_React_namespaceObject.createElement)("figure", null, href ? (0,external_React_namespaceObject.createElement)("a", {
- href: href
- }, img) : img, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(image.caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ className: `columns-${columns} ${imageCrop ? 'is-cropped' : ''}`,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ className: "blocks-gallery-grid",
+ children: images.map(image => {
+ let href;
+ switch (linkTo) {
+ case 'media':
+ href = image.fullUrl || image.url;
+ break;
+ case 'attachment':
+ href = image.link;
+ break;
+ }
+ const img = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: image.url,
+ alt: image.alt,
+ "data-id": image.id,
+ "data-full-url": image.fullUrl,
+ "data-link": image.link,
+ className: image.id ? `wp-image-${image.id}` : null
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ className: "blocks-gallery-item",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ children: [href ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: href,
+ children: img
+ }) : img, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(image.caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ className: "blocks-gallery-item__caption",
+ value: image.caption
+ })]
+ })
+ }, image.id || image.url);
+ })
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
tagName: "figcaption",
- className: "blocks-gallery-item__caption",
- value: image.caption
- })));
- })), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- className: "blocks-gallery-caption",
- value: caption
- }));
+ className: "blocks-gallery-caption",
+ value: caption
+ })]
+ });
}
};
const deprecated_v4 = {
@@ -19767,43 +20296,48 @@ const deprecated_v4 = {
caption,
linkTo
} = attributes;
- return (0,external_React_namespaceObject.createElement)("figure", {
- className: `columns-${columns} ${imageCrop ? 'is-cropped' : ''}`
- }, (0,external_React_namespaceObject.createElement)("ul", {
- className: "blocks-gallery-grid"
- }, images.map(image => {
- let href;
- switch (linkTo) {
- case 'media':
- href = image.fullUrl || image.url;
- break;
- case 'attachment':
- href = image.link;
- break;
- }
- const img = (0,external_React_namespaceObject.createElement)("img", {
- src: image.url,
- alt: image.alt,
- "data-id": image.id,
- "data-full-url": image.fullUrl,
- "data-link": image.link,
- className: image.id ? `wp-image-${image.id}` : null
- });
- return (0,external_React_namespaceObject.createElement)("li", {
- key: image.id || image.url,
- className: "blocks-gallery-item"
- }, (0,external_React_namespaceObject.createElement)("figure", null, href ? (0,external_React_namespaceObject.createElement)("a", {
- href: href
- }, img) : img, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(image.caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ className: `columns-${columns} ${imageCrop ? 'is-cropped' : ''}`,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ className: "blocks-gallery-grid",
+ children: images.map(image => {
+ let href;
+ switch (linkTo) {
+ case 'media':
+ href = image.fullUrl || image.url;
+ break;
+ case 'attachment':
+ href = image.link;
+ break;
+ }
+ const img = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: image.url,
+ alt: image.alt,
+ "data-id": image.id,
+ "data-full-url": image.fullUrl,
+ "data-link": image.link,
+ className: image.id ? `wp-image-${image.id}` : null
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ className: "blocks-gallery-item",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ children: [href ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: href,
+ children: img
+ }) : img, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(image.caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ className: "blocks-gallery-item__caption",
+ value: image.caption
+ })]
+ })
+ }, image.id || image.url);
+ })
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
tagName: "figcaption",
- className: "blocks-gallery-item__caption",
- value: image.caption
- })));
- })), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- className: "blocks-gallery-caption",
- value: caption
- }));
+ className: "blocks-gallery-caption",
+ value: caption
+ })]
+ });
}
};
const gallery_deprecated_v3 = {
@@ -19875,36 +20409,40 @@ const gallery_deprecated_v3 = {
imageCrop,
linkTo
} = attributes;
- return (0,external_React_namespaceObject.createElement)("ul", {
- className: `columns-${columns} ${imageCrop ? 'is-cropped' : ''}`
- }, images.map(image => {
- let href;
- switch (linkTo) {
- case 'media':
- href = image.fullUrl || image.url;
- break;
- case 'attachment':
- href = image.link;
- break;
- }
- const img = (0,external_React_namespaceObject.createElement)("img", {
- src: image.url,
- alt: image.alt,
- "data-id": image.id,
- "data-full-url": image.fullUrl,
- "data-link": image.link,
- className: image.id ? `wp-image-${image.id}` : null
- });
- return (0,external_React_namespaceObject.createElement)("li", {
- key: image.id || image.url,
- className: "blocks-gallery-item"
- }, (0,external_React_namespaceObject.createElement)("figure", null, href ? (0,external_React_namespaceObject.createElement)("a", {
- href: href
- }, img) : img, image.caption && image.caption.length > 0 && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- value: image.caption
- })));
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ className: `columns-${columns} ${imageCrop ? 'is-cropped' : ''}`,
+ children: images.map(image => {
+ let href;
+ switch (linkTo) {
+ case 'media':
+ href = image.fullUrl || image.url;
+ break;
+ case 'attachment':
+ href = image.link;
+ break;
+ }
+ const img = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: image.url,
+ alt: image.alt,
+ "data-id": image.id,
+ "data-full-url": image.fullUrl,
+ "data-link": image.link,
+ className: image.id ? `wp-image-${image.id}` : null
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ className: "blocks-gallery-item",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ children: [href ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: href,
+ children: img
+ }) : img, image.caption && image.caption.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ value: image.caption
+ })]
+ })
+ }, image.id || image.url);
+ })
+ });
},
migrate(attributes) {
if (isGalleryV2Enabled()) {
@@ -20001,35 +20539,39 @@ const gallery_deprecated_v2 = {
imageCrop,
linkTo
} = attributes;
- return (0,external_React_namespaceObject.createElement)("ul", {
- className: `columns-${columns} ${imageCrop ? 'is-cropped' : ''}`
- }, images.map(image => {
- let href;
- switch (linkTo) {
- case 'media':
- href = image.url;
- break;
- case 'attachment':
- href = image.link;
- break;
- }
- const img = (0,external_React_namespaceObject.createElement)("img", {
- src: image.url,
- alt: image.alt,
- "data-id": image.id,
- "data-link": image.link,
- className: image.id ? `wp-image-${image.id}` : null
- });
- return (0,external_React_namespaceObject.createElement)("li", {
- key: image.id || image.url,
- className: "blocks-gallery-item"
- }, (0,external_React_namespaceObject.createElement)("figure", null, href ? (0,external_React_namespaceObject.createElement)("a", {
- href: href
- }, img) : img, image.caption && image.caption.length > 0 && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- value: image.caption
- })));
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ className: `columns-${columns} ${imageCrop ? 'is-cropped' : ''}`,
+ children: images.map(image => {
+ let href;
+ switch (linkTo) {
+ case 'media':
+ href = image.url;
+ break;
+ case 'attachment':
+ href = image.link;
+ break;
+ }
+ const img = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: image.url,
+ alt: image.alt,
+ "data-id": image.id,
+ "data-link": image.link,
+ className: image.id ? `wp-image-${image.id}` : null
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ className: "blocks-gallery-item",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ children: [href ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: href,
+ children: img
+ }) : img, image.caption && image.caption.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ value: image.caption
+ })]
+ })
+ }, image.id || image.url);
+ })
+ });
}
};
const gallery_deprecated_v1 = {
@@ -20084,34 +20626,36 @@ const gallery_deprecated_v1 = {
imageCrop,
linkTo
} = attributes;
- const className = classnames_default()(`columns-${columns}`, {
+ const className = dist_clsx(`columns-${columns}`, {
alignnone: align === 'none',
'is-cropped': imageCrop
});
- return (0,external_React_namespaceObject.createElement)("div", {
- className: className
- }, images.map(image => {
- let href;
- switch (linkTo) {
- case 'media':
- href = image.url;
- break;
- case 'attachment':
- href = image.link;
- break;
- }
- const img = (0,external_React_namespaceObject.createElement)("img", {
- src: image.url,
- alt: image.alt,
- "data-id": image.id
- });
- return (0,external_React_namespaceObject.createElement)("figure", {
- key: image.id || image.url,
- className: "blocks-gallery-image"
- }, href ? (0,external_React_namespaceObject.createElement)("a", {
- href: href
- }, img) : img);
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: className,
+ children: images.map(image => {
+ let href;
+ switch (linkTo) {
+ case 'media':
+ href = image.url;
+ break;
+ case 'attachment':
+ href = image.link;
+ break;
+ }
+ const img = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: image.url,
+ alt: image.alt,
+ "data-id": image.id
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
+ className: "blocks-gallery-image",
+ children: href ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: href,
+ children: img
+ }) : img
+ }, image.id || image.url);
+ })
+ });
},
migrate(attributes) {
if (isGalleryV2Enabled()) {
@@ -20125,13 +20669,13 @@ const gallery_deprecated_v1 = {
;// CONCATENATED MODULE: external ["wp","viewport"]
const external_wp_viewport_namespaceObject = window["wp"]["viewport"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/shared-icon.js
-
/**
* WordPress dependencies
*/
-const sharedIcon = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+
+const sharedIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
icon: library_gallery
});
@@ -20272,7 +20816,6 @@ function getImageSizeAttributes(image, size) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/gallery.js
-
/**
* External dependencies
*/
@@ -20288,6 +20831,8 @@ function getImageSizeAttributes(image, size) {
* Internal dependencies
*/
+
+
function Gallery(props) {
const {
attributes,
@@ -20305,26 +20850,28 @@ function Gallery(props) {
columns,
imageCrop
} = attributes;
- return (0,external_React_namespaceObject.createElement)("figure", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
...blockProps,
- className: classnames_default()(blockProps.className, layoutClassNames, 'blocks-gallery-grid', {
+ className: dist_clsx(blockProps.className, layoutClassNames, 'blocks-gallery-grid', {
[`align${align}`]: align,
[`columns-${columns}`]: columns !== undefined,
[`columns-default`]: columns === undefined,
'is-cropped': imageCrop
- })
- }, blockProps.children, isSelected && !blockProps.children && (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.View, {
- className: "blocks-gallery-media-placeholder-wrapper"
- }, mediaPlaceholder), (0,external_React_namespaceObject.createElement)(Caption, {
- attributes: attributes,
- setAttributes: setAttributes,
- isSelected: isSelected,
- insertBlocksAfter: insertBlocksAfter,
- showToolbarButton: !multiGallerySelection && !isContentLocked,
- className: "blocks-gallery-caption",
- label: (0,external_wp_i18n_namespaceObject.__)('Gallery caption text'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Add gallery caption')
- }));
+ }),
+ children: [blockProps.children, isSelected && !blockProps.children && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.View, {
+ className: "blocks-gallery-media-placeholder-wrapper",
+ children: mediaPlaceholder
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Caption, {
+ attributes: attributes,
+ setAttributes: setAttributes,
+ isSelected: isSelected,
+ insertBlocksAfter: insertBlocksAfter,
+ showToolbarButton: !multiGallerySelection && !isContentLocked,
+ className: "blocks-gallery-caption",
+ label: (0,external_wp_i18n_namespaceObject.__)('Gallery caption text'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Add gallery caption')
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/use-image-sizes.js
@@ -20508,7 +21055,6 @@ function GapStyles({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/edit.js
-
/**
* External dependencies
*/
@@ -20542,6 +21088,9 @@ function GapStyles({
+
+
+
const MAX_COLUMNS = 8;
const linkOptions = [{
value: LINK_DESTINATION_ATTACHMENT,
@@ -20558,6 +21107,9 @@ const PLACEHOLDER_TEXT = external_wp_element_namespaceObject.Platform.isNative ?
const MOBILE_CONTROL_PROPS_RANGE_CONTROL = external_wp_element_namespaceObject.Platform.isNative ? {
type: 'stepper'
} : {};
+const gallery_edit_DEFAULT_BLOCK = {
+ name: 'core/image'
+};
const EMPTY_ARRAY = [];
function GalleryEdit(props) {
const {
@@ -20591,7 +21143,6 @@ function GalleryEdit(props) {
const {
getBlock,
getSettings,
- preferredStyle,
innerBlockImages,
blockWasJustInserted,
multiGallerySelection
@@ -20604,12 +21155,10 @@ function GalleryEdit(props) {
getBlock: _getBlock,
wasBlockJustInserted
} = select(external_wp_blockEditor_namespaceObject.store);
- const preferredStyleVariations = _getSettings().__experimentalPreferredStyleVariations;
const multiSelectedClientIds = getMultiSelectedBlockClientIds();
return {
getBlock: _getBlock,
getSettings: _getSettings,
- preferredStyle: preferredStyleVariations?.value?.['core/image'],
innerBlockImages: (_getBlock$innerBlocks = _getBlock(clientId)?.innerBlocks) !== null && _getBlock$innerBlocks !== void 0 ? _getBlock$innerBlocks : EMPTY_ARRAY,
blockWasJustInserted: wasBlockJustInserted(clientId, 'inserter_menu'),
multiGallerySelection: multiSelectedClientIds.length && multiSelectedClientIds.every(_clientId => getBlockName(_clientId) === 'core/gallery')
@@ -20656,8 +21205,6 @@ function GalleryEdit(props) {
let newClassName;
if (imageAttributes.className && imageAttributes.className !== '') {
newClassName = imageAttributes.className;
- } else {
- newClassName = preferredStyle ? `is-style-${preferredStyle}` : undefined;
}
let newLinkTarget;
if (imageAttributes.linkTarget || imageAttributes.rel) {
@@ -20843,7 +21390,7 @@ function GalleryEdit(props) {
onFocus
}
});
- const mediaPlaceholder = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
+ const mediaPlaceholder = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
handleUpload: false,
icon: sharedIcon,
labels: {
@@ -20858,94 +21405,109 @@ function GalleryEdit(props) {
...mediaPlaceholderProps
});
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()(className, 'has-nested-images')
+ className: dist_clsx(className, 'has-nested-images')
});
const nativeInnerBlockProps = external_wp_element_namespaceObject.Platform.isNative && {
marginHorizontal: 0,
marginVertical: 0
};
const innerBlocksProps = (0,external_wp_blockEditor_namespaceObject.useInnerBlocksProps)(blockProps, {
+ defaultBlock: gallery_edit_DEFAULT_BLOCK,
+ directInsert: true,
orientation: 'horizontal',
renderAppender: false,
...nativeInnerBlockProps
});
if (!hasImages) {
- return (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.View, {
- ...innerBlocksProps
- }, innerBlocksProps.children, mediaPlaceholder);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.View, {
+ ...innerBlocksProps,
+ children: [innerBlocksProps.children, mediaPlaceholder]
+ });
}
const hasLinkTo = linkTo && linkTo !== 'none';
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, images.length > 1 && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
- value: columns ? columns : defaultColumnsNumber(images.length),
- onChange: setColumnsNumber,
- min: 1,
- max: Math.min(MAX_COLUMNS, images.length),
- ...MOBILE_CONTROL_PROPS_RANGE_CONTROL,
- required: true,
- __next40pxDefaultSize: true
- }), imageSizeOptions?.length > 0 && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Resolution'),
- help: (0,external_wp_i18n_namespaceObject.__)('Select the size of the source images.'),
- value: sizeSlug,
- options: imageSizeOptions,
- onChange: updateImagesSize,
- hideCancelButton: true,
- size: "__unstable-large"
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Link to'),
- value: linkTo,
- onChange: setLinkTo,
- options: linkOptions,
- hideCancelButton: true,
- size: "__unstable-large"
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Crop images to fit'),
- checked: !!imageCrop,
- onChange: toggleImageCrop
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Randomize order'),
- checked: !!randomOrder,
- onChange: toggleRandomOrder
- }), hasLinkTo && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Open images in new tab'),
- checked: linkTarget === '_blank',
- onChange: toggleOpenInNewTab
- }), external_wp_element_namespaceObject.Platform.isWeb && !imageSizeOptions && hasImageIds && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.BaseControl, {
- className: 'gallery-image-sizes'
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.BaseControl.VisualLabel, null, (0,external_wp_i18n_namespaceObject.__)('Resolution')), (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.View, {
- className: 'gallery-image-sizes__loading'
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null), (0,external_wp_i18n_namespaceObject.__)('Loading options…'))))), external_wp_element_namespaceObject.Platform.isWeb && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, !multiGallerySelection && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "other"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, {
- allowedTypes: edit_ALLOWED_MEDIA_TYPES,
- accept: "image/*",
- handleUpload: false,
- onSelect: updateImages,
- name: (0,external_wp_i18n_namespaceObject.__)('Add'),
- multiple: true,
- mediaIds: images.filter(image => image.id).map(image => image.id),
- addToGallery: hasImageIds
- })), (0,external_React_namespaceObject.createElement)(GapStyles, {
- blockGap: attributes.style?.spacing?.blockGap,
- clientId: clientId
- })), (0,external_React_namespaceObject.createElement)(Gallery, {
- ...props,
- isContentLocked: isContentLocked,
- images: images,
- mediaPlaceholder: !hasImages || external_wp_element_namespaceObject.Platform.isNative ? mediaPlaceholder : undefined,
- blockProps: innerBlocksProps,
- insertBlocksAfter: insertBlocksAfter,
- multiGallerySelection: multiGallerySelection
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [images.length > 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
+ value: columns ? columns : defaultColumnsNumber(images.length),
+ onChange: setColumnsNumber,
+ min: 1,
+ max: Math.min(MAX_COLUMNS, images.length),
+ ...MOBILE_CONTROL_PROPS_RANGE_CONTROL,
+ required: true,
+ __next40pxDefaultSize: true
+ }), imageSizeOptions?.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Resolution'),
+ help: (0,external_wp_i18n_namespaceObject.__)('Select the size of the source images.'),
+ value: sizeSlug,
+ options: imageSizeOptions,
+ onChange: updateImagesSize,
+ hideCancelButton: true,
+ size: "__unstable-large"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Link to'),
+ value: linkTo,
+ onChange: setLinkTo,
+ options: linkOptions,
+ hideCancelButton: true,
+ size: "__unstable-large"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Crop images to fit'),
+ checked: !!imageCrop,
+ onChange: toggleImageCrop
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Randomize order'),
+ checked: !!randomOrder,
+ onChange: toggleRandomOrder
+ }), hasLinkTo && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Open images in new tab'),
+ checked: linkTarget === '_blank',
+ onChange: toggleOpenInNewTab
+ }), external_wp_element_namespaceObject.Platform.isWeb && !imageSizeOptions && hasImageIds && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.BaseControl, {
+ className: "gallery-image-sizes",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Resolution')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.View, {
+ className: "gallery-image-sizes__loading",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}), (0,external_wp_i18n_namespaceObject.__)('Loading options…')]
+ })]
+ })]
+ })
+ }), external_wp_element_namespaceObject.Platform.isWeb && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [!multiGallerySelection && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "other",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, {
+ allowedTypes: edit_ALLOWED_MEDIA_TYPES,
+ accept: "image/*",
+ handleUpload: false,
+ onSelect: updateImages,
+ name: (0,external_wp_i18n_namespaceObject.__)('Add'),
+ multiple: true,
+ mediaIds: images.filter(image => image.id).map(image => image.id),
+ addToGallery: hasImageIds
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GapStyles, {
+ blockGap: attributes.style?.spacing?.blockGap,
+ clientId: clientId
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Gallery, {
+ ...props,
+ isContentLocked: isContentLocked,
+ images: images,
+ mediaPlaceholder: !hasImages || external_wp_element_namespaceObject.Platform.isNative ? mediaPlaceholder : undefined,
+ blockProps: innerBlocksProps,
+ insertBlocksAfter: insertBlocksAfter,
+ multiGallerySelection: multiGallerySelection
+ })]
+ });
}
/* harmony default export */ const gallery_edit = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_viewport_namespaceObject.withViewportMatch)({
isNarrow: '< small'
@@ -20963,59 +21525,63 @@ const shared_pickRelevantMediaFiles = (image, sizeSlug = 'large') => {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/image.js
-
/**
* WordPress dependencies
*/
-const image_image = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const image_image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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.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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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.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 */ const library_image = (image_image);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js
-
/**
* WordPress dependencies
*/
-const chevronLeft = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
+ })
+});
/* harmony default export */ const chevron_left = (chevronLeft);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js
-
/**
* WordPress dependencies
*/
-const chevronRight = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
+ })
+});
/* harmony default export */ const chevron_right = (chevronRight);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
-
/**
* WordPress dependencies
*/
-const closeSmall = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const closeSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
+ })
+});
/* harmony default export */ const close_small = (closeSmall);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/v1/constants.js
@@ -21024,7 +21590,6 @@ const v1_constants_LINK_DESTINATION_MEDIA = 'file';
const v1_constants_LINK_DESTINATION_ATTACHMENT = 'post';
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/v1/gallery-image.js
-
/**
* External dependencies
*/
@@ -21049,6 +21614,9 @@ const v1_constants_LINK_DESTINATION_ATTACHMENT = 'post';
*/
+
+
+
const isTemporaryImage = (id, url) => !id && (0,external_wp_blob_namespaceObject.isBlobURL)(url);
class GalleryImage extends external_wp_element_namespaceObject.Component {
constructor() {
@@ -21184,81 +21752,101 @@ class GalleryImage extends external_wp_element_namespaceObject.Component {
break;
}
const img =
+ /*#__PURE__*/
// Disable reason: Image itself is not meant to be interactive, but should
// direct image selection and unfocus caption fields.
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
- (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("img", {
- src: url,
- alt: alt,
- "data-id": id,
- onKeyDown: this.onRemoveImage,
- tabIndex: "0",
- "aria-label": ariaLabel,
- ref: this.bindContainer
- }), (0,external_wp_blob_namespaceObject.isBlobURL)(url) && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null))
+ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: url,
+ alt: alt,
+ "data-id": id,
+ onKeyDown: this.onRemoveImage,
+ tabIndex: "0",
+ "aria-label": ariaLabel,
+ ref: this.bindContainer
+ }), (0,external_wp_blob_namespaceObject.isBlobURL)(url) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})]
+ })
/* eslint-enable jsx-a11y/no-noninteractive-element-interactions */;
- const className = classnames_default()({
+ const className = dist_clsx({
'is-selected': isSelected,
'is-transient': (0,external_wp_blob_namespaceObject.isBlobURL)(url)
});
return (
+ /*#__PURE__*/
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
- (0,external_React_namespaceObject.createElement)("figure", {
+ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
className: className,
onClick: this.onSelectImage,
- onFocus: this.onSelectImage
- }, !isEditing && (href ? (0,external_React_namespaceObject.createElement)("a", {
- href: href
- }, img) : img), isEditing && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
- labels: {
- title: (0,external_wp_i18n_namespaceObject.__)('Edit gallery image')
- },
- icon: library_image,
- onSelect: this.onSelectImageFromLibrary,
- onSelectURL: this.onSelectCustomURL,
- accept: "image/*",
- allowedTypes: ['image'],
- value: {
- id,
- src: url
- }
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ButtonGroup, {
- className: "block-library-gallery-item__inline-menu is-left"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- icon: chevron_left,
- onClick: isFirstItem ? undefined : onMoveBackward,
- label: (0,external_wp_i18n_namespaceObject.__)('Move image backward'),
- "aria-disabled": isFirstItem,
- disabled: !isSelected
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- icon: chevron_right,
- onClick: isLastItem ? undefined : onMoveForward,
- label: (0,external_wp_i18n_namespaceObject.__)('Move image forward'),
- "aria-disabled": isLastItem,
- disabled: !isSelected
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ButtonGroup, {
- className: "block-library-gallery-item__inline-menu is-right"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- icon: library_edit,
- onClick: this.onEdit,
- label: (0,external_wp_i18n_namespaceObject.__)('Replace image'),
- disabled: !isSelected
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- icon: close_small,
- onClick: onRemove,
- label: (0,external_wp_i18n_namespaceObject.__)('Remove image'),
- disabled: !isSelected
- })), !isEditing && (isSelected || caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- tagName: "figcaption",
- className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Image caption text'),
- placeholder: isSelected ? (0,external_wp_i18n_namespaceObject.__)('Add caption') : null,
- value: caption,
- onChange: newCaption => setAttributes({
- caption: newCaption
- }),
- inlineToolbar: true
- }))
+ onFocus: this.onSelectImage,
+ children: [!isEditing && (href ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: href,
+ children: img
+ }) : img), isEditing && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
+ labels: {
+ title: (0,external_wp_i18n_namespaceObject.__)('Edit gallery image')
+ },
+ icon: library_image,
+ onSelect: this.onSelectImageFromLibrary,
+ onSelectURL: this.onSelectCustomURL,
+ accept: "image/*",
+ allowedTypes: ['image'],
+ value: {
+ id,
+ src: url
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.ButtonGroup, {
+ className: "block-library-gallery-item__inline-menu is-left",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: chevron_left,
+ onClick: isFirstItem ? undefined : onMoveBackward,
+ label: (0,external_wp_i18n_namespaceObject.__)('Move image backward'),
+ "aria-disabled": isFirstItem
+ // Disable reason: Truly disable when image is not selected.
+ // eslint-disable-next-line no-restricted-syntax
+ ,
+ disabled: !isSelected
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: chevron_right,
+ onClick: isLastItem ? undefined : onMoveForward,
+ label: (0,external_wp_i18n_namespaceObject.__)('Move image forward'),
+ "aria-disabled": isLastItem
+ // Disable reason: Truly disable when image is not selected.
+ // eslint-disable-next-line no-restricted-syntax
+ ,
+ disabled: !isSelected
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.ButtonGroup, {
+ className: "block-library-gallery-item__inline-menu is-right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: library_edit,
+ onClick: this.onEdit,
+ label: (0,external_wp_i18n_namespaceObject.__)('Replace image')
+ // Disable reason: Truly disable when image is not selected.
+ // eslint-disable-next-line no-restricted-syntax
+ ,
+ disabled: !isSelected
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: close_small,
+ onClick: onRemove,
+ label: (0,external_wp_i18n_namespaceObject.__)('Remove image')
+ // Disable reason: Truly disable when image is not selected.
+ // eslint-disable-next-line no-restricted-syntax
+ ,
+ disabled: !isSelected
+ })]
+ }), !isEditing && (isSelected || caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ tagName: "figcaption",
+ className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Image caption text'),
+ placeholder: isSelected ? (0,external_wp_i18n_namespaceObject.__)('Add caption') : null,
+ value: caption,
+ onChange: newCaption => setAttributes({
+ caption: newCaption
+ }),
+ inlineToolbar: true
+ })]
+ })
);
}
}
@@ -21282,7 +21870,6 @@ class GalleryImage extends external_wp_element_namespaceObject.Component {
})])(GalleryImage));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/v1/gallery.js
-
/**
* External dependencies
*/
@@ -21301,6 +21888,8 @@ class GalleryImage extends external_wp_element_namespaceObject.Component {
*/
+
+
const gallery_Gallery = props => {
const {
attributes,
@@ -21324,67 +21913,68 @@ const gallery_Gallery = props => {
imageCrop,
images
} = attributes;
- return (0,external_React_namespaceObject.createElement)("figure", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
...blockProps,
- className: classnames_default()(blockProps.className, {
+ className: dist_clsx(blockProps.className, {
[`align${align}`]: align,
[`columns-${columns}`]: columns,
'is-cropped': imageCrop
- })
- }, (0,external_React_namespaceObject.createElement)("ul", {
- className: "blocks-gallery-grid"
- }, images.map((img, index) => {
- const ariaLabel = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: the order number of the image. 2: the total number of images. */
- (0,external_wp_i18n_namespaceObject.__)('image %1$d of %2$d in gallery'), index + 1, images.length);
- return (0,external_React_namespaceObject.createElement)("li", {
- className: "blocks-gallery-item",
- key: img.id ? `${img.id}-${index}` : img.url
- }, (0,external_React_namespaceObject.createElement)(gallery_image, {
- url: img.url,
- alt: img.alt,
- id: img.id,
- isFirstItem: index === 0,
- isLastItem: index + 1 === images.length,
- isSelected: isSelected && selectedImage === index,
- onMoveBackward: onMoveBackward(index),
- onMoveForward: onMoveForward(index),
- onRemove: onRemoveImage(index),
- onSelect: onSelectImage(index),
- onDeselect: onDeselectImage(index),
- setAttributes: attrs => onSetImageAttributes(index, attrs),
- caption: img.caption,
- "aria-label": ariaLabel,
- sizeSlug: attributes.sizeSlug
- }));
- })), mediaPlaceholder, (0,external_React_namespaceObject.createElement)(RichTextVisibilityHelper, {
- isHidden: !isSelected && external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption),
- tagName: "figcaption",
- className: classnames_default()('blocks-gallery-caption', (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption')),
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Gallery caption text'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Write gallery caption…'),
- value: caption,
- onChange: value => setAttributes({
- caption: value
}),
- inlineToolbar: true,
- __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)()))
- }));
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ className: "blocks-gallery-grid",
+ children: images.map((img, index) => {
+ const ariaLabel = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: the order number of the image. 2: the total number of images. */
+ (0,external_wp_i18n_namespaceObject.__)('image %1$d of %2$d in gallery'), index + 1, images.length);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ className: "blocks-gallery-item",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(gallery_image, {
+ url: img.url,
+ alt: img.alt,
+ id: img.id,
+ isFirstItem: index === 0,
+ isLastItem: index + 1 === images.length,
+ isSelected: isSelected && selectedImage === index,
+ onMoveBackward: onMoveBackward(index),
+ onMoveForward: onMoveForward(index),
+ onRemove: onRemoveImage(index),
+ onSelect: onSelectImage(index),
+ onDeselect: onDeselectImage(index),
+ setAttributes: attrs => onSetImageAttributes(index, attrs),
+ caption: img.caption,
+ "aria-label": ariaLabel,
+ sizeSlug: attributes.sizeSlug
+ })
+ }, img.id ? `${img.id}-${index}` : img.url);
+ })
+ }), mediaPlaceholder, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RichTextVisibilityHelper, {
+ isHidden: !isSelected && external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption),
+ tagName: "figcaption",
+ className: dist_clsx('blocks-gallery-caption', (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption')),
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Gallery caption text'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Write gallery caption…'),
+ value: caption,
+ onChange: value => setAttributes({
+ caption: value
+ }),
+ inlineToolbar: true,
+ __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)()))
+ })]
+ });
};
function RichTextVisibilityHelper({
isHidden,
...richTextProps
}) {
- return isHidden ? (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
+ return isHidden ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
as: external_wp_blockEditor_namespaceObject.RichText,
...richTextProps
- }) : (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
...richTextProps
});
}
/* harmony default export */ const v1_gallery = (gallery_Gallery);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/v1/edit.js
-
/**
* WordPress dependencies
*/
@@ -21407,6 +21997,9 @@ function RichTextVisibilityHelper({
+
+
+
const edit_MAX_COLUMNS = 8;
const edit_linkOptions = [{
value: v1_constants_LINK_DESTINATION_ATTACHMENT,
@@ -21691,7 +22284,7 @@ function edit_GalleryEdit(props) {
}, [linkTo]);
const hasImages = !!images.length;
const hasImageIds = hasImages && images.some(image => !!image.id);
- const mediaPlaceholder = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
+ const mediaPlaceholder = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
addToGallery: hasImageIds,
isAppender: hasImages,
disableMediaButtons: hasImages && !isSelected,
@@ -21712,65 +22305,70 @@ function edit_GalleryEdit(props) {
});
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)();
if (!hasImages) {
- return (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.View, {
- ...blockProps
- }, mediaPlaceholder);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.View, {
+ ...blockProps,
+ children: mediaPlaceholder
+ });
}
const imageSizeOptions = getImagesSizeOptions();
const shouldShowSizeOptions = hasImages && imageSizeOptions.length > 0;
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, images.length > 1 && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
- value: columns,
- onChange: setColumnsNumber,
- min: 1,
- max: Math.min(edit_MAX_COLUMNS, images.length),
- ...edit_MOBILE_CONTROL_PROPS_RANGE_CONTROL,
- required: true
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Crop images'),
- checked: !!imageCrop,
- onChange: toggleImageCrop,
- help: getImageCropHelp
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Link to'),
- value: linkTo,
- onChange: setLinkTo,
- options: edit_linkOptions,
- hideCancelButton: true
- }), shouldShowSizeOptions && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Image size'),
- value: sizeSlug,
- options: imageSizeOptions,
- onChange: updateImagesSize,
- hideCancelButton: true
- }))), noticeUI, (0,external_React_namespaceObject.createElement)(v1_gallery, {
- ...props,
- selectedImage: selectedImage,
- mediaPlaceholder: mediaPlaceholder,
- onMoveBackward: onMoveBackward,
- onMoveForward: onMoveForward,
- onRemoveImage: onRemoveImage,
- onSelectImage: onSelectImage,
- onDeselectImage: onDeselectImage,
- onSetImageAttributes: setImageAttributes,
- blockProps: blockProps
- // This prop is used by gallery.native.js.
- ,
- onFocusGalleryCaption: onFocusGalleryCaption
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [images.length > 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
+ value: columns,
+ onChange: setColumnsNumber,
+ min: 1,
+ max: Math.min(edit_MAX_COLUMNS, images.length),
+ ...edit_MOBILE_CONTROL_PROPS_RANGE_CONTROL,
+ required: true
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Crop images'),
+ checked: !!imageCrop,
+ onChange: toggleImageCrop,
+ help: getImageCropHelp
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Link to'),
+ value: linkTo,
+ onChange: setLinkTo,
+ options: edit_linkOptions,
+ hideCancelButton: true
+ }), shouldShowSizeOptions && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Image size'),
+ value: sizeSlug,
+ options: imageSizeOptions,
+ onChange: updateImagesSize,
+ hideCancelButton: true
+ })]
+ })
+ }), noticeUI, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(v1_gallery, {
+ ...props,
+ selectedImage: selectedImage,
+ mediaPlaceholder: mediaPlaceholder,
+ onMoveBackward: onMoveBackward,
+ onMoveForward: onMoveForward,
+ onRemoveImage: onRemoveImage,
+ onSelectImage: onSelectImage,
+ onDeselectImage: onDeselectImage,
+ onSetImageAttributes: setImageAttributes,
+ blockProps: blockProps
+ // This prop is used by gallery.native.js.
+ ,
+ onFocusGalleryCaption: onFocusGalleryCaption
+ })]
+ });
}
/* harmony default export */ const v1_edit = ((0,external_wp_compose_namespaceObject.compose)([external_wp_components_namespaceObject.withNotices, (0,external_wp_viewport_namespaceObject.withViewportMatch)({
isNarrow: '< small'
})])(edit_GalleryEdit));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/edit-wrapper.js
-
/**
* WordPress dependencies
*/
@@ -21789,20 +22387,20 @@ function edit_GalleryEdit(props) {
* or the refactored version with InnerBlocks. This is to prevent conditional
* use of hooks lint errors if adding this logic to the top of the edit component.
*/
+
function GalleryEditWrapper(props) {
if (!isGalleryV2Enabled()) {
- return (0,external_React_namespaceObject.createElement)(v1_edit, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(v1_edit, {
...props
});
}
- return (0,external_React_namespaceObject.createElement)(gallery_edit, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(gallery_edit, {
...props
});
}
/* harmony default export */ const edit_wrapper = ((0,external_wp_compose_namespaceObject.compose)([external_wp_components_namespaceObject.withNotices])(GalleryEditWrapper));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/v1/save.js
-
/**
* External dependencies
*/
@@ -21818,6 +22416,8 @@ function GalleryEditWrapper(props) {
*/
+
+
function saveV1({
attributes
}) {
@@ -21829,49 +22429,53 @@ function saveV1({
linkTo
} = attributes;
const className = `columns-${columns} ${imageCrop ? 'is-cropped' : ''}`;
- return (0,external_React_namespaceObject.createElement)("figure", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className
- })
- }, (0,external_React_namespaceObject.createElement)("ul", {
- className: "blocks-gallery-grid"
- }, images.map(image => {
- let href;
- switch (linkTo) {
- case v1_constants_LINK_DESTINATION_MEDIA:
- href = image.fullUrl || image.url;
- break;
- case v1_constants_LINK_DESTINATION_ATTACHMENT:
- href = image.link;
- break;
- }
- const img = (0,external_React_namespaceObject.createElement)("img", {
- src: image.url,
- alt: image.alt,
- "data-id": image.id,
- "data-full-url": image.fullUrl,
- "data-link": image.link,
- className: image.id ? `wp-image-${image.id}` : null
- });
- return (0,external_React_namespaceObject.createElement)("li", {
- key: image.id || image.url,
- className: "blocks-gallery-item"
- }, (0,external_React_namespaceObject.createElement)("figure", null, href ? (0,external_React_namespaceObject.createElement)("a", {
- href: href
- }, img) : img, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(image.caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ className: "blocks-gallery-grid",
+ children: images.map(image => {
+ let href;
+ switch (linkTo) {
+ case v1_constants_LINK_DESTINATION_MEDIA:
+ href = image.fullUrl || image.url;
+ break;
+ case v1_constants_LINK_DESTINATION_ATTACHMENT:
+ href = image.link;
+ break;
+ }
+ const img = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: image.url,
+ alt: image.alt,
+ "data-id": image.id,
+ "data-full-url": image.fullUrl,
+ "data-link": image.link,
+ className: image.id ? `wp-image-${image.id}` : null
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ className: "blocks-gallery-item",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ children: [href ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: href,
+ children: img
+ }) : img, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(image.caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ className: dist_clsx('blocks-gallery-item__caption', (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption')),
+ value: image.caption
+ })]
+ })
+ }, image.id || image.url);
+ })
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
tagName: "figcaption",
- className: classnames_default()('blocks-gallery-item__caption', (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption')),
- value: image.caption
- })));
- })), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- className: classnames_default()('blocks-gallery-caption', (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption')),
- value: caption
- }));
+ className: dist_clsx('blocks-gallery-caption', (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption')),
+ value: caption
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/save.js
-
/**
* External dependencies
*/
@@ -21887,6 +22491,8 @@ function saveV1({
*/
+
+
function saveWithInnerBlocks({
attributes
}) {
@@ -21900,7 +22506,7 @@ function saveWithInnerBlocks({
columns,
imageCrop
} = attributes;
- const className = classnames_default()('has-nested-images', {
+ const className = dist_clsx('has-nested-images', {
[`columns-${columns}`]: columns !== undefined,
[`columns-default`]: columns === undefined,
'is-cropped': imageCrop
@@ -21909,13 +22515,14 @@ function saveWithInnerBlocks({
className
});
const innerBlocksProps = external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save(blockProps);
- return (0,external_React_namespaceObject.createElement)("figure", {
- ...innerBlocksProps
- }, innerBlocksProps.children, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- className: classnames_default()('blocks-gallery-caption', (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption')),
- value: caption
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ ...innerBlocksProps,
+ children: [innerBlocksProps.children, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ className: dist_clsx('blocks-gallery-caption', (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption')),
+ value: caption
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/transforms.js
@@ -22385,7 +22992,6 @@ const gallery_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/group/deprecated.js
-
/**
* External dependencies
*/
@@ -22395,6 +23001,7 @@ const gallery_init = () => initBlock({
* WordPress dependencies
*/
+
const migrateAttributes = attributes => {
if (!attributes.tagName) {
attributes = {
@@ -22491,7 +23098,7 @@ const group_deprecated_deprecated = [
tagName: Tag
}
}) {
- return (0,external_React_namespaceObject.createElement)(Tag, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save(external_wp_blockEditor_namespaceObject.useBlockProps.save())
});
},
@@ -22548,11 +23155,13 @@ const group_deprecated_deprecated = [
const {
tagName: Tag
} = attributes;
- return (0,external_React_namespaceObject.createElement)(Tag, {
- ...external_wp_blockEditor_namespaceObject.useBlockProps.save()
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-group__inner-container"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save(),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-group__inner-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ })
+ });
}
},
// Version of the block without global styles support
@@ -22588,7 +23197,7 @@ const group_deprecated_deprecated = [
} = attributes;
const backgroundClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('background-color', backgroundColor);
const textClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', textColor);
- const className = classnames_default()(backgroundClass, textClass, {
+ const className = dist_clsx(backgroundClass, textClass, {
'has-text-color': textColor || customTextColor,
'has-background': backgroundColor || customBackgroundColor
});
@@ -22596,12 +23205,14 @@ const group_deprecated_deprecated = [
backgroundColor: backgroundClass ? undefined : customBackgroundColor,
color: textClass ? undefined : customTextColor
};
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: className,
- style: styles
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-group__inner-container"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)));
+ style: styles,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-group__inner-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ })
+ });
}
},
// Version of the group block with a bug that made text color class not applied.
@@ -22637,7 +23248,7 @@ const group_deprecated_deprecated = [
} = attributes;
const backgroundClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('background-color', backgroundColor);
const textClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', textColor);
- const className = classnames_default()(backgroundClass, {
+ const className = dist_clsx(backgroundClass, {
'has-text-color': textColor || customTextColor,
'has-background': backgroundColor || customBackgroundColor
});
@@ -22645,12 +23256,14 @@ const group_deprecated_deprecated = [
backgroundColor: backgroundClass ? undefined : customBackgroundColor,
color: textClass ? undefined : customTextColor
};
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: className,
- style: styles
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-group__inner-container"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)));
+ style: styles,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-group__inner-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ })
+ });
}
},
// v1 of group block. Deprecated to add an inner-container div around `InnerBlocks.Content`.
@@ -22677,22 +23290,22 @@ const group_deprecated_deprecated = [
customBackgroundColor
} = attributes;
const backgroundClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('background-color', backgroundColor);
- const className = classnames_default()(backgroundClass, {
+ const className = dist_clsx(backgroundClass, {
'has-background': backgroundColor || customBackgroundColor
});
const styles = {
backgroundColor: backgroundClass ? undefined : customBackgroundColor
};
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: className,
- style: styles
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null));
+ style: styles,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ });
}
}];
/* harmony default export */ const group_deprecated = (group_deprecated_deprecated);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/group/placeholder.js
-
/**
* WordPress dependencies
*/
@@ -22710,42 +23323,45 @@ const group_deprecated_deprecated = [
*
* @return {JSX.Element} The SVG element.
*/
+
const getGroupPlaceholderIcons = (name = 'group') => {
const icons = {
- group: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ group: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- width: "44",
- height: "32",
- viewBox: "0 0 44 32"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M42 0H2C.9 0 0 .9 0 2v28c0 1.1.9 2 2 2h40c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2z"
- })),
- 'group-row': (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ width: "48",
+ height: "48",
+ viewBox: "0 0 48 48",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"
+ })
+ }),
+ 'group-row': /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- width: "44",
- height: "32",
- viewBox: "0 0 44 32"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M42 0H23.5c-.6 0-1 .4-1 1v30c0 .6.4 1 1 1H42c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zM20.5 0H2C.9 0 0 .9 0 2v28c0 1.1.9 2 2 2h18.5c.6 0 1-.4 1-1V1c0-.6-.4-1-1-1z"
- })),
- 'group-stack': (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ width: "48",
+ height: "48",
+ viewBox: "0 0 48 48",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"
+ })
+ }),
+ 'group-stack': /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- width: "44",
- height: "32",
- viewBox: "0 0 44 32"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M42 0H2C.9 0 0 .9 0 2v12.5c0 .6.4 1 1 1h42c.6 0 1-.4 1-1V2c0-1.1-.9-2-2-2zm1 16.5H1c-.6 0-1 .4-1 1V30c0 1.1.9 2 2 2h40c1.1 0 2-.9 2-2V17.5c0-.6-.4-1-1-1z"
- })),
- 'group-grid': (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ width: "48",
+ height: "48",
+ viewBox: "0 0 48 48",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm0 17a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Z"
+ })
+ }),
+ 'group-grid': /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- width: "44",
- height: "32",
- viewBox: "0 0 44 32"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "m20.30137,-0.00025l-18.9728,0c-0.86524,0.07234 -1.41711,0.79149 -1.41711,1.89149l0,12.64468c0,0.6 0.73401,0.96383 1.0304,0.96383l19.67469,0.03617c0.29639,0 1.0304,-0.4 1.0304,-1l-0.03576,-12.7532c0,-1.1 -0.76644,-1.78297 -1.30983,-1.78297zm0.52975,16.60851l-19.99654,-0.03617c-0.29639,0 -0.92312,0.36383 -0.92312,0.96383l-0.03576,12.68085c0,1.1 0.8022,1.81915 1.34559,1.81915l19.00857,0c0.54339,0 1.45287,-0.71915 1.45287,-1.81915l0,-12.53617c0,-0.6 -0.5552,-1.07234 -0.8516,-1.07234z"
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "m42.73056,-0.03617l-18.59217,0c-0.84788,0.07234 -1.38868,0.79149 -1.38868,1.89149l0,12.64468c0,0.6 0.71928,0.96383 1.00973,0.96383l19.27997,0.03617c0.29045,0 1.00973,-0.4 1.00973,-1l-0.03504,-12.7532c0,-1.1 -0.75106,-1.78297 -1.28355,-1.78297zm0.51912,16.60851l-19.59537,-0.03617c-0.29045,0 -0.9046,0.36383 -0.9046,0.96383l-0.03504,12.68085c0,1.1 0.78611,1.81915 1.31859,1.81915l18.62721,0c0.53249,0 1.42372,-0.71915 1.42372,-1.81915l0,-12.53617c0,-0.6 -0.54407,-1.07234 -0.83451,-1.07234z"
- }))
+ width: "48",
+ height: "48",
+ viewBox: "0 0 48 48",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10ZM0 27a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V27Z"
+ })
+ })
};
return icons?.[name];
};
@@ -22809,29 +23425,32 @@ function GroupPlaceHolder({
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
className: 'wp-block-group__placeholder'
});
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- instructions: (0,external_wp_i18n_namespaceObject.__)('Group blocks together. Select a layout:')
- }, (0,external_React_namespaceObject.createElement)("ul", {
- role: "list",
- className: "wp-block-group-placeholder__variations",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Block variations')
- }, variations.map(variation => (0,external_React_namespaceObject.createElement)("li", {
- key: variation.name
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- icon: getGroupPlaceholderIcons(variation.name),
- iconSize: 44,
- onClick: () => onSelect(variation),
- className: "wp-block-group-placeholder__variation-button",
- label: `${variation.title}: ${variation.description}`
- }))))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ instructions: (0,external_wp_i18n_namespaceObject.__)('Group blocks together. Select a layout:'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ role: "list",
+ className: "wp-block-group-placeholder__variations",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Block variations'),
+ children: variations.map(variation => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ icon: getGroupPlaceholderIcons(variation.name),
+ iconSize: 48,
+ onClick: () => onSelect(variation),
+ className: "wp-block-group-placeholder__variation-button",
+ label: `${variation.title}: ${variation.description}`
+ })
+ }, variation.name))
+ })
+ })
+ });
}
/* harmony default export */ const placeholder = (GroupPlaceHolder);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/group/edit.js
-
/**
* WordPress dependencies
*/
@@ -22856,6 +23475,9 @@ function GroupPlaceHolder({
*
* @return {JSX.Element} The control group.
*/
+
+
+
function GroupEditControls({
tagName,
onSelectTagName
@@ -22868,38 +23490,39 @@ function GroupEditControls({
aside: (0,external_wp_i18n_namespaceObject.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),
footer: (0,external_wp_i18n_namespaceObject.__)('The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).')
};
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "advanced"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('HTML element'),
- options: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Default (<div>)'),
- value: 'div'
- }, {
- label: '<header>',
- value: 'header'
- }, {
- label: '<main>',
- value: 'main'
- }, {
- label: '<section>',
- value: 'section'
- }, {
- label: '<article>',
- value: 'article'
- }, {
- label: '<aside>',
- value: 'aside'
- }, {
- label: '<footer>',
- value: 'footer'
- }],
- value: tagName,
- onChange: onSelectTagName,
- help: htmlElementMessages[tagName]
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "advanced",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('HTML element'),
+ options: [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Default (<div>)'),
+ value: 'div'
+ }, {
+ label: '<header>',
+ value: 'header'
+ }, {
+ label: '<main>',
+ value: 'main'
+ }, {
+ label: '<section>',
+ value: 'section'
+ }, {
+ label: '<article>',
+ value: 'article'
+ }, {
+ label: '<aside>',
+ value: 'aside'
+ }, {
+ label: '<footer>',
+ value: 'footer'
+ }],
+ value: tagName,
+ onChange: onSelectTagName,
+ help: htmlElementMessages[tagName]
+ })
+ });
}
function GroupEdit({
attributes,
@@ -22974,36 +23597,41 @@ function GroupEdit({
selectBlock(clientId, -1);
setShowPlaceholder(false);
};
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(GroupEditControls, {
- tagName: TagName,
- onSelectTagName: value => setAttributes({
- tagName: value
- })
- }), showPlaceholder && (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.View, null, innerBlocksProps.children, (0,external_React_namespaceObject.createElement)(placeholder, {
- name: name,
- onSelect: selectVariation
- })), layoutSupportEnabled && !showPlaceholder && (0,external_React_namespaceObject.createElement)(TagName, {
- ...innerBlocksProps
- }), !layoutSupportEnabled && !showPlaceholder && (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)("div", {
- ...innerBlocksProps
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GroupEditControls, {
+ tagName: TagName,
+ onSelectTagName: value => setAttributes({
+ tagName: value
+ })
+ }), showPlaceholder && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.View, {
+ children: [innerBlocksProps.children, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(placeholder, {
+ name: name,
+ onSelect: selectVariation
+ })]
+ }), layoutSupportEnabled && !showPlaceholder && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...innerBlocksProps
+ }), !layoutSupportEnabled && !showPlaceholder && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...innerBlocksProps
+ })
+ })]
+ });
}
/* harmony default export */ const group_edit = (GroupEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/group/save.js
-
/**
* WordPress dependencies
*/
+
function group_save_save({
attributes: {
tagName: Tag
}
}) {
- return (0,external_React_namespaceObject.createElement)(Tag, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save(external_wp_blockEditor_namespaceObject.useBlockProps.save())
});
}
@@ -23049,47 +23677,50 @@ const group_transforms_transforms = {
/* harmony default export */ const group_transforms = (group_transforms_transforms);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/row.js
-
/**
* WordPress dependencies
*/
-const row = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const row = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"
+ })
+});
/* harmony default export */ const library_row = (row);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/stack.js
-
/**
* WordPress dependencies
*/
-const stack = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const stack = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"
+ })
+});
/* harmony default export */ const library_stack = (stack);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/grid.js
-
/**
* WordPress dependencies
*/
-const grid = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const grid = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",
- fillRule: "evenodd",
- clipRule: "evenodd"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",
+ fillRule: "evenodd",
+ clipRule: "evenodd"
+ })
+});
/* harmony default export */ const library_grid = (grid);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/group/variations.js
@@ -23137,22 +23768,19 @@ const group_variations_variations = [{
scope: ['block', 'inserter', 'transform'],
isActive: blockAttributes => blockAttributes.layout?.type === 'flex' && blockAttributes.layout?.orientation === 'vertical',
icon: library_stack
+}, {
+ name: 'group-grid',
+ title: (0,external_wp_i18n_namespaceObject.__)('Grid'),
+ description: (0,external_wp_i18n_namespaceObject.__)('Arrange blocks in a grid.'),
+ attributes: {
+ layout: {
+ type: 'grid'
+ }
+ },
+ scope: ['block', 'inserter', 'transform'],
+ isActive: blockAttributes => blockAttributes.layout?.type === 'grid',
+ icon: library_grid
}];
-if (window?.__experimentalEnableGroupGridVariation) {
- group_variations_variations.push({
- name: 'group-grid',
- title: (0,external_wp_i18n_namespaceObject.__)('Grid'),
- description: (0,external_wp_i18n_namespaceObject.__)('Arrange blocks in a grid.'),
- attributes: {
- layout: {
- type: 'grid'
- }
- },
- scope: ['block', 'inserter', 'transform'],
- isActive: blockAttributes => blockAttributes.layout?.type === 'grid',
- icon: library_grid
- });
-}
/* harmony default export */ const group_variations = (group_variations_variations);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/group/index.js
@@ -23275,14 +23903,6 @@ const {
const group_settings = {
icon: library_group,
example: {
- attributes: {
- style: {
- color: {
- text: '#000000',
- background: '#ffffff'
- }
- }
- },
innerBlocks: [{
name: 'core/paragraph',
attributes: {
@@ -23340,21 +23960,21 @@ const group_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/heading.js
-
/**
* WordPress dependencies
*/
-const heading = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const heading = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"
+ })
+});
/* harmony default export */ const library_heading = (heading);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/deprecated.js
-
/**
* External dependencies
*/
@@ -23364,6 +23984,7 @@ const heading = (0,external_React_namespaceObject.createElement)(external_wp_pri
* WordPress dependencies
*/
+
const blockSupports = {
className: false,
anchor: true
@@ -23439,10 +24060,10 @@ const heading_deprecated_v1 = {
} = attributes;
const tagName = 'h' + level;
const textClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', textColor);
- const className = classnames_default()({
+ const className = dist_clsx({
[textClass]: textClass
});
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
className: className ? className : undefined,
tagName: tagName,
style: {
@@ -23476,11 +24097,11 @@ const heading_deprecated_v2 = {
} = attributes;
const tagName = 'h' + level;
const textClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', textColor);
- const className = classnames_default()({
+ const className = dist_clsx({
[textClass]: textClass,
[`has-text-align-${align}`]: align
});
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
className: className ? className : undefined,
tagName: tagName,
style: {
@@ -23515,12 +24136,12 @@ const heading_deprecated_v3 = {
} = attributes;
const tagName = 'h' + level;
const textClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', textColor);
- const className = classnames_default()({
+ const className = dist_clsx({
[textClass]: textClass,
'has-text-color': textColor || customTextColor,
[`has-text-align-${align}`]: align
});
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
className: className ? className : undefined,
tagName: tagName,
style: {
@@ -23564,16 +24185,17 @@ const heading_deprecated_v4 = {
level
} = attributes;
const TagName = 'h' + level;
- const className = classnames_default()({
+ const className = dist_clsx({
[`has-text-align-${align}`]: align
});
- return (0,external_React_namespaceObject.createElement)(TagName, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: content
})
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: content
- }));
+ });
}
};
@@ -23643,16 +24265,17 @@ const heading_deprecated_v5 = {
level
} = attributes;
const TagName = 'h' + level;
- const className = classnames_default()({
+ const className = dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
});
- return (0,external_React_namespaceObject.createElement)(TagName, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: content
})
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: content
- }));
+ });
}
};
const heading_deprecated_deprecated = [heading_deprecated_v5, heading_deprecated_v4, heading_deprecated_v3, heading_deprecated_v2, heading_deprecated_v1];
@@ -23740,7 +24363,6 @@ const setAnchor = (clientId, anchor) => {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/edit.js
-
/**
* External dependencies
*/
@@ -23754,11 +24376,13 @@ const setAnchor = (clientId, anchor) => {
-
/**
* Internal dependencies
*/
+
+
+
function HeadingEdit({
attributes,
setAttributes,
@@ -23776,7 +24400,7 @@ function HeadingEdit({
} = attributes;
const tagName = 'h' + level;
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
}),
style
@@ -23825,56 +24449,42 @@ function HeadingEdit({
}
setAttributes(newAttrs);
};
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, blockEditingMode === 'default' && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.HeadingLevelDropdown, {
- value: level,
- onChange: newLevel => setAttributes({
- level: newLevel
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- identifier: "content",
- tagName: tagName,
- value: content,
- onChange: onContentChange,
- onMerge: mergeBlocks,
- onSplit: (value, isOriginal) => {
- let block;
- if (isOriginal || value) {
- block = (0,external_wp_blocks_namespaceObject.createBlock)('core/heading', {
- ...attributes,
- content: value
- });
- } else {
- var _getDefaultBlockName;
- block = (0,external_wp_blocks_namespaceObject.createBlock)((_getDefaultBlockName = (0,external_wp_blocks_namespaceObject.getDefaultBlockName)()) !== null && _getDefaultBlockName !== void 0 ? _getDefaultBlockName : 'core/heading');
- }
- if (isOriginal) {
- block.clientId = clientId;
- }
- return block;
- },
- onReplace: onReplace,
- onRemove: () => onReplace([]),
- placeholder: placeholder || (0,external_wp_i18n_namespaceObject.__)('Heading'),
- textAlign: textAlign,
- ...(external_wp_element_namespaceObject.Platform.isNative && {
- deleteEnter: true
- }),
- ...blockProps
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [blockEditingMode === 'default' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.HeadingLevelDropdown, {
+ value: level,
+ onChange: newLevel => setAttributes({
+ level: newLevel
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ identifier: "content",
+ tagName: tagName,
+ value: content,
+ onChange: onContentChange,
+ onMerge: mergeBlocks,
+ onReplace: onReplace,
+ onRemove: () => onReplace([]),
+ placeholder: placeholder || (0,external_wp_i18n_namespaceObject.__)('Heading'),
+ textAlign: textAlign,
+ ...(external_wp_element_namespaceObject.Platform.isNative && {
+ deleteEnter: true
+ }),
+ ...blockProps
+ })]
+ });
}
/* harmony default export */ const heading_edit = (HeadingEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/save.js
-
/**
* External dependencies
*/
@@ -23884,6 +24494,7 @@ function HeadingEdit({
* WordPress dependencies
*/
+
function heading_save_save({
attributes
}) {
@@ -23893,16 +24504,17 @@ function heading_save_save({
level
} = attributes;
const TagName = 'h' + level;
- const className = classnames_default()({
+ const className = dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
});
- return (0,external_React_namespaceObject.createElement)(TagName, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: content
})
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: content
- }));
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/shared.js
@@ -24060,6 +24672,7 @@ const heading_metadata = {
align: ["wide", "full"],
anchor: true,
className: true,
+ splitting: true,
color: {
gradients: true,
link: true,
@@ -24121,7 +24734,7 @@ const heading_settings = {
level
} = attributes;
const customName = attributes?.metadata?.name;
- const hasContent = content?.length > 0;
+ const hasContent = content?.trim().length > 0;
// In the list view, use the block's content as the label.
// If the content is empty, fall back to the default label.
@@ -24151,21 +24764,21 @@ const heading_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/home.js
-
/**
* WordPress dependencies
*/
-const home = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const home = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"
+ })
+});
/* harmony default export */ const library_home = (home);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/home-link/edit.js
-
/**
* External dependencies
*/
@@ -24179,6 +24792,8 @@ const home = (0,external_React_namespaceObject.createElement)(external_wp_primit
+
+
const preventDefault = event => event.preventDefault();
function HomeEdit({
attributes,
@@ -24204,7 +24819,7 @@ function HomeEdit({
style
} = context;
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()('wp-block-navigation-item', {
+ className: dist_clsx('wp-block-navigation-item', {
'has-text-color': !!textColor || !!style?.color?.text,
[`has-${textColor}-color`]: !!textColor,
'has-background': !!backgroundColor || !!style?.color?.background,
@@ -24226,36 +24841,40 @@ function HomeEdit({
});
}
}, [label]);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)("a", {
- className: "wp-block-home-link__content wp-block-navigation-item__content",
- href: homeUrl,
- onClick: preventDefault
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- identifier: "label",
- className: "wp-block-home-link__label",
- value: label,
- onChange: labelValue => {
- setAttributes({
- label: labelValue
- });
- },
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Home link text'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Add home link'),
- withoutInteractiveFormatting: true,
- allowedFormats: ['core/bold', 'core/italic', 'core/image', 'core/strikethrough']
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ className: "wp-block-home-link__content wp-block-navigation-item__content",
+ href: homeUrl,
+ onClick: preventDefault,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ identifier: "label",
+ className: "wp-block-home-link__label",
+ value: label,
+ onChange: labelValue => {
+ setAttributes({
+ label: labelValue
+ });
+ },
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Home link text'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Add home link'),
+ withoutInteractiveFormatting: true,
+ allowedFormats: ['core/bold', 'core/italic', 'core/image', 'core/strikethrough']
+ })
+ })
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/home-link/save.js
-
/**
* WordPress dependencies
*/
+
function home_link_save_save() {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/home-link/index.js
@@ -24330,21 +24949,21 @@ const home_link_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/html.js
-
/**
* WordPress dependencies
*/
-const html = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const html = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
/* harmony default export */ const library_html = (html);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/preview.js
-
/**
* WordPress dependencies
*/
@@ -24356,6 +24975,9 @@ const html = (0,external_React_namespaceObject.createElement)(external_wp_primit
// Default styles used to unset some of the styles
// that might be inherited from the editor style.
+
+
+
const DEFAULT_STYLES = `
html,body,:root {
margin: 0 !important;
@@ -24370,18 +24992,19 @@ function HTMLEditPreview({
}) {
const settingStyles = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).getSettings().styles);
const styles = (0,external_wp_element_namespaceObject.useMemo)(() => [DEFAULT_STYLES, ...(0,external_wp_blockEditor_namespaceObject.transformStyles)(settingStyles.filter(style => style.css))], [settingStyles]);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SandBox, {
- html: content,
- styles: styles,
- title: (0,external_wp_i18n_namespaceObject.__)('Custom HTML Preview'),
- tabIndex: -1
- }), !isSelected && (0,external_React_namespaceObject.createElement)("div", {
- className: "block-library-html__preview-overlay"
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SandBox, {
+ html: content,
+ styles: styles,
+ title: (0,external_wp_i18n_namespaceObject.__)('Custom HTML Preview'),
+ tabIndex: -1
+ }), !isSelected && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-library-html__preview-overlay"
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/edit.js
-
/**
* WordPress dependencies
*/
@@ -24395,6 +25018,9 @@ function HTMLEditPreview({
* Internal dependencies
*/
+
+
+
function HTMLEdit({
attributes,
setAttributes,
@@ -24413,41 +25039,51 @@ function HTMLEdit({
className: 'block-library-html__edit',
'aria-describedby': isPreview ? instanceId : undefined
});
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- className: "components-tab-button",
- isPressed: !isPreview,
- onClick: switchToHTML
- }, "HTML"), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- className: "components-tab-button",
- isPressed: isPreview,
- onClick: switchToPreview
- }, (0,external_wp_i18n_namespaceObject.__)('Preview')))), isPreview || isDisabled ? (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(HTMLEditPreview, {
- content: attributes.content,
- isSelected: isSelected
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- id: instanceId
- }, (0,external_wp_i18n_namespaceObject.__)('HTML preview is not yet fully accessible. Please switch screen reader to virtualized mode to navigate the below iFrame.'))) : (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.PlainText, {
- value: attributes.content,
- onChange: content => setAttributes({
- content
- }),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Write HTML…'),
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('HTML')
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...blockProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ isPressed: !isPreview,
+ onClick: switchToHTML,
+ children: "HTML"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ isPressed: isPreview,
+ onClick: switchToPreview,
+ children: (0,external_wp_i18n_namespaceObject.__)('Preview')
+ })]
+ })
+ }), isPreview || isDisabled ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HTMLEditPreview, {
+ content: attributes.content,
+ isSelected: isSelected
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ id: instanceId,
+ children: (0,external_wp_i18n_namespaceObject.__)('HTML preview is not yet fully accessible. Please switch screen reader to virtualized mode to navigate the below iFrame.')
+ })]
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.PlainText, {
+ value: attributes.content,
+ onChange: content => setAttributes({
+ content
+ }),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Write HTML…'),
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('HTML')
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/save.js
-
/**
* WordPress dependencies
*/
+
function html_save_save({
attributes
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, attributes.content);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
+ children: attributes.content
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/transforms.js
@@ -24536,7 +25172,6 @@ const html_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/deprecated.js
-
/**
* External dependencies
*/
@@ -24553,6 +25188,9 @@ const html_init = () => initBlock({
*
* @see https://github.com/WordPress/gutenberg/pull/4898
*/
+
+
+
const image_deprecated_v1 = {
attributes: {
url: {
@@ -24608,7 +25246,7 @@ const image_deprecated_v1 = {
width,
height
} : {};
- const image = (0,external_React_namespaceObject.createElement)("img", {
+ const image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
src: url,
alt: alt,
...extraImageProps
@@ -24623,15 +25261,17 @@ const image_deprecated_v1 = {
maxWidth: '50%'
};
}
- return (0,external_React_namespaceObject.createElement)("figure", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
className: align ? `align${align}` : null,
- style: figureStyle
- }, href ? (0,external_React_namespaceObject.createElement)("a", {
- href: href
- }, image) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- value: caption
- }));
+ style: figureStyle,
+ children: [href ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: href,
+ children: image
+ }) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ value: caption
+ })]
+ });
}
};
@@ -24693,21 +25333,23 @@ const image_deprecated_v2 = {
height,
id
} = attributes;
- const image = (0,external_React_namespaceObject.createElement)("img", {
+ const image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
src: url,
alt: alt,
className: id ? `wp-image-${id}` : null,
width: width,
height: height
});
- return (0,external_React_namespaceObject.createElement)("figure", {
- className: align ? `align${align}` : null
- }, href ? (0,external_React_namespaceObject.createElement)("a", {
- href: href
- }, image) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- value: caption
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ className: align ? `align${align}` : null,
+ children: [href ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: href,
+ children: image
+ }) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ value: caption
+ })]
+ });
}
};
@@ -24772,25 +25414,27 @@ const image_deprecated_v3 = {
height,
id
} = attributes;
- const classes = classnames_default()({
+ const classes = dist_clsx({
[`align${align}`]: align,
'is-resized': width || height
});
- const image = (0,external_React_namespaceObject.createElement)("img", {
+ const image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
src: url,
alt: alt,
className: id ? `wp-image-${id}` : null,
width: width,
height: height
});
- return (0,external_React_namespaceObject.createElement)("figure", {
- className: classes
- }, href ? (0,external_React_namespaceObject.createElement)("a", {
- href: href
- }, image) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- value: caption
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ className: classes,
+ children: [href ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: href,
+ children: image
+ }) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ value: caption
+ })]
+ });
}
};
@@ -24890,12 +25534,12 @@ const image_deprecated_v4 = {
title
} = attributes;
const newRel = !rel ? undefined : rel;
- const classes = classnames_default()({
+ const classes = dist_clsx({
[`align${align}`]: align,
[`size-${sizeSlug}`]: sizeSlug,
'is-resized': width || height
});
- const image = (0,external_React_namespaceObject.createElement)("img", {
+ const image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
src: url,
alt: alt,
className: id ? `wp-image-${id}` : null,
@@ -24903,27 +25547,33 @@ const image_deprecated_v4 = {
height: height,
title: title
});
- const figure = (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, href ? (0,external_React_namespaceObject.createElement)("a", {
- className: linkClass,
- href: href,
- target: linkTarget,
- rel: newRel
- }, image) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- value: caption
- }));
+ const figure = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [href ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ className: linkClass,
+ href: href,
+ target: linkTarget,
+ rel: newRel,
+ children: image
+ }) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ value: caption
+ })]
+ });
if ('left' === align || 'right' === align || 'center' === align) {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useBlockProps.save()
- }, (0,external_React_namespaceObject.createElement)("figure", {
- className: classes
- }, figure));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save(),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
+ className: classes,
+ children: figure
+ })
+ });
}
- return (0,external_React_namespaceObject.createElement)("figure", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: classes
- })
- }, figure);
+ }),
+ children: figure
+ });
}
};
@@ -25044,12 +25694,12 @@ const image_deprecated_v5 = {
title
} = attributes;
const newRel = !rel ? undefined : rel;
- const classes = classnames_default()({
+ const classes = dist_clsx({
[`align${align}`]: align,
[`size-${sizeSlug}`]: sizeSlug,
'is-resized': width || height
});
- const image = (0,external_React_namespaceObject.createElement)("img", {
+ const image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
src: url,
alt: alt,
className: id ? `wp-image-${id}` : null,
@@ -25057,20 +25707,24 @@ const image_deprecated_v5 = {
height: height,
title: title
});
- const figure = (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, href ? (0,external_React_namespaceObject.createElement)("a", {
- className: linkClass,
- href: href,
- target: linkTarget,
- rel: newRel
- }, image) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- value: caption
- }));
- return (0,external_React_namespaceObject.createElement)("figure", {
+ const figure = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [href ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ className: linkClass,
+ href: href,
+ target: linkTarget,
+ rel: newRel,
+ children: image
+ }) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ value: caption
+ })]
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: classes
- })
- }, figure);
+ }),
+ children: figure
+ });
}
};
@@ -25214,16 +25868,16 @@ const image_deprecated_v6 = {
} = attributes;
const newRel = !rel ? undefined : rel;
const borderProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetBorderClassesAndStyles)(attributes);
- const classes = classnames_default()({
+ const classes = dist_clsx({
[`align${align}`]: align,
[`size-${sizeSlug}`]: sizeSlug,
'is-resized': width || height,
'has-custom-border': !!borderProps.className || borderProps.style && Object.keys(borderProps.style).length > 0
});
- const imageClasses = classnames_default()(borderProps.className, {
+ const imageClasses = dist_clsx(borderProps.className, {
[`wp-image-${id}`]: !!id
});
- const image = (0,external_React_namespaceObject.createElement)("img", {
+ const image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
src: url,
alt: alt,
className: imageClasses || undefined,
@@ -25236,21 +25890,25 @@ const image_deprecated_v6 = {
height: height,
title: title
});
- const figure = (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, href ? (0,external_React_namespaceObject.createElement)("a", {
- className: linkClass,
- href: href,
- target: linkTarget,
- rel: newRel
- }, image) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
- tagName: "figcaption",
- value: caption
- }));
- return (0,external_React_namespaceObject.createElement)("figure", {
+ const figure = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [href ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ className: linkClass,
+ href: href,
+ target: linkTarget,
+ rel: newRel,
+ children: image
+ }) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
+ tagName: "figcaption",
+ value: caption
+ })]
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: classes
- })
- }, figure);
+ }),
+ children: figure
+ });
}
};
@@ -25396,16 +26054,16 @@ const image_deprecated_v7 = {
} = attributes;
const newRel = !rel ? undefined : rel;
const borderProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetBorderClassesAndStyles)(attributes);
- const classes = classnames_default()({
+ const classes = dist_clsx({
[`align${align}`]: align,
[`size-${sizeSlug}`]: sizeSlug,
'is-resized': width || height,
'has-custom-border': !!borderProps.className || borderProps.style && Object.keys(borderProps.style).length > 0
});
- const imageClasses = classnames_default()(borderProps.className, {
+ const imageClasses = dist_clsx(borderProps.className, {
[`wp-image-${id}`]: !!id
});
- const image = (0,external_React_namespaceObject.createElement)("img", {
+ const image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
src: url,
alt: alt,
className: imageClasses || undefined,
@@ -25420,21 +26078,25 @@ const image_deprecated_v7 = {
height: height,
title: title
});
- const figure = (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, href ? (0,external_React_namespaceObject.createElement)("a", {
- className: linkClass,
- href: href,
- target: linkTarget,
- rel: newRel
- }, image) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
- tagName: "figcaption",
- value: caption
- }));
- return (0,external_React_namespaceObject.createElement)("figure", {
+ const figure = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [href ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ className: linkClass,
+ href: href,
+ target: linkTarget,
+ rel: newRel,
+ children: image
+ }) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
+ tagName: "figcaption",
+ value: caption
+ })]
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: classes
- })
- }, figure);
+ }),
+ children: figure
+ });
}
};
const deprecated_v8 = {
@@ -25596,16 +26258,16 @@ const deprecated_v8 = {
} = attributes;
const newRel = !rel ? undefined : rel;
const borderProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetBorderClassesAndStyles)(attributes);
- const classes = classnames_default()({
+ const classes = dist_clsx({
[`align${align}`]: align,
[`size-${sizeSlug}`]: sizeSlug,
'is-resized': width || height,
'has-custom-border': !!borderProps.className || borderProps.style && Object.keys(borderProps.style).length > 0
});
- const imageClasses = classnames_default()(borderProps.className, {
+ const imageClasses = dist_clsx(borderProps.className, {
[`wp-image-${id}`]: !!id
});
- const image = (0,external_React_namespaceObject.createElement)("img", {
+ const image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
src: url,
alt: alt,
className: imageClasses || undefined,
@@ -25618,116 +26280,90 @@ const deprecated_v8 = {
},
title: title
});
- const figure = (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, href ? (0,external_React_namespaceObject.createElement)("a", {
- className: linkClass,
- href: href,
- target: linkTarget,
- rel: newRel
- }, image) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
- tagName: "figcaption",
- value: caption
- }));
- return (0,external_React_namespaceObject.createElement)("figure", {
+ const figure = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [href ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ className: linkClass,
+ href: href,
+ target: linkTarget,
+ rel: newRel,
+ children: image
+ }) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
+ tagName: "figcaption",
+ value: caption
+ })]
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: classes
- })
- }, figure);
+ }),
+ children: figure
+ });
}
};
/* harmony default export */ const image_deprecated = ([deprecated_v8, image_deprecated_v7, image_deprecated_v6, image_deprecated_v5, image_deprecated_v4, image_deprecated_v3, image_deprecated_v2, image_deprecated_v1]);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plugins.js
-
/**
* WordPress dependencies
*/
-const plugins = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const plugins = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"
+ })
+});
/* harmony default export */ const library_plugins = (plugins);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/crop.js
-
/**
* WordPress dependencies
*/
-const crop = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const crop = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"
+ })
+});
/* harmony default export */ const library_crop = (crop);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/overlay-text.js
-
/**
* WordPress dependencies
*/
-const overlayText = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const overlayText = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"
+ })
+});
/* harmony default export */ const overlay_text = (overlayText);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/upload.js
-
/**
* WordPress dependencies
*/
-const upload = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const upload = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"
+ })
+});
/* harmony default export */ const library_upload = (upload);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/use-client-width.js
-/**
- * WordPress dependencies
- */
-
-function useClientWidth(ref, dependencies) {
- const [clientWidth, setClientWidth] = (0,external_wp_element_namespaceObject.useState)();
- function calculateClientWidth() {
- setClientWidth(ref.current?.clientWidth);
- }
- (0,external_wp_element_namespaceObject.useEffect)(calculateClientWidth, dependencies);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- const {
- defaultView
- } = ref.current.ownerDocument;
- defaultView.addEventListener('resize', calculateClientWidth);
- return () => {
- defaultView.removeEventListener('resize', calculateClientWidth);
- };
- }, []);
- return clientWidth;
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/utils/constants.js
-// The following dropdown menu props aim to provide a consistent offset and
-// placement for ToolsPanel menus for block controls to match color popovers.
-const TOOLSPANEL_DROPDOWNMENU_PROPS = {
- popoverProps: {
- placement: 'left-start',
- offset: 259 // Inner sidebar width (248px) - button width (24px) - border (1px) + padding (16px) + spacing (20px)
- }
-};
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image.js
-
/**
* WordPress dependencies
*/
@@ -25753,13 +26389,15 @@ const TOOLSPANEL_DROPDOWNMENU_PROPS = {
-
/**
* Module constants
*/
+
+
+
const {
DimensionsTool,
ResolutionTool
@@ -25782,7 +26420,7 @@ const ImageWrapper = ({
if (!href) {
return children;
}
- return (0,external_React_namespaceObject.createElement)("a", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
href: href,
onClick: event => event.preventDefault(),
"aria-disabled": true,
@@ -25794,8 +26432,9 @@ const ImageWrapper = ({
pointerEvents: 'none',
cursor: 'default',
display: 'inline'
- }
- }, children);
+ },
+ children: children
+ });
};
function image_Image({
temporaryURL,
@@ -25807,10 +26446,10 @@ function image_Image({
onSelectImage,
onSelectURL,
onUploadError,
- containerRef,
context,
clientId,
- blockEditingMode
+ blockEditingMode,
+ parentLayoutType
}) {
const {
url = '',
@@ -25881,10 +26520,9 @@ function image_Image({
}, setLoadedNaturalSize] = (0,external_wp_element_namespaceObject.useState)({});
const [isEditingImage, setIsEditingImage] = (0,external_wp_element_namespaceObject.useState)(false);
const [externalBlob, setExternalBlob] = (0,external_wp_element_namespaceObject.useState)();
- const clientWidth = useClientWidth(containerRef, [align]);
const hasNonContentControls = blockEditingMode === 'default';
const isContentOnlyMode = blockEditingMode === 'contentOnly';
- const isResizable = allowResize && hasNonContentControls && !isWideAligned && isLargeViewport;
+ const isResizable = allowResize && hasNonContentControls && !isWideAligned && isLargeViewport && parentLayoutType !== 'grid';
const imageSizeOptions = imageSizes.filter(({
slug
}) => image?.media_details?.sizes?.[slug]?.source_url).map(({
@@ -25903,7 +26541,9 @@ function image_Image({
setExternalBlob();
return;
}
- if (externalBlob) return;
+ if (externalBlob) {
+ return;
+ }
window
// Avoid cache, which seems to help avoid CORS problems.
.fetch(url.includes('?') ? url : url + '?').then(response => response.blob()).then(blob => setExternalBlob(blob))
@@ -26053,7 +26693,8 @@ function image_Image({
// remove that override, even if the lightbox UI is disabled in the settings.
!!lightbox && lightbox?.enabled !== lightboxSetting?.enabled || lightboxSetting?.allowEditing;
const lightboxChecked = !!lightbox?.enabled || !lightbox && !!lightboxSetting?.enabled;
- const dimensionsControl = (0,external_React_namespaceObject.createElement)(DimensionsTool, {
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
+ const dimensionsControl = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DimensionsTool, {
value: {
width,
height,
@@ -26095,11 +26736,15 @@ function image_Image({
lightbox: undefined
});
};
- const sizeControls = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
- label: (0,external_wp_i18n_namespaceObject.__)('Settings'),
- resetAll: resetAll,
- dropdownMenuProps: TOOLSPANEL_DROPDOWNMENU_PROPS
- }, isResizable && dimensionsControl));
+ const sizeControls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ resetAll: resetAll,
+ dropdownMenuProps: dropdownMenuProps,
+ children: isResizable && dimensionsControl
+ })
+ });
+ const arePatternOverridesEnabled = metadata?.bindings?.__default?.source === 'core/pattern-overrides';
const {
lockUrlControls = false,
lockHrefControls = false,
@@ -26116,172 +26761,226 @@ function image_Image({
getBlockBindingsSource
} = unlock(select(external_wp_blocks_namespaceObject.store));
const {
- getBlockParentsByBlockName
- } = unlock(select(external_wp_blockEditor_namespaceObject.store));
- const {
url: urlBinding,
alt: altBinding,
title: titleBinding
} = metadata?.bindings || {};
- const hasParentPattern = getBlockParentsByBlockName(clientId, 'core/block').length > 0;
+ const hasParentPattern = !!context['pattern/overrides'];
const urlBindingSource = getBlockBindingsSource(urlBinding?.source);
const altBindingSource = getBlockBindingsSource(altBinding?.source);
const titleBindingSource = getBlockBindingsSource(titleBinding?.source);
return {
- lockUrlControls: !!urlBinding && (!urlBindingSource || urlBindingSource?.lockAttributesEditing),
+ lockUrlControls: !!urlBinding && !urlBindingSource?.canUserEditValue({
+ select,
+ context,
+ args: urlBinding?.args
+ }),
lockHrefControls:
// Disable editing the link of the URL if the image is inside a pattern instance.
// This is a temporary solution until we support overriding the link on the frontend.
- hasParentPattern,
+ hasParentPattern || arePatternOverridesEnabled,
lockCaption:
// Disable editing the caption if the image is inside a pattern instance.
// This is a temporary solution until we support overriding the caption on the frontend.
hasParentPattern,
- lockAltControls: !!altBinding && (!altBindingSource || altBindingSource?.lockAttributesEditing),
+ lockAltControls: !!altBinding && !altBindingSource?.canUserEditValue({
+ select,
+ context,
+ args: altBinding?.args
+ }),
lockAltControlsMessage: altBindingSource?.label ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Label of the bindings source. */
(0,external_wp_i18n_namespaceObject.__)('Connected to %s'), altBindingSource.label) : (0,external_wp_i18n_namespaceObject.__)('Connected to dynamic data'),
- lockTitleControls: !!titleBinding && (!titleBindingSource || titleBindingSource?.lockAttributesEditing),
+ lockTitleControls: !!titleBinding && !titleBindingSource?.canUserEditValue({
+ select,
+ context,
+ args: titleBinding?.args
+ }),
lockTitleControlsMessage: titleBindingSource?.label ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Label of the bindings source. */
(0,external_wp_i18n_namespaceObject.__)('Connected to %s'), titleBindingSource.label) : (0,external_wp_i18n_namespaceObject.__)('Connected to dynamic data')
};
- }, [clientId, isSingleSelected, metadata?.bindings]);
- const controls = (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, isSingleSelected && !isEditingImage && !lockHrefControls && !lockUrlControls && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalImageURLInputUI, {
- url: href || '',
- onChangeUrl: onSetHref,
- linkDestination: linkDestination,
- mediaUrl: image && image.source_url || url,
- mediaLink: image && image.link,
- linkTarget: linkTarget,
- linkClass: linkClass,
- rel: rel,
- showLightboxSetting: showLightboxSetting,
- lightboxEnabled: lightboxChecked,
- onSetLightbox: onSetLightbox,
- resetLightbox: resetLightbox
- }), allowCrop && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- onClick: () => setIsEditingImage(true),
- icon: library_crop,
- label: (0,external_wp_i18n_namespaceObject.__)('Crop')
- }), isSingleSelected && canInsertCover && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- icon: overlay_text,
- label: (0,external_wp_i18n_namespaceObject.__)('Add text over image'),
- onClick: switchToCover
- })), isSingleSelected && !isEditingImage && !lockUrlControls && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "other"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, {
- mediaId: id,
- mediaURL: url,
- allowedTypes: constants_ALLOWED_MEDIA_TYPES,
- accept: "image/*",
- onSelect: onSelectImage,
- onSelectURL: onSelectURL,
- onError: onUploadError
- })), isSingleSelected && externalBlob && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- onClick: uploadExternal,
- icon: library_upload,
- label: (0,external_wp_i18n_namespaceObject.__)('Upload to Media Library')
- }))), isContentOnlyMode &&
- // Add some extra controls for content attributes when content only mode is active.
- // With content only mode active, the inspector is hidden, so users need another way
- // to edit these attributes.
- (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "other"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Dropdown, {
- popoverProps: {
- position: 'bottom right'
- },
- renderToggle: ({
- isOpen,
- onToggle
- }) => (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- onClick: onToggle,
- "aria-haspopup": "true",
- "aria-expanded": isOpen,
- onKeyDown: event => {
- if (!isOpen && event.keyCode === external_wp_keycodes_namespaceObject.DOWN) {
- event.preventDefault();
- onToggle();
- }
- }
- }, (0,external_wp_i18n_namespaceObject._x)('Alt', 'Alternative text for an image. Block toolbar label, a low character count is preferred.')),
- renderContent: () => (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextareaControl, {
- className: "wp-block-image__toolbar_content_textarea",
- label: (0,external_wp_i18n_namespaceObject.__)('Alternative text'),
- value: alt || '',
- onChange: updateAlt,
- disabled: lockAltControls,
- help: lockAltControls ? (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, lockAltControlsMessage) : (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: "https://www.w3.org/WAI/tutorials/images/decision-tree"
- }, (0,external_wp_i18n_namespaceObject.__)('Describe the purpose of the image.')), (0,external_React_namespaceObject.createElement)("br", null), (0,external_wp_i18n_namespaceObject.__)('Leave empty if decorative.')),
- __nextHasNoMarginBottom: true
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Dropdown, {
- popoverProps: {
- position: 'bottom right'
- },
- renderToggle: ({
- isOpen,
- onToggle
- }) => (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- onClick: onToggle,
- "aria-haspopup": "true",
- "aria-expanded": isOpen,
- onKeyDown: event => {
- if (!isOpen && event.keyCode === external_wp_keycodes_namespaceObject.DOWN) {
- event.preventDefault();
- onToggle();
- }
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Title')),
- renderContent: () => (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- className: "wp-block-image__toolbar_content_textarea",
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Title attribute'),
- value: title || '',
- onChange: onSetTitle,
- disabled: lockTitleControls,
- help: lockTitleControls ? (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, lockTitleControlsMessage) : (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('Describe the role of this image on the page.'), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: "https://www.w3.org/TR/html52/dom.html#the-title-attribute"
- }, (0,external_wp_i18n_namespaceObject.__)('(Note: many devices and browsers do not display this text.)')))
- })
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
- label: (0,external_wp_i18n_namespaceObject.__)('Settings'),
- resetAll: resetAll,
- dropdownMenuProps: TOOLSPANEL_DROPDOWNMENU_PROPS
- }, isSingleSelected && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- label: (0,external_wp_i18n_namespaceObject.__)('Alternative text'),
- isShownByDefault: true,
- hasValue: () => !!alt,
- onDeselect: () => setAttributes({
- alt: undefined
- })
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextareaControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Alternative text'),
- value: alt || '',
- onChange: updateAlt,
- readOnly: lockAltControls,
- help: lockAltControls ? (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, lockAltControlsMessage) : (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: "https://www.w3.org/WAI/tutorials/images/decision-tree"
- }, (0,external_wp_i18n_namespaceObject.__)('Describe the purpose of the image.')), (0,external_React_namespaceObject.createElement)("br", null), (0,external_wp_i18n_namespaceObject.__)('Leave empty if decorative.')),
- __nextHasNoMarginBottom: true
- })), isResizable && dimensionsControl, !!imageSizeOptions.length && (0,external_React_namespaceObject.createElement)(ResolutionTool, {
- value: sizeSlug,
- onChange: updateImage,
- options: imageSizeOptions
- }))), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "advanced"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Title attribute'),
- value: title || '',
- onChange: onSetTitle,
- readOnly: lockTitleControls,
- help: lockTitleControls ? (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, lockTitleControlsMessage) : (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('Describe the role of this image on the page.'), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: "https://www.w3.org/TR/html52/dom.html#the-title-attribute"
- }, (0,external_wp_i18n_namespaceObject.__)('(Note: many devices and browsers do not display this text.)')))
- })));
+ }, [arePatternOverridesEnabled, context, isSingleSelected, metadata?.bindings]);
+ const showUrlInput = isSingleSelected && !isEditingImage && !lockHrefControls && !lockUrlControls;
+ const showCoverControls = isSingleSelected && canInsertCover;
+ const showBlockControls = showUrlInput || allowCrop || showCoverControls;
+ const controls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [showBlockControls && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: [showUrlInput && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalImageURLInputUI, {
+ url: href || '',
+ onChangeUrl: onSetHref,
+ linkDestination: linkDestination,
+ mediaUrl: image && image.source_url || url,
+ mediaLink: image && image.link,
+ linkTarget: linkTarget,
+ linkClass: linkClass,
+ rel: rel,
+ showLightboxSetting: showLightboxSetting,
+ lightboxEnabled: lightboxChecked,
+ onSetLightbox: onSetLightbox,
+ resetLightbox: resetLightbox
+ }), allowCrop && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ onClick: () => setIsEditingImage(true),
+ icon: library_crop,
+ label: (0,external_wp_i18n_namespaceObject.__)('Crop')
+ }), showCoverControls && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ icon: overlay_text,
+ label: (0,external_wp_i18n_namespaceObject.__)('Add text over image'),
+ onClick: switchToCover
+ })]
+ }), isSingleSelected && !isEditingImage && !lockUrlControls && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "other",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, {
+ mediaId: id,
+ mediaURL: url,
+ allowedTypes: constants_ALLOWED_MEDIA_TYPES,
+ accept: "image/*",
+ onSelect: onSelectImage,
+ onSelectURL: onSelectURL,
+ onError: onUploadError
+ })
+ }), isSingleSelected && externalBlob && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ onClick: uploadExternal,
+ icon: library_upload,
+ label: (0,external_wp_i18n_namespaceObject.__)('Upload to Media Library')
+ })
+ })
+ }), isContentOnlyMode &&
+ /*#__PURE__*/
+ // Add some extra controls for content attributes when content only mode is active.
+ // With content only mode active, the inspector is hidden, so users need another way
+ // to edit these attributes.
+ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "other",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ popoverProps: {
+ position: 'bottom right'
+ },
+ renderToggle: ({
+ isOpen,
+ onToggle
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ onClick: onToggle,
+ "aria-haspopup": "true",
+ "aria-expanded": isOpen,
+ onKeyDown: event => {
+ if (!isOpen && event.keyCode === external_wp_keycodes_namespaceObject.DOWN) {
+ event.preventDefault();
+ onToggle();
+ }
+ },
+ children: (0,external_wp_i18n_namespaceObject._x)('Alt', 'Alternative text for an image. Block toolbar label, a low character count is preferred.')
+ }),
+ renderContent: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextareaControl, {
+ className: "wp-block-image__toolbar_content_textarea",
+ label: (0,external_wp_i18n_namespaceObject.__)('Alternative text'),
+ value: alt || '',
+ onChange: updateAlt,
+ disabled: lockAltControls,
+ help: lockAltControls ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: lockAltControlsMessage
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href:
+ // translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations.
+ (0,external_wp_i18n_namespaceObject.__)('https://www.w3.org/WAI/tutorials/images/decision-tree/'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Describe the purpose of the image.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("br", {}), (0,external_wp_i18n_namespaceObject.__)('Leave empty if decorative.')]
+ }),
+ __nextHasNoMarginBottom: true
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ popoverProps: {
+ position: 'bottom right'
+ },
+ renderToggle: ({
+ isOpen,
+ onToggle
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ onClick: onToggle,
+ "aria-haspopup": "true",
+ "aria-expanded": isOpen,
+ onKeyDown: event => {
+ if (!isOpen && event.keyCode === external_wp_keycodes_namespaceObject.DOWN) {
+ event.preventDefault();
+ onToggle();
+ }
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Title')
+ }),
+ renderContent: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ className: "wp-block-image__toolbar_content_textarea",
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Title attribute'),
+ value: title || '',
+ onChange: onSetTitle,
+ disabled: lockTitleControls,
+ help: lockTitleControls ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: lockTitleControlsMessage
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [(0,external_wp_i18n_namespaceObject.__)('Describe the role of this image on the page.'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: "https://www.w3.org/TR/html52/dom.html#the-title-attribute",
+ children: (0,external_wp_i18n_namespaceObject.__)('(Note: many devices and browsers do not display this text.)')
+ })]
+ })
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ resetAll: resetAll,
+ dropdownMenuProps: dropdownMenuProps,
+ children: [isSingleSelected && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Alternative text'),
+ isShownByDefault: true,
+ hasValue: () => !!alt,
+ onDeselect: () => setAttributes({
+ alt: undefined
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextareaControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Alternative text'),
+ value: alt || '',
+ onChange: updateAlt,
+ readOnly: lockAltControls,
+ help: lockAltControls ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: lockAltControlsMessage
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href:
+ // translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations.
+ (0,external_wp_i18n_namespaceObject.__)('https://www.w3.org/WAI/tutorials/images/decision-tree/'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Describe the purpose of the image.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("br", {}), (0,external_wp_i18n_namespaceObject.__)('Leave empty if decorative.')]
+ }),
+ __nextHasNoMarginBottom: true
+ })
+ }), isResizable && dimensionsControl, !!imageSizeOptions.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResolutionTool, {
+ value: sizeSlug,
+ onChange: updateImage,
+ options: imageSizeOptions
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "advanced",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Title attribute'),
+ value: title || '',
+ onChange: onSetTitle,
+ readOnly: lockTitleControls,
+ help: lockTitleControls ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: lockTitleControlsMessage
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [(0,external_wp_i18n_namespaceObject.__)('Describe the role of this image on the page.'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: "https://www.w3.org/TR/html52/dom.html#the-title-attribute",
+ children: (0,external_wp_i18n_namespaceObject.__)('(Note: many devices and browsers do not display this text.)')
+ })]
+ })
+ })
+ })]
+ });
const filename = (0,external_wp_url_namespaceObject.getFilename)(url);
let defaultedAlt;
if (alt) {
@@ -26296,61 +26995,62 @@ function image_Image({
const shadowProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetShadowClassesAndStyles)(attributes);
const isRounded = attributes.className?.includes('is-style-rounded');
let img =
+ /*#__PURE__*/
// 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 */
- (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("img", {
- src: temporaryURL || url,
- alt: defaultedAlt,
- onError: () => onImageError(),
- onLoad: event => {
- setLoadedNaturalSize({
- loadedNaturalWidth: event.target?.naturalWidth,
- loadedNaturalHeight: event.target?.naturalHeight
- });
- },
- ref: imageRef,
- className: borderProps.className,
- style: {
- width: width && height || aspectRatio ? '100%' : undefined,
- height: width && height || aspectRatio ? '100%' : undefined,
- objectFit: scale,
- ...borderProps.style,
- ...shadowProps.style
- }
- }), temporaryURL && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null))
+ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: temporaryURL || url,
+ alt: defaultedAlt,
+ onError: () => onImageError(),
+ onLoad: event => {
+ setLoadedNaturalSize({
+ loadedNaturalWidth: event.target?.naturalWidth,
+ loadedNaturalHeight: event.target?.naturalHeight
+ });
+ },
+ ref: imageRef,
+ className: borderProps.className,
+ style: {
+ width: width && height || aspectRatio ? '100%' : undefined,
+ height: width && height || aspectRatio ? '100%' : undefined,
+ objectFit: scale,
+ ...borderProps.style,
+ ...shadowProps.style
+ }
+ }), temporaryURL && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})]
+ })
/* eslint-enable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events */;
-
- // clientWidth needs to be a number for the image Cropper to work, but sometimes it's 0
- // So we try using the imageRef width first and fallback to clientWidth.
- const fallbackClientWidth = imageRef.current?.width || clientWidth;
if (canEditImage && isEditingImage) {
- img = (0,external_React_namespaceObject.createElement)(ImageWrapper, {
- href: href
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalImageEditor, {
- id: id,
- url: url,
- width: numericWidth,
- height: numericHeight,
- clientWidth: fallbackClientWidth,
- naturalHeight: naturalHeight,
- naturalWidth: naturalWidth,
- onSaveImage: imageAttributes => setAttributes(imageAttributes),
- onFinishEditing: () => {
- setIsEditingImage(false);
- },
- borderProps: isRounded ? undefined : borderProps
- }));
+ img = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ImageWrapper, {
+ href: href,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalImageEditor, {
+ id: id,
+ url: url,
+ width: numericWidth,
+ height: numericHeight,
+ naturalHeight: naturalHeight,
+ naturalWidth: naturalWidth,
+ onSaveImage: imageAttributes => setAttributes(imageAttributes),
+ onFinishEditing: () => {
+ setIsEditingImage(false);
+ },
+ borderProps: isRounded ? undefined : borderProps
+ })
+ });
} else if (!isResizable) {
- img = (0,external_React_namespaceObject.createElement)("div", {
+ img = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
style: {
width,
height,
aspectRatio
- }
- }, (0,external_React_namespaceObject.createElement)(ImageWrapper, {
- href: href
- }, img));
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ImageWrapper, {
+ href: href,
+ children: img
+ })
+ });
} else {
const numericRatio = aspectRatio && evalAspectRatio(aspectRatio);
const customRatio = numericWidth / numericHeight;
@@ -26399,7 +27099,7 @@ function image_Image({
}
}
/* eslint-enable no-lonely-if */
- img = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ResizableBox, {
+ img = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ResizableBox, {
style: {
display: 'block',
objectFit: scale,
@@ -26434,28 +27134,31 @@ function image_Image({
aspectRatio: ratio === naturalRatio ? undefined : String(ratio)
});
},
- resizeRatio: align === 'center' ? 2 : 1
- }, (0,external_React_namespaceObject.createElement)(ImageWrapper, {
- href: href
- }, img));
+ resizeRatio: align === 'center' ? 2 : 1,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ImageWrapper, {
+ href: href,
+ children: img
+ })
+ });
}
if (!url && !temporaryURL) {
// Add all controls if the image attributes are connected.
return metadata?.bindings ? controls : sizeControls;
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, !temporaryURL && controls, img, (0,external_React_namespaceObject.createElement)(Caption, {
- attributes: attributes,
- setAttributes: setAttributes,
- isSelected: isSingleSelected,
- insertBlocksAfter: insertBlocksAfter,
- label: (0,external_wp_i18n_namespaceObject.__)('Image caption text'),
- showToolbarButton: isSingleSelected && hasNonContentControls,
- disableEditing: lockCaption
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [controls, img, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Caption, {
+ attributes: attributes,
+ setAttributes: setAttributes,
+ isSelected: isSingleSelected,
+ insertBlocksAfter: insertBlocksAfter,
+ label: (0,external_wp_i18n_namespaceObject.__)('Image caption text'),
+ showToolbarButton: isSingleSelected && hasNonContentControls && !arePatternOverridesEnabled,
+ readOnly: lockCaption
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/edit.js
-
/**
* External dependencies
*/
@@ -26480,10 +27183,13 @@ function image_Image({
+
/**
* Module constants
*/
+
+
const edit_pickRelevantMediaFiles = (image, size) => {
const imageProps = Object.fromEntries(Object.entries(image !== null && image !== void 0 ? image : {}).filter(([key]) => ['alt', 'id', 'link', 'caption'].includes(key)));
imageProps.url = image?.sizes?.[size]?.url || image?.media_details?.sizes?.[size]?.source_url || image.url;
@@ -26533,7 +27239,8 @@ function ImageEdit({
insertBlocksAfter,
onReplace,
context,
- clientId
+ clientId,
+ __unstableParentLayout: parentLayout
}) {
const {
url = '',
@@ -26548,7 +27255,9 @@ function ImageEdit({
align,
metadata
} = attributes;
- const [temporaryURL, setTemporaryURL] = (0,external_wp_element_namespaceObject.useState)();
+ const [temporaryURL, setTemporaryURL] = (0,external_wp_element_namespaceObject.useState)(() => {
+ return edit_isTemporaryImage(id, url) ? url : undefined;
+ });
const altRef = (0,external_wp_element_namespaceObject.useRef)();
(0,external_wp_element_namespaceObject.useEffect)(() => {
altRef.current = alt;
@@ -26570,8 +27279,7 @@ function ImageEdit({
scale: undefined
});
}
- }, [align]);
- const ref = (0,external_wp_element_namespaceObject.useRef)();
+ }, [__unstableMarkNextChangeAsNotPersistent, align, setAttributes]);
const {
getSettings
} = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
@@ -26693,62 +27401,29 @@ function ImageEdit({
});
}
}
- let isTemp = edit_isTemporaryImage(id, url);
-
- // Upload a temporary image on mount.
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!isTemp) {
- return;
- }
- const file = (0,external_wp_blob_namespaceObject.getBlobByURL)(url);
- if (file) {
- const {
- mediaUpload
- } = getSettings();
- if (!mediaUpload) {
- return;
- }
- mediaUpload({
- filesList: [file],
- onFileChange: ([img]) => {
- onSelectImage(img);
- },
- allowedTypes: constants_ALLOWED_MEDIA_TYPES,
- onError: message => {
- isTemp = false;
- onUploadError(message);
- }
- });
- }
- }, []);
-
- // If an image is temporary, revoke the Blob url when it is uploaded (and is
- // no longer temporary).
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (isTemp) {
- setTemporaryURL(url);
- return;
- }
- (0,external_wp_blob_namespaceObject.revokeBlobURL)(temporaryURL);
- }, [isTemp, url]);
+ useUploadMediaFromBlobURL({
+ url,
+ allowedTypes: constants_ALLOWED_MEDIA_TYPES,
+ onChange: onSelectImage,
+ onError: onUploadError
+ });
const isExternal = isExternalImage(id, url);
const src = isExternal ? url : undefined;
- const mediaPreview = !!url && (0,external_React_namespaceObject.createElement)("img", {
+ const mediaPreview = !!url && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
alt: (0,external_wp_i18n_namespaceObject.__)('Edit image'),
title: (0,external_wp_i18n_namespaceObject.__)('Edit image'),
- className: 'edit-image-preview',
+ className: "edit-image-preview",
src: url
});
const borderProps = (0,external_wp_blockEditor_namespaceObject.__experimentalUseBorderProps)(attributes);
const shadowProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetShadowClassesAndStyles)(attributes);
- const classes = classnames_default()(className, {
+ const classes = dist_clsx(className, {
'is-transient': temporaryURL,
'is-resized': !!width || !!height,
[`size-${sizeSlug}`]: sizeSlug,
'has-custom-border': !!borderProps.className || borderProps.style && Object.keys(borderProps.style).length > 0
});
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- ref,
className: classes
});
@@ -26762,14 +27437,18 @@ function ImageEdit({
}
const blockBindingsSource = unlock(select(external_wp_blocks_namespaceObject.store)).getBlockBindingsSource(metadata?.bindings?.url?.source);
return {
- lockUrlControls: !!metadata?.bindings?.url && (!blockBindingsSource || blockBindingsSource?.lockAttributesEditing),
+ lockUrlControls: !!metadata?.bindings?.url && !blockBindingsSource?.canUserEditValue({
+ select,
+ context,
+ args: metadata?.bindings?.url?.args
+ }),
lockUrlControlsMessage: blockBindingsSource?.label ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Label of the bindings source. */
(0,external_wp_i18n_namespaceObject.__)('Connected to %s'), blockBindingsSource.label) : (0,external_wp_i18n_namespaceObject.__)('Connected to dynamic data')
};
- }, [isSingleSelected]);
+ }, [isSingleSelected, metadata?.bindings?.url]);
const placeholder = content => {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- className: classnames_default()('block-editor-media-placeholder', {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ className: dist_clsx('block-editor-media-placeholder', {
[borderProps.className]: !!borderProps.className && !isSingleSelected
}),
withIllustration: true,
@@ -26783,49 +27462,51 @@ function ImageEdit({
objectFit: scale,
...borderProps.style,
...shadowProps.style
- }
- }, lockUrlControls ? (0,external_React_namespaceObject.createElement)("span", {
- className: 'block-bindings-media-placeholder-message'
- }, lockUrlControlsMessage) : content);
+ },
+ children: lockUrlControls ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-bindings-media-placeholder-message",
+ children: lockUrlControlsMessage
+ }) : content
+ });
};
- return (0,external_React_namespaceObject.createElement)("figure", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(image_Image, {
- temporaryURL: temporaryURL,
- attributes: attributes,
- setAttributes: setAttributes,
- isSingleSelected: isSingleSelected,
- insertBlocksAfter: insertBlocksAfter,
- onReplace: onReplace,
- onSelectImage: onSelectImage,
- onSelectURL: onSelectURL,
- onUploadError: onUploadError,
- containerRef: ref,
- context: context,
- clientId: clientId,
- blockEditingMode: blockEditingMode
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
- icon: (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
- icon: library_image
- }),
- onSelect: onSelectImage,
- onSelectURL: onSelectURL,
- onError: onUploadError,
- placeholder: placeholder,
- accept: "image/*",
- allowedTypes: constants_ALLOWED_MEDIA_TYPES,
- value: {
- id,
- src
- },
- mediaPreview: mediaPreview,
- disableMediaButtons: temporaryURL || url
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ ...blockProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(image_Image, {
+ temporaryURL: temporaryURL,
+ attributes: attributes,
+ setAttributes: setAttributes,
+ isSingleSelected: isSingleSelected,
+ insertBlocksAfter: insertBlocksAfter,
+ onReplace: onReplace,
+ onSelectImage: onSelectImage,
+ onSelectURL: onSelectURL,
+ onUploadError: onUploadError,
+ context: context,
+ clientId: clientId,
+ blockEditingMode: blockEditingMode,
+ parentLayoutType: parentLayout?.type
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ icon: library_image
+ }),
+ onSelect: onSelectImage,
+ onSelectURL: onSelectURL,
+ onError: onUploadError,
+ placeholder: placeholder,
+ accept: "image/*",
+ allowedTypes: constants_ALLOWED_MEDIA_TYPES,
+ value: {
+ id,
+ src
+ },
+ mediaPreview: mediaPreview,
+ disableMediaButtons: temporaryURL || url
+ })]
+ });
}
/* harmony default export */ const image_edit = (ImageEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/save.js
-
/**
* External dependencies
*/
@@ -26835,6 +27516,9 @@ function ImageEdit({
* WordPress dependencies
*/
+
+
+
function image_save_save({
attributes
}) {
@@ -26858,7 +27542,7 @@ function image_save_save({
const newRel = !rel ? undefined : rel;
const borderProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetBorderClassesAndStyles)(attributes);
const shadowProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetShadowClassesAndStyles)(attributes);
- const classes = classnames_default()({
+ const classes = dist_clsx({
// All other align classes are handled by block supports.
// `{ align: 'none' }` is unique to transforms for the image block.
alignnone: 'none' === align,
@@ -26866,10 +27550,10 @@ function image_save_save({
'is-resized': width || height,
'has-custom-border': !!borderProps.className || borderProps.style && Object.keys(borderProps.style).length > 0
});
- const imageClasses = classnames_default()(borderProps.className, {
+ const imageClasses = dist_clsx(borderProps.className, {
[`wp-image-${id}`]: !!id
});
- const image = (0,external_React_namespaceObject.createElement)("img", {
+ const image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
src: url,
alt: alt,
className: imageClasses || undefined,
@@ -26883,21 +27567,25 @@ function image_save_save({
},
title: title
});
- const figure = (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, href ? (0,external_React_namespaceObject.createElement)("a", {
- className: linkClass,
- href: href,
- target: linkTarget,
- rel: newRel
- }, image) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
- tagName: "figcaption",
- value: caption
- }));
- return (0,external_React_namespaceObject.createElement)("figure", {
+ const figure = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [href ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ className: linkClass,
+ href: href,
+ target: linkTarget,
+ rel: newRel,
+ children: image
+ }) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
+ tagName: "figcaption",
+ value: caption
+ })]
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: classes
- })
- }, figure);
+ }),
+ children: figure
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/transforms.js
@@ -27294,21 +27982,21 @@ const image_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/comment.js
-
/**
* WordPress dependencies
*/
-const comment = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const comment = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
/* harmony default export */ const library_comment = (comment);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-comments/edit.js
-
/**
* WordPress dependencies
*/
@@ -27322,6 +28010,8 @@ const comment = (0,external_React_namespaceObject.createElement)(external_wp_pri
*
* @type {number}
*/
+
+
const MIN_COMMENTS = 1;
/**
* Maximum number of comments a user can show using this block.
@@ -27346,53 +28036,59 @@ function LatestComments({
spacing: undefined
}
};
- return (0,external_React_namespaceObject.createElement)("div", {
- ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)()
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Display avatar'),
- checked: displayAvatar,
- onChange: () => setAttributes({
- displayAvatar: !displayAvatar
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Display date'),
- checked: displayDate,
- onChange: () => setAttributes({
- displayDate: !displayDate
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Display excerpt'),
- checked: displayExcerpt,
- onChange: () => setAttributes({
- displayExcerpt: !displayExcerpt
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Number of comments'),
- value: commentsToShow,
- onChange: value => setAttributes({
- commentsToShow: value
- }),
- min: MIN_COMMENTS,
- max: MAX_COMMENTS,
- required: true
- }))), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Disabled, null, (0,external_React_namespaceObject.createElement)((external_wp_serverSideRender_default()), {
- block: "core/latest-comments",
- attributes: serverSideAttributes
- // The preview uses the site's locale to make it more true to how
- // the block appears on the frontend. Setting the locale
- // explicitly prevents any middleware from setting it to 'user'.
- ,
- urlQueryArgs: {
- _locale: 'site'
- }
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)(),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Display avatar'),
+ checked: displayAvatar,
+ onChange: () => setAttributes({
+ displayAvatar: !displayAvatar
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Display date'),
+ checked: displayDate,
+ onChange: () => setAttributes({
+ displayDate: !displayDate
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Display excerpt'),
+ checked: displayExcerpt,
+ onChange: () => setAttributes({
+ displayExcerpt: !displayExcerpt
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Number of comments'),
+ value: commentsToShow,
+ onChange: value => setAttributes({
+ commentsToShow: value
+ }),
+ min: MIN_COMMENTS,
+ max: MAX_COMMENTS,
+ required: true
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Disabled, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)((external_wp_serverSideRender_default()), {
+ block: "core/latest-comments",
+ attributes: serverSideAttributes
+ // The preview uses the site's locale to make it more true to how
+ // the block appears on the frontend. Setting the locale
+ // explicitly prevents any middleware from setting it to 'user'.
+ ,
+ urlQueryArgs: {
+ _locale: 'site'
+ }
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-comments/index.js
@@ -27478,17 +28174,18 @@ const latest_comments_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post-list.js
-
/**
* WordPress dependencies
*/
-const postList = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const postList = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"
+ })
+});
/* harmony default export */ const post_list = (postList);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/deprecated.js
@@ -27645,17 +28342,18 @@ const {
}]);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/list.js
-
/**
* WordPress dependencies
*/
-const list = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const list = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const library_list = (list);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/constants.js
@@ -27664,7 +28362,6 @@ const MAX_EXCERPT_LENGTH = 100;
const MAX_POSTS_COLUMNS = 6;
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/edit.js
-
/**
* External dependencies
*/
@@ -27692,6 +28389,9 @@ const MAX_POSTS_COLUMNS = 6;
/**
* Module Constants
*/
+
+
+
const CATEGORIES_LIST_QUERY = {
per_page: -1,
context: 'view'
@@ -27817,138 +28517,149 @@ function LatestPostsEdit({
});
};
const hasPosts = !!latestPosts?.length;
- const inspectorControls = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Post content')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Post content'),
- checked: displayPostContent,
- onChange: value => setAttributes({
- displayPostContent: value
- })
- }), displayPostContent && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RadioControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Show:'),
- selected: displayPostContentRadio,
- options: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Excerpt'),
- value: 'excerpt'
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('Full post'),
- value: 'full_post'
- }],
- onChange: value => setAttributes({
- displayPostContentRadio: value
- })
- }), displayPostContent && displayPostContentRadio === 'excerpt' && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Max number of words'),
- value: excerptLength,
- onChange: value => setAttributes({
- excerptLength: value
- }),
- min: MIN_EXCERPT_LENGTH,
- max: MAX_EXCERPT_LENGTH
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Post meta')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Display author name'),
- checked: displayAuthor,
- onChange: value => setAttributes({
- displayAuthor: value
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Display post date'),
- checked: displayPostDate,
- onChange: value => setAttributes({
- displayPostDate: value
- })
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Featured image')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Display featured image'),
- checked: displayFeaturedImage,
- onChange: value => setAttributes({
- displayFeaturedImage: value
- })
- }), displayFeaturedImage && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalImageSizeControl, {
- onChange: value => {
- const newAttrs = {};
- if (value.hasOwnProperty('width')) {
- newAttrs.featuredImageSizeWidth = value.width;
- }
- if (value.hasOwnProperty('height')) {
- newAttrs.featuredImageSizeHeight = value.height;
- }
- setAttributes(newAttrs);
- },
- slug: featuredImageSizeSlug,
- width: featuredImageSizeWidth,
- height: featuredImageSizeHeight,
- imageWidth: defaultImageWidth,
- imageHeight: defaultImageHeight,
- imageSizeOptions: imageSizeOptions,
- imageSizeHelp: (0,external_wp_i18n_namespaceObject.__)('Select the size of the source image.'),
- onChangeImage: value => setAttributes({
- featuredImageSizeSlug: value,
- featuredImageSizeWidth: undefined,
- featuredImageSizeHeight: undefined
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.BaseControl, {
- className: "editor-latest-posts-image-alignment-control"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.BaseControl.VisualLabel, null, (0,external_wp_i18n_namespaceObject.__)('Image alignment')), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockAlignmentToolbar, {
- value: featuredImageAlign,
- onChange: value => setAttributes({
- featuredImageAlign: value
- }),
- controls: ['left', 'center', 'right'],
- isCollapsed: false
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Add link to featured image'),
- checked: addLinkToFeaturedImage,
- onChange: value => setAttributes({
- addLinkToFeaturedImage: value
- })
- }))), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Sorting and filtering')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.QueryControls, {
- order,
- orderBy,
- numberOfItems: postsToShow,
- onOrderChange: value => setAttributes({
- order: value
- }),
- onOrderByChange: value => setAttributes({
- orderBy: value
- }),
- onNumberOfItemsChange: value => setAttributes({
- postsToShow: value
- }),
- categorySuggestions: categorySuggestions,
- onCategoryChange: selectCategories,
- selectedCategories: categories,
- onAuthorChange: value => setAttributes({
- selectedAuthor: '' !== value ? Number(value) : undefined
- }),
- authorList: authorList !== null && authorList !== void 0 ? authorList : [],
- selectedAuthorId: selectedAuthor
- }), postLayout === 'grid' && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
- value: columns,
- onChange: value => setAttributes({
- columns: value
- }),
- min: 2,
- max: !hasPosts ? MAX_POSTS_COLUMNS : Math.min(MAX_POSTS_COLUMNS, latestPosts.length),
- required: true
- })));
+ const inspectorControls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Post content'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Post content'),
+ checked: displayPostContent,
+ onChange: value => setAttributes({
+ displayPostContent: value
+ })
+ }), displayPostContent && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RadioControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Show:'),
+ selected: displayPostContentRadio,
+ options: [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Excerpt'),
+ value: 'excerpt'
+ }, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Full post'),
+ value: 'full_post'
+ }],
+ onChange: value => setAttributes({
+ displayPostContentRadio: value
+ })
+ }), displayPostContent && displayPostContentRadio === 'excerpt' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Max number of words'),
+ value: excerptLength,
+ onChange: value => setAttributes({
+ excerptLength: value
+ }),
+ min: MIN_EXCERPT_LENGTH,
+ max: MAX_EXCERPT_LENGTH
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Post meta'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Display author name'),
+ checked: displayAuthor,
+ onChange: value => setAttributes({
+ displayAuthor: value
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Display post date'),
+ checked: displayPostDate,
+ onChange: value => setAttributes({
+ displayPostDate: value
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Featured image'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Display featured image'),
+ checked: displayFeaturedImage,
+ onChange: value => setAttributes({
+ displayFeaturedImage: value
+ })
+ }), displayFeaturedImage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalImageSizeControl, {
+ onChange: value => {
+ const newAttrs = {};
+ if (value.hasOwnProperty('width')) {
+ newAttrs.featuredImageSizeWidth = value.width;
+ }
+ if (value.hasOwnProperty('height')) {
+ newAttrs.featuredImageSizeHeight = value.height;
+ }
+ setAttributes(newAttrs);
+ },
+ slug: featuredImageSizeSlug,
+ width: featuredImageSizeWidth,
+ height: featuredImageSizeHeight,
+ imageWidth: defaultImageWidth,
+ imageHeight: defaultImageHeight,
+ imageSizeOptions: imageSizeOptions,
+ imageSizeHelp: (0,external_wp_i18n_namespaceObject.__)('Select the size of the source image.'),
+ onChangeImage: value => setAttributes({
+ featuredImageSizeSlug: value,
+ featuredImageSizeWidth: undefined,
+ featuredImageSizeHeight: undefined
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.BaseControl, {
+ className: "editor-latest-posts-image-alignment-control",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Image alignment')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockAlignmentToolbar, {
+ value: featuredImageAlign,
+ onChange: value => setAttributes({
+ featuredImageAlign: value
+ }),
+ controls: ['left', 'center', 'right'],
+ isCollapsed: false
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Add link to featured image'),
+ checked: addLinkToFeaturedImage,
+ onChange: value => setAttributes({
+ addLinkToFeaturedImage: value
+ })
+ })]
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Sorting and filtering'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.QueryControls, {
+ order,
+ orderBy,
+ numberOfItems: postsToShow,
+ onOrderChange: value => setAttributes({
+ order: value
+ }),
+ onOrderByChange: value => setAttributes({
+ orderBy: value
+ }),
+ onNumberOfItemsChange: value => setAttributes({
+ postsToShow: value
+ }),
+ categorySuggestions: categorySuggestions,
+ onCategoryChange: selectCategories,
+ selectedCategories: categories,
+ onAuthorChange: value => setAttributes({
+ selectedAuthor: '' !== value ? Number(value) : undefined
+ }),
+ authorList: authorList !== null && authorList !== void 0 ? authorList : [],
+ selectedAuthorId: selectedAuthor
+ }), postLayout === 'grid' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
+ value: columns,
+ onChange: value => setAttributes({
+ columns: value
+ }),
+ min: 2,
+ max: !hasPosts ? MAX_POSTS_COLUMNS : Math.min(MAX_POSTS_COLUMNS, latestPosts.length),
+ required: true
+ })]
+ })]
+ });
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
'wp-block-latest-posts__list': true,
'is-grid': postLayout === 'grid',
'has-dates': displayPostDate,
@@ -27957,106 +28668,122 @@ function LatestPostsEdit({
})
});
if (!hasPosts) {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, inspectorControls, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- icon: library_pin,
- label: (0,external_wp_i18n_namespaceObject.__)('Latest Posts')
- }, !Array.isArray(latestPosts) ? (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null) : (0,external_wp_i18n_namespaceObject.__)('No posts found.')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...blockProps,
+ children: [inspectorControls, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ icon: library_pin,
+ label: (0,external_wp_i18n_namespaceObject.__)('Latest Posts'),
+ children: !Array.isArray(latestPosts) ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}) : (0,external_wp_i18n_namespaceObject.__)('No posts found.')
+ })]
+ });
}
// Removing posts from display should be instant.
const displayPosts = latestPosts.length > postsToShow ? latestPosts.slice(0, postsToShow) : latestPosts;
const layoutControls = [{
icon: library_list,
- title: (0,external_wp_i18n_namespaceObject.__)('List view'),
+ title: (0,external_wp_i18n_namespaceObject._x)('List view', 'Latest posts block display setting'),
onClick: () => setAttributes({
postLayout: 'list'
}),
isActive: postLayout === 'list'
}, {
icon: library_grid,
- title: (0,external_wp_i18n_namespaceObject.__)('Grid view'),
+ title: (0,external_wp_i18n_namespaceObject._x)('Grid view', 'Latest posts block display setting'),
onClick: () => setAttributes({
postLayout: 'grid'
}),
isActive: postLayout === 'grid'
}];
const dateFormat = (0,external_wp_date_namespaceObject.getSettings)().formats.date;
- return (0,external_React_namespaceObject.createElement)("div", null, inspectorControls, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, {
- controls: layoutControls
- })), (0,external_React_namespaceObject.createElement)("ul", {
- ...blockProps
- }, displayPosts.map(post => {
- const titleTrimmed = post.title.rendered.trim();
- let excerpt = post.excerpt.rendered;
- const currentAuthor = authorList?.find(author => author.id === post.author);
- const excerptElement = document.createElement('div');
- excerptElement.innerHTML = excerpt;
- excerpt = excerptElement.textContent || excerptElement.innerText || '';
- const {
- url: imageSourceUrl,
- alt: featuredImageAlt
- } = getFeaturedImageDetails(post, featuredImageSizeSlug);
- const imageClasses = classnames_default()({
- 'wp-block-latest-posts__featured-image': true,
- [`align${featuredImageAlign}`]: !!featuredImageAlign
- });
- const renderFeaturedImage = displayFeaturedImage && imageSourceUrl;
- const featuredImage = renderFeaturedImage && (0,external_React_namespaceObject.createElement)("img", {
- src: imageSourceUrl,
- alt: featuredImageAlt,
- style: {
- maxWidth: featuredImageSizeWidth,
- maxHeight: featuredImageSizeHeight
- }
- });
- const needsReadMore = excerptLength < excerpt.trim().split(' ').length && post.excerpt.raw === '';
- const postExcerpt = needsReadMore ? (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, excerpt.trim().split(' ', excerptLength).join(' '), (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Hidden accessibility text: Post title */
- (0,external_wp_i18n_namespaceObject.__)('… <a>Read more<span>: %1$s</span></a>'), titleTrimmed || (0,external_wp_i18n_namespaceObject.__)('(no title)')), {
- a:
- // eslint-disable-next-line jsx-a11y/anchor-has-content
- (0,external_React_namespaceObject.createElement)("a", {
- className: "wp-block-latest-posts__read-more",
- href: post.link,
- rel: "noopener noreferrer",
- onClick: showRedirectionPreventedNotice
- }),
- span: (0,external_React_namespaceObject.createElement)("span", {
- className: "screen-reader-text"
- })
- })) : excerpt;
- return (0,external_React_namespaceObject.createElement)("li", {
- key: post.id
- }, renderFeaturedImage && (0,external_React_namespaceObject.createElement)("div", {
- className: imageClasses
- }, addLinkToFeaturedImage ? (0,external_React_namespaceObject.createElement)("a", {
- className: "wp-block-latest-posts__post-title",
- href: post.link,
- rel: "noreferrer noopener",
- onClick: showRedirectionPreventedNotice
- }, featuredImage) : featuredImage), (0,external_React_namespaceObject.createElement)("a", {
- href: post.link,
- rel: "noreferrer noopener",
- dangerouslySetInnerHTML: !!titleTrimmed ? {
- __html: titleTrimmed
- } : undefined,
- onClick: showRedirectionPreventedNotice
- }, !titleTrimmed ? (0,external_wp_i18n_namespaceObject.__)('(no title)') : null), displayAuthor && currentAuthor && (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-latest-posts__post-author"
- }, (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: byline. %s: current author. */
- (0,external_wp_i18n_namespaceObject.__)('by %s'), currentAuthor.name)), displayPostDate && post.date_gmt && (0,external_React_namespaceObject.createElement)("time", {
- dateTime: (0,external_wp_date_namespaceObject.format)('c', post.date_gmt),
- className: "wp-block-latest-posts__post-date"
- }, (0,external_wp_date_namespaceObject.dateI18n)(dateFormat, post.date_gmt)), displayPostContent && displayPostContentRadio === 'excerpt' && (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-latest-posts__post-excerpt"
- }, postExcerpt), displayPostContent && displayPostContentRadio === 'full_post' && (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-latest-posts__post-full-content",
- dangerouslySetInnerHTML: {
- __html: post.content.raw.trim()
- }
- }));
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [inspectorControls, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ controls: layoutControls
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ ...blockProps,
+ children: displayPosts.map(post => {
+ const titleTrimmed = post.title.rendered.trim();
+ let excerpt = post.excerpt.rendered;
+ const currentAuthor = authorList?.find(author => author.id === post.author);
+ const excerptElement = document.createElement('div');
+ excerptElement.innerHTML = excerpt;
+ excerpt = excerptElement.textContent || excerptElement.innerText || '';
+ const {
+ url: imageSourceUrl,
+ alt: featuredImageAlt
+ } = getFeaturedImageDetails(post, featuredImageSizeSlug);
+ const imageClasses = dist_clsx({
+ 'wp-block-latest-posts__featured-image': true,
+ [`align${featuredImageAlign}`]: !!featuredImageAlign
+ });
+ const renderFeaturedImage = displayFeaturedImage && imageSourceUrl;
+ const featuredImage = renderFeaturedImage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: imageSourceUrl,
+ alt: featuredImageAlt,
+ style: {
+ maxWidth: featuredImageSizeWidth,
+ maxHeight: featuredImageSizeHeight
+ }
+ });
+ const needsReadMore = excerptLength < excerpt.trim().split(' ').length && post.excerpt.raw === '';
+ const postExcerpt = needsReadMore ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [excerpt.trim().split(' ', excerptLength).join(' '), (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Hidden accessibility text: Post title */
+ (0,external_wp_i18n_namespaceObject.__)('… <a>Read more<span>: %1$s</span></a>'), titleTrimmed || (0,external_wp_i18n_namespaceObject.__)('(no title)')), {
+ a:
+ /*#__PURE__*/
+ // eslint-disable-next-line jsx-a11y/anchor-has-content
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ className: "wp-block-latest-posts__read-more",
+ href: post.link,
+ rel: "noopener noreferrer",
+ onClick: showRedirectionPreventedNotice
+ }),
+ span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "screen-reader-text"
+ })
+ })]
+ }) : excerpt;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ children: [renderFeaturedImage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: imageClasses,
+ children: addLinkToFeaturedImage ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: post.link,
+ rel: "noreferrer noopener",
+ onClick: showRedirectionPreventedNotice,
+ children: featuredImage
+ }) : featuredImage
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ className: "wp-block-latest-posts__post-title",
+ href: post.link,
+ rel: "noreferrer noopener",
+ dangerouslySetInnerHTML: !!titleTrimmed ? {
+ __html: titleTrimmed
+ } : undefined,
+ onClick: showRedirectionPreventedNotice,
+ children: !titleTrimmed ? (0,external_wp_i18n_namespaceObject.__)('(no title)') : null
+ }), displayAuthor && currentAuthor && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-latest-posts__post-author",
+ children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: byline. %s: current author. */
+ (0,external_wp_i18n_namespaceObject.__)('by %s'), currentAuthor.name)
+ }), displayPostDate && post.date_gmt && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("time", {
+ dateTime: (0,external_wp_date_namespaceObject.format)('c', post.date_gmt),
+ className: "wp-block-latest-posts__post-date",
+ children: (0,external_wp_date_namespaceObject.dateI18n)(dateFormat, post.date_gmt)
+ }), displayPostContent && displayPostContentRadio === 'excerpt' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-latest-posts__post-excerpt",
+ children: postExcerpt
+ }), displayPostContent && displayPostContentRadio === 'full_post' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-latest-posts__post-full-content",
+ dangerouslySetInnerHTML: {
+ __html: post.content.raw.trim()
+ }
+ })]
+ }, post.id);
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/index.js
@@ -28294,7 +29021,6 @@ function migrateTypeToInlineStyle(attributes) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/deprecated.js
-
/**
* WordPress dependencies
*/
@@ -28305,6 +29031,7 @@ function migrateTypeToInlineStyle(attributes) {
*/
+
const v0 = {
attributes: {
ordered: {
@@ -28360,16 +29087,17 @@ const v0 = {
start
} = attributes;
const TagName = ordered ? 'ol' : 'ul';
- return (0,external_React_namespaceObject.createElement)(TagName, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
type,
reversed,
start
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: values,
+ multiline: "li"
})
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: values,
- multiline: "li"
- }));
+ });
},
migrate: migrate_font_family,
isEligible({
@@ -28445,16 +29173,17 @@ const list_deprecated_v1 = {
start
} = attributes;
const TagName = ordered ? 'ol' : 'ul';
- return (0,external_React_namespaceObject.createElement)(TagName, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
type,
reversed,
start
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: values,
+ multiline: "li"
})
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: values,
- multiline: "li"
- }));
+ });
},
migrate: migrateToListV2
};
@@ -28540,17 +29269,108 @@ const list_deprecated_v2 = {
start
} = attributes;
const TagName = ordered ? 'ol' : 'ul';
- return (0,external_React_namespaceObject.createElement)(TagName, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
type,
reversed,
start
- })
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null));
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ });
},
migrate: migrateTypeToInlineStyle
};
+// Version without block support 'className: true'.
+const list_deprecated_v3 = {
+ attributes: {
+ ordered: {
+ type: 'boolean',
+ default: false,
+ __experimentalRole: 'content'
+ },
+ values: {
+ type: 'string',
+ source: 'html',
+ selector: 'ol,ul',
+ multiline: 'li',
+ __unstableMultilineWrapperTags: ['ol', 'ul'],
+ default: '',
+ __experimentalRole: 'content'
+ },
+ type: {
+ type: 'string'
+ },
+ start: {
+ type: 'number'
+ },
+ reversed: {
+ type: 'boolean'
+ },
+ placeholder: {
+ type: 'string'
+ }
+ },
+ supports: {
+ anchor: true,
+ className: false,
+ typography: {
+ fontSize: true,
+ lineHeight: true,
+ __experimentalFontFamily: true,
+ __experimentalFontWeight: true,
+ __experimentalFontStyle: true,
+ __experimentalTextTransform: true,
+ __experimentalTextDecoration: true,
+ __experimentalLetterSpacing: true,
+ __experimentalDefaultControls: {
+ fontSize: true
+ }
+ },
+ color: {
+ gradients: true,
+ link: true,
+ __experimentalDefaultControls: {
+ background: true,
+ text: true
+ }
+ },
+ spacing: {
+ margin: true,
+ padding: true,
+ __experimentalDefaultControls: {
+ margin: false,
+ padding: false
+ }
+ },
+ __unstablePasteTextInline: true,
+ __experimentalSelector: 'ol,ul',
+ __experimentalOnMerge: 'true',
+ __experimentalSlashInserter: true
+ },
+ save({
+ attributes
+ }) {
+ const {
+ ordered,
+ type,
+ reversed,
+ start
+ } = attributes;
+ const TagName = ordered ? 'ol' : 'ul';
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save({
+ reversed,
+ start,
+ style: {
+ listStyleType: ordered && type !== 'decimal' ? type : undefined
+ }
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ });
+ }
+};
+
/**
* New deprecations need to be placed first
* for them to have higher priority.
@@ -28559,173 +29379,183 @@ const list_deprecated_v2 = {
*
* See block-deprecation.md
*/
-/* harmony default export */ const list_deprecated = ([list_deprecated_v2, list_deprecated_v1, v0]);
+/* harmony default export */ const list_deprecated = ([list_deprecated_v3, list_deprecated_v2, list_deprecated_v1, v0]);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-outdent-rtl.js
-
/**
* WordPress dependencies
*/
-const formatOutdentRTL = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const formatOutdentRTL = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const format_outdent_rtl = (formatOutdentRTL);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-outdent.js
-
/**
* WordPress dependencies
*/
-const formatOutdent = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const formatOutdent = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const format_outdent = (formatOutdent);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-list-bullets-rtl.js
-
/**
* WordPress dependencies
*/
-const formatListBulletsRTL = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const formatListBulletsRTL = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
/* harmony default export */ const format_list_bullets_rtl = (formatListBulletsRTL);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-list-bullets.js
-
/**
* WordPress dependencies
*/
-const formatListBullets = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const formatListBullets = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const format_list_bullets = (formatListBullets);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-list-numbered-rtl.js
-
/**
* WordPress dependencies
*/
-const formatListNumberedRTL = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const formatListNumberedRTL = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const format_list_numbered_rtl = (formatListNumberedRTL);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-list-numbered.js
-
/**
* WordPress dependencies
*/
-const formatListNumbered = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const formatListNumbered = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const format_list_numbered = (formatListNumbered);
;// CONCATENATED MODULE: external ["wp","deprecated"]
const external_wp_deprecated_namespaceObject = window["wp"]["deprecated"];
var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/ordered-list-settings.js
-
/**
* WordPress dependencies
*/
+
+
const OrderedListSettings = ({
setAttributes,
reversed,
start,
type
-}) => (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Ordered list settings')
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Start value'),
- type: "number",
- onChange: value => {
- const int = parseInt(value, 10);
- setAttributes({
- // It should be possible to unset the value,
- // e.g. with an empty string.
- start: isNaN(int) ? undefined : int
- });
- },
- value: Number.isInteger(start) ? start.toString(10) : '',
- step: "1"
-}), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Numbering style'),
- options: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Numbers'),
- value: 'decimal'
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('Uppercase letters'),
- value: 'upper-alpha'
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('Lowercase letters'),
- value: 'lower-alpha'
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('Uppercase Roman numerals'),
- value: 'upper-roman'
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('Lowercase Roman numerals'),
- value: 'lower-roman'
- }],
- value: type,
- onChange: newValue => setAttributes({
- type: newValue
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Start value'),
+ type: "number",
+ onChange: value => {
+ const int = parseInt(value, 10);
+ setAttributes({
+ // It should be possible to unset the value,
+ // e.g. with an empty string.
+ start: isNaN(int) ? undefined : int
+ });
+ },
+ value: Number.isInteger(start) ? start.toString(10) : '',
+ step: "1"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Numbering style'),
+ options: [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Numbers'),
+ value: 'decimal'
+ }, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Uppercase letters'),
+ value: 'upper-alpha'
+ }, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Lowercase letters'),
+ value: 'lower-alpha'
+ }, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Uppercase Roman numerals'),
+ value: 'upper-roman'
+ }, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Lowercase Roman numerals'),
+ value: 'lower-roman'
+ }],
+ value: type,
+ onChange: newValue => setAttributes({
+ type: newValue
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Reverse list numbering'),
+ checked: reversed || false,
+ onChange: value => {
+ setAttributes({
+ // Unset the attribute if not reversed.
+ reversed: value || undefined
+ });
+ }
+ })]
})
-}), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Reverse list numbering'),
- checked: reversed || false,
- onChange: value => {
- setAttributes({
- // Unset the attribute if not reversed.
- reversed: value || undefined
- });
- }
-})));
+});
/* harmony default export */ const ordered_list_settings = (OrderedListSettings);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/tag-name.js
-
/**
* WordPress dependencies
*/
+
function TagName(props, ref) {
const {
ordered,
...extraProps
} = props;
const Tag = ordered ? 'ol' : 'ul';
- return (0,external_React_namespaceObject.createElement)(Tag, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
ref: ref,
...extraProps
});
@@ -28733,7 +29563,6 @@ function TagName(props, ref) {
/* harmony default export */ const tag_name = ((0,external_wp_element_namespaceObject.forwardRef)(TagName));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/edit.js
-
/**
* WordPress dependencies
*/
@@ -28752,6 +29581,12 @@ function TagName(props, ref) {
+
+
+
+const list_edit_DEFAULT_BLOCK = {
+ name: 'core/list-item'
+};
const list_edit_TEMPLATE = [['core/list-item']];
const NATIVE_MARGIN_SPACING = 8;
@@ -28823,13 +29658,15 @@ function IndentUI({
} = select(external_wp_blockEditor_namespaceObject.store);
return getBlockName(getBlockRootClientId(clientId)) === 'core/list-item';
}, [clientId]);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? format_outdent_rtl : format_outdent,
- title: (0,external_wp_i18n_namespaceObject.__)('Outdent'),
- describedBy: (0,external_wp_i18n_namespaceObject.__)('Outdent list item'),
- disabled: !canOutdent,
- onClick: outdentList
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? format_outdent_rtl : format_outdent,
+ title: (0,external_wp_i18n_namespaceObject.__)('Outdent'),
+ describedBy: (0,external_wp_i18n_namespaceObject.__)('Outdent list item'),
+ disabled: !canOutdent,
+ onClick: outdentList
+ })
+ });
}
function list_edit_Edit({
attributes,
@@ -28850,6 +29687,8 @@ function list_edit_Edit({
}
});
const innerBlocksProps = (0,external_wp_blockEditor_namespaceObject.useInnerBlocksProps)(blockProps, {
+ defaultBlock: list_edit_DEFAULT_BLOCK,
+ directInsert: true,
template: list_edit_TEMPLATE,
templateLock: false,
templateInsertUpdatesSelection: true,
@@ -28861,50 +29700,53 @@ function list_edit_Edit({
__experimentalCaptureToolbars: true
});
useMigrateOnLoad(attributes, clientId);
- const controls = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? format_list_bullets_rtl : format_list_bullets,
- title: (0,external_wp_i18n_namespaceObject.__)('Unordered'),
- describedBy: (0,external_wp_i18n_namespaceObject.__)('Convert to unordered list'),
- isActive: ordered === false,
- onClick: () => {
- setAttributes({
- ordered: false
- });
- }
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? format_list_numbered_rtl : format_list_numbered,
- title: (0,external_wp_i18n_namespaceObject.__)('Ordered'),
- describedBy: (0,external_wp_i18n_namespaceObject.__)('Convert to ordered list'),
- isActive: ordered === true,
- onClick: () => {
- setAttributes({
- ordered: true
- });
- }
- }), (0,external_React_namespaceObject.createElement)(IndentUI, {
- clientId: clientId
- }));
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(tag_name, {
- ordered: ordered,
- reversed: reversed,
- start: start,
- ...innerBlocksProps
- }), controls, ordered && (0,external_React_namespaceObject.createElement)(ordered_list_settings, {
- setAttributes,
- reversed,
- start,
- type
- }));
+ const controls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? format_list_bullets_rtl : format_list_bullets,
+ title: (0,external_wp_i18n_namespaceObject.__)('Unordered'),
+ describedBy: (0,external_wp_i18n_namespaceObject.__)('Convert to unordered list'),
+ isActive: ordered === false,
+ onClick: () => {
+ setAttributes({
+ ordered: false
+ });
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? format_list_numbered_rtl : format_list_numbered,
+ title: (0,external_wp_i18n_namespaceObject.__)('Ordered'),
+ describedBy: (0,external_wp_i18n_namespaceObject.__)('Convert to ordered list'),
+ isActive: ordered === true,
+ onClick: () => {
+ setAttributes({
+ ordered: true
+ });
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(IndentUI, {
+ clientId: clientId
+ })]
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tag_name, {
+ ordered: ordered,
+ reversed: reversed,
+ start: start,
+ ...innerBlocksProps
+ }), controls, ordered && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ordered_list_settings, {
+ setAttributes,
+ reversed,
+ start,
+ type
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/save.js
-
/**
* WordPress dependencies
*/
+
function list_save_save({
attributes
}) {
@@ -28915,15 +29757,16 @@ function list_save_save({
start
} = attributes;
const TagName = ordered ? 'ol' : 'ul';
- return (0,external_React_namespaceObject.createElement)(TagName, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
reversed,
start,
style: {
listStyleType: ordered && type !== 'decimal' ? type : undefined
}
- })
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null));
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/transforms.js
@@ -29095,7 +29938,7 @@ const list_metadata = {
},
supports: {
anchor: true,
- className: false,
+ html: false,
typography: {
fontSize: true,
lineHeight: true,
@@ -29126,7 +29969,6 @@ const list_metadata = {
}
},
__unstablePasteTextInline: true,
- __experimentalSelector: "ol,ul",
__experimentalOnMerge: true,
__experimentalSlashInserter: true,
interactivity: {
@@ -29185,45 +30027,48 @@ const list_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/list-item.js
-
/**
* WordPress dependencies
*/
-const listItem = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const listItem = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
+ })
+});
/* harmony default export */ const list_item = (listItem);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-indent-rtl.js
-
/**
* WordPress dependencies
*/
-const formatIndentRTL = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const formatIndentRTL = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const format_indent_rtl = (formatIndentRTL);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-indent.js
-
/**
* WordPress dependencies
*/
-const formatIndent = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const formatIndent = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const format_indent = (formatIndent);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list-item/hooks/use-indent-list-item.js
@@ -29276,6 +30121,7 @@ function useIndentListItem(clientId) {
} else {
multiSelect(clonedBlocks[0].clientId, clonedBlocks[clonedBlocks.length - 1].clientId);
}
+ return true;
}, [clientId]);
}
@@ -29307,23 +30153,33 @@ function useOutdentListItem() {
function getParentListItemId(id) {
const listId = getBlockRootClientId(id);
const parentListItemId = getBlockRootClientId(listId);
- if (!parentListItemId) return;
- if (getBlockName(parentListItemId) !== 'core/list-item') return;
+ if (!parentListItemId) {
+ return;
+ }
+ if (getBlockName(parentListItemId) !== 'core/list-item') {
+ return;
+ }
return parentListItemId;
}
return (0,external_wp_element_namespaceObject.useCallback)((clientIds = getSelectedBlockClientIds()) => {
if (!Array.isArray(clientIds)) {
clientIds = [clientIds];
}
- if (!clientIds.length) return;
+ if (!clientIds.length) {
+ return;
+ }
const firstClientId = clientIds[0];
// Can't outdent if it's not a list item.
- if (getBlockName(firstClientId) !== 'core/list-item') return;
+ if (getBlockName(firstClientId) !== 'core/list-item') {
+ return;
+ }
const parentListItemId = getParentListItemId(firstClientId);
// Can't outdent if it's at the top level.
- if (!parentListItemId) return;
+ if (!parentListItemId) {
+ return;
+ }
const parentListId = getBlockRootClientId(firstClientId);
const lastClientId = clientIds[clientIds.length - 1];
const order = getBlockOrder(parentListId);
@@ -29347,6 +30203,7 @@ function useOutdentListItem() {
removeBlock(parentListId, shouldSelectParent);
}
});
+ return true;
}, []);
}
@@ -29437,6 +30294,7 @@ function use_enter_useEnter(props) {
* Internal dependencies
*/
+
function useSpace(clientId) {
const {
getSelectionStart,
@@ -29444,6 +30302,7 @@ function useSpace(clientId) {
getBlockIndex
} = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
const indentListItem = useIndentListItem(clientId);
+ const outdentListItem = useOutdentListItem();
return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
function onKeyDown(event) {
const {
@@ -29453,19 +30312,26 @@ function useSpace(clientId) {
metaKey,
ctrlKey
} = event;
- if (event.defaultPrevented || keyCode !== external_wp_keycodes_namespaceObject.SPACE ||
+ if (event.defaultPrevented || keyCode !== external_wp_keycodes_namespaceObject.SPACE && keyCode !== external_wp_keycodes_namespaceObject.TAB ||
// Only override when no modifiers are pressed.
- shiftKey || altKey || metaKey || ctrlKey) {
- return;
- }
- if (getBlockIndex(clientId) === 0) {
+ altKey || metaKey || ctrlKey) {
return;
}
const selectionStart = getSelectionStart();
const selectionEnd = getSelectionEnd();
if (selectionStart.offset === 0 && selectionEnd.offset === 0) {
- event.preventDefault();
- indentListItem();
+ if (shiftKey) {
+ // Note that backspace behaviour in defined in onMerge.
+ if (keyCode === external_wp_keycodes_namespaceObject.TAB) {
+ if (outdentListItem()) {
+ event.preventDefault();
+ }
+ }
+ } else if (getBlockIndex(clientId) !== 0) {
+ if (indentListItem()) {
+ event.preventDefault();
+ }
+ }
}
}
element.addEventListener('keydown', onKeyDown);
@@ -29475,39 +30341,6 @@ function useSpace(clientId) {
}, [clientId, indentListItem]);
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list-item/hooks/use-split.js
-/**
- * WordPress dependencies
- */
-
-
-
-
-function useSplit(clientId) {
- // We can not rely on the isAfterOriginal parameter of the callback,
- // because if the value after the split is empty isAfterOriginal is false
- // while the value is in fact after the original. So to avoid that issue we use
- // a flag where the first execution of the callback is false (it is the before value)
- // and the second execution is true, it is the after value.
- const isAfter = (0,external_wp_element_namespaceObject.useRef)(false);
- const {
- getBlock
- } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
- return (0,external_wp_element_namespaceObject.useCallback)(value => {
- const block = getBlock(clientId);
- if (isAfter.current) {
- return (0,external_wp_blocks_namespaceObject.cloneBlock)(block, {
- content: value
- });
- }
- isAfter.current = true;
- return (0,external_wp_blocks_namespaceObject.createBlock)(block.name, {
- ...block.attributes,
- content: value
- });
- }, [clientId, getBlock]);
-}
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list-item/hooks/use-merge.js
/**
* WordPress dependencies
@@ -29543,8 +30376,12 @@ function useMerge(clientId, onMerge) {
function getParentListItemId(id) {
const listId = getBlockRootClientId(id);
const parentListItemId = getBlockRootClientId(listId);
- if (!parentListItemId) return;
- if (getBlockName(parentListItemId) !== 'core/list-item') return;
+ if (!parentListItemId) {
+ return;
+ }
+ if (getBlockName(parentListItemId) !== 'core/list-item') {
+ return;
+ }
return parentListItemId;
}
@@ -29557,9 +30394,13 @@ function useMerge(clientId, onMerge) {
*/
function _getNextId(id) {
const next = getNextBlockClientId(id);
- if (next) return next;
+ if (next) {
+ return next;
+ }
const parentListItemId = getParentListItemId(id);
- if (!parentListItemId) return;
+ if (!parentListItemId) {
+ return;
+ }
return _getNextId(parentListItemId);
}
@@ -29591,7 +30432,14 @@ function useMerge(clientId, onMerge) {
// list.
const [nestedListClientId] = getBlockOrder(clientIdB);
if (nestedListClientId) {
- moveBlocksToPosition(getBlockOrder(nestedListClientId), nestedListClientId, getBlockRootClientId(clientIdA));
+ // If we are merging with the previous list item, and the
+ // previous list item does not have nested list, move the
+ // nested list to the previous list item.
+ if (getPreviousBlockClientId(clientIdB) === clientIdA && !getBlockOrder(clientIdA).length) {
+ moveBlocksToPosition([nestedListClientId], clientIdB, clientIdA);
+ } else {
+ moveBlocksToPosition(getBlockOrder(nestedListClientId), nestedListClientId, getBlockRootClientId(clientIdA));
+ }
}
mergeBlocks(clientIdA, clientIdB);
});
@@ -29623,42 +30471,7 @@ function useMerge(clientId, onMerge) {
};
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list-item/utils.js
-/**
- * WordPress dependencies
- */
-
-function convertBlockToList(block) {
- const list = (0,external_wp_blocks_namespaceObject.switchToBlockType)(block, 'core/list');
- if (list) {
- return list;
- }
- const paragraph = (0,external_wp_blocks_namespaceObject.switchToBlockType)(block, 'core/paragraph');
- if (!paragraph) {
- return null;
- }
- return (0,external_wp_blocks_namespaceObject.switchToBlockType)(paragraph, 'core/list');
-}
-function convertToListItems(blocks) {
- const listItems = [];
- for (let block of blocks) {
- if (block.name === 'core/list-item') {
- listItems.push(block);
- } else if (block.name === 'core/list') {
- listItems.push(...block.innerBlocks);
- } else if (block = convertBlockToList(block)) {
- for (const {
- innerBlocks
- } of block) {
- listItems.push(...innerBlocks);
- }
- }
- }
- return listItems;
-}
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list-item/edit.js
-
/**
* WordPress dependencies
*/
@@ -29674,6 +30487,8 @@ function convertToListItems(blocks) {
*/
+
+
function edit_IndentUI({
clientId
}) {
@@ -29693,24 +30508,25 @@ function edit_IndentUI({
canOutdent: getBlockName(getBlockRootClientId(getBlockRootClientId(clientId))) === 'core/list-item'
};
}, [clientId]);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? format_outdent_rtl : format_outdent,
- title: (0,external_wp_i18n_namespaceObject.__)('Outdent'),
- describedBy: (0,external_wp_i18n_namespaceObject.__)('Outdent list item'),
- disabled: !canOutdent,
- onClick: () => outdentListItem()
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? format_indent_rtl : format_indent,
- title: (0,external_wp_i18n_namespaceObject.__)('Indent'),
- describedBy: (0,external_wp_i18n_namespaceObject.__)('Indent list item'),
- isDisabled: !canIndent,
- onClick: () => indentListItem()
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? format_outdent_rtl : format_outdent,
+ title: (0,external_wp_i18n_namespaceObject.__)('Outdent'),
+ describedBy: (0,external_wp_i18n_namespaceObject.__)('Outdent list item'),
+ disabled: !canOutdent,
+ onClick: () => outdentListItem()
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? format_indent_rtl : format_indent,
+ title: (0,external_wp_i18n_namespaceObject.__)('Indent'),
+ describedBy: (0,external_wp_i18n_namespaceObject.__)('Indent list item'),
+ isDisabled: !canIndent,
+ onClick: () => indentListItem()
+ })]
+ });
}
function ListItemEdit({
attributes,
setAttributes,
- onReplace,
clientId,
mergeBlocks
}) {
@@ -29728,46 +30544,47 @@ function ListItemEdit({
clientId
});
const useSpaceRef = useSpace(clientId);
- const onSplit = useSplit(clientId);
const onMerge = useMerge(clientId, mergeBlocks);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("li", {
- ...innerBlocksProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([useEnterRef, useSpaceRef]),
- identifier: "content",
- tagName: "div",
- onChange: nextContent => setAttributes({
- content: nextContent
- }),
- value: content,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('List text'),
- placeholder: placeholder || (0,external_wp_i18n_namespaceObject.__)('List'),
- onSplit: onSplit,
- onMerge: onMerge,
- onReplace: onReplace ? (blocks, ...args) => {
- onReplace(convertToListItems(blocks), ...args);
- } : undefined
- }), innerBlocksProps.children), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(edit_IndentUI, {
- clientId: clientId
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ ...innerBlocksProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([useEnterRef, useSpaceRef]),
+ identifier: "content",
+ tagName: "div",
+ onChange: nextContent => setAttributes({
+ content: nextContent
+ }),
+ value: content,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('List text'),
+ placeholder: placeholder || (0,external_wp_i18n_namespaceObject.__)('List'),
+ onMerge: onMerge
+ }), innerBlocksProps.children]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(edit_IndentUI, {
+ clientId: clientId
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list-item/save.js
-
/**
* WordPress dependencies
*/
+
+
function list_item_save_save({
attributes
}) {
- return (0,external_React_namespaceObject.createElement)("li", {
- ...external_wp_blockEditor_namespaceObject.useBlockProps.save()
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: attributes.content
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save(),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: attributes.content
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list-item/transforms.js
@@ -29818,7 +30635,8 @@ const list_item_metadata = {
},
supports: {
className: false,
- __experimentalSelector: "li",
+ __experimentalSelector: ".wp-block-list > li",
+ splitting: true,
spacing: {
margin: true,
padding: true,
@@ -29873,27 +30691,30 @@ const list_item_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/login.js
-
/**
* WordPress dependencies
*/
-const login = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const login = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"
+ })
+});
/* harmony default export */ const library_login = (login);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/loginout/edit.js
-
/**
* WordPress dependencies
*/
+
+
+
function LoginOutEdit({
attributes,
setAttributes
@@ -29902,29 +30723,36 @@ function LoginOutEdit({
displayLoginAsForm,
redirectToCurrent
} = attributes;
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Display login as form'),
- checked: displayLoginAsForm,
- onChange: () => setAttributes({
- displayLoginAsForm: !displayLoginAsForm
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Redirect to current URL'),
- checked: redirectToCurrent,
- onChange: () => setAttributes({
- redirectToCurrent: !redirectToCurrent
- })
- }))), (0,external_React_namespaceObject.createElement)("div", {
- ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: 'logged-in'
- })
- }, (0,external_React_namespaceObject.createElement)("a", {
- href: "#login-pseudo-link"
- }, (0,external_wp_i18n_namespaceObject.__)('Log out'))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Display login as form'),
+ checked: displayLoginAsForm,
+ onChange: () => setAttributes({
+ displayLoginAsForm: !displayLoginAsForm
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Redirect to current URL'),
+ checked: redirectToCurrent,
+ onChange: () => setAttributes({
+ redirectToCurrent: !redirectToCurrent
+ })
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)({
+ className: 'logged-in'
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: "#login-pseudo-link",
+ children: (0,external_wp_i18n_namespaceObject.__)('Log out')
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/loginout/index.js
@@ -30000,17 +30828,18 @@ const loginout_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/media-and-text.js
-
/**
* WordPress dependencies
*/
-const mediaAndText = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const mediaAndText = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"
+ })
+});
/* harmony default export */ const media_and_text = (mediaAndText);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/constants.js
@@ -30027,7 +30856,6 @@ const constants_TEMPLATE = [['core/paragraph', {
}]];
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/deprecated.js
-
/**
* External dependencies
*/
@@ -30043,6 +30871,8 @@ const constants_TEMPLATE = [['core/paragraph', {
* Internal dependencies
*/
+
+
const v1ToV5ImageFillStyles = (url, focalPoint) => {
return url ? {
backgroundImage: `url(${url})`,
@@ -30271,31 +31101,32 @@ const media_text_deprecated_v6 = {
} = attributes;
const mediaSizeSlug = attributes.mediaSizeSlug || DEFAULT_MEDIA_SIZE_SLUG;
const newRel = !rel ? undefined : rel;
- const imageClasses = classnames_default()({
+ const imageClasses = dist_clsx({
[`wp-image-${mediaId}`]: mediaId && mediaType === 'image',
[`size-${mediaSizeSlug}`]: mediaId && mediaType === 'image'
});
- let image = (0,external_React_namespaceObject.createElement)("img", {
+ let image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
src: mediaUrl,
alt: mediaAlt,
className: imageClasses || null
});
if (href) {
- image = (0,external_React_namespaceObject.createElement)("a", {
+ image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
className: linkClass,
href: href,
target: linkTarget,
- rel: newRel
- }, image);
+ rel: newRel,
+ children: image
+ });
}
const mediaTypeRenders = {
image: () => image,
- video: () => (0,external_React_namespaceObject.createElement)("video", {
+ video: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
controls: true,
src: mediaUrl
})
};
- const className = classnames_default()({
+ const className = dist_clsx({
'has-media-on-the-right': 'right' === mediaPosition,
'is-stacked-on-mobile': isStackedOnMobile,
[`is-vertically-aligned-${verticalAlignment}`]: verticalAlignment,
@@ -30310,33 +31141,37 @@ const media_text_deprecated_v6 = {
gridTemplateColumns
};
if ('right' === mediaPosition) {
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className,
style
- })
- }, (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
- className: 'wp-block-media-text__content'
- })
- }), (0,external_React_namespaceObject.createElement)("figure", {
- className: "wp-block-media-text__media",
- style: backgroundStyles
- }, (mediaTypeRenders[mediaType] || noop)()));
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
+ className: 'wp-block-media-text__content'
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
+ className: "wp-block-media-text__media",
+ style: backgroundStyles,
+ children: (mediaTypeRenders[mediaType] || noop)()
+ })]
+ });
}
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className,
style
- })
- }, (0,external_React_namespaceObject.createElement)("figure", {
- className: "wp-block-media-text__media",
- style: backgroundStyles
- }, (mediaTypeRenders[mediaType] || noop)()), (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
- className: 'wp-block-media-text__content'
- })
- }));
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
+ className: "wp-block-media-text__media",
+ style: backgroundStyles,
+ children: (mediaTypeRenders[mediaType] || noop)()
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
+ className: 'wp-block-media-text__content'
+ })
+ })]
+ });
},
migrate: migrateDefaultAlign,
isEligible(attributes, innerBlocks, {
@@ -30383,31 +31218,32 @@ const media_text_deprecated_v5 = {
} = attributes;
const mediaSizeSlug = attributes.mediaSizeSlug || DEFAULT_MEDIA_SIZE_SLUG;
const newRel = !rel ? undefined : rel;
- const imageClasses = classnames_default()({
+ const imageClasses = dist_clsx({
[`wp-image-${mediaId}`]: mediaId && mediaType === 'image',
[`size-${mediaSizeSlug}`]: mediaId && mediaType === 'image'
});
- let image = (0,external_React_namespaceObject.createElement)("img", {
+ let image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
src: mediaUrl,
alt: mediaAlt,
className: imageClasses || null
});
if (href) {
- image = (0,external_React_namespaceObject.createElement)("a", {
+ image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
className: linkClass,
href: href,
target: linkTarget,
- rel: newRel
- }, image);
+ rel: newRel,
+ children: image
+ });
}
const mediaTypeRenders = {
image: () => image,
- video: () => (0,external_React_namespaceObject.createElement)("video", {
+ video: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
controls: true,
src: mediaUrl
})
};
- const className = classnames_default()({
+ const className = dist_clsx({
'has-media-on-the-right': 'right' === mediaPosition,
'is-stacked-on-mobile': isStackedOnMobile,
[`is-vertically-aligned-${verticalAlignment}`]: verticalAlignment,
@@ -30422,33 +31258,37 @@ const media_text_deprecated_v5 = {
gridTemplateColumns
};
if ('right' === mediaPosition) {
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className,
style
- })
- }, (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
- className: 'wp-block-media-text__content'
- })
- }), (0,external_React_namespaceObject.createElement)("figure", {
- className: "wp-block-media-text__media",
- style: backgroundStyles
- }, (mediaTypeRenders[mediaType] || noop)()));
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
+ className: 'wp-block-media-text__content'
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
+ className: "wp-block-media-text__media",
+ style: backgroundStyles,
+ children: (mediaTypeRenders[mediaType] || noop)()
+ })]
+ });
}
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className,
style
- })
- }, (0,external_React_namespaceObject.createElement)("figure", {
- className: "wp-block-media-text__media",
- style: backgroundStyles
- }, (mediaTypeRenders[mediaType] || noop)()), (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
- className: 'wp-block-media-text__content'
- })
- }));
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
+ className: "wp-block-media-text__media",
+ style: backgroundStyles,
+ children: (mediaTypeRenders[mediaType] || noop)()
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
+ className: 'wp-block-media-text__content'
+ })
+ })]
+ });
},
migrate: migrateDefaultAlign
};
@@ -30479,31 +31319,32 @@ const media_text_deprecated_v4 = {
} = attributes;
const mediaSizeSlug = attributes.mediaSizeSlug || DEFAULT_MEDIA_SIZE_SLUG;
const newRel = !rel ? undefined : rel;
- const imageClasses = classnames_default()({
+ const imageClasses = dist_clsx({
[`wp-image-${mediaId}`]: mediaId && mediaType === 'image',
[`size-${mediaSizeSlug}`]: mediaId && mediaType === 'image'
});
- let image = (0,external_React_namespaceObject.createElement)("img", {
+ let image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
src: mediaUrl,
alt: mediaAlt,
className: imageClasses || null
});
if (href) {
- image = (0,external_React_namespaceObject.createElement)("a", {
+ image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
className: linkClass,
href: href,
target: linkTarget,
- rel: newRel
- }, image);
+ rel: newRel,
+ children: image
+ });
}
const mediaTypeRenders = {
image: () => image,
- video: () => (0,external_React_namespaceObject.createElement)("video", {
+ video: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
controls: true,
src: mediaUrl
})
};
- const className = classnames_default()({
+ const className = dist_clsx({
'has-media-on-the-right': 'right' === mediaPosition,
'is-stacked-on-mobile': isStackedOnMobile,
[`is-vertically-aligned-${verticalAlignment}`]: verticalAlignment,
@@ -30517,19 +31358,21 @@ const media_text_deprecated_v4 = {
const style = {
gridTemplateColumns
};
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className,
style
- })
- }, (0,external_React_namespaceObject.createElement)("figure", {
- className: "wp-block-media-text__media",
- style: backgroundStyles
- }, (mediaTypeRenders[mediaType] || noop)()), (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
- className: 'wp-block-media-text__content'
- })
- }));
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
+ className: "wp-block-media-text__media",
+ style: backgroundStyles,
+ children: (mediaTypeRenders[mediaType] || noop)()
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
+ className: 'wp-block-media-text__content'
+ })
+ })]
+ });
},
migrate: migrateDefaultAlign
};
@@ -30612,28 +31455,29 @@ const media_text_deprecated_v3 = {
rel
} = attributes;
const newRel = !rel ? undefined : rel;
- let image = (0,external_React_namespaceObject.createElement)("img", {
+ let image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
src: mediaUrl,
alt: mediaAlt,
className: mediaId && mediaType === 'image' ? `wp-image-${mediaId}` : null
});
if (href) {
- image = (0,external_React_namespaceObject.createElement)("a", {
+ image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
className: linkClass,
href: href,
target: linkTarget,
- rel: newRel
- }, image);
+ rel: newRel,
+ children: image
+ });
}
const mediaTypeRenders = {
image: () => image,
- video: () => (0,external_React_namespaceObject.createElement)("video", {
+ video: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
controls: true,
src: mediaUrl
})
};
const backgroundClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('background-color', backgroundColor);
- const className = classnames_default()({
+ const className = dist_clsx({
'has-media-on-the-right': 'right' === mediaPosition,
'has-background': backgroundClass || customBackgroundColor,
[backgroundClass]: backgroundClass,
@@ -30650,15 +31494,18 @@ const media_text_deprecated_v3 = {
backgroundColor: backgroundClass ? undefined : customBackgroundColor,
gridTemplateColumns
};
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: className,
- style: style
- }, (0,external_React_namespaceObject.createElement)("figure", {
- className: "wp-block-media-text__media",
- style: backgroundStyles
- }, (mediaTypeRenders[mediaType] || noop)()), (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-media-text__content"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)));
+ style: style,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
+ className: "wp-block-media-text__media",
+ style: backgroundStyles,
+ children: (mediaTypeRenders[mediaType] || noop)()
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-media-text__content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ })]
+ });
}
};
@@ -30708,18 +31555,18 @@ const media_text_deprecated_v2 = {
focalPoint
} = attributes;
const mediaTypeRenders = {
- image: () => (0,external_React_namespaceObject.createElement)("img", {
+ image: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
src: mediaUrl,
alt: mediaAlt,
className: mediaId && mediaType === 'image' ? `wp-image-${mediaId}` : null
}),
- video: () => (0,external_React_namespaceObject.createElement)("video", {
+ video: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
controls: true,
src: mediaUrl
})
};
const backgroundClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('background-color', backgroundColor);
- const className = classnames_default()({
+ const className = dist_clsx({
'has-media-on-the-right': 'right' === mediaPosition,
[backgroundClass]: backgroundClass,
'is-stacked-on-mobile': isStackedOnMobile,
@@ -30735,15 +31582,18 @@ const media_text_deprecated_v2 = {
backgroundColor: backgroundClass ? undefined : customBackgroundColor,
gridTemplateColumns
};
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: className,
- style: style
- }, (0,external_React_namespaceObject.createElement)("figure", {
- className: "wp-block-media-text__media",
- style: backgroundStyles
- }, (mediaTypeRenders[mediaType] || noop)()), (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-media-text__content"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)));
+ style: style,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
+ className: "wp-block-media-text__media",
+ style: backgroundStyles,
+ children: (mediaTypeRenders[mediaType] || noop)()
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-media-text__content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ })]
+ });
}
};
@@ -30780,17 +31630,17 @@ const media_text_deprecated_v1 = {
mediaWidth
} = attributes;
const mediaTypeRenders = {
- image: () => (0,external_React_namespaceObject.createElement)("img", {
+ image: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
src: mediaUrl,
alt: mediaAlt
}),
- video: () => (0,external_React_namespaceObject.createElement)("video", {
+ video: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
controls: true,
src: mediaUrl
})
};
const backgroundClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('background-color', backgroundColor);
- const className = classnames_default()({
+ const className = dist_clsx({
'has-media-on-the-right': 'right' === mediaPosition,
[backgroundClass]: backgroundClass,
'is-stacked-on-mobile': isStackedOnMobile
@@ -30803,66 +31653,72 @@ const media_text_deprecated_v1 = {
backgroundColor: backgroundClass ? undefined : customBackgroundColor,
gridTemplateColumns
};
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: className,
- style: style
- }, (0,external_React_namespaceObject.createElement)("figure", {
- className: "wp-block-media-text__media"
- }, (mediaTypeRenders[mediaType] || noop)()), (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-media-text__content"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)));
+ style: style,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
+ className: "wp-block-media-text__media",
+ children: (mediaTypeRenders[mediaType] || noop)()
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-media-text__content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ })]
+ });
}
};
/* harmony default export */ const media_text_deprecated = ([media_text_deprecated_v6, media_text_deprecated_v5, media_text_deprecated_v4, media_text_deprecated_v3, media_text_deprecated_v2, media_text_deprecated_v1]);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pull-left.js
-
/**
* WordPress dependencies
*/
-const pullLeft = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const pullLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"
+ })
+});
/* harmony default export */ const pull_left = (pullLeft);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pull-right.js
-
/**
* WordPress dependencies
*/
-const pullRight = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const pullRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"
+ })
+});
/* harmony default export */ const pull_right = (pullRight);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/media.js
-
/**
* WordPress dependencies
*/
-const media = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const media = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m7 6.5 4 2.5-4 2.5z"
-}), (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m7 6.5 4 2.5-4 2.5z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"
+ })]
+});
/* harmony default export */ const library_media = (media);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/media-container.js
-
/**
* External dependencies
*/
@@ -30884,6 +31740,8 @@ const media = (0,external_React_namespaceObject.createElement)(external_wp_primi
/**
* Constants
*/
+
+
const media_container_ALLOWED_MEDIA_TYPES = ['image', 'video'];
const media_container_noop = () => {};
function imageFillStyles(url, focalPoint) {
@@ -30898,7 +31756,7 @@ const ResizableBoxContainer = (0,external_wp_element_namespaceObject.forwardRef)
...props
}, ref) => {
const isMobile = (0,external_wp_compose_namespaceObject.useViewportMatch)('small', '<');
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ResizableBox, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ResizableBox, {
ref: ref,
showHandle: isSelected && (!isMobile || !isStackedOnMobile),
...props
@@ -30907,22 +31765,29 @@ const ResizableBoxContainer = (0,external_wp_element_namespaceObject.forwardRef)
function ToolbarEditButton({
mediaId,
mediaUrl,
- onSelectMedia
+ onSelectMedia,
+ toggleUseFeaturedImage,
+ useFeaturedImage,
+ featuredImageURL
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "other"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, {
- mediaId: mediaId,
- mediaURL: mediaUrl,
- allowedTypes: media_container_ALLOWED_MEDIA_TYPES,
- accept: "image/*,video/*",
- onSelect: onSelectMedia
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "other",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, {
+ mediaId: mediaId,
+ mediaUrl: useFeaturedImage && featuredImageURL ? featuredImageURL : mediaUrl,
+ allowedTypes: media_container_ALLOWED_MEDIA_TYPES,
+ accept: "image/*,video/*",
+ onSelect: onSelectMedia,
+ onToggleFeaturedImage: toggleUseFeaturedImage,
+ useFeaturedImage: useFeaturedImage
+ })
+ });
}
function PlaceholderContainer({
className,
mediaUrl,
- onSelectMedia
+ onSelectMedia,
+ toggleUseFeaturedImage
}) {
const {
createErrorNotice
@@ -30932,8 +31797,8 @@ function PlaceholderContainer({
type: 'snackbar'
});
};
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
- icon: (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
icon: library_media
}),
labels: {
@@ -30942,6 +31807,7 @@ function PlaceholderContainer({
className: className,
onSelect: onSelectMedia,
accept: "image/*,video/*",
+ onToggleFeaturedImage: toggleUseFeaturedImage,
allowedTypes: media_container_ALLOWED_MEDIA_TYPES,
onError: onUploadError,
disableMediaButtons: mediaUrl
@@ -30963,13 +31829,17 @@ function MediaContainer(props, ref) {
mediaWidth,
onSelectMedia,
onWidthChange,
- enableResize
+ enableResize,
+ toggleUseFeaturedImage,
+ useFeaturedImage,
+ featuredImageURL,
+ featuredImageAlt
} = props;
const isTemporaryMedia = !mediaId && (0,external_wp_blob_namespaceObject.isBlobURL)(mediaUrl);
const {
toggleSelection
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- if (mediaUrl) {
+ if (mediaUrl || featuredImageURL || useFeaturedImage) {
const onResizeStart = () => {
toggleSelection(false);
};
@@ -30984,20 +31854,23 @@ function MediaContainer(props, ref) {
right: enableResize && mediaPosition === 'left',
left: enableResize && mediaPosition === 'right'
};
- const backgroundStyles = mediaType === 'image' && imageFill ? imageFillStyles(mediaUrl, focalPoint) : {};
+ const backgroundStyles = mediaType === 'image' && imageFill ? imageFillStyles(mediaUrl || featuredImageURL, focalPoint) : {};
const mediaTypeRenderers = {
- image: () => (0,external_React_namespaceObject.createElement)("img", {
+ image: () => useFeaturedImage && featuredImageURL ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: featuredImageURL,
+ alt: featuredImageAlt
+ }) : mediaUrl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
src: mediaUrl,
alt: mediaAlt
}),
- video: () => (0,external_React_namespaceObject.createElement)("video", {
+ video: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
controls: true,
src: mediaUrl
})
};
- return (0,external_React_namespaceObject.createElement)(ResizableBoxContainer, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ResizableBoxContainer, {
as: "figure",
- className: classnames_default()(className, 'editor-media-container__resizer', {
+ className: dist_clsx(className, 'editor-media-container__resizer', {
'is-transient': isTemporaryMedia
}),
style: backgroundStyles,
@@ -31013,23 +31886,28 @@ function MediaContainer(props, ref) {
axis: "x",
isSelected: isSelected,
isStackedOnMobile: isStackedOnMobile,
- ref: ref
- }, (0,external_React_namespaceObject.createElement)(ToolbarEditButton, {
- onSelectMedia: onSelectMedia,
- mediaUrl: mediaUrl,
- mediaId: mediaId
- }), (mediaTypeRenderers[mediaType] || media_container_noop)(), isTemporaryMedia && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null), (0,external_React_namespaceObject.createElement)(PlaceholderContainer, {
- ...props
- }));
- }
- return (0,external_React_namespaceObject.createElement)(PlaceholderContainer, {
+ ref: ref,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ToolbarEditButton, {
+ onSelectMedia: onSelectMedia,
+ mediaUrl: useFeaturedImage && featuredImageURL ? featuredImageURL : mediaUrl,
+ mediaId: mediaId,
+ toggleUseFeaturedImage: toggleUseFeaturedImage,
+ useFeaturedImage: useFeaturedImage
+ }), (mediaTypeRenderers[mediaType] || media_container_noop)(), isTemporaryMedia && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}), !useFeaturedImage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PlaceholderContainer, {
+ ...props
+ }), !featuredImageURL && useFeaturedImage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ className: "wp-block-media-text--placeholder-image",
+ withIllustration: true
+ })]
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PlaceholderContainer, {
...props
});
}
/* harmony default export */ const media_container = ((0,external_wp_element_namespaceObject.forwardRef)(MediaContainer));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/edit.js
-
/**
* External dependencies
*/
@@ -31053,6 +31931,14 @@ function MediaContainer(props, ref) {
+
+
+
+
+const {
+ ResolutionTool: edit_ResolutionTool
+} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+
// this limits the resize to a safe zone to avoid making broken layouts
const applyWidthConstraints = width => Math.max(WIDTH_CONSTRAINT_PERCENTAGE, Math.min(width, 100 - WIDTH_CONSTRAINT_PERCENTAGE));
function getImageSourceUrlBySizeSlug(image, slug) {
@@ -31128,7 +32014,11 @@ function edit_attributesFromMedia({
function MediaTextEdit({
attributes,
isSelected,
- setAttributes
+ setAttributes,
+ context: {
+ postId,
+ postType
+ }
}) {
const {
focalPoint,
@@ -31146,9 +32036,32 @@ function MediaTextEdit({
mediaWidth,
rel,
verticalAlignment,
- allowedBlocks
+ allowedBlocks,
+ useFeaturedImage
} = attributes;
const mediaSizeSlug = attributes.mediaSizeSlug || DEFAULT_MEDIA_SIZE_SLUG;
+ const [featuredImage] = (0,external_wp_coreData_namespaceObject.useEntityProp)('postType', postType, 'featured_media', postId);
+ const featuredImageMedia = (0,external_wp_data_namespaceObject.useSelect)(select => featuredImage && select(external_wp_coreData_namespaceObject.store).getMedia(featuredImage, {
+ context: 'view'
+ }), [featuredImage]);
+ const featuredImageURL = useFeaturedImage ? featuredImageMedia?.source_url : '';
+ const featuredImageAlt = useFeaturedImage ? featuredImageMedia?.alt_text : '';
+ const toggleUseFeaturedImage = () => {
+ setAttributes({
+ imageFill: false,
+ mediaType: 'image',
+ mediaId: undefined,
+ mediaUrl: undefined,
+ mediaAlt: undefined,
+ mediaLink: undefined,
+ linkDestination: undefined,
+ linkTarget: undefined,
+ linkClass: undefined,
+ rel: undefined,
+ href: undefined,
+ useFeaturedImage: !useFeaturedImage
+ });
+ };
const {
imageSizes,
image
@@ -31191,7 +32104,7 @@ function MediaTextEdit({
});
setTemporaryMediaWidth(null);
};
- const classNames = classnames_default()({
+ const classNames = dist_clsx({
'has-media-on-the-right': 'right' === mediaPosition,
'is-selected': isSelected,
'is-stacked-on-mobile': isStackedOnMobile,
@@ -31233,56 +32146,112 @@ function MediaTextEdit({
mediaSizeSlug: newMediaSizeSlug
});
};
- const mediaTextGeneralSettings = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Media width'),
- value: temporaryMediaWidth || mediaWidth,
- onChange: commitWidthChange,
- min: WIDTH_CONSTRAINT_PERCENTAGE,
- max: 100 - WIDTH_CONSTRAINT_PERCENTAGE
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Stack on mobile'),
- checked: isStackedOnMobile,
- onChange: () => setAttributes({
- isStackedOnMobile: !isStackedOnMobile
- })
- }), mediaType === 'image' && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Crop image to fill'),
- checked: !!imageFill,
- onChange: () => setAttributes({
- imageFill: !imageFill
- })
- }), imageFill && mediaUrl && mediaType === 'image' && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FocalPointPicker, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Focal point'),
- url: mediaUrl,
- value: focalPoint,
- onChange: value => setAttributes({
- focalPoint: value
- }),
- onDragStart: imperativeFocalPointPreview,
- onDrag: imperativeFocalPointPreview
- }), mediaType === 'image' && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextareaControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Alternative text'),
- value: mediaAlt,
- onChange: onMediaAltChange,
- help: (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: "https://www.w3.org/WAI/tutorials/images/decision-tree"
- }, (0,external_wp_i18n_namespaceObject.__)('Describe the purpose of the image.')), (0,external_React_namespaceObject.createElement)("br", null), (0,external_wp_i18n_namespaceObject.__)('Leave empty if decorative.'))
- }), mediaType === 'image' && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalImageSizeControl, {
- onChangeImage: updateImage,
- slug: mediaSizeSlug,
- imageSizeOptions: imageSizeOptions,
- isResizable: false,
- imageSizeHelp: (0,external_wp_i18n_namespaceObject.__)('Select the size of the source image.')
- }));
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
+ const mediaTextGeneralSettings = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ resetAll: () => {
+ setAttributes({
+ isStackedOnMobile: true,
+ imageFill: false,
+ mediaAlt: '',
+ focalPoint: undefined,
+ mediaWidth: 50,
+ mediaSizeSlug: undefined
+ });
+ },
+ dropdownMenuProps: dropdownMenuProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Media width'),
+ isShownByDefault: true,
+ hasValue: () => mediaWidth !== 50,
+ onDeselect: () => setAttributes({
+ mediaWidth: 50
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Media width'),
+ value: temporaryMediaWidth || mediaWidth,
+ onChange: commitWidthChange,
+ min: WIDTH_CONSTRAINT_PERCENTAGE,
+ max: 100 - WIDTH_CONSTRAINT_PERCENTAGE
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Stack on mobile'),
+ isShownByDefault: true,
+ hasValue: () => !isStackedOnMobile,
+ onDeselect: () => setAttributes({
+ isStackedOnMobile: true
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Stack on mobile'),
+ checked: isStackedOnMobile,
+ onChange: () => setAttributes({
+ isStackedOnMobile: !isStackedOnMobile
+ })
+ })
+ }), mediaType === 'image' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Crop image to fill'),
+ isShownByDefault: true,
+ hasValue: () => !!imageFill,
+ onDeselect: () => setAttributes({
+ imageFill: false
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Crop image to fill'),
+ checked: !!imageFill,
+ onChange: () => setAttributes({
+ imageFill: !imageFill
+ })
+ })
+ }), imageFill && (mediaUrl || featuredImageURL) && mediaType === 'image' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Focal point'),
+ isShownByDefault: true,
+ hasValue: () => !!focalPoint,
+ onDeselect: () => setAttributes({
+ focalPoint: undefined
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FocalPointPicker, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Focal point'),
+ url: useFeaturedImage && featuredImageURL ? featuredImageURL : mediaUrl,
+ value: focalPoint,
+ onChange: value => setAttributes({
+ focalPoint: value
+ }),
+ onDragStart: imperativeFocalPointPreview,
+ onDrag: imperativeFocalPointPreview
+ })
+ }), mediaType === 'image' && mediaUrl && !useFeaturedImage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Alternative text'),
+ isShownByDefault: true,
+ hasValue: () => !!mediaAlt,
+ onDeselect: () => setAttributes({
+ mediaAlt: ''
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextareaControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Alternative text'),
+ value: mediaAlt,
+ onChange: onMediaAltChange,
+ help: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href:
+ // translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations.
+ (0,external_wp_i18n_namespaceObject.__)('https://www.w3.org/WAI/tutorials/images/decision-tree/'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Describe the purpose of the image.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("br", {}), (0,external_wp_i18n_namespaceObject.__)('Leave empty if decorative.')]
+ })
+ })
+ }), mediaType === 'image' && !useFeaturedImage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(edit_ResolutionTool, {
+ value: mediaSizeSlug,
+ options: imageSizeOptions,
+ onChange: updateImage
+ })]
+ });
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
className: classNames,
style
@@ -31294,64 +32263,75 @@ function MediaTextEdit({
allowedBlocks
});
const blockEditingMode = (0,external_wp_blockEditor_namespaceObject.useBlockEditingMode)();
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, mediaTextGeneralSettings), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, blockEditingMode === 'default' && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockVerticalAlignmentControl, {
- onChange: onVerticalAlignmentChange,
- value: verticalAlignment
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- icon: pull_left,
- title: (0,external_wp_i18n_namespaceObject.__)('Show media on left'),
- isActive: mediaPosition === 'left',
- onClick: () => setAttributes({
- mediaPosition: 'left'
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- icon: pull_right,
- title: (0,external_wp_i18n_namespaceObject.__)('Show media on right'),
- isActive: mediaPosition === 'right',
- onClick: () => setAttributes({
- mediaPosition: 'right'
- })
- })), mediaType === 'image' && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalImageURLInputUI, {
- url: href || '',
- onChangeUrl: onSetHref,
- linkDestination: linkDestination,
- mediaType: mediaType,
- mediaUrl: image && image.source_url,
- mediaLink: image && image.link,
- linkTarget: linkTarget,
- linkClass: linkClass,
- rel: rel
- })), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, mediaPosition === 'right' && (0,external_React_namespaceObject.createElement)("div", {
- ...innerBlocksProps
- }), (0,external_React_namespaceObject.createElement)(media_container, {
- className: "wp-block-media-text__media",
- onSelectMedia: onSelectMedia,
- onWidthChange: onWidthChange,
- commitWidthChange: commitWidthChange,
- ref: refMediaContainer,
- enableResize: blockEditingMode === 'default',
- focalPoint,
- imageFill,
- isSelected,
- isStackedOnMobile,
- mediaAlt,
- mediaId,
- mediaPosition,
- mediaType,
- mediaUrl,
- mediaWidth
- }), mediaPosition !== 'right' && (0,external_React_namespaceObject.createElement)("div", {
- ...innerBlocksProps
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: mediaTextGeneralSettings
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: [blockEditingMode === 'default' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockVerticalAlignmentControl, {
+ onChange: onVerticalAlignmentChange,
+ value: verticalAlignment
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ icon: pull_left,
+ title: (0,external_wp_i18n_namespaceObject.__)('Show media on left'),
+ isActive: mediaPosition === 'left',
+ onClick: () => setAttributes({
+ mediaPosition: 'left'
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ icon: pull_right,
+ title: (0,external_wp_i18n_namespaceObject.__)('Show media on right'),
+ isActive: mediaPosition === 'right',
+ onClick: () => setAttributes({
+ mediaPosition: 'right'
+ })
+ })]
+ }), mediaType === 'image' && !useFeaturedImage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalImageURLInputUI, {
+ url: href || '',
+ onChangeUrl: onSetHref,
+ linkDestination: linkDestination,
+ mediaType: mediaType,
+ mediaUrl: image && image.source_url,
+ mediaLink: image && image.link,
+ linkTarget: linkTarget,
+ linkClass: linkClass,
+ rel: rel
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...blockProps,
+ children: [mediaPosition === 'right' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...innerBlocksProps
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(media_container, {
+ className: "wp-block-media-text__media",
+ onSelectMedia: onSelectMedia,
+ onWidthChange: onWidthChange,
+ commitWidthChange: commitWidthChange,
+ ref: refMediaContainer,
+ enableResize: blockEditingMode === 'default',
+ toggleUseFeaturedImage: toggleUseFeaturedImage,
+ focalPoint,
+ imageFill,
+ isSelected,
+ isStackedOnMobile,
+ mediaAlt,
+ mediaId,
+ mediaPosition,
+ mediaType,
+ mediaUrl,
+ mediaWidth,
+ useFeaturedImage,
+ featuredImageURL,
+ featuredImageAlt
+ }), mediaPosition !== 'right' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...innerBlocksProps
+ })]
+ })]
+ });
}
/* harmony default export */ const media_text_edit = (MediaTextEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/save.js
-
/**
* External dependencies
*/
@@ -31367,6 +32347,8 @@ function MediaTextEdit({
*/
+
+
const save_DEFAULT_MEDIA_WIDTH = 50;
const save_noop = () => {};
function media_text_save_save({
@@ -31390,31 +32372,32 @@ function media_text_save_save({
} = attributes;
const mediaSizeSlug = attributes.mediaSizeSlug || DEFAULT_MEDIA_SIZE_SLUG;
const newRel = !rel ? undefined : rel;
- const imageClasses = classnames_default()({
+ const imageClasses = dist_clsx({
[`wp-image-${mediaId}`]: mediaId && mediaType === 'image',
[`size-${mediaSizeSlug}`]: mediaId && mediaType === 'image'
});
- let image = (0,external_React_namespaceObject.createElement)("img", {
+ let image = mediaUrl ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
src: mediaUrl,
alt: mediaAlt,
className: imageClasses || null
- });
+ }) : null;
if (href) {
- image = (0,external_React_namespaceObject.createElement)("a", {
+ image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
className: linkClass,
href: href,
target: linkTarget,
- rel: newRel
- }, image);
+ rel: newRel,
+ children: image
+ });
}
const mediaTypeRenders = {
image: () => image,
- video: () => (0,external_React_namespaceObject.createElement)("video", {
+ video: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
controls: true,
src: mediaUrl
})
};
- const className = classnames_default()({
+ const className = dist_clsx({
'has-media-on-the-right': 'right' === mediaPosition,
'is-stacked-on-mobile': isStackedOnMobile,
[`is-vertically-aligned-${verticalAlignment}`]: verticalAlignment,
@@ -31429,33 +32412,37 @@ function media_text_save_save({
gridTemplateColumns
};
if ('right' === mediaPosition) {
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className,
style
- })
- }, (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
- className: 'wp-block-media-text__content'
- })
- }), (0,external_React_namespaceObject.createElement)("figure", {
- className: "wp-block-media-text__media",
- style: backgroundStyles
- }, (mediaTypeRenders[mediaType] || save_noop)()));
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
+ className: 'wp-block-media-text__content'
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
+ className: "wp-block-media-text__media",
+ style: backgroundStyles,
+ children: (mediaTypeRenders[mediaType] || save_noop)()
+ })]
+ });
}
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className,
style
- })
- }, (0,external_React_namespaceObject.createElement)("figure", {
- className: "wp-block-media-text__media",
- style: backgroundStyles
- }, (mediaTypeRenders[mediaType] || save_noop)()), (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
- className: 'wp-block-media-text__content'
- })
- }));
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
+ className: "wp-block-media-text__media",
+ style: backgroundStyles,
+ children: (mediaTypeRenders[mediaType] || save_noop)()
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save({
+ className: 'wp-block-media-text__content'
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/transforms.js
@@ -31754,8 +32741,13 @@ const media_text_metadata = {
},
allowedBlocks: {
type: "array"
+ },
+ useFeaturedImage: {
+ type: "boolean",
+ "default": false
}
},
+ usesContext: ["postId", "postType"],
supports: {
anchor: true,
align: ["wide", "full"],
@@ -31832,7 +32824,6 @@ const media_text_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/missing/edit.js
-
/**
* WordPress dependencies
*/
@@ -31843,6 +32834,8 @@ const media_text_init = () => initBlock({
+
+
function MissingBlockWarning({
attributes,
convertToHTML,
@@ -31868,11 +32861,11 @@ function MissingBlockWarning({
}, [clientId]);
const actions = [];
let messageHTML;
- const convertToHtmlButton = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- key: "convert",
+ const convertToHtmlButton = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
onClick: convertToHTML,
- variant: "primary"
- }, (0,external_wp_i18n_namespaceObject.__)('Keep as HTML'));
+ variant: "primary",
+ children: (0,external_wp_i18n_namespaceObject.__)('Keep as HTML')
+ }, "convert");
if (hasContent && !hasFreeformBlock && !originalName) {
if (hasHTMLBlock) {
messageHTML = (0,external_wp_i18n_namespaceObject.__)('It appears you are trying to use the deprecated Classic block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely. Alternatively, you can refresh the page to use the Classic block.');
@@ -31888,13 +32881,17 @@ function MissingBlockWarning({
messageHTML = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: block name */
(0,external_wp_i18n_namespaceObject.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'), originalName);
}
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
...(0,external_wp_blockEditor_namespaceObject.useBlockProps)({
className: 'has-warning'
- })
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, {
- actions: actions
- }, messageHTML), (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, (0,external_wp_dom_namespaceObject.safeHTML)(originalUndelimitedContent)));
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ actions: actions,
+ children: messageHTML
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
+ children: (0,external_wp_dom_namespaceObject.safeHTML)(originalUndelimitedContent)
+ })]
+ });
}
const MissingEdit = (0,external_wp_data_namespaceObject.withDispatch)((dispatch, {
clientId,
@@ -31914,16 +32911,18 @@ const MissingEdit = (0,external_wp_data_namespaceObject.withDispatch)((dispatch,
/* harmony default export */ const missing_edit = (MissingEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/missing/save.js
-
/**
* WordPress dependencies
*/
+
function missing_save_save({
attributes
}) {
// Preserve the missing block's content.
- return (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, attributes.originalContent);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
+ children: attributes.originalContent
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/missing/index.js
@@ -31999,21 +32998,21 @@ const missing_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/more.js
-
/**
* WordPress dependencies
*/
-const more = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const more = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"
+ })
+});
/* harmony default export */ const library_more = (more);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/edit.js
-
/**
* WordPress dependencies
*/
@@ -32022,6 +33021,9 @@ const more = (0,external_React_namespaceObject.createElement)(external_wp_primit
+
+
+
const DEFAULT_TEXT = (0,external_wp_i18n_namespaceObject.__)('Read more');
function MoreEdit({
attributes: {
@@ -32033,7 +33035,7 @@ function MoreEdit({
}) {
const onChangeInput = event => {
setAttributes({
- customText: event.target.value !== '' ? event.target.value : undefined
+ customText: event.target.value
});
};
const onKeyDown = ({
@@ -32050,31 +33052,38 @@ function MoreEdit({
const style = {
width: `${(customText ? customText : DEFAULT_TEXT).length + 1.2}em`
};
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Hide the excerpt on the full content page'),
- checked: !!noTeaser,
- onChange: toggleHideExcerpt,
- help: getHideExcerptHelp
- }))), (0,external_React_namespaceObject.createElement)("div", {
- ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)()
- }, (0,external_React_namespaceObject.createElement)("input", {
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('“Read more” link text'),
- type: "text",
- value: customText,
- placeholder: DEFAULT_TEXT,
- onChange: onChangeInput,
- onKeyDown: onKeyDown,
- style: style
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Hide the excerpt on the full content page'),
+ checked: !!noTeaser,
+ onChange: toggleHideExcerpt,
+ help: getHideExcerptHelp
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)(),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('“Read more” link text'),
+ type: "text",
+ value: customText,
+ placeholder: DEFAULT_TEXT,
+ onChange: onChangeInput,
+ onKeyDown: onKeyDown,
+ style: style
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/save.js
-
/**
* WordPress dependencies
*/
+
function more_save_save({
attributes: {
customText,
@@ -32083,7 +33092,9 @@ function more_save_save({
}) {
const moreTag = customText ? `<!--more ${customText}-->` : '<!--more-->';
const noTeaserTag = noTeaser ? '<!--noteaser-->' : '';
- return (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, [moreTag, noTeaserTag].filter(Boolean).join('\n'));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
+ children: [moreTag, noTeaserTag].filter(Boolean).join('\n')
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/transforms.js
@@ -32142,7 +33153,8 @@ const more_metadata = {
textdomain: "default",
attributes: {
customText: {
- type: "string"
+ type: "string",
+ "default": ""
},
noTeaser: {
type: "boolean",
@@ -32191,17 +33203,18 @@ const more_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/navigation.js
-
/**
* WordPress dependencies
*/
-const navigation = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const navigation = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"
+ })
+});
/* harmony default export */ const library_navigation = (navigation);
;// CONCATENATED MODULE: external ["wp","a11y"]
@@ -32239,17 +33252,18 @@ function Icon({
/* harmony default export */ const build_module_icon = ((0,external_wp_element_namespaceObject.forwardRef)(Icon));
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
-
/**
* WordPress dependencies
*/
-const close_close = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const close_close = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const library_close = (close_close);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/constants.js
@@ -32291,11 +33305,14 @@ function useNavigationMenu(ref) {
return selectExistingMenu(select, ref);
}, [ref]);
const {
- canCreate,
- canUpdate,
- canDelete,
- isResolving,
- hasResolved
+ // Can the user create navigation menus?
+ canCreate: canCreateNavigationMenus,
+ // Can the user update the specific navigation menu with the given post ID?
+ canUpdate: canUpdateNavigationMenu,
+ // Can the user delete the specific navigation menu with the given post ID?
+ canDelete: canDeleteNavigationMenu,
+ isResolving: isResolvingPermissions,
+ hasResolved: hasResolvedPermissions
} = permissions;
const {
records: navigationMenus,
@@ -32311,13 +33328,13 @@ function useNavigationMenu(ref) {
isResolvingNavigationMenus,
hasResolvedNavigationMenus,
canSwitchNavigationMenu,
- canUserCreateNavigationMenu: canCreate,
- isResolvingCanUserCreateNavigationMenu: isResolving,
- hasResolvedCanUserCreateNavigationMenu: hasResolved,
- canUserUpdateNavigationMenu: canUpdate,
- hasResolvedCanUserUpdateNavigationMenu: ref ? hasResolved : undefined,
- canUserDeleteNavigationMenu: canDelete,
- hasResolvedCanUserDeleteNavigationMenu: ref ? hasResolved : undefined
+ canUserCreateNavigationMenus: canCreateNavigationMenus,
+ isResolvingCanUserCreateNavigationMenus: isResolvingPermissions,
+ hasResolvedCanUserCreateNavigationMenus: hasResolvedPermissions,
+ canUserUpdateNavigationMenu: canUpdateNavigationMenu,
+ hasResolvedCanUserUpdateNavigationMenu: ref ? hasResolvedPermissions : undefined,
+ canUserDeleteNavigationMenu: canDeleteNavigationMenu,
+ hasResolvedCanUserDeleteNavigationMenu: ref ? hasResolvedPermissions : undefined
};
}
function selectExistingMenu(select, ref) {
@@ -32423,42 +33440,45 @@ function useNavigationEntities(menuId) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/placeholder/placeholder-preview.js
-
/**
* WordPress dependencies
*/
+
+
const PlaceholderPreview = ({
isVisible = true
}) => {
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
"aria-hidden": !isVisible ? true : undefined,
- className: "wp-block-navigation-placeholder__preview"
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-navigation-placeholder__actions__indicator"
- }, (0,external_React_namespaceObject.createElement)(build_module_icon, {
- icon: library_navigation
- }), (0,external_wp_i18n_namespaceObject.__)('Navigation')));
+ className: "wp-block-navigation-placeholder__preview",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "wp-block-navigation-placeholder__actions__indicator",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: library_navigation
+ }), (0,external_wp_i18n_namespaceObject.__)('Navigation')]
+ })
+ });
};
/* harmony default export */ const placeholder_preview = (PlaceholderPreview);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
-
/**
* WordPress dependencies
*/
-const moreVertical = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const moreVertical = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
+ })
+});
/* harmony default export */ const more_vertical = (moreVertical);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/navigation-menu-selector.js
-
/**
* WordPress dependencies
*/
@@ -32474,6 +33494,9 @@ const moreVertical = (0,external_React_namespaceObject.createElement)(external_w
*/
+
+
+
function buildMenuLabel(title, id, status) {
if (!title) {
/* translators: %s is the index of the menu in the list of menus. */
@@ -32506,7 +33529,7 @@ function NavigationMenuSelector({
navigationMenus,
isResolvingNavigationMenus,
hasResolvedNavigationMenus,
- canUserCreateNavigationMenu,
+ canUserCreateNavigationMenus,
canSwitchNavigationMenu
} = useNavigationMenu();
const [currentTitle] = (0,external_wp_coreData_namespaceObject.useEntityProp)('postType', 'wp_navigation', 'title');
@@ -32528,7 +33551,7 @@ function NavigationMenuSelector({
const hasNavigationMenus = !!navigationMenus?.length;
const hasClassicMenus = !!classicMenus?.length;
const showNavigationMenus = !!canSwitchNavigationMenu;
- const showClassicMenus = !!canUserCreateNavigationMenu;
+ const showClassicMenus = !!canUserCreateNavigationMenus;
const noMenuSelected = hasNavigationMenus && !currentMenuId;
const noBlockMenus = !hasNavigationMenus && hasResolvedNavigationMenus;
const menuUnavailable = hasResolvedNavigationMenus && currentMenuId === null;
@@ -32537,7 +33560,7 @@ function NavigationMenuSelector({
selectorLabel = (0,external_wp_i18n_namespaceObject.__)('Loading…');
} else if (noMenuSelected || noBlockMenus || menuUnavailable) {
// Note: classic Menus may be available.
- selectorLabel = (0,external_wp_i18n_namespaceObject.__)('Choose or create a Navigation menu');
+ selectorLabel = (0,external_wp_i18n_namespaceObject.__)('Choose or create a Navigation Menu');
} else {
// Current Menu's title.
selectorLabel = currentTitle;
@@ -32546,56 +33569,62 @@ function NavigationMenuSelector({
if (isUpdatingMenuRef && (createNavigationMenuIsSuccess || createNavigationMenuIsError)) {
setIsUpdatingMenuRef(false);
}
- }, [hasResolvedNavigationMenus, createNavigationMenuIsSuccess, canUserCreateNavigationMenu, createNavigationMenuIsError, isUpdatingMenuRef, menuUnavailable, noBlockMenus, noMenuSelected]);
- const NavigationMenuSelectorDropdown = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
+ }, [hasResolvedNavigationMenus, createNavigationMenuIsSuccess, canUserCreateNavigationMenus, createNavigationMenuIsError, isUpdatingMenuRef, menuUnavailable, noBlockMenus, noMenuSelected]);
+ const NavigationMenuSelectorDropdown = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
label: selectorLabel,
icon: more_vertical,
toggleProps: {
- isSmall: true
- }
- }, ({
- onClose
- }) => (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, showNavigationMenus && hasNavigationMenus && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Menus')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItemsChoice, {
- value: currentMenuId,
- onSelect: menuId => {
- onSelectNavigationMenu(menuId);
- onClose();
- },
- choices: menuChoices
- })), showClassicMenus && hasClassicMenus && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Import Classic Menus')
- }, classicMenus?.map(menu => {
- const label = (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(menu.name);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: async () => {
- setIsUpdatingMenuRef(true);
- await onSelectClassicMenu(menu);
- setIsUpdatingMenuRef(false);
- onClose();
- },
- key: menu.id,
- "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(createActionLabel, label),
- disabled: isUpdatingMenuRef || isResolvingNavigationMenus || !hasResolvedNavigationMenus
- }, label);
- })), canUserCreateNavigationMenu && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Tools')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: async () => {
- setIsUpdatingMenuRef(true);
- await onCreateNew();
- setIsUpdatingMenuRef(false);
- onClose();
+ size: 'small'
},
- disabled: isUpdatingMenuRef || isResolvingNavigationMenus || !hasResolvedNavigationMenus
- }, (0,external_wp_i18n_namespaceObject.__)('Create new menu')))));
+ children: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [showNavigationMenus && hasNavigationMenus && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Menus'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItemsChoice, {
+ value: currentMenuId,
+ onSelect: menuId => {
+ onSelectNavigationMenu(menuId);
+ onClose();
+ },
+ choices: menuChoices
+ })
+ }), showClassicMenus && hasClassicMenus && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Import Classic Menus'),
+ children: classicMenus?.map(menu => {
+ const label = (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(menu.name);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: async () => {
+ setIsUpdatingMenuRef(true);
+ await onSelectClassicMenu(menu);
+ setIsUpdatingMenuRef(false);
+ onClose();
+ },
+ "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(createActionLabel, label),
+ disabled: isUpdatingMenuRef || isResolvingNavigationMenus || !hasResolvedNavigationMenus,
+ children: label
+ }, menu.id);
+ })
+ }), canUserCreateNavigationMenus && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Tools'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: async () => {
+ setIsUpdatingMenuRef(true);
+ await onCreateNew();
+ setIsUpdatingMenuRef(false);
+ onClose();
+ },
+ disabled: isUpdatingMenuRef || isResolvingNavigationMenus || !hasResolvedNavigationMenus,
+ children: (0,external_wp_i18n_namespaceObject.__)('Create new Menu')
+ })
+ })]
+ })
+ });
return NavigationMenuSelectorDropdown;
}
/* harmony default export */ const navigation_menu_selector = (NavigationMenuSelector);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/placeholder/index.js
-
/**
* WordPress dependencies
*/
@@ -32611,12 +33640,15 @@ function NavigationMenuSelector({
+
+
+
function NavigationPlaceholder({
isSelected,
currentMenuId,
clientId,
- canUserCreateNavigationMenu = false,
- isResolvingCanUserCreateNavigationMenu,
+ canUserCreateNavigationMenus = false,
+ isResolvingCanUserCreateNavigationMenus,
onSelectNavigationMenu,
onSelectClassicMenu,
onCreateEmpty
@@ -32636,82 +33668,91 @@ function NavigationPlaceholder({
(0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.__)('Navigation block setup options ready.'));
}
}, [hasResolvedMenus, isResolvingMenus, isSelected]);
- const isResolvingActions = isResolvingMenus && isResolvingCanUserCreateNavigationMenu;
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- className: "wp-block-navigation-placeholder"
- }, (0,external_React_namespaceObject.createElement)(placeholder_preview, {
- isVisible: !isSelected
- }), (0,external_React_namespaceObject.createElement)("div", {
- "aria-hidden": !isSelected ? true : undefined,
- className: "wp-block-navigation-placeholder__controls"
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-navigation-placeholder__actions"
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-navigation-placeholder__actions__indicator"
- }, (0,external_React_namespaceObject.createElement)(build_module_icon, {
- icon: library_navigation
- }), " ", (0,external_wp_i18n_namespaceObject.__)('Navigation')), (0,external_React_namespaceObject.createElement)("hr", null), isResolvingActions && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null), (0,external_React_namespaceObject.createElement)(navigation_menu_selector, {
- currentMenuId: currentMenuId,
- clientId: clientId,
- onSelectNavigationMenu: onSelectNavigationMenu,
- onSelectClassicMenu: onSelectClassicMenu
- }), (0,external_React_namespaceObject.createElement)("hr", null), canUserCreateNavigationMenu && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: onCreateEmpty
- }, (0,external_wp_i18n_namespaceObject.__)('Start empty'))))));
+ const isResolvingActions = isResolvingMenus && isResolvingCanUserCreateNavigationMenus;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Placeholder, {
+ className: "wp-block-navigation-placeholder",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(placeholder_preview, {
+ isVisible: !isSelected
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ "aria-hidden": !isSelected ? true : undefined,
+ className: "wp-block-navigation-placeholder__controls",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "wp-block-navigation-placeholder__actions",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "wp-block-navigation-placeholder__actions__indicator",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: library_navigation
+ }), " ", (0,external_wp_i18n_namespaceObject.__)('Navigation')]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("hr", {}), isResolvingActions && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(navigation_menu_selector, {
+ currentMenuId: currentMenuId,
+ clientId: clientId,
+ onSelectNavigationMenu: onSelectNavigationMenu,
+ onSelectClassicMenu: onSelectClassicMenu
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("hr", {}), canUserCreateNavigationMenus && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: onCreateEmpty,
+ children: (0,external_wp_i18n_namespaceObject.__)('Start empty')
+ })]
+ })
+ })]
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/menu.js
-
/**
* WordPress dependencies
*/
-const menu = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const menu = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"
+ })
+});
/* harmony default export */ const library_menu = (menu);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/overlay-menu-icon.js
-
/**
* WordPress dependencies
*/
+
+
function OverlayMenuIcon({
icon
}) {
if (icon === 'menu') {
- return (0,external_React_namespaceObject.createElement)(build_module_icon, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
icon: library_menu
});
}
- return (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
width: "24",
height: "24",
"aria-hidden": "true",
- focusable: "false"
- }, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Rect, {
- x: "4",
- y: "7.5",
- width: "16",
- height: "1.5"
- }), (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Rect, {
- x: "4",
- y: "15",
- width: "16",
- height: "1.5"
- }));
+ focusable: "false",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Rect, {
+ x: "4",
+ y: "7.5",
+ width: "16",
+ height: "1.5"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Rect, {
+ x: "4",
+ y: "15",
+ width: "16",
+ height: "1.5"
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/responsive-wrapper.js
-
/**
* External dependencies
*/
@@ -32729,6 +33770,9 @@ function OverlayMenuIcon({
* Internal dependencies
*/
+
+
+
function ResponsiveWrapper({
children,
id,
@@ -32744,7 +33788,7 @@ function ResponsiveWrapper({
if (!isResponsive) {
return children;
}
- const responsiveContainerClasses = classnames_default()('wp-block-navigation__responsive-container', {
+ const responsiveContainerClasses = dist_clsx('wp-block-navigation__responsive-container', {
'has-text-color': !!overlayTextColor.color || !!overlayTextColor?.class,
[(0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', overlayTextColor?.slug)]: !!overlayTextColor?.slug,
'has-background': !!overlayBackgroundColor.color || overlayBackgroundColor?.class,
@@ -32756,7 +33800,7 @@ function ResponsiveWrapper({
color: !overlayTextColor?.slug && overlayTextColor?.color,
backgroundColor: !overlayBackgroundColor?.slug && overlayBackgroundColor?.color && overlayBackgroundColor.color
};
- const openButtonClasses = classnames_default()('wp-block-navigation__responsive-container-open', {
+ const openButtonClasses = dist_clsx('wp-block-navigation__responsive-container-open', {
'always-shown': isHiddenByDefault
});
const modalId = `${id}-modal`;
@@ -32768,36 +33812,43 @@ function ResponsiveWrapper({
'aria-label': (0,external_wp_i18n_namespaceObject.__)('Menu')
})
};
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, !isOpen && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- "aria-haspopup": "true",
- "aria-label": hasIcon && (0,external_wp_i18n_namespaceObject.__)('Open menu'),
- className: openButtonClasses,
- onClick: () => onToggle(true)
- }, hasIcon && (0,external_React_namespaceObject.createElement)(OverlayMenuIcon, {
- icon: icon
- }), !hasIcon && (0,external_wp_i18n_namespaceObject.__)('Menu')), (0,external_React_namespaceObject.createElement)("div", {
- className: responsiveContainerClasses,
- style: styles,
- id: modalId
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-navigation__responsive-close",
- tabIndex: "-1"
- }, (0,external_React_namespaceObject.createElement)("div", {
- ...dialogProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- className: "wp-block-navigation__responsive-container-close",
- "aria-label": hasIcon && (0,external_wp_i18n_namespaceObject.__)('Close menu'),
- onClick: () => onToggle(false)
- }, hasIcon && (0,external_React_namespaceObject.createElement)(build_module_icon, {
- icon: library_close
- }), !hasIcon && (0,external_wp_i18n_namespaceObject.__)('Close')), (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-navigation__responsive-container-content",
- id: `${modalId}-content`
- }, children)))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [!isOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Button, {
+ "aria-haspopup": "true",
+ "aria-label": hasIcon && (0,external_wp_i18n_namespaceObject.__)('Open menu'),
+ className: openButtonClasses,
+ onClick: () => onToggle(true),
+ children: [hasIcon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OverlayMenuIcon, {
+ icon: icon
+ }), !hasIcon && (0,external_wp_i18n_namespaceObject.__)('Menu')]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: responsiveContainerClasses,
+ style: styles,
+ id: modalId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-navigation__responsive-close",
+ tabIndex: "-1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...dialogProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Button, {
+ className: "wp-block-navigation__responsive-container-close",
+ "aria-label": hasIcon && (0,external_wp_i18n_namespaceObject.__)('Close menu'),
+ onClick: () => onToggle(false),
+ children: [hasIcon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: library_close
+ }), !hasIcon && (0,external_wp_i18n_namespaceObject.__)('Close')]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-navigation__responsive-container-content",
+ id: `${modalId}-content`,
+ children: children
+ })]
+ })
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/inner-blocks.js
-
/**
* WordPress dependencies
*/
@@ -32811,6 +33862,7 @@ function ResponsiveWrapper({
*/
+
function NavigationInnerBlocks({
clientId,
hasCustomPlaceholder,
@@ -32842,7 +33894,7 @@ function NavigationInnerBlocks({
// doesn't itself have children, show the standard appender. Else show no
// appender.
const parentOrChildHasSelection = isSelected || isImmediateParentOfSelectedBlock && !selectedBlockHasChildren;
- const placeholder = (0,external_wp_element_namespaceObject.useMemo)(() => (0,external_React_namespaceObject.createElement)(placeholder_preview, null), []);
+ const placeholder = (0,external_wp_element_namespaceObject.useMemo)(() => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(placeholder_preview, {}), []);
const hasMenuItems = !!blocks?.length;
// If there is a `ref` attribute pointing to a `wp_navigation` but
@@ -32873,22 +33925,22 @@ function NavigationInnerBlocks({
__experimentalCaptureToolbars: true,
__unstableDisableLayoutClassNames: true
});
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...innerBlocksProps
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/navigation-menu-name-control.js
-
/**
* WordPress dependencies
*/
+
function NavigationMenuNameControl() {
const [title, updateTitle] = (0,external_wp_coreData_namespaceObject.useEntityProp)('postType', 'wp_navigation', 'title');
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
__nextHasNoMarginBottom: true,
label: (0,external_wp_i18n_namespaceObject.__)('Menu name'),
value: title,
@@ -32922,15 +33974,21 @@ const isDeepEqual = (x, y, shouldSkip) => {
if (x === y) {
return true;
} else if (typeof x === 'object' && x !== null && x !== undefined && typeof y === 'object' && y !== null && y !== undefined) {
- if (Object.keys(x).length !== Object.keys(y).length) return false;
+ if (Object.keys(x).length !== Object.keys(y).length) {
+ return false;
+ }
for (const prop in x) {
if (y.hasOwnProperty(prop)) {
// Afford skipping a given property of an object.
if (shouldSkip && shouldSkip(prop, x)) {
return true;
}
- if (!isDeepEqual(x[prop], y[prop], shouldSkip)) return false;
- } else return false;
+ if (!isDeepEqual(x[prop], y[prop], shouldSkip)) {
+ return false;
+ }
+ } else {
+ return false;
+ }
}
return true;
}
@@ -32938,7 +33996,6 @@ const isDeepEqual = (x, y, shouldSkip) => {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/unsaved-inner-blocks.js
-
/**
* WordPress dependencies
*/
@@ -32953,6 +34010,7 @@ const isDeepEqual = (x, y, shouldSkip) => {
*/
+
const EMPTY_OBJECT = {};
function UnsavedInnerBlocks({
blocks,
@@ -33024,13 +34082,12 @@ function UnsavedInnerBlocks({
createNavigationMenu(null, blocks);
}, [blocks, createNavigationMenu, isDisabled, isSaving, hasResolvedAllNavigationMenus, innerBlocksAreDirty, hasSelection]);
const Wrapper = isSaving ? external_wp_components_namespaceObject.Disabled : 'div';
- return (0,external_React_namespaceObject.createElement)(Wrapper, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Wrapper, {
...innerBlocksProps
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/navigation-menu-delete-control.js
-
/**
* WordPress dependencies
*/
@@ -33039,42 +34096,41 @@ function UnsavedInnerBlocks({
+
+
+
function NavigationMenuDeleteControl({
onDelete
}) {
- const [isConfirmModalVisible, setIsConfirmModalVisible] = (0,external_wp_element_namespaceObject.useState)(false);
+ const [isConfirmDialogVisible, setIsConfirmDialogVisible] = (0,external_wp_element_namespaceObject.useState)(false);
const id = (0,external_wp_coreData_namespaceObject.useEntityId)('postType', 'wp_navigation');
- const [title] = (0,external_wp_coreData_namespaceObject.useEntityProp)('postType', 'wp_navigation', 'title');
const {
deleteEntityRecord
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- className: "wp-block-navigation-delete-menu-button",
- variant: "secondary",
- isDestructive: true,
- onClick: () => {
- setIsConfirmModalVisible(true);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Delete menu')), isConfirmModalVisible && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
- title: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: the name of a menu to delete */
- (0,external_wp_i18n_namespaceObject.__)('Delete %s'), title),
- onRequestClose: () => setIsConfirmModalVisible(false)
- }, (0,external_React_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to delete this navigation menu?')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: () => {
- setIsConfirmModalVisible(false);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: () => {
- deleteEntityRecord('postType', 'wp_navigation', id, {
- force: true
- });
- onDelete(title);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Confirm')))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "wp-block-navigation-delete-menu-button",
+ variant: "secondary",
+ isDestructive: true,
+ onClick: () => {
+ setIsConfirmDialogVisible(true);
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Delete menu')
+ }), isConfirmDialogVisible && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
+ isOpen: true,
+ onConfirm: () => {
+ deleteEntityRecord('postType', 'wp_navigation', id, {
+ force: true
+ });
+ onDelete();
+ },
+ onCancel: () => {
+ setIsConfirmDialogVisible(false);
+ },
+ confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Delete'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to delete this Navigation Menu?')
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/use-navigation-notice.js
@@ -33115,7 +34171,6 @@ function useNavigationNotice({
/* harmony default export */ const use_navigation_notice = (useNavigationNotice);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/overlay-menu-preview.js
-
/**
* WordPress dependencies
*/
@@ -33126,40 +34181,46 @@ function useNavigationNotice({
* Internal dependencies
*/
+
+
+
function OverlayMenuPreview({
setAttributes,
hasIcon,
icon
}) {
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Show icon button'),
- help: (0,external_wp_i18n_namespaceObject.__)('Configure the visual appearance of the button that toggles the overlay menu.'),
- onChange: value => setAttributes({
- hasIcon: value
- }),
- checked: hasIcon
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Icon'),
- value: icon,
- onChange: value => setAttributes({
- icon: value
- }),
- isBlock: true
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "handle",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('handle'),
- label: (0,external_React_namespaceObject.createElement)(OverlayMenuIcon, {
- icon: "handle"
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "menu",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('menu'),
- label: (0,external_React_namespaceObject.createElement)(OverlayMenuIcon, {
- icon: "menu"
- })
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show icon button'),
+ help: (0,external_wp_i18n_namespaceObject.__)('Configure the visual appearance of the button that toggles the overlay menu.'),
+ onChange: value => setAttributes({
+ hasIcon: value
+ }),
+ checked: hasIcon
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Icon'),
+ value: icon,
+ onChange: value => setAttributes({
+ icon: value
+ }),
+ isBlock: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "handle",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('handle'),
+ label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OverlayMenuIcon, {
+ icon: "handle"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "menu",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('menu'),
+ label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OverlayMenuIcon, {
+ icon: "menu"
+ })
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/menu-items-to-blocks.js
@@ -33814,7 +34875,7 @@ function getColors(context, isSubMenu) {
}
function getNavigationChildBlockProps(innerBlocksColors) {
return {
- className: classnames_default()('wp-block-navigation__submenu-container', {
+ className: dist_clsx('wp-block-navigation__submenu-container', {
'has-text-color': !!(innerBlocksColors.textColor || innerBlocksColors.customTextColor),
[`has-${innerBlocksColors.textColor}-color`]: !!innerBlocksColors.textColor,
'has-background': !!(innerBlocksColors.backgroundColor || innerBlocksColors.customBackgroundColor),
@@ -33828,13 +34889,13 @@ function getNavigationChildBlockProps(innerBlocksColors) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/manage-menus-button.js
-
/**
* WordPress dependencies
*/
+
const ManageMenusButton = ({
className = '',
disabled,
@@ -33844,19 +34905,19 @@ const ManageMenusButton = ({
if (isMenuItem) {
ComponentName = external_wp_components_namespaceObject.MenuItem;
}
- return (0,external_React_namespaceObject.createElement)(ComponentName, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ComponentName, {
variant: "link",
disabled: disabled,
className: className,
href: (0,external_wp_url_namespaceObject.addQueryArgs)('edit.php', {
post_type: 'wp_navigation'
- })
- }, (0,external_wp_i18n_namespaceObject.__)('Manage menus'));
+ }),
+ children: (0,external_wp_i18n_namespaceObject.__)('Manage menus')
+ });
};
/* harmony default export */ const manage_menus_button = (ManageMenusButton);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/deleted-navigation-warning.js
-
/**
* WordPress dependencies
*/
@@ -33864,62 +34925,67 @@ const ManageMenusButton = ({
+
function DeletedNavigationWarning({
onCreateNew
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('Navigation menu has been deleted or is unavailable. <button>Create a new menu?</button>'), {
- button: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- onClick: onCreateNew,
- variant: "link"
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ children: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>'), {
+ button: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ onClick: onCreateNew,
+ variant: "link"
+ })
})
- }));
+ });
}
/* harmony default export */ const deleted_navigation_warning = (DeletedNavigationWarning);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/add-submenu.js
-
/**
* WordPress dependencies
*/
-const addSubmenu = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const addSubmenu = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"
+ })
+});
/* harmony default export */ const add_submenu = (addSubmenu);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-up.js
-
/**
* WordPress dependencies
*/
-const chevronUp = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronUp = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"
+ })
+});
/* harmony default export */ const chevron_up = (chevronUp);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-down.js
-
/**
* WordPress dependencies
*/
-const chevronDown = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronDown = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"
+ })
+});
/* harmony default export */ const chevron_down = (chevronDown);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/leaf-more-menu.js
-
/**
* WordPress dependencies
*/
@@ -33929,6 +34995,9 @@ const chevronDown = (0,external_React_namespaceObject.createElement)(external_wp
+
+
+
const POPOVER_PROPS = {
className: 'block-editor-block-settings-menu__popover',
placement: 'bottom-start'
@@ -33948,7 +35017,7 @@ function AddSubmenuItem({
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
const clientId = block.clientId;
const isDisabled = !BLOCKS_THAT_CAN_BE_CONVERTED_TO_SUBMENU.includes(block.name);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
icon: add_submenu,
disabled: isDisabled,
onClick: () => {
@@ -33978,8 +35047,9 @@ function AddSubmenuItem({
expand(block.clientId);
}
onClose();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Add submenu link'));
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Add submenu link')
+ });
}
function LeafMoreMenu(props) {
const {
@@ -34004,40 +35074,50 @@ function LeafMoreMenu(props) {
} = select(external_wp_blockEditor_namespaceObject.store);
return getBlockRootClientId(clientId);
}, [clientId]);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
icon: more_vertical,
label: (0,external_wp_i18n_namespaceObject.__)('Options'),
className: "block-editor-block-settings-menu",
popoverProps: POPOVER_PROPS,
noIcons: true,
- ...props
- }, ({
- onClose
- }) => (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- icon: chevron_up,
- onClick: () => {
- moveBlocksUp([clientId], rootClientId);
- onClose();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Move up')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- icon: chevron_down,
- onClick: () => {
- moveBlocksDown([clientId], rootClientId);
- onClose();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Move down')), (0,external_React_namespaceObject.createElement)(AddSubmenuItem, {
- block: block,
- onClose: onClose,
- expanded: true,
- expandedState: props.expandedState,
- expand: props.expand,
- setInsertedBlock: props.setInsertedBlock
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- removeBlocks([clientId], false);
- onClose();
- }
- }, removeLabel))));
+ ...props,
+ children: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: chevron_up,
+ onClick: () => {
+ moveBlocksUp([clientId], rootClientId);
+ onClose();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Move up')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: chevron_down,
+ onClick: () => {
+ moveBlocksDown([clientId], rootClientId);
+ onClose();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Move down')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AddSubmenuItem, {
+ block: block,
+ onClose: onClose,
+ expanded: true,
+ expandedState: props.expandedState,
+ expand: props.expand,
+ setInsertedBlock: props.setInsertedBlock
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ removeBlocks([clientId], false);
+ onClose();
+ },
+ children: removeLabel
+ })
+ })]
+ })
+ });
}
;// CONCATENATED MODULE: external ["wp","escapeHtml"]
@@ -34140,35 +35220,36 @@ const updateAttributes = (updatedValue = {}, setAttributes, blockAttributes = {}
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left-small.js
-
/**
* WordPress dependencies
*/
-const chevronLeftSmall = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronLeftSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"
+ })
+});
/* harmony default export */ const chevron_left_small = (chevronLeftSmall);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js
-
/**
* WordPress dependencies
*/
-const plus = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const plus = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
+ })
+});
/* harmony default export */ const library_plus = (plus);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-link/link-ui.js
-
/**
* WordPress dependencies
*/
@@ -34187,6 +35268,8 @@ const plus = (0,external_React_namespaceObject.createElement)(external_wp_primit
* Internal dependencies
*/
+
+
const {
PrivateQuickInserter: QuickInserter
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
@@ -34266,38 +35349,43 @@ function LinkUIBlockInserter({
if (!clientId) {
return null;
}
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: "link-ui-block-inserter",
role: "dialog",
"aria-labelledby": dialogTitleId,
"aria-describedby": dialogDescritionId,
- ref: focusOnMountRef
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, null, (0,external_React_namespaceObject.createElement)("h2", {
- id: dialogTitleId
- }, (0,external_wp_i18n_namespaceObject.__)('Add block')), (0,external_React_namespaceObject.createElement)("p", {
- id: dialogDescritionId
- }, (0,external_wp_i18n_namespaceObject.__)('Choose a block to add to your Navigation.'))), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- className: "link-ui-block-inserter__back",
- icon: chevron_left_small,
- onClick: e => {
- e.preventDefault();
- onBack();
- },
- size: "small"
- }, (0,external_wp_i18n_namespaceObject.__)('Back')), (0,external_React_namespaceObject.createElement)(QuickInserter, {
- rootClientId: rootBlockClientId,
- clientId: clientId,
- isAppender: false,
- prioritizePatterns: false,
- selectBlockOnInsert: true,
- hasSearch: false,
- onSelect: onSelectBlock
- }));
+ ref: focusOnMountRef,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.VisuallyHidden, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ id: dialogTitleId,
+ children: (0,external_wp_i18n_namespaceObject.__)('Add block')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ id: dialogDescritionId,
+ children: (0,external_wp_i18n_namespaceObject.__)('Choose a block to add to your Navigation.')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "link-ui-block-inserter__back",
+ icon: chevron_left_small,
+ onClick: e => {
+ e.preventDefault();
+ onBack();
+ },
+ size: "small",
+ children: (0,external_wp_i18n_namespaceObject.__)('Back')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(QuickInserter, {
+ rootClientId: rootBlockClientId,
+ clientId: clientId,
+ isAppender: false,
+ prioritizePatterns: false,
+ selectBlockOnInsert: true,
+ hasSearch: false,
+ onSelect: onSelectBlock
+ })]
+ });
}
-function LinkUI(props) {
+function UnforwardedLinkUI(props, ref) {
const [addingBlock, setAddingBlock] = (0,external_wp_element_namespaceObject.useState)(false);
const [focusAddBlockButton, setFocusAddBlockButton] = (0,external_wp_element_namespaceObject.useState)(false);
- const [showBackdrop, setShowBackdrop] = (0,external_wp_element_namespaceObject.useState)(true);
const {
saveEntityRecord
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
@@ -34356,65 +35444,69 @@ function LinkUI(props) {
const {
onClose: onSelectBlock
} = props;
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, showBackdrop && (0,external_React_namespaceObject.createElement)("div", {
- className: "components-popover-pointer-events-trap",
- "aria-hidden": "true",
- onClick: () => setShowBackdrop(false)
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Popover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Popover, {
+ ref: ref,
placement: "bottom",
onClose: props.onClose,
anchor: props.anchor,
- shift: true
- }, !addingBlock && (0,external_React_namespaceObject.createElement)("div", {
- role: "dialog",
- "aria-labelledby": dialogTitleId,
- "aria-describedby": dialogDescritionId
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, null, (0,external_React_namespaceObject.createElement)("h2", {
- id: dialogTitleId
- }, (0,external_wp_i18n_namespaceObject.__)('Add link')), (0,external_React_namespaceObject.createElement)("p", {
- id: dialogDescritionId
- }, (0,external_wp_i18n_namespaceObject.__)('Search for and add a link to your Navigation.'))), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalLinkControl, {
- hasTextControl: true,
- hasRichPreviews: true,
- value: link,
- showInitialSuggestions: true,
- withCreateSuggestion: userCanCreate,
- createSuggestion: handleCreate,
- createSuggestionButtonText: searchTerm => {
- let format;
- if (type === 'post') {
- /* translators: %s: search term. */
- format = (0,external_wp_i18n_namespaceObject.__)('Create draft post: <mark>%s</mark>');
- } else {
- /* translators: %s: search term. */
- format = (0,external_wp_i18n_namespaceObject.__)('Create draft page: <mark>%s</mark>');
- }
- return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)(format, searchTerm), {
- mark: (0,external_React_namespaceObject.createElement)("mark", null)
- });
- },
- noDirectEntry: !!type,
- noURLSuggestion: !!type,
- suggestionsQuery: getSuggestionsQuery(type, kind),
- onChange: props.onChange,
- onRemove: props.onRemove,
- onCancel: props.onCancel,
- renderControlBottom: () => !link?.url?.length && (0,external_React_namespaceObject.createElement)(LinkUITools, {
- focusAddBlockButton: focusAddBlockButton,
- setAddingBlock: () => {
- setAddingBlock(true);
- setFocusAddBlockButton(false);
- }
- })
- })), addingBlock && (0,external_React_namespaceObject.createElement)(LinkUIBlockInserter, {
- clientId: props.clientId,
- onBack: () => {
- setAddingBlock(false);
- setFocusAddBlockButton(true);
- },
- onSelectBlock: onSelectBlock
- })));
+ shift: true,
+ children: [!addingBlock && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ role: "dialog",
+ "aria-labelledby": dialogTitleId,
+ "aria-describedby": dialogDescritionId,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.VisuallyHidden, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ id: dialogTitleId,
+ children: (0,external_wp_i18n_namespaceObject.__)('Add link')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ id: dialogDescritionId,
+ children: (0,external_wp_i18n_namespaceObject.__)('Search for and add a link to your Navigation.')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalLinkControl, {
+ hasTextControl: true,
+ hasRichPreviews: true,
+ value: link,
+ showInitialSuggestions: true,
+ withCreateSuggestion: userCanCreate,
+ createSuggestion: handleCreate,
+ createSuggestionButtonText: searchTerm => {
+ let format;
+ if (type === 'post') {
+ /* translators: %s: search term. */
+ format = (0,external_wp_i18n_namespaceObject.__)('Create draft post: <mark>%s</mark>');
+ } else {
+ /* translators: %s: search term. */
+ format = (0,external_wp_i18n_namespaceObject.__)('Create draft page: <mark>%s</mark>');
+ }
+ return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)(format, searchTerm), {
+ mark: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("mark", {})
+ });
+ },
+ noDirectEntry: !!type,
+ noURLSuggestion: !!type,
+ suggestionsQuery: getSuggestionsQuery(type, kind),
+ onChange: props.onChange,
+ onRemove: props.onRemove,
+ onCancel: props.onCancel,
+ renderControlBottom: () => !link?.url?.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LinkUITools, {
+ focusAddBlockButton: focusAddBlockButton,
+ setAddingBlock: () => {
+ setAddingBlock(true);
+ setFocusAddBlockButton(false);
+ }
+ })
+ })]
+ }), addingBlock && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LinkUIBlockInserter, {
+ clientId: props.clientId,
+ onBack: () => {
+ setAddingBlock(false);
+ setFocusAddBlockButton(true);
+ },
+ onSelectBlock: onSelectBlock
+ })]
+ });
}
+const LinkUI = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedLinkUI);
const LinkUITools = ({
setAddingBlock,
focusAddBlockButton
@@ -34428,22 +35520,23 @@ const LinkUITools = ({
addBlockButtonRef.current?.focus();
}
}, [focusAddBlockButton]);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- className: "link-ui-tools"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- ref: addBlockButtonRef,
- icon: library_plus,
- onClick: e => {
- e.preventDefault();
- setAddingBlock(true);
- },
- "aria-haspopup": blockInserterAriaRole
- }, (0,external_wp_i18n_namespaceObject.__)('Add block')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalVStack, {
+ className: "link-ui-tools",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ ref: addBlockButtonRef,
+ icon: library_plus,
+ onClick: e => {
+ e.preventDefault();
+ setAddingBlock(true);
+ },
+ "aria-haspopup": blockInserterAriaRole,
+ children: (0,external_wp_i18n_namespaceObject.__)('Add block')
+ })
+ });
};
/* harmony default export */ const link_ui = ((/* unused pure expression or super */ null && (LinkUITools)));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/menu-inspector-controls.js
-
/**
* WordPress dependencies
*/
@@ -34464,6 +35557,8 @@ const LinkUITools = ({
/* translators: %s: The name of a menu. */
+
+
const actionLabel = (0,external_wp_i18n_namespaceObject.__)("Switch to '%s'");
const BLOCKS_WITH_LINK_UI_SUPPORT = ['core/navigation-link', 'core/navigation-submenu'];
const {
@@ -34484,10 +35579,12 @@ function AdditionalBlockContent({
return null;
}
const setInsertedBlockAttributes = _insertedBlockClientId => _updatedAttributes => {
- if (!_insertedBlockClientId) return;
+ if (!_insertedBlockClientId) {
+ return;
+ }
updateBlockAttributes(_insertedBlockClientId, _updatedAttributes);
};
- return (0,external_React_namespaceObject.createElement)(LinkUI, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LinkUI, {
clientId: insertedBlock?.clientId,
link: insertedBlock?.attributes,
onClose: () => {
@@ -34516,27 +35613,29 @@ const MainContent = ({
navigationMenu
} = useNavigationMenu(currentMenuId);
if (currentMenuId && isNavigationMenuMissing) {
- return (0,external_React_namespaceObject.createElement)(deleted_navigation_warning, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(deleted_navigation_warning, {
onCreateNew: onCreateNew
});
}
if (isLoading) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {});
}
const description = navigationMenu ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: The name of a menu. */
- (0,external_wp_i18n_namespaceObject.__)('Structure for navigation menu: %s'), navigationMenu?.title || (0,external_wp_i18n_namespaceObject.__)('Untitled menu')) : (0,external_wp_i18n_namespaceObject.__)('You have not yet created any menus. Displaying a list of your Pages');
- return (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-navigation__menu-inspector-controls"
- }, !hasChildren && (0,external_React_namespaceObject.createElement)("p", {
- className: "wp-block-navigation__menu-inspector-controls__empty-message"
- }, (0,external_wp_i18n_namespaceObject.__)('This navigation menu is empty.')), (0,external_React_namespaceObject.createElement)(PrivateListView, {
- rootClientId: clientId,
- isExpanded: true,
- description: description,
- showAppender: true,
- blockSettingsMenu: LeafMoreMenu,
- additionalBlockContent: AdditionalBlockContent
- }));
+ (0,external_wp_i18n_namespaceObject.__)('Structure for Navigation Menu: %s'), navigationMenu?.title || (0,external_wp_i18n_namespaceObject.__)('Untitled menu')) : (0,external_wp_i18n_namespaceObject.__)('You have not yet created any menus. Displaying a list of your Pages');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "wp-block-navigation__menu-inspector-controls",
+ children: [!hasChildren && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "wp-block-navigation__menu-inspector-controls__empty-message",
+ children: (0,external_wp_i18n_namespaceObject.__)('This Navigation Menu is empty.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivateListView, {
+ rootClientId: clientId,
+ isExpanded: true,
+ description: description,
+ showAppender: true,
+ blockSettingsMenu: LeafMoreMenu,
+ additionalBlockContent: AdditionalBlockContent
+ })]
+ });
};
const MenuInspectorControls = props => {
const {
@@ -34549,48 +35648,54 @@ const MenuInspectorControls = props => {
isManageMenusButtonDisabled,
blockEditingMode
} = props;
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "list"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: null
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- className: "wp-block-navigation-off-canvas-editor__header"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
- className: "wp-block-navigation-off-canvas-editor__title",
- level: 2
- }, (0,external_wp_i18n_namespaceObject.__)('Menu')), blockEditingMode === 'default' && (0,external_React_namespaceObject.createElement)(navigation_menu_selector, {
- currentMenuId: currentMenuId,
- onSelectClassicMenu: onSelectClassicMenu,
- onSelectNavigationMenu: onSelectNavigationMenu,
- onCreateNew: onCreateNew,
- createNavigationMenuIsSuccess: createNavigationMenuIsSuccess,
- createNavigationMenuIsError: createNavigationMenuIsError,
- actionLabel: actionLabel,
- isManageMenusButtonDisabled: isManageMenusButtonDisabled
- })), (0,external_React_namespaceObject.createElement)(MainContent, {
- ...props
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "list",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: null,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ className: "wp-block-navigation-off-canvas-editor__header",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
+ className: "wp-block-navigation-off-canvas-editor__title",
+ level: 2,
+ children: (0,external_wp_i18n_namespaceObject.__)('Menu')
+ }), blockEditingMode === 'default' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(navigation_menu_selector, {
+ currentMenuId: currentMenuId,
+ onSelectClassicMenu: onSelectClassicMenu,
+ onSelectNavigationMenu: onSelectNavigationMenu,
+ onCreateNew: onCreateNew,
+ createNavigationMenuIsSuccess: createNavigationMenuIsSuccess,
+ createNavigationMenuIsError: createNavigationMenuIsError,
+ actionLabel: actionLabel,
+ isManageMenusButtonDisabled: isManageMenusButtonDisabled
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MainContent, {
+ ...props
+ })]
+ })
+ });
};
/* harmony default export */ const menu_inspector_controls = (MenuInspectorControls);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/accessible-description.js
-
/**
* WordPress dependencies
*/
+
function AccessibleDescription({
id,
children
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, null, (0,external_React_namespaceObject.createElement)("div", {
- id: id,
- className: "wp-block-navigation__description"
- }, children));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ id: id,
+ className: "wp-block-navigation__description",
+ children: children
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/accessible-menu-description.js
-
/**
* WordPress dependencies
*/
@@ -34601,19 +35706,20 @@ function AccessibleDescription({
* Internal dependencies
*/
+
function AccessibleMenuDescription({
id
}) {
const [menuTitle] = (0,external_wp_coreData_namespaceObject.useEntityProp)('postType', 'wp_navigation', 'title');
/* translators: %s: Title of a Navigation Menu post. */
- const description = (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)(`Navigation menu: "%s"`), menuTitle);
- return (0,external_React_namespaceObject.createElement)(AccessibleDescription, {
- id: id
- }, description);
+ const description = (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)(`Navigation Menu: "%s"`), menuTitle);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AccessibleDescription, {
+ id: id,
+ children: description
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/index.js
-
/**
* External dependencies
*/
@@ -34656,6 +35762,87 @@ function AccessibleMenuDescription({
+
+
+
+function ColorTools({
+ textColor,
+ setTextColor,
+ backgroundColor,
+ setBackgroundColor,
+ overlayTextColor,
+ setOverlayTextColor,
+ overlayBackgroundColor,
+ setOverlayBackgroundColor,
+ clientId,
+ navRef
+}) {
+ const [detectedBackgroundColor, setDetectedBackgroundColor] = (0,external_wp_element_namespaceObject.useState)();
+ const [detectedColor, setDetectedColor] = (0,external_wp_element_namespaceObject.useState)();
+ const [detectedOverlayBackgroundColor, setDetectedOverlayBackgroundColor] = (0,external_wp_element_namespaceObject.useState)();
+ const [detectedOverlayColor, setDetectedOverlayColor] = (0,external_wp_element_namespaceObject.useState)();
+ // Turn on contrast checker for web only since it's not supported on mobile yet.
+ const enableContrastChecking = external_wp_element_namespaceObject.Platform.OS === 'web';
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (!enableContrastChecking) {
+ return;
+ }
+ detectColors(navRef.current, setDetectedColor, setDetectedBackgroundColor);
+ const subMenuElement = navRef.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');
+ if (!subMenuElement) {
+ return;
+ }
+
+ // Only detect submenu overlay colors if they have previously been explicitly set.
+ // This avoids the contrast checker from reporting on inherited submenu colors and
+ // showing the contrast warning twice.
+ if (overlayTextColor.color || overlayBackgroundColor.color) {
+ detectColors(subMenuElement, setDetectedOverlayColor, setDetectedOverlayBackgroundColor);
+ }
+ }, [enableContrastChecking, overlayTextColor.color, overlayBackgroundColor.color, navRef]);
+ const colorGradientSettings = (0,external_wp_blockEditor_namespaceObject.__experimentalUseMultipleOriginColorsAndGradients)();
+ if (!colorGradientSettings.hasColorsOrGradients) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalColorGradientSettingsDropdown, {
+ __experimentalIsRenderedInSidebar: true,
+ settings: [{
+ colorValue: textColor.color,
+ label: (0,external_wp_i18n_namespaceObject.__)('Text'),
+ onColorChange: setTextColor,
+ resetAllFilter: () => setTextColor()
+ }, {
+ colorValue: backgroundColor.color,
+ label: (0,external_wp_i18n_namespaceObject.__)('Background'),
+ onColorChange: setBackgroundColor,
+ resetAllFilter: () => setBackgroundColor()
+ }, {
+ colorValue: overlayTextColor.color,
+ label: (0,external_wp_i18n_namespaceObject.__)('Submenu & overlay text'),
+ onColorChange: setOverlayTextColor,
+ resetAllFilter: () => setOverlayTextColor()
+ }, {
+ colorValue: overlayBackgroundColor.color,
+ label: (0,external_wp_i18n_namespaceObject.__)('Submenu & overlay background'),
+ onColorChange: setOverlayBackgroundColor,
+ resetAllFilter: () => setOverlayBackgroundColor()
+ }],
+ panelId: clientId,
+ ...colorGradientSettings,
+ gradients: [],
+ disableCustomGradients: true
+ }), enableContrastChecking && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.ContrastChecker, {
+ backgroundColor: detectedBackgroundColor,
+ textColor: detectedColor
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.ContrastChecker, {
+ backgroundColor: detectedOverlayBackgroundColor,
+ textColor: detectedOverlayColor
+ })]
+ })]
+ });
+}
function Navigation({
attributes,
setAttributes,
@@ -34747,9 +35934,9 @@ function Navigation({
hasResolvedCanUserUpdateNavigationMenu,
canUserDeleteNavigationMenu,
hasResolvedCanUserDeleteNavigationMenu,
- canUserCreateNavigationMenu,
- isResolvingCanUserCreateNavigationMenu,
- hasResolvedCanUserCreateNavigationMenu
+ canUserCreateNavigationMenus,
+ isResolvingCanUserCreateNavigationMenus,
+ hasResolvedCanUserCreateNavigationMenus
} = useNavigationMenu(ref);
const navMenuResolvedButMissing = hasResolvedNavigationMenus && isNavigationMenuMissing;
const {
@@ -34824,7 +36011,7 @@ function Navigation({
const isResponsive = 'never' !== overlayMenu;
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
ref: navRef,
- className: classnames_default()(className, {
+ className: dist_clsx(className, {
'items-justified-right': justifyContent === 'right',
'items-justified-space-between': justifyContent === 'space-between',
'items-justified-left': justifyContent === 'left',
@@ -34844,13 +36031,6 @@ function Navigation({
backgroundColor: !backgroundColor?.slug && backgroundColor?.color
}
});
-
- // Turn on contrast checker for web only since it's not supported on mobile yet.
- const enableContrastChecking = external_wp_element_namespaceObject.Platform.OS === 'web';
- const [detectedBackgroundColor, setDetectedBackgroundColor] = (0,external_wp_element_namespaceObject.useState)();
- const [detectedColor, setDetectedColor] = (0,external_wp_element_namespaceObject.useState)();
- const [detectedOverlayBackgroundColor, setDetectedOverlayBackgroundColor] = (0,external_wp_element_namespaceObject.useState)();
- const [detectedOverlayColor, setDetectedOverlayColor] = (0,external_wp_element_namespaceObject.useState)();
const onSelectClassicMenu = async classicMenu => {
return convertClassicMenu(classicMenu.id, classicMenu.name, 'draft');
};
@@ -34888,23 +36068,6 @@ function Navigation({
}
}, [classicMenuConversionStatus, classicMenuConversionError, hideClassicMenuConversionNotice, showClassicMenuConversionNotice, createNavigationMenuPost?.id, handleUpdateMenu]);
(0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!enableContrastChecking) {
- return;
- }
- detectColors(navRef.current, setDetectedColor, setDetectedBackgroundColor);
- const subMenuElement = navRef.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');
- if (!subMenuElement) {
- return;
- }
-
- // Only detect submenu overlay colors if they have previously been explicitly set.
- // This avoids the contrast checker from reporting on inherited submenu colors and
- // showing the contrast warning twice.
- if (overlayTextColor.color || overlayBackgroundColor.color) {
- detectColors(subMenuElement, setDetectedOverlayColor, setDetectedOverlayBackgroundColor);
- }
- }, [enableContrastChecking, overlayTextColor.color, overlayBackgroundColor.color]);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
if (!isSelected && !isInnerBlockSelected) {
hideNavigationMenuPermissionsNotice();
}
@@ -34912,13 +36075,13 @@ function Navigation({
if (ref && !navMenuResolvedButMissing && hasResolvedCanUserUpdateNavigationMenu && !canUserUpdateNavigationMenu) {
showNavigationMenuPermissionsNotice((0,external_wp_i18n_namespaceObject.__)('You do not have permission to edit this Menu. Any changes made will not be saved.'));
}
- if (!ref && hasResolvedCanUserCreateNavigationMenu && !canUserCreateNavigationMenu) {
+ if (!ref && hasResolvedCanUserCreateNavigationMenus && !canUserCreateNavigationMenus) {
showNavigationMenuPermissionsNotice((0,external_wp_i18n_namespaceObject.__)('You do not have permission to create Navigation Menus.'));
}
}
- }, [isSelected, isInnerBlockSelected, canUserUpdateNavigationMenu, hasResolvedCanUserUpdateNavigationMenu, canUserCreateNavigationMenu, hasResolvedCanUserCreateNavigationMenu, ref, hideNavigationMenuPermissionsNotice, showNavigationMenuPermissionsNotice, navMenuResolvedButMissing]);
- const hasManagePermissions = canUserCreateNavigationMenu || canUserUpdateNavigationMenu;
- const overlayMenuPreviewClasses = classnames_default()('wp-block-navigation__overlay-menu-preview', {
+ }, [isSelected, isInnerBlockSelected, canUserUpdateNavigationMenu, hasResolvedCanUserUpdateNavigationMenu, canUserCreateNavigationMenus, hasResolvedCanUserCreateNavigationMenus, ref, hideNavigationMenuPermissionsNotice, showNavigationMenuPermissionsNotice, navMenuResolvedButMissing]);
+ const hasManagePermissions = canUserCreateNavigationMenus || canUserUpdateNavigationMenu;
+ const overlayMenuPreviewClasses = dist_clsx('wp-block-navigation__overlay-menu-preview', {
open: overlayMenuPreview
});
const submenuAccessibilityNotice = !showSubmenuIcon && !openSubmenusOnClick ? (0,external_wp_i18n_namespaceObject.__)('The current menu options offer reduced accessibility for users and are not recommended. Enabling either "Open on Click" or "Show arrow" offers enhanced accessibility by allowing keyboard users to browse submenus selectively.') : '';
@@ -34930,171 +36093,183 @@ function Navigation({
isFirstRender.current = false;
}, [submenuAccessibilityNotice]);
const overlayMenuPreviewId = (0,external_wp_compose_namespaceObject.useInstanceId)(OverlayMenuPreview, `overlay-menu-preview`);
- const colorGradientSettings = (0,external_wp_blockEditor_namespaceObject.__experimentalUseMultipleOriginColorsAndGradients)();
- const stylingInspectorControls = (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, hasSubmenuIndicatorSetting && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Display')
- }, isResponsive && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- className: overlayMenuPreviewClasses,
- onClick: () => {
- setOverlayMenuPreview(!overlayMenuPreview);
- },
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Overlay menu controls'),
- "aria-controls": overlayMenuPreviewId,
- "aria-expanded": overlayMenuPreview
- }, hasIcon && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(OverlayMenuIcon, {
- icon: icon
- }), (0,external_React_namespaceObject.createElement)(build_module_icon, {
- icon: library_close
- })), !hasIcon && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("span", null, (0,external_wp_i18n_namespaceObject.__)('Menu')), (0,external_React_namespaceObject.createElement)("span", null, (0,external_wp_i18n_namespaceObject.__)('Close')))), (0,external_React_namespaceObject.createElement)("div", {
- id: overlayMenuPreviewId
- }, overlayMenuPreview && (0,external_React_namespaceObject.createElement)(OverlayMenuPreview, {
- setAttributes: setAttributes,
- hasIcon: hasIcon,
- icon: icon,
- hidden: !overlayMenuPreview
- }))), (0,external_React_namespaceObject.createElement)("h3", null, (0,external_wp_i18n_namespaceObject.__)('Overlay Menu')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Configure overlay menu'),
- value: overlayMenu,
- help: (0,external_wp_i18n_namespaceObject.__)('Collapses the navigation options in a menu icon opening an overlay.'),
- onChange: value => setAttributes({
- overlayMenu: value
- }),
- isBlock: true,
- hideLabelFromVision: true
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "never",
- label: (0,external_wp_i18n_namespaceObject.__)('Off')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "mobile",
- label: (0,external_wp_i18n_namespaceObject.__)('Mobile')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "always",
- label: (0,external_wp_i18n_namespaceObject.__)('Always')
- })), hasSubmenus && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("h3", null, (0,external_wp_i18n_namespaceObject.__)('Submenus')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- checked: openSubmenusOnClick,
- onChange: value => {
- setAttributes({
- openSubmenusOnClick: value,
- ...(value && {
- showSubmenuIcon: true
- }) // Make sure arrows are shown when we toggle this on.
- });
- },
- label: (0,external_wp_i18n_namespaceObject.__)('Open on click')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- checked: showSubmenuIcon,
- onChange: value => {
- setAttributes({
- showSubmenuIcon: value
- });
- },
- disabled: attributes.openSubmenusOnClick,
- label: (0,external_wp_i18n_namespaceObject.__)('Show arrow')
- }), submenuAccessibilityNotice && (0,external_React_namespaceObject.createElement)("div", null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Notice, {
- spokenMessage: null,
- status: "warning",
- isDismissible: false
- }, submenuAccessibilityNotice))))), colorGradientSettings.hasColorsOrGradients && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "color"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalColorGradientSettingsDropdown, {
- __experimentalIsRenderedInSidebar: true,
- settings: [{
- colorValue: textColor.color,
- label: (0,external_wp_i18n_namespaceObject.__)('Text'),
- onColorChange: setTextColor,
- resetAllFilter: () => setTextColor()
- }, {
- colorValue: backgroundColor.color,
- label: (0,external_wp_i18n_namespaceObject.__)('Background'),
- onColorChange: setBackgroundColor,
- resetAllFilter: () => setBackgroundColor()
- }, {
- colorValue: overlayTextColor.color,
- label: (0,external_wp_i18n_namespaceObject.__)('Submenu & overlay text'),
- onColorChange: setOverlayTextColor,
- resetAllFilter: () => setOverlayTextColor()
- }, {
- colorValue: overlayBackgroundColor.color,
- label: (0,external_wp_i18n_namespaceObject.__)('Submenu & overlay background'),
- onColorChange: setOverlayBackgroundColor,
- resetAllFilter: () => setOverlayBackgroundColor()
- }],
- panelId: clientId,
- ...colorGradientSettings,
- gradients: [],
- disableCustomGradients: true
- }), enableContrastChecking && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.ContrastChecker, {
- backgroundColor: detectedBackgroundColor,
- textColor: detectedColor
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.ContrastChecker, {
- backgroundColor: detectedOverlayBackgroundColor,
- textColor: detectedOverlayColor
- }))));
+ const stylingInspectorControls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: hasSubmenuIndicatorSetting && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Display'),
+ children: [isResponsive && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Button, {
+ className: overlayMenuPreviewClasses,
+ onClick: () => {
+ setOverlayMenuPreview(!overlayMenuPreview);
+ },
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Overlay menu controls'),
+ "aria-controls": overlayMenuPreviewId,
+ "aria-expanded": overlayMenuPreview,
+ children: [hasIcon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OverlayMenuIcon, {
+ icon: icon
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: library_close
+ })]
+ }), !hasIcon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Menu')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Close')
+ })]
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ id: overlayMenuPreviewId,
+ children: overlayMenuPreview && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OverlayMenuPreview, {
+ setAttributes: setAttributes,
+ hasIcon: hasIcon,
+ icon: icon,
+ hidden: !overlayMenuPreview
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h3", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Overlay Menu')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Configure overlay menu'),
+ value: overlayMenu,
+ help: (0,external_wp_i18n_namespaceObject.__)('Collapses the navigation options in a menu icon opening an overlay.'),
+ onChange: value => setAttributes({
+ overlayMenu: value
+ }),
+ isBlock: true,
+ hideLabelFromVision: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "never",
+ label: (0,external_wp_i18n_namespaceObject.__)('Off')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "mobile",
+ label: (0,external_wp_i18n_namespaceObject.__)('Mobile')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "always",
+ label: (0,external_wp_i18n_namespaceObject.__)('Always')
+ })]
+ }), hasSubmenus && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h3", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Submenus')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ checked: openSubmenusOnClick,
+ onChange: value => {
+ setAttributes({
+ openSubmenusOnClick: value,
+ ...(value && {
+ showSubmenuIcon: true
+ }) // Make sure arrows are shown when we toggle this on.
+ });
+ },
+ label: (0,external_wp_i18n_namespaceObject.__)('Open on click')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ checked: showSubmenuIcon,
+ onChange: value => {
+ setAttributes({
+ showSubmenuIcon: value
+ });
+ },
+ disabled: attributes.openSubmenusOnClick,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show arrow')
+ }), submenuAccessibilityNotice && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
+ spokenMessage: null,
+ status: "warning",
+ isDismissible: false,
+ children: submenuAccessibilityNotice
+ })
+ })]
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "color",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorTools, {
+ textColor: textColor,
+ setTextColor: setTextColor,
+ backgroundColor: backgroundColor,
+ setBackgroundColor: setBackgroundColor,
+ overlayTextColor: overlayTextColor,
+ setOverlayTextColor: setOverlayTextColor,
+ overlayBackgroundColor: overlayBackgroundColor,
+ setOverlayBackgroundColor: setOverlayBackgroundColor,
+ clientId: clientId,
+ navRef: navRef
+ })
+ })]
+ });
const accessibleDescriptionId = `${clientId}-desc`;
const isManageMenusButtonDisabled = !hasManagePermissions || !hasResolvedNavigationMenus;
if (hasUnsavedBlocks && !isCreatingNavigationMenu) {
- return (0,external_React_namespaceObject.createElement)(TagName, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(TagName, {
...blockProps,
- "aria-describedby": !isPlaceholder ? accessibleDescriptionId : undefined
- }, (0,external_React_namespaceObject.createElement)(AccessibleDescription, {
- id: accessibleDescriptionId
- }, (0,external_wp_i18n_namespaceObject.__)('Unsaved Navigation Menu.')), (0,external_React_namespaceObject.createElement)(menu_inspector_controls, {
- clientId: clientId,
- createNavigationMenuIsSuccess: createNavigationMenuIsSuccess,
- createNavigationMenuIsError: createNavigationMenuIsError,
- currentMenuId: ref,
- isNavigationMenuMissing: isNavigationMenuMissing,
- isManageMenusButtonDisabled: isManageMenusButtonDisabled,
- onCreateNew: createUntitledEmptyNavigationMenu,
- onSelectClassicMenu: onSelectClassicMenu,
- onSelectNavigationMenu: onSelectNavigationMenu,
- isLoading: isLoading,
- blockEditingMode: blockEditingMode
- }), blockEditingMode === 'default' && stylingInspectorControls, (0,external_React_namespaceObject.createElement)(ResponsiveWrapper, {
- id: clientId,
- onToggle: setResponsiveMenuVisibility,
- isOpen: isResponsiveMenuOpen,
- hasIcon: hasIcon,
- icon: icon,
- isResponsive: isResponsive,
- isHiddenByDefault: 'always' === overlayMenu,
- overlayBackgroundColor: overlayBackgroundColor,
- overlayTextColor: overlayTextColor
- }, (0,external_React_namespaceObject.createElement)(UnsavedInnerBlocks, {
- createNavigationMenu: createNavigationMenu,
- blocks: uncontrolledInnerBlocks,
- hasSelection: isSelected || isInnerBlockSelected
- })));
+ "aria-describedby": !isPlaceholder ? accessibleDescriptionId : undefined,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AccessibleDescription, {
+ id: accessibleDescriptionId,
+ children: (0,external_wp_i18n_namespaceObject.__)('Unsaved Navigation Menu.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(menu_inspector_controls, {
+ clientId: clientId,
+ createNavigationMenuIsSuccess: createNavigationMenuIsSuccess,
+ createNavigationMenuIsError: createNavigationMenuIsError,
+ currentMenuId: ref,
+ isNavigationMenuMissing: isNavigationMenuMissing,
+ isManageMenusButtonDisabled: isManageMenusButtonDisabled,
+ onCreateNew: createUntitledEmptyNavigationMenu,
+ onSelectClassicMenu: onSelectClassicMenu,
+ onSelectNavigationMenu: onSelectNavigationMenu,
+ isLoading: isLoading,
+ blockEditingMode: blockEditingMode
+ }), blockEditingMode === 'default' && stylingInspectorControls, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResponsiveWrapper, {
+ id: clientId,
+ onToggle: setResponsiveMenuVisibility,
+ isOpen: isResponsiveMenuOpen,
+ hasIcon: hasIcon,
+ icon: icon,
+ isResponsive: isResponsive,
+ isHiddenByDefault: 'always' === overlayMenu,
+ overlayBackgroundColor: overlayBackgroundColor,
+ overlayTextColor: overlayTextColor,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(UnsavedInnerBlocks, {
+ createNavigationMenu: createNavigationMenu,
+ blocks: uncontrolledInnerBlocks,
+ hasSelection: isSelected || isInnerBlockSelected
+ })
+ })]
+ });
}
// Show a warning if the selected menu is no longer available.
// TODO - the user should be able to select a new one?
if (ref && isNavigationMenuMissing) {
- return (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(menu_inspector_controls, {
- clientId: clientId,
- createNavigationMenuIsSuccess: createNavigationMenuIsSuccess,
- createNavigationMenuIsError: createNavigationMenuIsError,
- currentMenuId: ref,
- isNavigationMenuMissing: isNavigationMenuMissing,
- isManageMenusButtonDisabled: isManageMenusButtonDisabled,
- onCreateNew: createUntitledEmptyNavigationMenu,
- onSelectClassicMenu: onSelectClassicMenu,
- onSelectNavigationMenu: onSelectNavigationMenu,
- isLoading: isLoading,
- blockEditingMode: blockEditingMode
- }), (0,external_React_namespaceObject.createElement)(deleted_navigation_warning, {
- onCreateNew: createUntitledEmptyNavigationMenu
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(TagName, {
+ ...blockProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(menu_inspector_controls, {
+ clientId: clientId,
+ createNavigationMenuIsSuccess: createNavigationMenuIsSuccess,
+ createNavigationMenuIsError: createNavigationMenuIsError,
+ currentMenuId: ref,
+ isNavigationMenuMissing: isNavigationMenuMissing,
+ isManageMenusButtonDisabled: isManageMenusButtonDisabled,
+ onCreateNew: createUntitledEmptyNavigationMenu,
+ onSelectClassicMenu: onSelectClassicMenu,
+ onSelectNavigationMenu: onSelectNavigationMenu,
+ isLoading: isLoading,
+ blockEditingMode: blockEditingMode
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(deleted_navigation_warning, {
+ onCreateNew: createUntitledEmptyNavigationMenu
+ })]
+ });
}
if (isEntityAvailable && hasAlreadyRendered) {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_i18n_namespaceObject.__)('Block cannot be rendered inside itself.')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Block cannot be rendered inside itself.')
+ })
+ });
}
const PlaceholderComponent = CustomPlaceholder ? CustomPlaceholder : NavigationPlaceholder;
@@ -35109,74 +36284,81 @@ function Navigation({
*/
if (isPlaceholder && CustomPlaceholder) {
- return (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(PlaceholderComponent, {
- isSelected: isSelected,
- currentMenuId: ref,
- clientId: clientId,
- canUserCreateNavigationMenu: canUserCreateNavigationMenu,
- isResolvingCanUserCreateNavigationMenu: isResolvingCanUserCreateNavigationMenu,
- onSelectNavigationMenu: onSelectNavigationMenu,
- onSelectClassicMenu: onSelectClassicMenu,
- onCreateEmpty: createUntitledEmptyNavigationMenu
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PlaceholderComponent, {
+ isSelected: isSelected,
+ currentMenuId: ref,
+ clientId: clientId,
+ canUserCreateNavigationMenus: canUserCreateNavigationMenus,
+ isResolvingCanUserCreateNavigationMenus: isResolvingCanUserCreateNavigationMenus,
+ onSelectNavigationMenu: onSelectNavigationMenu,
+ onSelectClassicMenu: onSelectClassicMenu,
+ onCreateEmpty: createUntitledEmptyNavigationMenu
+ })
+ });
}
- return (0,external_React_namespaceObject.createElement)(external_wp_coreData_namespaceObject.EntityProvider, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_coreData_namespaceObject.EntityProvider, {
kind: "postType",
type: "wp_navigation",
- id: ref
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RecursionProvider, {
- uniqueId: recursionId
- }, (0,external_React_namespaceObject.createElement)(menu_inspector_controls, {
- clientId: clientId,
- createNavigationMenuIsSuccess: createNavigationMenuIsSuccess,
- createNavigationMenuIsError: createNavigationMenuIsError,
- currentMenuId: ref,
- isNavigationMenuMissing: isNavigationMenuMissing,
- isManageMenusButtonDisabled: isManageMenusButtonDisabled,
- onCreateNew: createUntitledEmptyNavigationMenu,
- onSelectClassicMenu: onSelectClassicMenu,
- onSelectNavigationMenu: onSelectNavigationMenu,
- isLoading: isLoading,
- blockEditingMode: blockEditingMode
- }), blockEditingMode === 'default' && stylingInspectorControls, blockEditingMode === 'default' && isEntityAvailable && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "advanced"
- }, hasResolvedCanUserUpdateNavigationMenu && canUserUpdateNavigationMenu && (0,external_React_namespaceObject.createElement)(NavigationMenuNameControl, null), hasResolvedCanUserDeleteNavigationMenu && canUserDeleteNavigationMenu && (0,external_React_namespaceObject.createElement)(NavigationMenuDeleteControl, {
- onDelete: (deletedMenuTitle = '') => {
- replaceInnerBlocks(clientId, []);
- showNavigationMenuStatusNotice((0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: the name of a menu (e.g. Header navigation).
- (0,external_wp_i18n_namespaceObject.__)('Navigation menu %s successfully deleted.'), deletedMenuTitle));
- }
- }), (0,external_React_namespaceObject.createElement)(manage_menus_button, {
- disabled: isManageMenusButtonDisabled,
- className: "wp-block-navigation-manage-menus-button"
- })), (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps,
- "aria-describedby": !isPlaceholder && !isLoading ? accessibleDescriptionId : undefined
- }, isLoading && (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-navigation__loading-indicator-container"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, {
- className: "wp-block-navigation__loading-indicator"
- })), !isLoading && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(AccessibleMenuDescription, {
- id: accessibleDescriptionId
- }), (0,external_React_namespaceObject.createElement)(ResponsiveWrapper, {
- id: clientId,
- onToggle: setResponsiveMenuVisibility,
- hasIcon: hasIcon,
- icon: icon,
- isOpen: isResponsiveMenuOpen,
- isResponsive: isResponsive,
- isHiddenByDefault: 'always' === overlayMenu,
- overlayBackgroundColor: overlayBackgroundColor,
- overlayTextColor: overlayTextColor
- }, isEntityAvailable && (0,external_React_namespaceObject.createElement)(NavigationInnerBlocks, {
- clientId: clientId,
- hasCustomPlaceholder: !!CustomPlaceholder,
- templateLock: templateLock,
- orientation: orientation
- }))))));
+ id: ref,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.RecursionProvider, {
+ uniqueId: recursionId,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(menu_inspector_controls, {
+ clientId: clientId,
+ createNavigationMenuIsSuccess: createNavigationMenuIsSuccess,
+ createNavigationMenuIsError: createNavigationMenuIsError,
+ currentMenuId: ref,
+ isNavigationMenuMissing: isNavigationMenuMissing,
+ isManageMenusButtonDisabled: isManageMenusButtonDisabled,
+ onCreateNew: createUntitledEmptyNavigationMenu,
+ onSelectClassicMenu: onSelectClassicMenu,
+ onSelectNavigationMenu: onSelectNavigationMenu,
+ isLoading: isLoading,
+ blockEditingMode: blockEditingMode
+ }), blockEditingMode === 'default' && stylingInspectorControls, blockEditingMode === 'default' && isEntityAvailable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "advanced",
+ children: [hasResolvedCanUserUpdateNavigationMenu && canUserUpdateNavigationMenu && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationMenuNameControl, {}), hasResolvedCanUserDeleteNavigationMenu && canUserDeleteNavigationMenu && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationMenuDeleteControl, {
+ onDelete: () => {
+ replaceInnerBlocks(clientId, []);
+ showNavigationMenuStatusNotice((0,external_wp_i18n_namespaceObject.__)('Navigation Menu successfully deleted.'));
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(manage_menus_button, {
+ disabled: isManageMenusButtonDisabled,
+ className: "wp-block-navigation-manage-menus-button"
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(TagName, {
+ ...blockProps,
+ "aria-describedby": !isPlaceholder && !isLoading ? accessibleDescriptionId : undefined,
+ children: [isLoading && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-navigation__loading-indicator-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {
+ className: "wp-block-navigation__loading-indicator"
+ })
+ }), !isLoading && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AccessibleMenuDescription, {
+ id: accessibleDescriptionId
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResponsiveWrapper, {
+ id: clientId,
+ onToggle: setResponsiveMenuVisibility,
+ hasIcon: hasIcon,
+ icon: icon,
+ isOpen: isResponsiveMenuOpen,
+ isResponsive: isResponsive,
+ isHiddenByDefault: 'always' === overlayMenu,
+ overlayBackgroundColor: overlayBackgroundColor,
+ overlayTextColor: overlayTextColor,
+ children: isEntityAvailable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationInnerBlocks, {
+ clientId: clientId,
+ hasCustomPlaceholder: !!CustomPlaceholder,
+ templateLock: templateLock,
+ orientation: orientation
+ })
+ })]
+ })]
+ })]
+ })
+ });
}
/* harmony default export */ const navigation_edit = ((0,external_wp_blockEditor_namespaceObject.withColors)({
textColor: 'color'
@@ -35189,11 +36371,11 @@ function Navigation({
})(Navigation));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/save.js
-
/**
* WordPress dependencies
*/
+
function navigation_save_save({
attributes
}) {
@@ -35203,11 +36385,10 @@ function navigation_save_save({
// `wp_navigation` entity rather than the hard-coded block html.
return;
}
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/deprecated.js
-
/**
* WordPress dependencies
*/
@@ -35218,6 +36399,7 @@ function navigation_save_save({
* Internal dependencies
*/
+
const TYPOGRAPHY_PRESET_DEPRECATION_MAP = {
fontStyle: 'var:preset|font-style|',
fontWeight: 'var:preset|font-weight|',
@@ -35341,7 +36523,7 @@ const navigation_deprecated_v6 = {
}
},
save() {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {});
},
isEligible: ({
navigationMenuId
@@ -35432,7 +36614,7 @@ const navigation_deprecated_v5 = {
}
},
save() {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {});
},
isEligible: ({
itemsJustification,
@@ -35518,7 +36700,7 @@ const navigation_deprecated_v4 = {
}
},
save() {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {});
},
migrate: (0,external_wp_compose_namespaceObject.compose)(migrateIdToRef, deprecated_migrateWithLayout, migrate_font_family),
isEligible({
@@ -35631,7 +36813,7 @@ const navigation_deprecated_deprecated = [navigation_deprecated_v6, navigation_d
},
migrate: (0,external_wp_compose_namespaceObject.compose)(migrateIdToRef, deprecated_migrateWithLayout, migrate_font_family, migrateIsResponsive),
save() {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {});
}
}, {
attributes: {
@@ -35678,7 +36860,7 @@ const navigation_deprecated_deprecated = [navigation_deprecated_v6, navigation_d
__experimentalTextDecoration: true
},
save() {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {});
},
isEligible(attributes) {
if (!attributes.style || !attributes.style.typography) {
@@ -35745,7 +36927,7 @@ const navigation_deprecated_deprecated = [navigation_deprecated_v6, navigation_d
};
}),
save() {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {});
}
}];
/* harmony default export */ const navigation_deprecated = (navigation_deprecated_deprecated);
@@ -35888,15 +37070,6 @@ const navigation_metadata = {
type: "flex"
}
},
- __experimentalStyle: {
- elements: {
- link: {
- color: {
- text: "inherit"
- }
- }
- }
- },
interactivity: true,
renaming: false
},
@@ -35950,21 +37123,21 @@ const navigation_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/custom-link.js
-
/**
* WordPress dependencies
*/
-const customLink = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const customLink = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"
+ })
+});
/* harmony default export */ const custom_link = (customLink);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-link/edit.js
-
/**
* External dependencies
*/
@@ -35993,7 +37166,10 @@ const customLink = (0,external_React_namespaceObject.createElement)(external_wp_
-const edit_DEFAULT_BLOCK = {
+
+
+
+const navigation_link_edit_DEFAULT_BLOCK = {
name: 'core/navigation-link'
};
@@ -36041,7 +37217,7 @@ const useIsDraggingWithin = elementRef => {
ownerDocument.removeEventListener('dragend', handleDragEnd);
ownerDocument.removeEventListener('dragenter', handleDragEnter);
};
- }, []);
+ }, [elementRef]);
return isDraggingWithin;
};
const useIsInvalidLink = (kind, type, id) => {
@@ -36094,6 +37270,87 @@ function getMissingText(type) {
}
return missingText;
}
+
+/*
+ * Warning, this duplicated in
+ * packages/block-library/src/navigation-submenu/edit.js
+ * Consider reuseing this components for both blocks.
+ */
+function Controls({
+ attributes,
+ setAttributes,
+ setIsLabelFieldFocused
+}) {
+ const {
+ label,
+ url,
+ description,
+ title,
+ rel
+ } = attributes;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ value: label ? (0,external_wp_dom_namespaceObject.__unstableStripHTML)(label) : '',
+ onChange: labelValue => {
+ setAttributes({
+ label: labelValue
+ });
+ },
+ label: (0,external_wp_i18n_namespaceObject.__)('Text'),
+ autoComplete: "off",
+ onFocus: () => setIsLabelFieldFocused(true),
+ onBlur: () => setIsLabelFieldFocused(false)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ value: url ? (0,external_wp_url_namespaceObject.safeDecodeURI)(url) : '',
+ onChange: urlValue => {
+ updateAttributes({
+ url: urlValue
+ }, setAttributes, attributes);
+ },
+ label: (0,external_wp_i18n_namespaceObject.__)('Link'),
+ autoComplete: "off"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextareaControl, {
+ __nextHasNoMarginBottom: true,
+ value: description || '',
+ onChange: descriptionValue => {
+ setAttributes({
+ description: descriptionValue
+ });
+ },
+ label: (0,external_wp_i18n_namespaceObject.__)('Description'),
+ help: (0,external_wp_i18n_namespaceObject.__)('The description will be displayed in the menu if the current theme supports it.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ value: title || '',
+ onChange: titleValue => {
+ setAttributes({
+ title: titleValue
+ });
+ },
+ label: (0,external_wp_i18n_namespaceObject.__)('Title attribute'),
+ autoComplete: "off",
+ help: (0,external_wp_i18n_namespaceObject.__)('Additional information to help clarify the purpose of the link.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ value: rel || '',
+ onChange: relValue => {
+ setAttributes({
+ rel: relValue
+ });
+ },
+ label: (0,external_wp_i18n_namespaceObject.__)('Rel attribute'),
+ autoComplete: "off",
+ help: (0,external_wp_i18n_namespaceObject.__)('The relationship of the linked URL as space-separated link types.')
+ })]
+ });
+}
function NavigationLinkEdit({
attributes,
isSelected,
@@ -36110,8 +37367,6 @@ function NavigationLinkEdit({
type,
url,
description,
- rel,
- title,
kind
} = attributes;
const [isInvalid, isDraft] = useIsInvalidLink(kind, type, id);
@@ -36120,9 +37375,14 @@ function NavigationLinkEdit({
} = context;
const {
replaceBlock,
- __unstableMarkNextChangeAsNotPersistent
+ __unstableMarkNextChangeAsNotPersistent,
+ selectBlock,
+ selectPreviousBlock
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- const [isLinkOpen, setIsLinkOpen] = (0,external_wp_element_namespaceObject.useState)(false);
+ // Have the link editing ui open on mount when lacking a url and selected.
+ const [isLinkOpen, setIsLinkOpen] = (0,external_wp_element_namespaceObject.useState)(isSelected && !url);
+ // Store what element opened the popover, so we know where to return focus to (toolbar button vs navigation link text)
+ const [openedBy, setOpenedBy] = (0,external_wp_element_namespaceObject.useState)(null);
// Use internal state instead of a ref to make sure that the component
// re-renders when the popover's anchor updates.
const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
@@ -36130,19 +37390,19 @@ function NavigationLinkEdit({
const isDraggingWithin = useIsDraggingWithin(listItemRef);
const itemLabelPlaceholder = (0,external_wp_i18n_namespaceObject.__)('Add label…');
const ref = (0,external_wp_element_namespaceObject.useRef)();
+ const linkUIref = (0,external_wp_element_namespaceObject.useRef)();
+ const prevUrl = (0,external_wp_compose_namespaceObject.usePrevious)(url);
// Change the label using inspector causes rich text to change focus on firefox.
// This is a workaround to keep the focus on the label field when label filed is focused we don't render the rich text.
const [isLabelFieldFocused, setIsLabelFieldFocused] = (0,external_wp_element_namespaceObject.useState)(false);
const {
- innerBlocks,
isAtMaxNesting,
isTopLevelLink,
isParentOfSelectedBlock,
hasChildren
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
- getBlocks,
getBlockCount,
getBlockName,
getBlockRootClientId,
@@ -36150,30 +37410,28 @@ function NavigationLinkEdit({
getBlockParentsByBlockName
} = select(external_wp_blockEditor_namespaceObject.store);
return {
- innerBlocks: getBlocks(clientId),
isAtMaxNesting: getBlockParentsByBlockName(clientId, ['core/navigation-link', 'core/navigation-submenu']).length >= maxNestingLevel,
isTopLevelLink: getBlockName(getBlockRootClientId(clientId)) === 'core/navigation',
isParentOfSelectedBlock: hasSelectedInnerBlock(clientId, true),
hasChildren: !!getBlockCount(clientId)
};
- }, [clientId]);
+ }, [clientId, maxNestingLevel]);
+ const {
+ getBlocks
+ } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
/**
* Transform to submenu block.
*/
- function transformToSubmenu() {
- const newSubmenu = (0,external_wp_blocks_namespaceObject.createBlock)('core/navigation-submenu', attributes, innerBlocks.length > 0 ? innerBlocks : [(0,external_wp_blocks_namespaceObject.createBlock)('core/navigation-link')]);
- replaceBlock(clientId, newSubmenu);
- }
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- // Show the LinkControl on mount if the URL is empty
- // ( When adding a new menu item)
- // This can't be done in the useState call because it conflicts
- // with the autofocus behavior of the BlockListBlock component.
- if (!url) {
- setIsLinkOpen(true);
+ const transformToSubmenu = () => {
+ let innerBlocks = getBlocks(clientId);
+ if (innerBlocks.length === 0) {
+ innerBlocks = [(0,external_wp_blocks_namespaceObject.createBlock)('core/navigation-link')];
+ selectBlock(innerBlocks[0].clientId);
}
- }, [url]);
+ const newSubmenu = (0,external_wp_blocks_namespaceObject.createBlock)('core/navigation-submenu', attributes, innerBlocks);
+ replaceBlock(clientId, newSubmenu);
+ };
(0,external_wp_element_namespaceObject.useEffect)(() => {
// If block has inner blocks, transform to Submenu.
if (hasChildren) {
@@ -36184,29 +37442,14 @@ function NavigationLinkEdit({
}
}, [hasChildren]);
- /**
- * The hook shouldn't be necessary but due to a focus loss happening
- * when selecting a suggestion in the link popover, we force close on block unselection.
- */
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!isSelected) {
- setIsLinkOpen(false);
- }
- }, [isSelected]);
-
// If the LinkControl popover is open and the URL has changed, close the LinkControl and focus the label text.
(0,external_wp_element_namespaceObject.useEffect)(() => {
- if (isLinkOpen && url) {
- // Does this look like a URL and have something TLD-ish?
- if ((0,external_wp_url_namespaceObject.isURL)((0,external_wp_url_namespaceObject.prependHTTP)(label)) && /^.+\.[a-z]+/.test(label)) {
- // Focus and select the label text.
- selectLabelText();
- } else {
- // Focus it (but do not select).
- (0,external_wp_dom_namespaceObject.placeCaretAtHorizontalEdge)(ref.current, true);
- }
+ // We only want to do this when the URL has gone from nothing to a new URL AND the label looks like a URL
+ if (!prevUrl && url && isLinkOpen && (0,external_wp_url_namespaceObject.isURL)((0,external_wp_url_namespaceObject.prependHTTP)(label)) && /^.+\.[a-z]+/.test(label)) {
+ // Focus and select the label text.
+ selectLabelText();
}
- }, [url]);
+ }, [prevUrl, url, isLinkOpen, label]);
/**
* Focus the Link label text and select it.
@@ -36255,14 +37498,20 @@ function NavigationLinkEdit({
customBackgroundColor
} = getColors(context, !isTopLevelLink);
function onKeyDown(event) {
- if (external_wp_keycodes_namespaceObject.isKeyboardEvent.primary(event, 'k') || (!url || isDraft || isInvalid) && event.keyCode === external_wp_keycodes_namespaceObject.ENTER) {
+ if (external_wp_keycodes_namespaceObject.isKeyboardEvent.primary(event, 'k')) {
+ // Required to prevent the command center from opening,
+ // as it shares the CMD+K shortcut.
+ // See https://github.com/WordPress/gutenberg/pull/59845.
event.preventDefault();
+ // If this link is a child of a parent submenu item, the parent submenu item event will also open, closing this popover
+ event.stopPropagation();
setIsLinkOpen(true);
+ setOpenedBy(ref.current);
}
}
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([setPopoverAnchor, listItemRef]),
- className: classnames_default()('wp-block-navigation-item', {
+ className: dist_clsx('wp-block-navigation-item', {
'is-editing': isSelected || isParentOfSelectedBlock,
'is-dragging-within': isDraggingWithin,
'has-link': !!url,
@@ -36282,202 +37531,200 @@ function NavigationLinkEdit({
...blockProps,
className: 'remove-outline' // Remove the outline from the inner blocks container.
}, {
- defaultBlock: edit_DEFAULT_BLOCK,
+ defaultBlock: navigation_link_edit_DEFAULT_BLOCK,
directInsert: true,
renderAppender: false
});
if (!url || isInvalid || isDraft) {
- blockProps.onClick = () => setIsLinkOpen(true);
+ blockProps.onClick = () => {
+ setIsLinkOpen(true);
+ setOpenedBy(ref.current);
+ };
}
- const classes = classnames_default()('wp-block-navigation-item__content', {
+ const classes = dist_clsx('wp-block-navigation-item__content', {
'wp-block-navigation-link__placeholder': !url || isInvalid || isDraft
});
const missingText = getMissingText(type);
/* translators: Whether the navigation link is Invalid or a Draft. */
const placeholderText = `(${isInvalid ? (0,external_wp_i18n_namespaceObject.__)('Invalid') : (0,external_wp_i18n_namespaceObject.__)('Draft')})`;
const tooltipText = isInvalid || isDraft ? (0,external_wp_i18n_namespaceObject.__)('This item has been deleted, or is a draft') : (0,external_wp_i18n_namespaceObject.__)('This item is missing a link');
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- name: "link",
- icon: library_link,
- title: (0,external_wp_i18n_namespaceObject.__)('Link'),
- shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('k'),
- onClick: () => setIsLinkOpen(true)
- }), !isAtMaxNesting && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- name: "submenu",
- icon: add_submenu,
- title: (0,external_wp_i18n_namespaceObject.__)('Add submenu'),
- onClick: transformToSubmenu
- }))), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- value: label ? (0,external_wp_dom_namespaceObject.__unstableStripHTML)(label) : '',
- onChange: labelValue => {
- setAttributes({
- label: labelValue
- });
- },
- label: (0,external_wp_i18n_namespaceObject.__)('Label'),
- autoComplete: "off",
- onFocus: () => setIsLabelFieldFocused(true),
- onBlur: () => setIsLabelFieldFocused(false)
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- value: url ? (0,external_wp_url_namespaceObject.safeDecodeURI)(url) : '',
- onChange: urlValue => {
- updateAttributes({
- url: urlValue
- }, setAttributes, attributes);
- },
- label: (0,external_wp_i18n_namespaceObject.__)('URL'),
- autoComplete: "off"
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextareaControl, {
- __nextHasNoMarginBottom: true,
- value: description || '',
- onChange: descriptionValue => {
- setAttributes({
- description: descriptionValue
- });
- },
- label: (0,external_wp_i18n_namespaceObject.__)('Description'),
- help: (0,external_wp_i18n_namespaceObject.__)('The description will be displayed in the menu if the current theme supports it.')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- value: title || '',
- onChange: titleValue => {
- setAttributes({
- title: titleValue
- });
- },
- label: (0,external_wp_i18n_namespaceObject.__)('Title attribute'),
- autoComplete: "off",
- help: (0,external_wp_i18n_namespaceObject.__)('Additional information to help clarify the purpose of the link.')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- value: rel || '',
- onChange: relValue => {
- setAttributes({
- rel: relValue
- });
- },
- label: (0,external_wp_i18n_namespaceObject.__)('Rel attribute'),
- autoComplete: "off",
- help: (0,external_wp_i18n_namespaceObject.__)('The relationship of the linked URL as space-separated link types.')
- }))), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)("a", {
- className: classes
- }, !url ? (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-navigation-link__placeholder-text"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Tooltip, {
- text: tooltipText
- }, (0,external_React_namespaceObject.createElement)("span", null, missingText))) : (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, !isInvalid && !isDraft && !isLabelFieldFocused && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- ref: ref,
- identifier: "label",
- className: "wp-block-navigation-item__label",
- value: label,
- onChange: labelValue => setAttributes({
- label: labelValue
- }),
- onMerge: mergeBlocks,
- onReplace: onReplace,
- __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)('core/navigation-link')),
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Navigation link text'),
- placeholder: itemLabelPlaceholder,
- withoutInteractiveFormatting: true,
- allowedFormats: ['core/bold', 'core/italic', 'core/image', 'core/strikethrough'],
- onClick: () => {
- if (!url) {
- setIsLinkOpen(true);
- }
- }
- }), description && (0,external_React_namespaceObject.createElement)("span", {
- className: "wp-block-navigation-item__description"
- }, description)), (isInvalid || isDraft || isLabelFieldFocused) && (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-navigation-link__placeholder-text wp-block-navigation-link__label"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Tooltip, {
- text: tooltipText
- }, (0,external_React_namespaceObject.createElement)("span", {
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Navigation link text')
- },
- // Some attributes are stored in an escaped form. It's a legacy issue.
- // Ideally they would be stored in a raw, unescaped form.
- // Unescape is used here to "recover" the escaped characters
- // so they display without encoding.
- // See `updateAttributes` for more details.
- `${(0,external_wp_htmlEntities_namespaceObject.decodeEntities)(label)} ${isInvalid || isDraft ? placeholderText : ''}`.trim())))), isLinkOpen && (0,external_React_namespaceObject.createElement)(LinkUI, {
- clientId: clientId,
- link: attributes,
- onClose: () => {
- // If there is no link then remove the auto-inserted block.
- // This avoids empty blocks which can provided a poor UX.
- if (!url) {
- // Need to handle refocusing the Nav block or the inserter?
- onReplace([]);
- }
- },
- anchor: popoverAnchor,
- onRemove: removeLink,
- onChange: updatedValue => {
- updateAttributes(updatedValue, setAttributes, attributes);
- }
- })), (0,external_React_namespaceObject.createElement)("div", {
- ...innerBlocksProps
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ name: "link",
+ icon: library_link,
+ title: (0,external_wp_i18n_namespaceObject.__)('Link'),
+ shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('k'),
+ onClick: event => {
+ setIsLinkOpen(true);
+ setOpenedBy(event.currentTarget);
+ }
+ }), !isAtMaxNesting && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ name: "submenu",
+ icon: add_submenu,
+ title: (0,external_wp_i18n_namespaceObject.__)('Add submenu'),
+ onClick: transformToSubmenu
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Controls, {
+ attributes: attributes,
+ setAttributes: setAttributes,
+ setIsLabelFieldFocused: setIsLabelFieldFocused
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...blockProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("a", {
+ className: classes,
+ children: [!url ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-navigation-link__placeholder-text",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Tooltip, {
+ text: tooltipText,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: missingText
+ })
+ })
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [!isInvalid && !isDraft && !isLabelFieldFocused && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ ref: ref,
+ identifier: "label",
+ className: "wp-block-navigation-item__label",
+ value: label,
+ onChange: labelValue => setAttributes({
+ label: labelValue
+ }),
+ onMerge: mergeBlocks,
+ onReplace: onReplace,
+ __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)('core/navigation-link')),
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Navigation link text'),
+ placeholder: itemLabelPlaceholder,
+ withoutInteractiveFormatting: true,
+ allowedFormats: ['core/bold', 'core/italic', 'core/image', 'core/strikethrough']
+ }), description && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "wp-block-navigation-item__description",
+ children: description
+ })]
+ }), (isInvalid || isDraft || isLabelFieldFocused) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-navigation-link__placeholder-text wp-block-navigation-link__label",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Tooltip, {
+ text: tooltipText,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Navigation link text'),
+ children:
+ // Some attributes are stored in an escaped form. It's a legacy issue.
+ // Ideally they would be stored in a raw, unescaped form.
+ // Unescape is used here to "recover" the escaped characters
+ // so they display without encoding.
+ // See `updateAttributes` for more details.
+ `${(0,external_wp_htmlEntities_namespaceObject.decodeEntities)(label)} ${isInvalid || isDraft ? placeholderText : ''}`.trim()
+ })
+ })
+ })]
+ }), isLinkOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LinkUI, {
+ ref: linkUIref,
+ clientId: clientId,
+ link: attributes,
+ onClose: () => {
+ // If there is no link then remove the auto-inserted block.
+ // This avoids empty blocks which can provided a poor UX.
+ if (!url) {
+ // Fixes https://github.com/WordPress/gutenberg/issues/61361
+ // There's a chance we're closing due to the user selecting the browse all button.
+ // Only move focus if the focus is still within the popover ui. If it's not within
+ // the popover, it's because something has taken the focus from the popover, and
+ // we don't want to steal it back.
+ if (linkUIref.current.contains(window.document.activeElement)) {
+ // Select the previous block to keep focus nearby
+ selectPreviousBlock(clientId, true);
+ }
+
+ // Remove the link.
+ onReplace([]);
+ return;
+ }
+ setIsLinkOpen(false);
+ if (openedBy) {
+ openedBy.focus();
+ setOpenedBy(null);
+ } else if (ref.current) {
+ // select the ref when adding a new link
+ ref.current.focus();
+ } else {
+ // Fallback
+ selectPreviousBlock(clientId, true);
+ }
+ },
+ anchor: popoverAnchor,
+ onRemove: removeLink,
+ onChange: updatedValue => {
+ updateAttributes(updatedValue, setAttributes, attributes);
+ }
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...innerBlocksProps
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-link/save.js
-
/**
* WordPress dependencies
*/
+
function navigation_link_save_save() {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/page.js
-
/**
* WordPress dependencies
*/
-const page = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const page = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"
-}), (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"
+ })]
+});
/* harmony default export */ const library_page = (page);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/tag.js
-
/**
* WordPress dependencies
*/
-const tag = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const tag = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"
+ })
+});
/* harmony default export */ const library_tag = (tag);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/custom-post-type.js
-
/**
* WordPress dependencies
*/
-const customPostType = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const customPostType = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"
+ })
+});
/* harmony default export */ const custom_post_type = (customPostType);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-link/hooks.js
@@ -36644,7 +37891,6 @@ const navigation_link_transforms_transforms = {
/* harmony default export */ const navigation_link_transforms = (navigation_link_transforms_transforms);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-link/index.js
-
/**
* WordPress dependencies
*/
@@ -36730,6 +37976,7 @@ const navigation_link_metadata = {
+
const {
name: navigation_link_name
} = navigation_link_metadata;
@@ -36793,7 +38040,7 @@ const navigation_link_settings = {
};
},
save() {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {});
}
}],
transforms: navigation_link_transforms
@@ -36808,40 +38055,41 @@ const navigation_link_init = () => {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/remove-submenu.js
-
/**
* WordPress dependencies
*/
-const removeSubmenu = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const removeSubmenu = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"
+ })
+});
/* harmony default export */ const remove_submenu = (removeSubmenu);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-submenu/icons.js
-
/**
* WordPress dependencies
*/
-const ItemSubmenuIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+
+const ItemSubmenuIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
viewBox: "0 0 12 12",
- fill: "none"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M1.50002 4L6.00002 8L10.5 4",
- strokeWidth: "1.5"
-}));
+ fill: "none",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M1.50002 4L6.00002 8L10.5 4",
+ strokeWidth: "1.5"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-submenu/edit.js
-
/**
* External dependencies
*/
@@ -36863,7 +38111,6 @@ const ItemSubmenuIcon = () => (0,external_React_namespaceObject.createElement)(e
-
/**
* Internal dependencies
*/
@@ -36871,6 +38118,9 @@ const ItemSubmenuIcon = () => (0,external_React_namespaceObject.createElement)(e
+
+
+
const ALLOWED_BLOCKS = ['core/navigation-link', 'core/navigation-submenu', 'core/page-list'];
const navigation_submenu_edit_DEFAULT_BLOCK = {
name: 'core/navigation-link'
@@ -36967,9 +38217,12 @@ function NavigationSubmenuEdit({
} = context;
const {
__unstableMarkNextChangeAsNotPersistent,
- replaceBlock
+ replaceBlock,
+ selectBlock
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
const [isLinkOpen, setIsLinkOpen] = (0,external_wp_element_namespaceObject.useState)(false);
+ // Store what element opened the popover, so we know where to return focus to (toolbar button vs navigation link text)
+ const [openedBy, setOpenedBy] = (0,external_wp_element_namespaceObject.useState)(null);
// Use internal state instead of a ref to make sure that the component
// re-renders when the popover's anchor updates.
const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
@@ -37044,9 +38297,6 @@ function NavigationSubmenuEdit({
if ((0,external_wp_url_namespaceObject.isURL)((0,external_wp_url_namespaceObject.prependHTTP)(label)) && /^.+\.[a-z]+/.test(label)) {
// Focus and select the label text.
selectLabelText();
- } else {
- // Focus it (but do not select).
- (0,external_wp_dom_namespaceObject.placeCaretAtHorizontalEdge)(ref.current, true);
}
}
}, [url]);
@@ -37083,13 +38333,19 @@ function NavigationSubmenuEdit({
} = getColors(context, parentCount > 0);
function onKeyDown(event) {
if (external_wp_keycodes_namespaceObject.isKeyboardEvent.primary(event, 'k')) {
+ // Required to prevent the command center from opening,
+ // as it shares the CMD+K shortcut.
+ // See https://github.com/WordPress/gutenberg/pull/59845.
event.preventDefault();
+ // If we don't stop propogation, this event bubbles up to the parent submenu item
+ event.stopPropagation();
setIsLinkOpen(true);
+ setOpenedBy(ref.current);
}
}
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([setPopoverAnchor, listItemRef]),
- className: classnames_default()('wp-block-navigation-item', {
+ className: dist_clsx('wp-block-navigation-item', {
'is-editing': isSelected || isParentOfSelectedBlock,
'is-dragging-within': isDraggingWithin,
'has-link': !!url,
@@ -37138,126 +38394,154 @@ function NavigationSubmenuEdit({
}
}, [hasChildren, prevHasChildren]);
const canConvertToLink = !selectedBlockHasChildren || onlyDescendantIsEmptyLink;
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, !openSubmenusOnClick && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- name: "link",
- icon: library_link,
- title: (0,external_wp_i18n_namespaceObject.__)('Link'),
- shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('k'),
- onClick: () => setIsLinkOpen(true)
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- name: "revert",
- icon: remove_submenu,
- title: (0,external_wp_i18n_namespaceObject.__)('Convert to Link'),
- onClick: transformToLink,
- className: "wp-block-navigation__submenu__revert",
- isDisabled: !canConvertToLink
- }))), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- value: label || '',
- onChange: labelValue => {
- setAttributes({
- label: labelValue
- });
- },
- label: (0,external_wp_i18n_namespaceObject.__)('Label'),
- autoComplete: "off"
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- value: url || '',
- onChange: urlValue => {
- setAttributes({
- url: urlValue
- });
- },
- label: (0,external_wp_i18n_namespaceObject.__)('URL'),
- autoComplete: "off"
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextareaControl, {
- __nextHasNoMarginBottom: true,
- value: description || '',
- onChange: descriptionValue => {
- setAttributes({
- description: descriptionValue
- });
- },
- label: (0,external_wp_i18n_namespaceObject.__)('Description'),
- help: (0,external_wp_i18n_namespaceObject.__)('The description will be displayed in the menu if the current theme supports it.')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- value: title || '',
- onChange: titleValue => {
- setAttributes({
- title: titleValue
- });
- },
- label: (0,external_wp_i18n_namespaceObject.__)('Title attribute'),
- autoComplete: "off",
- help: (0,external_wp_i18n_namespaceObject.__)('Additional information to help clarify the purpose of the link.')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- value: rel || '',
- onChange: relValue => {
- setAttributes({
- rel: relValue
- });
- },
- label: (0,external_wp_i18n_namespaceObject.__)('Rel attribute'),
- autoComplete: "off",
- help: (0,external_wp_i18n_namespaceObject.__)('The relationship of the linked URL as space-separated link types.')
- }))), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(ParentElement, {
- className: "wp-block-navigation-item__content"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- ref: ref,
- identifier: "label",
- className: "wp-block-navigation-item__label",
- value: label,
- onChange: labelValue => setAttributes({
- label: labelValue
- }),
- onMerge: mergeBlocks,
- onReplace: onReplace,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Navigation link text'),
- placeholder: itemLabelPlaceholder,
- withoutInteractiveFormatting: true,
- allowedFormats: ['core/bold', 'core/italic', 'core/image', 'core/strikethrough'],
- onClick: () => {
- if (!openSubmenusOnClick && !url) {
- setIsLinkOpen(true);
- }
- }
- }), !openSubmenusOnClick && isLinkOpen && (0,external_React_namespaceObject.createElement)(LinkUI, {
- clientId: clientId,
- link: attributes,
- onClose: () => setIsLinkOpen(false),
- anchor: popoverAnchor,
- hasCreateSuggestion: userCanCreate,
- onRemove: () => {
- setAttributes({
- url: ''
- });
- (0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.__)('Link removed.'), 'assertive');
- },
- onChange: updatedValue => {
- updateAttributes(updatedValue, setAttributes, attributes);
- }
- })), (showSubmenuIcon || openSubmenusOnClick) && (0,external_React_namespaceObject.createElement)("span", {
- className: "wp-block-navigation__submenu-icon"
- }, (0,external_React_namespaceObject.createElement)(ItemSubmenuIcon, null)), (0,external_React_namespaceObject.createElement)("div", {
- ...innerBlocksProps
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: [!openSubmenusOnClick && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ name: "link",
+ icon: library_link,
+ title: (0,external_wp_i18n_namespaceObject.__)('Link'),
+ shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('k'),
+ onClick: event => {
+ setIsLinkOpen(true);
+ setOpenedBy(event.currentTarget);
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ name: "revert",
+ icon: remove_submenu,
+ title: (0,external_wp_i18n_namespaceObject.__)('Convert to Link'),
+ onClick: transformToLink,
+ className: "wp-block-navigation__submenu__revert",
+ isDisabled: !canConvertToLink
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ value: label || '',
+ onChange: labelValue => {
+ setAttributes({
+ label: labelValue
+ });
+ },
+ label: (0,external_wp_i18n_namespaceObject.__)('Text'),
+ autoComplete: "off"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ value: url || '',
+ onChange: urlValue => {
+ setAttributes({
+ url: urlValue
+ });
+ },
+ label: (0,external_wp_i18n_namespaceObject.__)('Link'),
+ autoComplete: "off"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextareaControl, {
+ __nextHasNoMarginBottom: true,
+ value: description || '',
+ onChange: descriptionValue => {
+ setAttributes({
+ description: descriptionValue
+ });
+ },
+ label: (0,external_wp_i18n_namespaceObject.__)('Description'),
+ help: (0,external_wp_i18n_namespaceObject.__)('The description will be displayed in the menu if the current theme supports it.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ value: title || '',
+ onChange: titleValue => {
+ setAttributes({
+ title: titleValue
+ });
+ },
+ label: (0,external_wp_i18n_namespaceObject.__)('Title attribute'),
+ autoComplete: "off",
+ help: (0,external_wp_i18n_namespaceObject.__)('Additional information to help clarify the purpose of the link.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ value: rel || '',
+ onChange: relValue => {
+ setAttributes({
+ rel: relValue
+ });
+ },
+ label: (0,external_wp_i18n_namespaceObject.__)('Rel attribute'),
+ autoComplete: "off",
+ help: (0,external_wp_i18n_namespaceObject.__)('The relationship of the linked URL as space-separated link types.')
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...blockProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ParentElement, {
+ className: "wp-block-navigation-item__content",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ ref: ref,
+ identifier: "label",
+ className: "wp-block-navigation-item__label",
+ value: label,
+ onChange: labelValue => setAttributes({
+ label: labelValue
+ }),
+ onMerge: mergeBlocks,
+ onReplace: onReplace,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Navigation link text'),
+ placeholder: itemLabelPlaceholder,
+ withoutInteractiveFormatting: true,
+ allowedFormats: ['core/bold', 'core/italic', 'core/image', 'core/strikethrough'],
+ onClick: () => {
+ if (!openSubmenusOnClick && !url) {
+ setIsLinkOpen(true);
+ setOpenedBy(ref.current);
+ }
+ }
+ }), !openSubmenusOnClick && isLinkOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LinkUI, {
+ clientId: clientId,
+ link: attributes,
+ onClose: () => {
+ setIsLinkOpen(false);
+ if (openedBy) {
+ openedBy.focus();
+ setOpenedBy(null);
+ } else {
+ selectBlock(clientId);
+ }
+ },
+ anchor: popoverAnchor,
+ hasCreateSuggestion: userCanCreate,
+ onRemove: () => {
+ setAttributes({
+ url: ''
+ });
+ (0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.__)('Link removed.'), 'assertive');
+ },
+ onChange: updatedValue => {
+ updateAttributes(updatedValue, setAttributes, attributes);
+ }
+ })]
+ }), (showSubmenuIcon || openSubmenusOnClick) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "wp-block-navigation__submenu-icon",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemSubmenuIcon, {})
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...innerBlocksProps
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-submenu/save.js
-
/**
* WordPress dependencies
*/
+
function navigation_submenu_save_save() {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-submenu/transforms.js
@@ -37415,40 +38699,46 @@ const navigation_submenu_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/page-break.js
-
/**
* WordPress dependencies
*/
-const pageBreak = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const pageBreak = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"
+ })
+});
/* harmony default export */ const page_break = (pageBreak);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/nextpage/edit.js
-
/**
* WordPress dependencies
*/
+
function NextPageEdit() {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)()
- }, (0,external_React_namespaceObject.createElement)("span", null, (0,external_wp_i18n_namespaceObject.__)('Page break')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)(),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Page break')
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/nextpage/save.js
-
/**
* WordPress dependencies
*/
+
function nextpage_save_save() {
- return (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, '<!--nextpage-->');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
+ children: '<!--nextpage-->'
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/nextpage/transforms.js
@@ -37663,7 +38953,6 @@ function hasCycle(deps, slug, visitedNodes = new Set(), currentPath = new Set())
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pattern/edit.js
-
/**
* WordPress dependencies
*/
@@ -37678,10 +38967,12 @@ function hasCycle(deps, slug, visitedNodes = new Set(), currentPath = new Set())
* Internal dependencies
*/
+
const PatternEdit = ({
attributes,
clientId
}) => {
+ const registry = (0,external_wp_data_namespaceObject.useRegistry)();
const selectedPattern = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).__experimentalGetParsedPattern(attributes.slug), [attributes.slug]);
const currentThemeStylesheet = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getCurrentTheme()?.stylesheet, []);
const {
@@ -37696,7 +38987,7 @@ const PatternEdit = ({
const [hasRecursionError, setHasRecursionError] = (0,external_wp_element_namespaceObject.useState)(false);
const parsePatternDependencies = useParsePatternDependencies();
- // Duplicated in packages/edit-site/src/components/start-template-options/index.js.
+ // Duplicated in packages/editor/src/components/start-template-options/index.js.
function injectThemeAttributeInBlockTemplateContent(block) {
if (block.innerBlocks.find(innerBlock => innerBlock.name === 'core/template-part')) {
block.innerBlocks = block.innerBlocks.map(innerBlock => {
@@ -37735,28 +39026,46 @@ const PatternEdit = ({
// Clone blocks from the pattern before insertion to ensure they receive
// distinct client ids. See https://github.com/WordPress/gutenberg/issues/50628.
const clonedBlocks = selectedPattern.blocks.map(block => (0,external_wp_blocks_namespaceObject.cloneBlock)(injectThemeAttributeInBlockTemplateContent(block)));
+ // If the pattern has a single block and categories, we should add the
+ // categories of the pattern to the block's metadata.
+ if (clonedBlocks.length === 1 && selectedPattern.categories?.length > 0) {
+ clonedBlocks[0].attributes = {
+ ...clonedBlocks[0].attributes,
+ metadata: {
+ ...clonedBlocks[0].attributes.metadata,
+ categories: selectedPattern.categories,
+ patternName: selectedPattern.name,
+ name: clonedBlocks[0].attributes.metadata.name || selectedPattern.title
+ }
+ };
+ }
const rootEditingMode = getBlockEditingMode(rootClientId);
- // Temporarily set the root block to default mode to allow replacing the pattern.
- // This could happen when the page is disabling edits of non-content blocks.
- __unstableMarkNextChangeAsNotPersistent();
- setBlockEditingMode(rootClientId, 'default');
- __unstableMarkNextChangeAsNotPersistent();
- replaceBlocks(clientId, clonedBlocks);
- // Restore the root block's original mode.
- __unstableMarkNextChangeAsNotPersistent();
- setBlockEditingMode(rootClientId, rootEditingMode);
+ registry.batch(() => {
+ // Temporarily set the root block to default mode to allow replacing the pattern.
+ // This could happen when the page is disabling edits of non-content blocks.
+ __unstableMarkNextChangeAsNotPersistent();
+ setBlockEditingMode(rootClientId, 'default');
+ __unstableMarkNextChangeAsNotPersistent();
+ replaceBlocks(clientId, clonedBlocks);
+ // Restore the root block's original mode.
+ __unstableMarkNextChangeAsNotPersistent();
+ setBlockEditingMode(rootClientId, rootEditingMode);
+ });
});
}
}, [clientId, hasRecursionError, selectedPattern, __unstableMarkNextChangeAsNotPersistent, replaceBlocks, getBlockEditingMode, setBlockEditingMode, getBlockRootClientId]);
const props = (0,external_wp_blockEditor_namespaceObject.useBlockProps)();
if (hasRecursionError) {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...props
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: A warning in which %s is the name of a pattern.
- (0,external_wp_i18n_namespaceObject.__)('Pattern "%s" cannot be rendered inside itself.'), selectedPattern?.name)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...props,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ children: (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: A warning in which %s is the name of a pattern.
+ (0,external_wp_i18n_namespaceObject.__)('Pattern "%s" cannot be rendered inside itself.'), selectedPattern?.name)
+ })
+ });
}
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...props
});
};
@@ -37804,21 +39113,23 @@ const pattern_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pages.js
-
/**
* WordPress dependencies
*/
-const pages = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const pages = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"
-}), (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"
-}), (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"
+ })]
+});
/* harmony default export */ const library_pages = (pages);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/page-list/use-convert-to-navigation-links.js
@@ -37950,41 +39261,48 @@ function useConvertToNavigationLinks({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/page-list/convert-to-links-modal.js
-
/**
* WordPress dependencies
*/
-const convertDescription = (0,external_wp_i18n_namespaceObject.__)("This navigation menu displays your website's pages. Editing it will enable you to add, delete, or reorder pages. However, new pages will no longer be added automatically.");
+
+
+
+const convertDescription = (0,external_wp_i18n_namespaceObject.__)("This Navigation Menu displays your website's pages. Editing it will enable you to add, delete, or reorder pages. However, new pages will no longer be added automatically.");
function ConvertToLinksModal({
onClick,
onClose,
disabled
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Modal, {
onRequestClose: onClose,
title: (0,external_wp_i18n_namespaceObject.__)('Edit Page List'),
- className: 'wp-block-page-list-modal',
+ className: "wp-block-page-list-modal",
aria: {
- describedby: 'wp-block-page-list-modal__description'
- }
- }, (0,external_React_namespaceObject.createElement)("p", {
- id: 'wp-block-page-list-modal__description'
- }, convertDescription), (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-page-list-modal-buttons"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: onClose
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- disabled: disabled,
- onClick: onClick
- }, (0,external_wp_i18n_namespaceObject.__)('Edit'))));
+ describedby: (0,external_wp_compose_namespaceObject.useInstanceId)(ConvertToLinksModal, 'wp-block-page-list-modal__description')
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ id: (0,external_wp_compose_namespaceObject.useInstanceId)(ConvertToLinksModal, 'wp-block-page-list-modal__description'),
+ children: convertDescription
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "wp-block-page-list-modal-buttons",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: onClose,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ __experimentalIsFocusable: true,
+ disabled: disabled,
+ onClick: onClick,
+ children: (0,external_wp_i18n_namespaceObject.__)('Edit')
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/page-list/edit.js
-
/**
* External dependencies
*/
@@ -38009,6 +39327,9 @@ function ConvertToLinksModal({
// We only show the edit option when page count is <= MAX_PAGE_COUNT
// Performance of Navigation Links is not good past this value.
+
+
+
const MAX_PAGE_COUNT = 100;
const NOOP = () => {};
function BlockContent({
@@ -38020,48 +39341,59 @@ function BlockContent({
parentPageID
}) {
if (!hasResolvedPages) {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-page-list__loading-indicator-container"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, {
- className: "wp-block-page-list__loading-indicator"
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-page-list__loading-indicator-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {
+ className: "wp-block-page-list__loading-indicator"
+ })
+ })
+ });
}
if (pages === null) {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Notice, {
- status: 'warning',
- isDismissible: false
- }, (0,external_wp_i18n_namespaceObject.__)('Page List: Cannot retrieve Pages.')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
+ status: "warning",
+ isDismissible: false,
+ children: (0,external_wp_i18n_namespaceObject.__)('Page List: Cannot retrieve Pages.')
+ })
+ });
}
if (pages.length === 0) {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Notice, {
- status: 'info',
- isDismissible: false
- }, (0,external_wp_i18n_namespaceObject.__)('Page List: Cannot retrieve Pages.')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
+ status: "info",
+ isDismissible: false,
+ children: (0,external_wp_i18n_namespaceObject.__)('Page List: Cannot retrieve Pages.')
+ })
+ });
}
if (blockList.length === 0) {
const parentPageDetails = pages.find(page => page.id === parentPageID);
if (parentPageDetails?.title?.rendered) {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Page title.
- (0,external_wp_i18n_namespaceObject.__)('Page List: "%s" page has no children.'), parentPageDetails.title.rendered)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ children: (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Page title.
+ (0,external_wp_i18n_namespaceObject.__)('Page List: "%s" page has no children.'), parentPageDetails.title.rendered)
+ })
+ });
}
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Notice, {
- status: 'warning',
- isDismissible: false
- }, (0,external_wp_i18n_namespaceObject.__)('Page List: Cannot retrieve Pages.')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
+ status: "warning",
+ isDismissible: false,
+ children: (0,external_wp_i18n_namespaceObject.__)('Page List: Cannot retrieve Pages.')
+ })
+ });
}
if (pages.length > 0) {
- return (0,external_React_namespaceObject.createElement)("ul", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
...innerBlocksProps
});
}
@@ -38118,7 +39450,7 @@ function PageListEdit({
}, new Map());
}, [pages]);
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()('wp-block-page-list', {
+ className: dist_clsx('wp-block-page-list', {
'has-text-color': !!context.textColor,
[(0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', context.textColor)]: !!context.textColor,
'has-background': !!context.backgroundColor,
@@ -38220,39 +39552,54 @@ function PageListEdit({
isNested
});
}, [isNested, setAttributes]);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, pagesTree.length > 0 && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ComboboxControl, {
- __next40pxDefaultSize: true,
- className: "editor-page-attributes__parent",
- label: (0,external_wp_i18n_namespaceObject.__)('Parent'),
- value: parentPageID,
- options: pagesTree,
- onChange: value => setAttributes({
- parentPageID: value !== null && value !== void 0 ? value : 0
- }),
- help: (0,external_wp_i18n_namespaceObject.__)('Choose a page to show only its subpages.')
- })), allowConvertToLinks && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Edit this menu')
- }, (0,external_React_namespaceObject.createElement)("p", null, convertDescription), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- disabled: !hasResolvedPages,
- onClick: convertToNavigationLinks
- }, (0,external_wp_i18n_namespaceObject.__)('Edit')))), allowConvertToLinks && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "other"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- title: (0,external_wp_i18n_namespaceObject.__)('Edit'),
- onClick: openModal
- }, (0,external_wp_i18n_namespaceObject.__)('Edit'))), isOpen && (0,external_React_namespaceObject.createElement)(ConvertToLinksModal, {
- onClick: convertToNavigationLinks,
- onClose: closeModal,
- disabled: !hasResolvedPages
- })), (0,external_React_namespaceObject.createElement)(BlockContent, {
- blockProps: blockProps,
- innerBlocksProps: innerBlocksProps,
- hasResolvedPages: hasResolvedPages,
- blockList: blockList,
- pages: pages,
- parentPageID: parentPageID
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: [pagesTree.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ComboboxControl, {
+ __next40pxDefaultSize: true,
+ className: "editor-page-attributes__parent",
+ label: (0,external_wp_i18n_namespaceObject.__)('Parent'),
+ value: parentPageID,
+ options: pagesTree,
+ onChange: value => setAttributes({
+ parentPageID: value !== null && value !== void 0 ? value : 0
+ }),
+ help: (0,external_wp_i18n_namespaceObject.__)('Choose a page to show only its subpages.')
+ })
+ }), allowConvertToLinks && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Edit this menu'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: convertDescription
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ __experimentalIsFocusable: true,
+ disabled: !hasResolvedPages,
+ onClick: convertToNavigationLinks,
+ children: (0,external_wp_i18n_namespaceObject.__)('Edit')
+ })]
+ })]
+ }), allowConvertToLinks && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "other",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Edit'),
+ onClick: openModal,
+ children: (0,external_wp_i18n_namespaceObject.__)('Edit')
+ })
+ }), isOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ConvertToLinksModal, {
+ onClick: convertToNavigationLinks,
+ onClose: closeModal,
+ disabled: !hasResolvedPages
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockContent, {
+ blockProps: blockProps,
+ innerBlocksProps: innerBlocksProps,
+ hasResolvedPages: hasResolvedPages,
+ blockList: blockList,
+ pages: pages,
+ parentPageID: parentPageID
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/page-list/index.js
@@ -38326,24 +39673,24 @@ const page_list_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-link/icons.js
-
/**
* WordPress dependencies
*/
-const icons_ItemSubmenuIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+
+const icons_ItemSubmenuIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
viewBox: "0 0 12 12",
- fill: "none"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M1.50002 4L6.00002 8L10.5 4",
- strokeWidth: "1.5"
-}));
+ fill: "none",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M1.50002 4L6.00002 8L10.5 4",
+ strokeWidth: "1.5"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/page-list-item/edit.js
-
/**
* External dependencies
*/
@@ -38361,6 +39708,9 @@ const icons_ItemSubmenuIcon = () => (0,external_React_namespaceObject.createElem
*/
+
+
+
function useFrontPageId() {
return (0,external_wp_data_namespaceObject.useSelect)(select => {
const canReadSettings = select(external_wp_coreData_namespaceObject.store).canUser('read', 'settings');
@@ -38390,33 +39740,41 @@ function PageListItemEdit({
className: 'wp-block-pages-list__item'
});
const innerBlocksProps = (0,external_wp_blockEditor_namespaceObject.useInnerBlocksProps)(blockProps);
- return (0,external_React_namespaceObject.createElement)("li", {
- key: id,
- className: classnames_default()('wp-block-pages-list__item', {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ className: dist_clsx('wp-block-pages-list__item', {
'has-child': hasChildren,
'wp-block-navigation-item': isNavigationChild,
'open-on-click': context.openSubmenusOnClick,
'open-on-hover-click': !context.openSubmenusOnClick && context.showSubmenuIcon,
'menu-item-home': id === frontPageId
- })
- }, hasChildren && context.openSubmenusOnClick ? (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("button", {
- type: "button",
- className: "wp-block-navigation-item__content wp-block-navigation-submenu__toggle",
- "aria-expanded": "false"
- }, (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(label)), (0,external_React_namespaceObject.createElement)("span", {
- className: "wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon"
- }, (0,external_React_namespaceObject.createElement)(icons_ItemSubmenuIcon, null))) : (0,external_React_namespaceObject.createElement)("a", {
- className: classnames_default()('wp-block-pages-list__item__link', {
- 'wp-block-navigation-item__content': isNavigationChild
}),
- href: link
- }, (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title)), hasChildren && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, !context.openSubmenusOnClick && context.showSubmenuIcon && (0,external_React_namespaceObject.createElement)("button", {
- className: "wp-block-navigation-item__content wp-block-navigation-submenu__toggle wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",
- "aria-expanded": "false",
- type: "button"
- }, (0,external_React_namespaceObject.createElement)(icons_ItemSubmenuIcon, null)), (0,external_React_namespaceObject.createElement)("ul", {
- ...innerBlocksProps
- })));
+ children: [hasChildren && context.openSubmenusOnClick ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("button", {
+ type: "button",
+ className: "wp-block-navigation-item__content wp-block-navigation-submenu__toggle",
+ "aria-expanded": "false",
+ children: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(label)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_ItemSubmenuIcon, {})
+ })]
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ className: dist_clsx('wp-block-pages-list__item__link', {
+ 'wp-block-navigation-item__content': isNavigationChild
+ }),
+ href: link,
+ children: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title)
+ }), hasChildren && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [!context.openSubmenusOnClick && context.showSubmenuIcon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("button", {
+ className: "wp-block-navigation-item__content wp-block-navigation-submenu__toggle wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",
+ "aria-expanded": "false",
+ type: "button",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_ItemSubmenuIcon, {})
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ ...innerBlocksProps
+ })]
+ })]
+ }, id);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/page-list-item/index.js
@@ -38490,21 +39848,21 @@ const page_list_item_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/paragraph.js
-
/**
* WordPress dependencies
*/
-const paragraph = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const paragraph = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"
+ })
+});
/* harmony default export */ const library_paragraph = (paragraph);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/deprecated.js
-
/**
* External dependencies
*/
@@ -38516,6 +39874,7 @@ const paragraph = (0,external_React_namespaceObject.createElement)(external_wp_p
+
const deprecated_supports = {
className: false
};
@@ -38612,18 +39971,19 @@ const paragraph_deprecated_deprecated = [
dropCap,
direction
} = attributes;
- const className = classnames_default()({
+ const className = dist_clsx({
'has-drop-cap': align === ((0,external_wp_i18n_namespaceObject.isRTL)() ? 'left' : 'right') || align === 'center' ? false : dropCap,
[`has-text-align-${align}`]: align
});
- return (0,external_React_namespaceObject.createElement)("p", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className,
dir: direction
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: content
})
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: content
- }));
+ });
}
}, {
supports: deprecated_supports,
@@ -38658,7 +40018,7 @@ const paragraph_deprecated_deprecated = [
const textClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', textColor);
const backgroundClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('background-color', backgroundColor);
const fontSizeClass = (0,external_wp_blockEditor_namespaceObject.getFontSizeClass)(fontSize);
- const className = classnames_default()({
+ const className = dist_clsx({
'has-text-color': textColor || customTextColor,
'has-background': backgroundColor || customBackgroundColor,
'has-drop-cap': dropCap,
@@ -38672,7 +40032,7 @@ const paragraph_deprecated_deprecated = [
color: textClass ? undefined : customTextColor,
fontSize: fontSizeClass ? undefined : customFontSize
};
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
tagName: "p",
style: styles,
className: className ? className : undefined,
@@ -38713,7 +40073,7 @@ const paragraph_deprecated_deprecated = [
const textClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', textColor);
const backgroundClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('background-color', backgroundColor);
const fontSizeClass = (0,external_wp_blockEditor_namespaceObject.getFontSizeClass)(fontSize);
- const className = classnames_default()({
+ const className = dist_clsx({
'has-text-color': textColor || customTextColor,
'has-background': backgroundColor || customBackgroundColor,
'has-drop-cap': dropCap,
@@ -38727,7 +40087,7 @@ const paragraph_deprecated_deprecated = [
fontSize: fontSizeClass ? undefined : customFontSize,
textAlign: align
};
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
tagName: "p",
style: styles,
className: className ? className : undefined,
@@ -38771,7 +40131,7 @@ const paragraph_deprecated_deprecated = [
const textClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', textColor);
const backgroundClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('background-color', backgroundColor);
const fontSizeClass = fontSize && `is-${fontSize}-text`;
- const className = classnames_default()({
+ const className = dist_clsx({
[`align${width}`]: width,
'has-background': backgroundColor || customBackgroundColor,
'has-drop-cap': dropCap,
@@ -38785,7 +40145,7 @@ const paragraph_deprecated_deprecated = [
fontSize: fontSizeClass ? undefined : customFontSize,
textAlign: align
};
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
tagName: "p",
style: styles,
className: className ? className : undefined,
@@ -38812,7 +40172,7 @@ const paragraph_deprecated_deprecated = [
textColor,
fontSize
} = attributes;
- const className = classnames_default()({
+ const className = dist_clsx({
[`align${width}`]: width,
'has-background': backgroundColor,
'has-drop-cap': dropCap
@@ -38823,10 +40183,11 @@ const paragraph_deprecated_deprecated = [
fontSize,
textAlign: align
};
- return (0,external_React_namespaceObject.createElement)("p", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
style: styles,
- className: className ? className : undefined
- }, content);
+ className: className ? className : undefined,
+ children: content
+ });
},
migrate(attributes) {
return migrateCustomColorsAndFontSizes({
@@ -38849,7 +40210,9 @@ const paragraph_deprecated_deprecated = [
save({
attributes
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, attributes.content);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
+ children: attributes.content
+ });
},
migrate(attributes) {
return attributes;
@@ -38858,17 +40221,18 @@ const paragraph_deprecated_deprecated = [
/* harmony default export */ const paragraph_deprecated = (paragraph_deprecated_deprecated);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-ltr.js
-
/**
* WordPress dependencies
*/
-const formatLtr = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const formatLtr = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "-2 -2 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "-2 -2 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const format_ltr = (formatLtr);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/use-enter.js
@@ -38962,7 +40326,6 @@ function useOnEnter(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/edit.js
-
/**
* External dependencies
*/
@@ -38976,17 +40339,18 @@ function useOnEnter(props) {
-
/**
* Internal dependencies
*/
-const edit_name = 'core/paragraph';
+
+
+
function ParagraphRTLControl({
direction,
setDirection
}) {
- return (0,external_wp_i18n_namespaceObject.isRTL)() && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
+ return (0,external_wp_i18n_namespaceObject.isRTL)() && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
icon: format_ltr,
title: (0,external_wp_i18n_namespaceObject._x)('Left to right', 'editor button'),
isActive: direction === 'ltr',
@@ -39023,7 +40387,7 @@ function DropCapControl({
} else {
helpText = (0,external_wp_i18n_namespaceObject.__)('Toggle to show a large initial letter.');
}
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
hasValue: () => !!dropCap,
label: (0,external_wp_i18n_namespaceObject.__)('Drop cap'),
onDeselect: () => setAttributes({
@@ -39032,17 +40396,18 @@ function DropCapControl({
resetAllFilter: () => ({
dropCap: undefined
}),
- panelId: clientId
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Drop cap'),
- checked: !!dropCap,
- onChange: () => setAttributes({
- dropCap: !dropCap
- }),
- help: helpText,
- disabled: hasDropCapDisabled(align) ? true : false
- }));
+ panelId: clientId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Drop cap'),
+ checked: !!dropCap,
+ onChange: () => setAttributes({
+ dropCap: !dropCap
+ }),
+ help: helpText,
+ disabled: hasDropCapDisabled(align) ? true : false
+ })
+ });
}
function ParagraphBlock({
attributes,
@@ -39064,7 +40429,7 @@ function ParagraphBlock({
clientId,
content
}),
- className: classnames_default()({
+ className: dist_clsx({
'has-drop-cap': hasDropCapDisabled(align) ? false : dropCap,
[`has-text-align-${align}`]: align
}),
@@ -39073,62 +40438,51 @@ function ParagraphBlock({
}
});
const blockEditingMode = (0,external_wp_blockEditor_namespaceObject.useBlockEditingMode)();
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, blockEditingMode === 'default' && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: align,
- onChange: newAlign => setAttributes({
- align: newAlign,
- dropCap: hasDropCapDisabled(newAlign) ? false : dropCap
- })
- }), (0,external_React_namespaceObject.createElement)(ParagraphRTLControl, {
- direction: direction,
- setDirection: newDirection => setAttributes({
- direction: newDirection
- })
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "typography"
- }, (0,external_React_namespaceObject.createElement)(DropCapControl, {
- clientId: clientId,
- attributes: attributes,
- setAttributes: setAttributes
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- identifier: "content",
- tagName: "p",
- ...blockProps,
- value: content,
- onChange: newContent => setAttributes({
- content: newContent
- }),
- onSplit: (value, isOriginal) => {
- let newAttributes;
- if (isOriginal || value) {
- newAttributes = {
- ...attributes,
- content: value
- };
- }
- const block = (0,external_wp_blocks_namespaceObject.createBlock)(edit_name, newAttributes);
- if (isOriginal) {
- block.clientId = clientId;
- }
- return block;
- },
- onMerge: mergeBlocks,
- onReplace: onReplace,
- onRemove: onRemove,
- "aria-label": external_wp_blockEditor_namespaceObject.RichText.isEmpty(content) ? (0,external_wp_i18n_namespaceObject.__)('Empty block; start writing or type forward slash to choose a block') : (0,external_wp_i18n_namespaceObject.__)('Block: Paragraph'),
- "data-empty": external_wp_blockEditor_namespaceObject.RichText.isEmpty(content),
- placeholder: placeholder || (0,external_wp_i18n_namespaceObject.__)('Type / to choose a block'),
- "data-custom-placeholder": placeholder ? true : undefined,
- __unstableEmbedURLOnPaste: true,
- __unstableAllowPrefixTransformations: true
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [blockEditingMode === 'default' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: align,
+ onChange: newAlign => setAttributes({
+ align: newAlign,
+ dropCap: hasDropCapDisabled(newAlign) ? false : dropCap
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ParagraphRTLControl, {
+ direction: direction,
+ setDirection: newDirection => setAttributes({
+ direction: newDirection
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "typography",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropCapControl, {
+ clientId: clientId,
+ attributes: attributes,
+ setAttributes: setAttributes
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ identifier: "content",
+ tagName: "p",
+ ...blockProps,
+ value: content,
+ onChange: newContent => setAttributes({
+ content: newContent
+ }),
+ onMerge: mergeBlocks,
+ onReplace: onReplace,
+ onRemove: onRemove,
+ "aria-label": external_wp_blockEditor_namespaceObject.RichText.isEmpty(content) ? (0,external_wp_i18n_namespaceObject.__)('Empty block; start writing or type forward slash to choose a block') : (0,external_wp_i18n_namespaceObject.__)('Block: Paragraph'),
+ "data-empty": external_wp_blockEditor_namespaceObject.RichText.isEmpty(content),
+ placeholder: placeholder || (0,external_wp_i18n_namespaceObject.__)('Type / to choose a block'),
+ "data-custom-placeholder": placeholder ? true : undefined,
+ __unstableEmbedURLOnPaste: true,
+ __unstableAllowPrefixTransformations: true
+ })]
+ });
}
/* harmony default export */ const paragraph_edit = (ParagraphBlock);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/save.js
-
/**
* External dependencies
*/
@@ -39139,6 +40493,7 @@ function ParagraphBlock({
*/
+
function paragraph_save_save({
attributes
}) {
@@ -39148,18 +40503,19 @@ function paragraph_save_save({
dropCap,
direction
} = attributes;
- const className = classnames_default()({
+ const className = dist_clsx({
'has-drop-cap': align === ((0,external_wp_i18n_namespaceObject.isRTL)() ? 'left' : 'right') || align === 'center' ? false : dropCap,
[`has-text-align-${align}`]: align
});
- return (0,external_React_namespaceObject.createElement)("p", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className,
dir: direction
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: content
})
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: content
- }));
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/transforms.js
@@ -39182,7 +40538,6 @@ const {
description: "Start with the basic building block of all narrative.",
keywords: ["text"],
textdomain: "default",
- usesContext: ["postId"],
attributes: {
align: {
type: "string"
@@ -39206,6 +40561,7 @@ const {
}
},
supports: {
+ splitting: true,
anchor: true,
className: false,
color: {
@@ -39298,7 +40654,6 @@ const paragraph_metadata = {
description: "Start with the basic building block of all narrative.",
keywords: ["text"],
textdomain: "default",
- usesContext: ["postId"],
attributes: {
align: {
type: "string"
@@ -39322,6 +40677,7 @@ const paragraph_metadata = {
}
},
supports: {
+ splitting: true,
anchor: true,
className: false,
color: {
@@ -39410,23 +40766,23 @@ const paragraph_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post-author.js
-
/**
* WordPress dependencies
*/
-const postAuthor = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const postAuthor = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",
- fillRule: "evenodd",
- clipRule: "evenodd"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",
+ fillRule: "evenodd",
+ clipRule: "evenodd"
+ })
+});
/* harmony default export */ const post_author = (postAuthor);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-author/edit.js
-
/**
* External dependencies
*/
@@ -39440,6 +40796,9 @@ const postAuthor = (0,external_React_namespaceObject.createElement)(external_wp_
+
+
+
const minimumUsersForCombobox = 25;
const edit_AUTHORS_QUERY = {
who: 'authors',
@@ -39495,7 +40854,7 @@ function PostAuthorEdit({
});
}
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
})
});
@@ -39515,97 +40874,109 @@ function PostAuthorEdit({
};
const showCombobox = authorOptions.length >= minimumUsersForCombobox;
const showAuthorControl = !!postId && !isDescendentOfQueryLoop && authorOptions.length > 0;
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, showAuthorControl && (showCombobox && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ComboboxControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Author'),
- options: authorOptions,
- value: authorId,
- onChange: handleSelect,
- allowReset: false
- }) || (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Author'),
- value: authorId,
- options: authorOptions,
- onChange: handleSelect
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Show avatar'),
- checked: showAvatar,
- onChange: () => setAttributes({
- showAvatar: !showAvatar
- })
- }), showAvatar && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Avatar size'),
- value: attributes.avatarSize,
- options: avatarSizes,
- onChange: size => {
- setAttributes({
- avatarSize: Number(size)
- });
- }
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Show bio'),
- checked: showBio,
- onChange: () => setAttributes({
- showBio: !showBio
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Link author name to author page'),
- checked: isLink,
- onChange: () => setAttributes({
- isLink: !isLink
- })
- }), isLink && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
- onChange: value => setAttributes({
- linkTarget: value ? '_blank' : '_self'
- }),
- checked: linkTarget === '_blank'
- }))), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- })), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, showAvatar && authorDetails?.avatar_urls && (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-post-author__avatar"
- }, (0,external_React_namespaceObject.createElement)("img", {
- width: attributes.avatarSize,
- src: authorDetails.avatar_urls[attributes.avatarSize],
- alt: authorDetails.name
- })), (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-post-author__content"
- }, (!external_wp_blockEditor_namespaceObject.RichText.isEmpty(byline) || isSelected) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- className: "wp-block-post-author__byline",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Post author byline text'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Write byline…'),
- value: byline,
- onChange: value => setAttributes({
- byline: value
- })
- }), (0,external_React_namespaceObject.createElement)("p", {
- className: "wp-block-post-author__name"
- }, isLink ? (0,external_React_namespaceObject.createElement)("a", {
- href: "#post-author-pseudo-link",
- onClick: event => event.preventDefault()
- }, authorName) : authorName), showBio && (0,external_React_namespaceObject.createElement)("p", {
- className: "wp-block-post-author__bio",
- dangerouslySetInnerHTML: {
- __html: authorDetails?.description
- }
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [showAuthorControl && (showCombobox && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ComboboxControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Author'),
+ options: authorOptions,
+ value: authorId,
+ onChange: handleSelect,
+ allowReset: false
+ }) || /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Author'),
+ value: authorId,
+ options: authorOptions,
+ onChange: handleSelect
+ })), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show avatar'),
+ checked: showAvatar,
+ onChange: () => setAttributes({
+ showAvatar: !showAvatar
+ })
+ }), showAvatar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Avatar size'),
+ value: attributes.avatarSize,
+ options: avatarSizes,
+ onChange: size => {
+ setAttributes({
+ avatarSize: Number(size)
+ });
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show bio'),
+ checked: showBio,
+ onChange: () => setAttributes({
+ showBio: !showBio
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Link author name to author page'),
+ checked: isLink,
+ onChange: () => setAttributes({
+ isLink: !isLink
+ })
+ }), isLink && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
+ onChange: value => setAttributes({
+ linkTarget: value ? '_blank' : '_self'
+ }),
+ checked: linkTarget === '_blank'
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...blockProps,
+ children: [showAvatar && authorDetails?.avatar_urls && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-post-author__avatar",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ width: attributes.avatarSize,
+ src: authorDetails.avatar_urls[attributes.avatarSize],
+ alt: authorDetails.name
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "wp-block-post-author__content",
+ children: [(!external_wp_blockEditor_namespaceObject.RichText.isEmpty(byline) || isSelected) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ identifier: "byline",
+ className: "wp-block-post-author__byline",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Post author byline text'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Write byline…'),
+ value: byline,
+ onChange: value => setAttributes({
+ byline: value
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "wp-block-post-author__name",
+ children: isLink ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: "#post-author-pseudo-link",
+ onClick: event => event.preventDefault(),
+ children: authorName
+ }) : authorName
+ }), showBio && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "wp-block-post-author__bio",
+ dangerouslySetInnerHTML: {
+ __html: authorDetails?.description
+ }
+ })]
+ })]
+ })]
+ });
}
/* harmony default export */ const post_author_edit = (PostAuthorEdit);
@@ -39705,7 +41076,6 @@ const post_author_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-author-name/edit.js
-
/**
* External dependencies
*/
@@ -39719,6 +41089,9 @@ const post_author_init = () => initBlock({
+
+
+
function PostAuthorNameEdit({
context: {
postType,
@@ -39744,44 +41117,52 @@ function PostAuthorNameEdit({
};
}, [postType, postId]);
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
})
});
const displayName = authorName?.name || (0,external_wp_i18n_namespaceObject.__)('Author Name');
- const displayAuthor = isLink ? (0,external_React_namespaceObject.createElement)("a", {
+ const displayAuthor = isLink ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
href: "#author-pseudo-link",
onClick: event => event.preventDefault(),
- className: "wp-block-post-author-name__link"
- }, displayName) : displayName;
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Link to author archive'),
- onChange: () => setAttributes({
- isLink: !isLink
- }),
- checked: isLink
- }), isLink && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
- onChange: value => setAttributes({
- linkTarget: value ? '_blank' : '_self'
- }),
- checked: linkTarget === '_blank'
- }))), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, " ", displayAuthor, " "));
+ className: "wp-block-post-author-name__link",
+ children: displayName
+ }) : displayName;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Link to author archive'),
+ onChange: () => setAttributes({
+ isLink: !isLink
+ }),
+ checked: isLink
+ }), isLink && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
+ onChange: value => setAttributes({
+ linkTarget: value ? '_blank' : '_self'
+ }),
+ checked: linkTarget === '_blank'
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...blockProps,
+ children: [" ", displayAuthor, " "]
+ })]
+ });
}
/* harmony default export */ const post_author_name_edit = (PostAuthorNameEdit);
@@ -39895,7 +41276,6 @@ const post_author_name_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-author-biography/edit.js
-
/**
* External dependencies
*/
@@ -39908,6 +41288,9 @@ const post_author_name_init = () => initBlock({
+
+
+
function PostAuthorBiographyEdit({
context: {
postType,
@@ -39931,26 +41314,29 @@ function PostAuthorBiographyEdit({
};
}, [postType, postId]);
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
})
});
const displayAuthorBiography = authorDetails?.description || (0,external_wp_i18n_namespaceObject.__)('Author Biography');
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- })), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps,
- dangerouslySetInnerHTML: {
- __html: displayAuthorBiography
- }
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ dangerouslySetInnerHTML: {
+ __html: displayAuthorBiography
+ }
+ })]
+ });
}
/* harmony default export */ const post_author_biography_edit = (PostAuthorBiographyEdit);
@@ -40025,21 +41411,21 @@ const post_author_biography_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js
-
/**
* WordPress dependencies
*/
-const blockDefault = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const blockDefault = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const block_default = (blockDefault);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-comment/edit.js
-
/**
* WordPress dependencies
*/
@@ -40048,6 +41434,8 @@ const blockDefault = (0,external_React_namespaceObject.createElement)(external_w
+
+
const post_comment_edit_TEMPLATE = [['core/avatar'], ['core/comment-author-name'], ['core/comment-date'], ['core/comment-content'], ['core/comment-reply-link'], ['core/comment-edit-link']];
function post_comment_edit_Edit({
attributes: {
@@ -40061,40 +41449,43 @@ function post_comment_edit_Edit({
template: post_comment_edit_TEMPLATE
});
if (!commentId) {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- icon: block_default,
- label: (0,external_wp_i18n_namespaceObject._x)('Post Comment', 'block title'),
- instructions: (0,external_wp_i18n_namespaceObject.__)('To show a comment, input the comment ID.')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- value: commentId,
- onChange: val => setCommentIdInput(parseInt(val))
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: () => {
- setAttributes({
- commentId: commentIdInput
- });
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Save'))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Placeholder, {
+ icon: block_default,
+ label: (0,external_wp_i18n_namespaceObject._x)('Post Comment', 'block title'),
+ instructions: (0,external_wp_i18n_namespaceObject.__)('To show a comment, input the comment ID.'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ value: commentId,
+ onChange: val => setCommentIdInput(parseInt(val))
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ onClick: () => {
+ setAttributes({
+ commentId: commentIdInput
+ });
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Save')
+ })]
+ })
+ });
}
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...innerBlocksProps
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-comment/save.js
-
/**
* WordPress dependencies
*/
+
function post_comment_save_save() {
const blockProps = external_wp_blockEditor_namespaceObject.useBlockProps.save();
const innerBlocksProps = external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save(blockProps);
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...innerBlocksProps
});
}
@@ -40153,21 +41544,21 @@ const post_comment_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post-comments-count.js
-
/**
* WordPress dependencies
*/
-const postCommentsCount = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const postCommentsCount = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"
+ })
+});
/* harmony default export */ const post_comments_count = (postCommentsCount);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-comments-count/edit.js
-
/**
* External dependencies
*/
@@ -40181,6 +41572,9 @@ const postCommentsCount = (0,external_React_namespaceObject.createElement)(exter
+
+
+
function PostCommentsCountEdit({
attributes,
context,
@@ -40194,7 +41588,7 @@ function PostCommentsCountEdit({
} = context;
const [commentsCount, setCommentsCount] = (0,external_wp_element_namespaceObject.useState)();
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
})
});
@@ -40220,19 +41614,25 @@ function PostCommentsCountEdit({
...blockProps.style,
textDecoration: hasPostAndComments ? blockProps.style?.textDecoration : undefined
};
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- })), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps,
- style: blockStyles
- }, hasPostAndComments ? commentsCount : (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_i18n_namespaceObject.__)('Post Comments Count block: post not found.'))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ style: blockStyles,
+ children: hasPostAndComments ? commentsCount : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Post Comments Count block: post not found.')
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-comments-count/index.js
@@ -40307,21 +41707,21 @@ const post_comments_count_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post-comments-form.js
-
/**
* WordPress dependencies
*/
-const postCommentsForm = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const postCommentsForm = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"
+ })
+});
/* harmony default export */ const post_comments_form = (postCommentsForm);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-comments-form/edit.js
-
/**
* External dependencies
*/
@@ -40339,6 +41739,9 @@ const postCommentsForm = (0,external_React_namespaceObject.createElement)(extern
* Internal dependencies
*/
+
+
+
function PostCommentsFormEdit({
attributes,
context,
@@ -40354,28 +41757,33 @@ function PostCommentsFormEdit({
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(PostCommentsFormEdit);
const instanceIdDesc = (0,external_wp_i18n_namespaceObject.sprintf)('comments-form-edit-%d-desc', instanceId);
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
}),
'aria-describedby': instanceIdDesc
});
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- })), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(post_comments_form_form, {
- postId: postId,
- postType: postType
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- id: instanceIdDesc
- }, (0,external_wp_i18n_namespaceObject.__)('Comments form disabled in editor.'))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...blockProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_comments_form_form, {
+ postId: postId,
+ postType: postType
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ id: instanceIdDesc,
+ children: (0,external_wp_i18n_namespaceObject.__)('Comments form disabled in editor.')
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-comments-form/index.js
@@ -40448,7 +41856,6 @@ const post_comments_form_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-comments-link/edit.js
-
/**
* External dependencies
*/
@@ -40464,6 +41871,9 @@ const post_comments_form_init = () => initBlock({
+
+
+
function PostCommentsLinkEdit({
context,
attributes,
@@ -40478,7 +41888,7 @@ function PostCommentsLinkEdit({
} = context;
const [commentsCount, setCommentsCount] = (0,external_wp_element_namespaceObject.useState)();
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
})
});
@@ -40516,21 +41926,28 @@ function PostCommentsLinkEdit({
(0,external_wp_i18n_namespaceObject._n)('%s comment', '%s comments', commentsNumber), commentsNumber.toLocaleString());
}
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- })), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, link && commentsText !== undefined ? (0,external_React_namespaceObject.createElement)("a", {
- href: link + '#comments',
- onClick: event => event.preventDefault()
- }, commentsText) : (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_i18n_namespaceObject.__)('Post Comments Link block: post not found.'))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: link && commentsText !== undefined ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: link + '#comments',
+ onClick: event => event.preventDefault(),
+ children: commentsText
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Post Comments Link block: post not found.')
+ })
+ })]
+ });
}
/* harmony default export */ const post_comments_link_edit = (PostCommentsLinkEdit);
@@ -40607,42 +42024,21 @@ const post_comments_link_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post-content.js
-
-/**
- * WordPress dependencies
- */
-
-const postContent = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"
-}));
-/* harmony default export */ const post_content = (postContent);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/utils/hooks.js
/**
* WordPress dependencies
*/
-
-/**
- * Returns whether the current user can edit the given entity.
- *
- * @param {string} kind Entity kind.
- * @param {string} name Entity name.
- * @param {string} recordId Record's id.
- */
-function useCanEditEntity(kind, name, recordId) {
- return (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).canUserEditEntityRecord(kind, name, recordId), [kind, name, recordId]);
-}
-/* harmony default export */ const hooks = ({
- useCanEditEntity
+const postContent = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"
+ })
});
+/* harmony default export */ const post_content = (postContent);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-content/edit.js
-
/**
* WordPress dependencies
*/
@@ -40654,6 +42050,8 @@ function useCanEditEntity(kind, name, recordId) {
* Internal dependencies
*/
+
+
function ReadOnlyContent({
layoutClassNames,
userCanEdit,
@@ -40664,9 +42062,12 @@ function ReadOnlyContent({
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
className: layoutClassNames
});
- return content?.protected && !userCanEdit ? (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_i18n_namespaceObject.__)('This content is password protected.'))) : (0,external_React_namespaceObject.createElement)("div", {
+ return content?.protected && !userCanEdit ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ children: (0,external_wp_i18n_namespaceObject.__)('This content is password protected.')
+ })
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...blockProps,
dangerouslySetInnerHTML: {
__html: content?.rendered
@@ -40696,7 +42097,7 @@ function EditableContent({
onChange,
template: !hasInnerBlocks ? initialInnerBlocks : undefined
});
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...props
});
}
@@ -40715,9 +42116,9 @@ function Content(props) {
}
const isDescendentOfQueryLoop = Number.isFinite(queryId);
const isEditable = userCanEdit && !isDescendentOfQueryLoop;
- return isEditable ? (0,external_React_namespaceObject.createElement)(EditableContent, {
+ return isEditable ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditableContent, {
...props
- }) : (0,external_React_namespaceObject.createElement)(ReadOnlyContent, {
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ReadOnlyContent, {
layoutClassNames: layoutClassNames,
userCanEdit: userCanEdit,
postType: postType,
@@ -40730,15 +42131,25 @@ function edit_Placeholder({
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
className: layoutClassNames
});
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('This is the Content block, it will display all the blocks in any single post or page.')), (0,external_React_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('That might be a simple arrangement like consecutive paragraphs in a blog post, or a more elaborate composition that includes image galleries, videos, tables, columns, and any other block types.')), (0,external_React_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...blockProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('This is the Content block, it will display all the blocks in any single post or page.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('That might be a simple arrangement like consecutive paragraphs in a blog post, or a more elaborate composition that includes image galleries, videos, tables, columns, and any other block types.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.')
+ })]
+ });
}
function RecursionError() {
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)();
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_i18n_namespaceObject.__)('Block cannot be rendered inside itself.')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Block cannot be rendered inside itself.')
+ })
+ });
}
function PostContentEdit({
context,
@@ -40750,16 +42161,17 @@ function PostContentEdit({
} = context;
const hasAlreadyRendered = (0,external_wp_blockEditor_namespaceObject.useHasRecursion)(contextPostId);
if (contextPostId && contextPostType && hasAlreadyRendered) {
- return (0,external_React_namespaceObject.createElement)(RecursionError, null);
- }
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RecursionProvider, {
- uniqueId: contextPostId
- }, contextPostId && contextPostType ? (0,external_React_namespaceObject.createElement)(Content, {
- context: context,
- layoutClassNames: layoutClassNames
- }) : (0,external_React_namespaceObject.createElement)(edit_Placeholder, {
- layoutClassNames: layoutClassNames
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RecursionError, {});
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RecursionProvider, {
+ uniqueId: contextPostId,
+ children: contextPostId && contextPostType ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Content, {
+ context: context,
+ layoutClassNames: layoutClassNames
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(edit_Placeholder, {
+ layoutClassNames: layoutClassNames
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-content/index.js
@@ -40831,7 +42243,6 @@ const post_content_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-date/edit.js
-
/**
* External dependencies
*/
@@ -40849,6 +42260,9 @@ const post_content_init = () => initBlock({
+
+
+
function PostDateEdit({
attributes: {
textAlign,
@@ -40864,7 +42278,7 @@ function PostDateEdit({
setAttributes
}) {
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign,
[`wp-block-post-date__modified-date`]: displayType === 'modified'
})
@@ -40884,81 +42298,92 @@ function PostDateEdit({
const [date, setDate] = (0,external_wp_coreData_namespaceObject.useEntityProp)('postType', postTypeSlug, displayType, postId);
const postType = (0,external_wp_data_namespaceObject.useSelect)(select => postTypeSlug ? select(external_wp_coreData_namespaceObject.store).getPostType(postTypeSlug) : null, [postTypeSlug]);
const dateLabel = displayType === 'date' ? (0,external_wp_i18n_namespaceObject.__)('Post Date') : (0,external_wp_i18n_namespaceObject.__)('Post Modified Date');
- let postDate = date ? (0,external_React_namespaceObject.createElement)("time", {
+ let postDate = date ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("time", {
dateTime: (0,external_wp_date_namespaceObject.dateI18n)('c', date),
- ref: setPopoverAnchor
- }, (0,external_wp_date_namespaceObject.dateI18n)(format || siteFormat, date)) : dateLabel;
+ ref: setPopoverAnchor,
+ children: (0,external_wp_date_namespaceObject.dateI18n)(format || siteFormat, date)
+ }) : dateLabel;
if (isLink && date) {
- postDate = (0,external_React_namespaceObject.createElement)("a", {
+ postDate = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
href: "#post-date-pseudo-link",
- onClick: event => event.preventDefault()
- }, postDate);
- }
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- }), date && displayType === 'date' && !isDescendentOfQueryLoop && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Dropdown, {
- popoverProps: popoverProps,
- renderContent: ({
- onClose
- }) => (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalPublishDateTimePicker, {
- currentDate: date,
- onChange: setDate,
- is12Hour: is12HourFormat(siteTimeFormat),
- onClose: onClose
- }),
- renderToggle: ({
- isOpen,
- onToggle
- }) => {
- const openOnArrowDown = event => {
- if (!isOpen && event.keyCode === external_wp_keycodes_namespaceObject.DOWN) {
- event.preventDefault();
- onToggle();
+ onClick: event => event.preventDefault(),
+ children: postDate
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
}
- };
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- "aria-expanded": isOpen,
- icon: library_edit,
- title: (0,external_wp_i18n_namespaceObject.__)('Change Date'),
- onClick: onToggle,
- onKeyDown: openOnArrowDown
- });
- }
- }))), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalDateFormatPicker, {
- format: format,
- defaultFormat: siteFormat,
- onChange: nextFormat => setAttributes({
- format: nextFormat
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: postType?.labels.singular_name ? (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Name of the post type e.g: "post".
- (0,external_wp_i18n_namespaceObject.__)('Link to %s'), postType.labels.singular_name.toLowerCase()) : (0,external_wp_i18n_namespaceObject.__)('Link to post'),
- onChange: () => setAttributes({
- isLink: !isLink
- }),
- checked: isLink
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Display last modified date'),
- onChange: value => setAttributes({
- displayType: value ? 'modified' : 'date'
- }),
- checked: displayType === 'modified',
- help: (0,external_wp_i18n_namespaceObject.__)('Only shows if the post has been modified')
- }))), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, postDate));
+ }), date && displayType === 'date' && !isDescendentOfQueryLoop && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ popoverProps: popoverProps,
+ renderContent: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalPublishDateTimePicker, {
+ currentDate: date,
+ onChange: setDate,
+ is12Hour: is12HourFormat(siteTimeFormat),
+ onClose: onClose
+ }),
+ renderToggle: ({
+ isOpen,
+ onToggle
+ }) => {
+ const openOnArrowDown = event => {
+ if (!isOpen && event.keyCode === external_wp_keycodes_namespaceObject.DOWN) {
+ event.preventDefault();
+ onToggle();
+ }
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ "aria-expanded": isOpen,
+ icon: library_edit,
+ title: (0,external_wp_i18n_namespaceObject.__)('Change Date'),
+ onClick: onToggle,
+ onKeyDown: openOnArrowDown
+ });
+ }
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalDateFormatPicker, {
+ format: format,
+ defaultFormat: siteFormat,
+ onChange: nextFormat => setAttributes({
+ format: nextFormat
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: postType?.labels.singular_name ? (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Name of the post type e.g: "post".
+ (0,external_wp_i18n_namespaceObject.__)('Link to %s'), postType.labels.singular_name.toLowerCase()) : (0,external_wp_i18n_namespaceObject.__)('Link to post'),
+ onChange: () => setAttributes({
+ isLink: !isLink
+ }),
+ checked: isLink
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Display last modified date'),
+ onChange: value => setAttributes({
+ displayType: value ? 'modified' : 'date'
+ }),
+ checked: displayType === 'modified',
+ help: (0,external_wp_i18n_namespaceObject.__)('Only shows if the post has been modified')
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: postDate
+ })]
+ });
}
function is12HourFormat(format) {
// To know if the time format is a 12 hour time, look for any of the 12 hour
@@ -41131,21 +42556,21 @@ const post_date_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post-excerpt.js
-
/**
* WordPress dependencies
*/
-const postExcerpt = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const postExcerpt = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"
+ })
+});
/* harmony default export */ const post_excerpt = (postExcerpt);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-excerpt/edit.js
-
/**
* External dependencies
*/
@@ -41165,6 +42590,9 @@ const postExcerpt = (0,external_React_namespaceObject.createElement)(external_wp
* Internal dependencies
*/
+
+
+
const ELLIPSIS = '…';
function PostExcerptEditor({
attributes: {
@@ -41212,7 +42640,7 @@ function PostExcerptEditor({
*/
const isEditable = userCanEdit && !isDescendentOfQueryLoop && postTypeSupportsExcerpts;
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
})
});
@@ -41230,26 +42658,39 @@ function PostExcerptEditor({
* excerpt has been produced from the content.
*/
const strippedRenderedExcerpt = (0,external_wp_element_namespaceObject.useMemo)(() => {
- if (!renderedExcerpt) return '';
+ if (!renderedExcerpt) {
+ return '';
+ }
const document = new window.DOMParser().parseFromString(renderedExcerpt, 'text/html');
return document.body.textContent || document.body.innerText || '';
}, [renderedExcerpt]);
if (!postType || !postId) {
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentToolbar, {
- value: textAlign,
- onChange: newAlign => setAttributes({
- textAlign: newAlign
- })
- })), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('This block will display the excerpt.'))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentToolbar, {
+ value: textAlign,
+ onChange: newAlign => setAttributes({
+ textAlign: newAlign
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('This block will display the excerpt.')
+ })
+ })]
+ });
}
if (isProtected && !userCanEdit) {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_i18n_namespaceObject.__)('The content is currently protected and does not have the available excerpt.')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ children: (0,external_wp_i18n_namespaceObject.__)('The content is currently protected and does not have the available excerpt.')
+ })
+ });
}
- const readMoreLink = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
+ const readMoreLink = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ identifier: "moreText",
className: "wp-block-post-excerpt__more-link",
tagName: "a",
"aria-label": (0,external_wp_i18n_namespaceObject.__)('“Read more” link text'),
@@ -41260,7 +42701,7 @@ function PostExcerptEditor({
}),
withoutInteractiveFormatting: true
});
- const excerptClassName = classnames_default()('wp-block-post-excerpt__excerpt', {
+ const excerptClassName = dist_clsx('wp-block-post-excerpt__excerpt', {
'is-inline': !showMoreOnNewLine
});
@@ -41288,44 +42729,54 @@ function PostExcerptEditor({
trimmedExcerpt = rawOrRenderedExcerpt.split('', excerptLength).join('');
}
const isTrimmed = trimmedExcerpt !== rawOrRenderedExcerpt;
- const excerptContent = isEditable ? (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
+ const excerptContent = isEditable ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
className: excerptClassName,
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Excerpt text'),
value: isSelected ? rawOrRenderedExcerpt : (!isTrimmed ? rawOrRenderedExcerpt : trimmedExcerpt + ELLIPSIS) || (0,external_wp_i18n_namespaceObject.__)('No excerpt found'),
onChange: setExcerpt,
tagName: "p"
- }) : (0,external_React_namespaceObject.createElement)("p", {
- className: excerptClassName
- }, !isTrimmed ? rawOrRenderedExcerpt || (0,external_wp_i18n_namespaceObject.__)('No excerpt found') : trimmedExcerpt + ELLIPSIS);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentToolbar, {
- value: textAlign,
- onChange: newAlign => setAttributes({
- textAlign: newAlign
- })
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Show link on new line'),
- checked: showMoreOnNewLine,
- onChange: newShowMoreOnNewLine => setAttributes({
- showMoreOnNewLine: newShowMoreOnNewLine
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Max number of words'),
- value: excerptLength,
- onChange: value => {
- setAttributes({
- excerptLength: value
- });
- },
- min: "10",
- max: "100"
- }))), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, excerptContent, !showMoreOnNewLine && ' ', showMoreOnNewLine ? (0,external_React_namespaceObject.createElement)("p", {
- className: "wp-block-post-excerpt__more-text"
- }, readMoreLink) : readMoreLink));
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: excerptClassName,
+ children: !isTrimmed ? rawOrRenderedExcerpt || (0,external_wp_i18n_namespaceObject.__)('No excerpt found') : trimmedExcerpt + ELLIPSIS
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentToolbar, {
+ value: textAlign,
+ onChange: newAlign => setAttributes({
+ textAlign: newAlign
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show link on new line'),
+ checked: showMoreOnNewLine,
+ onChange: newShowMoreOnNewLine => setAttributes({
+ showMoreOnNewLine: newShowMoreOnNewLine
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Max number of words'),
+ value: excerptLength,
+ onChange: value => {
+ setAttributes({
+ excerptLength: value
+ });
+ },
+ min: "10",
+ max: "100"
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...blockProps,
+ children: [excerptContent, !showMoreOnNewLine && ' ', showMoreOnNewLine ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "wp-block-post-excerpt__more-text",
+ children: readMoreLink
+ }) : readMoreLink]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-excerpt/transforms.js
@@ -41435,37 +42886,43 @@ const post_excerpt_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post-featured-image.js
-
/**
* WordPress dependencies
*/
-const postFeaturedImage = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const postFeaturedImage = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"
+ })
+});
/* harmony default export */ const post_featured_image = (postFeaturedImage);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-featured-image/dimension-controls.js
-
/**
* WordPress dependencies
*/
-const SCALE_OPTIONS = (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "cover",
- label: (0,external_wp_i18n_namespaceObject._x)('Cover', 'Scale option for Image dimension control')
-}), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "contain",
- label: (0,external_wp_i18n_namespaceObject._x)('Contain', 'Scale option for Image dimension control')
-}), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "fill",
- label: (0,external_wp_i18n_namespaceObject._x)('Fill', 'Scale option for Image dimension control')
-}));
+
+
+
+
+const SCALE_OPTIONS = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "cover",
+ label: (0,external_wp_i18n_namespaceObject._x)('Cover', 'Scale option for Image dimension control')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "contain",
+ label: (0,external_wp_i18n_namespaceObject._x)('Contain', 'Scale option for Image dimension control')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "fill",
+ label: (0,external_wp_i18n_namespaceObject._x)('Fill', 'Scale option for Image dimension control')
+ })]
+});
const DEFAULT_SCALE = 'cover';
const DEFAULT_SIZE = 'full';
const scaleHelp = {
@@ -41483,12 +42940,24 @@ const DimensionControls = ({
sizeSlug
},
setAttributes,
- imageSizeOptions = []
+ media
}) => {
- const [availableUnits] = (0,external_wp_blockEditor_namespaceObject.useSettings)('spacing.units');
+ const [availableUnits, defaultRatios, themeRatios, showDefaultRatios] = (0,external_wp_blockEditor_namespaceObject.useSettings)('spacing.units', 'dimensions.aspectRatios.default', 'dimensions.aspectRatios.theme', 'dimensions.defaultAspectRatios');
const units = (0,external_wp_components_namespaceObject.__experimentalUseCustomUnits)({
availableUnits: availableUnits || ['px', '%', 'vw', 'em', 'rem']
});
+ const imageSizes = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).getSettings().imageSizes, []);
+ const imageSizeOptions = imageSizes.filter(({
+ slug
+ }) => {
+ return media?.media_details?.sizes?.[slug]?.source_url;
+ }).map(({
+ name,
+ slug
+ }) => ({
+ value: slug,
+ label: name
+ }));
const onDimensionChange = (dimension, nextValue) => {
const parsedValue = parseFloat(nextValue);
/**
@@ -41496,142 +42965,221 @@ const DimensionControls = ({
* we don't want to set the attribute, as it would
* end up having the unit as value without any number.
*/
- if (isNaN(parsedValue) && nextValue) return;
+ if (isNaN(parsedValue) && nextValue) {
+ return;
+ }
setAttributes({
[dimension]: parsedValue < 0 ? '0' : nextValue
});
};
const scaleLabel = (0,external_wp_i18n_namespaceObject._x)('Scale', 'Image scaling options');
const showScaleControl = height || aspectRatio && aspectRatio !== 'auto';
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "dimensions"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- hasValue: () => !!aspectRatio,
- label: (0,external_wp_i18n_namespaceObject.__)('Aspect ratio'),
- onDeselect: () => setAttributes({
- aspectRatio: undefined
- }),
- resetAllFilter: () => ({
- aspectRatio: undefined
- }),
- isShownByDefault: true,
- panelId: clientId
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Aspect ratio'),
- value: aspectRatio,
- options: [
- // These should use the same values as AspectRatioDropdown in @wordpress/block-editor
- {
- label: (0,external_wp_i18n_namespaceObject.__)('Original'),
- value: 'auto'
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('Square'),
- value: '1'
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('16:9'),
- value: '16/9'
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('4:3'),
- value: '4/3'
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('3:2'),
- value: '3/2'
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('9:16'),
- value: '9/16'
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('3:4'),
- value: '3/4'
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('2:3'),
- value: '2/3'
- }],
- onChange: nextAspectRatio => setAttributes({
- aspectRatio: nextAspectRatio
- })
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- className: "single-column",
- hasValue: () => !!height,
- label: (0,external_wp_i18n_namespaceObject.__)('Height'),
- onDeselect: () => setAttributes({
- height: undefined
- }),
- resetAllFilter: () => ({
- height: undefined
- }),
- isShownByDefault: true,
- panelId: clientId
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Height'),
- labelPosition: "top",
- value: height || '',
- min: 0,
- onChange: nextHeight => onDimensionChange('height', nextHeight),
- units: units
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- className: "single-column",
- hasValue: () => !!width,
- label: (0,external_wp_i18n_namespaceObject.__)('Width'),
- onDeselect: () => setAttributes({
- width: undefined
- }),
- resetAllFilter: () => ({
- width: undefined
- }),
- isShownByDefault: true,
- panelId: clientId
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Width'),
- labelPosition: "top",
- value: width || '',
- min: 0,
- onChange: nextWidth => onDimensionChange('width', nextWidth),
- units: units
- })), showScaleControl && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- hasValue: () => !!scale && scale !== DEFAULT_SCALE,
- label: scaleLabel,
- onDeselect: () => setAttributes({
- scale: DEFAULT_SCALE
- }),
- resetAllFilter: () => ({
- scale: DEFAULT_SCALE
- }),
- isShownByDefault: true,
- panelId: clientId
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
- __nextHasNoMarginBottom: true,
- label: scaleLabel,
- value: scale,
- help: scaleHelp[scale],
- onChange: value => setAttributes({
- scale: value
- }),
- isBlock: true
- }, SCALE_OPTIONS)), !!imageSizeOptions.length && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- hasValue: () => !!sizeSlug,
- label: (0,external_wp_i18n_namespaceObject.__)('Resolution'),
- onDeselect: () => setAttributes({
- sizeSlug: undefined
- }),
- resetAllFilter: () => ({
- sizeSlug: undefined
- }),
- isShownByDefault: false,
- panelId: clientId
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Resolution'),
- value: sizeSlug || DEFAULT_SIZE,
- options: imageSizeOptions,
- onChange: nextSizeSlug => setAttributes({
- sizeSlug: nextSizeSlug
- }),
- help: (0,external_wp_i18n_namespaceObject.__)('Select the size of the source image.')
- })));
+ const themeOptions = themeRatios?.map(({
+ name,
+ ratio
+ }) => ({
+ label: name,
+ value: ratio
+ }));
+ const defaultOptions = defaultRatios?.map(({
+ name,
+ ratio
+ }) => ({
+ label: name,
+ value: ratio
+ }));
+ const aspectRatioOptions = [{
+ label: (0,external_wp_i18n_namespaceObject._x)('Original', 'Aspect ratio option for dimensions control'),
+ value: 'auto'
+ }, ...(showDefaultRatios ? defaultOptions : []), ...(themeOptions ? themeOptions : [])];
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ hasValue: () => !!aspectRatio,
+ label: (0,external_wp_i18n_namespaceObject.__)('Aspect ratio'),
+ onDeselect: () => setAttributes({
+ aspectRatio: undefined
+ }),
+ resetAllFilter: () => ({
+ aspectRatio: undefined
+ }),
+ isShownByDefault: true,
+ panelId: clientId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Aspect ratio'),
+ value: aspectRatio,
+ options: aspectRatioOptions,
+ onChange: nextAspectRatio => setAttributes({
+ aspectRatio: nextAspectRatio
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ className: "single-column",
+ hasValue: () => !!height,
+ label: (0,external_wp_i18n_namespaceObject.__)('Height'),
+ onDeselect: () => setAttributes({
+ height: undefined
+ }),
+ resetAllFilter: () => ({
+ height: undefined
+ }),
+ isShownByDefault: true,
+ panelId: clientId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Height'),
+ labelPosition: "top",
+ value: height || '',
+ min: 0,
+ onChange: nextHeight => onDimensionChange('height', nextHeight),
+ units: units
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ className: "single-column",
+ hasValue: () => !!width,
+ label: (0,external_wp_i18n_namespaceObject.__)('Width'),
+ onDeselect: () => setAttributes({
+ width: undefined
+ }),
+ resetAllFilter: () => ({
+ width: undefined
+ }),
+ isShownByDefault: true,
+ panelId: clientId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Width'),
+ labelPosition: "top",
+ value: width || '',
+ min: 0,
+ onChange: nextWidth => onDimensionChange('width', nextWidth),
+ units: units
+ })
+ }), showScaleControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ hasValue: () => !!scale && scale !== DEFAULT_SCALE,
+ label: scaleLabel,
+ onDeselect: () => setAttributes({
+ scale: DEFAULT_SCALE
+ }),
+ resetAllFilter: () => ({
+ scale: DEFAULT_SCALE
+ }),
+ isShownByDefault: true,
+ panelId: clientId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
+ __nextHasNoMarginBottom: true,
+ label: scaleLabel,
+ value: scale,
+ help: scaleHelp[scale],
+ onChange: value => setAttributes({
+ scale: value
+ }),
+ isBlock: true,
+ children: SCALE_OPTIONS
+ })
+ }), !!imageSizeOptions.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ hasValue: () => !!sizeSlug,
+ label: (0,external_wp_i18n_namespaceObject.__)('Resolution'),
+ onDeselect: () => setAttributes({
+ sizeSlug: undefined
+ }),
+ resetAllFilter: () => ({
+ sizeSlug: undefined
+ }),
+ isShownByDefault: false,
+ panelId: clientId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Resolution'),
+ value: sizeSlug || DEFAULT_SIZE,
+ options: imageSizeOptions,
+ onChange: nextSizeSlug => setAttributes({
+ sizeSlug: nextSizeSlug
+ }),
+ help: (0,external_wp_i18n_namespaceObject.__)('Select the size of the source image.')
+ })
+ })]
+ });
};
/* harmony default export */ const dimension_controls = (DimensionControls);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-featured-image/overlay-controls.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+const Overlay = ({
+ clientId,
+ attributes,
+ setAttributes,
+ overlayColor,
+ setOverlayColor
+}) => {
+ const {
+ dimRatio
+ } = attributes;
+ const {
+ gradientValue,
+ setGradient
+ } = (0,external_wp_blockEditor_namespaceObject.__experimentalUseGradient)();
+ const colorGradientSettings = (0,external_wp_blockEditor_namespaceObject.__experimentalUseMultipleOriginColorsAndGradients)();
+ if (!colorGradientSettings.hasColorsOrGradients) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalColorGradientSettingsDropdown, {
+ __experimentalIsRenderedInSidebar: true,
+ settings: [{
+ colorValue: overlayColor.color,
+ gradientValue,
+ label: (0,external_wp_i18n_namespaceObject.__)('Overlay'),
+ onColorChange: setOverlayColor,
+ onGradientChange: setGradient,
+ isShownByDefault: true,
+ resetAllFilter: () => ({
+ overlayColor: undefined,
+ customOverlayColor: undefined,
+ gradient: undefined,
+ customGradient: undefined
+ })
+ }],
+ panelId: clientId,
+ ...colorGradientSettings
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ hasValue: () => dimRatio !== undefined,
+ label: (0,external_wp_i18n_namespaceObject.__)('Overlay opacity'),
+ onDeselect: () => setAttributes({
+ dimRatio: 0
+ }),
+ resetAllFilter: () => ({
+ dimRatio: 0
+ }),
+ isShownByDefault: true,
+ panelId: clientId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Overlay opacity'),
+ value: dimRatio,
+ onChange: newDimRatio => setAttributes({
+ dimRatio: newDimRatio
+ }),
+ min: 0,
+ max: 100,
+ step: 10,
+ required: true,
+ __next40pxDefaultSize: true
+ })
+ })]
+ });
+};
+/* harmony default export */ const overlay_controls = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_blockEditor_namespaceObject.withColors)({
+ overlayColor: 'background-color'
+})])(Overlay));
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-featured-image/utils.js
/**
* Generates the opacity/dim class based on given number.
@@ -41645,7 +43193,6 @@ function utils_dimRatioToClass(ratio) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-featured-image/overlay.js
-
/**
* External dependencies
*/
@@ -41657,26 +43204,21 @@ function utils_dimRatioToClass(ratio) {
-
-
/**
* Internal dependencies
*/
-const Overlay = ({
- clientId,
+
+const overlay_Overlay = ({
attributes,
- setAttributes,
- overlayColor,
- setOverlayColor
+ overlayColor
}) => {
const {
dimRatio
} = attributes;
const {
gradientClass,
- gradientValue,
- setGradient
+ gradientValue
} = (0,external_wp_blockEditor_namespaceObject.__experimentalUseGradient)();
const colorGradientSettings = (0,external_wp_blockEditor_namespaceObject.__experimentalUseMultipleOriginColorsAndGradients)();
const borderProps = (0,external_wp_blockEditor_namespaceObject.__experimentalUseBorderProps)(attributes);
@@ -41685,69 +43227,25 @@ const Overlay = ({
backgroundImage: gradientValue,
...borderProps.style
};
- if (!colorGradientSettings.hasColorsOrGradients) {
+ if (!colorGradientSettings.hasColorsOrGradients || !dimRatio) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, !!dimRatio && (0,external_React_namespaceObject.createElement)("span", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
"aria-hidden": "true",
- className: classnames_default()('wp-block-post-featured-image__overlay', utils_dimRatioToClass(dimRatio), {
+ className: dist_clsx('wp-block-post-featured-image__overlay', utils_dimRatioToClass(dimRatio), {
[overlayColor.class]: overlayColor.class,
'has-background-dim': dimRatio !== undefined,
'has-background-gradient': gradientValue,
[gradientClass]: gradientClass
}, borderProps.className),
style: overlayStyles
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "color"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalColorGradientSettingsDropdown, {
- __experimentalIsRenderedInSidebar: true,
- settings: [{
- colorValue: overlayColor.color,
- gradientValue,
- label: (0,external_wp_i18n_namespaceObject.__)('Overlay'),
- onColorChange: setOverlayColor,
- onGradientChange: setGradient,
- isShownByDefault: true,
- resetAllFilter: () => ({
- overlayColor: undefined,
- customOverlayColor: undefined,
- gradient: undefined,
- customGradient: undefined
- })
- }],
- panelId: clientId,
- ...colorGradientSettings
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- hasValue: () => dimRatio !== undefined,
- label: (0,external_wp_i18n_namespaceObject.__)('Overlay opacity'),
- onDeselect: () => setAttributes({
- dimRatio: 0
- }),
- resetAllFilter: () => ({
- dimRatio: 0
- }),
- isShownByDefault: true,
- panelId: clientId
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Overlay opacity'),
- value: dimRatio,
- onChange: newDimRatio => setAttributes({
- dimRatio: newDimRatio
- }),
- min: 0,
- max: 100,
- step: 10,
- required: true,
- __next40pxDefaultSize: true
- }))));
+ });
};
/* harmony default export */ const overlay = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_blockEditor_namespaceObject.withColors)({
overlayColor: 'background-color'
-})])(Overlay));
+})])(overlay_Overlay));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-featured-image/edit.js
-
/**
* External dependencies
*/
@@ -41765,11 +43263,16 @@ const Overlay = ({
+
/**
* Internal dependencies
*/
+
+
+
+
const post_featured_image_edit_ALLOWED_MEDIA_TYPES = ['image'];
function getMediaSourceUrlBySizeSlug(media, slug) {
return media?.media_details?.sizes?.[slug]?.source_url || media?.source_url;
@@ -41800,6 +43303,7 @@ function PostFeaturedImageEdit({
linkTarget,
useFirstImageFromPost
} = attributes;
+ const [temporaryURL, setTemporaryURL] = (0,external_wp_element_namespaceObject.useState)();
const [storedFeaturedImage, setFeaturedImage] = (0,external_wp_coreData_namespaceObject.useEntityProp)('postType', postTypeSlug, 'featured_media', postId);
// Fallback to post content if no featured image is set.
@@ -41835,43 +43339,47 @@ function PostFeaturedImageEdit({
};
}, [featuredImage, postTypeSlug, postId]);
const mediaUrl = getMediaSourceUrlBySizeSlug(media, sizeSlug);
- const imageSizes = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).getSettings().imageSizes, []);
- const imageSizeOptions = imageSizes.filter(({
- slug
- }) => {
- return media?.media_details?.sizes?.[slug]?.source_url;
- }).map(({
- name,
- slug
- }) => ({
- value: slug,
- label: name
- }));
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
style: {
width,
height,
aspectRatio
- }
+ },
+ className: dist_clsx({
+ 'is-transient': temporaryURL
+ })
});
const borderProps = (0,external_wp_blockEditor_namespaceObject.__experimentalUseBorderProps)(attributes);
+ const shadowProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetShadowClassesAndStyles)(attributes);
const blockEditingMode = (0,external_wp_blockEditor_namespaceObject.useBlockEditingMode)();
const placeholder = content => {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- className: classnames_default()('block-editor-media-placeholder', borderProps.className),
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ className: dist_clsx('block-editor-media-placeholder', borderProps.className),
withIllustration: true,
style: {
height: !!aspectRatio && '100%',
width: !!aspectRatio && '100%',
- ...borderProps.style
- }
- }, content);
+ ...borderProps.style,
+ ...shadowProps.style
+ },
+ children: content
+ });
};
const onSelectImage = value => {
if (value?.id) {
setFeaturedImage(value.id);
}
+ if (value?.url && (0,external_wp_blob_namespaceObject.isBlobURL)(value.url)) {
+ setTemporaryURL(value.url);
+ }
};
+
+ // Reset temporary url when media is available.
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (mediaUrl && temporaryURL) {
+ setTemporaryURL();
+ }
+ }, [mediaUrl, temporaryURL]);
const {
createErrorNotice
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
@@ -41879,65 +43387,88 @@ function PostFeaturedImageEdit({
createErrorNotice(message, {
type: 'snackbar'
});
+ setTemporaryURL();
};
- const controls = blockEditingMode === 'default' && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(overlay, {
- attributes: attributes,
- setAttributes: setAttributes,
- clientId: clientId
- }), (0,external_React_namespaceObject.createElement)(dimension_controls, {
- clientId: clientId,
- attributes: attributes,
- setAttributes: setAttributes,
- imageSizeOptions: imageSizeOptions
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: postType?.labels.singular_name ? (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Name of the post type e.g: "Page".
- (0,external_wp_i18n_namespaceObject.__)('Link to %s'), postType.labels.singular_name) : (0,external_wp_i18n_namespaceObject.__)('Link to post'),
- onChange: () => setAttributes({
- isLink: !isLink
- }),
- checked: isLink
- }), isLink && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
- onChange: value => setAttributes({
- linkTarget: value ? '_blank' : '_self'
- }),
- checked: linkTarget === '_blank'
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Link rel'),
- value: rel,
- onChange: newRel => setAttributes({
- rel: newRel
- })
- })))));
+ const controls = blockEditingMode === 'default' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "color",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(overlay_controls, {
+ attributes: attributes,
+ setAttributes: setAttributes,
+ clientId: clientId
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "dimensions",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dimension_controls, {
+ clientId: clientId,
+ attributes: attributes,
+ setAttributes: setAttributes,
+ media: media
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: postType?.labels.singular_name ? (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Name of the post type e.g: "Page".
+ (0,external_wp_i18n_namespaceObject.__)('Link to %s'), postType.labels.singular_name) : (0,external_wp_i18n_namespaceObject.__)('Link to post'),
+ onChange: () => setAttributes({
+ isLink: !isLink
+ }),
+ checked: isLink
+ }), isLink && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
+ onChange: value => setAttributes({
+ linkTarget: value ? '_blank' : '_self'
+ }),
+ checked: linkTarget === '_blank'
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Link rel'),
+ value: rel,
+ onChange: newRel => setAttributes({
+ rel: newRel
+ })
+ })]
+ })]
+ })
+ })]
+ });
let image;
/**
* A Post Featured Image block should not have image replacement
* or upload options in the following cases:
- * - Is placed in a Query Loop. This is a consious decision to
+ * - Is placed in a Query Loop. This is a conscious decision to
* prevent content editing of different posts in Query Loop, and
* this could change in the future.
* - Is in a context where it does not have a postId (for example
* in a template or template part).
*/
if (!featuredImage && (isDescendentOfQueryLoop || !postId)) {
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, controls, (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, !!isLink ? (0,external_React_namespaceObject.createElement)("a", {
- href: postPermalink,
- target: linkTarget,
- ...disabledClickProps
- }, placeholder()) : placeholder()));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [controls, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...blockProps,
+ children: [!!isLink ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: postPermalink,
+ target: linkTarget,
+ ...disabledClickProps,
+ children: placeholder()
+ }) : placeholder(), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(overlay, {
+ attributes: attributes,
+ setAttributes: setAttributes,
+ clientId: clientId
+ })]
+ })]
+ });
}
const label = (0,external_wp_i18n_namespaceObject.__)('Add a featured image');
const imageStyles = {
...borderProps.style,
+ ...shadowProps.style,
height: aspectRatio ? '100%' : height,
width: !!aspectRatio && '100%',
objectFit: !!(height || aspectRatio) && scale
@@ -41950,8 +43481,8 @@ function PostFeaturedImageEdit({
* - It has no image assigned yet
* Then display the placeholder with the image upload option.
*/
- if (!featuredImage) {
- image = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
+ if (!featuredImage && !temporaryURL) {
+ image = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
onSelect: onSelectImage,
accept: "image/*",
allowedTypes: post_featured_image_edit_ALLOWED_MEDIA_TYPES,
@@ -41960,7 +43491,7 @@ function PostFeaturedImageEdit({
mediaLibraryButton: ({
open
}) => {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
icon: library_upload,
variant: "primary",
label: label,
@@ -41974,13 +43505,15 @@ function PostFeaturedImageEdit({
});
} else {
// We have a Featured image so show a Placeholder if is loading.
- image = !media ? placeholder() : (0,external_React_namespaceObject.createElement)("img", {
- className: borderProps.className,
- src: mediaUrl,
- alt: media.alt_text ? (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: The image's alt text.
- (0,external_wp_i18n_namespaceObject.__)('Featured image: %s'), media.alt_text) : (0,external_wp_i18n_namespaceObject.__)('Featured image'),
- style: imageStyles
+ image = !media && !temporaryURL ? placeholder() : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ className: borderProps.className,
+ src: temporaryURL || mediaUrl,
+ alt: media && media?.alt_text ? (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: The image's alt text.
+ (0,external_wp_i18n_namespaceObject.__)('Featured image: %s'), media.alt_text) : (0,external_wp_i18n_namespaceObject.__)('Featured image'),
+ style: imageStyles
+ }), temporaryURL && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})]
});
}
@@ -41990,24 +43523,35 @@ function PostFeaturedImageEdit({
* - Is not inside a query loop
* Then display the image and the image replacement option.
*/
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, controls, !!media && !isDescendentOfQueryLoop && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "other"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, {
- mediaId: featuredImage,
- mediaURL: mediaUrl,
- allowedTypes: post_featured_image_edit_ALLOWED_MEDIA_TYPES,
- accept: "image/*",
- onSelect: onSelectImage,
- onError: onUploadError
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => setFeaturedImage(0)
- }, (0,external_wp_i18n_namespaceObject.__)('Reset')))), (0,external_React_namespaceObject.createElement)("figure", {
- ...blockProps
- }, !!isLink ? (0,external_React_namespaceObject.createElement)("a", {
- href: postPermalink,
- target: linkTarget,
- ...disabledClickProps
- }, image) : image));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [!temporaryURL && controls, !!media && !isDescendentOfQueryLoop && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "other",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, {
+ mediaId: featuredImage,
+ mediaURL: mediaUrl,
+ allowedTypes: post_featured_image_edit_ALLOWED_MEDIA_TYPES,
+ accept: "image/*",
+ onSelect: onSelectImage,
+ onError: onUploadError,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => setFeaturedImage(0),
+ children: (0,external_wp_i18n_namespaceObject.__)('Reset')
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ ...blockProps,
+ children: [!!isLink ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: postPermalink,
+ target: linkTarget,
+ ...disabledClickProps,
+ children: image
+ }) : image, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(overlay, {
+ attributes: attributes,
+ setAttributes: setAttributes,
+ clientId: clientId
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-featured-image/index.js
@@ -42083,7 +43627,6 @@ const post_featured_image_metadata = {
supports: {
align: ["left", "right", "center", "wide", "full"],
color: {
- __experimentalDuotone: "img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before",
text: false,
background: false
},
@@ -42091,7 +43634,6 @@ const post_featured_image_metadata = {
color: true,
radius: true,
width: true,
- __experimentalSelector: "img, .block-editor-media-placeholder, .wp-block-post-featured-image__overlay",
__experimentalSkipSerialization: true,
__experimentalDefaultControls: {
color: true,
@@ -42099,6 +43641,12 @@ const post_featured_image_metadata = {
width: true
}
},
+ filter: {
+ duotone: true
+ },
+ shadow: {
+ __experimentalSkipSerialization: true
+ },
html: false,
spacing: {
margin: true,
@@ -42108,6 +43656,13 @@ const post_featured_image_metadata = {
clientNavigation: true
}
},
+ selectors: {
+ border: ".wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay",
+ shadow: ".wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder",
+ filter: {
+ duotone: ".wp-block-post-featured-image img, .wp-block-post-featured-image .wp-block-post-featured-image__placeholder, .wp-block-post-featured-image .components-placeholder__illustration, .wp-block-post-featured-image .components-placeholder::before"
+ }
+ },
editorStyle: "wp-block-post-featured-image-editor",
style: "wp-block-post-featured-image"
};
@@ -42127,7 +43682,6 @@ const post_featured_image_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-navigation-link/edit.js
-
/**
* External dependencies
*/
@@ -42141,6 +43695,9 @@ const post_featured_image_init = () => initBlock({
+
+
+
function PostNavigationLinkEdit({
context: {
postType
@@ -42170,7 +43727,7 @@ function PostNavigationLinkEdit({
}
const ariaLabel = isNext ? (0,external_wp_i18n_namespaceObject.__)('Next post') : (0,external_wp_i18n_namespaceObject.__)('Previous post');
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
})
});
@@ -42199,106 +43756,123 @@ function PostNavigationLinkEdit({
});
return [selectOption, ...taxonomyOptions];
};
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Display the title as a link'),
- help: (0,external_wp_i18n_namespaceObject.__)('If you have entered a custom label, it will be prepended before the title.'),
- checked: !!showTitle,
- onChange: () => setAttributes({
- showTitle: !showTitle
- })
- }), showTitle && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Include the label as part of the link'),
- checked: !!linkLabel,
- onChange: () => setAttributes({
- linkLabel: !linkLabel
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Arrow'),
- value: arrow,
- onChange: value => {
- setAttributes({
- arrow: value
- });
- },
- help: (0,external_wp_i18n_namespaceObject.__)('A decorative arrow for the next and previous link.'),
- isBlock: true
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "none",
- label: (0,external_wp_i18n_namespaceObject._x)('None', 'Arrow option for Next/Previous link')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "arrow",
- label: (0,external_wp_i18n_namespaceObject._x)('Arrow', 'Arrow option for Next/Previous link')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "chevron",
- label: (0,external_wp_i18n_namespaceObject._x)('Chevron', 'Arrow option for Next/Previous link')
- })))), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "advanced"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Filter by taxonomy'),
- value: taxonomy,
- options: getTaxonomyOptions(),
- onChange: value => setAttributes({
- taxonomy: value
- }),
- help: (0,external_wp_i18n_namespaceObject.__)('Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.')
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentToolbar, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- })), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, !isNext && displayArrow && (0,external_React_namespaceObject.createElement)("span", {
- className: `wp-block-post-navigation-link__arrow-previous is-arrow-${arrow}`
- }, displayArrow), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- tagName: "a",
- "aria-label": ariaLabel,
- placeholder: placeholder,
- value: label,
- allowedFormats: ['core/bold', 'core/italic'],
- onChange: newLabel => setAttributes({
- label: newLabel
- })
- }), showTitle && (0,external_React_namespaceObject.createElement)("a", {
- href: "#post-navigation-pseudo-link",
- onClick: event => event.preventDefault()
- }, (0,external_wp_i18n_namespaceObject.__)('An example title')), isNext && displayArrow && (0,external_React_namespaceObject.createElement)("span", {
- className: `wp-block-post-navigation-link__arrow-next is-arrow-${arrow}`,
- "aria-hidden": true
- }, displayArrow)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Display the title as a link'),
+ help: (0,external_wp_i18n_namespaceObject.__)('If you have entered a custom label, it will be prepended before the title.'),
+ checked: !!showTitle,
+ onChange: () => setAttributes({
+ showTitle: !showTitle
+ })
+ }), showTitle && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Include the label as part of the link'),
+ checked: !!linkLabel,
+ onChange: () => setAttributes({
+ linkLabel: !linkLabel
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Arrow'),
+ value: arrow,
+ onChange: value => {
+ setAttributes({
+ arrow: value
+ });
+ },
+ help: (0,external_wp_i18n_namespaceObject.__)('A decorative arrow for the next and previous link.'),
+ isBlock: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "none",
+ label: (0,external_wp_i18n_namespaceObject._x)('None', 'Arrow option for Next/Previous link')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "arrow",
+ label: (0,external_wp_i18n_namespaceObject._x)('Arrow', 'Arrow option for Next/Previous link')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "chevron",
+ label: (0,external_wp_i18n_namespaceObject._x)('Chevron', 'Arrow option for Next/Previous link')
+ })]
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "advanced",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Filter by taxonomy'),
+ value: taxonomy,
+ options: getTaxonomyOptions(),
+ onChange: value => setAttributes({
+ taxonomy: value
+ }),
+ help: (0,external_wp_i18n_namespaceObject.__)('Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentToolbar, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...blockProps,
+ children: [!isNext && displayArrow && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: `wp-block-post-navigation-link__arrow-previous is-arrow-${arrow}`,
+ children: displayArrow
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ tagName: "a",
+ identifier: "label",
+ "aria-label": ariaLabel,
+ placeholder: placeholder,
+ value: label,
+ allowedFormats: ['core/bold', 'core/italic'],
+ onChange: newLabel => setAttributes({
+ label: newLabel
+ })
+ }), showTitle && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: "#post-navigation-pseudo-link",
+ onClick: event => event.preventDefault(),
+ children: (0,external_wp_i18n_namespaceObject.__)('An example title')
+ }), isNext && displayArrow && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: `wp-block-post-navigation-link__arrow-next is-arrow-${arrow}`,
+ "aria-hidden": true,
+ children: displayArrow
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/next.js
-
/**
* WordPress dependencies
*/
-const next = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const next = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"
+ })
+});
/* harmony default export */ const library_next = (next);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/previous.js
-
/**
* WordPress dependencies
*/
-const previous = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const previous = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"
+ })
+});
/* harmony default export */ const library_previous = (previous);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-navigation-link/variations.js
@@ -42334,7 +43908,9 @@ const post_navigation_link_variations_variations = [{
* Block by providing its attributes.
*/
post_navigation_link_variations_variations.forEach(variation => {
- if (variation.isActive) return;
+ if (variation.isActive) {
+ return;
+ }
variation.isActive = (blockAttributes, variationAttributes) => blockAttributes.type === variationAttributes.type;
});
/* harmony default export */ const post_navigation_link_variations = (post_navigation_link_variations_variations);
@@ -42424,7 +44000,6 @@ const post_navigation_link_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-template/edit.js
-
/**
* External dependencies
*/
@@ -42440,28 +44015,34 @@ const post_navigation_link_init = () => initBlock({
+
+
+
const post_template_edit_TEMPLATE = [['core/post-title'], ['core/post-date'], ['core/post-excerpt']];
-function PostTemplateInnerBlocks() {
+function PostTemplateInnerBlocks({
+ classList
+}) {
const innerBlocksProps = (0,external_wp_blockEditor_namespaceObject.useInnerBlocksProps)({
- className: 'wp-block-post'
+ className: dist_clsx('wp-block-post', classList)
}, {
template: post_template_edit_TEMPLATE,
__unstableDisableLayoutClassNames: true
});
- return (0,external_React_namespaceObject.createElement)("li", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
...innerBlocksProps
});
}
function PostTemplateBlockPreview({
blocks,
blockContextId,
+ classList,
isHidden,
setActiveBlockContextId
}) {
const blockPreviewProps = (0,external_wp_blockEditor_namespaceObject.__experimentalUseBlockPreview)({
blocks,
props: {
- className: 'wp-block-post'
+ className: dist_clsx('wp-block-post', classList)
}
});
const handleOnClick = () => {
@@ -42470,7 +44051,7 @@ function PostTemplateBlockPreview({
const style = {
display: isHidden ? 'none' : undefined
};
- return (0,external_React_namespaceObject.createElement)("li", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
...blockPreviewProps,
tabIndex: 0
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role
@@ -42606,24 +44187,30 @@ function PostTemplateEdit({
blocks: getBlocks(clientId)
};
}, [perPage, offset, order, orderBy, clientId, author, search, postType, exclude, sticky, inherit, templateSlug, taxQuery, parents, restQueryArgs, previewPostType]);
- const blockContexts = (0,external_wp_element_namespaceObject.useMemo)(() => posts?.map(post => ({
- postType: post.type,
- postId: post.id
- })), [posts]);
+ const blockContexts = (0,external_wp_element_namespaceObject.useMemo)(() => posts?.map(post => {
+ var _post$class_list;
+ return {
+ postType: post.type,
+ postId: post.id,
+ classList: (_post$class_list = post.class_list) !== null && _post$class_list !== void 0 ? _post$class_list : ''
+ };
+ }), [posts]);
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()(__unstableLayoutClassNames, {
+ className: dist_clsx(__unstableLayoutClassNames, {
[`columns-${columnCount}`]: layoutType === 'grid' && columnCount // Ensure column count is flagged via classname for backwards compatibility.
})
});
if (!posts) {
- return (0,external_React_namespaceObject.createElement)("p", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
+ });
}
if (!posts.length) {
- return (0,external_React_namespaceObject.createElement)("p", {
- ...blockProps
- }, " ", (0,external_wp_i18n_namespaceObject.__)('No results found.'));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("p", {
+ ...blockProps,
+ children: [" ", (0,external_wp_i18n_namespaceObject.__)('No results found.')]
+ });
}
const setDisplayLayout = newDisplayLayout => setAttributes({
layout: {
@@ -42633,14 +44220,14 @@ function PostTemplateEdit({
});
const displayLayoutControls = [{
icon: library_list,
- title: (0,external_wp_i18n_namespaceObject.__)('List view'),
+ title: (0,external_wp_i18n_namespaceObject._x)('List view', 'Post template block display setting'),
onClick: () => setDisplayLayout({
type: 'default'
}),
isActive: layoutType === 'default' || layoutType === 'constrained'
}, {
icon: library_grid,
- title: (0,external_wp_i18n_namespaceObject.__)('Grid view'),
+ title: (0,external_wp_i18n_namespaceObject._x)('Grid view', 'Post template block display setting'),
onClick: () => setDisplayLayout({
type: 'grid',
columnCount
@@ -42652,29 +44239,37 @@ function PostTemplateEdit({
// for each block context, but the preview for the active block context is hidden.
// This ensures that when it is displayed again, the cached rendering of the
// block preview is used, instead of having to re-render the preview from scratch.
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, {
- controls: displayLayoutControls
- })), (0,external_React_namespaceObject.createElement)("ul", {
- ...blockProps
- }, blockContexts && blockContexts.map(blockContext => (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockContextProvider, {
- key: blockContext.postId,
- value: blockContext
- }, blockContext.postId === (activeBlockContextId || blockContexts[0]?.postId) ? (0,external_React_namespaceObject.createElement)(PostTemplateInnerBlocks, null) : null, (0,external_React_namespaceObject.createElement)(MemoizedPostTemplateBlockPreview, {
- blocks: blocks,
- blockContextId: blockContext.postId,
- setActiveBlockContextId: setActiveBlockContextId,
- isHidden: blockContext.postId === (activeBlockContextId || blockContexts[0]?.postId)
- })))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ controls: displayLayoutControls
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ ...blockProps,
+ children: blockContexts && blockContexts.map(blockContext => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.BlockContextProvider, {
+ value: blockContext,
+ children: [blockContext.postId === (activeBlockContextId || blockContexts[0]?.postId) ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostTemplateInnerBlocks, {
+ classList: blockContext.classList
+ }) : null, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MemoizedPostTemplateBlockPreview, {
+ blocks: blocks,
+ blockContextId: blockContext.postId,
+ classList: blockContext.classList,
+ setActiveBlockContextId: setActiveBlockContextId,
+ isHidden: blockContext.postId === (activeBlockContextId || blockContexts[0]?.postId)
+ })]
+ }, blockContext.postId))
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-template/save.js
-
/**
* WordPress dependencies
*/
+
function PostTemplateSave() {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-template/index.js
@@ -42756,19 +44351,20 @@ const post_template_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post-categories.js
-
/**
* WordPress dependencies
*/
-const postCategories = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const postCategories = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",
- fillRule: "evenodd",
- clipRule: "evenodd"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",
+ fillRule: "evenodd",
+ clipRule: "evenodd"
+ })
+});
/* harmony default export */ const post_categories = (postCategories);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-terms/use-post-terms.js
@@ -42813,7 +44409,6 @@ function usePostTerms({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-terms/edit.js
-
/**
* External dependencies
*/
@@ -42836,6 +44431,9 @@ function usePostTerms({
// Allowed formats for the prefix and suffix fields.
+
+
+
const ALLOWED_FORMATS = ['core/bold', 'core/image', 'core/italic', 'core/link', 'core/strikethrough', 'core/text-color'];
function PostTermsEdit({
attributes,
@@ -42857,7 +44455,9 @@ function PostTermsEdit({
postType
} = context;
const selectedTerm = (0,external_wp_data_namespaceObject.useSelect)(select => {
- if (!term) return {};
+ if (!term) {
+ return {};
+ }
const {
getTaxonomy
} = select(external_wp_coreData_namespaceObject.store);
@@ -42875,75 +44475,89 @@ function PostTermsEdit({
const hasPost = postId && postType;
const blockInformation = (0,external_wp_blockEditor_namespaceObject.useBlockDisplayInformation)(clientId);
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign,
[`taxonomy-${term}`]: term
})
});
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentToolbar, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "advanced"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- autoComplete: "off",
- label: (0,external_wp_i18n_namespaceObject.__)('Separator'),
- value: separator || '',
- onChange: nextValue => {
- setAttributes({
- separator: nextValue
- });
- },
- help: (0,external_wp_i18n_namespaceObject.__)('Enter character(s) used to separate terms.')
- })), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, isLoading && hasPost && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null), !isLoading && (isSelected || prefix) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- allowedFormats: ALLOWED_FORMATS,
- className: "wp-block-post-terms__prefix",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Prefix'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Prefix') + ' ',
- value: prefix,
- onChange: value => setAttributes({
- prefix: value
- }),
- tagName: "span"
- }), (!hasPost || !term) && (0,external_React_namespaceObject.createElement)("span", null, blockInformation.title), hasPost && !isLoading && hasPostTerms && postTerms.map(postTerm => (0,external_React_namespaceObject.createElement)("a", {
- key: postTerm.id,
- href: postTerm.link,
- onClick: event => event.preventDefault()
- }, (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(postTerm.name))).reduce((prev, curr) => (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, prev, (0,external_React_namespaceObject.createElement)("span", {
- className: "wp-block-post-terms__separator"
- }, separator || ' '), curr)), hasPost && !isLoading && !hasPostTerms && (selectedTerm?.labels?.no_terms || (0,external_wp_i18n_namespaceObject.__)('Term items not found.')), !isLoading && (isSelected || suffix) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- allowedFormats: ALLOWED_FORMATS,
- className: "wp-block-post-terms__suffix",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Suffix'),
- placeholder: ' ' + (0,external_wp_i18n_namespaceObject.__)('Suffix'),
- value: suffix,
- onChange: value => setAttributes({
- suffix: value
- }),
- tagName: "span",
- __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)()))
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentToolbar, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "advanced",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ autoComplete: "off",
+ label: (0,external_wp_i18n_namespaceObject.__)('Separator'),
+ value: separator || '',
+ onChange: nextValue => {
+ setAttributes({
+ separator: nextValue
+ });
+ },
+ help: (0,external_wp_i18n_namespaceObject.__)('Enter character(s) used to separate terms.')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...blockProps,
+ children: [isLoading && hasPost && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}), !isLoading && (isSelected || prefix) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ identifier: "prefix",
+ allowedFormats: ALLOWED_FORMATS,
+ className: "wp-block-post-terms__prefix",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Prefix'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Prefix') + ' ',
+ value: prefix,
+ onChange: value => setAttributes({
+ prefix: value
+ }),
+ tagName: "span"
+ }), (!hasPost || !term) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: blockInformation.title
+ }), hasPost && !isLoading && hasPostTerms && postTerms.map(postTerm => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: postTerm.link,
+ onClick: event => event.preventDefault(),
+ children: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(postTerm.name)
+ }, postTerm.id)).reduce((prev, curr) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [prev, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "wp-block-post-terms__separator",
+ children: separator || ' '
+ }), curr]
+ })), hasPost && !isLoading && !hasPostTerms && (selectedTerm?.labels?.no_terms || (0,external_wp_i18n_namespaceObject.__)('Term items not found.')), !isLoading && (isSelected || suffix) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ identifier: "suffix",
+ allowedFormats: ALLOWED_FORMATS,
+ className: "wp-block-post-terms__suffix",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Suffix'),
+ placeholder: ' ' + (0,external_wp_i18n_namespaceObject.__)('Suffix'),
+ value: suffix,
+ onChange: value => setAttributes({
+ suffix: value
+ }),
+ tagName: "span",
+ __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)()))
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post-terms.js
-
/**
* WordPress dependencies
*/
-const postTerms = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const postTerms = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"
+ })
+});
/* harmony default export */ const post_terms = (postTerms);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-terms/hooks.js
@@ -43073,7 +44687,6 @@ const post_terms_init = () => {
;// CONCATENATED MODULE: external ["wp","wordcount"]
const external_wp_wordcount_namespaceObject = window["wp"]["wordcount"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-time-to-read/edit.js
-
/**
* External dependencies
*/
@@ -43094,6 +44707,9 @@ const external_wp_wordcount_namespaceObject = window["wp"]["wordcount"];
* https://irisreading.com/average-reading-speed-in-various-languages/
* (Characters/minute used for Chinese rather than words).
*/
+
+
+
const AVERAGE_READING_RATE = 189;
function PostTimeToReadEdit({
attributes,
@@ -43133,44 +44749,49 @@ function PostTimeToReadEdit({
* Do not translate into your own language.
*/
const wordCountType = (0,external_wp_i18n_namespaceObject._x)('words', 'Word count type. Do not translate!');
- const minutesToRead = Math.max(1, Math.round((0,external_wp_wordcount_namespaceObject.count)(content, wordCountType) / AVERAGE_READING_RATE));
+ const minutesToRead = Math.max(1, Math.round((0,external_wp_wordcount_namespaceObject.count)(content || '', wordCountType) / AVERAGE_READING_RATE));
return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d is the number of minutes the post will take to read. */
(0,external_wp_i18n_namespaceObject._n)('%d minute', '%d minutes', minutesToRead), minutesToRead);
}, [contentStructure, blocks]);
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
})
});
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- })), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, minutesToReadString));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: minutesToReadString
+ })]
+ });
}
/* harmony default export */ const post_time_to_read_edit = (PostTimeToReadEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-time-to-read/icon.js
-
/**
* WordPress dependencies
*/
-/* harmony default export */ const icon = ((0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+
+/* harmony default export */ const icon = (/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
width: "24",
height: "24",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16.5c-4.1 0-7.5-3.4-7.5-7.5S7.9 4.5 12 4.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5zM12 7l-1 5c0 .3.2.6.4.8l4.2 2.8-2.7-4.1L12 7z"
-})));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16.5c-4.1 0-7.5-3.4-7.5-7.5S7.9 4.5 12 4.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5zM12 7l-1 5c0 .3.2.6.4.8l4.2 2.8-2.7-4.1L12 7z"
+ })
+}));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-time-to-read/index.js
/**
@@ -43244,7 +44865,6 @@ const post_time_to_read_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-title/edit.js
-
/**
* External dependencies
*/
@@ -43259,9 +44879,8 @@ const post_time_to_read_init = () => initBlock({
-/**
- * Internal dependencies
- */
+
+
function PostTitleEdit({
attributes: {
@@ -43279,31 +44898,39 @@ function PostTitleEdit({
},
insertBlocksAfter
}) {
- const TagName = 'h' + level;
+ const TagName = level === 0 ? 'p' : `h${level}`;
const isDescendentOfQueryLoop = Number.isFinite(queryId);
- /**
- * Hack: useCanEditEntity may trigger an OPTIONS request to the REST API via the canUser resolver.
- * However, when the Post Title is a descendant of a Query Loop block, the title cannot be edited.
- * In order to avoid these unnecessary requests, we call the hook without
- * the proper data, resulting in returning early without making them.
- */
- const userCanEdit = useCanEditEntity('postType', !isDescendentOfQueryLoop && postType, postId);
+ const userCanEdit = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ /**
+ * useCanEditEntity may trigger an OPTIONS request to the REST API
+ * via the canUser resolver. However, when the Post Title is a
+ * descendant of a Query Loop block, the title cannot be edited. In
+ * order to avoid these unnecessary requests, we call the hook
+ * without the proper data, resulting in returning early without
+ * making them.
+ */
+ if (isDescendentOfQueryLoop) {
+ return false;
+ }
+ return select(external_wp_coreData_namespaceObject.store).canUserEditEntityRecord('postType', postType, postId);
+ }, [isDescendentOfQueryLoop, postType, postId]);
const [rawTitle = '', setTitle, fullTitle] = (0,external_wp_coreData_namespaceObject.useEntityProp)('postType', postType, 'title', postId);
const [link] = (0,external_wp_coreData_namespaceObject.useEntityProp)('postType', postType, 'link', postId);
const onSplitAtEnd = () => {
insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)()));
};
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
})
});
const blockEditingMode = (0,external_wp_blockEditor_namespaceObject.useBlockEditingMode)();
- let titleElement = (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps
- }, (0,external_wp_i18n_namespaceObject.__)('Title'));
+ let titleElement = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...blockProps,
+ children: (0,external_wp_i18n_namespaceObject.__)('Title')
+ });
if (postType && postId) {
- titleElement = userCanEdit ? (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.PlainText, {
+ titleElement = userCanEdit ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.PlainText, {
tagName: TagName,
placeholder: (0,external_wp_i18n_namespaceObject.__)('No Title'),
value: rawTitle,
@@ -43311,7 +44938,7 @@ function PostTitleEdit({
__experimentalVersion: 2,
__unstableOnSplitAtEnd: onSplitAtEnd,
...blockProps
- }) : (0,external_React_namespaceObject.createElement)(TagName, {
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
...blockProps,
dangerouslySetInnerHTML: {
__html: fullTitle?.rendered
@@ -43319,68 +44946,80 @@ function PostTitleEdit({
});
}
if (isLink && postType && postId) {
- titleElement = userCanEdit ? (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.PlainText, {
- tagName: "a",
- href: link,
- target: linkTarget,
- rel: rel,
- placeholder: !rawTitle.length ? (0,external_wp_i18n_namespaceObject.__)('No Title') : null,
- value: rawTitle,
- onChange: setTitle,
- __experimentalVersion: 2,
- __unstableOnSplitAtEnd: onSplitAtEnd
- })) : (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)("a", {
- href: link,
- target: linkTarget,
- rel: rel,
- onClick: event => event.preventDefault(),
- dangerouslySetInnerHTML: {
- __html: fullTitle?.rendered
- }
- }));
+ titleElement = userCanEdit ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.PlainText, {
+ tagName: "a",
+ href: link,
+ target: linkTarget,
+ rel: rel,
+ placeholder: !rawTitle.length ? (0,external_wp_i18n_namespaceObject.__)('No Title') : null,
+ value: rawTitle,
+ onChange: setTitle,
+ __experimentalVersion: 2,
+ __unstableOnSplitAtEnd: onSplitAtEnd
+ })
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: link,
+ target: linkTarget,
+ rel: rel,
+ onClick: event => event.preventDefault(),
+ dangerouslySetInnerHTML: {
+ __html: fullTitle?.rendered
+ }
+ })
+ });
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, blockEditingMode === 'default' && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.HeadingLevelDropdown, {
- value: level,
- onChange: newLevel => setAttributes({
- level: newLevel
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Make title a link'),
- onChange: () => setAttributes({
- isLink: !isLink
- }),
- checked: isLink
- }), isLink && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
- onChange: value => setAttributes({
- linkTarget: value ? '_blank' : '_self'
- }),
- checked: linkTarget === '_blank'
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Link rel'),
- value: rel,
- onChange: newRel => setAttributes({
- rel: newRel
- })
- }))))), titleElement);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [blockEditingMode === 'default' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.HeadingLevelDropdown, {
+ value: level,
+ onChange: newLevel => setAttributes({
+ level: newLevel
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Make title a link'),
+ onChange: () => setAttributes({
+ isLink: !isLink
+ }),
+ checked: isLink
+ }), isLink && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
+ onChange: value => setAttributes({
+ linkTarget: value ? '_blank' : '_self'
+ }),
+ checked: linkTarget === '_blank'
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Link rel'),
+ value: rel,
+ onChange: newRel => setAttributes({
+ rel: newRel
+ })
+ })]
+ })]
+ })
+ })]
+ }), titleElement]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-title/deprecated.js
@@ -43545,27 +45184,28 @@ const post_title_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/preformatted.js
-
/**
* WordPress dependencies
*/
-const preformatted = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const preformatted = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"
+ })
+});
/* harmony default export */ const library_preformatted = (preformatted);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/preformatted/edit.js
-
/**
* WordPress dependencies
*/
+
function PreformattedEdit({
attributes,
mergeBlocks,
@@ -43580,7 +45220,7 @@ function PreformattedEdit({
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
style
});
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
tagName: "pre",
identifier: "content",
preserveWhiteSpace: true,
@@ -43601,22 +45241,23 @@ function PreformattedEdit({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/preformatted/save.js
-
/**
* WordPress dependencies
*/
+
function preformatted_save_save({
attributes
}) {
const {
content
} = attributes;
- return (0,external_React_namespaceObject.createElement)("pre", {
- ...external_wp_blockEditor_namespaceObject.useBlockProps.save()
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: content
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("pre", {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save(),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: content
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/preformatted/transforms.js
@@ -43751,24 +45392,24 @@ const preformatted_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pullquote.js
-
/**
* WordPress dependencies
*/
-const pullquote = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const pullquote = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const library_pullquote = (pullquote);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/shared.js
const SOLID_COLOR_CLASS = `is-style-solid-color`;
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/deprecated.js
-
/**
* External dependencies
*/
@@ -43784,6 +45425,8 @@ const SOLID_COLOR_CLASS = `is-style-solid-color`;
* Internal dependencies
*/
+
+
const pullquote_deprecated_blockAttributes = {
value: {
type: 'string',
@@ -43856,19 +45499,22 @@ const pullquote_deprecated_v5 = {
value
} = attributes;
const shouldShowCitation = !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation);
- return (0,external_React_namespaceObject.createElement)("figure", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
})
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("blockquote", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: value,
+ multiline: true
+ }), shouldShowCitation && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "cite",
+ value: citation
+ })]
})
- }, (0,external_React_namespaceObject.createElement)("blockquote", null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: value,
- multiline: true
- }), shouldShowCitation && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "cite",
- value: citation
- })));
+ });
},
migrate({
value,
@@ -43905,7 +45551,7 @@ const pullquote_deprecated_v4 = {
// Is solid color style
if (isSolidColorStyle) {
const backgroundClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('background-color', mainColor);
- figureClasses = classnames_default()({
+ figureClasses = dist_clsx({
'has-background': backgroundClass || customMainColor,
[backgroundClass]: backgroundClass
});
@@ -43919,28 +45565,30 @@ const pullquote_deprecated_v4 = {
};
}
const blockquoteTextColorClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', textColor);
- const blockquoteClasses = classnames_default()({
+ const blockquoteClasses = dist_clsx({
'has-text-color': textColor || customTextColor,
[blockquoteTextColorClass]: blockquoteTextColorClass
});
const blockquoteStyles = blockquoteTextColorClass ? undefined : {
color: customTextColor
};
- return (0,external_React_namespaceObject.createElement)("figure", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: figureClasses,
style: figureStyles
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("blockquote", {
+ className: blockquoteClasses,
+ style: blockquoteStyles,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: value,
+ multiline: true
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "cite",
+ value: citation
+ })]
})
- }, (0,external_React_namespaceObject.createElement)("blockquote", {
- className: blockquoteClasses,
- style: blockquoteStyles
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: value,
- multiline: true
- }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "cite",
- value: citation
- })));
+ });
},
migrate({
value,
@@ -44018,7 +45666,7 @@ const pullquote_deprecated_v3 = {
// Is solid color style
if (isSolidColorStyle) {
const backgroundClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('background-color', mainColor);
- figureClasses = classnames_default()({
+ figureClasses = dist_clsx({
'has-background': backgroundClass || customMainColor,
[backgroundClass]: backgroundClass
});
@@ -44044,25 +45692,27 @@ const pullquote_deprecated_v3 = {
};
}
const blockquoteTextColorClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', textColor);
- const blockquoteClasses = (textColor || customTextColor) && classnames_default()('has-text-color', {
+ const blockquoteClasses = (textColor || customTextColor) && dist_clsx('has-text-color', {
[blockquoteTextColorClass]: blockquoteTextColorClass
});
const blockquoteStyles = blockquoteTextColorClass ? undefined : {
color: customTextColor
};
- return (0,external_React_namespaceObject.createElement)("figure", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
className: figureClasses,
- style: figureStyles
- }, (0,external_React_namespaceObject.createElement)("blockquote", {
- className: blockquoteClasses,
- style: blockquoteStyles
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: value,
- multiline: true
- }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "cite",
- value: citation
- })));
+ style: figureStyles,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("blockquote", {
+ className: blockquoteClasses,
+ style: blockquoteStyles,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: value,
+ multiline: true
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "cite",
+ value: citation
+ })]
+ })
+ });
},
migrate({
value,
@@ -44170,25 +45820,27 @@ const pullquote_deprecated_v2 = {
};
}
const blockquoteTextColorClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', textColor);
- const blockquoteClasses = textColor || customTextColor ? classnames_default()('has-text-color', {
+ const blockquoteClasses = textColor || customTextColor ? dist_clsx('has-text-color', {
[blockquoteTextColorClass]: blockquoteTextColorClass
}) : undefined;
const blockquoteStyle = blockquoteTextColorClass ? undefined : {
color: customTextColor
};
- return (0,external_React_namespaceObject.createElement)("figure", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
className: figureClass,
- style: figureStyles
- }, (0,external_React_namespaceObject.createElement)("blockquote", {
- className: blockquoteClasses,
- style: blockquoteStyle
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: value,
- multiline: true
- }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "cite",
- value: citation
- })));
+ style: figureStyles,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("blockquote", {
+ className: blockquoteClasses,
+ style: blockquoteStyle,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: value,
+ multiline: true
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "cite",
+ value: citation
+ })]
+ })
+ });
},
migrate({
value,
@@ -44247,13 +45899,15 @@ const pullquote_deprecated_v1 = {
value,
citation
} = attributes;
- return (0,external_React_namespaceObject.createElement)("blockquote", null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: value,
- multiline: true
- }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "cite",
- value: citation
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("blockquote", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: value,
+ multiline: true
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "cite",
+ value: citation
+ })]
+ });
},
migrate({
value,
@@ -44286,15 +45940,16 @@ const deprecated_v0 = {
citation,
align
} = attributes;
- return (0,external_React_namespaceObject.createElement)("blockquote", {
- className: `align${align}`
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: value,
- multiline: true
- }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "footer",
- value: citation
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("blockquote", {
+ className: `align${align}`,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: value,
+ multiline: true
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "footer",
+ value: citation
+ })]
+ });
},
migrate({
value,
@@ -44324,7 +45979,6 @@ const Figure = 'figure';
const BlockQuote = 'blockquote';
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/edit.js
-
/**
* External dependencies
*/
@@ -44343,6 +45997,9 @@ const BlockQuote = 'blockquote';
*/
+
+
+
const isWebPlatform = external_wp_element_namespaceObject.Platform.OS === 'web';
function PullQuoteEdit({
attributes,
@@ -44356,58 +46013,63 @@ function PullQuoteEdit({
value
} = attributes;
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
})
});
const shouldShowCitation = !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) || isSelected;
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- })), (0,external_React_namespaceObject.createElement)(Figure, {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(BlockQuote, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- identifier: "value",
- tagName: "p",
- value: value,
- onChange: nextValue => setAttributes({
- value: nextValue
- }),
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Pullquote text'),
- placeholder:
- // translators: placeholder text used for the quote
- (0,external_wp_i18n_namespaceObject.__)('Add quote'),
- textAlign: "center"
- }), shouldShowCitation && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- identifier: "citation",
- tagName: isWebPlatform ? 'cite' : undefined,
- style: {
- display: 'block'
- },
- value: citation,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Pullquote citation text'),
- placeholder:
- // translators: placeholder text used for the citation
- (0,external_wp_i18n_namespaceObject.__)('Add citation'),
- onChange: nextCitation => setAttributes({
- citation: nextCitation
- }),
- className: "wp-block-pullquote__citation",
- __unstableMobileNoFocusOnMount: true,
- textAlign: "center",
- __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)()))
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Figure, {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(BlockQuote, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ identifier: "value",
+ tagName: "p",
+ value: value,
+ onChange: nextValue => setAttributes({
+ value: nextValue
+ }),
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Pullquote text'),
+ placeholder:
+ // translators: placeholder text used for the quote
+ (0,external_wp_i18n_namespaceObject.__)('Add quote'),
+ textAlign: "center"
+ }), shouldShowCitation && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ identifier: "citation",
+ tagName: isWebPlatform ? 'cite' : undefined,
+ style: {
+ display: 'block'
+ },
+ value: citation,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Pullquote citation text'),
+ placeholder:
+ // translators: placeholder text used for the citation
+ (0,external_wp_i18n_namespaceObject.__)('Add citation'),
+ onChange: nextCitation => setAttributes({
+ citation: nextCitation
+ }),
+ className: "wp-block-pullquote__citation",
+ __unstableMobileNoFocusOnMount: true,
+ textAlign: "center",
+ __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)()))
+ })]
+ })
+ })]
+ });
}
/* harmony default export */ const pullquote_edit = (PullQuoteEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/save.js
-
/**
* External dependencies
*/
@@ -44417,6 +46079,8 @@ function PullQuoteEdit({
* WordPress dependencies
*/
+
+
function pullquote_save_save({
attributes
}) {
@@ -44426,19 +46090,22 @@ function pullquote_save_save({
value
} = attributes;
const shouldShowCitation = !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation);
- return (0,external_React_namespaceObject.createElement)("figure", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("figure", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
})
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("blockquote", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "p",
+ value: value
+ }), shouldShowCitation && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "cite",
+ value: citation
+ })]
})
- }, (0,external_React_namespaceObject.createElement)("blockquote", null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "p",
- value: value
- }), shouldShowCitation && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "cite",
- value: citation
- })));
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/transforms.js
@@ -44651,33 +46318,36 @@ const pullquote_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/loop.js
-
/**
* WordPress dependencies
*/
-const loop = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const loop = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"
+ })
+});
/* harmony default export */ const library_loop = (loop);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/settings.js
-
/**
* WordPress dependencies
*/
-const settings_settings = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const settings_settings = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"
-}), (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"
+ })]
+});
/* harmony default export */ const library_settings = (settings_settings);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/utils.js
@@ -44796,7 +46466,9 @@ const usePostTypes = () => {
return filteredPostTypes;
}, []);
const postTypesTaxonomiesMap = (0,external_wp_element_namespaceObject.useMemo)(() => {
- if (!postTypes?.length) return;
+ if (!postTypes?.length) {
+ return;
+ }
return postTypes.reduce((accumulator, type) => {
accumulator[type.slug] = type.taxonomies;
return accumulator;
@@ -44826,14 +46498,16 @@ const useTaxonomies = postType => {
const {
getTaxonomies
} = select(external_wp_coreData_namespaceObject.store);
- const filteredTaxonomies = getTaxonomies({
+ return getTaxonomies({
type: postType,
- per_page: -1,
- context: 'view'
+ per_page: -1
});
- return filteredTaxonomies;
}, [postType]);
- return taxonomies;
+ return (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return taxonomies?.filter(({
+ visibility
+ }) => !!visibility?.publicly_queryable);
+ }, [taxonomies]);
};
/**
@@ -45062,7 +46736,6 @@ const useUnsupportedBlocks = clientId => {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/edit/query-toolbar.js
-
/**
* WordPress dependencies
*/
@@ -45075,6 +46748,9 @@ const useUnsupportedBlocks = clientId => {
* Internal dependencies
*/
+
+
+
function QueryToolbar({
attributes: {
query
@@ -45086,84 +46762,97 @@ function QueryToolbar({
}) {
const hasPatterns = !!usePatterns(clientId, name).length;
const maxPageInputId = (0,external_wp_compose_namespaceObject.useInstanceId)(QueryToolbar, 'blocks-query-pagination-max-page-input');
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, !query.inherit && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Dropdown, {
- contentClassName: "block-library-query-toolbar__popover",
- renderToggle: ({
- onToggle
- }) => (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- icon: library_settings,
- label: (0,external_wp_i18n_namespaceObject.__)('Display settings'),
- onClick: onToggle
- }),
- renderContent: () => (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.BaseControl, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalNumberControl, {
- __unstableInputWidth: "60px",
- label: (0,external_wp_i18n_namespaceObject.__)('Items per Page'),
- labelPosition: "edge",
- min: 1,
- max: 100,
- onChange: value => {
- if (isNaN(value) || value < 1 || value > 100) {
- return;
- }
- setQuery({
- perPage: value
- });
- },
- step: "1",
- value: query.perPage,
- isDragEnabled: false
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.BaseControl, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalNumberControl, {
- __unstableInputWidth: "60px",
- label: (0,external_wp_i18n_namespaceObject.__)('Offset'),
- labelPosition: "edge",
- min: 0,
- max: 100,
- onChange: value => {
- if (isNaN(value) || value < 0 || value > 100) {
- return;
- }
- setQuery({
- offset: value
- });
- },
- step: "1",
- value: query.offset,
- isDragEnabled: false
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.BaseControl, {
- id: maxPageInputId,
- help: (0,external_wp_i18n_namespaceObject.__)('Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalNumberControl, {
- id: maxPageInputId,
- __unstableInputWidth: "60px",
- label: (0,external_wp_i18n_namespaceObject.__)('Max page to show'),
- labelPosition: "edge",
- min: 0,
- onChange: value => {
- if (isNaN(value) || value < 0) {
- return;
- }
- setQuery({
- pages: value
- });
- },
- step: "1",
- value: query.pages,
- isDragEnabled: false
- })))
- })), hasPatterns && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, {
- className: "wp-block-template-part__block-control-group"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- onClick: openPatternSelectionModal
- }, (0,external_wp_i18n_namespaceObject.__)('Replace'))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [!query.inherit && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ contentClassName: "block-library-query-toolbar__popover",
+ renderToggle: ({
+ onToggle
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ icon: library_settings,
+ label: (0,external_wp_i18n_namespaceObject.__)('Display settings'),
+ onClick: onToggle
+ }),
+ renderContent: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNumberControl, {
+ __unstableInputWidth: "60px",
+ label: (0,external_wp_i18n_namespaceObject.__)('Items per Page'),
+ labelPosition: "edge",
+ min: 1,
+ max: 100,
+ onChange: value => {
+ if (isNaN(value) || value < 1 || value > 100) {
+ return;
+ }
+ setQuery({
+ perPage: value
+ });
+ },
+ step: "1",
+ value: query.perPage,
+ isDragEnabled: false
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNumberControl, {
+ __unstableInputWidth: "60px",
+ label: (0,external_wp_i18n_namespaceObject.__)('Offset'),
+ labelPosition: "edge",
+ min: 0,
+ max: 100,
+ onChange: value => {
+ if (isNaN(value) || value < 0 || value > 100) {
+ return;
+ }
+ setQuery({
+ offset: value
+ });
+ },
+ step: "1",
+ value: query.offset,
+ isDragEnabled: false
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl, {
+ id: maxPageInputId,
+ help: (0,external_wp_i18n_namespaceObject.__)('Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNumberControl, {
+ id: maxPageInputId,
+ __unstableInputWidth: "60px",
+ label: (0,external_wp_i18n_namespaceObject.__)('Max page to show'),
+ labelPosition: "edge",
+ min: 0,
+ onChange: value => {
+ if (isNaN(value) || value < 0) {
+ return;
+ }
+ setQuery({
+ pages: value
+ });
+ },
+ step: "1",
+ value: query.pages,
+ isDragEnabled: false
+ })
+ })]
+ })
+ })
+ }), hasPatterns && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ className: "wp-block-template-part__block-control-group",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ onClick: openPatternSelectionModal,
+ children: (0,external_wp_i18n_namespaceObject.__)('Replace')
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/edit/inspector-controls/order-control.js
-
/**
* WordPress dependencies
*/
+
const orderOptions = [{
label: (0,external_wp_i18n_namespaceObject.__)('Newest to oldest'),
value: 'date/desc'
@@ -45184,7 +46873,7 @@ function OrderControl({
orderBy,
onChange
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
__nextHasNoMarginBottom: true,
label: (0,external_wp_i18n_namespaceObject.__)('Order by'),
value: `${orderBy}/${order}`,
@@ -45201,7 +46890,6 @@ function OrderControl({
/* harmony default export */ const order_control = (OrderControl);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/edit/inspector-controls/author-control.js
-
/**
* WordPress dependencies
*/
@@ -45214,6 +46902,7 @@ function OrderControl({
* Internal dependencies
*/
+
const author_control_AUTHORS_QUERY = {
who: 'authors',
per_page: -1,
@@ -45254,20 +46943,24 @@ function AuthorControl({
}, []);
const getIdByValue = (entitiesMappedByName, authorValue) => {
const id = authorValue?.id || entitiesMappedByName[authorValue]?.id;
- if (id) return id;
+ if (id) {
+ return id;
+ }
};
const onAuthorChange = newValue => {
const ids = Array.from(newValue.reduce((accumulator, author) => {
// Verify that new values point to existing entities.
const id = getIdByValue(authorsInfo.mapByName, author);
- if (id) accumulator.add(id);
+ if (id) {
+ accumulator.add(id);
+ }
return accumulator;
}, new Set()));
onChange({
author: ids.join(',')
});
};
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FormTokenField, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FormTokenField, {
label: (0,external_wp_i18n_namespaceObject.__)('Authors'),
value: sanitizedValue,
suggestions: authorsInfo.names,
@@ -45278,7 +46971,6 @@ function AuthorControl({
/* harmony default export */ const author_control = (AuthorControl);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/edit/inspector-controls/parent-control.js
-
/**
* WordPress dependencies
*/
@@ -45293,6 +46985,7 @@ function AuthorControl({
* Internal dependencies
*/
+
const parent_control_EMPTY_ARRAY = [];
const BASE_QUERY = {
order: 'asc',
@@ -45335,7 +47028,9 @@ function ParentControl({
};
}, [search, parents]);
const currentParents = (0,external_wp_data_namespaceObject.useSelect)(select => {
- if (!parents?.length) return parent_control_EMPTY_ARRAY;
+ if (!parents?.length) {
+ return parent_control_EMPTY_ARRAY;
+ }
const {
getEntityRecords
} = select(external_wp_coreData_namespaceObject.store);
@@ -45351,7 +47046,9 @@ function ParentControl({
if (!parents?.length) {
setValue(parent_control_EMPTY_ARRAY);
}
- if (!currentParents?.length) return;
+ if (!currentParents?.length) {
+ return;
+ }
const currentParentsInfo = getEntitiesInfo(mapToIHasNameAndId(currentParents, 'title.rendered'));
// Returns only the existing entity ids. This prevents the component
// from crashing in the editor, when non existing ids are provided.
@@ -45368,23 +47065,31 @@ function ParentControl({
setValue(sanitizedValue);
}, [parents, currentParents]);
const entitiesInfo = (0,external_wp_element_namespaceObject.useMemo)(() => {
- if (!searchResults?.length) return parent_control_EMPTY_ARRAY;
+ if (!searchResults?.length) {
+ return parent_control_EMPTY_ARRAY;
+ }
return getEntitiesInfo(mapToIHasNameAndId(searchResults, 'title.rendered'));
}, [searchResults]);
// Update suggestions only when the query has resolved.
(0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!searchHasResolved) return;
+ if (!searchHasResolved) {
+ return;
+ }
setSuggestions(entitiesInfo.names);
}, [entitiesInfo.names, searchHasResolved]);
const getIdByValue = (entitiesMappedByName, entity) => {
const id = entity?.id || entitiesMappedByName?.[entity]?.id;
- if (id) return id;
+ if (id) {
+ return id;
+ }
};
const onParentChange = newValue => {
const ids = Array.from(newValue.reduce((accumulator, entity) => {
// Verify that new values point to existing entities.
const id = getIdByValue(entitiesInfo.mapByName, entity);
- if (id) accumulator.add(id);
+ if (id) {
+ accumulator.add(id);
+ }
return accumulator;
}, new Set()));
setSuggestions(parent_control_EMPTY_ARRAY);
@@ -45392,7 +47097,7 @@ function ParentControl({
parents: ids
});
};
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FormTokenField, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FormTokenField, {
label: (0,external_wp_i18n_namespaceObject.__)('Parents'),
value: value,
onInputChange: debouncedSearch,
@@ -45404,7 +47109,6 @@ function ParentControl({
/* harmony default export */ const parent_control = (ParentControl);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/edit/inspector-controls/taxonomy-controls.js
-
/**
* WordPress dependencies
*/
@@ -45419,6 +47123,8 @@ function ParentControl({
* Internal dependencies
*/
+
+
const taxonomy_controls_EMPTY_ARRAY = [];
const taxonomy_controls_BASE_QUERY = {
order: 'asc',
@@ -45458,21 +47164,22 @@ function TaxonomyControls({
if (!taxonomies || taxonomies.length === 0) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, taxonomies.map(taxonomy => {
- const termIds = taxQuery?.[taxonomy.slug] || [];
- const handleChange = newTermIds => onChange({
- taxQuery: {
- ...taxQuery,
- [taxonomy.slug]: newTermIds
- }
- });
- return (0,external_React_namespaceObject.createElement)(TaxonomyItem, {
- key: taxonomy.slug,
- taxonomy: taxonomy,
- termIds: termIds,
- onChange: handleChange
- });
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: taxonomies.map(taxonomy => {
+ const termIds = taxQuery?.[taxonomy.slug] || [];
+ const handleChange = newTermIds => onChange({
+ taxQuery: {
+ ...taxQuery,
+ [taxonomy.slug]: newTermIds
+ }
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TaxonomyItem, {
+ taxonomy: taxonomy,
+ termIds: termIds,
+ onChange: handleChange
+ }, taxonomy.slug);
+ })
+ });
}
/**
@@ -45523,7 +47230,9 @@ function TaxonomyItem({
// They are used to extract the terms' names to populate the `FormTokenField` properly
// and to sanitize the provided `termIds`, by setting only the ones that exist.
const existingTerms = (0,external_wp_data_namespaceObject.useSelect)(select => {
- if (!termIds?.length) return taxonomy_controls_EMPTY_ARRAY;
+ if (!termIds?.length) {
+ return taxonomy_controls_EMPTY_ARRAY;
+ }
const {
getEntityRecords
} = select(external_wp_coreData_namespaceObject.store);
@@ -45539,7 +47248,9 @@ function TaxonomyItem({
if (!termIds?.length) {
setValue(taxonomy_controls_EMPTY_ARRAY);
}
- if (!existingTerms?.length) return;
+ if (!existingTerms?.length) {
+ return;
+ }
// Returns only the existing entity ids. This prevents the component
// from crashing in the editor, when non existing ids are provided.
const sanitizedValue = termIds.reduce((accumulator, id) => {
@@ -45556,7 +47267,9 @@ function TaxonomyItem({
}, [termIds, existingTerms]);
// Update suggestions only when the query has resolved.
(0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!searchHasResolved) return;
+ if (!searchHasResolved) {
+ return;
+ }
setSuggestions(searchResults.map(result => result.name));
}, [searchResults, searchHasResolved]);
const onTermsChange = newTermValues => {
@@ -45570,26 +47283,27 @@ function TaxonomyItem({
setSuggestions(taxonomy_controls_EMPTY_ARRAY);
onChange(Array.from(newTermIds));
};
- return (0,external_React_namespaceObject.createElement)("div", {
- className: "block-library-query-inspector__taxonomy-control"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FormTokenField, {
- label: taxonomy.name,
- value: value,
- onInputChange: debouncedSearch,
- suggestions: suggestions,
- displayTransform: external_wp_htmlEntities_namespaceObject.decodeEntities,
- onChange: onTermsChange,
- __experimentalShowHowTo: false
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-library-query-inspector__taxonomy-control",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FormTokenField, {
+ label: taxonomy.name,
+ value: value,
+ onInputChange: debouncedSearch,
+ suggestions: suggestions,
+ displayTransform: external_wp_htmlEntities_namespaceObject.decodeEntities,
+ onChange: onTermsChange,
+ __experimentalShowHowTo: false
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/edit/inspector-controls/sticky-control.js
-
/**
* WordPress dependencies
*/
+
const stickyOptions = [{
label: (0,external_wp_i18n_namespaceObject.__)('Include'),
value: ''
@@ -45604,7 +47318,7 @@ function StickyControl({
value,
onChange
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
__nextHasNoMarginBottom: true,
label: (0,external_wp_i18n_namespaceObject.__)('Sticky posts'),
options: stickyOptions,
@@ -45615,7 +47329,6 @@ function StickyControl({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/edit/inspector-controls/enhanced-pagination-control.js
-
/**
* WordPress dependencies
*/
@@ -45626,6 +47339,8 @@ function StickyControl({
* Internal dependencies
*/
+
+
function EnhancedPaginationControl({
enhancedPagination,
setAttributes,
@@ -45634,33 +47349,38 @@ function EnhancedPaginationControl({
const {
hasUnsupportedBlocks
} = useUnsupportedBlocks(clientId);
+ const fullPageClientSideNavigation = window.__experimentalFullPageClientSideNavigation;
let help = (0,external_wp_i18n_namespaceObject.__)('Browsing between pages requires a full page reload.');
- if (enhancedPagination) {
+ if (fullPageClientSideNavigation) {
+ help = (0,external_wp_i18n_namespaceObject.__)('Experimental full-page client-side navigation setting enabled.');
+ } else if (enhancedPagination) {
help = (0,external_wp_i18n_namespaceObject.__)("Browsing between pages won't require a full page reload, unless non-compatible blocks are detected.");
} else if (hasUnsupportedBlocks) {
help = (0,external_wp_i18n_namespaceObject.__)("Force page reload can't be disabled because there are non-compatible blocks inside the Query block.");
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Force page reload'),
- help: help,
- checked: !enhancedPagination,
- disabled: hasUnsupportedBlocks,
- onChange: value => {
- setAttributes({
- enhancedPagination: !value
- });
- }
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Force page reload'),
+ help: help,
+ checked: !enhancedPagination && !fullPageClientSideNavigation,
+ disabled: hasUnsupportedBlocks || fullPageClientSideNavigation,
+ onChange: value => {
+ setAttributes({
+ enhancedPagination: !value
+ });
+ }
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/edit/inspector-controls/create-new-post-link.js
-
/**
* WordPress dependencies
*/
+
const CreateNewPostLink = ({
attributes: {
query: {
@@ -45668,24 +47388,26 @@ const CreateNewPostLink = ({
} = {}
} = {}
}) => {
- if (!postType) return null;
+ if (!postType) {
+ return null;
+ }
const newPostUrl = (0,external_wp_url_namespaceObject.addQueryArgs)('post-new.php', {
post_type: postType
});
- return (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-query__create-new-link"
- }, (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('<a>Add new post</a>'),
- // eslint-disable-next-line jsx-a11y/anchor-has-content
- {
- a: (0,external_React_namespaceObject.createElement)("a", {
- href: newPostUrl
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-query__create-new-link",
+ children: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('<a>Add new post</a>'),
+ // eslint-disable-next-line jsx-a11y/anchor-has-content
+ {
+ a: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: newPostUrl
+ })
})
- }));
+ });
};
/* harmony default export */ const create_new_post_link = (CreateNewPostLink);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/edit/inspector-controls/index.js
-
/**
* WordPress dependencies
*/
@@ -45708,6 +47430,9 @@ const CreateNewPostLink = ({
+
+
+
const {
BlockInfo
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
@@ -45789,105 +47514,118 @@ function QueryInspectorControls(props) {
const showSearchControl = isControlAllowed(allowedControls, 'search');
const showParentControl = isControlAllowed(allowedControls, 'parents') && isPostTypeHierarchical;
const showFiltersPanel = showTaxControl || showAuthorControl || showSearchControl || showParentControl;
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(BlockInfo, null, (0,external_React_namespaceObject.createElement)(create_new_post_link, {
- ...props
- })), showSettingsPanel && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, showInheritControl && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Inherit query from template'),
- help: (0,external_wp_i18n_namespaceObject.__)('Toggle to use the global query context that is set with the current template, such as an archive or search. Disable to customize the settings independently.'),
- checked: !!inherit,
- onChange: value => setQuery({
- inherit: !!value
- })
- }), showPostTypeControl && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- options: postTypesSelectOptions,
- value: postType,
- label: (0,external_wp_i18n_namespaceObject.__)('Post type'),
- onChange: onPostTypeChange,
- help: (0,external_wp_i18n_namespaceObject.__)('WordPress contains different types of content and they are divided into collections called “Post types”. By default there are a few different ones such as blog posts and pages, but plugins could add more.')
- }), showColumnsControl && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
- value: displayLayout.columns,
- onChange: value => setDisplayLayout({
- columns: value
- }),
- min: 2,
- max: Math.max(6, displayLayout.columns)
- }), displayLayout.columns > 6 && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Notice, {
- status: "warning",
- isDismissible: false
- }, (0,external_wp_i18n_namespaceObject.__)('This column count exceeds the recommended amount and may cause visual breakage.'))), showOrderControl && (0,external_React_namespaceObject.createElement)(order_control, {
- order,
- orderBy,
- onChange: setQuery
- }), showStickyControl && (0,external_React_namespaceObject.createElement)(StickyControl, {
- value: sticky,
- onChange: value => setQuery({
- sticky: value
- })
- }), (0,external_React_namespaceObject.createElement)(EnhancedPaginationControl, {
- enhancedPagination: enhancedPagination,
- setAttributes: setAttributes,
- clientId: clientId
- })), !inherit && showFiltersPanel && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
- className: "block-library-query-toolspanel__filters",
- label: (0,external_wp_i18n_namespaceObject.__)('Filters'),
- resetAll: () => {
- setQuery({
- author: '',
- parents: [],
- search: '',
- taxQuery: null
- });
- setQuerySearch('');
- },
- dropdownMenuProps: TOOLSPANEL_DROPDOWNMENU_PROPS
- }, showTaxControl && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- label: (0,external_wp_i18n_namespaceObject.__)('Taxonomies'),
- hasValue: () => Object.values(taxQuery || {}).some(terms => !!terms.length),
- onDeselect: () => setQuery({
- taxQuery: null
- })
- }, (0,external_React_namespaceObject.createElement)(TaxonomyControls, {
- onChange: setQuery,
- query: query
- })), showAuthorControl && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- hasValue: () => !!authorIds,
- label: (0,external_wp_i18n_namespaceObject.__)('Authors'),
- onDeselect: () => setQuery({
- author: ''
- })
- }, (0,external_React_namespaceObject.createElement)(author_control, {
- value: authorIds,
- onChange: setQuery
- })), showSearchControl && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- hasValue: () => !!querySearch,
- label: (0,external_wp_i18n_namespaceObject.__)('Keyword'),
- onDeselect: () => setQuerySearch('')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Keyword'),
- value: querySearch,
- onChange: setQuerySearch
- })), showParentControl && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
- hasValue: () => !!parents?.length,
- label: (0,external_wp_i18n_namespaceObject.__)('Parents'),
- onDeselect: () => setQuery({
- parents: []
- })
- }, (0,external_React_namespaceObject.createElement)(parent_control, {
- parents: parents,
- postType: postType,
- onChange: setQuery
- }))));
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockInfo, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(create_new_post_link, {
+ ...props
+ })
+ }), showSettingsPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [showInheritControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Inherit query from template'),
+ help: (0,external_wp_i18n_namespaceObject.__)('Toggle to use the global query context that is set with the current template, such as an archive or search. Disable to customize the settings independently.'),
+ checked: !!inherit,
+ onChange: value => setQuery({
+ inherit: !!value
+ })
+ }), showPostTypeControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ options: postTypesSelectOptions,
+ value: postType,
+ label: (0,external_wp_i18n_namespaceObject.__)('Post type'),
+ onChange: onPostTypeChange,
+ help: (0,external_wp_i18n_namespaceObject.__)('WordPress contains different types of content and they are divided into collections called “Post types”. By default there are a few different ones such as blog posts and pages, but plugins could add more.')
+ }), showColumnsControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
+ value: displayLayout.columns,
+ onChange: value => setDisplayLayout({
+ columns: value
+ }),
+ min: 2,
+ max: Math.max(6, displayLayout.columns)
+ }), displayLayout.columns > 6 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
+ status: "warning",
+ isDismissible: false,
+ children: (0,external_wp_i18n_namespaceObject.__)('This column count exceeds the recommended amount and may cause visual breakage.')
+ })]
+ }), showOrderControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(order_control, {
+ order,
+ orderBy,
+ onChange: setQuery
+ }), showStickyControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StickyControl, {
+ value: sticky,
+ onChange: value => setQuery({
+ sticky: value
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EnhancedPaginationControl, {
+ enhancedPagination: enhancedPagination,
+ setAttributes: setAttributes,
+ clientId: clientId
+ })]
+ }), !inherit && showFiltersPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
+ className: "block-library-query-toolspanel__filters",
+ label: (0,external_wp_i18n_namespaceObject.__)('Filters'),
+ resetAll: () => {
+ setQuery({
+ author: '',
+ parents: [],
+ search: '',
+ taxQuery: null
+ });
+ setQuerySearch('');
+ },
+ dropdownMenuProps: dropdownMenuProps,
+ children: [showTaxControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Taxonomies'),
+ hasValue: () => Object.values(taxQuery || {}).some(terms => !!terms.length),
+ onDeselect: () => setQuery({
+ taxQuery: null
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TaxonomyControls, {
+ onChange: setQuery,
+ query: query
+ })
+ }), showAuthorControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ hasValue: () => !!authorIds,
+ label: (0,external_wp_i18n_namespaceObject.__)('Authors'),
+ onDeselect: () => setQuery({
+ author: ''
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(author_control, {
+ value: authorIds,
+ onChange: setQuery
+ })
+ }), showSearchControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ hasValue: () => !!querySearch,
+ label: (0,external_wp_i18n_namespaceObject.__)('Keyword'),
+ onDeselect: () => setQuerySearch(''),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Keyword'),
+ value: querySearch,
+ onChange: setQuerySearch
+ })
+ }), showParentControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
+ hasValue: () => !!parents?.length,
+ label: (0,external_wp_i18n_namespaceObject.__)('Parents'),
+ onDeselect: () => setQuery({
+ parents: []
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(parent_control, {
+ parents: parents,
+ postType: postType,
+ onChange: setQuery
+ })
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/edit/enhanced-pagination-modal.js
-
/**
* WordPress dependencies
*/
@@ -45899,6 +47637,8 @@ function QueryInspectorControls(props) {
* Internal dependencies
*/
+
+
const modalDescriptionId = 'wp-block-query-enhanced-pagination-modal__description';
function EnhancedPaginationModal({
clientId,
@@ -45914,7 +47654,7 @@ function EnhancedPaginationModal({
hasUnsupportedBlocks
} = useUnsupportedBlocks(clientId);
(0,external_wp_element_namespaceObject.useEffect)(() => {
- if (enhancedPagination && hasUnsupportedBlocks) {
+ if (enhancedPagination && hasUnsupportedBlocks && !window.__experimentalFullPageClientSideNavigation) {
setAttributes({
enhancedPagination: false
});
@@ -45926,11 +47666,11 @@ function EnhancedPaginationModal({
};
let notice = (0,external_wp_i18n_namespaceObject.__)('If you still want to prevent full page reloads, remove that block, then disable "Force page reload" again in the Query Block settings.');
if (hasBlocksFromPlugins) {
- notice = (0,external_wp_i18n_namespaceObject.__)('Currently, avoiding full page reloads is not possible when non-interactive or non-clientNavigation compatible blocks from plugins are present inside the Query block.') + ' ' + notice;
+ notice = (0,external_wp_i18n_namespaceObject.__)('Currently, avoiding full page reloads is not possible when non-interactive or non-client Navigation compatible blocks from plugins are present inside the Query block.') + ' ' + notice;
} else if (hasPostContentBlock) {
notice = (0,external_wp_i18n_namespaceObject.__)('Currently, avoiding full page reloads is not possible when a Content block is present inside the Query block.') + ' ' + notice;
}
- return isOpen && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
+ return isOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
title: (0,external_wp_i18n_namespaceObject.__)('Query block: Force page reload enabled'),
className: "wp-block-query__enhanced-pagination-modal",
aria: {
@@ -45939,20 +47679,23 @@ function EnhancedPaginationModal({
role: "alertdialog",
focusOnMount: "firstElement",
isDismissible: false,
- onRequestClose: closeModal
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- alignment: "right",
- spacing: 5
- }, (0,external_React_namespaceObject.createElement)("span", {
- id: modalDescriptionId
- }, notice), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: closeModal
- }, (0,external_wp_i18n_namespaceObject.__)('OK'))));
+ onRequestClose: closeModal,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ alignment: "right",
+ spacing: 5,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ id: modalDescriptionId,
+ children: notice
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ onClick: closeModal,
+ children: (0,external_wp_i18n_namespaceObject.__)('OK')
+ })]
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/edit/query-content.js
-
/**
* WordPress dependencies
*/
@@ -45970,6 +47713,9 @@ function EnhancedPaginationModal({
+
+
+
const DEFAULTS_POSTS_PER_PAGE = 3;
const query_content_TEMPLATE = [['core/post-template']];
function QueryContent({
@@ -46061,53 +47807,59 @@ function QueryContent({
section: (0,external_wp_i18n_namespaceObject.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),
aside: (0,external_wp_i18n_namespaceObject.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.")
};
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(EnhancedPaginationModal, {
- attributes: attributes,
- setAttributes: setAttributes,
- clientId: clientId
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(QueryInspectorControls, {
- attributes: attributes,
- setQuery: updateQuery,
- setDisplayLayout: updateDisplayLayout,
- setAttributes: setAttributes,
- clientId: clientId
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(QueryToolbar, {
- name: name,
- clientId: clientId,
- attributes: attributes,
- setQuery: updateQuery,
- openPatternSelectionModal: openPatternSelectionModal
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "advanced"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('HTML element'),
- options: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Default (<div>)'),
- value: 'div'
- }, {
- label: '<main>',
- value: 'main'
- }, {
- label: '<section>',
- value: 'section'
- }, {
- label: '<aside>',
- value: 'aside'
- }],
- value: TagName,
- onChange: value => setAttributes({
- tagName: value
- }),
- help: htmlElementMessages[TagName]
- })), (0,external_React_namespaceObject.createElement)(TagName, {
- ...innerBlocksProps
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EnhancedPaginationModal, {
+ attributes: attributes,
+ setAttributes: setAttributes,
+ clientId: clientId
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(QueryInspectorControls, {
+ attributes: attributes,
+ setQuery: updateQuery,
+ setDisplayLayout: updateDisplayLayout,
+ setAttributes: setAttributes,
+ clientId: clientId
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(QueryToolbar, {
+ name: name,
+ clientId: clientId,
+ attributes: attributes,
+ setQuery: updateQuery,
+ openPatternSelectionModal: openPatternSelectionModal
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "advanced",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('HTML element'),
+ options: [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Default (<div>)'),
+ value: 'div'
+ }, {
+ label: '<main>',
+ value: 'main'
+ }, {
+ label: '<section>',
+ value: 'section'
+ }, {
+ label: '<aside>',
+ value: 'aside'
+ }],
+ value: TagName,
+ onChange: value => setAttributes({
+ tagName: value
+ }),
+ help: htmlElementMessages[TagName]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...innerBlocksProps
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/edit/query-placeholder.js
-
/**
* WordPress dependencies
*/
@@ -46122,6 +47874,8 @@ function QueryContent({
* Internal dependencies
*/
+
+
function QueryPlaceholder({
attributes,
clientId,
@@ -46155,7 +47909,7 @@ function QueryPlaceholder({
const icon = activeBlockVariation?.icon?.src || activeBlockVariation?.icon || blockType?.icon?.src;
const label = activeBlockVariation?.title || blockType?.title;
if (isStartingBlank) {
- return (0,external_React_namespaceObject.createElement)(QueryVariationPicker, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(QueryVariationPicker, {
clientId: clientId,
attributes: attributes,
setAttributes: setAttributes,
@@ -46163,21 +47917,25 @@ function QueryPlaceholder({
label: label
});
}
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- icon: icon,
- label: label,
- instructions: (0,external_wp_i18n_namespaceObject.__)('Choose a pattern for the query loop or start blank.')
- }, !!hasPatterns && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: openPatternSelectionModal
- }, (0,external_wp_i18n_namespaceObject.__)('Choose')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "secondary",
- onClick: () => {
- setIsStartingBlank(true);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Start blank'))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Placeholder, {
+ icon: icon,
+ label: label,
+ instructions: (0,external_wp_i18n_namespaceObject.__)('Choose a pattern for the query loop or start blank.'),
+ children: [!!hasPatterns && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ onClick: openPatternSelectionModal,
+ children: (0,external_wp_i18n_namespaceObject.__)('Choose')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "secondary",
+ onClick: () => {
+ setIsStartingBlank(true);
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Start blank')
+ })]
+ })
+ });
}
function QueryVariationPicker({
clientId,
@@ -46191,28 +47949,29 @@ function QueryVariationPicker({
replaceInnerBlocks
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)();
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalBlockVariationPicker, {
- icon: icon,
- label: label,
- variations: scopeVariations,
- onSelect: variation => {
- if (variation.attributes) {
- setAttributes({
- ...variation.attributes,
- query: {
- ...variation.attributes.query,
- postType: attributes.query.postType || variation.attributes.query.postType
- },
- namespace: attributes.namespace
- });
- }
- if (variation.innerBlocks) {
- replaceInnerBlocks(clientId, (0,external_wp_blocks_namespaceObject.createBlocksFromInnerBlocksTemplate)(variation.innerBlocks), false);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalBlockVariationPicker, {
+ icon: icon,
+ label: label,
+ variations: scopeVariations,
+ onSelect: variation => {
+ if (variation.attributes) {
+ setAttributes({
+ ...variation.attributes,
+ query: {
+ ...variation.attributes.query,
+ postType: attributes.query.postType || variation.attributes.query.postType
+ },
+ namespace: attributes.namespace
+ });
+ }
+ if (variation.innerBlocks) {
+ replaceInnerBlocks(clientId, (0,external_wp_blocks_namespaceObject.createBlocksFromInnerBlocksTemplate)(variation.innerBlocks), false);
+ }
}
- }
- }));
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/utils/search-patterns.js
@@ -46284,7 +48043,6 @@ function searchPatterns(patterns = [], searchValue = '') {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/edit/pattern-selection-modal.js
-
/**
* WordPress dependencies
*/
@@ -46300,6 +48058,8 @@ function searchPatterns(patterns = [], searchValue = '') {
*/
+
+
function PatternSelectionModal({
clientId,
attributes,
@@ -46331,32 +48091,35 @@ function PatternSelectionModal({
return searchPatterns(blockPatterns, searchValue);
}, [blockPatterns, searchValue]);
const shownBlockPatterns = (0,external_wp_compose_namespaceObject.useAsyncList)(filteredBlockPatterns);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
overlayClassName: "block-library-query-pattern__selection-modal",
title: (0,external_wp_i18n_namespaceObject.__)('Choose a pattern'),
onRequestClose: () => setIsPatternSelectionModalOpen(false),
- isFullScreen: true
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "block-library-query-pattern__selection-content"
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "block-library-query-pattern__selection-search"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SearchControl, {
- __nextHasNoMarginBottom: true,
- onChange: setSearchValue,
- value: searchValue,
- label: (0,external_wp_i18n_namespaceObject.__)('Search for patterns'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Search')
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockContextProvider, {
- value: blockPreviewContext
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalBlockPatternsList, {
- blockPatterns: filteredBlockPatterns,
- shownPatterns: shownBlockPatterns,
- onClickPattern: onBlockPatternSelect
- }))));
+ isFullScreen: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-library-query-pattern__selection-content",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-library-query-pattern__selection-search",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SearchControl, {
+ __nextHasNoMarginBottom: true,
+ onChange: setSearchValue,
+ value: searchValue,
+ label: (0,external_wp_i18n_namespaceObject.__)('Search for patterns'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Search')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockContextProvider, {
+ value: blockPreviewContext,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalBlockPatternsList, {
+ blockPatterns: filteredBlockPatterns,
+ shownPatterns: shownBlockPatterns,
+ onClickPattern: onBlockPatternSelect
+ })
+ })]
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/edit/index.js
-
/**
* WordPress dependencies
*/
@@ -46370,6 +48133,9 @@ function PatternSelectionModal({
+
+
+
const QueryEdit = props => {
const {
clientId,
@@ -46378,65 +48144,71 @@ const QueryEdit = props => {
const [isPatternSelectionModalOpen, setIsPatternSelectionModalOpen] = (0,external_wp_element_namespaceObject.useState)(false);
const hasInnerBlocks = (0,external_wp_data_namespaceObject.useSelect)(select => !!select(external_wp_blockEditor_namespaceObject.store).getBlocks(clientId).length, [clientId]);
const Component = hasInnerBlocks ? QueryContent : QueryPlaceholder;
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(Component, {
- ...props,
- openPatternSelectionModal: () => setIsPatternSelectionModalOpen(true)
- }), isPatternSelectionModalOpen && (0,external_React_namespaceObject.createElement)(PatternSelectionModal, {
- clientId: clientId,
- attributes: attributes,
- setIsPatternSelectionModalOpen: setIsPatternSelectionModalOpen
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
+ ...props,
+ openPatternSelectionModal: () => setIsPatternSelectionModalOpen(true)
+ }), isPatternSelectionModalOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternSelectionModal, {
+ clientId: clientId,
+ attributes: attributes,
+ setIsPatternSelectionModalOpen: setIsPatternSelectionModalOpen
+ })]
+ });
};
/* harmony default export */ const query_edit = (QueryEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/save.js
-
/**
* WordPress dependencies
*/
-function QuerySave({
+
+function query_save_save({
attributes: {
tagName: Tag = 'div'
}
}) {
const blockProps = external_wp_blockEditor_namespaceObject.useBlockProps.save();
const innerBlocksProps = external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save(blockProps);
- return (0,external_React_namespaceObject.createElement)(Tag, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
...innerBlocksProps
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/icons.js
-
/**
* WordPress dependencies
*/
-const titleDate = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+
+const titleDate = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 48 48"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"
-}));
-const titleExcerpt = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 48 48",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"
+ })
+});
+const titleExcerpt = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 48 48"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"
-}));
-const titleDateExcerpt = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 48 48",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"
+ })
+});
+const titleDateExcerpt = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 48 48"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"
-}));
-const imageDateTitle = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 48 48",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"
+ })
+});
+const imageDateTitle = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 48 48"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"
-}));
+ viewBox: "0 0 48 48",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/variations.js
/**
@@ -46485,12 +48257,7 @@ const query_variations_variations = [{
}
},
scope: ['inserter'],
- isActive: ({
- namespace,
- query
- }) => {
- return namespace === 'core/posts-list' && query.postType === 'post';
- }
+ isActive: ['namespace', 'query.postType']
}, {
name: 'title-date',
title: (0,external_wp_i18n_namespaceObject.__)('Title & Date'),
@@ -46531,7 +48298,6 @@ const query_variations_variations = [{
/* harmony default export */ const query_variations = (query_variations_variations);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/deprecated.js
-
/**
* WordPress dependencies
*/
@@ -46542,6 +48308,7 @@ const query_variations_variations = [{
* Internal dependencies
*/
+
const {
cleanEmptyObject: deprecated_cleanEmptyObject
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
@@ -46761,7 +48528,7 @@ const query_deprecated_v1 = {
return migrateDisplayLayout(newAttributes, innerBlocks);
},
save() {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {});
}
};
@@ -46828,7 +48595,7 @@ const query_deprecated_v2 = {
}) {
const blockProps = external_wp_blockEditor_namespaceObject.useBlockProps.save();
const innerBlocksProps = external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save(blockProps);
- return (0,external_React_namespaceObject.createElement)(Tag, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
...innerBlocksProps
});
}
@@ -46906,7 +48673,7 @@ const query_deprecated_v3 = {
}) {
const blockProps = external_wp_blockEditor_namespaceObject.useBlockProps.save();
const innerBlocksProps = external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save(blockProps);
- return (0,external_React_namespaceObject.createElement)(Tag, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
...innerBlocksProps
});
}
@@ -46968,7 +48735,7 @@ const query_deprecated_v4 = {
}) {
const blockProps = external_wp_blockEditor_namespaceObject.useBlockProps.save();
const innerBlocksProps = external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save(blockProps);
- return (0,external_React_namespaceObject.createElement)(Tag, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
...innerBlocksProps
});
},
@@ -47030,7 +48797,7 @@ const query_deprecated_v5 = {
}) {
const blockProps = external_wp_blockEditor_namespaceObject.useBlockProps.save();
const innerBlocksProps = external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save(blockProps);
- return (0,external_React_namespaceObject.createElement)(Tag, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
...innerBlocksProps
});
},
@@ -47121,7 +48888,7 @@ const {
const query_settings = {
icon: library_loop,
edit: query_edit,
- save: QuerySave,
+ save: query_save_save,
variations: query_variations,
deprecated: query_deprecated
};
@@ -47132,12 +48899,12 @@ const query_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query-no-results/edit.js
-
/**
* WordPress dependencies
*/
+
const query_no_results_edit_TEMPLATE = [['core/paragraph', {
placeholder: (0,external_wp_i18n_namespaceObject.__)('Add text or blocks that will display when a query returns no results.')
}]];
@@ -47146,19 +48913,19 @@ function QueryNoResultsEdit() {
const innerBlocksProps = (0,external_wp_blockEditor_namespaceObject.useInnerBlocksProps)(blockProps, {
template: query_no_results_edit_TEMPLATE
});
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...innerBlocksProps
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query-no-results/save.js
-
/**
* WordPress dependencies
*/
-function QueryNoResultsSave() {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null);
+
+function query_no_results_save_save() {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query-no-results/index.js
@@ -47216,7 +48983,7 @@ const {
const query_no_results_settings = {
icon: library_loop,
edit: QueryNoResultsEdit,
- save: QueryNoResultsSave
+ save: query_no_results_save_save
};
const query_no_results_init = () => initBlock({
name: query_no_results_name,
@@ -47225,47 +48992,49 @@ const query_no_results_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query-pagination/query-pagination-arrow-controls.js
-
/**
* WordPress dependencies
*/
+
+
function QueryPaginationArrowControls({
value,
onChange
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
__nextHasNoMarginBottom: true,
label: (0,external_wp_i18n_namespaceObject.__)('Arrow'),
value: value,
onChange: onChange,
help: (0,external_wp_i18n_namespaceObject.__)('A decorative arrow appended to the next and previous page link.'),
- isBlock: true
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "none",
- label: (0,external_wp_i18n_namespaceObject._x)('None', 'Arrow option for Query Pagination Next/Previous blocks')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "arrow",
- label: (0,external_wp_i18n_namespaceObject._x)('Arrow', 'Arrow option for Query Pagination Next/Previous blocks')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "chevron",
- label: (0,external_wp_i18n_namespaceObject._x)('Chevron', 'Arrow option for Query Pagination Next/Previous blocks')
- }));
+ isBlock: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "none",
+ label: (0,external_wp_i18n_namespaceObject._x)('None', 'Arrow option for Query Pagination Next/Previous blocks')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "arrow",
+ label: (0,external_wp_i18n_namespaceObject._x)('Arrow', 'Arrow option for Query Pagination Next/Previous blocks')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "chevron",
+ label: (0,external_wp_i18n_namespaceObject._x)('Chevron', 'Arrow option for Query Pagination Next/Previous blocks')
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query-pagination/query-pagination-label-control.js
-
/**
* WordPress dependencies
*/
+
function QueryPaginationLabelControl({
value,
onChange
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
__nextHasNoMarginBottom: true,
label: (0,external_wp_i18n_namespaceObject.__)('Show label text'),
help: (0,external_wp_i18n_namespaceObject.__)('Toggle off to hide the label text, e.g. "Next Page".'),
@@ -47275,7 +49044,6 @@ function QueryPaginationLabelControl({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query-pagination/edit.js
-
/**
* WordPress dependencies
*/
@@ -47290,6 +49058,9 @@ function QueryPaginationLabelControl({
*/
+
+
+
const query_pagination_edit_TEMPLATE = [['core/query-pagination-previous'], ['core/query-pagination-numbers'], ['core/query-pagination-next']];
function edit_QueryPaginationEdit({
attributes: {
@@ -47324,50 +49095,56 @@ function edit_QueryPaginationEdit({
});
}
}, [paginationArrow, setAttributes, showLabel]);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, hasNextPreviousBlocks && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(QueryPaginationArrowControls, {
- value: paginationArrow,
- onChange: value => {
- setAttributes({
- paginationArrow: value
- });
- }
- }), paginationArrow !== 'none' && (0,external_React_namespaceObject.createElement)(QueryPaginationLabelControl, {
- value: showLabel,
- onChange: value => {
- setAttributes({
- showLabel: value
- });
- }
- }))), (0,external_React_namespaceObject.createElement)("nav", {
- ...innerBlocksProps
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [hasNextPreviousBlocks && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(QueryPaginationArrowControls, {
+ value: paginationArrow,
+ onChange: value => {
+ setAttributes({
+ paginationArrow: value
+ });
+ }
+ }), paginationArrow !== 'none' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(QueryPaginationLabelControl, {
+ value: showLabel,
+ onChange: value => {
+ setAttributes({
+ showLabel: value
+ });
+ }
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("nav", {
+ ...innerBlocksProps
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query-pagination/save.js
-
/**
* WordPress dependencies
*/
+
function query_pagination_save_save() {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query-pagination/deprecated.js
-
/**
* WordPress dependencies
*/
+
const query_pagination_deprecated_deprecated = [
// Version with wrapper `div` element.
{
save() {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...external_wp_blockEditor_namespaceObject.useBlockProps.save()
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save(),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ });
}
}];
/* harmony default export */ const query_pagination_deprecated = (query_pagination_deprecated_deprecated);
@@ -47467,12 +49244,13 @@ const query_pagination_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query-pagination-next/edit.js
-
/**
* WordPress dependencies
*/
+
+
const query_pagination_next_edit_arrowMap = {
none: '',
arrow: '→',
@@ -47489,23 +49267,25 @@ function QueryPaginationNextEdit({
}
}) {
const displayArrow = query_pagination_next_edit_arrowMap[paginationArrow];
- return (0,external_React_namespaceObject.createElement)("a", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("a", {
href: "#pagination-next-pseudo-link",
onClick: event => event.preventDefault(),
- ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)()
- }, showLabel && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.PlainText, {
- __experimentalVersion: 2,
- tagName: "span",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Next page link'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Next Page'),
- value: label,
- onChange: newLabel => setAttributes({
- label: newLabel
- })
- }), displayArrow && (0,external_React_namespaceObject.createElement)("span", {
- className: `wp-block-query-pagination-next-arrow is-arrow-${paginationArrow}`,
- "aria-hidden": true
- }, displayArrow));
+ ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)(),
+ children: [showLabel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.PlainText, {
+ __experimentalVersion: 2,
+ tagName: "span",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Next page link'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Next Page'),
+ value: label,
+ onChange: newLabel => setAttributes({
+ label: newLabel
+ })
+ }), displayArrow && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: `wp-block-query-pagination-next-arrow is-arrow-${paginationArrow}`,
+ "aria-hidden": true,
+ children: displayArrow
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query-pagination-next/index.js
@@ -47577,16 +49357,18 @@ const query_pagination_next_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query-pagination-numbers/edit.js
-
/**
* WordPress dependencies
*/
-const createPaginationItem = (content, Tag = 'a', extraClass = '') => (0,external_React_namespaceObject.createElement)(Tag, {
- key: content,
- className: `page-numbers ${extraClass}`
+
+
+
+const createPaginationItem = (content, Tag = 'a', extraClass = '') => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
+ className: `page-numbers ${extraClass}`,
+ children: content
}, content);
const previewPaginationNumbers = midSize => {
const paginationItems = [];
@@ -47609,7 +49391,9 @@ const previewPaginationNumbers = midSize => {
// Last pagination item.
paginationItems.push(createPaginationItem(midSize * 2 + 3));
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, paginationItems);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: paginationItems
+ });
};
function QueryPaginationNumbersEdit({
attributes,
@@ -47619,23 +49403,29 @@ function QueryPaginationNumbersEdit({
midSize
} = attributes;
const paginationNumbers = previewPaginationNumbers(parseInt(midSize, 10));
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Number of links'),
- help: (0,external_wp_i18n_namespaceObject.__)('Specify how many links can appear before and after the current page number. Links to the first, current and last page are always visible.'),
- value: midSize,
- onChange: value => {
- setAttributes({
- midSize: parseInt(value, 10)
- });
- },
- min: 0,
- max: 5,
- withInputField: false
- }))), (0,external_React_namespaceObject.createElement)("div", {
- ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)()
- }, paginationNumbers));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Number of links'),
+ help: (0,external_wp_i18n_namespaceObject.__)('Specify how many links can appear before and after the current page number. Links to the first, current and last page are always visible.'),
+ value: midSize,
+ onChange: value => {
+ setAttributes({
+ midSize: parseInt(value, 10)
+ });
+ },
+ min: 0,
+ max: 5,
+ withInputField: false
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)(),
+ children: paginationNumbers
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query-pagination-numbers/index.js
@@ -47709,12 +49499,13 @@ const query_pagination_numbers_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query-pagination-previous/edit.js
-
/**
* WordPress dependencies
*/
+
+
const query_pagination_previous_edit_arrowMap = {
none: '',
arrow: '←',
@@ -47731,23 +49522,25 @@ function QueryPaginationPreviousEdit({
}
}) {
const displayArrow = query_pagination_previous_edit_arrowMap[paginationArrow];
- return (0,external_React_namespaceObject.createElement)("a", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("a", {
href: "#pagination-previous-pseudo-link",
onClick: event => event.preventDefault(),
- ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)()
- }, displayArrow && (0,external_React_namespaceObject.createElement)("span", {
- className: `wp-block-query-pagination-previous-arrow is-arrow-${paginationArrow}`,
- "aria-hidden": true
- }, displayArrow), showLabel && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.PlainText, {
- __experimentalVersion: 2,
- tagName: "span",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Previous page link'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Previous Page'),
- value: label,
- onChange: newLabel => setAttributes({
- label: newLabel
- })
- }));
+ ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)(),
+ children: [displayArrow && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: `wp-block-query-pagination-previous-arrow is-arrow-${paginationArrow}`,
+ "aria-hidden": true,
+ children: displayArrow
+ }), showLabel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.PlainText, {
+ __experimentalVersion: 2,
+ tagName: "span",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Previous page link'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Previous Page'),
+ value: label,
+ onChange: newLabel => setAttributes({
+ label: newLabel
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query-pagination-previous/index.js
@@ -47819,7 +49612,6 @@ const query_pagination_previous_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query-title/edit.js
-
/**
* External dependencies
*/
@@ -47832,6 +49624,9 @@ const query_pagination_previous_init = () => initBlock({
+
+
+
const SUPPORTED_TYPES = ['archive', 'search'];
function QueryTitleEdit({
attributes: {
@@ -47861,14 +49656,17 @@ function QueryTitleEdit({
});
const TagName = `h${level}`;
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()('wp-block-query-title__placeholder', {
+ className: dist_clsx('wp-block-query-title__placeholder', {
[`has-text-align-${textAlign}`]: textAlign
})
});
if (!SUPPORTED_TYPES.includes(type)) {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_i18n_namespaceObject.__)('Provided type is not supported.')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Provided type is not supported.')
+ })
+ });
}
let titleElement;
if (type === 'archive') {
@@ -47891,48 +49689,63 @@ function QueryTitleEdit({
} else {
title = showPrefix ? (0,external_wp_i18n_namespaceObject.__)('Archive type: Name') : (0,external_wp_i18n_namespaceObject.__)('Archive title');
}
- titleElement = (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Show archive type in title'),
- onChange: () => setAttributes({
- showPrefix: !showPrefix
- }),
- checked: showPrefix
- }))), (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps
- }, title));
+ titleElement = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show archive type in title'),
+ onChange: () => setAttributes({
+ showPrefix: !showPrefix
+ }),
+ checked: showPrefix
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...blockProps,
+ children: title
+ })]
+ });
}
if (type === 'search') {
- titleElement = (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Show search term in title'),
- onChange: () => setAttributes({
- showSearchTerm: !showSearchTerm
- }),
- checked: showSearchTerm
- }))), (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps
- }, showSearchTerm ? (0,external_wp_i18n_namespaceObject.__)('Search results for: “search term”') : (0,external_wp_i18n_namespaceObject.__)('Search results')));
- }
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.HeadingLevelDropdown, {
- value: level,
- onChange: newLevel => setAttributes({
- level: newLevel
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- })), titleElement);
+ titleElement = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show search term in title'),
+ onChange: () => setAttributes({
+ showSearchTerm: !showSearchTerm
+ }),
+ checked: showSearchTerm
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...blockProps,
+ children: showSearchTerm ? (0,external_wp_i18n_namespaceObject.__)('Search results for: “search term”') : (0,external_wp_i18n_namespaceObject.__)('Search results')
+ })]
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.HeadingLevelDropdown, {
+ value: level,
+ onChange: newLevel => setAttributes({
+ level: newLevel
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ })]
+ }), titleElement]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query-title/variations.js
@@ -47969,7 +49782,9 @@ const query_title_variations_variations = [{
* Block by providing its attributes.
*/
query_title_variations_variations.forEach(variation => {
- if (variation.isActive) return;
+ if (variation.isActive) {
+ return;
+ }
variation.isActive = (blockAttributes, variationAttributes) => blockAttributes.type === variationAttributes.type;
});
/* harmony default export */ const query_title_variations = (query_title_variations_variations);
@@ -48119,21 +49934,21 @@ const query_title_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/quote.js
-
/**
* WordPress dependencies
*/
-const quote = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const quote = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- 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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ 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 */ const library_quote = (quote);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/deprecated.js
-
/**
* External dependencies
*/
@@ -48144,6 +49959,8 @@ const quote = (0,external_React_namespaceObject.createElement)(external_wp_primi
*/
+
+
const migrateToQuoteV2 = attributes => {
const {
value,
@@ -48167,6 +49984,107 @@ const migrateToQuoteV2 = attributes => {
content
})) : (0,external_wp_blocks_namespaceObject.createBlock)('core/paragraph')];
};
+const deprecated_TEXT_ALIGN_OPTIONS = ['left', 'right', 'center'];
+
+// Migrate existing text alignment settings to the renamed attribute.
+const deprecated_migrateTextAlign = (attributes, innerBlocks) => {
+ const {
+ align,
+ ...rest
+ } = attributes;
+ // Check if there are valid alignments stored in the old attribute
+ // and assign them to the new attribute name.
+ const migratedAttributes = deprecated_TEXT_ALIGN_OPTIONS.includes(align) ? {
+ ...rest,
+ textAlign: align
+ } : attributes;
+ return [migratedAttributes, innerBlocks];
+};
+
+// Migrate the v2 blocks with style === `2`;
+const migrateLargeStyle = (attributes, innerBlocks) => {
+ return [{
+ ...attributes,
+ className: attributes.className ? attributes.className + ' is-style-large' : 'is-style-large'
+ }, innerBlocks];
+};
+
+// Version before the 'align' attribute was replaced with 'textAlign'.
+const quote_deprecated_v4 = {
+ attributes: {
+ value: {
+ type: 'string',
+ source: 'html',
+ selector: 'blockquote',
+ multiline: 'p',
+ default: '',
+ __experimentalRole: 'content'
+ },
+ citation: {
+ type: 'string',
+ source: 'html',
+ selector: 'cite',
+ default: '',
+ __experimentalRole: 'content'
+ },
+ align: {
+ type: 'string'
+ }
+ },
+ supports: {
+ anchor: true,
+ html: false,
+ __experimentalOnEnter: true,
+ __experimentalOnMerge: true,
+ typography: {
+ fontSize: true,
+ lineHeight: true,
+ __experimentalFontFamily: true,
+ __experimentalFontWeight: true,
+ __experimentalFontStyle: true,
+ __experimentalTextTransform: true,
+ __experimentalTextDecoration: true,
+ __experimentalLetterSpacing: true,
+ __experimentalDefaultControls: {
+ fontSize: true,
+ fontAppearance: true
+ }
+ },
+ color: {
+ gradients: true,
+ heading: true,
+ link: true,
+ __experimentalDefaultControls: {
+ background: true,
+ text: true
+ }
+ }
+ },
+ isEligible: ({
+ align
+ }) => deprecated_TEXT_ALIGN_OPTIONS.includes(align),
+ save({
+ attributes
+ }) {
+ const {
+ align,
+ citation
+ } = attributes;
+ const className = dist_clsx({
+ [`has-text-align-${align}`]: align
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("blockquote", {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save({
+ className
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {}), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "cite",
+ value: citation
+ })]
+ });
+ },
+ migrate: deprecated_migrateTextAlign
+};
const quote_deprecated_v3 = {
attributes: {
value: {
@@ -48212,22 +50130,25 @@ const quote_deprecated_v3 = {
value,
citation
} = attributes;
- const className = classnames_default()({
+ const className = dist_clsx({
[`has-text-align-${align}`]: align
});
- return (0,external_React_namespaceObject.createElement)("blockquote", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("blockquote", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className
- })
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- multiline: true,
- value: value
- }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "cite",
- value: citation
- }));
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ multiline: true,
+ value: value
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "cite",
+ value: citation
+ })]
+ });
},
- migrate: migrateToQuoteV2
+ migrate(attributes) {
+ return deprecated_migrateTextAlign(...migrateToQuoteV2(attributes));
+ }
};
const quote_deprecated_v2 = {
attributes: {
@@ -48248,7 +50169,9 @@ const quote_deprecated_v2 = {
type: 'string'
}
},
- migrate: migrateToQuoteV2,
+ migrate(attributes) {
+ return deprecated_migrateTextAlign(...migrateToQuoteV2(attributes));
+ },
save({
attributes
}) {
@@ -48257,17 +50180,18 @@ const quote_deprecated_v2 = {
value,
citation
} = attributes;
- return (0,external_React_namespaceObject.createElement)("blockquote", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("blockquote", {
style: {
textAlign: align ? align : null
- }
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- multiline: true,
- value: value
- }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "cite",
- value: citation
- }));
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ multiline: true,
+ value: value
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "cite",
+ value: citation
+ })]
+ });
}
};
const quote_deprecated_v1 = {
@@ -48299,12 +50223,9 @@ const quote_deprecated_v1 = {
style,
...restAttributes
} = attributes;
- return migrateToQuoteV2({
- ...restAttributes,
- className: attributes.className ? attributes.className + ' is-style-large' : 'is-style-large'
- });
+ return deprecated_migrateTextAlign(...migrateLargeStyle(...migrateToQuoteV2(restAttributes)));
}
- return migrateToQuoteV2(attributes);
+ return deprecated_migrateTextAlign(...migrateToQuoteV2(attributes));
},
save({
attributes
@@ -48315,18 +50236,19 @@ const quote_deprecated_v1 = {
citation,
style
} = attributes;
- return (0,external_React_namespaceObject.createElement)("blockquote", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("blockquote", {
className: style === 2 ? 'is-large' : '',
style: {
textAlign: align ? align : null
- }
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- multiline: true,
- value: value
- }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "cite",
- value: citation
- }));
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ multiline: true,
+ value: value
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "cite",
+ value: citation
+ })]
+ });
}
};
const quote_deprecated_v0 = {
@@ -48358,11 +50280,9 @@ const quote_deprecated_v0 = {
style,
...restAttributes
} = attributes;
- return migrateToQuoteV2({
- ...restAttributes
- });
+ return deprecated_migrateTextAlign(...migrateToQuoteV2(restAttributes));
}
- return migrateToQuoteV2(attributes);
+ return deprecated_migrateTextAlign(...migrateToQuoteV2(attributes));
},
save({
attributes
@@ -48373,18 +50293,19 @@ const quote_deprecated_v0 = {
citation,
style
} = attributes;
- return (0,external_React_namespaceObject.createElement)("blockquote", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("blockquote", {
className: `blocks-quote-style-${style}`,
style: {
textAlign: align ? align : null
- }
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- multiline: true,
- value: value
- }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "footer",
- value: citation
- }));
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ multiline: true,
+ value: value
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "footer",
+ value: citation
+ })]
+ });
}
};
@@ -48396,10 +50317,24 @@ const quote_deprecated_v0 = {
*
* See block-deprecation.md
*/
-/* harmony default export */ const quote_deprecated = ([quote_deprecated_v3, quote_deprecated_v2, quote_deprecated_v1, quote_deprecated_v0]);
+/* harmony default export */ const quote_deprecated = ([quote_deprecated_v4, quote_deprecated_v3, quote_deprecated_v2, quote_deprecated_v1, quote_deprecated_v0]);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/edit.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/verse.js
+/**
+ * WordPress dependencies
+ */
+
+
+const verse = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
+/* harmony default export */ const library_verse = (verse);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/edit.js
/**
* External dependencies
*/
@@ -48420,6 +50355,10 @@ const quote_deprecated_v0 = {
* Internal dependencies
*/
+
+
+
+
const edit_isWebPlatform = external_wp_element_namespaceObject.Platform.OS === 'web';
const quote_edit_TEMPLATE = [['core/paragraph', {}]];
@@ -48462,23 +50401,16 @@ function QuoteEdit({
insertBlocksAfter,
clientId,
className,
- style
+ style,
+ isSelected
}) {
const {
- align,
- citation
+ textAlign
} = attributes;
edit_useMigrateOnLoad(attributes, clientId);
- const hasSelection = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- isBlockSelected,
- hasSelectedInnerBlock
- } = select(external_wp_blockEditor_namespaceObject.store);
- return hasSelectedInnerBlock(clientId) || isBlockSelected(clientId);
- }, []);
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()(className, {
- [`has-text-align-${align}`]: align
+ className: dist_clsx(className, {
+ [`has-text-align-${textAlign}`]: textAlign
}),
...(!edit_isWebPlatform && {
style
@@ -48487,47 +50419,52 @@ function QuoteEdit({
const innerBlocksProps = (0,external_wp_blockEditor_namespaceObject.useInnerBlocksProps)(blockProps, {
template: quote_edit_TEMPLATE,
templateInsertUpdatesSelection: true,
- __experimentalCaptureToolbars: true
+ __experimentalCaptureToolbars: true,
+ renderAppender: false
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.BlockQuotation, {
+ ...innerBlocksProps,
+ children: [innerBlocksProps.children, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Caption, {
+ attributeKey: "citation",
+ tagName: edit_isWebPlatform ? 'cite' : 'p',
+ style: edit_isWebPlatform && {
+ display: 'block'
+ },
+ isSelected: isSelected,
+ attributes: attributes,
+ setAttributes: setAttributes,
+ __unstableMobileNoFocusOnMount: true,
+ icon: library_verse,
+ label: (0,external_wp_i18n_namespaceObject.__)('Quote citation'),
+ placeholder:
+ // translators: placeholder text used for the
+ // citation
+ (0,external_wp_i18n_namespaceObject.__)('Add citation'),
+ addLabel: (0,external_wp_i18n_namespaceObject.__)('Add citation'),
+ removeLabel: (0,external_wp_i18n_namespaceObject.__)('Remove citation'),
+ excludeElementClassName: true,
+ className: "wp-block-quote__citation",
+ insertBlocksAfter: insertBlocksAfter,
+ ...(!edit_isWebPlatform ? {
+ textAlign
+ } : {})
+ })]
+ })]
});
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: align,
- onChange: nextAlign => {
- setAttributes({
- align: nextAlign
- });
- }
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.BlockQuotation, {
- ...innerBlocksProps
- }, innerBlocksProps.children, (!external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) || hasSelection) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- identifier: "citation",
- tagName: edit_isWebPlatform ? 'cite' : undefined,
- style: {
- display: 'block'
- },
- value: citation,
- onChange: nextCitation => {
- setAttributes({
- citation: nextCitation
- });
- },
- __unstableMobileNoFocusOnMount: true,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Quote citation'),
- placeholder:
- // translators: placeholder text used for the
- // citation
- (0,external_wp_i18n_namespaceObject.__)('Add citation'),
- className: "wp-block-quote__citation",
- __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)())),
- ...(!edit_isWebPlatform ? {
- textAlign: align
- } : {})
- })));
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/save.js
-
/**
* External dependencies
*/
@@ -48537,24 +50474,27 @@ function QuoteEdit({
* WordPress dependencies
*/
+
+
function quote_save_save({
attributes
}) {
const {
- align,
+ textAlign,
citation
} = attributes;
- const className = classnames_default()({
- [`has-text-align-${align}`]: align
+ const className = dist_clsx({
+ [`has-text-align-${textAlign}`]: textAlign
});
- return (0,external_React_namespaceObject.createElement)("blockquote", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("blockquote", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className
- })
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "cite",
- value: citation
- }));
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {}), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(citation) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "cite",
+ value: citation
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/transforms.js
@@ -48715,7 +50655,7 @@ const quote_metadata = {
selector: "cite",
__experimentalRole: "content"
},
- align: {
+ textAlign: {
type: "string"
}
},
@@ -48798,23 +50738,23 @@ const quote_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/symbol.js
-
/**
* WordPress dependencies
*/
-const symbol = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const symbol = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
+ })
+});
/* harmony default export */ const library_symbol = (symbol);
;// CONCATENATED MODULE: external ["wp","patterns"]
const external_wp_patterns_namespaceObject = window["wp"]["patterns"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/edit.js
-
/**
* External dependencies
*/
@@ -48832,36 +50772,22 @@ const external_wp_patterns_namespaceObject = window["wp"]["patterns"];
-
/**
* Internal dependencies
*/
+
+
+
const {
useLayoutClasses
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
const {
- PARTIAL_SYNCING_SUPPORTED_BLOCKS
+ isOverridableBlock,
+ hasOverridableBlocks
} = unlock(external_wp_patterns_namespaceObject.privateApis);
const fullAlignments = ['full', 'wide', 'left', 'right'];
-function getLegacyIdMap(blocks, content, nameCount = {}) {
- let idToClientIdMap = {};
- for (const block of blocks) {
- if (block?.innerBlocks?.length) {
- idToClientIdMap = {
- ...idToClientIdMap,
- ...getLegacyIdMap(block.innerBlocks, content, nameCount)
- };
- }
- const id = block.attributes.metadata?.id;
- const clientId = block.clientId;
- if (id && content?.[id]) {
- idToClientIdMap[clientId] = id;
- }
- }
- return idToClientIdMap;
-}
const useInferredLayout = (blocks, parentLayout) => {
const initialInferredAlignmentRef = (0,external_wp_element_namespaceObject.useRef)();
return (0,external_wp_element_namespaceObject.useMemo)(() => {
@@ -48886,88 +50812,9 @@ const useInferredLayout = (blocks, parentLayout) => {
};
}, [blocks, parentLayout]);
};
-function hasOverridableAttributes(block) {
- return Object.keys(PARTIAL_SYNCING_SUPPORTED_BLOCKS).includes(block.name) && !!block.attributes.metadata?.bindings && Object.values(block.attributes.metadata.bindings).some(binding => binding.source === 'core/pattern-overrides');
-}
-function hasOverridableBlocks(blocks) {
- return blocks.some(block => {
- if (hasOverridableAttributes(block)) return true;
- return hasOverridableBlocks(block.innerBlocks);
- });
-}
-function getOverridableAttributes(block) {
- return Object.entries(block.attributes.metadata.bindings).filter(([, binding]) => binding.source === 'core/pattern-overrides').map(([attributeKey]) => attributeKey);
-}
-function applyInitialContentValuesToInnerBlocks(blocks, content = {}, defaultValues, legacyIdMap) {
- return blocks.map(block => {
- var _legacyIdMap$block$cl;
- const innerBlocks = applyInitialContentValuesToInnerBlocks(block.innerBlocks, content, defaultValues, legacyIdMap);
- const metadataName = (_legacyIdMap$block$cl = legacyIdMap?.[block.clientId]) !== null && _legacyIdMap$block$cl !== void 0 ? _legacyIdMap$block$cl : block.attributes.metadata?.name;
- if (!metadataName || !hasOverridableAttributes(block)) {
- return {
- ...block,
- innerBlocks
- };
- }
- const attributes = getOverridableAttributes(block);
- const newAttributes = {
- ...block.attributes
- };
- for (const attributeKey of attributes) {
- var _defaultValues$metada;
- (_defaultValues$metada = defaultValues[metadataName]) !== null && _defaultValues$metada !== void 0 ? _defaultValues$metada : defaultValues[metadataName] = {};
- defaultValues[metadataName][attributeKey] = block.attributes[attributeKey];
- const contentValues = content[metadataName];
- if (contentValues?.[attributeKey] !== undefined) {
- newAttributes[attributeKey] = contentValues[attributeKey];
- }
- }
- return {
- ...block,
- attributes: newAttributes,
- innerBlocks
- };
- });
-}
-function isAttributeEqual(attribute1, attribute2) {
- if (attribute1 instanceof external_wp_richText_namespaceObject.RichTextData && attribute2 instanceof external_wp_richText_namespaceObject.RichTextData) {
- return attribute1.toString() === attribute2.toString();
- }
- return attribute1 === attribute2;
-}
-function getContentValuesFromInnerBlocks(blocks, defaultValues, legacyIdMap) {
- /** @type {Record<string, { values: Record<string, unknown>}>} */
- const content = {};
- for (const block of blocks) {
- var _legacyIdMap$block$cl2;
- if (block.name === block_name) continue;
- if (block.innerBlocks.length) {
- Object.assign(content, getContentValuesFromInnerBlocks(block.innerBlocks, defaultValues, legacyIdMap));
- }
- const metadataName = (_legacyIdMap$block$cl2 = legacyIdMap?.[block.clientId]) !== null && _legacyIdMap$block$cl2 !== void 0 ? _legacyIdMap$block$cl2 : block.attributes.metadata?.name;
- if (!metadataName || !hasOverridableAttributes(block)) {
- continue;
- }
- const attributes = getOverridableAttributes(block);
- for (const attributeKey of attributes) {
- if (!isAttributeEqual(block.attributes[attributeKey], defaultValues?.[metadataName]?.[attributeKey])) {
- var _content$metadataName;
- (_content$metadataName = content[metadataName]) !== null && _content$metadataName !== void 0 ? _content$metadataName : content[metadataName] = {};
- // TODO: We need a way to represent `undefined` in the serialized overrides.
- // Also see: https://github.com/WordPress/gutenberg/pull/57249#discussion_r1452987871
- content[metadataName][attributeKey] = block.attributes[attributeKey] === undefined ?
- // TODO: We use an empty string to represent undefined for now until
- // we support a richer format for overrides and the block binding API.
- // Currently only the `linkTarget` attribute of `core/button` is affected.
- '' : block.attributes[attributeKey];
- }
- }
- }
- return Object.keys(content).length > 0 ? content : undefined;
-}
function setBlockEditMode(setEditMode, blocks, mode) {
blocks.forEach(block => {
- const editMode = mode || (hasOverridableAttributes(block) ? 'contentOnly' : 'disabled');
+ const editMode = mode || (isOverridableBlock(block) ? 'contentOnly' : 'disabled');
setEditMode(block.clientId, editMode);
setBlockEditMode(setEditMode, block.innerBlocks,
// Disable editing for nested patterns.
@@ -48976,10 +50823,14 @@ function setBlockEditMode(setEditMode, blocks, mode) {
}
function RecursionWarning() {
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)();
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_i18n_namespaceObject.__)('Block cannot be rendered inside itself.')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Block cannot be rendered inside itself.')
+ })
+ });
}
+const edit_NOOP = () => {};
// Wrap the main Edit function for the pattern block with a recursion wrapper
// that allows short-circuiting rendering as early as possible, before any
@@ -48990,13 +50841,14 @@ function ReusableBlockEditRecursionWrapper(props) {
} = props.attributes;
const hasAlreadyRendered = (0,external_wp_blockEditor_namespaceObject.useHasRecursion)(ref);
if (hasAlreadyRendered) {
- return (0,external_React_namespaceObject.createElement)(RecursionWarning, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RecursionWarning, {});
}
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RecursionProvider, {
- uniqueId: ref
- }, (0,external_React_namespaceObject.createElement)(ReusableBlockEdit, {
- ...props
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RecursionProvider, {
+ uniqueId: ref,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ReusableBlockEdit, {
+ ...props
+ })
+ });
}
function ReusableBlockEdit({
name,
@@ -49008,32 +50860,21 @@ function ReusableBlockEdit({
clientId: patternClientId,
setAttributes
}) {
- const registry = (0,external_wp_data_namespaceObject.useRegistry)();
const {
record,
- editedRecord,
hasResolved
} = (0,external_wp_coreData_namespaceObject.useEntityRecord)('postType', 'wp_block', ref);
+ const [blocks] = (0,external_wp_coreData_namespaceObject.useEntityBlockEditor)('postType', 'wp_block', {
+ id: ref
+ });
const isMissing = hasResolved && !record;
-
- // The initial value of the `content` attribute.
- const initialContent = (0,external_wp_element_namespaceObject.useRef)(content);
-
- // The default content values from the original pattern for overridable attributes.
- // Set by the `applyInitialContentValuesToInnerBlocks` function.
- const defaultContent = (0,external_wp_element_namespaceObject.useRef)({});
const {
- replaceInnerBlocks,
- __unstableMarkNextChangeAsNotPersistent,
- setBlockEditingMode
+ setBlockEditingMode,
+ __unstableMarkLastChangeAsPersistent
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
const {
- syncDerivedUpdates
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store));
- const {
innerBlocks,
userCanEdit,
- getBlockEditingMode,
onNavigateToEntityRecord,
editingMode,
hasPatternOverridesSource
@@ -49049,12 +50890,11 @@ function ReusableBlockEdit({
const {
getBlockBindingsSource
} = unlock(select(external_wp_blocks_namespaceObject.store));
- const blocks = getBlocks(patternClientId);
const canEdit = canUser('update', 'blocks', ref);
// For editing link to the site editor if the theme and user permissions support it.
return {
- innerBlocks: blocks,
+ innerBlocks: getBlocks(patternClientId),
userCanEdit: canEdit,
getBlockEditingMode: _getBlockEditingMode,
onNavigateToEntityRecord: getSettings().onNavigateToEntityRecord,
@@ -49069,71 +50909,29 @@ function ReusableBlockEdit({
// Disable editing if the pattern itself is disabled.
editingMode === 'disabled' || !hasPatternOverridesSource ? 'disabled' : undefined);
}, [editingMode, innerBlocks, setBlockEditingMode, hasPatternOverridesSource]);
- const canOverrideBlocks = (0,external_wp_element_namespaceObject.useMemo)(() => hasPatternOverridesSource && hasOverridableBlocks(innerBlocks), [hasPatternOverridesSource, innerBlocks]);
- const initialBlocks = (0,external_wp_element_namespaceObject.useMemo)(() => {
- var _editedRecord$blocks$;
- return (// Clone the blocks to generate new client IDs.
- (_editedRecord$blocks$ = editedRecord.blocks?.map(block => (0,external_wp_blocks_namespaceObject.cloneBlock)(block))) !== null && _editedRecord$blocks$ !== void 0 ? _editedRecord$blocks$ : editedRecord.content && typeof editedRecord.content !== 'function' ? (0,external_wp_blocks_namespaceObject.parse)(editedRecord.content) : []
- );
- }, [editedRecord.blocks, editedRecord.content]);
- const legacyIdMap = (0,external_wp_element_namespaceObject.useRef)({});
-
- // Apply the initial overrides from the pattern block to the inner blocks.
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- // Build a map of clientIds to the old nano id system to provide back compat.
- legacyIdMap.current = getLegacyIdMap(initialBlocks, initialContent.current);
- defaultContent.current = {};
- const originalEditingMode = getBlockEditingMode(patternClientId);
- // Replace the contents of the blocks with the overrides.
- registry.batch(() => {
- setBlockEditingMode(patternClientId, 'default');
- syncDerivedUpdates(() => {
- const blocks = hasPatternOverridesSource ? applyInitialContentValuesToInnerBlocks(initialBlocks, initialContent.current, defaultContent.current, legacyIdMap.current) : initialBlocks;
- replaceInnerBlocks(patternClientId, blocks);
- });
- setBlockEditingMode(patternClientId, originalEditingMode);
- });
- }, [hasPatternOverridesSource, __unstableMarkNextChangeAsNotPersistent, patternClientId, initialBlocks, replaceInnerBlocks, registry, getBlockEditingMode, setBlockEditingMode, syncDerivedUpdates]);
+ const canOverrideBlocks = (0,external_wp_element_namespaceObject.useMemo)(() => hasPatternOverridesSource && hasOverridableBlocks(blocks), [hasPatternOverridesSource, blocks]);
const {
alignment,
layout
- } = useInferredLayout(innerBlocks, parentLayout);
+ } = useInferredLayout(blocks, parentLayout);
const layoutClasses = useLayoutClasses({
layout
}, name);
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()('block-library-block__reusable-block-container', layout && layoutClasses, {
+ className: dist_clsx('block-library-block__reusable-block-container', layout && layoutClasses, {
[`align${alignment}`]: alignment
})
});
+
+ // Use `blocks` variable until `innerBlocks` is populated, which has the proper clientIds.
const innerBlocksProps = (0,external_wp_blockEditor_namespaceObject.useInnerBlocksProps)(blockProps, {
templateLock: 'all',
layout,
- renderAppender: innerBlocks?.length ? undefined : external_wp_blockEditor_namespaceObject.InnerBlocks.ButtonBlockAppender
+ value: innerBlocks.length > 0 ? innerBlocks : blocks,
+ onInput: edit_NOOP,
+ onChange: edit_NOOP,
+ renderAppender: blocks?.length ? undefined : blocks.ButtonBlockAppender
});
-
- // Sync the `content` attribute from the updated blocks to the pattern block.
- // `syncDerivedUpdates` is used here to avoid creating an additional undo level.
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!hasPatternOverridesSource) {
- return;
- }
- const {
- getBlocks
- } = registry.select(external_wp_blockEditor_namespaceObject.store);
- let prevBlocks = getBlocks(patternClientId);
- return registry.subscribe(() => {
- const blocks = getBlocks(patternClientId);
- if (blocks !== prevBlocks) {
- prevBlocks = blocks;
- syncDerivedUpdates(() => {
- setAttributes({
- content: getContentValuesFromInnerBlocks(blocks, defaultContent.current, legacyIdMap.current)
- });
- });
- }
- }, external_wp_blockEditor_namespaceObject.store);
- }, [hasPatternOverridesSource, syncDerivedUpdates, patternClientId, registry, setAttributes]);
const handleEditOriginal = () => {
onNavigateToEntityRecord({
postId: ref,
@@ -49142,27 +50940,48 @@ function ReusableBlockEdit({
};
const resetContent = () => {
if (content) {
- replaceInnerBlocks(patternClientId, initialBlocks);
+ // Make sure any previous changes are persisted before resetting.
+ __unstableMarkLastChangeAsPersistent();
+ setAttributes({
+ content: undefined
+ });
}
};
let children = null;
if (isMissing) {
- children = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_i18n_namespaceObject.__)('Block has been deleted or is unavailable.'));
+ children = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Block has been deleted or is unavailable.')
+ });
}
if (!hasResolved) {
- children = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null));
- }
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, userCanEdit && onNavigateToEntityRecord && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- onClick: handleEditOriginal
- }, (0,external_wp_i18n_namespaceObject.__)('Edit original')))), canOverrideBlocks && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- onClick: resetContent,
- disabled: !content,
- __experimentalIsFocusable: true
- }, (0,external_wp_i18n_namespaceObject.__)('Reset')))), children === null ? (0,external_React_namespaceObject.createElement)("div", {
- ...innerBlocksProps
- }) : (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, children));
+ children = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [userCanEdit && onNavigateToEntityRecord && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ onClick: handleEditOriginal,
+ children: (0,external_wp_i18n_namespaceObject.__)('Edit original')
+ })
+ })
+ }), canOverrideBlocks && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ onClick: resetContent,
+ disabled: !content,
+ __experimentalIsFocusable: true,
+ children: (0,external_wp_i18n_namespaceObject.__)('Reset')
+ })
+ })
+ }), children === null ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...innerBlocksProps
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: children
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/deprecated.js
@@ -49312,9 +51131,13 @@ const block_metadata = {
type: "number"
},
content: {
- type: "object"
+ type: "object",
+ "default": {}
}
},
+ providesContext: {
+ "pattern/overrides": "content"
+ },
supports: {
customClassName: false,
html: false,
@@ -49355,7 +51178,6 @@ const block_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/read-more/edit.js
-
/**
* WordPress dependencies
*/
@@ -49363,6 +51185,9 @@ const block_init = () => initBlock({
+
+
+
function ReadMore({
attributes: {
content,
@@ -49372,27 +51197,33 @@ function ReadMore({
insertBlocksAfter
}) {
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)();
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
- onChange: value => setAttributes({
- linkTarget: value ? '_blank' : '_self'
- }),
- checked: linkTarget === '_blank'
- }))), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- tagName: "a",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('“Read more” link text'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Read more'),
- value: content,
- onChange: newValue => setAttributes({
- content: newValue
- }),
- __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)())),
- withoutInteractiveFormatting: true,
- ...blockProps
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
+ onChange: value => setAttributes({
+ linkTarget: value ? '_blank' : '_self'
+ }),
+ checked: linkTarget === '_blank'
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ identifier: "content",
+ tagName: "a",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('“Read more” link text'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Read more'),
+ value: content,
+ onChange: newValue => setAttributes({
+ content: newValue
+ }),
+ __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)())),
+ withoutInteractiveFormatting: true,
+ ...blockProps
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/read-more/index.js
@@ -49480,21 +51311,21 @@ const read_more_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/rss.js
-
/**
* WordPress dependencies
*/
-const rss = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const rss = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
/* harmony default export */ const library_rss = (rss);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/rss/edit.js
-
/**
* WordPress dependencies
*/
@@ -49505,6 +51336,9 @@ const rss = (0,external_React_namespaceObject.createElement)(external_wp_primiti
+
+
+
const DEFAULT_MIN_ITEMS = 1;
const DEFAULT_MAX_ITEMS = 20;
function RSSEdit({
@@ -49540,30 +51374,36 @@ function RSSEdit({
}
}
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)();
+ const label = (0,external_wp_i18n_namespaceObject.__)('RSS URL');
if (isEditing) {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- icon: library_rss,
- label: "RSS"
- }, (0,external_React_namespaceObject.createElement)("form", {
- onSubmit: onSubmitURL,
- className: "wp-block-rss__placeholder-form"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- wrap: true
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalInputControl, {
- __next40pxDefaultSize: true,
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Enter URL here…'),
- value: feedURL,
- onChange: value => setAttributes({
- feedURL: value
- }),
- className: "wp-block-rss__placeholder-input"
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- variant: "primary",
- type: "submit"
- }, (0,external_wp_i18n_namespaceObject.__)('Use URL'))))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ icon: library_rss,
+ label: label,
+ instructions: (0,external_wp_i18n_namespaceObject.__)('Display entries from any RSS or Atom feed.'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("form", {
+ onSubmit: onSubmitURL,
+ className: "wp-block-rss__placeholder-form",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalInputControl, {
+ __next40pxDefaultSize: true,
+ label: label,
+ hideLabelFromVision: true,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Enter URL here…'),
+ value: feedURL,
+ onChange: value => setAttributes({
+ feedURL: value
+ }),
+ className: "wp-block-rss__placeholder-input"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "primary",
+ type: "submit",
+ children: (0,external_wp_i18n_namespaceObject.__)('Apply')
+ })]
+ })
+ })
+ });
}
const toolbarControls = [{
icon: library_edit,
@@ -49571,77 +51411,87 @@ function RSSEdit({
onClick: () => setIsEditing(true)
}, {
icon: library_list,
- title: (0,external_wp_i18n_namespaceObject.__)('List view'),
+ title: (0,external_wp_i18n_namespaceObject._x)('List view', 'RSS block display setting'),
onClick: () => setAttributes({
blockLayout: 'list'
}),
isActive: blockLayout === 'list'
}, {
icon: library_grid,
- title: (0,external_wp_i18n_namespaceObject.__)('Grid view'),
+ title: (0,external_wp_i18n_namespaceObject._x)('Grid view', 'RSS block display setting'),
onClick: () => setAttributes({
blockLayout: 'grid'
}),
isActive: blockLayout === 'grid'
}];
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, {
- controls: toolbarControls
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Number of items'),
- value: itemsToShow,
- onChange: value => setAttributes({
- itemsToShow: value
- }),
- min: DEFAULT_MIN_ITEMS,
- max: DEFAULT_MAX_ITEMS,
- required: true
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Display author'),
- checked: displayAuthor,
- onChange: toggleAttribute('displayAuthor')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Display date'),
- checked: displayDate,
- onChange: toggleAttribute('displayDate')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Display excerpt'),
- checked: displayExcerpt,
- onChange: toggleAttribute('displayExcerpt')
- }), displayExcerpt && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Max number of words in excerpt'),
- value: excerptLength,
- onChange: value => setAttributes({
- excerptLength: value
- }),
- min: 10,
- max: 100,
- required: true
- }), blockLayout === 'grid' && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
- value: columns,
- onChange: value => setAttributes({
- columns: value
- }),
- min: 2,
- max: 6,
- required: true
- }))), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Disabled, null, (0,external_React_namespaceObject.createElement)((external_wp_serverSideRender_default()), {
- block: "core/rss",
- attributes: attributes
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ controls: toolbarControls
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Number of items'),
+ value: itemsToShow,
+ onChange: value => setAttributes({
+ itemsToShow: value
+ }),
+ min: DEFAULT_MIN_ITEMS,
+ max: DEFAULT_MAX_ITEMS,
+ required: true
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Display author'),
+ checked: displayAuthor,
+ onChange: toggleAttribute('displayAuthor')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Display date'),
+ checked: displayDate,
+ onChange: toggleAttribute('displayDate')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Display excerpt'),
+ checked: displayExcerpt,
+ onChange: toggleAttribute('displayExcerpt')
+ }), displayExcerpt && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Max number of words in excerpt'),
+ value: excerptLength,
+ onChange: value => setAttributes({
+ excerptLength: value
+ }),
+ min: 10,
+ max: 100,
+ required: true
+ }), blockLayout === 'grid' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
+ value: columns,
+ onChange: value => setAttributes({
+ columns: value
+ }),
+ min: 2,
+ max: 6,
+ required: true
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Disabled, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)((external_wp_serverSideRender_default()), {
+ block: "core/rss",
+ attributes: attributes
+ })
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/rss/index.js
@@ -49728,127 +51578,135 @@ const rss_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/search.js
-
/**
* WordPress dependencies
*/
-const search = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const search = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"
+ })
+});
/* harmony default export */ const library_search = (search);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/icons.js
-
/**
* WordPress dependencies
*/
-const buttonOnly = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+
+
+const buttonOnly = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Rect, {
- x: "7",
- y: "10",
- width: "10",
- height: "4",
- rx: "1",
- fill: "currentColor"
-}));
-const buttonOutside = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Rect, {
+ x: "7",
+ y: "10",
+ width: "10",
+ height: "4",
+ rx: "1",
+ fill: "currentColor"
+ })
+});
+const buttonOutside = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Rect, {
- x: "4.75",
- y: "15.25",
- width: "6.5",
- height: "9.5",
- transform: "rotate(-90 4.75 15.25)",
- stroke: "currentColor",
- strokeWidth: "1.5",
- fill: "none"
-}), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Rect, {
- x: "16",
- y: "10",
- width: "4",
- height: "4",
- rx: "1",
- fill: "currentColor"
-}));
-const buttonInside = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Rect, {
+ x: "4.75",
+ y: "15.25",
+ width: "6.5",
+ height: "9.5",
+ transform: "rotate(-90 4.75 15.25)",
+ stroke: "currentColor",
+ strokeWidth: "1.5",
+ fill: "none"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Rect, {
+ x: "16",
+ y: "10",
+ width: "4",
+ height: "4",
+ rx: "1",
+ fill: "currentColor"
+ })]
+});
+const buttonInside = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Rect, {
- x: "4.75",
- y: "15.25",
- width: "6.5",
- height: "14.5",
- transform: "rotate(-90 4.75 15.25)",
- stroke: "currentColor",
- strokeWidth: "1.5",
- fill: "none"
-}), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Rect, {
- x: "14",
- y: "10",
- width: "4",
- height: "4",
- rx: "1",
- fill: "currentColor"
-}));
-const noButton = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Rect, {
+ x: "4.75",
+ y: "15.25",
+ width: "6.5",
+ height: "14.5",
+ transform: "rotate(-90 4.75 15.25)",
+ stroke: "currentColor",
+ strokeWidth: "1.5",
+ fill: "none"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Rect, {
+ x: "14",
+ y: "10",
+ width: "4",
+ height: "4",
+ rx: "1",
+ fill: "currentColor"
+ })]
+});
+const noButton = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Rect, {
- x: "4.75",
- y: "15.25",
- width: "6.5",
- height: "14.5",
- transform: "rotate(-90 4.75 15.25)",
- stroke: "currentColor",
- fill: "none",
- strokeWidth: "1.5"
-}));
-const buttonWithIcon = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Rect, {
+ x: "4.75",
+ y: "15.25",
+ width: "6.5",
+ height: "14.5",
+ transform: "rotate(-90 4.75 15.25)",
+ stroke: "currentColor",
+ fill: "none",
+ strokeWidth: "1.5"
+ })
+});
+const buttonWithIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Rect, {
- x: "4.75",
- y: "7.75",
- width: "14.5",
- height: "8.5",
- rx: "1.25",
- stroke: "currentColor",
- fill: "none",
- strokeWidth: "1.5"
-}), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Rect, {
- x: "8",
- y: "11",
- width: "8",
- height: "2",
- fill: "currentColor"
-}));
-const toggleLabel = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Rect, {
+ x: "4.75",
+ y: "7.75",
+ width: "14.5",
+ height: "8.5",
+ rx: "1.25",
+ stroke: "currentColor",
+ fill: "none",
+ strokeWidth: "1.5"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Rect, {
+ x: "8",
+ y: "11",
+ width: "8",
+ height: "2",
+ fill: "currentColor"
+ })]
+});
+const toggleLabel = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Rect, {
- x: "4.75",
- y: "17.25",
- width: "5.5",
- height: "14.5",
- transform: "rotate(-90 4.75 17.25)",
- stroke: "currentColor",
- fill: "none",
- strokeWidth: "1.5"
-}), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Rect, {
- x: "4",
- y: "7",
- width: "10",
- height: "2",
- fill: "currentColor"
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Rect, {
+ x: "4.75",
+ y: "17.25",
+ width: "5.5",
+ height: "14.5",
+ transform: "rotate(-90 4.75 17.25)",
+ stroke: "currentColor",
+ fill: "none",
+ strokeWidth: "1.5"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Rect, {
+ x: "4",
+ y: "7",
+ width: "10",
+ height: "2",
+ fill: "currentColor"
+ })]
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/utils.js
/**
@@ -49870,7 +51728,6 @@ function utils_isPercentageUnit(unit) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/edit.js
-
/**
* External dependencies
*/
@@ -49896,6 +51753,9 @@ function utils_isPercentageUnit(unit) {
// Used to calculate border radius adjustment to avoid "fat" corners when
// button is placed inside wrapper.
+
+
+
const DEFAULT_INNER_PADDING = '4px';
function SearchEdit({
className,
@@ -49940,13 +51800,19 @@ function SearchEdit({
}
}, [__unstableMarkNextChangeAsNotPersistent, wasJustInsertedIntoNavigationBlock, setAttributes]);
const borderRadius = style?.border?.radius;
- const borderProps = (0,external_wp_blockEditor_namespaceObject.__experimentalUseBorderProps)(attributes);
+ let borderProps = (0,external_wp_blockEditor_namespaceObject.__experimentalUseBorderProps)(attributes);
// Check for old deprecated numerical border radius. Done as a separate
// check so that a borderRadius style won't overwrite the longhand
// per-corner styles.
if (typeof borderRadius === 'number') {
- borderProps.style.borderRadius = `${borderRadius}px`;
+ borderProps = {
+ ...borderProps,
+ style: {
+ ...borderProps.style,
+ borderRadius: `${borderRadius}px`
+ }
+ };
}
const colorProps = (0,external_wp_blockEditor_namespaceObject.__experimentalUseColorProps)(attributes);
const [fluidTypographySettings, layout] = (0,external_wp_blockEditor_namespaceObject.useSettings)('typography.fluid', 'layout');
@@ -49991,7 +51857,7 @@ function SearchEdit({
});
}, [hasOnlyButton, isSelected, setAttributes, width]);
const getBlockClassNames = () => {
- return classnames_default()(className, isButtonPositionInside ? 'wp-block-search__button-inside' : undefined, isButtonPositionOutside ? 'wp-block-search__button-outside' : undefined, hasNoButton ? 'wp-block-search__no-button' : undefined, hasOnlyButton ? 'wp-block-search__button-only' : undefined, !buttonUseIcon && !hasNoButton ? 'wp-block-search__text-button' : undefined, buttonUseIcon && !hasNoButton ? 'wp-block-search__icon-button' : undefined, hasOnlyButton && isSearchFieldHidden ? 'wp-block-search__searchfield-hidden' : undefined);
+ return dist_clsx(className, isButtonPositionInside ? 'wp-block-search__button-inside' : undefined, isButtonPositionOutside ? 'wp-block-search__button-outside' : undefined, hasNoButton ? 'wp-block-search__no-button' : undefined, hasOnlyButton ? 'wp-block-search__button-only' : undefined, !buttonUseIcon && !hasNoButton ? 'wp-block-search__text-button' : undefined, buttonUseIcon && !hasNoButton ? 'wp-block-search__icon-button' : undefined, hasOnlyButton && isSearchFieldHidden ? 'wp-block-search__searchfield-hidden' : undefined);
};
const buttonPositionControls = [{
role: 'menuitemradio',
@@ -50061,7 +51927,7 @@ function SearchEdit({
};
const renderTextField = () => {
// If the input is inside the wrapper, the wrapper gets the border color styles/classes, not the input control.
- const textFieldClasses = classnames_default()('wp-block-search__input', isButtonPositionInside ? undefined : borderProps.className, typographyProps.className);
+ const textFieldClasses = dist_clsx('wp-block-search__input', isButtonPositionInside ? undefined : borderProps.className, typographyProps.className);
const textFieldStyles = {
...(isButtonPositionInside ? {
borderRadius
@@ -50069,7 +51935,7 @@ function SearchEdit({
...typographyProps.style,
textDecoration: undefined
};
- return (0,external_React_namespaceObject.createElement)("input", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
type: "search",
className: textFieldClasses,
style: textFieldStyles,
@@ -50088,7 +51954,7 @@ function SearchEdit({
};
const renderButton = () => {
// If the button is inside the wrapper, the wrapper gets the border color styles/classes, not the button.
- const buttonClasses = classnames_default()('wp-block-search__button', colorProps.className, typographyProps.className, isButtonPositionInside ? undefined : borderProps.className, buttonUseIcon ? 'has-icon' : undefined, (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('button'));
+ const buttonClasses = dist_clsx('wp-block-search__button', colorProps.className, typographyProps.className, isButtonPositionInside ? undefined : borderProps.className, buttonUseIcon ? 'has-icon' : undefined, (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('button'));
const buttonStyles = {
...colorProps.style,
...typographyProps.style,
@@ -50103,89 +51969,104 @@ function SearchEdit({
});
}
};
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, buttonUseIcon && (0,external_React_namespaceObject.createElement)("button", {
- type: "button",
- className: buttonClasses,
- style: buttonStyles,
- "aria-label": buttonText ? (0,external_wp_dom_namespaceObject.__unstableStripHTML)(buttonText) : (0,external_wp_i18n_namespaceObject.__)('Search'),
- onClick: handleButtonClick,
- ref: buttonRef
- }, (0,external_React_namespaceObject.createElement)(build_module_icon, {
- icon: library_search
- })), !buttonUseIcon && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- className: buttonClasses,
- style: buttonStyles,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Button text'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Add button text…'),
- withoutInteractiveFormatting: true,
- value: buttonText,
- onChange: html => setAttributes({
- buttonText: html
- }),
- onClick: handleButtonClick
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [buttonUseIcon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("button", {
+ type: "button",
+ className: buttonClasses,
+ style: buttonStyles,
+ "aria-label": buttonText ? (0,external_wp_dom_namespaceObject.__unstableStripHTML)(buttonText) : (0,external_wp_i18n_namespaceObject.__)('Search'),
+ onClick: handleButtonClick,
+ ref: buttonRef,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: library_search
+ })
+ }), !buttonUseIcon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ identifier: "buttonText",
+ className: buttonClasses,
+ style: buttonStyles,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Button text'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Add button text…'),
+ withoutInteractiveFormatting: true,
+ value: buttonText,
+ onChange: html => setAttributes({
+ buttonText: html
+ }),
+ onClick: handleButtonClick
+ })]
+ });
};
- const controls = (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- title: (0,external_wp_i18n_namespaceObject.__)('Toggle search label'),
- icon: toggleLabel,
- onClick: () => {
- setAttributes({
- showLabel: !showLabel
- });
- },
- className: showLabel ? 'is-pressed' : undefined
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarDropdownMenu, {
- icon: getButtonPositionIcon(),
- label: (0,external_wp_i18n_namespaceObject.__)('Change button position'),
- controls: buttonPositionControls
- }), !hasNoButton && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- title: (0,external_wp_i18n_namespaceObject.__)('Use button with icon'),
- icon: buttonWithIcon,
- onClick: () => {
- setAttributes({
- buttonUseIcon: !buttonUseIcon
- });
- },
- className: buttonUseIcon ? 'is-pressed' : undefined
- }))), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Display Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.BaseControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Width'),
- id: unitControlInputId
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- id: unitControlInputId,
- min: utils_isPercentageUnit(widthUnit) ? 0 : MIN_WIDTH,
- max: utils_isPercentageUnit(widthUnit) ? 100 : undefined,
- step: 1,
- onChange: newWidth => {
- const filteredWidth = widthUnit === '%' && parseInt(newWidth, 10) > 100 ? 100 : newWidth;
- setAttributes({
- width: parseInt(filteredWidth, 10)
- });
- },
- onUnitChange: newUnit => {
- setAttributes({
- width: '%' === newUnit ? PC_WIDTH_DEFAULT : PX_WIDTH_DEFAULT,
- widthUnit: newUnit
- });
- },
- __unstableInputWidth: '80px',
- value: `${width}${widthUnit}`,
- units: units
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ButtonGroup, {
- className: "wp-block-search__components-button-group",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Percentage Width')
- }, [25, 50, 75, 100].map(widthValue => {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- key: widthValue,
- size: "small",
- variant: widthValue === width && widthUnit === '%' ? 'primary' : undefined,
- onClick: () => setAttributes({
- width: widthValue,
- widthUnit: '%'
+ const controls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Toggle search label'),
+ icon: toggleLabel,
+ onClick: () => {
+ setAttributes({
+ showLabel: !showLabel
+ });
+ },
+ className: showLabel ? 'is-pressed' : undefined
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarDropdownMenu, {
+ icon: getButtonPositionIcon(),
+ label: (0,external_wp_i18n_namespaceObject.__)('Change button position'),
+ controls: buttonPositionControls
+ }), !hasNoButton && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Use button with icon'),
+ icon: buttonWithIcon,
+ onClick: () => {
+ setAttributes({
+ buttonUseIcon: !buttonUseIcon
+ });
+ },
+ className: buttonUseIcon ? 'is-pressed' : undefined
+ })]
})
- }, widthValue, "%");
- }))))));
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.BaseControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Width'),
+ id: unitControlInputId,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ id: unitControlInputId,
+ min: utils_isPercentageUnit(widthUnit) ? 0 : MIN_WIDTH,
+ max: utils_isPercentageUnit(widthUnit) ? 100 : undefined,
+ step: 1,
+ onChange: newWidth => {
+ const filteredWidth = widthUnit === '%' && parseInt(newWidth, 10) > 100 ? 100 : newWidth;
+ setAttributes({
+ width: parseInt(filteredWidth, 10)
+ });
+ },
+ onUnitChange: newUnit => {
+ setAttributes({
+ width: '%' === newUnit ? PC_WIDTH_DEFAULT : PX_WIDTH_DEFAULT,
+ widthUnit: newUnit
+ });
+ },
+ __unstableInputWidth: "80px",
+ value: `${width}${widthUnit}`,
+ units: units
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ButtonGroup, {
+ className: "wp-block-search__components-button-group",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Percentage Width'),
+ children: [25, 50, 75, 100].map(widthValue => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Button, {
+ size: "small",
+ variant: widthValue === width && widthUnit === '%' ? 'primary' : undefined,
+ onClick: () => setAttributes({
+ width: widthValue,
+ widthUnit: '%'
+ }),
+ children: [widthValue, "%"]
+ }, widthValue);
+ })
+ })]
+ })
+ })
+ })]
+ });
const padBorderRadius = radius => radius ? `calc(${radius} + ${DEFAULT_INNER_PADDING})` : undefined;
const getWrapperStyles = () => {
const styles = isButtonPositionInside ? borderProps.style : {
@@ -50236,42 +52117,47 @@ function SearchEdit({
textDecoration: undefined
}
});
- const labelClassnames = classnames_default()('wp-block-search__label', typographyProps.className);
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, controls, showLabel && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- className: labelClassnames,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Label text'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Add label…'),
- withoutInteractiveFormatting: true,
- value: label,
- onChange: html => setAttributes({
- label: html
- }),
- style: typographyProps.style
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ResizableBox, {
- size: {
- width: `${width}${widthUnit}`
- },
- className: classnames_default()('wp-block-search__inside-wrapper', isButtonPositionInside ? borderProps.className : undefined),
- style: getWrapperStyles(),
- minWidth: MIN_WIDTH,
- enable: getResizableSides(),
- onResizeStart: (event, direction, elt) => {
- setAttributes({
- width: parseInt(elt.offsetWidth, 10),
- widthUnit: 'px'
- });
- toggleSelection(false);
- },
- onResizeStop: (event, direction, elt, delta) => {
- setAttributes({
- width: parseInt(width + delta.width, 10)
- });
- toggleSelection(true);
- },
- showHandle: isSelected
- }, (isButtonPositionInside || isButtonPositionOutside || hasOnlyButton) && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, renderTextField(), renderButton()), hasNoButton && renderTextField()));
+ const labelClassnames = dist_clsx('wp-block-search__label', typographyProps.className);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...blockProps,
+ children: [controls, showLabel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ identifier: "label",
+ className: labelClassnames,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Label text'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Add label…'),
+ withoutInteractiveFormatting: true,
+ value: label,
+ onChange: html => setAttributes({
+ label: html
+ }),
+ style: typographyProps.style
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.ResizableBox, {
+ size: {
+ width: `${width}${widthUnit}`
+ },
+ className: dist_clsx('wp-block-search__inside-wrapper', isButtonPositionInside ? borderProps.className : undefined),
+ style: getWrapperStyles(),
+ minWidth: MIN_WIDTH,
+ enable: getResizableSides(),
+ onResizeStart: (event, direction, elt) => {
+ setAttributes({
+ width: parseInt(elt.offsetWidth, 10),
+ widthUnit: 'px'
+ });
+ toggleSelection(false);
+ },
+ onResizeStop: (event, direction, elt, delta) => {
+ setAttributes({
+ width: parseInt(width + delta.width, 10)
+ });
+ toggleSelection(true);
+ },
+ showHandle: isSelected,
+ children: [(isButtonPositionInside || isButtonPositionOutside || hasOnlyButton) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [renderTextField(), renderButton()]
+ }), hasNoButton && renderTextField()]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/variations.js
@@ -50417,17 +52303,18 @@ const search_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/separator.js
-
/**
* WordPress dependencies
*/
-const separator = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const separator = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"
+ })
+});
/* harmony default export */ const library_separator = (separator);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/separator/use-deprecated-opacity.js
@@ -50464,7 +52351,6 @@ function useDeprecatedOpacity(opacity, currentColor, setAttributes) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/separator/edit.js
-
/**
* External dependencies
*/
@@ -50480,6 +52366,8 @@ function useDeprecatedOpacity(opacity, currentColor, setAttributes) {
* Internal dependencies
*/
+
+
function SeparatorEdit({
attributes,
setAttributes
@@ -50497,7 +52385,7 @@ function SeparatorEdit({
// The dots styles uses text for the dots, to change those dots color is
// using color, not backgroundColor.
const colorClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', backgroundColor);
- const className = classnames_default()({
+ const className = dist_clsx({
'has-text-color': backgroundColor || currentColor,
[colorClass]: colorClass,
'has-css-opacity': opacity === 'css',
@@ -50507,16 +52395,17 @@ function SeparatorEdit({
color: currentColor,
backgroundColor: currentColor
};
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.HorizontalRule, {
- ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className,
- style: hasCustomColor ? styles : undefined
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.HorizontalRule, {
+ ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)({
+ className,
+ style: hasCustomColor ? styles : undefined
+ })
})
- }));
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/separator/save.js
-
/**
* External dependencies
*/
@@ -50526,6 +52415,7 @@ function SeparatorEdit({
* WordPress dependencies
*/
+
function separatorSave({
attributes
}) {
@@ -50542,7 +52432,7 @@ function separatorSave({
// The dots styles uses text for the dots, to change those dots color is
// using color, not backgroundColor.
const colorClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', backgroundColor);
- const className = classnames_default()({
+ const className = dist_clsx({
'has-text-color': backgroundColor || customColor,
[colorClass]: colorClass,
'has-css-opacity': opacity === 'css',
@@ -50552,7 +52442,7 @@ function separatorSave({
backgroundColor: colorProps?.style?.backgroundColor,
color: colorClass ? undefined : customColor
};
- return (0,external_React_namespaceObject.createElement)("hr", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("hr", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className,
style: styles
@@ -50581,7 +52471,6 @@ const separator_transforms_transforms = {
/* harmony default export */ const separator_transforms = (separator_transforms_transforms);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/separator/deprecated.js
-
/**
* External dependencies
*/
@@ -50591,6 +52480,7 @@ const separator_transforms_transforms = {
* WordPress dependencies
*/
+
const separator_deprecated_v1 = {
attributes: {
color: {
@@ -50614,7 +52504,7 @@ const separator_deprecated_v1 = {
// the dots styles uses text for the dots, to change those dots color is
// using color, not backgroundColor
const colorClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('color', color);
- const className = classnames_default()({
+ const className = dist_clsx({
'has-text-color has-background': color || customColor,
[backgroundClass]: backgroundClass,
[colorClass]: colorClass
@@ -50623,7 +52513,7 @@ const separator_deprecated_v1 = {
backgroundColor: backgroundClass ? undefined : customColor,
color: colorClass ? undefined : customColor
};
- return (0,external_React_namespaceObject.createElement)("hr", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("hr", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className,
style
@@ -50737,21 +52627,21 @@ const separator_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/shortcode.js
-
/**
* WordPress dependencies
*/
-const shortcode = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const shortcode = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
/* harmony default export */ const library_shortcode = (shortcode);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/edit.js
-
/**
* WordPress dependencies
*/
@@ -50759,43 +52649,45 @@ const shortcode = (0,external_React_namespaceObject.createElement)(external_wp_p
+
+
function ShortcodeEdit({
attributes,
setAttributes
}) {
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(ShortcodeEdit);
const inputId = `blocks-shortcode-input-${instanceId}`;
- return (0,external_React_namespaceObject.createElement)("div", {
- ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: 'components-placeholder'
- })
- }, (0,external_React_namespaceObject.createElement)("label", {
- htmlFor: inputId,
- className: "components-placeholder__label"
- }, (0,external_React_namespaceObject.createElement)(build_module_icon, {
- icon: library_shortcode
- }), (0,external_wp_i18n_namespaceObject.__)('Shortcode')), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.PlainText, {
- className: "blocks-shortcode__textarea",
- id: inputId,
- value: attributes.text,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Shortcode text'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Write shortcode here…'),
- onChange: text => setAttributes({
- text
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)(),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ icon: library_shortcode,
+ label: (0,external_wp_i18n_namespaceObject.__)('Shortcode'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.PlainText, {
+ className: "blocks-shortcode__textarea",
+ id: inputId,
+ value: attributes.text,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Shortcode text'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Write shortcode here…'),
+ onChange: text => setAttributes({
+ text
+ })
+ })
})
- }));
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/save.js
-
/**
* WordPress dependencies
*/
+
function shortcode_save_save({
attributes
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, attributes.text);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
+ children: attributes.text
+ });
}
;// CONCATENATED MODULE: external ["wp","autop"]
@@ -50882,21 +52774,21 @@ const shortcode_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/site-logo.js
-
/**
* WordPress dependencies
*/
-const siteLogo = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const siteLogo = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"
+ })
+});
/* harmony default export */ const site_logo = (siteLogo);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/site-logo/edit.js
-
/**
* External dependencies
*/
@@ -50921,9 +52813,7 @@ const siteLogo = (0,external_React_namespaceObject.createElement)(external_wp_pr
*/
-/**
- * Module constants
- */
+
const site_logo_edit_ALLOWED_MEDIA_TYPES = ['image'];
const ACCEPT_MEDIA_STRING = 'image/*';
@@ -50937,7 +52827,6 @@ const SiteLogo = ({
linkTarget,
shouldSyncIcon
},
- containerRef,
isSelected,
setAttributes,
setLogo,
@@ -50948,7 +52837,6 @@ const SiteLogo = ({
setIcon,
canUserEdit
}) => {
- const clientWidth = useClientWidth(containerRef, [align]);
const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
const isWideAligned = ['wide', 'full'].includes(align);
const isResizable = !isWideAligned && isLargeViewport;
@@ -50960,9 +52848,6 @@ const SiteLogo = ({
const {
toggleSelection
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- const classes = classnames_default()('custom-logo-link', {
- 'is-transient': (0,external_wp_blob_namespaceObject.isBlobURL)(logoUrl)
- });
const {
imageEditing,
maxWidth,
@@ -50997,44 +52882,45 @@ const SiteLogo = ({
function onResizeStop() {
toggleSelection(true);
}
- const img = (0,external_React_namespaceObject.createElement)("img", {
- className: "custom-logo",
- src: logoUrl,
- alt: alt,
- onLoad: event => {
- setNaturalSize({
- naturalWidth: event.target.naturalWidth,
- naturalHeight: event.target.naturalHeight
- });
- }
+ const img = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ className: "custom-logo",
+ src: logoUrl,
+ alt: alt,
+ onLoad: event => {
+ setNaturalSize({
+ naturalWidth: event.target.naturalWidth,
+ naturalHeight: event.target.naturalHeight
+ });
+ }
+ }), (0,external_wp_blob_namespaceObject.isBlobURL)(logoUrl) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})]
});
let imgWrapper = img;
// Disable reason: Image itself is not meant to be interactive, but
// should direct focus to block.
if (isLink) {
- imgWrapper = /* eslint-disable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events */
- (0,external_React_namespaceObject.createElement)("a", {
+ imgWrapper =
+ /*#__PURE__*/
+ /* eslint-disable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events */
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
href: siteUrl,
- className: classes,
+ className: "custom-logo-link",
rel: "home",
title: title,
- onClick: event => event.preventDefault()
- }, img)
+ onClick: event => event.preventDefault(),
+ children: img
+ })
/* eslint-enable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events */;
}
- let imageWidthWithinContainer;
- if (clientWidth && naturalWidth && naturalHeight) {
- const exceedMaxWidth = naturalWidth > clientWidth;
- imageWidthWithinContainer = exceedMaxWidth ? clientWidth : naturalWidth;
- }
- if (!isResizable || !imageWidthWithinContainer) {
- return (0,external_React_namespaceObject.createElement)("div", {
+ if (!isResizable || !naturalWidth || !naturalHeight) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
style: {
width,
height
- }
- }, imgWrapper);
+ },
+ children: imgWrapper
+ });
}
// Set the default width to a responsible size.
@@ -51086,12 +52972,11 @@ const SiteLogo = ({
/* eslint-enable no-lonely-if */
const canEditImage = logoId && naturalWidth && naturalHeight && imageEditing;
- const imgEdit = canEditImage && isEditingImage ? (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalImageEditor, {
+ const imgEdit = canEditImage && isEditingImage ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalImageEditor, {
id: logoId,
url: logoUrl,
width: currentWidth,
height: currentHeight,
- clientWidth: clientWidth,
naturalHeight: naturalHeight,
naturalWidth: naturalWidth,
onSaveImage: imageAttributes => {
@@ -51100,7 +52985,7 @@ const SiteLogo = ({
onFinishEditing: () => {
setIsEditingImage(false);
}
- }) : (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ResizableBox, {
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ResizableBox, {
size: {
width: currentWidth,
height: currentHeight
@@ -51124,8 +53009,9 @@ const SiteLogo = ({
width: parseInt(currentWidth + delta.width, 10),
height: parseInt(currentHeight + delta.height, 10)
});
- }
- }, imgWrapper);
+ },
+ children: imgWrapper
+ });
// Support the previous location for the Site Icon settings. To be removed
// when the required WP core version for Gutenberg is >= 6.5.0.
@@ -51133,59 +53019,70 @@ const SiteLogo = ({
const siteIconSettingsUrl = shouldUseNewUrl ? siteUrl + '/wp-admin/options-general.php' : siteUrl + '/wp-admin/customize.php?autofocus[section]=title_tagline';
const syncSiteIconHelpText = (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. To use a custom icon that is different from your site logo, use the <a>Site Icon settings</a>.'), {
a:
+ /*#__PURE__*/
// eslint-disable-next-line jsx-a11y/anchor-has-content
- (0,external_React_namespaceObject.createElement)("a", {
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
href: siteIconSettingsUrl,
target: "_blank",
rel: "noopener noreferrer"
})
});
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Image width'),
- onChange: newWidth => setAttributes({
- width: newWidth
- }),
- min: minWidth,
- max: maxWidthBuffer,
- initialPosition: Math.min(defaultWidth, maxWidthBuffer),
- value: width || '',
- disabled: !isResizable
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Link image to home'),
- onChange: () => setAttributes({
- isLink: !isLink
- }),
- checked: isLink
- }), isLink && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
- onChange: value => setAttributes({
- linkTarget: value ? '_blank' : '_self'
- }),
- checked: linkTarget === '_blank'
- })), canUserEdit && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Use as Site Icon'),
- onChange: value => {
- setAttributes({
- shouldSyncIcon: value
- });
- setIcon(value ? logoId : undefined);
- },
- checked: !!shouldSyncIcon,
- help: syncSiteIconHelpText
- })))), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, canEditImage && !isEditingImage && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- onClick: () => setIsEditingImage(true),
- icon: library_crop,
- label: (0,external_wp_i18n_namespaceObject.__)('Crop')
- })), imgEdit);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Image width'),
+ onChange: newWidth => setAttributes({
+ width: newWidth
+ }),
+ min: minWidth,
+ max: maxWidthBuffer,
+ initialPosition: Math.min(defaultWidth, maxWidthBuffer),
+ value: width || '',
+ disabled: !isResizable
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Link image to home'),
+ onChange: () => setAttributes({
+ isLink: !isLink
+ }),
+ checked: isLink
+ }), isLink && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
+ onChange: value => setAttributes({
+ linkTarget: value ? '_blank' : '_self'
+ }),
+ checked: linkTarget === '_blank'
+ })
+ }), canUserEdit && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Use as Site Icon'),
+ onChange: value => {
+ setAttributes({
+ shouldSyncIcon: value
+ });
+ setIcon(value ? logoId : undefined);
+ },
+ checked: !!shouldSyncIcon,
+ help: syncSiteIconHelpText
+ })
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: canEditImage && !isEditingImage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ onClick: () => setIsEditingImage(true),
+ icon: library_crop,
+ label: (0,external_wp_i18n_namespaceObject.__)('Crop')
+ })
+ }), imgEdit]
+ });
};
// This is a light wrapper around MediaReplaceFlow because the block has two
@@ -51194,13 +53091,15 @@ function SiteLogoReplaceFlow({
onRemoveLogo,
...mediaReplaceProps
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, {
...mediaReplaceProps,
allowedTypes: site_logo_edit_ALLOWED_MEDIA_TYPES,
- accept: ACCEPT_MEDIA_STRING
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: onRemoveLogo
- }, (0,external_wp_i18n_namespaceObject.__)('Reset')));
+ accept: ACCEPT_MEDIA_STRING,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: onRemoveLogo,
+ children: (0,external_wp_i18n_namespaceObject.__)('Reset')
+ })
+ });
}
const InspectorLogoPreview = ({
mediaItemData = {},
@@ -51213,21 +53112,25 @@ const InspectorLogoPreview = ({
media_details: logoMediaDetails
} = mediaItemData;
const logoLabel = logoMediaDetails?.sizes?.full?.file || logoSlug;
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
...itemGroupProps,
- as: "span"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "flex-start",
- as: "span"
- }, (0,external_React_namespaceObject.createElement)("img", {
- src: logoUrl,
- alt: alt
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexItem, {
- as: "span"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, {
- numberOfLines: 1,
- className: "block-library-site-logo__inspector-media-replace-title"
- }, logoLabel))));
+ as: "span",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "flex-start",
+ as: "span",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: logoUrl,
+ alt: alt
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ as: "span",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTruncate, {
+ numberOfLines: 1,
+ className: "block-library-site-logo__inspector-media-replace-title",
+ children: logoLabel
+ })
+ })]
+ })
+ });
};
function LogoEdit({
attributes,
@@ -51239,7 +53142,6 @@ function LogoEdit({
width,
shouldSyncIcon
} = attributes;
- const ref = (0,external_wp_element_namespaceObject.useRef)();
const {
siteLogoId,
canUserEdit,
@@ -51276,6 +53178,7 @@ function LogoEdit({
const {
getSettings
} = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
+ const [temporaryURL, setTemporaryURL] = (0,external_wp_element_namespaceObject.useState)();
const {
editEntityRecord
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
@@ -51320,6 +53223,7 @@ function LogoEdit({
}
if (!media.id && media.url) {
// This is a temporary blob image.
+ setTemporaryURL(media.url);
setLogo(undefined);
return;
}
@@ -51338,6 +53242,7 @@ function LogoEdit({
createErrorNotice(message, {
type: 'snackbar'
});
+ setTemporaryURL();
};
const onFilesDrop = filesList => {
getSettings().mediaUpload({
@@ -51345,6 +53250,7 @@ function LogoEdit({
filesList,
onFileChange([image]) {
if ((0,external_wp_blob_namespaceObject.isBlobURL)(image?.url)) {
+ setTemporaryURL(image.url);
return;
}
onInitialSelectLogo(image);
@@ -51358,109 +53264,130 @@ function LogoEdit({
onError: onUploadError,
onRemoveLogo
};
- const controls = canUserEdit && logoUrl && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "other"
- }, (0,external_React_namespaceObject.createElement)(SiteLogoReplaceFlow, {
- ...mediaReplaceFlowProps
- }));
+ const controls = canUserEdit && logoUrl && !temporaryURL && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "other",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SiteLogoReplaceFlow, {
+ ...mediaReplaceFlowProps
+ })
+ });
let logoImage;
const isLoading = siteLogoId === undefined || isRequestingMediaItem;
if (isLoading) {
- logoImage = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null);
+ logoImage = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {});
}
- if (!!logoUrl) {
- logoImage = (0,external_React_namespaceObject.createElement)(SiteLogo, {
- alt: alt,
- attributes: attributes,
- className: className,
- containerRef: ref,
- isSelected: isSelected,
- setAttributes: setAttributes,
- logoUrl: logoUrl,
- setLogo: setLogo,
- logoId: mediaItemData?.id || siteLogoId,
- siteUrl: url,
- setIcon: setIcon,
- iconId: siteIconId,
- canUserEdit: canUserEdit
+
+ // Reset temporary url when logoUrl is available.
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (logoUrl && temporaryURL) {
+ setTemporaryURL();
+ }
+ }, [logoUrl, temporaryURL]);
+ if (!!logoUrl || !!temporaryURL) {
+ logoImage = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SiteLogo, {
+ alt: alt,
+ attributes: attributes,
+ className: className,
+ isSelected: isSelected,
+ setAttributes: setAttributes,
+ logoUrl: temporaryURL || logoUrl,
+ setLogo: setLogo,
+ logoId: mediaItemData?.id || siteLogoId,
+ siteUrl: url,
+ setIcon: setIcon,
+ iconId: siteIconId,
+ canUserEdit: canUserEdit
+ })
});
}
const placeholder = content => {
- const placeholderClassName = classnames_default()('block-editor-media-placeholder', className);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
+ const placeholderClassName = dist_clsx('block-editor-media-placeholder', className);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
className: placeholderClassName,
preview: logoImage,
withIllustration: true,
style: {
width
- }
- }, content);
+ },
+ children: content
+ });
};
- const classes = classnames_default()(className, {
- 'is-default-size': !width
+ const classes = dist_clsx(className, {
+ 'is-default-size': !width,
+ 'is-transient': temporaryURL
});
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- ref,
className: classes
});
const label = (0,external_wp_i18n_namespaceObject.__)('Add a site logo');
- const mediaInspectorPanel = (canUserEdit || logoUrl) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Media')
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "block-library-site-logo__inspector-media-replace-container"
- }, !canUserEdit && !!logoUrl && (0,external_React_namespaceObject.createElement)(InspectorLogoPreview, {
- mediaItemData: mediaItemData,
- itemGroupProps: {
- isBordered: true,
- className: 'block-library-site-logo__inspector-readonly-logo-preview'
- }
- }), canUserEdit && !!logoUrl && (0,external_React_namespaceObject.createElement)(SiteLogoReplaceFlow, {
- ...mediaReplaceFlowProps,
- name: (0,external_React_namespaceObject.createElement)(InspectorLogoPreview, {
- mediaItemData: mediaItemData
- }),
- popoverProps: {}
- }), canUserEdit && !logoUrl && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaUploadCheck, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaUpload, {
- onSelect: onInitialSelectLogo,
- allowedTypes: site_logo_edit_ALLOWED_MEDIA_TYPES,
- render: ({
- open
- }) => (0,external_React_namespaceObject.createElement)("div", {
- className: "block-library-site-logo__inspector-upload-container"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- onClick: open,
- variant: "secondary"
- }, isLoading ? (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null) : (0,external_wp_i18n_namespaceObject.__)('Add media')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.DropZone, {
- onFilesDrop: onFilesDrop
- }))
- })))));
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, controls, mediaInspectorPanel, !!logoUrl && logoImage, !logoUrl && !canUserEdit && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- className: "site-logo_placeholder"
- }, !!isLoading && (0,external_React_namespaceObject.createElement)("span", {
- className: "components-placeholder__preview"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null))), !logoUrl && canUserEdit && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
- onSelect: onInitialSelectLogo,
- accept: ACCEPT_MEDIA_STRING,
- allowedTypes: site_logo_edit_ALLOWED_MEDIA_TYPES,
- onError: onUploadError,
- placeholder: placeholder,
- mediaLibraryButton: ({
- open
- }) => {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- icon: library_upload,
- variant: "primary",
- label: label,
- showTooltip: true,
- tooltipPosition: "top center",
- onClick: () => {
- open();
- }
- });
- }
- }));
+ const mediaInspectorPanel = (canUserEdit || logoUrl) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Media'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-library-site-logo__inspector-media-replace-container",
+ children: [!canUserEdit && !!logoUrl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InspectorLogoPreview, {
+ mediaItemData: mediaItemData,
+ itemGroupProps: {
+ isBordered: true,
+ className: 'block-library-site-logo__inspector-readonly-logo-preview'
+ }
+ }), canUserEdit && !!logoUrl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SiteLogoReplaceFlow, {
+ ...mediaReplaceFlowProps,
+ name: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InspectorLogoPreview, {
+ mediaItemData: mediaItemData
+ }),
+ popoverProps: {}
+ }), canUserEdit && !logoUrl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaUploadCheck, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaUpload, {
+ onSelect: onInitialSelectLogo,
+ allowedTypes: site_logo_edit_ALLOWED_MEDIA_TYPES,
+ render: ({
+ open
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-library-site-logo__inspector-upload-container",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ onClick: open,
+ variant: "secondary",
+ children: isLoading ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}) : (0,external_wp_i18n_namespaceObject.__)('Add media')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropZone, {
+ onFilesDrop: onFilesDrop
+ })]
+ })
+ })
+ })]
+ })
+ })
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...blockProps,
+ children: [controls, mediaInspectorPanel, (!!logoUrl || !!temporaryURL) && logoImage, !temporaryURL && !logoUrl && !canUserEdit && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ className: "site-logo_placeholder",
+ children: !!isLoading && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "components-placeholder__preview",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
+ })
+ }), !temporaryURL && !logoUrl && canUserEdit && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
+ onSelect: onInitialSelectLogo,
+ accept: ACCEPT_MEDIA_STRING,
+ allowedTypes: site_logo_edit_ALLOWED_MEDIA_TYPES,
+ onError: onUploadError,
+ placeholder: placeholder,
+ mediaLibraryButton: ({
+ open
+ }) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: library_upload,
+ variant: "primary",
+ label: label,
+ showTooltip: true,
+ tooltipPosition: "top center",
+ onClick: () => {
+ open();
+ }
+ });
+ }
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/site-logo/transforms.js
@@ -51577,7 +53504,6 @@ const site_logo_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/site-tagline/edit.js
-
/**
* External dependencies
*/
@@ -51591,13 +53517,18 @@ const site_logo_init = () => initBlock({
+
+
+
+const HEADING_LEVELS = [0, 1, 2, 3, 4, 5, 6];
function SiteTaglineEdit({
attributes,
setAttributes,
insertBlocksAfter
}) {
const {
- textAlign
+ textAlign,
+ level
} = attributes;
const {
canUserEdit,
@@ -51616,6 +53547,7 @@ function SiteTaglineEdit({
tagline: canEdit ? settings?.description : readOnlySettings?.description
};
}, []);
+ const TagName = level === 0 ? 'p' : `h${level}`;
const {
editEntityRecord
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
@@ -51625,47 +53557,58 @@ function SiteTaglineEdit({
});
}
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign,
'wp-block-site-tagline__placeholder': !canUserEdit && !tagline
})
});
- const siteTaglineContent = canUserEdit ? (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
+ const siteTaglineContent = canUserEdit ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
allowedFormats: [],
onChange: setTagline,
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Site tagline text'),
placeholder: (0,external_wp_i18n_namespaceObject.__)('Write site tagline…'),
- tagName: "p",
+ tagName: TagName,
value: tagline,
disableLineBreaks: true,
__unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)())),
...blockProps
- }) : (0,external_React_namespaceObject.createElement)("p", {
- ...blockProps
- }, tagline || (0,external_wp_i18n_namespaceObject.__)('Site Tagline placeholder'));
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- onChange: newAlign => setAttributes({
- textAlign: newAlign
- }),
- value: textAlign
- })), siteTaglineContent);
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...blockProps,
+ children: tagline || (0,external_wp_i18n_namespaceObject.__)('Site Tagline placeholder')
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.HeadingLevelDropdown, {
+ options: HEADING_LEVELS,
+ value: level,
+ onChange: newLevel => setAttributes({
+ level: newLevel
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ onChange: newAlign => setAttributes({
+ textAlign: newAlign
+ }),
+ value: textAlign
+ })]
+ }), siteTaglineContent]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/site-tagline/icon.js
-
/**
* WordPress dependencies
*/
-/* harmony default export */ const site_tagline_icon = ((0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
+
+/* harmony default export */ const site_tagline_icon = (/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
width: "24",
- height: "24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"
-})));
+ height: "24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"
+ })
+}));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/site-tagline/deprecated.js
/**
@@ -51736,6 +53679,10 @@ const site_tagline_metadata = {
attributes: {
textAlign: {
type: "string"
+ },
+ level: {
+ type: "number",
+ "default": 0
}
},
example: {},
@@ -51795,21 +53742,21 @@ const site_tagline_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/map-marker.js
-
/**
* WordPress dependencies
*/
-const mapMarker = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const mapMarker = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"
+ })
+});
/* harmony default export */ const map_marker = (mapMarker);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/site-title/edit/index.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/site-title/edit.js
/**
* External dependencies
*/
@@ -51825,7 +53772,10 @@ const mapMarker = (0,external_React_namespaceObject.createElement)(external_wp_p
-const HEADING_LEVELS = [0, 1, 2, 3, 4, 5, 6];
+
+
+
+const edit_HEADING_LEVELS = [0, 1, 2, 3, 4, 5, 6];
function SiteTitleEdit({
attributes,
setAttributes,
@@ -51864,61 +53814,72 @@ function SiteTitleEdit({
}
const TagName = level === 0 ? 'p' : `h${level}`;
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign,
'wp-block-site-title__placeholder': !canUserEdit && !title
})
});
- const siteTitleContent = canUserEdit ? (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- tagName: isLink ? 'a' : 'span',
- href: isLink ? '#site-title-pseudo-link' : undefined,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Site title text'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Write site title…'),
- value: title,
- onChange: setTitle,
- allowedFormats: [],
- disableLineBreaks: true,
- __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)()))
- })) : (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps
- }, isLink ? (0,external_React_namespaceObject.createElement)("a", {
- href: "#site-title-pseudo-link",
- onClick: event => event.preventDefault()
- }, (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title) || (0,external_wp_i18n_namespaceObject.__)('Site Title placeholder')) : (0,external_React_namespaceObject.createElement)("span", null, (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title) || (0,external_wp_i18n_namespaceObject.__)('Site Title placeholder')));
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.HeadingLevelDropdown, {
- options: HEADING_LEVELS,
- value: level,
- onChange: newLevel => setAttributes({
- level: newLevel
+ const siteTitleContent = canUserEdit ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ tagName: isLink ? 'a' : 'span',
+ href: isLink ? '#site-title-pseudo-link' : undefined,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Site title text'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Write site title…'),
+ value: title,
+ onChange: setTitle,
+ allowedFormats: [],
+ disableLineBreaks: true,
+ __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)()))
})
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Make title link to home'),
- onChange: () => setAttributes({
- isLink: !isLink
- }),
- checked: isLink
- }), isLink && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
- onChange: value => setAttributes({
- linkTarget: value ? '_blank' : '_self'
- }),
- checked: linkTarget === '_blank'
- }))), siteTitleContent);
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...blockProps,
+ children: isLink ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: "#site-title-pseudo-link",
+ onClick: event => event.preventDefault(),
+ children: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title) || (0,external_wp_i18n_namespaceObject.__)('Site Title placeholder')
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title) || (0,external_wp_i18n_namespaceObject.__)('Site Title placeholder')
+ })
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.HeadingLevelDropdown, {
+ options: edit_HEADING_LEVELS,
+ value: level,
+ onChange: newLevel => setAttributes({
+ level: newLevel
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Make title link to home'),
+ onChange: () => setAttributes({
+ isLink: !isLink
+ }),
+ checked: isLink
+ }), isLink && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'),
+ onChange: value => setAttributes({
+ linkTarget: value ? '_blank' : '_self'
+ }),
+ checked: linkTarget === '_blank'
+ })]
+ })
+ }), siteTitleContent]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/site-title/deprecated.js
@@ -52107,724 +54068,787 @@ const site_title_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/share.js
-
/**
* WordPress dependencies
*/
-const share = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const share = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const library_share = (share);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js
-
/**
* WordPress dependencies
*/
-const keyboardReturn = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const keyboardReturn = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "-2 -2 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"
-}));
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"
+ })
+});
/* harmony default export */ const keyboard_return = (keyboardReturn);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/wordpress.js
-
/**
* WordPress dependencies
*/
-const WordPressIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const WordPressIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
version: "1.1",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/fivehundredpx.js
-
/**
* WordPress dependencies
*/
-const FivehundredpxIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const FivehundredpxIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/amazon.js
-
/**
* WordPress dependencies
*/
-const AmazonIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const AmazonIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/bandcamp.js
-
/**
* WordPress dependencies
*/
-const BandcampIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const BandcampIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/behance.js
+/**
+ * WordPress dependencies
+ */
+
+
+const BehanceIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ width: "24",
+ height: "24",
+ viewBox: "0 0 24 24",
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/bluesky.js
/**
* WordPress dependencies
*/
-const BehanceIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const BlueskyIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/chain.js
-
/**
* WordPress dependencies
*/
-const ChainIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const ChainIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/codepen.js
-
/**
* WordPress dependencies
*/
-const CodepenIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const CodepenIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/deviantart.js
-
/**
* WordPress dependencies
*/
-const DeviantArtIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const DeviantArtIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/dribbble.js
-
/**
* WordPress dependencies
*/
-const DribbbleIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const DribbbleIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/dropbox.js
-
/**
* WordPress dependencies
*/
-const DropboxIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const DropboxIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/etsy.js
-
/**
* WordPress dependencies
*/
-const EtsyIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const EtsyIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/facebook.js
-
/**
* WordPress dependencies
*/
-const FacebookIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const FacebookIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/feed.js
-
/**
* WordPress dependencies
*/
-const FeedIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const FeedIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/flickr.js
-
/**
* WordPress dependencies
*/
-const FlickrIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const FlickrIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/foursquare.js
-
/**
* WordPress dependencies
*/
-const FoursquareIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const FoursquareIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/goodreads.js
-
/**
* WordPress dependencies
*/
-const GoodreadsIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const GoodreadsIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/google.js
-
/**
* WordPress dependencies
*/
-const GoogleIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const GoogleIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/github.js
-
/**
* WordPress dependencies
*/
-const GitHubIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const GitHubIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/gravatar.js
-
/**
* WordPress dependencies
*/
-const GravatarIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const GravatarIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10.8001 4.69937V10.6494C10.8001 11.1001 10.9791 11.5323 11.2978 11.851C11.6165 12.1697 12.0487 12.3487 12.4994 12.3487C12.9501 12.3487 13.3824 12.1697 13.7011 11.851C14.0198 11.5323 14.1988 11.1001 14.1988 10.6494V6.69089C15.2418 7.05861 16.1371 7.75537 16.7496 8.67617C17.3622 9.59698 17.6589 10.6919 17.595 11.796C17.5311 12.9001 17.1101 13.9535 16.3954 14.7975C15.6807 15.6415 14.711 16.2303 13.6325 16.4753C12.5541 16.7202 11.4252 16.608 10.4161 16.1555C9.40691 15.703 8.57217 14.9348 8.03763 13.9667C7.50308 12.9985 7.29769 11.8828 7.45242 10.7877C7.60714 9.69266 8.11359 8.67755 8.89545 7.89537C9.20904 7.57521 9.38364 7.14426 9.38132 6.69611C9.37899 6.24797 9.19994 5.81884 8.88305 5.50195C8.56616 5.18506 8.13704 5.00601 7.68889 5.00369C7.24075 5.00137 6.80979 5.17597 6.48964 5.48956C5.09907 6.8801 4.23369 8.7098 4.04094 10.6669C3.84819 12.624 4.34 14.5873 5.43257 16.2224C6.52515 17.8575 8.15088 19.0632 10.0328 19.634C11.9146 20.2049 13.9362 20.1055 15.753 19.3529C17.5699 18.6003 19.0695 17.241 19.9965 15.5066C20.9234 13.7722 21.2203 11.7701 20.8366 9.84133C20.4528 7.91259 19.4122 6.17658 17.892 4.92911C16.3717 3.68163 14.466 2.99987 12.4994 3C12.0487 3 11.6165 3.17904 11.2978 3.49773C10.9791 3.81643 10.8001 4.24867 10.8001 4.69937Z"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10.8001 4.69937V10.6494C10.8001 11.1001 10.9791 11.5323 11.2978 11.851C11.6165 12.1697 12.0487 12.3487 12.4994 12.3487C12.9501 12.3487 13.3824 12.1697 13.7011 11.851C14.0198 11.5323 14.1988 11.1001 14.1988 10.6494V6.69089C15.2418 7.05861 16.1371 7.75537 16.7496 8.67617C17.3622 9.59698 17.6589 10.6919 17.595 11.796C17.5311 12.9001 17.1101 13.9535 16.3954 14.7975C15.6807 15.6415 14.711 16.2303 13.6325 16.4753C12.5541 16.7202 11.4252 16.608 10.4161 16.1555C9.40691 15.703 8.57217 14.9348 8.03763 13.9667C7.50308 12.9985 7.29769 11.8828 7.45242 10.7877C7.60714 9.69266 8.11359 8.67755 8.89545 7.89537C9.20904 7.57521 9.38364 7.14426 9.38132 6.69611C9.37899 6.24797 9.19994 5.81884 8.88305 5.50195C8.56616 5.18506 8.13704 5.00601 7.68889 5.00369C7.24075 5.00137 6.80979 5.17597 6.48964 5.48956C5.09907 6.8801 4.23369 8.7098 4.04094 10.6669C3.84819 12.624 4.34 14.5873 5.43257 16.2224C6.52515 17.8575 8.15088 19.0632 10.0328 19.634C11.9146 20.2049 13.9362 20.1055 15.753 19.3529C17.5699 18.6003 19.0695 17.241 19.9965 15.5066C20.9234 13.7722 21.2203 11.7701 20.8366 9.84133C20.4528 7.91259 19.4122 6.17658 17.892 4.92911C16.3717 3.68163 14.466 2.99987 12.4994 3C12.0487 3 11.6165 3.17904 11.2978 3.49773C10.9791 3.81643 10.8001 4.24867 10.8001 4.69937Z"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/instagram.js
-
/**
* WordPress dependencies
*/
-const InstagramIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const InstagramIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/lastfm.js
-
/**
* WordPress dependencies
*/
-const LastfmIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const LastfmIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/linkedin.js
-
/**
* WordPress dependencies
*/
-const LinkedInIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const LinkedInIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/mail.js
-
/**
* WordPress dependencies
*/
-const MailIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const MailIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l7.5 5.6 7.5-5.6V17zm0-9.1L12 13.6 4.5 7.9V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v.9z"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l7.5 5.6 7.5-5.6V17zm0-9.1L12 13.6 4.5 7.9V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v.9z"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/mastodon.js
-
/**
* WordPress dependencies
*/
-const MastodonIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const MastodonIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/meetup.js
-
/**
* WordPress dependencies
*/
-const MeetupIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const MeetupIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/medium.js
-
/**
* WordPress dependencies
*/
-const MediumIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const MediumIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13.2,12c0,3-2.4,5.4-5.3,5.4S2.6,15,2.6,12s2.4-5.4,5.3-5.4S13.2,9,13.2,12 M19.1,12c0,2.8-1.2,5-2.7,5s-2.7-2.3-2.7-5s1.2-5,2.7-5C17.9,7,19.1,9.2,19.1,12 M21.4,12c0,2.5-0.4,4.5-0.9,4.5c-0.5,0-0.9-2-0.9-4.5s0.4-4.5,0.9-4.5C21,7.5,21.4,9.5,21.4,12"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/patreon.js
-
/**
* WordPress dependencies
*/
-const PatreonIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const PatreonIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M20 8.40755C19.9969 6.10922 18.2543 4.22555 16.2097 3.54588C13.6708 2.70188 10.3222 2.82421 7.89775 3.99921C4.95932 5.42355 4.03626 8.54355 4.00186 11.6552C3.97363 14.2136 4.2222 20.9517 7.92225 20.9997C10.6715 21.0356 11.0809 17.3967 12.3529 15.6442C13.258 14.3974 14.4233 14.0452 15.8578 13.6806C18.3233 13.0537 20.0036 11.0551 20 8.40755Z"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M20 8.40755C19.9969 6.10922 18.2543 4.22555 16.2097 3.54588C13.6708 2.70188 10.3222 2.82421 7.89775 3.99921C4.95932 5.42355 4.03626 8.54355 4.00186 11.6552C3.97363 14.2136 4.2222 20.9517 7.92225 20.9997C10.6715 21.0356 11.0809 17.3967 12.3529 15.6442C13.258 14.3974 14.4233 14.0452 15.8578 13.6806C18.3233 13.0537 20.0036 11.0551 20 8.40755Z"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/pinterest.js
-
/**
* WordPress dependencies
*/
-const PinterestIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const PinterestIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/pocket.js
-
/**
* WordPress dependencies
*/
-const PocketIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const PocketIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/reddit.js
-
/**
* WordPress dependencies
*/
-const RedditIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const RedditIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M5.27 9.221A2.775 2.775 0 0 0 2.498 11.993a2.785 2.785 0 0 0 1.6 2.511 5.337 5.337 0 0 0 2.374 4.11 9.386 9.386 0 0 0 5.539 1.7 9.386 9.386 0 0 0 5.541-1.7 5.331 5.331 0 0 0 2.372-4.114 2.787 2.787 0 0 0 1.583-2.5 2.775 2.775 0 0 0-2.772-2.772 2.742 2.742 0 0 0-1.688.574 9.482 9.482 0 0 0-4.637-1.348v-.008a2.349 2.349 0 0 1 2.011-2.316 1.97 1.97 0 0 0 1.926 1.521 1.98 1.98 0 0 0 1.978-1.978 1.98 1.98 0 0 0-1.978-1.978 1.985 1.985 0 0 0-1.938 1.578 3.183 3.183 0 0 0-2.849 3.172v.011a9.463 9.463 0 0 0-4.59 1.35 2.741 2.741 0 0 0-1.688-.574Zm6.736 9.1a3.162 3.162 0 0 1-2.921-1.944.215.215 0 0 1 .014-.2.219.219 0 0 1 .168-.106 27.327 27.327 0 0 1 2.74-.133 27.357 27.357 0 0 1 2.74.133.219.219 0 0 1 .168.106.215.215 0 0 1 .014.2 3.158 3.158 0 0 1-2.921 1.944Zm3.743-3.157a1.265 1.265 0 0 1-1.4-1.371 1.954 1.954 0 0 1 .482-1.442 1.15 1.15 0 0 1 .842-.379 1.7 1.7 0 0 1 1.49 1.777 1.323 1.323 0 0 1-.325 1.015 1.476 1.476 0 0 1-1.089.4Zm-7.485 0a1.476 1.476 0 0 1-1.086-.4 1.323 1.323 0 0 1-.325-1.016 1.7 1.7 0 0 1 1.49-1.777 1.151 1.151 0 0 1 .843.379 1.951 1.951 0 0 1 .481 1.441 1.276 1.276 0 0 1-1.403 1.373Z"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/skype.js
-
/**
* WordPress dependencies
*/
-const SkypeIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const SkypeIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/snapchat.js
-
/**
* WordPress dependencies
*/
-const SnapchatIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const SnapchatIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/soundcloud.js
-
/**
* WordPress dependencies
*/
-const SoundCloudIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const SoundCloudIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/spotify.js
-
/**
* WordPress dependencies
*/
-const SpotifyIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const SpotifyIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/telegram.js
-
/**
* WordPress dependencies
*/
-const TelegramIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const TelegramIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 128 128",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M28.9700376,63.3244248 C47.6273373,55.1957357 60.0684594,49.8368063 66.2934036,47.2476366 C84.0668845,39.855031 87.7600616,38.5708563 90.1672227,38.528 C90.6966555,38.5191258 91.8804274,38.6503351 92.6472251,39.2725385 C93.294694,39.7979149 93.4728387,40.5076237 93.5580865,41.0057381 C93.6433345,41.5038525 93.7494885,42.63857 93.6651041,43.5252052 C92.7019529,53.6451182 88.5344133,78.2034783 86.4142057,89.5379542 C85.5170662,94.3339958 83.750571,95.9420841 82.0403991,96.0994568 C78.3237996,96.4414641 75.5015827,93.6432685 71.9018743,91.2836143 C66.2690414,87.5912212 63.0868492,85.2926952 57.6192095,81.6896017 C51.3004058,77.5256038 55.3966232,75.2369981 58.9976911,71.4967761 C59.9401076,70.5179421 76.3155302,55.6232293 76.6324771,54.2720454 C76.6721165,54.1030573 76.7089039,53.4731496 76.3346867,53.1405352 C75.9604695,52.8079208 75.4081573,52.921662 75.0095933,53.0121213 C74.444641,53.1403447 65.4461175,59.0880351 48.0140228,70.8551922 C45.4598218,72.6091037 43.1463059,73.4636682 41.0734751,73.4188859 C38.7883453,73.3695169 34.3926725,72.1268388 31.1249416,71.0646282 C27.1169366,69.7617838 23.931454,69.0729605 24.208838,66.8603276 C24.3533167,65.7078514 25.9403832,64.5292172 28.9700376,63.3244248 Z"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M28.9700376,63.3244248 C47.6273373,55.1957357 60.0684594,49.8368063 66.2934036,47.2476366 C84.0668845,39.855031 87.7600616,38.5708563 90.1672227,38.528 C90.6966555,38.5191258 91.8804274,38.6503351 92.6472251,39.2725385 C93.294694,39.7979149 93.4728387,40.5076237 93.5580865,41.0057381 C93.6433345,41.5038525 93.7494885,42.63857 93.6651041,43.5252052 C92.7019529,53.6451182 88.5344133,78.2034783 86.4142057,89.5379542 C85.5170662,94.3339958 83.750571,95.9420841 82.0403991,96.0994568 C78.3237996,96.4414641 75.5015827,93.6432685 71.9018743,91.2836143 C66.2690414,87.5912212 63.0868492,85.2926952 57.6192095,81.6896017 C51.3004058,77.5256038 55.3966232,75.2369981 58.9976911,71.4967761 C59.9401076,70.5179421 76.3155302,55.6232293 76.6324771,54.2720454 C76.6721165,54.1030573 76.7089039,53.4731496 76.3346867,53.1405352 C75.9604695,52.8079208 75.4081573,52.921662 75.0095933,53.0121213 C74.444641,53.1403447 65.4461175,59.0880351 48.0140228,70.8551922 C45.4598218,72.6091037 43.1463059,73.4636682 41.0734751,73.4188859 C38.7883453,73.3695169 34.3926725,72.1268388 31.1249416,71.0646282 C27.1169366,69.7617838 23.931454,69.0729605 24.208838,66.8603276 C24.3533167,65.7078514 25.9403832,64.5292172 28.9700376,63.3244248 Z"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/threads.js
-
/**
* WordPress dependencies
*/
-const ThreadsIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const ThreadsIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16.3 11.3c-.1 0-.2-.1-.2-.1-.1-2.6-1.5-4-3.9-4-1.4 0-2.6.6-3.3 1.7l1.3.9c.5-.8 1.4-1 2-1 .8 0 1.4.2 1.7.7.3.3.5.8.5 1.3-.7-.1-1.4-.2-2.2-.1-2.2.1-3.7 1.4-3.6 3.2 0 .9.5 1.7 1.3 2.2.7.4 1.5.6 2.4.6 1.2-.1 2.1-.5 2.7-1.3.5-.6.8-1.4.9-2.4.6.3 1 .8 1.2 1.3.4.9.4 2.4-.8 3.6-1.1 1.1-2.3 1.5-4.3 1.5-2.1 0-3.8-.7-4.8-2S5.7 14.3 5.7 12c0-2.3.5-4.1 1.5-5.4 1.1-1.3 2.7-2 4.8-2 2.2 0 3.8.7 4.9 2 .5.7.9 1.5 1.2 2.5l1.5-.4c-.3-1.2-.8-2.2-1.5-3.1-1.3-1.7-3.3-2.6-6-2.6-2.6 0-4.7.9-6 2.6C4.9 7.2 4.3 9.3 4.3 12s.6 4.8 1.9 6.4c1.4 1.7 3.4 2.6 6 2.6 2.3 0 4-.6 5.3-2 1.8-1.8 1.7-4 1.1-5.4-.4-.9-1.2-1.7-2.3-2.3zm-4 3.8c-1 .1-2-.4-2-1.3 0-.7.5-1.5 2.1-1.6h.5c.6 0 1.1.1 1.6.2-.2 2.3-1.3 2.7-2.2 2.7z"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M16.3 11.3c-.1 0-.2-.1-.2-.1-.1-2.6-1.5-4-3.9-4-1.4 0-2.6.6-3.3 1.7l1.3.9c.5-.8 1.4-1 2-1 .8 0 1.4.2 1.7.7.3.3.5.8.5 1.3-.7-.1-1.4-.2-2.2-.1-2.2.1-3.7 1.4-3.6 3.2 0 .9.5 1.7 1.3 2.2.7.4 1.5.6 2.4.6 1.2-.1 2.1-.5 2.7-1.3.5-.6.8-1.4.9-2.4.6.3 1 .8 1.2 1.3.4.9.4 2.4-.8 3.6-1.1 1.1-2.3 1.5-4.3 1.5-2.1 0-3.8-.7-4.8-2S5.7 14.3 5.7 12c0-2.3.5-4.1 1.5-5.4 1.1-1.3 2.7-2 4.8-2 2.2 0 3.8.7 4.9 2 .5.7.9 1.5 1.2 2.5l1.5-.4c-.3-1.2-.8-2.2-1.5-3.1-1.3-1.7-3.3-2.6-6-2.6-2.6 0-4.7.9-6 2.6C4.9 7.2 4.3 9.3 4.3 12s.6 4.8 1.9 6.4c1.4 1.7 3.4 2.6 6 2.6 2.3 0 4-.6 5.3-2 1.8-1.8 1.7-4 1.1-5.4-.4-.9-1.2-1.7-2.3-2.3zm-4 3.8c-1 .1-2-.4-2-1.3 0-.7.5-1.5 2.1-1.6h.5c.6 0 1.1.1 1.6.2-.2 2.3-1.3 2.7-2.2 2.7z"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/tiktok.js
-
/**
* WordPress dependencies
*/
-const TiktokIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const TiktokIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 32 32",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16.708 0.027c1.745-0.027 3.48-0.011 5.213-0.027 0.105 2.041 0.839 4.12 2.333 5.563 1.491 1.479 3.6 2.156 5.652 2.385v5.369c-1.923-0.063-3.855-0.463-5.6-1.291-0.76-0.344-1.468-0.787-2.161-1.24-0.009 3.896 0.016 7.787-0.025 11.667-0.104 1.864-0.719 3.719-1.803 5.255-1.744 2.557-4.771 4.224-7.88 4.276-1.907 0.109-3.812-0.411-5.437-1.369-2.693-1.588-4.588-4.495-4.864-7.615-0.032-0.667-0.043-1.333-0.016-1.984 0.24-2.537 1.495-4.964 3.443-6.615 2.208-1.923 5.301-2.839 8.197-2.297 0.027 1.975-0.052 3.948-0.052 5.923-1.323-0.428-2.869-0.308-4.025 0.495-0.844 0.547-1.485 1.385-1.819 2.333-0.276 0.676-0.197 1.427-0.181 2.145 0.317 2.188 2.421 4.027 4.667 3.828 1.489-0.016 2.916-0.88 3.692-2.145 0.251-0.443 0.532-0.896 0.547-1.417 0.131-2.385 0.079-4.76 0.095-7.145 0.011-5.375-0.016-10.735 0.025-16.093z"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M16.708 0.027c1.745-0.027 3.48-0.011 5.213-0.027 0.105 2.041 0.839 4.12 2.333 5.563 1.491 1.479 3.6 2.156 5.652 2.385v5.369c-1.923-0.063-3.855-0.463-5.6-1.291-0.76-0.344-1.468-0.787-2.161-1.24-0.009 3.896 0.016 7.787-0.025 11.667-0.104 1.864-0.719 3.719-1.803 5.255-1.744 2.557-4.771 4.224-7.88 4.276-1.907 0.109-3.812-0.411-5.437-1.369-2.693-1.588-4.588-4.495-4.864-7.615-0.032-0.667-0.043-1.333-0.016-1.984 0.24-2.537 1.495-4.964 3.443-6.615 2.208-1.923 5.301-2.839 8.197-2.297 0.027 1.975-0.052 3.948-0.052 5.923-1.323-0.428-2.869-0.308-4.025 0.495-0.844 0.547-1.485 1.385-1.819 2.333-0.276 0.676-0.197 1.427-0.181 2.145 0.317 2.188 2.421 4.027 4.667 3.828 1.489-0.016 2.916-0.88 3.692-2.145 0.251-0.443 0.532-0.896 0.547-1.417 0.131-2.385 0.079-4.76 0.095-7.145 0.011-5.375-0.016-10.735 0.025-16.093z"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/tumblr.js
-
/**
* WordPress dependencies
*/
-const TumblrIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const TumblrIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/twitch.js
-
/**
* WordPress dependencies
*/
-const TwitchIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const TwitchIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/twitter.js
-
/**
* WordPress dependencies
*/
-const TwitterIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const TwitterIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/vimeo.js
-
/**
* WordPress dependencies
*/
-const VimeoIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const VimeoIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/vk.js
-
/**
* WordPress dependencies
*/
-const VkIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const VkIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/whatsapp.js
-
/**
* WordPress dependencies
*/
-const WhatsAppIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const WhatsAppIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M 12.011719 2 C 6.5057187 2 2.0234844 6.478375 2.0214844 11.984375 C 2.0204844 13.744375 2.4814687 15.462563 3.3554688 16.976562 L 2 22 L 7.2324219 20.763672 C 8.6914219 21.559672 10.333859 21.977516 12.005859 21.978516 L 12.009766 21.978516 C 17.514766 21.978516 21.995047 17.499141 21.998047 11.994141 C 22.000047 9.3251406 20.962172 6.8157344 19.076172 4.9277344 C 17.190172 3.0407344 14.683719 2.001 12.011719 2 z M 12.009766 4 C 14.145766 4.001 16.153109 4.8337969 17.662109 6.3417969 C 19.171109 7.8517969 20.000047 9.8581875 19.998047 11.992188 C 19.996047 16.396187 16.413812 19.978516 12.007812 19.978516 C 10.674812 19.977516 9.3544062 19.642812 8.1914062 19.007812 L 7.5175781 18.640625 L 6.7734375 18.816406 L 4.8046875 19.28125 L 5.2851562 17.496094 L 5.5019531 16.695312 L 5.0878906 15.976562 C 4.3898906 14.768562 4.0204844 13.387375 4.0214844 11.984375 C 4.0234844 7.582375 7.6067656 4 12.009766 4 z M 8.4765625 7.375 C 8.3095625 7.375 8.0395469 7.4375 7.8105469 7.6875 C 7.5815469 7.9365 6.9355469 8.5395781 6.9355469 9.7675781 C 6.9355469 10.995578 7.8300781 12.182609 7.9550781 12.349609 C 8.0790781 12.515609 9.68175 15.115234 12.21875 16.115234 C 14.32675 16.946234 14.754891 16.782234 15.212891 16.740234 C 15.670891 16.699234 16.690438 16.137687 16.898438 15.554688 C 17.106437 14.971687 17.106922 14.470187 17.044922 14.367188 C 16.982922 14.263188 16.816406 14.201172 16.566406 14.076172 C 16.317406 13.951172 15.090328 13.348625 14.861328 13.265625 C 14.632328 13.182625 14.464828 13.140625 14.298828 13.390625 C 14.132828 13.640625 13.655766 14.201187 13.509766 14.367188 C 13.363766 14.534188 13.21875 14.556641 12.96875 14.431641 C 12.71875 14.305641 11.914938 14.041406 10.960938 13.191406 C 10.218937 12.530406 9.7182656 11.714844 9.5722656 11.464844 C 9.4272656 11.215844 9.5585938 11.079078 9.6835938 10.955078 C 9.7955938 10.843078 9.9316406 10.663578 10.056641 10.517578 C 10.180641 10.371578 10.223641 10.267562 10.306641 10.101562 C 10.389641 9.9355625 10.347156 9.7890625 10.285156 9.6640625 C 10.223156 9.5390625 9.737625 8.3065 9.515625 7.8125 C 9.328625 7.3975 9.131125 7.3878594 8.953125 7.3808594 C 8.808125 7.3748594 8.6425625 7.375 8.4765625 7.375 z"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M 12.011719 2 C 6.5057187 2 2.0234844 6.478375 2.0214844 11.984375 C 2.0204844 13.744375 2.4814687 15.462563 3.3554688 16.976562 L 2 22 L 7.2324219 20.763672 C 8.6914219 21.559672 10.333859 21.977516 12.005859 21.978516 L 12.009766 21.978516 C 17.514766 21.978516 21.995047 17.499141 21.998047 11.994141 C 22.000047 9.3251406 20.962172 6.8157344 19.076172 4.9277344 C 17.190172 3.0407344 14.683719 2.001 12.011719 2 z M 12.009766 4 C 14.145766 4.001 16.153109 4.8337969 17.662109 6.3417969 C 19.171109 7.8517969 20.000047 9.8581875 19.998047 11.992188 C 19.996047 16.396187 16.413812 19.978516 12.007812 19.978516 C 10.674812 19.977516 9.3544062 19.642812 8.1914062 19.007812 L 7.5175781 18.640625 L 6.7734375 18.816406 L 4.8046875 19.28125 L 5.2851562 17.496094 L 5.5019531 16.695312 L 5.0878906 15.976562 C 4.3898906 14.768562 4.0204844 13.387375 4.0214844 11.984375 C 4.0234844 7.582375 7.6067656 4 12.009766 4 z M 8.4765625 7.375 C 8.3095625 7.375 8.0395469 7.4375 7.8105469 7.6875 C 7.5815469 7.9365 6.9355469 8.5395781 6.9355469 9.7675781 C 6.9355469 10.995578 7.8300781 12.182609 7.9550781 12.349609 C 8.0790781 12.515609 9.68175 15.115234 12.21875 16.115234 C 14.32675 16.946234 14.754891 16.782234 15.212891 16.740234 C 15.670891 16.699234 16.690438 16.137687 16.898438 15.554688 C 17.106437 14.971687 17.106922 14.470187 17.044922 14.367188 C 16.982922 14.263188 16.816406 14.201172 16.566406 14.076172 C 16.317406 13.951172 15.090328 13.348625 14.861328 13.265625 C 14.632328 13.182625 14.464828 13.140625 14.298828 13.390625 C 14.132828 13.640625 13.655766 14.201187 13.509766 14.367188 C 13.363766 14.534188 13.21875 14.556641 12.96875 14.431641 C 12.71875 14.305641 11.914938 14.041406 10.960938 13.191406 C 10.218937 12.530406 9.7182656 11.714844 9.5722656 11.464844 C 9.4272656 11.215844 9.5585938 11.079078 9.6835938 10.955078 C 9.7955938 10.843078 9.9316406 10.663578 10.056641 10.517578 C 10.180641 10.371578 10.223641 10.267562 10.306641 10.101562 C 10.389641 9.9355625 10.347156 9.7890625 10.285156 9.6640625 C 10.223156 9.5390625 9.737625 8.3065 9.515625 7.8125 C 9.328625 7.3975 9.131125 7.3878594 8.953125 7.3808594 C 8.808125 7.3748594 8.6425625 7.375 8.4765625 7.375 z"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/x.js
-
/**
* WordPress dependencies
*/
-const XIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const XIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/yelp.js
-
/**
* WordPress dependencies
*/
-const YelpIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const YelpIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/youtube.js
-
/**
* WordPress dependencies
*/
-const YouTubeIcon = () => (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const YouTubeIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24",
- version: "1.1"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ version: "1.1",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/variations.js
/**
@@ -52868,6 +54892,13 @@ const social_link_variations_variations = [{
title: 'Behance',
icon: BehanceIcon
}, {
+ name: 'bluesky',
+ attributes: {
+ service: 'bluesky'
+ },
+ title: 'Bluesky',
+ icon: BlueskyIcon
+}, {
name: 'chain',
attributes: {
service: 'chain'
@@ -53164,7 +55195,9 @@ const social_link_variations_variations = [{
* Block by providing its attributes.
*/
social_link_variations_variations.forEach(variation => {
- if (variation.isActive) return;
+ if (variation.isActive) {
+ return;
+ }
variation.isActive = (blockAttributes, variationAttributes) => blockAttributes.service === variationAttributes.service;
});
/* harmony default export */ const social_link_variations = (social_link_variations_variations);
@@ -53206,7 +55239,6 @@ const getNameBySite = name => {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/edit.js
-
/**
* External dependencies
*/
@@ -53221,64 +55253,59 @@ const getNameBySite = name => {
-
-
/**
* Internal dependencies
*/
+
+
+
const SocialLinkURLPopover = ({
url,
setAttributes,
setPopover,
- popoverAnchor,
- clientId
+ popoverAnchor
}) => {
- const {
- removeBlock
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.URLPopover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.URLPopover, {
anchor: popoverAnchor,
- onClose: () => setPopover(false)
- }, (0,external_React_namespaceObject.createElement)("form", {
- className: "block-editor-url-popover__link-editor",
- onSubmit: event => {
- event.preventDefault();
- setPopover(false);
- }
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "block-editor-url-input"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.URLInput, {
- __nextHasNoMarginBottom: true,
- value: url,
- onChange: nextURL => setAttributes({
- url: nextURL
- }),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Enter address'),
- disableSuggestions: true,
- onKeyDown: event => {
- if (!!url || event.defaultPrevented || ![external_wp_keycodes_namespaceObject.BACKSPACE, external_wp_keycodes_namespaceObject.DELETE].includes(event.keyCode)) {
- return;
- }
- removeBlock(clientId);
- }
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- icon: keyboard_return,
- label: (0,external_wp_i18n_namespaceObject.__)('Apply'),
- type: "submit"
- })));
+ onClose: () => setPopover(false),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("form", {
+ className: "block-editor-url-popover__link-editor",
+ onSubmit: event => {
+ event.preventDefault();
+ setPopover(false);
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-editor-url-input",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.URLInput, {
+ __nextHasNoMarginBottom: true,
+ value: url,
+ onChange: nextURL => setAttributes({
+ url: nextURL
+ }),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Enter social link'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Enter social link'),
+ hideLabelFromVision: true,
+ disableSuggestions: true
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: keyboard_return,
+ label: (0,external_wp_i18n_namespaceObject.__)('Apply'),
+ type: "submit"
+ })]
+ })
+ });
};
const SocialLinkEdit = ({
attributes,
context,
isSelected,
- setAttributes,
- clientId
+ setAttributes
}) => {
const {
url,
service,
- label,
+ label = '',
rel
} = attributes;
const {
@@ -53289,7 +55316,7 @@ const SocialLinkEdit = ({
iconBackgroundColorValue
} = context;
const [showURLPopover, setPopover] = (0,external_wp_element_namespaceObject.useState)(false);
- const classes = classnames_default()('wp-social-link', 'wp-social-link-' + service, {
+ const classes = dist_clsx('wp-social-link', 'wp-social-link-' + service, {
'wp-social-link__is-incomplete': !url,
[`has-${iconColor}-color`]: iconColor,
[`has-${iconBackgroundColor}-background-color`]: iconBackgroundColor
@@ -53300,7 +55327,11 @@ const SocialLinkEdit = ({
const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
const IconComponent = getIconBySite(service);
const socialLinkName = getNameBySite(service);
- const socialLinkLabel = label !== null && label !== void 0 ? label : socialLinkName;
+ // The initial label (ie. the link text) is an empty string.
+ // We want to prevent empty links so that the link text always fallbacks to
+ // the social name, even when users enter and save an empty string or only
+ // spaces. The PHP render callback fallbacks to the social name as well.
+ const socialLinkText = label.trim() === '' ? socialLinkName : label;
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
className: classes,
style: {
@@ -53308,44 +55339,53 @@ const SocialLinkEdit = ({
backgroundColor: iconBackgroundColorValue
}
});
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: name of the social service. */
- (0,external_wp_i18n_namespaceObject.__)('%s label'), socialLinkName),
- initialOpen: false
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelRow, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Link label'),
- help: (0,external_wp_i18n_namespaceObject.__)('Briefly describe the link to help screen reader users.'),
- value: label || '',
- onChange: value => setAttributes({
- label: value
- })
- })))), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "advanced"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Link rel'),
- value: rel || '',
- onChange: value => setAttributes({
- rel: value
- })
- })), (0,external_React_namespaceObject.createElement)("li", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- className: "wp-block-social-link-anchor",
- ref: setPopoverAnchor,
- onClick: () => setPopover(true)
- }, (0,external_React_namespaceObject.createElement)(IconComponent, null), (0,external_React_namespaceObject.createElement)("span", {
- className: classnames_default()('wp-block-social-link-label', {
- 'screen-reader-text': !showLabels
- })
- }, socialLinkLabel), isSelected && showURLPopover && (0,external_React_namespaceObject.createElement)(SocialLinkURLPopover, {
- url: url,
- setAttributes: setAttributes,
- setPopover: setPopover,
- popoverAnchor: popoverAnchor,
- clientId: clientId
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelRow, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Link text'),
+ help: (0,external_wp_i18n_namespaceObject.__)('The link text is visible when enabled from the parent Social Icons block.'),
+ value: label,
+ onChange: value => setAttributes({
+ label: value
+ }),
+ placeholder: socialLinkName
+ })
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "advanced",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Link rel'),
+ value: rel || '',
+ onChange: value => setAttributes({
+ rel: value
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ ...blockProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("button", {
+ className: "wp-block-social-link-anchor",
+ ref: setPopoverAnchor,
+ onClick: () => setPopover(true),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(IconComponent, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: dist_clsx('wp-block-social-link-label', {
+ 'screen-reader-text': !showLabels
+ }),
+ children: socialLinkText
+ })]
+ }), isSelected && showURLPopover && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SocialLinkURLPopover, {
+ url: url,
+ setAttributes: setAttributes,
+ setPopover: setPopover,
+ popoverAnchor: popoverAnchor
+ })]
+ })]
+ });
};
/* harmony default export */ const social_link_edit = (SocialLinkEdit);
@@ -53367,7 +55407,7 @@ const social_link_metadata = {
title: "Social Icon",
category: "widgets",
parent: ["core/social-links"],
- description: "Display an icon linking to a social media profile or site.",
+ description: "Display an icon linking to a social profile or site.",
textdomain: "default",
attributes: {
url: {
@@ -53410,7 +55450,6 @@ const social_link_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-links/deprecated.js
-
/**
* External dependencies
*/
@@ -53428,6 +55467,7 @@ const social_link_init = () => initBlock({
*
* @param {Object} attributes Block's attributes.
*/
+
const social_links_deprecated_migrateWithLayout = attributes => {
if (!!attributes.layout) {
return attributes;
@@ -53508,7 +55548,7 @@ const social_links_deprecated_deprecated = [
size
}
} = props;
- const className = classnames_default()(size, {
+ const className = dist_clsx(size, {
'has-icon-color': iconColorValue,
'has-icon-background-color': iconBackgroundColorValue,
[`items-justified-${itemsJustification}`]: itemsJustification
@@ -53517,32 +55557,33 @@ const social_links_deprecated_deprecated = [
'--wp--social-links--icon-color': iconColorValue,
'--wp--social-links--icon-background-color': iconBackgroundColorValue
};
- return (0,external_React_namespaceObject.createElement)("ul", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className,
style
- })
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null));
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ });
}
}];
/* harmony default export */ const social_links_deprecated = (social_links_deprecated_deprecated);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
-
/**
* WordPress dependencies
*/
-const check = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const check = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
+ })
+});
/* harmony default export */ const library_check = (check);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-links/edit.js
-
/**
* External dependencies
*/
@@ -53556,6 +55597,9 @@ const check = (0,external_React_namespaceObject.createElement)(external_wp_primi
+
+
+
const sizeOptions = [{
name: (0,external_wp_i18n_namespaceObject.__)('Small'),
value: 'has-small-icon-size'
@@ -53612,24 +55656,27 @@ function SocialLinksEdit(props) {
});
}
}, [logosOnly]);
- const SocialPlaceholder = (0,external_React_namespaceObject.createElement)("li", {
- className: "wp-block-social-links__social-placeholder"
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-social-links__social-placeholder-icons"
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-social-link wp-social-link-twitter"
- }), (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-social-link wp-social-link-facebook"
- }), (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-social-link wp-social-link-instagram"
- })));
- const SelectedSocialPlaceholder = (0,external_React_namespaceObject.createElement)("li", {
- className: "wp-block-social-links__social-prompt"
- }, (0,external_wp_i18n_namespaceObject.__)('Click plus to add'));
+ const SocialPlaceholder = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ className: "wp-block-social-links__social-placeholder",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "wp-block-social-links__social-placeholder-icons",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-social-link wp-social-link-twitter"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-social-link wp-social-link-facebook"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-social-link wp-social-link-instagram"
+ })]
+ })
+ });
+ const SelectedSocialPlaceholder = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ className: "wp-block-social-links__social-prompt",
+ children: (0,external_wp_i18n_namespaceObject.__)('Click plus to add')
+ });
// Fallback color values are used maintain selections in case switching
// themes and named colors in palette do not match.
- const className = classnames_default()(size, {
+ const className = dist_clsx(size, {
'has-visible-labels': showLabels,
'has-icon-color': iconColor.color || iconColorValue,
'has-icon-background-color': iconBackgroundColor.color || iconBackgroundColorValue
@@ -53685,71 +55732,80 @@ function SocialLinksEdit(props) {
});
}
const colorGradientSettings = (0,external_wp_blockEditor_namespaceObject.__experimentalUseMultipleOriginColorsAndGradients)();
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "other"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarDropdownMenu, {
- label: (0,external_wp_i18n_namespaceObject.__)('Size'),
- text: (0,external_wp_i18n_namespaceObject.__)('Size'),
- icon: null,
- popoverProps: POPOVER_PROPS
- }, ({
- onClose
- }) => (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, null, sizeOptions.map(entry => {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- icon: (size === entry.value || !size && entry.value === 'has-normal-icon-size') && library_check,
- isSelected: size === entry.value,
- key: entry.value,
- onClick: () => {
- setAttributes({
- size: entry.value
- });
- },
- onClose: onClose,
- role: "menuitemradio"
- }, entry.name);
- })))), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Open links in new tab'),
- checked: openInNewTab,
- onChange: () => setAttributes({
- openInNewTab: !openInNewTab
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Show labels'),
- checked: showLabels,
- onChange: () => setAttributes({
- showLabels: !showLabels
- })
- }))), colorGradientSettings.hasColorsOrGradients && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "color"
- }, colorSettings.map(({
- onChange,
- label,
- value,
- resetAllFilter
- }) => (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalColorGradientSettingsDropdown, {
- key: `social-links-color-${label}`,
- __experimentalIsRenderedInSidebar: true,
- settings: [{
- colorValue: value,
- label,
- onColorChange: onChange,
- isShownByDefault: true,
- resetAllFilter,
- enableAlpha: true
- }],
- panelId: clientId,
- ...colorGradientSettings
- })), !logosOnly && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.ContrastChecker, {
- textColor: iconColorValue,
- backgroundColor: iconBackgroundColorValue,
- isLargeText: false
- })), (0,external_React_namespaceObject.createElement)("ul", {
- ...innerBlocksProps
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "other",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarDropdownMenu, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Size'),
+ text: (0,external_wp_i18n_namespaceObject.__)('Size'),
+ icon: null,
+ popoverProps: POPOVER_PROPS,
+ children: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ children: sizeOptions.map(entry => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: (size === entry.value || !size && entry.value === 'has-normal-icon-size') && library_check,
+ isSelected: size === entry.value,
+ onClick: () => {
+ setAttributes({
+ size: entry.value
+ });
+ },
+ onClose: onClose,
+ role: "menuitemradio",
+ children: entry.name
+ }, entry.value);
+ })
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Open links in new tab'),
+ checked: openInNewTab,
+ onChange: () => setAttributes({
+ openInNewTab: !openInNewTab
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show text'),
+ checked: showLabels,
+ onChange: () => setAttributes({
+ showLabels: !showLabels
+ })
+ })]
+ })
+ }), colorGradientSettings.hasColorsOrGradients && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "color",
+ children: [colorSettings.map(({
+ onChange,
+ label,
+ value,
+ resetAllFilter
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalColorGradientSettingsDropdown, {
+ __experimentalIsRenderedInSidebar: true,
+ settings: [{
+ colorValue: value,
+ label,
+ onColorChange: onChange,
+ isShownByDefault: true,
+ resetAllFilter,
+ enableAlpha: true
+ }],
+ panelId: clientId,
+ ...colorGradientSettings
+ }, `social-links-color-${label}`)), !logosOnly && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.ContrastChecker, {
+ textColor: iconColorValue,
+ backgroundColor: iconBackgroundColorValue,
+ isLargeText: false
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ ...innerBlocksProps
+ })]
+ });
}
const iconColorAttributes = {
iconColor: 'icon-color',
@@ -53758,7 +55814,6 @@ const iconColorAttributes = {
/* harmony default export */ const social_links_edit = ((0,external_wp_blockEditor_namespaceObject.withColors)(iconColorAttributes)(SocialLinksEdit));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-links/save.js
-
/**
* External dependencies
*/
@@ -53768,6 +55823,7 @@ const iconColorAttributes = {
* WordPress dependencies
*/
+
function social_links_save_save(props) {
const {
attributes: {
@@ -53777,7 +55833,7 @@ function social_links_save_save(props) {
size
}
} = props;
- const className = classnames_default()(size, {
+ const className = dist_clsx(size, {
'has-visible-labels': showLabels,
'has-icon-color': iconColorValue,
'has-icon-background-color': iconBackgroundColorValue
@@ -53786,7 +55842,7 @@ function social_links_save_save(props) {
className
});
const innerBlocksProps = external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save(blockProps);
- return (0,external_React_namespaceObject.createElement)("ul", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
...innerBlocksProps
});
}
@@ -53810,7 +55866,7 @@ const social_links_metadata = {
title: "Social Icons",
category: "widgets",
allowedBlocks: ["core/social-link"],
- description: "Display icons linking to your social media profiles or sites.",
+ description: "Display icons linking to your social profiles or sites.",
keywords: ["links"],
textdomain: "default",
attributes: {
@@ -53941,25 +55997,26 @@ const social_links_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/resize-corner-n-e.js
-
/**
* WordPress dependencies
*/
-const resizeCornerNE = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const resizeCornerNE = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"
+ })
+});
/* harmony default export */ const resize_corner_n_e = (resizeCornerNE);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/spacer/deprecated.js
-
/**
* WordPress dependencies
*/
+
const spacer_deprecated_deprecated = [{
attributes: {
height: {
@@ -53984,7 +56041,7 @@ const spacer_deprecated_deprecated = [{
save({
attributes
}) {
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
style: {
height: attributes.height,
@@ -54001,7 +56058,6 @@ const spacer_deprecated_deprecated = [{
const MIN_SPACER_SIZE = 0;
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/spacer/controls.js
-
/**
* WordPress dependencies
*/
@@ -54015,6 +56071,13 @@ const MIN_SPACER_SIZE = 0;
* Internal dependencies
*/
+
+
+
+
+const {
+ useSpacingSizes
+} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
function DimensionInput({
label,
onChange,
@@ -54022,7 +56085,8 @@ function DimensionInput({
value = ''
}) {
const inputId = (0,external_wp_compose_namespaceObject.useInstanceId)(external_wp_components_namespaceObject.__experimentalUnitControl, 'block-spacer-height-input');
- const [spacingSizes, spacingUnits] = (0,external_wp_blockEditor_namespaceObject.useSettings)('spacing.spacingSizes', 'spacing.units');
+ const spacingSizes = useSpacingSizes();
+ const [spacingUnits] = (0,external_wp_blockEditor_namespaceObject.useSettings)('spacing.units');
// In most contexts the spacer size cannot meaningfully be set to a
// percentage, since this is relative to the parent container. This
// unit is disabled from the UI.
@@ -54044,33 +56108,37 @@ function DimensionInput({
// Force the unit to update to `px` when the Spacer is being resized.
const [parsedQuantity, parsedUnit] = (0,external_wp_components_namespaceObject.__experimentalParseQuantityAndUnitFromRawValue)(value);
const computedValue = (0,external_wp_blockEditor_namespaceObject.isValueSpacingPreset)(value) ? value : [parsedQuantity, isResizing ? 'px' : parsedUnit].join('');
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (!spacingSizes || spacingSizes?.length === 0) && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.BaseControl, {
- label: label,
- id: inputId
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- id: inputId,
- isResetValueOnUnitChange: true,
- min: MIN_SPACER_SIZE,
- onChange: handleOnChange,
- style: {
- maxWidth: 80
- },
- value: computedValue,
- units: units
- })), spacingSizes?.length > 0 && (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.View, {
- className: "tools-panel-item-spacing"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalSpacingSizesControl, {
- values: {
- all: computedValue
- },
- onChange: handleOnChange,
- label: label,
- sides: ['all'],
- units: units,
- allowReset: false,
- splitOnAxis: false,
- showSideInLabel: false
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [(!spacingSizes || spacingSizes?.length === 0) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl, {
+ label: label,
+ id: inputId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ id: inputId,
+ isResetValueOnUnitChange: true,
+ min: MIN_SPACER_SIZE,
+ onChange: handleOnChange,
+ style: {
+ maxWidth: 80
+ },
+ value: computedValue,
+ units: units
+ })
+ }), spacingSizes?.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.View, {
+ className: "tools-panel-item-spacing",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalSpacingSizesControl, {
+ values: {
+ all: computedValue
+ },
+ onChange: handleOnChange,
+ label: label,
+ sides: ['all'],
+ units: units,
+ allowReset: false,
+ splitOnAxis: false,
+ showSideInLabel: false
+ })
+ })]
+ });
}
function SpacerControls({
setAttributes,
@@ -54079,27 +56147,29 @@ function SpacerControls({
width,
isResizing
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, orientation === 'horizontal' && (0,external_React_namespaceObject.createElement)(DimensionInput, {
- label: (0,external_wp_i18n_namespaceObject.__)('Width'),
- value: width,
- onChange: nextWidth => setAttributes({
- width: nextWidth
- }),
- isResizing: isResizing
- }), orientation !== 'horizontal' && (0,external_React_namespaceObject.createElement)(DimensionInput, {
- label: (0,external_wp_i18n_namespaceObject.__)('Height'),
- value: height,
- onChange: nextHeight => setAttributes({
- height: nextHeight
- }),
- isResizing: isResizing
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [orientation === 'horizontal' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DimensionInput, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Width'),
+ value: width,
+ onChange: nextWidth => setAttributes({
+ width: nextWidth
+ }),
+ isResizing: isResizing
+ }), orientation !== 'horizontal' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DimensionInput, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Height'),
+ value: height,
+ onChange: nextHeight => setAttributes({
+ height: nextHeight
+ }),
+ isResizing: isResizing
+ })]
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/spacer/edit.js
-
/**
* External dependencies
*/
@@ -54119,6 +56189,13 @@ function SpacerControls({
*/
+
+
+
+
+const {
+ useSpacingSizes: edit_useSpacingSizes
+} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
const ResizableSpacer = ({
orientation,
onResizeStart,
@@ -54135,8 +56212,8 @@ const ResizableSpacer = ({
const getNextVal = elt => {
return `${getCurrentSize(elt)}px`;
};
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ResizableBox, {
- className: classnames_default()('block-library-spacer__resize-container', {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ResizableBox, {
+ className: dist_clsx('block-library-spacer__resize-container', {
'resize-horizontal': orientation === 'horizontal',
'is-resizing': isResizing,
'is-selected': isSelected
@@ -54207,7 +56284,7 @@ const SpacerEdit = ({
selfStretch,
flexSize
} = layout;
- const [spacingSizes] = (0,external_wp_blockEditor_namespaceObject.useSettings)('spacing.spacingSizes');
+ const spacingSizes = edit_useSpacingSizes();
const [isResizing, setIsResizing] = (0,external_wp_element_namespaceObject.useState)(false);
const [temporaryHeight, setTemporaryHeight] = (0,external_wp_element_namespaceObject.useState)(null);
const [temporaryWidth, setTemporaryWidth] = (0,external_wp_element_namespaceObject.useState)(null);
@@ -54276,7 +56353,7 @@ const SpacerEdit = ({
};
const resizableBoxWithOrientation = blockOrientation => {
if (blockOrientation === 'horizontal') {
- return (0,external_React_namespaceObject.createElement)(ResizableSpacer, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResizableSpacer, {
minWidth: MIN_SPACER_SIZE,
enable: {
top: false,
@@ -54297,26 +56374,28 @@ const SpacerEdit = ({
setIsResizing: setIsResizing
});
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(ResizableSpacer, {
- minHeight: MIN_SPACER_SIZE,
- enable: {
- top: false,
- right: false,
- bottom: true,
- left: false,
- topRight: false,
- bottomRight: false,
- bottomLeft: false,
- topLeft: false
- },
- orientation: blockOrientation,
- onResizeStart: onResizeStart,
- onResize: setTemporaryHeight,
- onResizeStop: handleOnVerticalResizeStop,
- isSelected: isSelected,
- isResizing: isResizing,
- setIsResizing: setIsResizing
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResizableSpacer, {
+ minHeight: MIN_SPACER_SIZE,
+ enable: {
+ top: false,
+ right: false,
+ bottom: true,
+ left: false,
+ topRight: false,
+ bottomRight: false,
+ bottomLeft: false,
+ topLeft: false
+ },
+ orientation: blockOrientation,
+ onResizeStart: onResizeStart,
+ onResize: setTemporaryHeight,
+ onResizeStop: handleOnVerticalResizeStop,
+ isSelected: isSelected,
+ isResizing: isResizing,
+ setIsResizing: setIsResizing
+ })
+ });
};
(0,external_wp_element_namespaceObject.useEffect)(() => {
if (isFlexLayout && selfStretch !== 'fill' && selfStretch !== 'fit' && !flexSize) {
@@ -54381,29 +56460,32 @@ const SpacerEdit = ({
});
}
}, [blockStyle, flexSize, height, inheritedOrientation, isFlexLayout, layout, selfStretch, setAttributes, spacingSizes, width]);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.View, {
- ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- style,
- className: classnames_default()(className, {
- 'custom-sizes-disabled': disableCustomSpacingSizes
- })
- })
- }, resizableBoxWithOrientation(inheritedOrientation)), !isFlexLayout && (0,external_React_namespaceObject.createElement)(SpacerControls, {
- setAttributes: setAttributes,
- height: temporaryHeight || height,
- width: temporaryWidth || width,
- orientation: inheritedOrientation,
- isResizing: isResizing
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.View, {
+ ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)({
+ style,
+ className: dist_clsx(className, {
+ 'custom-sizes-disabled': disableCustomSpacingSizes
+ })
+ }),
+ children: resizableBoxWithOrientation(inheritedOrientation)
+ }), !isFlexLayout && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpacerControls, {
+ setAttributes: setAttributes,
+ height: temporaryHeight || height,
+ width: temporaryWidth || width,
+ orientation: inheritedOrientation,
+ isResizing: isResizing
+ })]
+ });
};
/* harmony default export */ const spacer_edit = (SpacerEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/spacer/save.js
-
/**
* WordPress dependencies
*/
+
function spacer_save_save({
attributes
}) {
@@ -54419,7 +56501,7 @@ function spacer_save_save({
} = style || {};
// If selfStretch is set to 'fill' or 'fit', don't set default height.
const finalHeight = selfStretch === 'fill' || selfStretch === 'fit' ? undefined : height;
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
style: {
height: (0,external_wp_blockEditor_namespaceObject.getSpacingPresetCssVar)(finalHeight),
@@ -54493,21 +56575,21 @@ const spacer_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/block-table.js
-
/**
* WordPress dependencies
*/
-const blockTable = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const blockTable = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
/* harmony default export */ const block_table = (blockTable);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/deprecated.js
-
/**
* External dependencies
*/
@@ -54521,6 +56603,8 @@ const blockTable = (0,external_React_namespaceObject.createElement)(external_wp_
// As the previous arbitrary colors won't match theme color palettes, the hex
// value will be mapped to the style.color.background attribute as if it was
// a custom color selection.
+
+
const oldColors = {
'subtle-light-gray': '#f3f4f5',
'subtle-pale-green': '#e9fbe5',
@@ -54528,8 +56612,249 @@ const oldColors = {
'subtle-pale-pink': '#fcf0ef'
};
+// Fixed width table cells on by default.
+const v4Query = {
+ content: {
+ type: 'rich-text',
+ source: 'rich-text'
+ },
+ tag: {
+ type: 'string',
+ default: 'td',
+ source: 'tag'
+ },
+ scope: {
+ type: 'string',
+ source: 'attribute',
+ attribute: 'scope'
+ },
+ align: {
+ type: 'string',
+ source: 'attribute',
+ attribute: 'data-align'
+ },
+ colspan: {
+ type: 'string',
+ source: 'attribute',
+ attribute: 'colspan'
+ },
+ rowspan: {
+ type: 'string',
+ source: 'attribute',
+ attribute: 'rowspan'
+ }
+};
+const table_deprecated_v4 = {
+ attributes: {
+ hasFixedLayout: {
+ type: 'boolean',
+ default: false
+ },
+ caption: {
+ type: 'rich-text',
+ source: 'rich-text',
+ selector: 'figcaption'
+ },
+ head: {
+ type: 'array',
+ default: [],
+ source: 'query',
+ selector: 'thead tr',
+ query: {
+ cells: {
+ type: 'array',
+ default: [],
+ source: 'query',
+ selector: 'td,th',
+ query: v4Query
+ }
+ }
+ },
+ body: {
+ type: 'array',
+ default: [],
+ source: 'query',
+ selector: 'tbody tr',
+ query: {
+ cells: {
+ type: 'array',
+ default: [],
+ source: 'query',
+ selector: 'td,th',
+ query: v4Query
+ }
+ }
+ },
+ foot: {
+ type: 'array',
+ default: [],
+ source: 'query',
+ selector: 'tfoot tr',
+ query: {
+ cells: {
+ type: 'array',
+ default: [],
+ source: 'query',
+ selector: 'td,th',
+ query: v4Query
+ }
+ }
+ }
+ },
+ supports: {
+ anchor: true,
+ align: true,
+ color: {
+ __experimentalSkipSerialization: true,
+ gradients: true,
+ __experimentalDefaultControls: {
+ background: true,
+ text: true
+ }
+ },
+ spacing: {
+ margin: true,
+ padding: true,
+ __experimentalDefaultControls: {
+ margin: false,
+ padding: false
+ }
+ },
+ typography: {
+ fontSize: true,
+ lineHeight: true,
+ __experimentalFontFamily: true,
+ __experimentalFontStyle: true,
+ __experimentalFontWeight: true,
+ __experimentalLetterSpacing: true,
+ __experimentalTextTransform: true,
+ __experimentalTextDecoration: true,
+ __experimentalDefaultControls: {
+ fontSize: true
+ }
+ },
+ __experimentalBorder: {
+ __experimentalSkipSerialization: true,
+ color: true,
+ style: true,
+ width: true,
+ __experimentalDefaultControls: {
+ color: true,
+ style: true,
+ width: true
+ }
+ },
+ __experimentalSelector: '.wp-block-table > table',
+ interactivity: {
+ clientNavigation: true
+ }
+ },
+ save({
+ attributes
+ }) {
+ const {
+ hasFixedLayout,
+ head,
+ body,
+ foot,
+ caption
+ } = attributes;
+ const isEmpty = !head.length && !body.length && !foot.length;
+ if (isEmpty) {
+ return null;
+ }
+ const colorProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetColorClassesAndStyles)(attributes);
+ const borderProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetBorderClassesAndStyles)(attributes);
+ const classes = dist_clsx(colorProps.className, borderProps.className, {
+ 'has-fixed-layout': hasFixedLayout
+ });
+ const hasCaption = !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption);
+ const Section = ({
+ type,
+ rows
+ }) => {
+ if (!rows.length) {
+ return null;
+ }
+ const Tag = `t${type}`;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
+ children: rows.map(({
+ cells
+ }, rowIndex) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("tr", {
+ children: cells.map(({
+ content,
+ tag,
+ scope,
+ align,
+ colspan,
+ rowspan
+ }, cellIndex) => {
+ const cellClasses = dist_clsx({
+ [`has-text-align-${align}`]: align
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ className: cellClasses ? cellClasses : undefined,
+ "data-align": align,
+ tagName: tag,
+ value: content,
+ scope: tag === 'th' ? scope : undefined,
+ colSpan: colspan,
+ rowSpan: rowspan
+ }, cellIndex);
+ })
+ }, rowIndex))
+ });
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save(),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("table", {
+ className: classes === '' ? undefined : classes,
+ style: {
+ ...colorProps.style,
+ ...borderProps.style
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Section, {
+ type: "head",
+ rows: head
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Section, {
+ type: "body",
+ rows: body
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Section, {
+ type: "foot",
+ rows: foot
+ })]
+ }), hasCaption && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ value: caption,
+ className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption')
+ })]
+ });
+ }
+};
+
// In #41140 support was added to global styles for caption elements which
// added a `wp-element-caption` classname to the embed figcaption element.
+const v3Query = {
+ 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'
+ }
+};
const table_deprecated_v3 = {
attributes: {
hasFixedLayout: {
@@ -54553,27 +56878,7 @@ const table_deprecated_v3 = {
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'
- }
- }
+ query: v3Query
}
}
},
@@ -54588,27 +56893,7 @@ const table_deprecated_v3 = {
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'
- }
- }
+ query: v3Query
}
}
},
@@ -54623,27 +56908,7 @@ const table_deprecated_v3 = {
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'
- }
- }
+ query: v3Query
}
}
}
@@ -54705,7 +56970,7 @@ const table_deprecated_v3 = {
}
const colorProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetColorClassesAndStyles)(attributes);
const borderProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetBorderClassesAndStyles)(attributes);
- const classes = classnames_default()(colorProps.className, borderProps.className, {
+ const classes = dist_clsx(colorProps.className, borderProps.className, {
'has-fixed-layout': hasFixedLayout
});
const hasCaption = !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption);
@@ -54717,54 +56982,78 @@ const table_deprecated_v3 = {
return null;
}
const Tag = `t${type}`;
- return (0,external_React_namespaceObject.createElement)(Tag, null, rows.map(({
- cells
- }, rowIndex) => (0,external_React_namespaceObject.createElement)("tr", {
- key: rowIndex
- }, cells.map(({
- content,
- tag,
- scope,
- align
- }, cellIndex) => {
- const cellClasses = classnames_default()({
- [`has-text-align-${align}`]: align
- });
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- className: cellClasses ? cellClasses : undefined,
- "data-align": align,
- tagName: tag,
- value: content,
- key: cellIndex,
- scope: tag === 'th' ? scope : undefined
- });
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
+ children: rows.map(({
+ cells
+ }, rowIndex) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("tr", {
+ children: cells.map(({
+ content,
+ tag,
+ scope,
+ align
+ }, cellIndex) => {
+ const cellClasses = dist_clsx({
+ [`has-text-align-${align}`]: align
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ className: cellClasses ? cellClasses : undefined,
+ "data-align": align,
+ tagName: tag,
+ value: content,
+ scope: tag === 'th' ? scope : undefined
+ }, cellIndex);
+ })
+ }, rowIndex))
+ });
};
- return (0,external_React_namespaceObject.createElement)("figure", {
- ...external_wp_blockEditor_namespaceObject.useBlockProps.save()
- }, (0,external_React_namespaceObject.createElement)("table", {
- className: classes === '' ? undefined : classes,
- style: {
- ...colorProps.style,
- ...borderProps.style
- }
- }, (0,external_React_namespaceObject.createElement)(Section, {
- type: "head",
- rows: head
- }), (0,external_React_namespaceObject.createElement)(Section, {
- type: "body",
- rows: body
- }), (0,external_React_namespaceObject.createElement)(Section, {
- type: "foot",
- rows: foot
- })), hasCaption && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- value: caption
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save(),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("table", {
+ className: classes === '' ? undefined : classes,
+ style: {
+ ...colorProps.style,
+ ...borderProps.style
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Section, {
+ type: "head",
+ rows: head
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Section, {
+ type: "body",
+ rows: body
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Section, {
+ type: "foot",
+ rows: foot
+ })]
+ }), hasCaption && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ value: caption
+ })]
+ });
}
};
// Deprecation migrating table block to use colors block support feature.
+const v2Query = {
+ 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'
+ }
+};
const table_deprecated_v2 = {
attributes: {
hasFixedLayout: {
@@ -54791,27 +57080,7 @@ const table_deprecated_v2 = {
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'
- }
- }
+ query: v2Query
}
}
},
@@ -54826,27 +57095,7 @@ const table_deprecated_v2 = {
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'
- }
- }
+ query: v2Query
}
}
},
@@ -54861,27 +57110,7 @@ const table_deprecated_v2 = {
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'
- }
- }
+ query: v2Query
}
}
}
@@ -54907,7 +57136,7 @@ const table_deprecated_v2 = {
return null;
}
const backgroundClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('background-color', backgroundColor);
- const classes = classnames_default()(backgroundClass, {
+ const classes = dist_clsx(backgroundClass, {
'has-fixed-layout': hasFixedLayout,
'has-background': !!backgroundClass
});
@@ -54920,46 +57149,49 @@ const table_deprecated_v2 = {
return null;
}
const Tag = `t${type}`;
- return (0,external_React_namespaceObject.createElement)(Tag, null, rows.map(({
- cells
- }, rowIndex) => (0,external_React_namespaceObject.createElement)("tr", {
- key: rowIndex
- }, cells.map(({
- content,
- tag,
- scope,
- align
- }, cellIndex) => {
- const cellClasses = classnames_default()({
- [`has-text-align-${align}`]: align
- });
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- className: cellClasses ? cellClasses : undefined,
- "data-align": align,
- tagName: tag,
- value: content,
- key: cellIndex,
- scope: tag === 'th' ? scope : undefined
- });
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
+ children: rows.map(({
+ cells
+ }, rowIndex) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("tr", {
+ children: cells.map(({
+ content,
+ tag,
+ scope,
+ align
+ }, cellIndex) => {
+ const cellClasses = dist_clsx({
+ [`has-text-align-${align}`]: align
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ className: cellClasses ? cellClasses : undefined,
+ "data-align": align,
+ tagName: tag,
+ value: content,
+ scope: tag === 'th' ? scope : undefined
+ }, cellIndex);
+ })
+ }, rowIndex))
+ });
};
- return (0,external_React_namespaceObject.createElement)("figure", {
- ...external_wp_blockEditor_namespaceObject.useBlockProps.save()
- }, (0,external_React_namespaceObject.createElement)("table", {
- className: classes === '' ? undefined : classes
- }, (0,external_React_namespaceObject.createElement)(Section, {
- type: "head",
- rows: head
- }), (0,external_React_namespaceObject.createElement)(Section, {
- type: "body",
- rows: body
- }), (0,external_React_namespaceObject.createElement)(Section, {
- type: "foot",
- rows: foot
- })), hasCaption && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- value: caption
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save(),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("table", {
+ className: classes === '' ? undefined : classes,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Section, {
+ type: "head",
+ rows: head
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Section, {
+ type: "body",
+ rows: body
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Section, {
+ type: "foot",
+ rows: foot
+ })]
+ }), hasCaption && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ value: caption
+ })]
+ });
},
isEligible: attributes => {
return attributes.backgroundColor && attributes.backgroundColor in oldColors && !attributes.style;
@@ -54978,6 +57210,22 @@ const table_deprecated_v2 = {
};
}
};
+const v1Query = {
+ content: {
+ type: 'string',
+ source: 'html'
+ },
+ tag: {
+ type: 'string',
+ default: 'td',
+ source: 'tag'
+ },
+ scope: {
+ type: 'string',
+ source: 'attribute',
+ attribute: 'scope'
+ }
+};
const table_deprecated_v1 = {
attributes: {
hasFixedLayout: {
@@ -54998,22 +57246,7 @@ const table_deprecated_v1 = {
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'
- }
- }
+ query: v1Query
}
}
},
@@ -55028,22 +57261,7 @@ const table_deprecated_v1 = {
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'
- }
- }
+ query: v1Query
}
}
},
@@ -55058,22 +57276,7 @@ const table_deprecated_v1 = {
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'
- }
- }
+ query: v1Query
}
}
}
@@ -55096,7 +57299,7 @@ const table_deprecated_v1 = {
return null;
}
const backgroundClass = (0,external_wp_blockEditor_namespaceObject.getColorClassName)('background-color', backgroundColor);
- const classes = classnames_default()(backgroundClass, {
+ const classes = dist_clsx(backgroundClass, {
'has-fixed-layout': hasFixedLayout,
'has-background': !!backgroundClass
});
@@ -55108,33 +57311,35 @@ const table_deprecated_v1 = {
return null;
}
const Tag = `t${type}`;
- return (0,external_React_namespaceObject.createElement)(Tag, null, rows.map(({
- cells
- }, rowIndex) => (0,external_React_namespaceObject.createElement)("tr", {
- key: rowIndex
- }, cells.map(({
- content,
- tag,
- scope
- }, cellIndex) => (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: tag,
- value: content,
- key: cellIndex,
- scope: tag === 'th' ? scope : undefined
- })))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
+ children: rows.map(({
+ cells
+ }, rowIndex) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("tr", {
+ children: cells.map(({
+ content,
+ tag,
+ scope
+ }, cellIndex) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: tag,
+ value: content,
+ scope: tag === 'th' ? scope : undefined
+ }, cellIndex))
+ }, rowIndex))
+ });
};
- return (0,external_React_namespaceObject.createElement)("table", {
- className: classes
- }, (0,external_React_namespaceObject.createElement)(Section, {
- type: "head",
- rows: head
- }), (0,external_React_namespaceObject.createElement)(Section, {
- type: "body",
- rows: body
- }), (0,external_React_namespaceObject.createElement)(Section, {
- type: "foot",
- rows: foot
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("table", {
+ className: classes,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Section, {
+ type: "head",
+ rows: head
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Section, {
+ type: "body",
+ rows: body
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Section, {
+ type: "foot",
+ rows: foot
+ })]
+ });
}
};
@@ -55146,146 +57351,156 @@ const table_deprecated_v1 = {
*
* See block-deprecation.md
*/
-/* harmony default export */ const table_deprecated = ([table_deprecated_v3, table_deprecated_v2, table_deprecated_v1]);
+/* harmony default export */ const table_deprecated = ([table_deprecated_v4, table_deprecated_v3, table_deprecated_v2, table_deprecated_v1]);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/align-left.js
-
/**
* WordPress dependencies
*/
-const alignLeft = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const alignLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"
+ })
+});
/* harmony default export */ const align_left = (alignLeft);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/align-center.js
-
/**
* WordPress dependencies
*/
-const alignCenter = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const alignCenter = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"
+ })
+});
/* harmony default export */ const align_center = (alignCenter);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/align-right.js
-
/**
* WordPress dependencies
*/
-const alignRight = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const alignRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"
+ })
+});
/* harmony default export */ const align_right = (alignRight);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table-row-before.js
-
/**
* WordPress dependencies
*/
-const tableRowBefore = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const tableRowBefore = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "-2 -2 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "-2 -2 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const table_row_before = (tableRowBefore);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table-row-after.js
-
/**
* WordPress dependencies
*/
-const tableRowAfter = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const tableRowAfter = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "-2 -2 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "-2 -2 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const table_row_after = (tableRowAfter);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table-row-delete.js
-
/**
* WordPress dependencies
*/
-const tableRowDelete = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const tableRowDelete = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "-2 -2 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "-2 -2 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const table_row_delete = (tableRowDelete);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table-column-before.js
-
/**
* WordPress dependencies
*/
-const tableColumnBefore = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const tableColumnBefore = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "-2 -2 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "-2 -2 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const table_column_before = (tableColumnBefore);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table-column-after.js
-
/**
* WordPress dependencies
*/
-const tableColumnAfter = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const tableColumnAfter = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "-2 -2 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "-2 -2 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const table_column_after = (tableColumnAfter);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table-column-delete.js
-
/**
* WordPress dependencies
*/
-const tableColumnDelete = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const tableColumnDelete = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "-2 -2 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "-2 -2 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const table_column_delete = (tableColumnDelete);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table.js
-
/**
* WordPress dependencies
*/
-const table = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const table = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const library_table = (table);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/state.js
@@ -55587,7 +57802,6 @@ function isEmptyRow(row) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/edit.js
-
/**
* External dependencies
*/
@@ -55607,6 +57821,9 @@ function isEmptyRow(row) {
* Internal dependencies
*/
+
+
+
const ALIGNMENT_CONTROLS = [{
icon: align_left,
title: (0,external_wp_i18n_namespaceObject.__)('Align column left'),
@@ -55634,7 +57851,7 @@ function TSection({
...props
}) {
const TagName = `t${name}`;
- return (0,external_React_namespaceObject.createElement)(TagName, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
...props
});
}
@@ -55920,143 +58137,156 @@ function TableEdit({
isDisabled: !selectedCell,
onClick: onDeleteColumn
}];
- const renderedSections = sections.map(name => (0,external_React_namespaceObject.createElement)(TSection, {
+ const renderedSections = sections.map(name => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TSection, {
name: name,
- key: name
- }, attributes[name].map(({
- cells
- }, rowIndex) => (0,external_React_namespaceObject.createElement)("tr", {
- key: rowIndex
- }, cells.map(({
- content,
- tag: CellTag,
- scope,
- align,
- colspan,
- rowspan
- }, columnIndex) => (0,external_React_namespaceObject.createElement)(CellTag, {
- key: columnIndex,
- scope: CellTag === 'th' ? scope : undefined,
- colSpan: colspan,
- rowSpan: rowspan,
- className: classnames_default()({
- [`has-text-align-${align}`]: align
- }, 'wp-block-table__cell-content')
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- value: content,
- onChange: onChange,
- onFocus: () => {
- setSelectedCell({
- sectionName: name,
- rowIndex,
- columnIndex,
- type: 'cell'
- });
- },
- "aria-label": cellAriaLabel[name],
- placeholder: edit_placeholder[name]
- })))))));
+ children: attributes[name].map(({
+ cells
+ }, rowIndex) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("tr", {
+ children: cells.map(({
+ content,
+ tag: CellTag,
+ scope,
+ align,
+ colspan,
+ rowspan
+ }, columnIndex) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CellTag, {
+ scope: CellTag === 'th' ? scope : undefined,
+ colSpan: colspan,
+ rowSpan: rowspan,
+ className: dist_clsx({
+ [`has-text-align-${align}`]: align
+ }, 'wp-block-table__cell-content'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ value: content,
+ onChange: onChange,
+ onFocus: () => {
+ setSelectedCell({
+ sectionName: name,
+ rowIndex,
+ columnIndex,
+ type: 'cell'
+ });
+ },
+ "aria-label": cellAriaLabel[name],
+ placeholder: edit_placeholder[name]
+ })
+ }, columnIndex))
+ }, rowIndex))
+ }, name));
const isEmpty = !sections.length;
- return (0,external_React_namespaceObject.createElement)("figure", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
...(0,external_wp_blockEditor_namespaceObject.useBlockProps)({
ref: tableRef
- })
- }, !isEmpty && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Change column alignment'),
- alignmentControls: ALIGNMENT_CONTROLS,
- value: getCellAlignment(),
- onChange: nextAlign => onChangeColumnAlignment(nextAlign)
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "other"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarDropdownMenu, {
- hasArrowIndicator: true,
- icon: library_table,
- label: (0,external_wp_i18n_namespaceObject.__)('Edit table'),
- controls: tableControls
- }))), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
- className: "blocks-table-settings"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Fixed width table cells'),
- checked: !!hasFixedLayout,
- onChange: onChangeFixedLayout
- }), !isEmpty && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Header section'),
- checked: !!(head && head.length),
- onChange: onToggleHeaderSection
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Footer section'),
- checked: !!(foot && foot.length),
- onChange: onToggleFooterSection
- })))), !isEmpty && (0,external_React_namespaceObject.createElement)("table", {
- className: classnames_default()(colorProps.className, borderProps.className, {
- 'has-fixed-layout': hasFixedLayout,
- // This is required in the editor only to overcome
- // the fact the editor rewrites individual border
- // widths into a shorthand format.
- 'has-individual-borders': (0,external_wp_components_namespaceObject.__experimentalHasSplitBorders)(attributes?.style?.border)
}),
- style: {
- ...colorProps.style,
- ...borderProps.style
- }
- }, renderedSections), !isEmpty && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- identifier: "caption",
- tagName: "figcaption",
- className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Table caption text'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Add caption'),
- value: caption,
- onChange: value => setAttributes({
- caption: value
- })
- // Deselect the selected table cell when the caption is focused.
- ,
- onFocus: () => setSelectedCell(),
- __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)()))
- }), isEmpty && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- label: (0,external_wp_i18n_namespaceObject.__)('Table'),
- icon: (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
- icon: block_table,
- showColors: true
- }),
- instructions: (0,external_wp_i18n_namespaceObject.__)('Insert a table for sharing data.')
- }, (0,external_React_namespaceObject.createElement)("form", {
- className: "blocks-table__placeholder-form",
- onSubmit: onCreateTable
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- type: "number",
- label: (0,external_wp_i18n_namespaceObject.__)('Column count'),
- value: initialColumnCount,
- onChange: onChangeInitialColumnCount,
- min: "1",
- className: "blocks-table__placeholder-input"
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- type: "number",
- label: (0,external_wp_i18n_namespaceObject.__)('Row count'),
- value: initialRowCount,
- onChange: onChangeInitialRowCount,
- min: "1",
- className: "blocks-table__placeholder-input"
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- variant: "primary",
- type: "submit"
- }, (0,external_wp_i18n_namespaceObject.__)('Create Table')))));
+ children: [!isEmpty && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Change column alignment'),
+ alignmentControls: ALIGNMENT_CONTROLS,
+ value: getCellAlignment(),
+ onChange: nextAlign => onChangeColumnAlignment(nextAlign)
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "other",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarDropdownMenu, {
+ hasArrowIndicator: true,
+ icon: library_table,
+ label: (0,external_wp_i18n_namespaceObject.__)('Edit table'),
+ controls: tableControls
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ className: "blocks-table-settings",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Fixed width table cells'),
+ checked: !!hasFixedLayout,
+ onChange: onChangeFixedLayout
+ }), !isEmpty && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Header section'),
+ checked: !!(head && head.length),
+ onChange: onToggleHeaderSection
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Footer section'),
+ checked: !!(foot && foot.length),
+ onChange: onToggleFooterSection
+ })]
+ })]
+ })
+ }), !isEmpty && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("table", {
+ className: dist_clsx(colorProps.className, borderProps.className, {
+ 'has-fixed-layout': hasFixedLayout,
+ // This is required in the editor only to overcome
+ // the fact the editor rewrites individual border
+ // widths into a shorthand format.
+ 'has-individual-borders': (0,external_wp_components_namespaceObject.__experimentalHasSplitBorders)(attributes?.style?.border)
+ }),
+ style: {
+ ...colorProps.style,
+ ...borderProps.style
+ },
+ children: renderedSections
+ }), !isEmpty && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ identifier: "caption",
+ tagName: "figcaption",
+ className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Table caption text'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Add caption'),
+ value: caption,
+ onChange: value => setAttributes({
+ caption: value
+ })
+ // Deselect the selected table cell when the caption is focused.
+ ,
+ onFocus: () => setSelectedCell(),
+ __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)()))
+ }), isEmpty && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Table'),
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ icon: block_table,
+ showColors: true
+ }),
+ instructions: (0,external_wp_i18n_namespaceObject.__)('Insert a table for sharing data.'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("form", {
+ className: "blocks-table__placeholder-form",
+ onSubmit: onCreateTable,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ type: "number",
+ label: (0,external_wp_i18n_namespaceObject.__)('Column count'),
+ value: initialColumnCount,
+ onChange: onChangeInitialColumnCount,
+ min: "1",
+ className: "blocks-table__placeholder-input"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ type: "number",
+ label: (0,external_wp_i18n_namespaceObject.__)('Row count'),
+ value: initialRowCount,
+ onChange: onChangeInitialRowCount,
+ min: "1",
+ className: "blocks-table__placeholder-input"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "primary",
+ type: "submit",
+ children: (0,external_wp_i18n_namespaceObject.__)('Create Table')
+ })]
+ })
+ })]
+ });
}
/* harmony default export */ const table_edit = (TableEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/save.js
-
/**
* External dependencies
*/
@@ -56066,6 +58296,8 @@ function TableEdit({
* WordPress dependencies
*/
+
+
function table_save_save({
attributes
}) {
@@ -56082,7 +58314,7 @@ function table_save_save({
}
const colorProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetColorClassesAndStyles)(attributes);
const borderProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetBorderClassesAndStyles)(attributes);
- const classes = classnames_default()(colorProps.className, borderProps.className, {
+ const classes = dist_clsx(colorProps.className, borderProps.className, {
'has-fixed-layout': hasFixedLayout
});
const hasCaption = !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption);
@@ -56094,55 +58326,58 @@ function table_save_save({
return null;
}
const Tag = `t${type}`;
- return (0,external_React_namespaceObject.createElement)(Tag, null, rows.map(({
- cells
- }, rowIndex) => (0,external_React_namespaceObject.createElement)("tr", {
- key: rowIndex
- }, cells.map(({
- content,
- tag,
- scope,
- align,
- colspan,
- rowspan
- }, cellIndex) => {
- const cellClasses = classnames_default()({
- [`has-text-align-${align}`]: align
- });
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- className: cellClasses ? cellClasses : undefined,
- "data-align": align,
- tagName: tag,
- value: content,
- key: cellIndex,
- scope: tag === 'th' ? scope : undefined,
- colSpan: colspan,
- rowSpan: rowspan
- });
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
+ children: rows.map(({
+ cells
+ }, rowIndex) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("tr", {
+ children: cells.map(({
+ content,
+ tag,
+ scope,
+ align,
+ colspan,
+ rowspan
+ }, cellIndex) => {
+ const cellClasses = dist_clsx({
+ [`has-text-align-${align}`]: align
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ className: cellClasses ? cellClasses : undefined,
+ "data-align": align,
+ tagName: tag,
+ value: content,
+ scope: tag === 'th' ? scope : undefined,
+ colSpan: colspan,
+ rowSpan: rowspan
+ }, cellIndex);
+ })
+ }, rowIndex))
+ });
};
- return (0,external_React_namespaceObject.createElement)("figure", {
- ...external_wp_blockEditor_namespaceObject.useBlockProps.save()
- }, (0,external_React_namespaceObject.createElement)("table", {
- className: classes === '' ? undefined : classes,
- style: {
- ...colorProps.style,
- ...borderProps.style
- }
- }, (0,external_React_namespaceObject.createElement)(Section, {
- type: "head",
- rows: head
- }), (0,external_React_namespaceObject.createElement)(Section, {
- type: "body",
- rows: body
- }), (0,external_React_namespaceObject.createElement)(Section, {
- type: "foot",
- rows: foot
- })), hasCaption && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- value: caption,
- className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption')
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save(),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("table", {
+ className: classes === '' ? undefined : classes,
+ style: {
+ ...colorProps.style,
+ ...borderProps.style
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Section, {
+ type: "head",
+ rows: head
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Section, {
+ type: "body",
+ rows: body
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Section, {
+ type: "foot",
+ rows: foot
+ })]
+ }), hasCaption && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ value: caption,
+ className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption')
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/utils.js
@@ -56274,7 +58509,7 @@ const table_metadata = {
attributes: {
hasFixedLayout: {
type: "boolean",
- "default": false
+ "default": true
},
caption: {
type: "rich-text",
@@ -56547,25 +58782,29 @@ const table_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table-of-contents.js
-
/**
* WordPress dependencies
*/
-const tableOfContents = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const tableOfContents = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M20 9.484h-8.889v-1.5H20v1.5Zm0 7h-4.889v-1.5H20v1.5Zm-14 .032a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"
-}), (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M13 15.516a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 8.484a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M20 9.484h-8.889v-1.5H20v1.5Zm0 7h-4.889v-1.5H20v1.5Zm-14 .032a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13 15.516a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 8.484a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"
+ })]
+});
/* harmony default export */ const table_of_contents = (tableOfContents);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table-of-contents/list.js
+
+
/**
* External dependencies
*/
@@ -56580,27 +58819,33 @@ function TableOfContentsList({
disableLinkActivation,
onClick
}) {
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, nestedHeadingList.map((node, index) => {
- const {
- content,
- link
- } = node.heading;
- const entry = link ? (0,external_React_namespaceObject.createElement)("a", {
- className: ENTRY_CLASS_NAME,
- href: link,
- "aria-disabled": disableLinkActivation || undefined,
- onClick: disableLinkActivation && 'function' === typeof onClick ? onClick : undefined
- }, content) : (0,external_React_namespaceObject.createElement)("span", {
- className: ENTRY_CLASS_NAME
- }, content);
- return (0,external_React_namespaceObject.createElement)("li", {
- key: index
- }, entry, node.children ? (0,external_React_namespaceObject.createElement)("ol", null, (0,external_React_namespaceObject.createElement)(TableOfContentsList, {
- nestedHeadingList: node.children,
- disableLinkActivation: disableLinkActivation,
- onClick: disableLinkActivation && 'function' === typeof onClick ? onClick : undefined
- })) : null);
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: nestedHeadingList.map((node, index) => {
+ const {
+ content,
+ link
+ } = node.heading;
+ const entry = link ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ className: ENTRY_CLASS_NAME,
+ href: link,
+ "aria-disabled": disableLinkActivation || undefined,
+ onClick: disableLinkActivation && 'function' === typeof onClick ? onClick : undefined,
+ children: content
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: ENTRY_CLASS_NAME,
+ children: content
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ children: [entry, node.children ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ol", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TableOfContentsList, {
+ nestedHeadingList: node.children,
+ disableLinkActivation: disableLinkActivation,
+ onClick: disableLinkActivation && 'function' === typeof onClick ? onClick : undefined
+ })
+ }) : null]
+ }, index);
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table-of-contents/utils.js
@@ -56796,7 +59041,6 @@ function useObserveHeadings(clientId) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table-of-contents/edit.js
-
/**
* WordPress dependencies
*/
@@ -56831,6 +59075,9 @@ function useObserveHeadings(clientId) {
*
* @return {Component} The component.
*/
+
+
+
function TableOfContentsEdit({
attributes: {
headings = [],
@@ -56871,51 +59118,66 @@ function TableOfContentsEdit({
replaceBlocks
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
const headingTree = linearToNestedHeadingList(headings);
- const toolbarControls = canInsertList && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- onClick: () => replaceBlocks(clientId, (0,external_wp_blocks_namespaceObject.createBlock)('core/list', {
- ordered: true,
- values: (0,external_wp_element_namespaceObject.renderToString)((0,external_React_namespaceObject.createElement)(TableOfContentsList, {
- nestedHeadingList: headingTree
- }))
- }))
- }, (0,external_wp_i18n_namespaceObject.__)('Convert to static list'))));
- const inspectorControls = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Only include current page'),
- checked: onlyIncludeCurrentPage,
- onChange: value => setAttributes({
- onlyIncludeCurrentPage: value
- }),
- help: onlyIncludeCurrentPage ? (0,external_wp_i18n_namespaceObject.__)('Only including headings from the current page (if the post is paginated).') : (0,external_wp_i18n_namespaceObject.__)('Toggle to only include headings from the current page (if the post is paginated).')
- })));
+ const toolbarControls = canInsertList && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ onClick: () => replaceBlocks(clientId, (0,external_wp_blocks_namespaceObject.createBlock)('core/list', {
+ ordered: true,
+ values: (0,external_wp_element_namespaceObject.renderToString)( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TableOfContentsList, {
+ nestedHeadingList: headingTree
+ }))
+ })),
+ children: (0,external_wp_i18n_namespaceObject.__)('Convert to static list')
+ })
+ })
+ });
+ const inspectorControls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Only include current page'),
+ checked: onlyIncludeCurrentPage,
+ onChange: value => setAttributes({
+ onlyIncludeCurrentPage: value
+ }),
+ help: onlyIncludeCurrentPage ? (0,external_wp_i18n_namespaceObject.__)('Only including headings from the current page (if the post is paginated).') : (0,external_wp_i18n_namespaceObject.__)('Toggle to only include headings from the current page (if the post is paginated).')
+ })
+ })
+ });
// If there are no headings or the only heading is empty.
// Note that the toolbar controls are intentionally omitted since the
// "Convert to static list" option is useless to the placeholder state.
if (headings.length === 0) {
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- icon: (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
- icon: table_of_contents
- }),
- label: (0,external_wp_i18n_namespaceObject.__)('Table of Contents'),
- instructions: (0,external_wp_i18n_namespaceObject.__)('Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.')
- })), inspectorControls);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ icon: table_of_contents
+ }),
+ label: (0,external_wp_i18n_namespaceObject.__)('Table of Contents'),
+ instructions: (0,external_wp_i18n_namespaceObject.__)('Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.')
+ })
+ }), inspectorControls]
+ });
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("nav", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)("ol", null, (0,external_React_namespaceObject.createElement)(TableOfContentsList, {
- nestedHeadingList: headingTree,
- disableLinkActivation: true,
- onClick: showRedirectionPreventedNotice
- }))), toolbarControls, inspectorControls);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("nav", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ol", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TableOfContentsList, {
+ nestedHeadingList: headingTree,
+ disableLinkActivation: true,
+ onClick: showRedirectionPreventedNotice
+ })
+ })
+ }), toolbarControls, inspectorControls]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table-of-contents/save.js
-
/**
* WordPress dependencies
*/
@@ -56926,6 +59188,7 @@ function TableOfContentsEdit({
*/
+
function table_of_contents_save_save({
attributes: {
headings = []
@@ -56934,11 +59197,14 @@ function table_of_contents_save_save({
if (headings.length === 0) {
return null;
}
- return (0,external_React_namespaceObject.createElement)("nav", {
- ...external_wp_blockEditor_namespaceObject.useBlockProps.save()
- }, (0,external_React_namespaceObject.createElement)("ol", null, (0,external_React_namespaceObject.createElement)(TableOfContentsList, {
- nestedHeadingList: linearToNestedHeadingList(headings)
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("nav", {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save(),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ol", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TableOfContentsList, {
+ nestedHeadingList: linearToNestedHeadingList(headings)
+ })
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table-of-contents/index.js
@@ -57042,7 +59308,6 @@ const tag_cloud_transforms_transforms = {
/* harmony default export */ const tag_cloud_transforms = (tag_cloud_transforms_transforms);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/tag-cloud/edit.js
-
/**
* WordPress dependencies
*/
@@ -57058,6 +59323,9 @@ const tag_cloud_transforms_transforms = {
*
* @type {number}
*/
+
+
+
const MIN_TAGS = 1;
/**
@@ -57123,64 +59391,76 @@ function TagCloudEdit({
});
setAttributes(updateObj);
};
- const inspectorControls = (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Taxonomy'),
- options: getTaxonomyOptions(),
- value: taxonomy,
- onChange: selectedTaxonomy => setAttributes({
- taxonomy: selectedTaxonomy
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Show post counts'),
- checked: showTagCounts,
- onChange: () => setAttributes({
- showTagCounts: !showTagCounts
+ const inspectorControls = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Taxonomy'),
+ options: getTaxonomyOptions(),
+ value: taxonomy,
+ onChange: selectedTaxonomy => setAttributes({
+ taxonomy: selectedTaxonomy
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Show post counts'),
+ checked: showTagCounts,
+ onChange: () => setAttributes({
+ showTagCounts: !showTagCounts
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Number of tags'),
+ value: numberOfTags,
+ onChange: value => setAttributes({
+ numberOfTags: value
+ }),
+ min: MIN_TAGS,
+ max: MAX_TAGS,
+ required: true
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ isBlock: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Smallest size'),
+ value: smallestFontSize,
+ onChange: value => {
+ onFontSizeChange('smallestFontSize', value);
+ },
+ units: units,
+ min: MIN_FONT_SIZE,
+ max: MAX_FONT_SIZE
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ isBlock: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Largest size'),
+ value: largestFontSize,
+ onChange: value => {
+ onFontSizeChange('largestFontSize', value);
+ },
+ units: units,
+ min: MIN_FONT_SIZE,
+ max: MAX_FONT_SIZE
+ })
+ })]
+ })]
})
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Number of tags'),
- value: numberOfTags,
- onChange: value => setAttributes({
- numberOfTags: value
- }),
- min: MIN_TAGS,
- max: MAX_TAGS,
- required: true
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Flex, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexItem, {
- isBlock: true
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Smallest size'),
- value: smallestFontSize,
- onChange: value => {
- onFontSizeChange('smallestFontSize', value);
- },
- units: units,
- min: MIN_FONT_SIZE,
- max: MAX_FONT_SIZE
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexItem, {
- isBlock: true
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Largest size'),
- value: largestFontSize,
- onChange: value => {
- onFontSizeChange('largestFontSize', value);
- },
- units: units,
- min: MIN_FONT_SIZE,
- max: MAX_FONT_SIZE
- })))));
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, inspectorControls, (0,external_React_namespaceObject.createElement)("div", {
- ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)()
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Disabled, null, (0,external_React_namespaceObject.createElement)((external_wp_serverSideRender_default()), {
- skipBlockSupportAttributes: true,
- block: "core/tag-cloud",
- attributes: attributes
- }))));
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [inspectorControls, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)(),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Disabled, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)((external_wp_serverSideRender_default()), {
+ skipBlockSupportAttributes: true,
+ block: "core/tag-cloud",
+ attributes: attributes
+ })
+ })
+ })]
+ });
}
/* harmony default export */ const tag_cloud_edit = (TagCloudEdit);
@@ -57747,17 +60027,18 @@ function capitalCase(input, options) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/symbol-filled.js
-
/**
* WordPress dependencies
*/
-const symbolFilled = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const symbolFilled = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
+ })
+});
/* harmony default export */ const symbol_filled = (symbolFilled);
;// CONCATENATED MODULE: ./node_modules/dot-case/dist.es2015/index.js
@@ -57910,13 +60191,14 @@ function useTemplatePartArea(area) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/template-part/edit/title-modal.js
-
/**
* WordPress dependencies
*/
+
+
function TitleModal({
areaLabel,
onClose,
@@ -57929,33 +60211,37 @@ function TitleModal({
event.preventDefault();
onSubmit(title);
};
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
title: (0,external_wp_i18n_namespaceObject.sprintf)(
// Translators: %s as template part area title ("Header", "Footer", etc.).
(0,external_wp_i18n_namespaceObject.__)('Name and create your new %s'), areaLabel.toLowerCase()),
overlayClassName: "wp-block-template-part__placeholder-create-new__title-form",
- onRequestClose: onClose
- }, (0,external_React_namespaceObject.createElement)("form", {
- onSubmit: submitForCreation
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "5"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Name'),
- value: title,
- onChange: setTitle
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- type: "submit",
- disabled: !title.length,
- "aria-disabled": !title.length
- }, (0,external_wp_i18n_namespaceObject.__)('Create'))))));
+ onRequestClose: onClose,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ onSubmit: submitForCreation,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "5",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Name'),
+ value: title,
+ onChange: setTitle
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ type: "submit",
+ __experimentalIsFocusable: true,
+ disabled: !title.length,
+ children: (0,external_wp_i18n_namespaceObject.__)('Create')
+ })
+ })]
+ })
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/template-part/edit/placeholder.js
-
/**
* WordPress dependencies
*/
@@ -57968,6 +60254,8 @@ function TitleModal({
*/
+
+
function TemplatePartPlaceholder({
area,
clientId,
@@ -57983,36 +60271,62 @@ function TemplatePartPlaceholder({
const [showTitleModal, setShowTitleModal] = (0,external_wp_element_namespaceObject.useState)(false);
const areaObject = useTemplatePartArea(area);
const createFromBlocks = useCreateTemplatePartFromBlocks(area, setAttributes);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Placeholder, {
icon: areaObject.icon,
label: areaObject.label,
instructions: (0,external_wp_i18n_namespaceObject.sprintf)(
// Translators: %s as template part area title ("Header", "Footer", etc.).
- (0,external_wp_i18n_namespaceObject.__)('Choose an existing %s or create a new one.'), areaObject.label.toLowerCase())
- }, isResolving && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null), !isResolving && !!(templateParts.length || blockPatterns.length) && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: onOpenSelectionModal
- }, (0,external_wp_i18n_namespaceObject.__)('Choose')), !isResolving && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "secondary",
- onClick: () => {
- setShowTitleModal(true);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Start blank')), showTitleModal && (0,external_React_namespaceObject.createElement)(TitleModal, {
- areaLabel: areaObject.label,
- onClose: () => setShowTitleModal(false),
- onSubmit: title => {
- createFromBlocks([], title);
- }
- }));
+ (0,external_wp_i18n_namespaceObject.__)('Choose an existing %s or create a new one.'), areaObject.label.toLowerCase()),
+ children: [isResolving && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}), !isResolving && !!(templateParts.length || blockPatterns.length) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ onClick: onOpenSelectionModal,
+ children: (0,external_wp_i18n_namespaceObject.__)('Choose')
+ }), !isResolving && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "secondary",
+ onClick: () => {
+ setShowTitleModal(true);
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Start blank')
+ }), showTitleModal && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TitleModal, {
+ areaLabel: areaObject.label,
+ onClose: () => setShowTitleModal(false),
+ onSubmit: title => {
+ createFromBlocks([], title);
+ }
+ })]
+ });
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/template-part/edit/selection-modal.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/template-part/edit/utils/map-template-part-to-block-pattern.js
/**
* WordPress dependencies
*/
+/**
+ * Internal dependencies
+ */
+
+
+/**
+ * This maps the properties of a template part to those of a block pattern.
+ * @param {Object} templatePart
+ * @return {Object} The template part in the shape of block pattern.
+ */
+function mapTemplatePartToBlockPattern(templatePart) {
+ return {
+ name: createTemplatePartId(templatePart.theme, templatePart.slug),
+ title: templatePart.title.rendered,
+ blocks: (0,external_wp_blocks_namespaceObject.parse)(templatePart.content.raw),
+ templatePart
+ };
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/template-part/edit/selection-modal.js
+/**
+ * WordPress dependencies
+ */
+
@@ -58026,6 +60340,8 @@ function TemplatePartPlaceholder({
+
+
function TemplatePartSelectionModal({
setAttributes,
onClose,
@@ -58037,14 +60353,10 @@ function TemplatePartSelectionModal({
const {
templateParts
} = useAlternativeTemplateParts(area, templatePartId);
+
// We can map template parts to block patters to reuse the BlockPatternsList UI
const filteredTemplateParts = (0,external_wp_element_namespaceObject.useMemo)(() => {
- const partsAsPatterns = templateParts.map(templatePart => ({
- name: createTemplatePartId(templatePart.theme, templatePart.slug),
- title: templatePart.title.rendered,
- blocks: (0,external_wp_blocks_namespaceObject.parse)(templatePart.content.raw),
- templatePart
- }));
+ const partsAsPatterns = templateParts.map(templatePart => mapTemplatePartToBlockPattern(templatePart));
return searchPatterns(partsAsPatterns, searchValue);
}, [templateParts, searchValue]);
const shownTemplateParts = (0,external_wp_compose_namespaceObject.useAsyncList)(filteredTemplateParts);
@@ -58052,7 +60364,6 @@ function TemplatePartSelectionModal({
const filteredBlockPatterns = (0,external_wp_element_namespaceObject.useMemo)(() => {
return searchPatterns(blockPatterns, searchValue);
}, [blockPatterns, searchValue]);
- const shownBlockPatterns = (0,external_wp_compose_namespaceObject.useAsyncList)(filteredBlockPatterns);
const {
createSuccessNotice
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
@@ -58068,35 +60379,36 @@ function TemplatePartSelectionModal({
});
onClose();
};
- const createFromBlocks = useCreateTemplatePartFromBlocks(area, setAttributes);
const hasTemplateParts = !!filteredTemplateParts.length;
const hasBlockPatterns = !!filteredBlockPatterns.length;
- return (0,external_React_namespaceObject.createElement)("div", {
- className: "block-library-template-part__selection-content"
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "block-library-template-part__selection-search"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SearchControl, {
- __nextHasNoMarginBottom: true,
- onChange: setSearchValue,
- value: searchValue,
- label: (0,external_wp_i18n_namespaceObject.__)('Search for replacements'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Search')
- })), hasTemplateParts && (0,external_React_namespaceObject.createElement)("div", null, (0,external_React_namespaceObject.createElement)("h2", null, (0,external_wp_i18n_namespaceObject.__)('Existing template parts')), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalBlockPatternsList, {
- blockPatterns: filteredTemplateParts,
- shownPatterns: shownTemplateParts,
- onClickPattern: pattern => {
- onTemplatePartSelect(pattern.templatePart);
- }
- })), hasBlockPatterns && (0,external_React_namespaceObject.createElement)("div", null, (0,external_React_namespaceObject.createElement)("h2", null, (0,external_wp_i18n_namespaceObject.__)('Patterns')), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalBlockPatternsList, {
- blockPatterns: filteredBlockPatterns,
- shownPatterns: shownBlockPatterns,
- onClickPattern: (pattern, blocks) => {
- createFromBlocks(blocks, pattern.title);
- onClose();
- }
- })), !hasTemplateParts && !hasBlockPatterns && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- alignment: "center"
- }, (0,external_React_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('No results found.'))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "block-library-template-part__selection-content",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "block-library-template-part__selection-search",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SearchControl, {
+ __nextHasNoMarginBottom: true,
+ onChange: setSearchValue,
+ value: searchValue,
+ label: (0,external_wp_i18n_namespaceObject.__)('Search for replacements'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Search')
+ })
+ }), hasTemplateParts && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Existing template parts')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalBlockPatternsList, {
+ blockPatterns: filteredTemplateParts,
+ shownPatterns: shownTemplateParts,
+ onClickPattern: pattern => {
+ onTemplatePartSelect(pattern.templatePart);
+ }
+ })]
+ }), !hasTemplateParts && !hasBlockPatterns && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
+ alignment: "center",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('No results found.')
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/template-part/edit/utils/transformers.js
@@ -58175,7 +60487,6 @@ function transformInnerBlocks(innerBlocks = []) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/template-part/edit/import-controls.js
-
/**
* WordPress dependencies
*/
@@ -58191,6 +60502,8 @@ function transformInnerBlocks(innerBlocks = []) {
*/
+
+
const SIDEBARS_QUERY = {
per_page: -1,
_fields: 'id,name,description,status,widgets'
@@ -58238,7 +60551,7 @@ function TemplatePartImportControls({
// Render an empty node while data is loading to avoid SlotFill re-positioning bug.
// See: https://github.com/WordPress/gutenberg/issues/15641.
if (!hasResolved) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
marginBottom: "0"
});
}
@@ -58284,35 +60597,40 @@ function TemplatePartImportControls({
}
setIsBusy(false);
}
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- marginBottom: "4"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- as: "form",
- onSubmit: createFromWidgets
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexBlock, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Import widget area'),
- value: selectedSidebar,
- options: options,
- onChange: value => setSelectedSidebar(value),
- disabled: !options.length,
- __next40pxDefaultSize: true,
- __nextHasNoMarginBottom: true
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexItem, {
- style: {
- marginBottom: '8px',
- marginTop: 'auto'
- }
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- variant: "primary",
- type: "submit",
- isBusy: isBusy,
- "aria-disabled": isBusy || !selectedSidebar
- }, (0,external_wp_i18n_namespaceObject._x)('Import', 'button label')))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ marginBottom: "4",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ as: "form",
+ onSubmit: createFromWidgets,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexBlock, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Import widget area'),
+ value: selectedSidebar,
+ options: options,
+ onChange: value => setSelectedSidebar(value),
+ disabled: !options.length,
+ __next40pxDefaultSize: true,
+ __nextHasNoMarginBottom: true
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ style: {
+ marginBottom: '8px',
+ marginTop: 'auto'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "primary",
+ type: "submit",
+ isBusy: isBusy,
+ "aria-disabled": isBusy || !selectedSidebar,
+ children: (0,external_wp_i18n_namespaceObject._x)('Import', 'button label')
+ })
+ })]
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/template-part/edit/advanced-controls.js
-
/**
* WordPress dependencies
*/
@@ -58325,6 +60643,9 @@ function TemplatePartImportControls({
* Internal dependencies
*/
+
+
+
const htmlElementMessages = {
header: (0,external_wp_i18n_namespaceObject.__)('The <header> element should represent introductory content, typically a group of introductory or navigational aids.'),
main: (0,external_wp_i18n_namespaceObject.__)('The <main> element should be used for the primary content of your document only.'),
@@ -58356,77 +60677,90 @@ function TemplatePartAdvancedControls({
label,
value: _area
}));
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, isEntityAvailable && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Title'),
- value: title,
- onChange: value => {
- setTitle(value);
- },
- onFocus: event => event.target.select()
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Area'),
- labelPosition: "top",
- options: areaOptions,
- value: area,
- onChange: setArea
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('HTML element'),
- options: [{
- label: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: HTML tag based on area. */
- (0,external_wp_i18n_namespaceObject.__)('Default based on area (%s)'), `<${defaultWrapper}>`),
- value: ''
- }, {
- label: '<header>',
- value: 'header'
- }, {
- label: '<main>',
- value: 'main'
- }, {
- label: '<section>',
- value: 'section'
- }, {
- label: '<article>',
- value: 'article'
- }, {
- label: '<aside>',
- value: 'aside'
- }, {
- label: '<footer>',
- value: 'footer'
- }, {
- label: '<div>',
- value: 'div'
- }],
- value: tagName || '',
- onChange: value => setAttributes({
- tagName: value
- }),
- help: htmlElementMessages[tagName]
- }), !hasInnerBlocks && (0,external_React_namespaceObject.createElement)(TemplatePartImportControls, {
- area: area,
- setAttributes: setAttributes
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [isEntityAvailable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Title'),
+ value: title,
+ onChange: value => {
+ setTitle(value);
+ },
+ onFocus: event => event.target.select()
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Area'),
+ labelPosition: "top",
+ options: areaOptions,
+ value: area,
+ onChange: setArea
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('HTML element'),
+ options: [{
+ label: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: HTML tag based on area. */
+ (0,external_wp_i18n_namespaceObject.__)('Default based on area (%s)'), `<${defaultWrapper}>`),
+ value: ''
+ }, {
+ label: '<header>',
+ value: 'header'
+ }, {
+ label: '<main>',
+ value: 'main'
+ }, {
+ label: '<section>',
+ value: 'section'
+ }, {
+ label: '<article>',
+ value: 'article'
+ }, {
+ label: '<aside>',
+ value: 'aside'
+ }, {
+ label: '<footer>',
+ value: 'footer'
+ }, {
+ label: '<div>',
+ value: 'div'
+ }],
+ value: tagName || '',
+ onChange: value => setAttributes({
+ tagName: value
+ }),
+ help: htmlElementMessages[tagName]
+ }), !hasInnerBlocks && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplatePartImportControls, {
+ area: area,
+ setAttributes: setAttributes
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/template-part/edit/inner-blocks.js
-
/**
* WordPress dependencies
*/
-function TemplatePartInnerBlocks({
- postId: id,
- hasInnerBlocks,
- layout,
- tagName: TagName,
- blockProps
-}) {
+
+
+
+function useRenderAppender(hasInnerBlocks) {
+ const blockEditingMode = (0,external_wp_blockEditor_namespaceObject.useBlockEditingMode)();
+ // Disable appending when the editing mode is 'contentOnly'. This is so that the user can't
+ // append into a template part when editing a page in the site editor. See
+ // DisableNonPageContentBlocks. Ideally instead of (mis)using editing mode there would be a
+ // block editor API for achieving this.
+ if (blockEditingMode === 'contentOnly') {
+ return false;
+ }
+ if (!hasInnerBlocks) {
+ return external_wp_blockEditor_namespaceObject.InnerBlocks.ButtonBlockAppender;
+ }
+}
+function useLayout(layout) {
const themeSupportsLayout = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getSettings
@@ -58434,7 +60768,65 @@ function TemplatePartInnerBlocks({
return getSettings()?.supportsLayout;
}, []);
const [defaultLayout] = (0,external_wp_blockEditor_namespaceObject.useSettings)('layout');
- const usedLayout = layout?.inherit ? defaultLayout || {} : layout;
+ if (themeSupportsLayout) {
+ return layout?.inherit ? defaultLayout || {} : layout;
+ }
+}
+function NonEditableTemplatePartPreview({
+ postId: id,
+ layout,
+ tagName: TagName,
+ blockProps
+}) {
+ (0,external_wp_blockEditor_namespaceObject.useBlockEditingMode)('disabled');
+ const {
+ content,
+ editedBlocks
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ if (!id) {
+ return {};
+ }
+ const {
+ getEditedEntityRecord
+ } = select(external_wp_coreData_namespaceObject.store);
+ const editedRecord = getEditedEntityRecord('postType', 'wp_template_part', id, {
+ context: 'view'
+ });
+ return {
+ editedBlocks: editedRecord.blocks,
+ content: editedRecord.content
+ };
+ }, [id]);
+ const blocks = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ if (!id) {
+ return undefined;
+ }
+ if (editedBlocks) {
+ return editedBlocks;
+ }
+ if (!content || typeof content !== 'string') {
+ return [];
+ }
+ return (0,external_wp_blocks_namespaceObject.parse)(content);
+ }, [id, editedBlocks, content]);
+ const innerBlocksProps = (0,external_wp_blockEditor_namespaceObject.useInnerBlocksProps)(blockProps, {
+ value: blocks,
+ onInput: () => {},
+ onChange: () => {},
+ renderAppender: false,
+ layout: useLayout(layout)
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...innerBlocksProps
+ });
+}
+function EditableTemplatePartInnerBlocks({
+ postId: id,
+ hasInnerBlocks,
+ layout,
+ tagName: TagName,
+ blockProps
+}) {
const [blocks, onInput, onChange] = (0,external_wp_coreData_namespaceObject.useEntityBlockEditor)('postType', 'wp_template_part', {
id
});
@@ -58442,16 +60834,44 @@ function TemplatePartInnerBlocks({
value: blocks,
onInput,
onChange,
- renderAppender: hasInnerBlocks ? undefined : external_wp_blockEditor_namespaceObject.InnerBlocks.ButtonBlockAppender,
- layout: themeSupportsLayout ? usedLayout : undefined
+ renderAppender: useRenderAppender(hasInnerBlocks),
+ layout: useLayout(layout)
});
- return (0,external_React_namespaceObject.createElement)(TagName, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
...innerBlocksProps
});
}
+function TemplatePartInnerBlocks({
+ postId: id,
+ hasInnerBlocks,
+ layout,
+ tagName: TagName,
+ blockProps
+}) {
+ const {
+ canViewTemplatePart,
+ canEditTemplatePart
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ var _select$canUser, _select$canUser2;
+ return {
+ canViewTemplatePart: (_select$canUser = select(external_wp_coreData_namespaceObject.store).canUser('read', 'templates')) !== null && _select$canUser !== void 0 ? _select$canUser : false,
+ canEditTemplatePart: (_select$canUser2 = select(external_wp_coreData_namespaceObject.store).canUser('create', 'templates')) !== null && _select$canUser2 !== void 0 ? _select$canUser2 : false
+ };
+ }, []);
+ if (!canViewTemplatePart) {
+ return null;
+ }
+ const TemplatePartInnerBlocksComponent = canEditTemplatePart ? EditableTemplatePartInnerBlocks : NonEditableTemplatePartPreview;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplatePartInnerBlocksComponent, {
+ postId: id,
+ hasInnerBlocks: hasInnerBlocks,
+ layout: layout,
+ tagName: TagName,
+ blockProps: blockProps
+ });
+}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/template-part/edit/index.js
-
/**
* WordPress dependencies
*/
@@ -58462,6 +60882,9 @@ function TemplatePartInnerBlocks({
+
+
+
/**
* Internal dependencies
*/
@@ -58471,36 +60894,71 @@ function TemplatePartInnerBlocks({
+
+
+
function ReplaceButton({
isEntityAvailable,
area,
- clientId,
templatePartId,
isTemplatePartSelectionOpen,
setIsTemplatePartSelectionOpen
}) {
+ // This hook fetches patterns, so don't run it unconditionally in the main
+ // edit function!
const {
templateParts
} = useAlternativeTemplateParts(area, templatePartId);
- const blockPatterns = useAlternativeBlockPatterns(area, clientId);
- const hasReplacements = !!templateParts.length || !!blockPatterns.length;
+ const hasReplacements = !!templateParts.length;
const canReplace = isEntityAvailable && hasReplacements && (area === 'header' || area === 'footer');
if (!canReplace) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
onClick: () => {
setIsTemplatePartSelectionOpen(true);
},
"aria-expanded": isTemplatePartSelectionOpen,
- "aria-haspopup": "dialog"
- }, (0,external_wp_i18n_namespaceObject.__)('Replace'));
+ "aria-haspopup": "dialog",
+ children: (0,external_wp_i18n_namespaceObject.__)('Replace')
+ });
+}
+function TemplatesList({
+ area,
+ clientId,
+ isEntityAvailable,
+ onSelect
+}) {
+ // This hook fetches patterns, so don't run it unconditionally in the main
+ // edit function!
+ const blockPatterns = useAlternativeBlockPatterns(area, clientId);
+ const canReplace = isEntityAvailable && !!blockPatterns.length && (area === 'header' || area === 'footer');
+ const shownTemplates = (0,external_wp_compose_namespaceObject.useAsyncList)(blockPatterns);
+ if (!canReplace) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Design'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalBlockPatternsList, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Templates'),
+ blockPatterns: blockPatterns,
+ shownPatterns: shownTemplates,
+ onClickPattern: onSelect,
+ showTitle: false
+ })
+ });
}
function TemplatePartEdit({
attributes,
setAttributes,
clientId
}) {
+ const {
+ createSuccessNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ const {
+ editEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
const currentTheme = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getCurrentTheme()?.stylesheet, []);
const {
slug,
@@ -58515,24 +60973,33 @@ function TemplatePartEdit({
isResolved,
hasInnerBlocks,
isMissing,
- area
+ area,
+ onNavigateToEntityRecord,
+ title,
+ canEditTemplate
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ var _select$canUser;
const {
getEditedEntityRecord,
hasFinishedResolution
} = select(external_wp_coreData_namespaceObject.store);
const {
- getBlockCount
+ getBlockCount,
+ getSettings
} = select(external_wp_blockEditor_namespaceObject.store);
const getEntityArgs = ['postType', 'wp_template_part', templatePartId];
const entityRecord = templatePartId ? getEditedEntityRecord(...getEntityArgs) : null;
const _area = entityRecord?.area || attributes.area;
const hasResolvedEntity = templatePartId ? hasFinishedResolution('getEditedEntityRecord', getEntityArgs) : false;
+ const _canEditTemplate = (_select$canUser = select(external_wp_coreData_namespaceObject.store).canUser('create', 'templates')) !== null && _select$canUser !== void 0 ? _select$canUser : false;
return {
hasInnerBlocks: getBlockCount(clientId) > 0,
isResolved: hasResolvedEntity,
isMissing: hasResolvedEntity && (!entityRecord || Object.keys(entityRecord).length === 0),
- area: _area
+ area: _area,
+ onNavigateToEntityRecord: getSettings().onNavigateToEntityRecord,
+ title: entityRecord?.title,
+ canEditTemplate: _canEditTemplate
};
}, [templatePartId, attributes.area, clientId]);
const areaObject = useTemplatePartArea(area);
@@ -58540,120 +61007,164 @@ function TemplatePartEdit({
const isPlaceholder = !slug;
const isEntityAvailable = !isPlaceholder && !isMissing && isResolved;
const TagName = tagName || areaObject.tagName;
+ const onPatternSelect = async pattern => {
+ await editEntityRecord('postType', 'wp_template_part', templatePartId, {
+ blocks: pattern.blocks,
+ content: (0,external_wp_blocks_namespaceObject.serialize)(pattern.blocks)
+ });
+ createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: template part title. */
+ (0,external_wp_i18n_namespaceObject.__)('Template Part "%s" updated.'), title || slug), {
+ type: 'snackbar'
+ });
+ };
// We don't want to render a missing state if we have any inner blocks.
// A new template part is automatically created if we have any inner blocks but no entity.
if (!hasInnerBlocks && (slug && !theme || slug && isMissing)) {
- return (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Template part slug */
- (0,external_wp_i18n_namespaceObject.__)('Template part has been deleted or is unavailable: %s'), slug)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Template part slug */
+ (0,external_wp_i18n_namespaceObject.__)('Template part has been deleted or is unavailable: %s'), slug)
+ })
+ });
}
if (isEntityAvailable && hasAlreadyRendered) {
- return (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_i18n_namespaceObject.__)('Block cannot be rendered inside itself.')));
- }
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RecursionProvider, {
- uniqueId: templatePartId
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, {
- group: "advanced"
- }, (0,external_React_namespaceObject.createElement)(TemplatePartAdvancedControls, {
- tagName: tagName,
- setAttributes: setAttributes,
- isEntityAvailable: isEntityAvailable,
- templatePartId: templatePartId,
- defaultWrapper: areaObject.tagName,
- hasInnerBlocks: hasInnerBlocks
- })), isPlaceholder && (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(TemplatePartPlaceholder, {
- area: attributes.area,
- templatePartId: templatePartId,
- clientId: clientId,
- setAttributes: setAttributes,
- onOpenSelectionModal: () => setIsTemplatePartSelectionOpen(true)
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockSettingsMenuControls, null, ({
- selectedClientIds
- }) => {
- // Only enable for single selection that matches the current block.
- // Ensures menu item doesn't render multiple times.
- if (!(selectedClientIds.length === 1 && clientId === selectedClientIds[0])) {
- return null;
- }
- return (0,external_React_namespaceObject.createElement)(ReplaceButton, {
- isEntityAvailable,
- area,
- clientId,
- templatePartId,
- isTemplatePartSelectionOpen,
- setIsTemplatePartSelectionOpen
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Block cannot be rendered inside itself.')
+ })
});
- }), isEntityAvailable && (0,external_React_namespaceObject.createElement)(TemplatePartInnerBlocks, {
- tagName: TagName,
- blockProps: blockProps,
- postId: templatePartId,
- hasInnerBlocks: hasInnerBlocks,
- layout: layout
- }), !isPlaceholder && !isResolved && (0,external_React_namespaceObject.createElement)(TagName, {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null))), isTemplatePartSelectionOpen && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
- overlayClassName: "block-editor-template-part__selection-modal",
- title: (0,external_wp_i18n_namespaceObject.sprintf)(
- // Translators: %s as template part area title ("Header", "Footer", etc.).
- (0,external_wp_i18n_namespaceObject.__)('Choose a %s'), areaObject.label.toLowerCase()),
- onRequestClose: () => setIsTemplatePartSelectionOpen(false),
- isFullScreen: true
- }, (0,external_React_namespaceObject.createElement)(TemplatePartSelectionModal, {
- templatePartId: templatePartId,
- clientId: clientId,
- area: area,
- setAttributes: setAttributes,
- onClose: () => setIsTemplatePartSelectionOpen(false)
- })));
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.RecursionProvider, {
+ uniqueId: templatePartId,
+ children: [isEntityAvailable && onNavigateToEntityRecord && canEditTemplate && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "other",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ onClick: () => onNavigateToEntityRecord({
+ postId: templatePartId,
+ postType: 'wp_template_part'
+ }),
+ children: (0,external_wp_i18n_namespaceObject.__)('Edit')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "advanced",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplatePartAdvancedControls, {
+ tagName: tagName,
+ setAttributes: setAttributes,
+ isEntityAvailable: isEntityAvailable,
+ templatePartId: templatePartId,
+ defaultWrapper: areaObject.tagName,
+ hasInnerBlocks: hasInnerBlocks
+ })
+ }), isPlaceholder && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplatePartPlaceholder, {
+ area: attributes.area,
+ templatePartId: templatePartId,
+ clientId: clientId,
+ setAttributes: setAttributes,
+ onOpenSelectionModal: () => setIsTemplatePartSelectionOpen(true)
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockSettingsMenuControls, {
+ children: ({
+ selectedClientIds
+ }) => {
+ // Only enable for single selection that matches the current block.
+ // Ensures menu item doesn't render multiple times.
+ if (!(selectedClientIds.length === 1 && clientId === selectedClientIds[0])) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ReplaceButton, {
+ isEntityAvailable,
+ area,
+ clientId,
+ templatePartId,
+ isTemplatePartSelectionOpen,
+ setIsTemplatePartSelectionOpen
+ });
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplatesList, {
+ area: area,
+ clientId: clientId,
+ isEntityAvailable: isEntityAvailable,
+ onSelect: pattern => onPatternSelect(pattern)
+ })
+ }), isEntityAvailable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplatePartInnerBlocks, {
+ tagName: TagName,
+ blockProps: blockProps,
+ postId: templatePartId,
+ hasInnerBlocks: hasInnerBlocks,
+ layout: layout
+ }), !isPlaceholder && !isResolved && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
+ })]
+ }), isTemplatePartSelectionOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ overlayClassName: "block-editor-template-part__selection-modal",
+ title: (0,external_wp_i18n_namespaceObject.sprintf)(
+ // Translators: %s as template part area title ("Header", "Footer", etc.).
+ (0,external_wp_i18n_namespaceObject.__)('Choose a %s'), areaObject.label.toLowerCase()),
+ onRequestClose: () => setIsTemplatePartSelectionOpen(false),
+ isFullScreen: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplatePartSelectionModal, {
+ templatePartId: templatePartId,
+ clientId: clientId,
+ area: area,
+ setAttributes: setAttributes,
+ onClose: () => setIsTemplatePartSelectionOpen(false)
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/header.js
-
/**
* WordPress dependencies
*/
-const header = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const header = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
+ })
+});
/* harmony default export */ const library_header = (header);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/footer.js
-
/**
* WordPress dependencies
*/
-const footer = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const footer = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- d: "M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ d: "M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
+ })
+});
/* harmony default export */ const library_footer = (footer);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/sidebar.js
-
/**
* WordPress dependencies
*/
-const sidebar = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const sidebar = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
+ })
+});
/* harmony default export */ const library_sidebar = (sidebar);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/template-part/variations.js
@@ -58686,10 +61197,14 @@ function enhanceTemplatePartVariations(settings, name) {
} = blockAttributes;
// We first check the `area` block attribute which is set during insertion.
// This property is removed on the creation of a template part.
- if (area) return area === variationAttributes.area;
+ if (area) {
+ return area === variationAttributes.area;
+ }
// Find a matching variation from the created template part
// by checking the entity's `area` property.
- if (!slug) return false;
+ if (!slug) {
+ return false;
+ }
const {
getCurrentTheme,
getEntityRecord
@@ -58828,21 +61343,21 @@ const template_part_init = () => {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/term-description.js
-
/**
* WordPress dependencies
*/
-const term_description_tag = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const term_description_tag = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"
+ })
+});
/* harmony default export */ const term_description = (term_description_tag);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/term-description/edit.js
-
/**
* External dependencies
*/
@@ -58853,6 +61368,9 @@ const term_description_tag = (0,external_React_namespaceObject.createElement)(ex
*/
+
+
+
function TermDescriptionEdit({
attributes,
setAttributes,
@@ -58862,25 +61380,32 @@ function TermDescriptionEdit({
textAlign
} = attributes;
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
}),
style: mergedStyle
});
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "block"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- })), (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-term-description__placeholder"
- }, (0,external_React_namespaceObject.createElement)("span", null, (0,external_wp_i18n_namespaceObject.__)('Term Description')))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "block",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-term-description__placeholder",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Term Description')
+ })
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/term-description/index.js
@@ -58954,7 +61479,6 @@ const term_description_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/text-columns/edit.js
-
/**
* WordPress dependencies
*/
@@ -58962,6 +61486,9 @@ const term_description_init = () => initBlock({
+
+
+
function TextColumnsEdit({
attributes,
setAttributes
@@ -58975,57 +61502,66 @@ function TextColumnsEdit({
since: '5.3',
alternative: 'the Columns block'
});
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockAlignmentToolbar, {
- value: width,
- onChange: nextWidth => setAttributes({
- width: nextWidth
- }),
- controls: ['center', 'wide', 'full']
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
- value: columns,
- onChange: value => setAttributes({
- columns: value
- }),
- min: 2,
- max: 4,
- required: true
- }))), (0,external_React_namespaceObject.createElement)("div", {
- ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: `align${width} columns-${columns}`
- })
- }, Array.from({
- length: columns
- }).map((_, index) => {
- return (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-column",
- key: `column-${index}`
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- tagName: "p",
- value: content?.[index]?.children,
- onChange: nextContent => {
- setAttributes({
- content: [...content.slice(0, index), {
- children: nextContent
- }, ...content.slice(index + 1)]
- });
- },
- "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %d: column index (starting with 1)
- (0,external_wp_i18n_namespaceObject.__)('Column %d text'), index + 1),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('New Column')
- }));
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockAlignmentToolbar, {
+ value: width,
+ onChange: nextWidth => setAttributes({
+ width: nextWidth
+ }),
+ controls: ['center', 'wide', 'full']
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Columns'),
+ value: columns,
+ onChange: value => setAttributes({
+ columns: value
+ }),
+ min: 2,
+ max: 4,
+ required: true
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)({
+ className: `align${width} columns-${columns}`
+ }),
+ children: Array.from({
+ length: columns
+ }).map((_, index) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-column",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ tagName: "p",
+ value: content?.[index]?.children,
+ onChange: nextContent => {
+ setAttributes({
+ content: [...content.slice(0, index), {
+ children: nextContent
+ }, ...content.slice(index + 1)]
+ });
+ },
+ "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %d: column index (starting with 1)
+ (0,external_wp_i18n_namespaceObject.__)('Column %d text'), index + 1),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('New Column')
+ })
+ }, `column-${index}`);
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/text-columns/save.js
-
/**
* WordPress dependencies
*/
+
function text_columns_save_save({
attributes
}) {
@@ -59034,19 +61570,20 @@ function text_columns_save_save({
content,
columns
} = attributes;
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className: `align${width} columns-${columns}`
- })
- }, Array.from({
- length: columns
- }).map((_, index) => (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-column",
- key: `column-${index}`
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "p",
- value: content?.[index]?.children
- }))));
+ }),
+ children: Array.from({
+ length: columns
+ }).map((_, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-block-column",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "p",
+ value: content?.[index]?.children
+ })
+ }, `column-${index}`))
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/text-columns/transforms.js
@@ -59148,22 +61685,7 @@ const text_columns_init = () => initBlock({
settings: text_columns_settings
});
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/verse.js
-
-/**
- * WordPress dependencies
- */
-
-const verse = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
-/* harmony default export */ const library_verse = (verse);
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/deprecated.js
-
/**
* External dependencies
*/
@@ -59178,6 +61700,7 @@ const verse = (0,external_React_namespaceObject.createElement)(external_wp_primi
* Internal dependencies
*/
+
const verse_deprecated_v1 = {
attributes: {
content: {
@@ -59197,7 +61720,7 @@ const verse_deprecated_v1 = {
textAlign,
content
} = attributes;
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
tagName: "pre",
style: {
textAlign
@@ -59241,16 +61764,17 @@ const verse_deprecated_v2 = {
textAlign,
content
} = attributes;
- const className = classnames_default()({
+ const className = dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
});
- return (0,external_React_namespaceObject.createElement)("pre", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("pre", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: content
})
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: content
- }));
+ });
},
migrate: migrate_font_family,
isEligible({
@@ -59271,7 +61795,6 @@ const verse_deprecated_v2 = {
/* harmony default export */ const verse_deprecated = ([verse_deprecated_v2, verse_deprecated_v1]);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/edit.js
-
/**
* External dependencies
*/
@@ -59283,6 +61806,9 @@ const verse_deprecated_v2 = {
+
+
+
function VerseEdit({
attributes,
setAttributes,
@@ -59296,41 +61822,44 @@ function VerseEdit({
content
} = attributes;
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
}),
style
});
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentToolbar, {
- value: textAlign,
- onChange: nextAlign => {
- setAttributes({
- textAlign: nextAlign
- });
- }
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- tagName: "pre",
- identifier: "content",
- preserveWhiteSpace: true,
- value: content,
- onChange: nextContent => {
- setAttributes({
- content: nextContent
- });
- },
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Verse text'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Write verse…'),
- onRemove: onRemove,
- onMerge: mergeBlocks,
- textAlign: textAlign,
- ...blockProps,
- __unstablePastePlainText: true,
- __unstableOnSplitAtDoubleLineEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)()))
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.AlignmentToolbar, {
+ value: textAlign,
+ onChange: nextAlign => {
+ setAttributes({
+ textAlign: nextAlign
+ });
+ }
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ tagName: "pre",
+ identifier: "content",
+ preserveWhiteSpace: true,
+ value: content,
+ onChange: nextContent => {
+ setAttributes({
+ content: nextContent
+ });
+ },
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Verse text'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Write verse…'),
+ onRemove: onRemove,
+ onMerge: mergeBlocks,
+ textAlign: textAlign,
+ ...blockProps,
+ __unstablePastePlainText: true,
+ __unstableOnSplitAtDoubleLineEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)()))
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/save.js
-
/**
* External dependencies
*/
@@ -59340,6 +61869,7 @@ function VerseEdit({
* WordPress dependencies
*/
+
function verse_save_save({
attributes
}) {
@@ -59347,16 +61877,17 @@ function verse_save_save({
textAlign,
content
} = attributes;
- const className = classnames_default()({
+ const className = dist_clsx({
[`has-text-align-${textAlign}`]: textAlign
});
- return (0,external_React_namespaceObject.createElement)("pre", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("pre", {
...external_wp_blockEditor_namespaceObject.useBlockProps.save({
className
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ value: content
})
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- value: content
- }));
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/transforms.js
@@ -59489,17 +62020,18 @@ const verse_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/video.js
-
/**
* WordPress dependencies
*/
-const video = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const video = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
/* harmony default export */ const library_video = (video);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/tracks.js
@@ -59508,15 +62040,13 @@ function Tracks({
tracks = []
}) {
return tracks.map(track => {
- return (0,external_React_namespaceObject.createElement)("track", {
- key: track.src,
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("track", {
...track
- });
+ }, track.src);
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/deprecated.js
-
/**
* WordPress dependencies
*/
@@ -59624,6 +62154,8 @@ const video_deprecated_metadata = {
style: "wp-block-video"
};
+
+
const {
attributes: video_deprecated_blockAttributes
} = video_deprecated_metadata;
@@ -59647,36 +62179,40 @@ const video_deprecated_v1 = {
playsInline,
tracks
} = attributes;
- return (0,external_React_namespaceObject.createElement)("figure", {
- ...external_wp_blockEditor_namespaceObject.useBlockProps.save()
- }, src && (0,external_React_namespaceObject.createElement)("video", {
- autoPlay: autoplay,
- controls: controls,
- loop: loop,
- muted: muted,
- poster: poster,
- preload: preload !== 'metadata' ? preload : undefined,
- src: src,
- playsInline: playsInline
- }, (0,external_React_namespaceObject.createElement)(Tracks, {
- tracks: tracks
- })), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "figcaption",
- value: caption
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save(),
+ children: [src && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
+ autoPlay: autoplay,
+ controls: controls,
+ loop: loop,
+ muted: muted,
+ poster: poster,
+ preload: preload !== 'metadata' ? preload : undefined,
+ src: src,
+ playsInline: playsInline,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tracks, {
+ tracks: tracks
+ })
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "figcaption",
+ value: caption
+ })]
+ });
}
};
const video_deprecated_deprecated = [video_deprecated_v1];
/* harmony default export */ const video_deprecated = (video_deprecated_deprecated);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/edit-common-settings.js
-
/**
* WordPress dependencies
*/
+
+
+
const options = [{
value: 'auto',
label: (0,external_wp_i18n_namespaceObject.__)('Auto')
@@ -59727,45 +62263,48 @@ const VideoSettings = ({
preload: value
});
}, []);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Autoplay'),
- onChange: toggleFactory.autoplay,
- checked: !!autoplay,
- help: getAutoplayHelp
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Loop'),
- onChange: toggleFactory.loop,
- checked: !!loop
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Muted'),
- onChange: toggleFactory.muted,
- checked: !!muted
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Playback controls'),
- onChange: toggleFactory.controls,
- checked: !!controls
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Play inline'),
- onChange: toggleFactory.playsInline,
- checked: !!playsInline
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Preload'),
- value: preload,
- onChange: onChangePreload,
- options: options,
- hideCancelButton: true
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Autoplay'),
+ onChange: toggleFactory.autoplay,
+ checked: !!autoplay,
+ help: getAutoplayHelp
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Loop'),
+ onChange: toggleFactory.loop,
+ checked: !!loop
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Muted'),
+ onChange: toggleFactory.muted,
+ checked: !!muted
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Playback controls'),
+ onChange: toggleFactory.controls,
+ checked: !!controls
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true
+ /* translators: Setting to play videos within the webpage on mobile browsers rather than opening in a fullscreen player. */,
+ label: (0,external_wp_i18n_namespaceObject.__)('Play inline'),
+ onChange: toggleFactory.playsInline,
+ checked: !!playsInline,
+ help: (0,external_wp_i18n_namespaceObject.__)('When enabled, videos will play directly within the webpage on mobile browsers, instead of opening in a fullscreen player.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Preload'),
+ value: preload,
+ onChange: onChangePreload,
+ options: options,
+ hideCancelButton: true
+ })]
+ });
};
/* harmony default export */ const edit_common_settings = (VideoSettings);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/tracks-editor.js
-
/**
* WordPress dependencies
*/
@@ -59776,6 +62315,9 @@ const VideoSettings = ({
+
+
+
const ALLOWED_TYPES = ['text/vtt'];
const DEFAULT_KIND = 'subtitles';
const KIND_OPTIONS = [{
@@ -59800,26 +62342,31 @@ function TrackList({
}) {
let content;
if (tracks.length === 0) {
- content = (0,external_React_namespaceObject.createElement)("p", {
- className: "block-library-video-tracks-editor__tracks-informative-message"
- }, (0,external_wp_i18n_namespaceObject.__)('Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.'));
+ content = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "block-library-video-tracks-editor__tracks-informative-message",
+ children: (0,external_wp_i18n_namespaceObject.__)('Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.')
+ });
} else {
content = tracks.map((track, index) => {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- key: index,
- className: "block-library-video-tracks-editor__track-list-track"
- }, (0,external_React_namespaceObject.createElement)("span", null, track.label, " "), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: () => onEditPress(index),
- "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Label of the video text track e.g: "French subtitles" */
- (0,external_wp_i18n_namespaceObject.__)('Edit %s'), track.label)
- }, (0,external_wp_i18n_namespaceObject.__)('Edit')));
- });
- }
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ className: "block-library-video-tracks-editor__track-list-track",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
+ children: [track.label, " "]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: () => onEditPress(index),
+ "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Label of the video text track e.g: "French subtitles" */
+ (0,external_wp_i18n_namespaceObject.__)('Edit %s'), track.label),
+ children: (0,external_wp_i18n_namespaceObject.__)('Edit')
+ })]
+ }, index);
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
label: (0,external_wp_i18n_namespaceObject.__)('Text tracks'),
- className: "block-library-video-tracks-editor__track-list"
- }, content);
+ className: "block-library-video-tracks-editor__track-list",
+ children: content
+ });
}
function SingleTrackEditor({
track,
@@ -59834,81 +62381,94 @@ function SingleTrackEditor({
kind = DEFAULT_KIND
} = track;
const fileName = src.startsWith('blob:') ? '' : (0,external_wp_url_namespaceObject.getFilename)(src) || '';
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.NavigableMenu, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- className: "block-library-video-tracks-editor__single-track-editor",
- spacing: "4"
- }, (0,external_React_namespaceObject.createElement)("span", {
- className: "block-library-video-tracks-editor__single-track-editor-edit-track-label"
- }, (0,external_wp_i18n_namespaceObject.__)('Edit track')), (0,external_React_namespaceObject.createElement)("span", null, (0,external_wp_i18n_namespaceObject.__)('File'), ": ", (0,external_React_namespaceObject.createElement)("b", null, fileName)), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalGrid, {
- columns: 2,
- gap: 4
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true
- /* eslint-disable jsx-a11y/no-autofocus */,
- autoFocus: true
- /* eslint-enable jsx-a11y/no-autofocus */,
- onChange: newLabel => onChange({
- ...track,
- label: newLabel
- }),
- label: (0,external_wp_i18n_namespaceObject.__)('Label'),
- value: label,
- help: (0,external_wp_i18n_namespaceObject.__)('Title of track')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- onChange: newSrcLang => onChange({
- ...track,
- srcLang: newSrcLang
- }),
- label: (0,external_wp_i18n_namespaceObject.__)('Source language'),
- value: srcLang,
- help: (0,external_wp_i18n_namespaceObject.__)('Language tag (en, fr, etc.)')
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "8"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- className: "block-library-video-tracks-editor__single-track-editor-kind-select",
- options: KIND_OPTIONS,
- value: kind,
- label: (0,external_wp_i18n_namespaceObject.__)('Kind'),
- onChange: newKind => {
- onChange({
- ...track,
- kind: newKind
- });
- }
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- className: "block-library-video-tracks-editor__single-track-editor-buttons-container"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "secondary",
- onClick: () => {
- const changes = {};
- let hasChanges = false;
- if (label === '') {
- changes.label = (0,external_wp_i18n_namespaceObject.__)('English');
- hasChanges = true;
- }
- if (srcLang === '') {
- changes.srcLang = 'en';
- hasChanges = true;
- }
- if (track.kind === undefined) {
- changes.kind = DEFAULT_KIND;
- hasChanges = true;
- }
- if (hasChanges) {
- onChange({
- ...track,
- ...changes
- });
- }
- onClose();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Close')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- isDestructive: true,
- variant: "link",
- onClick: onRemove
- }, (0,external_wp_i18n_namespaceObject.__)('Remove track'))))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.NavigableMenu, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ className: "block-library-video-tracks-editor__single-track-editor",
+ spacing: "4",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-library-video-tracks-editor__single-track-editor-edit-track-label",
+ children: (0,external_wp_i18n_namespaceObject.__)('Edit track')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
+ children: [(0,external_wp_i18n_namespaceObject.__)('File'), ": ", /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("b", {
+ children: fileName
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalGrid, {
+ columns: 2,
+ gap: 4,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true
+ /* eslint-disable jsx-a11y/no-autofocus */,
+ autoFocus: true
+ /* eslint-enable jsx-a11y/no-autofocus */,
+ onChange: newLabel => onChange({
+ ...track,
+ label: newLabel
+ }),
+ label: (0,external_wp_i18n_namespaceObject.__)('Label'),
+ value: label,
+ help: (0,external_wp_i18n_namespaceObject.__)('Title of track')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ onChange: newSrcLang => onChange({
+ ...track,
+ srcLang: newSrcLang
+ }),
+ label: (0,external_wp_i18n_namespaceObject.__)('Source language'),
+ value: srcLang,
+ help: (0,external_wp_i18n_namespaceObject.__)('Language tag (en, fr, etc.)')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "8",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __nextHasNoMarginBottom: true,
+ className: "block-library-video-tracks-editor__single-track-editor-kind-select",
+ options: KIND_OPTIONS,
+ value: kind,
+ label: (0,external_wp_i18n_namespaceObject.__)('Kind'),
+ onChange: newKind => {
+ onChange({
+ ...track,
+ kind: newKind
+ });
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ className: "block-library-video-tracks-editor__single-track-editor-buttons-container",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "secondary",
+ onClick: () => {
+ const changes = {};
+ let hasChanges = false;
+ if (label === '') {
+ changes.label = (0,external_wp_i18n_namespaceObject.__)('English');
+ hasChanges = true;
+ }
+ if (srcLang === '') {
+ changes.srcLang = 'en';
+ hasChanges = true;
+ }
+ if (track.kind === undefined) {
+ changes.kind = DEFAULT_KIND;
+ hasChanges = true;
+ }
+ if (hasChanges) {
+ onChange({
+ ...track,
+ ...changes
+ });
+ }
+ onClose();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Close')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ isDestructive: true,
+ variant: "link",
+ onClick: onRemove,
+ children: (0,external_wp_i18n_namespaceObject.__)('Remove track')
+ })]
+ })]
+ })]
+ })
+ });
}
function TracksEditor({
tracks = [],
@@ -59921,21 +62481,24 @@ function TracksEditor({
if (!mediaUpload) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Dropdown, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
contentClassName: "block-library-video-tracks-editor",
renderToggle: ({
isOpen,
onToggle
- }) => (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- label: (0,external_wp_i18n_namespaceObject.__)('Text tracks'),
- showTooltip: true,
- "aria-expanded": isOpen,
- "aria-haspopup": "true",
- onClick: onToggle
- }, (0,external_wp_i18n_namespaceObject.__)('Text tracks'))),
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Text tracks'),
+ showTooltip: true,
+ "aria-expanded": isOpen,
+ "aria-haspopup": "true",
+ onClick: onToggle,
+ children: (0,external_wp_i18n_namespaceObject.__)('Text tracks')
+ })
+ }),
renderContent: () => {
if (trackBeingEdited !== null) {
- return (0,external_React_namespaceObject.createElement)(SingleTrackEditor, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SingleTrackEditor, {
track: tracks[trackBeingEdited],
onChange: newTrack => {
const newTracks = [...tracks];
@@ -59949,70 +62512,78 @@ function TracksEditor({
}
});
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.NavigableMenu, null, (0,external_React_namespaceObject.createElement)(TrackList, {
- tracks: tracks,
- onEditPress: setTrackBeingEdited
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- className: "block-library-video-tracks-editor__add-tracks-container",
- label: (0,external_wp_i18n_namespaceObject.__)('Add tracks')
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaUpload, {
- onSelect: ({
- url
- }) => {
- const trackIndex = tracks.length;
- onChange([...tracks, {
- src: url
- }]);
- setTrackBeingEdited(trackIndex);
- },
- allowedTypes: ALLOWED_TYPES,
- render: ({
- open
- }) => (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- icon: library_media,
- onClick: open
- }, (0,external_wp_i18n_namespaceObject.__)('Open Media Library'))
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaUploadCheck, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FormFileUpload, {
- onChange: event => {
- const files = event.target.files;
- const trackIndex = tracks.length;
- mediaUpload({
- allowedTypes: ALLOWED_TYPES,
- filesList: files,
- onFileChange: ([{
- url
- }]) => {
- const newTracks = [...tracks];
- if (!newTracks[trackIndex]) {
- newTracks[trackIndex] = {};
- }
- newTracks[trackIndex] = {
- ...tracks[trackIndex],
- src: url
- };
- onChange(newTracks);
- setTrackBeingEdited(trackIndex);
- }
- });
- },
- accept: ".vtt,text/vtt",
- render: ({
- openFileDialog
- }) => {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- icon: library_upload,
- onClick: () => {
- openFileDialog();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Upload'));
- }
- })))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.NavigableMenu, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TrackList, {
+ tracks: tracks,
+ onEditPress: setTrackBeingEdited
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ className: "block-library-video-tracks-editor__add-tracks-container",
+ label: (0,external_wp_i18n_namespaceObject.__)('Add tracks'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaUpload, {
+ onSelect: ({
+ url
+ }) => {
+ const trackIndex = tracks.length;
+ onChange([...tracks, {
+ src: url
+ }]);
+ setTrackBeingEdited(trackIndex);
+ },
+ allowedTypes: ALLOWED_TYPES,
+ render: ({
+ open
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: library_media,
+ onClick: open,
+ children: (0,external_wp_i18n_namespaceObject.__)('Open Media Library')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaUploadCheck, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FormFileUpload, {
+ onChange: event => {
+ const files = event.target.files;
+ const trackIndex = tracks.length;
+ mediaUpload({
+ allowedTypes: ALLOWED_TYPES,
+ filesList: files,
+ onFileChange: ([{
+ url
+ }]) => {
+ const newTracks = [...tracks];
+ if (!newTracks[trackIndex]) {
+ newTracks[trackIndex] = {};
+ }
+ newTracks[trackIndex] = {
+ ...tracks[trackIndex],
+ src: url
+ };
+ onChange(newTracks);
+ setTrackBeingEdited(trackIndex);
+ }
+ });
+ },
+ accept: ".vtt,text/vtt",
+ render: ({
+ openFileDialog
+ }) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: library_upload,
+ onClick: () => {
+ openFileDialog();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Upload')
+ });
+ }
+ })
+ })]
+ })]
+ })
+ });
}
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/edit.js
-
/**
* External dependencies
*/
@@ -60040,15 +62611,20 @@ function TracksEditor({
+
// Much of this description is duplicated from MediaPlaceholder.
+
+
+
const video_edit_placeholder = content => {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
className: "block-editor-media-placeholder",
withIllustration: true,
icon: library_video,
label: (0,external_wp_i18n_namespaceObject.__)('Video'),
- instructions: (0,external_wp_i18n_namespaceObject.__)('Upload a video file, pick one from your media library, or add one with a URL.')
- }, content);
+ instructions: (0,external_wp_i18n_namespaceObject.__)('Upload a video file, pick one from your media library, or add one with a URL.'),
+ children: content
+ });
};
const video_edit_ALLOWED_MEDIA_TYPES = ['video'];
const VIDEO_POSTER_ALLOWED_MEDIA_TYPES = ['image'];
@@ -60071,22 +62647,12 @@ function VideoEdit({
tracks
} = attributes;
const isTemporaryVideo = !id && (0,external_wp_blob_namespaceObject.isBlobURL)(src);
- const {
- getSettings
- } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!id && (0,external_wp_blob_namespaceObject.isBlobURL)(src)) {
- const file = (0,external_wp_blob_namespaceObject.getBlobByURL)(src);
- if (file) {
- getSettings().mediaUpload({
- filesList: [file],
- onFileChange: ([media]) => onSelectVideo(media),
- onError: onUploadError,
- allowedTypes: video_edit_ALLOWED_MEDIA_TYPES
- });
- }
- }
- }, []);
+ useUploadMediaFromBlobURL({
+ url: src,
+ allowedTypes: video_edit_ALLOWED_MEDIA_TYPES,
+ onChange: onSelectVideo,
+ onError: onUploadError
+ });
(0,external_wp_element_namespaceObject.useEffect)(() => {
// Placeholder may be rendered.
if (videoPlayer.current) {
@@ -60143,27 +62709,28 @@ function VideoEdit({
type: 'snackbar'
});
}
- const classes = classnames_default()(className, {
+ const classes = dist_clsx(className, {
'is-transient': isTemporaryVideo
});
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
className: classes
});
if (!src) {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
- icon: (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
- icon: library_video
- }),
- onSelect: onSelectVideo,
- onSelectURL: onSelectURL,
- accept: "video/*",
- allowedTypes: video_edit_ALLOWED_MEDIA_TYPES,
- value: attributes,
- onError: onUploadError,
- placeholder: video_edit_placeholder
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ icon: library_video
+ }),
+ onSelect: onSelectVideo,
+ onSelectURL: onSelectURL,
+ accept: "video/*",
+ allowedTypes: video_edit_ALLOWED_MEDIA_TYPES,
+ value: attributes,
+ onError: onUploadError,
+ placeholder: video_edit_placeholder
+ })
+ });
}
function onSelectPoster(image) {
setAttributes({
@@ -60179,73 +62746,93 @@ function VideoEdit({
posterImageButton.current.focus();
}
const videoPosterDescription = `video-block__poster-image-description-${instanceId}`;
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, isSingleSelected && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(TracksEditor, {
- tracks: tracks,
- onChange: newTracks => {
- setAttributes({
- tracks: newTracks
- });
- }
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "other"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, {
- mediaId: id,
- mediaURL: src,
- allowedTypes: video_edit_ALLOWED_MEDIA_TYPES,
- accept: "video/*",
- onSelect: onSelectVideo,
- onSelectURL: onSelectURL,
- onError: onUploadError
- }))), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Settings')
- }, (0,external_React_namespaceObject.createElement)(edit_common_settings, {
- setAttributes: setAttributes,
- attributes: attributes
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaUploadCheck, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.BaseControl, {
- className: "editor-video-poster-control"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.BaseControl.VisualLabel, null, (0,external_wp_i18n_namespaceObject.__)('Poster image')), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaUpload, {
- title: (0,external_wp_i18n_namespaceObject.__)('Select poster image'),
- onSelect: onSelectPoster,
- allowedTypes: VIDEO_POSTER_ALLOWED_MEDIA_TYPES,
- render: ({
- open
- }) => (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: open,
- ref: posterImageButton,
- "aria-describedby": videoPosterDescription
- }, !poster ? (0,external_wp_i18n_namespaceObject.__)('Select') : (0,external_wp_i18n_namespaceObject.__)('Replace'))
- }), (0,external_React_namespaceObject.createElement)("p", {
- id: videoPosterDescription,
- hidden: true
- }, poster ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: poster image URL. */
- (0,external_wp_i18n_namespaceObject.__)('The current poster image url is %s'), poster) : (0,external_wp_i18n_namespaceObject.__)('There is no poster image currently selected')), !!poster && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- onClick: onRemovePoster,
- variant: "tertiary"
- }, (0,external_wp_i18n_namespaceObject.__)('Remove')))))), (0,external_React_namespaceObject.createElement)("figure", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Disabled, {
- isDisabled: !isSingleSelected
- }, (0,external_React_namespaceObject.createElement)("video", {
- controls: controls,
- poster: poster,
- src: src,
- ref: videoPlayer
- }, (0,external_React_namespaceObject.createElement)(Tracks, {
- tracks: tracks
- }))), isTemporaryVideo && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null), (0,external_React_namespaceObject.createElement)(Caption, {
- attributes: attributes,
- setAttributes: setAttributes,
- isSelected: isSingleSelected,
- insertBlocksAfter: insertBlocksAfter,
- label: (0,external_wp_i18n_namespaceObject.__)('Video caption text'),
- showToolbarButton: isSingleSelected
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [isSingleSelected && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TracksEditor, {
+ tracks: tracks,
+ onChange: newTracks => {
+ setAttributes({
+ tracks: newTracks
+ });
+ }
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "other",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, {
+ mediaId: id,
+ mediaURL: src,
+ allowedTypes: video_edit_ALLOWED_MEDIA_TYPES,
+ accept: "video/*",
+ onSelect: onSelectVideo,
+ onSelectURL: onSelectURL,
+ onError: onUploadError
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(edit_common_settings, {
+ setAttributes: setAttributes,
+ attributes: attributes
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaUploadCheck, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.BaseControl, {
+ className: "editor-video-poster-control",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Poster image')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaUpload, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Select poster image'),
+ onSelect: onSelectPoster,
+ allowedTypes: VIDEO_POSTER_ALLOWED_MEDIA_TYPES,
+ render: ({
+ open
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ onClick: open,
+ ref: posterImageButton,
+ "aria-describedby": videoPosterDescription,
+ children: !poster ? (0,external_wp_i18n_namespaceObject.__)('Select') : (0,external_wp_i18n_namespaceObject.__)('Replace')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ id: videoPosterDescription,
+ hidden: true,
+ children: poster ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: poster image URL. */
+ (0,external_wp_i18n_namespaceObject.__)('The current poster image url is %s'), poster) : (0,external_wp_i18n_namespaceObject.__)('There is no poster image currently selected')
+ }), !!poster && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ onClick: onRemovePoster,
+ variant: "tertiary",
+ children: (0,external_wp_i18n_namespaceObject.__)('Remove')
+ })]
+ })
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ ...blockProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Disabled, {
+ isDisabled: !isSingleSelected,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
+ controls: controls,
+ poster: poster,
+ src: src,
+ ref: videoPlayer,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tracks, {
+ tracks: tracks
+ })
+ })
+ }), isTemporaryVideo && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Caption, {
+ attributes: attributes,
+ setAttributes: setAttributes,
+ isSelected: isSingleSelected,
+ insertBlocksAfter: insertBlocksAfter,
+ label: (0,external_wp_i18n_namespaceObject.__)('Video caption text'),
+ showToolbarButton: isSingleSelected
+ })]
+ })]
+ });
}
/* harmony default export */ const video_edit = (VideoEdit);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/save.js
-
/**
* WordPress dependencies
*/
@@ -60255,6 +62842,8 @@ function VideoEdit({
* Internal dependencies
*/
+
+
function video_save_save({
attributes
}) {
@@ -60270,24 +62859,26 @@ function video_save_save({
playsInline,
tracks
} = attributes;
- return (0,external_React_namespaceObject.createElement)("figure", {
- ...external_wp_blockEditor_namespaceObject.useBlockProps.save()
- }, src && (0,external_React_namespaceObject.createElement)("video", {
- autoPlay: autoplay,
- controls: controls,
- loop: loop,
- muted: muted,
- poster: poster,
- preload: preload !== 'metadata' ? preload : undefined,
- src: src,
- playsInline: playsInline
- }, (0,external_React_namespaceObject.createElement)(Tracks, {
- tracks: tracks
- })), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
- tagName: "figcaption",
- value: caption
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("figure", {
+ ...external_wp_blockEditor_namespaceObject.useBlockProps.save(),
+ children: [src && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
+ autoPlay: autoplay,
+ controls: controls,
+ loop: loop,
+ muted: muted,
+ poster: poster,
+ preload: preload !== 'metadata' ? preload : undefined,
+ src: src,
+ playsInline: playsInline,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tracks, {
+ tracks: tracks
+ })
+ }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
+ tagName: "figcaption",
+ value: caption
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/transforms.js
@@ -60531,7 +63122,6 @@ const video_init = () => initBlock({
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/footnotes/edit.js
-
/**
* WordPress dependencies
*/
@@ -60540,6 +63130,8 @@ const video_init = () => initBlock({
+
+
function FootnotesEdit({
context: {
postType,
@@ -60551,71 +63143,77 @@ function FootnotesEdit({
const footnotes = meta?.footnotes ? JSON.parse(meta.footnotes) : [];
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)();
if (!footnotesSupported) {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- icon: (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
- icon: format_list_numbered
- }),
- label: (0,external_wp_i18n_namespaceObject.__)('Footnotes'),
- instructions: (0,external_wp_i18n_namespaceObject.__)('Footnotes are not supported here. Add this block to post or page content.')
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ icon: format_list_numbered
+ }),
+ label: (0,external_wp_i18n_namespaceObject.__)('Footnotes'),
+ instructions: (0,external_wp_i18n_namespaceObject.__)('Footnotes are not supported here. Add this block to post or page content.')
+ })
+ });
}
if (!footnotes.length) {
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- icon: (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
- icon: format_list_numbered
- }),
- label: (0,external_wp_i18n_namespaceObject.__)('Footnotes'),
- instructions: (0,external_wp_i18n_namespaceObject.__)('Footnotes found in blocks within this document will be displayed here.')
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ icon: format_list_numbered
+ }),
+ label: (0,external_wp_i18n_namespaceObject.__)('Footnotes'),
+ instructions: (0,external_wp_i18n_namespaceObject.__)('Footnotes found in blocks within this document will be displayed here.')
+ })
+ });
}
- return (0,external_React_namespaceObject.createElement)("ol", {
- ...blockProps
- }, footnotes.map(({
- id,
- content
- }) => /* eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions */
- (0,external_React_namespaceObject.createElement)("li", {
- key: id,
- onMouseDown: event => {
- // When clicking on the list item (not on descendants),
- // focus the rich text element since it's only 1px wide when
- // empty.
- if (event.target === event.currentTarget) {
- event.target.firstElementChild.focus();
- event.preventDefault();
- }
- }
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- id: id,
- tagName: "span",
- value: content,
- identifier: id
- // To do: figure out why the browser is not scrolling
- // into view when it receives focus.
- ,
- onFocus: event => {
- if (!event.target.textContent.trim()) {
- event.target.scrollIntoView();
- }
- },
- onChange: nextFootnote => {
- updateMeta({
- ...meta,
- footnotes: JSON.stringify(footnotes.map(footnote => {
- return footnote.id === id ? {
- content: nextFootnote,
- id
- } : footnote;
- }))
- });
- }
- }), ' ', (0,external_React_namespaceObject.createElement)("a", {
- href: `#${id}-link`
- }, "\u21A9\uFE0E"))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ol", {
+ ...blockProps,
+ children: footnotes.map(({
+ id,
+ content
+ }) =>
+ /*#__PURE__*/
+ /* eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions */
+ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ onMouseDown: event => {
+ // When clicking on the list item (not on descendants),
+ // focus the rich text element since it's only 1px wide when
+ // empty.
+ if (event.target === event.currentTarget) {
+ event.target.firstElementChild.focus();
+ event.preventDefault();
+ }
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ id: id,
+ tagName: "span",
+ value: content,
+ identifier: id
+ // To do: figure out why the browser is not scrolling
+ // into view when it receives focus.
+ ,
+ onFocus: event => {
+ if (!event.target.textContent.trim()) {
+ event.target.scrollIntoView();
+ }
+ },
+ onChange: nextFootnote => {
+ updateMeta({
+ ...meta,
+ footnotes: JSON.stringify(footnotes.map(footnote => {
+ return footnote.id === id ? {
+ content: nextFootnote,
+ id
+ } : footnote;
+ }))
+ });
+ }
+ }), ' ', /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: `#${id}-link`,
+ children: "\u21A9\uFE0E"
+ })]
+ }, id))
+ });
}
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
@@ -60707,7 +63305,6 @@ function v4_v4(options, buf, offset) {
/* harmony default export */ const esm_browser_v4 = (v4_v4);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/footnotes/format.js
-
/**
* External dependencies
*/
@@ -60728,6 +63325,7 @@ function v4_v4(options, buf, offset) {
* Internal dependencies
*/
+
const {
usesContextKey
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
@@ -60847,7 +63445,7 @@ const format = {
selectionChange(fnBlock.clientId, id, 0, 0);
});
}
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
icon: format_list_numbered,
title: (0,external_wp_i18n_namespaceObject.__)('Footnote'),
onClick: onClick,
@@ -60953,6 +63551,112 @@ const footnotes_init = () => {
// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/utils/is-block-metadata-experimental.js
var is_block_metadata_experimental = __webpack_require__(2321);
var is_block_metadata_experimental_default = /*#__PURE__*/__webpack_require__.n(is_block_metadata_experimental);
+;// CONCATENATED MODULE: external ["wp","keyboardShortcuts"]
+const external_wp_keyboardShortcuts_namespaceObject = window["wp"]["keyboardShortcuts"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block-keyboard-shortcuts/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+function BlockKeyboardShortcuts() {
+ const {
+ registerShortcut
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_keyboardShortcuts_namespaceObject.store);
+ const {
+ replaceBlocks
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
+ const {
+ getBlockName,
+ getSelectedBlockClientId,
+ getBlockAttributes
+ } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
+ const handleTransformHeadingAndParagraph = (event, level) => {
+ event.preventDefault();
+ const currentClientId = getSelectedBlockClientId();
+ if (currentClientId === null) {
+ return;
+ }
+ const blockName = getBlockName(currentClientId);
+ const isParagraph = blockName === 'core/paragraph';
+ const isHeading = blockName === 'core/heading';
+ if (!isParagraph && !isHeading) {
+ return;
+ }
+ const destinationBlockName = level === 0 ? 'core/paragraph' : 'core/heading';
+ const attributes = getBlockAttributes(currentClientId);
+
+ // Avoid unnecessary block transform when attempting to transform to
+ // the same block type and/or same level.
+ if (isParagraph && level === 0 || isHeading && attributes.level === level) {
+ return;
+ }
+ const textAlign = blockName === 'core/paragraph' ? 'align' : 'textAlign';
+ const destinationTextAlign = destinationBlockName === 'core/paragraph' ? 'align' : 'textAlign';
+ replaceBlocks(currentClientId, (0,external_wp_blocks_namespaceObject.createBlock)(destinationBlockName, {
+ level,
+ content: attributes.content,
+ ...{
+ [destinationTextAlign]: attributes[textAlign]
+ }
+ }));
+ };
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ registerShortcut({
+ name: 'core/block-editor/transform-heading-to-paragraph',
+ category: 'block-library',
+ description: (0,external_wp_i18n_namespaceObject.__)('Transform heading to paragraph.'),
+ keyCombination: {
+ modifier: 'access',
+ character: '0'
+ },
+ aliases: [{
+ modifier: 'access',
+ character: '7'
+ }]
+ });
+ [1, 2, 3, 4, 5, 6].forEach(level => {
+ registerShortcut({
+ name: `core/block-editor/transform-paragraph-to-heading-${level}`,
+ category: 'block-library',
+ description: (0,external_wp_i18n_namespaceObject.__)('Transform paragraph to heading.'),
+ keyCombination: {
+ modifier: 'access',
+ character: `${level}`
+ }
+ });
+ });
+ }, []);
+ (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/block-editor/transform-heading-to-paragraph', event => handleTransformHeadingAndParagraph(event, 0));
+ [1, 2, 3, 4, 5, 6].forEach(level => {
+ //the loop is based off on a constant therefore
+ //the hook will execute the same way every time
+ //eslint-disable-next-line react-hooks/rules-of-hooks
+ (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)(`core/block-editor/transform-paragraph-to-heading-${level}`, event => handleTransformHeadingAndParagraph(event, level));
+ });
+ return null;
+}
+/* harmony default export */ const block_keyboard_shortcuts = (BlockKeyboardShortcuts);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/private-apis.js
+/**
+ * Internal dependencies
+ */
+
+
+
+/**
+ * @private
+ */
+const privateApis = {};
+lock(privateApis, {
+ BlockKeyboardShortcuts: block_keyboard_shortcuts
+});
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/index.js
/**
* WordPress dependencies
@@ -61158,6 +63862,7 @@ const registerCoreBlocks = (blocks = __experimentalGetCoreBlocks()) => {
*/
const __experimentalRegisterExperimentalCoreBlocks = false ? 0 : undefined;
+
})();
(window.wp = window.wp || {}).blockLibrary = __webpack_exports__;
diff --git a/wp-includes/js/dist/block-library.min.js b/wp-includes/js/dist/block-library.min.js
index 9be35f9..73727de 100644
--- a/wp-includes/js/dist/block-library.min.js
+++ b/wp-includes/js/dist/block-library.min.js
@@ -1,14 +1,4 @@
/*! This file is auto-generated */
-(()=>{var e={2321:e=>{e.exports=function(e){return e&&"__experimental"in e&&!1!==e.__experimental}},1668:(e,t)=>{var n;
-/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/!function(){"use strict";var a=function(){function e(){}function t(e,t){for(var n=t.length,a=0;a<n;++a)o(e,t[a])}e.prototype=Object.create(null);var n={}.hasOwnProperty;var a=/\s+/;function o(e,o){if(o){var r=typeof o;"string"===r?function(e,t){for(var n=t.split(a),o=n.length,r=0;r<o;++r)e[n[r]]=!0}(e,o):Array.isArray(o)?t(e,o):"object"===r?function(e,t){if(t.toString===Object.prototype.toString||t.toString.toString().includes("[native code]"))for(var a in t)n.call(t,a)&&(e[a]=!!t[a]);else e[t.toString()]=!0}(e,o):"number"===r&&function(e,t){e[t]=!0}(e,o)}}return function(){for(var n=arguments.length,a=Array(n),o=0;o<n;o++)a[o]=arguments[o];var r=new e;t(r,a);var l=[];for(var i in r)r[i]&&l.push(i);return l.join(" ")}}();e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},5755:(e,t)=>{var n;
-/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/!function(){"use strict";var a={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var l=o.apply(null,n);l&&e.push(l)}}else if("object"===r){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var i in n)a.call(n,i)&&n[i]&&e.push(i)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},7734:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var a,o,r;if(Array.isArray(t)){if((a=t.length)!=n.length)return!1;for(o=a;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((a=t.length)!=n.length)return!1;for(o=a;0!=o--;)if(t[o]!==n[o])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((a=(r=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=a;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,r[o]))return!1;for(o=a;0!=o--;){var l=r[o];if(!e(t[l],n[l]))return!1}return!0}return t!=t&&n!=n}},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),a=new RegExp(n,"g"),o=new RegExp(n,"");function r(e){return t[e]}var l=function(e){return e.replace(a,r)};e.exports=l,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=l}},t={};function n(a){var o=t[a];if(void 0!==o)return o.exports;var r=t[a]={exports:{}};return e[a](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{"use strict";n.r(a),n.d(a,{__experimentalGetCoreBlocks:()=>iB,__experimentalRegisterExperimentalCoreBlocks:()=>cB,registerCoreBlocks:()=>sB});var e={};n.r(e),n.d(e,{init:()=>st,metadata:()=>rt,name:()=>lt,settings:()=>it});var t={};n.r(t),n.d(t,{init:()=>Bt,metadata:()=>Et,name:()=>Ct,settings:()=>St});var o={};n.r(o),n.d(o,{init:()=>an,metadata:()=>en,name:()=>tn,settings:()=>nn});var r={};n.r(r),n.d(r,{init:()=>Tn,metadata:()=>Sn,name:()=>Bn,settings:()=>Nn});var l={};n.r(l),n.d(l,{init:()=>Gn,metadata:()=>Vn,name:()=>$n,settings:()=>On});var i={};n.r(i),n.d(i,{init:()=>Kn,metadata:()=>Wn,name:()=>Zn,settings:()=>Qn});var s={};n.r(s),n.d(s,{init:()=>aa,metadata:()=>ea,name:()=>ta,settings:()=>na});var c={};n.r(c),n.d(c,{init:()=>ha,metadata:()=>pa,name:()=>da,settings:()=>ga});var m={};n.r(m),n.d(m,{init:()=>Ea,metadata:()=>ka,name:()=>xa,settings:()=>wa});var u={};n.r(u),n.d(u,{init:()=>Ma,metadata:()=>Ta,name:()=>Ia,settings:()=>Pa});var p={};n.r(p),n.d(p,{init:()=>Qa,metadata:()=>ja,name:()=>Wa,settings:()=>Za});var d={};n.r(d),n.d(d,{init:()=>io,metadata:()=>oo,name:()=>ro,settings:()=>lo});var g={};n.r(g),n.d(g,{init:()=>uo,metadata:()=>so,name:()=>co,settings:()=>mo});var h={};n.r(h),n.d(h,{init:()=>vo,metadata:()=>bo,name:()=>_o,settings:()=>yo});var b={};n.r(b),n.d(b,{init:()=>Eo,metadata:()=>ko,name:()=>xo,settings:()=>wo});var _={};n.r(_),n.d(_,{init:()=>Mo,metadata:()=>To,name:()=>Io,settings:()=>Po});var y={};n.r(y),n.d(y,{init:()=>Lo,metadata:()=>Ro,name:()=>Ao,settings:()=>Ho});var v={};n.r(v),n.d(v,{init:()=>Go,metadata:()=>Vo,name:()=>$o,settings:()=>Oo});var f={};n.r(f),n.d(f,{init:()=>tr,metadata:()=>Jo,name:()=>Xo,settings:()=>er});var k={};n.r(k),n.d(k,{init:()=>ir,metadata:()=>or,name:()=>rr,settings:()=>lr});var x={};n.r(x),n.d(x,{init:()=>gr,metadata:()=>ur,name:()=>pr,settings:()=>dr});var w={};n.r(w),n.d(w,{init:()=>fr,metadata:()=>_r,name:()=>yr,settings:()=>vr});var E={};n.r(E),n.d(E,{init:()=>Sr,metadata:()=>wr,name:()=>Er,settings:()=>Cr});var C={};n.r(C),n.d(C,{init:()=>Rr,metadata:()=>Pr,name:()=>Mr,settings:()=>zr});var S={};n.r(S),n.d(S,{init:()=>Ii,metadata:()=>Bi,name:()=>Ni,settings:()=>Ti});var B={};n.r(B),n.d(B,{init:()=>Li,metadata:()=>Ri,name:()=>Ai,settings:()=>Hi});var N={};n.r(N),n.d(N,{init:()=>Ss,metadata:()=>ws,name:()=>Es,settings:()=>Cs});var T={};n.r(T),n.d(T,{init:()=>Gs,metadata:()=>Vs,name:()=>$s,settings:()=>Os});var I={};n.r(I),n.d(I,{init:()=>ec,metadata:()=>Ys,name:()=>Js,settings:()=>Xs});var P={};n.r(P),n.d(P,{init:()=>pc,metadata:()=>cc,name:()=>mc,settings:()=>uc});var M={};n.r(M),n.d(M,{init:()=>vc,metadata:()=>bc,name:()=>_c,settings:()=>yc});var z={};n.r(z),n.d(z,{init:()=>Nc,metadata:()=>Cc,name:()=>Sc,settings:()=>Bc});var R={};n.r(R),n.d(R,{init:()=>Om,metadata:()=>Fm,name:()=>Vm,settings:()=>$m});var A={};n.r(A),n.d(A,{init:()=>ru,metadata:()=>nu,name:()=>au,settings:()=>ou});var H={};n.r(H),n.d(H,{init:()=>Nu,metadata:()=>Cu,name:()=>Su,settings:()=>Bu});var L={};n.r(L),n.d(L,{init:()=>Ru,metadata:()=>Pu,name:()=>Mu,settings:()=>zu});var D={};n.r(D),n.d(D,{init:()=>Gu,metadata:()=>Vu,name:()=>$u,settings:()=>Ou});var F={};n.r(F),n.d(F,{init:()=>fp,metadata:()=>_p,name:()=>yp,settings:()=>vp});var V={};n.r(V),n.d(V,{init:()=>Cp,metadata:()=>xp,name:()=>wp,settings:()=>Ep});var $={};n.r($),n.d($,{init:()=>Ap,metadata:()=>Mp,name:()=>zp,settings:()=>Rp});var O={};n.r(O),n.d(O,{init:()=>id,metadata:()=>od,name:()=>rd,settings:()=>ld});var G={};n.r(G),n.d(G,{init:()=>kd,metadata:()=>yd,name:()=>vd,settings:()=>fd});var U={};n.r(U),n.d(U,{init:()=>Sd,metadata:()=>wd,name:()=>Ed,settings:()=>Cd});var q={};n.r(q),n.d(q,{init:()=>pg,metadata:()=>cg,name:()=>mg,settings:()=>ug});var j={};n.r(j),n.d(j,{init:()=>yg,metadata:()=>hg,name:()=>bg,settings:()=>_g});var W={};n.r(W),n.d(W,{init:()=>Cg,metadata:()=>xg,name:()=>wg,settings:()=>Eg});var Z={};n.r(Z),n.d(Z,{init:()=>tb,metadata:()=>Jh,name:()=>Xh,settings:()=>eb});var Q={};n.r(Q),n.d(Q,{init:()=>gb,metadata:()=>ub,name:()=>pb,settings:()=>db});var K={};n.r(K),n.d(K,{init:()=>Eb,metadata:()=>kb,name:()=>xb,settings:()=>wb});var Y={};n.r(Y),n.d(Y,{init:()=>Ib,metadata:()=>Bb,name:()=>Nb,settings:()=>Tb});var J={};n.r(J),n.d(J,{init:()=>Vb,metadata:()=>Lb,name:()=>Db,settings:()=>Fb});var X={};n.r(X),n.d(X,{init:()=>Jb,metadata:()=>Qb,name:()=>Kb,settings:()=>Yb});var ee={};n.r(ee),n.d(ee,{init:()=>a_,metadata:()=>e_,name:()=>t_,settings:()=>n_});var te={};n.r(te),n.d(te,{init:()=>E_,metadata:()=>k_,name:()=>x_,settings:()=>w_});var ne={};n.r(ne),n.d(ne,{init:()=>P_,metadata:()=>N_,name:()=>T_,settings:()=>I_});var ae={};n.r(ae),n.d(ae,{init:()=>L_,metadata:()=>R_,name:()=>A_,settings:()=>H_});var oe={};n.r(oe),n.d(oe,{init:()=>O_,metadata:()=>F_,name:()=>V_,settings:()=>$_});var re={};n.r(re),n.d(re,{init:()=>Z_,metadata:()=>q_,name:()=>j_,settings:()=>W_});var le={};n.r(le),n.d(le,{init:()=>X_,metadata:()=>K_,name:()=>Y_,settings:()=>J_});var ie={};n.r(ie),n.d(ie,{init:()=>oy,metadata:()=>ty,name:()=>ny,settings:()=>ay});var se={};n.r(se),n.d(se,{init:()=>cy,metadata:()=>ly,name:()=>iy,settings:()=>sy});var ce={};n.r(ce),n.d(ce,{init:()=>fy,metadata:()=>_y,name:()=>yy,settings:()=>vy});var me={};n.r(me),n.d(me,{init:()=>Ty,metadata:()=>Sy,name:()=>By,settings:()=>Ny});var ue={};n.r(ue),n.d(ue,{init:()=>Ay,metadata:()=>My,name:()=>zy,settings:()=>Ry});var pe={};n.r(pe),n.d(pe,{init:()=>Wy,metadata:()=>Uy,name:()=>qy,settings:()=>jy});var de={};n.r(de),n.d(de,{init:()=>tv,metadata:()=>Jy,name:()=>Xy,settings:()=>ev});var ge={};n.r(ge),n.d(ge,{init:()=>sv,metadata:()=>rv,name:()=>lv,settings:()=>iv});var he={};n.r(he),n.d(he,{init:()=>yv,metadata:()=>hv,name:()=>bv,settings:()=>_v});var be={};n.r(be),n.d(be,{init:()=>Cv,metadata:()=>xv,name:()=>wv,settings:()=>Ev});var _e={};n.r(_e),n.d(_e,{init:()=>Pv,metadata:()=>Nv,name:()=>Tv,settings:()=>Iv});var ye={};n.r(ye),n.d(ye,{init:()=>Dv,metadata:()=>Av,name:()=>Hv,settings:()=>Lv});var ve={};n.r(ve),n.d(ve,{init:()=>of,metadata:()=>tf,name:()=>nf,settings:()=>af});var fe={};n.r(fe),n.d(fe,{init:()=>hk,metadata:()=>pk,name:()=>dk,settings:()=>gk});var ke={};n.r(ke),n.d(ke,{init:()=>fk,metadata:()=>_k,name:()=>yk,settings:()=>vk});var xe={};n.r(xe),n.d(xe,{init:()=>Nk,metadata:()=>Ck,name:()=>Sk,settings:()=>Bk});var we={};n.r(we),n.d(we,{init:()=>zk,metadata:()=>Ik,name:()=>Pk,settings:()=>Mk});var Ee={};n.r(Ee),n.d(Ee,{init:()=>Dk,metadata:()=>Ak,name:()=>Hk,settings:()=>Lk});var Ce={};n.r(Ce),n.d(Ce,{init:()=>Gk,metadata:()=>Vk,name:()=>$k,settings:()=>Ok});var Se={};n.r(Se),n.d(Se,{init:()=>Jk,metadata:()=>Qk,name:()=>Kk,settings:()=>Yk});var Be={};n.r(Be),n.d(Be,{init:()=>dx,metadata:()=>mx,name:()=>ux,settings:()=>px});var Ne={};n.r(Ne),n.d(Ne,{init:()=>Ax,metadata:()=>Mx,name:()=>zx,settings:()=>Rx});var Te={};n.r(Te),n.d(Te,{init:()=>Fx,metadata:()=>Hx,name:()=>Lx,settings:()=>Dx});var Ie={};n.r(Ie),n.d(Ie,{init:()=>Ux,metadata:()=>$x,name:()=>Ox,settings:()=>Gx});var Pe={};n.r(Pe),n.d(Pe,{init:()=>aw,metadata:()=>ew,name:()=>tw,settings:()=>nw});var Me={};n.r(Me),n.d(Me,{init:()=>uw,metadata:()=>sw,name:()=>cw,settings:()=>mw});var ze={};n.r(ze),n.d(ze,{init:()=>yw,metadata:()=>hw,name:()=>bw,settings:()=>_w});var Re={};n.r(Re),n.d(Re,{init:()=>Tw,metadata:()=>Sw,name:()=>Bw,settings:()=>Nw});var Ae={};n.r(Ae),n.d(Ae,{init:()=>Hw,metadata:()=>zw,name:()=>Rw,settings:()=>Aw});var He={};n.r(He),n.d(He,{init:()=>qw,metadata:()=>Ow,name:()=>Gw,settings:()=>Uw});var Le={};n.r(Le),n.d(Le,{init:()=>nE,metadata:()=>Xw,name:()=>eE,settings:()=>tE});var De={};n.r(De),n.d(De,{init:()=>uE,metadata:()=>sE,name:()=>cE,settings:()=>mE});var Fe={};n.r(Fe),n.d(Fe,{init:()=>wE,metadata:()=>fE,name:()=>kE,settings:()=>xE});var Ve={};n.r(Ve),n.d(Ve,{init:()=>oC,metadata:()=>tC,name:()=>nC,settings:()=>aC});var $e={};n.r($e),n.d($e,{init:()=>hC,metadata:()=>pC,name:()=>dC,settings:()=>gC});var Oe={};n.r(Oe),n.d(Oe,{init:()=>kC,metadata:()=>yC,name:()=>vC,settings:()=>fC});var Ge={};n.r(Ge),n.d(Ge,{init:()=>XC,metadata:()=>KC,name:()=>YC,settings:()=>JC});var Ue={};n.r(Ue),n.d(Ue,{init:()=>oS,metadata:()=>tS,name:()=>nS,settings:()=>aS});var qe={};n.r(qe),n.d(qe,{init:()=>mS,metadata:()=>iS,name:()=>sS,settings:()=>cS});var je={};n.r(je),n.d(je,{init:()=>fS,metadata:()=>_S,name:()=>yS,settings:()=>vS});var We={};n.r(We),n.d(We,{init:()=>GS,metadata:()=>VS,name:()=>$S,settings:()=>OS});var Ze={};n.r(Ze),n.d(Ze,{init:()=>oB,metadata:()=>tB,name:()=>nB,settings:()=>aB});const Qe=window.wp.blocks,Ke=window.React,Ye=window.wp.primitives,Je=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"}));function Xe(e){if(!e)return;const{metadata:t,settings:n,name:a}=e;return(0,Qe.registerBlockType)({name:a,...t},n)}const et=window.wp.components,tt=window.wp.i18n,nt=window.wp.blockEditor,at=window.wp.serverSideRender;var ot=n.n(at);const rt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/archives",title:"Archives",category:"widgets",description:"Display a date archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showLabel:{type:"boolean",default:!0},showPostCounts:{type:"boolean",default:!1},type:{type:"string",default:"monthly"}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-archives-editor"},{name:lt}=rt,it={icon:Je,example:{},edit:function({attributes:e,setAttributes:t}){const{showLabel:n,showPostCounts:a,displayAsDropdown:o,type:r}=e;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display as dropdown"),checked:o,onChange:()=>t({displayAsDropdown:!o})}),o&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show label"),checked:n,onChange:()=>t({showLabel:!n})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show post counts"),checked:a,onChange:()=>t({showPostCounts:!a})}),(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Group by:"),options:[{label:(0,tt.__)("Year"),value:"yearly"},{label:(0,tt.__)("Month"),value:"monthly"},{label:(0,tt.__)("Week"),value:"weekly"},{label:(0,tt.__)("Day"),value:"daily"}],value:r,onChange:e=>t({type:e})}))),(0,Ke.createElement)("div",{...(0,nt.useBlockProps)()},(0,Ke.createElement)(et.Disabled,null,(0,Ke.createElement)(ot(),{block:"core/archives",skipBlockSupportAttributes:!0,attributes:e}))))}},st=()=>Xe({name:lt,metadata:rt,settings:it}),ct=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"}));var mt=n(5755),ut=n.n(mt);const pt=window.wp.url,dt=window.wp.coreData,gt=window.wp.data;function ht(e){const t=e?e[0]:24,n=e?e[e.length-1]:96;return{minSize:t,maxSize:Math.floor(2.5*n)}}function bt(){const{avatarURL:e}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store),{__experimentalDiscussionSettings:n}=t();return n}));return e}const _t=window.wp.element,yt={who:"authors",per_page:-1,_fields:"id,name",context:"view"};const vt=function({value:e,onChange:t}){const[n,a]=(0,_t.useState)(),o=(0,gt.useSelect)((e=>{const{getUsers:t}=e(dt.store);return t(yt)}),[]);if(!o)return null;const r=o.map((e=>({label:e.name,value:e.id})));return(0,Ke.createElement)(et.ComboboxControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("User"),help:(0,tt.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:n||r,onFilterValueChange:e=>a(r.filter((t=>t.label.toLowerCase().startsWith(e.toLowerCase()))))})},ft=({setAttributes:e,avatar:t,attributes:n,selectUser:a})=>(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Image size"),onChange:t=>e({size:t}),min:t.minSize,max:t.maxSize,initialPosition:n?.size,value:n?.size}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to user profile"),onChange:()=>e({isLink:!n.isLink}),checked:n.isLink}),n.isLink&&(0,Ke.createElement)(et.ToggleControl,{label:(0,tt.__)("Open in new tab"),onChange:t=>e({linkTarget:t?"_blank":"_self"}),checked:"_blank"===n.linkTarget}),a&&(0,Ke.createElement)(vt,{value:n?.userId,onChange:t=>{e({userId:t})}}))),kt=({setAttributes:e,attributes:t,avatar:n,blockProps:a,isSelected:o})=>{const r=(0,nt.__experimentalUseBorderProps)(t),l=(0,pt.addQueryArgs)((0,pt.removeQueryArgs)(n?.src,["s"]),{s:2*t?.size});return(0,Ke.createElement)("div",{...a},(0,Ke.createElement)(et.ResizableBox,{size:{width:t.size,height:t.size},showHandle:o,onResizeStop:(n,a,o,r)=>{e({size:parseInt(t.size+(r.height||r.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,tt.isRTL)(),bottom:!0,left:(0,tt.isRTL)()},minWidth:n.minSize,maxWidth:n.maxSize},(0,Ke.createElement)("img",{src:l,alt:n.alt,className:ut()("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",r.className),style:r.style})))},xt=({attributes:e,context:t,setAttributes:n,isSelected:a})=>{const{commentId:o}=t,r=(0,nt.useBlockProps)(),l=function({commentId:e}){const[t]=(0,dt.useEntityProp)("root","comment","author_avatar_urls",e),[n]=(0,dt.useEntityProp)("root","comment","author_name",e),a=t?Object.values(t):null,o=t?Object.keys(t):null,{minSize:r,maxSize:l}=ht(o),i=bt();return{src:a?a[a.length-1]:i,minSize:r,maxSize:l,alt:n?(0,tt.sprintf)((0,tt.__)("%s Avatar"),n):(0,tt.__)("Default Avatar")}}({commentId:o});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(ft,{avatar:l,setAttributes:n,attributes:e,selectUser:!1}),e.isLink?(0,Ke.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,Ke.createElement)(kt,{attributes:e,avatar:l,blockProps:r,isSelected:a,setAttributes:n})):(0,Ke.createElement)(kt,{attributes:e,avatar:l,blockProps:r,isSelected:a,setAttributes:n}))},wt=({attributes:e,context:t,setAttributes:n,isSelected:a})=>{const{postId:o,postType:r}=t,l=function({userId:e,postId:t,postType:n}){const{authorDetails:a}=(0,gt.useSelect)((a=>{const{getEditedEntityRecord:o,getUser:r}=a(dt.store);if(e)return{authorDetails:r(e)};const l=o("postType",n,t)?.author;return{authorDetails:l?r(l):null}}),[n,t,e]),o=a?.avatar_urls?Object.values(a.avatar_urls):null,r=a?.avatar_urls?Object.keys(a.avatar_urls):null,{minSize:l,maxSize:i}=ht(r),s=bt();return{src:o?o[o.length-1]:s,minSize:l,maxSize:i,alt:a?(0,tt.sprintf)((0,tt.__)("%s Avatar"),a?.name):(0,tt.__)("Default Avatar")}}({userId:e?.userId,postId:o,postType:r}),i=(0,nt.useBlockProps)();return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(ft,{selectUser:!0,attributes:e,avatar:l,setAttributes:n}),e.isLink?(0,Ke.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,Ke.createElement)(kt,{attributes:e,avatar:l,blockProps:i,isSelected:a,setAttributes:n})):(0,Ke.createElement)(kt,{attributes:e,avatar:l,blockProps:i,isSelected:a,setAttributes:n}))};const Et={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/avatar",title:"Avatar",category:"theme",description:"Add a user’s avatar.",textdomain:"default",attributes:{userId:{type:"number"},size:{type:"number",default:96},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","commentId"],supports:{html:!1,align:!0,alignWide:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{__experimentalSkipSerialization:!0,radius:!0,width:!0,color:!0,style:!0,__experimentalDefaultControls:{radius:!0}},color:{text:!1,background:!1,__experimentalDuotone:"img"},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-avatar img"},editorStyle:"wp-block-avatar-editor",style:"wp-block-avatar"},{name:Ct}=Et,St={icon:ct,edit:function(e){return e?.context?.commentId||null===e?.context?.commentId?(0,Ke.createElement)(xt,{...e}):(0,Ke.createElement)(wt,{...e})}},Bt=()=>Xe({name:Ct,metadata:Et,settings:St}),Nt=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.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"})),Tt=[{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({attributes:e}){const{autoplay:t,caption:n,loop:a,preload:o,src:r}=e;return(0,Ke.createElement)("figure",null,(0,Ke.createElement)("audio",{controls:"controls",src:r,autoPlay:t,loop:a,preload:o}),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:n}))}}],It=window.wp.blob,Pt=window.wp.notices;var Mt=n(1668),zt=n.n(Mt);function Rt(e,t){var n,a,o=0;function r(){var r,l,i=n,s=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(l=0;l<s;l++)if(i.args[l]!==arguments[l]){i=i.next;continue e}return i!==n&&(i===a&&(a=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=n,i.prev=null,n.prev=i,n=i),i.val}i=i.next}for(r=new Array(s),l=0;l<s;l++)r[l]=arguments[l];return i={args:r,val:e.apply(null,r)},n?(n.prev=i,i.next=n):a=i,o===t.maxSize?(a=a.prev).next=null:o++,n=i,i.val}return t=t||{},r.clear=function(){n=null,a=null,o=0},r}const At=[{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"}],Ht="wp-embed",Lt=window.wp.privateApis,{lock:Dt,unlock:Ft}=(0,Lt.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/block-library"),{name:Vt}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},$t=e=>e&&e.includes('class="wp-embedded-content"'),Ot=(e,t={})=>{const{preview:n,attributes:a={}}=e,{url:o,providerNameSlug:r,type:l,...i}=a;if(!o||!(0,Qe.getBlockType)(Vt))return;const s=(e=>(0,Qe.getBlockVariations)(Vt)?.find((({patterns:t})=>((e,t=[])=>t.some((t=>e.match(t))))(e,t))))(o),c="wordpress"===r||l===Ht;if(!c&&s&&(s.attributes.providerNameSlug!==r||!r))return(0,Qe.createBlock)(Vt,{url:o,...i,...s.attributes});const m=(0,Qe.getBlockVariations)(Vt)?.find((({name:e})=>"wordpress"===e));return m&&n&&$t(n.html)&&!c?(0,Qe.createBlock)(Vt,{url:o,...m.attributes,...t}):void 0},Gt=e=>{if(!e)return e;const t=At.reduce(((e,{className:t})=>(e[t]=!1,e)),{"wp-has-aspect-ratio":!1});return zt()(e,t)};function Ut(e,t,n=!0){if(!n)return Gt(t);const a=document.implementation.createHTMLDocument("");a.body.innerHTML=e;const o=a.body.querySelector("iframe");if(o&&o.height&&o.width){const e=(o.width/o.height).toFixed(2);for(let n=0;n<At.length;n++){const a=At[n];if(e>=a.ratio){return e-a.ratio>.1?Gt(t):zt()(Gt(t),a.className,"wp-has-aspect-ratio")}}}return t}const qt=Rt(((e,t,n,a,o=!0)=>{if(!e)return{};const r={};let{type:l="rich"}=e;const{html:i,provider_name:s}=e,{kebabCase:c}=Ft(et.privateApis),m=c((s||t).toLowerCase());return $t(i)&&(l=Ht),(i||"photo"===l)&&(r.type=l,r.providerNameSlug=m),(u=n)&&At.some((({className:e})=>u.includes(e)))||(r.className=Ut(i,n,a&&o)),r;var u})),jt=window.wp.compose,Wt=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})),{PrivateRichText:Zt}=Ft(nt.privateApis);function Qt({key:e="caption",attributes:t,setAttributes:n,isSelected:a,insertBlocksAfter:o,placeholder:r=(0,tt.__)("Add caption"),label:l=(0,tt.__)("Caption text"),showToolbarButton:i=!0,className:s,disableEditing:c}){const m=t[e],u=(0,jt.usePrevious)(m),p=Zt.isEmpty(m),d=Zt.isEmpty(u),[g,h]=(0,_t.useState)(!p);(0,_t.useEffect)((()=>{!p&&d&&h(!0)}),[p,d]),(0,_t.useEffect)((()=>{!a&&p&&h(!1)}),[a,p]);const b=(0,_t.useCallback)((e=>{e&&p&&e.focus()}),[p]);return(0,Ke.createElement)(Ke.Fragment,null,i&&(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>{h(!g),g&&m&&n({caption:void 0})},icon:Wt,isPressed:g,label:g?(0,tt.__)("Remove caption"):(0,tt.__)("Add caption")})),g&&(!Zt.isEmpty(m)||a)&&(0,Ke.createElement)(Zt,{identifier:e,tagName:"figcaption",className:ut()(s,(0,nt.__experimentalGetElementClassName)("caption")),ref:b,"aria-label":l,placeholder:r,value:m,onChange:e=>n({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>o((0,Qe.createBlock)((0,Qe.getDefaultBlockName)())),disableEditing:c}))}const Kt=["audio"];const Yt=function({attributes:e,className:t,setAttributes:n,onReplace:a,isSelected:o,insertBlocksAfter:r}){const{id:l,autoplay:i,loop:s,preload:c,src:m}=e,u=!l&&(0,It.isBlobURL)(m),{getSettings:p}=(0,gt.useSelect)(nt.store);function d(e){return t=>{n({[e]:t})}}function g(e){if(e!==m){const t=Ot({attributes:{url:e}});if(void 0!==t&&a)return void a(t);n({src:e,id:void 0})}}(0,_t.useEffect)((()=>{if(!l&&(0,It.isBlobURL)(m)){const e=(0,It.getBlobByURL)(m);e&&p().mediaUpload({filesList:[e],onFileChange:([e])=>_(e),onError:e=>b(e),allowedTypes:Kt})}}),[]);const{createErrorNotice:h}=(0,gt.useDispatch)(Pt.store);function b(e){h(e,{type:"snackbar"})}function _(e){e&&e.url?n({src:e.url,id:e.id,caption:e.caption}):n({src:void 0,id:void 0,caption:void 0})}const y=ut()(t,{"is-transient":u}),v=(0,nt.useBlockProps)({className:y});return m?(0,Ke.createElement)(Ke.Fragment,null,o&&(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(nt.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:Kt,accept:"audio/*",onSelect:_,onSelectURL:g,onError:b})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Autoplay"),onChange:d("autoplay"),checked:i,help:function(e){return e?(0,tt.__)("Autoplay may cause usability issues for some users."):null}}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Loop"),onChange:d("loop"),checked:s}),(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt._x)("Preload","noun; Audio block parameter"),value:c||"",onChange:e=>n({preload:e||void 0}),options:[{value:"",label:(0,tt.__)("Browser default")},{value:"auto",label:(0,tt.__)("Auto")},{value:"metadata",label:(0,tt.__)("Metadata")},{value:"none",label:(0,tt._x)("None","Preload value")}]}))),(0,Ke.createElement)("figure",{...v},(0,Ke.createElement)(et.Disabled,{isDisabled:!o},(0,Ke.createElement)("audio",{controls:"controls",src:m})),u&&(0,Ke.createElement)(et.Spinner,null),(0,Ke.createElement)(Qt,{attributes:e,setAttributes:n,isSelected:o,insertBlocksAfter:r,label:(0,tt.__)("Audio caption text"),showToolbarButton:o}))):(0,Ke.createElement)("div",{...v},(0,Ke.createElement)(nt.MediaPlaceholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:Nt}),onSelect:_,onSelectURL:g,accept:"audio/*",allowedTypes:Kt,value:e,onError:b}))};const Jt={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("audio/"),transform(e){const t=e[0];return(0,Qe.createBlock)("core/audio",{src:(0,It.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:n,ogg:a,wav:o,wma:r}})=>e||t||n||a||o||r},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]},Xt=Jt,en={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},id:{type:"number",__experimentalRole:"content"},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:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:tn}=en,nn={icon:Nt,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:Xt,deprecated:Tt,edit:Yt,save:function({attributes:e}){const{autoplay:t,caption:n,loop:a,preload:o,src:r}=e;return r&&(0,Ke.createElement)("figure",{...nt.useBlockProps.save()},(0,Ke.createElement)("audio",{controls:"controls",src:r,autoPlay:t,loop:a,preload:o}),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:n,className:(0,nt.__experimentalGetElementClassName)("caption")}))}},an=()=>Xe({name:tn,metadata:en,settings:nn}),on=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})),{cleanEmptyObject:rn}=Ft(nt.privateApis);function ln(e){if(!e?.style?.typography?.fontFamily)return e;const{fontFamily:t,...n}=e.style.typography;return{...e,style:rn({...e.style,typography:n}),fontFamily:t.split("|").pop()}}const sn=e=>{const{borderRadius:t,...n}=e,a=[t,n.style?.border?.radius].find((e=>"number"==typeof e&&0!==e));return a?{...n,style:{...n.style,border:{...n.style?.border,radius:`${a}px`}}}:n};const cn=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);const{customTextColor:n,customBackgroundColor:a,customGradient:o,...r}=e;return{...r,style:t}},mn=e=>{const{color:t,textColor:n,...a}={...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0};return cn(a)},un={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},pn={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:a,rel:o,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const m=(0,nt.__experimentalGetBorderClassesAndStyles)(e),u=(0,nt.__experimentalGetColorClassesAndStyles)(e),p=(0,nt.__experimentalGetSpacingClassesAndStyles)(e),d=ut()("wp-block-button__link",u.className,m.className,{"no-border-radius":0===r?.border?.radius}),g={...m.style,...u.style,...p.style},h=ut()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:h})},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:g,value:l,target:a,rel:o}))}},dn={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:a,rel:o,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const m=(0,nt.__experimentalGetBorderClassesAndStyles)(e),u=(0,nt.__experimentalGetColorClassesAndStyles)(e),p=(0,nt.__experimentalGetSpacingClassesAndStyles)(e),d=ut()("wp-block-button__link",u.className,m.className,{"no-border-radius":0===r?.border?.radius}),g={...m.style,...u.style,...p.style},h=ut()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:h})},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:g,value:l,target:a,rel:o}))},migrate:ln,isEligible:({style:e})=>e?.typography?.fontFamily},gn=[pn,dn,{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...un,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible:({style:e})=>"number"==typeof e?.border?.radius,save({attributes:e,className:t}){const{fontSize:n,linkTarget:a,rel:o,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const m=r?.border?.radius,u=(0,nt.__experimentalGetColorClassesAndStyles)(e),p=ut()("wp-block-button__link",u.className,{"no-border-radius":0===r?.border?.radius}),d={borderRadius:m||void 0,...u.style},g=ut()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:g})},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:p,href:s,title:i,style:d,value:l,target:a,rel:o}))},migrate:(0,jt.compose)(ln,sn)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...un,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"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:a,rel:o,text:r,title:l,url:i,width:s}=e,c=(0,nt.__experimentalGetColorClassesAndStyles)(e),m=ut()("wp-block-button__link",c.className,{"no-border-radius":0===n}),u={borderRadius:n?n+"px":void 0,...c.style},p=ut()(t,{[`has-custom-width wp-block-button__width-${s}`]:s});return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:p})},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:m,href:i,title:l,style:u,value:r,target:a,rel:o}))},migrate:(0,jt.compose)(ln,sn)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...un,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"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:a,rel:o,text:r,title:l,url:i,width:s}=e,c=(0,nt.__experimentalGetColorClassesAndStyles)(e),m=ut()("wp-block-button__link",c.className,{"no-border-radius":0===n}),u={borderRadius:n?n+"px":void 0,...c.style},p=ut()(t,{[`has-custom-width wp-block-button__width-${s}`]:s});return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:p})},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:m,href:i,title:l,style:u,value:r,target:a,rel:o}))},migrate:(0,jt.compose)(ln,sn)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...un,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({attributes:e}){const{borderRadius:t,linkTarget:n,rel:a,text:o,title:r,url:l}=e,i=ut()("wp-block-button__link",{"no-border-radius":0===t}),s={borderRadius:t?t+"px":void 0};return(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:i,href:l,title:r,style:s,value:o,target:n,rel:a})},migrate:sn},{supports:{align:!0,alignWide:!1},attributes:{...un,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:e=>!!(e.customTextColor||e.customBackgroundColor||e.customGradient||e.align),migrate:(0,jt.compose)(sn,cn,(function(e){if(!e.align)return e;const{align:t,...n}=e;return{...n,className:ut()(n.className,`align${e.align}`)}})),save({attributes:e}){const{backgroundColor:t,borderRadius:n,customBackgroundColor:a,customTextColor:o,customGradient:r,linkTarget:l,gradient:i,rel:s,text:c,textColor:m,title:u,url:p}=e,d=(0,nt.getColorClassName)("color",m),g=!r&&(0,nt.getColorClassName)("background-color",t),h=(0,nt.__experimentalGetGradientClass)(i),b=ut()("wp-block-button__link",{"has-text-color":m||o,[d]:d,"has-background":t||a||r||i,[g]:g,"no-border-radius":0===n,[h]:h}),_={background:r||void 0,backgroundColor:g||r||i?void 0:a,color:d?void 0:o,borderRadius:n?n+"px":void 0};return(0,Ke.createElement)("div",null,(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:b,href:p,title:u,style:_,value:c,target:l,rel:s}))}},{attributes:{...un,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible:e=>e.className&&e.className.includes("is-style-squared"),migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),sn(cn({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,customTextColor:a,linkTarget:o,rel:r,text:l,textColor:i,title:s,url:c}=e,m=(0,nt.getColorClassName)("color",i),u=(0,nt.getColorClassName)("background-color",t),p=ut()("wp-block-button__link",{"has-text-color":i||a,[m]:m,"has-background":t||n,[u]:u}),d={backgroundColor:u?void 0:n,color:m?void 0:a};return(0,Ke.createElement)("div",null,(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:p,href:c,title:s,style:d,value:l,target:o,rel:r}))}},{attributes:{...un,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:mn,save({attributes:e}){const{url:t,text:n,title:a,backgroundColor:o,textColor:r,customBackgroundColor:l,customTextColor:i}=e,s=(0,nt.getColorClassName)("color",r),c=(0,nt.getColorClassName)("background-color",o),m=ut()("wp-block-button__link",{"has-text-color":r||i,[s]:s,"has-background":o||l,[c]:c}),u={backgroundColor:c?void 0:l,color:s?void 0:i};return(0,Ke.createElement)("div",null,(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:m,href:t,title:a,style:u,value:n}))}},{attributes:{...un,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:a,align:o,color:r,textColor:l}=e,i={backgroundColor:r,color:l};return(0,Ke.createElement)("div",{className:`align${o}`},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:a,style:i,value:n}))},migrate:mn},{attributes:{...un,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:a,align:o,color:r,textColor:l}=e;return(0,Ke.createElement)("div",{className:`align${o}`,style:{backgroundColor:r}},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",href:t,title:a,style:{color:l},value:n}))},migrate:mn}],hn=gn,bn="noreferrer noopener",_n="_blank",yn="nofollow";function vn(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}const fn=window.wp.keycodes,kn=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})),xn=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})),wn=[...nt.__experimentalLinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,tt.__)("Mark as nofollow")}];function En({selectedWidth:e,setAttributes:t}){return(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Width settings")},(0,Ke.createElement)(et.ButtonGroup,{"aria-label":(0,tt.__)("Button width")},[25,50,75,100].map((n=>(0,Ke.createElement)(et.Button,{key:n,size:"small",variant:n===e?"primary":void 0,onClick:()=>{var a;t({width:e===(a=n)?void 0:a})}},n,"%")))))}const Cn=function(e){const{attributes:t,setAttributes:n,className:a,isSelected:o,onReplace:r,mergeBlocks:l,clientId:i}=e,{tagName:s,textAlign:c,linkTarget:m,placeholder:u,rel:p,style:d,text:g,url:h,width:b,metadata:_}=t,y=s||"a",[v,f]=(0,_t.useState)(null),k=(0,nt.__experimentalUseBorderProps)(t),x=(0,nt.__experimentalUseColorProps)(t),w=(0,nt.__experimentalGetSpacingClassesAndStyles)(t),E=(0,nt.__experimentalGetShadowClassesAndStyles)(t),C=(0,_t.useRef)(),S=(0,_t.useRef)(),B=(0,nt.useBlockProps)({ref:(0,jt.useMergeRefs)([f,C]),onKeyDown:function(e){fn.isKeyboardEvent.primary(e,"k")?A(e):fn.isKeyboardEvent.primaryShift(e,"k")&&(H(),S.current?.focus())}}),N=(0,nt.useBlockEditingMode)(),[T,I]=(0,_t.useState)(!1),P=!!h,M=m===_n,z=!!p?.includes(yn),R="a"===y;function A(e){e.preventDefault(),I(!0)}function H(){n({url:void 0,linkTarget:void 0,rel:void 0}),I(!1)}(0,_t.useEffect)((()=>{o||I(!1)}),[o]);const L=(0,_t.useMemo)((()=>({url:h,opensInNewTab:M,nofollow:z})),[h,M,z]),D=function(e){const{replaceBlocks:t,selectionChange:n}=(0,gt.useDispatch)(nt.store),{getBlock:a,getBlockRootClientId:o,getBlockIndex:r}=(0,gt.useSelect)(nt.store),l=(0,_t.useRef)(e);return l.current=e,(0,jt.useRefEffect)((e=>{function i(e){if(e.defaultPrevented||e.keyCode!==fn.ENTER)return;const{content:i,clientId:s}=l.current;if(i.length)return;e.preventDefault();const c=a(o(s)),m=r(s),u=(0,Qe.cloneBlock)({...c,innerBlocks:c.innerBlocks.slice(0,m)}),p=(0,Qe.createBlock)((0,Qe.getDefaultBlockName)()),d=c.innerBlocks.slice(m+1),g=d.length?[(0,Qe.cloneBlock)({...c,innerBlocks:d})]:[];t(c.clientId,[u,p,...g],1),n(p.clientId)}return e.addEventListener("keydown",i),()=>{e.removeEventListener("keydown",i)}}),[])}({content:g,clientId:i}),F=(0,jt.useMergeRefs)([D,S]),{lockUrlControls:V=!1}=(0,gt.useSelect)((e=>{if(!o)return{};const t=Ft(e(Qe.store)).getBlockBindingsSource(_?.bindings?.url?.source);return{lockUrlControls:!!_?.bindings?.url&&(!t||t?.lockAttributesEditing)}}),[o]);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("div",{...B,className:ut()(B.className,{[`has-custom-width wp-block-button__width-${b}`]:b,"has-custom-font-size":B.style.fontSize})},(0,Ke.createElement)(nt.RichText,{ref:F,"aria-label":(0,tt.__)("Button text"),placeholder:u||(0,tt.__)("Add text…"),value:g,onChange:e=>n({text:vn(e)}),withoutInteractiveFormatting:!0,className:ut()(a,"wp-block-button__link",x.className,k.className,{[`has-text-align-${c}`]:c,"no-border-radius":0===d?.border?.radius},(0,nt.__experimentalGetElementClassName)("button")),style:{...k.style,...x.style,...w.style,...E.style},onSplit:e=>(0,Qe.createBlock)("core/button",{...t,text:e}),onReplace:r,onMerge:l,identifier:"text"})),(0,Ke.createElement)(nt.BlockControls,{group:"block"},"default"===N&&(0,Ke.createElement)(nt.AlignmentControl,{value:c,onChange:e=>{n({textAlign:e})}}),!P&&R&&!V&&(0,Ke.createElement)(et.ToolbarButton,{name:"link",icon:kn,title:(0,tt.__)("Link"),shortcut:fn.displayShortcut.primary("k"),onClick:A}),P&&R&&!V&&(0,Ke.createElement)(et.ToolbarButton,{name:"link",icon:xn,title:(0,tt.__)("Unlink"),shortcut:fn.displayShortcut.primaryShift("k"),onClick:H,isActive:!0})),R&&o&&(T||P)&&!V&&(0,Ke.createElement)(et.Popover,{placement:"bottom",onClose:()=>{I(!1),S.current?.focus()},anchor:v,focusOnMount:!!T&&"firstElement",__unstableSlotName:"__unstable-block-tools-after",shift:!0},(0,Ke.createElement)(nt.__experimentalLinkControl,{value:L,onChange:({url:e,opensInNewTab:t,nofollow:a})=>n(function({rel:e="",url:t="",opensInNewTab:n,nofollow:a}){let o,r=e;if(n)o=_n,r=r?.includes(bn)?r:r+` ${bn}`;else{const e=new RegExp(`\\b${bn}\\s*`,"g");r=r?.replace(e,"").trim()}if(a)r=r?.includes(yn)?r:r+` ${yn}`;else{const e=new RegExp(`\\b${yn}\\s*`,"g");r=r?.replace(e,"").trim()}return{url:(0,pt.prependHTTP)(t),linkTarget:o,rel:r||void 0}}({rel:p,url:e,opensInNewTab:t,nofollow:a})),onRemove:()=>{H(),S.current?.focus()},forceIsEditingLink:T,settings:wn})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(En,{selectedWidth:b,setAttributes:n})),(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},R&&(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link rel"),value:p||"",onChange:e=>n({rel:e})})))};const Sn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",__experimentalRole:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",__experimentalRole:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",__experimentalRole:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button .wp-block-button__link",interactivity:{clientNavigation:!0}},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:Bn}=Sn,Nn={icon:on,example:{attributes:{className:"is-style-fill",text:(0,tt.__)("Call to Action")}},edit:Cn,save:function({attributes:e,className:t}){const{tagName:n,type:a,textAlign:o,fontSize:r,linkTarget:l,rel:i,style:s,text:c,title:m,url:u,width:p}=e;if(nt.RichText.isEmpty(c))return null;const d=n||"a",g="button"===d,h=a||"button",b=(0,nt.__experimentalGetBorderClassesAndStyles)(e),_=(0,nt.__experimentalGetColorClassesAndStyles)(e),y=(0,nt.__experimentalGetSpacingClassesAndStyles)(e),v=(0,nt.__experimentalGetShadowClassesAndStyles)(e),f=ut()("wp-block-button__link",_.className,b.className,{[`has-text-align-${o}`]:o,"no-border-radius":0===s?.border?.radius},(0,nt.__experimentalGetElementClassName)("button")),k={...b.style,..._.style,...y.style,...v.style},x=ut()(t,{[`has-custom-width wp-block-button__width-${p}`]:p,"has-custom-font-size":r||s?.typography?.fontSize});return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:x})},(0,Ke.createElement)(nt.RichText.Content,{tagName:d,type:g?h:null,className:f,href:g?null:u,title:m,style:k,value:c,target:g?null:l,rel:g?null:i}))},deprecated:hn,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},Tn=()=>Xe({name:Bn,metadata:Sn,settings:Nn}),In=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"})),Pn=e=>{if(e.layout)return e;const{contentJustification:t,orientation:n,...a}=e;return(t||n)&&Object.assign(a,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),a},Mn=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:Pn,save:({attributes:{contentJustification:e,orientation:t}})=>(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:ut()({[`is-content-justification-${e}`]:e,"is-vertical":"vertical"===t})})},(0,Ke.createElement)(nt.InnerBlocks.Content,null))},{supports:{align:["center","left","right"],anchor:!0},save:()=>(0,Ke.createElement)("div",null,(0,Ke.createElement)(nt.InnerBlocks.Content,null)),isEligible:({align:e})=>e&&["center","left","right"].includes(e),migrate:e=>Pn({...e,align:void 0,contentJustification:e.align})}],zn=Mn,Rn=window.wp.richText;function An(e,t,n){if(!e)return;const{supports:a}=(0,Qe.getBlockType)(t),o=[];if(["core/paragraph","core/heading","core/image","core/button"].includes(t)&&n&&o.push("id","bindings"),!1!==a.renaming&&o.push("name"),!o.length)return;const r=Object.entries(e).reduce(((e,[t,a])=>o.includes(t)?(e[t]="bindings"===t?n(a):a,e):e),{});return Object.keys(r).length?r:void 0}const Hn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,Qe.createBlock)("core/buttons",{},e.map((e=>(0,Qe.createBlock)("core/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Qe.createBlock)("core/buttons",{},e.map((e=>{const{content:t,metadata:n}=e,a=(0,Rn.__unstableCreateElement)(document,t),o=a.innerText||"",r=a.querySelector("a"),l=r?.getAttribute("href");return(0,Qe.createBlock)("core/button",{text:o,url:l,metadata:An(n,"core/button",(({content:e})=>({text:e})))})}))),isMatch:e=>e.every((e=>{const t=(0,Rn.__unstableCreateElement)(document,e.content),n=t.innerText||"",a=t.querySelectorAll("a");return n.length<=30&&a.length<=1}))}]},Ln=Hn,Dn={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};const Fn=function({attributes:e,className:t}){var n;const{fontSize:a,layout:o,style:r}=e,l=(0,nt.useBlockProps)({className:ut()(t,{"has-custom-font-size":a||r?.typography?.fontSize})}),{preferredStyle:i,hasButtonVariations:s}=(0,gt.useSelect)((e=>{const t=e(nt.store).getSettings().__experimentalPreferredStyleVariations,n=e(Qe.store).getBlockVariations("core/button","inserter");return{preferredStyle:t?.value?.["core/button"],hasButtonVariations:n.length>0}}),[]),c=(0,nt.useInnerBlocksProps)(l,{defaultBlock:Dn,directInsert:!s,template:[["core/button",{className:i&&`is-style-${i}`}]],templateInsertUpdatesSelection:!0,orientation:null!==(n=o?.orientation)&&void 0!==n?n:"horizontal"});return(0,Ke.createElement)("div",{...c})};const Vn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",allowedBlocks:["core/button"],description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:$n}=Vn,On={icon:In,example:{innerBlocks:[{name:"core/button",attributes:{text:(0,tt.__)("Find out more")}},{name:"core/button",attributes:{text:(0,tt.__)("Contact us")}}]},deprecated:zn,transforms:Ln,edit:Fn,save:function({attributes:e,className:t}){const{fontSize:n,style:a}=e,o=nt.useBlockProps.save({className:ut()(t,{"has-custom-font-size":n||a?.typography?.fontSize})}),r=nt.useInnerBlocksProps.save(o);return(0,Ke.createElement)("div",{...r})}},Gn=()=>Xe({name:$n,metadata:Vn,settings:On}),Un=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})),qn=Rt((e=>{if(!e)return{};const t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}}));const jn={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,Qe.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,Qe.createBlock)("core/archives")}]},Wn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site’s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0,color:{link:!0,__experimentalSkipSerialization:["text","background"],__experimentalDefaultControls:{background:!0,text:!0},__experimentalSelector:"table, th"},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-calendar"},{name:Zn}=Wn,Qn={icon:Un,example:{},edit:function({attributes:e}){const t=(0,nt.useBlockProps)(),{date:n,hasPosts:a,hasPostsResolved:o}=(0,gt.useSelect)((e=>{const{getEntityRecords:t,hasFinishedResolution:n}=e(dt.store),a={status:"publish",per_page:1},o=t("postType","post",a),r=n("getEntityRecords",["postType","post",a]);let l;const i=e("core/editor");if(i){"post"===i.getEditedPostAttribute("type")&&(l=i.getEditedPostAttribute("date"))}return{date:l,hasPostsResolved:r,hasPosts:r&&1===o?.length}}),[]);return a?(0,Ke.createElement)("div",{...t},(0,Ke.createElement)(et.Disabled,null,(0,Ke.createElement)(ot(),{block:"core/calendar",attributes:{...e,...qn(n)}}))):(0,Ke.createElement)("div",{...t},(0,Ke.createElement)(et.Placeholder,{icon:Un,label:(0,tt.__)("Calendar")},o?(0,tt.__)("No published posts found."):(0,Ke.createElement)(et.Spinner,null)))},transforms:jn},Kn=()=>Xe({name:Zn,metadata:Wn,settings:Qn}),Yn=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})),Jn=window.wp.htmlEntities,Xn=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"}));const ea={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Categories List",category:"widgets",description:"Display a list of all categories.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1},showEmpty:{type:"boolean",default:!1}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:ta}=ea,na={icon:Yn,example:{},edit:function e({attributes:{displayAsDropdown:t,showHierarchy:n,showPostCounts:a,showOnlyTopLevel:o,showEmpty:r},setAttributes:l,className:i}){const s=(0,jt.useInstanceId)(e,"blocks-category-select"),c={per_page:-1,hide_empty:!r,context:"view"};o&&(c.parent=0);const{records:m,isResolving:u}=(0,dt.useEntityRecords)("taxonomy","category",c),p=e=>m?.length?null===e?m:m.filter((({parent:t})=>t===e)):[],d=e=>t=>l({[e]:t}),g=e=>e?(0,Jn.decodeEntities)(e).trim():(0,tt.__)("(Untitled)"),h=e=>{const t=p(e.id),{id:o,link:r,count:l,name:i}=e;return(0,Ke.createElement)("li",{key:o,className:`cat-item cat-item-${o}`},(0,Ke.createElement)("a",{href:r,target:"_blank",rel:"noreferrer noopener"},g(i)),a&&` (${l})`,n&&!!t.length&&(0,Ke.createElement)("ul",{className:"children"},t.map((e=>h(e)))))},b=(e,t)=>{const{id:o,count:r,name:l}=e,i=p(o);return[(0,Ke.createElement)("option",{key:o,className:`level-${t}`},Array.from({length:3*t}).map((()=>" ")),g(l),a&&` (${r})`),n&&!!i.length&&i.map((e=>b(e,t+1)))]},_=!m?.length||t||u?"div":"ul",y=ut()(i,{"wp-block-categories-list":!!m?.length&&!t&&!u,"wp-block-categories-dropdown":!!m?.length&&t&&!u}),v=(0,nt.useBlockProps)({className:y});return(0,Ke.createElement)(_,{...v},(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display as dropdown"),checked:t,onChange:d("displayAsDropdown")}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show post counts"),checked:a,onChange:d("showPostCounts")}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show only top level categories"),checked:o,onChange:d("showOnlyTopLevel")}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show empty categories"),checked:r,onChange:d("showEmpty")}),!o&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show hierarchy"),checked:n,onChange:d("showHierarchy")}))),u&&(0,Ke.createElement)(et.Placeholder,{icon:Xn,label:(0,tt.__)("Categories")},(0,Ke.createElement)(et.Spinner,null)),!u&&0===m?.length&&(0,Ke.createElement)("p",null,(0,tt.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!u&&m?.length>0&&(t?(()=>{const e=p(n?0:null);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.VisuallyHidden,{as:"label",htmlFor:s},(0,tt.__)("Categories")),(0,Ke.createElement)("select",{id:s},(0,Ke.createElement)("option",null,(0,tt.__)("Select Category")),e.map((e=>b(e,0)))))})():p(n?0:null).map((e=>h(e)))))}},aa=()=>Xe({name:ta,metadata:ea,settings:na}),oa=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.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"})),ra=({clientId:e})=>{const{replaceBlocks:t}=(0,gt.useDispatch)(nt.store),n=(0,gt.useSelect)((t=>t(nt.store).getBlock(e)),[e]);return(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>t(n.clientId,(0,Qe.rawHandler)({HTML:(0,Qe.serialize)(n)}))},(0,tt.__)("Convert to blocks"))},la=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"}));function ia({onClick:e,isModalFullScreen:t}){return(0,jt.useViewportMatch)("small","<")?null:(0,Ke.createElement)(et.Button,{onClick:e,icon:la,isPressed:t,label:t?(0,tt.__)("Exit fullscreen"):(0,tt.__)("Enter fullscreen")})}function sa(e){const t=(0,gt.useSelect)((e=>e(nt.store).getSettings().styles));return(0,_t.useEffect)((()=>{const{baseURL:n,suffix:a,settings:o}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:n,suffix:a}),window.wp.oldEditor.initialize(e.id,{tinymce:{...o,setup(e){e.on("init",(()=>{const n=e.getDoc();t.forEach((({css:e})=>{const t=n.createElement("style");t.innerHTML=e,n.head.appendChild(t)}))}))}}}),()=>{window.wp.oldEditor.remove(e.id)}}),[]),(0,Ke.createElement)("textarea",{...e})}function ca(e){const{clientId:t,attributes:{content:n},setAttributes:a,onReplace:o}=e,[r,l]=(0,_t.useState)(!1),[i,s]=(0,_t.useState)(!1),c=`editor-${t}`,m=()=>n?l(!1):o([]);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>l(!0)},(0,tt.__)("Edit")))),n&&(0,Ke.createElement)(_t.RawHTML,null,n),(r||!n)&&(0,Ke.createElement)(et.Modal,{title:(0,tt.__)("Classic Editor"),onRequestClose:m,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:i,className:"block-editor-freeform-modal__content",headerActions:(0,Ke.createElement)(ia,{onClick:()=>s(!i),isModalFullScreen:i})},(0,Ke.createElement)(sa,{id:c,defaultValue:n}),(0,Ke.createElement)(et.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1},(0,Ke.createElement)(et.FlexItem,null,(0,Ke.createElement)(et.Button,{variant:"tertiary",onClick:m},(0,tt.__)("Cancel"))),(0,Ke.createElement)(et.FlexItem,null,(0,Ke.createElement)(et.Button,{variant:"primary",onClick:()=>{a({content:window.wp.oldEditor.getContent(c)}),l(!1)}},(0,tt.__)("Save"))))))}const{wp:ma}=window;function ua({clientId:e,attributes:{content:t},setAttributes:n,onReplace:a}){const{getMultiSelectedBlockClientIds:o}=(0,gt.useSelect)(nt.store),r=(0,_t.useRef)(!1);return(0,_t.useEffect)((()=>{if(!r.current)return;const n=window.tinymce.get(`editor-${e}`),a=n?.getContent();a!==t&&n.setContent(t||"")}),[t]),(0,_t.useEffect)((()=>{const{baseURL:l,suffix:i}=window.wpEditorL10n.tinymce;function s(e){let r;t&&e.on("loadContent",(()=>e.setContent(t))),e.on("blur",(()=>{r=e.selection.getBookmark(2,!0);const t=document.querySelector(".interface-interface-skeleton__content"),a=t.scrollTop;return o()?.length||n({content:e.getContent()}),e.once("focus",(()=>{r&&(e.selection.moveToBookmark(r),t.scrollTop!==a&&(t.scrollTop=a))})),!1})),e.on("mousedown touchstart",(()=>{r=null}));const l=(0,jt.debounce)((()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,n({content:t}))}),250);e.on("Paste Change input Undo Redo",l),e.on("remove",l.cancel),e.on("keydown",(t=>{fn.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==fn.BACKSPACE&&t.keyCode!==fn.DELETE||!function(e){const t=e.getBody();return!(t.childNodes.length>1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(a([]),t.preventDefault(),t.stopImmediatePropagation());const{altKey:n}=t;n&&t.keyCode===fn.F10&&t.stopPropagation()})),e.on("init",(()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function c(){const{settings:t}=window.wpEditorL10n.tinymce;ma.oldEditor.initialize(`editor-${e}`,{tinymce:{...t,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${e}`,setup:s}})}function m(){"complete"===document.readyState&&c()}return r.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:l,suffix:i}),"complete"===document.readyState?c():document.addEventListener("readystatechange",m),()=>{document.removeEventListener("readystatechange",m),ma.oldEditor.remove(`editor-${e}`)}}),[]),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("div",{key:"toolbar",id:`toolbar-${e}`,className:"block-library-classic__toolbar",onClick:function(){const t=window.tinymce.get(`editor-${e}`);t&&t.focus()},"data-placeholder":(0,tt.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),(0,Ke.createElement)("div",{key:"editor",id:`editor-${e}`,className:"wp-block-freeform block-library-rich-text__tinymce"}))}const pa={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:da}=pa,ga={icon:oa,edit:function(e){const{clientId:t}=e,n=(0,gt.useSelect)((e=>e(nt.store).canRemoveBlock(t)),[t]),[a,o]=(0,_t.useState)(!1),r=(0,jt.useRefEffect)((e=>{o(e.ownerDocument!==document)}),[]);return(0,Ke.createElement)(Ke.Fragment,null,n&&(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(ra,{clientId:t}))),(0,Ke.createElement)("div",{...(0,nt.useBlockProps)({ref:r})},a?(0,Ke.createElement)(ca,{...e}):(0,Ke.createElement)(ua,{...e})))},save:function({attributes:e}){const{content:t}=e;return(0,Ke.createElement)(_t.RawHTML,null,t)}},ha=()=>Xe({name:da,metadata:pa,settings:ga}),ba=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));function _a(e){return e.replace(/\[/g,"&#91;")}function ya(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1&#47;&#47;$2")}const va={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,Qe.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:({content:e,metadata:t})=>(0,Qe.createBlock)("core/code",{content:e,metadata:An(t,"core/code")})},{type:"block",blocks:["core/html"],transform:({content:e,metadata:t})=>(0,Qe.createBlock)("core/code",{content:(0,Rn.toHTMLString)({value:(0,Rn.create)({text:e})}),metadata:An(t,"core/code")})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:({content:e,metadata:t})=>(0,Qe.createBlock)("core/paragraph",{content:e,metadata:An(t,"core/paragraph")})}]},fa=va,ka={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"code",__unstablePreserveWhiteSpace:!0}},supports:{align:["wide"],anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{width:!0,color:!0}},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-code"},{name:xa}=ka,wa={icon:ba,example:{attributes:{content:(0,tt.__)("// 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 );")}},merge:(e,t)=>({content:e.content+"\n\n"+t.content}),transforms:fa,edit:function({attributes:e,setAttributes:t,onRemove:n,insertBlocksAfter:a,mergeBlocks:o}){const r=(0,nt.useBlockProps)();return(0,Ke.createElement)("pre",{...r},(0,Ke.createElement)(nt.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:e=>t({content:e}),onRemove:n,onMerge:o,placeholder:(0,tt.__)("Write code…"),"aria-label":(0,tt.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>a((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))}))},save:function({attributes:e}){return(0,Ke.createElement)("pre",{...nt.useBlockProps.save()},(0,Ke.createElement)(nt.RichText.Content,{tagName:"code",value:(t="string"==typeof e.content?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}),(0,jt.pipe)(_a,ya)(t||""))}));var t}},Ea=()=>Xe({name:xa,metadata:ka,settings:wa}),Ca=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.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"})),Sa=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible:({width:e})=>isFinite(e),migrate:e=>({...e,width:`${e.width}%`}),save({attributes:e}){const{verticalAlignment:t,width:n}=e,a=ut()({[`is-vertically-aligned-${t}`]:t}),o={flexBasis:n+"%"};return(0,Ke.createElement)("div",{className:a,style:o},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}}],Ba=Sa;const Na=function({attributes:{verticalAlignment:e,width:t,templateLock:n,allowedBlocks:a},setAttributes:o,clientId:r}){const l=ut()("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),[i]=(0,nt.useSettings)("spacing.units"),s=(0,et.__experimentalUseCustomUnits)({availableUnits:i||["%","px","em","rem","vw"]}),{columnsIds:c,hasChildBlocks:m,rootClientId:u}=(0,gt.useSelect)((e=>{const{getBlockOrder:t,getBlockRootClientId:n}=e(nt.store),a=n(r);return{hasChildBlocks:t(r).length>0,rootClientId:a,columnsIds:t(a)}}),[r]),{updateBlockAttributes:p}=(0,gt.useDispatch)(nt.store),d=Number.isFinite(t)?t+"%":t,g=(0,nt.useBlockProps)({className:l,style:d?{flexBasis:d}:void 0}),h=c.length,b=c.indexOf(r)+1,_=(0,tt.sprintf)((0,tt.__)("%1$s (%2$d of %3$d)"),g["aria-label"],b,h),y=(0,nt.useInnerBlocksProps)({...g,"aria-label":_},{templateLock:n,allowedBlocks:a,renderAppender:m?void 0:nt.InnerBlocks.ButtonBlockAppender});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(nt.BlockVerticalAlignmentToolbar,{onChange:e=>{o({verticalAlignment:e}),p(u,{verticalAlignment:null})},value:e,controls:["top","center","bottom","stretch"]})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.__experimentalUnitControl,{label:(0,tt.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:t||"",onChange:e=>{e=0>parseFloat(e)?"0":e,o({width:e})},units:s}))),(0,Ke.createElement)("div",{...y}))};const Ta={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/column",title:"Column",category:"design",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,anchor:!0,reusable:!1,html:!1,color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{blockGap:!0,padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0,interactivity:{clientNavigation:!0}}},{name:Ia}=Ta,Pa={icon:Ca,edit:Na,save:function({attributes:e}){const{verticalAlignment:t,width:n}=e,a=ut()({[`is-vertically-aligned-${t}`]:t});let o;if(n&&/\d/.test(n)){let e=Number.isFinite(n)?n+"%":n;if(!Number.isFinite(n)&&n?.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(n)*t)/t+"%"}o={flexBasis:e}}const r=nt.useBlockProps.save({className:a,style:o}),l=nt.useInnerBlocksProps.save(r);return(0,Ke.createElement)("div",{...l})},deprecated:Ba},Ma=()=>Xe({name:Ia,metadata:Ta,settings:Pa}),za=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"}));function Ra(e){let t,{doc:n}=Ra;n||(n=document.implementation.createHTMLDocument(""),Ra.doc=n),n.body.innerHTML=e;for(const e of n.body.firstChild.classList)if(t=e.match(/^layout-column-(\d+)$/))return Number(t[1])-1}const Aa=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:n,customBackgroundColor:a,...o}=e;return{...o,style:t,isStackedOnMobile:!0}},save({attributes:e}){const{verticalAlignment:t,backgroundColor:n,customBackgroundColor:a,textColor:o,customTextColor:r}=e,l=(0,nt.getColorClassName)("background-color",n),i=(0,nt.getColorClassName)("color",o),s=ut()({"has-background":n||a,"has-text-color":o||r,[l]:l,[i]:i,[`are-vertically-aligned-${t}`]:t}),c={backgroundColor:l?void 0:a,color:i?void 0:r};return(0,Ke.createElement)("div",{className:s||void 0,style:c},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},isEligible:(e,t)=>!!t.some((e=>/layout-column-\d+/.test(e.originalContent)))&&t.some((e=>void 0!==Ra(e.originalContent))),migrate(e,t){const n=t.reduce(((e,t)=>{const{originalContent:n}=t;let a=Ra(n);return void 0===a&&(a=0),e[a]||(e[a]=[]),e[a].push(t),e}),[]).map((e=>(0,Qe.createBlock)("core/column",{},e))),{columns:a,...o}=e;return[{...o,isStackedOnMobile:!0},n]},save({attributes:e}){const{columns:t}=e;return(0,Ke.createElement)("div",{className:`has-${t}-columns`},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){const{columns:n,...a}=e;return[e={...a,isStackedOnMobile:!0},t]},save({attributes:e}){const{verticalAlignment:t,columns:n}=e,a=ut()(`has-${n}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,Ke.createElement)("div",{className:a},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}}],Ha=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function La(e,t){const{width:n=100/t}=e.attributes;return Ha(n)}function Da(e,t,n=e.length){const a=function(e,t=e.length){return e.reduce(((e,n)=>e+La(n,t)),0)}(e,n);return Object.fromEntries(Object.entries(function(e,t=e.length){return e.reduce(((e,n)=>{const a=La(n,t);return Object.assign(e,{[n.clientId]:a})}),{})}(e,n)).map((([e,n])=>[e,Ha(t*n/a)])))}function Fa(e,t){return e.map((e=>({...e,attributes:{...e.attributes,width:`${t[e.clientId]}%`}})))}function Va({attributes:e,setAttributes:t,clientId:n}){const{isStackedOnMobile:a,verticalAlignment:o,templateLock:r}=e,{count:l,canInsertColumnBlock:i,minCount:s}=(0,gt.useSelect)((e=>{const{canInsertBlockType:t,canRemoveBlock:a,getBlocks:o,getBlockCount:r}=e(nt.store),l=o(n).reduce(((e,t,n)=>(a(t.clientId)||e.push(n),e)),[]);return{count:r(n),canInsertColumnBlock:t("core/column",n),minCount:Math.max(...l)+1}}),[n]),c=(0,gt.useRegistry)(),{getBlocks:m,getBlockOrder:u}=(0,gt.useSelect)(nt.store),{updateBlockAttributes:p,replaceInnerBlocks:d}=(0,gt.useDispatch)(nt.store),g=ut()({[`are-vertically-aligned-${o}`]:o,"is-not-stacked-on-mobile":!a}),h=(0,nt.useBlockProps)({className:g}),b=(0,nt.useInnerBlocksProps)(h,{orientation:"horizontal",renderAppender:!1,templateLock:r});function _(e,t){let a=m(n);const o=a.every((e=>{const t=e.attributes.width;return Number.isFinite(t?.endsWith?.("%")?parseFloat(t):t)}));const r=t>e;if(r&&o){const n=Ha(100/t);a=[...Fa(a,Da(a,100-n)),...Array.from({length:t-e}).map((()=>(0,Qe.createBlock)("core/column",{width:`${n}%`})))]}else if(r)a=[...a,...Array.from({length:t-e}).map((()=>(0,Qe.createBlock)("core/column")))];else if(t<e&&(a=a.slice(0,-(e-t)),o)){a=Fa(a,Da(a,100))}d(n,a)}return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(nt.BlockVerticalAlignmentToolbar,{onChange:function(e){const a=u(n);c.batch((()=>{t({verticalAlignment:e}),p(a,{verticalAlignment:e})}))},value:o})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},i&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Columns"),value:l,onChange:e=>_(l,Math.max(s,e)),min:Math.max(1,s),max:Math.max(6,l)}),l>6&&(0,Ke.createElement)(et.Notice,{status:"warning",isDismissible:!1},(0,tt.__)("This column count exceeds the recommended amount and may cause visual breakage."))),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Stack on mobile"),checked:a,onChange:()=>t({isStackedOnMobile:!a})}))),(0,Ke.createElement)("div",{...b}))}function $a({clientId:e,name:t,setAttributes:n}){const{blockType:a,defaultVariation:o,variations:r}=(0,gt.useSelect)((e=>{const{getBlockVariations:n,getBlockType:a,getDefaultBlockVariation:o}=e(Qe.store);return{blockType:a(t),defaultVariation:o(t,"block"),variations:n(t,"block")}}),[t]),{replaceInnerBlocks:l}=(0,gt.useDispatch)(nt.store),i=(0,nt.useBlockProps)();return(0,Ke.createElement)("div",{...i},(0,Ke.createElement)(nt.__experimentalBlockVariationPicker,{icon:a?.icon?.src,label:a?.title,variations:r,onSelect:(t=o)=>{t.attributes&&n(t.attributes),t.innerBlocks&&l(e,(0,Qe.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0}))}const Oa=e=>{const{clientId:t}=e,n=(0,gt.useSelect)((e=>e(nt.store).getBlocks(t).length>0),[t])?Va:$a;return(0,Ke.createElement)(n,{...e})};const Ga=[{name:"one-column-full",title:(0,tt.__)("100"),description:(0,tt.__)("One column"),icon:(0,Ke.createElement)(et.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,tt.__)("50 / 50"),description:(0,tt.__)("Two columns; equal split"),icon:(0,Ke.createElement)(et.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.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:(0,tt.__)("33 / 66"),description:(0,tt.__)("Two columns; one-third, two-thirds split"),icon:(0,Ke.createElement)(et.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.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:(0,tt.__)("66 / 33"),description:(0,tt.__)("Two columns; two-thirds, one-third split"),icon:(0,Ke.createElement)(et.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.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:(0,tt.__)("33 / 33 / 33"),description:(0,tt.__)("Three columns; equal split"),icon:(0,Ke.createElement)(et.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.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:(0,tt.__)("25 / 50 / 25"),description:(0,tt.__)("Three columns; wide center column"),icon:(0,Ke.createElement)(et.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.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"]}],Ua={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),n=e.map((({name:e,attributes:n,innerBlocks:a})=>["core/column",{width:`${t}%`},[[e,{...n},a]]]));return(0,Qe.createBlock)("core/columns",{},(0,Qe.createBlocksFromInnerBlocksTemplate)(n))},isMatch:({length:e},t)=>(1!==t.length||"core/columns"!==t[0].name)&&(e&&e<=6)},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:n,backgroundColor:a,textColor:o,style:r,mediaAlt:l,mediaId:i,mediaPosition:s,mediaSizeSlug:c,mediaType:m,mediaUrl:u,mediaWidth:p,verticalAlignment:d}=e;let g;if("image"!==m&&m)g=["core/video",{id:i,src:u}];else{g=["core/image",{...{id:i,alt:l,url:u,sizeSlug:c},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const h=[["core/column",{width:`${p}%`},[g]],["core/column",{width:100-p+"%"},t]];return"right"===s&&h.reverse(),(0,Qe.createBlock)("core/columns",{align:n,backgroundColor:a,textColor:o,style:r,verticalAlignment:d},(0,Qe.createBlocksFromInnerBlocksTemplate)(h))}}],ungroup:(e,t)=>t.flatMap((e=>e.innerBlocks))},qa=Ua,ja={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/columns",title:"Columns",category:"design",allowedBlocks:["core/column"],description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,heading:!0,button:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:{__experimentalDefault:"2em",sides:["horizontal","vertical"]},margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex",flexWrap:"nowrap"}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},shadow:!0},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:Wa}=ja,Za={icon:za,variations:Ga,example:{viewportWidth:600,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("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:(0,tt.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("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:(0,tt.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Aa,edit:Oa,save:function({attributes:e}){const{isStackedOnMobile:t,verticalAlignment:n}=e,a=ut()({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!t}),o=nt.useBlockProps.save({className:a}),r=nt.useInnerBlocksProps.save(o);return(0,Ke.createElement)("div",{...r})},transforms:qa},Qa=()=>Xe({name:Wa,metadata:ja,settings:Za}),Ka=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"})),Ya=[{attributes:{tagName:{type:"string",default:"div"}},apiVersion:3,supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}}},save({attributes:{tagName:e}}){const t=nt.useBlockProps.save(),{className:n}=t,a=n?.split(" ")||[],o=a?.filter((e=>"wp-block-comments"!==e)),r={...t,className:o.join(" ")};return(0,Ke.createElement)(e,{...r},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}}];function Ja({attributes:{tagName:e},setAttributes:t}){const n={section:(0,tt.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),aside:(0,tt.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.")};return(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("HTML element"),options:[{label:(0,tt.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:e,onChange:e=>t({tagName:e}),help:n[e]})))}const Xa=()=>{const e=(0,jt.useInstanceId)(Xa);return(0,Ke.createElement)("div",{className:"comment-respond"},(0,Ke.createElement)("h3",{className:"comment-reply-title"},(0,tt.__)("Leave a Reply")),(0,Ke.createElement)("form",{noValidate:!0,className:"comment-form",onSubmit:e=>e.preventDefault()},(0,Ke.createElement)("p",null,(0,Ke.createElement)("label",{htmlFor:`comment-${e}`},(0,tt.__)("Comment")),(0,Ke.createElement)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8",readOnly:!0})),(0,Ke.createElement)("p",{className:"form-submit wp-block-button"},(0,Ke.createElement)("input",{name:"submit",type:"submit",className:ut()("wp-block-button__link",(0,nt.__experimentalGetElementClassName)("button")),label:(0,tt.__)("Post Comment"),value:(0,tt.__)("Post Comment"),"aria-disabled":"true"}))))},eo=({postId:e,postType:t})=>{const[n,a]=(0,dt.useEntityProp)("postType",t,"comment_status",e),o=void 0===t||void 0===e,{defaultCommentStatus:r}=(0,gt.useSelect)((e=>e(nt.store).getSettings().__experimentalDiscussionSettings)),l=(0,gt.useSelect)((e=>!!t&&!!e(dt.store).getPostType(t)?.supports.comments));if(!o&&"open"!==n){if("closed"===n){const e=[(0,Ke.createElement)(et.Button,{key:"enableComments",onClick:()=>a("open"),variant:"primary"},(0,tt._x)("Enable comments","action that affects the current post"))];return(0,Ke.createElement)(nt.Warning,{actions:e},(0,tt.__)("Post Comments Form block: Comments are not enabled for this item."))}if(!l)return(0,Ke.createElement)(nt.Warning,null,(0,tt.sprintf)((0,tt.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t));if("open"!==r)return(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Post Comments Form block: Comments are not enabled."))}return(0,Ke.createElement)(Xa,null)};function to({postType:e,postId:t}){let[n]=(0,dt.useEntityProp)("postType",e,"title",t);n=n||(0,tt.__)("Post Title");const{avatarURL:a}=(0,gt.useSelect)((e=>e(nt.store).getSettings().__experimentalDiscussionSettings));return(0,Ke.createElement)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true"},(0,Ke.createElement)("h3",null,(0,tt.sprintf)((0,tt.__)("One response to %s"),n)),(0,Ke.createElement)("div",{className:"navigation"},(0,Ke.createElement)("div",{className:"alignleft"},(0,Ke.createElement)("a",{href:"#top"},"« ",(0,tt.__)("Older Comments"))),(0,Ke.createElement)("div",{className:"alignright"},(0,Ke.createElement)("a",{href:"#top"},(0,tt.__)("Newer Comments")," »"))),(0,Ke.createElement)("ol",{className:"commentlist"},(0,Ke.createElement)("li",{className:"comment even thread-even depth-1"},(0,Ke.createElement)("article",{className:"comment-body"},(0,Ke.createElement)("footer",{className:"comment-meta"},(0,Ke.createElement)("div",{className:"comment-author vcard"},(0,Ke.createElement)("img",{alt:(0,tt.__)("Commenter Avatar"),src:a,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,Ke.createElement)("b",{className:"fn"},(0,Ke.createElement)("a",{href:"#top",className:"url"},(0,tt.__)("A WordPress Commenter")))," ",(0,Ke.createElement)("span",{className:"says"},(0,tt.__)("says"),":")),(0,Ke.createElement)("div",{className:"comment-metadata"},(0,Ke.createElement)("a",{href:"#top"},(0,Ke.createElement)("time",{dateTime:"2000-01-01T00:00:00+00:00"},(0,tt.__)("January 1, 2000 at 00:00 am")))," ",(0,Ke.createElement)("span",{className:"edit-link"},(0,Ke.createElement)("a",{className:"comment-edit-link",href:"#top"},(0,tt.__)("Edit"))))),(0,Ke.createElement)("div",{className:"comment-content"},(0,Ke.createElement)("p",null,(0,tt.__)("Hi, this is a comment."),(0,Ke.createElement)("br",null),(0,tt.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,Ke.createElement)("br",null),(0,_t.createInterpolateElement)((0,tt.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,Ke.createElement)("a",{href:"https://gravatar.com/"})}))),(0,Ke.createElement)("div",{className:"reply"},(0,Ke.createElement)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,tt.__)("Reply to A WordPress Commenter")},(0,tt.__)("Reply")))))),(0,Ke.createElement)("div",{className:"navigation"},(0,Ke.createElement)("div",{className:"alignleft"},(0,Ke.createElement)("a",{href:"#top"},"« ",(0,tt.__)("Older Comments"))),(0,Ke.createElement)("div",{className:"alignright"},(0,Ke.createElement)("a",{href:"#top"},(0,tt.__)("Newer Comments")," »"))),(0,Ke.createElement)(eo,{postId:t,postType:e}))}function no({attributes:e,setAttributes:t,context:{postType:n,postId:a}}){const{textAlign:o}=e,r=[(0,Ke.createElement)(et.Button,{key:"convert",onClick:()=>{t({legacy:!1})},variant:"primary"},(0,tt.__)("Switch to editable mode"))],l=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${o}`]:o})});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:o,onChange:e=>{t({textAlign:e})}})),(0,Ke.createElement)("div",{...l},(0,Ke.createElement)(nt.Warning,{actions:r},(0,tt.__)("Comments block: You’re currently using the legacy version of the block. The following is just a placeholder - the final styling will likely look different. For a better representation and more customization options, switch the block to its editable mode.")),(0,Ke.createElement)(to,{postId:a,postType:n})))}const ao=[["core/comments-title"],["core/comment-template",{},[["core/columns",{},[["core/column",{width:"40px"},[["core/avatar",{size:40,style:{border:{radius:"20px"}}}]]],["core/column",{},[["core/comment-author-name",{fontSize:"small"}],["core/group",{layout:{type:"flex"},style:{spacing:{margin:{top:"0px",bottom:"0px"}}}},[["core/comment-date",{fontSize:"small"}],["core/comment-edit-link",{fontSize:"small"}]]],["core/comment-content"],["core/comment-reply-link",{fontSize:"small"}]]]]]]],["core/comments-pagination"],["core/post-comments-form"]];const oo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments",title:"Comments",category:"theme",description:"An advanced block that allows displaying post comments using different visual configurations.",textdomain:"default",attributes:{tagName:{type:"string",default:"div"},legacy:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-comments-editor",usesContext:["postId","postType"]},{name:ro}=oo,lo={icon:Ka,edit:function(e){const{attributes:t,setAttributes:n}=e,{tagName:a,legacy:o}=t,r=(0,nt.useBlockProps)(),l=(0,nt.useInnerBlocksProps)(r,{template:ao});return o?(0,Ke.createElement)(no,{...e}):(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(Ja,{attributes:t,setAttributes:n}),(0,Ke.createElement)(a,{...l}))},save:function({attributes:{tagName:e,legacy:t}}){const n=nt.useBlockProps.save(),a=nt.useInnerBlocksProps.save(n);return t?null:(0,Ke.createElement)(e,{...a})},deprecated:Ya},io=()=>Xe({name:ro,metadata:oo,settings:lo});const so={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/comment-author-avatar",title:"Comment Author Avatar (deprecated)",category:"theme",ancestor:["core/comment-template"],description:"This block is deprecated. Please use the Avatar block instead.",textdomain:"default",attributes:{width:{type:"number",default:96},height:{type:"number",default:96}},usesContext:["commentId"],supports:{html:!1,inserter:!1,__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},color:{background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{__experimentalSkipSerialization:!0,margin:!0,padding:!0},interactivity:{clientNavigation:!0}}},{name:co}=so,mo={icon:ct,edit:function({attributes:e,context:{commentId:t},setAttributes:n,isSelected:a}){const{height:o,width:r}=e,[l]=(0,dt.useEntityProp)("root","comment","author_avatar_urls",t),[i]=(0,dt.useEntityProp)("root","comment","author_name",t),s=l?Object.values(l):null,c=l?Object.keys(l):null,m=c?c[0]:24,u=c?c[c.length-1]:96,p=(0,nt.useBlockProps)(),d=(0,nt.__experimentalGetSpacingClassesAndStyles)(e),g=Math.floor(2.5*u),{avatarURL:h}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store),{__experimentalDiscussionSettings:n}=t();return n})),b=(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Avatar Settings")},(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Image size"),onChange:e=>n({width:e,height:e}),min:m,max:g,initialPosition:r,value:r}))),_=(0,Ke.createElement)(et.ResizableBox,{size:{width:r,height:o},showHandle:a,onResizeStop:(e,t,a,l)=>{n({height:parseInt(o+l.height,10),width:parseInt(r+l.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,tt.isRTL)(),bottom:!0,left:(0,tt.isRTL)()},minWidth:m,maxWidth:g},(0,Ke.createElement)("img",{src:s?s[s.length-1]:h,alt:`${i} ${(0,tt.__)("Avatar")}`,...p}));return(0,Ke.createElement)(Ke.Fragment,null,b,(0,Ke.createElement)("div",{...d},_))}},uo=()=>Xe({name:co,metadata:so,settings:mo}),po=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.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",fillRule:"evenodd",clipRule:"evenodd"}),(0,Ke.createElement)(Ye.Path,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),(0,Ke.createElement)(Ye.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"}));const go={attributes:{isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:ln,isEligible:({style:e})=>e?.typography?.fontFamily},ho=[go],bo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-author-name",title:"Comment Author Name",category:"theme",ancestor:["core/comment-template"],description:"Displays the name of the author of the comment.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},usesContext:["commentId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:_o}=bo,yo={icon:po,edit:function({attributes:{isLink:e,linkTarget:t,textAlign:n},context:{commentId:a},setAttributes:o}){const r=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${n}`]:n})});let l=(0,gt.useSelect)((e=>{const{getEntityRecord:t}=e(dt.store),n=t("root","comment",a),o=n?.author_name;if(n&&!o){var r;const e=t("root","user",n.author);return null!==(r=e?.name)&&void 0!==r?r:(0,tt.__)("Anonymous")}return null!=o?o:""}),[a]);const i=(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:n,onChange:e=>o({textAlign:e})})),s=(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to authors URL"),onChange:()=>o({isLink:!e}),checked:e}),e&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>o({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t})));a&&l||(l=(0,tt._x)("Comment Author","block title"));const c=e?(0,Ke.createElement)("a",{href:"#comment-author-pseudo-link",onClick:e=>e.preventDefault()},l):l;return(0,Ke.createElement)(Ke.Fragment,null,s,i,(0,Ke.createElement)("div",{...r},c))},deprecated:ho},vo=()=>Xe({name:_o,metadata:bo,settings:yo}),fo=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"}));const ko={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-content",title:"Comment Content",category:"theme",ancestor:["core/comment-template"],description:"Displays the contents of a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},html:!1}},{name:xo}=ko,wo={icon:fo,edit:function({setAttributes:e,attributes:{textAlign:t},context:{commentId:n}}){const a=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${t}`]:t})}),[o]=(0,dt.useEntityProp)("root","comment","content",n),r=(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:t,onChange:t=>e({textAlign:t})}));return n&&o?(0,Ke.createElement)(Ke.Fragment,null,r,(0,Ke.createElement)("div",{...a},(0,Ke.createElement)(et.Disabled,null,(0,Ke.createElement)(_t.RawHTML,{key:"html"},o.rendered)))):(0,Ke.createElement)(Ke.Fragment,null,r,(0,Ke.createElement)("div",{...a},(0,Ke.createElement)("p",null,(0,tt._x)("Comment Content","block title"))))}},Eo=()=>Xe({name:xo,metadata:ko,settings:wo}),Co=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),(0,Ke.createElement)(Ye.Path,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"})),So=window.wp.date;const Bo={attributes:{format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:ln,isEligible:({style:e})=>e?.typography?.fontFamily},No=[Bo],To={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-date",title:"Comment Date",category:"theme",ancestor:["core/comment-template"],description:"Displays the date on which the comment was posted.",textdomain:"default",attributes:{format:{type:"string"},isLink:{type:"boolean",default:!0}},usesContext:["commentId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Io}=To,Po={icon:Co,edit:function({attributes:{format:e,isLink:t},context:{commentId:n},setAttributes:a}){const o=(0,nt.useBlockProps)();let[r]=(0,dt.useEntityProp)("root","comment","date",n);const[l=(0,So.getSettings)().formats.date]=(0,dt.useEntityProp)("root","site","date_format"),i=(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(nt.__experimentalDateFormatPicker,{format:e,defaultFormat:l,onChange:e=>a({format:e})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to comment"),onChange:()=>a({isLink:!t}),checked:t})));n&&r||(r=(0,tt._x)("Comment Date","block title"));let s=r instanceof Date?(0,Ke.createElement)("time",{dateTime:(0,So.dateI18n)("c",r)},(0,So.dateI18n)(e||l,r)):(0,Ke.createElement)("time",null,r);return t&&(s=(0,Ke.createElement)("a",{href:"#comment-date-pseudo-link",onClick:e=>e.preventDefault()},s)),(0,Ke.createElement)(Ke.Fragment,null,i,(0,Ke.createElement)("div",{...o},s))},deprecated:No},Mo=()=>Xe({name:Io,metadata:To,settings:Po}),zo=(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"}));const Ro={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-edit-link",title:"Comment Edit Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to edit the comment in the WordPress Dashboard. This link is only visible to users with the edit comment capability.",textdomain:"default",usesContext:["commentId"],attributes:{linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},supports:{html:!1,color:{link:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Ao}=Ro,Ho={icon:zo,edit:function({attributes:{linkTarget:e,textAlign:t},setAttributes:n}){const a=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${t}`]:t})}),o=(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:t,onChange:e=>n({textAlign:e})})),r=(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>n({linkTarget:e?"_blank":"_self"}),checked:"_blank"===e})));return(0,Ke.createElement)(Ke.Fragment,null,o,r,(0,Ke.createElement)("div",{...a},(0,Ke.createElement)("a",{href:"#edit-comment-pseudo-link",onClick:e=>e.preventDefault()},(0,tt.__)("Edit"))))}},Lo=()=>Xe({name:Ao,metadata:Ro,settings:Ho}),Do=(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"}));const Fo=function({setAttributes:e,attributes:{textAlign:t}}){const n=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${t}`]:t})}),a=(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:t,onChange:t=>e({textAlign:t})}));return(0,Ke.createElement)(Ke.Fragment,null,a,(0,Ke.createElement)("div",{...n},(0,Ke.createElement)("a",{href:"#comment-reply-pseudo-link",onClick:e=>e.preventDefault()},(0,tt.__)("Reply"))))},Vo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-reply-link",title:"Comment Reply Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to reply to a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},html:!1}},{name:$o}=Vo,Oo={edit:Fo,icon:Do},Go=()=>Xe({name:$o,metadata:Vo,settings:Oo}),Uo=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),qo=window.wp.apiFetch;var jo=n.n(qo);const Wo=({defaultPage:e,postId:t,perPage:n,queryArgs:a})=>{const[o,r]=(0,_t.useState)({}),l=`${t}_${n}`,i=o[l]||0;return(0,_t.useEffect)((()=>{i||"newest"!==e||jo()({path:(0,pt.addQueryArgs)("/wp/v2/comments",{...a,post:t,per_page:n,_fields:"id"}),method:"HEAD",parse:!1}).then((e=>{const t=parseInt(e.headers.get("X-WP-TotalPages"));r({...o,[l]:t<=1?1:t})}))}),[e,t,n,r]),"newest"===e?i:1},Zo=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function Qo({comment:e,activeCommentId:t,setActiveCommentId:n,firstCommentId:a,blocks:o}){const{children:r,...l}=(0,nt.useInnerBlocksProps)({},{template:Zo});return(0,Ke.createElement)("li",{...l},e.commentId===(t||a)?r:null,(0,Ke.createElement)(Ko,{blocks:o,commentId:e.commentId,setActiveCommentId:n,isHidden:e.commentId===(t||a)}),e?.children?.length>0?(0,Ke.createElement)(Yo,{comments:e.children,activeCommentId:t,setActiveCommentId:n,blocks:o,firstCommentId:a}):null)}const Ko=(0,_t.memo)((({blocks:e,commentId:t,setActiveCommentId:n,isHidden:a})=>{const o=(0,nt.__experimentalUseBlockPreview)({blocks:e}),r=()=>{n(t)},l={display:a?"none":void 0};return(0,Ke.createElement)("div",{...o,tabIndex:0,role:"button",style:l,onClick:r,onKeyPress:r})})),Yo=({comments:e,blockProps:t,activeCommentId:n,setActiveCommentId:a,blocks:o,firstCommentId:r})=>(0,Ke.createElement)("ol",{...t},e&&e.map((({commentId:e,...t},l)=>(0,Ke.createElement)(nt.BlockContextProvider,{key:t.commentId||l,value:{commentId:e<0?null:e}},(0,Ke.createElement)(Qo,{comment:{commentId:e,...t},activeCommentId:n,setActiveCommentId:a,blocks:o,firstCommentId:r})))));const Jo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-template",title:"Comment Template",category:"design",parent:["core/comments"],description:"Contains the block elements used to display a comment, like the title, date, author, avatar and more.",textdomain:"default",usesContext:["postId"],supports:{align:!0,html:!1,reusable:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-comment-template"},{name:Xo}=Jo,er={icon:Uo,edit:function({clientId:e,context:{postId:t}}){const n=(0,nt.useBlockProps)(),[a,o]=(0,_t.useState)(),{commentOrder:r,threadCommentsDepth:l,threadComments:i,commentsPerPage:s,pageComments:c}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store);return t().__experimentalDiscussionSettings})),m=(({postId:e})=>{const t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:n,commentsPerPage:a,defaultCommentsPage:o}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store),{__experimentalDiscussionSettings:n}=t();return n})),r=n?Math.min(a,100):100,l=Wo({defaultPage:o,postId:e,perPage:r,queryArgs:t});return(0,_t.useMemo)((()=>l?{...t,post:e,per_page:r,page:l}:null),[e,r,l])})({postId:t}),{topLevelComments:u,blocks:p}=(0,gt.useSelect)((t=>{const{getEntityRecords:n}=t(dt.store),{getBlocks:a}=t(nt.store);return{topLevelComments:m?n("root","comment",m):null,blocks:a(e)}}),[e,m]);let d=(e=>(0,_t.useMemo)((()=>e?.map((({id:e,_embedded:t})=>{const[n]=t?.children||[[]];return{commentId:e,children:n.map((e=>({commentId:e.id})))}}))),[e]))("desc"===r&&u?[...u].reverse():u);return u?(t||(d=(({perPage:e,pageComments:t,threadComments:n,threadCommentsDepth:a})=>{const o=n?Math.min(a,3):1,r=e=>e<o?[{commentId:-(e+3),children:r(e+1)}]:[],l=[{commentId:-1,children:r(1)}];return(!t||e>=2)&&o<3&&l.push({commentId:-2,children:[]}),(!t||e>=3)&&o<2&&l.push({commentId:-3,children:[]}),l})({perPage:s,pageComments:c,threadComments:i,threadCommentsDepth:l})),d.length?(0,Ke.createElement)(Yo,{comments:d,blockProps:n,blocks:p,activeCommentId:a,setActiveCommentId:o,firstCommentId:d[0]?.commentId}):(0,Ke.createElement)("p",{...n},(0,tt.__)("No results found."))):(0,Ke.createElement)("p",{...n},(0,Ke.createElement)(et.Spinner,null))},save:function(){return(0,Ke.createElement)(nt.InnerBlocks.Content,null)}},tr=()=>Xe({name:Xo,metadata:Jo,settings:er}),nr=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"})),ar={none:"",arrow:"←",chevron:"«"};const or={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-previous",title:"Comments Previous Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the previous comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:rr}=or,lr={icon:nr,edit:function({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":n}}){const a=ar[n];return(0,Ke.createElement)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),...(0,nt.useBlockProps)()},a&&(0,Ke.createElement)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${n}`},a),(0,Ke.createElement)(nt.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,tt.__)("Older comments page link"),placeholder:(0,tt.__)("Older Comments"),value:e,onChange:e=>t({label:e})}))}},ir=()=>Xe({name:rr,metadata:or,settings:lr}),sr=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"}));function cr({value:e,onChange:t}){return(0,Ke.createElement)(et.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Arrow"),value:e,onChange:t,help:(0,tt.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0},(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"none",label:(0,tt._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,tt._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,tt._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")}))}const mr=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]];const ur={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination",title:"Comments Pagination",category:"theme",parent:["core/comments"],allowedBlocks:["core/comments-pagination-previous","core/comments-pagination-numbers","core/comments-pagination-next"],description:"Displays a paginated navigation to next/previous set of comments, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"}},providesContext:{"comments/paginationArrow":"paginationArrow"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-comments-pagination-editor",style:"wp-block-comments-pagination"},{name:pr}=ur,dr={icon:sr,edit:function({attributes:{paginationArrow:e},setAttributes:t,clientId:n}){const a=(0,gt.useSelect)((e=>{const{getBlocks:t}=e(nt.store),a=t(n);return a?.find((e=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(e.name)))}),[]),o=(0,nt.useBlockProps)(),r=(0,nt.useInnerBlocksProps)(o,{template:mr});return(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store),{__experimentalDiscussionSettings:n}=t();return n?.pageComments}),[])?(0,Ke.createElement)(Ke.Fragment,null,a&&(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(cr,{value:e,onChange:e=>{t({paginationArrow:e})}}))),(0,Ke.createElement)("div",{...r})):(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings"))},save:function(){return(0,Ke.createElement)(nt.InnerBlocks.Content,null)}},gr=()=>Xe({name:pr,metadata:ur,settings:dr}),hr=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})),br={none:"",arrow:"→",chevron:"»"};const _r={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-next",title:"Comments Next Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the next comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:yr}=_r,vr={icon:hr,edit:function({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":n}}){const a=br[n];return(0,Ke.createElement)("a",{href:"#comments-pagination-next-pseudo-link",onClick:e=>e.preventDefault(),...(0,nt.useBlockProps)()},(0,Ke.createElement)(nt.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,tt.__)("Newer comments page link"),placeholder:(0,tt.__)("Newer Comments"),value:e,onChange:e=>t({label:e})}),a&&(0,Ke.createElement)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${n}`},a))}},fr=()=>Xe({name:yr,metadata:_r,settings:vr}),kr=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.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.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"})),xr=({content:e,tag:t="a",extraClass:n=""})=>"a"===t?(0,Ke.createElement)(t,{className:`page-numbers ${n}`,href:"#comments-pagination-numbers-pseudo-link",onClick:e=>e.preventDefault()},e):(0,Ke.createElement)(t,{className:`page-numbers ${n}`},e);const wr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-numbers",title:"Comments Page Numbers",category:"theme",parent:["core/comments-pagination"],description:"Displays a list of page numbers for comments pagination.",textdomain:"default",usesContext:["postId"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Er}=wr,Cr={icon:kr,edit:function(){return(0,Ke.createElement)("div",{...(0,nt.useBlockProps)()},(0,Ke.createElement)(xr,{content:"1"}),(0,Ke.createElement)(xr,{content:"2"}),(0,Ke.createElement)(xr,{content:"3",tag:"span",extraClass:"current"}),(0,Ke.createElement)(xr,{content:"4"}),(0,Ke.createElement)(xr,{content:"5"}),(0,Ke.createElement)(xr,{content:"...",tag:"span",extraClass:"dots"}),(0,Ke.createElement)(xr,{content:"8"}))}},Sr=()=>Xe({name:Er,metadata:wr,settings:Cr}),Br=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"}));const{attributes:Nr,supports:Tr}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-title",title:"Comments Title",category:"theme",ancestor:["core/comments"],description:"Displays a title with the number of comments.",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2}},supports:{anchor:!1,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}},interactivity:{clientNavigation:!0}}},Ir=[{attributes:{...Nr,singleCommentLabel:{type:"string"},multipleCommentsLabel:{type:"string"}},supports:Tr,migrate:e=>{const{singleCommentLabel:t,multipleCommentsLabel:n,...a}=e;return a},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null}],Pr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-title",title:"Comments Title",category:"theme",ancestor:["core/comments"],description:"Displays a title with the number of comments.",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2}},supports:{anchor:!1,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}},interactivity:{clientNavigation:!0}}},{name:Mr}=Pr,zr={icon:Br,edit:function({attributes:{textAlign:e,showPostTitle:t,showCommentsCount:n,level:a},setAttributes:o,context:{postType:r,postId:l}}){const i="h"+a,[s,c]=(0,_t.useState)(),[m]=(0,dt.useEntityProp)("postType",r,"title",l),u=void 0===l,p=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${e}`]:e})}),{threadCommentsDepth:d,threadComments:g,commentsPerPage:h,pageComments:b}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store);return t().__experimentalDiscussionSettings}));(0,_t.useEffect)((()=>{if(u){const e=g?Math.min(d,3)-1:0,t=b?h:3,n=parseInt(e)+parseInt(t);return void c(Math.min(n,3))}const e=l;jo()({path:(0,pt.addQueryArgs)("/wp/v2/comments",{post:l,_fields:"id"}),method:"HEAD",parse:!1}).then((t=>{e===l&&c(parseInt(t.headers.get("X-WP-Total")))})).catch((()=>{c(0)}))}),[l]);const _=(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:e,onChange:e=>o({textAlign:e})}),(0,Ke.createElement)(nt.HeadingLevelDropdown,{value:a,onChange:e=>o({level:e})})),y=(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show post title"),checked:t,onChange:e=>o({showPostTitle:e})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show comments count"),checked:n,onChange:e=>o({showCommentsCount:e})}))),v=u?(0,tt.__)("“Post Title”"):`"${m}"`;let f;return f=n&&void 0!==s?t?1===s?(0,tt.sprintf)((0,tt.__)("One response to %s"),v):(0,tt.sprintf)((0,tt._n)("%1$s response to %2$s","%1$s responses to %2$s",s),s,v):1===s?(0,tt.__)("One response"):(0,tt.sprintf)((0,tt._n)("%s response","%s responses",s),s):t?1===s?(0,tt.sprintf)((0,tt.__)("Response to %s"),v):(0,tt.sprintf)((0,tt.__)("Responses to %s"),v):1===s?(0,tt.__)("Response"):(0,tt.__)("Responses"),(0,Ke.createElement)(Ke.Fragment,null,_,y,(0,Ke.createElement)(i,{...p},f))},deprecated:Ir},Rr=()=>Xe({name:Mr,metadata:Pr,settings:zr}),Ar=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.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"})),Hr={"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"},Lr="image",Dr="video",Fr=50,Vr={x:.5,y:.5},$r=["image","video"];function Or({x:e,y:t}=Vr){return`${Math.round(100*e)}% ${Math.round(100*t)}%`}function Gr(e){return 50===e||void 0===e?null:"has-background-dim-"+10*Math.round(e/10)}function Ur(e){return!e||"center center"===e||"center"===e}function qr(e){return Ur(e)?"":Hr[e]}function jr(e){return e?{backgroundImage:`url(${e})`}:{}}function Wr(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function Zr(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function Qr(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}const Kr={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"}},Yr={url:{type:"string"},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},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"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},Jr={...Yr,useFeaturedImage:{type:"boolean",default:!1},tagName:{type:"string",default:"div"}},Xr={anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},el={...Xr,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1}},tl={attributes:Jr,supports:el,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:a,customGradient:o,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:m,isRepeated:u,overlayColor:p,url:d,alt:g,id:h,minHeight:b,minHeightUnit:_,tagName:y}=e,v=(0,nt.getColorClassName)("background-color",p),f=(0,nt.__experimentalGetGradientClass)(n),k=Lr===t,x=Dr===t,w=!(c||u),E={minHeight:(b&&_?`${b}${_}`:b)||void 0},C={backgroundColor:v?void 0:r,background:o||void 0},S=i&&w?Or(i):void 0,B=d?`url(${d})`:void 0,N=Or(i),T=ut()({"is-light":!m,"has-parallax":c,"is-repeated":u,"has-custom-content-position":!Ur(a)},qr(a)),I=ut()("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":u}),P=n||o;return(0,Ke.createElement)(y,{...nt.useBlockProps.save({className:T,style:E})},(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut()("wp-block-cover__background",v,Gr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&P&&0!==l,"has-background-gradient":P,[f]:f}),style:C}),!s&&k&&d&&(w?(0,Ke.createElement)("img",{className:I,alt:g,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}):(0,Ke.createElement)("div",{role:"img",className:I,style:{backgroundPosition:N,backgroundImage:B}})),x&&d&&(0,Ke.createElement)("video",{className:ut()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))}},nl={attributes:Jr,supports:el,isEligible:e=>void 0!==e.customOverlayColor||void 0!==e.overlayColor,migrate:e=>({...e,isUserOverlayColor:!0}),save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:a,customGradient:o,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:m,isRepeated:u,overlayColor:p,url:d,alt:g,id:h,minHeight:b,minHeightUnit:_,tagName:y}=e,v=(0,nt.getColorClassName)("background-color",p),f=(0,nt.__experimentalGetGradientClass)(n),k=Lr===t,x=Dr===t,w=!(c||u),E={minHeight:(b&&_?`${b}${_}`:b)||void 0},C={backgroundColor:v?void 0:r,background:o||void 0},S=i&&w?Or(i):void 0,B=d?`url(${d})`:void 0,N=Or(i),T=ut()({"is-light":!m,"has-parallax":c,"is-repeated":u,"has-custom-content-position":!Ur(a)},qr(a)),I=ut()("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":u}),P=n||o;return(0,Ke.createElement)(y,{...nt.useBlockProps.save({className:T,style:E})},(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut()("wp-block-cover__background",v,Gr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&P&&0!==l,"has-background-gradient":P,[f]:f}),style:C}),!s&&k&&d&&(w?(0,Ke.createElement)("img",{className:I,alt:g,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}):(0,Ke.createElement)("div",{role:"img",className:I,style:{backgroundPosition:N,backgroundImage:B}})),x&&d&&(0,Ke.createElement)("video",{className:ut()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))}},al={attributes:Yr,supports:Xr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:a,customGradient:o,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:m,isRepeated:u,overlayColor:p,url:d,alt:g,id:h,minHeight:b,minHeightUnit:_}=e,y=(0,nt.getColorClassName)("background-color",p),v=(0,nt.__experimentalGetGradientClass)(n),f=Lr===t,k=Dr===t,x=!(c||u),w={minHeight:(b&&_?`${b}${_}`:b)||void 0},E={backgroundColor:y?void 0:r,background:o||void 0},C=i&&x?Or(i):void 0,S=d?`url(${d})`:void 0,B=Or(i),N=ut()({"is-light":!m,"has-parallax":c,"is-repeated":u,"has-custom-content-position":!Ur(a)},qr(a)),T=ut()("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":u}),I=n||o;return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:N,style:w})},(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut()("wp-block-cover__background",y,Gr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&I&&0!==l,"has-background-gradient":I,[v]:v}),style:E}),!s&&f&&d&&(x?(0,Ke.createElement)("img",{className:T,alt:g,src:d,style:{objectPosition:C},"data-object-fit":"cover","data-object-position":C}):(0,Ke.createElement)("div",{role:"img",className:T,style:{backgroundPosition:B,backgroundImage:S}})),k&&d&&(0,Ke.createElement)("video",{className:ut()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:C},"data-object-fit":"cover","data-object-position":C}),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},migrate:Qr},ol={attributes:Yr,supports:Xr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:a,customGradient:o,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:m,isRepeated:u,overlayColor:p,url:d,alt:g,id:h,minHeight:b,minHeightUnit:_}=e,y=(0,nt.getColorClassName)("background-color",p),v=(0,nt.__experimentalGetGradientClass)(n),f=b&&_?`${b}${_}`:b,k=Lr===t,x=Dr===t,w=!(c||u),E={...!k||w||s?{}:jr(d),minHeight:f||void 0},C={backgroundColor:y?void 0:r,background:o||void 0},S=i&&w?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,B=ut()({"is-light":!m,"has-parallax":c,"is-repeated":u,"has-custom-content-position":!Ur(a)},qr(a)),N=n||o;return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:B,style:E})},(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut()("wp-block-cover__background",y,Gr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&N&&0!==l,"has-background-gradient":N,[v]:v}),style:C}),!s&&k&&w&&d&&(0,Ke.createElement)("img",{className:ut()("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:g,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),x&&d&&(0,Ke.createElement)("video",{className:ut()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},migrate:Qr},rl={attributes:Yr,supports:Xr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:a,customGradient:o,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isDark:c,isRepeated:m,overlayColor:u,url:p,alt:d,id:g,minHeight:h,minHeightUnit:b}=e,_=(0,nt.getColorClassName)("background-color",u),y=(0,nt.__experimentalGetGradientClass)(n),v=b?`${h}${b}`:h,f=Lr===t,k=Dr===t,x=!(s||m),w={...f&&!x?jr(p):{},minHeight:v||void 0},E={backgroundColor:_?void 0:r,background:o||void 0},C=i&&x?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,S=ut()({"is-light":!c,"has-parallax":s,"is-repeated":m,"has-custom-content-position":!Ur(a)},qr(a)),B=n||o;return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:S,style:w})},(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut()("wp-block-cover__background",_,Gr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":p&&B&&0!==l,"has-background-gradient":B,[y]:y}),style:E}),f&&x&&p&&(0,Ke.createElement)("img",{className:ut()("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:d,src:p,style:{objectPosition:C},"data-object-fit":"cover","data-object-position":C}),k&&p&&(0,Ke.createElement)("video",{className:ut()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:C},"data-object-fit":"cover","data-object-position":C}),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},migrate:Qr},ll={attributes:Yr,supports:Xr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:a,customGradient:o,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isDark:c,isRepeated:m,overlayColor:u,url:p,alt:d,id:g,minHeight:h,minHeightUnit:b}=e,_=(0,nt.getColorClassName)("background-color",u),y=(0,nt.__experimentalGetGradientClass)(n),v=b?`${h}${b}`:h,f=Lr===t,k=Dr===t,x=!(s||m),w={...f&&!x?jr(p):{},minHeight:v||void 0},E={backgroundColor:_?void 0:r,background:o||void 0},C=i&&x?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,S=ut()({"is-light":!c,"has-parallax":s,"is-repeated":m,"has-custom-content-position":!Ur(a)},qr(a));return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:S,style:w})},(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut()(_,Gr(l),"wp-block-cover__gradient-background",y,{"has-background-dim":void 0!==l,"has-background-gradient":n||o,[y]:!p&&y}),style:E}),f&&x&&p&&(0,Ke.createElement)("img",{className:ut()("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:d,src:p,style:{objectPosition:C},"data-object-fit":"cover","data-object-position":C}),k&&p&&(0,Ke.createElement)("video",{className:ut()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:C},"data-object-fit":"cover","data-object-position":C}),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},migrate:Qr},il={attributes:{...Kr,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""}},supports:Xr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:a,customGradient:o,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isRepeated:c,overlayColor:m,url:u,alt:p,id:d,minHeight:g,minHeightUnit:h}=e,b=(0,nt.getColorClassName)("background-color",m),_=(0,nt.__experimentalGetGradientClass)(n),y=h?`${g}${h}`:g,v=Lr===t,f=Dr===t,k=!(s||c),x={...v&&!k?jr(u):{},backgroundColor:b?void 0:r,background:o&&!u?o:void 0,minHeight:y||void 0},w=i&&k?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,E=ut()(Wr(l),b,{"has-background-dim":0!==l,"has-parallax":s,"is-repeated":c,"has-background-gradient":n||o,[_]:!u&&_,"has-custom-content-position":!Ur(a)},qr(a));return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:E,style:x})},u&&(n||o)&&0!==l&&(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut()("wp-block-cover__gradient-background",_),style:o?{background:o}:void 0}),v&&k&&u&&(0,Ke.createElement)("img",{className:ut()("wp-block-cover__image-background",d?`wp-image-${d}`:null),alt:p,src:u,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),f&&u&&(0,Ke.createElement)("video",{className:ut()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:u,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),(0,Ke.createElement)("div",{className:"wp-block-cover__inner-container"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))},migrate:(0,jt.compose)(Zr,Qr)},sl={attributes:{...Kr,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:a,customGradient:o,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isRepeated:c,overlayColor:m,url:u,minHeight:p,minHeightUnit:d}=e,g=(0,nt.getColorClassName)("background-color",m),h=(0,nt.__experimentalGetGradientClass)(n),b=d?`${p}${d}`:p,_=Lr===t,y=Dr===t,v=_?jr(u):{},f={};let k;g||(v.backgroundColor=r),o&&!u&&(v.background=o),v.minHeight=b||void 0,i&&(k=`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`,_&&!s&&(v.backgroundPosition=k),y&&(f.objectPosition=k));const x=ut()(Wr(l),g,{"has-background-dim":0!==l,"has-parallax":s,"is-repeated":c,"has-background-gradient":n||o,[h]:!u&&h,"has-custom-content-position":!Ur(a)},qr(a));return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:x,style:v})},u&&(n||o)&&0!==l&&(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut()("wp-block-cover__gradient-background",h),style:o?{background:o}:void 0}),y&&u&&(0,Ke.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:u,style:f}),(0,Ke.createElement)("div",{className:"wp-block-cover__inner-container"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))},migrate:(0,jt.compose)(Zr,Qr)},cl={attributes:{...Kr,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,customGradient:a,customOverlayColor:o,dimRatio:r,focalPoint:l,hasParallax:i,overlayColor:s,url:c,minHeight:m}=e,u=(0,nt.getColorClassName)("background-color",s),p=(0,nt.__experimentalGetGradientClass)(n),d=t===Lr?jr(c):{};u||(d.backgroundColor=o),l&&!i&&(d.backgroundPosition=`${Math.round(100*l.x)}% ${Math.round(100*l.y)}%`),a&&!c&&(d.background=a),d.minHeight=m||void 0;const g=ut()(Wr(r),u,{"has-background-dim":0!==r,"has-parallax":i,"has-background-gradient":a,[p]:!c&&p});return(0,Ke.createElement)("div",{className:g,style:d},c&&(n||a)&&0!==r&&(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut()("wp-block-cover__gradient-background",p),style:a?{background:a}:void 0}),Dr===t&&c&&(0,Ke.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),(0,Ke.createElement)("div",{className:"wp-block-cover__inner-container"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))},migrate:(0,jt.compose)(Zr,Qr)},ml={attributes:{...Kr,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,customGradient:a,customOverlayColor:o,dimRatio:r,focalPoint:l,hasParallax:i,overlayColor:s,url:c,minHeight:m}=e,u=(0,nt.getColorClassName)("background-color",s),p=(0,nt.__experimentalGetGradientClass)(n),d=t===Lr?jr(c):{};u||(d.backgroundColor=o),l&&!i&&(d.backgroundPosition=`${100*l.x}% ${100*l.y}%`),a&&!c&&(d.background=a),d.minHeight=m||void 0;const g=ut()(Wr(r),u,{"has-background-dim":0!==r,"has-parallax":i,"has-background-gradient":a,[p]:!c&&p});return(0,Ke.createElement)("div",{className:g,style:d},c&&(n||a)&&0!==r&&(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut()("wp-block-cover__gradient-background",p),style:a?{background:a}:void 0}),Dr===t&&c&&(0,Ke.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),(0,Ke.createElement)("div",{className:"wp-block-cover__inner-container"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))},migrate:(0,jt.compose)(Zr,Qr)},ul={attributes:{...Kr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,contentAlign:n,customOverlayColor:a,dimRatio:o,focalPoint:r,hasParallax:l,overlayColor:i,title:s,url:c}=e,m=(0,nt.getColorClassName)("background-color",i),u=t===Lr?jr(c):{};m||(u.backgroundColor=a),r&&!l&&(u.backgroundPosition=`${100*r.x}% ${100*r.y}%`);const p=ut()(Wr(o),m,{"has-background-dim":0!==o,"has-parallax":l,[`has-${n}-content`]:"center"!==n});return(0,Ke.createElement)("div",{className:p,style:u},Dr===t&&c&&(0,Ke.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),!nt.RichText.isEmpty(s)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:n,contentAlign:a,...o}=t;return[o,[(0,Qe.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,tt.__)("Write title…")})]]}},pl={attributes:{...Kr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save({attributes:e}){const{url:t,title:n,hasParallax:a,dimRatio:o,align:r,contentAlign:l,overlayColor:i,customOverlayColor:s}=e,c=(0,nt.getColorClassName)("background-color",i),m=jr(t);c||(m.backgroundColor=s);const u=ut()("wp-block-cover-image",Wr(o),c,{"has-background-dim":0!==o,"has-parallax":a,[`has-${l}-content`]:"center"!==l},r?`align${r}`:null);return(0,Ke.createElement)("div",{className:u,style:m},!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:n}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:n,contentAlign:a,align:o,...r}=t;return[r,[(0,Qe.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,tt.__)("Write title…")})]]}},dl={attributes:{...Kr,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save({attributes:e}){const{url:t,title:n,hasParallax:a,dimRatio:o,align:r}=e,l=jr(t),i=ut()("wp-block-cover-image",Wr(o),{"has-background-dim":0!==o,"has-parallax":a},r?`align${r}`:null);return(0,Ke.createElement)("section",{className:i,style:l},(0,Ke.createElement)(nt.RichText.Content,{tagName:"h2",value:n}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:n,contentAlign:a,align:o,...r}=t;return[r,[(0,Qe.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,tt.__)("Write title…")})]]}},gl=[tl,nl,al,ol,rl,ll,il,sl,cl,ml,ul,pl,dl],{cleanEmptyObject:hl}=Ft(nt.privateApis);function bl({onChange:e,onUnitChange:t,unit:n="px",value:a=""}){const o=`block-cover-height-input-${(0,jt.useInstanceId)(et.__experimentalUnitControl)}`,r="px"===n,[l]=(0,nt.useSettings)("spacing.units"),i=(0,et.__experimentalUseCustomUnits)({availableUnits:l||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),s=(0,_t.useMemo)((()=>{const[e]=(0,et.__experimentalParseQuantityAndUnitFromRawValue)(a);return[e,n].join("")}),[n,a]),c=r?Fr:0;return(0,Ke.createElement)(et.__experimentalUnitControl,{label:(0,tt.__)("Minimum height of cover"),id:o,isResetValueOnUnitChange:!0,min:c,onChange:t=>{const n=""!==t?parseFloat(t):void 0;isNaN(n)&&void 0!==n||e(n)},onUnitChange:t,__unstableInputWidth:"80px",units:i,value:s})}function _l({attributes:e,setAttributes:t,clientId:n,setOverlayColor:a,coverRef:o,currentSettings:r,updateDimRatio:l,onClearMedia:i}){const{useFeaturedImage:s,dimRatio:c,focalPoint:m,hasParallax:u,isRepeated:p,minHeight:d,minHeightUnit:g,alt:h,tagName:b}=e,{isVideoBackground:_,isImageBackground:y,mediaElement:v,url:f,overlayColor:k}=r,{gradientValue:x,setGradient:w}=(0,nt.__experimentalUseGradient)(),E=_||y&&(!u||p),C=e=>{const[t,n]=v.current?[v.current.style,"objectPosition"]:[o.current.style,"backgroundPosition"];t[n]=Or(e)},S=(0,nt.__experimentalUseMultipleOriginColorsAndGradients)(),B={header:(0,tt.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,tt.__)("The <main> element should be used for the primary content of your document only."),section:(0,tt.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,tt.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,tt.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,tt.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,!!f&&(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},y&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Fixed background"),checked:u,onChange:()=>{t({hasParallax:!u,...u?{}:{focalPoint:void 0}})}}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Repeated background"),checked:p,onChange:()=>{t({isRepeated:!p})}})),E&&(0,Ke.createElement)(et.FocalPointPicker,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Focal point"),url:f,value:m,onDragStart:C,onDrag:C,onChange:e=>t({focalPoint:e})}),!s&&f&&!_&&(0,Ke.createElement)(et.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Alternative text"),value:h,onChange:e=>t({alt:e}),help:(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,tt.__)("Describe the purpose of the image.")),(0,Ke.createElement)("br",null),(0,tt.__)("Leave empty if decorative."))}),(0,Ke.createElement)(et.PanelRow,null,(0,Ke.createElement)(et.Button,{variant:"secondary",size:"small",className:"block-library-cover__reset-button",onClick:i},(0,tt.__)("Clear Media"))))),S.hasColorsOrGradients&&(0,Ke.createElement)(nt.InspectorControls,{group:"color"},(0,Ke.createElement)(nt.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:k.color,gradientValue:x,label:(0,tt.__)("Overlay"),onColorChange:a,onGradientChange:w,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0})}],panelId:n,...S}),(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>void 0!==c&&c!==(f?50:100),label:(0,tt.__)("Overlay opacity"),onDeselect:()=>l(f?50:100),resetAllFilter:()=>({dimRatio:f?50:100}),isShownByDefault:!0,panelId:n},(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Overlay opacity"),value:c,onChange:e=>l(e),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0}))),(0,Ke.createElement)(nt.InspectorControls,{group:"dimensions"},(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,tt.__)("Minimum height"),onDeselect:()=>t({minHeight:void 0,minHeightUnit:void 0}),resetAllFilter:()=>({minHeight:void 0,minHeightUnit:void 0}),isShownByDefault:!0,panelId:n},(0,Ke.createElement)(bl,{value:e?.style?.dimensions?.aspectRatio?"":d,unit:g,onChange:n=>t({minHeight:n,style:hl({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}),onUnitChange:e=>t({minHeightUnit:e})}))),(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("HTML element"),options:[{label:(0,tt.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:b,onChange:e=>t({tagName:e}),help:B[b]})))}const{cleanEmptyObject:yl}=Ft(nt.privateApis);function vl({attributes:e,setAttributes:t,onSelectMedia:n,currentSettings:a,toggleUseFeaturedImage:o}){const{contentPosition:r,id:l,useFeaturedImage:i,minHeight:s,minHeightUnit:c}=e,{hasInnerBlocks:m,url:u}=a,[p,d]=(0,_t.useState)(s),[g,h]=(0,_t.useState)(c),b="vh"===c&&100===s&&!e?.style?.dimensions?.aspectRatio;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.__experimentalBlockAlignmentMatrixControl,{label:(0,tt.__)("Change content position"),value:r,onChange:e=>t({contentPosition:e}),isDisabled:!m}),(0,Ke.createElement)(nt.__experimentalBlockFullHeightAligmentControl,{isActive:b,onToggle:()=>b?t("vh"===g&&100===p?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:p,minHeightUnit:g}):(d(s),h(c),t({minHeight:100,minHeightUnit:"vh",style:yl({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})})),isDisabled:!m})),(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(nt.MediaReplaceFlow,{mediaId:l,mediaURL:u,allowedTypes:$r,accept:"image/*,video/*",onSelect:n,onToggleFeaturedImage:o,useFeaturedImage:i,name:u?(0,tt.__)("Replace"):(0,tt.__)("Add Media")})))}function fl({disableMediaButtons:e=!1,children:t,onSelectMedia:n,onError:a,style:o,toggleUseFeaturedImage:r}){return(0,Ke.createElement)(nt.MediaPlaceholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:Ar}),labels:{title:(0,tt.__)("Cover"),instructions:(0,tt.__)("Drag and drop onto this block, upload, or select existing media from your library.")},onSelect:n,accept:"image/*,video/*",allowedTypes:$r,disableMediaButtons:e,onToggleFeaturedImage:r,onError:a,style:o},t)}const kl={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:xl}=Ft(nt.privateApis);function wl({className:e,height:t,minHeight:n,onResize:a,onResizeStart:o,onResizeStop:r,showHandle:l,size:i,width:s,...c}){const[m,u]=(0,_t.useState)(!1),p=(0,_t.useMemo)((()=>({height:t,minHeight:n,width:s})),[n,t,s]),d={className:ut()(e,{"is-resizing":m}),enable:kl,onResizeStart:(e,t,n)=>{o(n.clientHeight),a(n.clientHeight)},onResize:(e,t,n)=>{a(n.clientHeight),m||u(!0)},onResizeStop:(e,t,n)=>{r(n.clientHeight),u(!1)},showHandle:l,size:i,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:m}};return(0,Ke.createElement)(xl,{className:"block-library-cover__resizable-box-popover",__unstableRefreshSize:p,resizableBoxProps:d,...c})}var El={grad:.9,turn:360,rad:360/(2*Math.PI)},Cl=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Sl=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Bl=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Nl=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Tl=function(e){return{r:Bl(e.r,0,255),g:Bl(e.g,0,255),b:Bl(e.b,0,255),a:Bl(e.a)}},Il=function(e){return{r:Sl(e.r),g:Sl(e.g),b:Sl(e.b),a:Sl(e.a,3)}},Pl=/^#([0-9a-f]{3,8})$/i,Ml=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},zl=function(e){var t=e.r,n=e.g,a=e.b,o=e.a,r=Math.max(t,n,a),l=r-Math.min(t,n,a),i=l?r===t?(n-a)/l:r===n?2+(a-t)/l:4+(t-n)/l:0;return{h:60*(i<0?i+6:i),s:r?l/r*100:0,v:r/255*100,a:o}},Rl=function(e){var t=e.h,n=e.s,a=e.v,o=e.a;t=t/360*6,n/=100,a/=100;var r=Math.floor(t),l=a*(1-n),i=a*(1-(t-r)*n),s=a*(1-(1-t+r)*n),c=r%6;return{r:255*[a,i,l,l,s,a][c],g:255*[s,a,a,i,l,l][c],b:255*[l,l,s,a,a,i][c],a:o}},Al=function(e){return{h:Nl(e.h),s:Bl(e.s,0,100),l:Bl(e.l,0,100),a:Bl(e.a)}},Hl=function(e){return{h:Sl(e.h),s:Sl(e.s),l:Sl(e.l),a:Sl(e.a,3)}},Ll=function(e){return Rl((n=(t=e).s,{h:t.h,s:(n*=((a=t.l)<50?a:100-a)/100)>0?2*n/(a+n)*100:0,v:a+n,a:t.a}));var t,n,a},Dl=function(e){return{h:(t=zl(e)).h,s:(o=(200-(n=t.s))*(a=t.v)/100)>0&&o<200?n*a/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,a,o},Fl=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Vl=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,$l=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ol=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Gl={string:[[function(e){var t=Pl.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Sl(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Sl(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=$l.exec(e)||Ol.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Tl({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Fl.exec(e)||Vl.exec(e);if(!t)return null;var n,a,o=Al({h:(n=t[1],a=t[2],void 0===a&&(a="deg"),Number(n)*(El[a]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Ll(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,a=e.b,o=e.a,r=void 0===o?1:o;return Cl(t)&&Cl(n)&&Cl(a)?Tl({r:Number(t),g:Number(n),b:Number(a),a:Number(r)}):null},"rgb"],[function(e){var t=e.h,n=e.s,a=e.l,o=e.a,r=void 0===o?1:o;if(!Cl(t)||!Cl(n)||!Cl(a))return null;var l=Al({h:Number(t),s:Number(n),l:Number(a),a:Number(r)});return Ll(l)},"hsl"],[function(e){var t=e.h,n=e.s,a=e.v,o=e.a,r=void 0===o?1:o;if(!Cl(t)||!Cl(n)||!Cl(a))return null;var l=function(e){return{h:Nl(e.h),s:Bl(e.s,0,100),v:Bl(e.v,0,100),a:Bl(e.a)}}({h:Number(t),s:Number(n),v:Number(a),a:Number(r)});return Rl(l)},"hsv"]]},Ul=function(e,t){for(var n=0;n<t.length;n++){var a=t[n][0](e);if(a)return[a,t[n][1]]}return[null,void 0]},ql=function(e){return"string"==typeof e?Ul(e.trim(),Gl.string):"object"==typeof e&&null!==e?Ul(e,Gl.object):[null,void 0]},jl=function(e,t){var n=Dl(e);return{h:n.h,s:Bl(n.s+100*t,0,100),l:n.l,a:n.a}},Wl=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Zl=function(e,t){var n=Dl(e);return{h:n.h,s:n.s,l:Bl(n.l+100*t,0,100),a:n.a}},Ql=function(){function e(e){this.parsed=ql(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Sl(Wl(this.rgba),2)},e.prototype.isDark=function(){return Wl(this.rgba)<.5},e.prototype.isLight=function(){return Wl(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Il(this.rgba)).r,n=e.g,a=e.b,r=(o=e.a)<1?Ml(Sl(255*o)):"","#"+Ml(t)+Ml(n)+Ml(a)+r;var e,t,n,a,o,r},e.prototype.toRgb=function(){return Il(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Il(this.rgba)).r,n=e.g,a=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+a+", "+o+")":"rgb("+t+", "+n+", "+a+")";var e,t,n,a,o},e.prototype.toHsl=function(){return Hl(Dl(this.rgba))},e.prototype.toHslString=function(){return t=(e=Hl(Dl(this.rgba))).h,n=e.s,a=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+a+"%, "+o+")":"hsl("+t+", "+n+"%, "+a+"%)";var e,t,n,a,o},e.prototype.toHsv=function(){return e=zl(this.rgba),{h:Sl(e.h),s:Sl(e.s),v:Sl(e.v),a:Sl(e.a,3)};var e},e.prototype.invert=function(){return Kl({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Kl(jl(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Kl(jl(this.rgba,-e))},e.prototype.grayscale=function(){return Kl(jl(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Kl(Zl(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Kl(Zl(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Kl({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Sl(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Dl(this.rgba);return"number"==typeof e?Kl({h:e,s:t.s,l:t.l,a:t.a}):Sl(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Kl(e).toHex()},e}(),Kl=function(e){return e instanceof Ql?e:new Ql(e)},Yl=[];
+(()=>{var e={2321:e=>{e.exports=function(e){return e&&"__experimental"in e&&!1!==e.__experimental}},7734:e=>{"use strict";e.exports=function e(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var n,r,a;if(Array.isArray(t)){if((n=t.length)!=o.length)return!1;for(r=n;0!=r--;)if(!e(t[r],o[r]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],o.get(r[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(o)){if((n=t.length)!=o.length)return!1;for(r=n;0!=r--;)if(t[r]!==o[r])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(o,a[r]))return!1;for(r=n;0!=r--;){var i=a[r];if(!e(t[i],o[i]))return!1}return!0}return t!=t&&o!=o}},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},o=Object.keys(t).join("|"),n=new RegExp(o,"g"),r=new RegExp(o,"");function a(e){return t[e]}var i=function(e){return e.replace(n,a)};e.exports=i,e.exports.has=function(e){return!!e.match(r)},e.exports.remove=i}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{__experimentalGetCoreBlocks:()=>NB,__experimentalRegisterExperimentalCoreBlocks:()=>IB,privateApis:()=>BB,registerCoreBlocks:()=>TB});var e={};o.r(e),o.d(e,{init:()=>lt,metadata:()=>at,name:()=>it,settings:()=>st});var t={};o.r(t),o.d(t,{init:()=>Bt,metadata:()=>Ct,name:()=>jt,settings:()=>St});var r={};o.r(r),o.d(r,{init:()=>ro,metadata:()=>to,name:()=>oo,settings:()=>no});var a={};o.r(a),o.d(a,{init:()=>Io,metadata:()=>Bo,name:()=>No,settings:()=>To});var i={};o.r(i),o.d(i,{init:()=>Oo,metadata:()=>Eo,name:()=>$o,settings:()=>Go});var s={};o.r(s),o.d(s,{init:()=>Jo,metadata:()=>Zo,name:()=>Qo,settings:()=>Ko});var l={};o.r(l),o.d(l,{init:()=>rn,metadata:()=>tn,name:()=>on,settings:()=>nn});var c={};o.r(c),o.d(c,{init:()=>bn,metadata:()=>gn,name:()=>hn,settings:()=>xn});var u={};o.r(u),o.d(u,{init:()=>Sn,metadata:()=>wn,name:()=>Cn,settings:()=>jn});var d={};o.r(d),o.d(d,{init:()=>An,metadata:()=>Mn,name:()=>zn,settings:()=>Rn});var p={};o.r(p),o.d(p,{init:()=>er,metadata:()=>Jn,name:()=>Yn,settings:()=>Xn});var m={};o.r(m),o.d(m,{init:()=>pr,metadata:()=>cr,name:()=>ur,settings:()=>dr});var g={};o.r(g),o.d(g,{init:()=>xr,metadata:()=>mr,name:()=>gr,settings:()=>hr});var h={};o.r(h),o.d(h,{init:()=>wr,metadata:()=>vr,name:()=>fr,settings:()=>kr});var x={};o.r(x),o.d(x,{init:()=>Nr,metadata:()=>jr,name:()=>Sr,settings:()=>Br});var b={};o.r(b),o.d(b,{init:()=>Lr,metadata:()=>zr,name:()=>Rr,settings:()=>Ar});var _={};o.r(_),o.d(_,{init:()=>Er,metadata:()=>Dr,name:()=>Fr,settings:()=>Vr});var y={};o.r(y),o.d(y,{init:()=>Wr,metadata:()=>Or,name:()=>Ur,settings:()=>qr});var v={};o.r(v),o.d(v,{init:()=>aa,metadata:()=>oa,name:()=>na,settings:()=>ra});var f={};o.r(f),o.d(f,{init:()=>da,metadata:()=>la,name:()=>ca,settings:()=>ua});var k={};o.r(k),o.d(k,{init:()=>_a,metadata:()=>ha,name:()=>xa,settings:()=>ba});var w={};o.r(w),o.d(w,{init:()=>Ca,metadata:()=>fa,name:()=>ka,settings:()=>wa});var C={};o.r(C),o.d(C,{init:()=>Ia,metadata:()=>Ba,name:()=>Na,settings:()=>Ta});var j={};o.r(j),o.d(j,{init:()=>Da,metadata:()=>Aa,name:()=>La,settings:()=>Ha});var S={};o.r(S),o.d(S,{init:()=>Rs,metadata:()=>Ps,name:()=>Ms,settings:()=>zs});var B={};o.r(B),o.d(B,{init:()=>Es,metadata:()=>Ds,name:()=>Fs,settings:()=>Vs});var N={};o.r(N),o.d(N,{init:()=>Pl,metadata:()=>Nl,name:()=>Tl,settings:()=>Il});var T={};o.r(T),o.d(T,{init:()=>Zl,metadata:()=>Ul,name:()=>ql,settings:()=>Wl});var I={};o.r(I),o.d(I,{init:()=>rc,metadata:()=>tc,name:()=>oc,settings:()=>nc});var P={};o.r(P),o.d(P,{init:()=>xc,metadata:()=>mc,name:()=>gc,settings:()=>hc});var M={};o.r(M),o.d(M,{init:()=>kc,metadata:()=>yc,name:()=>vc,settings:()=>fc});var z={};o.r(z),o.d(z,{init:()=>Pc,metadata:()=>Nc,name:()=>Tc,settings:()=>Ic});var R={};o.r(R),o.d(R,{init:()=>qu,metadata:()=>Gu,name:()=>Ou,settings:()=>Uu});var A={};o.r(A),o.d(A,{init:()=>cd,metadata:()=>id,name:()=>sd,settings:()=>ld});var L={};o.r(L),o.d(L,{init:()=>Md,metadata:()=>Td,name:()=>Id,settings:()=>Pd});var H={};o.r(H),o.d(H,{init:()=>Dd,metadata:()=>Ad,name:()=>Ld,settings:()=>Hd});var D={};o.r(D),o.d(D,{init:()=>Wd,metadata:()=>Od,name:()=>Ud,settings:()=>qd});var F={};o.r(F),o.d(F,{init:()=>kp,metadata:()=>yp,name:()=>vp,settings:()=>fp});var V={};o.r(V),o.d(V,{init:()=>Bp,metadata:()=>Cp,name:()=>jp,settings:()=>Sp});var E={};o.r(E),o.d(E,{init:()=>Hp,metadata:()=>Rp,name:()=>Ap,settings:()=>Lp});var $={};o.r($),o.d($,{init:()=>dm,metadata:()=>lm,name:()=>cm,settings:()=>um});var G={};o.r(G),o.d(G,{init:()=>Cm,metadata:()=>fm,name:()=>km,settings:()=>wm});var O={};o.r(O),o.d(O,{init:()=>Tm,metadata:()=>Sm,name:()=>Bm,settings:()=>Nm});var U={};o.r(U),o.d(U,{init:()=>xg,metadata:()=>mg,name:()=>gg,settings:()=>hg});var q={};o.r(q),o.d(q,{init:()=>kg,metadata:()=>yg,name:()=>vg,settings:()=>fg});var W={};o.r(W),o.d(W,{init:()=>Tg,metadata:()=>Sg,name:()=>Bg,settings:()=>Ng});var Z={};o.r(Z),o.d(Z,{init:()=>ix,metadata:()=>nx,name:()=>rx,settings:()=>ax});var Q={};o.r(Q),o.d(Q,{init:()=>vx,metadata:()=>bx,name:()=>_x,settings:()=>yx});var K={};o.r(K),o.d(K,{init:()=>Ix,metadata:()=>Bx,name:()=>Nx,settings:()=>Tx});var J={};o.r(J),o.d(J,{init:()=>Lx,metadata:()=>zx,name:()=>Rx,settings:()=>Ax});var Y={};o.r(Y),o.d(Y,{init:()=>qx,metadata:()=>Gx,name:()=>Ox,settings:()=>Ux});var X={};o.r(X),o.d(X,{init:()=>rb,metadata:()=>tb,name:()=>ob,settings:()=>nb});var ee={};o.r(ee),o.d(ee,{init:()=>cb,metadata:()=>ib,name:()=>sb,settings:()=>lb});var te={};o.r(te),o.d(te,{init:()=>Ib,metadata:()=>Bb,name:()=>Nb,settings:()=>Tb});var oe={};o.r(oe),o.d(oe,{init:()=>Hb,metadata:()=>Rb,name:()=>Ab,settings:()=>Lb});var ne={};o.r(ne),o.d(ne,{init:()=>Gb,metadata:()=>Vb,name:()=>Eb,settings:()=>$b});var re={};o.r(re),o.d(re,{init:()=>Zb,metadata:()=>Ub,name:()=>qb,settings:()=>Wb});var ae={};o.r(ae),o.d(ae,{init:()=>e_,metadata:()=>Jb,name:()=>Yb,settings:()=>Xb});var ie={};o.r(ie),o.d(ie,{init:()=>a_,metadata:()=>o_,name:()=>n_,settings:()=>r_});var se={};o.r(se),o.d(se,{init:()=>u_,metadata:()=>s_,name:()=>l_,settings:()=>c_});var le={};o.r(le),o.d(le,{init:()=>h_,metadata:()=>p_,name:()=>m_,settings:()=>g_});var ce={};o.r(ce),o.d(ce,{init:()=>j_,metadata:()=>k_,name:()=>w_,settings:()=>C_});var ue={};o.r(ue),o.d(ue,{init:()=>R_,metadata:()=>P_,name:()=>M_,settings:()=>z_});var de={};o.r(de),o.d(de,{init:()=>V_,metadata:()=>H_,name:()=>D_,settings:()=>F_});var pe={};o.r(pe),o.d(pe,{init:()=>X_,metadata:()=>K_,name:()=>J_,settings:()=>Y_});var me={};o.r(me),o.d(me,{init:()=>sy,metadata:()=>ry,name:()=>ay,settings:()=>iy});var ge={};o.r(ge),o.d(ge,{init:()=>gy,metadata:()=>dy,name:()=>py,settings:()=>my});var he={};o.r(he),o.d(he,{init:()=>Cy,metadata:()=>fy,name:()=>ky,settings:()=>wy});var xe={};o.r(xe),o.d(xe,{init:()=>Py,metadata:()=>Ny,name:()=>Ty,settings:()=>Iy});var be={};o.r(be),o.d(be,{init:()=>Hy,metadata:()=>Ry,name:()=>Ay,settings:()=>Ly});var _e={};o.r(_e),o.d(_e,{init:()=>Oy,metadata:()=>Ey,name:()=>$y,settings:()=>Gy});var ye={};o.r(ye),o.d(ye,{init:()=>uv,metadata:()=>sv,name:()=>lv,settings:()=>cv});var ve={};o.r(ve),o.d(ve,{init:()=>ff,metadata:()=>_f,name:()=>yf,settings:()=>vf});var fe={};o.r(fe),o.d(fe,{init:()=>Sf,metadata:()=>wf,name:()=>Cf,settings:()=>jf});var ke={};o.r(ke),o.d(ke,{init:()=>Rf,metadata:()=>Pf,name:()=>Mf,settings:()=>zf});var we={};o.r(we),o.d(we,{init:()=>Ff,metadata:()=>Lf,name:()=>Hf,settings:()=>Df});var Ce={};o.r(Ce),o.d(Ce,{init:()=>Of,metadata:()=>Ef,name:()=>$f,settings:()=>Gf});var je={};o.r(je),o.d(je,{init:()=>Qf,metadata:()=>qf,name:()=>Wf,settings:()=>Zf});var Se={};o.r(Se),o.d(Se,{init:()=>rk,metadata:()=>tk,name:()=>ok,settings:()=>nk});var Be={};o.r(Be),o.d(Be,{init:()=>wk,metadata:()=>vk,name:()=>fk,settings:()=>kk});var Ne={};o.r(Ne),o.d(Ne,{init:()=>Ek,metadata:()=>Dk,name:()=>Fk,settings:()=>Vk});var Te={};o.r(Te),o.d(Te,{init:()=>Uk,metadata:()=>$k,name:()=>Gk,settings:()=>Ok});var Ie={};o.r(Ie),o.d(Ie,{init:()=>Kk,metadata:()=>Wk,name:()=>Zk,settings:()=>Qk});var Pe={};o.r(Pe),o.d(Pe,{init:()=>cw,metadata:()=>iw,name:()=>sw,settings:()=>lw});var Me={};o.r(Me),o.d(Me,{init:()=>bw,metadata:()=>gw,name:()=>hw,settings:()=>xw});var ze={};o.r(ze),o.d(ze,{init:()=>Cw,metadata:()=>fw,name:()=>kw,settings:()=>ww});var Re={};o.r(Re),o.d(Re,{init:()=>Aw,metadata:()=>Mw,name:()=>zw,settings:()=>Rw});var Ae={};o.r(Ae),o.d(Ae,{init:()=>Gw,metadata:()=>Vw,name:()=>Ew,settings:()=>$w});var Le={};o.r(Le),o.d(Le,{init:()=>Yw,metadata:()=>Qw,name:()=>Kw,settings:()=>Jw});var He={};o.r(He),o.d(He,{init:()=>cC,metadata:()=>iC,name:()=>sC,settings:()=>lC});var De={};o.r(De),o.d(De,{init:()=>_C,metadata:()=>hC,name:()=>xC,settings:()=>bC});var Fe={};o.r(Fe),o.d(Fe,{init:()=>MC,metadata:()=>TC,name:()=>IC,settings:()=>PC});var Ve={};o.r(Ve),o.d(Ve,{init:()=>_j,metadata:()=>hj,name:()=>xj,settings:()=>bj});var Ee={};o.r(Ee),o.d(Ee,{init:()=>Tj,metadata:()=>Sj,name:()=>Bj,settings:()=>Nj});var $e={};o.r($e),o.d($e,{init:()=>Aj,metadata:()=>Mj,name:()=>zj,settings:()=>Rj});var Ge={};o.r(Ge),o.d(Ge,{init:()=>_S,metadata:()=>hS,name:()=>xS,settings:()=>bS});var Oe={};o.r(Oe),o.d(Oe,{init:()=>wS,metadata:()=>vS,name:()=>fS,settings:()=>kS});var Ue={};o.r(Ue),o.d(Ue,{init:()=>TS,metadata:()=>SS,name:()=>BS,settings:()=>NS});var qe={};o.r(qe),o.d(qe,{init:()=>DS,metadata:()=>AS,name:()=>LS,settings:()=>HS});var We={};o.r(We),o.d(We,{init:()=>sB,metadata:()=>rB,name:()=>aB,settings:()=>iB});var Ze={};o.r(Ze),o.d(Ze,{init:()=>kB,metadata:()=>yB,name:()=>vB,settings:()=>fB});const Qe=window.wp.blocks,Ke=window.wp.primitives,Je=window.ReactJSXRuntime,Ye=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"})});function Xe(e){if(!e)return;const{metadata:t,settings:o,name:n}=e;return(0,Qe.registerBlockType)({name:n,...t},o)}const et=window.wp.components,tt=window.wp.i18n,ot=window.wp.blockEditor,nt=window.wp.serverSideRender;var rt=o.n(nt);const at={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/archives",title:"Archives",category:"widgets",description:"Display a date archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showLabel:{type:"boolean",default:!0},showPostCounts:{type:"boolean",default:!1},type:{type:"string",default:"monthly"}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-archives-editor"},{name:it}=at,st={icon:Ye,example:{},edit:function({attributes:e,setAttributes:t}){const{showLabel:o,showPostCounts:n,displayAsDropdown:r,type:a}=e;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display as dropdown"),checked:r,onChange:()=>t({displayAsDropdown:!r})}),r&&(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show label"),checked:o,onChange:()=>t({showLabel:!o})}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show post counts"),checked:n,onChange:()=>t({showPostCounts:!n})}),(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Group by:"),options:[{label:(0,tt.__)("Year"),value:"yearly"},{label:(0,tt.__)("Month"),value:"monthly"},{label:(0,tt.__)("Week"),value:"weekly"},{label:(0,tt.__)("Day"),value:"daily"}],value:a,onChange:e=>t({type:e})})]})}),(0,Je.jsx)("div",{...(0,ot.useBlockProps)(),children:(0,Je.jsx)(et.Disabled,{children:(0,Je.jsx)(rt(),{block:"core/archives",skipBlockSupportAttributes:!0,attributes:e})})})]})}},lt=()=>Xe({name:it,metadata:at,settings:st}),ct=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})});function ut(e){var t,o,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=ut(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}const dt=function(){for(var e,t,o=0,n="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=ut(e))&&(n&&(n+=" "),n+=t);return n},pt=window.wp.url,mt=window.wp.coreData,gt=window.wp.data;function ht(e){const t=e?e[0]:24,o=e?e[e.length-1]:96;return{minSize:t,maxSize:Math.floor(2.5*o)}}function xt(){const{avatarURL:e}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(ot.store),{__experimentalDiscussionSettings:o}=t();return o}));return e}const bt=window.wp.element,_t={who:"authors",per_page:-1,_fields:"id,name",context:"view"};const yt=function({value:e,onChange:t}){const[o,n]=(0,bt.useState)(),r=(0,gt.useSelect)((e=>{const{getUsers:t}=e(mt.store);return t(_t)}),[]);if(!r)return null;const a=r.map((e=>({label:e.name,value:e.id})));return(0,Je.jsx)(et.ComboboxControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("User"),help:(0,tt.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:o||a,onFilterValueChange:e=>n(a.filter((t=>t.label.toLowerCase().startsWith(e.toLowerCase()))))})},vt=({setAttributes:e,avatar:t,attributes:o,selectUser:n})=>(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Image size"),onChange:t=>e({size:t}),min:t.minSize,max:t.maxSize,initialPosition:o?.size,value:o?.size}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to user profile"),onChange:()=>e({isLink:!o.isLink}),checked:o.isLink}),o.isLink&&(0,Je.jsx)(et.ToggleControl,{label:(0,tt.__)("Open in new tab"),onChange:t=>e({linkTarget:t?"_blank":"_self"}),checked:"_blank"===o.linkTarget}),n&&(0,Je.jsx)(yt,{value:o?.userId,onChange:t=>{e({userId:t})}})]})}),ft=({setAttributes:e,attributes:t,avatar:o,blockProps:n,isSelected:r})=>{const a=(0,ot.__experimentalUseBorderProps)(t),i=(0,pt.addQueryArgs)((0,pt.removeQueryArgs)(o?.src,["s"]),{s:2*t?.size});return(0,Je.jsx)("div",{...n,children:(0,Je.jsx)(et.ResizableBox,{size:{width:t.size,height:t.size},showHandle:r,onResizeStop:(o,n,r,a)=>{e({size:parseInt(t.size+(a.height||a.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,tt.isRTL)(),bottom:!0,left:(0,tt.isRTL)()},minWidth:o.minSize,maxWidth:o.maxSize,children:(0,Je.jsx)("img",{src:i,alt:o.alt,className:dt("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",a.className),style:a.style})})})},kt=({attributes:e,context:t,setAttributes:o,isSelected:n})=>{const{commentId:r}=t,a=(0,ot.useBlockProps)(),i=function({commentId:e}){const[t]=(0,mt.useEntityProp)("root","comment","author_avatar_urls",e),[o]=(0,mt.useEntityProp)("root","comment","author_name",e),n=t?Object.values(t):null,r=t?Object.keys(t):null,{minSize:a,maxSize:i}=ht(r),s=xt();return{src:n?n[n.length-1]:s,minSize:a,maxSize:i,alt:o?(0,tt.sprintf)((0,tt.__)("%s Avatar"),o):(0,tt.__)("Default Avatar")}}({commentId:r});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(vt,{avatar:i,setAttributes:o,attributes:e,selectUser:!1}),e.isLink?(0,Je.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault(),children:(0,Je.jsx)(ft,{attributes:e,avatar:i,blockProps:a,isSelected:n,setAttributes:o})}):(0,Je.jsx)(ft,{attributes:e,avatar:i,blockProps:a,isSelected:n,setAttributes:o})]})},wt=({attributes:e,context:t,setAttributes:o,isSelected:n})=>{const{postId:r,postType:a}=t,i=function({userId:e,postId:t,postType:o}){const{authorDetails:n}=(0,gt.useSelect)((n=>{const{getEditedEntityRecord:r,getUser:a}=n(mt.store);if(e)return{authorDetails:a(e)};const i=r("postType",o,t)?.author;return{authorDetails:i?a(i):null}}),[o,t,e]),r=n?.avatar_urls?Object.values(n.avatar_urls):null,a=n?.avatar_urls?Object.keys(n.avatar_urls):null,{minSize:i,maxSize:s}=ht(a),l=xt();return{src:r?r[r.length-1]:l,minSize:i,maxSize:s,alt:n?(0,tt.sprintf)((0,tt.__)("%s Avatar"),n?.name):(0,tt.__)("Default Avatar")}}({userId:e?.userId,postId:r,postType:a}),s=(0,ot.useBlockProps)();return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(vt,{selectUser:!0,attributes:e,avatar:i,setAttributes:o}),e.isLink?(0,Je.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault(),children:(0,Je.jsx)(ft,{attributes:e,avatar:i,blockProps:s,isSelected:n,setAttributes:o})}):(0,Je.jsx)(ft,{attributes:e,avatar:i,blockProps:s,isSelected:n,setAttributes:o})]})};const Ct={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/avatar",title:"Avatar",category:"theme",description:"Add a user’s avatar.",textdomain:"default",attributes:{userId:{type:"number"},size:{type:"number",default:96},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","commentId"],supports:{html:!1,align:!0,alignWide:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{__experimentalSkipSerialization:!0,radius:!0,width:!0,color:!0,style:!0,__experimentalDefaultControls:{radius:!0}},color:{text:!1,background:!1,__experimentalDuotone:"img"},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-avatar img"},editorStyle:"wp-block-avatar-editor",style:"wp-block-avatar"},{name:jt}=Ct,St={icon:ct,edit:function(e){return e?.context?.commentId||null===e?.context?.commentId?(0,Je.jsx)(kt,{...e}):(0,Je.jsx)(wt,{...e})}},Bt=()=>Xe({name:jt,metadata:Ct,settings:St}),Nt=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.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"})}),Tt=[{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({attributes:e}){const{autoplay:t,caption:o,loop:n,preload:r,src:a}=e;return(0,Je.jsxs)("figure",{children:[(0,Je.jsx)("audio",{controls:"controls",src:a,autoPlay:t,loop:n,preload:r}),!ot.RichText.isEmpty(o)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",value:o})]})}}],It=window.wp.blob,Pt=window.wp.notices;function Mt(e,t){var o,n,r=0;function a(){var a,i,s=o,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i<l;i++)if(s.args[i]!==arguments[i]){s=s.next;continue e}return s!==o&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=o,s.prev=null,o.prev=s,o=s),s.val}s=s.next}for(a=new Array(l),i=0;i<l;i++)a[i]=arguments[i];return s={args:a,val:e.apply(null,a)},o?(o.prev=s,s.next=o):n=s,r===t.maxSize?(n=n.prev).next=null:r++,o=s,s.val}return t=t||{},a.clear=function(){o=null,n=null,r=0},a}const zt=[{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"}],Rt="wp-embed",At=window.wp.privateApis,{lock:Lt,unlock:Ht}=(0,At.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/block-library"),{name:Dt}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},{kebabCase:Ft}=Ht(et.privateApis),Vt=e=>e&&e.includes('class="wp-embedded-content"'),Et=(e,t={})=>{const{preview:o,attributes:n={}}=e,{url:r,providerNameSlug:a,type:i,...s}=n;if(!r||!(0,Qe.getBlockType)(Dt))return;const l=(e=>(0,Qe.getBlockVariations)(Dt)?.find((({patterns:t})=>((e,t=[])=>t.some((t=>e.match(t))))(e,t))))(r),c="wordpress"===a||i===Rt;if(!c&&l&&(l.attributes.providerNameSlug!==a||!a))return(0,Qe.createBlock)(Dt,{url:r,...s,...l.attributes});const u=(0,Qe.getBlockVariations)(Dt)?.find((({name:e})=>"wordpress"===e));return u&&o&&Vt(o.html)&&!c?(0,Qe.createBlock)(Dt,{url:r,...u.attributes,...t}):void 0},$t=e=>{if(!e)return e;const t=zt.reduce(((e,{className:t})=>(e.push(t),e)),["wp-has-aspect-ratio"]);let o=e;for(const e of t)o=o.replace(e,"");return o.trim()};function Gt(e,t,o=!0){if(!o)return $t(t);const n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;const r=n.body.querySelector("iframe");if(r&&r.height&&r.width){const e=(r.width/r.height).toFixed(2);for(let o=0;o<zt.length;o++){const n=zt[o];if(e>=n.ratio){return e-n.ratio>.1?$t(t):dt($t(t),n.className,"wp-has-aspect-ratio")}}}return t}const Ot=Mt(((e,t,o,n,r=!0)=>{if(!e)return{};const a={};let{type:i="rich"}=e;const{html:s,provider_name:l}=e,c=Ft((l||t).toLowerCase());return Vt(s)&&(i=Rt),(s||"photo"===i)&&(a.type=i,a.providerNameSlug=c),(u=o)&&zt.some((({className:e})=>u.includes(e)))||(a.className=Gt(s,o,n&&r)),a;var u})),Ut=window.wp.compose;function qt(e,t,o){return(0,gt.useSelect)((n=>n(mt.store).canUserEditEntityRecord(e,t,o)),[e,t,o])}function Wt(e={}){const t=(0,bt.useRef)(e),o=(0,bt.useRef)(!1),{getSettings:n}=(0,gt.useSelect)(ot.store);(0,bt.useLayoutEffect)((()=>{t.current=e})),(0,bt.useEffect)((()=>{if(o.current)return;if(!t.current.url||!(0,It.isBlobURL)(t.current.url))return;const e=(0,It.getBlobByURL)(t.current.url);if(!e)return;const{url:r,allowedTypes:a,onChange:i,onError:s}=t.current,{mediaUpload:l}=n();o.current=!0,l({filesList:[e],allowedTypes:a,onFileChange:([e])=>{(0,It.isBlobURL)(e?.url)||((0,It.revokeBlobURL)(r),i(e),o.current=!1)},onError:e=>{(0,It.revokeBlobURL)(r),s(e),o.current=!1}})}),[n])}function Zt(){return(0,Ut.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}const Qt=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})});function Kt({attributeKey:e="caption",attributes:t,setAttributes:o,isSelected:n,insertBlocksAfter:r,placeholder:a=(0,tt.__)("Add caption"),label:i=(0,tt.__)("Caption text"),showToolbarButton:s=!0,excludeElementClassName:l,className:c,readOnly:u,tagName:d="figcaption",addLabel:p=(0,tt.__)("Add caption"),removeLabel:m=(0,tt.__)("Remove caption"),icon:g=Qt,...h}){const x=t[e],b=(0,Ut.usePrevious)(x),{PrivateRichText:_}=Ht(ot.privateApis),y=_.isEmpty(x),v=_.isEmpty(b),[f,k]=(0,bt.useState)(!y);(0,bt.useEffect)((()=>{!y&&v&&k(!0)}),[y,v]),(0,bt.useEffect)((()=>{!n&&y&&k(!1)}),[n,y]);const w=(0,bt.useCallback)((e=>{e&&y&&e.focus()}),[y]);return(0,Je.jsxs)(Je.Fragment,{children:[s&&(0,Je.jsx)(ot.BlockControls,{group:"block",children:(0,Je.jsx)(et.ToolbarButton,{onClick:()=>{k(!f),f&&x&&o({[e]:void 0})},icon:g,isPressed:f,label:f?m:p})}),f&&(!_.isEmpty(x)||n)&&(0,Je.jsx)(_,{identifier:e,tagName:d,className:dt(c,l?"":(0,ot.__experimentalGetElementClassName)("caption")),ref:w,"aria-label":i,placeholder:a,value:x,onChange:t=>o({[e]:t}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>r((0,Qe.createBlock)((0,Qe.getDefaultBlockName)())),readOnly:u,...h})]})}const Jt=["audio"];const Yt=function({attributes:e,className:t,setAttributes:o,onReplace:n,isSelected:r,insertBlocksAfter:a}){const{id:i,autoplay:s,loop:l,preload:c,src:u}=e,d=!i&&(0,It.isBlobURL)(u);function p(e){return t=>{o({[e]:t})}}function m(e){if(e!==u){const t=Et({attributes:{url:e}});if(void 0!==t&&n)return void n(t);o({src:e,id:void 0})}}Wt({url:u,allowedTypes:Jt,onChange:x,onError:h});const{createErrorNotice:g}=(0,gt.useDispatch)(Pt.store);function h(e){g(e,{type:"snackbar"})}function x(e){e&&e.url?o({src:e.url,id:e.id,caption:e.caption}):o({src:void 0,id:void 0,caption:void 0})}const b=dt(t,{"is-transient":d}),_=(0,ot.useBlockProps)({className:b});return u?(0,Je.jsxs)(Je.Fragment,{children:[r&&(0,Je.jsx)(ot.BlockControls,{group:"other",children:(0,Je.jsx)(ot.MediaReplaceFlow,{mediaId:i,mediaURL:u,allowedTypes:Jt,accept:"audio/*",onSelect:x,onSelectURL:m,onError:h})}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Autoplay"),onChange:p("autoplay"),checked:s,help:function(e){return e?(0,tt.__)("Autoplay may cause usability issues for some users."):null}}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Loop"),onChange:p("loop"),checked:l}),(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt._x)("Preload","noun; Audio block parameter"),value:c||"",onChange:e=>o({preload:e||void 0}),options:[{value:"",label:(0,tt.__)("Browser default")},{value:"auto",label:(0,tt.__)("Auto")},{value:"metadata",label:(0,tt.__)("Metadata")},{value:"none",label:(0,tt._x)("None","Preload value")}]})]})}),(0,Je.jsxs)("figure",{..._,children:[(0,Je.jsx)(et.Disabled,{isDisabled:!r,children:(0,Je.jsx)("audio",{controls:"controls",src:u})}),d&&(0,Je.jsx)(et.Spinner,{}),(0,Je.jsx)(Kt,{attributes:e,setAttributes:o,isSelected:r,insertBlocksAfter:a,label:(0,tt.__)("Audio caption text"),showToolbarButton:r})]})]}):(0,Je.jsx)("div",{..._,children:(0,Je.jsx)(ot.MediaPlaceholder,{icon:(0,Je.jsx)(ot.BlockIcon,{icon:Nt}),onSelect:x,onSelectURL:m,accept:"audio/*",allowedTypes:Jt,value:e,onError:h})})};const Xt={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("audio/"),transform(e){const t=e[0];return(0,Qe.createBlock)("core/audio",{src:(0,It.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:o,ogg:n,wav:r,wma:a}})=>e||t||o||n||r||a},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]},eo=Xt,to={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},id:{type:"number",__experimentalRole:"content"},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:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:oo}=to,no={icon:Nt,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:eo,deprecated:Tt,edit:Yt,save:function({attributes:e}){const{autoplay:t,caption:o,loop:n,preload:r,src:a}=e;return a&&(0,Je.jsxs)("figure",{...ot.useBlockProps.save(),children:[(0,Je.jsx)("audio",{controls:"controls",src:a,autoPlay:t,loop:n,preload:r}),!ot.RichText.isEmpty(o)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",value:o,className:(0,ot.__experimentalGetElementClassName)("caption")})]})}},ro=()=>Xe({name:oo,metadata:to,settings:no}),ao=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})}),{cleanEmptyObject:io}=Ht(ot.privateApis);function so(e){if(!e?.style?.typography?.fontFamily)return e;const{fontFamily:t,...o}=e.style.typography;return{...e,style:io({...e.style,typography:o}),fontFamily:t.split("|").pop()}}const lo=e=>{const{borderRadius:t,...o}=e,n=[t,o.style?.border?.radius].find((e=>"number"==typeof e&&0!==e));return n?{...o,style:{...o.style,border:{...o.style?.border,radius:`${n}px`}}}:o};const co=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);const{customTextColor:o,customBackgroundColor:n,customGradient:r,...a}=e;return{...a,style:t}},uo=e=>{const{color:t,textColor:o,...n}={...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0};return co(n)},po={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},mo={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:o,linkTarget:n,rel:r,style:a,text:i,title:s,url:l,width:c}=e;if(!i)return null;const u=(0,ot.__experimentalGetBorderClassesAndStyles)(e),d=(0,ot.__experimentalGetColorClassesAndStyles)(e),p=(0,ot.__experimentalGetSpacingClassesAndStyles)(e),m=dt("wp-block-button__link",d.className,u.className,{"no-border-radius":0===a?.border?.radius}),g={...u.style,...d.style,...p.style},h=dt(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":o||a?.typography?.fontSize});return(0,Je.jsx)("div",{...ot.useBlockProps.save({className:h}),children:(0,Je.jsx)(ot.RichText.Content,{tagName:"a",className:m,href:l,title:s,style:g,value:i,target:n,rel:r})})}},go={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:o,linkTarget:n,rel:r,style:a,text:i,title:s,url:l,width:c}=e;if(!i)return null;const u=(0,ot.__experimentalGetBorderClassesAndStyles)(e),d=(0,ot.__experimentalGetColorClassesAndStyles)(e),p=(0,ot.__experimentalGetSpacingClassesAndStyles)(e),m=dt("wp-block-button__link",d.className,u.className,{"no-border-radius":0===a?.border?.radius}),g={...u.style,...d.style,...p.style},h=dt(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":o||a?.typography?.fontSize});return(0,Je.jsx)("div",{...ot.useBlockProps.save({className:h}),children:(0,Je.jsx)(ot.RichText.Content,{tagName:"a",className:m,href:l,title:s,style:g,value:i,target:n,rel:r})})},migrate:so,isEligible:({style:e})=>e?.typography?.fontFamily},ho=[mo,go,{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...po,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible:({style:e})=>"number"==typeof e?.border?.radius,save({attributes:e,className:t}){const{fontSize:o,linkTarget:n,rel:r,style:a,text:i,title:s,url:l,width:c}=e;if(!i)return null;const u=a?.border?.radius,d=(0,ot.__experimentalGetColorClassesAndStyles)(e),p=dt("wp-block-button__link",d.className,{"no-border-radius":0===a?.border?.radius}),m={borderRadius:u||void 0,...d.style},g=dt(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":o||a?.typography?.fontSize});return(0,Je.jsx)("div",{...ot.useBlockProps.save({className:g}),children:(0,Je.jsx)(ot.RichText.Content,{tagName:"a",className:p,href:l,title:s,style:m,value:i,target:n,rel:r})})},migrate:(0,Ut.compose)(so,lo)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...po,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"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:o,linkTarget:n,rel:r,text:a,title:i,url:s,width:l}=e,c=(0,ot.__experimentalGetColorClassesAndStyles)(e),u=dt("wp-block-button__link",c.className,{"no-border-radius":0===o}),d={borderRadius:o?o+"px":void 0,...c.style},p=dt(t,{[`has-custom-width wp-block-button__width-${l}`]:l});return(0,Je.jsx)("div",{...ot.useBlockProps.save({className:p}),children:(0,Je.jsx)(ot.RichText.Content,{tagName:"a",className:u,href:s,title:i,style:d,value:a,target:n,rel:r})})},migrate:(0,Ut.compose)(so,lo)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...po,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"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:o,linkTarget:n,rel:r,text:a,title:i,url:s,width:l}=e,c=(0,ot.__experimentalGetColorClassesAndStyles)(e),u=dt("wp-block-button__link",c.className,{"no-border-radius":0===o}),d={borderRadius:o?o+"px":void 0,...c.style},p=dt(t,{[`has-custom-width wp-block-button__width-${l}`]:l});return(0,Je.jsx)("div",{...ot.useBlockProps.save({className:p}),children:(0,Je.jsx)(ot.RichText.Content,{tagName:"a",className:u,href:s,title:i,style:d,value:a,target:n,rel:r})})},migrate:(0,Ut.compose)(so,lo)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...po,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({attributes:e}){const{borderRadius:t,linkTarget:o,rel:n,text:r,title:a,url:i}=e,s=dt("wp-block-button__link",{"no-border-radius":0===t}),l={borderRadius:t?t+"px":void 0};return(0,Je.jsx)(ot.RichText.Content,{tagName:"a",className:s,href:i,title:a,style:l,value:r,target:o,rel:n})},migrate:lo},{supports:{align:!0,alignWide:!1},attributes:{...po,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:e=>!!(e.customTextColor||e.customBackgroundColor||e.customGradient||e.align),migrate:(0,Ut.compose)(lo,co,(function(e){if(!e.align)return e;const{align:t,...o}=e;return{...o,className:dt(o.className,`align${e.align}`)}})),save({attributes:e}){const{backgroundColor:t,borderRadius:o,customBackgroundColor:n,customTextColor:r,customGradient:a,linkTarget:i,gradient:s,rel:l,text:c,textColor:u,title:d,url:p}=e,m=(0,ot.getColorClassName)("color",u),g=!a&&(0,ot.getColorClassName)("background-color",t),h=(0,ot.__experimentalGetGradientClass)(s),x=dt("wp-block-button__link",{"has-text-color":u||r,[m]:m,"has-background":t||n||a||s,[g]:g,"no-border-radius":0===o,[h]:h}),b={background:a||void 0,backgroundColor:g||a||s?void 0:n,color:m?void 0:r,borderRadius:o?o+"px":void 0};return(0,Je.jsx)("div",{children:(0,Je.jsx)(ot.RichText.Content,{tagName:"a",className:x,href:p,title:d,style:b,value:c,target:i,rel:l})})}},{attributes:{...po,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible:e=>e.className&&e.className.includes("is-style-squared"),migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),lo(co({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,customTextColor:n,linkTarget:r,rel:a,text:i,textColor:s,title:l,url:c}=e,u=(0,ot.getColorClassName)("color",s),d=(0,ot.getColorClassName)("background-color",t),p=dt("wp-block-button__link",{"has-text-color":s||n,[u]:u,"has-background":t||o,[d]:d}),m={backgroundColor:d?void 0:o,color:u?void 0:n};return(0,Je.jsx)("div",{children:(0,Je.jsx)(ot.RichText.Content,{tagName:"a",className:p,href:c,title:l,style:m,value:i,target:r,rel:a})})}},{attributes:{...po,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:uo,save({attributes:e}){const{url:t,text:o,title:n,backgroundColor:r,textColor:a,customBackgroundColor:i,customTextColor:s}=e,l=(0,ot.getColorClassName)("color",a),c=(0,ot.getColorClassName)("background-color",r),u=dt("wp-block-button__link",{"has-text-color":a||s,[l]:l,"has-background":r||i,[c]:c}),d={backgroundColor:c?void 0:i,color:l?void 0:s};return(0,Je.jsx)("div",{children:(0,Je.jsx)(ot.RichText.Content,{tagName:"a",className:u,href:t,title:n,style:d,value:o})})}},{attributes:{...po,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:o,title:n,align:r,color:a,textColor:i}=e,s={backgroundColor:a,color:i};return(0,Je.jsx)("div",{className:`align${r}`,children:(0,Je.jsx)(ot.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:n,style:s,value:o})})},migrate:uo},{attributes:{...po,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:o,title:n,align:r,color:a,textColor:i}=e;return(0,Je.jsx)("div",{className:`align${r}`,style:{backgroundColor:a},children:(0,Je.jsx)(ot.RichText.Content,{tagName:"a",href:t,title:n,style:{color:i},value:o})})},migrate:uo}],xo=ho,bo="noreferrer noopener",_o="_blank",yo="nofollow";function vo(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}const fo=window.wp.keycodes,ko=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})}),wo=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})}),Co=[...ot.__experimentalLinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,tt.__)("Mark as nofollow")}];function jo({selectedWidth:e,setAttributes:t}){return(0,Je.jsx)(et.PanelBody,{title:(0,tt.__)("Settings"),children:(0,Je.jsx)(et.ButtonGroup,{"aria-label":(0,tt.__)("Button width"),children:[25,50,75,100].map((o=>(0,Je.jsxs)(et.Button,{size:"small",variant:o===e?"primary":void 0,onClick:()=>{var n;t({width:e===(n=o)?void 0:n})},children:[o,"%"]},o)))})})}const So=function(e){const{attributes:t,setAttributes:o,className:n,isSelected:r,onReplace:a,mergeBlocks:i,clientId:s,context:l}=e,{tagName:c,textAlign:u,linkTarget:d,placeholder:p,rel:m,style:g,text:h,url:x,width:b,metadata:_}=t,y=c||"a",[v,f]=(0,bt.useState)(null),k=(0,ot.__experimentalUseBorderProps)(t),w=(0,ot.__experimentalUseColorProps)(t),C=(0,ot.__experimentalGetSpacingClassesAndStyles)(t),j=(0,ot.__experimentalGetShadowClassesAndStyles)(t),S=(0,bt.useRef)(),B=(0,bt.useRef)(),N=(0,ot.useBlockProps)({ref:(0,Ut.useMergeRefs)([f,S]),onKeyDown:function(e){fo.isKeyboardEvent.primary(e,"k")?L(e):fo.isKeyboardEvent.primaryShift(e,"k")&&(H(),B.current?.focus())}}),T=(0,ot.useBlockEditingMode)(),[I,P]=(0,bt.useState)(!1),M=!!x,z=d===_o,R=!!m?.includes(yo),A="a"===y;function L(e){e.preventDefault(),P(!0)}function H(){o({url:void 0,linkTarget:void 0,rel:void 0}),P(!1)}(0,bt.useEffect)((()=>{r||P(!1)}),[r]);const D=(0,bt.useMemo)((()=>({url:x,opensInNewTab:z,nofollow:R})),[x,z,R]),F=function(e){const{replaceBlocks:t,selectionChange:o}=(0,gt.useDispatch)(ot.store),{getBlock:n,getBlockRootClientId:r,getBlockIndex:a}=(0,gt.useSelect)(ot.store),i=(0,bt.useRef)(e);return i.current=e,(0,Ut.useRefEffect)((e=>{function s(e){if(e.defaultPrevented||e.keyCode!==fo.ENTER)return;const{content:s,clientId:l}=i.current;if(s.length)return;e.preventDefault();const c=n(r(l)),u=a(l),d=(0,Qe.cloneBlock)({...c,innerBlocks:c.innerBlocks.slice(0,u)}),p=(0,Qe.createBlock)((0,Qe.getDefaultBlockName)()),m=c.innerBlocks.slice(u+1),g=m.length?[(0,Qe.cloneBlock)({...c,innerBlocks:m})]:[];t(c.clientId,[d,p,...g],1),o(p.clientId)}return e.addEventListener("keydown",s),()=>{e.removeEventListener("keydown",s)}}),[])}({content:h,clientId:s}),V=(0,Ut.useMergeRefs)([F,B]),{lockUrlControls:E=!1}=(0,gt.useSelect)((e=>{if(!r)return{};const t=Ht(e(Qe.store)).getBlockBindingsSource(_?.bindings?.url?.source);return{lockUrlControls:!!_?.bindings?.url&&!t?.canUserEditValue({select:e,context:l,args:_?.bindings?.url?.args})}}),[r,_?.bindings?.url]);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("div",{...N,className:dt(N.className,{[`has-custom-width wp-block-button__width-${b}`]:b,"has-custom-font-size":N.style.fontSize}),children:(0,Je.jsx)(ot.RichText,{ref:V,"aria-label":(0,tt.__)("Button text"),placeholder:p||(0,tt.__)("Add text…"),value:h,onChange:e=>o({text:vo(e)}),withoutInteractiveFormatting:!0,className:dt(n,"wp-block-button__link",w.className,k.className,{[`has-text-align-${u}`]:u,"no-border-radius":0===g?.border?.radius},(0,ot.__experimentalGetElementClassName)("button")),style:{...k.style,...w.style,...C.style,...j.style},onReplace:a,onMerge:i,identifier:"text"})}),(0,Je.jsxs)(ot.BlockControls,{group:"block",children:["default"===T&&(0,Je.jsx)(ot.AlignmentControl,{value:u,onChange:e=>{o({textAlign:e})}}),!M&&A&&!E&&(0,Je.jsx)(et.ToolbarButton,{name:"link",icon:ko,title:(0,tt.__)("Link"),shortcut:fo.displayShortcut.primary("k"),onClick:L}),M&&A&&!E&&(0,Je.jsx)(et.ToolbarButton,{name:"link",icon:wo,title:(0,tt.__)("Unlink"),shortcut:fo.displayShortcut.primaryShift("k"),onClick:H,isActive:!0})]}),A&&r&&(I||M)&&!E&&(0,Je.jsx)(et.Popover,{placement:"bottom",onClose:()=>{P(!1),B.current?.focus()},anchor:v,focusOnMount:!!I&&"firstElement",__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,Je.jsx)(ot.__experimentalLinkControl,{value:D,onChange:({url:e,opensInNewTab:t,nofollow:n})=>o(function({rel:e="",url:t="",opensInNewTab:o,nofollow:n}){let r,a=e;if(o)r=_o,a=a?.includes(bo)?a:a+` ${bo}`;else{const e=new RegExp(`\\b${bo}\\s*`,"g");a=a?.replace(e,"").trim()}if(n)a=a?.includes(yo)?a:a+` ${yo}`;else{const e=new RegExp(`\\b${yo}\\s*`,"g");a=a?.replace(e,"").trim()}return{url:(0,pt.prependHTTP)(t),linkTarget:r,rel:a||void 0}}({rel:m,url:e,opensInNewTab:t,nofollow:n})),onRemove:()=>{H(),B.current?.focus()},forceIsEditingLink:I,settings:Co})}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(jo,{selectedWidth:b,setAttributes:o})}),(0,Je.jsx)(ot.InspectorControls,{group:"advanced",children:A&&(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link rel"),value:m||"",onChange:e=>o({rel:e})})})]})};const Bo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",__experimentalRole:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",__experimentalRole:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",__experimentalRole:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,splitting:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button .wp-block-button__link",interactivity:{clientNavigation:!0}},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:No}=Bo,To={icon:ao,example:{attributes:{className:"is-style-fill",text:(0,tt.__)("Call to Action")}},edit:So,save:function({attributes:e,className:t}){const{tagName:o,type:n,textAlign:r,fontSize:a,linkTarget:i,rel:s,style:l,text:c,title:u,url:d,width:p}=e,m=o||"a",g="button"===m,h=n||"button",x=(0,ot.__experimentalGetBorderClassesAndStyles)(e),b=(0,ot.__experimentalGetColorClassesAndStyles)(e),_=(0,ot.__experimentalGetSpacingClassesAndStyles)(e),y=(0,ot.__experimentalGetShadowClassesAndStyles)(e),v=dt("wp-block-button__link",b.className,x.className,{[`has-text-align-${r}`]:r,"no-border-radius":0===l?.border?.radius},(0,ot.__experimentalGetElementClassName)("button")),f={...x.style,...b.style,..._.style,...y.style},k=dt(t,{[`has-custom-width wp-block-button__width-${p}`]:p,"has-custom-font-size":a||l?.typography?.fontSize});return(0,Je.jsx)("div",{...ot.useBlockProps.save({className:k}),children:(0,Je.jsx)(ot.RichText.Content,{tagName:m,type:g?h:null,className:v,href:g?null:d,title:u,style:f,value:c,target:g?null:i,rel:g?null:s})})},deprecated:xo,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},Io=()=>Xe({name:No,metadata:Bo,settings:To}),Po=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"})}),Mo=e=>{if(e.layout)return e;const{contentJustification:t,orientation:o,...n}=e;return(t||o)&&Object.assign(n,{layout:{type:"flex",...t&&{justifyContent:t},...o&&{orientation:o}}}),n},zo=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:Mo,save:({attributes:{contentJustification:e,orientation:t}})=>(0,Je.jsx)("div",{...ot.useBlockProps.save({className:dt({[`is-content-justification-${e}`]:e,"is-vertical":"vertical"===t})}),children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})},{supports:{align:["center","left","right"],anchor:!0},save:()=>(0,Je.jsx)("div",{children:(0,Je.jsx)(ot.InnerBlocks.Content,{})}),isEligible:({align:e})=>e&&["center","left","right"].includes(e),migrate:e=>Mo({...e,align:void 0,contentJustification:e.align})}],Ro=zo,Ao=window.wp.richText;function Lo(e,t,o){if(!e)return;const{supports:n}=(0,Qe.getBlockType)(t),r=[];if(["core/paragraph","core/heading","core/image","core/button"].includes(t)&&o&&r.push("id","bindings"),!1!==n.renaming&&r.push("name"),!r.length)return;const a=Object.entries(e).reduce(((e,[t,n])=>r.includes(t)?(e[t]="bindings"===t?o(n):n,e):e),{});return Object.keys(a).length?a:void 0}const Ho={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,Qe.createBlock)("core/buttons",{},e.map((e=>(0,Qe.createBlock)("core/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Qe.createBlock)("core/buttons",{},e.map((e=>{const{content:t,metadata:o}=e,n=(0,Ao.__unstableCreateElement)(document,t),r=n.innerText||"",a=n.querySelector("a"),i=a?.getAttribute("href");return(0,Qe.createBlock)("core/button",{text:r,url:i,metadata:Lo(o,"core/button",(({content:e})=>({text:e})))})}))),isMatch:e=>e.every((e=>{const t=(0,Ao.__unstableCreateElement)(document,e.content),o=t.innerText||"",n=t.querySelectorAll("a");return o.length<=30&&n.length<=1}))}]},Do=Ho,Fo={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};const Vo=function({attributes:e,className:t}){var o;const{fontSize:n,layout:r,style:a}=e,i=(0,ot.useBlockProps)({className:dt(t,{"has-custom-font-size":n||a?.typography?.fontSize})}),{hasButtonVariations:s}=(0,gt.useSelect)((e=>({hasButtonVariations:e(Qe.store).getBlockVariations("core/button","inserter").length>0})),[]),l=(0,ot.useInnerBlocksProps)(i,{defaultBlock:Fo,directInsert:!s,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:null!==(o=r?.orientation)&&void 0!==o?o:"horizontal"});return(0,Je.jsx)("div",{...l})};const Eo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",allowedBlocks:["core/button"],description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:$o}=Eo,Go={icon:Po,example:{innerBlocks:[{name:"core/button",attributes:{text:(0,tt.__)("Find out more")}},{name:"core/button",attributes:{text:(0,tt.__)("Contact us")}}]},deprecated:Ro,transforms:Do,edit:Vo,save:function({attributes:e,className:t}){const{fontSize:o,style:n}=e,r=ot.useBlockProps.save({className:dt(t,{"has-custom-font-size":o||n?.typography?.fontSize})}),a=ot.useInnerBlocksProps.save(r);return(0,Je.jsx)("div",{...a})}},Oo=()=>Xe({name:$o,metadata:Eo,settings:Go}),Uo=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})}),qo=Mt((e=>{if(!e)return{};const t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}}));const Wo={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,Qe.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,Qe.createBlock)("core/archives")}]},Zo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site’s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0,color:{link:!0,__experimentalSkipSerialization:["text","background"],__experimentalDefaultControls:{background:!0,text:!0},__experimentalSelector:"table, th"},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-calendar"},{name:Qo}=Zo,Ko={icon:Uo,example:{},edit:function({attributes:e}){const t=(0,ot.useBlockProps)(),{date:o,hasPosts:n,hasPostsResolved:r}=(0,gt.useSelect)((e=>{const{getEntityRecords:t,hasFinishedResolution:o}=e(mt.store),n={status:"publish",per_page:1},r=t("postType","post",n),a=o("getEntityRecords",["postType","post",n]);let i;const s=e("core/editor");if(s){"post"===s.getEditedPostAttribute("type")&&(i=s.getEditedPostAttribute("date"))}return{date:i,hasPostsResolved:a,hasPosts:a&&1===r?.length}}),[]);return n?(0,Je.jsx)("div",{...t,children:(0,Je.jsx)(et.Disabled,{children:(0,Je.jsx)(rt(),{block:"core/calendar",attributes:{...e,...qo(o)}})})}):(0,Je.jsx)("div",{...t,children:(0,Je.jsx)(et.Placeholder,{icon:Uo,label:(0,tt.__)("Calendar"),children:r?(0,tt.__)("No published posts found."):(0,Je.jsx)(et.Spinner,{})})})},transforms:Wo},Jo=()=>Xe({name:Qo,metadata:Zo,settings:Ko}),Yo=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})}),Xo=window.wp.htmlEntities,en=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})});const tn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Categories List",category:"widgets",description:"Display a list of all categories.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1},showEmpty:{type:"boolean",default:!1}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:on}=tn,nn={icon:Yo,example:{},edit:function e({attributes:{displayAsDropdown:t,showHierarchy:o,showPostCounts:n,showOnlyTopLevel:r,showEmpty:a},setAttributes:i,className:s}){const l=(0,Ut.useInstanceId)(e,"blocks-category-select"),c={per_page:-1,hide_empty:!a,context:"view"};r&&(c.parent=0);const{records:u,isResolving:d}=(0,mt.useEntityRecords)("taxonomy","category",c),p=e=>u?.length?null===e?u:u.filter((({parent:t})=>t===e)):[],m=e=>t=>i({[e]:t}),g=e=>e?(0,Xo.decodeEntities)(e).trim():(0,tt.__)("(Untitled)"),h=e=>{const t=p(e.id),{id:r,link:a,count:i,name:s}=e;return(0,Je.jsxs)("li",{className:`cat-item cat-item-${r}`,children:[(0,Je.jsx)("a",{href:a,target:"_blank",rel:"noreferrer noopener",children:g(s)}),n&&` (${i})`,o&&!!t.length&&(0,Je.jsx)("ul",{className:"children",children:t.map((e=>h(e)))})]},r)},x=(e,t)=>{const{id:r,count:a,name:i}=e,s=p(r);return[(0,Je.jsxs)("option",{className:`level-${t}`,children:[Array.from({length:3*t}).map((()=>" ")),g(i),n&&` (${a})`]},r),o&&!!s.length&&s.map((e=>x(e,t+1)))]},b=!u?.length||t||d?"div":"ul",_=dt(s,{"wp-block-categories-list":!!u?.length&&!t&&!d,"wp-block-categories-dropdown":!!u?.length&&t&&!d}),y=(0,ot.useBlockProps)({className:_});return(0,Je.jsxs)(b,{...y,children:[(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display as dropdown"),checked:t,onChange:m("displayAsDropdown")}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show post counts"),checked:n,onChange:m("showPostCounts")}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show only top level categories"),checked:r,onChange:m("showOnlyTopLevel")}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show empty categories"),checked:a,onChange:m("showEmpty")}),!r&&(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show hierarchy"),checked:o,onChange:m("showHierarchy")})]})}),d&&(0,Je.jsx)(et.Placeholder,{icon:en,label:(0,tt.__)("Categories"),children:(0,Je.jsx)(et.Spinner,{})}),!d&&0===u?.length&&(0,Je.jsx)("p",{children:(0,tt.__)("Your site does not have any posts, so there is nothing to display here at the moment.")}),!d&&u?.length>0&&(t?(()=>{const e=p(o?0:null);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.VisuallyHidden,{as:"label",htmlFor:l,children:(0,tt.__)("Categories")}),(0,Je.jsxs)("select",{id:l,children:[(0,Je.jsx)("option",{children:(0,tt.__)("Select Category")}),e.map((e=>x(e,0)))]})]})})():p(o?0:null).map((e=>h(e))))]})}},rn=()=>Xe({name:on,metadata:tn,settings:nn}),an=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.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"})}),sn=({clientId:e})=>{const{replaceBlocks:t}=(0,gt.useDispatch)(ot.store),o=(0,gt.useSelect)((t=>t(ot.store).getBlock(e)),[e]);return(0,Je.jsx)(et.ToolbarButton,{onClick:()=>t(o.clientId,(0,Qe.rawHandler)({HTML:(0,Qe.serialize)(o)})),children:(0,tt.__)("Convert to blocks")})},ln=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})});function cn({onClick:e,isModalFullScreen:t}){return(0,Ut.useViewportMatch)("small","<")?null:(0,Je.jsx)(et.Button,{onClick:e,icon:ln,isPressed:t,label:t?(0,tt.__)("Exit fullscreen"):(0,tt.__)("Enter fullscreen")})}function un(e){const t=(0,gt.useSelect)((e=>e(ot.store).getSettings().styles));return(0,bt.useEffect)((()=>{const{baseURL:o,suffix:n,settings:r}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:o,suffix:n}),window.wp.oldEditor.initialize(e.id,{tinymce:{...r,setup(e){e.on("init",(()=>{const o=e.getDoc();t.forEach((({css:e})=>{const t=o.createElement("style");t.innerHTML=e,o.head.appendChild(t)}))}))}}}),()=>{window.wp.oldEditor.remove(e.id)}}),[]),(0,Je.jsx)("textarea",{...e})}function dn(e){const{clientId:t,attributes:{content:o},setAttributes:n,onReplace:r}=e,[a,i]=(0,bt.useState)(!1),[s,l]=(0,bt.useState)(!1),c=`editor-${t}`,u=()=>o?i(!1):r([]);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(et.ToolbarGroup,{children:(0,Je.jsx)(et.ToolbarButton,{onClick:()=>i(!0),children:(0,tt.__)("Edit")})})}),o&&(0,Je.jsx)(bt.RawHTML,{children:o}),(a||!o)&&(0,Je.jsxs)(et.Modal,{title:(0,tt.__)("Classic Editor"),onRequestClose:u,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:s,className:"block-editor-freeform-modal__content",headerActions:(0,Je.jsx)(cn,{onClick:()=>l(!s),isModalFullScreen:s}),children:[(0,Je.jsx)(un,{id:c,defaultValue:o}),(0,Je.jsxs)(et.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Je.jsx)(et.FlexItem,{children:(0,Je.jsx)(et.Button,{variant:"tertiary",onClick:u,children:(0,tt.__)("Cancel")})}),(0,Je.jsx)(et.FlexItem,{children:(0,Je.jsx)(et.Button,{variant:"primary",onClick:()=>{n({content:window.wp.oldEditor.getContent(c)}),i(!1)},children:(0,tt.__)("Save")})})]})]})]})}const{wp:pn}=window;function mn({clientId:e,attributes:{content:t},setAttributes:o,onReplace:n}){const{getMultiSelectedBlockClientIds:r}=(0,gt.useSelect)(ot.store),a=(0,bt.useRef)(!1);return(0,bt.useEffect)((()=>{if(!a.current)return;const o=window.tinymce.get(`editor-${e}`);if(!o)return;o.getContent()!==t&&o.setContent(t||"")}),[e,t]),(0,bt.useEffect)((()=>{const{baseURL:i,suffix:s}=window.wpEditorL10n.tinymce;function l(e){let a;t&&e.on("loadContent",(()=>e.setContent(t))),e.on("blur",(()=>{a=e.selection.getBookmark(2,!0);const t=document.querySelector(".interface-interface-skeleton__content"),n=t.scrollTop;return r()?.length||o({content:e.getContent()}),e.once("focus",(()=>{a&&(e.selection.moveToBookmark(a),t.scrollTop!==n&&(t.scrollTop=n))})),!1})),e.on("mousedown touchstart",(()=>{a=null}));const i=(0,Ut.debounce)((()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,o({content:t}))}),250);e.on("Paste Change input Undo Redo",i),e.on("remove",i.cancel),e.on("keydown",(t=>{fo.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==fo.BACKSPACE&&t.keyCode!==fo.DELETE||!function(e){const t=e.getBody();return!(t.childNodes.length>1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(n([]),t.preventDefault(),t.stopImmediatePropagation());const{altKey:o}=t;o&&t.keyCode===fo.F10&&t.stopPropagation()})),e.on("init",(()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function c(){const{settings:t}=window.wpEditorL10n.tinymce;pn.oldEditor.initialize(`editor-${e}`,{tinymce:{...t,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${e}`,setup:l}})}function u(){"complete"===document.readyState&&c()}return a.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:i,suffix:s}),"complete"===document.readyState?c():document.addEventListener("readystatechange",u),()=>{document.removeEventListener("readystatechange",u),pn.oldEditor.remove(`editor-${e}`),a.current=!1}}),[]),(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("div",{id:`toolbar-${e}`,className:"block-library-classic__toolbar",onClick:function(){const t=window.tinymce.get(`editor-${e}`);t&&t.focus()},"data-placeholder":(0,tt.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},"toolbar"),(0,Je.jsx)("div",{id:`editor-${e}`,className:"wp-block-freeform block-library-rich-text__tinymce"},"editor")]})}const gn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:hn}=gn,xn={icon:an,edit:function(e){const{clientId:t}=e,o=(0,gt.useSelect)((e=>e(ot.store).canRemoveBlock(t)),[t]),[n,r]=(0,bt.useState)(!1),a=(0,Ut.useRefEffect)((e=>{r(e.ownerDocument!==document)}),[]);return(0,Je.jsxs)(Je.Fragment,{children:[o&&(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(et.ToolbarGroup,{children:(0,Je.jsx)(sn,{clientId:t})})}),(0,Je.jsx)("div",{...(0,ot.useBlockProps)({ref:a}),children:n?(0,Je.jsx)(dn,{...e}):(0,Je.jsx)(mn,{...e})})]})},save:function({attributes:e}){const{content:t}=e;return(0,Je.jsx)(bt.RawHTML,{children:t})}},bn=()=>Xe({name:hn,metadata:gn,settings:xn}),_n=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})});function yn(e){return e.replace(/\[/g,"&#91;")}function vn(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1&#47;&#47;$2")}const fn={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,Qe.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:({content:e,metadata:t})=>(0,Qe.createBlock)("core/code",{content:e,metadata:Lo(t,"core/code")})},{type:"block",blocks:["core/html"],transform:({content:e,metadata:t})=>(0,Qe.createBlock)("core/code",{content:(0,Ao.toHTMLString)({value:(0,Ao.create)({text:e})}),metadata:Lo(t,"core/code")})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:({content:e,metadata:t})=>(0,Qe.createBlock)("core/paragraph",{content:e,metadata:Lo(t,"core/paragraph")})}]},kn=fn,wn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"code",__unstablePreserveWhiteSpace:!0}},supports:{align:["wide"],anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{width:!0,color:!0}},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-code"},{name:Cn}=wn,jn={icon:_n,example:{attributes:{content:(0,tt.__)("// 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 );")}},merge:(e,t)=>({content:e.content+"\n\n"+t.content}),transforms:kn,edit:function({attributes:e,setAttributes:t,onRemove:o,insertBlocksAfter:n,mergeBlocks:r}){const a=(0,ot.useBlockProps)();return(0,Je.jsx)("pre",{...a,children:(0,Je.jsx)(ot.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:e=>t({content:e}),onRemove:o,onMerge:r,placeholder:(0,tt.__)("Write code…"),"aria-label":(0,tt.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>n((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))})})},save:function({attributes:e}){return(0,Je.jsx)("pre",{...ot.useBlockProps.save(),children:(0,Je.jsx)(ot.RichText.Content,{tagName:"code",value:(t="string"==typeof e.content?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}),(0,Ut.pipe)(yn,vn)(t||""))})});var t}},Sn=()=>Xe({name:Cn,metadata:wn,settings:jn}),Bn=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.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"})}),Nn=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible:({width:e})=>isFinite(e),migrate:e=>({...e,width:`${e.width}%`}),save({attributes:e}){const{verticalAlignment:t,width:o}=e,n=dt({[`is-vertically-aligned-${t}`]:t}),r={flexBasis:o+"%"};return(0,Je.jsx)("div",{className:n,style:r,children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})}}],Tn=Nn;function In({width:e,setAttributes:t}){const[o]=(0,ot.useSettings)("spacing.units"),n=(0,et.__experimentalUseCustomUnits)({availableUnits:o||["%","px","em","rem","vw"]});return(0,Je.jsx)(et.PanelBody,{title:(0,tt.__)("Settings"),children:(0,Je.jsx)(et.__experimentalUnitControl,{label:(0,tt.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:e||"",onChange:e=>{e=0>parseFloat(e)?"0":e,t({width:e})},units:n})})}const Pn=function({attributes:{verticalAlignment:e,width:t,templateLock:o,allowedBlocks:n},setAttributes:r,clientId:a}){const i=dt("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:s,hasChildBlocks:l,rootClientId:c}=(0,gt.useSelect)((e=>{const{getBlockOrder:t,getBlockRootClientId:o}=e(ot.store),n=o(a);return{hasChildBlocks:t(a).length>0,rootClientId:n,columnsIds:t(n)}}),[a]),{updateBlockAttributes:u}=(0,gt.useDispatch)(ot.store),d=Number.isFinite(t)?t+"%":t,p=(0,ot.useBlockProps)({className:i,style:d?{flexBasis:d}:void 0}),m=s.length,g=s.indexOf(a)+1,h=(0,tt.sprintf)((0,tt.__)("%1$s (%2$d of %3$d)"),p["aria-label"],g,m),x=(0,ot.useInnerBlocksProps)({...p,"aria-label":h},{templateLock:o,allowedBlocks:n,renderAppender:l?void 0:ot.InnerBlocks.ButtonBlockAppender});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(ot.BlockVerticalAlignmentToolbar,{onChange:e=>{r({verticalAlignment:e}),u(c,{verticalAlignment:null})},value:e,controls:["top","center","bottom","stretch"]})}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(In,{width:t,setAttributes:r})}),(0,Je.jsx)("div",{...x})]})};const Mn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/column",title:"Column",category:"design",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,anchor:!0,reusable:!1,html:!1,color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{blockGap:!0,padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0,interactivity:{clientNavigation:!0}}},{name:zn}=Mn,Rn={icon:Bn,edit:Pn,save:function({attributes:e}){const{verticalAlignment:t,width:o}=e,n=dt({[`is-vertically-aligned-${t}`]:t});let r;if(o&&/\d/.test(o)){let e=Number.isFinite(o)?o+"%":o;if(!Number.isFinite(o)&&o?.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(o)*t)/t+"%"}r={flexBasis:e}}const a=ot.useBlockProps.save({className:n,style:r}),i=ot.useInnerBlocksProps.save(a);return(0,Je.jsx)("div",{...i})},deprecated:Tn},An=()=>Xe({name:zn,metadata:Mn,settings:Rn}),Ln=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"})});function Hn(e){let t,{doc:o}=Hn;o||(o=document.implementation.createHTMLDocument(""),Hn.doc=o),o.body.innerHTML=e;for(const e of o.body.firstChild.classList)if(t=e.match(/^layout-column-(\d+)$/))return Number(t[1])-1}const Dn=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:o,customBackgroundColor:n,...r}=e;return{...r,style:t,isStackedOnMobile:!0}},save({attributes:e}){const{verticalAlignment:t,backgroundColor:o,customBackgroundColor:n,textColor:r,customTextColor:a}=e,i=(0,ot.getColorClassName)("background-color",o),s=(0,ot.getColorClassName)("color",r),l=dt({"has-background":o||n,"has-text-color":r||a,[i]:i,[s]:s,[`are-vertically-aligned-${t}`]:t}),c={backgroundColor:i?void 0:n,color:s?void 0:a};return(0,Je.jsx)("div",{className:l||void 0,style:c,children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible:(e,t)=>!!t.some((e=>/layout-column-\d+/.test(e.originalContent)))&&t.some((e=>void 0!==Hn(e.originalContent))),migrate(e,t){const o=t.reduce(((e,t)=>{const{originalContent:o}=t;let n=Hn(o);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e}),[]).map((e=>(0,Qe.createBlock)("core/column",{},e))),{columns:n,...r}=e;return[{...r,isStackedOnMobile:!0},o]},save({attributes:e}){const{columns:t}=e;return(0,Je.jsx)("div",{className:`has-${t}-columns`,children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){const{columns:o,...n}=e;return[e={...n,isStackedOnMobile:!0},t]},save({attributes:e}){const{verticalAlignment:t,columns:o}=e,n=dt(`has-${o}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,Je.jsx)("div",{className:n,children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})}}],Fn=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function Vn(e,t){const{width:o=100/t}=e.attributes;return Fn(o)}function En(e,t,o=e.length){const n=function(e,t=e.length){return e.reduce(((e,o)=>e+Vn(o,t)),0)}(e,o);return Object.fromEntries(Object.entries(function(e,t=e.length){return e.reduce(((e,o)=>{const n=Vn(o,t);return Object.assign(e,{[o.clientId]:n})}),{})}(e,o)).map((([e,o])=>[e,Fn(t*o/n)])))}function $n(e,t){return e.map((e=>({...e,attributes:{...e.attributes,width:`${t[e.clientId]}%`}})))}const Gn={name:"core/column"};function On({clientId:e,setAttributes:t,isStackedOnMobile:o}){const{count:n,canInsertColumnBlock:r,minCount:a}=(0,gt.useSelect)((t=>{const{canInsertBlockType:o,canRemoveBlock:n,getBlocks:r,getBlockCount:a}=t(ot.store),i=r(e).reduce(((e,t,o)=>(n(t.clientId)||e.push(o),e)),[]);return{count:a(e),canInsertColumnBlock:o("core/column",e),minCount:Math.max(...i)+1}}),[e]),{getBlocks:i}=(0,gt.useSelect)(ot.store),{replaceInnerBlocks:s}=(0,gt.useDispatch)(ot.store);function l(t,o){let n=i(e);const r=n.every((e=>{const t=e.attributes.width;return Number.isFinite(t?.endsWith?.("%")?parseFloat(t):t)}));const a=o>t;if(a&&r){const e=Fn(100/o),r=o-t;n=[...$n(n,En(n,100-e*r)),...Array.from({length:r}).map((()=>(0,Qe.createBlock)("core/column",{width:`${e}%`})))]}else if(a)n=[...n,...Array.from({length:o-t}).map((()=>(0,Qe.createBlock)("core/column")))];else if(o<t&&(n=n.slice(0,-(t-o)),r)){n=$n(n,En(n,100))}s(e,n)}return(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[r&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Columns"),value:n,onChange:e=>l(n,Math.max(a,e)),min:Math.max(1,a),max:Math.max(6,n)}),n>6&&(0,Je.jsx)(et.Notice,{status:"warning",isDismissible:!1,children:(0,tt.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Stack on mobile"),checked:o,onChange:()=>t({isStackedOnMobile:!o})})]})}function Un({attributes:e,setAttributes:t,clientId:o}){const{isStackedOnMobile:n,verticalAlignment:r,templateLock:a}=e,i=(0,gt.useRegistry)(),{getBlockOrder:s}=(0,gt.useSelect)(ot.store),{updateBlockAttributes:l}=(0,gt.useDispatch)(ot.store),c=dt({[`are-vertically-aligned-${r}`]:r,"is-not-stacked-on-mobile":!n}),u=(0,ot.useBlockProps)({className:c}),d=(0,ot.useInnerBlocksProps)(u,{defaultBlock:Gn,directInsert:!0,orientation:"horizontal",renderAppender:!1,templateLock:a});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(ot.BlockVerticalAlignmentToolbar,{onChange:function(e){const n=s(o);i.batch((()=>{t({verticalAlignment:e}),l(n,{verticalAlignment:e})}))},value:r})}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(On,{clientId:o,setAttributes:t,isStackedOnMobile:n})}),(0,Je.jsx)("div",{...d})]})}function qn({clientId:e,name:t,setAttributes:o}){const{blockType:n,defaultVariation:r,variations:a}=(0,gt.useSelect)((e=>{const{getBlockVariations:o,getBlockType:n,getDefaultBlockVariation:r}=e(Qe.store);return{blockType:n(t),defaultVariation:r(t,"block"),variations:o(t,"block")}}),[t]),{replaceInnerBlocks:i}=(0,gt.useDispatch)(ot.store),s=(0,ot.useBlockProps)();return(0,Je.jsx)("div",{...s,children:(0,Je.jsx)(ot.__experimentalBlockVariationPicker,{icon:n?.icon?.src,label:n?.title,variations:a,instructions:(0,tt.__)("Divide into columns. Select a layout:"),onSelect:(t=r)=>{t.attributes&&o(t.attributes),t.innerBlocks&&i(e,(0,Qe.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0})})}const Wn=e=>{const{clientId:t}=e,o=(0,gt.useSelect)((e=>e(ot.store).getBlocks(t).length>0),[t])?Un:qn;return(0,Je.jsx)(o,{...e})};const Zn=[{name:"one-column-full",title:(0,tt.__)("100"),description:(0,tt.__)("One column"),icon:(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Je.jsx)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,tt.__)("50 / 50"),description:(0,tt.__)("Two columns; equal split"),icon:(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Je.jsx)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,tt.__)("33 / 66"),description:(0,tt.__)("Two columns; one-third, two-thirds split"),icon:(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Je.jsx)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm17 0a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H19a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,tt.__)("66 / 33"),description:(0,tt.__)("Two columns; two-thirds, one-third split"),icon:(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Je.jsx)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm33 0a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:(0,tt.__)("33 / 33 / 33"),description:(0,tt.__)("Three columns; equal split"),icon:(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Je.jsx)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h10.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm16.5 0c0-1.105.864-2 1.969-2H29.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H18.47c-1.105 0-1.969-.895-1.969-2V10Zm17 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35.469c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,tt.__)("25 / 50 / 25"),description:(0,tt.__)("Three columns; wide center column"),icon:(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Je.jsx)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h7.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm13.5 0c0-1.105.864-2 1.969-2H32.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H15.47c-1.105 0-1.969-.895-1.969-2V10Zm23 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2h-7.531c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}],Qn={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),o=e.map((({name:e,attributes:o,innerBlocks:n})=>["core/column",{width:`${t}%`},[[e,{...o},n]]]));return(0,Qe.createBlock)("core/columns",{},(0,Qe.createBlocksFromInnerBlocksTemplate)(o))},isMatch:({length:e},t)=>(1!==t.length||"core/columns"!==t[0].name)&&(e&&e<=6)},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:o,backgroundColor:n,textColor:r,style:a,mediaAlt:i,mediaId:s,mediaPosition:l,mediaSizeSlug:c,mediaType:u,mediaUrl:d,mediaWidth:p,verticalAlignment:m}=e;let g;if("image"!==u&&u)g=["core/video",{id:s,src:d}];else{g=["core/image",{...{id:s,alt:i,url:d,sizeSlug:c},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const h=[["core/column",{width:`${p}%`},[g]],["core/column",{width:100-p+"%"},t]];return"right"===l&&h.reverse(),(0,Qe.createBlock)("core/columns",{align:o,backgroundColor:n,textColor:r,style:a,verticalAlignment:m},(0,Qe.createBlocksFromInnerBlocksTemplate)(h))}}],ungroup:(e,t)=>t.flatMap((e=>e.innerBlocks))},Kn=Qn,Jn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/columns",title:"Columns",category:"design",allowedBlocks:["core/column"],description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,heading:!0,button:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:{__experimentalDefault:"2em",sides:["horizontal","vertical"]},margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex",flexWrap:"nowrap"}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},shadow:!0},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:Yn}=Jn,Xn={icon:Ln,variations:Zn,example:{viewportWidth:600,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("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:(0,tt.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("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:(0,tt.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Dn,edit:Wn,save:function({attributes:e}){const{isStackedOnMobile:t,verticalAlignment:o}=e,n=dt({[`are-vertically-aligned-${o}`]:o,"is-not-stacked-on-mobile":!t}),r=ot.useBlockProps.save({className:n}),a=ot.useInnerBlocksProps.save(r);return(0,Je.jsx)("div",{...a})},transforms:Kn},er=()=>Xe({name:Yn,metadata:Jn,settings:Xn}),tr=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"})}),or=[{attributes:{tagName:{type:"string",default:"div"}},apiVersion:3,supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}}},save({attributes:{tagName:e}}){const t=ot.useBlockProps.save(),{className:o}=t,n=o?.split(" ")||[],r=n?.filter((e=>"wp-block-comments"!==e)),a={...t,className:r.join(" ")};return(0,Je.jsx)(e,{...a,children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})}}];function nr({attributes:{tagName:e},setAttributes:t}){const o={section:(0,tt.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),aside:(0,tt.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.")};return(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(ot.InspectorControls,{group:"advanced",children:(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("HTML element"),options:[{label:(0,tt.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:e,onChange:e=>t({tagName:e}),help:o[e]})})})}const rr=()=>{const e=(0,Ut.useInstanceId)(rr);return(0,Je.jsxs)("div",{className:"comment-respond",children:[(0,Je.jsx)("h3",{className:"comment-reply-title",children:(0,tt.__)("Leave a Reply")}),(0,Je.jsxs)("form",{noValidate:!0,className:"comment-form",onSubmit:e=>e.preventDefault(),children:[(0,Je.jsxs)("p",{children:[(0,Je.jsx)("label",{htmlFor:`comment-${e}`,children:(0,tt.__)("Comment")}),(0,Je.jsx)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8",readOnly:!0})]}),(0,Je.jsx)("p",{className:"form-submit wp-block-button",children:(0,Je.jsx)("input",{name:"submit",type:"submit",className:dt("wp-block-button__link",(0,ot.__experimentalGetElementClassName)("button")),label:(0,tt.__)("Post Comment"),value:(0,tt.__)("Post Comment"),"aria-disabled":"true"})})]})]})},ar=({postId:e,postType:t})=>{const[o,n]=(0,mt.useEntityProp)("postType",t,"comment_status",e),r=void 0===t||void 0===e,{defaultCommentStatus:a}=(0,gt.useSelect)((e=>e(ot.store).getSettings().__experimentalDiscussionSettings)),i=(0,gt.useSelect)((e=>!!t&&!!e(mt.store).getPostType(t)?.supports.comments));if(!r&&"open"!==o){if("closed"===o){const e=[(0,Je.jsx)(et.Button,{onClick:()=>n("open"),variant:"primary",children:(0,tt._x)("Enable comments","action that affects the current post")},"enableComments")];return(0,Je.jsx)(ot.Warning,{actions:e,children:(0,tt.__)("Post Comments Form block: Comments are not enabled for this item.")})}if(!i)return(0,Je.jsx)(ot.Warning,{children:(0,tt.sprintf)((0,tt.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t)});if("open"!==a)return(0,Je.jsx)(ot.Warning,{children:(0,tt.__)("Post Comments Form block: Comments are not enabled.")})}return(0,Je.jsx)(rr,{})};function ir({postType:e,postId:t}){let[o]=(0,mt.useEntityProp)("postType",e,"title",t);o=o||(0,tt.__)("Post Title");const{avatarURL:n}=(0,gt.useSelect)((e=>e(ot.store).getSettings().__experimentalDiscussionSettings));return(0,Je.jsxs)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true",children:[(0,Je.jsx)("h3",{children:(0,tt.sprintf)((0,tt.__)("One response to %s"),o)}),(0,Je.jsxs)("div",{className:"navigation",children:[(0,Je.jsx)("div",{className:"alignleft",children:(0,Je.jsxs)("a",{href:"#top",children:["« ",(0,tt.__)("Older Comments")]})}),(0,Je.jsx)("div",{className:"alignright",children:(0,Je.jsxs)("a",{href:"#top",children:[(0,tt.__)("Newer Comments")," »"]})})]}),(0,Je.jsx)("ol",{className:"commentlist",children:(0,Je.jsx)("li",{className:"comment even thread-even depth-1",children:(0,Je.jsxs)("article",{className:"comment-body",children:[(0,Je.jsxs)("footer",{className:"comment-meta",children:[(0,Je.jsxs)("div",{className:"comment-author vcard",children:[(0,Je.jsx)("img",{alt:(0,tt.__)("Commenter Avatar"),src:n,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,Je.jsx)("b",{className:"fn",children:(0,Je.jsx)("a",{href:"#top",className:"url",children:(0,tt.__)("A WordPress Commenter")})})," ",(0,Je.jsxs)("span",{className:"says",children:[(0,tt.__)("says"),":"]})]}),(0,Je.jsxs)("div",{className:"comment-metadata",children:[(0,Je.jsx)("a",{href:"#top",children:(0,Je.jsx)("time",{dateTime:"2000-01-01T00:00:00+00:00",children:(0,tt.__)("January 1, 2000 at 00:00 am")})})," ",(0,Je.jsx)("span",{className:"edit-link",children:(0,Je.jsx)("a",{className:"comment-edit-link",href:"#top",children:(0,tt.__)("Edit")})})]})]}),(0,Je.jsx)("div",{className:"comment-content",children:(0,Je.jsxs)("p",{children:[(0,tt.__)("Hi, this is a comment."),(0,Je.jsx)("br",{}),(0,tt.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,Je.jsx)("br",{}),(0,bt.createInterpolateElement)((0,tt.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,Je.jsx)("a",{href:"https://gravatar.com/"})})]})}),(0,Je.jsx)("div",{className:"reply",children:(0,Je.jsx)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,tt.__)("Reply to A WordPress Commenter"),children:(0,tt.__)("Reply")})})]})})}),(0,Je.jsxs)("div",{className:"navigation",children:[(0,Je.jsx)("div",{className:"alignleft",children:(0,Je.jsxs)("a",{href:"#top",children:["« ",(0,tt.__)("Older Comments")]})}),(0,Je.jsx)("div",{className:"alignright",children:(0,Je.jsxs)("a",{href:"#top",children:[(0,tt.__)("Newer Comments")," »"]})})]}),(0,Je.jsx)(ar,{postId:t,postType:e})]})}function sr({attributes:e,setAttributes:t,context:{postType:o,postId:n}}){const{textAlign:r}=e,a=[(0,Je.jsx)(et.Button,{onClick:()=>{t({legacy:!1})},variant:"primary",children:(0,tt.__)("Switch to editable mode")},"convert")],i=(0,ot.useBlockProps)({className:dt({[`has-text-align-${r}`]:r})});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{group:"block",children:(0,Je.jsx)(ot.AlignmentControl,{value:r,onChange:e=>{t({textAlign:e})}})}),(0,Je.jsxs)("div",{...i,children:[(0,Je.jsx)(ot.Warning,{actions:a,children:(0,tt.__)("Comments block: You’re currently using the legacy version of the block. The following is just a placeholder - the final styling will likely look different. For a better representation and more customization options, switch the block to its editable mode.")}),(0,Je.jsx)(ir,{postId:n,postType:o})]})]})}const lr=[["core/comments-title"],["core/comment-template",{},[["core/columns",{},[["core/column",{width:"40px"},[["core/avatar",{size:40,style:{border:{radius:"20px"}}}]]],["core/column",{},[["core/comment-author-name",{fontSize:"small"}],["core/group",{layout:{type:"flex"},style:{spacing:{margin:{top:"0px",bottom:"0px"}}}},[["core/comment-date",{fontSize:"small"}],["core/comment-edit-link",{fontSize:"small"}]]],["core/comment-content"],["core/comment-reply-link",{fontSize:"small"}]]]]]]],["core/comments-pagination"],["core/post-comments-form"]];const cr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments",title:"Comments",category:"theme",description:"An advanced block that allows displaying post comments using different visual configurations.",textdomain:"default",attributes:{tagName:{type:"string",default:"div"},legacy:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-comments-editor",usesContext:["postId","postType"]},{name:ur}=cr,dr={icon:tr,edit:function(e){const{attributes:t,setAttributes:o}=e,{tagName:n,legacy:r}=t,a=(0,ot.useBlockProps)(),i=(0,ot.useInnerBlocksProps)(a,{template:lr});return r?(0,Je.jsx)(sr,{...e}):(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(nr,{attributes:t,setAttributes:o}),(0,Je.jsx)(n,{...i})]})},save:function({attributes:{tagName:e,legacy:t}}){const o=ot.useBlockProps.save(),n=ot.useInnerBlocksProps.save(o);return t?null:(0,Je.jsx)(e,{...n})},deprecated:or},pr=()=>Xe({name:ur,metadata:cr,settings:dr});const mr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/comment-author-avatar",title:"Comment Author Avatar (deprecated)",category:"theme",ancestor:["core/comment-template"],description:"This block is deprecated. Please use the Avatar block instead.",textdomain:"default",attributes:{width:{type:"number",default:96},height:{type:"number",default:96}},usesContext:["commentId"],supports:{html:!1,inserter:!1,__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},color:{background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{__experimentalSkipSerialization:!0,margin:!0,padding:!0},interactivity:{clientNavigation:!0}}},{name:gr}=mr,hr={icon:ct,edit:function({attributes:e,context:{commentId:t},setAttributes:o,isSelected:n}){const{height:r,width:a}=e,[i]=(0,mt.useEntityProp)("root","comment","author_avatar_urls",t),[s]=(0,mt.useEntityProp)("root","comment","author_name",t),l=i?Object.values(i):null,c=i?Object.keys(i):null,u=c?c[0]:24,d=c?c[c.length-1]:96,p=(0,ot.useBlockProps)(),m=(0,ot.__experimentalGetSpacingClassesAndStyles)(e),g=Math.floor(2.5*d),{avatarURL:h}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(ot.store),{__experimentalDiscussionSettings:o}=t();return o})),x=(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(et.PanelBody,{title:(0,tt.__)("Settings"),children:(0,Je.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Image size"),onChange:e=>o({width:e,height:e}),min:u,max:g,initialPosition:a,value:a})})}),b=(0,Je.jsx)(et.ResizableBox,{size:{width:a,height:r},showHandle:n,onResizeStop:(e,t,n,i)=>{o({height:parseInt(r+i.height,10),width:parseInt(a+i.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,tt.isRTL)(),bottom:!0,left:(0,tt.isRTL)()},minWidth:u,maxWidth:g,children:(0,Je.jsx)("img",{src:l?l[l.length-1]:h,alt:`${s} ${(0,tt.__)("Avatar")}`,...p})});return(0,Je.jsxs)(Je.Fragment,{children:[x,(0,Je.jsx)("div",{...m,children:b})]})}},xr=()=>Xe({name:gr,metadata:mr,settings:hr}),br=(0,Je.jsxs)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,Je.jsx)(Ke.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",fillRule:"evenodd",clipRule:"evenodd"}),(0,Je.jsx)(Ke.Path,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),(0,Je.jsx)(Ke.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"})]});const _r={attributes:{isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:so,isEligible:({style:e})=>e?.typography?.fontFamily},yr=[_r],vr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-author-name",title:"Comment Author Name",category:"theme",ancestor:["core/comment-template"],description:"Displays the name of the author of the comment.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},usesContext:["commentId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:fr}=vr,kr={icon:br,edit:function({attributes:{isLink:e,linkTarget:t,textAlign:o},context:{commentId:n},setAttributes:r}){const a=(0,ot.useBlockProps)({className:dt({[`has-text-align-${o}`]:o})});let i=(0,gt.useSelect)((e=>{const{getEntityRecord:t}=e(mt.store),o=t("root","comment",n),r=o?.author_name;if(o&&!r){var a;const e=t("root","user",o.author);return null!==(a=e?.name)&&void 0!==a?a:(0,tt.__)("Anonymous")}return null!=r?r:""}),[n]);const s=(0,Je.jsx)(ot.BlockControls,{group:"block",children:(0,Je.jsx)(ot.AlignmentControl,{value:o,onChange:e=>r({textAlign:e})})}),l=(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to authors URL"),onChange:()=>r({isLink:!e}),checked:e}),e&&(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t})]})});n&&i||(i=(0,tt._x)("Comment Author","block title"));const c=e?(0,Je.jsx)("a",{href:"#comment-author-pseudo-link",onClick:e=>e.preventDefault(),children:i}):i;return(0,Je.jsxs)(Je.Fragment,{children:[l,s,(0,Je.jsx)("div",{...a,children:c})]})},deprecated:yr},wr=()=>Xe({name:fr,metadata:vr,settings:kr}),Cr=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"})});const jr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-content",title:"Comment Content",category:"theme",ancestor:["core/comment-template"],description:"Displays the contents of a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},html:!1}},{name:Sr}=jr,Br={icon:Cr,edit:function({setAttributes:e,attributes:{textAlign:t},context:{commentId:o}}){const n=(0,ot.useBlockProps)({className:dt({[`has-text-align-${t}`]:t})}),[r]=(0,mt.useEntityProp)("root","comment","content",o),a=(0,Je.jsx)(ot.BlockControls,{group:"block",children:(0,Je.jsx)(ot.AlignmentControl,{value:t,onChange:t=>e({textAlign:t})})});return o&&r?(0,Je.jsxs)(Je.Fragment,{children:[a,(0,Je.jsx)("div",{...n,children:(0,Je.jsx)(et.Disabled,{children:(0,Je.jsx)(bt.RawHTML,{children:r.rendered},"html")})})]}):(0,Je.jsxs)(Je.Fragment,{children:[a,(0,Je.jsx)("div",{...n,children:(0,Je.jsx)("p",{children:(0,tt._x)("Comment Content","block title")})})]})}},Nr=()=>Xe({name:Sr,metadata:jr,settings:Br}),Tr=(0,Je.jsxs)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Je.jsx)(Ke.Path,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),(0,Je.jsx)(Ke.Path,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"})]}),Ir=window.wp.date;const Pr={attributes:{format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:so,isEligible:({style:e})=>e?.typography?.fontFamily},Mr=[Pr],zr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-date",title:"Comment Date",category:"theme",ancestor:["core/comment-template"],description:"Displays the date on which the comment was posted.",textdomain:"default",attributes:{format:{type:"string"},isLink:{type:"boolean",default:!0}},usesContext:["commentId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Rr}=zr,Ar={icon:Tr,edit:function({attributes:{format:e,isLink:t},context:{commentId:o},setAttributes:n}){const r=(0,ot.useBlockProps)();let[a]=(0,mt.useEntityProp)("root","comment","date",o);const[i=(0,Ir.getSettings)().formats.date]=(0,mt.useEntityProp)("root","site","date_format"),s=(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(ot.__experimentalDateFormatPicker,{format:e,defaultFormat:i,onChange:e=>n({format:e})}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to comment"),onChange:()=>n({isLink:!t}),checked:t})]})});o&&a||(a=(0,tt._x)("Comment Date","block title"));let l=a instanceof Date?(0,Je.jsx)("time",{dateTime:(0,Ir.dateI18n)("c",a),children:(0,Ir.dateI18n)(e||i,a)}):(0,Je.jsx)("time",{children:a});return t&&(l=(0,Je.jsx)("a",{href:"#comment-date-pseudo-link",onClick:e=>e.preventDefault(),children:l})),(0,Je.jsxs)(Je.Fragment,{children:[s,(0,Je.jsx)("div",{...r,children:l})]})},deprecated:Mr},Lr=()=>Xe({name:Rr,metadata:zr,settings:Ar}),Hr=(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"})});const Dr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-edit-link",title:"Comment Edit Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to edit the comment in the WordPress Dashboard. This link is only visible to users with the edit comment capability.",textdomain:"default",usesContext:["commentId"],attributes:{linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},supports:{html:!1,color:{link:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Fr}=Dr,Vr={icon:Hr,edit:function({attributes:{linkTarget:e,textAlign:t},setAttributes:o}){const n=(0,ot.useBlockProps)({className:dt({[`has-text-align-${t}`]:t})}),r=(0,Je.jsx)(ot.BlockControls,{group:"block",children:(0,Je.jsx)(ot.AlignmentControl,{value:t,onChange:e=>o({textAlign:e})})}),a=(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(et.PanelBody,{title:(0,tt.__)("Settings"),children:(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>o({linkTarget:e?"_blank":"_self"}),checked:"_blank"===e})})});return(0,Je.jsxs)(Je.Fragment,{children:[r,a,(0,Je.jsx)("div",{...n,children:(0,Je.jsx)("a",{href:"#edit-comment-pseudo-link",onClick:e=>e.preventDefault(),children:(0,tt.__)("Edit")})})]})}},Er=()=>Xe({name:Fr,metadata:Dr,settings:Vr}),$r=(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"})});const Gr=function({setAttributes:e,attributes:{textAlign:t}}){const o=(0,ot.useBlockProps)({className:dt({[`has-text-align-${t}`]:t})}),n=(0,Je.jsx)(ot.BlockControls,{group:"block",children:(0,Je.jsx)(ot.AlignmentControl,{value:t,onChange:t=>e({textAlign:t})})});return(0,Je.jsxs)(Je.Fragment,{children:[n,(0,Je.jsx)("div",{...o,children:(0,Je.jsx)("a",{href:"#comment-reply-pseudo-link",onClick:e=>e.preventDefault(),children:(0,tt.__)("Reply")})})]})},Or={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-reply-link",title:"Comment Reply Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to reply to a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},html:!1}},{name:Ur}=Or,qr={edit:Gr,icon:$r},Wr=()=>Xe({name:Ur,metadata:Or,settings:qr}),Zr=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),Qr=window.wp.apiFetch;var Kr=o.n(Qr);const Jr=({defaultPage:e,postId:t,perPage:o,queryArgs:n})=>{const[r,a]=(0,bt.useState)({}),i=`${t}_${o}`,s=r[i]||0;return(0,bt.useEffect)((()=>{s||"newest"!==e||Kr()({path:(0,pt.addQueryArgs)("/wp/v2/comments",{...n,post:t,per_page:o,_fields:"id"}),method:"HEAD",parse:!1}).then((e=>{const t=parseInt(e.headers.get("X-WP-TotalPages"));a({...r,[i]:t<=1?1:t})}))}),[e,t,o,a]),"newest"===e?s:1},Yr=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function Xr({comment:e,activeCommentId:t,setActiveCommentId:o,firstCommentId:n,blocks:r}){const{children:a,...i}=(0,ot.useInnerBlocksProps)({},{template:Yr});return(0,Je.jsxs)("li",{...i,children:[e.commentId===(t||n)?a:null,(0,Je.jsx)(ea,{blocks:r,commentId:e.commentId,setActiveCommentId:o,isHidden:e.commentId===(t||n)}),e?.children?.length>0?(0,Je.jsx)(ta,{comments:e.children,activeCommentId:t,setActiveCommentId:o,blocks:r,firstCommentId:n}):null]})}const ea=(0,bt.memo)((({blocks:e,commentId:t,setActiveCommentId:o,isHidden:n})=>{const r=(0,ot.__experimentalUseBlockPreview)({blocks:e}),a=()=>{o(t)},i={display:n?"none":void 0};return(0,Je.jsx)("div",{...r,tabIndex:0,role:"button",style:i,onClick:a,onKeyPress:a})})),ta=({comments:e,blockProps:t,activeCommentId:o,setActiveCommentId:n,blocks:r,firstCommentId:a})=>(0,Je.jsx)("ol",{...t,children:e&&e.map((({commentId:e,...t},i)=>(0,Je.jsx)(ot.BlockContextProvider,{value:{commentId:e<0?null:e},children:(0,Je.jsx)(Xr,{comment:{commentId:e,...t},activeCommentId:o,setActiveCommentId:n,blocks:r,firstCommentId:a})},t.commentId||i)))});const oa={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-template",title:"Comment Template",category:"design",parent:["core/comments"],description:"Contains the block elements used to display a comment, like the title, date, author, avatar and more.",textdomain:"default",usesContext:["postId"],supports:{align:!0,html:!1,reusable:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-comment-template"},{name:na}=oa,ra={icon:Zr,edit:function({clientId:e,context:{postId:t}}){const o=(0,ot.useBlockProps)(),[n,r]=(0,bt.useState)(),{commentOrder:a,threadCommentsDepth:i,threadComments:s,commentsPerPage:l,pageComments:c}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(ot.store);return t().__experimentalDiscussionSettings})),u=(({postId:e})=>{const t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:o,commentsPerPage:n,defaultCommentsPage:r}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(ot.store),{__experimentalDiscussionSettings:o}=t();return o})),a=o?Math.min(n,100):100,i=Jr({defaultPage:r,postId:e,perPage:a,queryArgs:t});return(0,bt.useMemo)((()=>i?{...t,post:e,per_page:a,page:i}:null),[e,a,i])})({postId:t}),{topLevelComments:d,blocks:p}=(0,gt.useSelect)((t=>{const{getEntityRecords:o}=t(mt.store),{getBlocks:n}=t(ot.store);return{topLevelComments:u?o("root","comment",u):null,blocks:n(e)}}),[e,u]);let m=(e=>(0,bt.useMemo)((()=>e?.map((({id:e,_embedded:t})=>{const[o]=t?.children||[[]];return{commentId:e,children:o.map((e=>({commentId:e.id})))}}))),[e]))("desc"===a&&d?[...d].reverse():d);return d?(t||(m=(({perPage:e,pageComments:t,threadComments:o,threadCommentsDepth:n})=>{const r=o?Math.min(n,3):1,a=e=>e<r?[{commentId:-(e+3),children:a(e+1)}]:[],i=[{commentId:-1,children:a(1)}];return(!t||e>=2)&&r<3&&i.push({commentId:-2,children:[]}),(!t||e>=3)&&r<2&&i.push({commentId:-3,children:[]}),i})({perPage:l,pageComments:c,threadComments:s,threadCommentsDepth:i})),m.length?(0,Je.jsx)(ta,{comments:m,blockProps:o,blocks:p,activeCommentId:n,setActiveCommentId:r,firstCommentId:m[0]?.commentId}):(0,Je.jsx)("p",{...o,children:(0,tt.__)("No results found.")})):(0,Je.jsx)("p",{...o,children:(0,Je.jsx)(et.Spinner,{})})},save:function(){return(0,Je.jsx)(ot.InnerBlocks.Content,{})}},aa=()=>Xe({name:na,metadata:oa,settings:ra}),ia=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"})}),sa={none:"",arrow:"←",chevron:"«"};const la={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-previous",title:"Comments Previous Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the previous comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:ca}=la,ua={icon:ia,edit:function({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":o}}){const n=sa[o];return(0,Je.jsxs)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),...(0,ot.useBlockProps)(),children:[n&&(0,Je.jsx)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${o}`,children:n}),(0,Je.jsx)(ot.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,tt.__)("Older comments page link"),placeholder:(0,tt.__)("Older Comments"),value:e,onChange:e=>t({label:e})})]})}},da=()=>Xe({name:ca,metadata:la,settings:ua}),pa=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})});function ma({value:e,onChange:t}){return(0,Je.jsxs)(et.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Arrow"),value:e,onChange:t,help:(0,tt.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0,children:[(0,Je.jsx)(et.__experimentalToggleGroupControlOption,{value:"none",label:(0,tt._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Je.jsx)(et.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,tt._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Je.jsx)(et.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,tt._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")})]})}const ga=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]];const ha={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination",title:"Comments Pagination",category:"theme",parent:["core/comments"],allowedBlocks:["core/comments-pagination-previous","core/comments-pagination-numbers","core/comments-pagination-next"],description:"Displays a paginated navigation to next/previous set of comments, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"}},providesContext:{"comments/paginationArrow":"paginationArrow"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-comments-pagination-editor",style:"wp-block-comments-pagination"},{name:xa}=ha,ba={icon:pa,edit:function({attributes:{paginationArrow:e},setAttributes:t,clientId:o}){const n=(0,gt.useSelect)((e=>{const{getBlocks:t}=e(ot.store),n=t(o);return n?.find((e=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(e.name)))}),[]),r=(0,ot.useBlockProps)(),a=(0,ot.useInnerBlocksProps)(r,{template:ga});return(0,gt.useSelect)((e=>{const{getSettings:t}=e(ot.store),{__experimentalDiscussionSettings:o}=t();return o?.pageComments}),[])?(0,Je.jsxs)(Je.Fragment,{children:[n&&(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(et.PanelBody,{title:(0,tt.__)("Settings"),children:(0,Je.jsx)(ma,{value:e,onChange:e=>{t({paginationArrow:e})}})})}),(0,Je.jsx)("div",{...a})]}):(0,Je.jsx)(ot.Warning,{children:(0,tt.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings")})},save:function(){return(0,Je.jsx)(ot.InnerBlocks.Content,{})}},_a=()=>Xe({name:xa,metadata:ha,settings:ba}),ya=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})}),va={none:"",arrow:"→",chevron:"»"};const fa={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-next",title:"Comments Next Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the next comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:ka}=fa,wa={icon:ya,edit:function({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":o}}){const n=va[o];return(0,Je.jsxs)("a",{href:"#comments-pagination-next-pseudo-link",onClick:e=>e.preventDefault(),...(0,ot.useBlockProps)(),children:[(0,Je.jsx)(ot.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,tt.__)("Newer comments page link"),placeholder:(0,tt.__)("Newer Comments"),value:e,onChange:e=>t({label:e})}),n&&(0,Je.jsx)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${o}`,children:n})]})}},Ca=()=>Xe({name:ka,metadata:fa,settings:wa}),ja=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.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.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"})}),Sa=({content:e,tag:t="a",extraClass:o=""})=>"a"===t?(0,Je.jsx)(t,{className:`page-numbers ${o}`,href:"#comments-pagination-numbers-pseudo-link",onClick:e=>e.preventDefault(),children:e}):(0,Je.jsx)(t,{className:`page-numbers ${o}`,children:e});const Ba={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-numbers",title:"Comments Page Numbers",category:"theme",parent:["core/comments-pagination"],description:"Displays a list of page numbers for comments pagination.",textdomain:"default",usesContext:["postId"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Na}=Ba,Ta={icon:ja,edit:function(){return(0,Je.jsxs)("div",{...(0,ot.useBlockProps)(),children:[(0,Je.jsx)(Sa,{content:"1"}),(0,Je.jsx)(Sa,{content:"2"}),(0,Je.jsx)(Sa,{content:"3",tag:"span",extraClass:"current"}),(0,Je.jsx)(Sa,{content:"4"}),(0,Je.jsx)(Sa,{content:"5"}),(0,Je.jsx)(Sa,{content:"...",tag:"span",extraClass:"dots"}),(0,Je.jsx)(Sa,{content:"8"})]})}},Ia=()=>Xe({name:Na,metadata:Ba,settings:Ta}),Pa=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})});const{attributes:Ma,supports:za}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-title",title:"Comments Title",category:"theme",ancestor:["core/comments"],description:"Displays a title with the number of comments.",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2}},supports:{anchor:!1,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}},interactivity:{clientNavigation:!0}}},Ra=[{attributes:{...Ma,singleCommentLabel:{type:"string"},multipleCommentsLabel:{type:"string"}},supports:za,migrate:e=>{const{singleCommentLabel:t,multipleCommentsLabel:o,...n}=e;return n},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null}],Aa={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-title",title:"Comments Title",category:"theme",ancestor:["core/comments"],description:"Displays a title with the number of comments.",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2}},supports:{anchor:!1,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}},interactivity:{clientNavigation:!0}}},{name:La}=Aa,Ha={icon:Pa,edit:function({attributes:{textAlign:e,showPostTitle:t,showCommentsCount:o,level:n},setAttributes:r,context:{postType:a,postId:i}}){const s="h"+n,[l,c]=(0,bt.useState)(),[u]=(0,mt.useEntityProp)("postType",a,"title",i),d=void 0===i,p=(0,ot.useBlockProps)({className:dt({[`has-text-align-${e}`]:e})}),{threadCommentsDepth:m,threadComments:g,commentsPerPage:h,pageComments:x}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(ot.store);return t().__experimentalDiscussionSettings}));(0,bt.useEffect)((()=>{if(d){const e=g?Math.min(m,3)-1:0,t=x?h:3,o=parseInt(e)+parseInt(t);return void c(Math.min(o,3))}const e=i;Kr()({path:(0,pt.addQueryArgs)("/wp/v2/comments",{post:i,_fields:"id"}),method:"HEAD",parse:!1}).then((t=>{e===i&&c(parseInt(t.headers.get("X-WP-Total")))})).catch((()=>{c(0)}))}),[i]);const b=(0,Je.jsxs)(ot.BlockControls,{group:"block",children:[(0,Je.jsx)(ot.AlignmentControl,{value:e,onChange:e=>r({textAlign:e})}),(0,Je.jsx)(ot.HeadingLevelDropdown,{value:n,onChange:e=>r({level:e})})]}),_=(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show post title"),checked:t,onChange:e=>r({showPostTitle:e})}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show comments count"),checked:o,onChange:e=>r({showCommentsCount:e})})]})}),y=d?(0,tt.__)("“Post Title”"):`"${u}"`;let v;return v=o&&void 0!==l?t?1===l?(0,tt.sprintf)((0,tt.__)("One response to %s"),y):(0,tt.sprintf)((0,tt._n)("%1$s response to %2$s","%1$s responses to %2$s",l),l,y):1===l?(0,tt.__)("One response"):(0,tt.sprintf)((0,tt._n)("%s response","%s responses",l),l):t?1===l?(0,tt.sprintf)((0,tt.__)("Response to %s"),y):(0,tt.sprintf)((0,tt.__)("Responses to %s"),y):1===l?(0,tt.__)("Response"):(0,tt.__)("Responses"),(0,Je.jsxs)(Je.Fragment,{children:[b,_,(0,Je.jsx)(s,{...p,children:v})]})},deprecated:Ra},Da=()=>Xe({name:La,metadata:Aa,settings:Ha}),Fa=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.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"})}),Va={"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"},Ea="image",$a="video",Ga=50,Oa={x:.5,y:.5},Ua=["image","video"];function qa({x:e,y:t}=Oa){return`${Math.round(100*e)}% ${Math.round(100*t)}%`}function Wa(e){return 50===e||void 0===e?null:"has-background-dim-"+10*Math.round(e/10)}function Za(e){return!e||"center center"===e||"center"===e}function Qa(e){return Za(e)?"":Va[e]}function Ka(e){return e?{backgroundImage:`url(${e})`}:{}}function Ja(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function Ya(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function Xa(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}const ei={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"}},ti={url:{type:"string"},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},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"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},oi={...ti,useFeaturedImage:{type:"boolean",default:!1},tagName:{type:"string",default:"div"}},ni={anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},ri={...ni,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1}},ai={attributes:oi,supports:ri,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:x,minHeightUnit:b,tagName:_}=e,y=(0,ot.getColorClassName)("background-color",p),v=(0,ot.__experimentalGetGradientClass)(o),f=Ea===t,k=$a===t,w=!(c||d),C={minHeight:(x&&b?`${x}${b}`:x)||void 0},j={backgroundColor:y?void 0:a,background:r||void 0},S=s&&w?qa(s):void 0,B=m?`url(${m})`:void 0,N=qa(s),T=dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Za(n)},Qa(n)),I=dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":d}),P=o||r;return(0,Je.jsxs)(_,{...ot.useBlockProps.save({className:T,style:C}),children:[(0,Je.jsx)("span",{"aria-hidden":"true",className:dt("wp-block-cover__background",y,Wa(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&P&&0!==i,"has-background-gradient":P,[v]:v}),style:j}),!l&&f&&m&&(w?(0,Je.jsx)("img",{className:I,alt:g,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}):(0,Je.jsx)("div",{role:"img",className:I,style:{backgroundPosition:N,backgroundImage:B}})),k&&m&&(0,Je.jsx)("video",{className:dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,Je.jsx)("div",{...ot.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},ii={attributes:oi,supports:ri,isEligible:e=>void 0!==e.customOverlayColor||void 0!==e.overlayColor,migrate:e=>({...e,isUserOverlayColor:!0}),save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:x,minHeightUnit:b,tagName:_}=e,y=(0,ot.getColorClassName)("background-color",p),v=(0,ot.__experimentalGetGradientClass)(o),f=Ea===t,k=$a===t,w=!(c||d),C={minHeight:(x&&b?`${x}${b}`:x)||void 0},j={backgroundColor:y?void 0:a,background:r||void 0},S=s&&w?qa(s):void 0,B=m?`url(${m})`:void 0,N=qa(s),T=dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Za(n)},Qa(n)),I=dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":d}),P=o||r;return(0,Je.jsxs)(_,{...ot.useBlockProps.save({className:T,style:C}),children:[(0,Je.jsx)("span",{"aria-hidden":"true",className:dt("wp-block-cover__background",y,Wa(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&P&&0!==i,"has-background-gradient":P,[v]:v}),style:j}),!l&&f&&m&&(w?(0,Je.jsx)("img",{className:I,alt:g,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}):(0,Je.jsx)("div",{role:"img",className:I,style:{backgroundPosition:N,backgroundImage:B}})),k&&m&&(0,Je.jsx)("video",{className:dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,Je.jsx)("div",{...ot.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},si={attributes:ti,supports:ni,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:x,minHeightUnit:b}=e,_=(0,ot.getColorClassName)("background-color",p),y=(0,ot.__experimentalGetGradientClass)(o),v=Ea===t,f=$a===t,k=!(c||d),w={minHeight:(x&&b?`${x}${b}`:x)||void 0},C={backgroundColor:_?void 0:a,background:r||void 0},j=s&&k?qa(s):void 0,S=m?`url(${m})`:void 0,B=qa(s),N=dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Za(n)},Qa(n)),T=dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":d}),I=o||r;return(0,Je.jsxs)("div",{...ot.useBlockProps.save({className:N,style:w}),children:[(0,Je.jsx)("span",{"aria-hidden":"true",className:dt("wp-block-cover__background",_,Wa(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&I&&0!==i,"has-background-gradient":I,[y]:y}),style:C}),!l&&v&&m&&(k?(0,Je.jsx)("img",{className:T,alt:g,src:m,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}):(0,Je.jsx)("div",{role:"img",className:T,style:{backgroundPosition:B,backgroundImage:S}})),f&&m&&(0,Je.jsx)("video",{className:dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),(0,Je.jsx)("div",{...ot.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Xa},li={attributes:ti,supports:ni,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:x,minHeightUnit:b}=e,_=(0,ot.getColorClassName)("background-color",p),y=(0,ot.__experimentalGetGradientClass)(o),v=x&&b?`${x}${b}`:x,f=Ea===t,k=$a===t,w=!(c||d),C={...!f||w||l?{}:Ka(m),minHeight:v||void 0},j={backgroundColor:_?void 0:a,background:r||void 0},S=s&&w?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,B=dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Za(n)},Qa(n)),N=o||r;return(0,Je.jsxs)("div",{...ot.useBlockProps.save({className:B,style:C}),children:[(0,Je.jsx)("span",{"aria-hidden":"true",className:dt("wp-block-cover__background",_,Wa(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&N&&0!==i,"has-background-gradient":N,[y]:y}),style:j}),!l&&f&&w&&m&&(0,Je.jsx)("img",{className:dt("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:g,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),k&&m&&(0,Je.jsx)("video",{className:dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,Je.jsx)("div",{...ot.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Xa},ci={attributes:ti,supports:ni,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,hasParallax:l,isDark:c,isRepeated:u,overlayColor:d,url:p,alt:m,id:g,minHeight:h,minHeightUnit:x}=e,b=(0,ot.getColorClassName)("background-color",d),_=(0,ot.__experimentalGetGradientClass)(o),y=x?`${h}${x}`:h,v=Ea===t,f=$a===t,k=!(l||u),w={...v&&!k?Ka(p):{},minHeight:y||void 0},C={backgroundColor:b?void 0:a,background:r||void 0},j=s&&k?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,S=dt({"is-light":!c,"has-parallax":l,"is-repeated":u,"has-custom-content-position":!Za(n)},Qa(n)),B=o||r;return(0,Je.jsxs)("div",{...ot.useBlockProps.save({className:S,style:w}),children:[(0,Je.jsx)("span",{"aria-hidden":"true",className:dt("wp-block-cover__background",b,Wa(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":p&&B&&0!==i,"has-background-gradient":B,[_]:_}),style:C}),v&&k&&p&&(0,Je.jsx)("img",{className:dt("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:m,src:p,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),f&&p&&(0,Je.jsx)("video",{className:dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),(0,Je.jsx)("div",{...ot.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Xa},ui={attributes:ti,supports:ni,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,hasParallax:l,isDark:c,isRepeated:u,overlayColor:d,url:p,alt:m,id:g,minHeight:h,minHeightUnit:x}=e,b=(0,ot.getColorClassName)("background-color",d),_=(0,ot.__experimentalGetGradientClass)(o),y=x?`${h}${x}`:h,v=Ea===t,f=$a===t,k=!(l||u),w={...v&&!k?Ka(p):{},minHeight:y||void 0},C={backgroundColor:b?void 0:a,background:r||void 0},j=s&&k?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,S=dt({"is-light":!c,"has-parallax":l,"is-repeated":u,"has-custom-content-position":!Za(n)},Qa(n));return(0,Je.jsxs)("div",{...ot.useBlockProps.save({className:S,style:w}),children:[(0,Je.jsx)("span",{"aria-hidden":"true",className:dt(b,Wa(i),"wp-block-cover__gradient-background",_,{"has-background-dim":void 0!==i,"has-background-gradient":o||r,[_]:!p&&_}),style:C}),v&&k&&p&&(0,Je.jsx)("img",{className:dt("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:m,src:p,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),f&&p&&(0,Je.jsx)("video",{className:dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),(0,Je.jsx)("div",{...ot.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Xa},di={attributes:{...ei,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""}},supports:ni,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,hasParallax:l,isRepeated:c,overlayColor:u,url:d,alt:p,id:m,minHeight:g,minHeightUnit:h}=e,x=(0,ot.getColorClassName)("background-color",u),b=(0,ot.__experimentalGetGradientClass)(o),_=h?`${g}${h}`:g,y=Ea===t,v=$a===t,f=!(l||c),k={...y&&!f?Ka(d):{},backgroundColor:x?void 0:a,background:r&&!d?r:void 0,minHeight:_||void 0},w=s&&f?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,C=dt(Ja(i),x,{"has-background-dim":0!==i,"has-parallax":l,"is-repeated":c,"has-background-gradient":o||r,[b]:!d&&b,"has-custom-content-position":!Za(n)},Qa(n));return(0,Je.jsxs)("div",{...ot.useBlockProps.save({className:C,style:k}),children:[d&&(o||r)&&0!==i&&(0,Je.jsx)("span",{"aria-hidden":"true",className:dt("wp-block-cover__gradient-background",b),style:r?{background:r}:void 0}),y&&f&&d&&(0,Je.jsx)("img",{className:dt("wp-block-cover__image-background",m?`wp-image-${m}`:null),alt:p,src:d,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),v&&d&&(0,Je.jsx)("video",{className:dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),(0,Je.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})]})},migrate:(0,Ut.compose)(Ya,Xa)},pi={attributes:{...ei,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,hasParallax:l,isRepeated:c,overlayColor:u,url:d,minHeight:p,minHeightUnit:m}=e,g=(0,ot.getColorClassName)("background-color",u),h=(0,ot.__experimentalGetGradientClass)(o),x=m?`${p}${m}`:p,b=Ea===t,_=$a===t,y=b?Ka(d):{},v={};let f;g||(y.backgroundColor=a),r&&!d&&(y.background=r),y.minHeight=x||void 0,s&&(f=`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`,b&&!l&&(y.backgroundPosition=f),_&&(v.objectPosition=f));const k=dt(Ja(i),g,{"has-background-dim":0!==i,"has-parallax":l,"is-repeated":c,"has-background-gradient":o||r,[h]:!d&&h,"has-custom-content-position":!Za(n)},Qa(n));return(0,Je.jsxs)("div",{...ot.useBlockProps.save({className:k,style:y}),children:[d&&(o||r)&&0!==i&&(0,Je.jsx)("span",{"aria-hidden":"true",className:dt("wp-block-cover__gradient-background",h),style:r?{background:r}:void 0}),_&&d&&(0,Je.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:v}),(0,Je.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})]})},migrate:(0,Ut.compose)(Ya,Xa)},mi={attributes:{...ei,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:o,customGradient:n,customOverlayColor:r,dimRatio:a,focalPoint:i,hasParallax:s,overlayColor:l,url:c,minHeight:u}=e,d=(0,ot.getColorClassName)("background-color",l),p=(0,ot.__experimentalGetGradientClass)(o),m=t===Ea?Ka(c):{};d||(m.backgroundColor=r),i&&!s&&(m.backgroundPosition=`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`),n&&!c&&(m.background=n),m.minHeight=u||void 0;const g=dt(Ja(a),d,{"has-background-dim":0!==a,"has-parallax":s,"has-background-gradient":n,[p]:!c&&p});return(0,Je.jsxs)("div",{className:g,style:m,children:[c&&(o||n)&&0!==a&&(0,Je.jsx)("span",{"aria-hidden":"true",className:dt("wp-block-cover__gradient-background",p),style:n?{background:n}:void 0}),$a===t&&c&&(0,Je.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),(0,Je.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})]})},migrate:(0,Ut.compose)(Ya,Xa)},gi={attributes:{...ei,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:o,customGradient:n,customOverlayColor:r,dimRatio:a,focalPoint:i,hasParallax:s,overlayColor:l,url:c,minHeight:u}=e,d=(0,ot.getColorClassName)("background-color",l),p=(0,ot.__experimentalGetGradientClass)(o),m=t===Ea?Ka(c):{};d||(m.backgroundColor=r),i&&!s&&(m.backgroundPosition=`${100*i.x}% ${100*i.y}%`),n&&!c&&(m.background=n),m.minHeight=u||void 0;const g=dt(Ja(a),d,{"has-background-dim":0!==a,"has-parallax":s,"has-background-gradient":n,[p]:!c&&p});return(0,Je.jsxs)("div",{className:g,style:m,children:[c&&(o||n)&&0!==a&&(0,Je.jsx)("span",{"aria-hidden":"true",className:dt("wp-block-cover__gradient-background",p),style:n?{background:n}:void 0}),$a===t&&c&&(0,Je.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),(0,Je.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})]})},migrate:(0,Ut.compose)(Ya,Xa)},hi={attributes:{...ei,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,contentAlign:o,customOverlayColor:n,dimRatio:r,focalPoint:a,hasParallax:i,overlayColor:s,title:l,url:c}=e,u=(0,ot.getColorClassName)("background-color",s),d=t===Ea?Ka(c):{};u||(d.backgroundColor=n),a&&!i&&(d.backgroundPosition=`${100*a.x}% ${100*a.y}%`);const p=dt(Ja(r),u,{"has-background-dim":0!==r,"has-parallax":i,[`has-${o}-content`]:"center"!==o});return(0,Je.jsxs)("div",{className:p,style:d,children:[$a===t&&c&&(0,Je.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),!ot.RichText.isEmpty(l)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:l})]})},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:o,contentAlign:n,...r}=t;return[r,[(0,Qe.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,tt.__)("Write title…")})]]}},xi={attributes:{...ei,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save({attributes:e}){const{url:t,title:o,hasParallax:n,dimRatio:r,align:a,contentAlign:i,overlayColor:s,customOverlayColor:l}=e,c=(0,ot.getColorClassName)("background-color",s),u=Ka(t);c||(u.backgroundColor=l);const d=dt("wp-block-cover-image",Ja(r),c,{"has-background-dim":0!==r,"has-parallax":n,[`has-${i}-content`]:"center"!==i},a?`align${a}`:null);return(0,Je.jsx)("div",{className:d,style:u,children:!ot.RichText.isEmpty(o)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:o})})},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:o,contentAlign:n,align:r,...a}=t;return[a,[(0,Qe.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,tt.__)("Write title…")})]]}},bi={attributes:{...ei,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save({attributes:e}){const{url:t,title:o,hasParallax:n,dimRatio:r,align:a}=e,i=Ka(t),s=dt("wp-block-cover-image",Ja(r),{"has-background-dim":0!==r,"has-parallax":n},a?`align${a}`:null);return(0,Je.jsx)("section",{className:s,style:i,children:(0,Je.jsx)(ot.RichText.Content,{tagName:"h2",value:o})})},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:o,contentAlign:n,align:r,...a}=t;return[a,[(0,Qe.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,tt.__)("Write title…")})]]}},_i=[ai,ii,si,li,ci,ui,di,pi,mi,gi,hi,xi,bi],{cleanEmptyObject:yi}=Ht(ot.privateApis);function vi({onChange:e,onUnitChange:t,unit:o="px",value:n=""}){const r=`block-cover-height-input-${(0,Ut.useInstanceId)(et.__experimentalUnitControl)}`,a="px"===o,[i]=(0,ot.useSettings)("spacing.units"),s=(0,et.__experimentalUseCustomUnits)({availableUnits:i||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),l=(0,bt.useMemo)((()=>{const[e]=(0,et.__experimentalParseQuantityAndUnitFromRawValue)(n);return[e,o].join("")}),[o,n]),c=a?Ga:0;return(0,Je.jsx)(et.__experimentalUnitControl,{label:(0,tt.__)("Minimum height of cover"),id:r,isResetValueOnUnitChange:!0,min:c,onChange:t=>{const o=""!==t?parseFloat(t):void 0;isNaN(o)&&void 0!==o||e(o)},onUnitChange:t,__unstableInputWidth:"80px",units:s,value:l})}function fi({attributes:e,setAttributes:t,clientId:o,setOverlayColor:n,coverRef:r,currentSettings:a,updateDimRatio:i,onClearMedia:s}){const{useFeaturedImage:l,dimRatio:c,focalPoint:u,hasParallax:d,isRepeated:p,minHeight:m,minHeightUnit:g,alt:h,tagName:x}=e,{isVideoBackground:b,isImageBackground:_,mediaElement:y,url:v,overlayColor:f}=a,{gradientValue:k,setGradient:w}=(0,ot.__experimentalUseGradient)(),C=b||_&&(!d||p),j=e=>{const[t,o]=y.current?[y.current.style,"objectPosition"]:[r.current.style,"backgroundPosition"];t[o]=qa(e)},S=(0,ot.__experimentalUseMultipleOriginColorsAndGradients)(),B={header:(0,tt.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,tt.__)("The <main> element should be used for the primary content of your document only."),section:(0,tt.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,tt.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,tt.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,tt.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{children:!!v&&(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[_&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Fixed background"),checked:d,onChange:()=>{t({hasParallax:!d,...d?{}:{focalPoint:void 0}})}}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Repeated background"),checked:p,onChange:()=>{t({isRepeated:!p})}})]}),C&&(0,Je.jsx)(et.FocalPointPicker,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Focal point"),url:v,value:u,onDragStart:j,onDrag:j,onChange:e=>t({focalPoint:e})}),!l&&v&&!b&&(0,Je.jsx)(et.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Alternative text"),value:h,onChange:e=>t({alt:e}),help:(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.ExternalLink,{href:(0,tt.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,tt.__)("Describe the purpose of the image.")}),(0,Je.jsx)("br",{}),(0,tt.__)("Leave empty if decorative.")]})}),(0,Je.jsx)(et.PanelRow,{children:(0,Je.jsx)(et.Button,{variant:"secondary",size:"small",className:"block-library-cover__reset-button",onClick:s,children:(0,tt.__)("Clear Media")})})]})}),S.hasColorsOrGradients&&(0,Je.jsxs)(ot.InspectorControls,{group:"color",children:[(0,Je.jsx)(ot.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:f.color,gradientValue:k,label:(0,tt.__)("Overlay"),onColorChange:n,onGradientChange:w,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0})}],panelId:o,...S}),(0,Je.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>void 0!==c&&c!==(v?50:100),label:(0,tt.__)("Overlay opacity"),onDeselect:()=>i(v?50:100),resetAllFilter:()=>({dimRatio:v?50:100}),isShownByDefault:!0,panelId:o,children:(0,Je.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Overlay opacity"),value:c,onChange:e=>i(e),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}),(0,Je.jsx)(ot.InspectorControls,{group:"dimensions",children:(0,Je.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,tt.__)("Minimum height"),onDeselect:()=>t({minHeight:void 0,minHeightUnit:void 0}),resetAllFilter:()=>({minHeight:void 0,minHeightUnit:void 0}),isShownByDefault:!0,panelId:o,children:(0,Je.jsx)(vi,{value:e?.style?.dimensions?.aspectRatio?"":m,unit:g,onChange:o=>t({minHeight:o,style:yi({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}),onUnitChange:e=>t({minHeightUnit:e})})})}),(0,Je.jsx)(ot.InspectorControls,{group:"advanced",children:(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("HTML element"),options:[{label:(0,tt.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:x,onChange:e=>t({tagName:e}),help:B[x]})})]})}const{cleanEmptyObject:ki}=Ht(ot.privateApis);function wi({attributes:e,setAttributes:t,onSelectMedia:o,currentSettings:n,toggleUseFeaturedImage:r}){const{contentPosition:a,id:i,useFeaturedImage:s,minHeight:l,minHeightUnit:c}=e,{hasInnerBlocks:u,url:d}=n,[p,m]=(0,bt.useState)(l),[g,h]=(0,bt.useState)(c),x="vh"===c&&100===l&&!e?.style?.dimensions?.aspectRatio;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(ot.BlockControls,{group:"block",children:[(0,Je.jsx)(ot.__experimentalBlockAlignmentMatrixControl,{label:(0,tt.__)("Change content position"),value:a,onChange:e=>t({contentPosition:e}),isDisabled:!u}),(0,Je.jsx)(ot.__experimentalBlockFullHeightAligmentControl,{isActive:x,onToggle:()=>x?t("vh"===g&&100===p?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:p,minHeightUnit:g}):(m(l),h(c),t({minHeight:100,minHeightUnit:"vh",style:ki({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})})),isDisabled:!u})]}),(0,Je.jsx)(ot.BlockControls,{group:"other",children:(0,Je.jsx)(ot.MediaReplaceFlow,{mediaId:i,mediaURL:d,allowedTypes:Ua,accept:"image/*,video/*",onSelect:o,onToggleFeaturedImage:r,useFeaturedImage:s,name:d?(0,tt.__)("Replace"):(0,tt.__)("Add Media")})})]})}function Ci({disableMediaButtons:e=!1,children:t,onSelectMedia:o,onError:n,style:r,toggleUseFeaturedImage:a}){return(0,Je.jsx)(ot.MediaPlaceholder,{icon:(0,Je.jsx)(ot.BlockIcon,{icon:Fa}),labels:{title:(0,tt.__)("Cover"),instructions:(0,tt.__)("Drag and drop onto this block, upload, or select existing media from your library.")},onSelect:o,accept:"image/*,video/*",allowedTypes:Ua,disableMediaButtons:e,onToggleFeaturedImage:a,onError:n,style:r,children:t})}const ji={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:Si}=Ht(ot.privateApis);function Bi({className:e,height:t,minHeight:o,onResize:n,onResizeStart:r,onResizeStop:a,showHandle:i,size:s,width:l,...c}){const[u,d]=(0,bt.useState)(!1),p={className:dt(e,{"is-resizing":u}),enable:ji,onResizeStart:(e,t,o)=>{r(o.clientHeight),n(o.clientHeight)},onResize:(e,t,o)=>{n(o.clientHeight),u||d(!0)},onResizeStop:(e,t,o)=>{a(o.clientHeight),d(!1)},showHandle:i,size:s,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:u}};return(0,Je.jsx)(Si,{className:"block-library-cover__resizable-box-popover",resizableBoxProps:p,...c})}var Ni={grad:.9,turn:360,rad:360/(2*Math.PI)},Ti=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Ii=function(e,t,o){return void 0===t&&(t=0),void 0===o&&(o=Math.pow(10,t)),Math.round(o*e)/o+0},Pi=function(e,t,o){return void 0===t&&(t=0),void 0===o&&(o=1),e>o?o:e>t?e:t},Mi=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},zi=function(e){return{r:Pi(e.r,0,255),g:Pi(e.g,0,255),b:Pi(e.b,0,255),a:Pi(e.a)}},Ri=function(e){return{r:Ii(e.r),g:Ii(e.g),b:Ii(e.b),a:Ii(e.a,3)}},Ai=/^#([0-9a-f]{3,8})$/i,Li=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Hi=function(e){var t=e.r,o=e.g,n=e.b,r=e.a,a=Math.max(t,o,n),i=a-Math.min(t,o,n),s=i?a===t?(o-n)/i:a===o?2+(n-t)/i:4+(t-o)/i:0;return{h:60*(s<0?s+6:s),s:a?i/a*100:0,v:a/255*100,a:r}},Di=function(e){var t=e.h,o=e.s,n=e.v,r=e.a;t=t/360*6,o/=100,n/=100;var a=Math.floor(t),i=n*(1-o),s=n*(1-(t-a)*o),l=n*(1-(1-t+a)*o),c=a%6;return{r:255*[n,s,i,i,l,n][c],g:255*[l,n,n,s,i,i][c],b:255*[i,i,l,n,n,s][c],a:r}},Fi=function(e){return{h:Mi(e.h),s:Pi(e.s,0,100),l:Pi(e.l,0,100),a:Pi(e.a)}},Vi=function(e){return{h:Ii(e.h),s:Ii(e.s),l:Ii(e.l),a:Ii(e.a,3)}},Ei=function(e){return Di((o=(t=e).s,{h:t.h,s:(o*=((n=t.l)<50?n:100-n)/100)>0?2*o/(n+o)*100:0,v:n+o,a:t.a}));var t,o,n},$i=function(e){return{h:(t=Hi(e)).h,s:(r=(200-(o=t.s))*(n=t.v)/100)>0&&r<200?o*n/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,o,n,r},Gi=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Oi=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ui=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,qi=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Wi={string:[[function(e){var t=Ai.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Ii(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Ii(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Ui.exec(e)||qi.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:zi({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Gi.exec(e)||Oi.exec(e);if(!t)return null;var o,n,r=Fi({h:(o=t[1],n=t[2],void 0===n&&(n="deg"),Number(o)*(Ni[n]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Ei(r)},"hsl"]],object:[[function(e){var t=e.r,o=e.g,n=e.b,r=e.a,a=void 0===r?1:r;return Ti(t)&&Ti(o)&&Ti(n)?zi({r:Number(t),g:Number(o),b:Number(n),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,o=e.s,n=e.l,r=e.a,a=void 0===r?1:r;if(!Ti(t)||!Ti(o)||!Ti(n))return null;var i=Fi({h:Number(t),s:Number(o),l:Number(n),a:Number(a)});return Ei(i)},"hsl"],[function(e){var t=e.h,o=e.s,n=e.v,r=e.a,a=void 0===r?1:r;if(!Ti(t)||!Ti(o)||!Ti(n))return null;var i=function(e){return{h:Mi(e.h),s:Pi(e.s,0,100),v:Pi(e.v,0,100),a:Pi(e.a)}}({h:Number(t),s:Number(o),v:Number(n),a:Number(a)});return Di(i)},"hsv"]]},Zi=function(e,t){for(var o=0;o<t.length;o++){var n=t[o][0](e);if(n)return[n,t[o][1]]}return[null,void 0]},Qi=function(e){return"string"==typeof e?Zi(e.trim(),Wi.string):"object"==typeof e&&null!==e?Zi(e,Wi.object):[null,void 0]},Ki=function(e,t){var o=$i(e);return{h:o.h,s:Pi(o.s+100*t,0,100),l:o.l,a:o.a}},Ji=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Yi=function(e,t){var o=$i(e);return{h:o.h,s:o.s,l:Pi(o.l+100*t,0,100),a:o.a}},Xi=function(){function e(e){this.parsed=Qi(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Ii(Ji(this.rgba),2)},e.prototype.isDark=function(){return Ji(this.rgba)<.5},e.prototype.isLight=function(){return Ji(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Ri(this.rgba)).r,o=e.g,n=e.b,a=(r=e.a)<1?Li(Ii(255*r)):"","#"+Li(t)+Li(o)+Li(n)+a;var e,t,o,n,r,a},e.prototype.toRgb=function(){return Ri(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Ri(this.rgba)).r,o=e.g,n=e.b,(r=e.a)<1?"rgba("+t+", "+o+", "+n+", "+r+")":"rgb("+t+", "+o+", "+n+")";var e,t,o,n,r},e.prototype.toHsl=function(){return Vi($i(this.rgba))},e.prototype.toHslString=function(){return t=(e=Vi($i(this.rgba))).h,o=e.s,n=e.l,(r=e.a)<1?"hsla("+t+", "+o+"%, "+n+"%, "+r+")":"hsl("+t+", "+o+"%, "+n+"%)";var e,t,o,n,r},e.prototype.toHsv=function(){return e=Hi(this.rgba),{h:Ii(e.h),s:Ii(e.s),v:Ii(e.v),a:Ii(e.a,3)};var e},e.prototype.invert=function(){return es({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),es(Ki(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),es(Ki(this.rgba,-e))},e.prototype.grayscale=function(){return es(Ki(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),es(Yi(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),es(Yi(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?es({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Ii(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=$i(this.rgba);return"number"==typeof e?es({h:e,s:t.s,l:t.l,a:t.a}):Ii(t.h)},e.prototype.isEqual=function(e){return this.toHex()===es(e).toHex()},e}(),es=function(e){return e instanceof Xi?e:new Xi(e)},ts=[];
/*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color */
-function Jl(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Xl(e){return"#"+e.map(Jl).join("")}function ei(e){return e?(t=e,Array.isArray(t[0])?e:[e]):[];var t}function ti(e,t,n){for(var a=0;a<n.length;a++)if(ni(e,t,n[a]))return!0;return!1}function ni(e,t,n){switch(n.length){case 3:if(function(e,t,n){if(255!==e[t+3])return!0;if(e[t]===n[0]&&e[t+1]===n[1]&&e[t+2]===n[2])return!0;return!1}(e,t,n))return!0;break;case 4:if(function(e,t,n){if(e[t+3]&&n[3])return e[t]===n[0]&&e[t+1]===n[1]&&e[t+2]===n[2]&&e[t+3]===n[3];return e[t+3]===n[3]}(e,t,n))return!0;break;case 5:if(function(e,t,n){var a=n[0],o=n[1],r=n[2],l=n[3],i=n[4],s=e[t+3],c=ai(s,l,i);if(!l)return c;if(!s&&c)return!0;if(ai(e[t],a,i)&&ai(e[t+1],o,i)&&ai(e[t+2],r,i)&&c)return!0;return!1}(e,t,n))return!0;break;default:return!1}}function ai(e,t,n){return e>=t-n&&e<=t+n}function oi(e,t,n){for(var a={},o=n.ignoredColor,r=n.step,l=[0,0,0,0,0],i=0;i<t;i+=r){var s=e[i],c=e[i+1],m=e[i+2],u=e[i+3];if(!o||!ti(e,i,o)){var p=Math.round(s/24)+","+Math.round(c/24)+","+Math.round(m/24);a[p]?a[p]=[a[p][0]+s*u,a[p][1]+c*u,a[p][2]+m*u,a[p][3]+u,a[p][4]+1]:a[p]=[s*u,c*u,m*u,u,1],l[4]<a[p][4]&&(l=a[p])}}var d=l[0],g=l[1],h=l[2],b=l[3],_=l[4];return b?[Math.round(d/b),Math.round(g/b),Math.round(h/b),Math.round(b/_)]:n.defaultColor}function ri(e,t,n){for(var a=0,o=0,r=0,l=0,i=0,s=n.ignoredColor,c=n.step,m=0;m<t;m+=c){var u=e[m+3],p=e[m]*u,d=e[m+1]*u,g=e[m+2]*u;s&&ti(e,m,s)||(a+=p,o+=d,r+=g,l+=u,i++)}return l?[Math.round(a/l),Math.round(o/l),Math.round(r/l),Math.round(l/i)]:n.defaultColor}function li(e,t,n){for(var a=0,o=0,r=0,l=0,i=0,s=n.ignoredColor,c=n.step,m=0;m<t;m+=c){var u=e[m],p=e[m+1],d=e[m+2],g=e[m+3];s&&ti(e,m,s)||(a+=u*u*g,o+=p*p*g,r+=d*d*g,l+=g,i++)}return l?[Math.round(Math.sqrt(a/l)),Math.round(Math.sqrt(o/l)),Math.round(Math.sqrt(r/l)),Math.round(l/i)]:n.defaultColor}function ii(e){return si(e,"defaultColor",[0,0,0,0])}function si(e,t,n){return void 0===e[t]?n:e[t]}function ci(e){if(ui(e)){var t=e.naturalWidth,n=e.naturalHeight;return e.naturalWidth||-1===e.src.search(/\.svg(\?|$)/i)||(t=n=100),{width:t,height:n}}return function(e){return"undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement}(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function mi(e){return function(e){return"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement}(e)?"canvas":function(e){return pi&&e instanceof OffscreenCanvas}(e)?"offscreencanvas":function(e){return"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap}(e)?"imagebitmap":e.src}function ui(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement}var pi="undefined"!=typeof OffscreenCanvas;var di="undefined"==typeof window;function gi(e){return Error("FastAverageColor: "+e)}function hi(e,t){t||console.error(e)}var bi=function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(e,t){if(!e)return Promise.reject(gi("call .getColorAsync() without resource."));if("string"==typeof e){if("undefined"==typeof Image)return Promise.reject(gi("resource as string is not supported in this environment"));var n=new Image;return n.crossOrigin=t&&t.crossOrigin||"",n.src=e,this.bindImageEvents(n,t)}if(ui(e)&&!e.complete)return this.bindImageEvents(e,t);var a=this.getColor(e,t);return a.error?Promise.reject(a.error):Promise.resolve(a)},e.prototype.getColor=function(e,t){var n=ii(t=t||{});if(!e)return hi(r=gi("call .getColor(null) without resource"),t.silent),this.prepareResult(n,r);var a=function(e,t){var n,a=si(t,"left",0),o=si(t,"top",0),r=si(t,"width",e.width),l=si(t,"height",e.height),i=r,s=l;return"precision"===t.mode||(r>l?(n=r/l,i=100,s=Math.round(i/n)):(n=l/r,s=100,i=Math.round(s/n)),(i>r||s>l||i<10||s<10)&&(i=r,s=l)),{srcLeft:a,srcTop:o,srcWidth:r,srcHeight:l,destWidth:i,destHeight:s}}(ci(e),t);if(!(a.srcWidth&&a.srcHeight&&a.destWidth&&a.destHeight))return hi(r=gi('incorrect sizes for resource "'.concat(mi(e),'"')),t.silent),this.prepareResult(n,r);if(!this.canvas&&(this.canvas=di?pi?new OffscreenCanvas(1,1):null:document.createElement("canvas"),!this.canvas))return hi(r=gi("OffscreenCanvas is not supported in this browser"),t.silent),this.prepareResult(n,r);if(!this.ctx){if(this.ctx=this.canvas.getContext("2d",{willReadFrequently:!0}),!this.ctx)return hi(r=gi("Canvas Context 2D is not supported in this browser"),t.silent),this.prepareResult(n);this.ctx.imageSmoothingEnabled=!1}this.canvas.width=a.destWidth,this.canvas.height=a.destHeight;try{this.ctx.clearRect(0,0,a.destWidth,a.destHeight),this.ctx.drawImage(e,a.srcLeft,a.srcTop,a.srcWidth,a.srcHeight,0,0,a.destWidth,a.destHeight);var o=this.ctx.getImageData(0,0,a.destWidth,a.destHeight).data;return this.prepareResult(this.getColorFromArray4(o,t))}catch(a){var r;return hi(r=gi("security error (CORS) for resource ".concat(mi(e),".\nDetails: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image")),t.silent),!t.silent&&console.error(a),this.prepareResult(n,r)}},e.prototype.getColorFromArray4=function(e,t){t=t||{};var n=e.length,a=ii(t);if(n<4)return a;var o,r=n-n%4,l=4*(t.step||1);switch(t.algorithm||"sqrt"){case"simple":o=ri;break;case"sqrt":o=li;break;case"dominant":o=oi;break;default:throw gi("".concat(t.algorithm," is unknown algorithm"))}return o(e,r,{defaultColor:a,ignoredColor:ei(t.ignoredColor),step:l})},e.prototype.prepareResult=function(e,t){var n,a=e.slice(0,3),o=[e[0],e[1],e[2],e[3]/255],r=(299*(n=e)[0]+587*n[1]+114*n[2])/1e3<128;return{value:[e[0],e[1],e[2],e[3]],rgb:"rgb("+a.join(",")+")",rgba:"rgba("+o.join(",")+")",hex:Xl(a),hexa:Xl(e),isDark:r,isLight:!r,error:t}},e.prototype.destroy=function(){this.canvas&&(this.canvas.width=1,this.canvas.height=1,this.canvas=null),this.ctx=null},e.prototype.bindImageEvents=function(e,t){var n=this;return new Promise((function(a,o){var r=function(){s();var r=n.getColor(e,t);r.error?o(r.error):a(r)},l=function(){s(),o(gi('Error loading image "'.concat(e.src,'".')))},i=function(){s(),o(gi('Image "'.concat(e.src,'" loading aborted')))},s=function(){e.removeEventListener("load",r),e.removeEventListener("error",l),e.removeEventListener("abort",i)};e.addEventListener("load",r),e.addEventListener("error",l),e.addEventListener("abort",i)}))},e}();const _i=window.wp.hooks;!function(e){e.forEach((function(e){Yl.indexOf(e)<0&&(e(Ql,Gl),Yl.push(e))}))}([function(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},a={};for(var o in n)a[n[o]]=o;var r={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,l,i=a[this.toHex()];if(i)return i;if(null==t?void 0:t.closest){var s=this.toRgb(),c=1/0,m="black";if(!r.length)for(var u in n)r[u]=new e(n[u]).toRgb();for(var p in n){var d=(o=s,l=r[p],Math.pow(o.r-l.r,2)+Math.pow(o.g-l.g,2)+Math.pow(o.b-l.b,2));d<c&&(c=d,m=p)}return m}},t.string.push([function(t){var a=t.toLowerCase(),o="transparent"===a?"#0000":n[a];return o?new e(o).toRgb():null},"name"])}]);const yi="#FFF";function vi(){return vi.fastAverageColor||(vi.fastAverageColor=new bi),vi.fastAverageColor}const fi=Rt((async e=>{if(!e)return yi;const{r:t,g:n,b:a,a:o}=Kl(yi).toRgb();try{const r=(0,_i.applyFilters)("media.crossOrigin",void 0,e);return(await vi().getColorAsync(e,{defaultColor:[t,n,a,255*o],silent:!0,crossOrigin:r})).hex}catch(e){return yi}}));function ki(e,t,n){if(t===n||100===e)return Kl(t).isDark();const a=Kl(t).alpha(e/100).toRgb(),o=Kl(n).toRgb(),r=(i=o,{r:(l=a).r*l.a+i.r*i.a*(1-l.a),g:l.g*l.a+i.g*i.a*(1-l.a),b:l.b*l.a+i.b*i.a*(1-l.a),a:l.a+i.a*(1-l.a)});var l,i;return Kl(r).isDark()}const xi=(0,jt.compose)([(0,nt.withColors)({overlayColor:"background-color"})])((function({attributes:e,clientId:t,isSelected:n,overlayColor:a,setAttributes:o,setOverlayColor:r,toggleSelection:l,context:{postId:i,postType:s}}){const{contentPosition:c,id:m,url:u,backgroundType:p,useFeaturedImage:d,dimRatio:g,focalPoint:h,hasParallax:b,isDark:_,isRepeated:y,minHeight:v,minHeightUnit:f,alt:k,allowedBlocks:x,templateLock:w,tagName:E="div",isUserOverlayColor:C}=e,[S]=(0,dt.useEntityProp)("postType",s,"featured_media",i),{__unstableMarkNextChangeAsNotPersistent:B}=(0,gt.useDispatch)(nt.store),N=(0,gt.useSelect)((e=>S&&e(dt.store).getMedia(S,{context:"view"})),[S]),T=N?.source_url;(0,_t.useEffect)((()=>{(async()=>{if(!d)return;const e=await fi(T);let t=a.color;C||(t=e,B(),r(t));const n=ki(g,t,e);B(),o({isDark:n})})()}),[T]);const I=d?T:u?.replaceAll("&amp;","&"),P=d?Lr:p,{createErrorNotice:M}=(0,gt.useDispatch)(Pt.store),{gradientClass:z,gradientValue:R}=(0,nt.__experimentalUseGradient)(),A=async e=>{const t=function(e){if(!e||!e.url)return{url:void 0,id:void 0};let t;if((0,It.isBlobURL)(e.url)&&(e.type=(0,It.getBlobTypeByURL)(e.url)),e.media_type)t=e.media_type===Lr?Lr:Dr;else{if(e.type!==Lr&&e.type!==Dr)return;t=e.type}return{url:e.url,id:e.id,alt:e?.alt,backgroundType:t,...t===Dr?{hasParallax:void 0}:{}}}(e),n=[e?.type,e?.media_type].includes(Lr),l=await fi(n?e?.url:void 0);let i=a.color;C||(i=l,r(i),B());const s=void 0===u&&100===g?50:g,c=ki(s,i,l);o({...t,focalPoint:void 0,useFeaturedImage:void 0,dimRatio:s,isDark:c})},H=async e=>{const t=await fi(I),n=ki(g,e,t);r(e),B(),o({isUserOverlayColor:!0,isDark:n})},L=e=>{M(e,{type:"snackbar"})},D=((e,t)=>!e&&(0,It.isBlobURL)(t))(m,I),F=Lr===P,V=Dr===P,[$,{height:O,width:G}]=(0,jt.useResizeObserver)(),U=(0,_t.useMemo)((()=>({height:"px"===f?v:"auto",width:"auto"})),[v,f]),q=v&&f?`${v}${f}`:v,j=!(b||y),W={minHeight:q||void 0},Z=I?`url(${I})`:void 0,Q=Or(h),K={backgroundColor:a.color},Y={objectPosition:h&&j?Or(h):void 0},J=!!(I||a.color||R),X=(0,gt.useSelect)((e=>e(nt.store).getBlock(t).innerBlocks.length>0),[t]),ee=(0,_t.useRef)(),te=(0,nt.useBlockProps)({ref:ee}),[ne]=(0,nt.useSettings)("typography.fontSizes"),ae=function(e){return[["core/paragraph",{align:"center",placeholder:(0,tt.__)("Write title…"),...e}]]}({fontSize:ne?.length>0?"large":void 0}),oe=(0,nt.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:X?void 0:ae,templateInsertUpdatesSelection:!0,allowedBlocks:x,templateLock:w,dropZoneElement:ee.current}),re=(0,_t.useRef)(),le={isVideoBackground:V,isImageBackground:F,mediaElement:re,hasInnerBlocks:X,url:I,isImgElement:j,overlayColor:a},ie=async()=>{const e=!d,t=e?await fi(T):yi,n=C?a.color:t;C||(r(e?n:void 0),B());const l=100===g?50:g,i=ki(l,n,t);o({id:void 0,url:void 0,useFeaturedImage:e,dimRatio:l,backgroundType:d?Lr:void 0,isDark:i})},se=(0,Ke.createElement)(vl,{attributes:e,setAttributes:o,onSelectMedia:A,currentSettings:le,toggleUseFeaturedImage:ie}),ce=(0,Ke.createElement)(_l,{attributes:e,setAttributes:o,clientId:t,setOverlayColor:H,coverRef:ee,currentSettings:le,toggleUseFeaturedImage:ie,updateDimRatio:async e=>{const t=await fi(I),n=ki(e,a.color,t);o({dimRatio:e,isDark:n})},onClearMedia:()=>{let e=a.color;C||(e="#000",r(void 0),B());const t=ki(g,e,yi);o({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0,isDark:t})}}),me={className:"block-library-cover__resize-container",clientId:t,height:O,minHeight:q,onResizeStart:()=>{o({minHeightUnit:"px"}),l(!1)},onResize:e=>{o({minHeight:e})},onResizeStop:e=>{l(!0),o({minHeight:e})},showHandle:!e.style?.dimensions?.aspectRatio,size:U,width:G};if(!d&&!X&&!J)return(0,Ke.createElement)(Ke.Fragment,null,se,ce,n&&(0,Ke.createElement)(wl,{...me}),(0,Ke.createElement)(E,{...te,className:ut()("is-placeholder",te.className),style:{...te.style,minHeight:q||void 0}},$,(0,Ke.createElement)(fl,{onSelectMedia:A,onError:L,toggleUseFeaturedImage:ie},(0,Ke.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},(0,Ke.createElement)(nt.ColorPalette,{disableCustomColors:!0,value:a.color,onChange:H,clearable:!1})))));const ue=ut()({"is-dark-theme":_,"is-light":!_,"is-transient":D,"has-parallax":b,"is-repeated":y,"has-custom-content-position":!Ur(c)},qr(c));return(0,Ke.createElement)(Ke.Fragment,null,se,ce,(0,Ke.createElement)(E,{...te,className:ut()(ue,te.className),style:{...W,...te.style},"data-url":I},$,(!d||I)&&(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut()("wp-block-cover__background",Gr(g),{[a.class]:a.class,"has-background-dim":void 0!==g,"wp-block-cover__gradient-background":I&&R&&0!==g,"has-background-gradient":R,[z]:z}),style:{backgroundImage:R,...K}}),!I&&d&&(0,Ke.createElement)(et.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),I&&F&&(j?(0,Ke.createElement)("img",{ref:re,className:"wp-block-cover__image-background",alt:k,src:I,style:Y}):(0,Ke.createElement)("div",{ref:re,role:k?"img":void 0,"aria-label":k||void 0,className:ut()(ue,"wp-block-cover__image-background"),style:{backgroundImage:Z,backgroundPosition:Q}})),I&&V&&(0,Ke.createElement)("video",{ref:re,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:I,style:Y}),D&&(0,Ke.createElement)(et.Spinner,null),(0,Ke.createElement)(fl,{disableMediaButtons:!0,onSelectMedia:A,onError:L,toggleUseFeaturedImage:ie}),(0,Ke.createElement)("div",{...oe})),n&&(0,Ke.createElement)(wl,{...me}))}));const{cleanEmptyObject:wi}=Ft(nt.privateApis),Ei={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:n,align:a,id:o,anchor:r,style:l})=>(0,Qe.createBlock)("core/cover",{dimRatio:50,url:t,alt:n,align:a,id:o,anchor:r,style:{color:{duotone:l?.color?.duotone}}},[(0,Qe.createBlock)("core/paragraph",{content:e,fontSize:"large",align:"center"})])},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:n,id:a,anchor:o})=>(0,Qe.createBlock)("core/cover",{dimRatio:50,url:t,align:n,id:a,backgroundType:Dr,anchor:o},[(0,Qe.createBlock)("core/paragraph",{content:e,fontSize:"large",align:"center"})])},{type:"block",blocks:["core/group"],transform:(e,t)=>{const{align:n,anchor:a,backgroundColor:o,gradient:r,style:l}=e;if(1===t?.length&&"core/cover"===t[0]?.name)return(0,Qe.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);const i={align:n,anchor:a,dimRatio:o||r||l?.color?.background||l?.color?.gradient?void 0:50,overlayColor:o,customOverlayColor:l?.color?.background,gradient:r,customGradient:l?.color?.gradient},s={...e,backgroundColor:void 0,gradient:void 0,style:wi({...e?.style,color:l?.color?{...l?.color,background:void 0,gradient:void 0}:void 0})};return(0,Qe.createBlock)("core/cover",i,[(0,Qe.createBlock)("core/group",s,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:n,customOverlayColor:a,gradient:o,customGradient:r})=>t?e===Lr:!(n||a||o||r),transform:({title:e,url:t,alt:n,align:a,id:o,anchor:r,style:l})=>(0,Qe.createBlock)("core/image",{caption:e,url:t,alt:n,align:a,id:o,anchor:r,style:{color:{duotone:l?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:n,customOverlayColor:a,gradient:o,customGradient:r})=>t?e===Dr:!(n||a||o||r),transform:({title:e,url:t,align:n,id:a,anchor:o})=>(0,Qe.createBlock)("core/video",{caption:e,src:t,id:a,align:n,anchor:o})},{type:"block",blocks:["core/group"],isMatch:({url:e,useFeaturedImage:t})=>!e&&!t,transform:(e,t)=>{const n={backgroundColor:e?.overlayColor,gradient:e?.gradient,style:wi({...e?.style,color:e?.customOverlayColor||e?.customGradient||e?.style?.color?{background:e?.customOverlayColor,gradient:e?.customGradient,...e?.style?.color}:void 0})};if(1===t?.length&&"core/group"===t[0]?.name){const e=wi(t[0].attributes||{});return e?.backgroundColor||e?.gradient||e?.style?.color?.background||e?.style?.color?.gradient?(0,Qe.createBlock)("core/group",e,t[0]?.innerBlocks):(0,Qe.createBlock)("core/group",{...n,...e,style:wi({...e?.style,color:n?.style?.color||e?.style?.color?{...n?.style?.color,...e?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,Qe.createBlock)("core/group",{...e,...n},t)}}]},Ci=Ei,Si=[{name:"cover",title:(0,tt.__)("Cover"),description:(0,tt.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:Ar}],Bi={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay.",textdomain:"default",attributes:{url:{type:"string"},useFeaturedImage:{type:"boolean",default:!1},id:{type:"number"},alt:{type:"string",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},isUserOverlayColor:{type:"boolean"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},tagName:{type:"string",default:"div"}},usesContext:["postId","postType"],supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},dimensions:{aspectRatio:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"},{name:Ni}=Bi,Ti={icon:Ar,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("<strong>Snow Patrol</strong>"),align:"center",style:{typography:{fontSize:48},color:{text:"white"}}}}]},transforms:Ci,save:function({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:a,customGradient:o,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:m,isRepeated:u,overlayColor:p,url:d,alt:g,id:h,minHeight:b,minHeightUnit:_,tagName:y}=e,v=(0,nt.getColorClassName)("background-color",p),f=(0,nt.__experimentalGetGradientClass)(n),k=Lr===t,x=Dr===t,w=!(c||u),E={minHeight:(b&&_?`${b}${_}`:b)||void 0},C={backgroundColor:v?void 0:r,background:o||void 0},S=i&&w?Or(i):void 0,B=d?`url(${d})`:void 0,N=Or(i),T=ut()({"is-light":!m,"has-parallax":c,"is-repeated":u,"has-custom-content-position":!Ur(a)},qr(a)),I=ut()("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":u}),P=n||o;return(0,Ke.createElement)(y,{...nt.useBlockProps.save({className:T,style:E})},(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut()("wp-block-cover__background",v,Gr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&P&&0!==l,"has-background-gradient":P,[f]:f}),style:C}),!s&&k&&d&&(w?(0,Ke.createElement)("img",{className:I,alt:g,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}):(0,Ke.createElement)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:I,style:{backgroundPosition:N,backgroundImage:B}})),x&&d&&(0,Ke.createElement)("video",{className:ut()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},edit:xi,deprecated:gl,variations:Si},Ii=()=>Xe({name:Ni,metadata:Bi,settings:Ti}),Pi=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,Ke.createElement)(Ye.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})),Mi=[["core/paragraph",{placeholder:(0,tt.__)("Type / to add a hidden block")}]];const zi=function({attributes:e,setAttributes:t,clientId:n}){const{showContent:a,summary:o}=e,r=(0,nt.useBlockProps)(),l=(0,nt.useInnerBlocksProps)(r,{template:Mi,__experimentalCaptureToolbars:!0}),i=(0,gt.useSelect)((e=>{const{isBlockSelected:t,hasSelectedInnerBlock:a}=e(nt.store);return a(n,!0)||t(n)}),[n]);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{label:(0,tt.__)("Open by default"),checked:a,onChange:()=>t({showContent:!a})}))),(0,Ke.createElement)("details",{...l,open:i||a},(0,Ke.createElement)("summary",{onClick:e=>e.preventDefault()},(0,Ke.createElement)(nt.RichText,{"aria-label":(0,tt.__)("Write summary"),placeholder:(0,tt.__)("Write summary…"),allowedFormats:[],withoutInteractiveFormatting:!0,value:o,onChange:e=>t({summary:e})})),l.children))};const Ri={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/details",title:"Details",category:"text",description:"Hide and show additional content.",keywords:["accordion","summary","toggle","disclosure"],textdomain:"default",attributes:{showContent:{type:"boolean",default:!1},summary:{type:"rich-text",source:"rich-text",selector:"summary"}},supports:{align:["wide","full"],color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,width:!0,style:!0},html:!1,spacing:{margin:!0,padding:!0,blockGap:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowEditing:!1},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-details-editor",style:"wp-block-details"},{name:Ai}=Ri,Hi={icon:Pi,example:{attributes:{summary:"La Mancha",showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("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.")}}]},save:function({attributes:e}){const{showContent:t}=e,n=e.summary?e.summary:"Details",a=nt.useBlockProps.save();return(0,Ke.createElement)("details",{...a,open:t},(0,Ke.createElement)("summary",null,(0,Ke.createElement)(nt.RichText.Content,{value:n})),(0,Ke.createElement)(nt.InnerBlocks.Content,null))},edit:zi},Li=()=>Xe({name:Ai,metadata:Ri,settings:Hi}),Di=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"}));function Fi(e){return e?(0,tt.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,tt.__)("This embed may not preserve its aspect ratio when the browser is resized.")}const Vi=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:n,allowResponsive:a,toggleResponsive:o,switchBackToURLInput:r})=>(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,t&&(0,Ke.createElement)(et.ToolbarButton,{className:"components-toolbar__control",label:(0,tt.__)("Edit URL"),icon:Di,onClick:r}))),n&&e&&(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Media settings"),className:"blocks-responsive"},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Resize for smaller devices"),checked:a,help:Fi,onChange:o})))),$i=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.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"})),Oi=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.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"})),Gi=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.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"})),Ui=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.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"})),qi={foreground:"#1da1f2",src:(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(et.G,null,(0,Ke.createElement)(et.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"})))},ji={foreground:"#ff0000",src:(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.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"}))},Wi={foreground:"#3b5998",src:(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.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"}))},Zi=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.G,null,(0,Ke.createElement)(et.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"}))),Qi={foreground:"#0073AA",src:(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.G,null,(0,Ke.createElement)(et.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"})))},Ki={foreground:"#1db954",src:(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.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"}))},Yi=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.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"})),Ji={foreground:"#1ab7ea",src:(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(et.G,null,(0,Ke.createElement)(et.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"})))},Xi=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Path,{d:"M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"})),es={foreground:"#35465c",src:(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.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"}))},ts=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.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"}),(0,Ke.createElement)(et.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"}),(0,Ke.createElement)(et.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"})),ns=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,Ke.createElement)(et.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"}),(0,Ke.createElement)(et.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,Ke.createElement)(et.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"}),(0,Ke.createElement)(et.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,Ke.createElement)(et.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),as=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Path,{d:"M11.903 16.568c-1.82 0-3.124-1.281-3.124-2.967a2.987 2.987 0 0 1 2.989-2.989c1.663 0 2.944 1.304 2.944 3.034 0 1.663-1.281 2.922-2.81 2.922ZM17.997 3l-3.308.73v5.107c-.809-1.034-2.045-1.37-3.505-1.37-1.529 0-2.9.561-4.023 1.662-1.259 1.214-1.933 2.764-1.933 4.495 0 1.888.72 3.506 2.113 4.742 1.056.944 2.314 1.415 3.775 1.415 1.438 0 2.517-.382 3.573-1.415v1.415h3.308V3Z",fill:"#333436"})),os=(0,Ke.createElement)(et.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(et.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"})),rs=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 44 44"},(0,Ke.createElement)(et.Path,{d:"M32.59521,22.001l4.31885-4.84473-6.34131-1.38379.646-6.459-5.94336,2.61035L22,6.31934l-3.27344,5.60351L12.78418,9.3125l.645,6.458L7.08643,17.15234,11.40479,21.999,7.08594,26.84375l6.34131,1.38379-.64551,6.458,5.94287-2.60938L22,37.68066l3.27344-5.60351,5.94287,2.61035-.64551-6.458,6.34277-1.38183Zm.44385,2.75244L30.772,23.97827l-1.59558-2.07391,1.97888.735Zm-8.82147,6.1579L22.75,33.424V30.88977l1.52228-2.22168ZM18.56226,13.48816,19.819,15.09534l-2.49219-.88642L15.94037,12.337Zm6.87719.00116,2.62043-1.15027-1.38654,1.86981L24.183,15.0946Zm3.59357,2.6029-1.22546,1.7381.07525-2.73486,1.44507-1.94867ZM22,29.33008l-2.16406-3.15686L22,23.23688l2.16406,2.93634Zm-4.25458-9.582-.10528-3.836,3.60986,1.284v3.73242Zm5.00458-2.552,3.60986-1.284-.10528,3.836L22.75,20.92853Zm-7.78174-1.10559-.29352-2.94263,1.44245,1.94739.07519,2.73321Zm2.30982,5.08319,3.50817,1.18164-2.16247,2.9342-3.678-1.08447Zm2.4486,7.49285L21.25,30.88977v2.53485L19.78052,30.91Zm3.48707-6.31121,3.50817-1.18164,2.33228,3.03137-3.678,1.08447Zm10.87219-4.28113-2.714,3.04529L28.16418,19.928l1.92176-2.72565ZM24.06036,12.81769l-2.06012,2.6322-2.059-2.63318L22,9.292ZM9.91455,18.07227l4.00079-.87195,1.921,2.72735-3.20794,1.19019Zm2.93024,4.565,1.9801-.73462L13.228,23.97827l-2.26838.77429Zm-1.55591,3.58819L13.701,25.4021l2.64935.78058-2.14447.67853Zm3.64868,1.977L18.19,27.17334l.08313,3.46332L14.52979,32.2793Zm10.7876,2.43549.08447-3.464,3.25165,1.03052.407,4.07684Zm4.06824-3.77478-2.14545-.68,2.65063-.781,2.41266.825Z"})),ls={foreground:"#f43e37",src:(0,Ke.createElement)(et.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,Ke.createElement)(et.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2.67,12a9.33,9.33,0,0,1,18.66,0H19a7,7,0,1,0-7,7v2.33A9.33,9.33,0,0,1,2.67,12ZM12,17.6A5.6,5.6,0,1,1,17.6,12h-2A3.56,3.56,0,1,0,12,15.56Z",fill:"#fff"}))},is=()=>(0,Ke.createElement)("div",{className:"wp-block-embed is-loading"},(0,Ke.createElement)(et.Spinner,null)),ss=({icon:e,label:t,value:n,onSubmit:a,onChange:o,cannotEmbed:r,fallback:l,tryAgain:i})=>(0,Ke.createElement)(et.Placeholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,tt.__)("Paste a link to the content you want to display on your site.")},(0,Ke.createElement)("form",{onSubmit:a},(0,Ke.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":t,placeholder:(0,tt.__)("Enter URL to embed here…"),onChange:o}),(0,Ke.createElement)(et.Button,{variant:"primary",type:"submit"},(0,tt._x)("Embed","button label"))),(0,Ke.createElement)("div",{className:"wp-block-embed__learn-more"},(0,Ke.createElement)(et.ExternalLink,{href:(0,tt.__)("https://wordpress.org/documentation/article/embeds/")},(0,tt.__)("Learn more about embeds"))),r&&(0,Ke.createElement)("div",{className:"components-placeholder__error"},(0,Ke.createElement)("div",{className:"components-placeholder__instructions"},(0,tt.__)("Sorry, this content could not be embedded.")),(0,Ke.createElement)(et.Button,{variant:"secondary",onClick:i},(0,tt._x)("Try again","button label"))," ",(0,Ke.createElement)(et.Button,{variant:"secondary",onClick:l},(0,tt._x)("Convert to link","button label")))),cs={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function ms({html:e}){const t=(0,_t.useRef)(),n=(0,_t.useMemo)((()=>{const t=(new window.DOMParser).parseFromString(e,"text/html").querySelector("iframe"),n={};return t?(Array.from(t.attributes).forEach((({name:e,value:t})=>{"style"!==e&&(n[cs[e]||e]=t)})),n):n}),[e]);return(0,_t.useEffect)((()=>{const{ownerDocument:e}=t.current,{defaultView:a}=e;function o({data:{secret:e,message:a,value:o}={}}){"height"===a&&e===n["data-secret"]&&(t.current.height=o)}return a.addEventListener("message",o),()=>{a.removeEventListener("message",o)}}),[]),(0,Ke.createElement)("div",{className:"wp-block-embed__wrapper"},(0,Ke.createElement)("iframe",{ref:(0,jt.useMergeRefs)([t,(0,jt.useFocusableIframe)()]),title:n.title,...n}))}class us extends _t.Component{constructor(){super(...arguments),this.hideOverlay=this.hideOverlay.bind(this),this.state={interactive:!1}}static getDerivedStateFromProps(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}hideOverlay(){this.setState({interactive:!0})}render(){const{preview:e,previewable:t,url:n,type:a,caption:o,onCaptionChange:r,isSelected:l,className:i,icon:s,label:c,insertBlocksAfter:m}=this.props,{scripts:u}=e,{interactive:p}=this.state,d="photo"===a?(e=>{const t=e.url||e.thumbnail_url,n=(0,Ke.createElement)("p",null,(0,Ke.createElement)("img",{src:t,alt:e.title,width:"100%"}));return(0,_t.renderToString)(n)})(e):e.html,g=new URL(n).host.split("."),h=g.splice(g.length-2,g.length-1).join("."),b=(0,tt.sprintf)((0,tt.__)("Embedded content from %s"),h),_=zt()(a,i,"wp-block-embed__wrapper"),y="wp-embed"===a?(0,Ke.createElement)(ms,{html:d}):(0,Ke.createElement)("div",{className:"wp-block-embed__wrapper"},(0,Ke.createElement)(et.SandBox,{html:d,scripts:u,title:b,type:_,onFocus:this.hideOverlay}),!p&&(0,Ke.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return(0,Ke.createElement)("figure",{className:zt()(i,"wp-block-embed",{"is-type-video":"video"===a})},t?y:(0,Ke.createElement)(et.Placeholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:s,showColors:!0}),label:c},(0,Ke.createElement)("p",{className:"components-placeholder__error"},(0,Ke.createElement)("a",{href:n},n)),(0,Ke.createElement)("p",{className:"components-placeholder__error"},(0,tt.sprintf)((0,tt.__)("Embedded content from %s can't be previewed in the editor."),h))),(!nt.RichText.isEmpty(o)||l)&&(0,Ke.createElement)(nt.RichText,{identifier:"caption",tagName:"figcaption",className:(0,nt.__experimentalGetElementClassName)("caption"),placeholder:(0,tt.__)("Add caption"),value:o,onChange:r,inlineToolbar:!0,__unstableOnSplitAtEnd:()=>m((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))}))}}const ps=us,ds=e=>{const{attributes:{providerNameSlug:t,previewable:n,responsive:a,url:o},attributes:r,isSelected:l,onReplace:i,setAttributes:s,insertBlocksAfter:c,onFocus:m}=e,u={title:(0,tt._x)("Embed","block title"),icon:$i},{icon:p,title:d}=(g=t,(0,Qe.getBlockVariations)(Vt)?.find((({name:e})=>e===g))||u);var g;const[h,b]=(0,_t.useState)(o),[_,y]=(0,_t.useState)(!1),{invalidateResolution:v}=(0,gt.useDispatch)(dt.store),{preview:f,fetching:k,themeSupportsResponsive:x,cannotEmbed:w}=(0,gt.useSelect)((e=>{const{getEmbedPreview:t,isPreviewEmbedFallback:n,isRequestingEmbedPreview:a,getThemeSupports:r}=e(dt.store);if(!o)return{fetching:!1,cannotEmbed:!1};const l=t(o),i=n(o),s=!!l&&!(!1===l?.html&&void 0===l?.type)&&!(404===l?.data?.status);return{preview:s?l:void 0,fetching:a(o),themeSupportsResponsive:r()["responsive-embeds"],cannotEmbed:!s||i}}),[o]),E=()=>((e,t,n,a)=>{const{allowResponsive:o,className:r}=e;return{...e,...qt(t,n,r,a,o)}})(r,f,d,a);(0,_t.useEffect)((()=>{if(f?.html||!w||k)return;const e=o.replace(/\/$/,"");b(e),y(!1),s({url:e})}),[f?.html,o,w,k,s]),(0,_t.useEffect)((()=>{if(w&&!k&&h&&"x.com"===(0,pt.getAuthority)(h)){const e=new URL(h);e.host="twitter.com",s({url:e.toString()})}}),[h,w,k,s]),(0,_t.useEffect)((()=>{if(f&&!_){const t=E();if(s(t),i){const n=Ot(e,t);n&&i(n)}}}),[f,_]);const C=(0,nt.useBlockProps)();if(k)return(0,Ke.createElement)(Ye.View,{...C},(0,Ke.createElement)(is,null));const S=(0,tt.sprintf)((0,tt.__)("%s URL"),d);if(!f||w||_)return(0,Ke.createElement)(Ye.View,{...C},(0,Ke.createElement)(ss,{icon:p,label:S,onFocus:m,onSubmit:e=>{e&&e.preventDefault();const t=Gt(r.className);y(!1),s({url:h,className:t})},value:h,cannotEmbed:w,onChange:e=>b(e.target.value),fallback:()=>function(e,t){const n=(0,Ke.createElement)("a",{href:e},e);t((0,Qe.createBlock)("core/paragraph",{content:(0,_t.renderToString)(n)}))}(h,i),tryAgain:()=>{v("getEmbedPreview",[h])}}));const{caption:B,type:N,allowResponsive:T,className:I}=E(),P=ut()(I,e.className);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(Vi,{showEditButton:f&&!w,themeSupportsResponsive:x,blockSupportsResponsive:a,allowResponsive:T,toggleResponsive:()=>{const{allowResponsive:e,className:t}=r,{html:n}=f,o=!e;s({allowResponsive:o,className:Ut(n,t,a&&o)})},switchBackToURLInput:()=>y(!0)}),(0,Ke.createElement)(Ye.View,{...C},(0,Ke.createElement)(ps,{preview:f,previewable:n,className:P,url:h,type:N,caption:B,onCaptionChange:e=>s({caption:e}),isSelected:l,icon:p,label:S,insertBlocksAfter:c})))};const{name:gs}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},hs={from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&1===e.textContent?.match(/https/gi)?.length,transform:e=>(0,Qe.createBlock)(gs,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],isMatch:({url:e})=>!!e,transform:({url:e,caption:t})=>{let n=`<a href="${e}">${e}</a>`;return t?.trim()&&(n+=`<br />${t}`),(0,Qe.createBlock)("core/paragraph",{content:n})}}]},bs=hs,_s=[{name:"twitter",title:"Twitter",icon:qi,keywords:["tweet",(0,tt.__)("social")],description:(0,tt.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:"YouTube",icon:ji,keywords:[(0,tt.__)("music"),(0,tt.__)("video")],description:(0,tt.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:"Facebook",icon:Wi,keywords:[(0,tt.__)("social")],description:(0,tt.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:"Instagram",icon:Zi,keywords:[(0,tt.__)("image"),(0,tt.__)("social")],description:(0,tt.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:"WordPress",icon:Qi,keywords:[(0,tt.__)("post"),(0,tt.__)("blog")],description:(0,tt.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:"SoundCloud",icon:Oi,keywords:[(0,tt.__)("music"),(0,tt.__)("audio")],description:(0,tt.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:"Spotify",icon:Ki,keywords:[(0,tt.__)("music"),(0,tt.__)("audio")],description:(0,tt.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:"Flickr",icon:Yi,keywords:[(0,tt.__)("image")],description:(0,tt.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:"Vimeo",icon:Ji,keywords:[(0,tt.__)("video")],description:(0,tt.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:"Animoto",icon:ns,description:(0,tt.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:"Cloudup",icon:$i,description:(0,tt.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:"CollegeHumor",icon:Ui,description:(0,tt.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:"Crowdsignal",icon:$i,keywords:["polldaddy",(0,tt.__)("survey")],description:(0,tt.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:"Dailymotion",icon:as,keywords:[(0,tt.__)("video")],description:(0,tt.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:"Imgur",icon:Gi,description:(0,tt.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:"Issuu",icon:$i,description:(0,tt.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:"Kickstarter",icon:$i,description:(0,tt.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:"Mixcloud",icon:Oi,keywords:[(0,tt.__)("music"),(0,tt.__)("audio")],description:(0,tt.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:"Pocket Casts",icon:ls,keywords:[(0,tt.__)("podcast"),(0,tt.__)("audio")],description:(0,tt.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:"Reddit",icon:Xi,description:(0,tt.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:"ReverbNation",icon:Oi,description:(0,tt.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"screencast",title:"Screencast",icon:Ui,description:(0,tt.__)("Embed Screencast content."),patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i],attributes:{providerNameSlug:"screencast",responsive:!0}},{name:"scribd",title:"Scribd",icon:$i,description:(0,tt.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"slideshare",title:"Slideshare",icon:$i,description:(0,tt.__)("Embed Slideshare content."),patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],attributes:{providerNameSlug:"slideshare",responsive:!0}},{name:"smugmug",title:"SmugMug",icon:Gi,description:(0,tt.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:"Speaker Deck",icon:$i,description:(0,tt.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:"TikTok",icon:Ui,keywords:[(0,tt.__)("video")],description:(0,tt.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:"TED",icon:Ui,description:(0,tt.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:"Tumblr",icon:es,keywords:[(0,tt.__)("social")],description:(0,tt.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:"VideoPress",icon:Ui,keywords:[(0,tt.__)("video")],description:(0,tt.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:"WordPress.tv",icon:Ui,description:(0,tt.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:"Amazon Kindle",icon:ts,keywords:[(0,tt.__)("ebook")],description:(0,tt.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}},{name:"pinterest",title:"Pinterest",icon:os,keywords:[(0,tt.__)("social"),(0,tt.__)("bookmark")],description:(0,tt.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:"Wolfram",icon:rs,description:(0,tt.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}}];_s.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.providerNameSlug===t.providerNameSlug)}));const ys=_s,{attributes:vs}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},fs={attributes:vs,save({attributes:e}){const{url:t,caption:n,type:a,providerNameSlug:o}=e;if(!t)return null;const r=ut()("wp-block-embed",{[`is-type-${a}`]:a,[`is-provider-${o}`]:o,[`wp-block-embed-${o}`]:o});return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:r})},(0,Ke.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${t}\n`),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:n}))}},ks={attributes:vs,save({attributes:{url:e,caption:t,type:n,providerNameSlug:a}}){if(!e)return null;const o=ut()("wp-block-embed",{[`is-type-${n}`]:n,[`is-provider-${a}`]:a});return(0,Ke.createElement)("figure",{className:o},`\n${e}\n`,!nt.RichText.isEmpty(t)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:t}))}},xs=[fs,ks],ws={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},{name:Es}=ws,Cs={icon:$i,edit:ds,save:function({attributes:e}){const{url:t,caption:n,type:a,providerNameSlug:o}=e;if(!t)return null;const r=zt()("wp-block-embed",{[`is-type-${a}`]:a,[`is-provider-${o}`]:o,[`wp-block-embed-${o}`]:o});return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:r})},(0,Ke.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${t}\n`),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{className:(0,nt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n}))},transforms:bs,variations:ys,deprecated:xs},Ss=()=>Xe({name:Es,metadata:ws,settings:Cs}),Bs=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})),Ns={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},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]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileId:n,fileName:a,textLinkHref:o,textLinkTarget:r,showDownloadButton:l,downloadButtonText:i,displayPreview:s,previewHeight:c}=e,m=nt.RichText.isEmpty(a)?(0,tt.__)("PDF embed"):(0,tt.sprintf)((0,tt.__)("Embed of %s."),a),u=!nt.RichText.isEmpty(a),p=u?n:void 0;return t&&(0,Ke.createElement)("div",{...nt.useBlockProps.save()},s&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":m})),u&&(0,Ke.createElement)("a",{id:p,href:o,target:r,rel:r?"noreferrer noopener":void 0},(0,Ke.createElement)(nt.RichText.Content,{value:a})),l&&(0,Ke.createElement)("a",{href:t,className:ut()("wp-block-file__button",(0,nt.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":p},(0,Ke.createElement)(nt.RichText.Content,{value:i})))}},Ts={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},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]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileId:n,fileName:a,textLinkHref:o,textLinkTarget:r,showDownloadButton:l,downloadButtonText:i,displayPreview:s,previewHeight:c}=e,m=nt.RichText.isEmpty(a)?(0,tt.__)("PDF embed"):(0,tt.sprintf)((0,tt.__)("Embed of %s."),a),u=!nt.RichText.isEmpty(a),p=u?n:void 0;return t&&(0,Ke.createElement)("div",{...nt.useBlockProps.save()},s&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":m})),u&&(0,Ke.createElement)("a",{id:p,href:o,target:r,rel:r?"noreferrer noopener":void 0},(0,Ke.createElement)(nt.RichText.Content,{value:a})),l&&(0,Ke.createElement)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":p},(0,Ke.createElement)(nt.RichText.Content,{value:i})))}},Is={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]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileName:n,textLinkHref:a,textLinkTarget:o,showDownloadButton:r,downloadButtonText:l,displayPreview:i,previewHeight:s}=e,c=nt.RichText.isEmpty(n)?(0,tt.__)("PDF embed"):(0,tt.sprintf)((0,tt.__)("Embed of %s."),n);return t&&(0,Ke.createElement)("div",{...nt.useBlockProps.save()},i&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${s}px`},"aria-label":c})),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)("a",{href:a,target:o,rel:o?"noreferrer noopener":void 0},(0,Ke.createElement)(nt.RichText.Content,{value:n})),r&&(0,Ke.createElement)("a",{href:t,className:"wp-block-file__button",download:!0},(0,Ke.createElement)(nt.RichText.Content,{value:l})))}},Ps=[Ns,Ts,Is];function Ms({hrefs:e,openInNewWindow:t,showDownloadButton:n,changeLinkDestinationOption:a,changeOpenInNewWindow:o,changeShowDownloadButton:r,displayPreview:l,changeDisplayPreview:i,previewHeight:s,changePreviewHeight:c}){const{href:m,textLinkHref:u,attachmentPage:p}=e;let d=[{value:m,label:(0,tt.__)("URL")}];return p&&(d=[{value:m,label:(0,tt.__)("Media file")},{value:p,label:(0,tt.__)("Attachment page")}]),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,m.endsWith(".pdf")&&(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("PDF settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show inline embed"),help:l?(0,tt.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!l,onChange:i}),l&&(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Height in pixels"),min:Rs,max:Math.max(As,s),value:s,onChange:c})),(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to"),value:u,options:d,onChange:a}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),checked:t,onChange:o}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show download button"),checked:n,onChange:r}))))}const zs=e=>{let t;try{t=new window.ActiveXObject(e)}catch(e){t=void 0}return t},Rs=200,As=2e3;function Hs({text:e,disabled:t}){const{createNotice:n}=(0,gt.useDispatch)(Pt.store),a=(0,jt.useCopyToClipboard)(e,(()=>{n("info",(0,tt.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})}));return(0,Ke.createElement)(et.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:a,disabled:t},(0,tt.__)("Copy URL"))}const Ls=function({attributes:e,isSelected:t,setAttributes:n,clientId:a}){const{id:o,fileName:r,href:l,textLinkHref:i,textLinkTarget:s,showDownloadButton:c,downloadButtonText:m,displayPreview:u,previewHeight:p}=e,{getSettings:d}=(0,gt.useSelect)(nt.store),{media:g}=(0,gt.useSelect)((e=>({media:void 0===o?void 0:e(dt.store).getMedia(o)})),[o]),{createErrorNotice:h}=(0,gt.useDispatch)(Pt.store),{toggleSelection:b}=(0,gt.useDispatch)(nt.store);function _(e){if(!e||!e.url)return;const t=e.url.endsWith(".pdf");n({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id,displayPreview:!!t||void 0,previewHeight:t?600:void 0,fileId:`wp-block-file--media-${a}`})}function y(e){n({href:void 0}),h(e,{type:"snackbar"})}(0,_t.useEffect)((()=>{if((0,It.isBlobURL)(l)){const e=(0,It.getBlobByURL)(l);d().mediaUpload({filesList:[e],onFileChange:([e])=>_(e),onError:y}),(0,It.revokeBlobURL)(l)}nt.RichText.isEmpty(m)&&n({downloadButtonText:(0,tt._x)("Download","button label")})}),[]);const v=g&&g.link,f=(0,nt.useBlockProps)({className:ut()((0,It.isBlobURL)(l)&&(0,et.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":(0,It.isBlobURL)(l)})}),k=!(window.navigator.userAgent.indexOf("Mobi")>-1||window.navigator.userAgent.indexOf("Android")>-1||window.navigator.userAgent.indexOf("Macintosh")>-1&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2||(window.ActiveXObject||"ActiveXObject"in window)&&!zs("AcroPDF.PDF")&&!zs("PDF.PdfCtrl"))&&u;return l?(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(Ms,{hrefs:{href:l,textLinkHref:i,attachmentPage:v},openInNewWindow:!!s,showDownloadButton:c,changeLinkDestinationOption:function(e){n({textLinkHref:e})},changeOpenInNewWindow:function(e){n({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){n({showDownloadButton:e})},displayPreview:u,changeDisplayPreview:function(e){n({displayPreview:e})},previewHeight:p,changePreviewHeight:function(e){const t=Math.max(parseInt(e,10),Rs);n({previewHeight:t})}}),(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(nt.MediaReplaceFlow,{mediaId:o,mediaURL:l,accept:"*",onSelect:_,onError:y}),(0,Ke.createElement)(Hs,{text:l,disabled:(0,It.isBlobURL)(l)})),(0,Ke.createElement)("div",{...f},k&&(0,Ke.createElement)(et.ResizableBox,{size:{height:p},minHeight:Rs,maxHeight:As,minWidth:"100%",grid:[10,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>b(!1),onResizeStop:function(e,t,a,o){b(!0);const r=parseInt(p+o.height,10);n({previewHeight:r})},showHandle:t},(0,Ke.createElement)("object",{className:"wp-block-file__preview",data:l,type:"application/pdf","aria-label":(0,tt.__)("Embed of the selected PDF file.")}),!t&&(0,Ke.createElement)("div",{className:"wp-block-file__preview-overlay"})),(0,Ke.createElement)("div",{className:"wp-block-file__content-wrapper"},(0,Ke.createElement)(nt.RichText,{tagName:"a",value:r,placeholder:(0,tt.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:e=>n({fileName:vn(e)}),href:i}),c&&(0,Ke.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},(0,Ke.createElement)(nt.RichText,{tagName:"div","aria-label":(0,tt.__)("Download button text"),className:ut()("wp-block-file__button",(0,nt.__experimentalGetElementClassName)("button")),value:m,withoutInteractiveFormatting:!0,placeholder:(0,tt.__)("Add text…"),onChange:e=>n({downloadButtonText:vn(e)})}))))):(0,Ke.createElement)("div",{...f},(0,Ke.createElement)(nt.MediaPlaceholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:Bs}),labels:{title:(0,tt.__)("File"),instructions:(0,tt.__)("Upload a file or pick one from your media library.")},onSelect:_,onError:y,accept:"*"}))};const Ds={from:[{type:"files",isMatch:e=>e.length>0,priority:15,transform:e=>{const t=[];return e.forEach((e=>{const n=(0,It.createBlobURL)(e);t.push((0,Qe.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))})),t}},{type:"block",blocks:["core/audio"],transform:e=>(0,Qe.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],transform:e=>(0,Qe.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],transform:e=>(0,Qe.createBlock)("core/file",{href:e.url,fileName:e.caption||(0,pt.getFilename)(e.url),textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=(0,gt.select)(dt.store),n=t(e);return!!n&&n.mime_type.includes("audio")},transform:e=>(0,Qe.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=(0,gt.select)(dt.store),n=t(e);return!!n&&n.mime_type.includes("video")},transform:e=>(0,Qe.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=(0,gt.select)(dt.store),n=t(e);return!!n&&n.mime_type.includes("image")},transform:e=>(0,Qe.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]},Fs=Ds,Vs={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/file",title:"File",category:"media",description:"Add a link to a downloadable file.",keywords:["document","pdf","download"],textdomain:"default",attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"rich-text",source:"rich-text",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:"rich-text",source:"rich-text",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},interactivity:!0},editorStyle:"wp-block-file-editor",style:"wp-block-file"},{name:$s}=Vs,Os={icon:Bs,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,tt._x)("Armstrong_Small_Step","Name of the file")}},transforms:Fs,deprecated:Ps,edit:Ls,save:function({attributes:e}){const{href:t,fileId:n,fileName:a,textLinkHref:o,textLinkTarget:r,showDownloadButton:l,downloadButtonText:i,displayPreview:s,previewHeight:c}=e,m=nt.RichText.isEmpty(a)?"PDF embed":a.toString(),u=!nt.RichText.isEmpty(a),p=u?n:void 0;return t&&(0,Ke.createElement)("div",{...nt.useBlockProps.save()},s&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":m})),u&&(0,Ke.createElement)("a",{id:p,href:o,target:r,rel:r?"noreferrer noopener":void 0},(0,Ke.createElement)(nt.RichText.Content,{value:a})),l&&(0,Ke.createElement)("a",{href:t,className:ut()("wp-block-file__button",(0,nt.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":p},(0,Ke.createElement)(nt.RichText.Content,{value:i})))}},Gs=()=>Xe({name:$s,metadata:Vs,settings:Os}),Us=["core/form-submission-notification",{type:"success"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#345C00" class="has-inline-color">'+(0,tt.__)("Your form has been submitted successfully")+"</mark>"}]]],qs=["core/form-submission-notification",{type:"error"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#CF2E2E" class="has-inline-color">'+(0,tt.__)("There was an error submitting your form.")+"</mark>"}]]],js=[Us,qs,["core/form-input",{type:"text",label:(0,tt.__)("Name"),required:!0}],["core/form-input",{type:"email",label:(0,tt.__)("Email"),required:!0}],["core/form-input",{type:"textarea",label:(0,tt.__)("Comment"),required:!0}],["core/form-submit-button",{}]],Ws=({attributes:e,setAttributes:t,clientId:n})=>{const{action:a,method:o,email:r,submissionMethod:l}=e,i=(0,nt.useBlockProps)(),{hasInnerBlocks:s}=(0,gt.useSelect)((e=>{const{getBlock:t}=e(nt.store),a=t(n);return{hasInnerBlocks:!(!a||!a.innerBlocks.length)}}),[n]),c=(0,nt.useInnerBlocksProps)(i,{template:js,renderAppender:s?void 0:nt.InnerBlocks.ButtonBlockAppender});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.SelectControl,{label:(0,tt.__)("Submissions method"),options:[{label:(0,tt.__)("Send email"),value:"email"},{label:(0,tt.__)("- Custom -"),value:"custom"}],value:l,onChange:e=>t({submissionMethod:e}),help:"custom"===l?(0,tt.__)('Select the method to use for form submissions. Additional options for the "custom" mode can be found in the "Advanced" section.'):(0,tt.__)("Select the method to use for form submissions.")}),"email"===l&&(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,tt.__)("Email for form submissions"),value:r,required:!0,onChange:e=>{t({email:e}),t({action:`mailto:${e}`}),t({method:"post"})},help:(0,tt.__)("The email address where form submissions will be sent. Separate multiple email addresses with a comma.")}))),"email"!==l&&(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Method"),options:[{label:"Get",value:"get"},{label:"Post",value:"post"}],value:o,onChange:e=>t({method:e}),help:(0,tt.__)("Select the method to use for form submissions.")}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,tt.__)("Form action"),value:a,onChange:e=>{t({action:e})},help:(0,tt.__)("The URL where the form should be submitted.")})),(0,Ke.createElement)("form",{...c,className:"wp-block-form",encType:"email"===l?"text/plain":null}))},Zs=({attributes:e})=>{const t=nt.useBlockProps.save(),{submissionMethod:n}=e;return(0,Ke.createElement)("form",{...t,className:"wp-block-form",encType:"email"===n?"text/plain":null},(0,Ke.createElement)(nt.InnerBlocks.Content,null))},Qs=[{name:"comment-form",title:(0,tt.__)("Experimental Comment form"),description:(0,tt.__)("A comment form for posts and pages."),attributes:{submissionMethod:"custom",action:"{SITE_URL}/wp-comments-post.php",method:"post",anchor:"comment-form"},isDefault:!1,innerBlocks:[["core/form-input",{type:"text",name:"author",label:(0,tt.__)("Name"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"email",name:"email",label:(0,tt.__)("Email"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"textarea",name:"comment",label:(0,tt.__)("Comment"),required:!0,visibilityPermissions:"all"}],["core/form-submit-button",{}]],scope:["inserter","transform"],isActive:e=>!e?.type||"text"===e?.type},{name:"wp-privacy-form",title:(0,tt.__)("Experimental privacy request form"),keywords:["GDPR"],description:(0,tt.__)("A form to request data exports and/or deletion."),attributes:{submissionMethod:"custom",action:"",method:"post",anchor:"gdpr-form"},isDefault:!1,innerBlocks:[Us,qs,["core/paragraph",{content:(0,tt.__)("To request an export or deletion of your personal data on this site, please fill-in the form below. You can define the type of request you wish to perform, and your email address. Once the form is submitted, you will receive a confirmation email with instructions on the next steps.")}],["core/form-input",{type:"email",name:"email",label:(0,tt.__)("Enter your email address."),required:!0,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"export_personal_data",label:(0,tt.__)("Request data export"),required:!1,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"remove_personal_data",label:(0,tt.__)("Request data deletion"),required:!1,visibilityPermissions:"all"}],["core/form-submit-button",{}],["core/form-input",{type:"hidden",name:"wp-action",value:"wp_privacy_send_request"}],["core/form-input",{type:"hidden",name:"wp-privacy-request",value:"1"}]],scope:["inserter","transform"],isActive:e=>!e?.type||"text"===e?.type}],Ks=Qs,Ys={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form",title:"Form",category:"common",allowedBlocks:["core/paragraph","core/heading","core/form-input","core/form-submit-button","core/form-submission-notification","core/group","core/columns"],description:"A form.",keywords:["container","wrapper","row","section"],textdomain:"default",icon:"feedback",attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"}},supports:{anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"form"},viewScript:"file:./view.min.js"},{name:Js}=Ys,Xs={edit:Ws,save:Zs,variations:Ks},ec=()=>{const e=["core/form"];return(0,_i.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/preventInsertingFormIntoAnotherForm",((t,n,a,{getBlock:o,getBlockParentsByBlockName:r})=>{if("core/form"!==n.name)return t;for(const t of e){if(o(a)?.name===t||r(a,t).length)return!1}return!0})),Xe({name:Js,metadata:Ys,settings:Xs})};var tc=n(9681),nc=n.n(tc);const ac=window.wp.dom,oc={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",__experimentalRole:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",__experimentalRole:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{className:!1,anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){const{type:t,name:n,label:a,inlineLabel:o,required:r,placeholder:l,value:i}=e,s=(0,nt.__experimentalGetBorderClassesAndStyles)(e),c=(0,nt.__experimentalGetColorClassesAndStyles)(e),m={...s.style,...c.style},u=ut()("wp-block-form-input__input",c.className,s.className),p="textarea"===t?"textarea":"input";return"hidden"===t?(0,Ke.createElement)("input",{type:t,name:n,value:i}):(0,Ke.createElement)("label",{className:ut()("wp-block-form-input__label",{"is-label-inline":o})},(0,Ke.createElement)("span",{className:"wp-block-form-input__label-content"},(0,Ke.createElement)(nt.RichText.Content,{value:a})),(0,Ke.createElement)(p,{className:u,type:"textarea"===t?void 0:t,name:n||(d=a,nc()((0,ac.__unstableStripHTML)(d)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,"")),required:r,"aria-required":r,placeholder:l||void 0,style:m}));var d}},rc=[oc];const lc=function({attributes:e,setAttributes:t,className:n}){const{type:a,name:o,label:r,inlineLabel:l,required:i,placeholder:s,value:c}=e,m=(0,nt.useBlockProps)(),u=(0,_t.useRef)(),p="textarea"===a?"textarea":"input",d=(0,nt.__experimentalUseBorderProps)(e),g=(0,nt.__experimentalUseColorProps)(e);u.current&&u.current.focus();const h=(0,Ke.createElement)(Ke.Fragment,null,"hidden"!==a&&(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Input settings")},"checkbox"!==a&&(0,Ke.createElement)(et.CheckboxControl,{label:(0,tt.__)("Inline label"),checked:l,onChange:e=>{t({inlineLabel:e})}}),(0,Ke.createElement)(et.CheckboxControl,{label:(0,tt.__)("Required"),checked:i,onChange:e=>{t({required:e})}}))),(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.TextControl,{autoComplete:"off",label:(0,tt.__)("Name"),value:o,onChange:e=>{t({name:e})},help:(0,tt.__)('Affects the "name" atribute of the input element, and is used as a name for the form submission results.')})));return"hidden"===a?(0,Ke.createElement)(Ke.Fragment,null,h,(0,Ke.createElement)("input",{type:"hidden",className:ut()(n,"wp-block-form-input__input",g.className,d.className),"aria-label":(0,tt.__)("Value"),value:c,onChange:e=>t({value:e.target.value})})):(0,Ke.createElement)("div",{...m},h,(0,Ke.createElement)("span",{className:ut()("wp-block-form-input__label",{"is-label-inline":l||"checkbox"===a})},(0,Ke.createElement)(nt.RichText,{tagName:"span",className:"wp-block-form-input__label-content",value:r,onChange:e=>t({label:e}),"aria-label":r?(0,tt.__)("Label"):(0,tt.__)("Empty label"),"data-empty":!r,placeholder:(0,tt.__)("Type the label for this input")}),(0,Ke.createElement)(p,{type:"textarea"===a?void 0:a,className:ut()(n,"wp-block-form-input__input",g.className,d.className),"aria-label":(0,tt.__)("Optional placeholder text"),placeholder:s?void 0:(0,tt.__)("Optional placeholder…"),value:s,onChange:e=>t({placeholder:e.target.value}),"aria-required":i,style:{...d.style,...g.style}})))};const ic=[{name:"text",title:(0,tt.__)("Text Input"),icon:"edit-page",description:(0,tt.__)("A generic text input."),attributes:{type:"text"},isDefault:!0,scope:["inserter","transform"],isActive:e=>!e?.type||"text"===e?.type},{name:"textarea",title:(0,tt.__)("Textarea Input"),icon:"testimonial",description:(0,tt.__)("A textarea input to allow entering multiple lines of text."),attributes:{type:"textarea"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"textarea"===e?.type},{name:"checkbox",title:(0,tt.__)("Checkbox Input"),description:(0,tt.__)("A simple checkbox input."),icon:"forms",attributes:{type:"checkbox",inlineLabel:!0},isDefault:!0,scope:["inserter","transform"],isActive:e=>"checkbox"===e?.type},{name:"email",title:(0,tt.__)("Email Input"),icon:"email",description:(0,tt.__)("Used for email addresses."),attributes:{type:"email"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"email"===e?.type},{name:"url",title:(0,tt.__)("URL Input"),icon:"admin-site",description:(0,tt.__)("Used for URLs."),attributes:{type:"url"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"url"===e?.type},{name:"tel",title:(0,tt.__)("Telephone Input"),icon:"phone",description:(0,tt.__)("Used for phone numbers."),attributes:{type:"tel"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"tel"===e?.type},{name:"number",title:(0,tt.__)("Number Input"),icon:"edit-page",description:(0,tt.__)("A numeric input."),attributes:{type:"number"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"number"===e?.type}],sc=ic,cc={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-input",title:"Input Field",category:"common",ancestor:["core/form"],description:"The basic building block for forms.",keywords:["input","form"],textdomain:"default",icon:"forms",attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"rich-text",default:"Label",selector:".wp-block-form-input__label-content",source:"rich-text",__experimentalRole:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",__experimentalRole:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},style:["wp-block-form-input"]},{name:mc}=cc,uc={deprecated:rc,edit:lc,save:function({attributes:e}){const{type:t,name:n,label:a,inlineLabel:o,required:r,placeholder:l,value:i}=e,s=(0,nt.__experimentalGetBorderClassesAndStyles)(e),c=(0,nt.__experimentalGetColorClassesAndStyles)(e),m={...s.style,...c.style},u=ut()("wp-block-form-input__input",c.className,s.className),p="textarea"===t?"textarea":"input",d=nt.useBlockProps.save();return"hidden"===t?(0,Ke.createElement)("input",{type:t,name:n,value:i}):(0,Ke.createElement)("div",{...d},(0,Ke.createElement)("label",{className:ut()("wp-block-form-input__label",{"is-label-inline":o})},(0,Ke.createElement)("span",{className:"wp-block-form-input__label-content"},(0,Ke.createElement)(nt.RichText.Content,{value:a})),(0,Ke.createElement)(p,{className:u,type:"textarea"===t?void 0:t,name:n||(g=a,nc()((0,ac.__unstableStripHTML)(g)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,"")),required:r,"aria-required":r,placeholder:l||void 0,style:m})));var g},variations:sc},pc=()=>Xe({name:mc,metadata:cc,settings:uc}),dc=[["core/buttons",{},[["core/button",{text:(0,tt.__)("Submit"),tagName:"button",type:"submit"}]]]],gc=()=>{const e=(0,nt.useBlockProps)(),t=(0,nt.useInnerBlocksProps)(e,{template:dc,templateLock:"all"});return(0,Ke.createElement)("div",{className:"wp-block-form-submit-wrapper",...t})},hc=()=>{const e=nt.useBlockProps.save();return(0,Ke.createElement)("div",{className:"wp-block-form-submit-wrapper",...e},(0,Ke.createElement)(nt.InnerBlocks.Content,null))},bc={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submit-button",title:"Form Submit Button",category:"common",icon:"button",ancestor:["core/form"],allowedBlocks:["core/buttons","core/button"],description:"A submission button for forms.",keywords:["submit","button","form"],textdomain:"default",style:["wp-block-form-submit-button"]},{name:_c}=bc,yc={edit:gc,save:hc},vc=()=>Xe({name:_c,metadata:bc,settings:yc}),fc=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.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"})),kc=[["core/paragraph",{content:(0,tt.__)("Enter the message you wish displayed for form submission error/success, and select the type of the message (success/error) from the block's options.")}]],xc=({attributes:e,clientId:t})=>{const{type:n}=e,a=(0,nt.useBlockProps)({className:ut()("wp-block-form-submission-notification",{[`form-notification-type-${n}`]:n})}),{hasInnerBlocks:o}=(0,gt.useSelect)((e=>{const{getBlock:n}=e(nt.store),a=n(t);return{hasInnerBlocks:!(!a||!a.innerBlocks.length)}}),[t]),r=(0,nt.useInnerBlocksProps)(a,{template:kc,renderAppender:o?void 0:nt.InnerBlocks.ButtonBlockAppender});return(0,Ke.createElement)("div",{...r,"data-message-success":(0,tt.__)("Submission success notification"),"data-message-error":(0,tt.__)("Submission error notification")})};const wc=[{name:"form-submission-success",title:(0,tt.__)("Form Submission Success"),description:(0,tt.__)("Success message for form submissions."),attributes:{type:"success"},isDefault:!0,innerBlocks:[["core/paragraph",{content:(0,tt.__)("Your form has been submitted successfully."),backgroundColor:"#00D084",textColor:"#000000",style:{elements:{link:{color:{text:"#000000"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||"success"===e?.type},{name:"form-submission-error",title:(0,tt.__)("Form Submission Error"),description:(0,tt.__)("Error/failure message for form submissions."),attributes:{type:"error"},isDefault:!1,innerBlocks:[["core/paragraph",{content:(0,tt.__)("There was an error submitting your form."),backgroundColor:"#CF2E2E",textColor:"#FFFFFF",style:{elements:{link:{color:{text:"#FFFFFF"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||"error"===e?.type}],Ec=wc,Cc={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submission-notification",title:"Form Submission Notification",category:"common",ancestor:["core/form"],description:"Provide a notification message after the form has been submitted.",keywords:["form","feedback","notification","message"],textdomain:"default",icon:"feedback",attributes:{type:{type:"string",default:"success"}}},{name:Sc}=Cc,Bc={icon:fc,edit:xc,save:function({attributes:e}){const{type:t}=e;return(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save(nt.useBlockProps.save({className:ut()("wp-block-form-submission-notification",{[`form-notification-type-${t}`]:t})}))})},variations:Ec},Nc=()=>Xe({name:Sc,metadata:Cc,settings:Bc}),Tc=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z",fillRule:"evenodd",clipRule:"evenodd"})),Ic="none",Pc="media",Mc="attachment",zc="file",Rc="post";const Ac=(e,t="large")=>{const n=Object.fromEntries(Object.entries(null!=e?e:{}).filter((([e])=>["alt","id","link"].includes(e))));n.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url||e?.source_url;const a=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return a&&(n.fullUrl=a),n};function Hc(){return!_t.Platform.isNative||function(){if(!window.wp||"boolean"!=typeof window.wp.galleryBlockV2Enabled)throw"window.wp.galleryBlockV2Enabled is not defined";return window.wp.galleryBlockV2Enabled}()}const Lc="file",Dc="post";function Fc(e){return Math.min(3,e?.images?.length)}function Vc(e,t){switch(t){case Lc:return{href:e?.source_url||e?.url,linkDestination:Pc};case Dc:return{href:e?.link,linkDestination:Mc};case Pc:return{href:e?.source_url||e?.url,linkDestination:Pc};case Mc:return{href:e?.link,linkDestination:Mc};case Ic:return{href:void 0,linkDestination:Ic}}return{}}function $c(e){let t=e.linkTo?e.linkTo:"none";"post"===t?t="attachment":"file"===t&&(t="media");const n=e.images.map((n=>function(e,t,n){return(0,Qe.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...Vc(e,n)})}(n,e.sizeSlug,t))),{images:a,ids:o,...r}=e;return[{...r,linkTo:t,allowResize:!1},n]}const Oc={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:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},save({attributes:e}){const{caption:t,columns:n,imageCrop:a}=e,o=ut()("has-nested-images",{[`columns-${n}`]:void 0!==n,"columns-default":void 0===n,"is-cropped":a}),r=nt.useBlockProps.save({className:o}),l=nt.useInnerBlocksProps.save(r);return(0,Ke.createElement)("figure",{...l},l.children,!nt.RichText.isEmpty(t)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t}))}},Gc={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},fixedHeight:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0},save({attributes:e}){const{images:t,columns:n=Fc(e),imageCrop:a,caption:o,linkTo:r}=e,l=`columns-${n} ${a?"is-cropped":""}`;return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:l})},(0,Ke.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case Lc:t=e.fullUrl||e.url;break;case Dc:t=e.link}const n=(0,Ke.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-${e.id}`:null});return(0,Ke.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,Ke.createElement)("figure",null,t?(0,Ke.createElement)("a",{href:t},n):n,!nt.RichText.isEmpty(e.caption)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!nt.RichText.isEmpty(o)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:o}))},migrate:e=>Hc()?$c(e):e},Uc={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},isEligible:({linkTo:e})=>!e||"attachment"===e||"media"===e,migrate(e){if(Hc())return $c(e);let t=e.linkTo;return e.linkTo?"attachment"===e.linkTo?t="post":"media"===e.linkTo&&(t="file"):t="none",{...e,linkTo:t}},save({attributes:e}){const{images:t,columns:n=Fc(e),imageCrop:a,caption:o,linkTo:r}=e;return(0,Ke.createElement)("figure",{className:`columns-${n} ${a?"is-cropped":""}`},(0,Ke.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=(0,Ke.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-${e.id}`:null});return(0,Ke.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,Ke.createElement)("figure",null,t?(0,Ke.createElement)("a",{href:t},n):n,!nt.RichText.isEmpty(e.caption)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!nt.RichText.isEmpty(o)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:o}))}},qc={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",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible:({ids:e})=>e&&e.some((e=>"string"==typeof e)),migrate(e){var t;return Hc()?$c(e):{...e,ids:(null!==(t=e.ids)&&void 0!==t?t:[]).map((e=>{const t=parseInt(e,10);return Number.isInteger(t)?t:null}))}},save({attributes:e}){const{images:t,columns:n=Fc(e),imageCrop:a,caption:o,linkTo:r}=e;return(0,Ke.createElement)("figure",{className:`columns-${n} ${a?"is-cropped":""}`},(0,Ke.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=(0,Ke.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-${e.id}`:null});return(0,Ke.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,Ke.createElement)("figure",null,t?(0,Ke.createElement)("a",{href:t},n):n,!nt.RichText.isEmpty(e.caption)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!nt.RichText.isEmpty(o)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:o}))}},jc={attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},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:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){const{images:t,columns:n=Fc(e),imageCrop:a,linkTo:o}=e;return(0,Ke.createElement)("ul",{className:`columns-${n} ${a?"is-cropped":""}`},t.map((e=>{let t;switch(o){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=(0,Ke.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-${e.id}`:null});return(0,Ke.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,Ke.createElement)("figure",null,t?(0,Ke.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:e.caption})))})))},migrate:e=>Hc()?$c(e):e},Wc={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:"string",source:"html",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:({images:e,ids:t})=>e&&e.length>0&&(!t&&e||t&&e&&t.length!==e.length||e.some(((e,n)=>!e&&null!==t[n]||parseInt(e,10)!==t[n]))),migrate(e){var t;return Hc()?$c(e):{...e,ids:(null!==(t=e.images)&&void 0!==t?t:[]).map((({id:e})=>e?parseInt(e,10):null))}},supports:{align:!0},save({attributes:e}){const{images:t,columns:n=Fc(e),imageCrop:a,linkTo:o}=e;return(0,Ke.createElement)("ul",{className:`columns-${n} ${a?"is-cropped":""}`},t.map((e=>{let t;switch(o){case"media":t=e.url;break;case"attachment":t=e.link}const n=(0,Ke.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,Ke.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,Ke.createElement)("figure",null,t?(0,Ke.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},Zc={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({attributes:e}){const{images:t,columns:n=Fc(e),align:a,imageCrop:o,linkTo:r}=e,l=ut()(`columns-${n}`,{alignnone:"none"===a,"is-cropped":o});return(0,Ke.createElement)("div",{className:l},t.map((e=>{let t;switch(r){case"media":t=e.url;break;case"attachment":t=e.link}const n=(0,Ke.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return(0,Ke.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?(0,Ke.createElement)("a",{href:t},n):n)})))},migrate:e=>Hc()?$c(e):e},Qc=[Oc,Gc,Uc,qc,jc,Wc,Zc],Kc=window.wp.viewport,Yc=(0,Ke.createElement)(nt.BlockIcon,{icon:Tc}),Jc=20,Xc="none",em="media",tm="attachment",nm="custom",am=["noreferrer","noopener"],om=["image"];function rm(e,t,n){switch(n||t){case zc:case Pc:return{href:e?.source_url||e?.url,linkDestination:em};case Rc:case Mc:return{href:e?.link,linkDestination:tm};case Ic:return{href:void 0,linkDestination:Xc}}return{}}function lm(e,{rel:t}){const n=e?"_blank":void 0;let a;return a=n||t?function(e){let t=e;return void 0!==e&&t&&(am.forEach((e=>{const n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),t||(t=void 0)),t}(t):void 0,{linkTarget:n,rel:a}}function im(e){const{attributes:t,isSelected:n,setAttributes:a,mediaPlaceholder:o,insertBlocksAfter:r,blockProps:l,__unstableLayoutClassNames:i,isContentLocked:s,multiGallerySelection:c}=e,{align:m,columns:u,imageCrop:p}=t;return(0,Ke.createElement)("figure",{...l,className:ut()(l.className,i,"blocks-gallery-grid",{[`align${m}`]:m,[`columns-${u}`]:void 0!==u,"columns-default":void 0===u,"is-cropped":p})},l.children,n&&!l.children&&(0,Ke.createElement)(Ye.View,{className:"blocks-gallery-media-placeholder-wrapper"},o),(0,Ke.createElement)(Qt,{attributes:t,setAttributes:a,isSelected:n,insertBlocksAfter:r,showToolbarButton:!c&&!s,className:"blocks-gallery-caption",label:(0,tt.__)("Gallery caption text"),placeholder:(0,tt.__)("Add gallery caption")}))}function sm(e,t,n){return(0,_t.useMemo)((()=>function(){if(!e||0===e.length)return;const{imageSizes:a}=n();let o={};t&&(o=e.reduce(((e,t)=>{if(!t.id)return e;const n=a.reduce(((e,n)=>{const a=t.sizes?.[n.slug]?.url,o=t.media_details?.sizes?.[n.slug]?.source_url;return{...e,[n.slug]:a||o}}),{});return{...e,[parseInt(t.id,10)]:n}}),{}));const r=Object.values(o);return a.filter((({slug:e})=>r.some((t=>t[e])))).map((({name:e,slug:t})=>({value:t,label:e})))}()),[e,t])}function cm(e,t){const[n,a]=(0,_t.useState)([]);return(0,_t.useMemo)((()=>function(){let o=!1;const r=n.filter((t=>e.find((e=>t.clientId===e.clientId))));r.length<n.length&&(o=!0);e.forEach((e=>{e.fromSavedContent&&!r.find((t=>t.id===e.id))&&(o=!0,r.push(e))}));const l=e.filter((e=>!r.find((t=>e.clientId&&t.clientId===e.clientId))&&t?.find((t=>t.id===e.id))&&!e.fromSavedConent));(o||l?.length>0)&&a([...r,...l]);return l.length>0?l:null}()),[e,t])}const mm=[];const{useStyleOverride:um}=Ft(nt.privateApis);function pm({blockGap:e,clientId:t}){const n="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )";let a,o=n,r=n;e&&(a="string"==typeof e?(0,nt.__experimentalGetGapCSSValue)(e):(0,nt.__experimentalGetGapCSSValue)(e?.top)||n,r="string"==typeof e?(0,nt.__experimentalGetGapCSSValue)(e):(0,nt.__experimentalGetGapCSSValue)(e?.left)||n,o=a===r?a:`${a} ${r}`);return um({css:`#block-${t} {\n\t\t--wp--style--unstable-gallery-gap: ${"0"===r?"0px":r};\n\t\tgap: ${o}\n\t}`}),null}const dm=[{value:Mc,label:(0,tt.__)("Attachment Page")},{value:Pc,label:(0,tt.__)("Media File")},{value:Ic,label:(0,tt._x)("None","Media item link option")}],gm=["image"],hm=_t.Platform.isNative?(0,tt.__)("Add media"):(0,tt.__)("Drag images, upload new ones or select files from your library."),bm=_t.Platform.isNative?{type:"stepper"}:{},_m=[];const ym=(0,jt.compose)([(0,Kc.withViewportMatch)({isNarrow:"< small"})])((function(e){const{setAttributes:t,attributes:n,className:a,clientId:o,isSelected:r,insertBlocksAfter:l,isContentLocked:i,onFocus:s}=e,{columns:c,imageCrop:m,randomOrder:u,linkTarget:p,linkTo:d,sizeSlug:g}=n,{__unstableMarkNextChangeAsNotPersistent:h,replaceInnerBlocks:b,updateBlockAttributes:_,selectBlock:y}=(0,gt.useDispatch)(nt.store),{createSuccessNotice:v,createErrorNotice:f}=(0,gt.useDispatch)(Pt.store),{getBlock:k,getSettings:x,preferredStyle:w,innerBlockImages:E,blockWasJustInserted:C,multiGallerySelection:S}=(0,gt.useSelect)((e=>{var t;const{getBlockName:n,getMultiSelectedBlockClientIds:a,getSettings:r,getBlock:l,wasBlockJustInserted:i}=e(nt.store),s=r().__experimentalPreferredStyleVariations,c=a();return{getBlock:l,getSettings:r,preferredStyle:s?.value?.["core/image"],innerBlockImages:null!==(t=l(o)?.innerBlocks)&&void 0!==t?t:_m,blockWasJustInserted:i(o,"inserter_menu"),multiGallerySelection:c.length&&c.every((e=>"core/gallery"===n(e)))}}),[o]),B=(0,_t.useMemo)((()=>E?.map((e=>({clientId:e.clientId,id:e.attributes.id,url:e.attributes.url,attributes:e.attributes,fromSavedContent:Boolean(e.originalContent)})))),[E]),N=function(e){return(0,gt.useSelect)((t=>{var n;const a=e.map((e=>e.attributes.id)).filter((e=>void 0!==e));return 0===a.length?mm:null!==(n=t(dt.store).getMediaItems({include:a.join(","),per_page:-1,orderby:"include"}))&&void 0!==n?n:mm}),[e])}(E),T=cm(B,N);(0,_t.useEffect)((()=>{T?.forEach((e=>{h(),_(e.clientId,{...P(e.attributes),id:e.id,align:void 0})}))}),[T]);const I=sm(N,r,x);function P(e){const t=e.id?N.find((({id:t})=>t===e.id)):null;let a,o;return a=e.className&&""!==e.className?e.className:w?`is-style-${w}`:void 0,o=e.linkTarget||e.rel?{linkTarget:e.linkTarget,rel:e.rel}:lm(p,n),{...Ac(t,g),...rm(t,d,e?.linkDestination),...o,className:a,sizeSlug:g,caption:e.caption||t.caption?.raw,alt:e.alt||t.alt_text}}function M(e){const t=_t.Platform.isNative&&e.id?N.find((({id:t})=>t===e.id)):null,n=t?t?.media_type:e.type;return gm.some((e=>0===n?.indexOf(e)))||0===e.url?.indexOf("blob:")}function z(e){const t="[object FileList]"===Object.prototype.toString.call(e),n=t?Array.from(e).map((e=>e.url?e:Ac({url:(0,It.createBlobURL)(e)}))):e;n.every(M)||f((0,tt.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});const a=n.filter((e=>e.url||M(e))).map((e=>e.url?e:Ac({url:(0,It.createBlobURL)(e)}))),r=a.reduce(((e,t,n)=>(e[t.id]=n,e)),{}),l=t?E:E.filter((e=>a.find((t=>t.id===e.attributes.id)))),i=a.filter((e=>!l.find((t=>e.id===t.attributes.id)))).map((e=>(0,Qe.createBlock)("core/image",{id:e.id,url:e.url,caption:e.caption,alt:e.alt})));b(o,l.concat(i).sort(((e,t)=>r[e.attributes.id]-r[t.attributes.id]))),i?.length>0&&y(i[0].clientId)}(0,_t.useEffect)((()=>{d||(h(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||Ic}))}),[d]);const R=!!B.length,A=R&&B.some((e=>!!e.id)),H=B.some((e=>_t.Platform.isNative?0===e.url?.indexOf("file:"):!e.id&&0===e.url?.indexOf("blob:"))),L=_t.Platform.select({web:{addToGallery:!1,disableMediaButtons:H,value:{}},native:{addToGallery:A,isAppender:R,disableMediaButtons:R&&!r||H,value:A?B:{},autoOpenMediaUpload:!R&&r&&C,onFocus:s}}),D=(0,Ke.createElement)(nt.MediaPlaceholder,{handleUpload:!1,icon:Yc,labels:{title:(0,tt.__)("Gallery"),instructions:hm},onSelect:z,accept:"image/*",allowedTypes:gm,multiple:!0,onError:function(e){f(e,{type:"snackbar"})},...L}),F=(0,nt.useBlockProps)({className:ut()(a,"has-nested-images")}),V=_t.Platform.isNative&&{marginHorizontal:0,marginVertical:0},$=(0,nt.useInnerBlocksProps)(F,{orientation:"horizontal",renderAppender:!1,...V});if(!R)return(0,Ke.createElement)(Ye.View,{...$},$.children,D);const O=d&&"none"!==d;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},B.length>1&&(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Columns"),value:c||(G=B.length,G?Math.min(3,G):3),onChange:function(e){t({columns:e})},min:1,max:Math.min(8,B.length),...bm,required:!0,__next40pxDefaultSize:!0}),I?.length>0&&(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Resolution"),help:(0,tt.__)("Select the size of the source images."),value:g,options:I,onChange:function(e){t({sizeSlug:e});const n={},a=[];k(o).innerBlocks.forEach((t=>{a.push(t.clientId);const o=t.attributes.id?N.find((({id:e})=>e===t.attributes.id)):null;n[t.clientId]=function(e,t){const n=e?.media_details?.sizes?.[t]?.source_url;return n?{url:n,width:void 0,height:void 0,sizeSlug:t}:{}}(o,e)})),_(a,n,!0);const r=I.find((t=>t.value===e));v((0,tt.sprintf)((0,tt.__)("All gallery image sizes updated to: %s"),r.label),{id:"gallery-attributes-sizeSlug",type:"snackbar"})},hideCancelButton:!0,size:"__unstable-large"}),(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to"),value:d,onChange:function(e){t({linkTo:e});const n={},a=[];k(o).innerBlocks.forEach((t=>{a.push(t.clientId);const o=t.attributes.id?N.find((({id:e})=>e===t.attributes.id)):null;n[t.clientId]=rm(o,e)})),_(a,n,!0);const r=[...dm].find((t=>t.value===e));v((0,tt.sprintf)((0,tt.__)("All gallery image links updated to: %s"),r.label),{id:"gallery-attributes-linkTo",type:"snackbar"})},options:dm,hideCancelButton:!0,size:"__unstable-large"}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Crop images to fit"),checked:!!m,onChange:function(){t({imageCrop:!m})}}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Randomize order"),checked:!!u,onChange:function(){t({randomOrder:!u})}}),O&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open images in new tab"),checked:"_blank"===p,onChange:function(e){const n=e?"_blank":void 0;t({linkTarget:n});const a={},r=[];k(o).innerBlocks.forEach((e=>{r.push(e.clientId),a[e.clientId]=lm(n,e.attributes)})),_(r,a,!0);const l=e?(0,tt.__)("All gallery images updated to open in new tab"):(0,tt.__)("All gallery images updated to not open in new tab");v(l,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}}),_t.Platform.isWeb&&!I&&A&&(0,Ke.createElement)(et.BaseControl,{className:"gallery-image-sizes"},(0,Ke.createElement)(et.BaseControl.VisualLabel,null,(0,tt.__)("Resolution")),(0,Ke.createElement)(Ye.View,{className:"gallery-image-sizes__loading"},(0,Ke.createElement)(et.Spinner,null),(0,tt.__)("Loading options…"))))),_t.Platform.isWeb&&(0,Ke.createElement)(Ke.Fragment,null,!S&&(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(nt.MediaReplaceFlow,{allowedTypes:gm,accept:"image/*",handleUpload:!1,onSelect:z,name:(0,tt.__)("Add"),multiple:!0,mediaIds:B.filter((e=>e.id)).map((e=>e.id)),addToGallery:A})),(0,Ke.createElement)(pm,{blockGap:n.style?.spacing?.blockGap,clientId:o})),(0,Ke.createElement)(im,{...e,isContentLocked:i,images:B,mediaPlaceholder:!R||_t.Platform.isNative?D:void 0,blockProps:$,insertBlocksAfter:l,multiGallerySelection:S}));var G})),vm=(e,t="large")=>{const n=Object.fromEntries(Object.entries(null!=e?e:{}).filter((([e])=>["alt","id","link","caption"].includes(e))));n.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url;const a=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return a&&(n.fullUrl=a),n},fm=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.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.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"})),km=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),xm=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),wm=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),Em="none",Cm="file",Sm="post";class Bm extends _t.Component{constructor(){super(...arguments),this.onSelectImage=this.onSelectImage.bind(this),this.onRemoveImage=this.onRemoveImage.bind(this),this.bindContainer=this.bindContainer.bind(this),this.onEdit=this.onEdit.bind(this),this.onSelectImageFromLibrary=this.onSelectImageFromLibrary.bind(this),this.onSelectCustomURL=this.onSelectCustomURL.bind(this),this.state={isEditing:!1}}bindContainer(e){this.container=e}onSelectImage(){this.props.isSelected||this.props.onSelect()}onRemoveImage(e){this.container===this.container.ownerDocument.activeElement&&this.props.isSelected&&-1!==[fn.BACKSPACE,fn.DELETE].indexOf(e.keyCode)&&(e.preventDefault(),this.props.onRemove())}onEdit(){this.setState({isEditing:!0})}componentDidUpdate(){const{image:e,url:t,__unstableMarkNextChangeAsNotPersistent:n}=this.props;e&&!t&&(n(),this.props.setAttributes({url:e.source_url,alt:e.alt_text}))}deselectOnBlur(){this.props.onDeselect()}onSelectImageFromLibrary(e){const{setAttributes:t,id:n,url:a,alt:o,caption:r,sizeSlug:l}=this.props;if(!e||!e.url)return;let i=vm(e,l);if(((e,t)=>!e&&(0,It.isBlobURL)(t))(n,a)&&o){const{alt:e,...t}=i;i=t}if(r&&!i.caption){const{caption:e,...t}=i;i=t}t(i),this.setState({isEditing:!1})}onSelectCustomURL(e){const{setAttributes:t,url:n}=this.props;e!==n&&(t({url:e,id:void 0}),this.setState({isEditing:!1}))}render(){const{url:e,alt:t,id:n,linkTo:a,link:o,isFirstItem:r,isLastItem:l,isSelected:i,caption:s,onRemove:c,onMoveForward:m,onMoveBackward:u,setAttributes:p,"aria-label":d}=this.props,{isEditing:g}=this.state;let h;switch(a){case Cm:h=e;break;case Sm:h=o}const b=(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("img",{src:e,alt:t,"data-id":n,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":d,ref:this.bindContainer}),(0,It.isBlobURL)(e)&&(0,Ke.createElement)(et.Spinner,null)),_=ut()({"is-selected":i,"is-transient":(0,It.isBlobURL)(e)});return(0,Ke.createElement)("figure",{className:_,onClick:this.onSelectImage,onFocus:this.onSelectImage},!g&&(h?(0,Ke.createElement)("a",{href:h},b):b),g&&(0,Ke.createElement)(nt.MediaPlaceholder,{labels:{title:(0,tt.__)("Edit gallery image")},icon:fm,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:n,src:e}}),(0,Ke.createElement)(et.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},(0,Ke.createElement)(et.Button,{icon:km,onClick:r?void 0:u,label:(0,tt.__)("Move image backward"),"aria-disabled":r,disabled:!i}),(0,Ke.createElement)(et.Button,{icon:xm,onClick:l?void 0:m,label:(0,tt.__)("Move image forward"),"aria-disabled":l,disabled:!i})),(0,Ke.createElement)(et.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},(0,Ke.createElement)(et.Button,{icon:Di,onClick:this.onEdit,label:(0,tt.__)("Replace image"),disabled:!i}),(0,Ke.createElement)(et.Button,{icon:wm,onClick:c,label:(0,tt.__)("Remove image"),disabled:!i})),!g&&(i||s)&&(0,Ke.createElement)(nt.RichText,{tagName:"figcaption",className:(0,nt.__experimentalGetElementClassName)("caption"),"aria-label":(0,tt.__)("Image caption text"),placeholder:i?(0,tt.__)("Add caption"):null,value:s,onChange:e=>p({caption:e}),inlineToolbar:!0}))}}const Nm=(0,jt.compose)([(0,gt.withSelect)(((e,t)=>{const{getMedia:n}=e(dt.store),{id:a}=t;return{image:a?n(parseInt(a,10)):null}})),(0,gt.withDispatch)((e=>{const{__unstableMarkNextChangeAsNotPersistent:t}=e(nt.store);return{__unstableMarkNextChangeAsNotPersistent:t}}))])(Bm);function Tm({isHidden:e,...t}){return e?(0,Ke.createElement)(et.VisuallyHidden,{as:nt.RichText,...t}):(0,Ke.createElement)(nt.RichText,{...t})}const Im=e=>{const{attributes:t,isSelected:n,setAttributes:a,selectedImage:o,mediaPlaceholder:r,onMoveBackward:l,onMoveForward:i,onRemoveImage:s,onSelectImage:c,onDeselectImage:m,onSetImageAttributes:u,insertBlocksAfter:p,blockProps:d}=e,{align:g,columns:h=Fc(t),caption:b,imageCrop:_,images:y}=t;return(0,Ke.createElement)("figure",{...d,className:ut()(d.className,{[`align${g}`]:g,[`columns-${h}`]:h,"is-cropped":_})},(0,Ke.createElement)("ul",{className:"blocks-gallery-grid"},y.map(((e,a)=>{const r=(0,tt.sprintf)((0,tt.__)("image %1$d of %2$d in gallery"),a+1,y.length);return(0,Ke.createElement)("li",{className:"blocks-gallery-item",key:e.id?`${e.id}-${a}`:e.url},(0,Ke.createElement)(Nm,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===a,isLastItem:a+1===y.length,isSelected:n&&o===a,onMoveBackward:l(a),onMoveForward:i(a),onRemove:s(a),onSelect:c(a),onDeselect:m(a),setAttributes:e=>u(a,e),caption:e.caption,"aria-label":r,sizeSlug:t.sizeSlug}))}))),r,(0,Ke.createElement)(Tm,{isHidden:!n&&nt.RichText.isEmpty(b),tagName:"figcaption",className:ut()("blocks-gallery-caption",(0,nt.__experimentalGetElementClassName)("caption")),"aria-label":(0,tt.__)("Gallery caption text"),placeholder:(0,tt.__)("Write gallery caption…"),value:b,onChange:e=>a({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>p((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))}))},Pm=[{value:Sm,label:(0,tt.__)("Attachment Page")},{value:Cm,label:(0,tt.__)("Media File")},{value:Em,label:(0,tt.__)("None")}],Mm=["image"],zm=_t.Platform.select({web:(0,tt.__)("Drag images, upload new ones or select files from your library."),native:(0,tt.__)("ADD MEDIA")}),Rm=_t.Platform.select({web:{},native:{type:"stepper"}});const Am=(0,jt.compose)([et.withNotices,(0,Kc.withViewportMatch)({isNarrow:"< small"})])((function(e){const{attributes:t,clientId:n,isSelected:a,noticeUI:o,noticeOperations:r,onFocus:l}=e,{columns:i=Fc(t),imageCrop:s,images:c,linkTo:m,sizeSlug:u}=t,[p,d]=(0,_t.useState)(),[g,h]=(0,_t.useState)(),{__unstableMarkNextChangeAsNotPersistent:b}=(0,gt.useDispatch)(nt.store),{imageSizes:_,mediaUpload:y,getMedia:v,wasBlockJustInserted:f}=(0,gt.useSelect)((e=>{const t=e(nt.store).getSettings();return{imageSizes:t.imageSizes,mediaUpload:t.mediaUpload,getMedia:e(dt.store).getMedia,wasBlockJustInserted:e(nt.store).wasBlockJustInserted(n,"inserter_menu")}})),k=(0,_t.useMemo)((()=>{var e;return a?(null!==(e=t.ids)&&void 0!==e?e:[]).reduce(((e,t)=>{if(!t)return e;const n=v(t),a=_.reduce(((e,t)=>{const a=n?.sizes?.[t.slug]?.url,o=n?.media_details?.sizes?.[t.slug]?.source_url;return{...e,[t.slug]:a||o}}),{});return{...e,[parseInt(t,10)]:a}}),{}):{}}),[a,t.ids,_]);function x(t){if(t.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');t.images&&(t={...t,ids:t.images.map((({id:e})=>parseInt(e,10)))}),e.setAttributes(t)}function w(e,t){const n=[...c];n.splice(t,1,c[e]),n.splice(e,1,c[t]),d(t),x({images:n})}function E(e){const t=e.id.toString(),n=c.find((({id:e})=>e===t)),a=n?n.caption:e.caption;if(!g)return a;const o=g.find((({id:e})=>e===t));return o&&o.caption!==e.caption?e.caption:a}function C(e){h(e.map((e=>({id:e.id.toString(),caption:e.caption})))),x({images:e.map((e=>({...vm(e,u),caption:E(e),id:e.id.toString()}))),columns:t.columns?Math.min(e.length,t.columns):t.columns})}(0,_t.useEffect)((()=>{if("web"===_t.Platform.OS&&c&&c.length>0&&c.every((({url:e})=>(0,It.isBlobURL)(e)))){const e=c.map((({url:e})=>(0,It.getBlobByURL)(e)));c.forEach((({url:e})=>(0,It.revokeBlobURL)(e))),y({filesList:e,onFileChange:C,allowedTypes:["image"]})}}),[]),(0,_t.useEffect)((()=>{a||d()}),[a]),(0,_t.useEffect)((()=>{m||(b(),x({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||Em}))}),[m]);const S=!!c.length,B=S&&c.some((e=>!!e.id)),N=(0,Ke.createElement)(nt.MediaPlaceholder,{addToGallery:B,isAppender:S,disableMediaButtons:S&&!a,icon:!S&&Yc,labels:{title:!S&&(0,tt.__)("Gallery"),instructions:!S&&zm},onSelect:C,accept:"image/*",allowedTypes:Mm,multiple:!0,value:B?c:{},onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)},notices:S?void 0:o,onFocus:l,autoOpenMediaUpload:!S&&a&&f}),T=(0,nt.useBlockProps)();if(!S)return(0,Ke.createElement)(Ye.View,{...T},N);const I=function(){const e=Object.values(k);return _.filter((({slug:t})=>e.some((e=>e[t])))).map((({name:e,slug:t})=>({value:t,label:e})))}(),P=S&&I.length>0;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},c.length>1&&(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Columns"),value:i,onChange:function(e){x({columns:e})},min:1,max:Math.min(8,c.length),...Rm,required:!0}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Crop images"),checked:!!s,onChange:function(){x({imageCrop:!s})},help:function(e){return e?(0,tt.__)("Thumbnails are cropped to align."):(0,tt.__)("Thumbnails are not cropped.")}}),(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to"),value:m,onChange:function(e){x({linkTo:e})},options:Pm,hideCancelButton:!0}),P&&(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Image size"),value:u,options:I,onChange:function(e){x({images:(null!=c?c:[]).map((t=>{if(!t.id)return t;const n=k[parseInt(t.id,10)]?.[e];return{...t,...n&&{url:n}}})),sizeSlug:e})},hideCancelButton:!0}))),o,(0,Ke.createElement)(Im,{...e,selectedImage:p,mediaPlaceholder:N,onMoveBackward:function(e){return()=>{0!==e&&w(e,e-1)}},onMoveForward:function(e){return()=>{e!==c.length-1&&w(e,e+1)}},onRemoveImage:function(e){return()=>{const n=c.filter(((t,n)=>e!==n));d(),x({images:n,columns:t.columns?Math.min(n.length,t.columns):t.columns})}},onSelectImage:function(e){return()=>{d(e)}},onDeselectImage:function(){return()=>{d()}},onSetImageAttributes:function(e,t){c[e]&&x({images:[...c.slice(0,e),{...c[e],...t},...c.slice(e+1)]})},blockProps:T,onFocusGalleryCaption:function(){d()}}))}));const Hm=(0,jt.compose)([et.withNotices])((function(e){return Hc()?(0,Ke.createElement)(ym,{...e}):(0,Ke.createElement)(Am,{...e})}));(0,_i.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",(function(e){if(Hc()&&"core/gallery"===e.name&&e.attributes?.images.length>0){const t=e.attributes.images.map((({url:t,id:n,alt:a})=>(0,Qe.createBlock)("core/image",{url:t,id:n?parseInt(n,10):null,alt:a,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination})));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e})),(0,_i.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",(function(e,t){const n=(Array.isArray(t)?t:[t]).find((t=>"core/gallery"===t.name&&t.innerBlocks.length>0&&!t.attributes.images?.length>0&&!e.name.includes("core/")));if(n){const e=n.innerBlocks.map((({attributes:{url:e,id:t,alt:n}})=>({url:e,id:t?parseInt(t,10):null,alt:n}))),t=e.map((({id:e})=>e));n.attributes.images=e,n.attributes.ids=t}return e}));const Lm={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:n}=e[0];t=e.every((e=>e.align===t))?t:void 0,n=e.every((e=>e.sizeSlug===n))?n:void 0;const a=e.filter((({url:e})=>e));if(Hc()){const e=a.map((e=>(e.width=void 0,e.height=void 0,(0,Qe.createBlock)("core/image",e))));return(0,Qe.createBlock)("core/gallery",{align:t,sizeSlug:n},e)}return(0,Qe.createBlock)("core/gallery",{images:a.map((({id:e,url:t,alt:n,caption:a})=>({id:e.toString(),url:t,alt:n,caption:a}))),ids:a.map((({id:e})=>parseInt(e,10))),align:t,sizeSlug:n})}},{type:"shortcode",tag:"gallery",transform({named:{ids:e,columns:t=3,link:n,orderby:a}}){const o=(e=>e?e.split(",").map((e=>parseInt(e,10))):[])(e).map((e=>parseInt(e,10)));let r=Ic;"post"===n?r=Mc:"file"===n&&(r=Pc);return(0,Qe.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:r,randomOrder:"rand"===a},o.map((e=>(0,Qe.createBlock)("core/image",{id:e}))))},isMatch:({named:e})=>void 0!==e.ids},{type:"files",priority:1,isMatch:e=>1!==e.length&&e.every((e=>0===e.type.indexOf("image/"))),transform(e){if(Hc()){const t=e.map((e=>(0,Qe.createBlock)("core/image",{url:(0,It.createBlobURL)(e)})));return(0,Qe.createBlock)("core/gallery",{},t)}const t=(0,Qe.createBlock)("core/gallery",{images:e.map((e=>Ac({url:(0,It.createBlobURL)(e)})))});return t}}],to:[{type:"block",blocks:["core/image"],transform:({align:e,images:t,ids:n,sizeSlug:a},o)=>Hc()?o.length>0?o.map((({attributes:{url:t,alt:n,caption:a,title:o,href:r,rel:l,linkClass:i,id:s,sizeSlug:c,linkDestination:m,linkTarget:u,anchor:p,className:d}})=>(0,Qe.createBlock)("core/image",{align:e,url:t,alt:n,caption:a,title:o,href:r,rel:l,linkClass:i,id:s,sizeSlug:c,linkDestination:m,linkTarget:u,anchor:p,className:d}))):(0,Qe.createBlock)("core/image",{align:e}):t.length>0?t.map((({url:t,alt:o,caption:r},l)=>(0,Qe.createBlock)("core/image",{id:n[l],url:t,alt:o,caption:r,align:e,sizeSlug:a}))):(0,Qe.createBlock)("core/image",{align:e})}]},Dm=Lm,Fm={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/gallery",title:"Gallery",category:"media",allowedBlocks:["core/image"],description:"Display multiple images in a rich gallery.",keywords:["images","photos"],textdomain:"default",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:"rich-text",source:"rich-text",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",items:{type:"object"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"rich-text",source:"rich-text",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},randomOrder:{type:"boolean",default:!1},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},providesContext:{allowResize:"allowResize",imageCrop:"imageCrop",fixedHeight:"fixedHeight"},supports:{anchor:!0,align:!0,html:!1,units:["px","em","rem","vh","vw"],spacing:{margin:!0,padding:!0,blockGap:["horizontal","vertical"],__experimentalSkipSerialization:["blockGap"],__experimentalDefaultControls:{blockGap:!0,margin:!1,padding:!1}},color:{text:!1,background:!0,gradients:!0},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"},{name:Vm}=Fm,$m={icon:Tc,example:{attributes:{columns:2},innerBlocks:[{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}}]},transforms:Dm,edit:Hm,save:function({attributes:e}){if(!Hc())return function({attributes:e}){const{images:t,columns:n=Fc(e),imageCrop:a,caption:o,linkTo:r}=e,l=`columns-${n} ${a?"is-cropped":""}`;return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:l})},(0,Ke.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case Cm:t=e.fullUrl||e.url;break;case Sm:t=e.link}const n=(0,Ke.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-${e.id}`:null});return(0,Ke.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,Ke.createElement)("figure",null,t?(0,Ke.createElement)("a",{href:t},n):n,!nt.RichText.isEmpty(e.caption)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:ut()("blocks-gallery-item__caption",(0,nt.__experimentalGetElementClassName)("caption")),value:e.caption})))}))),!nt.RichText.isEmpty(o)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:ut()("blocks-gallery-caption",(0,nt.__experimentalGetElementClassName)("caption")),value:o}))}({attributes:e});const{caption:t,columns:n,imageCrop:a}=e,o=ut()("has-nested-images",{[`columns-${n}`]:void 0!==n,"columns-default":void 0===n,"is-cropped":a}),r=nt.useBlockProps.save({className:o}),l=nt.useInnerBlocksProps.save(r);return(0,Ke.createElement)("figure",{...l},l.children,!nt.RichText.isEmpty(t)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:ut()("blocks-gallery-caption",(0,nt.__experimentalGetElementClassName)("caption")),value:t}))},deprecated:Qc},Om=()=>Xe({name:Vm,metadata:Fm,settings:$m}),Gm=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:n,customBackgroundColor:a,...o}=e;return{...o,style:t}},Um=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{__experimentalOnEnter:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0},save:({attributes:{tagName:e}})=>(0,Ke.createElement)(e,{...nt.useInnerBlocksProps.save(nt.useBlockProps.save())}),isEligible:({layout:e})=>!e||e.inherit||e.contentSize&&"constrained"!==e.type,migrate:e=>{const{layout:t=null}=e;return t?t.inherit||t.contentSize?{...e,layout:{...t,type:"constrained"}}:void 0:e}},{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save({attributes:e}){const{tagName:t}=e;return(0,Ke.createElement)(t,{...nt.useBlockProps.save()},(0,Ke.createElement)("div",{className:"wp-block-group__inner-container"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Gm,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,textColor:a,customTextColor:o}=e,r=(0,nt.getColorClassName)("background-color",t),l=(0,nt.getColorClassName)("color",a),i=ut()(r,l,{"has-text-color":a||o,"has-background":t||n}),s={backgroundColor:r?void 0:n,color:l?void 0:o};return(0,Ke.createElement)("div",{className:i,style:s},(0,Ke.createElement)("div",{className:"wp-block-group__inner-container"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:Gm,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,textColor:a,customTextColor:o}=e,r=(0,nt.getColorClassName)("background-color",t),l=(0,nt.getColorClassName)("color",a),i=ut()(r,{"has-text-color":a||o,"has-background":t||n}),s={backgroundColor:r?void 0:n,color:l?void 0:o};return(0,Ke.createElement)("div",{className:i,style:s},(0,Ke.createElement)("div",{className:"wp-block-group__inner-container"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Gm,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n}=e,a=(0,nt.getColorClassName)("background-color",t),o=ut()(a,{"has-background":t||n}),r={backgroundColor:a?void 0:n};return(0,Ke.createElement)("div",{className:o,style:r},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}}],qm=Um,jm=(e="group")=>{const t={group:(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"32",viewBox:"0 0 44 32"},(0,Ke.createElement)(et.Path,{d:"M42 0H2C.9 0 0 .9 0 2v28c0 1.1.9 2 2 2h40c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2z"})),"group-row":(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"32",viewBox:"0 0 44 32"},(0,Ke.createElement)(et.Path,{d:"M42 0H23.5c-.6 0-1 .4-1 1v30c0 .6.4 1 1 1H42c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zM20.5 0H2C.9 0 0 .9 0 2v28c0 1.1.9 2 2 2h18.5c.6 0 1-.4 1-1V1c0-.6-.4-1-1-1z"})),"group-stack":(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"32",viewBox:"0 0 44 32"},(0,Ke.createElement)(et.Path,{d:"M42 0H2C.9 0 0 .9 0 2v12.5c0 .6.4 1 1 1h42c.6 0 1-.4 1-1V2c0-1.1-.9-2-2-2zm1 16.5H1c-.6 0-1 .4-1 1V30c0 1.1.9 2 2 2h40c1.1 0 2-.9 2-2V17.5c0-.6-.4-1-1-1z"})),"group-grid":(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"32",viewBox:"0 0 44 32"},(0,Ke.createElement)(et.Path,{d:"m20.30137,-0.00025l-18.9728,0c-0.86524,0.07234 -1.41711,0.79149 -1.41711,1.89149l0,12.64468c0,0.6 0.73401,0.96383 1.0304,0.96383l19.67469,0.03617c0.29639,0 1.0304,-0.4 1.0304,-1l-0.03576,-12.7532c0,-1.1 -0.76644,-1.78297 -1.30983,-1.78297zm0.52975,16.60851l-19.99654,-0.03617c-0.29639,0 -0.92312,0.36383 -0.92312,0.96383l-0.03576,12.68085c0,1.1 0.8022,1.81915 1.34559,1.81915l19.00857,0c0.54339,0 1.45287,-0.71915 1.45287,-1.81915l0,-12.53617c0,-0.6 -0.5552,-1.07234 -0.8516,-1.07234z"}),(0,Ke.createElement)(et.Path,{d:"m42.73056,-0.03617l-18.59217,0c-0.84788,0.07234 -1.38868,0.79149 -1.38868,1.89149l0,12.64468c0,0.6 0.71928,0.96383 1.00973,0.96383l19.27997,0.03617c0.29045,0 1.00973,-0.4 1.00973,-1l-0.03504,-12.7532c0,-1.1 -0.75106,-1.78297 -1.28355,-1.78297zm0.51912,16.60851l-19.59537,-0.03617c-0.29045,0 -0.9046,0.36383 -0.9046,0.96383l-0.03504,12.68085c0,1.1 0.78611,1.81915 1.31859,1.81915l18.62721,0c0.53249,0 1.42372,-0.71915 1.42372,-1.81915l0,-12.53617c0,-0.6 -0.54407,-1.07234 -0.83451,-1.07234z"}))};return t?.[e]};const Wm=function({name:e,onSelect:t}){const n=(0,gt.useSelect)((t=>t(Qe.store).getBlockVariations(e,"block")),[e]),a=(0,nt.useBlockProps)({className:"wp-block-group__placeholder"});return(0,Ke.createElement)("div",{...a},(0,Ke.createElement)(et.Placeholder,{instructions:(0,tt.__)("Group blocks together. Select a layout:")},(0,Ke.createElement)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,tt.__)("Block variations")},n.map((e=>(0,Ke.createElement)("li",{key:e.name},(0,Ke.createElement)(et.Button,{variant:"tertiary",icon:jm(e.name),iconSize:44,onClick:()=>t(e),className:"wp-block-group-placeholder__variation-button",label:`${e.title}: ${e.description}`})))))))};function Zm({tagName:e,onSelectTagName:t}){const n={header:(0,tt.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,tt.__)("The <main> element should be used for the primary content of your document only. "),section:(0,tt.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,tt.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,tt.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,tt.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};return(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("HTML element"),options:[{label:(0,tt.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:e,onChange:t,help:n[e]}))}const Qm=function({attributes:e,name:t,setAttributes:n,clientId:a}){const{hasInnerBlocks:o,themeSupportsLayout:r}=(0,gt.useSelect)((e=>{const{getBlock:t,getSettings:n}=e(nt.store),o=t(a);return{hasInnerBlocks:!(!o||!o.innerBlocks.length),themeSupportsLayout:n()?.supportsLayout}}),[a]),{tagName:l="div",templateLock:i,allowedBlocks:s,layout:c={}}=e,{type:m="default"}=c,u=r||"flex"===m||"grid"===m,p=(0,_t.useRef)(),d=(0,nt.useBlockProps)({ref:p}),[g,h]=function({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:n=!1}){const{style:a,backgroundColor:o,textColor:r,fontSize:l}=e,[i,s]=(0,_t.useState)(!(n||o||l||r||a||"flex"===t||"grid"===t));return(0,_t.useEffect)((()=>{(n||o||l||r||a||"flex"===t)&&s(!1)}),[o,l,r,a,t,n]),[i,s]}({attributes:e,usedLayoutType:m,hasInnerBlocks:o});let b;g?b=!1:o||(b=nt.InnerBlocks.ButtonBlockAppender);const _=(0,nt.useInnerBlocksProps)(u?d:{className:"wp-block-group__inner-container"},{dropZoneElement:p.current,templateLock:i,allowedBlocks:s,renderAppender:b}),{selectBlock:y}=(0,gt.useDispatch)(nt.store);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(Zm,{tagName:l,onSelectTagName:e=>n({tagName:e})}),g&&(0,Ke.createElement)(Ye.View,null,_.children,(0,Ke.createElement)(Wm,{name:t,onSelect:e=>{n(e.attributes),y(a,-1),h(!1)}})),u&&!g&&(0,Ke.createElement)(l,{..._}),!u&&!g&&(0,Ke.createElement)(l,{...d},(0,Ke.createElement)("div",{..._})))};const Km={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){const t=["wide","full"],n=e.reduce(((e,n)=>{const{align:a}=n.attributes;return t.indexOf(a)>t.indexOf(e)?a:e}),void 0),a=e.map((e=>(0,Qe.createBlock)(e.name,e.attributes,e.innerBlocks)));return(0,Qe.createBlock)("core/group",{align:n,layout:{type:"constrained"}},a)}}]},Ym=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})),Jm=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})),Xm=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})),eu=[{name:"group",title:(0,tt.__)("Group"),description:(0,tt.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],isActive:e=>!e.layout||!e.layout?.type||"default"===e.layout?.type||"constrained"===e.layout?.type,icon:fc},{name:"group-row",title:(0,tt._x)("Row","single horizontal line"),description:(0,tt.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:e=>"flex"===e.layout?.type&&(!e.layout?.orientation||"horizontal"===e.layout?.orientation),icon:Ym},{name:"group-stack",title:(0,tt.__)("Stack"),description:(0,tt.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:e=>"flex"===e.layout?.type&&"vertical"===e.layout?.orientation,icon:Jm}];window?.__experimentalEnableGroupGridVariation&&eu.push({name:"group-grid",title:(0,tt.__)("Grid"),description:(0,tt.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:e=>"grid"===e.layout?.type,icon:Xm});const tu=eu,nu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/group",title:"Group",category:"design",description:"Gather blocks in a layout container.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},allowedBlocks:{type:"array"}},supports:{__experimentalOnEnter:!0,__experimentalOnMerge:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},dimensions:{minHeight:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},position:{sticky:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSizingOnChildren:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-group-editor",style:"wp-block-group"},{name:au}=nu,ou={icon:fc,example:{attributes:{style:{color:{text:"#000000",background:"#ffffff"}}},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:(0,tt.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:(0,tt.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:(0,tt.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:(0,tt.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:(0,tt.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:(0,tt.__)("Six.")}}]},transforms:Km,edit:Qm,save:function({attributes:{tagName:e}}){return(0,Ke.createElement)(e,{...nt.useInnerBlocksProps.save(nt.useBlockProps.save())})},deprecated:qm,variations:tu},ru=()=>Xe({name:au,metadata:nu,settings:ou}),lu=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})),iu={className:!1,anchor:!0},su={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},cu=e=>{if(!e.customTextColor)return e;const t={color:{text:e.customTextColor}},{customTextColor:n,...a}=e;return{...a,style:t}},mu=["left","right","center"],uu=e=>{const{align:t,...n}=e;return mu.includes(t)?{...n,textAlign:t}:e},pu={supports:iu,attributes:{...su,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>cu(uu(e)),save({attributes:e}){const{align:t,level:n,content:a,textColor:o,customTextColor:r}=e,l="h"+n,i=(0,nt.getColorClassName)("color",o),s=ut()({[i]:i});return(0,Ke.createElement)(nt.RichText.Content,{className:s||void 0,tagName:l,style:{textAlign:t,color:i?void 0:r},value:a})}},du={attributes:{...su,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>cu(uu(e)),save({attributes:e}){const{align:t,content:n,customTextColor:a,level:o,textColor:r}=e,l="h"+o,i=(0,nt.getColorClassName)("color",r),s=ut()({[i]:i,[`has-text-align-${t}`]:t});return(0,Ke.createElement)(nt.RichText.Content,{className:s||void 0,tagName:l,style:{color:i?void 0:a},value:n})},supports:iu},gu={supports:iu,attributes:{...su,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>cu(uu(e)),save({attributes:e}){const{align:t,content:n,customTextColor:a,level:o,textColor:r}=e,l="h"+o,i=(0,nt.getColorClassName)("color",r),s=ut()({[i]:i,"has-text-color":r||a,[`has-text-align-${t}`]:t});return(0,Ke.createElement)(nt.RichText.Content,{className:s||void 0,tagName:l,style:{color:i?void 0:a},value:n})}},hu={supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__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:!0},attributes:su,isEligible:({align:e})=>mu.includes(e),migrate:uu,save({attributes:e}){const{align:t,content:n,level:a}=e,o="h"+a,r=ut()({[`has-text-align-${t}`]:t});return(0,Ke.createElement)(o,{...nt.useBlockProps.save({className:r})},(0,Ke.createElement)(nt.RichText.Content,{value:n}))}},bu={supports:{align:["wide","full"],anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},save({attributes:e}){const{textAlign:t,content:n,level:a}=e,o="h"+a,r=ut()({[`has-text-align-${t}`]:t});return(0,Ke.createElement)(o,{...nt.useBlockProps.save({className:r})},(0,Ke.createElement)(nt.RichText.Content,{value:n}))}},_u=[bu,hu,gu,du,pu],yu={},vu=e=>nc()((e=>{const t=document.createElement("div");return t.innerHTML=e,t.innerText})(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),fu=(e,t)=>{const n=vu(t);if(""===n)return null;delete yu[e];let a=n,o=0;for(;Object.values(yu).includes(a);)o+=1,a=n+"-"+o;return a},ku=(e,t)=>{yu[e]=t};const xu=function({attributes:e,setAttributes:t,mergeBlocks:n,onReplace:a,style:o,clientId:r}){const{textAlign:l,content:i,level:s,placeholder:c,anchor:m}=e,u="h"+s,p=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${l}`]:l}),style:o}),d=(0,nt.useBlockEditingMode)(),{canGenerateAnchors:g}=(0,gt.useSelect)((e=>{const{getGlobalBlockCount:t,getSettings:n}=e(nt.store);return{canGenerateAnchors:!!n().generateAnchors||t("core/table-of-contents")>0}}),[]),{__unstableMarkNextChangeAsNotPersistent:h}=(0,gt.useDispatch)(nt.store);return(0,_t.useEffect)((()=>{if(g)return!m&&i&&(h(),t({anchor:fu(r,i)})),ku(r,m),()=>ku(r,null)}),[m,i,r,g]),(0,Ke.createElement)(Ke.Fragment,null,"default"===d&&(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.HeadingLevelDropdown,{value:s,onChange:e=>t({level:e})}),(0,Ke.createElement)(nt.AlignmentControl,{value:l,onChange:e=>{t({textAlign:e})}})),(0,Ke.createElement)(nt.RichText,{identifier:"content",tagName:u,value:i,onChange:e=>{const n={content:e};!g||m&&e&&fu(r,i)!==m||(n.anchor=fu(r,e)),t(n)},onMerge:n,onSplit:(t,n)=>{let a;var o;n||t?a=(0,Qe.createBlock)("core/heading",{...e,content:t}):a=(0,Qe.createBlock)(null!==(o=(0,Qe.getDefaultBlockName)())&&void 0!==o?o:"core/heading");return n&&(a.clientId=r),a},onReplace:a,onRemove:()=>a([]),placeholder:c||(0,tt.__)("Heading"),textAlign:l,..._t.Platform.isNative&&{deleteEnter:!0},...p}))};const wu={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((({content:e,anchor:t,align:n,metadata:a})=>(0,Qe.createBlock)("core/heading",{content:e,anchor:t,textAlign:n,metadata:An(a,"core/heading",(({content:e})=>({content:e})))})))},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{const n={children:e,attributes:t?[]:["style","id"]};return{h1:n,h2:n,h3:n,h4:n,h5:n,h6:n}},transform(e){const t=(0,Qe.getBlockAttributes)("core/heading",e.outerHTML),{textAlign:n}=e.style||{};var a;return t.level=(a=e.nodeName,Number(a.substr(1))),"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),(0,Qe.createBlock)("core/heading",t)}},...[1,2,3,4,5,6].map((e=>({type:"prefix",prefix:Array(e+1).join("#"),transform:t=>(0,Qe.createBlock)("core/heading",{level:e,content:t})}))),...[1,2,3,4,5,6].map((e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform:()=>(0,Qe.createBlock)("core/heading",{level:e})})))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((({content:e,textAlign:t,metadata:n})=>(0,Qe.createBlock)("core/paragraph",{content:e,align:t,metadata:An(n,"core/paragraph",(({content:e})=>({content:e})))})))}]},Eu=wu,Cu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"h1,h2,h3,h4,h5,h6",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"},{name:Su}=Cu,Bu={icon:lu,example:{attributes:{content:(0,tt.__)("Code is Poetry"),level:2}},__experimentalLabel(e,{context:t}){const{content:n,level:a}=e,o=e?.metadata?.name,r=n?.length>0;return"list-view"===t&&(o||r)?o||n:"accessibility"===t?r?(0,tt.sprintf)((0,tt.__)("Level %1$s. %2$s"),a,n):(0,tt.sprintf)((0,tt.__)("Level %s. Empty."),a):void 0},transforms:Eu,deprecated:_u,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:xu,save:function({attributes:e}){const{textAlign:t,content:n,level:a}=e,o="h"+a,r=ut()({[`has-text-align-${t}`]:t});return(0,Ke.createElement)(o,{...nt.useBlockProps.save({className:r})},(0,Ke.createElement)(nt.RichText.Content,{value:n}))}},Nu=()=>Xe({name:Su,metadata:Cu,settings:Bu}),Tu=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})),Iu=e=>e.preventDefault();const Pu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/home-link",category:"design",parent:["core/navigation"],title:"Home Link",description:"Create a link that always points to the homepage of the site. Usually not necessary if there is already a site title link present in the header.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","style"],supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-home-link-editor",style:"wp-block-home-link"},{name:Mu}=Pu,zu={icon:Tu,edit:function({attributes:e,setAttributes:t,context:n}){const{homeUrl:a}=(0,gt.useSelect)((e=>{const{getUnstableBase:t}=e(dt.store);return{homeUrl:t()?.home}}),[]),{__unstableMarkNextChangeAsNotPersistent:o}=(0,gt.useDispatch)(nt.store),{textColor:r,backgroundColor:l,style:i}=n,s=(0,nt.useBlockProps)({className:ut()("wp-block-navigation-item",{"has-text-color":!!r||!!i?.color?.text,[`has-${r}-color`]:!!r,"has-background":!!l||!!i?.color?.background,[`has-${l}-background-color`]:!!l}),style:{color:i?.color?.text,backgroundColor:i?.color?.background}}),{label:c}=e;return(0,_t.useEffect)((()=>{void 0===c&&(o(),t({label:(0,tt.__)("Home")}))}),[c]),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("div",{...s},(0,Ke.createElement)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:a,onClick:Iu},(0,Ke.createElement)(nt.RichText,{identifier:"label",className:"wp-block-home-link__label",value:c,onChange:e=>{t({label:e})},"aria-label":(0,tt.__)("Home link text"),placeholder:(0,tt.__)("Add home link"),withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))))},save:function(){return(0,Ke.createElement)(nt.InnerBlocks.Content,null)},example:{attributes:{label:(0,tt._x)("Home Link","block example")}}},Ru=()=>Xe({name:Mu,metadata:Pu,settings:zu}),Au=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.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"})),Hu="\n\thtml,body,:root {\n\t\tmargin: 0 !important;\n\t\tpadding: 0 !important;\n\t\toverflow: visible !important;\n\t\tmin-height: auto !important;\n\t}\n";function Lu({content:e,isSelected:t}){const n=(0,gt.useSelect)((e=>e(nt.store).getSettings().styles)),a=(0,_t.useMemo)((()=>[Hu,...(0,nt.transformStyles)(n.filter((e=>e.css)))]),[n]);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.SandBox,{html:e,styles:a,title:(0,tt.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,Ke.createElement)("div",{className:"block-library-html__preview-overlay"}))}const Du={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>(0,Qe.createBlock)("core/html",{content:(0,Rn.create)({html:e}).text})}]},Fu=Du,Vu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/html",title:"Custom HTML",category:"widgets",description:"Add custom HTML code and preview it as you edit.",keywords:["embed"],textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{customClassName:!1,className:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-html-editor"},{name:$u}=Vu,Ou={icon:Au,example:{attributes:{content:"<marquee>"+(0,tt.__)("Welcome to the wonderful world of blocks…")+"</marquee>"}},edit:function e({attributes:t,setAttributes:n,isSelected:a}){const[o,r]=(0,_t.useState)(),l=(0,_t.useContext)(et.Disabled.Context),i=(0,jt.useInstanceId)(e,"html-edit-desc"),s=(0,nt.useBlockProps)({className:"block-library-html__edit","aria-describedby":o?i:void 0});return(0,Ke.createElement)("div",{...s},(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{className:"components-tab-button",isPressed:!o,onClick:function(){r(!1)}},"HTML"),(0,Ke.createElement)(et.ToolbarButton,{className:"components-tab-button",isPressed:o,onClick:function(){r(!0)}},(0,tt.__)("Preview")))),o||l?(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(Lu,{content:t.content,isSelected:a}),(0,Ke.createElement)(et.VisuallyHidden,{id:i},(0,tt.__)("HTML preview is not yet fully accessible. Please switch screen reader to virtualized mode to navigate the below iFrame."))):(0,Ke.createElement)(nt.PlainText,{value:t.content,onChange:e=>n({content:e}),placeholder:(0,tt.__)("Write HTML…"),"aria-label":(0,tt.__)("HTML")}))},save:function({attributes:e}){return(0,Ke.createElement)(_t.RawHTML,null,e.content)},transforms:Fu},Gu=()=>Xe({name:$u,metadata:Vu,settings:Ou}),Uu={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){const{url:t,alt:n,caption:a,align:o,href:r,width:l,height:i}=e,s=l||i?{width:l,height:i}:{},c=(0,Ke.createElement)("img",{src:t,alt:n,...s});let m={};return l?m={width:l}:"left"!==o&&"right"!==o||(m={maxWidth:"50%"}),(0,Ke.createElement)("figure",{className:o?`align${o}`:null,style:m},r?(0,Ke.createElement)("a",{href:r},c):c,!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:a}))}},qu={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){const{url:t,alt:n,caption:a,align:o,href:r,width:l,height:i,id:s}=e,c=(0,Ke.createElement)("img",{src:t,alt:n,className:s?`wp-image-${s}`:null,width:l,height:i});return(0,Ke.createElement)("figure",{className:o?`align${o}`:null},r?(0,Ke.createElement)("a",{href:r},c):c,!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:a}))}},ju={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"}},save({attributes:e}){const{url:t,alt:n,caption:a,align:o,href:r,width:l,height:i,id:s}=e,c=ut()({[`align${o}`]:o,"is-resized":l||i}),m=(0,Ke.createElement)("img",{src:t,alt:n,className:s?`wp-image-${s}`:null,width:l,height:i});return(0,Ke.createElement)("figure",{className:c},r?(0,Ke.createElement)("a",{href:r},m):m,!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:a}))}},Wu={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},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"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0},save({attributes:e}){const{url:t,alt:n,caption:a,align:o,href:r,rel:l,linkClass:i,width:s,height:c,id:m,linkTarget:u,sizeSlug:p,title:d}=e,g=l||void 0,h=ut()({[`align${o}`]:o,[`size-${p}`]:p,"is-resized":s||c}),b=(0,Ke.createElement)("img",{src:t,alt:n,className:m?`wp-image-${m}`:null,width:s,height:c,title:d}),_=(0,Ke.createElement)(Ke.Fragment,null,r?(0,Ke.createElement)("a",{className:i,href:r,target:u,rel:g},b):b,!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:a}));return"left"===o||"right"===o||"center"===o?(0,Ke.createElement)("div",{...nt.useBlockProps.save()},(0,Ke.createElement)("figure",{className:h},_)):(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:h})},_)}},Zu={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},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"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0,__experimentalDefaultControls:{radius:!0}},__experimentalStyle:{spacing:{margin:"0 0 1em 0"}}},save({attributes:e}){const{url:t,alt:n,caption:a,align:o,href:r,rel:l,linkClass:i,width:s,height:c,id:m,linkTarget:u,sizeSlug:p,title:d}=e,g=l||void 0,h=ut()({[`align${o}`]:o,[`size-${p}`]:p,"is-resized":s||c}),b=(0,Ke.createElement)("img",{src:t,alt:n,className:m?`wp-image-${m}`:null,width:s,height:c,title:d}),_=(0,Ke.createElement)(Ke.Fragment,null,r?(0,Ke.createElement)("a",{className:i,href:r,target:u,rel:g},b):b,!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:a}));return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:h})},_)}},Qu={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",__experimentalRole:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",__experimentalRole:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate(e){const{height:t,width:n}=e;return{...e,width:"number"==typeof n?`${n}px`:n,height:"number"==typeof t?`${t}px`:t}},save({attributes:e}){const{url:t,alt:n,caption:a,align:o,href:r,rel:l,linkClass:i,width:s,height:c,aspectRatio:m,scale:u,id:p,linkTarget:d,sizeSlug:g,title:h}=e,b=l||void 0,_=(0,nt.__experimentalGetBorderClassesAndStyles)(e),y=ut()({[`align${o}`]:o,[`size-${g}`]:g,"is-resized":s||c,"has-custom-border":!!_.className||_.style&&Object.keys(_.style).length>0}),v=ut()(_.className,{[`wp-image-${p}`]:!!p}),f=(0,Ke.createElement)("img",{src:t,alt:n,className:v||void 0,style:{..._.style,aspectRatio:m,objectFit:u},width:s,height:c,title:h}),k=(0,Ke.createElement)(Ke.Fragment,null,r?(0,Ke.createElement)("a",{className:i,href:r,target:d,rel:b},f):f,!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{className:(0,nt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a}));return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:y})},k)}},Ku={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",__experimentalRole:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",__experimentalRole:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate:({width:e,height:t,...n})=>({...n,width:`${e}px`,height:`${t}px`}),save({attributes:e}){const{url:t,alt:n,caption:a,align:o,href:r,rel:l,linkClass:i,width:s,height:c,aspectRatio:m,scale:u,id:p,linkTarget:d,sizeSlug:g,title:h}=e,b=l||void 0,_=(0,nt.__experimentalGetBorderClassesAndStyles)(e),y=ut()({[`align${o}`]:o,[`size-${g}`]:g,"is-resized":s||c,"has-custom-border":!!_.className||_.style&&Object.keys(_.style).length>0}),v=ut()(_.className,{[`wp-image-${p}`]:!!p}),f=(0,Ke.createElement)("img",{src:t,alt:n,className:v||void 0,style:{..._.style,aspectRatio:m,objectFit:u,width:s,height:c},width:s,height:c,title:h}),k=(0,Ke.createElement)(Ke.Fragment,null,r?(0,Ke.createElement)("a",{className:i,href:r,target:d,rel:b},f):f,!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{className:(0,nt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a}));return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:y})},k)}},Yu={attributes:{align:{type:"string"},behaviors:{type:"object"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",__experimentalRole:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",__experimentalRole:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate({width:e,height:t,...n}){if(!n.behaviors?.lightbox)return n;const{behaviors:{lightbox:{enabled:a}}}=n,o={...n,lightbox:{enabled:a}};return delete o.behaviors,o},isEligible:e=>!!e.behaviors,save({attributes:e}){const{url:t,alt:n,caption:a,align:o,href:r,rel:l,linkClass:i,width:s,height:c,aspectRatio:m,scale:u,id:p,linkTarget:d,sizeSlug:g,title:h}=e,b=l||void 0,_=(0,nt.__experimentalGetBorderClassesAndStyles)(e),y=ut()({[`align${o}`]:o,[`size-${g}`]:g,"is-resized":s||c,"has-custom-border":!!_.className||_.style&&Object.keys(_.style).length>0}),v=ut()(_.className,{[`wp-image-${p}`]:!!p}),f=(0,Ke.createElement)("img",{src:t,alt:n,className:v||void 0,style:{..._.style,aspectRatio:m,objectFit:u,width:s,height:c},title:h}),k=(0,Ke.createElement)(Ke.Fragment,null,r?(0,Ke.createElement)("a",{className:i,href:r,target:d,rel:b},f):f,!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{className:(0,nt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a}));return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:y})},k)}},Ju=[Yu,Ku,Qu,Zu,Wu,ju,qu,Uu],Xu=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})),ep=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"})),tp=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"})),np=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));function ap(e,t){const[n,a]=(0,_t.useState)();function o(){a(e.current?.clientWidth)}return(0,_t.useEffect)(o,t),(0,_t.useEffect)((()=>{const{defaultView:t}=e.current.ownerDocument;return t.addEventListener("resize",o),()=>{t.removeEventListener("resize",o)}}),[]),n}const op={popoverProps:{placement:"left-start",offset:259}},{DimensionsTool:rp,ResolutionTool:lp}=Ft(nt.privateApis),ip=[{value:"cover",label:(0,tt._x)("Cover","Scale option for dimensions control"),help:(0,tt.__)("Image covers the space evenly.")},{value:"contain",label:(0,tt._x)("Contain","Scale option for dimensions control"),help:(0,tt.__)("Image is contained without distortion.")}],sp=({href:e,children:t})=>e?(0,Ke.createElement)("a",{href:e,onClick:e=>e.preventDefault(),"aria-disabled":!0,style:{pointerEvents:"none",cursor:"default",display:"inline"}},t):t;function cp({temporaryURL:e,attributes:t,setAttributes:n,isSingleSelected:a,insertBlocksAfter:o,onReplace:r,onSelectImage:l,onSelectURL:i,onUploadError:s,containerRef:c,context:m,clientId:u,blockEditingMode:p}){const{url:d="",alt:g,align:h,id:b,href:_,rel:y,linkClass:v,linkDestination:f,title:k,width:x,height:w,aspectRatio:E,scale:C,linkTarget:S,sizeSlug:B,lightbox:N,metadata:T}=t,I=x?parseInt(x,10):void 0,P=w?parseInt(w,10):void 0,M=(0,_t.useRef)(),{allowResize:z=!0}=m,{getBlock:R,getSettings:A}=(0,gt.useSelect)(nt.store),H=(0,gt.useSelect)((e=>b&&a?e(dt.store).getMedia(b,{context:"view"}):null),[b,a]),{canInsertCover:L,imageEditing:D,imageSizes:F,maxWidth:V}=(0,gt.useSelect)((e=>{const{getBlockRootClientId:t,canInsertBlockType:n}=e(nt.store),a=t(u),o=A();return{imageEditing:o.imageEditing,imageSizes:o.imageSizes,maxWidth:o.maxWidth,canInsertCover:n("core/cover",a)}}),[u]),{replaceBlocks:$,toggleSelection:O}=(0,gt.useDispatch)(nt.store),{createErrorNotice:G,createSuccessNotice:U}=(0,gt.useDispatch)(Pt.store),q=(0,jt.useViewportMatch)("medium"),j=["wide","full"].includes(h),[{loadedNaturalWidth:W,loadedNaturalHeight:Z},Q]=(0,_t.useState)({}),[K,Y]=(0,_t.useState)(!1),[J,X]=(0,_t.useState)(),ee=ap(c,[h]),te="default"===p,ne="contentOnly"===p,ae=z&&te&&!j&&q,oe=F.filter((({slug:e})=>H?.media_details?.sizes?.[e]?.source_url)).map((({name:e,slug:t})=>({value:t,label:e})));(0,_t.useEffect)((()=>{mp(b,d)&&a&&A().mediaUpload?J||window.fetch(d.includes("?")?d:d+"?").then((e=>e.blob())).then((e=>X(e))).catch((()=>{})):X()}),[b,d,a,J]);const{naturalWidth:re,naturalHeight:le}=(0,_t.useMemo)((()=>({naturalWidth:M.current?.naturalWidth||W||void 0,naturalHeight:M.current?.naturalHeight||Z||void 0})),[W,Z,M.current?.complete]);function ie(e){n({title:e})}function se(e){n({alt:e})}(0,_t.useEffect)((()=>{a||Y(!1)}),[a]);const ce=b&&re&&le&&D,me=a&&ce&&!K;const ue=(0,et.__experimentalUseCustomUnits)({availableUnits:["px"]}),[pe]=(0,nt.useSettings)("lightbox"),de=!!N&&N?.enabled!==pe?.enabled||pe?.allowEditing,ge=!!N?.enabled||!N&&!!pe?.enabled,he=(0,Ke.createElement)(rp,{value:{width:x,height:w,scale:C,aspectRatio:E},onChange:({width:e,height:t,scale:a,aspectRatio:o})=>{n({width:!e&&t?"auto":e,height:t,scale:a,aspectRatio:o})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:ip,unitsOptions:ue}),be=()=>{n({alt:void 0,width:void 0,height:void 0,scale:void 0,aspectRatio:void 0,lightbox:void 0})},_e=(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.__experimentalToolsPanel,{label:(0,tt.__)("Settings"),resetAll:be,dropdownMenuProps:op},ae&&he)),{lockUrlControls:ye=!1,lockHrefControls:ve=!1,lockAltControls:fe=!1,lockAltControlsMessage:ke,lockTitleControls:xe=!1,lockTitleControlsMessage:we,lockCaption:Ee=!1}=(0,gt.useSelect)((e=>{if(!a)return{};const{getBlockBindingsSource:t}=Ft(e(Qe.store)),{getBlockParentsByBlockName:n}=Ft(e(nt.store)),{url:o,alt:r,title:l}=T?.bindings||{},i=n(u,"core/block").length>0,s=t(o?.source),c=t(r?.source),m=t(l?.source);return{lockUrlControls:!!o&&(!s||s?.lockAttributesEditing),lockHrefControls:i,lockCaption:i,lockAltControls:!!r&&(!c||c?.lockAttributesEditing),lockAltControlsMessage:c?.label?(0,tt.sprintf)((0,tt.__)("Connected to %s"),c.label):(0,tt.__)("Connected to dynamic data"),lockTitleControls:!!l&&(!m||m?.lockAttributesEditing),lockTitleControlsMessage:m?.label?(0,tt.sprintf)((0,tt.__)("Connected to %s"),m.label):(0,tt.__)("Connected to dynamic data")}}),[u,a,T?.bindings]),Ce=(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},a&&!K&&!ve&&!ye&&(0,Ke.createElement)(nt.__experimentalImageURLInputUI,{url:_||"",onChangeUrl:function(e){n(e)},linkDestination:f,mediaUrl:H&&H.source_url||d,mediaLink:H&&H.link,linkTarget:S,linkClass:v,rel:y,showLightboxSetting:de,lightboxEnabled:ge,onSetLightbox:function(e){n(e&&!pe?.enabled?{lightbox:{enabled:!0}}:!e&&pe?.enabled?{lightbox:{enabled:!1}}:{lightbox:void 0})},resetLightbox:function(){n(pe?.enabled&&pe?.allowEditing?{lightbox:{enabled:!1}}:{lightbox:void 0})}}),me&&(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>Y(!0),icon:ep,label:(0,tt.__)("Crop")}),a&&L&&(0,Ke.createElement)(et.ToolbarButton,{icon:tp,label:(0,tt.__)("Add text over image"),onClick:function(){$(u,(0,Qe.switchToBlockType)(R(u),"core/cover"))}})),a&&!K&&!ye&&(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(nt.MediaReplaceFlow,{mediaId:b,mediaURL:d,allowedTypes:om,accept:"image/*",onSelect:l,onSelectURL:i,onError:s})),a&&J&&(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{onClick:function(){const{mediaUpload:e}=A();e&&e({filesList:[J],onFileChange([e]){l(e),(0,It.isBlobURL)(e.url)||(X(),U((0,tt.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:om,onError(e){G(e,{type:"snackbar"})}})},icon:np,label:(0,tt.__)("Upload to Media Library")}))),ne&&(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(et.Dropdown,{popoverProps:{position:"bottom right"},renderToggle:({isOpen:e,onToggle:t})=>(0,Ke.createElement)(et.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":e,onKeyDown:n=>{e||n.keyCode!==fn.DOWN||(n.preventDefault(),t())}},(0,tt._x)("Alt","Alternative text for an image. Block toolbar label, a low character count is preferred.")),renderContent:()=>(0,Ke.createElement)(et.TextareaControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,tt.__)("Alternative text"),value:g||"",onChange:se,disabled:fe,help:fe?(0,Ke.createElement)(Ke.Fragment,null,ke):(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,tt.__)("Describe the purpose of the image.")),(0,Ke.createElement)("br",null),(0,tt.__)("Leave empty if decorative.")),__nextHasNoMarginBottom:!0})}),(0,Ke.createElement)(et.Dropdown,{popoverProps:{position:"bottom right"},renderToggle:({isOpen:e,onToggle:t})=>(0,Ke.createElement)(et.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":e,onKeyDown:n=>{e||n.keyCode!==fn.DOWN||(n.preventDefault(),t())}},(0,tt.__)("Title")),renderContent:()=>(0,Ke.createElement)(et.TextControl,{className:"wp-block-image__toolbar_content_textarea",__nextHasNoMarginBottom:!0,label:(0,tt.__)("Title attribute"),value:k||"",onChange:ie,disabled:xe,help:xe?(0,Ke.createElement)(Ke.Fragment,null,we):(0,Ke.createElement)(Ke.Fragment,null,(0,tt.__)("Describe the role of this image on the page."),(0,Ke.createElement)(et.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},(0,tt.__)("(Note: many devices and browsers do not display this text.)")))})})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.__experimentalToolsPanel,{label:(0,tt.__)("Settings"),resetAll:be,dropdownMenuProps:op},a&&(0,Ke.createElement)(et.__experimentalToolsPanelItem,{label:(0,tt.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!g,onDeselect:()=>n({alt:void 0})},(0,Ke.createElement)(et.TextareaControl,{label:(0,tt.__)("Alternative text"),value:g||"",onChange:se,readOnly:fe,help:fe?(0,Ke.createElement)(Ke.Fragment,null,ke):(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,tt.__)("Describe the purpose of the image.")),(0,Ke.createElement)("br",null),(0,tt.__)("Leave empty if decorative.")),__nextHasNoMarginBottom:!0})),ae&&he,!!oe.length&&(0,Ke.createElement)(lp,{value:B,onChange:function(e){const t=H?.media_details?.sizes?.[e]?.source_url;if(!t)return null;n({url:t,sizeSlug:e})},options:oe}))),(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Title attribute"),value:k||"",onChange:ie,readOnly:xe,help:xe?(0,Ke.createElement)(Ke.Fragment,null,we):(0,Ke.createElement)(Ke.Fragment,null,(0,tt.__)("Describe the role of this image on the page."),(0,Ke.createElement)(et.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},(0,tt.__)("(Note: many devices and browsers do not display this text.)")))}))),Se=(0,pt.getFilename)(d);let Be;Be=g||(Se?(0,tt.sprintf)((0,tt.__)("This image has an empty alt attribute; its file name is %s"),Se):(0,tt.__)("This image has an empty alt attribute"));const Ne=(0,nt.__experimentalUseBorderProps)(t),Te=(0,nt.__experimentalGetShadowClassesAndStyles)(t),Ie=t.className?.includes("is-style-rounded");let Pe=(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("img",{src:e||d,alt:Be,onError:()=>function(){const e=Ot({attributes:{url:d}});void 0!==e&&r(e)}(),onLoad:e=>{Q({loadedNaturalWidth:e.target?.naturalWidth,loadedNaturalHeight:e.target?.naturalHeight})},ref:M,className:Ne.className,style:{width:x&&w||E?"100%":void 0,height:x&&w||E?"100%":void 0,objectFit:C,...Ne.style,...Te.style}}),e&&(0,Ke.createElement)(et.Spinner,null));const Me=M.current?.width||ee;if(ce&&K)Pe=(0,Ke.createElement)(sp,{href:_},(0,Ke.createElement)(nt.__experimentalImageEditor,{id:b,url:d,width:I,height:P,clientWidth:Me,naturalHeight:le,naturalWidth:re,onSaveImage:e=>n(e),onFinishEditing:()=>{Y(!1)},borderProps:Ie?void 0:Ne}));else if(ae){const e=E&&function(e){const[t,n=1]=e.split("/").map(Number),a=t/n;return a===1/0||0===a?NaN:a}(E),t=re/le,o=e||I/P||t||1,r=!I&&P?P*o:I,l=!P&&I?I/o:P,i=re<le?Jc:Jc*o,s=le<re?Jc:Jc/o,c=2.5*V;let m=!1,u=!1;"center"===h?(m=!0,u=!0):(0,tt.isRTL)()?"left"===h?m=!0:u=!0:"right"===h?u=!0:m=!0,Pe=(0,Ke.createElement)(et.ResizableBox,{style:{display:"block",objectFit:C,aspectRatio:x||w||!E?void 0:E},size:{width:null!=r?r:"auto",height:null!=l?l:"auto"},showHandle:a,minWidth:i,maxWidth:c,minHeight:s,maxHeight:c/o,lockAspectRatio:o,enable:{top:!1,right:m,bottom:!0,left:u},onResizeStart:function(){O(!1)},onResizeStop:(e,a,r)=>{O(!0),n({width:`${r.offsetWidth}px`,height:"auto",aspectRatio:o===t?void 0:String(o)})},resizeRatio:"center"===h?2:1},(0,Ke.createElement)(sp,{href:_},Pe))}else Pe=(0,Ke.createElement)("div",{style:{width:x,height:w,aspectRatio:E}},(0,Ke.createElement)(sp,{href:_},Pe));return d||e?(0,Ke.createElement)(Ke.Fragment,null,!e&&Ce,Pe,(0,Ke.createElement)(Qt,{attributes:t,setAttributes:n,isSelected:a,insertBlocksAfter:o,label:(0,tt.__)("Image caption text"),showToolbarButton:a&&te,disableEditing:Ee})):T?.bindings?Ce:_e}const mp=(e,t)=>t&&!e&&!(0,It.isBlobURL)(t);function up(e,t){var n,a;return"url"in(null!==(n=e?.sizes?.[t])&&void 0!==n?n:{})||"source_url"in(null!==(a=e?.media_details?.sizes?.[t])&&void 0!==a?a:{})}const pp=function({attributes:e,setAttributes:t,isSelected:n,className:a,insertBlocksAfter:o,onReplace:r,context:l,clientId:i}){const{url:s="",alt:c,caption:m,id:u,width:p,height:d,sizeSlug:g,aspectRatio:h,scale:b,align:_,metadata:y}=e,[v,f]=(0,_t.useState)(),k=(0,_t.useRef)();(0,_t.useEffect)((()=>{k.current=c}),[c]);const x=(0,_t.useRef)();(0,_t.useEffect)((()=>{x.current=m}),[m]);const{__unstableMarkNextChangeAsNotPersistent:w}=(0,gt.useDispatch)(nt.store);(0,_t.useEffect)((()=>{["wide","full"].includes(_)&&(w(),t({width:void 0,height:void 0,aspectRatio:void 0,scale:void 0}))}),[_]);const E=(0,_t.useRef)(),{getSettings:C}=(0,gt.useSelect)(nt.store),S=(0,nt.useBlockEditingMode)(),{createErrorNotice:B}=(0,gt.useDispatch)(Pt.store);function N(e){B(e,{type:"snackbar"}),t({src:void 0,id:void 0,url:void 0}),f(void 0)}function T(n){if(!n||!n.url)return void t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0});if((0,It.isBlobURL)(n.url))return void f(n.url);f();const{imageDefaultSize:a}=C();let o="full";g&&up(n,g)?o=g:up(n,a)&&(o=a);let r,l=((e,t)=>{const n=Object.fromEntries(Object.entries(null!=e?e:{}).filter((([e])=>["alt","id","link","caption"].includes(e))));return n.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e.url,n})(n,o);if(x.current&&!l.caption){const{caption:e,...t}=l;l=t}r=n.id&&n.id===u?{url:s}:{sizeSlug:o};let i,c=e.linkDestination;if(!c)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||Xc){case"file":case em:c=em;break;case"post":case tm:c=tm;break;case nm:c=nm;break;case Xc:c=Xc}switch(c){case em:i=n.url;break;case tm:i=n.link}l.href=i,t({...l,...r,linkDestination:c})}function I(e){e!==s&&t({url:e,id:void 0,sizeSlug:C().imageDefaultSize})}let P=((e,t)=>!e&&(0,It.isBlobURL)(t))(u,s);(0,_t.useEffect)((()=>{if(!P)return;const e=(0,It.getBlobByURL)(s);if(e){const{mediaUpload:t}=C();if(!t)return;t({filesList:[e],onFileChange:([e])=>{T(e)},allowedTypes:om,onError:e=>{P=!1,N(e)}})}}),[]),(0,_t.useEffect)((()=>{P?f(s):(0,It.revokeBlobURL)(v)}),[P,s]);const M=mp(u,s)?s:void 0,z=!!s&&(0,Ke.createElement)("img",{alt:(0,tt.__)("Edit image"),title:(0,tt.__)("Edit image"),className:"edit-image-preview",src:s}),R=(0,nt.__experimentalUseBorderProps)(e),A=(0,nt.__experimentalGetShadowClassesAndStyles)(e),H=ut()(a,{"is-transient":v,"is-resized":!!p||!!d,[`size-${g}`]:g,"has-custom-border":!!R.className||R.style&&Object.keys(R.style).length>0}),L=(0,nt.useBlockProps)({ref:E,className:H}),{lockUrlControls:D=!1,lockUrlControlsMessage:F}=(0,gt.useSelect)((e=>{if(!n)return{};const t=Ft(e(Qe.store)).getBlockBindingsSource(y?.bindings?.url?.source);return{lockUrlControls:!!y?.bindings?.url&&(!t||t?.lockAttributesEditing),lockUrlControlsMessage:t?.label?(0,tt.sprintf)((0,tt.__)("Connected to %s"),t.label):(0,tt.__)("Connected to dynamic data")}}),[n]);return(0,Ke.createElement)("figure",{...L},(0,Ke.createElement)(cp,{temporaryURL:v,attributes:e,setAttributes:t,isSingleSelected:n,insertBlocksAfter:o,onReplace:r,onSelectImage:T,onSelectURL:I,onUploadError:N,containerRef:E,context:l,clientId:i,blockEditingMode:S}),(0,Ke.createElement)(nt.MediaPlaceholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:fm}),onSelect:T,onSelectURL:I,onError:N,placeholder:e=>(0,Ke.createElement)(et.Placeholder,{className:ut()("block-editor-media-placeholder",{[R.className]:!!R.className&&!n}),withIllustration:!0,icon:D?Xu:fm,label:(0,tt.__)("Image"),instructions:!D&&(0,tt.__)("Upload an image file, pick one from your media library, or add one with a URL."),style:{aspectRatio:p&&d||!h?void 0:h,width:d&&h?"100%":p,height:p&&h?"100%":d,objectFit:b,...R.style,...A.style}},D?(0,Ke.createElement)("span",{className:"block-bindings-media-placeholder-message"},F):e),accept:"image/*",allowedTypes:om,value:{id:u,src:M},mediaPreview:z,disableMediaButtons:v||s}))};function dp(e,t){const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=e;const{firstElementChild:a}=n;if(a&&"A"===a.nodeName)return a.getAttribute(t)||void 0}const gp={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},hp={from:[{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&!!e.querySelector("img"),schema:({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...gp,a:{attributes:["href","rel","target"],children:gp},figcaption:{children:e}}}}),transform:e=>{const t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),a=""===e.id?void 0:e.id,o=n?n[1]:void 0,r=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),l=r?Number(r[1]):void 0,i=e.querySelector("a"),s=i&&i.href?"custom":void 0,c=i&&i.href?i.href:void 0,m=i&&i.rel?i.rel:void 0,u=i&&i.className?i.className:void 0,p=(0,Qe.getBlockAttributes)("core/image",e.outerHTML,{align:o,id:l,linkDestination:s,href:c,rel:m,linkClass:u,anchor:a});return(0,Qe.createBlock)("core/image",p)}},{type:"files",isMatch(e){if(e.some((e=>0===e.type.indexOf("image/")))&&e.some((e=>0!==e.type.indexOf("image/")))){const{createErrorNotice:e}=(0,gt.dispatch)(Pt.store);e((0,tt.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-transform-invalid-file",type:"snackbar"})}return e.every((e=>0===e.type.indexOf("image/")))},transform(e){const t=e.map((e=>(0,Qe.createBlock)("core/image",{url:(0,It.createBlobURL)(e)})));return t}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:function(e,{shortcode:t}){const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=t.content;let a=n.querySelector("img");for(;a&&a.parentNode&&a.parentNode!==n;)a=a.parentNode;return a&&a.parentNode.removeChild(a),n.innerHTML.trim()}},href:{shortcode:(e,{shortcode:t})=>dp(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>dp(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>dp(t.content,"class")},id:{type:"number",shortcode:({named:{id:e}})=>{if(e)return parseInt(e.replace("attachment_",""),10)}},align:{type:"string",shortcode:({named:{align:e="alignnone"}})=>e.replace("align","")}}}]},bp=hp,_p={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/image",title:"Image",category:"media",usesContext:["allowResize","imageCrop","fixedHeight"],description:"Insert an image to make a visual statement.",keywords:["img","photo","picture"],textdomain:"default",attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src",__experimentalRole:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},lightbox:{type:"object",enabled:{type:"boolean"}},title:{type:"string",source:"attribute",selector:"img",attribute:"title",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",__experimentalRole:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{interactivity:!0,align:["left","center","right","wide","full"],anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},shadow:{__experimentalSkipSerialization:!0}},selectors:{border:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",shadow:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",filter:{duotone:".wp-block-image img, .wp-block-image .components-placeholder"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"},{name:yp}=_p,vp={icon:fm,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,tt.__)("Mont Blanc appears—still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){const n=e?.metadata?.name;if("list-view"===t&&n)return n;if("accessibility"===t){const{caption:t,alt:n,url:a}=e;return a?n?n+(t?". "+t:""):t||"":(0,tt.__)("Empty")}},getEditWrapperProps:e=>({"data-align":e.align}),transforms:bp,edit:pp,save:function({attributes:e}){const{url:t,alt:n,caption:a,align:o,href:r,rel:l,linkClass:i,width:s,height:c,aspectRatio:m,scale:u,id:p,linkTarget:d,sizeSlug:g,title:h}=e,b=l||void 0,_=(0,nt.__experimentalGetBorderClassesAndStyles)(e),y=(0,nt.__experimentalGetShadowClassesAndStyles)(e),v=ut()({alignnone:"none"===o,[`size-${g}`]:g,"is-resized":s||c,"has-custom-border":!!_.className||_.style&&Object.keys(_.style).length>0}),f=ut()(_.className,{[`wp-image-${p}`]:!!p}),k=(0,Ke.createElement)("img",{src:t,alt:n,className:f||void 0,style:{..._.style,...y.style,aspectRatio:m,objectFit:u,width:s,height:c},title:h}),x=(0,Ke.createElement)(Ke.Fragment,null,r?(0,Ke.createElement)("a",{className:i,href:r,target:d,rel:b},k):k,!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{className:(0,nt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a}));return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:v})},x)},deprecated:Ju},fp=()=>Xe({name:yp,metadata:_p,settings:vp}),kp=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.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"}));const xp={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-comments",title:"Latest Comments",category:"widgets",description:"Display a list of your most recent comments.",keywords:["recent comments"],textdomain:"default",attributes:{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,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-latest-comments-editor",style:"wp-block-latest-comments"},{name:wp}=xp,Ep={icon:kp,example:{},edit:function({attributes:e,setAttributes:t}){const{commentsToShow:n,displayAvatar:a,displayDate:o,displayExcerpt:r}=e,l={...e,style:{...e?.style,spacing:void 0}};return(0,Ke.createElement)("div",{...(0,nt.useBlockProps)()},(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display avatar"),checked:a,onChange:()=>t({displayAvatar:!a})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display date"),checked:o,onChange:()=>t({displayDate:!o})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display excerpt"),checked:r,onChange:()=>t({displayExcerpt:!r})}),(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Number of comments"),value:n,onChange:e=>t({commentsToShow:e}),min:1,max:100,required:!0}))),(0,Ke.createElement)(et.Disabled,null,(0,Ke.createElement)(ot(),{block:"core/latest-comments",attributes:l,urlQueryArgs:{_locale:"site"}})))}},Cp=()=>Xe({name:wp,metadata:xp,settings:Ep}),Sp=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})),{attributes:Bp}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{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},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"},Np=[{attributes:{...Bp,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&"string"==typeof e,save:()=>null}],Tp=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.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"})),Ip={per_page:-1,context:"view"},Pp={per_page:-1,has_published_posts:["post"],context:"view"};const Mp={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{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},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"},{name:zp}=Mp,Rp={icon:Sp,example:{},edit:function e({attributes:t,setAttributes:n}){var a;const o=(0,jt.useInstanceId)(e),{postsToShow:r,order:l,orderBy:i,categories:s,selectedAuthor:c,displayFeaturedImage:m,displayPostContentRadio:u,displayPostContent:p,displayPostDate:d,displayAuthor:g,postLayout:h,columns:b,excerptLength:_,featuredImageAlign:y,featuredImageSizeSlug:v,featuredImageSizeWidth:f,featuredImageSizeHeight:k,addLinkToFeaturedImage:x}=t,{imageSizes:w,latestPosts:E,defaultImageWidth:C,defaultImageHeight:S,categoriesList:B,authorList:N}=(0,gt.useSelect)((e=>{var t,n;const{getEntityRecords:a,getUsers:o}=e(dt.store),m=e(nt.store).getSettings(),u=s&&s.length>0?s.map((e=>e.id)):[],p=Object.fromEntries(Object.entries({categories:u,author:c,order:l,orderby:i,per_page:r,_embed:"wp:featuredmedia"}).filter((([,e])=>void 0!==e)));return{defaultImageWidth:null!==(t=m.imageDimensions?.[v]?.width)&&void 0!==t?t:0,defaultImageHeight:null!==(n=m.imageDimensions?.[v]?.height)&&void 0!==n?n:0,imageSizes:m.imageSizes,latestPosts:a("postType","post",p),categoriesList:a("taxonomy","category",Ip),authorList:o(Pp)}}),[v,r,l,i,s,c]),{createWarningNotice:T,removeNotice:I}=(0,gt.useDispatch)(Pt.store);let P;const M=e=>{e.preventDefault(),I(P),P=`block-library/core/latest-posts/redirection-prevented/${o}`,T((0,tt.__)("Links are disabled in the editor."),{id:P,type:"snackbar"})},z=w.filter((({slug:e})=>"full"!==e)).map((({name:e,slug:t})=>({value:t,label:e}))),R=null!==(a=B?.reduce(((e,t)=>({...e,[t.name]:t})),{}))&&void 0!==a?a:{},A=!!E?.length,H=(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Post content")},(0,Ke.createElement)(et.ToggleControl,{label:(0,tt.__)("Post content"),checked:p,onChange:e=>n({displayPostContent:e})}),p&&(0,Ke.createElement)(et.RadioControl,{label:(0,tt.__)("Show:"),selected:u,options:[{label:(0,tt.__)("Excerpt"),value:"excerpt"},{label:(0,tt.__)("Full post"),value:"full_post"}],onChange:e=>n({displayPostContentRadio:e})}),p&&"excerpt"===u&&(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Max number of words"),value:_,onChange:e=>n({excerptLength:e}),min:10,max:100})),(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Post meta")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display author name"),checked:g,onChange:e=>n({displayAuthor:e})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display post date"),checked:d,onChange:e=>n({displayPostDate:e})})),(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Featured image")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display featured image"),checked:m,onChange:e=>n({displayFeaturedImage:e})}),m&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.__experimentalImageSizeControl,{onChange:e=>{const t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),n(t)},slug:v,width:f,height:k,imageWidth:C,imageHeight:S,imageSizeOptions:z,imageSizeHelp:(0,tt.__)("Select the size of the source image."),onChangeImage:e=>n({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}),(0,Ke.createElement)(et.BaseControl,{className:"editor-latest-posts-image-alignment-control"},(0,Ke.createElement)(et.BaseControl.VisualLabel,null,(0,tt.__)("Image alignment")),(0,Ke.createElement)(nt.BlockAlignmentToolbar,{value:y,onChange:e=>n({featuredImageAlign:e}),controls:["left","center","right"],isCollapsed:!1})),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Add link to featured image"),checked:x,onChange:e=>n({addLinkToFeaturedImage:e})}))),(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Sorting and filtering")},(0,Ke.createElement)(et.QueryControls,{order:l,orderBy:i,numberOfItems:r,onOrderChange:e=>n({order:e}),onOrderByChange:e=>n({orderBy:e}),onNumberOfItemsChange:e=>n({postsToShow:e}),categorySuggestions:R,onCategoryChange:e=>{if(e.some((e=>"string"==typeof e&&!R[e])))return;const t=e.map((e=>"string"==typeof e?R[e]:e));if(t.includes(null))return!1;n({categories:t})},selectedCategories:s,onAuthorChange:e=>n({selectedAuthor:""!==e?Number(e):void 0}),authorList:null!=N?N:[],selectedAuthorId:c}),"grid"===h&&(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Columns"),value:b,onChange:e=>n({columns:e}),min:2,max:A?Math.min(6,E.length):6,required:!0}))),L=(0,nt.useBlockProps)({className:ut()({"wp-block-latest-posts__list":!0,"is-grid":"grid"===h,"has-dates":d,"has-author":g,[`columns-${b}`]:"grid"===h})});if(!A)return(0,Ke.createElement)("div",{...L},H,(0,Ke.createElement)(et.Placeholder,{icon:Xn,label:(0,tt.__)("Latest Posts")},Array.isArray(E)?(0,tt.__)("No posts found."):(0,Ke.createElement)(et.Spinner,null)));const D=E.length>r?E.slice(0,r):E,F=[{icon:Tp,title:(0,tt.__)("List view"),onClick:()=>n({postLayout:"list"}),isActive:"list"===h},{icon:Xm,title:(0,tt.__)("Grid view"),onClick:()=>n({postLayout:"grid"}),isActive:"grid"===h}],V=(0,So.getSettings)().formats.date;return(0,Ke.createElement)("div",null,H,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,{controls:F})),(0,Ke.createElement)("ul",{...L},D.map((e=>{const t=e.title.rendered.trim();let n=e.excerpt.rendered;const a=N?.find((t=>t.id===e.author)),o=document.createElement("div");o.innerHTML=n,n=o.textContent||o.innerText||"";const{url:r,alt:l}=function(e,t){var n;const a=e._embedded?.["wp:featuredmedia"]?.[0];return{url:null!==(n=a?.media_details?.sizes?.[t]?.source_url)&&void 0!==n?n:a?.source_url,alt:a?.alt_text}}(e,v),i=ut()({"wp-block-latest-posts__featured-image":!0,[`align${y}`]:!!y}),s=m&&r,c=s&&(0,Ke.createElement)("img",{src:r,alt:l,style:{maxWidth:f,maxHeight:k}}),h=_<n.trim().split(" ").length&&""===e.excerpt.raw?(0,Ke.createElement)(Ke.Fragment,null,n.trim().split(" ",_).join(" "),(0,_t.createInterpolateElement)((0,tt.sprintf)((0,tt.__)("… <a>Read more<span>: %1$s</span></a>"),t||(0,tt.__)("(no title)")),{a:(0,Ke.createElement)("a",{className:"wp-block-latest-posts__read-more",href:e.link,rel:"noopener noreferrer",onClick:M}),span:(0,Ke.createElement)("span",{className:"screen-reader-text"})})):n;return(0,Ke.createElement)("li",{key:e.id},s&&(0,Ke.createElement)("div",{className:i},x?(0,Ke.createElement)("a",{className:"wp-block-latest-posts__post-title",href:e.link,rel:"noreferrer noopener",onClick:M},c):c),(0,Ke.createElement)("a",{href:e.link,rel:"noreferrer noopener",dangerouslySetInnerHTML:t?{__html:t}:void 0,onClick:M},t?null:(0,tt.__)("(no title)")),g&&a&&(0,Ke.createElement)("div",{className:"wp-block-latest-posts__post-author"},(0,tt.sprintf)((0,tt.__)("by %s"),a.name)),d&&e.date_gmt&&(0,Ke.createElement)("time",{dateTime:(0,So.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},(0,So.dateI18n)(V,e.date_gmt)),p&&"excerpt"===u&&(0,Ke.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},h),p&&"full_post"===u&&(0,Ke.createElement)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:e.content.raw.trim()}}))}))))},deprecated:Np},Ap=()=>Xe({name:zp,metadata:Mp,settings:Rp}),Hp={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function Lp(e){const{values:t,start:n,reversed:a,ordered:o,type:r,...l}=e,i=document.createElement(o?"ol":"ul");i.innerHTML=t,n&&i.setAttribute("start",n),a&&i.setAttribute("reversed",!0),r&&i.setAttribute("type",r);const[s]=(0,Qe.rawHandler)({HTML:i.outerHTML});return[{...l,...s.attributes},s.innerBlocks]}const Dp={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,values:n,type:a,reversed:o,start:r}=e,l=t?"ol":"ul";return(0,Ke.createElement)(l,{...nt.useBlockProps.save({type:a,reversed:o,start:r})},(0,Ke.createElement)(nt.RichText.Content,{value:n,multiline:"li"}))},migrate:ln,isEligible:({style:e})=>e?.typography?.fontFamily},Fp={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,values:n,type:a,reversed:o,start:r}=e,l=t?"ol":"ul";return(0,Ke.createElement)(l,{...nt.useBlockProps.save({type:a,reversed:o,start:r})},(0,Ke.createElement)(nt.RichText.Content,{value:n,multiline:"li"}))},migrate:Lp},Vp={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},isEligible:({type:e})=>!!e,save({attributes:e}){const{ordered:t,type:n,reversed:a,start:o}=e,r=t?"ol":"ul";return(0,Ke.createElement)(r,{...nt.useBlockProps.save({type:n,reversed:a,start:o})},(0,Ke.createElement)(nt.InnerBlocks.Content,null))},migrate:function(e){const{type:t}=e;return t&&Hp[t]?{...e,type:Hp[t]}:e}},$p=[Vp,Fp,Dp],Op=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.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"})),Gp=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.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"})),Up=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.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"})),qp=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.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"})),jp=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.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"})),Wp=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.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"})),Zp=window.wp.deprecated;var Qp=n.n(Zp);const Kp=({setAttributes:e,reversed:t,start:n,type:a})=>(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Ordered list settings")},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Start value"),type:"number",onChange:t=>{const n=parseInt(t,10);e({start:isNaN(n)?void 0:n})},value:Number.isInteger(n)?n.toString(10):"",step:"1"}),(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Numbering style"),options:[{label:(0,tt.__)("Numbers"),value:"decimal"},{label:(0,tt.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,tt.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,tt.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,tt.__)("Lowercase Roman numerals"),value:"lower-roman"}],value:a,onChange:t=>e({type:t})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Reverse list numbering"),checked:t||!1,onChange:t=>{e({reversed:t||void 0})}})));const Yp=(0,_t.forwardRef)((function(e,t){const{ordered:n,...a}=e,o=n?"ol":"ul";return(0,Ke.createElement)(o,{ref:t,...a})})),Jp=[["core/list-item"]];function Xp({clientId:e}){const t=function(e){const{replaceBlocks:t,selectionChange:n}=(0,gt.useDispatch)(nt.store),{getBlockRootClientId:a,getBlockAttributes:o,getBlock:r}=(0,gt.useSelect)(nt.store);return(0,_t.useCallback)((()=>{const l=a(e),i=o(l),s=(0,Qe.createBlock)("core/list-item",i),{innerBlocks:c}=r(e);t([l],[s,...c]),n(c[c.length-1].clientId)}),[e])}(e),n=(0,gt.useSelect)((t=>{const{getBlockRootClientId:n,getBlockName:a}=t(nt.store);return"core/list-item"===a(n(e))}),[e]);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToolbarButton,{icon:(0,tt.isRTL)()?Op:Gp,title:(0,tt.__)("Outdent"),describedBy:(0,tt.__)("Outdent list item"),disabled:!n,onClick:t}))}function ed({phrasingContentSchema:e}){const t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach((e=>{t[e].children={li:{children:t}}})),t}function td(e){return e.flatMap((({name:e,attributes:t,innerBlocks:n=[]})=>"core/list-item"===e?[t.content,...td(n)]:td(n)))}const nd={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map((({content:e})=>(0,Qe.createBlock)("core/list-item",{content:e})));else if(1===e.length){const n=(0,Rn.create)({html:e[0].content});t=(0,Rn.split)(n,"\n").map((e=>(0,Qe.createBlock)("core/list-item",{content:(0,Rn.toHTMLString)({value:e})})))}return(0,Qe.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:ed(e).ol,ul:ed(e).ul}),transform:function e(t){const n=t.getAttribute("type"),a={ordered:"OL"===t.tagName,anchor:""===t.id?void 0:t.id,start:t.getAttribute("start")?parseInt(t.getAttribute("start"),10):void 0,reversed:!!t.hasAttribute("reversed")||void 0,type:n&&Hp[n]?Hp[n]:void 0},o=Array.from(t.children).map((t=>{const n=Array.from(t.childNodes).filter((e=>e.nodeType!==e.TEXT_NODE||0!==e.textContent.trim().length));n.reverse();const[a,...o]=n;if(!("UL"===a?.tagName||"OL"===a?.tagName))return(0,Qe.createBlock)("core/list-item",{content:t.innerHTML});const r=o.map((e=>e.nodeType===e.TEXT_NODE?e.textContent:e.outerHTML));r.reverse();const l={content:r.join("").trim()},i=[e(a)];return(0,Qe.createBlock)("core/list-item",l,i)}));return(0,Qe.createBlock)("core/list",a,o)}},...["*","-"].map((e=>({type:"prefix",prefix:e,transform:e=>(0,Qe.createBlock)("core/list",{},[(0,Qe.createBlock)("core/list-item",{content:e})])}))),...["1.","1)"].map((e=>({type:"prefix",prefix:e,transform:e=>(0,Qe.createBlock)("core/list",{ordered:!0},[(0,Qe.createBlock)("core/list-item",{content:e})])})))],to:[...["core/paragraph","core/heading"].map((e=>({type:"block",blocks:[e],transform:(t,n)=>td(n).map((t=>(0,Qe.createBlock)(e,{content:t})))})))]},ad=nd,od={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list",title:"List",category:"text",allowedBlocks:["core/list-item"],description:"Create a bulleted or numbered list.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalOnMerge:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-list-editor",style:"wp-block-list"},{name:rd}=od,ld={icon:Tp,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,tt.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,tt.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,tt.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,tt.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,tt.__)("The Queen of Hearts.")}}]},transforms:ad,edit:function({attributes:e,setAttributes:t,clientId:n,style:a}){const{ordered:o,type:r,reversed:l,start:i}=e,s=(0,nt.useBlockProps)({style:{..._t.Platform.isNative&&a,listStyleType:o&&"decimal"!==r?r:void 0}}),c=(0,nt.useInnerBlocksProps)(s,{template:Jp,templateLock:!1,templateInsertUpdatesSelection:!0,..._t.Platform.isNative&&{marginVertical:8,marginHorizontal:8,renderAppender:!1},__experimentalCaptureToolbars:!0});!function(e,t){const n=(0,gt.useRegistry)(),{updateBlockAttributes:a,replaceInnerBlocks:o}=(0,gt.useDispatch)(nt.store);(0,_t.useEffect)((()=>{if(!e.values)return;const[r,l]=Lp(e);Qp()("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),n.batch((()=>{a(t,r),o(t,l)}))}),[e.values])}(e,n);const m=(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(et.ToolbarButton,{icon:(0,tt.isRTL)()?Up:qp,title:(0,tt.__)("Unordered"),describedBy:(0,tt.__)("Convert to unordered list"),isActive:!1===o,onClick:()=>{t({ordered:!1})}}),(0,Ke.createElement)(et.ToolbarButton,{icon:(0,tt.isRTL)()?jp:Wp,title:(0,tt.__)("Ordered"),describedBy:(0,tt.__)("Convert to ordered list"),isActive:!0===o,onClick:()=>{t({ordered:!0})}}),(0,Ke.createElement)(Xp,{clientId:n}));return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(Yp,{ordered:o,reversed:l,start:i,...c}),m,o&&(0,Ke.createElement)(Kp,{setAttributes:t,reversed:l,start:i,type:r}))},save:function({attributes:e}){const{ordered:t,type:n,reversed:a,start:o}=e,r=t?"ol":"ul";return(0,Ke.createElement)(r,{...nt.useBlockProps.save({reversed:a,start:o,style:{listStyleType:t&&"decimal"!==n?n:void 0}})},(0,Ke.createElement)(nt.InnerBlocks.Content,null))},deprecated:$p},id=()=>Xe({name:rd,metadata:od,settings:ld}),sd=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),cd=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.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"})),md=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.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"}));function ud(e){const{replaceBlocks:t,selectionChange:n,multiSelect:a}=(0,gt.useDispatch)(nt.store),{getBlock:o,getPreviousBlockClientId:r,getSelectionStart:l,getSelectionEnd:i,hasMultiSelection:s,getMultiSelectedBlockClientIds:c}=(0,gt.useSelect)(nt.store);return(0,_t.useCallback)((()=>{const m=s(),u=m?c():[e],p=u.map((e=>(0,Qe.cloneBlock)(o(e)))),d=r(e),g=(0,Qe.cloneBlock)(o(d));g.innerBlocks?.length||(g.innerBlocks=[(0,Qe.createBlock)("core/list")]),g.innerBlocks[g.innerBlocks.length-1].innerBlocks.push(...p);const h=l(),b=i();t([d,...u],[g]),m?a(p[0].clientId,p[p.length-1].clientId):n(p[0].clientId,b.attributeKey,b.clientId===h.clientId?h.offset:b.offset,b.offset)}),[e])}function pd(){const e=(0,gt.useRegistry)(),{moveBlocksToPosition:t,removeBlock:n,insertBlock:a,updateBlockListSettings:o}=(0,gt.useDispatch)(nt.store),{getBlockRootClientId:r,getBlockName:l,getBlockOrder:i,getBlockIndex:s,getSelectedBlockClientIds:c,getBlock:m,getBlockListSettings:u}=(0,gt.useSelect)(nt.store);return(0,_t.useCallback)(((p=c())=>{if(Array.isArray(p)||(p=[p]),!p.length)return;const d=p[0];if("core/list-item"!==l(d))return;const g=function(e){const t=r(e),n=r(t);if(n&&"core/list-item"===l(n))return n}(d);if(!g)return;const h=r(d),b=p[p.length-1],_=i(h).slice(s(b)+1);e.batch((()=>{if(_.length){let e=i(d)[0];if(!e){const t=(0,Qe.cloneBlock)(m(h),{},[]);e=t.clientId,a(t,0,d,!1),o(e,u(h))}t(_,h,e)}if(t(p,h,r(g),s(g)+1),!i(h).length){n(h,!1)}}))}),[])}function dd(e,t){const n=(0,gt.useRegistry)(),{getPreviousBlockClientId:a,getNextBlockClientId:o,getBlockOrder:r,getBlockRootClientId:l,getBlockName:i}=(0,gt.useSelect)(nt.store),{mergeBlocks:s,moveBlocksToPosition:c}=(0,gt.useDispatch)(nt.store),m=pd();function u(e){const t=r(e);return t.length?u(t[t.length-1]):e}function p(e){const t=l(e),n=l(t);if(n&&"core/list-item"===i(n))return n}function d(e){const t=o(e);if(t)return t;const n=p(e);return n?d(n):void 0}function g(e){const t=r(e);return t.length?r(t[0])[0]:d(e)}return o=>{function i(e,t){n.batch((()=>{const[n]=r(t);n&&c(r(n),n,l(e)),s(e,t)}))}if(o){const n=g(e);if(!n)return void t(o);p(n)?m(n):i(e,n)}else{const n=a(e);if(p(e))m(e);else if(n){i(u(n),e)}else t(o)}}}function gd(e){const t=(0,Qe.switchToBlockType)(e,"core/list");if(t)return t;const n=(0,Qe.switchToBlockType)(e,"core/paragraph");return n?(0,Qe.switchToBlockType)(n,"core/list"):null}function hd({clientId:e}){const t=ud(e),n=pd(),{canIndent:a,canOutdent:o}=(0,gt.useSelect)((t=>{const{getBlockIndex:n,getBlockRootClientId:a,getBlockName:o}=t(nt.store);return{canIndent:n(e)>0,canOutdent:"core/list-item"===o(a(a(e)))}}),[e]);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToolbarButton,{icon:(0,tt.isRTL)()?Op:Gp,title:(0,tt.__)("Outdent"),describedBy:(0,tt.__)("Outdent list item"),disabled:!o,onClick:()=>n()}),(0,Ke.createElement)(et.ToolbarButton,{icon:(0,tt.isRTL)()?cd:md,title:(0,tt.__)("Indent"),describedBy:(0,tt.__)("Indent list item"),isDisabled:!a,onClick:()=>t()}))}const bd={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,Qe.createBlock)("core/paragraph",e),...t.map((e=>(0,Qe.cloneBlock)(e)))]}]},_d=bd,yd={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List item",category:"text",parent:["core/list"],allowedBlocks:["core/list"],description:"Create a list item.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"li",__experimentalRole:"content"}},supports:{className:!1,__experimentalSelector:"li",spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:vd}=yd,fd={icon:sd,edit:function({attributes:e,setAttributes:t,onReplace:n,clientId:a,mergeBlocks:o}){const{placeholder:r,content:l}=e,i=(0,nt.useBlockProps)(),s=(0,nt.useInnerBlocksProps)(i,{renderAppender:!1,__unstableDisableDropZone:!0}),c=function(e){const{replaceBlocks:t,selectionChange:n}=(0,gt.useDispatch)(nt.store),{getBlock:a,getBlockRootClientId:o,getBlockIndex:r,getBlockName:l}=(0,gt.useSelect)(nt.store),i=(0,_t.useRef)(e);i.current=e;const s=pd();return(0,jt.useRefEffect)((e=>{function c(e){if(e.defaultPrevented||e.keyCode!==fn.ENTER)return;const{content:c,clientId:m}=i.current;if(c.length)return;if(e.preventDefault(),"core/list-item"===l(o(o(i.current.clientId))))return void s();const u=a(o(m)),p=r(m),d=(0,Qe.cloneBlock)({...u,innerBlocks:u.innerBlocks.slice(0,p)}),g=(0,Qe.createBlock)((0,Qe.getDefaultBlockName)()),h=[...u.innerBlocks[p].innerBlocks[0]?.innerBlocks||[],...u.innerBlocks.slice(p+1)],b=h.length?[(0,Qe.cloneBlock)({...u,innerBlocks:h})]:[];t(u.clientId,[d,g,...b],1),n(g.clientId)}return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}),[])}({content:l,clientId:a}),m=function(e){const{getSelectionStart:t,getSelectionEnd:n,getBlockIndex:a}=(0,gt.useSelect)(nt.store),o=ud(e);return(0,jt.useRefEffect)((r=>{function l(r){const{keyCode:l,shiftKey:i,altKey:s,metaKey:c,ctrlKey:m}=r;if(r.defaultPrevented||l!==fn.SPACE||i||s||c||m)return;if(0===a(e))return;const u=t(),p=n();0===u.offset&&0===p.offset&&(r.preventDefault(),o())}return r.addEventListener("keydown",l),()=>{r.removeEventListener("keydown",l)}}),[e,o])}(a),u=function(e){const t=(0,_t.useRef)(!1),{getBlock:n}=(0,gt.useSelect)(nt.store);return(0,_t.useCallback)((a=>{const o=n(e);return t.current?(0,Qe.cloneBlock)(o,{content:a}):(t.current=!0,(0,Qe.createBlock)(o.name,{...o.attributes,content:a}))}),[e,n])}(a),p=dd(a,o);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("li",{...s},(0,Ke.createElement)(nt.RichText,{ref:(0,jt.useMergeRefs)([c,m]),identifier:"content",tagName:"div",onChange:e=>t({content:e}),value:l,"aria-label":(0,tt.__)("List text"),placeholder:r||(0,tt.__)("List"),onSplit:u,onMerge:p,onReplace:n?(e,...t)=>{n(function(e){const t=[];for(let n of e)if("core/list-item"===n.name)t.push(n);else if("core/list"===n.name)t.push(...n.innerBlocks);else if(n=gd(n))for(const{innerBlocks:e}of n)t.push(...e);return t}(e),...t)}:void 0}),s.children),(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(hd,{clientId:a})))},save:function({attributes:e}){return(0,Ke.createElement)("li",{...nt.useBlockProps.save()},(0,Ke.createElement)(nt.RichText.Content,{value:e.content}),(0,Ke.createElement)(nt.InnerBlocks.Content,null))},merge:(e,t)=>({...e,content:e.content+t.content}),transforms:_d,[Ft(nt.privateApis).requiresWrapperOnCopy]:!0},kd=()=>Xe({name:vd,metadata:yd,settings:fd}),xd=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"}));const wd={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/loginout",title:"Login/out",category:"theme",description:"Show login & logout links.",keywords:["login","logout","form"],textdomain:"default",attributes:{displayLoginAsForm:{type:"boolean",default:!1},redirectToCurrent:{type:"boolean",default:!0}},supports:{className:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Ed}=wd,Cd={icon:xd,edit:function({attributes:e,setAttributes:t}){const{displayLoginAsForm:n,redirectToCurrent:a}=e;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display login as form"),checked:n,onChange:()=>t({displayLoginAsForm:!n})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Redirect to current URL"),checked:a,onChange:()=>t({redirectToCurrent:!a})}))),(0,Ke.createElement)("div",{...(0,nt.useBlockProps)({className:"logged-in"})},(0,Ke.createElement)("a",{href:"#login-pseudo-link"},(0,tt.__)("Log out"))))}},Sd=()=>Xe({name:Ed,metadata:wd,settings:Cd}),Bd=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})),Nd="full",Td="media",Id="attachment",Pd=[["core/paragraph",{placeholder:(0,tt._x)("Content…","content placeholder")}]],Md=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${100*t.x}% ${100*t.y}%`:"50% 50%"}:{},zd=50,Rd=()=>{},Ad=e=>{if(!e.customBackgroundColor)return e;const t={color:{background:e.customBackgroundColor}},{customBackgroundColor:n,...a}=e;return{...a,style:t}},Hd=e=>e.align?e:{...e,align:"wide"},Ld={align:{type:"string",default:"wide"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},Dd={...Ld,isStackedOnMobile:{type:"boolean",default:!0},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},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"},mediaSizeSlug:{type:"string"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},Fd={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},Vd={attributes:{...Dd,mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",__experimentalRole:"content"},mediaId:{type:"number",__experimentalRole:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",__experimentalRole:"content"},mediaType:{type:"string",__experimentalRole:"content"}},supports:{...Fd,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:a,mediaType:o,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:m,linkClass:u,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Nd,b=g||void 0,_=ut()({[`wp-image-${i}`]:i&&"image"===o,[`size-${h}`]:i&&"image"===o});let y=(0,Ke.createElement)("img",{src:r,alt:n,className:_||null});p&&(y=(0,Ke.createElement)("a",{className:u,href:p,target:d,rel:b},y));const v={image:()=>y,video:()=>(0,Ke.createElement)("video",{controls:!0,src:r})},f=ut()({"has-media-on-the-right":"right"===a,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?((e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(100*t.x)}% ${Math.round(100*t.y)}%`:"50% 50%"}:{})(r,m):{};let x;l!==zd&&(x="right"===a?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return"right"===a?(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:f,style:w})},(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Ke.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[o]||Rd)())):(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:f,style:w})},(0,Ke.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[o]||Rd)()),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},migrate:Hd,isEligible(e,t,{block:n}){const{attributes:a}=n;return void 0===e.align&&!!a.className?.includes("alignwide")}},$d={attributes:Dd,supports:Fd,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:a,mediaType:o,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:m,linkClass:u,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Nd,b=g||void 0,_=ut()({[`wp-image-${i}`]:i&&"image"===o,[`size-${h}`]:i&&"image"===o});let y=(0,Ke.createElement)("img",{src:r,alt:n,className:_||null});p&&(y=(0,Ke.createElement)("a",{className:u,href:p,target:d,rel:b},y));const v={image:()=>y,video:()=>(0,Ke.createElement)("video",{controls:!0,src:r})},f=ut()({"has-media-on-the-right":"right"===a,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?Md(r,m):{};let x;l!==zd&&(x="right"===a?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return"right"===a?(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:f,style:w})},(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Ke.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[o]||Rd)())):(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:f,style:w})},(0,Ke.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[o]||Rd)()),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},migrate:Hd},Od={attributes:Dd,supports:Fd,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:a,mediaType:o,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:m,linkClass:u,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Nd,b=g||void 0,_=ut()({[`wp-image-${i}`]:i&&"image"===o,[`size-${h}`]:i&&"image"===o});let y=(0,Ke.createElement)("img",{src:r,alt:n,className:_||null});p&&(y=(0,Ke.createElement)("a",{className:u,href:p,target:d,rel:b},y));const v={image:()=>y,video:()=>(0,Ke.createElement)("video",{controls:!0,src:r})},f=ut()({"has-media-on-the-right":"right"===a,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?Md(r,m):{};let x;l!==zd&&(x="right"===a?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:f,style:w})},(0,Ke.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[o]||Rd)()),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},migrate:Hd},Gd={attributes:{...Ld,isStackedOnMobile:{type:"boolean",default:!0},backgroundColor:{type:"string"},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"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:(0,jt.compose)(Ad,Hd),save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:a,mediaAlt:o,mediaPosition:r,mediaType:l,mediaUrl:i,mediaWidth:s,mediaId:c,verticalAlignment:m,imageFill:u,focalPoint:p,linkClass:d,href:g,linkTarget:h,rel:b}=e,_=b||void 0;let y=(0,Ke.createElement)("img",{src:i,alt:o,className:c&&"image"===l?`wp-image-${c}`:null});g&&(y=(0,Ke.createElement)("a",{className:d,href:g,target:h,rel:_},y));const v={image:()=>y,video:()=>(0,Ke.createElement)("video",{controls:!0,src:i})},f=(0,nt.getColorClassName)("background-color",t),k=ut()({"has-media-on-the-right":"right"===r,"has-background":f||n,[f]:f,"is-stacked-on-mobile":a,[`is-vertically-aligned-${m}`]:m,"is-image-fill":u}),x=u?Md(i,p):{};let w;s!==zd&&(w="right"===r?`auto ${s}%`:`${s}% auto`);const E={backgroundColor:f?void 0:n,gridTemplateColumns:w};return(0,Ke.createElement)("div",{className:k,style:E},(0,Ke.createElement)("figure",{className:"wp-block-media-text__media",style:x},(v[l]||Rd)()),(0,Ke.createElement)("div",{className:"wp-block-media-text__content"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))}},Ud={attributes:{...Ld,backgroundColor:{type:"string"},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:(0,jt.compose)(Ad,Hd),save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:a,mediaAlt:o,mediaPosition:r,mediaType:l,mediaUrl:i,mediaWidth:s,mediaId:c,verticalAlignment:m,imageFill:u,focalPoint:p}=e,d={image:()=>(0,Ke.createElement)("img",{src:i,alt:o,className:c&&"image"===l?`wp-image-${c}`:null}),video:()=>(0,Ke.createElement)("video",{controls:!0,src:i})},g=(0,nt.getColorClassName)("background-color",t),h=ut()({"has-media-on-the-right":"right"===r,[g]:g,"is-stacked-on-mobile":a,[`is-vertically-aligned-${m}`]:m,"is-image-fill":u}),b=u?Md(i,p):{};let _;s!==zd&&(_="right"===r?`auto ${s}%`:`${s}% auto`);const y={backgroundColor:g?void 0:n,gridTemplateColumns:_};return(0,Ke.createElement)("div",{className:h,style:y},(0,Ke.createElement)("figure",{className:"wp-block-media-text__media",style:b},(d[l]||Rd)()),(0,Ke.createElement)("div",{className:"wp-block-media-text__content"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))}},qd={attributes:{...Ld,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:Hd,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:a,mediaAlt:o,mediaPosition:r,mediaType:l,mediaUrl:i,mediaWidth:s}=e,c={image:()=>(0,Ke.createElement)("img",{src:i,alt:o}),video:()=>(0,Ke.createElement)("video",{controls:!0,src:i})},m=(0,nt.getColorClassName)("background-color",t),u=ut()({"has-media-on-the-right":"right"===r,[m]:m,"is-stacked-on-mobile":a});let p;s!==zd&&(p="right"===r?`auto ${s}%`:`${s}% auto`);const d={backgroundColor:m?void 0:n,gridTemplateColumns:p};return(0,Ke.createElement)("div",{className:u,style:d},(0,Ke.createElement)("figure",{className:"wp-block-media-text__media"},(c[l]||Rd)()),(0,Ke.createElement)("div",{className:"wp-block-media-text__content"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))}},jd=[Vd,$d,Od,Gd,Ud,qd],Wd=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})),Zd=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})),Qd=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})),Kd=["image","video"],Yd=()=>{};function Jd(e,t){return e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(100*t.x)}% ${Math.round(100*t.y)}%`:"50% 50%"}:{}}const Xd=(0,_t.forwardRef)((({isSelected:e,isStackedOnMobile:t,...n},a)=>{const o=(0,jt.useViewportMatch)("small","<");return(0,Ke.createElement)(et.ResizableBox,{ref:a,showHandle:e&&(!o||!t),...n})}));function eg({mediaId:e,mediaUrl:t,onSelectMedia:n}){return(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(nt.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:Kd,accept:"image/*,video/*",onSelect:n}))}function tg({className:e,mediaUrl:t,onSelectMedia:n}){const{createErrorNotice:a}=(0,gt.useDispatch)(Pt.store);return(0,Ke.createElement)(nt.MediaPlaceholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:Qd}),labels:{title:(0,tt.__)("Media area")},className:e,onSelect:n,accept:"image/*,video/*",allowedTypes:Kd,onError:e=>{a(e,{type:"snackbar"})},disableMediaButtons:t})}const ng=(0,_t.forwardRef)((function(e,t){const{className:n,commitWidthChange:a,focalPoint:o,imageFill:r,isSelected:l,isStackedOnMobile:i,mediaAlt:s,mediaId:c,mediaPosition:m,mediaType:u,mediaUrl:p,mediaWidth:d,onSelectMedia:g,onWidthChange:h,enableResize:b}=e,_=!c&&(0,It.isBlobURL)(p),{toggleSelection:y}=(0,gt.useDispatch)(nt.store);if(p){const v=()=>{y(!1)},f=(e,t,n)=>{h(parseInt(n.style.width))},k=(e,t,n)=>{y(!0),a(parseInt(n.style.width))},x={right:b&&"left"===m,left:b&&"right"===m},w="image"===u&&r?Jd(p,o):{},E={image:()=>(0,Ke.createElement)("img",{src:p,alt:s}),video:()=>(0,Ke.createElement)("video",{controls:!0,src:p})};return(0,Ke.createElement)(Xd,{as:"figure",className:ut()(n,"editor-media-container__resizer",{"is-transient":_}),style:w,size:{width:d+"%"},minWidth:"10%",maxWidth:"100%",enable:x,onResizeStart:v,onResize:f,onResizeStop:k,axis:"x",isSelected:l,isStackedOnMobile:i,ref:t},(0,Ke.createElement)(eg,{onSelectMedia:g,mediaUrl:p,mediaId:c}),(E[u]||Yd)(),_&&(0,Ke.createElement)(et.Spinner,null),(0,Ke.createElement)(tg,{...e}))}return(0,Ke.createElement)(tg,{...e})})),ag=e=>Math.max(15,Math.min(e,85));function og(e,t){return e?.media_details?.sizes?.[t]?.source_url}const rg=function({attributes:e,isSelected:t,setAttributes:n}){const{focalPoint:a,href:o,imageFill:r,isStackedOnMobile:l,linkClass:i,linkDestination:s,linkTarget:c,mediaAlt:m,mediaId:u,mediaPosition:p,mediaType:d,mediaUrl:g,mediaWidth:h,rel:b,verticalAlignment:_,allowedBlocks:y}=e,v=e.mediaSizeSlug||Nd,{imageSizes:f,image:k}=(0,gt.useSelect)((e=>{const{getSettings:n}=e(nt.store);return{image:u&&t?e(dt.store).getMedia(u,{context:"view"}):null,imageSizes:n()?.imageSizes}}),[t,u]),x=(0,_t.useRef)(),w=e=>{const{style:t}=x.current.resizable,{x:n,y:a}=e;t.backgroundPosition=`${100*n}% ${100*a}%`},[E,C]=(0,_t.useState)(null),S=function({attributes:{linkDestination:e,href:t},setAttributes:n}){return a=>{if(!a||!a.url)return void n({mediaAlt:void 0,mediaId:void 0,mediaType:void 0,mediaUrl:void 0,mediaLink:void 0,href:void 0,focalPoint:void 0});let o,r;(0,It.isBlobURL)(a.url)&&(a.type=(0,It.getBlobTypeByURL)(a.url)),o=a.media_type?"image"===a.media_type?"image":"video":a.type,"image"===o&&(r=a.sizes?.large?.url||a.media_details?.sizes?.large?.source_url);let l=t;e===Td&&(l=a.url),e===Id&&(l=a.link),n({mediaAlt:a.alt,mediaId:a.id,mediaType:o,mediaUrl:r||a.url,mediaLink:a.link||void 0,href:l,focalPoint:void 0})}}({attributes:e,setAttributes:n}),B=e=>{n({mediaWidth:ag(e)}),C(null)},N=ut()({"has-media-on-the-right":"right"===p,"is-selected":t,"is-stacked-on-mobile":l,[`is-vertically-aligned-${_}`]:_,"is-image-fill":r}),T=`${E||h}%`,I="right"===p?`1fr ${T}`:`${T} 1fr`,P={gridTemplateColumns:I,msGridColumns:I},M=f.filter((({slug:e})=>og(k,e))).map((({name:e,slug:t})=>({value:t,label:e}))),z=(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Media width"),value:E||h,onChange:B,min:15,max:85}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Stack on mobile"),checked:l,onChange:()=>n({isStackedOnMobile:!l})}),"image"===d&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Crop image to fill"),checked:!!r,onChange:()=>n({imageFill:!r})}),r&&g&&"image"===d&&(0,Ke.createElement)(et.FocalPointPicker,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Focal point"),url:g,value:a,onChange:e=>n({focalPoint:e}),onDragStart:w,onDrag:w}),"image"===d&&(0,Ke.createElement)(et.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Alternative text"),value:m,onChange:e=>{n({mediaAlt:e})},help:(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,tt.__)("Describe the purpose of the image.")),(0,Ke.createElement)("br",null),(0,tt.__)("Leave empty if decorative."))}),"image"===d&&(0,Ke.createElement)(nt.__experimentalImageSizeControl,{onChangeImage:e=>{const t=og(k,e);if(!t)return null;n({mediaUrl:t,mediaSizeSlug:e})},slug:v,imageSizeOptions:M,isResizable:!1,imageSizeHelp:(0,tt.__)("Select the size of the source image.")})),R=(0,nt.useBlockProps)({className:N,style:P}),A=(0,nt.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:Pd,allowedBlocks:y}),H=(0,nt.useBlockEditingMode)();return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,z),(0,Ke.createElement)(nt.BlockControls,{group:"block"},"default"===H&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockVerticalAlignmentControl,{onChange:e=>{n({verticalAlignment:e})},value:_}),(0,Ke.createElement)(et.ToolbarButton,{icon:Wd,title:(0,tt.__)("Show media on left"),isActive:"left"===p,onClick:()=>n({mediaPosition:"left"})}),(0,Ke.createElement)(et.ToolbarButton,{icon:Zd,title:(0,tt.__)("Show media on right"),isActive:"right"===p,onClick:()=>n({mediaPosition:"right"})})),"image"===d&&(0,Ke.createElement)(nt.__experimentalImageURLInputUI,{url:o||"",onChangeUrl:e=>{n(e)},linkDestination:s,mediaType:d,mediaUrl:k&&k.source_url,mediaLink:k&&k.link,linkTarget:c,linkClass:i,rel:b})),(0,Ke.createElement)("div",{...R},"right"===p&&(0,Ke.createElement)("div",{...A}),(0,Ke.createElement)(ng,{className:"wp-block-media-text__media",onSelectMedia:S,onWidthChange:e=>{C(ag(e))},commitWidthChange:B,ref:x,enableResize:"default"===H,focalPoint:a,imageFill:r,isSelected:t,isStackedOnMobile:l,mediaAlt:m,mediaId:u,mediaPosition:p,mediaType:d,mediaUrl:g,mediaWidth:h}),"right"!==p&&(0,Ke.createElement)("div",{...A})))},lg=()=>{};const ig={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:n,anchor:a})=>(0,Qe.createBlock)("core/media-text",{mediaAlt:e,mediaId:n,mediaUrl:t,mediaType:"image",anchor:a})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:n})=>(0,Qe.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:n})},{type:"block",blocks:["core/cover"],transform:({align:e,alt:t,anchor:n,backgroundType:a,customGradient:o,customOverlayColor:r,gradient:l,id:i,overlayColor:s,style:c,textColor:m,url:u},p)=>{let d={};return o?d={style:{color:{gradient:o}}}:r&&(d={style:{color:{background:r}}}),c?.color?.text&&(d.style={color:{...d.style?.color,text:c.color.text}}),(0,Qe.createBlock)("core/media-text",{align:e,anchor:n,backgroundColor:s,gradient:l,mediaAlt:t,mediaId:i,mediaType:a,mediaUrl:u,textColor:m,...d},p)}}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"image"===e,transform:({mediaAlt:e,mediaId:t,mediaUrl:n,anchor:a})=>(0,Qe.createBlock)("core/image",{alt:e,id:t,url:n,anchor:a})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"video"===e,transform:({mediaId:e,mediaUrl:t,anchor:n})=>(0,Qe.createBlock)("core/video",{id:e,src:t,anchor:n})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:n,focalPoint:a,gradient:o,mediaAlt:r,mediaId:l,mediaType:i,mediaUrl:s,style:c,textColor:m},u)=>{const p={};c?.color?.gradient?p.customGradient=c.color.gradient:c?.color?.background&&(p.customOverlayColor=c.color.background),c?.color?.text&&(p.style={color:{text:c.color.text}});const d={align:e,alt:r,anchor:t,backgroundType:i,dimRatio:s?50:100,focalPoint:a,gradient:o,id:l,overlayColor:n,textColor:m,url:s,...p};return(0,Qe.createBlock)("core/cover",d,u)}}]},sg=ig,cg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/media-text",title:"Media & Text",category:"media",description:"Set media and words side-by-side for a richer layout.",keywords:["image","video"],textdomain:"default",attributes:{align:{type:"string",default:"none"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",__experimentalRole:"content"},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number",__experimentalRole:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",__experimentalRole:"content"},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",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaType:{type:"string",__experimentalRole:"content"},mediaWidth:{type:"number",default:50},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"},allowedBlocks:{type:"array"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-media-text-editor",style:"wp-block-media-text"},{name:mg}=cg,ug={icon:Bd,example:{viewportWidth:601,attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,tt.__)("— Kobayashi Issa (一茶)")}}]},transforms:sg,edit:rg,save:function({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:a,mediaType:o,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:m,linkClass:u,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Nd,b=g||void 0,_=ut()({[`wp-image-${i}`]:i&&"image"===o,[`size-${h}`]:i&&"image"===o});let y=(0,Ke.createElement)("img",{src:r,alt:n,className:_||null});p&&(y=(0,Ke.createElement)("a",{className:u,href:p,target:d,rel:b},y));const v={image:()=>y,video:()=>(0,Ke.createElement)("video",{controls:!0,src:r})},f=ut()({"has-media-on-the-right":"right"===a,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?Jd(r,m):{};let x;50!==l&&(x="right"===a?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return"right"===a?(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:f,style:w})},(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Ke.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[o]||lg)())):(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:f,style:w})},(0,Ke.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[o]||lg)()),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},deprecated:jd},pg=()=>Xe({name:mg,metadata:cg,settings:ug});const dg=(0,gt.withDispatch)(((e,{clientId:t,attributes:n})=>{const{replaceBlock:a}=e(nt.store);return{convertToHTML(){a(t,(0,Qe.createBlock)("core/html",{content:n.originalUndelimitedContent}))}}}))((function({attributes:e,convertToHTML:t,clientId:n}){const{originalName:a,originalUndelimitedContent:o}=e,r=!!o,{hasFreeformBlock:l,hasHTMLBlock:i}=(0,gt.useSelect)((e=>{const{canInsertBlockType:t,getBlockRootClientId:a}=e(nt.store);return{hasFreeformBlock:t("core/freeform",a(n)),hasHTMLBlock:t("core/html",a(n))}}),[n]),s=[];let c;const m=(0,Ke.createElement)(et.Button,{key:"convert",onClick:t,variant:"primary"},(0,tt.__)("Keep as HTML"));return!r||l||a?r&&i?(c=(0,tt.sprintf)((0,tt.__)('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.'),a),s.push(m)):c=(0,tt.sprintf)((0,tt.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),a):i?(c=(0,tt.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely. Alternatively, you can refresh the page to use the Classic block."),s.push(m)):c=(0,tt.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, or remove it entirely. Alternatively, you can refresh the page to use the Classic block."),(0,Ke.createElement)("div",{...(0,nt.useBlockProps)({className:"has-warning"})},(0,Ke.createElement)(nt.Warning,{actions:s},c),(0,Ke.createElement)(_t.RawHTML,null,(0,ac.safeHTML)(o)))})),gg=dg;const hg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/missing",title:"Unsupported",category:"text",description:"Your site doesn’t include support for this block.",textdomain:"default",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1,interactivity:{clientNavigation:!0}}},{name:bg}=hg,_g={name:bg,__experimentalLabel(e,{context:t}){if("accessibility"===t){const{originalName:t}=e,n=t?(0,Qe.getBlockType)(t):void 0;return n?n.settings.title||t:""}},edit:gg,save:function({attributes:e}){return(0,Ke.createElement)(_t.RawHTML,null,e.originalContent)}},yg=()=>Xe({name:bg,metadata:hg,settings:_g}),vg=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})),fg=(0,tt.__)("Read more");const kg={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/more"===e.dataset.block,transform(e){const{customText:t,noTeaser:n}=e.dataset,a={};return t&&(a.customText=t),""===n&&(a.noTeaser=!0),(0,Qe.createBlock)("core/more",a)}}]},xg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/more",title:"More",category:"design",description:"Content before this block will be shown in the excerpt on your archives page.",keywords:["read more"],textdomain:"default",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-more-editor"},{name:wg}=xg,Eg={icon:vg,example:{},__experimentalLabel(e,{context:t}){const n=e?.metadata?.name;return"list-view"===t&&n?n:"accessibility"===t?e.customText:void 0},transforms:kg,edit:function({attributes:{customText:e,noTeaser:t},insertBlocksAfter:n,setAttributes:a}){const o={width:`${(e||fg).length+1.2}em`};return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>a({noTeaser:!t}),help:e=>e?(0,tt.__)("The excerpt is hidden."):(0,tt.__)("The excerpt is visible.")}))),(0,Ke.createElement)("div",{...(0,nt.useBlockProps)()},(0,Ke.createElement)("input",{"aria-label":(0,tt.__)("“Read more” link text"),type:"text",value:e,placeholder:fg,onChange:e=>{a({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:({keyCode:e})=>{e===fn.ENTER&&n([(0,Qe.createBlock)((0,Qe.getDefaultBlockName)())])},style:o})))},save:function({attributes:{customText:e,noTeaser:t}}){const n=e?`\x3c!--more ${e}--\x3e`:"\x3c!--more--\x3e",a=t?"\x3c!--noteaser--\x3e":"";return(0,Ke.createElement)(_t.RawHTML,null,[n,a].filter(Boolean).join("\n"))}},Cg=()=>Xe({name:wg,metadata:xg,settings:Eg}),Sg=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})),Bg=window.wp.a11y;const Ng=(0,_t.forwardRef)((function({icon:e,size:t=24,...n},a){return(0,_t.cloneElement)(e,{width:t,height:t,...n,ref:a})})),Tg=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.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"})),Ig={name:"core/navigation-link"},Pg=["core/navigation-link/page","core/navigation-link"],Mg={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},zg=["postType","wp_navigation",Mg];function Rg(e){const t=(0,dt.useResourcePermissions)("navigation",e),{navigationMenu:n,isNavigationMenuResolved:a,isNavigationMenuMissing:o}=(0,gt.useSelect)((t=>function(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};const{getEntityRecord:n,getEditedEntityRecord:a,hasFinishedResolution:o}=e(dt.store),r=["postType","wp_navigation",t],l=n(...r),i=a(...r),s=o("getEditedEntityRecord",r),c="publish"===i.status||"draft"===i.status;return{isNavigationMenuResolved:s,isNavigationMenuMissing:s&&(!l||!c),navigationMenu:c?i:null}}(t,e)),[e]),{canCreate:r,canUpdate:l,canDelete:i,isResolving:s,hasResolved:c}=t,{records:m,isResolving:u,hasResolved:p}=(0,dt.useEntityRecords)("postType","wp_navigation",Mg);return{navigationMenu:n,isNavigationMenuResolved:a,isNavigationMenuMissing:o,navigationMenus:m,isResolvingNavigationMenus:u,hasResolvedNavigationMenus:p,canSwitchNavigationMenu:e?m?.length>1:m?.length>0,canUserCreateNavigationMenu:r,isResolvingCanUserCreateNavigationMenu:s,hasResolvedCanUserCreateNavigationMenu:c,canUserUpdateNavigationMenu:l,hasResolvedCanUserUpdateNavigationMenu:e?c:void 0,canUserDeleteNavigationMenu:i,hasResolvedCanUserDeleteNavigationMenu:e?c:void 0}}function Ag(e){const{records:t,isResolving:n,hasResolved:a}=(0,dt.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{records:o,isResolving:r,hasResolved:l}=(0,dt.useEntityRecords)("postType","page",{parent:0,order:"asc",orderby:"id",per_page:-1,context:"view"}),{records:i,hasResolved:s}=(0,dt.useEntityRecords)("root","menuItem",{menus:e,per_page:-1,context:"view"},{enabled:!!e});return{pages:o,isResolvingPages:r,hasResolvedPages:l,hasPages:!(!l||!o?.length),menus:t,isResolvingMenus:n,hasResolvedMenus:a,hasMenus:!(!a||!t?.length),menuItems:i,hasResolvedMenuItems:s}}const Hg=({isVisible:e=!0})=>(0,Ke.createElement)("div",{"aria-hidden":!e||void 0,className:"wp-block-navigation-placeholder__preview"},(0,Ke.createElement)("div",{className:"wp-block-navigation-placeholder__actions__indicator"},(0,Ke.createElement)(Ng,{icon:Sg}),(0,tt.__)("Navigation"))),Lg=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const Dg=function({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:n,onCreateNew:a,actionLabel:o,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:l}){const i=(0,tt.__)("Create from '%s'"),[s,c]=(0,_t.useState)(!1);o=o||i;const{menus:m}=Ag(),{navigationMenus:u,isResolvingNavigationMenus:p,hasResolvedNavigationMenus:d,canUserCreateNavigationMenu:g,canSwitchNavigationMenu:h}=Rg(),[b]=(0,dt.useEntityProp)("postType","wp_navigation","title"),_=(0,_t.useMemo)((()=>u?.map((({id:e,title:t,status:n},a)=>{const r=function(e,t,n){return e?"publish"===n?(0,Jn.decodeEntities)(e):(0,tt.sprintf)((0,tt.__)("%1$s (%2$s)"),(0,Jn.decodeEntities)(e),n):(0,tt.sprintf)((0,tt.__)("(no title %s)"),t)}(t?.rendered,a+1,n);return{value:e,label:r,ariaLabel:(0,tt.sprintf)(o,r),disabled:s||p||!d}}))||[]),[u,o,p,d,s]),y=!!u?.length,v=!!m?.length,f=!!h,k=!!g,x=y&&!e,w=!y&&d,E=d&&null===e;let C="";C=p?(0,tt.__)("Loading…"):x||w||E?(0,tt.__)("Choose or create a Navigation menu"):b,(0,_t.useEffect)((()=>{s&&(r||l)&&c(!1)}),[d,r,g,l,s,E,w,x]);const S=(0,Ke.createElement)(et.DropdownMenu,{label:C,icon:Lg,toggleProps:{isSmall:!0}},(({onClose:o})=>(0,Ke.createElement)(Ke.Fragment,null,f&&y&&(0,Ke.createElement)(et.MenuGroup,{label:(0,tt.__)("Menus")},(0,Ke.createElement)(et.MenuItemsChoice,{value:e,onSelect:e=>{t(e),o()},choices:_})),k&&v&&(0,Ke.createElement)(et.MenuGroup,{label:(0,tt.__)("Import Classic Menus")},m?.map((e=>{const t=(0,Jn.decodeEntities)(e.name);return(0,Ke.createElement)(et.MenuItem,{onClick:async()=>{c(!0),await n(e),c(!1),o()},key:e.id,"aria-label":(0,tt.sprintf)(i,t),disabled:s||p||!d},t)}))),g&&(0,Ke.createElement)(et.MenuGroup,{label:(0,tt.__)("Tools")},(0,Ke.createElement)(et.MenuItem,{onClick:async()=>{c(!0),await a(),c(!1),o()},disabled:s||p||!d},(0,tt.__)("Create new menu"))))));return S};function Fg({isSelected:e,currentMenuId:t,clientId:n,canUserCreateNavigationMenu:a=!1,isResolvingCanUserCreateNavigationMenu:o,onSelectNavigationMenu:r,onSelectClassicMenu:l,onCreateEmpty:i}){const{isResolvingMenus:s,hasResolvedMenus:c}=Ag();(0,_t.useEffect)((()=>{e&&(s&&(0,Bg.speak)((0,tt.__)("Loading navigation block setup options…")),c&&(0,Bg.speak)((0,tt.__)("Navigation block setup options ready.")))}),[c,s,e]);const m=s&&o;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.Placeholder,{className:"wp-block-navigation-placeholder"},(0,Ke.createElement)(Hg,{isVisible:!e}),(0,Ke.createElement)("div",{"aria-hidden":!e||void 0,className:"wp-block-navigation-placeholder__controls"},(0,Ke.createElement)("div",{className:"wp-block-navigation-placeholder__actions"},(0,Ke.createElement)("div",{className:"wp-block-navigation-placeholder__actions__indicator"},(0,Ke.createElement)(Ng,{icon:Sg})," ",(0,tt.__)("Navigation")),(0,Ke.createElement)("hr",null),m&&(0,Ke.createElement)(et.Spinner,null),(0,Ke.createElement)(Dg,{currentMenuId:t,clientId:n,onSelectNavigationMenu:r,onSelectClassicMenu:l}),(0,Ke.createElement)("hr",null),a&&(0,Ke.createElement)(et.Button,{variant:"tertiary",onClick:i},(0,tt.__)("Start empty"))))))}const Vg=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"}));function $g({icon:e}){return"menu"===e?(0,Ke.createElement)(Ng,{icon:Vg}):(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,Ke.createElement)(Ye.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,Ke.createElement)(Ye.Rect,{x:"4",y:"15",width:"16",height:"1.5"}))}function Og({children:e,id:t,isOpen:n,isResponsive:a,onToggle:o,isHiddenByDefault:r,overlayBackgroundColor:l,overlayTextColor:i,hasIcon:s,icon:c}){if(!a)return e;const m=ut()("wp-block-navigation__responsive-container",{"has-text-color":!!i.color||!!i?.class,[(0,nt.getColorClassName)("color",i?.slug)]:!!i?.slug,"has-background":!!l.color||l?.class,[(0,nt.getColorClassName)("background-color",l?.slug)]:!!l?.slug,"is-menu-open":n,"hidden-by-default":r}),u={color:!i?.slug&&i?.color,backgroundColor:!l?.slug&&l?.color&&l.color},p=ut()("wp-block-navigation__responsive-container-open",{"always-shown":r}),d=`${t}-modal`,g={className:"wp-block-navigation__responsive-dialog",...n&&{role:"dialog","aria-modal":!0,"aria-label":(0,tt.__)("Menu")}};return(0,Ke.createElement)(Ke.Fragment,null,!n&&(0,Ke.createElement)(et.Button,{"aria-haspopup":"true","aria-label":s&&(0,tt.__)("Open menu"),className:p,onClick:()=>o(!0)},s&&(0,Ke.createElement)($g,{icon:c}),!s&&(0,tt.__)("Menu")),(0,Ke.createElement)("div",{className:m,style:u,id:d},(0,Ke.createElement)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1"},(0,Ke.createElement)("div",{...g},(0,Ke.createElement)(et.Button,{className:"wp-block-navigation__responsive-container-close","aria-label":s&&(0,tt.__)("Close menu"),onClick:()=>o(!1)},s&&(0,Ke.createElement)(Ng,{icon:Tg}),!s&&(0,tt.__)("Close")),(0,Ke.createElement)("div",{className:"wp-block-navigation__responsive-container-content",id:`${d}-content`},e)))))}function Gg({clientId:e,hasCustomPlaceholder:t,orientation:n,templateLock:a}){const{isImmediateParentOfSelectedBlock:o,selectedBlockHasChildren:r,isSelected:l}=(0,gt.useSelect)((t=>{const{getBlockCount:n,hasSelectedInnerBlock:a,getSelectedBlockClientId:o}=t(nt.store),r=o();return{isImmediateParentOfSelectedBlock:a(e,!1),selectedBlockHasChildren:!!n(r),isSelected:r===e}}),[e]),[i,s,c]=(0,dt.useEntityBlockEditor)("postType","wp_navigation"),m=l||o&&!r,u=(0,_t.useMemo)((()=>(0,Ke.createElement)(Hg,null)),[]),p=!t&&!!!i?.length&&!l,d=(0,nt.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:i,onInput:s,onChange:c,prioritizedInserterBlocks:Pg,defaultBlock:Ig,directInsert:!0,orientation:n,templateLock:a,renderAppender:!!(l||o&&!r||m)&&nt.InnerBlocks.ButtonBlockAppender,placeholder:p?u:void 0,__experimentalCaptureToolbars:!0,__unstableDisableLayoutClassNames:!0});return(0,Ke.createElement)("div",{...d})}function Ug(){const[e,t]=(0,dt.useEntityProp)("postType","wp_navigation","title");return(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Menu name"),value:e,onChange:t})}const qg=(e,t,n)=>{if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const a in e){if(!t.hasOwnProperty(a))return!1;if(n&&n(a,e))return!0;if(!qg(e[a],t[a],n))return!1}return!0}return!1},jg={};function Wg({blocks:e,createNavigationMenu:t,hasSelection:n}){const a=(0,_t.useRef)();(0,_t.useEffect)((()=>{a?.current||(a.current=e)}),[e]);const o=function(e,t){return!qg(e,t,((e,t)=>{if("core/page-list"===t?.name&&"innerBlocks"===e)return!0}))}(a?.current,e),r=(0,_t.useContext)(et.Disabled.Context),l=(0,nt.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:!!n&&void 0,defaultBlock:Ig,directInsert:!0}),{isSaving:i,hasResolvedAllNavigationMenus:s}=(0,gt.useSelect)((e=>{if(r)return jg;const{hasFinishedResolution:t,isSavingEntityRecord:n}=e(dt.store);return{isSaving:n("postType","wp_navigation"),hasResolvedAllNavigationMenus:t("getEntityRecords",zg)}}),[r]);(0,_t.useEffect)((()=>{!r&&!i&&s&&n&&o&&t(null,e)}),[e,t,r,i,s,o,n]);const c=i?et.Disabled:"div";return(0,Ke.createElement)(c,{...l})}function Zg({onDelete:e}){const[t,n]=(0,_t.useState)(!1),a=(0,dt.useEntityId)("postType","wp_navigation"),[o]=(0,dt.useEntityProp)("postType","wp_navigation","title"),{deleteEntityRecord:r}=(0,gt.useDispatch)(dt.store);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.Button,{className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{n(!0)}},(0,tt.__)("Delete menu")),t&&(0,Ke.createElement)(et.Modal,{title:(0,tt.sprintf)((0,tt.__)("Delete %s"),o),onRequestClose:()=>n(!1)},(0,Ke.createElement)("p",null,(0,tt.__)("Are you sure you want to delete this navigation menu?")),(0,Ke.createElement)(et.__experimentalHStack,{justify:"right"},(0,Ke.createElement)(et.Button,{variant:"tertiary",onClick:()=>{n(!1)}},(0,tt.__)("Cancel")),(0,Ke.createElement)(et.Button,{variant:"primary",onClick:()=>{r("postType","wp_navigation",a,{force:!0}),e(o)}},(0,tt.__)("Confirm")))))}const Qg=function({name:e,message:t=""}={}){const n=(0,_t.useRef)(),{createWarningNotice:a,removeNotice:o}=(0,gt.useDispatch)(Pt.store);return[(0,_t.useCallback)((o=>{n.current||(n.current=e,a(o||t,{id:n.current,type:"snackbar"}))}),[n,a,t,e]),(0,_t.useCallback)((()=>{n.current&&(o(n.current),n.current=null)}),[n,o])]};function Kg({setAttributes:e,hasIcon:t,icon:n}){return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show icon button"),help:(0,tt.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:t=>e({hasIcon:t}),checked:t}),(0,Ke.createElement)(et.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Icon"),value:n,onChange:t=>e({icon:t}),isBlock:!0},(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,tt.__)("handle"),label:(0,Ke.createElement)($g,{icon:"handle"})}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,tt.__)("menu"),label:(0,Ke.createElement)($g,{icon:"menu"})})))}function Yg(e){if(!e)return null;const t=Jg(function(e,t="id",n="parent"){const a=Object.create(null),o=[];for(const r of e)a[r[t]]={...r,children:[]},r[n]?(a[r[n]]=a[r[n]]||{},a[r[n]].children=a[r[n]].children||[],a[r[n]].children.push(a[r[t]])):o.push(a[r[t]]);return o}(e));return(0,_i.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",t,e)}function Jg(e,t=0){let n={};const a=[...e].sort(((e,t)=>e.menu_order-t.menu_order)),o=a.map((e=>{if("block"===e.type){const[t]=(0,Qe.parse)(e.content.raw);return t||(0,Qe.createBlock)("core/freeform",{content:e.content})}const a=e.children?.length?"core/navigation-submenu":"core/navigation-link",o=function({title:e,xfn:t,classes:n,attr_title:a,object:o,object_id:r,description:l,url:i,type:s,target:c},m,u){o&&"post_tag"===o&&(o="tag");return{label:e?.rendered||"",...o?.length&&{type:o},kind:s?.replace("_","-")||"custom",url:i||"",...t?.length&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...n?.length&&n.join(" ").trim()&&{className:n.join(" ").trim()},...a?.length&&{title:a},...r&&"custom"!==o&&{id:r},...l?.length&&{description:l},..."_blank"===c&&{opensInNewTab:!0},..."core/navigation-submenu"===m&&{isTopLevelItem:0===u},..."core/navigation-link"===m&&{isTopLevelLink:0===u}}}(e,a,t),{innerBlocks:r=[],mapping:l={}}=e.children?.length?Jg(e.children,t+1):{};n={...n,...l};const i=(0,Qe.createBlock)(a,o,r);return n[e.id]=i.clientId,i}));return{innerBlocks:o,mapping:n}}const Xg="success",eh="error",th="pending";let nh=null;const ah=function(e,{throwOnError:t=!1}={}){const n=(0,gt.useRegistry)(),{editEntityRecord:a}=(0,gt.useDispatch)(dt.store),[o,r]=(0,_t.useState)("idle"),[l,i]=(0,_t.useState)(null),s=(0,_t.useCallback)((async(t,o,r="publish")=>{let l,i;try{i=await n.resolveSelect(dt.store).getMenuItems({menus:t,per_page:-1,context:"view"})}catch(e){throw new Error((0,tt.sprintf)((0,tt.__)('Unable to fetch classic menu "%s" from API.'),o),{cause:e})}if(null===i)throw new Error((0,tt.sprintf)((0,tt.__)('Unable to fetch classic menu "%s" from API.'),o));const{innerBlocks:s}=Yg(i);try{l=await e(o,s,r),await a("postType","wp_navigation",l.id,{status:"publish"},{throwOnError:!0})}catch(e){throw new Error((0,tt.sprintf)((0,tt.__)('Unable to create Navigation Menu "%s".'),o),{cause:e})}return l}),[e,a,n]);return{convert:(0,_t.useCallback)((async(e,n,a)=>{if(nh!==e)return nh=e,e&&n?(r(th),i(null),await s(e,n,a).then((e=>(r(Xg),nh=null,e))).catch((e=>{if(i(e?.message),r(eh),nh=null,t)throw new Error((0,tt.sprintf)((0,tt.__)('Unable to create Navigation Menu "%s".'),n),{cause:e})}))):(i("Unable to convert menu. Missing menu details."),void r(eh))}),[s,t]),status:o,error:l}};function oh(e,t){return e&&t?e+"//"+t:null}const rh=["postType","wp_navigation",{status:"draft",per_page:-1}],lh=["postType","wp_navigation",{per_page:-1,status:"publish"}];function ih(e){const t=(0,_t.useContext)(et.Disabled.Context),n=function(e){return(0,gt.useSelect)((t=>{if(!e)return;const{getBlock:n,getBlockParentsByBlockName:a}=t(nt.store),o=a(e,"core/template-part",!0);if(!o?.length)return;const r=t("core/editor").__experimentalGetDefaultTemplatePartAreas(),{getCurrentTheme:l,getEditedEntityRecord:i}=t(dt.store);for(const e of o){const t=n(e),{theme:a=l()?.stylesheet,slug:o}=t.attributes,s=i("postType","wp_template_part",oh(a,o));if(s?.area)return r.find((e=>"uncategorized"!==e.area&&e.area===s.area))?.label}}),[e])}(t?void 0:e),a=(0,gt.useRegistry)();return(0,_t.useCallback)((async()=>{if(t)return"";const{getEntityRecords:e}=a.resolveSelect(dt.store),[o,r]=await Promise.all([e(...rh),e(...lh)]),l=n?(0,tt.sprintf)((0,tt.__)("%s navigation"),n):(0,tt.__)("Navigation"),i=[...o,...r].reduce(((e,t)=>t?.title?.raw?.startsWith(l)?e+1:e),0);return(i>0?`${l} ${i+1}`:l)||""}),[t,n,a])}const sh="success",ch="error",mh="pending",uh="idle";const ph=[];function dh(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function gh(e,t,n){if(!e)return;t(dh(e).color);let a=e,o=dh(a).backgroundColor;for(;"rgba(0, 0, 0, 0)"===o&&a.parentNode&&a.parentNode.nodeType===a.parentNode.ELEMENT_NODE;)a=a.parentNode,o=dh(a).backgroundColor;n(o)}function hh(e,t){const{textColor:n,customTextColor:a,backgroundColor:o,customBackgroundColor:r,overlayTextColor:l,customOverlayTextColor:i,overlayBackgroundColor:s,customOverlayBackgroundColor:c,style:m}=e,u={};return t&&i?u.customTextColor=i:t&&l?u.textColor=l:a?u.customTextColor=a:n?u.textColor=n:m?.color?.text&&(u.customTextColor=m.color.text),t&&c?u.customBackgroundColor=c:t&&s?u.backgroundColor=s:r?u.customBackgroundColor=r:o?u.backgroundColor=o:m?.color?.background&&(u.customTextColor=m.color.background),u}function bh(e){return{className:ut()("wp-block-navigation__submenu-container",{"has-text-color":!(!e.textColor&&!e.customTextColor),[`has-${e.textColor}-color`]:!!e.textColor,"has-background":!(!e.backgroundColor&&!e.customBackgroundColor),[`has-${e.backgroundColor}-background-color`]:!!e.backgroundColor}),style:{color:e.customTextColor,backgroundColor:e.customBackgroundColor}}}const _h=({className:e="",disabled:t,isMenuItem:n=!1})=>{let a=et.Button;return n&&(a=et.MenuItem),(0,Ke.createElement)(a,{variant:"link",disabled:t,className:e,href:(0,pt.addQueryArgs)("edit.php",{post_type:"wp_navigation"})},(0,tt.__)("Manage menus"))};const yh=function({onCreateNew:e}){return(0,Ke.createElement)(nt.Warning,null,(0,_t.createInterpolateElement)((0,tt.__)("Navigation menu has been deleted or is unavailable. <button>Create a new menu?</button>"),{button:(0,Ke.createElement)(et.Button,{onClick:e,variant:"link"})}))},vh=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"})),fh=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),kh=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),xh={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},wh=["core/navigation-link","core/navigation-submenu"];function Eh({block:e,onClose:t,expandedState:n,expand:a,setInsertedBlock:o}){const{insertBlock:r,replaceBlock:l,replaceInnerBlocks:i}=(0,gt.useDispatch)(nt.store),s=e.clientId,c=!wh.includes(e.name);return(0,Ke.createElement)(et.MenuItem,{icon:vh,disabled:c,onClick:()=>{const c=(0,Qe.createBlock)("core/navigation-link");if("core/navigation-submenu"===e.name)r(c,e.innerBlocks.length,s,false);else{const t=(0,Qe.createBlock)("core/navigation-submenu",e.attributes,e.innerBlocks);l(s,t),i(t.clientId,[c],false)}o(c),n[e.clientId]||a(e.clientId),t()}},(0,tt.__)("Add submenu link"))}function Ch(e){const{block:t}=e,{clientId:n}=t,{moveBlocksDown:a,moveBlocksUp:o,removeBlocks:r}=(0,gt.useDispatch)(nt.store),l=(0,tt.sprintf)((0,tt.__)("Remove %s"),(0,nt.BlockTitle)({clientId:n,maximumLength:25})),i=(0,gt.useSelect)((e=>{const{getBlockRootClientId:t}=e(nt.store);return t(n)}),[n]);return(0,Ke.createElement)(et.DropdownMenu,{icon:Lg,label:(0,tt.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:xh,noIcons:!0,...e},(({onClose:s})=>(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.MenuGroup,null,(0,Ke.createElement)(et.MenuItem,{icon:fh,onClick:()=>{o([n],i),s()}},(0,tt.__)("Move up")),(0,Ke.createElement)(et.MenuItem,{icon:kh,onClick:()=>{a([n],i),s()}},(0,tt.__)("Move down")),(0,Ke.createElement)(Eh,{block:t,onClose:s,expanded:!0,expandedState:e.expandedState,expand:e.expand,setInsertedBlock:e.setInsertedBlock})),(0,Ke.createElement)(et.MenuGroup,null,(0,Ke.createElement)(et.MenuItem,{onClick:()=>{r([n],!1),s()}},l)))))}const Sh=window.wp.escapeHtml,Bh=(e={},t,n={})=>{const{label:a="",kind:o="",type:r=""}=n,{title:l="",url:i="",opensInNewTab:s,id:c,kind:m=o,type:u=r}=e,p=l.replace(/http(s?):\/\//gi,""),d=i.replace(/http(s?):\/\//gi,""),g=l&&l!==a&&p!==d?(0,Sh.escapeHTML)(l):a||(0,Sh.escapeHTML)(d),h="post_tag"===u?"tag":u.replace("-","_"),b=["post","page","tag","category"].indexOf(h)>-1,_=!m&&!b||"custom"===m?"custom":m;t({...i&&{url:encodeURI((0,pt.safeDecodeURI)(i))},...g&&{label:g},...void 0!==s&&{opensInNewTab:s},...c&&Number.isInteger(c)&&{id:c},..._&&{kind:_},...h&&"URL"!==h&&{type:h}})},Nh=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})),Th=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})),{PrivateQuickInserter:Ih}=Ft(nt.privateApis);function Ph(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e};case"category":return{type:"term",subtype:"category"};case"tag":return{type:"term",subtype:"post_tag"};case"post_format":return{type:"post-format"};default:return"taxonomy"===t?{type:"term",subtype:e}:"post-type"===t?{type:"post",subtype:e}:{initialSuggestionsSearchOptions:{type:"post",subtype:"page",perPage:20}}}}function Mh({clientId:e,onBack:t,onSelectBlock:n}){const{rootBlockClientId:a}=(0,gt.useSelect)((t=>{const{getBlockRootClientId:n}=t(nt.store);return{rootBlockClientId:n(e)}}),[e]),o=(0,jt.useFocusOnMount)("firstElement"),r=(0,jt.useInstanceId)(nt.__experimentalLinkControl,"link-ui-block-inserter__title"),l=(0,jt.useInstanceId)(nt.__experimentalLinkControl,"link-ui-block-inserter__description");return e?(0,Ke.createElement)("div",{className:"link-ui-block-inserter",role:"dialog","aria-labelledby":r,"aria-describedby":l,ref:o},(0,Ke.createElement)(et.VisuallyHidden,null,(0,Ke.createElement)("h2",{id:r},(0,tt.__)("Add block")),(0,Ke.createElement)("p",{id:l},(0,tt.__)("Choose a block to add to your Navigation."))),(0,Ke.createElement)(et.Button,{className:"link-ui-block-inserter__back",icon:Nh,onClick:e=>{e.preventDefault(),t()},size:"small"},(0,tt.__)("Back")),(0,Ke.createElement)(Ih,{rootClientId:a,clientId:e,isAppender:!1,prioritizePatterns:!1,selectBlockOnInsert:!0,hasSearch:!1,onSelect:n})):null}function zh(e){const[t,n]=(0,_t.useState)(!1),[a,o]=(0,_t.useState)(!1),[r,l]=(0,_t.useState)(!0),{saveEntityRecord:i}=(0,gt.useDispatch)(dt.store),s=(0,dt.useResourcePermissions)("pages"),c=(0,dt.useResourcePermissions)("posts");const{label:m,url:u,opensInNewTab:p,type:d,kind:g}=e.link;let h=!1;d&&"page"!==d?"post"===d&&(h=c.canCreate):h=s.canCreate;const b=(0,_t.useMemo)((()=>({url:u,opensInNewTab:p,title:m&&(0,ac.__unstableStripHTML)(m)})),[m,p,u]),_=(0,jt.useInstanceId)(zh,"link-ui-link-control__title"),y=(0,jt.useInstanceId)(zh,"link-ui-link-control__description"),{onClose:v}=e;return(0,Ke.createElement)(Ke.Fragment,null,r&&(0,Ke.createElement)("div",{className:"components-popover-pointer-events-trap","aria-hidden":"true",onClick:()=>l(!1)}),(0,Ke.createElement)(et.Popover,{placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0},!t&&(0,Ke.createElement)("div",{role:"dialog","aria-labelledby":_,"aria-describedby":y},(0,Ke.createElement)(et.VisuallyHidden,null,(0,Ke.createElement)("h2",{id:_},(0,tt.__)("Add link")),(0,Ke.createElement)("p",{id:y},(0,tt.__)("Search for and add a link to your Navigation."))),(0,Ke.createElement)(nt.__experimentalLinkControl,{hasTextControl:!0,hasRichPreviews:!0,value:b,showInitialSuggestions:!0,withCreateSuggestion:h,createSuggestion:async function(t){const n=e.link.type||"page",a=await i("postType",n,{title:t,status:"draft"});return{id:a.id,type:n,title:(0,Jn.decodeEntities)(a.title.rendered),url:a.link,kind:"post-type"}},createSuggestionButtonText:e=>{let t;return t="post"===d?(0,tt.__)("Create draft post: <mark>%s</mark>"):(0,tt.__)("Create draft page: <mark>%s</mark>"),(0,_t.createInterpolateElement)((0,tt.sprintf)(t,e),{mark:(0,Ke.createElement)("mark",null)})},noDirectEntry:!!d,noURLSuggestion:!!d,suggestionsQuery:Ph(d,g),onChange:e.onChange,onRemove:e.onRemove,onCancel:e.onCancel,renderControlBottom:()=>!b?.url?.length&&(0,Ke.createElement)(Rh,{focusAddBlockButton:a,setAddingBlock:()=>{n(!0),o(!1)}})})),t&&(0,Ke.createElement)(Mh,{clientId:e.clientId,onBack:()=>{n(!1),o(!0)},onSelectBlock:v})))}const Rh=({setAddingBlock:e,focusAddBlockButton:t})=>{const n=(0,_t.useRef)();return(0,_t.useEffect)((()=>{t&&n.current?.focus()}),[t]),(0,Ke.createElement)(et.__experimentalVStack,{className:"link-ui-tools"},(0,Ke.createElement)(et.Button,{ref:n,icon:Th,onClick:t=>{t.preventDefault(),e(!0)},"aria-haspopup":"listbox"},(0,tt.__)("Add block")))},Ah=(0,tt.__)("Switch to '%s'"),Hh=["core/navigation-link","core/navigation-submenu"],{PrivateListView:Lh}=Ft(nt.privateApis);function Dh({block:e,insertedBlock:t,setInsertedBlock:n}){const{updateBlockAttributes:a}=(0,gt.useDispatch)(nt.store),o=Hh?.includes(t?.name),r=t?.clientId===e.clientId;if(!(o&&r))return null;return(0,Ke.createElement)(zh,{clientId:t?.clientId,link:t?.attributes,onClose:()=>{n(null)},onChange:e=>{var o;Bh(e,(o=t?.clientId,e=>{o&&a(o,e)}),t?.attributes),n(null)},onCancel:()=>{n(null)}})}const Fh=({clientId:e,currentMenuId:t,isLoading:n,isNavigationMenuMissing:a,onCreateNew:o})=>{const r=(0,gt.useSelect)((t=>!!t(nt.store).getBlockCount(e)),[e]),{navigationMenu:l}=Rg(t);if(t&&a)return(0,Ke.createElement)(yh,{onCreateNew:o});if(n)return(0,Ke.createElement)(et.Spinner,null);const i=l?(0,tt.sprintf)((0,tt.__)("Structure for navigation menu: %s"),l?.title||(0,tt.__)("Untitled menu")):(0,tt.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,Ke.createElement)("div",{className:"wp-block-navigation__menu-inspector-controls"},!r&&(0,Ke.createElement)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message"},(0,tt.__)("This navigation menu is empty.")),(0,Ke.createElement)(Lh,{rootClientId:e,isExpanded:!0,description:i,showAppender:!0,blockSettingsMenu:Ch,additionalBlockContent:Dh}))},Vh=e=>{const{createNavigationMenuIsSuccess:t,createNavigationMenuIsError:n,currentMenuId:a=null,onCreateNew:o,onSelectClassicMenu:r,onSelectNavigationMenu:l,isManageMenusButtonDisabled:i,blockEditingMode:s}=e;return(0,Ke.createElement)(nt.InspectorControls,{group:"list"},(0,Ke.createElement)(et.PanelBody,{title:null},(0,Ke.createElement)(et.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header"},(0,Ke.createElement)(et.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2},(0,tt.__)("Menu")),"default"===s&&(0,Ke.createElement)(Dg,{currentMenuId:a,onSelectClassicMenu:r,onSelectNavigationMenu:l,onCreateNew:o,createNavigationMenuIsSuccess:t,createNavigationMenuIsError:n,actionLabel:Ah,isManageMenusButtonDisabled:i})),(0,Ke.createElement)(Fh,{...e})))};function $h({id:e,children:t}){return(0,Ke.createElement)(et.VisuallyHidden,null,(0,Ke.createElement)("div",{id:e,className:"wp-block-navigation__description"},t))}function Oh({id:e}){const[t]=(0,dt.useEntityProp)("postType","wp_navigation","title"),n=(0,tt.sprintf)((0,tt.__)('Navigation menu: "%s"'),t);return(0,Ke.createElement)($h,{id:e},n)}const Gh=(0,nt.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})((function({attributes:e,setAttributes:t,clientId:n,isSelected:a,className:o,backgroundColor:r,setBackgroundColor:l,textColor:i,setTextColor:s,overlayBackgroundColor:c,setOverlayBackgroundColor:m,overlayTextColor:u,setOverlayTextColor:p,hasSubmenuIndicatorSetting:d=!0,customPlaceholder:g=null,__unstableLayoutClassNames:h}){const{openSubmenusOnClick:b,overlayMenu:_,showSubmenuIcon:y,templateLock:v,layout:{justifyContent:f,orientation:k="horizontal",flexWrap:x="wrap"}={},hasIcon:w,icon:E="handle"}=e,C=e.ref,S=(0,_t.useCallback)((e=>{t({ref:e})}),[t]),B=`navigationMenu/${C}`,N=(0,nt.useHasRecursion)(B),T=(0,nt.useBlockEditingMode)(),{menus:I}=Ag(),[P,M]=Qg({name:"block-library/core/navigation/status"}),[z,R]=Qg({name:"block-library/core/navigation/classic-menu-conversion"}),[A,H]=Qg({name:"block-library/core/navigation/permissions/update"}),{create:L,status:D,error:F,value:V,isPending:$,isSuccess:O,isError:G}=function(e){const[t,n]=(0,_t.useState)(uh),[a,o]=(0,_t.useState)(null),[r,l]=(0,_t.useState)(null),{saveEntityRecord:i,editEntityRecord:s}=(0,gt.useDispatch)(dt.store),c=ih(e),m=(0,_t.useCallback)((async(e=null,t=[],a)=>{if(e&&"string"!=typeof e)throw l("Invalid title supplied when creating Navigation Menu."),n(ch),new Error("Value of supplied title argument was not a string.");n(mh),o(null),l(null),e||(e=await c().catch((e=>{throw l(e?.message),n(ch),new Error("Failed to create title when saving new Navigation Menu.",{cause:e})})));const r={title:e,content:(0,Qe.serialize)(t),status:a};return i("postType","wp_navigation",r).then((e=>(o(e),n(sh),"publish"!==a&&s("postType","wp_navigation",e.id,{status:"publish"}),e))).catch((e=>{throw l(e?.message),n(ch),new Error("Unable to save new Navigation Menu",{cause:e})}))}),[i,s,c]);return{create:m,status:t,value:a,error:r,isIdle:t===uh,isPending:t===mh,isSuccess:t===sh,isError:t===ch}}(n),U=async()=>{await L("")},{hasUncontrolledInnerBlocks:q,uncontrolledInnerBlocks:j,isInnerBlockSelected:W,innerBlocks:Z}=function(e){return(0,gt.useSelect)((t=>{const{getBlock:n,getBlocks:a,hasSelectedInnerBlock:o}=t(nt.store),r=n(e).innerBlocks,l=!!r?.length,i=l?ph:a(e);return{innerBlocks:l?r:i,hasUncontrolledInnerBlocks:l,uncontrolledInnerBlocks:r,controlledInnerBlocks:i,isInnerBlockSelected:o(e,!0)}}),[e])}(n),Q=!!Z.find((e=>"core/navigation-submenu"===e.name)),{replaceInnerBlocks:K,selectBlock:Y,__unstableMarkNextChangeAsNotPersistent:J}=(0,gt.useDispatch)(nt.store),[X,ee]=(0,_t.useState)(!1),[te,ne]=(0,_t.useState)(!1),{hasResolvedNavigationMenus:ae,isNavigationMenuResolved:oe,isNavigationMenuMissing:re,canUserUpdateNavigationMenu:le,hasResolvedCanUserUpdateNavigationMenu:ie,canUserDeleteNavigationMenu:se,hasResolvedCanUserDeleteNavigationMenu:ce,canUserCreateNavigationMenu:me,isResolvingCanUserCreateNavigationMenu:ue,hasResolvedCanUserCreateNavigationMenu:pe}=Rg(C),de=ae&&re,{convert:ge,status:he,error:be}=ah(L),_e=he===th,ye=(0,_t.useCallback)(((e,t={focusNavigationBlock:!1})=>{const{focusNavigationBlock:a}=t;S(e),a&&Y(n)}),[Y,n,S]),ve=!re&&oe,fe=q&&!ve,{getNavigationFallbackId:ke}=Ft((0,gt.useSelect)(dt.store)),xe=C||fe?null:ke();(0,_t.useEffect)((()=>{C||fe||!xe||(J(),S(xe))}),[C,S,fe,xe,J]);const we=(0,_t.useRef)(),Ee="nav",Ce=!C&&!$&&!_e&&ae&&0===I?.length&&!q,Se=!ae||$||_e||!(!C||ve||_e),Be=e.style?.typography?.textDecoration,Ne=(0,gt.useSelect)((e=>e(nt.store).__unstableHasActiveBlockOverlayActive(n)),[n]),Te="never"!==_,Ie=(0,nt.useBlockProps)({ref:we,className:ut()(o,{"items-justified-right":"right"===f,"items-justified-space-between":"space-between"===f,"items-justified-left":"left"===f,"items-justified-center":"center"===f,"is-vertical":"vertical"===k,"no-wrap":"nowrap"===x,"is-responsive":Te,"has-text-color":!!i.color||!!i?.class,[(0,nt.getColorClassName)("color",i?.slug)]:!!i?.slug,"has-background":!!r.color||r.class,[(0,nt.getColorClassName)("background-color",r?.slug)]:!!r?.slug,[`has-text-decoration-${Be}`]:Be,"block-editor-block-content-overlay":Ne},h),style:{color:!i?.slug&&i?.color,backgroundColor:!r?.slug&&r?.color}}),Pe="web"===_t.Platform.OS,[Me,ze]=(0,_t.useState)(),[Re,Ae]=(0,_t.useState)(),[He,Le]=(0,_t.useState)(),[De,Fe]=(0,_t.useState)(),Ve=async e=>ge(e.id,e.name,"draft"),$e=e=>{ye(e)};(0,_t.useEffect)((()=>{M(),$&&(0,Bg.speak)((0,tt.__)("Creating Navigation Menu.")),O&&(ye(V?.id,{focusNavigationBlock:!0}),P((0,tt.__)("Navigation Menu successfully created."))),G&&P((0,tt.__)("Failed to create Navigation Menu."))}),[D,F,V?.id,G,O,$,ye,M,P]),(0,_t.useEffect)((()=>{R(),he===th&&(0,Bg.speak)((0,tt.__)("Classic menu importing.")),he===Xg&&(z((0,tt.__)("Classic menu imported successfully.")),ye(V?.id,{focusNavigationBlock:!0})),he===eh&&z((0,tt.__)("Classic menu import failed."))}),[he,be,R,z,V?.id,ye]),(0,_t.useEffect)((()=>{if(!Pe)return;gh(we.current,Ae,ze);const e=we.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');e&&(u.color||c.color)&&gh(e,Fe,Le)}),[Pe,u.color,c.color]),(0,_t.useEffect)((()=>{a||W||H(),(a||W)&&(C&&!de&&ie&&!le&&A((0,tt.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),C||!pe||me||A((0,tt.__)("You do not have permission to create Navigation Menus.")))}),[a,W,le,ie,me,pe,C,H,A,de]);const Oe=me||le,Ge=ut()("wp-block-navigation__overlay-menu-preview",{open:te}),Ue=y||b?"":(0,tt.__)('The current menu options offer reduced accessibility for users and are not recommended. Enabling either "Open on Click" or "Show arrow" offers enhanced accessibility by allowing keyboard users to browse submenus selectively.'),qe=(0,_t.useRef)(!0);(0,_t.useEffect)((()=>{!qe.current&&Ue&&(0,Bg.speak)(Ue),qe.current=!1}),[Ue]);const je=(0,jt.useInstanceId)(Kg,"overlay-menu-preview"),We=(0,nt.__experimentalUseMultipleOriginColorsAndGradients)(),Ze=(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,d&&(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Display")},Te&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.Button,{className:Ge,onClick:()=>{ne(!te)},"aria-label":(0,tt.__)("Overlay menu controls"),"aria-controls":je,"aria-expanded":te},w&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)($g,{icon:E}),(0,Ke.createElement)(Ng,{icon:Tg})),!w&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("span",null,(0,tt.__)("Menu")),(0,Ke.createElement)("span",null,(0,tt.__)("Close")))),(0,Ke.createElement)("div",{id:je},te&&(0,Ke.createElement)(Kg,{setAttributes:t,hasIcon:w,icon:E,hidden:!te}))),(0,Ke.createElement)("h3",null,(0,tt.__)("Overlay Menu")),(0,Ke.createElement)(et.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Configure overlay menu"),value:_,help:(0,tt.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:e=>t({overlayMenu:e}),isBlock:!0,hideLabelFromVision:!0},(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"never",label:(0,tt.__)("Off")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,tt.__)("Mobile")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"always",label:(0,tt.__)("Always")})),Q&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("h3",null,(0,tt.__)("Submenus")),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,checked:b,onChange:e=>{t({openSubmenusOnClick:e,...e&&{showSubmenuIcon:!0}})},label:(0,tt.__)("Open on click")}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,checked:y,onChange:e=>{t({showSubmenuIcon:e})},disabled:e.openSubmenusOnClick,label:(0,tt.__)("Show arrow")}),Ue&&(0,Ke.createElement)("div",null,(0,Ke.createElement)(et.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},Ue))))),We.hasColorsOrGradients&&(0,Ke.createElement)(nt.InspectorControls,{group:"color"},(0,Ke.createElement)(nt.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:i.color,label:(0,tt.__)("Text"),onColorChange:s,resetAllFilter:()=>s()},{colorValue:r.color,label:(0,tt.__)("Background"),onColorChange:l,resetAllFilter:()=>l()},{colorValue:u.color,label:(0,tt.__)("Submenu & overlay text"),onColorChange:p,resetAllFilter:()=>p()},{colorValue:c.color,label:(0,tt.__)("Submenu & overlay background"),onColorChange:m,resetAllFilter:()=>m()}],panelId:n,...We,gradients:[],disableCustomGradients:!0}),Pe&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.ContrastChecker,{backgroundColor:Me,textColor:Re}),(0,Ke.createElement)(nt.ContrastChecker,{backgroundColor:He,textColor:De})))),Ye=`${n}-desc`,Je=!Oe||!ae;if(fe&&!$)return(0,Ke.createElement)(Ee,{...Ie,"aria-describedby":Ce?void 0:Ye},(0,Ke.createElement)($h,{id:Ye},(0,tt.__)("Unsaved Navigation Menu.")),(0,Ke.createElement)(Vh,{clientId:n,createNavigationMenuIsSuccess:O,createNavigationMenuIsError:G,currentMenuId:C,isNavigationMenuMissing:re,isManageMenusButtonDisabled:Je,onCreateNew:U,onSelectClassicMenu:Ve,onSelectNavigationMenu:$e,isLoading:Se,blockEditingMode:T}),"default"===T&&Ze,(0,Ke.createElement)(Og,{id:n,onToggle:ee,isOpen:X,hasIcon:w,icon:E,isResponsive:Te,isHiddenByDefault:"always"===_,overlayBackgroundColor:c,overlayTextColor:u},(0,Ke.createElement)(Wg,{createNavigationMenu:L,blocks:j,hasSelection:a||W})));if(C&&re)return(0,Ke.createElement)(Ee,{...Ie},(0,Ke.createElement)(Vh,{clientId:n,createNavigationMenuIsSuccess:O,createNavigationMenuIsError:G,currentMenuId:C,isNavigationMenuMissing:re,isManageMenusButtonDisabled:Je,onCreateNew:U,onSelectClassicMenu:Ve,onSelectNavigationMenu:$e,isLoading:Se,blockEditingMode:T}),(0,Ke.createElement)(yh,{onCreateNew:U}));if(ve&&N)return(0,Ke.createElement)("div",{...Ie},(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Block cannot be rendered inside itself.")));const Xe=g||Fg;return Ce&&g?(0,Ke.createElement)(Ee,{...Ie},(0,Ke.createElement)(Xe,{isSelected:a,currentMenuId:C,clientId:n,canUserCreateNavigationMenu:me,isResolvingCanUserCreateNavigationMenu:ue,onSelectNavigationMenu:$e,onSelectClassicMenu:Ve,onCreateEmpty:U})):(0,Ke.createElement)(dt.EntityProvider,{kind:"postType",type:"wp_navigation",id:C},(0,Ke.createElement)(nt.RecursionProvider,{uniqueId:B},(0,Ke.createElement)(Vh,{clientId:n,createNavigationMenuIsSuccess:O,createNavigationMenuIsError:G,currentMenuId:C,isNavigationMenuMissing:re,isManageMenusButtonDisabled:Je,onCreateNew:U,onSelectClassicMenu:Ve,onSelectNavigationMenu:$e,isLoading:Se,blockEditingMode:T}),"default"===T&&Ze,"default"===T&&ve&&(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},ie&&le&&(0,Ke.createElement)(Ug,null),ce&&se&&(0,Ke.createElement)(Zg,{onDelete:(e="")=>{K(n,[]),P((0,tt.sprintf)((0,tt.__)("Navigation menu %s successfully deleted."),e))}}),(0,Ke.createElement)(_h,{disabled:Je,className:"wp-block-navigation-manage-menus-button"})),(0,Ke.createElement)(Ee,{...Ie,"aria-describedby":Ce||Se?void 0:Ye},Se&&(0,Ke.createElement)("div",{className:"wp-block-navigation__loading-indicator-container"},(0,Ke.createElement)(et.Spinner,{className:"wp-block-navigation__loading-indicator"})),!Se&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(Oh,{id:Ye}),(0,Ke.createElement)(Og,{id:n,onToggle:ee,hasIcon:w,icon:E,isOpen:X,isResponsive:Te,isHiddenByDefault:"always"===_,overlayBackgroundColor:c,overlayTextColor:u},ve&&(0,Ke.createElement)(Gg,{clientId:n,hasCustomPlaceholder:!!g,templateLock:v,orientation:k}))))))}));const Uh={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},qh=({navigationMenuId:e,...t})=>({...t,ref:e}),jh=e=>{if(e.layout)return e;const{itemsJustification:t,orientation:n,...a}=e;return(t||n)&&Object.assign(a,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),a},Wh={attributes:{navigationMenuId:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},save:()=>(0,Ke.createElement)(nt.InnerBlocks.Content,null),isEligible:({navigationMenuId:e})=>!!e,migrate:qh},Zh={attributes:{navigationMenuId:{type:"number"},orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save:()=>(0,Ke.createElement)(nt.InnerBlocks.Content,null),isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,jt.compose)(qh,jh)},Qh={attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save:()=>(0,Ke.createElement)(nt.InnerBlocks.Content,null),migrate:(0,jt.compose)(qh,jh,ln),isEligible:({style:e})=>e?.typography?.fontFamily},Kh=[Wh,Zh,Qh,{attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},isResponsive:{type:"boolean",default:"false"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0}},isEligible:e=>e.isResponsive,migrate:(0,jt.compose)(qh,jh,ln,(function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}})),save:()=>(0,Ke.createElement)(nt.InnerBlocks.Content,null)},{attributes:{orientation:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,fontSize:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,color:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},save:()=>(0,Ke.createElement)(nt.InnerBlocks.Content,null),isEligible(e){if(!e.style||!e.style.typography)return!1;for(const t in Uh){const n=e.style.typography[t];if(n&&n.startsWith(Uh[t]))return!0}return!1},migrate:(0,jt.compose)(qh,jh,ln,(function(e){var t;return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(null!==(t=e.style.typography)&&void 0!==t?t:{}).map((([e,t])=>{const n=Uh[e];if(n&&t.startsWith(n)){const a=t.slice(n.length);return"textDecoration"===e&&"strikethrough"===a?[e,"line-through"]:[e,a]}return[e,t]})))}}}))},{attributes:{className:{type:"string"},textColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean"}},isEligible:e=>e.rgbTextColor||e.rgbBackgroundColor,supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},migrate:(0,jt.compose)(qh,(e=>{const{rgbTextColor:t,rgbBackgroundColor:n,...a}=e;return{...a,customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}})),save:()=>(0,Ke.createElement)(nt.InnerBlocks.Content,null)}],Yh=Kh,Jh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation",title:"Navigation",category:"theme",allowedBlocks:["core/navigation-link","core/search","core/social-links","core/page-list","core/spacer","core/home-link","core/site-title","core/site-logo","core/navigation-submenu","core/loginout","core/buttons"],description:"A collection of blocks that allow visitors to get around your site.",keywords:["menu","navigation","links"],textdomain:"default",attributes:{ref:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},icon:{type:"string",default:"handle"},hasIcon:{type:"boolean",default:!0},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"},maxNestingLevel:{type:"number",default:5},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},providesContext:{textColor:"textColor",customTextColor:"customTextColor",backgroundColor:"backgroundColor",customBackgroundColor:"customBackgroundColor",overlayTextColor:"overlayTextColor",customOverlayTextColor:"customOverlayTextColor",overlayBackgroundColor:"overlayBackgroundColor",customOverlayBackgroundColor:"customOverlayBackgroundColor",fontSize:"fontSize",customFontSize:"customFontSize",showSubmenuIcon:"showSubmenuIcon",openSubmenusOnClick:"openSubmenusOnClick",style:"style",maxNestingLevel:"maxNestingLevel"},supports:{align:["wide","full"],ariaLabel:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalSkipSerialization:["textDecoration"],__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,allowSizingOnChildren:!0,default:{type:"flex"}},__experimentalStyle:{elements:{link:{color:{text:"inherit"}}}},interactivity:!0,renaming:!1},editorStyle:"wp-block-navigation-editor",style:"wp-block-navigation"},{name:Xh}=Jh,eb={icon:Sg,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,tt.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,tt.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,tt.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:Gh,save:function({attributes:e}){if(!e.ref)return(0,Ke.createElement)(nt.InnerBlocks.Content,null)},deprecated:Yh},tb=()=>Xe({name:Xh,metadata:Jh,settings:eb}),nb=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"})),ab={name:"core/navigation-link"};const ob=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,Ke.createElement)(Ye.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})),rb=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})),lb=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"}));function ib(e){switch(e){case"post":return Sp;case"page":return ob;case"tag":return rb;case"category":return Yn;default:return lb}}function sb(e,t){if("core/navigation-link"!==t)return e;if(e.variations){const t=(e,t)=>e.type===t.type,n=e.variations.map((e=>({...e,...!e.icon&&{icon:ib(e.name)},...!e.isActive&&{isActive:t}})));return{...e,variations:n}}return e}const cb={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,Qe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,Qe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,Qe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,Qe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,Qe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,Qe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/buttons"],transform:()=>(0,Qe.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,Qe.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,Qe.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,Qe.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,Qe.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,Qe.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,Qe.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,Qe.createBlock)("core/page-list")},{type:"block",blocks:["core/buttons"],transform:({label:e,url:t,rel:n,title:a,opensInNewTab:o})=>(0,Qe.createBlock)("core/buttons",{},[(0,Qe.createBlock)("core/button",{text:e,url:t,rel:n,title:a,linkTarget:o?"_blank":void 0})])}]},mb=cb,ub={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],allowedBlocks:["core/navigation-link","core/navigation-submenu","core/page-list"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],supports:{reusable:!1,html:!1,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},renaming:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"},{name:pb}=ub,db={icon:nb,__experimentalLabel:({label:e})=>e,merge:(e,{label:t=""})=>({...e,label:e.label+t}),edit:function({attributes:e,isSelected:t,setAttributes:n,insertBlocksAfter:a,mergeBlocks:o,onReplace:r,context:l,clientId:i}){const{id:s,label:c,type:m,url:u,description:p,rel:d,title:g,kind:h}=e,[b,_]=((e,t,n)=>{const a="post-type"===e||"post"===t||"page"===t,o=Number.isInteger(n),r=(0,gt.useSelect)((e=>{if(!a)return null;const{getEntityRecord:o}=e(dt.store);return o("postType",t,n)?.status}),[a,t,n]);return[a&&o&&r&&"trash"===r,"draft"===r]})(h,m,s),{maxNestingLevel:y}=l,{replaceBlock:v,__unstableMarkNextChangeAsNotPersistent:f}=(0,gt.useDispatch)(nt.store),[k,x]=(0,_t.useState)(!1),[w,E]=(0,_t.useState)(null),C=(0,_t.useRef)(null),S=(e=>{const[t,n]=(0,_t.useState)(!1);return(0,_t.useEffect)((()=>{const{ownerDocument:t}=e.current;function a(e){r(e)}function o(){n(!1)}function r(t){e.current.contains(t.target)?n(!0):n(!1)}return t.addEventListener("dragstart",a),t.addEventListener("dragend",o),t.addEventListener("dragenter",r),()=>{t.removeEventListener("dragstart",a),t.removeEventListener("dragend",o),t.removeEventListener("dragenter",r)}}),[]),t})(C),B=(0,tt.__)("Add label…"),N=(0,_t.useRef)(),[T,I]=(0,_t.useState)(!1),{innerBlocks:P,isAtMaxNesting:M,isTopLevelLink:z,isParentOfSelectedBlock:R,hasChildren:A}=(0,gt.useSelect)((e=>{const{getBlocks:t,getBlockCount:n,getBlockName:a,getBlockRootClientId:o,hasSelectedInnerBlock:r,getBlockParentsByBlockName:l}=e(nt.store);return{innerBlocks:t(i),isAtMaxNesting:l(i,["core/navigation-link","core/navigation-submenu"]).length>=y,isTopLevelLink:"core/navigation"===a(o(i)),isParentOfSelectedBlock:r(i,!0),hasChildren:!!n(i)}}),[i]);function H(){const t=(0,Qe.createBlock)("core/navigation-submenu",e,P.length>0?P:[(0,Qe.createBlock)("core/navigation-link")]);v(i,t)}(0,_t.useEffect)((()=>{u||x(!0)}),[u]),(0,_t.useEffect)((()=>{A&&(f(),H())}),[A]),(0,_t.useEffect)((()=>{t||x(!1)}),[t]),(0,_t.useEffect)((()=>{k&&u&&((0,pt.isURL)((0,pt.prependHTTP)(c))&&/^.+\.[a-z]+/.test(c)?function(){N.current.focus();const{ownerDocument:e}=N.current,{defaultView:t}=e,n=t.getSelection(),a=e.createRange();a.selectNodeContents(N.current),n.removeAllRanges(),n.addRange(a)}():(0,ac.placeCaretAtHorizontalEdge)(N.current,!0))}),[u]);const{textColor:L,customTextColor:D,backgroundColor:F,customBackgroundColor:V}=hh(l,!z),$=(0,nt.useBlockProps)({ref:(0,jt.useMergeRefs)([E,C]),className:ut()("wp-block-navigation-item",{"is-editing":t||R,"is-dragging-within":S,"has-link":!!u,"has-child":A,"has-text-color":!!L||!!D,[(0,nt.getColorClassName)("color",L)]:!!L,"has-background":!!F||V,[(0,nt.getColorClassName)("background-color",F)]:!!F}),style:{color:!L&&D,backgroundColor:!F&&V},onKeyDown:function(e){(fn.isKeyboardEvent.primary(e,"k")||(!u||_||b)&&e.keyCode===fn.ENTER)&&(e.preventDefault(),x(!0))}}),O=(0,nt.useInnerBlocksProps)({...$,className:"remove-outline"},{defaultBlock:ab,directInsert:!0,renderAppender:!1});(!u||b||_)&&($.onClick=()=>x(!0));const G=ut()("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":!u||b||_}),U=function(e){let t="";switch(e){case"post":t=(0,tt.__)("Select post");break;case"page":t=(0,tt.__)("Select page");break;case"category":t=(0,tt.__)("Select category");break;case"tag":t=(0,tt.__)("Select tag");break;default:t=(0,tt.__)("Add link")}return t}(m),q=`(${b?(0,tt.__)("Invalid"):(0,tt.__)("Draft")})`,j=b||_?(0,tt.__)("This item has been deleted, or is a draft"):(0,tt.__)("This item is missing a link");return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{name:"link",icon:kn,title:(0,tt.__)("Link"),shortcut:fn.displayShortcut.primary("k"),onClick:()=>x(!0)}),!M&&(0,Ke.createElement)(et.ToolbarButton,{name:"submenu",icon:vh,title:(0,tt.__)("Add submenu"),onClick:H}))),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,value:c?(0,ac.__unstableStripHTML)(c):"",onChange:e=>{n({label:e})},label:(0,tt.__)("Label"),autoComplete:"off",onFocus:()=>I(!0),onBlur:()=>I(!1)}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,value:u?(0,pt.safeDecodeURI)(u):"",onChange:t=>{Bh({url:t},n,e)},label:(0,tt.__)("URL"),autoComplete:"off"}),(0,Ke.createElement)(et.TextareaControl,{__nextHasNoMarginBottom:!0,value:p||"",onChange:e=>{n({description:e})},label:(0,tt.__)("Description"),help:(0,tt.__)("The description will be displayed in the menu if the current theme supports it.")}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,value:g||"",onChange:e=>{n({title:e})},label:(0,tt.__)("Title attribute"),autoComplete:"off",help:(0,tt.__)("Additional information to help clarify the purpose of the link.")}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,value:d||"",onChange:e=>{n({rel:e})},label:(0,tt.__)("Rel attribute"),autoComplete:"off",help:(0,tt.__)("The relationship of the linked URL as space-separated link types.")}))),(0,Ke.createElement)("div",{...$},(0,Ke.createElement)("a",{className:G},u?(0,Ke.createElement)(Ke.Fragment,null,!b&&!_&&!T&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.RichText,{ref:N,identifier:"label",className:"wp-block-navigation-item__label",value:c,onChange:e=>n({label:e}),onMerge:o,onReplace:r,__unstableOnSplitAtEnd:()=>a((0,Qe.createBlock)("core/navigation-link")),"aria-label":(0,tt.__)("Navigation link text"),placeholder:B,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"],onClick:()=>{u||x(!0)}}),p&&(0,Ke.createElement)("span",{className:"wp-block-navigation-item__description"},p)),(b||_||T)&&(0,Ke.createElement)("div",{className:"wp-block-navigation-link__placeholder-text wp-block-navigation-link__label"},(0,Ke.createElement)(et.Tooltip,{text:j},(0,Ke.createElement)("span",{"aria-label":(0,tt.__)("Navigation link text")},`${(0,Jn.decodeEntities)(c)} ${b||_?q:""}`.trim())))):(0,Ke.createElement)("div",{className:"wp-block-navigation-link__placeholder-text"},(0,Ke.createElement)(et.Tooltip,{text:j},(0,Ke.createElement)("span",null,U))),k&&(0,Ke.createElement)(zh,{clientId:i,link:e,onClose:()=>{u||r([])},anchor:w,onRemove:function(){n({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),x(!1)},onChange:t=>{Bh(t,n,e)}})),(0,Ke.createElement)("div",{...O})))},save:function(){return(0,Ke.createElement)(nt.InnerBlocks.Content,null)},example:{attributes:{label:(0,tt._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:[{isEligible:e=>e.nofollow,attributes:{label:{type:"string"},type:{type:"string"},nofollow:{type:"boolean"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}},migrate:({nofollow:e,...t})=>({rel:e?"nofollow":"",...t}),save:()=>(0,Ke.createElement)(nt.InnerBlocks.Content,null)}],transforms:mb},gb=()=>((0,_i.addFilter)("blocks.registerBlockType","core/navigation-link",sb),Xe({name:pb,metadata:ub,settings:db})),hb=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"})),bb=()=>(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},(0,Ke.createElement)(et.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})),_b=["core/navigation-link","core/navigation-submenu","core/page-list"],yb={name:"core/navigation-link"};const vb={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:e=>(0,Qe.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,Qe.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,Qe.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,Qe.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,Qe.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,Qe.createBlock)("core/search")}]},fb=vb,kb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"},{name:xb}=kb,wb={icon:({context:e})=>"list-view"===e?ob:vh,__experimentalLabel(e,{context:t}){const{label:n}=e,a=e?.metadata?.name;return"list-view"===t&&(a||n)&&e?.metadata?.name||n},edit:function({attributes:e,isSelected:t,setAttributes:n,mergeBlocks:a,onReplace:o,context:r,clientId:l}){const{label:i,type:s,url:c,description:m,rel:u,title:p}=e,{showSubmenuIcon:d,maxNestingLevel:g,openSubmenusOnClick:h}=r,{__unstableMarkNextChangeAsNotPersistent:b,replaceBlock:_}=(0,gt.useDispatch)(nt.store),[y,v]=(0,_t.useState)(!1),[f,k]=(0,_t.useState)(null),x=(0,_t.useRef)(null),w=(e=>{const[t,n]=(0,_t.useState)(!1);return(0,_t.useEffect)((()=>{const{ownerDocument:t}=e.current;function a(e){r(e)}function o(){n(!1)}function r(t){e.current.contains(t.target)?n(!0):n(!1)}return t.addEventListener("dragstart",a),t.addEventListener("dragend",o),t.addEventListener("dragenter",r),()=>{t.removeEventListener("dragstart",a),t.removeEventListener("dragend",o),t.removeEventListener("dragenter",r)}}),[]),t})(x),E=(0,tt.__)("Add text…"),C=(0,_t.useRef)(),S=(0,dt.useResourcePermissions)("pages"),B=(0,dt.useResourcePermissions)("posts"),{parentCount:N,isParentOfSelectedBlock:T,isImmediateParentOfSelectedBlock:I,hasChildren:P,selectedBlockHasChildren:M,onlyDescendantIsEmptyLink:z}=(0,gt.useSelect)((e=>{const{hasSelectedInnerBlock:t,getSelectedBlockClientId:n,getBlockParentsByBlockName:a,getBlock:o,getBlockCount:r,getBlockOrder:i}=e(nt.store);let s;const c=i(n());if(1===c?.length){const e=o(c[0]);s="core/navigation-link"===e?.name&&!e?.attributes?.label}return{parentCount:a(l,"core/navigation-submenu").length,isParentOfSelectedBlock:t(l,!0),isImmediateParentOfSelectedBlock:t(l,!1),hasChildren:!!r(l),selectedBlockHasChildren:!!c?.length,onlyDescendantIsEmptyLink:s}}),[l]),R=(0,jt.usePrevious)(P);(0,_t.useEffect)((()=>{h||c||v(!0)}),[]),(0,_t.useEffect)((()=>{t||v(!1)}),[t]),(0,_t.useEffect)((()=>{y&&c&&((0,pt.isURL)((0,pt.prependHTTP)(i))&&/^.+\.[a-z]+/.test(i)?function(){C.current.focus();const{ownerDocument:e}=C.current,{defaultView:t}=e,n=t.getSelection(),a=e.createRange();a.selectNodeContents(C.current),n.removeAllRanges(),n.addRange(a)}():(0,ac.placeCaretAtHorizontalEdge)(C.current,!0))}),[c]);let A=!1;s&&"page"!==s?"post"===s&&(A=B.canCreate):A=S.canCreate;const{textColor:H,customTextColor:L,backgroundColor:D,customBackgroundColor:F}=hh(r,N>0),V=(0,nt.useBlockProps)({ref:(0,jt.useMergeRefs)([k,x]),className:ut()("wp-block-navigation-item",{"is-editing":t||T,"is-dragging-within":w,"has-link":!!c,"has-child":P,"has-text-color":!!H||!!L,[(0,nt.getColorClassName)("color",H)]:!!H,"has-background":!!D||F,[(0,nt.getColorClassName)("background-color",D)]:!!D,"open-on-click":h}),style:{color:!H&&L,backgroundColor:!D&&F},onKeyDown:function(e){fn.isKeyboardEvent.primary(e,"k")&&(e.preventDefault(),v(!0))}}),$=hh(r,!0),O=N>=g?_b.filter((e=>"core/navigation-submenu"!==e)):_b,G=bh($),U=(0,nt.useInnerBlocksProps)(G,{allowedBlocks:O,defaultBlock:yb,directInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:!!(t||I&&!M||P)&&nt.InnerBlocks.ButtonBlockAppender}),q=h?"button":"a";function j(){const t=(0,Qe.createBlock)("core/navigation-link",e);_(l,t)}(0,_t.useEffect)((()=>{!P&&R&&(b(),j())}),[P,R]);const W=!M||z;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,!h&&(0,Ke.createElement)(et.ToolbarButton,{name:"link",icon:kn,title:(0,tt.__)("Link"),shortcut:fn.displayShortcut.primary("k"),onClick:()=>v(!0)}),(0,Ke.createElement)(et.ToolbarButton,{name:"revert",icon:hb,title:(0,tt.__)("Convert to Link"),onClick:j,className:"wp-block-navigation__submenu__revert",isDisabled:!W}))),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,value:i||"",onChange:e=>{n({label:e})},label:(0,tt.__)("Label"),autoComplete:"off"}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,value:c||"",onChange:e=>{n({url:e})},label:(0,tt.__)("URL"),autoComplete:"off"}),(0,Ke.createElement)(et.TextareaControl,{__nextHasNoMarginBottom:!0,value:m||"",onChange:e=>{n({description:e})},label:(0,tt.__)("Description"),help:(0,tt.__)("The description will be displayed in the menu if the current theme supports it.")}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,value:p||"",onChange:e=>{n({title:e})},label:(0,tt.__)("Title attribute"),autoComplete:"off",help:(0,tt.__)("Additional information to help clarify the purpose of the link.")}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,value:u||"",onChange:e=>{n({rel:e})},label:(0,tt.__)("Rel attribute"),autoComplete:"off",help:(0,tt.__)("The relationship of the linked URL as space-separated link types.")}))),(0,Ke.createElement)("div",{...V},(0,Ke.createElement)(q,{className:"wp-block-navigation-item__content"},(0,Ke.createElement)(nt.RichText,{ref:C,identifier:"label",className:"wp-block-navigation-item__label",value:i,onChange:e=>n({label:e}),onMerge:a,onReplace:o,"aria-label":(0,tt.__)("Navigation link text"),placeholder:E,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"],onClick:()=>{h||c||v(!0)}}),!h&&y&&(0,Ke.createElement)(zh,{clientId:l,link:e,onClose:()=>v(!1),anchor:f,hasCreateSuggestion:A,onRemove:()=>{n({url:""}),(0,Bg.speak)((0,tt.__)("Link removed."),"assertive")},onChange:t=>{Bh(t,n,e)}})),(d||h)&&(0,Ke.createElement)("span",{className:"wp-block-navigation__submenu-icon"},(0,Ke.createElement)(bb,null)),(0,Ke.createElement)("div",{...U})))},save:function(){return(0,Ke.createElement)(nt.InnerBlocks.Content,null)},transforms:fb},Eb=()=>Xe({name:xb,metadata:kb,settings:wb}),Cb=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"}));const Sb={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/nextpage"===e.dataset.block,transform:()=>(0,Qe.createBlock)("core/nextpage",{})}]},Bb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/nextpage",title:"Page Break",category:"design",description:"Separate your content into a multi-page experience.",keywords:["next page","pagination"],parent:["core/post-content"],textdomain:"default",supports:{customClassName:!1,className:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-nextpage-editor"},{name:Nb}=Bb,Tb={icon:Cb,example:{},transforms:Sb,edit:function(){return(0,Ke.createElement)("div",{...(0,nt.useBlockProps)()},(0,Ke.createElement)("span",null,(0,tt.__)("Page break")))},save:function(){return(0,Ke.createElement)(_t.RawHTML,null,"\x3c!--nextpage--\x3e")}},Ib=()=>Xe({name:Nb,metadata:Bb,settings:Tb}),Pb=new WeakMap;function Mb(){const e=(0,gt.useRegistry)();if(!Pb.has(e)){const t=new Map;Pb.set(e,zb.bind(null,t))}return Pb.get(e)}function zb(e,{name:t,blocks:n}){const a=[...n];for(;a.length;){const n=a.shift();for(const e of null!==(o=n.innerBlocks)&&void 0!==o?o:[]){var o;a.unshift(e)}"core/pattern"===n.name&&Rb(e,t,n.attributes.slug)}}function Rb(e,t,n){if(e.has(t)||e.set(t,new Set),e.get(t).add(n),Ab(e,t))throw new TypeError(`Pattern ${t} has a circular dependency and cannot be rendered.`)}function Ab(e,t,n=new Set,a=new Set){var o;n.add(t),a.add(t);const r=null!==(o=e.get(t))&&void 0!==o?o:new Set;for(const t of r)if(n.has(t)){if(a.has(t))return!0}else if(Ab(e,t,n,a))return!0;return a.delete(t),!1}const Hb=({attributes:e,clientId:t})=>{const n=(0,gt.useSelect)((t=>t(nt.store).__experimentalGetParsedPattern(e.slug)),[e.slug]),a=(0,gt.useSelect)((e=>e(dt.store).getCurrentTheme()?.stylesheet),[]),{replaceBlocks:o,setBlockEditingMode:r,__unstableMarkNextChangeAsNotPersistent:l}=(0,gt.useDispatch)(nt.store),{getBlockRootClientId:i,getBlockEditingMode:s}=(0,gt.useSelect)(nt.store),[c,m]=(0,_t.useState)(!1),u=Mb();(0,_t.useEffect)((()=>{if(!c&&n?.blocks){try{u(n)}catch(e){return void m(!0)}window.queueMicrotask((()=>{const e=i(t),c=n.blocks.map((e=>(0,Qe.cloneBlock)(function(e){return e.innerBlocks.find((e=>"core/template-part"===e.name))&&(e.innerBlocks=e.innerBlocks.map((e=>("core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=a),e)))),"core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=a),e}(e)))),m=s(e);l(),r(e,"default"),l(),o(t,c),l(),r(e,m)}))}}),[t,c,n,l,o,s,r,i]);const p=(0,nt.useBlockProps)();return c?(0,Ke.createElement)("div",{...p},(0,Ke.createElement)(nt.Warning,null,(0,tt.sprintf)((0,tt.__)('Pattern "%s" cannot be rendered inside itself.'),n?.name))):(0,Ke.createElement)("div",{...p})},Lb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pattern",title:"Pattern placeholder",category:"theme",description:"Show a block pattern.",supports:{html:!1,inserter:!1,renaming:!1,interactivity:{clientNavigation:!0}},textdomain:"default",attributes:{slug:{type:"string"}}},{name:Db}=Lb,Fb={edit:Hb},Vb=()=>Xe({name:Db,metadata:Lb,settings:Fb}),$b=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,Ke.createElement)(Ye.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,Ke.createElement)(Ye.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"}));function Ob(e,t){for(const n of e){if(n.attributes.id===t)return n;if(n.innerBlocks&&n.innerBlocks.length){const e=Ob(n.innerBlocks,t);if(e)return e}}return null}function Gb(e=[],t=null){let n=function(e=[]){const t={},n=[];return e.forEach((({id:e,title:a,link:o,type:r,parent:l})=>{var i;const s=null!==(i=t[e]?.innerBlocks)&&void 0!==i?i:[];t[e]=(0,Qe.createBlock)("core/navigation-link",{id:e,label:a.rendered,url:o,type:r,kind:"post-type"},s),l?(t[l]||(t[l]={innerBlocks:[]}),t[l].innerBlocks.push(t[e])):n.push(t[e])})),n}(e);if(t){const e=Ob(n,t);e&&e.innerBlocks&&(n=e.innerBlocks)}const a=e=>{e.forEach(((e,t,n)=>{const{attributes:o,innerBlocks:r}=e;if(0!==r.length){a(r);const e=(0,Qe.createBlock)("core/navigation-submenu",o,r);n[t]=e}}))};return a(n),n}function Ub({clientId:e,pages:t,parentClientId:n,parentPageID:a}){const{replaceBlock:o,selectBlock:r}=(0,gt.useDispatch)(nt.store);return()=>{const l=Gb(t,a);o(e,l),r(n)}}const qb=(0,tt.__)("This navigation menu displays your website's pages. Editing it will enable you to add, delete, or reorder pages. However, new pages will no longer be added automatically.");function jb({onClick:e,onClose:t,disabled:n}){return(0,Ke.createElement)(et.Modal,{onRequestClose:t,title:(0,tt.__)("Edit Page List"),className:"wp-block-page-list-modal",aria:{describedby:"wp-block-page-list-modal__description"}},(0,Ke.createElement)("p",{id:"wp-block-page-list-modal__description"},qb),(0,Ke.createElement)("div",{className:"wp-block-page-list-modal-buttons"},(0,Ke.createElement)(et.Button,{variant:"tertiary",onClick:t},(0,tt.__)("Cancel")),(0,Ke.createElement)(et.Button,{variant:"primary",disabled:n,onClick:e},(0,tt.__)("Edit"))))}const Wb=()=>{};function Zb({blockProps:e,innerBlocksProps:t,hasResolvedPages:n,blockList:a,pages:o,parentPageID:r}){if(!n)return(0,Ke.createElement)("div",{...e},(0,Ke.createElement)("div",{className:"wp-block-page-list__loading-indicator-container"},(0,Ke.createElement)(et.Spinner,{className:"wp-block-page-list__loading-indicator"})));if(null===o)return(0,Ke.createElement)("div",{...e},(0,Ke.createElement)(et.Notice,{status:"warning",isDismissible:!1},(0,tt.__)("Page List: Cannot retrieve Pages.")));if(0===o.length)return(0,Ke.createElement)("div",{...e},(0,Ke.createElement)(et.Notice,{status:"info",isDismissible:!1},(0,tt.__)("Page List: Cannot retrieve Pages.")));if(0===a.length){const t=o.find((e=>e.id===r));return t?.title?.rendered?(0,Ke.createElement)("div",{...e},(0,Ke.createElement)(nt.Warning,null,(0,tt.sprintf)((0,tt.__)('Page List: "%s" page has no children.'),t.title.rendered))):(0,Ke.createElement)("div",{...e},(0,Ke.createElement)(et.Notice,{status:"warning",isDismissible:!1},(0,tt.__)("Page List: Cannot retrieve Pages.")))}return o.length>0?(0,Ke.createElement)("ul",{...t}):void 0}const Qb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list",title:"Page List",category:"widgets",allowedBlocks:["core/page-list-item"],description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",attributes:{parentPageID:{type:"integer",default:0},isNested:{type:"boolean",default:!1}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:Kb}=Qb,Yb={icon:$b,example:{},edit:function({context:e,clientId:t,attributes:n,setAttributes:a}){const{parentPageID:o}=n,[r,l]=(0,_t.useState)(!1),i=(0,_t.useCallback)((()=>l(!0)),[]),{records:s,hasResolved:c}=(0,dt.useEntityRecords)("postType","page",{per_page:100,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),m="showSubmenuIcon"in e&&s?.length>0&&s?.length<=100,u=(0,_t.useMemo)((()=>{if(null===s)return new Map;const e=s.sort(((e,t)=>e.menu_order===t.menu_order?e.title.rendered.localeCompare(t.title.rendered):e.menu_order-t.menu_order));return e.reduce(((e,t)=>{const{parent:n}=t;return e.has(n)?e.get(n).push(t):e.set(n,[t]),e}),new Map)}),[s]),p=(0,nt.useBlockProps)({className:ut()("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,nt.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,nt.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor}),style:{...e.style?.color}}),d=(0,_t.useMemo)((function e(t=0,n=0){const a=u.get(t);return a?.length?a.reduce(((t,a)=>{const o=u.has(a.id),r={value:a.id,label:"— ".repeat(n)+a.title.rendered,rawName:a.title.rendered};return t.push(r),o&&t.push(...e(a.id,n+1)),t}),[]):[]}),[u]),g=(0,_t.useMemo)((function e(t=o){const n=u.get(t);return n?.length?n.reduce(((t,n)=>{const a=u.has(n.id),o={id:n.id,label:""!==n.title?.rendered?.trim()?n.title?.rendered:(0,tt.__)("(no title)"),title:n.title?.rendered,link:n.url,hasChildren:a};let r=null;const l=e(n.id);return r=(0,Qe.createBlock)("core/page-list-item",o,l),t.push(r),t}),[]):[]}),[u,o]),{isNested:h,hasSelectedChild:b,parentClientId:_,hasDraggedChild:y,isChildOfNavigation:v}=(0,gt.useSelect)((e=>{const{getBlockParentsByBlockName:n,hasSelectedInnerBlock:a,hasDraggedInnerBlock:o}=e(nt.store),r=n(t,"core/navigation-submenu",!0),l=n(t,"core/navigation",!0);return{isNested:r.length>0,isChildOfNavigation:l.length>0,hasSelectedChild:a(t,!0),hasDraggedChild:o(t,!0),parentClientId:l[0]}}),[t]),f=Ub({clientId:t,pages:s,parentClientId:_,parentPageID:o}),k=(0,nt.useInnerBlocksProps)(p,{renderAppender:!1,__unstableDisableDropZone:!0,templateLock:!v&&"all",onInput:Wb,onChange:Wb,value:g}),{selectBlock:x}=(0,gt.useDispatch)(nt.store);return(0,_t.useEffect)((()=>{(b||y)&&(i(),x(_))}),[b,y,_,x,i]),(0,_t.useEffect)((()=>{a({isNested:h})}),[h,a]),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,d.length>0&&(0,Ke.createElement)(et.PanelBody,null,(0,Ke.createElement)(et.ComboboxControl,{__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:(0,tt.__)("Parent"),value:o,options:d,onChange:e=>a({parentPageID:null!=e?e:0}),help:(0,tt.__)("Choose a page to show only its subpages.")})),m&&(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Edit this menu")},(0,Ke.createElement)("p",null,qb),(0,Ke.createElement)(et.Button,{variant:"primary",disabled:!c,onClick:f},(0,tt.__)("Edit")))),m&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(et.ToolbarButton,{title:(0,tt.__)("Edit"),onClick:i},(0,tt.__)("Edit"))),r&&(0,Ke.createElement)(jb,{onClick:f,onClose:()=>l(!1),disabled:!c})),(0,Ke.createElement)(Zb,{blockProps:p,innerBlocksProps:k,hasResolvedPages:c,blockList:g,pages:s,parentPageID:o}))}},Jb=()=>Xe({name:Kb,metadata:Qb,settings:Yb}),Xb=()=>(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},(0,Ke.createElement)(et.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"}));const e_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list-item",title:"Page List Item",category:"widgets",parent:["core/page-list"],description:"Displays a page inside a list of all pages.",keywords:["page","menu","navigation"],textdomain:"default",attributes:{id:{type:"number"},label:{type:"string"},title:{type:"string"},link:{type:"string"},hasChildren:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1,lock:!1,inserter:!1,__experimentalToolbar:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:t_}=e_,n_={__experimentalLabel:({label:e})=>e,icon:ob,example:{},edit:function({context:e,attributes:t}){const{id:n,label:a,link:o,hasChildren:r,title:l}=t,i="showSubmenuIcon"in e,s=(0,gt.useSelect)((e=>{if(!e(dt.store).canUser("read","settings"))return;const t=e(dt.store).getEntityRecord("root","site");return"page"===t?.show_on_front&&t?.page_on_front}),[]),c=bh(hh(e,!0)),m=(0,nt.useBlockProps)(c,{className:"wp-block-pages-list__item"}),u=(0,nt.useInnerBlocksProps)(m);return(0,Ke.createElement)("li",{key:n,className:ut()("wp-block-pages-list__item",{"has-child":r,"wp-block-navigation-item":i,"open-on-click":e.openSubmenusOnClick,"open-on-hover-click":!e.openSubmenusOnClick&&e.showSubmenuIcon,"menu-item-home":n===s})},r&&e.openSubmenusOnClick?(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("button",{type:"button",className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false"},(0,Jn.decodeEntities)(a)),(0,Ke.createElement)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon"},(0,Ke.createElement)(Xb,null))):(0,Ke.createElement)("a",{className:ut()("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":i}),href:o},(0,Jn.decodeEntities)(l)),r&&(0,Ke.createElement)(Ke.Fragment,null,!e.openSubmenusOnClick&&e.showSubmenuIcon&&(0,Ke.createElement)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon","aria-expanded":"false",type:"button"},(0,Ke.createElement)(Xb,null)),(0,Ke.createElement)("ul",{...u})))}},a_=()=>Xe({name:t_,metadata:e_,settings:n_}),o_=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})),r_={className:!1},l_={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},fontSize:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]},style:{type:"object"}},i_=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;const t={};(e.customTextColor||e.customBackgroundColor)&&(t.color={}),e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customFontSize&&(t.typography={fontSize:e.customFontSize});const{customTextColor:n,customBackgroundColor:a,customFontSize:o,...r}=e;return{...r,style:t}},{style:s_,...c_}=l_,m_=[{supports:r_,attributes:{...c_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},save({attributes:e}){const{align:t,content:n,dropCap:a,direction:o}=e,r=ut()({"has-drop-cap":t!==((0,tt.isRTL)()?"left":"right")&&"center"!==t&&a,[`has-text-align-${t}`]:t});return(0,Ke.createElement)("p",{...nt.useBlockProps.save({className:r,dir:o})},(0,Ke.createElement)(nt.RichText.Content,{value:n}))}},{supports:r_,attributes:{...c_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:i_,save({attributes:e}){const{align:t,content:n,dropCap:a,backgroundColor:o,textColor:r,customBackgroundColor:l,customTextColor:i,fontSize:s,customFontSize:c,direction:m}=e,u=(0,nt.getColorClassName)("color",r),p=(0,nt.getColorClassName)("background-color",o),d=(0,nt.getFontSizeClass)(s),g=ut()({"has-text-color":r||i,"has-background":o||l,"has-drop-cap":a,[`has-text-align-${t}`]:t,[d]:d,[u]:u,[p]:p}),h={backgroundColor:p?void 0:l,color:u?void 0:i,fontSize:d?void 0:c};return(0,Ke.createElement)(nt.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:n,dir:m})}},{supports:r_,attributes:{...c_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:i_,save({attributes:e}){const{align:t,content:n,dropCap:a,backgroundColor:o,textColor:r,customBackgroundColor:l,customTextColor:i,fontSize:s,customFontSize:c,direction:m}=e,u=(0,nt.getColorClassName)("color",r),p=(0,nt.getColorClassName)("background-color",o),d=(0,nt.getFontSizeClass)(s),g=ut()({"has-text-color":r||i,"has-background":o||l,"has-drop-cap":a,[d]:d,[u]:u,[p]:p}),h={backgroundColor:p?void 0:l,color:u?void 0:i,fontSize:d?void 0:c,textAlign:t};return(0,Ke.createElement)(nt.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:n,dir:m})}},{supports:r_,attributes:{...c_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate:i_,save({attributes:e}){const{width:t,align:n,content:a,dropCap:o,backgroundColor:r,textColor:l,customBackgroundColor:i,customTextColor:s,fontSize:c,customFontSize:m}=e,u=(0,nt.getColorClassName)("color",l),p=(0,nt.getColorClassName)("background-color",r),d=c&&`is-${c}-text`,g=ut()({[`align${t}`]:t,"has-background":r||i,"has-drop-cap":o,[d]:d,[u]:u,[p]:p}),h={backgroundColor:p?void 0:i,color:u?void 0:s,fontSize:d?void 0:m,textAlign:n};return(0,Ke.createElement)(nt.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:a})}},{supports:r_,attributes:{...c_,fontSize:{type:"number"}},save({attributes:e}){const{width:t,align:n,content:a,dropCap:o,backgroundColor:r,textColor:l,fontSize:i}=e,s=ut()({[`align${t}`]:t,"has-background":r,"has-drop-cap":o}),c={backgroundColor:r,color:l,fontSize:i,textAlign:n};return(0,Ke.createElement)("p",{style:c,className:s||void 0},a)},migrate:e=>i_({...e,customFontSize:Number.isFinite(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&"#"===e.backgroundColor[0]?e.backgroundColor:void 0})},{supports:r_,attributes:{...l_,content:{type:"string",source:"html",default:""}},save:({attributes:e})=>(0,Ke.createElement)(_t.RawHTML,null,e.content),migrate:e=>e}],u_=m_,p_=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Ke.createElement)(Ye.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"}));function d_(e){const{batch:t}=(0,gt.useRegistry)(),{moveBlocksToPosition:n,replaceInnerBlocks:a,duplicateBlocks:o,insertBlock:r}=(0,gt.useDispatch)(nt.store),{getBlockRootClientId:l,getBlockIndex:i,getBlockOrder:s,getBlockName:c,getBlock:m,getNextBlockClientId:u,canInsertBlockType:p}=(0,gt.useSelect)(nt.store),d=(0,_t.useRef)(e);return d.current=e,(0,jt.useRefEffect)((e=>{function g(e){if(e.defaultPrevented)return;if(e.keyCode!==fn.ENTER)return;const{content:g,clientId:h}=d.current;if(g.length)return;const b=l(h);if(!(0,Qe.hasBlockSupport)(c(b),"__experimentalOnEnter",!1))return;const _=s(b),y=_.indexOf(h);if(y===_.length-1){let t=b;for(;!p(c(h),l(t));)t=l(t);return void("string"==typeof t&&(e.preventDefault(),n([h],b,l(t),i(t)+1)))}const v=(0,Qe.getDefaultBlockName)();if(!p(v,l(b)))return;e.preventDefault();const f=m(b);t((()=>{o([b]);const e=i(b);a(b,f.innerBlocks.slice(0,y)),a(u(b),f.innerBlocks.slice(y+1)),r((0,Qe.createBlock)(v),e+1,l(b),!0)}))}return e.addEventListener("keydown",g),()=>{e.removeEventListener("keydown",g)}}),[])}function g_({direction:e,setDirection:t}){return(0,tt.isRTL)()&&(0,Ke.createElement)(et.ToolbarButton,{icon:p_,title:(0,tt._x)("Left to right","editor button"),isActive:"ltr"===e,onClick:()=>{t("ltr"===e?void 0:"ltr")}})}function h_(e){return e===((0,tt.isRTL)()?"left":"right")||"center"===e}function b_({clientId:e,attributes:t,setAttributes:n}){const[a]=(0,nt.useSettings)("typography.dropCap");if(!a)return null;const{align:o,dropCap:r}=t;let l;return l=h_(o)?(0,tt.__)("Not available for aligned text."):r?(0,tt.__)("Showing large initial letter."):(0,tt.__)("Toggle to show a large initial letter."),(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,tt.__)("Drop cap"),onDeselect:()=>n({dropCap:void 0}),resetAllFilter:()=>({dropCap:void 0}),panelId:e},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Drop cap"),checked:!!r,onChange:()=>n({dropCap:!r}),help:l,disabled:!!h_(o)}))}const __=function({attributes:e,mergeBlocks:t,onReplace:n,onRemove:a,setAttributes:o,clientId:r}){const{align:l,content:i,direction:s,dropCap:c,placeholder:m}=e,u=(0,nt.useBlockProps)({ref:d_({clientId:r,content:i}),className:ut()({"has-drop-cap":!h_(l)&&c,[`has-text-align-${l}`]:l}),style:{direction:s}}),p=(0,nt.useBlockEditingMode)();return(0,Ke.createElement)(Ke.Fragment,null,"default"===p&&(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:l,onChange:e=>o({align:e,dropCap:!h_(e)&&c})}),(0,Ke.createElement)(g_,{direction:s,setDirection:e=>o({direction:e})})),(0,Ke.createElement)(nt.InspectorControls,{group:"typography"},(0,Ke.createElement)(b_,{clientId:r,attributes:e,setAttributes:o})),(0,Ke.createElement)(nt.RichText,{identifier:"content",tagName:"p",...u,value:i,onChange:e=>o({content:e}),onSplit:(t,n)=>{let a;(n||t)&&(a={...e,content:t});const o=(0,Qe.createBlock)("core/paragraph",a);return n&&(o.clientId=r),o},onMerge:t,onReplace:n,onRemove:a,"aria-label":nt.RichText.isEmpty(i)?(0,tt.__)("Empty block; start writing or type forward slash to choose a block"):(0,tt.__)("Block: Paragraph"),"data-empty":nt.RichText.isEmpty(i),placeholder:m||(0,tt.__)("Type / to choose a block"),"data-custom-placeholder":!!m||void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0}))};const{name:y_}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",usesContext:["postId"],attributes:{align:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"p",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},v_={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){const t=(0,Qe.getBlockAttributes)(y_,e.outerHTML),{textAlign:n}=e.style||{};return"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),(0,Qe.createBlock)(y_,t)}}]},f_=v_,k_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",usesContext:["postId"],attributes:{align:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"p",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},{name:x_}=k_,w_={icon:o_,example:{attributes:{content:(0,tt.__)("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.")}},__experimentalLabel(e,{context:t}){const n=e?.metadata?.name;if("list-view"===t&&n)return n;if("accessibility"===t){if(n)return n;const{content:t}=e;return t&&0!==t.length?t:(0,tt.__)("Empty")}},transforms:f_,deprecated:u_,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:__,save:function({attributes:e}){const{align:t,content:n,dropCap:a,direction:o}=e,r=ut()({"has-drop-cap":t!==((0,tt.isRTL)()?"left":"right")&&"center"!==t&&a,[`has-text-align-${t}`]:t});return(0,Ke.createElement)("p",{...nt.useBlockProps.save({className:r,dir:o})},(0,Ke.createElement)(nt.RichText.Content,{value:n}))}},E_=()=>Xe({name:x_,metadata:k_,settings:w_}),C_=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})),S_={who:"authors",per_page:100};const B_=function({isSelected:e,context:{postType:t,postId:n,queryId:a},attributes:o,setAttributes:r}){const l=Number.isFinite(a),{authorId:i,authorDetails:s,authors:c}=(0,gt.useSelect)((e=>{const{getEditedEntityRecord:a,getUser:o,getUsers:r}=e(dt.store),l=a("postType",t,n)?.author;return{authorId:l,authorDetails:l?o(l):null,authors:r(S_)}}),[t,n]),{editEntityRecord:m}=(0,gt.useDispatch)(dt.store),{textAlign:u,showAvatar:p,showBio:d,byline:g,isLink:h,linkTarget:b}=o,_=[],y=s?.name||(0,tt.__)("Post Author");s?.avatar_urls&&Object.keys(s.avatar_urls).forEach((e=>{_.push({value:e,label:`${e} x ${e}`})}));const v=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${u}`]:u})}),f=c?.length?c.map((({id:e,name:t})=>({value:e,label:t}))):[],k=e=>{m("postType",t,n,{author:e})},x=f.length>=25,w=!!n&&!l&&f.length>0;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},w&&(x&&(0,Ke.createElement)(et.ComboboxControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Author"),options:f,value:i,onChange:k,allowReset:!1})||(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Author"),value:i,options:f,onChange:k})),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show avatar"),checked:p,onChange:()=>r({showAvatar:!p})}),p&&(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Avatar size"),value:o.avatarSize,options:_,onChange:e=>{r({avatarSize:Number(e)})}}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show bio"),checked:d,onChange:()=>r({showBio:!d})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link author name to author page"),checked:h,onChange:()=>r({isLink:!h})}),h&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===b}))),(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:u,onChange:e=>{r({textAlign:e})}})),(0,Ke.createElement)("div",{...v},p&&s?.avatar_urls&&(0,Ke.createElement)("div",{className:"wp-block-post-author__avatar"},(0,Ke.createElement)("img",{width:o.avatarSize,src:s.avatar_urls[o.avatarSize],alt:s.name})),(0,Ke.createElement)("div",{className:"wp-block-post-author__content"},(!nt.RichText.isEmpty(g)||e)&&(0,Ke.createElement)(nt.RichText,{className:"wp-block-post-author__byline","aria-label":(0,tt.__)("Post author byline text"),placeholder:(0,tt.__)("Write byline…"),value:g,onChange:e=>r({byline:e})}),(0,Ke.createElement)("p",{className:"wp-block-post-author__name"},h?(0,Ke.createElement)("a",{href:"#post-author-pseudo-link",onClick:e=>e.preventDefault()},y):y),d&&(0,Ke.createElement)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:s?.description}}))))},N_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author",title:"Author",category:"theme",description:"Display post author details such as name, avatar, and bio.",textdomain:"default",attributes:{textAlign:{type:"string"},avatarSize:{type:"number",default:48},showAvatar:{type:"boolean",default:!0},showBio:{type:"boolean"},byline:{type:"string"},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","queryId"],supports:{html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDuotone:".wp-block-post-author__avatar img",__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-author"},{name:T_}=N_,I_={icon:C_,edit:B_},P_=()=>Xe({name:T_,metadata:N_,settings:I_});const M_=function({context:{postType:e,postId:t},attributes:{textAlign:n,isLink:a,linkTarget:o},setAttributes:r}){const{authorName:l}=(0,gt.useSelect)((n=>{const{getEditedEntityRecord:a,getUser:o}=n(dt.store),r=a("postType",e,t)?.author;return{authorName:r?o(r):null}}),[e,t]),i=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${n}`]:n})}),s=l?.name||(0,tt.__)("Author Name"),c=a?(0,Ke.createElement)("a",{href:"#author-pseudo-link",onClick:e=>e.preventDefault(),className:"wp-block-post-author-name__link"},s):s;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:n,onChange:e=>{r({textAlign:e})}})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to author archive"),onChange:()=>r({isLink:!a}),checked:a}),a&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===o}))),(0,Ke.createElement)("div",{...i}," ",c," "))},z_={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,Qe.createBlock)("core/post-author-name",{textAlign:e})}],to:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,Qe.createBlock)("core/post-author",{textAlign:e})}]},R_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-name",title:"Author Name",category:"theme",description:"The author name.",textdomain:"default",attributes:{textAlign:{type:"string"},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:A_}=R_,H_={icon:C_,transforms:z_,edit:M_},L_=()=>Xe({name:A_,metadata:R_,settings:H_});const D_=function({context:{postType:e,postId:t},attributes:{textAlign:n},setAttributes:a}){const{authorDetails:o}=(0,gt.useSelect)((n=>{const{getEditedEntityRecord:a,getUser:o}=n(dt.store),r=a("postType",e,t)?.author;return{authorDetails:r?o(r):null}}),[e,t]),r=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${n}`]:n})}),l=o?.description||(0,tt.__)("Author Biography");return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:n,onChange:e=>{a({textAlign:e})}})),(0,Ke.createElement)("div",{...r,dangerouslySetInnerHTML:{__html:l}}))},F_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-biography",title:"Author Biography",category:"theme",description:"The author biography.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postType","postId"],supports:{spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:V_}=F_,$_={icon:C_,edit:D_},O_=()=>Xe({name:V_,metadata:F_,settings:$_}),G_=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.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"})),U_=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];const q_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comment",title:"Comment (deprecated)",category:"theme",allowedBlocks:["core/avatar","core/comment-author-name","core/comment-content","core/comment-date","core/comment-edit-link","core/comment-reply-link"],description:"This block is deprecated. Please use the Comments block instead.",textdomain:"default",attributes:{commentId:{type:"number"}},providesContext:{commentId:"commentId"},supports:{html:!1,inserter:!1,interactivity:{clientNavigation:!0}}},{name:j_}=q_,W_={icon:kp,edit:function({attributes:{commentId:e},setAttributes:t}){const[n,a]=(0,_t.useState)(e),o=(0,nt.useBlockProps)(),r=(0,nt.useInnerBlocksProps)(o,{template:U_});return e?(0,Ke.createElement)("div",{...r}):(0,Ke.createElement)("div",{...o},(0,Ke.createElement)(et.Placeholder,{icon:G_,label:(0,tt._x)("Post Comment","block title"),instructions:(0,tt.__)("To show a comment, input the comment ID.")},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,value:e,onChange:e=>a(parseInt(e))}),(0,Ke.createElement)(et.Button,{variant:"primary",onClick:()=>{t({commentId:n})}},(0,tt.__)("Save"))))},save:function(){const e=nt.useBlockProps.save(),t=nt.useInnerBlocksProps.save(e);return(0,Ke.createElement)("div",{...t})}},Z_=()=>Xe({name:j_,metadata:q_,settings:W_}),Q_=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"}));const K_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comments-count",title:"Comments Count",category:"theme",description:"Display a post's comments count.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId"],supports:{html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Y_}=K_,J_={icon:Q_,edit:function({attributes:e,context:t,setAttributes:n}){const{textAlign:a}=e,{postId:o}=t,[r,l]=(0,_t.useState)(),i=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${a}`]:a})});(0,_t.useEffect)((()=>{if(!o)return;const e=o;jo()({path:(0,pt.addQueryArgs)("/wp/v2/comments",{post:o}),parse:!1}).then((t=>{e===o&&l(t.headers.get("X-WP-Total"))}))}),[o]);const s=o&&void 0!==r,c={...i.style,textDecoration:s?i.style?.textDecoration:void 0};return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:a,onChange:e=>{n({textAlign:e})}})),(0,Ke.createElement)("div",{...i,style:c},s?r:(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Post Comments Count block: post not found."))))}},X_=()=>Xe({name:Y_,metadata:K_,settings:J_}),ey=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"}));const ty={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-comments-form",title:"Comments Form",category:"theme",description:"Display a post's comments form.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-comments-form-editor",style:["wp-block-post-comments-form","wp-block-buttons","wp-block-button"]},{name:ny}=ty,ay={icon:ey,edit:function e({attributes:t,context:n,setAttributes:a}){const{textAlign:o}=t,{postId:r,postType:l}=n,i=(0,jt.useInstanceId)(e),s=(0,tt.sprintf)("comments-form-edit-%d-desc",i),c=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${o}`]:o}),"aria-describedby":s});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:o,onChange:e=>{a({textAlign:e})}})),(0,Ke.createElement)("div",{...c},(0,Ke.createElement)(eo,{postId:r,postType:l}),(0,Ke.createElement)(et.VisuallyHidden,{id:s},(0,tt.__)("Comments form disabled in editor."))))}},oy=()=>Xe({name:ny,metadata:ty,settings:ay});const ry=function({context:e,attributes:t,setAttributes:n}){const{textAlign:a}=t,{postType:o,postId:r}=e,[l,i]=(0,_t.useState)(),s=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${a}`]:a})});(0,_t.useEffect)((()=>{if(!r)return;const e=r;jo()({path:(0,pt.addQueryArgs)("/wp/v2/comments",{post:r}),parse:!1}).then((t=>{e===r&&i(t.headers.get("X-WP-Total"))}))}),[r]);const c=(0,gt.useSelect)((e=>e(dt.store).getEditedEntityRecord("postType",o,r)),[o,r]);if(!c)return null;const{link:m}=c;let u;if(void 0!==l){const e=parseInt(l);u=0===e?(0,tt.__)("No comments"):(0,tt.sprintf)((0,tt._n)("%s comment","%s comments",e),e.toLocaleString())}return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:a,onChange:e=>{n({textAlign:e})}})),(0,Ke.createElement)("div",{...s},m&&void 0!==u?(0,Ke.createElement)("a",{href:m+"#comments",onClick:e=>e.preventDefault()},u):(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Post Comments Link block: post not found."))))},ly={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comments-link",title:"Comments Link",category:"theme",description:"Displays the link to the current post comments.",textdomain:"default",usesContext:["postType","postId"],attributes:{textAlign:{type:"string"}},supports:{html:!1,color:{link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:iy}=ly,sy={edit:ry,icon:Q_},cy=()=>Xe({name:iy,metadata:ly,settings:sy}),my=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"}));function uy(e,t,n){return(0,gt.useSelect)((a=>a(dt.store).canUserEditEntityRecord(e,t,n)),[e,t,n])}function py({layoutClassNames:e,userCanEdit:t,postType:n,postId:a}){const[,,o]=(0,dt.useEntityProp)("postType",n,"content",a),r=(0,nt.useBlockProps)({className:e});return o?.protected&&!t?(0,Ke.createElement)("div",{...r},(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("This content is password protected."))):(0,Ke.createElement)("div",{...r,dangerouslySetInnerHTML:{__html:o?.rendered}})}function dy({context:e={}}){const{postType:t,postId:n}=e,[a,o,r]=(0,dt.useEntityBlockEditor)("postType",t,{id:n}),l=(0,gt.useSelect)((e=>e(dt.store).getEntityRecord("postType",t,n)),[t,n]),i=!!l?.content?.raw||a?.length,s=(0,nt.useInnerBlocksProps)((0,nt.useBlockProps)({className:"entry-content"}),{value:a,onInput:o,onChange:r,template:i?void 0:[["core/paragraph"]]});return(0,Ke.createElement)("div",{...s})}function gy(e){const{context:{queryId:t,postType:n,postId:a}={},layoutClassNames:o}=e,r=uy("postType",n,a);if(void 0===r)return null;const l=Number.isFinite(t);return r&&!l?(0,Ke.createElement)(dy,{...e}):(0,Ke.createElement)(py,{layoutClassNames:o,userCanEdit:r,postType:n,postId:a})}function hy({layoutClassNames:e}){const t=(0,nt.useBlockProps)({className:e});return(0,Ke.createElement)("div",{...t},(0,Ke.createElement)("p",null,(0,tt.__)("This is the Content block, it will display all the blocks in any single post or page.")),(0,Ke.createElement)("p",null,(0,tt.__)("That might be a simple arrangement like consecutive paragraphs in a blog post, or a more elaborate composition that includes image galleries, videos, tables, columns, and any other block types.")),(0,Ke.createElement)("p",null,(0,tt.__)("If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.")))}function by(){const e=(0,nt.useBlockProps)();return(0,Ke.createElement)("div",{...e},(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Block cannot be rendered inside itself.")))}const _y={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-content",title:"Content",category:"theme",description:"Displays the contents of a post or page.",textdomain:"default",usesContext:["postId","postType","queryId"],supports:{align:["wide","full"],html:!1,layout:!0,dimensions:{minHeight:!0},spacing:{blockGap:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!1,text:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-content-editor"},{name:yy}=_y,vy={icon:my,edit:function({context:e,__unstableLayoutClassNames:t}){const{postId:n,postType:a}=e,o=(0,nt.useHasRecursion)(n);return n&&a&&o?(0,Ke.createElement)(by,null):(0,Ke.createElement)(nt.RecursionProvider,{uniqueId:n},n&&a?(0,Ke.createElement)(gy,{context:e,layoutClassNames:t}):(0,Ke.createElement)(hy,{layoutClassNames:t}))}},fy=()=>Xe({name:yy,metadata:_y,settings:vy});function ky(e){return/(?:^|[^\\])[aAgh]/.test(e)}const xy={attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:ln,isEligible:({style:e})=>e?.typography?.fontFamily},wy=[xy],Ey=[{name:"post-date-modified",title:(0,tt.__)("Modified Date"),description:(0,tt.__)("Display a post's last updated date."),attributes:{displayType:"modified"},scope:["block","inserter"],isActive:e=>"modified"===e.displayType,icon:Co}],Cy=Ey,Sy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-date",title:"Date",category:"theme",description:"Display the publish date for an entry such as a post or page.",textdomain:"default",attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1},displayType:{type:"string",default:"date"}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:By}=Sy,Ny={icon:Co,edit:function({attributes:{textAlign:e,format:t,isLink:n,displayType:a},context:{postId:o,postType:r,queryId:l},setAttributes:i}){const s=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${e}`]:e,"wp-block-post-date__modified-date":"modified"===a})}),[c,m]=(0,_t.useState)(null),u=(0,_t.useMemo)((()=>({anchor:c})),[c]),p=Number.isFinite(l),d=(0,So.getSettings)(),[g=d.formats.date]=(0,dt.useEntityProp)("root","site","date_format"),[h=d.formats.time]=(0,dt.useEntityProp)("root","site","time_format"),[b,_]=(0,dt.useEntityProp)("postType",r,a,o),y=(0,gt.useSelect)((e=>r?e(dt.store).getPostType(r):null),[r]),v="date"===a?(0,tt.__)("Post Date"):(0,tt.__)("Post Modified Date");let f=b?(0,Ke.createElement)("time",{dateTime:(0,So.dateI18n)("c",b),ref:m},(0,So.dateI18n)(t||g,b)):v;return n&&b&&(f=(0,Ke.createElement)("a",{href:"#post-date-pseudo-link",onClick:e=>e.preventDefault()},f)),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:e,onChange:e=>{i({textAlign:e})}}),b&&"date"===a&&!p&&(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.Dropdown,{popoverProps:u,renderContent:({onClose:e})=>(0,Ke.createElement)(nt.__experimentalPublishDateTimePicker,{currentDate:b,onChange:_,is12Hour:ky(h),onClose:e}),renderToggle:({isOpen:e,onToggle:t})=>(0,Ke.createElement)(et.ToolbarButton,{"aria-expanded":e,icon:Di,title:(0,tt.__)("Change Date"),onClick:t,onKeyDown:n=>{e||n.keyCode!==fn.DOWN||(n.preventDefault(),t())}})}))),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(nt.__experimentalDateFormatPicker,{format:t,defaultFormat:g,onChange:e=>i({format:e})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:y?.labels.singular_name?(0,tt.sprintf)((0,tt.__)("Link to %s"),y.labels.singular_name.toLowerCase()):(0,tt.__)("Link to post"),onChange:()=>i({isLink:!n}),checked:n}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display last modified date"),onChange:e=>i({displayType:e?"modified":"date"}),checked:"modified"===a,help:(0,tt.__)("Only shows if the post has been modified")}))),(0,Ke.createElement)("div",{...s},f))},deprecated:wy,variations:Cy},Ty=()=>Xe({name:By,metadata:Sy,settings:Ny}),Iy=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"}));const Py={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,Qe.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,Qe.createBlock)("core/post-content")}]},My={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-excerpt",title:"Excerpt",category:"theme",description:"Display the excerpt.",textdomain:"default",attributes:{textAlign:{type:"string"},moreText:{type:"string"},showMoreOnNewLine:{type:"boolean",default:!0},excerptLength:{type:"number",default:55}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-post-excerpt-editor",style:"wp-block-post-excerpt"},{name:zy}=My,Ry={icon:Iy,transforms:Py,edit:function({attributes:{textAlign:e,moreText:t,showMoreOnNewLine:n,excerptLength:a},setAttributes:o,isSelected:r,context:{postId:l,postType:i,queryId:s}}){const c=Number.isFinite(s),m=uy("postType",i,l),[u,p,{rendered:d,protected:g}={}]=(0,dt.useEntityProp)("postType",i,"excerpt",l),h=(0,gt.useSelect)((e=>"page"===i||!!e(dt.store).getPostType(i)?.supports?.excerpt),[i]),b=m&&!c&&h,_=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${e}`]:e})}),y=(0,tt._x)("words","Word count type. Do not translate!"),v=(0,_t.useMemo)((()=>{if(!d)return"";const e=(new window.DOMParser).parseFromString(d,"text/html");return e.body.textContent||e.body.innerText||""}),[d]);if(!i||!l)return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(nt.AlignmentToolbar,{value:e,onChange:e=>o({textAlign:e})})),(0,Ke.createElement)("div",{..._},(0,Ke.createElement)("p",null,(0,tt.__)("This block will display the excerpt."))));if(g&&!m)return(0,Ke.createElement)("div",{..._},(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("The content is currently protected and does not have the available excerpt.")));const f=(0,Ke.createElement)(nt.RichText,{className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,tt.__)("“Read more” link text"),placeholder:(0,tt.__)('Add "read more" link text'),value:t,onChange:e=>o({moreText:e}),withoutInteractiveFormatting:!0}),k=ut()("wp-block-post-excerpt__excerpt",{"is-inline":!n}),x=(u||v).trim();let w="";if("words"===y)w=x.split(" ",a).join(" ");else if("characters_excluding_spaces"===y){const e=x.split("",a).join(""),t=e.length-e.replaceAll(" ","").length;w=x.split("",a+t).join("")}else"characters_including_spaces"===y&&(w=x.split("",a).join(""));const E=w!==x,C=b?(0,Ke.createElement)(nt.RichText,{className:k,"aria-label":(0,tt.__)("Excerpt text"),value:r?x:(E?w+"…":x)||(0,tt.__)("No excerpt found"),onChange:p,tagName:"p"}):(0,Ke.createElement)("p",{className:k},E?w+"…":x||(0,tt.__)("No excerpt found"));return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(nt.AlignmentToolbar,{value:e,onChange:e=>o({textAlign:e})})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show link on new line"),checked:n,onChange:e=>o({showMoreOnNewLine:e})}),(0,Ke.createElement)(et.RangeControl,{label:(0,tt.__)("Max number of words"),value:a,onChange:e=>{o({excerptLength:e})},min:"10",max:"100"}))),(0,Ke.createElement)("div",{..._},C,!n&&" ",n?(0,Ke.createElement)("p",{className:"wp-block-post-excerpt__more-text"},f):f))}},Ay=()=>Xe({name:zy,metadata:My,settings:Ry}),Hy=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})),Ly=(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"cover",label:(0,tt._x)("Cover","Scale option for Image dimension control")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"contain",label:(0,tt._x)("Contain","Scale option for Image dimension control")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"fill",label:(0,tt._x)("Fill","Scale option for Image dimension control")})),Dy="cover",Fy={cover:(0,tt.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:(0,tt.__)("Image is scaled to fill the space without clipping nor distorting."),fill:(0,tt.__)("Image will be stretched and distorted to completely fill the space.")},Vy=({clientId:e,attributes:{aspectRatio:t,width:n,height:a,scale:o,sizeSlug:r},setAttributes:l,imageSizeOptions:i=[]})=>{const[s]=(0,nt.useSettings)("spacing.units"),c=(0,et.__experimentalUseCustomUnits)({availableUnits:s||["px","%","vw","em","rem"]}),m=(e,t)=>{const n=parseFloat(t);isNaN(n)&&t||l({[e]:n<0?"0":t})},u=(0,tt._x)("Scale","Image scaling options"),p=a||t&&"auto"!==t;return(0,Ke.createElement)(nt.InspectorControls,{group:"dimensions"},(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,tt.__)("Aspect ratio"),onDeselect:()=>l({aspectRatio:void 0}),resetAllFilter:()=>({aspectRatio:void 0}),isShownByDefault:!0,panelId:e},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Aspect ratio"),value:t,options:[{label:(0,tt.__)("Original"),value:"auto"},{label:(0,tt.__)("Square"),value:"1"},{label:(0,tt.__)("16:9"),value:"16/9"},{label:(0,tt.__)("4:3"),value:"4/3"},{label:(0,tt.__)("3:2"),value:"3/2"},{label:(0,tt.__)("9:16"),value:"9/16"},{label:(0,tt.__)("3:4"),value:"3/4"},{label:(0,tt.__)("2:3"),value:"2/3"}],onChange:e=>l({aspectRatio:e})})),(0,Ke.createElement)(et.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!a,label:(0,tt.__)("Height"),onDeselect:()=>l({height:void 0}),resetAllFilter:()=>({height:void 0}),isShownByDefault:!0,panelId:e},(0,Ke.createElement)(et.__experimentalUnitControl,{label:(0,tt.__)("Height"),labelPosition:"top",value:a||"",min:0,onChange:e=>m("height",e),units:c})),(0,Ke.createElement)(et.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!n,label:(0,tt.__)("Width"),onDeselect:()=>l({width:void 0}),resetAllFilter:()=>({width:void 0}),isShownByDefault:!0,panelId:e},(0,Ke.createElement)(et.__experimentalUnitControl,{label:(0,tt.__)("Width"),labelPosition:"top",value:n||"",min:0,onChange:e=>m("width",e),units:c})),p&&(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>!!o&&o!==Dy,label:u,onDeselect:()=>l({scale:Dy}),resetAllFilter:()=>({scale:Dy}),isShownByDefault:!0,panelId:e},(0,Ke.createElement)(et.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:u,value:o,help:Fy[o],onChange:e=>l({scale:e}),isBlock:!0},Ly)),!!i.length&&(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,tt.__)("Resolution"),onDeselect:()=>l({sizeSlug:void 0}),resetAllFilter:()=>({sizeSlug:void 0}),isShownByDefault:!1,panelId:e},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Resolution"),value:r||"full",options:i,onChange:e=>l({sizeSlug:e}),help:(0,tt.__)("Select the size of the source image.")})))};const $y=(0,jt.compose)([(0,nt.withColors)({overlayColor:"background-color"})])((({clientId:e,attributes:t,setAttributes:n,overlayColor:a,setOverlayColor:o})=>{const{dimRatio:r}=t,{gradientClass:l,gradientValue:i,setGradient:s}=(0,nt.__experimentalUseGradient)(),c=(0,nt.__experimentalUseMultipleOriginColorsAndGradients)(),m=(0,nt.__experimentalUseBorderProps)(t),u={backgroundColor:a.color,backgroundImage:i,...m.style};return c.hasColorsOrGradients?(0,Ke.createElement)(Ke.Fragment,null,!!r&&(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut()("wp-block-post-featured-image__overlay",(p=r,void 0===p?null:"has-background-dim-"+10*Math.round(p/10)),{[a.class]:a.class,"has-background-dim":void 0!==r,"has-background-gradient":i,[l]:l},m.className),style:u}),(0,Ke.createElement)(nt.InspectorControls,{group:"color"},(0,Ke.createElement)(nt.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:a.color,gradientValue:i,label:(0,tt.__)("Overlay"),onColorChange:o,onGradientChange:s,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0})}],panelId:e,...c}),(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>void 0!==r,label:(0,tt.__)("Overlay opacity"),onDeselect:()=>n({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e},(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Overlay opacity"),value:r,onChange:e=>n({dimRatio:e}),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})))):null;var p})),Oy=["image"];const Gy={onClick:e=>e.preventDefault(),"aria-disabled":!0};const Uy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-featured-image",title:"Featured Image",category:"theme",description:"Display a post's featured image.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1},aspectRatio:{type:"string"},width:{type:"string"},height:{type:"string"},scale:{type:"string",default:"cover"},sizeSlug:{type:"string"},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"},overlayColor:{type:"string"},customOverlayColor:{type:"string"},dimRatio:{type:"number",default:0},gradient:{type:"string"},customGradient:{type:"string"},useFirstImageFromPost:{type:"boolean",default:!1}},usesContext:["postId","postType","queryId"],supports:{align:["left","right","center","wide","full"],color:{__experimentalDuotone:"img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before",text:!1,background:!1},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSelector:"img, .block-editor-media-placeholder, .wp-block-post-featured-image__overlay",__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},html:!1,spacing:{margin:!0,padding:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-post-featured-image-editor",style:"wp-block-post-featured-image"},{name:qy}=Uy,jy={icon:Hy,edit:function({clientId:e,attributes:t,setAttributes:n,context:{postId:a,postType:o,queryId:r}}){const l=Number.isFinite(r),{isLink:i,aspectRatio:s,height:c,width:m,scale:u,sizeSlug:p,rel:d,linkTarget:g,useFirstImageFromPost:h}=t,[b,_]=(0,dt.useEntityProp)("postType",o,"featured_media",a),[y]=(0,dt.useEntityProp)("postType",o,"content",a),v=(0,_t.useMemo)((()=>{if(b)return b;if(!h)return;const e=/<!--\s+wp:(?:core\/)?image\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*)?}\s+)?-->/.exec(y);return e?.groups?.attrs&&JSON.parse(e.groups.attrs)?.id}),[b,h,y]),{media:f,postType:k,postPermalink:x}=(0,gt.useSelect)((e=>{const{getMedia:t,getPostType:n,getEditedEntityRecord:r}=e(dt.store);return{media:v&&t(v,{context:"view"}),postType:o&&n(o),postPermalink:r("postType",o,a)?.link}}),[v,o,a]),w=function(e,t){return e?.media_details?.sizes?.[t]?.source_url||e?.source_url}(f,p),E=(0,gt.useSelect)((e=>e(nt.store).getSettings().imageSizes),[]).filter((({slug:e})=>f?.media_details?.sizes?.[e]?.source_url)).map((({name:e,slug:t})=>({value:t,label:e}))),C=(0,nt.useBlockProps)({style:{width:m,height:c,aspectRatio:s}}),S=(0,nt.__experimentalUseBorderProps)(t),B=(0,nt.useBlockEditingMode)(),N=e=>(0,Ke.createElement)(et.Placeholder,{className:ut()("block-editor-media-placeholder",S.className),withIllustration:!0,style:{height:!!s&&"100%",width:!!s&&"100%",...S.style}},e),T=e=>{e?.id&&_(e.id)},{createErrorNotice:I}=(0,gt.useDispatch)(Pt.store),P=e=>{I(e,{type:"snackbar"})},M="default"===B&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)($y,{attributes:t,setAttributes:n,clientId:e}),(0,Ke.createElement)(Vy,{clientId:e,attributes:t,setAttributes:n,imageSizeOptions:E}),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:k?.labels.singular_name?(0,tt.sprintf)((0,tt.__)("Link to %s"),k.labels.singular_name):(0,tt.__)("Link to post"),onChange:()=>n({isLink:!i}),checked:i}),i&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>n({linkTarget:e?"_blank":"_self"}),checked:"_blank"===g}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link rel"),value:d,onChange:e=>n({rel:e})})))));let z;if(!v&&(l||!a))return(0,Ke.createElement)(Ke.Fragment,null,M,(0,Ke.createElement)("div",{...C},i?(0,Ke.createElement)("a",{href:x,target:g,...Gy},N()):N()));const R=(0,tt.__)("Add a featured image"),A={...S.style,height:s?"100%":c,width:!!s&&"100%",objectFit:!(!c&&!s)&&u};return z=v?f?(0,Ke.createElement)("img",{className:S.className,src:w,alt:f.alt_text?(0,tt.sprintf)((0,tt.__)("Featured image: %s"),f.alt_text):(0,tt.__)("Featured image"),style:A}):N():(0,Ke.createElement)(nt.MediaPlaceholder,{onSelect:T,accept:"image/*",allowedTypes:Oy,onError:P,placeholder:N,mediaLibraryButton:({open:e})=>(0,Ke.createElement)(et.Button,{icon:np,variant:"primary",label:R,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{e()}})}),(0,Ke.createElement)(Ke.Fragment,null,M,!!f&&!l&&(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(nt.MediaReplaceFlow,{mediaId:v,mediaURL:w,allowedTypes:Oy,accept:"image/*",onSelect:T,onError:P},(0,Ke.createElement)(et.MenuItem,{onClick:()=>_(0)},(0,tt.__)("Reset")))),(0,Ke.createElement)("figure",{...C},i?(0,Ke.createElement)("a",{href:x,target:g,...Gy},z):z))}},Wy=()=>Xe({name:qy,metadata:Uy,settings:jy});const Zy=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})),Qy=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})),Ky=[{isDefault:!0,name:"post-next",title:(0,tt.__)("Next post"),description:(0,tt.__)("Displays the post link that follows the current post."),icon:Zy,attributes:{type:"next"},scope:["inserter","transform"]},{name:"post-previous",title:(0,tt.__)("Previous post"),description:(0,tt.__)("Displays the post link that precedes the current post."),icon:Qy,attributes:{type:"previous"},scope:["inserter","transform"]}];Ky.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));const Yy=Ky,Jy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-navigation-link",title:"Post Navigation Link",category:"theme",description:"Displays the next or previous post link that is adjacent to the current post.",textdomain:"default",attributes:{textAlign:{type:"string"},type:{type:"string",default:"next"},label:{type:"string"},showTitle:{type:"boolean",default:!1},linkLabel:{type:"boolean",default:!1},arrow:{type:"string",default:"none"},taxonomy:{type:"string",default:""}},usesContext:["postType"],supports:{reusable:!1,html:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-navigation-link"},{name:Xy}=Jy,ev={edit:function({context:{postType:e},attributes:{type:t,label:n,showTitle:a,textAlign:o,linkLabel:r,arrow:l,taxonomy:i},setAttributes:s}){const c="next"===t;let m=c?(0,tt.__)("Next"):(0,tt.__)("Previous");const u={none:"",arrow:c?"→":"←",chevron:c?"»":"«"}[l];a&&(m=c?(0,tt.__)("Next: "):(0,tt.__)("Previous: "));const p=c?(0,tt.__)("Next post"):(0,tt.__)("Previous post"),d=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${o}`]:o})}),g=(0,gt.useSelect)((t=>{const{getTaxonomies:n}=t(dt.store);return n({type:e,per_page:-1})}),[e]);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display the title as a link"),help:(0,tt.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!a,onChange:()=>s({showTitle:!a})}),a&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Include the label as part of the link"),checked:!!r,onChange:()=>s({linkLabel:!r})}),(0,Ke.createElement)(et.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Arrow"),value:l,onChange:e=>{s({arrow:e})},help:(0,tt.__)("A decorative arrow for the next and previous link."),isBlock:!0},(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"none",label:(0,tt._x)("None","Arrow option for Next/Previous link")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,tt._x)("Arrow","Arrow option for Next/Previous link")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,tt._x)("Chevron","Arrow option for Next/Previous link")})))),(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.SelectControl,{label:(0,tt.__)("Filter by taxonomy"),value:i,options:[{label:(0,tt.__)("Unfiltered"),value:""},...(null!=g?g:[]).filter((({visibility:e})=>!!e?.publicly_queryable)).map((e=>({value:e.slug,label:e.name})))],onChange:e=>s({taxonomy:e}),help:(0,tt.__)("Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.")})),(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(nt.AlignmentToolbar,{value:o,onChange:e=>{s({textAlign:e})}})),(0,Ke.createElement)("div",{...d},!c&&u&&(0,Ke.createElement)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${l}`},u),(0,Ke.createElement)(nt.RichText,{tagName:"a","aria-label":p,placeholder:m,value:n,allowedFormats:["core/bold","core/italic"],onChange:e=>s({label:e})}),a&&(0,Ke.createElement)("a",{href:"#post-navigation-pseudo-link",onClick:e=>e.preventDefault()},(0,tt.__)("An example title")),c&&u&&(0,Ke.createElement)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${l}`,"aria-hidden":!0},u)))},variations:Yy},tv=()=>Xe({name:Xy,metadata:Jy,settings:ev}),nv=[["core/post-title"],["core/post-date"],["core/post-excerpt"]];function av(){const e=(0,nt.useInnerBlocksProps)({className:"wp-block-post"},{template:nv,__unstableDisableLayoutClassNames:!0});return(0,Ke.createElement)("li",{...e})}const ov=(0,_t.memo)((function({blocks:e,blockContextId:t,isHidden:n,setActiveBlockContextId:a}){const o=(0,nt.__experimentalUseBlockPreview)({blocks:e,props:{className:"wp-block-post"}}),r=()=>{a(t)},l={display:n?"none":void 0};return(0,Ke.createElement)("li",{...o,tabIndex:0,role:"button",onClick:r,onKeyPress:r,style:l})}));const rv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-template",title:"Post Template",category:"theme",parent:["core/query"],description:"Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",textdomain:"default",usesContext:["queryId","query","displayLayout","templateSlug","previewPostType","enhancedPagination"],supports:{reusable:!1,html:!1,align:["wide","full"],layout:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-template",editorStyle:"wp-block-post-template-editor"},{name:lv}=rv,iv={icon:Uo,edit:function({setAttributes:e,clientId:t,context:{query:{perPage:n,offset:a=0,postType:o,order:r,orderBy:l,author:i,search:s,exclude:c,sticky:m,inherit:u,taxQuery:p,parents:d,pages:g,...h}={},templateSlug:b,previewPostType:_},attributes:{layout:y},__unstableLayoutClassNames:v}){const{type:f,columnCount:k=3}=y||{},[x,w]=(0,_t.useState)(),{posts:E,blocks:C}=(0,gt.useSelect)((e=>{const{getEntityRecords:g,getTaxonomies:y}=e(dt.store),{getBlocks:v}=e(nt.store),f=u&&b?.startsWith("category-")&&g("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:b.replace("category-","")}),k={offset:a||0,order:r,orderby:l};if(p&&!u){const e=y({type:o,per_page:-1,context:"view"}),t=Object.entries(p).reduce(((t,[n,a])=>{const o=e?.find((({slug:e})=>e===n));return o?.rest_base&&(t[o?.rest_base]=a),t}),{});Object.keys(t).length&&Object.assign(k,t)}n&&(k.per_page=n),i&&(k.author=i),s&&(k.search=s),c?.length&&(k.exclude=c),d?.length&&(k.parent=d),m&&(k.sticky="only"===m),u&&(b?.startsWith("archive-")?(k.postType=b.replace("archive-",""),o=k.postType):f&&(k.categories=f[0]?.id));return{posts:g("postType",_||o,{...k,...h}),blocks:v(t)}}),[n,a,r,l,t,i,s,o,c,m,u,b,p,d,h,_]),S=(0,_t.useMemo)((()=>E?.map((e=>({postType:e.type,postId:e.id})))),[E]),B=(0,nt.useBlockProps)({className:ut()(v,{[`columns-${k}`]:"grid"===f&&k})});if(!E)return(0,Ke.createElement)("p",{...B},(0,Ke.createElement)(et.Spinner,null));if(!E.length)return(0,Ke.createElement)("p",{...B}," ",(0,tt.__)("No results found."));const N=t=>e({layout:{...y,...t}}),T=[{icon:Tp,title:(0,tt.__)("List view"),onClick:()=>N({type:"default"}),isActive:"default"===f||"constrained"===f},{icon:Xm,title:(0,tt.__)("Grid view"),onClick:()=>N({type:"grid",columnCount:k}),isActive:"grid"===f}];return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,{controls:T})),(0,Ke.createElement)("ul",{...B},S&&S.map((e=>(0,Ke.createElement)(nt.BlockContextProvider,{key:e.postId,value:e},e.postId===(x||S[0]?.postId)?(0,Ke.createElement)(av,null):null,(0,Ke.createElement)(ov,{blocks:C,blockContextId:e.postId,setActiveBlockContextId:w,isHidden:e.postId===(x||S[0]?.postId)}))))))},save:function(){return(0,Ke.createElement)(nt.InnerBlocks.Content,null)}},sv=()=>Xe({name:lv,metadata:rv,settings:iv}),cv=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",fillRule:"evenodd",clipRule:"evenodd"})),mv=[];const uv=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];const pv=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})),dv={category:cv,post_tag:pv};function gv(e,t){if("core/post-terms"!==t)return e;const n=e.variations.map((e=>{var t;return{...e,icon:null!==(t=dv[e.name])&&void 0!==t?t:cv}}));return{...e,variations:n}}const hv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-terms",title:"Post Terms",category:"theme",description:"Post terms.",textdomain:"default",attributes:{term:{type:"string"},textAlign:{type:"string"},separator:{type:"string",default:", "},prefix:{type:"string",default:""},suffix:{type:"string",default:""}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-terms"},{name:bv}=hv,_v={icon:cv,edit:function({attributes:e,clientId:t,context:n,isSelected:a,setAttributes:o,insertBlocksAfter:r}){const{term:l,textAlign:i,separator:s,prefix:c,suffix:m}=e,{postId:u,postType:p}=n,d=(0,gt.useSelect)((e=>{if(!l)return{};const{getTaxonomy:t}=e(dt.store),n=t(l);return n?.visibility?.publicly_queryable?n:{}}),[l]),{postTerms:g,hasPostTerms:h,isLoading:b}=function({postId:e,term:t}){const{slug:n}=t;return(0,gt.useSelect)((a=>{const o=t?.visibility?.publicly_queryable;if(!o)return{postTerms:mv,isLoading:!1,hasPostTerms:!1};const{getEntityRecords:r,isResolving:l}=a(dt.store),i=["taxonomy",n,{post:e,per_page:-1,context:"view"}],s=r(...i);return{postTerms:s,isLoading:l("getEntityRecords",i),hasPostTerms:!!s?.length}}),[e,t?.visibility?.publicly_queryable,n])}({postId:u,term:d}),_=u&&p,y=(0,nt.useBlockDisplayInformation)(t),v=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${i}`]:i,[`taxonomy-${l}`]:l})});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(nt.AlignmentToolbar,{value:i,onChange:e=>{o({textAlign:e})}})),(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,tt.__)("Separator"),value:s||"",onChange:e=>{o({separator:e})},help:(0,tt.__)("Enter character(s) used to separate terms.")})),(0,Ke.createElement)("div",{...v},b&&_&&(0,Ke.createElement)(et.Spinner,null),!b&&(a||c)&&(0,Ke.createElement)(nt.RichText,{allowedFormats:uv,className:"wp-block-post-terms__prefix","aria-label":(0,tt.__)("Prefix"),placeholder:(0,tt.__)("Prefix")+" ",value:c,onChange:e=>o({prefix:e}),tagName:"span"}),(!_||!l)&&(0,Ke.createElement)("span",null,y.title),_&&!b&&h&&g.map((e=>(0,Ke.createElement)("a",{key:e.id,href:e.link,onClick:e=>e.preventDefault()},(0,Jn.decodeEntities)(e.name)))).reduce(((e,t)=>(0,Ke.createElement)(Ke.Fragment,null,e,(0,Ke.createElement)("span",{className:"wp-block-post-terms__separator"},s||" "),t))),_&&!b&&!h&&(d?.labels?.no_terms||(0,tt.__)("Term items not found.")),!b&&(a||m)&&(0,Ke.createElement)(nt.RichText,{allowedFormats:uv,className:"wp-block-post-terms__suffix","aria-label":(0,tt.__)("Suffix"),placeholder:" "+(0,tt.__)("Suffix"),value:m,onChange:e=>o({suffix:e}),tagName:"span",__unstableOnSplitAtEnd:()=>r((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))})))}},yv=()=>((0,_i.addFilter)("blocks.registerBlockType","core/template-part",gv),Xe({name:bv,metadata:hv,settings:_v})),vv=window.wp.wordcount;const fv=function({attributes:e,setAttributes:t,context:n}){const{textAlign:a}=e,{postId:o,postType:r}=n,[l]=(0,dt.useEntityProp)("postType",r,"content",o),[i]=(0,dt.useEntityBlockEditor)("postType",r,{id:o}),s=(0,_t.useMemo)((()=>{let e;e=l instanceof Function?l({blocks:i}):i?(0,Qe.__unstableSerializeAndClean)(i):l;const t=(0,tt._x)("words","Word count type. Do not translate!"),n=Math.max(1,Math.round((0,vv.count)(e,t)/189));return(0,tt.sprintf)((0,tt._n)("%d minute","%d minutes",n),n)}),[l,i]),c=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${a}`]:a})});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})),(0,Ke.createElement)("div",{...c},s))},kv=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16.5c-4.1 0-7.5-3.4-7.5-7.5S7.9 4.5 12 4.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5zM12 7l-1 5c0 .3.2.6.4.8l4.2 2.8-2.7-4.1L12 7z"})),xv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/post-time-to-read",title:"Time To Read",category:"theme",description:"Show minutes required to finish reading the post.",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:wv}=xv,Ev={icon:kv,edit:fv},Cv=()=>Xe({name:wv,metadata:xv,settings:Ev});const Sv={attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0}},save:()=>null,migrate:ln,isEligible:({style:e})=>e?.typography?.fontFamily},Bv=[Sv],Nv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-title",title:"Title",category:"theme",description:"Displays the title of a post, page, or any other content-type.",textdomain:"default",usesContext:["postId","postType","queryId"],attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-title"},{name:Tv}=Nv,Iv={icon:Br,edit:function({attributes:{level:e,textAlign:t,isLink:n,rel:a,linkTarget:o},setAttributes:r,context:{postType:l,postId:i,queryId:s},insertBlocksAfter:c}){const m="h"+e,u=uy("postType",!Number.isFinite(s)&&l,i),[p="",d,g]=(0,dt.useEntityProp)("postType",l,"title",i),[h]=(0,dt.useEntityProp)("postType",l,"link",i),b=()=>{c((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))},_=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${t}`]:t})}),y=(0,nt.useBlockEditingMode)();let v=(0,Ke.createElement)(m,{..._},(0,tt.__)("Title"));return l&&i&&(v=u?(0,Ke.createElement)(nt.PlainText,{tagName:m,placeholder:(0,tt.__)("No Title"),value:p,onChange:d,__experimentalVersion:2,__unstableOnSplitAtEnd:b,..._}):(0,Ke.createElement)(m,{..._,dangerouslySetInnerHTML:{__html:g?.rendered}})),n&&l&&i&&(v=u?(0,Ke.createElement)(m,{..._},(0,Ke.createElement)(nt.PlainText,{tagName:"a",href:h,target:o,rel:a,placeholder:p.length?null:(0,tt.__)("No Title"),value:p,onChange:d,__experimentalVersion:2,__unstableOnSplitAtEnd:b})):(0,Ke.createElement)(m,{..._},(0,Ke.createElement)("a",{href:h,target:o,rel:a,onClick:e=>e.preventDefault(),dangerouslySetInnerHTML:{__html:g?.rendered}}))),(0,Ke.createElement)(Ke.Fragment,null,"default"===y&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.HeadingLevelDropdown,{value:e,onChange:e=>r({level:e})}),(0,Ke.createElement)(nt.AlignmentControl,{value:t,onChange:e=>{r({textAlign:e})}})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Make title a link"),onChange:()=>r({isLink:!n}),checked:n}),n&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===o}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link rel"),value:a,onChange:e=>r({rel:e})}))))),v)},deprecated:Bv},Pv=()=>Xe({name:Tv,metadata:Nv,settings:Iv}),Mv=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.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 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));const zv={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:({content:e,anchor:t})=>(0,Qe.createBlock)("core/preformatted",{content:e,anchor:t})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName),schema:({phrasingContentSchema:e})=>({pre:{children:e}})}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,Qe.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,Qe.createBlock)("core/code",e)}]},Rv=zv,Av={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/preformatted",title:"Preformatted",category:"text",description:"Add text that respects your spacing and tabs, and also allows styling.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"pre",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"}},supports:{anchor:!0,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-preformatted"},{name:Hv}=Av,Lv={icon:Mv,example:{attributes:{content:(0,tt.__)("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;")}},transforms:Rv,edit:function({attributes:e,mergeBlocks:t,setAttributes:n,onRemove:a,insertBlocksAfter:o,style:r}){const{content:l}=e,i=(0,nt.useBlockProps)({style:r});return(0,Ke.createElement)(nt.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:e=>{n({content:e})},onRemove:a,"aria-label":(0,tt.__)("Preformatted text"),placeholder:(0,tt.__)("Write preformatted text…"),onMerge:t,...i,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>o((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))})},save:function({attributes:e}){const{content:t}=e;return(0,Ke.createElement)("pre",{...nt.useBlockProps.save()},(0,Ke.createElement)(nt.RichText.Content,{value:t}))},merge:(e,t)=>({content:e.content+"\n\n"+t.content})},Dv=()=>Xe({name:Hv,metadata:Av,settings:Lv}),Fv=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.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"})),Vv="is-style-solid-color",$v={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}};function Ov(e){if(!e)return;const t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}function Gv(e){const t=`</p>${e=e||"<p></p>"}<p>`.split("</p><p>");return t.shift(),t.pop(),t.join("<br>")}const Uv={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,citation:n,value:a}=e,o=!nt.RichText.isEmpty(n);return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:ut()({[`has-text-align-${t}`]:t})})},(0,Ke.createElement)("blockquote",null,(0,Ke.createElement)(nt.RichText.Content,{value:a,multiline:!0}),o&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:n})))},migrate:({value:e,...t})=>({value:Gv(e),...t})},qv={attributes:{...$v},save({attributes:e}){const{mainColor:t,customMainColor:n,customTextColor:a,textColor:o,value:r,citation:l,className:i}=e,s=i?.includes(Vv);let c,m;if(s){const e=(0,nt.getColorClassName)("background-color",t);c=ut()({"has-background":e||n,[e]:e}),m={backgroundColor:e?void 0:n}}else n&&(m={borderColor:n});const u=(0,nt.getColorClassName)("color",o),p=ut()({"has-text-color":o||a,[u]:u}),d=u?void 0:{color:a};return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:c,style:m})},(0,Ke.createElement)("blockquote",{className:p,style:d},(0,Ke.createElement)(nt.RichText.Content,{value:r,multiline:!0}),!nt.RichText.isEmpty(l)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:l})))},migrate({value:e,className:t,mainColor:n,customMainColor:a,customTextColor:o,...r}){const l=t?.includes(Vv);let i;return a&&(i=l?{color:{background:a}}:{border:{color:a}}),o&&i&&(i.color={...i.color,text:o}),{value:Gv(e),className:t,backgroundColor:l?n:void 0,borderColor:l?void 0:n,textAlign:l?"left":void 0,style:i,...r}}},jv={attributes:{...$v,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){const{mainColor:t,customMainColor:n,textColor:a,customTextColor:o,value:r,citation:l,className:i,figureStyle:s}=e,c=i?.includes(Vv);let m,u;if(c){const e=(0,nt.getColorClassName)("background-color",t);m=ut()({"has-background":e||n,[e]:e}),u={backgroundColor:e?void 0:n}}else if(n)u={borderColor:n};else if(t){u={borderColor:Ov(s)}}const p=(0,nt.getColorClassName)("color",a),d=(a||o)&&ut()("has-text-color",{[p]:p}),g=p?void 0:{color:o};return(0,Ke.createElement)("figure",{className:m,style:u},(0,Ke.createElement)("blockquote",{className:d,style:g},(0,Ke.createElement)(nt.RichText.Content,{value:r,multiline:!0}),!nt.RichText.isEmpty(l)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:l})))},migrate({value:e,className:t,figureStyle:n,mainColor:a,customMainColor:o,customTextColor:r,...l}){const i=t?.includes(Vv);let s;if(o&&(s=i?{color:{background:o}}:{border:{color:o}}),r&&s&&(s.color={...s.color,text:r}),!i&&a&&n){const a=Ov(n);if(a)return{value:Gv(e),...l,className:t,style:{border:{color:a}}}}return{value:Gv(e),className:t,backgroundColor:i?a:void 0,borderColor:i?void 0:a,textAlign:i?"left":void 0,style:s,...l}}},Wv={attributes:$v,save({attributes:e}){const{mainColor:t,customMainColor:n,textColor:a,customTextColor:o,value:r,citation:l,className:i}=e,s=i?.includes(Vv);let c,m;if(s)c=(0,nt.getColorClassName)("background-color",t),c||(m={backgroundColor:n});else if(n)m={borderColor:n};else if(t){var u;const e=null!==(u=(0,gt.select)(nt.store).getSettings().colors)&&void 0!==u?u:[];m={borderColor:(0,nt.getColorObjectByAttributeValues)(e,t).color}}const p=(0,nt.getColorClassName)("color",a),d=a||o?ut()("has-text-color",{[p]:p}):void 0,g=p?void 0:{color:o};return(0,Ke.createElement)("figure",{className:c,style:m},(0,Ke.createElement)("blockquote",{className:d,style:g},(0,Ke.createElement)(nt.RichText.Content,{value:r,multiline:!0}),!nt.RichText.isEmpty(l)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:l})))},migrate({value:e,className:t,mainColor:n,customMainColor:a,customTextColor:o,...r}){const l=t?.includes(Vv);let i={};return a&&(i=l?{color:{background:a}}:{border:{color:a}}),o&&i&&(i.color={...i.color,text:o}),{value:Gv(e),className:t,backgroundColor:l?n:void 0,borderColor:l?void 0:n,textAlign:l?"left":void 0,style:i,...r}}},Zv={attributes:{...$v},save({attributes:e}){const{value:t,citation:n}=e;return(0,Ke.createElement)("blockquote",null,(0,Ke.createElement)(nt.RichText.Content,{value:t,multiline:!0}),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:n}))},migrate:({value:e,...t})=>({value:Gv(e),...t})},Qv={attributes:{...$v,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){const{value:t,citation:n,align:a}=e;return(0,Ke.createElement)("blockquote",{className:`align${a}`},(0,Ke.createElement)(nt.RichText.Content,{value:t,multiline:!0}),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"footer",value:n}))},migrate:({value:e,...t})=>({value:Gv(e),...t})},Kv=[Uv,qv,jv,Wv,Zv,Qv],Yv="web"===_t.Platform.OS;const Jv=function({attributes:e,setAttributes:t,isSelected:n,insertBlocksAfter:a}){const{textAlign:o,citation:r,value:l}=e,i=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${o}`]:o})}),s=!nt.RichText.isEmpty(r)||n;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:o,onChange:e=>{t({textAlign:e})}})),(0,Ke.createElement)("figure",{...i},(0,Ke.createElement)("blockquote",null,(0,Ke.createElement)(nt.RichText,{identifier:"value",tagName:"p",value:l,onChange:e=>t({value:e}),"aria-label":(0,tt.__)("Pullquote text"),placeholder:(0,tt.__)("Add quote"),textAlign:"center"}),s&&(0,Ke.createElement)(nt.RichText,{identifier:"citation",tagName:Yv?"cite":void 0,style:{display:"block"},value:r,"aria-label":(0,tt.__)("Pullquote citation text"),placeholder:(0,tt.__)("Add citation"),onChange:e=>t({citation:e}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>a((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))}))))};const Xv={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Qe.createBlock)("core/pullquote",{value:(0,Rn.toHTMLString)({value:(0,Rn.join)(e.map((({content:e})=>(0,Rn.create)({html:e}))),"\n")}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>(0,Qe.createBlock)("core/pullquote",{value:e,anchor:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{const n=[];return e&&n.push((0,Qe.createBlock)("core/paragraph",{content:e})),t&&n.push((0,Qe.createBlock)("core/paragraph",{content:t})),0===n.length?(0,Qe.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,Qe.createBlock)("core/heading",{content:t});const n=(0,Qe.createBlock)("core/heading",{content:e});return t?[n,(0,Qe.createBlock)("core/heading",{content:t})]:n}}]},ef=Xv,tf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pullquote",title:"Pullquote",category:"text",description:"Give special visual emphasis to a quote from your text.",textdomain:"default",attributes:{value:{type:"rich-text",source:"rich-text",selector:"p",__experimentalRole:"content"},citation:{type:"rich-text",source:"rich-text",selector:"cite",__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalStyle:{typography:{fontSize:"1.5em",lineHeight:"1.6"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"},{name:nf}=tf,af={icon:Fv,example:{attributes:{value:(0,tt.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,tt.__)("Matt Mullenweg")}},transforms:ef,edit:Jv,save:function({attributes:e}){const{textAlign:t,citation:n,value:a}=e,o=!nt.RichText.isEmpty(n);return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:ut()({[`has-text-align-${t}`]:t})})},(0,Ke.createElement)("blockquote",null,(0,Ke.createElement)(nt.RichText.Content,{tagName:"p",value:a}),o&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:n})))},deprecated:Kv},of=()=>Xe({name:nf,metadata:tf,settings:af}),rf=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"})),lf=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,Ke.createElement)(Ye.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})),sf=e=>{const t=e?.reduce(((e,t)=>{const{mapById:n,mapByName:a,names:o}=e;return n[t.id]=t,a[t.name]=t,o.push(t.name),e}),{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},cf=(e,t)=>{const n=t.split(".");let a=e;return n.forEach((e=>{a=a?.[e]})),a},mf=(e,t)=>(e||[]).map((e=>({...e,name:(0,Jn.decodeEntities)(cf(e,t))}))),uf=()=>{const e=(0,gt.useSelect)((e=>{const{getPostTypes:t}=e(dt.store),n=["attachment"],a=t({per_page:-1})?.filter((({viewable:e,slug:t})=>e&&!n.includes(t)));return a}),[]);return{postTypesTaxonomiesMap:(0,_t.useMemo)((()=>{if(e?.length)return e.reduce(((e,t)=>(e[t.slug]=t.taxonomies,e)),{})}),[e]),postTypesSelectOptions:(0,_t.useMemo)((()=>(e||[]).map((({labels:e,slug:t})=>({label:e.singular_name,value:t})))),[e])}},pf=e=>(0,gt.useSelect)((t=>{const{getTaxonomies:n}=t(dt.store);return n({type:e,per_page:-1,context:"view"})}),[e]);function df(e,t){return!e||e.includes(t)}function gf(e,t){const n=(0,gt.useSelect)((e=>e(Qe.store).getActiveBlockVariation("core/query",t)?.name),[t]),a=`core/query/${n}`;return(0,gt.useSelect)((t=>{if(!n)return!1;const{getBlockRootClientId:o,getPatternsByBlockTypes:r}=t(nt.store),l=o(e);return r(a,l).length>0}),[e,n,a])?a:"core/query"}const hf=(e,t)=>(0,gt.useSelect)((n=>{const{getBlockRootClientId:a,getPatternsByBlockTypes:o}=n(nt.store),r=a(e);return o(t,r)}),[t,e]),bf=e=>(0,gt.useSelect)((t=>{const{getClientIdsOfDescendants:n,getBlockName:a}=t(nt.store),o={};return n(e).forEach((e=>{const t=a(e),n=Object.is((0,Qe.getBlockSupport)(t,"interactivity"),!0),r=(0,Qe.getBlockSupport)(t,"interactivity.clientNavigation");n||r?"core/post-content"===t&&(o.hasPostContentBlock=!0):o.hasBlocksFromPlugins=!0})),o.hasUnsupportedBlocks=o.hasBlocksFromPlugins||o.hasPostContentBlock,o}),[e]);function _f({attributes:{query:e},setQuery:t,openPatternSelectionModal:n,name:a,clientId:o}){const r=!!hf(o,a).length,l=(0,jt.useInstanceId)(_f,"blocks-query-pagination-max-page-input");return(0,Ke.createElement)(Ke.Fragment,null,!e.inherit&&(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.Dropdown,{contentClassName:"block-library-query-toolbar__popover",renderToggle:({onToggle:e})=>(0,Ke.createElement)(et.ToolbarButton,{icon:lf,label:(0,tt.__)("Display settings"),onClick:e}),renderContent:()=>(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.BaseControl,null,(0,Ke.createElement)(et.__experimentalNumberControl,{__unstableInputWidth:"60px",label:(0,tt.__)("Items per Page"),labelPosition:"edge",min:1,max:100,onChange:e=>{isNaN(e)||e<1||e>100||t({perPage:e})},step:"1",value:e.perPage,isDragEnabled:!1})),(0,Ke.createElement)(et.BaseControl,null,(0,Ke.createElement)(et.__experimentalNumberControl,{__unstableInputWidth:"60px",label:(0,tt.__)("Offset"),labelPosition:"edge",min:0,max:100,onChange:e=>{isNaN(e)||e<0||e>100||t({offset:e})},step:"1",value:e.offset,isDragEnabled:!1})),(0,Ke.createElement)(et.BaseControl,{id:l,help:(0,tt.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")},(0,Ke.createElement)(et.__experimentalNumberControl,{id:l,__unstableInputWidth:"60px",label:(0,tt.__)("Max page to show"),labelPosition:"edge",min:0,onChange:e=>{isNaN(e)||e<0||t({pages:e})},step:"1",value:e.pages,isDragEnabled:!1})))})),r&&(0,Ke.createElement)(et.ToolbarGroup,{className:"wp-block-template-part__block-control-group"},(0,Ke.createElement)(et.ToolbarButton,{onClick:n},(0,tt.__)("Replace"))))}const yf=[{label:(0,tt.__)("Newest to oldest"),value:"date/desc"},{label:(0,tt.__)("Oldest to newest"),value:"date/asc"},{label:(0,tt.__)("A → Z"),value:"title/asc"},{label:(0,tt.__)("Z → A"),value:"title/desc"}];const vf=function({order:e,orderBy:t,onChange:n}){return(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Order by"),value:`${t}/${e}`,options:yf,onChange:e=>{const[t,a]=e.split("/");n({order:a,orderBy:t})}})},ff={who:"authors",per_page:-1,_fields:"id,name",context:"view"};const kf=function({value:e,onChange:t}){const n=(0,gt.useSelect)((e=>{const{getUsers:t}=e(dt.store);return t(ff)}),[]);if(!n)return null;const a=sf(n),o=(e?e.toString().split(","):[]).reduce(((e,t)=>{const n=a.mapById[t];return n&&e.push({id:t,value:n.name}),e}),[]);return(0,Ke.createElement)(et.FormTokenField,{label:(0,tt.__)("Authors"),value:o,suggestions:a.names,onChange:e=>{const n=Array.from(e.reduce(((e,t)=>{const n=((e,t)=>{const n=t?.id||e[t]?.id;if(n)return n})(a.mapByName,t);return n&&e.add(n),e}),new Set));t({author:n.join(",")})},__experimentalShowHowTo:!1})},xf=[],wf={order:"asc",_fields:"id,title",context:"view"};const Ef=function({parents:e,postType:t,onChange:n}){const[a,o]=(0,_t.useState)(""),[r,l]=(0,_t.useState)(xf),[i,s]=(0,_t.useState)(xf),c=(0,jt.useDebounce)(o,250),{searchResults:m,searchHasResolved:u}=(0,gt.useSelect)((n=>{if(!a)return{searchResults:xf,searchHasResolved:!0};const{getEntityRecords:o,hasFinishedResolution:r}=n(dt.store),l=["postType",t,{...wf,search:a,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:o(...l),searchHasResolved:r("getEntityRecords",l)}}),[a,e]),p=(0,gt.useSelect)((n=>{if(!e?.length)return xf;const{getEntityRecords:a}=n(dt.store);return a("postType",t,{...wf,include:e,per_page:e.length})}),[e]);(0,_t.useEffect)((()=>{if(e?.length||l(xf),!p?.length)return;const t=sf(mf(p,"title.rendered")),n=e.reduce(((e,n)=>{const a=t.mapById[n];return a&&e.push({id:n,value:a.name}),e}),[]);l(n)}),[e,p]);const d=(0,_t.useMemo)((()=>m?.length?sf(mf(m,"title.rendered")):xf),[m]);return(0,_t.useEffect)((()=>{u&&s(d.names)}),[d.names,u]),(0,Ke.createElement)(et.FormTokenField,{label:(0,tt.__)("Parents"),value:r,onInputChange:c,suggestions:i,onChange:e=>{const t=Array.from(e.reduce(((e,t)=>{const n=((e,t)=>{const n=t?.id||e?.[t]?.id;if(n)return n})(d.mapByName,t);return n&&e.add(n),e}),new Set));s(xf),n({parents:t})},__experimentalShowHowTo:!1})},Cf=[],Sf={order:"asc",_fields:"id,name",context:"view"},Bf=(e,t)=>{const n=t?.id||e?.find((e=>e.name===t))?.id;if(n)return n;const a=t.toLocaleLowerCase();return e?.find((e=>e.name.toLocaleLowerCase()===a))?.id};function Nf({onChange:e,query:t}){const{postType:n,taxQuery:a}=t,o=pf(n);return o&&0!==o.length?(0,Ke.createElement)(Ke.Fragment,null,o.map((t=>{const n=a?.[t.slug]||[];return(0,Ke.createElement)(Tf,{key:t.slug,taxonomy:t,termIds:n,onChange:n=>e({taxQuery:{...a,[t.slug]:n}})})}))):null}function Tf({taxonomy:e,termIds:t,onChange:n}){const[a,o]=(0,_t.useState)(""),[r,l]=(0,_t.useState)(Cf),[i,s]=(0,_t.useState)(Cf),c=(0,jt.useDebounce)(o,250),{searchResults:m,searchHasResolved:u}=(0,gt.useSelect)((n=>{if(!a)return{searchResults:Cf,searchHasResolved:!0};const{getEntityRecords:o,hasFinishedResolution:r}=n(dt.store),l=["taxonomy",e.slug,{...Sf,search:a,orderby:"name",exclude:t,per_page:20}];return{searchResults:o(...l),searchHasResolved:r("getEntityRecords",l)}}),[a,t]),p=(0,gt.useSelect)((n=>{if(!t?.length)return Cf;const{getEntityRecords:a}=n(dt.store);return a("taxonomy",e.slug,{...Sf,include:t,per_page:t.length})}),[t]);(0,_t.useEffect)((()=>{if(t?.length||l(Cf),!p?.length)return;const e=t.reduce(((e,t)=>{const n=p.find((e=>e.id===t));return n&&e.push({id:t,value:n.name}),e}),[]);l(e)}),[t,p]),(0,_t.useEffect)((()=>{u&&s(m.map((e=>e.name)))}),[m,u]);return(0,Ke.createElement)("div",{className:"block-library-query-inspector__taxonomy-control"},(0,Ke.createElement)(et.FormTokenField,{label:e.name,value:r,onInputChange:c,suggestions:i,displayTransform:Jn.decodeEntities,onChange:e=>{const t=new Set;for(const n of e){const e=Bf(m,n);e&&t.add(e)}s(Cf),n(Array.from(t))},__experimentalShowHowTo:!1}))}const If=[{label:(0,tt.__)("Include"),value:""},{label:(0,tt.__)("Exclude"),value:"exclude"},{label:(0,tt.__)("Only"),value:"only"}];function Pf({value:e,onChange:t}){return(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Sticky posts"),options:If,value:e,onChange:t,help:(0,tt.__)("Blog posts can be “stickied”, a feature that places them at the top of the front page of posts, keeping it there until new sticky posts are published.")})}function Mf({enhancedPagination:e,setAttributes:t,clientId:n}){const{hasUnsupportedBlocks:a}=bf(n);let o=(0,tt.__)("Browsing between pages requires a full page reload.");return e?o=(0,tt.__)("Browsing between pages won't require a full page reload, unless non-compatible blocks are detected."):a&&(o=(0,tt.__)("Force page reload can't be disabled because there are non-compatible blocks inside the Query block.")),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToggleControl,{label:(0,tt.__)("Force page reload"),help:o,checked:!e,disabled:a,onChange:e=>{t({enhancedPagination:!e})}}))}const zf=({attributes:{query:{postType:e}={}}={}})=>{if(!e)return null;const t=(0,pt.addQueryArgs)("post-new.php",{post_type:e});return(0,Ke.createElement)("div",{className:"wp-block-query__create-new-link"},(0,_t.createInterpolateElement)((0,tt.__)("<a>Add new post</a>"),{a:(0,Ke.createElement)("a",{href:t})}))},{BlockInfo:Rf}=Ft(nt.privateApis);function Af(e){const{attributes:t,setQuery:n,setDisplayLayout:a,setAttributes:o,clientId:r}=e,{query:l,displayLayout:i,enhancedPagination:s}=t,{order:c,orderBy:m,author:u,postType:p,sticky:d,inherit:g,taxQuery:h,parents:b}=l,_=function(e){return(0,gt.useSelect)((t=>t(Qe.store).getActiveBlockVariation("core/query",e)?.allowedControls),[e])}(t),[y,v]=(0,_t.useState)("post"===p),{postTypesTaxonomiesMap:f,postTypesSelectOptions:k}=uf(),x=pf(p),w=function(e){return(0,gt.useSelect)((t=>{const n=t(dt.store).getPostType(e);return n?.viewable&&n?.hierarchical}),[e])}(p);(0,_t.useEffect)((()=>{v("post"===p)}),[p]);const[E,C]=(0,_t.useState)(l.search),S=(0,_t.useCallback)((0,jt.debounce)((()=>{l.search!==E&&n({search:E})}),250),[E,l.search]);(0,_t.useEffect)((()=>(S(),S.cancel)),[E,S]);const B=df(_,"inherit"),N=!g&&df(_,"postType"),T=!g&&df(_,"order"),I=!g&&y&&df(_,"sticky"),P=B||N||T||I,M=!!x?.length&&df(_,"taxQuery"),z=df(_,"author"),R=df(_,"search"),A=df(_,"parents")&&w,H=M||z||R||A;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(Rf,null,(0,Ke.createElement)(zf,{...e})),P&&(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},B&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Inherit query from template"),help:(0,tt.__)("Toggle to use the global query context that is set with the current template, such as an archive or search. Disable to customize the settings independently."),checked:!!g,onChange:e=>n({inherit:!!e})}),N&&(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,options:k,value:p,label:(0,tt.__)("Post type"),onChange:e=>{const t={postType:e},a=f[e],o=Object.entries(h||{}).reduce(((e,[t,n])=>(a.includes(t)&&(e[t]=n),e)),{});t.taxQuery=Object.keys(o).length?o:void 0,"post"!==e&&(t.sticky=""),t.parents=[],n(t)},help:(0,tt.__)("WordPress contains different types of content and they are divided into collections called “Post types”. By default there are a few different ones such as blog posts and pages, but plugins could add more.")}),false,T&&(0,Ke.createElement)(vf,{order:c,orderBy:m,onChange:n}),I&&(0,Ke.createElement)(Pf,{value:d,onChange:e=>n({sticky:e})}),(0,Ke.createElement)(Mf,{enhancedPagination:s,setAttributes:o,clientId:r})),!g&&H&&(0,Ke.createElement)(et.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,tt.__)("Filters"),resetAll:()=>{n({author:"",parents:[],search:"",taxQuery:null}),C("")},dropdownMenuProps:op},M&&(0,Ke.createElement)(et.__experimentalToolsPanelItem,{label:(0,tt.__)("Taxonomies"),hasValue:()=>Object.values(h||{}).some((e=>!!e.length)),onDeselect:()=>n({taxQuery:null})},(0,Ke.createElement)(Nf,{onChange:n,query:l})),z&&(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,tt.__)("Authors"),onDeselect:()=>n({author:""})},(0,Ke.createElement)(kf,{value:u,onChange:n})),R&&(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>!!E,label:(0,tt.__)("Keyword"),onDeselect:()=>C("")},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Keyword"),value:E,onChange:C})),A&&(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>!!b?.length,label:(0,tt.__)("Parents"),onDeselect:()=>n({parents:[]})},(0,Ke.createElement)(Ef,{parents:b,postType:p,onChange:n}))))}const Hf="wp-block-query-enhanced-pagination-modal__description";function Lf({clientId:e,attributes:{enhancedPagination:t},setAttributes:n}){const[a,o]=(0,_t.useState)(!1),{hasBlocksFromPlugins:r,hasPostContentBlock:l,hasUnsupportedBlocks:i}=bf(e);(0,_t.useEffect)((()=>{t&&i&&(n({enhancedPagination:!1}),o(!0))}),[t,i,n]);const s=()=>{o(!1)};let c=(0,tt.__)('If you still want to prevent full page reloads, remove that block, then disable "Force page reload" again in the Query Block settings.');return r?c=(0,tt.__)("Currently, avoiding full page reloads is not possible when non-interactive or non-clientNavigation compatible blocks from plugins are present inside the Query block.")+" "+c:l&&(c=(0,tt.__)("Currently, avoiding full page reloads is not possible when a Content block is present inside the Query block.")+" "+c),a&&(0,Ke.createElement)(et.Modal,{title:(0,tt.__)("Query block: Force page reload enabled"),className:"wp-block-query__enhanced-pagination-modal",aria:{describedby:Hf},role:"alertdialog",focusOnMount:"firstElement",isDismissible:!1,onRequestClose:s},(0,Ke.createElement)(et.__experimentalVStack,{alignment:"right",spacing:5},(0,Ke.createElement)("span",{id:Hf},c),(0,Ke.createElement)(et.Button,{variant:"primary",onClick:s},(0,tt.__)("OK"))))}const Df=[["core/post-template"]];function Ff({attributes:e,setAttributes:t,openPatternSelectionModal:n,name:a,clientId:o}){const{queryId:r,query:l,displayLayout:i,tagName:s="div",query:{inherit:c}={}}=e,{__unstableMarkNextChangeAsNotPersistent:m}=(0,gt.useDispatch)(nt.store),u=(0,jt.useInstanceId)(Ff),p=(0,nt.useBlockProps)(),d=(0,nt.useInnerBlocksProps)(p,{template:Df}),{postsPerPage:g}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store),{getEntityRecord:n,canUser:a}=e(dt.store);return{postsPerPage:(a("read","settings")?+n("root","site")?.posts_per_page:+t().postsPerPage)||3}}),[]);(0,_t.useEffect)((()=>{const e={};(c&&l.perPage!==g||!l.perPage&&g)&&(e.perPage=g),Object.keys(e).length&&(m(),h(e))}),[l.perPage,g,c]),(0,_t.useEffect)((()=>{Number.isFinite(r)||(m(),t({queryId:u}))}),[r,u]);const h=e=>t({query:{...l,...e}}),b={main:(0,tt.__)("The <main> element should be used for the primary content of your document only. "),section:(0,tt.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),aside:(0,tt.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.")};return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(Lf,{attributes:e,setAttributes:t,clientId:o}),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(Af,{attributes:e,setQuery:h,setDisplayLayout:e=>t({displayLayout:{...i,...e}}),setAttributes:t,clientId:o})),(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(_f,{name:a,clientId:o,attributes:e,setQuery:h,openPatternSelectionModal:n})),(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("HTML element"),options:[{label:(0,tt.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:s,onChange:e=>t({tagName:e}),help:b[s]})),(0,Ke.createElement)(s,{...d}))}function Vf({attributes:e,clientId:t,name:n,openPatternSelectionModal:a,setAttributes:o}){const[r,l]=(0,_t.useState)(!1),i=(0,nt.useBlockProps)(),s=gf(t,e),{blockType:c,activeBlockVariation:m,hasPatterns:u}=(0,gt.useSelect)((a=>{const{getActiveBlockVariation:o,getBlockType:r}=a(Qe.store),{getBlockRootClientId:l,getPatternsByBlockTypes:i}=a(nt.store),c=l(t);return{blockType:r(n),activeBlockVariation:o(n,e),hasPatterns:!!i(s,c).length}}),[n,s,t,e]),p=m?.icon?.src||m?.icon||c?.icon?.src,d=m?.title||c?.title;return r?(0,Ke.createElement)($f,{clientId:t,attributes:e,setAttributes:o,icon:p,label:d}):(0,Ke.createElement)("div",{...i},(0,Ke.createElement)(et.Placeholder,{icon:p,label:d,instructions:(0,tt.__)("Choose a pattern for the query loop or start blank.")},!!u&&(0,Ke.createElement)(et.Button,{variant:"primary",onClick:a},(0,tt.__)("Choose")),(0,Ke.createElement)(et.Button,{variant:"secondary",onClick:()=>{l(!0)}},(0,tt.__)("Start blank"))))}function $f({clientId:e,attributes:t,setAttributes:n,icon:a,label:o}){const r=function(e){const{activeVariationName:t,blockVariations:n}=(0,gt.useSelect)((t=>{const{getActiveBlockVariation:n,getBlockVariations:a}=t(Qe.store);return{activeVariationName:n("core/query",e)?.name,blockVariations:a("core/query","block")}}),[e]);return(0,_t.useMemo)((()=>{const e=e=>!e.attributes?.namespace;if(!t)return n.filter(e);const a=n.filter((e=>e.attributes?.namespace?.includes(t)));return a.length?a:n.filter(e)}),[t,n])}(t),{replaceInnerBlocks:l}=(0,gt.useDispatch)(nt.store),i=(0,nt.useBlockProps)();return(0,Ke.createElement)("div",{...i},(0,Ke.createElement)(nt.__experimentalBlockVariationPicker,{icon:a,label:o,variations:r,onSelect:a=>{a.attributes&&n({...a.attributes,query:{...a.attributes.query,postType:t.query.postType||a.attributes.query.postType},namespace:t.namespace}),a.innerBlocks&&l(e,(0,Qe.createBlocksFromInnerBlocksTemplate)(a.innerBlocks),!1)}}))}function Of(e=""){return e=(e=nc()(e)).trim().toLowerCase()}function Gf(e,t){const n=Of(t),a=Of(e.title);let o=0;if(n===a)o+=30;else if(a.startsWith(n))o+=20;else{n.split(" ").every((e=>a.includes(e)))&&(o+=10)}return o}function Uf(e=[],t=""){if(!t)return e;const n=e.map((e=>[e,Gf(e,t)])).filter((([,e])=>e>0));return n.sort((([,e],[,t])=>t-e)),n.map((([e])=>e))}function qf({clientId:e,attributes:t,setIsPatternSelectionModalOpen:n}){const[a,o]=(0,_t.useState)(""),{replaceBlock:r,selectBlock:l}=(0,gt.useDispatch)(nt.store),i=(0,_t.useMemo)((()=>({previewPostType:t.query.postType})),[t.query.postType]),s=gf(e,t),c=hf(e,s),m=(0,_t.useMemo)((()=>Uf(c,a)),[c,a]),u=(0,jt.useAsyncList)(m);return(0,Ke.createElement)(et.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,tt.__)("Choose a pattern"),onRequestClose:()=>n(!1),isFullScreen:!0},(0,Ke.createElement)("div",{className:"block-library-query-pattern__selection-content"},(0,Ke.createElement)("div",{className:"block-library-query-pattern__selection-search"},(0,Ke.createElement)(et.SearchControl,{__nextHasNoMarginBottom:!0,onChange:o,value:a,label:(0,tt.__)("Search for patterns"),placeholder:(0,tt.__)("Search")})),(0,Ke.createElement)(nt.BlockContextProvider,{value:i},(0,Ke.createElement)(nt.__experimentalBlockPatternsList,{blockPatterns:m,shownPatterns:u,onClickPattern:(n,a)=>{const{newBlocks:o,queryClientIds:i}=((e,t)=>{const{query:{postType:n,inherit:a}}=t,o=e.map((e=>(0,Qe.cloneBlock)(e))),r=[],l=[...o];for(;l.length>0;){const e=l.shift();"core/query"===e.name&&(e.attributes.query={...e.attributes.query,postType:n,inherit:a},r.push(e.clientId)),e.innerBlocks?.forEach((e=>{l.push(e)}))}return{newBlocks:o,queryClientIds:r}})(a,t);r(e,o),i[0]&&l(i[0])}}))))}const jf=e=>{const{clientId:t,attributes:n}=e,[a,o]=(0,_t.useState)(!1),r=(0,gt.useSelect)((e=>!!e(nt.store).getBlocks(t).length),[t])?Ff:Vf;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(r,{...e,openPatternSelectionModal:()=>o(!0)}),a&&(0,Ke.createElement)(qf,{clientId:t,attributes:n,setIsPatternSelectionModalOpen:o}))};const Wf=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,Ke.createElement)(et.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})),Zf=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,Ke.createElement)(et.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})),Qf=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,Ke.createElement)(et.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})),Kf=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,Ke.createElement)(et.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})),Yf={query:{perPage:3,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!1}},Jf=[{name:"posts-list",title:(0,tt.__)("Posts List"),description:(0,tt.__)("Display a list of your most recent posts, excluding sticky posts."),icon:Sp,attributes:{namespace:"core/posts-list",query:{perPage:4,pages:1,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1}},scope:["inserter"],isActive:({namespace:e,query:t})=>"core/posts-list"===e&&"post"===t.postType},{name:"title-date",title:(0,tt.__)("Title & Date"),icon:Wf,attributes:{...Yf},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,tt.__)("Title & Excerpt"),icon:Zf,attributes:{...Yf},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-date-excerpt",title:(0,tt.__)("Title, Date, & Excerpt"),icon:Qf,attributes:{...Yf},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,tt.__)("Image, Date, & Title"),icon:Kf,attributes:{...Yf},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],["core/post-date"],["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}],{cleanEmptyObject:Xf}=Ft(nt.privateApis),ek=e=>{const{query:t}=e,{categoryIds:n,tagIds:a,...o}=t;return(t.categoryIds?.length||t.tagIds?.length)&&(o.taxQuery={category:t.categoryIds?.length?t.categoryIds:void 0,post_tag:t.tagIds?.length?t.tagIds:void 0}),{...e,query:o}},tk=(e,t)=>{const{style:n,backgroundColor:a,gradient:o,textColor:r,...l}=e;if(!(a||o||r||n?.color||n?.elements?.link))return[e,t];if(n&&(l.style=Xf({...n,color:void 0,elements:{...n.elements,link:void 0}})),nk(t)){const e=t[0],i=n?.color||n?.elements?.link||e.attributes.style?Xf({...e.attributes.style,color:n?.color,elements:n?.elements?.link?{link:n?.elements?.link}:void 0}):void 0;return[l,[(0,Qe.createBlock)("core/group",{...e.attributes,backgroundColor:a,gradient:o,textColor:r,style:i},e.innerBlocks)]]}return[l,[(0,Qe.createBlock)("core/group",{backgroundColor:a,gradient:o,textColor:r,style:Xf({color:n?.color,elements:n?.elements?.link?{link:n?.elements?.link}:void 0})},t)]]},nk=(e=[])=>1===e.length&&"core/group"===e[0].name,ak=e=>{const{layout:t=null}=e;if(!t)return e;const{inherit:n=null,contentSize:a=null,...o}=t;return n||a?{...e,layout:{...o,contentSize:a,type:"constrained"}}:e},ok=(e=[])=>{let t=null;for(const n of e){if("core/post-template"===n.name){t=n;break}n.innerBlocks.length&&(t=ok(n.innerBlocks))}return t},rk=(e=[],t)=>(e.forEach(((n,a)=>{"core/post-template"===n.name?e.splice(a,1,t):n.innerBlocks.length&&(n.innerBlocks=rk(n.innerBlocks,t))})),e),lk=(e,t)=>{const{displayLayout:n=null,...a}=e;if(!n)return[e,t];const o=ok(t);if(!o)return[e,t];const{type:r,columns:l}=n,i="flex"===r?"grid":"default",s=(0,Qe.createBlock)("core/post-template",{...o.attributes,layout:{type:i,...l&&{columnCount:l}}},o.innerBlocks);return[a,rk(t,s)]},ik={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},layout:{type:"object",default:{type:"list"}}},supports:{html:!1},migrate(e,t){const n=ek(e),{layout:a,...o}=n,r={...o,displayLayout:n.layout};return lk(r,t)},save:()=>(0,Ke.createElement)(nt.InnerBlocks.Content,null)},sk={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},layout:!0},isEligible:({query:{categoryIds:e,tagIds:t}={}})=>e||t,migrate(e,t){const n=ek(e),[a,o]=tk(n,t),r=ak(a);return lk(r,o)},save({attributes:{tagName:e="div"}}){const t=nt.useBlockProps.save(),n=nt.useInnerBlocksProps.save(t);return(0,Ke.createElement)(e,{...n})}},ck={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},isEligible(e){const{style:t,backgroundColor:n,gradient:a,textColor:o}=e;return n||a||o||t?.color||t?.elements?.link},migrate(e,t){const[n,a]=tk(e,t),o=ak(n);return lk(o,a)},save({attributes:{tagName:e="div"}}){const t=nt.useBlockProps.save(),n=nt.useInnerBlocksProps.save(t);return(0,Ke.createElement)(e,{...n})}},mk={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},save({attributes:{tagName:e="div"}}){const t=nt.useBlockProps.save(),n=nt.useInnerBlocksProps.save(t);return(0,Ke.createElement)(e,{...n})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&"constrained"!==e?.type,migrate(e,t){const n=ak(e);return lk(n,t)}},uk=[{attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,layout:!0},save({attributes:{tagName:e="div"}}){const t=nt.useBlockProps.save(),n=nt.useInnerBlocksProps.save(t);return(0,Ke.createElement)(e,{...n})},isEligible:({displayLayout:e})=>!!e,migrate:lk},mk,ck,sk,ik],pk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"},enhancedPagination:{type:"boolean",default:!1}},providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout",enhancedPagination:"enhancedPagination"},supports:{align:["wide","full"],html:!1,layout:!0,interactivity:!0},editorStyle:"wp-block-query-editor"},{name:dk}=pk,gk={icon:rf,edit:jf,save:function({attributes:{tagName:e="div"}}){const t=nt.useBlockProps.save(),n=nt.useInnerBlocksProps.save(t);return(0,Ke.createElement)(e,{...n})},variations:Jf,deprecated:uk},hk=()=>Xe({name:dk,metadata:pk,settings:gk}),bk=[["core/paragraph",{placeholder:(0,tt.__)("Add text or blocks that will display when a query returns no results.")}]];const _k={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-no-results",title:"No results",category:"theme",description:"Contains the block elements used to render content when no query results are found.",parent:["core/query"],textdomain:"default",usesContext:["queryId","query"],supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:yk}=_k,vk={icon:rf,edit:function(){const e=(0,nt.useBlockProps)(),t=(0,nt.useInnerBlocksProps)(e,{template:bk});return(0,Ke.createElement)("div",{...t})},save:function(){return(0,Ke.createElement)(nt.InnerBlocks.Content,null)}},fk=()=>Xe({name:yk,metadata:_k,settings:vk});function kk({value:e,onChange:t}){return(0,Ke.createElement)(et.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Arrow"),value:e,onChange:t,help:(0,tt.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0},(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"none",label:(0,tt._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,tt._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,tt._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")}))}function xk({value:e,onChange:t}){return(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show label text"),help:(0,tt.__)('Toggle off to hide the label text, e.g. "Next Page".'),onChange:t,checked:!0===e})}const wk=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];const Ek=[{save:()=>(0,Ke.createElement)("div",{...nt.useBlockProps.save()},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}],Ck={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination",title:"Pagination",category:"theme",ancestor:["core/query"],allowedBlocks:["core/query-pagination-previous","core/query-pagination-numbers","core/query-pagination-next"],description:"Displays a paginated navigation to next/previous set of posts, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"},showLabel:{type:"boolean",default:!0}},usesContext:["queryId","query"],providesContext:{paginationArrow:"paginationArrow",showLabel:"showLabel"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-query-pagination-editor",style:"wp-block-query-pagination"},{name:Sk}=Ck,Bk={icon:sr,edit:function({attributes:{paginationArrow:e,showLabel:t},setAttributes:n,clientId:a}){const o=(0,gt.useSelect)((e=>{const{getBlocks:t}=e(nt.store),n=t(a);return n?.find((e=>["core/query-pagination-next","core/query-pagination-previous"].includes(e.name)))}),[a]),r=(0,nt.useBlockProps)(),l=(0,nt.useInnerBlocksProps)(r,{template:wk});return(0,_t.useEffect)((()=>{"none"!==e||t||n({showLabel:!0})}),[e,n,t]),(0,Ke.createElement)(Ke.Fragment,null,o&&(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(kk,{value:e,onChange:e=>{n({paginationArrow:e})}}),"none"!==e&&(0,Ke.createElement)(xk,{value:t,onChange:e=>{n({showLabel:e})}}))),(0,Ke.createElement)("nav",{...l}))},save:function(){return(0,Ke.createElement)(nt.InnerBlocks.Content,null)},deprecated:Ek},Nk=()=>Xe({name:Sk,metadata:Ck,settings:Bk}),Tk={none:"",arrow:"→",chevron:"»"};const Ik={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-next",title:"Next Page",category:"theme",parent:["core/query-pagination"],description:"Displays the next posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel","enhancedPagination"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Pk}=Ik,Mk={icon:hr,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:n,showLabel:a}}){const o=Tk[n];return(0,Ke.createElement)("a",{href:"#pagination-next-pseudo-link",onClick:e=>e.preventDefault(),...(0,nt.useBlockProps)()},a&&(0,Ke.createElement)(nt.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,tt.__)("Next page link"),placeholder:(0,tt.__)("Next Page"),value:e,onChange:e=>t({label:e})}),o&&(0,Ke.createElement)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${n}`,"aria-hidden":!0},o))}},zk=()=>Xe({name:Pk,metadata:Ik,settings:Mk}),Rk=(e,t="a",n="")=>(0,Ke.createElement)(t,{key:e,className:`page-numbers ${n}`},e);const Ak={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-numbers",title:"Page Numbers",category:"theme",parent:["core/query-pagination"],description:"Displays a list of page numbers for pagination.",textdomain:"default",attributes:{midSize:{type:"number",default:2}},usesContext:["queryId","query","enhancedPagination"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-query-pagination-numbers-editor"},{name:Hk}=Ak,Lk={icon:kr,edit:function({attributes:e,setAttributes:t}){const{midSize:n}=e,a=(e=>{const t=[];for(let n=1;n<=e;n++)t.push(Rk(n));t.push(Rk(e+1,"span","current"));for(let n=1;n<=e;n++)t.push(Rk(e+1+n));return t.push(Rk("...","span","dots")),t.push(Rk(2*e+3)),(0,Ke.createElement)(Ke.Fragment,null,t)})(parseInt(n,10));return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.RangeControl,{label:(0,tt.__)("Number of links"),help:(0,tt.__)("Specify how many links can appear before and after the current page number. Links to the first, current and last page are always visible."),value:n,onChange:e=>{t({midSize:parseInt(e,10)})},min:0,max:5,withInputField:!1}))),(0,Ke.createElement)("div",{...(0,nt.useBlockProps)()},a))}},Dk=()=>Xe({name:Hk,metadata:Ak,settings:Lk}),Fk={none:"",arrow:"←",chevron:"«"};const Vk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-previous",title:"Previous Page",category:"theme",parent:["core/query-pagination"],description:"Displays the previous posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel","enhancedPagination"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:$k}=Vk,Ok={icon:nr,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:n,showLabel:a}}){const o=Fk[n];return(0,Ke.createElement)("a",{href:"#pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),...(0,nt.useBlockProps)()},o&&(0,Ke.createElement)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${n}`,"aria-hidden":!0},o),a&&(0,Ke.createElement)(nt.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,tt.__)("Previous page link"),placeholder:(0,tt.__)("Previous Page"),value:e,onChange:e=>t({label:e})}))}},Gk=()=>Xe({name:$k,metadata:Vk,settings:Ok}),Uk=["archive","search"];const qk=[{isDefault:!0,name:"archive-title",title:(0,tt.__)("Archive Title"),description:(0,tt.__)("Display the archive title based on the queried object."),icon:Br,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,tt.__)("Search Results Title"),description:(0,tt.__)("Display the search results title based on the queried object."),icon:Br,attributes:{type:"search"},scope:["inserter"]}];qk.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));const jk=qk,Wk={attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0}},save:()=>null,migrate:ln,isEligible:({style:e})=>e?.typography?.fontFamily},Zk=[Wk],Qk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-title",title:"Query Title",category:"theme",description:"Display the query title.",textdomain:"default",attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1},showPrefix:{type:"boolean",default:!0},showSearchTerm:{type:"boolean",default:!0}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-query-title"},{name:Kk}=Qk,Yk={icon:Br,edit:function({attributes:{type:e,level:t,textAlign:n,showPrefix:a,showSearchTerm:o},setAttributes:r}){const{archiveTypeTitle:l,archiveNameLabel:i}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store),{__experimentalArchiveTitleNameLabel:n,__experimentalArchiveTitleTypeLabel:a}=t();return{archiveTypeTitle:a,archiveNameLabel:n}})),s=`h${t}`,c=(0,nt.useBlockProps)({className:ut()("wp-block-query-title__placeholder",{[`has-text-align-${n}`]:n})});if(!Uk.includes(e))return(0,Ke.createElement)("div",{...c},(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Provided type is not supported.")));let m;if("archive"===e){let e;e=l?a?i?(0,tt.sprintf)((0,tt.__)("%1$s: %2$s"),l,i):(0,tt.sprintf)((0,tt.__)("%s: Name"),l):i||(0,tt.sprintf)((0,tt.__)("%s name"),l):a?(0,tt.__)("Archive type: Name"):(0,tt.__)("Archive title"),m=(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show archive type in title"),onChange:()=>r({showPrefix:!a}),checked:a}))),(0,Ke.createElement)(s,{...c},e))}return"search"===e&&(m=(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show search term in title"),onChange:()=>r({showSearchTerm:!o}),checked:o}))),(0,Ke.createElement)(s,{...c},o?(0,tt.__)("Search results for: “search term”"):(0,tt.__)("Search results")))),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.HeadingLevelDropdown,{value:t,onChange:e=>r({level:e})}),(0,Ke.createElement)(nt.AlignmentControl,{value:n,onChange:e=>{r({textAlign:e})}})),m)},variations:jk,deprecated:Zk},Jk=()=>Xe({name:Kk,metadata:Qk,settings:Yk}),Xk=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{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"})),ex=e=>{const{value:t,...n}=e;return[{...n},t?(0,Qe.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map((({content:e})=>(0,Qe.createBlock)("core/paragraph",{content:e}))):(0,Qe.createBlock)("core/paragraph")]},tx={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}}},save({attributes:e}){const{align:t,value:n,citation:a}=e,o=ut()({[`has-text-align-${t}`]:t});return(0,Ke.createElement)("blockquote",{...nt.useBlockProps.save({className:o})},(0,Ke.createElement)(nt.RichText.Content,{multiline:!0,value:n}),!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:a}))},migrate:ex},nx={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},migrate:ex,save({attributes:e}){const{align:t,value:n,citation:a}=e;return(0,Ke.createElement)("blockquote",{style:{textAlign:t||null}},(0,Ke.createElement)(nt.RichText.Content,{multiline:!0,value:n}),!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:a}))}},ax={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(2===e.style){const{style:t,...n}=e;return ex({...n,className:e.className?e.className+" is-style-large":"is-style-large"})}return ex(e)},save({attributes:e}){const{align:t,value:n,citation:a,style:o}=e;return(0,Ke.createElement)("blockquote",{className:2===o?"is-large":"",style:{textAlign:t||null}},(0,Ke.createElement)(nt.RichText.Content,{multiline:!0,value:n}),!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:a}))}},ox={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"footer",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(!isNaN(parseInt(e.style))){const{style:t,...n}=e;return ex({...n})}return ex(e)},save({attributes:e}){const{align:t,value:n,citation:a,style:o}=e;return(0,Ke.createElement)("blockquote",{className:`blocks-quote-style-${o}`,style:{textAlign:t||null}},(0,Ke.createElement)(nt.RichText.Content,{multiline:!0,value:n}),!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"footer",value:a}))}},rx=[tx,nx,ax,ox],lx="web"===_t.Platform.OS,ix=[["core/paragraph",{}]];const sx={from:[{type:"block",blocks:["core/pullquote"],transform:({value:e,citation:t,anchor:n,fontSize:a,style:o})=>(0,Qe.createBlock)("core/quote",{citation:t,anchor:n,fontSize:a,style:o},[(0,Qe.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,Qe.createBlock)("core/quote",{},[(0,Qe.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,Qe.createBlock)("core/quote",{},t({HTML:e.innerHTML,mode:"BLOCKS"}))},{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:({},e)=>1===e.length?["core/paragraph","core/heading","core/list","core/pullquote"].includes(e[0].name):!e.some((({name:e})=>"core/quote"===e)),__experimentalConvert:e=>(0,Qe.createBlock)("core/quote",{},e.map((e=>(0,Qe.createBlock)(e.name,e.attributes,e.innerBlocks))))}],to:[{type:"block",blocks:["core/pullquote"],isMatch:({},e)=>e.innerBlocks.every((({name:e})=>"core/paragraph"===e)),transform:({citation:e,anchor:t,fontSize:n,style:a},o)=>{const r=o.map((({attributes:e})=>`${e.content}`)).join("<br>");return(0,Qe.createBlock)("core/pullquote",{value:r,citation:e,anchor:t,fontSize:n,style:a})}},{type:"block",blocks:["core/paragraph"],transform:({citation:e},t)=>nt.RichText.isEmpty(e)?t:[...t,(0,Qe.createBlock)("core/paragraph",{content:e})]},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},n)=>(0,Qe.createBlock)("core/group",{anchor:t},nt.RichText.isEmpty(e)?n:[...n,(0,Qe.createBlock)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>nt.RichText.isEmpty(e)?t:[...t,(0,Qe.createBlock)("core/paragraph",{content:e})]},cx=sx,mx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/quote",title:"Quote",category:"text",description:'Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar',keywords:["blockquote","cite"],textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"rich-text",source:"rich-text",selector:"cite",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalOnEnter:!0,__experimentalOnMerge:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:{allowEditing:!1},spacing:{blockGap:!0},interactivity:{clientNavigation:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"plain",label:"Plain"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"},{name:ux}=mx,px={icon:Xk,example:{attributes:{citation:"Julio Cortázar"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("In quoting others, we cite ourselves.")}}]},transforms:cx,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:n,clientId:a,className:o,style:r}){const{align:l,citation:i}=e;((e,t)=>{const n=(0,gt.useRegistry)(),{updateBlockAttributes:a,replaceInnerBlocks:o}=(0,gt.useDispatch)(nt.store);(0,_t.useEffect)((()=>{if(!e.value)return;const[r,l]=ex(e);Qp()("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),n.batch((()=>{a(t,r),o(t,l)}))}),[e.value])})(e,a);const s=(0,gt.useSelect)((e=>{const{isBlockSelected:t,hasSelectedInnerBlock:n}=e(nt.store);return n(a)||t(a)}),[]),c=(0,nt.useBlockProps)({className:ut()(o,{[`has-text-align-${l}`]:l}),...!lx&&{style:r}}),m=(0,nt.useInnerBlocksProps)(c,{template:ix,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:l,onChange:e=>{t({align:e})}})),(0,Ke.createElement)(et.BlockQuotation,{...m},m.children,(!nt.RichText.isEmpty(i)||s)&&(0,Ke.createElement)(nt.RichText,{identifier:"citation",tagName:lx?"cite":void 0,style:{display:"block"},value:i,onChange:e=>{t({citation:e})},__unstableMobileNoFocusOnMount:!0,"aria-label":(0,tt.__)("Quote citation"),placeholder:(0,tt.__)("Add citation"),className:"wp-block-quote__citation",__unstableOnSplitAtEnd:()=>n((0,Qe.createBlock)((0,Qe.getDefaultBlockName)())),...lx?{}:{textAlign:l}})))},save:function({attributes:e}){const{align:t,citation:n}=e,a=ut()({[`has-text-align-${t}`]:t});return(0,Ke.createElement)("blockquote",{...nt.useBlockProps.save({className:a})},(0,Ke.createElement)(nt.InnerBlocks.Content,null),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:n}))},deprecated:rx},dx=()=>Xe({name:ux,metadata:mx,settings:px}),gx=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),hx=window.wp.patterns,{useLayoutClasses:bx}=Ft(nt.privateApis),{PARTIAL_SYNCING_SUPPORTED_BLOCKS:_x}=Ft(hx.privateApis),yx=["full","wide","left","right"];function vx(e,t,n={}){let a={};for(const o of e){o?.innerBlocks?.length&&(a={...a,...vx(o.innerBlocks,t,n)});const e=o.attributes.metadata?.id,r=o.clientId;e&&t?.[e]&&(a[r]=e)}return a}const fx=(e,t)=>{const n=(0,_t.useRef)();return(0,_t.useMemo)((()=>{if(!e?.length)return{};let a=n.current;if(void 0===a){const o="constrained"===t?.type,r=e.some((e=>yx.includes(e.attributes.align)));a=o&&r?"full":null,n.current=a}return{alignment:a,layout:a?t:void 0}}),[e,t])};function kx(e){return Object.keys(_x).includes(e.name)&&!!e.attributes.metadata?.bindings&&Object.values(e.attributes.metadata.bindings).some((e=>"core/pattern-overrides"===e.source))}function xx(e){return e.some((e=>!!kx(e)||xx(e.innerBlocks)))}function wx(e){return Object.entries(e.attributes.metadata.bindings).filter((([,e])=>"core/pattern-overrides"===e.source)).map((([e])=>e))}function Ex(e,t={},n,a){return e.map((e=>{var o;const r=Ex(e.innerBlocks,t,n,a),l=null!==(o=a?.[e.clientId])&&void 0!==o?o:e.attributes.metadata?.name;if(!l||!kx(e))return{...e,innerBlocks:r};const i=wx(e),s={...e.attributes};for(const a of i){var c;null!==(c=n[l])&&void 0!==c||(n[l]={}),n[l][a]=e.attributes[a];const o=t[l];void 0!==o?.[a]&&(s[a]=o[a])}return{...e,attributes:s,innerBlocks:r}}))}function Cx(e,t,n){const a={};for(const s of e){var o;if(s.name===zx)continue;s.innerBlocks.length&&Object.assign(a,Cx(s.innerBlocks,t,n));const e=null!==(o=n?.[s.clientId])&&void 0!==o?o:s.attributes.metadata?.name;if(!e||!kx(s))continue;const c=wx(s);for(const n of c){var r;if(l=s.attributes[n],i=t?.[e]?.[n],!(l instanceof Rn.RichTextData&&i instanceof Rn.RichTextData?l.toString()===i.toString():l===i))null!==(r=a[e])&&void 0!==r||(a[e]={}),a[e][n]=void 0===s.attributes[n]?"":s.attributes[n]}}var l,i;return Object.keys(a).length>0?a:void 0}function Sx(e,t,n){t.forEach((t=>{const a=n||(kx(t)?"contentOnly":"disabled");e(t.clientId,a),Sx(e,t.innerBlocks,t.name===zx?"disabled":n)}))}function Bx(){const e=(0,nt.useBlockProps)();return(0,Ke.createElement)("div",{...e},(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Block cannot be rendered inside itself.")))}function Nx({name:e,attributes:{ref:t,content:n},__unstableParentLayout:a,clientId:o,setAttributes:r}){const l=(0,gt.useRegistry)(),{record:i,editedRecord:s,hasResolved:c}=(0,dt.useEntityRecord)("postType","wp_block",t),m=c&&!i,u=(0,_t.useRef)(n),p=(0,_t.useRef)({}),{replaceInnerBlocks:d,__unstableMarkNextChangeAsNotPersistent:g,setBlockEditingMode:h}=(0,gt.useDispatch)(nt.store),{syncDerivedUpdates:b}=Ft((0,gt.useDispatch)(nt.store)),{innerBlocks:_,userCanEdit:y,getBlockEditingMode:v,onNavigateToEntityRecord:f,editingMode:k,hasPatternOverridesSource:x}=(0,gt.useSelect)((e=>{const{canUser:n}=e(dt.store),{getBlocks:a,getSettings:r,getBlockEditingMode:l}=e(nt.store),{getBlockBindingsSource:i}=Ft(e(Qe.store));return{innerBlocks:a(o),userCanEdit:n("update","blocks",t),getBlockEditingMode:l,onNavigateToEntityRecord:r().onNavigateToEntityRecord,editingMode:l(o),hasPatternOverridesSource:!!i("core/pattern-overrides")}}),[o,t]);(0,_t.useEffect)((()=>{Sx(h,_,"disabled"!==k&&x?void 0:"disabled")}),[k,_,h,x]);const w=(0,_t.useMemo)((()=>x&&xx(_)),[x,_]),E=(0,_t.useMemo)((()=>{var e;return null!==(e=s.blocks?.map((e=>(0,Qe.cloneBlock)(e))))&&void 0!==e?e:s.content&&"function"!=typeof s.content?(0,Qe.parse)(s.content):[]}),[s.blocks,s.content]),C=(0,_t.useRef)({});(0,_t.useEffect)((()=>{C.current=vx(E,u.current),p.current={};const e=v(o);l.batch((()=>{h(o,"default"),b((()=>{const e=x?Ex(E,u.current,p.current,C.current):E;d(o,e)})),h(o,e)}))}),[x,g,o,E,d,l,v,h,b]);const{alignment:S,layout:B}=fx(_,a),N=bx({layout:B},e),T=(0,nt.useBlockProps)({className:ut()("block-library-block__reusable-block-container",B&&N,{[`align${S}`]:S})}),I=(0,nt.useInnerBlocksProps)(T,{templateLock:"all",layout:B,renderAppender:_?.length?void 0:nt.InnerBlocks.ButtonBlockAppender});(0,_t.useEffect)((()=>{if(!x)return;const{getBlocks:e}=l.select(nt.store);let t=e(o);return l.subscribe((()=>{const n=e(o);n!==t&&(t=n,b((()=>{r({content:Cx(n,p.current,C.current)})})))}),nt.store)}),[x,b,o,l,r]);let P=null;return m&&(P=(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Block has been deleted or is unavailable."))),c||(P=(0,Ke.createElement)(et.Placeholder,null,(0,Ke.createElement)(et.Spinner,null))),(0,Ke.createElement)(Ke.Fragment,null,y&&f&&(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>{f({postId:t,postType:"wp_block"})}},(0,tt.__)("Edit original")))),w&&(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>{n&&d(o,E)},disabled:!n,__experimentalIsFocusable:!0},(0,tt.__)("Reset")))),null===P?(0,Ke.createElement)("div",{...I}):(0,Ke.createElement)("div",{...T},P))}const Tx={attributes:{ref:{type:"number"},content:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible:({content:e})=>!!e&&Object.keys(e).every((t=>{return e[t].values&&("object"==typeof(n=e[t].values)&&!Array.isArray(n)&&null!==n);var n})),migrate(e){const{content:t,...n}=e;if(t&&Object.keys(t).length){const e={...t};for(const n in t)e[n]=t[n].values;return{...n,content:e}}return e}},Ix={attributes:{ref:{type:"number"},overrides:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible:({overrides:e})=>!!e,migrate(e){const{overrides:t,...n}=e,a={};return Object.keys(t).forEach((e=>{a[e]=t[e]})),{...n,content:a}}},Px=[Tx,Ix],Mx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/block",title:"Pattern",category:"reusable",description:"Reuse this design across your site.",keywords:["reusable"],textdomain:"default",attributes:{ref:{type:"number"},content:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1,interactivity:{clientNavigation:!0}}},{name:zx}=Mx,Rx={deprecated:Px,edit:function(e){const{ref:t}=e.attributes;return(0,nt.useHasRecursion)(t)?(0,Ke.createElement)(Bx,null):(0,Ke.createElement)(nt.RecursionProvider,{uniqueId:t},(0,Ke.createElement)(Nx,{...e}))},icon:gx,__experimentalLabel:({ref:e})=>{if(!e)return;const t=(0,gt.select)(dt.store).getEditedEntityRecord("postType","wp_block",e);return t?.title?(0,Jn.decodeEntities)(t.title):void 0}},Ax=()=>Xe({name:zx,metadata:Mx,settings:Rx});const Hx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/read-more",title:"Read More",category:"theme",description:"Displays the link of a post, page, or any other content-type.",textdomain:"default",attributes:{content:{type:"string"},linkTarget:{type:"string",default:"_self"}},usesContext:["postId"],supports:{html:!1,color:{gradients:!0,text:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,textDecoration:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalDefaultControls:{width:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-read-more"},{name:Lx}=Hx,Dx={icon:kn,edit:function({attributes:{content:e,linkTarget:t},setAttributes:n,insertBlocksAfter:a}){const o=(0,nt.useBlockProps)();return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>n({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t}))),(0,Ke.createElement)(nt.RichText,{tagName:"a","aria-label":(0,tt.__)("“Read more” link text"),placeholder:(0,tt.__)("Read more"),value:e,onChange:e=>n({content:e}),__unstableOnSplitAtEnd:()=>a((0,Qe.createBlock)((0,Qe.getDefaultBlockName)())),withoutInteractiveFormatting:!0,...o}))}},Fx=()=>Xe({name:Lx,metadata:Hx,settings:Dx}),Vx=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.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"}));const $x={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/rss",title:"RSS",category:"widgets",description:"Display entries from any RSS or Atom feed.",keywords:["atom","feed"],textdomain:"default",attributes:{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,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"},{name:Ox}=$x,Gx={icon:Vx,example:{attributes:{feedURL:"https://wordpress.org"}},edit:function({attributes:e,setAttributes:t}){const[n,a]=(0,_t.useState)(!e.feedURL),{blockLayout:o,columns:r,displayAuthor:l,displayDate:i,displayExcerpt:s,excerptLength:c,feedURL:m,itemsToShow:u}=e;function p(n){return()=>{const a=e[n];t({[n]:!a})}}const d=(0,nt.useBlockProps)();if(n)return(0,Ke.createElement)("div",{...d},(0,Ke.createElement)(et.Placeholder,{icon:Vx,label:"RSS"},(0,Ke.createElement)("form",{onSubmit:function(e){e.preventDefault(),m&&(t({feedURL:(0,pt.prependHTTP)(m)}),a(!1))},className:"wp-block-rss__placeholder-form"},(0,Ke.createElement)(et.__experimentalHStack,{wrap:!0},(0,Ke.createElement)(et.__experimentalInputControl,{__next40pxDefaultSize:!0,placeholder:(0,tt.__)("Enter URL here…"),value:m,onChange:e=>t({feedURL:e}),className:"wp-block-rss__placeholder-input"}),(0,Ke.createElement)(et.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit"},(0,tt.__)("Use URL"))))));const g=[{icon:Di,title:(0,tt.__)("Edit RSS URL"),onClick:()=>a(!0)},{icon:Tp,title:(0,tt.__)("List view"),onClick:()=>t({blockLayout:"list"}),isActive:"list"===o},{icon:Xm,title:(0,tt.__)("Grid view"),onClick:()=>t({blockLayout:"grid"}),isActive:"grid"===o}];return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,{controls:g})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Number of items"),value:u,onChange:e=>t({itemsToShow:e}),min:1,max:20,required:!0}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display author"),checked:l,onChange:p("displayAuthor")}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display date"),checked:i,onChange:p("displayDate")}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display excerpt"),checked:s,onChange:p("displayExcerpt")}),s&&(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Max number of words in excerpt"),value:c,onChange:e=>t({excerptLength:e}),min:10,max:100,required:!0}),"grid"===o&&(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Columns"),value:r,onChange:e=>t({columns:e}),min:2,max:6,required:!0}))),(0,Ke.createElement)("div",{...d},(0,Ke.createElement)(et.Disabled,null,(0,Ke.createElement)(ot(),{block:"core/rss",attributes:e}))))}},Ux=()=>Xe({name:Ox,metadata:$x,settings:Gx}),qx=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})),jx=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),Wx=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,Ke.createElement)(et.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Zx=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,Ke.createElement)(et.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Qx=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"})),Kx=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),(0,Ke.createElement)(et.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),Yx=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),(0,Ke.createElement)(et.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"}));function Jx(e){return"%"===e}const Xx=[{name:"default",isDefault:!0,attributes:{buttonText:(0,tt.__)("Search"),label:(0,tt.__)("Search")}}],ew={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/search",title:"Search",category:"widgets",description:"Help visitors find your content.",keywords:["find"],textdomain:"default",attributes:{label:{type:"string",__experimentalRole:"content"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:"",__experimentalRole:"content"},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string",__experimentalRole:"content"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1},query:{type:"object",default:{}},isSearchFieldHidden:{type:"boolean",default:!1}},supports:{align:["left","center","right"],color:{gradients:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:!0,typography:{__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-search__label, .wp-block-search__input, .wp-block-search__button",fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search"},{name:tw}=ew,nw={icon:qx,example:{attributes:{buttonText:(0,tt.__)("Search"),label:(0,tt.__)("Search")},viewportWidth:400},variations:Xx,edit:function({className:e,attributes:t,setAttributes:n,toggleSelection:a,isSelected:o,clientId:r}){const{label:l,showLabel:i,placeholder:s,width:c,widthUnit:m,align:u,buttonText:p,buttonPosition:d,buttonUseIcon:g,isSearchFieldHidden:h,style:b}=t,_=(0,gt.useSelect)((e=>{const{getBlockParentsByBlockName:t,wasBlockJustInserted:n}=e(nt.store);return!!t(r,"core/navigation")?.length&&n(r)}),[r]),{__unstableMarkNextChangeAsNotPersistent:y}=(0,gt.useDispatch)(nt.store);(0,_t.useEffect)((()=>{_&&(y(),n({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))}),[y,_,n]);const v=b?.border?.radius,f=(0,nt.__experimentalUseBorderProps)(t);"number"==typeof v&&(f.style.borderRadius=`${v}px`);const k=(0,nt.__experimentalUseColorProps)(t),[x,w]=(0,nt.useSettings)("typography.fluid","layout"),E=(0,nt.getTypographyClassesAndStyles)(t,{typography:{fluid:x},layout:{wideSize:w?.wideSize}}),C=`wp-block-search__width-${(0,jt.useInstanceId)(et.__experimentalUnitControl)}`,S="button-inside"===d,B="button-outside"===d,N="no-button"===d,T="button-only"===d,I=(0,_t.useRef)(),P=(0,_t.useRef)(),M=(0,et.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":50,px:350}});(0,_t.useEffect)((()=>{T&&!o&&n({isSearchFieldHidden:!0})}),[T,o,n]),(0,_t.useEffect)((()=>{T&&o&&n({isSearchFieldHidden:!1})}),[T,o,n,c]);const z=[{role:"menuitemradio",title:(0,tt.__)("Button outside"),isActive:"button-outside"===d,icon:Wx,onClick:()=>{n({buttonPosition:"button-outside",isSearchFieldHidden:!1})}},{role:"menuitemradio",title:(0,tt.__)("Button inside"),isActive:"button-inside"===d,icon:Zx,onClick:()=>{n({buttonPosition:"button-inside",isSearchFieldHidden:!1})}},{role:"menuitemradio",title:(0,tt.__)("No button"),isActive:"no-button"===d,icon:Qx,onClick:()=>{n({buttonPosition:"no-button",isSearchFieldHidden:!1})}},{role:"menuitemradio",title:(0,tt.__)("Button only"),isActive:"button-only"===d,icon:jx,onClick:()=>{n({buttonPosition:"button-only",isSearchFieldHidden:!0})}}],R=()=>{const e=ut()("wp-block-search__input",S?void 0:f.className,E.className),t={...S?{borderRadius:v}:f.style,...E.style,textDecoration:void 0};return(0,Ke.createElement)("input",{type:"search",className:e,style:t,"aria-label":(0,tt.__)("Optional placeholder text"),placeholder:s?void 0:(0,tt.__)("Optional placeholder…"),value:s,onChange:e=>n({placeholder:e.target.value}),ref:I})},A=(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{title:(0,tt.__)("Toggle search label"),icon:Yx,onClick:()=>{n({showLabel:!i})},className:i?"is-pressed":void 0}),(0,Ke.createElement)(et.ToolbarDropdownMenu,{icon:(()=>{switch(d){case"button-inside":return Zx;case"button-outside":return Wx;case"no-button":return Qx;case"button-only":return jx}})(),label:(0,tt.__)("Change button position"),controls:z}),!N&&(0,Ke.createElement)(et.ToolbarButton,{title:(0,tt.__)("Use button with icon"),icon:Kx,onClick:()=>{n({buttonUseIcon:!g})},className:g?"is-pressed":void 0}))),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Display Settings")},(0,Ke.createElement)(et.BaseControl,{label:(0,tt.__)("Width"),id:C},(0,Ke.createElement)(et.__experimentalUnitControl,{id:C,min:Jx(m)?0:220,max:Jx(m)?100:void 0,step:1,onChange:e=>{const t="%"===m&&parseInt(e,10)>100?100:e;n({width:parseInt(t,10)})},onUnitChange:e=>{n({width:"%"===e?50:350,widthUnit:e})},__unstableInputWidth:"80px",value:`${c}${m}`,units:M}),(0,Ke.createElement)(et.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":(0,tt.__)("Percentage Width")},[25,50,75,100].map((e=>(0,Ke.createElement)(et.Button,{key:e,size:"small",variant:e===c&&"%"===m?"primary":void 0,onClick:()=>n({width:e,widthUnit:"%"})},e,"%")))))))),H=e=>e?`calc(${e} + 4px)`:void 0,L=(0,nt.useBlockProps)({className:ut()(e,S?"wp-block-search__button-inside":void 0,B?"wp-block-search__button-outside":void 0,N?"wp-block-search__no-button":void 0,T?"wp-block-search__button-only":void 0,g||N?void 0:"wp-block-search__text-button",g&&!N?"wp-block-search__icon-button":void 0,T&&h?"wp-block-search__searchfield-hidden":void 0),style:{...E.style,textDecoration:void 0}}),D=ut()("wp-block-search__label",E.className);return(0,Ke.createElement)("div",{...L},A,i&&(0,Ke.createElement)(nt.RichText,{className:D,"aria-label":(0,tt.__)("Label text"),placeholder:(0,tt.__)("Add label…"),withoutInteractiveFormatting:!0,value:l,onChange:e=>n({label:e}),style:E.style}),(0,Ke.createElement)(et.ResizableBox,{size:{width:`${c}${m}`},className:ut()("wp-block-search__inside-wrapper",S?f.className:void 0),style:(()=>{const e=S?f.style:{borderRadius:f.style?.borderRadius,borderTopLeftRadius:f.style?.borderTopLeftRadius,borderTopRightRadius:f.style?.borderTopRightRadius,borderBottomLeftRadius:f.style?.borderBottomLeftRadius,borderBottomRightRadius:f.style?.borderBottomRightRadius},t=void 0!==v&&0!==parseInt(v,10);if(S&&t){if("object"==typeof v){const{topLeft:t,topRight:n,bottomLeft:a,bottomRight:o}=v;return{...e,borderTopLeftRadius:H(t),borderTopRightRadius:H(n),borderBottomLeftRadius:H(a),borderBottomRightRadius:H(o)}}const t=Number.isInteger(v)?`${v}px`:v;e.borderRadius=`calc(${t} + 4px)`}return e})(),minWidth:220,enable:T?{}:{right:"right"!==u,left:"right"===u},onResizeStart:(e,t,o)=>{n({width:parseInt(o.offsetWidth,10),widthUnit:"px"}),a(!1)},onResizeStop:(e,t,o,r)=>{n({width:parseInt(c+r.width,10)}),a(!0)},showHandle:o},(S||B||T)&&(0,Ke.createElement)(Ke.Fragment,null,R(),(()=>{const e=ut()("wp-block-search__button",k.className,E.className,S?void 0:f.className,g?"has-icon":void 0,(0,nt.__experimentalGetElementClassName)("button")),t={...k.style,...E.style,...S?{borderRadius:v}:f.style},a=()=>{T&&n({isSearchFieldHidden:!h})};return(0,Ke.createElement)(Ke.Fragment,null,g&&(0,Ke.createElement)("button",{type:"button",className:e,style:t,"aria-label":p?(0,ac.__unstableStripHTML)(p):(0,tt.__)("Search"),onClick:a,ref:P},(0,Ke.createElement)(Ng,{icon:qx})),!g&&(0,Ke.createElement)(nt.RichText,{className:e,style:t,"aria-label":(0,tt.__)("Button text"),placeholder:(0,tt.__)("Add button text…"),withoutInteractiveFormatting:!0,value:p,onChange:e=>n({buttonText:e}),onClick:a}))})()),N&&R()))}},aw=()=>Xe({name:tw,metadata:ew,settings:nw}),ow=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"}));const rw={from:[{type:"enter",regExp:/^-{3,}$/,transform:()=>(0,Qe.createBlock)("core/separator")},{type:"raw",selector:"hr",schema:{hr:{}}}]},lw={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){const{color:t,customColor:n}=e,a=(0,nt.getColorClassName)("background-color",t),o=(0,nt.getColorClassName)("color",t),r=ut()({"has-text-color has-background":t||n,[a]:a,[o]:o}),l={backgroundColor:a?void 0:n,color:o?void 0:n};return(0,Ke.createElement)("hr",{...nt.useBlockProps.save({className:r,style:l})})},migrate(e){const{color:t,customColor:n,...a}=e;return{...a,backgroundColor:t||void 0,opacity:"css",style:n?{color:{background:n}}:void 0}}},iw=[lw],sw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/separator",title:"Separator",category:"design",description:"Create a break between ideas or sections with a horizontal separator.",keywords:["horizontal-line","hr","divider"],textdomain:"default",attributes:{opacity:{type:"string",default:"alpha-channel"}},supports:{anchor:!0,align:["center","wide","full"],color:{enableContrastChecker:!1,__experimentalSkipSerialization:!0,gradients:!0,background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{margin:["top","bottom"]},interactivity:{clientNavigation:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"wide",label:"Wide Line"},{name:"dots",label:"Dots"}],editorStyle:"wp-block-separator-editor",style:"wp-block-separator"},{name:cw}=sw,mw={icon:ow,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:rw,edit:function({attributes:e,setAttributes:t}){const{backgroundColor:n,opacity:a,style:o}=e,r=(0,nt.__experimentalUseColorProps)(e),l=r?.style?.backgroundColor,i=!!o?.color?.background;!function(e,t,n){const[a,o]=(0,_t.useState)(!1),r=(0,jt.usePrevious)(t);(0,_t.useEffect)((()=>{"css"!==e||t||r||o(!0)}),[t,r,e]),(0,_t.useEffect)((()=>{"css"===e&&(a&&t||r&&t!==r)&&(n({opacity:"alpha-channel"}),o(!1))}),[a,t,r])}(a,l,t);const s=(0,nt.getColorClassName)("color",n),c=ut()({"has-text-color":n||l,[s]:s,"has-css-opacity":"css"===a,"has-alpha-channel-opacity":"alpha-channel"===a},r.className),m={color:l,backgroundColor:l};return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.HorizontalRule,{...(0,nt.useBlockProps)({className:c,style:i?m:void 0})}))},save:function({attributes:e}){const{backgroundColor:t,style:n,opacity:a}=e,o=n?.color?.background,r=(0,nt.__experimentalGetColorClassesAndStyles)(e),l=(0,nt.getColorClassName)("color",t),i=ut()({"has-text-color":t||o,[l]:l,"has-css-opacity":"css"===a,"has-alpha-channel-opacity":"alpha-channel"===a},r.className),s={backgroundColor:r?.style?.backgroundColor,color:l?void 0:o};return(0,Ke.createElement)("hr",{...nt.useBlockProps.save({className:i,style:s})})},deprecated:iw},uw=()=>Xe({name:cw,metadata:sw,settings:mw}),pw=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.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"}));const dw=window.wp.autop,gw={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,dw.removep)((0,dw.autop)(t))}},priority:20}]},hw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/shortcode",title:"Shortcode",category:"widgets",description:"Insert additional custom elements with a WordPress shortcode.",textdomain:"default",attributes:{text:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,html:!1},editorStyle:"wp-block-shortcode-editor"},{name:bw}=hw,_w={icon:pw,transforms:gw,edit:function e({attributes:t,setAttributes:n}){const a=`blocks-shortcode-input-${(0,jt.useInstanceId)(e)}`;return(0,Ke.createElement)("div",{...(0,nt.useBlockProps)({className:"components-placeholder"})},(0,Ke.createElement)("label",{htmlFor:a,className:"components-placeholder__label"},(0,Ke.createElement)(Ng,{icon:pw}),(0,tt.__)("Shortcode")),(0,Ke.createElement)(nt.PlainText,{className:"blocks-shortcode__textarea",id:a,value:t.text,"aria-label":(0,tt.__)("Shortcode text"),placeholder:(0,tt.__)("Write shortcode here…"),onChange:e=>n({text:e})}))},save:function({attributes:e}){return(0,Ke.createElement)(_t.RawHTML,null,e.text)}},yw=()=>Xe({name:bw,metadata:hw,settings:_w}),vw=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"})),fw=["image"],kw="image/*",xw=({alt:e,attributes:{align:t,width:n,height:a,isLink:o,linkTarget:r,shouldSyncIcon:l},containerRef:i,isSelected:s,setAttributes:c,setLogo:m,logoUrl:u,siteUrl:p,logoId:d,iconId:g,setIcon:h,canUserEdit:b})=>{const _=ap(i,[t]),y=(0,jt.useViewportMatch)("medium"),v=!["wide","full"].includes(t)&&y,[{naturalWidth:f,naturalHeight:k},x]=(0,_t.useState)({}),[w,E]=(0,_t.useState)(!1),{toggleSelection:C}=(0,gt.useDispatch)(nt.store),S=ut()("custom-logo-link",{"is-transient":(0,It.isBlobURL)(u)}),{imageEditing:B,maxWidth:N,title:T}=(0,gt.useSelect)((e=>{const t=e(nt.store).getSettings(),n=e(dt.store).getEntityRecord("root","__unstableBase");return{title:n?.name,imageEditing:t.imageEditing,maxWidth:t.maxWidth}}),[]);(0,_t.useEffect)((()=>{l&&d!==g&&c({shouldSyncIcon:!1})}),[]),(0,_t.useEffect)((()=>{s||E(!1)}),[s]);const I=(0,Ke.createElement)("img",{className:"custom-logo",src:u,alt:e,onLoad:e=>{x({naturalWidth:e.target.naturalWidth,naturalHeight:e.target.naturalHeight})}});let P,M=I;if(o&&(M=(0,Ke.createElement)("a",{href:p,className:S,rel:"home",title:T,onClick:e=>e.preventDefault()},I)),_&&f&&k){P=f>_?_:f}if(!v||!P)return(0,Ke.createElement)("div",{style:{width:n,height:a}},M);const z=n||120,R=f/k,A=z/R,H=f<k?Jc:Math.ceil(Jc*R),L=k<f?Jc:Math.ceil(Jc/R),D=2.5*N;let F=!1,V=!1;"center"===t?(F=!0,V=!0):(0,tt.isRTL)()?"left"===t?F=!0:V=!0:"right"===t?V=!0:F=!0;const $=d&&f&&k&&B,O=$&&w?(0,Ke.createElement)(nt.__experimentalImageEditor,{id:d,url:u,width:z,height:A,clientWidth:_,naturalHeight:k,naturalWidth:f,onSaveImage:e=>{m(e.id)},onFinishEditing:()=>{E(!1)}}):(0,Ke.createElement)(et.ResizableBox,{size:{width:z,height:A},showHandle:s,minWidth:H,maxWidth:D,minHeight:L,maxHeight:D/R,lockAspectRatio:!0,enable:{top:!1,right:F,bottom:!0,left:V},onResizeStart:function(){C(!1)},onResizeStop:(e,t,n,a)=>{C(!0),c({width:parseInt(z+a.width,10),height:parseInt(A+a.height,10)})}},M),G=!window?.__experimentalUseCustomizerSiteLogoUrl?p+"/wp-admin/options-general.php":p+"/wp-admin/customize.php?autofocus[section]=title_tagline",U=(0,_t.createInterpolateElement)((0,tt.__)("Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. To use a custom icon that is different from your site logo, use the <a>Site Icon settings</a>."),{a:(0,Ke.createElement)("a",{href:G,target:"_blank",rel:"noopener noreferrer"})});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Image width"),onChange:e=>c({width:e}),min:H,max:D,initialPosition:Math.min(120,D),value:n||"",disabled:!v}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link image to home"),onChange:()=>c({isLink:!o}),checked:o}),o&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>c({linkTarget:e?"_blank":"_self"}),checked:"_blank"===r})),b&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Use as Site Icon"),onChange:e=>{c({shouldSyncIcon:e}),h(e?d:void 0)},checked:!!l,help:U})))),(0,Ke.createElement)(nt.BlockControls,{group:"block"},$&&!w&&(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>E(!0),icon:ep,label:(0,tt.__)("Crop")})),O)};function ww({onRemoveLogo:e,...t}){return(0,Ke.createElement)(nt.MediaReplaceFlow,{...t,allowedTypes:fw,accept:kw},(0,Ke.createElement)(et.MenuItem,{onClick:e},(0,tt.__)("Reset")))}const Ew=({mediaItemData:e={},itemGroupProps:t})=>{const{alt_text:n,source_url:a,slug:o,media_details:r}=e,l=r?.sizes?.full?.file||o;return(0,Ke.createElement)(et.__experimentalItemGroup,{...t,as:"span"},(0,Ke.createElement)(et.__experimentalHStack,{justify:"flex-start",as:"span"},(0,Ke.createElement)("img",{src:a,alt:n}),(0,Ke.createElement)(et.FlexItem,{as:"span"},(0,Ke.createElement)(et.__experimentalTruncate,{numberOfLines:1,className:"block-library-site-logo__inspector-media-replace-title"},l))))};const Cw={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,Qe.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]},Sw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-logo",title:"Site Logo",category:"theme",description:"Display an image to represent this site. Update this block and the changes apply everywhere.",textdomain:"default",attributes:{width:{type:"number"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},shouldSyncIcon:{type:"boolean"}},example:{viewportWidth:500,attributes:{width:350,className:"block-editor-block-types-list__site-logo-example"}},supports:{html:!1,align:!0,alignWide:!1,color:{__experimentalDuotone:"img, .components-placeholder__illustration, .components-placeholder::before",text:!1,background:!1},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-site-logo-editor",style:"wp-block-site-logo"},{name:Bw}=Sw,Nw={icon:vw,example:{},edit:function({attributes:e,className:t,setAttributes:n,isSelected:a}){const{width:o,shouldSyncIcon:r}=e,l=(0,_t.useRef)(),{siteLogoId:i,canUserEdit:s,url:c,siteIconId:m,mediaItemData:u,isRequestingMediaItem:p}=(0,gt.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:a}=e(dt.store),o=t("update","settings"),r=o?a("root","site"):void 0,l=n("root","__unstableBase"),i=o?r?.site_logo:l?.site_logo,s=r?.site_icon,c=i&&e(dt.store).getMedia(i,{context:"view"}),m=i&&!e(dt.store).hasFinishedResolution("getMedia",[i,{context:"view"}]);return{siteLogoId:i,canUserEdit:o,url:l?.home,mediaItemData:c,isRequestingMediaItem:m,siteIconId:s}}),[]),{getSettings:d}=(0,gt.useSelect)(nt.store),{editEntityRecord:g}=(0,gt.useDispatch)(dt.store),h=(e,t=!1)=>{(r||t)&&b(e),g("root","site",void 0,{site_logo:e})},b=e=>g("root","site",void 0,{site_icon:null!=e?e:null}),{alt_text:_,source_url:y}=null!=u?u:{},v=e=>{if(void 0===r){const t=!m;return n({shouldSyncIcon:t}),void f(e,t)}f(e)},f=(e,t=!1)=>{e&&(e.id||!e.url?h(e.id,t):h(void 0))},{createErrorNotice:k}=(0,gt.useDispatch)(Pt.store),x=e=>{k(e,{type:"snackbar"})},w=e=>{d().mediaUpload({allowedTypes:fw,filesList:e,onFileChange([e]){(0,It.isBlobURL)(e?.url)||v(e)},onError:x})},E={mediaURL:y,onSelect:f,onError:x,onRemoveLogo:()=>{h(null),n({width:void 0})}},C=s&&y&&(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(ww,{...E}));let S;const B=void 0===i||p;B&&(S=(0,Ke.createElement)(et.Spinner,null)),y&&(S=(0,Ke.createElement)(xw,{alt:_,attributes:e,className:t,containerRef:l,isSelected:a,setAttributes:n,logoUrl:y,setLogo:h,logoId:u?.id||i,siteUrl:c,setIcon:b,iconId:m,canUserEdit:s}));const N=ut()(t,{"is-default-size":!o}),T=(0,nt.useBlockProps)({ref:l,className:N}),I=(0,tt.__)("Add a site logo"),P=(s||y)&&(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Media")},(0,Ke.createElement)("div",{className:"block-library-site-logo__inspector-media-replace-container"},!s&&!!y&&(0,Ke.createElement)(Ew,{mediaItemData:u,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"}}),s&&!!y&&(0,Ke.createElement)(ww,{...E,name:(0,Ke.createElement)(Ew,{mediaItemData:u}),popoverProps:{}}),s&&!y&&(0,Ke.createElement)(nt.MediaUploadCheck,null,(0,Ke.createElement)(nt.MediaUpload,{onSelect:v,allowedTypes:fw,render:({open:e})=>(0,Ke.createElement)("div",{className:"block-library-site-logo__inspector-upload-container"},(0,Ke.createElement)(et.Button,{onClick:e,variant:"secondary"},B?(0,Ke.createElement)(et.Spinner,null):(0,tt.__)("Add media")),(0,Ke.createElement)(et.DropZone,{onFilesDrop:w}))})))));return(0,Ke.createElement)("div",{...T},C,P,!!y&&S,!y&&!s&&(0,Ke.createElement)(et.Placeholder,{className:"site-logo_placeholder"},!!B&&(0,Ke.createElement)("span",{className:"components-placeholder__preview"},(0,Ke.createElement)(et.Spinner,null))),!y&&s&&(0,Ke.createElement)(nt.MediaPlaceholder,{onSelect:v,accept:kw,allowedTypes:fw,onError:x,placeholder:e=>{const n=ut()("block-editor-media-placeholder",t);return(0,Ke.createElement)(et.Placeholder,{className:n,preview:S,withIllustration:!0,style:{width:o}},e)},mediaLibraryButton:({open:e})=>(0,Ke.createElement)(et.Button,{icon:np,variant:"primary",label:I,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{e()}})}))},transforms:Cw},Tw=()=>Xe({name:Bw,metadata:Sw,settings:Nw});const Iw=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},(0,Ke.createElement)(et.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"})),Pw={attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:ln,isEligible:({style:e})=>e?.typography?.fontFamily},Mw=[Pw],zw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-tagline",title:"Site Tagline",category:"theme",description:"Describe in a few words what the site is about. The tagline can be used in search results or when sharing on social networks even if it’s not displayed in the theme design.",keywords:["description"],textdomain:"default",attributes:{textAlign:{type:"string"}},example:{},supports:{align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-site-tagline-editor"},{name:Rw}=zw,Aw={icon:Iw,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:n}){const{textAlign:a}=e,{canUserEdit:o,tagline:r}=(0,gt.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:a}=e(dt.store),o=t("update","settings"),r=o?a("root","site"):{},l=n("root","__unstableBase");return{canUserEdit:t("update","settings"),tagline:o?r?.description:l?.description}}),[]),{editEntityRecord:l}=(0,gt.useDispatch)(dt.store),i=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${a}`]:a,"wp-block-site-tagline__placeholder":!o&&!r})}),s=o?(0,Ke.createElement)(nt.RichText,{allowedFormats:[],onChange:function(e){l("root","site",void 0,{description:e})},"aria-label":(0,tt.__)("Site tagline text"),placeholder:(0,tt.__)("Write site tagline…"),tagName:"p",value:r,disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>n((0,Qe.createBlock)((0,Qe.getDefaultBlockName)())),...i}):(0,Ke.createElement)("p",{...i},r||(0,tt.__)("Site Tagline placeholder"));return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{onChange:e=>t({textAlign:e}),value:a})),s)},deprecated:Mw},Hw=()=>Xe({name:Rw,metadata:zw,settings:Aw}),Lw=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})),Dw=[0,1,2,3,4,5,6];const Fw={attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:ln,isEligible:({style:e})=>e?.typography?.fontFamily},Vw=[Fw],$w={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,Qe.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]},Ow={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-title",title:"Site Title",category:"theme",description:"Displays the name of this site. Update the block, and the changes apply everywhere it’s used. This will also appear in the browser title bar and in search results.",textdomain:"default",attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},example:{viewportWidth:500},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-site-title-editor",style:"wp-block-site-title"},{name:Gw}=Ow,Uw={icon:Lw,example:{},edit:function({attributes:e,setAttributes:t,insertBlocksAfter:n}){const{level:a,textAlign:o,isLink:r,linkTarget:l}=e,{canUserEdit:i,title:s}=(0,gt.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:a}=e(dt.store),o=t("update","settings"),r=o?a("root","site"):{},l=n("root","__unstableBase");return{canUserEdit:o,title:o?r?.title:l?.name}}),[]),{editEntityRecord:c}=(0,gt.useDispatch)(dt.store),m=0===a?"p":`h${a}`,u=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${o}`]:o,"wp-block-site-title__placeholder":!i&&!s})}),p=i?(0,Ke.createElement)(m,{...u},(0,Ke.createElement)(nt.RichText,{tagName:r?"a":"span",href:r?"#site-title-pseudo-link":void 0,"aria-label":(0,tt.__)("Site title text"),placeholder:(0,tt.__)("Write site title…"),value:s,onChange:function(e){c("root","site",void 0,{title:e})},allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>n((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))})):(0,Ke.createElement)(m,{...u},r?(0,Ke.createElement)("a",{href:"#site-title-pseudo-link",onClick:e=>e.preventDefault()},(0,Jn.decodeEntities)(s)||(0,tt.__)("Site Title placeholder")):(0,Ke.createElement)("span",null,(0,Jn.decodeEntities)(s)||(0,tt.__)("Site Title placeholder")));return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.HeadingLevelDropdown,{options:Dw,value:a,onChange:e=>t({level:e})}),(0,Ke.createElement)(nt.AlignmentControl,{value:o,onChange:e=>{t({textAlign:e})}})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Make title link to home"),onChange:()=>t({isLink:!r}),checked:r}),r&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>t({linkTarget:e?"_blank":"_self"}),checked:"_blank"===l}))),p)},transforms:$w,deprecated:Vw},qw=()=>Xe({name:Gw,metadata:Ow,settings:Uw}),jw=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.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"})),Ww=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"})),Zw=()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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"})),Qw=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:Zw},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:"gravatar",attributes:{service:"gravatar"},title:"Gravatar",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M10.8001 4.69937V10.6494C10.8001 11.1001 10.9791 11.5323 11.2978 11.851C11.6165 12.1697 12.0487 12.3487 12.4994 12.3487C12.9501 12.3487 13.3824 12.1697 13.7011 11.851C14.0198 11.5323 14.1988 11.1001 14.1988 10.6494V6.69089C15.2418 7.05861 16.1371 7.75537 16.7496 8.67617C17.3622 9.59698 17.6589 10.6919 17.595 11.796C17.5311 12.9001 17.1101 13.9535 16.3954 14.7975C15.6807 15.6415 14.711 16.2303 13.6325 16.4753C12.5541 16.7202 11.4252 16.608 10.4161 16.1555C9.40691 15.703 8.57217 14.9348 8.03763 13.9667C7.50308 12.9985 7.29769 11.8828 7.45242 10.7877C7.60714 9.69266 8.11359 8.67755 8.89545 7.89537C9.20904 7.57521 9.38364 7.14426 9.38132 6.69611C9.37899 6.24797 9.19994 5.81884 8.88305 5.50195C8.56616 5.18506 8.13704 5.00601 7.68889 5.00369C7.24075 5.00137 6.80979 5.17597 6.48964 5.48956C5.09907 6.8801 4.23369 8.7098 4.04094 10.6669C3.84819 12.624 4.34 14.5873 5.43257 16.2224C6.52515 17.8575 8.15088 19.0632 10.0328 19.634C11.9146 20.2049 13.9362 20.1055 15.753 19.3529C17.5699 18.6003 19.0695 17.241 19.9965 15.5066C20.9234 13.7722 21.2203 11.7701 20.8366 9.84133C20.4528 7.91259 19.4122 6.17658 17.892 4.92911C16.3717 3.68163 14.466 2.99987 12.4994 3C12.0487 3 11.6165 3.17904 11.2978 3.49773C10.9791 3.81643 10.8001 4.24867 10.8001 4.69937Z"}))},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"}))},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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",keywords:["email","e-mail"],icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l7.5 5.6 7.5-5.6V17zm0-9.1L12 13.6 4.5 7.9V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v.9z"}))},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:"patreon",attributes:{service:"patreon"},title:"Patreon",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M20 8.40755C19.9969 6.10922 18.2543 4.22555 16.2097 3.54588C13.6708 2.70188 10.3222 2.82421 7.89775 3.99921C4.95932 5.42355 4.03626 8.54355 4.00186 11.6552C3.97363 14.2136 4.2222 20.9517 7.92225 20.9997C10.6715 21.0356 11.0809 17.3967 12.3529 15.6442C13.258 14.3974 14.4233 14.0452 15.8578 13.6806C18.3233 13.0537 20.0036 11.0551 20 8.40755Z"}))},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"}))},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:"telegram",attributes:{service:"telegram"},title:"Telegram",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M28.9700376,63.3244248 C47.6273373,55.1957357 60.0684594,49.8368063 66.2934036,47.2476366 C84.0668845,39.855031 87.7600616,38.5708563 90.1672227,38.528 C90.6966555,38.5191258 91.8804274,38.6503351 92.6472251,39.2725385 C93.294694,39.7979149 93.4728387,40.5076237 93.5580865,41.0057381 C93.6433345,41.5038525 93.7494885,42.63857 93.6651041,43.5252052 C92.7019529,53.6451182 88.5344133,78.2034783 86.4142057,89.5379542 C85.5170662,94.3339958 83.750571,95.9420841 82.0403991,96.0994568 C78.3237996,96.4414641 75.5015827,93.6432685 71.9018743,91.2836143 C66.2690414,87.5912212 63.0868492,85.2926952 57.6192095,81.6896017 C51.3004058,77.5256038 55.3966232,75.2369981 58.9976911,71.4967761 C59.9401076,70.5179421 76.3155302,55.6232293 76.6324771,54.2720454 C76.6721165,54.1030573 76.7089039,53.4731496 76.3346867,53.1405352 C75.9604695,52.8079208 75.4081573,52.921662 75.0095933,53.0121213 C74.444641,53.1403447 65.4461175,59.0880351 48.0140228,70.8551922 C45.4598218,72.6091037 43.1463059,73.4636682 41.0734751,73.4188859 C38.7883453,73.3695169 34.3926725,72.1268388 31.1249416,71.0646282 C27.1169366,69.7617838 23.931454,69.0729605 24.208838,66.8603276 C24.3533167,65.7078514 25.9403832,64.5292172 28.9700376,63.3244248 Z"}))},{name:"threads",attributes:{service:"threads"},title:"Threads",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M16.3 11.3c-.1 0-.2-.1-.2-.1-.1-2.6-1.5-4-3.9-4-1.4 0-2.6.6-3.3 1.7l1.3.9c.5-.8 1.4-1 2-1 .8 0 1.4.2 1.7.7.3.3.5.8.5 1.3-.7-.1-1.4-.2-2.2-.1-2.2.1-3.7 1.4-3.6 3.2 0 .9.5 1.7 1.3 2.2.7.4 1.5.6 2.4.6 1.2-.1 2.1-.5 2.7-1.3.5-.6.8-1.4.9-2.4.6.3 1 .8 1.2 1.3.4.9.4 2.4-.8 3.6-1.1 1.1-2.3 1.5-4.3 1.5-2.1 0-3.8-.7-4.8-2S5.7 14.3 5.7 12c0-2.3.5-4.1 1.5-5.4 1.1-1.3 2.7-2 4.8-2 2.2 0 3.8.7 4.9 2 .5.7.9 1.5 1.2 2.5l1.5-.4c-.3-1.2-.8-2.2-1.5-3.1-1.3-1.7-3.3-2.6-6-2.6-2.6 0-4.7.9-6 2.6C4.9 7.2 4.3 9.3 4.3 12s.6 4.8 1.9 6.4c1.4 1.7 3.4 2.6 6 2.6 2.3 0 4-.6 5.3-2 1.8-1.8 1.7-4 1.1-5.4-.4-.9-1.2-1.7-2.3-2.3zm-4 3.8c-1 .1-2-.4-2-1.3 0-.7.5-1.5 2.1-1.6h.5c.6 0 1.1.1 1.6.2-.2 2.3-1.3 2.7-2.2 2.7z"}))},{name:"tiktok",attributes:{service:"tiktok"},title:"TikTok",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 32 32",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M16.708 0.027c1.745-0.027 3.48-0.011 5.213-0.027 0.105 2.041 0.839 4.12 2.333 5.563 1.491 1.479 3.6 2.156 5.652 2.385v5.369c-1.923-0.063-3.855-0.463-5.6-1.291-0.76-0.344-1.468-0.787-2.161-1.24-0.009 3.896 0.016 7.787-0.025 11.667-0.104 1.864-0.719 3.719-1.803 5.255-1.744 2.557-4.771 4.224-7.88 4.276-1.907 0.109-3.812-0.411-5.437-1.369-2.693-1.588-4.588-4.495-4.864-7.615-0.032-0.667-0.043-1.333-0.016-1.984 0.24-2.537 1.495-4.964 3.443-6.615 2.208-1.923 5.301-2.839 8.197-2.297 0.027 1.975-0.052 3.948-0.052 5.923-1.323-0.428-2.869-0.308-4.025 0.495-0.844 0.547-1.485 1.385-1.819 2.333-0.276 0.676-0.197 1.427-0.181 2.145 0.317 2.188 2.421 4.027 4.667 3.828 1.489-0.016 2.916-0.88 3.692-2.145 0.251-0.443 0.532-0.896 0.547-1.417 0.131-2.385 0.079-4.76 0.095-7.145 0.011-5.375-0.016-10.735 0.025-16.093z"}))},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:"whatsapp",attributes:{service:"whatsapp"},title:"WhatsApp",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M 12.011719 2 C 6.5057187 2 2.0234844 6.478375 2.0214844 11.984375 C 2.0204844 13.744375 2.4814687 15.462563 3.3554688 16.976562 L 2 22 L 7.2324219 20.763672 C 8.6914219 21.559672 10.333859 21.977516 12.005859 21.978516 L 12.009766 21.978516 C 17.514766 21.978516 21.995047 17.499141 21.998047 11.994141 C 22.000047 9.3251406 20.962172 6.8157344 19.076172 4.9277344 C 17.190172 3.0407344 14.683719 2.001 12.011719 2 z M 12.009766 4 C 14.145766 4.001 16.153109 4.8337969 17.662109 6.3417969 C 19.171109 7.8517969 20.000047 9.8581875 19.998047 11.992188 C 19.996047 16.396187 16.413812 19.978516 12.007812 19.978516 C 10.674812 19.977516 9.3544062 19.642812 8.1914062 19.007812 L 7.5175781 18.640625 L 6.7734375 18.816406 L 4.8046875 19.28125 L 5.2851562 17.496094 L 5.5019531 16.695312 L 5.0878906 15.976562 C 4.3898906 14.768562 4.0204844 13.387375 4.0214844 11.984375 C 4.0234844 7.582375 7.6067656 4 12.009766 4 z M 8.4765625 7.375 C 8.3095625 7.375 8.0395469 7.4375 7.8105469 7.6875 C 7.5815469 7.9365 6.9355469 8.5395781 6.9355469 9.7675781 C 6.9355469 10.995578 7.8300781 12.182609 7.9550781 12.349609 C 8.0790781 12.515609 9.68175 15.115234 12.21875 16.115234 C 14.32675 16.946234 14.754891 16.782234 15.212891 16.740234 C 15.670891 16.699234 16.690438 16.137687 16.898438 15.554688 C 17.106437 14.971687 17.106922 14.470187 17.044922 14.367188 C 16.982922 14.263188 16.816406 14.201172 16.566406 14.076172 C 16.317406 13.951172 15.090328 13.348625 14.861328 13.265625 C 14.632328 13.182625 14.464828 13.140625 14.298828 13.390625 C 14.132828 13.640625 13.655766 14.201187 13.509766 14.367188 C 13.363766 14.534188 13.21875 14.556641 12.96875 14.431641 C 12.71875 14.305641 11.914938 14.041406 10.960938 13.191406 C 10.218937 12.530406 9.7182656 11.714844 9.5722656 11.464844 C 9.4272656 11.215844 9.5585938 11.079078 9.6835938 10.955078 C 9.7955938 10.843078 9.9316406 10.663578 10.056641 10.517578 C 10.180641 10.371578 10.223641 10.267562 10.306641 10.101562 C 10.389641 9.9355625 10.347156 9.7890625 10.285156 9.6640625 C 10.223156 9.5390625 9.737625 8.3065 9.515625 7.8125 C 9.328625 7.3975 9.131125 7.3878594 8.953125 7.3808594 C 8.808125 7.3748594 8.6425625 7.375 8.4765625 7.375 z"}))},{name:"x",attributes:{service:"x"},keywords:["twitter"],title:"X",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z"}))},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.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"}))}];Qw.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.service===t.service)}));const Kw=Qw,Yw=({url:e,setAttributes:t,setPopover:n,popoverAnchor:a,clientId:o})=>{const{removeBlock:r}=(0,gt.useDispatch)(nt.store);return(0,Ke.createElement)(nt.URLPopover,{anchor:a,onClose:()=>n(!1)},(0,Ke.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:e=>{e.preventDefault(),n(!1)}},(0,Ke.createElement)("div",{className:"block-editor-url-input"},(0,Ke.createElement)(nt.URLInput,{__nextHasNoMarginBottom:!0,value:e,onChange:e=>t({url:e}),placeholder:(0,tt.__)("Enter address"),disableSuggestions:!0,onKeyDown:t=>{e||t.defaultPrevented||![fn.BACKSPACE,fn.DELETE].includes(t.keyCode)||r(o)}})),(0,Ke.createElement)(et.Button,{icon:Ww,label:(0,tt.__)("Apply"),type:"submit"})))},Jw=({attributes:e,context:t,isSelected:n,setAttributes:a,clientId:o})=>{const{url:r,service:l,label:i,rel:s}=e,{showLabels:c,iconColor:m,iconColorValue:u,iconBackgroundColor:p,iconBackgroundColorValue:d}=t,[g,h]=(0,_t.useState)(!1),b=ut()("wp-social-link","wp-social-link-"+l,{"wp-social-link__is-incomplete":!r,[`has-${m}-color`]:m,[`has-${p}-background-color`]:p}),[_,y]=(0,_t.useState)(null),v=(e=>{const t=Kw.find((t=>t.name===e));return t?t.icon:Zw})(l),f=(e=>{const t=Kw.find((t=>t.name===e));return t?t.title:(0,tt.__)("Social Icon")})(l),k=null!=i?i:f,x=(0,nt.useBlockProps)({className:b,style:{color:u,backgroundColor:d}});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.sprintf)((0,tt.__)("%s label"),f),initialOpen:!1},(0,Ke.createElement)(et.PanelRow,null,(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link label"),help:(0,tt.__)("Briefly describe the link to help screen reader users."),value:i||"",onChange:e=>a({label:e})})))),(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link rel"),value:s||"",onChange:e=>a({rel:e})})),(0,Ke.createElement)("li",{...x},(0,Ke.createElement)(et.Button,{className:"wp-block-social-link-anchor",ref:y,onClick:()=>h(!0)},(0,Ke.createElement)(v,null),(0,Ke.createElement)("span",{className:ut()("wp-block-social-link-label",{"screen-reader-text":!c})},k),n&&g&&(0,Ke.createElement)(Yw,{url:r,setAttributes:a,setPopover:h,popoverAnchor:_,clientId:o}))))},Xw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-link",title:"Social Icon",category:"widgets",parent:["core/social-links"],description:"Display an icon linking to a social media profile or site.",textdomain:"default",attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"},rel:{type:"string"}},usesContext:["openInNewTab","showLabels","iconColor","iconColorValue","iconBackgroundColor","iconBackgroundColorValue"],supports:{reusable:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-social-link-editor"},{name:eE}=Xw,tE={icon:jw,edit:Jw,variations:Kw},nE=()=>Xe({name:eE,metadata:Xw,settings:tE}),aE=[{attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0},migrate:e=>{if(e.layout)return e;const{className:t}=e,n="items-justified-",a=new RegExp(`\\b${n}[^ ]*[ ]?\\b`,"g"),o={...e,className:t?.replace(a,"").trim()},r=t?.match(a)?.[0]?.trim();return r&&Object.assign(o,{layout:{type:"flex",justifyContent:r.slice(16)}}),o},save:e=>{const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,itemsJustification:a,size:o}}=e,r=ut()(o,{"has-icon-color":n,"has-icon-background-color":t,[`items-justified-${a}`]:a}),l={"--wp--social-links--icon-color":n,"--wp--social-links--icon-background-color":t};return(0,Ke.createElement)("ul",{...nt.useBlockProps.save({className:r,style:l})},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}}],oE=aE,rE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),lE=[{name:(0,tt.__)("Small"),value:"has-small-icon-size"},{name:(0,tt.__)("Normal"),value:"has-normal-icon-size"},{name:(0,tt.__)("Large"),value:"has-large-icon-size"},{name:(0,tt.__)("Huge"),value:"has-huge-icon-size"}];const iE=(0,nt.withColors)({iconColor:"icon-color",iconBackgroundColor:"icon-background-color"})((function(e){var t;const{clientId:n,attributes:a,iconBackgroundColor:o,iconColor:r,isSelected:l,setAttributes:i,setIconBackgroundColor:s,setIconColor:c}=e,{iconBackgroundColorValue:m,customIconBackgroundColor:u,iconColorValue:p,openInNewTab:d,showLabels:g,size:h}=a,b=a.className?.includes("is-style-logos-only"),_=(0,_t.useRef)({});(0,_t.useEffect)((()=>{b?(_.current={iconBackgroundColor:o,iconBackgroundColorValue:m,customIconBackgroundColor:u},i({iconBackgroundColor:void 0,customIconBackgroundColor:void 0,iconBackgroundColorValue:void 0})):i({..._.current})}),[b]);const y=(0,Ke.createElement)("li",{className:"wp-block-social-links__social-placeholder"},(0,Ke.createElement)("div",{className:"wp-block-social-links__social-placeholder-icons"},(0,Ke.createElement)("div",{className:"wp-social-link wp-social-link-twitter"}),(0,Ke.createElement)("div",{className:"wp-social-link wp-social-link-facebook"}),(0,Ke.createElement)("div",{className:"wp-social-link wp-social-link-instagram"}))),v=(0,Ke.createElement)("li",{className:"wp-block-social-links__social-prompt"},(0,tt.__)("Click plus to add")),f=ut()(h,{"has-visible-labels":g,"has-icon-color":r.color||p,"has-icon-background-color":o.color||m}),k=(0,nt.useBlockProps)({className:f}),x=(0,nt.useInnerBlocksProps)(k,{placeholder:l?v:y,templateLock:!1,orientation:null!==(t=a.layout?.orientation)&&void 0!==t?t:"horizontal",__experimentalAppenderTagName:"li"}),w=[{value:r.color||p,onChange:e=>{c(e),i({iconColorValue:e})},label:(0,tt.__)("Icon color"),resetAllFilter:()=>{c(void 0),i({iconColorValue:void 0})}}];b||w.push({value:o.color||m,onChange:e=>{s(e),i({iconBackgroundColorValue:e})},label:(0,tt.__)("Icon background"),resetAllFilter:()=>{s(void 0),i({iconBackgroundColorValue:void 0})}});const E=(0,nt.__experimentalUseMultipleOriginColorsAndGradients)();return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(et.ToolbarDropdownMenu,{label:(0,tt.__)("Size"),text:(0,tt.__)("Size"),icon:null,popoverProps:{position:"bottom right"}},(({onClose:e})=>(0,Ke.createElement)(et.MenuGroup,null,lE.map((t=>(0,Ke.createElement)(et.MenuItem,{icon:(h===t.value||!h&&"has-normal-icon-size"===t.value)&&rE,isSelected:h===t.value,key:t.value,onClick:()=>{i({size:t.value})},onClose:e,role:"menuitemradio"},t.name))))))),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open links in new tab"),checked:d,onChange:()=>i({openInNewTab:!d})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show labels"),checked:g,onChange:()=>i({showLabels:!g})}))),E.hasColorsOrGradients&&(0,Ke.createElement)(nt.InspectorControls,{group:"color"},w.map((({onChange:e,label:t,value:a,resetAllFilter:o})=>(0,Ke.createElement)(nt.__experimentalColorGradientSettingsDropdown,{key:`social-links-color-${t}`,__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:a,label:t,onColorChange:e,isShownByDefault:!0,resetAllFilter:o,enableAlpha:!0}],panelId:n,...E}))),!b&&(0,Ke.createElement)(nt.ContrastChecker,{textColor:p,backgroundColor:m,isLargeText:!1})),(0,Ke.createElement)("ul",{...x}))}));const sE={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-links",title:"Social Icons",category:"widgets",allowedBlocks:["core/social-link"],description:"Display icons linking to your social media profiles or sites.",keywords:["links"],textdomain:"default",attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},showLabels:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab",showLabels:"showLabels",iconColor:"iconColor",iconColorValue:"iconColorValue",iconBackgroundColor:"iconBackgroundColor",iconBackgroundColorValue:"iconBackgroundColorValue"},supports:{align:["left","center","right"],anchor:!0,__experimentalExposeControlsToChildren:!0,layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,default:{type:"flex"}},color:{enableContrastChecker:!1,background:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!1}},spacing:{blockGap:["horizontal","vertical"],margin:!0,padding:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0,margin:!0,padding:!1}},interactivity:{clientNavigation:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"logos-only",label:"Logos Only"},{name:"pill-shape",label:"Pill Shape"}],editorStyle:"wp-block-social-links-editor",style:"wp-block-social-links"},{name:cE}=sE,mE={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"}}]},icon:jw,edit:iE,save:function(e){const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,showLabels:a,size:o}}=e,r=ut()(o,{"has-visible-labels":a,"has-icon-color":n,"has-icon-background-color":t}),l=nt.useBlockProps.save({className:r}),i=nt.useInnerBlocksProps.save(l);return(0,Ke.createElement)("ul",{...i})},deprecated:oE},uE=()=>Xe({name:cE,metadata:sE,settings:mE}),pE=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})),dE=[{attributes:{height:{type:"number",default:100},width:{type:"number"}},migrate(e){const{height:t,width:n}=e;return{...e,width:void 0!==n?`${n}px`:void 0,height:void 0!==t?`${t}px`:void 0}},save:({attributes:e})=>(0,Ke.createElement)("div",{...nt.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}],gE=dE,hE=0;function bE({label:e,onChange:t,isResizing:n,value:a=""}){const o=(0,jt.useInstanceId)(et.__experimentalUnitControl,"block-spacer-height-input"),[r,l]=(0,nt.useSettings)("spacing.spacingSizes","spacing.units"),i=l?l.filter((e=>"%"!==e)):["px","em","rem","vw","vh"],s=(0,et.__experimentalUseCustomUnits)({availableUnits:i,defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),c=e=>{t(e.all)},[m,u]=(0,et.__experimentalParseQuantityAndUnitFromRawValue)(a),p=(0,nt.isValueSpacingPreset)(a)?a:[m,n?"px":u].join("");return(0,Ke.createElement)(Ke.Fragment,null,(!r||0===r?.length)&&(0,Ke.createElement)(et.BaseControl,{label:e,id:o},(0,Ke.createElement)(et.__experimentalUnitControl,{id:o,isResetValueOnUnitChange:!0,min:hE,onChange:c,style:{maxWidth:80},value:p,units:s})),r?.length>0&&(0,Ke.createElement)(Ye.View,{className:"tools-panel-item-spacing"},(0,Ke.createElement)(nt.__experimentalSpacingSizesControl,{values:{all:p},onChange:c,label:e,sides:["all"],units:s,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})))}function _E({setAttributes:e,orientation:t,height:n,width:a,isResizing:o}){return(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},"horizontal"===t&&(0,Ke.createElement)(bE,{label:(0,tt.__)("Width"),value:a,onChange:t=>e({width:t}),isResizing:o}),"horizontal"!==t&&(0,Ke.createElement)(bE,{label:(0,tt.__)("Height"),value:n,onChange:t=>e({height:t}),isResizing:o})))}const yE=({orientation:e,onResizeStart:t,onResize:n,onResizeStop:a,isSelected:o,isResizing:r,setIsResizing:l,...i})=>{const s=t=>"horizontal"===e?t.clientWidth:t.clientHeight,c=e=>`${s(e)}px`;return(0,Ke.createElement)(et.ResizableBox,{className:ut()("block-library-spacer__resize-container",{"resize-horizontal":"horizontal"===e,"is-resizing":r,"is-selected":o}),onResizeStart:(e,a,o)=>{const r=c(o);t(r),n(r)},onResize:(e,t,a)=>{n(c(a)),r||l(!0)},onResizeStop:(e,t,n)=>{const o=s(n);a(`${o}px`),l(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"horizontal"===e?"x":"y",position:"corner",isVisible:r},showHandle:o,...i})},vE=({attributes:e,isSelected:t,setAttributes:n,toggleSelection:a,context:o,__unstableParentLayout:r,className:l})=>{const i=(0,gt.useSelect)((e=>{const t=e(nt.store).getSettings();return t?.disableCustomSpacingSizes})),{orientation:s}=o,{orientation:c,type:m,default:{type:u}={}}=r||{},p="flex"===m||!m&&"flex"===u,d=!c&&p?"horizontal":c||s,{height:g,width:h,style:b={}}=e,{layout:_={}}=b,{selfStretch:y,flexSize:v}=_,[f]=(0,nt.useSettings)("spacing.spacingSizes"),[k,x]=(0,_t.useState)(!1),[w,E]=(0,_t.useState)(null),[C,S]=(0,_t.useState)(null),B=()=>a(!1),N=()=>a(!0),T=e=>{N(),p&&n({style:{...b,layout:{..._,flexSize:e,selfStretch:"fixed"}}}),n({height:e}),E(null)},I=e=>{N(),p&&n({style:{...b,layout:{..._,flexSize:e,selfStretch:"fixed"}}}),n({width:e}),S(null)},P="horizontal"===d?C||v:w||v,M={height:"horizontal"===d?24:(()=>{if(!p)return w||(0,nt.getSpacingPresetCssVar)(g)||void 0})(),width:"horizontal"===d?(()=>{if(!p)return C||(0,nt.getSpacingPresetCssVar)(h)||void 0})():void 0,minWidth:"vertical"===d&&p?48:void 0,flexBasis:p?P:void 0,flexGrow:p&&k?0:void 0};return(0,_t.useEffect)((()=>{if(p&&"fill"!==y&&"fit"!==y&&!v)if("horizontal"===d){const e=(0,nt.getCustomValueFromPreset)(h,f)||(0,nt.getCustomValueFromPreset)(g,f)||"100px";n({width:"0px",style:{...b,layout:{..._,flexSize:e,selfStretch:"fixed"}}})}else{const e=(0,nt.getCustomValueFromPreset)(g,f)||(0,nt.getCustomValueFromPreset)(h,f)||"100px";n({height:"0px",style:{...b,layout:{..._,flexSize:e,selfStretch:"fixed"}}})}else!p||"fill"!==y&&"fit"!==y?p||!y&&!v||(n("horizontal"===d?{width:v}:{height:v}),n({style:{...b,layout:{..._,flexSize:void 0,selfStretch:void 0}}})):n("horizontal"===d?{width:void 0}:{height:void 0})}),[b,v,g,d,p,_,y,n,f,h]),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(Ye.View,{...(0,nt.useBlockProps)({style:M,className:ut()(l,{"custom-sizes-disabled":i})})},"horizontal"===(z=d)?(0,Ke.createElement)(yE,{minWidth:hE,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:z,onResizeStart:B,onResize:S,onResizeStop:I,isSelected:t,isResizing:k,setIsResizing:x}):(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(yE,{minHeight:hE,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:z,onResizeStart:B,onResize:E,onResizeStop:T,isSelected:t,isResizing:k,setIsResizing:x}))),!p&&(0,Ke.createElement)(_E,{setAttributes:n,height:w||g,width:C||h,orientation:d,isResizing:k}));var z};const fE={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/spacer",title:"Spacer",category:"design",description:"Add white space between blocks and customize its height.",textdomain:"default",attributes:{height:{type:"string",default:"100px"},width:{type:"string"}},usesContext:["orientation"],supports:{anchor:!0,spacing:{margin:["top","bottom"],__experimentalDefaultControls:{margin:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-spacer-editor",style:"wp-block-spacer"},{name:kE}=fE,xE={icon:pE,edit:vE,save:function({attributes:e}){const{height:t,width:n,style:a}=e,{layout:{selfStretch:o}={}}=a||{},r="fill"===o||"fit"===o?void 0:t;return(0,Ke.createElement)("div",{...nt.useBlockProps.save({style:{height:(0,nt.getSpacingPresetCssVar)(r),width:(0,nt.getSpacingPresetCssVar)(n)},"aria-hidden":!0})})},deprecated:gE},wE=()=>Xe({name:kE,metadata:fE,settings:xE}),EE=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.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"})),CE={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},SE={attributes:{hasFixedLayout:{type:"boolean",default:!1},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:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table"},save({attributes:e}){const{hasFixedLayout:t,head:n,body:a,foot:o,caption:r}=e;if(!n.length&&!a.length&&!o.length)return null;const l=(0,nt.__experimentalGetColorClassesAndStyles)(e),i=(0,nt.__experimentalGetBorderClassesAndStyles)(e),s=ut()(l.className,i.className,{"has-fixed-layout":t}),c=!nt.RichText.isEmpty(r),m=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,Ke.createElement)(n,null,t.map((({cells:e},t)=>(0,Ke.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n,align:a},o)=>{const r=ut()({[`has-text-align-${a}`]:a});return(0,Ke.createElement)(nt.RichText.Content,{className:r||void 0,"data-align":a,tagName:t,value:e,key:o,scope:"th"===t?n:void 0})}))))))};return(0,Ke.createElement)("figure",{...nt.useBlockProps.save()},(0,Ke.createElement)("table",{className:""===s?void 0:s,style:{...l.style,...i.style}},(0,Ke.createElement)(m,{type:"head",rows:n}),(0,Ke.createElement)(m,{type:"body",rows:a}),(0,Ke.createElement)(m,{type:"foot",rows:o})),c&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:r}))}},BE={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:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{const{hasFixedLayout:t,head:n,body:a,foot:o,backgroundColor:r,caption:l}=e;if(!n.length&&!a.length&&!o.length)return null;const i=(0,nt.getColorClassName)("background-color",r),s=ut()(i,{"has-fixed-layout":t,"has-background":!!i}),c=!nt.RichText.isEmpty(l),m=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,Ke.createElement)(n,null,t.map((({cells:e},t)=>(0,Ke.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n,align:a},o)=>{const r=ut()({[`has-text-align-${a}`]:a});return(0,Ke.createElement)(nt.RichText.Content,{className:r||void 0,"data-align":a,tagName:t,value:e,key:o,scope:"th"===t?n:void 0})}))))))};return(0,Ke.createElement)("figure",{...nt.useBlockProps.save()},(0,Ke.createElement)("table",{className:""===s?void 0:s},(0,Ke.createElement)(m,{type:"head",rows:n}),(0,Ke.createElement)(m,{type:"body",rows:a}),(0,Ke.createElement)(m,{type:"foot",rows:o})),c&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:l}))},isEligible:e=>e.backgroundColor&&e.backgroundColor in CE&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:CE[e.backgroundColor]}}})},NE={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({attributes:e}){const{hasFixedLayout:t,head:n,body:a,foot:o,backgroundColor:r}=e;if(!n.length&&!a.length&&!o.length)return null;const l=(0,nt.getColorClassName)("background-color",r),i=ut()(l,{"has-fixed-layout":t,"has-background":!!l}),s=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,Ke.createElement)(n,null,t.map((({cells:e},t)=>(0,Ke.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n},a)=>(0,Ke.createElement)(nt.RichText.Content,{tagName:t,value:e,key:a,scope:"th"===t?n:void 0})))))))};return(0,Ke.createElement)("table",{className:i},(0,Ke.createElement)(s,{type:"head",rows:n}),(0,Ke.createElement)(s,{type:"body",rows:a}),(0,Ke.createElement)(s,{type:"foot",rows:o}))}},TE=[SE,BE,NE],IE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})),PE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})),ME=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})),zE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Ke.createElement)(Ye.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"})),RE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Ke.createElement)(Ye.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"})),AE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Ke.createElement)(Ye.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"})),HE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Ke.createElement)(Ye.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"})),LE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Ke.createElement)(Ye.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"})),DE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Ke.createElement)(Ye.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"})),FE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"})),VE=["align"];function $E(e,t,n){if(!t)return e;const a=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e)))),{sectionName:o,rowIndex:r}=t;return Object.fromEntries(Object.entries(a).map((([e,a])=>o&&o!==e?[e,a]:[e,a.map(((a,o)=>r&&r!==o?a:{cells:a.cells.map(((a,r)=>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:e,columnIndex:r,rowIndex:o},t)?n(a):a))}))])))}function OE(e,{sectionName:t,rowIndex:n,columnCount:a}){const o=function(e){return UE(e.head)?UE(e.body)?UE(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),r=void 0===a?o?.cells?.length:a;return r?{[t]:[...e[t].slice(0,n),{cells:Array.from({length:r}).map(((e,n)=>{var a;const r=null!==(a=o?.cells?.[n])&&void 0!==a?a:{};return{...Object.fromEntries(Object.entries(r).filter((([e])=>VE.includes(e)))),content:"",tag:"head"===t?"th":"td"}}))},...e[t].slice(n)]}:e}function GE(e,t){var n;if(!UE(e[t]))return{[t]:[]};return OE(e,{sectionName:t,rowIndex:0,columnCount:null!==(n=e.body?.[0]?.cells?.length)&&void 0!==n?n:1})}function UE(e){return!e||!e.length||e.every(qE)}function qE(e){return!(e.cells&&e.cells.length)}const jE=[{icon:IE,title:(0,tt.__)("Align column left"),align:"left"},{icon:PE,title:(0,tt.__)("Align column center"),align:"center"},{icon:ME,title:(0,tt.__)("Align column right"),align:"right"}],WE={head:(0,tt.__)("Header cell text"),body:(0,tt.__)("Body cell text"),foot:(0,tt.__)("Footer cell text")},ZE={head:(0,tt.__)("Header label"),foot:(0,tt.__)("Footer label")};function QE({name:e,...t}){const n=`t${e}`;return(0,Ke.createElement)(n,{...t})}const KE=function({attributes:e,setAttributes:t,insertBlocksAfter:n,isSelected:a}){const{hasFixedLayout:o,caption:r,head:l,foot:i}=e,[s,c]=(0,_t.useState)(2),[m,u]=(0,_t.useState)(2),[p,d]=(0,_t.useState)(),g=(0,nt.__experimentalUseColorProps)(e),h=(0,nt.__experimentalUseBorderProps)(e),b=(0,_t.useRef)(),[_,y]=(0,_t.useState)(!1);function v(n){p&&t($E(e,p,(e=>({...e,content:n}))))}function f(n){if(!p)return;const{sectionName:a,rowIndex:o}=p,r=o+n;t(OE(e,{sectionName:a,rowIndex:r})),d({sectionName:a,rowIndex:r,columnIndex:0,type:"cell"})}function k(n=0){if(!p)return;const{columnIndex:a}=p,o=a+n;t(function(e,{columnIndex:t}){const n=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e))));return Object.fromEntries(Object.entries(n).map((([e,n])=>UE(n)?[e,n]:[e,n.map((n=>qE(n)||n.cells.length<t?n:{cells:[...n.cells.slice(0,t),{content:"",tag:"head"===e?"th":"td"},...n.cells.slice(t)]}))])))}(e,{columnIndex:o})),d({rowIndex:0,columnIndex:o,type:"cell"})}(0,_t.useEffect)((()=>{a||d()}),[a]),(0,_t.useEffect)((()=>{_&&(b?.current?.querySelector('td div[contentEditable="true"]')?.focus(),y(!1))}),[_]);const x=["head","body","foot"].filter((t=>!UE(e[t]))),w=[{icon:zE,title:(0,tt.__)("Insert row before"),isDisabled:!p,onClick:function(){f(0)}},{icon:RE,title:(0,tt.__)("Insert row after"),isDisabled:!p,onClick:function(){f(1)}},{icon:AE,title:(0,tt.__)("Delete row"),isDisabled:!p,onClick:function(){if(!p)return;const{sectionName:n,rowIndex:a}=p;d(),t(function(e,{sectionName:t,rowIndex:n}){return{[t]:e[t].filter(((e,t)=>t!==n))}}(e,{sectionName:n,rowIndex:a}))}},{icon:HE,title:(0,tt.__)("Insert column before"),isDisabled:!p,onClick:function(){k(0)}},{icon:LE,title:(0,tt.__)("Insert column after"),isDisabled:!p,onClick:function(){k(1)}},{icon:DE,title:(0,tt.__)("Delete column"),isDisabled:!p,onClick:function(){if(!p)return;const{sectionName:n,columnIndex:a}=p;d(),t(function(e,{columnIndex:t}){const n=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e))));return Object.fromEntries(Object.entries(n).map((([e,n])=>UE(n)?[e,n]:[e,n.map((e=>({cells:e.cells.length>=t?e.cells.filter(((e,n)=>n!==t)):e.cells}))).filter((e=>e.cells.length))])))}(e,{sectionName:n,columnIndex:a}))}}],E=x.map((t=>(0,Ke.createElement)(QE,{name:t,key:t},e[t].map((({cells:e},n)=>(0,Ke.createElement)("tr",{key:n},e.map((({content:e,tag:a,scope:o,align:r,colspan:l,rowspan:i},s)=>(0,Ke.createElement)(a,{key:s,scope:"th"===a?o:void 0,colSpan:l,rowSpan:i,className:ut()({[`has-text-align-${r}`]:r},"wp-block-table__cell-content")},(0,Ke.createElement)(nt.RichText,{value:e,onChange:v,onFocus:()=>{d({sectionName:t,rowIndex:n,columnIndex:s,type:"cell"})},"aria-label":WE[t],placeholder:ZE[t]})))))))))),C=!x.length;return(0,Ke.createElement)("figure",{...(0,nt.useBlockProps)({ref:b})},!C&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{label:(0,tt.__)("Change column alignment"),alignmentControls:jE,value:function(){if(p)return function(e,t,n){const{sectionName:a,rowIndex:o,columnIndex:r}=t;return e[a]?.[o]?.cells?.[r]?.[n]}(e,p,"align")}(),onChange:n=>function(n){if(!p)return;const a={type:"column",columnIndex:p.columnIndex},o=$E(e,a,(e=>({...e,align:n})));t(o)}(n)})),(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(et.ToolbarDropdownMenu,{hasArrowIndicator:!0,icon:FE,label:(0,tt.__)("Edit table"),controls:w}))),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings"),className:"blocks-table-settings"},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Fixed width table cells"),checked:!!o,onChange:function(){t({hasFixedLayout:!o})}}),!C&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Header section"),checked:!(!l||!l.length),onChange:function(){t(GE(e,"head"))}}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Footer section"),checked:!(!i||!i.length),onChange:function(){t(GE(e,"foot"))}})))),!C&&(0,Ke.createElement)("table",{className:ut()(g.className,h.className,{"has-fixed-layout":o,"has-individual-borders":(0,et.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...g.style,...h.style}},E),!C&&(0,Ke.createElement)(nt.RichText,{identifier:"caption",tagName:"figcaption",className:(0,nt.__experimentalGetElementClassName)("caption"),"aria-label":(0,tt.__)("Table caption text"),placeholder:(0,tt.__)("Add caption"),value:r,onChange:e=>t({caption:e}),onFocus:()=>d(),__unstableOnSplitAtEnd:()=>n((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))}),C&&(0,Ke.createElement)(et.Placeholder,{label:(0,tt.__)("Table"),icon:(0,Ke.createElement)(nt.BlockIcon,{icon:EE,showColors:!0}),instructions:(0,tt.__)("Insert a table for sharing data.")},(0,Ke.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){e.preventDefault(),t(function({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map((()=>({cells:Array.from({length:t}).map((()=>({content:"",tag:"td"})))})))}}({rowCount:parseInt(s,10)||2,columnCount:parseInt(m,10)||2})),y(!0)}},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,type:"number",label:(0,tt.__)("Column count"),value:m,onChange:function(e){u(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,type:"number",label:(0,tt.__)("Row count"),value:s,onChange:function(e){c(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,Ke.createElement)(et.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit"},(0,tt.__)("Create Table")))))};function YE(e){const t=parseInt(e,10);if(Number.isInteger(t))return t<0||1===t?void 0:t.toString()}const JE=({phrasingContentSchema:e})=>({tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:e,attributes:["scope","colspan","rowspan"]},td:{allowEmpty:!0,children:e,attributes:["colspan","rowspan"]}}}}),XE={from:[{type:"raw",selector:"table",schema:e=>({table:{children:{thead:{allowEmpty:!0,children:JE(e)},tfoot:{allowEmpty:!0,children:JE(e)},tbody:{allowEmpty:!0,children:JE(e)}}}}),transform:e=>{const t=Array.from(e.children).reduce(((e,t)=>{if(!t.children.length)return e;const n=t.nodeName.toLowerCase().slice(1),a=Array.from(t.children).reduce(((e,t)=>{if(!t.children.length)return e;const n=Array.from(t.children).reduce(((e,t)=>{const n=YE(t.getAttribute("rowspan")),a=YE(t.getAttribute("colspan"));return e.push({tag:t.nodeName.toLowerCase(),content:t.innerHTML,rowspan:n,colspan:a}),e}),[]);return e.push({cells:n}),e}),[]);return e[n]=a,e}),{});return(0,Qe.createBlock)("core/table",t)}}]},eC=XE,tC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/table",title:"Table",category:"text",description:"Create structured content in rows and columns to display information.",textdomain:"default",attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"rich-text",source:"rich-text",selector:"figcaption"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table",interactivity:{clientNavigation:!0}},styles:[{name:"regular",label:"Default",isDefault:!0},{name:"stripes",label:"Stripes"}],editorStyle:"wp-block-table-editor",style:"wp-block-table"},{name:nC}=tC,aC={icon:EE,example:{attributes:{head:[{cells:[{content:(0,tt.__)("Version"),tag:"th"},{content:(0,tt.__)("Jazz Musician"),tag:"th"},{content:(0,tt.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:(0,tt.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:(0,tt.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:(0,tt.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:eC,edit:KE,save:function({attributes:e}){const{hasFixedLayout:t,head:n,body:a,foot:o,caption:r}=e;if(!n.length&&!a.length&&!o.length)return null;const l=(0,nt.__experimentalGetColorClassesAndStyles)(e),i=(0,nt.__experimentalGetBorderClassesAndStyles)(e),s=ut()(l.className,i.className,{"has-fixed-layout":t}),c=!nt.RichText.isEmpty(r),m=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,Ke.createElement)(n,null,t.map((({cells:e},t)=>(0,Ke.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n,align:a,colspan:o,rowspan:r},l)=>{const i=ut()({[`has-text-align-${a}`]:a});return(0,Ke.createElement)(nt.RichText.Content,{className:i||void 0,"data-align":a,tagName:t,value:e,key:l,scope:"th"===t?n:void 0,colSpan:o,rowSpan:r})}))))))};return(0,Ke.createElement)("figure",{...nt.useBlockProps.save()},(0,Ke.createElement)("table",{className:""===s?void 0:s,style:{...l.style,...i.style}},(0,Ke.createElement)(m,{type:"head",rows:n}),(0,Ke.createElement)(m,{type:"body",rows:a}),(0,Ke.createElement)(m,{type:"foot",rows:o})),c&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:r,className:(0,nt.__experimentalGetElementClassName)("caption")}))},deprecated:TE},oC=()=>Xe({name:nC,metadata:tC,settings:aC}),rC=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 9.484h-8.889v-1.5H20v1.5Zm0 7h-4.889v-1.5H20v1.5Zm-14 .032a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),(0,Ke.createElement)(Ye.Path,{d:"M13 15.516a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 8.484a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})),lC="wp-block-table-of-contents__entry";function iC({nestedHeadingList:e,disableLinkActivation:t,onClick:n}){return(0,Ke.createElement)(Ke.Fragment,null,e.map(((e,a)=>{const{content:o,link:r}=e.heading,l=r?(0,Ke.createElement)("a",{className:lC,href:r,"aria-disabled":t||void 0,onClick:t&&"function"==typeof n?n:void 0},o):(0,Ke.createElement)("span",{className:lC},o);return(0,Ke.createElement)("li",{key:a},l,e.children?(0,Ke.createElement)("ol",null,(0,Ke.createElement)(iC,{nestedHeadingList:e.children,disableLinkActivation:t,onClick:t&&"function"==typeof n?n:void 0})):null)})))}function sC(e){const t=[];return e.forEach(((n,a)=>{if(""!==n.content&&n.level===e[0].level)if(e[a+1]?.level>n.level){let o=e.length;for(let t=a+1;t<e.length;t++)if(e[t].level===n.level){o=t;break}t.push({heading:n,children:sC(e.slice(a+1,o))})}else t.push({heading:n,children:null})})),t}var cC=n(7734),mC=n.n(cC);function uC(e,t,n){const{getBlockAttributes:a}=e(nt.store),{updateBlockAttributes:o,__unstableMarkNextChangeAsNotPersistent:r}=t(nt.store),l=a(n);if(null===l)return;const i=function(e,t){var n,a;const{getBlockAttributes:o,getBlockName:r,getClientIdsWithDescendants:l,getBlocksByName:i}=e(nt.store),s=null!==(n=e("core/editor").getPermalink())&&void 0!==n?n:null,c=0!==i("core/nextpage").length,{onlyIncludeCurrentPage:m}=null!==(a=o(t))&&void 0!==a?a:{},u=l();let p=1;if(c&&m){const e=u.indexOf(t);for(const[t,n]of u.entries()){if(t>=e)break;"core/nextpage"===r(n)&&p++}}const d=[];let g=1,h=null;"string"==typeof s&&(h=c?(0,pt.addQueryArgs)(s,{page:g}):s);for(const e of u){const t=r(e);if("core/nextpage"===t){if(g++,m&&g>p)break;"string"==typeof s&&(h=(0,pt.addQueryArgs)((0,pt.removeQueryArgs)(s,["page"]),{page:g}))}else if((!m||g===p)&&"core/heading"===t){const t=o(e),n="string"==typeof h&&"string"==typeof t.anchor&&""!==t.anchor;d.push({content:(0,ac.__unstableStripHTML)(t.content.replace(/(<br *\/?>)+/g," ")),level:t.level,link:n?`${h}#${t.anchor}`:null})}}return d}(e,n);mC()(i,l.headings)||(r(),o(n,{headings:i}))}const pC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/table-of-contents",title:"Table of Contents",category:"layout",description:"Summarize your post with a list of headings. Add HTML anchors to Heading blocks to link them here.",keywords:["document outline","summary"],textdomain:"default",attributes:{headings:{type:"array",items:{type:"object"},default:[]},onlyIncludeCurrentPage:{type:"boolean",default:!1}},supports:{html:!1,color:{text:!0,background:!0,gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},example:{}},{name:dC}=pC,gC={icon:rC,edit:function e({attributes:{headings:t=[],onlyIncludeCurrentPage:n},clientId:a,setAttributes:o}){!function(e){const t=(0,gt.useRegistry)();(0,_t.useEffect)((()=>t.subscribe((()=>uC(t.select,t.dispatch,e)))),[t,e])}(a);const r=(0,nt.useBlockProps)(),l=(0,jt.useInstanceId)(e,"table-of-contents"),{createWarningNotice:i,removeNotice:s}=(0,gt.useDispatch)(Pt.store);let c;const m=(0,gt.useSelect)((e=>{const{getBlockRootClientId:t,canInsertBlockType:n}=e(nt.store);return n("core/list",t(a))}),[a]),{replaceBlocks:u}=(0,gt.useDispatch)(nt.store),p=sC(t),d=m&&(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>u(a,(0,Qe.createBlock)("core/list",{ordered:!0,values:(0,_t.renderToString)((0,Ke.createElement)(iC,{nestedHeadingList:p}))}))},(0,tt.__)("Convert to static list")))),g=(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Only include current page"),checked:n,onChange:e=>o({onlyIncludeCurrentPage:e}),help:n?(0,tt.__)("Only including headings from the current page (if the post is paginated)."):(0,tt.__)("Toggle to only include headings from the current page (if the post is paginated).")})));return 0===t.length?(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("div",{...r},(0,Ke.createElement)(et.Placeholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:rC}),label:(0,tt.__)("Table of Contents"),instructions:(0,tt.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})),g):(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("nav",{...r},(0,Ke.createElement)("ol",null,(0,Ke.createElement)(iC,{nestedHeadingList:p,disableLinkActivation:!0,onClick:e=>{e.preventDefault(),s(c),c=`block-library/core/table-of-contents/redirection-prevented/${l}`,i((0,tt.__)("Links are disabled in the editor."),{id:c,type:"snackbar"})}}))),d,g)},save:function({attributes:{headings:e=[]}}){return 0===e.length?null:(0,Ke.createElement)("nav",{...nt.useBlockProps.save()},(0,Ke.createElement)("ol",null,(0,Ke.createElement)(iC,{nestedHeadingList:sC(e)})))}},hC=()=>Xe({name:dC,metadata:pC,settings:gC}),bC={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,Qe.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,Qe.createBlock)("core/categories")}]};const _C=function({attributes:e,setAttributes:t}){const{taxonomy:n,showTagCounts:a,numberOfTags:o,smallestFontSize:r,largestFontSize:l}=e,[i]=(0,nt.useSettings)("spacing.units"),s=(0,et.__experimentalUseCustomUnits)({availableUnits:i||["%","px","em","rem"]}),c=(0,gt.useSelect)((e=>e(dt.store).getTaxonomies({per_page:-1})),[]),m=(e,n)=>{const[a,o]=(0,et.__experimentalParseQuantityAndUnitFromRawValue)(n);if(!Number.isFinite(a))return;const i={[e]:n};Object.entries({smallestFontSize:r,largestFontSize:l}).forEach((([t,n])=>{const[a,r]=(0,et.__experimentalParseQuantityAndUnitFromRawValue)(n);t!==e&&r!==o&&(i[t]=`${a}${o}`)})),t(i)},u=(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Taxonomy"),options:[{label:(0,tt.__)("- Select -"),value:"",disabled:!0},...(null!=c?c:[]).filter((e=>!!e.show_cloud)).map((e=>({value:e.slug,label:e.name})))],value:n,onChange:e=>t({taxonomy:e})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show post counts"),checked:a,onChange:()=>t({showTagCounts:!a})}),(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Number of tags"),value:o,onChange:e=>t({numberOfTags:e}),min:1,max:100,required:!0}),(0,Ke.createElement)(et.Flex,null,(0,Ke.createElement)(et.FlexItem,{isBlock:!0},(0,Ke.createElement)(et.__experimentalUnitControl,{label:(0,tt.__)("Smallest size"),value:r,onChange:e=>{m("smallestFontSize",e)},units:s,min:.1,max:100})),(0,Ke.createElement)(et.FlexItem,{isBlock:!0},(0,Ke.createElement)(et.__experimentalUnitControl,{label:(0,tt.__)("Largest size"),value:l,onChange:e=>{m("largestFontSize",e)},units:s,min:.1,max:100})))));return(0,Ke.createElement)(Ke.Fragment,null,u,(0,Ke.createElement)("div",{...(0,nt.useBlockProps)()},(0,Ke.createElement)(et.Disabled,null,(0,Ke.createElement)(ot(),{skipBlockSupportAttributes:!0,block:"core/tag-cloud",attributes:e}))))},yC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/tag-cloud",title:"Tag Cloud",category:"widgets",description:"A cloud of your most used tags.",textdomain:"default",attributes:{numberOfTags:{type:"number",default:45,minimum:1,maximum:100},taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1},smallestFontSize:{type:"string",default:"8pt"},largestFontSize:{type:"string",default:"22pt"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"outline",label:"Outline"}],supports:{html:!1,align:!0,spacing:{margin:!0,padding:!0},typography:{lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-tag-cloud-editor"},{name:vC}=yC,fC={icon:rb,example:{},edit:_C,transforms:bC},kC=()=>Xe({name:vC,metadata:yC,settings:fC});var xC=function(){return xC=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xC.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function wC(e){return e.toLowerCase()}var EC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],CC=/[^A-Z0-9]+/gi;function SC(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,a=void 0===n?EC:n,o=t.stripRegexp,r=void 0===o?CC:o,l=t.transform,i=void 0===l?wC:l,s=t.delimiter,c=void 0===s?" ":s,m=BC(BC(e,a,"$1\0$2"),r,"\0"),u=0,p=m.length;"\0"===m.charAt(u);)u++;for(;"\0"===m.charAt(p-1);)p--;return m.slice(u,p).split("\0").map(i).join(c)}function BC(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function NC(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}const TC=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));function IC(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),SC(e,xC({delimiter:"."},t))}(e,xC({delimiter:"-"},t))}function PC(e,t){const{templateParts:n,isResolving:a}=(0,gt.useSelect)((e=>{const{getEntityRecords:t,isResolving:n}=e(dt.store),a={per_page:-1};return{templateParts:t("postType","wp_template_part",a),isResolving:n("getEntityRecords",["postType","wp_template_part",a])}}),[]);return{templateParts:(0,_t.useMemo)((()=>n&&n.filter((n=>oh(n.theme,n.slug)!==t&&(!e||"uncategorized"===e||n.area===e)))||[]),[n,e,t]),isResolving:a}}function MC(e,t){return(0,gt.useSelect)((n=>{const a=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:o,getPatternsByBlockTypes:r}=n(nt.store);return r(a,o(t))}),[e,t])}function zC(e,t){const{saveEntityRecord:n}=(0,gt.useDispatch)(dt.store);return async(a=[],o=(0,tt.__)("Untitled Template Part"))=>{const r={title:o,slug:IC(o).replace(/[^\w-]+/g,"")||"wp-custom-part",content:(0,Qe.serialize)(a),area:e},l=await n("postType","wp_template_part",r);t({slug:l.slug,theme:l.theme,area:void 0})}}function RC(e){return(0,gt.useSelect)((t=>{var n;const a=t("core/editor").__experimentalGetDefaultTemplatePartAreas(),o=a.find((t=>t.area===e)),r=a.find((e=>"uncategorized"===e.area));return{icon:o?.icon||r?.icon,label:o?.label||(0,tt.__)("Template Part"),tagName:null!==(n=o?.area_tag)&&void 0!==n?n:"div"}}),[e])}function AC({areaLabel:e,onClose:t,onSubmit:n}){const[a,o]=(0,_t.useState)((0,tt.__)("Untitled Template Part"));return(0,Ke.createElement)(et.Modal,{title:(0,tt.sprintf)((0,tt.__)("Name and create your new %s"),e.toLowerCase()),overlayClassName:"wp-block-template-part__placeholder-create-new__title-form",onRequestClose:t},(0,Ke.createElement)("form",{onSubmit:e=>{e.preventDefault(),n(a)}},(0,Ke.createElement)(et.__experimentalVStack,{spacing:"5"},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Name"),value:a,onChange:o}),(0,Ke.createElement)(et.__experimentalHStack,{justify:"right"},(0,Ke.createElement)(et.Button,{variant:"primary",type:"submit",disabled:!a.length,"aria-disabled":!a.length},(0,tt.__)("Create"))))))}function HC({area:e,clientId:t,templatePartId:n,onOpenSelectionModal:a,setAttributes:o}){const{templateParts:r,isResolving:l}=PC(e,n),i=MC(e,t),[s,c]=(0,_t.useState)(!1),m=RC(e),u=zC(e,o);return(0,Ke.createElement)(et.Placeholder,{icon:m.icon,label:m.label,instructions:(0,tt.sprintf)((0,tt.__)("Choose an existing %s or create a new one."),m.label.toLowerCase())},l&&(0,Ke.createElement)(et.Spinner,null),!l&&!(!r.length&&!i.length)&&(0,Ke.createElement)(et.Button,{variant:"primary",onClick:a},(0,tt.__)("Choose")),!l&&(0,Ke.createElement)(et.Button,{variant:"secondary",onClick:()=>{c(!0)}},(0,tt.__)("Start blank")),s&&(0,Ke.createElement)(AC,{areaLabel:m.label,onClose:()=>c(!1),onSubmit:e=>{u([],e)}}))}function LC({setAttributes:e,onClose:t,templatePartId:n=null,area:a,clientId:o}){const[r,l]=(0,_t.useState)(""),{templateParts:i}=PC(a,n),s=(0,_t.useMemo)((()=>Uf(i.map((e=>({name:oh(e.theme,e.slug),title:e.title.rendered,blocks:(0,Qe.parse)(e.content.raw),templatePart:e}))),r)),[i,r]),c=(0,jt.useAsyncList)(s),m=MC(a,o),u=(0,_t.useMemo)((()=>Uf(m,r)),[m,r]),p=(0,jt.useAsyncList)(u),{createSuccessNotice:d}=(0,gt.useDispatch)(Pt.store),g=zC(a,e),h=!!s.length,b=!!u.length;return(0,Ke.createElement)("div",{className:"block-library-template-part__selection-content"},(0,Ke.createElement)("div",{className:"block-library-template-part__selection-search"},(0,Ke.createElement)(et.SearchControl,{__nextHasNoMarginBottom:!0,onChange:l,value:r,label:(0,tt.__)("Search for replacements"),placeholder:(0,tt.__)("Search")})),h&&(0,Ke.createElement)("div",null,(0,Ke.createElement)("h2",null,(0,tt.__)("Existing template parts")),(0,Ke.createElement)(nt.__experimentalBlockPatternsList,{blockPatterns:s,shownPatterns:c,onClickPattern:n=>{var a;a=n.templatePart,e({slug:a.slug,theme:a.theme,area:void 0}),d((0,tt.sprintf)((0,tt.__)('Template Part "%s" inserted.'),a.title?.rendered||a.slug),{type:"snackbar"}),t()}})),b&&(0,Ke.createElement)("div",null,(0,Ke.createElement)("h2",null,(0,tt.__)("Patterns")),(0,Ke.createElement)(nt.__experimentalBlockPatternsList,{blockPatterns:u,shownPatterns:p,onClickPattern:(e,n)=>{g(n,e.title),t()}})),!h&&!b&&(0,Ke.createElement)(et.__experimentalHStack,{alignment:"center"},(0,Ke.createElement)("p",null,(0,tt.__)("No results found."))))}function DC(e){const t=(0,Qe.getPossibleBlockTransformations)([e]).filter((e=>{if(!e.transforms)return!0;const t=e.transforms?.from?.find((e=>e.blocks&&e.blocks.includes("*"))),n=e.transforms?.to?.find((e=>e.blocks&&e.blocks.includes("*")));return!t&&!n}));if(t.length)return(0,Qe.switchToBlockType)(e,t[0].name)}function FC(e=[]){return e.flatMap((e=>"core/legacy-widget"===e.name?DC(e):(0,Qe.createBlock)(e.name,e.attributes,FC(e.innerBlocks)))).filter((e=>!!e))}const VC={per_page:-1,_fields:"id,name,description,status,widgets"};function $C({area:e,setAttributes:t}){const[n,a]=(0,_t.useState)(""),[o,r]=(0,_t.useState)(!1),l=(0,gt.useRegistry)(),{sidebars:i,hasResolved:s}=(0,gt.useSelect)((e=>{const{getSidebars:t,hasFinishedResolution:n}=e(dt.store);return{sidebars:t(VC),hasResolved:n("getSidebars",[VC])}}),[]),{createErrorNotice:c}=(0,gt.useDispatch)(Pt.store),m=zC(e,t),u=(0,_t.useMemo)((()=>{const e=(null!=i?i:[]).filter((e=>"wp_inactive_widgets"!==e.id&&e.widgets.length>0)).map((e=>({value:e.id,label:e.name})));return e.length?[{value:"",label:(0,tt.__)("Select widget area")},...e]:[]}),[i]);if(!s)return(0,Ke.createElement)(et.__experimentalSpacer,{marginBottom:"0"});if(s&&!u.length)return null;return(0,Ke.createElement)(et.__experimentalSpacer,{marginBottom:"4"},(0,Ke.createElement)(et.__experimentalHStack,{as:"form",onSubmit:async function(e){if(e.preventDefault(),o||!n)return;r(!0);const t=u.find((({value:e})=>e===n)),{getWidgets:a}=l.resolveSelect(dt.store),i=await a({sidebar:t.value,_embed:"about"}),s=new Set,p=i.flatMap((e=>{const t=function(e){if("block"!==e.id_base){let t;return t=e._embedded.about[0].is_multi?{idBase:e.id_base,instance:e.instance}:{id:e.id},DC((0,Qe.createBlock)("core/legacy-widget",t))}const t=(0,Qe.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;const n=t[0];return"core/widget-group"===n.name?(0,Qe.createBlock)((0,Qe.getGroupingBlockName)(),void 0,FC(n.innerBlocks)):n.innerBlocks.length>0?(0,Qe.cloneBlock)(n,void 0,FC(n.innerBlocks)):n}(e);return t||(s.add(e.id_base),[])}));await m(p,(0,tt.sprintf)((0,tt.__)("Widget area: %s"),t.label)),s.size&&c((0,tt.sprintf)((0,tt.__)("Unable to import the following widgets: %s."),Array.from(s).join(", ")),{type:"snackbar"}),r(!1)}},(0,Ke.createElement)(et.FlexBlock,null,(0,Ke.createElement)(et.SelectControl,{label:(0,tt.__)("Import widget area"),value:n,options:u,onChange:e=>a(e),disabled:!u.length,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})),(0,Ke.createElement)(et.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"}},(0,Ke.createElement)(et.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:o,"aria-disabled":o||!n},(0,tt._x)("Import","button label")))))}const OC={header:(0,tt.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,tt.__)("The <main> element should be used for the primary content of your document only."),section:(0,tt.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,tt.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,tt.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,tt.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};function GC({tagName:e,setAttributes:t,isEntityAvailable:n,templatePartId:a,defaultWrapper:o,hasInnerBlocks:r}){const[l,i]=(0,dt.useEntityProp)("postType","wp_template_part","area",a),[s,c]=(0,dt.useEntityProp)("postType","wp_template_part","title",a),m=(0,gt.useSelect)((e=>e("core/editor").__experimentalGetDefaultTemplatePartAreas()),[]).map((({label:e,area:t})=>({label:e,value:t})));return(0,Ke.createElement)(Ke.Fragment,null,n&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Title"),value:s,onChange:e=>{c(e)},onFocus:e=>e.target.select()}),(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Area"),labelPosition:"top",options:m,value:l,onChange:i})),(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("HTML element"),options:[{label:(0,tt.sprintf)((0,tt.__)("Default based on area (%s)"),`<${o}>`),value:""},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<div>",value:"div"}],value:e||"",onChange:e=>t({tagName:e}),help:OC[e]}),!r&&(0,Ke.createElement)($C,{area:l,setAttributes:t}))}function UC({postId:e,hasInnerBlocks:t,layout:n,tagName:a,blockProps:o}){const r=(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store);return t()?.supportsLayout}),[]),[l]=(0,nt.useSettings)("layout"),i=n?.inherit?l||{}:n,[s,c,m]=(0,dt.useEntityBlockEditor)("postType","wp_template_part",{id:e}),u=(0,nt.useInnerBlocksProps)(o,{value:s,onInput:c,onChange:m,renderAppender:t?void 0:nt.InnerBlocks.ButtonBlockAppender,layout:r?i:void 0});return(0,Ke.createElement)(a,{...u})}function qC({isEntityAvailable:e,area:t,clientId:n,templatePartId:a,isTemplatePartSelectionOpen:o,setIsTemplatePartSelectionOpen:r}){const{templateParts:l}=PC(t,a),i=MC(t,n),s=!!l.length||!!i.length;return e&&s&&("header"===t||"footer"===t)?(0,Ke.createElement)(et.MenuItem,{onClick:()=>{r(!0)},"aria-expanded":o,"aria-haspopup":"dialog"},(0,tt.__)("Replace")):null}const jC=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),WC=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),ZC=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));function QC(e,t){if("core/template-part"!==t)return e;if(e.variations){const t=(e,t)=>{const{area:n,theme:a,slug:o}=e;if(n)return n===t.area;if(!o)return!1;const{getCurrentTheme:r,getEntityRecord:l}=(0,gt.select)(dt.store),i=l("postType","wp_template_part",`${a||r()?.stylesheet}//${o}`);return i?.slug?i.slug===t.slug:i?.area===t.area},n=e.variations.map((e=>{return{...e,...!e.isActive&&{isActive:t},..."string"==typeof e.icon&&{icon:(n=e.icon,"header"===n?jC:"footer"===n?WC:"sidebar"===n?ZC:TC)}};var n}));return{...e,variations:n}}return e}const KC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/template-part",title:"Template Part",category:"theme",description:"Edit the different global regions of your site, like the header, footer, sidebar, or create your own.",textdomain:"default",attributes:{slug:{type:"string"},theme:{type:"string"},tagName:{type:"string"},area:{type:"string"}},supports:{align:!0,html:!1,reusable:!1,renaming:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-template-part-editor"},{name:YC}=KC,JC={icon:TC,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;const{getCurrentTheme:n,getEditedEntityRecord:a}=(0,gt.select)(dt.store),o=a("postType","wp_template_part",(t||n()?.stylesheet)+"//"+e);return o?(0,Jn.decodeEntities)(o.title)||function(e,t){return void 0===t&&(t={}),SC(e,xC({delimiter:" ",transform:NC},t))}(o.slug||""):void 0},edit:function({attributes:e,setAttributes:t,clientId:n}){const a=(0,gt.useSelect)((e=>e(dt.store).getCurrentTheme()?.stylesheet),[]),{slug:o,theme:r=a,tagName:l,layout:i={}}=e,s=oh(r,o),c=(0,nt.useHasRecursion)(s),[m,u]=(0,_t.useState)(!1),{isResolved:p,hasInnerBlocks:d,isMissing:g,area:h}=(0,gt.useSelect)((t=>{const{getEditedEntityRecord:a,hasFinishedResolution:o}=t(dt.store),{getBlockCount:r}=t(nt.store),l=["postType","wp_template_part",s],i=s?a(...l):null,c=i?.area||e.area,m=!!s&&o("getEditedEntityRecord",l);return{hasInnerBlocks:r(n)>0,isResolved:m,isMissing:m&&(!i||0===Object.keys(i).length),area:c}}),[s,e.area,n]),b=RC(h),_=(0,nt.useBlockProps)(),y=!o,v=!y&&!g&&p,f=l||b.tagName;return!d&&(o&&!r||o&&g)?(0,Ke.createElement)(f,{..._},(0,Ke.createElement)(nt.Warning,null,(0,tt.sprintf)((0,tt.__)("Template part has been deleted or is unavailable: %s"),o))):v&&c?(0,Ke.createElement)(f,{..._},(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Block cannot be rendered inside itself."))):(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.RecursionProvider,{uniqueId:s},(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(GC,{tagName:l,setAttributes:t,isEntityAvailable:v,templatePartId:s,defaultWrapper:b.tagName,hasInnerBlocks:d})),y&&(0,Ke.createElement)(f,{..._},(0,Ke.createElement)(HC,{area:e.area,templatePartId:s,clientId:n,setAttributes:t,onOpenSelectionModal:()=>u(!0)})),(0,Ke.createElement)(nt.BlockSettingsMenuControls,null,(({selectedClientIds:e})=>1!==e.length||n!==e[0]?null:(0,Ke.createElement)(qC,{isEntityAvailable:v,area:h,clientId:n,templatePartId:s,isTemplatePartSelectionOpen:m,setIsTemplatePartSelectionOpen:u}))),v&&(0,Ke.createElement)(UC,{tagName:f,blockProps:_,postId:s,hasInnerBlocks:d,layout:i}),!y&&!p&&(0,Ke.createElement)(f,{..._},(0,Ke.createElement)(et.Spinner,null))),m&&(0,Ke.createElement)(et.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,tt.sprintf)((0,tt.__)("Choose a %s"),b.label.toLowerCase()),onRequestClose:()=>u(!1),isFullScreen:!0},(0,Ke.createElement)(LC,{templatePartId:s,clientId:n,area:h,setAttributes:t,onClose:()=>u(!1)})))}},XC=()=>{(0,_i.addFilter)("blocks.registerBlockType","core/template-part",QC);const e=["core/post-template","core/post-content"];return(0,_i.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/removeTemplatePartsFromPostTemplates",((t,n,a,{getBlock:o,getBlockParentsByBlockName:r})=>{if("core/template-part"!==n.name)return t;for(const t of e){if(o(a)?.name===t||r(a,t).length)return!1}return!0})),Xe({name:YC,metadata:KC,settings:JC})},eS=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"}));const tS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-description",title:"Term Description",category:"theme",description:"Display the description of categories, tags and custom taxonomies when viewing an archive.",textdomain:"default",attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:nS}=tS,aS={icon:eS,edit:function({attributes:e,setAttributes:t,mergedStyle:n}){const{textAlign:a}=e,o=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${a}`]:a}),style:n});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})),(0,Ke.createElement)("div",{...o},(0,Ke.createElement)("div",{className:"wp-block-term-description__placeholder"},(0,Ke.createElement)("span",null,(0,tt.__)("Term Description")))))}},oS=()=>Xe({name:nS,metadata:tS,settings:aS});const rS={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:n,width:a})=>(0,Qe.createBlock)("core/columns",{align:"wide"===a||"full"===a?a:void 0,className:e,columns:t},n.map((({children:e})=>(0,Qe.createBlock)("core/column",{},[(0,Qe.createBlock)("core/paragraph",{content:e})]))))}]},lS=rS,iS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/text-columns",title:"Text Columns (deprecated)",icon:"columns",category:"design",description:"This block is deprecated. Please use the Columns block instead.",textdomain:"default",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,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-text-columns-editor",style:"wp-block-text-columns"},{name:sS}=iS,cS={transforms:lS,getEditWrapperProps(e){const{width:t}=e;if("wide"===t||"full"===t)return{"data-align":t}},edit:function({attributes:e,setAttributes:t}){const{width:n,content:a,columns:o}=e;return Qp()("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(nt.BlockAlignmentToolbar,{value:n,onChange:e=>t({width:e}),controls:["center","wide","full"]})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,null,(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Columns"),value:o,onChange:e=>t({columns:e}),min:2,max:4,required:!0}))),(0,Ke.createElement)("div",{...(0,nt.useBlockProps)({className:`align${n} columns-${o}`})},Array.from({length:o}).map(((e,n)=>(0,Ke.createElement)("div",{className:"wp-block-column",key:`column-${n}`},(0,Ke.createElement)(nt.RichText,{tagName:"p",value:a?.[n]?.children,onChange:e=>{t({content:[...a.slice(0,n),{children:e},...a.slice(n+1)]})},"aria-label":(0,tt.sprintf)((0,tt.__)("Column %d text"),n+1),placeholder:(0,tt.__)("New Column")}))))))},save:function({attributes:e}){const{width:t,content:n,columns:a}=e;return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:`align${t} columns-${a}`})},Array.from({length:a}).map(((e,t)=>(0,Ke.createElement)("div",{className:"wp-block-column",key:`column-${t}`},(0,Ke.createElement)(nt.RichText.Content,{tagName:"p",value:n?.[t]?.children})))))}},mS=()=>Xe({name:sS,metadata:iS,settings:cS}),uS=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.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"})),pS={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,content:n}=e;return(0,Ke.createElement)(nt.RichText.Content,{tagName:"pre",style:{textAlign:t},value:n})}},dS={attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},spacing:{padding:!0}},save({attributes:e}){const{textAlign:t,content:n}=e,a=ut()({[`has-text-align-${t}`]:t});return(0,Ke.createElement)("pre",{...nt.useBlockProps.save({className:a})},(0,Ke.createElement)(nt.RichText.Content,{value:n}))},migrate:ln,isEligible:({style:e})=>e?.typography?.fontFamily},gS=[dS,pS];const hS={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,Qe.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,Qe.createBlock)("core/paragraph",e)}]},bS=hS,_S={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/verse",title:"Verse",category:"text",description:"Insert poetry. Use special spacing formats. Or quote song lyrics.",keywords:["poetry","poem"],textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"pre",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-verse",editorStyle:"wp-block-verse-editor"},{name:yS}=_S,vS={icon:uS,example:{attributes:{content:(0,tt.__)("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.")}},transforms:bS,deprecated:gS,merge:(e,t)=>({content:e.content+"\n\n"+t.content}),edit:function({attributes:e,setAttributes:t,mergeBlocks:n,onRemove:a,insertBlocksAfter:o,style:r}){const{textAlign:l,content:i}=e,s=(0,nt.useBlockProps)({className:ut()({[`has-text-align-${l}`]:l}),style:r});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(nt.AlignmentToolbar,{value:l,onChange:e=>{t({textAlign:e})}})),(0,Ke.createElement)(nt.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:i,onChange:e=>{t({content:e})},"aria-label":(0,tt.__)("Verse text"),placeholder:(0,tt.__)("Write verse…"),onRemove:a,onMerge:n,textAlign:l,...s,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>o((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))}))},save:function({attributes:e}){const{textAlign:t,content:n}=e,a=ut()({[`has-text-align-${t}`]:t});return(0,Ke.createElement)("pre",{...nt.useBlockProps.save({className:a})},(0,Ke.createElement)(nt.RichText.Content,{value:n}))}},fS=()=>Xe({name:yS,metadata:_S,settings:vS}),kS=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.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"}));function xS({tracks:e=[]}){return e.map((e=>(0,Ke.createElement)("track",{key:e.src,...e})))}const{attributes:wS}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number",__experimentalRole:"content"},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",__experimentalRole:"content"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{__experimentalRole:"content",type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-video-editor",style:"wp-block-video"},ES={attributes:wS,save({attributes:e}){const{autoplay:t,caption:n,controls:a,loop:o,muted:r,poster:l,preload:i,src:s,playsInline:c,tracks:m}=e;return(0,Ke.createElement)("figure",{...nt.useBlockProps.save()},s&&(0,Ke.createElement)("video",{autoPlay:t,controls:a,loop:o,muted:r,poster:l,preload:"metadata"!==i?i:void 0,src:s,playsInline:c},(0,Ke.createElement)(xS,{tracks:m})),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:n}))}},CS=[ES],SS=[{value:"auto",label:(0,tt.__)("Auto")},{value:"metadata",label:(0,tt.__)("Metadata")},{value:"none",label:(0,tt._x)("None","Preload value")}],BS=({setAttributes:e,attributes:t})=>{const{autoplay:n,controls:a,loop:o,muted:r,playsInline:l,preload:i}=t,s=(0,tt.__)("Autoplay may cause usability issues for some users."),c=_t.Platform.select({web:(0,_t.useCallback)((e=>e?s:null),[]),native:s}),m=(0,_t.useMemo)((()=>{const t=t=>n=>{e({[t]:n})};return{autoplay:t("autoplay"),loop:t("loop"),muted:t("muted"),controls:t("controls"),playsInline:t("playsInline")}}),[]),u=(0,_t.useCallback)((t=>{e({preload:t})}),[]);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Autoplay"),onChange:m.autoplay,checked:!!n,help:c}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Loop"),onChange:m.loop,checked:!!o}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Muted"),onChange:m.muted,checked:!!r}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Playback controls"),onChange:m.controls,checked:!!a}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Play inline"),onChange:m.playsInline,checked:!!l}),(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Preload"),value:i,onChange:u,options:SS,hideCancelButton:!0}))},NS=["text/vtt"],TS="subtitles",IS=[{label:(0,tt.__)("Subtitles"),value:"subtitles"},{label:(0,tt.__)("Captions"),value:"captions"},{label:(0,tt.__)("Descriptions"),value:"descriptions"},{label:(0,tt.__)("Chapters"),value:"chapters"},{label:(0,tt.__)("Metadata"),value:"metadata"}];function PS({tracks:e,onEditPress:t}){let n;return n=0===e.length?(0,Ke.createElement)("p",{className:"block-library-video-tracks-editor__tracks-informative-message"},(0,tt.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")):e.map(((e,n)=>(0,Ke.createElement)(et.__experimentalHStack,{key:n,className:"block-library-video-tracks-editor__track-list-track"},(0,Ke.createElement)("span",null,e.label," "),(0,Ke.createElement)(et.Button,{variant:"tertiary",onClick:()=>t(n),"aria-label":(0,tt.sprintf)((0,tt.__)("Edit %s"),e.label)},(0,tt.__)("Edit"))))),(0,Ke.createElement)(et.MenuGroup,{label:(0,tt.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list"},n)}function MS({track:e,onChange:t,onClose:n,onRemove:a}){const{src:o="",label:r="",srcLang:l="",kind:i=TS}=e,s=o.startsWith("blob:")?"":(0,pt.getFilename)(o)||"";return(0,Ke.createElement)(et.NavigableMenu,null,(0,Ke.createElement)(et.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4"},(0,Ke.createElement)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label"},(0,tt.__)("Edit track")),(0,Ke.createElement)("span",null,(0,tt.__)("File"),": ",(0,Ke.createElement)("b",null,s)),(0,Ke.createElement)(et.__experimentalGrid,{columns:2,gap:4},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,autoFocus:!0,onChange:n=>t({...e,label:n}),label:(0,tt.__)("Label"),value:r,help:(0,tt.__)("Title of track")}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,onChange:n=>t({...e,srcLang:n}),label:(0,tt.__)("Source language"),value:l,help:(0,tt.__)("Language tag (en, fr, etc.)")})),(0,Ke.createElement)(et.__experimentalVStack,{spacing:"8"},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:IS,value:i,label:(0,tt.__)("Kind"),onChange:n=>{t({...e,kind:n})}}),(0,Ke.createElement)(et.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container"},(0,Ke.createElement)(et.Button,{variant:"secondary",onClick:()=>{const a={};let o=!1;""===r&&(a.label=(0,tt.__)("English"),o=!0),""===l&&(a.srcLang="en",o=!0),void 0===e.kind&&(a.kind=TS,o=!0),o&&t({...e,...a}),n()}},(0,tt.__)("Close")),(0,Ke.createElement)(et.Button,{isDestructive:!0,variant:"link",onClick:a},(0,tt.__)("Remove track"))))))}function zS({tracks:e=[],onChange:t}){const n=(0,gt.useSelect)((e=>e(nt.store).getSettings().mediaUpload),[]),[a,o]=(0,_t.useState)(null);return n?(0,Ke.createElement)(et.Dropdown,{contentClassName:"block-library-video-tracks-editor",renderToggle:({isOpen:e,onToggle:t})=>(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{label:(0,tt.__)("Text tracks"),showTooltip:!0,"aria-expanded":e,"aria-haspopup":"true",onClick:t},(0,tt.__)("Text tracks"))),renderContent:()=>null!==a?(0,Ke.createElement)(MS,{track:e[a],onChange:n=>{const o=[...e];o[a]=n,t(o)},onClose:()=>o(null),onRemove:()=>{t(e.filter(((e,t)=>t!==a))),o(null)}}):(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.NavigableMenu,null,(0,Ke.createElement)(PS,{tracks:e,onEditPress:o}),(0,Ke.createElement)(et.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,tt.__)("Add tracks")},(0,Ke.createElement)(nt.MediaUpload,{onSelect:({url:n})=>{const a=e.length;t([...e,{src:n}]),o(a)},allowedTypes:NS,render:({open:e})=>(0,Ke.createElement)(et.MenuItem,{icon:Qd,onClick:e},(0,tt.__)("Open Media Library"))}),(0,Ke.createElement)(nt.MediaUploadCheck,null,(0,Ke.createElement)(et.FormFileUpload,{onChange:a=>{const r=a.target.files,l=e.length;n({allowedTypes:NS,filesList:r,onFileChange:([{url:n}])=>{const a=[...e];a[l]||(a[l]={}),a[l]={...e[l],src:n},t(a),o(l)}})},accept:".vtt,text/vtt",render:({openFileDialog:e})=>(0,Ke.createElement)(et.MenuItem,{icon:np,onClick:()=>{e()}},(0,tt.__)("Upload"))})))))}):null}const RS=e=>(0,Ke.createElement)(et.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!0,icon:kS,label:(0,tt.__)("Video"),instructions:(0,tt.__)("Upload a video file, pick one from your media library, or add one with a URL.")},e),AS=["video"],HS=["image"];const LS=function e({isSelected:t,attributes:n,className:a,setAttributes:o,insertBlocksAfter:r,onReplace:l}){const i=(0,jt.useInstanceId)(e),s=(0,_t.useRef)(),c=(0,_t.useRef)(),{id:m,controls:u,poster:p,src:d,tracks:g}=n,h=!m&&(0,It.isBlobURL)(d),{getSettings:b}=(0,gt.useSelect)(nt.store);function _(e){e&&e.url?o({src:e.url,id:e.id,poster:e.image?.src!==e.icon?e.image?.src:void 0,caption:e.caption}):o({src:void 0,id:void 0,poster:void 0,caption:void 0})}function y(e){if(e!==d){const t=Ot({attributes:{url:e}});if(void 0!==t&&l)return void l(t);o({src:e,id:void 0,poster:void 0})}}(0,_t.useEffect)((()=>{if(!m&&(0,It.isBlobURL)(d)){const e=(0,It.getBlobByURL)(d);e&&b().mediaUpload({filesList:[e],onFileChange:([e])=>_(e),onError:f,allowedTypes:AS})}}),[]),(0,_t.useEffect)((()=>{s.current&&s.current.load()}),[p]);const{createErrorNotice:v}=(0,gt.useDispatch)(Pt.store);function f(e){v(e,{type:"snackbar"})}const k=ut()(a,{"is-transient":h}),x=(0,nt.useBlockProps)({className:k});if(!d)return(0,Ke.createElement)("div",{...x},(0,Ke.createElement)(nt.MediaPlaceholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:kS}),onSelect:_,onSelectURL:y,accept:"video/*",allowedTypes:AS,value:n,onError:f,placeholder:RS}));const w=`video-block__poster-image-description-${i}`;return(0,Ke.createElement)(Ke.Fragment,null,t&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(zS,{tracks:g,onChange:e=>{o({tracks:e})}})),(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(nt.MediaReplaceFlow,{mediaId:m,mediaURL:d,allowedTypes:AS,accept:"video/*",onSelect:_,onSelectURL:y,onError:f}))),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(BS,{setAttributes:o,attributes:n}),(0,Ke.createElement)(nt.MediaUploadCheck,null,(0,Ke.createElement)(et.BaseControl,{className:"editor-video-poster-control"},(0,Ke.createElement)(et.BaseControl.VisualLabel,null,(0,tt.__)("Poster image")),(0,Ke.createElement)(nt.MediaUpload,{title:(0,tt.__)("Select poster image"),onSelect:function(e){o({poster:e.url})},allowedTypes:HS,render:({open:e})=>(0,Ke.createElement)(et.Button,{variant:"primary",onClick:e,ref:c,"aria-describedby":w},p?(0,tt.__)("Replace"):(0,tt.__)("Select"))}),(0,Ke.createElement)("p",{id:w,hidden:!0},p?(0,tt.sprintf)((0,tt.__)("The current poster image url is %s"),p):(0,tt.__)("There is no poster image currently selected")),!!p&&(0,Ke.createElement)(et.Button,{onClick:function(){o({poster:void 0}),c.current.focus()},variant:"tertiary"},(0,tt.__)("Remove")))))),(0,Ke.createElement)("figure",{...x},(0,Ke.createElement)(et.Disabled,{isDisabled:!t},(0,Ke.createElement)("video",{controls:u,poster:p,src:d,ref:s},(0,Ke.createElement)(xS,{tracks:g}))),h&&(0,Ke.createElement)(et.Spinner,null),(0,Ke.createElement)(Qt,{attributes:n,setAttributes:o,isSelected:t,insertBlocksAfter:r,label:(0,tt.__)("Video caption text"),showToolbarButton:t})))};const DS={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("video/"),transform(e){const t=e[0];return(0,Qe.createBlock)("core/video",{src:(0,It.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:n,webm:a,ogv:o,flv:r}})=>e||t||n||a||o||r},poster:{type:"string",shortcode:({named:{poster:e}})=>e},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}},{type:"raw",isMatch:e=>"P"===e.nodeName&&1===e.children.length&&"VIDEO"===e.firstChild.nodeName,transform:e=>{const t=e.firstChild,n={autoplay:!!t.hasAttribute("autoplay")||void 0,controls:!!t.hasAttribute("controls")&&void 0,loop:!!t.hasAttribute("loop")||void 0,muted:!!t.hasAttribute("muted")||void 0,preload:t.getAttribute("preload")||void 0,playsInline:!!t.hasAttribute("playsinline")||void 0,poster:t.getAttribute("poster")||void 0,src:t.getAttribute("src")||void 0};return(0,Qe.createBlock)("core/video",n)}}]},FS=DS,VS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number",__experimentalRole:"content"},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",__experimentalRole:"content"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{__experimentalRole:"content",type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-video-editor",style:"wp-block-video"},{name:$S}=VS,OS={icon:kS,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,tt.__)("Wood thrush singing in Central Park, NYC.")}},transforms:FS,deprecated:CS,edit:LS,save:function({attributes:e}){const{autoplay:t,caption:n,controls:a,loop:o,muted:r,poster:l,preload:i,src:s,playsInline:c,tracks:m}=e;return(0,Ke.createElement)("figure",{...nt.useBlockProps.save()},s&&(0,Ke.createElement)("video",{autoPlay:t,controls:a,loop:o,muted:r,poster:l,preload:"metadata"!==i?i:void 0,src:s,playsInline:c},(0,Ke.createElement)(xS,{tracks:m})),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{className:(0,nt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n}))}},GS=()=>Xe({name:$S,metadata:VS,settings:OS});const US={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let qS;const jS=new Uint8Array(16);function WS(){if(!qS&&(qS="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!qS))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qS(jS)}const ZS=[];for(let e=0;e<256;++e)ZS.push((e+256).toString(16).slice(1));function QS(e,t=0){return ZS[e[t+0]]+ZS[e[t+1]]+ZS[e[t+2]]+ZS[e[t+3]]+"-"+ZS[e[t+4]]+ZS[e[t+5]]+"-"+ZS[e[t+6]]+ZS[e[t+7]]+"-"+ZS[e[t+8]]+ZS[e[t+9]]+"-"+ZS[e[t+10]]+ZS[e[t+11]]+ZS[e[t+12]]+ZS[e[t+13]]+ZS[e[t+14]]+ZS[e[t+15]]}const KS=function(e,t,n){if(US.randomUUID&&!t&&!e)return US.randomUUID();const a=(e=e||{}).random||(e.rng||WS)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=a[e];return t}return QS(a)},{usesContextKey:YS}=Ft(nt.privateApis),JS="core/footnote",XS="core/post-content",eB={title:(0,tt.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[YS]:["postType","postId"],edit:function({value:e,onChange:t,isObjectActive:n,context:{postType:a,postId:o}}){const r=(0,gt.useRegistry)(),{getSelectedBlockClientId:l,getBlocks:i,getBlockRootClientId:s,getBlockName:c,getBlockParentsByBlockName:m}=r.select(nt.store),u=(0,gt.useSelect)((e=>{if(!e(Qe.store).getBlockType("core/footnotes"))return!1;const t=e(nt.store).getSettings().allowedBlockTypes;if(!1===t||Array.isArray(t)&&!t.includes("core/footnotes"))return!1;const n=e(dt.store).getEntityRecord("postType",a,o);if("string"!=typeof n?.meta?.footnotes)return!1;const{getBlockParentsByBlockName:r,getSelectedBlockClientId:l}=e(nt.store),i=r(l(),"core/block");return!i||0===i.length}),[a,o]),{selectionChange:p,insertBlock:d}=(0,gt.useDispatch)(nt.store);if(!u)return null;return(0,Ke.createElement)(nt.RichTextToolbarButton,{icon:Wp,title:(0,tt.__)("Footnote"),onClick:function(){r.batch((()=>{let a;if(n){const t=e.replacements[e.start];a=t?.attributes?.["data-fn"]}else{a=KS();const n=(0,Rn.insertObject)(e,{type:JS,attributes:{"data-fn":a},innerHTML:`<a href="#${a}" id="${a}-link">*</a>`},e.end,e.end);n.start=n.end-1,t(n)}const o=l(),r=m(o,XS);let u=null;{const e=[...r.length?i(r[0]):i()];for(;e.length;){const t=e.shift();if("core/footnotes"===t.name){u=t;break}e.push(...t.innerBlocks)}}if(!u){let e=s(o);for(;e&&c(e)!==XS;)e=s(e);u=(0,Qe.createBlock)("core/footnotes"),d(u,void 0,e)}p(u.clientId,a,0,0)}))},isActive:n})}},tB={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/footnotes",title:"Footnotes",category:"text",description:"Display footnotes added to the page.",keywords:["references"],textdomain:"default",usesContext:["postId","postType"],supports:{__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!1,color:!1,width:!1,style:!1}},color:{background:!0,link:!0,text:!0,__experimentalDefaultControls:{link:!0,text:!0}},html:!1,multiple:!1,reusable:!1,inserter:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-footnotes"},{name:nB}=tB,aB={icon:Wp,edit:function({context:{postType:e,postId:t}}){const[n,a]=(0,dt.useEntityProp)("postType",e,"meta",t),o="string"==typeof n?.footnotes,r=n?.footnotes?JSON.parse(n.footnotes):[],l=(0,nt.useBlockProps)();return o?r.length?(0,Ke.createElement)("ol",{...l},r.map((({id:e,content:t})=>(0,Ke.createElement)("li",{key:e,onMouseDown:e=>{e.target===e.currentTarget&&(e.target.firstElementChild.focus(),e.preventDefault())}},(0,Ke.createElement)(nt.RichText,{id:e,tagName:"span",value:t,identifier:e,onFocus:e=>{e.target.textContent.trim()||e.target.scrollIntoView()},onChange:t=>{a({...n,footnotes:JSON.stringify(r.map((n=>n.id===e?{content:t,id:e}:n)))})}})," ",(0,Ke.createElement)("a",{href:`#${e}-link`},"↩︎"))))):(0,Ke.createElement)("div",{...l},(0,Ke.createElement)(et.Placeholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:Wp}),label:(0,tt.__)("Footnotes"),instructions:(0,tt.__)("Footnotes found in blocks within this document will be displayed here.")})):(0,Ke.createElement)("div",{...l},(0,Ke.createElement)(et.Placeholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:Wp}),label:(0,tt.__)("Footnotes"),instructions:(0,tt.__)("Footnotes are not supported here. Add this block to post or page content.")}))}};(0,Rn.registerFormatType)(JS,eB);const oB=()=>{Xe({name:nB,metadata:tB,settings:aB})};var rB=n(2321),lB=n.n(rB);const iB=()=>(()=>{const n=[te,F,H,R,O,G,Be,e,o,r,l,i,s,m,u,p,g,S,B,N,T,A,D,V,$,q,j,W,Y,X,ee,J,ye,ve,Ne,Ie,Pe,Me,ze,Le,De,Fe,Ve,Oe,qe,je,We,Ze,Z,Q,K,Re,He,Ae,fe,Ge,t,_e,ue,pe,ce,ne,ae,re,le,se,me,he,de,ge,be,xe,we,Ee,Ce,ke,Te,d,h,b,_,y,v,f,C,x,w,E,k,ie,$e,L,U,Ue,Se,oe];return window?.__experimentalEnableFormBlocks&&(n.push(I),n.push(P),n.push(M),n.push(z)),window?.wp?.oldEditor&&(window?.wp?.needsClassicBlock||!window?.__experimentalDisableTinymce||new URLSearchParams(window?.location?.search).get("requiresTinymce"))&&n.push(c),n.filter(Boolean)})().filter((({metadata:e})=>!lB()(e))),sB=(e=iB())=>{e.forEach((({init:e})=>e())),(0,Qe.setDefaultBlockName)(x_),window.wp&&window.wp.oldEditor&&e.some((({name:e})=>e===da))&&(0,Qe.setFreeformContentHandlerName)(da),(0,Qe.setUnregisteredTypeHandlerName)(bg),(0,Qe.setGroupingBlockName)(au)},cB=void 0})(),(window.wp=window.wp||{}).blockLibrary=a})(); \ No newline at end of file
+function os(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function ns(e){return"#"+e.map(os).join("")}function rs(e){return e?(t=e,Array.isArray(t[0])?e:[e]):[];var t}function as(e,t,o){for(var n=0;n<o.length;n++)if(is(e,t,o[n]))return!0;return!1}function is(e,t,o){switch(o.length){case 3:if(function(e,t,o){if(255!==e[t+3])return!0;if(e[t]===o[0]&&e[t+1]===o[1]&&e[t+2]===o[2])return!0;return!1}(e,t,o))return!0;break;case 4:if(function(e,t,o){if(e[t+3]&&o[3])return e[t]===o[0]&&e[t+1]===o[1]&&e[t+2]===o[2]&&e[t+3]===o[3];return e[t+3]===o[3]}(e,t,o))return!0;break;case 5:if(function(e,t,o){var n=o[0],r=o[1],a=o[2],i=o[3],s=o[4],l=e[t+3],c=ss(l,i,s);if(!i)return c;if(!l&&c)return!0;if(ss(e[t],n,s)&&ss(e[t+1],r,s)&&ss(e[t+2],a,s)&&c)return!0;return!1}(e,t,o))return!0;break;default:return!1}}function ss(e,t,o){return e>=t-o&&e<=t+o}function ls(e,t,o){for(var n={},r=o.ignoredColor,a=o.step,i=[0,0,0,0,0],s=0;s<t;s+=a){var l=e[s],c=e[s+1],u=e[s+2],d=e[s+3];if(!r||!as(e,s,r)){var p=Math.round(l/24)+","+Math.round(c/24)+","+Math.round(u/24);n[p]?n[p]=[n[p][0]+l*d,n[p][1]+c*d,n[p][2]+u*d,n[p][3]+d,n[p][4]+1]:n[p]=[l*d,c*d,u*d,d,1],i[4]<n[p][4]&&(i=n[p])}}var m=i[0],g=i[1],h=i[2],x=i[3],b=i[4];return x?[Math.round(m/x),Math.round(g/x),Math.round(h/x),Math.round(x/b)]:o.defaultColor}function cs(e,t,o){for(var n=0,r=0,a=0,i=0,s=0,l=o.ignoredColor,c=o.step,u=0;u<t;u+=c){var d=e[u+3],p=e[u]*d,m=e[u+1]*d,g=e[u+2]*d;l&&as(e,u,l)||(n+=p,r+=m,a+=g,i+=d,s++)}return i?[Math.round(n/i),Math.round(r/i),Math.round(a/i),Math.round(i/s)]:o.defaultColor}function us(e,t,o){for(var n=0,r=0,a=0,i=0,s=0,l=o.ignoredColor,c=o.step,u=0;u<t;u+=c){var d=e[u],p=e[u+1],m=e[u+2],g=e[u+3];l&&as(e,u,l)||(n+=d*d*g,r+=p*p*g,a+=m*m*g,i+=g,s++)}return i?[Math.round(Math.sqrt(n/i)),Math.round(Math.sqrt(r/i)),Math.round(Math.sqrt(a/i)),Math.round(i/s)]:o.defaultColor}function ds(e){return ps(e,"defaultColor",[0,0,0,0])}function ps(e,t,o){return void 0===e[t]?o:e[t]}function ms(e){if(hs(e)){var t=e.naturalWidth,o=e.naturalHeight;return e.naturalWidth||-1===e.src.search(/\.svg(\?|$)/i)||(t=o=100),{width:t,height:o}}return function(e){return"undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement}(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function gs(e){return function(e){return"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement}(e)?"canvas":function(e){return xs&&e instanceof OffscreenCanvas}(e)?"offscreencanvas":function(e){return"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap}(e)?"imagebitmap":e.src}function hs(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement}var xs="undefined"!=typeof OffscreenCanvas;var bs="undefined"==typeof window;function _s(e){return Error("FastAverageColor: "+e)}function ys(e,t){t||console.error(e)}var vs=function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(e,t){if(!e)return Promise.reject(_s("call .getColorAsync() without resource."));if("string"==typeof e){if("undefined"==typeof Image)return Promise.reject(_s("resource as string is not supported in this environment"));var o=new Image;return o.crossOrigin=t&&t.crossOrigin||"",o.src=e,this.bindImageEvents(o,t)}if(hs(e)&&!e.complete)return this.bindImageEvents(e,t);var n=this.getColor(e,t);return n.error?Promise.reject(n.error):Promise.resolve(n)},e.prototype.getColor=function(e,t){var o=ds(t=t||{});if(!e)return ys(a=_s("call .getColor(null) without resource"),t.silent),this.prepareResult(o,a);var n=function(e,t){var o,n=ps(t,"left",0),r=ps(t,"top",0),a=ps(t,"width",e.width),i=ps(t,"height",e.height),s=a,l=i;return"precision"===t.mode||(a>i?(o=a/i,s=100,l=Math.round(s/o)):(o=i/a,l=100,s=Math.round(l/o)),(s>a||l>i||s<10||l<10)&&(s=a,l=i)),{srcLeft:n,srcTop:r,srcWidth:a,srcHeight:i,destWidth:s,destHeight:l}}(ms(e),t);if(!(n.srcWidth&&n.srcHeight&&n.destWidth&&n.destHeight))return ys(a=_s('incorrect sizes for resource "'.concat(gs(e),'"')),t.silent),this.prepareResult(o,a);if(!this.canvas&&(this.canvas=bs?xs?new OffscreenCanvas(1,1):null:document.createElement("canvas"),!this.canvas))return ys(a=_s("OffscreenCanvas is not supported in this browser"),t.silent),this.prepareResult(o,a);if(!this.ctx){if(this.ctx=this.canvas.getContext("2d",{willReadFrequently:!0}),!this.ctx)return ys(a=_s("Canvas Context 2D is not supported in this browser"),t.silent),this.prepareResult(o);this.ctx.imageSmoothingEnabled=!1}this.canvas.width=n.destWidth,this.canvas.height=n.destHeight;try{this.ctx.clearRect(0,0,n.destWidth,n.destHeight),this.ctx.drawImage(e,n.srcLeft,n.srcTop,n.srcWidth,n.srcHeight,0,0,n.destWidth,n.destHeight);var r=this.ctx.getImageData(0,0,n.destWidth,n.destHeight).data;return this.prepareResult(this.getColorFromArray4(r,t))}catch(n){var a;return ys(a=_s("security error (CORS) for resource ".concat(gs(e),".\nDetails: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image")),t.silent),!t.silent&&console.error(n),this.prepareResult(o,a)}},e.prototype.getColorFromArray4=function(e,t){t=t||{};var o=e.length,n=ds(t);if(o<4)return n;var r,a=o-o%4,i=4*(t.step||1);switch(t.algorithm||"sqrt"){case"simple":r=cs;break;case"sqrt":r=us;break;case"dominant":r=ls;break;default:throw _s("".concat(t.algorithm," is unknown algorithm"))}return r(e,a,{defaultColor:n,ignoredColor:rs(t.ignoredColor),step:i})},e.prototype.prepareResult=function(e,t){var o,n=e.slice(0,3),r=[e[0],e[1],e[2],e[3]/255],a=(299*(o=e)[0]+587*o[1]+114*o[2])/1e3<128;return{value:[e[0],e[1],e[2],e[3]],rgb:"rgb("+n.join(",")+")",rgba:"rgba("+r.join(",")+")",hex:ns(n),hexa:ns(e),isDark:a,isLight:!a,error:t}},e.prototype.destroy=function(){this.canvas&&(this.canvas.width=1,this.canvas.height=1,this.canvas=null),this.ctx=null},e.prototype.bindImageEvents=function(e,t){var o=this;return new Promise((function(n,r){var a=function(){l();var a=o.getColor(e,t);a.error?r(a.error):n(a)},i=function(){l(),r(_s('Error loading image "'.concat(e.src,'".')))},s=function(){l(),r(_s('Image "'.concat(e.src,'" loading aborted')))},l=function(){e.removeEventListener("load",a),e.removeEventListener("error",i),e.removeEventListener("abort",s)};e.addEventListener("load",a),e.addEventListener("error",i),e.addEventListener("abort",s)}))},e}();const fs=window.wp.hooks;!function(e){e.forEach((function(e){ts.indexOf(e)<0&&(e(Xi,Wi),ts.push(e))}))}([function(e,t){var o={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var r in o)n[o[r]]=r;var a={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,i,s=n[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!a.length)for(var d in o)a[d]=new e(o[d]).toRgb();for(var p in o){var m=(r=l,i=a[p],Math.pow(r.r-i.r,2)+Math.pow(r.g-i.g,2)+Math.pow(r.b-i.b,2));m<c&&(c=m,u=p)}return u}},t.string.push([function(t){var n=t.toLowerCase(),r="transparent"===n?"#0000":o[n];return r?new e(r).toRgb():null},"name"])}]);const ks="#FFF";function ws(){return ws.fastAverageColor||(ws.fastAverageColor=new vs),ws.fastAverageColor}const Cs=Mt((async e=>{if(!e)return ks;const{r:t,g:o,b:n,a:r}=es(ks).toRgb();try{const a=(0,fs.applyFilters)("media.crossOrigin",void 0,e);return(await ws().getColorAsync(e,{defaultColor:[t,o,n,255*r],silent:!0,crossOrigin:a})).hex}catch(e){return ks}}));function js(e,t,o){if(t===o||100===e)return es(t).isDark();const n=es(t).alpha(e/100).toRgb(),r=es(o).toRgb(),a=(s=r,{r:(i=n).r*i.a+s.r*s.a*(1-i.a),g:i.g*i.a+s.g*s.a*(1-i.a),b:i.b*i.a+s.b*s.a*(1-i.a),a:i.a+s.a*(1-i.a)});var i,s;return es(a).isDark()}const Ss=(0,Ut.compose)([(0,ot.withColors)({overlayColor:"background-color"})])((function({attributes:e,clientId:t,isSelected:o,overlayColor:n,setAttributes:r,setOverlayColor:a,toggleSelection:i,context:{postId:s,postType:l}}){const{contentPosition:c,id:u,url:d,backgroundType:p,useFeaturedImage:m,dimRatio:g,focalPoint:h,hasParallax:x,isDark:b,isRepeated:_,minHeight:y,minHeightUnit:v,alt:f,allowedBlocks:k,templateLock:w,tagName:C="div",isUserOverlayColor:j}=e,[S]=(0,mt.useEntityProp)("postType",l,"featured_media",s),{__unstableMarkNextChangeAsNotPersistent:B}=(0,gt.useDispatch)(ot.store),N=(0,gt.useSelect)((e=>S&&e(mt.store).getMedia(S,{context:"view"})),[S]),T=N?.source_url;(0,bt.useEffect)((()=>{(async()=>{if(!m)return;const e=await Cs(T);let t=n.color;j||(t=e,B(),a(t));const o=js(g,t,e);B(),r({isDark:o})})()}),[T]);const I=m?T:d?.replaceAll("&amp;","&"),P=m?Ea:p,{createErrorNotice:M}=(0,gt.useDispatch)(Pt.store),{gradientClass:z,gradientValue:R}=(0,ot.__experimentalUseGradient)(),A=async e=>{const t=function(e){if(!e||!e.url)return{url:void 0,id:void 0};let t;if((0,It.isBlobURL)(e.url)&&(e.type=(0,It.getBlobTypeByURL)(e.url)),e.media_type)t=e.media_type===Ea?Ea:$a;else{if(e.type!==Ea&&e.type!==$a)return;t=e.type}return{url:e.url,id:e.id,alt:e?.alt,backgroundType:t,...t===$a?{hasParallax:void 0}:{}}}(e),o=[e?.type,e?.media_type].includes(Ea),i=await Cs(o?e?.url:void 0);let s=n.color;j||(s=i,a(s),B());const l=void 0===d&&100===g?50:g,c=js(l,s,i);r({...t,focalPoint:void 0,useFeaturedImage:void 0,dimRatio:l,isDark:c})},L=async e=>{const t=await Cs(I),o=js(g,e,t);a(e),B(),r({isUserOverlayColor:!0,isDark:o})},H=e=>{M(e,{type:"snackbar"})},D=((e,t)=>!e&&(0,It.isBlobURL)(t))(u,I),F=Ea===P,V=$a===P,[E,{height:$,width:G}]=(0,Ut.useResizeObserver)(),O=(0,bt.useMemo)((()=>({height:"px"===v?y:"auto",width:"auto"})),[y,v]),U=y&&v?`${y}${v}`:y,q=!(x||_),W={minHeight:U||void 0},Z=I?`url(${I})`:void 0,Q=qa(h),K={backgroundColor:n.color},J={objectPosition:h&&q?qa(h):void 0},Y=!!(I||n.color||R),X=(0,gt.useSelect)((e=>e(ot.store).getBlock(t).innerBlocks.length>0),[t]),ee=(0,bt.useRef)(),te=(0,ot.useBlockProps)({ref:ee}),[oe]=(0,ot.useSettings)("typography.fontSizes"),ne=function(e){return[["core/paragraph",{align:"center",placeholder:(0,tt.__)("Write title…"),...e}]]}({fontSize:oe?.length>0?"large":void 0}),re=(0,ot.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:X?void 0:ne,templateInsertUpdatesSelection:!0,allowedBlocks:k,templateLock:w,dropZoneElement:ee.current}),ae=(0,bt.useRef)(),ie={isVideoBackground:V,isImageBackground:F,mediaElement:ae,hasInnerBlocks:X,url:I,isImgElement:q,overlayColor:n},se=async()=>{const e=!m,t=e?await Cs(T):ks,o=j?n.color:t;j||(a(e?o:void 0),B());const i=100===g?50:g,s=js(i,o,t);r({id:void 0,url:void 0,useFeaturedImage:e,dimRatio:i,backgroundType:m?Ea:void 0,isDark:s})},le=(0,Je.jsx)(wi,{attributes:e,setAttributes:r,onSelectMedia:A,currentSettings:ie,toggleUseFeaturedImage:se}),ce=(0,Je.jsx)(fi,{attributes:e,setAttributes:r,clientId:t,setOverlayColor:L,coverRef:ee,currentSettings:ie,toggleUseFeaturedImage:se,updateDimRatio:async e=>{const t=await Cs(I),o=js(e,n.color,t);r({dimRatio:e,isDark:o})},onClearMedia:()=>{let e=n.color;j||(e="#000",a(void 0),B());const t=js(g,e,ks);r({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0,isDark:t})}}),ue={className:"block-library-cover__resize-container",clientId:t,height:$,minHeight:U,onResizeStart:()=>{r({minHeightUnit:"px"}),i(!1)},onResize:e=>{r({minHeight:e})},onResizeStop:e=>{i(!0),r({minHeight:e})},showHandle:!e.style?.dimensions?.aspectRatio,size:O,width:G};if(!m&&!X&&!Y)return(0,Je.jsxs)(Je.Fragment,{children:[le,ce,o&&(0,Je.jsx)(Bi,{...ue}),(0,Je.jsxs)(C,{...te,className:dt("is-placeholder",te.className),style:{...te.style,minHeight:U||void 0},children:[E,(0,Je.jsx)(Ci,{onSelectMedia:A,onError:H,toggleUseFeaturedImage:se,children:(0,Je.jsx)("div",{className:"wp-block-cover__placeholder-background-options",children:(0,Je.jsx)(ot.ColorPalette,{disableCustomColors:!0,value:n.color,onChange:L,clearable:!1})})})]})]});const de=dt({"is-dark-theme":b,"is-light":!b,"is-transient":D,"has-parallax":x,"is-repeated":_,"has-custom-content-position":!Za(c)},Qa(c)),pe=I||!m||m&&!I;return(0,Je.jsxs)(Je.Fragment,{children:[le,ce,(0,Je.jsxs)(C,{...te,className:dt(de,te.className),style:{...W,...te.style},"data-url":I,children:[E,pe&&(0,Je.jsx)("span",{"aria-hidden":"true",className:dt("wp-block-cover__background",Wa(g),{[n.class]:n.class,"has-background-dim":void 0!==g,"wp-block-cover__gradient-background":I&&R&&0!==g,"has-background-gradient":R,[z]:z}),style:{backgroundImage:R,...K}}),!I&&m&&(0,Je.jsx)(et.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),I&&F&&(q?(0,Je.jsx)("img",{ref:ae,className:"wp-block-cover__image-background",alt:f,src:I,style:J}):(0,Je.jsx)("div",{ref:ae,role:f?"img":void 0,"aria-label":f||void 0,className:dt(de,"wp-block-cover__image-background"),style:{backgroundImage:Z,backgroundPosition:Q}})),I&&V&&(0,Je.jsx)("video",{ref:ae,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:I,style:J}),D&&(0,Je.jsx)(et.Spinner,{}),(0,Je.jsx)(Ci,{disableMediaButtons:!0,onSelectMedia:A,onError:H,toggleUseFeaturedImage:se}),(0,Je.jsx)("div",{...re})]}),o&&(0,Je.jsx)(Bi,{...ue})]})}));const{cleanEmptyObject:Bs}=Ht(ot.privateApis),Ns={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:o,align:n,id:r,anchor:a,style:i})=>(0,Qe.createBlock)("core/cover",{dimRatio:50,url:t,alt:o,align:n,id:r,anchor:a,style:{color:{duotone:i?.color?.duotone}}},[(0,Qe.createBlock)("core/paragraph",{content:e,fontSize:"large",align:"center"})])},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:o,id:n,anchor:r})=>(0,Qe.createBlock)("core/cover",{dimRatio:50,url:t,align:o,id:n,backgroundType:$a,anchor:r},[(0,Qe.createBlock)("core/paragraph",{content:e,fontSize:"large",align:"center"})])},{type:"block",blocks:["core/group"],transform:(e,t)=>{const{align:o,anchor:n,backgroundColor:r,gradient:a,style:i}=e;if(1===t?.length&&"core/cover"===t[0]?.name)return(0,Qe.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);const s={align:o,anchor:n,dimRatio:r||a||i?.color?.background||i?.color?.gradient?void 0:50,overlayColor:r,customOverlayColor:i?.color?.background,gradient:a,customGradient:i?.color?.gradient},l={...e,backgroundColor:void 0,gradient:void 0,style:Bs({...e?.style,color:i?.color?{...i?.color,background:void 0,gradient:void 0}:void 0})};return(0,Qe.createBlock)("core/cover",s,[(0,Qe.createBlock)("core/group",l,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:o,customOverlayColor:n,gradient:r,customGradient:a})=>t?e===Ea:!(o||n||r||a),transform:({title:e,url:t,alt:o,align:n,id:r,anchor:a,style:i})=>(0,Qe.createBlock)("core/image",{caption:e,url:t,alt:o,align:n,id:r,anchor:a,style:{color:{duotone:i?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:o,customOverlayColor:n,gradient:r,customGradient:a})=>t?e===$a:!(o||n||r||a),transform:({title:e,url:t,align:o,id:n,anchor:r})=>(0,Qe.createBlock)("core/video",{caption:e,src:t,id:n,align:o,anchor:r})},{type:"block",blocks:["core/group"],isMatch:({url:e,useFeaturedImage:t})=>!e&&!t,transform:(e,t)=>{const o={backgroundColor:e?.overlayColor,gradient:e?.gradient,style:Bs({...e?.style,color:e?.customOverlayColor||e?.customGradient||e?.style?.color?{background:e?.customOverlayColor,gradient:e?.customGradient,...e?.style?.color}:void 0})};if(1===t?.length&&"core/group"===t[0]?.name){const e=Bs(t[0].attributes||{});return e?.backgroundColor||e?.gradient||e?.style?.color?.background||e?.style?.color?.gradient?(0,Qe.createBlock)("core/group",e,t[0]?.innerBlocks):(0,Qe.createBlock)("core/group",{...o,...e,style:Bs({...e?.style,color:o?.style?.color||e?.style?.color?{...o?.style?.color,...e?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,Qe.createBlock)("core/group",{...e,...o},t)}}]},Ts=Ns,Is=[{name:"cover",title:(0,tt.__)("Cover"),description:(0,tt.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:Fa}],Ps={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay.",textdomain:"default",attributes:{url:{type:"string"},useFeaturedImage:{type:"boolean",default:!1},id:{type:"number"},alt:{type:"string",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},isUserOverlayColor:{type:"boolean"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},tagName:{type:"string",default:"div"}},usesContext:["postId","postType"],supports:{anchor:!0,align:!0,html:!1,shadow:!0,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},dimensions:{aspectRatio:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"},{name:Ms}=Ps,zs={icon:Fa,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("<strong>Snow Patrol</strong>"),align:"center",style:{typography:{fontSize:48},color:{text:"white"}}}}]},transforms:Ts,save:function({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:x,minHeightUnit:b,tagName:_}=e,y=(0,ot.getColorClassName)("background-color",p),v=(0,ot.__experimentalGetGradientClass)(o),f=Ea===t,k=$a===t,w=!(c||d),C={minHeight:(x&&b?`${x}${b}`:x)||void 0},j={backgroundColor:y?void 0:a,background:r||void 0},S=s&&w?qa(s):void 0,B=m?`url(${m})`:void 0,N=qa(s),T=dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Za(n)},Qa(n)),I=dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":d}),P=o||r;return(0,Je.jsxs)(_,{...ot.useBlockProps.save({className:T,style:C}),children:[(0,Je.jsx)("span",{"aria-hidden":"true",className:dt("wp-block-cover__background",y,Wa(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&P&&0!==i,"has-background-gradient":P,[v]:v}),style:j}),!l&&f&&m&&(w?(0,Je.jsx)("img",{className:I,alt:g,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}):(0,Je.jsx)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:I,style:{backgroundPosition:N,backgroundImage:B}})),k&&m&&(0,Je.jsx)("video",{className:dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,Je.jsx)("div",{...ot.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},edit:Ss,deprecated:_i,variations:Is},Rs=()=>Xe({name:Ms,metadata:Ps,settings:zs}),As=(0,Je.jsxs)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,Je.jsx)(Ke.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,Je.jsx)(Ke.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})]}),Ls=[["core/paragraph",{placeholder:(0,tt.__)("Type / to add a hidden block")}]];const Hs=function({attributes:e,setAttributes:t,clientId:o}){const{showContent:n,summary:r}=e,a=(0,ot.useBlockProps)(),i=(0,ot.useInnerBlocksProps)(a,{template:Ls,__experimentalCaptureToolbars:!0}),s=(0,gt.useSelect)((e=>{const{isBlockSelected:t,hasSelectedInnerBlock:n}=e(ot.store);return n(o,!0)||t(o)}),[o]);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(et.PanelBody,{title:(0,tt.__)("Settings"),children:(0,Je.jsx)(et.ToggleControl,{label:(0,tt.__)("Open by default"),checked:n,onChange:()=>t({showContent:!n})})})}),(0,Je.jsxs)("details",{...i,open:s||n,children:[(0,Je.jsx)("summary",{onClick:e=>e.preventDefault(),children:(0,Je.jsx)(ot.RichText,{identifier:"summary","aria-label":(0,tt.__)("Write summary"),placeholder:(0,tt.__)("Write summary…"),allowedFormats:[],withoutInteractiveFormatting:!0,value:r,onChange:e=>t({summary:e})})}),i.children]})]})};const Ds={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/details",title:"Details",category:"text",description:"Hide and show additional content.",keywords:["accordion","summary","toggle","disclosure"],textdomain:"default",attributes:{showContent:{type:"boolean",default:!1},summary:{type:"rich-text",source:"rich-text",selector:"summary"}},supports:{__experimentalOnEnter:!0,align:["wide","full"],color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,width:!0,style:!0},html:!1,spacing:{margin:!0,padding:!0,blockGap:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowEditing:!1},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-details-editor",style:"wp-block-details"},{name:Fs}=Ds,Vs={icon:As,example:{attributes:{summary:"La Mancha",showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("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.")}}]},save:function({attributes:e}){const{showContent:t}=e,o=e.summary?e.summary:"Details",n=ot.useBlockProps.save();return(0,Je.jsxs)("details",{...n,open:t,children:[(0,Je.jsx)("summary",{children:(0,Je.jsx)(ot.RichText.Content,{value:o})}),(0,Je.jsx)(ot.InnerBlocks.Content,{})]})},edit:Hs},Es=()=>Xe({name:Fs,metadata:Ds,settings:Vs}),$s=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});function Gs(e){return e?(0,tt.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,tt.__)("This embed may not preserve its aspect ratio when the browser is resized.")}const Os=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:o,allowResponsive:n,toggleResponsive:r,switchBackToURLInput:a})=>(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(et.ToolbarGroup,{children:t&&(0,Je.jsx)(et.ToolbarButton,{className:"components-toolbar__control",label:(0,tt.__)("Edit URL"),icon:$s,onClick:a})})}),o&&e&&(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(et.PanelBody,{title:(0,tt.__)("Media settings"),className:"blocks-responsive",children:(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Resize for smaller devices"),checked:n,help:Gs,onChange:r})})})]}),Us=(0,Je.jsx)(et.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(et.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"})}),qs=(0,Je.jsx)(et.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(et.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"})}),Ws=(0,Je.jsx)(et.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(et.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"})}),Zs=(0,Je.jsx)(et.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(et.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"})}),Qs={foreground:"#1da1f2",src:(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(et.G,{children:(0,Je.jsx)(et.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"})})})},Ks={foreground:"#ff0000",src:(0,Je.jsx)(et.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(et.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"})})},Js={foreground:"#3b5998",src:(0,Je.jsx)(et.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(et.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"})})},Ys=(0,Je.jsx)(et.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(et.G,{children:(0,Je.jsx)(et.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"})})}),Xs={foreground:"#0073AA",src:(0,Je.jsx)(et.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(et.G,{children:(0,Je.jsx)(et.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"})})})},el={foreground:"#1db954",src:(0,Je.jsx)(et.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(et.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"})})},tl=(0,Je.jsx)(et.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(et.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"})}),ol={foreground:"#1ab7ea",src:(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(et.G,{children:(0,Je.jsx)(et.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"})})})},nl=(0,Je.jsx)(et.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(et.Path,{d:"M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"})}),rl={foreground:"#35465c",src:(0,Je.jsx)(et.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(et.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"})})},al=(0,Je.jsxs)(et.SVG,{viewBox:"0 0 24 24",children:[(0,Je.jsx)(et.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"}),(0,Je.jsx)(et.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"}),(0,Je.jsx)(et.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"})]}),il=(0,Je.jsxs)(et.SVG,{viewBox:"0 0 24 24",children:[(0,Je.jsx)(et.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,Je.jsx)(et.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"}),(0,Je.jsx)(et.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,Je.jsx)(et.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"}),(0,Je.jsx)(et.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,Je.jsx)(et.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})]}),sl=(0,Je.jsx)(et.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(et.Path,{d:"M11.903 16.568c-1.82 0-3.124-1.281-3.124-2.967a2.987 2.987 0 0 1 2.989-2.989c1.663 0 2.944 1.304 2.944 3.034 0 1.663-1.281 2.922-2.81 2.922ZM17.997 3l-3.308.73v5.107c-.809-1.034-2.045-1.37-3.505-1.37-1.529 0-2.9.561-4.023 1.662-1.259 1.214-1.933 2.764-1.933 4.495 0 1.888.72 3.506 2.113 4.742 1.056.944 2.314 1.415 3.775 1.415 1.438 0 2.517-.382 3.573-1.415v1.415h3.308V3Z",fill:"#333436"})}),ll=(0,Je.jsx)(et.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(et.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"})}),cl=(0,Je.jsx)(et.SVG,{viewBox:"0 0 44 44",children:(0,Je.jsx)(et.Path,{d:"M32.59521,22.001l4.31885-4.84473-6.34131-1.38379.646-6.459-5.94336,2.61035L22,6.31934l-3.27344,5.60351L12.78418,9.3125l.645,6.458L7.08643,17.15234,11.40479,21.999,7.08594,26.84375l6.34131,1.38379-.64551,6.458,5.94287-2.60938L22,37.68066l3.27344-5.60351,5.94287,2.61035-.64551-6.458,6.34277-1.38183Zm.44385,2.75244L30.772,23.97827l-1.59558-2.07391,1.97888.735Zm-8.82147,6.1579L22.75,33.424V30.88977l1.52228-2.22168ZM18.56226,13.48816,19.819,15.09534l-2.49219-.88642L15.94037,12.337Zm6.87719.00116,2.62043-1.15027-1.38654,1.86981L24.183,15.0946Zm3.59357,2.6029-1.22546,1.7381.07525-2.73486,1.44507-1.94867ZM22,29.33008l-2.16406-3.15686L22,23.23688l2.16406,2.93634Zm-4.25458-9.582-.10528-3.836,3.60986,1.284v3.73242Zm5.00458-2.552,3.60986-1.284-.10528,3.836L22.75,20.92853Zm-7.78174-1.10559-.29352-2.94263,1.44245,1.94739.07519,2.73321Zm2.30982,5.08319,3.50817,1.18164-2.16247,2.9342-3.678-1.08447Zm2.4486,7.49285L21.25,30.88977v2.53485L19.78052,30.91Zm3.48707-6.31121,3.50817-1.18164,2.33228,3.03137-3.678,1.08447Zm10.87219-4.28113-2.714,3.04529L28.16418,19.928l1.92176-2.72565ZM24.06036,12.81769l-2.06012,2.6322-2.059-2.63318L22,9.292ZM9.91455,18.07227l4.00079-.87195,1.921,2.72735-3.20794,1.19019Zm2.93024,4.565,1.9801-.73462L13.228,23.97827l-2.26838.77429Zm-1.55591,3.58819L13.701,25.4021l2.64935.78058-2.14447.67853Zm3.64868,1.977L18.19,27.17334l.08313,3.46332L14.52979,32.2793Zm10.7876,2.43549.08447-3.464,3.25165,1.03052.407,4.07684Zm4.06824-3.77478-2.14545-.68,2.65063-.781,2.41266.825Z"})}),ul={foreground:"#f43e37",src:(0,Je.jsxs)(et.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Je.jsx)(et.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,Je.jsx)(et.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2.67,12a9.33,9.33,0,0,1,18.66,0H19a7,7,0,1,0-7,7v2.33A9.33,9.33,0,0,1,2.67,12ZM12,17.6A5.6,5.6,0,1,1,17.6,12h-2A3.56,3.56,0,1,0,12,15.56Z",fill:"#fff"})]})},dl=(0,Je.jsx)(et.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(et.Path,{fill:"#0a7aff",d:"M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"})}),pl=()=>(0,Je.jsx)("div",{className:"wp-block-embed is-loading",children:(0,Je.jsx)(et.Spinner,{})}),ml=({icon:e,label:t,value:o,onSubmit:n,onChange:r,cannotEmbed:a,fallback:i,tryAgain:s})=>(0,Je.jsxs)(et.Placeholder,{icon:(0,Je.jsx)(ot.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,tt.__)("Paste a link to the content you want to display on your site."),children:[(0,Je.jsxs)("form",{onSubmit:n,children:[(0,Je.jsx)("input",{type:"url",value:o||"",className:"components-placeholder__input","aria-label":t,placeholder:(0,tt.__)("Enter URL to embed here…"),onChange:r}),(0,Je.jsx)(et.Button,{variant:"primary",type:"submit",children:(0,tt._x)("Embed","button label")})]}),(0,Je.jsx)("div",{className:"wp-block-embed__learn-more",children:(0,Je.jsx)(et.ExternalLink,{href:(0,tt.__)("https://wordpress.org/documentation/article/embeds/"),children:(0,tt.__)("Learn more about embeds")})}),a&&(0,Je.jsxs)(et.__experimentalVStack,{spacing:3,className:"components-placeholder__error",children:[(0,Je.jsx)("div",{className:"components-placeholder__instructions",children:(0,tt.__)("Sorry, this content could not be embedded.")}),(0,Je.jsxs)(et.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",children:[(0,Je.jsx)(et.Button,{variant:"secondary",onClick:s,children:(0,tt._x)("Try again","button label")})," ",(0,Je.jsx)(et.Button,{variant:"secondary",onClick:i,children:(0,tt._x)("Convert to link","button label")})]})]})]}),gl={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function hl({html:e}){const t=(0,bt.useRef)(),o=(0,bt.useMemo)((()=>{const t=(new window.DOMParser).parseFromString(e,"text/html").querySelector("iframe"),o={};return t?(Array.from(t.attributes).forEach((({name:e,value:t})=>{"style"!==e&&(o[gl[e]||e]=t)})),o):o}),[e]);return(0,bt.useEffect)((()=>{const{ownerDocument:e}=t.current,{defaultView:n}=e;function r({data:{secret:e,message:n,value:r}={}}){"height"===n&&e===o["data-secret"]&&(t.current.height=r)}return n.addEventListener("message",r),()=>{n.removeEventListener("message",r)}}),[]),(0,Je.jsx)("div",{className:"wp-block-embed__wrapper",children:(0,Je.jsx)("iframe",{ref:(0,Ut.useMergeRefs)([t,(0,Ut.useFocusableIframe)()]),title:o.title,...o})})}class xl extends bt.Component{constructor(){super(...arguments),this.hideOverlay=this.hideOverlay.bind(this),this.state={interactive:!1}}static getDerivedStateFromProps(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}hideOverlay(){this.setState({interactive:!0})}render(){const{preview:e,previewable:t,url:o,type:n,caption:r,onCaptionChange:a,isSelected:i,className:s,icon:l,label:c,insertBlocksAfter:u}=this.props,{scripts:d}=e,{interactive:p}=this.state,m="photo"===n?(e=>{const t=e.url||e.thumbnail_url,o=(0,Je.jsx)("p",{children:(0,Je.jsx)("img",{src:t,alt:e.title,width:"100%"})});return(0,bt.renderToString)(o)})(e):e.html,g=new URL(o).host.split("."),h=g.splice(g.length-2,g.length-1).join("."),x=(0,tt.sprintf)((0,tt.__)("Embedded content from %s"),h),b=dt(n,s,"wp-block-embed__wrapper"),_="wp-embed"===n?(0,Je.jsx)(hl,{html:m}):(0,Je.jsxs)("div",{className:"wp-block-embed__wrapper",children:[(0,Je.jsx)(et.SandBox,{html:m,scripts:d,title:x,type:b,onFocus:this.hideOverlay}),!p&&(0,Je.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay})]});return(0,Je.jsxs)("figure",{className:dt(s,"wp-block-embed",{"is-type-video":"video"===n}),children:[t?_:(0,Je.jsxs)(et.Placeholder,{icon:(0,Je.jsx)(ot.BlockIcon,{icon:l,showColors:!0}),label:c,children:[(0,Je.jsx)("p",{className:"components-placeholder__error",children:(0,Je.jsx)("a",{href:o,children:o})}),(0,Je.jsx)("p",{className:"components-placeholder__error",children:(0,tt.sprintf)((0,tt.__)("Embedded content from %s can't be previewed in the editor."),h)})]}),(!ot.RichText.isEmpty(r)||i)&&(0,Je.jsx)(ot.RichText,{identifier:"caption",tagName:"figcaption",className:(0,ot.__experimentalGetElementClassName)("caption"),placeholder:(0,tt.__)("Add caption"),value:r,onChange:a,inlineToolbar:!0,__unstableOnSplitAtEnd:()=>u((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))})]})}}const bl=xl,_l=e=>{const{attributes:{providerNameSlug:t,previewable:o,responsive:n,url:r},attributes:a,isSelected:i,onReplace:s,setAttributes:l,insertBlocksAfter:c,onFocus:u}=e,d={title:(0,tt._x)("Embed","block title"),icon:Us},{icon:p,title:m}=(g=t,(0,Qe.getBlockVariations)(Dt)?.find((({name:e})=>e===g))||d);var g;const[h,x]=(0,bt.useState)(r),[b,_]=(0,bt.useState)(!1),{invalidateResolution:y}=(0,gt.useDispatch)(mt.store),{preview:v,fetching:f,themeSupportsResponsive:k,cannotEmbed:w,hasResolved:C}=(0,gt.useSelect)((e=>{const{getEmbedPreview:t,isPreviewEmbedFallback:o,isRequestingEmbedPreview:n,getThemeSupports:a,hasFinishedResolution:i}=e(mt.store);if(!r)return{fetching:!1,cannotEmbed:!1};const s=t(r),l=o(r),c=!!s&&!(!1===s?.html&&void 0===s?.type)&&!(404===s?.data?.status);return{preview:c?s:void 0,fetching:n(r),themeSupportsResponsive:a()["responsive-embeds"],cannotEmbed:!c||l,hasResolved:i("getEmbedPreview",[r])}}),[r]),j=()=>((e,t,o,n)=>{const{allowResponsive:r,className:a}=e;return{...e,...Ot(t,o,a,n,r)}})(a,v,m,n);(0,bt.useEffect)((()=>{if(v?.html||!w||!C)return;const e=r.replace(/\/$/,"");x(e),_(!1),l({url:e})}),[v?.html,r,w,C,l]),(0,bt.useEffect)((()=>{if(w&&!f&&h&&"x.com"===(0,pt.getAuthority)(h)){const e=new URL(h);e.host="twitter.com",l({url:e.toString()})}}),[h,w,f,l]),(0,bt.useEffect)((()=>{if(v&&!b){const t=j();if(l(t),s){const o=Et(e,t);o&&s(o)}}}),[v,b]);const S=(0,ot.useBlockProps)();if(f)return(0,Je.jsx)(Ke.View,{...S,children:(0,Je.jsx)(pl,{})});const B=(0,tt.sprintf)((0,tt.__)("%s URL"),m);if(!v||w||b)return(0,Je.jsx)(Ke.View,{...S,children:(0,Je.jsx)(ml,{icon:p,label:B,onFocus:u,onSubmit:e=>{e&&e.preventDefault();const t=$t(a.className);_(!1),l({url:h,className:t})},value:h,cannotEmbed:w,onChange:e=>x(e.target.value),fallback:()=>function(e,t){const o=(0,Je.jsx)("a",{href:e,children:e});t((0,Qe.createBlock)("core/paragraph",{content:(0,bt.renderToString)(o)}))}(h,s),tryAgain:()=>{y("getEmbedPreview",[h])}})});const{caption:N,type:T,allowResponsive:I,className:P}=j(),M=dt(P,e.className);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Os,{showEditButton:v&&!w,themeSupportsResponsive:k,blockSupportsResponsive:n,allowResponsive:I,toggleResponsive:()=>{const{allowResponsive:e,className:t}=a,{html:o}=v,r=!e;l({allowResponsive:r,className:Gt(o,t,n&&r)})},switchBackToURLInput:()=>_(!0)}),(0,Je.jsx)(Ke.View,{...S,children:(0,Je.jsx)(bl,{preview:v,previewable:o,className:M,url:h,type:T,caption:N,onCaptionChange:e=>l({caption:e}),isSelected:i,icon:p,label:B,insertBlocksAfter:c})})]})};const{name:yl}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},vl={from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&1===e.textContent?.match(/https/gi)?.length,transform:e=>(0,Qe.createBlock)(yl,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],isMatch:({url:e})=>!!e,transform:({url:e,caption:t})=>{let o=`<a href="${e}">${e}</a>`;return t?.trim()&&(o+=`<br />${t}`),(0,Qe.createBlock)("core/paragraph",{content:o})}}]},fl=vl,kl=[{name:"twitter",title:"Twitter",icon:Qs,keywords:["tweet",(0,tt.__)("social")],description:(0,tt.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:"YouTube",icon:Ks,keywords:[(0,tt.__)("music"),(0,tt.__)("video")],description:(0,tt.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:"Facebook",icon:Js,keywords:[(0,tt.__)("social")],description:(0,tt.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:"Instagram",icon:Ys,keywords:[(0,tt.__)("image"),(0,tt.__)("social")],description:(0,tt.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:"WordPress",icon:Xs,keywords:[(0,tt.__)("post"),(0,tt.__)("blog")],description:(0,tt.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:"SoundCloud",icon:qs,keywords:[(0,tt.__)("music"),(0,tt.__)("audio")],description:(0,tt.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:"Spotify",icon:el,keywords:[(0,tt.__)("music"),(0,tt.__)("audio")],description:(0,tt.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:"Flickr",icon:tl,keywords:[(0,tt.__)("image")],description:(0,tt.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:"Vimeo",icon:ol,keywords:[(0,tt.__)("video")],description:(0,tt.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:"Animoto",icon:il,description:(0,tt.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:"Cloudup",icon:Us,description:(0,tt.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:"CollegeHumor",icon:Zs,description:(0,tt.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:"Crowdsignal",icon:Us,keywords:["polldaddy",(0,tt.__)("survey")],description:(0,tt.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:"Dailymotion",icon:sl,keywords:[(0,tt.__)("video")],description:(0,tt.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:"Imgur",icon:Ws,description:(0,tt.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:"Issuu",icon:Us,description:(0,tt.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:"Kickstarter",icon:Us,description:(0,tt.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:"Mixcloud",icon:qs,keywords:[(0,tt.__)("music"),(0,tt.__)("audio")],description:(0,tt.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:"Pocket Casts",icon:ul,keywords:[(0,tt.__)("podcast"),(0,tt.__)("audio")],description:(0,tt.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:"Reddit",icon:nl,description:(0,tt.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:"ReverbNation",icon:qs,description:(0,tt.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"screencast",title:"Screencast",icon:Zs,description:(0,tt.__)("Embed Screencast content."),patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i],attributes:{providerNameSlug:"screencast",responsive:!0}},{name:"scribd",title:"Scribd",icon:Us,description:(0,tt.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"smugmug",title:"SmugMug",icon:Ws,description:(0,tt.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:"Speaker Deck",icon:Us,description:(0,tt.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:"TikTok",icon:Zs,keywords:[(0,tt.__)("video")],description:(0,tt.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:"TED",icon:Zs,description:(0,tt.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:"Tumblr",icon:rl,keywords:[(0,tt.__)("social")],description:(0,tt.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:"VideoPress",icon:Zs,keywords:[(0,tt.__)("video")],description:(0,tt.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:"WordPress.tv",icon:Zs,description:(0,tt.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:"Amazon Kindle",icon:al,keywords:[(0,tt.__)("ebook")],description:(0,tt.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}},{name:"pinterest",title:"Pinterest",icon:ll,keywords:[(0,tt.__)("social"),(0,tt.__)("bookmark")],description:(0,tt.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:"Wolfram",icon:cl,description:(0,tt.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}},{name:"bluesky",title:"Bluesky",icon:dl,description:(0,tt.__)("Embed a Bluesky post."),patterns:[/^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i],attributes:{providerNameSlug:"bluesky"}}];kl.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.providerNameSlug===t.providerNameSlug)}));const wl=kl,{attributes:Cl}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},jl={attributes:Cl,save({attributes:e}){const{url:t,caption:o,type:n,providerNameSlug:r}=e;if(!t)return null;const a=dt("wp-block-embed",{[`is-type-${n}`]:n,[`is-provider-${r}`]:r,[`wp-block-embed-${r}`]:r});return(0,Je.jsxs)("figure",{...ot.useBlockProps.save({className:a}),children:[(0,Je.jsx)("div",{className:"wp-block-embed__wrapper",children:`\n${t}\n`}),!ot.RichText.isEmpty(o)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",value:o})]})}},Sl={attributes:Cl,save({attributes:{url:e,caption:t,type:o,providerNameSlug:n}}){if(!e)return null;const r=dt("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${n}`]:n});return(0,Je.jsxs)("figure",{className:r,children:[`\n${e}\n`,!ot.RichText.isEmpty(t)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",value:t})]})}},Bl=[jl,Sl],Nl={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},{name:Tl}=Nl,Il={icon:Us,edit:_l,save:function({attributes:e}){const{url:t,caption:o,type:n,providerNameSlug:r}=e;if(!t)return null;const a=dt("wp-block-embed",{[`is-type-${n}`]:n,[`is-provider-${r}`]:r,[`wp-block-embed-${r}`]:r});return(0,Je.jsxs)("figure",{...ot.useBlockProps.save({className:a}),children:[(0,Je.jsx)("div",{className:"wp-block-embed__wrapper",children:`\n${t}\n`}),!ot.RichText.isEmpty(o)&&(0,Je.jsx)(ot.RichText.Content,{className:(0,ot.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]})},transforms:fl,variations:wl,deprecated:Bl},Pl=()=>Xe({name:Tl,metadata:Nl,settings:Il}),Ml=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})}),zl={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},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]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileId:o,fileName:n,textLinkHref:r,textLinkTarget:a,showDownloadButton:i,downloadButtonText:s,displayPreview:l,previewHeight:c}=e,u=ot.RichText.isEmpty(n)?(0,tt.__)("PDF embed"):(0,tt.sprintf)((0,tt.__)("Embed of %s."),n),d=!ot.RichText.isEmpty(n),p=d?o:void 0;return t&&(0,Je.jsxs)("div",{...ot.useBlockProps.save(),children:[l&&(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),d&&(0,Je.jsx)("a",{id:p,href:r,target:a,rel:a?"noreferrer noopener":void 0,children:(0,Je.jsx)(ot.RichText.Content,{value:n})}),i&&(0,Je.jsx)("a",{href:t,className:dt("wp-block-file__button",(0,ot.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":p,children:(0,Je.jsx)(ot.RichText.Content,{value:s})})]})}},Rl={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},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]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileId:o,fileName:n,textLinkHref:r,textLinkTarget:a,showDownloadButton:i,downloadButtonText:s,displayPreview:l,previewHeight:c}=e,u=ot.RichText.isEmpty(n)?(0,tt.__)("PDF embed"):(0,tt.sprintf)((0,tt.__)("Embed of %s."),n),d=!ot.RichText.isEmpty(n),p=d?o:void 0;return t&&(0,Je.jsxs)("div",{...ot.useBlockProps.save(),children:[l&&(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),d&&(0,Je.jsx)("a",{id:p,href:r,target:a,rel:a?"noreferrer noopener":void 0,children:(0,Je.jsx)(ot.RichText.Content,{value:n})}),i&&(0,Je.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":p,children:(0,Je.jsx)(ot.RichText.Content,{value:s})})]})}},Al={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]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileName:o,textLinkHref:n,textLinkTarget:r,showDownloadButton:a,downloadButtonText:i,displayPreview:s,previewHeight:l}=e,c=ot.RichText.isEmpty(o)?(0,tt.__)("PDF embed"):(0,tt.sprintf)((0,tt.__)("Embed of %s."),o);return t&&(0,Je.jsxs)("div",{...ot.useBlockProps.save(),children:[s&&(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${l}px`},"aria-label":c})}),!ot.RichText.isEmpty(o)&&(0,Je.jsx)("a",{href:n,target:r,rel:r?"noreferrer noopener":void 0,children:(0,Je.jsx)(ot.RichText.Content,{value:o})}),a&&(0,Je.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,children:(0,Je.jsx)(ot.RichText.Content,{value:i})})]})}},Ll=[zl,Rl,Al];function Hl({hrefs:e,openInNewWindow:t,showDownloadButton:o,changeLinkDestinationOption:n,changeOpenInNewWindow:r,changeShowDownloadButton:a,displayPreview:i,changeDisplayPreview:s,previewHeight:l,changePreviewHeight:c}){const{href:u,textLinkHref:d,attachmentPage:p}=e;let m=[{value:u,label:(0,tt.__)("URL")}];return p&&(m=[{value:u,label:(0,tt.__)("Media file")},{value:p,label:(0,tt.__)("Attachment page")}]),(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(ot.InspectorControls,{children:[u.endsWith(".pdf")&&(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("PDF settings"),children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show inline embed"),help:i?(0,tt.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!i,onChange:s}),i&&(0,Je.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Height in pixels"),min:Fl,max:Math.max(Vl,l),value:l,onChange:c})]}),(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to"),value:d,options:m,onChange:n}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),checked:t,onChange:r}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show download button"),checked:o,onChange:a})]})]})})}const Dl=e=>{let t;try{t=new window.ActiveXObject(e)}catch(e){t=void 0}return t},Fl=200,Vl=2e3;function El({text:e,disabled:t}){const{createNotice:o}=(0,gt.useDispatch)(Pt.store),n=(0,Ut.useCopyToClipboard)(e,(()=>{o("info",(0,tt.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})}));return(0,Je.jsx)(et.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:n,disabled:t,children:(0,tt.__)("Copy URL")})}const $l=function({attributes:e,isSelected:t,setAttributes:o,clientId:n}){const{id:r,fileName:a,href:i,textLinkHref:s,textLinkTarget:l,showDownloadButton:c,downloadButtonText:u,displayPreview:d,previewHeight:p}=e,{media:m}=(0,gt.useSelect)((e=>({media:void 0===r?void 0:e(mt.store).getMedia(r)})),[r]),{createErrorNotice:g}=(0,gt.useDispatch)(Pt.store),{toggleSelection:h,__unstableMarkNextChangeAsNotPersistent:x}=(0,gt.useDispatch)(ot.store);function b(e){if(!e||!e.url)return;const t=e.url.endsWith(".pdf");o({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id,displayPreview:!!t||void 0,previewHeight:t?600:void 0,fileId:`wp-block-file--media-${n}`})}function _(e){o({href:void 0}),g(e,{type:"snackbar"})}Wt({url:i,onChange:b,onError:_}),(0,bt.useEffect)((()=>{ot.RichText.isEmpty(u)&&(x(),o({downloadButtonText:(0,tt._x)("Download","button label")}))}),[]);const y=m&&m.link,v=(0,ot.useBlockProps)({className:dt((0,It.isBlobURL)(i)&&(0,et.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":(0,It.isBlobURL)(i)})}),f=!(window.navigator.userAgent.indexOf("Mobi")>-1||window.navigator.userAgent.indexOf("Android")>-1||window.navigator.userAgent.indexOf("Macintosh")>-1&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2||(window.ActiveXObject||"ActiveXObject"in window)&&!Dl("AcroPDF.PDF")&&!Dl("PDF.PdfCtrl"))&&d;return i?(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Hl,{hrefs:{href:i,textLinkHref:s,attachmentPage:y},openInNewWindow:!!l,showDownloadButton:c,changeLinkDestinationOption:function(e){o({textLinkHref:e})},changeOpenInNewWindow:function(e){o({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){o({showDownloadButton:e})},displayPreview:d,changeDisplayPreview:function(e){o({displayPreview:e})},previewHeight:p,changePreviewHeight:function(e){const t=Math.max(parseInt(e,10),Fl);o({previewHeight:t})}}),(0,Je.jsxs)(ot.BlockControls,{group:"other",children:[(0,Je.jsx)(ot.MediaReplaceFlow,{mediaId:r,mediaURL:i,accept:"*",onSelect:b,onError:_}),(0,Je.jsx)(El,{text:i,disabled:(0,It.isBlobURL)(i)})]}),(0,Je.jsxs)("div",{...v,children:[f&&(0,Je.jsxs)(et.ResizableBox,{size:{height:p},minHeight:Fl,maxHeight:Vl,minWidth:"100%",grid:[10,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>h(!1),onResizeStop:function(e,t,n,r){h(!0);const a=parseInt(p+r.height,10);o({previewHeight:a})},showHandle:t,children:[(0,Je.jsx)("object",{className:"wp-block-file__preview",data:i,type:"application/pdf","aria-label":(0,tt.__)("Embed of the selected PDF file.")}),!t&&(0,Je.jsx)("div",{className:"wp-block-file__preview-overlay"})]}),(0,Je.jsxs)("div",{className:"wp-block-file__content-wrapper",children:[(0,Je.jsx)(ot.RichText,{identifier:"fileName",tagName:"a",value:a,placeholder:(0,tt.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:e=>o({fileName:vo(e)}),href:s}),c&&(0,Je.jsx)("div",{className:"wp-block-file__button-richtext-wrapper",children:(0,Je.jsx)(ot.RichText,{identifier:"downloadButtonText",tagName:"div","aria-label":(0,tt.__)("Download button text"),className:dt("wp-block-file__button",(0,ot.__experimentalGetElementClassName)("button")),value:u,withoutInteractiveFormatting:!0,placeholder:(0,tt.__)("Add text…"),onChange:e=>o({downloadButtonText:vo(e)})})})]})]})]}):(0,Je.jsx)("div",{...v,children:(0,Je.jsx)(ot.MediaPlaceholder,{icon:(0,Je.jsx)(ot.BlockIcon,{icon:Ml}),labels:{title:(0,tt.__)("File"),instructions:(0,tt.__)("Upload a file or pick one from your media library.")},onSelect:b,onError:_,accept:"*"})})};const Gl={from:[{type:"files",isMatch:e=>e.length>0,priority:15,transform:e=>{const t=[];return e.forEach((e=>{const o=(0,It.createBlobURL)(e);t.push((0,Qe.createBlock)("core/file",{href:o,fileName:e.name,textLinkHref:o}))})),t}},{type:"block",blocks:["core/audio"],transform:e=>(0,Qe.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],transform:e=>(0,Qe.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],transform:e=>(0,Qe.createBlock)("core/file",{href:e.url,fileName:e.caption||(0,pt.getFilename)(e.url),textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=(0,gt.select)(mt.store),o=t(e);return!!o&&o.mime_type.includes("audio")},transform:e=>(0,Qe.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=(0,gt.select)(mt.store),o=t(e);return!!o&&o.mime_type.includes("video")},transform:e=>(0,Qe.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=(0,gt.select)(mt.store),o=t(e);return!!o&&o.mime_type.includes("image")},transform:e=>(0,Qe.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]},Ol=Gl,Ul={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/file",title:"File",category:"media",description:"Add a link to a downloadable file.",keywords:["document","pdf","download"],textdomain:"default",attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"rich-text",source:"rich-text",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:"rich-text",source:"rich-text",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},interactivity:!0},editorStyle:"wp-block-file-editor",style:"wp-block-file"},{name:ql}=Ul,Wl={icon:Ml,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,tt._x)("Armstrong_Small_Step","Name of the file")}},transforms:Ol,deprecated:Ll,edit:$l,save:function({attributes:e}){const{href:t,fileId:o,fileName:n,textLinkHref:r,textLinkTarget:a,showDownloadButton:i,downloadButtonText:s,displayPreview:l,previewHeight:c}=e,u=ot.RichText.isEmpty(n)?"PDF embed":n.toString(),d=!ot.RichText.isEmpty(n),p=d?o:void 0;return t&&(0,Je.jsxs)("div",{...ot.useBlockProps.save(),children:[l&&(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),d&&(0,Je.jsx)("a",{id:p,href:r,target:a,rel:a?"noreferrer noopener":void 0,children:(0,Je.jsx)(ot.RichText.Content,{value:n})}),i&&(0,Je.jsx)("a",{href:t,className:dt("wp-block-file__button",(0,ot.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":p,children:(0,Je.jsx)(ot.RichText.Content,{value:s})})]})}},Zl=()=>Xe({name:ql,metadata:Ul,settings:Wl}),Ql=["core/form-submission-notification",{type:"success"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#345C00" class="has-inline-color">'+(0,tt.__)("Your form has been submitted successfully")+"</mark>"}]]],Kl=["core/form-submission-notification",{type:"error"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#CF2E2E" class="has-inline-color">'+(0,tt.__)("There was an error submitting your form.")+"</mark>"}]]],Jl=[Ql,Kl,["core/form-input",{type:"text",label:(0,tt.__)("Name"),required:!0}],["core/form-input",{type:"email",label:(0,tt.__)("Email"),required:!0}],["core/form-input",{type:"textarea",label:(0,tt.__)("Comment"),required:!0}],["core/form-submit-button",{}]],Yl=({attributes:e,setAttributes:t,clientId:o})=>{const{action:n,method:r,email:a,submissionMethod:i}=e,s=(0,ot.useBlockProps)(),{hasInnerBlocks:l}=(0,gt.useSelect)((e=>{const{getBlock:t}=e(ot.store),n=t(o);return{hasInnerBlocks:!(!n||!n.innerBlocks.length)}}),[o]),c=(0,ot.useInnerBlocksProps)(s,{template:Jl,renderAppender:l?void 0:ot.InnerBlocks.ButtonBlockAppender});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.SelectControl,{label:(0,tt.__)("Submissions method"),options:[{label:(0,tt.__)("Send email"),value:"email"},{label:(0,tt.__)("- Custom -"),value:"custom"}],value:i,onChange:e=>t({submissionMethod:e}),help:"custom"===i?(0,tt.__)('Select the method to use for form submissions. Additional options for the "custom" mode can be found in the "Advanced" section.'):(0,tt.__)("Select the method to use for form submissions.")}),"email"===i&&(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,tt.__)("Email for form submissions"),value:a,required:!0,onChange:e=>{t({email:e}),t({action:`mailto:${e}`}),t({method:"post"})},help:(0,tt.__)("The email address where form submissions will be sent. Separate multiple email addresses with a comma.")})]})}),"email"!==i&&(0,Je.jsxs)(ot.InspectorControls,{group:"advanced",children:[(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Method"),options:[{label:"Get",value:"get"},{label:"Post",value:"post"}],value:r,onChange:e=>t({method:e}),help:(0,tt.__)("Select the method to use for form submissions.")}),(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,tt.__)("Form action"),value:n,onChange:e=>{t({action:e})},help:(0,tt.__)("The URL where the form should be submitted.")})]}),(0,Je.jsx)("form",{...c,className:"wp-block-form",encType:"email"===i?"text/plain":null})]})};const Xl=[{name:"comment-form",title:(0,tt.__)("Experimental Comment form"),description:(0,tt.__)("A comment form for posts and pages."),attributes:{submissionMethod:"custom",action:"{SITE_URL}/wp-comments-post.php",method:"post",anchor:"comment-form"},isDefault:!1,innerBlocks:[["core/form-input",{type:"text",name:"author",label:(0,tt.__)("Name"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"email",name:"email",label:(0,tt.__)("Email"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"textarea",name:"comment",label:(0,tt.__)("Comment"),required:!0,visibilityPermissions:"all"}],["core/form-submit-button",{}]],scope:["inserter","transform"],isActive:e=>!e?.type||"text"===e?.type},{name:"wp-privacy-form",title:(0,tt.__)("Experimental privacy request form"),keywords:["GDPR"],description:(0,tt.__)("A form to request data exports and/or deletion."),attributes:{submissionMethod:"custom",action:"",method:"post",anchor:"gdpr-form"},isDefault:!1,innerBlocks:[Ql,Kl,["core/paragraph",{content:(0,tt.__)("To request an export or deletion of your personal data on this site, please fill-in the form below. You can define the type of request you wish to perform, and your email address. Once the form is submitted, you will receive a confirmation email with instructions on the next steps.")}],["core/form-input",{type:"email",name:"email",label:(0,tt.__)("Enter your email address."),required:!0,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"export_personal_data",label:(0,tt.__)("Request data export"),required:!1,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"remove_personal_data",label:(0,tt.__)("Request data deletion"),required:!1,visibilityPermissions:"all"}],["core/form-submit-button",{}],["core/form-input",{type:"hidden",name:"wp-action",value:"wp_privacy_send_request"}],["core/form-input",{type:"hidden",name:"wp-privacy-request",value:"1"}]],scope:["inserter","transform"],isActive:e=>!e?.type||"text"===e?.type}],ec=Xl,tc={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form",title:"Form",category:"common",allowedBlocks:["core/paragraph","core/heading","core/form-input","core/form-submit-button","core/form-submission-notification","core/group","core/columns"],description:"A form.",keywords:["container","wrapper","row","section"],textdomain:"default",icon:"feedback",attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"}},supports:{anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"form"},viewScript:"file:./view.min.js"},{name:oc}=tc,nc={edit:Yl,save:function({attributes:e}){const t=ot.useBlockProps.save(),{submissionMethod:o}=e;return(0,Je.jsx)("form",{...t,className:"wp-block-form",encType:"email"===o?"text/plain":null,children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})},variations:ec},rc=()=>{const e=["core/form"];return(0,fs.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/preventInsertingFormIntoAnotherForm",((t,o,n,{getBlock:r,getBlockParentsByBlockName:a})=>{if("core/form"!==o.name)return t;for(const t of e){if(r(n)?.name===t||a(n,t).length)return!1}return!0})),Xe({name:oc,metadata:tc,settings:nc})};var ac=o(9681),ic=o.n(ac);const sc=window.wp.dom,lc={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",__experimentalRole:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",__experimentalRole:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{className:!1,anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){const{type:t,name:o,label:n,inlineLabel:r,required:a,placeholder:i,value:s}=e,l=(0,ot.__experimentalGetBorderClassesAndStyles)(e),c=(0,ot.__experimentalGetColorClassesAndStyles)(e),u={...l.style,...c.style},d=dt("wp-block-form-input__input",c.className,l.className),p="textarea"===t?"textarea":"input";return"hidden"===t?(0,Je.jsx)("input",{type:t,name:o,value:s}):(0,Je.jsxs)("label",{className:dt("wp-block-form-input__label",{"is-label-inline":r}),children:[(0,Je.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Je.jsx)(ot.RichText.Content,{value:n})}),(0,Je.jsx)(p,{className:d,type:"textarea"===t?void 0:t,name:o||(m=n,ic()((0,sc.__unstableStripHTML)(m)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,"")),required:a,"aria-required":a,placeholder:i||void 0,style:u})]});var m}},cc=[lc];const uc=function({attributes:e,setAttributes:t,className:o}){const{type:n,name:r,label:a,inlineLabel:i,required:s,placeholder:l,value:c}=e,u=(0,ot.useBlockProps)(),d=(0,bt.useRef)(),p="textarea"===n?"textarea":"input",m=(0,ot.__experimentalUseBorderProps)(e),g=(0,ot.__experimentalUseColorProps)(e);d.current&&d.current.focus();const h=(0,Je.jsxs)(Je.Fragment,{children:["hidden"!==n&&(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:["checkbox"!==n&&(0,Je.jsx)(et.CheckboxControl,{label:(0,tt.__)("Inline label"),checked:i,onChange:e=>{t({inlineLabel:e})}}),(0,Je.jsx)(et.CheckboxControl,{label:(0,tt.__)("Required"),checked:s,onChange:e=>{t({required:e})}})]})}),(0,Je.jsx)(ot.InspectorControls,{group:"advanced",children:(0,Je.jsx)(et.TextControl,{autoComplete:"off",label:(0,tt.__)("Name"),value:r,onChange:e=>{t({name:e})},help:(0,tt.__)('Affects the "name" atribute of the input element, and is used as a name for the form submission results.')})})]});return"hidden"===n?(0,Je.jsxs)(Je.Fragment,{children:[h,(0,Je.jsx)("input",{type:"hidden",className:dt(o,"wp-block-form-input__input",g.className,m.className),"aria-label":(0,tt.__)("Value"),value:c,onChange:e=>t({value:e.target.value})})]}):(0,Je.jsxs)("div",{...u,children:[h,(0,Je.jsxs)("span",{className:dt("wp-block-form-input__label",{"is-label-inline":i||"checkbox"===n}),children:[(0,Je.jsx)(ot.RichText,{tagName:"span",className:"wp-block-form-input__label-content",value:a,onChange:e=>t({label:e}),"aria-label":a?(0,tt.__)("Label"):(0,tt.__)("Empty label"),"data-empty":!a,placeholder:(0,tt.__)("Type the label for this input")}),(0,Je.jsx)(p,{type:"textarea"===n?void 0:n,className:dt(o,"wp-block-form-input__input",g.className,m.className),"aria-label":(0,tt.__)("Optional placeholder text"),placeholder:l?void 0:(0,tt.__)("Optional placeholder…"),value:l,onChange:e=>t({placeholder:e.target.value}),"aria-required":s,style:{...m.style,...g.style}})]})]})};const dc=[{name:"text",title:(0,tt.__)("Text Input"),icon:"edit-page",description:(0,tt.__)("A generic text input."),attributes:{type:"text"},isDefault:!0,scope:["inserter","transform"],isActive:e=>!e?.type||"text"===e?.type},{name:"textarea",title:(0,tt.__)("Textarea Input"),icon:"testimonial",description:(0,tt.__)("A textarea input to allow entering multiple lines of text."),attributes:{type:"textarea"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"textarea"===e?.type},{name:"checkbox",title:(0,tt.__)("Checkbox Input"),description:(0,tt.__)("A simple checkbox input."),icon:"forms",attributes:{type:"checkbox",inlineLabel:!0},isDefault:!0,scope:["inserter","transform"],isActive:e=>"checkbox"===e?.type},{name:"email",title:(0,tt.__)("Email Input"),icon:"email",description:(0,tt.__)("Used for email addresses."),attributes:{type:"email"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"email"===e?.type},{name:"url",title:(0,tt.__)("URL Input"),icon:"admin-site",description:(0,tt.__)("Used for URLs."),attributes:{type:"url"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"url"===e?.type},{name:"tel",title:(0,tt.__)("Telephone Input"),icon:"phone",description:(0,tt.__)("Used for phone numbers."),attributes:{type:"tel"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"tel"===e?.type},{name:"number",title:(0,tt.__)("Number Input"),icon:"edit-page",description:(0,tt.__)("A numeric input."),attributes:{type:"number"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"number"===e?.type}],pc=dc,mc={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-input",title:"Input Field",category:"common",ancestor:["core/form"],description:"The basic building block for forms.",keywords:["input","form"],textdomain:"default",icon:"forms",attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"rich-text",default:"Label",selector:".wp-block-form-input__label-content",source:"rich-text",__experimentalRole:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",__experimentalRole:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},style:["wp-block-form-input"]},{name:gc}=mc,hc={deprecated:cc,edit:uc,save:function({attributes:e}){const{type:t,name:o,label:n,inlineLabel:r,required:a,placeholder:i,value:s}=e,l=(0,ot.__experimentalGetBorderClassesAndStyles)(e),c=(0,ot.__experimentalGetColorClassesAndStyles)(e),u={...l.style,...c.style},d=dt("wp-block-form-input__input",c.className,l.className),p="textarea"===t?"textarea":"input",m=ot.useBlockProps.save();return"hidden"===t?(0,Je.jsx)("input",{type:t,name:o,value:s}):(0,Je.jsx)("div",{...m,children:(0,Je.jsxs)("label",{className:dt("wp-block-form-input__label",{"is-label-inline":r}),children:[(0,Je.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Je.jsx)(ot.RichText.Content,{value:n})}),(0,Je.jsx)(p,{className:d,type:"textarea"===t?void 0:t,name:o||(g=n,ic()((0,sc.__unstableStripHTML)(g)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,"")),required:a,"aria-required":a,placeholder:i||void 0,style:u})]})});var g},variations:pc},xc=()=>Xe({name:gc,metadata:mc,settings:hc}),bc=[["core/buttons",{},[["core/button",{text:(0,tt.__)("Submit"),tagName:"button",type:"submit"}]]]],_c=()=>{const e=(0,ot.useBlockProps)(),t=(0,ot.useInnerBlocksProps)(e,{template:bc,templateLock:"all"});return(0,Je.jsx)("div",{className:"wp-block-form-submit-wrapper",...t})};const yc={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submit-button",title:"Form Submit Button",category:"common",icon:"button",ancestor:["core/form"],allowedBlocks:["core/buttons","core/button"],description:"A submission button for forms.",keywords:["submit","button","form"],textdomain:"default",style:["wp-block-form-submit-button"]},{name:vc}=yc,fc={edit:_c,save:function(){const e=ot.useBlockProps.save();return(0,Je.jsx)("div",{className:"wp-block-form-submit-wrapper",...e,children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})}},kc=()=>Xe({name:vc,metadata:yc,settings:fc}),wc=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.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"})}),Cc=[["core/paragraph",{content:(0,tt.__)("Enter the message you wish displayed for form submission error/success, and select the type of the message (success/error) from the block's options.")}]],jc=({attributes:e,clientId:t})=>{const{type:o}=e,n=(0,ot.useBlockProps)({className:dt("wp-block-form-submission-notification",{[`form-notification-type-${o}`]:o})}),{hasInnerBlocks:r}=(0,gt.useSelect)((e=>{const{getBlock:o}=e(ot.store),n=o(t);return{hasInnerBlocks:!(!n||!n.innerBlocks.length)}}),[t]),a=(0,ot.useInnerBlocksProps)(n,{template:Cc,renderAppender:r?void 0:ot.InnerBlocks.ButtonBlockAppender});return(0,Je.jsx)("div",{...a,"data-message-success":(0,tt.__)("Submission success notification"),"data-message-error":(0,tt.__)("Submission error notification")})};const Sc=[{name:"form-submission-success",title:(0,tt.__)("Form Submission Success"),description:(0,tt.__)("Success message for form submissions."),attributes:{type:"success"},isDefault:!0,innerBlocks:[["core/paragraph",{content:(0,tt.__)("Your form has been submitted successfully."),backgroundColor:"#00D084",textColor:"#000000",style:{elements:{link:{color:{text:"#000000"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||"success"===e?.type},{name:"form-submission-error",title:(0,tt.__)("Form Submission Error"),description:(0,tt.__)("Error/failure message for form submissions."),attributes:{type:"error"},isDefault:!1,innerBlocks:[["core/paragraph",{content:(0,tt.__)("There was an error submitting your form."),backgroundColor:"#CF2E2E",textColor:"#FFFFFF",style:{elements:{link:{color:{text:"#FFFFFF"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||"error"===e?.type}],Bc=Sc,Nc={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submission-notification",title:"Form Submission Notification",category:"common",ancestor:["core/form"],description:"Provide a notification message after the form has been submitted.",keywords:["form","feedback","notification","message"],textdomain:"default",icon:"feedback",attributes:{type:{type:"string",default:"success"}}},{name:Tc}=Nc,Ic={icon:wc,edit:jc,save:function({attributes:e}){const{type:t}=e;return(0,Je.jsx)("div",{...ot.useInnerBlocksProps.save(ot.useBlockProps.save({className:dt("wp-block-form-submission-notification",{[`form-notification-type-${t}`]:t})}))})},variations:Bc},Pc=()=>Xe({name:Tc,metadata:Nc,settings:Ic}),Mc=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z",fillRule:"evenodd",clipRule:"evenodd"})}),zc="none",Rc="media",Ac="attachment",Lc="file",Hc="post";const Dc=(e,t="large")=>{const o=Object.fromEntries(Object.entries(null!=e?e:{}).filter((([e])=>["alt","id","link"].includes(e))));o.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url||e?.source_url;const n=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return n&&(o.fullUrl=n),o};function Fc(){return!bt.Platform.isNative||function(){if(!window.wp||"boolean"!=typeof window.wp.galleryBlockV2Enabled)throw"window.wp.galleryBlockV2Enabled is not defined";return window.wp.galleryBlockV2Enabled}()}const Vc="file",Ec="post";function $c(e){return Math.min(3,e?.images?.length)}function Gc(e,t){switch(t){case Vc:return{href:e?.source_url||e?.url,linkDestination:Rc};case Ec:return{href:e?.link,linkDestination:Ac};case Rc:return{href:e?.source_url||e?.url,linkDestination:Rc};case Ac:return{href:e?.link,linkDestination:Ac};case zc:return{href:void 0,linkDestination:zc}}return{}}function Oc(e){let t=e.linkTo?e.linkTo:"none";"post"===t?t="attachment":"file"===t&&(t="media");const o=e.images.map((o=>function(e,t,o){return(0,Qe.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...Gc(e,o)})}(o,e.sizeSlug,t))),{images:n,ids:r,...a}=e;return[{...a,linkTo:t,allowResize:!1},o]}const Uc={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:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},save({attributes:e}){const{caption:t,columns:o,imageCrop:n}=e,r=dt("has-nested-images",{[`columns-${o}`]:void 0!==o,"columns-default":void 0===o,"is-cropped":n}),a=ot.useBlockProps.save({className:r}),i=ot.useInnerBlocksProps.save(a);return(0,Je.jsxs)("figure",{...i,children:[i.children,!ot.RichText.isEmpty(t)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t})]})}},qc={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},fixedHeight:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0},save({attributes:e}){const{images:t,columns:o=$c(e),imageCrop:n,caption:r,linkTo:a}=e,i=`columns-${o} ${n?"is-cropped":""}`;return(0,Je.jsxs)("figure",{...ot.useBlockProps.save({className:i}),children:[(0,Je.jsx)("ul",{className:"blocks-gallery-grid",children:t.map((e=>{let t;switch(a){case Vc:t=e.fullUrl||e.url;break;case Ec:t=e.link}const o=(0,Je.jsx)("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-${e.id}`:null});return(0,Je.jsx)("li",{className:"blocks-gallery-item",children:(0,Je.jsxs)("figure",{children:[t?(0,Je.jsx)("a",{href:t,children:o}):o,!ot.RichText.isEmpty(e.caption)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})]})},e.id||e.url)}))}),!ot.RichText.isEmpty(r)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r})]})},migrate:e=>Fc()?Oc(e):e},Wc={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},isEligible:({linkTo:e})=>!e||"attachment"===e||"media"===e,migrate(e){if(Fc())return Oc(e);let t=e.linkTo;return e.linkTo?"attachment"===e.linkTo?t="post":"media"===e.linkTo&&(t="file"):t="none",{...e,linkTo:t}},save({attributes:e}){const{images:t,columns:o=$c(e),imageCrop:n,caption:r,linkTo:a}=e;return(0,Je.jsxs)("figure",{className:`columns-${o} ${n?"is-cropped":""}`,children:[(0,Je.jsx)("ul",{className:"blocks-gallery-grid",children:t.map((e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const o=(0,Je.jsx)("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-${e.id}`:null});return(0,Je.jsx)("li",{className:"blocks-gallery-item",children:(0,Je.jsxs)("figure",{children:[t?(0,Je.jsx)("a",{href:t,children:o}):o,!ot.RichText.isEmpty(e.caption)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})]})},e.id||e.url)}))}),!ot.RichText.isEmpty(r)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r})]})}},Zc={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",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible:({ids:e})=>e&&e.some((e=>"string"==typeof e)),migrate(e){var t;return Fc()?Oc(e):{...e,ids:(null!==(t=e.ids)&&void 0!==t?t:[]).map((e=>{const t=parseInt(e,10);return Number.isInteger(t)?t:null}))}},save({attributes:e}){const{images:t,columns:o=$c(e),imageCrop:n,caption:r,linkTo:a}=e;return(0,Je.jsxs)("figure",{className:`columns-${o} ${n?"is-cropped":""}`,children:[(0,Je.jsx)("ul",{className:"blocks-gallery-grid",children:t.map((e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const o=(0,Je.jsx)("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-${e.id}`:null});return(0,Je.jsx)("li",{className:"blocks-gallery-item",children:(0,Je.jsxs)("figure",{children:[t?(0,Je.jsx)("a",{href:t,children:o}):o,!ot.RichText.isEmpty(e.caption)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})]})},e.id||e.url)}))}),!ot.RichText.isEmpty(r)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r})]})}},Qc={attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},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:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){const{images:t,columns:o=$c(e),imageCrop:n,linkTo:r}=e;return(0,Je.jsx)("ul",{className:`columns-${o} ${n?"is-cropped":""}`,children:t.map((e=>{let t;switch(r){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const o=(0,Je.jsx)("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-${e.id}`:null});return(0,Je.jsx)("li",{className:"blocks-gallery-item",children:(0,Je.jsxs)("figure",{children:[t?(0,Je.jsx)("a",{href:t,children:o}):o,e.caption&&e.caption.length>0&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",value:e.caption})]})},e.id||e.url)}))})},migrate:e=>Fc()?Oc(e):e},Kc={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:"string",source:"html",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:({images:e,ids:t})=>e&&e.length>0&&(!t&&e||t&&e&&t.length!==e.length||e.some(((e,o)=>!e&&null!==t[o]||parseInt(e,10)!==t[o]))),migrate(e){var t;return Fc()?Oc(e):{...e,ids:(null!==(t=e.images)&&void 0!==t?t:[]).map((({id:e})=>e?parseInt(e,10):null))}},supports:{align:!0},save({attributes:e}){const{images:t,columns:o=$c(e),imageCrop:n,linkTo:r}=e;return(0,Je.jsx)("ul",{className:`columns-${o} ${n?"is-cropped":""}`,children:t.map((e=>{let t;switch(r){case"media":t=e.url;break;case"attachment":t=e.link}const o=(0,Je.jsx)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,Je.jsx)("li",{className:"blocks-gallery-item",children:(0,Je.jsxs)("figure",{children:[t?(0,Je.jsx)("a",{href:t,children:o}):o,e.caption&&e.caption.length>0&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",value:e.caption})]})},e.id||e.url)}))})}},Jc={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({attributes:e}){const{images:t,columns:o=$c(e),align:n,imageCrop:r,linkTo:a}=e,i=dt(`columns-${o}`,{alignnone:"none"===n,"is-cropped":r});return(0,Je.jsx)("div",{className:i,children:t.map((e=>{let t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}const o=(0,Je.jsx)("img",{src:e.url,alt:e.alt,"data-id":e.id});return(0,Je.jsx)("figure",{className:"blocks-gallery-image",children:t?(0,Je.jsx)("a",{href:t,children:o}):o},e.id||e.url)}))})},migrate:e=>Fc()?Oc(e):e},Yc=[Uc,qc,Wc,Zc,Qc,Kc,Jc],Xc=window.wp.viewport,eu=(0,Je.jsx)(ot.BlockIcon,{icon:Mc}),tu=20,ou="none",nu="media",ru="attachment",au="custom",iu=["noreferrer","noopener"],su=["image"];function lu(e,t,o){switch(o||t){case Lc:case Rc:return{href:e?.source_url||e?.url,linkDestination:nu};case Hc:case Ac:return{href:e?.link,linkDestination:ru};case zc:return{href:void 0,linkDestination:ou}}return{}}function cu(e,{rel:t}){const o=e?"_blank":void 0;let n;return n=o||t?function(e){let t=e;return void 0!==e&&t&&(iu.forEach((e=>{const o=new RegExp("\\b"+e+"\\b","gi");t=t.replace(o,"")})),t!==e&&(t=t.trim()),t||(t=void 0)),t}(t):void 0,{linkTarget:o,rel:n}}function uu(e){const{attributes:t,isSelected:o,setAttributes:n,mediaPlaceholder:r,insertBlocksAfter:a,blockProps:i,__unstableLayoutClassNames:s,isContentLocked:l,multiGallerySelection:c}=e,{align:u,columns:d,imageCrop:p}=t;return(0,Je.jsxs)("figure",{...i,className:dt(i.className,s,"blocks-gallery-grid",{[`align${u}`]:u,[`columns-${d}`]:void 0!==d,"columns-default":void 0===d,"is-cropped":p}),children:[i.children,o&&!i.children&&(0,Je.jsx)(Ke.View,{className:"blocks-gallery-media-placeholder-wrapper",children:r}),(0,Je.jsx)(Kt,{attributes:t,setAttributes:n,isSelected:o,insertBlocksAfter:a,showToolbarButton:!c&&!l,className:"blocks-gallery-caption",label:(0,tt.__)("Gallery caption text"),placeholder:(0,tt.__)("Add gallery caption")})]})}function du(e,t,o){return(0,bt.useMemo)((()=>function(){if(!e||0===e.length)return;const{imageSizes:n}=o();let r={};t&&(r=e.reduce(((e,t)=>{if(!t.id)return e;const o=n.reduce(((e,o)=>{const n=t.sizes?.[o.slug]?.url,r=t.media_details?.sizes?.[o.slug]?.source_url;return{...e,[o.slug]:n||r}}),{});return{...e,[parseInt(t.id,10)]:o}}),{}));const a=Object.values(r);return n.filter((({slug:e})=>a.some((t=>t[e])))).map((({name:e,slug:t})=>({value:t,label:e})))}()),[e,t])}function pu(e,t){const[o,n]=(0,bt.useState)([]);return(0,bt.useMemo)((()=>function(){let r=!1;const a=o.filter((t=>e.find((e=>t.clientId===e.clientId))));a.length<o.length&&(r=!0);e.forEach((e=>{e.fromSavedContent&&!a.find((t=>t.id===e.id))&&(r=!0,a.push(e))}));const i=e.filter((e=>!a.find((t=>e.clientId&&t.clientId===e.clientId))&&t?.find((t=>t.id===e.id))&&!e.fromSavedConent));(r||i?.length>0)&&n([...a,...i]);return i.length>0?i:null}()),[e,t])}const mu=[];const{useStyleOverride:gu}=Ht(ot.privateApis);function hu({blockGap:e,clientId:t}){const o="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )";let n,r=o,a=o;e&&(n="string"==typeof e?(0,ot.__experimentalGetGapCSSValue)(e):(0,ot.__experimentalGetGapCSSValue)(e?.top)||o,a="string"==typeof e?(0,ot.__experimentalGetGapCSSValue)(e):(0,ot.__experimentalGetGapCSSValue)(e?.left)||o,r=n===a?n:`${n} ${a}`);return gu({css:`#block-${t} {\n\t\t--wp--style--unstable-gallery-gap: ${"0"===a?"0px":a};\n\t\tgap: ${r}\n\t}`}),null}const xu=[{value:Ac,label:(0,tt.__)("Attachment Page")},{value:Rc,label:(0,tt.__)("Media File")},{value:zc,label:(0,tt._x)("None","Media item link option")}],bu=["image"],_u=bt.Platform.isNative?(0,tt.__)("Add media"):(0,tt.__)("Drag images, upload new ones or select files from your library."),yu=bt.Platform.isNative?{type:"stepper"}:{},vu={name:"core/image"},fu=[];const ku=(0,Ut.compose)([(0,Xc.withViewportMatch)({isNarrow:"< small"})])((function(e){const{setAttributes:t,attributes:o,className:n,clientId:r,isSelected:a,insertBlocksAfter:i,isContentLocked:s,onFocus:l}=e,{columns:c,imageCrop:u,randomOrder:d,linkTarget:p,linkTo:m,sizeSlug:g}=o,{__unstableMarkNextChangeAsNotPersistent:h,replaceInnerBlocks:x,updateBlockAttributes:b,selectBlock:_}=(0,gt.useDispatch)(ot.store),{createSuccessNotice:y,createErrorNotice:v}=(0,gt.useDispatch)(Pt.store),{getBlock:f,getSettings:k,innerBlockImages:w,blockWasJustInserted:C,multiGallerySelection:j}=(0,gt.useSelect)((e=>{var t;const{getBlockName:o,getMultiSelectedBlockClientIds:n,getSettings:a,getBlock:i,wasBlockJustInserted:s}=e(ot.store),l=n();return{getBlock:i,getSettings:a,innerBlockImages:null!==(t=i(r)?.innerBlocks)&&void 0!==t?t:fu,blockWasJustInserted:s(r,"inserter_menu"),multiGallerySelection:l.length&&l.every((e=>"core/gallery"===o(e)))}}),[r]),S=(0,bt.useMemo)((()=>w?.map((e=>({clientId:e.clientId,id:e.attributes.id,url:e.attributes.url,attributes:e.attributes,fromSavedContent:Boolean(e.originalContent)})))),[w]),B=function(e){return(0,gt.useSelect)((t=>{var o;const n=e.map((e=>e.attributes.id)).filter((e=>void 0!==e));return 0===n.length?mu:null!==(o=t(mt.store).getMediaItems({include:n.join(","),per_page:-1,orderby:"include"}))&&void 0!==o?o:mu}),[e])}(w),N=pu(S,B);(0,bt.useEffect)((()=>{N?.forEach((e=>{h(),b(e.clientId,{...I(e.attributes),id:e.id,align:void 0})}))}),[N]);const T=du(B,a,k);function I(e){const t=e.id?B.find((({id:t})=>t===e.id)):null;let n,r;return e.className&&""!==e.className&&(n=e.className),r=e.linkTarget||e.rel?{linkTarget:e.linkTarget,rel:e.rel}:cu(p,o),{...Dc(t,g),...lu(t,m,e?.linkDestination),...r,className:n,sizeSlug:g,caption:e.caption||t.caption?.raw,alt:e.alt||t.alt_text}}function P(e){const t=bt.Platform.isNative&&e.id?B.find((({id:t})=>t===e.id)):null,o=t?t?.media_type:e.type;return bu.some((e=>0===o?.indexOf(e)))||0===e.url?.indexOf("blob:")}function M(e){const t="[object FileList]"===Object.prototype.toString.call(e),o=t?Array.from(e).map((e=>e.url?e:Dc({url:(0,It.createBlobURL)(e)}))):e;o.every(P)||v((0,tt.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});const n=o.filter((e=>e.url||P(e))).map((e=>e.url?e:Dc({url:(0,It.createBlobURL)(e)}))),a=n.reduce(((e,t,o)=>(e[t.id]=o,e)),{}),i=t?w:w.filter((e=>n.find((t=>t.id===e.attributes.id)))),s=n.filter((e=>!i.find((t=>e.id===t.attributes.id)))).map((e=>(0,Qe.createBlock)("core/image",{id:e.id,url:e.url,caption:e.caption,alt:e.alt})));x(r,i.concat(s).sort(((e,t)=>a[e.attributes.id]-a[t.attributes.id]))),s?.length>0&&_(s[0].clientId)}(0,bt.useEffect)((()=>{m||(h(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||zc}))}),[m]);const z=!!S.length,R=z&&S.some((e=>!!e.id)),A=S.some((e=>bt.Platform.isNative?0===e.url?.indexOf("file:"):!e.id&&0===e.url?.indexOf("blob:"))),L=bt.Platform.select({web:{addToGallery:!1,disableMediaButtons:A,value:{}},native:{addToGallery:R,isAppender:z,disableMediaButtons:z&&!a||A,value:R?S:{},autoOpenMediaUpload:!z&&a&&C,onFocus:l}}),H=(0,Je.jsx)(ot.MediaPlaceholder,{handleUpload:!1,icon:eu,labels:{title:(0,tt.__)("Gallery"),instructions:_u},onSelect:M,accept:"image/*",allowedTypes:bu,multiple:!0,onError:function(e){v(e,{type:"snackbar"})},...L}),D=(0,ot.useBlockProps)({className:dt(n,"has-nested-images")}),F=bt.Platform.isNative&&{marginHorizontal:0,marginVertical:0},V=(0,ot.useInnerBlocksProps)(D,{defaultBlock:vu,directInsert:!0,orientation:"horizontal",renderAppender:!1,...F});if(!z)return(0,Je.jsxs)(Ke.View,{...V,children:[V.children,H]});const E=m&&"none"!==m;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[S.length>1&&(0,Je.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Columns"),value:c||($=S.length,$?Math.min(3,$):3),onChange:function(e){t({columns:e})},min:1,max:Math.min(8,S.length),...yu,required:!0,__next40pxDefaultSize:!0}),T?.length>0&&(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Resolution"),help:(0,tt.__)("Select the size of the source images."),value:g,options:T,onChange:function(e){t({sizeSlug:e});const o={},n=[];f(r).innerBlocks.forEach((t=>{n.push(t.clientId);const r=t.attributes.id?B.find((({id:e})=>e===t.attributes.id)):null;o[t.clientId]=function(e,t){const o=e?.media_details?.sizes?.[t]?.source_url;return o?{url:o,width:void 0,height:void 0,sizeSlug:t}:{}}(r,e)})),b(n,o,!0);const a=T.find((t=>t.value===e));y((0,tt.sprintf)((0,tt.__)("All gallery image sizes updated to: %s"),a.label),{id:"gallery-attributes-sizeSlug",type:"snackbar"})},hideCancelButton:!0,size:"__unstable-large"}),(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to"),value:m,onChange:function(e){t({linkTo:e});const o={},n=[];f(r).innerBlocks.forEach((t=>{n.push(t.clientId);const r=t.attributes.id?B.find((({id:e})=>e===t.attributes.id)):null;o[t.clientId]=lu(r,e)})),b(n,o,!0);const a=[...xu].find((t=>t.value===e));y((0,tt.sprintf)((0,tt.__)("All gallery image links updated to: %s"),a.label),{id:"gallery-attributes-linkTo",type:"snackbar"})},options:xu,hideCancelButton:!0,size:"__unstable-large"}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Crop images to fit"),checked:!!u,onChange:function(){t({imageCrop:!u})}}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Randomize order"),checked:!!d,onChange:function(){t({randomOrder:!d})}}),E&&(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open images in new tab"),checked:"_blank"===p,onChange:function(e){const o=e?"_blank":void 0;t({linkTarget:o});const n={},a=[];f(r).innerBlocks.forEach((e=>{a.push(e.clientId),n[e.clientId]=cu(o,e.attributes)})),b(a,n,!0);const i=e?(0,tt.__)("All gallery images updated to open in new tab"):(0,tt.__)("All gallery images updated to not open in new tab");y(i,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}}),bt.Platform.isWeb&&!T&&R&&(0,Je.jsxs)(et.BaseControl,{className:"gallery-image-sizes",children:[(0,Je.jsx)(et.BaseControl.VisualLabel,{children:(0,tt.__)("Resolution")}),(0,Je.jsxs)(Ke.View,{className:"gallery-image-sizes__loading",children:[(0,Je.jsx)(et.Spinner,{}),(0,tt.__)("Loading options…")]})]})]})}),bt.Platform.isWeb&&(0,Je.jsxs)(Je.Fragment,{children:[!j&&(0,Je.jsx)(ot.BlockControls,{group:"other",children:(0,Je.jsx)(ot.MediaReplaceFlow,{allowedTypes:bu,accept:"image/*",handleUpload:!1,onSelect:M,name:(0,tt.__)("Add"),multiple:!0,mediaIds:S.filter((e=>e.id)).map((e=>e.id)),addToGallery:R})}),(0,Je.jsx)(hu,{blockGap:o.style?.spacing?.blockGap,clientId:r})]}),(0,Je.jsx)(uu,{...e,isContentLocked:s,images:S,mediaPlaceholder:!z||bt.Platform.isNative?H:void 0,blockProps:V,insertBlocksAfter:i,multiGallerySelection:j})]});var $})),wu=(e,t="large")=>{const o=Object.fromEntries(Object.entries(null!=e?e:{}).filter((([e])=>["alt","id","link","caption"].includes(e))));o.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url;const n=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return n&&(o.fullUrl=n),o},Cu=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.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.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"})}),ju=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})}),Su=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})}),Bu=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})}),Nu="none",Tu="file",Iu="post";class Pu extends bt.Component{constructor(){super(...arguments),this.onSelectImage=this.onSelectImage.bind(this),this.onRemoveImage=this.onRemoveImage.bind(this),this.bindContainer=this.bindContainer.bind(this),this.onEdit=this.onEdit.bind(this),this.onSelectImageFromLibrary=this.onSelectImageFromLibrary.bind(this),this.onSelectCustomURL=this.onSelectCustomURL.bind(this),this.state={isEditing:!1}}bindContainer(e){this.container=e}onSelectImage(){this.props.isSelected||this.props.onSelect()}onRemoveImage(e){this.container===this.container.ownerDocument.activeElement&&this.props.isSelected&&-1!==[fo.BACKSPACE,fo.DELETE].indexOf(e.keyCode)&&(e.preventDefault(),this.props.onRemove())}onEdit(){this.setState({isEditing:!0})}componentDidUpdate(){const{image:e,url:t,__unstableMarkNextChangeAsNotPersistent:o}=this.props;e&&!t&&(o(),this.props.setAttributes({url:e.source_url,alt:e.alt_text}))}deselectOnBlur(){this.props.onDeselect()}onSelectImageFromLibrary(e){const{setAttributes:t,id:o,url:n,alt:r,caption:a,sizeSlug:i}=this.props;if(!e||!e.url)return;let s=wu(e,i);if(((e,t)=>!e&&(0,It.isBlobURL)(t))(o,n)&&r){const{alt:e,...t}=s;s=t}if(a&&!s.caption){const{caption:e,...t}=s;s=t}t(s),this.setState({isEditing:!1})}onSelectCustomURL(e){const{setAttributes:t,url:o}=this.props;e!==o&&(t({url:e,id:void 0}),this.setState({isEditing:!1}))}render(){const{url:e,alt:t,id:o,linkTo:n,link:r,isFirstItem:a,isLastItem:i,isSelected:s,caption:l,onRemove:c,onMoveForward:u,onMoveBackward:d,setAttributes:p,"aria-label":m}=this.props,{isEditing:g}=this.state;let h;switch(n){case Tu:h=e;break;case Iu:h=r}const x=(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("img",{src:e,alt:t,"data-id":o,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":m,ref:this.bindContainer}),(0,It.isBlobURL)(e)&&(0,Je.jsx)(et.Spinner,{})]}),b=dt({"is-selected":s,"is-transient":(0,It.isBlobURL)(e)});return(0,Je.jsxs)("figure",{className:b,onClick:this.onSelectImage,onFocus:this.onSelectImage,children:[!g&&(h?(0,Je.jsx)("a",{href:h,children:x}):x),g&&(0,Je.jsx)(ot.MediaPlaceholder,{labels:{title:(0,tt.__)("Edit gallery image")},icon:Cu,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:o,src:e}}),(0,Je.jsxs)(et.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left",children:[(0,Je.jsx)(et.Button,{icon:ju,onClick:a?void 0:d,label:(0,tt.__)("Move image backward"),"aria-disabled":a,disabled:!s}),(0,Je.jsx)(et.Button,{icon:Su,onClick:i?void 0:u,label:(0,tt.__)("Move image forward"),"aria-disabled":i,disabled:!s})]}),(0,Je.jsxs)(et.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right",children:[(0,Je.jsx)(et.Button,{icon:$s,onClick:this.onEdit,label:(0,tt.__)("Replace image"),disabled:!s}),(0,Je.jsx)(et.Button,{icon:Bu,onClick:c,label:(0,tt.__)("Remove image"),disabled:!s})]}),!g&&(s||l)&&(0,Je.jsx)(ot.RichText,{tagName:"figcaption",className:(0,ot.__experimentalGetElementClassName)("caption"),"aria-label":(0,tt.__)("Image caption text"),placeholder:s?(0,tt.__)("Add caption"):null,value:l,onChange:e=>p({caption:e}),inlineToolbar:!0})]})}}const Mu=(0,Ut.compose)([(0,gt.withSelect)(((e,t)=>{const{getMedia:o}=e(mt.store),{id:n}=t;return{image:n?o(parseInt(n,10)):null}})),(0,gt.withDispatch)((e=>{const{__unstableMarkNextChangeAsNotPersistent:t}=e(ot.store);return{__unstableMarkNextChangeAsNotPersistent:t}}))])(Pu);function zu({isHidden:e,...t}){return e?(0,Je.jsx)(et.VisuallyHidden,{as:ot.RichText,...t}):(0,Je.jsx)(ot.RichText,{...t})}const Ru=e=>{const{attributes:t,isSelected:o,setAttributes:n,selectedImage:r,mediaPlaceholder:a,onMoveBackward:i,onMoveForward:s,onRemoveImage:l,onSelectImage:c,onDeselectImage:u,onSetImageAttributes:d,insertBlocksAfter:p,blockProps:m}=e,{align:g,columns:h=$c(t),caption:x,imageCrop:b,images:_}=t;return(0,Je.jsxs)("figure",{...m,className:dt(m.className,{[`align${g}`]:g,[`columns-${h}`]:h,"is-cropped":b}),children:[(0,Je.jsx)("ul",{className:"blocks-gallery-grid",children:_.map(((e,n)=>{const a=(0,tt.sprintf)((0,tt.__)("image %1$d of %2$d in gallery"),n+1,_.length);return(0,Je.jsx)("li",{className:"blocks-gallery-item",children:(0,Je.jsx)(Mu,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===n,isLastItem:n+1===_.length,isSelected:o&&r===n,onMoveBackward:i(n),onMoveForward:s(n),onRemove:l(n),onSelect:c(n),onDeselect:u(n),setAttributes:e=>d(n,e),caption:e.caption,"aria-label":a,sizeSlug:t.sizeSlug})},e.id?`${e.id}-${n}`:e.url)}))}),a,(0,Je.jsx)(zu,{isHidden:!o&&ot.RichText.isEmpty(x),tagName:"figcaption",className:dt("blocks-gallery-caption",(0,ot.__experimentalGetElementClassName)("caption")),"aria-label":(0,tt.__)("Gallery caption text"),placeholder:(0,tt.__)("Write gallery caption…"),value:x,onChange:e=>n({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>p((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))})]})},Au=[{value:Iu,label:(0,tt.__)("Attachment Page")},{value:Tu,label:(0,tt.__)("Media File")},{value:Nu,label:(0,tt.__)("None")}],Lu=["image"],Hu=bt.Platform.select({web:(0,tt.__)("Drag images, upload new ones or select files from your library."),native:(0,tt.__)("ADD MEDIA")}),Du=bt.Platform.select({web:{},native:{type:"stepper"}});const Fu=(0,Ut.compose)([et.withNotices,(0,Xc.withViewportMatch)({isNarrow:"< small"})])((function(e){const{attributes:t,clientId:o,isSelected:n,noticeUI:r,noticeOperations:a,onFocus:i}=e,{columns:s=$c(t),imageCrop:l,images:c,linkTo:u,sizeSlug:d}=t,[p,m]=(0,bt.useState)(),[g,h]=(0,bt.useState)(),{__unstableMarkNextChangeAsNotPersistent:x}=(0,gt.useDispatch)(ot.store),{imageSizes:b,mediaUpload:_,getMedia:y,wasBlockJustInserted:v}=(0,gt.useSelect)((e=>{const t=e(ot.store).getSettings();return{imageSizes:t.imageSizes,mediaUpload:t.mediaUpload,getMedia:e(mt.store).getMedia,wasBlockJustInserted:e(ot.store).wasBlockJustInserted(o,"inserter_menu")}})),f=(0,bt.useMemo)((()=>{var e;return n?(null!==(e=t.ids)&&void 0!==e?e:[]).reduce(((e,t)=>{if(!t)return e;const o=y(t),n=b.reduce(((e,t)=>{const n=o?.sizes?.[t.slug]?.url,r=o?.media_details?.sizes?.[t.slug]?.source_url;return{...e,[t.slug]:n||r}}),{});return{...e,[parseInt(t,10)]:n}}),{}):{}}),[n,t.ids,b]);function k(t){if(t.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');t.images&&(t={...t,ids:t.images.map((({id:e})=>parseInt(e,10)))}),e.setAttributes(t)}function w(e,t){const o=[...c];o.splice(t,1,c[e]),o.splice(e,1,c[t]),m(t),k({images:o})}function C(e){const t=e.id.toString(),o=c.find((({id:e})=>e===t)),n=o?o.caption:e.caption;if(!g)return n;const r=g.find((({id:e})=>e===t));return r&&r.caption!==e.caption?e.caption:n}function j(e){h(e.map((e=>({id:e.id.toString(),caption:e.caption})))),k({images:e.map((e=>({...wu(e,d),caption:C(e),id:e.id.toString()}))),columns:t.columns?Math.min(e.length,t.columns):t.columns})}(0,bt.useEffect)((()=>{if("web"===bt.Platform.OS&&c&&c.length>0&&c.every((({url:e})=>(0,It.isBlobURL)(e)))){const e=c.map((({url:e})=>(0,It.getBlobByURL)(e)));c.forEach((({url:e})=>(0,It.revokeBlobURL)(e))),_({filesList:e,onFileChange:j,allowedTypes:["image"]})}}),[]),(0,bt.useEffect)((()=>{n||m()}),[n]),(0,bt.useEffect)((()=>{u||(x(),k({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||Nu}))}),[u]);const S=!!c.length,B=S&&c.some((e=>!!e.id)),N=(0,Je.jsx)(ot.MediaPlaceholder,{addToGallery:B,isAppender:S,disableMediaButtons:S&&!n,icon:!S&&eu,labels:{title:!S&&(0,tt.__)("Gallery"),instructions:!S&&Hu},onSelect:j,accept:"image/*",allowedTypes:Lu,multiple:!0,value:B?c:{},onError:function(e){a.removeAllNotices(),a.createErrorNotice(e)},notices:S?void 0:r,onFocus:i,autoOpenMediaUpload:!S&&n&&v}),T=(0,ot.useBlockProps)();if(!S)return(0,Je.jsx)(Ke.View,{...T,children:N});const I=function(){const e=Object.values(f);return b.filter((({slug:t})=>e.some((e=>e[t])))).map((({name:e,slug:t})=>({value:t,label:e})))}(),P=S&&I.length>0;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[c.length>1&&(0,Je.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Columns"),value:s,onChange:function(e){k({columns:e})},min:1,max:Math.min(8,c.length),...Du,required:!0}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Crop images"),checked:!!l,onChange:function(){k({imageCrop:!l})},help:function(e){return e?(0,tt.__)("Thumbnails are cropped to align."):(0,tt.__)("Thumbnails are not cropped.")}}),(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to"),value:u,onChange:function(e){k({linkTo:e})},options:Au,hideCancelButton:!0}),P&&(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Image size"),value:d,options:I,onChange:function(e){k({images:(null!=c?c:[]).map((t=>{if(!t.id)return t;const o=f[parseInt(t.id,10)]?.[e];return{...t,...o&&{url:o}}})),sizeSlug:e})},hideCancelButton:!0})]})}),r,(0,Je.jsx)(Ru,{...e,selectedImage:p,mediaPlaceholder:N,onMoveBackward:function(e){return()=>{0!==e&&w(e,e-1)}},onMoveForward:function(e){return()=>{e!==c.length-1&&w(e,e+1)}},onRemoveImage:function(e){return()=>{const o=c.filter(((t,o)=>e!==o));m(),k({images:o,columns:t.columns?Math.min(o.length,t.columns):t.columns})}},onSelectImage:function(e){return()=>{m(e)}},onDeselectImage:function(){return()=>{m()}},onSetImageAttributes:function(e,t){c[e]&&k({images:[...c.slice(0,e),{...c[e],...t},...c.slice(e+1)]})},blockProps:T,onFocusGalleryCaption:function(){m()}})]})}));const Vu=(0,Ut.compose)([et.withNotices])((function(e){return Fc()?(0,Je.jsx)(ku,{...e}):(0,Je.jsx)(Fu,{...e})}));(0,fs.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",(function(e){if(Fc()&&"core/gallery"===e.name&&e.attributes?.images.length>0){const t=e.attributes.images.map((({url:t,id:o,alt:n})=>(0,Qe.createBlock)("core/image",{url:t,id:o?parseInt(o,10):null,alt:n,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination})));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e})),(0,fs.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",(function(e,t){const o=(Array.isArray(t)?t:[t]).find((t=>"core/gallery"===t.name&&t.innerBlocks.length>0&&!t.attributes.images?.length>0&&!e.name.includes("core/")));if(o){const e=o.innerBlocks.map((({attributes:{url:e,id:t,alt:o}})=>({url:e,id:t?parseInt(t,10):null,alt:o}))),t=e.map((({id:e})=>e));o.attributes.images=e,o.attributes.ids=t}return e}));const Eu={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:o}=e[0];t=e.every((e=>e.align===t))?t:void 0,o=e.every((e=>e.sizeSlug===o))?o:void 0;const n=e.filter((({url:e})=>e));if(Fc()){const e=n.map((e=>(e.width=void 0,e.height=void 0,(0,Qe.createBlock)("core/image",e))));return(0,Qe.createBlock)("core/gallery",{align:t,sizeSlug:o},e)}return(0,Qe.createBlock)("core/gallery",{images:n.map((({id:e,url:t,alt:o,caption:n})=>({id:e.toString(),url:t,alt:o,caption:n}))),ids:n.map((({id:e})=>parseInt(e,10))),align:t,sizeSlug:o})}},{type:"shortcode",tag:"gallery",transform({named:{ids:e,columns:t=3,link:o,orderby:n}}){const r=(e=>e?e.split(",").map((e=>parseInt(e,10))):[])(e).map((e=>parseInt(e,10)));let a=zc;"post"===o?a=Ac:"file"===o&&(a=Rc);return(0,Qe.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:a,randomOrder:"rand"===n},r.map((e=>(0,Qe.createBlock)("core/image",{id:e}))))},isMatch:({named:e})=>void 0!==e.ids},{type:"files",priority:1,isMatch:e=>1!==e.length&&e.every((e=>0===e.type.indexOf("image/"))),transform(e){if(Fc()){const t=e.map((e=>(0,Qe.createBlock)("core/image",{url:(0,It.createBlobURL)(e)})));return(0,Qe.createBlock)("core/gallery",{},t)}const t=(0,Qe.createBlock)("core/gallery",{images:e.map((e=>Dc({url:(0,It.createBlobURL)(e)})))});return t}}],to:[{type:"block",blocks:["core/image"],transform:({align:e,images:t,ids:o,sizeSlug:n},r)=>Fc()?r.length>0?r.map((({attributes:{url:t,alt:o,caption:n,title:r,href:a,rel:i,linkClass:s,id:l,sizeSlug:c,linkDestination:u,linkTarget:d,anchor:p,className:m}})=>(0,Qe.createBlock)("core/image",{align:e,url:t,alt:o,caption:n,title:r,href:a,rel:i,linkClass:s,id:l,sizeSlug:c,linkDestination:u,linkTarget:d,anchor:p,className:m}))):(0,Qe.createBlock)("core/image",{align:e}):t.length>0?t.map((({url:t,alt:r,caption:a},i)=>(0,Qe.createBlock)("core/image",{id:o[i],url:t,alt:r,caption:a,align:e,sizeSlug:n}))):(0,Qe.createBlock)("core/image",{align:e})}]},$u=Eu,Gu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/gallery",title:"Gallery",category:"media",allowedBlocks:["core/image"],description:"Display multiple images in a rich gallery.",keywords:["images","photos"],textdomain:"default",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:"rich-text",source:"rich-text",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",items:{type:"object"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"rich-text",source:"rich-text",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},randomOrder:{type:"boolean",default:!1},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},providesContext:{allowResize:"allowResize",imageCrop:"imageCrop",fixedHeight:"fixedHeight"},supports:{anchor:!0,align:!0,html:!1,units:["px","em","rem","vh","vw"],spacing:{margin:!0,padding:!0,blockGap:["horizontal","vertical"],__experimentalSkipSerialization:["blockGap"],__experimentalDefaultControls:{blockGap:!0,margin:!1,padding:!1}},color:{text:!1,background:!0,gradients:!0},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"},{name:Ou}=Gu,Uu={icon:Mc,example:{attributes:{columns:2},innerBlocks:[{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}}]},transforms:$u,edit:Vu,save:function({attributes:e}){if(!Fc())return function({attributes:e}){const{images:t,columns:o=$c(e),imageCrop:n,caption:r,linkTo:a}=e,i=`columns-${o} ${n?"is-cropped":""}`;return(0,Je.jsxs)("figure",{...ot.useBlockProps.save({className:i}),children:[(0,Je.jsx)("ul",{className:"blocks-gallery-grid",children:t.map((e=>{let t;switch(a){case Tu:t=e.fullUrl||e.url;break;case Iu:t=e.link}const o=(0,Je.jsx)("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-${e.id}`:null});return(0,Je.jsx)("li",{className:"blocks-gallery-item",children:(0,Je.jsxs)("figure",{children:[t?(0,Je.jsx)("a",{href:t,children:o}):o,!ot.RichText.isEmpty(e.caption)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",className:dt("blocks-gallery-item__caption",(0,ot.__experimentalGetElementClassName)("caption")),value:e.caption})]})},e.id||e.url)}))}),!ot.RichText.isEmpty(r)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",className:dt("blocks-gallery-caption",(0,ot.__experimentalGetElementClassName)("caption")),value:r})]})}({attributes:e});const{caption:t,columns:o,imageCrop:n}=e,r=dt("has-nested-images",{[`columns-${o}`]:void 0!==o,"columns-default":void 0===o,"is-cropped":n}),a=ot.useBlockProps.save({className:r}),i=ot.useInnerBlocksProps.save(a);return(0,Je.jsxs)("figure",{...i,children:[i.children,!ot.RichText.isEmpty(t)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",className:dt("blocks-gallery-caption",(0,ot.__experimentalGetElementClassName)("caption")),value:t})]})},deprecated:Yc},qu=()=>Xe({name:Ou,metadata:Gu,settings:Uu}),Wu=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:o,customBackgroundColor:n,...r}=e;return{...r,style:t}},Zu=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{__experimentalOnEnter:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0},save:({attributes:{tagName:e}})=>(0,Je.jsx)(e,{...ot.useInnerBlocksProps.save(ot.useBlockProps.save())}),isEligible:({layout:e})=>!e||e.inherit||e.contentSize&&"constrained"!==e.type,migrate:e=>{const{layout:t=null}=e;return t?t.inherit||t.contentSize?{...e,layout:{...t,type:"constrained"}}:void 0:e}},{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save({attributes:e}){const{tagName:t}=e;return(0,Je.jsx)(t,{...ot.useBlockProps.save(),children:(0,Je.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Wu,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,textColor:n,customTextColor:r}=e,a=(0,ot.getColorClassName)("background-color",t),i=(0,ot.getColorClassName)("color",n),s=dt(a,i,{"has-text-color":n||r,"has-background":t||o}),l={backgroundColor:a?void 0:o,color:i?void 0:r};return(0,Je.jsx)("div",{className:s,style:l,children:(0,Je.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:Wu,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,textColor:n,customTextColor:r}=e,a=(0,ot.getColorClassName)("background-color",t),i=(0,ot.getColorClassName)("color",n),s=dt(a,{"has-text-color":n||r,"has-background":t||o}),l={backgroundColor:a?void 0:o,color:i?void 0:r};return(0,Je.jsx)("div",{className:s,style:l,children:(0,Je.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Wu,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o}=e,n=(0,ot.getColorClassName)("background-color",t),r=dt(n,{"has-background":t||o}),a={backgroundColor:n?void 0:o};return(0,Je.jsx)("div",{className:r,style:a,children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})}}],Qu=Zu,Ku=(e="group")=>{const t={group:(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Je.jsx)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),"group-row":(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Je.jsx)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),"group-stack":(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Je.jsx)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm0 17a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Z"})}),"group-grid":(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Je.jsx)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10ZM0 27a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V27Z"})})};return t?.[e]};const Ju=function({name:e,onSelect:t}){const o=(0,gt.useSelect)((t=>t(Qe.store).getBlockVariations(e,"block")),[e]),n=(0,ot.useBlockProps)({className:"wp-block-group__placeholder"});return(0,Je.jsx)("div",{...n,children:(0,Je.jsx)(et.Placeholder,{instructions:(0,tt.__)("Group blocks together. Select a layout:"),children:(0,Je.jsx)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,tt.__)("Block variations"),children:o.map((e=>(0,Je.jsx)("li",{children:(0,Je.jsx)(et.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:Ku(e.name),iconSize:48,onClick:()=>t(e),className:"wp-block-group-placeholder__variation-button",label:`${e.title}: ${e.description}`})},e.name)))})})})};function Yu({tagName:e,onSelectTagName:t}){const o={header:(0,tt.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,tt.__)("The <main> element should be used for the primary content of your document only. "),section:(0,tt.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,tt.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,tt.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,tt.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};return(0,Je.jsx)(ot.InspectorControls,{group:"advanced",children:(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("HTML element"),options:[{label:(0,tt.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:e,onChange:t,help:o[e]})})}const Xu=function({attributes:e,name:t,setAttributes:o,clientId:n}){const{hasInnerBlocks:r,themeSupportsLayout:a}=(0,gt.useSelect)((e=>{const{getBlock:t,getSettings:o}=e(ot.store),r=t(n);return{hasInnerBlocks:!(!r||!r.innerBlocks.length),themeSupportsLayout:o()?.supportsLayout}}),[n]),{tagName:i="div",templateLock:s,allowedBlocks:l,layout:c={}}=e,{type:u="default"}=c,d=a||"flex"===u||"grid"===u,p=(0,bt.useRef)(),m=(0,ot.useBlockProps)({ref:p}),[g,h]=function({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:o=!1}){const{style:n,backgroundColor:r,textColor:a,fontSize:i}=e,[s,l]=(0,bt.useState)(!(o||r||i||a||n||"flex"===t||"grid"===t));return(0,bt.useEffect)((()=>{(o||r||i||a||n||"flex"===t)&&l(!1)}),[r,i,a,n,t,o]),[s,l]}({attributes:e,usedLayoutType:u,hasInnerBlocks:r});let x;g?x=!1:r||(x=ot.InnerBlocks.ButtonBlockAppender);const b=(0,ot.useInnerBlocksProps)(d?m:{className:"wp-block-group__inner-container"},{dropZoneElement:p.current,templateLock:s,allowedBlocks:l,renderAppender:x}),{selectBlock:_}=(0,gt.useDispatch)(ot.store);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Yu,{tagName:i,onSelectTagName:e=>o({tagName:e})}),g&&(0,Je.jsxs)(Ke.View,{children:[b.children,(0,Je.jsx)(Ju,{name:t,onSelect:e=>{o(e.attributes),_(n,-1),h(!1)}})]}),d&&!g&&(0,Je.jsx)(i,{...b}),!d&&!g&&(0,Je.jsx)(i,{...m,children:(0,Je.jsx)("div",{...b})})]})};const ed={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){const t=["wide","full"],o=e.reduce(((e,o)=>{const{align:n}=o.attributes;return t.indexOf(n)>t.indexOf(e)?n:e}),void 0),n=e.map((e=>(0,Qe.createBlock)(e.name,e.attributes,e.innerBlocks)));return(0,Qe.createBlock)("core/group",{align:o,layout:{type:"constrained"}},n)}}]},td=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})}),od=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})}),nd=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})}),rd=[{name:"group",title:(0,tt.__)("Group"),description:(0,tt.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],isActive:e=>!e.layout||!e.layout?.type||"default"===e.layout?.type||"constrained"===e.layout?.type,icon:wc},{name:"group-row",title:(0,tt._x)("Row","single horizontal line"),description:(0,tt.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:e=>"flex"===e.layout?.type&&(!e.layout?.orientation||"horizontal"===e.layout?.orientation),icon:td},{name:"group-stack",title:(0,tt.__)("Stack"),description:(0,tt.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:e=>"flex"===e.layout?.type&&"vertical"===e.layout?.orientation,icon:od},{name:"group-grid",title:(0,tt.__)("Grid"),description:(0,tt.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:e=>"grid"===e.layout?.type,icon:nd}],ad=rd,id={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/group",title:"Group",category:"design",description:"Gather blocks in a layout container.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},allowedBlocks:{type:"array"}},supports:{__experimentalOnEnter:!0,__experimentalOnMerge:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},dimensions:{minHeight:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},position:{sticky:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSizingOnChildren:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-group-editor",style:"wp-block-group"},{name:sd}=id,ld={icon:wc,example:{innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:(0,tt.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:(0,tt.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:(0,tt.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:(0,tt.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:(0,tt.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:(0,tt.__)("Six.")}}]},transforms:ed,edit:Xu,save:function({attributes:{tagName:e}}){return(0,Je.jsx)(e,{...ot.useInnerBlocksProps.save(ot.useBlockProps.save())})},deprecated:Qu,variations:ad},cd=()=>Xe({name:sd,metadata:id,settings:ld}),ud=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})}),dd={className:!1,anchor:!0},pd={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},md=e=>{if(!e.customTextColor)return e;const t={color:{text:e.customTextColor}},{customTextColor:o,...n}=e;return{...n,style:t}},gd=["left","right","center"],hd=e=>{const{align:t,...o}=e;return gd.includes(t)?{...o,textAlign:t}:e},xd={supports:dd,attributes:{...pd,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>md(hd(e)),save({attributes:e}){const{align:t,level:o,content:n,textColor:r,customTextColor:a}=e,i="h"+o,s=(0,ot.getColorClassName)("color",r),l=dt({[s]:s});return(0,Je.jsx)(ot.RichText.Content,{className:l||void 0,tagName:i,style:{textAlign:t,color:s?void 0:a},value:n})}},bd={attributes:{...pd,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>md(hd(e)),save({attributes:e}){const{align:t,content:o,customTextColor:n,level:r,textColor:a}=e,i="h"+r,s=(0,ot.getColorClassName)("color",a),l=dt({[s]:s,[`has-text-align-${t}`]:t});return(0,Je.jsx)(ot.RichText.Content,{className:l||void 0,tagName:i,style:{color:s?void 0:n},value:o})},supports:dd},_d={supports:dd,attributes:{...pd,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>md(hd(e)),save({attributes:e}){const{align:t,content:o,customTextColor:n,level:r,textColor:a}=e,i="h"+r,s=(0,ot.getColorClassName)("color",a),l=dt({[s]:s,"has-text-color":a||n,[`has-text-align-${t}`]:t});return(0,Je.jsx)(ot.RichText.Content,{className:l||void 0,tagName:i,style:{color:s?void 0:n},value:o})}},yd={supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__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:!0},attributes:pd,isEligible:({align:e})=>gd.includes(e),migrate:hd,save({attributes:e}){const{align:t,content:o,level:n}=e,r="h"+n,a=dt({[`has-text-align-${t}`]:t});return(0,Je.jsx)(r,{...ot.useBlockProps.save({className:a}),children:(0,Je.jsx)(ot.RichText.Content,{value:o})})}},vd={supports:{align:["wide","full"],anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},save({attributes:e}){const{textAlign:t,content:o,level:n}=e,r="h"+n,a=dt({[`has-text-align-${t}`]:t});return(0,Je.jsx)(r,{...ot.useBlockProps.save({className:a}),children:(0,Je.jsx)(ot.RichText.Content,{value:o})})}},fd=[vd,yd,_d,bd,xd],kd={},wd=e=>ic()((e=>{const t=document.createElement("div");return t.innerHTML=e,t.innerText})(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),Cd=(e,t)=>{const o=wd(t);if(""===o)return null;delete kd[e];let n=o,r=0;for(;Object.values(kd).includes(n);)r+=1,n=o+"-"+r;return n},jd=(e,t)=>{kd[e]=t};const Sd=function({attributes:e,setAttributes:t,mergeBlocks:o,onReplace:n,style:r,clientId:a}){const{textAlign:i,content:s,level:l,placeholder:c,anchor:u}=e,d="h"+l,p=(0,ot.useBlockProps)({className:dt({[`has-text-align-${i}`]:i}),style:r}),m=(0,ot.useBlockEditingMode)(),{canGenerateAnchors:g}=(0,gt.useSelect)((e=>{const{getGlobalBlockCount:t,getSettings:o}=e(ot.store);return{canGenerateAnchors:!!o().generateAnchors||t("core/table-of-contents")>0}}),[]),{__unstableMarkNextChangeAsNotPersistent:h}=(0,gt.useDispatch)(ot.store);return(0,bt.useEffect)((()=>{if(g)return!u&&s&&(h(),t({anchor:Cd(a,s)})),jd(a,u),()=>jd(a,null)}),[u,s,a,g]),(0,Je.jsxs)(Je.Fragment,{children:["default"===m&&(0,Je.jsxs)(ot.BlockControls,{group:"block",children:[(0,Je.jsx)(ot.HeadingLevelDropdown,{value:l,onChange:e=>t({level:e})}),(0,Je.jsx)(ot.AlignmentControl,{value:i,onChange:e=>{t({textAlign:e})}})]}),(0,Je.jsx)(ot.RichText,{identifier:"content",tagName:d,value:s,onChange:e=>{const o={content:e};!g||u&&e&&Cd(a,s)!==u||(o.anchor=Cd(a,e)),t(o)},onMerge:o,onReplace:n,onRemove:()=>n([]),placeholder:c||(0,tt.__)("Heading"),textAlign:i,...bt.Platform.isNative&&{deleteEnter:!0},...p})]})};const Bd={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((({content:e,anchor:t,align:o,metadata:n})=>(0,Qe.createBlock)("core/heading",{content:e,anchor:t,textAlign:o,metadata:Lo(n,"core/heading",(({content:e})=>({content:e})))})))},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{const o={children:e,attributes:t?[]:["style","id"]};return{h1:o,h2:o,h3:o,h4:o,h5:o,h6:o}},transform(e){const t=(0,Qe.getBlockAttributes)("core/heading",e.outerHTML),{textAlign:o}=e.style||{};var n;return t.level=(n=e.nodeName,Number(n.substr(1))),"left"!==o&&"center"!==o&&"right"!==o||(t.align=o),(0,Qe.createBlock)("core/heading",t)}},...[1,2,3,4,5,6].map((e=>({type:"prefix",prefix:Array(e+1).join("#"),transform:t=>(0,Qe.createBlock)("core/heading",{level:e,content:t})}))),...[1,2,3,4,5,6].map((e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform:()=>(0,Qe.createBlock)("core/heading",{level:e})})))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((({content:e,textAlign:t,metadata:o})=>(0,Qe.createBlock)("core/paragraph",{content:e,align:t,metadata:Lo(o,"core/paragraph",(({content:e})=>({content:e})))})))}]},Nd=Bd,Td={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"h1,h2,h3,h4,h5,h6",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!0,splitting:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"},{name:Id}=Td,Pd={icon:ud,example:{attributes:{content:(0,tt.__)("Code is Poetry"),level:2}},__experimentalLabel(e,{context:t}){const{content:o,level:n}=e,r=e?.metadata?.name,a=o?.trim().length>0;return"list-view"===t&&(r||a)?r||o:"accessibility"===t?a?(0,tt.sprintf)((0,tt.__)("Level %1$s. %2$s"),n,o):(0,tt.sprintf)((0,tt.__)("Level %s. Empty."),n):void 0},transforms:Nd,deprecated:fd,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:Sd,save:function({attributes:e}){const{textAlign:t,content:o,level:n}=e,r="h"+n,a=dt({[`has-text-align-${t}`]:t});return(0,Je.jsx)(r,{...ot.useBlockProps.save({className:a}),children:(0,Je.jsx)(ot.RichText.Content,{value:o})})}},Md=()=>Xe({name:Id,metadata:Td,settings:Pd}),zd=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})}),Rd=e=>e.preventDefault();const Ad={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/home-link",category:"design",parent:["core/navigation"],title:"Home Link",description:"Create a link that always points to the homepage of the site. Usually not necessary if there is already a site title link present in the header.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","style"],supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-home-link-editor",style:"wp-block-home-link"},{name:Ld}=Ad,Hd={icon:zd,edit:function({attributes:e,setAttributes:t,context:o}){const{homeUrl:n}=(0,gt.useSelect)((e=>{const{getUnstableBase:t}=e(mt.store);return{homeUrl:t()?.home}}),[]),{__unstableMarkNextChangeAsNotPersistent:r}=(0,gt.useDispatch)(ot.store),{textColor:a,backgroundColor:i,style:s}=o,l=(0,ot.useBlockProps)({className:dt("wp-block-navigation-item",{"has-text-color":!!a||!!s?.color?.text,[`has-${a}-color`]:!!a,"has-background":!!i||!!s?.color?.background,[`has-${i}-background-color`]:!!i}),style:{color:s?.color?.text,backgroundColor:s?.color?.background}}),{label:c}=e;return(0,bt.useEffect)((()=>{void 0===c&&(r(),t({label:(0,tt.__)("Home")}))}),[c]),(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)("div",{...l,children:(0,Je.jsx)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:n,onClick:Rd,children:(0,Je.jsx)(ot.RichText,{identifier:"label",className:"wp-block-home-link__label",value:c,onChange:e=>{t({label:e})},"aria-label":(0,tt.__)("Home link text"),placeholder:(0,tt.__)("Add home link"),withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]})})})})},save:function(){return(0,Je.jsx)(ot.InnerBlocks.Content,{})},example:{attributes:{label:(0,tt._x)("Home Link","block example")}}},Dd=()=>Xe({name:Ld,metadata:Ad,settings:Hd}),Fd=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.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"})}),Vd="\n\thtml,body,:root {\n\t\tmargin: 0 !important;\n\t\tpadding: 0 !important;\n\t\toverflow: visible !important;\n\t\tmin-height: auto !important;\n\t}\n";function Ed({content:e,isSelected:t}){const o=(0,gt.useSelect)((e=>e(ot.store).getSettings().styles)),n=(0,bt.useMemo)((()=>[Vd,...(0,ot.transformStyles)(o.filter((e=>e.css)))]),[o]);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.SandBox,{html:e,styles:n,title:(0,tt.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,Je.jsx)("div",{className:"block-library-html__preview-overlay"})]})}const $d={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>(0,Qe.createBlock)("core/html",{content:(0,Ao.create)({html:e}).text})}]},Gd=$d,Od={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/html",title:"Custom HTML",category:"widgets",description:"Add custom HTML code and preview it as you edit.",keywords:["embed"],textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{customClassName:!1,className:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-html-editor"},{name:Ud}=Od,qd={icon:Fd,example:{attributes:{content:"<marquee>"+(0,tt.__)("Welcome to the wonderful world of blocks…")+"</marquee>"}},edit:function e({attributes:t,setAttributes:o,isSelected:n}){const[r,a]=(0,bt.useState)(),i=(0,bt.useContext)(et.Disabled.Context),s=(0,Ut.useInstanceId)(e,"html-edit-desc"),l=(0,ot.useBlockProps)({className:"block-library-html__edit","aria-describedby":r?s:void 0});return(0,Je.jsxs)("div",{...l,children:[(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsxs)(et.ToolbarGroup,{children:[(0,Je.jsx)(et.ToolbarButton,{isPressed:!r,onClick:function(){a(!1)},children:"HTML"}),(0,Je.jsx)(et.ToolbarButton,{isPressed:r,onClick:function(){a(!0)},children:(0,tt.__)("Preview")})]})}),r||i?(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Ed,{content:t.content,isSelected:n}),(0,Je.jsx)(et.VisuallyHidden,{id:s,children:(0,tt.__)("HTML preview is not yet fully accessible. Please switch screen reader to virtualized mode to navigate the below iFrame.")})]}):(0,Je.jsx)(ot.PlainText,{value:t.content,onChange:e=>o({content:e}),placeholder:(0,tt.__)("Write HTML…"),"aria-label":(0,tt.__)("HTML")})]})},save:function({attributes:e}){return(0,Je.jsx)(bt.RawHTML,{children:e.content})},transforms:Gd},Wd=()=>Xe({name:Ud,metadata:Od,settings:qd}),Zd={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,width:i,height:s}=e,l=i||s?{width:i,height:s}:{},c=(0,Je.jsx)("img",{src:t,alt:o,...l});let u={};return i?u={width:i}:"left"!==r&&"right"!==r||(u={maxWidth:"50%"}),(0,Je.jsxs)("figure",{className:r?`align${r}`:null,style:u,children:[a?(0,Je.jsx)("a",{href:a,children:c}):c,!ot.RichText.isEmpty(n)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",value:n})]})}},Qd={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,width:i,height:s,id:l}=e,c=(0,Je.jsx)("img",{src:t,alt:o,className:l?`wp-image-${l}`:null,width:i,height:s});return(0,Je.jsxs)("figure",{className:r?`align${r}`:null,children:[a?(0,Je.jsx)("a",{href:a,children:c}):c,!ot.RichText.isEmpty(n)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",value:n})]})}},Kd={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"}},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,width:i,height:s,id:l}=e,c=dt({[`align${r}`]:r,"is-resized":i||s}),u=(0,Je.jsx)("img",{src:t,alt:o,className:l?`wp-image-${l}`:null,width:i,height:s});return(0,Je.jsxs)("figure",{className:c,children:[a?(0,Je.jsx)("a",{href:a,children:u}):u,!ot.RichText.isEmpty(n)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",value:n})]})}},Jd={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},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"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,id:u,linkTarget:d,sizeSlug:p,title:m}=e,g=i||void 0,h=dt({[`align${r}`]:r,[`size-${p}`]:p,"is-resized":l||c}),x=(0,Je.jsx)("img",{src:t,alt:o,className:u?`wp-image-${u}`:null,width:l,height:c,title:m}),b=(0,Je.jsxs)(Je.Fragment,{children:[a?(0,Je.jsx)("a",{className:s,href:a,target:d,rel:g,children:x}):x,!ot.RichText.isEmpty(n)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",value:n})]});return"left"===r||"right"===r||"center"===r?(0,Je.jsx)("div",{...ot.useBlockProps.save(),children:(0,Je.jsx)("figure",{className:h,children:b})}):(0,Je.jsx)("figure",{...ot.useBlockProps.save({className:h}),children:b})}},Yd={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},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"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0,__experimentalDefaultControls:{radius:!0}},__experimentalStyle:{spacing:{margin:"0 0 1em 0"}}},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,id:u,linkTarget:d,sizeSlug:p,title:m}=e,g=i||void 0,h=dt({[`align${r}`]:r,[`size-${p}`]:p,"is-resized":l||c}),x=(0,Je.jsx)("img",{src:t,alt:o,className:u?`wp-image-${u}`:null,width:l,height:c,title:m}),b=(0,Je.jsxs)(Je.Fragment,{children:[a?(0,Je.jsx)("a",{className:s,href:a,target:d,rel:g,children:x}):x,!ot.RichText.isEmpty(n)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",value:n})]});return(0,Je.jsx)("figure",{...ot.useBlockProps.save({className:h}),children:b})}},Xd={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",__experimentalRole:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",__experimentalRole:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate(e){const{height:t,width:o}=e;return{...e,width:"number"==typeof o?`${o}px`:o,height:"number"==typeof t?`${t}px`:t}},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,aspectRatio:u,scale:d,id:p,linkTarget:m,sizeSlug:g,title:h}=e,x=i||void 0,b=(0,ot.__experimentalGetBorderClassesAndStyles)(e),_=dt({[`align${r}`]:r,[`size-${g}`]:g,"is-resized":l||c,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),y=dt(b.className,{[`wp-image-${p}`]:!!p}),v=(0,Je.jsx)("img",{src:t,alt:o,className:y||void 0,style:{...b.style,aspectRatio:u,objectFit:d},width:l,height:c,title:h}),f=(0,Je.jsxs)(Je.Fragment,{children:[a?(0,Je.jsx)("a",{className:s,href:a,target:m,rel:x,children:v}):v,!ot.RichText.isEmpty(n)&&(0,Je.jsx)(ot.RichText.Content,{className:(0,ot.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n})]});return(0,Je.jsx)("figure",{...ot.useBlockProps.save({className:_}),children:f})}},ep={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",__experimentalRole:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",__experimentalRole:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate:({width:e,height:t,...o})=>({...o,width:`${e}px`,height:`${t}px`}),save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,aspectRatio:u,scale:d,id:p,linkTarget:m,sizeSlug:g,title:h}=e,x=i||void 0,b=(0,ot.__experimentalGetBorderClassesAndStyles)(e),_=dt({[`align${r}`]:r,[`size-${g}`]:g,"is-resized":l||c,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),y=dt(b.className,{[`wp-image-${p}`]:!!p}),v=(0,Je.jsx)("img",{src:t,alt:o,className:y||void 0,style:{...b.style,aspectRatio:u,objectFit:d,width:l,height:c},width:l,height:c,title:h}),f=(0,Je.jsxs)(Je.Fragment,{children:[a?(0,Je.jsx)("a",{className:s,href:a,target:m,rel:x,children:v}):v,!ot.RichText.isEmpty(n)&&(0,Je.jsx)(ot.RichText.Content,{className:(0,ot.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n})]});return(0,Je.jsx)("figure",{...ot.useBlockProps.save({className:_}),children:f})}},tp={attributes:{align:{type:"string"},behaviors:{type:"object"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",__experimentalRole:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",__experimentalRole:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate({width:e,height:t,...o}){if(!o.behaviors?.lightbox)return o;const{behaviors:{lightbox:{enabled:n}}}=o,r={...o,lightbox:{enabled:n}};return delete r.behaviors,r},isEligible:e=>!!e.behaviors,save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,aspectRatio:u,scale:d,id:p,linkTarget:m,sizeSlug:g,title:h}=e,x=i||void 0,b=(0,ot.__experimentalGetBorderClassesAndStyles)(e),_=dt({[`align${r}`]:r,[`size-${g}`]:g,"is-resized":l||c,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),y=dt(b.className,{[`wp-image-${p}`]:!!p}),v=(0,Je.jsx)("img",{src:t,alt:o,className:y||void 0,style:{...b.style,aspectRatio:u,objectFit:d,width:l,height:c},title:h}),f=(0,Je.jsxs)(Je.Fragment,{children:[a?(0,Je.jsx)("a",{className:s,href:a,target:m,rel:x,children:v}):v,!ot.RichText.isEmpty(n)&&(0,Je.jsx)(ot.RichText.Content,{className:(0,ot.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n})]});return(0,Je.jsx)("figure",{...ot.useBlockProps.save({className:_}),children:f})}},op=[tp,ep,Xd,Yd,Jd,Kd,Qd,Zd],np=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})}),rp=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"})}),ap=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"})}),ip=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})}),{DimensionsTool:sp,ResolutionTool:lp}=Ht(ot.privateApis),cp=[{value:"cover",label:(0,tt._x)("Cover","Scale option for dimensions control"),help:(0,tt.__)("Image covers the space evenly.")},{value:"contain",label:(0,tt._x)("Contain","Scale option for dimensions control"),help:(0,tt.__)("Image is contained without distortion.")}],up=({href:e,children:t})=>e?(0,Je.jsx)("a",{href:e,onClick:e=>e.preventDefault(),"aria-disabled":!0,style:{pointerEvents:"none",cursor:"default",display:"inline"},children:t}):t;function dp({temporaryURL:e,attributes:t,setAttributes:o,isSingleSelected:n,insertBlocksAfter:r,onReplace:a,onSelectImage:i,onSelectURL:s,onUploadError:l,context:c,clientId:u,blockEditingMode:d,parentLayoutType:p}){const{url:m="",alt:g,align:h,id:x,href:b,rel:_,linkClass:y,linkDestination:v,title:f,width:k,height:w,aspectRatio:C,scale:j,linkTarget:S,sizeSlug:B,lightbox:N,metadata:T}=t,I=k?parseInt(k,10):void 0,P=w?parseInt(w,10):void 0,M=(0,bt.useRef)(),{allowResize:z=!0}=c,{getBlock:R,getSettings:A}=(0,gt.useSelect)(ot.store),L=(0,gt.useSelect)((e=>x&&n?e(mt.store).getMedia(x,{context:"view"}):null),[x,n]),{canInsertCover:H,imageEditing:D,imageSizes:F,maxWidth:V}=(0,gt.useSelect)((e=>{const{getBlockRootClientId:t,canInsertBlockType:o}=e(ot.store),n=t(u),r=A();return{imageEditing:r.imageEditing,imageSizes:r.imageSizes,maxWidth:r.maxWidth,canInsertCover:o("core/cover",n)}}),[u]),{replaceBlocks:E,toggleSelection:$}=(0,gt.useDispatch)(ot.store),{createErrorNotice:G,createSuccessNotice:O}=(0,gt.useDispatch)(Pt.store),U=(0,Ut.useViewportMatch)("medium"),q=["wide","full"].includes(h),[{loadedNaturalWidth:W,loadedNaturalHeight:Z},Q]=(0,bt.useState)({}),[K,J]=(0,bt.useState)(!1),[Y,X]=(0,bt.useState)(),ee="default"===d,te="contentOnly"===d,oe=z&&ee&&!q&&U&&"grid"!==p,ne=F.filter((({slug:e})=>L?.media_details?.sizes?.[e]?.source_url)).map((({name:e,slug:t})=>({value:t,label:e})));(0,bt.useEffect)((()=>{pp(x,m)&&n&&A().mediaUpload?Y||window.fetch(m.includes("?")?m:m+"?").then((e=>e.blob())).then((e=>X(e))).catch((()=>{})):X()}),[x,m,n,Y]);const{naturalWidth:re,naturalHeight:ae}=(0,bt.useMemo)((()=>({naturalWidth:M.current?.naturalWidth||W||void 0,naturalHeight:M.current?.naturalHeight||Z||void 0})),[W,Z,M.current?.complete]);function ie(e){o({title:e})}function se(e){o({alt:e})}(0,bt.useEffect)((()=>{n||J(!1)}),[n]);const le=x&&re&&ae&&D,ce=n&&le&&!K;const ue=(0,et.__experimentalUseCustomUnits)({availableUnits:["px"]}),[de]=(0,ot.useSettings)("lightbox"),pe=!!N&&N?.enabled!==de?.enabled||de?.allowEditing,me=!!N?.enabled||!N&&!!de?.enabled,ge=Zt(),he=(0,Je.jsx)(sp,{value:{width:k,height:w,scale:j,aspectRatio:C},onChange:({width:e,height:t,scale:n,aspectRatio:r})=>{o({width:!e&&t?"auto":e,height:t,scale:n,aspectRatio:r})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:cp,unitsOptions:ue}),xe=()=>{o({alt:void 0,width:void 0,height:void 0,scale:void 0,aspectRatio:void 0,lightbox:void 0})},be=(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(et.__experimentalToolsPanel,{label:(0,tt.__)("Settings"),resetAll:xe,dropdownMenuProps:ge,children:oe&&he})}),_e="core/pattern-overrides"===T?.bindings?.__default?.source,{lockUrlControls:ye=!1,lockHrefControls:ve=!1,lockAltControls:fe=!1,lockAltControlsMessage:ke,lockTitleControls:we=!1,lockTitleControlsMessage:Ce,lockCaption:je=!1}=(0,gt.useSelect)((e=>{if(!n)return{};const{getBlockBindingsSource:t}=Ht(e(Qe.store)),{url:o,alt:r,title:a}=T?.bindings||{},i=!!c["pattern/overrides"],s=t(o?.source),l=t(r?.source),u=t(a?.source);return{lockUrlControls:!!o&&!s?.canUserEditValue({select:e,context:c,args:o?.args}),lockHrefControls:i||_e,lockCaption:i,lockAltControls:!!r&&!l?.canUserEditValue({select:e,context:c,args:r?.args}),lockAltControlsMessage:l?.label?(0,tt.sprintf)((0,tt.__)("Connected to %s"),l.label):(0,tt.__)("Connected to dynamic data"),lockTitleControls:!!a&&!u?.canUserEditValue({select:e,context:c,args:a?.args}),lockTitleControlsMessage:u?.label?(0,tt.sprintf)((0,tt.__)("Connected to %s"),u.label):(0,tt.__)("Connected to dynamic data")}}),[_e,c,n,T?.bindings]),Se=n&&!K&&!ve&&!ye,Be=n&&H,Ne=Se||ce||Be,Te=(0,Je.jsxs)(Je.Fragment,{children:[Ne&&(0,Je.jsxs)(ot.BlockControls,{group:"block",children:[Se&&(0,Je.jsx)(ot.__experimentalImageURLInputUI,{url:b||"",onChangeUrl:function(e){o(e)},linkDestination:v,mediaUrl:L&&L.source_url||m,mediaLink:L&&L.link,linkTarget:S,linkClass:y,rel:_,showLightboxSetting:pe,lightboxEnabled:me,onSetLightbox:function(e){o(e&&!de?.enabled?{lightbox:{enabled:!0}}:!e&&de?.enabled?{lightbox:{enabled:!1}}:{lightbox:void 0})},resetLightbox:function(){o(de?.enabled&&de?.allowEditing?{lightbox:{enabled:!1}}:{lightbox:void 0})}}),ce&&(0,Je.jsx)(et.ToolbarButton,{onClick:()=>J(!0),icon:rp,label:(0,tt.__)("Crop")}),Be&&(0,Je.jsx)(et.ToolbarButton,{icon:ap,label:(0,tt.__)("Add text over image"),onClick:function(){E(u,(0,Qe.switchToBlockType)(R(u),"core/cover"))}})]}),n&&!K&&!ye&&(0,Je.jsx)(ot.BlockControls,{group:"other",children:(0,Je.jsx)(ot.MediaReplaceFlow,{mediaId:x,mediaURL:m,allowedTypes:su,accept:"image/*",onSelect:i,onSelectURL:s,onError:l})}),n&&Y&&(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(et.ToolbarGroup,{children:(0,Je.jsx)(et.ToolbarButton,{onClick:function(){const{mediaUpload:e}=A();e&&e({filesList:[Y],onFileChange([e]){i(e),(0,It.isBlobURL)(e.url)||(X(),O((0,tt.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:su,onError(e){G(e,{type:"snackbar"})}})},icon:ip,label:(0,tt.__)("Upload to Media Library")})})}),te&&(0,Je.jsxs)(ot.BlockControls,{group:"other",children:[(0,Je.jsx)(et.Dropdown,{popoverProps:{position:"bottom right"},renderToggle:({isOpen:e,onToggle:t})=>(0,Je.jsx)(et.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":e,onKeyDown:o=>{e||o.keyCode!==fo.DOWN||(o.preventDefault(),t())},children:(0,tt._x)("Alt","Alternative text for an image. Block toolbar label, a low character count is preferred.")}),renderContent:()=>(0,Je.jsx)(et.TextareaControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,tt.__)("Alternative text"),value:g||"",onChange:se,disabled:fe,help:fe?(0,Je.jsx)(Je.Fragment,{children:ke}):(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.ExternalLink,{href:(0,tt.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,tt.__)("Describe the purpose of the image.")}),(0,Je.jsx)("br",{}),(0,tt.__)("Leave empty if decorative.")]}),__nextHasNoMarginBottom:!0})}),(0,Je.jsx)(et.Dropdown,{popoverProps:{position:"bottom right"},renderToggle:({isOpen:e,onToggle:t})=>(0,Je.jsx)(et.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":e,onKeyDown:o=>{e||o.keyCode!==fo.DOWN||(o.preventDefault(),t())},children:(0,tt.__)("Title")}),renderContent:()=>(0,Je.jsx)(et.TextControl,{className:"wp-block-image__toolbar_content_textarea",__nextHasNoMarginBottom:!0,label:(0,tt.__)("Title attribute"),value:f||"",onChange:ie,disabled:we,help:we?(0,Je.jsx)(Je.Fragment,{children:Ce}):(0,Je.jsxs)(Je.Fragment,{children:[(0,tt.__)("Describe the role of this image on the page."),(0,Je.jsx)(et.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute",children:(0,tt.__)("(Note: many devices and browsers do not display this text.)")})]})})})]}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.__experimentalToolsPanel,{label:(0,tt.__)("Settings"),resetAll:xe,dropdownMenuProps:ge,children:[n&&(0,Je.jsx)(et.__experimentalToolsPanelItem,{label:(0,tt.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!g,onDeselect:()=>o({alt:void 0}),children:(0,Je.jsx)(et.TextareaControl,{label:(0,tt.__)("Alternative text"),value:g||"",onChange:se,readOnly:fe,help:fe?(0,Je.jsx)(Je.Fragment,{children:ke}):(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.ExternalLink,{href:(0,tt.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,tt.__)("Describe the purpose of the image.")}),(0,Je.jsx)("br",{}),(0,tt.__)("Leave empty if decorative.")]}),__nextHasNoMarginBottom:!0})}),oe&&he,!!ne.length&&(0,Je.jsx)(lp,{value:B,onChange:function(e){const t=L?.media_details?.sizes?.[e]?.source_url;if(!t)return null;o({url:t,sizeSlug:e})},options:ne})]})}),(0,Je.jsx)(ot.InspectorControls,{group:"advanced",children:(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Title attribute"),value:f||"",onChange:ie,readOnly:we,help:we?(0,Je.jsx)(Je.Fragment,{children:Ce}):(0,Je.jsxs)(Je.Fragment,{children:[(0,tt.__)("Describe the role of this image on the page."),(0,Je.jsx)(et.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute",children:(0,tt.__)("(Note: many devices and browsers do not display this text.)")})]})})})]}),Ie=(0,pt.getFilename)(m);let Pe;Pe=g||(Ie?(0,tt.sprintf)((0,tt.__)("This image has an empty alt attribute; its file name is %s"),Ie):(0,tt.__)("This image has an empty alt attribute"));const Me=(0,ot.__experimentalUseBorderProps)(t),ze=(0,ot.__experimentalGetShadowClassesAndStyles)(t),Re=t.className?.includes("is-style-rounded");let Ae=(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("img",{src:e||m,alt:Pe,onError:()=>function(){const e=Et({attributes:{url:m}});void 0!==e&&a(e)}(),onLoad:e=>{Q({loadedNaturalWidth:e.target?.naturalWidth,loadedNaturalHeight:e.target?.naturalHeight})},ref:M,className:Me.className,style:{width:k&&w||C?"100%":void 0,height:k&&w||C?"100%":void 0,objectFit:j,...Me.style,...ze.style}}),e&&(0,Je.jsx)(et.Spinner,{})]});if(le&&K)Ae=(0,Je.jsx)(up,{href:b,children:(0,Je.jsx)(ot.__experimentalImageEditor,{id:x,url:m,width:I,height:P,naturalHeight:ae,naturalWidth:re,onSaveImage:e=>o(e),onFinishEditing:()=>{J(!1)},borderProps:Re?void 0:Me})});else if(oe){const e=C&&function(e){const[t,o=1]=e.split("/").map(Number),n=t/o;return n===1/0||0===n?NaN:n}(C),t=re/ae,r=e||I/P||t||1,a=!I&&P?P*r:I,i=!P&&I?I/r:P,s=re<ae?tu:tu*r,l=ae<re?tu:tu/r,c=2.5*V;let u=!1,d=!1;"center"===h?(u=!0,d=!0):(0,tt.isRTL)()?"left"===h?u=!0:d=!0:"right"===h?d=!0:u=!0,Ae=(0,Je.jsx)(et.ResizableBox,{style:{display:"block",objectFit:j,aspectRatio:k||w||!C?void 0:C},size:{width:null!=a?a:"auto",height:null!=i?i:"auto"},showHandle:n,minWidth:s,maxWidth:c,minHeight:l,maxHeight:c/r,lockAspectRatio:r,enable:{top:!1,right:u,bottom:!0,left:d},onResizeStart:function(){$(!1)},onResizeStop:(e,n,a)=>{$(!0),o({width:`${a.offsetWidth}px`,height:"auto",aspectRatio:r===t?void 0:String(r)})},resizeRatio:"center"===h?2:1,children:(0,Je.jsx)(up,{href:b,children:Ae})})}else Ae=(0,Je.jsx)("div",{style:{width:k,height:w,aspectRatio:C},children:(0,Je.jsx)(up,{href:b,children:Ae})});return m||e?(0,Je.jsxs)(Je.Fragment,{children:[Te,Ae,(0,Je.jsx)(Kt,{attributes:t,setAttributes:o,isSelected:n,insertBlocksAfter:r,label:(0,tt.__)("Image caption text"),showToolbarButton:n&&ee&&!_e,readOnly:je})]}):T?.bindings?Te:be}const pp=(e,t)=>t&&!e&&!(0,It.isBlobURL)(t);function mp(e,t){var o,n;return"url"in(null!==(o=e?.sizes?.[t])&&void 0!==o?o:{})||"source_url"in(null!==(n=e?.media_details?.sizes?.[t])&&void 0!==n?n:{})}const gp=function({attributes:e,setAttributes:t,isSelected:o,className:n,insertBlocksAfter:r,onReplace:a,context:i,clientId:s,__unstableParentLayout:l}){const{url:c="",alt:u,caption:d,id:p,width:m,height:g,sizeSlug:h,aspectRatio:x,scale:b,align:_,metadata:y}=e,[v,f]=(0,bt.useState)((()=>((e,t)=>!e&&(0,It.isBlobURL)(t))(p,c)?c:void 0)),k=(0,bt.useRef)();(0,bt.useEffect)((()=>{k.current=u}),[u]);const w=(0,bt.useRef)();(0,bt.useEffect)((()=>{w.current=d}),[d]);const{__unstableMarkNextChangeAsNotPersistent:C}=(0,gt.useDispatch)(ot.store);(0,bt.useEffect)((()=>{["wide","full"].includes(_)&&(C(),t({width:void 0,height:void 0,aspectRatio:void 0,scale:void 0}))}),[C,_,t]);const{getSettings:j}=(0,gt.useSelect)(ot.store),S=(0,ot.useBlockEditingMode)(),{createErrorNotice:B}=(0,gt.useDispatch)(Pt.store);function N(e){B(e,{type:"snackbar"}),t({src:void 0,id:void 0,url:void 0}),f(void 0)}function T(o){if(!o||!o.url)return void t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0});if((0,It.isBlobURL)(o.url))return void f(o.url);f();const{imageDefaultSize:n}=j();let r="full";h&&mp(o,h)?r=h:mp(o,n)&&(r=n);let a,i=((e,t)=>{const o=Object.fromEntries(Object.entries(null!=e?e:{}).filter((([e])=>["alt","id","link","caption"].includes(e))));return o.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e.url,o})(o,r);if(w.current&&!i.caption){const{caption:e,...t}=i;i=t}a=o.id&&o.id===p?{url:c}:{sizeSlug:r};let s,l=e.linkDestination;if(!l)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||ou){case"file":case nu:l=nu;break;case"post":case ru:l=ru;break;case au:l=au;break;case ou:l=ou}switch(l){case nu:s=o.url;break;case ru:s=o.link}i.href=s,t({...i,...a,linkDestination:l})}function I(e){e!==c&&t({url:e,id:void 0,sizeSlug:j().imageDefaultSize})}Wt({url:c,allowedTypes:su,onChange:T,onError:N});const P=pp(p,c)?c:void 0,M=!!c&&(0,Je.jsx)("img",{alt:(0,tt.__)("Edit image"),title:(0,tt.__)("Edit image"),className:"edit-image-preview",src:c}),z=(0,ot.__experimentalUseBorderProps)(e),R=(0,ot.__experimentalGetShadowClassesAndStyles)(e),A=dt(n,{"is-transient":v,"is-resized":!!m||!!g,[`size-${h}`]:h,"has-custom-border":!!z.className||z.style&&Object.keys(z.style).length>0}),L=(0,ot.useBlockProps)({className:A}),{lockUrlControls:H=!1,lockUrlControlsMessage:D}=(0,gt.useSelect)((e=>{if(!o)return{};const t=Ht(e(Qe.store)).getBlockBindingsSource(y?.bindings?.url?.source);return{lockUrlControls:!!y?.bindings?.url&&!t?.canUserEditValue({select:e,context:i,args:y?.bindings?.url?.args}),lockUrlControlsMessage:t?.label?(0,tt.sprintf)((0,tt.__)("Connected to %s"),t.label):(0,tt.__)("Connected to dynamic data")}}),[o,y?.bindings?.url]);return(0,Je.jsxs)("figure",{...L,children:[(0,Je.jsx)(dp,{temporaryURL:v,attributes:e,setAttributes:t,isSingleSelected:o,insertBlocksAfter:r,onReplace:a,onSelectImage:T,onSelectURL:I,onUploadError:N,context:i,clientId:s,blockEditingMode:S,parentLayoutType:l?.type}),(0,Je.jsx)(ot.MediaPlaceholder,{icon:(0,Je.jsx)(ot.BlockIcon,{icon:Cu}),onSelect:T,onSelectURL:I,onError:N,placeholder:e=>(0,Je.jsx)(et.Placeholder,{className:dt("block-editor-media-placeholder",{[z.className]:!!z.className&&!o}),withIllustration:!0,icon:H?np:Cu,label:(0,tt.__)("Image"),instructions:!H&&(0,tt.__)("Upload an image file, pick one from your media library, or add one with a URL."),style:{aspectRatio:m&&g||!x?void 0:x,width:g&&x?"100%":m,height:m&&x?"100%":g,objectFit:b,...z.style,...R.style},children:H?(0,Je.jsx)("span",{className:"block-bindings-media-placeholder-message",children:D}):e}),accept:"image/*",allowedTypes:su,value:{id:p,src:P},mediaPreview:M,disableMediaButtons:v||c})]})};function hp(e,t){const{body:o}=document.implementation.createHTMLDocument("");o.innerHTML=e;const{firstElementChild:n}=o;if(n&&"A"===n.nodeName)return n.getAttribute(t)||void 0}const xp={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},bp={from:[{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&!!e.querySelector("img"),schema:({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...xp,a:{attributes:["href","rel","target"],children:xp},figcaption:{children:e}}}}),transform:e=>{const t=e.className+" "+e.querySelector("img").className,o=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),n=""===e.id?void 0:e.id,r=o?o[1]:void 0,a=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),i=a?Number(a[1]):void 0,s=e.querySelector("a"),l=s&&s.href?"custom":void 0,c=s&&s.href?s.href:void 0,u=s&&s.rel?s.rel:void 0,d=s&&s.className?s.className:void 0,p=(0,Qe.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:i,linkDestination:l,href:c,rel:u,linkClass:d,anchor:n});return(0,Qe.createBlock)("core/image",p)}},{type:"files",isMatch(e){if(e.some((e=>0===e.type.indexOf("image/")))&&e.some((e=>0!==e.type.indexOf("image/")))){const{createErrorNotice:e}=(0,gt.dispatch)(Pt.store);e((0,tt.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-transform-invalid-file",type:"snackbar"})}return e.every((e=>0===e.type.indexOf("image/")))},transform(e){const t=e.map((e=>(0,Qe.createBlock)("core/image",{url:(0,It.createBlobURL)(e)})));return t}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:function(e,{shortcode:t}){const{body:o}=document.implementation.createHTMLDocument("");o.innerHTML=t.content;let n=o.querySelector("img");for(;n&&n.parentNode&&n.parentNode!==o;)n=n.parentNode;return n&&n.parentNode.removeChild(n),o.innerHTML.trim()}},href:{shortcode:(e,{shortcode:t})=>hp(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>hp(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>hp(t.content,"class")},id:{type:"number",shortcode:({named:{id:e}})=>{if(e)return parseInt(e.replace("attachment_",""),10)}},align:{type:"string",shortcode:({named:{align:e="alignnone"}})=>e.replace("align","")}}}]},_p=bp,yp={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/image",title:"Image",category:"media",usesContext:["allowResize","imageCrop","fixedHeight"],description:"Insert an image to make a visual statement.",keywords:["img","photo","picture"],textdomain:"default",attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src",__experimentalRole:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},lightbox:{type:"object",enabled:{type:"boolean"}},title:{type:"string",source:"attribute",selector:"img",attribute:"title",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",__experimentalRole:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{interactivity:!0,align:["left","center","right","wide","full"],anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},shadow:{__experimentalSkipSerialization:!0}},selectors:{border:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",shadow:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",filter:{duotone:".wp-block-image img, .wp-block-image .components-placeholder"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"},{name:vp}=yp,fp={icon:Cu,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,tt.__)("Mont Blanc appears—still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){const o=e?.metadata?.name;if("list-view"===t&&o)return o;if("accessibility"===t){const{caption:t,alt:o,url:n}=e;return n?o?o+(t?". "+t:""):t||"":(0,tt.__)("Empty")}},getEditWrapperProps:e=>({"data-align":e.align}),transforms:_p,edit:gp,save:function({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,aspectRatio:u,scale:d,id:p,linkTarget:m,sizeSlug:g,title:h}=e,x=i||void 0,b=(0,ot.__experimentalGetBorderClassesAndStyles)(e),_=(0,ot.__experimentalGetShadowClassesAndStyles)(e),y=dt({alignnone:"none"===r,[`size-${g}`]:g,"is-resized":l||c,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),v=dt(b.className,{[`wp-image-${p}`]:!!p}),f=(0,Je.jsx)("img",{src:t,alt:o,className:v||void 0,style:{...b.style,..._.style,aspectRatio:u,objectFit:d,width:l,height:c},title:h}),k=(0,Je.jsxs)(Je.Fragment,{children:[a?(0,Je.jsx)("a",{className:s,href:a,target:m,rel:x,children:f}):f,!ot.RichText.isEmpty(n)&&(0,Je.jsx)(ot.RichText.Content,{className:(0,ot.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n})]});return(0,Je.jsx)("figure",{...ot.useBlockProps.save({className:y}),children:k})},deprecated:op},kp=()=>Xe({name:vp,metadata:yp,settings:fp}),wp=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.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"})});const Cp={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-comments",title:"Latest Comments",category:"widgets",description:"Display a list of your most recent comments.",keywords:["recent comments"],textdomain:"default",attributes:{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,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-latest-comments-editor",style:"wp-block-latest-comments"},{name:jp}=Cp,Sp={icon:wp,example:{},edit:function({attributes:e,setAttributes:t}){const{commentsToShow:o,displayAvatar:n,displayDate:r,displayExcerpt:a}=e,i={...e,style:{...e?.style,spacing:void 0}};return(0,Je.jsxs)("div",{...(0,ot.useBlockProps)(),children:[(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display avatar"),checked:n,onChange:()=>t({displayAvatar:!n})}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display date"),checked:r,onChange:()=>t({displayDate:!r})}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display excerpt"),checked:a,onChange:()=>t({displayExcerpt:!a})}),(0,Je.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Number of comments"),value:o,onChange:e=>t({commentsToShow:e}),min:1,max:100,required:!0})]})}),(0,Je.jsx)(et.Disabled,{children:(0,Je.jsx)(rt(),{block:"core/latest-comments",attributes:i,urlQueryArgs:{_locale:"site"}})})]})}},Bp=()=>Xe({name:jp,metadata:Cp,settings:Sp}),Np=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})}),{attributes:Tp}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{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},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"},Ip=[{attributes:{...Tp,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&"string"==typeof e,save:()=>null}],Pp=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.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"})}),Mp={per_page:-1,context:"view"},zp={per_page:-1,has_published_posts:["post"],context:"view"};const Rp={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{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},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"},{name:Ap}=Rp,Lp={icon:Np,example:{},edit:function e({attributes:t,setAttributes:o}){var n;const r=(0,Ut.useInstanceId)(e),{postsToShow:a,order:i,orderBy:s,categories:l,selectedAuthor:c,displayFeaturedImage:u,displayPostContentRadio:d,displayPostContent:p,displayPostDate:m,displayAuthor:g,postLayout:h,columns:x,excerptLength:b,featuredImageAlign:_,featuredImageSizeSlug:y,featuredImageSizeWidth:v,featuredImageSizeHeight:f,addLinkToFeaturedImage:k}=t,{imageSizes:w,latestPosts:C,defaultImageWidth:j,defaultImageHeight:S,categoriesList:B,authorList:N}=(0,gt.useSelect)((e=>{var t,o;const{getEntityRecords:n,getUsers:r}=e(mt.store),u=e(ot.store).getSettings(),d=l&&l.length>0?l.map((e=>e.id)):[],p=Object.fromEntries(Object.entries({categories:d,author:c,order:i,orderby:s,per_page:a,_embed:"wp:featuredmedia"}).filter((([,e])=>void 0!==e)));return{defaultImageWidth:null!==(t=u.imageDimensions?.[y]?.width)&&void 0!==t?t:0,defaultImageHeight:null!==(o=u.imageDimensions?.[y]?.height)&&void 0!==o?o:0,imageSizes:u.imageSizes,latestPosts:n("postType","post",p),categoriesList:n("taxonomy","category",Mp),authorList:r(zp)}}),[y,a,i,s,l,c]),{createWarningNotice:T,removeNotice:I}=(0,gt.useDispatch)(Pt.store);let P;const M=e=>{e.preventDefault(),I(P),P=`block-library/core/latest-posts/redirection-prevented/${r}`,T((0,tt.__)("Links are disabled in the editor."),{id:P,type:"snackbar"})},z=w.filter((({slug:e})=>"full"!==e)).map((({name:e,slug:t})=>({value:t,label:e}))),R=null!==(n=B?.reduce(((e,t)=>({...e,[t.name]:t})),{}))&&void 0!==n?n:{},A=!!C?.length,L=(0,Je.jsxs)(ot.InspectorControls,{children:[(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Post content"),children:[(0,Je.jsx)(et.ToggleControl,{label:(0,tt.__)("Post content"),checked:p,onChange:e=>o({displayPostContent:e})}),p&&(0,Je.jsx)(et.RadioControl,{label:(0,tt.__)("Show:"),selected:d,options:[{label:(0,tt.__)("Excerpt"),value:"excerpt"},{label:(0,tt.__)("Full post"),value:"full_post"}],onChange:e=>o({displayPostContentRadio:e})}),p&&"excerpt"===d&&(0,Je.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Max number of words"),value:b,onChange:e=>o({excerptLength:e}),min:10,max:100})]}),(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Post meta"),children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display author name"),checked:g,onChange:e=>o({displayAuthor:e})}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display post date"),checked:m,onChange:e=>o({displayPostDate:e})})]}),(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Featured image"),children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display featured image"),checked:u,onChange:e=>o({displayFeaturedImage:e})}),u&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.__experimentalImageSizeControl,{onChange:e=>{const t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),o(t)},slug:y,width:v,height:f,imageWidth:j,imageHeight:S,imageSizeOptions:z,imageSizeHelp:(0,tt.__)("Select the size of the source image."),onChangeImage:e=>o({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}),(0,Je.jsxs)(et.BaseControl,{className:"editor-latest-posts-image-alignment-control",children:[(0,Je.jsx)(et.BaseControl.VisualLabel,{children:(0,tt.__)("Image alignment")}),(0,Je.jsx)(ot.BlockAlignmentToolbar,{value:_,onChange:e=>o({featuredImageAlign:e}),controls:["left","center","right"],isCollapsed:!1})]}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Add link to featured image"),checked:k,onChange:e=>o({addLinkToFeaturedImage:e})})]})]}),(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Sorting and filtering"),children:[(0,Je.jsx)(et.QueryControls,{order:i,orderBy:s,numberOfItems:a,onOrderChange:e=>o({order:e}),onOrderByChange:e=>o({orderBy:e}),onNumberOfItemsChange:e=>o({postsToShow:e}),categorySuggestions:R,onCategoryChange:e=>{if(e.some((e=>"string"==typeof e&&!R[e])))return;const t=e.map((e=>"string"==typeof e?R[e]:e));if(t.includes(null))return!1;o({categories:t})},selectedCategories:l,onAuthorChange:e=>o({selectedAuthor:""!==e?Number(e):void 0}),authorList:null!=N?N:[],selectedAuthorId:c}),"grid"===h&&(0,Je.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Columns"),value:x,onChange:e=>o({columns:e}),min:2,max:A?Math.min(6,C.length):6,required:!0})]})]}),H=(0,ot.useBlockProps)({className:dt({"wp-block-latest-posts__list":!0,"is-grid":"grid"===h,"has-dates":m,"has-author":g,[`columns-${x}`]:"grid"===h})});if(!A)return(0,Je.jsxs)("div",{...H,children:[L,(0,Je.jsx)(et.Placeholder,{icon:en,label:(0,tt.__)("Latest Posts"),children:Array.isArray(C)?(0,tt.__)("No posts found."):(0,Je.jsx)(et.Spinner,{})})]});const D=C.length>a?C.slice(0,a):C,F=[{icon:Pp,title:(0,tt._x)("List view","Latest posts block display setting"),onClick:()=>o({postLayout:"list"}),isActive:"list"===h},{icon:nd,title:(0,tt._x)("Grid view","Latest posts block display setting"),onClick:()=>o({postLayout:"grid"}),isActive:"grid"===h}],V=(0,Ir.getSettings)().formats.date;return(0,Je.jsxs)(Je.Fragment,{children:[L,(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(et.ToolbarGroup,{controls:F})}),(0,Je.jsx)("ul",{...H,children:D.map((e=>{const t=e.title.rendered.trim();let o=e.excerpt.rendered;const n=N?.find((t=>t.id===e.author)),r=document.createElement("div");r.innerHTML=o,o=r.textContent||r.innerText||"";const{url:a,alt:i}=function(e,t){var o;const n=e._embedded?.["wp:featuredmedia"]?.[0];return{url:null!==(o=n?.media_details?.sizes?.[t]?.source_url)&&void 0!==o?o:n?.source_url,alt:n?.alt_text}}(e,y),s=dt({"wp-block-latest-posts__featured-image":!0,[`align${_}`]:!!_}),l=u&&a,c=l&&(0,Je.jsx)("img",{src:a,alt:i,style:{maxWidth:v,maxHeight:f}}),h=b<o.trim().split(" ").length&&""===e.excerpt.raw?(0,Je.jsxs)(Je.Fragment,{children:[o.trim().split(" ",b).join(" "),(0,bt.createInterpolateElement)((0,tt.sprintf)((0,tt.__)("… <a>Read more<span>: %1$s</span></a>"),t||(0,tt.__)("(no title)")),{a:(0,Je.jsx)("a",{className:"wp-block-latest-posts__read-more",href:e.link,rel:"noopener noreferrer",onClick:M}),span:(0,Je.jsx)("span",{className:"screen-reader-text"})})]}):o;return(0,Je.jsxs)("li",{children:[l&&(0,Je.jsx)("div",{className:s,children:k?(0,Je.jsx)("a",{href:e.link,rel:"noreferrer noopener",onClick:M,children:c}):c}),(0,Je.jsx)("a",{className:"wp-block-latest-posts__post-title",href:e.link,rel:"noreferrer noopener",dangerouslySetInnerHTML:t?{__html:t}:void 0,onClick:M,children:t?null:(0,tt.__)("(no title)")}),g&&n&&(0,Je.jsx)("div",{className:"wp-block-latest-posts__post-author",children:(0,tt.sprintf)((0,tt.__)("by %s"),n.name)}),m&&e.date_gmt&&(0,Je.jsx)("time",{dateTime:(0,Ir.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date",children:(0,Ir.dateI18n)(V,e.date_gmt)}),p&&"excerpt"===d&&(0,Je.jsx)("div",{className:"wp-block-latest-posts__post-excerpt",children:h}),p&&"full_post"===d&&(0,Je.jsx)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:e.content.raw.trim()}})]},e.id)}))})]})},deprecated:Ip},Hp=()=>Xe({name:Ap,metadata:Rp,settings:Lp}),Dp={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function Fp(e){const{values:t,start:o,reversed:n,ordered:r,type:a,...i}=e,s=document.createElement(r?"ol":"ul");s.innerHTML=t,o&&s.setAttribute("start",o),n&&s.setAttribute("reversed",!0),a&&s.setAttribute("type",a);const[l]=(0,Qe.rawHandler)({HTML:s.outerHTML});return[{...i,...l.attributes},l.innerBlocks]}const Vp={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,values:o,type:n,reversed:r,start:a}=e,i=t?"ol":"ul";return(0,Je.jsx)(i,{...ot.useBlockProps.save({type:n,reversed:r,start:a}),children:(0,Je.jsx)(ot.RichText.Content,{value:o,multiline:"li"})})},migrate:so,isEligible:({style:e})=>e?.typography?.fontFamily},Ep={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,values:o,type:n,reversed:r,start:a}=e,i=t?"ol":"ul";return(0,Je.jsx)(i,{...ot.useBlockProps.save({type:n,reversed:r,start:a}),children:(0,Je.jsx)(ot.RichText.Content,{value:o,multiline:"li"})})},migrate:Fp},$p={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},isEligible:({type:e})=>!!e,save({attributes:e}){const{ordered:t,type:o,reversed:n,start:r}=e,a=t?"ol":"ul";return(0,Je.jsx)(a,{...ot.useBlockProps.save({type:o,reversed:n,start:r}),children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})},migrate:function(e){const{type:t}=e;return t&&Dp[t]?{...e,type:Dp[t]}:e}},Gp={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalOnMerge:"true",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,type:o,reversed:n,start:r}=e,a=t?"ol":"ul";return(0,Je.jsx)(a,{...ot.useBlockProps.save({reversed:n,start:r,style:{listStyleType:t&&"decimal"!==o?o:void 0}}),children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})}},Op=[Gp,$p,Ep,Vp],Up=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.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"})}),qp=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.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"})}),Wp=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.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"})}),Zp=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.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"})}),Qp=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.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"})}),Kp=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.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"})}),Jp=window.wp.deprecated;var Yp=o.n(Jp);const Xp=({setAttributes:e,reversed:t,start:o,type:n})=>(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Start value"),type:"number",onChange:t=>{const o=parseInt(t,10);e({start:isNaN(o)?void 0:o})},value:Number.isInteger(o)?o.toString(10):"",step:"1"}),(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Numbering style"),options:[{label:(0,tt.__)("Numbers"),value:"decimal"},{label:(0,tt.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,tt.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,tt.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,tt.__)("Lowercase Roman numerals"),value:"lower-roman"}],value:n,onChange:t=>e({type:t})}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Reverse list numbering"),checked:t||!1,onChange:t=>{e({reversed:t||void 0})}})]})});const em=(0,bt.forwardRef)((function(e,t){const{ordered:o,...n}=e,r=o?"ol":"ul";return(0,Je.jsx)(r,{ref:t,...n})})),tm={name:"core/list-item"},om=[["core/list-item"]];function nm({clientId:e}){const t=function(e){const{replaceBlocks:t,selectionChange:o}=(0,gt.useDispatch)(ot.store),{getBlockRootClientId:n,getBlockAttributes:r,getBlock:a}=(0,gt.useSelect)(ot.store);return(0,bt.useCallback)((()=>{const i=n(e),s=r(i),l=(0,Qe.createBlock)("core/list-item",s),{innerBlocks:c}=a(e);t([i],[l,...c]),o(c[c.length-1].clientId)}),[e])}(e),o=(0,gt.useSelect)((t=>{const{getBlockRootClientId:o,getBlockName:n}=t(ot.store);return"core/list-item"===n(o(e))}),[e]);return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(et.ToolbarButton,{icon:(0,tt.isRTL)()?Up:qp,title:(0,tt.__)("Outdent"),describedBy:(0,tt.__)("Outdent list item"),disabled:!o,onClick:t})})}function rm({phrasingContentSchema:e}){const t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach((e=>{t[e].children={li:{children:t}}})),t}function am(e){return e.flatMap((({name:e,attributes:t,innerBlocks:o=[]})=>"core/list-item"===e?[t.content,...am(o)]:am(o)))}const im={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map((({content:e})=>(0,Qe.createBlock)("core/list-item",{content:e})));else if(1===e.length){const o=(0,Ao.create)({html:e[0].content});t=(0,Ao.split)(o,"\n").map((e=>(0,Qe.createBlock)("core/list-item",{content:(0,Ao.toHTMLString)({value:e})})))}return(0,Qe.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:rm(e).ol,ul:rm(e).ul}),transform:function e(t){const o=t.getAttribute("type"),n={ordered:"OL"===t.tagName,anchor:""===t.id?void 0:t.id,start:t.getAttribute("start")?parseInt(t.getAttribute("start"),10):void 0,reversed:!!t.hasAttribute("reversed")||void 0,type:o&&Dp[o]?Dp[o]:void 0},r=Array.from(t.children).map((t=>{const o=Array.from(t.childNodes).filter((e=>e.nodeType!==e.TEXT_NODE||0!==e.textContent.trim().length));o.reverse();const[n,...r]=o;if(!("UL"===n?.tagName||"OL"===n?.tagName))return(0,Qe.createBlock)("core/list-item",{content:t.innerHTML});const a=r.map((e=>e.nodeType===e.TEXT_NODE?e.textContent:e.outerHTML));a.reverse();const i={content:a.join("").trim()},s=[e(n)];return(0,Qe.createBlock)("core/list-item",i,s)}));return(0,Qe.createBlock)("core/list",n,r)}},...["*","-"].map((e=>({type:"prefix",prefix:e,transform:e=>(0,Qe.createBlock)("core/list",{},[(0,Qe.createBlock)("core/list-item",{content:e})])}))),...["1.","1)"].map((e=>({type:"prefix",prefix:e,transform:e=>(0,Qe.createBlock)("core/list",{ordered:!0},[(0,Qe.createBlock)("core/list-item",{content:e})])})))],to:[...["core/paragraph","core/heading"].map((e=>({type:"block",blocks:[e],transform:(t,o)=>am(o).map((t=>(0,Qe.createBlock)(e,{content:t})))})))]},sm=im,lm={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list",title:"List",category:"text",allowedBlocks:["core/list-item"],description:"Create a bulleted or numbered list.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalOnMerge:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-list-editor",style:"wp-block-list"},{name:cm}=lm,um={icon:Pp,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,tt.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,tt.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,tt.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,tt.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,tt.__)("The Queen of Hearts.")}}]},transforms:sm,edit:function({attributes:e,setAttributes:t,clientId:o,style:n}){const{ordered:r,type:a,reversed:i,start:s}=e,l=(0,ot.useBlockProps)({style:{...bt.Platform.isNative&&n,listStyleType:r&&"decimal"!==a?a:void 0}}),c=(0,ot.useInnerBlocksProps)(l,{defaultBlock:tm,directInsert:!0,template:om,templateLock:!1,templateInsertUpdatesSelection:!0,...bt.Platform.isNative&&{marginVertical:8,marginHorizontal:8,renderAppender:!1},__experimentalCaptureToolbars:!0});!function(e,t){const o=(0,gt.useRegistry)(),{updateBlockAttributes:n,replaceInnerBlocks:r}=(0,gt.useDispatch)(ot.store);(0,bt.useEffect)((()=>{if(!e.values)return;const[a,i]=Fp(e);Yp()("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),o.batch((()=>{n(t,a),r(t,i)}))}),[e.values])}(e,o);const u=(0,Je.jsxs)(ot.BlockControls,{group:"block",children:[(0,Je.jsx)(et.ToolbarButton,{icon:(0,tt.isRTL)()?Wp:Zp,title:(0,tt.__)("Unordered"),describedBy:(0,tt.__)("Convert to unordered list"),isActive:!1===r,onClick:()=>{t({ordered:!1})}}),(0,Je.jsx)(et.ToolbarButton,{icon:(0,tt.isRTL)()?Qp:Kp,title:(0,tt.__)("Ordered"),describedBy:(0,tt.__)("Convert to ordered list"),isActive:!0===r,onClick:()=>{t({ordered:!0})}}),(0,Je.jsx)(nm,{clientId:o})]});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(em,{ordered:r,reversed:i,start:s,...c}),u,r&&(0,Je.jsx)(Xp,{setAttributes:t,reversed:i,start:s,type:a})]})},save:function({attributes:e}){const{ordered:t,type:o,reversed:n,start:r}=e,a=t?"ol":"ul";return(0,Je.jsx)(a,{...ot.useBlockProps.save({reversed:n,start:r,style:{listStyleType:t&&"decimal"!==o?o:void 0}}),children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})},deprecated:Op},dm=()=>Xe({name:cm,metadata:lm,settings:um}),pm=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}),mm=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.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"})}),gm=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.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"})});function hm(e){const{replaceBlocks:t,selectionChange:o,multiSelect:n}=(0,gt.useDispatch)(ot.store),{getBlock:r,getPreviousBlockClientId:a,getSelectionStart:i,getSelectionEnd:s,hasMultiSelection:l,getMultiSelectedBlockClientIds:c}=(0,gt.useSelect)(ot.store);return(0,bt.useCallback)((()=>{const u=l(),d=u?c():[e],p=d.map((e=>(0,Qe.cloneBlock)(r(e)))),m=a(e),g=(0,Qe.cloneBlock)(r(m));g.innerBlocks?.length||(g.innerBlocks=[(0,Qe.createBlock)("core/list")]),g.innerBlocks[g.innerBlocks.length-1].innerBlocks.push(...p);const h=i(),x=s();return t([m,...d],[g]),u?n(p[0].clientId,p[p.length-1].clientId):o(p[0].clientId,x.attributeKey,x.clientId===h.clientId?h.offset:x.offset,x.offset),!0}),[e])}function xm(){const e=(0,gt.useRegistry)(),{moveBlocksToPosition:t,removeBlock:o,insertBlock:n,updateBlockListSettings:r}=(0,gt.useDispatch)(ot.store),{getBlockRootClientId:a,getBlockName:i,getBlockOrder:s,getBlockIndex:l,getSelectedBlockClientIds:c,getBlock:u,getBlockListSettings:d}=(0,gt.useSelect)(ot.store);return(0,bt.useCallback)(((p=c())=>{if(Array.isArray(p)||(p=[p]),!p.length)return;const m=p[0];if("core/list-item"!==i(m))return;const g=function(e){const t=a(e),o=a(t);if(o&&"core/list-item"===i(o))return o}(m);if(!g)return;const h=a(m),x=p[p.length-1],b=s(h).slice(l(x)+1);return e.batch((()=>{if(b.length){let e=s(m)[0];if(!e){const t=(0,Qe.cloneBlock)(u(h),{},[]);e=t.clientId,n(t,0,m,!1),r(e,d(h))}t(b,h,e)}if(t(p,h,a(g),l(g)+1),!s(h).length){o(h,!1)}})),!0}),[])}function bm(e,t){const o=(0,gt.useRegistry)(),{getPreviousBlockClientId:n,getNextBlockClientId:r,getBlockOrder:a,getBlockRootClientId:i,getBlockName:s}=(0,gt.useSelect)(ot.store),{mergeBlocks:l,moveBlocksToPosition:c}=(0,gt.useDispatch)(ot.store),u=xm();function d(e){const t=a(e);return t.length?d(t[t.length-1]):e}function p(e){const t=i(e),o=i(t);if(o&&"core/list-item"===s(o))return o}function m(e){const t=r(e);if(t)return t;const o=p(e);return o?m(o):void 0}function g(e){const t=a(e);return t.length?a(t[0])[0]:m(e)}return r=>{function s(e,t){o.batch((()=>{const[o]=a(t);o&&(n(t)!==e||a(e).length?c(a(o),o,i(e)):c([o],t,e)),l(e,t)}))}if(r){const o=g(e);if(!o)return void t(r);p(o)?u(o):s(e,o)}else{const o=n(e);if(p(e))u(e);else if(o){s(d(o),e)}else t(r)}}}function _m({clientId:e}){const t=hm(e),o=xm(),{canIndent:n,canOutdent:r}=(0,gt.useSelect)((t=>{const{getBlockIndex:o,getBlockRootClientId:n,getBlockName:r}=t(ot.store);return{canIndent:o(e)>0,canOutdent:"core/list-item"===r(n(n(e)))}}),[e]);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.ToolbarButton,{icon:(0,tt.isRTL)()?Up:qp,title:(0,tt.__)("Outdent"),describedBy:(0,tt.__)("Outdent list item"),disabled:!r,onClick:()=>o()}),(0,Je.jsx)(et.ToolbarButton,{icon:(0,tt.isRTL)()?mm:gm,title:(0,tt.__)("Indent"),describedBy:(0,tt.__)("Indent list item"),isDisabled:!n,onClick:()=>t()})]})}const ym={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,Qe.createBlock)("core/paragraph",e),...t.map((e=>(0,Qe.cloneBlock)(e)))]}]},vm=ym,fm={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List item",category:"text",parent:["core/list"],allowedBlocks:["core/list"],description:"Create a list item.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"li",__experimentalRole:"content"}},supports:{className:!1,__experimentalSelector:".wp-block-list > li",splitting:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:km}=fm,wm={icon:pm,edit:function({attributes:e,setAttributes:t,clientId:o,mergeBlocks:n}){const{placeholder:r,content:a}=e,i=(0,ot.useBlockProps)(),s=(0,ot.useInnerBlocksProps)(i,{renderAppender:!1,__unstableDisableDropZone:!0}),l=function(e){const{replaceBlocks:t,selectionChange:o}=(0,gt.useDispatch)(ot.store),{getBlock:n,getBlockRootClientId:r,getBlockIndex:a,getBlockName:i}=(0,gt.useSelect)(ot.store),s=(0,bt.useRef)(e);s.current=e;const l=xm();return(0,Ut.useRefEffect)((e=>{function c(e){if(e.defaultPrevented||e.keyCode!==fo.ENTER)return;const{content:c,clientId:u}=s.current;if(c.length)return;if(e.preventDefault(),"core/list-item"===i(r(r(s.current.clientId))))return void l();const d=n(r(u)),p=a(u),m=(0,Qe.cloneBlock)({...d,innerBlocks:d.innerBlocks.slice(0,p)}),g=(0,Qe.createBlock)((0,Qe.getDefaultBlockName)()),h=[...d.innerBlocks[p].innerBlocks[0]?.innerBlocks||[],...d.innerBlocks.slice(p+1)],x=h.length?[(0,Qe.cloneBlock)({...d,innerBlocks:h})]:[];t(d.clientId,[m,g,...x],1),o(g.clientId)}return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}),[])}({content:a,clientId:o}),c=function(e){const{getSelectionStart:t,getSelectionEnd:o,getBlockIndex:n}=(0,gt.useSelect)(ot.store),r=hm(e),a=xm();return(0,Ut.useRefEffect)((i=>{function s(i){const{keyCode:s,shiftKey:l,altKey:c,metaKey:u,ctrlKey:d}=i;if(i.defaultPrevented||s!==fo.SPACE&&s!==fo.TAB||c||u||d)return;const p=t(),m=o();0===p.offset&&0===m.offset&&(l?s===fo.TAB&&a()&&i.preventDefault():0!==n(e)&&r()&&i.preventDefault())}return i.addEventListener("keydown",s),()=>{i.removeEventListener("keydown",s)}}),[e,r])}(o),u=bm(o,n);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)("li",{...s,children:[(0,Je.jsx)(ot.RichText,{ref:(0,Ut.useMergeRefs)([l,c]),identifier:"content",tagName:"div",onChange:e=>t({content:e}),value:a,"aria-label":(0,tt.__)("List text"),placeholder:r||(0,tt.__)("List"),onMerge:u}),s.children]}),(0,Je.jsx)(ot.BlockControls,{group:"block",children:(0,Je.jsx)(_m,{clientId:o})})]})},save:function({attributes:e}){return(0,Je.jsxs)("li",{...ot.useBlockProps.save(),children:[(0,Je.jsx)(ot.RichText.Content,{value:e.content}),(0,Je.jsx)(ot.InnerBlocks.Content,{})]})},merge:(e,t)=>({...e,content:e.content+t.content}),transforms:vm,[Ht(ot.privateApis).requiresWrapperOnCopy]:!0},Cm=()=>Xe({name:km,metadata:fm,settings:wm}),jm=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"})});const Sm={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/loginout",title:"Login/out",category:"theme",description:"Show login & logout links.",keywords:["login","logout","form"],textdomain:"default",attributes:{displayLoginAsForm:{type:"boolean",default:!1},redirectToCurrent:{type:"boolean",default:!0}},supports:{className:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Bm}=Sm,Nm={icon:jm,edit:function({attributes:e,setAttributes:t}){const{displayLoginAsForm:o,redirectToCurrent:n}=e;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display login as form"),checked:o,onChange:()=>t({displayLoginAsForm:!o})}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Redirect to current URL"),checked:n,onChange:()=>t({redirectToCurrent:!n})})]})}),(0,Je.jsx)("div",{...(0,ot.useBlockProps)({className:"logged-in"}),children:(0,Je.jsx)("a",{href:"#login-pseudo-link",children:(0,tt.__)("Log out")})})]})}},Tm=()=>Xe({name:Bm,metadata:Sm,settings:Nm}),Im=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})}),Pm="full",Mm="media",zm="attachment",Rm=[["core/paragraph",{placeholder:(0,tt._x)("Content…","content placeholder")}]],Am=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${100*t.x}% ${100*t.y}%`:"50% 50%"}:{},Lm=50,Hm=()=>{},Dm=e=>{if(!e.customBackgroundColor)return e;const t={color:{background:e.customBackgroundColor}},{customBackgroundColor:o,...n}=e;return{...n,style:t}},Fm=e=>e.align?e:{...e,align:"wide"},Vm={align:{type:"string",default:"wide"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},Em={...Vm,isStackedOnMobile:{type:"boolean",default:!0},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},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"},mediaSizeSlug:{type:"string"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},$m={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},Gm={attributes:{...Em,mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",__experimentalRole:"content"},mediaId:{type:"number",__experimentalRole:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",__experimentalRole:"content"},mediaType:{type:"string",__experimentalRole:"content"}},supports:{...$m,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Pm,x=g||void 0,b=dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r});let _=(0,Je.jsx)("img",{src:a,alt:o,className:b||null});p&&(_=(0,Je.jsx)("a",{className:d,href:p,target:m,rel:x,children:_}));const y={image:()=>_,video:()=>(0,Je.jsx)("video",{controls:!0,src:a})},v=dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill":c}),f=c?((e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(100*t.x)}% ${Math.round(100*t.y)}%`:"50% 50%"}:{})(a,u):{};let k;i!==Lm&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return"right"===n?(0,Je.jsxs)("div",{...ot.useBlockProps.save({className:v,style:w}),children:[(0,Je.jsx)("div",{...ot.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Je.jsx)("figure",{className:"wp-block-media-text__media",style:f,children:(y[r]||Hm)()})]}):(0,Je.jsxs)("div",{...ot.useBlockProps.save({className:v,style:w}),children:[(0,Je.jsx)("figure",{className:"wp-block-media-text__media",style:f,children:(y[r]||Hm)()}),(0,Je.jsx)("div",{...ot.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Fm,isEligible(e,t,{block:o}){const{attributes:n}=o;return void 0===e.align&&!!n.className?.includes("alignwide")}},Om={attributes:Em,supports:$m,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Pm,x=g||void 0,b=dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r});let _=(0,Je.jsx)("img",{src:a,alt:o,className:b||null});p&&(_=(0,Je.jsx)("a",{className:d,href:p,target:m,rel:x,children:_}));const y={image:()=>_,video:()=>(0,Je.jsx)("video",{controls:!0,src:a})},v=dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill":c}),f=c?Am(a,u):{};let k;i!==Lm&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return"right"===n?(0,Je.jsxs)("div",{...ot.useBlockProps.save({className:v,style:w}),children:[(0,Je.jsx)("div",{...ot.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Je.jsx)("figure",{className:"wp-block-media-text__media",style:f,children:(y[r]||Hm)()})]}):(0,Je.jsxs)("div",{...ot.useBlockProps.save({className:v,style:w}),children:[(0,Je.jsx)("figure",{className:"wp-block-media-text__media",style:f,children:(y[r]||Hm)()}),(0,Je.jsx)("div",{...ot.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Fm},Um={attributes:Em,supports:$m,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Pm,x=g||void 0,b=dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r});let _=(0,Je.jsx)("img",{src:a,alt:o,className:b||null});p&&(_=(0,Je.jsx)("a",{className:d,href:p,target:m,rel:x,children:_}));const y={image:()=>_,video:()=>(0,Je.jsx)("video",{controls:!0,src:a})},v=dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill":c}),f=c?Am(a,u):{};let k;i!==Lm&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return(0,Je.jsxs)("div",{...ot.useBlockProps.save({className:v,style:w}),children:[(0,Je.jsx)("figure",{className:"wp-block-media-text__media",style:f,children:(y[r]||Hm)()}),(0,Je.jsx)("div",{...ot.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Fm},qm={attributes:{...Vm,isStackedOnMobile:{type:"boolean",default:!0},backgroundColor:{type:"string"},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"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:(0,Ut.compose)(Dm,Fm),save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:n,mediaAlt:r,mediaPosition:a,mediaType:i,mediaUrl:s,mediaWidth:l,mediaId:c,verticalAlignment:u,imageFill:d,focalPoint:p,linkClass:m,href:g,linkTarget:h,rel:x}=e,b=x||void 0;let _=(0,Je.jsx)("img",{src:s,alt:r,className:c&&"image"===i?`wp-image-${c}`:null});g&&(_=(0,Je.jsx)("a",{className:m,href:g,target:h,rel:b,children:_}));const y={image:()=>_,video:()=>(0,Je.jsx)("video",{controls:!0,src:s})},v=(0,ot.getColorClassName)("background-color",t),f=dt({"has-media-on-the-right":"right"===a,"has-background":v||o,[v]:v,"is-stacked-on-mobile":n,[`is-vertically-aligned-${u}`]:u,"is-image-fill":d}),k=d?Am(s,p):{};let w;l!==Lm&&(w="right"===a?`auto ${l}%`:`${l}% auto`);const C={backgroundColor:v?void 0:o,gridTemplateColumns:w};return(0,Je.jsxs)("div",{className:f,style:C,children:[(0,Je.jsx)("figure",{className:"wp-block-media-text__media",style:k,children:(y[i]||Hm)()}),(0,Je.jsx)("div",{className:"wp-block-media-text__content",children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})]})}},Wm={attributes:{...Vm,backgroundColor:{type:"string"},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:(0,Ut.compose)(Dm,Fm),save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:n,mediaAlt:r,mediaPosition:a,mediaType:i,mediaUrl:s,mediaWidth:l,mediaId:c,verticalAlignment:u,imageFill:d,focalPoint:p}=e,m={image:()=>(0,Je.jsx)("img",{src:s,alt:r,className:c&&"image"===i?`wp-image-${c}`:null}),video:()=>(0,Je.jsx)("video",{controls:!0,src:s})},g=(0,ot.getColorClassName)("background-color",t),h=dt({"has-media-on-the-right":"right"===a,[g]:g,"is-stacked-on-mobile":n,[`is-vertically-aligned-${u}`]:u,"is-image-fill":d}),x=d?Am(s,p):{};let b;l!==Lm&&(b="right"===a?`auto ${l}%`:`${l}% auto`);const _={backgroundColor:g?void 0:o,gridTemplateColumns:b};return(0,Je.jsxs)("div",{className:h,style:_,children:[(0,Je.jsx)("figure",{className:"wp-block-media-text__media",style:x,children:(m[i]||Hm)()}),(0,Je.jsx)("div",{className:"wp-block-media-text__content",children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})]})}},Zm={attributes:{...Vm,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:Fm,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:n,mediaAlt:r,mediaPosition:a,mediaType:i,mediaUrl:s,mediaWidth:l}=e,c={image:()=>(0,Je.jsx)("img",{src:s,alt:r}),video:()=>(0,Je.jsx)("video",{controls:!0,src:s})},u=(0,ot.getColorClassName)("background-color",t),d=dt({"has-media-on-the-right":"right"===a,[u]:u,"is-stacked-on-mobile":n});let p;l!==Lm&&(p="right"===a?`auto ${l}%`:`${l}% auto`);const m={backgroundColor:u?void 0:o,gridTemplateColumns:p};return(0,Je.jsxs)("div",{className:d,style:m,children:[(0,Je.jsx)("figure",{className:"wp-block-media-text__media",children:(c[i]||Hm)()}),(0,Je.jsx)("div",{className:"wp-block-media-text__content",children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})]})}},Qm=[Gm,Om,Um,qm,Wm,Zm],Km=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})}),Jm=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})}),Ym=(0,Je.jsxs)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Je.jsx)(Ke.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,Je.jsx)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})]}),Xm=["image","video"],eg=()=>{};function tg(e,t){return e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(100*t.x)}% ${Math.round(100*t.y)}%`:"50% 50%"}:{}}const og=(0,bt.forwardRef)((({isSelected:e,isStackedOnMobile:t,...o},n)=>{const r=(0,Ut.useViewportMatch)("small","<");return(0,Je.jsx)(et.ResizableBox,{ref:n,showHandle:e&&(!r||!t),...o})}));function ng({mediaId:e,mediaUrl:t,onSelectMedia:o,toggleUseFeaturedImage:n,useFeaturedImage:r,featuredImageURL:a}){return(0,Je.jsx)(ot.BlockControls,{group:"other",children:(0,Je.jsx)(ot.MediaReplaceFlow,{mediaId:e,mediaUrl:r&&a?a:t,allowedTypes:Xm,accept:"image/*,video/*",onSelect:o,onToggleFeaturedImage:n,useFeaturedImage:r})})}function rg({className:e,mediaUrl:t,onSelectMedia:o,toggleUseFeaturedImage:n}){const{createErrorNotice:r}=(0,gt.useDispatch)(Pt.store);return(0,Je.jsx)(ot.MediaPlaceholder,{icon:(0,Je.jsx)(ot.BlockIcon,{icon:Ym}),labels:{title:(0,tt.__)("Media area")},className:e,onSelect:o,accept:"image/*,video/*",onToggleFeaturedImage:n,allowedTypes:Xm,onError:e=>{r(e,{type:"snackbar"})},disableMediaButtons:t})}const ag=(0,bt.forwardRef)((function(e,t){const{className:o,commitWidthChange:n,focalPoint:r,imageFill:a,isSelected:i,isStackedOnMobile:s,mediaAlt:l,mediaId:c,mediaPosition:u,mediaType:d,mediaUrl:p,mediaWidth:m,onSelectMedia:g,onWidthChange:h,enableResize:x,toggleUseFeaturedImage:b,useFeaturedImage:_,featuredImageURL:y,featuredImageAlt:v}=e,f=!c&&(0,It.isBlobURL)(p),{toggleSelection:k}=(0,gt.useDispatch)(ot.store);if(p||y||_){const w=()=>{k(!1)},C=(e,t,o)=>{h(parseInt(o.style.width))},j=(e,t,o)=>{k(!0),n(parseInt(o.style.width))},S={right:x&&"left"===u,left:x&&"right"===u},B="image"===d&&a?tg(p||y,r):{},N={image:()=>_&&y?(0,Je.jsx)("img",{src:y,alt:v}):p&&(0,Je.jsx)("img",{src:p,alt:l}),video:()=>(0,Je.jsx)("video",{controls:!0,src:p})};return(0,Je.jsxs)(og,{as:"figure",className:dt(o,"editor-media-container__resizer",{"is-transient":f}),style:B,size:{width:m+"%"},minWidth:"10%",maxWidth:"100%",enable:S,onResizeStart:w,onResize:C,onResizeStop:j,axis:"x",isSelected:i,isStackedOnMobile:s,ref:t,children:[(0,Je.jsx)(ng,{onSelectMedia:g,mediaUrl:_&&y?y:p,mediaId:c,toggleUseFeaturedImage:b,useFeaturedImage:_}),(N[d]||eg)(),f&&(0,Je.jsx)(et.Spinner,{}),!_&&(0,Je.jsx)(rg,{...e}),!y&&_&&(0,Je.jsx)(et.Placeholder,{className:"wp-block-media-text--placeholder-image",withIllustration:!0})]})}return(0,Je.jsx)(rg,{...e})})),{ResolutionTool:ig}=Ht(ot.privateApis),sg=e=>Math.max(15,Math.min(e,85));function lg(e,t){return e?.media_details?.sizes?.[t]?.source_url}const cg=function({attributes:e,isSelected:t,setAttributes:o,context:{postId:n,postType:r}}){const{focalPoint:a,href:i,imageFill:s,isStackedOnMobile:l,linkClass:c,linkDestination:u,linkTarget:d,mediaAlt:p,mediaId:m,mediaPosition:g,mediaType:h,mediaUrl:x,mediaWidth:b,rel:_,verticalAlignment:y,allowedBlocks:v,useFeaturedImage:f}=e,k=e.mediaSizeSlug||Pm,[w]=(0,mt.useEntityProp)("postType",r,"featured_media",n),C=(0,gt.useSelect)((e=>w&&e(mt.store).getMedia(w,{context:"view"})),[w]),j=f?C?.source_url:"",S=f?C?.alt_text:"",{imageSizes:B,image:N}=(0,gt.useSelect)((e=>{const{getSettings:o}=e(ot.store);return{image:m&&t?e(mt.store).getMedia(m,{context:"view"}):null,imageSizes:o()?.imageSizes}}),[t,m]),T=(0,bt.useRef)(),I=e=>{const{style:t}=T.current.resizable,{x:o,y:n}=e;t.backgroundPosition=`${100*o}% ${100*n}%`},[P,M]=(0,bt.useState)(null),z=function({attributes:{linkDestination:e,href:t},setAttributes:o}){return n=>{if(!n||!n.url)return void o({mediaAlt:void 0,mediaId:void 0,mediaType:void 0,mediaUrl:void 0,mediaLink:void 0,href:void 0,focalPoint:void 0});let r,a;(0,It.isBlobURL)(n.url)&&(n.type=(0,It.getBlobTypeByURL)(n.url)),r=n.media_type?"image"===n.media_type?"image":"video":n.type,"image"===r&&(a=n.sizes?.large?.url||n.media_details?.sizes?.large?.source_url);let i=t;e===Mm&&(i=n.url),e===zm&&(i=n.link),o({mediaAlt:n.alt,mediaId:n.id,mediaType:r,mediaUrl:a||n.url,mediaLink:n.link||void 0,href:i,focalPoint:void 0})}}({attributes:e,setAttributes:o}),R=e=>{o({mediaWidth:sg(e)}),M(null)},A=dt({"has-media-on-the-right":"right"===g,"is-selected":t,"is-stacked-on-mobile":l,[`is-vertically-aligned-${y}`]:y,"is-image-fill":s}),L=`${P||b}%`,H="right"===g?`1fr ${L}`:`${L} 1fr`,D={gridTemplateColumns:H,msGridColumns:H},F=B.filter((({slug:e})=>lg(N,e))).map((({name:e,slug:t})=>({value:t,label:e}))),V=Zt(),E=(0,Je.jsxs)(et.__experimentalToolsPanel,{label:(0,tt.__)("Settings"),resetAll:()=>{o({isStackedOnMobile:!0,imageFill:!1,mediaAlt:"",focalPoint:void 0,mediaWidth:50,mediaSizeSlug:void 0})},dropdownMenuProps:V,children:[(0,Je.jsx)(et.__experimentalToolsPanelItem,{label:(0,tt.__)("Media width"),isShownByDefault:!0,hasValue:()=>50!==b,onDeselect:()=>o({mediaWidth:50}),children:(0,Je.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Media width"),value:P||b,onChange:R,min:15,max:85})}),(0,Je.jsx)(et.__experimentalToolsPanelItem,{label:(0,tt.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!l,onDeselect:()=>o({isStackedOnMobile:!0}),children:(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Stack on mobile"),checked:l,onChange:()=>o({isStackedOnMobile:!l})})}),"image"===h&&(0,Je.jsx)(et.__experimentalToolsPanelItem,{label:(0,tt.__)("Crop image to fill"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>o({imageFill:!1}),children:(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Crop image to fill"),checked:!!s,onChange:()=>o({imageFill:!s})})}),s&&(x||j)&&"image"===h&&(0,Je.jsx)(et.__experimentalToolsPanelItem,{label:(0,tt.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>o({focalPoint:void 0}),children:(0,Je.jsx)(et.FocalPointPicker,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Focal point"),url:f&&j?j:x,value:a,onChange:e=>o({focalPoint:e}),onDragStart:I,onDrag:I})}),"image"===h&&x&&!f&&(0,Je.jsx)(et.__experimentalToolsPanelItem,{label:(0,tt.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!p,onDeselect:()=>o({mediaAlt:""}),children:(0,Je.jsx)(et.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Alternative text"),value:p,onChange:e=>{o({mediaAlt:e})},help:(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.ExternalLink,{href:(0,tt.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,tt.__)("Describe the purpose of the image.")}),(0,Je.jsx)("br",{}),(0,tt.__)("Leave empty if decorative.")]})})}),"image"===h&&!f&&(0,Je.jsx)(ig,{value:k,options:F,onChange:e=>{const t=lg(N,e);if(!t)return null;o({mediaUrl:t,mediaSizeSlug:e})}})]}),$=(0,ot.useBlockProps)({className:A,style:D}),G=(0,ot.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:Rm,allowedBlocks:v}),O=(0,ot.useBlockEditingMode)();return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{children:E}),(0,Je.jsxs)(ot.BlockControls,{group:"block",children:["default"===O&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockVerticalAlignmentControl,{onChange:e=>{o({verticalAlignment:e})},value:y}),(0,Je.jsx)(et.ToolbarButton,{icon:Km,title:(0,tt.__)("Show media on left"),isActive:"left"===g,onClick:()=>o({mediaPosition:"left"})}),(0,Je.jsx)(et.ToolbarButton,{icon:Jm,title:(0,tt.__)("Show media on right"),isActive:"right"===g,onClick:()=>o({mediaPosition:"right"})})]}),"image"===h&&!f&&(0,Je.jsx)(ot.__experimentalImageURLInputUI,{url:i||"",onChangeUrl:e=>{o(e)},linkDestination:u,mediaType:h,mediaUrl:N&&N.source_url,mediaLink:N&&N.link,linkTarget:d,linkClass:c,rel:_})]}),(0,Je.jsxs)("div",{...$,children:["right"===g&&(0,Je.jsx)("div",{...G}),(0,Je.jsx)(ag,{className:"wp-block-media-text__media",onSelectMedia:z,onWidthChange:e=>{M(sg(e))},commitWidthChange:R,ref:T,enableResize:"default"===O,toggleUseFeaturedImage:()=>{o({imageFill:!1,mediaType:"image",mediaId:void 0,mediaUrl:void 0,mediaAlt:void 0,mediaLink:void 0,linkDestination:void 0,linkTarget:void 0,linkClass:void 0,rel:void 0,href:void 0,useFeaturedImage:!f})},focalPoint:a,imageFill:s,isSelected:t,isStackedOnMobile:l,mediaAlt:p,mediaId:m,mediaPosition:g,mediaType:h,mediaUrl:x,mediaWidth:b,useFeaturedImage:f,featuredImageURL:j,featuredImageAlt:S}),"right"!==g&&(0,Je.jsx)("div",{...G})]})]})},ug=()=>{};const dg={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:o,anchor:n})=>(0,Qe.createBlock)("core/media-text",{mediaAlt:e,mediaId:o,mediaUrl:t,mediaType:"image",anchor:n})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:o})=>(0,Qe.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:o})},{type:"block",blocks:["core/cover"],transform:({align:e,alt:t,anchor:o,backgroundType:n,customGradient:r,customOverlayColor:a,gradient:i,id:s,overlayColor:l,style:c,textColor:u,url:d},p)=>{let m={};return r?m={style:{color:{gradient:r}}}:a&&(m={style:{color:{background:a}}}),c?.color?.text&&(m.style={color:{...m.style?.color,text:c.color.text}}),(0,Qe.createBlock)("core/media-text",{align:e,anchor:o,backgroundColor:l,gradient:i,mediaAlt:t,mediaId:s,mediaType:n,mediaUrl:d,textColor:u,...m},p)}}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"image"===e,transform:({mediaAlt:e,mediaId:t,mediaUrl:o,anchor:n})=>(0,Qe.createBlock)("core/image",{alt:e,id:t,url:o,anchor:n})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"video"===e,transform:({mediaId:e,mediaUrl:t,anchor:o})=>(0,Qe.createBlock)("core/video",{id:e,src:t,anchor:o})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:o,focalPoint:n,gradient:r,mediaAlt:a,mediaId:i,mediaType:s,mediaUrl:l,style:c,textColor:u},d)=>{const p={};c?.color?.gradient?p.customGradient=c.color.gradient:c?.color?.background&&(p.customOverlayColor=c.color.background),c?.color?.text&&(p.style={color:{text:c.color.text}});const m={align:e,alt:a,anchor:t,backgroundType:s,dimRatio:l?50:100,focalPoint:n,gradient:r,id:i,overlayColor:o,textColor:u,url:l,...p};return(0,Qe.createBlock)("core/cover",m,d)}}]},pg=dg,mg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/media-text",title:"Media & Text",category:"media",description:"Set media and words side-by-side for a richer layout.",keywords:["image","video"],textdomain:"default",attributes:{align:{type:"string",default:"none"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",__experimentalRole:"content"},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number",__experimentalRole:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",__experimentalRole:"content"},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",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaType:{type:"string",__experimentalRole:"content"},mediaWidth:{type:"number",default:50},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"},allowedBlocks:{type:"array"},useFeaturedImage:{type:"boolean",default:!1}},usesContext:["postId","postType"],supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-media-text-editor",style:"wp-block-media-text"},{name:gg}=mg,hg={icon:Im,example:{viewportWidth:601,attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,tt.__)("— Kobayashi Issa (一茶)")}}]},transforms:pg,edit:cg,save:function({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Pm,x=g||void 0,b=dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r});let _=a?(0,Je.jsx)("img",{src:a,alt:o,className:b||null}):null;p&&(_=(0,Je.jsx)("a",{className:d,href:p,target:m,rel:x,children:_}));const y={image:()=>_,video:()=>(0,Je.jsx)("video",{controls:!0,src:a})},v=dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill":c}),f=c?tg(a,u):{};let k;50!==i&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return"right"===n?(0,Je.jsxs)("div",{...ot.useBlockProps.save({className:v,style:w}),children:[(0,Je.jsx)("div",{...ot.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Je.jsx)("figure",{className:"wp-block-media-text__media",style:f,children:(y[r]||ug)()})]}):(0,Je.jsxs)("div",{...ot.useBlockProps.save({className:v,style:w}),children:[(0,Je.jsx)("figure",{className:"wp-block-media-text__media",style:f,children:(y[r]||ug)()}),(0,Je.jsx)("div",{...ot.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},deprecated:Qm},xg=()=>Xe({name:gg,metadata:mg,settings:hg});const bg=(0,gt.withDispatch)(((e,{clientId:t,attributes:o})=>{const{replaceBlock:n}=e(ot.store);return{convertToHTML(){n(t,(0,Qe.createBlock)("core/html",{content:o.originalUndelimitedContent}))}}}))((function({attributes:e,convertToHTML:t,clientId:o}){const{originalName:n,originalUndelimitedContent:r}=e,a=!!r,{hasFreeformBlock:i,hasHTMLBlock:s}=(0,gt.useSelect)((e=>{const{canInsertBlockType:t,getBlockRootClientId:n}=e(ot.store);return{hasFreeformBlock:t("core/freeform",n(o)),hasHTMLBlock:t("core/html",n(o))}}),[o]),l=[];let c;const u=(0,Je.jsx)(et.Button,{onClick:t,variant:"primary",children:(0,tt.__)("Keep as HTML")},"convert");return!a||i||n?a&&s?(c=(0,tt.sprintf)((0,tt.__)('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.'),n),l.push(u)):c=(0,tt.sprintf)((0,tt.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),n):s?(c=(0,tt.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely. Alternatively, you can refresh the page to use the Classic block."),l.push(u)):c=(0,tt.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, or remove it entirely. Alternatively, you can refresh the page to use the Classic block."),(0,Je.jsxs)("div",{...(0,ot.useBlockProps)({className:"has-warning"}),children:[(0,Je.jsx)(ot.Warning,{actions:l,children:c}),(0,Je.jsx)(bt.RawHTML,{children:(0,sc.safeHTML)(r)})]})})),_g=bg;const yg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/missing",title:"Unsupported",category:"text",description:"Your site doesn’t include support for this block.",textdomain:"default",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1,interactivity:{clientNavigation:!0}}},{name:vg}=yg,fg={name:vg,__experimentalLabel(e,{context:t}){if("accessibility"===t){const{originalName:t}=e,o=t?(0,Qe.getBlockType)(t):void 0;return o?o.settings.title||t:""}},edit:_g,save:function({attributes:e}){return(0,Je.jsx)(bt.RawHTML,{children:e.originalContent})}},kg=()=>Xe({name:vg,metadata:yg,settings:fg}),wg=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})}),Cg=(0,tt.__)("Read more");const jg={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/more"===e.dataset.block,transform(e){const{customText:t,noTeaser:o}=e.dataset,n={};return t&&(n.customText=t),""===o&&(n.noTeaser=!0),(0,Qe.createBlock)("core/more",n)}}]},Sg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/more",title:"More",category:"design",description:"Content before this block will be shown in the excerpt on your archives page.",keywords:["read more"],textdomain:"default",attributes:{customText:{type:"string",default:""},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-more-editor"},{name:Bg}=Sg,Ng={icon:wg,example:{},__experimentalLabel(e,{context:t}){const o=e?.metadata?.name;return"list-view"===t&&o?o:"accessibility"===t?e.customText:void 0},transforms:jg,edit:function({attributes:{customText:e,noTeaser:t},insertBlocksAfter:o,setAttributes:n}){const r={width:`${(e||Cg).length+1.2}em`};return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(et.PanelBody,{children:(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>n({noTeaser:!t}),help:e=>e?(0,tt.__)("The excerpt is hidden."):(0,tt.__)("The excerpt is visible.")})})}),(0,Je.jsx)("div",{...(0,ot.useBlockProps)(),children:(0,Je.jsx)("input",{"aria-label":(0,tt.__)("“Read more” link text"),type:"text",value:e,placeholder:Cg,onChange:e=>{n({customText:e.target.value})},onKeyDown:({keyCode:e})=>{e===fo.ENTER&&o([(0,Qe.createBlock)((0,Qe.getDefaultBlockName)())])},style:r})})]})},save:function({attributes:{customText:e,noTeaser:t}}){const o=e?`\x3c!--more ${e}--\x3e`:"\x3c!--more--\x3e",n=t?"\x3c!--noteaser--\x3e":"";return(0,Je.jsx)(bt.RawHTML,{children:[o,n].filter(Boolean).join("\n")})}},Tg=()=>Xe({name:Bg,metadata:Sg,settings:Ng}),Ig=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})}),Pg=window.wp.a11y;const Mg=(0,bt.forwardRef)((function({icon:e,size:t=24,...o},n){return(0,bt.cloneElement)(e,{width:t,height:t,...o,ref:n})})),zg=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.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"})}),Rg={name:"core/navigation-link"},Ag=["core/navigation-link/page","core/navigation-link"],Lg={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},Hg=["postType","wp_navigation",Lg];function Dg(e){const t=(0,mt.useResourcePermissions)("navigation",e),{navigationMenu:o,isNavigationMenuResolved:n,isNavigationMenuMissing:r}=(0,gt.useSelect)((t=>function(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};const{getEntityRecord:o,getEditedEntityRecord:n,hasFinishedResolution:r}=e(mt.store),a=["postType","wp_navigation",t],i=o(...a),s=n(...a),l=r("getEditedEntityRecord",a),c="publish"===s.status||"draft"===s.status;return{isNavigationMenuResolved:l,isNavigationMenuMissing:l&&(!i||!c),navigationMenu:c?s:null}}(t,e)),[e]),{canCreate:a,canUpdate:i,canDelete:s,isResolving:l,hasResolved:c}=t,{records:u,isResolving:d,hasResolved:p}=(0,mt.useEntityRecords)("postType","wp_navigation",Lg);return{navigationMenu:o,isNavigationMenuResolved:n,isNavigationMenuMissing:r,navigationMenus:u,isResolvingNavigationMenus:d,hasResolvedNavigationMenus:p,canSwitchNavigationMenu:e?u?.length>1:u?.length>0,canUserCreateNavigationMenus:a,isResolvingCanUserCreateNavigationMenus:l,hasResolvedCanUserCreateNavigationMenus:c,canUserUpdateNavigationMenu:i,hasResolvedCanUserUpdateNavigationMenu:e?c:void 0,canUserDeleteNavigationMenu:s,hasResolvedCanUserDeleteNavigationMenu:e?c:void 0}}function Fg(e){const{records:t,isResolving:o,hasResolved:n}=(0,mt.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{records:r,isResolving:a,hasResolved:i}=(0,mt.useEntityRecords)("postType","page",{parent:0,order:"asc",orderby:"id",per_page:-1,context:"view"}),{records:s,hasResolved:l}=(0,mt.useEntityRecords)("root","menuItem",{menus:e,per_page:-1,context:"view"},{enabled:!!e});return{pages:r,isResolvingPages:a,hasResolvedPages:i,hasPages:!(!i||!r?.length),menus:t,isResolvingMenus:o,hasResolvedMenus:n,hasMenus:!(!n||!t?.length),menuItems:s,hasResolvedMenuItems:l}}const Vg=({isVisible:e=!0})=>(0,Je.jsx)("div",{"aria-hidden":!e||void 0,className:"wp-block-navigation-placeholder__preview",children:(0,Je.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,Je.jsx)(Mg,{icon:Ig}),(0,tt.__)("Navigation")]})}),Eg=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});const $g=function({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:o,onCreateNew:n,actionLabel:r,createNavigationMenuIsSuccess:a,createNavigationMenuIsError:i}){const s=(0,tt.__)("Create from '%s'"),[l,c]=(0,bt.useState)(!1);r=r||s;const{menus:u}=Fg(),{navigationMenus:d,isResolvingNavigationMenus:p,hasResolvedNavigationMenus:m,canUserCreateNavigationMenus:g,canSwitchNavigationMenu:h}=Dg(),[x]=(0,mt.useEntityProp)("postType","wp_navigation","title"),b=(0,bt.useMemo)((()=>d?.map((({id:e,title:t,status:o},n)=>{const a=function(e,t,o){return e?"publish"===o?(0,Xo.decodeEntities)(e):(0,tt.sprintf)((0,tt.__)("%1$s (%2$s)"),(0,Xo.decodeEntities)(e),o):(0,tt.sprintf)((0,tt.__)("(no title %s)"),t)}(t?.rendered,n+1,o);return{value:e,label:a,ariaLabel:(0,tt.sprintf)(r,a),disabled:l||p||!m}}))||[]),[d,r,p,m,l]),_=!!d?.length,y=!!u?.length,v=!!h,f=!!g,k=_&&!e,w=!_&&m,C=m&&null===e;let j="";j=p?(0,tt.__)("Loading…"):k||w||C?(0,tt.__)("Choose or create a Navigation Menu"):x,(0,bt.useEffect)((()=>{l&&(a||i)&&c(!1)}),[m,a,g,i,l,C,w,k]);const S=(0,Je.jsx)(et.DropdownMenu,{label:j,icon:Eg,toggleProps:{size:"small"},children:({onClose:r})=>(0,Je.jsxs)(Je.Fragment,{children:[v&&_&&(0,Je.jsx)(et.MenuGroup,{label:(0,tt.__)("Menus"),children:(0,Je.jsx)(et.MenuItemsChoice,{value:e,onSelect:e=>{t(e),r()},choices:b})}),f&&y&&(0,Je.jsx)(et.MenuGroup,{label:(0,tt.__)("Import Classic Menus"),children:u?.map((e=>{const t=(0,Xo.decodeEntities)(e.name);return(0,Je.jsx)(et.MenuItem,{onClick:async()=>{c(!0),await o(e),c(!1),r()},"aria-label":(0,tt.sprintf)(s,t),disabled:l||p||!m,children:t},e.id)}))}),g&&(0,Je.jsx)(et.MenuGroup,{label:(0,tt.__)("Tools"),children:(0,Je.jsx)(et.MenuItem,{onClick:async()=>{c(!0),await n(),c(!1),r()},disabled:l||p||!m,children:(0,tt.__)("Create new Menu")})})]})});return S};function Gg({isSelected:e,currentMenuId:t,clientId:o,canUserCreateNavigationMenus:n=!1,isResolvingCanUserCreateNavigationMenus:r,onSelectNavigationMenu:a,onSelectClassicMenu:i,onCreateEmpty:s}){const{isResolvingMenus:l,hasResolvedMenus:c}=Fg();(0,bt.useEffect)((()=>{e&&(l&&(0,Pg.speak)((0,tt.__)("Loading navigation block setup options…")),c&&(0,Pg.speak)((0,tt.__)("Navigation block setup options ready.")))}),[c,l,e]);const u=l&&r;return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(et.Placeholder,{className:"wp-block-navigation-placeholder",children:[(0,Je.jsx)(Vg,{isVisible:!e}),(0,Je.jsx)("div",{"aria-hidden":!e||void 0,className:"wp-block-navigation-placeholder__controls",children:(0,Je.jsxs)("div",{className:"wp-block-navigation-placeholder__actions",children:[(0,Je.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,Je.jsx)(Mg,{icon:Ig})," ",(0,tt.__)("Navigation")]}),(0,Je.jsx)("hr",{}),u&&(0,Je.jsx)(et.Spinner,{}),(0,Je.jsx)($g,{currentMenuId:t,clientId:o,onSelectNavigationMenu:a,onSelectClassicMenu:i}),(0,Je.jsx)("hr",{}),n&&(0,Je.jsx)(et.Button,{variant:"tertiary",onClick:s,children:(0,tt.__)("Start empty")})]})})]})})}const Og=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})});function Ug({icon:e}){return"menu"===e?(0,Je.jsx)(Mg,{icon:Og}):(0,Je.jsxs)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,Je.jsx)(Ke.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,Je.jsx)(Ke.Rect,{x:"4",y:"15",width:"16",height:"1.5"})]})}function qg({children:e,id:t,isOpen:o,isResponsive:n,onToggle:r,isHiddenByDefault:a,overlayBackgroundColor:i,overlayTextColor:s,hasIcon:l,icon:c}){if(!n)return e;const u=dt("wp-block-navigation__responsive-container",{"has-text-color":!!s.color||!!s?.class,[(0,ot.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!i.color||i?.class,[(0,ot.getColorClassName)("background-color",i?.slug)]:!!i?.slug,"is-menu-open":o,"hidden-by-default":a}),d={color:!s?.slug&&s?.color,backgroundColor:!i?.slug&&i?.color&&i.color},p=dt("wp-block-navigation__responsive-container-open",{"always-shown":a}),m=`${t}-modal`,g={className:"wp-block-navigation__responsive-dialog",...o&&{role:"dialog","aria-modal":!0,"aria-label":(0,tt.__)("Menu")}};return(0,Je.jsxs)(Je.Fragment,{children:[!o&&(0,Je.jsxs)(et.Button,{"aria-haspopup":"true","aria-label":l&&(0,tt.__)("Open menu"),className:p,onClick:()=>r(!0),children:[l&&(0,Je.jsx)(Ug,{icon:c}),!l&&(0,tt.__)("Menu")]}),(0,Je.jsx)("div",{className:u,style:d,id:m,children:(0,Je.jsx)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1",children:(0,Je.jsxs)("div",{...g,children:[(0,Je.jsxs)(et.Button,{className:"wp-block-navigation__responsive-container-close","aria-label":l&&(0,tt.__)("Close menu"),onClick:()=>r(!1),children:[l&&(0,Je.jsx)(Mg,{icon:zg}),!l&&(0,tt.__)("Close")]}),(0,Je.jsx)("div",{className:"wp-block-navigation__responsive-container-content",id:`${m}-content`,children:e})]})})})]})}function Wg({clientId:e,hasCustomPlaceholder:t,orientation:o,templateLock:n}){const{isImmediateParentOfSelectedBlock:r,selectedBlockHasChildren:a,isSelected:i}=(0,gt.useSelect)((t=>{const{getBlockCount:o,hasSelectedInnerBlock:n,getSelectedBlockClientId:r}=t(ot.store),a=r();return{isImmediateParentOfSelectedBlock:n(e,!1),selectedBlockHasChildren:!!o(a),isSelected:a===e}}),[e]),[s,l,c]=(0,mt.useEntityBlockEditor)("postType","wp_navigation"),u=i||r&&!a,d=(0,bt.useMemo)((()=>(0,Je.jsx)(Vg,{})),[]),p=!t&&!!!s?.length&&!i,m=(0,ot.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:s,onInput:l,onChange:c,prioritizedInserterBlocks:Ag,defaultBlock:Rg,directInsert:!0,orientation:o,templateLock:n,renderAppender:!!(i||r&&!a||u)&&ot.InnerBlocks.ButtonBlockAppender,placeholder:p?d:void 0,__experimentalCaptureToolbars:!0,__unstableDisableLayoutClassNames:!0});return(0,Je.jsx)("div",{...m})}function Zg(){const[e,t]=(0,mt.useEntityProp)("postType","wp_navigation","title");return(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Menu name"),value:e,onChange:t})}const Qg=(e,t,o)=>{if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){if(!t.hasOwnProperty(n))return!1;if(o&&o(n,e))return!0;if(!Qg(e[n],t[n],o))return!1}return!0}return!1},Kg={};function Jg({blocks:e,createNavigationMenu:t,hasSelection:o}){const n=(0,bt.useRef)();(0,bt.useEffect)((()=>{n?.current||(n.current=e)}),[e]);const r=function(e,t){return!Qg(e,t,((e,t)=>{if("core/page-list"===t?.name&&"innerBlocks"===e)return!0}))}(n?.current,e),a=(0,bt.useContext)(et.Disabled.Context),i=(0,ot.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:!!o&&void 0,defaultBlock:Rg,directInsert:!0}),{isSaving:s,hasResolvedAllNavigationMenus:l}=(0,gt.useSelect)((e=>{if(a)return Kg;const{hasFinishedResolution:t,isSavingEntityRecord:o}=e(mt.store);return{isSaving:o("postType","wp_navigation"),hasResolvedAllNavigationMenus:t("getEntityRecords",Hg)}}),[a]);(0,bt.useEffect)((()=>{!a&&!s&&l&&o&&r&&t(null,e)}),[e,t,a,s,l,r,o]);const c=s?et.Disabled:"div";return(0,Je.jsx)(c,{...i})}function Yg({onDelete:e}){const[t,o]=(0,bt.useState)(!1),n=(0,mt.useEntityId)("postType","wp_navigation"),{deleteEntityRecord:r}=(0,gt.useDispatch)(mt.store);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.Button,{className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{o(!0)},children:(0,tt.__)("Delete menu")}),t&&(0,Je.jsx)(et.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{r("postType","wp_navigation",n,{force:!0}),e()},onCancel:()=>{o(!1)},confirmButtonText:(0,tt.__)("Delete"),children:(0,tt.__)("Are you sure you want to delete this Navigation Menu?")})]})}const Xg=function({name:e,message:t=""}={}){const o=(0,bt.useRef)(),{createWarningNotice:n,removeNotice:r}=(0,gt.useDispatch)(Pt.store);return[(0,bt.useCallback)((r=>{o.current||(o.current=e,n(r||t,{id:o.current,type:"snackbar"}))}),[o,n,t,e]),(0,bt.useCallback)((()=>{o.current&&(r(o.current),o.current=null)}),[o,r])]};function eh({setAttributes:e,hasIcon:t,icon:o}){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show icon button"),help:(0,tt.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:t=>e({hasIcon:t}),checked:t}),(0,Je.jsxs)(et.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Icon"),value:o,onChange:t=>e({icon:t}),isBlock:!0,children:[(0,Je.jsx)(et.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,tt.__)("handle"),label:(0,Je.jsx)(Ug,{icon:"handle"})}),(0,Je.jsx)(et.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,tt.__)("menu"),label:(0,Je.jsx)(Ug,{icon:"menu"})})]})]})}function th(e){if(!e)return null;const t=oh(function(e,t="id",o="parent"){const n=Object.create(null),r=[];for(const a of e)n[a[t]]={...a,children:[]},a[o]?(n[a[o]]=n[a[o]]||{},n[a[o]].children=n[a[o]].children||[],n[a[o]].children.push(n[a[t]])):r.push(n[a[t]]);return r}(e));return(0,fs.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",t,e)}function oh(e,t=0){let o={};const n=[...e].sort(((e,t)=>e.menu_order-t.menu_order)),r=n.map((e=>{if("block"===e.type){const[t]=(0,Qe.parse)(e.content.raw);return t||(0,Qe.createBlock)("core/freeform",{content:e.content})}const n=e.children?.length?"core/navigation-submenu":"core/navigation-link",r=function({title:e,xfn:t,classes:o,attr_title:n,object:r,object_id:a,description:i,url:s,type:l,target:c},u,d){r&&"post_tag"===r&&(r="tag");return{label:e?.rendered||"",...r?.length&&{type:r},kind:l?.replace("_","-")||"custom",url:s||"",...t?.length&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...o?.length&&o.join(" ").trim()&&{className:o.join(" ").trim()},...n?.length&&{title:n},...a&&"custom"!==r&&{id:a},...i?.length&&{description:i},..."_blank"===c&&{opensInNewTab:!0},..."core/navigation-submenu"===u&&{isTopLevelItem:0===d},..."core/navigation-link"===u&&{isTopLevelLink:0===d}}}(e,n,t),{innerBlocks:a=[],mapping:i={}}=e.children?.length?oh(e.children,t+1):{};o={...o,...i};const s=(0,Qe.createBlock)(n,r,a);return o[e.id]=s.clientId,s}));return{innerBlocks:r,mapping:o}}const nh="success",rh="error",ah="pending";let ih=null;const sh=function(e,{throwOnError:t=!1}={}){const o=(0,gt.useRegistry)(),{editEntityRecord:n}=(0,gt.useDispatch)(mt.store),[r,a]=(0,bt.useState)("idle"),[i,s]=(0,bt.useState)(null),l=(0,bt.useCallback)((async(t,r,a="publish")=>{let i,s;try{s=await o.resolveSelect(mt.store).getMenuItems({menus:t,per_page:-1,context:"view"})}catch(e){throw new Error((0,tt.sprintf)((0,tt.__)('Unable to fetch classic menu "%s" from API.'),r),{cause:e})}if(null===s)throw new Error((0,tt.sprintf)((0,tt.__)('Unable to fetch classic menu "%s" from API.'),r));const{innerBlocks:l}=th(s);try{i=await e(r,l,a),await n("postType","wp_navigation",i.id,{status:"publish"},{throwOnError:!0})}catch(e){throw new Error((0,tt.sprintf)((0,tt.__)('Unable to create Navigation Menu "%s".'),r),{cause:e})}return i}),[e,n,o]);return{convert:(0,bt.useCallback)((async(e,o,n)=>{if(ih!==e)return ih=e,e&&o?(a(ah),s(null),await l(e,o,n).then((e=>(a(nh),ih=null,e))).catch((e=>{if(s(e?.message),a(rh),ih=null,t)throw new Error((0,tt.sprintf)((0,tt.__)('Unable to create Navigation Menu "%s".'),o),{cause:e})}))):(s("Unable to convert menu. Missing menu details."),void a(rh))}),[l,t]),status:r,error:i}};function lh(e,t){return e&&t?e+"//"+t:null}const ch=["postType","wp_navigation",{status:"draft",per_page:-1}],uh=["postType","wp_navigation",{per_page:-1,status:"publish"}];function dh(e){const t=(0,bt.useContext)(et.Disabled.Context),o=function(e){return(0,gt.useSelect)((t=>{if(!e)return;const{getBlock:o,getBlockParentsByBlockName:n}=t(ot.store),r=n(e,"core/template-part",!0);if(!r?.length)return;const a=t("core/editor").__experimentalGetDefaultTemplatePartAreas(),{getCurrentTheme:i,getEditedEntityRecord:s}=t(mt.store);for(const e of r){const t=o(e),{theme:n=i()?.stylesheet,slug:r}=t.attributes,l=s("postType","wp_template_part",lh(n,r));if(l?.area)return a.find((e=>"uncategorized"!==e.area&&e.area===l.area))?.label}}),[e])}(t?void 0:e),n=(0,gt.useRegistry)();return(0,bt.useCallback)((async()=>{if(t)return"";const{getEntityRecords:e}=n.resolveSelect(mt.store),[r,a]=await Promise.all([e(...ch),e(...uh)]),i=o?(0,tt.sprintf)((0,tt.__)("%s navigation"),o):(0,tt.__)("Navigation"),s=[...r,...a].reduce(((e,t)=>t?.title?.raw?.startsWith(i)?e+1:e),0);return(s>0?`${i} ${s+1}`:i)||""}),[t,o,n])}const ph="success",mh="error",gh="pending",hh="idle";const xh=[];function bh(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function _h(e,t,o){if(!e)return;t(bh(e).color);let n=e,r=bh(n).backgroundColor;for(;"rgba(0, 0, 0, 0)"===r&&n.parentNode&&n.parentNode.nodeType===n.parentNode.ELEMENT_NODE;)n=n.parentNode,r=bh(n).backgroundColor;o(r)}function yh(e,t){const{textColor:o,customTextColor:n,backgroundColor:r,customBackgroundColor:a,overlayTextColor:i,customOverlayTextColor:s,overlayBackgroundColor:l,customOverlayBackgroundColor:c,style:u}=e,d={};return t&&s?d.customTextColor=s:t&&i?d.textColor=i:n?d.customTextColor=n:o?d.textColor=o:u?.color?.text&&(d.customTextColor=u.color.text),t&&c?d.customBackgroundColor=c:t&&l?d.backgroundColor=l:a?d.customBackgroundColor=a:r?d.backgroundColor=r:u?.color?.background&&(d.customTextColor=u.color.background),d}function vh(e){return{className:dt("wp-block-navigation__submenu-container",{"has-text-color":!(!e.textColor&&!e.customTextColor),[`has-${e.textColor}-color`]:!!e.textColor,"has-background":!(!e.backgroundColor&&!e.customBackgroundColor),[`has-${e.backgroundColor}-background-color`]:!!e.backgroundColor}),style:{color:e.customTextColor,backgroundColor:e.customBackgroundColor}}}const fh=({className:e="",disabled:t,isMenuItem:o=!1})=>{let n=et.Button;return o&&(n=et.MenuItem),(0,Je.jsx)(n,{variant:"link",disabled:t,className:e,href:(0,pt.addQueryArgs)("edit.php",{post_type:"wp_navigation"}),children:(0,tt.__)("Manage menus")})};const kh=function({onCreateNew:e}){return(0,Je.jsx)(ot.Warning,{children:(0,bt.createInterpolateElement)((0,tt.__)("Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>"),{button:(0,Je.jsx)(et.Button,{onClick:e,variant:"link"})})})},wh=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"})}),Ch=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),jh=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),Sh={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},Bh=["core/navigation-link","core/navigation-submenu"];function Nh({block:e,onClose:t,expandedState:o,expand:n,setInsertedBlock:r}){const{insertBlock:a,replaceBlock:i,replaceInnerBlocks:s}=(0,gt.useDispatch)(ot.store),l=e.clientId,c=!Bh.includes(e.name);return(0,Je.jsx)(et.MenuItem,{icon:wh,disabled:c,onClick:()=>{const c=(0,Qe.createBlock)("core/navigation-link");if("core/navigation-submenu"===e.name)a(c,e.innerBlocks.length,l,false);else{const t=(0,Qe.createBlock)("core/navigation-submenu",e.attributes,e.innerBlocks);i(l,t),s(t.clientId,[c],false)}r(c),o[e.clientId]||n(e.clientId),t()},children:(0,tt.__)("Add submenu link")})}function Th(e){const{block:t}=e,{clientId:o}=t,{moveBlocksDown:n,moveBlocksUp:r,removeBlocks:a}=(0,gt.useDispatch)(ot.store),i=(0,tt.sprintf)((0,tt.__)("Remove %s"),(0,ot.BlockTitle)({clientId:o,maximumLength:25})),s=(0,gt.useSelect)((e=>{const{getBlockRootClientId:t}=e(ot.store);return t(o)}),[o]);return(0,Je.jsx)(et.DropdownMenu,{icon:Eg,label:(0,tt.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:Sh,noIcons:!0,...e,children:({onClose:l})=>(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(et.MenuGroup,{children:[(0,Je.jsx)(et.MenuItem,{icon:Ch,onClick:()=>{r([o],s),l()},children:(0,tt.__)("Move up")}),(0,Je.jsx)(et.MenuItem,{icon:jh,onClick:()=>{n([o],s),l()},children:(0,tt.__)("Move down")}),(0,Je.jsx)(Nh,{block:t,onClose:l,expanded:!0,expandedState:e.expandedState,expand:e.expand,setInsertedBlock:e.setInsertedBlock})]}),(0,Je.jsx)(et.MenuGroup,{children:(0,Je.jsx)(et.MenuItem,{onClick:()=>{a([o],!1),l()},children:i})})]})})}const Ih=window.wp.escapeHtml,Ph=(e={},t,o={})=>{const{label:n="",kind:r="",type:a=""}=o,{title:i="",url:s="",opensInNewTab:l,id:c,kind:u=r,type:d=a}=e,p=i.replace(/http(s?):\/\//gi,""),m=s.replace(/http(s?):\/\//gi,""),g=i&&i!==n&&p!==m?(0,Ih.escapeHTML)(i):n||(0,Ih.escapeHTML)(m),h="post_tag"===d?"tag":d.replace("-","_"),x=["post","page","tag","category"].indexOf(h)>-1,b=!u&&!x||"custom"===u?"custom":u;t({...s&&{url:encodeURI((0,pt.safeDecodeURI)(s))},...g&&{label:g},...void 0!==l&&{opensInNewTab:l},...c&&Number.isInteger(c)&&{id:c},...b&&{kind:b},...h&&"URL"!==h&&{type:h}})},Mh=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})}),zh=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),{PrivateQuickInserter:Rh}=Ht(ot.privateApis);function Ah(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e};case"category":return{type:"term",subtype:"category"};case"tag":return{type:"term",subtype:"post_tag"};case"post_format":return{type:"post-format"};default:return"taxonomy"===t?{type:"term",subtype:e}:"post-type"===t?{type:"post",subtype:e}:{initialSuggestionsSearchOptions:{type:"post",subtype:"page",perPage:20}}}}function Lh({clientId:e,onBack:t,onSelectBlock:o}){const{rootBlockClientId:n}=(0,gt.useSelect)((t=>{const{getBlockRootClientId:o}=t(ot.store);return{rootBlockClientId:o(e)}}),[e]),r=(0,Ut.useFocusOnMount)("firstElement"),a=(0,Ut.useInstanceId)(ot.__experimentalLinkControl,"link-ui-block-inserter__title"),i=(0,Ut.useInstanceId)(ot.__experimentalLinkControl,"link-ui-block-inserter__description");return e?(0,Je.jsxs)("div",{className:"link-ui-block-inserter",role:"dialog","aria-labelledby":a,"aria-describedby":i,ref:r,children:[(0,Je.jsxs)(et.VisuallyHidden,{children:[(0,Je.jsx)("h2",{id:a,children:(0,tt.__)("Add block")}),(0,Je.jsx)("p",{id:i,children:(0,tt.__)("Choose a block to add to your Navigation.")})]}),(0,Je.jsx)(et.Button,{className:"link-ui-block-inserter__back",icon:Mh,onClick:e=>{e.preventDefault(),t()},size:"small",children:(0,tt.__)("Back")}),(0,Je.jsx)(Rh,{rootClientId:n,clientId:e,isAppender:!1,prioritizePatterns:!1,selectBlockOnInsert:!0,hasSearch:!1,onSelect:o})]}):null}const Hh=(0,bt.forwardRef)((function(e,t){const[o,n]=(0,bt.useState)(!1),[r,a]=(0,bt.useState)(!1),{saveEntityRecord:i}=(0,gt.useDispatch)(mt.store),s=(0,mt.useResourcePermissions)("pages"),l=(0,mt.useResourcePermissions)("posts"),{label:c,url:u,opensInNewTab:d,type:p,kind:m}=e.link;let g=!1;p&&"page"!==p?"post"===p&&(g=l.canCreate):g=s.canCreate;const h=(0,bt.useMemo)((()=>({url:u,opensInNewTab:d,title:c&&(0,sc.__unstableStripHTML)(c)})),[c,d,u]),x=(0,Ut.useInstanceId)(Hh,"link-ui-link-control__title"),b=(0,Ut.useInstanceId)(Hh,"link-ui-link-control__description"),{onClose:_}=e;return(0,Je.jsxs)(et.Popover,{ref:t,placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0,children:[!o&&(0,Je.jsxs)("div",{role:"dialog","aria-labelledby":x,"aria-describedby":b,children:[(0,Je.jsxs)(et.VisuallyHidden,{children:[(0,Je.jsx)("h2",{id:x,children:(0,tt.__)("Add link")}),(0,Je.jsx)("p",{id:b,children:(0,tt.__)("Search for and add a link to your Navigation.")})]}),(0,Je.jsx)(ot.__experimentalLinkControl,{hasTextControl:!0,hasRichPreviews:!0,value:h,showInitialSuggestions:!0,withCreateSuggestion:g,createSuggestion:async function(t){const o=e.link.type||"page",n=await i("postType",o,{title:t,status:"draft"});return{id:n.id,type:o,title:(0,Xo.decodeEntities)(n.title.rendered),url:n.link,kind:"post-type"}},createSuggestionButtonText:e=>{let t;return t="post"===p?(0,tt.__)("Create draft post: <mark>%s</mark>"):(0,tt.__)("Create draft page: <mark>%s</mark>"),(0,bt.createInterpolateElement)((0,tt.sprintf)(t,e),{mark:(0,Je.jsx)("mark",{})})},noDirectEntry:!!p,noURLSuggestion:!!p,suggestionsQuery:Ah(p,m),onChange:e.onChange,onRemove:e.onRemove,onCancel:e.onCancel,renderControlBottom:()=>!h?.url?.length&&(0,Je.jsx)(Dh,{focusAddBlockButton:r,setAddingBlock:()=>{n(!0),a(!1)}})})]}),o&&(0,Je.jsx)(Lh,{clientId:e.clientId,onBack:()=>{n(!1),a(!0)},onSelectBlock:_})]})})),Dh=({setAddingBlock:e,focusAddBlockButton:t})=>{const o=(0,bt.useRef)();return(0,bt.useEffect)((()=>{t&&o.current?.focus()}),[t]),(0,Je.jsx)(et.__experimentalVStack,{className:"link-ui-tools",children:(0,Je.jsx)(et.Button,{ref:o,icon:zh,onClick:t=>{t.preventDefault(),e(!0)},"aria-haspopup":"listbox",children:(0,tt.__)("Add block")})})},Fh=(0,tt.__)("Switch to '%s'"),Vh=["core/navigation-link","core/navigation-submenu"],{PrivateListView:Eh}=Ht(ot.privateApis);function $h({block:e,insertedBlock:t,setInsertedBlock:o}){const{updateBlockAttributes:n}=(0,gt.useDispatch)(ot.store),r=Vh?.includes(t?.name),a=t?.clientId===e.clientId;if(!(r&&a))return null;return(0,Je.jsx)(Hh,{clientId:t?.clientId,link:t?.attributes,onClose:()=>{o(null)},onChange:e=>{var r;Ph(e,(r=t?.clientId,e=>{r&&n(r,e)}),t?.attributes),o(null)},onCancel:()=>{o(null)}})}const Gh=({clientId:e,currentMenuId:t,isLoading:o,isNavigationMenuMissing:n,onCreateNew:r})=>{const a=(0,gt.useSelect)((t=>!!t(ot.store).getBlockCount(e)),[e]),{navigationMenu:i}=Dg(t);if(t&&n)return(0,Je.jsx)(kh,{onCreateNew:r});if(o)return(0,Je.jsx)(et.Spinner,{});const s=i?(0,tt.sprintf)((0,tt.__)("Structure for Navigation Menu: %s"),i?.title||(0,tt.__)("Untitled menu")):(0,tt.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,Je.jsxs)("div",{className:"wp-block-navigation__menu-inspector-controls",children:[!a&&(0,Je.jsx)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message",children:(0,tt.__)("This Navigation Menu is empty.")}),(0,Je.jsx)(Eh,{rootClientId:e,isExpanded:!0,description:s,showAppender:!0,blockSettingsMenu:Th,additionalBlockContent:$h})]})},Oh=e=>{const{createNavigationMenuIsSuccess:t,createNavigationMenuIsError:o,currentMenuId:n=null,onCreateNew:r,onSelectClassicMenu:a,onSelectNavigationMenu:i,isManageMenusButtonDisabled:s,blockEditingMode:l}=e;return(0,Je.jsx)(ot.InspectorControls,{group:"list",children:(0,Je.jsxs)(et.PanelBody,{title:null,children:[(0,Je.jsxs)(et.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header",children:[(0,Je.jsx)(et.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2,children:(0,tt.__)("Menu")}),"default"===l&&(0,Je.jsx)($g,{currentMenuId:n,onSelectClassicMenu:a,onSelectNavigationMenu:i,onCreateNew:r,createNavigationMenuIsSuccess:t,createNavigationMenuIsError:o,actionLabel:Fh,isManageMenusButtonDisabled:s})]}),(0,Je.jsx)(Gh,{...e})]})})};function Uh({id:e,children:t}){return(0,Je.jsx)(et.VisuallyHidden,{children:(0,Je.jsx)("div",{id:e,className:"wp-block-navigation__description",children:t})})}function qh({id:e}){const[t]=(0,mt.useEntityProp)("postType","wp_navigation","title"),o=(0,tt.sprintf)((0,tt.__)('Navigation Menu: "%s"'),t);return(0,Je.jsx)(Uh,{id:e,children:o})}function Wh({textColor:e,setTextColor:t,backgroundColor:o,setBackgroundColor:n,overlayTextColor:r,setOverlayTextColor:a,overlayBackgroundColor:i,setOverlayBackgroundColor:s,clientId:l,navRef:c}){const[u,d]=(0,bt.useState)(),[p,m]=(0,bt.useState)(),[g,h]=(0,bt.useState)(),[x,b]=(0,bt.useState)(),_="web"===bt.Platform.OS;(0,bt.useEffect)((()=>{if(!_)return;_h(c.current,m,d);const e=c.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');e&&(r.color||i.color)&&_h(e,b,h)}),[_,r.color,i.color,c]);const y=(0,ot.__experimentalUseMultipleOriginColorsAndGradients)();return y.hasColorsOrGradients?(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:e.color,label:(0,tt.__)("Text"),onColorChange:t,resetAllFilter:()=>t()},{colorValue:o.color,label:(0,tt.__)("Background"),onColorChange:n,resetAllFilter:()=>n()},{colorValue:r.color,label:(0,tt.__)("Submenu & overlay text"),onColorChange:a,resetAllFilter:()=>a()},{colorValue:i.color,label:(0,tt.__)("Submenu & overlay background"),onColorChange:s,resetAllFilter:()=>s()}],panelId:l,...y,gradients:[],disableCustomGradients:!0}),_&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.ContrastChecker,{backgroundColor:u,textColor:p}),(0,Je.jsx)(ot.ContrastChecker,{backgroundColor:g,textColor:x})]})]}):null}const Zh=(0,ot.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})((function({attributes:e,setAttributes:t,clientId:o,isSelected:n,className:r,backgroundColor:a,setBackgroundColor:i,textColor:s,setTextColor:l,overlayBackgroundColor:c,setOverlayBackgroundColor:u,overlayTextColor:d,setOverlayTextColor:p,hasSubmenuIndicatorSetting:m=!0,customPlaceholder:g=null,__unstableLayoutClassNames:h}){const{openSubmenusOnClick:x,overlayMenu:b,showSubmenuIcon:_,templateLock:y,layout:{justifyContent:v,orientation:f="horizontal",flexWrap:k="wrap"}={},hasIcon:w,icon:C="handle"}=e,j=e.ref,S=(0,bt.useCallback)((e=>{t({ref:e})}),[t]),B=`navigationMenu/${j}`,N=(0,ot.useHasRecursion)(B),T=(0,ot.useBlockEditingMode)(),{menus:I}=Fg(),[P,M]=Xg({name:"block-library/core/navigation/status"}),[z,R]=Xg({name:"block-library/core/navigation/classic-menu-conversion"}),[A,L]=Xg({name:"block-library/core/navigation/permissions/update"}),{create:H,status:D,error:F,value:V,isPending:E,isSuccess:$,isError:G}=function(e){const[t,o]=(0,bt.useState)(hh),[n,r]=(0,bt.useState)(null),[a,i]=(0,bt.useState)(null),{saveEntityRecord:s,editEntityRecord:l}=(0,gt.useDispatch)(mt.store),c=dh(e),u=(0,bt.useCallback)((async(e=null,t=[],n)=>{if(e&&"string"!=typeof e)throw i("Invalid title supplied when creating Navigation Menu."),o(mh),new Error("Value of supplied title argument was not a string.");o(gh),r(null),i(null),e||(e=await c().catch((e=>{throw i(e?.message),o(mh),new Error("Failed to create title when saving new Navigation Menu.",{cause:e})})));const a={title:e,content:(0,Qe.serialize)(t),status:n};return s("postType","wp_navigation",a).then((e=>(r(e),o(ph),"publish"!==n&&l("postType","wp_navigation",e.id,{status:"publish"}),e))).catch((e=>{throw i(e?.message),o(mh),new Error("Unable to save new Navigation Menu",{cause:e})}))}),[s,l,c]);return{create:u,status:t,value:n,error:a,isIdle:t===hh,isPending:t===gh,isSuccess:t===ph,isError:t===mh}}(o),O=async()=>{await H("")},{hasUncontrolledInnerBlocks:U,uncontrolledInnerBlocks:q,isInnerBlockSelected:W,innerBlocks:Z}=function(e){return(0,gt.useSelect)((t=>{const{getBlock:o,getBlocks:n,hasSelectedInnerBlock:r}=t(ot.store),a=o(e).innerBlocks,i=!!a?.length,s=i?xh:n(e);return{innerBlocks:i?a:s,hasUncontrolledInnerBlocks:i,uncontrolledInnerBlocks:a,controlledInnerBlocks:s,isInnerBlockSelected:r(e,!0)}}),[e])}(o),Q=!!Z.find((e=>"core/navigation-submenu"===e.name)),{replaceInnerBlocks:K,selectBlock:J,__unstableMarkNextChangeAsNotPersistent:Y}=(0,gt.useDispatch)(ot.store),[X,ee]=(0,bt.useState)(!1),[te,oe]=(0,bt.useState)(!1),{hasResolvedNavigationMenus:ne,isNavigationMenuResolved:re,isNavigationMenuMissing:ae,canUserUpdateNavigationMenu:ie,hasResolvedCanUserUpdateNavigationMenu:se,canUserDeleteNavigationMenu:le,hasResolvedCanUserDeleteNavigationMenu:ce,canUserCreateNavigationMenus:ue,isResolvingCanUserCreateNavigationMenus:de,hasResolvedCanUserCreateNavigationMenus:pe}=Dg(j),me=ne&&ae,{convert:ge,status:he,error:xe}=sh(H),be=he===ah,_e=(0,bt.useCallback)(((e,t={focusNavigationBlock:!1})=>{const{focusNavigationBlock:n}=t;S(e),n&&J(o)}),[J,o,S]),ye=!ae&&re,ve=U&&!ye,{getNavigationFallbackId:fe}=Ht((0,gt.useSelect)(mt.store)),ke=j||ve?null:fe();(0,bt.useEffect)((()=>{j||ve||!ke||(Y(),S(ke))}),[j,S,ve,ke,Y]);const we=(0,bt.useRef)(),Ce="nav",je=!j&&!E&&!be&&ne&&0===I?.length&&!U,Se=!ne||E||be||!(!j||ye||be),Be=e.style?.typography?.textDecoration,Ne=(0,gt.useSelect)((e=>e(ot.store).__unstableHasActiveBlockOverlayActive(o)),[o]),Te="never"!==b,Ie=(0,ot.useBlockProps)({ref:we,className:dt(r,{"items-justified-right":"right"===v,"items-justified-space-between":"space-between"===v,"items-justified-left":"left"===v,"items-justified-center":"center"===v,"is-vertical":"vertical"===f,"no-wrap":"nowrap"===k,"is-responsive":Te,"has-text-color":!!s.color||!!s?.class,[(0,ot.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!a.color||a.class,[(0,ot.getColorClassName)("background-color",a?.slug)]:!!a?.slug,[`has-text-decoration-${Be}`]:Be,"block-editor-block-content-overlay":Ne},h),style:{color:!s?.slug&&s?.color,backgroundColor:!a?.slug&&a?.color}}),Pe=async e=>ge(e.id,e.name,"draft"),Me=e=>{_e(e)};(0,bt.useEffect)((()=>{M(),E&&(0,Pg.speak)((0,tt.__)("Creating Navigation Menu.")),$&&(_e(V?.id,{focusNavigationBlock:!0}),P((0,tt.__)("Navigation Menu successfully created."))),G&&P((0,tt.__)("Failed to create Navigation Menu."))}),[D,F,V?.id,G,$,E,_e,M,P]),(0,bt.useEffect)((()=>{R(),he===ah&&(0,Pg.speak)((0,tt.__)("Classic menu importing.")),he===nh&&(z((0,tt.__)("Classic menu imported successfully.")),_e(V?.id,{focusNavigationBlock:!0})),he===rh&&z((0,tt.__)("Classic menu import failed."))}),[he,xe,R,z,V?.id,_e]),(0,bt.useEffect)((()=>{n||W||L(),(n||W)&&(j&&!me&&se&&!ie&&A((0,tt.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),j||!pe||ue||A((0,tt.__)("You do not have permission to create Navigation Menus.")))}),[n,W,ie,se,ue,pe,j,L,A,me]);const ze=ue||ie,Re=dt("wp-block-navigation__overlay-menu-preview",{open:te}),Ae=_||x?"":(0,tt.__)('The current menu options offer reduced accessibility for users and are not recommended. Enabling either "Open on Click" or "Show arrow" offers enhanced accessibility by allowing keyboard users to browse submenus selectively.'),Le=(0,bt.useRef)(!0);(0,bt.useEffect)((()=>{!Le.current&&Ae&&(0,Pg.speak)(Ae),Le.current=!1}),[Ae]);const He=(0,Ut.useInstanceId)(eh,"overlay-menu-preview"),De=(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{children:m&&(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Display"),children:[Te&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(et.Button,{className:Re,onClick:()=>{oe(!te)},"aria-label":(0,tt.__)("Overlay menu controls"),"aria-controls":He,"aria-expanded":te,children:[w&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Ug,{icon:C}),(0,Je.jsx)(Mg,{icon:zg})]}),!w&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("span",{children:(0,tt.__)("Menu")}),(0,Je.jsx)("span",{children:(0,tt.__)("Close")})]})]}),(0,Je.jsx)("div",{id:He,children:te&&(0,Je.jsx)(eh,{setAttributes:t,hasIcon:w,icon:C,hidden:!te})})]}),(0,Je.jsx)("h3",{children:(0,tt.__)("Overlay Menu")}),(0,Je.jsxs)(et.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Configure overlay menu"),value:b,help:(0,tt.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:e=>t({overlayMenu:e}),isBlock:!0,hideLabelFromVision:!0,children:[(0,Je.jsx)(et.__experimentalToggleGroupControlOption,{value:"never",label:(0,tt.__)("Off")}),(0,Je.jsx)(et.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,tt.__)("Mobile")}),(0,Je.jsx)(et.__experimentalToggleGroupControlOption,{value:"always",label:(0,tt.__)("Always")})]}),Q&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("h3",{children:(0,tt.__)("Submenus")}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,checked:x,onChange:e=>{t({openSubmenusOnClick:e,...e&&{showSubmenuIcon:!0}})},label:(0,tt.__)("Open on click")}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,checked:_,onChange:e=>{t({showSubmenuIcon:e})},disabled:e.openSubmenusOnClick,label:(0,tt.__)("Show arrow")}),Ae&&(0,Je.jsx)("div",{children:(0,Je.jsx)(et.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,children:Ae})})]})]})}),(0,Je.jsx)(ot.InspectorControls,{group:"color",children:(0,Je.jsx)(Wh,{textColor:s,setTextColor:l,backgroundColor:a,setBackgroundColor:i,overlayTextColor:d,setOverlayTextColor:p,overlayBackgroundColor:c,setOverlayBackgroundColor:u,clientId:o,navRef:we})})]}),Fe=`${o}-desc`,Ve=!ze||!ne;if(ve&&!E)return(0,Je.jsxs)(Ce,{...Ie,"aria-describedby":je?void 0:Fe,children:[(0,Je.jsx)(Uh,{id:Fe,children:(0,tt.__)("Unsaved Navigation Menu.")}),(0,Je.jsx)(Oh,{clientId:o,createNavigationMenuIsSuccess:$,createNavigationMenuIsError:G,currentMenuId:j,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:Ve,onCreateNew:O,onSelectClassicMenu:Pe,onSelectNavigationMenu:Me,isLoading:Se,blockEditingMode:T}),"default"===T&&De,(0,Je.jsx)(qg,{id:o,onToggle:ee,isOpen:X,hasIcon:w,icon:C,isResponsive:Te,isHiddenByDefault:"always"===b,overlayBackgroundColor:c,overlayTextColor:d,children:(0,Je.jsx)(Jg,{createNavigationMenu:H,blocks:q,hasSelection:n||W})})]});if(j&&ae)return(0,Je.jsxs)(Ce,{...Ie,children:[(0,Je.jsx)(Oh,{clientId:o,createNavigationMenuIsSuccess:$,createNavigationMenuIsError:G,currentMenuId:j,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:Ve,onCreateNew:O,onSelectClassicMenu:Pe,onSelectNavigationMenu:Me,isLoading:Se,blockEditingMode:T}),(0,Je.jsx)(kh,{onCreateNew:O})]});if(ye&&N)return(0,Je.jsx)("div",{...Ie,children:(0,Je.jsx)(ot.Warning,{children:(0,tt.__)("Block cannot be rendered inside itself.")})});const Ee=g||Gg;return je&&g?(0,Je.jsx)(Ce,{...Ie,children:(0,Je.jsx)(Ee,{isSelected:n,currentMenuId:j,clientId:o,canUserCreateNavigationMenus:ue,isResolvingCanUserCreateNavigationMenus:de,onSelectNavigationMenu:Me,onSelectClassicMenu:Pe,onCreateEmpty:O})}):(0,Je.jsx)(mt.EntityProvider,{kind:"postType",type:"wp_navigation",id:j,children:(0,Je.jsxs)(ot.RecursionProvider,{uniqueId:B,children:[(0,Je.jsx)(Oh,{clientId:o,createNavigationMenuIsSuccess:$,createNavigationMenuIsError:G,currentMenuId:j,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:Ve,onCreateNew:O,onSelectClassicMenu:Pe,onSelectNavigationMenu:Me,isLoading:Se,blockEditingMode:T}),"default"===T&&De,"default"===T&&ye&&(0,Je.jsxs)(ot.InspectorControls,{group:"advanced",children:[se&&ie&&(0,Je.jsx)(Zg,{}),ce&&le&&(0,Je.jsx)(Yg,{onDelete:()=>{K(o,[]),P((0,tt.__)("Navigation Menu successfully deleted."))}}),(0,Je.jsx)(fh,{disabled:Ve,className:"wp-block-navigation-manage-menus-button"})]}),(0,Je.jsxs)(Ce,{...Ie,"aria-describedby":je||Se?void 0:Fe,children:[Se&&(0,Je.jsx)("div",{className:"wp-block-navigation__loading-indicator-container",children:(0,Je.jsx)(et.Spinner,{className:"wp-block-navigation__loading-indicator"})}),!Se&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(qh,{id:Fe}),(0,Je.jsx)(qg,{id:o,onToggle:ee,hasIcon:w,icon:C,isOpen:X,isResponsive:Te,isHiddenByDefault:"always"===b,overlayBackgroundColor:c,overlayTextColor:d,children:ye&&(0,Je.jsx)(Wg,{clientId:o,hasCustomPlaceholder:!!g,templateLock:y,orientation:f})})]})]})]})})}));const Qh={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},Kh=({navigationMenuId:e,...t})=>({...t,ref:e}),Jh=e=>{if(e.layout)return e;const{itemsJustification:t,orientation:o,...n}=e;return(t||o)&&Object.assign(n,{layout:{type:"flex",...t&&{justifyContent:t},...o&&{orientation:o}}}),n},Yh={attributes:{navigationMenuId:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},save:()=>(0,Je.jsx)(ot.InnerBlocks.Content,{}),isEligible:({navigationMenuId:e})=>!!e,migrate:Kh},Xh={attributes:{navigationMenuId:{type:"number"},orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save:()=>(0,Je.jsx)(ot.InnerBlocks.Content,{}),isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,Ut.compose)(Kh,Jh)},ex={attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save:()=>(0,Je.jsx)(ot.InnerBlocks.Content,{}),migrate:(0,Ut.compose)(Kh,Jh,so),isEligible:({style:e})=>e?.typography?.fontFamily},tx=[Yh,Xh,ex,{attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},isResponsive:{type:"boolean",default:"false"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0}},isEligible:e=>e.isResponsive,migrate:(0,Ut.compose)(Kh,Jh,so,(function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}})),save:()=>(0,Je.jsx)(ot.InnerBlocks.Content,{})},{attributes:{orientation:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,fontSize:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,color:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},save:()=>(0,Je.jsx)(ot.InnerBlocks.Content,{}),isEligible(e){if(!e.style||!e.style.typography)return!1;for(const t in Qh){const o=e.style.typography[t];if(o&&o.startsWith(Qh[t]))return!0}return!1},migrate:(0,Ut.compose)(Kh,Jh,so,(function(e){var t;return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(null!==(t=e.style.typography)&&void 0!==t?t:{}).map((([e,t])=>{const o=Qh[e];if(o&&t.startsWith(o)){const n=t.slice(o.length);return"textDecoration"===e&&"strikethrough"===n?[e,"line-through"]:[e,n]}return[e,t]})))}}}))},{attributes:{className:{type:"string"},textColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean"}},isEligible:e=>e.rgbTextColor||e.rgbBackgroundColor,supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},migrate:(0,Ut.compose)(Kh,(e=>{const{rgbTextColor:t,rgbBackgroundColor:o,...n}=e;return{...n,customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}})),save:()=>(0,Je.jsx)(ot.InnerBlocks.Content,{})}],ox=tx,nx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation",title:"Navigation",category:"theme",allowedBlocks:["core/navigation-link","core/search","core/social-links","core/page-list","core/spacer","core/home-link","core/site-title","core/site-logo","core/navigation-submenu","core/loginout","core/buttons"],description:"A collection of blocks that allow visitors to get around your site.",keywords:["menu","navigation","links"],textdomain:"default",attributes:{ref:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},icon:{type:"string",default:"handle"},hasIcon:{type:"boolean",default:!0},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"},maxNestingLevel:{type:"number",default:5},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},providesContext:{textColor:"textColor",customTextColor:"customTextColor",backgroundColor:"backgroundColor",customBackgroundColor:"customBackgroundColor",overlayTextColor:"overlayTextColor",customOverlayTextColor:"customOverlayTextColor",overlayBackgroundColor:"overlayBackgroundColor",customOverlayBackgroundColor:"customOverlayBackgroundColor",fontSize:"fontSize",customFontSize:"customFontSize",showSubmenuIcon:"showSubmenuIcon",openSubmenusOnClick:"openSubmenusOnClick",style:"style",maxNestingLevel:"maxNestingLevel"},supports:{align:["wide","full"],ariaLabel:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalSkipSerialization:["textDecoration"],__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,allowSizingOnChildren:!0,default:{type:"flex"}},interactivity:!0,renaming:!1},editorStyle:"wp-block-navigation-editor",style:"wp-block-navigation"},{name:rx}=nx,ax={icon:Ig,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,tt.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,tt.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,tt.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:Zh,save:function({attributes:e}){if(!e.ref)return(0,Je.jsx)(ot.InnerBlocks.Content,{})},deprecated:ox},ix=()=>Xe({name:rx,metadata:nx,settings:ax}),sx=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"})}),lx={name:"core/navigation-link"};function cx({attributes:e,setAttributes:t,setIsLabelFieldFocused:o}){const{label:n,url:r,description:a,title:i,rel:s}=e;return(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:n?(0,sc.__unstableStripHTML)(n):"",onChange:e=>{t({label:e})},label:(0,tt.__)("Text"),autoComplete:"off",onFocus:()=>o(!0),onBlur:()=>o(!1)}),(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:r?(0,pt.safeDecodeURI)(r):"",onChange:o=>{Ph({url:o},t,e)},label:(0,tt.__)("Link"),autoComplete:"off"}),(0,Je.jsx)(et.TextareaControl,{__nextHasNoMarginBottom:!0,value:a||"",onChange:e=>{t({description:e})},label:(0,tt.__)("Description"),help:(0,tt.__)("The description will be displayed in the menu if the current theme supports it.")}),(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:i||"",onChange:e=>{t({title:e})},label:(0,tt.__)("Title attribute"),autoComplete:"off",help:(0,tt.__)("Additional information to help clarify the purpose of the link.")}),(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:s||"",onChange:e=>{t({rel:e})},label:(0,tt.__)("Rel attribute"),autoComplete:"off",help:(0,tt.__)("The relationship of the linked URL as space-separated link types.")})]})}const ux=(0,Je.jsxs)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Je.jsx)(Ke.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,Je.jsx)(Ke.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]}),dx=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})}),px=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"})});function mx(e){switch(e){case"post":return Np;case"page":return ux;case"tag":return dx;case"category":return Yo;default:return px}}function gx(e,t){if("core/navigation-link"!==t)return e;if(e.variations){const t=(e,t)=>e.type===t.type,o=e.variations.map((e=>({...e,...!e.icon&&{icon:mx(e.name)},...!e.isActive&&{isActive:t}})));return{...e,variations:o}}return e}const hx={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,Qe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,Qe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,Qe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,Qe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,Qe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,Qe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/buttons"],transform:()=>(0,Qe.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,Qe.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,Qe.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,Qe.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,Qe.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,Qe.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,Qe.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,Qe.createBlock)("core/page-list")},{type:"block",blocks:["core/buttons"],transform:({label:e,url:t,rel:o,title:n,opensInNewTab:r})=>(0,Qe.createBlock)("core/buttons",{},[(0,Qe.createBlock)("core/button",{text:e,url:t,rel:o,title:n,linkTarget:r?"_blank":void 0})])}]},xx=hx,bx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],allowedBlocks:["core/navigation-link","core/navigation-submenu","core/page-list"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],supports:{reusable:!1,html:!1,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},renaming:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"},{name:_x}=bx,yx={icon:sx,__experimentalLabel:({label:e})=>e,merge:(e,{label:t=""})=>({...e,label:e.label+t}),edit:function({attributes:e,isSelected:t,setAttributes:o,insertBlocksAfter:n,mergeBlocks:r,onReplace:a,context:i,clientId:s}){const{id:l,label:c,type:u,url:d,description:p,kind:m}=e,[g,h]=((e,t,o)=>{const n="post-type"===e||"post"===t||"page"===t,r=Number.isInteger(o),a=(0,gt.useSelect)((e=>{if(!n)return null;const{getEntityRecord:r}=e(mt.store);return r("postType",t,o)?.status}),[n,t,o]);return[n&&r&&a&&"trash"===a,"draft"===a]})(m,u,l),{maxNestingLevel:x}=i,{replaceBlock:b,__unstableMarkNextChangeAsNotPersistent:_,selectBlock:y,selectPreviousBlock:v}=(0,gt.useDispatch)(ot.store),[f,k]=(0,bt.useState)(t&&!d),[w,C]=(0,bt.useState)(null),[j,S]=(0,bt.useState)(null),B=(0,bt.useRef)(null),N=(e=>{const[t,o]=(0,bt.useState)(!1);return(0,bt.useEffect)((()=>{const{ownerDocument:t}=e.current;function n(e){a(e)}function r(){o(!1)}function a(t){e.current.contains(t.target)?o(!0):o(!1)}return t.addEventListener("dragstart",n),t.addEventListener("dragend",r),t.addEventListener("dragenter",a),()=>{t.removeEventListener("dragstart",n),t.removeEventListener("dragend",r),t.removeEventListener("dragenter",a)}}),[e]),t})(B),T=(0,tt.__)("Add label…"),I=(0,bt.useRef)(),P=(0,bt.useRef)(),M=(0,Ut.usePrevious)(d),[z,R]=(0,bt.useState)(!1),{isAtMaxNesting:A,isTopLevelLink:L,isParentOfSelectedBlock:H,hasChildren:D}=(0,gt.useSelect)((e=>{const{getBlockCount:t,getBlockName:o,getBlockRootClientId:n,hasSelectedInnerBlock:r,getBlockParentsByBlockName:a}=e(ot.store);return{isAtMaxNesting:a(s,["core/navigation-link","core/navigation-submenu"]).length>=x,isTopLevelLink:"core/navigation"===o(n(s)),isParentOfSelectedBlock:r(s,!0),hasChildren:!!t(s)}}),[s,x]),{getBlocks:F}=(0,gt.useSelect)(ot.store),V=()=>{let t=F(s);0===t.length&&(t=[(0,Qe.createBlock)("core/navigation-link")],y(t[0].clientId));const o=(0,Qe.createBlock)("core/navigation-submenu",e,t);b(s,o)};(0,bt.useEffect)((()=>{D&&(_(),V())}),[D]),(0,bt.useEffect)((()=>{!M&&d&&f&&(0,pt.isURL)((0,pt.prependHTTP)(c))&&/^.+\.[a-z]+/.test(c)&&function(){I.current.focus();const{ownerDocument:e}=I.current,{defaultView:t}=e,o=t.getSelection(),n=e.createRange();n.selectNodeContents(I.current),o.removeAllRanges(),o.addRange(n)}()}),[M,d,f,c]);const{textColor:E,customTextColor:$,backgroundColor:G,customBackgroundColor:O}=yh(i,!L),U=(0,ot.useBlockProps)({ref:(0,Ut.useMergeRefs)([S,B]),className:dt("wp-block-navigation-item",{"is-editing":t||H,"is-dragging-within":N,"has-link":!!d,"has-child":D,"has-text-color":!!E||!!$,[(0,ot.getColorClassName)("color",E)]:!!E,"has-background":!!G||O,[(0,ot.getColorClassName)("background-color",G)]:!!G}),style:{color:!E&&$,backgroundColor:!G&&O},onKeyDown:function(e){fo.isKeyboardEvent.primary(e,"k")&&(e.preventDefault(),e.stopPropagation(),k(!0),C(I.current))}}),q=(0,ot.useInnerBlocksProps)({...U,className:"remove-outline"},{defaultBlock:lx,directInsert:!0,renderAppender:!1});(!d||g||h)&&(U.onClick=()=>{k(!0),C(I.current)});const W=dt("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":!d||g||h}),Z=function(e){let t="";switch(e){case"post":t=(0,tt.__)("Select post");break;case"page":t=(0,tt.__)("Select page");break;case"category":t=(0,tt.__)("Select category");break;case"tag":t=(0,tt.__)("Select tag");break;default:t=(0,tt.__)("Add link")}return t}(u),Q=`(${g?(0,tt.__)("Invalid"):(0,tt.__)("Draft")})`,K=g||h?(0,tt.__)("This item has been deleted, or is a draft"):(0,tt.__)("This item is missing a link");return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsxs)(et.ToolbarGroup,{children:[(0,Je.jsx)(et.ToolbarButton,{name:"link",icon:ko,title:(0,tt.__)("Link"),shortcut:fo.displayShortcut.primary("k"),onClick:e=>{k(!0),C(e.currentTarget)}}),!A&&(0,Je.jsx)(et.ToolbarButton,{name:"submenu",icon:wh,title:(0,tt.__)("Add submenu"),onClick:V})]})}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(cx,{attributes:e,setAttributes:o,setIsLabelFieldFocused:R})}),(0,Je.jsxs)("div",{...U,children:[(0,Je.jsxs)("a",{className:W,children:[d?(0,Je.jsxs)(Je.Fragment,{children:[!g&&!h&&!z&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.RichText,{ref:I,identifier:"label",className:"wp-block-navigation-item__label",value:c,onChange:e=>o({label:e}),onMerge:r,onReplace:a,__unstableOnSplitAtEnd:()=>n((0,Qe.createBlock)("core/navigation-link")),"aria-label":(0,tt.__)("Navigation link text"),placeholder:T,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}),p&&(0,Je.jsx)("span",{className:"wp-block-navigation-item__description",children:p})]}),(g||h||z)&&(0,Je.jsx)("div",{className:"wp-block-navigation-link__placeholder-text wp-block-navigation-link__label",children:(0,Je.jsx)(et.Tooltip,{text:K,children:(0,Je.jsx)("span",{"aria-label":(0,tt.__)("Navigation link text"),children:`${(0,Xo.decodeEntities)(c)} ${g||h?Q:""}`.trim()})})})]}):(0,Je.jsx)("div",{className:"wp-block-navigation-link__placeholder-text",children:(0,Je.jsx)(et.Tooltip,{text:K,children:(0,Je.jsx)("span",{children:Z})})}),f&&(0,Je.jsx)(Hh,{ref:P,clientId:s,link:e,onClose:()=>{if(!d)return P.current.contains(window.document.activeElement)&&v(s,!0),void a([]);k(!1),w?(w.focus(),C(null)):I.current?I.current.focus():v(s,!0)},anchor:j,onRemove:function(){o({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),k(!1)},onChange:t=>{Ph(t,o,e)}})]}),(0,Je.jsx)("div",{...q})]})]})},save:function(){return(0,Je.jsx)(ot.InnerBlocks.Content,{})},example:{attributes:{label:(0,tt._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:[{isEligible:e=>e.nofollow,attributes:{label:{type:"string"},type:{type:"string"},nofollow:{type:"boolean"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}},migrate:({nofollow:e,...t})=>({rel:e?"nofollow":"",...t}),save:()=>(0,Je.jsx)(ot.InnerBlocks.Content,{})}],transforms:xx},vx=()=>((0,fs.addFilter)("blocks.registerBlockType","core/navigation-link",gx),Xe({name:_x,metadata:bx,settings:yx})),fx=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"})}),kx=()=>(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,Je.jsx)(et.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})}),wx=["core/navigation-link","core/navigation-submenu","core/page-list"],Cx={name:"core/navigation-link"};const jx={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:e=>(0,Qe.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,Qe.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,Qe.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,Qe.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,Qe.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,Qe.createBlock)("core/search")}]},Sx=jx,Bx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"},{name:Nx}=Bx,Tx={icon:({context:e})=>"list-view"===e?ux:wh,__experimentalLabel(e,{context:t}){const{label:o}=e,n=e?.metadata?.name;return"list-view"===t&&(n||o)&&e?.metadata?.name||o},edit:function({attributes:e,isSelected:t,setAttributes:o,mergeBlocks:n,onReplace:r,context:a,clientId:i}){const{label:s,type:l,url:c,description:u,rel:d,title:p}=e,{showSubmenuIcon:m,maxNestingLevel:g,openSubmenusOnClick:h}=a,{__unstableMarkNextChangeAsNotPersistent:x,replaceBlock:b,selectBlock:_}=(0,gt.useDispatch)(ot.store),[y,v]=(0,bt.useState)(!1),[f,k]=(0,bt.useState)(null),[w,C]=(0,bt.useState)(null),j=(0,bt.useRef)(null),S=(e=>{const[t,o]=(0,bt.useState)(!1);return(0,bt.useEffect)((()=>{const{ownerDocument:t}=e.current;function n(e){a(e)}function r(){o(!1)}function a(t){e.current.contains(t.target)?o(!0):o(!1)}return t.addEventListener("dragstart",n),t.addEventListener("dragend",r),t.addEventListener("dragenter",a),()=>{t.removeEventListener("dragstart",n),t.removeEventListener("dragend",r),t.removeEventListener("dragenter",a)}}),[]),t})(j),B=(0,tt.__)("Add text…"),N=(0,bt.useRef)(),T=(0,mt.useResourcePermissions)("pages"),I=(0,mt.useResourcePermissions)("posts"),{parentCount:P,isParentOfSelectedBlock:M,isImmediateParentOfSelectedBlock:z,hasChildren:R,selectedBlockHasChildren:A,onlyDescendantIsEmptyLink:L}=(0,gt.useSelect)((e=>{const{hasSelectedInnerBlock:t,getSelectedBlockClientId:o,getBlockParentsByBlockName:n,getBlock:r,getBlockCount:a,getBlockOrder:s}=e(ot.store);let l;const c=s(o());if(1===c?.length){const e=r(c[0]);l="core/navigation-link"===e?.name&&!e?.attributes?.label}return{parentCount:n(i,"core/navigation-submenu").length,isParentOfSelectedBlock:t(i,!0),isImmediateParentOfSelectedBlock:t(i,!1),hasChildren:!!a(i),selectedBlockHasChildren:!!c?.length,onlyDescendantIsEmptyLink:l}}),[i]),H=(0,Ut.usePrevious)(R);(0,bt.useEffect)((()=>{h||c||v(!0)}),[]),(0,bt.useEffect)((()=>{t||v(!1)}),[t]),(0,bt.useEffect)((()=>{y&&c&&(0,pt.isURL)((0,pt.prependHTTP)(s))&&/^.+\.[a-z]+/.test(s)&&function(){N.current.focus();const{ownerDocument:e}=N.current,{defaultView:t}=e,o=t.getSelection(),n=e.createRange();n.selectNodeContents(N.current),o.removeAllRanges(),o.addRange(n)}()}),[c]);let D=!1;l&&"page"!==l?"post"===l&&(D=I.canCreate):D=T.canCreate;const{textColor:F,customTextColor:V,backgroundColor:E,customBackgroundColor:$}=yh(a,P>0),G=(0,ot.useBlockProps)({ref:(0,Ut.useMergeRefs)([C,j]),className:dt("wp-block-navigation-item",{"is-editing":t||M,"is-dragging-within":S,"has-link":!!c,"has-child":R,"has-text-color":!!F||!!V,[(0,ot.getColorClassName)("color",F)]:!!F,"has-background":!!E||$,[(0,ot.getColorClassName)("background-color",E)]:!!E,"open-on-click":h}),style:{color:!F&&V,backgroundColor:!E&&$},onKeyDown:function(e){fo.isKeyboardEvent.primary(e,"k")&&(e.preventDefault(),e.stopPropagation(),v(!0),k(N.current))}}),O=yh(a,!0),U=P>=g?wx.filter((e=>"core/navigation-submenu"!==e)):wx,q=vh(O),W=(0,ot.useInnerBlocksProps)(q,{allowedBlocks:U,defaultBlock:Cx,directInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:!!(t||z&&!A||R)&&ot.InnerBlocks.ButtonBlockAppender}),Z=h?"button":"a";function Q(){const t=(0,Qe.createBlock)("core/navigation-link",e);b(i,t)}(0,bt.useEffect)((()=>{!R&&H&&(x(),Q())}),[R,H]);const K=!A||L;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsxs)(et.ToolbarGroup,{children:[!h&&(0,Je.jsx)(et.ToolbarButton,{name:"link",icon:ko,title:(0,tt.__)("Link"),shortcut:fo.displayShortcut.primary("k"),onClick:e=>{v(!0),k(e.currentTarget)}}),(0,Je.jsx)(et.ToolbarButton,{name:"revert",icon:fx,title:(0,tt.__)("Convert to Link"),onClick:Q,className:"wp-block-navigation__submenu__revert",isDisabled:!K})]})}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:s||"",onChange:e=>{o({label:e})},label:(0,tt.__)("Text"),autoComplete:"off"}),(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:c||"",onChange:e=>{o({url:e})},label:(0,tt.__)("Link"),autoComplete:"off"}),(0,Je.jsx)(et.TextareaControl,{__nextHasNoMarginBottom:!0,value:u||"",onChange:e=>{o({description:e})},label:(0,tt.__)("Description"),help:(0,tt.__)("The description will be displayed in the menu if the current theme supports it.")}),(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:p||"",onChange:e=>{o({title:e})},label:(0,tt.__)("Title attribute"),autoComplete:"off",help:(0,tt.__)("Additional information to help clarify the purpose of the link.")}),(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:d||"",onChange:e=>{o({rel:e})},label:(0,tt.__)("Rel attribute"),autoComplete:"off",help:(0,tt.__)("The relationship of the linked URL as space-separated link types.")})]})}),(0,Je.jsxs)("div",{...G,children:[(0,Je.jsxs)(Z,{className:"wp-block-navigation-item__content",children:[(0,Je.jsx)(ot.RichText,{ref:N,identifier:"label",className:"wp-block-navigation-item__label",value:s,onChange:e=>o({label:e}),onMerge:n,onReplace:r,"aria-label":(0,tt.__)("Navigation link text"),placeholder:B,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"],onClick:()=>{h||c||(v(!0),k(N.current))}}),!h&&y&&(0,Je.jsx)(Hh,{clientId:i,link:e,onClose:()=>{v(!1),f?(f.focus(),k(null)):_(i)},anchor:w,hasCreateSuggestion:D,onRemove:()=>{o({url:""}),(0,Pg.speak)((0,tt.__)("Link removed."),"assertive")},onChange:t=>{Ph(t,o,e)}})]}),(m||h)&&(0,Je.jsx)("span",{className:"wp-block-navigation__submenu-icon",children:(0,Je.jsx)(kx,{})}),(0,Je.jsx)("div",{...W})]})]})},save:function(){return(0,Je.jsx)(ot.InnerBlocks.Content,{})},transforms:Sx},Ix=()=>Xe({name:Nx,metadata:Bx,settings:Tx}),Px=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"})});const Mx={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/nextpage"===e.dataset.block,transform:()=>(0,Qe.createBlock)("core/nextpage",{})}]},zx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/nextpage",title:"Page Break",category:"design",description:"Separate your content into a multi-page experience.",keywords:["next page","pagination"],parent:["core/post-content"],textdomain:"default",supports:{customClassName:!1,className:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-nextpage-editor"},{name:Rx}=zx,Ax={icon:Px,example:{},transforms:Mx,edit:function(){return(0,Je.jsx)("div",{...(0,ot.useBlockProps)(),children:(0,Je.jsx)("span",{children:(0,tt.__)("Page break")})})},save:function(){return(0,Je.jsx)(bt.RawHTML,{children:"\x3c!--nextpage--\x3e"})}},Lx=()=>Xe({name:Rx,metadata:zx,settings:Ax}),Hx=new WeakMap;function Dx(){const e=(0,gt.useRegistry)();if(!Hx.has(e)){const t=new Map;Hx.set(e,Fx.bind(null,t))}return Hx.get(e)}function Fx(e,{name:t,blocks:o}){const n=[...o];for(;n.length;){const o=n.shift();for(const e of null!==(r=o.innerBlocks)&&void 0!==r?r:[]){var r;n.unshift(e)}"core/pattern"===o.name&&Vx(e,t,o.attributes.slug)}}function Vx(e,t,o){if(e.has(t)||e.set(t,new Set),e.get(t).add(o),Ex(e,t))throw new TypeError(`Pattern ${t} has a circular dependency and cannot be rendered.`)}function Ex(e,t,o=new Set,n=new Set){var r;o.add(t),n.add(t);const a=null!==(r=e.get(t))&&void 0!==r?r:new Set;for(const t of a)if(o.has(t)){if(n.has(t))return!0}else if(Ex(e,t,o,n))return!0;return n.delete(t),!1}const $x=({attributes:e,clientId:t})=>{const o=(0,gt.useRegistry)(),n=(0,gt.useSelect)((t=>t(ot.store).__experimentalGetParsedPattern(e.slug)),[e.slug]),r=(0,gt.useSelect)((e=>e(mt.store).getCurrentTheme()?.stylesheet),[]),{replaceBlocks:a,setBlockEditingMode:i,__unstableMarkNextChangeAsNotPersistent:s}=(0,gt.useDispatch)(ot.store),{getBlockRootClientId:l,getBlockEditingMode:c}=(0,gt.useSelect)(ot.store),[u,d]=(0,bt.useState)(!1),p=Dx();(0,bt.useEffect)((()=>{if(!u&&n?.blocks){try{p(n)}catch(e){return void d(!0)}window.queueMicrotask((()=>{const e=l(t),u=n.blocks.map((e=>(0,Qe.cloneBlock)(function(e){return e.innerBlocks.find((e=>"core/template-part"===e.name))&&(e.innerBlocks=e.innerBlocks.map((e=>("core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=r),e)))),"core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=r),e}(e))));1===u.length&&n.categories?.length>0&&(u[0].attributes={...u[0].attributes,metadata:{...u[0].attributes.metadata,categories:n.categories,patternName:n.name,name:u[0].attributes.metadata.name||n.title}});const d=c(e);o.batch((()=>{s(),i(e,"default"),s(),a(t,u),s(),i(e,d)}))}))}}),[t,u,n,s,a,c,i,l]);const m=(0,ot.useBlockProps)();return u?(0,Je.jsx)("div",{...m,children:(0,Je.jsx)(ot.Warning,{children:(0,tt.sprintf)((0,tt.__)('Pattern "%s" cannot be rendered inside itself.'),n?.name)})}):(0,Je.jsx)("div",{...m})},Gx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pattern",title:"Pattern placeholder",category:"theme",description:"Show a block pattern.",supports:{html:!1,inserter:!1,renaming:!1,interactivity:{clientNavigation:!0}},textdomain:"default",attributes:{slug:{type:"string"}}},{name:Ox}=Gx,Ux={edit:$x},qx=()=>Xe({name:Ox,metadata:Gx,settings:Ux}),Wx=(0,Je.jsxs)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Je.jsx)(Ke.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,Je.jsx)(Ke.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,Je.jsx)(Ke.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]});function Zx(e,t){for(const o of e){if(o.attributes.id===t)return o;if(o.innerBlocks&&o.innerBlocks.length){const e=Zx(o.innerBlocks,t);if(e)return e}}return null}function Qx(e=[],t=null){let o=function(e=[]){const t={},o=[];return e.forEach((({id:e,title:n,link:r,type:a,parent:i})=>{var s;const l=null!==(s=t[e]?.innerBlocks)&&void 0!==s?s:[];t[e]=(0,Qe.createBlock)("core/navigation-link",{id:e,label:n.rendered,url:r,type:a,kind:"post-type"},l),i?(t[i]||(t[i]={innerBlocks:[]}),t[i].innerBlocks.push(t[e])):o.push(t[e])})),o}(e);if(t){const e=Zx(o,t);e&&e.innerBlocks&&(o=e.innerBlocks)}const n=e=>{e.forEach(((e,t,o)=>{const{attributes:r,innerBlocks:a}=e;if(0!==a.length){n(a);const e=(0,Qe.createBlock)("core/navigation-submenu",r,a);o[t]=e}}))};return n(o),o}function Kx({clientId:e,pages:t,parentClientId:o,parentPageID:n}){const{replaceBlock:r,selectBlock:a}=(0,gt.useDispatch)(ot.store);return()=>{const i=Qx(t,n);r(e,i),a(o)}}const Jx=(0,tt.__)("This Navigation Menu displays your website's pages. Editing it will enable you to add, delete, or reorder pages. However, new pages will no longer be added automatically.");function Yx({onClick:e,onClose:t,disabled:o}){return(0,Je.jsxs)(et.Modal,{onRequestClose:t,title:(0,tt.__)("Edit Page List"),className:"wp-block-page-list-modal",aria:{describedby:(0,Ut.useInstanceId)(Yx,"wp-block-page-list-modal__description")},children:[(0,Je.jsx)("p",{id:(0,Ut.useInstanceId)(Yx,"wp-block-page-list-modal__description"),children:Jx}),(0,Je.jsxs)("div",{className:"wp-block-page-list-modal-buttons",children:[(0,Je.jsx)(et.Button,{variant:"tertiary",onClick:t,children:(0,tt.__)("Cancel")}),(0,Je.jsx)(et.Button,{variant:"primary",__experimentalIsFocusable:!0,disabled:o,onClick:e,children:(0,tt.__)("Edit")})]})]})}const Xx=()=>{};function eb({blockProps:e,innerBlocksProps:t,hasResolvedPages:o,blockList:n,pages:r,parentPageID:a}){if(!o)return(0,Je.jsx)("div",{...e,children:(0,Je.jsx)("div",{className:"wp-block-page-list__loading-indicator-container",children:(0,Je.jsx)(et.Spinner,{className:"wp-block-page-list__loading-indicator"})})});if(null===r)return(0,Je.jsx)("div",{...e,children:(0,Je.jsx)(et.Notice,{status:"warning",isDismissible:!1,children:(0,tt.__)("Page List: Cannot retrieve Pages.")})});if(0===r.length)return(0,Je.jsx)("div",{...e,children:(0,Je.jsx)(et.Notice,{status:"info",isDismissible:!1,children:(0,tt.__)("Page List: Cannot retrieve Pages.")})});if(0===n.length){const t=r.find((e=>e.id===a));return t?.title?.rendered?(0,Je.jsx)("div",{...e,children:(0,Je.jsx)(ot.Warning,{children:(0,tt.sprintf)((0,tt.__)('Page List: "%s" page has no children.'),t.title.rendered)})}):(0,Je.jsx)("div",{...e,children:(0,Je.jsx)(et.Notice,{status:"warning",isDismissible:!1,children:(0,tt.__)("Page List: Cannot retrieve Pages.")})})}return r.length>0?(0,Je.jsx)("ul",{...t}):void 0}const tb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list",title:"Page List",category:"widgets",allowedBlocks:["core/page-list-item"],description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",attributes:{parentPageID:{type:"integer",default:0},isNested:{type:"boolean",default:!1}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:ob}=tb,nb={icon:Wx,example:{},edit:function({context:e,clientId:t,attributes:o,setAttributes:n}){const{parentPageID:r}=o,[a,i]=(0,bt.useState)(!1),s=(0,bt.useCallback)((()=>i(!0)),[]),{records:l,hasResolved:c}=(0,mt.useEntityRecords)("postType","page",{per_page:100,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),u="showSubmenuIcon"in e&&l?.length>0&&l?.length<=100,d=(0,bt.useMemo)((()=>{if(null===l)return new Map;const e=l.sort(((e,t)=>e.menu_order===t.menu_order?e.title.rendered.localeCompare(t.title.rendered):e.menu_order-t.menu_order));return e.reduce(((e,t)=>{const{parent:o}=t;return e.has(o)?e.get(o).push(t):e.set(o,[t]),e}),new Map)}),[l]),p=(0,ot.useBlockProps)({className:dt("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,ot.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,ot.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor}),style:{...e.style?.color}}),m=(0,bt.useMemo)((function e(t=0,o=0){const n=d.get(t);return n?.length?n.reduce(((t,n)=>{const r=d.has(n.id),a={value:n.id,label:"— ".repeat(o)+n.title.rendered,rawName:n.title.rendered};return t.push(a),r&&t.push(...e(n.id,o+1)),t}),[]):[]}),[d]),g=(0,bt.useMemo)((function e(t=r){const o=d.get(t);return o?.length?o.reduce(((t,o)=>{const n=d.has(o.id),r={id:o.id,label:""!==o.title?.rendered?.trim()?o.title?.rendered:(0,tt.__)("(no title)"),title:o.title?.rendered,link:o.url,hasChildren:n};let a=null;const i=e(o.id);return a=(0,Qe.createBlock)("core/page-list-item",r,i),t.push(a),t}),[]):[]}),[d,r]),{isNested:h,hasSelectedChild:x,parentClientId:b,hasDraggedChild:_,isChildOfNavigation:y}=(0,gt.useSelect)((e=>{const{getBlockParentsByBlockName:o,hasSelectedInnerBlock:n,hasDraggedInnerBlock:r}=e(ot.store),a=o(t,"core/navigation-submenu",!0),i=o(t,"core/navigation",!0);return{isNested:a.length>0,isChildOfNavigation:i.length>0,hasSelectedChild:n(t,!0),hasDraggedChild:r(t,!0),parentClientId:i[0]}}),[t]),v=Kx({clientId:t,pages:l,parentClientId:b,parentPageID:r}),f=(0,ot.useInnerBlocksProps)(p,{renderAppender:!1,__unstableDisableDropZone:!0,templateLock:!y&&"all",onInput:Xx,onChange:Xx,value:g}),{selectBlock:k}=(0,gt.useDispatch)(ot.store);return(0,bt.useEffect)((()=>{(x||_)&&(s(),k(b))}),[x,_,b,k,s]),(0,bt.useEffect)((()=>{n({isNested:h})}),[h,n]),(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(ot.InspectorControls,{children:[m.length>0&&(0,Je.jsx)(et.PanelBody,{children:(0,Je.jsx)(et.ComboboxControl,{__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:(0,tt.__)("Parent"),value:r,options:m,onChange:e=>n({parentPageID:null!=e?e:0}),help:(0,tt.__)("Choose a page to show only its subpages.")})}),u&&(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Edit this menu"),children:[(0,Je.jsx)("p",{children:Jx}),(0,Je.jsx)(et.Button,{variant:"primary",__experimentalIsFocusable:!0,disabled:!c,onClick:v,children:(0,tt.__)("Edit")})]})]}),u&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{group:"other",children:(0,Je.jsx)(et.ToolbarButton,{title:(0,tt.__)("Edit"),onClick:s,children:(0,tt.__)("Edit")})}),a&&(0,Je.jsx)(Yx,{onClick:v,onClose:()=>i(!1),disabled:!c})]}),(0,Je.jsx)(eb,{blockProps:p,innerBlocksProps:f,hasResolvedPages:c,blockList:g,pages:l,parentPageID:r})]})}},rb=()=>Xe({name:ob,metadata:tb,settings:nb}),ab=()=>(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,Je.jsx)(et.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});const ib={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list-item",title:"Page List Item",category:"widgets",parent:["core/page-list"],description:"Displays a page inside a list of all pages.",keywords:["page","menu","navigation"],textdomain:"default",attributes:{id:{type:"number"},label:{type:"string"},title:{type:"string"},link:{type:"string"},hasChildren:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1,lock:!1,inserter:!1,__experimentalToolbar:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:sb}=ib,lb={__experimentalLabel:({label:e})=>e,icon:ux,example:{},edit:function({context:e,attributes:t}){const{id:o,label:n,link:r,hasChildren:a,title:i}=t,s="showSubmenuIcon"in e,l=(0,gt.useSelect)((e=>{if(!e(mt.store).canUser("read","settings"))return;const t=e(mt.store).getEntityRecord("root","site");return"page"===t?.show_on_front&&t?.page_on_front}),[]),c=vh(yh(e,!0)),u=(0,ot.useBlockProps)(c,{className:"wp-block-pages-list__item"}),d=(0,ot.useInnerBlocksProps)(u);return(0,Je.jsxs)("li",{className:dt("wp-block-pages-list__item",{"has-child":a,"wp-block-navigation-item":s,"open-on-click":e.openSubmenusOnClick,"open-on-hover-click":!e.openSubmenusOnClick&&e.showSubmenuIcon,"menu-item-home":o===l}),children:[a&&e.openSubmenusOnClick?(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("button",{type:"button",className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false",children:(0,Xo.decodeEntities)(n)}),(0,Je.jsx)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",children:(0,Je.jsx)(ab,{})})]}):(0,Je.jsx)("a",{className:dt("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":s}),href:r,children:(0,Xo.decodeEntities)(i)}),a&&(0,Je.jsxs)(Je.Fragment,{children:[!e.openSubmenusOnClick&&e.showSubmenuIcon&&(0,Je.jsx)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon","aria-expanded":"false",type:"button",children:(0,Je.jsx)(ab,{})}),(0,Je.jsx)("ul",{...d})]})]},o)}},cb=()=>Xe({name:sb,metadata:ib,settings:lb}),ub=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})}),db={className:!1},pb={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},fontSize:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]},style:{type:"object"}},mb=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;const t={};(e.customTextColor||e.customBackgroundColor)&&(t.color={}),e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customFontSize&&(t.typography={fontSize:e.customFontSize});const{customTextColor:o,customBackgroundColor:n,customFontSize:r,...a}=e;return{...a,style:t}},{style:gb,...hb}=pb,xb=[{supports:db,attributes:{...hb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},save({attributes:e}){const{align:t,content:o,dropCap:n,direction:r}=e,a=dt({"has-drop-cap":t!==((0,tt.isRTL)()?"left":"right")&&"center"!==t&&n,[`has-text-align-${t}`]:t});return(0,Je.jsx)("p",{...ot.useBlockProps.save({className:a,dir:r}),children:(0,Je.jsx)(ot.RichText.Content,{value:o})})}},{supports:db,attributes:{...hb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:mb,save({attributes:e}){const{align:t,content:o,dropCap:n,backgroundColor:r,textColor:a,customBackgroundColor:i,customTextColor:s,fontSize:l,customFontSize:c,direction:u}=e,d=(0,ot.getColorClassName)("color",a),p=(0,ot.getColorClassName)("background-color",r),m=(0,ot.getFontSizeClass)(l),g=dt({"has-text-color":a||s,"has-background":r||i,"has-drop-cap":n,[`has-text-align-${t}`]:t,[m]:m,[d]:d,[p]:p}),h={backgroundColor:p?void 0:i,color:d?void 0:s,fontSize:m?void 0:c};return(0,Je.jsx)(ot.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:o,dir:u})}},{supports:db,attributes:{...hb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:mb,save({attributes:e}){const{align:t,content:o,dropCap:n,backgroundColor:r,textColor:a,customBackgroundColor:i,customTextColor:s,fontSize:l,customFontSize:c,direction:u}=e,d=(0,ot.getColorClassName)("color",a),p=(0,ot.getColorClassName)("background-color",r),m=(0,ot.getFontSizeClass)(l),g=dt({"has-text-color":a||s,"has-background":r||i,"has-drop-cap":n,[m]:m,[d]:d,[p]:p}),h={backgroundColor:p?void 0:i,color:d?void 0:s,fontSize:m?void 0:c,textAlign:t};return(0,Je.jsx)(ot.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:o,dir:u})}},{supports:db,attributes:{...hb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate:mb,save({attributes:e}){const{width:t,align:o,content:n,dropCap:r,backgroundColor:a,textColor:i,customBackgroundColor:s,customTextColor:l,fontSize:c,customFontSize:u}=e,d=(0,ot.getColorClassName)("color",i),p=(0,ot.getColorClassName)("background-color",a),m=c&&`is-${c}-text`,g=dt({[`align${t}`]:t,"has-background":a||s,"has-drop-cap":r,[m]:m,[d]:d,[p]:p}),h={backgroundColor:p?void 0:s,color:d?void 0:l,fontSize:m?void 0:u,textAlign:o};return(0,Je.jsx)(ot.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:n})}},{supports:db,attributes:{...hb,fontSize:{type:"number"}},save({attributes:e}){const{width:t,align:o,content:n,dropCap:r,backgroundColor:a,textColor:i,fontSize:s}=e,l=dt({[`align${t}`]:t,"has-background":a,"has-drop-cap":r}),c={backgroundColor:a,color:i,fontSize:s,textAlign:o};return(0,Je.jsx)("p",{style:c,className:l||void 0,children:n})},migrate:e=>mb({...e,customFontSize:Number.isFinite(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&"#"===e.backgroundColor[0]?e.backgroundColor:void 0})},{supports:db,attributes:{...pb,content:{type:"string",source:"html",default:""}},save:({attributes:e})=>(0,Je.jsx)(bt.RawHTML,{children:e.content}),migrate:e=>e}],bb=xb,_b=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,Je.jsx)(Ke.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"})});function yb(e){const{batch:t}=(0,gt.useRegistry)(),{moveBlocksToPosition:o,replaceInnerBlocks:n,duplicateBlocks:r,insertBlock:a}=(0,gt.useDispatch)(ot.store),{getBlockRootClientId:i,getBlockIndex:s,getBlockOrder:l,getBlockName:c,getBlock:u,getNextBlockClientId:d,canInsertBlockType:p}=(0,gt.useSelect)(ot.store),m=(0,bt.useRef)(e);return m.current=e,(0,Ut.useRefEffect)((e=>{function g(e){if(e.defaultPrevented)return;if(e.keyCode!==fo.ENTER)return;const{content:g,clientId:h}=m.current;if(g.length)return;const x=i(h);if(!(0,Qe.hasBlockSupport)(c(x),"__experimentalOnEnter",!1))return;const b=l(x),_=b.indexOf(h);if(_===b.length-1){let t=x;for(;!p(c(h),i(t));)t=i(t);return void("string"==typeof t&&(e.preventDefault(),o([h],x,i(t),s(t)+1)))}const y=(0,Qe.getDefaultBlockName)();if(!p(y,i(x)))return;e.preventDefault();const v=u(x);t((()=>{r([x]);const e=s(x);n(x,v.innerBlocks.slice(0,_)),n(d(x),v.innerBlocks.slice(_+1)),a((0,Qe.createBlock)(y),e+1,i(x),!0)}))}return e.addEventListener("keydown",g),()=>{e.removeEventListener("keydown",g)}}),[])}function vb({direction:e,setDirection:t}){return(0,tt.isRTL)()&&(0,Je.jsx)(et.ToolbarButton,{icon:_b,title:(0,tt._x)("Left to right","editor button"),isActive:"ltr"===e,onClick:()=>{t("ltr"===e?void 0:"ltr")}})}function fb(e){return e===((0,tt.isRTL)()?"left":"right")||"center"===e}function kb({clientId:e,attributes:t,setAttributes:o}){const[n]=(0,ot.useSettings)("typography.dropCap");if(!n)return null;const{align:r,dropCap:a}=t;let i;return i=fb(r)?(0,tt.__)("Not available for aligned text."):a?(0,tt.__)("Showing large initial letter."):(0,tt.__)("Toggle to show a large initial letter."),(0,Je.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,tt.__)("Drop cap"),onDeselect:()=>o({dropCap:void 0}),resetAllFilter:()=>({dropCap:void 0}),panelId:e,children:(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Drop cap"),checked:!!a,onChange:()=>o({dropCap:!a}),help:i,disabled:!!fb(r)})})}const wb=function({attributes:e,mergeBlocks:t,onReplace:o,onRemove:n,setAttributes:r,clientId:a}){const{align:i,content:s,direction:l,dropCap:c,placeholder:u}=e,d=(0,ot.useBlockProps)({ref:yb({clientId:a,content:s}),className:dt({"has-drop-cap":!fb(i)&&c,[`has-text-align-${i}`]:i}),style:{direction:l}}),p=(0,ot.useBlockEditingMode)();return(0,Je.jsxs)(Je.Fragment,{children:["default"===p&&(0,Je.jsxs)(ot.BlockControls,{group:"block",children:[(0,Je.jsx)(ot.AlignmentControl,{value:i,onChange:e=>r({align:e,dropCap:!fb(e)&&c})}),(0,Je.jsx)(vb,{direction:l,setDirection:e=>r({direction:e})})]}),(0,Je.jsx)(ot.InspectorControls,{group:"typography",children:(0,Je.jsx)(kb,{clientId:a,attributes:e,setAttributes:r})}),(0,Je.jsx)(ot.RichText,{identifier:"content",tagName:"p",...d,value:s,onChange:e=>r({content:e}),onMerge:t,onReplace:o,onRemove:n,"aria-label":ot.RichText.isEmpty(s)?(0,tt.__)("Empty block; start writing or type forward slash to choose a block"):(0,tt.__)("Block: Paragraph"),"data-empty":ot.RichText.isEmpty(s),placeholder:u||(0,tt.__)("Type / to choose a block"),"data-custom-placeholder":!!u||void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})]})};const{name:Cb}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"p",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{splitting:!0,anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},jb={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){const t=(0,Qe.getBlockAttributes)(Cb,e.outerHTML),{textAlign:o}=e.style||{};return"left"!==o&&"center"!==o&&"right"!==o||(t.align=o),(0,Qe.createBlock)(Cb,t)}}]},Sb=jb,Bb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"p",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{splitting:!0,anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},{name:Nb}=Bb,Tb={icon:ub,example:{attributes:{content:(0,tt.__)("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.")}},__experimentalLabel(e,{context:t}){const o=e?.metadata?.name;if("list-view"===t&&o)return o;if("accessibility"===t){if(o)return o;const{content:t}=e;return t&&0!==t.length?t:(0,tt.__)("Empty")}},transforms:Sb,deprecated:bb,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:wb,save:function({attributes:e}){const{align:t,content:o,dropCap:n,direction:r}=e,a=dt({"has-drop-cap":t!==((0,tt.isRTL)()?"left":"right")&&"center"!==t&&n,[`has-text-align-${t}`]:t});return(0,Je.jsx)("p",{...ot.useBlockProps.save({className:a,dir:r}),children:(0,Je.jsx)(ot.RichText.Content,{value:o})})}},Ib=()=>Xe({name:Nb,metadata:Bb,settings:Tb}),Pb=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})}),Mb={who:"authors",per_page:100};const zb=function({isSelected:e,context:{postType:t,postId:o,queryId:n},attributes:r,setAttributes:a}){const i=Number.isFinite(n),{authorId:s,authorDetails:l,authors:c}=(0,gt.useSelect)((e=>{const{getEditedEntityRecord:n,getUser:r,getUsers:a}=e(mt.store),i=n("postType",t,o)?.author;return{authorId:i,authorDetails:i?r(i):null,authors:a(Mb)}}),[t,o]),{editEntityRecord:u}=(0,gt.useDispatch)(mt.store),{textAlign:d,showAvatar:p,showBio:m,byline:g,isLink:h,linkTarget:x}=r,b=[],_=l?.name||(0,tt.__)("Post Author");l?.avatar_urls&&Object.keys(l.avatar_urls).forEach((e=>{b.push({value:e,label:`${e} x ${e}`})}));const y=(0,ot.useBlockProps)({className:dt({[`has-text-align-${d}`]:d})}),v=c?.length?c.map((({id:e,name:t})=>({value:e,label:t}))):[],f=e=>{u("postType",t,o,{author:e})},k=v.length>=25,w=!!o&&!i&&v.length>0;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[w&&(k&&(0,Je.jsx)(et.ComboboxControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Author"),options:v,value:s,onChange:f,allowReset:!1})||(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Author"),value:s,options:v,onChange:f})),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show avatar"),checked:p,onChange:()=>a({showAvatar:!p})}),p&&(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Avatar size"),value:r.avatarSize,options:b,onChange:e=>{a({avatarSize:Number(e)})}}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show bio"),checked:m,onChange:()=>a({showBio:!m})}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link author name to author page"),checked:h,onChange:()=>a({isLink:!h})}),h&&(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>a({linkTarget:e?"_blank":"_self"}),checked:"_blank"===x})]})}),(0,Je.jsx)(ot.BlockControls,{group:"block",children:(0,Je.jsx)(ot.AlignmentControl,{value:d,onChange:e=>{a({textAlign:e})}})}),(0,Je.jsxs)("div",{...y,children:[p&&l?.avatar_urls&&(0,Je.jsx)("div",{className:"wp-block-post-author__avatar",children:(0,Je.jsx)("img",{width:r.avatarSize,src:l.avatar_urls[r.avatarSize],alt:l.name})}),(0,Je.jsxs)("div",{className:"wp-block-post-author__content",children:[(!ot.RichText.isEmpty(g)||e)&&(0,Je.jsx)(ot.RichText,{identifier:"byline",className:"wp-block-post-author__byline","aria-label":(0,tt.__)("Post author byline text"),placeholder:(0,tt.__)("Write byline…"),value:g,onChange:e=>a({byline:e})}),(0,Je.jsx)("p",{className:"wp-block-post-author__name",children:h?(0,Je.jsx)("a",{href:"#post-author-pseudo-link",onClick:e=>e.preventDefault(),children:_}):_}),m&&(0,Je.jsx)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:l?.description}})]})]})]})},Rb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author",title:"Author",category:"theme",description:"Display post author details such as name, avatar, and bio.",textdomain:"default",attributes:{textAlign:{type:"string"},avatarSize:{type:"number",default:48},showAvatar:{type:"boolean",default:!0},showBio:{type:"boolean"},byline:{type:"string"},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","queryId"],supports:{html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDuotone:".wp-block-post-author__avatar img",__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-author"},{name:Ab}=Rb,Lb={icon:Pb,edit:zb},Hb=()=>Xe({name:Ab,metadata:Rb,settings:Lb});const Db=function({context:{postType:e,postId:t},attributes:{textAlign:o,isLink:n,linkTarget:r},setAttributes:a}){const{authorName:i}=(0,gt.useSelect)((o=>{const{getEditedEntityRecord:n,getUser:r}=o(mt.store),a=n("postType",e,t)?.author;return{authorName:a?r(a):null}}),[e,t]),s=(0,ot.useBlockProps)({className:dt({[`has-text-align-${o}`]:o})}),l=i?.name||(0,tt.__)("Author Name"),c=n?(0,Je.jsx)("a",{href:"#author-pseudo-link",onClick:e=>e.preventDefault(),className:"wp-block-post-author-name__link",children:l}):l;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{group:"block",children:(0,Je.jsx)(ot.AlignmentControl,{value:o,onChange:e=>{a({textAlign:e})}})}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to author archive"),onChange:()=>a({isLink:!n}),checked:n}),n&&(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>a({linkTarget:e?"_blank":"_self"}),checked:"_blank"===r})]})}),(0,Je.jsxs)("div",{...s,children:[" ",c," "]})]})},Fb={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,Qe.createBlock)("core/post-author-name",{textAlign:e})}],to:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,Qe.createBlock)("core/post-author",{textAlign:e})}]},Vb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-name",title:"Author Name",category:"theme",description:"The author name.",textdomain:"default",attributes:{textAlign:{type:"string"},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Eb}=Vb,$b={icon:Pb,transforms:Fb,edit:Db},Gb=()=>Xe({name:Eb,metadata:Vb,settings:$b});const Ob=function({context:{postType:e,postId:t},attributes:{textAlign:o},setAttributes:n}){const{authorDetails:r}=(0,gt.useSelect)((o=>{const{getEditedEntityRecord:n,getUser:r}=o(mt.store),a=n("postType",e,t)?.author;return{authorDetails:a?r(a):null}}),[e,t]),a=(0,ot.useBlockProps)({className:dt({[`has-text-align-${o}`]:o})}),i=r?.description||(0,tt.__)("Author Biography");return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{group:"block",children:(0,Je.jsx)(ot.AlignmentControl,{value:o,onChange:e=>{n({textAlign:e})}})}),(0,Je.jsx)("div",{...a,dangerouslySetInnerHTML:{__html:i}})]})},Ub={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-biography",title:"Author Biography",category:"theme",description:"The author biography.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postType","postId"],supports:{spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:qb}=Ub,Wb={icon:Pb,edit:Ob},Zb=()=>Xe({name:qb,metadata:Ub,settings:Wb}),Qb=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.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"})}),Kb=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];const Jb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comment",title:"Comment (deprecated)",category:"theme",allowedBlocks:["core/avatar","core/comment-author-name","core/comment-content","core/comment-date","core/comment-edit-link","core/comment-reply-link"],description:"This block is deprecated. Please use the Comments block instead.",textdomain:"default",attributes:{commentId:{type:"number"}},providesContext:{commentId:"commentId"},supports:{html:!1,inserter:!1,interactivity:{clientNavigation:!0}}},{name:Yb}=Jb,Xb={icon:wp,edit:function({attributes:{commentId:e},setAttributes:t}){const[o,n]=(0,bt.useState)(e),r=(0,ot.useBlockProps)(),a=(0,ot.useInnerBlocksProps)(r,{template:Kb});return e?(0,Je.jsx)("div",{...a}):(0,Je.jsx)("div",{...r,children:(0,Je.jsxs)(et.Placeholder,{icon:Qb,label:(0,tt._x)("Post Comment","block title"),instructions:(0,tt.__)("To show a comment, input the comment ID."),children:[(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,value:e,onChange:e=>n(parseInt(e))}),(0,Je.jsx)(et.Button,{variant:"primary",onClick:()=>{t({commentId:o})},children:(0,tt.__)("Save")})]})})},save:function(){const e=ot.useBlockProps.save(),t=ot.useInnerBlocksProps.save(e);return(0,Je.jsx)("div",{...t})}},e_=()=>Xe({name:Yb,metadata:Jb,settings:Xb}),t_=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"})});const o_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comments-count",title:"Comments Count",category:"theme",description:"Display a post's comments count.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId"],supports:{html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:n_}=o_,r_={icon:t_,edit:function({attributes:e,context:t,setAttributes:o}){const{textAlign:n}=e,{postId:r}=t,[a,i]=(0,bt.useState)(),s=(0,ot.useBlockProps)({className:dt({[`has-text-align-${n}`]:n})});(0,bt.useEffect)((()=>{if(!r)return;const e=r;Kr()({path:(0,pt.addQueryArgs)("/wp/v2/comments",{post:r}),parse:!1}).then((t=>{e===r&&i(t.headers.get("X-WP-Total"))}))}),[r]);const l=r&&void 0!==a,c={...s.style,textDecoration:l?s.style?.textDecoration:void 0};return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{group:"block",children:(0,Je.jsx)(ot.AlignmentControl,{value:n,onChange:e=>{o({textAlign:e})}})}),(0,Je.jsx)("div",{...s,style:c,children:l?a:(0,Je.jsx)(ot.Warning,{children:(0,tt.__)("Post Comments Count block: post not found.")})})]})}},a_=()=>Xe({name:n_,metadata:o_,settings:r_}),i_=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"})});const s_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-comments-form",title:"Comments Form",category:"theme",description:"Display a post's comments form.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-comments-form-editor",style:["wp-block-post-comments-form","wp-block-buttons","wp-block-button"]},{name:l_}=s_,c_={icon:i_,edit:function e({attributes:t,context:o,setAttributes:n}){const{textAlign:r}=t,{postId:a,postType:i}=o,s=(0,Ut.useInstanceId)(e),l=(0,tt.sprintf)("comments-form-edit-%d-desc",s),c=(0,ot.useBlockProps)({className:dt({[`has-text-align-${r}`]:r}),"aria-describedby":l});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{group:"block",children:(0,Je.jsx)(ot.AlignmentControl,{value:r,onChange:e=>{n({textAlign:e})}})}),(0,Je.jsxs)("div",{...c,children:[(0,Je.jsx)(ar,{postId:a,postType:i}),(0,Je.jsx)(et.VisuallyHidden,{id:l,children:(0,tt.__)("Comments form disabled in editor.")})]})]})}},u_=()=>Xe({name:l_,metadata:s_,settings:c_});const d_=function({context:e,attributes:t,setAttributes:o}){const{textAlign:n}=t,{postType:r,postId:a}=e,[i,s]=(0,bt.useState)(),l=(0,ot.useBlockProps)({className:dt({[`has-text-align-${n}`]:n})});(0,bt.useEffect)((()=>{if(!a)return;const e=a;Kr()({path:(0,pt.addQueryArgs)("/wp/v2/comments",{post:a}),parse:!1}).then((t=>{e===a&&s(t.headers.get("X-WP-Total"))}))}),[a]);const c=(0,gt.useSelect)((e=>e(mt.store).getEditedEntityRecord("postType",r,a)),[r,a]);if(!c)return null;const{link:u}=c;let d;if(void 0!==i){const e=parseInt(i);d=0===e?(0,tt.__)("No comments"):(0,tt.sprintf)((0,tt._n)("%s comment","%s comments",e),e.toLocaleString())}return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{group:"block",children:(0,Je.jsx)(ot.AlignmentControl,{value:n,onChange:e=>{o({textAlign:e})}})}),(0,Je.jsx)("div",{...l,children:u&&void 0!==d?(0,Je.jsx)("a",{href:u+"#comments",onClick:e=>e.preventDefault(),children:d}):(0,Je.jsx)(ot.Warning,{children:(0,tt.__)("Post Comments Link block: post not found.")})})]})},p_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comments-link",title:"Comments Link",category:"theme",description:"Displays the link to the current post comments.",textdomain:"default",usesContext:["postType","postId"],attributes:{textAlign:{type:"string"}},supports:{html:!1,color:{link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:m_}=p_,g_={edit:d_,icon:t_},h_=()=>Xe({name:m_,metadata:p_,settings:g_}),x_=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})});function b_({layoutClassNames:e,userCanEdit:t,postType:o,postId:n}){const[,,r]=(0,mt.useEntityProp)("postType",o,"content",n),a=(0,ot.useBlockProps)({className:e});return r?.protected&&!t?(0,Je.jsx)("div",{...a,children:(0,Je.jsx)(ot.Warning,{children:(0,tt.__)("This content is password protected.")})}):(0,Je.jsx)("div",{...a,dangerouslySetInnerHTML:{__html:r?.rendered}})}function __({context:e={}}){const{postType:t,postId:o}=e,[n,r,a]=(0,mt.useEntityBlockEditor)("postType",t,{id:o}),i=(0,gt.useSelect)((e=>e(mt.store).getEntityRecord("postType",t,o)),[t,o]),s=!!i?.content?.raw||n?.length,l=(0,ot.useInnerBlocksProps)((0,ot.useBlockProps)({className:"entry-content"}),{value:n,onInput:r,onChange:a,template:s?void 0:[["core/paragraph"]]});return(0,Je.jsx)("div",{...l})}function y_(e){const{context:{queryId:t,postType:o,postId:n}={},layoutClassNames:r}=e,a=qt("postType",o,n);if(void 0===a)return null;const i=Number.isFinite(t);return a&&!i?(0,Je.jsx)(__,{...e}):(0,Je.jsx)(b_,{layoutClassNames:r,userCanEdit:a,postType:o,postId:n})}function v_({layoutClassNames:e}){const t=(0,ot.useBlockProps)({className:e});return(0,Je.jsxs)("div",{...t,children:[(0,Je.jsx)("p",{children:(0,tt.__)("This is the Content block, it will display all the blocks in any single post or page.")}),(0,Je.jsx)("p",{children:(0,tt.__)("That might be a simple arrangement like consecutive paragraphs in a blog post, or a more elaborate composition that includes image galleries, videos, tables, columns, and any other block types.")}),(0,Je.jsx)("p",{children:(0,tt.__)("If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.")})]})}function f_(){const e=(0,ot.useBlockProps)();return(0,Je.jsx)("div",{...e,children:(0,Je.jsx)(ot.Warning,{children:(0,tt.__)("Block cannot be rendered inside itself.")})})}const k_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-content",title:"Content",category:"theme",description:"Displays the contents of a post or page.",textdomain:"default",usesContext:["postId","postType","queryId"],supports:{align:["wide","full"],html:!1,layout:!0,dimensions:{minHeight:!0},spacing:{blockGap:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!1,text:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-content-editor"},{name:w_}=k_,C_={icon:x_,edit:function({context:e,__unstableLayoutClassNames:t}){const{postId:o,postType:n}=e,r=(0,ot.useHasRecursion)(o);return o&&n&&r?(0,Je.jsx)(f_,{}):(0,Je.jsx)(ot.RecursionProvider,{uniqueId:o,children:o&&n?(0,Je.jsx)(y_,{context:e,layoutClassNames:t}):(0,Je.jsx)(v_,{layoutClassNames:t})})}},j_=()=>Xe({name:w_,metadata:k_,settings:C_});function S_(e){return/(?:^|[^\\])[aAgh]/.test(e)}const B_={attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:so,isEligible:({style:e})=>e?.typography?.fontFamily},N_=[B_],T_=[{name:"post-date-modified",title:(0,tt.__)("Modified Date"),description:(0,tt.__)("Display a post's last updated date."),attributes:{displayType:"modified"},scope:["block","inserter"],isActive:e=>"modified"===e.displayType,icon:Tr}],I_=T_,P_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-date",title:"Date",category:"theme",description:"Display the publish date for an entry such as a post or page.",textdomain:"default",attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1},displayType:{type:"string",default:"date"}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:M_}=P_,z_={icon:Tr,edit:function({attributes:{textAlign:e,format:t,isLink:o,displayType:n},context:{postId:r,postType:a,queryId:i},setAttributes:s}){const l=(0,ot.useBlockProps)({className:dt({[`has-text-align-${e}`]:e,"wp-block-post-date__modified-date":"modified"===n})}),[c,u]=(0,bt.useState)(null),d=(0,bt.useMemo)((()=>({anchor:c})),[c]),p=Number.isFinite(i),m=(0,Ir.getSettings)(),[g=m.formats.date]=(0,mt.useEntityProp)("root","site","date_format"),[h=m.formats.time]=(0,mt.useEntityProp)("root","site","time_format"),[x,b]=(0,mt.useEntityProp)("postType",a,n,r),_=(0,gt.useSelect)((e=>a?e(mt.store).getPostType(a):null),[a]),y="date"===n?(0,tt.__)("Post Date"):(0,tt.__)("Post Modified Date");let v=x?(0,Je.jsx)("time",{dateTime:(0,Ir.dateI18n)("c",x),ref:u,children:(0,Ir.dateI18n)(t||g,x)}):y;return o&&x&&(v=(0,Je.jsx)("a",{href:"#post-date-pseudo-link",onClick:e=>e.preventDefault(),children:v})),(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(ot.BlockControls,{group:"block",children:[(0,Je.jsx)(ot.AlignmentControl,{value:e,onChange:e=>{s({textAlign:e})}}),x&&"date"===n&&!p&&(0,Je.jsx)(et.ToolbarGroup,{children:(0,Je.jsx)(et.Dropdown,{popoverProps:d,renderContent:({onClose:e})=>(0,Je.jsx)(ot.__experimentalPublishDateTimePicker,{currentDate:x,onChange:b,is12Hour:S_(h),onClose:e}),renderToggle:({isOpen:e,onToggle:t})=>(0,Je.jsx)(et.ToolbarButton,{"aria-expanded":e,icon:$s,title:(0,tt.__)("Change Date"),onClick:t,onKeyDown:o=>{e||o.keyCode!==fo.DOWN||(o.preventDefault(),t())}})})})]}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(ot.__experimentalDateFormatPicker,{format:t,defaultFormat:g,onChange:e=>s({format:e})}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:_?.labels.singular_name?(0,tt.sprintf)((0,tt.__)("Link to %s"),_.labels.singular_name.toLowerCase()):(0,tt.__)("Link to post"),onChange:()=>s({isLink:!o}),checked:o}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display last modified date"),onChange:e=>s({displayType:e?"modified":"date"}),checked:"modified"===n,help:(0,tt.__)("Only shows if the post has been modified")})]})}),(0,Je.jsx)("div",{...l,children:v})]})},deprecated:N_,variations:I_},R_=()=>Xe({name:M_,metadata:P_,settings:z_}),A_=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"})});const L_={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,Qe.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,Qe.createBlock)("core/post-content")}]},H_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-excerpt",title:"Excerpt",category:"theme",description:"Display the excerpt.",textdomain:"default",attributes:{textAlign:{type:"string"},moreText:{type:"string"},showMoreOnNewLine:{type:"boolean",default:!0},excerptLength:{type:"number",default:55}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-post-excerpt-editor",style:"wp-block-post-excerpt"},{name:D_}=H_,F_={icon:A_,transforms:L_,edit:function({attributes:{textAlign:e,moreText:t,showMoreOnNewLine:o,excerptLength:n},setAttributes:r,isSelected:a,context:{postId:i,postType:s,queryId:l}}){const c=Number.isFinite(l),u=qt("postType",s,i),[d,p,{rendered:m,protected:g}={}]=(0,mt.useEntityProp)("postType",s,"excerpt",i),h=(0,gt.useSelect)((e=>"page"===s||!!e(mt.store).getPostType(s)?.supports?.excerpt),[s]),x=u&&!c&&h,b=(0,ot.useBlockProps)({className:dt({[`has-text-align-${e}`]:e})}),_=(0,tt._x)("words","Word count type. Do not translate!"),y=(0,bt.useMemo)((()=>{if(!m)return"";const e=(new window.DOMParser).parseFromString(m,"text/html");return e.body.textContent||e.body.innerText||""}),[m]);if(!s||!i)return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(ot.AlignmentToolbar,{value:e,onChange:e=>r({textAlign:e})})}),(0,Je.jsx)("div",{...b,children:(0,Je.jsx)("p",{children:(0,tt.__)("This block will display the excerpt.")})})]});if(g&&!u)return(0,Je.jsx)("div",{...b,children:(0,Je.jsx)(ot.Warning,{children:(0,tt.__)("The content is currently protected and does not have the available excerpt.")})});const v=(0,Je.jsx)(ot.RichText,{identifier:"moreText",className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,tt.__)("“Read more” link text"),placeholder:(0,tt.__)('Add "read more" link text'),value:t,onChange:e=>r({moreText:e}),withoutInteractiveFormatting:!0}),f=dt("wp-block-post-excerpt__excerpt",{"is-inline":!o}),k=(d||y).trim();let w="";if("words"===_)w=k.split(" ",n).join(" ");else if("characters_excluding_spaces"===_){const e=k.split("",n).join(""),t=e.length-e.replaceAll(" ","").length;w=k.split("",n+t).join("")}else"characters_including_spaces"===_&&(w=k.split("",n).join(""));const C=w!==k,j=x?(0,Je.jsx)(ot.RichText,{className:f,"aria-label":(0,tt.__)("Excerpt text"),value:a?k:(C?w+"…":k)||(0,tt.__)("No excerpt found"),onChange:p,tagName:"p"}):(0,Je.jsx)("p",{className:f,children:C?w+"…":k||(0,tt.__)("No excerpt found")});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(ot.AlignmentToolbar,{value:e,onChange:e=>r({textAlign:e})})}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show link on new line"),checked:o,onChange:e=>r({showMoreOnNewLine:e})}),(0,Je.jsx)(et.RangeControl,{label:(0,tt.__)("Max number of words"),value:n,onChange:e=>{r({excerptLength:e})},min:"10",max:"100"})]})}),(0,Je.jsxs)("div",{...b,children:[j,!o&&" ",o?(0,Je.jsx)("p",{className:"wp-block-post-excerpt__more-text",children:v}):v]})]})}},V_=()=>Xe({name:D_,metadata:H_,settings:F_}),E_=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})}),$_=(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.__experimentalToggleGroupControlOption,{value:"cover",label:(0,tt._x)("Cover","Scale option for Image dimension control")}),(0,Je.jsx)(et.__experimentalToggleGroupControlOption,{value:"contain",label:(0,tt._x)("Contain","Scale option for Image dimension control")}),(0,Je.jsx)(et.__experimentalToggleGroupControlOption,{value:"fill",label:(0,tt._x)("Fill","Scale option for Image dimension control")})]}),G_="cover",O_={cover:(0,tt.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:(0,tt.__)("Image is scaled to fill the space without clipping nor distorting."),fill:(0,tt.__)("Image will be stretched and distorted to completely fill the space.")},U_=({clientId:e,attributes:{aspectRatio:t,width:o,height:n,scale:r,sizeSlug:a},setAttributes:i,media:s})=>{const[l,c,u,d]=(0,ot.useSettings)("spacing.units","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),p=(0,et.__experimentalUseCustomUnits)({availableUnits:l||["px","%","vw","em","rem"]}),m=(0,gt.useSelect)((e=>e(ot.store).getSettings().imageSizes),[]).filter((({slug:e})=>s?.media_details?.sizes?.[e]?.source_url)).map((({name:e,slug:t})=>({value:t,label:e}))),g=(e,t)=>{const o=parseFloat(t);isNaN(o)&&t||i({[e]:o<0?"0":t})},h=(0,tt._x)("Scale","Image scaling options"),x=n||t&&"auto"!==t,b=u?.map((({name:e,ratio:t})=>({label:e,value:t}))),_=c?.map((({name:e,ratio:t})=>({label:e,value:t}))),y=[{label:(0,tt._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...d?_:[],...b||[]];return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,tt.__)("Aspect ratio"),onDeselect:()=>i({aspectRatio:void 0}),resetAllFilter:()=>({aspectRatio:void 0}),isShownByDefault:!0,panelId:e,children:(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Aspect ratio"),value:t,options:y,onChange:e=>i({aspectRatio:e})})}),(0,Je.jsx)(et.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!n,label:(0,tt.__)("Height"),onDeselect:()=>i({height:void 0}),resetAllFilter:()=>({height:void 0}),isShownByDefault:!0,panelId:e,children:(0,Je.jsx)(et.__experimentalUnitControl,{label:(0,tt.__)("Height"),labelPosition:"top",value:n||"",min:0,onChange:e=>g("height",e),units:p})}),(0,Je.jsx)(et.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!o,label:(0,tt.__)("Width"),onDeselect:()=>i({width:void 0}),resetAllFilter:()=>({width:void 0}),isShownByDefault:!0,panelId:e,children:(0,Je.jsx)(et.__experimentalUnitControl,{label:(0,tt.__)("Width"),labelPosition:"top",value:o||"",min:0,onChange:e=>g("width",e),units:p})}),x&&(0,Je.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>!!r&&r!==G_,label:h,onDeselect:()=>i({scale:G_}),resetAllFilter:()=>({scale:G_}),isShownByDefault:!0,panelId:e,children:(0,Je.jsx)(et.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:h,value:r,help:O_[r],onChange:e=>i({scale:e}),isBlock:!0,children:$_})}),!!m.length&&(0,Je.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,tt.__)("Resolution"),onDeselect:()=>i({sizeSlug:void 0}),resetAllFilter:()=>({sizeSlug:void 0}),isShownByDefault:!1,panelId:e,children:(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Resolution"),value:a||"full",options:m,onChange:e=>i({sizeSlug:e}),help:(0,tt.__)("Select the size of the source image.")})})]})},q_=(0,Ut.compose)([(0,ot.withColors)({overlayColor:"background-color"})])((({clientId:e,attributes:t,setAttributes:o,overlayColor:n,setOverlayColor:r})=>{const{dimRatio:a}=t,{gradientValue:i,setGradient:s}=(0,ot.__experimentalUseGradient)(),l=(0,ot.__experimentalUseMultipleOriginColorsAndGradients)();return l.hasColorsOrGradients?(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:n.color,gradientValue:i,label:(0,tt.__)("Overlay"),onColorChange:r,onGradientChange:s,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0})}],panelId:e,...l}),(0,Je.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>void 0!==a,label:(0,tt.__)("Overlay opacity"),onDeselect:()=>o({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e,children:(0,Je.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Overlay opacity"),value:a,onChange:e=>o({dimRatio:e}),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}):null}));const W_=(0,Ut.compose)([(0,ot.withColors)({overlayColor:"background-color"})])((({attributes:e,overlayColor:t})=>{const{dimRatio:o}=e,{gradientClass:n,gradientValue:r}=(0,ot.__experimentalUseGradient)(),a=(0,ot.__experimentalUseMultipleOriginColorsAndGradients)(),i=(0,ot.__experimentalUseBorderProps)(e),s={backgroundColor:t.color,backgroundImage:r,...i.style};return a.hasColorsOrGradients&&o?(0,Je.jsx)("span",{"aria-hidden":"true",className:dt("wp-block-post-featured-image__overlay",(l=o,void 0===l?null:"has-background-dim-"+10*Math.round(l/10)),{[t.class]:t.class,"has-background-dim":void 0!==o,"has-background-gradient":r,[n]:n},i.className),style:s}):null;var l})),Z_=["image"];const Q_={onClick:e=>e.preventDefault(),"aria-disabled":!0};const K_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-featured-image",title:"Featured Image",category:"theme",description:"Display a post's featured image.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1},aspectRatio:{type:"string"},width:{type:"string"},height:{type:"string"},scale:{type:"string",default:"cover"},sizeSlug:{type:"string"},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"},overlayColor:{type:"string"},customOverlayColor:{type:"string"},dimRatio:{type:"number",default:0},gradient:{type:"string"},customGradient:{type:"string"},useFirstImageFromPost:{type:"boolean",default:!1}},usesContext:["postId","postType","queryId"],supports:{align:["left","right","center","wide","full"],color:{text:!1,background:!1},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},filter:{duotone:!0},shadow:{__experimentalSkipSerialization:!0},html:!1,spacing:{margin:!0,padding:!0},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay",shadow:".wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder",filter:{duotone:".wp-block-post-featured-image img, .wp-block-post-featured-image .wp-block-post-featured-image__placeholder, .wp-block-post-featured-image .components-placeholder__illustration, .wp-block-post-featured-image .components-placeholder::before"}},editorStyle:"wp-block-post-featured-image-editor",style:"wp-block-post-featured-image"},{name:J_}=K_,Y_={icon:E_,edit:function({clientId:e,attributes:t,setAttributes:o,context:{postId:n,postType:r,queryId:a}}){const i=Number.isFinite(a),{isLink:s,aspectRatio:l,height:c,width:u,scale:d,sizeSlug:p,rel:m,linkTarget:g,useFirstImageFromPost:h}=t,[x,b]=(0,bt.useState)(),[_,y]=(0,mt.useEntityProp)("postType",r,"featured_media",n),[v]=(0,mt.useEntityProp)("postType",r,"content",n),f=(0,bt.useMemo)((()=>{if(_)return _;if(!h)return;const e=/<!--\s+wp:(?:core\/)?image\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*)?}\s+)?-->/.exec(v);return e?.groups?.attrs&&JSON.parse(e.groups.attrs)?.id}),[_,h,v]),{media:k,postType:w,postPermalink:C}=(0,gt.useSelect)((e=>{const{getMedia:t,getPostType:o,getEditedEntityRecord:a}=e(mt.store);return{media:f&&t(f,{context:"view"}),postType:r&&o(r),postPermalink:a("postType",r,n)?.link}}),[f,r,n]),j=function(e,t){return e?.media_details?.sizes?.[t]?.source_url||e?.source_url}(k,p),S=(0,ot.useBlockProps)({style:{width:u,height:c,aspectRatio:l},className:dt({"is-transient":x})}),B=(0,ot.__experimentalUseBorderProps)(t),N=(0,ot.__experimentalGetShadowClassesAndStyles)(t),T=(0,ot.useBlockEditingMode)(),I=e=>(0,Je.jsx)(et.Placeholder,{className:dt("block-editor-media-placeholder",B.className),withIllustration:!0,style:{height:!!l&&"100%",width:!!l&&"100%",...B.style,...N.style},children:e}),P=e=>{e?.id&&y(e.id),e?.url&&(0,It.isBlobURL)(e.url)&&b(e.url)};(0,bt.useEffect)((()=>{j&&x&&b()}),[j,x]);const{createErrorNotice:M}=(0,gt.useDispatch)(Pt.store),z=e=>{M(e,{type:"snackbar"}),b()},R="default"===T&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{group:"color",children:(0,Je.jsx)(q_,{attributes:t,setAttributes:o,clientId:e})}),(0,Je.jsx)(ot.InspectorControls,{group:"dimensions",children:(0,Je.jsx)(U_,{clientId:e,attributes:t,setAttributes:o,media:k})}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:w?.labels.singular_name?(0,tt.sprintf)((0,tt.__)("Link to %s"),w.labels.singular_name):(0,tt.__)("Link to post"),onChange:()=>o({isLink:!s}),checked:s}),s&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>o({linkTarget:e?"_blank":"_self"}),checked:"_blank"===g}),(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link rel"),value:m,onChange:e=>o({rel:e})})]})]})})]});let A;if(!f&&(i||!n))return(0,Je.jsxs)(Je.Fragment,{children:[R,(0,Je.jsxs)("div",{...S,children:[s?(0,Je.jsx)("a",{href:C,target:g,...Q_,children:I()}):I(),(0,Je.jsx)(W_,{attributes:t,setAttributes:o,clientId:e})]})]});const L=(0,tt.__)("Add a featured image"),H={...B.style,...N.style,height:l?"100%":c,width:!!l&&"100%",objectFit:!(!c&&!l)&&d};return A=f||x?k||x?(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("img",{className:B.className,src:x||j,alt:k&&k?.alt_text?(0,tt.sprintf)((0,tt.__)("Featured image: %s"),k.alt_text):(0,tt.__)("Featured image"),style:H}),x&&(0,Je.jsx)(et.Spinner,{})]}):I():(0,Je.jsx)(ot.MediaPlaceholder,{onSelect:P,accept:"image/*",allowedTypes:Z_,onError:z,placeholder:I,mediaLibraryButton:({open:e})=>(0,Je.jsx)(et.Button,{icon:ip,variant:"primary",label:L,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{e()}})}),(0,Je.jsxs)(Je.Fragment,{children:[!x&&R,!!k&&!i&&(0,Je.jsx)(ot.BlockControls,{group:"other",children:(0,Je.jsx)(ot.MediaReplaceFlow,{mediaId:f,mediaURL:j,allowedTypes:Z_,accept:"image/*",onSelect:P,onError:z,children:(0,Je.jsx)(et.MenuItem,{onClick:()=>y(0),children:(0,tt.__)("Reset")})})}),(0,Je.jsxs)("figure",{...S,children:[s?(0,Je.jsx)("a",{href:C,target:g,...Q_,children:A}):A,(0,Je.jsx)(W_,{attributes:t,setAttributes:o,clientId:e})]})]})}},X_=()=>Xe({name:J_,metadata:K_,settings:Y_});const ey=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})}),ty=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})}),oy=[{isDefault:!0,name:"post-next",title:(0,tt.__)("Next post"),description:(0,tt.__)("Displays the post link that follows the current post."),icon:ey,attributes:{type:"next"},scope:["inserter","transform"]},{name:"post-previous",title:(0,tt.__)("Previous post"),description:(0,tt.__)("Displays the post link that precedes the current post."),icon:ty,attributes:{type:"previous"},scope:["inserter","transform"]}];oy.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));const ny=oy,ry={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-navigation-link",title:"Post Navigation Link",category:"theme",description:"Displays the next or previous post link that is adjacent to the current post.",textdomain:"default",attributes:{textAlign:{type:"string"},type:{type:"string",default:"next"},label:{type:"string"},showTitle:{type:"boolean",default:!1},linkLabel:{type:"boolean",default:!1},arrow:{type:"string",default:"none"},taxonomy:{type:"string",default:""}},usesContext:["postType"],supports:{reusable:!1,html:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-navigation-link"},{name:ay}=ry,iy={edit:function({context:{postType:e},attributes:{type:t,label:o,showTitle:n,textAlign:r,linkLabel:a,arrow:i,taxonomy:s},setAttributes:l}){const c="next"===t;let u=c?(0,tt.__)("Next"):(0,tt.__)("Previous");const d={none:"",arrow:c?"→":"←",chevron:c?"»":"«"}[i];n&&(u=c?(0,tt.__)("Next: "):(0,tt.__)("Previous: "));const p=c?(0,tt.__)("Next post"):(0,tt.__)("Previous post"),m=(0,ot.useBlockProps)({className:dt({[`has-text-align-${r}`]:r})}),g=(0,gt.useSelect)((t=>{const{getTaxonomies:o}=t(mt.store);return o({type:e,per_page:-1})}),[e]);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display the title as a link"),help:(0,tt.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!n,onChange:()=>l({showTitle:!n})}),n&&(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Include the label as part of the link"),checked:!!a,onChange:()=>l({linkLabel:!a})}),(0,Je.jsxs)(et.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Arrow"),value:i,onChange:e=>{l({arrow:e})},help:(0,tt.__)("A decorative arrow for the next and previous link."),isBlock:!0,children:[(0,Je.jsx)(et.__experimentalToggleGroupControlOption,{value:"none",label:(0,tt._x)("None","Arrow option for Next/Previous link")}),(0,Je.jsx)(et.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,tt._x)("Arrow","Arrow option for Next/Previous link")}),(0,Je.jsx)(et.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,tt._x)("Chevron","Arrow option for Next/Previous link")})]})]})}),(0,Je.jsx)(ot.InspectorControls,{group:"advanced",children:(0,Je.jsx)(et.SelectControl,{label:(0,tt.__)("Filter by taxonomy"),value:s,options:[{label:(0,tt.__)("Unfiltered"),value:""},...(null!=g?g:[]).filter((({visibility:e})=>!!e?.publicly_queryable)).map((e=>({value:e.slug,label:e.name})))],onChange:e=>l({taxonomy:e}),help:(0,tt.__)("Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.")})}),(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(ot.AlignmentToolbar,{value:r,onChange:e=>{l({textAlign:e})}})}),(0,Je.jsxs)("div",{...m,children:[!c&&d&&(0,Je.jsx)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${i}`,children:d}),(0,Je.jsx)(ot.RichText,{tagName:"a",identifier:"label","aria-label":p,placeholder:u,value:o,allowedFormats:["core/bold","core/italic"],onChange:e=>l({label:e})}),n&&(0,Je.jsx)("a",{href:"#post-navigation-pseudo-link",onClick:e=>e.preventDefault(),children:(0,tt.__)("An example title")}),c&&d&&(0,Je.jsx)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${i}`,"aria-hidden":!0,children:d})]})]})},variations:ny},sy=()=>Xe({name:ay,metadata:ry,settings:iy}),ly=[["core/post-title"],["core/post-date"],["core/post-excerpt"]];function cy({classList:e}){const t=(0,ot.useInnerBlocksProps)({className:dt("wp-block-post",e)},{template:ly,__unstableDisableLayoutClassNames:!0});return(0,Je.jsx)("li",{...t})}const uy=(0,bt.memo)((function({blocks:e,blockContextId:t,classList:o,isHidden:n,setActiveBlockContextId:r}){const a=(0,ot.__experimentalUseBlockPreview)({blocks:e,props:{className:dt("wp-block-post",o)}}),i=()=>{r(t)},s={display:n?"none":void 0};return(0,Je.jsx)("li",{...a,tabIndex:0,role:"button",onClick:i,onKeyPress:i,style:s})}));const dy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-template",title:"Post Template",category:"theme",parent:["core/query"],description:"Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",textdomain:"default",usesContext:["queryId","query","displayLayout","templateSlug","previewPostType","enhancedPagination"],supports:{reusable:!1,html:!1,align:["wide","full"],layout:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-template",editorStyle:"wp-block-post-template-editor"},{name:py}=dy,my={icon:Zr,edit:function({setAttributes:e,clientId:t,context:{query:{perPage:o,offset:n=0,postType:r,order:a,orderBy:i,author:s,search:l,exclude:c,sticky:u,inherit:d,taxQuery:p,parents:m,pages:g,...h}={},templateSlug:x,previewPostType:b},attributes:{layout:_},__unstableLayoutClassNames:y}){const{type:v,columnCount:f=3}=_||{},[k,w]=(0,bt.useState)(),{posts:C,blocks:j}=(0,gt.useSelect)((e=>{const{getEntityRecords:g,getTaxonomies:_}=e(mt.store),{getBlocks:y}=e(ot.store),v=d&&x?.startsWith("category-")&&g("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:x.replace("category-","")}),f={offset:n||0,order:a,orderby:i};if(p&&!d){const e=_({type:r,per_page:-1,context:"view"}),t=Object.entries(p).reduce(((t,[o,n])=>{const r=e?.find((({slug:e})=>e===o));return r?.rest_base&&(t[r?.rest_base]=n),t}),{});Object.keys(t).length&&Object.assign(f,t)}o&&(f.per_page=o),s&&(f.author=s),l&&(f.search=l),c?.length&&(f.exclude=c),m?.length&&(f.parent=m),u&&(f.sticky="only"===u),d&&(x?.startsWith("archive-")?(f.postType=x.replace("archive-",""),r=f.postType):v&&(f.categories=v[0]?.id));return{posts:g("postType",b||r,{...f,...h}),blocks:y(t)}}),[o,n,a,i,t,s,l,r,c,u,d,x,p,m,h,b]),S=(0,bt.useMemo)((()=>C?.map((e=>{var t;return{postType:e.type,postId:e.id,classList:null!==(t=e.class_list)&&void 0!==t?t:""}}))),[C]),B=(0,ot.useBlockProps)({className:dt(y,{[`columns-${f}`]:"grid"===v&&f})});if(!C)return(0,Je.jsx)("p",{...B,children:(0,Je.jsx)(et.Spinner,{})});if(!C.length)return(0,Je.jsxs)("p",{...B,children:[" ",(0,tt.__)("No results found.")]});const N=t=>e({layout:{..._,...t}}),T=[{icon:Pp,title:(0,tt._x)("List view","Post template block display setting"),onClick:()=>N({type:"default"}),isActive:"default"===v||"constrained"===v},{icon:nd,title:(0,tt._x)("Grid view","Post template block display setting"),onClick:()=>N({type:"grid",columnCount:f}),isActive:"grid"===v}];return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(et.ToolbarGroup,{controls:T})}),(0,Je.jsx)("ul",{...B,children:S&&S.map((e=>(0,Je.jsxs)(ot.BlockContextProvider,{value:e,children:[e.postId===(k||S[0]?.postId)?(0,Je.jsx)(cy,{classList:e.classList}):null,(0,Je.jsx)(uy,{blocks:j,blockContextId:e.postId,classList:e.classList,setActiveBlockContextId:w,isHidden:e.postId===(k||S[0]?.postId)})]},e.postId)))})]})},save:function(){return(0,Je.jsx)(ot.InnerBlocks.Content,{})}},gy=()=>Xe({name:py,metadata:dy,settings:my}),hy=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",fillRule:"evenodd",clipRule:"evenodd"})}),xy=[];const by=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];const _y=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})}),yy={category:hy,post_tag:_y};function vy(e,t){if("core/post-terms"!==t)return e;const o=e.variations.map((e=>{var t;return{...e,icon:null!==(t=yy[e.name])&&void 0!==t?t:hy}}));return{...e,variations:o}}const fy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-terms",title:"Post Terms",category:"theme",description:"Post terms.",textdomain:"default",attributes:{term:{type:"string"},textAlign:{type:"string"},separator:{type:"string",default:", "},prefix:{type:"string",default:""},suffix:{type:"string",default:""}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-terms"},{name:ky}=fy,wy={icon:hy,edit:function({attributes:e,clientId:t,context:o,isSelected:n,setAttributes:r,insertBlocksAfter:a}){const{term:i,textAlign:s,separator:l,prefix:c,suffix:u}=e,{postId:d,postType:p}=o,m=(0,gt.useSelect)((e=>{if(!i)return{};const{getTaxonomy:t}=e(mt.store),o=t(i);return o?.visibility?.publicly_queryable?o:{}}),[i]),{postTerms:g,hasPostTerms:h,isLoading:x}=function({postId:e,term:t}){const{slug:o}=t;return(0,gt.useSelect)((n=>{const r=t?.visibility?.publicly_queryable;if(!r)return{postTerms:xy,isLoading:!1,hasPostTerms:!1};const{getEntityRecords:a,isResolving:i}=n(mt.store),s=["taxonomy",o,{post:e,per_page:-1,context:"view"}],l=a(...s);return{postTerms:l,isLoading:i("getEntityRecords",s),hasPostTerms:!!l?.length}}),[e,t?.visibility?.publicly_queryable,o])}({postId:d,term:m}),b=d&&p,_=(0,ot.useBlockDisplayInformation)(t),y=(0,ot.useBlockProps)({className:dt({[`has-text-align-${s}`]:s,[`taxonomy-${i}`]:i})});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(ot.AlignmentToolbar,{value:s,onChange:e=>{r({textAlign:e})}})}),(0,Je.jsx)(ot.InspectorControls,{group:"advanced",children:(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,tt.__)("Separator"),value:l||"",onChange:e=>{r({separator:e})},help:(0,tt.__)("Enter character(s) used to separate terms.")})}),(0,Je.jsxs)("div",{...y,children:[x&&b&&(0,Je.jsx)(et.Spinner,{}),!x&&(n||c)&&(0,Je.jsx)(ot.RichText,{identifier:"prefix",allowedFormats:by,className:"wp-block-post-terms__prefix","aria-label":(0,tt.__)("Prefix"),placeholder:(0,tt.__)("Prefix")+" ",value:c,onChange:e=>r({prefix:e}),tagName:"span"}),(!b||!i)&&(0,Je.jsx)("span",{children:_.title}),b&&!x&&h&&g.map((e=>(0,Je.jsx)("a",{href:e.link,onClick:e=>e.preventDefault(),children:(0,Xo.decodeEntities)(e.name)},e.id))).reduce(((e,t)=>(0,Je.jsxs)(Je.Fragment,{children:[e,(0,Je.jsx)("span",{className:"wp-block-post-terms__separator",children:l||" "}),t]}))),b&&!x&&!h&&(m?.labels?.no_terms||(0,tt.__)("Term items not found.")),!x&&(n||u)&&(0,Je.jsx)(ot.RichText,{identifier:"suffix",allowedFormats:by,className:"wp-block-post-terms__suffix","aria-label":(0,tt.__)("Suffix"),placeholder:" "+(0,tt.__)("Suffix"),value:u,onChange:e=>r({suffix:e}),tagName:"span",__unstableOnSplitAtEnd:()=>a((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))})]})]})}},Cy=()=>((0,fs.addFilter)("blocks.registerBlockType","core/template-part",vy),Xe({name:ky,metadata:fy,settings:wy})),jy=window.wp.wordcount;const Sy=function({attributes:e,setAttributes:t,context:o}){const{textAlign:n}=e,{postId:r,postType:a}=o,[i]=(0,mt.useEntityProp)("postType",a,"content",r),[s]=(0,mt.useEntityBlockEditor)("postType",a,{id:r}),l=(0,bt.useMemo)((()=>{let e;e=i instanceof Function?i({blocks:s}):s?(0,Qe.__unstableSerializeAndClean)(s):i;const t=(0,tt._x)("words","Word count type. Do not translate!"),o=Math.max(1,Math.round((0,jy.count)(e||"",t)/189));return(0,tt.sprintf)((0,tt._n)("%d minute","%d minutes",o),o)}),[i,s]),c=(0,ot.useBlockProps)({className:dt({[`has-text-align-${n}`]:n})});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{group:"block",children:(0,Je.jsx)(ot.AlignmentControl,{value:n,onChange:e=>{t({textAlign:e})}})}),(0,Je.jsx)("div",{...c,children:l})]})},By=(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,Je.jsx)(et.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16.5c-4.1 0-7.5-3.4-7.5-7.5S7.9 4.5 12 4.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5zM12 7l-1 5c0 .3.2.6.4.8l4.2 2.8-2.7-4.1L12 7z"})}),Ny={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/post-time-to-read",title:"Time To Read",category:"theme",description:"Show minutes required to finish reading the post.",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Ty}=Ny,Iy={icon:By,edit:Sy},Py=()=>Xe({name:Ty,metadata:Ny,settings:Iy});const My={attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0}},save:()=>null,migrate:so,isEligible:({style:e})=>e?.typography?.fontFamily},zy=[My],Ry={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-title",title:"Title",category:"theme",description:"Displays the title of a post, page, or any other content-type.",textdomain:"default",usesContext:["postId","postType","queryId"],attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-title"},{name:Ay}=Ry,Ly={icon:Pa,edit:function({attributes:{level:e,textAlign:t,isLink:o,rel:n,linkTarget:r},setAttributes:a,context:{postType:i,postId:s,queryId:l},insertBlocksAfter:c}){const u=0===e?"p":`h${e}`,d=Number.isFinite(l),p=(0,gt.useSelect)((e=>!d&&e(mt.store).canUserEditEntityRecord("postType",i,s)),[d,i,s]),[m="",g,h]=(0,mt.useEntityProp)("postType",i,"title",s),[x]=(0,mt.useEntityProp)("postType",i,"link",s),b=()=>{c((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))},_=(0,ot.useBlockProps)({className:dt({[`has-text-align-${t}`]:t})}),y=(0,ot.useBlockEditingMode)();let v=(0,Je.jsx)(u,{..._,children:(0,tt.__)("Title")});return i&&s&&(v=p?(0,Je.jsx)(ot.PlainText,{tagName:u,placeholder:(0,tt.__)("No Title"),value:m,onChange:g,__experimentalVersion:2,__unstableOnSplitAtEnd:b,..._}):(0,Je.jsx)(u,{..._,dangerouslySetInnerHTML:{__html:h?.rendered}})),o&&i&&s&&(v=p?(0,Je.jsx)(u,{..._,children:(0,Je.jsx)(ot.PlainText,{tagName:"a",href:x,target:r,rel:n,placeholder:m.length?null:(0,tt.__)("No Title"),value:m,onChange:g,__experimentalVersion:2,__unstableOnSplitAtEnd:b})}):(0,Je.jsx)(u,{..._,children:(0,Je.jsx)("a",{href:x,target:r,rel:n,onClick:e=>e.preventDefault(),dangerouslySetInnerHTML:{__html:h?.rendered}})})),(0,Je.jsxs)(Je.Fragment,{children:["default"===y&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(ot.BlockControls,{group:"block",children:[(0,Je.jsx)(ot.HeadingLevelDropdown,{value:e,onChange:e=>a({level:e})}),(0,Je.jsx)(ot.AlignmentControl,{value:t,onChange:e=>{a({textAlign:e})}})]}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Make title a link"),onChange:()=>a({isLink:!o}),checked:o}),o&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>a({linkTarget:e?"_blank":"_self"}),checked:"_blank"===r}),(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link rel"),value:n,onChange:e=>a({rel:e})})]})]})})]}),v]})},deprecated:zy},Hy=()=>Xe({name:Ay,metadata:Ry,settings:Ly}),Dy=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.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 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"})});const Fy={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:({content:e,anchor:t})=>(0,Qe.createBlock)("core/preformatted",{content:e,anchor:t})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName),schema:({phrasingContentSchema:e})=>({pre:{children:e}})}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,Qe.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,Qe.createBlock)("core/code",e)}]},Vy=Fy,Ey={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/preformatted",title:"Preformatted",category:"text",description:"Add text that respects your spacing and tabs, and also allows styling.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"pre",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"}},supports:{anchor:!0,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-preformatted"},{name:$y}=Ey,Gy={icon:Dy,example:{attributes:{content:(0,tt.__)("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;")}},transforms:Vy,edit:function({attributes:e,mergeBlocks:t,setAttributes:o,onRemove:n,insertBlocksAfter:r,style:a}){const{content:i}=e,s=(0,ot.useBlockProps)({style:a});return(0,Je.jsx)(ot.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:i,onChange:e=>{o({content:e})},onRemove:n,"aria-label":(0,tt.__)("Preformatted text"),placeholder:(0,tt.__)("Write preformatted text…"),onMerge:t,...s,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>r((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))})},save:function({attributes:e}){const{content:t}=e;return(0,Je.jsx)("pre",{...ot.useBlockProps.save(),children:(0,Je.jsx)(ot.RichText.Content,{value:t})})},merge:(e,t)=>({content:e.content+"\n\n"+t.content})},Oy=()=>Xe({name:$y,metadata:Ey,settings:Gy}),Uy=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.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"})}),qy="is-style-solid-color",Wy={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}};function Zy(e){if(!e)return;const t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}function Qy(e){const t=`</p>${e=e||"<p></p>"}<p>`.split("</p><p>");return t.shift(),t.pop(),t.join("<br>")}const Ky={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,citation:o,value:n}=e,r=!ot.RichText.isEmpty(o);return(0,Je.jsx)("figure",{...ot.useBlockProps.save({className:dt({[`has-text-align-${t}`]:t})}),children:(0,Je.jsxs)("blockquote",{children:[(0,Je.jsx)(ot.RichText.Content,{value:n,multiline:!0}),r&&(0,Je.jsx)(ot.RichText.Content,{tagName:"cite",value:o})]})})},migrate:({value:e,...t})=>({value:Qy(e),...t})},Jy={attributes:{...Wy},save({attributes:e}){const{mainColor:t,customMainColor:o,customTextColor:n,textColor:r,value:a,citation:i,className:s}=e,l=s?.includes(qy);let c,u;if(l){const e=(0,ot.getColorClassName)("background-color",t);c=dt({"has-background":e||o,[e]:e}),u={backgroundColor:e?void 0:o}}else o&&(u={borderColor:o});const d=(0,ot.getColorClassName)("color",r),p=dt({"has-text-color":r||n,[d]:d}),m=d?void 0:{color:n};return(0,Je.jsx)("figure",{...ot.useBlockProps.save({className:c,style:u}),children:(0,Je.jsxs)("blockquote",{className:p,style:m,children:[(0,Je.jsx)(ot.RichText.Content,{value:a,multiline:!0}),!ot.RichText.isEmpty(i)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"cite",value:i})]})})},migrate({value:e,className:t,mainColor:o,customMainColor:n,customTextColor:r,...a}){const i=t?.includes(qy);let s;return n&&(s=i?{color:{background:n}}:{border:{color:n}}),r&&s&&(s.color={...s.color,text:r}),{value:Qy(e),className:t,backgroundColor:i?o:void 0,borderColor:i?void 0:o,textAlign:i?"left":void 0,style:s,...a}}},Yy={attributes:{...Wy,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){const{mainColor:t,customMainColor:o,textColor:n,customTextColor:r,value:a,citation:i,className:s,figureStyle:l}=e,c=s?.includes(qy);let u,d;if(c){const e=(0,ot.getColorClassName)("background-color",t);u=dt({"has-background":e||o,[e]:e}),d={backgroundColor:e?void 0:o}}else if(o)d={borderColor:o};else if(t){d={borderColor:Zy(l)}}const p=(0,ot.getColorClassName)("color",n),m=(n||r)&&dt("has-text-color",{[p]:p}),g=p?void 0:{color:r};return(0,Je.jsx)("figure",{className:u,style:d,children:(0,Je.jsxs)("blockquote",{className:m,style:g,children:[(0,Je.jsx)(ot.RichText.Content,{value:a,multiline:!0}),!ot.RichText.isEmpty(i)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"cite",value:i})]})})},migrate({value:e,className:t,figureStyle:o,mainColor:n,customMainColor:r,customTextColor:a,...i}){const s=t?.includes(qy);let l;if(r&&(l=s?{color:{background:r}}:{border:{color:r}}),a&&l&&(l.color={...l.color,text:a}),!s&&n&&o){const n=Zy(o);if(n)return{value:Qy(e),...i,className:t,style:{border:{color:n}}}}return{value:Qy(e),className:t,backgroundColor:s?n:void 0,borderColor:s?void 0:n,textAlign:s?"left":void 0,style:l,...i}}},Xy={attributes:Wy,save({attributes:e}){const{mainColor:t,customMainColor:o,textColor:n,customTextColor:r,value:a,citation:i,className:s}=e,l=s?.includes(qy);let c,u;if(l)c=(0,ot.getColorClassName)("background-color",t),c||(u={backgroundColor:o});else if(o)u={borderColor:o};else if(t){var d;const e=null!==(d=(0,gt.select)(ot.store).getSettings().colors)&&void 0!==d?d:[];u={borderColor:(0,ot.getColorObjectByAttributeValues)(e,t).color}}const p=(0,ot.getColorClassName)("color",n),m=n||r?dt("has-text-color",{[p]:p}):void 0,g=p?void 0:{color:r};return(0,Je.jsx)("figure",{className:c,style:u,children:(0,Je.jsxs)("blockquote",{className:m,style:g,children:[(0,Je.jsx)(ot.RichText.Content,{value:a,multiline:!0}),!ot.RichText.isEmpty(i)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"cite",value:i})]})})},migrate({value:e,className:t,mainColor:o,customMainColor:n,customTextColor:r,...a}){const i=t?.includes(qy);let s={};return n&&(s=i?{color:{background:n}}:{border:{color:n}}),r&&s&&(s.color={...s.color,text:r}),{value:Qy(e),className:t,backgroundColor:i?o:void 0,borderColor:i?void 0:o,textAlign:i?"left":void 0,style:s,...a}}},ev={attributes:{...Wy},save({attributes:e}){const{value:t,citation:o}=e;return(0,Je.jsxs)("blockquote",{children:[(0,Je.jsx)(ot.RichText.Content,{value:t,multiline:!0}),!ot.RichText.isEmpty(o)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"cite",value:o})]})},migrate:({value:e,...t})=>({value:Qy(e),...t})},tv={attributes:{...Wy,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){const{value:t,citation:o,align:n}=e;return(0,Je.jsxs)("blockquote",{className:`align${n}`,children:[(0,Je.jsx)(ot.RichText.Content,{value:t,multiline:!0}),!ot.RichText.isEmpty(o)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"footer",value:o})]})},migrate:({value:e,...t})=>({value:Qy(e),...t})},ov=[Ky,Jy,Yy,Xy,ev,tv],nv="web"===bt.Platform.OS;const rv=function({attributes:e,setAttributes:t,isSelected:o,insertBlocksAfter:n}){const{textAlign:r,citation:a,value:i}=e,s=(0,ot.useBlockProps)({className:dt({[`has-text-align-${r}`]:r})}),l=!ot.RichText.isEmpty(a)||o;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{group:"block",children:(0,Je.jsx)(ot.AlignmentControl,{value:r,onChange:e=>{t({textAlign:e})}})}),(0,Je.jsx)("figure",{...s,children:(0,Je.jsxs)("blockquote",{children:[(0,Je.jsx)(ot.RichText,{identifier:"value",tagName:"p",value:i,onChange:e=>t({value:e}),"aria-label":(0,tt.__)("Pullquote text"),placeholder:(0,tt.__)("Add quote"),textAlign:"center"}),l&&(0,Je.jsx)(ot.RichText,{identifier:"citation",tagName:nv?"cite":void 0,style:{display:"block"},value:a,"aria-label":(0,tt.__)("Pullquote citation text"),placeholder:(0,tt.__)("Add citation"),onChange:e=>t({citation:e}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>n((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))})]})})]})};const av={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Qe.createBlock)("core/pullquote",{value:(0,Ao.toHTMLString)({value:(0,Ao.join)(e.map((({content:e})=>(0,Ao.create)({html:e}))),"\n")}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>(0,Qe.createBlock)("core/pullquote",{value:e,anchor:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{const o=[];return e&&o.push((0,Qe.createBlock)("core/paragraph",{content:e})),t&&o.push((0,Qe.createBlock)("core/paragraph",{content:t})),0===o.length?(0,Qe.createBlock)("core/paragraph",{content:""}):o}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,Qe.createBlock)("core/heading",{content:t});const o=(0,Qe.createBlock)("core/heading",{content:e});return t?[o,(0,Qe.createBlock)("core/heading",{content:t})]:o}}]},iv=av,sv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pullquote",title:"Pullquote",category:"text",description:"Give special visual emphasis to a quote from your text.",textdomain:"default",attributes:{value:{type:"rich-text",source:"rich-text",selector:"p",__experimentalRole:"content"},citation:{type:"rich-text",source:"rich-text",selector:"cite",__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalStyle:{typography:{fontSize:"1.5em",lineHeight:"1.6"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"},{name:lv}=sv,cv={icon:Uy,example:{attributes:{value:(0,tt.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,tt.__)("Matt Mullenweg")}},transforms:iv,edit:rv,save:function({attributes:e}){const{textAlign:t,citation:o,value:n}=e,r=!ot.RichText.isEmpty(o);return(0,Je.jsx)("figure",{...ot.useBlockProps.save({className:dt({[`has-text-align-${t}`]:t})}),children:(0,Je.jsxs)("blockquote",{children:[(0,Je.jsx)(ot.RichText.Content,{tagName:"p",value:n}),r&&(0,Je.jsx)(ot.RichText.Content,{tagName:"cite",value:o})]})})},deprecated:ov},uv=()=>Xe({name:lv,metadata:sv,settings:cv}),dv=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"})}),pv=(0,Je.jsxs)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Je.jsx)(Ke.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,Je.jsx)(Ke.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]}),mv=e=>{const t=e?.reduce(((e,t)=>{const{mapById:o,mapByName:n,names:r}=e;return o[t.id]=t,n[t.name]=t,r.push(t.name),e}),{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},gv=(e,t)=>{const o=t.split(".");let n=e;return o.forEach((e=>{n=n?.[e]})),n},hv=(e,t)=>(e||[]).map((e=>({...e,name:(0,Xo.decodeEntities)(gv(e,t))}))),xv=()=>{const e=(0,gt.useSelect)((e=>{const{getPostTypes:t}=e(mt.store),o=["attachment"],n=t({per_page:-1})?.filter((({viewable:e,slug:t})=>e&&!o.includes(t)));return n}),[]);return{postTypesTaxonomiesMap:(0,bt.useMemo)((()=>{if(e?.length)return e.reduce(((e,t)=>(e[t.slug]=t.taxonomies,e)),{})}),[e]),postTypesSelectOptions:(0,bt.useMemo)((()=>(e||[]).map((({labels:e,slug:t})=>({label:e.singular_name,value:t})))),[e])}},bv=e=>{const t=(0,gt.useSelect)((t=>{const{getTaxonomies:o}=t(mt.store);return o({type:e,per_page:-1})}),[e]);return(0,bt.useMemo)((()=>t?.filter((({visibility:e})=>!!e?.publicly_queryable))),[t])};function _v(e,t){return!e||e.includes(t)}function yv(e,t){const o=(0,gt.useSelect)((e=>e(Qe.store).getActiveBlockVariation("core/query",t)?.name),[t]),n=`core/query/${o}`;return(0,gt.useSelect)((t=>{if(!o)return!1;const{getBlockRootClientId:r,getPatternsByBlockTypes:a}=t(ot.store),i=r(e);return a(n,i).length>0}),[e,o,n])?n:"core/query"}const vv=(e,t)=>(0,gt.useSelect)((o=>{const{getBlockRootClientId:n,getPatternsByBlockTypes:r}=o(ot.store),a=n(e);return r(t,a)}),[t,e]),fv=e=>(0,gt.useSelect)((t=>{const{getClientIdsOfDescendants:o,getBlockName:n}=t(ot.store),r={};return o(e).forEach((e=>{const t=n(e),o=Object.is((0,Qe.getBlockSupport)(t,"interactivity"),!0),a=(0,Qe.getBlockSupport)(t,"interactivity.clientNavigation");o||a?"core/post-content"===t&&(r.hasPostContentBlock=!0):r.hasBlocksFromPlugins=!0})),r.hasUnsupportedBlocks=r.hasBlocksFromPlugins||r.hasPostContentBlock,r}),[e]);function kv({attributes:{query:e},setQuery:t,openPatternSelectionModal:o,name:n,clientId:r}){const a=!!vv(r,n).length,i=(0,Ut.useInstanceId)(kv,"blocks-query-pagination-max-page-input");return(0,Je.jsxs)(Je.Fragment,{children:[!e.inherit&&(0,Je.jsx)(et.ToolbarGroup,{children:(0,Je.jsx)(et.Dropdown,{contentClassName:"block-library-query-toolbar__popover",renderToggle:({onToggle:e})=>(0,Je.jsx)(et.ToolbarButton,{icon:pv,label:(0,tt.__)("Display settings"),onClick:e}),renderContent:()=>(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.BaseControl,{children:(0,Je.jsx)(et.__experimentalNumberControl,{__unstableInputWidth:"60px",label:(0,tt.__)("Items per Page"),labelPosition:"edge",min:1,max:100,onChange:e=>{isNaN(e)||e<1||e>100||t({perPage:e})},step:"1",value:e.perPage,isDragEnabled:!1})}),(0,Je.jsx)(et.BaseControl,{children:(0,Je.jsx)(et.__experimentalNumberControl,{__unstableInputWidth:"60px",label:(0,tt.__)("Offset"),labelPosition:"edge",min:0,max:100,onChange:e=>{isNaN(e)||e<0||e>100||t({offset:e})},step:"1",value:e.offset,isDragEnabled:!1})}),(0,Je.jsx)(et.BaseControl,{id:i,help:(0,tt.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero)."),children:(0,Je.jsx)(et.__experimentalNumberControl,{id:i,__unstableInputWidth:"60px",label:(0,tt.__)("Max page to show"),labelPosition:"edge",min:0,onChange:e=>{isNaN(e)||e<0||t({pages:e})},step:"1",value:e.pages,isDragEnabled:!1})})]})})}),a&&(0,Je.jsx)(et.ToolbarGroup,{className:"wp-block-template-part__block-control-group",children:(0,Je.jsx)(et.ToolbarButton,{onClick:o,children:(0,tt.__)("Replace")})})]})}const wv=[{label:(0,tt.__)("Newest to oldest"),value:"date/desc"},{label:(0,tt.__)("Oldest to newest"),value:"date/asc"},{label:(0,tt.__)("A → Z"),value:"title/asc"},{label:(0,tt.__)("Z → A"),value:"title/desc"}];const Cv=function({order:e,orderBy:t,onChange:o}){return(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Order by"),value:`${t}/${e}`,options:wv,onChange:e=>{const[t,n]=e.split("/");o({order:n,orderBy:t})}})},jv={who:"authors",per_page:-1,_fields:"id,name",context:"view"};const Sv=function({value:e,onChange:t}){const o=(0,gt.useSelect)((e=>{const{getUsers:t}=e(mt.store);return t(jv)}),[]);if(!o)return null;const n=mv(o),r=(e?e.toString().split(","):[]).reduce(((e,t)=>{const o=n.mapById[t];return o&&e.push({id:t,value:o.name}),e}),[]);return(0,Je.jsx)(et.FormTokenField,{label:(0,tt.__)("Authors"),value:r,suggestions:n.names,onChange:e=>{const o=Array.from(e.reduce(((e,t)=>{const o=((e,t)=>{const o=t?.id||e[t]?.id;if(o)return o})(n.mapByName,t);return o&&e.add(o),e}),new Set));t({author:o.join(",")})},__experimentalShowHowTo:!1})},Bv=[],Nv={order:"asc",_fields:"id,title",context:"view"};const Tv=function({parents:e,postType:t,onChange:o}){const[n,r]=(0,bt.useState)(""),[a,i]=(0,bt.useState)(Bv),[s,l]=(0,bt.useState)(Bv),c=(0,Ut.useDebounce)(r,250),{searchResults:u,searchHasResolved:d}=(0,gt.useSelect)((o=>{if(!n)return{searchResults:Bv,searchHasResolved:!0};const{getEntityRecords:r,hasFinishedResolution:a}=o(mt.store),i=["postType",t,{...Nv,search:n,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:r(...i),searchHasResolved:a("getEntityRecords",i)}}),[n,e]),p=(0,gt.useSelect)((o=>{if(!e?.length)return Bv;const{getEntityRecords:n}=o(mt.store);return n("postType",t,{...Nv,include:e,per_page:e.length})}),[e]);(0,bt.useEffect)((()=>{if(e?.length||i(Bv),!p?.length)return;const t=mv(hv(p,"title.rendered")),o=e.reduce(((e,o)=>{const n=t.mapById[o];return n&&e.push({id:o,value:n.name}),e}),[]);i(o)}),[e,p]);const m=(0,bt.useMemo)((()=>u?.length?mv(hv(u,"title.rendered")):Bv),[u]);return(0,bt.useEffect)((()=>{d&&l(m.names)}),[m.names,d]),(0,Je.jsx)(et.FormTokenField,{label:(0,tt.__)("Parents"),value:a,onInputChange:c,suggestions:s,onChange:e=>{const t=Array.from(e.reduce(((e,t)=>{const o=((e,t)=>{const o=t?.id||e?.[t]?.id;if(o)return o})(m.mapByName,t);return o&&e.add(o),e}),new Set));l(Bv),o({parents:t})},__experimentalShowHowTo:!1})},Iv=[],Pv={order:"asc",_fields:"id,name",context:"view"},Mv=(e,t)=>{const o=t?.id||e?.find((e=>e.name===t))?.id;if(o)return o;const n=t.toLocaleLowerCase();return e?.find((e=>e.name.toLocaleLowerCase()===n))?.id};function zv({onChange:e,query:t}){const{postType:o,taxQuery:n}=t,r=bv(o);return r&&0!==r.length?(0,Je.jsx)(Je.Fragment,{children:r.map((t=>{const o=n?.[t.slug]||[];return(0,Je.jsx)(Rv,{taxonomy:t,termIds:o,onChange:o=>e({taxQuery:{...n,[t.slug]:o}})},t.slug)}))}):null}function Rv({taxonomy:e,termIds:t,onChange:o}){const[n,r]=(0,bt.useState)(""),[a,i]=(0,bt.useState)(Iv),[s,l]=(0,bt.useState)(Iv),c=(0,Ut.useDebounce)(r,250),{searchResults:u,searchHasResolved:d}=(0,gt.useSelect)((o=>{if(!n)return{searchResults:Iv,searchHasResolved:!0};const{getEntityRecords:r,hasFinishedResolution:a}=o(mt.store),i=["taxonomy",e.slug,{...Pv,search:n,orderby:"name",exclude:t,per_page:20}];return{searchResults:r(...i),searchHasResolved:a("getEntityRecords",i)}}),[n,t]),p=(0,gt.useSelect)((o=>{if(!t?.length)return Iv;const{getEntityRecords:n}=o(mt.store);return n("taxonomy",e.slug,{...Pv,include:t,per_page:t.length})}),[t]);(0,bt.useEffect)((()=>{if(t?.length||i(Iv),!p?.length)return;const e=t.reduce(((e,t)=>{const o=p.find((e=>e.id===t));return o&&e.push({id:t,value:o.name}),e}),[]);i(e)}),[t,p]),(0,bt.useEffect)((()=>{d&&l(u.map((e=>e.name)))}),[u,d]);return(0,Je.jsx)("div",{className:"block-library-query-inspector__taxonomy-control",children:(0,Je.jsx)(et.FormTokenField,{label:e.name,value:a,onInputChange:c,suggestions:s,displayTransform:Xo.decodeEntities,onChange:e=>{const t=new Set;for(const o of e){const e=Mv(u,o);e&&t.add(e)}l(Iv),o(Array.from(t))},__experimentalShowHowTo:!1})})}const Av=[{label:(0,tt.__)("Include"),value:""},{label:(0,tt.__)("Exclude"),value:"exclude"},{label:(0,tt.__)("Only"),value:"only"}];function Lv({value:e,onChange:t}){return(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Sticky posts"),options:Av,value:e,onChange:t,help:(0,tt.__)("Blog posts can be “stickied”, a feature that places them at the top of the front page of posts, keeping it there until new sticky posts are published.")})}function Hv({enhancedPagination:e,setAttributes:t,clientId:o}){const{hasUnsupportedBlocks:n}=fv(o),r=window.__experimentalFullPageClientSideNavigation;let a=(0,tt.__)("Browsing between pages requires a full page reload.");return r?a=(0,tt.__)("Experimental full-page client-side navigation setting enabled."):e?a=(0,tt.__)("Browsing between pages won't require a full page reload, unless non-compatible blocks are detected."):n&&(a=(0,tt.__)("Force page reload can't be disabled because there are non-compatible blocks inside the Query block.")),(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(et.ToggleControl,{label:(0,tt.__)("Force page reload"),help:a,checked:!e&&!r,disabled:n||r,onChange:e=>{t({enhancedPagination:!e})}})})}const Dv=({attributes:{query:{postType:e}={}}={}})=>{if(!e)return null;const t=(0,pt.addQueryArgs)("post-new.php",{post_type:e});return(0,Je.jsx)("div",{className:"wp-block-query__create-new-link",children:(0,bt.createInterpolateElement)((0,tt.__)("<a>Add new post</a>"),{a:(0,Je.jsx)("a",{href:t})})})},{BlockInfo:Fv}=Ht(ot.privateApis);function Vv(e){const{attributes:t,setQuery:o,setDisplayLayout:n,setAttributes:r,clientId:a}=e,{query:i,displayLayout:s,enhancedPagination:l}=t,{order:c,orderBy:u,author:d,postType:p,sticky:m,inherit:g,taxQuery:h,parents:x}=i,b=function(e){return(0,gt.useSelect)((t=>t(Qe.store).getActiveBlockVariation("core/query",e)?.allowedControls),[e])}(t),[_,y]=(0,bt.useState)("post"===p),{postTypesTaxonomiesMap:v,postTypesSelectOptions:f}=xv(),k=bv(p),w=function(e){return(0,gt.useSelect)((t=>{const o=t(mt.store).getPostType(e);return o?.viewable&&o?.hierarchical}),[e])}(p);(0,bt.useEffect)((()=>{y("post"===p)}),[p]);const[C,j]=(0,bt.useState)(i.search),S=(0,bt.useCallback)((0,Ut.debounce)((()=>{i.search!==C&&o({search:C})}),250),[C,i.search]);(0,bt.useEffect)((()=>(S(),S.cancel)),[C,S]);const B=_v(b,"inherit"),N=!g&&_v(b,"postType"),T=!g&&_v(b,"order"),I=!g&&_&&_v(b,"sticky"),P=B||N||T||I,M=!!k?.length&&_v(b,"taxQuery"),z=_v(b,"author"),R=_v(b,"search"),A=_v(b,"parents")&&w,L=M||z||R||A,H=Zt();return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Fv,{children:(0,Je.jsx)(Dv,{...e})}),P&&(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[B&&(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Inherit query from template"),help:(0,tt.__)("Toggle to use the global query context that is set with the current template, such as an archive or search. Disable to customize the settings independently."),checked:!!g,onChange:e=>o({inherit:!!e})}),N&&(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,options:f,value:p,label:(0,tt.__)("Post type"),onChange:e=>{const t={postType:e},n=v[e],r=Object.entries(h||{}).reduce(((e,[t,o])=>(n.includes(t)&&(e[t]=o),e)),{});t.taxQuery=Object.keys(r).length?r:void 0,"post"!==e&&(t.sticky=""),t.parents=[],o(t)},help:(0,tt.__)("WordPress contains different types of content and they are divided into collections called “Post types”. By default there are a few different ones such as blog posts and pages, but plugins could add more.")}),false,T&&(0,Je.jsx)(Cv,{order:c,orderBy:u,onChange:o}),I&&(0,Je.jsx)(Lv,{value:m,onChange:e=>o({sticky:e})}),(0,Je.jsx)(Hv,{enhancedPagination:l,setAttributes:r,clientId:a})]}),!g&&L&&(0,Je.jsxs)(et.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,tt.__)("Filters"),resetAll:()=>{o({author:"",parents:[],search:"",taxQuery:null}),j("")},dropdownMenuProps:H,children:[M&&(0,Je.jsx)(et.__experimentalToolsPanelItem,{label:(0,tt.__)("Taxonomies"),hasValue:()=>Object.values(h||{}).some((e=>!!e.length)),onDeselect:()=>o({taxQuery:null}),children:(0,Je.jsx)(zv,{onChange:o,query:i})}),z&&(0,Je.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,tt.__)("Authors"),onDeselect:()=>o({author:""}),children:(0,Je.jsx)(Sv,{value:d,onChange:o})}),R&&(0,Je.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>!!C,label:(0,tt.__)("Keyword"),onDeselect:()=>j(""),children:(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Keyword"),value:C,onChange:j})}),A&&(0,Je.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>!!x?.length,label:(0,tt.__)("Parents"),onDeselect:()=>o({parents:[]}),children:(0,Je.jsx)(Tv,{parents:x,postType:p,onChange:o})})]})]})}const Ev="wp-block-query-enhanced-pagination-modal__description";function $v({clientId:e,attributes:{enhancedPagination:t},setAttributes:o}){const[n,r]=(0,bt.useState)(!1),{hasBlocksFromPlugins:a,hasPostContentBlock:i,hasUnsupportedBlocks:s}=fv(e);(0,bt.useEffect)((()=>{t&&s&&!window.__experimentalFullPageClientSideNavigation&&(o({enhancedPagination:!1}),r(!0))}),[t,s,o]);const l=()=>{r(!1)};let c=(0,tt.__)('If you still want to prevent full page reloads, remove that block, then disable "Force page reload" again in the Query Block settings.');return a?c=(0,tt.__)("Currently, avoiding full page reloads is not possible when non-interactive or non-client Navigation compatible blocks from plugins are present inside the Query block.")+" "+c:i&&(c=(0,tt.__)("Currently, avoiding full page reloads is not possible when a Content block is present inside the Query block.")+" "+c),n&&(0,Je.jsx)(et.Modal,{title:(0,tt.__)("Query block: Force page reload enabled"),className:"wp-block-query__enhanced-pagination-modal",aria:{describedby:Ev},role:"alertdialog",focusOnMount:"firstElement",isDismissible:!1,onRequestClose:l,children:(0,Je.jsxs)(et.__experimentalVStack,{alignment:"right",spacing:5,children:[(0,Je.jsx)("span",{id:Ev,children:c}),(0,Je.jsx)(et.Button,{variant:"primary",onClick:l,children:(0,tt.__)("OK")})]})})}const Gv=[["core/post-template"]];function Ov({attributes:e,setAttributes:t,openPatternSelectionModal:o,name:n,clientId:r}){const{queryId:a,query:i,displayLayout:s,tagName:l="div",query:{inherit:c}={}}=e,{__unstableMarkNextChangeAsNotPersistent:u}=(0,gt.useDispatch)(ot.store),d=(0,Ut.useInstanceId)(Ov),p=(0,ot.useBlockProps)(),m=(0,ot.useInnerBlocksProps)(p,{template:Gv}),{postsPerPage:g}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(ot.store),{getEntityRecord:o,canUser:n}=e(mt.store);return{postsPerPage:(n("read","settings")?+o("root","site")?.posts_per_page:+t().postsPerPage)||3}}),[]);(0,bt.useEffect)((()=>{const e={};(c&&i.perPage!==g||!i.perPage&&g)&&(e.perPage=g),Object.keys(e).length&&(u(),h(e))}),[i.perPage,g,c]),(0,bt.useEffect)((()=>{Number.isFinite(a)||(u(),t({queryId:d}))}),[a,d]);const h=e=>t({query:{...i,...e}}),x={main:(0,tt.__)("The <main> element should be used for the primary content of your document only. "),section:(0,tt.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),aside:(0,tt.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.")};return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)($v,{attributes:e,setAttributes:t,clientId:r}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(Vv,{attributes:e,setQuery:h,setDisplayLayout:e=>t({displayLayout:{...s,...e}}),setAttributes:t,clientId:r})}),(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(kv,{name:n,clientId:r,attributes:e,setQuery:h,openPatternSelectionModal:o})}),(0,Je.jsx)(ot.InspectorControls,{group:"advanced",children:(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("HTML element"),options:[{label:(0,tt.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:l,onChange:e=>t({tagName:e}),help:x[l]})}),(0,Je.jsx)(l,{...m})]})}function Uv({attributes:e,clientId:t,name:o,openPatternSelectionModal:n,setAttributes:r}){const[a,i]=(0,bt.useState)(!1),s=(0,ot.useBlockProps)(),l=yv(t,e),{blockType:c,activeBlockVariation:u,hasPatterns:d}=(0,gt.useSelect)((n=>{const{getActiveBlockVariation:r,getBlockType:a}=n(Qe.store),{getBlockRootClientId:i,getPatternsByBlockTypes:s}=n(ot.store),c=i(t);return{blockType:a(o),activeBlockVariation:r(o,e),hasPatterns:!!s(l,c).length}}),[o,l,t,e]),p=u?.icon?.src||u?.icon||c?.icon?.src,m=u?.title||c?.title;return a?(0,Je.jsx)(qv,{clientId:t,attributes:e,setAttributes:r,icon:p,label:m}):(0,Je.jsx)("div",{...s,children:(0,Je.jsxs)(et.Placeholder,{icon:p,label:m,instructions:(0,tt.__)("Choose a pattern for the query loop or start blank."),children:[!!d&&(0,Je.jsx)(et.Button,{variant:"primary",onClick:n,children:(0,tt.__)("Choose")}),(0,Je.jsx)(et.Button,{variant:"secondary",onClick:()=>{i(!0)},children:(0,tt.__)("Start blank")})]})})}function qv({clientId:e,attributes:t,setAttributes:o,icon:n,label:r}){const a=function(e){const{activeVariationName:t,blockVariations:o}=(0,gt.useSelect)((t=>{const{getActiveBlockVariation:o,getBlockVariations:n}=t(Qe.store);return{activeVariationName:o("core/query",e)?.name,blockVariations:n("core/query","block")}}),[e]);return(0,bt.useMemo)((()=>{const e=e=>!e.attributes?.namespace;if(!t)return o.filter(e);const n=o.filter((e=>e.attributes?.namespace?.includes(t)));return n.length?n:o.filter(e)}),[t,o])}(t),{replaceInnerBlocks:i}=(0,gt.useDispatch)(ot.store),s=(0,ot.useBlockProps)();return(0,Je.jsx)("div",{...s,children:(0,Je.jsx)(ot.__experimentalBlockVariationPicker,{icon:n,label:r,variations:a,onSelect:n=>{n.attributes&&o({...n.attributes,query:{...n.attributes.query,postType:t.query.postType||n.attributes.query.postType},namespace:t.namespace}),n.innerBlocks&&i(e,(0,Qe.createBlocksFromInnerBlocksTemplate)(n.innerBlocks),!1)}})})}function Wv(e=""){return e=(e=ic()(e)).trim().toLowerCase()}function Zv(e,t){const o=Wv(t),n=Wv(e.title);let r=0;if(o===n)r+=30;else if(n.startsWith(o))r+=20;else{o.split(" ").every((e=>n.includes(e)))&&(r+=10)}return r}function Qv(e=[],t=""){if(!t)return e;const o=e.map((e=>[e,Zv(e,t)])).filter((([,e])=>e>0));return o.sort((([,e],[,t])=>t-e)),o.map((([e])=>e))}function Kv({clientId:e,attributes:t,setIsPatternSelectionModalOpen:o}){const[n,r]=(0,bt.useState)(""),{replaceBlock:a,selectBlock:i}=(0,gt.useDispatch)(ot.store),s=(0,bt.useMemo)((()=>({previewPostType:t.query.postType})),[t.query.postType]),l=yv(e,t),c=vv(e,l),u=(0,bt.useMemo)((()=>Qv(c,n)),[c,n]),d=(0,Ut.useAsyncList)(u);return(0,Je.jsx)(et.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,tt.__)("Choose a pattern"),onRequestClose:()=>o(!1),isFullScreen:!0,children:(0,Je.jsxs)("div",{className:"block-library-query-pattern__selection-content",children:[(0,Je.jsx)("div",{className:"block-library-query-pattern__selection-search",children:(0,Je.jsx)(et.SearchControl,{__nextHasNoMarginBottom:!0,onChange:r,value:n,label:(0,tt.__)("Search for patterns"),placeholder:(0,tt.__)("Search")})}),(0,Je.jsx)(ot.BlockContextProvider,{value:s,children:(0,Je.jsx)(ot.__experimentalBlockPatternsList,{blockPatterns:u,shownPatterns:d,onClickPattern:(o,n)=>{const{newBlocks:r,queryClientIds:s}=((e,t)=>{const{query:{postType:o,inherit:n}}=t,r=e.map((e=>(0,Qe.cloneBlock)(e))),a=[],i=[...r];for(;i.length>0;){const e=i.shift();"core/query"===e.name&&(e.attributes.query={...e.attributes.query,postType:o,inherit:n},a.push(e.clientId)),e.innerBlocks?.forEach((e=>{i.push(e)}))}return{newBlocks:r,queryClientIds:a}})(n,t);a(e,r),s[0]&&i(s[0])}})})]})})}const Jv=e=>{const{clientId:t,attributes:o}=e,[n,r]=(0,bt.useState)(!1),a=(0,gt.useSelect)((e=>!!e(ot.store).getBlocks(t).length),[t])?Ov:Uv;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(a,{...e,openPatternSelectionModal:()=>r(!0)}),n&&(0,Je.jsx)(Kv,{clientId:t,attributes:o,setIsPatternSelectionModalOpen:r})]})};const Yv=(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,Je.jsx)(et.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})}),Xv=(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,Je.jsx)(et.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})}),ef=(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,Je.jsx)(et.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})}),tf=(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,Je.jsx)(et.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})}),of={query:{perPage:3,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!1}},nf=[{name:"posts-list",title:(0,tt.__)("Posts List"),description:(0,tt.__)("Display a list of your most recent posts, excluding sticky posts."),icon:Np,attributes:{namespace:"core/posts-list",query:{perPage:4,pages:1,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1}},scope:["inserter"],isActive:["namespace","query.postType"]},{name:"title-date",title:(0,tt.__)("Title & Date"),icon:Yv,attributes:{...of},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,tt.__)("Title & Excerpt"),icon:Xv,attributes:{...of},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-date-excerpt",title:(0,tt.__)("Title, Date, & Excerpt"),icon:ef,attributes:{...of},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,tt.__)("Image, Date, & Title"),icon:tf,attributes:{...of},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],["core/post-date"],["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}],{cleanEmptyObject:rf}=Ht(ot.privateApis),af=e=>{const{query:t}=e,{categoryIds:o,tagIds:n,...r}=t;return(t.categoryIds?.length||t.tagIds?.length)&&(r.taxQuery={category:t.categoryIds?.length?t.categoryIds:void 0,post_tag:t.tagIds?.length?t.tagIds:void 0}),{...e,query:r}},sf=(e,t)=>{const{style:o,backgroundColor:n,gradient:r,textColor:a,...i}=e;if(!(n||r||a||o?.color||o?.elements?.link))return[e,t];if(o&&(i.style=rf({...o,color:void 0,elements:{...o.elements,link:void 0}})),lf(t)){const e=t[0],s=o?.color||o?.elements?.link||e.attributes.style?rf({...e.attributes.style,color:o?.color,elements:o?.elements?.link?{link:o?.elements?.link}:void 0}):void 0;return[i,[(0,Qe.createBlock)("core/group",{...e.attributes,backgroundColor:n,gradient:r,textColor:a,style:s},e.innerBlocks)]]}return[i,[(0,Qe.createBlock)("core/group",{backgroundColor:n,gradient:r,textColor:a,style:rf({color:o?.color,elements:o?.elements?.link?{link:o?.elements?.link}:void 0})},t)]]},lf=(e=[])=>1===e.length&&"core/group"===e[0].name,cf=e=>{const{layout:t=null}=e;if(!t)return e;const{inherit:o=null,contentSize:n=null,...r}=t;return o||n?{...e,layout:{...r,contentSize:n,type:"constrained"}}:e},uf=(e=[])=>{let t=null;for(const o of e){if("core/post-template"===o.name){t=o;break}o.innerBlocks.length&&(t=uf(o.innerBlocks))}return t},df=(e=[],t)=>(e.forEach(((o,n)=>{"core/post-template"===o.name?e.splice(n,1,t):o.innerBlocks.length&&(o.innerBlocks=df(o.innerBlocks,t))})),e),pf=(e,t)=>{const{displayLayout:o=null,...n}=e;if(!o)return[e,t];const r=uf(t);if(!r)return[e,t];const{type:a,columns:i}=o,s="flex"===a?"grid":"default",l=(0,Qe.createBlock)("core/post-template",{...r.attributes,layout:{type:s,...i&&{columnCount:i}}},r.innerBlocks);return[n,df(t,l)]},mf={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},layout:{type:"object",default:{type:"list"}}},supports:{html:!1},migrate(e,t){const o=af(e),{layout:n,...r}=o,a={...r,displayLayout:o.layout};return pf(a,t)},save:()=>(0,Je.jsx)(ot.InnerBlocks.Content,{})},gf={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},layout:!0},isEligible:({query:{categoryIds:e,tagIds:t}={}})=>e||t,migrate(e,t){const o=af(e),[n,r]=sf(o,t),a=cf(n);return pf(a,r)},save({attributes:{tagName:e="div"}}){const t=ot.useBlockProps.save(),o=ot.useInnerBlocksProps.save(t);return(0,Je.jsx)(e,{...o})}},hf={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},isEligible(e){const{style:t,backgroundColor:o,gradient:n,textColor:r}=e;return o||n||r||t?.color||t?.elements?.link},migrate(e,t){const[o,n]=sf(e,t),r=cf(o);return pf(r,n)},save({attributes:{tagName:e="div"}}){const t=ot.useBlockProps.save(),o=ot.useInnerBlocksProps.save(t);return(0,Je.jsx)(e,{...o})}},xf={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},save({attributes:{tagName:e="div"}}){const t=ot.useBlockProps.save(),o=ot.useInnerBlocksProps.save(t);return(0,Je.jsx)(e,{...o})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&"constrained"!==e?.type,migrate(e,t){const o=cf(e);return pf(o,t)}},bf=[{attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,layout:!0},save({attributes:{tagName:e="div"}}){const t=ot.useBlockProps.save(),o=ot.useInnerBlocksProps.save(t);return(0,Je.jsx)(e,{...o})},isEligible:({displayLayout:e})=>!!e,migrate:pf},xf,hf,gf,mf],_f={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"},enhancedPagination:{type:"boolean",default:!1}},providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout",enhancedPagination:"enhancedPagination"},supports:{align:["wide","full"],html:!1,layout:!0,interactivity:!0},editorStyle:"wp-block-query-editor"},{name:yf}=_f,vf={icon:dv,edit:Jv,save:function({attributes:{tagName:e="div"}}){const t=ot.useBlockProps.save(),o=ot.useInnerBlocksProps.save(t);return(0,Je.jsx)(e,{...o})},variations:nf,deprecated:bf},ff=()=>Xe({name:yf,metadata:_f,settings:vf}),kf=[["core/paragraph",{placeholder:(0,tt.__)("Add text or blocks that will display when a query returns no results.")}]];const wf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-no-results",title:"No results",category:"theme",description:"Contains the block elements used to render content when no query results are found.",parent:["core/query"],textdomain:"default",usesContext:["queryId","query"],supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Cf}=wf,jf={icon:dv,edit:function(){const e=(0,ot.useBlockProps)(),t=(0,ot.useInnerBlocksProps)(e,{template:kf});return(0,Je.jsx)("div",{...t})},save:function(){return(0,Je.jsx)(ot.InnerBlocks.Content,{})}},Sf=()=>Xe({name:Cf,metadata:wf,settings:jf});function Bf({value:e,onChange:t}){return(0,Je.jsxs)(et.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Arrow"),value:e,onChange:t,help:(0,tt.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0,children:[(0,Je.jsx)(et.__experimentalToggleGroupControlOption,{value:"none",label:(0,tt._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,Je.jsx)(et.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,tt._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,Je.jsx)(et.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,tt._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")})]})}function Nf({value:e,onChange:t}){return(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show label text"),help:(0,tt.__)('Toggle off to hide the label text, e.g. "Next Page".'),onChange:t,checked:!0===e})}const Tf=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];const If=[{save:()=>(0,Je.jsx)("div",{...ot.useBlockProps.save(),children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})}],Pf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination",title:"Pagination",category:"theme",ancestor:["core/query"],allowedBlocks:["core/query-pagination-previous","core/query-pagination-numbers","core/query-pagination-next"],description:"Displays a paginated navigation to next/previous set of posts, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"},showLabel:{type:"boolean",default:!0}},usesContext:["queryId","query"],providesContext:{paginationArrow:"paginationArrow",showLabel:"showLabel"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-query-pagination-editor",style:"wp-block-query-pagination"},{name:Mf}=Pf,zf={icon:pa,edit:function({attributes:{paginationArrow:e,showLabel:t},setAttributes:o,clientId:n}){const r=(0,gt.useSelect)((e=>{const{getBlocks:t}=e(ot.store),o=t(n);return o?.find((e=>["core/query-pagination-next","core/query-pagination-previous"].includes(e.name)))}),[n]),a=(0,ot.useBlockProps)(),i=(0,ot.useInnerBlocksProps)(a,{template:Tf});return(0,bt.useEffect)((()=>{"none"!==e||t||o({showLabel:!0})}),[e,o,t]),(0,Je.jsxs)(Je.Fragment,{children:[r&&(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(Bf,{value:e,onChange:e=>{o({paginationArrow:e})}}),"none"!==e&&(0,Je.jsx)(Nf,{value:t,onChange:e=>{o({showLabel:e})}})]})}),(0,Je.jsx)("nav",{...i})]})},save:function(){return(0,Je.jsx)(ot.InnerBlocks.Content,{})},deprecated:If},Rf=()=>Xe({name:Mf,metadata:Pf,settings:zf}),Af={none:"",arrow:"→",chevron:"»"};const Lf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-next",title:"Next Page",category:"theme",parent:["core/query-pagination"],description:"Displays the next posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel","enhancedPagination"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Hf}=Lf,Df={icon:ya,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:o,showLabel:n}}){const r=Af[o];return(0,Je.jsxs)("a",{href:"#pagination-next-pseudo-link",onClick:e=>e.preventDefault(),...(0,ot.useBlockProps)(),children:[n&&(0,Je.jsx)(ot.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,tt.__)("Next page link"),placeholder:(0,tt.__)("Next Page"),value:e,onChange:e=>t({label:e})}),r&&(0,Je.jsx)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${o}`,"aria-hidden":!0,children:r})]})}},Ff=()=>Xe({name:Hf,metadata:Lf,settings:Df}),Vf=(e,t="a",o="")=>(0,Je.jsx)(t,{className:`page-numbers ${o}`,children:e},e);const Ef={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-numbers",title:"Page Numbers",category:"theme",parent:["core/query-pagination"],description:"Displays a list of page numbers for pagination.",textdomain:"default",attributes:{midSize:{type:"number",default:2}},usesContext:["queryId","query","enhancedPagination"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-query-pagination-numbers-editor"},{name:$f}=Ef,Gf={icon:ja,edit:function({attributes:e,setAttributes:t}){const{midSize:o}=e,n=(e=>{const t=[];for(let o=1;o<=e;o++)t.push(Vf(o));t.push(Vf(e+1,"span","current"));for(let o=1;o<=e;o++)t.push(Vf(e+1+o));return t.push(Vf("...","span","dots")),t.push(Vf(2*e+3)),(0,Je.jsx)(Je.Fragment,{children:t})})(parseInt(o,10));return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(et.PanelBody,{title:(0,tt.__)("Settings"),children:(0,Je.jsx)(et.RangeControl,{label:(0,tt.__)("Number of links"),help:(0,tt.__)("Specify how many links can appear before and after the current page number. Links to the first, current and last page are always visible."),value:o,onChange:e=>{t({midSize:parseInt(e,10)})},min:0,max:5,withInputField:!1})})}),(0,Je.jsx)("div",{...(0,ot.useBlockProps)(),children:n})]})}},Of=()=>Xe({name:$f,metadata:Ef,settings:Gf}),Uf={none:"",arrow:"←",chevron:"«"};const qf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-previous",title:"Previous Page",category:"theme",parent:["core/query-pagination"],description:"Displays the previous posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel","enhancedPagination"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Wf}=qf,Zf={icon:ia,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:o,showLabel:n}}){const r=Uf[o];return(0,Je.jsxs)("a",{href:"#pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),...(0,ot.useBlockProps)(),children:[r&&(0,Je.jsx)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${o}`,"aria-hidden":!0,children:r}),n&&(0,Je.jsx)(ot.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,tt.__)("Previous page link"),placeholder:(0,tt.__)("Previous Page"),value:e,onChange:e=>t({label:e})})]})}},Qf=()=>Xe({name:Wf,metadata:qf,settings:Zf}),Kf=["archive","search"];const Jf=[{isDefault:!0,name:"archive-title",title:(0,tt.__)("Archive Title"),description:(0,tt.__)("Display the archive title based on the queried object."),icon:Pa,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,tt.__)("Search Results Title"),description:(0,tt.__)("Display the search results title based on the queried object."),icon:Pa,attributes:{type:"search"},scope:["inserter"]}];Jf.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));const Yf=Jf,Xf={attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0}},save:()=>null,migrate:so,isEligible:({style:e})=>e?.typography?.fontFamily},ek=[Xf],tk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-title",title:"Query Title",category:"theme",description:"Display the query title.",textdomain:"default",attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1},showPrefix:{type:"boolean",default:!0},showSearchTerm:{type:"boolean",default:!0}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-query-title"},{name:ok}=tk,nk={icon:Pa,edit:function({attributes:{type:e,level:t,textAlign:o,showPrefix:n,showSearchTerm:r},setAttributes:a}){const{archiveTypeTitle:i,archiveNameLabel:s}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(ot.store),{__experimentalArchiveTitleNameLabel:o,__experimentalArchiveTitleTypeLabel:n}=t();return{archiveTypeTitle:n,archiveNameLabel:o}})),l=`h${t}`,c=(0,ot.useBlockProps)({className:dt("wp-block-query-title__placeholder",{[`has-text-align-${o}`]:o})});if(!Kf.includes(e))return(0,Je.jsx)("div",{...c,children:(0,Je.jsx)(ot.Warning,{children:(0,tt.__)("Provided type is not supported.")})});let u;if("archive"===e){let e;e=i?n?s?(0,tt.sprintf)((0,tt.__)("%1$s: %2$s"),i,s):(0,tt.sprintf)((0,tt.__)("%s: Name"),i):s||(0,tt.sprintf)((0,tt.__)("%s name"),i):n?(0,tt.__)("Archive type: Name"):(0,tt.__)("Archive title"),u=(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(et.PanelBody,{title:(0,tt.__)("Settings"),children:(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show archive type in title"),onChange:()=>a({showPrefix:!n}),checked:n})})}),(0,Je.jsx)(l,{...c,children:e})]})}return"search"===e&&(u=(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(et.PanelBody,{title:(0,tt.__)("Settings"),children:(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show search term in title"),onChange:()=>a({showSearchTerm:!r}),checked:r})})}),(0,Je.jsx)(l,{...c,children:r?(0,tt.__)("Search results for: “search term”"):(0,tt.__)("Search results")})]})),(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(ot.BlockControls,{group:"block",children:[(0,Je.jsx)(ot.HeadingLevelDropdown,{value:t,onChange:e=>a({level:e})}),(0,Je.jsx)(ot.AlignmentControl,{value:o,onChange:e=>{a({textAlign:e})}})]}),u]})},variations:Yf,deprecated:ek},rk=()=>Xe({name:ok,metadata:tk,settings:nk}),ak=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{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"})}),ik=e=>{const{value:t,...o}=e;return[{...o},t?(0,Qe.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map((({content:e})=>(0,Qe.createBlock)("core/paragraph",{content:e}))):(0,Qe.createBlock)("core/paragraph")]},sk=["left","right","center"],lk=(e,t)=>{const{align:o,...n}=e;return[sk.includes(o)?{...n,textAlign:o}:e,t]},ck={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalOnEnter:!0,__experimentalOnMerge:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}}},isEligible:({align:e})=>sk.includes(e),save({attributes:e}){const{align:t,citation:o}=e,n=dt({[`has-text-align-${t}`]:t});return(0,Je.jsxs)("blockquote",{...ot.useBlockProps.save({className:n}),children:[(0,Je.jsx)(ot.InnerBlocks.Content,{}),!ot.RichText.isEmpty(o)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"cite",value:o})]})},migrate:lk},uk={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}}},save({attributes:e}){const{align:t,value:o,citation:n}=e,r=dt({[`has-text-align-${t}`]:t});return(0,Je.jsxs)("blockquote",{...ot.useBlockProps.save({className:r}),children:[(0,Je.jsx)(ot.RichText.Content,{multiline:!0,value:o}),!ot.RichText.isEmpty(n)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"cite",value:n})]})},migrate:e=>lk(...ik(e))},dk={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},migrate:e=>lk(...ik(e)),save({attributes:e}){const{align:t,value:o,citation:n}=e;return(0,Je.jsxs)("blockquote",{style:{textAlign:t||null},children:[(0,Je.jsx)(ot.RichText.Content,{multiline:!0,value:o}),!ot.RichText.isEmpty(n)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"cite",value:n})]})}},pk={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(2===e.style){const{style:t,...o}=e;return lk(...((e,t)=>[{...e,className:e.className?e.className+" is-style-large":"is-style-large"},t])(...ik(o)))}return lk(...ik(e))},save({attributes:e}){const{align:t,value:o,citation:n,style:r}=e;return(0,Je.jsxs)("blockquote",{className:2===r?"is-large":"",style:{textAlign:t||null},children:[(0,Je.jsx)(ot.RichText.Content,{multiline:!0,value:o}),!ot.RichText.isEmpty(n)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"cite",value:n})]})}},mk={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"footer",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(!isNaN(parseInt(e.style))){const{style:t,...o}=e;return lk(...ik(o))}return lk(...ik(e))},save({attributes:e}){const{align:t,value:o,citation:n,style:r}=e;return(0,Je.jsxs)("blockquote",{className:`blocks-quote-style-${r}`,style:{textAlign:t||null},children:[(0,Je.jsx)(ot.RichText.Content,{multiline:!0,value:o}),!ot.RichText.isEmpty(n)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"footer",value:n})]})}},gk=[ck,uk,dk,pk,mk],hk=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.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"})}),xk="web"===bt.Platform.OS,bk=[["core/paragraph",{}]];const _k={from:[{type:"block",blocks:["core/pullquote"],transform:({value:e,citation:t,anchor:o,fontSize:n,style:r})=>(0,Qe.createBlock)("core/quote",{citation:t,anchor:o,fontSize:n,style:r},[(0,Qe.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,Qe.createBlock)("core/quote",{},[(0,Qe.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,Qe.createBlock)("core/quote",{},t({HTML:e.innerHTML,mode:"BLOCKS"}))},{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:({},e)=>1===e.length?["core/paragraph","core/heading","core/list","core/pullquote"].includes(e[0].name):!e.some((({name:e})=>"core/quote"===e)),__experimentalConvert:e=>(0,Qe.createBlock)("core/quote",{},e.map((e=>(0,Qe.createBlock)(e.name,e.attributes,e.innerBlocks))))}],to:[{type:"block",blocks:["core/pullquote"],isMatch:({},e)=>e.innerBlocks.every((({name:e})=>"core/paragraph"===e)),transform:({citation:e,anchor:t,fontSize:o,style:n},r)=>{const a=r.map((({attributes:e})=>`${e.content}`)).join("<br>");return(0,Qe.createBlock)("core/pullquote",{value:a,citation:e,anchor:t,fontSize:o,style:n})}},{type:"block",blocks:["core/paragraph"],transform:({citation:e},t)=>ot.RichText.isEmpty(e)?t:[...t,(0,Qe.createBlock)("core/paragraph",{content:e})]},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},o)=>(0,Qe.createBlock)("core/group",{anchor:t},ot.RichText.isEmpty(e)?o:[...o,(0,Qe.createBlock)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>ot.RichText.isEmpty(e)?t:[...t,(0,Qe.createBlock)("core/paragraph",{content:e})]},yk=_k,vk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/quote",title:"Quote",category:"text",description:'Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar',keywords:["blockquote","cite"],textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"rich-text",source:"rich-text",selector:"cite",__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalOnEnter:!0,__experimentalOnMerge:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:{allowEditing:!1},spacing:{blockGap:!0},interactivity:{clientNavigation:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"plain",label:"Plain"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"},{name:fk}=vk,kk={icon:ak,example:{attributes:{citation:"Julio Cortázar"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("In quoting others, we cite ourselves.")}}]},transforms:yk,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:o,clientId:n,className:r,style:a,isSelected:i}){const{textAlign:s}=e;((e,t)=>{const o=(0,gt.useRegistry)(),{updateBlockAttributes:n,replaceInnerBlocks:r}=(0,gt.useDispatch)(ot.store);(0,bt.useEffect)((()=>{if(!e.value)return;const[a,i]=ik(e);Yp()("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),o.batch((()=>{n(t,a),r(t,i)}))}),[e.value])})(e,n);const l=(0,ot.useBlockProps)({className:dt(r,{[`has-text-align-${s}`]:s}),...!xk&&{style:a}}),c=(0,ot.useInnerBlocksProps)(l,{template:bk,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0,renderAppender:!1});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{group:"block",children:(0,Je.jsx)(ot.AlignmentControl,{value:s,onChange:e=>{t({textAlign:e})}})}),(0,Je.jsxs)(et.BlockQuotation,{...c,children:[c.children,(0,Je.jsx)(Kt,{attributeKey:"citation",tagName:xk?"cite":"p",style:xk&&{display:"block"},isSelected:i,attributes:e,setAttributes:t,__unstableMobileNoFocusOnMount:!0,icon:hk,label:(0,tt.__)("Quote citation"),placeholder:(0,tt.__)("Add citation"),addLabel:(0,tt.__)("Add citation"),removeLabel:(0,tt.__)("Remove citation"),excludeElementClassName:!0,className:"wp-block-quote__citation",insertBlocksAfter:o,...xk?{}:{textAlign:s}})]})]})},save:function({attributes:e}){const{textAlign:t,citation:o}=e,n=dt({[`has-text-align-${t}`]:t});return(0,Je.jsxs)("blockquote",{...ot.useBlockProps.save({className:n}),children:[(0,Je.jsx)(ot.InnerBlocks.Content,{}),!ot.RichText.isEmpty(o)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"cite",value:o})]})},deprecated:gk},wk=()=>Xe({name:fk,metadata:vk,settings:kk}),Ck=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})}),jk=window.wp.patterns,{useLayoutClasses:Sk}=Ht(ot.privateApis),{isOverridableBlock:Bk,hasOverridableBlocks:Nk}=Ht(jk.privateApis),Tk=["full","wide","left","right"],Ik=(e,t)=>{const o=(0,bt.useRef)();return(0,bt.useMemo)((()=>{if(!e?.length)return{};let n=o.current;if(void 0===n){const r="constrained"===t?.type,a=e.some((e=>Tk.includes(e.attributes.align)));n=r&&a?"full":null,o.current=n}return{alignment:n,layout:n?t:void 0}}),[e,t])};function Pk(e,t,o){t.forEach((t=>{const n=o||(Bk(t)?"contentOnly":"disabled");e(t.clientId,n),Pk(e,t.innerBlocks,t.name===Fk?"disabled":o)}))}function Mk(){const e=(0,ot.useBlockProps)();return(0,Je.jsx)("div",{...e,children:(0,Je.jsx)(ot.Warning,{children:(0,tt.__)("Block cannot be rendered inside itself.")})})}const zk=()=>{};function Rk({name:e,attributes:{ref:t,content:o},__unstableParentLayout:n,clientId:r,setAttributes:a}){const{record:i,hasResolved:s}=(0,mt.useEntityRecord)("postType","wp_block",t),[l]=(0,mt.useEntityBlockEditor)("postType","wp_block",{id:t}),c=s&&!i,{setBlockEditingMode:u,__unstableMarkLastChangeAsPersistent:d}=(0,gt.useDispatch)(ot.store),{innerBlocks:p,userCanEdit:m,onNavigateToEntityRecord:g,editingMode:h,hasPatternOverridesSource:x}=(0,gt.useSelect)((e=>{const{canUser:o}=e(mt.store),{getBlocks:n,getSettings:a,getBlockEditingMode:i}=e(ot.store),{getBlockBindingsSource:s}=Ht(e(Qe.store)),l=o("update","blocks",t);return{innerBlocks:n(r),userCanEdit:l,getBlockEditingMode:i,onNavigateToEntityRecord:a().onNavigateToEntityRecord,editingMode:i(r),hasPatternOverridesSource:!!s("core/pattern-overrides")}}),[r,t]);(0,bt.useEffect)((()=>{Pk(u,p,"disabled"!==h&&x?void 0:"disabled")}),[h,p,u,x]);const b=(0,bt.useMemo)((()=>x&&Nk(l)),[x,l]),{alignment:_,layout:y}=Ik(l,n),v=Sk({layout:y},e),f=(0,ot.useBlockProps)({className:dt("block-library-block__reusable-block-container",y&&v,{[`align${_}`]:_})}),k=(0,ot.useInnerBlocksProps)(f,{templateLock:"all",layout:y,value:p.length>0?p:l,onInput:zk,onChange:zk,renderAppender:l?.length?void 0:l.ButtonBlockAppender});let w=null;return c&&(w=(0,Je.jsx)(ot.Warning,{children:(0,tt.__)("Block has been deleted or is unavailable.")})),s||(w=(0,Je.jsx)(et.Placeholder,{children:(0,Je.jsx)(et.Spinner,{})})),(0,Je.jsxs)(Je.Fragment,{children:[m&&g&&(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(et.ToolbarGroup,{children:(0,Je.jsx)(et.ToolbarButton,{onClick:()=>{g({postId:t,postType:"wp_block"})},children:(0,tt.__)("Edit original")})})}),b&&(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(et.ToolbarGroup,{children:(0,Je.jsx)(et.ToolbarButton,{onClick:()=>{o&&(d(),a({content:void 0}))},disabled:!o,__experimentalIsFocusable:!0,children:(0,tt.__)("Reset")})})}),null===w?(0,Je.jsx)("div",{...k}):(0,Je.jsx)("div",{...f,children:w})]})}const Ak={attributes:{ref:{type:"number"},content:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible:({content:e})=>!!e&&Object.keys(e).every((t=>{return e[t].values&&("object"==typeof(o=e[t].values)&&!Array.isArray(o)&&null!==o);var o})),migrate(e){const{content:t,...o}=e;if(t&&Object.keys(t).length){const e={...t};for(const o in t)e[o]=t[o].values;return{...o,content:e}}return e}},Lk={attributes:{ref:{type:"number"},overrides:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible:({overrides:e})=>!!e,migrate(e){const{overrides:t,...o}=e,n={};return Object.keys(t).forEach((e=>{n[e]=t[e]})),{...o,content:n}}},Hk=[Ak,Lk],Dk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/block",title:"Pattern",category:"reusable",description:"Reuse this design across your site.",keywords:["reusable"],textdomain:"default",attributes:{ref:{type:"number"},content:{type:"object",default:{}}},providesContext:{"pattern/overrides":"content"},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1,interactivity:{clientNavigation:!0}}},{name:Fk}=Dk,Vk={deprecated:Hk,edit:function(e){const{ref:t}=e.attributes;return(0,ot.useHasRecursion)(t)?(0,Je.jsx)(Mk,{}):(0,Je.jsx)(ot.RecursionProvider,{uniqueId:t,children:(0,Je.jsx)(Rk,{...e})})},icon:Ck,__experimentalLabel:({ref:e})=>{if(!e)return;const t=(0,gt.select)(mt.store).getEditedEntityRecord("postType","wp_block",e);return t?.title?(0,Xo.decodeEntities)(t.title):void 0}},Ek=()=>Xe({name:Fk,metadata:Dk,settings:Vk});const $k={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/read-more",title:"Read More",category:"theme",description:"Displays the link of a post, page, or any other content-type.",textdomain:"default",attributes:{content:{type:"string"},linkTarget:{type:"string",default:"_self"}},usesContext:["postId"],supports:{html:!1,color:{gradients:!0,text:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,textDecoration:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalDefaultControls:{width:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-read-more"},{name:Gk}=$k,Ok={icon:ko,edit:function({attributes:{content:e,linkTarget:t},setAttributes:o,insertBlocksAfter:n}){const r=(0,ot.useBlockProps)();return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(et.PanelBody,{title:(0,tt.__)("Settings"),children:(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>o({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t})})}),(0,Je.jsx)(ot.RichText,{identifier:"content",tagName:"a","aria-label":(0,tt.__)("“Read more” link text"),placeholder:(0,tt.__)("Read more"),value:e,onChange:e=>o({content:e}),__unstableOnSplitAtEnd:()=>n((0,Qe.createBlock)((0,Qe.getDefaultBlockName)())),withoutInteractiveFormatting:!0,...r})]})}},Uk=()=>Xe({name:Gk,metadata:$k,settings:Ok}),qk=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.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"})});const Wk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/rss",title:"RSS",category:"widgets",description:"Display entries from any RSS or Atom feed.",keywords:["atom","feed"],textdomain:"default",attributes:{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,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"},{name:Zk}=Wk,Qk={icon:qk,example:{attributes:{feedURL:"https://wordpress.org"}},edit:function({attributes:e,setAttributes:t}){const[o,n]=(0,bt.useState)(!e.feedURL),{blockLayout:r,columns:a,displayAuthor:i,displayDate:s,displayExcerpt:l,excerptLength:c,feedURL:u,itemsToShow:d}=e;function p(o){return()=>{const n=e[o];t({[o]:!n})}}const m=(0,ot.useBlockProps)(),g=(0,tt.__)("RSS URL");if(o)return(0,Je.jsx)("div",{...m,children:(0,Je.jsx)(et.Placeholder,{icon:qk,label:g,instructions:(0,tt.__)("Display entries from any RSS or Atom feed."),children:(0,Je.jsxs)("form",{onSubmit:function(e){e.preventDefault(),u&&(t({feedURL:(0,pt.prependHTTP)(u)}),n(!1))},className:"wp-block-rss__placeholder-form",children:[(0,Je.jsx)(et.__experimentalInputControl,{__next40pxDefaultSize:!0,label:g,hideLabelFromVision:!0,placeholder:(0,tt.__)("Enter URL here…"),value:u,onChange:e=>t({feedURL:e}),className:"wp-block-rss__placeholder-input"}),(0,Je.jsx)(et.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,tt.__)("Apply")})]})})});const h=[{icon:$s,title:(0,tt.__)("Edit RSS URL"),onClick:()=>n(!0)},{icon:Pp,title:(0,tt._x)("List view","RSS block display setting"),onClick:()=>t({blockLayout:"list"}),isActive:"list"===r},{icon:nd,title:(0,tt._x)("Grid view","RSS block display setting"),onClick:()=>t({blockLayout:"grid"}),isActive:"grid"===r}];return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(et.ToolbarGroup,{controls:h})}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Number of items"),value:d,onChange:e=>t({itemsToShow:e}),min:1,max:20,required:!0}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display author"),checked:i,onChange:p("displayAuthor")}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display date"),checked:s,onChange:p("displayDate")}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display excerpt"),checked:l,onChange:p("displayExcerpt")}),l&&(0,Je.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Max number of words in excerpt"),value:c,onChange:e=>t({excerptLength:e}),min:10,max:100,required:!0}),"grid"===r&&(0,Je.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Columns"),value:a,onChange:e=>t({columns:e}),min:2,max:6,required:!0})]})}),(0,Je.jsx)("div",{...m,children:(0,Je.jsx)(et.Disabled,{children:(0,Je.jsx)(rt(),{block:"core/rss",attributes:e})})})]})}},Kk=()=>Xe({name:Zk,metadata:Wk,settings:Qk}),Jk=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})}),Yk=(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(et.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})}),Xk=(0,Je.jsxs)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Je.jsx)(et.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,Je.jsx)(et.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})]}),ew=(0,Je.jsxs)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Je.jsx)(et.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,Je.jsx)(et.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})]}),tw=(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(et.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"})}),ow=(0,Je.jsxs)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Je.jsx)(et.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),(0,Je.jsx)(et.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})]}),nw=(0,Je.jsxs)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Je.jsx)(et.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),(0,Je.jsx)(et.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"})]});function rw(e){return"%"===e}const aw=[{name:"default",isDefault:!0,attributes:{buttonText:(0,tt.__)("Search"),label:(0,tt.__)("Search")}}],iw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/search",title:"Search",category:"widgets",description:"Help visitors find your content.",keywords:["find"],textdomain:"default",attributes:{label:{type:"string",__experimentalRole:"content"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:"",__experimentalRole:"content"},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string",__experimentalRole:"content"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1},query:{type:"object",default:{}},isSearchFieldHidden:{type:"boolean",default:!1}},supports:{align:["left","center","right"],color:{gradients:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:!0,typography:{__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-search__label, .wp-block-search__input, .wp-block-search__button",fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search"},{name:sw}=iw,lw={icon:Jk,example:{attributes:{buttonText:(0,tt.__)("Search"),label:(0,tt.__)("Search")},viewportWidth:400},variations:aw,edit:function({className:e,attributes:t,setAttributes:o,toggleSelection:n,isSelected:r,clientId:a}){const{label:i,showLabel:s,placeholder:l,width:c,widthUnit:u,align:d,buttonText:p,buttonPosition:m,buttonUseIcon:g,isSearchFieldHidden:h,style:x}=t,b=(0,gt.useSelect)((e=>{const{getBlockParentsByBlockName:t,wasBlockJustInserted:o}=e(ot.store);return!!t(a,"core/navigation")?.length&&o(a)}),[a]),{__unstableMarkNextChangeAsNotPersistent:_}=(0,gt.useDispatch)(ot.store);(0,bt.useEffect)((()=>{b&&(_(),o({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))}),[_,b,o]);const y=x?.border?.radius;let v=(0,ot.__experimentalUseBorderProps)(t);"number"==typeof y&&(v={...v,style:{...v.style,borderRadius:`${y}px`}});const f=(0,ot.__experimentalUseColorProps)(t),[k,w]=(0,ot.useSettings)("typography.fluid","layout"),C=(0,ot.getTypographyClassesAndStyles)(t,{typography:{fluid:k},layout:{wideSize:w?.wideSize}}),j=`wp-block-search__width-${(0,Ut.useInstanceId)(et.__experimentalUnitControl)}`,S="button-inside"===m,B="button-outside"===m,N="no-button"===m,T="button-only"===m,I=(0,bt.useRef)(),P=(0,bt.useRef)(),M=(0,et.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":50,px:350}});(0,bt.useEffect)((()=>{T&&!r&&o({isSearchFieldHidden:!0})}),[T,r,o]),(0,bt.useEffect)((()=>{T&&r&&o({isSearchFieldHidden:!1})}),[T,r,o,c]);const z=[{role:"menuitemradio",title:(0,tt.__)("Button outside"),isActive:"button-outside"===m,icon:Xk,onClick:()=>{o({buttonPosition:"button-outside",isSearchFieldHidden:!1})}},{role:"menuitemradio",title:(0,tt.__)("Button inside"),isActive:"button-inside"===m,icon:ew,onClick:()=>{o({buttonPosition:"button-inside",isSearchFieldHidden:!1})}},{role:"menuitemradio",title:(0,tt.__)("No button"),isActive:"no-button"===m,icon:tw,onClick:()=>{o({buttonPosition:"no-button",isSearchFieldHidden:!1})}},{role:"menuitemradio",title:(0,tt.__)("Button only"),isActive:"button-only"===m,icon:Yk,onClick:()=>{o({buttonPosition:"button-only",isSearchFieldHidden:!0})}}],R=()=>{const e=dt("wp-block-search__input",S?void 0:v.className,C.className),t={...S?{borderRadius:y}:v.style,...C.style,textDecoration:void 0};return(0,Je.jsx)("input",{type:"search",className:e,style:t,"aria-label":(0,tt.__)("Optional placeholder text"),placeholder:l?void 0:(0,tt.__)("Optional placeholder…"),value:l,onChange:e=>o({placeholder:e.target.value}),ref:I})},A=(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsxs)(et.ToolbarGroup,{children:[(0,Je.jsx)(et.ToolbarButton,{title:(0,tt.__)("Toggle search label"),icon:nw,onClick:()=>{o({showLabel:!s})},className:s?"is-pressed":void 0}),(0,Je.jsx)(et.ToolbarDropdownMenu,{icon:(()=>{switch(m){case"button-inside":return ew;case"button-outside":return Xk;case"no-button":return tw;case"button-only":return Yk}})(),label:(0,tt.__)("Change button position"),controls:z}),!N&&(0,Je.jsx)(et.ToolbarButton,{title:(0,tt.__)("Use button with icon"),icon:ow,onClick:()=>{o({buttonUseIcon:!g})},className:g?"is-pressed":void 0})]})}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(et.PanelBody,{title:(0,tt.__)("Settings"),children:(0,Je.jsxs)(et.BaseControl,{label:(0,tt.__)("Width"),id:j,children:[(0,Je.jsx)(et.__experimentalUnitControl,{id:j,min:rw(u)?0:220,max:rw(u)?100:void 0,step:1,onChange:e=>{const t="%"===u&&parseInt(e,10)>100?100:e;o({width:parseInt(t,10)})},onUnitChange:e=>{o({width:"%"===e?50:350,widthUnit:e})},__unstableInputWidth:"80px",value:`${c}${u}`,units:M}),(0,Je.jsx)(et.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":(0,tt.__)("Percentage Width"),children:[25,50,75,100].map((e=>(0,Je.jsxs)(et.Button,{size:"small",variant:e===c&&"%"===u?"primary":void 0,onClick:()=>o({width:e,widthUnit:"%"}),children:[e,"%"]},e)))})]})})})]}),L=e=>e?`calc(${e} + 4px)`:void 0,H=(0,ot.useBlockProps)({className:dt(e,S?"wp-block-search__button-inside":void 0,B?"wp-block-search__button-outside":void 0,N?"wp-block-search__no-button":void 0,T?"wp-block-search__button-only":void 0,g||N?void 0:"wp-block-search__text-button",g&&!N?"wp-block-search__icon-button":void 0,T&&h?"wp-block-search__searchfield-hidden":void 0),style:{...C.style,textDecoration:void 0}}),D=dt("wp-block-search__label",C.className);return(0,Je.jsxs)("div",{...H,children:[A,s&&(0,Je.jsx)(ot.RichText,{identifier:"label",className:D,"aria-label":(0,tt.__)("Label text"),placeholder:(0,tt.__)("Add label…"),withoutInteractiveFormatting:!0,value:i,onChange:e=>o({label:e}),style:C.style}),(0,Je.jsxs)(et.ResizableBox,{size:{width:`${c}${u}`},className:dt("wp-block-search__inside-wrapper",S?v.className:void 0),style:(()=>{const e=S?v.style:{borderRadius:v.style?.borderRadius,borderTopLeftRadius:v.style?.borderTopLeftRadius,borderTopRightRadius:v.style?.borderTopRightRadius,borderBottomLeftRadius:v.style?.borderBottomLeftRadius,borderBottomRightRadius:v.style?.borderBottomRightRadius},t=void 0!==y&&0!==parseInt(y,10);if(S&&t){if("object"==typeof y){const{topLeft:t,topRight:o,bottomLeft:n,bottomRight:r}=y;return{...e,borderTopLeftRadius:L(t),borderTopRightRadius:L(o),borderBottomLeftRadius:L(n),borderBottomRightRadius:L(r)}}const t=Number.isInteger(y)?`${y}px`:y;e.borderRadius=`calc(${t} + 4px)`}return e})(),minWidth:220,enable:T?{}:{right:"right"!==d,left:"right"===d},onResizeStart:(e,t,r)=>{o({width:parseInt(r.offsetWidth,10),widthUnit:"px"}),n(!1)},onResizeStop:(e,t,r,a)=>{o({width:parseInt(c+a.width,10)}),n(!0)},showHandle:r,children:[(S||B||T)&&(0,Je.jsxs)(Je.Fragment,{children:[R(),(()=>{const e=dt("wp-block-search__button",f.className,C.className,S?void 0:v.className,g?"has-icon":void 0,(0,ot.__experimentalGetElementClassName)("button")),t={...f.style,...C.style,...S?{borderRadius:y}:v.style},n=()=>{T&&o({isSearchFieldHidden:!h})};return(0,Je.jsxs)(Je.Fragment,{children:[g&&(0,Je.jsx)("button",{type:"button",className:e,style:t,"aria-label":p?(0,sc.__unstableStripHTML)(p):(0,tt.__)("Search"),onClick:n,ref:P,children:(0,Je.jsx)(Mg,{icon:Jk})}),!g&&(0,Je.jsx)(ot.RichText,{identifier:"buttonText",className:e,style:t,"aria-label":(0,tt.__)("Button text"),placeholder:(0,tt.__)("Add button text…"),withoutInteractiveFormatting:!0,value:p,onChange:e=>o({buttonText:e}),onClick:n})]})})()]}),N&&R()]})]})}},cw=()=>Xe({name:sw,metadata:iw,settings:lw}),uw=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"})});const dw={from:[{type:"enter",regExp:/^-{3,}$/,transform:()=>(0,Qe.createBlock)("core/separator")},{type:"raw",selector:"hr",schema:{hr:{}}}]},pw={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){const{color:t,customColor:o}=e,n=(0,ot.getColorClassName)("background-color",t),r=(0,ot.getColorClassName)("color",t),a=dt({"has-text-color has-background":t||o,[n]:n,[r]:r}),i={backgroundColor:n?void 0:o,color:r?void 0:o};return(0,Je.jsx)("hr",{...ot.useBlockProps.save({className:a,style:i})})},migrate(e){const{color:t,customColor:o,...n}=e;return{...n,backgroundColor:t||void 0,opacity:"css",style:o?{color:{background:o}}:void 0}}},mw=[pw],gw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/separator",title:"Separator",category:"design",description:"Create a break between ideas or sections with a horizontal separator.",keywords:["horizontal-line","hr","divider"],textdomain:"default",attributes:{opacity:{type:"string",default:"alpha-channel"}},supports:{anchor:!0,align:["center","wide","full"],color:{enableContrastChecker:!1,__experimentalSkipSerialization:!0,gradients:!0,background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{margin:["top","bottom"]},interactivity:{clientNavigation:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"wide",label:"Wide Line"},{name:"dots",label:"Dots"}],editorStyle:"wp-block-separator-editor",style:"wp-block-separator"},{name:hw}=gw,xw={icon:uw,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:dw,edit:function({attributes:e,setAttributes:t}){const{backgroundColor:o,opacity:n,style:r}=e,a=(0,ot.__experimentalUseColorProps)(e),i=a?.style?.backgroundColor,s=!!r?.color?.background;!function(e,t,o){const[n,r]=(0,bt.useState)(!1),a=(0,Ut.usePrevious)(t);(0,bt.useEffect)((()=>{"css"!==e||t||a||r(!0)}),[t,a,e]),(0,bt.useEffect)((()=>{"css"===e&&(n&&t||a&&t!==a)&&(o({opacity:"alpha-channel"}),r(!1))}),[n,t,a])}(n,i,t);const l=(0,ot.getColorClassName)("color",o),c=dt({"has-text-color":o||i,[l]:l,"has-css-opacity":"css"===n,"has-alpha-channel-opacity":"alpha-channel"===n},a.className),u={color:i,backgroundColor:i};return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(et.HorizontalRule,{...(0,ot.useBlockProps)({className:c,style:s?u:void 0})})})},save:function({attributes:e}){const{backgroundColor:t,style:o,opacity:n}=e,r=o?.color?.background,a=(0,ot.__experimentalGetColorClassesAndStyles)(e),i=(0,ot.getColorClassName)("color",t),s=dt({"has-text-color":t||r,[i]:i,"has-css-opacity":"css"===n,"has-alpha-channel-opacity":"alpha-channel"===n},a.className),l={backgroundColor:a?.style?.backgroundColor,color:i?void 0:r};return(0,Je.jsx)("hr",{...ot.useBlockProps.save({className:s,style:l})})},deprecated:mw},bw=()=>Xe({name:hw,metadata:gw,settings:xw}),_w=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.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"})});const yw=window.wp.autop,vw={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,yw.removep)((0,yw.autop)(t))}},priority:20}]},fw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/shortcode",title:"Shortcode",category:"widgets",description:"Insert additional custom elements with a WordPress shortcode.",textdomain:"default",attributes:{text:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,html:!1},editorStyle:"wp-block-shortcode-editor"},{name:kw}=fw,ww={icon:_w,transforms:vw,edit:function e({attributes:t,setAttributes:o}){const n=`blocks-shortcode-input-${(0,Ut.useInstanceId)(e)}`;return(0,Je.jsx)("div",{...(0,ot.useBlockProps)(),children:(0,Je.jsx)(et.Placeholder,{icon:_w,label:(0,tt.__)("Shortcode"),children:(0,Je.jsx)(ot.PlainText,{className:"blocks-shortcode__textarea",id:n,value:t.text,"aria-label":(0,tt.__)("Shortcode text"),placeholder:(0,tt.__)("Write shortcode here…"),onChange:e=>o({text:e})})})})},save:function({attributes:e}){return(0,Je.jsx)(bt.RawHTML,{children:e.text})}},Cw=()=>Xe({name:kw,metadata:fw,settings:ww}),jw=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"})}),Sw=["image"],Bw="image/*",Nw=({alt:e,attributes:{align:t,width:o,height:n,isLink:r,linkTarget:a,shouldSyncIcon:i},isSelected:s,setAttributes:l,setLogo:c,logoUrl:u,siteUrl:d,logoId:p,iconId:m,setIcon:g,canUserEdit:h})=>{const x=(0,Ut.useViewportMatch)("medium"),b=!["wide","full"].includes(t)&&x,[{naturalWidth:_,naturalHeight:y},v]=(0,bt.useState)({}),[f,k]=(0,bt.useState)(!1),{toggleSelection:w}=(0,gt.useDispatch)(ot.store),{imageEditing:C,maxWidth:j,title:S}=(0,gt.useSelect)((e=>{const t=e(ot.store).getSettings(),o=e(mt.store).getEntityRecord("root","__unstableBase");return{title:o?.name,imageEditing:t.imageEditing,maxWidth:t.maxWidth}}),[]);(0,bt.useEffect)((()=>{i&&p!==m&&l({shouldSyncIcon:!1})}),[]),(0,bt.useEffect)((()=>{s||k(!1)}),[s]);const B=(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("img",{className:"custom-logo",src:u,alt:e,onLoad:e=>{v({naturalWidth:e.target.naturalWidth,naturalHeight:e.target.naturalHeight})}}),(0,It.isBlobURL)(u)&&(0,Je.jsx)(et.Spinner,{})]});let N=B;if(r&&(N=(0,Je.jsx)("a",{href:d,className:"custom-logo-link",rel:"home",title:S,onClick:e=>e.preventDefault(),children:B})),!b||!_||!y)return(0,Je.jsx)("div",{style:{width:o,height:n},children:N});const T=o||120,I=_/y,P=T/I,M=_<y?tu:Math.ceil(tu*I),z=y<_?tu:Math.ceil(tu/I),R=2.5*j;let A=!1,L=!1;"center"===t?(A=!0,L=!0):(0,tt.isRTL)()?"left"===t?A=!0:L=!0:"right"===t?L=!0:A=!0;const H=p&&_&&y&&C,D=H&&f?(0,Je.jsx)(ot.__experimentalImageEditor,{id:p,url:u,width:T,height:P,naturalHeight:y,naturalWidth:_,onSaveImage:e=>{c(e.id)},onFinishEditing:()=>{k(!1)}}):(0,Je.jsx)(et.ResizableBox,{size:{width:T,height:P},showHandle:s,minWidth:M,maxWidth:R,minHeight:z,maxHeight:R/I,lockAspectRatio:!0,enable:{top:!1,right:A,bottom:!0,left:L},onResizeStart:function(){w(!1)},onResizeStop:(e,t,o,n)=>{w(!0),l({width:parseInt(T+n.width,10),height:parseInt(P+n.height,10)})},children:N}),F=!window?.__experimentalUseCustomizerSiteLogoUrl?d+"/wp-admin/options-general.php":d+"/wp-admin/customize.php?autofocus[section]=title_tagline",V=(0,bt.createInterpolateElement)((0,tt.__)("Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. To use a custom icon that is different from your site logo, use the <a>Site Icon settings</a>."),{a:(0,Je.jsx)("a",{href:F,target:"_blank",rel:"noopener noreferrer"})});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Image width"),onChange:e=>l({width:e}),min:M,max:R,initialPosition:Math.min(120,R),value:o||"",disabled:!b}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link image to home"),onChange:()=>l({isLink:!r}),checked:r}),r&&(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>l({linkTarget:e?"_blank":"_self"}),checked:"_blank"===a})}),h&&(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Use as Site Icon"),onChange:e=>{l({shouldSyncIcon:e}),g(e?p:void 0)},checked:!!i,help:V})})]})}),(0,Je.jsx)(ot.BlockControls,{group:"block",children:H&&!f&&(0,Je.jsx)(et.ToolbarButton,{onClick:()=>k(!0),icon:rp,label:(0,tt.__)("Crop")})}),D]})};function Tw({onRemoveLogo:e,...t}){return(0,Je.jsx)(ot.MediaReplaceFlow,{...t,allowedTypes:Sw,accept:Bw,children:(0,Je.jsx)(et.MenuItem,{onClick:e,children:(0,tt.__)("Reset")})})}const Iw=({mediaItemData:e={},itemGroupProps:t})=>{const{alt_text:o,source_url:n,slug:r,media_details:a}=e,i=a?.sizes?.full?.file||r;return(0,Je.jsx)(et.__experimentalItemGroup,{...t,as:"span",children:(0,Je.jsxs)(et.__experimentalHStack,{justify:"flex-start",as:"span",children:[(0,Je.jsx)("img",{src:n,alt:o}),(0,Je.jsx)(et.FlexItem,{as:"span",children:(0,Je.jsx)(et.__experimentalTruncate,{numberOfLines:1,className:"block-library-site-logo__inspector-media-replace-title",children:i})})]})})};const Pw={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,Qe.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]},Mw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-logo",title:"Site Logo",category:"theme",description:"Display an image to represent this site. Update this block and the changes apply everywhere.",textdomain:"default",attributes:{width:{type:"number"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},shouldSyncIcon:{type:"boolean"}},example:{viewportWidth:500,attributes:{width:350,className:"block-editor-block-types-list__site-logo-example"}},supports:{html:!1,align:!0,alignWide:!1,color:{__experimentalDuotone:"img, .components-placeholder__illustration, .components-placeholder::before",text:!1,background:!1},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-site-logo-editor",style:"wp-block-site-logo"},{name:zw}=Mw,Rw={icon:jw,example:{},edit:function({attributes:e,className:t,setAttributes:o,isSelected:n}){const{width:r,shouldSyncIcon:a}=e,{siteLogoId:i,canUserEdit:s,url:l,siteIconId:c,mediaItemData:u,isRequestingMediaItem:d}=(0,gt.useSelect)((e=>{const{canUser:t,getEntityRecord:o,getEditedEntityRecord:n}=e(mt.store),r=t("update","settings"),a=r?n("root","site"):void 0,i=o("root","__unstableBase"),s=r?a?.site_logo:i?.site_logo,l=a?.site_icon,c=s&&e(mt.store).getMedia(s,{context:"view"}),u=s&&!e(mt.store).hasFinishedResolution("getMedia",[s,{context:"view"}]);return{siteLogoId:s,canUserEdit:r,url:i?.home,mediaItemData:c,isRequestingMediaItem:u,siteIconId:l}}),[]),{getSettings:p}=(0,gt.useSelect)(ot.store),[m,g]=(0,bt.useState)(),{editEntityRecord:h}=(0,gt.useDispatch)(mt.store),x=(e,t=!1)=>{(a||t)&&b(e),h("root","site",void 0,{site_logo:e})},b=e=>h("root","site",void 0,{site_icon:null!=e?e:null}),{alt_text:_,source_url:y}=null!=u?u:{},v=e=>{if(void 0===a){const t=!c;return o({shouldSyncIcon:t}),void f(e,t)}f(e)},f=(e,t=!1)=>{if(e)return!e.id&&e.url?(g(e.url),void x(void 0)):void x(e.id,t)},{createErrorNotice:k}=(0,gt.useDispatch)(Pt.store),w=e=>{k(e,{type:"snackbar"}),g()},C=e=>{p().mediaUpload({allowedTypes:Sw,filesList:e,onFileChange([e]){(0,It.isBlobURL)(e?.url)?g(e.url):v(e)},onError:w})},j={mediaURL:y,onSelect:f,onError:w,onRemoveLogo:()=>{x(null),o({width:void 0})}},S=s&&y&&!m&&(0,Je.jsx)(ot.BlockControls,{group:"other",children:(0,Je.jsx)(Tw,{...j})});let B;const N=void 0===i||d;N&&(B=(0,Je.jsx)(et.Spinner,{})),(0,bt.useEffect)((()=>{y&&m&&g()}),[y,m]),(y||m)&&(B=(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(Nw,{alt:_,attributes:e,className:t,isSelected:n,setAttributes:o,logoUrl:m||y,setLogo:x,logoId:u?.id||i,siteUrl:l,setIcon:b,iconId:c,canUserEdit:s})}));const T=dt(t,{"is-default-size":!r,"is-transient":m}),I=(0,ot.useBlockProps)({className:T}),P=(0,tt.__)("Add a site logo"),M=(s||y)&&(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(et.PanelBody,{title:(0,tt.__)("Media"),children:(0,Je.jsxs)("div",{className:"block-library-site-logo__inspector-media-replace-container",children:[!s&&!!y&&(0,Je.jsx)(Iw,{mediaItemData:u,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"}}),s&&!!y&&(0,Je.jsx)(Tw,{...j,name:(0,Je.jsx)(Iw,{mediaItemData:u}),popoverProps:{}}),s&&!y&&(0,Je.jsx)(ot.MediaUploadCheck,{children:(0,Je.jsx)(ot.MediaUpload,{onSelect:v,allowedTypes:Sw,render:({open:e})=>(0,Je.jsxs)("div",{className:"block-library-site-logo__inspector-upload-container",children:[(0,Je.jsx)(et.Button,{onClick:e,variant:"secondary",children:N?(0,Je.jsx)(et.Spinner,{}):(0,tt.__)("Add media")}),(0,Je.jsx)(et.DropZone,{onFilesDrop:C})]})})})]})})});return(0,Je.jsxs)("div",{...I,children:[S,M,(!!y||!!m)&&B,!m&&!y&&!s&&(0,Je.jsx)(et.Placeholder,{className:"site-logo_placeholder",children:!!N&&(0,Je.jsx)("span",{className:"components-placeholder__preview",children:(0,Je.jsx)(et.Spinner,{})})}),!m&&!y&&s&&(0,Je.jsx)(ot.MediaPlaceholder,{onSelect:v,accept:Bw,allowedTypes:Sw,onError:w,placeholder:e=>{const o=dt("block-editor-media-placeholder",t);return(0,Je.jsx)(et.Placeholder,{className:o,preview:B,withIllustration:!0,style:{width:r},children:e})},mediaLibraryButton:({open:e})=>(0,Je.jsx)(et.Button,{icon:ip,variant:"primary",label:P,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{e()}})})]})},transforms:Pw},Aw=()=>Xe({name:zw,metadata:Mw,settings:Rw}),Lw=[0,1,2,3,4,5,6];const Hw=(0,Je.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",children:(0,Je.jsx)(et.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"})}),Dw={attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:so,isEligible:({style:e})=>e?.typography?.fontFamily},Fw=[Dw],Vw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-tagline",title:"Site Tagline",category:"theme",description:"Describe in a few words what the site is about. The tagline can be used in search results or when sharing on social networks even if it’s not displayed in the theme design.",keywords:["description"],textdomain:"default",attributes:{textAlign:{type:"string"},level:{type:"number",default:0}},example:{},supports:{align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-site-tagline-editor"},{name:Ew}=Vw,$w={icon:Hw,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:o}){const{textAlign:n,level:r}=e,{canUserEdit:a,tagline:i}=(0,gt.useSelect)((e=>{const{canUser:t,getEntityRecord:o,getEditedEntityRecord:n}=e(mt.store),r=t("update","settings"),a=r?n("root","site"):{},i=o("root","__unstableBase");return{canUserEdit:t("update","settings"),tagline:r?a?.description:i?.description}}),[]),s=0===r?"p":`h${r}`,{editEntityRecord:l}=(0,gt.useDispatch)(mt.store),c=(0,ot.useBlockProps)({className:dt({[`has-text-align-${n}`]:n,"wp-block-site-tagline__placeholder":!a&&!i})}),u=a?(0,Je.jsx)(ot.RichText,{allowedFormats:[],onChange:function(e){l("root","site",void 0,{description:e})},"aria-label":(0,tt.__)("Site tagline text"),placeholder:(0,tt.__)("Write site tagline…"),tagName:s,value:i,disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,Qe.createBlock)((0,Qe.getDefaultBlockName)())),...c}):(0,Je.jsx)(s,{...c,children:i||(0,tt.__)("Site Tagline placeholder")});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(ot.BlockControls,{group:"block",children:[(0,Je.jsx)(ot.HeadingLevelDropdown,{options:Lw,value:r,onChange:e=>t({level:e})}),(0,Je.jsx)(ot.AlignmentControl,{onChange:e=>t({textAlign:e}),value:n})]}),u]})},deprecated:Fw},Gw=()=>Xe({name:Ew,metadata:Vw,settings:$w}),Ow=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})}),Uw=[0,1,2,3,4,5,6];const qw={attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:so,isEligible:({style:e})=>e?.typography?.fontFamily},Ww=[qw],Zw={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,Qe.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]},Qw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-title",title:"Site Title",category:"theme",description:"Displays the name of this site. Update the block, and the changes apply everywhere it’s used. This will also appear in the browser title bar and in search results.",textdomain:"default",attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},example:{viewportWidth:500},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-site-title-editor",style:"wp-block-site-title"},{name:Kw}=Qw,Jw={icon:Ow,example:{},edit:function({attributes:e,setAttributes:t,insertBlocksAfter:o}){const{level:n,textAlign:r,isLink:a,linkTarget:i}=e,{canUserEdit:s,title:l}=(0,gt.useSelect)((e=>{const{canUser:t,getEntityRecord:o,getEditedEntityRecord:n}=e(mt.store),r=t("update","settings"),a=r?n("root","site"):{},i=o("root","__unstableBase");return{canUserEdit:r,title:r?a?.title:i?.name}}),[]),{editEntityRecord:c}=(0,gt.useDispatch)(mt.store),u=0===n?"p":`h${n}`,d=(0,ot.useBlockProps)({className:dt({[`has-text-align-${r}`]:r,"wp-block-site-title__placeholder":!s&&!l})}),p=s?(0,Je.jsx)(u,{...d,children:(0,Je.jsx)(ot.RichText,{tagName:a?"a":"span",href:a?"#site-title-pseudo-link":void 0,"aria-label":(0,tt.__)("Site title text"),placeholder:(0,tt.__)("Write site title…"),value:l,onChange:function(e){c("root","site",void 0,{title:e})},allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))})}):(0,Je.jsx)(u,{...d,children:a?(0,Je.jsx)("a",{href:"#site-title-pseudo-link",onClick:e=>e.preventDefault(),children:(0,Xo.decodeEntities)(l)||(0,tt.__)("Site Title placeholder")}):(0,Je.jsx)("span",{children:(0,Xo.decodeEntities)(l)||(0,tt.__)("Site Title placeholder")})});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(ot.BlockControls,{group:"block",children:[(0,Je.jsx)(ot.HeadingLevelDropdown,{options:Uw,value:n,onChange:e=>t({level:e})}),(0,Je.jsx)(ot.AlignmentControl,{value:r,onChange:e=>{t({textAlign:e})}})]}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Make title link to home"),onChange:()=>t({isLink:!a}),checked:a}),a&&(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>t({linkTarget:e?"_blank":"_self"}),checked:"_blank"===i})]})}),p]})},transforms:Zw,deprecated:Ww},Yw=()=>Xe({name:Kw,metadata:Qw,settings:Jw}),Xw=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.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"})}),eC=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})}),tC=()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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"})}),oC=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:"bluesky",attributes:{service:"bluesky"},title:"Bluesky",icon:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.Path,{d:"M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"})})},{name:"chain",attributes:{service:"chain"},title:"Link",icon:tC},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:"gravatar",attributes:{service:"gravatar"},title:"Gravatar",icon:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.Path,{d:"M10.8001 4.69937V10.6494C10.8001 11.1001 10.9791 11.5323 11.2978 11.851C11.6165 12.1697 12.0487 12.3487 12.4994 12.3487C12.9501 12.3487 13.3824 12.1697 13.7011 11.851C14.0198 11.5323 14.1988 11.1001 14.1988 10.6494V6.69089C15.2418 7.05861 16.1371 7.75537 16.7496 8.67617C17.3622 9.59698 17.6589 10.6919 17.595 11.796C17.5311 12.9001 17.1101 13.9535 16.3954 14.7975C15.6807 15.6415 14.711 16.2303 13.6325 16.4753C12.5541 16.7202 11.4252 16.608 10.4161 16.1555C9.40691 15.703 8.57217 14.9348 8.03763 13.9667C7.50308 12.9985 7.29769 11.8828 7.45242 10.7877C7.60714 9.69266 8.11359 8.67755 8.89545 7.89537C9.20904 7.57521 9.38364 7.14426 9.38132 6.69611C9.37899 6.24797 9.19994 5.81884 8.88305 5.50195C8.56616 5.18506 8.13704 5.00601 7.68889 5.00369C7.24075 5.00137 6.80979 5.17597 6.48964 5.48956C5.09907 6.8801 4.23369 8.7098 4.04094 10.6669C3.84819 12.624 4.34 14.5873 5.43257 16.2224C6.52515 17.8575 8.15088 19.0632 10.0328 19.634C11.9146 20.2049 13.9362 20.1055 15.753 19.3529C17.5699 18.6003 19.0695 17.241 19.9965 15.5066C20.9234 13.7722 21.2203 11.7701 20.8366 9.84133C20.4528 7.91259 19.4122 6.17658 17.892 4.92911C16.3717 3.68163 14.466 2.99987 12.4994 3C12.0487 3 11.6165 3.17904 11.2978 3.49773C10.9791 3.81643 10.8001 4.24867 10.8001 4.69937Z"})})},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"})})},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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",keywords:["email","e-mail"],icon:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l7.5 5.6 7.5-5.6V17zm0-9.1L12 13.6 4.5 7.9V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v.9z"})})},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.Path,{d:"M13.2,12c0,3-2.4,5.4-5.3,5.4S2.6,15,2.6,12s2.4-5.4,5.3-5.4S13.2,9,13.2,12 M19.1,12c0,2.8-1.2,5-2.7,5s-2.7-2.3-2.7-5s1.2-5,2.7-5C17.9,7,19.1,9.2,19.1,12 M21.4,12c0,2.5-0.4,4.5-0.9,4.5c-0.5,0-0.9-2-0.9-4.5s0.4-4.5,0.9-4.5C21,7.5,21.4,9.5,21.4,12"})})},{name:"patreon",attributes:{service:"patreon"},title:"Patreon",icon:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.Path,{d:"M20 8.40755C19.9969 6.10922 18.2543 4.22555 16.2097 3.54588C13.6708 2.70188 10.3222 2.82421 7.89775 3.99921C4.95932 5.42355 4.03626 8.54355 4.00186 11.6552C3.97363 14.2136 4.2222 20.9517 7.92225 20.9997C10.6715 21.0356 11.0809 17.3967 12.3529 15.6442C13.258 14.3974 14.4233 14.0452 15.8578 13.6806C18.3233 13.0537 20.0036 11.0551 20 8.40755Z"})})},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.Path,{d:"M5.27 9.221A2.775 2.775 0 0 0 2.498 11.993a2.785 2.785 0 0 0 1.6 2.511 5.337 5.337 0 0 0 2.374 4.11 9.386 9.386 0 0 0 5.539 1.7 9.386 9.386 0 0 0 5.541-1.7 5.331 5.331 0 0 0 2.372-4.114 2.787 2.787 0 0 0 1.583-2.5 2.775 2.775 0 0 0-2.772-2.772 2.742 2.742 0 0 0-1.688.574 9.482 9.482 0 0 0-4.637-1.348v-.008a2.349 2.349 0 0 1 2.011-2.316 1.97 1.97 0 0 0 1.926 1.521 1.98 1.98 0 0 0 1.978-1.978 1.98 1.98 0 0 0-1.978-1.978 1.985 1.985 0 0 0-1.938 1.578 3.183 3.183 0 0 0-2.849 3.172v.011a9.463 9.463 0 0 0-4.59 1.35 2.741 2.741 0 0 0-1.688-.574Zm6.736 9.1a3.162 3.162 0 0 1-2.921-1.944.215.215 0 0 1 .014-.2.219.219 0 0 1 .168-.106 27.327 27.327 0 0 1 2.74-.133 27.357 27.357 0 0 1 2.74.133.219.219 0 0 1 .168.106.215.215 0 0 1 .014.2 3.158 3.158 0 0 1-2.921 1.944Zm3.743-3.157a1.265 1.265 0 0 1-1.4-1.371 1.954 1.954 0 0 1 .482-1.442 1.15 1.15 0 0 1 .842-.379 1.7 1.7 0 0 1 1.49 1.777 1.323 1.323 0 0 1-.325 1.015 1.476 1.476 0 0 1-1.089.4Zm-7.485 0a1.476 1.476 0 0 1-1.086-.4 1.323 1.323 0 0 1-.325-1.016 1.7 1.7 0 0 1 1.49-1.777 1.151 1.151 0 0 1 .843.379 1.951 1.951 0 0 1 .481 1.441 1.276 1.276 0 0 1-1.403 1.373Z"})})},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:"telegram",attributes:{service:"telegram"},title:"Telegram",icon:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1",children:(0,Je.jsx)(Ke.Path,{d:"M28.9700376,63.3244248 C47.6273373,55.1957357 60.0684594,49.8368063 66.2934036,47.2476366 C84.0668845,39.855031 87.7600616,38.5708563 90.1672227,38.528 C90.6966555,38.5191258 91.8804274,38.6503351 92.6472251,39.2725385 C93.294694,39.7979149 93.4728387,40.5076237 93.5580865,41.0057381 C93.6433345,41.5038525 93.7494885,42.63857 93.6651041,43.5252052 C92.7019529,53.6451182 88.5344133,78.2034783 86.4142057,89.5379542 C85.5170662,94.3339958 83.750571,95.9420841 82.0403991,96.0994568 C78.3237996,96.4414641 75.5015827,93.6432685 71.9018743,91.2836143 C66.2690414,87.5912212 63.0868492,85.2926952 57.6192095,81.6896017 C51.3004058,77.5256038 55.3966232,75.2369981 58.9976911,71.4967761 C59.9401076,70.5179421 76.3155302,55.6232293 76.6324771,54.2720454 C76.6721165,54.1030573 76.7089039,53.4731496 76.3346867,53.1405352 C75.9604695,52.8079208 75.4081573,52.921662 75.0095933,53.0121213 C74.444641,53.1403447 65.4461175,59.0880351 48.0140228,70.8551922 C45.4598218,72.6091037 43.1463059,73.4636682 41.0734751,73.4188859 C38.7883453,73.3695169 34.3926725,72.1268388 31.1249416,71.0646282 C27.1169366,69.7617838 23.931454,69.0729605 24.208838,66.8603276 C24.3533167,65.7078514 25.9403832,64.5292172 28.9700376,63.3244248 Z"})})},{name:"threads",attributes:{service:"threads"},title:"Threads",icon:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.Path,{d:"M16.3 11.3c-.1 0-.2-.1-.2-.1-.1-2.6-1.5-4-3.9-4-1.4 0-2.6.6-3.3 1.7l1.3.9c.5-.8 1.4-1 2-1 .8 0 1.4.2 1.7.7.3.3.5.8.5 1.3-.7-.1-1.4-.2-2.2-.1-2.2.1-3.7 1.4-3.6 3.2 0 .9.5 1.7 1.3 2.2.7.4 1.5.6 2.4.6 1.2-.1 2.1-.5 2.7-1.3.5-.6.8-1.4.9-2.4.6.3 1 .8 1.2 1.3.4.9.4 2.4-.8 3.6-1.1 1.1-2.3 1.5-4.3 1.5-2.1 0-3.8-.7-4.8-2S5.7 14.3 5.7 12c0-2.3.5-4.1 1.5-5.4 1.1-1.3 2.7-2 4.8-2 2.2 0 3.8.7 4.9 2 .5.7.9 1.5 1.2 2.5l1.5-.4c-.3-1.2-.8-2.2-1.5-3.1-1.3-1.7-3.3-2.6-6-2.6-2.6 0-4.7.9-6 2.6C4.9 7.2 4.3 9.3 4.3 12s.6 4.8 1.9 6.4c1.4 1.7 3.4 2.6 6 2.6 2.3 0 4-.6 5.3-2 1.8-1.8 1.7-4 1.1-5.4-.4-.9-1.2-1.7-2.3-2.3zm-4 3.8c-1 .1-2-.4-2-1.3 0-.7.5-1.5 2.1-1.6h.5c.6 0 1.1.1 1.6.2-.2 2.3-1.3 2.7-2.2 2.7z"})})},{name:"tiktok",attributes:{service:"tiktok"},title:"TikTok",icon:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 32 32",version:"1.1",children:(0,Je.jsx)(Ke.Path,{d:"M16.708 0.027c1.745-0.027 3.48-0.011 5.213-0.027 0.105 2.041 0.839 4.12 2.333 5.563 1.491 1.479 3.6 2.156 5.652 2.385v5.369c-1.923-0.063-3.855-0.463-5.6-1.291-0.76-0.344-1.468-0.787-2.161-1.24-0.009 3.896 0.016 7.787-0.025 11.667-0.104 1.864-0.719 3.719-1.803 5.255-1.744 2.557-4.771 4.224-7.88 4.276-1.907 0.109-3.812-0.411-5.437-1.369-2.693-1.588-4.588-4.495-4.864-7.615-0.032-0.667-0.043-1.333-0.016-1.984 0.24-2.537 1.495-4.964 3.443-6.615 2.208-1.923 5.301-2.839 8.197-2.297 0.027 1.975-0.052 3.948-0.052 5.923-1.323-0.428-2.869-0.308-4.025 0.495-0.844 0.547-1.485 1.385-1.819 2.333-0.276 0.676-0.197 1.427-0.181 2.145 0.317 2.188 2.421 4.027 4.667 3.828 1.489-0.016 2.916-0.88 3.692-2.145 0.251-0.443 0.532-0.896 0.547-1.417 0.131-2.385 0.079-4.76 0.095-7.145 0.011-5.375-0.016-10.735 0.025-16.093z"})})},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:"whatsapp",attributes:{service:"whatsapp"},title:"WhatsApp",icon:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.Path,{d:"M 12.011719 2 C 6.5057187 2 2.0234844 6.478375 2.0214844 11.984375 C 2.0204844 13.744375 2.4814687 15.462563 3.3554688 16.976562 L 2 22 L 7.2324219 20.763672 C 8.6914219 21.559672 10.333859 21.977516 12.005859 21.978516 L 12.009766 21.978516 C 17.514766 21.978516 21.995047 17.499141 21.998047 11.994141 C 22.000047 9.3251406 20.962172 6.8157344 19.076172 4.9277344 C 17.190172 3.0407344 14.683719 2.001 12.011719 2 z M 12.009766 4 C 14.145766 4.001 16.153109 4.8337969 17.662109 6.3417969 C 19.171109 7.8517969 20.000047 9.8581875 19.998047 11.992188 C 19.996047 16.396187 16.413812 19.978516 12.007812 19.978516 C 10.674812 19.977516 9.3544062 19.642812 8.1914062 19.007812 L 7.5175781 18.640625 L 6.7734375 18.816406 L 4.8046875 19.28125 L 5.2851562 17.496094 L 5.5019531 16.695312 L 5.0878906 15.976562 C 4.3898906 14.768562 4.0204844 13.387375 4.0214844 11.984375 C 4.0234844 7.582375 7.6067656 4 12.009766 4 z M 8.4765625 7.375 C 8.3095625 7.375 8.0395469 7.4375 7.8105469 7.6875 C 7.5815469 7.9365 6.9355469 8.5395781 6.9355469 9.7675781 C 6.9355469 10.995578 7.8300781 12.182609 7.9550781 12.349609 C 8.0790781 12.515609 9.68175 15.115234 12.21875 16.115234 C 14.32675 16.946234 14.754891 16.782234 15.212891 16.740234 C 15.670891 16.699234 16.690438 16.137687 16.898438 15.554688 C 17.106437 14.971687 17.106922 14.470187 17.044922 14.367188 C 16.982922 14.263188 16.816406 14.201172 16.566406 14.076172 C 16.317406 13.951172 15.090328 13.348625 14.861328 13.265625 C 14.632328 13.182625 14.464828 13.140625 14.298828 13.390625 C 14.132828 13.640625 13.655766 14.201187 13.509766 14.367188 C 13.363766 14.534188 13.21875 14.556641 12.96875 14.431641 C 12.71875 14.305641 11.914938 14.041406 10.960938 13.191406 C 10.218937 12.530406 9.7182656 11.714844 9.5722656 11.464844 C 9.4272656 11.215844 9.5585938 11.079078 9.6835938 10.955078 C 9.7955938 10.843078 9.9316406 10.663578 10.056641 10.517578 C 10.180641 10.371578 10.223641 10.267562 10.306641 10.101562 C 10.389641 9.9355625 10.347156 9.7890625 10.285156 9.6640625 C 10.223156 9.5390625 9.737625 8.3065 9.515625 7.8125 C 9.328625 7.3975 9.131125 7.3878594 8.953125 7.3808594 C 8.808125 7.3748594 8.6425625 7.375 8.4765625 7.375 z"})})},{name:"x",attributes:{service:"x"},keywords:["twitter"],title:"X",icon:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.Path,{d:"M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z"})})},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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:()=>(0,Je.jsx)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Je.jsx)(Ke.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"})})}];oC.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.service===t.service)}));const nC=oC,rC=({url:e,setAttributes:t,setPopover:o,popoverAnchor:n})=>(0,Je.jsx)(ot.URLPopover,{anchor:n,onClose:()=>o(!1),children:(0,Je.jsxs)("form",{className:"block-editor-url-popover__link-editor",onSubmit:e=>{e.preventDefault(),o(!1)},children:[(0,Je.jsx)("div",{className:"block-editor-url-input",children:(0,Je.jsx)(ot.URLInput,{__nextHasNoMarginBottom:!0,value:e,onChange:e=>t({url:e}),placeholder:(0,tt.__)("Enter social link"),label:(0,tt.__)("Enter social link"),hideLabelFromVision:!0,disableSuggestions:!0})}),(0,Je.jsx)(et.Button,{icon:eC,label:(0,tt.__)("Apply"),type:"submit"})]})}),aC=({attributes:e,context:t,isSelected:o,setAttributes:n})=>{const{url:r,service:a,label:i="",rel:s}=e,{showLabels:l,iconColor:c,iconColorValue:u,iconBackgroundColor:d,iconBackgroundColorValue:p}=t,[m,g]=(0,bt.useState)(!1),h=dt("wp-social-link","wp-social-link-"+a,{"wp-social-link__is-incomplete":!r,[`has-${c}-color`]:c,[`has-${d}-background-color`]:d}),[x,b]=(0,bt.useState)(null),_=(e=>{const t=nC.find((t=>t.name===e));return t?t.icon:tC})(a),y=(e=>{const t=nC.find((t=>t.name===e));return t?t.title:(0,tt.__)("Social Icon")})(a),v=""===i.trim()?y:i,f=(0,ot.useBlockProps)({className:h,style:{color:u,backgroundColor:p}});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(et.PanelBody,{title:(0,tt.__)("Settings"),children:(0,Je.jsx)(et.PanelRow,{children:(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link text"),help:(0,tt.__)("The link text is visible when enabled from the parent Social Icons block."),value:i,onChange:e=>n({label:e}),placeholder:y})})})}),(0,Je.jsx)(ot.InspectorControls,{group:"advanced",children:(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link rel"),value:s||"",onChange:e=>n({rel:e})})}),(0,Je.jsxs)("li",{...f,children:[(0,Je.jsxs)("button",{className:"wp-block-social-link-anchor",ref:b,onClick:()=>g(!0),children:[(0,Je.jsx)(_,{}),(0,Je.jsx)("span",{className:dt("wp-block-social-link-label",{"screen-reader-text":!l}),children:v})]}),o&&m&&(0,Je.jsx)(rC,{url:r,setAttributes:n,setPopover:g,popoverAnchor:x})]})]})},iC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-link",title:"Social Icon",category:"widgets",parent:["core/social-links"],description:"Display an icon linking to a social profile or site.",textdomain:"default",attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"},rel:{type:"string"}},usesContext:["openInNewTab","showLabels","iconColor","iconColorValue","iconBackgroundColor","iconBackgroundColorValue"],supports:{reusable:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-social-link-editor"},{name:sC}=iC,lC={icon:Xw,edit:aC,variations:nC},cC=()=>Xe({name:sC,metadata:iC,settings:lC}),uC=[{attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0},migrate:e=>{if(e.layout)return e;const{className:t}=e,o="items-justified-",n=new RegExp(`\\b${o}[^ ]*[ ]?\\b`,"g"),r={...e,className:t?.replace(n,"").trim()},a=t?.match(n)?.[0]?.trim();return a&&Object.assign(r,{layout:{type:"flex",justifyContent:a.slice(16)}}),r},save:e=>{const{attributes:{iconBackgroundColorValue:t,iconColorValue:o,itemsJustification:n,size:r}}=e,a=dt(r,{"has-icon-color":o,"has-icon-background-color":t,[`items-justified-${n}`]:n}),i={"--wp--social-links--icon-color":o,"--wp--social-links--icon-background-color":t};return(0,Je.jsx)("ul",{...ot.useBlockProps.save({className:a,style:i}),children:(0,Je.jsx)(ot.InnerBlocks.Content,{})})}}],dC=uC,pC=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})}),mC=[{name:(0,tt.__)("Small"),value:"has-small-icon-size"},{name:(0,tt.__)("Normal"),value:"has-normal-icon-size"},{name:(0,tt.__)("Large"),value:"has-large-icon-size"},{name:(0,tt.__)("Huge"),value:"has-huge-icon-size"}];const gC=(0,ot.withColors)({iconColor:"icon-color",iconBackgroundColor:"icon-background-color"})((function(e){var t;const{clientId:o,attributes:n,iconBackgroundColor:r,iconColor:a,isSelected:i,setAttributes:s,setIconBackgroundColor:l,setIconColor:c}=e,{iconBackgroundColorValue:u,customIconBackgroundColor:d,iconColorValue:p,openInNewTab:m,showLabels:g,size:h}=n,x=n.className?.includes("is-style-logos-only"),b=(0,bt.useRef)({});(0,bt.useEffect)((()=>{x?(b.current={iconBackgroundColor:r,iconBackgroundColorValue:u,customIconBackgroundColor:d},s({iconBackgroundColor:void 0,customIconBackgroundColor:void 0,iconBackgroundColorValue:void 0})):s({...b.current})}),[x]);const _=(0,Je.jsx)("li",{className:"wp-block-social-links__social-placeholder",children:(0,Je.jsxs)("div",{className:"wp-block-social-links__social-placeholder-icons",children:[(0,Je.jsx)("div",{className:"wp-social-link wp-social-link-twitter"}),(0,Je.jsx)("div",{className:"wp-social-link wp-social-link-facebook"}),(0,Je.jsx)("div",{className:"wp-social-link wp-social-link-instagram"})]})}),y=(0,Je.jsx)("li",{className:"wp-block-social-links__social-prompt",children:(0,tt.__)("Click plus to add")}),v=dt(h,{"has-visible-labels":g,"has-icon-color":a.color||p,"has-icon-background-color":r.color||u}),f=(0,ot.useBlockProps)({className:v}),k=(0,ot.useInnerBlocksProps)(f,{placeholder:i?y:_,templateLock:!1,orientation:null!==(t=n.layout?.orientation)&&void 0!==t?t:"horizontal",__experimentalAppenderTagName:"li"}),w=[{value:a.color||p,onChange:e=>{c(e),s({iconColorValue:e})},label:(0,tt.__)("Icon color"),resetAllFilter:()=>{c(void 0),s({iconColorValue:void 0})}}];x||w.push({value:r.color||u,onChange:e=>{l(e),s({iconBackgroundColorValue:e})},label:(0,tt.__)("Icon background"),resetAllFilter:()=>{l(void 0),s({iconBackgroundColorValue:void 0})}});const C=(0,ot.__experimentalUseMultipleOriginColorsAndGradients)();return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{group:"other",children:(0,Je.jsx)(et.ToolbarDropdownMenu,{label:(0,tt.__)("Size"),text:(0,tt.__)("Size"),icon:null,popoverProps:{position:"bottom right"},children:({onClose:e})=>(0,Je.jsx)(et.MenuGroup,{children:mC.map((t=>(0,Je.jsx)(et.MenuItem,{icon:(h===t.value||!h&&"has-normal-icon-size"===t.value)&&pC,isSelected:h===t.value,onClick:()=>{s({size:t.value})},onClose:e,role:"menuitemradio",children:t.name},t.value)))})})}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open links in new tab"),checked:m,onChange:()=>s({openInNewTab:!m})}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show text"),checked:g,onChange:()=>s({showLabels:!g})})]})}),C.hasColorsOrGradients&&(0,Je.jsxs)(ot.InspectorControls,{group:"color",children:[w.map((({onChange:e,label:t,value:n,resetAllFilter:r})=>(0,Je.jsx)(ot.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:n,label:t,onColorChange:e,isShownByDefault:!0,resetAllFilter:r,enableAlpha:!0}],panelId:o,...C},`social-links-color-${t}`))),!x&&(0,Je.jsx)(ot.ContrastChecker,{textColor:p,backgroundColor:u,isLargeText:!1})]}),(0,Je.jsx)("ul",{...k})]})}));const hC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-links",title:"Social Icons",category:"widgets",allowedBlocks:["core/social-link"],description:"Display icons linking to your social profiles or sites.",keywords:["links"],textdomain:"default",attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},showLabels:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab",showLabels:"showLabels",iconColor:"iconColor",iconColorValue:"iconColorValue",iconBackgroundColor:"iconBackgroundColor",iconBackgroundColorValue:"iconBackgroundColorValue"},supports:{align:["left","center","right"],anchor:!0,__experimentalExposeControlsToChildren:!0,layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,default:{type:"flex"}},color:{enableContrastChecker:!1,background:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!1}},spacing:{blockGap:["horizontal","vertical"],margin:!0,padding:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0,margin:!0,padding:!1}},interactivity:{clientNavigation:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"logos-only",label:"Logos Only"},{name:"pill-shape",label:"Pill Shape"}],editorStyle:"wp-block-social-links-editor",style:"wp-block-social-links"},{name:xC}=hC,bC={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"}}]},icon:Xw,edit:gC,save:function(e){const{attributes:{iconBackgroundColorValue:t,iconColorValue:o,showLabels:n,size:r}}=e,a=dt(r,{"has-visible-labels":n,"has-icon-color":o,"has-icon-background-color":t}),i=ot.useBlockProps.save({className:a}),s=ot.useInnerBlocksProps.save(i);return(0,Je.jsx)("ul",{...s})},deprecated:dC},_C=()=>Xe({name:xC,metadata:hC,settings:bC}),yC=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})}),vC=[{attributes:{height:{type:"number",default:100},width:{type:"number"}},migrate(e){const{height:t,width:o}=e;return{...e,width:void 0!==o?`${o}px`:void 0,height:void 0!==t?`${t}px`:void 0}},save:({attributes:e})=>(0,Je.jsx)("div",{...ot.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}],fC=vC,kC=0,{useSpacingSizes:wC}=Ht(ot.privateApis);function CC({label:e,onChange:t,isResizing:o,value:n=""}){const r=(0,Ut.useInstanceId)(et.__experimentalUnitControl,"block-spacer-height-input"),a=wC(),[i]=(0,ot.useSettings)("spacing.units"),s=i?i.filter((e=>"%"!==e)):["px","em","rem","vw","vh"],l=(0,et.__experimentalUseCustomUnits)({availableUnits:s,defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),c=e=>{t(e.all)},[u,d]=(0,et.__experimentalParseQuantityAndUnitFromRawValue)(n),p=(0,ot.isValueSpacingPreset)(n)?n:[u,o?"px":d].join("");return(0,Je.jsxs)(Je.Fragment,{children:[(!a||0===a?.length)&&(0,Je.jsx)(et.BaseControl,{label:e,id:r,children:(0,Je.jsx)(et.__experimentalUnitControl,{id:r,isResetValueOnUnitChange:!0,min:kC,onChange:c,style:{maxWidth:80},value:p,units:l})}),a?.length>0&&(0,Je.jsx)(Ke.View,{className:"tools-panel-item-spacing",children:(0,Je.jsx)(ot.__experimentalSpacingSizesControl,{values:{all:p},onChange:c,label:e,sides:["all"],units:l,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})})]})}function jC({setAttributes:e,orientation:t,height:o,width:n,isResizing:r}){return(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:["horizontal"===t&&(0,Je.jsx)(CC,{label:(0,tt.__)("Width"),value:n,onChange:t=>e({width:t}),isResizing:r}),"horizontal"!==t&&(0,Je.jsx)(CC,{label:(0,tt.__)("Height"),value:o,onChange:t=>e({height:t}),isResizing:r})]})})}const{useSpacingSizes:SC}=Ht(ot.privateApis),BC=({orientation:e,onResizeStart:t,onResize:o,onResizeStop:n,isSelected:r,isResizing:a,setIsResizing:i,...s})=>{const l=t=>"horizontal"===e?t.clientWidth:t.clientHeight,c=e=>`${l(e)}px`;return(0,Je.jsx)(et.ResizableBox,{className:dt("block-library-spacer__resize-container",{"resize-horizontal":"horizontal"===e,"is-resizing":a,"is-selected":r}),onResizeStart:(e,n,r)=>{const a=c(r);t(a),o(a)},onResize:(e,t,n)=>{o(c(n)),a||i(!0)},onResizeStop:(e,t,o)=>{const r=l(o);n(`${r}px`),i(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"horizontal"===e?"x":"y",position:"corner",isVisible:a},showHandle:r,...s})},NC=({attributes:e,isSelected:t,setAttributes:o,toggleSelection:n,context:r,__unstableParentLayout:a,className:i})=>{const s=(0,gt.useSelect)((e=>{const t=e(ot.store).getSettings();return t?.disableCustomSpacingSizes})),{orientation:l}=r,{orientation:c,type:u,default:{type:d}={}}=a||{},p="flex"===u||!u&&"flex"===d,m=!c&&p?"horizontal":c||l,{height:g,width:h,style:x={}}=e,{layout:b={}}=x,{selfStretch:_,flexSize:y}=b,v=SC(),[f,k]=(0,bt.useState)(!1),[w,C]=(0,bt.useState)(null),[j,S]=(0,bt.useState)(null),B=()=>n(!1),N=()=>n(!0),T=e=>{N(),p&&o({style:{...x,layout:{...b,flexSize:e,selfStretch:"fixed"}}}),o({height:e}),C(null)},I=e=>{N(),p&&o({style:{...x,layout:{...b,flexSize:e,selfStretch:"fixed"}}}),o({width:e}),S(null)},P="horizontal"===m?j||y:w||y,M={height:"horizontal"===m?24:(()=>{if(!p)return w||(0,ot.getSpacingPresetCssVar)(g)||void 0})(),width:"horizontal"===m?(()=>{if(!p)return j||(0,ot.getSpacingPresetCssVar)(h)||void 0})():void 0,minWidth:"vertical"===m&&p?48:void 0,flexBasis:p?P:void 0,flexGrow:p&&f?0:void 0};return(0,bt.useEffect)((()=>{if(p&&"fill"!==_&&"fit"!==_&&!y)if("horizontal"===m){const e=(0,ot.getCustomValueFromPreset)(h,v)||(0,ot.getCustomValueFromPreset)(g,v)||"100px";o({width:"0px",style:{...x,layout:{...b,flexSize:e,selfStretch:"fixed"}}})}else{const e=(0,ot.getCustomValueFromPreset)(g,v)||(0,ot.getCustomValueFromPreset)(h,v)||"100px";o({height:"0px",style:{...x,layout:{...b,flexSize:e,selfStretch:"fixed"}}})}else!p||"fill"!==_&&"fit"!==_?p||!_&&!y||(o("horizontal"===m?{width:y}:{height:y}),o({style:{...x,layout:{...b,flexSize:void 0,selfStretch:void 0}}})):o("horizontal"===m?{width:void 0}:{height:void 0})}),[x,y,g,m,p,b,_,o,v,h]),(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Ke.View,{...(0,ot.useBlockProps)({style:M,className:dt(i,{"custom-sizes-disabled":s})}),children:(z=m,"horizontal"===z?(0,Je.jsx)(BC,{minWidth:kC,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:z,onResizeStart:B,onResize:S,onResizeStop:I,isSelected:t,isResizing:f,setIsResizing:k}):(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(BC,{minHeight:kC,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:z,onResizeStart:B,onResize:C,onResizeStop:T,isSelected:t,isResizing:f,setIsResizing:k})}))}),!p&&(0,Je.jsx)(jC,{setAttributes:o,height:w||g,width:j||h,orientation:m,isResizing:f})]});var z};const TC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/spacer",title:"Spacer",category:"design",description:"Add white space between blocks and customize its height.",textdomain:"default",attributes:{height:{type:"string",default:"100px"},width:{type:"string"}},usesContext:["orientation"],supports:{anchor:!0,spacing:{margin:["top","bottom"],__experimentalDefaultControls:{margin:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-spacer-editor",style:"wp-block-spacer"},{name:IC}=TC,PC={icon:yC,edit:NC,save:function({attributes:e}){const{height:t,width:o,style:n}=e,{layout:{selfStretch:r}={}}=n||{},a="fill"===r||"fit"===r?void 0:t;return(0,Je.jsx)("div",{...ot.useBlockProps.save({style:{height:(0,ot.getSpacingPresetCssVar)(a),width:(0,ot.getSpacingPresetCssVar)(o)},"aria-hidden":!0})})},deprecated:fC},MC=()=>Xe({name:IC,metadata:TC,settings:PC}),zC=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.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"})}),RC={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},AC={content:{type:"rich-text",source:"rich-text"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}},LC={attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"rich-text",source:"rich-text",selector:"figcaption"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:AC}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:AC}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:AC}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table",interactivity:{clientNavigation:!0}},save({attributes:e}){const{hasFixedLayout:t,head:o,body:n,foot:r,caption:a}=e;if(!o.length&&!n.length&&!r.length)return null;const i=(0,ot.__experimentalGetColorClassesAndStyles)(e),s=(0,ot.__experimentalGetBorderClassesAndStyles)(e),l=dt(i.className,s.className,{"has-fixed-layout":t}),c=!ot.RichText.isEmpty(a),u=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,Je.jsx)(o,{children:t.map((({cells:e},t)=>(0,Je.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o,align:n,colspan:r,rowspan:a},i)=>{const s=dt({[`has-text-align-${n}`]:n});return(0,Je.jsx)(ot.RichText.Content,{className:s||void 0,"data-align":n,tagName:t,value:e,scope:"th"===t?o:void 0,colSpan:r,rowSpan:a},i)}))},t)))})};return(0,Je.jsxs)("figure",{...ot.useBlockProps.save(),children:[(0,Je.jsxs)("table",{className:""===l?void 0:l,style:{...i.style,...s.style},children:[(0,Je.jsx)(u,{type:"head",rows:o}),(0,Je.jsx)(u,{type:"body",rows:n}),(0,Je.jsx)(u,{type:"foot",rows:r})]}),c&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",value:a,className:(0,ot.__experimentalGetElementClassName)("caption")})]})}},HC={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"}},DC={attributes:{hasFixedLayout:{type:"boolean",default:!1},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:HC}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:HC}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:HC}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table"},save({attributes:e}){const{hasFixedLayout:t,head:o,body:n,foot:r,caption:a}=e;if(!o.length&&!n.length&&!r.length)return null;const i=(0,ot.__experimentalGetColorClassesAndStyles)(e),s=(0,ot.__experimentalGetBorderClassesAndStyles)(e),l=dt(i.className,s.className,{"has-fixed-layout":t}),c=!ot.RichText.isEmpty(a),u=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,Je.jsx)(o,{children:t.map((({cells:e},t)=>(0,Je.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o,align:n},r)=>{const a=dt({[`has-text-align-${n}`]:n});return(0,Je.jsx)(ot.RichText.Content,{className:a||void 0,"data-align":n,tagName:t,value:e,scope:"th"===t?o:void 0},r)}))},t)))})};return(0,Je.jsxs)("figure",{...ot.useBlockProps.save(),children:[(0,Je.jsxs)("table",{className:""===l?void 0:l,style:{...i.style,...s.style},children:[(0,Je.jsx)(u,{type:"head",rows:o}),(0,Je.jsx)(u,{type:"body",rows:n}),(0,Je.jsx)(u,{type:"foot",rows:r})]}),c&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",value:a})]})}},FC={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"}},VC={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:FC}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:FC}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:FC}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{const{hasFixedLayout:t,head:o,body:n,foot:r,backgroundColor:a,caption:i}=e;if(!o.length&&!n.length&&!r.length)return null;const s=(0,ot.getColorClassName)("background-color",a),l=dt(s,{"has-fixed-layout":t,"has-background":!!s}),c=!ot.RichText.isEmpty(i),u=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,Je.jsx)(o,{children:t.map((({cells:e},t)=>(0,Je.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o,align:n},r)=>{const a=dt({[`has-text-align-${n}`]:n});return(0,Je.jsx)(ot.RichText.Content,{className:a||void 0,"data-align":n,tagName:t,value:e,scope:"th"===t?o:void 0},r)}))},t)))})};return(0,Je.jsxs)("figure",{...ot.useBlockProps.save(),children:[(0,Je.jsxs)("table",{className:""===l?void 0:l,children:[(0,Je.jsx)(u,{type:"head",rows:o}),(0,Je.jsx)(u,{type:"body",rows:n}),(0,Je.jsx)(u,{type:"foot",rows:r})]}),c&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",value:i})]})},isEligible:e=>e.backgroundColor&&e.backgroundColor in RC&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:RC[e.backgroundColor]}}})},EC={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}},$C={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:EC}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:EC}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:EC}}}},supports:{align:!0},save({attributes:e}){const{hasFixedLayout:t,head:o,body:n,foot:r,backgroundColor:a}=e;if(!o.length&&!n.length&&!r.length)return null;const i=(0,ot.getColorClassName)("background-color",a),s=dt(i,{"has-fixed-layout":t,"has-background":!!i}),l=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,Je.jsx)(o,{children:t.map((({cells:e},t)=>(0,Je.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o},n)=>(0,Je.jsx)(ot.RichText.Content,{tagName:t,value:e,scope:"th"===t?o:void 0},n)))},t)))})};return(0,Je.jsxs)("table",{className:s,children:[(0,Je.jsx)(l,{type:"head",rows:o}),(0,Je.jsx)(l,{type:"body",rows:n}),(0,Je.jsx)(l,{type:"foot",rows:r})]})}},GC=[LC,DC,VC,$C],OC=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})}),UC=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})}),qC=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})}),WC=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,Je.jsx)(Ke.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"})}),ZC=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,Je.jsx)(Ke.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"})}),QC=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,Je.jsx)(Ke.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"})}),KC=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,Je.jsx)(Ke.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"})}),JC=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,Je.jsx)(Ke.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"})}),YC=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,Je.jsx)(Ke.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"})}),XC=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"})}),ej=["align"];function tj(e,t,o){if(!t)return e;const n=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e)))),{sectionName:r,rowIndex:a}=t;return Object.fromEntries(Object.entries(n).map((([e,n])=>r&&r!==e?[e,n]:[e,n.map(((n,r)=>a&&a!==r?n:{cells:n.cells.map(((n,a)=>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:e,columnIndex:a,rowIndex:r},t)?o(n):n))}))])))}function oj(e,{sectionName:t,rowIndex:o,columnCount:n}){const r=function(e){return rj(e.head)?rj(e.body)?rj(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),a=void 0===n?r?.cells?.length:n;return a?{[t]:[...e[t].slice(0,o),{cells:Array.from({length:a}).map(((e,o)=>{var n;const a=null!==(n=r?.cells?.[o])&&void 0!==n?n:{};return{...Object.fromEntries(Object.entries(a).filter((([e])=>ej.includes(e)))),content:"",tag:"head"===t?"th":"td"}}))},...e[t].slice(o)]}:e}function nj(e,t){var o;if(!rj(e[t]))return{[t]:[]};return oj(e,{sectionName:t,rowIndex:0,columnCount:null!==(o=e.body?.[0]?.cells?.length)&&void 0!==o?o:1})}function rj(e){return!e||!e.length||e.every(aj)}function aj(e){return!(e.cells&&e.cells.length)}const ij=[{icon:OC,title:(0,tt.__)("Align column left"),align:"left"},{icon:UC,title:(0,tt.__)("Align column center"),align:"center"},{icon:qC,title:(0,tt.__)("Align column right"),align:"right"}],sj={head:(0,tt.__)("Header cell text"),body:(0,tt.__)("Body cell text"),foot:(0,tt.__)("Footer cell text")},lj={head:(0,tt.__)("Header label"),foot:(0,tt.__)("Footer label")};function cj({name:e,...t}){const o=`t${e}`;return(0,Je.jsx)(o,{...t})}const uj=function({attributes:e,setAttributes:t,insertBlocksAfter:o,isSelected:n}){const{hasFixedLayout:r,caption:a,head:i,foot:s}=e,[l,c]=(0,bt.useState)(2),[u,d]=(0,bt.useState)(2),[p,m]=(0,bt.useState)(),g=(0,ot.__experimentalUseColorProps)(e),h=(0,ot.__experimentalUseBorderProps)(e),x=(0,bt.useRef)(),[b,_]=(0,bt.useState)(!1);function y(o){p&&t(tj(e,p,(e=>({...e,content:o}))))}function v(o){if(!p)return;const{sectionName:n,rowIndex:r}=p,a=r+o;t(oj(e,{sectionName:n,rowIndex:a})),m({sectionName:n,rowIndex:a,columnIndex:0,type:"cell"})}function f(o=0){if(!p)return;const{columnIndex:n}=p,r=n+o;t(function(e,{columnIndex:t}){const o=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e))));return Object.fromEntries(Object.entries(o).map((([e,o])=>rj(o)?[e,o]:[e,o.map((o=>aj(o)||o.cells.length<t?o:{cells:[...o.cells.slice(0,t),{content:"",tag:"head"===e?"th":"td"},...o.cells.slice(t)]}))])))}(e,{columnIndex:r})),m({rowIndex:0,columnIndex:r,type:"cell"})}(0,bt.useEffect)((()=>{n||m()}),[n]),(0,bt.useEffect)((()=>{b&&(x?.current?.querySelector('td div[contentEditable="true"]')?.focus(),_(!1))}),[b]);const k=["head","body","foot"].filter((t=>!rj(e[t]))),w=[{icon:WC,title:(0,tt.__)("Insert row before"),isDisabled:!p,onClick:function(){v(0)}},{icon:ZC,title:(0,tt.__)("Insert row after"),isDisabled:!p,onClick:function(){v(1)}},{icon:QC,title:(0,tt.__)("Delete row"),isDisabled:!p,onClick:function(){if(!p)return;const{sectionName:o,rowIndex:n}=p;m(),t(function(e,{sectionName:t,rowIndex:o}){return{[t]:e[t].filter(((e,t)=>t!==o))}}(e,{sectionName:o,rowIndex:n}))}},{icon:KC,title:(0,tt.__)("Insert column before"),isDisabled:!p,onClick:function(){f(0)}},{icon:JC,title:(0,tt.__)("Insert column after"),isDisabled:!p,onClick:function(){f(1)}},{icon:YC,title:(0,tt.__)("Delete column"),isDisabled:!p,onClick:function(){if(!p)return;const{sectionName:o,columnIndex:n}=p;m(),t(function(e,{columnIndex:t}){const o=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e))));return Object.fromEntries(Object.entries(o).map((([e,o])=>rj(o)?[e,o]:[e,o.map((e=>({cells:e.cells.length>=t?e.cells.filter(((e,o)=>o!==t)):e.cells}))).filter((e=>e.cells.length))])))}(e,{sectionName:o,columnIndex:n}))}}],C=k.map((t=>(0,Je.jsx)(cj,{name:t,children:e[t].map((({cells:e},o)=>(0,Je.jsx)("tr",{children:e.map((({content:e,tag:n,scope:r,align:a,colspan:i,rowspan:s},l)=>(0,Je.jsx)(n,{scope:"th"===n?r:void 0,colSpan:i,rowSpan:s,className:dt({[`has-text-align-${a}`]:a},"wp-block-table__cell-content"),children:(0,Je.jsx)(ot.RichText,{value:e,onChange:y,onFocus:()=>{m({sectionName:t,rowIndex:o,columnIndex:l,type:"cell"})},"aria-label":sj[t],placeholder:lj[t]})},l)))},o)))},t))),j=!k.length;return(0,Je.jsxs)("figure",{...(0,ot.useBlockProps)({ref:x}),children:[!j&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{group:"block",children:(0,Je.jsx)(ot.AlignmentControl,{label:(0,tt.__)("Change column alignment"),alignmentControls:ij,value:function(){if(p)return function(e,t,o){const{sectionName:n,rowIndex:r,columnIndex:a}=t;return e[n]?.[r]?.cells?.[a]?.[o]}(e,p,"align")}(),onChange:o=>function(o){if(!p)return;const n={type:"column",columnIndex:p.columnIndex},r=tj(e,n,(e=>({...e,align:o})));t(r)}(o)})}),(0,Je.jsx)(ot.BlockControls,{group:"other",children:(0,Je.jsx)(et.ToolbarDropdownMenu,{hasArrowIndicator:!0,icon:XC,label:(0,tt.__)("Edit table"),controls:w})})]}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),className:"blocks-table-settings",children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Fixed width table cells"),checked:!!r,onChange:function(){t({hasFixedLayout:!r})}}),!j&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Header section"),checked:!(!i||!i.length),onChange:function(){t(nj(e,"head"))}}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Footer section"),checked:!(!s||!s.length),onChange:function(){t(nj(e,"foot"))}})]})]})}),!j&&(0,Je.jsx)("table",{className:dt(g.className,h.className,{"has-fixed-layout":r,"has-individual-borders":(0,et.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...g.style,...h.style},children:C}),!j&&(0,Je.jsx)(ot.RichText,{identifier:"caption",tagName:"figcaption",className:(0,ot.__experimentalGetElementClassName)("caption"),"aria-label":(0,tt.__)("Table caption text"),placeholder:(0,tt.__)("Add caption"),value:a,onChange:e=>t({caption:e}),onFocus:()=>m(),__unstableOnSplitAtEnd:()=>o((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))}),j&&(0,Je.jsx)(et.Placeholder,{label:(0,tt.__)("Table"),icon:(0,Je.jsx)(ot.BlockIcon,{icon:zC,showColors:!0}),instructions:(0,tt.__)("Insert a table for sharing data."),children:(0,Je.jsxs)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){e.preventDefault(),t(function({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map((()=>({cells:Array.from({length:t}).map((()=>({content:"",tag:"td"})))})))}}({rowCount:parseInt(l,10)||2,columnCount:parseInt(u,10)||2})),_(!0)},children:[(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,type:"number",label:(0,tt.__)("Column count"),value:u,onChange:function(e){d(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,type:"number",label:(0,tt.__)("Row count"),value:l,onChange:function(e){c(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,Je.jsx)(et.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,tt.__)("Create Table")})]})})]})};function dj(e){const t=parseInt(e,10);if(Number.isInteger(t))return t<0||1===t?void 0:t.toString()}const pj=({phrasingContentSchema:e})=>({tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:e,attributes:["scope","colspan","rowspan"]},td:{allowEmpty:!0,children:e,attributes:["colspan","rowspan"]}}}}),mj={from:[{type:"raw",selector:"table",schema:e=>({table:{children:{thead:{allowEmpty:!0,children:pj(e)},tfoot:{allowEmpty:!0,children:pj(e)},tbody:{allowEmpty:!0,children:pj(e)}}}}),transform:e=>{const t=Array.from(e.children).reduce(((e,t)=>{if(!t.children.length)return e;const o=t.nodeName.toLowerCase().slice(1),n=Array.from(t.children).reduce(((e,t)=>{if(!t.children.length)return e;const o=Array.from(t.children).reduce(((e,t)=>{const o=dj(t.getAttribute("rowspan")),n=dj(t.getAttribute("colspan"));return e.push({tag:t.nodeName.toLowerCase(),content:t.innerHTML,rowspan:o,colspan:n}),e}),[]);return e.push({cells:o}),e}),[]);return e[o]=n,e}),{});return(0,Qe.createBlock)("core/table",t)}}]},gj=mj,hj={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/table",title:"Table",category:"text",description:"Create structured content in rows and columns to display information.",textdomain:"default",attributes:{hasFixedLayout:{type:"boolean",default:!0},caption:{type:"rich-text",source:"rich-text",selector:"figcaption"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table",interactivity:{clientNavigation:!0}},styles:[{name:"regular",label:"Default",isDefault:!0},{name:"stripes",label:"Stripes"}],editorStyle:"wp-block-table-editor",style:"wp-block-table"},{name:xj}=hj,bj={icon:zC,example:{attributes:{head:[{cells:[{content:(0,tt.__)("Version"),tag:"th"},{content:(0,tt.__)("Jazz Musician"),tag:"th"},{content:(0,tt.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:(0,tt.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:(0,tt.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:(0,tt.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:gj,edit:uj,save:function({attributes:e}){const{hasFixedLayout:t,head:o,body:n,foot:r,caption:a}=e;if(!o.length&&!n.length&&!r.length)return null;const i=(0,ot.__experimentalGetColorClassesAndStyles)(e),s=(0,ot.__experimentalGetBorderClassesAndStyles)(e),l=dt(i.className,s.className,{"has-fixed-layout":t}),c=!ot.RichText.isEmpty(a),u=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,Je.jsx)(o,{children:t.map((({cells:e},t)=>(0,Je.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o,align:n,colspan:r,rowspan:a},i)=>{const s=dt({[`has-text-align-${n}`]:n});return(0,Je.jsx)(ot.RichText.Content,{className:s||void 0,"data-align":n,tagName:t,value:e,scope:"th"===t?o:void 0,colSpan:r,rowSpan:a},i)}))},t)))})};return(0,Je.jsxs)("figure",{...ot.useBlockProps.save(),children:[(0,Je.jsxs)("table",{className:""===l?void 0:l,style:{...i.style,...s.style},children:[(0,Je.jsx)(u,{type:"head",rows:o}),(0,Je.jsx)(u,{type:"body",rows:n}),(0,Je.jsx)(u,{type:"foot",rows:r})]}),c&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",value:a,className:(0,ot.__experimentalGetElementClassName)("caption")})]})},deprecated:GC},_j=()=>Xe({name:xj,metadata:hj,settings:bj}),yj=(0,Je.jsxs)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Je.jsx)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 9.484h-8.889v-1.5H20v1.5Zm0 7h-4.889v-1.5H20v1.5Zm-14 .032a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),(0,Je.jsx)(Ke.Path,{d:"M13 15.516a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 8.484a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})]}),vj="wp-block-table-of-contents__entry";function fj({nestedHeadingList:e,disableLinkActivation:t,onClick:o}){return(0,Je.jsx)(Je.Fragment,{children:e.map(((e,n)=>{const{content:r,link:a}=e.heading,i=a?(0,Je.jsx)("a",{className:vj,href:a,"aria-disabled":t||void 0,onClick:t&&"function"==typeof o?o:void 0,children:r}):(0,Je.jsx)("span",{className:vj,children:r});return(0,Je.jsxs)("li",{children:[i,e.children?(0,Je.jsx)("ol",{children:(0,Je.jsx)(fj,{nestedHeadingList:e.children,disableLinkActivation:t,onClick:t&&"function"==typeof o?o:void 0})}):null]},n)}))})}function kj(e){const t=[];return e.forEach(((o,n)=>{if(""!==o.content&&o.level===e[0].level)if(e[n+1]?.level>o.level){let r=e.length;for(let t=n+1;t<e.length;t++)if(e[t].level===o.level){r=t;break}t.push({heading:o,children:kj(e.slice(n+1,r))})}else t.push({heading:o,children:null})})),t}var wj=o(7734),Cj=o.n(wj);function jj(e,t,o){const{getBlockAttributes:n}=e(ot.store),{updateBlockAttributes:r,__unstableMarkNextChangeAsNotPersistent:a}=t(ot.store),i=n(o);if(null===i)return;const s=function(e,t){var o,n;const{getBlockAttributes:r,getBlockName:a,getClientIdsWithDescendants:i,getBlocksByName:s}=e(ot.store),l=null!==(o=e("core/editor").getPermalink())&&void 0!==o?o:null,c=0!==s("core/nextpage").length,{onlyIncludeCurrentPage:u}=null!==(n=r(t))&&void 0!==n?n:{},d=i();let p=1;if(c&&u){const e=d.indexOf(t);for(const[t,o]of d.entries()){if(t>=e)break;"core/nextpage"===a(o)&&p++}}const m=[];let g=1,h=null;"string"==typeof l&&(h=c?(0,pt.addQueryArgs)(l,{page:g}):l);for(const e of d){const t=a(e);if("core/nextpage"===t){if(g++,u&&g>p)break;"string"==typeof l&&(h=(0,pt.addQueryArgs)((0,pt.removeQueryArgs)(l,["page"]),{page:g}))}else if((!u||g===p)&&"core/heading"===t){const t=r(e),o="string"==typeof h&&"string"==typeof t.anchor&&""!==t.anchor;m.push({content:(0,sc.__unstableStripHTML)(t.content.replace(/(<br *\/?>)+/g," ")),level:t.level,link:o?`${h}#${t.anchor}`:null})}}return m}(e,o);Cj()(s,i.headings)||(a(),r(o,{headings:s}))}const Sj={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/table-of-contents",title:"Table of Contents",category:"layout",description:"Summarize your post with a list of headings. Add HTML anchors to Heading blocks to link them here.",keywords:["document outline","summary"],textdomain:"default",attributes:{headings:{type:"array",items:{type:"object"},default:[]},onlyIncludeCurrentPage:{type:"boolean",default:!1}},supports:{html:!1,color:{text:!0,background:!0,gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},example:{}},{name:Bj}=Sj,Nj={icon:yj,edit:function e({attributes:{headings:t=[],onlyIncludeCurrentPage:o},clientId:n,setAttributes:r}){!function(e){const t=(0,gt.useRegistry)();(0,bt.useEffect)((()=>t.subscribe((()=>jj(t.select,t.dispatch,e)))),[t,e])}(n);const a=(0,ot.useBlockProps)(),i=(0,Ut.useInstanceId)(e,"table-of-contents"),{createWarningNotice:s,removeNotice:l}=(0,gt.useDispatch)(Pt.store);let c;const u=(0,gt.useSelect)((e=>{const{getBlockRootClientId:t,canInsertBlockType:o}=e(ot.store);return o("core/list",t(n))}),[n]),{replaceBlocks:d}=(0,gt.useDispatch)(ot.store),p=kj(t),m=u&&(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(et.ToolbarGroup,{children:(0,Je.jsx)(et.ToolbarButton,{onClick:()=>d(n,(0,Qe.createBlock)("core/list",{ordered:!0,values:(0,bt.renderToString)((0,Je.jsx)(fj,{nestedHeadingList:p}))})),children:(0,tt.__)("Convert to static list")})})}),g=(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(et.PanelBody,{title:(0,tt.__)("Settings"),children:(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Only include current page"),checked:o,onChange:e=>r({onlyIncludeCurrentPage:e}),help:o?(0,tt.__)("Only including headings from the current page (if the post is paginated)."):(0,tt.__)("Toggle to only include headings from the current page (if the post is paginated).")})})});return 0===t.length?(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("div",{...a,children:(0,Je.jsx)(et.Placeholder,{icon:(0,Je.jsx)(ot.BlockIcon,{icon:yj}),label:(0,tt.__)("Table of Contents"),instructions:(0,tt.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})}),g]}):(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("nav",{...a,children:(0,Je.jsx)("ol",{children:(0,Je.jsx)(fj,{nestedHeadingList:p,disableLinkActivation:!0,onClick:e=>{e.preventDefault(),l(c),c=`block-library/core/table-of-contents/redirection-prevented/${i}`,s((0,tt.__)("Links are disabled in the editor."),{id:c,type:"snackbar"})}})})}),m,g]})},save:function({attributes:{headings:e=[]}}){return 0===e.length?null:(0,Je.jsx)("nav",{...ot.useBlockProps.save(),children:(0,Je.jsx)("ol",{children:(0,Je.jsx)(fj,{nestedHeadingList:kj(e)})})})}},Tj=()=>Xe({name:Bj,metadata:Sj,settings:Nj}),Ij={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,Qe.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,Qe.createBlock)("core/categories")}]};const Pj=function({attributes:e,setAttributes:t}){const{taxonomy:o,showTagCounts:n,numberOfTags:r,smallestFontSize:a,largestFontSize:i}=e,[s]=(0,ot.useSettings)("spacing.units"),l=(0,et.__experimentalUseCustomUnits)({availableUnits:s||["%","px","em","rem"]}),c=(0,gt.useSelect)((e=>e(mt.store).getTaxonomies({per_page:-1})),[]),u=(e,o)=>{const[n,r]=(0,et.__experimentalParseQuantityAndUnitFromRawValue)(o);if(!Number.isFinite(n))return;const s={[e]:o};Object.entries({smallestFontSize:a,largestFontSize:i}).forEach((([t,o])=>{const[n,a]=(0,et.__experimentalParseQuantityAndUnitFromRawValue)(o);t!==e&&a!==r&&(s[t]=`${n}${r}`)})),t(s)},d=(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Taxonomy"),options:[{label:(0,tt.__)("- Select -"),value:"",disabled:!0},...(null!=c?c:[]).filter((e=>!!e.show_cloud)).map((e=>({value:e.slug,label:e.name})))],value:o,onChange:e=>t({taxonomy:e})}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show post counts"),checked:n,onChange:()=>t({showTagCounts:!n})}),(0,Je.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Number of tags"),value:r,onChange:e=>t({numberOfTags:e}),min:1,max:100,required:!0}),(0,Je.jsxs)(et.Flex,{children:[(0,Je.jsx)(et.FlexItem,{isBlock:!0,children:(0,Je.jsx)(et.__experimentalUnitControl,{label:(0,tt.__)("Smallest size"),value:a,onChange:e=>{u("smallestFontSize",e)},units:l,min:.1,max:100})}),(0,Je.jsx)(et.FlexItem,{isBlock:!0,children:(0,Je.jsx)(et.__experimentalUnitControl,{label:(0,tt.__)("Largest size"),value:i,onChange:e=>{u("largestFontSize",e)},units:l,min:.1,max:100})})]})]})});return(0,Je.jsxs)(Je.Fragment,{children:[d,(0,Je.jsx)("div",{...(0,ot.useBlockProps)(),children:(0,Je.jsx)(et.Disabled,{children:(0,Je.jsx)(rt(),{skipBlockSupportAttributes:!0,block:"core/tag-cloud",attributes:e})})})]})},Mj={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/tag-cloud",title:"Tag Cloud",category:"widgets",description:"A cloud of your most used tags.",textdomain:"default",attributes:{numberOfTags:{type:"number",default:45,minimum:1,maximum:100},taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1},smallestFontSize:{type:"string",default:"8pt"},largestFontSize:{type:"string",default:"22pt"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"outline",label:"Outline"}],supports:{html:!1,align:!0,spacing:{margin:!0,padding:!0},typography:{lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-tag-cloud-editor"},{name:zj}=Mj,Rj={icon:dx,example:{},edit:Pj,transforms:Ij},Aj=()=>Xe({name:zj,metadata:Mj,settings:Rj});var Lj=function(){return Lj=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Lj.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function Hj(e){return e.toLowerCase()}var Dj=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Fj=/[^A-Z0-9]+/gi;function Vj(e,t){void 0===t&&(t={});for(var o=t.splitRegexp,n=void 0===o?Dj:o,r=t.stripRegexp,a=void 0===r?Fj:r,i=t.transform,s=void 0===i?Hj:i,l=t.delimiter,c=void 0===l?" ":l,u=Ej(Ej(e,n,"$1\0$2"),a,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(s).join(c)}function Ej(e,t,o){return t instanceof RegExp?e.replace(t,o):t.reduce((function(e,t){return e.replace(t,o)}),e)}function $j(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}const Gj=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})});function Oj(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),Vj(e,Lj({delimiter:"."},t))}(e,Lj({delimiter:"-"},t))}function Uj(e,t){const{templateParts:o,isResolving:n}=(0,gt.useSelect)((e=>{const{getEntityRecords:t,isResolving:o}=e(mt.store),n={per_page:-1};return{templateParts:t("postType","wp_template_part",n),isResolving:o("getEntityRecords",["postType","wp_template_part",n])}}),[]);return{templateParts:(0,bt.useMemo)((()=>o&&o.filter((o=>lh(o.theme,o.slug)!==t&&(!e||"uncategorized"===e||o.area===e)))||[]),[o,e,t]),isResolving:n}}function qj(e,t){return(0,gt.useSelect)((o=>{const n=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:r,getPatternsByBlockTypes:a}=o(ot.store);return a(n,r(t))}),[e,t])}function Wj(e,t){const{saveEntityRecord:o}=(0,gt.useDispatch)(mt.store);return async(n=[],r=(0,tt.__)("Untitled Template Part"))=>{const a={title:r,slug:Oj(r).replace(/[^\w-]+/g,"")||"wp-custom-part",content:(0,Qe.serialize)(n),area:e},i=await o("postType","wp_template_part",a);t({slug:i.slug,theme:i.theme,area:void 0})}}function Zj(e){return(0,gt.useSelect)((t=>{var o;const n=t("core/editor").__experimentalGetDefaultTemplatePartAreas(),r=n.find((t=>t.area===e)),a=n.find((e=>"uncategorized"===e.area));return{icon:r?.icon||a?.icon,label:r?.label||(0,tt.__)("Template Part"),tagName:null!==(o=r?.area_tag)&&void 0!==o?o:"div"}}),[e])}function Qj({areaLabel:e,onClose:t,onSubmit:o}){const[n,r]=(0,bt.useState)((0,tt.__)("Untitled Template Part"));return(0,Je.jsx)(et.Modal,{title:(0,tt.sprintf)((0,tt.__)("Name and create your new %s"),e.toLowerCase()),overlayClassName:"wp-block-template-part__placeholder-create-new__title-form",onRequestClose:t,children:(0,Je.jsx)("form",{onSubmit:e=>{e.preventDefault(),o(n)},children:(0,Je.jsxs)(et.__experimentalVStack,{spacing:"5",children:[(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Name"),value:n,onChange:r}),(0,Je.jsx)(et.__experimentalHStack,{justify:"right",children:(0,Je.jsx)(et.Button,{variant:"primary",type:"submit",__experimentalIsFocusable:!0,disabled:!n.length,children:(0,tt.__)("Create")})})]})})})}function Kj({area:e,clientId:t,templatePartId:o,onOpenSelectionModal:n,setAttributes:r}){const{templateParts:a,isResolving:i}=Uj(e,o),s=qj(e,t),[l,c]=(0,bt.useState)(!1),u=Zj(e),d=Wj(e,r);return(0,Je.jsxs)(et.Placeholder,{icon:u.icon,label:u.label,instructions:(0,tt.sprintf)((0,tt.__)("Choose an existing %s or create a new one."),u.label.toLowerCase()),children:[i&&(0,Je.jsx)(et.Spinner,{}),!i&&!(!a.length&&!s.length)&&(0,Je.jsx)(et.Button,{variant:"primary",onClick:n,children:(0,tt.__)("Choose")}),!i&&(0,Je.jsx)(et.Button,{variant:"secondary",onClick:()=>{c(!0)},children:(0,tt.__)("Start blank")}),l&&(0,Je.jsx)(Qj,{areaLabel:u.label,onClose:()=>c(!1),onSubmit:e=>{d([],e)}})]})}function Jj({setAttributes:e,onClose:t,templatePartId:o=null,area:n,clientId:r}){const[a,i]=(0,bt.useState)(""),{templateParts:s}=Uj(n,o),l=(0,bt.useMemo)((()=>Qv(s.map((e=>function(e){return{name:lh(e.theme,e.slug),title:e.title.rendered,blocks:(0,Qe.parse)(e.content.raw),templatePart:e}}(e))),a)),[s,a]),c=(0,Ut.useAsyncList)(l),u=qj(n,r),d=(0,bt.useMemo)((()=>Qv(u,a)),[u,a]),{createSuccessNotice:p}=(0,gt.useDispatch)(Pt.store),m=!!l.length,g=!!d.length;return(0,Je.jsxs)("div",{className:"block-library-template-part__selection-content",children:[(0,Je.jsx)("div",{className:"block-library-template-part__selection-search",children:(0,Je.jsx)(et.SearchControl,{__nextHasNoMarginBottom:!0,onChange:i,value:a,label:(0,tt.__)("Search for replacements"),placeholder:(0,tt.__)("Search")})}),m&&(0,Je.jsxs)("div",{children:[(0,Je.jsx)("h2",{children:(0,tt.__)("Existing template parts")}),(0,Je.jsx)(ot.__experimentalBlockPatternsList,{blockPatterns:l,shownPatterns:c,onClickPattern:o=>{var n;n=o.templatePart,e({slug:n.slug,theme:n.theme,area:void 0}),p((0,tt.sprintf)((0,tt.__)('Template Part "%s" inserted.'),n.title?.rendered||n.slug),{type:"snackbar"}),t()}})]}),!m&&!g&&(0,Je.jsx)(et.__experimentalHStack,{alignment:"center",children:(0,Je.jsx)("p",{children:(0,tt.__)("No results found.")})})]})}function Yj(e){const t=(0,Qe.getPossibleBlockTransformations)([e]).filter((e=>{if(!e.transforms)return!0;const t=e.transforms?.from?.find((e=>e.blocks&&e.blocks.includes("*"))),o=e.transforms?.to?.find((e=>e.blocks&&e.blocks.includes("*")));return!t&&!o}));if(t.length)return(0,Qe.switchToBlockType)(e,t[0].name)}function Xj(e=[]){return e.flatMap((e=>"core/legacy-widget"===e.name?Yj(e):(0,Qe.createBlock)(e.name,e.attributes,Xj(e.innerBlocks)))).filter((e=>!!e))}const eS={per_page:-1,_fields:"id,name,description,status,widgets"};function tS({area:e,setAttributes:t}){const[o,n]=(0,bt.useState)(""),[r,a]=(0,bt.useState)(!1),i=(0,gt.useRegistry)(),{sidebars:s,hasResolved:l}=(0,gt.useSelect)((e=>{const{getSidebars:t,hasFinishedResolution:o}=e(mt.store);return{sidebars:t(eS),hasResolved:o("getSidebars",[eS])}}),[]),{createErrorNotice:c}=(0,gt.useDispatch)(Pt.store),u=Wj(e,t),d=(0,bt.useMemo)((()=>{const e=(null!=s?s:[]).filter((e=>"wp_inactive_widgets"!==e.id&&e.widgets.length>0)).map((e=>({value:e.id,label:e.name})));return e.length?[{value:"",label:(0,tt.__)("Select widget area")},...e]:[]}),[s]);if(!l)return(0,Je.jsx)(et.__experimentalSpacer,{marginBottom:"0"});if(l&&!d.length)return null;return(0,Je.jsx)(et.__experimentalSpacer,{marginBottom:"4",children:(0,Je.jsxs)(et.__experimentalHStack,{as:"form",onSubmit:async function(e){if(e.preventDefault(),r||!o)return;a(!0);const t=d.find((({value:e})=>e===o)),{getWidgets:n}=i.resolveSelect(mt.store),s=await n({sidebar:t.value,_embed:"about"}),l=new Set,p=s.flatMap((e=>{const t=function(e){if("block"!==e.id_base){let t;return t=e._embedded.about[0].is_multi?{idBase:e.id_base,instance:e.instance}:{id:e.id},Yj((0,Qe.createBlock)("core/legacy-widget",t))}const t=(0,Qe.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;const o=t[0];return"core/widget-group"===o.name?(0,Qe.createBlock)((0,Qe.getGroupingBlockName)(),void 0,Xj(o.innerBlocks)):o.innerBlocks.length>0?(0,Qe.cloneBlock)(o,void 0,Xj(o.innerBlocks)):o}(e);return t||(l.add(e.id_base),[])}));await u(p,(0,tt.sprintf)((0,tt.__)("Widget area: %s"),t.label)),l.size&&c((0,tt.sprintf)((0,tt.__)("Unable to import the following widgets: %s."),Array.from(l).join(", ")),{type:"snackbar"}),a(!1)},children:[(0,Je.jsx)(et.FlexBlock,{children:(0,Je.jsx)(et.SelectControl,{label:(0,tt.__)("Import widget area"),value:o,options:d,onChange:e=>n(e),disabled:!d.length,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})}),(0,Je.jsx)(et.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"},children:(0,Je.jsx)(et.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:r,"aria-disabled":r||!o,children:(0,tt._x)("Import","button label")})})]})})}const oS={header:(0,tt.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,tt.__)("The <main> element should be used for the primary content of your document only."),section:(0,tt.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,tt.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,tt.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,tt.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};function nS({tagName:e,setAttributes:t,isEntityAvailable:o,templatePartId:n,defaultWrapper:r,hasInnerBlocks:a}){const[i,s]=(0,mt.useEntityProp)("postType","wp_template_part","area",n),[l,c]=(0,mt.useEntityProp)("postType","wp_template_part","title",n),u=(0,gt.useSelect)((e=>e("core/editor").__experimentalGetDefaultTemplatePartAreas()),[]).map((({label:e,area:t})=>({label:e,value:t})));return(0,Je.jsxs)(Je.Fragment,{children:[o&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Title"),value:l,onChange:e=>{c(e)},onFocus:e=>e.target.select()}),(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Area"),labelPosition:"top",options:u,value:i,onChange:s})]}),(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("HTML element"),options:[{label:(0,tt.sprintf)((0,tt.__)("Default based on area (%s)"),`<${r}>`),value:""},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<div>",value:"div"}],value:e||"",onChange:e=>t({tagName:e}),help:oS[e]}),!a&&(0,Je.jsx)(tS,{area:i,setAttributes:t})]})}function rS(e){return"contentOnly"!==(0,ot.useBlockEditingMode)()&&(e?void 0:ot.InnerBlocks.ButtonBlockAppender)}function aS(e){const t=(0,gt.useSelect)((e=>{const{getSettings:t}=e(ot.store);return t()?.supportsLayout}),[]),[o]=(0,ot.useSettings)("layout");if(t)return e?.inherit?o||{}:e}function iS({postId:e,layout:t,tagName:o,blockProps:n}){(0,ot.useBlockEditingMode)("disabled");const{content:r,editedBlocks:a}=(0,gt.useSelect)((t=>{if(!e)return{};const{getEditedEntityRecord:o}=t(mt.store),n=o("postType","wp_template_part",e,{context:"view"});return{editedBlocks:n.blocks,content:n.content}}),[e]),i=(0,bt.useMemo)((()=>{if(e)return a||(r&&"string"==typeof r?(0,Qe.parse)(r):[])}),[e,a,r]),s=(0,ot.useInnerBlocksProps)(n,{value:i,onInput:()=>{},onChange:()=>{},renderAppender:!1,layout:aS(t)});return(0,Je.jsx)(o,{...s})}function sS({postId:e,hasInnerBlocks:t,layout:o,tagName:n,blockProps:r}){const[a,i,s]=(0,mt.useEntityBlockEditor)("postType","wp_template_part",{id:e}),l=(0,ot.useInnerBlocksProps)(r,{value:a,onInput:i,onChange:s,renderAppender:rS(t),layout:aS(o)});return(0,Je.jsx)(n,{...l})}function lS({postId:e,hasInnerBlocks:t,layout:o,tagName:n,blockProps:r}){const{canViewTemplatePart:a,canEditTemplatePart:i}=(0,gt.useSelect)((e=>{var t,o;return{canViewTemplatePart:null!==(t=e(mt.store).canUser("read","templates"))&&void 0!==t&&t,canEditTemplatePart:null!==(o=e(mt.store).canUser("create","templates"))&&void 0!==o&&o}}),[]);if(!a)return null;const s=i?sS:iS;return(0,Je.jsx)(s,{postId:e,hasInnerBlocks:t,layout:o,tagName:n,blockProps:r})}function cS({isEntityAvailable:e,area:t,templatePartId:o,isTemplatePartSelectionOpen:n,setIsTemplatePartSelectionOpen:r}){const{templateParts:a}=Uj(t,o),i=!!a.length;return e&&i&&("header"===t||"footer"===t)?(0,Je.jsx)(et.MenuItem,{onClick:()=>{r(!0)},"aria-expanded":n,"aria-haspopup":"dialog",children:(0,tt.__)("Replace")}):null}function uS({area:e,clientId:t,isEntityAvailable:o,onSelect:n}){const r=qj(e,t),a=o&&!!r.length&&("header"===e||"footer"===e),i=(0,Ut.useAsyncList)(r);return a?(0,Je.jsx)(et.PanelBody,{title:(0,tt.__)("Design"),children:(0,Je.jsx)(ot.__experimentalBlockPatternsList,{label:(0,tt.__)("Templates"),blockPatterns:r,shownPatterns:i,onClickPattern:n,showTitle:!1})}):null}const dS=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),pS=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),mS=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});function gS(e,t){if("core/template-part"!==t)return e;if(e.variations){const t=(e,t)=>{const{area:o,theme:n,slug:r}=e;if(o)return o===t.area;if(!r)return!1;const{getCurrentTheme:a,getEntityRecord:i}=(0,gt.select)(mt.store),s=i("postType","wp_template_part",`${n||a()?.stylesheet}//${r}`);return s?.slug?s.slug===t.slug:s?.area===t.area},o=e.variations.map((e=>{return{...e,...!e.isActive&&{isActive:t},..."string"==typeof e.icon&&{icon:(o=e.icon,"header"===o?dS:"footer"===o?pS:"sidebar"===o?mS:Gj)}};var o}));return{...e,variations:o}}return e}const hS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/template-part",title:"Template Part",category:"theme",description:"Edit the different global regions of your site, like the header, footer, sidebar, or create your own.",textdomain:"default",attributes:{slug:{type:"string"},theme:{type:"string"},tagName:{type:"string"},area:{type:"string"}},supports:{align:!0,html:!1,reusable:!1,renaming:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-template-part-editor"},{name:xS}=hS,bS={icon:Gj,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;const{getCurrentTheme:o,getEditedEntityRecord:n}=(0,gt.select)(mt.store),r=n("postType","wp_template_part",(t||o()?.stylesheet)+"//"+e);return r?(0,Xo.decodeEntities)(r.title)||function(e,t){return void 0===t&&(t={}),Vj(e,Lj({delimiter:" ",transform:$j},t))}(r.slug||""):void 0},edit:function({attributes:e,setAttributes:t,clientId:o}){const{createSuccessNotice:n}=(0,gt.useDispatch)(Pt.store),{editEntityRecord:r}=(0,gt.useDispatch)(mt.store),a=(0,gt.useSelect)((e=>e(mt.store).getCurrentTheme()?.stylesheet),[]),{slug:i,theme:s=a,tagName:l,layout:c={}}=e,u=lh(s,i),d=(0,ot.useHasRecursion)(u),[p,m]=(0,bt.useState)(!1),{isResolved:g,hasInnerBlocks:h,isMissing:x,area:b,onNavigateToEntityRecord:_,title:y,canEditTemplate:v}=(0,gt.useSelect)((t=>{var n;const{getEditedEntityRecord:r,hasFinishedResolution:a}=t(mt.store),{getBlockCount:i,getSettings:s}=t(ot.store),l=["postType","wp_template_part",u],c=u?r(...l):null,d=c?.area||e.area,p=!!u&&a("getEditedEntityRecord",l),m=null!==(n=t(mt.store).canUser("create","templates"))&&void 0!==n&&n;return{hasInnerBlocks:i(o)>0,isResolved:p,isMissing:p&&(!c||0===Object.keys(c).length),area:d,onNavigateToEntityRecord:s().onNavigateToEntityRecord,title:c?.title,canEditTemplate:m}}),[u,e.area,o]),f=Zj(b),k=(0,ot.useBlockProps)(),w=!i,C=!w&&!x&&g,j=l||f.tagName;return!h&&(i&&!s||i&&x)?(0,Je.jsx)(j,{...k,children:(0,Je.jsx)(ot.Warning,{children:(0,tt.sprintf)((0,tt.__)("Template part has been deleted or is unavailable: %s"),i)})}):C&&d?(0,Je.jsx)(j,{...k,children:(0,Je.jsx)(ot.Warning,{children:(0,tt.__)("Block cannot be rendered inside itself.")})}):(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(ot.RecursionProvider,{uniqueId:u,children:[C&&_&&v&&(0,Je.jsx)(ot.BlockControls,{group:"other",children:(0,Je.jsx)(et.ToolbarButton,{onClick:()=>_({postId:u,postType:"wp_template_part"}),children:(0,tt.__)("Edit")})}),(0,Je.jsx)(ot.InspectorControls,{group:"advanced",children:(0,Je.jsx)(nS,{tagName:l,setAttributes:t,isEntityAvailable:C,templatePartId:u,defaultWrapper:f.tagName,hasInnerBlocks:h})}),w&&(0,Je.jsx)(j,{...k,children:(0,Je.jsx)(Kj,{area:e.area,templatePartId:u,clientId:o,setAttributes:t,onOpenSelectionModal:()=>m(!0)})}),(0,Je.jsx)(ot.BlockSettingsMenuControls,{children:({selectedClientIds:e})=>1!==e.length||o!==e[0]?null:(0,Je.jsx)(cS,{isEntityAvailable:C,area:b,clientId:o,templatePartId:u,isTemplatePartSelectionOpen:p,setIsTemplatePartSelectionOpen:m})}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(uS,{area:b,clientId:o,isEntityAvailable:C,onSelect:e=>(async e=>{await r("postType","wp_template_part",u,{blocks:e.blocks,content:(0,Qe.serialize)(e.blocks)}),n((0,tt.sprintf)((0,tt.__)('Template Part "%s" updated.'),y||i),{type:"snackbar"})})(e)})}),C&&(0,Je.jsx)(lS,{tagName:j,blockProps:k,postId:u,hasInnerBlocks:h,layout:c}),!w&&!g&&(0,Je.jsx)(j,{...k,children:(0,Je.jsx)(et.Spinner,{})})]}),p&&(0,Je.jsx)(et.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,tt.sprintf)((0,tt.__)("Choose a %s"),f.label.toLowerCase()),onRequestClose:()=>m(!1),isFullScreen:!0,children:(0,Je.jsx)(Jj,{templatePartId:u,clientId:o,area:b,setAttributes:t,onClose:()=>m(!1)})})]})}},_S=()=>{(0,fs.addFilter)("blocks.registerBlockType","core/template-part",gS);const e=["core/post-template","core/post-content"];return(0,fs.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/removeTemplatePartsFromPostTemplates",((t,o,n,{getBlock:r,getBlockParentsByBlockName:a})=>{if("core/template-part"!==o.name)return t;for(const t of e){if(r(n)?.name===t||a(n,t).length)return!1}return!0})),Xe({name:xS,metadata:hS,settings:bS})},yS=(0,Je.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Ke.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"})});const vS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-description",title:"Term Description",category:"theme",description:"Display the description of categories, tags and custom taxonomies when viewing an archive.",textdomain:"default",attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:fS}=vS,kS={icon:yS,edit:function({attributes:e,setAttributes:t,mergedStyle:o}){const{textAlign:n}=e,r=(0,ot.useBlockProps)({className:dt({[`has-text-align-${n}`]:n}),style:o});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{group:"block",children:(0,Je.jsx)(ot.AlignmentControl,{value:n,onChange:e=>{t({textAlign:e})}})}),(0,Je.jsx)("div",{...r,children:(0,Je.jsx)("div",{className:"wp-block-term-description__placeholder",children:(0,Je.jsx)("span",{children:(0,tt.__)("Term Description")})})})]})}},wS=()=>Xe({name:fS,metadata:vS,settings:kS});const CS={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:o,width:n})=>(0,Qe.createBlock)("core/columns",{align:"wide"===n||"full"===n?n:void 0,className:e,columns:t},o.map((({children:e})=>(0,Qe.createBlock)("core/column",{},[(0,Qe.createBlock)("core/paragraph",{content:e})]))))}]},jS=CS,SS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/text-columns",title:"Text Columns (deprecated)",icon:"columns",category:"design",description:"This block is deprecated. Please use the Columns block instead.",textdomain:"default",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,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-text-columns-editor",style:"wp-block-text-columns"},{name:BS}=SS,NS={transforms:jS,getEditWrapperProps(e){const{width:t}=e;if("wide"===t||"full"===t)return{"data-align":t}},edit:function({attributes:e,setAttributes:t}){const{width:o,content:n,columns:r}=e;return Yp()("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(ot.BlockAlignmentToolbar,{value:o,onChange:e=>t({width:e}),controls:["center","wide","full"]})}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsx)(et.PanelBody,{children:(0,Je.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Columns"),value:r,onChange:e=>t({columns:e}),min:2,max:4,required:!0})})}),(0,Je.jsx)("div",{...(0,ot.useBlockProps)({className:`align${o} columns-${r}`}),children:Array.from({length:r}).map(((e,o)=>(0,Je.jsx)("div",{className:"wp-block-column",children:(0,Je.jsx)(ot.RichText,{tagName:"p",value:n?.[o]?.children,onChange:e=>{t({content:[...n.slice(0,o),{children:e},...n.slice(o+1)]})},"aria-label":(0,tt.sprintf)((0,tt.__)("Column %d text"),o+1),placeholder:(0,tt.__)("New Column")})},`column-${o}`)))})]})},save:function({attributes:e}){const{width:t,content:o,columns:n}=e;return(0,Je.jsx)("div",{...ot.useBlockProps.save({className:`align${t} columns-${n}`}),children:Array.from({length:n}).map(((e,t)=>(0,Je.jsx)("div",{className:"wp-block-column",children:(0,Je.jsx)(ot.RichText.Content,{tagName:"p",value:o?.[t]?.children})},`column-${t}`)))})}},TS=()=>Xe({name:BS,metadata:SS,settings:NS}),IS={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,content:o}=e;return(0,Je.jsx)(ot.RichText.Content,{tagName:"pre",style:{textAlign:t},value:o})}},PS={attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},spacing:{padding:!0}},save({attributes:e}){const{textAlign:t,content:o}=e,n=dt({[`has-text-align-${t}`]:t});return(0,Je.jsx)("pre",{...ot.useBlockProps.save({className:n}),children:(0,Je.jsx)(ot.RichText.Content,{value:o})})},migrate:so,isEligible:({style:e})=>e?.typography?.fontFamily},MS=[PS,IS];const zS={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,Qe.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,Qe.createBlock)("core/paragraph",e)}]},RS=zS,AS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/verse",title:"Verse",category:"text",description:"Insert poetry. Use special spacing formats. Or quote song lyrics.",keywords:["poetry","poem"],textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"pre",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-verse",editorStyle:"wp-block-verse-editor"},{name:LS}=AS,HS={icon:hk,example:{attributes:{content:(0,tt.__)("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.")}},transforms:RS,deprecated:MS,merge:(e,t)=>({content:e.content+"\n\n"+t.content}),edit:function({attributes:e,setAttributes:t,mergeBlocks:o,onRemove:n,insertBlocksAfter:r,style:a}){const{textAlign:i,content:s}=e,l=(0,ot.useBlockProps)({className:dt({[`has-text-align-${i}`]:i}),style:a});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(ot.AlignmentToolbar,{value:i,onChange:e=>{t({textAlign:e})}})}),(0,Je.jsx)(ot.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:s,onChange:e=>{t({content:e})},"aria-label":(0,tt.__)("Verse text"),placeholder:(0,tt.__)("Write verse…"),onRemove:n,onMerge:o,textAlign:i,...l,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>r((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))})]})},save:function({attributes:e}){const{textAlign:t,content:o}=e,n=dt({[`has-text-align-${t}`]:t});return(0,Je.jsx)("pre",{...ot.useBlockProps.save({className:n}),children:(0,Je.jsx)(ot.RichText.Content,{value:o})})}},DS=()=>Xe({name:LS,metadata:AS,settings:HS}),FS=(0,Je.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Ke.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"})});function VS({tracks:e=[]}){return e.map((e=>(0,Je.jsx)("track",{...e},e.src)))}const{attributes:ES}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number",__experimentalRole:"content"},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",__experimentalRole:"content"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{__experimentalRole:"content",type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-video-editor",style:"wp-block-video"},$S={attributes:ES,save({attributes:e}){const{autoplay:t,caption:o,controls:n,loop:r,muted:a,poster:i,preload:s,src:l,playsInline:c,tracks:u}=e;return(0,Je.jsxs)("figure",{...ot.useBlockProps.save(),children:[l&&(0,Je.jsx)("video",{autoPlay:t,controls:n,loop:r,muted:a,poster:i,preload:"metadata"!==s?s:void 0,src:l,playsInline:c,children:(0,Je.jsx)(VS,{tracks:u})}),!ot.RichText.isEmpty(o)&&(0,Je.jsx)(ot.RichText.Content,{tagName:"figcaption",value:o})]})}},GS=[$S],OS=[{value:"auto",label:(0,tt.__)("Auto")},{value:"metadata",label:(0,tt.__)("Metadata")},{value:"none",label:(0,tt._x)("None","Preload value")}],US=({setAttributes:e,attributes:t})=>{const{autoplay:o,controls:n,loop:r,muted:a,playsInline:i,preload:s}=t,l=(0,tt.__)("Autoplay may cause usability issues for some users."),c=bt.Platform.select({web:(0,bt.useCallback)((e=>e?l:null),[]),native:l}),u=(0,bt.useMemo)((()=>{const t=t=>o=>{e({[t]:o})};return{autoplay:t("autoplay"),loop:t("loop"),muted:t("muted"),controls:t("controls"),playsInline:t("playsInline")}}),[]),d=(0,bt.useCallback)((t=>{e({preload:t})}),[]);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Autoplay"),onChange:u.autoplay,checked:!!o,help:c}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Loop"),onChange:u.loop,checked:!!r}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Muted"),onChange:u.muted,checked:!!a}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Playback controls"),onChange:u.controls,checked:!!n}),(0,Je.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Play inline"),onChange:u.playsInline,checked:!!i,help:(0,tt.__)("When enabled, videos will play directly within the webpage on mobile browsers, instead of opening in a fullscreen player.")}),(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Preload"),value:s,onChange:d,options:OS,hideCancelButton:!0})]})},qS=["text/vtt"],WS="subtitles",ZS=[{label:(0,tt.__)("Subtitles"),value:"subtitles"},{label:(0,tt.__)("Captions"),value:"captions"},{label:(0,tt.__)("Descriptions"),value:"descriptions"},{label:(0,tt.__)("Chapters"),value:"chapters"},{label:(0,tt.__)("Metadata"),value:"metadata"}];function QS({tracks:e,onEditPress:t}){let o;return o=0===e.length?(0,Je.jsx)("p",{className:"block-library-video-tracks-editor__tracks-informative-message",children:(0,tt.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")}):e.map(((e,o)=>(0,Je.jsxs)(et.__experimentalHStack,{className:"block-library-video-tracks-editor__track-list-track",children:[(0,Je.jsxs)("span",{children:[e.label," "]}),(0,Je.jsx)(et.Button,{variant:"tertiary",onClick:()=>t(o),"aria-label":(0,tt.sprintf)((0,tt.__)("Edit %s"),e.label),children:(0,tt.__)("Edit")})]},o))),(0,Je.jsx)(et.MenuGroup,{label:(0,tt.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list",children:o})}function KS({track:e,onChange:t,onClose:o,onRemove:n}){const{src:r="",label:a="",srcLang:i="",kind:s=WS}=e,l=r.startsWith("blob:")?"":(0,pt.getFilename)(r)||"";return(0,Je.jsx)(et.NavigableMenu,{children:(0,Je.jsxs)(et.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4",children:[(0,Je.jsx)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label",children:(0,tt.__)("Edit track")}),(0,Je.jsxs)("span",{children:[(0,tt.__)("File"),": ",(0,Je.jsx)("b",{children:l})]}),(0,Je.jsxs)(et.__experimentalGrid,{columns:2,gap:4,children:[(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,autoFocus:!0,onChange:o=>t({...e,label:o}),label:(0,tt.__)("Label"),value:a,help:(0,tt.__)("Title of track")}),(0,Je.jsx)(et.TextControl,{__nextHasNoMarginBottom:!0,onChange:o=>t({...e,srcLang:o}),label:(0,tt.__)("Source language"),value:i,help:(0,tt.__)("Language tag (en, fr, etc.)")})]}),(0,Je.jsxs)(et.__experimentalVStack,{spacing:"8",children:[(0,Je.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:ZS,value:s,label:(0,tt.__)("Kind"),onChange:o=>{t({...e,kind:o})}}),(0,Je.jsxs)(et.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container",children:[(0,Je.jsx)(et.Button,{variant:"secondary",onClick:()=>{const n={};let r=!1;""===a&&(n.label=(0,tt.__)("English"),r=!0),""===i&&(n.srcLang="en",r=!0),void 0===e.kind&&(n.kind=WS,r=!0),r&&t({...e,...n}),o()},children:(0,tt.__)("Close")}),(0,Je.jsx)(et.Button,{isDestructive:!0,variant:"link",onClick:n,children:(0,tt.__)("Remove track")})]})]})]})})}function JS({tracks:e=[],onChange:t}){const o=(0,gt.useSelect)((e=>e(ot.store).getSettings().mediaUpload),[]),[n,r]=(0,bt.useState)(null);return o?(0,Je.jsx)(et.Dropdown,{contentClassName:"block-library-video-tracks-editor",renderToggle:({isOpen:e,onToggle:t})=>(0,Je.jsx)(et.ToolbarGroup,{children:(0,Je.jsx)(et.ToolbarButton,{label:(0,tt.__)("Text tracks"),showTooltip:!0,"aria-expanded":e,"aria-haspopup":"true",onClick:t,children:(0,tt.__)("Text tracks")})}),renderContent:()=>null!==n?(0,Je.jsx)(KS,{track:e[n],onChange:o=>{const r=[...e];r[n]=o,t(r)},onClose:()=>r(null),onRemove:()=>{t(e.filter(((e,t)=>t!==n))),r(null)}}):(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(et.NavigableMenu,{children:[(0,Je.jsx)(QS,{tracks:e,onEditPress:r}),(0,Je.jsxs)(et.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,tt.__)("Add tracks"),children:[(0,Je.jsx)(ot.MediaUpload,{onSelect:({url:o})=>{const n=e.length;t([...e,{src:o}]),r(n)},allowedTypes:qS,render:({open:e})=>(0,Je.jsx)(et.MenuItem,{icon:Ym,onClick:e,children:(0,tt.__)("Open Media Library")})}),(0,Je.jsx)(ot.MediaUploadCheck,{children:(0,Je.jsx)(et.FormFileUpload,{onChange:n=>{const a=n.target.files,i=e.length;o({allowedTypes:qS,filesList:a,onFileChange:([{url:o}])=>{const n=[...e];n[i]||(n[i]={}),n[i]={...e[i],src:o},t(n),r(i)}})},accept:".vtt,text/vtt",render:({openFileDialog:e})=>(0,Je.jsx)(et.MenuItem,{icon:ip,onClick:()=>{e()},children:(0,tt.__)("Upload")})})})]})]})})}):null}const YS=e=>(0,Je.jsx)(et.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!0,icon:FS,label:(0,tt.__)("Video"),instructions:(0,tt.__)("Upload a video file, pick one from your media library, or add one with a URL."),children:e}),XS=["video"],eB=["image"];const tB=function e({isSelected:t,attributes:o,className:n,setAttributes:r,insertBlocksAfter:a,onReplace:i}){const s=(0,Ut.useInstanceId)(e),l=(0,bt.useRef)(),c=(0,bt.useRef)(),{id:u,controls:d,poster:p,src:m,tracks:g}=o,h=!u&&(0,It.isBlobURL)(m);function x(e){e&&e.url?r({src:e.url,id:e.id,poster:e.image?.src!==e.icon?e.image?.src:void 0,caption:e.caption}):r({src:void 0,id:void 0,poster:void 0,caption:void 0})}function b(e){if(e!==m){const t=Et({attributes:{url:e}});if(void 0!==t&&i)return void i(t);r({src:e,id:void 0,poster:void 0})}}Wt({url:m,allowedTypes:XS,onChange:x,onError:y}),(0,bt.useEffect)((()=>{l.current&&l.current.load()}),[p]);const{createErrorNotice:_}=(0,gt.useDispatch)(Pt.store);function y(e){_(e,{type:"snackbar"})}const v=dt(n,{"is-transient":h}),f=(0,ot.useBlockProps)({className:v});if(!m)return(0,Je.jsx)("div",{...f,children:(0,Je.jsx)(ot.MediaPlaceholder,{icon:(0,Je.jsx)(ot.BlockIcon,{icon:FS}),onSelect:x,onSelectURL:b,accept:"video/*",allowedTypes:XS,value:o,onError:y,placeholder:YS})});const k=`video-block__poster-image-description-${s}`;return(0,Je.jsxs)(Je.Fragment,{children:[t&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot.BlockControls,{children:(0,Je.jsx)(JS,{tracks:g,onChange:e=>{r({tracks:e})}})}),(0,Je.jsx)(ot.BlockControls,{group:"other",children:(0,Je.jsx)(ot.MediaReplaceFlow,{mediaId:u,mediaURL:m,allowedTypes:XS,accept:"video/*",onSelect:x,onSelectURL:b,onError:y})})]}),(0,Je.jsx)(ot.InspectorControls,{children:(0,Je.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Je.jsx)(US,{setAttributes:r,attributes:o}),(0,Je.jsx)(ot.MediaUploadCheck,{children:(0,Je.jsxs)(et.BaseControl,{className:"editor-video-poster-control",children:[(0,Je.jsx)(et.BaseControl.VisualLabel,{children:(0,tt.__)("Poster image")}),(0,Je.jsx)(ot.MediaUpload,{title:(0,tt.__)("Select poster image"),onSelect:function(e){r({poster:e.url})},allowedTypes:eB,render:({open:e})=>(0,Je.jsx)(et.Button,{variant:"primary",onClick:e,ref:c,"aria-describedby":k,children:p?(0,tt.__)("Replace"):(0,tt.__)("Select")})}),(0,Je.jsx)("p",{id:k,hidden:!0,children:p?(0,tt.sprintf)((0,tt.__)("The current poster image url is %s"),p):(0,tt.__)("There is no poster image currently selected")}),!!p&&(0,Je.jsx)(et.Button,{onClick:function(){r({poster:void 0}),c.current.focus()},variant:"tertiary",children:(0,tt.__)("Remove")})]})})]})}),(0,Je.jsxs)("figure",{...f,children:[(0,Je.jsx)(et.Disabled,{isDisabled:!t,children:(0,Je.jsx)("video",{controls:d,poster:p,src:m,ref:l,children:(0,Je.jsx)(VS,{tracks:g})})}),h&&(0,Je.jsx)(et.Spinner,{}),(0,Je.jsx)(Kt,{attributes:o,setAttributes:r,isSelected:t,insertBlocksAfter:a,label:(0,tt.__)("Video caption text"),showToolbarButton:t})]})]})};const oB={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("video/"),transform(e){const t=e[0];return(0,Qe.createBlock)("core/video",{src:(0,It.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:o,webm:n,ogv:r,flv:a}})=>e||t||o||n||r||a},poster:{type:"string",shortcode:({named:{poster:e}})=>e},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}},{type:"raw",isMatch:e=>"P"===e.nodeName&&1===e.children.length&&"VIDEO"===e.firstChild.nodeName,transform:e=>{const t=e.firstChild,o={autoplay:!!t.hasAttribute("autoplay")||void 0,controls:!!t.hasAttribute("controls")&&void 0,loop:!!t.hasAttribute("loop")||void 0,muted:!!t.hasAttribute("muted")||void 0,preload:t.getAttribute("preload")||void 0,playsInline:!!t.hasAttribute("playsinline")||void 0,poster:t.getAttribute("poster")||void 0,src:t.getAttribute("src")||void 0};return(0,Qe.createBlock)("core/video",o)}}]},nB=oB,rB={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number",__experimentalRole:"content"},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",__experimentalRole:"content"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{__experimentalRole:"content",type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-video-editor",style:"wp-block-video"},{name:aB}=rB,iB={icon:FS,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,tt.__)("Wood thrush singing in Central Park, NYC.")}},transforms:nB,deprecated:GS,edit:tB,save:function({attributes:e}){const{autoplay:t,caption:o,controls:n,loop:r,muted:a,poster:i,preload:s,src:l,playsInline:c,tracks:u}=e;return(0,Je.jsxs)("figure",{...ot.useBlockProps.save(),children:[l&&(0,Je.jsx)("video",{autoPlay:t,controls:n,loop:r,muted:a,poster:i,preload:"metadata"!==s?s:void 0,src:l,playsInline:c,children:(0,Je.jsx)(VS,{tracks:u})}),!ot.RichText.isEmpty(o)&&(0,Je.jsx)(ot.RichText.Content,{className:(0,ot.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]})}},sB=()=>Xe({name:aB,metadata:rB,settings:iB});const lB={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let cB;const uB=new Uint8Array(16);function dB(){if(!cB&&(cB="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!cB))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return cB(uB)}const pB=[];for(let e=0;e<256;++e)pB.push((e+256).toString(16).slice(1));function mB(e,t=0){return pB[e[t+0]]+pB[e[t+1]]+pB[e[t+2]]+pB[e[t+3]]+"-"+pB[e[t+4]]+pB[e[t+5]]+"-"+pB[e[t+6]]+pB[e[t+7]]+"-"+pB[e[t+8]]+pB[e[t+9]]+"-"+pB[e[t+10]]+pB[e[t+11]]+pB[e[t+12]]+pB[e[t+13]]+pB[e[t+14]]+pB[e[t+15]]}const gB=function(e,t,o){if(lB.randomUUID&&!t&&!e)return lB.randomUUID();const n=(e=e||{}).random||(e.rng||dB)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){o=o||0;for(let e=0;e<16;++e)t[o+e]=n[e];return t}return mB(n)},{usesContextKey:hB}=Ht(ot.privateApis),xB="core/footnote",bB="core/post-content",_B={title:(0,tt.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[hB]:["postType","postId"],edit:function({value:e,onChange:t,isObjectActive:o,context:{postType:n,postId:r}}){const a=(0,gt.useRegistry)(),{getSelectedBlockClientId:i,getBlocks:s,getBlockRootClientId:l,getBlockName:c,getBlockParentsByBlockName:u}=a.select(ot.store),d=(0,gt.useSelect)((e=>{if(!e(Qe.store).getBlockType("core/footnotes"))return!1;const t=e(ot.store).getSettings().allowedBlockTypes;if(!1===t||Array.isArray(t)&&!t.includes("core/footnotes"))return!1;const o=e(mt.store).getEntityRecord("postType",n,r);if("string"!=typeof o?.meta?.footnotes)return!1;const{getBlockParentsByBlockName:a,getSelectedBlockClientId:i}=e(ot.store),s=a(i(),"core/block");return!s||0===s.length}),[n,r]),{selectionChange:p,insertBlock:m}=(0,gt.useDispatch)(ot.store);if(!d)return null;return(0,Je.jsx)(ot.RichTextToolbarButton,{icon:Kp,title:(0,tt.__)("Footnote"),onClick:function(){a.batch((()=>{let n;if(o){const t=e.replacements[e.start];n=t?.attributes?.["data-fn"]}else{n=gB();const o=(0,Ao.insertObject)(e,{type:xB,attributes:{"data-fn":n},innerHTML:`<a href="#${n}" id="${n}-link">*</a>`},e.end,e.end);o.start=o.end-1,t(o)}const r=i(),a=u(r,bB);let d=null;{const e=[...a.length?s(a[0]):s()];for(;e.length;){const t=e.shift();if("core/footnotes"===t.name){d=t;break}e.push(...t.innerBlocks)}}if(!d){let e=l(r);for(;e&&c(e)!==bB;)e=l(e);d=(0,Qe.createBlock)("core/footnotes"),m(d,void 0,e)}p(d.clientId,n,0,0)}))},isActive:o})}},yB={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/footnotes",title:"Footnotes",category:"text",description:"Display footnotes added to the page.",keywords:["references"],textdomain:"default",usesContext:["postId","postType"],supports:{__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!1,color:!1,width:!1,style:!1}},color:{background:!0,link:!0,text:!0,__experimentalDefaultControls:{link:!0,text:!0}},html:!1,multiple:!1,reusable:!1,inserter:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-footnotes"},{name:vB}=yB,fB={icon:Kp,edit:function({context:{postType:e,postId:t}}){const[o,n]=(0,mt.useEntityProp)("postType",e,"meta",t),r="string"==typeof o?.footnotes,a=o?.footnotes?JSON.parse(o.footnotes):[],i=(0,ot.useBlockProps)();return r?a.length?(0,Je.jsx)("ol",{...i,children:a.map((({id:e,content:t})=>(0,Je.jsxs)("li",{onMouseDown:e=>{e.target===e.currentTarget&&(e.target.firstElementChild.focus(),e.preventDefault())},children:[(0,Je.jsx)(ot.RichText,{id:e,tagName:"span",value:t,identifier:e,onFocus:e=>{e.target.textContent.trim()||e.target.scrollIntoView()},onChange:t=>{n({...o,footnotes:JSON.stringify(a.map((o=>o.id===e?{content:t,id:e}:o)))})}})," ",(0,Je.jsx)("a",{href:`#${e}-link`,children:"↩︎"})]},e)))}):(0,Je.jsx)("div",{...i,children:(0,Je.jsx)(et.Placeholder,{icon:(0,Je.jsx)(ot.BlockIcon,{icon:Kp}),label:(0,tt.__)("Footnotes"),instructions:(0,tt.__)("Footnotes found in blocks within this document will be displayed here.")})}):(0,Je.jsx)("div",{...i,children:(0,Je.jsx)(et.Placeholder,{icon:(0,Je.jsx)(ot.BlockIcon,{icon:Kp}),label:(0,tt.__)("Footnotes"),instructions:(0,tt.__)("Footnotes are not supported here. Add this block to post or page content.")})})}};(0,Ao.registerFormatType)(xB,_B);const kB=()=>{Xe({name:vB,metadata:yB,settings:fB})};var wB=o(2321),CB=o.n(wB);const jB=window.wp.keyboardShortcuts;const SB=function(){const{registerShortcut:e}=(0,gt.useDispatch)(jB.store),{replaceBlocks:t}=(0,gt.useDispatch)(ot.store),{getBlockName:o,getSelectedBlockClientId:n,getBlockAttributes:r}=(0,gt.useSelect)(ot.store),a=(e,a)=>{e.preventDefault();const i=n();if(null===i)return;const s=o(i),l="core/paragraph"===s,c="core/heading"===s;if(!l&&!c)return;const u=0===a?"core/paragraph":"core/heading",d=r(i);if(l&&0===a||c&&d.level===a)return;const p="core/paragraph"===s?"align":"textAlign",m="core/paragraph"===u?"align":"textAlign";t(i,(0,Qe.createBlock)(u,{level:a,content:d.content,[m]:d[p]}))};return(0,bt.useEffect)((()=>{e({name:"core/block-editor/transform-heading-to-paragraph",category:"block-library",description:(0,tt.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}]}),[1,2,3,4,5,6].forEach((t=>{e({name:`core/block-editor/transform-paragraph-to-heading-${t}`,category:"block-library",description:(0,tt.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${t}`}})}))}),[]),(0,jB.useShortcut)("core/block-editor/transform-heading-to-paragraph",(e=>a(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,jB.useShortcut)(`core/block-editor/transform-paragraph-to-heading-${e}`,(t=>a(t,e)))})),null},BB={};Lt(BB,{BlockKeyboardShortcuts:SB});const NB=()=>(()=>{const o=[te,F,L,R,$,G,Be,e,r,a,i,s,l,u,d,p,g,S,B,N,T,A,D,V,E,U,q,W,J,X,ee,Y,_e,ye,Ne,Ie,Pe,Me,ze,He,De,Fe,Ve,$e,Ue,qe,We,Ze,Z,Q,K,Re,Le,Ae,ve,Ge,t,be,de,pe,ce,oe,ne,ae,ie,le,ue,he,me,ge,xe,ke,we,Ce,je,fe,Te,m,h,x,b,_,y,v,j,k,w,C,f,se,Ee,H,O,Oe,Se,re];return window?.__experimentalEnableFormBlocks&&(o.push(I),o.push(P),o.push(M),o.push(z)),window?.wp?.oldEditor&&(window?.wp?.needsClassicBlock||!window?.__experimentalDisableTinymce||new URLSearchParams(window?.location?.search).get("requiresTinymce"))&&o.push(c),o.filter(Boolean)})().filter((({metadata:e})=>!CB()(e))),TB=(e=NB())=>{e.forEach((({init:e})=>e())),(0,Qe.setDefaultBlockName)(Nb),window.wp&&window.wp.oldEditor&&e.some((({name:e})=>e===hn))&&(0,Qe.setFreeformContentHandlerName)(hn),(0,Qe.setUnregisteredTypeHandlerName)(vg),(0,Qe.setGroupingBlockName)(sd)},IB=void 0})(),(window.wp=window.wp||{}).blockLibrary=n})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/blocks.js b/wp-includes/js/dist/blocks.js
index 40068b9..c8b27f0 100644
--- a/wp-includes/js/dist/blocks.js
+++ b/wp-includes/js/dist/blocks.js
@@ -6509,6 +6509,11 @@ const __EXPERIMENTAL_STYLE_PROPERTY = {
requiresOptOut: true,
useEngine: true
},
+ backgroundImage: {
+ value: ['background', 'backgroundImage'],
+ support: ['background', 'backgroundImage'],
+ useEngine: true
+ },
backgroundRepeat: {
value: ['background', 'backgroundRepeat'],
support: ['background', 'backgroundRepeat'],
@@ -6519,6 +6524,11 @@ const __EXPERIMENTAL_STYLE_PROPERTY = {
support: ['background', 'backgroundSize'],
useEngine: true
},
+ backgroundPosition: {
+ value: ['background', 'backgroundPosition'],
+ support: ['background', 'backgroundPosition'],
+ useEngine: true
+ },
borderColor: {
value: ['border', 'color'],
support: ['__experimentalBorder', 'color'],
@@ -6696,6 +6706,11 @@ const __EXPERIMENTAL_STYLE_PROPERTY = {
},
useEngine: true
},
+ textAlign: {
+ value: ['typography', 'textAlign'],
+ support: ['typography', 'textAlign'],
+ useEngine: false
+ },
textDecoration: {
value: ['typography', 'textDecoration'],
support: ['typography', '__experimentalTextDecoration'],
@@ -6729,7 +6744,7 @@ const __EXPERIMENTAL_STYLE_PROPERTY = {
}
};
const __EXPERIMENTAL_ELEMENTS = {
- link: 'a',
+ link: 'a:where(:not(.wp-element-button))',
heading: 'h1, h2, h3, h4, h5, h6',
h1: 'h1',
h2: 'h2',
@@ -6749,6 +6764,7 @@ const __EXPERIMENTAL_PATHS_WITH_OVERRIDE = {
'color.duotone': true,
'color.gradients': true,
'color.palette': true,
+ 'dimensions.aspectRatios': true,
'typography.fontSizes': true,
'spacing.spacingSizes': true
};
@@ -6763,7 +6779,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
const {
lock,
unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/blocks');
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/blocks');
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/registration.js
/* eslint no-console: [ 'error', { allow: [ 'error', 'warn' ] } ] */
@@ -7330,13 +7346,13 @@ const hasChildBlocksWithInserterSupport = blockName => {
};
/**
- * Registers a new block style for the given block.
+ * Registers a new block style for the given block types.
*
* For more information on connecting the styles with CSS
* [the official documentation](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-styles/#styles).
*
- * @param {string} blockName Name of block (example: “core/latest-posts”).
- * @param {Object} styleVariation Object containing `name` which is the class name applied to the block and `label` which identifies the variation to the user.
+ * @param {string|Array} blockNames Name of blocks e.g. “core/latest-posts” or `["core/group", "core/columns"]`.
+ * @param {Object} styleVariation Object containing `name` which is the class name applied to the block and `label` which identifies the variation to the user.
*
* @example
* ```js
@@ -7361,8 +7377,8 @@ const hasChildBlocksWithInserterSupport = blockName => {
* };
* ```
*/
-const registerBlockStyle = (blockName, styleVariation) => {
- (0,external_wp_data_namespaceObject.dispatch)(store).addBlockStyles(blockName, styleVariation);
+const registerBlockStyle = (blockNames, styleVariation) => {
+ (0,external_wp_data_namespaceObject.dispatch)(store).addBlockStyles(blockNames, styleVariation);
};
/**
@@ -7442,6 +7458,9 @@ const getBlockVariations = (blockName, scope) => {
* ```
*/
const registerBlockVariation = (blockName, variation) => {
+ if (typeof variation.name !== 'string') {
+ console.warn('Variation names must be unique strings.');
+ }
(0,external_wp_data_namespaceObject.dispatch)(store).addBlockVariations(blockName, variation);
};
@@ -7627,6 +7646,9 @@ function getBlockLabel(blockType, attributes, context = 'visual') {
if (!label) {
return title;
}
+ if (label.toPlainText) {
+ return label.toPlainText();
+ }
// Strip any HTML (i.e. RichText formatting) before returning.
return (0,external_wp_dom_namespaceObject.__unstableStripHTML)(label);
@@ -7743,9 +7765,13 @@ function __experimentalSanitizeBlockAttributes(name, attributes) {
*/
function __experimentalGetBlockAttributesNamesByRole(name, role) {
const attributes = getBlockType(name)?.attributes;
- if (!attributes) return [];
+ if (!attributes) {
+ return [];
+ }
const attributesNames = Object.keys(attributes);
- if (!role) return attributesNames;
+ if (!role) {
+ return attributesNames;
+ }
return attributesNames.filter(attributeName => attributes[attributeName]?.__experimentalRole === role);
}
@@ -7842,16 +7868,6 @@ function bootstrappedBlockTypes(state = {}, action) {
// Don't overwrite if already set. It covers the case when metadata
// was initialized from the server.
if (serverDefinition) {
- // The `selectors` prop is not yet included in the server provided
- // definitions and needs to be polyfilled. This can be removed when the
- // minimum supported WordPress is >= 6.3.
- if (serverDefinition.selectors === undefined && blockType.selectors) {
- newDefinition = {
- ...serverDefinition,
- selectors: blockType.selectors
- };
- }
-
// The `blockHooks` prop is not yet included in the server provided
// definitions and needs to be polyfilled. This can be removed when the
// minimum supported WordPress is >= 6.4.
@@ -7944,7 +7960,7 @@ function blockTypes(state = {}, action) {
* @return {Object} Updated state.
*/
function blockStyles(state = {}, action) {
- var _state$action$blockNa, _state$action$blockNa2;
+ var _state$action$blockNa;
switch (action.type) {
case 'ADD_BLOCK_TYPES':
return {
@@ -7960,14 +7976,19 @@ function blockStyles(state = {}, action) {
}))
};
case 'ADD_BLOCK_STYLES':
+ const updatedStyles = {};
+ action.blockNames.forEach(blockName => {
+ var _state$blockName;
+ updatedStyles[blockName] = getUniqueItemsByName([...((_state$blockName = state[blockName]) !== null && _state$blockName !== void 0 ? _state$blockName : []), ...action.styles]);
+ });
return {
...state,
- [action.blockName]: getUniqueItemsByName([...((_state$action$blockNa = state[action.blockName]) !== null && _state$action$blockNa !== void 0 ? _state$action$blockNa : []), ...action.styles])
+ ...updatedStyles
};
case 'REMOVE_BLOCK_STYLES':
return {
...state,
- [action.blockName]: ((_state$action$blockNa2 = state[action.blockName]) !== null && _state$action$blockNa2 !== void 0 ? _state$action$blockNa2 : []).filter(style => action.styleNames.indexOf(style.name) === -1)
+ [action.blockName]: ((_state$action$blockNa = state[action.blockName]) !== null && _state$action$blockNa !== void 0 ? _state$action$blockNa : []).filter(style => action.styleNames.indexOf(style.name) === -1)
};
}
return state;
@@ -7982,7 +8003,7 @@ function blockStyles(state = {}, action) {
* @return {Object} Updated state.
*/
function blockVariations(state = {}, action) {
- var _state$action$blockNa3, _state$action$blockNa4;
+ var _state$action$blockNa2, _state$action$blockNa3;
switch (action.type) {
case 'ADD_BLOCK_TYPES':
return {
@@ -8000,12 +8021,12 @@ function blockVariations(state = {}, action) {
case 'ADD_BLOCK_VARIATIONS':
return {
...state,
- [action.blockName]: getUniqueItemsByName([...((_state$action$blockNa3 = state[action.blockName]) !== null && _state$action$blockNa3 !== void 0 ? _state$action$blockNa3 : []), ...action.variations])
+ [action.blockName]: getUniqueItemsByName([...((_state$action$blockNa2 = state[action.blockName]) !== null && _state$action$blockNa2 !== void 0 ? _state$action$blockNa2 : []), ...action.variations])
};
case 'REMOVE_BLOCK_VARIATIONS':
return {
...state,
- [action.blockName]: ((_state$action$blockNa4 = state[action.blockName]) !== null && _state$action$blockNa4 !== void 0 ? _state$action$blockNa4 : []).filter(variation => action.variationNames.indexOf(variation.name) === -1)
+ [action.blockName]: ((_state$action$blockNa3 = state[action.blockName]) !== null && _state$action$blockNa3 !== void 0 ? _state$action$blockNa3 : []).filter(variation => action.variationNames.indexOf(variation.name) === -1)
};
}
return state;
@@ -8089,13 +8110,15 @@ function collections(state = {}, action) {
}
function blockBindingsSources(state = {}, action) {
if (action.type === 'REGISTER_BLOCK_BINDINGS_SOURCE') {
- var _action$lockAttribute;
return {
...state,
[action.sourceName]: {
label: action.sourceLabel,
- useSource: action.useSource,
- lockAttributesEditing: (_action$lockAttribute = action.lockAttributesEditing) !== null && _action$lockAttribute !== void 0 ? _action$lockAttribute : true
+ getValue: action.getValue,
+ setValue: action.setValue,
+ setValues: action.setValues,
+ getPlaceholder: action.getPlaceholder,
+ canUserEditValue: action.canUserEditValue || (() => false)
}
};
}
@@ -8116,309 +8139,9 @@ function blockBindingsSources(state = {}, action) {
blockBindingsSources
}));
-;// CONCATENATED MODULE: ./node_modules/rememo/rememo.js
-
-
-/** @typedef {(...args: any[]) => *[]} GetDependants */
-
-/** @typedef {() => void} Clear */
-
-/**
- * @typedef {{
- * getDependants: GetDependants,
- * clear: Clear
- * }} EnhancedSelector
- */
-
-/**
- * Internal cache entry.
- *
- * @typedef CacheNode
- *
- * @property {?CacheNode|undefined} [prev] Previous node.
- * @property {?CacheNode|undefined} [next] Next node.
- * @property {*[]} args Function arguments for cache entry.
- * @property {*} val Function result.
- */
-
-/**
- * @typedef Cache
- *
- * @property {Clear} clear Function to clear cache.
- * @property {boolean} [isUniqueByDependants] Whether dependants are valid in
- * considering cache uniqueness. A cache is unique if dependents are all arrays
- * or objects.
- * @property {CacheNode?} [head] Cache head.
- * @property {*[]} [lastDependants] Dependants from previous invocation.
- */
-
-/**
- * Arbitrary value used as key for referencing cache object in WeakMap tree.
- *
- * @type {{}}
- */
-var LEAF_KEY = {};
-
-/**
- * Returns the first argument as the sole entry in an array.
- *
- * @template T
- *
- * @param {T} value Value to return.
- *
- * @return {[T]} 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 {Cache} Cache object.
- */
-function createCache() {
- /** @type {Cache} */
- 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 {*[]} a First array.
- * @param {*[]} 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.
- *
- * @template {(...args: *[]) => *} S
- *
- * @param {S} selector Selector function.
- * @param {GetDependants=} getDependants Dependant getter returning an array of
- * references used in cache bust consideration.
- */
-/* harmony default export */ function rememo(selector, getDependants) {
- /** @type {WeakMap<*,*>} */
- var rootCache;
-
- /** @type {GetDependants} */
- var normalizedGetDependants = getDependants ? getDependants : arrayOf;
-
- /**
- * 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 {*[]} dependants Selector dependants.
- *
- * @return {Cache} Cache object.
- */
- function getCache(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);
- }
-
- /**
- * Resets root memoization cache.
- */
- function clear() {
- rootCache = new WeakMap();
- }
-
- /* eslint-disable jsdoc/check-param-names */
- /**
- * The augmented selector call, considering first whether dependants have
- * changed before passing it to underlying memoize function.
- *
- * @param {*} source Source object for derivation.
- * @param {...*} extraArgs Additional arguments to pass to selector.
- *
- * @return {*} Selector result.
- */
- /* eslint-enable jsdoc/check-param-names */
- 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 = normalizedGetDependants.apply(null, args);
- cache = getCache(dependants);
-
- // If not guaranteed uniqueness by dependants (primitive type), 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.
- /** @type {CacheNode} */ (node.prev).next = node.next;
- if (node.next) {
- node.next.prev = node.prev;
- }
-
- node.next = cache.head;
- node.prev = null;
- /** @type {CacheNode} */ (cache.head).prev = node;
- cache.head = node;
- }
-
- // Return immediately
- return node.val;
- }
-
- // No cached value found. Continue to insertion phase:
-
- node = /** @type {CacheNode} */ ({
- // 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 = normalizedGetDependants;
- callSelector.clear = clear;
- clear();
-
- return /** @type {S & EnhancedSelector} */ (callSelector);
-}
-
// EXTERNAL MODULE: ./node_modules/remove-accents/index.js
var remove_accents = __webpack_require__(9681);
var remove_accents_default = /*#__PURE__*/__webpack_require__.n(remove_accents);
-;// CONCATENATED MODULE: external ["wp","compose"]
-const external_wp_compose_namespaceObject = window["wp"]["compose"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/utils.js
/**
* Helper util to return a value from a certain path of the object.
@@ -8441,6 +8164,27 @@ const getValueFromObjectPath = (object, path, defaultValue) => {
});
return (_value = value) !== null && _value !== void 0 ? _value : defaultValue;
};
+function utils_isObject(candidate) {
+ return typeof candidate === 'object' && candidate.constructor === Object && candidate !== null;
+}
+
+/**
+ * Determine whether a set of object properties matches a given object.
+ *
+ * Given an object of block attributes and an object of variation attributes,
+ * this function checks recursively whether all the variation attributes are
+ * present in the block attributes object.
+ *
+ * @param {Object} blockAttributes The object to inspect.
+ * @param {Object} variationAttributes The object of property values to match.
+ * @return {boolean} Whether the block attributes match the variation attributes.
+ */
+function matchesAttributes(blockAttributes, variationAttributes) {
+ if (utils_isObject(blockAttributes) && utils_isObject(variationAttributes)) {
+ return Object.entries(variationAttributes).every(([key, value]) => matchesAttributes(blockAttributes?.[key], value));
+ }
+ return blockAttributes === variationAttributes;
+}
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/selectors.js
/**
@@ -8448,12 +8192,12 @@ const getValueFromObjectPath = (object, path, defaultValue) => {
*/
-
/**
* WordPress dependencies
*/
+
/**
* Internal dependencies
*/
@@ -8502,7 +8246,7 @@ const getNormalizedBlockType = (state, nameOrType) => 'string' === typeof nameOr
*
* @return {Array} Block Types.
*/
-const selectors_getBlockTypes = rememo(state => Object.values(state.blockTypes), state => [state.blockTypes]);
+const selectors_getBlockTypes = (0,external_wp_data_namespaceObject.createSelector)(state => Object.values(state.blockTypes), state => [state.blockTypes]);
/**
* Returns a block type by name.
@@ -8610,7 +8354,7 @@ function getBlockStyles(state, name) {
*
* @return {(WPBlockVariation[]|void)} Block variations.
*/
-const selectors_getBlockVariations = rememo((state, blockName, scope) => {
+const selectors_getBlockVariations = (0,external_wp_data_namespaceObject.createSelector)((state, blockName, scope) => {
const variations = state.blockVariations[blockName];
if (!variations || !scope) {
return variations;
@@ -8671,18 +8415,48 @@ const selectors_getBlockVariations = rememo((state, blockName, scope) => {
*/
function getActiveBlockVariation(state, blockName, attributes, scope) {
const variations = selectors_getBlockVariations(state, blockName, scope);
- const match = variations?.find(variation => {
+ if (!variations) {
+ return variations;
+ }
+ const blockType = selectors_getBlockType(state, blockName);
+ const attributeKeys = Object.keys(blockType?.attributes || {});
+ let match;
+ let maxMatchedAttributes = 0;
+ for (const variation of variations) {
if (Array.isArray(variation.isActive)) {
- const blockType = selectors_getBlockType(state, blockName);
- const attributeKeys = Object.keys(blockType?.attributes || {});
- const definedAttributes = variation.isActive.filter(attribute => attributeKeys.includes(attribute));
- if (definedAttributes.length === 0) {
- return false;
+ const definedAttributes = variation.isActive.filter(attribute => {
+ // We support nested attribute paths, e.g. `layout.type`.
+ // In this case, we need to check if the part before the
+ // first dot is a known attribute.
+ const topLevelAttribute = attribute.split('.')[0];
+ return attributeKeys.includes(topLevelAttribute);
+ });
+ const definedAttributesLength = definedAttributes.length;
+ if (definedAttributesLength === 0) {
+ continue;
+ }
+ const isMatch = definedAttributes.every(attribute => {
+ const variationAttributeValue = getValueFromObjectPath(variation.attributes, attribute);
+ if (variationAttributeValue === undefined) {
+ return false;
+ }
+ let blockAttributeValue = getValueFromObjectPath(attributes, attribute);
+ if (blockAttributeValue instanceof external_wp_richText_namespaceObject.RichTextData) {
+ blockAttributeValue = blockAttributeValue.toHTMLString();
+ }
+ return matchesAttributes(blockAttributeValue, variationAttributeValue);
+ });
+ if (isMatch && definedAttributesLength > maxMatchedAttributes) {
+ match = variation;
+ maxMatchedAttributes = definedAttributesLength;
}
- return definedAttributes.every(attribute => attributes[attribute] === variation.attributes[attribute]);
+ } else if (variation.isActive?.(attributes, variation.attributes)) {
+ // If isActive is a function, we cannot know how many attributes it matches.
+ // This means that we cannot compare the specificity of our matches,
+ // and simply return the best match we have found.
+ return match || variation;
}
- return variation.isActive?.(attributes, variation.attributes);
- });
+ }
return match;
}
@@ -8967,7 +8741,7 @@ function selectors_getGroupingBlockName(state) {
*
* @return {Array} Array of child block names.
*/
-const selectors_getChildBlockNames = rememo((state, blockName) => {
+const selectors_getChildBlockNames = (0,external_wp_data_namespaceObject.createSelector)((state, blockName) => {
return selectors_getBlockTypes(state).filter(blockType => {
return blockType.parent?.includes(blockName);
}).map(({
@@ -9056,6 +8830,16 @@ function selectors_hasBlockSupport(state, nameOrType, feature, defaultSupports)
}
/**
+ * Normalizes a search term string: removes accents, converts to lowercase, removes extra whitespace.
+ *
+ * @param {string|null|undefined} term Search term to normalize.
+ * @return {string} Normalized search term.
+ */
+function getNormalizedSearchTerm(term) {
+ return remove_accents_default()(term !== null && term !== void 0 ? term : '').toLowerCase().trim();
+}
+
+/**
* Returns true if the block type by the given name or object value matches a
* search term, or false otherwise.
*
@@ -9094,20 +8878,10 @@ function selectors_hasBlockSupport(state, nameOrType, feature, defaultSupports)
*
* @return {Object[]} Whether block type matches search term.
*/
-function isMatchingSearchTerm(state, nameOrType, searchTerm) {
+function isMatchingSearchTerm(state, nameOrType, searchTerm = '') {
const blockType = getNormalizedBlockType(state, nameOrType);
- const getNormalizedSearchTerm = (0,external_wp_compose_namespaceObject.pipe)([
- // Disregard diacritics.
- // Input: "média"
- term => remove_accents_default()(term !== null && term !== void 0 ? term : ''),
- // Lowercase.
- // Input: "MEDIA"
- term => term.toLowerCase(),
- // Strip leading and trailing whitespace.
- // Input: " media "
- term => term.trim()]);
const normalizedSearchTerm = getNormalizedSearchTerm(searchTerm);
- const isSearchMatch = (0,external_wp_compose_namespaceObject.pipe)([getNormalizedSearchTerm, normalizedCandidate => normalizedCandidate.includes(normalizedSearchTerm)]);
+ const isSearchMatch = candidate => getNormalizedSearchTerm(candidate).includes(normalizedSearchTerm);
return isSearchMatch(blockType.title) || blockType.keywords?.some(isSearchMatch) || isSearchMatch(blockType.category) || typeof blockType.description === 'string' && isSearchMatch(blockType.description);
}
@@ -9191,7 +8965,7 @@ const selectors_hasChildBlocksWithInserterSupport = (state, blockName) => {
* This selector is created for internal/experimental only usage and may be
* removed anytime without any warning, causing breakage on any plugin or theme invoking it.
*/
-const __experimentalHasContentRoleAttribute = rememo((state, blockTypeName) => {
+const __experimentalHasContentRoleAttribute = (0,external_wp_data_namespaceObject.createSelector)((state, blockTypeName) => {
const blockType = selectors_getBlockType(state, blockTypeName);
if (!blockType) {
return false;
@@ -9203,7 +8977,7 @@ const __experimentalHasContentRoleAttribute = rememo((state, blockTypeName) => {
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/private-selectors.js
/**
- * External dependencies
+ * WordPress dependencies
*/
@@ -9256,7 +9030,7 @@ function filterElementBlockSupports(blockSupports, name, element) {
/**
* Returns the list of supported styles for a given block name and element.
*/
-const getSupportedStyles = rememo((state, name, element) => {
+const getSupportedStyles = (0,external_wp_data_namespaceObject.createSelector)((state, name, element) => {
if (!name) {
return filterElementBlockSupports(ROOT_BLOCK_SUPPORTS, name, element);
}
@@ -9424,6 +9198,31 @@ const LEGACY_CATEGORY_MAPPING = {
};
/**
+ * Merge block variations bootstrapped from the server and client.
+ *
+ * When a variation is registered in both places, its properties are merged.
+ *
+ * @param {Array} bootstrappedVariations - A block type variations from the server.
+ * @param {Array} clientVariations - A block type variations from the client.
+ * @return {Array} The merged array of block variations.
+ */
+function mergeBlockVariations(bootstrappedVariations = [], clientVariations = []) {
+ const result = [...bootstrappedVariations];
+ clientVariations.forEach(clientVariation => {
+ const index = result.findIndex(bootstrappedVariation => bootstrappedVariation.name === clientVariation.name);
+ if (index !== -1) {
+ result[index] = {
+ ...result[index],
+ ...clientVariation
+ };
+ } else {
+ result.push(clientVariation);
+ }
+ });
+ return result;
+}
+
+/**
* Takes the unprocessed block type settings, merges them with block type metadata
* and applies all the existing filters for the registered block type.
* Next, it validates all the settings and performs additional processing to the block type definition.
@@ -9436,6 +9235,7 @@ const LEGACY_CATEGORY_MAPPING = {
const processBlockType = (name, blockSettings) => ({
select
}) => {
+ const bootstrappedBlockType = select.getBootstrappedBlockType(name);
const blockType = {
name,
icon: BLOCK_ICON_DEFAULT,
@@ -9446,11 +9246,11 @@ const processBlockType = (name, blockSettings) => ({
selectors: {},
supports: {},
styles: [],
- variations: [],
blockHooks: {},
save: () => null,
- ...select.getBootstrappedBlockType(name),
- ...blockSettings
+ ...bootstrappedBlockType,
+ ...blockSettings,
+ variations: mergeBlockVariations(bootstrappedBlockType?.variations, blockSettings?.variations)
};
const settings = (0,external_wp_hooks_namespaceObject.applyFilters)('blocks.registerBlockType', blockType, name, null);
if (settings.description && typeof settings.description !== 'string') {
@@ -9606,18 +9406,18 @@ function removeBlockTypes(names) {
* Returns an action object used in signalling that new block styles have been added.
* Ignored from documentation as the recommended usage for this action through registerBlockStyle from @wordpress/blocks.
*
- * @param {string} blockName Block name.
- * @param {Array|Object} styles Block style object or array of block style objects.
+ * @param {string|Array} blockNames Block names to register new styles for.
+ * @param {Array|Object} styles Block style object or array of block style objects.
*
* @ignore
*
* @return {Object} Action object.
*/
-function addBlockStyles(blockName, styles) {
+function addBlockStyles(blockNames, styles) {
return {
type: 'ADD_BLOCK_STYLES',
styles: Array.isArray(styles) ? styles : [styles],
- blockName
+ blockNames: Array.isArray(blockNames) ? blockNames : [blockNames]
};
}
@@ -9882,8 +9682,11 @@ function registerBlockBindingsSource(source) {
type: 'REGISTER_BLOCK_BINDINGS_SOURCE',
sourceName: source.name,
sourceLabel: source.label,
- useSource: source.useSource,
- lockAttributesEditing: source.lockAttributesEditing
+ getValue: source.getValue,
+ setValue: source.setValue,
+ setValues: source.setValues,
+ getPlaceholder: source.getPlaceholder,
+ canUserEditValue: source.canUserEditValue
};
}
@@ -10460,8 +10263,6 @@ const getBlockFromExample = (name, example) => {
const external_wp_blockSerializationDefaultParser_namespaceObject = window["wp"]["blockSerializationDefaultParser"];
;// CONCATENATED MODULE: external ["wp","autop"]
const external_wp_autop_namespaceObject = window["wp"]["autop"];
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: external ["wp","isShallowEqual"]
const external_wp_isShallowEqual_namespaceObject = window["wp"]["isShallowEqual"];
var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject);
@@ -10515,8 +10316,9 @@ function serializeRawBlock(rawBlock, options = {}) {
return isCommentDelimited ? getCommentDelimitedContent(blockName, attrs, content) : content;
}
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/serializer.js
-
/**
* WordPress dependencies
*/
@@ -10547,6 +10349,7 @@ function serializeRawBlock(rawBlock, options = {}) {
*
* @return {string} The block's default class.
*/
+
function getBlockDefaultClassName(blockName) {
// Generated HTML classes for blocks follow the `wp-block-{name}` nomenclature.
// Blocks provided by WordPress drop the prefixes 'core/' or 'core-' (historically used in 'core-embed/').
@@ -10607,7 +10410,9 @@ function getInnerBlocksProps(props = {}) {
isInnerBlocks: true
});
// Use special-cased raw HTML tag to avoid default escaping.
- const children = (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, html);
+ const children = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
+ children: html
+ });
return {
...props,
children
@@ -10626,7 +10431,9 @@ function getInnerBlocksProps(props = {}) {
*/
function getSaveElement(blockTypeOrName, attributes, innerBlocks = []) {
const blockType = normalizeBlockType(blockTypeOrName);
- if (!blockType?.save) return null;
+ if (!blockType?.save) {
+ return null;
+ }
let {
save
} = blockType;
@@ -13037,7 +12844,7 @@ function toHTML(node) {
*
* @return {Function} hpq matcher.
*/
-function node_matcher(selector) {
+function matcher(selector) {
external_wp_deprecated_default()('wp.blocks.node.matcher', {
since: '6.1',
version: '6.3',
@@ -13072,7 +12879,7 @@ function node_matcher(selector) {
isNodeOfType,
fromDOM,
toHTML,
- matcher: node_matcher
+ matcher
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/children.js
@@ -13264,7 +13071,6 @@ function children_matcher(selector) {
-
/**
* Internal dependencies
*/
@@ -13282,21 +13088,7 @@ function children_matcher(selector) {
*
* @return {Function} Enhanced hpq matcher.
*/
-const toBooleanAttributeMatcher = matcher => (0,external_wp_compose_namespaceObject.pipe)([matcher,
-// Expected values from `attr( 'disabled' )`:
-//
-// <input>
-// - Value: `undefined`
-// - Transformed: `false`
-//
-// <input disabled>
-// - Value: `''`
-// - Transformed: `true`
-//
-// <input disabled="disabled">
-// - Value: `'disabled'`
-// - Transformed: `true`
-value => value !== undefined]);
+const toBooleanAttributeMatcher = matcher => value => matcher(value) !== undefined;
/**
* Returns true if value is of the given JSON schema type, or false otherwise.
@@ -13432,11 +13224,13 @@ function isValidByEnum(value, enumSet) {
const matcherFromSource = memize(sourceConfig => {
switch (sourceConfig.source) {
case 'attribute':
- let matcher = attr(sourceConfig.selector, sourceConfig.attribute);
- if (sourceConfig.type === 'boolean') {
- matcher = toBooleanAttributeMatcher(matcher);
+ {
+ let matcher = attr(sourceConfig.selector, sourceConfig.attribute);
+ if (sourceConfig.type === 'boolean') {
+ matcher = toBooleanAttributeMatcher(matcher);
+ }
+ return matcher;
}
- return matcher;
case 'html':
return matchers_html(sourceConfig.selector, sourceConfig.multiline);
case 'text':
@@ -13446,12 +13240,15 @@ const matcherFromSource = memize(sourceConfig => {
case 'children':
return children_matcher(sourceConfig.selector);
case 'node':
- return node_matcher(sourceConfig.selector);
+ return matcher(sourceConfig.selector);
case 'query':
const subMatchers = Object.fromEntries(Object.entries(sourceConfig.query).map(([key, subSourceConfig]) => [key, matcherFromSource(subSourceConfig)]));
return query(sourceConfig.selector, subMatchers);
case 'tag':
- return (0,external_wp_compose_namespaceObject.pipe)([prop(sourceConfig.selector, 'nodeName'), nodeName => nodeName ? nodeName.toLowerCase() : undefined]);
+ {
+ const matcher = prop(sourceConfig.selector, 'nodeName');
+ return domNode => matcher(domNode)?.toLowerCase();
+ }
default:
// eslint-disable-next-line no-console
console.error(`Unknown source type "${sourceConfig.source}"`);
@@ -14041,7 +13838,11 @@ function htmlToBlocks(html, handler) {
blockName
} = rawTransform;
if (transform) {
- return transform(node, handler);
+ const block = transform(node, handler);
+ if (node.hasAttribute('class')) {
+ block.attributes.className = node.getAttribute('class');
+ }
+ return block;
}
return createBlock(blockName, getBlockAttributes(blockName, node.outerHTML));
});
@@ -14052,7 +13853,7 @@ function htmlToBlocks(html, handler) {
* WordPress dependencies
*/
-function normaliseBlocks(HTML) {
+function normaliseBlocks(HTML, options = {}) {
const decuDoc = document.implementation.createHTMLDocument('');
const accuDoc = document.implementation.createHTMLDocument('');
const decu = decuDoc.body;
@@ -14088,7 +13889,7 @@ function normaliseBlocks(HTML) {
}
} else if (node.nodeName === 'P') {
// Only append non-empty paragraph nodes.
- if ((0,external_wp_dom_namespaceObject.isEmpty)(node)) {
+ if ((0,external_wp_dom_namespaceObject.isEmpty)(node) && !options.raw) {
decu.removeChild(node);
} else {
accu.appendChild(node);
@@ -14133,49 +13934,18 @@ function specialCommentConverter(node, doc) {
if (node.nodeType !== node.COMMENT_NODE) {
return;
}
- if (node.nodeValue === 'nextpage') {
- (0,external_wp_dom_namespaceObject.replace)(node, createNextpage(doc));
+ if (node.nodeValue !== 'nextpage' && node.nodeValue.indexOf('more') !== 0) {
return;
}
- if (node.nodeValue.indexOf('more') === 0) {
- moreCommentConverter(node, doc);
- }
-}
-
-/**
- * Convert `<!--more-->` as well as the `<!--more Some text-->` variant
- * and its `<!--noteaser-->` companion into the custom element
- * described in `specialCommentConverter()`.
- *
- * @param {Node} node The node to be processed.
- * @param {Document} doc The document of the node.
- * @return {void}
- */
-function moreCommentConverter(node, doc) {
- // Grab any custom text in the comment.
- const customText = node.nodeValue.slice(4).trim();
-
- /*
- * When a `<!--more-->` comment is found, we need to look for any
- * `<!--noteaser-->` sibling, but it may not be a direct sibling
- * (whitespace typically lies in between)
- */
- let sibling = node;
- let noTeaser = false;
- while (sibling = sibling.nextSibling) {
- if (sibling.nodeType === sibling.COMMENT_NODE && sibling.nodeValue === 'noteaser') {
- noTeaser = true;
- (0,external_wp_dom_namespaceObject.remove)(sibling);
- break;
- }
- }
- const moreBlock = createMore(customText, noTeaser, doc);
+ const block = special_comment_converter_createBlock(node, doc);
// If our `<!--more-->` comment is in the middle of a paragraph, we should
- // split the paragraph in two and insert the more block in between. If not,
- // the more block will eventually end up being inserted after the paragraph.
- if (!node.parentNode || node.parentNode.nodeName !== 'P' || node.parentNode.childNodes.length === 1) {
- (0,external_wp_dom_namespaceObject.replace)(node, moreBlock);
+ // split the paragraph in two and insert the more block in between. If it's
+ // inside an empty paragraph, we should still move it out of the paragraph
+ // and remove the paragraph. If there's no paragraph, fall back to simply
+ // replacing the comment.
+ if (!node.parentNode || node.parentNode.nodeName !== 'P') {
+ (0,external_wp_dom_namespaceObject.replace)(node, block);
} else {
const childNodes = Array.from(node.parentNode.childNodes);
const nodeIndex = childNodes.indexOf(node);
@@ -14189,12 +13959,36 @@ function moreCommentConverter(node, doc) {
};
// Split the original parent node and insert our more block
- [childNodes.slice(0, nodeIndex).reduce(paragraphBuilder, null), moreBlock, childNodes.slice(nodeIndex + 1).reduce(paragraphBuilder, null)].forEach(element => element && wrapperNode.insertBefore(element, node.parentNode));
+ [childNodes.slice(0, nodeIndex).reduce(paragraphBuilder, null), block, childNodes.slice(nodeIndex + 1).reduce(paragraphBuilder, null)].forEach(element => element && wrapperNode.insertBefore(element, node.parentNode));
// Remove the old parent paragraph
(0,external_wp_dom_namespaceObject.remove)(node.parentNode);
}
}
+function special_comment_converter_createBlock(commentNode, doc) {
+ if (commentNode.nodeValue === 'nextpage') {
+ return createNextpage(doc);
+ }
+
+ // Grab any custom text in the comment.
+ const customText = commentNode.nodeValue.slice(4).trim();
+
+ /*
+ * When a `<!--more-->` comment is found, we need to look for any
+ * `<!--noteaser-->` sibling, but it may not be a direct sibling
+ * (whitespace typically lies in between)
+ */
+ let sibling = commentNode;
+ let noTeaser = false;
+ while (sibling = sibling.nextSibling) {
+ if (sibling.nodeType === sibling.COMMENT_NODE && sibling.nodeValue === 'noteaser') {
+ noTeaser = true;
+ (0,external_wp_dom_namespaceObject.remove)(sibling);
+ break;
+ }
+ }
+ return createMore(customText, noTeaser, doc);
+}
function createMore(customText, noTeaser, doc) {
const node = doc.createElement('wp-block');
node.dataset.block = 'core/more';
@@ -14253,9 +14047,6 @@ function listReducer(node) {
if (prevListItem) {
prevListItem.appendChild(list);
parentList.removeChild(parentListItem);
- } else {
- parentList.parentNode.insertBefore(list, parentList);
- parentList.parentNode.removeChild(parentList);
}
}
@@ -14275,11 +14066,13 @@ function listReducer(node) {
* Internal dependencies
*/
-function blockquoteNormaliser(node) {
- if (node.nodeName !== 'BLOCKQUOTE') {
- return;
- }
- node.innerHTML = normaliseBlocks(node.innerHTML);
+function blockquoteNormaliser(options) {
+ return node => {
+ if (node.nodeName !== 'BLOCKQUOTE') {
+ return;
+ }
+ node.innerHTML = normaliseBlocks(node.innerHTML, options);
+ };
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/figure-content-reducer.js
@@ -14390,6 +14183,8 @@ const external_wp_shortcode_namespaceObject = window["wp"]["shortcode"];
const castArray = maybeArray => Array.isArray(maybeArray) ? maybeArray : [maybeArray];
+const beforeLineRegexp = /(\n|<p>)\s*$/;
+const afterLineRegexp = /^\s*(\n|<\/p>)/;
function segmentHTMLToShortcodeBlock(HTML, lastIndex = 0, excludedBlockNames = []) {
// Get all matches.
const transformsFrom = getBlockTransforms('from');
@@ -14410,7 +14205,7 @@ function segmentHTMLToShortcodeBlock(HTML, lastIndex = 0, excludedBlockNames = [
// not on a new line (or in paragraph from Markdown converter),
// consider the shortcode as inline text, and thus skip conversion for
// this segment.
- if (!match.shortcode.content?.includes('<') && !(/(\n|<p>)\s*$/.test(beforeHTML) && /^\s*(\n|<\/p>)/.test(afterHTML))) {
+ if (!match.shortcode.content?.includes('<') && !(beforeLineRegexp.test(beforeHTML) && afterLineRegexp.test(afterHTML))) {
return segmentHTMLToShortcodeBlock(HTML, lastIndex);
}
@@ -14460,7 +14255,7 @@ function segmentHTMLToShortcodeBlock(HTML, lastIndex = 0, excludedBlockNames = [
block = applyBuiltInValidationFixes(block, transformationBlockType);
blocks = [block];
}
- return [...segmentHTMLToShortcodeBlock(beforeHTML), ...blocks, ...segmentHTMLToShortcodeBlock(afterHTML)];
+ return [...segmentHTMLToShortcodeBlock(beforeHTML.replace(beforeLineRegexp, '')), ...blocks, ...segmentHTMLToShortcodeBlock(afterHTML.replace(afterLineRegexp, ''))];
}
return [HTML];
}
@@ -14692,7 +14487,11 @@ function rawHandler({
}) {
// If we detect block delimiters, parse entirely as blocks.
if (HTML.indexOf('<!-- wp:') !== -1) {
- return parser_parse(HTML);
+ const parseResult = parser_parse(HTML);
+ const isSingleFreeFormBlock = parseResult.length === 1 && parseResult[0].name === 'core/freeform';
+ if (!isSingleFreeFormBlock) {
+ return parseResult;
+ }
}
// An array of HTML strings and block objects. The blocks replace matched
@@ -14717,9 +14516,13 @@ function rawHandler({
figureContentReducer,
// Needed to create the quote block, which cannot handle text
// without wrapper paragraphs.
- blockquoteNormaliser];
+ blockquoteNormaliser({
+ raw: true
+ })];
piece = deepFilterHTML(piece, filters, blockContentSchema);
- piece = normaliseBlocks(piece);
+ piece = normaliseBlocks(piece, {
+ raw: true
+ });
return htmlToBlocks(piece, rawHandler);
}).flat().filter(Boolean);
}
@@ -14866,7 +14669,9 @@ function msListIgnore(node) {
}
const rules = style.split(';').reduce((acc, rule) => {
const [key, value] = rule.split(':');
- acc[key.trim().toLowerCase()] = value.trim().toLowerCase();
+ if (key && value) {
+ acc[key.trim().toLowerCase()] = value.trim().toLowerCase();
+ }
return acc;
}, {});
if (rules['mso-list'] === 'ignore') {
@@ -15293,7 +15098,11 @@ function pasteHandler({
// Check plain text if there is no HTML.
const content = HTML ? HTML : plainText;
if (content.indexOf('<!-- wp:') !== -1) {
- return parser_parse(content);
+ const parseResult = parser_parse(content);
+ const isSingleFreeFormBlock = parseResult.length === 1 && parseResult[0].name === 'core/freeform';
+ if (!isSingleFreeFormBlock) {
+ return parseResult;
+ }
}
}
@@ -15357,7 +15166,7 @@ function pasteHandler({
if (typeof piece !== 'string') {
return piece;
}
- const filters = [googleDocsUIdRemover, msListConverter, headRemover, listReducer, imageCorrector, phrasingContentReducer, specialCommentConverter, commentRemover, iframeRemover, figureContentReducer, blockquoteNormaliser, divNormaliser];
+ const filters = [googleDocsUIdRemover, msListConverter, headRemover, listReducer, imageCorrector, phrasingContentReducer, specialCommentConverter, commentRemover, iframeRemover, figureContentReducer, blockquoteNormaliser(), divNormaliser];
const schema = {
...blockContentSchema,
// Keep top-level phrasing content, normalised by `normaliseBlocks`.
@@ -15508,6 +15317,28 @@ function doBlocksMatchTemplate(blocks = [], template = []) {
return name === block.name && doBlocksMatchTemplate(block.innerBlocks, innerBlocksTemplate);
});
}
+const isHTMLAttribute = attributeDefinition => attributeDefinition?.source === 'html';
+const isQueryAttribute = attributeDefinition => attributeDefinition?.source === 'query';
+function normalizeAttributes(schema, values) {
+ if (!values) {
+ return {};
+ }
+ return Object.fromEntries(Object.entries(values).map(([key, value]) => [key, normalizeAttribute(schema[key], value)]));
+}
+function normalizeAttribute(definition, value) {
+ if (isHTMLAttribute(definition) && Array.isArray(value)) {
+ // Introduce a deprecated call at this point
+ // When we're confident that "children" format should be removed from the templates.
+
+ return (0,external_wp_element_namespaceObject.renderToString)(value);
+ }
+ if (isQueryAttribute(definition) && value) {
+ return value.map(subValues => {
+ return normalizeAttributes(definition.query, subValues);
+ });
+ }
+ return value;
+}
/**
* Synchronize a block list with a block template.
@@ -15543,28 +15374,6 @@ function synchronizeBlocksWithTemplate(blocks = [], template) {
// before creating the blocks.
const blockType = getBlockType(name);
- const isHTMLAttribute = attributeDefinition => attributeDefinition?.source === 'html';
- const isQueryAttribute = attributeDefinition => attributeDefinition?.source === 'query';
- const normalizeAttributes = (schema, values) => {
- if (!values) {
- return {};
- }
- return Object.fromEntries(Object.entries(values).map(([key, value]) => [key, normalizeAttribute(schema[key], value)]));
- };
- const normalizeAttribute = (definition, value) => {
- if (isHTMLAttribute(definition) && Array.isArray(value)) {
- // Introduce a deprecated call at this point
- // When we're confident that "children" format should be removed from the templates.
-
- return (0,external_wp_element_namespaceObject.renderToString)(value);
- }
- if (isQueryAttribute(definition) && value) {
- return value.map(subValues => {
- return normalizeAttributes(definition.query, subValues);
- });
- }
- return value;
- };
const normalizedAttributes = normalizeAttributes((_blockType$attributes = blockType?.attributes) !== null && _blockType$attributes !== void 0 ? _blockType$attributes : {}, attributes);
let [blockName, blockAttributes] = convertLegacyBlockNameAndAttributes(name, normalizedAttributes);
diff --git a/wp-includes/js/dist/blocks.min.js b/wp-includes/js/dist/blocks.min.js
index f088d18..a07b9ae 100644
--- a/wp-includes/js/dist/blocks.min.js
+++ b/wp-includes/js/dist/blocks.min.js
@@ -9,11 +9,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case a:case s:case i:case p:case h:return e;default:switch(e=e&&e.$$typeof){case u:case l:case d:case g:case f:case c:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===s||e===i||e===p||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===r||void 0!==e.getModuleId)}},8529:(e,t,r)=>{"use strict";e.exports=r(5373)},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},r=Object.keys(t).join("|"),n=new RegExp(r,"g"),o=new RegExp(r,"");function a(e){return t[e]}var i=function(e){return e.replace(n,a)};e.exports=i,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=i},1030:function(e,t,r){var n;/*! showdown v 1.9.1 - 02-11-2019 */
-(function(){function o(e){"use strict";var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as <br> (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: <div>foo</div>",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 `<em>` and `<strong>`",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` 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 a={},i={},s={},c=o(!0),l="vanilla",u={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:o(!0),allOn:function(){"use strict";var e=o(!0),t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}()};function d(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};a.helper.isArray(e)||(e=[e]);for(var o=0;o<e.length;++o){var i=r+" sub-extension "+o+": ",s=e[o];if("object"!=typeof s)return n.valid=!1,n.error=i+"must be an object, but "+typeof s+" given",n;if(!a.helper.isString(s.type))return n.valid=!1,n.error=i+'property "type" must be a string, but '+typeof s.type+" given",n;var c=s.type=s.type.toLowerCase();if("language"===c&&(c=s.type="lang"),"html"===c&&(c=s.type="output"),"lang"!==c&&"output"!==c&&"listener"!==c)return n.valid=!1,n.error=i+"type "+c+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',n;if("listener"===c){if(a.helper.isUndefined(s.listeners))return n.valid=!1,n.error=i+'. Extensions of type "listener" must have a property called "listeners"',n}else if(a.helper.isUndefined(s.filter)&&a.helper.isUndefined(s.regex))return n.valid=!1,n.error=i+c+' extensions must define either a "regex" property or a "filter" method',n;if(s.listeners){if("object"!=typeof s.listeners)return n.valid=!1,n.error=i+'"listeners" property must be an object but '+typeof s.listeners+" given",n;for(var l in s.listeners)if(s.listeners.hasOwnProperty(l)&&"function"!=typeof s.listeners[l])return n.valid=!1,n.error=i+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+l+" must be a function but "+typeof s.listeners[l]+" given",n}if(s.filter){if("function"!=typeof s.filter)return n.valid=!1,n.error=i+'"filter" must be a function, but '+typeof s.filter+" given",n}else if(s.regex){if(a.helper.isString(s.regex)&&(s.regex=new RegExp(s.regex,"g")),!(s.regex instanceof RegExp))return n.valid=!1,n.error=i+'"regex" property must either be a string or a RegExp object, but '+typeof s.regex+" given",n;if(a.helper.isUndefined(s.replace))return n.valid=!1,n.error=i+'"regex" extensions must implement a replace string or function',n}}return n}function p(e,t){"use strict";return"¨E"+t.charCodeAt(0)+"E"}a.helper={},a.extensions={},a.setOption=function(e,t){"use strict";return c[e]=t,this},a.getOption=function(e){"use strict";return c[e]},a.getOptions=function(){"use strict";return c},a.resetOptions=function(){"use strict";c=o(!0)},a.setFlavor=function(e){"use strict";if(!u.hasOwnProperty(e))throw Error(e+" flavor was not found");a.resetOptions();var t=u[e];for(var r in l=e,t)t.hasOwnProperty(r)&&(c[r]=t[r])},a.getFlavor=function(){"use strict";return l},a.getFlavorOptions=function(e){"use strict";if(u.hasOwnProperty(e))return u[e]},a.getDefaultOptions=function(e){"use strict";return o(e)},a.subParser=function(e,t){"use strict";if(a.helper.isString(e)){if(void 0===t){if(i.hasOwnProperty(e))return i[e];throw Error("SubParser named "+e+" not registered!")}i[e]=t}},a.extension=function(e,t){"use strict";if(!a.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=a.helper.stdExtName(e),a.helper.isUndefined(t)){if(!s.hasOwnProperty(e))throw Error("Extension named "+e+" is not registered!");return s[e]}"function"==typeof t&&(t=t()),a.helper.isArray(t)||(t=[t]);var r=d(t,e);if(!r.valid)throw Error(r.error);s[e]=t},a.getAllExtensions=function(){"use strict";return s},a.removeExtension=function(e){"use strict";delete s[e]},a.resetExtensions=function(){"use strict";s={}},a.validateExtension=function(e){"use strict";var t=d(e,null);return!!t.valid||(console.warn(t.error),!1)},a.hasOwnProperty("helper")||(a.helper={}),a.helper.isString=function(e){"use strict";return"string"==typeof e||e instanceof String},a.helper.isFunction=function(e){"use strict";return e&&"[object Function]"==={}.toString.call(e)},a.helper.isArray=function(e){"use strict";return Array.isArray(e)},a.helper.isUndefined=function(e){"use strict";return void 0===e},a.helper.forEach=function(e,t){"use strict";if(a.helper.isUndefined(e))throw new Error("obj param is required");if(a.helper.isUndefined(t))throw new Error("callback param is required");if(!a.helper.isFunction(t))throw new Error("callback param must be a function/closure");if("function"==typeof e.forEach)e.forEach(t);else if(a.helper.isArray(e))for(var r=0;r<e.length;r++)t(e[r],r,e);else{if("object"!=typeof e)throw new Error("obj does not seem to be an array or an iterable object");for(var n in e)e.hasOwnProperty(n)&&t(e[n],n,e)}},a.helper.stdExtName=function(e){"use strict";return e.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()},a.helper.escapeCharactersCallback=p,a.helper.escapeCharacters=function(e,t,r){"use strict";var n="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";r&&(n="\\\\"+n);var o=new RegExp(n,"g");return e=e.replace(o,p)},a.helper.unescapeHTMLEntities=function(e){"use strict";return e.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};var h=function(e,t,r,n){"use strict";var o,a,i,s,c,l=n||"",u=l.indexOf("g")>-1,d=new RegExp(t+"|"+r,"g"+l.replace(/g/g,"")),p=new RegExp(t,l.replace(/g/g,"")),h=[];do{for(o=0;i=d.exec(e);)if(p.test(i[0]))o++||(s=(a=d.lastIndex)-i[0].length);else if(o&&! --o){c=i.index+i[0].length;var f={left:{start:s,end:a},match:{start:a,end:i.index},right:{start:i.index,end:c},wholeMatch:{start:s,end:c}};if(h.push(f),!u)return h}}while(o&&(d.lastIndex=a));return h};a.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var o=h(e,t,r,n),a=[],i=0;i<o.length;++i)a.push([e.slice(o[i].wholeMatch.start,o[i].wholeMatch.end),e.slice(o[i].match.start,o[i].match.end),e.slice(o[i].left.start,o[i].left.end),e.slice(o[i].right.start,o[i].right.end)]);return a},a.helper.replaceRecursiveRegExp=function(e,t,r,n,o){"use strict";if(!a.helper.isFunction(t)){var i=t;t=function(){return i}}var s=h(e,r,n,o),c=e,l=s.length;if(l>0){var u=[];0!==s[0].wholeMatch.start&&u.push(e.slice(0,s[0].wholeMatch.start));for(var d=0;d<l;++d)u.push(t(e.slice(s[d].wholeMatch.start,s[d].wholeMatch.end),e.slice(s[d].match.start,s[d].match.end),e.slice(s[d].left.start,s[d].left.end),e.slice(s[d].right.start,s[d].right.end))),d<l-1&&u.push(e.slice(s[d].wholeMatch.end,s[d+1].wholeMatch.start));s[l-1].wholeMatch.end<e.length&&u.push(e.slice(s[l-1].wholeMatch.end)),c=u.join("")}return c},a.helper.regexIndexOf=function(e,t,r){"use strict";if(!a.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(t instanceof RegExp==!1)throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var n=e.substring(r||0).search(t);return n>=0?n+(r||0):n},a.helper.splitAtIndex=function(e,t){"use strict";if(!a.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},a.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}))},a.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}}),a.helper.regexes={asteriskDashAndColon:/([*_:~])/g},a.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:"⛹️&zwj;♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴&zwj;♀️",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:"👱&zwj;♀️",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:"🙇&zwj;♀️",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:"👷&zwj;♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨&zwj;❤️&zwj;👨",couple_with_heart_woman_woman:"👩&zwj;❤️&zwj;👩",couplekiss_man_man:"👨&zwj;❤️&zwj;💋&zwj;👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩&zwj;❤️&zwj;💋&zwj;👩",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:"👯&zwj;♂️",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:"👁&zwj;🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨&zwj;👦",family_man_boy_boy:"👨&zwj;👦&zwj;👦",family_man_girl:"👨&zwj;👧",family_man_girl_boy:"👨&zwj;👧&zwj;👦",family_man_girl_girl:"👨&zwj;👧&zwj;👧",family_man_man_boy:"👨&zwj;👨&zwj;👦",family_man_man_boy_boy:"👨&zwj;👨&zwj;👦&zwj;👦",family_man_man_girl:"👨&zwj;👨&zwj;👧",family_man_man_girl_boy:"👨&zwj;👨&zwj;👧&zwj;👦",family_man_man_girl_girl:"👨&zwj;👨&zwj;👧&zwj;👧",family_man_woman_boy_boy:"👨&zwj;👩&zwj;👦&zwj;👦",family_man_woman_girl:"👨&zwj;👩&zwj;👧",family_man_woman_girl_boy:"👨&zwj;👩&zwj;👧&zwj;👦",family_man_woman_girl_girl:"👨&zwj;👩&zwj;👧&zwj;👧",family_woman_boy:"👩&zwj;👦",family_woman_boy_boy:"👩&zwj;👦&zwj;👦",family_woman_girl:"👩&zwj;👧",family_woman_girl_boy:"👩&zwj;👧&zwj;👦",family_woman_girl_girl:"👩&zwj;👧&zwj;👧",family_woman_woman_boy:"👩&zwj;👩&zwj;👦",family_woman_woman_boy_boy:"👩&zwj;👩&zwj;👦&zwj;👦",family_woman_woman_girl:"👩&zwj;👩&zwj;👧",family_woman_woman_girl_boy:"👩&zwj;👩&zwj;👧&zwj;👦",family_woman_woman_girl_girl:"👩&zwj;👩&zwj;👧&zwj;👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️&zwj;♀️",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:"🙍&zwj;♂️",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:"🏌️&zwj;♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂&zwj;♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇&zwj;♂️",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:"👨&zwj;🎨",man_astronaut:"👨&zwj;🚀",man_cartwheeling:"🤸&zwj;♂️",man_cook:"👨&zwj;🍳",man_dancing:"🕺",man_facepalming:"🤦&zwj;♂️",man_factory_worker:"👨&zwj;🏭",man_farmer:"👨&zwj;🌾",man_firefighter:"👨&zwj;🚒",man_health_worker:"👨&zwj;⚕️",man_in_tuxedo:"🤵",man_judge:"👨&zwj;⚖️",man_juggling:"🤹&zwj;♂️",man_mechanic:"👨&zwj;🔧",man_office_worker:"👨&zwj;💼",man_pilot:"👨&zwj;✈️",man_playing_handball:"🤾&zwj;♂️",man_playing_water_polo:"🤽&zwj;♂️",man_scientist:"👨&zwj;🔬",man_shrugging:"🤷&zwj;♂️",man_singer:"👨&zwj;🎤",man_student:"👨&zwj;🎓",man_teacher:"👨&zwj;🏫",man_technologist:"👨&zwj;💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆&zwj;♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼&zwj;♂️",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:"🚵&zwj;♀️",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:"🙅&zwj;♂️",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:"🙆&zwj;♂️",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:"👮&zwj;♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎&zwj;♂️",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:"🏳️&zwj;🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋&zwj;♂️",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:"🚣&zwj;♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃&zwj;♀️",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:"🏄&zwj;♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊&zwj;♀️",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:"💁&zwj;♂️",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:"🚶&zwj;♀️",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:"🏋️&zwj;♀️",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:"👩&zwj;🎨",woman_astronaut:"👩&zwj;🚀",woman_cartwheeling:"🤸&zwj;♀️",woman_cook:"👩&zwj;🍳",woman_facepalming:"🤦&zwj;♀️",woman_factory_worker:"👩&zwj;🏭",woman_farmer:"👩&zwj;🌾",woman_firefighter:"👩&zwj;🚒",woman_health_worker:"👩&zwj;⚕️",woman_judge:"👩&zwj;⚖️",woman_juggling:"🤹&zwj;♀️",woman_mechanic:"👩&zwj;🔧",woman_office_worker:"👩&zwj;💼",woman_pilot:"👩&zwj;✈️",woman_playing_handball:"🤾&zwj;♀️",woman_playing_water_polo:"🤽&zwj;♀️",woman_scientist:"👩&zwj;🔬",woman_shrugging:"🤷&zwj;♀️",woman_singer:"👩&zwj;🎤",woman_student:"👩&zwj;🎓",woman_teacher:"👩&zwj;🏫",woman_technologist:"👩&zwj;💻",woman_with_turban:"👳&zwj;♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼&zwj;♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:"<span style=\"font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;\">S</span>"},a.Converter=function(e){"use strict";var t={},r=[],n=[],o={},i=l,p={parsed:{},raw:"",format:""};function h(e,t){if(t=t||null,a.helper.isString(e)){if(t=e=a.helper.stdExtName(e),a.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 a.Converter));a.helper.isArray(e)||(e=[e]);var o=d(e,t);if(!o.valid)throw Error(o.error);for(var i=0;i<e.length;++i)switch(e[i].type){case"lang":r.push(e[i]);break;case"output":n.push(e[i]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}(a.extensions[e],e);if(a.helper.isUndefined(s[e]))throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.');e=s[e]}"function"==typeof e&&(e=e()),a.helper.isArray(e)||(e=[e]);var o=d(e,t);if(!o.valid)throw Error(o.error);for(var i=0;i<e.length;++i){switch(e[i].type){case"lang":r.push(e[i]);break;case"output":n.push(e[i])}if(e[i].hasOwnProperty("listeners"))for(var c in e[i].listeners)e[i].listeners.hasOwnProperty(c)&&f(c,e[i].listeners[c])}}function f(e,t){if(!a.helper.isString(e))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof e+" given");if("function"!=typeof t)throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof t+" given");o.hasOwnProperty(e)||(o[e]=[]),o[e].push(t)}!function(){for(var r in e=e||{},c)c.hasOwnProperty(r)&&(t[r]=c[r]);if("object"!=typeof e)throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.");for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.extensions&&a.helper.forEach(t.extensions,h)}(),this._dispatch=function(e,t,r,n){if(o.hasOwnProperty(e))for(var a=0;a<o[e].length;++a){var i=o[e][a](e,t,this,r,n);i&&void 0!==i&&(t=i)}return t},this.listen=function(e,t){return f(e,t),this},this.makeHtml=function(e){if(!e)return e;var o={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:r,outputModifiers:n,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return e=(e=(e=(e=(e=e.replace(/¨/g,"¨T")).replace(/\$/g,"¨D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/\u00A0/g,"&nbsp;"),t.smartIndentationFix&&(e=function(e){var t=e.match(/^\s*/)[0].length,r=new RegExp("^\\s{0,"+t+"}","gm");return e.replace(r,"")}(e)),e="\n\n"+e+"\n\n",e=(e=a.subParser("detab")(e,t,o)).replace(/^[ \t]+$/gm,""),a.helper.forEach(r,(function(r){e=a.subParser("runExtension")(r,e,t,o)})),e=a.subParser("metadata")(e,t,o),e=a.subParser("hashPreCodeTags")(e,t,o),e=a.subParser("githubCodeBlocks")(e,t,o),e=a.subParser("hashHTMLBlocks")(e,t,o),e=a.subParser("hashCodeTags")(e,t,o),e=a.subParser("stripLinkDefinitions")(e,t,o),e=a.subParser("blockGamut")(e,t,o),e=a.subParser("unhashHTMLSpans")(e,t,o),e=(e=(e=a.subParser("unescapeSpecialChars")(e,t,o)).replace(/¨D/g,"$$")).replace(/¨T/g,"¨"),e=a.subParser("completeHTMLDocument")(e,t,o),a.helper.forEach(n,(function(r){e=a.subParser("runExtension")(r,e,t,o)})),p=o.metadata,e},this.makeMarkdown=this.makeMd=function(e,t){if(e=(e=(e=e.replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/>[ \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<t.length;++n)if(1===t[n].childElementCount&&"code"===t[n].firstChild.tagName.toLowerCase()){var o=t[n].firstChild.innerHTML.trim(),i=t[n].firstChild.getAttribute("data-language")||"";if(""===i)for(var s=t[n].firstChild.className.split(" "),c=0;c<s.length;++c){var l=s[c].match(/^language-(.+)$/);if(null!==l){i=l[1];break}}o=a.helper.unescapeHTMLEntities(o),r.push(o),t[n].outerHTML='<precode language="'+i+'" precodenum="'+n.toString()+'"></precode>'}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<t.childNodes.length;++r){var n=t.childNodes[r];3===n.nodeType?/\S/.test(n.nodeValue)?(n.nodeValue=n.nodeValue.split("\n").join(" "),n.nodeValue=n.nodeValue.replace(/(\s)+/g,"$1")):(t.removeChild(n),--r):1===n.nodeType&&e(n)}}(r);for(var o=r.childNodes,i="",s=0;s<o.length;s++)i+=a.subParser("makeMarkdown.node")(o[s],n);return i},this.setOption=function(e,r){t[e]=r},this.getOption=function(e){return t[e]},this.getOptions=function(){return t},this.addExtension=function(e,t){h(e,t=t||null)},this.useExtension=function(e){h(e)},this.setFlavor=function(e){if(!u.hasOwnProperty(e))throw Error(e+" flavor was not found");var r=u[e];for(var n in i=e,r)r.hasOwnProperty(n)&&(t[n]=r[n])},this.getFlavor=function(){return i},this.removeExtension=function(e){a.helper.isArray(e)||(e=[e]);for(var t=0;t<e.length;++t){for(var o=e[t],i=0;i<r.length;++i)r[i]===o&&r[i].splice(i,1);for(;0<n.length;++i)n[0]===o&&n[0].splice(i,1)}},this.getAllExtensions=function(){return{language:r,output:n}},this.getMetadata=function(e){return e?p.raw:p.parsed},this.getMetadataFormat=function(){return p.format},this._setMetadataPair=function(e,t){p.parsed[e]=t},this._setMetadataFormat=function(e){p.format=e},this._setMetadataRaw=function(e){p.raw=e}},a.subParser("anchors",(function(e,t,r){"use strict";var n=function(e,n,o,i,s,c,l){if(a.helper.isUndefined(l)&&(l=""),o=o.toLowerCase(),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)i="";else if(!i){if(o||(o=n.toLowerCase().replace(/ ?\n/g," ")),i="#"+o,a.helper.isUndefined(r.gUrls[o]))return e;i=r.gUrls[o],a.helper.isUndefined(r.gTitles[o])||(l=r.gTitles[o])}var u='<a href="'+(i=i.replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback))+'"';return""!==l&&null!==l&&(u+=' title="'+(l=(l=l.replace(/"/g,"&quot;")).replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback))+'"'),t.openLinksInNewWindow&&!/^#/.test(i)&&(u+=' rel="noopener noreferrer" target="¨E95Eblank"'),u+=">"+n+"</a>"};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]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \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,o,i){if("\\"===n)return r+o;if(!a.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 href="'+s+'"'+c+">"+o+"</a>"}))),e=r.converter._dispatch("anchors.after",e,t,r)}));var f=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,g=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,m=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,b=/(^|\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,k=function(e){"use strict";return function(t,r,n,o,i,s,c){var l=n=n.replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback),u="",d="",p=r||"",h=c||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(u=s),e.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="¨E95Eblank"'),p+'<a href="'+n+'"'+d+">"+l+"</a>"+u+h}},y=function(e,t){"use strict";return function(r,n,o){var i="mailto:";return n=n||"",o=a.subParser("unescapeSpecialChars")(o,e,t),e.encodeEmails?(i=a.helper.encodeEmailAddress(i+o),o=a.helper.encodeEmailAddress(o)):i+=o,n+'<a href="'+i+'">'+o+"</a>"}};a.subParser("autoLinks",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(m,k(t))).replace(_,y(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)})),a.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(g,k(t)):e.replace(f,k(t))).replace(b,y(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e})),a.subParser("blockGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=a.subParser("blockQuotes")(e,t,r),e=a.subParser("headers")(e,t,r),e=a.subParser("horizontalRule")(e,t,r),e=a.subParser("lists")(e,t,r),e=a.subParser("codeBlocks")(e,t,r),e=a.subParser("tables")(e,t,r),e=a.subParser("hashHTMLBlocks")(e,t,r),e=a.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)})),a.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=a.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=a.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,(function(e,t){var r=t;return r=(r=r.replace(/^ /gm,"¨0")).replace(/¨0/g,"")})),a.subParser("hashBlock")("<blockquote>\n"+e+"\n</blockquote>",t,r)})),e=r.converter._dispatch("blockQuotes.after",e,t,r)})),a.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,o){var i=n,s=o,c="\n";return i=a.subParser("outdent")(i,t,r),i=a.subParser("encodeCode")(i,t,r),i=(i=(i=a.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(c=""),i="<pre><code>"+i+c+"</code></pre>",a.subParser("hashBlock")(i,t,r)+s}))).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)})),a.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,o,i){var s=i;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=n+"<code>"+(s=a.subParser("encodeCode")(s,t,r))+"</code>",s=a.subParser("hashHTMLSpans")(s,t,r)})),e=r.converter._dispatch("codeSpans.after",e,t,r)})),a.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",o="<!DOCTYPE HTML>\n",a="",i='<meta charset="utf-8">\n',s="",c="";for(var l in void 0!==r.metadata.parsed.doctype&&(o="<!DOCTYPE "+r.metadata.parsed.doctype+">\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(i='<meta charset="utf-8">')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(l))switch(l.toLowerCase()){case"doctype":break;case"title":a="<title>"+r.metadata.parsed.title+"</title>\n";break;case"charset":i="html"===n||"html5"===n?'<meta charset="'+r.metadata.parsed.charset+'">\n':'<meta name="charset" content="'+r.metadata.parsed.charset+'">\n';break;case"language":case"lang":s=' lang="'+r.metadata.parsed[l]+'"',c+='<meta name="'+l+'" content="'+r.metadata.parsed[l]+'">\n';break;default:c+='<meta name="'+l+'" content="'+r.metadata.parsed[l]+'">\n'}return e=o+"<html"+s+">\n<head>\n"+a+i+c+"</head>\n<body>\n"+e.trim()+"\n</body>\n</html>",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)})),a.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,o=0;o<n;o++)r+=" ";return r}))).replace(/¨A/g," ")).replace(/¨B/g,""),e=r.converter._dispatch("detab.after",e,t,r)})),a.subParser("ellipsis",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("ellipsis.before",e,t,r)).replace(/\.\.\./g,"…"),e=r.converter._dispatch("ellipsis.after",e,t,r)})),a.subParser("emoji",(function(e,t,r){"use strict";if(!t.emoji)return e;return e=(e=r.converter._dispatch("emoji.before",e,t,r)).replace(/:([\S]+?):/g,(function(e,t){return a.helper.emojis.hasOwnProperty(t)?a.helper.emojis[t]:e})),e=r.converter._dispatch("emoji.after",e,t,r)})),a.subParser("encodeAmpsAndAngles",(function(e,t,r){"use strict";return e=(e=(e=(e=(e=r.converter._dispatch("encodeAmpsAndAngles.before",e,t,r)).replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;")).replace(/<(?![a-z\/?$!])/gi,"&lt;")).replace(/</g,"&lt;")).replace(/>/g,"&gt;"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)})),a.subParser("encodeBackslashEscapes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,a.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),a.subParser("encodeCode",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)})),a.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,a.helper.escapeCharactersCallback)}))).replace(/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,a.helper.escapeCharactersCallback)})),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),a.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,o,i){var s=t.omitExtraWLInCodeBlocks?"":"\n";return i=a.subParser("encodeCode")(i,t,r),i="<pre><code"+(o?' class="'+o+" language-"+o+'"':"")+">"+(i=(i=(i=a.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"</code></pre>",i=a.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})),a.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)})),a.subParser("hashCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=a.helper.replaceRecursiveRegExp(e,(function(e,n,o,i){var s=o+a.subParser("encodeCode")(n,t,r)+i;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"}),"<code\\b[^>]*>","</code>","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)})),a.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"}})),a.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"],o=function(e,t,n,o){var a=e;return-1!==n.search(/\bmarkdown\b/)&&(a=n+r.converter.makeHtml(t)+o),"\n\n¨K"+(r.gHtmlBlocks.push(a)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"&lt;"+t+"&gt;"})));for(var i=0;i<n.length;++i)for(var s,c=new RegExp("^ {0,3}(<"+n[i]+"\\b[^>]*>)","im"),l="<"+n[i]+"\\b[^>]*>",u="</"+n[i]+">";-1!==(s=a.helper.regexIndexOf(e,c));){var d=a.helper.splitAtIndex(e,s),p=a.helper.replaceRecursiveRegExp(d[1],o,l,u,"im");if(p===d[1])break;e=d[0].concat(p)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(e,t,r)),e=(e=a.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,a.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),a.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)})),a.subParser("unhashHTMLSpans",(function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n<r.gHtmlSpans.length;++n){for(var o=r.gHtmlSpans[n],a=0;/¨C(\d+)C/.test(o);){var i=RegExp.$1;if(o=o.replace("¨C"+i+"C",r.gHtmlSpans[i]),10===a){console.error("maximum nesting of 10 spans reached!!!");break}++a}e=e.replace("¨C"+n+"C",o)}return e=r.converter._dispatch("unhashHTMLSpans.after",e,t,r)})),a.subParser("hashPreCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashPreCodeTags.before",e,t,r);return e=a.helper.replaceRecursiveRegExp(e,(function(e,n,o,i){var s=o+a.subParser("encodeCode")(n,t,r)+i;return"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"}),"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),a.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),o=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(o,(function(e,o){var i=a.subParser("spanGamut")(o,t,r),s=t.noHeaderId?"":' id="'+c(o)+'"',l="<h"+n+s+">"+i+"</h"+n+">";return a.subParser("hashBlock")(l,t,r)}))).replace(i,(function(e,o){var i=a.subParser("spanGamut")(o,t,r),s=t.noHeaderId?"":' id="'+c(o)+'"',l=n+1,u="<h"+l+s+">"+i+"</h"+l+">";return a.subParser("hashBlock")(u,t,r)}));var s=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function c(e){var n,o;if(t.customizedHeaderId){var i=e.match(/\{([^{]+?)}\s*$/);i&&i[1]&&(e=i[1])}return n=e,o=a.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(n=o+n),n=t.ghCompatibleHeaderId?n.replace(/ /g,"-").replace(/&amp;/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?n.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():n.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(n=o+n),r.hashLinkCounts[n]?n=n+"-"+r.hashLinkCounts[n]++:r.hashLinkCounts[n]=1,n}return e=e.replace(s,(function(e,o,i){var s=i;t.customizedHeaderId&&(s=i.replace(/\s?\{([^{]+?)}\s*$/,""));var l=a.subParser("spanGamut")(s,t,r),u=t.noHeaderId?"":' id="'+c(i)+'"',d=n-1+o.length,p="<h"+d+u+">"+l+"</h"+d+">";return a.subParser("hashBlock")(p,t,r)})),e=r.converter._dispatch("headers.after",e,t,r)})),a.subParser("horizontalRule",(function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=a.subParser("hashBlock")("<hr />",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)})),a.subParser("images",(function(e,t,r){"use strict";function n(e,t,n,o,i,s,c,l){var u=r.gUrls,d=r.gTitles,p=r.gDimensions;if(n=n.toLowerCase(),l||(l=""),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)o="";else if(""===o||null===o){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),o="#"+n,a.helper.isUndefined(u[n]))return e;o=u[n],a.helper.isUndefined(d[n])||(l=d[n]),a.helper.isUndefined(p[n])||(i=p[n].width,s=p[n].height)}t=t.replace(/"/g,"&quot;").replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback);var h='<img src="'+(o=o.replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback))+'" alt="'+t+'"';return l&&a.helper.isString(l)&&(h+=' title="'+(l=l.replace(/"/g,"&quot;").replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback))+'"'),i&&s&&(h+=' width="'+(i="*"===i?"auto":i)+'"',h+=' height="'+(s="*"===s?"auto":s)+'"'),h+=" />"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,r,o,a,i,s,c){return n(e,t,r,o=o.replace(/\s/g,""),a,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]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\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)})),a.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,"<strong><em>","</em></strong>")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return n(t,"<strong>","</strong>")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return n(t,"<em>","</em>")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong><em>","</em></strong>"):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong>","</strong>"):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?n(t,"<em>","</em>"):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"<strong><em>","</em></strong>")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"<strong>","</strong>")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"<em>","</em>")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong><em>","</em></strong>"):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong>","</strong>"):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?n(t,"<em>","</em>"):e})),e=r.converter._dispatch("italicsAndBold.after",e,t,r)})),a.subParser("lists",(function(e,t,r){"use strict";function n(e,n){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var o=/(\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&&(o=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(o,(function(e,n,o,s,c,l,u){u=u&&""!==u.trim();var d=a.subParser("outdent")(c,t,r),p="";return l&&t.tasklists&&(p=' class="task-list-item" style="list-style-type: none;"',d=d.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return u&&(e+=" checked"),e+=">"}))),d=d.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,(function(e){return"¨A"+e})),n||d.search(/\n{2,}/)>-1?(d=a.subParser("githubCodeBlocks")(d,t,r),d=a.subParser("blockGamut")(d,t,r)):(d=(d=a.subParser("lists")(d,t,r)).replace(/\n$/,""),d=(d=a.subParser("hashHTMLBlocks")(d,t,r)).replace(/\n\n+/g,"\n\n"),d=i?a.subParser("paragraphs")(d,t,r):a.subParser("spanGamut")(d,t,r)),d="<li"+p+">"+(d=d.replace("¨A",""))+"</li>\n"}))).replace(/¨0/g,""),r.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function o(e,t){if("ol"===t){var r=e.match(/^ *(\d+)\./);if(r&&"1"!==r[1])return' start="'+r[1]+'"'}return""}function i(e,r,a){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,l="";if(-1!==e.search(c))!function t(u){var d=u.search(c),p=o(e,r);-1!==d?(l+="\n\n<"+r+p+">\n"+n(u.slice(0,d),!!a)+"</"+r+">\n",c="ul"===(r="ul"===r?"ol":"ul")?i:s,t(u.slice(d))):l+="\n\n<"+r+p+">\n"+n(u,!!a)+"</"+r+">\n"}(e);else{var u=o(e,r);l="\n\n<"+r+u+">\n"+n(e,!!a)+"</"+r+">\n"}return l}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)})),a.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,"&amp;").replace(/"/g,"&quot;")).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,o){return t&&(r.metadata.format=t),n(o),"¨M"}))).replace(/¨M/g,""),e=r.converter._dispatch("metadata.after",e,t,r)})),a.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)})),a.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),o=[],i=n.length,s=0;s<i;s++){var c=n[s];c.search(/¨(K|G)(\d+)\1/g)>=0?o.push(c):c.search(/\S/)>=0&&(c=(c=a.subParser("spanGamut")(c,t,r)).replace(/^([ \t]*)/g,"<p>"),c+="</p>",o.push(c))}for(i=o.length,s=0;s<i;s++){for(var l="",u=o[s],d=!1;/¨(K|G)(\d+)\1/.test(u);){var p=RegExp.$1,h=RegExp.$2;l=(l="K"===p?r.gHtmlBlocks[h]:d?a.subParser("encodeCode")(r.ghCodeBlocks[h].text,t,r):r.ghCodeBlocks[h].codeblock).replace(/\$/g,"$$$$"),u=u.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,l),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(u)&&(d=!0)}o[s]=u}return e=(e=(e=o.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),a.subParser("runExtension",(function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var o=e.regex;o instanceof RegExp||(o=new RegExp(o,"g")),t=t.replace(o,e.replace)}return t})),a.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=a.subParser("codeSpans")(e,t,r),e=a.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=a.subParser("encodeBackslashEscapes")(e,t,r),e=a.subParser("images")(e,t,r),e=a.subParser("anchors")(e,t,r),e=a.subParser("autoLinks")(e,t,r),e=a.subParser("simplifiedAutoLinks")(e,t,r),e=a.subParser("emoji")(e,t,r),e=a.subParser("underline")(e,t,r),e=a.subParser("italicsAndBold")(e,t,r),e=a.subParser("strikethrough")(e,t,r),e=a.subParser("ellipsis")(e,t,r),e=a.subParser("hashHTMLSpans")(e,t,r),e=a.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"<br />\n")):e=e.replace(/ +\n/g,"<br />\n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),a.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=a.subParser("simplifiedAutoLinks")(e,t,r)),"<del>"+e+"</del>"}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),a.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(e,n,o,i,s,c,l){return n=n.toLowerCase(),o.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=o.replace(/\s/g,""):r.gUrls[n]=a.subParser("encodeAmpsAndAngles")(o,t,r),c?c+l:(l&&(r.gTitles[n]=l.replace(/"|'/g,"&quot;")),t.parseImgDimensions&&i&&s&&(r.gDimensions[n]={width:i,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\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/,"")})),a.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return"<td"+n+">"+a.subParser("spanGamut")(e,t,r)+"</td>\n"}function o(e){var o,i=e.split("\n");for(o=0;o<i.length;++o)/^ {0,3}\|/.test(i[o])&&(i[o]=i[o].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(i[o])&&(i[o]=i[o].replace(/\|[ \t]*$/,"")),i[o]=a.subParser("codeSpans")(i[o],t,r);var s,c,l,u,d=i[0].split("|").map((function(e){return e.trim()})),p=i[1].split("|").map((function(e){return e.trim()})),h=[],f=[],g=[],m=[];for(i.shift(),i.shift(),o=0;o<i.length;++o)""!==i[o].trim()&&h.push(i[o].split("|").map((function(e){return e.trim()})));if(d.length<p.length)return e;for(o=0;o<p.length;++o)g.push((s=p[o],/^:[ \t]*--*$/.test(s)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(s)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(s)?' style="text-align:center;"':""));for(o=0;o<d.length;++o)a.helper.isUndefined(g[o])&&(g[o]=""),f.push((c=d[o],l=g[o],u=void 0,u="",c=c.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(u=' id="'+c.replace(/ /g,"_").toLowerCase()+'"'),"<th"+u+l+">"+(c=a.subParser("spanGamut")(c,t,r))+"</th>\n"));for(o=0;o<h.length;++o){for(var b=[],_=0;_<f.length;++_)a.helper.isUndefined(h[o][_]),b.push(n(h[o][_],g[_]));m.push(b)}return function(e,t){for(var r="<table>\n<thead>\n<tr>\n",n=e.length,o=0;o<n;++o)r+=e[o];for(r+="</tr>\n</thead>\n<tbody>\n",o=0;o<t.length;++o){r+="<tr>\n";for(var a=0;a<n;++a)r+=t[o][a];r+="</tr>\n"}return r+"</tbody>\n</table>\n"}(f,m)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,a.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,o)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,o),e=r.converter._dispatch("tables.after",e,t,r)})),a.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"<u>"+t+"</u>"}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return"<u>"+t+"</u>"})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))).replace(/(_)/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),a.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)})),a.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,o=n.length,i=0;i<o;++i){var s=a.subParser("makeMarkdown.node")(n[i],t);""!==s&&(r+=s)}return r="> "+(r=r.trim()).split("\n").join("\n> ")})),a.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),a.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),a.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,o=n.length,i=0;i<o;++i)r+=a.subParser("makeMarkdown.node")(n[i],t);r+="*"}return r})),a.subParser("makeMarkdown.header",(function(e,t,r){"use strict";var n=new Array(r+1).join("#"),o="";if(e.hasChildNodes()){o=n+" ";for(var i=e.childNodes,s=i.length,c=0;c<s;++c)o+=a.subParser("makeMarkdown.node")(i[c],t)}return o})),a.subParser("makeMarkdown.hr",(function(){"use strict";return"---"})),a.subParser("makeMarkdown.image",(function(e){"use strict";var t="";return e.hasAttribute("src")&&(t+="!["+e.getAttribute("alt")+"](",t+="<"+e.getAttribute("src")+">",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),a.subParser("makeMarkdown.links",(function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,o=n.length;r="[";for(var i=0;i<o;++i)r+=a.subParser("makeMarkdown.node")(n[i],t);r+="](",r+="<"+e.getAttribute("href")+">",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),a.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var o=e.childNodes,i=o.length,s=e.getAttribute("start")||1,c=0;c<i;++c)if(void 0!==o[c].tagName&&"li"===o[c].tagName.toLowerCase()){n+=("ol"===r?s.toString()+". ":"- ")+a.subParser("makeMarkdown.listItem")(o[c],t),++s}return(n+="\n\x3c!-- --\x3e\n").trim()})),a.subParser("makeMarkdown.listItem",(function(e,t){"use strict";for(var r="",n=e.childNodes,o=n.length,i=0;i<o;++i)r+=a.subParser("makeMarkdown.node")(n[i],t);return/\n$/.test(r)?r=r.split("\n").join("\n ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n"):r+="\n",r})),a.subParser("makeMarkdown.node",(function(e,t,r){"use strict";r=r||!1;var n="";if(3===e.nodeType)return a.subParser("makeMarkdown.txt")(e,t);if(8===e.nodeType)return"\x3c!--"+e.data+"--\x3e\n\n";if(1!==e.nodeType)return"";switch(e.tagName.toLowerCase()){case"h1":r||(n=a.subParser("makeMarkdown.header")(e,t,1)+"\n\n");break;case"h2":r||(n=a.subParser("makeMarkdown.header")(e,t,2)+"\n\n");break;case"h3":r||(n=a.subParser("makeMarkdown.header")(e,t,3)+"\n\n");break;case"h4":r||(n=a.subParser("makeMarkdown.header")(e,t,4)+"\n\n");break;case"h5":r||(n=a.subParser("makeMarkdown.header")(e,t,5)+"\n\n");break;case"h6":r||(n=a.subParser("makeMarkdown.header")(e,t,6)+"\n\n");break;case"p":r||(n=a.subParser("makeMarkdown.paragraph")(e,t)+"\n\n");break;case"blockquote":r||(n=a.subParser("makeMarkdown.blockquote")(e,t)+"\n\n");break;case"hr":r||(n=a.subParser("makeMarkdown.hr")(e,t)+"\n\n");break;case"ol":r||(n=a.subParser("makeMarkdown.list")(e,t,"ol")+"\n\n");break;case"ul":r||(n=a.subParser("makeMarkdown.list")(e,t,"ul")+"\n\n");break;case"precode":r||(n=a.subParser("makeMarkdown.codeBlock")(e,t)+"\n\n");break;case"pre":r||(n=a.subParser("makeMarkdown.pre")(e,t)+"\n\n");break;case"table":r||(n=a.subParser("makeMarkdown.table")(e,t)+"\n\n");break;case"code":n=a.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":n=a.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":n=a.subParser("makeMarkdown.strong")(e,t);break;case"del":n=a.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":n=a.subParser("makeMarkdown.links")(e,t);break;case"img":n=a.subParser("makeMarkdown.image")(e,t);break;default:n=e.outerHTML+"\n\n"}return n})),a.subParser("makeMarkdown.paragraph",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,o=n.length,i=0;i<o;++i)r+=a.subParser("makeMarkdown.node")(n[i],t);return r=r.trim()})),a.subParser("makeMarkdown.pre",(function(e,t){"use strict";var r=e.getAttribute("prenum");return"<pre>"+t.preList[r]+"</pre>"})),a.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,o=n.length,i=0;i<o;++i)r+=a.subParser("makeMarkdown.node")(n[i],t);r+="~~"}return r})),a.subParser("makeMarkdown.strong",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="**";for(var n=e.childNodes,o=n.length,i=0;i<o;++i)r+=a.subParser("makeMarkdown.node")(n[i],t);r+="**"}return r})),a.subParser("makeMarkdown.table",(function(e,t){"use strict";var r,n,o="",i=[[],[]],s=e.querySelectorAll("thead>tr>th"),c=e.querySelectorAll("tbody>tr");for(r=0;r<s.length;++r){var l=a.subParser("makeMarkdown.tableCell")(s[r],t),u="---";if(s[r].hasAttribute("style"))switch(s[r].getAttribute("style").toLowerCase().replace(/\s/g,"")){case"text-align:left;":u=":---";break;case"text-align:right;":u="---:";break;case"text-align:center;":u=":---:"}i[0][r]=l.trim(),i[1][r]=u}for(r=0;r<c.length;++r){var d=i.push([])-1,p=c[r].getElementsByTagName("td");for(n=0;n<s.length;++n){var h=" ";void 0!==p[n]&&(h=a.subParser("makeMarkdown.tableCell")(p[n],t)),i[d].push(h)}}var f=3;for(r=0;r<i.length;++r)for(n=0;n<i[r].length;++n){var g=i[r][n].length;g>f&&(f=g)}for(r=0;r<i.length;++r){for(n=0;n<i[r].length;++n)1===r?":"===i[r][n].slice(-1)?i[r][n]=a.helper.padEnd(i[r][n].slice(-1),f-1,"-")+":":i[r][n]=a.helper.padEnd(i[r][n],f,"-"):i[r][n]=a.helper.padEnd(i[r][n],f);o+="| "+i[r].join(" | ")+" |\n"}return o.trim()})),a.subParser("makeMarkdown.tableCell",(function(e,t){"use strict";var r="";if(!e.hasChildNodes())return"";for(var n=e.childNodes,o=n.length,i=0;i<o;++i)r+=a.subParser("makeMarkdown.node")(n[i],t,!0);return r.trim()})),a.subParser("makeMarkdown.txt",(function(e){"use strict";var t=e.nodeValue;return t=(t=t.replace(/ +/g," ")).replace(/¨NBSP;/g," "),t=(t=(t=(t=(t=(t=(t=(t=(t=a.helper.unescapeHTMLEntities(t)).replace(/([*_~|`])/g,"\\$1")).replace(/^(\s*)>/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 a}.call(t,r,t,e))||(e.exports=n)}).call(this)}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n].call(a.exports,a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{__EXPERIMENTAL_ELEMENTS:()=>X,__EXPERIMENTAL_PATHS_WITH_OVERRIDE:()=>J,__EXPERIMENTAL_STYLE_PROPERTY:()=>Z,__experimentalCloneSanitizedBlock:()=>_r,__experimentalGetAccessibleBlockLabel:()=>He,__experimentalGetBlockAttributesNamesByRole:()=>Ue,__experimentalGetBlockLabel:()=>Re,__experimentalSanitizeBlockAttributes:()=>$e,__unstableGetBlockProps:()=>Vr,__unstableGetInnerBlocksProps:()=>$r,__unstableSerializeAndClean:()=>Wr,children:()=>Gn,cloneBlock:()=>kr,createBlock:()=>mr,createBlocksFromInnerBlocksTemplate:()=>br,doBlocksMatchTemplate:()=>Yo,findTransform:()=>Er,getBlockAttributes:()=>Xn,getBlockContent:()=>qr,getBlockDefaultClassName:()=>zr,getBlockFromExample:()=>Nr,getBlockMenuDefaultClassName:()=>Ir,getBlockSupport:()=>we,getBlockTransforms:()=>Sr,getBlockType:()=>ke,getBlockTypes:()=>ye,getBlockVariations:()=>Ne,getCategories:()=>Go,getChildBlockNames:()=>xe,getDefaultBlockName:()=>_e,getFreeformContentHandlerName:()=>pe,getGroupingBlockName:()=>he,getPhrasingContentSchema:()=>vo,getPossibleBlockTransformations:()=>xr,getSaveContent:()=>Fr,getSaveElement:()=>Ur,getUnregisteredTypeHandlerName:()=>ge,hasBlockSupport:()=>ve,hasChildBlocks:()=>Ee,hasChildBlocksWithInserterSupport:()=>Se,isReusableBlock:()=>Te,isTemplatePart:()=>Ce,isUnmodifiedBlock:()=>Me,isUnmodifiedDefaultBlock:()=>je,isValidBlockContent:()=>Ln,isValidIcon:()=>De,node:()=>$n,normalizeIconObject:()=>ze,parse:()=>oo,parseWithAttributeSchema:()=>Zn,pasteHandler:()=>qo,rawHandler:()=>To,registerBlockCollection:()=>le,registerBlockStyle:()=>Be,registerBlockType:()=>se,registerBlockVariation:()=>Pe,serialize:()=>Yr,serializeRawBlock:()=>Dr,setCategories:()=>Ko,setDefaultBlockName:()=>me,setFreeformContentHandlerName:()=>de,setGroupingBlockName:()=>be,setUnregisteredTypeHandlerName:()=>fe,store:()=>cr,switchToBlockType:()=>Ar,synchronizeBlocksWithTemplate:()=>Qo,unregisterBlockStyle:()=>Ae,unregisterBlockType:()=>ue,unregisterBlockVariation:()=>Oe,unstable__bootstrapServerSideBlockDefinitions:()=>ae,updateCategory:()=>Wo,validateBlock:()=>On,withBlockContentContext:()=>Zo});var e={};r.r(e),r.d(e,{__experimentalHasContentRoleAttribute:()=>St,getActiveBlockVariation:()=>ht,getBlockStyles:()=>dt,getBlockSupport:()=>vt,getBlockType:()=>ut,getBlockTypes:()=>lt,getBlockVariations:()=>pt,getCategories:()=>gt,getChildBlockNames:()=>wt,getCollections:()=>mt,getDefaultBlockName:()=>bt,getDefaultBlockVariation:()=>ft,getFreeformFallbackBlockName:()=>_t,getGroupingBlockName:()=>yt,getUnregisteredFallbackBlockName:()=>kt,hasBlockSupport:()=>Tt,hasChildBlocks:()=>xt,hasChildBlocksWithInserterSupport:()=>Et,isMatchingSearchTerm:()=>Ct});var t={};r.r(t),r.d(t,{getAllBlockBindingsSources:()=>Lt,getBlockBindingsSource:()=>Mt,getBootstrappedBlockType:()=>Pt,getSupportedStyles:()=>Nt,getUnprocessedBlockTypes:()=>Ot});var o={};r.r(o),r.d(o,{__experimentalReapplyBlockFilters:()=>qt,addBlockCollection:()=>nr,addBlockStyles:()=>Kt,addBlockTypes:()=>Ut,addBlockVariations:()=>Yt,reapplyBlockTypeFilters:()=>Ft,removeBlockCollection:()=>or,removeBlockStyles:()=>Wt,removeBlockTypes:()=>Gt,removeBlockVariations:()=>Qt,setCategories:()=>tr,setDefaultBlockName:()=>Zt,setFreeformFallbackBlockName:()=>Xt,setGroupingBlockName:()=>er,setUnregisteredFallbackBlockName:()=>Jt,updateCategory:()=>rr});var a={};r.r(a),r.d(a,{addBootstrappedBlockType:()=>ar,addUnprocessedBlockType:()=>ir,registerBlockBindingsSource:()=>sr});const i=window.wp.data;var s=function(){return s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function c(e){return e.toLowerCase()}var l=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],u=/[^A-Z0-9]+/gi;function d(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce((function(e,t){return e.replace(t,r)}),e)}function p(e,t){var r=e.charAt(0),n=e.substr(1).toLowerCase();return t>0&&r>="0"&&r<="9"?"_"+r+n:""+r.toUpperCase()+n}function h(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var r=t.splitRegexp,n=void 0===r?l:r,o=t.stripRegexp,a=void 0===o?u:o,i=t.transform,s=void 0===i?c:i,p=t.delimiter,h=void 0===p?" ":p,f=d(d(e,n,"$1\0$2"),a,"\0"),g=0,m=f.length;"\0"===f.charAt(g);)g++;for(;"\0"===f.charAt(m-1);)m--;return f.slice(g,m).split("\0").map(s).join(h)}(e,s({delimiter:"",transform:p},t))}function f(e,t){return 0===t?e.toLowerCase():p(e,t)}const g=window.wp.i18n;var m={grad:.9,turn:360,rad:360/(2*Math.PI)},b=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},_=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},k=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),e>r?r:e>t?e:t},y=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},w=function(e){return{r:k(e.r,0,255),g:k(e.g,0,255),b:k(e.b,0,255),a:k(e.a)}},v=function(e){return{r:_(e.r),g:_(e.g),b:_(e.b),a:_(e.a,3)}},T=/^#([0-9a-f]{3,8})$/i,C=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},x=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=Math.max(t,r,n),i=a-Math.min(t,r,n),s=i?a===t?(r-n)/i:a===r?2+(n-t)/i:4+(t-r)/i:0;return{h:60*(s<0?s+6:s),s:a?i/a*100:0,v:a/255*100,a:o}},E=function(e){var t=e.h,r=e.s,n=e.v,o=e.a;t=t/360*6,r/=100,n/=100;var a=Math.floor(t),i=n*(1-r),s=n*(1-(t-a)*r),c=n*(1-(1-t+a)*r),l=a%6;return{r:255*[n,s,i,i,c,n][l],g:255*[c,n,n,s,i,i][l],b:255*[i,i,c,n,n,s][l],a:o}},S=function(e){return{h:y(e.h),s:k(e.s,0,100),l:k(e.l,0,100),a:k(e.a)}},B=function(e){return{h:_(e.h),s:_(e.s),l:_(e.l),a:_(e.a,3)}},A=function(e){return E((r=(t=e).s,{h:t.h,s:(r*=((n=t.l)<50?n:100-n)/100)>0?2*r/(n+r)*100:0,v:n+r,a:t.a}));var t,r,n},N=function(e){return{h:(t=x(e)).h,s:(o=(200-(r=t.s))*(n=t.v)/100)>0&&o<200?r*n/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,r,n,o},P=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,O=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,L=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,M=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,j={string:[[function(e){var t=T.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?_(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?_(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=L.exec(e)||M.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:w({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=P.exec(e)||O.exec(e);if(!t)return null;var r,n,o=S({h:(r=t[1],n=t[2],void 0===n&&(n="deg"),Number(r)*(m[n]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return A(o)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=void 0===o?1:o;return b(t)&&b(r)&&b(n)?w({r:Number(t),g:Number(r),b:Number(n),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,r=e.s,n=e.l,o=e.a,a=void 0===o?1:o;if(!b(t)||!b(r)||!b(n))return null;var i=S({h:Number(t),s:Number(r),l:Number(n),a:Number(a)});return A(i)},"hsl"],[function(e){var t=e.h,r=e.s,n=e.v,o=e.a,a=void 0===o?1:o;if(!b(t)||!b(r)||!b(n))return null;var i=function(e){return{h:y(e.h),s:k(e.s,0,100),v:k(e.v,0,100),a:k(e.a)}}({h:Number(t),s:Number(r),v:Number(n),a:Number(a)});return E(i)},"hsv"]]},D=function(e,t){for(var r=0;r<t.length;r++){var n=t[r][0](e);if(n)return[n,t[r][1]]}return[null,void 0]},z=function(e){return"string"==typeof e?D(e.trim(),j.string):"object"==typeof e&&null!==e?D(e,j.object):[null,void 0]},I=function(e,t){var r=N(e);return{h:r.h,s:k(r.s+100*t,0,100),l:r.l,a:r.a}},R=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},H=function(e,t){var r=N(e);return{h:r.h,s:r.s,l:k(r.l+100*t,0,100),a:r.a}},V=function(){function e(e){this.parsed=z(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return _(R(this.rgba),2)},e.prototype.isDark=function(){return R(this.rgba)<.5},e.prototype.isLight=function(){return R(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=v(this.rgba)).r,r=e.g,n=e.b,a=(o=e.a)<1?C(_(255*o)):"","#"+C(t)+C(r)+C(n)+a;var e,t,r,n,o,a},e.prototype.toRgb=function(){return v(this.rgba)},e.prototype.toRgbString=function(){return t=(e=v(this.rgba)).r,r=e.g,n=e.b,(o=e.a)<1?"rgba("+t+", "+r+", "+n+", "+o+")":"rgb("+t+", "+r+", "+n+")";var e,t,r,n,o},e.prototype.toHsl=function(){return B(N(this.rgba))},e.prototype.toHslString=function(){return t=(e=B(N(this.rgba))).h,r=e.s,n=e.l,(o=e.a)<1?"hsla("+t+", "+r+"%, "+n+"%, "+o+")":"hsl("+t+", "+r+"%, "+n+"%)";var e,t,r,n,o},e.prototype.toHsv=function(){return e=x(this.rgba),{h:_(e.h),s:_(e.s),v:_(e.v),a:_(e.a,3)};var e},e.prototype.invert=function(){return $({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),$(I(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),$(I(this.rgba,-e))},e.prototype.grayscale=function(){return $(I(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),$(H(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),$(H(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?$({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):_(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=N(this.rgba);return"number"==typeof e?$({h:e,s:t.s,l:t.l,a:t.a}):_(t.h)},e.prototype.isEqual=function(e){return this.toHex()===$(e).toHex()},e}(),$=function(e){return e instanceof V?e:new V(e)},U=[];var F=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},q=function(e){return.2126*F(e.r)+.7152*F(e.g)+.0722*F(e.b)};const G=window.wp.element,K=window.wp.dom,W=window.wp.richText,Y="block-default",Q=["attributes","supports","save","migrate","isEligible","apiVersion"],Z={"--wp--style--color--link":{value:["color","link"],support:["color","link"]},aspectRatio:{value:["dimensions","aspectRatio"],support:["dimensions","aspectRatio"],useEngine:!0},background:{value:["color","gradient"],support:["color","gradients"],useEngine:!0},backgroundColor:{value:["color","background"],support:["color","background"],requiresOptOut:!0,useEngine:!0},backgroundRepeat:{value:["background","backgroundRepeat"],support:["background","backgroundRepeat"],useEngine:!0},backgroundSize:{value:["background","backgroundSize"],support:["background","backgroundSize"],useEngine:!0},borderColor:{value:["border","color"],support:["__experimentalBorder","color"],useEngine:!0},borderRadius:{value:["border","radius"],support:["__experimentalBorder","radius"],properties:{borderTopLeftRadius:"topLeft",borderTopRightRadius:"topRight",borderBottomLeftRadius:"bottomLeft",borderBottomRightRadius:"bottomRight"},useEngine:!0},borderStyle:{value:["border","style"],support:["__experimentalBorder","style"],useEngine:!0},borderWidth:{value:["border","width"],support:["__experimentalBorder","width"],useEngine:!0},borderTopColor:{value:["border","top","color"],support:["__experimentalBorder","color"],useEngine:!0},borderTopStyle:{value:["border","top","style"],support:["__experimentalBorder","style"],useEngine:!0},borderTopWidth:{value:["border","top","width"],support:["__experimentalBorder","width"],useEngine:!0},borderRightColor:{value:["border","right","color"],support:["__experimentalBorder","color"],useEngine:!0},borderRightStyle:{value:["border","right","style"],support:["__experimentalBorder","style"],useEngine:!0},borderRightWidth:{value:["border","right","width"],support:["__experimentalBorder","width"],useEngine:!0},borderBottomColor:{value:["border","bottom","color"],support:["__experimentalBorder","color"],useEngine:!0},borderBottomStyle:{value:["border","bottom","style"],support:["__experimentalBorder","style"],useEngine:!0},borderBottomWidth:{value:["border","bottom","width"],support:["__experimentalBorder","width"],useEngine:!0},borderLeftColor:{value:["border","left","color"],support:["__experimentalBorder","color"],useEngine:!0},borderLeftStyle:{value:["border","left","style"],support:["__experimentalBorder","style"],useEngine:!0},borderLeftWidth:{value:["border","left","width"],support:["__experimentalBorder","width"],useEngine:!0},color:{value:["color","text"],support:["color","text"],requiresOptOut:!0,useEngine:!0},columnCount:{value:["typography","textColumns"],support:["typography","textColumns"],useEngine:!0},filter:{value:["filter","duotone"],support:["filter","duotone"]},linkColor:{value:["elements","link","color","text"],support:["color","link"]},captionColor:{value:["elements","caption","color","text"],support:["color","caption"]},buttonColor:{value:["elements","button","color","text"],support:["color","button"]},buttonBackgroundColor:{value:["elements","button","color","background"],support:["color","button"]},headingColor:{value:["elements","heading","color","text"],support:["color","heading"]},headingBackgroundColor:{value:["elements","heading","color","background"],support:["color","heading"]},fontFamily:{value:["typography","fontFamily"],support:["typography","__experimentalFontFamily"],useEngine:!0},fontSize:{value:["typography","fontSize"],support:["typography","fontSize"],useEngine:!0},fontStyle:{value:["typography","fontStyle"],support:["typography","__experimentalFontStyle"],useEngine:!0},fontWeight:{value:["typography","fontWeight"],support:["typography","__experimentalFontWeight"],useEngine:!0},lineHeight:{value:["typography","lineHeight"],support:["typography","lineHeight"],useEngine:!0},margin:{value:["spacing","margin"],support:["spacing","margin"],properties:{marginTop:"top",marginRight:"right",marginBottom:"bottom",marginLeft:"left"},useEngine:!0},minHeight:{value:["dimensions","minHeight"],support:["dimensions","minHeight"],useEngine:!0},padding:{value:["spacing","padding"],support:["spacing","padding"],properties:{paddingTop:"top",paddingRight:"right",paddingBottom:"bottom",paddingLeft:"left"},useEngine:!0},textDecoration:{value:["typography","textDecoration"],support:["typography","__experimentalTextDecoration"],useEngine:!0},textTransform:{value:["typography","textTransform"],support:["typography","__experimentalTextTransform"],useEngine:!0},letterSpacing:{value:["typography","letterSpacing"],support:["typography","__experimentalLetterSpacing"],useEngine:!0},writingMode:{value:["typography","writingMode"],support:["typography","__experimentalWritingMode"],useEngine:!0},"--wp--style--root--padding":{value:["spacing","padding"],support:["spacing","padding"],properties:{"--wp--style--root--padding-top":"top","--wp--style--root--padding-right":"right","--wp--style--root--padding-bottom":"bottom","--wp--style--root--padding-left":"left"},rootOnly:!0}},X={link:"a",heading:"h1, h2, h3, h4, h5, h6",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",button:".wp-element-button, .wp-block-button__link",caption:".wp-element-caption, .wp-block-audio figcaption, .wp-block-embed figcaption, .wp-block-gallery figcaption, .wp-block-image figcaption, .wp-block-table figcaption, .wp-block-video figcaption",cite:"cite"},J={"color.duotone":!0,"color.gradients":!0,"color.palette":!0,"typography.fontSizes":!0,"spacing.spacingSizes":!0},ee=window.wp.privateApis,{lock:te,unlock:re}=(0,ee.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/blocks"),ne={title:"block title",description:"block description",keywords:["block keyword"],styles:[{label:"block style label"}],variations:[{title:"block variation title",description:"block variation description",keywords:["block variation keyword"]}]};function oe(e){return null!==e&&"object"==typeof e}function ae(e){const{addBootstrappedBlockType:t}=re((0,i.dispatch)(cr));for(const[r,n]of Object.entries(e))t(r,n)}function ie({textdomain:e,...t}){const r=["apiVersion","title","category","parent","ancestor","icon","description","keywords","attributes","providesContext","usesContext","selectors","supports","styles","example","variations","blockHooks","allowedBlocks"],n=Object.fromEntries(Object.entries(t).filter((([e])=>r.includes(e))));return e&&Object.keys(ne).forEach((t=>{n[t]&&(n[t]=ce(ne[t],n[t],e))})),n}function se(e,t){const r=oe(e)?e.name:e;if("string"!=typeof r)return void console.error("Block names must be strings.");if(!/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(r))return void console.error("Block names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-block");if((0,i.select)(cr).getBlockType(r))return void console.error('Block "'+r+'" is already registered.');const{addBootstrappedBlockType:n,addUnprocessedBlockType:o}=re((0,i.dispatch)(cr));if(oe(e)){n(r,ie(e))}return o(r,t),(0,i.select)(cr).getBlockType(r)}function ce(e,t,r){return"string"==typeof e&&"string"==typeof t?(0,g._x)(t,e,r):Array.isArray(e)&&e.length&&Array.isArray(t)?t.map((t=>ce(e[0],t,r))):oe(e)&&Object.entries(e).length&&oe(t)?Object.keys(t).reduce(((n,o)=>e[o]?(n[o]=ce(e[o],t[o],r),n):(n[o]=t[o],n)),{}):t}function le(e,{title:t,icon:r}){(0,i.dispatch)(cr).addBlockCollection(e,t,r)}function ue(e){const t=(0,i.select)(cr).getBlockType(e);if(t)return(0,i.dispatch)(cr).removeBlockTypes(e),t;console.error('Block "'+e+'" is not registered.')}function de(e){(0,i.dispatch)(cr).setFreeformFallbackBlockName(e)}function pe(){return(0,i.select)(cr).getFreeformFallbackBlockName()}function he(){return(0,i.select)(cr).getGroupingBlockName()}function fe(e){(0,i.dispatch)(cr).setUnregisteredFallbackBlockName(e)}function ge(){return(0,i.select)(cr).getUnregisteredFallbackBlockName()}function me(e){(0,i.dispatch)(cr).setDefaultBlockName(e)}function be(e){(0,i.dispatch)(cr).setGroupingBlockName(e)}function _e(){return(0,i.select)(cr).getDefaultBlockName()}function ke(e){return(0,i.select)(cr)?.getBlockType(e)}function ye(){return(0,i.select)(cr).getBlockTypes()}function we(e,t,r){return(0,i.select)(cr).getBlockSupport(e,t,r)}function ve(e,t,r){return(0,i.select)(cr).hasBlockSupport(e,t,r)}function Te(e){return"core/block"===e?.name}function Ce(e){return"core/template-part"===e?.name}const xe=e=>(0,i.select)(cr).getChildBlockNames(e),Ee=e=>(0,i.select)(cr).hasChildBlocks(e),Se=e=>(0,i.select)(cr).hasChildBlocksWithInserterSupport(e),Be=(e,t)=>{(0,i.dispatch)(cr).addBlockStyles(e,t)},Ae=(e,t)=>{(0,i.dispatch)(cr).removeBlockStyles(e,t)},Ne=(e,t)=>(0,i.select)(cr).getBlockVariations(e,t),Pe=(e,t)=>{(0,i.dispatch)(cr).addBlockVariations(e,t)},Oe=(e,t)=>{(0,i.dispatch)(cr).removeBlockVariations(e,t)};!function(e){e.forEach((function(e){U.indexOf(e)<0&&(e(V,j),U.push(e))}))}([function(e,t){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var o in r)n[r[o]]=o;var a={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,i,s=n[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var c=this.toRgb(),l=1/0,u="black";if(!a.length)for(var d in r)a[d]=new e(r[d]).toRgb();for(var p in r){var h=(o=c,i=a[p],Math.pow(o.r-i.r,2)+Math.pow(o.g-i.g,2)+Math.pow(o.b-i.b,2));h<l&&(l=h,u=p)}return u}},t.string.push([function(t){var n=t.toLowerCase(),o="transparent"===n?"#0000":r[n];return o?new e(o).toRgb():null},"name"])},function(e){e.prototype.luminance=function(){return e=q(this.rgba),void 0===(t=2)&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r+0;var e,t,r},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var r,n,o,a,i,s,c,l=t instanceof e?t:new e(t);return a=this.rgba,i=l.toRgb(),r=(s=q(a))>(c=q(i))?(s+.05)/(c+.05):(c+.05)/(s+.05),void 0===(n=2)&&(n=0),void 0===o&&(o=Math.pow(10,n)),Math.floor(o*r)/o+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(i=void 0===(a=(r=t).size)?"normal":a,"AAA"===(o=void 0===(n=r.level)?"AA":n)&&"normal"===i?7:"AA"===o&&"large"===i?3:4.5);var r,n,o,a,i}}]);const Le=["#191e23","#f8f9f9"];function Me(e){var t;return Object.entries(null!==(t=ke(e.name)?.attributes)&&void 0!==t?t:{}).every((([t,r])=>{const n=e.attributes[t];return r.hasOwnProperty("default")?n===r.default:"rich-text"===r.type?!n?.length:void 0===n}))}function je(e){return e.name===_e()&&Me(e)}function De(e){return!!e&&("string"==typeof e||(0,G.isValidElement)(e)||"function"==typeof e||e instanceof G.Component)}function ze(e){if(De(e=e||Y))return{src:e};if("background"in e){const t=$(e.background),r=e=>t.contrast(e),n=Math.max(...Le.map(r));return{...e,foreground:e.foreground?e.foreground:Le.find((e=>r(e)===n)),shadowColor:t.alpha(.3).toRgbString()}}return e}function Ie(e){return"string"==typeof e?ke(e):e}function Re(e,t,r="visual"){const{__experimentalLabel:n,title:o}=e,a=n&&n(t,{context:r});return a?(0,K.__unstableStripHTML)(a):o}function He(e,t,r,n="vertical"){const o=e?.title,a=e?Re(e,t,"accessibility"):"",i=void 0!==r,s=a&&a!==o;return i&&"vertical"===n?s?(0,g.sprintf)((0,g.__)("%1$s Block. Row %2$d. %3$s"),o,r,a):(0,g.sprintf)((0,g.__)("%1$s Block. Row %2$d"),o,r):i&&"horizontal"===n?s?(0,g.sprintf)((0,g.__)("%1$s Block. Column %2$d. %3$s"),o,r,a):(0,g.sprintf)((0,g.__)("%1$s Block. Column %2$d"),o,r):s?(0,g.sprintf)((0,g.__)("%1$s Block. %2$s"),o,a):(0,g.sprintf)((0,g.__)("%s Block"),o)}function Ve(e){return void 0!==e.default?e.default:"rich-text"===e.type?new W.RichTextData:void 0}function $e(e,t){const r=ke(e);if(void 0===r)throw new Error(`Block type '${e}' is not registered.`);return Object.entries(r.attributes).reduce(((e,[r,n])=>{const o=t[r];if(void 0!==o)"rich-text"===n.type?o instanceof W.RichTextData?e[r]=o:"string"==typeof o&&(e[r]=W.RichTextData.fromHTMLString(o)):"string"===n.type&&o instanceof W.RichTextData?e[r]=o.toHTMLString():e[r]=o;else{const t=Ve(n);void 0!==t&&(e[r]=t)}return-1!==["node","children"].indexOf(n.source)&&("string"==typeof e[r]?e[r]=[e[r]]:Array.isArray(e[r])||(e[r]=[])),e}),{})}function Ue(e,t){const r=ke(e)?.attributes;if(!r)return[];const n=Object.keys(r);return t?n.filter((e=>r[e]?.__experimentalRole===t)):n}function Fe(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))))}const qe=[{slug:"text",title:(0,g.__)("Text")},{slug:"media",title:(0,g.__)("Media")},{slug:"design",title:(0,g.__)("Design")},{slug:"widgets",title:(0,g.__)("Widgets")},{slug:"theme",title:(0,g.__)("Theme")},{slug:"embed",title:(0,g.__)("Embeds")},{slug:"reusable",title:(0,g.__)("Reusable blocks")}];function Ge(e){return e.reduce(((e,t)=>({...e,[t.name]:t})),{})}function Ke(e){return e.reduce(((e,t)=>(e.some((e=>e.name===t.name))||e.push(t),e)),[])}function We(e){return(t=null,r)=>{switch(r.type){case"REMOVE_BLOCK_TYPES":return-1!==r.names.indexOf(t)?null:t;case e:return r.name||null}return t}}const Ye=We("SET_DEFAULT_BLOCK_NAME"),Qe=We("SET_FREEFORM_FALLBACK_BLOCK_NAME"),Ze=We("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),Xe=We("SET_GROUPING_BLOCK_NAME");const Je=(0,i.combineReducers)({bootstrappedBlockTypes:function(e={},t){switch(t.type){case"ADD_BOOTSTRAPPED_BLOCK_TYPE":const{name:r,blockType:n}=t,o=e[r];let a;return o?(void 0===o.selectors&&n.selectors&&(a={...o,selectors:n.selectors}),void 0===o.blockHooks&&n.blockHooks&&(a={...o,...a,blockHooks:n.blockHooks}),void 0===o.allowedBlocks&&n.allowedBlocks&&(a={...o,...a,allowedBlocks:n.allowedBlocks})):(a=Object.fromEntries(Object.entries(n).filter((([,e])=>null!=e)).map((([e,t])=>{return[(r=e,void 0===n&&(n={}),h(r,s({transform:f},n))),t];var r,n}))),a.name=r),a?{...e,[r]:a}:e;case"REMOVE_BLOCK_TYPES":return Fe(e,t.names)}return e},unprocessedBlockTypes:function(e={},t){switch(t.type){case"ADD_UNPROCESSED_BLOCK_TYPE":return{...e,[t.name]:t.blockType};case"REMOVE_BLOCK_TYPES":return Fe(e,t.names)}return e},blockTypes:function(e={},t){switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...Ge(t.blockTypes)};case"REMOVE_BLOCK_TYPES":return Fe(e,t.names)}return e},blockStyles:function(e={},t){var r,n;switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...Object.fromEntries(Object.entries(Ge(t.blockTypes)).map((([t,r])=>{var n,o;return[t,Ke([...(null!==(n=r.styles)&&void 0!==n?n:[]).map((e=>({...e,source:"block"}))),...(null!==(o=e[r.name])&&void 0!==o?o:[]).filter((({source:e})=>"block"!==e))])]})))};case"ADD_BLOCK_STYLES":return{...e,[t.blockName]:Ke([...null!==(r=e[t.blockName])&&void 0!==r?r:[],...t.styles])};case"REMOVE_BLOCK_STYLES":return{...e,[t.blockName]:(null!==(n=e[t.blockName])&&void 0!==n?n:[]).filter((e=>-1===t.styleNames.indexOf(e.name)))}}return e},blockVariations:function(e={},t){var r,n;switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...Object.fromEntries(Object.entries(Ge(t.blockTypes)).map((([t,r])=>{var n,o;return[t,Ke([...(null!==(n=r.variations)&&void 0!==n?n:[]).map((e=>({...e,source:"block"}))),...(null!==(o=e[r.name])&&void 0!==o?o:[]).filter((({source:e})=>"block"!==e))])]})))};case"ADD_BLOCK_VARIATIONS":return{...e,[t.blockName]:Ke([...null!==(r=e[t.blockName])&&void 0!==r?r:[],...t.variations])};case"REMOVE_BLOCK_VARIATIONS":return{...e,[t.blockName]:(null!==(n=e[t.blockName])&&void 0!==n?n:[]).filter((e=>-1===t.variationNames.indexOf(e.name)))}}return e},defaultBlockName:Ye,freeformFallbackBlockName:Qe,unregisteredFallbackBlockName:Ze,groupingBlockName:Xe,categories:function(e=qe,t){switch(t.type){case"SET_CATEGORIES":return t.categories||[];case"UPDATE_CATEGORY":if(!t.category||!Object.keys(t.category).length)return e;if(e.find((({slug:e})=>e===t.slug)))return e.map((e=>e.slug===t.slug?{...e,...t.category}:e))}return e},collections:function(e={},t){switch(t.type){case"ADD_BLOCK_COLLECTION":return{...e,[t.namespace]:{title:t.title,icon:t.icon}};case"REMOVE_BLOCK_COLLECTION":return Fe(e,t.namespace)}return e},blockBindingsSources:function(e={},t){var r;return"REGISTER_BLOCK_BINDINGS_SOURCE"===t.type?{...e,[t.sourceName]:{label:t.sourceLabel,useSource:t.useSource,lockAttributesEditing:null===(r=t.lockAttributesEditing)||void 0===r||r}}:e}});var et={};function tt(e){return[e]}function rt(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function nt(e,t){var r,n=t||tt;function o(){r=new WeakMap}function a(){var t,o,a,i,s,c=arguments.length;for(i=new Array(c),a=0;a<c;a++)i[a]=arguments[a];for(t=function(e){var t,n,o,a,i,s=r,c=!0;for(t=0;t<e.length;t++){if(!(i=n=e[t])||"object"!=typeof i){c=!1;break}s.has(n)?s=s.get(n):(o=new WeakMap,s.set(n,o),s=o)}return s.has(et)||((a=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=c,s.set(et,a)),s.get(et)}(s=n.apply(null,i)),t.isUniqueByDependants||(t.lastDependants&&!rt(s,t.lastDependants,0)&&t.clear(),t.lastDependants=s),o=t.head;o;){if(rt(o.args,i,1))return o!==t.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=t.head,o.prev=null,t.head.prev=o,t.head=o),o.val;o=o.next}return o={val:e.apply(null,i)},i[0]=null,o.args=i,t.head&&(t.head.prev=o,o.next=t.head),t.head=o,o.val}return a.getDependants=n,a.clear=o,o(),a}var ot=r(9681),at=r.n(ot);const it=window.wp.compose,st=(e,t,r)=>{var n;const o=Array.isArray(t)?t:t.split(".");let a=e;return o.forEach((e=>{a=a?.[e]})),null!==(n=a)&&void 0!==n?n:r},ct=(e,t)=>"string"==typeof t?ut(e,t):t,lt=nt((e=>Object.values(e.blockTypes)),(e=>[e.blockTypes]));function ut(e,t){return e.blockTypes[t]}function dt(e,t){return e.blockStyles[t]}const pt=nt(((e,t,r)=>{const n=e.blockVariations[t];return n&&r?n.filter((e=>(e.scope||["block","inserter"]).includes(r))):n}),((e,t)=>[e.blockVariations[t]]));function ht(e,t,r,n){const o=pt(e,t,n),a=o?.find((n=>{if(Array.isArray(n.isActive)){const o=ut(e,t),a=Object.keys(o?.attributes||{}),i=n.isActive.filter((e=>a.includes(e)));return 0!==i.length&&i.every((e=>r[e]===n.attributes[e]))}return n.isActive?.(r,n.attributes)}));return a}function ft(e,t,r){const n=pt(e,t,r);return[...n].reverse().find((({isDefault:e})=>!!e))||n[0]}function gt(e){return e.categories}function mt(e){return e.collections}function bt(e){return e.defaultBlockName}function _t(e){return e.freeformFallbackBlockName}function kt(e){return e.unregisteredFallbackBlockName}function yt(e){return e.groupingBlockName}const wt=nt(((e,t)=>lt(e).filter((e=>e.parent?.includes(t))).map((({name:e})=>e))),(e=>[e.blockTypes])),vt=(e,t,r,n)=>{const o=ct(e,t);return o?.supports?st(o.supports,r,n):n};function Tt(e,t,r,n){return!!vt(e,t,r,n)}function Ct(e,t,r){const n=ct(e,t),o=(0,it.pipe)([e=>at()(null!=e?e:""),e=>e.toLowerCase(),e=>e.trim()]),a=o(r),i=(0,it.pipe)([o,e=>e.includes(a)]);return i(n.title)||n.keywords?.some(i)||i(n.category)||"string"==typeof n.description&&i(n.description)}const xt=(e,t)=>wt(e,t).length>0,Et=(e,t)=>wt(e,t).some((t=>Tt(e,t,"inserter",!0))),St=nt(((e,t)=>{const r=ut(e,t);return!!r&&Object.entries(r.attributes).some((([,{__experimentalRole:e}])=>"content"===e))}),((e,t)=>[e.blockTypes[t]?.attributes])),Bt=["background","backgroundColor","color","linkColor","captionColor","buttonColor","headingColor","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","padding","contentSize","wideSize","blockGap","textDecoration","textTransform","letterSpacing"];function At(e,t,r){return e.filter((e=>("fontSize"!==e||"heading"!==r)&&(!("textDecoration"===e&&!t&&"link"!==r)&&(!("textTransform"===e&&!t&&!["heading","h1","h2","h3","h4","h5","h6"].includes(r)&&"button"!==r&&"caption"!==r&&"text"!==r)&&(!("letterSpacing"===e&&!t&&!["heading","h1","h2","h3","h4","h5","h6"].includes(r)&&"button"!==r&&"caption"!==r&&"text"!==r)&&!("textColumns"===e&&!t))))))}const Nt=nt(((e,t,r)=>{if(!t)return At(Bt,t,r);const n=ut(e,t);if(!n)return[];const o=[];return n?.supports?.spacing?.blockGap&&o.push("blockGap"),n?.supports?.shadow&&o.push("shadow"),Object.keys(Z).forEach((e=>{Z[e].support&&(Z[e].requiresOptOut&&Z[e].support[0]in n.supports&&!1!==st(n.supports,Z[e].support)||st(n.supports,Z[e].support,!1))&&o.push(e)})),At(o,t,r)}),((e,t)=>[e.blockTypes[t]]));function Pt(e,t){return e.bootstrappedBlockTypes[t]}function Ot(e){return e.unprocessedBlockTypes}function Lt(e){return e.blockBindingsSources}function Mt(e,t){return e.blockBindingsSources[t]}const jt=window.wp.deprecated;var Dt=r.n(jt);
+(function(){function o(e){"use strict";var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as <br> (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: <div>foo</div>",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 `<em>` and `<strong>`",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` 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 a={},i={},s={},c=o(!0),l="vanilla",u={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:o(!0),allOn:function(){"use strict";var e=o(!0),t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}()};function d(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};a.helper.isArray(e)||(e=[e]);for(var o=0;o<e.length;++o){var i=r+" sub-extension "+o+": ",s=e[o];if("object"!=typeof s)return n.valid=!1,n.error=i+"must be an object, but "+typeof s+" given",n;if(!a.helper.isString(s.type))return n.valid=!1,n.error=i+'property "type" must be a string, but '+typeof s.type+" given",n;var c=s.type=s.type.toLowerCase();if("language"===c&&(c=s.type="lang"),"html"===c&&(c=s.type="output"),"lang"!==c&&"output"!==c&&"listener"!==c)return n.valid=!1,n.error=i+"type "+c+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',n;if("listener"===c){if(a.helper.isUndefined(s.listeners))return n.valid=!1,n.error=i+'. Extensions of type "listener" must have a property called "listeners"',n}else if(a.helper.isUndefined(s.filter)&&a.helper.isUndefined(s.regex))return n.valid=!1,n.error=i+c+' extensions must define either a "regex" property or a "filter" method',n;if(s.listeners){if("object"!=typeof s.listeners)return n.valid=!1,n.error=i+'"listeners" property must be an object but '+typeof s.listeners+" given",n;for(var l in s.listeners)if(s.listeners.hasOwnProperty(l)&&"function"!=typeof s.listeners[l])return n.valid=!1,n.error=i+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+l+" must be a function but "+typeof s.listeners[l]+" given",n}if(s.filter){if("function"!=typeof s.filter)return n.valid=!1,n.error=i+'"filter" must be a function, but '+typeof s.filter+" given",n}else if(s.regex){if(a.helper.isString(s.regex)&&(s.regex=new RegExp(s.regex,"g")),!(s.regex instanceof RegExp))return n.valid=!1,n.error=i+'"regex" property must either be a string or a RegExp object, but '+typeof s.regex+" given",n;if(a.helper.isUndefined(s.replace))return n.valid=!1,n.error=i+'"regex" extensions must implement a replace string or function',n}}return n}function p(e,t){"use strict";return"¨E"+t.charCodeAt(0)+"E"}a.helper={},a.extensions={},a.setOption=function(e,t){"use strict";return c[e]=t,this},a.getOption=function(e){"use strict";return c[e]},a.getOptions=function(){"use strict";return c},a.resetOptions=function(){"use strict";c=o(!0)},a.setFlavor=function(e){"use strict";if(!u.hasOwnProperty(e))throw Error(e+" flavor was not found");a.resetOptions();var t=u[e];for(var r in l=e,t)t.hasOwnProperty(r)&&(c[r]=t[r])},a.getFlavor=function(){"use strict";return l},a.getFlavorOptions=function(e){"use strict";if(u.hasOwnProperty(e))return u[e]},a.getDefaultOptions=function(e){"use strict";return o(e)},a.subParser=function(e,t){"use strict";if(a.helper.isString(e)){if(void 0===t){if(i.hasOwnProperty(e))return i[e];throw Error("SubParser named "+e+" not registered!")}i[e]=t}},a.extension=function(e,t){"use strict";if(!a.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=a.helper.stdExtName(e),a.helper.isUndefined(t)){if(!s.hasOwnProperty(e))throw Error("Extension named "+e+" is not registered!");return s[e]}"function"==typeof t&&(t=t()),a.helper.isArray(t)||(t=[t]);var r=d(t,e);if(!r.valid)throw Error(r.error);s[e]=t},a.getAllExtensions=function(){"use strict";return s},a.removeExtension=function(e){"use strict";delete s[e]},a.resetExtensions=function(){"use strict";s={}},a.validateExtension=function(e){"use strict";var t=d(e,null);return!!t.valid||(console.warn(t.error),!1)},a.hasOwnProperty("helper")||(a.helper={}),a.helper.isString=function(e){"use strict";return"string"==typeof e||e instanceof String},a.helper.isFunction=function(e){"use strict";return e&&"[object Function]"==={}.toString.call(e)},a.helper.isArray=function(e){"use strict";return Array.isArray(e)},a.helper.isUndefined=function(e){"use strict";return void 0===e},a.helper.forEach=function(e,t){"use strict";if(a.helper.isUndefined(e))throw new Error("obj param is required");if(a.helper.isUndefined(t))throw new Error("callback param is required");if(!a.helper.isFunction(t))throw new Error("callback param must be a function/closure");if("function"==typeof e.forEach)e.forEach(t);else if(a.helper.isArray(e))for(var r=0;r<e.length;r++)t(e[r],r,e);else{if("object"!=typeof e)throw new Error("obj does not seem to be an array or an iterable object");for(var n in e)e.hasOwnProperty(n)&&t(e[n],n,e)}},a.helper.stdExtName=function(e){"use strict";return e.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()},a.helper.escapeCharactersCallback=p,a.helper.escapeCharacters=function(e,t,r){"use strict";var n="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";r&&(n="\\\\"+n);var o=new RegExp(n,"g");return e=e.replace(o,p)},a.helper.unescapeHTMLEntities=function(e){"use strict";return e.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};var h=function(e,t,r,n){"use strict";var o,a,i,s,c,l=n||"",u=l.indexOf("g")>-1,d=new RegExp(t+"|"+r,"g"+l.replace(/g/g,"")),p=new RegExp(t,l.replace(/g/g,"")),h=[];do{for(o=0;i=d.exec(e);)if(p.test(i[0]))o++||(s=(a=d.lastIndex)-i[0].length);else if(o&&! --o){c=i.index+i[0].length;var f={left:{start:s,end:a},match:{start:a,end:i.index},right:{start:i.index,end:c},wholeMatch:{start:s,end:c}};if(h.push(f),!u)return h}}while(o&&(d.lastIndex=a));return h};a.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var o=h(e,t,r,n),a=[],i=0;i<o.length;++i)a.push([e.slice(o[i].wholeMatch.start,o[i].wholeMatch.end),e.slice(o[i].match.start,o[i].match.end),e.slice(o[i].left.start,o[i].left.end),e.slice(o[i].right.start,o[i].right.end)]);return a},a.helper.replaceRecursiveRegExp=function(e,t,r,n,o){"use strict";if(!a.helper.isFunction(t)){var i=t;t=function(){return i}}var s=h(e,r,n,o),c=e,l=s.length;if(l>0){var u=[];0!==s[0].wholeMatch.start&&u.push(e.slice(0,s[0].wholeMatch.start));for(var d=0;d<l;++d)u.push(t(e.slice(s[d].wholeMatch.start,s[d].wholeMatch.end),e.slice(s[d].match.start,s[d].match.end),e.slice(s[d].left.start,s[d].left.end),e.slice(s[d].right.start,s[d].right.end))),d<l-1&&u.push(e.slice(s[d].wholeMatch.end,s[d+1].wholeMatch.start));s[l-1].wholeMatch.end<e.length&&u.push(e.slice(s[l-1].wholeMatch.end)),c=u.join("")}return c},a.helper.regexIndexOf=function(e,t,r){"use strict";if(!a.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(t instanceof RegExp==!1)throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var n=e.substring(r||0).search(t);return n>=0?n+(r||0):n},a.helper.splitAtIndex=function(e,t){"use strict";if(!a.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},a.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}))},a.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}}),a.helper.regexes={asteriskDashAndColon:/([*_:~])/g},a.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:"⛹️&zwj;♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴&zwj;♀️",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:"👱&zwj;♀️",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:"🙇&zwj;♀️",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:"👷&zwj;♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨&zwj;❤️&zwj;👨",couple_with_heart_woman_woman:"👩&zwj;❤️&zwj;👩",couplekiss_man_man:"👨&zwj;❤️&zwj;💋&zwj;👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩&zwj;❤️&zwj;💋&zwj;👩",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:"👯&zwj;♂️",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:"👁&zwj;🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨&zwj;👦",family_man_boy_boy:"👨&zwj;👦&zwj;👦",family_man_girl:"👨&zwj;👧",family_man_girl_boy:"👨&zwj;👧&zwj;👦",family_man_girl_girl:"👨&zwj;👧&zwj;👧",family_man_man_boy:"👨&zwj;👨&zwj;👦",family_man_man_boy_boy:"👨&zwj;👨&zwj;👦&zwj;👦",family_man_man_girl:"👨&zwj;👨&zwj;👧",family_man_man_girl_boy:"👨&zwj;👨&zwj;👧&zwj;👦",family_man_man_girl_girl:"👨&zwj;👨&zwj;👧&zwj;👧",family_man_woman_boy_boy:"👨&zwj;👩&zwj;👦&zwj;👦",family_man_woman_girl:"👨&zwj;👩&zwj;👧",family_man_woman_girl_boy:"👨&zwj;👩&zwj;👧&zwj;👦",family_man_woman_girl_girl:"👨&zwj;👩&zwj;👧&zwj;👧",family_woman_boy:"👩&zwj;👦",family_woman_boy_boy:"👩&zwj;👦&zwj;👦",family_woman_girl:"👩&zwj;👧",family_woman_girl_boy:"👩&zwj;👧&zwj;👦",family_woman_girl_girl:"👩&zwj;👧&zwj;👧",family_woman_woman_boy:"👩&zwj;👩&zwj;👦",family_woman_woman_boy_boy:"👩&zwj;👩&zwj;👦&zwj;👦",family_woman_woman_girl:"👩&zwj;👩&zwj;👧",family_woman_woman_girl_boy:"👩&zwj;👩&zwj;👧&zwj;👦",family_woman_woman_girl_girl:"👩&zwj;👩&zwj;👧&zwj;👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️&zwj;♀️",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:"🙍&zwj;♂️",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:"🏌️&zwj;♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂&zwj;♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇&zwj;♂️",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:"👨&zwj;🎨",man_astronaut:"👨&zwj;🚀",man_cartwheeling:"🤸&zwj;♂️",man_cook:"👨&zwj;🍳",man_dancing:"🕺",man_facepalming:"🤦&zwj;♂️",man_factory_worker:"👨&zwj;🏭",man_farmer:"👨&zwj;🌾",man_firefighter:"👨&zwj;🚒",man_health_worker:"👨&zwj;⚕️",man_in_tuxedo:"🤵",man_judge:"👨&zwj;⚖️",man_juggling:"🤹&zwj;♂️",man_mechanic:"👨&zwj;🔧",man_office_worker:"👨&zwj;💼",man_pilot:"👨&zwj;✈️",man_playing_handball:"🤾&zwj;♂️",man_playing_water_polo:"🤽&zwj;♂️",man_scientist:"👨&zwj;🔬",man_shrugging:"🤷&zwj;♂️",man_singer:"👨&zwj;🎤",man_student:"👨&zwj;🎓",man_teacher:"👨&zwj;🏫",man_technologist:"👨&zwj;💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆&zwj;♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼&zwj;♂️",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:"🚵&zwj;♀️",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:"🙅&zwj;♂️",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:"🙆&zwj;♂️",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:"👮&zwj;♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎&zwj;♂️",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:"🏳️&zwj;🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋&zwj;♂️",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:"🚣&zwj;♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃&zwj;♀️",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:"🏄&zwj;♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊&zwj;♀️",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:"💁&zwj;♂️",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:"🚶&zwj;♀️",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:"🏋️&zwj;♀️",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:"👩&zwj;🎨",woman_astronaut:"👩&zwj;🚀",woman_cartwheeling:"🤸&zwj;♀️",woman_cook:"👩&zwj;🍳",woman_facepalming:"🤦&zwj;♀️",woman_factory_worker:"👩&zwj;🏭",woman_farmer:"👩&zwj;🌾",woman_firefighter:"👩&zwj;🚒",woman_health_worker:"👩&zwj;⚕️",woman_judge:"👩&zwj;⚖️",woman_juggling:"🤹&zwj;♀️",woman_mechanic:"👩&zwj;🔧",woman_office_worker:"👩&zwj;💼",woman_pilot:"👩&zwj;✈️",woman_playing_handball:"🤾&zwj;♀️",woman_playing_water_polo:"🤽&zwj;♀️",woman_scientist:"👩&zwj;🔬",woman_shrugging:"🤷&zwj;♀️",woman_singer:"👩&zwj;🎤",woman_student:"👩&zwj;🎓",woman_teacher:"👩&zwj;🏫",woman_technologist:"👩&zwj;💻",woman_with_turban:"👳&zwj;♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼&zwj;♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:"<span style=\"font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;\">S</span>"},a.Converter=function(e){"use strict";var t={},r=[],n=[],o={},i=l,p={parsed:{},raw:"",format:""};function h(e,t){if(t=t||null,a.helper.isString(e)){if(t=e=a.helper.stdExtName(e),a.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 a.Converter));a.helper.isArray(e)||(e=[e]);var o=d(e,t);if(!o.valid)throw Error(o.error);for(var i=0;i<e.length;++i)switch(e[i].type){case"lang":r.push(e[i]);break;case"output":n.push(e[i]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}(a.extensions[e],e);if(a.helper.isUndefined(s[e]))throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.');e=s[e]}"function"==typeof e&&(e=e()),a.helper.isArray(e)||(e=[e]);var o=d(e,t);if(!o.valid)throw Error(o.error);for(var i=0;i<e.length;++i){switch(e[i].type){case"lang":r.push(e[i]);break;case"output":n.push(e[i])}if(e[i].hasOwnProperty("listeners"))for(var c in e[i].listeners)e[i].listeners.hasOwnProperty(c)&&f(c,e[i].listeners[c])}}function f(e,t){if(!a.helper.isString(e))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof e+" given");if("function"!=typeof t)throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof t+" given");o.hasOwnProperty(e)||(o[e]=[]),o[e].push(t)}!function(){for(var r in e=e||{},c)c.hasOwnProperty(r)&&(t[r]=c[r]);if("object"!=typeof e)throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.");for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.extensions&&a.helper.forEach(t.extensions,h)}(),this._dispatch=function(e,t,r,n){if(o.hasOwnProperty(e))for(var a=0;a<o[e].length;++a){var i=o[e][a](e,t,this,r,n);i&&void 0!==i&&(t=i)}return t},this.listen=function(e,t){return f(e,t),this},this.makeHtml=function(e){if(!e)return e;var o={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:r,outputModifiers:n,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return e=(e=(e=(e=(e=e.replace(/¨/g,"¨T")).replace(/\$/g,"¨D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/\u00A0/g,"&nbsp;"),t.smartIndentationFix&&(e=function(e){var t=e.match(/^\s*/)[0].length,r=new RegExp("^\\s{0,"+t+"}","gm");return e.replace(r,"")}(e)),e="\n\n"+e+"\n\n",e=(e=a.subParser("detab")(e,t,o)).replace(/^[ \t]+$/gm,""),a.helper.forEach(r,(function(r){e=a.subParser("runExtension")(r,e,t,o)})),e=a.subParser("metadata")(e,t,o),e=a.subParser("hashPreCodeTags")(e,t,o),e=a.subParser("githubCodeBlocks")(e,t,o),e=a.subParser("hashHTMLBlocks")(e,t,o),e=a.subParser("hashCodeTags")(e,t,o),e=a.subParser("stripLinkDefinitions")(e,t,o),e=a.subParser("blockGamut")(e,t,o),e=a.subParser("unhashHTMLSpans")(e,t,o),e=(e=(e=a.subParser("unescapeSpecialChars")(e,t,o)).replace(/¨D/g,"$$")).replace(/¨T/g,"¨"),e=a.subParser("completeHTMLDocument")(e,t,o),a.helper.forEach(n,(function(r){e=a.subParser("runExtension")(r,e,t,o)})),p=o.metadata,e},this.makeMarkdown=this.makeMd=function(e,t){if(e=(e=(e=e.replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/>[ \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<t.length;++n)if(1===t[n].childElementCount&&"code"===t[n].firstChild.tagName.toLowerCase()){var o=t[n].firstChild.innerHTML.trim(),i=t[n].firstChild.getAttribute("data-language")||"";if(""===i)for(var s=t[n].firstChild.className.split(" "),c=0;c<s.length;++c){var l=s[c].match(/^language-(.+)$/);if(null!==l){i=l[1];break}}o=a.helper.unescapeHTMLEntities(o),r.push(o),t[n].outerHTML='<precode language="'+i+'" precodenum="'+n.toString()+'"></precode>'}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<t.childNodes.length;++r){var n=t.childNodes[r];3===n.nodeType?/\S/.test(n.nodeValue)?(n.nodeValue=n.nodeValue.split("\n").join(" "),n.nodeValue=n.nodeValue.replace(/(\s)+/g,"$1")):(t.removeChild(n),--r):1===n.nodeType&&e(n)}}(r);for(var o=r.childNodes,i="",s=0;s<o.length;s++)i+=a.subParser("makeMarkdown.node")(o[s],n);return i},this.setOption=function(e,r){t[e]=r},this.getOption=function(e){return t[e]},this.getOptions=function(){return t},this.addExtension=function(e,t){h(e,t=t||null)},this.useExtension=function(e){h(e)},this.setFlavor=function(e){if(!u.hasOwnProperty(e))throw Error(e+" flavor was not found");var r=u[e];for(var n in i=e,r)r.hasOwnProperty(n)&&(t[n]=r[n])},this.getFlavor=function(){return i},this.removeExtension=function(e){a.helper.isArray(e)||(e=[e]);for(var t=0;t<e.length;++t){for(var o=e[t],i=0;i<r.length;++i)r[i]===o&&r[i].splice(i,1);for(;0<n.length;++i)n[0]===o&&n[0].splice(i,1)}},this.getAllExtensions=function(){return{language:r,output:n}},this.getMetadata=function(e){return e?p.raw:p.parsed},this.getMetadataFormat=function(){return p.format},this._setMetadataPair=function(e,t){p.parsed[e]=t},this._setMetadataFormat=function(e){p.format=e},this._setMetadataRaw=function(e){p.raw=e}},a.subParser("anchors",(function(e,t,r){"use strict";var n=function(e,n,o,i,s,c,l){if(a.helper.isUndefined(l)&&(l=""),o=o.toLowerCase(),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)i="";else if(!i){if(o||(o=n.toLowerCase().replace(/ ?\n/g," ")),i="#"+o,a.helper.isUndefined(r.gUrls[o]))return e;i=r.gUrls[o],a.helper.isUndefined(r.gTitles[o])||(l=r.gTitles[o])}var u='<a href="'+(i=i.replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback))+'"';return""!==l&&null!==l&&(u+=' title="'+(l=(l=l.replace(/"/g,"&quot;")).replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback))+'"'),t.openLinksInNewWindow&&!/^#/.test(i)&&(u+=' rel="noopener noreferrer" target="¨E95Eblank"'),u+=">"+n+"</a>"};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]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \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,o,i){if("\\"===n)return r+o;if(!a.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 href="'+s+'"'+c+">"+o+"</a>"}))),e=r.converter._dispatch("anchors.after",e,t,r)}));var f=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,g=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,m=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,b=/(^|\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,k=function(e){"use strict";return function(t,r,n,o,i,s,c){var l=n=n.replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback),u="",d="",p=r||"",h=c||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(u=s),e.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="¨E95Eblank"'),p+'<a href="'+n+'"'+d+">"+l+"</a>"+u+h}},y=function(e,t){"use strict";return function(r,n,o){var i="mailto:";return n=n||"",o=a.subParser("unescapeSpecialChars")(o,e,t),e.encodeEmails?(i=a.helper.encodeEmailAddress(i+o),o=a.helper.encodeEmailAddress(o)):i+=o,n+'<a href="'+i+'">'+o+"</a>"}};a.subParser("autoLinks",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(m,k(t))).replace(_,y(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)})),a.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(g,k(t)):e.replace(f,k(t))).replace(b,y(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e})),a.subParser("blockGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=a.subParser("blockQuotes")(e,t,r),e=a.subParser("headers")(e,t,r),e=a.subParser("horizontalRule")(e,t,r),e=a.subParser("lists")(e,t,r),e=a.subParser("codeBlocks")(e,t,r),e=a.subParser("tables")(e,t,r),e=a.subParser("hashHTMLBlocks")(e,t,r),e=a.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)})),a.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=a.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=a.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,(function(e,t){var r=t;return r=(r=r.replace(/^ /gm,"¨0")).replace(/¨0/g,"")})),a.subParser("hashBlock")("<blockquote>\n"+e+"\n</blockquote>",t,r)})),e=r.converter._dispatch("blockQuotes.after",e,t,r)})),a.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,o){var i=n,s=o,c="\n";return i=a.subParser("outdent")(i,t,r),i=a.subParser("encodeCode")(i,t,r),i=(i=(i=a.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(c=""),i="<pre><code>"+i+c+"</code></pre>",a.subParser("hashBlock")(i,t,r)+s}))).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)})),a.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,o,i){var s=i;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=n+"<code>"+(s=a.subParser("encodeCode")(s,t,r))+"</code>",s=a.subParser("hashHTMLSpans")(s,t,r)})),e=r.converter._dispatch("codeSpans.after",e,t,r)})),a.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",o="<!DOCTYPE HTML>\n",a="",i='<meta charset="utf-8">\n',s="",c="";for(var l in void 0!==r.metadata.parsed.doctype&&(o="<!DOCTYPE "+r.metadata.parsed.doctype+">\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(i='<meta charset="utf-8">')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(l))switch(l.toLowerCase()){case"doctype":break;case"title":a="<title>"+r.metadata.parsed.title+"</title>\n";break;case"charset":i="html"===n||"html5"===n?'<meta charset="'+r.metadata.parsed.charset+'">\n':'<meta name="charset" content="'+r.metadata.parsed.charset+'">\n';break;case"language":case"lang":s=' lang="'+r.metadata.parsed[l]+'"',c+='<meta name="'+l+'" content="'+r.metadata.parsed[l]+'">\n';break;default:c+='<meta name="'+l+'" content="'+r.metadata.parsed[l]+'">\n'}return e=o+"<html"+s+">\n<head>\n"+a+i+c+"</head>\n<body>\n"+e.trim()+"\n</body>\n</html>",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)})),a.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,o=0;o<n;o++)r+=" ";return r}))).replace(/¨A/g," ")).replace(/¨B/g,""),e=r.converter._dispatch("detab.after",e,t,r)})),a.subParser("ellipsis",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("ellipsis.before",e,t,r)).replace(/\.\.\./g,"…"),e=r.converter._dispatch("ellipsis.after",e,t,r)})),a.subParser("emoji",(function(e,t,r){"use strict";if(!t.emoji)return e;return e=(e=r.converter._dispatch("emoji.before",e,t,r)).replace(/:([\S]+?):/g,(function(e,t){return a.helper.emojis.hasOwnProperty(t)?a.helper.emojis[t]:e})),e=r.converter._dispatch("emoji.after",e,t,r)})),a.subParser("encodeAmpsAndAngles",(function(e,t,r){"use strict";return e=(e=(e=(e=(e=r.converter._dispatch("encodeAmpsAndAngles.before",e,t,r)).replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;")).replace(/<(?![a-z\/?$!])/gi,"&lt;")).replace(/</g,"&lt;")).replace(/>/g,"&gt;"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)})),a.subParser("encodeBackslashEscapes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,a.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),a.subParser("encodeCode",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)})),a.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,a.helper.escapeCharactersCallback)}))).replace(/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,a.helper.escapeCharactersCallback)})),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),a.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,o,i){var s=t.omitExtraWLInCodeBlocks?"":"\n";return i=a.subParser("encodeCode")(i,t,r),i="<pre><code"+(o?' class="'+o+" language-"+o+'"':"")+">"+(i=(i=(i=a.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"</code></pre>",i=a.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})),a.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)})),a.subParser("hashCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=a.helper.replaceRecursiveRegExp(e,(function(e,n,o,i){var s=o+a.subParser("encodeCode")(n,t,r)+i;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"}),"<code\\b[^>]*>","</code>","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)})),a.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"}})),a.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"],o=function(e,t,n,o){var a=e;return-1!==n.search(/\bmarkdown\b/)&&(a=n+r.converter.makeHtml(t)+o),"\n\n¨K"+(r.gHtmlBlocks.push(a)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"&lt;"+t+"&gt;"})));for(var i=0;i<n.length;++i)for(var s,c=new RegExp("^ {0,3}(<"+n[i]+"\\b[^>]*>)","im"),l="<"+n[i]+"\\b[^>]*>",u="</"+n[i]+">";-1!==(s=a.helper.regexIndexOf(e,c));){var d=a.helper.splitAtIndex(e,s),p=a.helper.replaceRecursiveRegExp(d[1],o,l,u,"im");if(p===d[1])break;e=d[0].concat(p)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(e,t,r)),e=(e=a.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,a.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),a.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)})),a.subParser("unhashHTMLSpans",(function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n<r.gHtmlSpans.length;++n){for(var o=r.gHtmlSpans[n],a=0;/¨C(\d+)C/.test(o);){var i=RegExp.$1;if(o=o.replace("¨C"+i+"C",r.gHtmlSpans[i]),10===a){console.error("maximum nesting of 10 spans reached!!!");break}++a}e=e.replace("¨C"+n+"C",o)}return e=r.converter._dispatch("unhashHTMLSpans.after",e,t,r)})),a.subParser("hashPreCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashPreCodeTags.before",e,t,r);return e=a.helper.replaceRecursiveRegExp(e,(function(e,n,o,i){var s=o+a.subParser("encodeCode")(n,t,r)+i;return"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"}),"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),a.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),o=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(o,(function(e,o){var i=a.subParser("spanGamut")(o,t,r),s=t.noHeaderId?"":' id="'+c(o)+'"',l="<h"+n+s+">"+i+"</h"+n+">";return a.subParser("hashBlock")(l,t,r)}))).replace(i,(function(e,o){var i=a.subParser("spanGamut")(o,t,r),s=t.noHeaderId?"":' id="'+c(o)+'"',l=n+1,u="<h"+l+s+">"+i+"</h"+l+">";return a.subParser("hashBlock")(u,t,r)}));var s=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function c(e){var n,o;if(t.customizedHeaderId){var i=e.match(/\{([^{]+?)}\s*$/);i&&i[1]&&(e=i[1])}return n=e,o=a.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(n=o+n),n=t.ghCompatibleHeaderId?n.replace(/ /g,"-").replace(/&amp;/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?n.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():n.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(n=o+n),r.hashLinkCounts[n]?n=n+"-"+r.hashLinkCounts[n]++:r.hashLinkCounts[n]=1,n}return e=e.replace(s,(function(e,o,i){var s=i;t.customizedHeaderId&&(s=i.replace(/\s?\{([^{]+?)}\s*$/,""));var l=a.subParser("spanGamut")(s,t,r),u=t.noHeaderId?"":' id="'+c(i)+'"',d=n-1+o.length,p="<h"+d+u+">"+l+"</h"+d+">";return a.subParser("hashBlock")(p,t,r)})),e=r.converter._dispatch("headers.after",e,t,r)})),a.subParser("horizontalRule",(function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=a.subParser("hashBlock")("<hr />",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)})),a.subParser("images",(function(e,t,r){"use strict";function n(e,t,n,o,i,s,c,l){var u=r.gUrls,d=r.gTitles,p=r.gDimensions;if(n=n.toLowerCase(),l||(l=""),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)o="";else if(""===o||null===o){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),o="#"+n,a.helper.isUndefined(u[n]))return e;o=u[n],a.helper.isUndefined(d[n])||(l=d[n]),a.helper.isUndefined(p[n])||(i=p[n].width,s=p[n].height)}t=t.replace(/"/g,"&quot;").replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback);var h='<img src="'+(o=o.replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback))+'" alt="'+t+'"';return l&&a.helper.isString(l)&&(h+=' title="'+(l=l.replace(/"/g,"&quot;").replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback))+'"'),i&&s&&(h+=' width="'+(i="*"===i?"auto":i)+'"',h+=' height="'+(s="*"===s?"auto":s)+'"'),h+=" />"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,r,o,a,i,s,c){return n(e,t,r,o=o.replace(/\s/g,""),a,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]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\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)})),a.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,"<strong><em>","</em></strong>")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return n(t,"<strong>","</strong>")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return n(t,"<em>","</em>")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong><em>","</em></strong>"):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong>","</strong>"):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?n(t,"<em>","</em>"):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"<strong><em>","</em></strong>")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"<strong>","</strong>")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"<em>","</em>")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong><em>","</em></strong>"):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong>","</strong>"):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?n(t,"<em>","</em>"):e})),e=r.converter._dispatch("italicsAndBold.after",e,t,r)})),a.subParser("lists",(function(e,t,r){"use strict";function n(e,n){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var o=/(\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&&(o=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(o,(function(e,n,o,s,c,l,u){u=u&&""!==u.trim();var d=a.subParser("outdent")(c,t,r),p="";return l&&t.tasklists&&(p=' class="task-list-item" style="list-style-type: none;"',d=d.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return u&&(e+=" checked"),e+=">"}))),d=d.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,(function(e){return"¨A"+e})),n||d.search(/\n{2,}/)>-1?(d=a.subParser("githubCodeBlocks")(d,t,r),d=a.subParser("blockGamut")(d,t,r)):(d=(d=a.subParser("lists")(d,t,r)).replace(/\n$/,""),d=(d=a.subParser("hashHTMLBlocks")(d,t,r)).replace(/\n\n+/g,"\n\n"),d=i?a.subParser("paragraphs")(d,t,r):a.subParser("spanGamut")(d,t,r)),d="<li"+p+">"+(d=d.replace("¨A",""))+"</li>\n"}))).replace(/¨0/g,""),r.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function o(e,t){if("ol"===t){var r=e.match(/^ *(\d+)\./);if(r&&"1"!==r[1])return' start="'+r[1]+'"'}return""}function i(e,r,a){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,l="";if(-1!==e.search(c))!function t(u){var d=u.search(c),p=o(e,r);-1!==d?(l+="\n\n<"+r+p+">\n"+n(u.slice(0,d),!!a)+"</"+r+">\n",c="ul"===(r="ul"===r?"ol":"ul")?i:s,t(u.slice(d))):l+="\n\n<"+r+p+">\n"+n(u,!!a)+"</"+r+">\n"}(e);else{var u=o(e,r);l="\n\n<"+r+u+">\n"+n(e,!!a)+"</"+r+">\n"}return l}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)})),a.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,"&amp;").replace(/"/g,"&quot;")).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,o){return t&&(r.metadata.format=t),n(o),"¨M"}))).replace(/¨M/g,""),e=r.converter._dispatch("metadata.after",e,t,r)})),a.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)})),a.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),o=[],i=n.length,s=0;s<i;s++){var c=n[s];c.search(/¨(K|G)(\d+)\1/g)>=0?o.push(c):c.search(/\S/)>=0&&(c=(c=a.subParser("spanGamut")(c,t,r)).replace(/^([ \t]*)/g,"<p>"),c+="</p>",o.push(c))}for(i=o.length,s=0;s<i;s++){for(var l="",u=o[s],d=!1;/¨(K|G)(\d+)\1/.test(u);){var p=RegExp.$1,h=RegExp.$2;l=(l="K"===p?r.gHtmlBlocks[h]:d?a.subParser("encodeCode")(r.ghCodeBlocks[h].text,t,r):r.ghCodeBlocks[h].codeblock).replace(/\$/g,"$$$$"),u=u.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,l),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(u)&&(d=!0)}o[s]=u}return e=(e=(e=o.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),a.subParser("runExtension",(function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var o=e.regex;o instanceof RegExp||(o=new RegExp(o,"g")),t=t.replace(o,e.replace)}return t})),a.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=a.subParser("codeSpans")(e,t,r),e=a.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=a.subParser("encodeBackslashEscapes")(e,t,r),e=a.subParser("images")(e,t,r),e=a.subParser("anchors")(e,t,r),e=a.subParser("autoLinks")(e,t,r),e=a.subParser("simplifiedAutoLinks")(e,t,r),e=a.subParser("emoji")(e,t,r),e=a.subParser("underline")(e,t,r),e=a.subParser("italicsAndBold")(e,t,r),e=a.subParser("strikethrough")(e,t,r),e=a.subParser("ellipsis")(e,t,r),e=a.subParser("hashHTMLSpans")(e,t,r),e=a.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"<br />\n")):e=e.replace(/ +\n/g,"<br />\n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),a.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=a.subParser("simplifiedAutoLinks")(e,t,r)),"<del>"+e+"</del>"}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),a.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(e,n,o,i,s,c,l){return n=n.toLowerCase(),o.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=o.replace(/\s/g,""):r.gUrls[n]=a.subParser("encodeAmpsAndAngles")(o,t,r),c?c+l:(l&&(r.gTitles[n]=l.replace(/"|'/g,"&quot;")),t.parseImgDimensions&&i&&s&&(r.gDimensions[n]={width:i,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\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/,"")})),a.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return"<td"+n+">"+a.subParser("spanGamut")(e,t,r)+"</td>\n"}function o(e){var o,i=e.split("\n");for(o=0;o<i.length;++o)/^ {0,3}\|/.test(i[o])&&(i[o]=i[o].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(i[o])&&(i[o]=i[o].replace(/\|[ \t]*$/,"")),i[o]=a.subParser("codeSpans")(i[o],t,r);var s,c,l,u,d=i[0].split("|").map((function(e){return e.trim()})),p=i[1].split("|").map((function(e){return e.trim()})),h=[],f=[],g=[],m=[];for(i.shift(),i.shift(),o=0;o<i.length;++o)""!==i[o].trim()&&h.push(i[o].split("|").map((function(e){return e.trim()})));if(d.length<p.length)return e;for(o=0;o<p.length;++o)g.push((s=p[o],/^:[ \t]*--*$/.test(s)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(s)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(s)?' style="text-align:center;"':""));for(o=0;o<d.length;++o)a.helper.isUndefined(g[o])&&(g[o]=""),f.push((c=d[o],l=g[o],u=void 0,u="",c=c.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(u=' id="'+c.replace(/ /g,"_").toLowerCase()+'"'),"<th"+u+l+">"+(c=a.subParser("spanGamut")(c,t,r))+"</th>\n"));for(o=0;o<h.length;++o){for(var b=[],_=0;_<f.length;++_)a.helper.isUndefined(h[o][_]),b.push(n(h[o][_],g[_]));m.push(b)}return function(e,t){for(var r="<table>\n<thead>\n<tr>\n",n=e.length,o=0;o<n;++o)r+=e[o];for(r+="</tr>\n</thead>\n<tbody>\n",o=0;o<t.length;++o){r+="<tr>\n";for(var a=0;a<n;++a)r+=t[o][a];r+="</tr>\n"}return r+"</tbody>\n</table>\n"}(f,m)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,a.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,o)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,o),e=r.converter._dispatch("tables.after",e,t,r)})),a.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"<u>"+t+"</u>"}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return"<u>"+t+"</u>"})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))).replace(/(_)/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),a.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)})),a.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,o=n.length,i=0;i<o;++i){var s=a.subParser("makeMarkdown.node")(n[i],t);""!==s&&(r+=s)}return r="> "+(r=r.trim()).split("\n").join("\n> ")})),a.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),a.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),a.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,o=n.length,i=0;i<o;++i)r+=a.subParser("makeMarkdown.node")(n[i],t);r+="*"}return r})),a.subParser("makeMarkdown.header",(function(e,t,r){"use strict";var n=new Array(r+1).join("#"),o="";if(e.hasChildNodes()){o=n+" ";for(var i=e.childNodes,s=i.length,c=0;c<s;++c)o+=a.subParser("makeMarkdown.node")(i[c],t)}return o})),a.subParser("makeMarkdown.hr",(function(){"use strict";return"---"})),a.subParser("makeMarkdown.image",(function(e){"use strict";var t="";return e.hasAttribute("src")&&(t+="!["+e.getAttribute("alt")+"](",t+="<"+e.getAttribute("src")+">",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),a.subParser("makeMarkdown.links",(function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,o=n.length;r="[";for(var i=0;i<o;++i)r+=a.subParser("makeMarkdown.node")(n[i],t);r+="](",r+="<"+e.getAttribute("href")+">",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),a.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var o=e.childNodes,i=o.length,s=e.getAttribute("start")||1,c=0;c<i;++c)if(void 0!==o[c].tagName&&"li"===o[c].tagName.toLowerCase()){n+=("ol"===r?s.toString()+". ":"- ")+a.subParser("makeMarkdown.listItem")(o[c],t),++s}return(n+="\n\x3c!-- --\x3e\n").trim()})),a.subParser("makeMarkdown.listItem",(function(e,t){"use strict";for(var r="",n=e.childNodes,o=n.length,i=0;i<o;++i)r+=a.subParser("makeMarkdown.node")(n[i],t);return/\n$/.test(r)?r=r.split("\n").join("\n ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n"):r+="\n",r})),a.subParser("makeMarkdown.node",(function(e,t,r){"use strict";r=r||!1;var n="";if(3===e.nodeType)return a.subParser("makeMarkdown.txt")(e,t);if(8===e.nodeType)return"\x3c!--"+e.data+"--\x3e\n\n";if(1!==e.nodeType)return"";switch(e.tagName.toLowerCase()){case"h1":r||(n=a.subParser("makeMarkdown.header")(e,t,1)+"\n\n");break;case"h2":r||(n=a.subParser("makeMarkdown.header")(e,t,2)+"\n\n");break;case"h3":r||(n=a.subParser("makeMarkdown.header")(e,t,3)+"\n\n");break;case"h4":r||(n=a.subParser("makeMarkdown.header")(e,t,4)+"\n\n");break;case"h5":r||(n=a.subParser("makeMarkdown.header")(e,t,5)+"\n\n");break;case"h6":r||(n=a.subParser("makeMarkdown.header")(e,t,6)+"\n\n");break;case"p":r||(n=a.subParser("makeMarkdown.paragraph")(e,t)+"\n\n");break;case"blockquote":r||(n=a.subParser("makeMarkdown.blockquote")(e,t)+"\n\n");break;case"hr":r||(n=a.subParser("makeMarkdown.hr")(e,t)+"\n\n");break;case"ol":r||(n=a.subParser("makeMarkdown.list")(e,t,"ol")+"\n\n");break;case"ul":r||(n=a.subParser("makeMarkdown.list")(e,t,"ul")+"\n\n");break;case"precode":r||(n=a.subParser("makeMarkdown.codeBlock")(e,t)+"\n\n");break;case"pre":r||(n=a.subParser("makeMarkdown.pre")(e,t)+"\n\n");break;case"table":r||(n=a.subParser("makeMarkdown.table")(e,t)+"\n\n");break;case"code":n=a.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":n=a.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":n=a.subParser("makeMarkdown.strong")(e,t);break;case"del":n=a.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":n=a.subParser("makeMarkdown.links")(e,t);break;case"img":n=a.subParser("makeMarkdown.image")(e,t);break;default:n=e.outerHTML+"\n\n"}return n})),a.subParser("makeMarkdown.paragraph",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,o=n.length,i=0;i<o;++i)r+=a.subParser("makeMarkdown.node")(n[i],t);return r=r.trim()})),a.subParser("makeMarkdown.pre",(function(e,t){"use strict";var r=e.getAttribute("prenum");return"<pre>"+t.preList[r]+"</pre>"})),a.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,o=n.length,i=0;i<o;++i)r+=a.subParser("makeMarkdown.node")(n[i],t);r+="~~"}return r})),a.subParser("makeMarkdown.strong",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="**";for(var n=e.childNodes,o=n.length,i=0;i<o;++i)r+=a.subParser("makeMarkdown.node")(n[i],t);r+="**"}return r})),a.subParser("makeMarkdown.table",(function(e,t){"use strict";var r,n,o="",i=[[],[]],s=e.querySelectorAll("thead>tr>th"),c=e.querySelectorAll("tbody>tr");for(r=0;r<s.length;++r){var l=a.subParser("makeMarkdown.tableCell")(s[r],t),u="---";if(s[r].hasAttribute("style"))switch(s[r].getAttribute("style").toLowerCase().replace(/\s/g,"")){case"text-align:left;":u=":---";break;case"text-align:right;":u="---:";break;case"text-align:center;":u=":---:"}i[0][r]=l.trim(),i[1][r]=u}for(r=0;r<c.length;++r){var d=i.push([])-1,p=c[r].getElementsByTagName("td");for(n=0;n<s.length;++n){var h=" ";void 0!==p[n]&&(h=a.subParser("makeMarkdown.tableCell")(p[n],t)),i[d].push(h)}}var f=3;for(r=0;r<i.length;++r)for(n=0;n<i[r].length;++n){var g=i[r][n].length;g>f&&(f=g)}for(r=0;r<i.length;++r){for(n=0;n<i[r].length;++n)1===r?":"===i[r][n].slice(-1)?i[r][n]=a.helper.padEnd(i[r][n].slice(-1),f-1,"-")+":":i[r][n]=a.helper.padEnd(i[r][n],f,"-"):i[r][n]=a.helper.padEnd(i[r][n],f);o+="| "+i[r].join(" | ")+" |\n"}return o.trim()})),a.subParser("makeMarkdown.tableCell",(function(e,t){"use strict";var r="";if(!e.hasChildNodes())return"";for(var n=e.childNodes,o=n.length,i=0;i<o;++i)r+=a.subParser("makeMarkdown.node")(n[i],t,!0);return r.trim()})),a.subParser("makeMarkdown.txt",(function(e){"use strict";var t=e.nodeValue;return t=(t=t.replace(/ +/g," ")).replace(/¨NBSP;/g," "),t=(t=(t=(t=(t=(t=(t=(t=(t=a.helper.unescapeHTMLEntities(t)).replace(/([*_~|`])/g,"\\$1")).replace(/^(\s*)>/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 a}.call(t,r,t,e))||(e.exports=n)}).call(this)}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n].call(a.exports,a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{__EXPERIMENTAL_ELEMENTS:()=>X,__EXPERIMENTAL_PATHS_WITH_OVERRIDE:()=>J,__EXPERIMENTAL_STYLE_PROPERTY:()=>Z,__experimentalCloneSanitizedBlock:()=>br,__experimentalGetAccessibleBlockLabel:()=>He,__experimentalGetBlockAttributesNamesByRole:()=>Ue,__experimentalGetBlockLabel:()=>Re,__experimentalSanitizeBlockAttributes:()=>$e,__unstableGetBlockProps:()=>Hr,__unstableGetInnerBlocksProps:()=>Vr,__unstableSerializeAndClean:()=>Kr,children:()=>qn,cloneBlock:()=>_r,createBlock:()=>gr,createBlocksFromInnerBlocksTemplate:()=>mr,doBlocksMatchTemplate:()=>Qo,findTransform:()=>xr,getBlockAttributes:()=>Zn,getBlockContent:()=>Fr,getBlockDefaultClassName:()=>Dr,getBlockFromExample:()=>Ar,getBlockMenuDefaultClassName:()=>zr,getBlockSupport:()=>we,getBlockTransforms:()=>Er,getBlockType:()=>ke,getBlockTypes:()=>ye,getBlockVariations:()=>Ne,getCategories:()=>Ko,getChildBlockNames:()=>xe,getDefaultBlockName:()=>_e,getFreeformContentHandlerName:()=>pe,getGroupingBlockName:()=>he,getPhrasingContentSchema:()=>To,getPossibleBlockTransformations:()=>Cr,getSaveContent:()=>Ur,getSaveElement:()=>$r,getUnregisteredTypeHandlerName:()=>ge,hasBlockSupport:()=>ve,hasChildBlocks:()=>Ee,hasChildBlocksWithInserterSupport:()=>Se,isReusableBlock:()=>Te,isTemplatePart:()=>Ce,isUnmodifiedBlock:()=>Me,isUnmodifiedDefaultBlock:()=>je,isValidBlockContent:()=>On,isValidIcon:()=>De,node:()=>Vn,normalizeIconObject:()=>ze,parse:()=>no,parseWithAttributeSchema:()=>Qn,pasteHandler:()=>Go,rawHandler:()=>Co,registerBlockCollection:()=>le,registerBlockStyle:()=>Be,registerBlockType:()=>se,registerBlockVariation:()=>Pe,serialize:()=>Wr,serializeRawBlock:()=>Mr,setCategories:()=>Wo,setDefaultBlockName:()=>me,setFreeformContentHandlerName:()=>de,setGroupingBlockName:()=>be,setUnregisteredTypeHandlerName:()=>fe,store:()=>sr,switchToBlockType:()=>Br,synchronizeBlocksWithTemplate:()=>ta,unregisterBlockStyle:()=>Ae,unregisterBlockType:()=>ue,unregisterBlockVariation:()=>Oe,unstable__bootstrapServerSideBlockDefinitions:()=>ae,updateCategory:()=>Yo,validateBlock:()=>Pn,withBlockContentContext:()=>ra});var e={};r.r(e),r.d(e,{__experimentalHasContentRoleAttribute:()=>xt,getActiveBlockVariation:()=>ut,getBlockStyles:()=>ct,getBlockSupport:()=>kt,getBlockType:()=>st,getBlockTypes:()=>it,getBlockVariations:()=>lt,getCategories:()=>pt,getChildBlockNames:()=>_t,getCollections:()=>ht,getDefaultBlockName:()=>ft,getDefaultBlockVariation:()=>dt,getFreeformFallbackBlockName:()=>gt,getGroupingBlockName:()=>bt,getUnregisteredFallbackBlockName:()=>mt,hasBlockSupport:()=>yt,hasChildBlocks:()=>Tt,hasChildBlocksWithInserterSupport:()=>Ct,isMatchingSearchTerm:()=>vt});var t={};r.r(t),r.d(t,{getAllBlockBindingsSources:()=>Pt,getBlockBindingsSource:()=>Ot,getBootstrappedBlockType:()=>At,getSupportedStyles:()=>Bt,getUnprocessedBlockTypes:()=>Nt});var o={};r.r(o),r.d(o,{__experimentalReapplyBlockFilters:()=>Ft,addBlockCollection:()=>rr,addBlockStyles:()=>Gt,addBlockTypes:()=>$t,addBlockVariations:()=>Wt,reapplyBlockTypeFilters:()=>Ut,removeBlockCollection:()=>nr,removeBlockStyles:()=>Kt,removeBlockTypes:()=>qt,removeBlockVariations:()=>Yt,setCategories:()=>er,setDefaultBlockName:()=>Qt,setFreeformFallbackBlockName:()=>Zt,setGroupingBlockName:()=>Jt,setUnregisteredFallbackBlockName:()=>Xt,updateCategory:()=>tr});var a={};r.r(a),r.d(a,{addBootstrappedBlockType:()=>or,addUnprocessedBlockType:()=>ar,registerBlockBindingsSource:()=>ir});const i=window.wp.data;var s=function(){return s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function c(e){return e.toLowerCase()}var l=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],u=/[^A-Z0-9]+/gi;function d(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce((function(e,t){return e.replace(t,r)}),e)}function p(e,t){var r=e.charAt(0),n=e.substr(1).toLowerCase();return t>0&&r>="0"&&r<="9"?"_"+r+n:""+r.toUpperCase()+n}function h(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var r=t.splitRegexp,n=void 0===r?l:r,o=t.stripRegexp,a=void 0===o?u:o,i=t.transform,s=void 0===i?c:i,p=t.delimiter,h=void 0===p?" ":p,f=d(d(e,n,"$1\0$2"),a,"\0"),g=0,m=f.length;"\0"===f.charAt(g);)g++;for(;"\0"===f.charAt(m-1);)m--;return f.slice(g,m).split("\0").map(s).join(h)}(e,s({delimiter:"",transform:p},t))}function f(e,t){return 0===t?e.toLowerCase():p(e,t)}const g=window.wp.i18n;var m={grad:.9,turn:360,rad:360/(2*Math.PI)},b=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},_=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},k=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),e>r?r:e>t?e:t},y=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},w=function(e){return{r:k(e.r,0,255),g:k(e.g,0,255),b:k(e.b,0,255),a:k(e.a)}},v=function(e){return{r:_(e.r),g:_(e.g),b:_(e.b),a:_(e.a,3)}},T=/^#([0-9a-f]{3,8})$/i,C=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},x=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=Math.max(t,r,n),i=a-Math.min(t,r,n),s=i?a===t?(r-n)/i:a===r?2+(n-t)/i:4+(t-r)/i:0;return{h:60*(s<0?s+6:s),s:a?i/a*100:0,v:a/255*100,a:o}},E=function(e){var t=e.h,r=e.s,n=e.v,o=e.a;t=t/360*6,r/=100,n/=100;var a=Math.floor(t),i=n*(1-r),s=n*(1-(t-a)*r),c=n*(1-(1-t+a)*r),l=a%6;return{r:255*[n,s,i,i,c,n][l],g:255*[c,n,n,s,i,i][l],b:255*[i,i,c,n,n,s][l],a:o}},S=function(e){return{h:y(e.h),s:k(e.s,0,100),l:k(e.l,0,100),a:k(e.a)}},B=function(e){return{h:_(e.h),s:_(e.s),l:_(e.l),a:_(e.a,3)}},A=function(e){return E((r=(t=e).s,{h:t.h,s:(r*=((n=t.l)<50?n:100-n)/100)>0?2*r/(n+r)*100:0,v:n+r,a:t.a}));var t,r,n},N=function(e){return{h:(t=x(e)).h,s:(o=(200-(r=t.s))*(n=t.v)/100)>0&&o<200?r*n/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,r,n,o},P=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,O=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,L=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,M=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,j={string:[[function(e){var t=T.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?_(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?_(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=L.exec(e)||M.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:w({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=P.exec(e)||O.exec(e);if(!t)return null;var r,n,o=S({h:(r=t[1],n=t[2],void 0===n&&(n="deg"),Number(r)*(m[n]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return A(o)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=void 0===o?1:o;return b(t)&&b(r)&&b(n)?w({r:Number(t),g:Number(r),b:Number(n),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,r=e.s,n=e.l,o=e.a,a=void 0===o?1:o;if(!b(t)||!b(r)||!b(n))return null;var i=S({h:Number(t),s:Number(r),l:Number(n),a:Number(a)});return A(i)},"hsl"],[function(e){var t=e.h,r=e.s,n=e.v,o=e.a,a=void 0===o?1:o;if(!b(t)||!b(r)||!b(n))return null;var i=function(e){return{h:y(e.h),s:k(e.s,0,100),v:k(e.v,0,100),a:k(e.a)}}({h:Number(t),s:Number(r),v:Number(n),a:Number(a)});return E(i)},"hsv"]]},D=function(e,t){for(var r=0;r<t.length;r++){var n=t[r][0](e);if(n)return[n,t[r][1]]}return[null,void 0]},z=function(e){return"string"==typeof e?D(e.trim(),j.string):"object"==typeof e&&null!==e?D(e,j.object):[null,void 0]},I=function(e,t){var r=N(e);return{h:r.h,s:k(r.s+100*t,0,100),l:r.l,a:r.a}},R=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},H=function(e,t){var r=N(e);return{h:r.h,s:r.s,l:k(r.l+100*t,0,100),a:r.a}},V=function(){function e(e){this.parsed=z(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return _(R(this.rgba),2)},e.prototype.isDark=function(){return R(this.rgba)<.5},e.prototype.isLight=function(){return R(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=v(this.rgba)).r,r=e.g,n=e.b,a=(o=e.a)<1?C(_(255*o)):"","#"+C(t)+C(r)+C(n)+a;var e,t,r,n,o,a},e.prototype.toRgb=function(){return v(this.rgba)},e.prototype.toRgbString=function(){return t=(e=v(this.rgba)).r,r=e.g,n=e.b,(o=e.a)<1?"rgba("+t+", "+r+", "+n+", "+o+")":"rgb("+t+", "+r+", "+n+")";var e,t,r,n,o},e.prototype.toHsl=function(){return B(N(this.rgba))},e.prototype.toHslString=function(){return t=(e=B(N(this.rgba))).h,r=e.s,n=e.l,(o=e.a)<1?"hsla("+t+", "+r+"%, "+n+"%, "+o+")":"hsl("+t+", "+r+"%, "+n+"%)";var e,t,r,n,o},e.prototype.toHsv=function(){return e=x(this.rgba),{h:_(e.h),s:_(e.s),v:_(e.v),a:_(e.a,3)};var e},e.prototype.invert=function(){return $({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),$(I(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),$(I(this.rgba,-e))},e.prototype.grayscale=function(){return $(I(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),$(H(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),$(H(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?$({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):_(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=N(this.rgba);return"number"==typeof e?$({h:e,s:t.s,l:t.l,a:t.a}):_(t.h)},e.prototype.isEqual=function(e){return this.toHex()===$(e).toHex()},e}(),$=function(e){return e instanceof V?e:new V(e)},U=[];var F=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},q=function(e){return.2126*F(e.r)+.7152*F(e.g)+.0722*F(e.b)};const G=window.wp.element,K=window.wp.dom,W=window.wp.richText,Y="block-default",Q=["attributes","supports","save","migrate","isEligible","apiVersion"],Z={"--wp--style--color--link":{value:["color","link"],support:["color","link"]},aspectRatio:{value:["dimensions","aspectRatio"],support:["dimensions","aspectRatio"],useEngine:!0},background:{value:["color","gradient"],support:["color","gradients"],useEngine:!0},backgroundColor:{value:["color","background"],support:["color","background"],requiresOptOut:!0,useEngine:!0},backgroundImage:{value:["background","backgroundImage"],support:["background","backgroundImage"],useEngine:!0},backgroundRepeat:{value:["background","backgroundRepeat"],support:["background","backgroundRepeat"],useEngine:!0},backgroundSize:{value:["background","backgroundSize"],support:["background","backgroundSize"],useEngine:!0},backgroundPosition:{value:["background","backgroundPosition"],support:["background","backgroundPosition"],useEngine:!0},borderColor:{value:["border","color"],support:["__experimentalBorder","color"],useEngine:!0},borderRadius:{value:["border","radius"],support:["__experimentalBorder","radius"],properties:{borderTopLeftRadius:"topLeft",borderTopRightRadius:"topRight",borderBottomLeftRadius:"bottomLeft",borderBottomRightRadius:"bottomRight"},useEngine:!0},borderStyle:{value:["border","style"],support:["__experimentalBorder","style"],useEngine:!0},borderWidth:{value:["border","width"],support:["__experimentalBorder","width"],useEngine:!0},borderTopColor:{value:["border","top","color"],support:["__experimentalBorder","color"],useEngine:!0},borderTopStyle:{value:["border","top","style"],support:["__experimentalBorder","style"],useEngine:!0},borderTopWidth:{value:["border","top","width"],support:["__experimentalBorder","width"],useEngine:!0},borderRightColor:{value:["border","right","color"],support:["__experimentalBorder","color"],useEngine:!0},borderRightStyle:{value:["border","right","style"],support:["__experimentalBorder","style"],useEngine:!0},borderRightWidth:{value:["border","right","width"],support:["__experimentalBorder","width"],useEngine:!0},borderBottomColor:{value:["border","bottom","color"],support:["__experimentalBorder","color"],useEngine:!0},borderBottomStyle:{value:["border","bottom","style"],support:["__experimentalBorder","style"],useEngine:!0},borderBottomWidth:{value:["border","bottom","width"],support:["__experimentalBorder","width"],useEngine:!0},borderLeftColor:{value:["border","left","color"],support:["__experimentalBorder","color"],useEngine:!0},borderLeftStyle:{value:["border","left","style"],support:["__experimentalBorder","style"],useEngine:!0},borderLeftWidth:{value:["border","left","width"],support:["__experimentalBorder","width"],useEngine:!0},color:{value:["color","text"],support:["color","text"],requiresOptOut:!0,useEngine:!0},columnCount:{value:["typography","textColumns"],support:["typography","textColumns"],useEngine:!0},filter:{value:["filter","duotone"],support:["filter","duotone"]},linkColor:{value:["elements","link","color","text"],support:["color","link"]},captionColor:{value:["elements","caption","color","text"],support:["color","caption"]},buttonColor:{value:["elements","button","color","text"],support:["color","button"]},buttonBackgroundColor:{value:["elements","button","color","background"],support:["color","button"]},headingColor:{value:["elements","heading","color","text"],support:["color","heading"]},headingBackgroundColor:{value:["elements","heading","color","background"],support:["color","heading"]},fontFamily:{value:["typography","fontFamily"],support:["typography","__experimentalFontFamily"],useEngine:!0},fontSize:{value:["typography","fontSize"],support:["typography","fontSize"],useEngine:!0},fontStyle:{value:["typography","fontStyle"],support:["typography","__experimentalFontStyle"],useEngine:!0},fontWeight:{value:["typography","fontWeight"],support:["typography","__experimentalFontWeight"],useEngine:!0},lineHeight:{value:["typography","lineHeight"],support:["typography","lineHeight"],useEngine:!0},margin:{value:["spacing","margin"],support:["spacing","margin"],properties:{marginTop:"top",marginRight:"right",marginBottom:"bottom",marginLeft:"left"},useEngine:!0},minHeight:{value:["dimensions","minHeight"],support:["dimensions","minHeight"],useEngine:!0},padding:{value:["spacing","padding"],support:["spacing","padding"],properties:{paddingTop:"top",paddingRight:"right",paddingBottom:"bottom",paddingLeft:"left"},useEngine:!0},textAlign:{value:["typography","textAlign"],support:["typography","textAlign"],useEngine:!1},textDecoration:{value:["typography","textDecoration"],support:["typography","__experimentalTextDecoration"],useEngine:!0},textTransform:{value:["typography","textTransform"],support:["typography","__experimentalTextTransform"],useEngine:!0},letterSpacing:{value:["typography","letterSpacing"],support:["typography","__experimentalLetterSpacing"],useEngine:!0},writingMode:{value:["typography","writingMode"],support:["typography","__experimentalWritingMode"],useEngine:!0},"--wp--style--root--padding":{value:["spacing","padding"],support:["spacing","padding"],properties:{"--wp--style--root--padding-top":"top","--wp--style--root--padding-right":"right","--wp--style--root--padding-bottom":"bottom","--wp--style--root--padding-left":"left"},rootOnly:!0}},X={link:"a:where(:not(.wp-element-button))",heading:"h1, h2, h3, h4, h5, h6",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",button:".wp-element-button, .wp-block-button__link",caption:".wp-element-caption, .wp-block-audio figcaption, .wp-block-embed figcaption, .wp-block-gallery figcaption, .wp-block-image figcaption, .wp-block-table figcaption, .wp-block-video figcaption",cite:"cite"},J={"color.duotone":!0,"color.gradients":!0,"color.palette":!0,"dimensions.aspectRatios":!0,"typography.fontSizes":!0,"spacing.spacingSizes":!0},ee=window.wp.privateApis,{lock:te,unlock:re}=(0,ee.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/blocks"),ne={title:"block title",description:"block description",keywords:["block keyword"],styles:[{label:"block style label"}],variations:[{title:"block variation title",description:"block variation description",keywords:["block variation keyword"]}]};function oe(e){return null!==e&&"object"==typeof e}function ae(e){const{addBootstrappedBlockType:t}=re((0,i.dispatch)(sr));for(const[r,n]of Object.entries(e))t(r,n)}function ie({textdomain:e,...t}){const r=["apiVersion","title","category","parent","ancestor","icon","description","keywords","attributes","providesContext","usesContext","selectors","supports","styles","example","variations","blockHooks","allowedBlocks"],n=Object.fromEntries(Object.entries(t).filter((([e])=>r.includes(e))));return e&&Object.keys(ne).forEach((t=>{n[t]&&(n[t]=ce(ne[t],n[t],e))})),n}function se(e,t){const r=oe(e)?e.name:e;if("string"!=typeof r)return void console.error("Block names must be strings.");if(!/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(r))return void console.error("Block names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-block");if((0,i.select)(sr).getBlockType(r))return void console.error('Block "'+r+'" is already registered.');const{addBootstrappedBlockType:n,addUnprocessedBlockType:o}=re((0,i.dispatch)(sr));if(oe(e)){n(r,ie(e))}return o(r,t),(0,i.select)(sr).getBlockType(r)}function ce(e,t,r){return"string"==typeof e&&"string"==typeof t?(0,g._x)(t,e,r):Array.isArray(e)&&e.length&&Array.isArray(t)?t.map((t=>ce(e[0],t,r))):oe(e)&&Object.entries(e).length&&oe(t)?Object.keys(t).reduce(((n,o)=>e[o]?(n[o]=ce(e[o],t[o],r),n):(n[o]=t[o],n)),{}):t}function le(e,{title:t,icon:r}){(0,i.dispatch)(sr).addBlockCollection(e,t,r)}function ue(e){const t=(0,i.select)(sr).getBlockType(e);if(t)return(0,i.dispatch)(sr).removeBlockTypes(e),t;console.error('Block "'+e+'" is not registered.')}function de(e){(0,i.dispatch)(sr).setFreeformFallbackBlockName(e)}function pe(){return(0,i.select)(sr).getFreeformFallbackBlockName()}function he(){return(0,i.select)(sr).getGroupingBlockName()}function fe(e){(0,i.dispatch)(sr).setUnregisteredFallbackBlockName(e)}function ge(){return(0,i.select)(sr).getUnregisteredFallbackBlockName()}function me(e){(0,i.dispatch)(sr).setDefaultBlockName(e)}function be(e){(0,i.dispatch)(sr).setGroupingBlockName(e)}function _e(){return(0,i.select)(sr).getDefaultBlockName()}function ke(e){return(0,i.select)(sr)?.getBlockType(e)}function ye(){return(0,i.select)(sr).getBlockTypes()}function we(e,t,r){return(0,i.select)(sr).getBlockSupport(e,t,r)}function ve(e,t,r){return(0,i.select)(sr).hasBlockSupport(e,t,r)}function Te(e){return"core/block"===e?.name}function Ce(e){return"core/template-part"===e?.name}const xe=e=>(0,i.select)(sr).getChildBlockNames(e),Ee=e=>(0,i.select)(sr).hasChildBlocks(e),Se=e=>(0,i.select)(sr).hasChildBlocksWithInserterSupport(e),Be=(e,t)=>{(0,i.dispatch)(sr).addBlockStyles(e,t)},Ae=(e,t)=>{(0,i.dispatch)(sr).removeBlockStyles(e,t)},Ne=(e,t)=>(0,i.select)(sr).getBlockVariations(e,t),Pe=(e,t)=>{"string"!=typeof t.name&&console.warn("Variation names must be unique strings."),(0,i.dispatch)(sr).addBlockVariations(e,t)},Oe=(e,t)=>{(0,i.dispatch)(sr).removeBlockVariations(e,t)};!function(e){e.forEach((function(e){U.indexOf(e)<0&&(e(V,j),U.push(e))}))}([function(e,t){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var o in r)n[r[o]]=o;var a={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,i,s=n[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var c=this.toRgb(),l=1/0,u="black";if(!a.length)for(var d in r)a[d]=new e(r[d]).toRgb();for(var p in r){var h=(o=c,i=a[p],Math.pow(o.r-i.r,2)+Math.pow(o.g-i.g,2)+Math.pow(o.b-i.b,2));h<l&&(l=h,u=p)}return u}},t.string.push([function(t){var n=t.toLowerCase(),o="transparent"===n?"#0000":r[n];return o?new e(o).toRgb():null},"name"])},function(e){e.prototype.luminance=function(){return e=q(this.rgba),void 0===(t=2)&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r+0;var e,t,r},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var r,n,o,a,i,s,c,l=t instanceof e?t:new e(t);return a=this.rgba,i=l.toRgb(),r=(s=q(a))>(c=q(i))?(s+.05)/(c+.05):(c+.05)/(s+.05),void 0===(n=2)&&(n=0),void 0===o&&(o=Math.pow(10,n)),Math.floor(o*r)/o+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(i=void 0===(a=(r=t).size)?"normal":a,"AAA"===(o=void 0===(n=r.level)?"AA":n)&&"normal"===i?7:"AA"===o&&"large"===i?3:4.5);var r,n,o,a,i}}]);const Le=["#191e23","#f8f9f9"];function Me(e){var t;return Object.entries(null!==(t=ke(e.name)?.attributes)&&void 0!==t?t:{}).every((([t,r])=>{const n=e.attributes[t];return r.hasOwnProperty("default")?n===r.default:"rich-text"===r.type?!n?.length:void 0===n}))}function je(e){return e.name===_e()&&Me(e)}function De(e){return!!e&&("string"==typeof e||(0,G.isValidElement)(e)||"function"==typeof e||e instanceof G.Component)}function ze(e){if(De(e=e||Y))return{src:e};if("background"in e){const t=$(e.background),r=e=>t.contrast(e),n=Math.max(...Le.map(r));return{...e,foreground:e.foreground?e.foreground:Le.find((e=>r(e)===n)),shadowColor:t.alpha(.3).toRgbString()}}return e}function Ie(e){return"string"==typeof e?ke(e):e}function Re(e,t,r="visual"){const{__experimentalLabel:n,title:o}=e,a=n&&n(t,{context:r});return a?a.toPlainText?a.toPlainText():(0,K.__unstableStripHTML)(a):o}function He(e,t,r,n="vertical"){const o=e?.title,a=e?Re(e,t,"accessibility"):"",i=void 0!==r,s=a&&a!==o;return i&&"vertical"===n?s?(0,g.sprintf)((0,g.__)("%1$s Block. Row %2$d. %3$s"),o,r,a):(0,g.sprintf)((0,g.__)("%1$s Block. Row %2$d"),o,r):i&&"horizontal"===n?s?(0,g.sprintf)((0,g.__)("%1$s Block. Column %2$d. %3$s"),o,r,a):(0,g.sprintf)((0,g.__)("%1$s Block. Column %2$d"),o,r):s?(0,g.sprintf)((0,g.__)("%1$s Block. %2$s"),o,a):(0,g.sprintf)((0,g.__)("%s Block"),o)}function Ve(e){return void 0!==e.default?e.default:"rich-text"===e.type?new W.RichTextData:void 0}function $e(e,t){const r=ke(e);if(void 0===r)throw new Error(`Block type '${e}' is not registered.`);return Object.entries(r.attributes).reduce(((e,[r,n])=>{const o=t[r];if(void 0!==o)"rich-text"===n.type?o instanceof W.RichTextData?e[r]=o:"string"==typeof o&&(e[r]=W.RichTextData.fromHTMLString(o)):"string"===n.type&&o instanceof W.RichTextData?e[r]=o.toHTMLString():e[r]=o;else{const t=Ve(n);void 0!==t&&(e[r]=t)}return-1!==["node","children"].indexOf(n.source)&&("string"==typeof e[r]?e[r]=[e[r]]:Array.isArray(e[r])||(e[r]=[])),e}),{})}function Ue(e,t){const r=ke(e)?.attributes;if(!r)return[];const n=Object.keys(r);return t?n.filter((e=>r[e]?.__experimentalRole===t)):n}function Fe(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))))}const qe=[{slug:"text",title:(0,g.__)("Text")},{slug:"media",title:(0,g.__)("Media")},{slug:"design",title:(0,g.__)("Design")},{slug:"widgets",title:(0,g.__)("Widgets")},{slug:"theme",title:(0,g.__)("Theme")},{slug:"embed",title:(0,g.__)("Embeds")},{slug:"reusable",title:(0,g.__)("Reusable blocks")}];function Ge(e){return e.reduce(((e,t)=>({...e,[t.name]:t})),{})}function Ke(e){return e.reduce(((e,t)=>(e.some((e=>e.name===t.name))||e.push(t),e)),[])}function We(e){return(t=null,r)=>{switch(r.type){case"REMOVE_BLOCK_TYPES":return-1!==r.names.indexOf(t)?null:t;case e:return r.name||null}return t}}const Ye=We("SET_DEFAULT_BLOCK_NAME"),Qe=We("SET_FREEFORM_FALLBACK_BLOCK_NAME"),Ze=We("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),Xe=We("SET_GROUPING_BLOCK_NAME");const Je=(0,i.combineReducers)({bootstrappedBlockTypes:function(e={},t){switch(t.type){case"ADD_BOOTSTRAPPED_BLOCK_TYPE":const{name:r,blockType:n}=t,o=e[r];let a;return o?(void 0===o.blockHooks&&n.blockHooks&&(a={...o,...a,blockHooks:n.blockHooks}),void 0===o.allowedBlocks&&n.allowedBlocks&&(a={...o,...a,allowedBlocks:n.allowedBlocks})):(a=Object.fromEntries(Object.entries(n).filter((([,e])=>null!=e)).map((([e,t])=>{return[(r=e,void 0===n&&(n={}),h(r,s({transform:f},n))),t];var r,n}))),a.name=r),a?{...e,[r]:a}:e;case"REMOVE_BLOCK_TYPES":return Fe(e,t.names)}return e},unprocessedBlockTypes:function(e={},t){switch(t.type){case"ADD_UNPROCESSED_BLOCK_TYPE":return{...e,[t.name]:t.blockType};case"REMOVE_BLOCK_TYPES":return Fe(e,t.names)}return e},blockTypes:function(e={},t){switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...Ge(t.blockTypes)};case"REMOVE_BLOCK_TYPES":return Fe(e,t.names)}return e},blockStyles:function(e={},t){var r;switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...Object.fromEntries(Object.entries(Ge(t.blockTypes)).map((([t,r])=>{var n,o;return[t,Ke([...(null!==(n=r.styles)&&void 0!==n?n:[]).map((e=>({...e,source:"block"}))),...(null!==(o=e[r.name])&&void 0!==o?o:[]).filter((({source:e})=>"block"!==e))])]})))};case"ADD_BLOCK_STYLES":const n={};return t.blockNames.forEach((r=>{var o;n[r]=Ke([...null!==(o=e[r])&&void 0!==o?o:[],...t.styles])})),{...e,...n};case"REMOVE_BLOCK_STYLES":return{...e,[t.blockName]:(null!==(r=e[t.blockName])&&void 0!==r?r:[]).filter((e=>-1===t.styleNames.indexOf(e.name)))}}return e},blockVariations:function(e={},t){var r,n;switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...Object.fromEntries(Object.entries(Ge(t.blockTypes)).map((([t,r])=>{var n,o;return[t,Ke([...(null!==(n=r.variations)&&void 0!==n?n:[]).map((e=>({...e,source:"block"}))),...(null!==(o=e[r.name])&&void 0!==o?o:[]).filter((({source:e})=>"block"!==e))])]})))};case"ADD_BLOCK_VARIATIONS":return{...e,[t.blockName]:Ke([...null!==(r=e[t.blockName])&&void 0!==r?r:[],...t.variations])};case"REMOVE_BLOCK_VARIATIONS":return{...e,[t.blockName]:(null!==(n=e[t.blockName])&&void 0!==n?n:[]).filter((e=>-1===t.variationNames.indexOf(e.name)))}}return e},defaultBlockName:Ye,freeformFallbackBlockName:Qe,unregisteredFallbackBlockName:Ze,groupingBlockName:Xe,categories:function(e=qe,t){switch(t.type){case"SET_CATEGORIES":return t.categories||[];case"UPDATE_CATEGORY":if(!t.category||!Object.keys(t.category).length)return e;if(e.find((({slug:e})=>e===t.slug)))return e.map((e=>e.slug===t.slug?{...e,...t.category}:e))}return e},collections:function(e={},t){switch(t.type){case"ADD_BLOCK_COLLECTION":return{...e,[t.namespace]:{title:t.title,icon:t.icon}};case"REMOVE_BLOCK_COLLECTION":return Fe(e,t.namespace)}return e},blockBindingsSources:function(e={},t){return"REGISTER_BLOCK_BINDINGS_SOURCE"===t.type?{...e,[t.sourceName]:{label:t.sourceLabel,getValue:t.getValue,setValue:t.setValue,setValues:t.setValues,getPlaceholder:t.getPlaceholder,canUserEditValue:t.canUserEditValue||(()=>!1)}}:e}});var et=r(9681),tt=r.n(et);const rt=(e,t,r)=>{var n;const o=Array.isArray(t)?t:t.split(".");let a=e;return o.forEach((e=>{a=a?.[e]})),null!==(n=a)&&void 0!==n?n:r};function nt(e){return"object"==typeof e&&e.constructor===Object&&null!==e}function ot(e,t){return nt(e)&&nt(t)?Object.entries(t).every((([t,r])=>ot(e?.[t],r))):e===t}const at=(e,t)=>"string"==typeof t?st(e,t):t,it=(0,i.createSelector)((e=>Object.values(e.blockTypes)),(e=>[e.blockTypes]));function st(e,t){return e.blockTypes[t]}function ct(e,t){return e.blockStyles[t]}const lt=(0,i.createSelector)(((e,t,r)=>{const n=e.blockVariations[t];return n&&r?n.filter((e=>(e.scope||["block","inserter"]).includes(r))):n}),((e,t)=>[e.blockVariations[t]]));function ut(e,t,r,n){const o=lt(e,t,n);if(!o)return o;const a=st(e,t),i=Object.keys(a?.attributes||{});let s,c=0;for(const e of o)if(Array.isArray(e.isActive)){const t=e.isActive.filter((e=>{const t=e.split(".")[0];return i.includes(t)})),n=t.length;if(0===n)continue;t.every((t=>{const n=rt(e.attributes,t);if(void 0===n)return!1;let o=rt(r,t);return o instanceof W.RichTextData&&(o=o.toHTMLString()),ot(o,n)}))&&n>c&&(s=e,c=n)}else if(e.isActive?.(r,e.attributes))return s||e;return s}function dt(e,t,r){const n=lt(e,t,r);return[...n].reverse().find((({isDefault:e})=>!!e))||n[0]}function pt(e){return e.categories}function ht(e){return e.collections}function ft(e){return e.defaultBlockName}function gt(e){return e.freeformFallbackBlockName}function mt(e){return e.unregisteredFallbackBlockName}function bt(e){return e.groupingBlockName}const _t=(0,i.createSelector)(((e,t)=>it(e).filter((e=>e.parent?.includes(t))).map((({name:e})=>e))),(e=>[e.blockTypes])),kt=(e,t,r,n)=>{const o=at(e,t);return o?.supports?rt(o.supports,r,n):n};function yt(e,t,r,n){return!!kt(e,t,r,n)}function wt(e){return tt()(null!=e?e:"").toLowerCase().trim()}function vt(e,t,r=""){const n=at(e,t),o=wt(r),a=e=>wt(e).includes(o);return a(n.title)||n.keywords?.some(a)||a(n.category)||"string"==typeof n.description&&a(n.description)}const Tt=(e,t)=>_t(e,t).length>0,Ct=(e,t)=>_t(e,t).some((t=>yt(e,t,"inserter",!0))),xt=(0,i.createSelector)(((e,t)=>{const r=st(e,t);return!!r&&Object.entries(r.attributes).some((([,{__experimentalRole:e}])=>"content"===e))}),((e,t)=>[e.blockTypes[t]?.attributes])),Et=["background","backgroundColor","color","linkColor","captionColor","buttonColor","headingColor","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","padding","contentSize","wideSize","blockGap","textDecoration","textTransform","letterSpacing"];function St(e,t,r){return e.filter((e=>("fontSize"!==e||"heading"!==r)&&(!("textDecoration"===e&&!t&&"link"!==r)&&(!("textTransform"===e&&!t&&!["heading","h1","h2","h3","h4","h5","h6"].includes(r)&&"button"!==r&&"caption"!==r&&"text"!==r)&&(!("letterSpacing"===e&&!t&&!["heading","h1","h2","h3","h4","h5","h6"].includes(r)&&"button"!==r&&"caption"!==r&&"text"!==r)&&!("textColumns"===e&&!t))))))}const Bt=(0,i.createSelector)(((e,t,r)=>{if(!t)return St(Et,t,r);const n=st(e,t);if(!n)return[];const o=[];return n?.supports?.spacing?.blockGap&&o.push("blockGap"),n?.supports?.shadow&&o.push("shadow"),Object.keys(Z).forEach((e=>{Z[e].support&&(Z[e].requiresOptOut&&Z[e].support[0]in n.supports&&!1!==rt(n.supports,Z[e].support)||rt(n.supports,Z[e].support,!1))&&o.push(e)})),St(o,t,r)}),((e,t)=>[e.blockTypes[t]]));function At(e,t){return e.bootstrappedBlockTypes[t]}function Nt(e){return e.unprocessedBlockTypes}function Pt(e){return e.blockBindingsSources}function Ot(e,t){return e.blockBindingsSources[t]}const Lt=window.wp.deprecated;var Mt=r.n(Lt);
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
-function zt(e){return"[object Object]"===Object.prototype.toString.call(e)}var It=r(8529);const Rt=window.wp.hooks,Ht=(...e)=>window?.console?.error?.(...e),Vt={common:"text",formatting:"text",layout:"design"},$t=(e,t)=>({select:r})=>{const n={name:e,icon:Y,keywords:[],attributes:{},providesContext:{},usesContext:[],selectors:{},supports:{},styles:[],variations:[],blockHooks:{},save:()=>null,...r.getBootstrappedBlockType(e),...t},o=(0,Rt.applyFilters)("blocks.registerBlockType",n,e,null);if(o.description&&"string"!=typeof o.description&&Dt()("Declaring non-string block descriptions",{since:"6.2"}),o.deprecated&&(o.deprecated=o.deprecated.map((e=>Object.fromEntries(Object.entries((0,Rt.applyFilters)("blocks.registerBlockType",{...Fe(n,Q),...e},n.name,e)).filter((([e])=>Q.includes(e))))))),function(e){var t,r;return!1!==zt(e)&&(void 0===(t=e.constructor)||!1!==zt(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}(o))if("function"==typeof o.save)if(!("edit"in o)||(0,It.isValidElementType)(o.edit))if(Vt.hasOwnProperty(o.category)&&(o.category=Vt[o.category]),"category"in o&&!r.getCategories().some((({slug:e})=>e===o.category))&&(((...e)=>{window?.console?.warn?.(...e)})('The block "'+e+'" is registered with an invalid category "'+o.category+'".'),delete o.category),"title"in o&&""!==o.title)if("string"==typeof o.title){if(o.icon=ze(o.icon),De(o.icon.src))return o;Ht("The icon passed is invalid. The icon should be a string, an element, a function, or an object following the specifications documented in https://developer.wordpress.org/block-editor/developers/block-api/block-registration/#icon-optional")}else Ht("Block titles must be strings.");else Ht('The block "'+e+'" must have a title.');else Ht('The "edit" property must be a valid component.');else Ht('The "save" property must be a valid function.');else Ht("Block settings must be a valid object.")};function Ut(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Array.isArray(e)?e:[e]}}function Ft(){return({dispatch:e,select:t})=>{const r=[];for(const[n,o]of Object.entries(t.getUnprocessedBlockTypes())){const t=e($t(n,o));t&&r.push(t)}r.length&&e.addBlockTypes(r)}}function qt(){return Dt()('wp.data.dispatch( "core/blocks" ).__experimentalReapplyBlockFilters',{since:"6.4",alternative:"reapplyBlockFilters"}),Ft()}function Gt(e){return{type:"REMOVE_BLOCK_TYPES",names:Array.isArray(e)?e:[e]}}function Kt(e,t){return{type:"ADD_BLOCK_STYLES",styles:Array.isArray(t)?t:[t],blockName:e}}function Wt(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Array.isArray(t)?t:[t],blockName:e}}function Yt(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Array.isArray(t)?t:[t],blockName:e}}function Qt(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Array.isArray(t)?t:[t],blockName:e}}function Zt(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function Xt(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function Jt(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function er(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function tr(e){return{type:"SET_CATEGORIES",categories:e}}function rr(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function nr(e,t,r){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:r}}function or(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}function ar(e,t){return{type:"ADD_BOOTSTRAPPED_BLOCK_TYPE",name:e,blockType:t}}function ir(e,t){return({dispatch:r})=>{r({type:"ADD_UNPROCESSED_BLOCK_TYPE",name:e,blockType:t});const n=r($t(e,t));n&&r.addBlockTypes(n)}}function sr(e){return{type:"REGISTER_BLOCK_BINDINGS_SOURCE",sourceName:e.name,sourceLabel:e.label,useSource:e.useSource,lockAttributesEditing:e.lockAttributesEditing}}const cr=(0,i.createReduxStore)("core/blocks",{reducer:Je,selectors:e,actions:o});(0,i.register)(cr),re(cr).registerPrivateSelectors(t),re(cr).registerPrivateActions(a);const lr={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let ur;const dr=new Uint8Array(16);function pr(){if(!ur&&(ur="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ur))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ur(dr)}const hr=[];for(let e=0;e<256;++e)hr.push((e+256).toString(16).slice(1));function fr(e,t=0){return hr[e[t+0]]+hr[e[t+1]]+hr[e[t+2]]+hr[e[t+3]]+"-"+hr[e[t+4]]+hr[e[t+5]]+"-"+hr[e[t+6]]+hr[e[t+7]]+"-"+hr[e[t+8]]+hr[e[t+9]]+"-"+hr[e[t+10]]+hr[e[t+11]]+hr[e[t+12]]+hr[e[t+13]]+hr[e[t+14]]+hr[e[t+15]]}const gr=function(e,t,r){if(lr.randomUUID&&!t&&!e)return lr.randomUUID();const n=(e=e||{}).random||(e.rng||pr)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return fr(n)};function mr(e,t={},r=[]){const n=$e(e,t);return{clientId:gr(),name:e,isValid:!0,attributes:n,innerBlocks:r}}function br(e=[]){return e.map((e=>{const t=Array.isArray(e)?e:[e.name,e.attributes,e.innerBlocks],[r,n,o=[]]=t;return mr(r,n,br(o))}))}function _r(e,t={},r){const n=gr(),o=$e(e.name,{...e.attributes,...t});return{...e,clientId:n,attributes:o,innerBlocks:r||e.innerBlocks.map((e=>_r(e)))}}function kr(e,t={},r){const n=gr();return{...e,clientId:n,attributes:{...e.attributes,...t},innerBlocks:r||e.innerBlocks.map((e=>kr(e)))}}const yr=(e,t,r)=>{if(!r.length)return!1;const n=r.length>1,o=r[0].name;if(!(Tr(e)||!n||e.isMultiBlock))return!1;if(!Tr(e)&&!r.every((e=>e.name===o)))return!1;if(!("block"===e.type))return!1;const a=r[0];return!("from"===t&&-1===e.blocks.indexOf(a.name)&&!Tr(e))&&(!(!n&&"from"===t&&Cr(a.name)&&Cr(e.blockName))&&!!Br(e,r))},wr=e=>{if(!e.length)return[];return ye().filter((t=>!!Er(Sr("from",t.name),(t=>yr(t,"from",e)))))},vr=e=>{if(!e.length)return[];const t=ke(e[0].name);return(t?Sr("to",t.name):[]).filter((t=>t&&yr(t,"to",e))).map((e=>e.blocks)).flat().map(ke)},Tr=e=>e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*"),Cr=e=>e===he();function xr(e){if(!e.length)return[];const t=wr(e),r=vr(e);return[...new Set([...t,...r])]}function Er(e,t){const r=(0,Rt.createHooks)();for(let n=0;n<e.length;n++){const o=e[n];t(o)&&r.addFilter("transform","transform/"+n.toString(),(e=>e||o),o.priority)}return r.applyFilters("transform",null)}function Sr(e,t){if(void 0===t)return ye().map((({name:t})=>Sr(e,t))).flat();const r=Ie(t),{name:n,transforms:o}=r||{};if(!o||!Array.isArray(o[e]))return[];const a=o.supportedMobileTransforms&&Array.isArray(o.supportedMobileTransforms),i=a?o[e].filter((e=>"raw"===e.type||!(!e.blocks||!e.blocks.length)&&(!!Tr(e)||e.blocks.every((e=>o.supportedMobileTransforms.includes(e)))))):o[e];return i.map((e=>({...e,blockName:n,usingMobileTransformations:a})))}function Br(e,t){if("function"!=typeof e.isMatch)return!0;const r=t[0],n=e.isMultiBlock?t.map((e=>e.attributes)):r.attributes,o=e.isMultiBlock?t:r;return e.isMatch(n,o)}function Ar(e,t){const r=Array.isArray(e)?e:[e],n=r.length>1,o=r[0],a=o.name,i=Sr("from",t),s=Er(Sr("to",a),(e=>"block"===e.type&&(Tr(e)||-1!==e.blocks.indexOf(t))&&(!n||e.isMultiBlock)&&Br(e,r)))||Er(i,(e=>"block"===e.type&&(Tr(e)||-1!==e.blocks.indexOf(a))&&(!n||e.isMultiBlock)&&Br(e,r)));if(!s)return null;let c;if(c=s.isMultiBlock?"__experimentalConvert"in s?s.__experimentalConvert(r):s.transform(r.map((e=>e.attributes)),r.map((e=>e.innerBlocks))):"__experimentalConvert"in s?s.__experimentalConvert(o):s.transform(o.attributes,o.innerBlocks),null===c||"object"!=typeof c)return null;if(c=Array.isArray(c)?c:[c],c.some((e=>!ke(e.name))))return null;if(!c.some((e=>e.name===t)))return null;return c.map(((t,r,n)=>(0,Rt.applyFilters)("blocks.switchToBlockType.transformedBlock",t,e,r,n)))}const Nr=(e,t)=>{try{var r;return mr(e,t.attributes,(null!==(r=t.innerBlocks)&&void 0!==r?r:[]).map((e=>Nr(e.name,e))))}catch{return mr("core/missing",{originalName:e,originalContent:"",originalUndelimitedContent:""})}},Pr=window.wp.blockSerializationDefaultParser,Or=window.wp.autop,Lr=window.React,Mr=window.wp.isShallowEqual;var jr=r.n(Mr);function Dr(e,t={}){const{isCommentDelimited:r=!0}=t,{blockName:n,attrs:o={},innerBlocks:a=[],innerContent:i=[]}=e;let s=0;const c=i.map((e=>null!==e?e:Dr(a[s++],t))).join("\n").replace(/\n+/g,"\n").trim();return r?Gr(n,o,c):c}function zr(e){const t="wp-block-"+e.replace(/\//,"-").replace(/^core-/,"");return(0,Rt.applyFilters)("blocks.getBlockDefaultClassName",t,e)}function Ir(e){const t="editor-block-list-item-"+e.replace(/\//,"-").replace(/^core-/,"");return(0,Rt.applyFilters)("blocks.getBlockMenuDefaultClassName",t,e)}const Rr={},Hr={};function Vr(e={}){const{blockType:t,attributes:r}=Rr;return Vr.skipFilters?e:(0,Rt.applyFilters)("blocks.getSaveContent.extraProps",{...e},t,r)}function $r(e={}){const{innerBlocks:t}=Hr;if(!Array.isArray(t))return{...e,children:t};const r=Yr(t,{isInnerBlocks:!0}),n=(0,Lr.createElement)(G.RawHTML,null,r);return{...e,children:n}}function Ur(e,t,r=[]){const n=Ie(e);if(!n?.save)return null;let{save:o}=n;if(o.prototype instanceof G.Component){const e=new o({attributes:t});o=e.render.bind(e)}Rr.blockType=n,Rr.attributes=t,Hr.innerBlocks=r;let a=o({attributes:t,innerBlocks:r});if(null!==a&&"object"==typeof a&&(0,Rt.hasFilter)("blocks.getSaveContent.extraProps")&&!(n.apiVersion>1)){const e=(0,Rt.applyFilters)("blocks.getSaveContent.extraProps",{...a.props},n,t);jr()(e,a.props)||(a=(0,G.cloneElement)(a,e))}return(0,Rt.applyFilters)("blocks.getSaveElement",a,n,t)}function Fr(e,t,r){const n=Ie(e);return(0,G.renderToString)(Ur(n,t,r))}function qr(e){let t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=Fr(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function Gr(e,t,r){const n=t&&Object.entries(t).length?function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ":"",o=e?.startsWith("core/")?e.slice(5):e;return r?`\x3c!-- wp:${o} ${n}--\x3e\n`+r+`\n\x3c!-- /wp:${o} --\x3e`:`\x3c!-- wp:${o} ${n}/--\x3e`}function Kr(e,{isInnerBlocks:t=!1}={}){if(!e.isValid&&e.__unstableBlockSource)return Dr(e.__unstableBlockSource);const r=e.name,n=qr(e);if(r===ge()||!t&&r===pe())return n;const o=ke(r);if(!o)return n;const a=function(e,t){var r;return Object.entries(null!==(r=e.attributes)&&void 0!==r?r:{}).reduce(((e,[r,n])=>{const o=t[r];return void 0===o||void 0!==n.source||"default"in n&&JSON.stringify(n.default)===JSON.stringify(o)||(e[r]=o),e}),{})}(o,e.attributes);return Gr(r,a,n)}function Wr(e){1===e.length&&je(e[0])&&(e=[]);let t=Yr(e);return 1===e.length&&e[0].name===pe()&&"core/freeform"===e[0].name&&(t=(0,Or.removep)(t)),t}function Yr(e,t){return(Array.isArray(e)?e:[e]).map((e=>Kr(e,t))).join("\n\n")}var Qr=/^#[xX]([A-Fa-f0-9]+)$/,Zr=/^#([0-9]+)$/,Xr=/^([A-Za-z0-9]+)$/,Jr=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(Qr);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(Zr))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(Xr))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),en=/[A-Za-z]/,tn=/\r\n?/g;function rn(e){return Jr.test(e)}function nn(e){return en.test(e)}var on=function(){function e(e,t,r){void 0===r&&(r="precompile"),this.delegate=e,this.entityParser=t,this.mode=r,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("precompile"===this.mode&&"\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||nn(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){var e=this.consume();"-"===e&&"-"===this.peek()?(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment()):"DOCTYPE"===e.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase()&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())},doctype:function(){rn(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var e=this.consume();rn(e)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase()))},doctypeName:function(){var e=this.consume();rn(e)?this.transitionTo("afterDoctypeName"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase())},afterDoctypeName:function(){var e=this.consume();if(!rn(e))if(">"===e)this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var t=e.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),r="PUBLIC"===t.toUpperCase(),n="SYSTEM"===t.toUpperCase();(r||n)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),r?this.transitionTo("afterDoctypePublicKeyword"):n&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var e=this.peek();rn(e)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):'"'===e?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):"'"===e?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):">"===e&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},doctypePublicIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},afterDoctypePublicIdentifier:function(){var e=this.consume();rn(e)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var e=this.consume();rn(e)||(">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},doctypeSystemIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},afterDoctypeSystemIdentifier:function(){var e=this.consume();rn(e)||">"===e&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},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();rn(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();rn(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();rn(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();rn(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();rn(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();rn(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();rn(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();rn(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||nn(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(tn,"\n")}(e);this.index<this.input.length;){var t=this.states[this.state];if(void 0===t)throw new Error("unhandled state "+this.state);t.call(this)}},e.prototype.tokenizeEOF=function(){this.flushData()},e.prototype.flushData=function(){"data"===this.state&&(this.delegate.finishData(),this.transitionTo("beforeData"))},e.prototype.peek=function(){return this.input.charAt(this.index)},e.prototype.consume=function(){var e=this.peek();return this.index++,"\n"===e?(this.line++,this.column=0):this.column++,e},e.prototype.consumeCharRef=function(){var e=this.input.indexOf(";",this.index);if(-1!==e){var t=this.input.slice(this.index,e),r=this.entityParser.parse(t);if(r){for(var n=t.length;n;)this.consume(),n--;return this.consume(),r}}},e.prototype.markTagStart=function(){this.delegate.tagOpen()},e.prototype.appendToTagName=function(e){this.tagNameBuffer+=e,this.delegate.appendToTagName(e)},e.prototype.isIgnoredEndTag=function(){var e=this.tagNameBuffer;return"title"===e&&"</title>"!==this.input.substring(this.index,this.index+8)||"style"===e&&"</style>"!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),an=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 on(this,e,t.mode),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;t<arguments.length;t++)if(e.type===arguments[t])return e;throw new Error("token type was unexpectedly "+e.type)},e.prototype.push=function(e){this.token=e,this.tokens.push(e)},e.prototype.currentAttribute=function(){return this._currentAttribute},e.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},e.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},e.prototype.appendToDoctypeName=function(e){this.current("Doctype").name+=e},e.prototype.appendToDoctypePublicIdentifier=function(e){var t=this.current("Doctype");void 0===t.publicIdentifier?t.publicIdentifier=e:t.publicIdentifier+=e},e.prototype.appendToDoctypeSystemIdentifier=function(e){var t=this.current("Doctype");void 0===t.systemIdentifier?t.systemIdentifier=e:t.systemIdentifier+=e},e.prototype.endDoctype=function(){this.addLocInfo()},e.prototype.beginData=function(){this.push({type:"Chars",chars:""})},e.prototype.appendToData=function(e){this.current("Chars").chars+=e},e.prototype.finishData=function(){this.addLocInfo()},e.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},e.prototype.appendToCommentData=function(e){this.current("Comment").chars+=e},e.prototype.finishComment=function(){this.addLocInfo()},e.prototype.tagOpen=function(){},e.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},e.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},e.prototype.finishTag=function(){this.addLocInfo()},e.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},e.prototype.appendToTagName=function(e){this.current("StartTag","EndTag").tagName+=e},e.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},e.prototype.appendToAttributeName=function(e){this.currentAttribute()[0]+=e},e.prototype.beginAttributeValue=function(e){this.currentAttribute()[2]=e},e.prototype.appendToAttributeValue=function(e){this.currentAttribute()[1]+=e},e.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},e.prototype.reportSyntaxError=function(e){this.current().syntaxError=e},e}();var sn=r(7734),cn=r.n(sn);const ln=window.wp.htmlEntities;function un(){function e(e){return(t,...r)=>e("Block validation: "+t,...r)}return{error:e(console.error),warning:e(console.warn),getItems:()=>[]}}const dn=/[\t\n\r\v\f ]+/g,pn=/^[\t\n\r\v\f ]*$/,hn=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,fn=["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"],gn=[...fn,"autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"],mn=[e=>e,function(e){return wn(e).join(" ")}],bn=/^[\da-z]+$/i,_n=/^#\d+$/,kn=/^#x[\da-f]+$/i;class yn{parse(e){if(t=e,bn.test(t)||_n.test(t)||kn.test(t))return(0,ln.decodeEntities)("&"+e+";");var t}}function wn(e){return e.trim().split(dn)}function vn(e){return e.attributes.filter((e=>{const[t,r]=e;return r||0===t.indexOf("data-")||gn.includes(t)}))}function Tn(e,t,r=un()){let n=e.chars,o=t.chars;for(let e=0;e<mn.length;e++){const t=mn[e];if(n=t(n),o=t(o),n===o)return!0}return r.warning("Expected text `%s`, saw `%s`.",t.chars,e.chars),!1}function Cn(e){return 0===parseFloat(e)?"0":0===e.indexOf(".")?"0"+e:e}function xn(e){return wn(e).map(Cn).join(" ").replace(hn,"url($1)")}function En(e){const t=e.replace(/;?\s*$/,"").split(";").map((e=>{const[t,...r]=e.split(":"),n=r.join(":");return[t.trim(),xn(n.trim())]}));return Object.fromEntries(t)}const Sn={class:(e,t)=>{const[r,n]=[e,t].map(wn),o=r.filter((e=>!n.includes(e))),a=n.filter((e=>!r.includes(e)));return 0===o.length&&0===a.length},style:(e,t)=>cn()(...[e,t].map(En)),...Object.fromEntries(fn.map((e=>[e,()=>!0])))};const Bn={StartTag:(e,t,r=un())=>e.tagName!==t.tagName&&e.tagName.toLowerCase()!==t.tagName.toLowerCase()?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):function(e,t,r=un()){if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;const n={};for(let e=0;e<t.length;e++)n[t[e][0].toLowerCase()]=t[e][1];for(let t=0;t<e.length;t++){const[o,a]=e[t],i=o.toLowerCase();if(!n.hasOwnProperty(i))return r.warning("Encountered unexpected attribute `%s`.",o),!1;const s=n[i],c=Sn[i];if(c){if(!c(a,s))return r.warning("Expected attribute `%s` of value `%s`, saw `%s`.",o,s,a),!1}else if(a!==s)return r.warning("Expected attribute `%s` of value `%s`, saw `%s`.",o,s,a),!1}return!0}(...[e,t].map(vn),r),Chars:Tn,Comment:Tn};function An(e){let t;for(;t=e.shift();){if("Chars"!==t.type)return t;if(!pn.test(t.chars))return t}}function Nn(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function Pn(e,t,r=un()){if(e===t)return!0;const[n,o]=[e,t].map((e=>function(e,t=un()){try{return new an(new yn).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}(e,r)));if(!n||!o)return!1;let a,i;for(;a=An(n);){if(i=An(o),!i)return r.warning("Expected end of content, instead saw %o.",a),!1;if(a.type!==i.type)return r.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",i.type,i,a.type,a),!1;const e=Bn[a.type];if(e&&!e(a,i,r))return!1;Nn(a,o[0])?An(o):Nn(i,n[0])&&An(n)}return!(i=An(o))||(r.warning("Expected %o, instead saw end of content.",i),!1)}function On(e,t=e.name){if(e.name===pe()||e.name===ge())return[!0,[]];const r=function(){const e=[],t=un();return{error(...r){e.push({log:t.error,args:r})},warning(...r){e.push({log:t.warning,args:r})},getItems:()=>e}}(),n=Ie(t);let o;try{o=Fr(n,e.attributes)}catch(e){return r.error("Block validation failed because an error occurred while generating block content:\n\n%s",e.toString()),[!1,r.getItems()]}const a=Pn(e.originalContent,o,r);return a||r.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",n.name,n,o,e.originalContent),[a,r.getItems()]}function Ln(e,t,r){Dt()("isValidBlockContent introduces opportunity for data loss",{since:"12.6",plugin:"Gutenberg",alternative:"validateBlock"});const n=Ie(e),o={name:n.name,attributes:t,innerBlocks:[],originalContent:r},[a]=On(o,n);return a}function Mn(e,t){const r={...t};if("core/cover-image"===e&&(e="core/cover"),"core/text"!==e&&"core/cover-text"!==e||(e="core/paragraph"),e&&0===e.indexOf("core/social-link-")&&(r.service=e.substring(17),e="core/social-link"),e&&0===e.indexOf("core-embed/")){const t=e.substring(11),n={speaker:"speaker-deck",polldaddy:"crowdsignal"};r.providerNameSlug=t in n?n[t]:t,["amazon-kindle","wordpress"].includes(t)||(r.responsive=!0),e="core/embed"}if("core/post-comment-author"===e&&(e="core/comment-author-name"),"core/post-comment-content"===e&&(e="core/comment-content"),"core/post-comment-date"===e&&(e="core/comment-date"),"core/comments-query-loop"===e){e="core/comments";const{className:t=""}=r;t.includes("wp-block-comments-query-loop")||(r.className=["wp-block-comments-query-loop",t].join(" "))}return"core/post-comments"===e&&(e="core/comments",r.legacy=!0),[e,r]}var jn,Dn=function(){return jn||(jn=document.implementation.createHTMLDocument("")),jn};function zn(e,t){if(t){if("string"==typeof e){var r=Dn();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]=zn(e,t[n]),r}),{})}}function In(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return function(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}(n,t)}}function Rn(e){const t={};for(let r=0;r<e.length;r++){const{name:n,value:o}=e[r];t[n]=o}return t}function Hn(e){if(Dt()("wp.blocks.node.fromDOM",{since:"6.1",version:"6.3",alternative:"wp.richText.create",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),e.nodeType===e.TEXT_NODE)return e.nodeValue;if(e.nodeType!==e.ELEMENT_NODE)throw new TypeError("A block node can only be created from a node of type text or element.");return{type:e.nodeName.toLowerCase(),props:{...Rn(e.attributes),children:Un(e.childNodes)}}}function Vn(e){return Dt()("wp.blocks.node.matcher",{since:"6.1",version:"6.3",alternative:"html source",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),t=>{let r=t;e&&(r=t.querySelector(e));try{return Hn(r)}catch(e){return null}}}const $n={isNodeOfType:function(e,t){return Dt()("wp.blocks.node.isNodeOfType",{since:"6.1",version:"6.3",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),e&&e.type===t},fromDOM:Hn,toHTML:function(e){return Dt()("wp.blocks.node.toHTML",{since:"6.1",version:"6.3",alternative:"wp.richText.toHTMLString",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),Fn([e])},matcher:Vn};function Un(e){Dt()("wp.blocks.children.fromDOM",{since:"6.1",version:"6.3",alternative:"wp.richText.create",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"});const t=[];for(let r=0;r<e.length;r++)try{t.push(Hn(e[r]))}catch(e){}return t}function Fn(e){Dt()("wp.blocks.children.toHTML",{since:"6.1",version:"6.3",alternative:"wp.richText.toHTMLString",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"});const t=e;return(0,G.renderToString)(t)}function qn(e){return Dt()("wp.blocks.children.matcher",{since:"6.1",version:"6.3",alternative:"html source",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),t=>{let r=t;return e&&(r=t.querySelector(e)),r?Un(r.childNodes):[]}}const Gn={concat:function(...e){Dt()("wp.blocks.children.concat",{since:"6.1",version:"6.3",alternative:"wp.richText.concat",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"});const t=[];for(let r=0;r<e.length;r++){const n=Array.isArray(e[r])?e[r]:[e[r]];for(let e=0;e<n.length;e++){const r=n[e];"string"==typeof r&&"string"==typeof t[t.length-1]?t[t.length-1]+=r:t.push(r)}}return t},getChildrenArray:function(e){return Dt()("wp.blocks.children.getChildrenArray",{since:"6.1",version:"6.3",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),e},fromDOM:Un,toHTML:Fn,matcher:qn};function Kn(e,t){return t.some((t=>function(e,t){switch(t){case"rich-text":return e instanceof W.RichTextData;case"string":return"string"==typeof e;case"boolean":return"boolean"==typeof e;case"object":return!!e&&e.constructor===Object;case"null":return null===e;case"array":return Array.isArray(e);case"integer":case"number":return"number"==typeof e}return!0}(e,t)))}function Wn(e,t,r,n,o){let a;switch(t.source){case void 0:a=n?n[e]:void 0;break;case"raw":a=o;break;case"attribute":case"property":case"html":case"text":case"rich-text":case"children":case"node":case"query":case"tag":a=Zn(r,t)}return function(e,t){return void 0===t||Kn(e,Array.isArray(t)?t:[t])}(a,t.type)&&function(e,t){return!Array.isArray(t)||t.includes(e)}(a,t.enum)||(a=void 0),void 0===a&&(a=Ve(t)),a}const Yn=function(e,t){var r,n,o=0;function a(){var a,i,s=r,c=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i<c;i++)if(s.args[i]!==arguments[i]){s=s.next;continue e}return s!==r&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=r,s.prev=null,r.prev=s,r=s),s.val}s=s.next}for(a=new Array(c),i=0;i<c;i++)a[i]=arguments[i];return s={args:a,val:e.apply(null,a)},r?(r.prev=s,s.next=r):n=s,o===t.maxSize?(n=n.prev).next=null:o++,r=s,s.val}return t=t||{},a.clear=function(){r=null,n=null,o=0},a}((e=>{switch(e.source){case"attribute":let n=function(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=In(e,"attributes")(r);if(n&&n.hasOwnProperty(t))return n[t].value}}(e.selector,e.attribute);return"boolean"===e.type&&(n=(e=>(0,it.pipe)([e,e=>void 0!==e]))(n)),n;case"html":return t=e.selector,r=e.multiline,e=>{let n=e;if(t&&(n=e.querySelector(t)),!n)return"";if(r){let e="";const t=n.children.length;for(let o=0;o<t;o++){const t=n.children[o];t.nodeName.toLowerCase()===r&&(e+=t.outerHTML)}return e}return n.innerHTML};case"text":return function(e){return In(e,"textContent")}(e.selector);case"rich-text":return((e,t)=>r=>{const n=e?r.querySelector(e):r;return n?W.RichTextData.fromHTMLElement(n,{preserveWhiteSpace:t}):W.RichTextData.empty()})(e.selector,e.__unstablePreserveWhiteSpace);case"children":return qn(e.selector);case"node":return Vn(e.selector);case"query":const o=Object.fromEntries(Object.entries(e.query).map((([e,t])=>[e,Yn(t)])));return function(e,t){return function(r){var n=r.querySelectorAll(e);return[].map.call(n,(function(e){return zn(e,t)}))}}(e.selector,o);case"tag":return(0,it.pipe)([In(e.selector,"nodeName"),e=>e?e.toLowerCase():void 0]);default:console.error(`Unknown source type "${e.source}"`)}var t,r}));function Qn(e){return zn(e,(e=>e))}function Zn(e,t){return Yn(t)(Qn(e))}function Xn(e,t,r={}){var n;const o=Qn(t),a=Ie(e),i=Object.fromEntries(Object.entries(null!==(n=a.attributes)&&void 0!==n?n:{}).map((([e,n])=>[e,Wn(e,n,o,r,t)])));return(0,Rt.applyFilters)("blocks.getBlockAttributes",i,a,t,r)}const Jn={type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"};function eo(e){const t=Zn(`<div data-custom-class-name>${e}</div>`,Jn);return t?t.trim().split(/\s+/):[]}function to(e,t){const r=function(e,t,r){if(ve(t,"customClassName",!0)){const{className:n,...o}=e,a=Fr(t,o),i=eo(a),s=eo(r).filter((e=>!i.includes(e)));s.length?e.className=s.join(" "):a&&delete e.className}return e}(e.attributes,t,e.originalContent);return{...e,attributes:r}}function ro(){return!1}function no(e,t){let r=function(e,t){const r=pe(),n=e.blockName||pe(),o=e.attrs||{},a=e.innerBlocks||[];let i=e.innerHTML.trim();return n!==r||"core/freeform"!==n||t?.__unstableSkipAutop||(i=(0,Or.autop)(i).trim()),{...e,blockName:n,attrs:o,innerHTML:i,innerBlocks:a}}(e,t);r=function(e){const[t,r]=Mn(e.blockName,e.attrs);return{...e,blockName:t,attrs:r}}(r);let n=ke(r.blockName);n||(r=function(e){const t=ge()||pe(),r=Dr(e,{isCommentDelimited:!1}),n=Dr(e,{isCommentDelimited:!0});return{blockName:t,attrs:{originalName:e.blockName,originalContent:n,originalUndelimitedContent:r},innerHTML:e.blockName?n:e.innerHTML,innerBlocks:e.innerBlocks,innerContent:e.innerContent}}(r),n=ke(r.blockName));const o=r.blockName===pe()||r.blockName===ge();if(!n||!r.innerHTML&&o)return;const a=r.innerBlocks.map((e=>no(e,t))).filter((e=>!!e)),i=mr(r.blockName,Xn(n,r.innerHTML,r.attrs),a);i.originalContent=r.innerHTML;const s=function(e,t){const[r]=On(e,t);if(r)return{...e,isValid:r,validationIssues:[]};const n=to(e,t),[o,a]=On(e,t);return{...n,isValid:o,validationIssues:a}}(i,n),{validationIssues:c}=s,l=function(e,t,r){const n=t.attrs,{deprecated:o}=r;if(!o||!o.length)return e;for(let a=0;a<o.length;a++){const{isEligible:i=ro}=o[a];if(e.isValid&&!i(n,e.innerBlocks,{blockNode:t,block:e}))continue;const s=Object.assign(Fe(r,Q),o[a]);let c={...e,attributes:Xn(s,e.originalContent,n)},[l]=On(c,s);if(l||(c=to(c,s),[l]=On(c,s)),!l)continue;let u=c.innerBlocks,d=c.attributes;const{migrate:p}=s;if(p){let t=p(d,e.innerBlocks);Array.isArray(t)||(t=[t]),[d=n,u=e.innerBlocks]=t}e={...e,attributes:d,innerBlocks:u,isValid:!0,validationIssues:[]}}return e}(s,r,n);return l.isValid||(l.__unstableBlockSource=e),s.isValid||!l.isValid||t?.__unstableSkipMigrationLogs?s.isValid||l.isValid||c.forEach((({log:e,args:t})=>e(...t))):(console.groupCollapsed("Updated Block: %s",n.name),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",n.name,n,Fr(n,l.attributes),l.originalContent),console.groupEnd()),l}function oo(e,t){return(0,Pr.parse)(e).reduce(((e,r)=>{const n=no(r,t);return n&&e.push(n),e}),[])}function ao(){return Sr("from").filter((({type:e})=>"raw"===e)).map((e=>e.isMatch?e:{...e,isMatch:t=>e.selector&&t.matches(e.selector)}))}function io(e,t){const r=document.implementation.createHTMLDocument("");return r.body.innerHTML=e,Array.from(r.body.children).flatMap((e=>{const r=Er(ao(),(({isMatch:t})=>t(e)));if(!r)return G.Platform.isNative?oo(`\x3c!-- wp:html --\x3e${e.outerHTML}\x3c!-- /wp:html --\x3e`):mr("core/html",Xn("core/html",e.outerHTML));const{transform:n,blockName:o}=r;return n?n(e,t):mr(o,Xn(o,e.outerHTML))}))}function so(e){const t=document.implementation.createHTMLDocument(""),r=document.implementation.createHTMLDocument(""),n=t.body,o=r.body;for(n.innerHTML=e;n.firstChild;){const e=n.firstChild;e.nodeType===e.TEXT_NODE?(0,K.isEmpty)(e)?n.removeChild(e):(o.lastChild&&"P"===o.lastChild.nodeName||o.appendChild(r.createElement("P")),o.lastChild.appendChild(e)):e.nodeType===e.ELEMENT_NODE?"BR"===e.nodeName?(e.nextSibling&&"BR"===e.nextSibling.nodeName&&(o.appendChild(r.createElement("P")),n.removeChild(e.nextSibling)),o.lastChild&&"P"===o.lastChild.nodeName&&o.lastChild.hasChildNodes()?o.lastChild.appendChild(e):n.removeChild(e)):"P"===e.nodeName?(0,K.isEmpty)(e)?n.removeChild(e):o.appendChild(e):(0,K.isPhrasingContent)(e)?(o.lastChild&&"P"===o.lastChild.nodeName||o.appendChild(r.createElement("P")),o.lastChild.appendChild(e)):o.appendChild(e):n.removeChild(e)}return o.innerHTML}function co(e,t){e.nodeType===e.COMMENT_NODE&&("nextpage"!==e.nodeValue?0===e.nodeValue.indexOf("more")&&function(e,t){const r=e.nodeValue.slice(4).trim();let n=e,o=!1;for(;n=n.nextSibling;)if(n.nodeType===n.COMMENT_NODE&&"noteaser"===n.nodeValue){o=!0,(0,K.remove)(n);break}const a=function(e,t,r){const n=r.createElement("wp-block");n.dataset.block="core/more",e&&(n.dataset.customText=e);t&&(n.dataset.noTeaser="");return n}(r,o,t);if(e.parentNode&&"P"===e.parentNode.nodeName&&1!==e.parentNode.childNodes.length){const r=Array.from(e.parentNode.childNodes),n=r.indexOf(e),o=e.parentNode.parentNode||t.body,i=(e,r)=>(e||(e=t.createElement("p")),e.appendChild(r),e);[r.slice(0,n).reduce(i,null),a,r.slice(n+1).reduce(i,null)].forEach((t=>t&&o.insertBefore(t,e.parentNode))),(0,K.remove)(e.parentNode)}else(0,K.replace)(e,a)}(e,t):(0,K.replace)(e,function(e){const t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t)))}function lo(e){return"OL"===e.nodeName||"UL"===e.nodeName}function uo(e){if(!lo(e))return;const 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)}const n=e.parentNode;if(n&&"LI"===n.nodeName&&1===n.children.length&&!/\S/.test((o=n,Array.from(o.childNodes).map((({nodeValue:e=""})=>e)).join("")))){const e=n,r=e.previousElementSibling,o=e.parentNode;r?(r.appendChild(t),o.removeChild(e)):(o.parentNode.insertBefore(t,o),o.parentNode.removeChild(o))}var o;if(n&&lo(n)){const t=e.previousElementSibling;t?t.appendChild(e):(0,K.unwrap)(e)}}function po(e){"BLOCKQUOTE"===e.nodeName&&(e.innerHTML=so(e.innerHTML))}function ho(e,t=e){const r=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(r,t),r.appendChild(e)}function fo(e,t,r){if(!function(e,t){var r;const n=e.nodeName.toLowerCase();return"figcaption"!==n&&!(0,K.isTextContent)(e)&&n in(null!==(r=t?.figure?.children)&&void 0!==r?r:{})}(e,r))return;let n=e;const o=e.parentNode;(function(e,t){var r;return e.nodeName.toLowerCase()in(null!==(r=t?.figure?.children?.a?.children)&&void 0!==r?r:{})})(e,r)&&"A"===o.nodeName&&1===o.childNodes.length&&(n=e.parentNode);const a=n.closest("p,div");a?e.classList?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!a.textContent.trim())&&ho(n,a):ho(n,a):"BODY"===n.parentNode.nodeName&&ho(n)}const go=window.wp.shortcode,mo=e=>Array.isArray(e)?e:[e];const bo=function e(t,r=0,n=[]){const o=Er(Sr("from"),(e=>-1===n.indexOf(e.blockName)&&"shortcode"===e.type&&mo(e.tag).some((e=>(0,go.regexp)(e).test(t)))));if(!o)return[t];const a=mo(o.tag).find((e=>(0,go.regexp)(e).test(t)));let i;const s=r;if(i=(0,go.next)(a,t,r)){r=i.index+i.content.length;const a=t.substr(0,i.index),c=t.substr(r);if(!(i.shortcode.content?.includes("<")||/(\n|<p>)\s*$/.test(a)&&/^\s*(\n|<\/p>)/.test(c)))return e(t,r);if(o.isMatch&&!o.isMatch(i.shortcode.attrs))return e(t,s,[...n,o.blockName]);let l=[];if("function"==typeof o.transform)l=[].concat(o.transform(i.shortcode.attrs,i)),l=l.map((e=>(e.originalContent=i.shortcode.content,to(e,ke(e.name)))));else{const e=Object.fromEntries(Object.entries(o.attributes).filter((([,e])=>e.shortcode)).map((([e,t])=>[e,t.shortcode(i.shortcode.attrs,i)]))),r=ke(o.blockName);if(!r)return[t];const n={...r,attributes:o.attributes};let a=mr(o.blockName,Xn(n,i.shortcode.content,e));a.originalContent=i.shortcode.content,a=to(a,n),l=[a]}return[...e(a),...l,...e(c)]}return[t]};function _o(e){return function(e,t){const r={phrasingContentSchema:(0,K.getPhrasingContentSchema)(t),isPaste:"paste"===t};function n(e,t,r){switch(r){case"children":return"*"===e||"*"===t?"*":{...e,...t};case"attributes":case"require":return[...e||[],...t||[]];case"isMatch":if(!e||!t)return;return(...r)=>e(...r)||t(...r)}}function o(e,t){for(const r in t)e[r]=e[r]?n(e[r],t[r],r):{...t[r]};return e}return e.map((({isMatch:e,blockName:t,schema:n})=>{const o=ve(t,"anchor");return n="function"==typeof n?n(r):n,o||e?n?Object.fromEntries(Object.entries(n).map((([t,r])=>{let n=r.attributes||[];return o&&(n=[...n,"id"]),[t,{...r,attributes:n,isMatch:e||void 0}]}))):{}:n})).reduce((function(e,t){for(const r in t)e[r]=e[r]?o(e[r],t[r]):{...t[r]};return e}),{})}(ao(),e)}function ko(e,t,r,n){Array.from(e).forEach((e=>{ko(e.childNodes,t,r,n),t.forEach((t=>{r.contains(e)&&t(e,r,n)}))}))}function yo(e,t=[],r){const n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,ko(n.body.childNodes,t,n,r),n.body.innerHTML}function wo(e,t){const r=e[`${t}Sibling`];if(r&&(0,K.isPhrasingContent)(r))return r;const{parentNode:n}=e;return n&&(0,K.isPhrasingContent)(n)?wo(n,t):void 0}function vo(e){return Dt()("wp.blocks.getPhrasingContentSchema",{since:"5.6",alternative:"wp.dom.getPhrasingContentSchema"}),(0,K.getPhrasingContentSchema)(e)}function To({HTML:e=""}){if(-1!==e.indexOf("\x3c!-- wp:"))return oo(e);const t=bo(e),r=_o();return t.map((e=>{if("string"!=typeof e)return e;return io(e=so(e=yo(e,[uo,co,fo,po],r)),To)})).flat().filter(Boolean)}function Co(e){e.nodeType===e.COMMENT_NODE&&(0,K.remove)(e)}function xo(e,t){return e.every((e=>function(e,t){if((0,K.isTextContent)(e))return!0;if(!t)return!1;const r=e.nodeName.toLowerCase();return[["ul","li","ol"],["h1","h2","h3","h4","h5","h6"]].some((e=>0===[r,t].filter((t=>!e.includes(t))).length))}(e,t)&&xo(Array.from(e.children),t)))}function Eo(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}function So(e,t){if("SPAN"===e.nodeName&&e.style){const{fontWeight:r,fontStyle:n,textDecorationLine:o,textDecoration:a,verticalAlign:i}=e.style;"bold"!==r&&"700"!==r||(0,K.wrap)(t.createElement("strong"),e),"italic"===n&&(0,K.wrap)(t.createElement("em"),e),("line-through"===o||a.includes("line-through"))&&(0,K.wrap)(t.createElement("s"),e),"super"===i?(0,K.wrap)(t.createElement("sup"),e):"sub"===i&&(0,K.wrap)(t.createElement("sub"),e)}else"B"===e.nodeName?e=(0,K.replaceTag)(e,"strong"):"I"===e.nodeName?e=(0,K.replaceTag)(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")),e.name&&!e.id&&(e.id=e.name),e.id&&!e.ownerDocument.querySelector(`[href="#${e.id}"]`)&&e.removeAttribute("id"))}function Bo(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)}function Ao(e){if(e.nodeType!==e.ELEMENT_NODE)return;const t=e.getAttribute("style");if(!t||!t.includes("mso-list"))return;"ignore"===t.split(";").reduce(((e,t)=>{const[r,n]=t.split(":");return e[r.trim().toLowerCase()]=n.trim().toLowerCase(),e}),{})["mso-list"]&&e.remove()}function No(e){return"OL"===e.nodeName||"UL"===e.nodeName}function Po(e,t){if("P"!==e.nodeName)return;const r=e.getAttribute("style");if(!r||!r.includes("mso-list"))return;const n=e.previousElementSibling;if(!n||!No(n)){const r=e.textContent.trim().slice(0,1),n=/[1iIaA]/.test(r),o=t.createElement(n?"ol":"ul");n&&o.setAttribute("type",r),e.parentNode.insertBefore(o,e)}const o=e.previousElementSibling,a=o.nodeName,i=t.createElement("li");let s=o;i.innerHTML=yo(e.innerHTML,[Ao]);const c=/mso-list\s*:[^;]+level([0-9]+)/i.exec(r);let l=c&&parseInt(c[1],10)-1||0;for(;l--;)s=s.lastChild||s,No(s)&&(s=s.lastChild||s);No(s)||(s=s.appendChild(t.createElement(a))),s.appendChild(i),e.parentNode.removeChild(e)}const Oo=window.wp.blob;function Lo(e){if("IMG"===e.nodeName){if(0===e.src.indexOf("file:")&&(e.src=""),0===e.src.indexOf("data:")){const[t,r]=e.src.split(","),[n]=t.slice(5).split(";");if(!r||!n)return void(e.src="");let o;try{o=atob(r)}catch(t){return void(e.src="")}const a=new Uint8Array(o.length);for(let e=0;e<a.length;e++)a[e]=o.charCodeAt(e);const i=n.replace("/","."),s=new window.File([a],i,{type:n});e.src=(0,Oo.createBlobURL)(s)}1!==e.height&&1!==e.width||e.parentNode.removeChild(e)}}function Mo(e){"DIV"===e.nodeName&&(e.innerHTML=so(e.innerHTML))}var jo=r(1030);const Do=new(r.n(jo)().Converter)({noHeaderId:!0,tables:!0,literalMidWordUnderscores:!0,omitExtraWLInCodeBlocks:!0,simpleLineBreaks:!0,strikethrough:!0});function zo(e){if("IFRAME"===e.nodeName){const t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}function Io(e){e.id&&0===e.id.indexOf("docs-internal-guid-")&&("B"===e.tagName?(0,K.unwrap)(e):e.removeAttribute("id"))}function Ro(e){if(e.nodeType!==e.TEXT_NODE)return;let t=e;for(;t=t.parentNode;)if(t.nodeType===t.ELEMENT_NODE&&"PRE"===t.nodeName)return;let r=e.data.replace(/[ \r\n\t]+/g," ");if(" "===r[0]){const t=wo(e,"previous");t&&"BR"!==t.nodeName&&" "!==t.textContent.slice(-1)||(r=r.slice(1))}if(" "===r[r.length-1]){const t=wo(e,"next");(!t||"BR"===t.nodeName||t.nodeType===t.TEXT_NODE&&(" "===(n=t.textContent[0])||"\r"===n||"\n"===n||"\t"===n))&&(r=r.slice(0,-1))}var n;r?e.data=r:e.parentNode.removeChild(e)}function Ho(e){"BR"===e.nodeName&&(wo(e,"next")||e.parentNode.removeChild(e))}function Vo(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function $o(e){if("SPAN"!==e.nodeName)return;if("paragraph-break"!==e.getAttribute("data-stringify-type"))return;const{parentNode:t}=e;t.insertBefore(e.ownerDocument.createElement("br"),e),t.insertBefore(e.ownerDocument.createElement("br"),e),t.removeChild(e)}const Uo=(...e)=>window?.console?.log?.(...e);function Fo(e){return e=yo(e,[Bo,Io,Ao,So,Co]),e=yo(e=(0,K.removeInvalidHTML)(e,(0,K.getPhrasingContentSchema)("paste"),{inline:!0}),[Ro,Ho]),Uo("Processed inline HTML:\n\n",e),e}function qo({HTML:e="",plainText:t="",mode:r="AUTO",tagName:n}){if(e=(e=(e=e.replace(/<meta[^>]+>/g,"")).replace(/^\s*<html[^>]*>\s*<body[^>]*>(?:\s*<!--\s*StartFragment\s*-->)?/i,"")).replace(/(?:<!--\s*EndFragment\s*-->\s*)?<\/body>\s*<\/html>\s*$/i,""),"INLINE"!==r){const r=e||t;if(-1!==r.indexOf("\x3c!-- wp:"))return oo(r)}String.prototype.normalize&&(e=e.normalize()),e=yo(e,[$o]);const o=t&&(!e||function(e){return!/<(?!br[ />])/i.test(e)}(e));var a;o&&(e=t,/^\s+$/.test(t)||(a=e,e=Do.makeHtml(function(e){return e.replace(/((?:^|\n)```)([^\n`]+)(```(?:$|\n))/,((e,t,r,n)=>`${t}\n${r}\n${n}`))}(function(e){return e.replace(/(^|\n)•( +)/g,"$1*$2")}(a)))));const i=bo(e),s=i.length>1;if(o&&!s&&"AUTO"===r&&-1===t.indexOf("\n")&&0!==t.indexOf("<p>")&&0===e.indexOf("<p>")&&(r="INLINE"),"INLINE"===r)return Fo(e);if("AUTO"===r&&!s&&function(e,t){const r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;const n=Array.from(r.body.children);return!n.some(Eo)&&xo(n,t)}(e,n))return Fo(e);const c=(0,K.getPhrasingContentSchema)("paste"),l=_o("paste"),u=i.map((e=>{if("string"!=typeof e)return e;const t=[Io,Po,Bo,uo,Lo,So,co,Co,zo,fo,po,Mo],r={...l,...c};return e=yo(e,t,l),e=yo(e=so(e=(0,K.removeInvalidHTML)(e,r)),[Ro,Ho,Vo],l),Uo("Processed HTML piece:\n\n",e),io(e,qo)})).flat().filter(Boolean);if("AUTO"===r&&1===u.length&&ve(u[0].name,"__unstablePasteTextInline",!1)){const e=/^[\n]+|[\n]+$/g,r=t.replace(e,"");if(""!==r&&-1===r.indexOf("\n"))return(0,K.removeInvalidHTML)(qr(u[0]),c).replace(e,"")}return u}function Go(){return(0,i.select)(cr).getCategories()}function Ko(e){(0,i.dispatch)(cr).setCategories(e)}function Wo(e,t){(0,i.dispatch)(cr).updateCategory(e,t)}function Yo(e=[],t=[]){return e.length===t.length&&t.every((([t,,r],n)=>{const o=e[n];return t===o.name&&Yo(o.innerBlocks,r)}))}function Qo(e=[],t){return t?t.map((([t,r,n],o)=>{var a;const i=e[o];if(i&&i.name===t){const e=Qo(i.innerBlocks,n);return{...i,innerBlocks:e}}const s=ke(t),c=(e,t)=>t?Object.fromEntries(Object.entries(t).map((([t,r])=>[t,l(e[t],r)]))):{},l=(e,t)=>{return r=e,"html"===r?.source&&Array.isArray(t)?(0,G.renderToString)(t):(e=>"query"===e?.source)(e)&&t?t.map((t=>c(e.query,t))):t;var r},u=c(null!==(a=s?.attributes)&&void 0!==a?a:{},r);let[d,p]=Mn(t,u);return void 0===ke(d)&&(p={originalName:t,originalContent:"",originalUndelimitedContent:""},d="core/missing"),mr(d,p,Qo([],n))})):e}function Zo(e){return Dt()("wp.blocks.withBlockContentContext",{since:"6.1"}),e}})(),(window.wp=window.wp||{}).blocks=n})(); \ No newline at end of file
+function jt(e){return"[object Object]"===Object.prototype.toString.call(e)}var Dt=r(8529);const zt=window.wp.hooks,It=(...e)=>window?.console?.error?.(...e),Rt={common:"text",formatting:"text",layout:"design"};function Ht(e=[],t=[]){const r=[...e];return t.forEach((e=>{const t=r.findIndex((t=>t.name===e.name));-1!==t?r[t]={...r[t],...e}:r.push(e)})),r}const Vt=(e,t)=>({select:r})=>{const n=r.getBootstrappedBlockType(e),o={name:e,icon:Y,keywords:[],attributes:{},providesContext:{},usesContext:[],selectors:{},supports:{},styles:[],blockHooks:{},save:()=>null,...n,...t,variations:Ht(n?.variations,t?.variations)},a=(0,zt.applyFilters)("blocks.registerBlockType",o,e,null);if(a.description&&"string"!=typeof a.description&&Mt()("Declaring non-string block descriptions",{since:"6.2"}),a.deprecated&&(a.deprecated=a.deprecated.map((e=>Object.fromEntries(Object.entries((0,zt.applyFilters)("blocks.registerBlockType",{...Fe(o,Q),...e},o.name,e)).filter((([e])=>Q.includes(e))))))),function(e){var t,r;return!1!==jt(e)&&(void 0===(t=e.constructor)||!1!==jt(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}(a))if("function"==typeof a.save)if(!("edit"in a)||(0,Dt.isValidElementType)(a.edit))if(Rt.hasOwnProperty(a.category)&&(a.category=Rt[a.category]),"category"in a&&!r.getCategories().some((({slug:e})=>e===a.category))&&(((...e)=>{window?.console?.warn?.(...e)})('The block "'+e+'" is registered with an invalid category "'+a.category+'".'),delete a.category),"title"in a&&""!==a.title)if("string"==typeof a.title){if(a.icon=ze(a.icon),De(a.icon.src))return a;It("The icon passed is invalid. The icon should be a string, an element, a function, or an object following the specifications documented in https://developer.wordpress.org/block-editor/developers/block-api/block-registration/#icon-optional")}else It("Block titles must be strings.");else It('The block "'+e+'" must have a title.');else It('The "edit" property must be a valid component.');else It('The "save" property must be a valid function.');else It("Block settings must be a valid object.")};function $t(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Array.isArray(e)?e:[e]}}function Ut(){return({dispatch:e,select:t})=>{const r=[];for(const[n,o]of Object.entries(t.getUnprocessedBlockTypes())){const t=e(Vt(n,o));t&&r.push(t)}r.length&&e.addBlockTypes(r)}}function Ft(){return Mt()('wp.data.dispatch( "core/blocks" ).__experimentalReapplyBlockFilters',{since:"6.4",alternative:"reapplyBlockFilters"}),Ut()}function qt(e){return{type:"REMOVE_BLOCK_TYPES",names:Array.isArray(e)?e:[e]}}function Gt(e,t){return{type:"ADD_BLOCK_STYLES",styles:Array.isArray(t)?t:[t],blockNames:Array.isArray(e)?e:[e]}}function Kt(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Array.isArray(t)?t:[t],blockName:e}}function Wt(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Array.isArray(t)?t:[t],blockName:e}}function Yt(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Array.isArray(t)?t:[t],blockName:e}}function Qt(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function Zt(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function Xt(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function Jt(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function er(e){return{type:"SET_CATEGORIES",categories:e}}function tr(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function rr(e,t,r){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:r}}function nr(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}function or(e,t){return{type:"ADD_BOOTSTRAPPED_BLOCK_TYPE",name:e,blockType:t}}function ar(e,t){return({dispatch:r})=>{r({type:"ADD_UNPROCESSED_BLOCK_TYPE",name:e,blockType:t});const n=r(Vt(e,t));n&&r.addBlockTypes(n)}}function ir(e){return{type:"REGISTER_BLOCK_BINDINGS_SOURCE",sourceName:e.name,sourceLabel:e.label,getValue:e.getValue,setValue:e.setValue,setValues:e.setValues,getPlaceholder:e.getPlaceholder,canUserEditValue:e.canUserEditValue}}const sr=(0,i.createReduxStore)("core/blocks",{reducer:Je,selectors:e,actions:o});(0,i.register)(sr),re(sr).registerPrivateSelectors(t),re(sr).registerPrivateActions(a);const cr={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let lr;const ur=new Uint8Array(16);function dr(){if(!lr&&(lr="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!lr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return lr(ur)}const pr=[];for(let e=0;e<256;++e)pr.push((e+256).toString(16).slice(1));function hr(e,t=0){return pr[e[t+0]]+pr[e[t+1]]+pr[e[t+2]]+pr[e[t+3]]+"-"+pr[e[t+4]]+pr[e[t+5]]+"-"+pr[e[t+6]]+pr[e[t+7]]+"-"+pr[e[t+8]]+pr[e[t+9]]+"-"+pr[e[t+10]]+pr[e[t+11]]+pr[e[t+12]]+pr[e[t+13]]+pr[e[t+14]]+pr[e[t+15]]}const fr=function(e,t,r){if(cr.randomUUID&&!t&&!e)return cr.randomUUID();const n=(e=e||{}).random||(e.rng||dr)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return hr(n)};function gr(e,t={},r=[]){const n=$e(e,t);return{clientId:fr(),name:e,isValid:!0,attributes:n,innerBlocks:r}}function mr(e=[]){return e.map((e=>{const t=Array.isArray(e)?e:[e.name,e.attributes,e.innerBlocks],[r,n,o=[]]=t;return gr(r,n,mr(o))}))}function br(e,t={},r){const n=fr(),o=$e(e.name,{...e.attributes,...t});return{...e,clientId:n,attributes:o,innerBlocks:r||e.innerBlocks.map((e=>br(e)))}}function _r(e,t={},r){const n=fr();return{...e,clientId:n,attributes:{...e.attributes,...t},innerBlocks:r||e.innerBlocks.map((e=>_r(e)))}}const kr=(e,t,r)=>{if(!r.length)return!1;const n=r.length>1,o=r[0].name;if(!(vr(e)||!n||e.isMultiBlock))return!1;if(!vr(e)&&!r.every((e=>e.name===o)))return!1;if(!("block"===e.type))return!1;const a=r[0];return!("from"===t&&-1===e.blocks.indexOf(a.name)&&!vr(e))&&(!(!n&&"from"===t&&Tr(a.name)&&Tr(e.blockName))&&!!Sr(e,r))},yr=e=>{if(!e.length)return[];return ye().filter((t=>!!xr(Er("from",t.name),(t=>kr(t,"from",e)))))},wr=e=>{if(!e.length)return[];const t=ke(e[0].name);return(t?Er("to",t.name):[]).filter((t=>t&&kr(t,"to",e))).map((e=>e.blocks)).flat().map(ke)},vr=e=>e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*"),Tr=e=>e===he();function Cr(e){if(!e.length)return[];const t=yr(e),r=wr(e);return[...new Set([...t,...r])]}function xr(e,t){const r=(0,zt.createHooks)();for(let n=0;n<e.length;n++){const o=e[n];t(o)&&r.addFilter("transform","transform/"+n.toString(),(e=>e||o),o.priority)}return r.applyFilters("transform",null)}function Er(e,t){if(void 0===t)return ye().map((({name:t})=>Er(e,t))).flat();const r=Ie(t),{name:n,transforms:o}=r||{};if(!o||!Array.isArray(o[e]))return[];const a=o.supportedMobileTransforms&&Array.isArray(o.supportedMobileTransforms),i=a?o[e].filter((e=>"raw"===e.type||!(!e.blocks||!e.blocks.length)&&(!!vr(e)||e.blocks.every((e=>o.supportedMobileTransforms.includes(e)))))):o[e];return i.map((e=>({...e,blockName:n,usingMobileTransformations:a})))}function Sr(e,t){if("function"!=typeof e.isMatch)return!0;const r=t[0],n=e.isMultiBlock?t.map((e=>e.attributes)):r.attributes,o=e.isMultiBlock?t:r;return e.isMatch(n,o)}function Br(e,t){const r=Array.isArray(e)?e:[e],n=r.length>1,o=r[0],a=o.name,i=Er("from",t),s=xr(Er("to",a),(e=>"block"===e.type&&(vr(e)||-1!==e.blocks.indexOf(t))&&(!n||e.isMultiBlock)&&Sr(e,r)))||xr(i,(e=>"block"===e.type&&(vr(e)||-1!==e.blocks.indexOf(a))&&(!n||e.isMultiBlock)&&Sr(e,r)));if(!s)return null;let c;if(c=s.isMultiBlock?"__experimentalConvert"in s?s.__experimentalConvert(r):s.transform(r.map((e=>e.attributes)),r.map((e=>e.innerBlocks))):"__experimentalConvert"in s?s.__experimentalConvert(o):s.transform(o.attributes,o.innerBlocks),null===c||"object"!=typeof c)return null;if(c=Array.isArray(c)?c:[c],c.some((e=>!ke(e.name))))return null;if(!c.some((e=>e.name===t)))return null;return c.map(((t,r,n)=>(0,zt.applyFilters)("blocks.switchToBlockType.transformedBlock",t,e,r,n)))}const Ar=(e,t)=>{try{var r;return gr(e,t.attributes,(null!==(r=t.innerBlocks)&&void 0!==r?r:[]).map((e=>Ar(e.name,e))))}catch{return gr("core/missing",{originalName:e,originalContent:"",originalUndelimitedContent:""})}},Nr=window.wp.blockSerializationDefaultParser,Pr=window.wp.autop,Or=window.wp.isShallowEqual;var Lr=r.n(Or);function Mr(e,t={}){const{isCommentDelimited:r=!0}=t,{blockName:n,attrs:o={},innerBlocks:a=[],innerContent:i=[]}=e;let s=0;const c=i.map((e=>null!==e?e:Mr(a[s++],t))).join("\n").replace(/\n+/g,"\n").trim();return r?qr(n,o,c):c}const jr=window.ReactJSXRuntime;function Dr(e){const t="wp-block-"+e.replace(/\//,"-").replace(/^core-/,"");return(0,zt.applyFilters)("blocks.getBlockDefaultClassName",t,e)}function zr(e){const t="editor-block-list-item-"+e.replace(/\//,"-").replace(/^core-/,"");return(0,zt.applyFilters)("blocks.getBlockMenuDefaultClassName",t,e)}const Ir={},Rr={};function Hr(e={}){const{blockType:t,attributes:r}=Ir;return Hr.skipFilters?e:(0,zt.applyFilters)("blocks.getSaveContent.extraProps",{...e},t,r)}function Vr(e={}){const{innerBlocks:t}=Rr;if(!Array.isArray(t))return{...e,children:t};const r=Wr(t,{isInnerBlocks:!0}),n=(0,jr.jsx)(G.RawHTML,{children:r});return{...e,children:n}}function $r(e,t,r=[]){const n=Ie(e);if(!n?.save)return null;let{save:o}=n;if(o.prototype instanceof G.Component){const e=new o({attributes:t});o=e.render.bind(e)}Ir.blockType=n,Ir.attributes=t,Rr.innerBlocks=r;let a=o({attributes:t,innerBlocks:r});if(null!==a&&"object"==typeof a&&(0,zt.hasFilter)("blocks.getSaveContent.extraProps")&&!(n.apiVersion>1)){const e=(0,zt.applyFilters)("blocks.getSaveContent.extraProps",{...a.props},n,t);Lr()(e,a.props)||(a=(0,G.cloneElement)(a,e))}return(0,zt.applyFilters)("blocks.getSaveElement",a,n,t)}function Ur(e,t,r){const n=Ie(e);return(0,G.renderToString)($r(n,t,r))}function Fr(e){let t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=Ur(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function qr(e,t,r){const n=t&&Object.entries(t).length?function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ":"",o=e?.startsWith("core/")?e.slice(5):e;return r?`\x3c!-- wp:${o} ${n}--\x3e\n`+r+`\n\x3c!-- /wp:${o} --\x3e`:`\x3c!-- wp:${o} ${n}/--\x3e`}function Gr(e,{isInnerBlocks:t=!1}={}){if(!e.isValid&&e.__unstableBlockSource)return Mr(e.__unstableBlockSource);const r=e.name,n=Fr(e);if(r===ge()||!t&&r===pe())return n;const o=ke(r);if(!o)return n;const a=function(e,t){var r;return Object.entries(null!==(r=e.attributes)&&void 0!==r?r:{}).reduce(((e,[r,n])=>{const o=t[r];return void 0===o||void 0!==n.source||"default"in n&&JSON.stringify(n.default)===JSON.stringify(o)||(e[r]=o),e}),{})}(o,e.attributes);return qr(r,a,n)}function Kr(e){1===e.length&&je(e[0])&&(e=[]);let t=Wr(e);return 1===e.length&&e[0].name===pe()&&"core/freeform"===e[0].name&&(t=(0,Pr.removep)(t)),t}function Wr(e,t){return(Array.isArray(e)?e:[e]).map((e=>Gr(e,t))).join("\n\n")}var Yr=/^#[xX]([A-Fa-f0-9]+)$/,Qr=/^#([0-9]+)$/,Zr=/^([A-Za-z0-9]+)$/,Xr=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(Yr);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(Qr))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(Zr))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),Jr=/[A-Za-z]/,en=/\r\n?/g;function tn(e){return Xr.test(e)}function rn(e){return Jr.test(e)}var nn=function(){function e(e,t,r){void 0===r&&(r="precompile"),this.delegate=e,this.entityParser=t,this.mode=r,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("precompile"===this.mode&&"\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||rn(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){var e=this.consume();"-"===e&&"-"===this.peek()?(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment()):"DOCTYPE"===e.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase()&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())},doctype:function(){tn(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var e=this.consume();tn(e)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase()))},doctypeName:function(){var e=this.consume();tn(e)?this.transitionTo("afterDoctypeName"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase())},afterDoctypeName:function(){var e=this.consume();if(!tn(e))if(">"===e)this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var t=e.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),r="PUBLIC"===t.toUpperCase(),n="SYSTEM"===t.toUpperCase();(r||n)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),r?this.transitionTo("afterDoctypePublicKeyword"):n&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var e=this.peek();tn(e)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):'"'===e?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):"'"===e?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):">"===e&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},doctypePublicIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},afterDoctypePublicIdentifier:function(){var e=this.consume();tn(e)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var e=this.consume();tn(e)||(">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},doctypeSystemIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},afterDoctypeSystemIdentifier:function(){var e=this.consume();tn(e)||">"===e&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},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();tn(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();tn(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();tn(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();tn(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();tn(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();tn(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();tn(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();tn(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||rn(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(en,"\n")}(e);this.index<this.input.length;){var t=this.states[this.state];if(void 0===t)throw new Error("unhandled state "+this.state);t.call(this)}},e.prototype.tokenizeEOF=function(){this.flushData()},e.prototype.flushData=function(){"data"===this.state&&(this.delegate.finishData(),this.transitionTo("beforeData"))},e.prototype.peek=function(){return this.input.charAt(this.index)},e.prototype.consume=function(){var e=this.peek();return this.index++,"\n"===e?(this.line++,this.column=0):this.column++,e},e.prototype.consumeCharRef=function(){var e=this.input.indexOf(";",this.index);if(-1!==e){var t=this.input.slice(this.index,e),r=this.entityParser.parse(t);if(r){for(var n=t.length;n;)this.consume(),n--;return this.consume(),r}}},e.prototype.markTagStart=function(){this.delegate.tagOpen()},e.prototype.appendToTagName=function(e){this.tagNameBuffer+=e,this.delegate.appendToTagName(e)},e.prototype.isIgnoredEndTag=function(){var e=this.tagNameBuffer;return"title"===e&&"</title>"!==this.input.substring(this.index,this.index+8)||"style"===e&&"</style>"!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),on=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 nn(this,e,t.mode),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;t<arguments.length;t++)if(e.type===arguments[t])return e;throw new Error("token type was unexpectedly "+e.type)},e.prototype.push=function(e){this.token=e,this.tokens.push(e)},e.prototype.currentAttribute=function(){return this._currentAttribute},e.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},e.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},e.prototype.appendToDoctypeName=function(e){this.current("Doctype").name+=e},e.prototype.appendToDoctypePublicIdentifier=function(e){var t=this.current("Doctype");void 0===t.publicIdentifier?t.publicIdentifier=e:t.publicIdentifier+=e},e.prototype.appendToDoctypeSystemIdentifier=function(e){var t=this.current("Doctype");void 0===t.systemIdentifier?t.systemIdentifier=e:t.systemIdentifier+=e},e.prototype.endDoctype=function(){this.addLocInfo()},e.prototype.beginData=function(){this.push({type:"Chars",chars:""})},e.prototype.appendToData=function(e){this.current("Chars").chars+=e},e.prototype.finishData=function(){this.addLocInfo()},e.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},e.prototype.appendToCommentData=function(e){this.current("Comment").chars+=e},e.prototype.finishComment=function(){this.addLocInfo()},e.prototype.tagOpen=function(){},e.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},e.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},e.prototype.finishTag=function(){this.addLocInfo()},e.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},e.prototype.appendToTagName=function(e){this.current("StartTag","EndTag").tagName+=e},e.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},e.prototype.appendToAttributeName=function(e){this.currentAttribute()[0]+=e},e.prototype.beginAttributeValue=function(e){this.currentAttribute()[2]=e},e.prototype.appendToAttributeValue=function(e){this.currentAttribute()[1]+=e},e.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},e.prototype.reportSyntaxError=function(e){this.current().syntaxError=e},e}();var an=r(7734),sn=r.n(an);const cn=window.wp.htmlEntities;function ln(){function e(e){return(t,...r)=>e("Block validation: "+t,...r)}return{error:e(console.error),warning:e(console.warn),getItems:()=>[]}}const un=/[\t\n\r\v\f ]+/g,dn=/^[\t\n\r\v\f ]*$/,pn=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,hn=["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"],fn=[...hn,"autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"],gn=[e=>e,function(e){return yn(e).join(" ")}],mn=/^[\da-z]+$/i,bn=/^#\d+$/,_n=/^#x[\da-f]+$/i;class kn{parse(e){if(t=e,mn.test(t)||bn.test(t)||_n.test(t))return(0,cn.decodeEntities)("&"+e+";");var t}}function yn(e){return e.trim().split(un)}function wn(e){return e.attributes.filter((e=>{const[t,r]=e;return r||0===t.indexOf("data-")||fn.includes(t)}))}function vn(e,t,r=ln()){let n=e.chars,o=t.chars;for(let e=0;e<gn.length;e++){const t=gn[e];if(n=t(n),o=t(o),n===o)return!0}return r.warning("Expected text `%s`, saw `%s`.",t.chars,e.chars),!1}function Tn(e){return 0===parseFloat(e)?"0":0===e.indexOf(".")?"0"+e:e}function Cn(e){return yn(e).map(Tn).join(" ").replace(pn,"url($1)")}function xn(e){const t=e.replace(/;?\s*$/,"").split(";").map((e=>{const[t,...r]=e.split(":"),n=r.join(":");return[t.trim(),Cn(n.trim())]}));return Object.fromEntries(t)}const En={class:(e,t)=>{const[r,n]=[e,t].map(yn),o=r.filter((e=>!n.includes(e))),a=n.filter((e=>!r.includes(e)));return 0===o.length&&0===a.length},style:(e,t)=>sn()(...[e,t].map(xn)),...Object.fromEntries(hn.map((e=>[e,()=>!0])))};const Sn={StartTag:(e,t,r=ln())=>e.tagName!==t.tagName&&e.tagName.toLowerCase()!==t.tagName.toLowerCase()?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):function(e,t,r=ln()){if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;const n={};for(let e=0;e<t.length;e++)n[t[e][0].toLowerCase()]=t[e][1];for(let t=0;t<e.length;t++){const[o,a]=e[t],i=o.toLowerCase();if(!n.hasOwnProperty(i))return r.warning("Encountered unexpected attribute `%s`.",o),!1;const s=n[i],c=En[i];if(c){if(!c(a,s))return r.warning("Expected attribute `%s` of value `%s`, saw `%s`.",o,s,a),!1}else if(a!==s)return r.warning("Expected attribute `%s` of value `%s`, saw `%s`.",o,s,a),!1}return!0}(...[e,t].map(wn),r),Chars:vn,Comment:vn};function Bn(e){let t;for(;t=e.shift();){if("Chars"!==t.type)return t;if(!dn.test(t.chars))return t}}function An(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function Nn(e,t,r=ln()){if(e===t)return!0;const[n,o]=[e,t].map((e=>function(e,t=ln()){try{return new on(new kn).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}(e,r)));if(!n||!o)return!1;let a,i;for(;a=Bn(n);){if(i=Bn(o),!i)return r.warning("Expected end of content, instead saw %o.",a),!1;if(a.type!==i.type)return r.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",i.type,i,a.type,a),!1;const e=Sn[a.type];if(e&&!e(a,i,r))return!1;An(a,o[0])?Bn(o):An(i,n[0])&&Bn(n)}return!(i=Bn(o))||(r.warning("Expected %o, instead saw end of content.",i),!1)}function Pn(e,t=e.name){if(e.name===pe()||e.name===ge())return[!0,[]];const r=function(){const e=[],t=ln();return{error(...r){e.push({log:t.error,args:r})},warning(...r){e.push({log:t.warning,args:r})},getItems:()=>e}}(),n=Ie(t);let o;try{o=Ur(n,e.attributes)}catch(e){return r.error("Block validation failed because an error occurred while generating block content:\n\n%s",e.toString()),[!1,r.getItems()]}const a=Nn(e.originalContent,o,r);return a||r.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",n.name,n,o,e.originalContent),[a,r.getItems()]}function On(e,t,r){Mt()("isValidBlockContent introduces opportunity for data loss",{since:"12.6",plugin:"Gutenberg",alternative:"validateBlock"});const n=Ie(e),o={name:n.name,attributes:t,innerBlocks:[],originalContent:r},[a]=Pn(o,n);return a}function Ln(e,t){const r={...t};if("core/cover-image"===e&&(e="core/cover"),"core/text"!==e&&"core/cover-text"!==e||(e="core/paragraph"),e&&0===e.indexOf("core/social-link-")&&(r.service=e.substring(17),e="core/social-link"),e&&0===e.indexOf("core-embed/")){const t=e.substring(11),n={speaker:"speaker-deck",polldaddy:"crowdsignal"};r.providerNameSlug=t in n?n[t]:t,["amazon-kindle","wordpress"].includes(t)||(r.responsive=!0),e="core/embed"}if("core/post-comment-author"===e&&(e="core/comment-author-name"),"core/post-comment-content"===e&&(e="core/comment-content"),"core/post-comment-date"===e&&(e="core/comment-date"),"core/comments-query-loop"===e){e="core/comments";const{className:t=""}=r;t.includes("wp-block-comments-query-loop")||(r.className=["wp-block-comments-query-loop",t].join(" "))}return"core/post-comments"===e&&(e="core/comments",r.legacy=!0),[e,r]}var Mn,jn=function(){return Mn||(Mn=document.implementation.createHTMLDocument("")),Mn};function Dn(e,t){if(t){if("string"==typeof e){var r=jn();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]=Dn(e,t[n]),r}),{})}}function zn(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return function(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}(n,t)}}function In(e){const t={};for(let r=0;r<e.length;r++){const{name:n,value:o}=e[r];t[n]=o}return t}function Rn(e){if(Mt()("wp.blocks.node.fromDOM",{since:"6.1",version:"6.3",alternative:"wp.richText.create",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),e.nodeType===e.TEXT_NODE)return e.nodeValue;if(e.nodeType!==e.ELEMENT_NODE)throw new TypeError("A block node can only be created from a node of type text or element.");return{type:e.nodeName.toLowerCase(),props:{...In(e.attributes),children:$n(e.childNodes)}}}function Hn(e){return Mt()("wp.blocks.node.matcher",{since:"6.1",version:"6.3",alternative:"html source",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),t=>{let r=t;e&&(r=t.querySelector(e));try{return Rn(r)}catch(e){return null}}}const Vn={isNodeOfType:function(e,t){return Mt()("wp.blocks.node.isNodeOfType",{since:"6.1",version:"6.3",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),e&&e.type===t},fromDOM:Rn,toHTML:function(e){return Mt()("wp.blocks.node.toHTML",{since:"6.1",version:"6.3",alternative:"wp.richText.toHTMLString",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),Un([e])},matcher:Hn};function $n(e){Mt()("wp.blocks.children.fromDOM",{since:"6.1",version:"6.3",alternative:"wp.richText.create",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"});const t=[];for(let r=0;r<e.length;r++)try{t.push(Rn(e[r]))}catch(e){}return t}function Un(e){Mt()("wp.blocks.children.toHTML",{since:"6.1",version:"6.3",alternative:"wp.richText.toHTMLString",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"});const t=e;return(0,G.renderToString)(t)}function Fn(e){return Mt()("wp.blocks.children.matcher",{since:"6.1",version:"6.3",alternative:"html source",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),t=>{let r=t;return e&&(r=t.querySelector(e)),r?$n(r.childNodes):[]}}const qn={concat:function(...e){Mt()("wp.blocks.children.concat",{since:"6.1",version:"6.3",alternative:"wp.richText.concat",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"});const t=[];for(let r=0;r<e.length;r++){const n=Array.isArray(e[r])?e[r]:[e[r]];for(let e=0;e<n.length;e++){const r=n[e];"string"==typeof r&&"string"==typeof t[t.length-1]?t[t.length-1]+=r:t.push(r)}}return t},getChildrenArray:function(e){return Mt()("wp.blocks.children.getChildrenArray",{since:"6.1",version:"6.3",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),e},fromDOM:$n,toHTML:Un,matcher:Fn};function Gn(e,t){return t.some((t=>function(e,t){switch(t){case"rich-text":return e instanceof W.RichTextData;case"string":return"string"==typeof e;case"boolean":return"boolean"==typeof e;case"object":return!!e&&e.constructor===Object;case"null":return null===e;case"array":return Array.isArray(e);case"integer":case"number":return"number"==typeof e}return!0}(e,t)))}function Kn(e,t,r,n,o){let a;switch(t.source){case void 0:a=n?n[e]:void 0;break;case"raw":a=o;break;case"attribute":case"property":case"html":case"text":case"rich-text":case"children":case"node":case"query":case"tag":a=Qn(r,t)}return function(e,t){return void 0===t||Gn(e,Array.isArray(t)?t:[t])}(a,t.type)&&function(e,t){return!Array.isArray(t)||t.includes(e)}(a,t.enum)||(a=void 0),void 0===a&&(a=Ve(t)),a}const Wn=function(e,t){var r,n,o=0;function a(){var a,i,s=r,c=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i<c;i++)if(s.args[i]!==arguments[i]){s=s.next;continue e}return s!==r&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=r,s.prev=null,r.prev=s,r=s),s.val}s=s.next}for(a=new Array(c),i=0;i<c;i++)a[i]=arguments[i];return s={args:a,val:e.apply(null,a)},r?(r.prev=s,s.next=r):n=s,o===t.maxSize?(n=n.prev).next=null:o++,r=s,s.val}return t=t||{},a.clear=function(){r=null,n=null,o=0},a}((e=>{switch(e.source){case"attribute":{let t=function(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=zn(e,"attributes")(r);if(n&&n.hasOwnProperty(t))return n[t].value}}(e.selector,e.attribute);return"boolean"===e.type&&(t=(e=>t=>void 0!==e(t))(t)),t}case"html":return t=e.selector,r=e.multiline,e=>{let n=e;if(t&&(n=e.querySelector(t)),!n)return"";if(r){let e="";const t=n.children.length;for(let o=0;o<t;o++){const t=n.children[o];t.nodeName.toLowerCase()===r&&(e+=t.outerHTML)}return e}return n.innerHTML};case"text":return function(e){return zn(e,"textContent")}(e.selector);case"rich-text":return((e,t)=>r=>{const n=e?r.querySelector(e):r;return n?W.RichTextData.fromHTMLElement(n,{preserveWhiteSpace:t}):W.RichTextData.empty()})(e.selector,e.__unstablePreserveWhiteSpace);case"children":return Fn(e.selector);case"node":return Hn(e.selector);case"query":const n=Object.fromEntries(Object.entries(e.query).map((([e,t])=>[e,Wn(t)])));return function(e,t){return function(r){var n=r.querySelectorAll(e);return[].map.call(n,(function(e){return Dn(e,t)}))}}(e.selector,n);case"tag":{const t=zn(e.selector,"nodeName");return e=>t(e)?.toLowerCase()}default:console.error(`Unknown source type "${e.source}"`)}var t,r}));function Yn(e){return Dn(e,(e=>e))}function Qn(e,t){return Wn(t)(Yn(e))}function Zn(e,t,r={}){var n;const o=Yn(t),a=Ie(e),i=Object.fromEntries(Object.entries(null!==(n=a.attributes)&&void 0!==n?n:{}).map((([e,n])=>[e,Kn(e,n,o,r,t)])));return(0,zt.applyFilters)("blocks.getBlockAttributes",i,a,t,r)}const Xn={type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"};function Jn(e){const t=Qn(`<div data-custom-class-name>${e}</div>`,Xn);return t?t.trim().split(/\s+/):[]}function eo(e,t){const r=function(e,t,r){if(ve(t,"customClassName",!0)){const{className:n,...o}=e,a=Ur(t,o),i=Jn(a),s=Jn(r).filter((e=>!i.includes(e)));s.length?e.className=s.join(" "):a&&delete e.className}return e}(e.attributes,t,e.originalContent);return{...e,attributes:r}}function to(){return!1}function ro(e,t){let r=function(e,t){const r=pe(),n=e.blockName||pe(),o=e.attrs||{},a=e.innerBlocks||[];let i=e.innerHTML.trim();return n!==r||"core/freeform"!==n||t?.__unstableSkipAutop||(i=(0,Pr.autop)(i).trim()),{...e,blockName:n,attrs:o,innerHTML:i,innerBlocks:a}}(e,t);r=function(e){const[t,r]=Ln(e.blockName,e.attrs);return{...e,blockName:t,attrs:r}}(r);let n=ke(r.blockName);n||(r=function(e){const t=ge()||pe(),r=Mr(e,{isCommentDelimited:!1}),n=Mr(e,{isCommentDelimited:!0});return{blockName:t,attrs:{originalName:e.blockName,originalContent:n,originalUndelimitedContent:r},innerHTML:e.blockName?n:e.innerHTML,innerBlocks:e.innerBlocks,innerContent:e.innerContent}}(r),n=ke(r.blockName));const o=r.blockName===pe()||r.blockName===ge();if(!n||!r.innerHTML&&o)return;const a=r.innerBlocks.map((e=>ro(e,t))).filter((e=>!!e)),i=gr(r.blockName,Zn(n,r.innerHTML,r.attrs),a);i.originalContent=r.innerHTML;const s=function(e,t){const[r]=Pn(e,t);if(r)return{...e,isValid:r,validationIssues:[]};const n=eo(e,t),[o,a]=Pn(e,t);return{...n,isValid:o,validationIssues:a}}(i,n),{validationIssues:c}=s,l=function(e,t,r){const n=t.attrs,{deprecated:o}=r;if(!o||!o.length)return e;for(let a=0;a<o.length;a++){const{isEligible:i=to}=o[a];if(e.isValid&&!i(n,e.innerBlocks,{blockNode:t,block:e}))continue;const s=Object.assign(Fe(r,Q),o[a]);let c={...e,attributes:Zn(s,e.originalContent,n)},[l]=Pn(c,s);if(l||(c=eo(c,s),[l]=Pn(c,s)),!l)continue;let u=c.innerBlocks,d=c.attributes;const{migrate:p}=s;if(p){let t=p(d,e.innerBlocks);Array.isArray(t)||(t=[t]),[d=n,u=e.innerBlocks]=t}e={...e,attributes:d,innerBlocks:u,isValid:!0,validationIssues:[]}}return e}(s,r,n);return l.isValid||(l.__unstableBlockSource=e),s.isValid||!l.isValid||t?.__unstableSkipMigrationLogs?s.isValid||l.isValid||c.forEach((({log:e,args:t})=>e(...t))):(console.groupCollapsed("Updated Block: %s",n.name),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",n.name,n,Ur(n,l.attributes),l.originalContent),console.groupEnd()),l}function no(e,t){return(0,Nr.parse)(e).reduce(((e,r)=>{const n=ro(r,t);return n&&e.push(n),e}),[])}function oo(){return Er("from").filter((({type:e})=>"raw"===e)).map((e=>e.isMatch?e:{...e,isMatch:t=>e.selector&&t.matches(e.selector)}))}function ao(e,t){const r=document.implementation.createHTMLDocument("");return r.body.innerHTML=e,Array.from(r.body.children).flatMap((e=>{const r=xr(oo(),(({isMatch:t})=>t(e)));if(!r)return G.Platform.isNative?no(`\x3c!-- wp:html --\x3e${e.outerHTML}\x3c!-- /wp:html --\x3e`):gr("core/html",Zn("core/html",e.outerHTML));const{transform:n,blockName:o}=r;if(n){const r=n(e,t);return e.hasAttribute("class")&&(r.attributes.className=e.getAttribute("class")),r}return gr(o,Zn(o,e.outerHTML))}))}function io(e,t={}){const r=document.implementation.createHTMLDocument(""),n=document.implementation.createHTMLDocument(""),o=r.body,a=n.body;for(o.innerHTML=e;o.firstChild;){const e=o.firstChild;e.nodeType===e.TEXT_NODE?(0,K.isEmpty)(e)?o.removeChild(e):(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(n.createElement("P")),a.lastChild.appendChild(e)):e.nodeType===e.ELEMENT_NODE?"BR"===e.nodeName?(e.nextSibling&&"BR"===e.nextSibling.nodeName&&(a.appendChild(n.createElement("P")),o.removeChild(e.nextSibling)),a.lastChild&&"P"===a.lastChild.nodeName&&a.lastChild.hasChildNodes()?a.lastChild.appendChild(e):o.removeChild(e)):"P"===e.nodeName?(0,K.isEmpty)(e)&&!t.raw?o.removeChild(e):a.appendChild(e):(0,K.isPhrasingContent)(e)?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(n.createElement("P")),a.lastChild.appendChild(e)):a.appendChild(e):o.removeChild(e)}return a.innerHTML}function so(e,t){if(e.nodeType!==e.COMMENT_NODE)return;if("nextpage"!==e.nodeValue&&0!==e.nodeValue.indexOf("more"))return;const r=function(e,t){if("nextpage"===e.nodeValue)return function(e){const t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t);const r=e.nodeValue.slice(4).trim();let n=e,o=!1;for(;n=n.nextSibling;)if(n.nodeType===n.COMMENT_NODE&&"noteaser"===n.nodeValue){o=!0,(0,K.remove)(n);break}return function(e,t,r){const n=r.createElement("wp-block");n.dataset.block="core/more",e&&(n.dataset.customText=e);t&&(n.dataset.noTeaser="");return n}(r,o,t)}(e,t);if(e.parentNode&&"P"===e.parentNode.nodeName){const n=Array.from(e.parentNode.childNodes),o=n.indexOf(e),a=e.parentNode.parentNode||t.body,i=(e,r)=>(e||(e=t.createElement("p")),e.appendChild(r),e);[n.slice(0,o).reduce(i,null),r,n.slice(o+1).reduce(i,null)].forEach((t=>t&&a.insertBefore(t,e.parentNode))),(0,K.remove)(e.parentNode)}else(0,K.replace)(e,r)}function co(e){return"OL"===e.nodeName||"UL"===e.nodeName}function lo(e){if(!co(e))return;const 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)}const n=e.parentNode;if(n&&"LI"===n.nodeName&&1===n.children.length&&!/\S/.test((o=n,Array.from(o.childNodes).map((({nodeValue:e=""})=>e)).join("")))){const e=n,r=e.previousElementSibling,o=e.parentNode;r&&(r.appendChild(t),o.removeChild(e))}var o;if(n&&co(n)){const t=e.previousElementSibling;t?t.appendChild(e):(0,K.unwrap)(e)}}function uo(e){return t=>{"BLOCKQUOTE"===t.nodeName&&(t.innerHTML=io(t.innerHTML,e))}}function po(e,t=e){const r=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(r,t),r.appendChild(e)}function ho(e,t,r){if(!function(e,t){var r;const n=e.nodeName.toLowerCase();return"figcaption"!==n&&!(0,K.isTextContent)(e)&&n in(null!==(r=t?.figure?.children)&&void 0!==r?r:{})}(e,r))return;let n=e;const o=e.parentNode;(function(e,t){var r;return e.nodeName.toLowerCase()in(null!==(r=t?.figure?.children?.a?.children)&&void 0!==r?r:{})})(e,r)&&"A"===o.nodeName&&1===o.childNodes.length&&(n=e.parentNode);const a=n.closest("p,div");a?e.classList?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!a.textContent.trim())&&po(n,a):po(n,a):"BODY"===n.parentNode.nodeName&&po(n)}const fo=window.wp.shortcode,go=e=>Array.isArray(e)?e:[e],mo=/(\n|<p>)\s*$/,bo=/^\s*(\n|<\/p>)/;const _o=function e(t,r=0,n=[]){const o=xr(Er("from"),(e=>-1===n.indexOf(e.blockName)&&"shortcode"===e.type&&go(e.tag).some((e=>(0,fo.regexp)(e).test(t)))));if(!o)return[t];const a=go(o.tag).find((e=>(0,fo.regexp)(e).test(t)));let i;const s=r;if(i=(0,fo.next)(a,t,r)){r=i.index+i.content.length;const a=t.substr(0,i.index),c=t.substr(r);if(!(i.shortcode.content?.includes("<")||mo.test(a)&&bo.test(c)))return e(t,r);if(o.isMatch&&!o.isMatch(i.shortcode.attrs))return e(t,s,[...n,o.blockName]);let l=[];if("function"==typeof o.transform)l=[].concat(o.transform(i.shortcode.attrs,i)),l=l.map((e=>(e.originalContent=i.shortcode.content,eo(e,ke(e.name)))));else{const e=Object.fromEntries(Object.entries(o.attributes).filter((([,e])=>e.shortcode)).map((([e,t])=>[e,t.shortcode(i.shortcode.attrs,i)]))),r=ke(o.blockName);if(!r)return[t];const n={...r,attributes:o.attributes};let a=gr(o.blockName,Zn(n,i.shortcode.content,e));a.originalContent=i.shortcode.content,a=eo(a,n),l=[a]}return[...e(a.replace(mo,"")),...l,...e(c.replace(bo,""))]}return[t]};function ko(e){return function(e,t){const r={phrasingContentSchema:(0,K.getPhrasingContentSchema)(t),isPaste:"paste"===t};function n(e,t,r){switch(r){case"children":return"*"===e||"*"===t?"*":{...e,...t};case"attributes":case"require":return[...e||[],...t||[]];case"isMatch":if(!e||!t)return;return(...r)=>e(...r)||t(...r)}}function o(e,t){for(const r in t)e[r]=e[r]?n(e[r],t[r],r):{...t[r]};return e}return e.map((({isMatch:e,blockName:t,schema:n})=>{const o=ve(t,"anchor");return n="function"==typeof n?n(r):n,o||e?n?Object.fromEntries(Object.entries(n).map((([t,r])=>{let n=r.attributes||[];return o&&(n=[...n,"id"]),[t,{...r,attributes:n,isMatch:e||void 0}]}))):{}:n})).reduce((function(e,t){for(const r in t)e[r]=e[r]?o(e[r],t[r]):{...t[r]};return e}),{})}(oo(),e)}function yo(e,t,r,n){Array.from(e).forEach((e=>{yo(e.childNodes,t,r,n),t.forEach((t=>{r.contains(e)&&t(e,r,n)}))}))}function wo(e,t=[],r){const n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,yo(n.body.childNodes,t,n,r),n.body.innerHTML}function vo(e,t){const r=e[`${t}Sibling`];if(r&&(0,K.isPhrasingContent)(r))return r;const{parentNode:n}=e;return n&&(0,K.isPhrasingContent)(n)?vo(n,t):void 0}function To(e){return Mt()("wp.blocks.getPhrasingContentSchema",{since:"5.6",alternative:"wp.dom.getPhrasingContentSchema"}),(0,K.getPhrasingContentSchema)(e)}function Co({HTML:e=""}){if(-1!==e.indexOf("\x3c!-- wp:")){const t=no(e);if(!(1===t.length&&"core/freeform"===t[0].name))return t}const t=_o(e),r=ko();return t.map((e=>{if("string"!=typeof e)return e;return ao(e=io(e=wo(e,[lo,so,ho,uo({raw:!0})],r),{raw:!0}),Co)})).flat().filter(Boolean)}function xo(e){e.nodeType===e.COMMENT_NODE&&(0,K.remove)(e)}function Eo(e,t){return e.every((e=>function(e,t){if((0,K.isTextContent)(e))return!0;if(!t)return!1;const r=e.nodeName.toLowerCase();return[["ul","li","ol"],["h1","h2","h3","h4","h5","h6"]].some((e=>0===[r,t].filter((t=>!e.includes(t))).length))}(e,t)&&Eo(Array.from(e.children),t)))}function So(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}function Bo(e,t){if("SPAN"===e.nodeName&&e.style){const{fontWeight:r,fontStyle:n,textDecorationLine:o,textDecoration:a,verticalAlign:i}=e.style;"bold"!==r&&"700"!==r||(0,K.wrap)(t.createElement("strong"),e),"italic"===n&&(0,K.wrap)(t.createElement("em"),e),("line-through"===o||a.includes("line-through"))&&(0,K.wrap)(t.createElement("s"),e),"super"===i?(0,K.wrap)(t.createElement("sup"),e):"sub"===i&&(0,K.wrap)(t.createElement("sub"),e)}else"B"===e.nodeName?e=(0,K.replaceTag)(e,"strong"):"I"===e.nodeName?e=(0,K.replaceTag)(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")),e.name&&!e.id&&(e.id=e.name),e.id&&!e.ownerDocument.querySelector(`[href="#${e.id}"]`)&&e.removeAttribute("id"))}function Ao(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)}function No(e){if(e.nodeType!==e.ELEMENT_NODE)return;const t=e.getAttribute("style");if(!t||!t.includes("mso-list"))return;"ignore"===t.split(";").reduce(((e,t)=>{const[r,n]=t.split(":");return r&&n&&(e[r.trim().toLowerCase()]=n.trim().toLowerCase()),e}),{})["mso-list"]&&e.remove()}function Po(e){return"OL"===e.nodeName||"UL"===e.nodeName}function Oo(e,t){if("P"!==e.nodeName)return;const r=e.getAttribute("style");if(!r||!r.includes("mso-list"))return;const n=e.previousElementSibling;if(!n||!Po(n)){const r=e.textContent.trim().slice(0,1),n=/[1iIaA]/.test(r),o=t.createElement(n?"ol":"ul");n&&o.setAttribute("type",r),e.parentNode.insertBefore(o,e)}const o=e.previousElementSibling,a=o.nodeName,i=t.createElement("li");let s=o;i.innerHTML=wo(e.innerHTML,[No]);const c=/mso-list\s*:[^;]+level([0-9]+)/i.exec(r);let l=c&&parseInt(c[1],10)-1||0;for(;l--;)s=s.lastChild||s,Po(s)&&(s=s.lastChild||s);Po(s)||(s=s.appendChild(t.createElement(a))),s.appendChild(i),e.parentNode.removeChild(e)}const Lo=window.wp.blob;function Mo(e){if("IMG"===e.nodeName){if(0===e.src.indexOf("file:")&&(e.src=""),0===e.src.indexOf("data:")){const[t,r]=e.src.split(","),[n]=t.slice(5).split(";");if(!r||!n)return void(e.src="");let o;try{o=atob(r)}catch(t){return void(e.src="")}const a=new Uint8Array(o.length);for(let e=0;e<a.length;e++)a[e]=o.charCodeAt(e);const i=n.replace("/","."),s=new window.File([a],i,{type:n});e.src=(0,Lo.createBlobURL)(s)}1!==e.height&&1!==e.width||e.parentNode.removeChild(e)}}function jo(e){"DIV"===e.nodeName&&(e.innerHTML=io(e.innerHTML))}var Do=r(1030);const zo=new(r.n(Do)().Converter)({noHeaderId:!0,tables:!0,literalMidWordUnderscores:!0,omitExtraWLInCodeBlocks:!0,simpleLineBreaks:!0,strikethrough:!0});function Io(e){if("IFRAME"===e.nodeName){const t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}function Ro(e){e.id&&0===e.id.indexOf("docs-internal-guid-")&&("B"===e.tagName?(0,K.unwrap)(e):e.removeAttribute("id"))}function Ho(e){if(e.nodeType!==e.TEXT_NODE)return;let t=e;for(;t=t.parentNode;)if(t.nodeType===t.ELEMENT_NODE&&"PRE"===t.nodeName)return;let r=e.data.replace(/[ \r\n\t]+/g," ");if(" "===r[0]){const t=vo(e,"previous");t&&"BR"!==t.nodeName&&" "!==t.textContent.slice(-1)||(r=r.slice(1))}if(" "===r[r.length-1]){const t=vo(e,"next");(!t||"BR"===t.nodeName||t.nodeType===t.TEXT_NODE&&(" "===(n=t.textContent[0])||"\r"===n||"\n"===n||"\t"===n))&&(r=r.slice(0,-1))}var n;r?e.data=r:e.parentNode.removeChild(e)}function Vo(e){"BR"===e.nodeName&&(vo(e,"next")||e.parentNode.removeChild(e))}function $o(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function Uo(e){if("SPAN"!==e.nodeName)return;if("paragraph-break"!==e.getAttribute("data-stringify-type"))return;const{parentNode:t}=e;t.insertBefore(e.ownerDocument.createElement("br"),e),t.insertBefore(e.ownerDocument.createElement("br"),e),t.removeChild(e)}const Fo=(...e)=>window?.console?.log?.(...e);function qo(e){return e=wo(e,[Ao,Ro,No,Bo,xo]),e=wo(e=(0,K.removeInvalidHTML)(e,(0,K.getPhrasingContentSchema)("paste"),{inline:!0}),[Ho,Vo]),Fo("Processed inline HTML:\n\n",e),e}function Go({HTML:e="",plainText:t="",mode:r="AUTO",tagName:n}){if(e=(e=(e=e.replace(/<meta[^>]+>/g,"")).replace(/^\s*<html[^>]*>\s*<body[^>]*>(?:\s*<!--\s*StartFragment\s*-->)?/i,"")).replace(/(?:<!--\s*EndFragment\s*-->\s*)?<\/body>\s*<\/html>\s*$/i,""),"INLINE"!==r){const r=e||t;if(-1!==r.indexOf("\x3c!-- wp:")){const e=no(r);if(!(1===e.length&&"core/freeform"===e[0].name))return e}}String.prototype.normalize&&(e=e.normalize()),e=wo(e,[Uo]);const o=t&&(!e||function(e){return!/<(?!br[ />])/i.test(e)}(e));var a;o&&(e=t,/^\s+$/.test(t)||(a=e,e=zo.makeHtml(function(e){return e.replace(/((?:^|\n)```)([^\n`]+)(```(?:$|\n))/,((e,t,r,n)=>`${t}\n${r}\n${n}`))}(function(e){return e.replace(/(^|\n)•( +)/g,"$1*$2")}(a)))));const i=_o(e),s=i.length>1;if(o&&!s&&"AUTO"===r&&-1===t.indexOf("\n")&&0!==t.indexOf("<p>")&&0===e.indexOf("<p>")&&(r="INLINE"),"INLINE"===r)return qo(e);if("AUTO"===r&&!s&&function(e,t){const r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;const n=Array.from(r.body.children);return!n.some(So)&&Eo(n,t)}(e,n))return qo(e);const c=(0,K.getPhrasingContentSchema)("paste"),l=ko("paste"),u=i.map((e=>{if("string"!=typeof e)return e;const t=[Ro,Oo,Ao,lo,Mo,Bo,so,xo,Io,ho,uo(),jo],r={...l,...c};return e=wo(e,t,l),e=wo(e=io(e=(0,K.removeInvalidHTML)(e,r)),[Ho,Vo,$o],l),Fo("Processed HTML piece:\n\n",e),ao(e,Go)})).flat().filter(Boolean);if("AUTO"===r&&1===u.length&&ve(u[0].name,"__unstablePasteTextInline",!1)){const e=/^[\n]+|[\n]+$/g,r=t.replace(e,"");if(""!==r&&-1===r.indexOf("\n"))return(0,K.removeInvalidHTML)(Fr(u[0]),c).replace(e,"")}return u}function Ko(){return(0,i.select)(sr).getCategories()}function Wo(e){(0,i.dispatch)(sr).setCategories(e)}function Yo(e,t){(0,i.dispatch)(sr).updateCategory(e,t)}function Qo(e=[],t=[]){return e.length===t.length&&t.every((([t,,r],n)=>{const o=e[n];return t===o.name&&Qo(o.innerBlocks,r)}))}const Zo=e=>"html"===e?.source,Xo=e=>"query"===e?.source;function Jo(e,t){return t?Object.fromEntries(Object.entries(t).map((([t,r])=>[t,ea(e[t],r)]))):{}}function ea(e,t){return Zo(e)&&Array.isArray(t)?(0,G.renderToString)(t):Xo(e)&&t?t.map((t=>Jo(e.query,t))):t}function ta(e=[],t){return t?t.map((([t,r,n],o)=>{var a;const i=e[o];if(i&&i.name===t){const e=ta(i.innerBlocks,n);return{...i,innerBlocks:e}}const s=ke(t),c=Jo(null!==(a=s?.attributes)&&void 0!==a?a:{},r);let[l,u]=Ln(t,c);return void 0===ke(l)&&(u={originalName:t,originalContent:"",originalUndelimitedContent:""},l="core/missing"),gr(l,u,ta([],n))})):e}function ra(e){return Mt()("wp.blocks.withBlockContentContext",{since:"6.1"}),e}})(),(window.wp=window.wp||{}).blocks=n})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/commands.js b/wp-includes/js/dist/commands.js
index 9c766e8..7b89adf 100644
--- a/wp-includes/js/dist/commands.js
+++ b/wp-includes/js/dist/commands.js
@@ -1,72 +1,6 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
-/***/ 5755:
-/***/ ((module, exports) => {
-
-var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/
-/* global define */
-
-(function () {
- 'use strict';
-
- var hasOwn = {}.hasOwnProperty;
- var nativeCodeString = '[native code]';
-
- 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)) {
- if (arg.length) {
- var inner = classNames.apply(null, arg);
- if (inner) {
- classes.push(inner);
- }
- }
- } else if (argType === 'object') {
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
- classes.push(arg.toString());
- continue;
- }
-
- 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 {}
-}());
-
-
-/***/ }),
-
/***/ 6007:
/***/ ((module) => {
@@ -327,8 +261,6 @@ __webpack_require__.d(private_actions_namespaceObject, {
setContext: () => (setContext)
});
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
function _extends() {
_extends = Object.assign ? Object.assign.bind() : function (target) {
@@ -344,6 +276,8 @@ function _extends() {
};
return _extends.apply(this, arguments);
}
+;// CONCATENATED MODULE: external "React"
+const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: ./node_modules/@radix-ui/primitive/dist/index.module.js
function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented: checkForDefaultPrevented = true } = {}) {
return function handleEvent(event) {
@@ -3202,9 +3136,8 @@ var command_score = __webpack_require__(6007);
;// CONCATENATED MODULE: ./node_modules/cmdk/dist/index.mjs
var ue='[cmdk-list-sizer=""]',M='[cmdk-group=""]',N='[cmdk-group-items=""]',de='[cmdk-group-heading=""]',ee='[cmdk-item=""]',Z=`${ee}:not([aria-disabled="true"])`,z="cmdk-item-select",S="data-value",fe=(n,a)=>command_score(n,a),te=external_React_namespaceObject.createContext(void 0),k=()=>external_React_namespaceObject.useContext(te),re=external_React_namespaceObject.createContext(void 0),U=()=>external_React_namespaceObject.useContext(re),ne=external_React_namespaceObject.createContext(void 0),oe=external_React_namespaceObject.forwardRef((n,a)=>{let r=external_React_namespaceObject.useRef(null),o=x(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),u=x(()=>new Set),l=x(()=>new Map),p=x(()=>new Map),f=x(()=>new Set),d=ae(n),{label:v,children:E,value:R,onValueChange:w,filter:O,shouldFilter:ie,...D}=n,F=external_React_namespaceObject.useId(),g=external_React_namespaceObject.useId(),A=external_React_namespaceObject.useId(),y=ye();L(()=>{if(R!==void 0){let e=R.trim().toLowerCase();o.current.value=e,y(6,W),h.emit()}},[R]);let h=external_React_namespaceObject.useMemo(()=>({subscribe:e=>(f.current.add(e),()=>f.current.delete(e)),snapshot:()=>o.current,setState:(e,c,i)=>{var s,m,b;if(!Object.is(o.current[e],c)){if(o.current[e]=c,e==="search")j(),G(),y(1,V);else if(e==="value")if(((s=d.current)==null?void 0:s.value)!==void 0){(b=(m=d.current).onValueChange)==null||b.call(m,c);return}else i||y(5,W);h.emit()}},emit:()=>{f.current.forEach(e=>e())}}),[]),K=external_React_namespaceObject.useMemo(()=>({value:(e,c)=>{c!==p.current.get(e)&&(p.current.set(e,c),o.current.filtered.items.set(e,B(c)),y(2,()=>{G(),h.emit()}))},item:(e,c)=>(u.current.add(e),c&&(l.current.has(c)?l.current.get(c).add(e):l.current.set(c,new Set([e]))),y(3,()=>{j(),G(),o.current.value||V(),h.emit()}),()=>{p.current.delete(e),u.current.delete(e),o.current.filtered.items.delete(e),y(4,()=>{j(),V(),h.emit()})}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{p.current.delete(e),l.current.delete(e)}),filter:()=>d.current.shouldFilter,label:v||n["aria-label"],listId:F,inputId:A,labelId:g}),[]);function B(e){var i;let c=((i=d.current)==null?void 0:i.filter)??fe;return e?c(e,o.current.search):0}function G(){if(!r.current||!o.current.search||d.current.shouldFilter===!1)return;let e=o.current.filtered.items,c=[];o.current.filtered.groups.forEach(s=>{let m=l.current.get(s),b=0;m.forEach(P=>{let ce=e.get(P);b=Math.max(ce,b)}),c.push([s,b])});let i=r.current.querySelector(ue);I().sort((s,m)=>{let b=s.getAttribute(S),P=m.getAttribute(S);return(e.get(P)??0)-(e.get(b)??0)}).forEach(s=>{let m=s.closest(N);m?m.appendChild(s.parentElement===m?s:s.closest(`${N} > *`)):i.appendChild(s.parentElement===i?s:s.closest(`${N} > *`))}),c.sort((s,m)=>m[1]-s[1]).forEach(s=>{let m=r.current.querySelector(`${M}[${S}="${s[0]}"]`);m==null||m.parentElement.appendChild(m)})}function V(){let e=I().find(i=>!i.ariaDisabled),c=e==null?void 0:e.getAttribute(S);h.setState("value",c||void 0)}function j(){if(!o.current.search||d.current.shouldFilter===!1){o.current.filtered.count=u.current.size;return}o.current.filtered.groups=new Set;let e=0;for(let c of u.current){let i=p.current.get(c),s=B(i);o.current.filtered.items.set(c,s),s>0&&e++}for(let[c,i]of l.current)for(let s of i)if(o.current.filtered.items.get(s)>0){o.current.filtered.groups.add(c);break}o.current.filtered.count=e}function W(){var c,i,s;let e=_();e&&(((c=e.parentElement)==null?void 0:c.firstChild)===e&&((s=(i=e.closest(M))==null?void 0:i.querySelector(de))==null||s.scrollIntoView({block:"nearest"})),e.scrollIntoView({block:"nearest"}))}function _(){return r.current.querySelector(`${ee}[aria-selected="true"]`)}function I(){return Array.from(r.current.querySelectorAll(Z))}function q(e){let i=I()[e];i&&h.setState("value",i.getAttribute(S))}function $(e){var b;let c=_(),i=I(),s=i.findIndex(P=>P===c),m=i[s+e];(b=d.current)!=null&&b.loop&&(m=s+e<0?i[i.length-1]:s+e===i.length?i[0]:i[s+e]),m&&h.setState("value",m.getAttribute(S))}function J(e){let c=_(),i=c==null?void 0:c.closest(M),s;for(;i&&!s;)i=e>0?Se(i,M):Ce(i,M),s=i==null?void 0:i.querySelector(Z);s?h.setState("value",s.getAttribute(S)):$(e)}let Q=()=>q(I().length-1),X=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?J(1):$(1)},Y=e=>{e.preventDefault(),e.metaKey?q(0):e.altKey?J(-1):$(-1)};return external_React_namespaceObject.createElement("div",{ref:H([r,a]),...D,"cmdk-root":"",onKeyDown:e=>{var c;if((c=D.onKeyDown)==null||c.call(D,e),!e.defaultPrevented)switch(e.key){case"n":case"j":{e.ctrlKey&&X(e);break}case"ArrowDown":{X(e);break}case"p":case"k":{e.ctrlKey&&Y(e);break}case"ArrowUp":{Y(e);break}case"Home":{e.preventDefault(),q(0);break}case"End":{e.preventDefault(),Q();break}case"Enter":{e.preventDefault();let i=_();if(i){let s=new Event(z);i.dispatchEvent(s)}}}}},external_React_namespaceObject.createElement("label",{"cmdk-label":"",htmlFor:K.inputId,id:K.labelId,style:xe},v),external_React_namespaceObject.createElement(re.Provider,{value:h},external_React_namespaceObject.createElement(te.Provider,{value:K},E)))}),me=external_React_namespaceObject.forwardRef((n,a)=>{let r=external_React_namespaceObject.useId(),o=external_React_namespaceObject.useRef(null),u=external_React_namespaceObject.useContext(ne),l=k(),p=ae(n);L(()=>l.item(r,u),[]);let f=se(r,o,[n.value,n.children,o]),d=U(),v=T(g=>g.value&&g.value===f.current),E=T(g=>l.filter()===!1?!0:g.search?g.filtered.items.get(r)>0:!0);external_React_namespaceObject.useEffect(()=>{let g=o.current;if(!(!g||n.disabled))return g.addEventListener(z,R),()=>g.removeEventListener(z,R)},[E,n.onSelect,n.disabled]);function R(){var g,A;(A=(g=p.current).onSelect)==null||A.call(g,f.current)}function w(){d.setState("value",f.current,!0)}if(!E)return null;let{disabled:O,value:ie,onSelect:D,...F}=n;return external_React_namespaceObject.createElement("div",{ref:H([o,a]),...F,"cmdk-item":"",role:"option","aria-disabled":O||void 0,"aria-selected":v||void 0,"data-selected":v||void 0,onPointerMove:O?void 0:w,onClick:O?void 0:R},n.children)}),pe=external_React_namespaceObject.forwardRef((n,a)=>{let{heading:r,children:o,...u}=n,l=external_React_namespaceObject.useId(),p=external_React_namespaceObject.useRef(null),f=external_React_namespaceObject.useRef(null),d=external_React_namespaceObject.useId(),v=k(),E=T(w=>v.filter()===!1?!0:w.search?w.filtered.groups.has(l):!0);L(()=>v.group(l),[]),se(l,p,[n.value,n.heading,f]);let R=external_React_namespaceObject.createElement(ne.Provider,{value:l},o);return external_React_namespaceObject.createElement("div",{ref:H([p,a]),...u,"cmdk-group":"",role:"presentation",hidden:E?void 0:!0},r&&external_React_namespaceObject.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),external_React_namespaceObject.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},R))}),ge=external_React_namespaceObject.forwardRef((n,a)=>{let{alwaysRender:r,...o}=n,u=external_React_namespaceObject.useRef(null),l=T(p=>!p.search);return!r&&!l?null:external_React_namespaceObject.createElement("div",{ref:H([u,a]),...o,"cmdk-separator":"",role:"separator"})}),ve=external_React_namespaceObject.forwardRef((n,a)=>{let{onValueChange:r,...o}=n,u=n.value!=null,l=U(),p=T(d=>d.search),f=k();return external_React_namespaceObject.useEffect(()=>{n.value!=null&&l.setState("search",n.value)},[n.value]),external_React_namespaceObject.createElement("input",{ref:a,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,id:f.inputId,type:"text",value:u?n.value:p,onChange:d=>{u||l.setState("search",d.target.value),r==null||r(d.target.value)}})}),Re=external_React_namespaceObject.forwardRef((n,a)=>{let{children:r,...o}=n,u=external_React_namespaceObject.useRef(null),l=external_React_namespaceObject.useRef(null),p=k();return external_React_namespaceObject.useEffect(()=>{if(l.current&&u.current){let f=l.current,d=u.current,v,E=new ResizeObserver(()=>{v=requestAnimationFrame(()=>{let R=f.getBoundingClientRect().height;d.style.setProperty("--cmdk-list-height",R.toFixed(1)+"px")})});return E.observe(f),()=>{cancelAnimationFrame(v),E.unobserve(f)}}},[]),external_React_namespaceObject.createElement("div",{ref:H([u,a]),...o,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:p.listId,"aria-labelledby":p.inputId},external_React_namespaceObject.createElement("div",{ref:l,"cmdk-list-sizer":""},r))}),be=external_React_namespaceObject.forwardRef((n,a)=>{let{open:r,onOpenChange:o,container:u,...l}=n;return external_React_namespaceObject.createElement($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9,{open:r,onOpenChange:o},external_React_namespaceObject.createElement($5d3850c4d0b4e6c7$export$602eac185826482c,{container:u},external_React_namespaceObject.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff,{"cmdk-overlay":""}),external_React_namespaceObject.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2,{"aria-label":n.label,"cmdk-dialog":""},external_React_namespaceObject.createElement(oe,{ref:a,...l}))))}),he=external_React_namespaceObject.forwardRef((n,a)=>{let r=external_React_namespaceObject.useRef(!0),o=T(u=>u.filtered.count===0);return external_React_namespaceObject.useEffect(()=>{r.current=!1},[]),r.current||!o?null:external_React_namespaceObject.createElement("div",{ref:a,...n,"cmdk-empty":"",role:"presentation"})}),Ee=external_React_namespaceObject.forwardRef((n,a)=>{let{progress:r,children:o,...u}=n;return external_React_namespaceObject.createElement("div",{ref:a,...u,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},external_React_namespaceObject.createElement("div",{"aria-hidden":!0},o))}),Le=Object.assign(oe,{List:Re,Item:me,Input:ve,Group:pe,Separator:ge,Dialog:be,Empty:he,Loading:Ee});function Se(n,a){let r=n.nextElementSibling;for(;r;){if(r.matches(a))return r;r=r.nextElementSibling}}function Ce(n,a){let r=n.previousElementSibling;for(;r;){if(r.matches(a))return r;r=r.previousElementSibling}}function ae(n){let a=external_React_namespaceObject.useRef(n);return L(()=>{a.current=n}),a}var L=typeof window>"u"?external_React_namespaceObject.useEffect:external_React_namespaceObject.useLayoutEffect;function x(n){let a=external_React_namespaceObject.useRef();return a.current===void 0&&(a.current=n()),a}function H(n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}function T(n){let a=U(),r=()=>n(a.snapshot());return external_React_namespaceObject.useSyncExternalStore(a.subscribe,r,r)}function se(n,a,r){let o=external_React_namespaceObject.useRef(),u=k();return L(()=>{var p;let l=(()=>{var f;for(let d of r){if(typeof d=="string")return d.trim().toLowerCase();if(typeof d=="object"&&"current"in d&&d.current)return(f=d.current.textContent)==null?void 0:f.trim().toLowerCase()}})();u.value(n,l),(p=a.current)==null||p.setAttribute(S,l),o.current=l}),o}var ye=()=>{let[n,a]=external_React_namespaceObject.useState(),r=x(()=>new Map);return L(()=>{r.current.forEach(o=>o()),r.current=new Map},[n]),(o,u)=>{r.current.set(o,u),a({})}},xe={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};
-// EXTERNAL MODULE: ./node_modules/classnames/index.js
-var classnames = __webpack_require__(5755);
-var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
+;// CONCATENATED MODULE: ./node_modules/clsx/dist/clsx.mjs
+function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
;// CONCATENATED MODULE: external ["wp","data"]
const external_wp_data_namespaceObject = window["wp"]["data"];
;// CONCATENATED MODULE: external ["wp","element"]
@@ -3249,18 +3182,21 @@ function Icon({
;// CONCATENATED MODULE: external ["wp","primitives"]
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/search.js
-
/**
* WordPress dependencies
*/
-const search = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const search = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"
+ })
+});
/* harmony default export */ const library_search = (search);
;// CONCATENATED MODULE: ./node_modules/@wordpress/commands/build-module/store/reducer.js
@@ -3485,307 +3421,9 @@ function actions_close() {
};
}
-;// CONCATENATED MODULE: ./node_modules/rememo/rememo.js
-
-
-/** @typedef {(...args: any[]) => *[]} GetDependants */
-
-/** @typedef {() => void} Clear */
-
-/**
- * @typedef {{
- * getDependants: GetDependants,
- * clear: Clear
- * }} EnhancedSelector
- */
-
-/**
- * Internal cache entry.
- *
- * @typedef CacheNode
- *
- * @property {?CacheNode|undefined} [prev] Previous node.
- * @property {?CacheNode|undefined} [next] Next node.
- * @property {*[]} args Function arguments for cache entry.
- * @property {*} val Function result.
- */
-
-/**
- * @typedef Cache
- *
- * @property {Clear} clear Function to clear cache.
- * @property {boolean} [isUniqueByDependants] Whether dependants are valid in
- * considering cache uniqueness. A cache is unique if dependents are all arrays
- * or objects.
- * @property {CacheNode?} [head] Cache head.
- * @property {*[]} [lastDependants] Dependants from previous invocation.
- */
-
-/**
- * Arbitrary value used as key for referencing cache object in WeakMap tree.
- *
- * @type {{}}
- */
-var LEAF_KEY = {};
-
-/**
- * Returns the first argument as the sole entry in an array.
- *
- * @template T
- *
- * @param {T} value Value to return.
- *
- * @return {[T]} 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 {Cache} Cache object.
- */
-function createCache() {
- /** @type {Cache} */
- 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 {*[]} a First array.
- * @param {*[]} 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.
- *
- * @template {(...args: *[]) => *} S
- *
- * @param {S} selector Selector function.
- * @param {GetDependants=} getDependants Dependant getter returning an array of
- * references used in cache bust consideration.
- */
-/* harmony default export */ function rememo(selector, getDependants) {
- /** @type {WeakMap<*,*>} */
- var rootCache;
-
- /** @type {GetDependants} */
- var normalizedGetDependants = getDependants ? getDependants : arrayOf;
-
- /**
- * 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 {*[]} dependants Selector dependants.
- *
- * @return {Cache} Cache object.
- */
- function getCache(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);
- }
-
- /**
- * Resets root memoization cache.
- */
- function clear() {
- rootCache = new WeakMap();
- }
-
- /* eslint-disable jsdoc/check-param-names */
- /**
- * The augmented selector call, considering first whether dependants have
- * changed before passing it to underlying memoize function.
- *
- * @param {*} source Source object for derivation.
- * @param {...*} extraArgs Additional arguments to pass to selector.
- *
- * @return {*} Selector result.
- */
- /* eslint-enable jsdoc/check-param-names */
- 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 = normalizedGetDependants.apply(null, args);
- cache = getCache(dependants);
-
- // If not guaranteed uniqueness by dependants (primitive type), 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.
- /** @type {CacheNode} */ (node.prev).next = node.next;
- if (node.next) {
- node.next.prev = node.prev;
- }
-
- node.next = cache.head;
- node.prev = null;
- /** @type {CacheNode} */ (cache.head).prev = node;
- cache.head = node;
- }
-
- // Return immediately
- return node.val;
- }
-
- // No cached value found. Continue to insertion phase:
-
- node = /** @type {CacheNode} */ ({
- // 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 = normalizedGetDependants;
- callSelector.clear = clear;
- clear();
-
- return /** @type {S & EnhancedSelector} */ (callSelector);
-}
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/commands/build-module/store/selectors.js
/**
- * External dependencies
+ * WordPress dependencies
*/
@@ -3797,7 +3435,7 @@ function isShallowEqual(a, b, fromIndex) {
*
* @return {import('./actions').WPCommandConfig[]} The list of registered commands.
*/
-const getCommands = rememo((state, contextual = false) => Object.values(state.commands).filter(command => {
+const getCommands = (0,external_wp_data_namespaceObject.createSelector)((state, contextual = false) => Object.values(state.commands).filter(command => {
const isContextual = command.context && command.context === state.context;
return contextual ? isContextual : !isContextual;
}), state => [state.commands, state.context]);
@@ -3810,7 +3448,7 @@ const getCommands = rememo((state, contextual = false) => Object.values(state.co
*
* @return {import('./actions').WPCommandLoaderConfig[]} The list of registered command loaders.
*/
-const getCommandLoaders = rememo((state, contextual = false) => Object.values(state.commandLoaders).filter(loader => {
+const getCommandLoaders = (0,external_wp_data_namespaceObject.createSelector)((state, contextual = false) => Object.values(state.commandLoaders).filter(loader => {
const isContextual = loader.context && loader.context === state.context;
return contextual ? isContextual : !isContextual;
}), state => [state.commandLoaders, state.context]);
@@ -3862,7 +3500,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
const {
lock,
unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/commands');
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/commands');
;// CONCATENATED MODULE: ./node_modules/@wordpress/commands/build-module/store/index.js
/**
@@ -3904,7 +3542,6 @@ const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME,
unlock(store).registerPrivateActions(private_actions_namespaceObject);
;// CONCATENATED MODULE: ./node_modules/@wordpress/commands/build-module/components/command-menu.js
-
/**
* External dependencies
*/
@@ -3925,7 +3562,10 @@ unlock(store).registerPrivateActions(private_actions_namespaceObject);
* Internal dependencies
*/
-const inputLabel = (0,external_wp_i18n_namespaceObject.__)('Search for commands');
+
+
+
+const inputLabel = (0,external_wp_i18n_namespaceObject.__)('Search commands and settings');
function CommandMenuLoader({
name,
search,
@@ -3946,27 +3586,32 @@ function CommandMenuLoader({
if (!commands.length) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, commands.map(command => {
- var _command$searchLabel;
- return (0,external_React_namespaceObject.createElement)(Le.Item, {
- key: command.name,
- value: (_command$searchLabel = command.searchLabel) !== null && _command$searchLabel !== void 0 ? _command$searchLabel : command.label,
- onSelect: () => command.callback({
- close
- }),
- id: command.name
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- alignment: "left",
- className: classnames_default()('commands-command-menu__item', {
- 'has-icon': command.icon
- })
- }, command.icon && (0,external_React_namespaceObject.createElement)(icon, {
- icon: command.icon
- }), (0,external_React_namespaceObject.createElement)("span", null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextHighlight, {
- text: command.label,
- highlight: search
- }))));
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: commands.map(command => {
+ var _command$searchLabel;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Le.Item, {
+ value: (_command$searchLabel = command.searchLabel) !== null && _command$searchLabel !== void 0 ? _command$searchLabel : command.label,
+ onSelect: () => command.callback({
+ close
+ }),
+ id: command.name,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ alignment: "left",
+ className: dist_clsx('commands-command-menu__item', {
+ 'has-icon': command.icon
+ }),
+ children: [command.icon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icon, {
+ icon: command.icon
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextHighlight, {
+ text: command.label,
+ highlight: search
+ })
+ })]
+ })
+ }, command.name);
+ })
+ });
}
function CommandMenuLoaderWrapper({
hook,
@@ -3987,13 +3632,12 @@ function CommandMenuLoaderWrapper({
setKey(prevKey => prevKey + 1);
}
}, [hook]);
- return (0,external_React_namespaceObject.createElement)(CommandMenuLoader, {
- key: key,
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CommandMenuLoader, {
hook: currentLoader.current,
search: search,
setLoader: setLoader,
close: close
- });
+ }, key);
}
function CommandMenuGroup({
isContextual,
@@ -4017,33 +3661,37 @@ function CommandMenuGroup({
if (!commands.length && !loaders.length) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(Le.Group, null, commands.map(command => {
- var _command$searchLabel2;
- return (0,external_React_namespaceObject.createElement)(Le.Item, {
- key: command.name,
- value: (_command$searchLabel2 = command.searchLabel) !== null && _command$searchLabel2 !== void 0 ? _command$searchLabel2 : command.label,
- onSelect: () => command.callback({
- close
- }),
- id: command.name
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- alignment: "left",
- className: classnames_default()('commands-command-menu__item', {
- 'has-icon': command.icon
- })
- }, command.icon && (0,external_React_namespaceObject.createElement)(icon, {
- icon: command.icon
- }), (0,external_React_namespaceObject.createElement)("span", null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextHighlight, {
- text: command.label,
- highlight: search
- }))));
- }), loaders.map(loader => (0,external_React_namespaceObject.createElement)(CommandMenuLoaderWrapper, {
- key: loader.name,
- hook: loader.hook,
- search: search,
- setLoader: setLoader,
- close: close
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Le.Group, {
+ children: [commands.map(command => {
+ var _command$searchLabel2;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Le.Item, {
+ value: (_command$searchLabel2 = command.searchLabel) !== null && _command$searchLabel2 !== void 0 ? _command$searchLabel2 : command.label,
+ onSelect: () => command.callback({
+ close
+ }),
+ id: command.name,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ alignment: "left",
+ className: dist_clsx('commands-command-menu__item', {
+ 'has-icon': command.icon
+ }),
+ children: [command.icon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icon, {
+ icon: command.icon
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextHighlight, {
+ text: command.label,
+ highlight: search
+ })
+ })]
+ })
+ }, command.name);
+ }), loaders.map(loader => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CommandMenuLoaderWrapper, {
+ hook: loader.hook,
+ search: search,
+ setLoader: setLoader,
+ close: close
+ }, loader.name))]
+ });
}
function CommandInput({
isOpen,
@@ -4062,7 +3710,7 @@ function CommandInput({
commandMenuInput.current.focus();
}
}, [isOpen]);
- return (0,external_React_namespaceObject.createElement)(Le.Input, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Le.Input, {
ref: commandMenuInput,
value: search,
onValueChange: setSearch,
@@ -4108,7 +3756,9 @@ function CommandMenu() {
(0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/commands', /** @type {import('react').KeyboardEventHandler} */
event => {
// Bails to avoid obscuring the effect of the preceding handler(s).
- if (event.defaultPrevented) return;
+ if (event.defaultPrevented) {
+ return;
+ }
event.preventDefault();
if (isOpen) {
close();
@@ -4141,37 +3791,44 @@ function CommandMenu() {
}
};
const isLoading = Object.values(loaders).some(Boolean);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
className: "commands-command-menu",
overlayClassName: "commands-command-menu__overlay",
onRequestClose: closeAndReset,
__experimentalHideHeader: true,
- contentLabel: (0,external_wp_i18n_namespaceObject.__)('Command palette')
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "commands-command-menu__container"
- }, (0,external_React_namespaceObject.createElement)(Le, {
- label: inputLabel,
- onKeyDown: onKeyDown
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "commands-command-menu__header"
- }, (0,external_React_namespaceObject.createElement)(icon, {
- icon: library_search
- }), (0,external_React_namespaceObject.createElement)(CommandInput, {
- search: search,
- setSearch: setSearch,
- isOpen: isOpen
- })), (0,external_React_namespaceObject.createElement)(Le.List, {
- ref: commandListRef
- }, search && !isLoading && (0,external_React_namespaceObject.createElement)(Le.Empty, null, (0,external_wp_i18n_namespaceObject.__)('No results found.')), (0,external_React_namespaceObject.createElement)(CommandMenuGroup, {
- search: search,
- setLoader: setLoader,
- close: closeAndReset,
- isContextual: true
- }), search && (0,external_React_namespaceObject.createElement)(CommandMenuGroup, {
- search: search,
- setLoader: setLoader,
- close: closeAndReset
- })))));
+ contentLabel: (0,external_wp_i18n_namespaceObject.__)('Command palette'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "commands-command-menu__container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Le, {
+ label: inputLabel,
+ onKeyDown: onKeyDown,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "commands-command-menu__header",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CommandInput, {
+ search: search,
+ setSearch: setSearch,
+ isOpen: isOpen
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icon, {
+ icon: library_search
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Le.List, {
+ ref: commandListRef,
+ children: [search && !isLoading && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Le.Empty, {
+ children: (0,external_wp_i18n_namespaceObject.__)('No results found.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CommandMenuGroup, {
+ search: search,
+ setLoader: setLoader,
+ close: closeAndReset,
+ isContextual: true
+ }), search && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CommandMenuGroup, {
+ search: search,
+ setLoader: setLoader,
+ close: closeAndReset
+ })]
+ })]
+ })
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/commands/build-module/hooks/use-command-context.js
diff --git a/wp-includes/js/dist/commands.min.js b/wp-includes/js/dist/commands.min.js
index 3d8b437..d1a295d 100644
--- a/wp-includes/js/dist/commands.min.js
+++ b/wp-includes/js/dist/commands.min.js
@@ -1,7 +1,2 @@
/*! This file is auto-generated */
-(()=>{var e={5755:(e,t)=>{var n;
-/*!
- Copyright (c) 2018 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<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var c=o.apply(null,n);c&&e.push(c)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var u in n)r.call(n,u)&&n[u]&&e.push(u)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},6007:e=>{var t=1,n=.9,r=.3,o=.1,a=0,c=.999,u=.9999,i=.99,l=/[\\\/\-_+.# \t"@\[\(\{&]/,s=/[\\\/\-_+.# \t"@\[\(\{&]/g;function d(e,f,m,p,v,h){if(h===f.length)return v===e.length?t:i;for(var g,E,b,y=p.charAt(h),w=m.indexOf(y,v),C=0;w>=0;)(g=d(e,f,m,p,w+1,h+1))>C&&(w===v?g*=t:l.test(e.charAt(w-1))?(g*=n,(b=e.slice(v,w-1).match(s))&&v>0&&(g*=Math.pow(c,b.length))):l.test(e.slice(v,w-1))?(g*=a,v>0&&(g*=Math.pow(c,w-v))):(g*=r,v>0&&(g*=Math.pow(c,w-v))),e.charAt(w)!==f.charAt(h)&&(g*=u)),g<o&&m.charAt(w-1)===p.charAt(h+1)&&m.charAt(w-1)!==p.charAt(h)&&(E=d(e,f,m,p,w+1,h+2))*o>g&&(g=E*o),g>C&&(C=g),w=m.indexOf(y,w+1);return C}e.exports=function(e,t){return d(e,t,e.toLowerCase(),t.toLowerCase(),0,0)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};(()=>{"use strict";n.r(r),n.d(r,{CommandMenu:()=>An,privateApis:()=>Dn,store:()=>Sn,useCommand:()=>Nn,useCommandLoader:()=>Mn});var e={};n.r(e),n.d(e,{close:()=>sn,open:()=>ln,registerCommand:()=>on,registerCommandLoader:()=>cn,unregisterCommand:()=>an,unregisterCommandLoader:()=>un});var t={};n.r(t),n.d(t,{getCommandLoaders:()=>hn,getCommands:()=>vn,getContext:()=>En,isOpen:()=>gn});var o={};n.r(o),n.d(o,{setContext:()=>bn});const a=window.React;function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function u(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function i(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function l(...e){return(0,a.useCallback)(i(...e),e)}function s(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,a.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}const d=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?a.useLayoutEffect:()=>{},f=a["useId".toString()]||(()=>{});let m=0;function p(e){const[t,n]=a.useState(f());return d((()=>{e||n((e=>null!=e?e:String(m++)))}),[e]),e||(t?`radix-${t}`:"")}function v(e){const t=(0,a.useRef)(e);return(0,a.useEffect)((()=>{t.current=e})),(0,a.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function h({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=(0,a.useState)(e),[r]=n,o=(0,a.useRef)(r),c=v(t);return(0,a.useEffect)((()=>{o.current!==r&&(c(r),o.current=r)}),[r,o,c]),n}({defaultProp:t,onChange:n}),c=void 0!==e,u=c?e:r,i=v(n);return[u,(0,a.useCallback)((t=>{if(c){const n="function"==typeof t?t(e):t;n!==e&&i(n)}else o(t)}),[c,e,o,i])]}const g=window.ReactDOM;var E=n.n(g);const b=(0,a.forwardRef)(((e,t)=>{const{children:n,...r}=e,o=a.Children.toArray(n),u=o.find(C);if(u){const e=u.props.children,n=o.map((t=>t===u?a.Children.count(e)>1?a.Children.only(null):(0,a.isValidElement)(e)?e.props.children:null:t));return(0,a.createElement)(y,c({},r,{ref:t}),(0,a.isValidElement)(e)?(0,a.cloneElement)(e,void 0,n):null)}return(0,a.createElement)(y,c({},r,{ref:t}),n)}));b.displayName="Slot";const y=(0,a.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,a.isValidElement)(n)?(0,a.cloneElement)(n,{...S(r,n.props),ref:i(t,n.ref)}):a.Children.count(n)>1?a.Children.only(null):null}));y.displayName="SlotClone";const w=({children:e})=>(0,a.createElement)(a.Fragment,null,e);function C(e){return(0,a.isValidElement)(e)&&e.type===w}function S(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?n[r]=(...e)=>{null==a||a(...e),null==o||o(...e)}:"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const x=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,a.forwardRef)(((e,n)=>{const{asChild:r,...o}=e,u=r?b:t;return(0,a.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,a.createElement)(u,c({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});const O="dismissableLayer.update",k="dismissableLayer.pointerDownOutside",R="dismissableLayer.focusOutside";let L;const A=(0,a.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),D=(0,a.forwardRef)(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:d,...f}=e,m=(0,a.useContext)(A),[p,h]=(0,a.useState)(null),[,g]=(0,a.useState)({}),E=l(t,(e=>h(e))),b=Array.from(m.layers),[y]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),w=b.indexOf(y),C=p?b.indexOf(p):-1,S=m.layersWithOutsidePointerEventsDisabled.size>0,D=C>=w,_=function(e){const t=v(e),n=(0,a.useRef)(!1),r=(0,a.useRef)((()=>{}));return(0,a.useEffect)((()=>{const e=e=>{if(e.target&&!n.current){const o={originalEvent:e};function a(){M(k,t,o,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",r.current),r.current=a,document.addEventListener("click",r.current,{once:!0})):a()}n.current=!1},o=window.setTimeout((()=>{document.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),document.removeEventListener("pointerdown",e),document.removeEventListener("click",r.current)}}),[t]),{onPointerDownCapture:()=>n.current=!0}}((e=>{const t=e.target,n=[...m.branches].some((e=>e.contains(t)));D&&!n&&(null==o||o(e),null==s||s(e),e.defaultPrevented||null==d||d())})),P=function(e){const t=v(e),n=(0,a.useRef)(!1);return(0,a.useEffect)((()=>{const e=e=>{if(e.target&&!n.current){M(R,t,{originalEvent:e},{discrete:!1})}};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)}),[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}((e=>{const t=e.target;[...m.branches].some((e=>e.contains(t)))||(null==i||i(e),null==s||s(e),e.defaultPrevented||null==d||d())}));return function(e){const t=v(e);(0,a.useEffect)((()=>{const e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[t])}((e=>{C===m.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))})),(0,a.useEffect)((()=>{if(p)return n&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(L=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(p)),m.layers.add(p),N(),()=>{n&&1===m.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=L)}}),[p,n,m]),(0,a.useEffect)((()=>()=>{p&&(m.layers.delete(p),m.layersWithOutsidePointerEventsDisabled.delete(p),N())}),[p,m]),(0,a.useEffect)((()=>{const e=()=>g({});return document.addEventListener(O,e),()=>document.removeEventListener(O,e)}),[]),(0,a.createElement)(x.div,c({},f,{ref:E,style:{pointerEvents:S?D?"auto":"none":void 0,...e.style},onFocusCapture:u(e.onFocusCapture,P.onFocusCapture),onBlurCapture:u(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:u(e.onPointerDownCapture,_.onPointerDownCapture)}))}));function N(){const e=new CustomEvent(O);document.dispatchEvent(e)}function M(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&(0,g.flushSync)((()=>e.dispatchEvent(t)))}(o,a):o.dispatchEvent(a)}const _="focusScope.autoFocusOnMount",P="focusScope.autoFocusOnUnmount",I={bubbles:!1,cancelable:!0},T=(0,a.forwardRef)(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...i}=e,[s,d]=(0,a.useState)(null),f=v(o),m=v(u),p=(0,a.useRef)(null),h=l(t,(e=>d(e))),g=(0,a.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,a.useEffect)((()=>{if(r){function e(e){if(g.paused||!s)return;const t=e.target;s.contains(t)?p.current=t:U(p.current,{select:!0})}function t(e){!g.paused&&s&&(s.contains(e.relatedTarget)||U(p.current,{select:!0}))}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,s,g.paused]),(0,a.useEffect)((()=>{if(s){B.add(g);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(_,I);s.addEventListener(_,f),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(U(r,{select:t}),document.activeElement!==n)return}((e=F(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&U(s))}return()=>{s.removeEventListener(_,f),setTimeout((()=>{const e=new CustomEvent(P,I);s.addEventListener(P,m),s.dispatchEvent(e),e.defaultPrevented||U(null!=t?t:document.body,{select:!0}),s.removeEventListener(P,m),B.remove(g)}),0)}}var e}),[s,f,m,g]);const E=(0,a.useCallback)((e=>{if(!n&&!r)return;if(g.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=function(e){const t=F(e),n=j(t,e),r=j(t.reverse(),e);return[n,r]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&U(a,{select:!0})):(e.preventDefault(),n&&U(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,g.paused]);return(0,a.createElement)(x.div,c({tabIndex:-1},i,{ref:h,onKeyDown:E}))}));function F(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function j(e,t){for(const n of e)if(!W(n,{upTo:t}))return n}function W(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function U(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const B=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=K(e,t),e.unshift(t)},remove(t){var n;e=K(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function K(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const $=(0,a.forwardRef)(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?E().createPortal((0,a.createElement)(x.div,c({},o,{ref:t})),r):null}));const q=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,a.useState)(),r=(0,a.useRef)({}),o=(0,a.useRef)(e),c=(0,a.useRef)("none"),u=e?"mounted":"unmounted",[i,l]=function(e,t){return(0,a.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,a.useEffect)((()=>{const e=z(r.current);c.current="mounted"===i?e:"none"}),[i]),d((()=>{const t=r.current,n=o.current;if(n!==e){const r=c.current,a=z(t);if(e)l("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),d((()=>{if(t){const e=e=>{const n=z(r.current).includes(e.animationName);e.target===t&&n&&(0,g.flushSync)((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(c.current=z(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:(0,a.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):a.Children.only(n),c=l(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,a.cloneElement)(o,{ref:c}):null};function z(e){return(null==e?void 0:e.animationName)||"none"}q.displayName="Presence";let G=0;function H(){(0,a.useEffect)((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:V()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:V()),G++,()=>{1===G&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),G--}}),[])}function V(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var X=function(){return X=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},X.apply(this,arguments)};function Y(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function Z(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var J="right-scroll-bar-position",Q="width-before-scroll-bar";function ee(e,t){return n=t||null,r=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},(o=(0,a.useState)((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade;var n,r,o}function te(e){return e}function ne(e,t){void 0===t&&(t=te);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},c=function(){return Promise.resolve().then(a)};c(),n={push:function(e){t.push(e),c()},filter:function(e){return t=t.filter(e),n}}}};return o}var re=function(e){void 0===e&&(e={});var t=ne(null);return t.options=X({async:!0,ssr:!1},e),t}(),oe=function(){},ae=a.forwardRef((function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:oe,onWheelCapture:oe,onTouchMoveCapture:oe}),o=r[0],c=r[1],u=e.forwardProps,i=e.children,l=e.className,s=e.removeScrollBar,d=e.enabled,f=e.shards,m=e.sideCar,p=e.noIsolation,v=e.inert,h=e.allowPinchZoom,g=e.as,E=void 0===g?"div":g,b=Y(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=m,w=ee([n,t]),C=X(X({},b),o);return a.createElement(a.Fragment,null,d&&a.createElement(y,{sideCar:re,removeScrollBar:s,shards:f,noIsolation:p,inert:v,setCallbacks:c,allowPinchZoom:!!h,lockRef:n}),u?a.cloneElement(a.Children.only(i),X(X({},C),{ref:w})):a.createElement(E,X({},C,{className:l,ref:w}),i))}));ae.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ae.classNames={fullWidth:Q,zeroRight:J};var ce,ue=function(e){var t=e.sideCar,n=Y(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,X({},n))};ue.isSideCarExport=!0;function ie(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ce||n.nc;return t&&e.setAttribute("nonce",t),e}var le=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=ie())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},se=function(){var e,t=(e=le(),function(t,n){a.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},de={left:0,top:0,right:0,gap:0},fe=function(e){return parseInt(e||"",10)||0},me=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return de;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[fe(n),fe(r),fe(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},pe=se(),ve=function(e,t,n,r){var o=e.left,a=e.top,c=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(c,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(J," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(Q," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(J," .").concat(J," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Q," .").concat(Q," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},he=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,c=a.useMemo((function(){return me(o)}),[o]);return a.createElement(pe,{styles:ve(c,!t,o,n?"":"!important")})},ge=!1;if("undefined"!=typeof window)try{var Ee=Object.defineProperty({},"passive",{get:function(){return ge=!0,!0}});window.addEventListener("test",Ee,Ee),window.removeEventListener("test",Ee,Ee)}catch(e){ge=!1}var be=!!ge&&{passive:!1},ye=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),we(e,n)){var r=Ce(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},we=function(e,t){return"v"===e?function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)}(t):function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)}(t)},Ce=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Se=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xe=function(e){return[e.deltaX,e.deltaY]},Oe=function(e){return e&&"current"in e?e.current:e},ke=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Re=0,Le=[];const Ae=(De=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(Re++)[0],c=a.useState((function(){return se()}))[0],u=a.useRef(e);a.useEffect((function(){u.current=e}),[e]),a.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=Z([e.lockRef.current],(e.shards||[]).map(Oe),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var i=a.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!u.current.allowPinchZoom;var o,a=Se(e),c=n.current,i="deltaX"in e?e.deltaX:c[0]-a[0],l="deltaY"in e?e.deltaY:c[1]-a[1],s=e.target,d=Math.abs(i)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=ye(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=ye(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(i||l)&&(r.current=o),!o)return!0;var m=r.current||o;return function(e,t,n,r,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),c=a*r,u=n.target,i=t.contains(u),l=!1,s=c>0,d=0,f=0;do{var m=Ce(e,u),p=m[0],v=m[1]-m[2]-a*p;(p||v)&&we(e,u)&&(d+=v,f+=p),u=u.parentNode}while(!i&&u!==document.body||i&&(t.contains(u)||t===u));return(s&&(o&&0===d||!o&&c>d)||!s&&(o&&0===f||!o&&-c>f))&&(l=!0),l}(m,t,e,"h"===m?i:l,!0)}),[]),l=a.useCallback((function(e){var n=e;if(Le.length&&Le[Le.length-1]===c){var r="deltaY"in n?xe(n):Se(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.preventDefault();else if(!o){var a=(u.current.shards||[]).map(Oe).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?i(n,a[0]):!u.current.noIsolation)&&n.preventDefault()}}}),[]),s=a.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),d=a.useCallback((function(e){n.current=Se(e),r.current=void 0}),[]),f=a.useCallback((function(t){s(t.type,xe(t),t.target,i(t,e.lockRef.current))}),[]),m=a.useCallback((function(t){s(t.type,Se(t),t.target,i(t,e.lockRef.current))}),[]);a.useEffect((function(){return Le.push(c),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",l,be),document.addEventListener("touchmove",l,be),document.addEventListener("touchstart",d,be),function(){Le=Le.filter((function(e){return e!==c})),document.removeEventListener("wheel",l,be),document.removeEventListener("touchmove",l,be),document.removeEventListener("touchstart",d,be)}}),[]);var p=e.removeScrollBar,v=e.inert;return a.createElement(a.Fragment,null,v?a.createElement(c,{styles:ke(o)}):null,p?a.createElement(he,{gapMode:"margin"}):null)},re.useMedium(De),ue);var De,Ne=a.forwardRef((function(e,t){return a.createElement(ae,X({},e,{ref:t,sideCar:Ae}))}));Ne.classNames=ae.classNames;const Me=Ne;var _e=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Pe=new WeakMap,Ie=new WeakMap,Te={},Fe=0,je=function(e){return e&&(e.host||je(e.parentNode))},We=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=je(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Te[n]||(Te[n]=new WeakMap);var a=Te[n],c=[],u=new Set,i=new Set(o),l=function(e){e&&!u.has(e)&&(u.add(e),l(e.parentNode))};o.forEach(l);var s=function(e){e&&!i.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(u.has(e))s(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,i=(Pe.get(e)||0)+1,l=(a.get(e)||0)+1;Pe.set(e,i),a.set(e,l),c.push(e),1===i&&o&&Ie.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return s(t),u.clear(),Fe++,function(){c.forEach((function(e){var t=Pe.get(e)-1,o=a.get(e)-1;Pe.set(e,t),a.set(e,o),t||(Ie.has(e)||e.removeAttribute(r),Ie.delete(e)),o||e.removeAttribute(n)})),--Fe||(Pe=new WeakMap,Pe=new WeakMap,Ie=new WeakMap,Te={})}},Ue=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||_e(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),We(r,o,n,"aria-hidden")):function(){return null}};const Be="Dialog",[Ke,$e]=function(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,a.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,a.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=(0,a.createContext)(r),c=n.length;function u(t){const{scope:n,children:r,...u}=t,i=(null==n?void 0:n[e][c])||o,l=(0,a.useMemo)((()=>u),Object.values(u));return(0,a.createElement)(i.Provider,{value:l},r)}return n=[...n,r],u.displayName=t+"Provider",[u,function(n,u){const i=(null==u?void 0:u[e][c])||o,l=(0,a.useContext)(i);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},s(r,...t)]}(Be),[qe,ze]=Ke(Be),Ge=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:c,modal:u=!0}=e,i=(0,a.useRef)(null),l=(0,a.useRef)(null),[s=!1,d]=h({prop:r,defaultProp:o,onChange:c});return(0,a.createElement)(qe,{scope:t,triggerRef:i,contentRef:l,contentId:p(),titleId:p(),descriptionId:p(),open:s,onOpenChange:d,onOpenToggle:(0,a.useCallback)((()=>d((e=>!e))),[d]),modal:u},n)},He="DialogPortal",[Ve,Xe]=Ke(He,{forceMount:void 0}),Ye=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,c=ze(He,t);return(0,a.createElement)(Ve,{scope:t,forceMount:n},a.Children.map(r,(e=>(0,a.createElement)(q,{present:n||c.open},(0,a.createElement)($,{asChild:!0,container:o},e)))))},Ze="DialogOverlay",Je=(0,a.forwardRef)(((e,t)=>{const n=Xe(Ze,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,u=ze(Ze,e.__scopeDialog);return u.modal?(0,a.createElement)(q,{present:r||u.open},(0,a.createElement)(Qe,c({},o,{ref:t}))):null})),Qe=(0,a.forwardRef)(((e,t)=>{const{__scopeDialog:n,...r}=e,o=ze(Ze,n);return(0,a.createElement)(Me,{as:b,allowPinchZoom:!0,shards:[o.contentRef]},(0,a.createElement)(x.div,c({"data-state":ct(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),et="DialogContent",tt=(0,a.forwardRef)(((e,t)=>{const n=Xe(et,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,u=ze(et,e.__scopeDialog);return(0,a.createElement)(q,{present:r||u.open},u.modal?(0,a.createElement)(nt,c({},o,{ref:t})):(0,a.createElement)(rt,c({},o,{ref:t})))})),nt=(0,a.forwardRef)(((e,t)=>{const n=ze(et,e.__scopeDialog),r=(0,a.useRef)(null),o=l(t,n.contentRef,r);return(0,a.useEffect)((()=>{const e=r.current;if(e)return Ue(e)}),[]),(0,a.createElement)(ot,c({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:u(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:u(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:u(e.onFocusOutside,(e=>e.preventDefault()))}))})),rt=(0,a.forwardRef)(((e,t)=>{const n=ze(et,e.__scopeDialog),r=(0,a.useRef)(!1);return(0,a.createElement)(ot,c({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,a;(null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented)||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());r.current=!1},onInteractOutside:t=>{var o,a;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0);const c=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(c))&&t.preventDefault()}}))})),ot=(0,a.forwardRef)(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:u,...i}=e,s=ze(et,n),d=l(t,(0,a.useRef)(null));return H(),(0,a.createElement)(a.Fragment,null,(0,a.createElement)(T,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:u},(0,a.createElement)(D,c({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":ct(s.open)},i,{ref:d,onDismiss:()=>s.onOpenChange(!1)}))),!1)})),at="DialogTitle";function ct(e){return e?"open":"closed"}const ut="DialogTitleWarning",[it,lt]=function(e,t){const n=(0,a.createContext)(t);function r(e){const{children:t,...r}=e,o=(0,a.useMemo)((()=>r),Object.values(r));return(0,a.createElement)(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=(0,a.useContext)(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(ut,{contentName:et,titleName:at,docsSlug:"dialog"}),st=Ge,dt=Ye,ft=Je,mt=tt;var pt=n(6007),vt='[cmdk-group=""]',ht='[cmdk-group-items=""]',gt='[cmdk-item=""]',Et=`${gt}:not([aria-disabled="true"])`,bt="cmdk-item-select",yt="data-value",wt=(e,t)=>pt(e,t),Ct=a.createContext(void 0),St=()=>a.useContext(Ct),xt=a.createContext(void 0),Ot=()=>a.useContext(xt),kt=a.createContext(void 0),Rt=a.forwardRef(((e,t)=>{let n=a.useRef(null),r=Bt((()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}}))),o=Bt((()=>new Set)),c=Bt((()=>new Map)),u=Bt((()=>new Map)),i=Bt((()=>new Set)),l=Wt(e),{label:s,children:d,value:f,onValueChange:m,filter:p,shouldFilter:v,...h}=e,g=a.useId(),E=a.useId(),b=a.useId(),y=zt();Ut((()=>{if(void 0!==f){let e=f.trim().toLowerCase();r.current.value=e,y(6,R),w.emit()}}),[f]);let w=a.useMemo((()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var o,a,c;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)k(),x(),y(1,O);else if("value"===e){if(void 0!==(null==(o=l.current)?void 0:o.value))return void(null==(c=(a=l.current).onValueChange)||c.call(a,t));n||y(5,R)}w.emit()}},emit:()=>{i.current.forEach((e=>e()))}})),[]),C=a.useMemo((()=>({value:(e,t)=>{t!==u.current.get(e)&&(u.current.set(e,t),r.current.filtered.items.set(e,S(t)),y(2,(()=>{x(),w.emit()})))},item:(e,t)=>(o.current.add(e),t&&(c.current.has(t)?c.current.get(t).add(e):c.current.set(t,new Set([e]))),y(3,(()=>{k(),x(),r.current.value||O(),w.emit()})),()=>{u.current.delete(e),o.current.delete(e),r.current.filtered.items.delete(e),y(4,(()=>{k(),O(),w.emit()}))}),group:e=>(c.current.has(e)||c.current.set(e,new Set),()=>{u.current.delete(e),c.current.delete(e)}),filter:()=>l.current.shouldFilter,label:s||e["aria-label"],listId:g,inputId:b,labelId:E})),[]);function S(e){var t;let n=(null==(t=l.current)?void 0:t.filter)??wt;return e?n(e,r.current.search):0}function x(){if(!n.current||!r.current.search||!1===l.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach((n=>{let r=c.current.get(n),o=0;r.forEach((t=>{let n=e.get(t);o=Math.max(n,o)})),t.push([n,o])}));let o=n.current.querySelector('[cmdk-list-sizer=""]');A().sort(((t,n)=>{let r=t.getAttribute(yt),o=n.getAttribute(yt);return(e.get(o)??0)-(e.get(r)??0)})).forEach((e=>{let t=e.closest(ht);t?t.appendChild(e.parentElement===t?e:e.closest(`${ht} > *`)):o.appendChild(e.parentElement===o?e:e.closest(`${ht} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=n.current.querySelector(`${vt}[${yt}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)}))}function O(){let e=A().find((e=>!e.ariaDisabled)),t=null==e?void 0:e.getAttribute(yt);w.setState("value",t||void 0)}function k(){if(!r.current.search||!1===l.current.shouldFilter)return void(r.current.filtered.count=o.current.size);r.current.filtered.groups=new Set;let e=0;for(let t of o.current){let n=S(u.current.get(t));r.current.filtered.items.set(t,n),n>0&&e++}for(let[e,t]of c.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=e}function R(){var e,t,n;let r=L();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(vt))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function L(){return n.current.querySelector(`${gt}[aria-selected="true"]`)}function A(){return Array.from(n.current.querySelectorAll(Et))}function D(e){let t=A()[e];t&&w.setState("value",t.getAttribute(yt))}function N(e){var t;let n=L(),r=A(),o=r.findIndex((e=>e===n)),a=r[o+e];null!=(t=l.current)&&t.loop&&(a=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),a&&w.setState("value",a.getAttribute(yt))}function M(e){let t,n=L(),r=null==n?void 0:n.closest(vt);for(;r&&!t;)r=e>0?Ft(r,vt):jt(r,vt),t=null==r?void 0:r.querySelector(Et);t?w.setState("value",t.getAttribute(yt)):N(e)}let _=()=>D(A().length-1),P=e=>{e.preventDefault(),e.metaKey?_():e.altKey?M(1):N(1)},I=e=>{e.preventDefault(),e.metaKey?D(0):e.altKey?M(-1):N(-1)};return a.createElement("div",{ref:Kt([n,t]),...h,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=h.onKeyDown)||t.call(h,e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&P(e);break;case"ArrowDown":P(e);break;case"p":case"k":e.ctrlKey&&I(e);break;case"ArrowUp":I(e);break;case"Home":e.preventDefault(),D(0);break;case"End":e.preventDefault(),_();break;case"Enter":{e.preventDefault();let t=L();if(t){let e=new Event(bt);t.dispatchEvent(e)}}}}},a.createElement("label",{"cmdk-label":"",htmlFor:C.inputId,id:C.labelId,style:Gt},s),a.createElement(xt.Provider,{value:w},a.createElement(Ct.Provider,{value:C},d)))})),Lt=a.forwardRef(((e,t)=>{let n=a.useId(),r=a.useRef(null),o=a.useContext(kt),c=St(),u=Wt(e);Ut((()=>c.item(n,o)),[]);let i=qt(n,r,[e.value,e.children,r]),l=Ot(),s=$t((e=>e.value&&e.value===i.current)),d=$t((e=>!1===c.filter()||(!e.search||e.filtered.items.get(n)>0)));function f(){var e,t;null==(t=(e=u.current).onSelect)||t.call(e,i.current)}if(a.useEffect((()=>{let t=r.current;if(t&&!e.disabled)return t.addEventListener(bt,f),()=>t.removeEventListener(bt,f)}),[d,e.onSelect,e.disabled]),!d)return null;let{disabled:m,value:p,onSelect:v,...h}=e;return a.createElement("div",{ref:Kt([r,t]),...h,"cmdk-item":"",role:"option","aria-disabled":m||void 0,"aria-selected":s||void 0,"data-selected":s||void 0,onPointerMove:m?void 0:function(){l.setState("value",i.current,!0)},onClick:m?void 0:f},e.children)})),At=a.forwardRef(((e,t)=>{let{heading:n,children:r,...o}=e,c=a.useId(),u=a.useRef(null),i=a.useRef(null),l=a.useId(),s=St(),d=$t((e=>!1===s.filter()||(!e.search||e.filtered.groups.has(c))));Ut((()=>s.group(c)),[]),qt(c,u,[e.value,e.heading,i]);let f=a.createElement(kt.Provider,{value:c},r);return a.createElement("div",{ref:Kt([u,t]),...o,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&a.createElement("div",{ref:i,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),a.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},f))})),Dt=a.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,o=a.useRef(null),c=$t((e=>!e.search));return n||c?a.createElement("div",{ref:Kt([o,t]),...r,"cmdk-separator":"",role:"separator"}):null})),Nt=a.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,c=Ot(),u=$t((e=>e.search)),i=St();return a.useEffect((()=>{null!=e.value&&c.setState("search",e.value)}),[e.value]),a.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":i.listId,"aria-labelledby":i.labelId,id:i.inputId,type:"text",value:o?e.value:u,onChange:e=>{o||c.setState("search",e.target.value),null==n||n(e.target.value)}})})),Mt=a.forwardRef(((e,t)=>{let{children:n,...r}=e,o=a.useRef(null),c=a.useRef(null),u=St();return a.useEffect((()=>{if(c.current&&o.current){let e,t=c.current,n=o.current,r=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.getBoundingClientRect().height;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}}),[]),a.createElement("div",{ref:Kt([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:u.listId,"aria-labelledby":u.inputId},a.createElement("div",{ref:c,"cmdk-list-sizer":""},n))})),_t=a.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,container:o,...c}=e;return a.createElement(st,{open:n,onOpenChange:r},a.createElement(dt,{container:o},a.createElement(ft,{"cmdk-overlay":""}),a.createElement(mt,{"aria-label":e.label,"cmdk-dialog":""},a.createElement(Rt,{ref:t,...c}))))})),Pt=a.forwardRef(((e,t)=>{let n=a.useRef(!0),r=$t((e=>0===e.filtered.count));return a.useEffect((()=>{n.current=!1}),[]),n.current||!r?null:a.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})})),It=a.forwardRef(((e,t)=>{let{progress:n,children:r,...o}=e;return a.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},a.createElement("div",{"aria-hidden":!0},r))})),Tt=Object.assign(Rt,{List:Mt,Item:Lt,Input:Nt,Group:At,Separator:Dt,Dialog:_t,Empty:Pt,Loading:It});function Ft(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function jt(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Wt(e){let t=a.useRef(e);return Ut((()=>{t.current=e})),t}var Ut=typeof window>"u"?a.useEffect:a.useLayoutEffect;function Bt(e){let t=a.useRef();return void 0===t.current&&(t.current=e()),t}function Kt(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function $t(e){let t=Ot(),n=()=>e(t.snapshot());return a.useSyncExternalStore(t.subscribe,n,n)}function qt(e,t,n){let r=a.useRef(),o=St();return Ut((()=>{var a;let c=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim().toLowerCase();if("object"==typeof t&&"current"in t&&t.current)return null==(e=t.current.textContent)?void 0:e.trim().toLowerCase()}})();o.value(e,c),null==(a=t.current)||a.setAttribute(yt,c),r.current=c})),r}var zt=()=>{let[e,t]=a.useState(),n=Bt((()=>new Map));return Ut((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}},Gt={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},Ht=n(5755),Vt=n.n(Ht);const Xt=window.wp.data,Yt=window.wp.element,Zt=window.wp.i18n,Jt=window.wp.components,Qt=window.wp.keyboardShortcuts;const en=(0,Yt.forwardRef)((function({icon:e,size:t=24,...n},r){return(0,Yt.cloneElement)(e,{width:t,height:t,...n,ref:r})})),tn=window.wp.primitives,nn=(0,a.createElement)(tn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(tn.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));const rn=(0,Xt.combineReducers)({commands:function(e={},t){switch(t.type){case"REGISTER_COMMAND":return{...e,[t.name]:{name:t.name,label:t.label,searchLabel:t.searchLabel,context:t.context,callback:t.callback,icon:t.icon}};case"UNREGISTER_COMMAND":{const{[t.name]:n,...r}=e;return r}}return e},commandLoaders:function(e={},t){switch(t.type){case"REGISTER_COMMAND_LOADER":return{...e,[t.name]:{name:t.name,context:t.context,hook:t.hook}};case"UNREGISTER_COMMAND_LOADER":{const{[t.name]:n,...r}=e;return r}}return e},isOpen:function(e=!1,t){switch(t.type){case"OPEN":return!0;case"CLOSE":return!1}return e},context:function(e="root",t){return"SET_CONTEXT"===t.type?t.context:e}});function on(e){return{type:"REGISTER_COMMAND",...e}}function an(e){return{type:"UNREGISTER_COMMAND",name:e}}function cn(e){return{type:"REGISTER_COMMAND_LOADER",...e}}function un(e){return{type:"UNREGISTER_COMMAND_LOADER",name:e}}function ln(){return{type:"OPEN"}}function sn(){return{type:"CLOSE"}}var dn={};function fn(e){return[e]}function mn(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function pn(e,t){var n,r=t||fn;function o(){n=new WeakMap}function a(){var t,o,a,c,u,i=arguments.length;for(c=new Array(i),a=0;a<i;a++)c[a]=arguments[a];for(t=function(e){var t,r,o,a,c,u=n,i=!0;for(t=0;t<e.length;t++){if(!(c=r=e[t])||"object"!=typeof c){i=!1;break}u.has(r)?u=u.get(r):(o=new WeakMap,u.set(r,o),u=o)}return u.has(dn)||((a=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=i,u.set(dn,a)),u.get(dn)}(u=r.apply(null,c)),t.isUniqueByDependants||(t.lastDependants&&!mn(u,t.lastDependants,0)&&t.clear(),t.lastDependants=u),o=t.head;o;){if(mn(o.args,c,1))return o!==t.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=t.head,o.prev=null,t.head.prev=o,t.head=o),o.val;o=o.next}return o={val:e.apply(null,c)},c[0]=null,o.args=c,t.head&&(t.head.prev=o,o.next=t.head),t.head=o,o.val}return a.getDependants=r,a.clear=o,o(),a}const vn=pn(((e,t=!1)=>Object.values(e.commands).filter((n=>{const r=n.context&&n.context===e.context;return t?r:!r}))),(e=>[e.commands,e.context])),hn=pn(((e,t=!1)=>Object.values(e.commandLoaders).filter((n=>{const r=n.context&&n.context===e.context;return t?r:!r}))),(e=>[e.commandLoaders,e.context]));function gn(e){return e.isOpen}function En(e){return e.context}function bn(e){return{type:"SET_CONTEXT",context:e}}const yn=window.wp.privateApis,{lock:wn,unlock:Cn}=(0,yn.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/commands"),Sn=(0,Xt.createReduxStore)("core/commands",{reducer:rn,actions:e,selectors:t});(0,Xt.register)(Sn),Cn(Sn).registerPrivateActions(o);const xn=(0,Zt.__)("Search for commands");function On({name:e,search:t,hook:n,setLoader:r,close:o}){var c;const{isLoading:u,commands:i=[]}=null!==(c=n({search:t}))&&void 0!==c?c:{};return(0,Yt.useEffect)((()=>{r(e,u)}),[r,e,u]),i.length?(0,a.createElement)(a.Fragment,null,i.map((e=>{var n;return(0,a.createElement)(Tt.Item,{key:e.name,value:null!==(n=e.searchLabel)&&void 0!==n?n:e.label,onSelect:()=>e.callback({close:o}),id:e.name},(0,a.createElement)(Jt.__experimentalHStack,{alignment:"left",className:Vt()("commands-command-menu__item",{"has-icon":e.icon})},e.icon&&(0,a.createElement)(en,{icon:e.icon}),(0,a.createElement)("span",null,(0,a.createElement)(Jt.TextHighlight,{text:e.label,highlight:t}))))}))):null}function kn({hook:e,search:t,setLoader:n,close:r}){const o=(0,Yt.useRef)(e),[c,u]=(0,Yt.useState)(0);return(0,Yt.useEffect)((()=>{o.current!==e&&(o.current=e,u((e=>e+1)))}),[e]),(0,a.createElement)(On,{key:c,hook:o.current,search:t,setLoader:n,close:r})}function Rn({isContextual:e,search:t,setLoader:n,close:r}){const{commands:o,loaders:c}=(0,Xt.useSelect)((t=>{const{getCommands:n,getCommandLoaders:r}=t(Sn);return{commands:n(e),loaders:r(e)}}),[e]);return o.length||c.length?(0,a.createElement)(Tt.Group,null,o.map((e=>{var n;return(0,a.createElement)(Tt.Item,{key:e.name,value:null!==(n=e.searchLabel)&&void 0!==n?n:e.label,onSelect:()=>e.callback({close:r}),id:e.name},(0,a.createElement)(Jt.__experimentalHStack,{alignment:"left",className:Vt()("commands-command-menu__item",{"has-icon":e.icon})},e.icon&&(0,a.createElement)(en,{icon:e.icon}),(0,a.createElement)("span",null,(0,a.createElement)(Jt.TextHighlight,{text:e.label,highlight:t}))))})),c.map((e=>(0,a.createElement)(kn,{key:e.name,hook:e.hook,search:t,setLoader:n,close:r})))):null}function Ln({isOpen:e,search:t,setSearch:n}){const r=(0,Yt.useRef)(),o=$t((e=>e.value)),c=(0,Yt.useMemo)((()=>{const e=document.querySelector(`[cmdk-item=""][data-value="${o}"]`);return e?.getAttribute("id")}),[o]);return(0,Yt.useEffect)((()=>{e&&r.current.focus()}),[e]),(0,a.createElement)(Tt.Input,{ref:r,value:t,onValueChange:n,placeholder:xn,"aria-activedescendant":c,icon:t})}function An(){const{registerShortcut:e}=(0,Xt.useDispatch)(Qt.store),[t,n]=(0,Yt.useState)(""),r=(0,Xt.useSelect)((e=>e(Sn).isOpen()),[]),{open:o,close:c}=(0,Xt.useDispatch)(Sn),[u,i]=(0,Yt.useState)({}),l=(0,Yt.useRef)();(0,Yt.useEffect)((()=>{e({name:"core/commands",category:"global",description:(0,Zt.__)("Open the command palette."),keyCombination:{modifier:"primary",character:"k"}})}),[e]),(0,Yt.useEffect)((()=>{l.current?.removeAttribute("aria-labelledby"),l.current?.setAttribute("aria-label",(0,Zt.__)("Command suggestions"))}),[l.current]),(0,Qt.useShortcut)("core/commands",(e=>{e.defaultPrevented||(e.preventDefault(),r?c():o())}),{bindGlobal:!0});const s=(0,Yt.useCallback)(((e,t)=>i((n=>({...n,[e]:t})))),[]),d=()=>{n(""),c()};if(!r)return!1;const f=Object.values(u).some(Boolean);return(0,a.createElement)(Jt.Modal,{className:"commands-command-menu",overlayClassName:"commands-command-menu__overlay",onRequestClose:d,__experimentalHideHeader:!0,contentLabel:(0,Zt.__)("Command palette")},(0,a.createElement)("div",{className:"commands-command-menu__container"},(0,a.createElement)(Tt,{label:xn,onKeyDown:e=>{(e.nativeEvent.isComposing||229===e.keyCode)&&e.preventDefault()}},(0,a.createElement)("div",{className:"commands-command-menu__header"},(0,a.createElement)(en,{icon:nn}),(0,a.createElement)(Ln,{search:t,setSearch:n,isOpen:r})),(0,a.createElement)(Tt.List,{ref:l},t&&!f&&(0,a.createElement)(Tt.Empty,null,(0,Zt.__)("No results found.")),(0,a.createElement)(Rn,{search:t,setLoader:s,close:d,isContextual:!0}),t&&(0,a.createElement)(Rn,{search:t,setLoader:s,close:d})))))}const Dn={};function Nn(e){const{registerCommand:t,unregisterCommand:n}=(0,Xt.useDispatch)(Sn),r=(0,Yt.useRef)(e.callback);(0,Yt.useEffect)((()=>{r.current=e.callback}),[e.callback]),(0,Yt.useEffect)((()=>{if(!e.disabled)return t({name:e.name,context:e.context,label:e.label,searchLabel:e.searchLabel,icon:e.icon,callback:(...e)=>r.current(...e)}),()=>{n(e.name)}}),[e.name,e.label,e.searchLabel,e.icon,e.context,e.disabled,t,n])}function Mn(e){const{registerCommandLoader:t,unregisterCommandLoader:n}=(0,Xt.useDispatch)(Sn);(0,Yt.useEffect)((()=>{if(!e.disabled)return t({name:e.name,hook:e.hook,context:e.context}),()=>{n(e.name)}}),[e.name,e.hook,e.context,e.disabled,t,n])}wn(Dn,{useCommandContext:function(e){const{getContext:t}=(0,Xt.useSelect)(Sn),n=(0,Yt.useRef)(t()),{setContext:r}=Cn((0,Xt.useDispatch)(Sn));(0,Yt.useEffect)((()=>{r(e)}),[e,r]),(0,Yt.useEffect)((()=>{const e=n.current;return()=>r(e)}),[r])}})})(),(window.wp=window.wp||{}).commands=r})(); \ No newline at end of file
+(()=>{var e={6007:e=>{var t=1,n=.9,r=.3,o=.1,a=0,c=.999,u=.9999,i=.99,l=/[\\\/\-_+.# \t"@\[\(\{&]/,s=/[\\\/\-_+.# \t"@\[\(\{&]/g;function d(e,f,m,p,v,h){if(h===f.length)return v===e.length?t:i;for(var g,E,b,y=p.charAt(h),w=m.indexOf(y,v),C=0;w>=0;)(g=d(e,f,m,p,w+1,h+1))>C&&(w===v?g*=t:l.test(e.charAt(w-1))?(g*=n,(b=e.slice(v,w-1).match(s))&&v>0&&(g*=Math.pow(c,b.length))):l.test(e.slice(v,w-1))?(g*=a,v>0&&(g*=Math.pow(c,w-v))):(g*=r,v>0&&(g*=Math.pow(c,w-v))),e.charAt(w)!==f.charAt(h)&&(g*=u)),g<o&&m.charAt(w-1)===p.charAt(h+1)&&m.charAt(w-1)!==p.charAt(h)&&(E=d(e,f,m,p,w+1,h+2))*o>g&&(g=E*o),g>C&&(C=g),w=m.indexOf(y,w+1);return C}e.exports=function(e,t){return d(e,t,e.toLowerCase(),t.toLowerCase(),0,0)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};(()=>{"use strict";n.r(r),n.d(r,{CommandMenu:()=>On,privateApis:()=>kn,store:()=>yn,useCommand:()=>Ln,useCommandLoader:()=>An});var e={};n.r(e),n.d(e,{close:()=>dn,open:()=>sn,registerCommand:()=>an,registerCommandLoader:()=>un,unregisterCommand:()=>cn,unregisterCommandLoader:()=>ln});var t={};n.r(t),n.d(t,{getCommandLoaders:()=>mn,getCommands:()=>fn,getContext:()=>vn,isOpen:()=>pn});var o={};function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}n.r(o),n.d(o,{setContext:()=>hn});const c=window.React;function u(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function i(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function l(...e){return(0,c.useCallback)(i(...e),e)}function s(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,c.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}const d=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?c.useLayoutEffect:()=>{},f=c["useId".toString()]||(()=>{});let m=0;function p(e){const[t,n]=c.useState(f());return d((()=>{e||n((e=>null!=e?e:String(m++)))}),[e]),e||(t?`radix-${t}`:"")}function v(e){const t=(0,c.useRef)(e);return(0,c.useEffect)((()=>{t.current=e})),(0,c.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function h({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=(0,c.useState)(e),[r]=n,o=(0,c.useRef)(r),a=v(t);return(0,c.useEffect)((()=>{o.current!==r&&(a(r),o.current=r)}),[r,o,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,u=a?e:r,i=v(n);return[u,(0,c.useCallback)((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&i(n)}else o(t)}),[a,e,o,i])]}const g=window.ReactDOM;var E=n.n(g);const b=(0,c.forwardRef)(((e,t)=>{const{children:n,...r}=e,o=c.Children.toArray(n),u=o.find(C);if(u){const e=u.props.children,n=o.map((t=>t===u?c.Children.count(e)>1?c.Children.only(null):(0,c.isValidElement)(e)?e.props.children:null:t));return(0,c.createElement)(y,a({},r,{ref:t}),(0,c.isValidElement)(e)?(0,c.cloneElement)(e,void 0,n):null)}return(0,c.createElement)(y,a({},r,{ref:t}),n)}));b.displayName="Slot";const y=(0,c.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,c.isValidElement)(n)?(0,c.cloneElement)(n,{...S(r,n.props),ref:i(t,n.ref)}):c.Children.count(n)>1?c.Children.only(null):null}));y.displayName="SlotClone";const w=({children:e})=>(0,c.createElement)(c.Fragment,null,e);function C(e){return(0,c.isValidElement)(e)&&e.type===w}function S(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?n[r]=(...e)=>{null==a||a(...e),null==o||o(...e)}:"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const x=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,c.forwardRef)(((e,n)=>{const{asChild:r,...o}=e,u=r?b:t;return(0,c.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,c.createElement)(u,a({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});const R="dismissableLayer.update",O="dismissableLayer.pointerDownOutside",k="dismissableLayer.focusOutside";let L;const A=(0,c.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),N=(0,c.forwardRef)(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:d,...f}=e,m=(0,c.useContext)(A),[p,h]=(0,c.useState)(null),[,g]=(0,c.useState)({}),E=l(t,(e=>h(e))),b=Array.from(m.layers),[y]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),w=b.indexOf(y),C=p?b.indexOf(p):-1,S=m.layersWithOutsidePointerEventsDisabled.size>0,N=C>=w,_=function(e){const t=v(e),n=(0,c.useRef)(!1),r=(0,c.useRef)((()=>{}));return(0,c.useEffect)((()=>{const e=e=>{if(e.target&&!n.current){const o={originalEvent:e};function a(){D(O,t,o,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",r.current),r.current=a,document.addEventListener("click",r.current,{once:!0})):a()}n.current=!1},o=window.setTimeout((()=>{document.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),document.removeEventListener("pointerdown",e),document.removeEventListener("click",r.current)}}),[t]),{onPointerDownCapture:()=>n.current=!0}}((e=>{const t=e.target,n=[...m.branches].some((e=>e.contains(t)));N&&!n&&(null==o||o(e),null==s||s(e),e.defaultPrevented||null==d||d())})),P=function(e){const t=v(e),n=(0,c.useRef)(!1);return(0,c.useEffect)((()=>{const e=e=>{if(e.target&&!n.current){D(k,t,{originalEvent:e},{discrete:!1})}};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)}),[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}((e=>{const t=e.target;[...m.branches].some((e=>e.contains(t)))||(null==i||i(e),null==s||s(e),e.defaultPrevented||null==d||d())}));return function(e){const t=v(e);(0,c.useEffect)((()=>{const e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[t])}((e=>{C===m.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))})),(0,c.useEffect)((()=>{if(p)return n&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(L=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(p)),m.layers.add(p),M(),()=>{n&&1===m.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=L)}}),[p,n,m]),(0,c.useEffect)((()=>()=>{p&&(m.layers.delete(p),m.layersWithOutsidePointerEventsDisabled.delete(p),M())}),[p,m]),(0,c.useEffect)((()=>{const e=()=>g({});return document.addEventListener(R,e),()=>document.removeEventListener(R,e)}),[]),(0,c.createElement)(x.div,a({},f,{ref:E,style:{pointerEvents:S?N?"auto":"none":void 0,...e.style},onFocusCapture:u(e.onFocusCapture,P.onFocusCapture),onBlurCapture:u(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:u(e.onPointerDownCapture,_.onPointerDownCapture)}))}));function M(){const e=new CustomEvent(R);document.dispatchEvent(e)}function D(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&(0,g.flushSync)((()=>e.dispatchEvent(t)))}(o,a):o.dispatchEvent(a)}const _="focusScope.autoFocusOnMount",P="focusScope.autoFocusOnUnmount",I={bubbles:!1,cancelable:!0},T=(0,c.forwardRef)(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...i}=e,[s,d]=(0,c.useState)(null),f=v(o),m=v(u),p=(0,c.useRef)(null),h=l(t,(e=>d(e))),g=(0,c.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,c.useEffect)((()=>{if(r){function e(e){if(g.paused||!s)return;const t=e.target;s.contains(t)?p.current=t:U(p.current,{select:!0})}function t(e){!g.paused&&s&&(s.contains(e.relatedTarget)||U(p.current,{select:!0}))}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,s,g.paused]),(0,c.useEffect)((()=>{if(s){B.add(g);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(_,I);s.addEventListener(_,f),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(U(r,{select:t}),document.activeElement!==n)return}((e=j(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&U(s))}return()=>{s.removeEventListener(_,f),setTimeout((()=>{const e=new CustomEvent(P,I);s.addEventListener(P,m),s.dispatchEvent(e),e.defaultPrevented||U(null!=t?t:document.body,{select:!0}),s.removeEventListener(P,m),B.remove(g)}),0)}}var e}),[s,f,m,g]);const E=(0,c.useCallback)((e=>{if(!n&&!r)return;if(g.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=function(e){const t=j(e),n=F(t,e),r=F(t.reverse(),e);return[n,r]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&U(a,{select:!0})):(e.preventDefault(),n&&U(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,g.paused]);return(0,c.createElement)(x.div,a({tabIndex:-1},i,{ref:h,onKeyDown:E}))}));function j(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function F(e,t){for(const n of e)if(!W(n,{upTo:t}))return n}function W(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function U(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const B=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=K(e,t),e.unshift(t)},remove(t){var n;e=K(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function K(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const $=(0,c.forwardRef)(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?E().createPortal((0,c.createElement)(x.div,a({},o,{ref:t})),r):null}));const z=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,c.useState)(),r=(0,c.useRef)({}),o=(0,c.useRef)(e),a=(0,c.useRef)("none"),u=e?"mounted":"unmounted",[i,l]=function(e,t){return(0,c.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,c.useEffect)((()=>{const e=q(r.current);a.current="mounted"===i?e:"none"}),[i]),d((()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,c=q(t);if(e)l("MOUNT");else if("none"===c||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==c?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),d((()=>{if(t){const e=e=>{const n=q(r.current).includes(e.animationName);e.target===t&&n&&(0,g.flushSync)((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=q(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:(0,c.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):c.Children.only(n),a=l(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,c.cloneElement)(o,{ref:a}):null};function q(e){return(null==e?void 0:e.animationName)||"none"}z.displayName="Presence";let G=0;function H(){(0,c.useEffect)((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:V()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:V()),G++,()=>{1===G&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),G--}}),[])}function V(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var X=function(){return X=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},X.apply(this,arguments)};function Y(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function Z(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var J="right-scroll-bar-position",Q="width-before-scroll-bar";function ee(e,t){return n=t||null,r=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},(o=(0,c.useState)((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade;var n,r,o}function te(e){return e}function ne(e,t){void 0===t&&(t=te);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},c=function(){return Promise.resolve().then(a)};c(),n={push:function(e){t.push(e),c()},filter:function(e){return t=t.filter(e),n}}}};return o}var re=function(e){void 0===e&&(e={});var t=ne(null);return t.options=X({async:!0,ssr:!1},e),t}(),oe=function(){},ae=c.forwardRef((function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:oe,onWheelCapture:oe,onTouchMoveCapture:oe}),o=r[0],a=r[1],u=e.forwardProps,i=e.children,l=e.className,s=e.removeScrollBar,d=e.enabled,f=e.shards,m=e.sideCar,p=e.noIsolation,v=e.inert,h=e.allowPinchZoom,g=e.as,E=void 0===g?"div":g,b=Y(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=m,w=ee([n,t]),C=X(X({},b),o);return c.createElement(c.Fragment,null,d&&c.createElement(y,{sideCar:re,removeScrollBar:s,shards:f,noIsolation:p,inert:v,setCallbacks:a,allowPinchZoom:!!h,lockRef:n}),u?c.cloneElement(c.Children.only(i),X(X({},C),{ref:w})):c.createElement(E,X({},C,{className:l,ref:w}),i))}));ae.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ae.classNames={fullWidth:Q,zeroRight:J};var ce,ue=function(e){var t=e.sideCar,n=Y(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,X({},n))};ue.isSideCarExport=!0;function ie(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ce||n.nc;return t&&e.setAttribute("nonce",t),e}var le=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=ie())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},se=function(){var e,t=(e=le(),function(t,n){c.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},de={left:0,top:0,right:0,gap:0},fe=function(e){return parseInt(e||"",10)||0},me=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return de;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[fe(n),fe(r),fe(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},pe=se(),ve=function(e,t,n,r){var o=e.left,a=e.top,c=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(c,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(J," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(Q," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(J," .").concat(J," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Q," .").concat(Q," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},he=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,a=c.useMemo((function(){return me(o)}),[o]);return c.createElement(pe,{styles:ve(a,!t,o,n?"":"!important")})},ge=!1;if("undefined"!=typeof window)try{var Ee=Object.defineProperty({},"passive",{get:function(){return ge=!0,!0}});window.addEventListener("test",Ee,Ee),window.removeEventListener("test",Ee,Ee)}catch(e){ge=!1}var be=!!ge&&{passive:!1},ye=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),we(e,n)){var r=Ce(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},we=function(e,t){return"v"===e?function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)}(t):function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)}(t)},Ce=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Se=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xe=function(e){return[e.deltaX,e.deltaY]},Re=function(e){return e&&"current"in e?e.current:e},Oe=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},ke=0,Le=[];const Ae=(Ne=function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(ke++)[0],a=c.useState((function(){return se()}))[0],u=c.useRef(e);c.useEffect((function(){u.current=e}),[e]),c.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=Z([e.lockRef.current],(e.shards||[]).map(Re),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var i=c.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!u.current.allowPinchZoom;var o,a=Se(e),c=n.current,i="deltaX"in e?e.deltaX:c[0]-a[0],l="deltaY"in e?e.deltaY:c[1]-a[1],s=e.target,d=Math.abs(i)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=ye(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=ye(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(i||l)&&(r.current=o),!o)return!0;var m=r.current||o;return function(e,t,n,r,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),c=a*r,u=n.target,i=t.contains(u),l=!1,s=c>0,d=0,f=0;do{var m=Ce(e,u),p=m[0],v=m[1]-m[2]-a*p;(p||v)&&we(e,u)&&(d+=v,f+=p),u=u.parentNode}while(!i&&u!==document.body||i&&(t.contains(u)||t===u));return(s&&(o&&0===d||!o&&c>d)||!s&&(o&&0===f||!o&&-c>f))&&(l=!0),l}(m,t,e,"h"===m?i:l,!0)}),[]),l=c.useCallback((function(e){var n=e;if(Le.length&&Le[Le.length-1]===a){var r="deltaY"in n?xe(n):Se(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.preventDefault();else if(!o){var c=(u.current.shards||[]).map(Re).filter(Boolean).filter((function(e){return e.contains(n.target)}));(c.length>0?i(n,c[0]):!u.current.noIsolation)&&n.preventDefault()}}}),[]),s=c.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),d=c.useCallback((function(e){n.current=Se(e),r.current=void 0}),[]),f=c.useCallback((function(t){s(t.type,xe(t),t.target,i(t,e.lockRef.current))}),[]),m=c.useCallback((function(t){s(t.type,Se(t),t.target,i(t,e.lockRef.current))}),[]);c.useEffect((function(){return Le.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",l,be),document.addEventListener("touchmove",l,be),document.addEventListener("touchstart",d,be),function(){Le=Le.filter((function(e){return e!==a})),document.removeEventListener("wheel",l,be),document.removeEventListener("touchmove",l,be),document.removeEventListener("touchstart",d,be)}}),[]);var p=e.removeScrollBar,v=e.inert;return c.createElement(c.Fragment,null,v?c.createElement(a,{styles:Oe(o)}):null,p?c.createElement(he,{gapMode:"margin"}):null)},re.useMedium(Ne),ue);var Ne,Me=c.forwardRef((function(e,t){return c.createElement(ae,X({},e,{ref:t,sideCar:Ae}))}));Me.classNames=ae.classNames;const De=Me;var _e=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Pe=new WeakMap,Ie=new WeakMap,Te={},je=0,Fe=function(e){return e&&(e.host||Fe(e.parentNode))},We=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Fe(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Te[n]||(Te[n]=new WeakMap);var a=Te[n],c=[],u=new Set,i=new Set(o),l=function(e){e&&!u.has(e)&&(u.add(e),l(e.parentNode))};o.forEach(l);var s=function(e){e&&!i.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(u.has(e))s(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,i=(Pe.get(e)||0)+1,l=(a.get(e)||0)+1;Pe.set(e,i),a.set(e,l),c.push(e),1===i&&o&&Ie.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return s(t),u.clear(),je++,function(){c.forEach((function(e){var t=Pe.get(e)-1,o=a.get(e)-1;Pe.set(e,t),a.set(e,o),t||(Ie.has(e)||e.removeAttribute(r),Ie.delete(e)),o||e.removeAttribute(n)})),--je||(Pe=new WeakMap,Pe=new WeakMap,Ie=new WeakMap,Te={})}},Ue=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||_e(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),We(r,o,n,"aria-hidden")):function(){return null}};const Be="Dialog",[Ke,$e]=function(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,c.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,c.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=(0,c.createContext)(r),a=n.length;function u(t){const{scope:n,children:r,...u}=t,i=(null==n?void 0:n[e][a])||o,l=(0,c.useMemo)((()=>u),Object.values(u));return(0,c.createElement)(i.Provider,{value:l},r)}return n=[...n,r],u.displayName=t+"Provider",[u,function(n,u){const i=(null==u?void 0:u[e][a])||o,l=(0,c.useContext)(i);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},s(r,...t)]}(Be),[ze,qe]=Ke(Be),Ge=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:u=!0}=e,i=(0,c.useRef)(null),l=(0,c.useRef)(null),[s=!1,d]=h({prop:r,defaultProp:o,onChange:a});return(0,c.createElement)(ze,{scope:t,triggerRef:i,contentRef:l,contentId:p(),titleId:p(),descriptionId:p(),open:s,onOpenChange:d,onOpenToggle:(0,c.useCallback)((()=>d((e=>!e))),[d]),modal:u},n)},He="DialogPortal",[Ve,Xe]=Ke(He,{forceMount:void 0}),Ye=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=qe(He,t);return(0,c.createElement)(Ve,{scope:t,forceMount:n},c.Children.map(r,(e=>(0,c.createElement)(z,{present:n||a.open},(0,c.createElement)($,{asChild:!0,container:o},e)))))},Ze="DialogOverlay",Je=(0,c.forwardRef)(((e,t)=>{const n=Xe(Ze,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,u=qe(Ze,e.__scopeDialog);return u.modal?(0,c.createElement)(z,{present:r||u.open},(0,c.createElement)(Qe,a({},o,{ref:t}))):null})),Qe=(0,c.forwardRef)(((e,t)=>{const{__scopeDialog:n,...r}=e,o=qe(Ze,n);return(0,c.createElement)(De,{as:b,allowPinchZoom:!0,shards:[o.contentRef]},(0,c.createElement)(x.div,a({"data-state":ct(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),et="DialogContent",tt=(0,c.forwardRef)(((e,t)=>{const n=Xe(et,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,u=qe(et,e.__scopeDialog);return(0,c.createElement)(z,{present:r||u.open},u.modal?(0,c.createElement)(nt,a({},o,{ref:t})):(0,c.createElement)(rt,a({},o,{ref:t})))})),nt=(0,c.forwardRef)(((e,t)=>{const n=qe(et,e.__scopeDialog),r=(0,c.useRef)(null),o=l(t,n.contentRef,r);return(0,c.useEffect)((()=>{const e=r.current;if(e)return Ue(e)}),[]),(0,c.createElement)(ot,a({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:u(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:u(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:u(e.onFocusOutside,(e=>e.preventDefault()))}))})),rt=(0,c.forwardRef)(((e,t)=>{const n=qe(et,e.__scopeDialog),r=(0,c.useRef)(!1);return(0,c.createElement)(ot,a({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,a;(null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented)||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());r.current=!1},onInteractOutside:t=>{var o,a;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0);const c=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(c))&&t.preventDefault()}}))})),ot=(0,c.forwardRef)(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:u,...i}=e,s=qe(et,n),d=l(t,(0,c.useRef)(null));return H(),(0,c.createElement)(c.Fragment,null,(0,c.createElement)(T,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:u},(0,c.createElement)(N,a({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":ct(s.open)},i,{ref:d,onDismiss:()=>s.onOpenChange(!1)}))),!1)})),at="DialogTitle";function ct(e){return e?"open":"closed"}const ut="DialogTitleWarning",[it,lt]=function(e,t){const n=(0,c.createContext)(t);function r(e){const{children:t,...r}=e,o=(0,c.useMemo)((()=>r),Object.values(r));return(0,c.createElement)(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=(0,c.useContext)(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(ut,{contentName:et,titleName:at,docsSlug:"dialog"}),st=Ge,dt=Ye,ft=Je,mt=tt;var pt=n(6007),vt='[cmdk-group=""]',ht='[cmdk-group-items=""]',gt='[cmdk-item=""]',Et=`${gt}:not([aria-disabled="true"])`,bt="cmdk-item-select",yt="data-value",wt=(e,t)=>pt(e,t),Ct=c.createContext(void 0),St=()=>c.useContext(Ct),xt=c.createContext(void 0),Rt=()=>c.useContext(xt),Ot=c.createContext(void 0),kt=c.forwardRef(((e,t)=>{let n=c.useRef(null),r=Bt((()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}}))),o=Bt((()=>new Set)),a=Bt((()=>new Map)),u=Bt((()=>new Map)),i=Bt((()=>new Set)),l=Wt(e),{label:s,children:d,value:f,onValueChange:m,filter:p,shouldFilter:v,...h}=e,g=c.useId(),E=c.useId(),b=c.useId(),y=qt();Ut((()=>{if(void 0!==f){let e=f.trim().toLowerCase();r.current.value=e,y(6,k),w.emit()}}),[f]);let w=c.useMemo((()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var o,a,c;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)O(),x(),y(1,R);else if("value"===e){if(void 0!==(null==(o=l.current)?void 0:o.value))return void(null==(c=(a=l.current).onValueChange)||c.call(a,t));n||y(5,k)}w.emit()}},emit:()=>{i.current.forEach((e=>e()))}})),[]),C=c.useMemo((()=>({value:(e,t)=>{t!==u.current.get(e)&&(u.current.set(e,t),r.current.filtered.items.set(e,S(t)),y(2,(()=>{x(),w.emit()})))},item:(e,t)=>(o.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),y(3,(()=>{O(),x(),r.current.value||R(),w.emit()})),()=>{u.current.delete(e),o.current.delete(e),r.current.filtered.items.delete(e),y(4,(()=>{O(),R(),w.emit()}))}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{u.current.delete(e),a.current.delete(e)}),filter:()=>l.current.shouldFilter,label:s||e["aria-label"],listId:g,inputId:b,labelId:E})),[]);function S(e){var t;let n=(null==(t=l.current)?void 0:t.filter)??wt;return e?n(e,r.current.search):0}function x(){if(!n.current||!r.current.search||!1===l.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach((n=>{let r=a.current.get(n),o=0;r.forEach((t=>{let n=e.get(t);o=Math.max(n,o)})),t.push([n,o])}));let o=n.current.querySelector('[cmdk-list-sizer=""]');A().sort(((t,n)=>{let r=t.getAttribute(yt),o=n.getAttribute(yt);return(e.get(o)??0)-(e.get(r)??0)})).forEach((e=>{let t=e.closest(ht);t?t.appendChild(e.parentElement===t?e:e.closest(`${ht} > *`)):o.appendChild(e.parentElement===o?e:e.closest(`${ht} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=n.current.querySelector(`${vt}[${yt}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)}))}function R(){let e=A().find((e=>!e.ariaDisabled)),t=null==e?void 0:e.getAttribute(yt);w.setState("value",t||void 0)}function O(){if(!r.current.search||!1===l.current.shouldFilter)return void(r.current.filtered.count=o.current.size);r.current.filtered.groups=new Set;let e=0;for(let t of o.current){let n=S(u.current.get(t));r.current.filtered.items.set(t,n),n>0&&e++}for(let[e,t]of a.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=e}function k(){var e,t,n;let r=L();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(vt))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function L(){return n.current.querySelector(`${gt}[aria-selected="true"]`)}function A(){return Array.from(n.current.querySelectorAll(Et))}function N(e){let t=A()[e];t&&w.setState("value",t.getAttribute(yt))}function M(e){var t;let n=L(),r=A(),o=r.findIndex((e=>e===n)),a=r[o+e];null!=(t=l.current)&&t.loop&&(a=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),a&&w.setState("value",a.getAttribute(yt))}function D(e){let t,n=L(),r=null==n?void 0:n.closest(vt);for(;r&&!t;)r=e>0?jt(r,vt):Ft(r,vt),t=null==r?void 0:r.querySelector(Et);t?w.setState("value",t.getAttribute(yt)):M(e)}let _=()=>N(A().length-1),P=e=>{e.preventDefault(),e.metaKey?_():e.altKey?D(1):M(1)},I=e=>{e.preventDefault(),e.metaKey?N(0):e.altKey?D(-1):M(-1)};return c.createElement("div",{ref:Kt([n,t]),...h,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=h.onKeyDown)||t.call(h,e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&P(e);break;case"ArrowDown":P(e);break;case"p":case"k":e.ctrlKey&&I(e);break;case"ArrowUp":I(e);break;case"Home":e.preventDefault(),N(0);break;case"End":e.preventDefault(),_();break;case"Enter":{e.preventDefault();let t=L();if(t){let e=new Event(bt);t.dispatchEvent(e)}}}}},c.createElement("label",{"cmdk-label":"",htmlFor:C.inputId,id:C.labelId,style:Gt},s),c.createElement(xt.Provider,{value:w},c.createElement(Ct.Provider,{value:C},d)))})),Lt=c.forwardRef(((e,t)=>{let n=c.useId(),r=c.useRef(null),o=c.useContext(Ot),a=St(),u=Wt(e);Ut((()=>a.item(n,o)),[]);let i=zt(n,r,[e.value,e.children,r]),l=Rt(),s=$t((e=>e.value&&e.value===i.current)),d=$t((e=>!1===a.filter()||(!e.search||e.filtered.items.get(n)>0)));function f(){var e,t;null==(t=(e=u.current).onSelect)||t.call(e,i.current)}if(c.useEffect((()=>{let t=r.current;if(t&&!e.disabled)return t.addEventListener(bt,f),()=>t.removeEventListener(bt,f)}),[d,e.onSelect,e.disabled]),!d)return null;let{disabled:m,value:p,onSelect:v,...h}=e;return c.createElement("div",{ref:Kt([r,t]),...h,"cmdk-item":"",role:"option","aria-disabled":m||void 0,"aria-selected":s||void 0,"data-selected":s||void 0,onPointerMove:m?void 0:function(){l.setState("value",i.current,!0)},onClick:m?void 0:f},e.children)})),At=c.forwardRef(((e,t)=>{let{heading:n,children:r,...o}=e,a=c.useId(),u=c.useRef(null),i=c.useRef(null),l=c.useId(),s=St(),d=$t((e=>!1===s.filter()||(!e.search||e.filtered.groups.has(a))));Ut((()=>s.group(a)),[]),zt(a,u,[e.value,e.heading,i]);let f=c.createElement(Ot.Provider,{value:a},r);return c.createElement("div",{ref:Kt([u,t]),...o,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&c.createElement("div",{ref:i,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),c.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},f))})),Nt=c.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,o=c.useRef(null),a=$t((e=>!e.search));return n||a?c.createElement("div",{ref:Kt([o,t]),...r,"cmdk-separator":"",role:"separator"}):null})),Mt=c.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=Rt(),u=$t((e=>e.search)),i=St();return c.useEffect((()=>{null!=e.value&&a.setState("search",e.value)}),[e.value]),c.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":i.listId,"aria-labelledby":i.labelId,id:i.inputId,type:"text",value:o?e.value:u,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})})),Dt=c.forwardRef(((e,t)=>{let{children:n,...r}=e,o=c.useRef(null),a=c.useRef(null),u=St();return c.useEffect((()=>{if(a.current&&o.current){let e,t=a.current,n=o.current,r=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.getBoundingClientRect().height;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}}),[]),c.createElement("div",{ref:Kt([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:u.listId,"aria-labelledby":u.inputId},c.createElement("div",{ref:a,"cmdk-list-sizer":""},n))})),_t=c.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,container:o,...a}=e;return c.createElement(st,{open:n,onOpenChange:r},c.createElement(dt,{container:o},c.createElement(ft,{"cmdk-overlay":""}),c.createElement(mt,{"aria-label":e.label,"cmdk-dialog":""},c.createElement(kt,{ref:t,...a}))))})),Pt=c.forwardRef(((e,t)=>{let n=c.useRef(!0),r=$t((e=>0===e.filtered.count));return c.useEffect((()=>{n.current=!1}),[]),n.current||!r?null:c.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})})),It=c.forwardRef(((e,t)=>{let{progress:n,children:r,...o}=e;return c.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},c.createElement("div",{"aria-hidden":!0},r))})),Tt=Object.assign(kt,{List:Dt,Item:Lt,Input:Mt,Group:At,Separator:Nt,Dialog:_t,Empty:Pt,Loading:It});function jt(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Ft(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Wt(e){let t=c.useRef(e);return Ut((()=>{t.current=e})),t}var Ut=typeof window>"u"?c.useEffect:c.useLayoutEffect;function Bt(e){let t=c.useRef();return void 0===t.current&&(t.current=e()),t}function Kt(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function $t(e){let t=Rt(),n=()=>e(t.snapshot());return c.useSyncExternalStore(t.subscribe,n,n)}function zt(e,t,n){let r=c.useRef(),o=St();return Ut((()=>{var a;let c=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim().toLowerCase();if("object"==typeof t&&"current"in t&&t.current)return null==(e=t.current.textContent)?void 0:e.trim().toLowerCase()}})();o.value(e,c),null==(a=t.current)||a.setAttribute(yt,c),r.current=c})),r}var qt=()=>{let[e,t]=c.useState(),n=Bt((()=>new Map));return Ut((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}},Gt={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Ht(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ht(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Vt=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ht(e))&&(r&&(r+=" "),r+=t);return r},Xt=window.wp.data,Yt=window.wp.element,Zt=window.wp.i18n,Jt=window.wp.components,Qt=window.wp.keyboardShortcuts;const en=(0,Yt.forwardRef)((function({icon:e,size:t=24,...n},r){return(0,Yt.cloneElement)(e,{width:t,height:t,...n,ref:r})})),tn=window.wp.primitives,nn=window.ReactJSXRuntime,rn=(0,nn.jsx)(tn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,nn.jsx)(tn.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})});const on=(0,Xt.combineReducers)({commands:function(e={},t){switch(t.type){case"REGISTER_COMMAND":return{...e,[t.name]:{name:t.name,label:t.label,searchLabel:t.searchLabel,context:t.context,callback:t.callback,icon:t.icon}};case"UNREGISTER_COMMAND":{const{[t.name]:n,...r}=e;return r}}return e},commandLoaders:function(e={},t){switch(t.type){case"REGISTER_COMMAND_LOADER":return{...e,[t.name]:{name:t.name,context:t.context,hook:t.hook}};case"UNREGISTER_COMMAND_LOADER":{const{[t.name]:n,...r}=e;return r}}return e},isOpen:function(e=!1,t){switch(t.type){case"OPEN":return!0;case"CLOSE":return!1}return e},context:function(e="root",t){return"SET_CONTEXT"===t.type?t.context:e}});function an(e){return{type:"REGISTER_COMMAND",...e}}function cn(e){return{type:"UNREGISTER_COMMAND",name:e}}function un(e){return{type:"REGISTER_COMMAND_LOADER",...e}}function ln(e){return{type:"UNREGISTER_COMMAND_LOADER",name:e}}function sn(){return{type:"OPEN"}}function dn(){return{type:"CLOSE"}}const fn=(0,Xt.createSelector)(((e,t=!1)=>Object.values(e.commands).filter((n=>{const r=n.context&&n.context===e.context;return t?r:!r}))),(e=>[e.commands,e.context])),mn=(0,Xt.createSelector)(((e,t=!1)=>Object.values(e.commandLoaders).filter((n=>{const r=n.context&&n.context===e.context;return t?r:!r}))),(e=>[e.commandLoaders,e.context]));function pn(e){return e.isOpen}function vn(e){return e.context}function hn(e){return{type:"SET_CONTEXT",context:e}}const gn=window.wp.privateApis,{lock:En,unlock:bn}=(0,gn.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/commands"),yn=(0,Xt.createReduxStore)("core/commands",{reducer:on,actions:e,selectors:t});(0,Xt.register)(yn),bn(yn).registerPrivateActions(o);const wn=(0,Zt.__)("Search commands and settings");function Cn({name:e,search:t,hook:n,setLoader:r,close:o}){var a;const{isLoading:c,commands:u=[]}=null!==(a=n({search:t}))&&void 0!==a?a:{};return(0,Yt.useEffect)((()=>{r(e,c)}),[r,e,c]),u.length?(0,nn.jsx)(nn.Fragment,{children:u.map((e=>{var n;return(0,nn.jsx)(Tt.Item,{value:null!==(n=e.searchLabel)&&void 0!==n?n:e.label,onSelect:()=>e.callback({close:o}),id:e.name,children:(0,nn.jsxs)(Jt.__experimentalHStack,{alignment:"left",className:Vt("commands-command-menu__item",{"has-icon":e.icon}),children:[e.icon&&(0,nn.jsx)(en,{icon:e.icon}),(0,nn.jsx)("span",{children:(0,nn.jsx)(Jt.TextHighlight,{text:e.label,highlight:t})})]})},e.name)}))}):null}function Sn({hook:e,search:t,setLoader:n,close:r}){const o=(0,Yt.useRef)(e),[a,c]=(0,Yt.useState)(0);return(0,Yt.useEffect)((()=>{o.current!==e&&(o.current=e,c((e=>e+1)))}),[e]),(0,nn.jsx)(Cn,{hook:o.current,search:t,setLoader:n,close:r},a)}function xn({isContextual:e,search:t,setLoader:n,close:r}){const{commands:o,loaders:a}=(0,Xt.useSelect)((t=>{const{getCommands:n,getCommandLoaders:r}=t(yn);return{commands:n(e),loaders:r(e)}}),[e]);return o.length||a.length?(0,nn.jsxs)(Tt.Group,{children:[o.map((e=>{var n;return(0,nn.jsx)(Tt.Item,{value:null!==(n=e.searchLabel)&&void 0!==n?n:e.label,onSelect:()=>e.callback({close:r}),id:e.name,children:(0,nn.jsxs)(Jt.__experimentalHStack,{alignment:"left",className:Vt("commands-command-menu__item",{"has-icon":e.icon}),children:[e.icon&&(0,nn.jsx)(en,{icon:e.icon}),(0,nn.jsx)("span",{children:(0,nn.jsx)(Jt.TextHighlight,{text:e.label,highlight:t})})]})},e.name)})),a.map((e=>(0,nn.jsx)(Sn,{hook:e.hook,search:t,setLoader:n,close:r},e.name)))]}):null}function Rn({isOpen:e,search:t,setSearch:n}){const r=(0,Yt.useRef)(),o=$t((e=>e.value)),a=(0,Yt.useMemo)((()=>{const e=document.querySelector(`[cmdk-item=""][data-value="${o}"]`);return e?.getAttribute("id")}),[o]);return(0,Yt.useEffect)((()=>{e&&r.current.focus()}),[e]),(0,nn.jsx)(Tt.Input,{ref:r,value:t,onValueChange:n,placeholder:wn,"aria-activedescendant":a,icon:t})}function On(){const{registerShortcut:e}=(0,Xt.useDispatch)(Qt.store),[t,n]=(0,Yt.useState)(""),r=(0,Xt.useSelect)((e=>e(yn).isOpen()),[]),{open:o,close:a}=(0,Xt.useDispatch)(yn),[c,u]=(0,Yt.useState)({}),i=(0,Yt.useRef)();(0,Yt.useEffect)((()=>{e({name:"core/commands",category:"global",description:(0,Zt.__)("Open the command palette."),keyCombination:{modifier:"primary",character:"k"}})}),[e]),(0,Yt.useEffect)((()=>{i.current?.removeAttribute("aria-labelledby"),i.current?.setAttribute("aria-label",(0,Zt.__)("Command suggestions"))}),[i.current]),(0,Qt.useShortcut)("core/commands",(e=>{e.defaultPrevented||(e.preventDefault(),r?a():o())}),{bindGlobal:!0});const l=(0,Yt.useCallback)(((e,t)=>u((n=>({...n,[e]:t})))),[]),s=()=>{n(""),a()};if(!r)return!1;const d=Object.values(c).some(Boolean);return(0,nn.jsx)(Jt.Modal,{className:"commands-command-menu",overlayClassName:"commands-command-menu__overlay",onRequestClose:s,__experimentalHideHeader:!0,contentLabel:(0,Zt.__)("Command palette"),children:(0,nn.jsx)("div",{className:"commands-command-menu__container",children:(0,nn.jsxs)(Tt,{label:wn,onKeyDown:e=>{(e.nativeEvent.isComposing||229===e.keyCode)&&e.preventDefault()},children:[(0,nn.jsxs)("div",{className:"commands-command-menu__header",children:[(0,nn.jsx)(Rn,{search:t,setSearch:n,isOpen:r}),(0,nn.jsx)(en,{icon:rn})]}),(0,nn.jsxs)(Tt.List,{ref:i,children:[t&&!d&&(0,nn.jsx)(Tt.Empty,{children:(0,Zt.__)("No results found.")}),(0,nn.jsx)(xn,{search:t,setLoader:l,close:s,isContextual:!0}),t&&(0,nn.jsx)(xn,{search:t,setLoader:l,close:s})]})]})})})}const kn={};function Ln(e){const{registerCommand:t,unregisterCommand:n}=(0,Xt.useDispatch)(yn),r=(0,Yt.useRef)(e.callback);(0,Yt.useEffect)((()=>{r.current=e.callback}),[e.callback]),(0,Yt.useEffect)((()=>{if(!e.disabled)return t({name:e.name,context:e.context,label:e.label,searchLabel:e.searchLabel,icon:e.icon,callback:(...e)=>r.current(...e)}),()=>{n(e.name)}}),[e.name,e.label,e.searchLabel,e.icon,e.context,e.disabled,t,n])}function An(e){const{registerCommandLoader:t,unregisterCommandLoader:n}=(0,Xt.useDispatch)(yn);(0,Yt.useEffect)((()=>{if(!e.disabled)return t({name:e.name,hook:e.hook,context:e.context}),()=>{n(e.name)}}),[e.name,e.hook,e.context,e.disabled,t,n])}En(kn,{useCommandContext:function(e){const{getContext:t}=(0,Xt.useSelect)(yn),n=(0,Yt.useRef)(t()),{setContext:r}=bn((0,Xt.useDispatch)(yn));(0,Yt.useEffect)((()=>{r(e)}),[e,r]),(0,Yt.useEffect)((()=>{const e=n.current;return()=>r(e)}),[r])}})})(),(window.wp=window.wp||{}).commands=r})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/components.js b/wp-includes/js/dist/components.js
index 70bfb3d..13b98ab 100644
--- a/wp-includes/js/dist/components.js
+++ b/wp-includes/js/dist/components.js
@@ -1,72 +1,6 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
-/***/ 5755:
-/***/ ((module, exports) => {
-
-var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/
-/* global define */
-
-(function () {
- 'use strict';
-
- var hasOwn = {}.hasOwnProperty;
- var nativeCodeString = '[native code]';
-
- 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)) {
- if (arg.length) {
- var inner = classNames.apply(null, arg);
- if (inner) {
- classes.push(inner);
- }
- }
- } else if (argType === 'object') {
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
- classes.push(arg.toString());
- continue;
- }
-
- 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 {}
-}());
-
-
-/***/ }),
-
/***/ 66:
/***/ ((module) => {
@@ -208,598 +142,6 @@ module.exports = deepmerge_1;
/***/ }),
-/***/ 1637:
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-"use strict";
-
-
-var util = __webpack_require__(3062);
-
-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;
-
-/***/ }),
-
-/***/ 5428:
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-"use strict";
-
-
-module.exports = __webpack_require__(1637);
-
-/***/ }),
-
-/***/ 3062:
-/***/ ((module) => {
-
-"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);
-
-/***/ }),
-
/***/ 2287:
/***/ ((__unused_webpack_module, exports) => {
@@ -1783,38 +1125,6 @@ module.exports = ReactPropTypesSecret;
/***/ }),
-/***/ 3394:
-/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-
-"use strict";
-/**
- * @license React
- * react-jsx-runtime.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-var f=__webpack_require__(1609),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
-function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;
-
-
-/***/ }),
-
-/***/ 4922:
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-"use strict";
-
-
-if (true) {
- module.exports = __webpack_require__(3394);
-} else {}
-
-
-/***/ }),
-
/***/ 9681:
/***/ ((module) => {
@@ -2525,6 +1835,7 @@ __webpack_require__.d(__webpack_exports__, {
Placeholder: () => (/* reexport */ placeholder),
Polygon: () => (/* reexport */ external_wp_primitives_namespaceObject.Polygon),
Popover: () => (/* reexport */ popover),
+ ProgressBar: () => (/* reexport */ progress_bar),
QueryControls: () => (/* reexport */ query_controls),
RadioControl: () => (/* reexport */ radio_control),
RangeControl: () => (/* reexport */ range_control),
@@ -2546,7 +1857,7 @@ __webpack_require__.d(__webpack_exports__, {
TextControl: () => (/* reexport */ text_control),
TextHighlight: () => (/* reexport */ text_highlight),
TextareaControl: () => (/* reexport */ textarea_control),
- TimePicker: () => (/* reexport */ time),
+ TimePicker: () => (/* reexport */ date_time_time),
Tip: () => (/* reexport */ build_module_tip),
ToggleControl: () => (/* reexport */ toggle_control),
Toolbar: () => (/* reexport */ toolbar),
@@ -2668,17 +1979,16 @@ __webpack_require__.d(toggle_group_control_option_base_styles_namespaceObject, {
;// CONCATENATED MODULE: external ["wp","primitives"]
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
-// EXTERNAL MODULE: external "React"
-var external_React_ = __webpack_require__(1609);
-var external_React_namespaceObject = /*#__PURE__*/__webpack_require__.t(external_React_, 2);
-var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_);
-// EXTERNAL MODULE: ./node_modules/classnames/index.js
-var classnames = __webpack_require__(5755);
-var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
+;// CONCATENATED MODULE: ./node_modules/clsx/dist/clsx.mjs
+function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
;// CONCATENATED MODULE: external ["wp","i18n"]
const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
;// CONCATENATED MODULE: external ["wp","compose"]
const external_wp_compose_namespaceObject = window["wp"]["compose"];
+// EXTERNAL MODULE: external "React"
+var external_React_ = __webpack_require__(1609);
+var external_React_namespaceObject = /*#__PURE__*/__webpack_require__.t(external_React_, 2);
+var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_);
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/SHA3WOPI.js
"use client";
@@ -3538,8 +2848,8 @@ function resetMouseMoving() {
-// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
-var jsx_runtime = __webpack_require__(4922);
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/3ORBWXWF.js
"use client";
@@ -3577,7 +2887,7 @@ function _3ORBWXWF_createElement(Type, props) {
const mergedRef = useMergeRefs(props.ref, getRefProperty(render));
if (false) {}
if (As && typeof As !== "string") {
- element = /* @__PURE__ */ (0,jsx_runtime.jsx)(As, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, rest), { render }));
+ element = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(As, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, rest), { render }));
} else if (external_React_.isValidElement(render)) {
const renderProps = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, render.props), { ref: mergedRef });
element = external_React_.cloneElement(render, mergeProps(rest, renderProps));
@@ -3588,9 +2898,9 @@ function _3ORBWXWF_createElement(Type, props) {
const _b = rest, { children } = _b, otherProps = __objRest(_b, ["children"]);
element = props.children(otherProps);
} else if (As) {
- element = /* @__PURE__ */ (0,jsx_runtime.jsx)(As, _4R3V3JGP_spreadValues({}, rest));
+ element = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(As, _4R3V3JGP_spreadValues({}, rest));
} else {
- element = /* @__PURE__ */ (0,jsx_runtime.jsx)(Type, _4R3V3JGP_spreadValues({}, rest));
+ element = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Type, _4R3V3JGP_spreadValues({}, rest));
}
if (wrapElement) {
return wrapElement(element);
@@ -3630,14 +2940,14 @@ function createStoreContext(providers = [], scopedProviders = []) {
};
const ContextProvider = (props) => {
return providers.reduceRight(
- (children, Provider) => /* @__PURE__ */ (0,jsx_runtime.jsx)(Provider, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { children })),
- /* @__PURE__ */ (0,jsx_runtime.jsx)(context.Provider, _4R3V3JGP_spreadValues({}, props))
+ (children, Provider) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Provider, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { children })),
+ /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(context.Provider, _4R3V3JGP_spreadValues({}, props))
);
};
const ScopedContextProvider = (props) => {
- return /* @__PURE__ */ (0,jsx_runtime.jsx)(ContextProvider, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { children: scopedProviders.reduceRight(
- (children, Provider) => /* @__PURE__ */ (0,jsx_runtime.jsx)(Provider, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { children })),
- /* @__PURE__ */ (0,jsx_runtime.jsx)(scopedContext.Provider, _4R3V3JGP_spreadValues({}, props))
+ return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(ContextProvider, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { children: scopedProviders.reduceRight(
+ (children, Provider) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Provider, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { children })),
+ /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(scopedContext.Provider, _4R3V3JGP_spreadValues({}, props))
) }));
};
return {
@@ -4691,7 +4001,7 @@ function init(store, ...args) {
return;
return getInternal(store, "init")(...args);
}
-function EAHJFCU4_subscribe(store, ...args) {
+function subscribe(store, ...args) {
if (!store)
return;
return getInternal(store, "subscribe")(...args);
@@ -4786,7 +4096,7 @@ function useStoreState(store, keyOrSelector = identity) {
(callback) => {
if (!store)
return noopSubscribe();
- return EAHJFCU4_subscribe(store, null, callback);
+ return subscribe(store, null, callback);
},
[store]
);
@@ -5141,7 +4451,7 @@ var useCompositeItem = createHook(
);
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(CompositeItemContext.Provider, { value: providerValue, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeItemContext.Provider, { value: providerValue, children: element }),
[providerValue]
);
const isActiveItem = useStoreState(
@@ -5266,7 +4576,7 @@ function createDisclosureStore(props = {}) {
);
setup(
disclosure,
- () => EAHJFCU4_subscribe(disclosure, ["open"], () => {
+ () => subscribe(disclosure, ["open"], () => {
if (!disclosure.getState().animated)
return;
disclosure.setState("animating", true);
@@ -6318,7 +5628,7 @@ var useDisclosureContent = createHook(
}, [store, animated, contentElement, open, transition]);
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(DialogScopedContextProvider, { value: store, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DialogScopedContextProvider, { value: store, children: element }),
[store]
);
const hidden = isHidden(mounted, props.hidden, alwaysVisible);
@@ -6352,7 +5662,7 @@ var DisclosureContent = createComponent(
);
if (mounted === false)
return null;
- return /* @__PURE__ */ (0,jsx_runtime.jsx)(DisclosureContentImpl, _4R3V3JGP_spreadValues({}, props));
+ return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DisclosureContentImpl, _4R3V3JGP_spreadValues({}, props));
}
);
if (false) {}
@@ -6420,10 +5730,10 @@ function DialogBackdrop({
if (!backdrop)
return null;
if ((0,external_React_.isValidElement)(backdrop)) {
- return /* @__PURE__ */ (0,jsx_runtime.jsx)(Role, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { render: backdrop }));
+ return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Role, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { render: backdrop }));
}
const Component = typeof backdrop !== "boolean" ? backdrop : "div";
- return /* @__PURE__ */ (0,jsx_runtime.jsx)(Role, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { render: /* @__PURE__ */ (0,jsx_runtime.jsx)(Component, {}) }));
+ return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Role, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { render: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {}) }));
}
@@ -6668,7 +5978,7 @@ function useNestedDialogs(store) {
}, [store, context]);
const providerValue = (0,external_React_.useMemo)(() => ({ store, add }), [store, add]);
const wrapElement = (0,external_React_.useCallback)(
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(NestedDialogsContext.Provider, { value: providerValue, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(NestedDialogsContext.Provider, { value: providerValue, children: element }),
[providerValue]
);
return { wrapElement, nestedDialogs: dialogs };
@@ -6887,7 +6197,7 @@ var useFocusableContainer = createHook(
var _b = _a, { autoFocusOnShow = true } = _b, props = __objRest(_b, ["autoFocusOnShow"]);
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(FocusableContext.Provider, { value: autoFocusOnShow, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(FocusableContext.Provider, { value: autoFocusOnShow, children: element }),
[autoFocusOnShow]
);
return props;
@@ -6925,7 +6235,7 @@ function HeadingLevel({ level, children }) {
Math.min(level || contextLevel + 1, 6),
1
);
- return /* @__PURE__ */ (0,jsx_runtime.jsx)(HeadingContext.Provider, { value: nextLevel, children });
+ return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(HeadingContext.Provider, { value: nextLevel, children });
}
@@ -7137,11 +6447,11 @@ var usePortal = createHook(
element = // While the portal node is not in the DOM, we need to pass the
// current context to the portal context, otherwise it's going to
// reset to the body element on nested portals.
- /* @__PURE__ */ (0,jsx_runtime.jsx)(PortalContext.Provider, { value: portalNode || context, children: element });
+ /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(PortalContext.Provider, { value: portalNode || context, children: element });
if (!portal)
return element;
if (!portalNode) {
- return /* @__PURE__ */ (0,jsx_runtime.jsx)(
+ return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
"span",
{
ref: refProp,
@@ -7151,8 +6461,8 @@ var usePortal = createHook(
}
);
}
- element = /* @__PURE__ */ (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { children: [
- preserveTabOrder && portalNode && /* @__PURE__ */ (0,jsx_runtime.jsx)(
+ element = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
+ preserveTabOrder && portalNode && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
FocusTrap,
{
ref: innerBeforeRef,
@@ -7167,7 +6477,7 @@ var usePortal = createHook(
}
),
element,
- preserveTabOrder && portalNode && /* @__PURE__ */ (0,jsx_runtime.jsx)(
+ preserveTabOrder && portalNode && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
FocusTrap,
{
ref: innerAfterRef,
@@ -7185,8 +6495,8 @@ var usePortal = createHook(
if (portalNode) {
element = (0,external_ReactDOM_namespaceObject.createPortal)(element, portalNode);
}
- let preserveTabOrderElement = /* @__PURE__ */ (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { children: [
- preserveTabOrder && portalNode && /* @__PURE__ */ (0,jsx_runtime.jsx)(
+ let preserveTabOrderElement = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
+ preserveTabOrder && portalNode && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
FocusTrap,
{
ref: outerBeforeRef,
@@ -7203,8 +6513,8 @@ var usePortal = createHook(
),
preserveTabOrder && // We're using position: fixed here so that the browser doesn't
// add margin to the element when setting gap on a parent element.
- /* @__PURE__ */ (0,jsx_runtime.jsx)("span", { "aria-owns": portalNode == null ? void 0 : portalNode.id, style: { position: "fixed" } }),
- preserveTabOrder && portalNode && /* @__PURE__ */ (0,jsx_runtime.jsx)(
+ /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("span", { "aria-owns": portalNode == null ? void 0 : portalNode.id, style: { position: "fixed" } }),
+ preserveTabOrder && portalNode && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
FocusTrap,
{
ref: outerAfterRef,
@@ -7233,7 +6543,7 @@ var usePortal = createHook(
anchorPortalNode
);
}
- return /* @__PURE__ */ (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { children: [
+ return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
preserveTabOrderElement,
element
] });
@@ -7644,7 +6954,7 @@ var useDialog = createHook(
}, [store, domReady, mounted, hideOnEscapeProp]);
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(HeadingLevel, { level: modal ? 1 : void 0, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(HeadingLevel, { level: modal ? 1 : void 0, children: element }),
[modal]
);
const hiddenProp = props.hidden;
@@ -7654,8 +6964,8 @@ var useDialog = createHook(
(element) => {
if (!backdrop)
return element;
- return /* @__PURE__ */ (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { children: [
- /* @__PURE__ */ (0,jsx_runtime.jsx)(
+ return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
+ /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
DialogBackdrop,
{
store,
@@ -7674,7 +6984,7 @@ var useDialog = createHook(
const [descriptionId, setDescriptionId] = (0,external_React_.useState)();
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(DialogScopedContextProvider, { value: store, children: /* @__PURE__ */ (0,jsx_runtime.jsx)(DialogHeadingContext.Provider, { value: setHeadingId, children: /* @__PURE__ */ (0,jsx_runtime.jsx)(DialogDescriptionContext.Provider, { value: setDescriptionId, children: element }) }) }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DialogScopedContextProvider, { value: store, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DialogHeadingContext.Provider, { value: setHeadingId, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DialogDescriptionContext.Provider, { value: setDescriptionId, children: element }) }) }),
[store]
);
props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
@@ -7706,7 +7016,7 @@ function createDialogComponent(Component, useProviderContext = useDialogProvider
);
if (!mounted)
return null;
- return /* @__PURE__ */ (0,jsx_runtime.jsx)(Component, _4R3V3JGP_spreadValues({}, props));
+ return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, _4R3V3JGP_spreadValues({}, props));
});
}
var Dialog = createDialogComponent(
@@ -10098,7 +9408,7 @@ var usePopover = createHook(
const position = fixed ? "fixed" : "absolute";
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
"div",
_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
role: "presentation"
@@ -10118,7 +9428,7 @@ var usePopover = createHook(
);
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(PopoverScopedContextProvider, { value: store, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(PopoverScopedContextProvider, { value: store, children: element }),
[store]
);
props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
@@ -10394,7 +9704,7 @@ var useHovercard = createHook(
);
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(HovercardScopedContextProvider, { value: store, children: /* @__PURE__ */ (0,jsx_runtime.jsx)(NestedHovercardContext.Provider, { value: registerNestedHovercard, children: element }) }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(HovercardScopedContextProvider, { value: store, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(NestedHovercardContext.Provider, { value: registerNestedHovercard, children: element }) }),
[store, registerNestedHovercard]
);
props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
@@ -10509,7 +9819,7 @@ var useTooltip = createHook(
);
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(TooltipScopedContextProvider, { value: store, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(TooltipScopedContextProvider, { value: store, children: element }),
[store]
);
const role = store.useState(
@@ -10596,10 +9906,11 @@ function Shortcut(props) {
displayText = shortcut.display;
ariaLabel = shortcut.ariaLabel;
}
- return (0,external_React_.createElement)("span", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
className: className,
- "aria-label": ariaLabel
- }, displayText);
+ "aria-label": ariaLabel,
+ children: displayText
+ });
}
/* harmony default export */ const build_module_shortcut = (Shortcut);
@@ -10854,7 +10165,6 @@ const getReferenceElement = ({
const computePopoverPosition = c => c === null || Number.isNaN(c) ? undefined : Math.round(c);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tooltip/index.js
-
/**
* External dependencies
*/
@@ -10874,6 +10184,8 @@ const computePopoverPosition = c => c === null || Number.isNaN(c) ? undefined :
+
+
const TooltipInternalContext = (0,external_wp_element_namespaceObject.createContext)({
isNestedInTooltip: false
});
@@ -10922,39 +10234,38 @@ function UnforwardedTooltip(props, ref) {
});
}
computedPlacement = computedPlacement || 'bottom';
-
- // Removing the `Ariakit` namespace from the hook name allows ESLint to
- // properly identify the hook, and apply the correct linting rules.
- const useAriakitTooltipStore = useTooltipStore;
- const tooltipStore = useAriakitTooltipStore({
+ const tooltipStore = useTooltipStore({
placement: computedPlacement,
showTimeout: delay
});
if (isNestedInTooltip) {
- return isOnlyChild ? (0,external_React_.createElement)(Role, {
+ return isOnlyChild ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Role, {
...restProps,
render: children
}) : children;
}
- return (0,external_React_.createElement)(TooltipInternalContext.Provider, {
- value: CONTEXT_VALUE
- }, (0,external_React_.createElement)(TooltipAnchor, {
- onClick: hideOnClick ? tooltipStore.hide : undefined,
- store: tooltipStore,
- render: isOnlyChild ? children : undefined,
- ref: ref
- }, isOnlyChild ? undefined : children), isOnlyChild && (text || shortcut) && (0,external_React_.createElement)(Tooltip, {
- ...restProps,
- className: "components-tooltip",
- unmountOnHide: true,
- gutter: 4,
- id: describedById,
- overflowPadding: 0.5,
- store: tooltipStore
- }, text, shortcut && (0,external_React_.createElement)(build_module_shortcut, {
- className: text ? 'components-tooltip__shortcut' : '',
- shortcut: shortcut
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(TooltipInternalContext.Provider, {
+ value: CONTEXT_VALUE,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TooltipAnchor, {
+ onClick: hideOnClick ? tooltipStore.hide : undefined,
+ store: tooltipStore,
+ render: isOnlyChild ? children : undefined,
+ ref: ref,
+ children: isOnlyChild ? undefined : children
+ }), isOnlyChild && (text || shortcut) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tooltip, {
+ ...restProps,
+ className: "components-tooltip",
+ unmountOnHide: true,
+ gutter: 4,
+ id: describedById,
+ overflowPadding: 0.5,
+ store: tooltipStore,
+ children: [text, shortcut && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_shortcut, {
+ className: text ? 'components-tooltip__shortcut' : '',
+ shortcut: shortcut
+ })]
+ })]
+ });
}
const tooltip_Tooltip = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTooltip);
/* harmony default export */ const tooltip = (tooltip_Tooltip);
@@ -11036,7 +10347,6 @@ function use_update_effect_useUpdateEffect(effect, deps) {
/* harmony default export */ const use_update_effect = (use_update_effect_useUpdateEffect);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/context/context-system-provider.js
-
/**
* External dependencies
*/
@@ -11054,6 +10364,7 @@ function use_update_effect_useUpdateEffect(effect, deps) {
* Internal dependencies
*/
+
const ComponentsContext = (0,external_wp_element_namespaceObject.createContext)( /** @type {Record<string, any>} */{});
const useComponentsContext = () => (0,external_wp_element_namespaceObject.useContext)(ComponentsContext);
@@ -11126,9 +10437,10 @@ const BaseContextSystemProvider = ({
const contextValue = useContextSystemBridge({
value
});
- return (0,external_React_.createElement)(ComponentsContext.Provider, {
- value: contextValue
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ComponentsContext.Provider, {
+ value: contextValue,
+ children: children
+ });
};
const ContextSystemProvider = (0,external_wp_element_namespaceObject.memo)(BaseContextSystemProvider);
@@ -13971,7 +13283,7 @@ var createEmotion = function createEmotion(options) {
args[_key4] = arguments[_key4];
}
- return merge(cache.registered, css, emotion_css_create_instance_esm_classnames(args));
+ return merge(cache.registered, css, classnames(args));
};
return {
@@ -13997,7 +13309,7 @@ var createEmotion = function createEmotion(options) {
};
};
-var emotion_css_create_instance_esm_classnames = function classnames(args) {
+var classnames = function classnames(args) {
var cls = '';
for (var i = 0; i < args.length; i++) {
@@ -14275,7 +13587,9 @@ function _contextConnect(Component, namespace, options) {
* @return The connected namespaces.
*/
function getConnectNamespace(Component) {
- if (!Component) return [];
+ if (!Component) {
+ return [];
+ }
let namespaces = [];
// @ts-ignore internal property
@@ -14299,7 +13613,9 @@ function getConnectNamespace(Component) {
* @param match The namespace to check.
*/
function hasConnectNamespace(Component, match) {
- if (!Component) return false;
+ if (!Component) {
+ return false;
+ }
if (typeof match === 'string') {
return getConnectNamespace(Component).includes(match);
}
@@ -14547,6 +13863,29 @@ var createStyled = function createStyled(tag, options) {
*/
/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Internal dependencies
+ */
+
+const PolymorphicDiv = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
+ target: "e19lxcc00"
+} : 0)( true ? "" : 0);
+function UnforwardedView({
+ as,
+ ...restProps
+}, ref) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PolymorphicDiv, {
+ as: as,
+ ref: ref,
+ ...restProps
+ });
+}
+
+/**
* `View` is a core component that renders everything in the library.
* It is the principle component in the entire library.
*
@@ -14562,15 +13901,12 @@ var createStyled = function createStyled(tag, options) {
* }
* ```
*/
-const View = emotion_styled_base_browser_esm("div", true ? {
- target: "e19lxcc00"
-} : 0)( true ? "" : 0);
-View.selector = '.components-view';
-View.displayName = 'View';
+const View = Object.assign((0,external_wp_element_namespaceObject.forwardRef)(UnforwardedView), {
+ selector: '.components-view'
+});
/* harmony default export */ const component = (View);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/visually-hidden/component.js
-
/**
* External dependencies
*/
@@ -14582,12 +13918,13 @@ View.displayName = 'View';
+
function UnconnectedVisuallyHidden(props, forwardedRef) {
const {
style: styleProp,
...contextProps
} = useContextSystem(props, 'VisuallyHidden');
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
ref: forwardedRef,
...contextProps,
style: {
@@ -14672,7 +14009,9 @@ function normalize(value) {
*/
function getItemId(prefixId, value) {
const normalized = normalize(value);
- if (!normalized) return;
+ if (!normalized) {
+ return;
+ }
const id = normalized.replace(' ', '-');
return `${prefixId}-${id}`;
}
@@ -14698,7 +14037,9 @@ function getItemValue(prefixId, id) {
*/
function getAlignmentIndex(alignment = 'center') {
const normalized = normalize(alignment);
- if (!normalized) return undefined;
+ if (!normalized) {
+ return undefined;
+ }
const index = ALIGNMENTS.indexOf(normalized);
return index > -1 ? index : undefined;
}
@@ -15160,35 +14501,6 @@ const COLORS = Object.freeze({
});
/* harmony default export */ const colors_values = ((/* unused pure expression or super */ null && (COLORS)));
-;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/reduce-motion.js
-/**
- * Allows users to opt-out of animations via OS-level preferences.
- *
- * @param {'transition' | 'animation' | string} [prop='transition'] CSS Property name
- * @return {string} Generated CSS code for the reduced style
- */
-function reduceMotion(prop = 'transition') {
- let style;
- switch (prop) {
- case 'transition':
- style = 'transition-duration: 0ms;';
- break;
- case 'animation':
- style = 'animation-duration: 1ms;';
- break;
- default:
- style = `
- animation-duration: 1ms;
- transition-duration: 0ms;
- `;
- }
- return `
- @media ( prefers-reduced-motion: reduce ) {
- ${style};
- }
- `;
-}
-
;// 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)."; }
@@ -15214,10 +14526,10 @@ const rootSize = ({
}) => {
return /*#__PURE__*/emotion_react_browser_esm_css("grid-template-rows:repeat( 3, calc( ", size, "px / 3 ) );width:", size, "px;" + ( true ? "" : 0), true ? "" : 0);
};
-const Root = emotion_styled_base_browser_esm("div", true ? {
+const Root = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "ecapk1j3"
} : 0)(rootBase, ";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;", rootSize, ";" + ( true ? "" : 0));
-const Row = emotion_styled_base_browser_esm("div", true ? {
+const Row = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "ecapk1j2"
} : 0)( true ? {
name: "1x5gbbj",
@@ -15232,12 +14544,12 @@ const pointActive = ({
return /*#__PURE__*/emotion_react_browser_esm_css("box-shadow:", boxShadow, ";color:", pointColor, ";*:hover>&{color:", pointColorHover, ";}" + ( true ? "" : 0), true ? "" : 0);
};
const pointBase = props => {
- return /*#__PURE__*/emotion_react_browser_esm_css("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;", reduceMotion('transition'), " ", pointActive(props), ";" + ( true ? "" : 0), true ? "" : 0);
+ return /*#__PURE__*/emotion_react_browser_esm_css("background:currentColor;box-sizing:border-box;display:grid;margin:auto;@media not ( prefers-reduced-motion ){transition:all 120ms linear;}", pointActive(props), ";" + ( true ? "" : 0), true ? "" : 0);
};
-const Point = emotion_styled_base_browser_esm("span", true ? {
+const Point = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "ecapk1j1"
} : 0)("height:6px;width:6px;", pointBase, ";" + ( true ? "" : 0));
-const Cell = emotion_styled_base_browser_esm("span", true ? {
+const Cell = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "ecapk1j0"
} : 0)( true ? {
name: "rjf3ub",
@@ -15245,7 +14557,6 @@ const Cell = emotion_styled_base_browser_esm("span", true ? {
} : 0);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/cell.js
-
/**
* Internal dependencies
*/
@@ -15258,6 +14569,8 @@ const Cell = emotion_styled_base_browser_esm("span", true ? {
*/
+
+
function cell_Cell({
id,
isActive = false,
@@ -15265,18 +14578,22 @@ function cell_Cell({
...props
}) {
const tooltipText = ALIGNMENT_LABEL[value];
- return (0,external_React_.createElement)(tooltip, {
- text: tooltipText
- }, (0,external_React_.createElement)(CompositeItem, {
- id: id,
- render: (0,external_React_.createElement)(Cell, {
- ...props,
- role: "gridcell"
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
+ text: tooltipText,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(CompositeItem, {
+ id: id,
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Cell, {
+ ...props,
+ role: "gridcell"
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
+ children: value
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Point, {
+ isActive: isActive,
+ role: "presentation"
+ })]
})
- }, (0,external_React_.createElement)(visually_hidden_component, null, value), (0,external_React_.createElement)(Point, {
- isActive: isActive,
- role: "presentation"
- })));
+ });
}
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/Y6GYTNQ2.js
@@ -16122,7 +15439,7 @@ var useComposite = createHook(
});
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(CompositeContextProvider, { value: store, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeContextProvider, { value: store, children: element }),
[store]
);
const activeDescendant = store.useState((state) => {
@@ -16199,7 +15516,7 @@ var useCompositeRow = createHook(
);
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(CompositeRowContext.Provider, { value: providerValue, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeRowContext.Provider, { value: providerValue, children: element }),
[providerValue]
);
props = _4R3V3JGP_spreadValues({ id }, props);
@@ -16244,13 +15561,13 @@ const rootPointerEvents = ({
pointerEvents: disablePointerEvents ? 'none' : undefined
}, true ? "" : 0, true ? "" : 0);
};
-const Wrapper = emotion_styled_base_browser_esm("div", true ? {
+const Wrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "erowt52"
} : 0)( true ? {
name: "ogl07i",
styles: "box-sizing:border-box;padding:2px"
} : 0);
-const alignment_matrix_control_icon_styles_Root = emotion_styled_base_browser_esm("div", true ? {
+const alignment_matrix_control_icon_styles_Root = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "erowt51"
} : 0)("transform-origin:top left;height:100%;width:100%;", rootBase, ";", alignment_matrix_control_icon_styles_rootSize, ";", rootPointerEvents, ";" + ( true ? "" : 0));
const alignment_matrix_control_icon_styles_pointActive = ({
@@ -16259,13 +15576,12 @@ const alignment_matrix_control_icon_styles_pointActive = ({
const boxShadow = isActive ? `0 0 0 1px currentColor` : null;
return /*#__PURE__*/emotion_react_browser_esm_css("box-shadow:", boxShadow, ";color:currentColor;*:hover>&{color:currentColor;}" + ( true ? "" : 0), true ? "" : 0);
};
-const alignment_matrix_control_icon_styles_Point = emotion_styled_base_browser_esm("span", true ? {
+const alignment_matrix_control_icon_styles_Point = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "erowt50"
} : 0)("height:2px;width:2px;", pointBase, ";", alignment_matrix_control_icon_styles_pointActive, ";" + ( true ? "" : 0));
const alignment_matrix_control_icon_styles_Cell = Cell;
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/icon.js
-
/**
* External dependencies
*/
@@ -16276,6 +15592,7 @@ const alignment_matrix_control_icon_styles_Cell = Cell;
*/
+
const BASE_SIZE = 24;
function AlignmentMatrixControlIcon({
className,
@@ -16287,30 +15604,30 @@ function AlignmentMatrixControlIcon({
}) {
const alignIndex = getAlignmentIndex(value);
const scale = (size / BASE_SIZE).toFixed(2);
- const classes = classnames_default()('component-alignment-matrix-control-icon', className);
+ const classes = dist_clsx('component-alignment-matrix-control-icon', className);
const styles = {
...style,
transform: `scale(${scale})`
};
- return (0,external_React_.createElement)(alignment_matrix_control_icon_styles_Root, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(alignment_matrix_control_icon_styles_Root, {
...props,
className: classes,
disablePointerEvents: disablePointerEvents,
role: "presentation",
- style: styles
- }, ALIGNMENTS.map((align, index) => {
- const isActive = alignIndex === index;
- return (0,external_React_.createElement)(alignment_matrix_control_icon_styles_Cell, {
- key: align
- }, (0,external_React_.createElement)(alignment_matrix_control_icon_styles_Point, {
- isActive: isActive
- }));
- }));
+ style: styles,
+ children: ALIGNMENTS.map((align, index) => {
+ const isActive = alignIndex === index;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(alignment_matrix_control_icon_styles_Cell, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(alignment_matrix_control_icon_styles_Point, {
+ isActive: isActive
+ })
+ }, align);
+ })
+ });
}
/* harmony default export */ const icon = (AlignmentMatrixControlIcon);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/index.js
-
/**
* External dependencies
*/
@@ -16330,6 +15647,7 @@ function AlignmentMatrixControlIcon({
+
/**
*
* AlignmentMatrixControl components enable adjustments to horizontal and vertical alignments for UI.
@@ -16366,37 +15684,39 @@ function AlignmentMatrixControl({
activeId: getItemId(baseId, value),
setActiveId: nextActiveId => {
const nextValue = getItemValue(baseId, nextActiveId);
- if (nextValue) onChange?.(nextValue);
+ if (nextValue) {
+ onChange?.(nextValue);
+ }
},
rtl: (0,external_wp_i18n_namespaceObject.isRTL)()
});
const activeId = compositeStore.useState('activeId');
- const classes = classnames_default()('component-alignment-matrix-control', className);
- return (0,external_React_.createElement)(Composite, {
+ const classes = dist_clsx('component-alignment-matrix-control', className);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Composite, {
store: compositeStore,
- render: (0,external_React_.createElement)(Root, {
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Root, {
...props,
"aria-label": label,
className: classes,
id: baseId,
role: "grid",
size: width
- })
- }, GRID.map((cells, index) => (0,external_React_.createElement)(CompositeRow, {
- render: (0,external_React_.createElement)(Row, {
- role: "row"
}),
- key: index
- }, cells.map(cell => {
- const cellId = getItemId(baseId, cell);
- const isActive = cellId === activeId;
- return (0,external_React_.createElement)(cell_Cell, {
- id: cellId,
- isActive: isActive,
- key: cell,
- value: cell
- });
- }))));
+ children: GRID.map((cells, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeRow, {
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Row, {
+ role: "row"
+ }),
+ children: cells.map(cell => {
+ const cellId = getItemId(baseId, cell);
+ const isActive = cellId === activeId;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(cell_Cell, {
+ id: cellId,
+ isActive: isActive,
+ value: cell
+ }, cell);
+ })
+ }, index))
+ });
}
AlignmentMatrixControl.Icon = icon;
/* harmony default export */ const alignment_matrix_control = (AlignmentMatrixControl);
@@ -16426,7 +15746,7 @@ function getDefaultOrigin(type) {
*/
function getAnimateClassName(options) {
if (options.type === 'loading') {
- return classnames_default()('components-animate__loading');
+ return 'components-animate__loading';
}
const {
type,
@@ -16434,13 +15754,13 @@ function getAnimateClassName(options) {
} = options;
if (type === 'appear') {
const [yAxis, xAxis = 'center'] = origin.split(' ');
- return classnames_default()('components-animate__appear', {
+ return dist_clsx('components-animate__appear', {
['is-from-' + xAxis]: xAxis !== 'center',
['is-from-' + yAxis]: yAxis !== 'middle'
});
}
if (type === 'slide-in') {
- return classnames_default()('components-animate__slide-in', 'is-from-' + origin);
+ return dist_clsx('components-animate__slide-in', 'is-from-' + origin);
}
return undefined;
}
@@ -16527,6 +15847,210 @@ const LazyContext = (0,external_React_.createContext)({ strict: false });
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs
+/**
+ * Convert camelCase to dash-case properties.
+ */
+const camelToDash = (str) => str.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase();
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.mjs
+
+
+const optimizedAppearDataId = "framerAppearId";
+const optimizedAppearDataAttribute = "data-" + camelToDash(optimizedAppearDataId);
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/GlobalConfig.mjs
+const MotionGlobalConfig = {
+ skipAnimations: false,
+ useManualTiming: false,
+};
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/frameloop/render-step.mjs
+class Queue {
+ constructor() {
+ this.order = [];
+ this.scheduled = new Set();
+ }
+ add(process) {
+ if (!this.scheduled.has(process)) {
+ this.scheduled.add(process);
+ this.order.push(process);
+ return true;
+ }
+ }
+ remove(process) {
+ const index = this.order.indexOf(process);
+ if (index !== -1) {
+ this.order.splice(index, 1);
+ this.scheduled.delete(process);
+ }
+ }
+ clear() {
+ this.order.length = 0;
+ this.scheduled.clear();
+ }
+}
+function createRenderStep(runNextFrame) {
+ /**
+ * We create and reuse two queues, one to queue jobs for the current frame
+ * and one for the next. We reuse to avoid triggering GC after x frames.
+ */
+ let thisFrame = new Queue();
+ let nextFrame = new Queue();
+ let numToRun = 0;
+ /**
+ * Track whether we're currently processing jobs in this step. This way
+ * we can decide whether to schedule new jobs for this frame or next.
+ */
+ let isProcessing = false;
+ let flushNextFrame = false;
+ /**
+ * A set of processes which were marked keepAlive when scheduled.
+ */
+ const toKeepAlive = new WeakSet();
+ const step = {
+ /**
+ * Schedule a process to run on the next frame.
+ */
+ schedule: (callback, keepAlive = false, immediate = false) => {
+ const addToCurrentFrame = immediate && isProcessing;
+ const queue = addToCurrentFrame ? thisFrame : nextFrame;
+ if (keepAlive)
+ toKeepAlive.add(callback);
+ if (queue.add(callback) && addToCurrentFrame && isProcessing) {
+ // If we're adding it to the currently running queue, update its measured size
+ numToRun = thisFrame.order.length;
+ }
+ return callback;
+ },
+ /**
+ * Cancel the provided callback from running on the next frame.
+ */
+ cancel: (callback) => {
+ nextFrame.remove(callback);
+ toKeepAlive.delete(callback);
+ },
+ /**
+ * Execute all schedule callbacks.
+ */
+ process: (frameData) => {
+ /**
+ * If we're already processing we've probably been triggered by a flushSync
+ * inside an existing process. Instead of executing, mark flushNextFrame
+ * as true and ensure we flush the following frame at the end of this one.
+ */
+ if (isProcessing) {
+ flushNextFrame = true;
+ return;
+ }
+ isProcessing = true;
+ [thisFrame, nextFrame] = [nextFrame, thisFrame];
+ // Clear the next frame queue
+ nextFrame.clear();
+ // Execute this frame
+ numToRun = thisFrame.order.length;
+ if (numToRun) {
+ for (let i = 0; i < numToRun; i++) {
+ const callback = thisFrame.order[i];
+ if (toKeepAlive.has(callback)) {
+ step.schedule(callback);
+ runNextFrame();
+ }
+ callback(frameData);
+ }
+ }
+ isProcessing = false;
+ if (flushNextFrame) {
+ flushNextFrame = false;
+ step.process(frameData);
+ }
+ },
+ };
+ return step;
+}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/frameloop/batcher.mjs
+
+
+
+const stepsOrder = [
+ "read", // Read
+ "resolveKeyframes", // Write/Read/Write/Read
+ "update", // Compute
+ "preRender", // Compute
+ "render", // Write
+ "postRender", // Compute
+];
+const maxElapsed = 40;
+function createRenderBatcher(scheduleNextBatch, allowKeepAlive) {
+ let runNextFrame = false;
+ let useDefaultElapsed = true;
+ const state = {
+ delta: 0,
+ timestamp: 0,
+ isProcessing: false,
+ };
+ const steps = stepsOrder.reduce((acc, key) => {
+ acc[key] = createRenderStep(() => (runNextFrame = true));
+ return acc;
+ }, {});
+ const processStep = (stepId) => {
+ steps[stepId].process(state);
+ };
+ const processBatch = () => {
+ const timestamp = MotionGlobalConfig.useManualTiming
+ ? state.timestamp
+ : performance.now();
+ runNextFrame = false;
+ state.delta = useDefaultElapsed
+ ? 1000 / 60
+ : Math.max(Math.min(timestamp - state.timestamp, maxElapsed), 1);
+ state.timestamp = timestamp;
+ state.isProcessing = true;
+ stepsOrder.forEach(processStep);
+ state.isProcessing = false;
+ if (runNextFrame && allowKeepAlive) {
+ useDefaultElapsed = false;
+ scheduleNextBatch(processBatch);
+ }
+ };
+ const wake = () => {
+ runNextFrame = true;
+ useDefaultElapsed = true;
+ if (!state.isProcessing) {
+ scheduleNextBatch(processBatch);
+ }
+ };
+ const schedule = stepsOrder.reduce((acc, key) => {
+ const step = steps[key];
+ acc[key] = (process, keepAlive = false, immediate = false) => {
+ if (!runNextFrame)
+ wake();
+ return step.schedule(process, keepAlive, immediate);
+ };
+ return acc;
+ }, {});
+ const cancel = (process) => stepsOrder.forEach((key) => steps[key].cancel(process));
+ return { schedule, cancel, state, steps };
+}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/frameloop/microtask.mjs
+
+
+const { schedule: microtask, cancel: cancelMicrotask } = createRenderBatcher(queueMicrotask, false);
+
+
+
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
@@ -16535,6 +16059,8 @@ const LazyContext = (0,external_React_.createContext)({ strict: false });
+
+
function useVisualElement(Component, visualState, props, createVisualElement) {
const { visualElement: parent } = (0,external_React_.useContext)(MotionContext);
const lazyContext = (0,external_React_.useContext)(LazyContext);
@@ -16565,11 +16091,12 @@ function useVisualElement(Component, visualState, props, createVisualElement) {
* Cache this value as we want to know whether HandoffAppearAnimations
* was present on initial render - it will be deleted after this.
*/
- const canHandoff = (0,external_React_.useRef)(Boolean(window.HandoffAppearAnimations));
+ const wantsHandoff = (0,external_React_.useRef)(Boolean(props[optimizedAppearDataAttribute] &&
+ !window.HandoffComplete));
useIsomorphicLayoutEffect(() => {
if (!visualElement)
return;
- visualElement.render();
+ microtask.render(visualElement.render);
/**
* Ideally this function would always run in a useEffect.
*
@@ -16580,7 +16107,7 @@ function useVisualElement(Component, visualState, props, createVisualElement) {
* So if we detect a situtation where optimised appear animations
* are running, we use useLayoutEffect to trigger animations.
*/
- if (canHandoff.current && visualElement.animationState) {
+ if (wantsHandoff.current && visualElement.animationState) {
visualElement.animationState.animateChanges();
}
});
@@ -16588,16 +16115,14 @@ function useVisualElement(Component, visualState, props, createVisualElement) {
if (!visualElement)
return;
visualElement.updateFeatures();
- if (!canHandoff.current && visualElement.animationState) {
+ if (!wantsHandoff.current && visualElement.animationState) {
visualElement.animationState.animateChanges();
}
- /**
- * Once we've handed off animations we can delete HandoffAppearAnimations
- * so components added after the initial render can animate changes
- * in useEffect vs useLayoutEffect.
- */
- window.HandoffAppearAnimations = undefined;
- canHandoff.current = false;
+ if (wantsHandoff.current) {
+ wantsHandoff.current = false;
+ // This ensures all future calls to animateChanges() will run in useEffect
+ window.HandoffComplete = true;
+ }
});
return visualElement;
}
@@ -16606,7 +16131,8 @@ function useVisualElement(Component, visualState, props, createVisualElement) {
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
function isRefObject(ref) {
- return (typeof ref === "object" &&
+ return (ref &&
+ typeof ref === "object" &&
Object.prototype.hasOwnProperty.call(ref, "current"));
}
@@ -16659,7 +16185,9 @@ function isVariantLabel(v) {
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs
function isAnimationControls(v) {
- return typeof v === "object" && typeof v.start === "function";
+ return (v !== null &&
+ typeof v === "object" &&
+ typeof v.start === "function");
}
@@ -16857,9 +16385,7 @@ function motion_createMotionComponent({ preloadedFeatures, createVisualElement,
* The mount order and hierarchy is specific to ensure our element ref
* is hydrated by the time features fire their effects.
*/
- return (external_React_.createElement(MotionContext.Provider, { value: context },
- MeasureLayout && context.visualElement ? (external_React_.createElement(MeasureLayout, { visualElement: context.visualElement, ...configAndProps })) : null,
- useRender(Component, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, context.visualElement)));
+ return ((0,external_ReactJSXRuntime_namespaceObject.jsxs)(MotionContext.Provider, { value: context, children: [MeasureLayout && context.visualElement ? ((0,external_ReactJSXRuntime_namespaceObject.jsx)(MeasureLayout, { visualElement: context.visualElement, ...configAndProps })) : null, useRender(Component, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, context.visualElement)] }));
}
const ForwardRefComponent = (0,external_React_.forwardRef)(MotionComponent);
ForwardRefComponent[motionComponentSymbol] = Component;
@@ -16982,7 +16508,7 @@ function isSVGComponent(Component) {
/**
* If it contains a capital letter, it's an SVG component
*/
- /[A-Z]/.test(Component)) {
+ /[A-Z]/u.test(Component)) {
return true;
}
return false;
@@ -17096,8 +16622,15 @@ function buildTransform(transform, { enableHardwareAcceleration = true, allowTra
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs
const checkStringStartsWith = (token) => (key) => typeof key === "string" && key.startsWith(token);
const isCSSVariableName = checkStringStartsWith("--");
-const isCSSVariableToken = checkStringStartsWith("var(--");
-const cssVariableRegex = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g;
+const startsAsVariableToken = checkStringStartsWith("var(--");
+const isCSSVariableToken = (value) => {
+ const startsWithToken = startsAsVariableToken(value);
+ if (!startsWithToken)
+ return false;
+ // Ensure any comments are stripped from the value as this can harm performance of the regex.
+ return singleCssVariableRegex.test(value.split("/*")[0].trim());
+};
+const singleCssVariableRegex = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
@@ -17114,7 +16647,13 @@ const getValueAsType = (value, type) => {
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/clamp.mjs
-const clamp_clamp = (min, max, v) => Math.min(Math.max(v, min), max);
+const clamp_clamp = (min, max, v) => {
+ if (v > max)
+ return max;
+ if (v < min)
+ return min;
+ return v;
+};
@@ -17145,9 +16684,9 @@ const scale = {
// If this number is a decimal, make it just five decimal places
// to avoid exponents
const sanitize = (v) => Math.round(v * 100000) / 100000;
-const floatRegex = /(-)?([\d]*\.?[\d])+/g;
-const colorRegex = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi;
-const singleColorRegex = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
+const floatRegex = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
+const colorRegex = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
+const singleColorRegex = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
function isString(v) {
return typeof v === "string";
}
@@ -17251,6 +16790,8 @@ const numberValueTypes = {
originZ: px,
// Misc
zIndex: type_int_int,
+ backgroundPositionX: px,
+ backgroundPositionY: px,
// SVG
fillOpacity: alpha,
strokeOpacity: alpha,
@@ -17374,7 +16915,7 @@ function useStyle(props, visualState, isStatic) {
*/
copyRawValuesOnly(style, styleProp, props);
Object.assign(style, useInitialMotionValues(props, visualState, isStatic));
- return props.transformValues ? props.transformValues(style) : style;
+ return style;
}
function useHTMLProps(props, visualState, isStatic) {
// The `any` isn't ideal but it is the type of createElement props argument
@@ -17421,12 +16962,8 @@ const validMotionProps = new Set([
"variants",
"transition",
"transformTemplate",
- "transformValues",
"custom",
"inherit",
- "onLayoutAnimationStart",
- "onLayoutAnimationComplete",
- "onLayoutMeasure",
"onBeforeLayoutMeasure",
"onAnimationStart",
"onAnimationComplete",
@@ -17443,6 +16980,7 @@ const validMotionProps = new Set([
"onHoverEnd",
"onViewportEnter",
"onViewportLeave",
+ "globalTapTarget",
"ignoreStrict",
"viewport",
]);
@@ -17460,6 +16998,7 @@ function isValidMotionProp(key) {
key.startsWith("layout") ||
key.startsWith("onTap") ||
key.startsWith("onPan") ||
+ key.startsWith("onLayout") ||
validMotionProps.has(key));
}
@@ -17515,8 +17054,10 @@ function filterProps(props, isDom, forwardMotionProps) {
(forwardMotionProps === true && isValidMotionProp(key)) ||
(!isDom && !isValidMotionProp(key)) ||
// If trying to use native HTML drag events, forward drag listeners
- (props["draggable"] && key.startsWith("onDrag"))) {
- filteredProps[key] = props[key];
+ (props["draggable"] &&
+ key.startsWith("onDrag"))) {
+ filteredProps[key] =
+ props[key];
}
}
return filteredProps;
@@ -17688,11 +17229,9 @@ function createUseRender(forwardMotionProps = false) {
: useHTMLProps;
const visualProps = useVisualProps(props, latestValues, isStatic, Component);
const filteredProps = filterProps(props, typeof Component === "string", forwardMotionProps);
- const elementProps = {
- ...filteredProps,
- ...visualProps,
- ref,
- };
+ const elementProps = Component !== external_React_.Fragment
+ ? { ...filteredProps, ...visualProps, ref }
+ : {};
/**
* If component has been handed a motion value as its child,
* memoise its initial value and render that. Subsequent updates
@@ -17710,14 +17249,6 @@ function createUseRender(forwardMotionProps = false) {
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs
-/**
- * Convert camelCase to dash-case properties.
- */
-const camelToDash = (str) => str.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
-
-
-
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/render.mjs
function renderHTML(element, { style, vars }, styleProp, projection) {
Object.assign(element.style, style, projection && projection.getProjectionStyles(styleProp));
@@ -17779,13 +17310,16 @@ function renderSVG(element, renderState, _styleProp, projection) {
-function scrapeMotionValuesFromProps(props, prevProps) {
+function scrapeMotionValuesFromProps(props, prevProps, visualElement) {
+ var _a;
const { style } = props;
const newValues = {};
for (const key in style) {
if (isMotionValue(style[key]) ||
- (prevProps.style && isMotionValue(prevProps.style[key])) ||
- isForcedMotionValue(key, props)) {
+ (prevProps.style &&
+ isMotionValue(prevProps.style[key])) ||
+ isForcedMotionValue(key, props) ||
+ ((_a = visualElement === null || visualElement === void 0 ? void 0 : visualElement.getValue(key)) === null || _a === void 0 ? void 0 : _a.liveStyle) !== undefined) {
newValues[key] = style[key];
}
}
@@ -17799,10 +17333,11 @@ function scrapeMotionValuesFromProps(props, prevProps) {
-function scrape_motion_values_scrapeMotionValuesFromProps(props, prevProps) {
- const newValues = scrapeMotionValuesFromProps(props, prevProps);
+function scrape_motion_values_scrapeMotionValuesFromProps(props, prevProps, visualElement) {
+ const newValues = scrapeMotionValuesFromProps(props, prevProps, visualElement);
for (const key in props) {
- if (isMotionValue(props[key]) || isMotionValue(prevProps[key])) {
+ if (isMotionValue(props[key]) ||
+ isMotionValue(prevProps[key])) {
const targetKey = transformPropOrder.indexOf(key) !== -1
? "attr" + key.charAt(0).toUpperCase() + key.substring(1)
: key;
@@ -17815,12 +17350,21 @@ function scrape_motion_values_scrapeMotionValuesFromProps(props, prevProps) {
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/resolve-variants.mjs
-function resolveVariantFromProps(props, definition, custom, currentValues = {}, currentVelocity = {}) {
+function getValueState(visualElement) {
+ const state = [{}, {}];
+ visualElement === null || visualElement === void 0 ? void 0 : visualElement.values.forEach((value, key) => {
+ state[0][key] = value.get();
+ state[1][key] = value.getVelocity();
+ });
+ return state;
+}
+function resolveVariantFromProps(props, definition, custom, visualElement) {
/**
* If the variant definition is a function, resolve.
*/
if (typeof definition === "function") {
- definition = definition(custom !== undefined ? custom : props.custom, currentValues, currentVelocity);
+ const [current, velocity] = getValueState(visualElement);
+ definition = definition(custom !== undefined ? custom : props.custom, current, velocity);
}
/**
* If the variant definition is a variant label, or
@@ -17835,7 +17379,8 @@ function resolveVariantFromProps(props, definition, custom, currentValues = {},
* If so, resolve. This can only have returned a valid target object.
*/
if (typeof definition === "function") {
- definition = definition(custom !== undefined ? custom : props.custom, currentValues, currentVelocity);
+ const [current, velocity] = getValueState(visualElement);
+ definition = definition(custom !== undefined ? custom : props.custom, current, velocity);
}
return definition;
}
@@ -17988,174 +17533,6 @@ const noop_noop = (any) => any;
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/frameloop/render-step.mjs
-class Queue {
- constructor() {
- this.order = [];
- this.scheduled = new Set();
- }
- add(process) {
- if (!this.scheduled.has(process)) {
- this.scheduled.add(process);
- this.order.push(process);
- return true;
- }
- }
- remove(process) {
- const index = this.order.indexOf(process);
- if (index !== -1) {
- this.order.splice(index, 1);
- this.scheduled.delete(process);
- }
- }
- clear() {
- this.order.length = 0;
- this.scheduled.clear();
- }
-}
-function createRenderStep(runNextFrame) {
- /**
- * We create and reuse two queues, one to queue jobs for the current frame
- * and one for the next. We reuse to avoid triggering GC after x frames.
- */
- let thisFrame = new Queue();
- let nextFrame = new Queue();
- let numToRun = 0;
- /**
- * Track whether we're currently processing jobs in this step. This way
- * we can decide whether to schedule new jobs for this frame or next.
- */
- let isProcessing = false;
- let flushNextFrame = false;
- /**
- * A set of processes which were marked keepAlive when scheduled.
- */
- const toKeepAlive = new WeakSet();
- const step = {
- /**
- * Schedule a process to run on the next frame.
- */
- schedule: (callback, keepAlive = false, immediate = false) => {
- const addToCurrentFrame = immediate && isProcessing;
- const queue = addToCurrentFrame ? thisFrame : nextFrame;
- if (keepAlive)
- toKeepAlive.add(callback);
- if (queue.add(callback) && addToCurrentFrame && isProcessing) {
- // If we're adding it to the currently running queue, update its measured size
- numToRun = thisFrame.order.length;
- }
- return callback;
- },
- /**
- * Cancel the provided callback from running on the next frame.
- */
- cancel: (callback) => {
- nextFrame.remove(callback);
- toKeepAlive.delete(callback);
- },
- /**
- * Execute all schedule callbacks.
- */
- process: (frameData) => {
- /**
- * If we're already processing we've probably been triggered by a flushSync
- * inside an existing process. Instead of executing, mark flushNextFrame
- * as true and ensure we flush the following frame at the end of this one.
- */
- if (isProcessing) {
- flushNextFrame = true;
- return;
- }
- isProcessing = true;
- [thisFrame, nextFrame] = [nextFrame, thisFrame];
- // Clear the next frame queue
- nextFrame.clear();
- // Execute this frame
- numToRun = thisFrame.order.length;
- if (numToRun) {
- for (let i = 0; i < numToRun; i++) {
- const callback = thisFrame.order[i];
- callback(frameData);
- if (toKeepAlive.has(callback)) {
- step.schedule(callback);
- runNextFrame();
- }
- }
- }
- isProcessing = false;
- if (flushNextFrame) {
- flushNextFrame = false;
- step.process(frameData);
- }
- },
- };
- return step;
-}
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/frameloop/batcher.mjs
-
-
-const stepsOrder = [
- "prepare",
- "read",
- "update",
- "preRender",
- "render",
- "postRender",
-];
-const maxElapsed = 40;
-function createRenderBatcher(scheduleNextBatch, allowKeepAlive) {
- let runNextFrame = false;
- let useDefaultElapsed = true;
- const state = {
- delta: 0,
- timestamp: 0,
- isProcessing: false,
- };
- const steps = stepsOrder.reduce((acc, key) => {
- acc[key] = createRenderStep(() => (runNextFrame = true));
- return acc;
- }, {});
- const processStep = (stepId) => steps[stepId].process(state);
- const processBatch = () => {
- const timestamp = performance.now();
- runNextFrame = false;
- state.delta = useDefaultElapsed
- ? 1000 / 60
- : Math.max(Math.min(timestamp - state.timestamp, maxElapsed), 1);
- state.timestamp = timestamp;
- state.isProcessing = true;
- stepsOrder.forEach(processStep);
- state.isProcessing = false;
- if (runNextFrame && allowKeepAlive) {
- useDefaultElapsed = false;
- scheduleNextBatch(processBatch);
- }
- };
- const wake = () => {
- runNextFrame = true;
- useDefaultElapsed = true;
- if (!state.isProcessing) {
- scheduleNextBatch(processBatch);
- }
- };
- const schedule = stepsOrder.reduce((acc, key) => {
- const step = steps[key];
- acc[key] = (process, keepAlive = false, immediate = false) => {
- if (!runNextFrame)
- wake();
- return step.schedule(process, keepAlive, immediate);
- };
- return acc;
- }, {});
- const cancel = (process) => stepsOrder.forEach((key) => steps[key].cancel(process));
- return { schedule, cancel, state, steps };
-}
-
-
-
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/frameloop/frame.mjs
@@ -18275,8 +17652,8 @@ const isPrimaryPointer = (event) => {
function extractEventInfo(event, pointType = "page") {
return {
point: {
- x: event[pointType + "X"],
- y: event[pointType + "Y"],
+ x: event[`${pointType}X`],
+ y: event[`${pointType}Y`],
},
};
}
@@ -18383,17 +17760,18 @@ class Feature {
function addHoverEvent(node, isActive) {
- const eventName = "pointer" + (isActive ? "enter" : "leave");
- const callbackName = "onHover" + (isActive ? "Start" : "End");
+ const eventName = isActive ? "pointerenter" : "pointerleave";
+ const callbackName = isActive ? "onHoverStart" : "onHoverEnd";
const handleEvent = (event, info) => {
- if (event.type === "touch" || isDragActive())
+ if (event.pointerType === "touch" || isDragActive())
return;
const props = node.getProps();
if (node.animationState && props.whileHover) {
node.animationState.setActive("whileHover", isActive);
}
- if (props[callbackName]) {
- frame_frame.update(() => props[callbackName](event, info));
+ const callback = props[callbackName];
+ if (callback) {
+ frame_frame.postRender(() => callback(event, info));
}
};
return addPointerEvent(node.current, eventName, handleEvent, {
@@ -18498,26 +17876,33 @@ class PressGesture extends Feature {
this.removeEndListeners = noop_noop;
this.removeAccessibleListeners = noop_noop;
this.startPointerPress = (startEvent, startInfo) => {
- this.removeEndListeners();
if (this.isPressing)
return;
+ this.removeEndListeners();
const props = this.node.getProps();
const endPointerPress = (endEvent, endInfo) => {
if (!this.checkPressEnd())
return;
- const { onTap, onTapCancel } = this.node.getProps();
- frame_frame.update(() => {
- /**
- * We only count this as a tap gesture if the event.target is the same
- * as, or a child of, this component's element
- */
+ const { onTap, onTapCancel, globalTapTarget } = this.node.getProps();
+ /**
+ * We only count this as a tap gesture if the event.target is the same
+ * as, or a child of, this component's element
+ */
+ const handler = !globalTapTarget &&
!isNodeOrChild(this.node.current, endEvent.target)
- ? onTapCancel && onTapCancel(endEvent, endInfo)
- : onTap && onTap(endEvent, endInfo);
- });
+ ? onTapCancel
+ : onTap;
+ if (handler) {
+ frame_frame.update(() => handler(endEvent, endInfo));
+ }
};
- const removePointerUpListener = addPointerEvent(window, "pointerup", endPointerPress, { passive: !(props.onTap || props["onPointerUp"]) });
- const removePointerCancelListener = addPointerEvent(window, "pointercancel", (cancelEvent, cancelInfo) => this.cancelPress(cancelEvent, cancelInfo), { passive: !(props.onTapCancel || props["onPointerCancel"]) });
+ const removePointerUpListener = addPointerEvent(window, "pointerup", endPointerPress, {
+ passive: !(props.onTap || props["onPointerUp"]),
+ });
+ const removePointerCancelListener = addPointerEvent(window, "pointercancel", (cancelEvent, cancelInfo) => this.cancelPress(cancelEvent, cancelInfo), {
+ passive: !(props.onTapCancel ||
+ props["onPointerCancel"]),
+ });
this.removeEndListeners = pipe(removePointerUpListener, removePointerCancelListener);
this.startPress(startEvent, startInfo);
};
@@ -18531,7 +17916,7 @@ class PressGesture extends Feature {
fireSyntheticPointerEvent("up", (event, info) => {
const { onTap } = this.node.getProps();
if (onTap) {
- frame_frame.update(() => onTap(event, info));
+ frame_frame.postRender(() => onTap(event, info));
}
});
};
@@ -18561,7 +17946,7 @@ class PressGesture extends Feature {
this.node.animationState.setActive("whileTap", true);
}
if (onTapStart) {
- frame_frame.update(() => onTapStart(event, info));
+ frame_frame.postRender(() => onTapStart(event, info));
}
}
checkPressEnd() {
@@ -18578,12 +17963,15 @@ class PressGesture extends Feature {
return;
const { onTapCancel } = this.node.getProps();
if (onTapCancel) {
- frame_frame.update(() => onTapCancel(event, info));
+ frame_frame.postRender(() => onTapCancel(event, info));
}
}
mount() {
const props = this.node.getProps();
- const removePointerListener = addPointerEvent(this.node.current, "pointerdown", this.startPointerPress, { passive: !(props.onTapStart || props["onPointerStart"]) });
+ const removePointerListener = addPointerEvent(props.globalTapTarget ? window : this.node.current, "pointerdown", this.startPointerPress, {
+ passive: !(props.onTapStart ||
+ props["onPointerStart"]),
+ });
const removeFocusListener = addDomEvent(this.node.current, "focus", this.startAccessiblePress);
this.removeStartListeners = pipe(removePointerListener, removeFocusListener);
}
@@ -18763,46 +18151,13 @@ function shallowCompare(next, prev) {
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs
-/**
- * Creates an object containing the latest state of every MotionValue on a VisualElement
- */
-function getCurrent(visualElement) {
- const current = {};
- visualElement.values.forEach((value, key) => (current[key] = value.get()));
- return current;
-}
-/**
- * Creates an object containing the latest velocity of every MotionValue on a VisualElement
- */
-function getVelocity(visualElement) {
- const velocity = {};
- visualElement.values.forEach((value, key) => (velocity[key] = value.getVelocity()));
- return velocity;
-}
function resolveVariant(visualElement, definition, custom) {
const props = visualElement.getProps();
- return resolveVariantFromProps(props, definition, custom !== undefined ? custom : props.custom, getCurrent(visualElement), getVelocity(visualElement));
+ return resolveVariantFromProps(props, definition, custom !== undefined ? custom : props.custom, visualElement);
}
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.mjs
-
-
-const optimizedAppearDataId = "framerAppearId";
-const optimizedAppearDataAttribute = "data-" + camelToDash(optimizedAppearDataId);
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/errors.mjs
-
-
-let warning = noop_noop;
-let errors_invariant = noop_noop;
-if (false) {}
-
-
-
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/time-conversion.mjs
/**
* Converts seconds to milliseconds
@@ -18815,233 +18170,471 @@ const millisecondsToSeconds = (milliseconds) => milliseconds / 1000;
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/use-instant-transition-state.mjs
-const instantAnimationState = {
- current: false,
-};
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs
+const underDampedSpring = {
+ type: "spring",
+ stiffness: 500,
+ damping: 25,
+ restSpeed: 10,
+};
+const criticallyDampedSpring = (target) => ({
+ type: "spring",
+ stiffness: 550,
+ damping: target === 0 ? 2 * Math.sqrt(550) : 30,
+ restSpeed: 10,
+});
+const keyframesTransition = {
+ type: "keyframes",
+ duration: 0.8,
+};
+/**
+ * Default easing curve is a slightly shallower version of
+ * the default browser easing curve.
+ */
+const ease = {
+ type: "keyframes",
+ ease: [0.25, 0.1, 0.35, 1],
+ duration: 0.3,
+};
+const getDefaultTransition = (valueKey, { keyframes }) => {
+ if (keyframes.length > 2) {
+ return keyframesTransition;
+ }
+ else if (transformProps.has(valueKey)) {
+ return valueKey.startsWith("scale")
+ ? criticallyDampedSpring(keyframes[1])
+ : underDampedSpring;
+ }
+ return ease;
+};
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/utils/is-bezier-definition.mjs
-const isBezierDefinition = (easing) => Array.isArray(easing) && typeof easing[0] === "number";
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/transitions.mjs
+/**
+ * Decide whether a transition is defined on a given Transition.
+ * This filters out orchestration options and returns true
+ * if any options are left.
+ */
+function isTransitionDefined({ when, delay: _delay, delayChildren, staggerChildren, staggerDirection, repeat, repeatType, repeatDelay, from, elapsed, ...transition }) {
+ return !!Object.keys(transition).length;
+}
+function getValueTransition(transition, key) {
+ return (transition[key] ||
+ transition["default"] ||
+ transition);
+}
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/waapi/easing.mjs
-function isWaapiSupportedEasing(easing) {
- return Boolean(!easing ||
- (typeof easing === "string" && supportedWaapiEasing[easing]) ||
- isBezierDefinition(easing) ||
- (Array.isArray(easing) && easing.every(isWaapiSupportedEasing)));
-}
-const cubicBezierAsString = ([a, b, c, d]) => `cubic-bezier(${a}, ${b}, ${c}, ${d})`;
-const supportedWaapiEasing = {
- linear: "linear",
- ease: "ease",
- easeIn: "ease-in",
- easeOut: "ease-out",
- easeInOut: "ease-in-out",
- circIn: cubicBezierAsString([0, 0.65, 0.55, 1]),
- circOut: cubicBezierAsString([0.55, 0, 1, 0.45]),
- backIn: cubicBezierAsString([0.31, 0.01, 0.66, -0.59]),
- backOut: cubicBezierAsString([0.33, 1.53, 0.69, 0.99]),
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/use-instant-transition-state.mjs
+const instantAnimationState = {
+ current: false,
};
-function mapEasingToNativeEasing(easing) {
- if (!easing)
- return undefined;
- return isBezierDefinition(easing)
- ? cubicBezierAsString(easing)
- : Array.isArray(easing)
- ? easing.map(mapEasingToNativeEasing)
- : supportedWaapiEasing[easing];
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs
+const isNotNull = (value) => value !== null;
+function getFinalKeyframe(keyframes, { repeat, repeatType = "loop" }, finalKeyframe) {
+ const resolvedKeyframes = keyframes.filter(isNotNull);
+ const index = repeat && repeatType !== "loop" && repeat % 2 === 1
+ ? 0
+ : resolvedKeyframes.length - 1;
+ return !index || finalKeyframe === undefined
+ ? resolvedKeyframes[index]
+ : finalKeyframe;
}
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/waapi/index.mjs
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/frameloop/sync-time.mjs
-function animateStyle(element, valueName, keyframes, { delay = 0, duration, repeat = 0, repeatType = "loop", ease, times, } = {}) {
- const keyframeOptions = { [valueName]: keyframes };
- if (times)
- keyframeOptions.offset = times;
- const easing = mapEasingToNativeEasing(ease);
- /**
- * If this is an easing array, apply to keyframes, not animation as a whole
- */
- if (Array.isArray(easing))
- keyframeOptions.easing = easing;
- return element.animate(keyframeOptions, {
- delay,
- duration,
- easing: !Array.isArray(easing) ? easing : "linear",
- fill: "both",
- iterations: repeat + 1,
- direction: repeatType === "reverse" ? "alternate" : "normal",
- });
+
+let now;
+function clearTime() {
+ now = undefined;
}
+/**
+ * An eventloop-synchronous alternative to performance.now().
+ *
+ * Ensures that time measurements remain consistent within a synchronous context.
+ * Usually calling performance.now() twice within the same synchronous context
+ * will return different values which isn't useful for animations when we're usually
+ * trying to sync animations to the same frame.
+ */
+const time = {
+ now: () => {
+ if (now === undefined) {
+ time.set(frameData.isProcessing || MotionGlobalConfig.useManualTiming
+ ? frameData.timestamp
+ : performance.now());
+ }
+ return now;
+ },
+ set: (newTime) => {
+ now = newTime;
+ queueMicrotask(clearTime);
+ },
+};
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs
-function getFinalKeyframe(keyframes, { repeat, repeatType = "loop" }) {
- const index = repeat && repeatType !== "loop" && repeat % 2 === 1
- ? 0
- : keyframes.length - 1;
- return keyframes[index];
-}
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/is-zero-value-string.mjs
+/**
+ * Check if the value is a zero value string like "0px" or "0%"
+ */
+const isZeroValueString = (v) => /^0[^.\s]+$/u.test(v);
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/cubic-bezier.mjs
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/is-none.mjs
-/*
- Bezier function generator
- This has been modified from Gaëtan Renaudeau's BezierEasing
- https://github.com/gre/bezier-easing/blob/master/src/index.js
- https://github.com/gre/bezier-easing/blob/master/LICENSE
-
- I've removed the newtonRaphsonIterate algo because in benchmarking it
- wasn't noticiably faster than binarySubdivision, indeed removing it
- usually improved times, depending on the curve.
- I also removed the lookup table, as for the added bundle size and loop we're
- only cutting ~4 or so subdivision iterations. I bumped the max iterations up
- to 12 to compensate and this still tended to be faster for no perceivable
- loss in accuracy.
- Usage
- const easeOut = cubicBezier(.17,.67,.83,.67);
- const x = easeOut(0.5); // returns 0.627...
-*/
-// Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.
-const calcBezier = (t, a1, a2) => (((1.0 - 3.0 * a2 + 3.0 * a1) * t + (3.0 * a2 - 6.0 * a1)) * t + 3.0 * a1) *
- t;
-const subdivisionPrecision = 0.0000001;
-const subdivisionMaxIterations = 12;
-function binarySubdivide(x, lowerBound, upperBound, mX1, mX2) {
- let currentX;
- let currentT;
- let i = 0;
- do {
- currentT = lowerBound + (upperBound - lowerBound) / 2.0;
- currentX = calcBezier(currentT, mX1, mX2) - x;
- if (currentX > 0.0) {
- upperBound = currentT;
- }
- else {
- lowerBound = currentT;
- }
- } while (Math.abs(currentX) > subdivisionPrecision &&
- ++i < subdivisionMaxIterations);
- return currentT;
-}
-function cubicBezier(mX1, mY1, mX2, mY2) {
- // If this is a linear gradient, return linear easing
- if (mX1 === mY1 && mX2 === mY2)
- return noop_noop;
- const getTForX = (aX) => binarySubdivide(aX, 0, 1, mX1, mX2);
- // If animation is at start/end, return t without easing
- return (t) => t === 0 || t === 1 ? t : calcBezier(getTForX(t), mY1, mY2);
+function isNone(value) {
+ if (typeof value === "number") {
+ return value === 0;
+ }
+ else if (value !== null) {
+ return value === "none" || value === "0" || isZeroValueString(value);
+ }
+ else {
+ return true;
+ }
}
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/ease.mjs
-
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/errors.mjs
-const easeIn = cubicBezier(0.42, 0, 1, 1);
-const easeOut = cubicBezier(0, 0, 0.58, 1);
-const easeInOut = cubicBezier(0.42, 0, 0.58, 1);
+let warning = noop_noop;
+let errors_invariant = noop_noop;
+if (false) {}
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/utils/is-easing-array.mjs
-const isEasingArray = (ease) => {
- return Array.isArray(ease) && typeof ease[0] !== "number";
-};
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/is-numerical-string.mjs
+/**
+ * Check if value is a numerical string, ie a string that is purely a number eg "100" or "-100.1"
+ */
+const isNumericalString = (v) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(v);
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/modifiers/mirror.mjs
-// Accepts an easing function and returns a new one that outputs mirrored values for
-// the second half of the animation. Turns easeIn into easeInOut.
-const mirrorEasing = (easing) => (p) => p <= 0.5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2;
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/modifiers/reverse.mjs
-// Accepts an easing function and returns a new one that outputs reversed values.
-// Turns easeIn into easeOut.
-const reverseEasing = (easing) => (p) => 1 - easing(1 - p);
+/**
+ * Parse Framer's special CSS variable format into a CSS token and a fallback.
+ *
+ * ```
+ * `var(--foo, #fff)` => [`--foo`, '#fff']
+ * ```
+ *
+ * @param current
+ */
+const splitCSSVariableRegex =
+// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
+/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
+function parseCSSVariable(current) {
+ const match = splitCSSVariableRegex.exec(current);
+ if (!match)
+ return [,];
+ const [, token1, token2, fallback] = match;
+ return [`--${token1 !== null && token1 !== void 0 ? token1 : token2}`, fallback];
+}
+const maxDepth = 4;
+function getVariableValue(current, element, depth = 1) {
+ errors_invariant(depth <= maxDepth, `Max CSS variable fallback depth detected in property "${current}". This may indicate a circular fallback dependency.`);
+ const [token, fallback] = parseCSSVariable(current);
+ // No CSS variable detected
+ if (!token)
+ return;
+ // Attempt to read this CSS variable off the element
+ const resolved = window.getComputedStyle(element).getPropertyValue(token);
+ if (resolved) {
+ const trimmed = resolved.trim();
+ return isNumericalString(trimmed) ? parseFloat(trimmed) : trimmed;
+ }
+ return isCSSVariableToken(fallback)
+ ? getVariableValue(fallback, element, depth + 1)
+ : fallback;
+}
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/circ.mjs
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs
-const circIn = (p) => 1 - Math.sin(Math.acos(p));
-const circOut = reverseEasing(circIn);
-const circInOut = mirrorEasing(circOut);
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/back.mjs
+const positionalKeys = new Set([
+ "width",
+ "height",
+ "top",
+ "left",
+ "right",
+ "bottom",
+ "x",
+ "y",
+ "translateX",
+ "translateY",
+]);
+const isNumOrPxType = (v) => v === number || v === px;
+const getPosFromMatrix = (matrix, pos) => parseFloat(matrix.split(", ")[pos]);
+const getTranslateFromMatrix = (pos2, pos3) => (_bbox, { transform }) => {
+ if (transform === "none" || !transform)
+ return 0;
+ const matrix3d = transform.match(/^matrix3d\((.+)\)$/u);
+ if (matrix3d) {
+ return getPosFromMatrix(matrix3d[1], pos3);
+ }
+ else {
+ const matrix = transform.match(/^matrix\((.+)\)$/u);
+ if (matrix) {
+ return getPosFromMatrix(matrix[1], pos2);
+ }
+ else {
+ return 0;
+ }
+ }
+};
+const transformKeys = new Set(["x", "y", "z"]);
+const nonTranslationalTransformKeys = transformPropOrder.filter((key) => !transformKeys.has(key));
+function removeNonTranslationalTransform(visualElement) {
+ const removedTransforms = [];
+ nonTranslationalTransformKeys.forEach((key) => {
+ const value = visualElement.getValue(key);
+ if (value !== undefined) {
+ removedTransforms.push([key, value.get()]);
+ value.set(key.startsWith("scale") ? 1 : 0);
+ }
+ });
+ return removedTransforms;
+}
+const positionalValues = {
+ // Dimensions
+ width: ({ x }, { paddingLeft = "0", paddingRight = "0" }) => x.max - x.min - parseFloat(paddingLeft) - parseFloat(paddingRight),
+ height: ({ y }, { paddingTop = "0", paddingBottom = "0" }) => y.max - y.min - parseFloat(paddingTop) - parseFloat(paddingBottom),
+ top: (_bbox, { top }) => parseFloat(top),
+ left: (_bbox, { left }) => parseFloat(left),
+ bottom: ({ y }, { top }) => parseFloat(top) + (y.max - y.min),
+ right: ({ x }, { left }) => parseFloat(left) + (x.max - x.min),
+ // Transform
+ x: getTranslateFromMatrix(4, 13),
+ y: getTranslateFromMatrix(5, 14),
+};
+// Alias translate longform names
+positionalValues.translateX = positionalValues.x;
+positionalValues.translateY = positionalValues.y;
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/test.mjs
+/**
+ * Tests a provided value against a ValueType
+ */
+const testValueType = (v) => (type) => type.test(v);
-const backOut = cubicBezier(0.33, 1.53, 0.69, 0.99);
-const backIn = reverseEasing(backOut);
-const backInOut = mirrorEasing(backIn);
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.mjs
+/**
+ * ValueType for "auto"
+ */
+const auto = {
+ test: (v) => v === "auto",
+ parse: (v) => v,
+};
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/anticipate.mjs
-const anticipate = (p) => (p *= 2) < 1 ? 0.5 * backIn(p) : 0.5 * (2 - Math.pow(2, -10 * (p - 1)));
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.mjs
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/utils/map.mjs
+/**
+ * A list of value types commonly used for dimensions
+ */
+const dimensionValueTypes = [number, px, percent, degrees, vw, vh, auto];
+/**
+ * Tests a dimensional value against the list of dimension ValueTypes
+ */
+const findDimensionValueType = (v) => dimensionValueTypes.find(testValueType(v));
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.mjs
-const easingLookup = {
- linear: noop_noop,
- easeIn: easeIn,
- easeInOut: easeInOut,
- easeOut: easeOut,
- circIn: circIn,
- circInOut: circInOut,
- circOut: circOut,
- backIn: backIn,
- backInOut: backInOut,
- backOut: backOut,
- anticipate: anticipate,
-};
-const easingDefinitionToFunction = (definition) => {
- if (Array.isArray(definition)) {
- // If cubic bezier definition, create bezier curve
- errors_invariant(definition.length === 4, `Cubic bezier arrays must contain four numerical values.`);
- const [x1, y1, x2, y2] = definition;
- return cubicBezier(x1, y1, x2, y2);
+const toResolve = new Set();
+let isScheduled = false;
+let anyNeedsMeasurement = false;
+function measureAllKeyframes() {
+ if (anyNeedsMeasurement) {
+ const resolversToMeasure = Array.from(toResolve).filter((resolver) => resolver.needsMeasurement);
+ const elementsToMeasure = new Set(resolversToMeasure.map((resolver) => resolver.element));
+ const transformsToRestore = new Map();
+ /**
+ * Write pass
+ * If we're measuring elements we want to remove bounding box-changing transforms.
+ */
+ elementsToMeasure.forEach((element) => {
+ const removedTransforms = removeNonTranslationalTransform(element);
+ if (!removedTransforms.length)
+ return;
+ transformsToRestore.set(element, removedTransforms);
+ element.render();
+ });
+ // Read
+ resolversToMeasure.forEach((resolver) => resolver.measureInitialState());
+ // Write
+ elementsToMeasure.forEach((element) => {
+ element.render();
+ const restore = transformsToRestore.get(element);
+ if (restore) {
+ restore.forEach(([key, value]) => {
+ var _a;
+ (_a = element.getValue(key)) === null || _a === void 0 ? void 0 : _a.set(value);
+ });
+ }
+ });
+ // Read
+ resolversToMeasure.forEach((resolver) => resolver.measureEndState());
+ // Write
+ resolversToMeasure.forEach((resolver) => {
+ if (resolver.suspendedScrollY !== undefined) {
+ window.scrollTo(0, resolver.suspendedScrollY);
+ }
+ });
}
- else if (typeof definition === "string") {
- // Else lookup from table
- errors_invariant(easingLookup[definition] !== undefined, `Invalid easing type '${definition}'`);
- return easingLookup[definition];
+ anyNeedsMeasurement = false;
+ isScheduled = false;
+ toResolve.forEach((resolver) => resolver.complete());
+ toResolve.clear();
+}
+function readAllKeyframes() {
+ toResolve.forEach((resolver) => {
+ resolver.readKeyframes();
+ if (resolver.needsMeasurement) {
+ anyNeedsMeasurement = true;
+ }
+ });
+}
+function flushKeyframeResolvers() {
+ readAllKeyframes();
+ measureAllKeyframes();
+}
+class KeyframeResolver {
+ constructor(unresolvedKeyframes, onComplete, name, motionValue, element, isAsync = false) {
+ /**
+ * Track whether this resolver has completed. Once complete, it never
+ * needs to attempt keyframe resolution again.
+ */
+ this.isComplete = false;
+ /**
+ * Track whether this resolver is async. If it is, it'll be added to the
+ * resolver queue and flushed in the next frame. Resolvers that aren't going
+ * to trigger read/write thrashing don't need to be async.
+ */
+ this.isAsync = false;
+ /**
+ * Track whether this resolver needs to perform a measurement
+ * to resolve its keyframes.
+ */
+ this.needsMeasurement = false;
+ /**
+ * Track whether this resolver is currently scheduled to resolve
+ * to allow it to be cancelled and resumed externally.
+ */
+ this.isScheduled = false;
+ this.unresolvedKeyframes = [...unresolvedKeyframes];
+ this.onComplete = onComplete;
+ this.name = name;
+ this.motionValue = motionValue;
+ this.element = element;
+ this.isAsync = isAsync;
+ }
+ scheduleResolve() {
+ this.isScheduled = true;
+ if (this.isAsync) {
+ toResolve.add(this);
+ if (!isScheduled) {
+ isScheduled = true;
+ frame_frame.read(readAllKeyframes);
+ frame_frame.resolveKeyframes(measureAllKeyframes);
+ }
+ }
+ else {
+ this.readKeyframes();
+ this.complete();
+ }
}
- return definition;
-};
+ readKeyframes() {
+ const { unresolvedKeyframes, name, element, motionValue } = this;
+ /**
+ * If a keyframe is null, we hydrate it either by reading it from
+ * the instance, or propagating from previous keyframes.
+ */
+ for (let i = 0; i < unresolvedKeyframes.length; i++) {
+ if (unresolvedKeyframes[i] === null) {
+ /**
+ * If the first keyframe is null, we need to find its value by sampling the element
+ */
+ if (i === 0) {
+ const currentValue = motionValue === null || motionValue === void 0 ? void 0 : motionValue.get();
+ const finalKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];
+ if (currentValue !== undefined) {
+ unresolvedKeyframes[0] = currentValue;
+ }
+ else if (element && name) {
+ const valueAsRead = element.readValue(name, finalKeyframe);
+ if (valueAsRead !== undefined && valueAsRead !== null) {
+ unresolvedKeyframes[0] = valueAsRead;
+ }
+ }
+ if (unresolvedKeyframes[0] === undefined) {
+ unresolvedKeyframes[0] = finalKeyframe;
+ }
+ if (motionValue && currentValue === undefined) {
+ motionValue.set(unresolvedKeyframes[0]);
+ }
+ }
+ else {
+ unresolvedKeyframes[i] = unresolvedKeyframes[i - 1];
+ }
+ }
+ }
+ }
+ setFinalKeyframe() { }
+ measureInitialState() { }
+ renderEndStyles() { }
+ measureEndState() { }
+ complete() {
+ this.isComplete = true;
+ this.onComplete(this.unresolvedKeyframes, this.finalKeyframe);
+ toResolve.delete(this);
+ }
+ cancel() {
+ if (!this.isComplete) {
+ this.isScheduled = false;
+ toResolve.delete(this);
+ }
+ }
+ resume() {
+ if (!this.isComplete)
+ this.scheduleResolve();
+ }
+}
@@ -19193,125 +18786,10 @@ const color = {
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/mix.mjs
-/*
- Value in range from progress
-
- Given a lower limit and an upper limit, we return the value within
- that range as expressed by progress (usually a number from 0 to 1)
-
- So progress = 0.5 would change
-
- from -------- to
-
- to
-
- from ---- to
-
- E.g. from = 10, to = 20, progress = 0.5 => 15
-
- @param [number]: Lower limit of range
- @param [number]: Upper limit of range
- @param [number]: The progress between lower and upper limits expressed 0-1
- @return [number]: Value as calculated from progress within range (not limited within range)
-*/
-const mix = (from, to, progress) => -progress * from + progress * to + from;
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/hsla-to-rgba.mjs
-// Adapted from https://gist.github.com/mjackson/5311256
-function hueToRgb(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;
-}
-function hslaToRgba({ hue, saturation, lightness, alpha }) {
- hue /= 360;
- saturation /= 100;
- lightness /= 100;
- let red = 0;
- let green = 0;
- let blue = 0;
- if (!saturation) {
- red = green = blue = lightness;
- }
- else {
- const q = lightness < 0.5
- ? lightness * (1 + saturation)
- : lightness + saturation - lightness * saturation;
- const p = 2 * lightness - q;
- red = hueToRgb(p, q, hue + 1 / 3);
- green = hueToRgb(p, q, hue);
- blue = hueToRgb(p, q, hue - 1 / 3);
- }
- return {
- red: Math.round(red * 255),
- green: Math.round(green * 255),
- blue: Math.round(blue * 255),
- alpha,
- };
-}
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/mix-color.mjs
-
-
-
-
-
-
-
-// Linear color space blending
-// Explained https://www.youtube.com/watch?v=LKnqECcg6Gw
-// Demonstrated http://codepen.io/osublake/pen/xGVVaN
-const mixLinearColor = (from, to, v) => {
- const fromExpo = from * from;
- return Math.sqrt(Math.max(0, v * (to * to - fromExpo) + fromExpo));
-};
-const colorTypes = [hex, rgba, hsla];
-const getColorType = (v) => colorTypes.find((type) => type.test(v));
-function asRGBA(color) {
- const type = getColorType(color);
- errors_invariant(Boolean(type), `'${color}' is not an animatable color. Use the equivalent color code instead.`);
- let model = type.parse(color);
- if (type === hsla) {
- // TODO Remove this cast - needed since Framer Motion's stricter typing
- model = hslaToRgba(model);
- }
- return model;
-}
-const mixColor = (from, to) => {
- const fromRGBA = asRGBA(from);
- const toRGBA = asRGBA(to);
- const blended = { ...fromRGBA };
- return (v) => {
- blended.red = mixLinearColor(fromRGBA.red, toRGBA.red, v);
- blended.green = mixLinearColor(fromRGBA.green, toRGBA.green, v);
- blended.blue = mixLinearColor(fromRGBA.blue, toRGBA.blue, v);
- blended.alpha = mix(fromRGBA.alpha, toRGBA.alpha, v);
- return rgba.transform(blended);
- };
-};
-
-
-
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/types/complex/index.mjs
-
-
-
function test(v) {
var _a, _b;
return (isNaN(v) &&
@@ -19320,65 +18798,66 @@ function test(v) {
(((_b = v.match(colorRegex)) === null || _b === void 0 ? void 0 : _b.length) || 0) >
0);
}
-const cssVarTokeniser = {
- regex: cssVariableRegex,
- countKey: "Vars",
- token: "${v}",
- parse: noop_noop,
-};
-const colorTokeniser = {
- regex: colorRegex,
- countKey: "Colors",
- token: "${c}",
- parse: color.parse,
-};
-const numberTokeniser = {
- regex: floatRegex,
- countKey: "Numbers",
- token: "${n}",
- parse: number.parse,
-};
-function tokenise(info, { regex, countKey, token, parse }) {
- const matches = info.tokenised.match(regex);
- if (!matches)
- return;
- info["num" + countKey] = matches.length;
- info.tokenised = info.tokenised.replace(regex, token);
- info.values.push(...matches.map(parse));
-}
+const NUMBER_TOKEN = "number";
+const COLOR_TOKEN = "color";
+const VAR_TOKEN = "var";
+const VAR_FUNCTION_TOKEN = "var(";
+const SPLIT_TOKEN = "${}";
+// this regex consists of the `singleCssVariableRegex|rgbHSLValueRegex|digitRegex`
+const complexRegex = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
function analyseComplexValue(value) {
const originalValue = value.toString();
- const info = {
- value: originalValue,
- tokenised: originalValue,
- values: [],
- numVars: 0,
- numColors: 0,
- numNumbers: 0,
+ const values = [];
+ const indexes = {
+ color: [],
+ number: [],
+ var: [],
};
- if (info.value.includes("var(--"))
- tokenise(info, cssVarTokeniser);
- tokenise(info, colorTokeniser);
- tokenise(info, numberTokeniser);
- return info;
+ const types = [];
+ let i = 0;
+ const tokenised = originalValue.replace(complexRegex, (parsedValue) => {
+ if (color.test(parsedValue)) {
+ indexes.color.push(i);
+ types.push(COLOR_TOKEN);
+ values.push(color.parse(parsedValue));
+ }
+ else if (parsedValue.startsWith(VAR_FUNCTION_TOKEN)) {
+ indexes.var.push(i);
+ types.push(VAR_TOKEN);
+ values.push(parsedValue);
+ }
+ else {
+ indexes.number.push(i);
+ types.push(NUMBER_TOKEN);
+ values.push(parseFloat(parsedValue));
+ }
+ ++i;
+ return SPLIT_TOKEN;
+ });
+ const split = tokenised.split(SPLIT_TOKEN);
+ return { values, split, indexes, types };
}
function parseComplexValue(v) {
return analyseComplexValue(v).values;
}
function createTransformer(source) {
- const { values, numColors, numVars, tokenised } = analyseComplexValue(source);
- const numValues = values.length;
+ const { split, types } = analyseComplexValue(source);
+ const numSections = split.length;
return (v) => {
- let output = tokenised;
- for (let i = 0; i < numValues; i++) {
- if (i < numVars) {
- output = output.replace(cssVarTokeniser.token, v[i]);
- }
- else if (i < numVars + numColors) {
- output = output.replace(colorTokeniser.token, color.transform(v[i]));
- }
- else {
- output = output.replace(numberTokeniser.token, sanitize(v[i]));
+ let output = "";
+ for (let i = 0; i < numSections; i++) {
+ output += split[i];
+ if (v[i] !== undefined) {
+ const type = types[i];
+ if (type === NUMBER_TOKEN) {
+ output += sanitize(v[i]);
+ }
+ else if (type === COLOR_TOKEN) {
+ output += color.transform(v[i]);
+ }
+ else {
+ output += v[i];
+ }
}
}
return output;
@@ -19399,267 +18878,416 @@ const complex = {
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/mix-complex.mjs
-
-
-
-
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/types/complex/filter.mjs
-const mixImmediate = (origin, target) => (p) => `${p > 0 ? target : origin}`;
-function getMixer(origin, target) {
- if (typeof origin === "number") {
- return (v) => mix(origin, target, v);
- }
- else if (color.test(origin)) {
- return mixColor(origin, target);
- }
- else {
- return origin.startsWith("var(")
- ? mixImmediate(origin, target)
- : mixComplex(origin, target);
- }
+/**
+ * Properties that should default to 1 or 100%
+ */
+const maxDefaults = new Set(["brightness", "contrast", "saturate", "opacity"]);
+function applyDefaultFilter(v) {
+ const [name, value] = v.slice(0, -1).split("(");
+ if (name === "drop-shadow")
+ return v;
+ const [number] = value.match(floatRegex) || [];
+ if (!number)
+ return v;
+ const unit = value.replace(number, "");
+ let defaultValue = maxDefaults.has(name) ? 1 : 0;
+ if (number !== value)
+ defaultValue *= 100;
+ return name + "(" + defaultValue + unit + ")";
}
-const mixArray = (from, to) => {
- const output = [...from];
- const numValues = output.length;
- const blendValue = from.map((fromThis, i) => getMixer(fromThis, to[i]));
- return (v) => {
- for (let i = 0; i < numValues; i++) {
- output[i] = blendValue[i](v);
- }
- return output;
- };
-};
-const mixObject = (origin, target) => {
- const output = { ...origin, ...target };
- const blendValue = {};
- for (const key in output) {
- if (origin[key] !== undefined && target[key] !== undefined) {
- blendValue[key] = getMixer(origin[key], target[key]);
- }
- }
- return (v) => {
- for (const key in blendValue) {
- output[key] = blendValue[key](v);
- }
- return output;
- };
-};
-const mixComplex = (origin, target) => {
- const template = complex.createTransformer(target);
- const originStats = analyseComplexValue(origin);
- const targetStats = analyseComplexValue(target);
- const canInterpolate = originStats.numVars === targetStats.numVars &&
- originStats.numColors === targetStats.numColors &&
- originStats.numNumbers >= targetStats.numNumbers;
- if (canInterpolate) {
- return pipe(mixArray(originStats.values, targetStats.values), template);
- }
- else {
- warning(true, `Complex values '${origin}' and '${target}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`);
- return mixImmediate(origin, target);
- }
+const functionRegex = /\b([a-z-]*)\(.*?\)/gu;
+const filter = {
+ ...complex,
+ getAnimatableNone: (v) => {
+ const functions = v.match(functionRegex);
+ return functions ? functions.map(applyDefaultFilter).join(" ") : v;
+ },
};
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/progress.mjs
-/*
- Progress within given range
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/defaults.mjs
- Given a lower limit and an upper limit, we return the progress
- (expressed as a number 0-1) represented by the given value, and
- limit that progress to within 0-1.
- @param [number]: Lower limit
- @param [number]: Upper limit
- @param [number]: Value to find progress within given range
- @return [number]: Progress of value within range as expressed 0-1
-*/
-const progress = (from, to, value) => {
- const toFromDifference = to - from;
- return toFromDifference === 0 ? 1 : (value - from) / toFromDifference;
+
+
+/**
+ * A map of default value types for common values
+ */
+const defaultValueTypes = {
+ ...numberValueTypes,
+ // Color props
+ color: color,
+ backgroundColor: color,
+ outlineColor: color,
+ fill: color,
+ stroke: color,
+ // Border props
+ borderColor: color,
+ borderTopColor: color,
+ borderRightColor: color,
+ borderBottomColor: color,
+ borderLeftColor: color,
+ filter: filter,
+ WebkitFilter: filter,
};
+/**
+ * Gets the default ValueType for the provided value key
+ */
+const getDefaultValueType = (key) => defaultValueTypes[key];
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/interpolate.mjs
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs
+function animatable_none_getAnimatableNone(key, value) {
+ let defaultValueType = getDefaultValueType(key);
+ if (defaultValueType !== filter)
+ defaultValueType = complex;
+ // If value is not recognised as animatable, ie "none", create an animatable version origin based on the target
+ return defaultValueType.getAnimatableNone
+ ? defaultValueType.getAnimatableNone(value)
+ : undefined;
+}
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.mjs
-const mixNumber = (from, to) => (p) => mix(from, to, p);
-function detectMixerFactory(v) {
- if (typeof v === "number") {
- return mixNumber;
- }
- else if (typeof v === "string") {
- return color.test(v) ? mixColor : mixComplex;
- }
- else if (Array.isArray(v)) {
- return mixArray;
- }
- else if (typeof v === "object") {
- return mixObject;
- }
- return mixNumber;
-}
-function createMixers(output, ease, customMixer) {
- const mixers = [];
- const mixerFactory = customMixer || detectMixerFactory(output[0]);
- const numMixers = output.length - 1;
- for (let i = 0; i < numMixers; i++) {
- let mixer = mixerFactory(output[i], output[i + 1]);
- if (ease) {
- const easingFunction = Array.isArray(ease) ? ease[i] || noop_noop : ease;
- mixer = pipe(easingFunction, mixer);
- }
- mixers.push(mixer);
- }
- return mixers;
-}
/**
- * Create a function that maps from a numerical input array to a generic output array.
- *
- * Accepts:
- * - Numbers
- * - Colors (hex, hsl, hsla, rgb, rgba)
- * - Complex (combinations of one or more numbers or strings)
- *
- * ```jsx
- * const mixColor = interpolate([0, 1], ['#fff', '#000'])
- *
- * mixColor(0.5) // 'rgba(128, 128, 128, 1)'
- * ```
- *
- * TODO Revist this approach once we've moved to data models for values,
- * probably not needed to pregenerate mixer functions.
- *
- * @public
+ * If we encounter keyframes like "none" or "0" and we also have keyframes like
+ * "#fff" or "200px 200px" we want to find a keyframe to serve as a template for
+ * the "none" keyframes. In this case "#fff" or "200px 200px" - then these get turned into
+ * zero equivalents, i.e. "#fff0" or "0px 0px".
*/
-function interpolate(input, output, { clamp: isClamp = true, ease, mixer } = {}) {
- const inputLength = input.length;
- errors_invariant(inputLength === output.length, "Both input and output ranges must be the same length");
- /**
- * If we're only provided a single input, we can just make a function
- * that returns the output.
- */
- if (inputLength === 1)
- return () => output[0];
- // If input runs highest -> lowest, reverse both arrays
- if (input[0] > input[inputLength - 1]) {
- input = [...input].reverse();
- output = [...output].reverse();
+const invalidTemplates = new Set(["auto", "none", "0"]);
+function makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name) {
+ let i = 0;
+ let animatableTemplate = undefined;
+ while (i < unresolvedKeyframes.length && !animatableTemplate) {
+ const keyframe = unresolvedKeyframes[i];
+ if (typeof keyframe === "string" &&
+ !invalidTemplates.has(keyframe) &&
+ analyseComplexValue(keyframe).values.length) {
+ animatableTemplate = unresolvedKeyframes[i];
+ }
+ i++;
}
- const mixers = createMixers(output, ease, mixer);
- const numMixers = mixers.length;
- const interpolator = (v) => {
- let i = 0;
- if (numMixers > 1) {
- for (; i < input.length - 2; i++) {
- if (v < input[i + 1])
- break;
- }
+ if (animatableTemplate && name) {
+ for (const noneIndex of noneKeyframeIndexes) {
+ unresolvedKeyframes[noneIndex] = animatable_none_getAnimatableNone(name, animatableTemplate);
}
- const progressInRange = progress(input[i], input[i + 1], v);
- return mixers[i](progressInRange);
- };
- return isClamp
- ? (v) => interpolator(clamp_clamp(input[0], input[inputLength - 1], v))
- : interpolator;
+ }
}
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/offsets/fill.mjs
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.mjs
-function fillOffset(offset, remaining) {
- const min = offset[offset.length - 1];
- for (let i = 1; i <= remaining; i++) {
- const offsetProgress = progress(0, remaining, i);
- offset.push(mix(min, 1, offsetProgress));
- }
-}
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/offsets/default.mjs
-function defaultOffset(arr) {
- const offset = [0];
- fillOffset(offset, arr.length - 1);
- return offset;
+class DOMKeyframesResolver extends KeyframeResolver {
+ constructor(unresolvedKeyframes, onComplete, name, motionValue) {
+ super(unresolvedKeyframes, onComplete, name, motionValue, motionValue === null || motionValue === void 0 ? void 0 : motionValue.owner, true);
+ }
+ readKeyframes() {
+ const { unresolvedKeyframes, element, name } = this;
+ if (!element.current)
+ return;
+ super.readKeyframes();
+ /**
+ * If any keyframe is a CSS variable, we need to find its value by sampling the element
+ */
+ for (let i = 0; i < unresolvedKeyframes.length; i++) {
+ const keyframe = unresolvedKeyframes[i];
+ if (typeof keyframe === "string" && isCSSVariableToken(keyframe)) {
+ const resolved = getVariableValue(keyframe, element.current);
+ if (resolved !== undefined) {
+ unresolvedKeyframes[i] = resolved;
+ }
+ if (i === unresolvedKeyframes.length - 1) {
+ this.finalKeyframe = keyframe;
+ }
+ }
+ }
+ /**
+ * Resolve "none" values. We do this potentially twice - once before and once after measuring keyframes.
+ * This could be seen as inefficient but it's a trade-off to avoid measurements in more situations, which
+ * have a far bigger performance impact.
+ */
+ this.resolveNoneKeyframes();
+ /**
+ * Check to see if unit type has changed. If so schedule jobs that will
+ * temporarily set styles to the destination keyframes.
+ * Skip if we have more than two keyframes or this isn't a positional value.
+ * TODO: We can throw if there are multiple keyframes and the value type changes.
+ */
+ if (!positionalKeys.has(name) || unresolvedKeyframes.length !== 2) {
+ return;
+ }
+ const [origin, target] = unresolvedKeyframes;
+ const originType = findDimensionValueType(origin);
+ const targetType = findDimensionValueType(target);
+ /**
+ * Either we don't recognise these value types or we can animate between them.
+ */
+ if (originType === targetType)
+ return;
+ /**
+ * If both values are numbers or pixels, we can animate between them by
+ * converting them to numbers.
+ */
+ if (isNumOrPxType(originType) && isNumOrPxType(targetType)) {
+ for (let i = 0; i < unresolvedKeyframes.length; i++) {
+ const value = unresolvedKeyframes[i];
+ if (typeof value === "string") {
+ unresolvedKeyframes[i] = parseFloat(value);
+ }
+ }
+ }
+ else {
+ /**
+ * Else, the only way to resolve this is by measuring the element.
+ */
+ this.needsMeasurement = true;
+ }
+ }
+ resolveNoneKeyframes() {
+ const { unresolvedKeyframes, name } = this;
+ const noneKeyframeIndexes = [];
+ for (let i = 0; i < unresolvedKeyframes.length; i++) {
+ if (isNone(unresolvedKeyframes[i])) {
+ noneKeyframeIndexes.push(i);
+ }
+ }
+ if (noneKeyframeIndexes.length) {
+ makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name);
+ }
+ }
+ measureInitialState() {
+ const { element, unresolvedKeyframes, name } = this;
+ if (!element.current)
+ return;
+ if (name === "height") {
+ this.suspendedScrollY = window.pageYOffset;
+ }
+ this.measuredOrigin = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));
+ unresolvedKeyframes[0] = this.measuredOrigin;
+ // Set final key frame to measure after next render
+ const measureKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];
+ if (measureKeyframe !== undefined) {
+ element.getValue(name, measureKeyframe).jump(measureKeyframe, false);
+ }
+ }
+ measureEndState() {
+ var _a;
+ const { element, name, unresolvedKeyframes } = this;
+ if (!element.current)
+ return;
+ const value = element.getValue(name);
+ value && value.jump(this.measuredOrigin, false);
+ const finalKeyframeIndex = unresolvedKeyframes.length - 1;
+ const finalKeyframe = unresolvedKeyframes[finalKeyframeIndex];
+ unresolvedKeyframes[finalKeyframeIndex] = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));
+ if (finalKeyframe !== null && this.finalKeyframe === undefined) {
+ this.finalKeyframe = finalKeyframe;
+ }
+ // If we removed transform values, reapply them before the next render
+ if ((_a = this.removedTransforms) === null || _a === void 0 ? void 0 : _a.length) {
+ this.removedTransforms.forEach(([unsetTransformName, unsetTransformValue]) => {
+ element
+ .getValue(unsetTransformName)
+ .set(unsetTransformValue);
+ });
+ }
+ this.resolveNoneKeyframes();
+ }
}
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/offsets/time.mjs
-function convertOffsetToTimes(offset, duration) {
- return offset.map((o) => o * duration);
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/memo.mjs
+function memo(callback) {
+ let result;
+ return () => {
+ if (result === undefined)
+ result = callback();
+ return result;
+ };
}
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/generators/keyframes.mjs
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/is-animatable.mjs
+/**
+ * Check if a value is animatable. Examples:
+ *
+ * ✅: 100, "100px", "#fff"
+ * ❌: "block", "url(2.jpg)"
+ * @param value
+ *
+ * @internal
+ */
+const isAnimatable = (value, name) => {
+ // If the list of keys tat might be non-animatable grows, replace with Set
+ if (name === "zIndex")
+ return false;
+ // If it's a number or a keyframes array, we can animate it. We might at some point
+ // need to do a deep isAnimatable check of keyframes, or let Popmotion handle this,
+ // but for now lets leave it like this for performance reasons
+ if (typeof value === "number" || Array.isArray(value))
+ return true;
+ if (typeof value === "string" && // It's animatable if we have a string
+ (complex.test(value) || value === "0") && // And it contains numbers and/or colors
+ !value.startsWith("url(") // Unless it starts with "url("
+ ) {
+ return true;
+ }
+ return false;
+};
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.mjs
-function defaultEasing(values, easing) {
- return values.map(() => easing || easeInOut).splice(0, values.length - 1);
+
+function hasKeyframesChanged(keyframes) {
+ const current = keyframes[0];
+ if (keyframes.length === 1)
+ return true;
+ for (let i = 0; i < keyframes.length; i++) {
+ if (keyframes[i] !== current)
+ return true;
+ }
}
-function keyframes_keyframes({ duration = 300, keyframes: keyframeValues, times, ease = "easeInOut", }) {
+function canAnimate(keyframes, name, type, velocity) {
/**
- * Easing functions can be externally defined as strings. Here we convert them
- * into actual functions.
+ * Check if we're able to animate between the start and end keyframes,
+ * and throw a warning if we're attempting to animate between one that's
+ * animatable and another that isn't.
*/
- const easingFunctions = isEasingArray(ease)
- ? ease.map(easingDefinitionToFunction)
- : easingDefinitionToFunction(ease);
+ const originKeyframe = keyframes[0];
+ if (originKeyframe === null)
+ return false;
/**
- * This is the Iterator-spec return value. We ensure it's mutable rather than using a generator
- * to reduce GC during animation.
+ * These aren't traditionally animatable but we do support them.
+ * In future we could look into making this more generic or replacing
+ * this function with mix() === mixImmediate
*/
- const state = {
- done: false,
- value: keyframeValues[0],
- };
+ if (name === "display" || name === "visibility")
+ return true;
+ const targetKeyframe = keyframes[keyframes.length - 1];
+ const isOriginAnimatable = isAnimatable(originKeyframe, name);
+ const isTargetAnimatable = isAnimatable(targetKeyframe, name);
+ warning(isOriginAnimatable === isTargetAnimatable, `You are trying to animate ${name} from "${originKeyframe}" to "${targetKeyframe}". ${originKeyframe} is not an animatable value - to enable this animation set ${originKeyframe} to a value animatable to ${targetKeyframe} via the \`style\` property.`);
+ // Always skip if any of these are true
+ if (!isOriginAnimatable || !isTargetAnimatable) {
+ return false;
+ }
+ return hasKeyframesChanged(keyframes) || (type === "spring" && velocity);
+}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.mjs
+
+
+
+
+
+class BaseAnimation {
+ constructor({ autoplay = true, delay = 0, type = "keyframes", repeat = 0, repeatDelay = 0, repeatType = "loop", ...options }) {
+ // Track whether the animation has been stopped. Stopped animations won't restart.
+ this.isStopped = false;
+ this.hasAttemptedResolve = false;
+ this.options = {
+ autoplay,
+ delay,
+ type,
+ repeat,
+ repeatDelay,
+ repeatType,
+ ...options,
+ };
+ this.updateFinishedPromise();
+ }
/**
- * Create a times array based on the provided 0-1 offsets
+ * A getter for resolved data. If keyframes are not yet resolved, accessing
+ * this.resolved will synchronously flush all pending keyframe resolvers.
+ * This is a deoptimisation, but at its worst still batches read/writes.
*/
- const absoluteTimes = convertOffsetToTimes(
- // Only use the provided offsets if they're the correct length
- // TODO Maybe we should warn here if there's a length mismatch
- times && times.length === keyframeValues.length
- ? times
- : defaultOffset(keyframeValues), duration);
- const mapTimeToKeyframe = interpolate(absoluteTimes, keyframeValues, {
- ease: Array.isArray(easingFunctions)
- ? easingFunctions
- : defaultEasing(keyframeValues, easingFunctions),
- });
- return {
- calculatedDuration: duration,
- next: (t) => {
- state.value = mapTimeToKeyframe(t);
- state.done = t >= duration;
- return state;
- },
- };
+ get resolved() {
+ if (!this._resolved && !this.hasAttemptedResolve) {
+ flushKeyframeResolvers();
+ }
+ return this._resolved;
+ }
+ /**
+ * A method to be called when the keyframes resolver completes. This method
+ * will check if its possible to run the animation and, if not, skip it.
+ * Otherwise, it will call initPlayback on the implementing class.
+ */
+ onKeyframesResolved(keyframes, finalKeyframe) {
+ this.hasAttemptedResolve = true;
+ const { name, type, velocity, delay, onComplete, onUpdate, isGenerator, } = this.options;
+ /**
+ * If we can't animate this value with the resolved keyframes
+ * then we should complete it immediately.
+ */
+ if (!isGenerator && !canAnimate(keyframes, name, type, velocity)) {
+ // Finish immediately
+ if (instantAnimationState.current || !delay) {
+ onUpdate === null || onUpdate === void 0 ? void 0 : onUpdate(getFinalKeyframe(keyframes, this.options, finalKeyframe));
+ onComplete === null || onComplete === void 0 ? void 0 : onComplete();
+ this.resolveFinishedPromise();
+ return;
+ }
+ // Finish after a delay
+ else {
+ this.options.duration = 0;
+ }
+ }
+ const resolvedAnimation = this.initPlayback(keyframes, finalKeyframe);
+ if (resolvedAnimation === false)
+ return;
+ this._resolved = {
+ keyframes,
+ finalKeyframe,
+ ...resolvedAnimation,
+ };
+ this.onPostResolved();
+ }
+ onPostResolved() { }
+ /**
+ * Allows the returned animation to be awaited or promise-chained. Currently
+ * resolves when the animation finishes at all but in a future update could/should
+ * reject if its cancels.
+ */
+ then(resolve, reject) {
+ return this.currentFinishedPromise.then(resolve, reject);
+ }
+ updateFinishedPromise() {
+ this.currentFinishedPromise = new Promise((resolve) => {
+ this.resolveFinishedPromise = resolve;
+ });
+ }
}
@@ -19805,7 +19433,6 @@ function getSpringOptions(options) {
springOptions = {
...springOptions,
...derived,
- velocity: 0.0,
mass: 1.0,
};
springOptions.isResolvedFromDuration = true;
@@ -19820,8 +19447,11 @@ function spring({ keyframes, restDelta, restSpeed, ...options }) {
* to reduce GC during animation.
*/
const state = { done: false, value: origin };
- const { stiffness, damping, mass, velocity, duration, isResolvedFromDuration, } = getSpringOptions(options);
- const initialVelocity = velocity ? -millisecondsToSeconds(velocity) : 0.0;
+ const { stiffness, damping, mass, duration, velocity, isResolvedFromDuration, } = getSpringOptions({
+ ...options,
+ velocity: -millisecondsToSeconds(options.velocity || 0),
+ });
+ const initialVelocity = velocity || 0.0;
const dampingRatio = damping / (2 * Math.sqrt(stiffness * mass));
const initialDelta = target - origin;
const undampedAngularFreq = millisecondsToSeconds(Math.sqrt(stiffness / mass));
@@ -19959,7 +19589,7 @@ function inertia({ keyframes, velocity = 0.0, power = 0.8, timeConstant = 325, b
timeReachedBoundary = t;
spring$1 = spring({
keyframes: [state.value, nearestBoundary(state.value)],
- velocity: calcGeneratorVelocity(calcLatest, t, state.value),
+ velocity: calcGeneratorVelocity(calcLatest, t, state.value), // TODO: This should be passing * 1000
damping: bounceDamping,
stiffness: bounceStiffness,
restDelta,
@@ -19986,7 +19616,7 @@ function inertia({ keyframes, velocity = 0.0, power = 0.8, timeConstant = 325, b
* If we have a spring and the provided t is beyond the moment the friction
* animation crossed the min/max boundary, use the spring.
*/
- if (timeReachedBoundary !== undefined && t > timeReachedBoundary) {
+ if (timeReachedBoundary !== undefined && t >= timeReachedBoundary) {
return spring$1.next(t - timeReachedBoundary);
}
else {
@@ -19999,24 +19629,585 @@ function inertia({ keyframes, velocity = 0.0, power = 0.8, timeConstant = 325, b
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/js/driver-frameloop.mjs
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/cubic-bezier.mjs
-const frameloopDriver = (update) => {
- const passTimestamp = ({ timestamp }) => update(timestamp);
+/*
+ Bezier function generator
+ This has been modified from Gaëtan Renaudeau's BezierEasing
+ https://github.com/gre/bezier-easing/blob/master/src/index.js
+ https://github.com/gre/bezier-easing/blob/master/LICENSE
+
+ I've removed the newtonRaphsonIterate algo because in benchmarking it
+ wasn't noticiably faster than binarySubdivision, indeed removing it
+ usually improved times, depending on the curve.
+ I also removed the lookup table, as for the added bundle size and loop we're
+ only cutting ~4 or so subdivision iterations. I bumped the max iterations up
+ to 12 to compensate and this still tended to be faster for no perceivable
+ loss in accuracy.
+ Usage
+ const easeOut = cubicBezier(.17,.67,.83,.67);
+ const x = easeOut(0.5); // returns 0.627...
+*/
+// Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.
+const calcBezier = (t, a1, a2) => (((1.0 - 3.0 * a2 + 3.0 * a1) * t + (3.0 * a2 - 6.0 * a1)) * t + 3.0 * a1) *
+ t;
+const subdivisionPrecision = 0.0000001;
+const subdivisionMaxIterations = 12;
+function binarySubdivide(x, lowerBound, upperBound, mX1, mX2) {
+ let currentX;
+ let currentT;
+ let i = 0;
+ do {
+ currentT = lowerBound + (upperBound - lowerBound) / 2.0;
+ currentX = calcBezier(currentT, mX1, mX2) - x;
+ if (currentX > 0.0) {
+ upperBound = currentT;
+ }
+ else {
+ lowerBound = currentT;
+ }
+ } while (Math.abs(currentX) > subdivisionPrecision &&
+ ++i < subdivisionMaxIterations);
+ return currentT;
+}
+function cubicBezier(mX1, mY1, mX2, mY2) {
+ // If this is a linear gradient, return linear easing
+ if (mX1 === mY1 && mX2 === mY2)
+ return noop_noop;
+ const getTForX = (aX) => binarySubdivide(aX, 0, 1, mX1, mX2);
+ // If animation is at start/end, return t without easing
+ return (t) => t === 0 || t === 1 ? t : calcBezier(getTForX(t), mY1, mY2);
+}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/ease.mjs
+
+
+const easeIn = cubicBezier(0.42, 0, 1, 1);
+const easeOut = cubicBezier(0, 0, 0.58, 1);
+const easeInOut = cubicBezier(0.42, 0, 0.58, 1);
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/utils/is-easing-array.mjs
+const isEasingArray = (ease) => {
+ return Array.isArray(ease) && typeof ease[0] !== "number";
+};
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/modifiers/mirror.mjs
+// Accepts an easing function and returns a new one that outputs mirrored values for
+// the second half of the animation. Turns easeIn into easeInOut.
+const mirrorEasing = (easing) => (p) => p <= 0.5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2;
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/modifiers/reverse.mjs
+// Accepts an easing function and returns a new one that outputs reversed values.
+// Turns easeIn into easeOut.
+const reverseEasing = (easing) => (p) => 1 - easing(1 - p);
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/circ.mjs
+
+
+
+const circIn = (p) => 1 - Math.sin(Math.acos(p));
+const circOut = reverseEasing(circIn);
+const circInOut = mirrorEasing(circIn);
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/back.mjs
+
+
+
+
+const backOut = cubicBezier(0.33, 1.53, 0.69, 0.99);
+const backIn = reverseEasing(backOut);
+const backInOut = mirrorEasing(backIn);
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/anticipate.mjs
+
+
+const anticipate = (p) => (p *= 2) < 1 ? 0.5 * backIn(p) : 0.5 * (2 - Math.pow(2, -10 * (p - 1)));
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/utils/map.mjs
+
+
+
+
+
+
+
+
+const easingLookup = {
+ linear: noop_noop,
+ easeIn: easeIn,
+ easeInOut: easeInOut,
+ easeOut: easeOut,
+ circIn: circIn,
+ circInOut: circInOut,
+ circOut: circOut,
+ backIn: backIn,
+ backInOut: backInOut,
+ backOut: backOut,
+ anticipate: anticipate,
+};
+const easingDefinitionToFunction = (definition) => {
+ if (Array.isArray(definition)) {
+ // If cubic bezier definition, create bezier curve
+ errors_invariant(definition.length === 4, `Cubic bezier arrays must contain four numerical values.`);
+ const [x1, y1, x2, y2] = definition;
+ return cubicBezier(x1, y1, x2, y2);
+ }
+ else if (typeof definition === "string") {
+ // Else lookup from table
+ errors_invariant(easingLookup[definition] !== undefined, `Invalid easing type '${definition}'`);
+ return easingLookup[definition];
+ }
+ return definition;
+};
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/progress.mjs
+/*
+ Progress within given range
+
+ Given a lower limit and an upper limit, we return the progress
+ (expressed as a number 0-1) represented by the given value, and
+ limit that progress to within 0-1.
+
+ @param [number]: Lower limit
+ @param [number]: Upper limit
+ @param [number]: Value to find progress within given range
+ @return [number]: Progress of value within range as expressed 0-1
+*/
+const progress = (from, to, value) => {
+ const toFromDifference = to - from;
+ return toFromDifference === 0 ? 1 : (value - from) / toFromDifference;
+};
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/mix/number.mjs
+/*
+ Value in range from progress
+
+ Given a lower limit and an upper limit, we return the value within
+ that range as expressed by progress (usually a number from 0 to 1)
+
+ So progress = 0.5 would change
+
+ from -------- to
+
+ to
+
+ from ---- to
+
+ E.g. from = 10, to = 20, progress = 0.5 => 15
+
+ @param [number]: Lower limit of range
+ @param [number]: Upper limit of range
+ @param [number]: The progress between lower and upper limits expressed 0-1
+ @return [number]: Value as calculated from progress within range (not limited within range)
+*/
+const mixNumber = (from, to, progress) => {
+ return from + (to - from) * progress;
+};
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/hsla-to-rgba.mjs
+// Adapted from https://gist.github.com/mjackson/5311256
+function hueToRgb(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;
+}
+function hslaToRgba({ hue, saturation, lightness, alpha }) {
+ hue /= 360;
+ saturation /= 100;
+ lightness /= 100;
+ let red = 0;
+ let green = 0;
+ let blue = 0;
+ if (!saturation) {
+ red = green = blue = lightness;
+ }
+ else {
+ const q = lightness < 0.5
+ ? lightness * (1 + saturation)
+ : lightness + saturation - lightness * saturation;
+ const p = 2 * lightness - q;
+ red = hueToRgb(p, q, hue + 1 / 3);
+ green = hueToRgb(p, q, hue);
+ blue = hueToRgb(p, q, hue - 1 / 3);
+ }
return {
- start: () => frame_frame.update(passTimestamp, true),
- stop: () => cancelFrame(passTimestamp),
- /**
- * If we're processing this frame we can use the
- * framelocked timestamp to keep things in sync.
- */
- now: () => frameData.isProcessing ? frameData.timestamp : performance.now(),
+ red: Math.round(red * 255),
+ green: Math.round(green * 255),
+ blue: Math.round(blue * 255),
+ alpha,
+ };
+}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/mix/color.mjs
+
+
+
+
+
+
+
+// Linear color space blending
+// Explained https://www.youtube.com/watch?v=LKnqECcg6Gw
+// Demonstrated http://codepen.io/osublake/pen/xGVVaN
+const mixLinearColor = (from, to, v) => {
+ const fromExpo = from * from;
+ const expo = v * (to * to - fromExpo) + fromExpo;
+ return expo < 0 ? 0 : Math.sqrt(expo);
+};
+const colorTypes = [hex, rgba, hsla];
+const getColorType = (v) => colorTypes.find((type) => type.test(v));
+function asRGBA(color) {
+ const type = getColorType(color);
+ errors_invariant(Boolean(type), `'${color}' is not an animatable color. Use the equivalent color code instead.`);
+ let model = type.parse(color);
+ if (type === hsla) {
+ // TODO Remove this cast - needed since Framer Motion's stricter typing
+ model = hslaToRgba(model);
+ }
+ return model;
+}
+const mixColor = (from, to) => {
+ const fromRGBA = asRGBA(from);
+ const toRGBA = asRGBA(to);
+ const blended = { ...fromRGBA };
+ return (v) => {
+ blended.red = mixLinearColor(fromRGBA.red, toRGBA.red, v);
+ blended.green = mixLinearColor(fromRGBA.green, toRGBA.green, v);
+ blended.blue = mixLinearColor(fromRGBA.blue, toRGBA.blue, v);
+ blended.alpha = mixNumber(fromRGBA.alpha, toRGBA.alpha, v);
+ return rgba.transform(blended);
+ };
+};
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/mix/visibility.mjs
+const invisibleValues = new Set(["none", "hidden"]);
+/**
+ * Returns a function that, when provided a progress value between 0 and 1,
+ * will return the "none" or "hidden" string only when the progress is that of
+ * the origin or target.
+ */
+function mixVisibility(origin, target) {
+ if (invisibleValues.has(origin)) {
+ return (p) => (p <= 0 ? origin : target);
+ }
+ else {
+ return (p) => (p >= 1 ? target : origin);
+ }
+}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/mix/complex.mjs
+
+
+
+
+
+
+
+
+
+function mixImmediate(a, b) {
+ return (p) => (p > 0 ? b : a);
+}
+function complex_mixNumber(a, b) {
+ return (p) => mixNumber(a, b, p);
+}
+function getMixer(a) {
+ if (typeof a === "number") {
+ return complex_mixNumber;
+ }
+ else if (typeof a === "string") {
+ return isCSSVariableToken(a)
+ ? mixImmediate
+ : color.test(a)
+ ? mixColor
+ : mixComplex;
+ }
+ else if (Array.isArray(a)) {
+ return mixArray;
+ }
+ else if (typeof a === "object") {
+ return color.test(a) ? mixColor : mixObject;
+ }
+ return mixImmediate;
+}
+function mixArray(a, b) {
+ const output = [...a];
+ const numValues = output.length;
+ const blendValue = a.map((v, i) => getMixer(v)(v, b[i]));
+ return (p) => {
+ for (let i = 0; i < numValues; i++) {
+ output[i] = blendValue[i](p);
+ }
+ return output;
+ };
+}
+function mixObject(a, b) {
+ const output = { ...a, ...b };
+ const blendValue = {};
+ for (const key in output) {
+ if (a[key] !== undefined && b[key] !== undefined) {
+ blendValue[key] = getMixer(a[key])(a[key], b[key]);
+ }
+ }
+ return (v) => {
+ for (const key in blendValue) {
+ output[key] = blendValue[key](v);
+ }
+ return output;
};
+}
+function matchOrder(origin, target) {
+ var _a;
+ const orderedOrigin = [];
+ const pointers = { color: 0, var: 0, number: 0 };
+ for (let i = 0; i < target.values.length; i++) {
+ const type = target.types[i];
+ const originIndex = origin.indexes[type][pointers[type]];
+ const originValue = (_a = origin.values[originIndex]) !== null && _a !== void 0 ? _a : 0;
+ orderedOrigin[i] = originValue;
+ pointers[type]++;
+ }
+ return orderedOrigin;
+}
+const mixComplex = (origin, target) => {
+ const template = complex.createTransformer(target);
+ const originStats = analyseComplexValue(origin);
+ const targetStats = analyseComplexValue(target);
+ const canInterpolate = originStats.indexes.var.length === targetStats.indexes.var.length &&
+ originStats.indexes.color.length === targetStats.indexes.color.length &&
+ originStats.indexes.number.length >= targetStats.indexes.number.length;
+ if (canInterpolate) {
+ if ((invisibleValues.has(origin) &&
+ !targetStats.values.length) ||
+ (invisibleValues.has(target) &&
+ !originStats.values.length)) {
+ return mixVisibility(origin, target);
+ }
+ return pipe(mixArray(matchOrder(originStats, targetStats), targetStats.values), template);
+ }
+ else {
+ warning(true, `Complex values '${origin}' and '${target}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`);
+ return mixImmediate(origin, target);
+ }
};
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/mix/index.mjs
+
+
+
+function mix(from, to, p) {
+ if (typeof from === "number" &&
+ typeof to === "number" &&
+ typeof p === "number") {
+ return mixNumber(from, to, p);
+ }
+ const mixer = getMixer(from);
+ return mixer(from, to);
+}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/interpolate.mjs
+
+
+
+
+
+
+
+function createMixers(output, ease, customMixer) {
+ const mixers = [];
+ const mixerFactory = customMixer || mix;
+ const numMixers = output.length - 1;
+ for (let i = 0; i < numMixers; i++) {
+ let mixer = mixerFactory(output[i], output[i + 1]);
+ if (ease) {
+ const easingFunction = Array.isArray(ease) ? ease[i] || noop_noop : ease;
+ mixer = pipe(easingFunction, mixer);
+ }
+ mixers.push(mixer);
+ }
+ return mixers;
+}
+/**
+ * Create a function that maps from a numerical input array to a generic output array.
+ *
+ * Accepts:
+ * - Numbers
+ * - Colors (hex, hsl, hsla, rgb, rgba)
+ * - Complex (combinations of one or more numbers or strings)
+ *
+ * ```jsx
+ * const mixColor = interpolate([0, 1], ['#fff', '#000'])
+ *
+ * mixColor(0.5) // 'rgba(128, 128, 128, 1)'
+ * ```
+ *
+ * TODO Revist this approach once we've moved to data models for values,
+ * probably not needed to pregenerate mixer functions.
+ *
+ * @public
+ */
+function interpolate(input, output, { clamp: isClamp = true, ease, mixer } = {}) {
+ const inputLength = input.length;
+ errors_invariant(inputLength === output.length, "Both input and output ranges must be the same length");
+ /**
+ * If we're only provided a single input, we can just make a function
+ * that returns the output.
+ */
+ if (inputLength === 1)
+ return () => output[0];
+ if (inputLength === 2 && input[0] === input[1])
+ return () => output[1];
+ // If input runs highest -> lowest, reverse both arrays
+ if (input[0] > input[inputLength - 1]) {
+ input = [...input].reverse();
+ output = [...output].reverse();
+ }
+ const mixers = createMixers(output, ease, mixer);
+ const numMixers = mixers.length;
+ const interpolator = (v) => {
+ let i = 0;
+ if (numMixers > 1) {
+ for (; i < input.length - 2; i++) {
+ if (v < input[i + 1])
+ break;
+ }
+ }
+ const progressInRange = progress(input[i], input[i + 1], v);
+ return mixers[i](progressInRange);
+ };
+ return isClamp
+ ? (v) => interpolator(clamp_clamp(input[0], input[inputLength - 1], v))
+ : interpolator;
+}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/offsets/fill.mjs
+
+
+
+function fillOffset(offset, remaining) {
+ const min = offset[offset.length - 1];
+ for (let i = 1; i <= remaining; i++) {
+ const offsetProgress = progress(0, remaining, i);
+ offset.push(mixNumber(min, 1, offsetProgress));
+ }
+}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/offsets/default.mjs
+
+
+function defaultOffset(arr) {
+ const offset = [0];
+ fillOffset(offset, arr.length - 1);
+ return offset;
+}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/offsets/time.mjs
+function convertOffsetToTimes(offset, duration) {
+ return offset.map((o) => o * duration);
+}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/generators/keyframes.mjs
+
+
+
+
+
+
+
+function defaultEasing(values, easing) {
+ return values.map(() => easing || easeInOut).splice(0, values.length - 1);
+}
+function keyframes_keyframes({ duration = 300, keyframes: keyframeValues, times, ease = "easeInOut", }) {
+ /**
+ * Easing functions can be externally defined as strings. Here we convert them
+ * into actual functions.
+ */
+ const easingFunctions = isEasingArray(ease)
+ ? ease.map(easingDefinitionToFunction)
+ : easingDefinitionToFunction(ease);
+ /**
+ * This is the Iterator-spec return value. We ensure it's mutable rather than using a generator
+ * to reduce GC during animation.
+ */
+ const state = {
+ done: false,
+ value: keyframeValues[0],
+ };
+ /**
+ * Create a times array based on the provided 0-1 offsets
+ */
+ const absoluteTimes = convertOffsetToTimes(
+ // Only use the provided offsets if they're the correct length
+ // TODO Maybe we should warn here if there's a length mismatch
+ times && times.length === keyframeValues.length
+ ? times
+ : defaultOffset(keyframeValues), duration);
+ const mapTimeToKeyframe = interpolate(absoluteTimes, keyframeValues, {
+ ease: Array.isArray(easingFunctions)
+ ? easingFunctions
+ : defaultEasing(keyframeValues, easingFunctions),
+ });
+ return {
+ calculatedDuration: duration,
+ next: (t) => {
+ state.value = mapTimeToKeyframe(t);
+ state.done = t >= duration;
+ return state;
+ },
+ };
+}
+
+
+
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/generators/utils/calc-duration.mjs
/**
* Implement a practical max duration for keyframe generation
@@ -20036,7 +20227,31 @@ function calcGeneratorDuration(generator) {
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/js/index.mjs
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs
+
+
+
+const frameloopDriver = (update) => {
+ const passTimestamp = ({ timestamp }) => update(timestamp);
+ return {
+ start: () => frame_frame.update(passTimestamp, true),
+ stop: () => cancelFrame(passTimestamp),
+ /**
+ * If we're processing this frame we can use the
+ * framelocked timestamp to keep things in sync.
+ */
+ now: () => (frameData.isProcessing ? frameData.timestamp : time.now()),
+ };
+};
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs
+
+
+
+
+
@@ -20046,117 +20261,182 @@ function calcGeneratorDuration(generator) {
-const types = {
+const generators = {
decay: inertia,
inertia: inertia,
tween: keyframes_keyframes,
keyframes: keyframes_keyframes,
spring: spring,
};
+const percentToProgress = (percent) => percent / 100;
/**
- * Animate a single value on the main thread.
- *
- * This function is written, where functionality overlaps,
- * to be largely spec-compliant with WAAPI to allow fungibility
- * between the two.
+ * Animation that runs on the main thread. Designed to be WAAPI-spec in the subset of
+ * features we expose publically. Mostly the compatibility is to ensure visual identity
+ * between both WAAPI and main thread animations.
*/
-function animateValue({ autoplay = true, delay = 0, driver = frameloopDriver, keyframes: keyframes$1, type = "keyframes", repeat = 0, repeatDelay = 0, repeatType = "loop", onPlay, onStop, onComplete, onUpdate, ...options }) {
- let speed = 1;
- let hasStopped = false;
- let resolveFinishedPromise;
- let currentFinishedPromise;
- /**
- * Resolve the current Promise every time we enter the
- * finished state. This is WAAPI-compatible behaviour.
- */
- const updateFinishedPromise = () => {
- currentFinishedPromise = new Promise((resolve) => {
- resolveFinishedPromise = resolve;
- });
- };
- // Create the first finished promise
- updateFinishedPromise();
- let animationDriver;
- const generatorFactory = types[type] || keyframes_keyframes;
- /**
- * If this isn't the keyframes generator and we've been provided
- * strings as keyframes, we need to interpolate these.
- * TODO: Support velocity for units and complex value types/
- */
- let mapNumbersToKeyframes;
- if (generatorFactory !== keyframes_keyframes &&
- typeof keyframes$1[0] !== "number") {
- mapNumbersToKeyframes = interpolate([0, 100], keyframes$1, {
- clamp: false,
- });
- keyframes$1 = [0, 100];
+class MainThreadAnimation extends BaseAnimation {
+ constructor({ KeyframeResolver: KeyframeResolver$1 = KeyframeResolver, ...options }) {
+ super(options);
+ /**
+ * The time at which the animation was paused.
+ */
+ this.holdTime = null;
+ /**
+ * The time at which the animation was started.
+ */
+ this.startTime = null;
+ /**
+ * The time at which the animation was cancelled.
+ */
+ this.cancelTime = null;
+ /**
+ * The current time of the animation.
+ */
+ this.currentTime = 0;
+ /**
+ * Playback speed as a factor. 0 would be stopped, -1 reverse and 2 double speed.
+ */
+ this.playbackSpeed = 1;
+ /**
+ * The state of the animation to apply when the animation is resolved. This
+ * allows calls to the public API to control the animation before it is resolved,
+ * without us having to resolve it first.
+ */
+ this.pendingPlayState = "running";
+ this.state = "idle";
+ /**
+ * This method is bound to the instance to fix a pattern where
+ * animation.stop is returned as a reference from a useEffect.
+ */
+ this.stop = () => {
+ this.resolver.cancel();
+ this.isStopped = true;
+ if (this.state === "idle")
+ return;
+ this.teardown();
+ const { onStop } = this.options;
+ onStop && onStop();
+ };
+ const { name, motionValue, keyframes } = this.options;
+ const onResolved = (resolvedKeyframes, finalKeyframe) => this.onKeyframesResolved(resolvedKeyframes, finalKeyframe);
+ if (name && motionValue && motionValue.owner) {
+ this.resolver = motionValue.owner.resolveKeyframes(keyframes, onResolved, name, motionValue);
+ }
+ else {
+ this.resolver = new KeyframeResolver$1(keyframes, onResolved, name, motionValue);
+ }
+ this.resolver.scheduleResolve();
}
- const generator = generatorFactory({ ...options, keyframes: keyframes$1 });
- let mirroredGenerator;
- if (repeatType === "mirror") {
- mirroredGenerator = generatorFactory({
- ...options,
- keyframes: [...keyframes$1].reverse(),
- velocity: -(options.velocity || 0),
- });
+ initPlayback(keyframes$1) {
+ const { type = "keyframes", repeat = 0, repeatDelay = 0, repeatType, velocity = 0, } = this.options;
+ const generatorFactory = generators[type] || keyframes_keyframes;
+ /**
+ * If our generator doesn't support mixing numbers, we need to replace keyframes with
+ * [0, 100] and then make a function that maps that to the actual keyframes.
+ *
+ * 100 is chosen instead of 1 as it works nicer with spring animations.
+ */
+ let mapPercentToKeyframes;
+ let mirroredGenerator;
+ if (generatorFactory !== keyframes_keyframes &&
+ typeof keyframes$1[0] !== "number") {
+ if (false) {}
+ mapPercentToKeyframes = pipe(percentToProgress, mix(keyframes$1[0], keyframes$1[1]));
+ keyframes$1 = [0, 100];
+ }
+ const generator = generatorFactory({ ...this.options, keyframes: keyframes$1 });
+ /**
+ * If we have a mirror repeat type we need to create a second generator that outputs the
+ * mirrored (not reversed) animation and later ping pong between the two generators.
+ */
+ if (repeatType === "mirror") {
+ mirroredGenerator = generatorFactory({
+ ...this.options,
+ keyframes: [...keyframes$1].reverse(),
+ velocity: -velocity,
+ });
+ }
+ /**
+ * If duration is undefined and we have repeat options,
+ * we need to calculate a duration from the generator.
+ *
+ * We set it to the generator itself to cache the duration.
+ * Any timeline resolver will need to have already precalculated
+ * the duration by this step.
+ */
+ if (generator.calculatedDuration === null) {
+ generator.calculatedDuration = calcGeneratorDuration(generator);
+ }
+ const { calculatedDuration } = generator;
+ const resolvedDuration = calculatedDuration + repeatDelay;
+ const totalDuration = resolvedDuration * (repeat + 1) - repeatDelay;
+ return {
+ generator,
+ mirroredGenerator,
+ mapPercentToKeyframes,
+ calculatedDuration,
+ resolvedDuration,
+ totalDuration,
+ };
}
- let playState = "idle";
- let holdTime = null;
- let startTime = null;
- let cancelTime = null;
- /**
- * If duration is undefined and we have repeat options,
- * we need to calculate a duration from the generator.
- *
- * We set it to the generator itself to cache the duration.
- * Any timeline resolver will need to have already precalculated
- * the duration by this step.
- */
- if (generator.calculatedDuration === null && repeat) {
- generator.calculatedDuration = calcGeneratorDuration(generator);
- }
- const { calculatedDuration } = generator;
- let resolvedDuration = Infinity;
- let totalDuration = Infinity;
- if (calculatedDuration !== null) {
- resolvedDuration = calculatedDuration + repeatDelay;
- totalDuration = resolvedDuration * (repeat + 1) - repeatDelay;
- }
- let currentTime = 0;
- const tick = (timestamp) => {
- if (startTime === null)
- return;
+ onPostResolved() {
+ const { autoplay = true } = this.options;
+ this.play();
+ if (this.pendingPlayState === "paused" || !autoplay) {
+ this.pause();
+ }
+ else {
+ this.state = this.pendingPlayState;
+ }
+ }
+ tick(timestamp, sample = false) {
+ const { resolved } = this;
+ // If the animations has failed to resolve, return the final keyframe.
+ if (!resolved) {
+ const { keyframes } = this.options;
+ return { done: true, value: keyframes[keyframes.length - 1] };
+ }
+ const { finalKeyframe, generator, mirroredGenerator, mapPercentToKeyframes, keyframes, calculatedDuration, totalDuration, resolvedDuration, } = resolved;
+ if (this.startTime === null)
+ return generator.next(0);
+ const { delay, repeat, repeatType, repeatDelay, onUpdate } = this.options;
/**
* requestAnimationFrame timestamps can come through as lower than
* the startTime as set by performance.now(). Here we prevent this,
* though in the future it could be possible to make setting startTime
* a pending operation that gets resolved here.
*/
- if (speed > 0)
- startTime = Math.min(startTime, timestamp);
- if (speed < 0)
- startTime = Math.min(timestamp - totalDuration / speed, startTime);
- if (holdTime !== null) {
- currentTime = holdTime;
+ if (this.speed > 0) {
+ this.startTime = Math.min(this.startTime, timestamp);
+ }
+ else if (this.speed < 0) {
+ this.startTime = Math.min(timestamp - totalDuration / this.speed, this.startTime);
+ }
+ // Update currentTime
+ if (sample) {
+ this.currentTime = timestamp;
+ }
+ else if (this.holdTime !== null) {
+ this.currentTime = this.holdTime;
}
else {
// Rounding the time because floating point arithmetic is not always accurate, e.g. 3000.367 - 1000.367 =
// 2000.0000000000002. This is a problem when we are comparing the currentTime with the duration, for
// example.
- currentTime = Math.round(timestamp - startTime) * speed;
+ this.currentTime =
+ Math.round(timestamp - this.startTime) * this.speed;
}
// Rebase on delay
- const timeWithoutDelay = currentTime - delay * (speed >= 0 ? 1 : -1);
- const isInDelayPhase = speed >= 0 ? timeWithoutDelay < 0 : timeWithoutDelay > totalDuration;
- currentTime = Math.max(timeWithoutDelay, 0);
- /**
- * If this animation has finished, set the current time
- * to the total duration.
- */
- if (playState === "finished" && holdTime === null) {
- currentTime = totalDuration;
+ const timeWithoutDelay = this.currentTime - delay * (this.speed >= 0 ? 1 : -1);
+ const isInDelayPhase = this.speed >= 0
+ ? timeWithoutDelay < 0
+ : timeWithoutDelay > totalDuration;
+ this.currentTime = Math.max(timeWithoutDelay, 0);
+ // If this animation has finished, set the current time to the total duration.
+ if (this.state === "finished" && this.holdTime === null) {
+ this.currentTime = totalDuration;
}
- let elapsed = currentTime;
+ let elapsed = this.currentTime;
let frameGenerator = generator;
if (repeat) {
/**
@@ -20164,7 +20444,7 @@ function animateValue({ autoplay = true, delay = 0, driver = frameloopDriver, ke
* than duration we'll get values like 2.5 (midway through the
* third iteration)
*/
- const progress = currentTime / resolvedDuration;
+ const progress = Math.min(this.currentTime, totalDuration) / resolvedDuration;
/**
* Get the current iteration (0 indexed). For instance the floor of
* 2.5 is 2.
@@ -20187,8 +20467,8 @@ function animateValue({ autoplay = true, delay = 0, driver = frameloopDriver, ke
/**
* Reverse progress if we're not running in "normal" direction
*/
- const iterationIsOdd = Boolean(currentIteration % 2);
- if (iterationIsOdd) {
+ const isOddIteration = Boolean(currentIteration % 2);
+ if (isOddIteration) {
if (repeatType === "reverse") {
iterationProgress = 1 - iterationProgress;
if (repeatDelay) {
@@ -20199,11 +20479,7 @@ function animateValue({ autoplay = true, delay = 0, driver = frameloopDriver, ke
frameGenerator = mirroredGenerator;
}
}
- let p = clamp_clamp(0, 1, iterationProgress);
- if (currentTime > totalDuration) {
- p = repeatType === "reverse" && iterationIsOdd ? 1 : 0;
- }
- elapsed = p * resolvedDuration;
+ elapsed = clamp_clamp(0, 1, iterationProgress) * resolvedDuration;
}
/**
* If we're in negative time, set state as the initial keyframe.
@@ -20211,149 +20487,222 @@ function animateValue({ autoplay = true, delay = 0, driver = frameloopDriver, ke
* instantly.
*/
const state = isInDelayPhase
- ? { done: false, value: keyframes$1[0] }
+ ? { done: false, value: keyframes[0] }
: frameGenerator.next(elapsed);
- if (mapNumbersToKeyframes) {
- state.value = mapNumbersToKeyframes(state.value);
+ if (mapPercentToKeyframes) {
+ state.value = mapPercentToKeyframes(state.value);
}
let { done } = state;
if (!isInDelayPhase && calculatedDuration !== null) {
- done = speed >= 0 ? currentTime >= totalDuration : currentTime <= 0;
+ done =
+ this.speed >= 0
+ ? this.currentTime >= totalDuration
+ : this.currentTime <= 0;
+ }
+ const isAnimationFinished = this.holdTime === null &&
+ (this.state === "finished" || (this.state === "running" && done));
+ if (isAnimationFinished && finalKeyframe !== undefined) {
+ state.value = getFinalKeyframe(keyframes, this.options, finalKeyframe);
}
- const isAnimationFinished = holdTime === null &&
- (playState === "finished" || (playState === "running" && done));
if (onUpdate) {
onUpdate(state.value);
}
if (isAnimationFinished) {
- finish();
+ this.finish();
}
return state;
- };
- const stopAnimationDriver = () => {
- animationDriver && animationDriver.stop();
- animationDriver = undefined;
- };
- const cancel = () => {
- playState = "idle";
- stopAnimationDriver();
- resolveFinishedPromise();
- updateFinishedPromise();
- startTime = cancelTime = null;
- };
- const finish = () => {
- playState = "finished";
- onComplete && onComplete();
- stopAnimationDriver();
- resolveFinishedPromise();
- };
- const play = () => {
- if (hasStopped)
+ }
+ get duration() {
+ const { resolved } = this;
+ return resolved ? millisecondsToSeconds(resolved.calculatedDuration) : 0;
+ }
+ get time() {
+ return millisecondsToSeconds(this.currentTime);
+ }
+ set time(newTime) {
+ newTime = secondsToMilliseconds(newTime);
+ this.currentTime = newTime;
+ if (this.holdTime !== null || this.speed === 0) {
+ this.holdTime = newTime;
+ }
+ else if (this.driver) {
+ this.startTime = this.driver.now() - newTime / this.speed;
+ }
+ }
+ get speed() {
+ return this.playbackSpeed;
+ }
+ set speed(newSpeed) {
+ const hasChanged = this.playbackSpeed !== newSpeed;
+ this.playbackSpeed = newSpeed;
+ if (hasChanged) {
+ this.time = millisecondsToSeconds(this.currentTime);
+ }
+ }
+ play() {
+ if (!this.resolver.isScheduled) {
+ this.resolver.resume();
+ }
+ if (!this._resolved) {
+ this.pendingPlayState = "running";
+ return;
+ }
+ if (this.isStopped)
return;
- if (!animationDriver)
- animationDriver = driver(tick);
- const now = animationDriver.now();
+ const { driver = frameloopDriver, onPlay } = this.options;
+ if (!this.driver) {
+ this.driver = driver((timestamp) => this.tick(timestamp));
+ }
onPlay && onPlay();
- if (holdTime !== null) {
- startTime = now - holdTime;
+ const now = this.driver.now();
+ if (this.holdTime !== null) {
+ this.startTime = now - this.holdTime;
}
- else if (!startTime || playState === "finished") {
- startTime = now;
+ else if (!this.startTime || this.state === "finished") {
+ this.startTime = now;
}
- if (playState === "finished") {
- updateFinishedPromise();
+ if (this.state === "finished") {
+ this.updateFinishedPromise();
}
- cancelTime = startTime;
- holdTime = null;
+ this.cancelTime = this.startTime;
+ this.holdTime = null;
/**
* Set playState to running only after we've used it in
* the previous logic.
*/
- playState = "running";
- animationDriver.start();
- };
- if (autoplay) {
- play();
+ this.state = "running";
+ this.driver.start();
}
- const controls = {
- then(resolve, reject) {
- return currentFinishedPromise.then(resolve, reject);
- },
- get time() {
- return millisecondsToSeconds(currentTime);
- },
- set time(newTime) {
- newTime = secondsToMilliseconds(newTime);
- currentTime = newTime;
- if (holdTime !== null || !animationDriver || speed === 0) {
- holdTime = newTime;
- }
- else {
- startTime = animationDriver.now() - newTime / speed;
- }
- },
- get duration() {
- const duration = generator.calculatedDuration === null
- ? calcGeneratorDuration(generator)
- : generator.calculatedDuration;
- return millisecondsToSeconds(duration);
- },
- get speed() {
- return speed;
- },
- set speed(newSpeed) {
- if (newSpeed === speed || !animationDriver)
- return;
- speed = newSpeed;
- controls.time = millisecondsToSeconds(currentTime);
- },
- get state() {
- return playState;
- },
- play,
- pause: () => {
- playState = "paused";
- holdTime = currentTime;
- },
- stop: () => {
- hasStopped = true;
- if (playState === "idle")
- return;
- playState = "idle";
- onStop && onStop();
- cancel();
- },
- cancel: () => {
- if (cancelTime !== null)
- tick(cancelTime);
- cancel();
- },
- complete: () => {
- playState = "finished";
- },
- sample: (elapsed) => {
- startTime = 0;
- return tick(elapsed);
- },
- };
- return controls;
+ pause() {
+ var _a;
+ if (!this._resolved) {
+ this.pendingPlayState = "paused";
+ return;
+ }
+ this.state = "paused";
+ this.holdTime = (_a = this.currentTime) !== null && _a !== void 0 ? _a : 0;
+ }
+ complete() {
+ if (this.state !== "running") {
+ this.play();
+ }
+ this.pendingPlayState = this.state = "finished";
+ this.holdTime = null;
+ }
+ finish() {
+ this.teardown();
+ this.state = "finished";
+ const { onComplete } = this.options;
+ onComplete && onComplete();
+ }
+ cancel() {
+ if (this.cancelTime !== null) {
+ this.tick(this.cancelTime);
+ }
+ this.teardown();
+ this.updateFinishedPromise();
+ }
+ teardown() {
+ this.state = "idle";
+ this.stopDriver();
+ this.resolveFinishedPromise();
+ this.updateFinishedPromise();
+ this.startTime = this.cancelTime = null;
+ this.resolver.cancel();
+ }
+ stopDriver() {
+ if (!this.driver)
+ return;
+ this.driver.stop();
+ this.driver = undefined;
+ }
+ sample(time) {
+ this.startTime = 0;
+ return this.tick(time, true);
+ }
+}
+// Legacy interface
+function animateValue(options) {
+ return new MainThreadAnimation(options);
}
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/memo.mjs
-function memo(callback) {
- let result;
- return () => {
- if (result === undefined)
- result = callback();
- return result;
- };
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/utils/is-bezier-definition.mjs
+const isBezierDefinition = (easing) => Array.isArray(easing) && typeof easing[0] === "number";
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/waapi/easing.mjs
+
+
+function isWaapiSupportedEasing(easing) {
+ return Boolean(!easing ||
+ (typeof easing === "string" && easing in supportedWaapiEasing) ||
+ isBezierDefinition(easing) ||
+ (Array.isArray(easing) && easing.every(isWaapiSupportedEasing)));
}
+const cubicBezierAsString = ([a, b, c, d]) => `cubic-bezier(${a}, ${b}, ${c}, ${d})`;
+const supportedWaapiEasing = {
+ linear: "linear",
+ ease: "ease",
+ easeIn: "ease-in",
+ easeOut: "ease-out",
+ easeInOut: "ease-in-out",
+ circIn: cubicBezierAsString([0, 0.65, 0.55, 1]),
+ circOut: cubicBezierAsString([0.55, 0, 1, 0.45]),
+ backIn: cubicBezierAsString([0.31, 0.01, 0.66, -0.59]),
+ backOut: cubicBezierAsString([0.33, 1.53, 0.69, 0.99]),
+};
+function mapEasingToNativeEasingWithDefault(easing) {
+ return (mapEasingToNativeEasing(easing) ||
+ supportedWaapiEasing.easeOut);
+}
+function mapEasingToNativeEasing(easing) {
+ if (!easing) {
+ return undefined;
+ }
+ else if (isBezierDefinition(easing)) {
+ return cubicBezierAsString(easing);
+ }
+ else if (Array.isArray(easing)) {
+ return easing.map(mapEasingToNativeEasingWithDefault);
+ }
+ else {
+ return supportedWaapiEasing[easing];
+ }
+}
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/waapi/index.mjs
+
+
+function animateStyle(element, valueName, keyframes, { delay = 0, duration = 300, repeat = 0, repeatType = "loop", ease, times, } = {}) {
+ const keyframeOptions = { [valueName]: keyframes };
+ if (times)
+ keyframeOptions.offset = times;
+ const easing = mapEasingToNativeEasing(ease);
+ /**
+ * If this is an easing array, apply to keyframes, not animation as a whole
+ */
+ if (Array.isArray(easing))
+ keyframeOptions.easing = easing;
+ return element.animate(keyframeOptions, {
+ delay,
+ duration,
+ easing: !Array.isArray(easing) ? easing : "linear",
+ fill: "both",
+ iterations: repeat + 1,
+ direction: repeatType === "reverse" ? "alternate" : "normal",
+ });
+}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs
+
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/waapi/create-accelerated-animation.mjs
@@ -20372,7 +20721,9 @@ const acceleratedValues = new Set([
"clipPath",
"filter",
"transform",
- "backgroundColor",
+ // TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
+ // or until we implement support for linear() easing.
+ // "background-color"
]);
/**
* 10ms is chosen here as it strikes a balance between smooth
@@ -20384,453 +20735,264 @@ const sampleDelta = 10; //ms
* Implement a practical max duration for keyframe generation
* to prevent infinite loops
*/
-const create_accelerated_animation_maxDuration = 20000;
-const requiresPregeneratedKeyframes = (valueName, options) => options.type === "spring" ||
- valueName === "backgroundColor" ||
- !isWaapiSupportedEasing(options.ease);
-function createAcceleratedAnimation(value, valueName, { onUpdate, onComplete, ...options }) {
- const canAccelerateAnimation = supportsWaapi() &&
- acceleratedValues.has(valueName) &&
- !options.repeatDelay &&
- options.repeatType !== "mirror" &&
- options.damping !== 0 &&
- options.type !== "inertia";
- if (!canAccelerateAnimation)
- return false;
+const AcceleratedAnimation_maxDuration = 20000;
+/**
+ * Check if an animation can run natively via WAAPI or requires pregenerated keyframes.
+ * WAAPI doesn't support spring or function easings so we run these as JS animation before
+ * handing off.
+ */
+function requiresPregeneratedKeyframes(options) {
+ return (options.type === "spring" ||
+ options.name === "backgroundColor" ||
+ !isWaapiSupportedEasing(options.ease));
+}
+function pregenerateKeyframes(keyframes, options) {
/**
- * TODO: Unify with js/index
+ * Create a main-thread animation to pregenerate keyframes.
+ * We sample this at regular intervals to generate keyframes that we then
+ * linearly interpolate between.
*/
- let hasStopped = false;
- let resolveFinishedPromise;
- let currentFinishedPromise;
+ const sampleAnimation = new MainThreadAnimation({
+ ...options,
+ keyframes,
+ repeat: 0,
+ delay: 0,
+ isGenerator: true,
+ });
+ let state = { done: false, value: keyframes[0] };
+ const pregeneratedKeyframes = [];
/**
- * Resolve the current Promise every time we enter the
- * finished state. This is WAAPI-compatible behaviour.
+ * Bail after 20 seconds of pre-generated keyframes as it's likely
+ * we're heading for an infinite loop.
*/
- const updateFinishedPromise = () => {
- currentFinishedPromise = new Promise((resolve) => {
- resolveFinishedPromise = resolve;
- });
+ let t = 0;
+ while (!state.done && t < AcceleratedAnimation_maxDuration) {
+ state = sampleAnimation.sample(t);
+ pregeneratedKeyframes.push(state.value);
+ t += sampleDelta;
+ }
+ return {
+ times: undefined,
+ keyframes: pregeneratedKeyframes,
+ duration: t - sampleDelta,
+ ease: "linear",
};
- // Create the first finished promise
- updateFinishedPromise();
- let { keyframes, duration = 300, ease, times } = options;
- /**
- * If this animation needs pre-generated keyframes then generate.
- */
- if (requiresPregeneratedKeyframes(valueName, options)) {
- const sampleAnimation = animateValue({
- ...options,
- repeat: 0,
- delay: 0,
- });
- let state = { done: false, value: keyframes[0] };
- const pregeneratedKeyframes = [];
+}
+class AcceleratedAnimation extends BaseAnimation {
+ constructor(options) {
+ super(options);
+ const { name, motionValue, keyframes } = this.options;
+ this.resolver = new DOMKeyframesResolver(keyframes, (resolvedKeyframes, finalKeyframe) => this.onKeyframesResolved(resolvedKeyframes, finalKeyframe), name, motionValue);
+ this.resolver.scheduleResolve();
+ }
+ initPlayback(keyframes, finalKeyframe) {
+ var _a;
+ let { duration = 300, times, ease, type, motionValue, name, } = this.options;
/**
- * Bail after 20 seconds of pre-generated keyframes as it's likely
- * we're heading for an infinite loop.
+ * If element has since been unmounted, return false to indicate
+ * the animation failed to initialised.
*/
- let t = 0;
- while (!state.done && t < create_accelerated_animation_maxDuration) {
- state = sampleAnimation.sample(t);
- pregeneratedKeyframes.push(state.value);
- t += sampleDelta;
+ if (!((_a = motionValue.owner) === null || _a === void 0 ? void 0 : _a.current)) {
+ return false;
}
- times = undefined;
- keyframes = pregeneratedKeyframes;
- duration = t - sampleDelta;
- ease = "linear";
- }
- const animation = animateStyle(value.owner.current, valueName, keyframes, {
- ...options,
- duration,
/**
- * This function is currently not called if ease is provided
- * as a function so the cast is safe.
- *
- * However it would be possible for a future refinement to port
- * in easing pregeneration from Motion One for browsers that
- * support the upcoming `linear()` easing function.
+ * If this animation needs pre-generated keyframes then generate.
*/
- ease: ease,
- times,
- });
- /**
- * WAAPI animations don't resolve startTime synchronously. But a blocked
- * thread could delay the startTime resolution by a noticeable amount.
- * For synching handoff animations with the new Motion animation we want
- * to ensure startTime is synchronously set.
- */
- if (options.syncStart) {
- animation.startTime = frameData.isProcessing
- ? frameData.timestamp
- : document.timeline
- ? document.timeline.currentTime
- : performance.now();
- }
- const cancelAnimation = () => animation.cancel();
- const safeCancel = () => {
- frame_frame.update(cancelAnimation);
- resolveFinishedPromise();
- updateFinishedPromise();
- };
- /**
- * Prefer the `onfinish` prop as it's more widely supported than
- * the `finished` promise.
- *
- * Here, we synchronously set the provided MotionValue to the end
- * keyframe. If we didn't, when the WAAPI animation is finished it would
- * be removed from the element which would then revert to its old styles.
- */
- animation.onfinish = () => {
- value.set(getFinalKeyframe(keyframes, options));
- onComplete && onComplete();
- safeCancel();
- };
- /**
- * Animation interrupt callback.
- */
- const controls = {
- then(resolve, reject) {
- return currentFinishedPromise.then(resolve, reject);
- },
- attachTimeline(timeline) {
- animation.timeline = timeline;
- animation.onfinish = null;
- return noop_noop;
- },
- get time() {
- return millisecondsToSeconds(animation.currentTime || 0);
- },
- set time(newTime) {
- animation.currentTime = secondsToMilliseconds(newTime);
- },
- get speed() {
- return animation.playbackRate;
- },
- set speed(newSpeed) {
- animation.playbackRate = newSpeed;
- },
- get duration() {
- return millisecondsToSeconds(duration);
- },
- play: () => {
- if (hasStopped)
- return;
- animation.play();
- /**
- * Cancel any pending cancel tasks
- */
- cancelFrame(cancelAnimation);
- },
- pause: () => animation.pause(),
- stop: () => {
- hasStopped = true;
- if (animation.playState === "idle")
- return;
+ if (requiresPregeneratedKeyframes(this.options)) {
+ const { onComplete, onUpdate, motionValue, ...options } = this.options;
+ const pregeneratedAnimation = pregenerateKeyframes(keyframes, options);
+ keyframes = pregeneratedAnimation.keyframes;
+ // If this is a very short animation, ensure we have
+ // at least two keyframes to animate between as older browsers
+ // can't animate between a single keyframe.
+ if (keyframes.length === 1) {
+ keyframes[1] = keyframes[0];
+ }
+ duration = pregeneratedAnimation.duration;
+ times = pregeneratedAnimation.times;
+ ease = pregeneratedAnimation.ease;
+ type = "keyframes";
+ }
+ const animation = animateStyle(motionValue.owner.current, name, keyframes, { ...this.options, duration, times, ease });
+ // Override the browser calculated startTime with one synchronised to other JS
+ // and WAAPI animations starting this event loop.
+ animation.startTime = time.now();
+ if (this.pendingTimeline) {
+ animation.timeline = this.pendingTimeline;
+ this.pendingTimeline = undefined;
+ }
+ else {
/**
- * WAAPI doesn't natively have any interruption capabilities.
+ * Prefer the `onfinish` prop as it's more widely supported than
+ * the `finished` promise.
*
- * Rather than read commited styles back out of the DOM, we can
- * create a renderless JS animation and sample it twice to calculate
- * its current value, "previous" value, and therefore allow
- * Motion to calculate velocity for any subsequent animation.
+ * Here, we synchronously set the provided MotionValue to the end
+ * keyframe. If we didn't, when the WAAPI animation is finished it would
+ * be removed from the element which would then revert to its old styles.
*/
- const { currentTime } = animation;
- if (currentTime) {
- const sampleAnimation = animateValue({
- ...options,
- autoplay: false,
- });
- value.setWithVelocity(sampleAnimation.sample(currentTime - sampleDelta).value, sampleAnimation.sample(currentTime).value, sampleDelta);
- }
- safeCancel();
- },
- complete: () => animation.finish(),
- cancel: safeCancel,
- };
- return controls;
-}
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/instant.mjs
-
-
-
-function createInstantAnimation({ keyframes, delay, onUpdate, onComplete, }) {
- const setValue = () => {
- onUpdate && onUpdate(keyframes[keyframes.length - 1]);
- onComplete && onComplete();
- /**
- * TODO: As this API grows it could make sense to always return
- * animateValue. This will be a bigger project as animateValue
- * is frame-locked whereas this function resolves instantly.
- * This is a behavioural change and also has ramifications regarding
- * assumptions within tests.
- */
+ animation.onfinish = () => {
+ const { onComplete } = this.options;
+ motionValue.set(getFinalKeyframe(keyframes, this.options, finalKeyframe));
+ onComplete && onComplete();
+ this.cancel();
+ this.resolveFinishedPromise();
+ };
+ }
return {
- time: 0,
- speed: 1,
- duration: 0,
- play: (noop_noop),
- pause: (noop_noop),
- stop: (noop_noop),
- then: (resolve) => {
- resolve();
- return Promise.resolve();
- },
- cancel: (noop_noop),
- complete: (noop_noop),
+ animation,
+ duration,
+ times,
+ type,
+ ease,
+ keyframes: keyframes,
};
- };
- return delay
- ? animateValue({
- keyframes: [0, 1],
- duration: 0,
- delay,
- onComplete: setValue,
- })
- : setValue();
-}
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs
-
-
-const underDampedSpring = {
- type: "spring",
- stiffness: 500,
- damping: 25,
- restSpeed: 10,
-};
-const criticallyDampedSpring = (target) => ({
- type: "spring",
- stiffness: 550,
- damping: target === 0 ? 2 * Math.sqrt(550) : 30,
- restSpeed: 10,
-});
-const keyframesTransition = {
- type: "keyframes",
- duration: 0.8,
-};
-/**
- * Default easing curve is a slightly shallower version of
- * the default browser easing curve.
- */
-const ease = {
- type: "keyframes",
- ease: [0.25, 0.1, 0.35, 1],
- duration: 0.3,
-};
-const getDefaultTransition = (valueKey, { keyframes }) => {
- if (keyframes.length > 2) {
- return keyframesTransition;
}
- else if (transformProps.has(valueKey)) {
- return valueKey.startsWith("scale")
- ? criticallyDampedSpring(keyframes[1])
- : underDampedSpring;
+ get duration() {
+ const { resolved } = this;
+ if (!resolved)
+ return 0;
+ const { duration } = resolved;
+ return millisecondsToSeconds(duration);
}
- return ease;
-};
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/is-animatable.mjs
-
-
-/**
- * Check if a value is animatable. Examples:
- *
- * ✅: 100, "100px", "#fff"
- * ❌: "block", "url(2.jpg)"
- * @param value
- *
- * @internal
- */
-const isAnimatable = (key, value) => {
- // If the list of keys tat might be non-animatable grows, replace with Set
- if (key === "zIndex")
- return false;
- // If it's a number or a keyframes array, we can animate it. We might at some point
- // need to do a deep isAnimatable check of keyframes, or let Popmotion handle this,
- // but for now lets leave it like this for performance reasons
- if (typeof value === "number" || Array.isArray(value))
- return true;
- if (typeof value === "string" && // It's animatable if we have a string
- (complex.test(value) || value === "0") && // And it contains numbers and/or colors
- !value.startsWith("url(") // Unless it starts with "url("
- ) {
- return true;
+ get time() {
+ const { resolved } = this;
+ if (!resolved)
+ return 0;
+ const { animation } = resolved;
+ return millisecondsToSeconds(animation.currentTime || 0);
}
- return false;
-};
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/types/complex/filter.mjs
-
-
-
-/**
- * Properties that should default to 1 or 100%
- */
-const maxDefaults = new Set(["brightness", "contrast", "saturate", "opacity"]);
-function applyDefaultFilter(v) {
- const [name, value] = v.slice(0, -1).split("(");
- if (name === "drop-shadow")
- return v;
- const [number] = value.match(floatRegex) || [];
- if (!number)
- return v;
- const unit = value.replace(number, "");
- let defaultValue = maxDefaults.has(name) ? 1 : 0;
- if (number !== value)
- defaultValue *= 100;
- return name + "(" + defaultValue + unit + ")";
-}
-const functionRegex = /([a-z-]*)\(.*?\)/g;
-const filter = {
- ...complex,
- getAnimatableNone: (v) => {
- const functions = v.match(functionRegex);
- return functions ? functions.map(applyDefaultFilter).join(" ") : v;
- },
-};
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/defaults.mjs
-
-
-
-
-/**
- * A map of default value types for common values
- */
-const defaultValueTypes = {
- ...numberValueTypes,
- // Color props
- color: color,
- backgroundColor: color,
- outlineColor: color,
- fill: color,
- stroke: color,
- // Border props
- borderColor: color,
- borderTopColor: color,
- borderRightColor: color,
- borderBottomColor: color,
- borderLeftColor: color,
- filter: filter,
- WebkitFilter: filter,
-};
-/**
- * Gets the default ValueType for the provided value key
- */
-const getDefaultValueType = (key) => defaultValueTypes[key];
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs
-
-
-
-
-function animatable_none_getAnimatableNone(key, value) {
- let defaultValueType = getDefaultValueType(key);
- if (defaultValueType !== filter)
- defaultValueType = complex;
- // If value is not recognised as animatable, ie "none", create an animatable version origin based on the target
- return defaultValueType.getAnimatableNone
- ? defaultValueType.getAnimatableNone(value)
- : undefined;
-}
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/is-zero-value-string.mjs
-/**
- * Check if the value is a zero value string like "0px" or "0%"
- */
-const isZeroValueString = (v) => /^0[^.\s]+$/.test(v);
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/is-none.mjs
-
-
-function isNone(value) {
- if (typeof value === "number") {
- return value === 0;
+ set time(newTime) {
+ const { resolved } = this;
+ if (!resolved)
+ return;
+ const { animation } = resolved;
+ animation.currentTime = secondsToMilliseconds(newTime);
}
- else if (value !== null) {
- return value === "none" || value === "0" || isZeroValueString(value);
+ get speed() {
+ const { resolved } = this;
+ if (!resolved)
+ return 1;
+ const { animation } = resolved;
+ return animation.playbackRate;
}
-}
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/keyframes.mjs
-
-
-
-
-function getKeyframes(value, valueName, target, transition) {
- const isTargetAnimatable = isAnimatable(valueName, target);
- let keyframes;
- if (Array.isArray(target)) {
- keyframes = [...target];
+ set speed(newSpeed) {
+ const { resolved } = this;
+ if (!resolved)
+ return;
+ const { animation } = resolved;
+ animation.playbackRate = newSpeed;
}
- else {
- keyframes = [null, target];
+ get state() {
+ const { resolved } = this;
+ if (!resolved)
+ return "idle";
+ const { animation } = resolved;
+ return animation.playState;
}
- const defaultOrigin = transition.from !== undefined ? transition.from : value.get();
- let animatableTemplateValue = undefined;
- const noneKeyframeIndexes = [];
- for (let i = 0; i < keyframes.length; i++) {
- /**
- * Fill null/wildcard keyframes
- */
- if (keyframes[i] === null) {
- keyframes[i] = i === 0 ? defaultOrigin : keyframes[i - 1];
+ /**
+ * Replace the default DocumentTimeline with another AnimationTimeline.
+ * Currently used for scroll animations.
+ */
+ attachTimeline(timeline) {
+ if (!this._resolved) {
+ this.pendingTimeline = timeline;
}
- if (isNone(keyframes[i])) {
- noneKeyframeIndexes.push(i);
+ else {
+ const { resolved } = this;
+ if (!resolved)
+ return noop_noop;
+ const { animation } = resolved;
+ animation.timeline = timeline;
+ animation.onfinish = null;
}
- // TODO: Clean this conditional, it works for now
- if (typeof keyframes[i] === "string" &&
- keyframes[i] !== "none" &&
- keyframes[i] !== "0") {
- animatableTemplateValue = keyframes[i];
+ return noop_noop;
+ }
+ play() {
+ if (this.isStopped)
+ return;
+ const { resolved } = this;
+ if (!resolved)
+ return;
+ const { animation } = resolved;
+ if (animation.playState === "finished") {
+ this.updateFinishedPromise();
}
+ animation.play();
+ }
+ pause() {
+ const { resolved } = this;
+ if (!resolved)
+ return;
+ const { animation } = resolved;
+ animation.pause();
}
- if (isTargetAnimatable &&
- noneKeyframeIndexes.length &&
- animatableTemplateValue) {
- for (let i = 0; i < noneKeyframeIndexes.length; i++) {
- const index = noneKeyframeIndexes[i];
- keyframes[index] = animatable_none_getAnimatableNone(valueName, animatableTemplateValue);
+ stop() {
+ this.resolver.cancel();
+ this.isStopped = true;
+ if (this.state === "idle")
+ return;
+ const { resolved } = this;
+ if (!resolved)
+ return;
+ const { animation, keyframes, duration, type, ease, times } = resolved;
+ if (animation.playState === "idle" ||
+ animation.playState === "finished") {
+ return;
+ }
+ /**
+ * WAAPI doesn't natively have any interruption capabilities.
+ *
+ * Rather than read commited styles back out of the DOM, we can
+ * create a renderless JS animation and sample it twice to calculate
+ * its current value, "previous" value, and therefore allow
+ * Motion to calculate velocity for any subsequent animation.
+ */
+ if (this.time) {
+ const { motionValue, onUpdate, onComplete, ...options } = this.options;
+ const sampleAnimation = new MainThreadAnimation({
+ ...options,
+ keyframes,
+ duration,
+ type,
+ ease,
+ times,
+ isGenerator: true,
+ });
+ const sampleTime = secondsToMilliseconds(this.time);
+ motionValue.setWithVelocity(sampleAnimation.sample(sampleTime - sampleDelta).value, sampleAnimation.sample(sampleTime).value, sampleDelta);
}
+ this.cancel();
+ }
+ complete() {
+ const { resolved } = this;
+ if (!resolved)
+ return;
+ resolved.animation.finish();
+ }
+ cancel() {
+ const { resolved } = this;
+ if (!resolved)
+ return;
+ resolved.animation.cancel();
+ }
+ static supports(options) {
+ const { motionValue, name, repeatDelay, repeatType, damping, type } = options;
+ return (supportsWaapi() &&
+ name &&
+ acceleratedValues.has(name) &&
+ motionValue &&
+ motionValue.owner &&
+ motionValue.owner.current instanceof HTMLElement &&
+ /**
+ * If we're outputting values to onUpdate then we can't use WAAPI as there's
+ * no way to read the value from WAAPI every frame.
+ */
+ !motionValue.owner.getProps().onUpdate &&
+ !repeatDelay &&
+ repeatType !== "mirror" &&
+ damping !== 0 &&
+ type !== "inertia");
}
- return keyframes;
-}
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/transitions.mjs
-/**
- * Decide whether a transition is defined on a given Transition.
- * This filters out orchestration options and returns true
- * if any options are left.
- */
-function isTransitionDefined({ when, delay: _delay, delayChildren, staggerChildren, staggerDirection, repeat, repeatType, repeatDelay, from, elapsed, ...transition }) {
- return !!Object.keys(transition).length;
-}
-function getValueTransition(transition, key) {
- return transition[key] || transition["default"] || transition;
}
@@ -20846,96 +21008,102 @@ function getValueTransition(transition, key) {
-
-const animateMotionValue = (valueName, value, target, transition = {}) => {
- return (onComplete) => {
- const valueTransition = getValueTransition(transition, valueName) || {};
- /**
- * Most transition values are currently completely overwritten by value-specific
- * transitions. In the future it'd be nicer to blend these transitions. But for now
- * delay actually does inherit from the root transition if not value-specific.
- */
- const delay = valueTransition.delay || transition.delay || 0;
- /**
- * Elapsed isn't a public transition option but can be passed through from
- * optimized appear effects in milliseconds.
- */
- let { elapsed = 0 } = transition;
- elapsed = elapsed - secondsToMilliseconds(delay);
- const keyframes = getKeyframes(value, valueName, target, valueTransition);
- /**
- * Check if we're able to animate between the start and end keyframes,
- * and throw a warning if we're attempting to animate between one that's
- * animatable and another that isn't.
- */
- const originKeyframe = keyframes[0];
- const targetKeyframe = keyframes[keyframes.length - 1];
- const isOriginAnimatable = isAnimatable(valueName, originKeyframe);
- const isTargetAnimatable = isAnimatable(valueName, targetKeyframe);
- warning(isOriginAnimatable === isTargetAnimatable, `You are trying to animate ${valueName} from "${originKeyframe}" to "${targetKeyframe}". ${originKeyframe} is not an animatable value - to enable this animation set ${originKeyframe} to a value animatable to ${targetKeyframe} via the \`style\` property.`);
- let options = {
- keyframes,
- velocity: value.getVelocity(),
- ease: "easeOut",
- ...valueTransition,
- delay: -elapsed,
- onUpdate: (v) => {
- value.set(v);
- valueTransition.onUpdate && valueTransition.onUpdate(v);
- },
- onComplete: () => {
- onComplete();
- valueTransition.onComplete && valueTransition.onComplete();
- },
+const animateMotionValue = (name, value, target, transition = {}, element, isHandoff) => (onComplete) => {
+ const valueTransition = getValueTransition(transition, name) || {};
+ /**
+ * Most transition values are currently completely overwritten by value-specific
+ * transitions. In the future it'd be nicer to blend these transitions. But for now
+ * delay actually does inherit from the root transition if not value-specific.
+ */
+ const delay = valueTransition.delay || transition.delay || 0;
+ /**
+ * Elapsed isn't a public transition option but can be passed through from
+ * optimized appear effects in milliseconds.
+ */
+ let { elapsed = 0 } = transition;
+ elapsed = elapsed - secondsToMilliseconds(delay);
+ let options = {
+ keyframes: Array.isArray(target) ? target : [null, target],
+ ease: "easeOut",
+ velocity: value.getVelocity(),
+ ...valueTransition,
+ delay: -elapsed,
+ onUpdate: (v) => {
+ value.set(v);
+ valueTransition.onUpdate && valueTransition.onUpdate(v);
+ },
+ onComplete: () => {
+ onComplete();
+ valueTransition.onComplete && valueTransition.onComplete();
+ },
+ name,
+ motionValue: value,
+ element: isHandoff ? undefined : element,
+ };
+ /**
+ * If there's no transition defined for this value, we can generate
+ * unqiue transition settings for this value.
+ */
+ if (!isTransitionDefined(valueTransition)) {
+ options = {
+ ...options,
+ ...getDefaultTransition(name, options),
};
- /**
- * If there's no transition defined for this value, we can generate
- * unqiue transition settings for this value.
- */
- if (!isTransitionDefined(valueTransition)) {
- options = {
- ...options,
- ...getDefaultTransition(valueName, options),
- };
- }
- /**
- * Both WAAPI and our internal animation functions use durations
- * as defined by milliseconds, while our external API defines them
- * as seconds.
- */
- if (options.duration) {
- options.duration = secondsToMilliseconds(options.duration);
- }
- if (options.repeatDelay) {
- options.repeatDelay = secondsToMilliseconds(options.repeatDelay);
- }
- if (!isOriginAnimatable ||
- !isTargetAnimatable ||
- instantAnimationState.current ||
- valueTransition.type === false) {
- /**
- * If we can't animate this value, or the global instant animation flag is set,
- * or this is simply defined as an instant transition, return an instant transition.
- */
- return createInstantAnimation(instantAnimationState.current
- ? { ...options, delay: 0 }
- : options);
+ }
+ /**
+ * Both WAAPI and our internal animation functions use durations
+ * as defined by milliseconds, while our external API defines them
+ * as seconds.
+ */
+ if (options.duration) {
+ options.duration = secondsToMilliseconds(options.duration);
+ }
+ if (options.repeatDelay) {
+ options.repeatDelay = secondsToMilliseconds(options.repeatDelay);
+ }
+ if (options.from !== undefined) {
+ options.keyframes[0] = options.from;
+ }
+ let shouldSkip = false;
+ if (options.type === false ||
+ (options.duration === 0 && !options.repeatDelay)) {
+ options.duration = 0;
+ if (options.delay === 0) {
+ shouldSkip = true;
}
- /**
- * Animate via WAAPI if possible.
- */
- if (value.owner &&
- value.owner.current instanceof HTMLElement &&
- !value.owner.getProps().onUpdate) {
- const acceleratedAnimation = createAcceleratedAnimation(value, valueName, options);
- if (acceleratedAnimation)
- return acceleratedAnimation;
+ }
+ if (instantAnimationState.current ||
+ MotionGlobalConfig.skipAnimations) {
+ shouldSkip = true;
+ options.duration = 0;
+ options.delay = 0;
+ }
+ /**
+ * If we can or must skip creating the animation, and apply only
+ * the final keyframe, do so. We also check once keyframes are resolved but
+ * this early check prevents the need to create an animation at all.
+ */
+ if (shouldSkip && !isHandoff && value.get() !== undefined) {
+ const finalKeyframe = getFinalKeyframe(options.keyframes, valueTransition);
+ if (finalKeyframe !== undefined) {
+ frame_frame.update(() => {
+ options.onUpdate(finalKeyframe);
+ options.onComplete();
+ });
+ return;
}
- /**
- * If we didn't create an accelerated animation, create a JS animation
- */
- return animateValue(options);
- };
+ }
+ /**
+ * Animate via WAAPI if possible. If this is a handoff animation, the optimised animation will be running via
+ * WAAPI. Therefore, this animation must be JS to ensure it runs "under" the
+ * optimised animation.
+ */
+ if (!isHandoff && AcceleratedAnimation.supports(options)) {
+ return new AcceleratedAnimation(options);
+ }
+ else {
+ return new MainThreadAnimation(options);
+ }
};
@@ -20949,14 +21117,6 @@ function isWillChangeMotionValue(value) {
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/is-numerical-string.mjs
-/**
- * Check if value is a numerical string, ie a string that is purely a number eg "100" or "-100.1"
- */
-const isNumericalString = (v) => /^\-?\d*\.?\d+$/.test(v);
-
-
-
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/array.mjs
function addUniqueItem(arr, item) {
if (arr.indexOf(item) === -1)
@@ -21028,6 +21188,12 @@ class SubscriptionManager {
+
+/**
+ * Maximum time between the value of two frames, beyond which we
+ * assume the velocity has since been 0.
+ */
+const MAX_VELOCITY_DELTA = 30;
const isFloat = (value) => {
return !isNaN(parseFloat(value));
};
@@ -21053,19 +21219,7 @@ class MotionValue {
* This will be replaced by the build step with the latest version number.
* When MotionValues are provided to motion components, warn if versions are mixed.
*/
- this.version = "10.16.4";
- /**
- * Duration, in milliseconds, since last updating frame.
- *
- * @internal
- */
- this.timeDelta = 0;
- /**
- * Timestamp of the last time this `MotionValue` was updated.
- *
- * @internal
- */
- this.lastUpdated = 0;
+ this.version = "11.2.6";
/**
* Tracks whether this value can output a velocity. Currently this is only true
* if the value is numerical, but we might be able to widen the scope here and support
@@ -21073,65 +21227,47 @@ class MotionValue {
*
* @internal
*/
- this.canTrackVelocity = false;
+ this.canTrackVelocity = null;
/**
* An object containing a SubscriptionManager for each active event.
*/
this.events = {};
this.updateAndNotify = (v, render = true) => {
- this.prev = this.current;
- this.current = v;
- // Update timestamp
- const { delta, timestamp } = frameData;
- if (this.lastUpdated !== timestamp) {
- this.timeDelta = delta;
- this.lastUpdated = timestamp;
- frame_frame.postRender(this.scheduleVelocityCheck);
+ const currentTime = time.now();
+ /**
+ * If we're updating the value during another frame or eventloop
+ * than the previous frame, then the we set the previous frame value
+ * to current.
+ */
+ if (this.updatedAt !== currentTime) {
+ this.setPrevFrameValue();
}
+ this.prev = this.current;
+ this.setCurrent(v);
// Update update subscribers
- if (this.prev !== this.current && this.events.change) {
+ if (this.current !== this.prev && this.events.change) {
this.events.change.notify(this.current);
}
- // Update velocity subscribers
- if (this.events.velocityChange) {
- this.events.velocityChange.notify(this.getVelocity());
- }
// Update render subscribers
if (render && this.events.renderRequest) {
this.events.renderRequest.notify(this.current);
}
};
- /**
- * Schedule a velocity check for the next frame.
- *
- * This is an instanced and bound function to prevent generating a new
- * function once per frame.
- *
- * @internal
- */
- this.scheduleVelocityCheck = () => frame_frame.postRender(this.velocityCheck);
- /**
- * Updates `prev` with `current` if the value hasn't been updated this frame.
- * This ensures velocity calculations return `0`.
- *
- * This is an instanced and bound function to prevent generating a new
- * function once per frame.
- *
- * @internal
- */
- this.velocityCheck = ({ timestamp }) => {
- if (timestamp !== this.lastUpdated) {
- this.prev = this.current;
- if (this.events.velocityChange) {
- this.events.velocityChange.notify(this.getVelocity());
- }
- }
- };
this.hasAnimated = false;
- this.prev = this.current = init;
- this.canTrackVelocity = isFloat(this.current);
+ this.setCurrent(init);
this.owner = options.owner;
}
+ setCurrent(current) {
+ this.current = current;
+ this.updatedAt = time.now();
+ if (this.canTrackVelocity === null && current !== undefined) {
+ this.canTrackVelocity = isFloat(this.current);
+ }
+ }
+ setPrevFrameValue(prevFrameValue = this.current) {
+ this.prevFrameValue = prevFrameValue;
+ this.prevUpdatedAt = this.updatedAt;
+ }
/**
* Adds a function that will be notified when the `MotionValue` is updated.
*
@@ -21236,17 +21372,19 @@ class MotionValue {
}
setWithVelocity(prev, current, delta) {
this.set(current);
- this.prev = prev;
- this.timeDelta = delta;
+ this.prev = undefined;
+ this.prevFrameValue = prev;
+ this.prevUpdatedAt = this.updatedAt - delta;
}
/**
* Set the state of the `MotionValue`, stopping any active animations,
* effects, and resets velocity to `0`.
*/
- jump(v) {
+ jump(v, endAnimation = true) {
this.updateAndNotify(v);
this.prev = v;
- this.stop();
+ this.prevUpdatedAt = this.prevFrameValue = undefined;
+ endAnimation && this.stop();
if (this.stopPassiveEffect)
this.stopPassiveEffect();
}
@@ -21277,12 +21415,16 @@ class MotionValue {
* @public
*/
getVelocity() {
- // This could be isFloat(this.prev) && isFloat(this.current), but that would be wasteful
- return this.canTrackVelocity
- ? // These casts could be avoided if parseFloat would be typed better
- velocityPerSecond(parseFloat(this.current) -
- parseFloat(this.prev), this.timeDelta)
- : 0;
+ const currentTime = time.now();
+ if (!this.canTrackVelocity ||
+ this.prevFrameValue === undefined ||
+ currentTime - this.updatedAt > MAX_VELOCITY_DELTA) {
+ return 0;
+ }
+ const delta = Math.min(this.updatedAt - this.prevUpdatedAt, MAX_VELOCITY_DELTA);
+ // Casts because of parseFloat's poor typing
+ return velocityPerSecond(parseFloat(this.current) -
+ parseFloat(this.prevFrameValue), delta);
}
/**
* Registers a new animation to control this `MotionValue`. Only one
@@ -21359,69 +21501,11 @@ function motionValue(init, options) {
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/test.mjs
-/**
- * Tests a provided value against a ValueType
- */
-const testValueType = (v) => (type) => type.test(v);
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.mjs
-/**
- * ValueType for "auto"
- */
-const auto = {
- test: (v) => v === "auto",
- parse: (v) => v,
-};
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.mjs
-
-
-
-
-
-/**
- * A list of value types commonly used for dimensions
- */
-const dimensionValueTypes = [number, px, percent, degrees, vw, vh, auto];
-/**
- * Tests a dimensional value against the list of dimension ValueTypes
- */
-const findDimensionValueType = (v) => dimensionValueTypes.find(testValueType(v));
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/find.mjs
-
-
-
-
-
-/**
- * A list of all ValueTypes
- */
-const valueTypes = [...dimensionValueTypes, color, complex];
-/**
- * Tests a value against the list of ValueTypes
- */
-const findValueType = (v) => valueTypes.find(testValueType(v));
-
-
-
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/setters.mjs
-
-
-
-
-
/**
* Set VisualElement's MotionValue, creating a new MotionValue for it if
* it doesn't exist.
@@ -21436,105 +21520,13 @@ function setMotionValue(visualElement, key, value) {
}
function setTarget(visualElement, definition) {
const resolved = resolveVariant(visualElement, definition);
- let { transitionEnd = {}, transition = {}, ...target } = resolved ? visualElement.makeTargetAnimatable(resolved, false) : {};
+ let { transitionEnd = {}, transition = {}, ...target } = resolved || {};
target = { ...target, ...transitionEnd };
for (const key in target) {
const value = resolveFinalValueInKeyframes(target[key]);
setMotionValue(visualElement, key, value);
}
}
-function setVariants(visualElement, variantLabels) {
- const reversedLabels = [...variantLabels].reverse();
- reversedLabels.forEach((key) => {
- const variant = visualElement.getVariant(key);
- variant && setTarget(visualElement, variant);
- if (visualElement.variantChildren) {
- visualElement.variantChildren.forEach((child) => {
- setVariants(child, variantLabels);
- });
- }
- });
-}
-function setValues(visualElement, definition) {
- if (Array.isArray(definition)) {
- return setVariants(visualElement, definition);
- }
- else if (typeof definition === "string") {
- return setVariants(visualElement, [definition]);
- }
- else {
- setTarget(visualElement, definition);
- }
-}
-function checkTargetForNewValues(visualElement, target, origin) {
- var _a, _b;
- const newValueKeys = Object.keys(target).filter((key) => !visualElement.hasValue(key));
- const numNewValues = newValueKeys.length;
- if (!numNewValues)
- return;
- for (let i = 0; i < numNewValues; i++) {
- const key = newValueKeys[i];
- const targetValue = target[key];
- let value = null;
- /**
- * If the target is a series of keyframes, we can use the first value
- * in the array. If this first value is null, we'll still need to read from the DOM.
- */
- if (Array.isArray(targetValue)) {
- value = targetValue[0];
- }
- /**
- * If the target isn't keyframes, or the first keyframe was null, we need to
- * first check if an origin value was explicitly defined in the transition as "from",
- * if not read the value from the DOM. As an absolute fallback, take the defined target value.
- */
- if (value === null) {
- value = (_b = (_a = origin[key]) !== null && _a !== void 0 ? _a : visualElement.readValue(key)) !== null && _b !== void 0 ? _b : target[key];
- }
- /**
- * If value is still undefined or null, ignore it. Preferably this would throw,
- * but this was causing issues in Framer.
- */
- if (value === undefined || value === null)
- continue;
- if (typeof value === "string" &&
- (isNumericalString(value) || isZeroValueString(value))) {
- // If this is a number read as a string, ie "0" or "200", convert it to a number
- value = parseFloat(value);
- }
- else if (!findValueType(value) && complex.test(targetValue)) {
- value = animatable_none_getAnimatableNone(key, targetValue);
- }
- visualElement.addValue(key, motionValue(value, { owner: visualElement }));
- if (origin[key] === undefined) {
- origin[key] = value;
- }
- if (value !== null)
- visualElement.setBaseTarget(key, value);
- }
-}
-function getOriginFromTransition(key, transition) {
- if (!transition)
- return;
- const valueTransition = transition[key] || transition["default"] || transition;
- return valueTransition.from;
-}
-function getOrigin(target, transition, visualElement) {
- const origin = {};
- for (const key in target) {
- const transitionOrigin = getOriginFromTransition(key, transition);
- if (transitionOrigin !== undefined) {
- origin[key] = transitionOrigin;
- }
- else {
- const value = visualElement.getValue(key);
- if (value) {
- origin[key] = value.get();
- }
- }
- }
- return origin;
-}
@@ -21546,6 +21538,7 @@ function getOrigin(target, transition, visualElement) {
+
/**
* Decide whether we should block this animation. Previously, we achieved this
* just by checking whether the key was listed in protectedKeys, but this
@@ -21557,8 +21550,9 @@ function shouldBlockAnimation({ protectedKeys, needsAnimating }, key) {
needsAnimating[key] = false;
return shouldBlock;
}
-function animateTarget(visualElement, definition, { delay = 0, transitionOverride, type } = {}) {
- let { transition = visualElement.getDefaultTransition(), transitionEnd, ...target } = visualElement.makeTargetAnimatable(definition);
+function animateTarget(visualElement, targetAndTransition, { delay = 0, transitionOverride, type } = {}) {
+ var _a;
+ let { transition = visualElement.getDefaultTransition(), transitionEnd, ...target } = targetAndTransition;
const willChange = visualElement.getValue("willChange");
if (transitionOverride)
transition = transitionOverride;
@@ -21567,10 +21561,9 @@ function animateTarget(visualElement, definition, { delay = 0, transitionOverrid
visualElement.animationState &&
visualElement.animationState.getState()[type];
for (const key in target) {
- const value = visualElement.getValue(key);
+ const value = visualElement.getValue(key, (_a = visualElement.latestValues[key]) !== null && _a !== void 0 ? _a : null);
const valueTarget = target[key];
- if (!value ||
- valueTarget === undefined ||
+ if (valueTarget === undefined ||
(animationTypeState &&
shouldBlockAnimation(animationTypeState, key))) {
continue;
@@ -21578,32 +21571,41 @@ function animateTarget(visualElement, definition, { delay = 0, transitionOverrid
const valueTransition = {
delay,
elapsed: 0,
- ...transition,
+ ...getValueTransition(transition || {}, key),
};
/**
* If this is the first time a value is being animated, check
* to see if we're handling off from an existing animation.
*/
- if (window.HandoffAppearAnimations && !value.hasAnimated) {
- const appearId = visualElement.getProps()[optimizedAppearDataAttribute];
+ let isHandoff = false;
+ if (window.HandoffAppearAnimations) {
+ const props = visualElement.getProps();
+ const appearId = props[optimizedAppearDataAttribute];
if (appearId) {
- valueTransition.elapsed = window.HandoffAppearAnimations(appearId, key, value, frame_frame);
- valueTransition.syncStart = true;
+ const elapsed = window.HandoffAppearAnimations(appearId, key, value, frame_frame);
+ if (elapsed !== null) {
+ valueTransition.elapsed = elapsed;
+ isHandoff = true;
+ }
}
}
value.start(animateMotionValue(key, value, valueTarget, visualElement.shouldReduceMotion && transformProps.has(key)
? { type: false }
- : valueTransition));
+ : valueTransition, visualElement, isHandoff));
const animation = value.animation;
- if (isWillChangeMotionValue(willChange)) {
- willChange.add(key);
- animation.then(() => willChange.remove(key));
+ if (animation) {
+ if (isWillChangeMotionValue(willChange)) {
+ willChange.add(key);
+ animation.then(() => willChange.remove(key));
+ }
+ animations.push(animation);
}
- animations.push(animation);
}
if (transitionEnd) {
Promise.all(animations).then(() => {
- transitionEnd && setTarget(visualElement, transitionEnd);
+ frame_frame.update(() => {
+ transitionEnd && setTarget(visualElement, transitionEnd);
+ });
});
}
return animations;
@@ -21616,7 +21618,10 @@ function animateTarget(visualElement, definition, { delay = 0, transitionOverrid
function animateVariant(visualElement, variant, options = {}) {
- const resolved = resolveVariant(visualElement, variant, options.custom);
+ var _a;
+ const resolved = resolveVariant(visualElement, variant, options.type === "exit"
+ ? (_a = visualElement.presenceContext) === null || _a === void 0 ? void 0 : _a.custom
+ : undefined);
let { transition = visualElement.getDefaultTransition() || {} } = resolved || {};
if (options.transitionOverride) {
transition = options.transitionOverride;
@@ -21681,6 +21686,7 @@ function sortByTreeOrder(a, b) {
+
function animateVisualElement(visualElement, definition, options = {}) {
visualElement.notify("AnimationStart", definition);
let animation;
@@ -21697,7 +21703,11 @@ function animateVisualElement(visualElement, definition, options = {}) {
: definition;
animation = Promise.all(animateTarget(visualElement, resolvedDefinition, options));
}
- return animation.then(() => visualElement.notify("AnimationComplete", definition));
+ return animation.then(() => {
+ frame_frame.postRender(() => {
+ visualElement.notify("AnimationComplete", definition);
+ });
+ });
}
@@ -21724,8 +21734,11 @@ function createAnimationState(visualElement) {
* This function will be used to reduce the animation definitions for
* each active animation type into an object of resolved values for it.
*/
- const buildResolvedTypeValues = (acc, definition) => {
- const resolved = resolveVariant(visualElement, definition);
+ const buildResolvedTypeValues = (type) => (acc, definition) => {
+ var _a;
+ const resolved = resolveVariant(visualElement, definition, type === "exit"
+ ? (_a = visualElement.presenceContext) === null || _a === void 0 ? void 0 : _a.custom
+ : undefined);
if (resolved) {
const { transition, transitionEnd, ...target } = resolved;
acc = { ...acc, ...target, ...transitionEnd };
@@ -21749,7 +21762,7 @@ function createAnimationState(visualElement) {
* 3. Determine if any values have been removed from a type and figure out
* what to animate those to.
*/
- function animateChanges(options, changedActiveType) {
+ function animateChanges(changedActiveType) {
const props = visualElement.getProps();
const context = visualElement.getVariantContext(true) || {};
/**
@@ -21782,7 +21795,9 @@ function createAnimationState(visualElement) {
for (let i = 0; i < numAnimationTypes; i++) {
const type = reversePriorityOrder[i];
const typeState = state[type];
- const prop = props[type] !== undefined ? props[type] : context[type];
+ const prop = props[type] !== undefined
+ ? props[type]
+ : context[type];
const propIsVariant = isVariantLabel(prop);
/**
* If this type has *just* changed isActive status, set activeDelta
@@ -21797,7 +21812,9 @@ function createAnimationState(visualElement) {
*
* TODO: Can probably change this to a !isControllingVariants check
*/
- let isInherited = prop === context[type] && prop !== props[type] && propIsVariant;
+ let isInherited = prop === context[type] &&
+ prop !== props[type] &&
+ propIsVariant;
/**
*
*/
@@ -21836,6 +21853,7 @@ function createAnimationState(visualElement) {
propIsVariant) ||
// If we removed a higher-priority variant (i is in reverse order)
(i > removedVariantIndex && propIsVariant);
+ let handledRemovedValues = false;
/**
* As animations can be set as variant lists, variants or target objects, we
* coerce everything to an array if it isn't one already
@@ -21845,7 +21863,7 @@ function createAnimationState(visualElement) {
* Build an object of all the resolved values. We'll use this in the subsequent
* animateChanges calls to determine whether a value has changed.
*/
- let resolvedValues = definitionList.reduce(buildResolvedTypeValues, {});
+ let resolvedValues = definitionList.reduce(buildResolvedTypeValues(type), {});
if (activeDelta === false)
resolvedValues = {};
/**
@@ -21864,8 +21882,14 @@ function createAnimationState(visualElement) {
};
const markToAnimate = (key) => {
shouldAnimateType = true;
- removedKeys.delete(key);
+ if (removedKeys.has(key)) {
+ handledRemovedValues = true;
+ removedKeys.delete(key);
+ }
typeState.needsAnimating[key] = true;
+ const motionValue = visualElement.getValue(key);
+ if (motionValue)
+ motionValue.liveStyle = false;
};
for (const key in allKeys) {
const next = resolvedValues[key];
@@ -21876,24 +21900,15 @@ function createAnimationState(visualElement) {
/**
* If the value has changed, we probably want to animate it.
*/
- if (next !== prev) {
- /**
- * If both values are keyframes, we need to shallow compare them to
- * detect whether any value has changed. If it has, we animate it.
- */
- if (isKeyframesTarget(next) && isKeyframesTarget(prev)) {
- if (!shallowCompare(next, prev) || variantDidChange) {
- markToAnimate(key);
- }
- else {
- /**
- * If it hasn't changed, we want to ensure it doesn't animate by
- * adding it to the list of protected keys.
- */
- typeState.protectedKeys[key] = true;
- }
- }
- else if (next !== undefined) {
+ let valueHasChanged = false;
+ if (isKeyframesTarget(next) && isKeyframesTarget(prev)) {
+ valueHasChanged = !shallowCompare(next, prev);
+ }
+ else {
+ valueHasChanged = next !== prev;
+ }
+ if (valueHasChanged) {
+ if (next !== undefined && next !== null) {
// If next is defined and doesn't equal prev, it needs animating
markToAnimate(key);
}
@@ -21934,13 +21949,11 @@ function createAnimationState(visualElement) {
}
/**
* If this is an inherited prop we want to hard-block animations
- * TODO: Test as this should probably still handle animations triggered
- * by removed values?
*/
- if (shouldAnimateType && !isInherited) {
+ if (shouldAnimateType && (!isInherited || handledRemovedValues)) {
animations.push(...definitionList.map((animation) => ({
animation: animation,
- options: { type, ...options },
+ options: { type },
})));
}
}
@@ -21953,15 +21966,17 @@ function createAnimationState(visualElement) {
const fallbackAnimation = {};
removedKeys.forEach((key) => {
const fallbackTarget = visualElement.getBaseTarget(key);
- if (fallbackTarget !== undefined) {
- fallbackAnimation[key] = fallbackTarget;
- }
+ const motionValue = visualElement.getValue(key);
+ if (motionValue)
+ motionValue.liveStyle = true;
+ // @ts-expect-error - @mattgperry to figure if we should do something here
+ fallbackAnimation[key] = fallbackTarget !== null && fallbackTarget !== void 0 ? fallbackTarget : null;
});
animations.push({ animation: fallbackAnimation });
}
let shouldAnimate = Boolean(animations.length);
if (isInitialRender &&
- props.initial === false &&
+ (props.initial === false || props.initial === props.animate) &&
!visualElement.manuallyAnimateOnMount) {
shouldAnimate = false;
}
@@ -21971,7 +21986,7 @@ function createAnimationState(visualElement) {
/**
* Change whether a certain animation type is active.
*/
- function setActive(type, isActive, options) {
+ function setActive(type, isActive) {
var _a;
// If the active state hasn't changed, we can safely do nothing here
if (state[type].isActive === isActive)
@@ -21979,7 +21994,7 @@ function createAnimationState(visualElement) {
// Propagate active change to children
(_a = visualElement.variantChildren) === null || _a === void 0 ? void 0 : _a.forEach((child) => { var _a; return (_a = child.animationState) === null || _a === void 0 ? void 0 : _a.setActive(type, isActive); });
state[type].isActive = isActive;
- const animations = animateChanges(options, type);
+ const animations = animateChanges(type);
for (const key in state) {
state[key].protectedKeys = {};
}
@@ -22075,12 +22090,12 @@ class ExitAnimationFeature extends Feature {
update() {
if (!this.node.presenceContext)
return;
- const { isPresent, onExitComplete, custom } = this.node.presenceContext;
+ const { isPresent, onExitComplete } = this.node.presenceContext;
const { isPresent: prevIsPresent } = this.node.prevPresenceContext || {};
if (!this.node.animationState || isPresent === prevIsPresent) {
return;
}
- const exitAnimation = this.node.animationState.setActive("exit", !isPresent, { custom: custom !== null && custom !== void 0 ? custom : this.node.getProps().custom });
+ const exitAnimation = this.node.animationState.setActive("exit", !isPresent);
if (onExitComplete && !isPresent) {
exitAnimation.then(() => onExitComplete(this.id));
}
@@ -22135,7 +22150,7 @@ function distance2D(a, b) {
* @internal
*/
class PanSession {
- constructor(event, handlers, { transformPagePoint } = {}) {
+ constructor(event, handlers, { transformPagePoint, contextWindow, dragSnapToOrigin = false } = {}) {
/**
* @internal
*/
@@ -22152,6 +22167,10 @@ class PanSession {
* @internal
*/
this.handlers = {};
+ /**
+ * @internal
+ */
+ this.contextWindow = window;
this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
return;
@@ -22181,9 +22200,11 @@ class PanSession {
};
this.handlePointerUp = (event, info) => {
this.end();
+ const { onEnd, onSessionEnd, resumeAnimation } = this.handlers;
+ if (this.dragSnapToOrigin)
+ resumeAnimation && resumeAnimation();
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
return;
- const { onEnd, onSessionEnd } = this.handlers;
const panInfo = getPanInfo(event.type === "pointercancel"
? this.lastMoveEventInfo
: transformPoint(info, this.transformPagePoint), this.history);
@@ -22195,8 +22216,10 @@ class PanSession {
// If we have more than one touch, don't start detecting this gesture
if (!isPrimaryPointer(event))
return;
+ this.dragSnapToOrigin = dragSnapToOrigin;
this.handlers = handlers;
this.transformPagePoint = transformPagePoint;
+ this.contextWindow = contextWindow || window;
const info = extractEventInfo(event);
const initialInfo = transformPoint(info, this.transformPagePoint);
const { point } = initialInfo;
@@ -22205,7 +22228,7 @@ class PanSession {
const { onSessionStart } = handlers;
onSessionStart &&
onSessionStart(event, getPanInfo(initialInfo, this.history));
- this.removeListeners = pipe(addPointerEvent(window, "pointermove", this.handlePointerMove), addPointerEvent(window, "pointerup", this.handlePointerUp), addPointerEvent(window, "pointercancel", this.handlePointerUp));
+ this.removeListeners = pipe(addPointerEvent(this.contextWindow, "pointermove", this.handlePointerMove), addPointerEvent(this.contextWindow, "pointerup", this.handlePointerUp), addPointerEvent(this.contextWindow, "pointercancel", this.handlePointerUp));
}
updateHandlers(handlers) {
this.handlers = handlers;
@@ -22226,7 +22249,7 @@ function getPanInfo({ point }, history) {
point,
delta: subtractPoint(point, lastDevicePoint(history)),
offset: subtractPoint(point, startDevicePoint(history)),
- velocity: PanSession_getVelocity(history, 0.1),
+ velocity: getVelocity(history, 0.1),
};
}
function startDevicePoint(history) {
@@ -22235,7 +22258,7 @@ function startDevicePoint(history) {
function lastDevicePoint(history) {
return history[history.length - 1];
}
-function PanSession_getVelocity(history, timeDelta) {
+function getVelocity(history, timeDelta) {
if (history.length < 2) {
return { x: 0, y: 0 };
}
@@ -22283,12 +22306,12 @@ function isNear(value, target = 0, maxDistance = 0.01) {
}
function calcAxisDelta(delta, source, target, origin = 0.5) {
delta.origin = origin;
- delta.originPoint = mix(source.min, source.max, delta.origin);
+ delta.originPoint = mixNumber(source.min, source.max, delta.origin);
delta.scale = calcLength(target) / calcLength(source);
if (isNear(delta.scale, 1, 0.0001) || isNaN(delta.scale))
delta.scale = 1;
delta.translate =
- mix(target.min, target.max, delta.origin) - delta.originPoint;
+ mixNumber(target.min, target.max, delta.origin) - delta.originPoint;
if (isNear(delta.translate) || isNaN(delta.translate))
delta.translate = 0;
}
@@ -22329,11 +22352,15 @@ function calcRelativePosition(target, layout, parent) {
function applyConstraints(point, { min, max }, elastic) {
if (min !== undefined && point < min) {
// If we have a min point defined, and this is outside of that, constrain
- point = elastic ? mix(min, point, elastic.min) : Math.max(point, min);
+ point = elastic
+ ? mixNumber(min, point, elastic.min)
+ : Math.max(point, min);
}
else if (max !== undefined && point > max) {
// If we have a max point defined, and this is outside of that, constrain
- point = elastic ? mix(max, point, elastic.max) : Math.min(point, max);
+ point = elastic
+ ? mixNumber(max, point, elastic.max)
+ : Math.min(point, max);
}
return point;
}
@@ -22518,7 +22545,9 @@ function hasTransform(values) {
values.z ||
values.rotate ||
values.rotateX ||
- values.rotateY);
+ values.rotateY ||
+ values.skewX ||
+ values.skewY);
}
function has2DTranslate(values) {
return is2DTranslate(values.x) || is2DTranslate(values.y);
@@ -22634,7 +22663,7 @@ function translateAxis(axis, distance) {
*/
function transformAxis(axis, transforms, [key, scaleKey, originKey]) {
const axisOrigin = transforms[originKey] !== undefined ? transforms[originKey] : 0.5;
- const originPoint = mix(axis.min, axis.max, axisOrigin);
+ const originPoint = mixNumber(axis.min, axis.max, axisOrigin);
// Apply the axis delta to the final axis
applyAxisDelta(axis, transforms[key], transforms[scaleKey], originPoint, transforms.scale);
}
@@ -22672,6 +22701,14 @@ function measurePageBox(element, rootProjectionNode, transformPagePoint) {
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/get-context-window.mjs
+// Fixes https://github.com/framer/motion/issues/2270
+const getContextWindow = ({ current }) => {
+ return current ? current.ownerDocument.defaultView : null;
+};
+
+
+
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
@@ -22691,6 +22728,7 @@ function measurePageBox(element, rootProjectionNode, transformPagePoint) {
+
const elementDragControls = new WeakMap();
/**
*
@@ -22724,9 +22762,10 @@ class VisualElementDragControls {
if (presenceContext && presenceContext.isPresent === false)
return;
const onSessionStart = (event) => {
- // Stop any animations on both axis values immediately. This allows the user to throw and catch
+ const { dragSnapToOrigin } = this.getProps();
+ // Stop or pause any animations on both axis values immediately. This allows the user to throw and catch
// the component.
- this.stopAnimation();
+ dragSnapToOrigin ? this.pauseAnimation() : this.stopAnimation();
if (snapToCursor) {
this.snapToCursor(extractEventInfo(event, "page").point);
}
@@ -22771,7 +22810,7 @@ class VisualElementDragControls {
});
// Fire onDragStart event
if (onDragStart) {
- frame_frame.update(() => onDragStart(event, info), false, true);
+ frame_frame.postRender(() => onDragStart(event, info));
}
const { animationState } = this.visualElement;
animationState && animationState.setActive("whileDrag", true);
@@ -22809,12 +22848,23 @@ class VisualElementDragControls {
onDrag && onDrag(event, info);
};
const onSessionEnd = (event, info) => this.stop(event, info);
+ const resumeAnimation = () => eachAxis((axis) => {
+ var _a;
+ return this.getAnimationState(axis) === "paused" &&
+ ((_a = this.getAxisMotionValue(axis).animation) === null || _a === void 0 ? void 0 : _a.play());
+ });
+ const { dragSnapToOrigin } = this.getProps();
this.panSession = new PanSession(originEvent, {
onSessionStart,
onStart,
onMove,
onSessionEnd,
- }, { transformPagePoint: this.visualElement.getTransformPagePoint() });
+ resumeAnimation,
+ }, {
+ transformPagePoint: this.visualElement.getTransformPagePoint(),
+ dragSnapToOrigin,
+ contextWindow: getContextWindow(this.visualElement),
+ });
}
stop(event, info) {
const isDragging = this.isDragging;
@@ -22825,7 +22875,7 @@ class VisualElementDragControls {
this.startAnimation(velocity);
const { onDragEnd } = this.getProps();
if (onDragEnd) {
- frame_frame.update(() => onDragEnd(event, info));
+ frame_frame.postRender(() => onDragEnd(event, info));
}
}
cancel() {
@@ -22857,8 +22907,12 @@ class VisualElementDragControls {
axisValue.set(next);
}
resolveConstraints() {
+ var _a;
const { dragConstraints, dragElastic } = this.getProps();
- const { layout } = this.visualElement.projection || {};
+ const layout = this.visualElement.projection &&
+ !this.visualElement.projection.layout
+ ? this.visualElement.projection.measure(false)
+ : (_a = this.visualElement.projection) === null || _a === void 0 ? void 0 : _a.layout;
const prevConstraints = this.constraints;
if (dragConstraints && isRefObject(dragConstraints)) {
if (!this.constraints) {
@@ -22883,7 +22937,8 @@ class VisualElementDragControls {
this.constraints &&
!this.hasMutatedConstraints) {
eachAxis((axis) => {
- if (this.getAxisMotionValue(axis)) {
+ if (this.constraints !== false &&
+ this.getAxisMotionValue(axis)) {
this.constraints[axis] = rebaseAxisConstraints(layout.layoutBox[axis], this.constraints[axis]);
}
});
@@ -22953,11 +23008,18 @@ class VisualElementDragControls {
}
startAxisValueAnimation(axis, transition) {
const axisValue = this.getAxisMotionValue(axis);
- return axisValue.start(animateMotionValue(axis, axisValue, 0, transition));
+ return axisValue.start(animateMotionValue(axis, axisValue, 0, transition, this.visualElement));
}
stopAnimation() {
eachAxis((axis) => this.getAxisMotionValue(axis).stop());
}
+ pauseAnimation() {
+ eachAxis((axis) => { var _a; return (_a = this.getAxisMotionValue(axis).animation) === null || _a === void 0 ? void 0 : _a.pause(); });
+ }
+ getAnimationState(axis) {
+ var _a;
+ return (_a = this.getAxisMotionValue(axis).animation) === null || _a === void 0 ? void 0 : _a.state;
+ }
/**
* Drag works differently depending on which props are provided.
*
@@ -22965,12 +23027,14 @@ class VisualElementDragControls {
* - Otherwise, we apply the delta to the x/y motion values.
*/
getAxisMotionValue(axis) {
- const dragKey = "_drag" + axis.toUpperCase();
+ const dragKey = `_drag${axis.toUpperCase()}`;
const props = this.visualElement.getProps();
const externalMotionValue = props[dragKey];
return externalMotionValue
? externalMotionValue
- : this.visualElement.getValue(axis, (props.initial ? props.initial[axis] : undefined) || 0);
+ : this.visualElement.getValue(axis, (props.initial
+ ? props.initial[axis]
+ : undefined) || 0);
}
snapToCursor(point) {
eachAxis((axis) => {
@@ -22982,7 +23046,7 @@ class VisualElementDragControls {
const axisValue = this.getAxisMotionValue(axis);
if (projection && projection.layout) {
const { min, max } = projection.layout.layoutBox[axis];
- axisValue.set(point[axis] - mix(min, max, 0.5));
+ axisValue.set(point[axis] - mixNumber(min, max, 0.5));
}
});
}
@@ -23010,7 +23074,7 @@ class VisualElementDragControls {
const boxProgress = { x: 0, y: 0 };
eachAxis((axis) => {
const axisValue = this.getAxisMotionValue(axis);
- if (axisValue) {
+ if (axisValue && this.constraints !== false) {
const latest = axisValue.get();
boxProgress[axis] = constraints_calcOrigin({ min: latest, max: latest }, this.constraints[axis]);
}
@@ -23037,7 +23101,7 @@ class VisualElementDragControls {
*/
const axisValue = this.getAxisMotionValue(axis);
const { min, max } = this.constraints[axis];
- axisValue.set(mix(min, max, boxProgress[axis]));
+ axisValue.set(mixNumber(min, max, boxProgress[axis]));
});
}
addListeners() {
@@ -23167,9 +23231,10 @@ class DragGesture extends Feature {
+
const asyncHandler = (handler) => (event, info) => {
if (handler) {
- frame_frame.update(() => handler(event, info));
+ frame_frame.postRender(() => handler(event, info));
}
};
class PanGesture extends Feature {
@@ -23178,7 +23243,10 @@ class PanGesture extends Feature {
this.removePointerDownListener = noop_noop;
}
onPointerDown(pointerDownEvent) {
- this.session = new PanSession(pointerDownEvent, this.createPanHandlers(), { transformPagePoint: this.node.getTransformPagePoint() });
+ this.session = new PanSession(pointerDownEvent, this.createPanHandlers(), {
+ transformPagePoint: this.node.getTransformPagePoint(),
+ contextWindow: getContextWindow(this.node),
+ });
}
createPanHandlers() {
const { onPanSessionStart, onPanStart, onPan, onPanEnd } = this.node.getProps();
@@ -23189,7 +23257,7 @@ class PanGesture extends Feature {
onEnd: (event, info) => {
delete this.session;
if (onPanEnd) {
- frame_frame.update(() => onPanEnd(event, info));
+ frame_frame.postRender(() => onPanEnd(event, info));
}
},
};
@@ -23364,7 +23432,7 @@ const correctBoxShadow = {
* We could potentially improve the outcome of this by incorporating the ratio between
* the two scales.
*/
- const averageScale = mix(xScale, yScale, 0.5);
+ const averageScale = mixNumber(xScale, yScale, 0.5);
// Blur
if (typeof shadow[2 + offset] === "number")
shadow[2 + offset] /= averageScale;
@@ -23388,6 +23456,8 @@ const correctBoxShadow = {
+
+
class MeasureLayoutWithContext extends external_React_.Component {
/**
* This only mounts projection nodes for components that
@@ -23460,7 +23530,7 @@ class MeasureLayoutWithContext extends external_React_.Component {
const { projection } = this.props.visualElement;
if (projection) {
projection.root.didUpdate();
- queueMicrotask(() => {
+ microtask.postRender(() => {
if (!projection.currentAnimation && projection.isLead()) {
this.safeToRemove();
}
@@ -23489,7 +23559,7 @@ class MeasureLayoutWithContext extends external_React_.Component {
function MeasureLayout(props) {
const [isPresent, safeToRemove] = usePresence();
const layoutGroup = (0,external_React_.useContext)(LayoutGroupContext);
- return (external_React_.createElement(MeasureLayoutWithContext, { ...props, layoutGroup: layoutGroup, switchLayoutGroup: (0,external_React_.useContext)(SwitchLayoutGroupContext), isPresent: isPresent, safeToRemove: safeToRemove }));
+ return ((0,external_ReactJSXRuntime_namespaceObject.jsx)(MeasureLayoutWithContext, { ...props, layoutGroup: layoutGroup, switchLayoutGroup: (0,external_React_.useContext)(SwitchLayoutGroupContext), isPresent: isPresent, safeToRemove: safeToRemove }));
}
const defaultScaleCorrectors = {
borderRadius: {
@@ -23523,13 +23593,13 @@ const asNumber = (value) => typeof value === "string" ? parseFloat(value) : valu
const isPx = (value) => typeof value === "number" || px.test(value);
function mixValues(target, follow, lead, progress, shouldCrossfadeOpacity, isOnlyMember) {
if (shouldCrossfadeOpacity) {
- target.opacity = mix(0,
+ target.opacity = mixNumber(0,
// TODO Reinstate this if only child
lead.opacity !== undefined ? lead.opacity : 1, easeCrossfadeIn(progress));
- target.opacityExit = mix(follow.opacity !== undefined ? follow.opacity : 1, 0, easeCrossfadeOut(progress));
+ target.opacityExit = mixNumber(follow.opacity !== undefined ? follow.opacity : 1, 0, easeCrossfadeOut(progress));
}
else if (isOnlyMember) {
- target.opacity = mix(follow.opacity !== undefined ? follow.opacity : 1, lead.opacity !== undefined ? lead.opacity : 1, progress);
+ target.opacity = mixNumber(follow.opacity !== undefined ? follow.opacity : 1, lead.opacity !== undefined ? lead.opacity : 1, progress);
}
/**
* Mix border radius
@@ -23546,7 +23616,7 @@ function mixValues(target, follow, lead, progress, shouldCrossfadeOpacity, isOnl
leadRadius === 0 ||
isPx(followRadius) === isPx(leadRadius);
if (canMix) {
- target[borderLabel] = Math.max(mix(asNumber(followRadius), asNumber(leadRadius), progress), 0);
+ target[borderLabel] = Math.max(mixNumber(asNumber(followRadius), asNumber(leadRadius), progress), 0);
if (percent.test(leadRadius) || percent.test(followRadius)) {
target[borderLabel] += "%";
}
@@ -23559,7 +23629,7 @@ function mixValues(target, follow, lead, progress, shouldCrossfadeOpacity, isOnl
* Mix rotation
*/
if (follow.rotate || lead.rotate) {
- target.rotate = mix(follow.rotate || 0, lead.rotate || 0, progress);
+ target.rotate = mixNumber(follow.rotate || 0, lead.rotate || 0, progress);
}
}
function getRadius(values, radiusName) {
@@ -23649,12 +23719,12 @@ function removePointDelta(point, translate, scale, originPoint, boxScale) {
function removeAxisDelta(axis, translate = 0, scale = 1, origin = 0.5, boxScale, originAxis = axis, sourceAxis = axis) {
if (percent.test(translate)) {
translate = parseFloat(translate);
- const relativeProgress = mix(sourceAxis.min, sourceAxis.max, translate / 100);
+ const relativeProgress = mixNumber(sourceAxis.min, sourceAxis.max, translate / 100);
translate = relativeProgress - sourceAxis.min;
}
if (typeof translate !== "number")
return;
- let originPoint = mix(originAxis.min, originAxis.max, origin);
+ let originPoint = mixNumber(originAxis.min, originAxis.max, origin);
if (axis === originAxis)
originPoint -= translate;
axis.min = removePointDelta(axis.min, translate, scale, originPoint, boxScale);
@@ -23835,8 +23905,9 @@ function buildProjectionTransform(delta, treeScale, latestTransform) {
*/
const xTranslate = delta.x.translate / treeScale.x;
const yTranslate = delta.y.translate / treeScale.y;
- if (xTranslate || yTranslate) {
- transform = `translate3d(${xTranslate}px, ${yTranslate}px, 0) `;
+ const zTranslate = (latestTransform === null || latestTransform === void 0 ? void 0 : latestTransform.z) || 0;
+ if (xTranslate || yTranslate || zTranslate) {
+ transform = `translate3d(${xTranslate}px, ${yTranslate}px, ${zTranslate}px) `;
}
/**
* Apply scale correction for the tree transform.
@@ -23846,13 +23917,19 @@ function buildProjectionTransform(delta, treeScale, latestTransform) {
transform += `scale(${1 / treeScale.x}, ${1 / treeScale.y}) `;
}
if (latestTransform) {
- const { rotate, rotateX, rotateY } = latestTransform;
+ const { transformPerspective, rotate, rotateX, rotateY, skewX, skewY } = latestTransform;
+ if (transformPerspective)
+ transform = `perspective(${transformPerspective}px) ${transform}`;
if (rotate)
transform += `rotate(${rotate}deg) `;
if (rotateX)
transform += `rotateX(${rotateX}deg) `;
if (rotateY)
transform += `rotateY(${rotateY}deg) `;
+ if (skewX)
+ transform += `skewX(${skewX}deg) `;
+ if (skewY)
+ transform += `skewY(${skewY}deg) `;
}
/**
* Apply scale to match the size of the element to the size we want it.
@@ -23902,11 +23979,12 @@ class FlatTree {
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/delay.mjs
+
/**
* Timeout defined in ms
*/
function delay(callback, timeout) {
- const start = performance.now();
+ const start = time.now();
const checkElapsed = ({ timestamp }) => {
const elapsed = timestamp - start;
if (elapsed >= timeout) {
@@ -23976,7 +24054,10 @@ function animateSingleValue(value, keyframes, options) {
+
+
const transformAxes = ["", "X", "Y", "Z"];
+const hiddenVisibility = { visibility: "hidden" };
/**
* We use 1000 as the animation target as 0-1000 maps better to pixels than 0-1
* which has a noticeable difference in spring animations
@@ -23993,6 +24074,17 @@ const projectionFrameData = {
resolvedTargetDeltas: 0,
recalculatedProjection: 0,
};
+function resetDistortingTransform(key, visualElement, values, sharedAnimationValues) {
+ const { latestValues } = visualElement;
+ // Record the distorting transform and then temporarily set it to 0
+ if (latestValues[key]) {
+ values[key] = latestValues[key];
+ visualElement.setStaticValue(key, 0);
+ if (sharedAnimationValues) {
+ sharedAnimationValues[key] = 0;
+ }
+ }
+}
function createProjectionNode({ attachResizeListener, defaultParent, measureScroll, checkIsScrollRoot, resetTransform, }) {
return class ProjectionNode {
constructor(latestValues = {}, parent = defaultParent === null || defaultParent === void 0 ? void 0 : defaultParent()) {
@@ -24084,6 +24176,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
this.hasTreeAnimated = false;
// Note: Currently only running on root node
this.updateScheduled = false;
+ this.projectionUpdateScheduled = false;
this.checkUpdateFailed = () => {
if (this.isUpdating) {
this.isUpdating = false;
@@ -24096,6 +24189,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
* the next step.
*/
this.updateProjection = () => {
+ this.projectionUpdateScheduled = false;
/**
* Reset debug counts. Manually resetting rather than creating a new
* object each frame.
@@ -24271,7 +24365,16 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
if (this.isUpdateBlocked())
return;
this.isUpdating = true;
- this.nodes && this.nodes.forEach(resetRotation);
+ /**
+ * If we're running optimised appear animations then these must be
+ * cancelled before measuring the DOM. This is so we can measure
+ * the true layout of the element rather than the WAAPI animation
+ * which will be unaffected by the resetSkewAndRotate step.
+ */
+ if (window.HandoffCancelAllAnimations) {
+ window.HandoffCancelAllAnimations();
+ }
+ this.nodes && this.nodes.forEach(resetSkewAndRotation);
this.animationId++;
}
getTransformTemplate() {
@@ -24342,7 +24445,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
* we could leave this to the following requestAnimationFrame but this seems
* to leave a flash of incorrectly styled content.
*/
- const now = performance.now();
+ const now = time.now();
frameData.delta = clamp_clamp(0, 1000 / 60, now - frameData.timestamp);
frameData.timestamp = now;
frameData.isProcessing = true;
@@ -24354,7 +24457,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
didUpdate() {
if (!this.updateScheduled) {
this.updateScheduled = true;
- queueMicrotask(() => this.update());
+ microtask.read(() => this.update());
}
}
clearAllSnapshots() {
@@ -24362,7 +24465,10 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
this.sharedNodes.forEach(removeLeadSnapshots);
}
scheduleUpdateProjection() {
- frame_frame.preRender(this.updateProjection, false, true);
+ if (!this.projectionUpdateScheduled) {
+ this.projectionUpdateScheduled = true;
+ frame_frame.preRender(this.updateProjection, false, true);
+ }
}
scheduleCheckAfterUnmount() {
/**
@@ -24633,9 +24739,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
* a relativeParent. This will allow a component to perform scale correction
* even if no animation has started.
*/
- // TODO If this is unsuccessful this currently happens every frame
if (!this.targetDelta && !this.relativeTarget) {
- // TODO: This is a semi-repetition of further down this function, make DRY
const relativeParent = this.getClosestProjectingParent();
if (relativeParent &&
relativeParent.layout &&
@@ -24805,6 +24909,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
!lead.target &&
(this.treeScale.x !== 1 || this.treeScale.y !== 1)) {
lead.target = lead.layout.layoutBox;
+ lead.targetWithTransforms = createBox();
}
const { target } = lead;
if (!target) {
@@ -25068,65 +25173,68 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
return false;
}
}
- resetRotation() {
+ resetSkewAndRotation() {
const { visualElement } = this.options;
if (!visualElement)
return;
- // If there's no detected rotation values, we can early return without a forced render.
- let hasRotate = false;
+ // If there's no detected skew or rotation values, we can early return without a forced render.
+ let hasDistortingTransform = false;
/**
* An unrolled check for rotation values. Most elements don't have any rotation and
* skipping the nested loop and new object creation is 50% faster.
*/
const { latestValues } = visualElement;
- if (latestValues.rotate ||
+ if (latestValues.z ||
+ latestValues.rotate ||
latestValues.rotateX ||
latestValues.rotateY ||
- latestValues.rotateZ) {
- hasRotate = true;
+ latestValues.rotateZ ||
+ latestValues.skewX ||
+ latestValues.skewY) {
+ hasDistortingTransform = true;
}
- // If there's no rotation values, we don't need to do any more.
- if (!hasRotate)
+ // If there's no distorting values, we don't need to do any more.
+ if (!hasDistortingTransform)
return;
const resetValues = {};
- // Check the rotate value of all axes and reset to 0
+ if (latestValues.z) {
+ resetDistortingTransform("z", visualElement, resetValues, this.animationValues);
+ }
+ // Check the skew and rotate value of all axes and reset to 0
for (let i = 0; i < transformAxes.length; i++) {
- const key = "rotate" + transformAxes[i];
- // Record the rotation and then temporarily set it to 0
- if (latestValues[key]) {
- resetValues[key] = latestValues[key];
- visualElement.setStaticValue(key, 0);
- }
+ resetDistortingTransform(`rotate${transformAxes[i]}`, visualElement, resetValues, this.animationValues);
+ resetDistortingTransform(`skew${transformAxes[i]}`, visualElement, resetValues, this.animationValues);
}
- // Force a render of this element to apply the transform with all rotations
+ // Force a render of this element to apply the transform with all skews and rotations
// set to 0.
visualElement.render();
// Put back all the values we reset
for (const key in resetValues) {
visualElement.setStaticValue(key, resetValues[key]);
+ if (this.animationValues) {
+ this.animationValues[key] = resetValues[key];
+ }
}
// Schedule a render for the next frame. This ensures we won't visually
// see the element with the reset rotate value applied.
visualElement.scheduleRender();
}
- getProjectionStyles(styleProp = {}) {
+ getProjectionStyles(styleProp) {
var _a, _b;
- // TODO: Return lifecycle-persistent object
- const styles = {};
if (!this.instance || this.isSVG)
- return styles;
+ return undefined;
if (!this.isVisible) {
- return { visibility: "hidden" };
- }
- else {
- styles.visibility = "";
+ return hiddenVisibility;
}
+ const styles = {
+ visibility: "",
+ };
const transformTemplate = this.getTransformTemplate();
if (this.needsReset) {
this.needsReset = false;
styles.opacity = "";
styles.pointerEvents =
- resolveMotionValue(styleProp.pointerEvents) || "";
+ resolveMotionValue(styleProp === null || styleProp === void 0 ? void 0 : styleProp.pointerEvents) || "";
styles.transform = transformTemplate
? transformTemplate(this.latestValues, "")
: "none";
@@ -25141,7 +25249,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
? this.latestValues.opacity
: 1;
emptyStyles.pointerEvents =
- resolveMotionValue(styleProp.pointerEvents) || "";
+ resolveMotionValue(styleProp === null || styleProp === void 0 ? void 0 : styleProp.pointerEvents) || "";
}
if (this.hasProjected && !hasTransform(this.latestValues)) {
emptyStyles.transform = transformTemplate
@@ -25219,7 +25327,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
if (this.options.layoutId) {
styles.pointerEvents =
lead === this
- ? resolveMotionValue(styleProp.pointerEvents) || ""
+ ? resolveMotionValue(styleProp === null || styleProp === void 0 ? void 0 : styleProp.pointerEvents) || ""
: "none";
}
return styles;
@@ -25391,21 +25499,21 @@ function resolveTargetDelta(node) {
function calcProjection(node) {
node.calcProjection();
}
-function resetRotation(node) {
- node.resetRotation();
+function resetSkewAndRotation(node) {
+ node.resetSkewAndRotation();
}
function removeLeadSnapshots(stack) {
stack.removeLeadSnapshot();
}
function mixAxisDelta(output, delta, p) {
- output.translate = mix(delta.translate, 0, p);
- output.scale = mix(delta.scale, 1, p);
+ output.translate = mixNumber(delta.translate, 0, p);
+ output.scale = mixNumber(delta.scale, 1, p);
output.origin = delta.origin;
output.originPoint = delta.originPoint;
}
function mixAxis(output, from, to, p) {
- output.min = mix(from.min, to.min, p);
- output.max = mix(from.max, to.max, p);
+ output.min = mixNumber(from.min, to.min, p);
+ output.max = mixNumber(from.max, to.max, p);
}
function mixBox(output, from, to, p) {
mixAxis(output.x, from.x, to.x, p);
@@ -25419,6 +25527,7 @@ const defaultLayoutTransition = {
ease: [0.4, 0, 0.1, 1],
};
const userAgentContains = (string) => typeof navigator !== "undefined" &&
+ navigator.userAgent &&
navigator.userAgent.toLowerCase().includes(string);
/**
* Measured bounding boxes must be rounded in Safari and
@@ -25508,346 +25617,6 @@ const drag = {
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs
-
-
-
-
-/**
- * Parse Framer's special CSS variable format into a CSS token and a fallback.
- *
- * ```
- * `var(--foo, #fff)` => [`--foo`, '#fff']
- * ```
- *
- * @param current
- */
-const splitCSSVariableRegex = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
-function parseCSSVariable(current) {
- const match = splitCSSVariableRegex.exec(current);
- if (!match)
- return [,];
- const [, token, fallback] = match;
- return [token, fallback];
-}
-const maxDepth = 4;
-function getVariableValue(current, element, depth = 1) {
- errors_invariant(depth <= maxDepth, `Max CSS variable fallback depth detected in property "${current}". This may indicate a circular fallback dependency.`);
- const [token, fallback] = parseCSSVariable(current);
- // No CSS variable detected
- if (!token)
- return;
- // Attempt to read this CSS variable off the element
- const resolved = window.getComputedStyle(element).getPropertyValue(token);
- if (resolved) {
- const trimmed = resolved.trim();
- return isNumericalString(trimmed) ? parseFloat(trimmed) : trimmed;
- }
- else if (isCSSVariableToken(fallback)) {
- // The fallback might itself be a CSS variable, in which case we attempt to resolve it too.
- return getVariableValue(fallback, element, depth + 1);
- }
- else {
- return fallback;
- }
-}
-/**
- * Resolve CSS variables from
- *
- * @internal
- */
-function resolveCSSVariables(visualElement, { ...target }, transitionEnd) {
- const element = visualElement.current;
- if (!(element instanceof Element))
- return { target, transitionEnd };
- // If `transitionEnd` isn't `undefined`, clone it. We could clone `target` and `transitionEnd`
- // only if they change but I think this reads clearer and this isn't a performance-critical path.
- if (transitionEnd) {
- transitionEnd = { ...transitionEnd };
- }
- // Go through existing `MotionValue`s and ensure any existing CSS variables are resolved
- visualElement.values.forEach((value) => {
- const current = value.get();
- if (!isCSSVariableToken(current))
- return;
- const resolved = getVariableValue(current, element);
- if (resolved)
- value.set(resolved);
- });
- // Cycle through every target property and resolve CSS variables. Currently
- // we only read single-var properties like `var(--foo)`, not `calc(var(--foo) + 20px)`
- for (const key in target) {
- const current = target[key];
- if (!isCSSVariableToken(current))
- continue;
- const resolved = getVariableValue(current, element);
- if (!resolved)
- continue;
- // Clone target if it hasn't already been
- target[key] = resolved;
- if (!transitionEnd)
- transitionEnd = {};
- // If the user hasn't already set this key on `transitionEnd`, set it to the unresolved
- // CSS variable. This will ensure that after the animation the component will reflect
- // changes in the value of the CSS variable.
- if (transitionEnd[key] === undefined) {
- transitionEnd[key] = current;
- }
- }
- return { target, transitionEnd };
-}
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs
-
-
-
-
-
-
-
-
-const positionalKeys = new Set([
- "width",
- "height",
- "top",
- "left",
- "right",
- "bottom",
- "x",
- "y",
- "translateX",
- "translateY",
-]);
-const isPositionalKey = (key) => positionalKeys.has(key);
-const hasPositionalKey = (target) => {
- return Object.keys(target).some(isPositionalKey);
-};
-const isNumOrPxType = (v) => v === number || v === px;
-const getPosFromMatrix = (matrix, pos) => parseFloat(matrix.split(", ")[pos]);
-const getTranslateFromMatrix = (pos2, pos3) => (_bbox, { transform }) => {
- if (transform === "none" || !transform)
- return 0;
- const matrix3d = transform.match(/^matrix3d\((.+)\)$/);
- if (matrix3d) {
- return getPosFromMatrix(matrix3d[1], pos3);
- }
- else {
- const matrix = transform.match(/^matrix\((.+)\)$/);
- if (matrix) {
- return getPosFromMatrix(matrix[1], pos2);
- }
- else {
- return 0;
- }
- }
-};
-const transformKeys = new Set(["x", "y", "z"]);
-const nonTranslationalTransformKeys = transformPropOrder.filter((key) => !transformKeys.has(key));
-function removeNonTranslationalTransform(visualElement) {
- const removedTransforms = [];
- nonTranslationalTransformKeys.forEach((key) => {
- const value = visualElement.getValue(key);
- if (value !== undefined) {
- removedTransforms.push([key, value.get()]);
- value.set(key.startsWith("scale") ? 1 : 0);
- }
- });
- // Apply changes to element before measurement
- if (removedTransforms.length)
- visualElement.render();
- return removedTransforms;
-}
-const positionalValues = {
- // Dimensions
- width: ({ x }, { paddingLeft = "0", paddingRight = "0" }) => x.max - x.min - parseFloat(paddingLeft) - parseFloat(paddingRight),
- height: ({ y }, { paddingTop = "0", paddingBottom = "0" }) => y.max - y.min - parseFloat(paddingTop) - parseFloat(paddingBottom),
- top: (_bbox, { top }) => parseFloat(top),
- left: (_bbox, { left }) => parseFloat(left),
- bottom: ({ y }, { top }) => parseFloat(top) + (y.max - y.min),
- right: ({ x }, { left }) => parseFloat(left) + (x.max - x.min),
- // Transform
- x: getTranslateFromMatrix(4, 13),
- y: getTranslateFromMatrix(5, 14),
-};
-// Alias translate longform names
-positionalValues.translateX = positionalValues.x;
-positionalValues.translateY = positionalValues.y;
-const convertChangedValueTypes = (target, visualElement, changedKeys) => {
- const originBbox = visualElement.measureViewportBox();
- const element = visualElement.current;
- const elementComputedStyle = getComputedStyle(element);
- const { display } = elementComputedStyle;
- const origin = {};
- // If the element is currently set to display: "none", make it visible before
- // measuring the target bounding box
- if (display === "none") {
- visualElement.setStaticValue("display", target.display || "block");
- }
- /**
- * Record origins before we render and update styles
- */
- changedKeys.forEach((key) => {
- origin[key] = positionalValues[key](originBbox, elementComputedStyle);
- });
- // Apply the latest values (as set in checkAndConvertChangedValueTypes)
- visualElement.render();
- const targetBbox = visualElement.measureViewportBox();
- changedKeys.forEach((key) => {
- // Restore styles to their **calculated computed style**, not their actual
- // originally set style. This allows us to animate between equivalent pixel units.
- const value = visualElement.getValue(key);
- value && value.jump(origin[key]);
- target[key] = positionalValues[key](targetBbox, elementComputedStyle);
- });
- return target;
-};
-const checkAndConvertChangedValueTypes = (visualElement, target, origin = {}, transitionEnd = {}) => {
- target = { ...target };
- transitionEnd = { ...transitionEnd };
- const targetPositionalKeys = Object.keys(target).filter(isPositionalKey);
- // We want to remove any transform values that could affect the element's bounding box before
- // it's measured. We'll reapply these later.
- let removedTransformValues = [];
- let hasAttemptedToRemoveTransformValues = false;
- const changedValueTypeKeys = [];
- targetPositionalKeys.forEach((key) => {
- const value = visualElement.getValue(key);
- if (!visualElement.hasValue(key))
- return;
- let from = origin[key];
- let fromType = findDimensionValueType(from);
- const to = target[key];
- let toType;
- // TODO: The current implementation of this basically throws an error
- // if you try and do value conversion via keyframes. There's probably
- // a way of doing this but the performance implications would need greater scrutiny,
- // as it'd be doing multiple resize-remeasure operations.
- if (isKeyframesTarget(to)) {
- const numKeyframes = to.length;
- const fromIndex = to[0] === null ? 1 : 0;
- from = to[fromIndex];
- fromType = findDimensionValueType(from);
- for (let i = fromIndex; i < numKeyframes; i++) {
- /**
- * Don't allow wildcard keyframes to be used to detect
- * a difference in value types.
- */
- if (to[i] === null)
- break;
- if (!toType) {
- toType = findDimensionValueType(to[i]);
- errors_invariant(toType === fromType ||
- (isNumOrPxType(fromType) && isNumOrPxType(toType)), "Keyframes must be of the same dimension as the current value");
- }
- else {
- errors_invariant(findDimensionValueType(to[i]) === toType, "All keyframes must be of the same type");
- }
- }
- }
- else {
- toType = findDimensionValueType(to);
- }
- if (fromType !== toType) {
- // If they're both just number or px, convert them both to numbers rather than
- // relying on resize/remeasure to convert (which is wasteful in this situation)
- if (isNumOrPxType(fromType) && isNumOrPxType(toType)) {
- const current = value.get();
- if (typeof current === "string") {
- value.set(parseFloat(current));
- }
- if (typeof to === "string") {
- target[key] = parseFloat(to);
- }
- else if (Array.isArray(to) && toType === px) {
- target[key] = to.map(parseFloat);
- }
- }
- else if ((fromType === null || fromType === void 0 ? void 0 : fromType.transform) &&
- (toType === null || toType === void 0 ? void 0 : toType.transform) &&
- (from === 0 || to === 0)) {
- // If one or the other value is 0, it's safe to coerce it to the
- // type of the other without measurement
- if (from === 0) {
- value.set(toType.transform(from));
- }
- else {
- target[key] = fromType.transform(to);
- }
- }
- else {
- // If we're going to do value conversion via DOM measurements, we first
- // need to remove non-positional transform values that could affect the bbox measurements.
- if (!hasAttemptedToRemoveTransformValues) {
- removedTransformValues =
- removeNonTranslationalTransform(visualElement);
- hasAttemptedToRemoveTransformValues = true;
- }
- changedValueTypeKeys.push(key);
- transitionEnd[key] =
- transitionEnd[key] !== undefined
- ? transitionEnd[key]
- : target[key];
- value.jump(to);
- }
- }
- });
- if (changedValueTypeKeys.length) {
- const scrollY = changedValueTypeKeys.indexOf("height") >= 0
- ? window.pageYOffset
- : null;
- const convertedTarget = convertChangedValueTypes(target, visualElement, changedValueTypeKeys);
- // If we removed transform values, reapply them before the next render
- if (removedTransformValues.length) {
- removedTransformValues.forEach(([key, value]) => {
- visualElement.getValue(key).set(value);
- });
- }
- // Reapply original values
- visualElement.render();
- // Restore scroll position
- if (is_browser_isBrowser && scrollY !== null) {
- window.scrollTo({ top: scrollY });
- }
- return { target: convertedTarget, transitionEnd };
- }
- else {
- return { target, transitionEnd };
- }
-};
-/**
- * Convert value types for x/y/width/height/top/left/bottom/right
- *
- * Allows animation between `'auto'` -> `'100%'` or `0` -> `'calc(50% - 10vw)'`
- *
- * @internal
- */
-function unitConversion(visualElement, target, origin, transitionEnd) {
- return hasPositionalKey(target)
- ? checkAndConvertChangedValueTypes(visualElement, target, origin, transitionEnd)
- : { target, transitionEnd };
-}
-
-
-
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/parse-dom-variant.mjs
-
-
-
-/**
- * Parse a DOM variant to make it animatable. This involves resolving CSS variables
- * and ensuring animations like "20%" => "calc(50vw)" are performed in pixels.
- */
-const parseDomVariant = (visualElement, target, origin, transitionEnd) => {
- const resolved = resolveCSSVariables(visualElement, target, transitionEnd);
- target = resolved.target;
- transitionEnd = resolved.transitionEnd;
- return unitConversion(visualElement, target, origin, transitionEnd);
-};
-
-
-
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/reduced-motion/state.mjs
// Does this device prefer reduced motion? Returns `null` server-side.
const prefersReducedMotion = { current: null };
@@ -25920,8 +25689,12 @@ function updateMotionValuesFromProps(element, next, prev) {
*/
if (element.hasValue(key)) {
const existingValue = element.getValue(key);
- // TODO: Only update values that aren't being animated or even looked at
- !existingValue.hasAnimated && existingValue.set(nextValue);
+ if (existingValue.liveStyle === true) {
+ existingValue.jump(nextValue);
+ }
+ else if (!existingValue.hasAnimated) {
+ existingValue.set(nextValue);
+ }
}
else {
const latestValue = element.getStaticValue(key);
@@ -25944,6 +25717,23 @@ const visualElementStore = new WeakMap();
+;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/find.mjs
+
+
+
+
+
+/**
+ * A list of all ValueTypes
+ */
+const valueTypes = [...dimensionValueTypes, color, complex];
+/**
+ * Tests a value against the list of ValueTypes
+ */
+const findValueType = (v) => valueTypes.find(testValueType(v));
+
+
+
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/VisualElement.mjs
@@ -25965,6 +25755,12 @@ const visualElementStore = new WeakMap();
+
+
+
+
+
+
const featureNames = Object.keys(featureDefinitions);
const numFeatures = featureNames.length;
const propEventHandlers = [
@@ -25977,12 +25773,36 @@ const propEventHandlers = [
"LayoutAnimationComplete",
];
const numVariantProps = variantProps.length;
+function getClosestProjectingNode(visualElement) {
+ if (!visualElement)
+ return undefined;
+ return visualElement.options.allowProjection !== false
+ ? visualElement.projection
+ : getClosestProjectingNode(visualElement.parent);
+}
/**
* A VisualElement is an imperative abstraction around UI elements such as
* HTMLElement, SVGElement, Three.Object3D etc.
*/
class VisualElement {
- constructor({ parent, props, presenceContext, reducedMotionConfig, visualState, }, options = {}) {
+ /**
+ * This method takes React props and returns found MotionValues. For example, HTML
+ * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
+ *
+ * This isn't an abstract method as it needs calling in the constructor, but it is
+ * intended to be one.
+ */
+ scrapeMotionValuesFromProps(_props, _prevProps, _visualElement) {
+ return {};
+ }
+ constructor({ parent, props, presenceContext, reducedMotionConfig, blockInitialAnimation, visualState, }, options = {}) {
+ this.resolveKeyframes = (keyframes,
+ // We use an onComplete callback here rather than a Promise as a Promise
+ // resolution is a microtask and we want to retain the ability to force
+ // the resolution of keyframes synchronously.
+ onComplete, name, value) => {
+ return new this.KeyframeResolver(keyframes, onComplete, name, value, this);
+ };
/**
* A reference to the current underlying Instance, e.g. a HTMLElement
* or Three.Mesh etc.
@@ -26011,6 +25831,7 @@ class VisualElement {
* value might be provided externally by the component via props.
*/
this.values = new Map();
+ this.KeyframeResolver = KeyframeResolver;
/**
* Cleanup functions for active features (hover/tap/exit etc)
*/
@@ -26055,6 +25876,7 @@ class VisualElement {
this.depth = parent ? parent.depth + 1 : 0;
this.reducedMotionConfig = reducedMotionConfig;
this.options = options;
+ this.blockInitialAnimation = Boolean(blockInitialAnimation);
this.isControllingVariants = isControllingVariants(props);
this.isVariantNode = isVariantNode(props);
if (this.isVariantNode) {
@@ -26071,7 +25893,7 @@ class VisualElement {
* Doing so will break some tests but this isn't neccessarily a breaking change,
* more a reflection of the test.
*/
- const { willChange, ...initialMotionValues } = this.scrapeMotionValuesFromProps(props, {});
+ const { willChange, ...initialMotionValues } = this.scrapeMotionValuesFromProps(props, {}, this);
for (const key in initialMotionValues) {
const value = initialMotionValues[key];
if (latestValues[key] !== undefined && isMotionValue(value)) {
@@ -26082,16 +25904,6 @@ class VisualElement {
}
}
}
- /**
- * This method takes React props and returns found MotionValues. For example, HTML
- * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
- *
- * This isn't an abstract method as it needs calling in the constructor, but it is
- * intended to be one.
- */
- scrapeMotionValuesFromProps(_props, _prevProps) {
- return {};
- }
mount(instance) {
this.current = instance;
visualElementStore.set(instance, this);
@@ -26117,6 +25929,7 @@ class VisualElement {
this.update(this.props, this.presenceContext);
}
unmount() {
+ var _a;
visualElementStore.delete(this.current);
this.projection && this.projection.unmount();
cancelFrame(this.notifyUpdate);
@@ -26128,7 +25941,7 @@ class VisualElement {
this.events[key].clear();
}
for (const key in this.features) {
- this.features[key].unmount();
+ (_a = this.features[key]) === null || _a === void 0 ? void 0 : _a.unmount();
}
this.current = null;
}
@@ -26136,8 +25949,7 @@ class VisualElement {
const valueIsTransform = transformProps.has(key);
const removeOnChange = value.on("change", (latestValue) => {
this.latestValues[key] = latestValue;
- this.props.onUpdate &&
- frame_frame.update(this.notifyUpdate, false, true);
+ this.props.onUpdate && frame_frame.preRender(this.notifyUpdate);
if (valueIsTransform && this.projection) {
this.projection.isTransformDirty = true;
}
@@ -26146,6 +25958,8 @@ class VisualElement {
this.valueSubscriptions.set(key, () => {
removeOnChange();
removeOnRenderRequest();
+ if (value.owner)
+ value.stop();
});
}
sortNodePosition(other) {
@@ -26181,9 +25995,13 @@ class VisualElement {
}
}
}
- if (!this.projection && ProjectionNodeConstructor) {
- this.projection = new ProjectionNodeConstructor(this.latestValues, this.parent && this.parent.projection);
+ if ((this.type === "html" || this.type === "svg") &&
+ !this.projection &&
+ ProjectionNodeConstructor) {
const { layoutId, layout, drag, dragConstraints, layoutScroll, layoutRoot, } = renderedProps;
+ this.projection = new ProjectionNodeConstructor(this.latestValues, renderedProps["data-framer-portal-id"]
+ ? undefined
+ : getClosestProjectingNode(this.parent));
this.projection.setOptions({
layoutId,
layout,
@@ -26238,16 +26056,6 @@ class VisualElement {
this.latestValues[key] = value;
}
/**
- * Make a target animatable by Popmotion. For instance, if we're
- * trying to animate width from 100px to 100vw we need to measure 100vw
- * in pixels to determine what we really need to animate to. This is also
- * pluggable to support Framer's custom value types like Color,
- * and CSS variables.
- */
- makeTargetAnimatable(target, canMutate = true) {
- return this.makeTargetAnimatableFromInstance(target, this.props, canMutate);
- }
- /**
* Update the provided props. Ensure any newly-added motion values are
* added to our map, old ones removed, and listeners updated.
*/
@@ -26268,12 +26076,13 @@ class VisualElement {
this.propEventSubscriptions[key]();
delete this.propEventSubscriptions[key];
}
- const listener = props["on" + key];
+ const listenerName = ("on" + key);
+ const listener = props[listenerName];
if (listener) {
this.propEventSubscriptions[key] = this.on(key, listener);
}
}
- this.prevMotionValues = updateMotionValuesFromProps(this, this.scrapeMotionValuesFromProps(props, this.prevProps), this.prevMotionValues);
+ this.prevMotionValues = updateMotionValuesFromProps(this, this.scrapeMotionValuesFromProps(props, this.prevProps, this), this.prevMotionValues);
if (this.handleChildMotionValue) {
this.handleChildMotionValue();
}
@@ -26342,12 +26151,14 @@ class VisualElement {
*/
addValue(key, value) {
// Remove existing value if it exists
- if (value !== this.values.get(key)) {
- this.removeValue(key);
+ const existingValue = this.values.get(key);
+ if (value !== existingValue) {
+ if (existingValue)
+ this.removeValue(key);
this.bindToMotionValue(key, value);
+ this.values.set(key, value);
+ this.latestValues[key] = value.get();
}
- this.values.set(key, value);
- this.latestValues[key] = value.get();
}
/**
* Remove a motion value and unbind any active subscriptions.
@@ -26374,7 +26185,7 @@ class VisualElement {
}
let value = this.values.get(key);
if (value === undefined && defaultValue !== undefined) {
- value = motionValue(defaultValue, { owner: this });
+ value = motionValue(defaultValue === null ? undefined : defaultValue, { owner: this });
this.addValue(key, value);
}
return value;
@@ -26384,11 +26195,23 @@ class VisualElement {
* we need to check for it in our state and as a last resort read it
* directly from the instance (which might have performance implications).
*/
- readValue(key) {
+ readValue(key, target) {
var _a;
- return this.latestValues[key] !== undefined || !this.current
+ let value = this.latestValues[key] !== undefined || !this.current
? this.latestValues[key]
: (_a = this.getBaseTargetFromProps(this.props, key)) !== null && _a !== void 0 ? _a : this.readValueFromInstance(this.current, key, this.options);
+ if (value !== undefined && value !== null) {
+ if (typeof value === "string" &&
+ (isNumericalString(value) || isZeroValueString(value))) {
+ // If this is a number read as a string, ie "0" or "200", convert it to a number
+ value = parseFloat(value);
+ }
+ else if (!findValueType(value) && complex.test(target)) {
+ value = animatable_none_getAnimatableNone(key, target);
+ }
+ this.setBaseTarget(key, isMotionValue(value) ? value.get() : value);
+ }
+ return isMotionValue(value) ? value.get() : value;
}
/**
* Set the base target to later animate back to. This is currently
@@ -26404,9 +26227,13 @@ class VisualElement {
getBaseTarget(key) {
var _a;
const { initial } = this.props;
- const valueFromInitial = typeof initial === "string" || typeof initial === "object"
- ? (_a = resolveVariantFromProps(this.props, initial)) === null || _a === void 0 ? void 0 : _a[key]
- : undefined;
+ let valueFromInitial;
+ if (typeof initial === "string" || typeof initial === "object") {
+ const variant = resolveVariantFromProps(this.props, initial, (_a = this.presenceContext) === null || _a === void 0 ? void 0 : _a.custom);
+ if (variant) {
+ valueFromInitial = variant[key];
+ }
+ }
/**
* If this value still exists in the current initial variant, read that.
*/
@@ -26448,8 +26275,11 @@ class VisualElement {
-
class DOMVisualElement extends VisualElement {
+ constructor() {
+ super(...arguments);
+ this.KeyframeResolver = DOMKeyframesResolver;
+ }
sortInstanceNodePosition(a, b) {
/**
* compareDocumentPosition returns a bitmask, by using the bitwise &
@@ -26459,37 +26289,14 @@ class DOMVisualElement extends VisualElement {
return a.compareDocumentPosition(b) & 2 ? 1 : -1;
}
getBaseTargetFromProps(props, key) {
- return props.style ? props.style[key] : undefined;
+ return props.style
+ ? props.style[key]
+ : undefined;
}
removeValueFromRenderState(key, { vars, style }) {
delete vars[key];
delete style[key];
}
- makeTargetAnimatableFromInstance({ transition, transitionEnd, ...target }, { transformValues }, isMounted) {
- let origin = getOrigin(target, transition || {}, this);
- /**
- * If Framer has provided a function to convert `Color` etc value types, convert them
- */
- if (transformValues) {
- if (transitionEnd)
- transitionEnd = transformValues(transitionEnd);
- if (target)
- target = transformValues(target);
- if (origin)
- origin = transformValues(origin);
- }
- if (isMounted) {
- checkTargetForNewValues(this, target, origin);
- const parsed = parseDomVariant(this, target, origin, transitionEnd);
- transitionEnd = parsed.transitionEnd;
- target = parsed.target;
- }
- return {
- transition,
- transitionEnd,
- ...target,
- };
- }
}
@@ -26509,6 +26316,10 @@ function HTMLVisualElement_getComputedStyle(element) {
return window.getComputedStyle(element);
}
class HTMLVisualElement extends DOMVisualElement {
+ constructor() {
+ super(...arguments);
+ this.type = "html";
+ }
readValueFromInstance(instance, key) {
if (transformProps.has(key)) {
const defaultType = getDefaultValueType(key);
@@ -26528,8 +26339,8 @@ class HTMLVisualElement extends DOMVisualElement {
build(renderState, latestValues, options, props) {
buildHTMLStyles(renderState, latestValues, options, props.transformTemplate);
}
- scrapeMotionValuesFromProps(props, prevProps) {
- return scrapeMotionValuesFromProps(props, prevProps);
+ scrapeMotionValuesFromProps(props, prevProps, visualElement) {
+ return scrapeMotionValuesFromProps(props, prevProps, visualElement);
}
handleChildMotionValue() {
if (this.childSubscription) {
@@ -26566,6 +26377,7 @@ class HTMLVisualElement extends DOMVisualElement {
class SVGVisualElement extends DOMVisualElement {
constructor() {
super(...arguments);
+ this.type = "svg";
this.isSVGTag = false;
}
getBaseTargetFromProps(props, key) {
@@ -26582,8 +26394,8 @@ class SVGVisualElement extends DOMVisualElement {
measureInstanceViewportBox() {
return createBox();
}
- scrapeMotionValuesFromProps(props, prevProps) {
- return scrape_motion_values_scrapeMotionValuesFromProps(props, prevProps);
+ scrapeMotionValuesFromProps(props, prevProps, visualElement) {
+ return scrape_motion_values_scrapeMotionValuesFromProps(props, prevProps, visualElement);
}
build(renderState, latestValues, options, props) {
buildSVGAttrs(renderState, latestValues, options, this.isSVGTag, props.transformTemplate);
@@ -26604,10 +26416,14 @@ class SVGVisualElement extends DOMVisualElement {
+
const create_visual_element_createDomVisualElement = (Component, options) => {
return isSVGComponent(Component)
? new SVGVisualElement(options, { enableHardwareAcceleration: false })
- : new HTMLVisualElement(options, { enableHardwareAcceleration: true });
+ : new HTMLVisualElement(options, {
+ allowProjection: Component !== external_React_.Fragment,
+ enableHardwareAcceleration: true,
+ });
};
@@ -26711,6 +26527,8 @@ function use_force_update_useForceUpdate() {
+
+
/**
* Measurement functionality has to be within a separate component
* to leverage snapshot lifecycle.
@@ -26744,6 +26562,7 @@ function PopChild({ children, isPresent }) {
top: 0,
left: 0,
});
+ const { nonce } = (0,external_React_.useContext)(MotionConfigContext);
/**
* We create and inject a style block so we can apply this explicit
* sizing in a non-destructive manner by just deleting the style block.
@@ -26759,6 +26578,8 @@ function PopChild({ children, isPresent }) {
return;
ref.current.dataset.motionPopId = id;
const style = document.createElement("style");
+ if (nonce)
+ style.nonce = nonce;
document.head.appendChild(style);
if (style.sheet) {
style.sheet.insertRule(`
@@ -26775,7 +26596,7 @@ function PopChild({ children, isPresent }) {
document.head.removeChild(style);
};
}, [isPresent]);
- return (external_React_.createElement(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size }, external_React_.cloneElement(children, { ref })));
+ return ((0,external_ReactJSXRuntime_namespaceObject.jsx)(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: external_React_.cloneElement(children, { ref }) }));
}
@@ -26787,6 +26608,7 @@ function PopChild({ children, isPresent }) {
+
const PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, }) => {
const presenceChildren = useConstant(newChildrenMap);
const id = (0,external_React_.useId)();
@@ -26813,7 +26635,7 @@ const PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, p
* we want to make a new context value to ensure they get re-rendered
* so they can detect that layout change.
*/
- presenceAffectsLayout ? undefined : [isPresent]);
+ presenceAffectsLayout ? [Math.random()] : [isPresent]);
(0,external_React_.useMemo)(() => {
presenceChildren.forEach((_, key) => presenceChildren.set(key, false));
}, [isPresent]);
@@ -26828,9 +26650,9 @@ const PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, p
onExitComplete();
}, [isPresent]);
if (mode === "popLayout") {
- children = external_React_.createElement(PopChild, { isPresent: isPresent }, children);
+ children = (0,external_ReactJSXRuntime_namespaceObject.jsx)(PopChild, { isPresent: isPresent, children: children });
}
- return (external_React_.createElement(PresenceContext_PresenceContext.Provider, { value: context }, children));
+ return ((0,external_ReactJSXRuntime_namespaceObject.jsx)(PresenceContext_PresenceContext.Provider, { value: context, children: children }));
};
function newChildrenMap() {
return new Map();
@@ -26936,7 +26758,7 @@ const AnimatePresence = ({ children, custom, initial = true, onExitComplete, exi
exitingChildren.clear();
});
if (isInitialRender.current) {
- return (external_React_.createElement(external_React_.Fragment, null, childrenToRender.map((child) => (external_React_.createElement(PresenceChild, { key: getChildKey(child), isPresent: true, initial: initial ? undefined : false, presenceAffectsLayout: presenceAffectsLayout, mode: mode }, child)))));
+ return ((0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: childrenToRender.map((child) => ((0,external_ReactJSXRuntime_namespaceObject.jsx)(PresenceChild, { isPresent: true, initial: initial ? undefined : false, presenceAffectsLayout: presenceAffectsLayout, mode: mode, children: child }, getChildKey(child)))) }));
}
// If this is a subsequent render, deal with entering and exiting children
childrenToRender = [...childrenToRender];
@@ -26970,21 +26792,32 @@ const AnimatePresence = ({ children, custom, initial = true, onExitComplete, exi
let exitingComponent = component;
if (!exitingComponent) {
const onExit = () => {
- allChildren.delete(key);
+ // clean up the exiting children map
exitingChildren.delete(key);
- // Remove this child from the present children
- const removeIndex = presentChildren.current.findIndex((presentChild) => presentChild.key === key);
- presentChildren.current.splice(removeIndex, 1);
+ // compute the keys of children that were rendered once but are no longer present
+ // this could happen in case of too many fast consequent renderings
+ // @link https://github.com/framer/motion/issues/2023
+ const leftOverKeys = Array.from(allChildren.keys()).filter((childKey) => !targetKeys.includes(childKey));
+ // clean up the all children map
+ leftOverKeys.forEach((leftOverKey) => allChildren.delete(leftOverKey));
+ // make sure to render only the children that are actually visible
+ presentChildren.current = filteredChildren.filter((presentChild) => {
+ const presentChildKey = getChildKey(presentChild);
+ return (
+ // filter out the node exiting
+ presentChildKey === key ||
+ // filter out the leftover children
+ leftOverKeys.includes(presentChildKey));
+ });
// Defer re-rendering until all exiting children have indeed left
if (!exitingChildren.size) {
- presentChildren.current = filteredChildren;
if (isMounted.current === false)
return;
forceRender();
onExitComplete && onExitComplete();
}
};
- exitingComponent = (external_React_.createElement(PresenceChild, { key: getChildKey(child), isPresent: false, onExitComplete: onExit, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode }, child));
+ exitingComponent = ((0,external_ReactJSXRuntime_namespaceObject.jsx)(PresenceChild, { isPresent: false, onExitComplete: onExit, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, children: child }, getChildKey(child)));
exitingChildren.set(key, exitingComponent);
}
childrenToRender.splice(insertionIndex, 0, exitingComponent);
@@ -26993,12 +26826,12 @@ const AnimatePresence = ({ children, custom, initial = true, onExitComplete, exi
// the same tree between renders
childrenToRender = childrenToRender.map((child) => {
const key = child.key;
- return exitingChildren.has(key) ? (child) : (external_React_.createElement(PresenceChild, { key: getChildKey(child), isPresent: true, presenceAffectsLayout: presenceAffectsLayout, mode: mode }, child));
+ return exitingChildren.has(key) ? (child) : ((0,external_ReactJSXRuntime_namespaceObject.jsx)(PresenceChild, { isPresent: true, presenceAffectsLayout: presenceAffectsLayout, mode: mode, children: child }, getChildKey(child)));
});
if (false) {}
- return (external_React_.createElement(external_React_.Fragment, null, exitingChildren.size
- ? childrenToRender
- : childrenToRender.map((child) => (0,external_React_.cloneElement)(child))));
+ return ((0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: exitingChildren.size
+ ? childrenToRender
+ : childrenToRender.map((child) => (0,external_React_.cloneElement)(child)) }));
};
@@ -27045,7 +26878,9 @@ function useResponsiveValue(values, options = {}) {
const index = useBreakpointIndex(options);
// Allow calling the function with a "normal" value without having to check on the outside.
- if (!Array.isArray(values) && typeof values !== 'function') return values;
+ if (!Array.isArray(values) && typeof values !== 'function') {
+ return values;
+ }
const array = values || [];
/* eslint-disable jsdoc/no-undefined-types */
@@ -27218,7 +27053,6 @@ const FlexContext = (0,external_wp_element_namespaceObject.createContext)({
const useFlexContext = () => (0,external_wp_element_namespaceObject.useContext)(FlexContext);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/flex/component.js
-
/**
* External dependencies
*/
@@ -27231,20 +27065,23 @@ const useFlexContext = () => (0,external_wp_element_namespaceObject.useContext)(
+
function UnconnectedFlex(props, forwardedRef) {
const {
children,
isColumn,
...otherProps
} = useFlex(props);
- return (0,external_React_.createElement)(FlexContext.Provider, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexContext.Provider, {
value: {
flexItemDisplay: isColumn ? 'block' : undefined
- }
- }, (0,external_React_.createElement)(component, {
- ...otherProps,
- ref: forwardedRef
- }, children));
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
+ ...otherProps,
+ ref: forwardedRef,
+ children: children
+ })
+ });
}
/**
@@ -27327,7 +27164,6 @@ function useFlexBlock(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/flex-block/component.js
-
/**
* External dependencies
*/
@@ -27339,9 +27175,10 @@ function useFlexBlock(props) {
+
function UnconnectedFlexBlock(props, forwardedRef) {
const flexBlockProps = useFlexBlock(props);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
...flexBlockProps,
ref: forwardedRef
});
@@ -27433,11 +27270,11 @@ function rtl(ltrStyles = {}, rtlStyles) {
return () => {
if (rtlStyles) {
// @ts-ignore: `css` types are wrong, it can accept an object: https://emotion.sh/docs/object-styles#with-css
- return (0,external_wp_i18n_namespaceObject.isRTL)() ? /*#__PURE__*/emotion_react_browser_esm_css(rtlStyles, true ? "" : 0) : /*#__PURE__*/emotion_react_browser_esm_css(ltrStyles, true ? "" : 0);
+ return (0,external_wp_i18n_namespaceObject.isRTL)() ? /*#__PURE__*/emotion_react_browser_esm_css(rtlStyles, true ? "" : 0, true ? "" : 0) : /*#__PURE__*/emotion_react_browser_esm_css(ltrStyles, true ? "" : 0, true ? "" : 0);
}
// @ts-ignore: `css` types are wrong, it can accept an object: https://emotion.sh/docs/object-styles#with-css
- return (0,external_wp_i18n_namespaceObject.isRTL)() ? /*#__PURE__*/emotion_react_browser_esm_css(convertLTRToRTL(ltrStyles), true ? "" : 0) : /*#__PURE__*/emotion_react_browser_esm_css(ltrStyles, true ? "" : 0);
+ return (0,external_wp_i18n_namespaceObject.isRTL)() ? /*#__PURE__*/emotion_react_browser_esm_css(convertLTRToRTL(ltrStyles), true ? "" : 0, true ? "" : 0) : /*#__PURE__*/emotion_react_browser_esm_css(ltrStyles, true ? "" : 0, true ? "" : 0);
};
}
@@ -27505,7 +27342,6 @@ function useSpacer(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/spacer/component.js
-
/**
* External dependencies
*/
@@ -27517,9 +27353,10 @@ function useSpacer(props) {
+
function UnconnectedSpacer(props, forwardedRef) {
const spacerProps = useSpacer(props);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
...spacerProps,
ref: forwardedRef
});
@@ -27553,35 +27390,36 @@ const Spacer = contextConnect(UnconnectedSpacer, 'Spacer');
/* harmony default export */ const spacer_component = (Spacer);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js
-
/**
* WordPress dependencies
*/
-const plus = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const plus = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
+ })
+});
/* harmony default export */ const library_plus = (plus);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/reset.js
-
/**
* WordPress dependencies
*/
-const reset_reset = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const reset_reset = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M7 11.5h10V13H7z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M7 11.5h10V13H7z"
+ })
+});
/* harmony default export */ const library_reset = (reset_reset);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/flex-item/component.js
-
/**
* External dependencies
*/
@@ -27593,9 +27431,10 @@ const reset_reset = (0,external_React_.createElement)(external_wp_primitives_nam
+
function UnconnectedFlexItem(props, forwardedRef) {
const flexItemProps = useFlexItem(props);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
...flexItemProps,
ref: forwardedRef
});
@@ -27812,7 +27651,10 @@ function useTruncate(props) {
}) : children;
const shouldTruncate = !!childrenAsText && ellipsizeMode === TRUNCATE_TYPE.auto;
const classes = (0,external_wp_element_namespaceObject.useMemo)(() => {
- const truncateLines = /*#__PURE__*/emotion_react_browser_esm_css("-webkit-box-orient:vertical;-webkit-line-clamp:", numberOfLines, ";display:-webkit-box;overflow:hidden;" + ( true ? "" : 0), true ? "" : 0);
+ // The `word-break: break-all` property first makes sure a text line
+ // breaks even when it contains 'unbreakable' content such as long URLs.
+ // See https://github.com/WordPress/gutenberg/issues/60860.
+ const truncateLines = /*#__PURE__*/emotion_react_browser_esm_css(numberOfLines === 1 ? 'word-break: break-all;' : '', " -webkit-box-orient:vertical;-webkit-line-clamp:", numberOfLines, ";display:-webkit-box;overflow:hidden;" + ( true ? "" : 0), true ? "" : 0);
return cx(shouldTruncate && !numberOfLines && Truncate, shouldTruncate && !!numberOfLines && truncateLines, className);
}, [className, cx, numberOfLines, shouldTruncate]);
return {
@@ -27823,7 +27665,7 @@ function useTruncate(props) {
}
;// CONCATENATED MODULE: ./node_modules/colord/index.mjs
-var r={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(r){return"string"==typeof r?r.length>0:"number"==typeof r},colord_n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},colord_e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},colord_a=function(r){return{r:colord_e(r.r,0,255),g:colord_e(r.g,0,255),b:colord_e(r.b,0,255),a:colord_e(r.a)}},colord_o=function(r){return{r:colord_n(r.r),g:colord_n(r.g),b:colord_n(r.b),a:colord_n(r.a,3)}},i=/^#([0-9a-f]{3,8})$/i,s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},g=function(r){return{h:u(r.h),s:colord_e(r.s,0,100),l:colord_e(r.l,0,100),a:colord_e(r.a)}},d=function(r){return{h:colord_n(r.h),s:colord_n(r.s),l:colord_n(r.l),a:colord_n(r.a,3)}},f=function(r){return b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},c=function(r){return{h:(t=h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y={string:[[function(r){var t=i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?colord_n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?colord_n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=v.exec(r)||m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:colord_a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=l.exec(t)||p.exec(t);if(!n)return null;var e,u,a=g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return f(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return t(n)&&t(e)&&t(u)?colord_a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!t(n)||!t(e)||!t(u))return null;var i=g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return f(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!t(n)||!t(a)||!t(o))return null;var h=function(r){return{h:u(r.h),s:colord_e(r.s,0,100),v:colord_e(r.v,0,100),a:colord_e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return b(h)},"hsv"]]},N=function(r,t){for(var n=0;n<t.length;n++){var e=t[n][0](r);if(e)return[e,t[n][1]]}return[null,void 0]},x=function(r){return"string"==typeof r?N(r.trim(),y.string):"object"==typeof r&&null!==r?N(r,y.object):[null,void 0]},I=function(r){return x(r)[1]},M=function(r,t){var n=c(r);return{h:n.h,s:colord_e(n.s+100*t,0,100),l:n.l,a:n.a}},H=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},$=function(r,t){var n=c(r);return{h:n.h,s:n.s,l:colord_e(n.l+100*t,0,100),a:n.a}},j=function(){function r(r){this.parsed=x(r)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return colord_n(H(this.rgba),2)},r.prototype.isDark=function(){return H(this.rgba)<.5},r.prototype.isLight=function(){return H(this.rgba)>=.5},r.prototype.toHex=function(){return r=colord_o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?s(colord_n(255*a)):"","#"+s(t)+s(e)+s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return colord_o(this.rgba)},r.prototype.toRgbString=function(){return r=colord_o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u},r.prototype.toHsl=function(){return d(c(this.rgba))},r.prototype.toHslString=function(){return r=d(c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u},r.prototype.toHsv=function(){return r=h(this.rgba),{h:colord_n(r.h),s:colord_n(r.s),v:colord_n(r.v),a:colord_n(r.a,3)};var r},r.prototype.invert=function(){return w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,-r))},r.prototype.grayscale=function(){return w(M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return"number"==typeof r?w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):colord_n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=c(this.rgba);return"number"==typeof r?w({h:r,s:t.s,l:t.l,a:t.a}):colord_n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===w(r).toHex()},r}(),w=function(r){return r instanceof j?r:new j(r)},S=[],k=function(r){r.forEach(function(r){S.indexOf(r)<0&&(r(j,y),S.push(r))})},E=function(){return new j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})};
+var colord_r={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(r){return"string"==typeof r?r.length>0:"number"==typeof r},colord_n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},colord_e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},colord_a=function(r){return{r:colord_e(r.r,0,255),g:colord_e(r.g,0,255),b:colord_e(r.b,0,255),a:colord_e(r.a)}},colord_o=function(r){return{r:colord_n(r.r),g:colord_n(r.g),b:colord_n(r.b),a:colord_n(r.a,3)}},i=/^#([0-9a-f]{3,8})$/i,s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},g=function(r){return{h:u(r.h),s:colord_e(r.s,0,100),l:colord_e(r.l,0,100),a:colord_e(r.a)}},d=function(r){return{h:colord_n(r.h),s:colord_n(r.s),l:colord_n(r.l),a:colord_n(r.a,3)}},f=function(r){return b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},c=function(r){return{h:(t=h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y={string:[[function(r){var t=i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?colord_n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?colord_n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=v.exec(r)||m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:colord_a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=l.exec(t)||p.exec(t);if(!n)return null;var e,u,a=g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(colord_r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return f(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return t(n)&&t(e)&&t(u)?colord_a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!t(n)||!t(e)||!t(u))return null;var i=g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return f(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!t(n)||!t(a)||!t(o))return null;var h=function(r){return{h:u(r.h),s:colord_e(r.s,0,100),v:colord_e(r.v,0,100),a:colord_e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return b(h)},"hsv"]]},N=function(r,t){for(var n=0;n<t.length;n++){var e=t[n][0](r);if(e)return[e,t[n][1]]}return[null,void 0]},x=function(r){return"string"==typeof r?N(r.trim(),y.string):"object"==typeof r&&null!==r?N(r,y.object):[null,void 0]},I=function(r){return x(r)[1]},M=function(r,t){var n=c(r);return{h:n.h,s:colord_e(n.s+100*t,0,100),l:n.l,a:n.a}},H=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},$=function(r,t){var n=c(r);return{h:n.h,s:n.s,l:colord_e(n.l+100*t,0,100),a:n.a}},j=function(){function r(r){this.parsed=x(r)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return colord_n(H(this.rgba),2)},r.prototype.isDark=function(){return H(this.rgba)<.5},r.prototype.isLight=function(){return H(this.rgba)>=.5},r.prototype.toHex=function(){return r=colord_o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?s(colord_n(255*a)):"","#"+s(t)+s(e)+s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return colord_o(this.rgba)},r.prototype.toRgbString=function(){return r=colord_o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u},r.prototype.toHsl=function(){return d(c(this.rgba))},r.prototype.toHslString=function(){return r=d(c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u},r.prototype.toHsv=function(){return r=h(this.rgba),{h:colord_n(r.h),s:colord_n(r.s),v:colord_n(r.v),a:colord_n(r.a,3)};var r},r.prototype.invert=function(){return w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,-r))},r.prototype.grayscale=function(){return w(M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return"number"==typeof r?w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):colord_n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=c(this.rgba);return"number"==typeof r?w({h:r,s:t.s,l:t.l,a:t.a}):colord_n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===w(r).toHex()},r}(),w=function(r){return r instanceof j?r:new j(r)},S=[],k=function(r){r.forEach(function(r){S.indexOf(r)<0&&(r(j,y),S.push(r))})},E=function(){return new j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})};
;// CONCATENATED MODULE: ./node_modules/colord/plugins/names.mjs
/* harmony default export */ function names(e,f){var a={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var d in a)r[a[d]]=d;var l={};e.prototype.toName=function(f){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var d,i,n=r[this.toHex()];if(n)return n;if(null==f?void 0:f.closest){var o=this.toRgb(),t=1/0,b="black";if(!l.length)for(var c in a)l[c]=new e(a[c]).toRgb();for(var g in a){var u=(d=o,i=l[g],Math.pow(d.r-i.r,2)+Math.pow(d.g-i.g,2)+Math.pow(d.b-i.b,2));u<t&&(t=u,b=g)}return b}};f.string.push([function(f){var r=f.toLowerCase(),d="transparent"===r?"#0000":a[r];return d?new e(d).toRgb():null},"name"])}
@@ -27859,7 +27701,9 @@ function colors_rgba(hexValue = '', alpha = 1) {
* @return {HTMLDivElement | undefined} The HTML element for color computation.
*/
function getColorComputationNode() {
- if (typeof document === 'undefined') return;
+ if (typeof document === 'undefined') {
+ return;
+ }
if (!colorComputationNode) {
// Create a temporary element for style computation.
const el = document.createElement('div');
@@ -27877,7 +27721,9 @@ function getColorComputationNode() {
* @return {boolean} Whether the value is a valid color.
*/
function isColor(value) {
- if (typeof value !== 'string') return false;
+ if (typeof value !== 'string') {
+ return false;
+ }
const test = w(value);
return test.isValid();
}
@@ -27891,14 +27737,24 @@ function isColor(value) {
* @return {string} The computed background color.
*/
function _getComputedBackgroundColor(backgroundColor) {
- if (typeof backgroundColor !== 'string') return '';
- if (isColor(backgroundColor)) return backgroundColor;
- if (!backgroundColor.includes('var(')) return '';
- if (typeof document === 'undefined') return '';
+ if (typeof backgroundColor !== 'string') {
+ return '';
+ }
+ if (isColor(backgroundColor)) {
+ return backgroundColor;
+ }
+ if (!backgroundColor.includes('var(')) {
+ return '';
+ }
+ if (typeof document === 'undefined') {
+ return '';
+ }
// Attempts to gracefully handle CSS variables color values.
const el = getColorComputationNode();
- if (!el) return '';
+ if (!el) {
+ return '';
+ }
el.style.background = backgroundColor;
// Grab the style.
const computedColor = window?.getComputedStyle(el).background;
@@ -27989,7 +27845,7 @@ const TOGGLE_GROUP_CONTROL_PROPS = {
fontSizeMobile: '15px',
fontSizeSmall: 'calc(0.92 * 13px)',
fontSizeXSmall: 'calc(0.75 * 13px)',
- fontLineHeightBase: '1.2',
+ fontLineHeightBase: '1.4',
fontWeight: 'normal',
fontWeightHeading: '600',
gridBase: '4px',
@@ -28026,7 +27882,7 @@ function text_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried t
* Internal dependencies
*/
-const Text = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.gray[900], ";line-height:", config_values.fontLineHeightBase, ";margin:0;" + ( true ? "" : 0), true ? "" : 0);
+const Text = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.gray[900], ";line-height:", config_values.fontLineHeightBase, ";margin:0;text-wrap:balance;text-wrap:pretty;" + ( true ? "" : 0), true ? "" : 0);
const styles_block = true ? {
name: "4zleql",
styles: "display:block"
@@ -28125,8 +27981,12 @@ function createHighlighterText({
unhighlightClassName = '',
unhighlightStyle
}) {
- if (!children) return null;
- if (typeof children !== 'string') return children;
+ if (!children) {
+ return null;
+ }
+ if (typeof children !== 'string') {
+ return children;
+ }
const textToHighlight = children;
const chunks = (0,dist.findAll)({
autoEscape,
@@ -28207,7 +28067,9 @@ function getFontSize(size = BASE_FONT_SIZE) {
}
if (typeof size !== 'number') {
const parsed = parseFloat(size);
- if (Number.isNaN(parsed)) return size;
+ if (Number.isNaN(parsed)) {
+ return size;
+ }
size = parsed;
}
const ratio = `(${size} / ${BASE_FONT_SIZE})`;
@@ -28233,8 +28095,12 @@ function getHeadingFontSize(size = 3) {
function getLineHeight(adjustLineHeightForInnerControls, lineHeight) {
- if (lineHeight) return lineHeight;
- if (!adjustLineHeightForInnerControls) return;
+ if (lineHeight) {
+ return lineHeight;
+ }
+ if (!adjustLineHeightForInnerControls) {
+ return;
+ }
let value = `calc(${config_values.controlHeight} + ${space(2)})`;
switch (adjustLineHeightForInnerControls) {
case 'large':
@@ -28389,7 +28255,6 @@ function useText(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/component.js
-
/**
* Internal dependencies
*/
@@ -28397,13 +28262,14 @@ function useText(props) {
+
/**
* @param props
* @param forwardedRef
*/
function UnconnectedText(props, forwardedRef) {
const textProps = useText(props);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
as: "span",
...textProps,
ref: forwardedRef
@@ -28445,30 +28311,53 @@ const baseLabelTypography = true ? {
;// 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 _ref2 = true ? {
- name: "1739oy8",
- styles: "z-index:1"
-} : 0;
-const rootFocusedStyles = ({
- isFocused
+
+
+const Prefix = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
+ target: "em5sgkm7"
+} : 0)( true ? {
+ name: "pvvbxf",
+ styles: "box-sizing:border-box;display:block"
+} : 0);
+const Suffix = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
+ target: "em5sgkm6"
+} : 0)( true ? {
+ name: "jgf79h",
+ styles: "align-items:center;align-self:stretch;box-sizing:border-box;display:flex"
+} : 0);
+const backdropBorderColor = ({
+ disabled,
+ isBorderless
}) => {
- if (!isFocused) return '';
- return _ref2;
+ if (isBorderless) {
+ return 'transparent';
+ }
+ if (disabled) {
+ return COLORS.ui.borderDisabled;
+ }
+ return COLORS.ui.border;
};
+const BackdropUI = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
+ target: "em5sgkm5"
+} : 0)("&&&{box-sizing:border-box;border-color:", backdropBorderColor, ";border-radius:inherit;border-style:solid;border-width:1px;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;", rtl({
+ paddingLeft: 2
+}), ";}" + ( true ? "" : 0));
const input_control_styles_Root = /*#__PURE__*/emotion_styled_base_browser_esm(flex_component, true ? {
- target: "em5sgkm7"
-} : 0)("box-sizing:border-box;position:relative;border-radius:2px;padding-top:0;", rootFocusedStyles, ";" + ( true ? "" : 0));
+ target: "em5sgkm4"
+} : 0)("box-sizing:border-box;position:relative;border-radius:2px;padding-top:0;&:focus-within:not( :has( :is( ", Prefix, ", ", Suffix, " ):focus-within ) ){", BackdropUI, "{border-color:", COLORS.ui.borderFocus, ";box-shadow:", config_values.controlBoxShadowFocus, ";outline:2px solid transparent;outline-offset:-2px;}}" + ( true ? "" : 0));
const containerDisabledStyles = ({
disabled
}) => {
@@ -28485,8 +28374,12 @@ const containerWidthStyles = ({
__unstableInputWidth,
labelPosition
}) => {
- if (!__unstableInputWidth) return input_control_styles_ref;
- if (labelPosition === 'side') return '';
+ if (!__unstableInputWidth) {
+ return input_control_styles_ref;
+ }
+ if (labelPosition === 'side') {
+ return '';
+ }
if (labelPosition === 'edge') {
return /*#__PURE__*/emotion_react_browser_esm_css({
flex: `0 0 ${__unstableInputWidth}`
@@ -28496,13 +28389,15 @@ const containerWidthStyles = ({
width: __unstableInputWidth
}, true ? "" : 0, true ? "" : 0);
};
-const Container = emotion_styled_base_browser_esm("div", true ? {
- target: "em5sgkm6"
+const Container = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
+ target: "em5sgkm3"
} : 0)("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;", containerDisabledStyles, " ", containerWidthStyles, ";" + ( true ? "" : 0));
const disabledStyles = ({
disabled
}) => {
- if (!disabled) return '';
+ if (!disabled) {
+ return '';
+ }
return /*#__PURE__*/emotion_react_browser_esm_css({
color: COLORS.ui.textDisabled
}, true ? "" : 0, true ? "" : 0);
@@ -28518,7 +28413,9 @@ const fontSizeStyles = ({
};
const fontSize = sizes[size] || sizes.default;
const fontSizeMobile = '16px';
- if (!fontSize) return '';
+ if (!fontSize) {
+ return '';
+ }
return /*#__PURE__*/emotion_react_browser_esm_css("font-size:", fontSizeMobile, ";@media ( min-width: 600px ){font-size:", fontSize, ";}" + ( true ? "" : 0), true ? "" : 0);
};
const getSizeConfig = ({
@@ -28591,70 +28488,24 @@ const dragStyles = ({
// TODO: Resolve need to use &&& to increase specificity
// https://github.com/WordPress/gutenberg/issues/18483
-const Input = emotion_styled_base_browser_esm("input", true ? {
- target: "em5sgkm5"
+const Input = /*#__PURE__*/emotion_styled_base_browser_esm("input", true ? {
+ target: "em5sgkm2"
} : 0)("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:", COLORS.theme.foreground, ";display:block;font-family:inherit;margin:0;outline:none;width:100%;", dragStyles, " ", disabledStyles, " ", fontSizeStyles, " ", sizeStyles, " ", customPaddings, " &::-webkit-input-placeholder{line-height:normal;}}" + ( true ? "" : 0));
const BaseLabel = /*#__PURE__*/emotion_styled_base_browser_esm(text_component, true ? {
- target: "em5sgkm4"
+ target: "em5sgkm1"
} : 0)("&&&{", baseLabelTypography, ";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}" + ( true ? "" : 0));
-const Label = props => (0,external_React_.createElement)(BaseLabel, {
+const Label = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BaseLabel, {
...props,
as: "label"
});
const LabelWrapper = /*#__PURE__*/emotion_styled_base_browser_esm(flex_item_component, true ? {
- target: "em5sgkm3"
+ target: "em5sgkm0"
} : 0)( true ? {
name: "1b6uupn",
styles: "max-width:calc( 100% - 10px )"
} : 0);
-const backdropFocusedStyles = ({
- disabled,
- isBorderless,
- isFocused
-}) => {
- let borderColor = isBorderless ? 'transparent' : COLORS.ui.border;
- let boxShadow;
- let outline;
- let outlineOffset;
- if (isFocused) {
- borderColor = COLORS.ui.borderFocus;
- boxShadow = config_values.controlBoxShadowFocus;
- // Windows High Contrast mode will show this outline, but not the box-shadow.
- outline = `2px solid transparent`;
- outlineOffset = `-2px`;
- }
- if (disabled) {
- borderColor = isBorderless ? 'transparent' : COLORS.ui.borderDisabled;
- }
- return /*#__PURE__*/emotion_react_browser_esm_css({
- boxShadow,
- borderColor,
- borderStyle: 'solid',
- borderWidth: 1,
- outline,
- outlineOffset
- }, true ? "" : 0, true ? "" : 0);
-};
-const BackdropUI = emotion_styled_base_browser_esm("div", true ? {
- target: "em5sgkm2"
-} : 0)("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;", backdropFocusedStyles, " ", rtl({
- paddingLeft: 2
-}), ";}" + ( true ? "" : 0));
-const Prefix = emotion_styled_base_browser_esm("span", true ? {
- target: "em5sgkm1"
-} : 0)( true ? {
- name: "pvvbxf",
- styles: "box-sizing:border-box;display:block"
-} : 0);
-const Suffix = emotion_styled_base_browser_esm("span", true ? {
- target: "em5sgkm0"
-} : 0)( true ? {
- name: "jgf79h",
- styles: "align-items:center;align-self:stretch;box-sizing:border-box;display:flex"
-} : 0);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/backdrop.js
-
/**
* WordPress dependencies
*/
@@ -28663,46 +28514,51 @@ const Suffix = emotion_styled_base_browser_esm("span", true ? {
* Internal dependencies
*/
+
function Backdrop({
disabled = false,
- isBorderless = false,
- isFocused = false
+ isBorderless = false
}) {
- return (0,external_React_.createElement)(BackdropUI, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BackdropUI, {
"aria-hidden": "true",
className: "components-input-control__backdrop",
disabled: disabled,
- isBorderless: isBorderless,
- isFocused: isFocused
+ isBorderless: isBorderless
});
}
const MemoizedBackdrop = (0,external_wp_element_namespaceObject.memo)(Backdrop);
/* harmony default export */ const backdrop = (MemoizedBackdrop);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/label.js
-
/**
* Internal dependencies
*/
+
function label_Label({
children,
hideLabelFromVision,
htmlFor,
...props
}) {
- if (!children) return null;
+ if (!children) {
+ return null;
+ }
if (hideLabelFromVision) {
- return (0,external_React_.createElement)(visually_hidden_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
as: "label",
- htmlFor: htmlFor
- }, children);
+ htmlFor: htmlFor,
+ children: children
+ });
}
- return (0,external_React_.createElement)(LabelWrapper, null, (0,external_React_.createElement)(Label, {
- htmlFor: htmlFor,
- ...props
- }, children));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LabelWrapper, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Label, {
+ htmlFor: htmlFor,
+ ...props,
+ children: children
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/use-deprecated-props.js
@@ -28719,7 +28575,6 @@ function useDeprecated36pxDefaultSizeProp(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/input-base.js
-
/**
* External dependencies
*/
@@ -28738,6 +28593,8 @@ function useDeprecated36pxDefaultSizeProp(props) {
+
+
function useUniqueId(idProp) {
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(InputBase);
const id = `input-base-control-${instanceId}`;
@@ -28775,7 +28632,6 @@ function InputBase(props, ref) {
labelPosition,
id: idProp,
isBorderless = false,
- isFocused = false,
label,
prefix,
size = 'default',
@@ -28802,39 +28658,48 @@ function InputBase(props, ref) {
};
}, [paddingLeft, paddingRight]);
return (
+ /*#__PURE__*/
// @ts-expect-error The `direction` prop from Flex (FlexDirection) conflicts with legacy SVGAttributes `direction` (string) that come from React intrinsic prop definitions.
- (0,external_React_.createElement)(input_control_styles_Root, {
+ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(input_control_styles_Root, {
...restProps,
...getUIFlexProps(labelPosition),
className: className,
gap: 2,
- isFocused: isFocused,
- labelPosition: labelPosition,
- ref: ref
- }, (0,external_React_.createElement)(label_Label, {
- className: "components-input-control__label",
- hideLabelFromVision: hideLabelFromVision,
- labelPosition: labelPosition,
- htmlFor: id
- }, label), (0,external_React_.createElement)(Container, {
- __unstableInputWidth: __unstableInputWidth,
- className: "components-input-control__container",
- disabled: disabled,
- hideLabel: hideLabel,
- labelPosition: labelPosition
- }, (0,external_React_.createElement)(ContextSystemProvider, {
- value: prefixSuffixContextValue
- }, prefix && (0,external_React_.createElement)(Prefix, {
- className: "components-input-control__prefix"
- }, prefix), children, suffix && (0,external_React_.createElement)(Suffix, {
- className: "components-input-control__suffix"
- }, suffix)), (0,external_React_.createElement)(backdrop, {
- disabled: disabled,
- isBorderless: isBorderless,
- isFocused: isFocused
- })))
+ ref: ref,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(label_Label, {
+ className: "components-input-control__label",
+ hideLabelFromVision: hideLabelFromVision,
+ labelPosition: labelPosition,
+ htmlFor: id,
+ children: label
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Container, {
+ __unstableInputWidth: __unstableInputWidth,
+ className: "components-input-control__container",
+ disabled: disabled,
+ hideLabel: hideLabel,
+ labelPosition: labelPosition,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ContextSystemProvider, {
+ value: prefixSuffixContextValue,
+ children: [prefix && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Prefix, {
+ className: "components-input-control__prefix",
+ children: prefix
+ }), children, suffix && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Suffix, {
+ className: "components-input-control__suffix",
+ children: suffix
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(backdrop, {
+ disabled: disabled,
+ isBorderless: isBorderless
+ })]
+ })]
+ })
);
}
+
+/**
+ * `InputBase` is an internal component used to style the standard borders for an input,
+ * as well as handle the layout for prefix/suffix elements.
+ */
/* harmony default export */ const input_base = (contextConnect(InputBase, 'InputBase'));
;// CONCATENATED MODULE: ./node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.js
@@ -28878,7 +28743,7 @@ function computeRubberband(bounds, [Vx, Vy], [Rx, Ry]) {
-;// CONCATENATED MODULE: ./node_modules/@use-gesture/core/dist/actions-b1cc53c2.esm.js
+;// CONCATENATED MODULE: ./node_modules/@use-gesture/core/dist/actions-fe213e88.esm.js
function _toPrimitive(input, hint) {
@@ -28912,26 +28777,26 @@ function _defineProperty(obj, key, value) {
return obj;
}
-function ownKeys(object, enumerableOnly) {
- var keys = Object.keys(object);
+function ownKeys(e, r) {
+ var t = Object.keys(e);
if (Object.getOwnPropertySymbols) {
- var symbols = Object.getOwnPropertySymbols(object);
- 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 = null != arguments[i] ? arguments[i] : {};
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
- _defineProperty(target, key, source[key]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
+ var o = Object.getOwnPropertySymbols(e);
+ r && (o = o.filter(function (r) {
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
+ })), t.push.apply(t, o);
+ }
+ return t;
+}
+function _objectSpread2(e) {
+ for (var r = 1; r < arguments.length; r++) {
+ var t = null != arguments[r] ? arguments[r] : {};
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
+ _defineProperty(e, r, t[r]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
});
}
- return target;
+ return e;
}
const EVENT_TYPE_MAP = {
@@ -28999,7 +28864,7 @@ function getPointerType(event) {
function getCurrentTargetTouchList(event) {
return Array.from(event.touches).filter(e => {
var _event$currentTarget, _event$currentTarget$;
- return e.target === event.currentTarget || ((_event$currentTarget = event.currentTarget) === null || _event$currentTarget === void 0 ? void 0 : (_event$currentTarget$ = _event$currentTarget.contains) === null || _event$currentTarget$ === void 0 ? void 0 : _event$currentTarget$.call(_event$currentTarget, e.target));
+ return e.target === event.currentTarget || ((_event$currentTarget = event.currentTarget) === null || _event$currentTarget === void 0 || (_event$currentTarget$ = _event$currentTarget.contains) === null || _event$currentTarget$ === void 0 ? void 0 : _event$currentTarget$.call(_event$currentTarget, e.target));
});
}
function getTouchList(event) {
@@ -29009,18 +28874,21 @@ function getValueEvent(event) {
return isTouch(event) ? getTouchList(event)[0] : event;
}
function distanceAngle(P1, P2) {
- const dx = P2.clientX - P1.clientX;
- const dy = P2.clientY - P1.clientY;
- const cx = (P2.clientX + P1.clientX) / 2;
- const cy = (P2.clientY + P1.clientY) / 2;
- const distance = Math.hypot(dx, dy);
- const angle = -(Math.atan2(dx, dy) * 180) / Math.PI;
- const origin = [cx, cy];
- return {
- angle,
- distance,
- origin
- };
+ try {
+ const dx = P2.clientX - P1.clientX;
+ const dy = P2.clientY - P1.clientY;
+ const cx = (P2.clientX + P1.clientX) / 2;
+ const cy = (P2.clientY + P1.clientY) / 2;
+ const distance = Math.hypot(dx, dy);
+ const angle = -(Math.atan2(dx, dy) * 180) / Math.PI;
+ const origin = [cx, cy];
+ return {
+ angle,
+ distance,
+ origin
+ };
+ } catch (_unused) {}
+ return null;
}
function touchIds(event) {
return getCurrentTargetTouchList(event).map(touch => touch.identifier);
@@ -29091,9 +28959,9 @@ function call(v, ...args) {
return v;
}
}
-function actions_b1cc53c2_esm_noop() {}
-function actions_b1cc53c2_esm_chain(...fns) {
- if (fns.length === 0) return actions_b1cc53c2_esm_noop;
+function actions_fe213e88_esm_noop() {}
+function actions_fe213e88_esm_chain(...fns) {
+ if (fns.length === 0) return actions_fe213e88_esm_noop;
if (fns.length === 1) return fns[0];
return function () {
let result;
@@ -29163,7 +29031,7 @@ class Engine {
state.args = args;
state.axis = undefined;
state.memo = undefined;
- state.elapsedTime = 0;
+ state.elapsedTime = state.timeDelta = 0;
state.direction = [0, 0];
state.distance = [0, 0];
state.overflow = [0, 0];
@@ -29184,8 +29052,8 @@ class Engine {
state.currentTarget = event.currentTarget;
state.lastOffset = config.from ? call(config.from, state) : state.offset;
state.offset = state.lastOffset;
+ state.startTime = state.timeStamp = event.timeStamp;
}
- state.startTime = state.timeStamp = event.timeStamp;
}
computeValues(values) {
const state = this.state;
@@ -29279,6 +29147,7 @@ class Engine {
state._direction = state._delta.map(Math.sign);
if (!state.first && dt > 0) {
state.velocity = [absoluteDelta[0] / dt, absoluteDelta[1] / dt];
+ state.timeDelta = dt;
}
}
}
@@ -29352,7 +29221,7 @@ class CoordinatesEngine extends Engine {
}
}
-const actions_b1cc53c2_esm_identity = v => v;
+const actions_fe213e88_esm_identity = v => v;
const DEFAULT_RUBBERBAND = 0.15;
const commonConfigResolver = {
enabled(value = true) {
@@ -29385,7 +29254,7 @@ const commonConfigResolver = {
const transform = value || config.shared.transform;
this.hasCustomTransform = !!transform;
if (false) {}
- return transform || actions_b1cc53c2_esm_identity;
+ return transform || actions_fe213e88_esm_identity;
},
threshold(value) {
return V.toVector(value, 0);
@@ -29521,7 +29390,6 @@ class DragEngine extends CoordinatesEngine {
const state = this.state;
const config = this.config;
if (!state._pointerActive) return;
- if (state.type === event.type && event.timeStamp === state.timeStamp) return;
const id = pointerId(event);
if (state._pointerId !== undefined && id !== state._pointerId) return;
const _values = pointerValues(event);
@@ -29579,15 +29447,16 @@ class DragEngine extends CoordinatesEngine {
if (state.tap && config.filterTaps) {
state._force = true;
} else {
- const [dirx, diry] = state.direction;
- const [vx, vy] = state.velocity;
- const [mx, my] = state.movement;
+ const [_dx, _dy] = state._delta;
+ const [_mx, _my] = state._movement;
const [svx, svy] = config.swipe.velocity;
const [sx, sy] = config.swipe.distance;
const sdt = config.swipe.duration;
if (state.elapsedTime < sdt) {
- if (Math.abs(vx) > svx && Math.abs(mx) > sx) state.swipe[0] = dirx;
- if (Math.abs(vy) > svy && Math.abs(my) > sy) state.swipe[1] = diry;
+ const _vx = Math.abs(_dx / state.timeDelta);
+ const _vy = Math.abs(_dy / state.timeDelta);
+ if (_vx > svx && Math.abs(_mx) > sx) state.swipe[0] = Math.sign(_dx);
+ if (_vy > svy && Math.abs(_my) > sy) state.swipe[1] = Math.sign(_dy);
}
}
this.emit();
@@ -29683,18 +29552,18 @@ function persistEvent(event) {
'persist' in event && typeof event.persist === 'function' && event.persist();
}
-const actions_b1cc53c2_esm_isBrowser = typeof window !== 'undefined' && window.document && window.document.createElement;
+const actions_fe213e88_esm_isBrowser = typeof window !== 'undefined' && window.document && window.document.createElement;
function supportsTouchEvents() {
- return actions_b1cc53c2_esm_isBrowser && 'ontouchstart' in window;
+ return actions_fe213e88_esm_isBrowser && 'ontouchstart' in window;
}
function isTouchScreen() {
- return supportsTouchEvents() || actions_b1cc53c2_esm_isBrowser && window.navigator.maxTouchPoints > 1;
+ return supportsTouchEvents() || actions_fe213e88_esm_isBrowser && window.navigator.maxTouchPoints > 1;
}
function supportsPointerEvents() {
- return actions_b1cc53c2_esm_isBrowser && 'onpointerdown' in window;
+ return actions_fe213e88_esm_isBrowser && 'onpointerdown' in window;
}
function supportsPointerLock() {
- return actions_b1cc53c2_esm_isBrowser && 'exitPointerLock' in window.document;
+ return actions_fe213e88_esm_isBrowser && 'exitPointerLock' in window.document;
}
function supportsGestureEvents() {
try {
@@ -29704,9 +29573,9 @@ function supportsGestureEvents() {
}
}
const SUPPORT = {
- isBrowser: actions_b1cc53c2_esm_isBrowser,
+ isBrowser: actions_fe213e88_esm_isBrowser,
gesture: supportsGestureEvents(),
- touch: isTouchScreen(),
+ touch: supportsTouchEvents(),
touchscreen: isTouchScreen(),
pointer: supportsPointerEvents(),
pointerLock: supportsPointerLock()
@@ -29883,6 +29752,7 @@ class PinchEngine extends Engine {
this.start(event);
state._touchIds = Array.from(ctrlTouchIds).slice(0, 2);
const payload = touchDistanceAngle(event, state._touchIds);
+ if (!payload) return;
this.pinchStart(event, payload);
}
pointerStart(event) {
@@ -29901,6 +29771,7 @@ class PinchEngine extends Engine {
if (state._pointerEvents.size < 2) return;
this.start(event);
const payload = distanceAngle(...Array.from(_pointerEvents.values()));
+ if (!payload) return;
this.pinchStart(event, payload);
}
pinchStart(event, payload) {
@@ -29914,6 +29785,7 @@ class PinchEngine extends Engine {
touchMove(event) {
if (!this.state._active) return;
const payload = touchDistanceAngle(event, this.state._touchIds);
+ if (!payload) return;
this.pinchMove(event, payload);
}
pointerMove(event) {
@@ -29923,6 +29795,7 @@ class PinchEngine extends Engine {
}
if (!this.state._active) return;
const payload = distanceAngle(...Array.from(_pointerEvents.values()));
+ if (!payload) return;
this.pinchMove(event, payload);
}
pinchMove(event, payload) {
@@ -29993,7 +29866,7 @@ class PinchEngine extends Engine {
}
wheel(event) {
const modifierKey = this.config.modifierKey;
- if (modifierKey && !event[modifierKey]) return;
+ if (modifierKey && (Array.isArray(modifierKey) ? !modifierKey.find(k => event[k]) : !event[modifierKey])) return;
if (!this.state._active) this.wheelStart(event);else this.wheelChange(event);
this.timeoutStore.add('wheelEnd', this.wheelEnd.bind(this));
}
@@ -30030,6 +29903,7 @@ class PinchEngine extends Engine {
bindFunction(device, 'change', this[device + 'Move'].bind(this));
bindFunction(device, 'end', this[device + 'End'].bind(this));
bindFunction(device, 'cancel', this[device + 'End'].bind(this));
+ bindFunction('lostPointerCapture', '', this[device + 'End'].bind(this));
}
if (this.config.pinchOnWheel) {
bindFunction('wheel', '', this.wheel.bind(this), {
@@ -30230,38 +30104,38 @@ const hoverConfigResolver = _objectSpread2(_objectSpread2({}, coordinatesConfigR
mouseOnly: (value = true) => value
});
-const actions_b1cc53c2_esm_EngineMap = new Map();
+const actions_fe213e88_esm_EngineMap = new Map();
const ConfigResolverMap = new Map();
-function actions_b1cc53c2_esm_registerAction(action) {
- actions_b1cc53c2_esm_EngineMap.set(action.key, action.engine);
+function actions_fe213e88_esm_registerAction(action) {
+ actions_fe213e88_esm_EngineMap.set(action.key, action.engine);
ConfigResolverMap.set(action.key, action.resolver);
}
-const actions_b1cc53c2_esm_dragAction = {
+const actions_fe213e88_esm_dragAction = {
key: 'drag',
engine: DragEngine,
resolver: dragConfigResolver
};
-const actions_b1cc53c2_esm_hoverAction = {
+const actions_fe213e88_esm_hoverAction = {
key: 'hover',
engine: HoverEngine,
resolver: hoverConfigResolver
};
-const actions_b1cc53c2_esm_moveAction = {
+const actions_fe213e88_esm_moveAction = {
key: 'move',
engine: MoveEngine,
resolver: moveConfigResolver
};
-const actions_b1cc53c2_esm_pinchAction = {
+const actions_fe213e88_esm_pinchAction = {
key: 'pinch',
engine: PinchEngine,
resolver: pinchConfigResolver
};
-const actions_b1cc53c2_esm_scrollAction = {
+const actions_fe213e88_esm_scrollAction = {
key: 'scroll',
engine: ScrollEngine,
resolver: scrollConfigResolver
};
-const actions_b1cc53c2_esm_wheelAction = {
+const actions_fe213e88_esm_wheelAction = {
key: 'wheel',
engine: WheelEngine,
resolver: wheelConfigResolver
@@ -30487,7 +30361,7 @@ class Controller {
const gestureConfig = this.config[gestureKey];
const bindFunction = bindToProps(props, gestureConfig.eventOptions, !!target);
if (gestureConfig.enabled) {
- const Engine = actions_b1cc53c2_esm_EngineMap.get(gestureKey);
+ const Engine = actions_fe213e88_esm_EngineMap.get(gestureKey);
new Engine(this, args, gestureKey).bind(bindFunction);
}
}
@@ -30500,7 +30374,7 @@ class Controller {
}
}
for (const handlerProp in props) {
- props[handlerProp] = actions_b1cc53c2_esm_chain(...props[handlerProp]);
+ props[handlerProp] = actions_fe213e88_esm_chain(...props[handlerProp]);
}
if (!target) return props;
for (const handlerProp in props) {
@@ -30613,7 +30487,7 @@ function useRecognizers(handlers, config = {}, gestureKey, nativeHandlers) {
}
function useDrag(handler, config) {
- actions_b1cc53c2_esm_registerAction(actions_b1cc53c2_esm_dragAction);
+ actions_fe213e88_esm_registerAction(actions_fe213e88_esm_dragAction);
return useRecognizers({
drag: handler
}, config || {}, 'drag');
@@ -30741,10 +30615,14 @@ function useDraft(props) {
current: previousValue
} = refPreviousValue;
refPreviousValue.current = props.value;
- if (draft.value !== undefined && !draft.isStale) setDraft({
- ...draft,
- isStale: true
- });else if (draft.isStale && props.value !== previousValue) setDraft({});
+ if (draft.value !== undefined && !draft.isStale) {
+ setDraft({
+ ...draft,
+ isStale: true
+ });
+ } else if (draft.isStale && props.value !== previousValue) {
+ setDraft({});
+ }
}, [props.value, draft]);
const onChange = (nextValue, extra) => {
// Mutates the draft value to avoid an extra effect run.
@@ -31037,8 +30915,36 @@ function useInputControlStateReducer(stateReducer = initialStateReducer, initial
};
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/input-field.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/with-ignore-ime-events.js
+/**
+ * A higher-order function that wraps a keydown event handler to ensure it is not an IME event.
+ *
+ * In CJK languages, an IME (Input Method Editor) is used to input complex characters.
+ * During an IME composition, keydown events (e.g. Enter or Escape) can be fired
+ * which are intended to control the IME and not the application.
+ * These events should be ignored by any application logic.
+ *
+ * @param keydownHandler The keydown event handler to execute after ensuring it was not an IME event.
+ *
+ * @return A wrapped version of the given event handler that ignores IME events.
+ */
+function withIgnoreIMEEvents(keydownHandler) {
+ return event => {
+ const {
+ isComposing
+ } = 'nativeEvent' in event ? event.nativeEvent : event;
+ if (isComposing ||
+ // Workaround for Mac Safari where the final Enter/Backspace of an IME composition
+ // is `isComposing=false`, even though it's technically still part of the composition.
+ // These can only be detected by keyCode.
+ event.keyCode === 229) {
+ return;
+ }
+ keydownHandler(event);
+ };
+}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/input-field.js
/**
* External dependencies
*/
@@ -31054,6 +30960,8 @@ function useInputControlStateReducer(stateReducer = initialStateReducer, initial
+
+
const input_field_noop = () => {};
function InputField({
disabled = false,
@@ -31061,18 +30969,15 @@ function InputField({
dragThreshold = 10,
id,
isDragEnabled = false,
- isFocused,
isPressEnterToChange = false,
onBlur = input_field_noop,
onChange = input_field_noop,
onDrag = input_field_noop,
onDragEnd = input_field_noop,
onDragStart = input_field_noop,
- onFocus = input_field_noop,
onKeyDown = input_field_noop,
onValidate = input_field_noop,
size = 'default',
- setIsFocused,
stateReducer = state => state,
value: valueProp,
type,
@@ -31106,7 +31011,6 @@ function InputField({
const dragCursor = useDragCursor(isDragging, dragDirection);
const handleOnBlur = event => {
onBlur(event);
- setIsFocused?.(false);
/**
* If isPressEnterToChange is set, this commits the value to
@@ -31117,10 +31021,6 @@ function InputField({
handleOnCommit(event);
}
};
- const handleOnFocus = event => {
- onFocus(event);
- setIsFocused?.(true);
- };
const handleOnChange = event => {
const nextValue = event.target.value;
change(nextValue, event);
@@ -31179,7 +31079,9 @@ function InputField({
...dragProps.event,
target
};
- if (!distance) return;
+ if (!distance) {
+ return;
+ }
event.stopPropagation();
/**
@@ -31219,7 +31121,7 @@ function InputField({
}
};
}
- return (0,external_React_.createElement)(Input, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Input, {
...props,
...dragProps,
className: "components-input-control__input",
@@ -31229,8 +31131,7 @@ function InputField({
id: id,
onBlur: handleOnBlur,
onChange: handleOnChange,
- onFocus: handleOnFocus,
- onKeyDown: handleOnKeyDown,
+ onKeyDown: withIgnoreIMEEvents(handleOnKeyDown),
onMouseDown: handleOnMouseDown,
ref: ref,
inputSize: size
@@ -31293,7 +31194,7 @@ function base_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have
*/
-const base_control_styles_Wrapper = emotion_styled_base_browser_esm("div", true ? {
+const base_control_styles_Wrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "ej5x27r4"
} : 0)("font-family:", font('default.fontFamily'), ";font-size:", font('default.fontSize'), ";", boxSizingReset, ";" + ( true ? "" : 0));
const deprecatedMarginField = ({
@@ -31301,11 +31202,11 @@ const deprecatedMarginField = ({
}) => {
return !__nextHasNoMarginBottom && /*#__PURE__*/emotion_react_browser_esm_css("margin-bottom:", space(2), ";" + ( true ? "" : 0), true ? "" : 0);
};
-const StyledField = emotion_styled_base_browser_esm("div", true ? {
+const StyledField = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "ej5x27r3"
} : 0)(deprecatedMarginField, " .components-panel__row &{margin-bottom:inherit;}" + ( true ? "" : 0));
const labelStyles = /*#__PURE__*/emotion_react_browser_esm_css(baseLabelTypography, ";display:inline-block;margin-bottom:", space(2), ";padding:0;" + ( true ? "" : 0), true ? "" : 0);
-const StyledLabel = emotion_styled_base_browser_esm("label", true ? {
+const StyledLabel = /*#__PURE__*/emotion_styled_base_browser_esm("label", true ? {
target: "ej5x27r2"
} : 0)(labelStyles, ";" + ( true ? "" : 0));
var base_control_styles_ref = true ? {
@@ -31317,15 +31218,14 @@ const deprecatedMarginHelp = ({
}) => {
return !__nextHasNoMarginBottom && base_control_styles_ref;
};
-const StyledHelp = emotion_styled_base_browser_esm("p", true ? {
+const StyledHelp = /*#__PURE__*/emotion_styled_base_browser_esm("p", true ? {
target: "ej5x27r1"
} : 0)("margin-top:", space(2), ";margin-bottom:0;font-size:", font('helpText.fontSize'), ";font-style:normal;color:", COLORS.gray[700], ";", deprecatedMarginHelp, ";" + ( true ? "" : 0));
-const StyledVisualLabel = emotion_styled_base_browser_esm("span", true ? {
+const StyledVisualLabel = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "ej5x27r0"
} : 0)(labelStyles, ";" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/base-control/index.js
-
/**
* External dependencies
*/
@@ -31339,6 +31239,8 @@ const StyledVisualLabel = emotion_styled_base_browser_esm("span", true ? {
+
+
/**
* `BaseControl` is a component used to generate labels and help text for components handling user inputs.
*
@@ -31372,26 +31274,34 @@ const UnconnectedBaseControl = props => {
className,
children
} = useContextSystem(props, 'BaseControl');
- return (0,external_React_.createElement)(base_control_styles_Wrapper, {
- className: className
- }, (0,external_React_.createElement)(StyledField, {
- className: "components-base-control__field"
- // TODO: Official deprecation for this should start after all internal usages have been migrated
- ,
- __nextHasNoMarginBottom: __nextHasNoMarginBottom
- }, label && id && (hideLabelFromVision ? (0,external_React_.createElement)(visually_hidden_component, {
- as: "label",
- htmlFor: id
- }, label) : (0,external_React_.createElement)(StyledLabel, {
- className: "components-base-control__label",
- htmlFor: id
- }, label)), label && !id && (hideLabelFromVision ? (0,external_React_.createElement)(visually_hidden_component, {
- as: "label"
- }, label) : (0,external_React_.createElement)(VisualLabel, null, label)), children), !!help && (0,external_React_.createElement)(StyledHelp, {
- id: id ? id + '__help' : undefined,
- className: "components-base-control__help",
- __nextHasNoMarginBottom: __nextHasNoMarginBottom
- }, help));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(base_control_styles_Wrapper, {
+ className: className,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(StyledField, {
+ className: "components-base-control__field"
+ // TODO: Official deprecation for this should start after all internal usages have been migrated
+ ,
+ __nextHasNoMarginBottom: __nextHasNoMarginBottom,
+ children: [label && id && (hideLabelFromVision ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
+ as: "label",
+ htmlFor: id,
+ children: label
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledLabel, {
+ className: "components-base-control__label",
+ htmlFor: id,
+ children: label
+ })), label && !id && (hideLabelFromVision ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
+ as: "label",
+ children: label
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(VisualLabel, {
+ children: label
+ })), children]
+ }), !!help && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledHelp, {
+ id: id ? id + '__help' : undefined,
+ className: "components-base-control__help",
+ __nextHasNoMarginBottom: __nextHasNoMarginBottom,
+ children: help
+ })]
+ });
};
/**
@@ -31416,10 +31326,11 @@ const VisualLabel = ({
children,
...props
}) => {
- return (0,external_React_.createElement)(StyledVisualLabel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledVisualLabel, {
...props,
- className: classnames_default()('components-base-control__label', className)
- }, children);
+ className: dist_clsx('components-base-control__label', className),
+ children: children
+ });
};
const BaseControl = Object.assign(contextConnectWithoutRef(UnconnectedBaseControl, 'BaseControl'), {
VisualLabel
@@ -31427,7 +31338,6 @@ const BaseControl = Object.assign(contextConnectWithoutRef(UnconnectedBaseContro
/* harmony default export */ const base_control = (BaseControl);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/index.js
-
/**
* External dependencies
*/
@@ -31447,6 +31357,7 @@ const BaseControl = Object.assign(contextConnectWithoutRef(UnconnectedBaseContro
+
const input_control_noop = () => {};
function input_control_useUniqueId(idProp) {
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(InputControl);
@@ -31476,59 +31387,54 @@ function UnforwardedInputControl(props, ref) {
value,
...restProps
} = useDeprecated36pxDefaultSizeProp(props);
- const [isFocused, setIsFocused] = (0,external_wp_element_namespaceObject.useState)(false);
const id = input_control_useUniqueId(idProp);
- const classes = classnames_default()('components-input-control', className);
+ const classes = dist_clsx('components-input-control', className);
const draftHookProps = useDraft({
value,
onBlur: restProps.onBlur,
onChange
});
-
- // ARIA descriptions can only contain plain text, so fall back to aria-details if not.
- const helpPropName = typeof help === 'string' ? 'aria-describedby' : 'aria-details';
const helpProp = !!help ? {
- [helpPropName]: `${id}__help`
+ 'aria-describedby': `${id}__help`
} : {};
- return (0,external_React_.createElement)(base_control, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
className: classes,
help: help,
id: id,
- __nextHasNoMarginBottom: true
- }, (0,external_React_.createElement)(input_base, {
- __next40pxDefaultSize: __next40pxDefaultSize,
- __unstableInputWidth: __unstableInputWidth,
- disabled: disabled,
- gap: 3,
- hideLabelFromVision: hideLabelFromVision,
- id: id,
- isFocused: isFocused,
- justify: "left",
- label: label,
- labelPosition: labelPosition,
- prefix: prefix,
- size: size,
- style: style,
- suffix: suffix
- }, (0,external_React_.createElement)(input_field, {
- ...restProps,
- ...helpProp,
- __next40pxDefaultSize: __next40pxDefaultSize,
- className: "components-input-control__input",
- disabled: disabled,
- id: id,
- isFocused: isFocused,
- isPressEnterToChange: isPressEnterToChange,
- onKeyDown: onKeyDown,
- onValidate: onValidate,
- paddingInlineStart: prefix ? space(2) : undefined,
- paddingInlineEnd: suffix ? space(2) : undefined,
- ref: ref,
- setIsFocused: setIsFocused,
- size: size,
- stateReducer: stateReducer,
- ...draftHookProps
- })));
+ __nextHasNoMarginBottom: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(input_base, {
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ __unstableInputWidth: __unstableInputWidth,
+ disabled: disabled,
+ gap: 3,
+ hideLabelFromVision: hideLabelFromVision,
+ id: id,
+ justify: "left",
+ label: label,
+ labelPosition: labelPosition,
+ prefix: prefix,
+ size: size,
+ style: style,
+ suffix: suffix,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(input_field, {
+ ...restProps,
+ ...helpProp,
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ className: "components-input-control__input",
+ disabled: disabled,
+ id: id,
+ isPressEnterToChange: isPressEnterToChange,
+ onKeyDown: onKeyDown,
+ onValidate: onValidate,
+ paddingInlineStart: prefix ? space(2) : undefined,
+ paddingInlineEnd: suffix ? space(2) : undefined,
+ ref: ref,
+ size: size,
+ stateReducer: stateReducer,
+ ...draftHookProps
+ })
+ })
+ });
}
/**
@@ -31537,7 +31443,7 @@ function UnforwardedInputControl(props, ref) {
*
* ```jsx
* import { __experimentalInputControl as InputControl } from '@wordpress/components';
- * import { useState } from '@wordpress/compose';
+ * import { useState } from 'react';
*
* const Example = () => {
* const [ value, setValue ] = useState( '' );
@@ -31590,7 +31496,7 @@ function Dashicon({
...sizeStyles,
...style
};
- return (0,external_React_.createElement)("span", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
className: iconClass,
style: styles,
...extraProps
@@ -31613,13 +31519,14 @@ function Dashicon({
* Internal dependencies
*/
+
function Icon({
icon = null,
size = 'string' === typeof icon ? 20 : 24,
...additionalProps
}) {
if ('string' === typeof icon) {
- return (0,external_wp_element_namespaceObject.createElement)(dashicon, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dashicon, {
icon: icon,
size: size,
...additionalProps
@@ -31643,7 +31550,7 @@ function Icon({
height: size,
...additionalProps
};
- return (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
...appliedProps
});
}
@@ -31659,7 +31566,6 @@ function Icon({
/* harmony default export */ const build_module_icon = (Icon);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
-
/**
* External dependencies
*/
@@ -31678,6 +31584,9 @@ function Icon({
+
+
+
const disabledEventsOnDisabledButton = ['onMouseDown', 'onClick'];
function button_useDeprecatedProps({
isDefault,
@@ -31694,7 +31603,7 @@ function button_useDeprecatedProps({
let computedSize = size;
let computedVariant = variant;
const newProps = {
- // @TODO Mark `isPressed` as deprecated
+ // @todo Mark `isPressed` as deprecated
'aria-pressed': isPressed
};
if (isSmall) {
@@ -31715,10 +31624,9 @@ function button_useDeprecatedProps({
}
if (isDefault) {
var _computedVariant4;
- external_wp_deprecated_default()('Button isDefault prop', {
+ external_wp_deprecated_default()('wp.components.Button `isDefault` prop', {
since: '5.4',
- alternative: 'variant="secondary"',
- version: '6.2'
+ alternative: 'variant="secondary"'
});
(_computedVariant4 = computedVariant) !== null && _computedVariant4 !== void 0 ? _computedVariant4 : computedVariant = 'secondary';
}
@@ -31772,7 +31680,7 @@ function UnforwardedButton(props, ref) {
// Tooltip should not considered as a child
children?.[0]?.props?.className !== 'components-tooltip';
const truthyAriaPressedValues = [true, 'true', 'mixed'];
- const classes = classnames_default()('components-button', className, {
+ const classes = dist_clsx('components-button', className, {
'is-next-40px-default-size': __next40pxDefaultSize,
'is-secondary': variant === 'secondary',
'is-primary': variant === 'primary',
@@ -31800,13 +31708,14 @@ function UnforwardedButton(props, ref) {
href,
target
} : {};
+ const disableEventProps = {};
if (disabled && isFocusable) {
// In this case, the button will be disabled, but still focusable and
// perceivable by screen reader users.
buttonProps['aria-disabled'] = true;
anchorProps['aria-disabled'] = true;
for (const disabledEvent of disabledEventsOnDisabledButton) {
- additionalProps[disabledEvent] = event => {
+ disableEventProps[disabledEvent] = event => {
if (event) {
event.stopPropagation();
event.preventDefault();
@@ -31835,22 +31744,30 @@ function UnforwardedButton(props, ref) {
'aria-describedby': describedById,
ref
};
- const elementChildren = (0,external_React_.createElement)(external_React_.Fragment, null, icon && iconPosition === 'left' && (0,external_React_.createElement)(build_module_icon, {
- icon: icon,
- size: iconSize
- }), text && (0,external_React_.createElement)(external_React_.Fragment, null, text), icon && iconPosition === 'right' && (0,external_React_.createElement)(build_module_icon, {
- icon: icon,
- size: iconSize
- }), children);
- const element = Tag === 'a' ? (0,external_React_.createElement)("a", {
+ const elementChildren = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [icon && iconPosition === 'left' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: icon,
+ size: iconSize
+ }), text && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: text
+ }), children, icon && iconPosition === 'right' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: icon,
+ size: iconSize
+ })]
+ });
+ const element = Tag === 'a' ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
...anchorProps,
...additionalProps,
- ...commonProps
- }, elementChildren) : (0,external_React_.createElement)("button", {
+ ...disableEventProps,
+ ...commonProps,
+ children: elementChildren
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("button", {
...buttonProps,
...additionalProps,
- ...commonProps
- }, elementChildren);
+ ...disableEventProps,
+ ...commonProps,
+ children: elementChildren
+ });
// In order to avoid some React reconciliation issues, we are always rendering
// the `Tooltip` component even when `shouldShowTooltip` is `false`.
@@ -31863,11 +31780,17 @@ function UnforwardedButton(props, ref) {
// Convert legacy `position` values to be used with the new `placement` prop
positionToPlacement(tooltipPosition)
} : {};
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(tooltip, {
- ...tooltipProps
- }, element), describedBy && (0,external_React_.createElement)(visually_hidden_component, null, (0,external_React_.createElement)("span", {
- id: descriptionId
- }, describedBy)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
+ ...tooltipProps,
+ children: element
+ }), describedBy && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ id: descriptionId,
+ children: describedBy
+ })
+ })]
+ });
}
/**
@@ -32140,12 +32063,13 @@ function getAlignmentProps(alignment, direction = 'row') {
* @return An array of available children.
*/
function getValidChildren(children) {
- if (typeof children === 'string') return [children];
+ if (typeof children === 'string') {
+ return [children];
+ }
return external_wp_element_namespaceObject.Children.toArray(children).filter(child => (0,external_wp_element_namespaceObject.isValidElement)(child));
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/h-stack/hook.js
-
/**
* External dependencies
*/
@@ -32158,6 +32082,7 @@ function getValidChildren(children) {
+
function useHStack(props) {
const {
alignment = 'edge',
@@ -32173,11 +32098,10 @@ function useHStack(props) {
if (_isSpacer) {
const childElement = child;
const _key = childElement.key || `hstack-${index}`;
- return (0,external_React_.createElement)(flex_item_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_item_component, {
isBlock: true,
- key: _key,
...childElement.props
- });
+ }, _key);
}
return child;
});
@@ -32189,12 +32113,16 @@ function useHStack(props) {
...otherProps,
gap: spacing
};
- const flexProps = useFlex(propsForFlex);
+
+ // Omit `isColumn` because it's not used in HStack.
+ const {
+ isColumn,
+ ...flexProps
+ } = useFlex(propsForFlex);
return flexProps;
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/h-stack/component.js
-
/**
* Internal dependencies
*/
@@ -32202,9 +32130,10 @@ function useHStack(props) {
+
function UnconnectedHStack(props, forwardedRef) {
const hStackProps = useHStack(props);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
...hStackProps,
ref: forwardedRef
});
@@ -32236,7 +32165,6 @@ const HStack = contextConnect(UnconnectedHStack, 'HStack');
/* harmony default export */ const h_stack_component = (HStack);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/number-control/index.js
-
/**
* External dependencies
*/
@@ -32261,6 +32189,9 @@ const HStack = contextConnect(UnconnectedHStack, 'HStack');
+
+
+
const number_control_noop = () => {};
function UnforwardedNumberControl(props, forwardedRef) {
const {
@@ -32304,7 +32235,7 @@ function UnforwardedNumberControl(props, forwardedRef) {
return isStepAny ? '' + Math.min(max, Math.max(min, ensureNumber(value))) : '' + roundClamp(value, min, max, stepOverride !== null && stepOverride !== void 0 ? stepOverride : baseStep);
};
const autoComplete = typeProp === 'number' ? 'off' : undefined;
- const classes = classnames_default()('components-number-control', className);
+ const classes = dist_clsx('components-number-control', className);
const cx = useCx();
const spinButtonClasses = cx(size === 'small' && styles.smallSpinButtons);
const spinValue = (value, direction, event) => {
@@ -32400,7 +32331,7 @@ function UnforwardedNumberControl(props, forwardedRef) {
target: inputRef.current
}
});
- return (0,external_React_.createElement)(number_control_styles_Input, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(number_control_styles_Input, {
autoComplete: autoComplete,
inputMode: "numeric",
...restProps,
@@ -32424,24 +32355,28 @@ function UnforwardedNumberControl(props, forwardedRef) {
return (_stateReducerProp = stateReducerProp?.(baseState, action)) !== null && _stateReducerProp !== void 0 ? _stateReducerProp : baseState;
},
size: size,
- suffix: spinControls === 'custom' ? (0,external_React_.createElement)(external_React_.Fragment, null, suffix, (0,external_React_.createElement)(spacer_component, {
- marginBottom: 0,
- marginRight: 2
- }, (0,external_React_.createElement)(h_stack_component, {
- spacing: 1
- }, (0,external_React_.createElement)(SpinButton, {
- className: spinButtonClasses,
- icon: library_plus,
- size: "small",
- label: (0,external_wp_i18n_namespaceObject.__)('Increment'),
- onClick: buildSpinButtonClickHandler('up')
- }), (0,external_React_.createElement)(SpinButton, {
- className: spinButtonClasses,
- icon: library_reset,
- size: "small",
- label: (0,external_wp_i18n_namespaceObject.__)('Decrement'),
- onClick: buildSpinButtonClickHandler('down')
- })))) : suffix,
+ suffix: spinControls === 'custom' ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [suffix, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
+ marginBottom: 0,
+ marginRight: 2,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
+ spacing: 1,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpinButton, {
+ className: spinButtonClasses,
+ icon: library_plus,
+ size: "small",
+ label: (0,external_wp_i18n_namespaceObject.__)('Increment'),
+ onClick: buildSpinButtonClickHandler('up')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpinButton, {
+ className: spinButtonClasses,
+ icon: library_reset,
+ size: "small",
+ label: (0,external_wp_i18n_namespaceObject.__)('Decrement'),
+ onClick: buildSpinButtonClickHandler('down')
+ })]
+ })
+ })]
+ }) : suffix,
onChange: onChange
});
}
@@ -32464,16 +32399,16 @@ function angle_picker_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "
const CIRCLE_SIZE = 32;
const INNER_CIRCLE_SIZE = 6;
-const CircleRoot = emotion_styled_base_browser_esm("div", true ? {
+const CircleRoot = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "eln3bjz3"
} : 0)("border-radius:50%;border:", config_values.borderWidth, " solid ", COLORS.ui.border, ";box-sizing:border-box;cursor:grab;height:", CIRCLE_SIZE, "px;overflow:hidden;width:", CIRCLE_SIZE, "px;:active{cursor:grabbing;}" + ( true ? "" : 0));
-const CircleIndicatorWrapper = emotion_styled_base_browser_esm("div", true ? {
+const CircleIndicatorWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "eln3bjz2"
} : 0)( true ? {
name: "1r307gh",
styles: "box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"
} : 0);
-const CircleIndicator = emotion_styled_base_browser_esm("div", true ? {
+const CircleIndicator = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "eln3bjz1"
} : 0)("background:", COLORS.theme.accent, ";border-radius:50%;box-sizing:border-box;display:block;left:50%;top:4px;transform:translateX( -50% );position:absolute;width:", INNER_CIRCLE_SIZE, "px;height:", INNER_CIRCLE_SIZE, "px;" + ( true ? "" : 0));
const UnitText = /*#__PURE__*/emotion_styled_base_browser_esm(text_component, true ? {
@@ -32481,7 +32416,6 @@ const UnitText = /*#__PURE__*/emotion_styled_base_browser_esm(text_component, t
} : 0)("color:", COLORS.theme.accent, ";margin-right:", space(3), ";" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/angle-picker-control/angle-circle.js
-
/**
* WordPress dependencies
*/
@@ -32492,6 +32426,7 @@ const UnitText = /*#__PURE__*/emotion_styled_base_browser_esm(text_component, t
* Internal dependencies
*/
+
function AngleCircle({
value,
onChange,
@@ -32550,20 +32485,22 @@ function AngleCircle({
previousCursorValue.current = undefined;
}
}, [isDragging]);
- return (0,external_React_.createElement)(CircleRoot, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CircleRoot, {
ref: angleCircleRef,
onMouseDown: startDrag,
className: "components-angle-picker-control__angle-circle",
- ...props
- }, (0,external_React_.createElement)(CircleIndicatorWrapper, {
- style: value ? {
- transform: `rotate(${value}deg)`
- } : undefined,
- className: "components-angle-picker-control__angle-circle-indicator-wrapper",
- tabIndex: -1
- }, (0,external_React_.createElement)(CircleIndicator, {
- className: "components-angle-picker-control__angle-circle-indicator"
- })));
+ ...props,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CircleIndicatorWrapper, {
+ style: value ? {
+ transform: `rotate(${value}deg)`
+ } : undefined,
+ className: "components-angle-picker-control__angle-circle-indicator-wrapper",
+ tabIndex: -1,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CircleIndicator, {
+ className: "components-angle-picker-control__angle-circle-indicator"
+ })
+ })
+ });
}
function getAngle(centerX, centerY, pointX, pointY) {
const y = pointY - centerY;
@@ -32578,7 +32515,6 @@ function getAngle(centerX, centerY, pointX, pointY) {
/* harmony default export */ const angle_circle = (AngleCircle);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/angle-picker-control/index.js
-
/**
* External dependencies
*/
@@ -32599,6 +32535,8 @@ function getAngle(centerX, centerY, pointX, pointY) {
+
+
function UnforwardedAnglePickerControl(props, ref) {
const {
className,
@@ -32614,34 +32552,40 @@ function UnforwardedAnglePickerControl(props, ref) {
const inputValue = unprocessedValue !== undefined && unprocessedValue !== '' ? parseInt(unprocessedValue, 10) : 0;
onChange(inputValue);
};
- const classes = classnames_default()('components-angle-picker-control', className);
- const unitText = (0,external_React_.createElement)(UnitText, null, "\xB0");
+ const classes = dist_clsx('components-angle-picker-control', className);
+ const unitText = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(UnitText, {
+ children: "\xB0"
+ });
const [prefixedUnitText, suffixedUnitText] = (0,external_wp_i18n_namespaceObject.isRTL)() ? [unitText, null] : [null, unitText];
- return (0,external_React_.createElement)(flex_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(flex_component, {
...restProps,
ref: ref,
className: classes,
- gap: 2
- }, (0,external_React_.createElement)(flex_block_component, null, (0,external_React_.createElement)(number_control, {
- label: label,
- className: "components-angle-picker-control__input-field",
- max: 360,
- min: 0,
- onChange: handleOnNumberChange,
- size: "__unstable-large",
- step: "1",
- value: value,
- spinControls: "none",
- prefix: prefixedUnitText,
- suffix: suffixedUnitText
- })), (0,external_React_.createElement)(spacer_component, {
- marginBottom: "1",
- marginTop: "auto"
- }, (0,external_React_.createElement)(angle_circle, {
- "aria-hidden": "true",
- value: value,
- onChange: onChange
- })));
+ gap: 2,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_block_component, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(number_control, {
+ label: label,
+ className: "components-angle-picker-control__input-field",
+ max: 360,
+ min: 0,
+ onChange: handleOnNumberChange,
+ size: "__unstable-large",
+ step: "1",
+ value: value,
+ spinControls: "none",
+ prefix: prefixedUnitText,
+ suffix: suffixedUnitText
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
+ marginBottom: "1",
+ marginTop: "auto",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(angle_circle, {
+ "aria-hidden": "true",
+ value: value,
+ onChange: onChange
+ })
+ })]
+ });
}
/**
@@ -32683,63 +32627,18 @@ const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
*/
-const ALL_UNICODE_DASH_CHARACTERS = new RegExp(`[${[
-// - (hyphen-minus)
-'\u002d',
-// ~ (tilde)
-'\u007e',
-// ­ (soft hyphen)
-'\u00ad',
-// ֊ (armenian hyphen)
-'\u058a',
-// ־ (hebrew punctuation maqaf)
-'\u05be',
-// ᐀ (canadian syllabics hyphen)
-'\u1400',
-// ᠆ (mongolian todo soft hyphen)
-'\u1806',
-// ‐ (hyphen)
-'\u2010',
-// non-breaking hyphen)
-'\u2011',
-// ‒ (figure dash)
-'\u2012',
-// – (en dash)
-'\u2013',
-// — (em dash)
-'\u2014',
-// ― (horizontal bar)
-'\u2015',
-// ⁓ (swung dash)
-'\u2053',
-// superscript minus)
-'\u207b',
-// subscript minus)
-'\u208b',
-// − (minus sign)
-'\u2212',
-// ⸗ (double oblique hyphen)
-'\u2e17',
-// ⸺ (two-em dash)
-'\u2e3a',
-// ⸻ (three-em dash)
-'\u2e3b',
-// 〜 (wave dash)
-'\u301c',
-// 〰 (wavy dash)
-'\u3030',
-// ゠ (katakana-hiragana double hyphen)
-'\u30a0',
-// ︱ (presentation form for vertical em dash)
-'\ufe31',
-// ︲ (presentation form for vertical en dash)
-'\ufe32',
-// ﹘ (small em dash)
-'\ufe58',
-// ﹣ (small hyphen-minus)
-'\ufe63',
-// - (fullwidth hyphen-minus)
-'\uff0d'].join('')}]`, 'g');
+
+/**
+ * All unicode characters that we consider "dash-like":
+ * - `\u007e`: ~ (tilde)
+ * - `\u00ad`: ­ (soft hyphen)
+ * - `\u2053`: ⁓ (swung dash)
+ * - `\u207b`: ⁻ (superscript minus)
+ * - `\u208b`: ₋ (subscript minus)
+ * - `\u2212`: − (minus sign)
+ * - `\\p{Pd}`: any other Unicode dash character
+ */
+const ALL_UNICODE_DASH_CHARACTERS = new RegExp(/[\u007e\u00ad\u2053\u207b\u208b\u2212\p{Pd}]/gu);
const normalizeTextString = value => {
return remove_accents_default()(value).toLocaleLowerCase().replace(ALL_UNICODE_DASH_CHARACTERS, '-');
};
@@ -33150,65 +33049,19 @@ function useFloating(options) {
-;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-
-
-
-
-
-/**
- * A hook that returns `true` if we should be using reduced motion based on the current device's Reduced Motion setting.
- *
- * This can be used to implement changes to your UI based on Reduced Motion. For instance, replacing motion-sickness inducing
- * `x`/`y` animations with `opacity`, disabling the autoplay of background videos, or turning off parallax motion.
- *
- * It will actively respond to changes and re-render your components with the latest setting.
- *
- * ```jsx
- * export function Sidebar({ isOpen }) {
- * const shouldReduceMotion = useReducedMotion()
- * const closedX = shouldReduceMotion ? 0 : "-100%"
- *
- * return (
- * <motion.div animate={{
- * opacity: isOpen ? 1 : 0,
- * x: isOpen ? 0 : closedX
- * }} />
- * )
- * }
- * ```
- *
- * @return boolean
- *
- * @public
- */
-function useReducedMotion() {
- /**
- * Lazy initialisation of prefersReducedMotion
- */
- !hasReducedMotionListener.current && initPrefersReducedMotion();
- const [shouldReduceMotion] = (0,external_React_.useState)(prefersReducedMotion.current);
- if (false) {}
- /**
- * TODO See if people miss automatically updating shouldReduceMotion setting
- */
- return shouldReduceMotion;
-}
-
-
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
-
/**
* WordPress dependencies
*/
-const close_close = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const close_close = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const library_close = (close_close);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/scroll-lock/index.js
@@ -33291,883 +33144,21 @@ function ScrollLock() {
}
/* harmony default export */ const scroll_lock = (ScrollLock);
-;// CONCATENATED MODULE: ./node_modules/proxy-compare/dist/index.modern.js
-const index_modern_e=Symbol(),index_modern_t=Symbol(),index_modern_r=Symbol();let index_modern_n=(e,t)=>new Proxy(e,t);const index_modern_o=Object.getPrototypeOf,index_modern_s=new WeakMap,index_modern_c=e=>e&&(index_modern_s.has(e)?index_modern_s.get(e):index_modern_o(e)===Object.prototype||index_modern_o(e)===Array.prototype),index_modern_l=e=>"object"==typeof e&&null!==e,index_modern_a=new WeakMap,index_modern_f=e=>e[index_modern_r]||e,index_modern_i=(s,l,p)=>{if(!index_modern_c(s))return s;const y=index_modern_f(s),u=(e=>Object.isFrozen(e)||Object.values(Object.getOwnPropertyDescriptors(e)).some(e=>!e.writable))(y);let g=p&&p.get(y);return g&&g[1].f===u||(g=((n,o)=>{const s={f:o};let c=!1;const l=(t,r)=>{if(!c){let o=s.a.get(n);o||(o=new Set,s.a.set(n,o)),r&&o.has(index_modern_e)||o.add(t)}},a={get:(e,t)=>t===index_modern_r?n:(l(t),index_modern_i(e[t],s.a,s.c)),has:(e,r)=>r===index_modern_t?(c=!0,s.a.delete(n),!0):(l(r),r in e),getOwnPropertyDescriptor:(e,t)=>(l(t,!0),Object.getOwnPropertyDescriptor(e,t)),ownKeys:t=>(l(index_modern_e),Reflect.ownKeys(t))};return o&&(a.set=a.deleteProperty=()=>!1),[a,s]})(y,u),g[1].p=index_modern_n(u?(e=>{let t=index_modern_a.get(e);if(!t){if(Array.isArray(e))t=Array.from(e);else{const r=Object.getOwnPropertyDescriptors(e);Object.values(r).forEach(e=>{e.configurable=!0}),t=Object.create(index_modern_o(e),r)}index_modern_a.set(e,t)}return t})(y):y,g[0]),p&&p.set(y,g)),g[1].a=l,g[1].c=p,g[1].p},index_modern_p=(e,t)=>{const r=Reflect.ownKeys(e),n=Reflect.ownKeys(t);return r.length!==n.length||r.some((e,t)=>e!==n[t])},index_modern_y=(t,r,n,o)=>{if(Object.is(t,r))return!1;if(!index_modern_l(t)||!index_modern_l(r))return!0;const s=n.get(index_modern_f(t));if(!s)return!0;if(o){const e=o.get(t);if(e&&e.n===r)return e.g;o.set(t,{n:r,g:!1})}let c=null;for(const l of s){const s=l===index_modern_e?index_modern_p(t,r):index_modern_y(t[l],r[l],n,o);if(!0!==s&&!1!==s||(c=s),c)break}return null===c&&(c=!0),o&&o.set(t,{n:r,g:c}),c},index_modern_u=e=>!!index_modern_c(e)&&index_modern_t in e,index_modern_g=e=>index_modern_c(e)&&e[index_modern_r]||null,index_modern_b=(e,t=!0)=>{index_modern_s.set(e,t)},O=(e,t)=>{const r=[],n=new WeakSet,o=(e,s)=>{if(n.has(e))return;index_modern_l(e)&&n.add(e);const c=index_modern_l(e)&&t.get(index_modern_f(e));c?c.forEach(t=>{o(e[t],s?[...s,t]:[t])}):s&&r.push(s)};return o(e),r},index_modern_w=e=>{index_modern_n=e};
-
-;// CONCATENATED MODULE: ./node_modules/valtio/esm/vanilla.js
-
-
-const vanilla_isObject = (x) => typeof x === "object" && x !== null;
-const refSet = /* @__PURE__ */ new WeakSet();
-const VERSION = true ? Symbol("VERSION") : 0;
-const LISTENERS = true ? Symbol("LISTENERS") : 0;
-const SNAPSHOT = true ? Symbol("SNAPSHOT") : 0;
-const buildProxyFunction = (objectIs = Object.is, newProxy = (target, handler) => new Proxy(target, handler), canProxy = (x) => vanilla_isObject(x) && !refSet.has(x) && (Array.isArray(x) || !(Symbol.iterator in x)) && !(x instanceof WeakMap) && !(x instanceof WeakSet) && !(x instanceof Error) && !(x instanceof Number) && !(x instanceof Date) && !(x instanceof String) && !(x instanceof RegExp) && !(x instanceof ArrayBuffer), PROMISE_RESULT = true ? Symbol("PROMISE_RESULT") : 0, PROMISE_ERROR = true ? Symbol("PROMISE_ERROR") : 0, snapshotCache = /* @__PURE__ */ new WeakMap(), createSnapshot = (version, target, receiver) => {
- const cache = snapshotCache.get(receiver);
- if ((cache == null ? void 0 : cache[0]) === version) {
- return cache[1];
- }
- const snapshot2 = Array.isArray(target) ? [] : Object.create(Object.getPrototypeOf(target));
- index_modern_b(snapshot2, true);
- snapshotCache.set(receiver, [version, snapshot2]);
- Reflect.ownKeys(target).forEach((key) => {
- const value = Reflect.get(target, key, receiver);
- if (refSet.has(value)) {
- index_modern_b(value, false);
- snapshot2[key] = value;
- } else if (value instanceof Promise) {
- if (PROMISE_RESULT in value) {
- snapshot2[key] = value[PROMISE_RESULT];
- } else {
- const errorOrPromise = value[PROMISE_ERROR] || value;
- Object.defineProperty(snapshot2, key, {
- get() {
- if (PROMISE_RESULT in value) {
- return value[PROMISE_RESULT];
- }
- throw errorOrPromise;
- }
- });
- }
- } else if (value == null ? void 0 : value[LISTENERS]) {
- snapshot2[key] = value[SNAPSHOT];
- } else {
- snapshot2[key] = value;
- }
- });
- return Object.freeze(snapshot2);
-}, proxyCache = /* @__PURE__ */ new WeakMap(), versionHolder = [1], proxyFunction2 = (initialObject) => {
- if (!vanilla_isObject(initialObject)) {
- throw new Error("object required");
- }
- const found = proxyCache.get(initialObject);
- if (found) {
- return found;
- }
- let version = versionHolder[0];
- const listeners = /* @__PURE__ */ new Set();
- const notifyUpdate = (op, nextVersion = ++versionHolder[0]) => {
- if (version !== nextVersion) {
- version = nextVersion;
- listeners.forEach((listener) => listener(op, nextVersion));
- }
- };
- const propListeners = /* @__PURE__ */ new Map();
- const getPropListener = (prop) => {
- let propListener = propListeners.get(prop);
- if (!propListener) {
- propListener = (op, nextVersion) => {
- const newOp = [...op];
- newOp[1] = [prop, ...newOp[1]];
- notifyUpdate(newOp, nextVersion);
- };
- propListeners.set(prop, propListener);
- }
- return propListener;
- };
- const popPropListener = (prop) => {
- const propListener = propListeners.get(prop);
- propListeners.delete(prop);
- return propListener;
- };
- const baseObject = Array.isArray(initialObject) ? [] : Object.create(Object.getPrototypeOf(initialObject));
- const handler = {
- get(target, prop, receiver) {
- if (prop === VERSION) {
- return version;
- }
- if (prop === LISTENERS) {
- return listeners;
- }
- if (prop === SNAPSHOT) {
- return createSnapshot(version, target, receiver);
- }
- return Reflect.get(target, prop, receiver);
- },
- deleteProperty(target, prop) {
- const prevValue = Reflect.get(target, prop);
- const childListeners = prevValue == null ? void 0 : prevValue[LISTENERS];
- if (childListeners) {
- childListeners.delete(popPropListener(prop));
- }
- const deleted = Reflect.deleteProperty(target, prop);
- if (deleted) {
- notifyUpdate(["delete", [prop], prevValue]);
- }
- return deleted;
- },
- set(target, prop, value, receiver) {
- var _a;
- const hasPrevValue = Reflect.has(target, prop);
- const prevValue = Reflect.get(target, prop, receiver);
- if (hasPrevValue && objectIs(prevValue, value)) {
- return true;
- }
- const childListeners = prevValue == null ? void 0 : prevValue[LISTENERS];
- if (childListeners) {
- childListeners.delete(popPropListener(prop));
- }
- if (vanilla_isObject(value)) {
- value = index_modern_g(value) || value;
- }
- let nextValue;
- if ((_a = Object.getOwnPropertyDescriptor(target, prop)) == null ? void 0 : _a.set) {
- nextValue = value;
- } else if (value instanceof Promise) {
- nextValue = value.then((v) => {
- nextValue[PROMISE_RESULT] = v;
- notifyUpdate(["resolve", [prop], v]);
- return v;
- }).catch((e) => {
- nextValue[PROMISE_ERROR] = e;
- notifyUpdate(["reject", [prop], e]);
- });
- } else if (value == null ? void 0 : value[LISTENERS]) {
- nextValue = value;
- nextValue[LISTENERS].add(getPropListener(prop));
- } else if (canProxy(value)) {
- nextValue = vanilla_proxy(value);
- nextValue[LISTENERS].add(getPropListener(prop));
- } else {
- nextValue = value;
- }
- Reflect.set(target, prop, nextValue, receiver);
- notifyUpdate(["set", [prop], value, prevValue]);
- return true;
- }
- };
- const proxyObject = newProxy(baseObject, handler);
- proxyCache.set(initialObject, proxyObject);
- Reflect.ownKeys(initialObject).forEach((key) => {
- const desc = Object.getOwnPropertyDescriptor(
- initialObject,
- key
- );
- if (desc.get || desc.set) {
- Object.defineProperty(baseObject, key, desc);
- } else {
- proxyObject[key] = initialObject[key];
- }
- });
- return proxyObject;
-}) => [
- proxyFunction2,
- refSet,
- VERSION,
- LISTENERS,
- SNAPSHOT,
- objectIs,
- newProxy,
- canProxy,
- PROMISE_RESULT,
- PROMISE_ERROR,
- snapshotCache,
- createSnapshot,
- proxyCache,
- versionHolder
-];
-const [proxyFunction] = buildProxyFunction();
-function vanilla_proxy(initialObject = {}) {
- return proxyFunction(initialObject);
-}
-function vanilla_getVersion(proxyObject) {
- return vanilla_isObject(proxyObject) ? proxyObject[VERSION] : void 0;
-}
-function vanilla_subscribe(proxyObject, callback, notifyInSync) {
- if ( true && !(proxyObject == null ? void 0 : proxyObject[LISTENERS])) {
- console.warn("Please use proxy object");
- }
- let promise;
- const ops = [];
- const listener = (op) => {
- ops.push(op);
- if (notifyInSync) {
- callback(ops.splice(0));
- return;
- }
- if (!promise) {
- promise = Promise.resolve().then(() => {
- promise = void 0;
- callback(ops.splice(0));
- });
- }
- };
- proxyObject[LISTENERS].add(listener);
- return () => {
- proxyObject[LISTENERS].delete(listener);
- };
-}
-function vanilla_snapshot(proxyObject) {
- if ( true && !(proxyObject == null ? void 0 : proxyObject[SNAPSHOT])) {
- console.warn("Please use proxy object");
- }
- return proxyObject[SNAPSHOT];
-}
-function vanilla_ref(obj) {
- refSet.add(obj);
- return obj;
-}
-const unstable_buildProxyFunction = (/* unused pure expression or super */ null && (buildProxyFunction));
-
-
-
-;// CONCATENATED MODULE: ./node_modules/valtio/esm/index.js
-
-
-
-
-
-
-const { useSyncExternalStore: esm_useSyncExternalStore } = shim;
-const useAffectedDebugValue = (state, affected) => {
- const pathList = (0,external_React_.useRef)();
- (0,external_React_.useEffect)(() => {
- pathList.current = O(state, affected);
- });
- (0,external_React_.useDebugValue)(pathList.current);
-};
-function useSnapshot(proxyObject, options) {
- const notifyInSync = options == null ? void 0 : options.sync;
- const lastSnapshot = (0,external_React_.useRef)();
- const lastAffected = (0,external_React_.useRef)();
- let inRender = true;
- const currSnapshot = esm_useSyncExternalStore(
- (0,external_React_.useCallback)(
- (callback) => {
- const unsub = vanilla_subscribe(proxyObject, callback, notifyInSync);
- callback();
- return unsub;
- },
- [proxyObject, notifyInSync]
- ),
- () => {
- const nextSnapshot = vanilla_snapshot(proxyObject);
- try {
- if (!inRender && lastSnapshot.current && lastAffected.current && !index_modern_y(
- lastSnapshot.current,
- nextSnapshot,
- lastAffected.current,
- /* @__PURE__ */ new WeakMap()
- )) {
- return lastSnapshot.current;
- }
- } catch (e) {
- }
- return nextSnapshot;
- },
- () => vanilla_snapshot(proxyObject)
- );
- inRender = false;
- const currAffected = /* @__PURE__ */ new WeakMap();
- (0,external_React_.useEffect)(() => {
- lastSnapshot.current = currSnapshot;
- lastAffected.current = currAffected;
- });
- if (true) {
- useAffectedDebugValue(currSnapshot, currAffected);
- }
- const proxyCache = (0,external_React_.useMemo)(() => /* @__PURE__ */ new WeakMap(), []);
- return index_modern_i(currSnapshot, currAffected, proxyCache);
-}
-
-
-
-;// CONCATENATED MODULE: ./node_modules/valtio/esm/utils.js
-
-
-function subscribeKey(proxyObject, key, callback, notifyInSync) {
- return subscribe(
- proxyObject,
- (ops) => {
- if (ops.some((op) => op[1][0] === key)) {
- callback(proxyObject[key]);
- }
- },
- notifyInSync
- );
-}
-
-let currentCleanups;
-function watch(callback, options) {
- let alive = true;
- const cleanups = /* @__PURE__ */ new Set();
- const subscriptions = /* @__PURE__ */ new Map();
- const cleanup = () => {
- if (alive) {
- alive = false;
- cleanups.forEach((clean) => clean());
- cleanups.clear();
- subscriptions.forEach((unsubscribe) => unsubscribe());
- subscriptions.clear();
- }
- };
- const revalidate = () => {
- if (!alive) {
- return;
- }
- cleanups.forEach((clean) => clean());
- cleanups.clear();
- const proxiesToSubscribe = /* @__PURE__ */ new Set();
- const parent = currentCleanups;
- currentCleanups = cleanups;
- try {
- const cleanupReturn = callback((proxyObject) => {
- proxiesToSubscribe.add(proxyObject);
- return proxyObject;
- });
- if (cleanupReturn) {
- cleanups.add(cleanupReturn);
- }
- } finally {
- currentCleanups = parent;
- }
- subscriptions.forEach((unsubscribe, proxyObject) => {
- if (proxiesToSubscribe.has(proxyObject)) {
- proxiesToSubscribe.delete(proxyObject);
- } else {
- subscriptions.delete(proxyObject);
- unsubscribe();
- }
- });
- proxiesToSubscribe.forEach((proxyObject) => {
- const unsubscribe = subscribe(proxyObject, revalidate, options == null ? void 0 : options.sync);
- subscriptions.set(proxyObject, unsubscribe);
- });
- };
- if (currentCleanups) {
- currentCleanups.add(cleanup);
- }
- revalidate();
- return cleanup;
-}
-
-const DEVTOOLS = Symbol();
-function devtools(proxyObject, options) {
- if (typeof options === "string") {
- console.warn(
- "string name option is deprecated, use { name }. https://github.com/pmndrs/valtio/pull/400"
- );
- options = { name: options };
- }
- const { enabled, name = "" } = options || {};
- let extension;
- try {
- extension = (enabled != null ? enabled : (/* unsupported import.meta.env */ undefined && 0) !== "production") && window.__REDUX_DEVTOOLS_EXTENSION__;
- } catch {
- }
- if (!extension) {
- if ( true && enabled) {
- console.warn("[Warning] Please install/enable Redux devtools extension");
- }
- return;
- }
- let isTimeTraveling = false;
- const devtools2 = extension.connect({ name });
- const unsub1 = subscribe(proxyObject, (ops) => {
- const action = ops.filter(([_, path]) => path[0] !== DEVTOOLS).map(([op, path]) => `${op}:${path.map(String).join(".")}`).join(", ");
- if (!action) {
- return;
- }
- if (isTimeTraveling) {
- isTimeTraveling = false;
- } else {
- const snapWithoutDevtools = Object.assign({}, snapshot(proxyObject));
- delete snapWithoutDevtools[DEVTOOLS];
- devtools2.send(
- {
- type: action,
- updatedAt: new Date().toLocaleString()
- },
- snapWithoutDevtools
- );
- }
- });
- const unsub2 = devtools2.subscribe((message) => {
- var _a, _b, _c, _d, _e, _f;
- if (message.type === "ACTION" && message.payload) {
- try {
- Object.assign(proxyObject, JSON.parse(message.payload));
- } catch (e) {
- console.error(
- "please dispatch a serializable value that JSON.parse() and proxy() support\n",
- e
- );
- }
- }
- if (message.type === "DISPATCH" && message.state) {
- if (((_a = message.payload) == null ? void 0 : _a.type) === "JUMP_TO_ACTION" || ((_b = message.payload) == null ? void 0 : _b.type) === "JUMP_TO_STATE") {
- isTimeTraveling = true;
- const state = JSON.parse(message.state);
- Object.assign(proxyObject, state);
- }
- proxyObject[DEVTOOLS] = message;
- } else if (message.type === "DISPATCH" && ((_c = message.payload) == null ? void 0 : _c.type) === "COMMIT") {
- devtools2.init(snapshot(proxyObject));
- } else if (message.type === "DISPATCH" && ((_d = message.payload) == null ? void 0 : _d.type) === "IMPORT_STATE") {
- const actions = (_e = message.payload.nextLiftedState) == null ? void 0 : _e.actionsById;
- const computedStates = ((_f = message.payload.nextLiftedState) == null ? void 0 : _f.computedStates) || [];
- isTimeTraveling = true;
- computedStates.forEach(({ state }, index) => {
- const action = actions[index] || "No action found";
- Object.assign(proxyObject, state);
- if (index === 0) {
- devtools2.init(snapshot(proxyObject));
- } else {
- devtools2.send(action, snapshot(proxyObject));
- }
- });
- }
- });
- devtools2.init(snapshot(proxyObject));
- return () => {
- unsub1();
- unsub2 == null ? void 0 : unsub2();
- };
-}
-
-const sourceObjectMap = /* @__PURE__ */ new WeakMap();
-const derivedObjectMap = /* @__PURE__ */ new WeakMap();
-const markPending = (sourceObject, callback) => {
- const sourceObjectEntry = sourceObjectMap.get(sourceObject);
- if (sourceObjectEntry) {
- sourceObjectEntry[0].forEach((subscription) => {
- const { d: derivedObject } = subscription;
- if (sourceObject !== derivedObject) {
- markPending(derivedObject);
- }
- });
- ++sourceObjectEntry[2];
- if (callback) {
- sourceObjectEntry[3].add(callback);
- }
- }
-};
-const checkPending = (sourceObject, callback) => {
- const sourceObjectEntry = sourceObjectMap.get(sourceObject);
- if (sourceObjectEntry == null ? void 0 : sourceObjectEntry[2]) {
- sourceObjectEntry[3].add(callback);
- return true;
- }
- return false;
-};
-const unmarkPending = (sourceObject) => {
- const sourceObjectEntry = sourceObjectMap.get(sourceObject);
- if (sourceObjectEntry) {
- --sourceObjectEntry[2];
- if (!sourceObjectEntry[2]) {
- sourceObjectEntry[3].forEach((callback) => callback());
- sourceObjectEntry[3].clear();
- }
- sourceObjectEntry[0].forEach((subscription) => {
- const { d: derivedObject } = subscription;
- if (sourceObject !== derivedObject) {
- unmarkPending(derivedObject);
- }
- });
- }
-};
-const addSubscription = (subscription) => {
- const { s: sourceObject, d: derivedObject } = subscription;
- let derivedObjectEntry = derivedObjectMap.get(derivedObject);
- if (!derivedObjectEntry) {
- derivedObjectEntry = [/* @__PURE__ */ new Set()];
- derivedObjectMap.set(subscription.d, derivedObjectEntry);
- }
- derivedObjectEntry[0].add(subscription);
- let sourceObjectEntry = sourceObjectMap.get(sourceObject);
- if (!sourceObjectEntry) {
- const subscriptions = /* @__PURE__ */ new Set();
- const unsubscribe = vanilla_subscribe(
- sourceObject,
- (ops) => {
- subscriptions.forEach((subscription2) => {
- const {
- d: derivedObject2,
- c: callback,
- n: notifyInSync,
- i: ignoreKeys
- } = subscription2;
- if (sourceObject === derivedObject2 && ops.every(
- (op) => op[1].length === 1 && ignoreKeys.includes(op[1][0])
- )) {
- return;
- }
- if (subscription2.p) {
- return;
- }
- markPending(sourceObject, callback);
- if (notifyInSync) {
- unmarkPending(sourceObject);
- } else {
- subscription2.p = Promise.resolve().then(() => {
- delete subscription2.p;
- unmarkPending(sourceObject);
- });
- }
- });
- },
- true
- );
- sourceObjectEntry = [subscriptions, unsubscribe, 0, /* @__PURE__ */ new Set()];
- sourceObjectMap.set(sourceObject, sourceObjectEntry);
- }
- sourceObjectEntry[0].add(subscription);
-};
-const removeSubscription = (subscription) => {
- const { s: sourceObject, d: derivedObject } = subscription;
- const derivedObjectEntry = derivedObjectMap.get(derivedObject);
- derivedObjectEntry == null ? void 0 : derivedObjectEntry[0].delete(subscription);
- if ((derivedObjectEntry == null ? void 0 : derivedObjectEntry[0].size) === 0) {
- derivedObjectMap.delete(derivedObject);
- }
- const sourceObjectEntry = sourceObjectMap.get(sourceObject);
- if (sourceObjectEntry) {
- const [subscriptions, unsubscribe] = sourceObjectEntry;
- subscriptions.delete(subscription);
- if (!subscriptions.size) {
- unsubscribe();
- sourceObjectMap.delete(sourceObject);
- }
- }
-};
-const listSubscriptions = (derivedObject) => {
- const derivedObjectEntry = derivedObjectMap.get(derivedObject);
- if (derivedObjectEntry) {
- return Array.from(derivedObjectEntry[0]);
- }
- return [];
-};
-const unstable_deriveSubscriptions = {
- add: addSubscription,
- remove: removeSubscription,
- list: listSubscriptions
-};
-function derive(derivedFns, options) {
- const proxyObject = (options == null ? void 0 : options.proxy) || proxy({});
- const notifyInSync = !!(options == null ? void 0 : options.sync);
- const derivedKeys = Object.keys(derivedFns);
- derivedKeys.forEach((key) => {
- if (Object.getOwnPropertyDescriptor(proxyObject, key)) {
- throw new Error("object property already defined");
- }
- const fn = derivedFns[key];
- let lastDependencies = null;
- const evaluate = () => {
- if (lastDependencies) {
- if (Array.from(lastDependencies).map(([p]) => checkPending(p, evaluate)).some((isPending) => isPending)) {
- return;
- }
- if (Array.from(lastDependencies).every(
- ([p, entry]) => getVersion(p) === entry.v
- )) {
- return;
- }
- }
- const dependencies = /* @__PURE__ */ new Map();
- const get = (p) => {
- dependencies.set(p, { v: getVersion(p) });
- return p;
- };
- const value = fn(get);
- const subscribeToDependencies = () => {
- dependencies.forEach((entry, p) => {
- var _a;
- const lastSubscription = (_a = lastDependencies == null ? void 0 : lastDependencies.get(p)) == null ? void 0 : _a.s;
- if (lastSubscription) {
- entry.s = lastSubscription;
- } else {
- const subscription = {
- s: p,
- d: proxyObject,
- k: key,
- c: evaluate,
- n: notifyInSync,
- i: derivedKeys
- };
- addSubscription(subscription);
- entry.s = subscription;
- }
- });
- lastDependencies == null ? void 0 : lastDependencies.forEach((entry, p) => {
- if (!dependencies.has(p) && entry.s) {
- removeSubscription(entry.s);
- }
- });
- lastDependencies = dependencies;
- };
- if (value instanceof Promise) {
- value.finally(subscribeToDependencies);
- } else {
- subscribeToDependencies();
- }
- proxyObject[key] = value;
- };
- evaluate();
- });
- return proxyObject;
-}
-function underive(proxyObject, options) {
- const keysToDelete = (options == null ? void 0 : options.delete) ? /* @__PURE__ */ new Set() : null;
- listSubscriptions(proxyObject).forEach((subscription) => {
- const { k: key } = subscription;
- if (!(options == null ? void 0 : options.keys) || options.keys.includes(key)) {
- removeSubscription(subscription);
- if (keysToDelete) {
- keysToDelete.add(key);
- }
- }
- });
- if (keysToDelete) {
- keysToDelete.forEach((key) => {
- delete proxyObject[key];
- });
- }
-}
-
-function addComputed_DEPRECATED(proxyObject, computedFns_FAKE, targetObject = proxyObject) {
- console.warn(
- "addComputed is deprecated. Please consider using `derive` or `proxyWithComputed` instead. Falling back to emulation with derive. https://github.com/pmndrs/valtio/pull/201"
- );
- const derivedFns = {};
- Object.keys(computedFns_FAKE).forEach((key) => {
- derivedFns[key] = (get) => computedFns_FAKE[key](get(proxyObject));
- });
- return derive(derivedFns, { proxy: targetObject });
-}
-
-function proxyWithComputed(initialObject, computedFns) {
- Object.keys(computedFns).forEach((key) => {
- if (Object.getOwnPropertyDescriptor(initialObject, key)) {
- throw new Error("object property already defined");
- }
- const computedFn = computedFns[key];
- const { get, set } = typeof computedFn === "function" ? { get: computedFn } : computedFn;
- const desc = {};
- desc.get = () => get(snapshot(proxyObject));
- if (set) {
- desc.set = (newValue) => set(proxyObject, newValue);
- }
- Object.defineProperty(initialObject, key, desc);
- });
- const proxyObject = proxy(initialObject);
- return proxyObject;
-}
-
-const utils_isObject = (x) => typeof x === "object" && x !== null;
-const deepClone = (obj) => {
- if (!utils_isObject(obj)) {
- return obj;
- }
- const baseObject = Array.isArray(obj) ? [] : Object.create(Object.getPrototypeOf(obj));
- Reflect.ownKeys(obj).forEach((key) => {
- baseObject[key] = deepClone(obj[key]);
- });
- return baseObject;
-};
-function proxyWithHistory(initialValue, skipSubscribe = false) {
- const proxyObject = proxy({
- value: initialValue,
- history: ref({
- wip: void 0,
- snapshots: [],
- index: -1
- }),
- canUndo: () => proxyObject.history.index > 0,
- undo: () => {
- if (proxyObject.canUndo()) {
- proxyObject.value = proxyObject.history.wip = deepClone(
- proxyObject.history.snapshots[--proxyObject.history.index]
- );
- }
- },
- canRedo: () => proxyObject.history.index < proxyObject.history.snapshots.length - 1,
- redo: () => {
- if (proxyObject.canRedo()) {
- proxyObject.value = proxyObject.history.wip = deepClone(
- proxyObject.history.snapshots[++proxyObject.history.index]
- );
- }
- },
- saveHistory: () => {
- proxyObject.history.snapshots.splice(proxyObject.history.index + 1);
- proxyObject.history.snapshots.push(snapshot(proxyObject).value);
- ++proxyObject.history.index;
- },
- subscribe: () => subscribe(proxyObject, (ops) => {
- if (ops.every(
- (op) => op[1][0] === "value" && (op[0] !== "set" || op[2] !== proxyObject.history.wip)
- )) {
- proxyObject.saveHistory();
- }
- })
- });
- proxyObject.saveHistory();
- if (!skipSubscribe) {
- proxyObject.subscribe();
- }
- return proxyObject;
-}
-
-function proxySet(initialValues) {
- const set = proxy({
- data: Array.from(new Set(initialValues)),
- has(value) {
- return this.data.indexOf(value) !== -1;
- },
- add(value) {
- let hasProxy = false;
- if (typeof value === "object" && value !== null) {
- hasProxy = this.data.indexOf(proxy(value)) !== -1;
- }
- if (this.data.indexOf(value) === -1 && !hasProxy) {
- this.data.push(value);
- }
- return this;
- },
- delete(value) {
- const index = this.data.indexOf(value);
- if (index === -1) {
- return false;
- }
- this.data.splice(index, 1);
- return true;
- },
- clear() {
- this.data.splice(0);
- },
- get size() {
- return this.data.length;
- },
- forEach(cb) {
- this.data.forEach((value) => {
- cb(value, value, this);
- });
- },
- get [Symbol.toStringTag]() {
- return "Set";
- },
- toJSON() {
- return {};
- },
- [Symbol.iterator]() {
- return this.data[Symbol.iterator]();
- },
- values() {
- return this.data.values();
- },
- keys() {
- return this.data.values();
- },
- entries() {
- return new Set(this.data).entries();
- }
- });
- Object.defineProperties(set, {
- data: {
- enumerable: false
- },
- size: {
- enumerable: false
- },
- toJSON: {
- enumerable: false
- }
- });
- Object.seal(set);
- return set;
-}
-
-function proxyMap(entries) {
- const map = vanilla_proxy({
- data: Array.from(entries || []),
- has(key) {
- return this.data.some((p) => p[0] === key);
- },
- set(key, value) {
- const record = this.data.find((p) => p[0] === key);
- if (record) {
- record[1] = value;
- } else {
- this.data.push([key, value]);
- }
- return this;
- },
- get(key) {
- var _a;
- return (_a = this.data.find((p) => p[0] === key)) == null ? void 0 : _a[1];
- },
- delete(key) {
- const index = this.data.findIndex((p) => p[0] === key);
- if (index === -1) {
- return false;
- }
- this.data.splice(index, 1);
- return true;
- },
- clear() {
- this.data.splice(0);
- },
- get size() {
- return this.data.length;
- },
- toJSON() {
- return {};
- },
- forEach(cb) {
- this.data.forEach((p) => {
- cb(p[1], p[0], this);
- });
- },
- keys() {
- return this.data.map((p) => p[0]).values();
- },
- values() {
- return this.data.map((p) => p[1]).values();
- },
- entries() {
- return new Map(this.data).entries();
- },
- get [Symbol.toStringTag]() {
- return "Map";
- },
- [Symbol.iterator]() {
- return this.entries();
- }
- });
- Object.defineProperties(map, {
- data: {
- enumerable: false
- },
- size: {
- enumerable: false
- },
- toJSON: {
- enumerable: false
- }
- });
- Object.seal(map);
- return map;
-}
-
-
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js
/**
- * External dependencies
- */
-
-/**
* WordPress dependencies
*/
+
+
/**
* Internal dependencies
*/
const initialContextValue = {
- slots: proxyMap(),
- fills: proxyMap(),
+ slots: (0,external_wp_compose_namespaceObject.observableMap)(),
+ fills: (0,external_wp_compose_namespaceObject.observableMap)(),
registerSlot: () => {
true ? external_wp_warning_default()('Components must be wrapped within `SlotFillProvider`. ' + 'See https://developer.wordpress.org/block-editor/components/slot-fill/') : 0;
},
@@ -34183,28 +33174,18 @@ const SlotFillContext = (0,external_wp_element_namespaceObject.createContext)(in
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot.js
/**
- * External dependencies
- */
-
-
-/**
* WordPress dependencies
*/
+
/**
* Internal dependencies
*/
function useSlot(name) {
const registry = (0,external_wp_element_namespaceObject.useContext)(slot_fill_context);
- const slots = useSnapshot(registry.slots, {
- sync: true
- });
- // The important bit here is that the `useSnapshot` call ensures that the
- // hook only causes a re-render if the slot with the given name changes,
- // not any other slot.
- const slot = slots.get(name);
+ const slot = (0,external_wp_compose_namespaceObject.useObservableValue)(registry.slots, name);
const api = (0,external_wp_element_namespaceObject.useMemo)(() => ({
updateSlot: fillProps => registry.updateSlot(name, fillProps),
unregisterSlot: ref => registry.unregisterSlot(name, ref),
@@ -34320,7 +33301,6 @@ function Fill({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/slot.js
-
/**
* External dependencies
*/
@@ -34334,6 +33314,8 @@ function Fill({
* Internal dependencies
*/
+
+
/**
* Whether the argument is a function.
*
@@ -34406,19 +33388,23 @@ class SlotComponent extends external_wp_element_namespaceObject.Component {
// This ensures that we only use non-empty fills when rendering, i.e.,
// it allows us to render wrappers only when the fills are actually present.
element => !(0,external_wp_element_namespaceObject.isEmptyElement)(element));
- return (0,external_React_.createElement)(external_React_.Fragment, null, isFunction(children) ? children(fills) : fills);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: isFunction(children) ? children(fills) : fills
+ });
}
}
-const Slot = props => (0,external_React_.createElement)(context.Consumer, null, ({
- registerSlot,
- unregisterSlot,
- getFills
-}) => (0,external_React_.createElement)(SlotComponent, {
- ...props,
- registerSlot: registerSlot,
- unregisterSlot: unregisterSlot,
- getFills: getFills
-}));
+const Slot = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(context.Consumer, {
+ children: ({
+ registerSlot,
+ unregisterSlot,
+ getFills
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SlotComponent, {
+ ...props,
+ registerSlot: registerSlot,
+ unregisterSlot: unregisterSlot,
+ getFills: getFills
+ })
+});
/* harmony default export */ const slot = (Slot);
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
@@ -34510,7 +33496,6 @@ function v4(options, buf, offset) {
/* harmony default export */ const esm_browser_v4 = (v4);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/style-provider/index.js
-
/**
* External dependencies
*/
@@ -34554,14 +33539,14 @@ function StyleProvider(props) {
return null;
}
const cache = memoizedCreateCacheWithContainer(document.head);
- return (0,external_React_.createElement)(CacheProvider, {
- value: cache
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CacheProvider, {
+ value: cache,
+ children: children
+ });
}
/* harmony default export */ const style_provider = (StyleProvider);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/fill.js
-
/**
* WordPress dependencies
*/
@@ -34572,6 +33557,7 @@ function StyleProvider(props) {
*/
+
function fill_useForceUpdate() {
const [, setState] = (0,external_wp_element_namespaceObject.useState)({});
const mounted = (0,external_wp_element_namespaceObject.useRef)(true);
@@ -34619,14 +33605,14 @@ function fill_Fill(props) {
// `Slot`. This means that we need to wrap the `children` in a `StyleProvider`
// to make sure we're referencing the right document/iframe (instead of the
// context of the `Fill`'s parent).
- const wrappedChildren = (0,external_React_.createElement)(style_provider, {
- document: slot.ref.current.ownerDocument
- }, typeof children === 'function' ? children((_slot$fillProps = slot.fillProps) !== null && _slot$fillProps !== void 0 ? _slot$fillProps : {}) : children);
+ const wrappedChildren = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(style_provider, {
+ document: slot.ref.current.ownerDocument,
+ children: typeof children === 'function' ? children((_slot$fillProps = slot.fillProps) !== null && _slot$fillProps !== void 0 ? _slot$fillProps : {}) : children
+ });
return (0,external_wp_element_namespaceObject.createPortal)(wrappedChildren, slot.ref.current);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot.js
-
/**
* External dependencies
*/
@@ -34642,6 +33628,7 @@ function fill_Fill(props) {
*/
+
function slot_Slot(props, forwardedRef) {
const {
name,
@@ -34675,7 +33662,7 @@ function slot_Slot(props, forwardedRef) {
(0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
registry.updateSlot(name, fillProps);
});
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
as: as,
ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([forwardedRef, ref]),
...restProps
@@ -34687,33 +33674,28 @@ function slot_Slot(props, forwardedRef) {
const external_wp_isShallowEqual_namespaceObject = window["wp"]["isShallowEqual"];
var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js
-
-/**
- * External dependencies
- */
-
-
-
/**
* WordPress dependencies
*/
+
/**
* Internal dependencies
*/
+
function createSlotRegistry() {
- const slots = proxyMap();
- const fills = proxyMap();
+ const slots = (0,external_wp_compose_namespaceObject.observableMap)();
+ const fills = (0,external_wp_compose_namespaceObject.observableMap)();
const registerSlot = (name, ref, fillProps) => {
const slot = slots.get(name);
- slots.set(name, vanilla_ref({
+ slots.set(name, {
...slot,
ref: ref || slot?.ref,
fillProps: fillProps || slot?.fillProps || {}
- }));
+ });
};
const unregisterSlot = (name, ref) => {
// Make sure we're not unregistering a slot registered by another element
@@ -34738,14 +33720,14 @@ function createSlotRegistry() {
}
};
const registerFill = (name, ref) => {
- fills.set(name, vanilla_ref([...(fills.get(name) || []), ref]));
+ fills.set(name, [...(fills.get(name) || []), ref]);
};
const unregisterFill = (name, ref) => {
const fillsForName = fills.get(name);
if (!fillsForName) {
return;
}
- fills.set(name, vanilla_ref(fillsForName.filter(fillRef => fillRef !== ref)));
+ fills.set(name, fillsForName.filter(fillRef => fillRef !== ref));
};
return {
slots,
@@ -34760,14 +33742,14 @@ function createSlotRegistry() {
function SlotFillProvider({
children
}) {
- const registry = (0,external_wp_element_namespaceObject.useMemo)(createSlotRegistry, []);
- return (0,external_React_.createElement)(slot_fill_context.Provider, {
- value: registry
- }, children);
+ const [registry] = (0,external_wp_element_namespaceObject.useState)(createSlotRegistry);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(slot_fill_context.Provider, {
+ value: registry,
+ children: children
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/provider.js
-
/**
* WordPress dependencies
*/
@@ -34778,6 +33760,7 @@ function SlotFillProvider({
* Internal dependencies
*/
+
function provider_createSlotRegistry() {
const slots = {};
const fills = {};
@@ -34857,15 +33840,15 @@ function provider_createSlotRegistry() {
function provider_SlotFillProvider({
children
}) {
- const contextValue = (0,external_wp_element_namespaceObject.useMemo)(provider_createSlotRegistry, []);
- return (0,external_React_.createElement)(context.Provider, {
- value: contextValue
- }, children);
+ const [contextValue] = (0,external_wp_element_namespaceObject.useState)(provider_createSlotRegistry);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(context.Provider, {
+ value: contextValue,
+ children: children
+ });
}
/* harmony default export */ const provider = (provider_SlotFillProvider);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/index.js
-
/**
* External dependencies
*/
@@ -34887,15 +33870,20 @@ function provider_SlotFillProvider({
+
+
+
function slot_fill_Fill(props) {
// We're adding both Fills here so they can register themselves before
// their respective slot has been registered. Only the Fill that has a slot
// will render. The other one will return null.
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(Fill, {
- ...props
- }), (0,external_React_.createElement)(fill_Fill, {
- ...props
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Fill, {
+ ...props
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(fill_Fill, {
+ ...props
+ })]
+ });
}
function UnforwardedSlot(props, ref) {
const {
@@ -34903,12 +33891,12 @@ function UnforwardedSlot(props, ref) {
...restProps
} = props;
if (bubblesVirtually) {
- return (0,external_React_.createElement)(bubbles_virtually_slot, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(bubbles_virtually_slot, {
...restProps,
ref: ref
});
}
- return (0,external_React_.createElement)(slot, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(slot, {
...restProps
});
}
@@ -34919,18 +33907,24 @@ function Provider({
}) {
const parent = (0,external_wp_element_namespaceObject.useContext)(slot_fill_context);
if (!parent.isDefault && passthrough) {
- return (0,external_React_.createElement)(external_React_.Fragment, null, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: children
+ });
}
- return (0,external_React_.createElement)(provider, null, (0,external_React_.createElement)(SlotFillProvider, null, children));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(provider, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SlotFillProvider, {
+ children: children
+ })
+ });
}
function createSlotFill(key) {
const baseName = typeof key === 'symbol' ? key.description : key;
- const FillComponent = props => (0,external_React_.createElement)(slot_fill_Fill, {
+ const FillComponent = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(slot_fill_Fill, {
name: key,
...props
});
FillComponent.displayName = `${baseName}Fill`;
- const SlotComponent = props => (0,external_React_.createElement)(slot_fill_Slot, {
+ const SlotComponent = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(slot_fill_Slot, {
name: key,
...props
});
@@ -34975,7 +33969,9 @@ function overlayMiddlewares() {
} = (_elements$floating = elements.floating) !== null && _elements$floating !== void 0 ? _elements$floating : {};
// Only HTMLElement instances have the `style` property.
- if (!(firstElementChild instanceof HTMLElement)) return;
+ if (!(firstElementChild instanceof HTMLElement)) {
+ return;
+ }
// Reduce the height of the popover to the available space.
Object.assign(firstElementChild.style, {
@@ -34987,7 +33983,6 @@ function overlayMiddlewares() {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/index.js
-
/**
* External dependencies
*/
@@ -35024,25 +34019,29 @@ function overlayMiddlewares() {
*
* @type {string}
*/
+
+
+
const SLOT_NAME = 'Popover';
// An SVG displaying a triangle facing down, filled with a solid
// color and bordered in such a way to create an arrow-like effect.
// Keeping the SVG's viewbox squared simplify the arrow positioning
// calculations.
-const ArrowTriangle = () => (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+const ArrowTriangle = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: `0 0 100 100`,
+ viewBox: "0 0 100 100",
className: "components-popover__triangle",
- role: "presentation"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- className: "components-popover__triangle-bg",
- d: "M 0 0 L 50 50 L 100 0"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- className: "components-popover__triangle-border",
- d: "M 0 0 L 50 50 L 100 0",
- vectorEffect: "non-scaling-stroke"
-}));
+ role: "presentation",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ className: "components-popover__triangle-bg",
+ d: "M 0 0 L 50 50 L 100 0"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ className: "components-popover__triangle-border",
+ d: "M 0 0 L 50 50 L 100 0",
+ vectorEffect: "non-scaling-stroke"
+ })]
+});
const slotNameContext = (0,external_wp_element_namespaceObject.createContext)(undefined);
const fallbackContainerClassname = 'components-popover__fallback-container';
const getPopoverFallbackContainer = () => {
@@ -35054,7 +34053,7 @@ const getPopoverFallbackContainer = () => {
}
return container;
};
-const UnconnectedPopover = (props, forwardedRef) => {
+const UnforwardedPopover = (props, forwardedRef) => {
const {
animate = true,
headerTitle,
@@ -35141,7 +34140,9 @@ const UnconnectedPopover = (props, forwardedRef) => {
} = (_refs$floating$curren = refs.floating.current) !== null && _refs$floating$curren !== void 0 ? _refs$floating$curren : {};
// Only HTMLElement instances have the `style` property.
- if (!(firstElementChild instanceof HTMLElement)) return;
+ if (!(firstElementChild instanceof HTMLElement)) {
+ return;
+ }
// Reduce the height of the popover to the available space.
Object.assign(firstElementChild.style, {
@@ -35233,7 +34234,7 @@ const UnconnectedPopover = (props, forwardedRef) => {
x: computePopoverPosition(x),
y: computePopoverPosition(y)
};
- const shouldReduceMotion = useReducedMotion();
+ const shouldReduceMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
const shouldAnimate = animate && !isExpanded && !shouldReduceMotion;
const [animationFinished, setAnimationFinished] = (0,external_wp_element_namespaceObject.useState)(false);
const {
@@ -35255,33 +34256,8 @@ const UnconnectedPopover = (props, forwardedRef) => {
// When Floating UI has finished positioning and Framer Motion has finished animating
// the popover, add the `is-positioned` class to signal that all transitions have finished.
const isPositioned = (!shouldAnimate || animationFinished) && x !== null && y !== null;
-
- // In case a `ColorPicker` component is rendered as a child of `Popover`,
- // the `Popover` component can be notified of when the user is dragging
- // parts of the `ColorPicker` UI (this is possible because the `ColorPicker`
- // component exposes the `onPickerDragStart` and `onPickerDragEnd` props
- // via internal context).
- // While the user is performing a pointer drag, the `Popover` will render
- // a transparent backdrop element that will serve as a "pointer events trap",
- // making sure that no pointer events reach any potential `iframe` element
- // underneath (like, for example, the editor canvas in the WordPress editor).
- const [showBackdrop, setShowBackdrop] = (0,external_wp_element_namespaceObject.useState)(false);
- const contextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
- ColorPicker: {
- onPickerDragStart() {
- setShowBackdrop(true);
- },
- onPickerDragEnd() {
- setShowBackdrop(false);
- }
- }
- }), []);
- let content = (0,external_React_.createElement)(external_React_.Fragment, null, showBackdrop && (0,external_React_.createElement)("div", {
- className: "components-popover-pointer-events-trap",
- "aria-hidden": "true",
- onClick: () => setShowBackdrop(false)
- }), (0,external_React_.createElement)(motion.div, {
- className: classnames_default()('components-popover', className, {
+ let content = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(motion.div, {
+ className: dist_clsx(className, {
'is-expanded': isExpanded,
'is-positioned': isPositioned,
// Use the 'alternate' classname for 'toolbar' variant for back compat.
@@ -35291,44 +34267,51 @@ const UnconnectedPopover = (props, forwardedRef) => {
...contentProps,
ref: mergedFloatingRef,
...dialogProps,
- tabIndex: -1
- }, isExpanded && (0,external_React_.createElement)(scroll_lock, null), isExpanded && (0,external_React_.createElement)("div", {
- className: "components-popover__header"
- }, (0,external_React_.createElement)("span", {
- className: "components-popover__header-title"
- }, headerTitle), (0,external_React_.createElement)(build_module_button, {
- className: "components-popover__close",
- icon: library_close,
- onClick: onClose
- })), (0,external_React_.createElement)("div", {
- className: "components-popover__content"
- }, (0,external_React_.createElement)(ContextSystemProvider, {
- value: contextValue
- }, children)), hasArrow && (0,external_React_.createElement)("div", {
- ref: arrowCallbackRef,
- className: ['components-popover__arrow', `is-${computedPlacement.split('-')[0]}`].join(' '),
- style: {
- left: typeof arrowData?.x !== 'undefined' && Number.isFinite(arrowData.x) ? `${arrowData.x}px` : '',
- top: typeof arrowData?.y !== 'undefined' && Number.isFinite(arrowData.y) ? `${arrowData.y}px` : ''
- }
- }, (0,external_React_.createElement)(ArrowTriangle, null))));
+ tabIndex: -1,
+ children: [isExpanded && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(scroll_lock, {}), isExpanded && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "components-popover__header",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "components-popover__header-title",
+ children: headerTitle
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ className: "components-popover__close",
+ icon: library_close,
+ onClick: onClose
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "components-popover__content",
+ children: children
+ }), hasArrow && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ref: arrowCallbackRef,
+ className: ['components-popover__arrow', `is-${computedPlacement.split('-')[0]}`].join(' '),
+ style: {
+ left: typeof arrowData?.x !== 'undefined' && Number.isFinite(arrowData.x) ? `${arrowData.x}px` : '',
+ top: typeof arrowData?.y !== 'undefined' && Number.isFinite(arrowData.y) ? `${arrowData.y}px` : ''
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ArrowTriangle, {})
+ })]
+ });
const shouldRenderWithinSlot = slot.ref && !inline;
const hasAnchor = anchorRef || anchorRect || anchor;
if (shouldRenderWithinSlot) {
- content = (0,external_React_.createElement)(slot_fill_Fill, {
- name: slotName
- }, content);
+ content = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(slot_fill_Fill, {
+ name: slotName,
+ children: content
+ });
} else if (!inline) {
- content = (0,external_wp_element_namespaceObject.createPortal)((0,external_React_.createElement)(StyleProvider, {
- document: document
- }, content), getPopoverFallbackContainer());
+ content = (0,external_wp_element_namespaceObject.createPortal)( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyleProvider, {
+ document: document,
+ children: content
+ }), getPopoverFallbackContainer());
}
if (hasAnchor) {
return content;
}
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("span", {
- ref: anchorRefFallback
- }), content);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ ref: anchorRefFallback
+ }), content]
+ });
};
/**
@@ -35354,11 +34337,11 @@ const UnconnectedPopover = (props, forwardedRef) => {
* ```
*
*/
-const popover_Popover = contextConnect(UnconnectedPopover, 'Popover');
+const popover_Popover = contextConnect(UnforwardedPopover, 'Popover');
function PopoverSlot({
name = SLOT_NAME
}, ref) {
- return (0,external_React_.createElement)(slot_fill_Slot, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(slot_fill_Slot, {
bubblesVirtually: true,
name: name,
className: "popover-slot",
@@ -35373,7 +34356,6 @@ popover_Popover.__unstableSlotNameProvider = slotNameContext.Provider;
/* harmony default export */ const popover = (popover_Popover);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/autocomplete/autocompleter-ui.js
-
/**
* External dependencies
*/
@@ -35396,8 +34378,38 @@ popover_Popover.__unstableSlotNameProvider = slotNameContext.Provider;
+
+
+
+function ListBox({
+ items,
+ onSelect,
+ selectedIndex,
+ instanceId,
+ listBoxId,
+ className,
+ Component = 'div'
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
+ id: listBoxId,
+ role: "listbox",
+ className: "components-autocomplete__results",
+ children: items.map((option, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ id: `components-autocomplete-item-${instanceId}-${option.key}`,
+ role: "option",
+ "aria-selected": index === selectedIndex,
+ disabled: option.isDisabled,
+ className: dist_clsx('components-autocomplete__result', className, {
+ 'is-selected': index === selectedIndex
+ }),
+ onClick: () => onSelect(option),
+ children: option.label
+ }, option.key))
+ });
+}
function getAutoCompleterUI(autocompleter) {
- const useItems = autocompleter.useItems ? autocompleter.useItems : getDefaultUseItems(autocompleter);
+ var _autocompleter$useIte;
+ const useItems = (_autocompleter$useIte = autocompleter.useItems) !== null && _autocompleter$useIte !== void 0 ? _autocompleter$useIte : getDefaultUseItems(autocompleter);
function AutocompleterUI({
filterValue,
instanceId,
@@ -35417,12 +34429,14 @@ function getAutoCompleterUI(autocompleter) {
const [needsA11yCompat, setNeedsA11yCompat] = (0,external_wp_element_namespaceObject.useState)(false);
const popoverRef = (0,external_wp_element_namespaceObject.useRef)(null);
const popoverRefs = (0,external_wp_compose_namespaceObject.useMergeRefs)([popoverRef, (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
- if (!contentRef.current) return;
+ if (!contentRef.current) {
+ return;
+ }
// If the popover is rendered in a different document than
// the content, we need to duplicate the options list in the
// content document so that it's available to the screen
- // readers, which check the DOM ID based aira-* attributes.
+ // readers, which check the DOM ID based aria-* attributes.
setNeedsA11yCompat(node.ownerDocument !== contentRef.current.ownerDocument);
}, [contentRef])]);
useOnClickOutside(popoverRef, reset);
@@ -35453,33 +34467,32 @@ function getAutoCompleterUI(autocompleter) {
if (items.length === 0) {
return null;
}
- const ListBox = ({
- Component = 'div'
- }) => (0,external_React_.createElement)(Component, {
- id: listBoxId,
- role: "listbox",
- className: "components-autocomplete__results"
- }, items.map((option, index) => (0,external_React_.createElement)(build_module_button, {
- key: option.key,
- id: `components-autocomplete-item-${instanceId}-${option.key}`,
- role: "option",
- "aria-selected": index === selectedIndex,
- disabled: option.isDisabled,
- className: classnames_default()('components-autocomplete__result', className, {
- 'is-selected': index === selectedIndex
- }),
- onClick: () => onSelect(option)
- }, option.label)));
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(popover, {
- focusOnMount: false,
- onClose: onReset,
- placement: "top-start",
- className: "components-autocomplete__popover",
- anchor: popoverAnchor,
- ref: popoverRefs
- }, (0,external_React_.createElement)(ListBox, null)), contentRef.current && needsA11yCompat && (0,external_ReactDOM_namespaceObject.createPortal)((0,external_React_.createElement)(ListBox, {
- Component: visually_hidden_component
- }), contentRef.current.ownerDocument.body));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(popover, {
+ focusOnMount: false,
+ onClose: onReset,
+ placement: "top-start",
+ className: "components-autocomplete__popover",
+ anchor: popoverAnchor,
+ ref: popoverRefs,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ListBox, {
+ items: items,
+ onSelect: onSelect,
+ selectedIndex: selectedIndex,
+ instanceId: instanceId,
+ listBoxId: listBoxId,
+ className: className
+ })
+ }), contentRef.current && needsA11yCompat && (0,external_ReactDOM_namespaceObject.createPortal)( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ListBox, {
+ items: items,
+ onSelect: onSelect,
+ selectedIndex: selectedIndex,
+ instanceId: instanceId,
+ listBoxId: listBoxId,
+ className: className,
+ Component: visually_hidden_component
+ }), contentRef.current.ownerDocument.body)]
+ });
}
return AutocompleterUI;
}
@@ -35505,7 +34518,6 @@ function useOnClickOutside(ref, handler) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/autocomplete/index.js
-
/**
* External dependencies
*/
@@ -35525,6 +34537,10 @@ function useOnClickOutside(ref, handler) {
*/
+
+
+
+
const getNodeText = node => {
if (node === null) {
return '';
@@ -35633,13 +34649,7 @@ function useAutocomplete({
if (filteredOptions.length === 0) {
return;
}
- if (event.defaultPrevented ||
- // Ignore keydowns from IMEs
- event.isComposing ||
- // Workaround for Mac Safari where the final Enter/Backspace of an IME composition
- // is `isComposing=false`, even though it's technically still part of the composition.
- // These can only be detected by keyCode.
- event.keyCode === 229) {
+ if (event.defaultPrevented) {
return;
}
switch (event.key) {
@@ -35694,7 +34704,9 @@ function useAutocomplete({
}, [record]);
(0,external_wp_element_namespaceObject.useEffect)(() => {
if (!textContent) {
- if (autocompleter) reset();
+ if (autocompleter) {
+ reset();
+ }
return;
}
@@ -35706,7 +34718,9 @@ function useAutocomplete({
return triggerIndex > lastTriggerIndex ? currentCompleter : lastTrigger;
}, null);
if (!completer) {
- if (autocompleter) reset();
+ if (autocompleter) {
+ reset();
+ }
return;
}
const {
@@ -35721,7 +34735,9 @@ function useAutocomplete({
// significantly. This could happen, for example, if `matchingWhileBackspacing`
// is true and one of the "words" end up being too long. If that's the case,
// it will be caught by this guard.
- if (tooDistantFromTrigger) return;
+ if (tooDistantFromTrigger) {
+ return;
+ }
const mismatch = filteredOptions.length === 0;
const wordsFromTrigger = textWithoutTrigger.split(/\s/);
// We need to allow the effect to run when not backspacing and if there
@@ -35743,20 +34759,28 @@ function useAutocomplete({
// if the user presses backspace here, it will show the completion popup again.
const matchingWhileBackspacing = backspacing.current && wordsFromTrigger.length <= 3;
if (mismatch && !(matchingWhileBackspacing || hasOneTriggerWord)) {
- if (autocompleter) reset();
+ if (autocompleter) {
+ reset();
+ }
return;
}
const textAfterSelection = (0,external_wp_richText_namespaceObject.getTextContent)((0,external_wp_richText_namespaceObject.slice)(record, undefined, (0,external_wp_richText_namespaceObject.getTextContent)(record).length));
if (allowContext && !allowContext(textContent.slice(0, triggerIndex), textAfterSelection)) {
- if (autocompleter) reset();
+ if (autocompleter) {
+ reset();
+ }
return;
}
if (/^\s/.test(textWithoutTrigger) || /\s\s+$/.test(textWithoutTrigger)) {
- if (autocompleter) reset();
+ if (autocompleter) {
+ reset();
+ }
return;
}
if (!/[\u0000-\uFFFF]*$/.test(textWithoutTrigger)) {
- if (autocompleter) reset();
+ if (autocompleter) {
+ reset();
+ }
return;
}
const safeTrigger = escapeRegExp(completer.triggerPrefix);
@@ -35783,8 +34807,8 @@ function useAutocomplete({
return {
listBoxId,
activeId,
- onKeyDown: handleKeyDown,
- popover: hasSelection && AutocompleterUI && (0,external_React_.createElement)(AutocompleterUI, {
+ onKeyDown: withIgnoreIMEEvents(handleKeyDown),
+ popover: hasSelection && AutocompleterUI && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AutocompleterUI, {
className: className,
filterValue: filterValue,
instanceId: instanceId,
@@ -35859,7 +34883,9 @@ function Autocomplete({
popover,
...props
} = useAutocomplete(options);
- return (0,external_React_.createElement)(external_React_.Fragment, null, children(props), isSelected && popover);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [children(props), isSelected && popover]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/base-control/hooks.js
@@ -35886,9 +34912,6 @@ function useBaseControlProps(props) {
...restProps
} = props;
const uniqueId = (0,external_wp_compose_namespaceObject.useInstanceId)(base_control, 'wp-components-base-control', preferredId);
-
- // ARIA descriptions can only contain plain text, so fall back to aria-details if not.
- const helpPropName = typeof help === 'string' ? 'aria-describedby' : 'aria-details';
return {
baseControlProps: {
id: uniqueId,
@@ -35898,38 +34921,40 @@ function useBaseControlProps(props) {
controlProps: {
id: uniqueId,
...(!!help ? {
- [helpPropName]: `${uniqueId}__help`
+ 'aria-describedby': `${uniqueId}__help`
} : {})
}
};
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js
-
/**
* WordPress dependencies
*/
-const link_link = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const link_link = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"
+ })
+});
/* harmony default export */ const library_link = (link_link);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/link-off.js
-
/**
* WordPress dependencies
*/
-const linkOff = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const linkOff = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"
+ })
+});
/* harmony default export */ const link_off = (linkOff);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-box-control/styles.js
@@ -36014,7 +35039,6 @@ function useBorderBoxControlLinkedButton(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control-linked-button/component.js
-
/**
* WordPress dependencies
*/
@@ -36029,6 +35053,7 @@ function useBorderBoxControlLinkedButton(props) {
+
const BorderBoxControlLinkedButton = (props, forwardedRef) => {
const {
className,
@@ -36036,18 +35061,20 @@ const BorderBoxControlLinkedButton = (props, forwardedRef) => {
...buttonProps
} = useBorderBoxControlLinkedButton(props);
const label = isLinked ? (0,external_wp_i18n_namespaceObject.__)('Unlink sides') : (0,external_wp_i18n_namespaceObject.__)('Link sides');
- return (0,external_React_.createElement)(tooltip, {
- text: label
- }, (0,external_React_.createElement)(component, {
- className: className
- }, (0,external_React_.createElement)(build_module_button, {
- ...buttonProps,
- size: "small",
- icon: isLinked ? library_link : link_off,
- iconSize: 24,
- "aria-label": label,
- ref: forwardedRef
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
+ text: label,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
+ className: className,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ ...buttonProps,
+ size: "small",
+ icon: isLinked ? library_link : link_off,
+ iconSize: 24,
+ "aria-label": label,
+ ref: forwardedRef
+ })
+ })
+ });
};
const ConnectedBorderBoxControlLinkedButton = contextConnect(BorderBoxControlLinkedButton, 'BorderBoxControlLinkedButton');
/* harmony default export */ const border_box_control_linked_button_component = (ConnectedBorderBoxControlLinkedButton);
@@ -36085,7 +35112,6 @@ function useBorderBoxControlVisualizer(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control-visualizer/component.js
-
/**
* WordPress dependencies
*/
@@ -36096,12 +35122,13 @@ function useBorderBoxControlVisualizer(props) {
+
const BorderBoxControlVisualizer = (props, forwardedRef) => {
const {
value,
...otherProps
} = useBorderBoxControlVisualizer(props);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
...otherProps,
ref: forwardedRef
});
@@ -36110,63 +35137,67 @@ const ConnectedBorderBoxControlVisualizer = contextConnect(BorderBoxControlVisua
/* harmony default export */ const border_box_control_visualizer_component = (ConnectedBorderBoxControlVisualizer);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
-
/**
* WordPress dependencies
*/
-const closeSmall = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const closeSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
+ })
+});
/* harmony default export */ const close_small = (closeSmall);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/line-solid.js
-
/**
* WordPress dependencies
*/
-const lineSolid = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const lineSolid = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M5 11.25h14v1.5H5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M5 11.25h14v1.5H5z"
+ })
+});
/* harmony default export */ const line_solid = (lineSolid);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/line-dashed.js
-
/**
* WordPress dependencies
*/
-const lineDashed = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const lineDashed = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- d: "M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",
- clipRule: "evenodd"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ d: "M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",
+ clipRule: "evenodd"
+ })
+});
/* harmony default export */ const line_dashed = (lineDashed);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/line-dotted.js
-
/**
* WordPress dependencies
*/
-const lineDotted = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const lineDotted = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- d: "M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",
- clipRule: "evenodd"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ d: "M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",
+ clipRule: "evenodd"
+ })
+});
/* harmony default export */ const line_dotted = (lineDotted);
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs
@@ -36235,7 +35266,7 @@ const LayoutGroup = ({ children, id, inherit = true }) => {
};
}
const memoizedContext = (0,external_React_.useMemo)(() => ({ ...context.current, forceRender }), [key]);
- return (external_React_.createElement(LayoutGroupContext.Provider, { value: memoizedContext }, children));
+ return ((0,external_ReactJSXRuntime_namespaceObject.jsx)(LayoutGroupContext.Provider, { value: memoizedContext, children: children }));
};
@@ -36264,13 +35295,13 @@ var styles_ref = true ? {
name: "1aqh2c7",
styles: "min-height:40px;padding:3px"
} : 0;
-var styles_ref2 = true ? {
+var _ref2 = true ? {
name: "1ndywgm",
styles: "min-height:36px;padding:2px"
} : 0;
const toggleGroupControlSize = size => {
const styles = {
- default: styles_ref2,
+ default: _ref2,
'__unstable-large': styles_ref
};
return styles[size];
@@ -36279,7 +35310,7 @@ const toggle_group_control_styles_block = true ? {
name: "7whenc",
styles: "display:flex;width:100%"
} : 0;
-const VisualLabelWrapper = emotion_styled_base_browser_esm("div", true ? {
+const VisualLabelWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "eakva830"
} : 0)( true ? {
name: "zjik7",
@@ -36384,7 +35415,7 @@ var useRadioGroup = createHook(
);
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(RadioScopedContextProvider, { value: store, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(RadioScopedContextProvider, { value: store, children: element }),
[store]
);
props = _4R3V3JGP_spreadValues({
@@ -36465,7 +35496,6 @@ function useComputeControlledOrUncontrolledValue(valueProp) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control/as-radio-group.js
-
/**
* External dependencies
*/
@@ -36485,6 +35515,7 @@ function useComputeControlledOrUncontrolledValue(valueProp) {
+
function UnforwardedToggleGroupControlAsRadioGroup({
children,
isAdaptiveWidth,
@@ -36526,16 +35557,18 @@ function UnforwardedToggleGroupControlAsRadioGroup({
value: selectedValue,
setValue
}), [baseId, isAdaptiveWidth, size, selectedValue, setValue]);
- return (0,external_React_.createElement)(toggle_group_control_context.Provider, {
- value: groupContextValue
- }, (0,external_React_.createElement)(RadioGroup, {
- store: radio,
- "aria-label": label,
- render: (0,external_React_.createElement)(component, null),
- ...otherProps,
- id: baseId,
- ref: forwardedRef
- }, children));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toggle_group_control_context.Provider, {
+ value: groupContextValue,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RadioGroup, {
+ store: radio,
+ "aria-label": label,
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {}),
+ ...otherProps,
+ id: baseId,
+ ref: forwardedRef,
+ children: children
+ })
+ });
}
const ToggleGroupControlAsRadioGroup = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedToggleGroupControlAsRadioGroup);
@@ -36577,7 +35610,6 @@ function useControlledValue({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control/as-button-group.js
-
/**
* WordPress dependencies
*/
@@ -36591,6 +35623,7 @@ function useControlledValue({
+
function UnforwardedToggleGroupControlAsButtonGroup({
children,
isAdaptiveWidth,
@@ -36625,19 +35658,20 @@ function UnforwardedToggleGroupControlAsButtonGroup({
isDeselectable: true,
size
}), [baseId, selectedValue, setSelectedValue, isAdaptiveWidth, size]);
- return (0,external_React_.createElement)(toggle_group_control_context.Provider, {
- value: groupContextValue
- }, (0,external_React_.createElement)(component, {
- "aria-label": label,
- ...otherProps,
- ref: forwardedRef,
- role: "group"
- }, children));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toggle_group_control_context.Provider, {
+ value: groupContextValue,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
+ "aria-label": label,
+ ...otherProps,
+ ref: forwardedRef,
+ role: "group",
+ children: children
+ })
+ });
}
const ToggleGroupControlAsButtonGroup = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedToggleGroupControlAsButtonGroup);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control/component.js
-
/**
* External dependencies
*/
@@ -36662,6 +35696,8 @@ const ToggleGroupControlAsButtonGroup = (0,external_wp_element_namespaceObject.f
+
+
function UnconnectedToggleGroupControl(props, forwardedRef) {
const {
__nextHasNoMarginBottom = false,
@@ -36688,21 +35724,28 @@ function UnconnectedToggleGroupControl(props, forwardedRef) {
size: normalizedSize
}), isBlock && toggle_group_control_styles_block, className), [className, cx, isBlock, isDeselectable, normalizedSize]);
const MainControl = isDeselectable ? ToggleGroupControlAsButtonGroup : ToggleGroupControlAsRadioGroup;
- return (0,external_React_.createElement)(base_control, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(base_control, {
help: help,
- __nextHasNoMarginBottom: __nextHasNoMarginBottom
- }, !hideLabelFromVision && (0,external_React_.createElement)(VisualLabelWrapper, null, (0,external_React_.createElement)(base_control.VisualLabel, null, label)), (0,external_React_.createElement)(MainControl, {
- ...otherProps,
- className: classes,
- isAdaptiveWidth: isAdaptiveWidth,
- label: label,
- onChange: onChange,
- ref: forwardedRef,
- size: normalizedSize,
- value: value
- }, (0,external_React_.createElement)(LayoutGroup, {
- id: baseId
- }, children)));
+ __nextHasNoMarginBottom: __nextHasNoMarginBottom,
+ children: [!hideLabelFromVision && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(VisualLabelWrapper, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control.VisualLabel, {
+ children: label
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MainControl, {
+ ...otherProps,
+ className: classes,
+ isAdaptiveWidth: isAdaptiveWidth,
+ label: label,
+ onChange: onChange,
+ ref: forwardedRef,
+ size: normalizedSize,
+ value: value,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LayoutGroup, {
+ id: baseId,
+ children: children
+ })
+ })]
+ });
}
/**
@@ -36880,7 +35923,7 @@ function toggle_group_control_option_base_styles_EMOTION_STRINGIFIED_CSS_ERROR_(
* Internal dependencies
*/
-const LabelView = emotion_styled_base_browser_esm("div", true ? {
+const LabelView = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "et6ln9s1"
} : 0)( true ? {
name: "sln1fl",
@@ -36895,12 +35938,12 @@ const buttonView = ({
isIcon,
isPressed,
size
-}) => /*#__PURE__*/emotion_react_browser_esm_css("align-items:center;appearance:none;background:transparent;border:none;border-radius:", config_values.controlBorderRadius, ";color:", COLORS.gray[700], ";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;transition:background ", config_values.transitionDurationFast, " linear,color ", config_values.transitionDurationFast, " linear,font-weight 60ms linear;", reduceMotion('transition'), " user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:", config_values.toggleGroupControlBackgroundColor, ";}", isDeselectable && deselectable, " ", isIcon && isIconStyles({
+}) => /*#__PURE__*/emotion_react_browser_esm_css("align-items:center;appearance:none;background:transparent;border:none;border-radius:", config_values.controlBorderRadius, ";color:", COLORS.gray[700], ";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;@media not ( prefers-reduced-motion ){transition:background ", config_values.transitionDurationFast, " linear,color ", config_values.transitionDurationFast, " linear,font-weight 60ms linear;}user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:", config_values.toggleGroupControlBackgroundColor, ";}", isDeselectable && deselectable, " ", isIcon && isIconStyles({
size
}), " ", isPressed && pressed, ";" + ( true ? "" : 0), true ? "" : 0);
const pressed = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.white, ";&:active{background:transparent;}" + ( true ? "" : 0), true ? "" : 0);
const deselectable = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.gray[900], ";&:focus{box-shadow:inset 0 0 0 1px ", COLORS.white, ",0 0 0 ", config_values.borderWidthFocus, " ", COLORS.theme.accent, ";outline:2px solid transparent;}" + ( true ? "" : 0), true ? "" : 0);
-const ButtonContentView = emotion_styled_base_browser_esm("div", true ? {
+const ButtonContentView = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "et6ln9s0"
} : 0)("display:flex;font-size:", config_values.fontSize, ";line-height:1;" + ( true ? "" : 0));
const isIconStyles = ({
@@ -36915,7 +35958,6 @@ const isIconStyles = ({
const backdropView = /*#__PURE__*/emotion_react_browser_esm_css("background:", COLORS.gray[900], ";border-radius:", config_values.controlBorderRadius, ";position:absolute;inset:0;z-index:1;outline:2px solid transparent;outline-offset:-3px;" + ( true ? "" : 0), true ? "" : 0);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control-option-base/component.js
-
/**
* External dependencies
*/
@@ -36940,6 +35982,9 @@ const backdropView = /*#__PURE__*/emotion_react_browser_esm_css("background:", C
+
+
+
const {
ButtonContentView: component_ButtonContentView,
LabelView: component_LabelView
@@ -36954,15 +35999,18 @@ const WithToolTip = ({
children
}) => {
if (showTooltip && text) {
- return (0,external_React_.createElement)(tooltip, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
text: text,
- placement: "top"
- }, children);
+ placement: "top",
+ children: children
+ });
}
- return (0,external_React_.createElement)(external_React_.Fragment, null, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: children
+ });
};
function ToggleGroupControlOptionBase(props, forwardedRef) {
- const shouldReduceMotion = useReducedMotion();
+ const shouldReduceMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
const toggleGroupControlContext = useToggleGroupControlContext();
const id = (0,external_wp_compose_namespaceObject.useInstanceId)(ToggleGroupControlOptionBase, toggleGroupControlContext.baseId || 'toggle-group-control-option-base');
const buttonProps = useContextSystem({
@@ -37006,34 +36054,48 @@ function ToggleGroupControlOptionBase(props, forwardedRef) {
'data-value': value,
ref: forwardedRef
};
- return (0,external_React_.createElement)(component_LabelView, {
- className: labelViewClasses
- }, (0,external_React_.createElement)(WithToolTip, {
- showTooltip: showTooltip,
- text: otherButtonProps['aria-label']
- }, isDeselectable ? (0,external_React_.createElement)("button", {
- ...commonProps,
- onFocus: onFocusProp,
- "aria-pressed": isPressed,
- type: "button",
- onClick: buttonOnClick
- }, (0,external_React_.createElement)(component_ButtonContentView, null, children)) : (0,external_React_.createElement)(Radio, {
- render: (0,external_React_.createElement)("button", {
- type: "button",
- ...commonProps,
- onFocus: event => {
- onFocusProp?.(event);
- if (event.defaultPrevented) return;
- toggleGroupControlContext.setValue(value);
- }
- }),
- value: value
- }, (0,external_React_.createElement)(component_ButtonContentView, null, children))), isPressed ? (0,external_React_.createElement)(motion.div, {
- className: backdropClasses,
- transition: shouldReduceMotion ? REDUCED_MOTION_TRANSITION_CONFIG : undefined,
- role: "presentation",
- layoutId: LAYOUT_ID
- }) : null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(component_LabelView, {
+ className: labelViewClasses,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WithToolTip, {
+ showTooltip: showTooltip,
+ text: otherButtonProps['aria-label'],
+ children: isDeselectable ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("button", {
+ ...commonProps,
+ onFocus: onFocusProp,
+ "aria-pressed": isPressed,
+ type: "button",
+ onClick: buttonOnClick,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component_ButtonContentView, {
+ children: children
+ })
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Radio, {
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("button", {
+ type: "button",
+ ...commonProps,
+ onFocus: event => {
+ onFocusProp?.(event);
+ if (event.defaultPrevented) {
+ return;
+ }
+ toggleGroupControlContext.setValue(value);
+ }
+ }),
+ value: value,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component_ButtonContentView, {
+ children: children
+ })
+ })
+ }), isPressed ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(motion.div, {
+ layout: true,
+ layoutRoot: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(motion.div, {
+ className: backdropClasses,
+ transition: shouldReduceMotion ? REDUCED_MOTION_TRANSITION_CONFIG : undefined,
+ role: "presentation",
+ layoutId: LAYOUT_ID
+ })
+ }) : null]
+ });
}
/**
@@ -37061,7 +36123,6 @@ const ConnectedToggleGroupControlOptionBase = contextConnect(ToggleGroupControlO
/* harmony default export */ const toggle_group_control_option_base_component = (ConnectedToggleGroupControlOptionBase);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control-option-icon/component.js
-
/**
* External dependencies
*/
@@ -37077,21 +36138,23 @@ const ConnectedToggleGroupControlOptionBase = contextConnect(ToggleGroupControlO
+
function UnforwardedToggleGroupControlOptionIcon(props, ref) {
const {
icon,
label,
...restProps
} = props;
- return (0,external_React_.createElement)(toggle_group_control_option_base_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toggle_group_control_option_base_component, {
...restProps,
isIcon: true,
"aria-label": label,
showTooltip: true,
- ref: ref
- }, (0,external_React_.createElement)(build_module_icon, {
- icon: icon
- }));
+ ref: ref,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: icon
+ })
+ });
}
/**
@@ -37128,7 +36191,6 @@ const ToggleGroupControlOptionIcon = (0,external_wp_element_namespaceObject.forw
/* harmony default export */ const toggle_group_control_option_icon_component = (ToggleGroupControlOptionIcon);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-control/border-control-style-picker/component.js
-
/**
* WordPress dependencies
*/
@@ -37140,6 +36202,7 @@ const ToggleGroupControlOptionIcon = (0,external_wp_element_namespaceObject.forw
*/
+
const BORDER_STYLES = [{
label: (0,external_wp_i18n_namespaceObject.__)('Solid'),
icon: line_solid,
@@ -37157,7 +36220,7 @@ function UnconnectedBorderControlStylePicker({
onChange,
...restProps
}, forwardedRef) {
- return (0,external_React_.createElement)(toggle_group_control_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toggle_group_control_component, {
__nextHasNoMarginBottom: true,
__next40pxDefaultSize: true,
ref: forwardedRef,
@@ -37165,19 +36228,18 @@ function UnconnectedBorderControlStylePicker({
onChange: value => {
onChange?.(value);
},
- ...restProps
- }, BORDER_STYLES.map(borderStyle => (0,external_React_.createElement)(toggle_group_control_option_icon_component, {
- key: borderStyle.value,
- value: borderStyle.value,
- icon: borderStyle.icon,
- label: borderStyle.label
- })));
+ ...restProps,
+ children: BORDER_STYLES.map(borderStyle => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toggle_group_control_option_icon_component, {
+ value: borderStyle.value,
+ icon: borderStyle.icon,
+ label: borderStyle.label
+ }, borderStyle.value))
+ });
}
const BorderControlStylePicker = contextConnect(UnconnectedBorderControlStylePicker, 'BorderControlStylePicker');
/* harmony default export */ const border_control_style_picker_component = (BorderControlStylePicker);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-indicator/index.js
-
/**
* External dependencies
*/
@@ -37197,8 +36259,8 @@ function UnforwardedColorIndicator(props, forwardedRef) {
colorValue,
...additionalProps
} = props;
- return (0,external_React_.createElement)("span", {
- className: classnames_default()('component-color-indicator', className),
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: dist_clsx('component-color-indicator', className),
style: {
background: colorValue
},
@@ -37225,7 +36287,6 @@ const ColorIndicator = (0,external_wp_element_namespaceObject.forwardRef)(Unforw
var a11y_o=function(o){var t=o/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},a11y_t=function(t){return.2126*a11y_o(t.r)+.7152*a11y_o(t.g)+.0722*a11y_o(t.b)};/* harmony default export */ function a11y(o){o.prototype.luminance=function(){return o=a11y_t(this.rgba),void 0===(r=2)&&(r=0),void 0===n&&(n=Math.pow(10,r)),Math.round(n*o)/n+0;var o,r,n},o.prototype.contrast=function(r){void 0===r&&(r="#FFF");var n,a,i,e,v,u,d,c=r instanceof o?r:new o(r);return e=this.rgba,v=c.toRgb(),u=a11y_t(e),d=a11y_t(v),n=u>d?(u+.05)/(d+.05):(d+.05)/(u+.05),void 0===(a=2)&&(a=0),void 0===i&&(i=Math.pow(10,a)),Math.floor(i*n)/i+0},o.prototype.isReadable=function(o,t){return void 0===o&&(o="#FFF"),void 0===t&&(t={}),this.contrast(o)>=(e=void 0===(i=(r=t).size)?"normal":i,"AAA"===(a=void 0===(n=r.level)?"AA":n)&&"normal"===e?7:"AA"===a&&"large"===e?3:4.5);var r,n,a,i,e}}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dropdown/index.js
-
/**
* External dependencies
*/
@@ -37243,6 +36304,8 @@ var a11y_o=function(o){var t=o/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.0
+
+
const UnconnectedDropdown = (props, forwardedRef) => {
const {
renderContent,
@@ -37312,7 +36375,7 @@ const UnconnectedDropdown = (props, forwardedRef) => {
// Note: `anchorRef`, `getAnchorRect` and `anchorRect` are deprecated and
// be removed from `Popover` from WordPress 6.3
!!popoverProps?.anchorRef || !!popoverProps?.getAnchorRect || !!popoverProps?.anchorRect;
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: className,
ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([containerRef, forwardedRef, setFallbackPopoverAnchor])
// Some UAs focus the closest focusable parent when the toggle is
@@ -37320,23 +36383,25 @@ const UnconnectedDropdown = (props, forwardedRef) => {
// it and `closeIfFocusOutside` can tell if the toggle was clicked.
,
tabIndex: -1,
- style: style
- }, renderToggle(args), isOpen && (0,external_React_.createElement)(popover, {
- position: position,
- onClose: close,
- onFocusOutside: closeIfFocusOutside,
- expandOnMobile: expandOnMobile,
- headerTitle: headerTitle,
- focusOnMount: focusOnMount
- // This value is used to ensure that the dropdowns
- // align with the editor header by default.
- ,
- offset: 13,
- anchor: !popoverPropsHaveAnchor ? fallbackPopoverAnchor : undefined,
- variant: variant,
- ...popoverProps,
- className: classnames_default()('components-dropdown__content', popoverProps?.className, contentClassName)
- }, renderContent(args)));
+ style: style,
+ children: [renderToggle(args), isOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(popover, {
+ position: position,
+ onClose: close,
+ onFocusOutside: closeIfFocusOutside,
+ expandOnMobile: expandOnMobile,
+ headerTitle: headerTitle,
+ focusOnMount: focusOnMount
+ // This value is used to ensure that the dropdowns
+ // align with the editor header by default.
+ ,
+ offset: 13,
+ anchor: !popoverPropsHaveAnchor ? fallbackPopoverAnchor : undefined,
+ variant: variant,
+ ...popoverProps,
+ className: dist_clsx('components-dropdown__content', popoverProps?.className, contentClassName),
+ children: renderContent(args)
+ })]
+ });
};
/**
@@ -37368,7 +36433,6 @@ const Dropdown = contextConnect(UnconnectedDropdown, 'Dropdown');
/* harmony default export */ const dropdown = (Dropdown);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/input-suffix-wrapper.js
-
/**
* External dependencies
*/
@@ -37378,9 +36442,10 @@ const Dropdown = contextConnect(UnconnectedDropdown, 'Dropdown');
*/
+
function UnconnectedInputControlSuffixWrapper(props, forwardedRef) {
const derivedProps = useContextSystem(props, 'InputControlSuffixWrapper');
- return (0,external_React_.createElement)(spacer_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
marginBottom: 0,
...derivedProps,
ref: forwardedRef
@@ -37421,7 +36486,9 @@ const InputControlSuffixWrapper = contextConnect(UnconnectedInputControlSuffixWr
const select_control_styles_disabledStyles = ({
disabled
}) => {
- if (!disabled) return '';
+ if (!disabled) {
+ return '';
+ }
return /*#__PURE__*/emotion_react_browser_esm_css({
color: COLORS.ui.textDisabled
}, true ? "" : 0, true ? "" : 0);
@@ -37504,10 +36571,10 @@ const overflowStyles = ({
// TODO: Resolve need to use &&& to increase specificity
// https://github.com/WordPress/gutenberg/issues/18483
-const Select = emotion_styled_base_browser_esm("select", true ? {
+const Select = /*#__PURE__*/emotion_styled_base_browser_esm("select", true ? {
target: "e1mv6sxx2"
} : 0)("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:", COLORS.gray[900], ";display:block;font-family:inherit;margin:0;width:100%;max-width:none;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;", select_control_styles_disabledStyles, ";", fontSizeStyles, ";", select_control_styles_sizeStyles, ";", sizePaddings, ";", overflowStyles, ";}" + ( true ? "" : 0));
-const DownArrowWrapper = emotion_styled_base_browser_esm("div", true ? {
+const DownArrowWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "e1mv6sxx1"
} : 0)("margin-inline-end:", space(-1), ";line-height:0;" + ( true ? "" : 0));
const InputControlSuffixWrapperWithClickThrough = /*#__PURE__*/emotion_styled_base_browser_esm(input_suffix_wrapper, true ? {
@@ -37549,21 +36616,21 @@ function icon_Icon({
/* harmony default export */ const icons_build_module_icon = ((0,external_wp_element_namespaceObject.forwardRef)(icon_Icon));
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-down.js
-
/**
* WordPress dependencies
*/
-const chevronDown = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronDown = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"
+ })
+});
/* harmony default export */ const chevron_down = (chevronDown);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/select-control/chevron-down.js
-
/**
* WordPress dependencies
*/
@@ -37573,16 +36640,20 @@ const chevronDown = (0,external_React_.createElement)(external_wp_primitives_nam
* Internal dependencies
*/
+
const SelectControlChevronDown = () => {
- return (0,external_React_.createElement)(InputControlSuffixWrapperWithClickThrough, null, (0,external_React_.createElement)(DownArrowWrapper, null, (0,external_React_.createElement)(icons_build_module_icon, {
- icon: chevron_down,
- size: chevronIconSize
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputControlSuffixWrapperWithClickThrough, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DownArrowWrapper, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
+ icon: chevron_down,
+ size: chevronIconSize
+ })
+ })
+ });
};
/* harmony default export */ const select_control_chevron_down = (SelectControlChevronDown);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/select-control/index.js
-
/**
* External dependencies
*/
@@ -37602,7 +36673,7 @@ const SelectControlChevronDown = () => {
-const select_control_noop = () => {};
+
function select_control_useUniqueId(idProp) {
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(SelectControl);
const id = `inspector-select-control-${instanceId}`;
@@ -37617,9 +36688,7 @@ function UnforwardedSelectControl(props, ref) {
id: idProp,
label,
multiple = false,
- onBlur = select_control_noop,
onChange,
- onFocus = select_control_noop,
options = [],
size = 'default',
value: valueProp,
@@ -37631,20 +36700,13 @@ function UnforwardedSelectControl(props, ref) {
__nextHasNoMarginBottom = false,
...restProps
} = useDeprecated36pxDefaultSizeProp(props);
- const [isFocused, setIsFocused] = (0,external_wp_element_namespaceObject.useState)(false);
const id = select_control_useUniqueId(idProp);
const helpId = help ? `${id}__help` : undefined;
// Disable reason: A select with an onchange throws a warning.
- if (!options?.length && !children) return null;
- const handleOnBlur = event => {
- onBlur(event);
- setIsFocused(false);
- };
- const handleOnFocus = event => {
- onFocus(event);
- setIsFocused(true);
- };
+ if (!options?.length && !children) {
+ return null;
+ }
const handleOnChange = event => {
if (props.multiple) {
const selectedOptions = Array.from(event.target.options).filter(({
@@ -37662,46 +36724,46 @@ function UnforwardedSelectControl(props, ref) {
event
});
};
- const classes = classnames_default()('components-select-control', className);
- return (0,external_React_.createElement)(base_control, {
+ const classes = dist_clsx('components-select-control', className);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
help: help,
id: id,
- __nextHasNoMarginBottom: __nextHasNoMarginBottom
- }, (0,external_React_.createElement)(input_base, {
- className: classes,
- disabled: disabled,
- hideLabelFromVision: hideLabelFromVision,
- id: id,
- isFocused: isFocused,
- label: label,
- size: size,
- suffix: suffix || !multiple && (0,external_React_.createElement)(select_control_chevron_down, null),
- prefix: prefix,
- labelPosition: labelPosition,
- __next40pxDefaultSize: __next40pxDefaultSize
- }, (0,external_React_.createElement)(Select, {
- ...restProps,
- __next40pxDefaultSize: __next40pxDefaultSize,
- "aria-describedby": helpId,
- className: "components-select-control__input",
- disabled: disabled,
- id: id,
- multiple: multiple,
- onBlur: handleOnBlur,
- onChange: handleOnChange,
- onFocus: handleOnFocus,
- ref: ref,
- selectSize: size,
- value: valueProp
- }, children || options.map((option, index) => {
- const key = option.id || `${option.label}-${option.value}-${index}`;
- return (0,external_React_.createElement)("option", {
- key: key,
- value: option.value,
- disabled: option.disabled,
- hidden: option.hidden
- }, option.label);
- }))));
+ __nextHasNoMarginBottom: __nextHasNoMarginBottom,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(input_base, {
+ className: classes,
+ disabled: disabled,
+ hideLabelFromVision: hideLabelFromVision,
+ id: id,
+ label: label,
+ size: size,
+ suffix: suffix || !multiple && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(select_control_chevron_down, {}),
+ prefix: prefix,
+ labelPosition: labelPosition,
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Select, {
+ ...restProps,
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ "aria-describedby": helpId,
+ className: "components-select-control__input",
+ disabled: disabled,
+ id: id,
+ multiple: multiple,
+ onChange: handleOnChange,
+ ref: ref,
+ selectSize: size,
+ value: valueProp,
+ children: children || options.map((option, index) => {
+ const key = option.id || `${option.label}-${option.value}-${index}`;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("option", {
+ value: option.value,
+ disabled: option.disabled,
+ hidden: option.hidden,
+ children: option.label
+ }, key);
+ })
+ })
+ })
+ });
}
/**
@@ -37900,7 +36962,7 @@ const deprecatedHeight = ({
}) => !__next40pxDefaultSize && /*#__PURE__*/emotion_react_browser_esm_css({
minHeight: rangeHeightValue
}, true ? "" : 0, true ? "" : 0);
-const range_control_styles_Root = emotion_styled_base_browser_esm("div", true ? {
+const range_control_styles_Root = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "e1epgpqk14"
} : 0)("-webkit-tap-highlight-color:transparent;align-items:center;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;min-height:40px;", deprecatedHeight, ";" + ( true ? "" : 0));
const wrapperColor = ({
@@ -37919,15 +36981,15 @@ const wrapperMargin = ({
}
return '';
};
-const range_control_styles_Wrapper = emotion_styled_base_browser_esm("div", true ? {
+const range_control_styles_Wrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "e1epgpqk13"
} : 0)("display:block;flex:1;position:relative;width:100%;", wrapperColor, ";", rangeHeight, ";", wrapperMargin, ";" + ( true ? "" : 0));
-const BeforeIconWrapper = emotion_styled_base_browser_esm("span", true ? {
+const BeforeIconWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "e1epgpqk12"
} : 0)("display:flex;margin-top:", railHeight, "px;", rtl({
marginRight: 6
}), ";" + ( true ? "" : 0));
-const AfterIconWrapper = emotion_styled_base_browser_esm("span", true ? {
+const AfterIconWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "e1epgpqk11"
} : 0)("display:flex;margin-top:", railHeight, "px;", rtl({
marginLeft: 6
@@ -37944,7 +37006,7 @@ const railBackgroundColor = ({
background
}, true ? "" : 0, true ? "" : 0);
};
-const Rail = emotion_styled_base_browser_esm("span", true ? {
+const Rail = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "e1epgpqk10"
} : 0)("background-color:", COLORS.gray[300], ";left:0;pointer-events:none;right:0;display:block;height:", railHeight, "px;position:absolute;margin-top:", (rangeHeightValue - railHeight) / 2, "px;top:0;border-radius:", railHeight, "px;", railBackgroundColor, ";" + ( true ? "" : 0));
const trackBackgroundColor = ({
@@ -37959,10 +37021,10 @@ const trackBackgroundColor = ({
background
}, true ? "" : 0, true ? "" : 0);
};
-const Track = emotion_styled_base_browser_esm("span", true ? {
+const Track = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "e1epgpqk9"
} : 0)("background-color:currentColor;border-radius:", railHeight, "px;height:", railHeight, "px;pointer-events:none;display:block;position:absolute;margin-top:", (rangeHeightValue - railHeight) / 2, "px;top:0;", trackBackgroundColor, ";" + ( true ? "" : 0));
-const MarksWrapper = emotion_styled_base_browser_esm("span", true ? {
+const MarksWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "e1epgpqk8"
} : 0)( true ? {
name: "l7tjj5",
@@ -37980,7 +37042,7 @@ const markFill = ({
backgroundColor
}, true ? "" : 0, true ? "" : 0);
};
-const Mark = emotion_styled_base_browser_esm("span", true ? {
+const Mark = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "e1epgpqk7"
} : 0)("height:", thumbSize, "px;left:0;position:absolute;top:-4px;width:1px;", markFill, ";" + ( true ? "" : 0));
const markLabelFill = ({
@@ -37990,13 +37052,13 @@ const markLabelFill = ({
color: isFilled ? COLORS.gray[700] : COLORS.gray[300]
}, true ? "" : 0, true ? "" : 0);
};
-const MarkLabel = emotion_styled_base_browser_esm("span", true ? {
+const MarkLabel = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "e1epgpqk6"
} : 0)("color:", COLORS.gray[300], ";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;", markLabelFill, ";" + ( true ? "" : 0));
const thumbColor = ({
disabled
}) => disabled ? /*#__PURE__*/emotion_react_browser_esm_css("background-color:", COLORS.gray[400], ";" + ( true ? "" : 0), true ? "" : 0) : /*#__PURE__*/emotion_react_browser_esm_css("background-color:", COLORS.theme.accent, ";" + ( true ? "" : 0), true ? "" : 0);
-const ThumbWrapper = emotion_styled_base_browser_esm("span", true ? {
+const ThumbWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "e1epgpqk5"
} : 0)("align-items:center;display:flex;height:", thumbSize, "px;justify-content:center;margin-top:", (rangeHeightValue - thumbSize) / 2, "px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:", thumbSize, "px;border-radius:50%;", thumbColor, ";", rtl({
marginLeft: -10
@@ -38010,10 +37072,10 @@ const thumbFocus = ({
}) => {
return isFocused ? /*#__PURE__*/emotion_react_browser_esm_css("&::before{content:' ';position:absolute;background-color:", COLORS.theme.accent, ";opacity:0.4;border-radius:50%;height:", thumbSize + 8, "px;width:", thumbSize + 8, "px;top:-4px;left:-4px;}" + ( true ? "" : 0), true ? "" : 0) : '';
};
-const Thumb = emotion_styled_base_browser_esm("span", true ? {
+const Thumb = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "e1epgpqk4"
} : 0)("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;", thumbColor, ";", thumbFocus, ";" + ( true ? "" : 0));
-const InputRange = emotion_styled_base_browser_esm("input", true ? {
+const InputRange = /*#__PURE__*/emotion_styled_base_browser_esm("input", true ? {
target: "e1epgpqk3"
} : 0)("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -", thumbSize / 2, "px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ", thumbSize, "px );" + ( true ? "" : 0));
const tooltipShow = ({
@@ -38040,29 +37102,28 @@ const tooltipPosition = ({
}
return range_control_styles_ref;
};
-const range_control_styles_Tooltip = emotion_styled_base_browser_esm("span", true ? {
+const range_control_styles_Tooltip = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "e1epgpqk2"
-} : 0)("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;", tooltipShow, ";", tooltipPosition, ";", reduceMotion('transition'), ";", rtl({
+} : 0)("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;user-select:none;line-height:1.4;@media not ( prefers-reduced-motion ){transition:opacity 120ms ease;}", tooltipShow, ";", tooltipPosition, ";", rtl({
transform: 'translateX(-50%)'
}, {
transform: 'translateX(50%)'
}), ";" + ( true ? "" : 0));
-// @todo: Refactor RangeControl with latest HStack configuration
+// @todo Refactor RangeControl with latest HStack configuration
// @see: packages/components/src/h-stack
const InputNumber = /*#__PURE__*/emotion_styled_base_browser_esm(number_control, true ? {
target: "e1epgpqk1"
} : 0)("display:inline-block;font-size:13px;margin-top:0;input[type='number']&{", rangeHeight, ";}", rtl({
marginLeft: `${space(4)} !important`
}), ";" + ( true ? "" : 0));
-const ActionRightWrapper = emotion_styled_base_browser_esm("span", true ? {
+const ActionRightWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "e1epgpqk0"
} : 0)("display:block;margin-top:0;button,button.is-small{margin-left:0;", rangeHeight, ";}", rtl({
marginLeft: 8
}), ";" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/input-range.js
-
/**
* WordPress dependencies
*/
@@ -38072,6 +37133,7 @@ const ActionRightWrapper = emotion_styled_base_browser_esm("span", true ? {
* Internal dependencies
*/
+
function input_range_InputRange(props, ref) {
const {
describedBy,
@@ -38079,7 +37141,7 @@ function input_range_InputRange(props, ref) {
value,
...otherProps
} = props;
- return (0,external_React_.createElement)(InputRange, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputRange, {
...otherProps,
"aria-describedby": describedBy,
"aria-label": label,
@@ -38094,7 +37156,6 @@ const input_range_ForwardedComponent = (0,external_wp_element_namespaceObject.fo
/* harmony default export */ const input_range = (input_range_ForwardedComponent);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/mark.js
-
/**
* External dependencies
*/
@@ -38104,6 +37165,9 @@ const input_range_ForwardedComponent = (0,external_wp_element_namespaceObject.fo
* Internal dependencies
*/
+
+
+
function RangeMark(props) {
const {
className,
@@ -38112,24 +37176,26 @@ function RangeMark(props) {
style = {},
...otherProps
} = props;
- const classes = classnames_default()('components-range-control__mark', isFilled && 'is-filled', className);
- const labelClasses = classnames_default()('components-range-control__mark-label', isFilled && 'is-filled');
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(Mark, {
- ...otherProps,
- "aria-hidden": "true",
- className: classes,
- isFilled: isFilled,
- style: style
- }), label && (0,external_React_.createElement)(MarkLabel, {
- "aria-hidden": "true",
- className: labelClasses,
- isFilled: isFilled,
- style: style
- }, label));
+ const classes = dist_clsx('components-range-control__mark', isFilled && 'is-filled', className);
+ const labelClasses = dist_clsx('components-range-control__mark-label', isFilled && 'is-filled');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Mark, {
+ ...otherProps,
+ "aria-hidden": "true",
+ className: classes,
+ isFilled: isFilled,
+ style: style
+ }), label && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MarkLabel, {
+ "aria-hidden": "true",
+ className: labelClasses,
+ isFilled: isFilled,
+ style: style,
+ children: label
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/rail.js
-
/**
* WordPress dependencies
*/
@@ -38140,6 +37206,10 @@ function RangeMark(props) {
*/
+
+
+
+
function RangeRail(props) {
const {
disabled = false,
@@ -38150,17 +37220,19 @@ function RangeRail(props) {
value = 0,
...restProps
} = props;
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(Rail, {
- disabled: disabled,
- ...restProps
- }), marks && (0,external_React_.createElement)(Marks, {
- disabled: disabled,
- marks: marks,
- min: min,
- max: max,
- step: step,
- value: value
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Rail, {
+ disabled: disabled,
+ ...restProps
+ }), marks && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Marks, {
+ disabled: disabled,
+ marks: marks,
+ min: min,
+ max: max,
+ step: step,
+ value: value
+ })]
+ });
}
function Marks(props) {
const {
@@ -38179,15 +37251,16 @@ function Marks(props) {
step,
value
});
- return (0,external_React_.createElement)(MarksWrapper, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MarksWrapper, {
"aria-hidden": "true",
- className: "components-range-control__marks"
- }, marksData.map(mark => (0,external_React_.createElement)(RangeMark, {
- ...mark,
- key: mark.key,
- "aria-hidden": "true",
- disabled: disabled
- })));
+ className: "components-range-control__marks",
+ children: marksData.map(mark => /*#__PURE__*/(0,external_React_.createElement)(RangeMark, {
+ ...mark,
+ key: mark.key,
+ "aria-hidden": "true",
+ disabled: disabled
+ }))
+ });
}
function useMarks({
marks,
@@ -38205,7 +37278,7 @@ function useMarks({
const count = 1 + Math.round(range / step);
while (count > marks.push({
value: step * marks.length + min
- }));
+ })) {}
}
const placedMarks = [];
marks.forEach((mark, index) => {
@@ -38229,7 +37302,6 @@ function useMarks({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/tooltip.js
-
/**
* External dependencies
*/
@@ -38244,6 +37316,7 @@ function useMarks({
* Internal dependencies
*/
+
function SimpleTooltip(props) {
const {
className,
@@ -38260,20 +37333,21 @@ function SimpleTooltip(props) {
inputRef,
tooltipPosition
});
- const classes = classnames_default()('components-simple-tooltip', className);
+ const classes = dist_clsx('components-simple-tooltip', className);
const styles = {
...style,
zIndex
};
- return (0,external_React_.createElement)(range_control_styles_Tooltip, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(range_control_styles_Tooltip, {
...restProps,
"aria-hidden": show,
className: classes,
position: position,
show: show,
role: "tooltip",
- style: styles
- }, renderTooltipContent(value));
+ style: styles,
+ children: renderTooltipContent(value)
+ });
}
function useTooltipPosition({
inputRef,
@@ -38298,7 +37372,6 @@ function useTooltipPosition({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/index.js
-
/**
* External dependencies
*/
@@ -38324,6 +37397,8 @@ function useTooltipPosition({
+
+
const range_control_noop = () => {};
function UnforwardedRangeControl(props, forwardedRef) {
const {
@@ -38386,8 +37461,8 @@ function UnforwardedRangeControl(props, forwardedRef) {
const rangeFillValue = isValueReset ? (max - min) / 2 + min : value;
const fillValue = isValueReset ? 50 : (value - min) / (max - min) * 100;
const fillValueOffset = `${math_clamp(fillValue, 0, 100)}%`;
- const classes = classnames_default()('components-range-control', className);
- const wrapperClasses = classnames_default()('components-range-control__wrapper', !!marks && 'is-marked');
+ const classes = dist_clsx('components-range-control', className);
+ const wrapperClasses = dist_clsx('components-range-control__wrapper', !!marks && 'is-marked');
const id = (0,external_wp_compose_namespaceObject.useInstanceId)(UnforwardedRangeControl, 'inspector-range-control');
const describedBy = !!help ? `${id}__help` : undefined;
const enableTooltip = hasTooltip !== false && Number.isFinite(value);
@@ -38461,99 +37536,110 @@ function UnforwardedRangeControl(props, forwardedRef) {
const offsetStyle = {
[(0,external_wp_i18n_namespaceObject.isRTL)() ? 'right' : 'left']: fillValueOffset
};
- return (0,external_React_.createElement)(base_control, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
__nextHasNoMarginBottom: __nextHasNoMarginBottom,
className: classes,
label: label,
hideLabelFromVision: hideLabelFromVision,
id: `${id}`,
- help: help
- }, (0,external_React_.createElement)(range_control_styles_Root, {
- className: "components-range-control__root",
- __next40pxDefaultSize: __next40pxDefaultSize
- }, beforeIcon && (0,external_React_.createElement)(BeforeIconWrapper, null, (0,external_React_.createElement)(build_module_icon, {
- icon: beforeIcon
- })), (0,external_React_.createElement)(range_control_styles_Wrapper, {
- __nextHasNoMarginBottom: __nextHasNoMarginBottom,
- className: wrapperClasses,
- color: colorProp,
- marks: !!marks
- }, (0,external_React_.createElement)(input_range, {
- ...otherProps,
- className: "components-range-control__slider",
- describedBy: describedBy,
- disabled: disabled,
- id: `${id}`,
- label: label,
- max: max,
- min: min,
- onBlur: handleOnBlur,
- onChange: handleOnRangeChange,
- onFocus: handleOnFocus,
- onMouseMove: onMouseMove,
- onMouseLeave: onMouseLeave,
- ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([inputRef, forwardedRef]),
- step: step,
- value: inputSliderValue !== null && inputSliderValue !== void 0 ? inputSliderValue : undefined
- }), (0,external_React_.createElement)(RangeRail, {
- "aria-hidden": true,
- disabled: disabled,
- marks: marks,
- max: max,
- min: min,
- railColor: railColor,
- step: step,
- value: rangeFillValue
- }), (0,external_React_.createElement)(Track, {
- "aria-hidden": true,
- className: "components-range-control__track",
- disabled: disabled,
- style: {
- width: fillValueOffset
- },
- trackColor: trackColor
- }), (0,external_React_.createElement)(ThumbWrapper, {
- className: "components-range-control__thumb-wrapper",
- style: offsetStyle,
- disabled: disabled
- }, (0,external_React_.createElement)(Thumb, {
- "aria-hidden": true,
- isFocused: isThumbFocused,
- disabled: disabled
- })), enableTooltip && (0,external_React_.createElement)(SimpleTooltip, {
- className: "components-range-control__tooltip",
- inputRef: inputRef,
- tooltipPosition: "bottom",
- renderTooltipContent: renderTooltipContent,
- show: isCurrentlyFocused || showTooltip,
- style: offsetStyle,
- value: value
- })), afterIcon && (0,external_React_.createElement)(AfterIconWrapper, null, (0,external_React_.createElement)(build_module_icon, {
- icon: afterIcon
- })), hasInputField && (0,external_React_.createElement)(InputNumber, {
- "aria-label": label,
- className: "components-range-control__number",
- disabled: disabled,
- inputMode: "decimal",
- isShiftStepEnabled: isShiftStepEnabled,
- max: max,
- min: min,
- onBlur: handleOnInputNumberBlur,
- onChange: handleOnChange,
- shiftStep: shiftStep,
- size: __next40pxDefaultSize ? '__unstable-large' : 'default',
- __unstableInputWidth: __next40pxDefaultSize ? space(20) : space(16),
- step: step
- // @ts-expect-error TODO: Investigate if the `null` value is necessary
- ,
- value: inputSliderValue
- }), allowReset && (0,external_React_.createElement)(ActionRightWrapper, null, (0,external_React_.createElement)(build_module_button, {
- className: "components-range-control__reset",
- disabled: disabled || value === undefined,
- variant: "secondary",
- size: "small",
- onClick: handleOnReset
- }, (0,external_wp_i18n_namespaceObject.__)('Reset')))));
+ help: help,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(range_control_styles_Root, {
+ className: "components-range-control__root",
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ children: [beforeIcon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BeforeIconWrapper, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: beforeIcon
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(range_control_styles_Wrapper, {
+ __nextHasNoMarginBottom: __nextHasNoMarginBottom,
+ className: wrapperClasses,
+ color: colorProp,
+ marks: !!marks,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(input_range, {
+ ...otherProps,
+ className: "components-range-control__slider",
+ describedBy: describedBy,
+ disabled: disabled,
+ id: `${id}`,
+ label: label,
+ max: max,
+ min: min,
+ onBlur: handleOnBlur,
+ onChange: handleOnRangeChange,
+ onFocus: handleOnFocus,
+ onMouseMove: onMouseMove,
+ onMouseLeave: onMouseLeave,
+ ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([inputRef, forwardedRef]),
+ step: step,
+ value: inputSliderValue !== null && inputSliderValue !== void 0 ? inputSliderValue : undefined
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RangeRail, {
+ "aria-hidden": true,
+ disabled: disabled,
+ marks: marks,
+ max: max,
+ min: min,
+ railColor: railColor,
+ step: step,
+ value: rangeFillValue
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Track, {
+ "aria-hidden": true,
+ className: "components-range-control__track",
+ disabled: disabled,
+ style: {
+ width: fillValueOffset
+ },
+ trackColor: trackColor
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ThumbWrapper, {
+ className: "components-range-control__thumb-wrapper",
+ style: offsetStyle,
+ disabled: disabled,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Thumb, {
+ "aria-hidden": true,
+ isFocused: isThumbFocused,
+ disabled: disabled
+ })
+ }), enableTooltip && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SimpleTooltip, {
+ className: "components-range-control__tooltip",
+ inputRef: inputRef,
+ tooltipPosition: "bottom",
+ renderTooltipContent: renderTooltipContent,
+ show: isCurrentlyFocused || showTooltip,
+ style: offsetStyle,
+ value: value
+ })]
+ }), afterIcon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AfterIconWrapper, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: afterIcon
+ })
+ }), hasInputField && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputNumber, {
+ "aria-label": label,
+ className: "components-range-control__number",
+ disabled: disabled,
+ inputMode: "decimal",
+ isShiftStepEnabled: isShiftStepEnabled,
+ max: max,
+ min: min,
+ onBlur: handleOnInputNumberBlur,
+ onChange: handleOnChange,
+ shiftStep: shiftStep,
+ size: __next40pxDefaultSize ? '__unstable-large' : 'default',
+ __unstableInputWidth: __next40pxDefaultSize ? space(20) : space(16),
+ step: step
+ // @ts-expect-error TODO: Investigate if the `null` value is necessary
+ ,
+ value: inputSliderValue
+ }), allowReset && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionRightWrapper, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ className: "components-range-control__reset",
+ disabled: disabled || value === undefined,
+ variant: "secondary",
+ size: "small",
+ onClick: handleOnReset,
+ children: (0,external_wp_i18n_namespaceObject.__)('Reset')
+ })
+ })]
+ })
+ });
}
/**
@@ -38599,13 +37685,12 @@ const RangeControl = (0,external_wp_element_namespaceObject.forwardRef)(Unforwar
-
const NumberControlWrapper = /*#__PURE__*/emotion_styled_base_browser_esm(number_control, true ? {
target: "ez9hsf47"
-} : 0)(Container, "{width:", space(24), ";}" + ( true ? "" : 0));
+} : 0)("width:", space(24), ";" + ( true ? "" : 0));
const styles_SelectControl = /*#__PURE__*/emotion_styled_base_browser_esm(select_control, true ? {
target: "ez9hsf46"
-} : 0)("margin-left:", space(-2), ";width:5em;select:not( :focus )~", BackdropUI, BackdropUI, BackdropUI, "{border-color:transparent;}" + ( true ? "" : 0));
+} : 0)("margin-left:", space(-2), ";width:5em;" + ( true ? "" : 0));
const styles_RangeControl = /*#__PURE__*/emotion_styled_base_browser_esm(range_control, true ? {
target: "ez9hsf45"
} : 0)("flex:1;margin-right:", space(2), ";" + ( true ? "" : 0));
@@ -38616,7 +37701,7 @@ const interactiveHueStyles = `
width: calc( 100% - ${space(2)} );
margin-left: ${space(1)};
}`;
-const AuxiliaryColorArtefactWrapper = emotion_styled_base_browser_esm("div", true ? {
+const AuxiliaryColorArtefactWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "ez9hsf44"
} : 0)("padding-top:", space(2), ";padding-right:0;padding-left:0;padding-bottom:0;" + ( true ? "" : 0));
const AuxiliaryColorArtefactHStackHeader = /*#__PURE__*/emotion_styled_base_browser_esm(h_stack_component, true ? {
@@ -38625,7 +37710,7 @@ const AuxiliaryColorArtefactHStackHeader = /*#__PURE__*/emotion_styled_base_brow
const ColorInputWrapper = /*#__PURE__*/emotion_styled_base_browser_esm(flex_component, true ? {
target: "ez9hsf42"
} : 0)("padding-top:", space(4), ";padding-left:", space(4), ";padding-right:", space(3), ";padding-bottom:", space(5), ";" + ( true ? "" : 0));
-const ColorfulWrapper = emotion_styled_base_browser_esm("div", true ? {
+const ColorfulWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "ez9hsf41"
} : 0)(boxSizingReset, ";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:", space(4), ";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:", space(2), ";}.react-colorful__pointer{height:16px;width:16px;border:none;box-shadow:0 0 2px 0 rgba( 0, 0, 0, 0.25 );outline:2px solid transparent;}.react-colorful__pointer-fill{box-shadow:inset 0 0 0 ", config_values.borderWidthFocus, " #fff;}", interactiveHueStyles, ";" + ( true ? "" : 0));
const CopyButton = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_button, true ? {
@@ -38633,23 +37718,23 @@ const CopyButton = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_but
} : 0)("&&&&&{min-width:", space(6), ";padding:0;>svg{margin-right:0;}}" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/copy.js
-
/**
* WordPress dependencies
*/
-const copy_copy = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const copy_copy = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"
+ })
+});
/* harmony default export */ const library_copy = (copy_copy);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/color-copy-button.js
-
/**
* WordPress dependencies
*/
@@ -38663,6 +37748,7 @@ const copy_copy = (0,external_React_.createElement)(external_wp_primitives_names
*/
+
const ColorCopyButton = props => {
const {
color,
@@ -38704,20 +37790,20 @@ const ColorCopyButton = props => {
}
};
}, []);
- return (0,external_React_.createElement)(tooltip, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
delay: 0,
hideOnClick: false,
- text: copiedColor === color.toHex() ? (0,external_wp_i18n_namespaceObject.__)('Copied!') : (0,external_wp_i18n_namespaceObject.__)('Copy')
- }, (0,external_React_.createElement)(CopyButton, {
- size: "small",
- ref: copyRef,
- icon: library_copy,
- showTooltip: false
- }));
+ text: copiedColor === color.toHex() ? (0,external_wp_i18n_namespaceObject.__)('Copied!') : (0,external_wp_i18n_namespaceObject.__)('Copy'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CopyButton, {
+ size: "small",
+ ref: copyRef,
+ icon: library_copy,
+ showTooltip: false
+ })
+ });
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/input-with-slider.js
-
/**
* Internal dependencies
*/
@@ -38727,6 +37813,8 @@ const ColorCopyButton = props => {
+
+
const InputWithSlider = ({
min,
max,
@@ -38746,40 +37834,41 @@ const InputWithSlider = ({
}
onChange(newValue);
};
- return (0,external_React_.createElement)(h_stack_component, {
- spacing: 4
- }, (0,external_React_.createElement)(NumberControlWrapper, {
- min: min,
- max: max,
- label: label,
- hideLabelFromVision: true,
- value: value,
- onChange: onNumberControlChange,
- prefix: (0,external_React_.createElement)(spacer_component, {
- as: text_component,
- paddingLeft: space(4),
- color: COLORS.theme.accent,
- lineHeight: 1
- }, abbreviation),
- spinControls: "none",
- size: "__unstable-large"
- }), (0,external_React_.createElement)(styles_RangeControl, {
- __nextHasNoMarginBottom: true,
- label: label,
- hideLabelFromVision: true,
- min: min,
- max: max,
- value: value
- // @ts-expect-error
- // See: https://github.com/WordPress/gutenberg/pull/40535#issuecomment-1172418185
- ,
- onChange: onChange,
- withInputField: false
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
+ spacing: 4,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NumberControlWrapper, {
+ min: min,
+ max: max,
+ label: label,
+ hideLabelFromVision: true,
+ value: value,
+ onChange: onNumberControlChange,
+ prefix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
+ as: text_component,
+ paddingLeft: space(4),
+ color: COLORS.theme.accent,
+ lineHeight: 1,
+ children: abbreviation
+ }),
+ spinControls: "none",
+ size: "__unstable-large"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_RangeControl, {
+ __nextHasNoMarginBottom: true,
+ label: label,
+ hideLabelFromVision: true,
+ min: min,
+ max: max,
+ value: value
+ // @ts-expect-error
+ // See: https://github.com/WordPress/gutenberg/pull/40535#issuecomment-1172418185
+ ,
+ onChange: onChange,
+ withInputField: false
+ })]
+ });
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/rgb-input.js
-
/**
* External dependencies
*/
@@ -38789,6 +37878,9 @@ const InputWithSlider = ({
* Internal dependencies
*/
+
+
+
const RgbInput = ({
color,
onChange,
@@ -38800,59 +37892,60 @@ const RgbInput = ({
b,
a
} = color.toRgb();
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(InputWithSlider, {
- min: 0,
- max: 255,
- label: "Red",
- abbreviation: "R",
- value: r,
- onChange: nextR => onChange(w({
- r: nextR,
- g,
- b,
- a
- }))
- }), (0,external_React_.createElement)(InputWithSlider, {
- min: 0,
- max: 255,
- label: "Green",
- abbreviation: "G",
- value: g,
- onChange: nextG => onChange(w({
- r,
- g: nextG,
- b,
- a
- }))
- }), (0,external_React_.createElement)(InputWithSlider, {
- min: 0,
- max: 255,
- label: "Blue",
- abbreviation: "B",
- value: b,
- onChange: nextB => onChange(w({
- r,
- g,
- b: nextB,
- a
- }))
- }), enableAlpha && (0,external_React_.createElement)(InputWithSlider, {
- min: 0,
- max: 100,
- label: "Alpha",
- abbreviation: "A",
- value: Math.trunc(a * 100),
- onChange: nextA => onChange(w({
- r,
- g,
- b,
- a: nextA / 100
- }))
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputWithSlider, {
+ min: 0,
+ max: 255,
+ label: "Red",
+ abbreviation: "R",
+ value: r,
+ onChange: nextR => onChange(w({
+ r: nextR,
+ g,
+ b,
+ a
+ }))
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputWithSlider, {
+ min: 0,
+ max: 255,
+ label: "Green",
+ abbreviation: "G",
+ value: g,
+ onChange: nextG => onChange(w({
+ r,
+ g: nextG,
+ b,
+ a
+ }))
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputWithSlider, {
+ min: 0,
+ max: 255,
+ label: "Blue",
+ abbreviation: "B",
+ value: b,
+ onChange: nextB => onChange(w({
+ r,
+ g,
+ b: nextB,
+ a
+ }))
+ }), enableAlpha && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputWithSlider, {
+ min: 0,
+ max: 100,
+ label: "Alpha",
+ abbreviation: "A",
+ value: Math.trunc(a * 100),
+ onChange: nextA => onChange(w({
+ r,
+ g,
+ b,
+ a: nextA / 100
+ }))
+ })]
+ });
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/hsl-input.js
-
/**
* External dependencies
*/
@@ -38867,6 +37960,9 @@ const RgbInput = ({
* Internal dependencies
*/
+
+
+
const HslInput = ({
color,
onChange,
@@ -38907,55 +38003,56 @@ const HslInput = ({
}));
}
};
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(InputWithSlider, {
- min: 0,
- max: 359,
- label: "Hue",
- abbreviation: "H",
- value: colorValue.h,
- onChange: nextH => {
- updateHSLAValue({
- h: nextH
- });
- }
- }), (0,external_React_.createElement)(InputWithSlider, {
- min: 0,
- max: 100,
- label: "Saturation",
- abbreviation: "S",
- value: colorValue.s,
- onChange: nextS => {
- updateHSLAValue({
- s: nextS
- });
- }
- }), (0,external_React_.createElement)(InputWithSlider, {
- min: 0,
- max: 100,
- label: "Lightness",
- abbreviation: "L",
- value: colorValue.l,
- onChange: nextL => {
- updateHSLAValue({
- l: nextL
- });
- }
- }), enableAlpha && (0,external_React_.createElement)(InputWithSlider, {
- min: 0,
- max: 100,
- label: "Alpha",
- abbreviation: "A",
- value: Math.trunc(100 * colorValue.a),
- onChange: nextA => {
- updateHSLAValue({
- a: nextA / 100
- });
- }
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputWithSlider, {
+ min: 0,
+ max: 359,
+ label: "Hue",
+ abbreviation: "H",
+ value: colorValue.h,
+ onChange: nextH => {
+ updateHSLAValue({
+ h: nextH
+ });
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputWithSlider, {
+ min: 0,
+ max: 100,
+ label: "Saturation",
+ abbreviation: "S",
+ value: colorValue.s,
+ onChange: nextS => {
+ updateHSLAValue({
+ s: nextS
+ });
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputWithSlider, {
+ min: 0,
+ max: 100,
+ label: "Lightness",
+ abbreviation: "L",
+ value: colorValue.l,
+ onChange: nextL => {
+ updateHSLAValue({
+ l: nextL
+ });
+ }
+ }), enableAlpha && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputWithSlider, {
+ min: 0,
+ max: 100,
+ label: "Alpha",
+ abbreviation: "A",
+ value: Math.trunc(100 * colorValue.a),
+ onChange: nextA => {
+ updateHSLAValue({
+ a: nextA / 100
+ });
+ }
+ })]
+ });
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/hex-input.js
-
/**
* External dependencies
*/
@@ -38974,13 +38071,16 @@ const HslInput = ({
+
const HexInput = ({
color,
onChange,
enableAlpha
}) => {
const handleChange = nextValue => {
- if (!nextValue) return;
+ if (!nextValue) {
+ return;
+ }
const hexValue = nextValue.startsWith('#') ? nextValue : '#' + nextValue;
onChange(w(hexValue));
};
@@ -38997,13 +38097,14 @@ const HexInput = ({
value
};
};
- return (0,external_React_.createElement)(InputControl, {
- prefix: (0,external_React_.createElement)(spacer_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputControl, {
+ prefix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
as: text_component,
marginLeft: space(4),
color: COLORS.theme.accent,
- lineHeight: 1
- }, "#"),
+ lineHeight: 1,
+ children: "#"
+ }),
value: color.toHex().slice(1).toUpperCase(),
onChange: handleChange,
maxLength: enableAlpha ? 9 : 7,
@@ -39016,13 +38117,13 @@ const HexInput = ({
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/color-input.js
-
/**
* Internal dependencies
*/
+
const ColorInput = ({
colorType,
color,
@@ -39036,27 +38137,26 @@ const ColorInput = ({
};
switch (colorType) {
case 'hsl':
- return (0,external_React_.createElement)(HslInput, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HslInput, {
...props
});
case 'rgb':
- return (0,external_React_.createElement)(RgbInput, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RgbInput, {
...props
});
default:
case 'hex':
- return (0,external_React_.createElement)(HexInput, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HexInput, {
...props
});
}
};
;// CONCATENATED MODULE: ./node_modules/react-colorful/dist/index.mjs
-function dist_u(){return(dist_u=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function dist_c(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r.indexOf(t=a[n])>=0||(o[t]=e[t]);return o}function dist_i(e){var t=(0,external_React_.useRef)(e),n=(0,external_React_.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var dist_s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e<r?r:e},dist_f=function(e){return"touches"in e},dist_v=function(e){return e&&e.ownerDocument.defaultView||self},dist_d=function(e,r,t){var n=e.getBoundingClientRect(),o=dist_f(r)?function(e,r){for(var t=0;t<e.length;t++)if(e[t].identifier===r)return e[t];return e[0]}(r.touches,t):r;return{left:dist_s((o.pageX-(n.left+dist_v(e).pageXOffset))/n.width),top:dist_s((o.pageY-(n.top+dist_v(e).pageYOffset))/n.height)}},dist_h=function(e){!dist_f(e)&&e.preventDefault()},dist_m=external_React_.memo(function(o){var a=o.onMove,l=o.onKey,s=dist_c(o,["onMove","onKey"]),m=(0,external_React_.useRef)(null),g=dist_i(a),p=dist_i(l),b=(0,external_React_.useRef)(null),_=(0,external_React_.useRef)(!1),x=(0,external_React_.useMemo)(function(){var e=function(e){dist_h(e),(dist_f(e)?e.touches.length>0:e.buttons>0)&&m.current?g(dist_d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=dist_v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(dist_h(r),!function(e,r){return r&&!dist_f(e)}(r,_.current)&&n)){if(dist_f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(dist_d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]},[p,g]),C=x[0],E=x[1],H=x[2];return (0,external_React_.useEffect)(function(){return H},[H]),external_React_.createElement("div",dist_u({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))}),dist_g=function(e){return e.filter(Boolean).join(" ")},dist_p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=dist_g(["react-colorful__pointer",r.className]);return external_React_.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},external_React_.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},dist_b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},dist_x=function(e){return L(C(e))},C=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?dist_b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?dist_b(parseInt(e.substring(6,8),16)/255,2):1}},dist_E=function(e,r){return void 0===r&&(r="deg"),Number(e)*(_[r]||1)},dist_H=function(e){var r=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?dist_N({h:dist_E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},dist_M=dist_H,dist_N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},dist_w=function(e){return K(dist_I(e))},dist_y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:dist_b(e.h),s:dist_b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:dist_b(o/2),a:dist_b(n,2)}},q=function(e){var r=dist_y(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},dist_k=function(e){var r=dist_y(e);return"hsla("+r.h+", "+r.s+"%, "+r.l+"%, "+r.a+")"},dist_I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:dist_b(255*[n,u,l,l,c,n][i]),g:dist_b(255*[c,n,n,u,l,l][i]),b:dist_b(255*[l,l,c,n,n,u][i]),a:dist_b(o,2)}},dist_O=function(e){var r=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?A({h:dist_E(r[1],r[2]),s:Number(r[3]),v:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},dist_j=dist_O,z=function(e){var r=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},B=z,D=function(e){var r=e.toString(16);return r.length<2?"0"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?D(dist_b(255*o)):"";return"#"+D(r)+D(t)+D(n)+a},L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:dist_b(60*(u<0?u+6:u)),s:dist_b(a?l/a*100:0),v:dist_b(a/255*100),a:o}},A=function(e){return{h:dist_b(e.h),s:dist_b(e.s),v:dist_b(e.v),a:dist_b(e.a,2)}},dist_S=external_React_.memo(function(r){var t=r.hue,n=r.onChange,o=dist_g(["react-colorful__hue",r.className]);return external_React_.createElement("div",{className:o},external_React_.createElement(dist_m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:dist_s(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":dist_b(t),"aria-valuemax":"360","aria-valuemin":"0"},external_React_.createElement(dist_p,{className:"react-colorful__hue-pointer",left:t/360,color:q({h:t,s:100,v:100,a:1})})))}),T=external_React_.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return external_React_.createElement("div",{className:"react-colorful__saturation",style:o},external_React_.createElement(dist_m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:dist_s(t.s+100*e.left,0,100),v:dist_s(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+dist_b(t.s)+"%, Brightness "+dist_b(t.v)+"%"},external_React_.createElement(dist_p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:q(t)})))}),F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},P=function(e,r){return e.replace(/\s/g,"")===r.replace(/\s/g,"")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(C(e),C(r))};function Y(e,t,l){var u=dist_i(l),c=(0,external_React_.useState)(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=(0,external_React_.useRef)({color:t,hsva:s});(0,external_React_.useEffect)(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}},[t,e]),(0,external_React_.useEffect)(function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))},[s,e,u]);var d=(0,external_React_.useCallback)(function(e){f(function(r){return Object.assign({},r,e)})},[]);return[s,d]}var R,dist_V="undefined"!=typeof window?external_React_.useLayoutEffect:external_React_.useEffect,dist_$=function(){return R||( true?__webpack_require__.nc:0)},G=function(e){R=e},J=new Map,Q=function(e){dist_V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=dist_$();n&&t.setAttribute("nonce",n),r.head.appendChild(t)}},[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=dist_c(t,["className","colorModel","color","onChange"]),f=(0,external_React_.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=dist_g(["react-colorful",n]);return external_React_.createElement("div",dist_u({},s,{ref:f,className:m}),external_React_.createElement(T,{hsva:d,onChange:h}),external_React_.createElement(dist_S,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},W={defaultColor:"000",toHsva:dist_x,fromHsva:function(e){return dist_w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return e.createElement(U,dist_u({},r,{colorModel:W}))},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:"linear-gradient(90deg, "+dist_k(Object.assign({},n,{a:0}))+", "+dist_k(Object.assign({},n,{a:1}))+")"},l=dist_g(["react-colorful__alpha",t]),u=dist_b(100*n.a);return external_React_.createElement("div",{className:l},external_React_.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),external_React_.createElement(dist_m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:dist_s(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":u+"%","aria-valuenow":u,"aria-valuemin":"0","aria-valuemax":"100"},external_React_.createElement(dist_p,{className:"react-colorful__alpha-pointer",left:n.a,color:dist_k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=dist_c(t,["className","colorModel","color","onChange"]),f=(0,external_React_.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=dist_g(["react-colorful",n]);return external_React_.createElement("div",dist_u({},s,{ref:f,className:m}),external_React_.createElement(T,{hsva:d,onChange:h}),external_React_.createElement(dist_S,{hue:d.h,onChange:h}),external_React_.createElement(ee,{hsva:d,onChange:h,className:"react-colorful__last-control"}))},te={defaultColor:"0001",toHsva:dist_x,fromHsva:dist_w,equal:X},ne=function(r){return e.createElement(re,dist_u({},r,{colorModel:te}))},oe={defaultColor:{h:0,s:0,l:0,a:1},toHsva:dist_N,fromHsva:dist_y,equal:F},ae=function(r){return e.createElement(re,dist_u({},r,{colorModel:oe}))},le={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:dist_H,fromHsva:dist_k,equal:P},ue=function(r){return e.createElement(re,dist_u({},r,{colorModel:le}))},ce={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return dist_N({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=dist_y(e)).h,s:r.s,l:r.l};var r},equal:F},ie=function(r){return e.createElement(U,dist_u({},r,{colorModel:ce}))},se={defaultColor:"hsl(0, 0%, 0%)",toHsva:dist_M,fromHsva:q,equal:P},fe=function(r){return e.createElement(U,dist_u({},r,{colorModel:se}))},ve={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(e){return e},fromHsva:A,equal:F},de=function(r){return e.createElement(re,dist_u({},r,{colorModel:ve}))},he={defaultColor:"hsva(0, 0%, 0%, 1)",toHsva:dist_O,fromHsva:function(e){var r=A(e);return"hsva("+r.h+", "+r.s+"%, "+r.v+"%, "+r.a+")"},equal:P},me=function(r){return e.createElement(re,dist_u({},r,{colorModel:he}))},ge={defaultColor:{h:0,s:0,v:0},toHsva:function(e){return{h:e.h,s:e.s,v:e.v,a:1}},fromHsva:function(e){var r=A(e);return{h:r.h,s:r.s,v:r.v}},equal:F},pe=function(r){return e.createElement(U,dist_u({},r,{colorModel:ge}))},be={defaultColor:"hsv(0, 0%, 0%)",toHsva:dist_j,fromHsva:function(e){var r=A(e);return"hsv("+r.h+", "+r.s+"%, "+r.v+"%)"},equal:P},_e=function(r){return e.createElement(U,dist_u({},r,{colorModel:be}))},xe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:L,fromHsva:dist_I,equal:F},Ce=function(r){return e.createElement(re,dist_u({},r,{colorModel:xe}))},Ee={defaultColor:"rgba(0, 0, 0, 1)",toHsva:z,fromHsva:function(e){var r=dist_I(e);return"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")"},equal:P},He=function(r){return external_React_.createElement(re,dist_u({},r,{colorModel:Ee}))},Me={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return L({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(r=dist_I(e)).r,g:r.g,b:r.b};var r},equal:F},Ne=function(r){return e.createElement(U,dist_u({},r,{colorModel:Me}))},we={defaultColor:"rgb(0, 0, 0)",toHsva:B,fromHsva:function(e){var r=dist_I(e);return"rgb("+r.r+", "+r.g+", "+r.b+")"},equal:P},ye=function(r){return external_React_.createElement(U,dist_u({},r,{colorModel:we}))},qe=/^#?([0-9A-F]{3,8})$/i,ke=function(r){var t=r.color,l=void 0===t?"":t,s=r.onChange,f=r.onBlur,v=r.escape,d=r.validate,h=r.format,m=r.process,g=dist_c(r,["color","onChange","onBlur","escape","validate","format","process"]),p=o(function(){return v(l)}),b=p[0],_=p[1],x=dist_i(s),C=dist_i(f),E=a(function(e){var r=v(e.target.value);_(r),d(r)&&x(m?m(r):r)},[v,m,d,x]),H=a(function(e){d(e.target.value)||_(v(l)),C(e)},[l,v,d,C]);return n(function(){_(v(l))},[l,v]),e.createElement("input",dist_u({},g,{value:h?h(b):b,spellCheck:"false",onChange:E,onBlur:H}))},Ie=function(e){return"#"+e},Oe=function(r){var t=r.prefixed,n=r.alpha,o=dist_c(r,["prefixed","alpha"]),l=a(function(e){return e.replace(/([^0-9A-F]+)/gi,"").substring(0,n?8:6)},[n]),i=a(function(e){return function(e,r){var t=qe.exec(e),n=t?t[1].length:0;return 3===n||6===n||!!r&&4===n||!!r&&8===n}(e,n)},[n]);return e.createElement(ke,dist_u({},o,{escape:l,format:t?Ie:void 0,process:Ie,validate:i}))};
+function dist_u(){return(dist_u=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function dist_c(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r.indexOf(t=a[n])>=0||(o[t]=e[t]);return o}function dist_i(e){var t=(0,external_React_.useRef)(e),n=(0,external_React_.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var dist_s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e<r?r:e},dist_f=function(e){return"touches"in e},dist_v=function(e){return e&&e.ownerDocument.defaultView||self},dist_d=function(e,r,t){var n=e.getBoundingClientRect(),o=dist_f(r)?function(e,r){for(var t=0;t<e.length;t++)if(e[t].identifier===r)return e[t];return e[0]}(r.touches,t):r;return{left:dist_s((o.pageX-(n.left+dist_v(e).pageXOffset))/n.width),top:dist_s((o.pageY-(n.top+dist_v(e).pageYOffset))/n.height)}},dist_h=function(e){!dist_f(e)&&e.preventDefault()},dist_m=external_React_.memo(function(o){var a=o.onMove,l=o.onKey,s=dist_c(o,["onMove","onKey"]),m=(0,external_React_.useRef)(null),g=dist_i(a),p=dist_i(l),b=(0,external_React_.useRef)(null),_=(0,external_React_.useRef)(!1),x=(0,external_React_.useMemo)(function(){var e=function(e){dist_h(e),(dist_f(e)?e.touches.length>0:e.buttons>0)&&m.current?g(dist_d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=dist_v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(dist_h(r),!function(e,r){return r&&!dist_f(e)}(r,_.current)&&n)){if(dist_f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(dist_d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]},[p,g]),C=x[0],E=x[1],H=x[2];return (0,external_React_.useEffect)(function(){return H},[H]),external_React_.createElement("div",dist_u({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))}),dist_g=function(e){return e.filter(Boolean).join(" ")},dist_p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=dist_g(["react-colorful__pointer",r.className]);return external_React_.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},external_React_.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},dist_b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},dist_x=function(e){return L(C(e))},C=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?dist_b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?dist_b(parseInt(e.substring(6,8),16)/255,2):1}},dist_E=function(e,r){return void 0===r&&(r="deg"),Number(e)*(_[r]||1)},dist_H=function(e){var r=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?dist_N({h:dist_E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},dist_M=dist_H,dist_N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},dist_w=function(e){return K(dist_I(e))},dist_y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:dist_b(e.h),s:dist_b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:dist_b(o/2),a:dist_b(n,2)}},q=function(e){var r=dist_y(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},dist_k=function(e){var r=dist_y(e);return"hsla("+r.h+", "+r.s+"%, "+r.l+"%, "+r.a+")"},dist_I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:dist_b(255*[n,u,l,l,c,n][i]),g:dist_b(255*[c,n,n,u,l,l][i]),b:dist_b(255*[l,l,c,n,n,u][i]),a:dist_b(o,2)}},O=function(e){var r=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?A({h:dist_E(r[1],r[2]),s:Number(r[3]),v:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},dist_j=O,z=function(e){var r=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},B=z,D=function(e){var r=e.toString(16);return r.length<2?"0"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?D(dist_b(255*o)):"";return"#"+D(r)+D(t)+D(n)+a},L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:dist_b(60*(u<0?u+6:u)),s:dist_b(a?l/a*100:0),v:dist_b(a/255*100),a:o}},A=function(e){return{h:dist_b(e.h),s:dist_b(e.s),v:dist_b(e.v),a:dist_b(e.a,2)}},dist_S=external_React_.memo(function(r){var t=r.hue,n=r.onChange,o=dist_g(["react-colorful__hue",r.className]);return external_React_.createElement("div",{className:o},external_React_.createElement(dist_m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:dist_s(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":dist_b(t),"aria-valuemax":"360","aria-valuemin":"0"},external_React_.createElement(dist_p,{className:"react-colorful__hue-pointer",left:t/360,color:q({h:t,s:100,v:100,a:1})})))}),T=external_React_.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return external_React_.createElement("div",{className:"react-colorful__saturation",style:o},external_React_.createElement(dist_m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:dist_s(t.s+100*e.left,0,100),v:dist_s(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+dist_b(t.s)+"%, Brightness "+dist_b(t.v)+"%"},external_React_.createElement(dist_p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:q(t)})))}),F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},P=function(e,r){return e.replace(/\s/g,"")===r.replace(/\s/g,"")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(C(e),C(r))};function Y(e,t,l){var u=dist_i(l),c=(0,external_React_.useState)(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=(0,external_React_.useRef)({color:t,hsva:s});(0,external_React_.useEffect)(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}},[t,e]),(0,external_React_.useEffect)(function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))},[s,e,u]);var d=(0,external_React_.useCallback)(function(e){f(function(r){return Object.assign({},r,e)})},[]);return[s,d]}var R,dist_V="undefined"!=typeof window?external_React_.useLayoutEffect:external_React_.useEffect,dist_$=function(){return R||( true?__webpack_require__.nc:0)},G=function(e){R=e},J=new Map,Q=function(e){dist_V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=dist_$();n&&t.setAttribute("nonce",n),r.head.appendChild(t)}},[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=dist_c(t,["className","colorModel","color","onChange"]),f=(0,external_React_.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=dist_g(["react-colorful",n]);return external_React_.createElement("div",dist_u({},s,{ref:f,className:m}),external_React_.createElement(T,{hsva:d,onChange:h}),external_React_.createElement(dist_S,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},W={defaultColor:"000",toHsva:dist_x,fromHsva:function(e){return dist_w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return e.createElement(U,dist_u({},r,{colorModel:W}))},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:"linear-gradient(90deg, "+dist_k(Object.assign({},n,{a:0}))+", "+dist_k(Object.assign({},n,{a:1}))+")"},l=dist_g(["react-colorful__alpha",t]),u=dist_b(100*n.a);return external_React_.createElement("div",{className:l},external_React_.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),external_React_.createElement(dist_m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:dist_s(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":u+"%","aria-valuenow":u,"aria-valuemin":"0","aria-valuemax":"100"},external_React_.createElement(dist_p,{className:"react-colorful__alpha-pointer",left:n.a,color:dist_k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=dist_c(t,["className","colorModel","color","onChange"]),f=(0,external_React_.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=dist_g(["react-colorful",n]);return external_React_.createElement("div",dist_u({},s,{ref:f,className:m}),external_React_.createElement(T,{hsva:d,onChange:h}),external_React_.createElement(dist_S,{hue:d.h,onChange:h}),external_React_.createElement(ee,{hsva:d,onChange:h,className:"react-colorful__last-control"}))},te={defaultColor:"0001",toHsva:dist_x,fromHsva:dist_w,equal:X},ne=function(r){return e.createElement(re,dist_u({},r,{colorModel:te}))},oe={defaultColor:{h:0,s:0,l:0,a:1},toHsva:dist_N,fromHsva:dist_y,equal:F},ae=function(r){return e.createElement(re,dist_u({},r,{colorModel:oe}))},le={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:dist_H,fromHsva:dist_k,equal:P},ue=function(r){return e.createElement(re,dist_u({},r,{colorModel:le}))},ce={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return dist_N({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=dist_y(e)).h,s:r.s,l:r.l};var r},equal:F},ie=function(r){return e.createElement(U,dist_u({},r,{colorModel:ce}))},se={defaultColor:"hsl(0, 0%, 0%)",toHsva:dist_M,fromHsva:q,equal:P},fe=function(r){return e.createElement(U,dist_u({},r,{colorModel:se}))},ve={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(e){return e},fromHsva:A,equal:F},de=function(r){return e.createElement(re,dist_u({},r,{colorModel:ve}))},he={defaultColor:"hsva(0, 0%, 0%, 1)",toHsva:O,fromHsva:function(e){var r=A(e);return"hsva("+r.h+", "+r.s+"%, "+r.v+"%, "+r.a+")"},equal:P},me=function(r){return e.createElement(re,dist_u({},r,{colorModel:he}))},ge={defaultColor:{h:0,s:0,v:0},toHsva:function(e){return{h:e.h,s:e.s,v:e.v,a:1}},fromHsva:function(e){var r=A(e);return{h:r.h,s:r.s,v:r.v}},equal:F},pe=function(r){return e.createElement(U,dist_u({},r,{colorModel:ge}))},be={defaultColor:"hsv(0, 0%, 0%)",toHsva:dist_j,fromHsva:function(e){var r=A(e);return"hsv("+r.h+", "+r.s+"%, "+r.v+"%)"},equal:P},_e=function(r){return e.createElement(U,dist_u({},r,{colorModel:be}))},xe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:L,fromHsva:dist_I,equal:F},Ce=function(r){return e.createElement(re,dist_u({},r,{colorModel:xe}))},Ee={defaultColor:"rgba(0, 0, 0, 1)",toHsva:z,fromHsva:function(e){var r=dist_I(e);return"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")"},equal:P},He=function(r){return external_React_.createElement(re,dist_u({},r,{colorModel:Ee}))},Me={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return L({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(r=dist_I(e)).r,g:r.g,b:r.b};var r},equal:F},Ne=function(r){return e.createElement(U,dist_u({},r,{colorModel:Me}))},we={defaultColor:"rgb(0, 0, 0)",toHsva:B,fromHsva:function(e){var r=dist_I(e);return"rgb("+r.r+", "+r.g+", "+r.b+")"},equal:P},ye=function(r){return external_React_.createElement(U,dist_u({},r,{colorModel:we}))},qe=/^#?([0-9A-F]{3,8})$/i,ke=function(r){var t=r.color,l=void 0===t?"":t,s=r.onChange,f=r.onBlur,v=r.escape,d=r.validate,h=r.format,m=r.process,g=dist_c(r,["color","onChange","onBlur","escape","validate","format","process"]),p=o(function(){return v(l)}),b=p[0],_=p[1],x=dist_i(s),C=dist_i(f),E=a(function(e){var r=v(e.target.value);_(r),d(r)&&x(m?m(r):r)},[v,m,d,x]),H=a(function(e){d(e.target.value)||_(v(l)),C(e)},[l,v,d,C]);return n(function(){_(v(l))},[l,v]),e.createElement("input",dist_u({},g,{value:h?h(b):b,spellCheck:"false",onChange:E,onBlur:H}))},Ie=function(e){return"#"+e},Oe=function(r){var t=r.prefixed,n=r.alpha,o=dist_c(r,["prefixed","alpha"]),l=a(function(e){return e.replace(/([^0-9A-F]+)/gi,"").substring(0,n?8:6)},[n]),i=a(function(e){return function(e,r){var t=qe.exec(e),n=t?t[1].length:0;return 3===n||6===n||!!r&&4===n||!!r&&8===n}(e,n)},[n]);return e.createElement(ke,dist_u({},o,{escape:l,format:t?Ie:void 0,process:Ie,validate:i}))};
//# sourceMappingURL=index.module.js.map
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/picker.js
-
/**
* External dependencies
*/
@@ -39071,99 +38171,39 @@ function dist_u(){return(dist_u=Object.assign||function(e){for(var r=1;r<argumen
* Internal dependencies
*/
-/**
- * Track the start and the end of drag pointer events related to controlling
- * the picker's saturation / hue / alpha, and fire the corresponding callbacks.
- * This is particularly useful to implement synergies like the one with the
- * `Popover` component, where a pointer events "trap" is rendered while
- * the user is dragging the pointer to avoid potential interference with iframe
- * elements.
- *
- * @param props
- * @param props.containerEl
- * @param props.onDragStart
- * @param props.onDragEnd
- */
-const useOnPickerDrag = ({
- containerEl,
- onDragStart,
- onDragEnd
-}) => {
- const isDragging = (0,external_wp_element_namespaceObject.useRef)(false);
- const leftWhileDragging = (0,external_wp_element_namespaceObject.useRef)(false);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!containerEl || !onDragStart && !onDragEnd) {
- return;
- }
- const interactiveElements = [containerEl.querySelector('.react-colorful__saturation'), containerEl.querySelector('.react-colorful__hue'), containerEl.querySelector('.react-colorful__alpha')].filter(el => !!el);
- if (interactiveElements.length === 0) {
- return;
- }
- const doc = containerEl.ownerDocument;
- const onPointerUp = event => {
- isDragging.current = false;
- leftWhileDragging.current = false;
- onDragEnd?.(event);
- };
- const onPointerDown = event => {
- isDragging.current = true;
- onDragStart?.(event);
- };
- const onPointerLeave = () => {
- leftWhileDragging.current = isDragging.current;
- };
-
- // Try to detect if the user released the pointer while away from the
- // current window. If the check is successfull, the dragEnd callback will
- // called as soon as the pointer re-enters the window (better late than never)
- const onPointerEnter = event => {
- const noPointerButtonsArePressed = event.buttons === 0;
- if (leftWhileDragging.current && noPointerButtonsArePressed) {
- onPointerUp(event);
- }
- };
-
- // The pointerdown event is added on the interactive elements,
- // while the remaining events are added on the document object since
- // the pointer wouldn't necessarily be hovering the initial interactive
- // element at that point.
- interactiveElements.forEach(el => el.addEventListener('pointerdown', onPointerDown));
- doc.addEventListener('pointerup', onPointerUp);
- doc.addEventListener('pointerenter', onPointerEnter);
- doc.addEventListener('pointerleave', onPointerLeave);
- return () => {
- interactiveElements.forEach(el => el.removeEventListener('pointerdown', onPointerDown));
- doc.removeEventListener('pointerup', onPointerUp);
- doc.removeEventListener('pointerenter', onPointerEnter);
- doc.removeEventListener('pointerleave', onPointerUp);
- };
- }, [onDragStart, onDragEnd, containerEl]);
-};
const Picker = ({
color,
enableAlpha,
- onChange,
- onDragStart,
- onDragEnd,
- containerEl
+ onChange
}) => {
const Component = enableAlpha ? He : ye;
const rgbColor = (0,external_wp_element_namespaceObject.useMemo)(() => color.toRgbString(), [color]);
- useOnPickerDrag({
- containerEl,
- onDragStart,
- onDragEnd
- });
- return (0,external_React_.createElement)(Component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
color: rgbColor,
onChange: nextColor => {
onChange(w(nextColor));
}
+ // Pointer capture fortifies drag gestures so that they continue to
+ // work while dragging outside the component over objects like
+ // iframes. If a newer version of react-colorful begins to employ
+ // pointer capture this will be redundant and should be removed.
+ ,
+ onPointerDown: ({
+ currentTarget,
+ pointerId
+ }) => {
+ currentTarget.setPointerCapture(pointerId);
+ },
+ onPointerUp: ({
+ currentTarget,
+ pointerId
+ }) => {
+ currentTarget.releasePointerCapture(pointerId);
+ }
});
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/component.js
-
/**
* External dependencies
*/
@@ -39187,6 +38227,8 @@ const Picker = ({
+
+
k([names]);
const options = [{
label: 'RGB',
@@ -39198,6 +38240,13 @@ const options = [{
label: 'Hex',
value: 'hex'
}];
+
+// `isBorderless` is still experimental and not a public prop for InputControl yet.
+const BORDERLESS_SELECT_CONTROL_CONTEXT = {
+ InputBase: {
+ isBorderless: true
+ }
+};
const UnconnectedColorPicker = (props, forwardedRef) => {
const {
enableAlpha = false,
@@ -39205,15 +38254,8 @@ const UnconnectedColorPicker = (props, forwardedRef) => {
onChange,
defaultValue = '#fff',
copyFormat,
- // Context
- onPickerDragStart,
- onPickerDragEnd,
...divProps
} = useContextSystem(props, 'ColorPicker');
- const [containerEl, setContainerEl] = (0,external_wp_element_namespaceObject.useState)(null);
- const containerRef = node => {
- setContainerEl(node);
- };
// Use a safe default value for the color and remove the possibility of `undefined`.
const [color, setColor] = useControlledValue({
@@ -39229,37 +38271,42 @@ const UnconnectedColorPicker = (props, forwardedRef) => {
debouncedSetColor(nextValue.toHex());
}, [debouncedSetColor]);
const [colorType, setColorType] = (0,external_wp_element_namespaceObject.useState)(copyFormat || 'hex');
- return (0,external_React_.createElement)(ColorfulWrapper, {
- ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([containerRef, forwardedRef]),
- ...divProps
- }, (0,external_React_.createElement)(Picker, {
- containerEl: containerEl,
- onChange: handleChange,
- color: safeColordColor,
- enableAlpha: enableAlpha,
- onDragStart: onPickerDragStart,
- onDragEnd: onPickerDragEnd
- }), (0,external_React_.createElement)(AuxiliaryColorArtefactWrapper, null, (0,external_React_.createElement)(AuxiliaryColorArtefactHStackHeader, {
- justify: "space-between"
- }, (0,external_React_.createElement)(styles_SelectControl, {
- __nextHasNoMarginBottom: true,
- options: options,
- value: colorType,
- onChange: nextColorType => setColorType(nextColorType),
- label: (0,external_wp_i18n_namespaceObject.__)('Color format'),
- hideLabelFromVision: true
- }), (0,external_React_.createElement)(ColorCopyButton, {
- color: safeColordColor,
- colorType: copyFormat || colorType
- })), (0,external_React_.createElement)(ColorInputWrapper, {
- direction: "column",
- gap: 2
- }, (0,external_React_.createElement)(ColorInput, {
- colorType: colorType,
- color: safeColordColor,
- onChange: handleChange,
- enableAlpha: enableAlpha
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ColorfulWrapper, {
+ ref: forwardedRef,
+ ...divProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Picker, {
+ onChange: handleChange,
+ color: safeColordColor,
+ enableAlpha: enableAlpha
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(AuxiliaryColorArtefactWrapper, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(AuxiliaryColorArtefactHStackHeader, {
+ justify: "space-between",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ContextSystemProvider, {
+ value: BORDERLESS_SELECT_CONTROL_CONTEXT,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_SelectControl, {
+ __nextHasNoMarginBottom: true,
+ options: options,
+ value: colorType,
+ onChange: nextColorType => setColorType(nextColorType),
+ label: (0,external_wp_i18n_namespaceObject.__)('Color format'),
+ hideLabelFromVision: true
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorCopyButton, {
+ color: safeColordColor,
+ colorType: copyFormat || colorType
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorInputWrapper, {
+ direction: "column",
+ gap: 2,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorInput, {
+ colorType: colorType,
+ color: safeColordColor,
+ onChange: handleChange,
+ enableAlpha: enableAlpha
+ })
+ })]
+ })]
+ });
};
const ColorPicker = contextConnect(UnconnectedColorPicker, 'ColorPicker');
/* harmony default export */ const color_picker_component = (ColorPicker);
@@ -39284,9 +38331,15 @@ function isLegacyProps(props) {
return typeof props.onChangeComplete !== 'undefined' || typeof props.disableAlpha !== 'undefined' || typeof props.color?.hex === 'string';
}
function getColorFromLegacyProps(color) {
- if (color === undefined) return;
- if (typeof color === 'string') return color;
- if (color.hex) return color.hex;
+ if (color === undefined) {
+ return;
+ }
+ if (typeof color === 'string') {
+ return color;
+ }
+ if (color.hex) {
+ return color.hex;
+ }
return undefined;
}
const transformColorStringToLegacyColor = memize(color => {
@@ -39327,14 +38380,14 @@ function use_deprecated_props_useDeprecatedProps(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/legacy-adapter.js
-
/**
* Internal dependencies
*/
+
const LegacyAdapter = props => {
- return (0,external_React_.createElement)(color_picker_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_picker_component, {
...use_deprecated_props_useDeprecatedProps(props)
});
};
@@ -39352,21 +38405,21 @@ const LegacyAdapter = props => {
const CircularOptionPickerContext = (0,external_wp_element_namespaceObject.createContext)({});
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
-
/**
* WordPress dependencies
*/
-const check = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const check = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
+ })
+});
/* harmony default export */ const library_check = (check);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/circular-option-picker/circular-option-picker-option.js
-
/**
* External dependencies
*/
@@ -39385,12 +38438,14 @@ const check = (0,external_React_.createElement)(external_wp_primitives_namespace
+
+
function UnforwardedOptionAsButton(props, forwardedRef) {
const {
isPressed,
...additionalProps
} = props;
- return (0,external_React_.createElement)(build_module_button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
...additionalProps,
"aria-pressed": isPressed,
ref: forwardedRef
@@ -39408,8 +38463,8 @@ function UnforwardedOptionAsOption(props, forwardedRef) {
if (isSelected && !activeId) {
compositeStore.setActiveId(id);
}
- return (0,external_React_.createElement)(CompositeItem, {
- render: (0,external_React_.createElement)(build_module_button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeItem, {
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
...additionalProps,
role: "option",
"aria-selected": !!isSelected,
@@ -39437,26 +38492,27 @@ function Option({
className: 'components-circular-option-picker__option',
...additionalProps
};
- const optionControl = compositeStore ? (0,external_React_.createElement)(OptionAsOption, {
+ const optionControl = compositeStore ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OptionAsOption, {
...commonProps,
compositeStore: compositeStore,
isSelected: isSelected
- }) : (0,external_React_.createElement)(OptionAsButton, {
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OptionAsButton, {
...commonProps,
isPressed: isSelected
});
- return (0,external_React_.createElement)("div", {
- className: classnames_default()(className, 'components-circular-option-picker__option-wrapper')
- }, tooltipText ? (0,external_React_.createElement)(tooltip, {
- text: tooltipText
- }, optionControl) : optionControl, isSelected && (0,external_React_.createElement)(icons_build_module_icon, {
- icon: library_check,
- ...selectedIconProps
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: dist_clsx(className, 'components-circular-option-picker__option-wrapper'),
+ children: [tooltipText ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
+ text: tooltipText,
+ children: optionControl
+ }) : optionControl, isSelected && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
+ icon: library_check,
+ ...selectedIconProps
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/circular-option-picker/circular-option-picker-option-group.js
-
/**
* External dependencies
*/
@@ -39472,15 +38528,15 @@ function OptionGroup({
...additionalProps
}) {
const role = 'aria-label' in additionalProps || 'aria-labelledby' in additionalProps ? 'group' : undefined;
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...additionalProps,
role: role,
- className: classnames_default()('components-circular-option-picker__option-group', 'components-circular-option-picker__swatches', className)
- }, options);
+ className: dist_clsx('components-circular-option-picker__option-group', 'components-circular-option-picker__swatches', className),
+ children: options
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/circular-option-picker/circular-option-picker-actions.js
-
/**
* External dependencies
*/
@@ -39491,24 +38547,26 @@ function OptionGroup({
*/
+
function DropdownLinkAction({
buttonProps,
className,
dropdownProps,
linkText
}) {
- return (0,external_React_.createElement)(dropdown, {
- className: classnames_default()('components-circular-option-picker__dropdown-link-action', className),
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown, {
+ className: dist_clsx('components-circular-option-picker__dropdown-link-action', className),
renderToggle: ({
isOpen,
onToggle
- }) => (0,external_React_.createElement)(build_module_button, {
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
"aria-expanded": isOpen,
"aria-haspopup": "true",
onClick: onToggle,
variant: "link",
- ...buttonProps
- }, linkText),
+ ...buttonProps,
+ children: linkText
+ }),
...dropdownProps
});
}
@@ -39517,15 +38575,15 @@ function ButtonAction({
children,
...additionalProps
}) {
- return (0,external_React_.createElement)(build_module_button, {
- className: classnames_default()('components-circular-option-picker__clear', className),
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ className: dist_clsx('components-circular-option-picker__clear', className),
variant: "tertiary",
- ...additionalProps
- }, children);
+ ...additionalProps,
+ children: children
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/circular-option-picker/circular-option-picker.js
-
/**
* External dependencies
*/
@@ -39592,6 +38650,7 @@ function ButtonAction({
* ```
*/
+
function ListboxCircularOptionPicker(props) {
const {
actions,
@@ -39610,16 +38669,19 @@ function ListboxCircularOptionPicker(props) {
baseId,
compositeStore
};
- return (0,external_React_.createElement)("div", {
- className: className
- }, (0,external_React_.createElement)(CircularOptionPickerContext.Provider, {
- value: compositeContext
- }, (0,external_React_.createElement)(Composite, {
- ...additionalProps,
- id: baseId,
- store: compositeStore,
- role: 'listbox'
- }, options), children, actions));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: className,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(CircularOptionPickerContext.Provider, {
+ value: compositeContext,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Composite, {
+ ...additionalProps,
+ id: baseId,
+ store: compositeStore,
+ role: "listbox",
+ children: options
+ }), children, actions]
+ })
+ });
}
function ButtonsCircularOptionPicker(props) {
const {
@@ -39629,14 +38691,16 @@ function ButtonsCircularOptionPicker(props) {
baseId,
...additionalProps
} = props;
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...additionalProps,
- id: baseId
- }, (0,external_React_.createElement)(CircularOptionPickerContext.Provider, {
- value: {
- baseId
- }
- }, options, children, actions));
+ id: baseId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(CircularOptionPickerContext.Provider, {
+ value: {
+ baseId
+ },
+ children: [options, children, actions]
+ })
+ });
}
function CircularOptionPicker(props) {
const {
@@ -39649,19 +38713,22 @@ function CircularOptionPicker(props) {
} = props;
const baseId = (0,external_wp_compose_namespaceObject.useInstanceId)(CircularOptionPicker, 'components-circular-option-picker', additionalProps.id);
const OptionPickerImplementation = asButtons ? ButtonsCircularOptionPicker : ListboxCircularOptionPicker;
- const actions = actionsProp ? (0,external_React_.createElement)("div", {
- className: "components-circular-option-picker__custom-clear-wrapper"
- }, actionsProp) : undefined;
- const options = (0,external_React_.createElement)("div", {
- className: 'components-circular-option-picker__swatches'
- }, optionsProp);
- return (0,external_React_.createElement)(OptionPickerImplementation, {
+ const actions = actionsProp ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "components-circular-option-picker__custom-clear-wrapper",
+ children: actionsProp
+ }) : undefined;
+ const options = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "components-circular-option-picker__swatches",
+ children: optionsProp
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OptionPickerImplementation, {
...additionalProps,
baseId: baseId,
- className: classnames_default()('components-circular-option-picker', className),
+ className: dist_clsx('components-circular-option-picker', className),
actions: actions,
- options: options
- }, children);
+ options: options,
+ children: children
+ });
}
CircularOptionPicker.Option = Option;
CircularOptionPicker.OptionGroup = OptionGroup;
@@ -39702,7 +38769,6 @@ function useVStack(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/v-stack/component.js
-
/**
* External dependencies
*/
@@ -39714,9 +38780,10 @@ function useVStack(props) {
+
function UnconnectedVStack(props, forwardedRef) {
const vStackProps = useVStack(props);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
...vStackProps,
ref: forwardedRef
});
@@ -39749,7 +38816,6 @@ const VStack = contextConnect(UnconnectedVStack, 'VStack');
/* harmony default export */ const v_stack_component = (VStack);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/truncate/component.js
-
/**
* External dependencies
*/
@@ -39761,9 +38827,10 @@ const VStack = contextConnect(UnconnectedVStack, 'VStack');
+
function UnconnectedTruncate(props, forwardedRef) {
const truncateProps = useTruncate(props);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
as: "span",
...truncateProps,
ref: forwardedRef
@@ -39833,7 +38900,6 @@ function useHeading(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/heading/component.js
-
/**
* External dependencies
*/
@@ -39845,9 +38911,10 @@ function useHeading(props) {
+
function UnconnectedHeading(props, forwardedRef) {
const headerProps = useHeading(props);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
...headerProps,
ref: forwardedRef
});
@@ -39898,19 +38965,20 @@ const ColorHeading = /*#__PURE__*/emotion_styled_base_browser_esm(heading_compon
const padding = ({
paddingSize = 'small'
}) => {
- if (paddingSize === 'none') return;
+ if (paddingSize === 'none') {
+ return;
+ }
const paddingValues = {
small: space(2),
medium: space(4)
};
return /*#__PURE__*/emotion_react_browser_esm_css("padding:", paddingValues[paddingSize] || paddingValues.small, ";" + ( true ? "" : 0), true ? "" : 0);
};
-const DropdownContentWrapperDiv = emotion_styled_base_browser_esm("div", true ? {
+const DropdownContentWrapperDiv = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "eovvns30"
} : 0)("margin-left:", space(-2), ";margin-right:", space(-2), ";&:first-of-type{margin-top:", space(-2), ";}&:last-of-type{margin-bottom:", space(-2), ";}", padding, ";" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dropdown/dropdown-content-wrapper.js
-
/**
* External dependencies
*/
@@ -39921,12 +38989,13 @@ const DropdownContentWrapperDiv = emotion_styled_base_browser_esm("div", true ?
+
function UnconnectedDropdownContentWrapper(props, forwardedRef) {
const {
paddingSize = 'small',
...derivedProps
} = useContextSystem(props, 'DropdownContentWrapper');
- return (0,external_React_.createElement)(DropdownContentWrapperDiv, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownContentWrapperDiv, {
...derivedProps,
paddingSize: paddingSize,
ref: forwardedRef
@@ -40033,7 +39102,6 @@ const normalizeColorValue = (value, element) => {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-palette/index.js
-
/**
* External dependencies
*/
@@ -40061,6 +39129,8 @@ const normalizeColorValue = (value, element) => {
+
+
k([names, a11y]);
function SinglePalette({
className,
@@ -40077,8 +39147,7 @@ function SinglePalette({
}, index) => {
const colordColor = w(color);
const isSelected = value === color;
- return (0,external_React_.createElement)(build_module_circular_option_picker.Option, {
- key: `${color}-${index}`,
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker.Option, {
isSelected: isSelected,
selectedIconProps: isSelected ? {
fill: colordColor.contrast() > colordColor.contrast('#000') ? '#fff' : '#000'
@@ -40096,10 +39165,10 @@ function SinglePalette({
(0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Color: %s'), name) :
// translators: %s: color hex code e.g: "#f00".
(0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Color code: %s'), color)
- });
+ }, `${color}-${index}`);
});
}, [colors, value, onChange, clearColor]);
- return (0,external_React_.createElement)(build_module_circular_option_picker.OptionGroup, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker.OptionGroup, {
className: className,
options: colorOptions,
...additionalProps
@@ -40117,28 +39186,30 @@ function MultiplePalettes({
if (colors.length === 0) {
return null;
}
- return (0,external_React_.createElement)(v_stack_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(v_stack_component, {
spacing: 3,
- className: className
- }, colors.map(({
- name,
- colors: colorPalette
- }, index) => {
- const id = `${instanceId}-${index}`;
- return (0,external_React_.createElement)(v_stack_component, {
- spacing: 2,
- key: index
- }, (0,external_React_.createElement)(ColorHeading, {
- id: id,
- level: headingLevel
- }, name), (0,external_React_.createElement)(SinglePalette, {
- clearColor: clearColor,
- colors: colorPalette,
- onChange: newColor => onChange(newColor, index),
- value: value,
- "aria-labelledby": id
- }));
- }));
+ className: className,
+ children: colors.map(({
+ name,
+ colors: colorPalette
+ }, index) => {
+ const id = `${instanceId}-${index}`;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
+ spacing: 2,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorHeading, {
+ id: id,
+ level: headingLevel,
+ children: name
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SinglePalette, {
+ clearColor: clearColor,
+ colors: colorPalette,
+ onChange: newColor => onChange(newColor, index),
+ value: value,
+ "aria-labelledby": id
+ })]
+ }, index);
+ })
+ });
}
function CustomColorPickerDropdown({
isRenderedInSidebar,
@@ -40163,7 +39234,7 @@ function CustomColorPickerDropdown({
}),
...receivedPopoverProps
}), [isRenderedInSidebar, receivedPopoverProps]);
- return (0,external_React_.createElement)(dropdown, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown, {
contentClassName: "components-color-palette__custom-color-dropdown-content",
popoverProps: popoverProps,
...props
@@ -40192,13 +39263,14 @@ function UnforwardedColorPalette(props, forwardedRef) {
}, [value]);
const hasMultipleColorOrigins = isMultiplePaletteArray(colors);
const buttonLabelName = (0,external_wp_element_namespaceObject.useMemo)(() => extractColorNameFromCurrentValue(value, colors, hasMultipleColorOrigins), [value, colors, hasMultipleColorOrigins]);
- const renderCustomColorPicker = () => (0,external_React_.createElement)(dropdown_content_wrapper, {
- paddingSize: "none"
- }, (0,external_React_.createElement)(LegacyAdapter, {
- color: normalizedColorValue,
- onChange: color => onChange(color),
- enableAlpha: enableAlpha
- }));
+ const renderCustomColorPicker = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown_content_wrapper, {
+ paddingSize: "none",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LegacyAdapter, {
+ color: normalizedColorValue,
+ onChange: color => onChange(color),
+ enableAlpha: enableAlpha
+ })
+ });
const isHex = value?.startsWith('#');
// Leave hex values as-is. Remove the `var()` wrapper from CSS vars.
@@ -40211,9 +39283,10 @@ function UnforwardedColorPalette(props, forwardedRef) {
onChange,
value
};
- const actions = !!clearable && (0,external_React_.createElement)(build_module_circular_option_picker.ButtonAction, {
- onClick: clearColor
- }, (0,external_wp_i18n_namespaceObject.__)('Clear'));
+ const actions = !!clearable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker.ButtonAction, {
+ onClick: clearColor,
+ children: (0,external_wp_i18n_namespaceObject.__)('Clear')
+ });
let metaProps;
if (asButtons) {
metaProps = {
@@ -40241,54 +39314,59 @@ function UnforwardedColorPalette(props, forwardedRef) {
};
}
}
- return (0,external_React_.createElement)(v_stack_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
spacing: 3,
ref: forwardedRef,
- ...additionalProps
- }, !disableCustomColors && (0,external_React_.createElement)(CustomColorPickerDropdown, {
- isRenderedInSidebar: __experimentalIsRenderedInSidebar,
- renderContent: renderCustomColorPicker,
- renderToggle: ({
- isOpen,
- onToggle
- }) => (0,external_React_.createElement)(v_stack_component, {
- className: "components-color-palette__custom-color-wrapper",
- spacing: 0
- }, (0,external_React_.createElement)("button", {
- ref: customColorPaletteCallbackRef,
- className: "components-color-palette__custom-color-button",
- "aria-expanded": isOpen,
- "aria-haspopup": "true",
- onClick: onToggle,
- "aria-label": customColorAccessibleLabel,
- style: {
- background: value
- },
- type: "button"
- }), (0,external_React_.createElement)(v_stack_component, {
- className: "components-color-palette__custom-color-text-wrapper",
- spacing: 0.5
- }, (0,external_React_.createElement)(truncate_component, {
- className: "components-color-palette__custom-color-name"
- }, value ? buttonLabelName : (0,external_wp_i18n_namespaceObject.__)('No color selected')), (0,external_React_.createElement)(truncate_component, {
- className: classnames_default()('components-color-palette__custom-color-value', {
- 'components-color-palette__custom-color-value--is-hex': isHex
+ ...additionalProps,
+ children: [!disableCustomColors && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomColorPickerDropdown, {
+ isRenderedInSidebar: __experimentalIsRenderedInSidebar,
+ renderContent: renderCustomColorPicker,
+ renderToggle: ({
+ isOpen,
+ onToggle
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
+ className: "components-color-palette__custom-color-wrapper",
+ spacing: 0,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("button", {
+ ref: customColorPaletteCallbackRef,
+ className: "components-color-palette__custom-color-button",
+ "aria-expanded": isOpen,
+ "aria-haspopup": "true",
+ onClick: onToggle,
+ "aria-label": customColorAccessibleLabel,
+ style: {
+ background: value
+ },
+ type: "button"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
+ className: "components-color-palette__custom-color-text-wrapper",
+ spacing: 0.5,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(truncate_component, {
+ className: "components-color-palette__custom-color-name",
+ children: value ? buttonLabelName : (0,external_wp_i18n_namespaceObject.__)('No color selected')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(truncate_component, {
+ className: dist_clsx('components-color-palette__custom-color-value', {
+ 'components-color-palette__custom-color-value--is-hex': isHex
+ }),
+ children: displayValue
+ })]
+ })]
})
- }, displayValue)))
- }), (0,external_React_.createElement)(build_module_circular_option_picker, {
- ...metaProps,
- actions: actions,
- options: hasMultipleColorOrigins ? (0,external_React_.createElement)(MultiplePalettes, {
- ...paletteCommonProps,
- headingLevel: headingLevel,
- colors: colors,
- value: value
- }) : (0,external_React_.createElement)(SinglePalette, {
- ...paletteCommonProps,
- colors: colors,
- value: value
- })
- }));
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker, {
+ ...metaProps,
+ actions: actions,
+ options: hasMultipleColorOrigins ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MultiplePalettes, {
+ ...paletteCommonProps,
+ headingLevel: headingLevel,
+ colors: colors,
+ value: value
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SinglePalette, {
+ ...paletteCommonProps,
+ colors: colors,
+ value: value
+ })
+ })]
+ });
}
/**
@@ -40350,7 +39428,7 @@ const baseUnitLabelStyles = ({
};
return sizes[selectSize];
};
-const UnitLabel = emotion_styled_base_browser_esm("div", true ? {
+const UnitLabel = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "e1bagdl31"
} : 0)("&&&{pointer-events:none;", baseUnitLabelStyles, ";color:", COLORS.gray[900], ";}" + ( true ? "" : 0));
const unitSelectSizes = ({
@@ -40365,7 +39443,7 @@ const unitSelectSizes = ({
};
return sizes[selectSize];
};
-const UnitSelect = emotion_styled_base_browser_esm("select", true ? {
+const UnitSelect = /*#__PURE__*/emotion_styled_base_browser_esm("select", true ? {
target: "e1bagdl30"
} : 0)("&&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;", baseUnitLabelStyles, ";", unitSelectSizes, ";&:not( :disabled ){cursor:pointer;}}" + ( true ? "" : 0));
@@ -40923,7 +40001,6 @@ function useBorderControlDropdown(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-control/border-control-dropdown/component.js
-
/**
* External dependencies
*/
@@ -40949,6 +40026,9 @@ function useBorderControlDropdown(props) {
+
+
+
const getAriaLabelColorValue = colorValue => {
// Leave hex values as-is. Remove the `var()` wrapper from CSS vars.
return colorValue.replace(/^var\((.+)\)$/, '$1');
@@ -41037,56 +40117,68 @@ const BorderControlDropdown = (props, forwardedRef) => {
const dropdownPosition = __experimentalIsRenderedInSidebar ? 'bottom left' : undefined;
const renderToggle = ({
onToggle
- }) => (0,external_React_.createElement)(build_module_button, {
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
onClick: onToggle,
variant: "tertiary",
"aria-label": toggleAriaLabel,
tooltipPosition: dropdownPosition,
label: (0,external_wp_i18n_namespaceObject.__)('Border color and style picker'),
showTooltip: true,
- __next40pxDefaultSize: size === '__unstable-large' ? true : false
- }, (0,external_React_.createElement)("span", {
- className: indicatorWrapperClassName
- }, (0,external_React_.createElement)(color_indicator, {
- className: indicatorClassName,
- colorValue: color
- })));
+ __next40pxDefaultSize: size === '__unstable-large' ? true : false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: indicatorWrapperClassName,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_indicator, {
+ className: indicatorClassName,
+ colorValue: color
+ })
+ })
+ });
const renderContent = ({
onClose
- }) => (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(dropdown_content_wrapper, {
- paddingSize: "medium"
- }, (0,external_React_.createElement)(v_stack_component, {
- className: popoverControlsClassName,
- spacing: 6
- }, showDropdownHeader ? (0,external_React_.createElement)(h_stack_component, null, (0,external_React_.createElement)(StyledLabel, null, (0,external_wp_i18n_namespaceObject.__)('Border color')), (0,external_React_.createElement)(build_module_button, {
- size: "small",
- label: (0,external_wp_i18n_namespaceObject.__)('Close border color'),
- icon: close_small,
- onClick: onClose
- })) : undefined, (0,external_React_.createElement)(color_palette, {
- className: popoverContentClassName,
- value: color,
- onChange: onColorChange,
- colors,
- disableCustomColors,
- __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
- clearable: false,
- enableAlpha: enableAlpha
- }), enableStyle && isStyleSettable && (0,external_React_.createElement)(border_control_style_picker_component, {
- label: (0,external_wp_i18n_namespaceObject.__)('Style'),
- value: style,
- onChange: onStyleChange
- }))), showResetButton && (0,external_React_.createElement)(dropdown_content_wrapper, {
- paddingSize: "none"
- }, (0,external_React_.createElement)(build_module_button, {
- className: resetButtonClassName,
- variant: "tertiary",
- onClick: () => {
- onReset();
- onClose();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Reset'))));
- return (0,external_React_.createElement)(dropdown, {
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown_content_wrapper, {
+ paddingSize: "medium",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
+ className: popoverControlsClassName,
+ spacing: 6,
+ children: [showDropdownHeader ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledLabel, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Border color')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ size: "small",
+ label: (0,external_wp_i18n_namespaceObject.__)('Close border color'),
+ icon: close_small,
+ onClick: onClose
+ })]
+ }) : undefined, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_palette, {
+ className: popoverContentClassName,
+ value: color,
+ onChange: onColorChange,
+ colors,
+ disableCustomColors,
+ __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
+ clearable: false,
+ enableAlpha: enableAlpha
+ }), enableStyle && isStyleSettable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_control_style_picker_component, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Style'),
+ value: style,
+ onChange: onStyleChange
+ })]
+ })
+ }), showResetButton && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown_content_wrapper, {
+ paddingSize: "none",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ className: resetButtonClassName,
+ variant: "tertiary",
+ onClick: () => {
+ onReset();
+ onClose();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Reset')
+ })
+ })]
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown, {
renderToggle: renderToggle,
renderContent: renderContent,
popoverProps: {
@@ -41100,7 +40192,6 @@ const ConnectedBorderControlDropdown = contextConnect(BorderControlDropdown, 'Bo
/* harmony default export */ const border_control_dropdown_component = (ConnectedBorderControlDropdown);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/unit-control/unit-select-control.js
-
/**
* External dependencies
*/
@@ -41116,6 +40207,7 @@ const ConnectedBorderControlDropdown = contextConnect(BorderControlDropdown, 'Bo
+
function UnitSelectControl({
className,
isUnitSelectTabbable: isTabbable = true,
@@ -41126,10 +40218,11 @@ function UnitSelectControl({
...props
}, ref) {
if (!hasUnits(units) || units?.length === 1) {
- return (0,external_React_.createElement)(UnitLabel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(UnitLabel, {
className: "components-unit-control__unit-label",
- selectSize: size
- }, unit);
+ selectSize: size,
+ children: unit
+ });
}
const handleOnChange = event => {
const {
@@ -41141,24 +40234,24 @@ function UnitSelectControl({
data
});
};
- const classes = classnames_default()('components-unit-control__select', className);
- return (0,external_React_.createElement)(UnitSelect, {
+ const classes = dist_clsx('components-unit-control__select', className);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(UnitSelect, {
ref: ref,
className: classes,
onChange: handleOnChange,
selectSize: size,
tabIndex: isTabbable ? undefined : -1,
value: unit,
- ...props
- }, units.map(option => (0,external_React_.createElement)("option", {
- value: option.value,
- key: option.value
- }, option.label)));
+ ...props,
+ children: units.map(option => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("option", {
+ value: option.value,
+ children: option.label
+ }, option.value))
+ });
}
/* harmony default export */ const unit_select_control = ((0,external_wp_element_namespaceObject.forwardRef)(UnitSelectControl));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/unit-control/index.js
-
/**
* External dependencies
*/
@@ -41182,6 +40275,7 @@ function UnitSelectControl({
+
function UnforwardedUnitControl(unitControlProps, forwardedRef) {
const {
__unstableStateReducer,
@@ -41239,7 +40333,7 @@ function UnforwardedUnitControl(unitControlProps, forwardedRef) {
setUnit(parsedUnit);
}
}, [parsedUnit, setUnit]);
- const classes = classnames_default()('components-unit-control',
+ const classes = dist_clsx('components-unit-control',
// This class is added for legacy purposes to maintain it on the outer
// wrapper. See: https://github.com/WordPress/gutenberg/pull/45139
'components-unit-control-wrapper', className);
@@ -41275,11 +40369,13 @@ function UnforwardedUnitControl(unitControlProps, forwardedRef) {
// Unless the meta key was pressed (to avoid interfering with
// shortcuts, e.g. pastes), moves focus to the unit select if a key
// matches the first character of a unit.
- if (!event.metaKey && reFirstCharacterOfUnits.test(event.key)) refInputSuffix.current?.focus();
+ if (!event.metaKey && reFirstCharacterOfUnits.test(event.key)) {
+ refInputSuffix.current?.focus();
+ }
};
}
const refInputSuffix = (0,external_wp_element_namespaceObject.useRef)(null);
- const inputSuffix = !disableUnits ? (0,external_React_.createElement)(unit_select_control, {
+ const inputSuffix = !disableUnits ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(unit_select_control, {
ref: refInputSuffix,
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Select unit'),
disabled: disabled,
@@ -41302,7 +40398,7 @@ function UnforwardedUnitControl(unitControlProps, forwardedRef) {
const activeUnit = units.find(option => option.value === unit);
step = (_activeUnit$step = activeUnit?.step) !== null && _activeUnit$step !== void 0 ? _activeUnit$step : 1;
}
- return (0,external_React_.createElement)(ValueInput, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ValueInput, {
...props,
autoComplete: autoComplete,
className: classes,
@@ -41475,7 +40571,6 @@ function useBorderControl(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-control/border-control/component.js
-
/**
* WordPress dependencies
*/
@@ -41493,6 +40588,8 @@ function useBorderControl(props) {
+
+
const BorderLabel = props => {
const {
label,
@@ -41501,11 +40598,13 @@ const BorderLabel = props => {
if (!label) {
return null;
}
- return hideLabelFromVision ? (0,external_React_.createElement)(visually_hidden_component, {
- as: "legend"
- }, label) : (0,external_React_.createElement)(StyledLabel, {
- as: "legend"
- }, label);
+ return hideLabelFromVision ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
+ as: "legend",
+ children: label
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledLabel, {
+ as: "legend",
+ children: label
+ });
};
const UnconnectedBorderControl = (props, forwardedRef) => {
const {
@@ -41536,54 +40635,56 @@ const UnconnectedBorderControl = (props, forwardedRef) => {
__experimentalIsRenderedInSidebar,
...otherProps
} = useBorderControl(props);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(component, {
as: "fieldset",
...otherProps,
- ref: forwardedRef
- }, (0,external_React_.createElement)(BorderLabel, {
- label: label,
- hideLabelFromVision: hideLabelFromVision
- }), (0,external_React_.createElement)(h_stack_component, {
- spacing: 4,
- className: innerWrapperClassName
- }, (0,external_React_.createElement)(unit_control, {
- prefix: (0,external_React_.createElement)(border_control_dropdown_component, {
- border: border,
- colors: colors,
- __unstablePopoverProps: __unstablePopoverProps,
- disableCustomColors: disableCustomColors,
- enableAlpha: enableAlpha,
- enableStyle: enableStyle,
- isStyleSettable: isStyleSettable,
- onChange: onBorderChange,
- previousStyleSelection: previousStyleSelection,
- showDropdownHeader: showDropdownHeader,
- __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
- size: size
- }),
- label: (0,external_wp_i18n_namespaceObject.__)('Border width'),
- hideLabelFromVision: true,
- min: 0,
- onChange: onWidthChange,
- value: border?.width || '',
- placeholder: placeholder,
- disableUnits: disableUnits,
- __unstableInputWidth: inputWidth,
- size: size
- }), withSlider && (0,external_React_.createElement)(range_control, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Border width'),
- hideLabelFromVision: true,
- className: sliderClassName,
- initialPosition: 0,
- max: 100,
- min: 0,
- onChange: onSliderChange,
- step: ['px', '%'].includes(widthUnit) ? 1 : 0.1,
- value: widthValue || undefined,
- withInputField: false,
- __next40pxDefaultSize: __next40pxDefaultSize
- })));
+ ref: forwardedRef,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BorderLabel, {
+ label: label,
+ hideLabelFromVision: hideLabelFromVision
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
+ spacing: 4,
+ className: innerWrapperClassName,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(unit_control, {
+ prefix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_control_dropdown_component, {
+ border: border,
+ colors: colors,
+ __unstablePopoverProps: __unstablePopoverProps,
+ disableCustomColors: disableCustomColors,
+ enableAlpha: enableAlpha,
+ enableStyle: enableStyle,
+ isStyleSettable: isStyleSettable,
+ onChange: onBorderChange,
+ previousStyleSelection: previousStyleSelection,
+ showDropdownHeader: showDropdownHeader,
+ __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
+ size: size
+ }),
+ label: (0,external_wp_i18n_namespaceObject.__)('Border width'),
+ hideLabelFromVision: true,
+ min: 0,
+ onChange: onWidthChange,
+ value: border?.width || '',
+ placeholder: placeholder,
+ disableUnits: disableUnits,
+ __unstableInputWidth: inputWidth,
+ size: size
+ }), withSlider && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(range_control, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Border width'),
+ hideLabelFromVision: true,
+ className: sliderClassName,
+ initialPosition: 0,
+ max: 100,
+ min: 0,
+ onChange: onSliderChange,
+ step: ['px', '%'].includes(widthUnit) ? 1 : 0.1,
+ value: widthValue || undefined,
+ withInputField: false,
+ __next40pxDefaultSize: __next40pxDefaultSize
+ })]
+ })]
+ });
};
/**
@@ -41744,7 +40845,6 @@ function useGrid(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/grid/component.js
-
/**
* External dependencies
*/
@@ -41756,9 +40856,10 @@ function useGrid(props) {
+
function UnconnectedGrid(props, forwardedRef) {
const gridProps = useGrid(props);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
...gridProps,
ref: forwardedRef
});
@@ -41835,7 +40936,6 @@ function useBorderBoxControlSplitControls(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control-split-controls/component.js
-
/**
* WordPress dependencies
*/
@@ -41851,6 +40951,8 @@ function useBorderBoxControlSplitControls(props) {
+
+
const BorderBoxControlSplitControls = (props, forwardedRef) => {
const {
centeredClassName,
@@ -41889,45 +40991,46 @@ const BorderBoxControlSplitControls = (props, forwardedRef) => {
size
};
const mergedRef = (0,external_wp_compose_namespaceObject.useMergeRefs)([setPopoverAnchor, forwardedRef]);
- return (0,external_React_.createElement)(grid_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(grid_component, {
...otherProps,
ref: mergedRef,
- gap: 4
- }, (0,external_React_.createElement)(border_box_control_visualizer_component, {
- value: value,
- size: size
- }), (0,external_React_.createElement)(border_control_component, {
- className: centeredClassName,
- hideLabelFromVision: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Top border'),
- onChange: newBorder => onChange(newBorder, 'top'),
- __unstablePopoverProps: popoverProps,
- value: value?.top,
- ...sharedBorderControlProps
- }), (0,external_React_.createElement)(border_control_component, {
- hideLabelFromVision: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Left border'),
- onChange: newBorder => onChange(newBorder, 'left'),
- __unstablePopoverProps: popoverProps,
- value: value?.left,
- ...sharedBorderControlProps
- }), (0,external_React_.createElement)(border_control_component, {
- className: rightAlignedClassName,
- hideLabelFromVision: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Right border'),
- onChange: newBorder => onChange(newBorder, 'right'),
- __unstablePopoverProps: popoverProps,
- value: value?.right,
- ...sharedBorderControlProps
- }), (0,external_React_.createElement)(border_control_component, {
- className: centeredClassName,
- hideLabelFromVision: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Bottom border'),
- onChange: newBorder => onChange(newBorder, 'bottom'),
- __unstablePopoverProps: popoverProps,
- value: value?.bottom,
- ...sharedBorderControlProps
- }));
+ gap: 4,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_box_control_visualizer_component, {
+ value: value,
+ size: size
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_control_component, {
+ className: centeredClassName,
+ hideLabelFromVision: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Top border'),
+ onChange: newBorder => onChange(newBorder, 'top'),
+ __unstablePopoverProps: popoverProps,
+ value: value?.top,
+ ...sharedBorderControlProps
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_control_component, {
+ hideLabelFromVision: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Left border'),
+ onChange: newBorder => onChange(newBorder, 'left'),
+ __unstablePopoverProps: popoverProps,
+ value: value?.left,
+ ...sharedBorderControlProps
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_control_component, {
+ className: rightAlignedClassName,
+ hideLabelFromVision: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Right border'),
+ onChange: newBorder => onChange(newBorder, 'right'),
+ __unstablePopoverProps: popoverProps,
+ value: value?.right,
+ ...sharedBorderControlProps
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_control_component, {
+ className: centeredClassName,
+ hideLabelFromVision: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Bottom border'),
+ onChange: newBorder => onChange(newBorder, 'bottom'),
+ __unstablePopoverProps: popoverProps,
+ value: value?.bottom,
+ ...sharedBorderControlProps
+ })]
+ });
};
const ConnectedBorderBoxControlSplitControls = contextConnect(BorderBoxControlSplitControls, 'BorderBoxControlSplitControls');
/* harmony default export */ const border_box_control_split_controls_component = (ConnectedBorderBoxControlSplitControls);
@@ -42233,7 +41336,6 @@ function useBorderBoxControl(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control/component.js
-
/**
* WordPress dependencies
*/
@@ -42252,6 +41354,8 @@ function useBorderBoxControl(props) {
+
+
const component_BorderLabel = props => {
const {
label,
@@ -42260,9 +41364,12 @@ const component_BorderLabel = props => {
if (!label) {
return null;
}
- return hideLabelFromVision ? (0,external_React_.createElement)(visually_hidden_component, {
- as: "label"
- }, label) : (0,external_React_.createElement)(StyledLabel, null, label);
+ return hideLabelFromVision ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
+ as: "label",
+ children: label
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledLabel, {
+ children: label
+ });
};
const UnconnectedBorderBoxControl = (props, forwardedRef) => {
const {
@@ -42302,48 +41409,50 @@ const UnconnectedBorderBoxControl = (props, forwardedRef) => {
shift: true
} : undefined, [popoverPlacement, popoverOffset, popoverAnchor]);
const mergedRef = (0,external_wp_compose_namespaceObject.useMergeRefs)([setPopoverAnchor, forwardedRef]);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(component, {
className: className,
...otherProps,
- ref: mergedRef
- }, (0,external_React_.createElement)(component_BorderLabel, {
- label: label,
- hideLabelFromVision: hideLabelFromVision
- }), (0,external_React_.createElement)(component, {
- className: wrapperClassName
- }, isLinked ? (0,external_React_.createElement)(border_control_component, {
- className: linkedControlClassName,
- colors: colors,
- disableUnits: disableUnits,
- disableCustomColors: disableCustomColors,
- enableAlpha: enableAlpha,
- enableStyle: enableStyle,
- onChange: onLinkedChange,
- placeholder: hasMixedBorders ? (0,external_wp_i18n_namespaceObject.__)('Mixed') : undefined,
- __unstablePopoverProps: popoverProps,
- shouldSanitizeBorder: false // This component will handle that.
- ,
- value: linkedValue,
- withSlider: true,
- width: size === '__unstable-large' ? '116px' : '110px',
- __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
- size: size
- }) : (0,external_React_.createElement)(border_box_control_split_controls_component, {
- colors: colors,
- disableCustomColors: disableCustomColors,
- enableAlpha: enableAlpha,
- enableStyle: enableStyle,
- onChange: onSplitChange,
- popoverPlacement: popoverPlacement,
- popoverOffset: popoverOffset,
- value: splitValue,
- __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
- size: size
- }), (0,external_React_.createElement)(border_box_control_linked_button_component, {
- onClick: toggleLinked,
- isLinked: isLinked,
- size: size
- })));
+ ref: mergedRef,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component_BorderLabel, {
+ label: label,
+ hideLabelFromVision: hideLabelFromVision
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(component, {
+ className: wrapperClassName,
+ children: [isLinked ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_control_component, {
+ className: linkedControlClassName,
+ colors: colors,
+ disableUnits: disableUnits,
+ disableCustomColors: disableCustomColors,
+ enableAlpha: enableAlpha,
+ enableStyle: enableStyle,
+ onChange: onLinkedChange,
+ placeholder: hasMixedBorders ? (0,external_wp_i18n_namespaceObject.__)('Mixed') : undefined,
+ __unstablePopoverProps: popoverProps,
+ shouldSanitizeBorder: false // This component will handle that.
+ ,
+ value: linkedValue,
+ withSlider: true,
+ width: size === '__unstable-large' ? '116px' : '110px',
+ __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
+ size: size
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_box_control_split_controls_component, {
+ colors: colors,
+ disableCustomColors: disableCustomColors,
+ enableAlpha: enableAlpha,
+ enableStyle: enableStyle,
+ onChange: onSplitChange,
+ popoverPlacement: popoverPlacement,
+ popoverOffset: popoverOffset,
+ value: splitValue,
+ __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
+ size: size
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_box_control_linked_button_component, {
+ onClick: toggleLinked,
+ isLinked: isLinked,
+ size: size
+ })]
+ })]
+ });
};
/**
@@ -42405,13 +41514,13 @@ function box_control_icon_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You
* External dependencies
*/
-const box_control_icon_styles_Root = emotion_styled_base_browser_esm("span", true ? {
+const box_control_icon_styles_Root = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "e1j5nr4z8"
} : 0)( true ? {
name: "1w884gc",
styles: "box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"
} : 0);
-const Viewbox = emotion_styled_base_browser_esm("span", true ? {
+const Viewbox = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "e1j5nr4z7"
} : 0)( true ? {
name: "i6vjox",
@@ -42425,7 +41534,7 @@ const strokeFocus = ({
opacity: isFocused ? 1 : 0.3
}, true ? "" : 0, true ? "" : 0);
};
-const Stroke = emotion_styled_base_browser_esm("span", true ? {
+const Stroke = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "e1j5nr4z6"
} : 0)("box-sizing:border-box;display:block;pointer-events:none;position:absolute;", strokeFocus, ";" + ( true ? "" : 0));
const VerticalStroke = /*#__PURE__*/emotion_styled_base_browser_esm(Stroke, true ? {
@@ -42466,12 +41575,13 @@ const LeftStroke = /*#__PURE__*/emotion_styled_base_browser_esm(VerticalStroke,
} : 0);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/icon.js
-
/**
* Internal dependencies
*/
+
+
const BASE_ICON_SIZE = 24;
function BoxControlIcon({
size = 24,
@@ -42493,20 +41603,23 @@ function BoxControlIcon({
// Simulates SVG Icon scaling.
const scale = size / BASE_ICON_SIZE;
- return (0,external_React_.createElement)(box_control_icon_styles_Root, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(box_control_icon_styles_Root, {
style: {
transform: `scale(${scale})`
},
- ...props
- }, (0,external_React_.createElement)(Viewbox, null, (0,external_React_.createElement)(TopStroke, {
- isFocused: top
- }), (0,external_React_.createElement)(RightStroke, {
- isFocused: right
- }), (0,external_React_.createElement)(BottomStroke, {
- isFocused: bottom
- }), (0,external_React_.createElement)(LeftStroke, {
- isFocused: left
- })));
+ ...props,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Viewbox, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TopStroke, {
+ isFocused: top
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RightStroke, {
+ isFocused: right
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BottomStroke, {
+ isFocused: bottom
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LeftStroke, {
+ isFocused: left
+ })]
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/styles/box-control-styles.js
@@ -42543,7 +41656,7 @@ const ResetButton = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_bu
name: "tkya7b",
styles: "grid-area:1/2;justify-self:end"
} : 0);
-const LinkedButtonWrapper = emotion_styled_base_browser_esm("div", true ? {
+const LinkedButtonWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "e1jovhle2"
} : 0)( true ? {
name: "1dfa8al",
@@ -42870,7 +41983,6 @@ function applyValueToSides(currentValues, newValue, sides) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/all-input-control.js
-
/**
* WordPress dependencies
*/
@@ -42883,6 +41995,8 @@ function applyValueToSides(currentValues, newValue, sides) {
+
+
const all_input_control_noop = () => {};
function AllInputControl({
__next40pxDefaultSize,
@@ -42922,37 +42036,38 @@ function AllInputControl({
const newUnits = applyValueToSides(selectedUnits, unit, sides);
setSelectedUnits(newUnits);
};
- return (0,external_React_.createElement)(h_stack_component, null, (0,external_React_.createElement)(StyledUnitControl, {
- ...props,
- __next40pxDefaultSize: __next40pxDefaultSize,
- className: "component-box-control__unit-control",
- disableUnits: isMixed,
- id: inputId,
- isPressEnterToChange: true,
- value: allValue,
- onChange: onValueChange,
- onUnitChange: handleOnUnitChange,
- onFocus: handleOnFocus,
- placeholder: allPlaceholder,
- label: LABELS.all,
- hideLabelFromVision: true
- }), (0,external_React_.createElement)(FlexedRangeControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: __next40pxDefaultSize,
- "aria-controls": inputId,
- label: LABELS.all,
- hideLabelFromVision: true,
- onChange: sliderOnChange,
- min: 0,
- max: (_CUSTOM_VALUE_SETTING = CUSTOM_VALUE_SETTINGS[parsedUnit !== null && parsedUnit !== void 0 ? parsedUnit : 'px']?.max) !== null && _CUSTOM_VALUE_SETTING !== void 0 ? _CUSTOM_VALUE_SETTING : 10,
- step: (_CUSTOM_VALUE_SETTING2 = CUSTOM_VALUE_SETTINGS[parsedUnit !== null && parsedUnit !== void 0 ? parsedUnit : 'px']?.step) !== null && _CUSTOM_VALUE_SETTING2 !== void 0 ? _CUSTOM_VALUE_SETTING2 : 0.1,
- value: parsedQuantity !== null && parsedQuantity !== void 0 ? parsedQuantity : 0,
- withInputField: false
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledUnitControl, {
+ ...props,
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ className: "component-box-control__unit-control",
+ disableUnits: isMixed,
+ id: inputId,
+ isPressEnterToChange: true,
+ value: allValue,
+ onChange: onValueChange,
+ onUnitChange: handleOnUnitChange,
+ onFocus: handleOnFocus,
+ placeholder: allPlaceholder,
+ label: LABELS.all,
+ hideLabelFromVision: true
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexedRangeControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ "aria-controls": inputId,
+ label: LABELS.all,
+ hideLabelFromVision: true,
+ onChange: sliderOnChange,
+ min: 0,
+ max: (_CUSTOM_VALUE_SETTING = CUSTOM_VALUE_SETTINGS[parsedUnit !== null && parsedUnit !== void 0 ? parsedUnit : 'px']?.max) !== null && _CUSTOM_VALUE_SETTING !== void 0 ? _CUSTOM_VALUE_SETTING : 10,
+ step: (_CUSTOM_VALUE_SETTING2 = CUSTOM_VALUE_SETTINGS[parsedUnit !== null && parsedUnit !== void 0 ? parsedUnit : 'px']?.step) !== null && _CUSTOM_VALUE_SETTING2 !== void 0 ? _CUSTOM_VALUE_SETTING2 : 0.1,
+ value: parsedQuantity !== null && parsedQuantity !== void 0 ? parsedQuantity : 0,
+ withInputField: false
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/input-controls.js
-
/**
* WordPress dependencies
*/
@@ -42964,6 +42079,9 @@ function AllInputControl({
+
+
+
const input_controls_noop = () => {};
function BoxInputControls({
__next40pxDefaultSize,
@@ -43027,52 +42145,54 @@ function BoxInputControls({
// Filter sides if custom configuration provided, maintaining default order.
const filteredSides = sides?.length ? ALL_SIDES.filter(side => sides.includes(side)) : ALL_SIDES;
- return (0,external_React_.createElement)(external_React_.Fragment, null, filteredSides.map(side => {
- var _CUSTOM_VALUE_SETTING, _CUSTOM_VALUE_SETTING2;
- const [parsedQuantity, parsedUnit] = parseQuantityAndUnitFromRawValue(values[side]);
- const computedUnit = values[side] ? parsedUnit : selectedUnits[side];
- const inputId = [generatedId, side].join('-');
- return (0,external_React_.createElement)(InputWrapper, {
- key: `box-control-${side}`,
- expanded: true
- }, (0,external_React_.createElement)(FlexedBoxControlIcon, {
- side: side,
- sides: sides
- }), (0,external_React_.createElement)(tooltip, {
- placement: "top-end",
- text: LABELS[side]
- }, (0,external_React_.createElement)(StyledUnitControl, {
- ...props,
- __next40pxDefaultSize: __next40pxDefaultSize,
- className: "component-box-control__unit-control",
- id: inputId,
- isPressEnterToChange: true,
- value: [parsedQuantity, computedUnit].join(''),
- onChange: (nextValue, extra) => handleOnValueChange(side, nextValue, extra),
- onUnitChange: createHandleOnUnitChange(side),
- onFocus: createHandleOnFocus(side),
- label: LABELS[side],
- hideLabelFromVision: true
- })), (0,external_React_.createElement)(FlexedRangeControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: __next40pxDefaultSize,
- "aria-controls": inputId,
- label: LABELS[side],
- hideLabelFromVision: true,
- onChange: newValue => {
- handleOnValueChange(side, newValue !== undefined ? [newValue, computedUnit].join('') : undefined);
- },
- min: 0,
- max: (_CUSTOM_VALUE_SETTING = CUSTOM_VALUE_SETTINGS[computedUnit !== null && computedUnit !== void 0 ? computedUnit : 'px']?.max) !== null && _CUSTOM_VALUE_SETTING !== void 0 ? _CUSTOM_VALUE_SETTING : 10,
- step: (_CUSTOM_VALUE_SETTING2 = CUSTOM_VALUE_SETTINGS[computedUnit !== null && computedUnit !== void 0 ? computedUnit : 'px']?.step) !== null && _CUSTOM_VALUE_SETTING2 !== void 0 ? _CUSTOM_VALUE_SETTING2 : 0.1,
- value: parsedQuantity !== null && parsedQuantity !== void 0 ? parsedQuantity : 0,
- withInputField: false
- }));
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: filteredSides.map(side => {
+ var _CUSTOM_VALUE_SETTING, _CUSTOM_VALUE_SETTING2;
+ const [parsedQuantity, parsedUnit] = parseQuantityAndUnitFromRawValue(values[side]);
+ const computedUnit = values[side] ? parsedUnit : selectedUnits[side];
+ const inputId = [generatedId, side].join('-');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(InputWrapper, {
+ expanded: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexedBoxControlIcon, {
+ side: side,
+ sides: sides
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
+ placement: "top-end",
+ text: LABELS[side],
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledUnitControl, {
+ ...props,
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ className: "component-box-control__unit-control",
+ id: inputId,
+ isPressEnterToChange: true,
+ value: [parsedQuantity, computedUnit].join(''),
+ onChange: (nextValue, extra) => handleOnValueChange(side, nextValue, extra),
+ onUnitChange: createHandleOnUnitChange(side),
+ onFocus: createHandleOnFocus(side),
+ label: LABELS[side],
+ hideLabelFromVision: true
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexedRangeControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ "aria-controls": inputId,
+ label: LABELS[side],
+ hideLabelFromVision: true,
+ onChange: newValue => {
+ handleOnValueChange(side, newValue !== undefined ? [newValue, computedUnit].join('') : undefined);
+ },
+ min: 0,
+ max: (_CUSTOM_VALUE_SETTING = CUSTOM_VALUE_SETTINGS[computedUnit !== null && computedUnit !== void 0 ? computedUnit : 'px']?.max) !== null && _CUSTOM_VALUE_SETTING !== void 0 ? _CUSTOM_VALUE_SETTING : 10,
+ step: (_CUSTOM_VALUE_SETTING2 = CUSTOM_VALUE_SETTINGS[computedUnit !== null && computedUnit !== void 0 ? computedUnit : 'px']?.step) !== null && _CUSTOM_VALUE_SETTING2 !== void 0 ? _CUSTOM_VALUE_SETTING2 : 0.1,
+ value: parsedQuantity !== null && parsedQuantity !== void 0 ? parsedQuantity : 0,
+ withInputField: false
+ })]
+ }, `box-control-${side}`);
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/axial-input-controls.js
-
/**
* WordPress dependencies
*/
@@ -43084,6 +42204,10 @@ function BoxInputControls({
+
+
+
+
const groupedSides = ['vertical', 'horizontal'];
function AxialInputControls({
__next40pxDefaultSize,
@@ -43140,50 +42264,52 @@ function AxialInputControls({
// Filter sides if custom configuration provided, maintaining default order.
const filteredSides = sides?.length ? groupedSides.filter(side => sides.includes(side)) : groupedSides;
- return (0,external_React_.createElement)(external_React_.Fragment, null, filteredSides.map(side => {
- var _CUSTOM_VALUE_SETTING, _CUSTOM_VALUE_SETTING2;
- const [parsedQuantity, parsedUnit] = parseQuantityAndUnitFromRawValue(side === 'vertical' ? values.top : values.left);
- const selectedUnit = side === 'vertical' ? selectedUnits.top : selectedUnits.left;
- const inputId = [generatedId, side].join('-');
- return (0,external_React_.createElement)(InputWrapper, {
- key: side
- }, (0,external_React_.createElement)(FlexedBoxControlIcon, {
- side: side,
- sides: sides
- }), (0,external_React_.createElement)(tooltip, {
- placement: "top-end",
- text: LABELS[side]
- }, (0,external_React_.createElement)(StyledUnitControl, {
- ...props,
- __next40pxDefaultSize: __next40pxDefaultSize,
- className: "component-box-control__unit-control",
- id: inputId,
- isPressEnterToChange: true,
- value: [parsedQuantity, selectedUnit !== null && selectedUnit !== void 0 ? selectedUnit : parsedUnit].join(''),
- onChange: newValue => handleOnValueChange(side, newValue),
- onUnitChange: createHandleOnUnitChange(side),
- onFocus: createHandleOnFocus(side),
- label: LABELS[side],
- hideLabelFromVision: true,
- key: side
- })), (0,external_React_.createElement)(FlexedRangeControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: __next40pxDefaultSize,
- "aria-controls": inputId,
- label: LABELS[side],
- hideLabelFromVision: true,
- onChange: newValue => handleOnValueChange(side, newValue !== undefined ? [newValue, selectedUnit !== null && selectedUnit !== void 0 ? selectedUnit : parsedUnit].join('') : undefined),
- min: 0,
- max: (_CUSTOM_VALUE_SETTING = CUSTOM_VALUE_SETTINGS[selectedUnit !== null && selectedUnit !== void 0 ? selectedUnit : 'px']?.max) !== null && _CUSTOM_VALUE_SETTING !== void 0 ? _CUSTOM_VALUE_SETTING : 10,
- step: (_CUSTOM_VALUE_SETTING2 = CUSTOM_VALUE_SETTINGS[selectedUnit !== null && selectedUnit !== void 0 ? selectedUnit : 'px']?.step) !== null && _CUSTOM_VALUE_SETTING2 !== void 0 ? _CUSTOM_VALUE_SETTING2 : 0.1,
- value: parsedQuantity !== null && parsedQuantity !== void 0 ? parsedQuantity : 0,
- withInputField: false
- }));
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: filteredSides.map(side => {
+ var _CUSTOM_VALUE_SETTING, _CUSTOM_VALUE_SETTING2;
+ const [parsedQuantity, parsedUnit] = parseQuantityAndUnitFromRawValue(side === 'vertical' ? values.top : values.left);
+ const selectedUnit = side === 'vertical' ? selectedUnits.top : selectedUnits.left;
+ const inputId = [generatedId, side].join('-');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(InputWrapper, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexedBoxControlIcon, {
+ side: side,
+ sides: sides
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
+ placement: "top-end",
+ text: LABELS[side],
+ children: /*#__PURE__*/(0,external_React_.createElement)(StyledUnitControl, {
+ ...props,
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ className: "component-box-control__unit-control",
+ id: inputId,
+ isPressEnterToChange: true,
+ value: [parsedQuantity, selectedUnit !== null && selectedUnit !== void 0 ? selectedUnit : parsedUnit].join(''),
+ onChange: newValue => handleOnValueChange(side, newValue),
+ onUnitChange: createHandleOnUnitChange(side),
+ onFocus: createHandleOnFocus(side),
+ label: LABELS[side],
+ hideLabelFromVision: true,
+ key: side
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexedRangeControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ "aria-controls": inputId,
+ label: LABELS[side],
+ hideLabelFromVision: true,
+ onChange: newValue => handleOnValueChange(side, newValue !== undefined ? [newValue, selectedUnit !== null && selectedUnit !== void 0 ? selectedUnit : parsedUnit].join('') : undefined),
+ min: 0,
+ max: (_CUSTOM_VALUE_SETTING = CUSTOM_VALUE_SETTINGS[selectedUnit !== null && selectedUnit !== void 0 ? selectedUnit : 'px']?.max) !== null && _CUSTOM_VALUE_SETTING !== void 0 ? _CUSTOM_VALUE_SETTING : 10,
+ step: (_CUSTOM_VALUE_SETTING2 = CUSTOM_VALUE_SETTINGS[selectedUnit !== null && selectedUnit !== void 0 ? selectedUnit : 'px']?.step) !== null && _CUSTOM_VALUE_SETTING2 !== void 0 ? _CUSTOM_VALUE_SETTING2 : 0.1,
+ value: parsedQuantity !== null && parsedQuantity !== void 0 ? parsedQuantity : 0,
+ withInputField: false
+ })]
+ }, side);
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/linked-button.js
-
/**
* WordPress dependencies
*/
@@ -43195,25 +42321,26 @@ function AxialInputControls({
*/
+
function LinkedButton({
isLinked,
...props
}) {
const label = isLinked ? (0,external_wp_i18n_namespaceObject.__)('Unlink sides') : (0,external_wp_i18n_namespaceObject.__)('Link sides');
- return (0,external_React_.createElement)(tooltip, {
- text: label
- }, (0,external_React_.createElement)(build_module_button, {
- ...props,
- className: "component-box-control__linked-button",
- size: "small",
- icon: isLinked ? library_link : link_off,
- iconSize: 24,
- "aria-label": label
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
+ text: label,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ ...props,
+ className: "component-box-control__linked-button",
+ size: "small",
+ icon: isLinked ? library_link : link_off,
+ iconSize: 24,
+ "aria-label": label
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/index.js
-
/**
* WordPress dependencies
*/
@@ -43234,6 +42361,8 @@ function LinkedButton({
+
+
const defaultInputProps = {
min: 0
};
@@ -43338,39 +42467,45 @@ function BoxControl({
onMouseOut,
__next40pxDefaultSize
};
- return (0,external_React_.createElement)(grid_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(grid_component, {
id: id,
columns: 3,
templateColumns: "1fr min-content min-content",
role: "group",
- "aria-labelledby": headingId
- }, (0,external_React_.createElement)(BaseControl.VisualLabel, {
- id: headingId
- }, label), isLinked && (0,external_React_.createElement)(InputWrapper, null, (0,external_React_.createElement)(FlexedBoxControlIcon, {
- side: side,
- sides: sides
- }), (0,external_React_.createElement)(AllInputControl, {
- ...inputControlProps
- })), !hasOneSide && (0,external_React_.createElement)(LinkedButtonWrapper, null, (0,external_React_.createElement)(LinkedButton, {
- onClick: toggleLinked,
- isLinked: isLinked
- })), !isLinked && splitOnAxis && (0,external_React_.createElement)(AxialInputControls, {
- ...inputControlProps
- }), !isLinked && !splitOnAxis && (0,external_React_.createElement)(BoxInputControls, {
- ...inputControlProps
- }), allowReset && (0,external_React_.createElement)(ResetButton, {
- className: "component-box-control__reset-button",
- variant: "secondary",
- size: "small",
- onClick: handleOnReset,
- disabled: !isDirty
- }, (0,external_wp_i18n_namespaceObject.__)('Reset')));
+ "aria-labelledby": headingId,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BaseControl.VisualLabel, {
+ id: headingId,
+ children: label
+ }), isLinked && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(InputWrapper, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexedBoxControlIcon, {
+ side: side,
+ sides: sides
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AllInputControl, {
+ ...inputControlProps
+ })]
+ }), !hasOneSide && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LinkedButtonWrapper, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LinkedButton, {
+ onClick: toggleLinked,
+ isLinked: isLinked
+ })
+ }), !isLinked && splitOnAxis && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AxialInputControls, {
+ ...inputControlProps
+ }), !isLinked && !splitOnAxis && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BoxInputControls, {
+ ...inputControlProps
+ }), allowReset && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResetButton, {
+ className: "component-box-control__reset-button",
+ variant: "secondary",
+ size: "small",
+ onClick: handleOnReset,
+ disabled: !isDirty,
+ children: (0,external_wp_i18n_namespaceObject.__)('Reset')
+ })]
+ });
}
/* harmony default export */ const box_control = (BoxControl);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/button-group/index.js
-
/**
* External dependencies
*/
@@ -43389,8 +42524,8 @@ function UnforwardedButtonGroup(props, ref) {
className,
...restProps
} = props;
- const classes = classnames_default()('components-button-group', className);
- return (0,external_React_.createElement)("div", {
+ const classes = dist_clsx('components-button-group', className);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
ref: ref,
role: "group",
className: classes,
@@ -43483,9 +42618,8 @@ function useElevation(props) {
opacity: config_values.elevationIntensity,
left: offset,
right: offset,
- top: offset,
- transition
- }, reduceMotion('transition'), true ? "" : 0, true ? "" : 0);
+ top: offset
+ }, /*#__PURE__*/emotion_react_browser_esm_css("@media not ( prefers-reduced-motion ){transition:", transition, ";}" + ( true ? "" : 0), true ? "" : 0), true ? "" : 0, true ? "" : 0);
if (isValueDefined(hoverValue)) {
sx.hover = /*#__PURE__*/emotion_react_browser_esm_css("*:hover>&{box-shadow:", getBoxShadow(hoverValue), ";}" + ( true ? "" : 0), true ? "" : 0);
}
@@ -43505,7 +42639,6 @@ function useElevation(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/elevation/component.js
-
/**
* External dependencies
*/
@@ -43517,9 +42650,10 @@ function useElevation(props) {
+
function UnconnectedElevation(props, forwardedRef) {
const elevationProps = useElevation(props);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
...elevationProps,
ref: forwardedRef
});
@@ -43789,7 +42923,6 @@ function useCard(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/card/component.js
-
/**
* External dependencies
*/
@@ -43810,6 +42943,8 @@ function useCard(props) {
+
+
function UnconnectedCard(props, forwardedRef) {
const {
children,
@@ -43835,22 +42970,25 @@ function UnconnectedCard(props, forwardedRef) {
CardFooter: contextProps
};
}, [isBorderless, size]);
- return (0,external_React_.createElement)(ContextSystemProvider, {
- value: contextProviderValue
- }, (0,external_React_.createElement)(component, {
- ...otherProps,
- ref: forwardedRef
- }, (0,external_React_.createElement)(component, {
- className: cx(Content)
- }, children), (0,external_React_.createElement)(elevation_component, {
- className: elevationClassName,
- isInteractive: false,
- value: elevation ? 1 : 0
- }), (0,external_React_.createElement)(elevation_component, {
- className: elevationClassName,
- isInteractive: false,
- value: elevation
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ContextSystemProvider, {
+ value: contextProviderValue,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(component, {
+ ...otherProps,
+ ref: forwardedRef,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
+ className: cx(Content),
+ children: children
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(elevation_component, {
+ className: elevationClassName,
+ isInteractive: false,
+ value: elevation ? 1 : 0
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(elevation_component, {
+ className: elevationClassName,
+ isInteractive: false,
+ value: elevation
+ })]
+ })
+ });
}
/**
@@ -43954,7 +43092,6 @@ function useScrollable(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/scrollable/component.js
-
/**
* External dependencies
*/
@@ -43966,9 +43103,10 @@ function useScrollable(props) {
+
function UnconnectedScrollable(props, forwardedRef) {
const scrollableProps = useScrollable(props);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
...scrollableProps,
ref: forwardedRef
});
@@ -44025,7 +43163,6 @@ function useCardBody(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/card-body/component.js
-
/**
* External dependencies
*/
@@ -44038,18 +43175,19 @@ function useCardBody(props) {
+
function UnconnectedCardBody(props, forwardedRef) {
const {
isScrollable,
...otherProps
} = useCardBody(props);
if (isScrollable) {
- return (0,external_React_.createElement)(scrollable_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(scrollable_component, {
...otherProps,
ref: forwardedRef
});
}
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
...otherProps,
ref: forwardedRef
});
@@ -44155,23 +43293,28 @@ const renderSize = ({
height: orientation === 'vertical' ? 'auto' : 0,
width: orientation === 'vertical' ? 0 : 'auto'
}, true ? "" : 0, true ? "" : 0);
-const DividerView = emotion_styled_base_browser_esm("hr", true ? {
+const DividerView = /*#__PURE__*/emotion_styled_base_browser_esm("hr", true ? {
target: "e19on6iw0"
} : 0)("border:0;margin:0;", renderDisplay, " ", renderBorder, " ", renderSize, " ", renderMargin, ";" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/divider/component.js
-
/**
* External dependencies
*/
// eslint-disable-next-line no-restricted-imports
+/**
+ * Internal dependencies
+ */
+
+
+
function UnconnectedDivider(props, forwardedRef) {
const contextProps = useContextSystem(props, 'Divider');
- return (0,external_React_.createElement)(Separator, {
- render: (0,external_React_.createElement)(DividerView, null),
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Separator, {
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DividerView, {}),
...contextProps,
ref: forwardedRef
});
@@ -44230,7 +43373,6 @@ function useCardDivider(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/card-divider/component.js
-
/**
* External dependencies
*/
@@ -44242,9 +43384,10 @@ function useCardDivider(props) {
+
function UnconnectedCardDivider(props, forwardedRef) {
const dividerProps = useCardDivider(props);
- return (0,external_React_.createElement)(divider_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(divider_component, {
...dividerProps,
ref: forwardedRef
});
@@ -44301,7 +43444,6 @@ function useCardFooter(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/card-footer/component.js
-
/**
* External dependencies
*/
@@ -44313,9 +43455,10 @@ function useCardFooter(props) {
+
function UnconnectedCardFooter(props, forwardedRef) {
const footerProps = useCardFooter(props);
- return (0,external_React_.createElement)(flex_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_component, {
...footerProps,
ref: forwardedRef
});
@@ -44368,7 +43511,6 @@ function useCardHeader(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/card-header/component.js
-
/**
* External dependencies
*/
@@ -44380,9 +43522,10 @@ function useCardHeader(props) {
+
function UnconnectedCardHeader(props, forwardedRef) {
const headerProps = useCardHeader(props);
- return (0,external_React_.createElement)(flex_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_component, {
...headerProps,
ref: forwardedRef
});
@@ -44432,7 +43575,6 @@ function useCardMedia(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/card-media/component.js
-
/**
* External dependencies
*/
@@ -44444,9 +43586,10 @@ function useCardMedia(props) {
+
function UnconnectedCardMedia(props, forwardedRef) {
const cardMediaProps = useCardMedia(props);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
...cardMediaProps,
ref: forwardedRef
});
@@ -44474,7 +43617,6 @@ const CardMedia = contextConnect(UnconnectedCardMedia, 'CardMedia');
/* harmony default export */ const card_media_component = (CardMedia);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/checkbox-control/index.js
-
/**
* External dependencies
*/
@@ -44491,6 +43633,9 @@ const CardMedia = contextConnect(UnconnectedCardMedia, 'CardMedia');
* Internal dependencies
*/
+
+
+
/**
* Checkboxes allow the user to select one or more items from a set.
*
@@ -44547,41 +43692,51 @@ function CheckboxControl(props) {
}, [checked, indeterminate]);
const id = (0,external_wp_compose_namespaceObject.useInstanceId)(CheckboxControl, 'inspector-checkbox-control', idProp);
const onChangeValue = event => onChange(event.target.checked);
- return (0,external_React_.createElement)(base_control, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
__nextHasNoMarginBottom: __nextHasNoMarginBottom,
label: heading,
id: id,
- help: help,
- className: classnames_default()('components-checkbox-control', className)
- }, (0,external_React_.createElement)("span", {
- className: "components-checkbox-control__input-container"
- }, (0,external_React_.createElement)("input", {
- ref: ref,
- id: id,
- className: "components-checkbox-control__input",
- type: "checkbox",
- value: "1",
- onChange: onChangeValue,
- checked: checked,
- "aria-describedby": !!help ? id + '__help' : undefined,
- ...additionalProps
- }), showIndeterminateIcon ? (0,external_React_.createElement)(icons_build_module_icon, {
- icon: library_reset,
- className: "components-checkbox-control__indeterminate",
- role: "presentation"
- }) : null, showCheckedIcon ? (0,external_React_.createElement)(icons_build_module_icon, {
- icon: library_check,
- className: "components-checkbox-control__checked",
- role: "presentation"
- }) : null), label && (0,external_React_.createElement)("label", {
- className: "components-checkbox-control__label",
- htmlFor: id
- }, label));
+ help: help && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "components-checkbox-control__help",
+ children: help
+ }),
+ className: dist_clsx('components-checkbox-control', className),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
+ spacing: 0,
+ justify: "start",
+ alignment: "top",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
+ className: "components-checkbox-control__input-container",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
+ ref: ref,
+ id: id,
+ className: "components-checkbox-control__input",
+ type: "checkbox",
+ value: "1",
+ onChange: onChangeValue,
+ checked: checked,
+ "aria-describedby": !!help ? id + '__help' : undefined,
+ ...additionalProps
+ }), showIndeterminateIcon ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
+ icon: library_reset,
+ className: "components-checkbox-control__indeterminate",
+ role: "presentation"
+ }) : null, showCheckedIcon ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
+ icon: library_check,
+ className: "components-checkbox-control__checked",
+ role: "presentation"
+ }) : null]
+ }), label && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("label", {
+ className: "components-checkbox-control__label",
+ htmlFor: id,
+ children: label
+ })]
+ })
+ });
}
/* harmony default export */ const checkbox_control = (CheckboxControl);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/clipboard-button/index.js
-
/**
* External dependencies
*/
@@ -44598,6 +43753,7 @@ function CheckboxControl(props) {
* Internal dependencies
*/
+
const TIMEOUT = 4000;
function ClipboardButton({
className,
@@ -44626,7 +43782,7 @@ function ClipboardButton({
clearTimeout(timeoutId.current);
}
}, []);
- const classes = classnames_default()('components-clipboard-button', className);
+ const classes = dist_clsx('components-clipboard-button', className);
// Workaround for inconsistent behavior in Safari, where <textarea> is not
// the document.activeElement at the moment when the copy event fires.
@@ -44637,26 +43793,28 @@ function ClipboardButton({
// @ts-expect-error: Should be currentTarget, but not changing because this component is deprecated.
event.target.focus();
};
- return (0,external_React_.createElement)(build_module_button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
...buttonProps,
className: classes,
ref: ref,
- onCopy: focusOnCopyEventTarget
- }, children);
+ onCopy: focusOnCopyEventTarget,
+ children: children
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
-
/**
* WordPress dependencies
*/
-const moreVertical = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const moreVertical = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
+ })
+});
/* harmony default export */ const more_vertical = (moreVertical);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/item-group/styles.js
@@ -44752,7 +43910,6 @@ const ItemGroupContext = (0,external_wp_element_namespaceObject.createContext)({
const useItemGroupContext = () => (0,external_wp_element_namespaceObject.useContext)(ItemGroupContext);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/item-group/item-group/component.js
-
/**
* External dependencies
*/
@@ -44765,6 +43922,7 @@ const useItemGroupContext = () => (0,external_wp_element_namespaceObject.useCont
+
function UnconnectedItemGroup(props, forwardedRef) {
const {
isBordered,
@@ -44781,12 +43939,13 @@ function UnconnectedItemGroup(props, forwardedRef) {
spacedAround,
size
};
- return (0,external_React_.createElement)(ItemGroupContext.Provider, {
- value: contextValue
- }, (0,external_React_.createElement)(component, {
- ...otherProps,
- ref: forwardedRef
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemGroupContext.Provider, {
+ value: contextValue,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
+ ...otherProps,
+ ref: forwardedRef
+ })
+ });
}
/**
@@ -44979,7 +44138,6 @@ function getHorizontalRelativeGradientPosition(mouseXCoordinate, containerElemen
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/gradient-bar/control-points.js
-
/**
* External dependencies
*/
@@ -45005,6 +44163,9 @@ function getHorizontalRelativeGradientPosition(mouseXCoordinate, containerElemen
+
+
+
function ControlPointButton({
isOpen,
position,
@@ -45013,20 +44174,23 @@ function ControlPointButton({
}) {
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(ControlPointButton);
const descriptionId = `components-custom-gradient-picker__control-point-button-description-${instanceId}`;
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(build_module_button, {
- "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %1$s: gradient position e.g: 70, %2$s: gradient color code e.g: rgb(52,121,151).
- (0,external_wp_i18n_namespaceObject.__)('Gradient control point at position %1$s%% with color code %2$s.'), position, color),
- "aria-describedby": descriptionId,
- "aria-haspopup": "true",
- "aria-expanded": isOpen,
- className: classnames_default()('components-custom-gradient-picker__control-point-button', {
- 'is-active': isOpen
- }),
- ...additionalProps
- }), (0,external_React_.createElement)(visually_hidden_component, {
- id: descriptionId
- }, (0,external_wp_i18n_namespaceObject.__)('Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %1$s: gradient position e.g: 70, %2$s: gradient color code e.g: rgb(52,121,151).
+ (0,external_wp_i18n_namespaceObject.__)('Gradient control point at position %1$s%% with color code %2$s.'), position, color),
+ "aria-describedby": descriptionId,
+ "aria-haspopup": "true",
+ "aria-expanded": isOpen,
+ className: dist_clsx('components-custom-gradient-picker__control-point-button', {
+ 'is-active': isOpen
+ }),
+ ...additionalProps
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
+ id: descriptionId,
+ children: (0,external_wp_i18n_namespaceObject.__)('Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.')
+ })]
+ });
}
function GradientColorPickerDropdown({
isRenderedInSidebar,
@@ -45042,8 +44206,8 @@ function GradientColorPickerDropdown({
// popover edge.
resize: false
}), []);
- const mergedClassName = classnames_default()('components-custom-gradient-picker__control-point-dropdown', className);
- return (0,external_React_.createElement)(CustomColorPickerDropdown, {
+ const mergedClassName = dist_clsx('components-custom-gradient-picker__control-point-dropdown', className);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomColorPickerDropdown, {
isRenderedInSidebar: isRenderedInSidebar,
popoverProps: popoverProps,
className: mergedClassName,
@@ -45096,84 +44260,87 @@ function ControlPoints({
cleanEventListenersRef.current?.();
};
}, []);
- return (0,external_React_.createElement)(external_React_.Fragment, null, controlPoints.map((point, index) => {
- const initialPosition = point?.position;
- return ignoreMarkerPosition !== initialPosition && (0,external_React_.createElement)(GradientColorPickerDropdown, {
- isRenderedInSidebar: __experimentalIsRenderedInSidebar,
- key: index,
- onClose: onStopControlPointChange,
- renderToggle: ({
- isOpen,
- onToggle
- }) => (0,external_React_.createElement)(ControlPointButton, {
- key: index,
- onClick: () => {
- if (controlPointMoveState.current && controlPointMoveState.current.significantMoveHappened) {
- return;
- }
- if (isOpen) {
- onStopControlPointChange();
- } else {
- onStartControlPointChange();
- }
- onToggle();
- },
- onMouseDown: () => {
- if (window && window.addEventListener) {
- controlPointMoveState.current = {
- initialPosition,
- index,
- significantMoveHappened: false,
- listenersActivated: true
- };
- onStartControlPointChange();
- window.addEventListener('mousemove', onMouseMove);
- window.addEventListener('mouseup', cleanEventListeners);
- }
- },
- onKeyDown: event => {
- if (event.code === 'ArrowLeft') {
- // Stop propagation of the key press event to avoid focus moving
- // to another editor area.
- event.stopPropagation();
- onChange(updateControlPointPosition(controlPoints, index, clampPercent(point.position - KEYBOARD_CONTROL_POINT_VARIATION)));
- } else if (event.code === 'ArrowRight') {
- // Stop propagation of the key press event to avoid focus moving
- // to another editor area.
- event.stopPropagation();
- onChange(updateControlPointPosition(controlPoints, index, clampPercent(point.position + KEYBOARD_CONTROL_POINT_VARIATION)));
- }
- },
- isOpen: isOpen,
- position: point.position,
- color: point.color
- }),
- renderContent: ({
- onClose
- }) => (0,external_React_.createElement)(dropdown_content_wrapper, {
- paddingSize: "none"
- }, (0,external_React_.createElement)(LegacyAdapter, {
- enableAlpha: !disableAlpha,
- color: point.color,
- onChange: color => {
- onChange(updateControlPointColor(controlPoints, index, w(color).toRgbString()));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: controlPoints.map((point, index) => {
+ const initialPosition = point?.position;
+ return ignoreMarkerPosition !== initialPosition && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GradientColorPickerDropdown, {
+ isRenderedInSidebar: __experimentalIsRenderedInSidebar,
+ onClose: onStopControlPointChange,
+ renderToggle: ({
+ isOpen,
+ onToggle
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ControlPointButton, {
+ onClick: () => {
+ if (controlPointMoveState.current && controlPointMoveState.current.significantMoveHappened) {
+ return;
+ }
+ if (isOpen) {
+ onStopControlPointChange();
+ } else {
+ onStartControlPointChange();
+ }
+ onToggle();
+ },
+ onMouseDown: () => {
+ if (window && window.addEventListener) {
+ controlPointMoveState.current = {
+ initialPosition,
+ index,
+ significantMoveHappened: false,
+ listenersActivated: true
+ };
+ onStartControlPointChange();
+ window.addEventListener('mousemove', onMouseMove);
+ window.addEventListener('mouseup', cleanEventListeners);
+ }
+ },
+ onKeyDown: event => {
+ if (event.code === 'ArrowLeft') {
+ // Stop propagation of the key press event to avoid focus moving
+ // to another editor area.
+ event.stopPropagation();
+ onChange(updateControlPointPosition(controlPoints, index, clampPercent(point.position - KEYBOARD_CONTROL_POINT_VARIATION)));
+ } else if (event.code === 'ArrowRight') {
+ // Stop propagation of the key press event to avoid focus moving
+ // to another editor area.
+ event.stopPropagation();
+ onChange(updateControlPointPosition(controlPoints, index, clampPercent(point.position + KEYBOARD_CONTROL_POINT_VARIATION)));
+ }
+ },
+ isOpen: isOpen,
+ position: point.position,
+ color: point.color
+ }, index),
+ renderContent: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(dropdown_content_wrapper, {
+ paddingSize: "none",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LegacyAdapter, {
+ enableAlpha: !disableAlpha,
+ color: point.color,
+ onChange: color => {
+ onChange(updateControlPointColor(controlPoints, index, w(color).toRgbString()));
+ }
+ }), !disableRemove && controlPoints.length > 2 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(h_stack_component, {
+ className: "components-custom-gradient-picker__remove-control-point-wrapper",
+ alignment: "center",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ onClick: () => {
+ onChange(removeControlPoint(controlPoints, index));
+ onClose();
+ },
+ variant: "link",
+ children: (0,external_wp_i18n_namespaceObject.__)('Remove Control Point')
+ })
+ })]
+ }),
+ style: {
+ left: `${point.position}%`,
+ transform: 'translateX( -50% )'
}
- }), !disableRemove && controlPoints.length > 2 && (0,external_React_.createElement)(h_stack_component, {
- className: "components-custom-gradient-picker__remove-control-point-wrapper",
- alignment: "center"
- }, (0,external_React_.createElement)(build_module_button, {
- onClick: () => {
- onChange(removeControlPoint(controlPoints, index));
- onClose();
- },
- variant: "link"
- }, (0,external_wp_i18n_namespaceObject.__)('Remove Control Point')))),
- style: {
- left: `${point.position}%`,
- transform: 'translateX( -50% )'
- }
- });
- }));
+ }, index);
+ })
+ });
}
function InsertPoint({
value: controlPoints,
@@ -45185,7 +44352,7 @@ function InsertPoint({
__experimentalIsRenderedInSidebar
}) {
const [alreadyInsertedPoint, setAlreadyInsertedPoint] = (0,external_wp_element_namespaceObject.useState)(false);
- return (0,external_React_.createElement)(GradientColorPickerDropdown, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GradientColorPickerDropdown, {
isRenderedInSidebar: __experimentalIsRenderedInSidebar,
className: "components-custom-gradient-picker__inserter",
onClose: () => {
@@ -45194,7 +44361,7 @@ function InsertPoint({
renderToggle: ({
isOpen,
onToggle
- }) => (0,external_React_.createElement)(build_module_button, {
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
"aria-expanded": isOpen,
"aria-haspopup": "true",
onClick: () => {
@@ -45209,19 +44376,20 @@ function InsertPoint({
className: "components-custom-gradient-picker__insert-point-dropdown",
icon: library_plus
}),
- renderContent: () => (0,external_React_.createElement)(dropdown_content_wrapper, {
- paddingSize: "none"
- }, (0,external_React_.createElement)(LegacyAdapter, {
- enableAlpha: !disableAlpha,
- onChange: color => {
- if (!alreadyInsertedPoint) {
- onChange(addControlPoint(controlPoints, insertPosition, w(color).toRgbString()));
- setAlreadyInsertedPoint(true);
- } else {
- onChange(updateControlPointColorByPosition(controlPoints, insertPosition, w(color).toRgbString()));
+ renderContent: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown_content_wrapper, {
+ paddingSize: "none",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LegacyAdapter, {
+ enableAlpha: !disableAlpha,
+ onChange: color => {
+ if (!alreadyInsertedPoint) {
+ onChange(addControlPoint(controlPoints, insertPosition, w(color).toRgbString()));
+ setAlreadyInsertedPoint(true);
+ } else {
+ onChange(updateControlPointColorByPosition(controlPoints, insertPosition, w(color).toRgbString()));
+ }
}
- }
- })),
+ })
+ }),
style: insertPosition !== null ? {
left: `${insertPosition}%`,
transform: 'translateX( -50% )'
@@ -45232,7 +44400,6 @@ ControlPoints.InsertPoint = InsertPoint;
/* harmony default export */ const control_points = (ControlPoints);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/gradient-bar/index.js
-
/**
* External dependencies
*/
@@ -45249,6 +44416,8 @@ ControlPoints.InsertPoint = InsertPoint;
+
+
const customGradientBarReducer = (state, action) => {
switch (action.type) {
case 'MOVE_INSERTER':
@@ -45343,57 +44512,59 @@ function CustomGradientBar({
};
const isMovingInserter = gradientBarState.id === 'MOVING_INSERTER';
const isInsertingControlPoint = gradientBarState.id === 'INSERTING_CONTROL_POINT';
- return (0,external_React_.createElement)("div", {
- className: classnames_default()('components-custom-gradient-picker__gradient-bar', {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: dist_clsx('components-custom-gradient-picker__gradient-bar', {
'has-gradient': hasGradient
}),
onMouseEnter: onMouseEnterAndMove,
onMouseMove: onMouseEnterAndMove,
- onMouseLeave: onMouseLeave
- }, (0,external_React_.createElement)("div", {
- className: "components-custom-gradient-picker__gradient-bar-background",
- style: {
- background,
- opacity: hasGradient ? 1 : 0.4
- }
- }), (0,external_React_.createElement)("div", {
- ref: gradientMarkersContainerDomRef,
- className: "components-custom-gradient-picker__markers-container"
- }, !disableInserter && (isMovingInserter || isInsertingControlPoint) && (0,external_React_.createElement)(control_points.InsertPoint, {
- __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
- disableAlpha: disableAlpha,
- insertPosition: gradientBarState.insertPosition,
- value: controlPoints,
- onChange: onChange,
- onOpenInserter: () => {
- gradientBarStateDispatch({
- type: 'OPEN_INSERTER'
- });
- },
- onCloseInserter: () => {
- gradientBarStateDispatch({
- type: 'CLOSE_INSERTER'
- });
- }
- }), (0,external_React_.createElement)(control_points, {
- __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
- disableAlpha: disableAlpha,
- disableRemove: disableInserter,
- gradientPickerDomRef: gradientMarkersContainerDomRef,
- ignoreMarkerPosition: isInsertingControlPoint ? gradientBarState.insertPosition : undefined,
- value: controlPoints,
- onChange: onChange,
- onStartControlPointChange: () => {
- gradientBarStateDispatch({
- type: 'START_CONTROL_CHANGE'
- });
- },
- onStopControlPointChange: () => {
- gradientBarStateDispatch({
- type: 'STOP_CONTROL_CHANGE'
- });
- }
- })));
+ onMouseLeave: onMouseLeave,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "components-custom-gradient-picker__gradient-bar-background",
+ style: {
+ background,
+ opacity: hasGradient ? 1 : 0.4
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ref: gradientMarkersContainerDomRef,
+ className: "components-custom-gradient-picker__markers-container",
+ children: [!disableInserter && (isMovingInserter || isInsertingControlPoint) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(control_points.InsertPoint, {
+ __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
+ disableAlpha: disableAlpha,
+ insertPosition: gradientBarState.insertPosition,
+ value: controlPoints,
+ onChange: onChange,
+ onOpenInserter: () => {
+ gradientBarStateDispatch({
+ type: 'OPEN_INSERTER'
+ });
+ },
+ onCloseInserter: () => {
+ gradientBarStateDispatch({
+ type: 'CLOSE_INSERTER'
+ });
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(control_points, {
+ __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
+ disableAlpha: disableAlpha,
+ disableRemove: disableInserter,
+ gradientPickerDomRef: gradientMarkersContainerDomRef,
+ ignoreMarkerPosition: isInsertingControlPoint ? gradientBarState.insertPosition : undefined,
+ value: controlPoints,
+ onChange: onChange,
+ onStartControlPointChange: () => {
+ gradientBarStateDispatch({
+ type: 'START_CONTROL_CHANGE'
+ });
+ },
+ onStopControlPointChange: () => {
+ gradientBarStateDispatch({
+ type: 'STOP_CONTROL_CHANGE'
+ });
+ }
+ })]
+ })]
+ });
}
// EXTERNAL MODULE: ./node_modules/gradient-parser/build/node.js
@@ -45615,7 +44786,6 @@ const AccessoryWrapper = /*#__PURE__*/emotion_styled_base_browser_esm(flex_block
} : 0);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/index.js
-
/**
* External dependencies
*/
@@ -45637,6 +44807,8 @@ const AccessoryWrapper = /*#__PURE__*/emotion_styled_base_browser_esm(flex_block
+
+
const GradientAnglePicker = ({
gradientAST,
hasGradient,
@@ -45653,7 +44825,7 @@ const GradientAnglePicker = ({
}
}));
};
- return (0,external_React_.createElement)(angle_picker_control, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(angle_picker_control, {
onChange: onAngleChange,
value: hasGradient ? angle : ''
});
@@ -45691,7 +44863,7 @@ const GradientTypePicker = ({
onSetRadialGradient();
}
};
- return (0,external_React_.createElement)(select_control, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(select_control, {
__nextHasNoMarginBottom: true,
className: "components-custom-gradient-picker__type-picker",
label: (0,external_wp_i18n_namespaceObject.__)('Type'),
@@ -45750,34 +44922,39 @@ function CustomGradientPicker({
position: parseInt(colorStop.length.value)
};
});
- return (0,external_React_.createElement)(v_stack_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
spacing: 4,
- className: "components-custom-gradient-picker"
- }, (0,external_React_.createElement)(CustomGradientBar, {
- __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
- background: background,
- hasGradient: hasGradient,
- value: controlPoints,
- onChange: newControlPoints => {
- onChange(serializeGradient(getGradientAstWithControlPoints(gradientAST, newControlPoints)));
- }
- }), (0,external_React_.createElement)(flex_component, {
- gap: 3,
- className: "components-custom-gradient-picker__ui-line"
- }, (0,external_React_.createElement)(SelectWrapper, null, (0,external_React_.createElement)(GradientTypePicker, {
- gradientAST: gradientAST,
- hasGradient: hasGradient,
- onChange: onChange
- })), (0,external_React_.createElement)(AccessoryWrapper, null, gradientAST.type === 'linear-gradient' && (0,external_React_.createElement)(GradientAnglePicker, {
- gradientAST: gradientAST,
- hasGradient: hasGradient,
- onChange: onChange
- }))));
+ className: "components-custom-gradient-picker",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomGradientBar, {
+ __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
+ background: background,
+ hasGradient: hasGradient,
+ value: controlPoints,
+ onChange: newControlPoints => {
+ onChange(serializeGradient(getGradientAstWithControlPoints(gradientAST, newControlPoints)));
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(flex_component, {
+ gap: 3,
+ className: "components-custom-gradient-picker__ui-line",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SelectWrapper, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GradientTypePicker, {
+ gradientAST: gradientAST,
+ hasGradient: hasGradient,
+ onChange: onChange
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AccessoryWrapper, {
+ children: gradientAST.type === 'linear-gradient' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GradientAnglePicker, {
+ gradientAST: gradientAST,
+ hasGradient: hasGradient,
+ onChange: onChange
+ })
+ })]
+ })]
+ });
}
/* harmony default export */ const custom_gradient_picker = (CustomGradientPicker);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/gradient-picker/index.js
-
/**
* WordPress dependencies
*/
@@ -45792,6 +44969,8 @@ function CustomGradientPicker({
+
+
// The Multiple Origin Gradients have a `gradients` property (an array of
// gradient objects), while Single Origin ones have a `gradient` property.
const isMultipleOriginObject = obj => Array.isArray(obj.gradients) && !('gradient' in obj);
@@ -45811,8 +44990,7 @@ function SingleOrigin({
gradient,
name,
slug
- }, index) => (0,external_React_.createElement)(build_module_circular_option_picker.Option, {
- key: slug,
+ }, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker.Option, {
value: gradient,
isSelected: value === gradient,
tooltipText: name ||
@@ -45828,9 +45006,9 @@ function SingleOrigin({
(0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Gradient: %s'), name) :
// translators: %s: gradient code e.g: "linear-gradient(90deg, rgba(98,16,153,1) 0%, rgba(172,110,22,1) 100%);".
(0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Gradient code: %s'), gradient)
- }));
+ }, slug));
}, [gradients, value, onChange, clearGradient]);
- return (0,external_React_.createElement)(build_module_circular_option_picker.OptionGroup, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker.OptionGroup, {
className: className,
options: gradientOptions,
...additionalProps
@@ -45845,28 +45023,30 @@ function MultipleOrigin({
headingLevel
}) {
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(MultipleOrigin);
- return (0,external_React_.createElement)(v_stack_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(v_stack_component, {
spacing: 3,
- className: className
- }, gradients.map(({
- name,
- gradients: gradientSet
- }, index) => {
- const id = `color-palette-${instanceId}-${index}`;
- return (0,external_React_.createElement)(v_stack_component, {
- spacing: 2,
- key: index
- }, (0,external_React_.createElement)(ColorHeading, {
- level: headingLevel,
- id: id
- }, name), (0,external_React_.createElement)(SingleOrigin, {
- clearGradient: clearGradient,
- gradients: gradientSet,
- onChange: gradient => onChange(gradient, index),
- value: value,
- "aria-labelledby": id
- }));
- }));
+ className: className,
+ children: gradients.map(({
+ name,
+ gradients: gradientSet
+ }, index) => {
+ const id = `color-palette-${instanceId}-${index}`;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
+ spacing: 2,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorHeading, {
+ level: headingLevel,
+ id: id,
+ children: name
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SingleOrigin, {
+ clearGradient: clearGradient,
+ gradients: gradientSet,
+ onChange: gradient => onChange(gradient, index),
+ value: value,
+ "aria-labelledby": id
+ })]
+ }, index);
+ })
+ });
}
function gradient_picker_Component(props) {
const {
@@ -45878,10 +45058,10 @@ function gradient_picker_Component(props) {
'aria-labelledby': ariaLabelledby,
...additionalProps
} = props;
- const options = isMultipleOriginArray(props.gradients) ? (0,external_React_.createElement)(MultipleOrigin, {
+ const options = isMultipleOriginArray(props.gradients) ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MultipleOrigin, {
headingLevel: headingLevel,
...additionalProps
- }) : (0,external_React_.createElement)(SingleOrigin, {
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SingleOrigin, {
...additionalProps
});
let metaProps;
@@ -45911,7 +45091,7 @@ function gradient_picker_Component(props) {
};
}
}
- return (0,external_React_.createElement)(build_module_circular_option_picker, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker, {
...metaProps,
actions: actions,
options: options
@@ -45972,45 +45152,47 @@ function GradientPicker({
...additionalProps
}) {
const clearGradient = (0,external_wp_element_namespaceObject.useCallback)(() => onChange(undefined), [onChange]);
- return (0,external_React_.createElement)(v_stack_component, {
- spacing: gradients.length ? 4 : 0
- }, !disableCustomGradients && (0,external_React_.createElement)(custom_gradient_picker, {
- __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
- value: value,
- onChange: onChange
- }), (gradients.length > 0 || clearable) && (0,external_React_.createElement)(gradient_picker_Component, {
- ...additionalProps,
- className: className,
- clearGradient: clearGradient,
- gradients: gradients,
- onChange: onChange,
- value: value,
- actions: clearable && !disableCustomGradients && (0,external_React_.createElement)(build_module_circular_option_picker.ButtonAction, {
- onClick: clearGradient
- }, (0,external_wp_i18n_namespaceObject.__)('Clear')),
- headingLevel: headingLevel
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
+ spacing: gradients.length ? 4 : 0,
+ children: [!disableCustomGradients && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(custom_gradient_picker, {
+ __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
+ value: value,
+ onChange: onChange
+ }), (gradients.length > 0 || clearable) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(gradient_picker_Component, {
+ ...additionalProps,
+ className: className,
+ clearGradient: clearGradient,
+ gradients: gradients,
+ onChange: onChange,
+ value: value,
+ actions: clearable && !disableCustomGradients && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker.ButtonAction, {
+ onClick: clearGradient,
+ children: (0,external_wp_i18n_namespaceObject.__)('Clear')
+ }),
+ headingLevel: headingLevel
+ })]
+ });
}
/* harmony default export */ const gradient_picker = (GradientPicker);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/menu.js
-
/**
* WordPress dependencies
*/
-const menu = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const menu = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"
+ })
+});
/* harmony default export */ const library_menu = (menu);
;// CONCATENATED MODULE: external ["wp","dom"]
const external_wp_dom_namespaceObject = window["wp"]["dom"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigable-container/container.js
-
/**
* External dependencies
*/
@@ -46164,14 +45346,15 @@ class NavigableContainer extends external_wp_element_namespaceObject.Component {
forwardedRef,
...restProps
} = this.props;
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
ref: this.bindContainer,
- ...restProps
- }, children);
+ ...restProps,
+ children: children
+ });
}
}
const forwardedNavigableContainer = (props, ref) => {
- return (0,external_React_.createElement)(NavigableContainer, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigableContainer, {
...props,
forwardedRef: ref
});
@@ -46180,7 +45363,6 @@ forwardedNavigableContainer.displayName = 'NavigableContainer';
/* harmony default export */ const container = ((0,external_wp_element_namespaceObject.forwardRef)(forwardedNavigableContainer));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigable-container/menu.js
-
/**
* External dependencies
*/
@@ -46194,6 +45376,7 @@ forwardedNavigableContainer.displayName = 'NavigableContainer';
* Internal dependencies
*/
+
function UnforwardedNavigableMenu({
role = 'menu',
orientation = 'vertical',
@@ -46225,7 +45408,7 @@ function UnforwardedNavigableMenu({
}
return undefined;
};
- return (0,external_React_.createElement)(container, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(container, {
ref: ref,
stopNavigationEvents: true,
onlyBrowserTabstops: false,
@@ -46265,7 +45448,6 @@ const NavigableMenu = (0,external_wp_element_namespaceObject.forwardRef)(Unforwa
/* harmony default export */ const navigable_container_menu = (NavigableMenu);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dropdown-menu/index.js
-
/**
* External dependencies
*/
@@ -46283,13 +45465,15 @@ const NavigableMenu = (0,external_wp_element_namespaceObject.forwardRef)(Unforwa
+
+
function dropdown_menu_mergeProps(defaultProps = {}, props = {}) {
const mergedProps = {
...defaultProps,
...props
};
if (props.className && defaultProps.className) {
- mergedProps.className = classnames_default()(props.className, defaultProps.className);
+ mergedProps.className = dist_clsx(props.className, defaultProps.className);
}
return mergedProps;
}
@@ -46335,7 +45519,7 @@ function UnconnectedDropdownMenu(dropdownMenuProps) {
className: 'components-dropdown-menu__popover',
variant
}, popoverProps);
- return (0,external_React_.createElement)(dropdown, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown, {
className: className,
popoverProps: mergedPopoverProps,
renderToggle: ({
@@ -46357,11 +45541,11 @@ function UnconnectedDropdownMenu(dropdownMenuProps) {
...restToggleProps
} = toggleProps !== null && toggleProps !== void 0 ? toggleProps : {};
const mergedToggleProps = dropdown_menu_mergeProps({
- className: classnames_default()('components-dropdown-menu__toggle', {
+ className: dist_clsx('components-dropdown-menu__toggle', {
'is-opened': isOpen
})
}, restToggleProps);
- return (0,external_React_.createElement)(Toggle, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Toggle, {
...mergedToggleProps,
icon: icon,
onClick: event => {
@@ -46380,39 +45564,41 @@ function UnconnectedDropdownMenu(dropdownMenuProps) {
"aria-expanded": isOpen,
label: label,
text: text,
- showTooltip: (_toggleProps$showTool = toggleProps?.showTooltip) !== null && _toggleProps$showTool !== void 0 ? _toggleProps$showTool : true
- }, mergedToggleProps.children);
+ showTooltip: (_toggleProps$showTool = toggleProps?.showTooltip) !== null && _toggleProps$showTool !== void 0 ? _toggleProps$showTool : true,
+ children: mergedToggleProps.children
+ });
},
renderContent: props => {
const mergedMenuProps = dropdown_menu_mergeProps({
'aria-label': label,
- className: classnames_default()('components-dropdown-menu__menu', {
+ className: dist_clsx('components-dropdown-menu__menu', {
'no-icons': noIcons
})
}, menuProps);
- return (0,external_React_.createElement)(navigable_container_menu, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(navigable_container_menu, {
...mergedMenuProps,
- role: "menu"
- }, dropdown_menu_isFunction(children) ? children(props) : null, controlSets?.flatMap((controlSet, indexOfSet) => controlSet.map((control, indexOfControl) => (0,external_React_.createElement)(build_module_button, {
- key: [indexOfSet, indexOfControl].join(),
- onClick: event => {
- event.stopPropagation();
- props.onClose();
- if (control.onClick) {
- control.onClick();
- }
- },
- className: classnames_default()('components-dropdown-menu__menu-item', {
- 'has-separator': indexOfSet > 0 && indexOfControl === 0,
- 'is-active': control.isActive,
- 'is-icon-only': !control.title
- }),
- icon: control.icon,
- label: control.label,
- "aria-checked": control.role === 'menuitemcheckbox' || control.role === 'menuitemradio' ? control.isActive : undefined,
- role: control.role === 'menuitemcheckbox' || control.role === 'menuitemradio' ? control.role : 'menuitem',
- disabled: control.isDisabled
- }, control.title))));
+ role: "menu",
+ children: [dropdown_menu_isFunction(children) ? children(props) : null, controlSets?.flatMap((controlSet, indexOfSet) => controlSet.map((control, indexOfControl) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ onClick: event => {
+ event.stopPropagation();
+ props.onClose();
+ if (control.onClick) {
+ control.onClick();
+ }
+ },
+ className: dist_clsx('components-dropdown-menu__menu-item', {
+ 'has-separator': indexOfSet > 0 && indexOfControl === 0,
+ 'is-active': control.isActive,
+ 'is-icon-only': !control.title
+ }),
+ icon: control.icon,
+ label: control.label,
+ "aria-checked": control.role === 'menuitemcheckbox' || control.role === 'menuitemradio' ? control.isActive : undefined,
+ role: control.role === 'menuitemcheckbox' || control.role === 'menuitemradio' ? control.role : 'menuitem',
+ disabled: control.isDisabled,
+ children: control.title
+ }, [indexOfSet, indexOfControl].join())))]
+ });
},
open: open,
defaultOpen: defaultOpen,
@@ -46523,7 +45709,6 @@ function palette_edit_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have
-
const IndicatorStyled = /*#__PURE__*/emotion_styled_base_browser_esm(color_indicator, true ? {
target: "e1lpqc909"
} : 0)("&&{flex-shrink:0;width:", space(6), ";height:", space(6), ";}" + ( true ? "" : 0));
@@ -46541,7 +45726,7 @@ const buttonStyleReset = ({
const PaletteItem = /*#__PURE__*/emotion_styled_base_browser_esm(component, true ? {
target: "e1lpqc907"
} : 0)(buttonStyleReset, " padding-block:3px;padding-inline-start:", space(3), ";border:1px solid ", config_values.surfaceBorderColor, ";border-bottom-color:transparent;font-size:", font('default.fontSize'), ";&:focus-visible{border-color:transparent;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ", COLORS.theme.accent, ";outline:2px solid transparent;outline-offset:0;}border-top-left-radius:", config_values.controlBorderRadius, ";border-top-right-radius:", config_values.controlBorderRadius, ";&+&{border-top-left-radius:0;border-top-right-radius:0;}&:last-child{border-bottom-left-radius:", config_values.controlBorderRadius, ";border-bottom-right-radius:", config_values.controlBorderRadius, ";border-bottom-color:", config_values.surfaceBorderColor, ";}&.is-selected+&{border-top-color:transparent;}&.is-selected{border-color:", COLORS.theme.accent, ";}" + ( true ? "" : 0));
-const NameContainer = emotion_styled_base_browser_esm("div", true ? {
+const NameContainer = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "e1lpqc906"
} : 0)("line-height:", space(8), ";margin-left:", space(2), ";margin-right:", space(2), ";white-space:nowrap;overflow:hidden;" + ( true ? "" : 0));
const PaletteHeading = /*#__PURE__*/emotion_styled_base_browser_esm(heading_component, true ? {
@@ -46550,9 +45735,9 @@ const PaletteHeading = /*#__PURE__*/emotion_styled_base_browser_esm(heading_comp
const PaletteActionsContainer = /*#__PURE__*/emotion_styled_base_browser_esm(component, true ? {
target: "e1lpqc904"
} : 0)("height:", space(6), ";display:flex;" + ( true ? "" : 0));
-const PaletteHStackHeader = /*#__PURE__*/emotion_styled_base_browser_esm(h_stack_component, true ? {
+const PaletteEditContents = /*#__PURE__*/emotion_styled_base_browser_esm(component, true ? {
target: "e1lpqc903"
-} : 0)("margin-bottom:", space(2), ";" + ( true ? "" : 0));
+} : 0)("margin-top:", space(2), ";" + ( true ? "" : 0));
const PaletteEditStyles = /*#__PURE__*/emotion_styled_base_browser_esm(component, true ? {
target: "e1lpqc902"
} : 0)( true ? {
@@ -46567,7 +45752,6 @@ const RemoveButton = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_b
} : 0)("&&{margin-top:", space(1), ";}" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/palette-edit/index.js
-
/**
* External dependencies
*/
@@ -46599,13 +45783,16 @@ const RemoveButton = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_b
+
+
+
const DEFAULT_COLOR = '#000';
function NameInput({
value,
onChange,
label
}) {
- return (0,external_React_.createElement)(NameInputControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NameInputControl, {
label: label,
hideLabelFromVision: true,
value: value,
@@ -46614,7 +45801,7 @@ function NameInput({
}
/**
- * Returns a name for a palette item in the format "Color + id".
+ * Returns a name and slug for a palette item. The name takes the format "Color + id".
* To ensure there are no duplicate ids, this function checks all slugs.
* It expects slugs to be in the format: slugPrefix + color- + number.
* It then sets the id component of the new name based on the incremented id of the highest existing slug id.
@@ -46622,9 +45809,9 @@ function NameInput({
* @param elements An array of color palette items.
* @param slugPrefix The slug prefix used to match the element slug.
*
- * @return A unique name for a palette item.
+ * @return A name and slug for the new palette item.
*/
-function getNameForPosition(elements, slugPrefix) {
+function getNameAndSlugForPosition(elements, slugPrefix) {
const nameRegex = new RegExp(`^${slugPrefix}color-([\\d]+)$`);
const position = elements.reduce((previousValue, currentValue) => {
if (typeof currentValue?.slug === 'string') {
@@ -46638,8 +45825,11 @@ function getNameForPosition(elements, slugPrefix) {
}
return previousValue;
}, 1);
- return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: is an id for a custom color */
- (0,external_wp_i18n_namespaceObject.__)('Color %s'), position);
+ return {
+ name: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: is an id for a custom color */
+ (0,external_wp_i18n_namespaceObject.__)('Color %s'), position),
+ slug: `${slugPrefix}color-${position}`
+ };
}
function ColorPickerPopover({
isGradient,
@@ -46657,47 +45847,46 @@ function ColorPickerPopover({
resize: false,
placement: 'left-start',
...receivedPopoverProps,
- className: classnames_default()('components-palette-edit__popover', receivedPopoverProps?.className)
+ className: dist_clsx('components-palette-edit__popover', receivedPopoverProps?.className)
}), [receivedPopoverProps]);
- return (0,external_React_.createElement)(popover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(popover, {
...popoverProps,
- onClose: onClose
- }, !isGradient && (0,external_React_.createElement)(LegacyAdapter, {
- color: element.color,
- enableAlpha: true,
- onChange: newColor => {
- onChange({
- ...element,
- color: newColor
- });
- }
- }), isGradient && (0,external_React_.createElement)("div", {
- className: "components-palette-edit__popover-gradient-picker"
- }, (0,external_React_.createElement)(custom_gradient_picker, {
- __experimentalIsRenderedInSidebar: true,
- value: element.gradient,
- onChange: newGradient => {
- onChange({
- ...element,
- gradient: newGradient
- });
- }
- })));
+ onClose: onClose,
+ children: [!isGradient && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LegacyAdapter, {
+ color: element.color,
+ enableAlpha: true,
+ onChange: newColor => {
+ onChange({
+ ...element,
+ color: newColor
+ });
+ }
+ }), isGradient && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "components-palette-edit__popover-gradient-picker",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(custom_gradient_picker, {
+ __experimentalIsRenderedInSidebar: true,
+ value: element.gradient,
+ onChange: newGradient => {
+ onChange({
+ ...element,
+ gradient: newGradient
+ });
+ }
+ })
+ })]
+ });
}
function palette_edit_Option({
canOnlyChangeValues,
element,
onChange,
- isEditing,
- onStartEditing,
onRemove,
- onStopEditing,
popoverProps: receivedPopoverProps,
slugPrefix,
isGradient
}) {
- const focusOutsideProps = (0,external_wp_compose_namespaceObject.__experimentalUseFocusOutside)(onStopEditing);
const value = isGradient ? element.gradient : element.color;
+ const [isEditingColor, setIsEditingColor] = (0,external_wp_element_namespaceObject.useState)(false);
// Use internal state instead of a ref to make sure that the component
// re-renders when the popover's anchor updates.
@@ -46707,51 +45896,64 @@ function palette_edit_Option({
// Use the custom palette color item as the popover anchor.
anchor: popoverAnchor
}), [popoverAnchor, receivedPopoverProps]);
- return (0,external_React_.createElement)(PaletteItem, {
- className: isEditing ? 'is-selected' : undefined,
- as: isEditing ? 'div' : 'button',
- onClick: onStartEditing,
- "aria-label": isEditing ? undefined : (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s is a color or gradient name, e.g. "Red".
- (0,external_wp_i18n_namespaceObject.__)('Edit: %s'), element.name.trim().length ? element.name : value),
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(PaletteItem, {
ref: setPopoverAnchor,
- ...(isEditing ? {
- ...focusOutsideProps
- } : {})
- }, (0,external_React_.createElement)(h_stack_component, {
- justify: "flex-start"
- }, (0,external_React_.createElement)(IndicatorStyled, {
- colorValue: value
- }), (0,external_React_.createElement)(flex_item_component, null, isEditing && !canOnlyChangeValues ? (0,external_React_.createElement)(NameInput, {
- label: isGradient ? (0,external_wp_i18n_namespaceObject.__)('Gradient name') : (0,external_wp_i18n_namespaceObject.__)('Color name'),
- value: element.name,
- onChange: nextName => onChange({
- ...element,
- name: nextName,
- slug: slugPrefix + kebabCase(nextName !== null && nextName !== void 0 ? nextName : '')
- })
- }) : (0,external_React_.createElement)(NameContainer, null, element.name.trim().length ? element.name : /* Fall back to non-breaking space to maintain height */
- '\u00A0')), isEditing && !canOnlyChangeValues && (0,external_React_.createElement)(flex_item_component, null, (0,external_React_.createElement)(RemoveButton, {
- size: "small",
- icon: line_solid,
- label: (0,external_wp_i18n_namespaceObject.__)('Remove color'),
- onClick: onRemove
- }))), isEditing && (0,external_React_.createElement)(ColorPickerPopover, {
- isGradient: isGradient,
- onChange: onChange,
- element: element,
- popoverProps: popoverProps
- }));
+ as: "div",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
+ justify: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ onClick: () => {
+ setIsEditingColor(true);
+ },
+ "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s is a color or gradient name, e.g. "Red".
+ (0,external_wp_i18n_namespaceObject.__)('Edit: %s'), element.name.trim().length ? element.name : value),
+ style: {
+ padding: 0
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(IndicatorStyled, {
+ colorValue: value
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_item_component, {
+ children: !canOnlyChangeValues ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NameInput, {
+ label: isGradient ? (0,external_wp_i18n_namespaceObject.__)('Gradient name') : (0,external_wp_i18n_namespaceObject.__)('Color name'),
+ value: element.name,
+ onChange: nextName => onChange({
+ ...element,
+ name: nextName,
+ slug: slugPrefix + kebabCase(nextName !== null && nextName !== void 0 ? nextName : '')
+ })
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NameContainer, {
+ children: element.name.trim().length ? element.name : /* Fall back to non-breaking space to maintain height */
+ '\u00A0'
+ })
+ }), !canOnlyChangeValues && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_item_component, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RemoveButton, {
+ size: "small",
+ icon: line_solid,
+ label: (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s is a color or gradient name, e.g. "Red".
+ (0,external_wp_i18n_namespaceObject.__)('Remove color: %s'), element.name.trim().length ? element.name : value),
+ onClick: onRemove
+ })
+ })]
+ }), isEditingColor && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorPickerPopover, {
+ isGradient: isGradient,
+ onChange: onChange,
+ element: element,
+ popoverProps: popoverProps,
+ onClose: () => setIsEditingColor(false)
+ })]
+ });
}
function PaletteEditListView({
elements,
onChange,
- editingElement,
- setEditingElement,
canOnlyChangeValues,
slugPrefix,
isGradient,
- popoverProps
+ popoverProps,
+ addColorRef
}) {
// When unmounting the component if there are empty elements (the user did not complete the insertion) clean them.
const elementsReference = (0,external_wp_element_namespaceObject.useRef)();
@@ -46759,47 +45961,37 @@ function PaletteEditListView({
elementsReference.current = elements;
}, [elements]);
const debounceOnChange = (0,external_wp_compose_namespaceObject.useDebounce)(onChange, 100);
- return (0,external_React_.createElement)(v_stack_component, {
- spacing: 3
- }, (0,external_React_.createElement)(item_group_component, {
- isRounded: true
- }, elements.map((element, index) => (0,external_React_.createElement)(palette_edit_Option, {
- isGradient: isGradient,
- canOnlyChangeValues: canOnlyChangeValues,
- key: index,
- element: element,
- onStartEditing: () => {
- if (editingElement !== index) {
- setEditingElement(index);
- }
- },
- onChange: newElement => {
- debounceOnChange(elements.map((currentElement, currentIndex) => {
- if (currentIndex === index) {
- return newElement;
- }
- return currentElement;
- }));
- },
- onRemove: () => {
- setEditingElement(null);
- const newElements = elements.filter((_currentElement, currentIndex) => {
- if (currentIndex === index) {
- return false;
- }
- return true;
- });
- onChange(newElements.length ? newElements : undefined);
- },
- isEditing: index === editingElement,
- onStopEditing: () => {
- if (index === editingElement) {
- setEditingElement(null);
- }
- },
- slugPrefix: slugPrefix,
- popoverProps: popoverProps
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(v_stack_component, {
+ spacing: 3,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(item_group_component, {
+ isRounded: true,
+ children: elements.map((element, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(palette_edit_Option, {
+ isGradient: isGradient,
+ canOnlyChangeValues: canOnlyChangeValues,
+ element: element,
+ onChange: newElement => {
+ debounceOnChange(elements.map((currentElement, currentIndex) => {
+ if (currentIndex === index) {
+ return newElement;
+ }
+ return currentElement;
+ }));
+ },
+ onRemove: () => {
+ const newElements = elements.filter((_currentElement, currentIndex) => {
+ if (currentIndex === index) {
+ return false;
+ }
+ return true;
+ });
+ onChange(newElements.length ? newElements : undefined);
+ addColorRef.current?.focus();
+ },
+ slugPrefix: slugPrefix,
+ popoverProps: popoverProps
+ }, index))
+ })
+ });
}
const EMPTY_ARRAY = [];
@@ -46853,107 +46045,130 @@ function PaletteEdit({
setIsEditing(true);
}
}, [isGradient, elements]);
- return (0,external_React_.createElement)(PaletteEditStyles, null, (0,external_React_.createElement)(PaletteHStackHeader, null, (0,external_React_.createElement)(PaletteHeading, {
- level: paletteLabelHeadingLevel
- }, paletteLabel), (0,external_React_.createElement)(PaletteActionsContainer, null, hasElements && isEditing && (0,external_React_.createElement)(DoneButton, {
- size: "small",
- onClick: () => {
- setIsEditing(false);
- setEditingElement(null);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Done')), !canOnlyChangeValues && (0,external_React_.createElement)(build_module_button, {
- size: "small",
- isPressed: isAdding,
- icon: library_plus,
- label: isGradient ? (0,external_wp_i18n_namespaceObject.__)('Add gradient') : (0,external_wp_i18n_namespaceObject.__)('Add color'),
- onClick: () => {
- const optionName = getNameForPosition(elements, slugPrefix);
- if (!!gradients) {
- onChange([...gradients, {
- gradient: DEFAULT_GRADIENT,
- name: optionName,
- slug: slugPrefix + kebabCase(optionName)
- }]);
- } else {
- onChange([...colors, {
- color: DEFAULT_COLOR,
- name: optionName,
- slug: slugPrefix + kebabCase(optionName)
- }]);
- }
- setIsEditing(true);
- setEditingElement(elements.length);
- }
- }), hasElements && (!isEditing || !canOnlyChangeValues || canReset) && (0,external_React_.createElement)(dropdown_menu, {
- icon: more_vertical,
- label: isGradient ? (0,external_wp_i18n_namespaceObject.__)('Gradient options') : (0,external_wp_i18n_namespaceObject.__)('Color options'),
- toggleProps: {
- isSmall: true
- }
- }, ({
- onClose
- }) => (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(navigable_container_menu, {
- role: "menu"
- }, !isEditing && (0,external_React_.createElement)(build_module_button, {
- variant: "tertiary",
- onClick: () => {
- setIsEditing(true);
- onClose();
- },
- className: "components-palette-edit__menu-button"
- }, (0,external_wp_i18n_namespaceObject.__)('Show details')), !canOnlyChangeValues && (0,external_React_.createElement)(build_module_button, {
- variant: "tertiary",
- onClick: () => {
- setEditingElement(null);
- setIsEditing(false);
- onChange();
- onClose();
- },
- className: "components-palette-edit__menu-button"
- }, isGradient ? (0,external_wp_i18n_namespaceObject.__)('Remove all gradients') : (0,external_wp_i18n_namespaceObject.__)('Remove all colors')), canReset && (0,external_React_.createElement)(build_module_button, {
- variant: "tertiary",
- onClick: () => {
- setEditingElement(null);
- onChange();
- onClose();
- }
- }, isGradient ? (0,external_wp_i18n_namespaceObject.__)('Reset gradient') : (0,external_wp_i18n_namespaceObject.__)('Reset colors'))))))), hasElements && (0,external_React_.createElement)(external_React_.Fragment, null, isEditing && (0,external_React_.createElement)(PaletteEditListView, {
- canOnlyChangeValues: canOnlyChangeValues,
- elements: elements
- // @ts-expect-error TODO: Don't know how to resolve
- ,
- onChange: onChange,
- editingElement: editingElement,
- setEditingElement: setEditingElement,
- slugPrefix: slugPrefix,
- isGradient: isGradient,
- popoverProps: popoverProps
- }), !isEditing && editingElement !== null && (0,external_React_.createElement)(ColorPickerPopover, {
- isGradient: isGradient,
- onClose: () => setEditingElement(null),
- onChange: newElement => {
- debounceOnChange(
- // @ts-expect-error TODO: Don't know how to resolve
- elements.map((currentElement, currentIndex) => {
- if (currentIndex === editingElement) {
- return newElement;
- }
- return currentElement;
- }));
- },
- element: elements[editingElement !== null && editingElement !== void 0 ? editingElement : -1],
- popoverProps: popoverProps
- }), !isEditing && (isGradient ? (0,external_React_.createElement)(gradient_picker, {
- gradients: gradients,
- onChange: onSelectPaletteItem,
- clearable: false,
- disableCustomGradients: true
- }) : (0,external_React_.createElement)(color_palette, {
- colors: colors,
- onChange: onSelectPaletteItem,
- clearable: false,
- disableCustomColors: true
- }))), !hasElements && emptyMessage);
+ const addColorRef = (0,external_wp_element_namespaceObject.useRef)(null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(PaletteEditStyles, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PaletteHeading, {
+ level: paletteLabelHeadingLevel,
+ children: paletteLabel
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(PaletteActionsContainer, {
+ children: [hasElements && isEditing && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DoneButton, {
+ size: "small",
+ onClick: () => {
+ setIsEditing(false);
+ setEditingElement(null);
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Done')
+ }), !canOnlyChangeValues && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ ref: addColorRef,
+ size: "small",
+ isPressed: isAdding,
+ icon: library_plus,
+ label: isGradient ? (0,external_wp_i18n_namespaceObject.__)('Add gradient') : (0,external_wp_i18n_namespaceObject.__)('Add color'),
+ onClick: () => {
+ const {
+ name,
+ slug
+ } = getNameAndSlugForPosition(elements, slugPrefix);
+ if (!!gradients) {
+ onChange([...gradients, {
+ gradient: DEFAULT_GRADIENT,
+ name,
+ slug
+ }]);
+ } else {
+ onChange([...colors, {
+ color: DEFAULT_COLOR,
+ name,
+ slug
+ }]);
+ }
+ setIsEditing(true);
+ setEditingElement(elements.length);
+ }
+ }), hasElements && (!isEditing || !canOnlyChangeValues || canReset) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown_menu, {
+ icon: more_vertical,
+ label: isGradient ? (0,external_wp_i18n_namespaceObject.__)('Gradient options') : (0,external_wp_i18n_namespaceObject.__)('Color options'),
+ toggleProps: {
+ size: 'small'
+ },
+ children: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(navigable_container_menu, {
+ role: "menu",
+ children: [!isEditing && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ variant: "tertiary",
+ onClick: () => {
+ setIsEditing(true);
+ onClose();
+ },
+ className: "components-palette-edit__menu-button",
+ children: (0,external_wp_i18n_namespaceObject.__)('Show details')
+ }), !canOnlyChangeValues && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ variant: "tertiary",
+ onClick: () => {
+ setEditingElement(null);
+ setIsEditing(false);
+ onChange();
+ onClose();
+ },
+ className: "components-palette-edit__menu-button",
+ children: isGradient ? (0,external_wp_i18n_namespaceObject.__)('Remove all gradients') : (0,external_wp_i18n_namespaceObject.__)('Remove all colors')
+ }), canReset && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ variant: "tertiary",
+ onClick: () => {
+ setEditingElement(null);
+ onChange();
+ onClose();
+ },
+ children: isGradient ? (0,external_wp_i18n_namespaceObject.__)('Reset gradient') : (0,external_wp_i18n_namespaceObject.__)('Reset colors')
+ })]
+ })
+ })
+ })]
+ })]
+ }), hasElements && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(PaletteEditContents, {
+ children: [isEditing && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PaletteEditListView, {
+ canOnlyChangeValues: canOnlyChangeValues,
+ elements: elements
+ // @ts-expect-error TODO: Don't know how to resolve
+ ,
+ onChange: onChange,
+ slugPrefix: slugPrefix,
+ isGradient: isGradient,
+ popoverProps: popoverProps,
+ addColorRef: addColorRef
+ }), !isEditing && editingElement !== null && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorPickerPopover, {
+ isGradient: isGradient,
+ onClose: () => setEditingElement(null),
+ onChange: newElement => {
+ debounceOnChange(
+ // @ts-expect-error TODO: Don't know how to resolve
+ elements.map((currentElement, currentIndex) => {
+ if (currentIndex === editingElement) {
+ return newElement;
+ }
+ return currentElement;
+ }));
+ },
+ element: elements[editingElement !== null && editingElement !== void 0 ? editingElement : -1],
+ popoverProps: popoverProps
+ }), !isEditing && (isGradient ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(gradient_picker, {
+ gradients: gradients,
+ onChange: onSelectPaletteItem,
+ clearable: false,
+ disableCustomGradients: true
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_palette, {
+ colors: colors,
+ onChange: onSelectPaletteItem,
+ clearable: false,
+ disableCustomColors: true
+ }))]
+ }), !hasElements && emptyMessage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PaletteEditContents, {
+ children: emptyMessage
+ })]
+ });
}
/* harmony default export */ const palette_edit = (PaletteEdit);
@@ -46978,7 +46193,6 @@ const InputWrapperFlex = /*#__PURE__*/emotion_styled_base_browser_esm(flex_compo
} : 0)("height:38px;padding-left:", space(2), ";padding-right:", space(2), ";", deprecatedDefaultSize, ";" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/token-input.js
-
/**
* External dependencies
*/
@@ -47021,7 +46235,7 @@ function UnForwardedTokenInput(props, ref) {
setHasFocus(false);
onBlur?.(e);
};
- return (0,external_React_.createElement)("input", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
ref: ref,
id: `components-form-token-input-${instanceId}`,
type: "text",
@@ -47031,7 +46245,7 @@ function UnForwardedTokenInput(props, ref) {
onFocus: onFocusHandler,
onBlur: onBlurHandler,
size: size,
- className: classnames_default()(className, 'components-form-token-field__input'),
+ className: dist_clsx(className, 'components-form-token-field__input'),
autoComplete: "off",
role: "combobox",
"aria-expanded": isExpanded,
@@ -47049,26 +46263,21 @@ function UnForwardedTokenInput(props, ref) {
const TokenInput = (0,external_wp_element_namespaceObject.forwardRef)(UnForwardedTokenInput);
/* harmony default export */ const token_input = (TokenInput);
-// EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js
-var lib = __webpack_require__(5428);
-var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/suggestions-list.js
-
/**
* External dependencies
*/
-
/**
* WordPress dependencies
*/
-
/**
* Internal dependencies
*/
+
const handleMouseDown = e => {
// By preventing default here, we will not lose focus of <input> when clicking a suggestion.
e.preventDefault();
@@ -47084,18 +46293,15 @@ function SuggestionsList({
instanceId,
__experimentalRenderItem
}) {
- const [scrollingIntoView, setScrollingIntoView] = (0,external_wp_element_namespaceObject.useState)(false);
const listRef = (0,external_wp_compose_namespaceObject.useRefEffect)(listNode => {
// only have to worry about scrolling selected suggestion into view
// when already expanded.
let rafId;
if (selectedIndex > -1 && scrollIntoView && listNode.children[selectedIndex]) {
- setScrollingIntoView(true);
- lib_default()(listNode.children[selectedIndex], listNode, {
- onlyScrollIfNeeded: true
- });
- rafId = requestAnimationFrame(() => {
- setScrollingIntoView(false);
+ listNode.children[selectedIndex].scrollIntoView({
+ behavior: 'instant',
+ block: 'nearest',
+ inline: 'nearest'
});
}
return () => {
@@ -47106,9 +46312,7 @@ function SuggestionsList({
}, [selectedIndex, scrollIntoView]);
const handleHover = suggestion => {
return () => {
- if (!scrollingIntoView) {
- onHover?.(suggestion);
- }
+ onHover?.(suggestion);
};
};
const handleClick = suggestion => {
@@ -47129,67 +46333,74 @@ function SuggestionsList({
suggestionAfterMatch: transformedSuggestion.substring(indexOfMatch + matchText.length)
};
};
- return (0,external_React_.createElement)("ul", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
ref: listRef,
className: "components-form-token-field__suggestions-list",
id: `components-form-token-suggestions-${instanceId}`,
- role: "listbox"
- }, suggestions.map((suggestion, index) => {
- const matchText = computeSuggestionMatch(suggestion);
- const className = classnames_default()('components-form-token-field__suggestion', {
- 'is-selected': index === selectedIndex
- });
- let output;
- if (typeof __experimentalRenderItem === 'function') {
- output = __experimentalRenderItem({
- item: suggestion
+ role: "listbox",
+ children: suggestions.map((suggestion, index) => {
+ const matchText = computeSuggestionMatch(suggestion);
+ const isSelected = index === selectedIndex;
+ const isDisabled = typeof suggestion === 'object' && suggestion?.disabled;
+ const key = typeof suggestion === 'object' && 'value' in suggestion ? suggestion?.value : displayTransform(suggestion);
+ const className = dist_clsx('components-form-token-field__suggestion', {
+ 'is-selected': isSelected
});
- } else if (matchText) {
- output = (0,external_React_.createElement)("span", {
- "aria-label": displayTransform(suggestion)
- }, matchText.suggestionBeforeMatch, (0,external_React_.createElement)("strong", {
- className: "components-form-token-field__suggestion-match"
- }, matchText.suggestionMatch), matchText.suggestionAfterMatch);
- } else {
- output = displayTransform(suggestion);
- }
+ let output;
+ if (typeof __experimentalRenderItem === 'function') {
+ output = __experimentalRenderItem({
+ item: suggestion
+ });
+ } else if (matchText) {
+ output = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
+ "aria-label": displayTransform(suggestion),
+ children: [matchText.suggestionBeforeMatch, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", {
+ className: "components-form-token-field__suggestion-match",
+ children: matchText.suggestionMatch
+ }), matchText.suggestionAfterMatch]
+ });
+ } else {
+ output = displayTransform(suggestion);
+ }
- /* eslint-disable jsx-a11y/click-events-have-key-events */
- return (0,external_React_.createElement)("li", {
- id: `components-form-token-suggestions-${instanceId}-${index}`,
- role: "option",
- className: className,
- key: typeof suggestion === 'object' && 'value' in suggestion ? suggestion?.value : displayTransform(suggestion),
- onMouseDown: handleMouseDown,
- onClick: handleClick(suggestion),
- onMouseEnter: handleHover(suggestion),
- "aria-selected": index === selectedIndex
- }, output);
- /* eslint-enable jsx-a11y/click-events-have-key-events */
- }));
+ /* eslint-disable jsx-a11y/click-events-have-key-events */
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ id: `components-form-token-suggestions-${instanceId}-${index}`,
+ role: "option",
+ className: className,
+ onMouseDown: handleMouseDown,
+ onClick: handleClick(suggestion),
+ onMouseEnter: handleHover(suggestion),
+ "aria-selected": index === selectedIndex,
+ "aria-disabled": isDisabled,
+ children: output
+ }, key);
+ /* eslint-enable jsx-a11y/click-events-have-key-events */
+ })
+ });
}
/* harmony default export */ const suggestions_list = (SuggestionsList);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-outside/index.js
-
/**
* WordPress dependencies
*/
+
/* harmony default export */ const with_focus_outside = ((0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => props => {
const [handleFocusOutside, setHandleFocusOutside] = (0,external_wp_element_namespaceObject.useState)(undefined);
const bindFocusOutsideHandler = (0,external_wp_element_namespaceObject.useCallback)(node => setHandleFocusOutside(() => node?.handleFocusOutside ? node.handleFocusOutside.bind(node) : undefined), []);
- return (0,external_React_.createElement)("div", {
- ...(0,external_wp_compose_namespaceObject.__experimentalUseFocusOutside)(handleFocusOutside)
- }, (0,external_React_.createElement)(WrappedComponent, {
- ref: bindFocusOutsideHandler,
- ...props
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...(0,external_wp_compose_namespaceObject.__experimentalUseFocusOutside)(handleFocusOutside),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
+ ref: bindFocusOutsideHandler,
+ ...props
+ })
+ });
}, 'withFocusOutside'));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/combobox-control/index.js
-
/**
* External dependencies
*/
@@ -47217,6 +46428,9 @@ function SuggestionsList({
+
+
+
const combobox_control_noop = () => {};
const DetectOutside = with_focus_outside(class extends external_wp_element_namespaceObject.Component {
handleFocusOutside(event) {
@@ -47244,10 +46458,12 @@ const getIndexOfMatchingSuggestion = (selectedSuggestion, matchingSuggestions) =
* {
* value: 'normal',
* label: 'Normal',
+ * disabled: true,
* },
* {
* value: 'large',
* label: 'Large',
+ * disabled: false,
* },
* ];
*
@@ -47291,7 +46507,8 @@ function ComboboxControl(props) {
messages = {
selected: (0,external_wp_i18n_namespaceObject.__)('Item selected.')
},
- __experimentalRenderItem
+ __experimentalRenderItem,
+ expandOnFocus = true
} = useDeprecated36pxDefaultSizeProp(props);
const [value, setValue] = useControlledValue({
value: valueProp,
@@ -47323,6 +46540,9 @@ function ComboboxControl(props) {
return startsWithMatch.concat(containsMatch);
}, [inputValue, options]);
const onSuggestionSelected = newSelectedSuggestion => {
+ if (newSelectedSuggestion.disabled) {
+ return;
+ }
setValue(newSelectedSuggestion.value);
(0,external_wp_a11y_namespaceObject.speak)(messages.selected, 'assertive');
setSelectedSuggestion(newSelectedSuggestion);
@@ -47340,15 +46560,9 @@ function ComboboxControl(props) {
setSelectedSuggestion(matchingSuggestions[nextIndex]);
setIsExpanded(true);
};
- const onKeyDown = event => {
+ const onKeyDown = withIgnoreIMEEvents(event => {
let preventDefault = false;
- if (event.defaultPrevented ||
- // Ignore keydowns from IMEs
- event.nativeEvent.isComposing ||
- // Workaround for Mac Safari where the final Enter/Backspace of an IME composition
- // is `isComposing=false`, even though it's technically still part of the composition.
- // These can only be detected by keyCode.
- event.keyCode === 229) {
+ if (event.defaultPrevented) {
return;
}
switch (event.code) {
@@ -47377,16 +46591,21 @@ function ComboboxControl(props) {
if (preventDefault) {
event.preventDefault();
}
- };
+ });
const onBlur = () => {
setInputHasFocus(false);
};
const onFocus = () => {
setInputHasFocus(true);
- setIsExpanded(true);
+ if (expandOnFocus) {
+ setIsExpanded(true);
+ }
onFilterValueChange('');
setInputValue('');
};
+ const onClick = () => {
+ setIsExpanded(true);
+ };
const onFocusOutside = () => {
setIsExpanded(false);
};
@@ -47427,55 +46646,64 @@ function ComboboxControl(props) {
// input container intended accessible usability.
// TODO: Refactor click detection to use blur to stop propagation.
/* eslint-disable jsx-a11y/no-static-element-interactions */
- return (0,external_React_.createElement)(DetectOutside, {
- onFocusOutside: onFocusOutside
- }, (0,external_React_.createElement)(base_control, {
- __nextHasNoMarginBottom: __nextHasNoMarginBottom,
- className: classnames_default()(className, 'components-combobox-control'),
- label: label,
- id: `components-form-token-input-${instanceId}`,
- hideLabelFromVision: hideLabelFromVision,
- help: help
- }, (0,external_React_.createElement)("div", {
- className: "components-combobox-control__suggestions-container",
- tabIndex: -1,
- onKeyDown: onKeyDown
- }, (0,external_React_.createElement)(InputWrapperFlex, {
- __next40pxDefaultSize: __next40pxDefaultSize
- }, (0,external_React_.createElement)(flex_block_component, null, (0,external_React_.createElement)(token_input, {
- className: "components-combobox-control__input",
- instanceId: instanceId,
- ref: inputContainer,
- value: isExpanded ? inputValue : currentLabel,
- onFocus: onFocus,
- onBlur: onBlur,
- isExpanded: isExpanded,
- selectedSuggestionIndex: getIndexOfMatchingSuggestion(selectedSuggestion, matchingSuggestions),
- onChange: onInputChange
- })), allowReset && (0,external_React_.createElement)(flex_item_component, null, (0,external_React_.createElement)(build_module_button, {
- className: "components-combobox-control__reset",
- icon: close_small,
- disabled: !value,
- onClick: handleOnReset,
- label: (0,external_wp_i18n_namespaceObject.__)('Reset')
- }))), isExpanded && (0,external_React_.createElement)(suggestions_list, {
- instanceId: instanceId
- // The empty string for `value` here is not actually used, but is
- // just a quick way to satisfy the TypeScript requirements of SuggestionsList.
- // See: https://github.com/WordPress/gutenberg/pull/47581/files#r1091089330
- ,
- match: {
- label: inputValue,
- value: ''
- },
- displayTransform: suggestion => suggestion.label,
- suggestions: matchingSuggestions,
- selectedIndex: getIndexOfMatchingSuggestion(selectedSuggestion, matchingSuggestions),
- onHover: setSelectedSuggestion,
- onSelect: onSuggestionSelected,
- scrollIntoView: true,
- __experimentalRenderItem: __experimentalRenderItem
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DetectOutside, {
+ onFocusOutside: onFocusOutside,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
+ __nextHasNoMarginBottom: __nextHasNoMarginBottom,
+ className: dist_clsx(className, 'components-combobox-control'),
+ label: label,
+ id: `components-form-token-input-${instanceId}`,
+ hideLabelFromVision: hideLabelFromVision,
+ help: help,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "components-combobox-control__suggestions-container",
+ tabIndex: -1,
+ onKeyDown: onKeyDown,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(InputWrapperFlex, {
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_block_component, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(token_input, {
+ className: "components-combobox-control__input",
+ instanceId: instanceId,
+ ref: inputContainer,
+ value: isExpanded ? inputValue : currentLabel,
+ onFocus: onFocus,
+ onBlur: onBlur,
+ onClick: onClick,
+ isExpanded: isExpanded,
+ selectedSuggestionIndex: getIndexOfMatchingSuggestion(selectedSuggestion, matchingSuggestions),
+ onChange: onInputChange
+ })
+ }), allowReset && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_item_component, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ className: "components-combobox-control__reset",
+ icon: close_small,
+ disabled: !value,
+ onClick: handleOnReset,
+ label: (0,external_wp_i18n_namespaceObject.__)('Reset')
+ })
+ })]
+ }), isExpanded && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(suggestions_list, {
+ instanceId: instanceId
+ // The empty string for `value` here is not actually used, but is
+ // just a quick way to satisfy the TypeScript requirements of SuggestionsList.
+ // See: https://github.com/WordPress/gutenberg/pull/47581/files#r1091089330
+ ,
+ match: {
+ label: inputValue,
+ value: ''
+ },
+ displayTransform: suggestion => suggestion.label,
+ suggestions: matchingSuggestions,
+ selectedIndex: getIndexOfMatchingSuggestion(selectedSuggestion, matchingSuggestions),
+ onHover: setSelectedSuggestion,
+ onSelect: onSuggestionSelected,
+ scrollIntoView: true,
+ __experimentalRenderItem: __experimentalRenderItem
+ })]
+ })
+ })
+ });
/* eslint-enable jsx-a11y/no-static-element-interactions */
}
/* harmony default export */ const combobox_control = (ComboboxControl);
@@ -47503,7 +46731,7 @@ var useGroup = createHook((props) => {
const [labelId, setLabelId] = (0,external_React_.useState)();
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(GroupLabelContext.Provider, { value: setLabelId, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(GroupLabelContext.Provider, { value: setLabelId, children: element }),
[]
);
props = _4R3V3JGP_spreadValues({
@@ -47545,7 +46773,6 @@ if (false) {}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/composite/legacy/index.js
-
/**
* Composite is a component that may contain navigable items represented by
* CompositeItem. It's inspired by the WAI-ARIA Composite Role and implements
@@ -47566,6 +46793,12 @@ if (false) {}
*/
+
+// Legacy composite components can either provide state through a
+// single `state` prop, or via individual props, usually through
+// spreading the state generated by `useCompositeState`.
+// That is, `<Composite* { ...state }>`.
+
function mapLegacyStatePropsToComponentProps(legacyProps) {
// If a `state` prop is provided, we unpack that; otherwise,
// the necessary props are provided directly in `legacyProps`.
@@ -47604,7 +46837,7 @@ function proxyComposite(ProxiedComponent, propMap = {}) {
}
});
delete props.baseId;
- return (0,external_React_.createElement)(ProxiedComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ProxiedComponent, {
...props,
store: store
});
@@ -47622,7 +46855,7 @@ const unproxiedCompositeGroup = (0,external_wp_element_namespaceObject.forwardRe
...props
}, ref) => {
const Component = role === 'row' ? CompositeRow : CompositeGroup;
- return (0,external_React_.createElement)(Component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
ref: ref,
role: role,
...props
@@ -47683,7 +46916,9 @@ function modalize(modalElement) {
const hiddenElements = [];
hiddenElementsByDepth.push(hiddenElements);
for (const element of elements) {
- if (element === modalElement) continue;
+ if (element === modalElement) {
+ continue;
+ }
if (elementShouldBeHidden(element)) {
element.setAttribute('aria-hidden', 'true');
hiddenElements.push(element);
@@ -47708,12 +46943,15 @@ function elementShouldBeHidden(element) {
*/
function unmodalize() {
const hiddenElements = hiddenElementsByDepth.pop();
- if (!hiddenElements) return;
- for (const element of hiddenElements) element.removeAttribute('aria-hidden');
+ if (!hiddenElements) {
+ return;
+ }
+ for (const element of hiddenElements) {
+ element.removeAttribute('aria-hidden');
+ }
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/modal/index.js
-
/**
* External dependencies
*/
@@ -47733,7 +46971,11 @@ function unmodalize() {
+
+
// Used to track and dismiss the prior modal when another opens unless nested.
+
+
const ModalContext = (0,external_wp_element_namespaceObject.createContext)([]);
// Used to track body class names applied while modals are open.
@@ -47828,7 +47070,9 @@ function UnforwardedModal(props, forwardedRef) {
(0,external_wp_element_namespaceObject.useEffect)(() => {
dismissers.push(refOnRequestClose);
const [first, second] = dismissers;
- if (second) first?.current?.();
+ if (second) {
+ first?.current?.();
+ }
const nested = nestedDismissers.current;
return () => {
nested[0]?.current?.();
@@ -47867,15 +47111,6 @@ function UnforwardedModal(props, forwardedRef) {
};
}, [isContentScrollable, childrenContainerRef]);
function handleEscapeKeyDown(event) {
- if (
- // Ignore keydowns from IMEs
- event.nativeEvent.isComposing ||
- // Workaround for Mac Safari where the final Enter/Backspace of an IME composition
- // is `isComposing=false`, even though it's technically still part of the composition.
- // These can only be detected by keyCode.
- event.keyCode === 229) {
- return;
- }
if (shouldCloseOnEsc && (event.code === 'Escape' || event.key === 'Escape') && !event.defaultPrevented) {
event.preventDefault();
if (onRequestClose) {
@@ -47913,59 +47148,72 @@ function UnforwardedModal(props, forwardedRef) {
}) => {
const isSameTarget = target === pressTarget;
pressTarget = null;
- if (button === 0 && isSameTarget) onRequestClose();
+ if (button === 0 && isSameTarget) {
+ onRequestClose();
+ }
}
};
const modal =
+ /*#__PURE__*/
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
- (0,external_React_.createElement)("div", {
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, forwardedRef]),
- className: classnames_default()('components-modal__screen-overlay', overlayClassName),
- onKeyDown: handleEscapeKeyDown,
- ...(shouldCloseOnClickOutside ? overlayPressHandlers : {})
- }, (0,external_React_.createElement)(style_provider, {
- document: document
- }, (0,external_React_.createElement)("div", {
- className: classnames_default()('components-modal__frame', sizeClass, className),
- style: style,
- ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([constrainedTabbingRef, focusReturnRef, focusOnMount !== 'firstContentElement' ? focusOnMountRef : null]),
- role: role,
- "aria-label": contentLabel,
- "aria-labelledby": contentLabel ? undefined : headingId,
- "aria-describedby": aria.describedby,
- tabIndex: -1,
- onKeyDown: onKeyDown
- }, (0,external_React_.createElement)("div", {
- className: classnames_default()('components-modal__content', {
- 'hide-header': __experimentalHideHeader,
- 'is-scrollable': hasScrollableContent,
- 'has-scrolled-content': hasScrolledContent
- }),
- role: "document",
- onScroll: onContentContainerScroll,
- ref: contentRef,
- "aria-label": hasScrollableContent ? (0,external_wp_i18n_namespaceObject.__)('Scrollable section') : undefined,
- tabIndex: hasScrollableContent ? 0 : undefined
- }, !__experimentalHideHeader && (0,external_React_.createElement)("div", {
- className: "components-modal__header"
- }, (0,external_React_.createElement)("div", {
- className: "components-modal__header-heading-container"
- }, icon && (0,external_React_.createElement)("span", {
- className: "components-modal__icon-container",
- "aria-hidden": true
- }, icon), title && (0,external_React_.createElement)("h1", {
- id: headingId,
- className: "components-modal__header-heading"
- }, title)), headerActions, isDismissible && (0,external_React_.createElement)(build_module_button, {
- onClick: onRequestClose,
- icon: library_close,
- label: closeButtonLabel || (0,external_wp_i18n_namespaceObject.__)('Close')
- })), (0,external_React_.createElement)("div", {
- ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([childrenContainerRef, focusOnMount === 'firstContentElement' ? focusOnMountRef : null])
- }, children)))));
- return (0,external_wp_element_namespaceObject.createPortal)((0,external_React_.createElement)(ModalContext.Provider, {
- value: nestedDismissers.current
- }, modal), document.body);
+ className: dist_clsx('components-modal__screen-overlay', overlayClassName),
+ onKeyDown: withIgnoreIMEEvents(handleEscapeKeyDown),
+ ...(shouldCloseOnClickOutside ? overlayPressHandlers : {}),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(style_provider, {
+ document: document,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('components-modal__frame', sizeClass, className),
+ style: style,
+ ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([constrainedTabbingRef, focusReturnRef, focusOnMount !== 'firstContentElement' ? focusOnMountRef : null]),
+ role: role,
+ "aria-label": contentLabel,
+ "aria-labelledby": contentLabel ? undefined : headingId,
+ "aria-describedby": aria.describedby,
+ tabIndex: -1,
+ onKeyDown: onKeyDown,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: dist_clsx('components-modal__content', {
+ 'hide-header': __experimentalHideHeader,
+ 'is-scrollable': hasScrollableContent,
+ 'has-scrolled-content': hasScrolledContent
+ }),
+ role: "document",
+ onScroll: onContentContainerScroll,
+ ref: contentRef,
+ "aria-label": hasScrollableContent ? (0,external_wp_i18n_namespaceObject.__)('Scrollable section') : undefined,
+ tabIndex: hasScrollableContent ? 0 : undefined,
+ children: [!__experimentalHideHeader && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "components-modal__header",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "components-modal__header-heading-container",
+ children: [icon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "components-modal__icon-container",
+ "aria-hidden": true,
+ children: icon
+ }), title && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ id: headingId,
+ className: "components-modal__header-heading",
+ children: title
+ })]
+ }), headerActions, isDismissible && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ onClick: onRequestClose,
+ icon: library_close,
+ label: closeButtonLabel || (0,external_wp_i18n_namespaceObject.__)('Close')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([childrenContainerRef, focusOnMount === 'firstContentElement' ? focusOnMountRef : null]),
+ children: children
+ })]
+ })
+ })
+ })
+ });
+ return (0,external_wp_element_namespaceObject.createPortal)( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ModalContext.Provider, {
+ value: nestedDismissers.current,
+ children: modal
+ }), document.body);
}
/**
@@ -48023,7 +47271,6 @@ const styles_wrapper = true ? {
} : 0;
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/confirm-dialog/component.js
-
/**
* WordPress dependencies
*/
@@ -48041,6 +47288,9 @@ const styles_wrapper = true ? {
+
+
+
const UnconnectedConfirmDialog = (props, forwardedRef) => {
const {
isOpen: isOpenProp,
@@ -48082,31 +47332,40 @@ const UnconnectedConfirmDialog = (props, forwardedRef) => {
}, [handleEvent, onConfirm]);
const cancelLabel = cancelButtonText !== null && cancelButtonText !== void 0 ? cancelButtonText : (0,external_wp_i18n_namespaceObject.__)('Cancel');
const confirmLabel = confirmButtonText !== null && confirmButtonText !== void 0 ? confirmButtonText : (0,external_wp_i18n_namespaceObject.__)('OK');
- return (0,external_React_.createElement)(external_React_.Fragment, null, isOpen && (0,external_React_.createElement)(modal, {
- onRequestClose: handleEvent(onCancel),
- onKeyDown: handleEnter,
- closeButtonLabel: cancelLabel,
- isDismissible: true,
- ref: forwardedRef,
- overlayClassName: wrapperClassName,
- __experimentalHideHeader: true,
- ...otherProps
- }, (0,external_React_.createElement)(v_stack_component, {
- spacing: 8
- }, (0,external_React_.createElement)(text_component, null, children), (0,external_React_.createElement)(flex_component, {
- direction: "row",
- justify: "flex-end"
- }, (0,external_React_.createElement)(build_module_button, {
- __next40pxDefaultSize: true,
- ref: cancelButtonRef,
- variant: "tertiary",
- onClick: handleEvent(onCancel)
- }, cancelLabel), (0,external_React_.createElement)(build_module_button, {
- __next40pxDefaultSize: true,
- ref: confirmButtonRef,
- variant: "primary",
- onClick: handleEvent(onConfirm)
- }, confirmLabel)))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: isOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(modal, {
+ onRequestClose: handleEvent(onCancel),
+ onKeyDown: handleEnter,
+ closeButtonLabel: cancelLabel,
+ isDismissible: true,
+ ref: forwardedRef,
+ overlayClassName: wrapperClassName,
+ __experimentalHideHeader: true,
+ ...otherProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
+ spacing: 8,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(text_component, {
+ children: children
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(flex_component, {
+ direction: "row",
+ justify: "flex-end",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ __next40pxDefaultSize: true,
+ ref: cancelButtonRef,
+ variant: "tertiary",
+ onClick: handleEvent(onCancel),
+ children: cancelLabel
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ __next40pxDefaultSize: true,
+ ref: confirmButtonRef,
+ variant: "primary",
+ onClick: handleEvent(onConfirm),
+ children: confirmLabel
+ })]
+ })]
+ })
+ })
+ });
};
/**
@@ -52360,24 +51619,7 @@ function useMultipleSelection(userProps) {
-;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-select-control/styles.js
-
-/**
- * External dependencies
- */
-
-/**
- * Internal dependencies
- */
-
-
-const backCompatMinWidth = props => !props.__nextUnconstrainedWidth ? /*#__PURE__*/emotion_react_browser_esm_css(Container, "{min-width:130px;}" + ( true ? "" : 0), true ? "" : 0) : '';
-const InputBaseWithBackCompatMinWidth = /*#__PURE__*/emotion_styled_base_browser_esm(input_base, true ? {
- target: "eswuck60"
-} : 0)(backCompatMinWidth, ";" + ( true ? "" : 0));
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-select-control/index.js
-
// @ts-nocheck
/**
* External dependencies
@@ -52392,7 +51634,6 @@ const InputBaseWithBackCompatMinWidth = /*#__PURE__*/emotion_styled_base_browser
-
/**
* Internal dependencies
*/
@@ -52402,6 +51643,8 @@ const InputBaseWithBackCompatMinWidth = /*#__PURE__*/emotion_styled_base_browser
+
+
const custom_select_control_itemToString = item => item?.name;
// This is needed so that in Windows, where
// the menu does not necessarily open on
@@ -52437,8 +51680,6 @@ function CustomSelectControl(props) {
const {
/** Start opting into the larger default height that will become the default size in a future version. */
__next40pxDefaultSize = false,
- /** Start opting into the unconstrained width that will become the default in a future version. */
- __nextUnconstrainedWidth = false,
className,
hideLabelFromVision,
label,
@@ -52472,22 +51713,6 @@ function CustomSelectControl(props) {
} : undefined),
stateReducer: custom_select_control_stateReducer
});
- const [isFocused, setIsFocused] = (0,external_wp_element_namespaceObject.useState)(false);
- function handleOnFocus(e) {
- setIsFocused(true);
- onFocus?.(e);
- }
- function handleOnBlur(e) {
- setIsFocused(false);
- onBlur?.(e);
- }
- if (!__nextUnconstrainedWidth) {
- external_wp_deprecated_default()('Constrained width styles for wp.components.CustomSelectControl', {
- since: '6.1',
- version: '6.4',
- hint: 'Set the `__nextUnconstrainedWidth` prop to true to start opting into the new styles, which will become the default in a future version'
- });
- }
function getDescribedBy() {
if (describedBy) {
return describedBy;
@@ -52499,7 +51724,7 @@ function CustomSelectControl(props) {
// translators: %s: The selected option.
return (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Currently selected: %s'), selectedItem.name);
}
- const menuProps = getMenuProps({
+ let menuProps = getMenuProps({
className: 'components-custom-select-control__menu',
'aria-hidden': !isOpen
});
@@ -52510,69 +51735,80 @@ function CustomSelectControl(props) {
// We need this here, because the null active descendant is not fully ARIA compliant.
if (menuProps['aria-activedescendant']?.startsWith('downshift-null')) {
- delete menuProps['aria-activedescendant'];
- }
- return (0,external_React_.createElement)("div", {
- className: classnames_default()('components-custom-select-control', className)
- }, hideLabelFromVision ? (0,external_React_.createElement)(visually_hidden_component, {
- as: "label",
- ...getLabelProps()
- }, label) : /* eslint-disable-next-line jsx-a11y/label-has-associated-control, jsx-a11y/label-has-for */
- (0,external_React_.createElement)(StyledLabel, {
- ...getLabelProps({
- className: 'components-custom-select-control__label'
- })
- }, label), (0,external_React_.createElement)(InputBaseWithBackCompatMinWidth, {
- __next40pxDefaultSize: __next40pxDefaultSize,
- __nextUnconstrainedWidth: __nextUnconstrainedWidth,
- isFocused: isOpen || isFocused,
- __unstableInputWidth: __nextUnconstrainedWidth ? undefined : 'auto',
- labelPosition: __nextUnconstrainedWidth ? undefined : 'top',
- size: size,
- suffix: (0,external_React_.createElement)(select_control_chevron_down, null)
- }, (0,external_React_.createElement)(Select, {
- onMouseOver: onMouseOver,
- onMouseOut: onMouseOut,
- as: "button",
- onFocus: handleOnFocus,
- onBlur: handleOnBlur,
- selectSize: size,
- __next40pxDefaultSize: __next40pxDefaultSize,
- ...getToggleButtonProps({
- // This is needed because some speech recognition software don't support `aria-labelledby`.
- 'aria-label': label,
- 'aria-labelledby': undefined,
- className: 'components-custom-select-control__button',
- describedBy: getDescribedBy()
- })
- }, custom_select_control_itemToString(selectedItem), __experimentalShowSelectedHint && selectedItem.__experimentalHint && (0,external_React_.createElement)("span", {
- className: "components-custom-select-control__hint"
- }, selectedItem.__experimentalHint))), (0,external_React_.createElement)("ul", {
- ...menuProps,
- onKeyDown: onKeyDownHandler
- }, isOpen && items.map((item, index) =>
- // eslint-disable-next-line react/jsx-key
- (0,external_React_.createElement)("li", {
- ...getItemProps({
- item,
- index,
- key: item.key,
- className: classnames_default()(item.className, 'components-custom-select-control__item', {
- 'is-highlighted': index === highlightedIndex,
- 'has-hint': !!item.__experimentalHint,
- 'is-next-40px-default-size': __next40pxDefaultSize
+ const {
+ 'aria-activedescendant': ariaActivedescendant,
+ ...restMenuProps
+ } = menuProps;
+ menuProps = restMenuProps;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: dist_clsx('components-custom-select-control', className),
+ children: [hideLabelFromVision ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
+ as: "label",
+ ...getLabelProps(),
+ children: label
+ }) :
+ /*#__PURE__*/
+ /* eslint-disable-next-line jsx-a11y/label-has-associated-control, jsx-a11y/label-has-for */
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledLabel, {
+ ...getLabelProps({
+ className: 'components-custom-select-control__label'
}),
- style: item.style
- })
- }, item.name, item.__experimentalHint && (0,external_React_.createElement)("span", {
- className: "components-custom-select-control__item-hint"
- }, item.__experimentalHint), item === selectedItem && (0,external_React_.createElement)(icons_build_module_icon, {
- icon: library_check,
- className: "components-custom-select-control__item-icon"
- })))));
+ children: label
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(input_base, {
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ size: size,
+ suffix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(select_control_chevron_down, {}),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Select, {
+ onMouseOver: onMouseOver,
+ onMouseOut: onMouseOut,
+ as: "button",
+ onFocus: onFocus,
+ onBlur: onBlur,
+ selectSize: size,
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ ...getToggleButtonProps({
+ // This is needed because some speech recognition software don't support `aria-labelledby`.
+ 'aria-label': label,
+ 'aria-labelledby': undefined,
+ className: 'components-custom-select-control__button',
+ describedBy: getDescribedBy()
+ }),
+ children: [custom_select_control_itemToString(selectedItem), __experimentalShowSelectedHint && selectedItem.__experimentalHint && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "components-custom-select-control__hint",
+ children: selectedItem.__experimentalHint
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "components-custom-select-control__menu-wrapper",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ ...menuProps,
+ onKeyDown: onKeyDownHandler,
+ children: isOpen && items.map((item, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ ...getItemProps({
+ item,
+ index,
+ className: dist_clsx(item.className, 'components-custom-select-control__item', {
+ 'is-highlighted': index === highlightedIndex,
+ 'has-hint': !!item.__experimentalHint,
+ 'is-next-40px-default-size': __next40pxDefaultSize
+ }),
+ style: item.style
+ }),
+ children: [item.name, item.__experimentalHint && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "components-custom-select-control__item-hint",
+ children: item.__experimentalHint
+ }), item === selectedItem && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
+ icon: library_check,
+ className: "components-custom-select-control__item-icon"
+ })]
+ }, item.key))
+ })
+ })]
+ })]
+ });
}
function StableCustomSelectControl(props) {
- return (0,external_React_.createElement)(CustomSelectControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomSelectControl, {
...props,
__experimentalShowSelectedHint: false
});
@@ -52581,26 +51817,6 @@ function StableCustomSelectControl(props) {
;// CONCATENATED MODULE: ./node_modules/use-lilius/build/index.es.js
-function toInteger(dirtyNumber) {
- if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
- return NaN;
- }
-
- var number = Number(dirtyNumber);
-
- if (isNaN(number)) {
- return number;
- }
-
- return number < 0 ? Math.ceil(number) : Math.floor(number);
-}
-
-function requiredArgs(required, args) {
- if (args.length < required) {
- throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
- }
-}
-
/**
* @name toDate
* @category Common Helpers
@@ -52617,9 +51833,11 @@ function requiredArgs(required, args) {
*
* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
*
- * @param {Date|Number} argument - the value to convert
- * @returns {Date} the parsed date in the local time zone
- * @throws {TypeError} 1 argument required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param argument - The value to convert
+ *
+ * @returns The parsed date in the local time zone
*
* @example
* // Clone the date:
@@ -52631,29 +51849,69 @@ function requiredArgs(required, args) {
* const result = toDate(1392098430000)
* //=> Tue Feb 11 2014 11:30:30
*/
-
function toDate(argument) {
- requiredArgs(1, arguments);
- var argStr = Object.prototype.toString.call(argument); // Clone the date
+ const argStr = Object.prototype.toString.call(argument);
- if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {
+ // Clone the date
+ if (
+ argument instanceof Date ||
+ (typeof argument === "object" && argStr === "[object Date]")
+ ) {
// Prevent the date to lose the milliseconds when passed to new Date() in IE10
- return new Date(argument.getTime());
- } else if (typeof argument === 'number' || argStr === '[object Number]') {
+ return new argument.constructor(+argument);
+ } else if (
+ typeof argument === "number" ||
+ argStr === "[object Number]" ||
+ typeof argument === "string" ||
+ argStr === "[object String]"
+ ) {
+ // TODO: Can we get rid of as?
return new Date(argument);
} else {
- if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
- // eslint-disable-next-line no-console
- console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"); // eslint-disable-next-line no-console
-
- console.warn(new Error().stack);
- }
-
+ // TODO: Can we get rid of as?
return new Date(NaN);
}
}
/**
+ * @name constructFrom
+ * @category Generic Helpers
+ * @summary Constructs a date using the reference date and the value
+ *
+ * @description
+ * The function constructs a new date using the constructor from the reference
+ * date and the given value. It helps to build generic functions that accept
+ * date extensions.
+ *
+ * It defaults to `Date` if the passed reference date is a number or a string.
+ *
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The reference date to take constructor from
+ * @param value - The value to create the date
+ *
+ * @returns Date initialized using the given date and value
+ *
+ * @example
+ * import { constructFrom } from 'date-fns'
+ *
+ * // A function that clones a date preserving the original type
+ * function cloneDate<DateType extends Date(date: DateType): DateType {
+ * return constructFrom(
+ * date, // Use contrustor from the given date
+ * date.getTime() // Use the date value to create a new date
+ * )
+ * }
+ */
+function constructFrom(date, value) {
+ if (date instanceof Date) {
+ return new date.constructor(value);
+ } else {
+ return new Date(value);
+ }
+}
+
+/**
* @name addDays
* @category Day Helpers
* @summary Add the specified number of days to the given date.
@@ -52661,33 +51919,27 @@ function toDate(argument) {
* @description
* Add the specified number of days to the given date.
*
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} - the new date with the days added
- * @throws {TypeError} - 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date to be changed
+ * @param amount - The amount of days to be added.
+ *
+ * @returns The new date with the days added
*
* @example
* // Add 10 days to 1 September 2014:
* const result = addDays(new Date(2014, 8, 1), 10)
* //=> Thu Sep 11 2014 00:00:00
*/
-
-function addDays(dirtyDate, dirtyAmount) {
- requiredArgs(2, arguments);
- var date = toDate(dirtyDate);
- var amount = toInteger(dirtyAmount);
-
- if (isNaN(amount)) {
- return new Date(NaN);
- }
-
+function addDays(date, amount) {
+ const _date = toDate(date);
+ if (isNaN(amount)) return constructFrom(date, NaN);
if (!amount) {
// If 0 days, no-op to avoid changing times in the hour before end of DST
- return date;
+ return _date;
}
-
- date.setDate(date.getDate() + amount);
- return date;
+ _date.setDate(_date.getDate() + amount);
+ return _date;
}
/**
@@ -52698,32 +51950,32 @@ function addDays(dirtyDate, dirtyAmount) {
* @description
* Add the specified number of months to the given date.
*
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} the new date with the months added
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date to be changed
+ * @param amount - The amount of months to be added.
+ *
+ * @returns The new date with the months added
*
* @example
* // Add 5 months to 1 September 2014:
* const result = addMonths(new Date(2014, 8, 1), 5)
* //=> Sun Feb 01 2015 00:00:00
+ *
+ * // Add one month to 30 January 2023:
+ * const result = addMonths(new Date(2023, 0, 30), 1)
+ * //=> Tue Feb 28 2023 00:00:00
*/
-
-function addMonths(dirtyDate, dirtyAmount) {
- requiredArgs(2, arguments);
- var date = toDate(dirtyDate);
- var amount = toInteger(dirtyAmount);
-
- if (isNaN(amount)) {
- return new Date(NaN);
- }
-
+function addMonths(date, amount) {
+ const _date = toDate(date);
+ if (isNaN(amount)) return constructFrom(date, NaN);
if (!amount) {
// If 0 months, no-op to avoid changing times in the hour before end of DST
- return date;
+ return _date;
}
+ const dayOfMonth = _date.getDate();
- var dayOfMonth = date.getDate(); // The JS Date object supports date math by accepting out-of-bounds values for
+ // The JS Date object supports date math by accepting out-of-bounds values for
// month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and
// new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we
// want except that dates will wrap around the end of a month, meaning that
@@ -52731,11 +51983,9 @@ function addMonths(dirtyDate, dirtyAmount) {
// we'll default to the end of the desired month by adding 1 to the desired
// month and using a date of 0 to back up one day to the end of the desired
// month.
-
- var endOfDesiredMonth = new Date(date.getTime());
- endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0);
- var daysInMonth = endOfDesiredMonth.getDate();
-
+ const endOfDesiredMonth = constructFrom(date, _date.getTime());
+ endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);
+ const daysInMonth = endOfDesiredMonth.getDate();
if (dayOfMonth >= daysInMonth) {
// If we're already at the end of the month, then this is the correct date
// and we're done.
@@ -52748,17 +51998,26 @@ function addMonths(dirtyDate, dirtyAmount) {
// the last day of the month and its local time was in the hour skipped or
// repeated next to a DST transition. So we use `date` instead which is
// guaranteed to still have the original time.
- date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth);
- return date;
+ _date.setFullYear(
+ endOfDesiredMonth.getFullYear(),
+ endOfDesiredMonth.getMonth(),
+ dayOfMonth,
+ );
+ return _date;
}
}
-var index_es_defaultOptions = {};
+let index_es_defaultOptions = {};
+
function getDefaultOptions() {
return index_es_defaultOptions;
}
/**
+ * The {@link startOfWeek} function options.
+ */
+
+/**
* @name startOfWeek
* @category Week Helpers
* @summary Return the start of a week for the given date.
@@ -52767,13 +52026,12 @@ function getDefaultOptions() {
* Return the start of a week for the given date.
* The result will be in the local timezone.
*
- * @param {Date|Number} date - the original date
- * @param {Object} [options] - an object with options.
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
- * @returns {Date} the start of a week
- * @throws {TypeError} 1 argument required
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The original date
+ * @param options - An object with options
+ *
+ * @returns The start of a week
*
* @example
* // The start of a week for 2 September 2014 11:55:00:
@@ -52785,24 +52043,22 @@ function getDefaultOptions() {
* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
* //=> Mon Sep 01 2014 00:00:00
*/
+function startOfWeek(date, options) {
+ const defaultOptions = getDefaultOptions();
+ const weekStartsOn =
+ options?.weekStartsOn ??
+ options?.locale?.options?.weekStartsOn ??
+ defaultOptions.weekStartsOn ??
+ defaultOptions.locale?.options?.weekStartsOn ??
+ 0;
-function startOfWeek(dirtyDate, options) {
- var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
-
- requiredArgs(1, arguments);
- var defaultOptions = getDefaultOptions();
- var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
+ const _date = toDate(date);
+ const day = _date.getDay();
+ const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- }
-
- var date = toDate(dirtyDate);
- var day = date.getDay();
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
- date.setDate(date.getDate() - diff);
- date.setHours(0, 0, 0, 0);
- return date;
+ _date.setDate(_date.getDate() - diff);
+ _date.setHours(0, 0, 0, 0);
+ return _date;
}
/**
@@ -52814,21 +52070,21 @@ function startOfWeek(dirtyDate, options) {
* Return the start of a day for the given date.
* The result will be in the local timezone.
*
- * @param {Date|Number} date - the original date
- * @returns {Date} the start of a day
- * @throws {TypeError} 1 argument required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The original date
+ *
+ * @returns The start of a day
*
* @example
* // The start of a day for 2 September 2014 11:55:00:
* const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
* //=> Tue Sep 02 2014 00:00:00
*/
-
-function startOfDay(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- date.setHours(0, 0, 0, 0);
- return date;
+function startOfDay(date) {
+ const _date = toDate(date);
+ _date.setHours(0, 0, 0, 0);
+ return _date;
}
/**
@@ -52839,22 +52095,21 @@ function startOfDay(dirtyDate) {
* @description
* Add the specified number of week to the given date.
*
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of weeks to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} the new date with the weeks added
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date to be changed
+ * @param amount - The amount of weeks to be added.
+ *
+ * @returns The new date with the weeks added
*
* @example
* // Add 4 weeks to 1 September 2014:
* const result = addWeeks(new Date(2014, 8, 1), 4)
* //=> Mon Sep 29 2014 00:00:00
*/
-
-function addWeeks(dirtyDate, dirtyAmount) {
- requiredArgs(2, arguments);
- var amount = toInteger(dirtyAmount);
- var days = amount * 7;
- return addDays(dirtyDate, days);
+function addWeeks(date, amount) {
+ const days = amount * 7;
+ return addDays(date, days);
}
/**
@@ -52865,21 +52120,20 @@ function addWeeks(dirtyDate, dirtyAmount) {
* @description
* Add the specified number of years to the given date.
*
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} the new date with the years added
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date to be changed
+ * @param amount - The amount of years to be added.
+ *
+ * @returns The new date with the years added
*
* @example
* // Add 5 years to 1 September 2014:
* const result = addYears(new Date(2014, 8, 1), 5)
* //=> Sun Sep 01 2019 00:00:00
*/
-
-function addYears(dirtyDate, dirtyAmount) {
- requiredArgs(2, arguments);
- var amount = toInteger(dirtyAmount);
- return addMonths(dirtyDate, amount * 12);
+function addYears(date, amount) {
+ return addMonths(date, amount * 12);
}
/**
@@ -52891,26 +52145,30 @@ function addYears(dirtyDate, dirtyAmount) {
* Return the end of a month for the given date.
* The result will be in the local timezone.
*
- * @param {Date|Number} date - the original date
- * @returns {Date} the end of a month
- * @throws {TypeError} 1 argument required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The original date
+ *
+ * @returns The end of a month
*
* @example
* // The end of a month for 2 September 2014 11:55:00:
* const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
* //=> Tue Sep 30 2014 23:59:59.999
*/
-
-function endOfMonth(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- var month = date.getMonth();
- date.setFullYear(date.getFullYear(), month + 1, 0);
- date.setHours(23, 59, 59, 999);
- return date;
+function endOfMonth(date) {
+ const _date = toDate(date);
+ const month = _date.getMonth();
+ _date.setFullYear(_date.getFullYear(), month + 1, 0);
+ _date.setHours(23, 59, 59, 999);
+ return _date;
}
/**
+ * The {@link eachDayOfInterval} function options.
+ */
+
+/**
* @name eachDayOfInterval
* @category Interval Helpers
* @summary Return the array of dates within the specified time interval.
@@ -52918,14 +52176,12 @@ function endOfMonth(dirtyDate) {
* @description
* Return the array of dates within the specified time interval.
*
- * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval}
- * @param {Object} [options] - an object with options.
- * @param {Number} [options.step=1] - the step to increment by. The value should be more than 1.
- * @returns {Date[]} the array with starts of days from the day of the interval start to the day of the interval end
- * @throws {TypeError} 1 argument required
- * @throws {RangeError} `options.step` must be a number greater than 1
- * @throws {RangeError} The start of an interval cannot be after its end
- * @throws {RangeError} Date in interval cannot be `Invalid Date`
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param interval - The interval.
+ * @param options - An object with options.
+ *
+ * @returns The array with starts of days from the day of the interval start to the day of the interval end
*
* @example
* // Each day between 6 October 2014 and 10 October 2014:
@@ -52941,36 +52197,38 @@ function endOfMonth(dirtyDate) {
* // Fri Oct 10 2014 00:00:00
* // ]
*/
+function eachDayOfInterval(interval, options) {
+ const startDate = toDate(interval.start);
+ const endDate = toDate(interval.end);
-function eachDayOfInterval(dirtyInterval, options) {
- var _options$step;
-
- requiredArgs(1, arguments);
- var interval = dirtyInterval || {};
- var startDate = toDate(interval.start);
- var endDate = toDate(interval.end);
- var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date`
+ let reversed = +startDate > +endDate;
+ const endTime = reversed ? +startDate : +endDate;
+ const currentDate = reversed ? endDate : startDate;
+ currentDate.setHours(0, 0, 0, 0);
- if (!(startDate.getTime() <= endTime)) {
- throw new RangeError('Invalid interval');
+ let step = options?.step ?? 1;
+ if (!step) return [];
+ if (step < 0) {
+ step = -step;
+ reversed = !reversed;
}
- var dates = [];
- var currentDate = startDate;
- currentDate.setHours(0, 0, 0, 0);
- var step = Number((_options$step = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step !== void 0 ? _options$step : 1);
- if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number greater than 1');
+ const dates = [];
- while (currentDate.getTime() <= endTime) {
+ while (+currentDate <= endTime) {
dates.push(toDate(currentDate));
currentDate.setDate(currentDate.getDate() + step);
currentDate.setHours(0, 0, 0, 0);
}
- return dates;
+ return reversed ? dates.reverse() : dates;
}
/**
+ * The {@link eachMonthOfInterval} function options.
+ */
+
+/**
* @name eachMonthOfInterval
* @category Interval Helpers
* @summary Return the array of months within the specified time interval.
@@ -52978,11 +52236,11 @@ function eachDayOfInterval(dirtyInterval, options) {
* @description
* Return the array of months within the specified time interval.
*
- * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval}
- * @returns {Date[]} the array with starts of months from the month of the interval start to the month of the interval end
- * @throws {TypeError} 1 argument required
- * @throws {RangeError} The start of an interval cannot be after its end
- * @throws {RangeError} Date in interval cannot be `Invalid Date`
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param interval - The interval
+ *
+ * @returns The array with starts of months from the month of the interval start to the month of the interval end
*
* @example
* // Each month between 6 February 2014 and 10 August 2014:
@@ -53000,32 +52258,38 @@ function eachDayOfInterval(dirtyInterval, options) {
* // Fri Aug 01 2014 00:00:00
* // ]
*/
+function eachMonthOfInterval(interval, options) {
+ const startDate = toDate(interval.start);
+ const endDate = toDate(interval.end);
-function eachMonthOfInterval(dirtyInterval) {
- requiredArgs(1, arguments);
- var interval = dirtyInterval || {};
- var startDate = toDate(interval.start);
- var endDate = toDate(interval.end);
- var endTime = endDate.getTime();
- var dates = []; // Throw an exception if start date is after end date or if any date is `Invalid Date`
+ let reversed = +startDate > +endDate;
+ const endTime = reversed ? +startDate : +endDate;
+ const currentDate = reversed ? endDate : startDate;
+ currentDate.setHours(0, 0, 0, 0);
+ currentDate.setDate(1);
- if (!(startDate.getTime() <= endTime)) {
- throw new RangeError('Invalid interval');
+ let step = options?.step ?? 1;
+ if (!step) return [];
+ if (step < 0) {
+ step = -step;
+ reversed = !reversed;
}
- var currentDate = startDate;
- currentDate.setHours(0, 0, 0, 0);
- currentDate.setDate(1);
+ const dates = [];
- while (currentDate.getTime() <= endTime) {
+ while (+currentDate <= endTime) {
dates.push(toDate(currentDate));
- currentDate.setMonth(currentDate.getMonth() + 1);
+ currentDate.setMonth(currentDate.getMonth() + step);
}
- return dates;
+ return reversed ? dates.reverse() : dates;
}
/**
+ * The {@link eachWeekOfInterval} function options.
+ */
+
+/**
* @name eachWeekOfInterval
* @category Interval Helpers
* @summary Return the array of weeks within the specified time interval.
@@ -53033,15 +52297,12 @@ function eachMonthOfInterval(dirtyInterval) {
* @description
* Return the array of weeks within the specified time interval.
*
- * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval}
- * @param {Object} [options] - an object with options.
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
- * @returns {Date[]} the array with starts of weeks from the week of the interval start to the week of the interval end
- * @throws {TypeError} 1 argument required
- * @throws {RangeError} `options.weekStartsOn` must be 0, 1, ..., 6
- * @throws {RangeError} The start of an interval cannot be after its end
- * @throws {RangeError} Date in interval cannot be `Invalid Date`
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param interval - The interval.
+ * @param options - An object with options.
+ *
+ * @returns The array with starts of weeks from the week of the interval start to the week of the interval end
*
* @example
* // Each week within interval 6 October 2014 - 23 November 2014:
@@ -53060,35 +52321,42 @@ function eachMonthOfInterval(dirtyInterval) {
* // Sun Nov 23 2014 00:00:00
* // ]
*/
+function eachWeekOfInterval(interval, options) {
+ const startDate = toDate(interval.start);
+ const endDate = toDate(interval.end);
-function eachWeekOfInterval(dirtyInterval, options) {
- requiredArgs(1, arguments);
- var interval = dirtyInterval || {};
- var startDate = toDate(interval.start);
- var endDate = toDate(interval.end);
- var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date`
-
- if (!(startDate.getTime() <= endTime)) {
- throw new RangeError('Invalid interval');
- }
-
- var startDateWeek = startOfWeek(startDate, options);
- var endDateWeek = startOfWeek(endDate, options); // Some timezones switch DST at midnight, making start of day unreliable in these timezones, 3pm is a safe bet
+ let reversed = +startDate > +endDate;
+ const startDateWeek = reversed
+ ? startOfWeek(endDate, options)
+ : startOfWeek(startDate, options);
+ const endDateWeek = reversed
+ ? startOfWeek(startDate, options)
+ : startOfWeek(endDate, options);
+ // Some timezones switch DST at midnight, making start of day unreliable in these timezones, 3pm is a safe bet
startDateWeek.setHours(15);
endDateWeek.setHours(15);
- endTime = endDateWeek.getTime();
- var weeks = [];
- var currentWeek = startDateWeek;
- while (currentWeek.getTime() <= endTime) {
- currentWeek.setHours(0);
- weeks.push(toDate(currentWeek));
- currentWeek = addWeeks(currentWeek, 1);
- currentWeek.setHours(15);
+ const endTime = +endDateWeek.getTime();
+ let currentDate = startDateWeek;
+
+ let step = options?.step ?? 1;
+ if (!step) return [];
+ if (step < 0) {
+ step = -step;
+ reversed = !reversed;
}
- return weeks;
+ const dates = [];
+
+ while (+currentDate <= endTime) {
+ currentDate.setHours(0);
+ dates.push(toDate(currentDate));
+ currentDate = addWeeks(currentDate, step);
+ currentDate.setHours(15);
+ }
+
+ return reversed ? dates.reverse() : dates;
}
/**
@@ -53100,25 +52368,29 @@ function eachWeekOfInterval(dirtyInterval, options) {
* Return the start of a month for the given date.
* The result will be in the local timezone.
*
- * @param {Date|Number} date - the original date
- * @returns {Date} the start of a month
- * @throws {TypeError} 1 argument required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The original date
+ *
+ * @returns The start of a month
*
* @example
* // The start of a month for 2 September 2014 11:55:00:
* const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))
* //=> Mon Sep 01 2014 00:00:00
*/
-
-function startOfMonth(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- date.setDate(1);
- date.setHours(0, 0, 0, 0);
- return date;
+function startOfMonth(date) {
+ const _date = toDate(date);
+ _date.setDate(1);
+ _date.setHours(0, 0, 0, 0);
+ return _date;
}
/**
+ * The {@link endOfWeek} function options.
+ */
+
+/**
* @name endOfWeek
* @category Week Helpers
* @summary Return the end of a week for the given date.
@@ -53127,13 +52399,12 @@ function startOfMonth(dirtyDate) {
* Return the end of a week for the given date.
* The result will be in the local timezone.
*
- * @param {Date|Number} date - the original date
- * @param {Object} [options] - an object with options.
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
- * @returns {Date} the end of a week
- * @throws {TypeError} 1 argument required
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The original date
+ * @param options - An object with options
+ *
+ * @returns The end of a week
*
* @example
* // The end of a week for 2 September 2014 11:55:00:
@@ -53145,23 +52416,22 @@ function startOfMonth(dirtyDate) {
* const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
* //=> Sun Sep 07 2014 23:59:59.999
*/
-function endOfWeek(dirtyDate, options) {
- var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
+function endOfWeek(date, options) {
+ const defaultOptions = getDefaultOptions();
+ const weekStartsOn =
+ options?.weekStartsOn ??
+ options?.locale?.options?.weekStartsOn ??
+ defaultOptions.weekStartsOn ??
+ defaultOptions.locale?.options?.weekStartsOn ??
+ 0;
- requiredArgs(1, arguments);
- var defaultOptions = getDefaultOptions();
- var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
+ const _date = toDate(date);
+ const day = _date.getDay();
+ const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- }
-
- var date = toDate(dirtyDate);
- var day = date.getDay();
- var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);
- date.setDate(date.getDate() + diff);
- date.setHours(23, 59, 59, 999);
- return date;
+ _date.setDate(_date.getDate() + diff);
+ _date.setHours(23, 59, 59, 999);
+ return _date;
}
/**
@@ -53172,22 +52442,22 @@ function endOfWeek(dirtyDate, options) {
* @description
* Get the number of days in a month of the given date.
*
- * @param {Date|Number} date - the given date
- * @returns {Number} the number of days in a month
- * @throws {TypeError} 1 argument required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The given date
+ *
+ * @returns The number of days in a month
*
* @example
* // How many days are in February 2000?
* const result = getDaysInMonth(new Date(2000, 1))
* //=> 29
*/
-
-function getDaysInMonth(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- var year = date.getFullYear();
- var monthIndex = date.getMonth();
- var lastDayOfMonth = new Date(0);
+function getDaysInMonth(date) {
+ const _date = toDate(date);
+ const year = _date.getFullYear();
+ const monthIndex = _date.getMonth();
+ const lastDayOfMonth = constructFrom(date, 0);
lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);
lastDayOfMonth.setHours(0, 0, 0, 0);
return lastDayOfMonth.getDate();
@@ -53201,22 +52471,22 @@ function getDaysInMonth(dirtyDate) {
* @description
* Is the first date after the second one?
*
- * @param {Date|Number} date - the date that should be after the other one to return true
- * @param {Date|Number} dateToCompare - the date to compare with
- * @returns {Boolean} the first date is after the second date
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date that should be after the other one to return true
+ * @param dateToCompare - The date to compare with
+ *
+ * @returns The first date is after the second date
*
* @example
* // Is 10 July 1989 after 11 February 1987?
* const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
* //=> true
*/
-
-function isAfter(dirtyDate, dirtyDateToCompare) {
- requiredArgs(2, arguments);
- var date = toDate(dirtyDate);
- var dateToCompare = toDate(dirtyDateToCompare);
- return date.getTime() > dateToCompare.getTime();
+function isAfter(date, dateToCompare) {
+ const _date = toDate(date);
+ const _dateToCompare = toDate(dateToCompare);
+ return _date.getTime() > _dateToCompare.getTime();
}
/**
@@ -53227,22 +52497,22 @@ function isAfter(dirtyDate, dirtyDateToCompare) {
* @description
* Is the first date before the second one?
*
- * @param {Date|Number} date - the date that should be before the other one to return true
- * @param {Date|Number} dateToCompare - the date to compare with
- * @returns {Boolean} the first date is before the second date
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date that should be before the other one to return true
+ * @param dateToCompare - The date to compare with
+ *
+ * @returns The first date is before the second date
*
* @example
* // Is 10 July 1989 before 11 February 1987?
* const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
* //=> false
*/
-
-function isBefore(dirtyDate, dirtyDateToCompare) {
- requiredArgs(2, arguments);
- var date = toDate(dirtyDate);
- var dateToCompare = toDate(dirtyDateToCompare);
- return date.getTime() < dateToCompare.getTime();
+function isBefore(date, dateToCompare) {
+ const _date = toDate(date);
+ const _dateToCompare = toDate(dateToCompare);
+ return +_date < +_dateToCompare;
}
/**
@@ -53253,10 +52523,12 @@ function isBefore(dirtyDate, dirtyDateToCompare) {
* @description
* Are the given dates equal?
*
- * @param {Date|Number} dateLeft - the first date to compare
- * @param {Date|Number} dateRight - the second date to compare
- * @returns {Boolean} the dates are equal
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param dateLeft - The first date to compare
+ * @param dateRight - The second date to compare
+ *
+ * @returns The dates are equal
*
* @example
* // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal?
@@ -53266,12 +52538,10 @@ function isBefore(dirtyDate, dirtyDateToCompare) {
* )
* //=> false
*/
-
-function isEqual(dirtyLeftDate, dirtyRightDate) {
- requiredArgs(2, arguments);
- var dateLeft = toDate(dirtyLeftDate);
- var dateRight = toDate(dirtyRightDate);
- return dateLeft.getTime() === dateRight.getTime();
+function isEqual(leftDate, rightDate) {
+ const _dateLeft = toDate(leftDate);
+ const _dateRight = toDate(rightDate);
+ return +_dateLeft === +_dateRight;
}
/**
@@ -53282,31 +52552,31 @@ function isEqual(dirtyLeftDate, dirtyRightDate) {
* @description
* Set the month to the given date.
*
- * @param {Date|Number} date - the date to be changed
- * @param {Number} month - the month of the new date
- * @returns {Date} the new date with the month set
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date to be changed
+ * @param month - The month index to set (0-11)
+ *
+ * @returns The new date with the month set
*
* @example
* // Set February to 1 September 2014:
* const result = setMonth(new Date(2014, 8, 1), 1)
* //=> Sat Feb 01 2014 00:00:00
*/
+function setMonth(date, month) {
+ const _date = toDate(date);
+ const year = _date.getFullYear();
+ const day = _date.getDate();
-function setMonth(dirtyDate, dirtyMonth) {
- requiredArgs(2, arguments);
- var date = toDate(dirtyDate);
- var month = toInteger(dirtyMonth);
- var year = date.getFullYear();
- var day = date.getDate();
- var dateWithDesiredMonth = new Date(0);
+ const dateWithDesiredMonth = constructFrom(date, 0);
dateWithDesiredMonth.setFullYear(year, month, 15);
dateWithDesiredMonth.setHours(0, 0, 0, 0);
- var daysInMonth = getDaysInMonth(dateWithDesiredMonth); // Set the last day of the new month
+ const daysInMonth = getDaysInMonth(dateWithDesiredMonth);
+ // Set the last day of the new month
// if the original date was the last day of the longer month
-
- date.setMonth(month, Math.min(day, daysInMonth));
- return date;
+ _date.setMonth(month, Math.min(day, daysInMonth));
+ return _date;
}
/**
@@ -53324,18 +52594,12 @@ function setMonth(dirtyDate, dirtyMonth) {
* to use native `Date#setX` methods. If you use this function, you may not want to include the
* other `setX` functions that date-fns provides if you are concerned about the bundle size.
*
- * @param {Date|Number} date - the date to be changed
- * @param {Object} values - an object with options
- * @param {Number} [values.year] - the number of years to be set
- * @param {Number} [values.month] - the number of months to be set
- * @param {Number} [values.date] - the number of days to be set
- * @param {Number} [values.hours] - the number of hours to be set
- * @param {Number} [values.minutes] - the number of minutes to be set
- * @param {Number} [values.seconds] - the number of seconds to be set
- * @param {Number} [values.milliseconds] - the number of milliseconds to be set
- * @returns {Date} the new date with options set
- * @throws {TypeError} 2 arguments required
- * @throws {RangeError} `values` must be an object
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date to be changed
+ * @param values - The date values to be set
+ *
+ * @returns The new date with options set
*
* @example
* // Transform 1 September 2014 into 20 October 2015 in a single line:
@@ -53347,48 +52611,44 @@ function setMonth(dirtyDate, dirtyMonth) {
* const result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 })
* //=> Mon Sep 01 2014 12:23:45
*/
-function set(dirtyDate, values) {
- requiredArgs(2, arguments);
-
- if (typeof values !== 'object' || values === null) {
- throw new RangeError('values parameter must be an object');
- }
- var date = toDate(dirtyDate); // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
+function set(date, values) {
+ let _date = toDate(date);
- if (isNaN(date.getTime())) {
- return new Date(NaN);
+ // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
+ if (isNaN(+_date)) {
+ return constructFrom(date, NaN);
}
if (values.year != null) {
- date.setFullYear(values.year);
+ _date.setFullYear(values.year);
}
if (values.month != null) {
- date = setMonth(date, values.month);
+ _date = setMonth(_date, values.month);
}
if (values.date != null) {
- date.setDate(toInteger(values.date));
+ _date.setDate(values.date);
}
if (values.hours != null) {
- date.setHours(toInteger(values.hours));
+ _date.setHours(values.hours);
}
if (values.minutes != null) {
- date.setMinutes(toInteger(values.minutes));
+ _date.setMinutes(values.minutes);
}
if (values.seconds != null) {
- date.setSeconds(toInteger(values.seconds));
+ _date.setSeconds(values.seconds);
}
if (values.milliseconds != null) {
- date.setMilliseconds(toInteger(values.milliseconds));
+ _date.setMilliseconds(values.milliseconds);
}
- return date;
+ return _date;
}
/**
@@ -53399,28 +52659,28 @@ function set(dirtyDate, values) {
* @description
* Set the year to the given date.
*
- * @param {Date|Number} date - the date to be changed
- * @param {Number} year - the year of the new date
- * @returns {Date} the new date with the year set
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date to be changed
+ * @param year - The year of the new date
+ *
+ * @returns The new date with the year set
*
* @example
* // Set year 2013 to 1 September 2014:
* const result = setYear(new Date(2014, 8, 1), 2013)
* //=> Sun Sep 01 2013 00:00:00
*/
+function setYear(date, year) {
+ const _date = toDate(date);
-function setYear(dirtyDate, dirtyYear) {
- requiredArgs(2, arguments);
- var date = toDate(dirtyDate);
- var year = toInteger(dirtyYear); // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
-
- if (isNaN(date.getTime())) {
- return new Date(NaN);
+ // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
+ if (isNaN(+_date)) {
+ return constructFrom(date, NaN);
}
- date.setFullYear(year);
- return date;
+ _date.setFullYear(year);
+ return _date;
}
/**
@@ -53432,17 +52692,13 @@ function setYear(dirtyDate, dirtyYear) {
* @description
* Return the start of today.
*
- * > ⚠️ Please note that this function is not present in the FP submodule as
- * > it uses `Date.now()` internally hence impure and can't be safely curried.
- *
- * @returns {Date} the start of today
+ * @returns The start of today
*
* @example
* // If today is 6 October 2014:
* const result = startOfToday()
* //=> Mon Oct 6 2014 00:00:00
*/
-
function startOfToday() {
return startOfDay(Date.now());
}
@@ -53455,21 +52711,20 @@ function startOfToday() {
* @description
* Subtract the specified number of months from the given date.
*
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of months to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} the new date with the months subtracted
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date to be changed
+ * @param amount - The amount of months to be subtracted.
+ *
+ * @returns The new date with the months subtracted
*
* @example
* // Subtract 5 months from 1 February 2015:
* const result = subMonths(new Date(2015, 1, 1), 5)
* //=> Mon Sep 01 2014 00:00:00
*/
-
-function subMonths(dirtyDate, dirtyAmount) {
- requiredArgs(2, arguments);
- var amount = toInteger(dirtyAmount);
- return addMonths(dirtyDate, -amount);
+function subMonths(date, amount) {
+ return addMonths(date, -amount);
}
/**
@@ -53480,21 +52735,20 @@ function subMonths(dirtyDate, dirtyAmount) {
* @description
* Subtract the specified number of years from the given date.
*
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of years to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} the new date with the years subtracted
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date to be changed
+ * @param amount - The amount of years to be subtracted.
+ *
+ * @returns The new date with the years subtracted
*
* @example
* // Subtract 5 years from 1 September 2014:
* const result = subYears(new Date(2014, 8, 1), 5)
* //=> Tue Sep 01 2009 00:00:00
*/
-
-function subYears(dirtyDate, dirtyAmount) {
- requiredArgs(2, arguments);
- var amount = toInteger(dirtyAmount);
- return addYears(dirtyDate, -amount);
+function subYears(date, amount) {
+ return addYears(date, -amount);
}
var Month;
@@ -53525,7 +52779,7 @@ var Day;
var inRange = function (date, min, max) {
return (isEqual(date, min) || isAfter(date, min)) && (isEqual(date, max) || isBefore(date, max));
};
-var clearTime = function (date) { return set(date, { hours: 0, minutes: 0, seconds: 0, milliseconds: 0 }); };
+var index_es_clearTime = function (date) { return set(date, { hours: 0, minutes: 0, seconds: 0, milliseconds: 0 }); };
var useLilius = function (_a) {
var _b = _a === void 0 ? {} : _a, _c = _b.weekStartsOn, weekStartsOn = _c === void 0 ? Day.SUNDAY : _c, _d = _b.viewing, initialViewing = _d === void 0 ? new Date() : _d, _e = _b.selected, initialSelected = _e === void 0 ? [] : _e, _f = _b.numberOfMonths, numberOfMonths = _f === void 0 ? 1 : _f;
var _g = (0,external_React_.useState)(initialViewing), viewing = _g[0], setViewing = _g[1];
@@ -53536,7 +52790,7 @@ var useLilius = function (_a) {
var viewYear = (0,external_React_.useCallback)(function (year) { return setViewing(function (v) { return setYear(v, year); }); }, []);
var viewPreviousYear = (0,external_React_.useCallback)(function () { return setViewing(function (v) { return subYears(v, 1); }); }, []);
var viewNextYear = (0,external_React_.useCallback)(function () { return setViewing(function (v) { return addYears(v, 1); }); }, []);
- var _h = (0,external_React_.useState)(initialSelected.map(clearTime)), selected = _h[0], setSelected = _h[1];
+ var _h = (0,external_React_.useState)(initialSelected.map(index_es_clearTime)), selected = _h[0], setSelected = _h[1];
var clearSelected = function () { return setSelected([]); };
var isSelected = (0,external_React_.useCallback)(function (date) { return selected.findIndex(function (s) { return isEqual(s, date); }) > -1; }, [selected]);
var select = (0,external_React_.useCallback)(function (date, replaceExisting) {
@@ -53589,7 +52843,7 @@ var useLilius = function (_a) {
});
}, [viewing, weekStartsOn, numberOfMonths]);
return {
- clearTime: clearTime,
+ clearTime: index_es_clearTime,
inRange: inRange,
viewing: viewing,
setViewing: setViewing,
@@ -53615,16 +52869,7 @@ var useLilius = function (_a) {
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/requiredArgs/index.js
-function requiredArgs_requiredArgs(required, args) {
- if (args.length < required) {
- throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
- }
-}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/toDate/index.js
-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); }
-
-
+;// CONCATENATED MODULE: ./node_modules/date-fns/toDate.mjs
/**
* @name toDate
* @category Common Helpers
@@ -53641,9 +52886,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
*
* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
*
- * @param {Date|Number} argument - the value to convert
- * @returns {Date} the parsed date in the local time zone
- * @throws {TypeError} 1 argument required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param argument - The value to convert
+ *
+ * @returns The parsed date in the local time zone
*
* @example
* // Clone the date:
@@ -53655,28 +52902,34 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
* const result = toDate(1392098430000)
* //=> Tue Feb 11 2014 11:30:30
*/
-
function toDate_toDate(argument) {
- requiredArgs_requiredArgs(1, arguments);
- var argStr = Object.prototype.toString.call(argument); // Clone the date
+ const argStr = Object.prototype.toString.call(argument);
- if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {
+ // Clone the date
+ if (
+ argument instanceof Date ||
+ (typeof argument === "object" && argStr === "[object Date]")
+ ) {
// Prevent the date to lose the milliseconds when passed to new Date() in IE10
- return new Date(argument.getTime());
- } else if (typeof argument === 'number' || argStr === '[object Number]') {
+ return new argument.constructor(+argument);
+ } else if (
+ typeof argument === "number" ||
+ argStr === "[object Number]" ||
+ typeof argument === "string" ||
+ argStr === "[object String]"
+ ) {
+ // TODO: Can we get rid of as?
return new Date(argument);
} else {
- if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
- // eslint-disable-next-line no-console
- console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"); // eslint-disable-next-line no-console
-
- console.warn(new Error().stack);
- }
-
+ // TODO: Can we get rid of as?
return new Date(NaN);
}
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/startOfDay/index.js
+
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_toDate = ((/* unused pure expression or super */ null && (toDate_toDate)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/startOfDay.mjs
/**
@@ -53688,37 +52941,69 @@ function toDate_toDate(argument) {
* Return the start of a day for the given date.
* The result will be in the local timezone.
*
- * @param {Date|Number} date - the original date
- * @returns {Date} the start of a day
- * @throws {TypeError} 1 argument required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The original date
+ *
+ * @returns The start of a day
*
* @example
* // The start of a day for 2 September 2014 11:55:00:
* const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
* //=> Tue Sep 02 2014 00:00:00
*/
-
-function startOfDay_startOfDay(dirtyDate) {
- requiredArgs_requiredArgs(1, arguments);
- var date = toDate_toDate(dirtyDate);
- date.setHours(0, 0, 0, 0);
- return date;
+function startOfDay_startOfDay(date) {
+ const _date = toDate_toDate(date);
+ _date.setHours(0, 0, 0, 0);
+ return _date;
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/toInteger/index.js
-function toInteger_toInteger(dirtyNumber) {
- if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
- return NaN;
- }
- var number = Number(dirtyNumber);
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_startOfDay = ((/* unused pure expression or super */ null && (startOfDay_startOfDay)));
- if (isNaN(number)) {
- return number;
+;// CONCATENATED MODULE: ./node_modules/date-fns/constructFrom.mjs
+/**
+ * @name constructFrom
+ * @category Generic Helpers
+ * @summary Constructs a date using the reference date and the value
+ *
+ * @description
+ * The function constructs a new date using the constructor from the reference
+ * date and the given value. It helps to build generic functions that accept
+ * date extensions.
+ *
+ * It defaults to `Date` if the passed reference date is a number or a string.
+ *
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The reference date to take constructor from
+ * @param value - The value to create the date
+ *
+ * @returns Date initialized using the given date and value
+ *
+ * @example
+ * import { constructFrom } from 'date-fns'
+ *
+ * // A function that clones a date preserving the original type
+ * function cloneDate<DateType extends Date(date: DateType): DateType {
+ * return constructFrom(
+ * date, // Use contrustor from the given date
+ * date.getTime() // Use the date value to create a new date
+ * )
+ * }
+ */
+function constructFrom_constructFrom(date, value) {
+ if (date instanceof Date) {
+ return new date.constructor(value);
+ } else {
+ return new Date(value);
}
-
- return number < 0 ? Math.ceil(number) : Math.floor(number);
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/addMonths/index.js
+
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_constructFrom = ((/* unused pure expression or super */ null && (constructFrom_constructFrom)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/addMonths.mjs
@@ -53730,32 +53015,32 @@ function toInteger_toInteger(dirtyNumber) {
* @description
* Add the specified number of months to the given date.
*
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} the new date with the months added
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date to be changed
+ * @param amount - The amount of months to be added.
+ *
+ * @returns The new date with the months added
*
* @example
* // Add 5 months to 1 September 2014:
* const result = addMonths(new Date(2014, 8, 1), 5)
* //=> Sun Feb 01 2015 00:00:00
+ *
+ * // Add one month to 30 January 2023:
+ * const result = addMonths(new Date(2023, 0, 30), 1)
+ * //=> Tue Feb 28 2023 00:00:00
*/
-
-function addMonths_addMonths(dirtyDate, dirtyAmount) {
- requiredArgs_requiredArgs(2, arguments);
- var date = toDate_toDate(dirtyDate);
- var amount = toInteger_toInteger(dirtyAmount);
-
- if (isNaN(amount)) {
- return new Date(NaN);
- }
-
+function addMonths_addMonths(date, amount) {
+ const _date = toDate_toDate(date);
+ if (isNaN(amount)) return constructFrom_constructFrom(date, NaN);
if (!amount) {
// If 0 months, no-op to avoid changing times in the hour before end of DST
- return date;
+ return _date;
}
+ const dayOfMonth = _date.getDate();
- var dayOfMonth = date.getDate(); // The JS Date object supports date math by accepting out-of-bounds values for
+ // The JS Date object supports date math by accepting out-of-bounds values for
// month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and
// new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we
// want except that dates will wrap around the end of a month, meaning that
@@ -53763,11 +53048,9 @@ function addMonths_addMonths(dirtyDate, dirtyAmount) {
// we'll default to the end of the desired month by adding 1 to the desired
// month and using a date of 0 to back up one day to the end of the desired
// month.
-
- var endOfDesiredMonth = new Date(date.getTime());
- endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0);
- var daysInMonth = endOfDesiredMonth.getDate();
-
+ const endOfDesiredMonth = constructFrom_constructFrom(date, _date.getTime());
+ endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);
+ const daysInMonth = endOfDesiredMonth.getDate();
if (dayOfMonth >= daysInMonth) {
// If we're already at the end of the month, then this is the correct date
// and we're done.
@@ -53780,12 +53063,19 @@ function addMonths_addMonths(dirtyDate, dirtyAmount) {
// the last day of the month and its local time was in the hour skipped or
// repeated next to a DST transition. So we use `date` instead which is
// guaranteed to still have the original time.
- date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth);
- return date;
+ _date.setFullYear(
+ endOfDesiredMonth.getFullYear(),
+ endOfDesiredMonth.getMonth(),
+ dayOfMonth,
+ );
+ return _date;
}
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/subMonths/index.js
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_addMonths = ((/* unused pure expression or super */ null && (addMonths_addMonths)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/subMonths.mjs
/**
@@ -53796,359 +53086,1498 @@ function addMonths_addMonths(dirtyDate, dirtyAmount) {
* @description
* Subtract the specified number of months from the given date.
*
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of months to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} the new date with the months subtracted
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date to be changed
+ * @param amount - The amount of months to be subtracted.
+ *
+ * @returns The new date with the months subtracted
*
* @example
* // Subtract 5 months from 1 February 2015:
* const result = subMonths(new Date(2015, 1, 1), 5)
* //=> Mon Sep 01 2014 00:00:00
*/
+function subMonths_subMonths(date, amount) {
+ return addMonths_addMonths(date, -amount);
+}
+
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_subMonths = ((/* unused pure expression or super */ null && (subMonths_subMonths)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/locale/en-US/_lib/formatDistance.mjs
+const formatDistanceLocale = {
+ lessThanXSeconds: {
+ one: "less than a second",
+ other: "less than {{count}} seconds",
+ },
+
+ xSeconds: {
+ one: "1 second",
+ other: "{{count}} seconds",
+ },
+
+ halfAMinute: "half a minute",
+
+ lessThanXMinutes: {
+ one: "less than a minute",
+ other: "less than {{count}} minutes",
+ },
+
+ xMinutes: {
+ one: "1 minute",
+ other: "{{count}} minutes",
+ },
-function subMonths_subMonths(dirtyDate, dirtyAmount) {
- requiredArgs_requiredArgs(2, arguments);
- var amount = toInteger_toInteger(dirtyAmount);
- return addMonths_addMonths(dirtyDate, -amount);
+ aboutXHours: {
+ one: "about 1 hour",
+ other: "about {{count}} hours",
+ },
+
+ xHours: {
+ one: "1 hour",
+ other: "{{count}} hours",
+ },
+
+ xDays: {
+ one: "1 day",
+ other: "{{count}} days",
+ },
+
+ aboutXWeeks: {
+ one: "about 1 week",
+ other: "about {{count}} weeks",
+ },
+
+ xWeeks: {
+ one: "1 week",
+ other: "{{count}} weeks",
+ },
+
+ aboutXMonths: {
+ one: "about 1 month",
+ other: "about {{count}} months",
+ },
+
+ xMonths: {
+ one: "1 month",
+ other: "{{count}} months",
+ },
+
+ aboutXYears: {
+ one: "about 1 year",
+ other: "about {{count}} years",
+ },
+
+ xYears: {
+ one: "1 year",
+ other: "{{count}} years",
+ },
+
+ overXYears: {
+ one: "over 1 year",
+ other: "over {{count}} years",
+ },
+
+ almostXYears: {
+ one: "almost 1 year",
+ other: "almost {{count}} years",
+ },
+};
+
+const formatDistance = (token, count, options) => {
+ let result;
+
+ const tokenValue = formatDistanceLocale[token];
+ if (typeof tokenValue === "string") {
+ result = tokenValue;
+ } else if (count === 1) {
+ result = tokenValue.one;
+ } else {
+ result = tokenValue.other.replace("{{count}}", count.toString());
+ }
+
+ if (options?.addSuffix) {
+ if (options.comparison && options.comparison > 0) {
+ return "in " + result;
+ } else {
+ return result + " ago";
+ }
+ }
+
+ return result;
+};
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/locale/_lib/buildFormatLongFn.mjs
+function buildFormatLongFn(args) {
+ return (options = {}) => {
+ // TODO: Remove String()
+ const width = options.width ? String(options.width) : args.defaultWidth;
+ const format = args.formats[width] || args.formats[args.defaultWidth];
+ return format;
+ };
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/isDate/index.js
-function isDate_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { isDate_typeof = function _typeof(obj) { return typeof obj; }; } else { isDate_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return isDate_typeof(obj); }
+;// CONCATENATED MODULE: ./node_modules/date-fns/locale/en-US/_lib/formatLong.mjs
+
+
+const dateFormats = {
+ full: "EEEE, MMMM do, y",
+ long: "MMMM do, y",
+ medium: "MMM d, y",
+ short: "MM/dd/yyyy",
+};
+
+const timeFormats = {
+ full: "h:mm:ss a zzzz",
+ long: "h:mm:ss a z",
+ medium: "h:mm:ss a",
+ short: "h:mm a",
+};
+
+const dateTimeFormats = {
+ full: "{{date}} 'at' {{time}}",
+ long: "{{date}} 'at' {{time}}",
+ medium: "{{date}}, {{time}}",
+ short: "{{date}}, {{time}}",
+};
+
+const formatLong = {
+ date: buildFormatLongFn({
+ formats: dateFormats,
+ defaultWidth: "full",
+ }),
+
+ time: buildFormatLongFn({
+ formats: timeFormats,
+ defaultWidth: "full",
+ }),
+
+ dateTime: buildFormatLongFn({
+ formats: dateTimeFormats,
+ defaultWidth: "full",
+ }),
+};
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/locale/en-US/_lib/formatRelative.mjs
+const formatRelativeLocale = {
+ lastWeek: "'last' eeee 'at' p",
+ yesterday: "'yesterday at' p",
+ today: "'today at' p",
+ tomorrow: "'tomorrow at' p",
+ nextWeek: "eeee 'at' p",
+ other: "P",
+};
+
+const formatRelative = (token, _date, _baseDate, _options) =>
+ formatRelativeLocale[token];
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs
+/* eslint-disable no-unused-vars */
/**
- * @name isDate
- * @category Common Helpers
- * @summary Is the given value a date?
+ * The localize function argument callback which allows to convert raw value to
+ * the actual type.
*
+ * @param value - The value to convert
+ *
+ * @returns The converted value
+ */
+
+/**
+ * The map of localized values for each width.
+ */
+
+/**
+ * The index type of the locale unit value. It types conversion of units of
+ * values that don't start at 0 (i.e. quarters).
+ */
+
+/**
+ * Converts the unit value to the tuple of values.
+ */
+
+/**
+ * The tuple of localized era values. The first element represents BC,
+ * the second element represents AD.
+ */
+
+/**
+ * The tuple of localized quarter values. The first element represents Q1.
+ */
+
+/**
+ * The tuple of localized day values. The first element represents Sunday.
+ */
+
+/**
+ * The tuple of localized month values. The first element represents January.
+ */
+
+function buildLocalizeFn(args) {
+ return (value, options) => {
+ const context = options?.context ? String(options.context) : "standalone";
+
+ let valuesArray;
+ if (context === "formatting" && args.formattingValues) {
+ const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
+ const width = options?.width ? String(options.width) : defaultWidth;
+
+ valuesArray =
+ args.formattingValues[width] || args.formattingValues[defaultWidth];
+ } else {
+ const defaultWidth = args.defaultWidth;
+ const width = options?.width ? String(options.width) : args.defaultWidth;
+
+ valuesArray = args.values[width] || args.values[defaultWidth];
+ }
+ const index = args.argumentCallback ? args.argumentCallback(value) : value;
+
+ // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
+ return valuesArray[index];
+ };
+}
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/locale/en-US/_lib/localize.mjs
+
+
+const eraValues = {
+ narrow: ["B", "A"],
+ abbreviated: ["BC", "AD"],
+ wide: ["Before Christ", "Anno Domini"],
+};
+
+const quarterValues = {
+ narrow: ["1", "2", "3", "4"],
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"],
+};
+
+// Note: in English, the names of days of the week and months are capitalized.
+// If you are making a new locale based on this one, check if the same is true for the language you're working on.
+// Generally, formatted dates should look like they are in the middle of a sentence,
+// e.g. in Spanish language the weekdays and months should be in the lowercase.
+const monthValues = {
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
+ abbreviated: [
+ "Jan",
+ "Feb",
+ "Mar",
+ "Apr",
+ "May",
+ "Jun",
+ "Jul",
+ "Aug",
+ "Sep",
+ "Oct",
+ "Nov",
+ "Dec",
+ ],
+
+ wide: [
+ "January",
+ "February",
+ "March",
+ "April",
+ "May",
+ "June",
+ "July",
+ "August",
+ "September",
+ "October",
+ "November",
+ "December",
+ ],
+};
+
+const dayValues = {
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
+ wide: [
+ "Sunday",
+ "Monday",
+ "Tuesday",
+ "Wednesday",
+ "Thursday",
+ "Friday",
+ "Saturday",
+ ],
+};
+
+const dayPeriodValues = {
+ narrow: {
+ am: "a",
+ pm: "p",
+ midnight: "mi",
+ noon: "n",
+ morning: "morning",
+ afternoon: "afternoon",
+ evening: "evening",
+ night: "night",
+ },
+ abbreviated: {
+ am: "AM",
+ pm: "PM",
+ midnight: "midnight",
+ noon: "noon",
+ morning: "morning",
+ afternoon: "afternoon",
+ evening: "evening",
+ night: "night",
+ },
+ wide: {
+ am: "a.m.",
+ pm: "p.m.",
+ midnight: "midnight",
+ noon: "noon",
+ morning: "morning",
+ afternoon: "afternoon",
+ evening: "evening",
+ night: "night",
+ },
+};
+
+const formattingDayPeriodValues = {
+ narrow: {
+ am: "a",
+ pm: "p",
+ midnight: "mi",
+ noon: "n",
+ morning: "in the morning",
+ afternoon: "in the afternoon",
+ evening: "in the evening",
+ night: "at night",
+ },
+ abbreviated: {
+ am: "AM",
+ pm: "PM",
+ midnight: "midnight",
+ noon: "noon",
+ morning: "in the morning",
+ afternoon: "in the afternoon",
+ evening: "in the evening",
+ night: "at night",
+ },
+ wide: {
+ am: "a.m.",
+ pm: "p.m.",
+ midnight: "midnight",
+ noon: "noon",
+ morning: "in the morning",
+ afternoon: "in the afternoon",
+ evening: "in the evening",
+ night: "at night",
+ },
+};
+
+const ordinalNumber = (dirtyNumber, _options) => {
+ const number = Number(dirtyNumber);
+
+ // If ordinal numbers depend on context, for example,
+ // if they are different for different grammatical genders,
+ // use `options.unit`.
+ //
+ // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
+ // 'day', 'hour', 'minute', 'second'.
+
+ const rem100 = number % 100;
+ if (rem100 > 20 || rem100 < 10) {
+ switch (rem100 % 10) {
+ case 1:
+ return number + "st";
+ case 2:
+ return number + "nd";
+ case 3:
+ return number + "rd";
+ }
+ }
+ return number + "th";
+};
+
+const localize = {
+ ordinalNumber,
+
+ era: buildLocalizeFn({
+ values: eraValues,
+ defaultWidth: "wide",
+ }),
+
+ quarter: buildLocalizeFn({
+ values: quarterValues,
+ defaultWidth: "wide",
+ argumentCallback: (quarter) => quarter - 1,
+ }),
+
+ month: buildLocalizeFn({
+ values: monthValues,
+ defaultWidth: "wide",
+ }),
+
+ day: buildLocalizeFn({
+ values: dayValues,
+ defaultWidth: "wide",
+ }),
+
+ dayPeriod: buildLocalizeFn({
+ values: dayPeriodValues,
+ defaultWidth: "wide",
+ formattingValues: formattingDayPeriodValues,
+ defaultFormattingWidth: "wide",
+ }),
+};
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/locale/_lib/buildMatchFn.mjs
+function buildMatchFn(args) {
+ return (string, options = {}) => {
+ const width = options.width;
+
+ const matchPattern =
+ (width && args.matchPatterns[width]) ||
+ args.matchPatterns[args.defaultMatchWidth];
+ const matchResult = string.match(matchPattern);
+
+ if (!matchResult) {
+ return null;
+ }
+ const matchedString = matchResult[0];
+
+ const parsePatterns =
+ (width && args.parsePatterns[width]) ||
+ args.parsePatterns[args.defaultParseWidth];
+
+ const key = Array.isArray(parsePatterns)
+ ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
+ findKey(parsePatterns, (pattern) => pattern.test(matchedString));
+
+ let value;
+
+ value = args.valueCallback ? args.valueCallback(key) : key;
+ value = options.valueCallback
+ ? // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
+ options.valueCallback(value)
+ : value;
+
+ const rest = string.slice(matchedString.length);
+
+ return { value, rest };
+ };
+}
+
+function findKey(object, predicate) {
+ for (const key in object) {
+ if (
+ Object.prototype.hasOwnProperty.call(object, key) &&
+ predicate(object[key])
+ ) {
+ return key;
+ }
+ }
+ return undefined;
+}
+
+function findIndex(array, predicate) {
+ for (let key = 0; key < array.length; key++) {
+ if (predicate(array[key])) {
+ return key;
+ }
+ }
+ return undefined;
+}
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/locale/_lib/buildMatchPatternFn.mjs
+function buildMatchPatternFn(args) {
+ return (string, options = {}) => {
+ const matchResult = string.match(args.matchPattern);
+ if (!matchResult) return null;
+ const matchedString = matchResult[0];
+
+ const parseResult = string.match(args.parsePattern);
+ if (!parseResult) return null;
+ let value = args.valueCallback
+ ? args.valueCallback(parseResult[0])
+ : parseResult[0];
+
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
+ value = options.valueCallback ? options.valueCallback(value) : value;
+
+ const rest = string.slice(matchedString.length);
+
+ return { value, rest };
+ };
+}
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/locale/en-US/_lib/match.mjs
+
+
+
+const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
+const parseOrdinalNumberPattern = /\d+/i;
+
+const matchEraPatterns = {
+ narrow: /^(b|a)/i,
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
+ wide: /^(before christ|before common era|anno domini|common era)/i,
+};
+const parseEraPatterns = {
+ any: [/^b/i, /^(a|c)/i],
+};
+
+const matchQuarterPatterns = {
+ narrow: /^[1234]/i,
+ abbreviated: /^q[1234]/i,
+ wide: /^[1234](th|st|nd|rd)? quarter/i,
+};
+const parseQuarterPatterns = {
+ any: [/1/i, /2/i, /3/i, /4/i],
+};
+
+const matchMonthPatterns = {
+ narrow: /^[jfmasond]/i,
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i,
+};
+const parseMonthPatterns = {
+ narrow: [
+ /^j/i,
+ /^f/i,
+ /^m/i,
+ /^a/i,
+ /^m/i,
+ /^j/i,
+ /^j/i,
+ /^a/i,
+ /^s/i,
+ /^o/i,
+ /^n/i,
+ /^d/i,
+ ],
+
+ any: [
+ /^ja/i,
+ /^f/i,
+ /^mar/i,
+ /^ap/i,
+ /^may/i,
+ /^jun/i,
+ /^jul/i,
+ /^au/i,
+ /^s/i,
+ /^o/i,
+ /^n/i,
+ /^d/i,
+ ],
+};
+
+const matchDayPatterns = {
+ narrow: /^[smtwf]/i,
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i,
+};
+const parseDayPatterns = {
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],
+};
+
+const matchDayPeriodPatterns = {
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i,
+};
+const parseDayPeriodPatterns = {
+ any: {
+ am: /^a/i,
+ pm: /^p/i,
+ midnight: /^mi/i,
+ noon: /^no/i,
+ morning: /morning/i,
+ afternoon: /afternoon/i,
+ evening: /evening/i,
+ night: /night/i,
+ },
+};
+
+const match_match = {
+ ordinalNumber: buildMatchPatternFn({
+ matchPattern: matchOrdinalNumberPattern,
+ parsePattern: parseOrdinalNumberPattern,
+ valueCallback: (value) => parseInt(value, 10),
+ }),
+
+ era: buildMatchFn({
+ matchPatterns: matchEraPatterns,
+ defaultMatchWidth: "wide",
+ parsePatterns: parseEraPatterns,
+ defaultParseWidth: "any",
+ }),
+
+ quarter: buildMatchFn({
+ matchPatterns: matchQuarterPatterns,
+ defaultMatchWidth: "wide",
+ parsePatterns: parseQuarterPatterns,
+ defaultParseWidth: "any",
+ valueCallback: (index) => index + 1,
+ }),
+
+ month: buildMatchFn({
+ matchPatterns: matchMonthPatterns,
+ defaultMatchWidth: "wide",
+ parsePatterns: parseMonthPatterns,
+ defaultParseWidth: "any",
+ }),
+
+ day: buildMatchFn({
+ matchPatterns: matchDayPatterns,
+ defaultMatchWidth: "wide",
+ parsePatterns: parseDayPatterns,
+ defaultParseWidth: "any",
+ }),
+
+ dayPeriod: buildMatchFn({
+ matchPatterns: matchDayPeriodPatterns,
+ defaultMatchWidth: "any",
+ parsePatterns: parseDayPeriodPatterns,
+ defaultParseWidth: "any",
+ }),
+};
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/locale/en-US.mjs
+
+
+
+
+
+
+/**
+ * @category Locales
+ * @summary English locale (United States).
+ * @language English
+ * @iso-639-2 eng
+ * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)
+ * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)
+ */
+const enUS = {
+ code: "en-US",
+ formatDistance: formatDistance,
+ formatLong: formatLong,
+ formatRelative: formatRelative,
+ localize: localize,
+ match: match_match,
+ options: {
+ weekStartsOn: 0 /* Sunday */,
+ firstWeekContainsDate: 1,
+ },
+};
+
+// Fallback for modularized imports:
+/* harmony default export */ const en_US = ((/* unused pure expression or super */ null && (enUS)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/_lib/defaultOptions.mjs
+let defaultOptions_defaultOptions = {};
+
+function defaultOptions_getDefaultOptions() {
+ return defaultOptions_defaultOptions;
+}
+
+function setDefaultOptions(newOptions) {
+ defaultOptions_defaultOptions = newOptions;
+}
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/constants.mjs
+/**
+ * @module constants
+ * @summary Useful constants
* @description
- * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
+ * Collection of useful date constants.
*
- * @param {*} value - the value to check
- * @returns {boolean} true if the given value is a date
- * @throws {TypeError} 1 arguments required
+ * The constants could be imported from `date-fns/constants`:
*
- * @example
- * // For a valid date:
- * const result = isDate(new Date())
- * //=> true
+ * ```ts
+ * import { maxTime, minTime } from "./constants/date-fns/constants";
*
- * @example
- * // For an invalid date:
- * const result = isDate(new Date(NaN))
- * //=> true
+ * function isAllowedTime(time) {
+ * return time <= maxTime && time >= minTime;
+ * }
+ * ```
+ */
+
+/**
+ * @constant
+ * @name daysInWeek
+ * @summary Days in 1 week.
+ */
+const daysInWeek = 7;
+
+/**
+ * @constant
+ * @name daysInYear
+ * @summary Days in 1 year.
+ *
+ * @description
+ * How many days in a year.
+ *
+ * One years equals 365.2425 days according to the formula:
+ *
+ * > Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400.
+ * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days
+ */
+const daysInYear = 365.2425;
+
+/**
+ * @constant
+ * @name maxTime
+ * @summary Maximum allowed time.
*
* @example
- * // For some value:
- * const result = isDate('2014-02-31')
+ * import { maxTime } from "./constants/date-fns/constants";
+ *
+ * const isValid = 8640000000000001 <= maxTime;
* //=> false
*
+ * new Date(8640000000000001);
+ * //=> Invalid Date
+ */
+const maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;
+
+/**
+ * @constant
+ * @name minTime
+ * @summary Minimum allowed time.
+ *
* @example
- * // For an object:
- * const result = isDate({})
+ * import { minTime } from "./constants/date-fns/constants";
+ *
+ * const isValid = -8640000000000001 >= minTime;
* //=> false
+ *
+ * new Date(-8640000000000001)
+ * //=> Invalid Date
*/
+const minTime = -maxTime;
-function isDate(value) {
- requiredArgs_requiredArgs(1, arguments);
- return value instanceof Date || isDate_typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
+/**
+ * @constant
+ * @name millisecondsInWeek
+ * @summary Milliseconds in 1 week.
+ */
+const millisecondsInWeek = 604800000;
+
+/**
+ * @constant
+ * @name millisecondsInDay
+ * @summary Milliseconds in 1 day.
+ */
+const millisecondsInDay = 86400000;
+
+/**
+ * @constant
+ * @name millisecondsInMinute
+ * @summary Milliseconds in 1 minute
+ */
+const millisecondsInMinute = 60000;
+
+/**
+ * @constant
+ * @name millisecondsInHour
+ * @summary Milliseconds in 1 hour
+ */
+const millisecondsInHour = 3600000;
+
+/**
+ * @constant
+ * @name millisecondsInSecond
+ * @summary Milliseconds in 1 second
+ */
+const millisecondsInSecond = 1000;
+
+/**
+ * @constant
+ * @name minutesInYear
+ * @summary Minutes in 1 year.
+ */
+const minutesInYear = 525600;
+
+/**
+ * @constant
+ * @name minutesInMonth
+ * @summary Minutes in 1 month.
+ */
+const minutesInMonth = 43200;
+
+/**
+ * @constant
+ * @name minutesInDay
+ * @summary Minutes in 1 day.
+ */
+const minutesInDay = 1440;
+
+/**
+ * @constant
+ * @name minutesInHour
+ * @summary Minutes in 1 hour.
+ */
+const minutesInHour = 60;
+
+/**
+ * @constant
+ * @name monthsInQuarter
+ * @summary Months in 1 quarter.
+ */
+const monthsInQuarter = 3;
+
+/**
+ * @constant
+ * @name monthsInYear
+ * @summary Months in 1 year.
+ */
+const monthsInYear = 12;
+
+/**
+ * @constant
+ * @name quartersInYear
+ * @summary Quarters in 1 year
+ */
+const quartersInYear = 4;
+
+/**
+ * @constant
+ * @name secondsInHour
+ * @summary Seconds in 1 hour.
+ */
+const secondsInHour = 3600;
+
+/**
+ * @constant
+ * @name secondsInMinute
+ * @summary Seconds in 1 minute.
+ */
+const secondsInMinute = 60;
+
+/**
+ * @constant
+ * @name secondsInDay
+ * @summary Seconds in 1 day.
+ */
+const secondsInDay = secondsInHour * 24;
+
+/**
+ * @constant
+ * @name secondsInWeek
+ * @summary Seconds in 1 week.
+ */
+const secondsInWeek = secondsInDay * 7;
+
+/**
+ * @constant
+ * @name secondsInYear
+ * @summary Seconds in 1 year.
+ */
+const secondsInYear = secondsInDay * daysInYear;
+
+/**
+ * @constant
+ * @name secondsInMonth
+ * @summary Seconds in 1 month
+ */
+const secondsInMonth = secondsInYear / 12;
+
+/**
+ * @constant
+ * @name secondsInQuarter
+ * @summary Seconds in 1 quarter.
+ */
+const secondsInQuarter = secondsInMonth * 3;
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.mjs
+
+
+/**
+ * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
+ * They usually appear for dates that denote time before the timezones were introduced
+ * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
+ * and GMT+01:00:00 after that date)
+ *
+ * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
+ * which would lead to incorrect calculations.
+ *
+ * This function returns the timezone offset in milliseconds that takes seconds in account.
+ */
+function getTimezoneOffsetInMilliseconds(date) {
+ const _date = toDate_toDate(date);
+ const utcDate = new Date(
+ Date.UTC(
+ _date.getFullYear(),
+ _date.getMonth(),
+ _date.getDate(),
+ _date.getHours(),
+ _date.getMinutes(),
+ _date.getSeconds(),
+ _date.getMilliseconds(),
+ ),
+ );
+ utcDate.setUTCFullYear(_date.getFullYear());
+ return +date - +utcDate;
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/isValid/index.js
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/differenceInCalendarDays.mjs
+
/**
- * @name isValid
- * @category Common Helpers
- * @summary Is the given date valid?
+ * @name differenceInCalendarDays
+ * @category Day Helpers
+ * @summary Get the number of calendar days between the given dates.
*
* @description
- * Returns false if argument is Invalid Date and true otherwise.
- * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
- * Invalid Date is a Date, whose time value is NaN.
+ * Get the number of calendar days between the given dates. This means that the times are removed
+ * from the dates and then the difference in days is calculated.
*
- * Time value of Date: http://es5.github.io/#x15.9.1.1
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
*
- * @param {*} date - the date to check
- * @returns {Boolean} the date is valid
- * @throws {TypeError} 1 argument required
+ * @param dateLeft - The later date
+ * @param dateRight - The earlier date
*
- * @example
- * // For the valid date:
- * const result = isValid(new Date(2014, 1, 31))
- * //=> true
+ * @returns The number of calendar days
*
* @example
- * // For the value, convertable into a date:
- * const result = isValid(1393804800000)
- * //=> true
+ * // How many calendar days are between
+ * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?
+ * const result = differenceInCalendarDays(
+ * new Date(2012, 6, 2, 0, 0),
+ * new Date(2011, 6, 2, 23, 0)
+ * )
+ * //=> 366
+ * // How many calendar days are between
+ * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?
+ * const result = differenceInCalendarDays(
+ * new Date(2011, 6, 3, 0, 1),
+ * new Date(2011, 6, 2, 23, 59)
+ * )
+ * //=> 1
+ */
+function differenceInCalendarDays(dateLeft, dateRight) {
+ const startOfDayLeft = startOfDay_startOfDay(dateLeft);
+ const startOfDayRight = startOfDay_startOfDay(dateRight);
+
+ const timestampLeft =
+ +startOfDayLeft - getTimezoneOffsetInMilliseconds(startOfDayLeft);
+ const timestampRight =
+ +startOfDayRight - getTimezoneOffsetInMilliseconds(startOfDayRight);
+
+ // Round the number of days to the nearest integer because the number of
+ // milliseconds in a day is not constant (e.g. it's different in the week of
+ // the daylight saving time clock shift).
+ return Math.round((timestampLeft - timestampRight) / millisecondsInDay);
+}
+
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_differenceInCalendarDays = ((/* unused pure expression or super */ null && (differenceInCalendarDays)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/startOfYear.mjs
+
+
+
+/**
+ * @name startOfYear
+ * @category Year Helpers
+ * @summary Return the start of a year for the given date.
+ *
+ * @description
+ * Return the start of a year for the given date.
+ * The result will be in the local timezone.
+ *
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The original date
+ *
+ * @returns The start of a year
*
* @example
- * // For the invalid date:
- * const result = isValid(new Date(''))
- * //=> false
+ * // The start of a year for 2 September 2014 11:55:00:
+ * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))
+ * //=> Wed Jan 01 2014 00:00:00
*/
+function startOfYear(date) {
+ const cleanDate = toDate_toDate(date);
+ const _date = constructFrom_constructFrom(date, 0);
+ _date.setFullYear(cleanDate.getFullYear(), 0, 1);
+ _date.setHours(0, 0, 0, 0);
+ return _date;
+}
-function isValid(dirtyDate) {
- requiredArgs_requiredArgs(1, arguments);
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_startOfYear = ((/* unused pure expression or super */ null && (startOfYear)));
- if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
- return false;
- }
+;// CONCATENATED MODULE: ./node_modules/date-fns/getDayOfYear.mjs
- var date = toDate_toDate(dirtyDate);
- return !isNaN(Number(date));
-}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/addMilliseconds/index.js
/**
- * @name addMilliseconds
- * @category Millisecond Helpers
- * @summary Add the specified number of milliseconds to the given date.
+ * @name getDayOfYear
+ * @category Day Helpers
+ * @summary Get the day of the year of the given date.
*
* @description
- * Add the specified number of milliseconds to the given date.
+ * Get the day of the year of the given date.
+ *
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
*
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} the new date with the milliseconds added
- * @throws {TypeError} 2 arguments required
+ * @param date - The given date
+ *
+ * @returns The day of year
*
* @example
- * // Add 750 milliseconds to 10 July 2014 12:45:30.000:
- * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
- * //=> Thu Jul 10 2014 12:45:30.750
+ * // Which day of the year is 2 July 2014?
+ * const result = getDayOfYear(new Date(2014, 6, 2))
+ * //=> 183
*/
-
-function addMilliseconds(dirtyDate, dirtyAmount) {
- requiredArgs_requiredArgs(2, arguments);
- var timestamp = toDate_toDate(dirtyDate).getTime();
- var amount = toInteger_toInteger(dirtyAmount);
- return new Date(timestamp + amount);
+function getDayOfYear(date) {
+ const _date = toDate_toDate(date);
+ const diff = differenceInCalendarDays(_date, startOfYear(_date));
+ const dayOfYear = diff + 1;
+ return dayOfYear;
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/subMilliseconds/index.js
+
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_getDayOfYear = ((/* unused pure expression or super */ null && (getDayOfYear)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/startOfWeek.mjs
/**
- * @name subMilliseconds
- * @category Millisecond Helpers
- * @summary Subtract the specified number of milliseconds from the given date.
+ * The {@link startOfWeek} function options.
+ */
+
+/**
+ * @name startOfWeek
+ * @category Week Helpers
+ * @summary Return the start of a week for the given date.
*
* @description
- * Subtract the specified number of milliseconds from the given date.
+ * Return the start of a week for the given date.
+ * The result will be in the local timezone.
*
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} the new date with the milliseconds subtracted
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The original date
+ * @param options - An object with options
+ *
+ * @returns The start of a week
+ *
+ * @example
+ * // The start of a week for 2 September 2014 11:55:00:
+ * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
+ * //=> Sun Aug 31 2014 00:00:00
*
* @example
- * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:
- * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
- * //=> Thu Jul 10 2014 12:45:29.250
+ * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
+ * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
+ * //=> Mon Sep 01 2014 00:00:00
*/
+function startOfWeek_startOfWeek(date, options) {
+ const defaultOptions = defaultOptions_getDefaultOptions();
+ const weekStartsOn =
+ options?.weekStartsOn ??
+ options?.locale?.options?.weekStartsOn ??
+ defaultOptions.weekStartsOn ??
+ defaultOptions.locale?.options?.weekStartsOn ??
+ 0;
-function subMilliseconds(dirtyDate, dirtyAmount) {
- requiredArgs_requiredArgs(2, arguments);
- var amount = toInteger_toInteger(dirtyAmount);
- return addMilliseconds(dirtyDate, -amount);
+ const _date = toDate_toDate(date);
+ const day = _date.getDay();
+ const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
+
+ _date.setDate(_date.getDate() - diff);
+ _date.setHours(0, 0, 0, 0);
+ return _date;
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_startOfWeek = ((/* unused pure expression or super */ null && (startOfWeek_startOfWeek)));
-var MILLISECONDS_IN_DAY = 86400000;
-function getUTCDayOfYear(dirtyDate) {
- requiredArgs_requiredArgs(1, arguments);
- var date = toDate_toDate(dirtyDate);
- var timestamp = date.getTime();
- date.setUTCMonth(0, 1);
- date.setUTCHours(0, 0, 0, 0);
- var startOfYearTimestamp = date.getTime();
- var difference = timestamp - startOfYearTimestamp;
- return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;
-}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js
+;// CONCATENATED MODULE: ./node_modules/date-fns/startOfISOWeek.mjs
-function startOfUTCISOWeek(dirtyDate) {
- requiredArgs_requiredArgs(1, arguments);
- var weekStartsOn = 1;
- var date = toDate_toDate(dirtyDate);
- var day = date.getUTCDay();
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
- date.setUTCDate(date.getUTCDate() - diff);
- date.setUTCHours(0, 0, 0, 0);
- return date;
+/**
+ * @name startOfISOWeek
+ * @category ISO Week Helpers
+ * @summary Return the start of an ISO week for the given date.
+ *
+ * @description
+ * Return the start of an ISO week for the given date.
+ * The result will be in the local timezone.
+ *
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
+ *
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The original date
+ *
+ * @returns The start of an ISO week
+ *
+ * @example
+ * // The start of an ISO week for 2 September 2014 11:55:00:
+ * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))
+ * //=> Mon Sep 01 2014 00:00:00
+ */
+function startOfISOWeek(date) {
+ return startOfWeek_startOfWeek(date, { weekStartsOn: 1 });
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_startOfISOWeek = ((/* unused pure expression or super */ null && (startOfISOWeek)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/getISOWeekYear.mjs
+
+
+
+
+/**
+ * @name getISOWeekYear
+ * @category ISO Week-Numbering Year Helpers
+ * @summary Get the ISO week-numbering year of the given date.
+ *
+ * @description
+ * Get the ISO week-numbering year of the given date,
+ * which always starts 3 days before the year's first Thursday.
+ *
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
+ *
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The given date
+ *
+ * @returns The ISO week-numbering year
+ *
+ * @example
+ * // Which ISO-week numbering year is 2 January 2005?
+ * const result = getISOWeekYear(new Date(2005, 0, 2))
+ * //=> 2004
+ */
+function getISOWeekYear(date) {
+ const _date = toDate_toDate(date);
+ const year = _date.getFullYear();
+ const fourthOfJanuaryOfNextYear = constructFrom_constructFrom(date, 0);
+ fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);
+ fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);
+ const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);
-function getUTCISOWeekYear(dirtyDate) {
- requiredArgs_requiredArgs(1, arguments);
- var date = toDate_toDate(dirtyDate);
- var year = date.getUTCFullYear();
- var fourthOfJanuaryOfNextYear = new Date(0);
- fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);
- fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);
- var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear);
- var fourthOfJanuaryOfThisYear = new Date(0);
- fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);
- fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);
- var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);
+ const fourthOfJanuaryOfThisYear = constructFrom_constructFrom(date, 0);
+ fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);
+ fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);
+ const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);
- if (date.getTime() >= startOfNextYear.getTime()) {
+ if (_date.getTime() >= startOfNextYear.getTime()) {
return year + 1;
- } else if (date.getTime() >= startOfThisYear.getTime()) {
+ } else if (_date.getTime() >= startOfThisYear.getTime()) {
return year;
} else {
return year - 1;
}
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js
-
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_getISOWeekYear = ((/* unused pure expression or super */ null && (getISOWeekYear)));
-function startOfUTCISOWeekYear(dirtyDate) {
- requiredArgs_requiredArgs(1, arguments);
- var year = getUTCISOWeekYear(dirtyDate);
- var fourthOfJanuary = new Date(0);
- fourthOfJanuary.setUTCFullYear(year, 0, 4);
- fourthOfJanuary.setUTCHours(0, 0, 0, 0);
- var date = startOfUTCISOWeek(fourthOfJanuary);
- return date;
-}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js
-
+;// CONCATENATED MODULE: ./node_modules/date-fns/startOfISOWeekYear.mjs
-var MILLISECONDS_IN_WEEK = 604800000;
-function getUTCISOWeek(dirtyDate) {
- requiredArgs_requiredArgs(1, arguments);
- var date = toDate_toDate(dirtyDate);
- var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime(); // Round the number of days to the nearest integer
- // because the number of milliseconds in a week is not constant
- // (e.g. it's different in the week of the daylight saving time clock shift)
- return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
-}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/defaultOptions/index.js
-var defaultOptions_defaultOptions = {};
-function defaultOptions_getDefaultOptions() {
- return defaultOptions_defaultOptions;
-}
-function setDefaultOptions(newOptions) {
- defaultOptions_defaultOptions = newOptions;
+/**
+ * @name startOfISOWeekYear
+ * @category ISO Week-Numbering Year Helpers
+ * @summary Return the start of an ISO week-numbering year for the given date.
+ *
+ * @description
+ * Return the start of an ISO week-numbering year,
+ * which always starts 3 days before the year's first Thursday.
+ * The result will be in the local timezone.
+ *
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
+ *
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The original date
+ *
+ * @returns The start of an ISO week-numbering year
+ *
+ * @example
+ * // The start of an ISO week-numbering year for 2 July 2005:
+ * const result = startOfISOWeekYear(new Date(2005, 6, 2))
+ * //=> Mon Jan 03 2005 00:00:00
+ */
+function startOfISOWeekYear(date) {
+ const year = getISOWeekYear(date);
+ const fourthOfJanuary = constructFrom_constructFrom(date, 0);
+ fourthOfJanuary.setFullYear(year, 0, 4);
+ fourthOfJanuary.setHours(0, 0, 0, 0);
+ return startOfISOWeek(fourthOfJanuary);
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_startOfISOWeekYear = ((/* unused pure expression or super */ null && (startOfISOWeekYear)));
+;// CONCATENATED MODULE: ./node_modules/date-fns/getISOWeek.mjs
-function startOfUTCWeek(dirtyDate, options) {
- var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
- requiredArgs_requiredArgs(1, arguments);
- var defaultOptions = defaultOptions_getDefaultOptions();
- var weekStartsOn = toInteger_toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- }
- var date = toDate_toDate(dirtyDate);
- var day = date.getUTCDay();
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
- date.setUTCDate(date.getUTCDate() - diff);
- date.setUTCHours(0, 0, 0, 0);
- return date;
-}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js
+/**
+ * @name getISOWeek
+ * @category ISO Week Helpers
+ * @summary Get the ISO week of the given date.
+ *
+ * @description
+ * Get the ISO week of the given date.
+ *
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
+ *
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The given date
+ *
+ * @returns The ISO week
+ *
+ * @example
+ * // Which week of the ISO-week numbering year is 2 January 2005?
+ * const result = getISOWeek(new Date(2005, 0, 2))
+ * //=> 53
+ */
+function getISOWeek(date) {
+ const _date = toDate_toDate(date);
+ const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);
+ // Round the number of weeks to the nearest integer because the number of
+ // milliseconds in a week is not constant (e.g. it's different in the week of
+ // the daylight saving time clock shift).
+ return Math.round(diff / millisecondsInWeek) + 1;
+}
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_getISOWeek = ((/* unused pure expression or super */ null && (getISOWeek)));
+;// CONCATENATED MODULE: ./node_modules/date-fns/getWeekYear.mjs
-function getUTCWeekYear(dirtyDate, options) {
- var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
- requiredArgs_requiredArgs(1, arguments);
- var date = toDate_toDate(dirtyDate);
- var year = date.getUTCFullYear();
- var defaultOptions = defaultOptions_getDefaultOptions();
- var firstWeekContainsDate = toInteger_toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
- throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
- }
- var firstWeekOfNextYear = new Date(0);
- firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
- firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
- var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options);
- var firstWeekOfThisYear = new Date(0);
- firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
- firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
- var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);
+/**
+ * The {@link getWeekYear} function options.
+ */
- if (date.getTime() >= startOfNextYear.getTime()) {
+/**
+ * @name getWeekYear
+ * @category Week-Numbering Year Helpers
+ * @summary Get the local week-numbering year of the given date.
+ *
+ * @description
+ * Get the local week-numbering year of the given date.
+ * The exact calculation depends on the values of
+ * `options.weekStartsOn` (which is the index of the first day of the week)
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
+ * the first week of the week-numbering year)
+ *
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
+ *
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The given date
+ * @param options - An object with options.
+ *
+ * @returns The local week-numbering year
+ *
+ * @example
+ * // Which week numbering year is 26 December 2004 with the default settings?
+ * const result = getWeekYear(new Date(2004, 11, 26))
+ * //=> 2005
+ *
+ * @example
+ * // Which week numbering year is 26 December 2004 if week starts on Saturday?
+ * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })
+ * //=> 2004
+ *
+ * @example
+ * // Which week numbering year is 26 December 2004 if the first week contains 4 January?
+ * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })
+ * //=> 2004
+ */
+function getWeekYear(date, options) {
+ const _date = toDate_toDate(date);
+ const year = _date.getFullYear();
+
+ const defaultOptions = defaultOptions_getDefaultOptions();
+ const firstWeekContainsDate =
+ options?.firstWeekContainsDate ??
+ options?.locale?.options?.firstWeekContainsDate ??
+ defaultOptions.firstWeekContainsDate ??
+ defaultOptions.locale?.options?.firstWeekContainsDate ??
+ 1;
+
+ const firstWeekOfNextYear = constructFrom_constructFrom(date, 0);
+ firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
+ firstWeekOfNextYear.setHours(0, 0, 0, 0);
+ const startOfNextYear = startOfWeek_startOfWeek(firstWeekOfNextYear, options);
+
+ const firstWeekOfThisYear = constructFrom_constructFrom(date, 0);
+ firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);
+ firstWeekOfThisYear.setHours(0, 0, 0, 0);
+ const startOfThisYear = startOfWeek_startOfWeek(firstWeekOfThisYear, options);
+
+ if (_date.getTime() >= startOfNextYear.getTime()) {
return year + 1;
- } else if (date.getTime() >= startOfThisYear.getTime()) {
+ } else if (_date.getTime() >= startOfThisYear.getTime()) {
return year;
} else {
return year - 1;
}
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js
+
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_getWeekYear = ((/* unused pure expression or super */ null && (getWeekYear)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/startOfWeekYear.mjs
+
+/**
+ * The {@link startOfWeekYear} function options.
+ */
-function startOfUTCWeekYear(dirtyDate, options) {
- var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
+/**
+ * @name startOfWeekYear
+ * @category Week-Numbering Year Helpers
+ * @summary Return the start of a local week-numbering year for the given date.
+ *
+ * @description
+ * Return the start of a local week-numbering year.
+ * The exact calculation depends on the values of
+ * `options.weekStartsOn` (which is the index of the first day of the week)
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
+ * the first week of the week-numbering year)
+ *
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
+ *
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The original date
+ * @param options - An object with options
+ *
+ * @returns The start of a week-numbering year
+ *
+ * @example
+ * // The start of an a week-numbering year for 2 July 2005 with default settings:
+ * const result = startOfWeekYear(new Date(2005, 6, 2))
+ * //=> Sun Dec 26 2004 00:00:00
+ *
+ * @example
+ * // The start of a week-numbering year for 2 July 2005
+ * // if Monday is the first day of week
+ * // and 4 January is always in the first week of the year:
+ * const result = startOfWeekYear(new Date(2005, 6, 2), {
+ * weekStartsOn: 1,
+ * firstWeekContainsDate: 4
+ * })
+ * //=> Mon Jan 03 2005 00:00:00
+ */
+function startOfWeekYear(date, options) {
+ const defaultOptions = defaultOptions_getDefaultOptions();
+ const firstWeekContainsDate =
+ options?.firstWeekContainsDate ??
+ options?.locale?.options?.firstWeekContainsDate ??
+ defaultOptions.firstWeekContainsDate ??
+ defaultOptions.locale?.options?.firstWeekContainsDate ??
+ 1;
- requiredArgs_requiredArgs(1, arguments);
- var defaultOptions = defaultOptions_getDefaultOptions();
- var firstWeekContainsDate = toInteger_toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
- var year = getUTCWeekYear(dirtyDate, options);
- var firstWeek = new Date(0);
- firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);
- firstWeek.setUTCHours(0, 0, 0, 0);
- var date = startOfUTCWeek(firstWeek, options);
- return date;
+ const year = getWeekYear(date, options);
+ const firstWeek = constructFrom_constructFrom(date, 0);
+ firstWeek.setFullYear(year, 0, firstWeekContainsDate);
+ firstWeek.setHours(0, 0, 0, 0);
+ const _date = startOfWeek_startOfWeek(firstWeek, options);
+ return _date;
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/getUTCWeek/index.js
+
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_startOfWeekYear = ((/* unused pure expression or super */ null && (startOfWeekYear)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/getWeek.mjs
+
+
+
+/**
+ * The {@link getWeek} function options.
+ */
+/**
+ * @name getWeek
+ * @category Week Helpers
+ * @summary Get the local week index of the given date.
+ *
+ * @description
+ * Get the local week index of the given date.
+ * The exact calculation depends on the values of
+ * `options.weekStartsOn` (which is the index of the first day of the week)
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
+ * the first week of the week-numbering year)
+ *
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
+ *
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The given date
+ * @param options - An object with options
+ *
+ * @returns The week
+ *
+ * @example
+ * // Which week of the local week numbering year is 2 January 2005 with default options?
+ * const result = getWeek(new Date(2005, 0, 2))
+ * //=> 2
+ *
+ * @example
+ * // Which week of the local week numbering year is 2 January 2005,
+ * // if Monday is the first day of the week,
+ * // and the first week of the year always contains 4 January?
+ * const result = getWeek(new Date(2005, 0, 2), {
+ * weekStartsOn: 1,
+ * firstWeekContainsDate: 4
+ * })
+ * //=> 53
+ */
-var getUTCWeek_MILLISECONDS_IN_WEEK = 604800000;
-function getUTCWeek(dirtyDate, options) {
- requiredArgs_requiredArgs(1, arguments);
- var date = toDate_toDate(dirtyDate);
- var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime(); // Round the number of days to the nearest integer
- // because the number of milliseconds in a week is not constant
- // (e.g. it's different in the week of the daylight saving time clock shift)
+function getWeek(date, options) {
+ const _date = toDate_toDate(date);
+ const diff = +startOfWeek_startOfWeek(_date, options) - +startOfWeekYear(_date, options);
- return Math.round(diff / getUTCWeek_MILLISECONDS_IN_WEEK) + 1;
+ // Round the number of weeks to the nearest integer because the number of
+ // milliseconds in a week is not constant (e.g. it's different in the week of
+ // the daylight saving time clock shift).
+ return Math.round(diff / millisecondsInWeek) + 1;
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/addLeadingZeros/index.js
-function addLeadingZeros(number, targetLength) {
- var sign = number < 0 ? '-' : '';
- var output = Math.abs(number).toString();
- while (output.length < targetLength) {
- output = '0' + output;
- }
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_getWeek = ((/* unused pure expression or super */ null && (getWeek)));
+;// CONCATENATED MODULE: ./node_modules/date-fns/_lib/addLeadingZeros.mjs
+function addLeadingZeros(number, targetLength) {
+ const sign = number < 0 ? "-" : "";
+ const output = Math.abs(number).toString().padStart(targetLength, "0");
return sign + output;
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/format/lightFormatters/index.js
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/_lib/format/lightFormatters.mjs
+
/*
* | | Unit | | Unit |
@@ -54163,9 +54592,9 @@ function addLeadingZeros(number, targetLength) {
* Letters marked by * are not implemented but reserved by Unicode standard.
*/
-var formatters = {
+const lightFormatters = {
// Year
- y: function y(date, token) {
+ y(date, token) {
// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
// | Year | y | yy | yyy | yyyy | yyyyy |
// |----------|-------|----|-------|-------|-------|
@@ -54174,66 +54603,74 @@ var formatters = {
// | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
- return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
+ const signedYear = date.getFullYear();
+ // Returns 1 for 1 BC (which is year 0 in JavaScript)
+ const year = signedYear > 0 ? signedYear : 1 - signedYear;
+ return addLeadingZeros(token === "yy" ? year % 100 : year, token.length);
},
+
// Month
- M: function M(date, token) {
- var month = date.getUTCMonth();
- return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
+ M(date, token) {
+ const month = date.getMonth();
+ return token === "M" ? String(month + 1) : addLeadingZeros(month + 1, 2);
},
+
// Day of the month
- d: function d(date, token) {
- return addLeadingZeros(date.getUTCDate(), token.length);
+ d(date, token) {
+ return addLeadingZeros(date.getDate(), token.length);
},
+
// AM or PM
- a: function a(date, token) {
- var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
+ a(date, token) {
+ const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? "pm" : "am";
switch (token) {
- case 'a':
- case 'aa':
+ case "a":
+ case "aa":
return dayPeriodEnumValue.toUpperCase();
-
- case 'aaa':
+ case "aaa":
return dayPeriodEnumValue;
-
- case 'aaaaa':
+ case "aaaaa":
return dayPeriodEnumValue[0];
-
- case 'aaaa':
+ case "aaaa":
default:
- return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
+ return dayPeriodEnumValue === "am" ? "a.m." : "p.m.";
}
},
+
// Hour [1-12]
- h: function h(date, token) {
- return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
+ h(date, token) {
+ return addLeadingZeros(date.getHours() % 12 || 12, token.length);
},
+
// Hour [0-23]
- H: function H(date, token) {
- return addLeadingZeros(date.getUTCHours(), token.length);
+ H(date, token) {
+ return addLeadingZeros(date.getHours(), token.length);
},
+
// Minute
- m: function m(date, token) {
- return addLeadingZeros(date.getUTCMinutes(), token.length);
+ m(date, token) {
+ return addLeadingZeros(date.getMinutes(), token.length);
},
+
// Second
- s: function s(date, token) {
- return addLeadingZeros(date.getUTCSeconds(), token.length);
+ s(date, token) {
+ return addLeadingZeros(date.getSeconds(), token.length);
},
+
// Fraction of second
- S: function S(date, token) {
- var numberOfDigits = token.length;
- var milliseconds = date.getUTCMilliseconds();
- var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
+ S(date, token) {
+ const numberOfDigits = token.length;
+ const milliseconds = date.getMilliseconds();
+ const fractionalSeconds = Math.trunc(
+ milliseconds * Math.pow(10, numberOfDigits - 3),
+ );
return addLeadingZeros(fractionalSeconds, token.length);
- }
+ },
};
-/* harmony default export */ const lightFormatters = (formatters);
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/format/formatters/index.js
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/_lib/format/formatters.mjs
@@ -54241,15 +54678,16 @@ var formatters = {
-var dayPeriodEnum = {
- am: 'am',
- pm: 'pm',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
+
+const dayPeriodEnum = {
+ am: "am",
+ pm: "pm",
+ midnight: "midnight",
+ noon: "noon",
+ morning: "morning",
+ afternoon: "afternoon",
+ evening: "evening",
+ night: "night",
};
/*
@@ -54297,75 +54735,69 @@ var dayPeriodEnum = {
* - `P` is long localized date format
* - `p` is long localized time format
*/
-var formatters_formatters = {
- // Era
- G: function G(date, token, localize) {
- var era = date.getUTCFullYear() > 0 ? 1 : 0;
+const formatters = {
+ // Era
+ G: function (date, token, localize) {
+ const era = date.getFullYear() > 0 ? 1 : 0;
switch (token) {
// AD, BC
- case 'G':
- case 'GG':
- case 'GGG':
- return localize.era(era, {
- width: 'abbreviated'
- });
+ case "G":
+ case "GG":
+ case "GGG":
+ return localize.era(era, { width: "abbreviated" });
// A, B
-
- case 'GGGGG':
- return localize.era(era, {
- width: 'narrow'
- });
+ case "GGGGG":
+ return localize.era(era, { width: "narrow" });
// Anno Domini, Before Christ
-
- case 'GGGG':
+ case "GGGG":
default:
- return localize.era(era, {
- width: 'wide'
- });
+ return localize.era(era, { width: "wide" });
}
},
+
// Year
- y: function y(date, token, localize) {
+ y: function (date, token, localize) {
// Ordinal number
- if (token === 'yo') {
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
-
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
- return localize.ordinalNumber(year, {
- unit: 'year'
- });
+ if (token === "yo") {
+ const signedYear = date.getFullYear();
+ // Returns 1 for 1 BC (which is year 0 in JavaScript)
+ const year = signedYear > 0 ? signedYear : 1 - signedYear;
+ return localize.ordinalNumber(year, { unit: "year" });
}
return lightFormatters.y(date, token);
},
- // Local week-numbering year
- Y: function Y(date, token, localize, options) {
- var signedWeekYear = getUTCWeekYear(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript)
- var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year
-
- if (token === 'YY') {
- var twoDigitYear = weekYear % 100;
+ // Local week-numbering year
+ Y: function (date, token, localize, options) {
+ const signedWeekYear = getWeekYear(date, options);
+ // Returns 1 for 1 BC (which is year 0 in JavaScript)
+ const weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;
+
+ // Two digit year
+ if (token === "YY") {
+ const twoDigitYear = weekYear % 100;
return addLeadingZeros(twoDigitYear, 2);
- } // Ordinal number
-
-
- if (token === 'Yo') {
- return localize.ordinalNumber(weekYear, {
- unit: 'year'
- });
- } // Padding
+ }
+ // Ordinal number
+ if (token === "Yo") {
+ return localize.ordinalNumber(weekYear, { unit: "year" });
+ }
+ // Padding
return addLeadingZeros(weekYear, token.length);
},
+
// ISO week-numbering year
- R: function R(date, token) {
- var isoWeekYear = getUTCISOWeekYear(date); // Padding
+ R: function (date, token) {
+ const isoWeekYear = getISOWeekYear(date);
+ // Padding
return addLeadingZeros(isoWeekYear, token.length);
},
+
// Extended year. This is a single number designating the year of this calendar system.
// The main difference between `y` and `u` localizers are B.C. years:
// | Year | `y` | `u` |
@@ -54375,484 +54807,419 @@ var formatters_formatters = {
// | BC 2 | 2 | -1 |
// Also `yy` always returns the last two digits of a year,
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
- u: function u(date, token) {
- var year = date.getUTCFullYear();
+ u: function (date, token) {
+ const year = date.getFullYear();
return addLeadingZeros(year, token.length);
},
- // Quarter
- Q: function Q(date, token, localize) {
- var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
+ // Quarter
+ Q: function (date, token, localize) {
+ const quarter = Math.ceil((date.getMonth() + 1) / 3);
switch (token) {
// 1, 2, 3, 4
- case 'Q':
+ case "Q":
return String(quarter);
// 01, 02, 03, 04
-
- case 'QQ':
+ case "QQ":
return addLeadingZeros(quarter, 2);
// 1st, 2nd, 3rd, 4th
-
- case 'Qo':
- return localize.ordinalNumber(quarter, {
- unit: 'quarter'
- });
+ case "Qo":
+ return localize.ordinalNumber(quarter, { unit: "quarter" });
// Q1, Q2, Q3, Q4
-
- case 'QQQ':
+ case "QQQ":
return localize.quarter(quarter, {
- width: 'abbreviated',
- context: 'formatting'
+ width: "abbreviated",
+ context: "formatting",
});
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
-
- case 'QQQQQ':
+ case "QQQQQ":
return localize.quarter(quarter, {
- width: 'narrow',
- context: 'formatting'
+ width: "narrow",
+ context: "formatting",
});
// 1st quarter, 2nd quarter, ...
-
- case 'QQQQ':
+ case "QQQQ":
default:
return localize.quarter(quarter, {
- width: 'wide',
- context: 'formatting'
+ width: "wide",
+ context: "formatting",
});
}
},
- // Stand-alone quarter
- q: function q(date, token, localize) {
- var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
+ // Stand-alone quarter
+ q: function (date, token, localize) {
+ const quarter = Math.ceil((date.getMonth() + 1) / 3);
switch (token) {
// 1, 2, 3, 4
- case 'q':
+ case "q":
return String(quarter);
// 01, 02, 03, 04
-
- case 'qq':
+ case "qq":
return addLeadingZeros(quarter, 2);
// 1st, 2nd, 3rd, 4th
-
- case 'qo':
- return localize.ordinalNumber(quarter, {
- unit: 'quarter'
- });
+ case "qo":
+ return localize.ordinalNumber(quarter, { unit: "quarter" });
// Q1, Q2, Q3, Q4
-
- case 'qqq':
+ case "qqq":
return localize.quarter(quarter, {
- width: 'abbreviated',
- context: 'standalone'
+ width: "abbreviated",
+ context: "standalone",
});
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
-
- case 'qqqqq':
+ case "qqqqq":
return localize.quarter(quarter, {
- width: 'narrow',
- context: 'standalone'
+ width: "narrow",
+ context: "standalone",
});
// 1st quarter, 2nd quarter, ...
-
- case 'qqqq':
+ case "qqqq":
default:
return localize.quarter(quarter, {
- width: 'wide',
- context: 'standalone'
+ width: "wide",
+ context: "standalone",
});
}
},
- // Month
- M: function M(date, token, localize) {
- var month = date.getUTCMonth();
+ // Month
+ M: function (date, token, localize) {
+ const month = date.getMonth();
switch (token) {
- case 'M':
- case 'MM':
+ case "M":
+ case "MM":
return lightFormatters.M(date, token);
// 1st, 2nd, ..., 12th
-
- case 'Mo':
- return localize.ordinalNumber(month + 1, {
- unit: 'month'
- });
+ case "Mo":
+ return localize.ordinalNumber(month + 1, { unit: "month" });
// Jan, Feb, ..., Dec
-
- case 'MMM':
+ case "MMM":
return localize.month(month, {
- width: 'abbreviated',
- context: 'formatting'
+ width: "abbreviated",
+ context: "formatting",
});
// J, F, ..., D
-
- case 'MMMMM':
+ case "MMMMM":
return localize.month(month, {
- width: 'narrow',
- context: 'formatting'
+ width: "narrow",
+ context: "formatting",
});
// January, February, ..., December
-
- case 'MMMM':
+ case "MMMM":
default:
- return localize.month(month, {
- width: 'wide',
- context: 'formatting'
- });
+ return localize.month(month, { width: "wide", context: "formatting" });
}
},
- // Stand-alone month
- L: function L(date, token, localize) {
- var month = date.getUTCMonth();
+ // Stand-alone month
+ L: function (date, token, localize) {
+ const month = date.getMonth();
switch (token) {
// 1, 2, ..., 12
- case 'L':
+ case "L":
return String(month + 1);
// 01, 02, ..., 12
-
- case 'LL':
+ case "LL":
return addLeadingZeros(month + 1, 2);
// 1st, 2nd, ..., 12th
-
- case 'Lo':
- return localize.ordinalNumber(month + 1, {
- unit: 'month'
- });
+ case "Lo":
+ return localize.ordinalNumber(month + 1, { unit: "month" });
// Jan, Feb, ..., Dec
-
- case 'LLL':
+ case "LLL":
return localize.month(month, {
- width: 'abbreviated',
- context: 'standalone'
+ width: "abbreviated",
+ context: "standalone",
});
// J, F, ..., D
-
- case 'LLLLL':
+ case "LLLLL":
return localize.month(month, {
- width: 'narrow',
- context: 'standalone'
+ width: "narrow",
+ context: "standalone",
});
// January, February, ..., December
-
- case 'LLLL':
+ case "LLLL":
default:
- return localize.month(month, {
- width: 'wide',
- context: 'standalone'
- });
+ return localize.month(month, { width: "wide", context: "standalone" });
}
},
+
// Local week of year
- w: function w(date, token, localize, options) {
- var week = getUTCWeek(date, options);
+ w: function (date, token, localize, options) {
+ const week = getWeek(date, options);
- if (token === 'wo') {
- return localize.ordinalNumber(week, {
- unit: 'week'
- });
+ if (token === "wo") {
+ return localize.ordinalNumber(week, { unit: "week" });
}
return addLeadingZeros(week, token.length);
},
+
// ISO week of year
- I: function I(date, token, localize) {
- var isoWeek = getUTCISOWeek(date);
+ I: function (date, token, localize) {
+ const isoWeek = getISOWeek(date);
- if (token === 'Io') {
- return localize.ordinalNumber(isoWeek, {
- unit: 'week'
- });
+ if (token === "Io") {
+ return localize.ordinalNumber(isoWeek, { unit: "week" });
}
return addLeadingZeros(isoWeek, token.length);
},
+
// Day of the month
- d: function d(date, token, localize) {
- if (token === 'do') {
- return localize.ordinalNumber(date.getUTCDate(), {
- unit: 'date'
- });
+ d: function (date, token, localize) {
+ if (token === "do") {
+ return localize.ordinalNumber(date.getDate(), { unit: "date" });
}
return lightFormatters.d(date, token);
},
+
// Day of year
- D: function D(date, token, localize) {
- var dayOfYear = getUTCDayOfYear(date);
+ D: function (date, token, localize) {
+ const dayOfYear = getDayOfYear(date);
- if (token === 'Do') {
- return localize.ordinalNumber(dayOfYear, {
- unit: 'dayOfYear'
- });
+ if (token === "Do") {
+ return localize.ordinalNumber(dayOfYear, { unit: "dayOfYear" });
}
return addLeadingZeros(dayOfYear, token.length);
},
- // Day of week
- E: function E(date, token, localize) {
- var dayOfWeek = date.getUTCDay();
+ // Day of week
+ E: function (date, token, localize) {
+ const dayOfWeek = date.getDay();
switch (token) {
// Tue
- case 'E':
- case 'EE':
- case 'EEE':
+ case "E":
+ case "EE":
+ case "EEE":
return localize.day(dayOfWeek, {
- width: 'abbreviated',
- context: 'formatting'
+ width: "abbreviated",
+ context: "formatting",
});
// T
-
- case 'EEEEE':
+ case "EEEEE":
return localize.day(dayOfWeek, {
- width: 'narrow',
- context: 'formatting'
+ width: "narrow",
+ context: "formatting",
});
// Tu
-
- case 'EEEEEE':
+ case "EEEEEE":
return localize.day(dayOfWeek, {
- width: 'short',
- context: 'formatting'
+ width: "short",
+ context: "formatting",
});
// Tuesday
-
- case 'EEEE':
+ case "EEEE":
default:
return localize.day(dayOfWeek, {
- width: 'wide',
- context: 'formatting'
+ width: "wide",
+ context: "formatting",
});
}
},
- // Local day of week
- e: function e(date, token, localize, options) {
- var dayOfWeek = date.getUTCDay();
- var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
+ // Local day of week
+ e: function (date, token, localize, options) {
+ const dayOfWeek = date.getDay();
+ const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
switch (token) {
// Numerical value (Nth day of week with current locale or weekStartsOn)
- case 'e':
+ case "e":
return String(localDayOfWeek);
// Padded numerical value
-
- case 'ee':
+ case "ee":
return addLeadingZeros(localDayOfWeek, 2);
// 1st, 2nd, ..., 7th
-
- case 'eo':
- return localize.ordinalNumber(localDayOfWeek, {
- unit: 'day'
- });
-
- case 'eee':
+ case "eo":
+ return localize.ordinalNumber(localDayOfWeek, { unit: "day" });
+ case "eee":
return localize.day(dayOfWeek, {
- width: 'abbreviated',
- context: 'formatting'
+ width: "abbreviated",
+ context: "formatting",
});
// T
-
- case 'eeeee':
+ case "eeeee":
return localize.day(dayOfWeek, {
- width: 'narrow',
- context: 'formatting'
+ width: "narrow",
+ context: "formatting",
});
// Tu
-
- case 'eeeeee':
+ case "eeeeee":
return localize.day(dayOfWeek, {
- width: 'short',
- context: 'formatting'
+ width: "short",
+ context: "formatting",
});
// Tuesday
-
- case 'eeee':
+ case "eeee":
default:
return localize.day(dayOfWeek, {
- width: 'wide',
- context: 'formatting'
+ width: "wide",
+ context: "formatting",
});
}
},
- // Stand-alone local day of week
- c: function c(date, token, localize, options) {
- var dayOfWeek = date.getUTCDay();
- var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
+ // Stand-alone local day of week
+ c: function (date, token, localize, options) {
+ const dayOfWeek = date.getDay();
+ const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
switch (token) {
// Numerical value (same as in `e`)
- case 'c':
+ case "c":
return String(localDayOfWeek);
// Padded numerical value
-
- case 'cc':
+ case "cc":
return addLeadingZeros(localDayOfWeek, token.length);
// 1st, 2nd, ..., 7th
-
- case 'co':
- return localize.ordinalNumber(localDayOfWeek, {
- unit: 'day'
- });
-
- case 'ccc':
+ case "co":
+ return localize.ordinalNumber(localDayOfWeek, { unit: "day" });
+ case "ccc":
return localize.day(dayOfWeek, {
- width: 'abbreviated',
- context: 'standalone'
+ width: "abbreviated",
+ context: "standalone",
});
// T
-
- case 'ccccc':
+ case "ccccc":
return localize.day(dayOfWeek, {
- width: 'narrow',
- context: 'standalone'
+ width: "narrow",
+ context: "standalone",
});
// Tu
-
- case 'cccccc':
+ case "cccccc":
return localize.day(dayOfWeek, {
- width: 'short',
- context: 'standalone'
+ width: "short",
+ context: "standalone",
});
// Tuesday
-
- case 'cccc':
+ case "cccc":
default:
return localize.day(dayOfWeek, {
- width: 'wide',
- context: 'standalone'
+ width: "wide",
+ context: "standalone",
});
}
},
- // ISO day of week
- i: function i(date, token, localize) {
- var dayOfWeek = date.getUTCDay();
- var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
+ // ISO day of week
+ i: function (date, token, localize) {
+ const dayOfWeek = date.getDay();
+ const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
switch (token) {
// 2
- case 'i':
+ case "i":
return String(isoDayOfWeek);
// 02
-
- case 'ii':
+ case "ii":
return addLeadingZeros(isoDayOfWeek, token.length);
// 2nd
-
- case 'io':
- return localize.ordinalNumber(isoDayOfWeek, {
- unit: 'day'
- });
+ case "io":
+ return localize.ordinalNumber(isoDayOfWeek, { unit: "day" });
// Tue
-
- case 'iii':
+ case "iii":
return localize.day(dayOfWeek, {
- width: 'abbreviated',
- context: 'formatting'
+ width: "abbreviated",
+ context: "formatting",
});
// T
-
- case 'iiiii':
+ case "iiiii":
return localize.day(dayOfWeek, {
- width: 'narrow',
- context: 'formatting'
+ width: "narrow",
+ context: "formatting",
});
// Tu
-
- case 'iiiiii':
+ case "iiiiii":
return localize.day(dayOfWeek, {
- width: 'short',
- context: 'formatting'
+ width: "short",
+ context: "formatting",
});
// Tuesday
-
- case 'iiii':
+ case "iiii":
default:
return localize.day(dayOfWeek, {
- width: 'wide',
- context: 'formatting'
+ width: "wide",
+ context: "formatting",
});
}
},
+
// AM or PM
- a: function a(date, token, localize) {
- var hours = date.getUTCHours();
- var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
+ a: function (date, token, localize) {
+ const hours = date.getHours();
+ const dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
switch (token) {
- case 'a':
- case 'aa':
+ case "a":
+ case "aa":
return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'abbreviated',
- context: 'formatting'
+ width: "abbreviated",
+ context: "formatting",
});
-
- case 'aaa':
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'abbreviated',
- context: 'formatting'
- }).toLowerCase();
-
- case 'aaaaa':
+ case "aaa":
+ return localize
+ .dayPeriod(dayPeriodEnumValue, {
+ width: "abbreviated",
+ context: "formatting",
+ })
+ .toLowerCase();
+ case "aaaaa":
return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'narrow',
- context: 'formatting'
+ width: "narrow",
+ context: "formatting",
});
-
- case 'aaaa':
+ case "aaaa":
default:
return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'wide',
- context: 'formatting'
+ width: "wide",
+ context: "formatting",
});
}
},
- // AM, PM, midnight, noon
- b: function b(date, token, localize) {
- var hours = date.getUTCHours();
- var dayPeriodEnumValue;
+ // AM, PM, midnight, noon
+ b: function (date, token, localize) {
+ const hours = date.getHours();
+ let dayPeriodEnumValue;
if (hours === 12) {
dayPeriodEnumValue = dayPeriodEnum.noon;
} else if (hours === 0) {
dayPeriodEnumValue = dayPeriodEnum.midnight;
} else {
- dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
+ dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
}
switch (token) {
- case 'b':
- case 'bb':
+ case "b":
+ case "bb":
return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'abbreviated',
- context: 'formatting'
+ width: "abbreviated",
+ context: "formatting",
});
-
- case 'bbb':
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'abbreviated',
- context: 'formatting'
- }).toLowerCase();
-
- case 'bbbbb':
+ case "bbb":
+ return localize
+ .dayPeriod(dayPeriodEnumValue, {
+ width: "abbreviated",
+ context: "formatting",
+ })
+ .toLowerCase();
+ case "bbbbb":
return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'narrow',
- context: 'formatting'
+ width: "narrow",
+ context: "formatting",
});
-
- case 'bbbb':
+ case "bbbb":
default:
return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'wide',
- context: 'formatting'
+ width: "wide",
+ context: "formatting",
});
}
},
- // in the morning, in the afternoon, in the evening, at night
- B: function B(date, token, localize) {
- var hours = date.getUTCHours();
- var dayPeriodEnumValue;
+ // in the morning, in the afternoon, in the evening, at night
+ B: function (date, token, localize) {
+ const hours = date.getHours();
+ let dayPeriodEnumValue;
if (hours >= 17) {
dayPeriodEnumValue = dayPeriodEnum.evening;
} else if (hours >= 12) {
@@ -54864,896 +55231,407 @@ var formatters_formatters = {
}
switch (token) {
- case 'B':
- case 'BB':
- case 'BBB':
+ case "B":
+ case "BB":
+ case "BBB":
return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'abbreviated',
- context: 'formatting'
+ width: "abbreviated",
+ context: "formatting",
});
-
- case 'BBBBB':
+ case "BBBBB":
return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'narrow',
- context: 'formatting'
+ width: "narrow",
+ context: "formatting",
});
-
- case 'BBBB':
+ case "BBBB":
default:
return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'wide',
- context: 'formatting'
+ width: "wide",
+ context: "formatting",
});
}
},
+
// Hour [1-12]
- h: function h(date, token, localize) {
- if (token === 'ho') {
- var hours = date.getUTCHours() % 12;
+ h: function (date, token, localize) {
+ if (token === "ho") {
+ let hours = date.getHours() % 12;
if (hours === 0) hours = 12;
- return localize.ordinalNumber(hours, {
- unit: 'hour'
- });
+ return localize.ordinalNumber(hours, { unit: "hour" });
}
return lightFormatters.h(date, token);
},
+
// Hour [0-23]
- H: function H(date, token, localize) {
- if (token === 'Ho') {
- return localize.ordinalNumber(date.getUTCHours(), {
- unit: 'hour'
- });
+ H: function (date, token, localize) {
+ if (token === "Ho") {
+ return localize.ordinalNumber(date.getHours(), { unit: "hour" });
}
return lightFormatters.H(date, token);
},
+
// Hour [0-11]
- K: function K(date, token, localize) {
- var hours = date.getUTCHours() % 12;
+ K: function (date, token, localize) {
+ const hours = date.getHours() % 12;
- if (token === 'Ko') {
- return localize.ordinalNumber(hours, {
- unit: 'hour'
- });
+ if (token === "Ko") {
+ return localize.ordinalNumber(hours, { unit: "hour" });
}
return addLeadingZeros(hours, token.length);
},
+
// Hour [1-24]
- k: function k(date, token, localize) {
- var hours = date.getUTCHours();
+ k: function (date, token, localize) {
+ let hours = date.getHours();
if (hours === 0) hours = 24;
- if (token === 'ko') {
- return localize.ordinalNumber(hours, {
- unit: 'hour'
- });
+ if (token === "ko") {
+ return localize.ordinalNumber(hours, { unit: "hour" });
}
return addLeadingZeros(hours, token.length);
},
+
// Minute
- m: function m(date, token, localize) {
- if (token === 'mo') {
- return localize.ordinalNumber(date.getUTCMinutes(), {
- unit: 'minute'
- });
+ m: function (date, token, localize) {
+ if (token === "mo") {
+ return localize.ordinalNumber(date.getMinutes(), { unit: "minute" });
}
return lightFormatters.m(date, token);
},
+
// Second
- s: function s(date, token, localize) {
- if (token === 'so') {
- return localize.ordinalNumber(date.getUTCSeconds(), {
- unit: 'second'
- });
+ s: function (date, token, localize) {
+ if (token === "so") {
+ return localize.ordinalNumber(date.getSeconds(), { unit: "second" });
}
return lightFormatters.s(date, token);
},
+
// Fraction of second
- S: function S(date, token) {
+ S: function (date, token) {
return lightFormatters.S(date, token);
},
+
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
- X: function X(date, token, _localize, options) {
- var originalDate = options._originalDate || date;
- var timezoneOffset = originalDate.getTimezoneOffset();
+ X: function (date, token, _localize) {
+ const timezoneOffset = date.getTimezoneOffset();
if (timezoneOffset === 0) {
- return 'Z';
+ return "Z";
}
switch (token) {
// Hours and optional minutes
- case 'X':
+ case "X":
return formatTimezoneWithOptionalMinutes(timezoneOffset);
+
// Hours, minutes and optional seconds without `:` delimiter
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
// so this token always has the same output as `XX`
-
- case 'XXXX':
- case 'XX':
- // Hours and minutes without `:` delimiter
+ case "XXXX":
+ case "XX": // Hours and minutes without `:` delimiter
return formatTimezone(timezoneOffset);
+
// Hours, minutes and optional seconds with `:` delimiter
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
// so this token always has the same output as `XXX`
-
- case 'XXXXX':
- case 'XXX': // Hours and minutes with `:` delimiter
-
+ case "XXXXX":
+ case "XXX": // Hours and minutes with `:` delimiter
default:
- return formatTimezone(timezoneOffset, ':');
+ return formatTimezone(timezoneOffset, ":");
}
},
+
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
- x: function x(date, token, _localize, options) {
- var originalDate = options._originalDate || date;
- var timezoneOffset = originalDate.getTimezoneOffset();
+ x: function (date, token, _localize) {
+ const timezoneOffset = date.getTimezoneOffset();
switch (token) {
// Hours and optional minutes
- case 'x':
+ case "x":
return formatTimezoneWithOptionalMinutes(timezoneOffset);
+
// Hours, minutes and optional seconds without `:` delimiter
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
// so this token always has the same output as `xx`
-
- case 'xxxx':
- case 'xx':
- // Hours and minutes without `:` delimiter
+ case "xxxx":
+ case "xx": // Hours and minutes without `:` delimiter
return formatTimezone(timezoneOffset);
+
// Hours, minutes and optional seconds with `:` delimiter
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
// so this token always has the same output as `xxx`
-
- case 'xxxxx':
- case 'xxx': // Hours and minutes with `:` delimiter
-
+ case "xxxxx":
+ case "xxx": // Hours and minutes with `:` delimiter
default:
- return formatTimezone(timezoneOffset, ':');
+ return formatTimezone(timezoneOffset, ":");
}
},
+
// Timezone (GMT)
- O: function O(date, token, _localize, options) {
- var originalDate = options._originalDate || date;
- var timezoneOffset = originalDate.getTimezoneOffset();
+ O: function (date, token, _localize) {
+ const timezoneOffset = date.getTimezoneOffset();
switch (token) {
// Short
- case 'O':
- case 'OO':
- case 'OOO':
- return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
+ case "O":
+ case "OO":
+ case "OOO":
+ return "GMT" + formatTimezoneShort(timezoneOffset, ":");
// Long
-
- case 'OOOO':
+ case "OOOO":
default:
- return 'GMT' + formatTimezone(timezoneOffset, ':');
+ return "GMT" + formatTimezone(timezoneOffset, ":");
}
},
+
// Timezone (specific non-location)
- z: function z(date, token, _localize, options) {
- var originalDate = options._originalDate || date;
- var timezoneOffset = originalDate.getTimezoneOffset();
+ z: function (date, token, _localize) {
+ const timezoneOffset = date.getTimezoneOffset();
switch (token) {
// Short
- case 'z':
- case 'zz':
- case 'zzz':
- return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
+ case "z":
+ case "zz":
+ case "zzz":
+ return "GMT" + formatTimezoneShort(timezoneOffset, ":");
// Long
-
- case 'zzzz':
+ case "zzzz":
default:
- return 'GMT' + formatTimezone(timezoneOffset, ':');
+ return "GMT" + formatTimezone(timezoneOffset, ":");
}
},
+
// Seconds timestamp
- t: function t(date, token, _localize, options) {
- var originalDate = options._originalDate || date;
- var timestamp = Math.floor(originalDate.getTime() / 1000);
+ t: function (date, token, _localize) {
+ const timestamp = Math.trunc(date.getTime() / 1000);
return addLeadingZeros(timestamp, token.length);
},
+
// Milliseconds timestamp
- T: function T(date, token, _localize, options) {
- var originalDate = options._originalDate || date;
- var timestamp = originalDate.getTime();
+ T: function (date, token, _localize) {
+ const timestamp = date.getTime();
return addLeadingZeros(timestamp, token.length);
- }
+ },
};
-function formatTimezoneShort(offset, dirtyDelimiter) {
- var sign = offset > 0 ? '-' : '+';
- var absOffset = Math.abs(offset);
- var hours = Math.floor(absOffset / 60);
- var minutes = absOffset % 60;
-
+function formatTimezoneShort(offset, delimiter = "") {
+ const sign = offset > 0 ? "-" : "+";
+ const absOffset = Math.abs(offset);
+ const hours = Math.trunc(absOffset / 60);
+ const minutes = absOffset % 60;
if (minutes === 0) {
return sign + String(hours);
}
-
- var delimiter = dirtyDelimiter || '';
return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
}
-function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
+function formatTimezoneWithOptionalMinutes(offset, delimiter) {
if (offset % 60 === 0) {
- var sign = offset > 0 ? '-' : '+';
+ const sign = offset > 0 ? "-" : "+";
return sign + addLeadingZeros(Math.abs(offset) / 60, 2);
}
-
- return formatTimezone(offset, dirtyDelimiter);
+ return formatTimezone(offset, delimiter);
}
-function formatTimezone(offset, dirtyDelimiter) {
- var delimiter = dirtyDelimiter || '';
- var sign = offset > 0 ? '-' : '+';
- var absOffset = Math.abs(offset);
- var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);
- var minutes = addLeadingZeros(absOffset % 60, 2);
+function formatTimezone(offset, delimiter = "") {
+ const sign = offset > 0 ? "-" : "+";
+ const absOffset = Math.abs(offset);
+ const hours = addLeadingZeros(Math.trunc(absOffset / 60), 2);
+ const minutes = addLeadingZeros(absOffset % 60, 2);
return sign + hours + delimiter + minutes;
}
-/* harmony default export */ const format_formatters = (formatters_formatters);
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/format/longFormatters/index.js
-var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
+;// CONCATENATED MODULE: ./node_modules/date-fns/_lib/format/longFormatters.mjs
+const dateLongFormatter = (pattern, formatLong) => {
switch (pattern) {
- case 'P':
- return formatLong.date({
- width: 'short'
- });
-
- case 'PP':
- return formatLong.date({
- width: 'medium'
- });
-
- case 'PPP':
- return formatLong.date({
- width: 'long'
- });
-
- case 'PPPP':
+ case "P":
+ return formatLong.date({ width: "short" });
+ case "PP":
+ return formatLong.date({ width: "medium" });
+ case "PPP":
+ return formatLong.date({ width: "long" });
+ case "PPPP":
default:
- return formatLong.date({
- width: 'full'
- });
+ return formatLong.date({ width: "full" });
}
};
-var timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
+const timeLongFormatter = (pattern, formatLong) => {
switch (pattern) {
- case 'p':
- return formatLong.time({
- width: 'short'
- });
-
- case 'pp':
- return formatLong.time({
- width: 'medium'
- });
-
- case 'ppp':
- return formatLong.time({
- width: 'long'
- });
-
- case 'pppp':
+ case "p":
+ return formatLong.time({ width: "short" });
+ case "pp":
+ return formatLong.time({ width: "medium" });
+ case "ppp":
+ return formatLong.time({ width: "long" });
+ case "pppp":
default:
- return formatLong.time({
- width: 'full'
- });
+ return formatLong.time({ width: "full" });
}
};
-var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) {
- var matchResult = pattern.match(/(P+)(p+)?/) || [];
- var datePattern = matchResult[1];
- var timePattern = matchResult[2];
+const dateTimeLongFormatter = (pattern, formatLong) => {
+ const matchResult = pattern.match(/(P+)(p+)?/) || [];
+ const datePattern = matchResult[1];
+ const timePattern = matchResult[2];
if (!timePattern) {
return dateLongFormatter(pattern, formatLong);
}
- var dateTimeFormat;
+ let dateTimeFormat;
switch (datePattern) {
- case 'P':
- dateTimeFormat = formatLong.dateTime({
- width: 'short'
- });
+ case "P":
+ dateTimeFormat = formatLong.dateTime({ width: "short" });
break;
-
- case 'PP':
- dateTimeFormat = formatLong.dateTime({
- width: 'medium'
- });
+ case "PP":
+ dateTimeFormat = formatLong.dateTime({ width: "medium" });
break;
-
- case 'PPP':
- dateTimeFormat = formatLong.dateTime({
- width: 'long'
- });
+ case "PPP":
+ dateTimeFormat = formatLong.dateTime({ width: "long" });
break;
-
- case 'PPPP':
+ case "PPPP":
default:
- dateTimeFormat = formatLong.dateTime({
- width: 'full'
- });
+ dateTimeFormat = formatLong.dateTime({ width: "full" });
break;
}
- return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));
+ return dateTimeFormat
+ .replace("{{date}}", dateLongFormatter(datePattern, formatLong))
+ .replace("{{time}}", timeLongFormatter(timePattern, formatLong));
};
-var longFormatters = {
+const longFormatters = {
p: timeLongFormatter,
- P: dateTimeLongFormatter
+ P: dateTimeLongFormatter,
};
-/* harmony default export */ const format_longFormatters = (longFormatters);
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js
-/**
- * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
- * They usually appear for dates that denote time before the timezones were introduced
- * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
- * and GMT+01:00:00 after that date)
- *
- * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
- * which would lead to incorrect calculations.
- *
- * This function returns the timezone offset in milliseconds that takes seconds in account.
- */
-function getTimezoneOffsetInMilliseconds(date) {
- var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
- utcDate.setUTCFullYear(date.getFullYear());
- return date.getTime() - utcDate.getTime();
-}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/protectedTokens/index.js
-var protectedDayOfYearTokens = ['D', 'DD'];
-var protectedWeekYearTokens = ['YY', 'YYYY'];
-function isProtectedDayOfYearToken(token) {
- return protectedDayOfYearTokens.indexOf(token) !== -1;
-}
-function isProtectedWeekYearToken(token) {
- return protectedWeekYearTokens.indexOf(token) !== -1;
-}
-function throwProtectedError(token, format, input) {
- if (token === 'YYYY') {
- throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
- } else if (token === 'YY') {
- throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
- } else if (token === 'D') {
- throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
- } else if (token === 'DD') {
- throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
- }
-}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js
-var formatDistanceLocale = {
- lessThanXSeconds: {
- one: 'less than a second',
- other: 'less than {{count}} seconds'
- },
- xSeconds: {
- one: '1 second',
- other: '{{count}} seconds'
- },
- halfAMinute: 'half a minute',
- lessThanXMinutes: {
- one: 'less than a minute',
- other: 'less than {{count}} minutes'
- },
- xMinutes: {
- one: '1 minute',
- other: '{{count}} minutes'
- },
- aboutXHours: {
- one: 'about 1 hour',
- other: 'about {{count}} hours'
- },
- xHours: {
- one: '1 hour',
- other: '{{count}} hours'
- },
- xDays: {
- one: '1 day',
- other: '{{count}} days'
- },
- aboutXWeeks: {
- one: 'about 1 week',
- other: 'about {{count}} weeks'
- },
- xWeeks: {
- one: '1 week',
- other: '{{count}} weeks'
- },
- aboutXMonths: {
- one: 'about 1 month',
- other: 'about {{count}} months'
- },
- xMonths: {
- one: '1 month',
- other: '{{count}} months'
- },
- aboutXYears: {
- one: 'about 1 year',
- other: 'about {{count}} years'
- },
- xYears: {
- one: '1 year',
- other: '{{count}} years'
- },
- overXYears: {
- one: 'over 1 year',
- other: 'over {{count}} years'
- },
- almostXYears: {
- one: 'almost 1 year',
- other: 'almost {{count}} years'
- }
-};
-
-var formatDistance = function formatDistance(token, count, options) {
- var result;
- var tokenValue = formatDistanceLocale[token];
-
- if (typeof tokenValue === 'string') {
- result = tokenValue;
- } else if (count === 1) {
- result = tokenValue.one;
- } else {
- result = tokenValue.other.replace('{{count}}', count.toString());
- }
- if (options !== null && options !== void 0 && options.addSuffix) {
- if (options.comparison && options.comparison > 0) {
- return 'in ' + result;
- } else {
- return result + ' ago';
- }
- }
+;// CONCATENATED MODULE: ./node_modules/date-fns/_lib/protectedTokens.mjs
+const dayOfYearTokenRE = /^D+$/;
+const weekYearTokenRE = /^Y+$/;
- return result;
-};
+const throwTokens = ["D", "DD", "YY", "YYYY"];
-/* harmony default export */ const _lib_formatDistance = (formatDistance);
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js
-function buildFormatLongFn(args) {
- return function () {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- // TODO: Remove String()
- var width = options.width ? String(options.width) : args.defaultWidth;
- var format = args.formats[width] || args.formats[args.defaultWidth];
- return format;
- };
+function isProtectedDayOfYearToken(token) {
+ return dayOfYearTokenRE.test(token);
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js
-
-var dateFormats = {
- full: 'EEEE, MMMM do, y',
- long: 'MMMM do, y',
- medium: 'MMM d, y',
- short: 'MM/dd/yyyy'
-};
-var timeFormats = {
- full: 'h:mm:ss a zzzz',
- long: 'h:mm:ss a z',
- medium: 'h:mm:ss a',
- short: 'h:mm a'
-};
-var dateTimeFormats = {
- full: "{{date}} 'at' {{time}}",
- long: "{{date}} 'at' {{time}}",
- medium: '{{date}}, {{time}}',
- short: '{{date}}, {{time}}'
-};
-var formatLong = {
- date: buildFormatLongFn({
- formats: dateFormats,
- defaultWidth: 'full'
- }),
- time: buildFormatLongFn({
- formats: timeFormats,
- defaultWidth: 'full'
- }),
- dateTime: buildFormatLongFn({
- formats: dateTimeFormats,
- defaultWidth: 'full'
- })
-};
-/* harmony default export */ const _lib_formatLong = (formatLong);
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js
-var formatRelativeLocale = {
- lastWeek: "'last' eeee 'at' p",
- yesterday: "'yesterday at' p",
- today: "'today at' p",
- tomorrow: "'tomorrow at' p",
- nextWeek: "eeee 'at' p",
- other: 'P'
-};
-
-var formatRelative = function formatRelative(token, _date, _baseDate, _options) {
- return formatRelativeLocale[token];
-};
-
-/* harmony default export */ const _lib_formatRelative = (formatRelative);
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js
-function buildLocalizeFn(args) {
- return function (dirtyIndex, options) {
- var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';
- var valuesArray;
-
- if (context === 'formatting' && args.formattingValues) {
- var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
- var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
- valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
- } else {
- var _defaultWidth = args.defaultWidth;
-
- var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
-
- valuesArray = args.values[_width] || args.values[_defaultWidth];
- }
- var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
-
- return valuesArray[index];
- };
+function isProtectedWeekYearToken(token) {
+ return weekYearTokenRE.test(token);
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js
-
-var eraValues = {
- narrow: ['B', 'A'],
- abbreviated: ['BC', 'AD'],
- wide: ['Before Christ', 'Anno Domini']
-};
-var quarterValues = {
- narrow: ['1', '2', '3', '4'],
- abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
- wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
-}; // Note: in English, the names of days of the week and months are capitalized.
-// If you are making a new locale based on this one, check if the same is true for the language you're working on.
-// Generally, formatted dates should look like they are in the middle of a sentence,
-// e.g. in Spanish language the weekdays and months should be in the lowercase.
-
-var monthValues = {
- narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
- abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
- wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
-};
-var dayValues = {
- narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
- short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
- abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
- wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
-};
-var dayPeriodValues = {
- narrow: {
- am: 'a',
- pm: 'p',
- midnight: 'mi',
- noon: 'n',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- },
- abbreviated: {
- am: 'AM',
- pm: 'PM',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- },
- wide: {
- am: 'a.m.',
- pm: 'p.m.',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- }
-};
-var formattingDayPeriodValues = {
- narrow: {
- am: 'a',
- pm: 'p',
- midnight: 'mi',
- noon: 'n',
- morning: 'in the morning',
- afternoon: 'in the afternoon',
- evening: 'in the evening',
- night: 'at night'
- },
- abbreviated: {
- am: 'AM',
- pm: 'PM',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'in the morning',
- afternoon: 'in the afternoon',
- evening: 'in the evening',
- night: 'at night'
- },
- wide: {
- am: 'a.m.',
- pm: 'p.m.',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'in the morning',
- afternoon: 'in the afternoon',
- evening: 'in the evening',
- night: 'at night'
- }
-};
-
-var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
- var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
- // if they are different for different grammatical genders,
- // use `options.unit`.
- //
- // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
- // 'day', 'hour', 'minute', 'second'.
-
- var rem100 = number % 100;
-
- if (rem100 > 20 || rem100 < 10) {
- switch (rem100 % 10) {
- case 1:
- return number + 'st';
-
- case 2:
- return number + 'nd';
-
- case 3:
- return number + 'rd';
- }
- }
- return number + 'th';
-};
-
-var localize = {
- ordinalNumber: ordinalNumber,
- era: buildLocalizeFn({
- values: eraValues,
- defaultWidth: 'wide'
- }),
- quarter: buildLocalizeFn({
- values: quarterValues,
- defaultWidth: 'wide',
- argumentCallback: function argumentCallback(quarter) {
- return quarter - 1;
- }
- }),
- month: buildLocalizeFn({
- values: monthValues,
- defaultWidth: 'wide'
- }),
- day: buildLocalizeFn({
- values: dayValues,
- defaultWidth: 'wide'
- }),
- dayPeriod: buildLocalizeFn({
- values: dayPeriodValues,
- defaultWidth: 'wide',
- formattingValues: formattingDayPeriodValues,
- defaultFormattingWidth: 'wide'
- })
-};
-/* harmony default export */ const _lib_localize = (localize);
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js
-function buildMatchFn(args) {
- return function (string) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var width = options.width;
- var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
- var matchResult = string.match(matchPattern);
-
- if (!matchResult) {
- return null;
- }
-
- var matchedString = matchResult[0];
- var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
- var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {
- return pattern.test(matchedString);
- }) : findKey(parsePatterns, function (pattern) {
- return pattern.test(matchedString);
- });
- var value;
- value = args.valueCallback ? args.valueCallback(key) : key;
- value = options.valueCallback ? options.valueCallback(value) : value;
- var rest = string.slice(matchedString.length);
- return {
- value: value,
- rest: rest
- };
- };
+function warnOrThrowProtectedError(token, format, input) {
+ const _message = message(token, format, input);
+ console.warn(_message);
+ if (throwTokens.includes(token)) throw new RangeError(_message);
}
-function findKey(object, predicate) {
- for (var key in object) {
- if (object.hasOwnProperty(key) && predicate(object[key])) {
- return key;
- }
- }
-
- return undefined;
+function message(token, format, input) {
+ const subject = token[0] === "Y" ? "years" : "days of the month";
+ return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
}
-function findIndex(array, predicate) {
- for (var key = 0; key < array.length; key++) {
- if (predicate(array[key])) {
- return key;
- }
- }
-
- return undefined;
-}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js
-function buildMatchPatternFn(args) {
- return function (string) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var matchResult = string.match(args.matchPattern);
- if (!matchResult) return null;
- var matchedString = matchResult[0];
- var parseResult = string.match(args.parsePattern);
- if (!parseResult) return null;
- var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
- value = options.valueCallback ? options.valueCallback(value) : value;
- var rest = string.slice(matchedString.length);
- return {
- value: value,
- rest: rest
- };
- };
+;// CONCATENATED MODULE: ./node_modules/date-fns/isDate.mjs
+/**
+ * @name isDate
+ * @category Common Helpers
+ * @summary Is the given value a date?
+ *
+ * @description
+ * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
+ *
+ * @param value - The value to check
+ *
+ * @returns True if the given value is a date
+ *
+ * @example
+ * // For a valid date:
+ * const result = isDate(new Date())
+ * //=> true
+ *
+ * @example
+ * // For an invalid date:
+ * const result = isDate(new Date(NaN))
+ * //=> true
+ *
+ * @example
+ * // For some value:
+ * const result = isDate('2014-02-31')
+ * //=> false
+ *
+ * @example
+ * // For an object:
+ * const result = isDate({})
+ * //=> false
+ */
+function isDate(value) {
+ return (
+ value instanceof Date ||
+ (typeof value === "object" &&
+ Object.prototype.toString.call(value) === "[object Date]")
+ );
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/en-US/_lib/match/index.js
-
-
-var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
-var parseOrdinalNumberPattern = /\d+/i;
-var matchEraPatterns = {
- narrow: /^(b|a)/i,
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
- wide: /^(before christ|before common era|anno domini|common era)/i
-};
-var parseEraPatterns = {
- any: [/^b/i, /^(a|c)/i]
-};
-var matchQuarterPatterns = {
- narrow: /^[1234]/i,
- abbreviated: /^q[1234]/i,
- wide: /^[1234](th|st|nd|rd)? quarter/i
-};
-var parseQuarterPatterns = {
- any: [/1/i, /2/i, /3/i, /4/i]
-};
-var matchMonthPatterns = {
- narrow: /^[jfmasond]/i,
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
-};
-var parseMonthPatterns = {
- narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
- any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
-};
-var matchDayPatterns = {
- narrow: /^[smtwf]/i,
- short: /^(su|mo|tu|we|th|fr|sa)/i,
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
-};
-var parseDayPatterns = {
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
-};
-var matchDayPeriodPatterns = {
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
-};
-var parseDayPeriodPatterns = {
- any: {
- am: /^a/i,
- pm: /^p/i,
- midnight: /^mi/i,
- noon: /^no/i,
- morning: /morning/i,
- afternoon: /afternoon/i,
- evening: /evening/i,
- night: /night/i
- }
-};
-var match_match = {
- ordinalNumber: buildMatchPatternFn({
- matchPattern: matchOrdinalNumberPattern,
- parsePattern: parseOrdinalNumberPattern,
- valueCallback: function valueCallback(value) {
- return parseInt(value, 10);
- }
- }),
- era: buildMatchFn({
- matchPatterns: matchEraPatterns,
- defaultMatchWidth: 'wide',
- parsePatterns: parseEraPatterns,
- defaultParseWidth: 'any'
- }),
- quarter: buildMatchFn({
- matchPatterns: matchQuarterPatterns,
- defaultMatchWidth: 'wide',
- parsePatterns: parseQuarterPatterns,
- defaultParseWidth: 'any',
- valueCallback: function valueCallback(index) {
- return index + 1;
- }
- }),
- month: buildMatchFn({
- matchPatterns: matchMonthPatterns,
- defaultMatchWidth: 'wide',
- parsePatterns: parseMonthPatterns,
- defaultParseWidth: 'any'
- }),
- day: buildMatchFn({
- matchPatterns: matchDayPatterns,
- defaultMatchWidth: 'wide',
- parsePatterns: parseDayPatterns,
- defaultParseWidth: 'any'
- }),
- dayPeriod: buildMatchFn({
- matchPatterns: matchDayPeriodPatterns,
- defaultMatchWidth: 'any',
- parsePatterns: parseDayPeriodPatterns,
- defaultParseWidth: 'any'
- })
-};
-/* harmony default export */ const _lib_match = (match_match);
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/locale/en-US/index.js
-
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_isDate = ((/* unused pure expression or super */ null && (isDate)));
+;// CONCATENATED MODULE: ./node_modules/date-fns/isValid.mjs
/**
- * @type {Locale}
- * @category Locales
- * @summary English locale (United States).
- * @language English
- * @iso-639-2 eng
- * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
- * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
- */
-var locale = {
- code: 'en-US',
- formatDistance: _lib_formatDistance,
- formatLong: _lib_formatLong,
- formatRelative: _lib_formatRelative,
- localize: _lib_localize,
- match: _lib_match,
- options: {
- weekStartsOn: 0
- /* Sunday */
- ,
- firstWeekContainsDate: 1
+ * @name isValid
+ * @category Common Helpers
+ * @summary Is the given date valid?
+ *
+ * @description
+ * Returns false if argument is Invalid Date and true otherwise.
+ * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate)
+ * Invalid Date is a Date, whose time value is NaN.
+ *
+ * Time value of Date: http://es5.github.io/#x15.9.1.1
+ *
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date to check
+ *
+ * @returns The date is valid
+ *
+ * @example
+ * // For the valid date:
+ * const result = isValid(new Date(2014, 1, 31))
+ * //=> true
+ *
+ * @example
+ * // For the value, convertable into a date:
+ * const result = isValid(1393804800000)
+ * //=> true
+ *
+ * @example
+ * // For the invalid date:
+ * const result = isValid(new Date(''))
+ * //=> false
+ */
+function isValid(date) {
+ if (!isDate(date) && typeof date !== "number") {
+ return false;
}
-};
-/* harmony default export */ const en_US = (locale);
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/defaultLocale/index.js
+ const _date = toDate_toDate(date);
+ return !isNaN(Number(_date));
+}
+
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_isValid = ((/* unused pure expression or super */ null && (isValid)));
-/* harmony default export */ const defaultLocale = (en_US);
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/format/index.js
+;// CONCATENATED MODULE: ./node_modules/date-fns/format.mjs
@@ -55762,9 +55640,11 @@ var locale = {
+// Rexports of internal for libraries to use.
+// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874
- // This RegExp consists of three parts separated by `|`:
+// This RegExp consists of three parts separated by `|`:
// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
// (one of the certain letters followed by `o`)
// - (\w)\1* matches any sequences of the same letter
@@ -55775,16 +55655,26 @@ var locale = {
// If there is no matching single quote
// then the sequence will continue until the end of the string.
// - . matches any single character unmatched by previous parts of the RegExps
+const formattingTokensRegExp =
+ /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
-var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
+// This RegExp catches symbols escaped by quotes, and also
// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
+const longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
+
+const escapedStringRegExp = /^'([^]*?)'?$/;
+const doubleQuoteRegExp = /''/g;
+const unescapedLatinCharacterRegExp = /[a-zA-Z]/;
+
+
+
+/**
+ * The {@link format} function options.
+ */
-var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
-var escapedStringRegExp = /^'([^]*?)'?$/;
-var doubleQuoteRegExp = /''/g;
-var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
/**
* @name format
+ * @alias formatDate
* @category Common Helpers
* @summary Format the date.
*
@@ -56011,8 +55901,8 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
*
* The same difference is true for local and ISO week-numbering years (`Y` and `R`),
* except local week-numbering years are dependent on `options.weekStartsOn`
- * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear}
- * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}).
+ * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)
+ * and [getWeekYear](https://date-fns.org/docs/getWeekYear)).
*
* 6. Specific non-location timezones are currently unavailable in `date-fns`,
* so right now these tokens fall back to GMT timezones.
@@ -56033,28 +55923,22 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
* 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
* You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
*
- * @param {Date|Number} date - the original date
- * @param {String} format - the string of tokens
- * @param {Object} [options] - an object with options.
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
- * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is
- * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
- * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
- * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- * @returns {String} the formatted date string
- * @throws {TypeError} 2 arguments required
- * @throws {RangeError} `date` must not be Invalid Date
- * @throws {RangeError} `options.locale` must contain `localize` property
- * @throws {RangeError} `options.locale` must contain `formatLong` property
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
- * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
- * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- * @throws {RangeError} format string contains an unescaped latin alphabet character
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The original date
+ * @param format - The string of tokens
+ * @param options - An object with options
+ *
+ * @returns The formatted date string
+ *
+ * @throws `date` must not be Invalid Date
+ * @throws `options.locale` must contain `localize` property
+ * @throws `options.locale` must contain `formatLong` property
+ * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
+ * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
+ * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
+ * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
+ * @throws format string contains an unescaped latin alphabet character
*
* @example
* // Represent 11 February 2014 in middle-endian format:
@@ -56074,97 +55958,102 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
* const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
* //=> "3 o'clock"
*/
+function format(date, formatStr, options) {
+ const defaultOptions = defaultOptions_getDefaultOptions();
+ const locale = options?.locale ?? defaultOptions.locale ?? enUS;
-function format(dirtyDate, dirtyFormatStr, options) {
- var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;
-
- requiredArgs_requiredArgs(2, arguments);
- var formatStr = String(dirtyFormatStr);
- var defaultOptions = defaultOptions_getDefaultOptions();
- var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale;
- var firstWeekContainsDate = toInteger_toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
+ const firstWeekContainsDate =
+ options?.firstWeekContainsDate ??
+ options?.locale?.options?.firstWeekContainsDate ??
+ defaultOptions.firstWeekContainsDate ??
+ defaultOptions.locale?.options?.firstWeekContainsDate ??
+ 1;
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
- throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
- }
-
- var weekStartsOn = toInteger_toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
+ const weekStartsOn =
+ options?.weekStartsOn ??
+ options?.locale?.options?.weekStartsOn ??
+ defaultOptions.weekStartsOn ??
+ defaultOptions.locale?.options?.weekStartsOn ??
+ 0;
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- }
+ const originalDate = toDate_toDate(date);
- if (!locale.localize) {
- throw new RangeError('locale must contain localize property');
+ if (!isValid(originalDate)) {
+ throw new RangeError("Invalid time value");
}
- if (!locale.formatLong) {
- throw new RangeError('locale must contain formatLong property');
- }
+ let parts = formatStr
+ .match(longFormattingTokensRegExp)
+ .map((substring) => {
+ const firstCharacter = substring[0];
+ if (firstCharacter === "p" || firstCharacter === "P") {
+ const longFormatter = longFormatters[firstCharacter];
+ return longFormatter(substring, locale.formatLong);
+ }
+ return substring;
+ })
+ .join("")
+ .match(formattingTokensRegExp)
+ .map((substring) => {
+ // Replace two single quote characters with one single quote character
+ if (substring === "''") {
+ return { isToken: false, value: "'" };
+ }
- var originalDate = toDate_toDate(dirtyDate);
+ const firstCharacter = substring[0];
+ if (firstCharacter === "'") {
+ return { isToken: false, value: cleanEscapedString(substring) };
+ }
- if (!isValid(originalDate)) {
- throw new RangeError('Invalid time value');
- } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
- // This ensures that when UTC functions will be implemented, locales will be compatible with them.
- // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
-
-
- var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
- var utcDate = subMilliseconds(originalDate, timezoneOffset);
- var formatterOptions = {
- firstWeekContainsDate: firstWeekContainsDate,
- weekStartsOn: weekStartsOn,
- locale: locale,
- _originalDate: originalDate
- };
- var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {
- var firstCharacter = substring[0];
+ if (formatters[firstCharacter]) {
+ return { isToken: true, value: substring };
+ }
- if (firstCharacter === 'p' || firstCharacter === 'P') {
- var longFormatter = format_longFormatters[firstCharacter];
- return longFormatter(substring, locale.formatLong);
- }
+ if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
+ throw new RangeError(
+ "Format string contains an unescaped latin alphabet character `" +
+ firstCharacter +
+ "`",
+ );
+ }
- return substring;
- }).join('').match(formattingTokensRegExp).map(function (substring) {
- // Replace two single quote characters with one single quote character
- if (substring === "''") {
- return "'";
- }
+ return { isToken: false, value: substring };
+ });
- var firstCharacter = substring[0];
+ // invoke localize preprocessor (only for french locales at the moment)
+ if (locale.localize.preprocessor) {
+ parts = locale.localize.preprocessor(originalDate, parts);
+ }
- if (firstCharacter === "'") {
- return cleanEscapedString(substring);
- }
+ const formatterOptions = {
+ firstWeekContainsDate,
+ weekStartsOn,
+ locale,
+ };
- var formatter = format_formatters[firstCharacter];
+ return parts
+ .map((part) => {
+ if (!part.isToken) return part.value;
- if (formatter) {
- if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
- throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
- }
+ const token = part.value;
- if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
- throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
+ if (
+ (!options?.useAdditionalWeekYearTokens &&
+ isProtectedWeekYearToken(token)) ||
+ (!options?.useAdditionalDayOfYearTokens &&
+ isProtectedDayOfYearToken(token))
+ ) {
+ warnOrThrowProtectedError(token, formatStr, String(date));
}
- return formatter(utcDate, substring, locale.localize, formatterOptions);
- }
-
- if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
- throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
- }
-
- return substring;
- }).join('');
- return result;
+ const formatter = formatters[token[0]];
+ return formatter(originalDate, token, locale.localize, formatterOptions);
+ })
+ .join("");
}
function cleanEscapedString(input) {
- var matched = input.match(escapedStringRegExp);
+ const matched = input.match(escapedStringRegExp);
if (!matched) {
return input;
@@ -56172,7 +56061,11 @@ function cleanEscapedString(input) {
return matched[1].replace(doubleQuoteRegExp, "'");
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/isSameMonth/index.js
+
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_format = ((/* unused pure expression or super */ null && (format)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/isSameMonth.mjs
/**
@@ -56183,10 +56076,12 @@ function cleanEscapedString(input) {
* @description
* Are the given dates in the same month (and year)?
*
- * @param {Date|Number} dateLeft - the first date to check
- * @param {Date|Number} dateRight - the second date to check
- * @returns {Boolean} the dates are in the same month (and year)
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param dateLeft - The first date to check
+ * @param dateRight - The second date to check
+ *
+ * @returns The dates are in the same month (and year)
*
* @example
* // Are 2 September 2014 and 25 September 2014 in the same month?
@@ -56198,14 +56093,19 @@ function cleanEscapedString(input) {
* const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))
* //=> false
*/
-
-function isSameMonth(dirtyDateLeft, dirtyDateRight) {
- requiredArgs_requiredArgs(2, arguments);
- var dateLeft = toDate_toDate(dirtyDateLeft);
- var dateRight = toDate_toDate(dirtyDateRight);
- return dateLeft.getFullYear() === dateRight.getFullYear() && dateLeft.getMonth() === dateRight.getMonth();
+function isSameMonth(dateLeft, dateRight) {
+ const _dateLeft = toDate_toDate(dateLeft);
+ const _dateRight = toDate_toDate(dateRight);
+ return (
+ _dateLeft.getFullYear() === _dateRight.getFullYear() &&
+ _dateLeft.getMonth() === _dateRight.getMonth()
+ );
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/isEqual/index.js
+
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_isSameMonth = ((/* unused pure expression or super */ null && (isSameMonth)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/isEqual.mjs
/**
@@ -56216,10 +56116,12 @@ function isSameMonth(dirtyDateLeft, dirtyDateRight) {
* @description
* Are the given dates equal?
*
- * @param {Date|Number} dateLeft - the first date to compare
- * @param {Date|Number} dateRight - the second date to compare
- * @returns {Boolean} the dates are equal
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param dateLeft - The first date to compare
+ * @param dateRight - The second date to compare
+ *
+ * @returns The dates are equal
*
* @example
* // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal?
@@ -56229,14 +56131,16 @@ function isSameMonth(dirtyDateLeft, dirtyDateRight) {
* )
* //=> false
*/
-
-function isEqual_isEqual(dirtyLeftDate, dirtyRightDate) {
- requiredArgs_requiredArgs(2, arguments);
- var dateLeft = toDate_toDate(dirtyLeftDate);
- var dateRight = toDate_toDate(dirtyRightDate);
- return dateLeft.getTime() === dateRight.getTime();
+function isEqual_isEqual(leftDate, rightDate) {
+ const _dateLeft = toDate_toDate(leftDate);
+ const _dateRight = toDate_toDate(rightDate);
+ return +_dateLeft === +_dateRight;
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/isSameDay/index.js
+
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_isEqual = ((/* unused pure expression or super */ null && (isEqual_isEqual)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/isSameDay.mjs
/**
@@ -56247,10 +56151,12 @@ function isEqual_isEqual(dirtyLeftDate, dirtyRightDate) {
* @description
* Are the given dates in the same day (and year and month)?
*
- * @param {Date|Number} dateLeft - the first date to check
- * @param {Date|Number} dateRight - the second date to check
- * @returns {Boolean} the dates are in the same day (and year and month)
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param dateLeft - The first date to check
+ * @param dateRight - The second date to check
+
+ * @returns The dates are in the same day (and year and month)
*
* @example
* // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
@@ -56267,14 +56173,17 @@ function isEqual_isEqual(dirtyLeftDate, dirtyRightDate) {
* const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
* //=> false
*/
+function isSameDay(dateLeft, dateRight) {
+ const dateLeftStartOfDay = startOfDay_startOfDay(dateLeft);
+ const dateRightStartOfDay = startOfDay_startOfDay(dateRight);
-function isSameDay(dirtyDateLeft, dirtyDateRight) {
- requiredArgs_requiredArgs(2, arguments);
- var dateLeftStartOfDay = startOfDay_startOfDay(dirtyDateLeft);
- var dateRightStartOfDay = startOfDay_startOfDay(dirtyDateRight);
- return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();
+ return +dateLeftStartOfDay === +dateRightStartOfDay;
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/addDays/index.js
+
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_isSameDay = ((/* unused pure expression or super */ null && (isSameDay)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/addDays.mjs
@@ -56286,36 +56195,33 @@ function isSameDay(dirtyDateLeft, dirtyDateRight) {
* @description
* Add the specified number of days to the given date.
*
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} - the new date with the days added
- * @throws {TypeError} - 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date to be changed
+ * @param amount - The amount of days to be added.
+ *
+ * @returns The new date with the days added
*
* @example
* // Add 10 days to 1 September 2014:
* const result = addDays(new Date(2014, 8, 1), 10)
* //=> Thu Sep 11 2014 00:00:00
*/
-
-function addDays_addDays(dirtyDate, dirtyAmount) {
- requiredArgs_requiredArgs(2, arguments);
- var date = toDate_toDate(dirtyDate);
- var amount = toInteger_toInteger(dirtyAmount);
-
- if (isNaN(amount)) {
- return new Date(NaN);
- }
-
+function addDays_addDays(date, amount) {
+ const _date = toDate_toDate(date);
+ if (isNaN(amount)) return constructFrom_constructFrom(date, NaN);
if (!amount) {
// If 0 days, no-op to avoid changing times in the hour before end of DST
- return date;
+ return _date;
}
-
- date.setDate(date.getDate() + amount);
- return date;
+ _date.setDate(_date.getDate() + amount);
+ return _date;
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/addWeeks/index.js
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_addDays = ((/* unused pure expression or super */ null && (addDays_addDays)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/addWeeks.mjs
/**
@@ -56326,25 +56232,27 @@ function addDays_addDays(dirtyDate, dirtyAmount) {
* @description
* Add the specified number of week to the given date.
*
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of weeks to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} the new date with the weeks added
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date to be changed
+ * @param amount - The amount of weeks to be added.
+ *
+ * @returns The new date with the weeks added
*
* @example
* // Add 4 weeks to 1 September 2014:
* const result = addWeeks(new Date(2014, 8, 1), 4)
* //=> Mon Sep 29 2014 00:00:00
*/
-
-function addWeeks_addWeeks(dirtyDate, dirtyAmount) {
- requiredArgs_requiredArgs(2, arguments);
- var amount = toInteger_toInteger(dirtyAmount);
- var days = amount * 7;
- return addDays_addDays(dirtyDate, days);
+function addWeeks_addWeeks(date, amount) {
+ const days = amount * 7;
+ return addDays_addDays(date, days);
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/subWeeks/index.js
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_addWeeks = ((/* unused pure expression or super */ null && (addWeeks_addWeeks)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/subWeeks.mjs
/**
@@ -56355,79 +56263,33 @@ function addWeeks_addWeeks(dirtyDate, dirtyAmount) {
* @description
* Subtract the specified number of weeks from the given date.
*
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of weeks to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} the new date with the weeks subtracted
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date to be changed
+ * @param amount - The amount of weeks to be subtracted.
+ *
+ * @returns The new date with the weeks subtracted
*
* @example
* // Subtract 4 weeks from 1 September 2014:
* const result = subWeeks(new Date(2014, 8, 1), 4)
* //=> Mon Aug 04 2014 00:00:00
*/
-
-function subWeeks(dirtyDate, dirtyAmount) {
- requiredArgs_requiredArgs(2, arguments);
- var amount = toInteger_toInteger(dirtyAmount);
- return addWeeks_addWeeks(dirtyDate, -amount);
+function subWeeks(date, amount) {
+ return addWeeks_addWeeks(date, -amount);
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/startOfWeek/index.js
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_subWeeks = ((/* unused pure expression or super */ null && (subWeeks)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/endOfWeek.mjs
/**
- * @name startOfWeek
- * @category Week Helpers
- * @summary Return the start of a week for the given date.
- *
- * @description
- * Return the start of a week for the given date.
- * The result will be in the local timezone.
- *
- * @param {Date|Number} date - the original date
- * @param {Object} [options] - an object with options.
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
- * @returns {Date} the start of a week
- * @throws {TypeError} 1 argument required
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
- *
- * @example
- * // The start of a week for 2 September 2014 11:55:00:
- * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
- * //=> Sun Aug 31 2014 00:00:00
- *
- * @example
- * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
- * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
- * //=> Mon Sep 01 2014 00:00:00
+ * The {@link endOfWeek} function options.
*/
-function startOfWeek_startOfWeek(dirtyDate, options) {
- var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
-
- requiredArgs_requiredArgs(1, arguments);
- var defaultOptions = defaultOptions_getDefaultOptions();
- var weekStartsOn = toInteger_toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
-
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- }
-
- var date = toDate_toDate(dirtyDate);
- var day = date.getDay();
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
- date.setDate(date.getDate() - diff);
- date.setHours(0, 0, 0, 0);
- return date;
-}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/endOfWeek/index.js
-
-
-
-
-
/**
* @name endOfWeek
* @category Week Helpers
@@ -56437,13 +56299,12 @@ function startOfWeek_startOfWeek(dirtyDate, options) {
* Return the end of a week for the given date.
* The result will be in the local timezone.
*
- * @param {Date|Number} date - the original date
- * @param {Object} [options] - an object with options.
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
- * @returns {Date} the end of a week
- * @throws {TypeError} 1 argument required
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The original date
+ * @param options - An object with options
+ *
+ * @returns The end of a week
*
* @example
* // The end of a week for 2 September 2014 11:55:00:
@@ -56455,50 +56316,55 @@ function startOfWeek_startOfWeek(dirtyDate, options) {
* const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
* //=> Sun Sep 07 2014 23:59:59.999
*/
-function endOfWeek_endOfWeek(dirtyDate, options) {
- var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
+function endOfWeek_endOfWeek(date, options) {
+ const defaultOptions = defaultOptions_getDefaultOptions();
+ const weekStartsOn =
+ options?.weekStartsOn ??
+ options?.locale?.options?.weekStartsOn ??
+ defaultOptions.weekStartsOn ??
+ defaultOptions.locale?.options?.weekStartsOn ??
+ 0;
- requiredArgs_requiredArgs(1, arguments);
- var defaultOptions = defaultOptions_getDefaultOptions();
- var weekStartsOn = toInteger_toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
-
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- }
+ const _date = toDate_toDate(date);
+ const day = _date.getDay();
+ const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);
- var date = toDate_toDate(dirtyDate);
- var day = date.getDay();
- var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);
- date.setDate(date.getDate() + diff);
- date.setHours(23, 59, 59, 999);
- return date;
+ _date.setDate(_date.getDate() + diff);
+ _date.setHours(23, 59, 59, 999);
+ return _date;
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/arrow-right.js
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_endOfWeek = ((/* unused pure expression or super */ null && (endOfWeek_endOfWeek)));
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/arrow-right.js
/**
* WordPress dependencies
*/
-const arrowRight = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const arrowRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"
+ })
+});
/* harmony default export */ const arrow_right = (arrowRight);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/arrow-left.js
-
/**
* WordPress dependencies
*/
-const arrowLeft = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const arrowLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"
+ })
+});
/* harmony default export */ const arrow_left = (arrowLeft);
;// CONCATENATED MODULE: external ["wp","date"]
@@ -56518,7 +56384,7 @@ function date_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried t
-const styles_Wrapper = emotion_styled_base_browser_esm("div", true ? {
+const styles_Wrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "e105ri6r5"
} : 0)( true ? {
name: "1khn195",
@@ -56530,10 +56396,10 @@ const Navigator = /*#__PURE__*/emotion_styled_base_browser_esm(h_stack_component
const NavigatorHeading = /*#__PURE__*/emotion_styled_base_browser_esm(heading_component, true ? {
target: "e105ri6r3"
} : 0)("font-size:", config_values.fontSize, ";font-weight:", config_values.fontWeight, ";strong{font-weight:", config_values.fontWeightHeading, ";}" + ( true ? "" : 0));
-const Calendar = emotion_styled_base_browser_esm("div", true ? {
+const Calendar = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "e105ri6r2"
} : 0)("column-gap:", space(2), ";display:grid;grid-template-columns:0.5fr repeat( 5, 1fr ) 0.5fr;justify-items:center;row-gap:", space(2), ";" + ( true ? "" : 0));
-const DayOfWeek = emotion_styled_base_browser_esm("div", true ? {
+const DayOfWeek = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "e105ri6r1"
} : 0)("color:", COLORS.gray[700], ";font-size:", config_values.fontSize, ";line-height:", config_values.fontLineHeightBase, ";&:nth-of-type( 1 ){justify-self:start;}&:nth-of-type( 7 ){justify-self:end;}" + ( true ? "" : 0));
const DayButton = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_button, true ? {
@@ -56587,7 +56453,6 @@ function inputToDate(input) {
const TIMEZONELESS_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/date/index.js
-
/**
* External dependencies
*/
@@ -56629,6 +56494,8 @@ const TIMEZONELESS_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
* };
* ```
*/
+
+
function DatePicker({
currentDate,
onChange,
@@ -56669,93 +56536,99 @@ function DatePicker({
setViewing(startOfDay_startOfDay(date));
setFocusable(startOfDay_startOfDay(date));
}
- return (0,external_React_.createElement)(styles_Wrapper, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_Wrapper, {
className: "components-datetime__date",
role: "application",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Calendar')
- }, (0,external_React_.createElement)(Navigator, null, (0,external_React_.createElement)(build_module_button, {
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? arrow_right : arrow_left,
- variant: "tertiary",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('View previous month'),
- onClick: () => {
- viewPreviousMonth();
- setFocusable(subMonths_subMonths(focusable, 1));
- onMonthPreviewed?.(format(subMonths_subMonths(viewing, 1), TIMEZONELESS_FORMAT));
- }
- }), (0,external_React_.createElement)(NavigatorHeading, {
- level: 3
- }, (0,external_React_.createElement)("strong", null, (0,external_wp_date_namespaceObject.dateI18n)('F', viewing, -viewing.getTimezoneOffset())), ' ', (0,external_wp_date_namespaceObject.dateI18n)('Y', viewing, -viewing.getTimezoneOffset())), (0,external_React_.createElement)(build_module_button, {
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? arrow_left : arrow_right,
- variant: "tertiary",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('View next month'),
- onClick: () => {
- viewNextMonth();
- setFocusable(addMonths_addMonths(focusable, 1));
- onMonthPreviewed?.(format(addMonths_addMonths(viewing, 1), TIMEZONELESS_FORMAT));
- }
- })), (0,external_React_.createElement)(Calendar, {
- onFocus: () => setIsFocusWithinCalendar(true),
- onBlur: () => setIsFocusWithinCalendar(false)
- }, calendar[0][0].map(day => (0,external_React_.createElement)(DayOfWeek, {
- key: day.toString()
- }, (0,external_wp_date_namespaceObject.dateI18n)('D', day, -day.getTimezoneOffset()))), calendar[0].map(week => week.map((day, index) => {
- if (!isSameMonth(day, viewing)) {
- return null;
- }
- return (0,external_React_.createElement)(date_Day, {
- key: day.toString(),
- day: day,
- column: index + 1,
- isSelected: isSelected(day),
- isFocusable: isEqual_isEqual(day, focusable),
- isFocusAllowed: isFocusWithinCalendar,
- isToday: isSameDay(day, new Date()),
- isInvalid: isInvalidDate ? isInvalidDate(day) : false,
- numEvents: events.filter(event => isSameDay(event.date, day)).length,
- onClick: () => {
- setSelected([day]);
- setFocusable(day);
- onChange?.(format(
- // Don't change the selected date's time fields.
- new Date(day.getFullYear(), day.getMonth(), day.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()), TIMEZONELESS_FORMAT));
- },
- onKeyDown: event => {
- let nextFocusable;
- if (event.key === 'ArrowLeft') {
- nextFocusable = addDays_addDays(day, (0,external_wp_i18n_namespaceObject.isRTL)() ? 1 : -1);
- }
- if (event.key === 'ArrowRight') {
- nextFocusable = addDays_addDays(day, (0,external_wp_i18n_namespaceObject.isRTL)() ? -1 : 1);
- }
- if (event.key === 'ArrowUp') {
- nextFocusable = subWeeks(day, 1);
- }
- if (event.key === 'ArrowDown') {
- nextFocusable = addWeeks_addWeeks(day, 1);
- }
- if (event.key === 'PageUp') {
- nextFocusable = subMonths_subMonths(day, 1);
- }
- if (event.key === 'PageDown') {
- nextFocusable = addMonths_addMonths(day, 1);
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Calendar'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Navigator, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? arrow_right : arrow_left,
+ variant: "tertiary",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('View previous month'),
+ onClick: () => {
+ viewPreviousMonth();
+ setFocusable(subMonths_subMonths(focusable, 1));
+ onMonthPreviewed?.(format(subMonths_subMonths(viewing, 1), TIMEZONELESS_FORMAT));
}
- if (event.key === 'Home') {
- nextFocusable = startOfWeek_startOfWeek(day);
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(NavigatorHeading, {
+ level: 3,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", {
+ children: (0,external_wp_date_namespaceObject.dateI18n)('F', viewing, -viewing.getTimezoneOffset())
+ }), ' ', (0,external_wp_date_namespaceObject.dateI18n)('Y', viewing, -viewing.getTimezoneOffset())]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? arrow_left : arrow_right,
+ variant: "tertiary",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('View next month'),
+ onClick: () => {
+ viewNextMonth();
+ setFocusable(addMonths_addMonths(focusable, 1));
+ onMonthPreviewed?.(format(addMonths_addMonths(viewing, 1), TIMEZONELESS_FORMAT));
}
- if (event.key === 'End') {
- nextFocusable = startOfDay_startOfDay(endOfWeek_endOfWeek(day));
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Calendar, {
+ onFocus: () => setIsFocusWithinCalendar(true),
+ onBlur: () => setIsFocusWithinCalendar(false),
+ children: [calendar[0][0].map(day => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DayOfWeek, {
+ children: (0,external_wp_date_namespaceObject.dateI18n)('D', day, -day.getTimezoneOffset())
+ }, day.toString())), calendar[0].map(week => week.map((day, index) => {
+ if (!isSameMonth(day, viewing)) {
+ return null;
}
- if (nextFocusable) {
- event.preventDefault();
- setFocusable(nextFocusable);
- if (!isSameMonth(nextFocusable, viewing)) {
- setViewing(nextFocusable);
- onMonthPreviewed?.(format(nextFocusable, TIMEZONELESS_FORMAT));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(date_Day, {
+ day: day,
+ column: index + 1,
+ isSelected: isSelected(day),
+ isFocusable: isEqual_isEqual(day, focusable),
+ isFocusAllowed: isFocusWithinCalendar,
+ isToday: isSameDay(day, new Date()),
+ isInvalid: isInvalidDate ? isInvalidDate(day) : false,
+ numEvents: events.filter(event => isSameDay(event.date, day)).length,
+ onClick: () => {
+ setSelected([day]);
+ setFocusable(day);
+ onChange?.(format(
+ // Don't change the selected date's time fields.
+ new Date(day.getFullYear(), day.getMonth(), day.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()), TIMEZONELESS_FORMAT));
+ },
+ onKeyDown: event => {
+ let nextFocusable;
+ if (event.key === 'ArrowLeft') {
+ nextFocusable = addDays_addDays(day, (0,external_wp_i18n_namespaceObject.isRTL)() ? 1 : -1);
+ }
+ if (event.key === 'ArrowRight') {
+ nextFocusable = addDays_addDays(day, (0,external_wp_i18n_namespaceObject.isRTL)() ? -1 : 1);
+ }
+ if (event.key === 'ArrowUp') {
+ nextFocusable = subWeeks(day, 1);
+ }
+ if (event.key === 'ArrowDown') {
+ nextFocusable = addWeeks_addWeeks(day, 1);
+ }
+ if (event.key === 'PageUp') {
+ nextFocusable = subMonths_subMonths(day, 1);
+ }
+ if (event.key === 'PageDown') {
+ nextFocusable = addMonths_addMonths(day, 1);
+ }
+ if (event.key === 'Home') {
+ nextFocusable = startOfWeek_startOfWeek(day);
+ }
+ if (event.key === 'End') {
+ nextFocusable = startOfDay_startOfDay(endOfWeek_endOfWeek(day));
+ }
+ if (nextFocusable) {
+ event.preventDefault();
+ setFocusable(nextFocusable);
+ if (!isSameMonth(nextFocusable, viewing)) {
+ setViewing(nextFocusable);
+ onMonthPreviewed?.(format(nextFocusable, TIMEZONELESS_FORMAT));
+ }
+ }
}
- }
- }
- });
- }))));
+ }, day.toString());
+ }))]
+ })]
+ });
}
function date_Day({
day,
@@ -56782,7 +56655,7 @@ function date_Day({
// an already focused element.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isFocusable]);
- return (0,external_React_.createElement)(DayButton, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DayButton, {
ref: ref,
className: "components-datetime__date__day" // Unused, for backwards compatibility.
,
@@ -56794,8 +56667,9 @@ function date_Day({
isToday: isToday,
hasEvents: numEvents > 0,
onClick: onClick,
- onKeyDown: onKeyDown
- }, (0,external_wp_date_namespaceObject.dateI18n)('j', day, -day.getTimezoneOffset()));
+ onKeyDown: onKeyDown,
+ children: (0,external_wp_date_namespaceObject.dateI18n)('j', day, -day.getTimezoneOffset())
+ });
}
function getDayLabel(date, isSelected, numEvents) {
const {
@@ -56819,7 +56693,7 @@ function getDayLabel(date, isSelected, numEvents) {
}
/* harmony default export */ const date = (DatePicker);
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/startOfMinute/index.js
+;// CONCATENATED MODULE: ./node_modules/date-fns/startOfMinute.mjs
/**
@@ -56831,23 +56705,28 @@ function getDayLabel(date, isSelected, numEvents) {
* Return the start of a minute for the given date.
* The result will be in the local timezone.
*
- * @param {Date|Number} date - the original date
- * @returns {Date} the start of a minute
- * @throws {TypeError} 1 argument required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The original date
+ *
+ * @returns The start of a minute
*
* @example
* // The start of a minute for 1 December 2014 22:15:45.400:
* const result = startOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400))
* //=> Mon Dec 01 2014 22:15:00
*/
-
-function startOfMinute(dirtyDate) {
- requiredArgs_requiredArgs(1, arguments);
- var date = toDate_toDate(dirtyDate);
- date.setSeconds(0, 0);
- return date;
+function startOfMinute(date) {
+ const _date = toDate_toDate(date);
+ _date.setSeconds(0, 0);
+ return _date;
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/getDaysInMonth/index.js
+
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_startOfMinute = ((/* unused pure expression or super */ null && (startOfMinute)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/getDaysInMonth.mjs
+
/**
@@ -56858,27 +56737,31 @@ function startOfMinute(dirtyDate) {
* @description
* Get the number of days in a month of the given date.
*
- * @param {Date|Number} date - the given date
- * @returns {Number} the number of days in a month
- * @throws {TypeError} 1 argument required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The given date
+ *
+ * @returns The number of days in a month
*
* @example
* // How many days are in February 2000?
* const result = getDaysInMonth(new Date(2000, 1))
* //=> 29
*/
-
-function getDaysInMonth_getDaysInMonth(dirtyDate) {
- requiredArgs_requiredArgs(1, arguments);
- var date = toDate_toDate(dirtyDate);
- var year = date.getFullYear();
- var monthIndex = date.getMonth();
- var lastDayOfMonth = new Date(0);
+function getDaysInMonth_getDaysInMonth(date) {
+ const _date = toDate_toDate(date);
+ const year = _date.getFullYear();
+ const monthIndex = _date.getMonth();
+ const lastDayOfMonth = constructFrom_constructFrom(date, 0);
lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);
lastDayOfMonth.setHours(0, 0, 0, 0);
return lastDayOfMonth.getDate();
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/setMonth/index.js
+
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_getDaysInMonth = ((/* unused pure expression or super */ null && (getDaysInMonth_getDaysInMonth)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/setMonth.mjs
@@ -56891,36 +56774,37 @@ function getDaysInMonth_getDaysInMonth(dirtyDate) {
* @description
* Set the month to the given date.
*
- * @param {Date|Number} date - the date to be changed
- * @param {Number} month - the month of the new date
- * @returns {Date} the new date with the month set
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date to be changed
+ * @param month - The month index to set (0-11)
+ *
+ * @returns The new date with the month set
*
* @example
* // Set February to 1 September 2014:
* const result = setMonth(new Date(2014, 8, 1), 1)
* //=> Sat Feb 01 2014 00:00:00
*/
+function setMonth_setMonth(date, month) {
+ const _date = toDate_toDate(date);
+ const year = _date.getFullYear();
+ const day = _date.getDate();
-function setMonth_setMonth(dirtyDate, dirtyMonth) {
- requiredArgs_requiredArgs(2, arguments);
- var date = toDate_toDate(dirtyDate);
- var month = toInteger_toInteger(dirtyMonth);
- var year = date.getFullYear();
- var day = date.getDate();
- var dateWithDesiredMonth = new Date(0);
+ const dateWithDesiredMonth = constructFrom_constructFrom(date, 0);
dateWithDesiredMonth.setFullYear(year, month, 15);
dateWithDesiredMonth.setHours(0, 0, 0, 0);
- var daysInMonth = getDaysInMonth_getDaysInMonth(dateWithDesiredMonth); // Set the last day of the new month
+ const daysInMonth = getDaysInMonth_getDaysInMonth(dateWithDesiredMonth);
+ // Set the last day of the new month
// if the original date was the last day of the longer month
-
- date.setMonth(month, Math.min(day, daysInMonth));
- return date;
+ _date.setMonth(month, Math.min(day, daysInMonth));
+ return _date;
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/set/index.js
-function set_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { set_typeof = function _typeof(obj) { return typeof obj; }; } else { set_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return set_typeof(obj); }
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_setMonth = ((/* unused pure expression or super */ null && (setMonth_setMonth)));
+;// CONCATENATED MODULE: ./node_modules/date-fns/set.mjs
@@ -56940,18 +56824,12 @@ function set_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "fun
* to use native `Date#setX` methods. If you use this function, you may not want to include the
* other `setX` functions that date-fns provides if you are concerned about the bundle size.
*
- * @param {Date|Number} date - the date to be changed
- * @param {Object} values - an object with options
- * @param {Number} [values.year] - the number of years to be set
- * @param {Number} [values.month] - the number of months to be set
- * @param {Number} [values.date] - the number of days to be set
- * @param {Number} [values.hours] - the number of hours to be set
- * @param {Number} [values.minutes] - the number of minutes to be set
- * @param {Number} [values.seconds] - the number of seconds to be set
- * @param {Number} [values.milliseconds] - the number of milliseconds to be set
- * @returns {Date} the new date with options set
- * @throws {TypeError} 2 arguments required
- * @throws {RangeError} `values` must be an object
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date to be changed
+ * @param values - The date values to be set
+ *
+ * @returns The new date with options set
*
* @example
* // Transform 1 September 2014 into 20 October 2015 in a single line:
@@ -56963,51 +56841,50 @@ function set_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "fun
* const result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 })
* //=> Mon Sep 01 2014 12:23:45
*/
-function set_set(dirtyDate, values) {
- requiredArgs_requiredArgs(2, arguments);
-
- if (set_typeof(values) !== 'object' || values === null) {
- throw new RangeError('values parameter must be an object');
- }
- var date = toDate_toDate(dirtyDate); // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
+function set_set(date, values) {
+ let _date = toDate_toDate(date);
- if (isNaN(date.getTime())) {
- return new Date(NaN);
+ // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
+ if (isNaN(+_date)) {
+ return constructFrom_constructFrom(date, NaN);
}
if (values.year != null) {
- date.setFullYear(values.year);
+ _date.setFullYear(values.year);
}
if (values.month != null) {
- date = setMonth_setMonth(date, values.month);
+ _date = setMonth_setMonth(_date, values.month);
}
if (values.date != null) {
- date.setDate(toInteger_toInteger(values.date));
+ _date.setDate(values.date);
}
if (values.hours != null) {
- date.setHours(toInteger_toInteger(values.hours));
+ _date.setHours(values.hours);
}
if (values.minutes != null) {
- date.setMinutes(toInteger_toInteger(values.minutes));
+ _date.setMinutes(values.minutes);
}
if (values.seconds != null) {
- date.setSeconds(toInteger_toInteger(values.seconds));
+ _date.setSeconds(values.seconds);
}
if (values.milliseconds != null) {
- date.setMilliseconds(toInteger_toInteger(values.milliseconds));
+ _date.setMilliseconds(values.milliseconds);
}
- return date;
+ return _date;
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/setHours/index.js
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_set = ((/* unused pure expression or super */ null && (set_set)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/setHours.mjs
/**
@@ -57018,24 +56895,27 @@ function set_set(dirtyDate, values) {
* @description
* Set the hours to the given date.
*
- * @param {Date|Number} date - the date to be changed
- * @param {Number} hours - the hours of the new date
- * @returns {Date} the new date with the hours set
- * @throws {TypeError} 2 arguments required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The date to be changed
+ * @param hours - The hours of the new date
+ *
+ * @returns The new date with the hours set
*
* @example
* // Set 4 hours to 1 September 2014 11:30:00:
* const result = setHours(new Date(2014, 8, 1, 11, 30), 4)
* //=> Mon Sep 01 2014 04:30:00
*/
-
-function setHours(dirtyDate, dirtyHours) {
- requiredArgs_requiredArgs(2, arguments);
- var date = toDate_toDate(dirtyDate);
- var hours = toInteger_toInteger(dirtyHours);
- date.setHours(hours);
- return date;
+function setHours(date, hours) {
+ const _date = toDate_toDate(date);
+ _date.setHours(hours);
+ return _date;
}
+
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_setHours = ((/* unused pure expression or super */ null && (setHours)));
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/time/styles.js
function time_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)."; }
@@ -57052,13 +56932,13 @@ function time_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried t
-const time_styles_Wrapper = emotion_styled_base_browser_esm("div", true ? {
+const time_styles_Wrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "evcr2319"
} : 0)("box-sizing:border-box;font-size:", config_values.fontSize, ";" + ( true ? "" : 0));
-const Fieldset = emotion_styled_base_browser_esm("fieldset", true ? {
+const Fieldset = /*#__PURE__*/emotion_styled_base_browser_esm("fieldset", true ? {
target: "evcr2318"
} : 0)("border:0;margin:0 0 ", space(2 * 2), " 0;padding:0;&:last-child{margin-bottom:0;}" + ( true ? "" : 0));
-const TimeWrapper = emotion_styled_base_browser_esm("div", true ? {
+const TimeWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "evcr2317"
} : 0)( true ? {
name: "pd0mhc",
@@ -57068,7 +56948,7 @@ const baseInput = /*#__PURE__*/emotion_react_browser_esm_css("&&& ", Input, "{pa
const HoursInput = /*#__PURE__*/emotion_styled_base_browser_esm(number_control, true ? {
target: "evcr2316"
} : 0)(baseInput, " width:", space(9), ";&&& ", Input, "{padding-right:0;}&&& ", BackdropUI, "{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;}" + ( true ? "" : 0));
-const TimeSeparator = emotion_styled_base_browser_esm("span", true ? {
+const TimeSeparator = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "evcr2315"
} : 0)("border-top:", config_values.borderWidth, " solid ", COLORS.gray[700], ";border-bottom:", config_values.borderWidth, " solid ", COLORS.gray[700], ";line-height:calc(\n\t\t", config_values.controlHeight, " - ", config_values.borderWidth, " * 2\n\t);display:inline-block;" + ( true ? "" : 0));
const MinutesInput = /*#__PURE__*/emotion_styled_base_browser_esm(number_control, true ? {
@@ -57077,7 +56957,7 @@ const MinutesInput = /*#__PURE__*/emotion_styled_base_browser_esm(number_control
// Ideally we wouldn't need a wrapper, but can't otherwise target the
// <BaseControl> in <SelectControl>
-const MonthSelectWrapper = emotion_styled_base_browser_esm("div", true ? {
+const MonthSelectWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "evcr2313"
} : 0)( true ? {
name: "1ff36h2",
@@ -57089,7 +56969,7 @@ const DayInput = /*#__PURE__*/emotion_styled_base_browser_esm(number_control, t
const YearInput = /*#__PURE__*/emotion_styled_base_browser_esm(number_control, true ? {
target: "evcr2311"
} : 0)(baseInput, " width:", space(14), ";" + ( true ? "" : 0));
-const TimeZone = emotion_styled_base_browser_esm("div", true ? {
+const TimeZone = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "evcr2310"
} : 0)( true ? {
name: "ebu3jh",
@@ -57097,7 +56977,6 @@ const TimeZone = emotion_styled_base_browser_esm("div", true ? {
} : 0);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/time/timezone.js
-
/**
* WordPress dependencies
*/
@@ -57114,6 +56993,7 @@ const TimeZone = emotion_styled_base_browser_esm("div", true ? {
* Displays timezone information when user timezone is different from site
* timezone.
*/
+
const timezone_TimeZone = () => {
const {
timezone
@@ -57137,19 +57017,21 @@ const timezone_TimeZone = () => {
// When the prettyTimezoneString is empty, there is no additional timezone
// detail information to show in a Tooltip.
const hasNoAdditionalTimezoneDetail = prettyTimezoneString.trim().length === 0;
- return hasNoAdditionalTimezoneDetail ? (0,external_React_.createElement)(TimeZone, {
- className: "components-datetime__timezone"
- }, zoneAbbr) : (0,external_React_.createElement)(tooltip, {
+ return hasNoAdditionalTimezoneDetail ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TimeZone, {
+ className: "components-datetime__timezone",
+ children: zoneAbbr
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
placement: "top",
- text: timezoneDetail
- }, (0,external_React_.createElement)(TimeZone, {
- className: "components-datetime__timezone"
- }, zoneAbbr));
+ text: timezoneDetail,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TimeZone, {
+ className: "components-datetime__timezone",
+ children: zoneAbbr
+ })
+ });
};
/* harmony default export */ const timezone = (timezone_TimeZone);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/time/index.js
-
/**
* External dependencies
*/
@@ -57175,6 +57057,9 @@ const timezone_TimeZone = () => {
+
+
+
function from12hTo24h(hours, isPm) {
return isPm ? (hours % 12 + 12) % 24 : hours % 12;
}
@@ -57293,7 +57178,7 @@ function TimePicker({
onChange?.(format(newDate, TIMEZONELESS_FORMAT));
};
}
- const dayField = (0,external_React_.createElement)(DayInput, {
+ const dayField = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DayInput, {
className: "components-datetime__time-field components-datetime__time-field-day" // Unused, for backwards compatibility.
,
label: (0,external_wp_i18n_namespaceObject.__)('Day'),
@@ -57310,143 +57195,170 @@ function TimePicker({
isShiftStepEnabled: false,
onChange: buildNumberControlChangeCallback('date')
});
- const monthField = (0,external_React_.createElement)(MonthSelectWrapper, null, (0,external_React_.createElement)(select_control, {
- className: "components-datetime__time-field components-datetime__time-field-month" // Unused, for backwards compatibility.
- ,
- label: (0,external_wp_i18n_namespaceObject.__)('Month'),
- hideLabelFromVision: true,
- __next40pxDefaultSize: true,
- __nextHasNoMarginBottom: true,
- value: month,
- options: [{
- value: '01',
- label: (0,external_wp_i18n_namespaceObject.__)('January')
- }, {
- value: '02',
- label: (0,external_wp_i18n_namespaceObject.__)('February')
- }, {
- value: '03',
- label: (0,external_wp_i18n_namespaceObject.__)('March')
- }, {
- value: '04',
- label: (0,external_wp_i18n_namespaceObject.__)('April')
- }, {
- value: '05',
- label: (0,external_wp_i18n_namespaceObject.__)('May')
- }, {
- value: '06',
- label: (0,external_wp_i18n_namespaceObject.__)('June')
- }, {
- value: '07',
- label: (0,external_wp_i18n_namespaceObject.__)('July')
- }, {
- value: '08',
- label: (0,external_wp_i18n_namespaceObject.__)('August')
- }, {
- value: '09',
- label: (0,external_wp_i18n_namespaceObject.__)('September')
- }, {
- value: '10',
- label: (0,external_wp_i18n_namespaceObject.__)('October')
- }, {
- value: '11',
- label: (0,external_wp_i18n_namespaceObject.__)('November')
- }, {
- value: '12',
- label: (0,external_wp_i18n_namespaceObject.__)('December')
- }],
- onChange: value => {
- const newDate = setMonth_setMonth(date, Number(value) - 1);
- setDate(newDate);
- onChange?.(format(newDate, TIMEZONELESS_FORMAT));
- }
- }));
- return (0,external_React_.createElement)(time_styles_Wrapper, {
+ const monthField = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MonthSelectWrapper, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(select_control, {
+ className: "components-datetime__time-field components-datetime__time-field-month" // Unused, for backwards compatibility.
+ ,
+ label: (0,external_wp_i18n_namespaceObject.__)('Month'),
+ hideLabelFromVision: true,
+ __next40pxDefaultSize: true,
+ __nextHasNoMarginBottom: true,
+ value: month,
+ options: [{
+ value: '01',
+ label: (0,external_wp_i18n_namespaceObject.__)('January')
+ }, {
+ value: '02',
+ label: (0,external_wp_i18n_namespaceObject.__)('February')
+ }, {
+ value: '03',
+ label: (0,external_wp_i18n_namespaceObject.__)('March')
+ }, {
+ value: '04',
+ label: (0,external_wp_i18n_namespaceObject.__)('April')
+ }, {
+ value: '05',
+ label: (0,external_wp_i18n_namespaceObject.__)('May')
+ }, {
+ value: '06',
+ label: (0,external_wp_i18n_namespaceObject.__)('June')
+ }, {
+ value: '07',
+ label: (0,external_wp_i18n_namespaceObject.__)('July')
+ }, {
+ value: '08',
+ label: (0,external_wp_i18n_namespaceObject.__)('August')
+ }, {
+ value: '09',
+ label: (0,external_wp_i18n_namespaceObject.__)('September')
+ }, {
+ value: '10',
+ label: (0,external_wp_i18n_namespaceObject.__)('October')
+ }, {
+ value: '11',
+ label: (0,external_wp_i18n_namespaceObject.__)('November')
+ }, {
+ value: '12',
+ label: (0,external_wp_i18n_namespaceObject.__)('December')
+ }],
+ onChange: value => {
+ const newDate = setMonth_setMonth(date, Number(value) - 1);
+ setDate(newDate);
+ onChange?.(format(newDate, TIMEZONELESS_FORMAT));
+ }
+ })
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(time_styles_Wrapper, {
className: "components-datetime__time" // Unused, for backwards compatibility.
- }, (0,external_React_.createElement)(Fieldset, null, (0,external_React_.createElement)(base_control.VisualLabel, {
- as: "legend",
- className: "components-datetime__time-legend" // Unused, for backwards compatibility.
- }, (0,external_wp_i18n_namespaceObject.__)('Time')), (0,external_React_.createElement)(h_stack_component, {
- className: "components-datetime__time-wrapper" // Unused, for backwards compatibility.
- }, (0,external_React_.createElement)(TimeWrapper, {
- className: "components-datetime__time-field components-datetime__time-field-time" // Unused, for backwards compatibility.
- }, (0,external_React_.createElement)(HoursInput, {
- className: "components-datetime__time-field-hours-input" // Unused, for backwards compatibility.
- ,
- label: (0,external_wp_i18n_namespaceObject.__)('Hours'),
- hideLabelFromVision: true,
- __next40pxDefaultSize: true,
- value: hours,
- step: 1,
- min: is12Hour ? 1 : 0,
- max: is12Hour ? 12 : 23,
- required: true,
- spinControls: "none",
- isPressEnterToChange: true,
- isDragEnabled: false,
- isShiftStepEnabled: false,
- onChange: buildNumberControlChangeCallback('hours'),
- __unstableStateReducer: buildPadInputStateReducer(2)
- }), (0,external_React_.createElement)(TimeSeparator, {
- className: "components-datetime__time-separator" // Unused, for backwards compatibility.
- ,
- "aria-hidden": "true"
- }, ":"), (0,external_React_.createElement)(MinutesInput, {
- className: "components-datetime__time-field-minutes-input" // Unused, for backwards compatibility.
- ,
- label: (0,external_wp_i18n_namespaceObject.__)('Minutes'),
- hideLabelFromVision: true,
- __next40pxDefaultSize: true,
- value: minutes,
- step: 1,
- min: 0,
- max: 59,
- required: true,
- spinControls: "none",
- isPressEnterToChange: true,
- isDragEnabled: false,
- isShiftStepEnabled: false,
- onChange: buildNumberControlChangeCallback('minutes'),
- __unstableStateReducer: buildPadInputStateReducer(2)
- })), is12Hour && (0,external_React_.createElement)(button_group, {
- className: "components-datetime__time-field components-datetime__time-field-am-pm" // Unused, for backwards compatibility.
- }, (0,external_React_.createElement)(build_module_button, {
- className: "components-datetime__time-am-button" // Unused, for backwards compatibility.
- ,
- variant: am === 'AM' ? 'primary' : 'secondary',
- __next40pxDefaultSize: true,
- onClick: buildAmPmChangeCallback('AM')
- }, (0,external_wp_i18n_namespaceObject.__)('AM')), (0,external_React_.createElement)(build_module_button, {
- className: "components-datetime__time-pm-button" // Unused, for backwards compatibility.
- ,
- variant: am === 'PM' ? 'primary' : 'secondary',
- __next40pxDefaultSize: true,
- onClick: buildAmPmChangeCallback('PM')
- }, (0,external_wp_i18n_namespaceObject.__)('PM'))), (0,external_React_.createElement)(spacer_component, null), (0,external_React_.createElement)(timezone, null))), (0,external_React_.createElement)(Fieldset, null, (0,external_React_.createElement)(base_control.VisualLabel, {
- as: "legend",
- className: "components-datetime__time-legend" // Unused, for backwards compatibility.
- }, (0,external_wp_i18n_namespaceObject.__)('Date')), (0,external_React_.createElement)(h_stack_component, {
- className: "components-datetime__time-wrapper" // Unused, for backwards compatibility.
- }, is12Hour ? (0,external_React_.createElement)(external_React_.Fragment, null, monthField, dayField) : (0,external_React_.createElement)(external_React_.Fragment, null, dayField, monthField), (0,external_React_.createElement)(YearInput, {
- className: "components-datetime__time-field components-datetime__time-field-year" // Unused, for backwards compatibility.
,
- label: (0,external_wp_i18n_namespaceObject.__)('Year'),
- hideLabelFromVision: true,
- __next40pxDefaultSize: true,
- value: year,
- step: 1,
- min: 1,
- max: 9999,
- required: true,
- spinControls: "none",
- isPressEnterToChange: true,
- isDragEnabled: false,
- isShiftStepEnabled: false,
- onChange: buildNumberControlChangeCallback('year'),
- __unstableStateReducer: buildPadInputStateReducer(4)
- }))));
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Fieldset, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control.VisualLabel, {
+ as: "legend",
+ className: "components-datetime__time-legend" // Unused, for backwards compatibility.
+ ,
+ children: (0,external_wp_i18n_namespaceObject.__)('Time')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
+ className: "components-datetime__time-wrapper" // Unused, for backwards compatibility.
+ ,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(TimeWrapper, {
+ className: "components-datetime__time-field components-datetime__time-field-time" // Unused, for backwards compatibility.
+ ,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HoursInput, {
+ className: "components-datetime__time-field-hours-input" // Unused, for backwards compatibility.
+ ,
+ label: (0,external_wp_i18n_namespaceObject.__)('Hours'),
+ hideLabelFromVision: true,
+ __next40pxDefaultSize: true,
+ value: hours,
+ step: 1,
+ min: is12Hour ? 1 : 0,
+ max: is12Hour ? 12 : 23,
+ required: true,
+ spinControls: "none",
+ isPressEnterToChange: true,
+ isDragEnabled: false,
+ isShiftStepEnabled: false,
+ onChange: buildNumberControlChangeCallback('hours'),
+ __unstableStateReducer: buildPadInputStateReducer(2)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TimeSeparator, {
+ className: "components-datetime__time-separator" // Unused, for backwards compatibility.
+ ,
+ "aria-hidden": "true",
+ children: ":"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MinutesInput, {
+ className: "components-datetime__time-field-minutes-input" // Unused, for backwards compatibility.
+ ,
+ label: (0,external_wp_i18n_namespaceObject.__)('Minutes'),
+ hideLabelFromVision: true,
+ __next40pxDefaultSize: true,
+ value: minutes,
+ step: 1,
+ min: 0,
+ max: 59,
+ required: true,
+ spinControls: "none",
+ isPressEnterToChange: true,
+ isDragEnabled: false,
+ isShiftStepEnabled: false,
+ onChange: buildNumberControlChangeCallback('minutes'),
+ __unstableStateReducer: buildPadInputStateReducer(2)
+ })]
+ }), is12Hour && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(button_group, {
+ className: "components-datetime__time-field components-datetime__time-field-am-pm" // Unused, for backwards compatibility.
+ ,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ className: "components-datetime__time-am-button" // Unused, for backwards compatibility.
+ ,
+ variant: am === 'AM' ? 'primary' : 'secondary',
+ __next40pxDefaultSize: true,
+ onClick: buildAmPmChangeCallback('AM'),
+ children: (0,external_wp_i18n_namespaceObject.__)('AM')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ className: "components-datetime__time-pm-button" // Unused, for backwards compatibility.
+ ,
+ variant: am === 'PM' ? 'primary' : 'secondary',
+ __next40pxDefaultSize: true,
+ onClick: buildAmPmChangeCallback('PM'),
+ children: (0,external_wp_i18n_namespaceObject.__)('PM')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(timezone, {})]
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Fieldset, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control.VisualLabel, {
+ as: "legend",
+ className: "components-datetime__time-legend" // Unused, for backwards compatibility.
+ ,
+ children: (0,external_wp_i18n_namespaceObject.__)('Date')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
+ className: "components-datetime__time-wrapper" // Unused, for backwards compatibility.
+ ,
+ children: [is12Hour ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [monthField, dayField]
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [dayField, monthField]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(YearInput, {
+ className: "components-datetime__time-field components-datetime__time-field-year" // Unused, for backwards compatibility.
+ ,
+ label: (0,external_wp_i18n_namespaceObject.__)('Year'),
+ hideLabelFromVision: true,
+ __next40pxDefaultSize: true,
+ value: year,
+ step: 1,
+ min: 1,
+ max: 9999,
+ required: true,
+ spinControls: "none",
+ isPressEnterToChange: true,
+ isDragEnabled: false,
+ isShiftStepEnabled: false,
+ onChange: buildNumberControlChangeCallback('year'),
+ __unstableStateReducer: buildPadInputStateReducer(4)
+ })]
+ })]
+ })]
+ });
}
-/* harmony default export */ const time = (TimePicker);
+/* harmony default export */ const date_time_time = (TimePicker);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/date-time/styles.js
@@ -57467,7 +57379,6 @@ const date_time_styles_Wrapper = /*#__PURE__*/emotion_styled_base_browser_esm(v_
} : 0);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/date-time/index.js
-
/**
* External dependencies
*/
@@ -57483,6 +57394,9 @@ const date_time_styles_Wrapper = /*#__PURE__*/emotion_styled_base_browser_esm(v_
+
+
+
const date_time_noop = () => {};
function UnforwardedDateTimePicker({
currentDate,
@@ -57493,22 +57407,25 @@ function UnforwardedDateTimePicker({
events,
startOfWeek
}, ref) {
- return (0,external_React_.createElement)(date_time_styles_Wrapper, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(date_time_styles_Wrapper, {
ref: ref,
className: "components-datetime",
- spacing: 4
- }, (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(time, {
- currentTime: currentDate,
- onChange: onChange,
- is12Hour: is12Hour
- }), (0,external_React_.createElement)(date, {
- currentDate: currentDate,
- onChange: onChange,
- isInvalidDate: isInvalidDate,
- events: events,
- onMonthPreviewed: onMonthPreviewed,
- startOfWeek: startOfWeek
- })));
+ spacing: 4,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(date_time_time, {
+ currentTime: currentDate,
+ onChange: onChange,
+ is12Hour: is12Hour
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(date, {
+ currentDate: currentDate,
+ onChange: onChange,
+ isInvalidDate: isInvalidDate,
+ events: events,
+ onMonthPreviewed: onMonthPreviewed,
+ startOfWeek: startOfWeek
+ })]
+ })
+ });
}
/**
@@ -57591,7 +57508,6 @@ const findSizeBySlug = (sizes, slug) => sizes.find(size => slug === size.slug);
}]);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dimension-control/index.js
-
/**
* External dependencies
*/
@@ -57608,6 +57524,9 @@ const findSizeBySlug = (sizes, slug) => sizes.find(size => slug === size.slug);
+
+
+
/**
* `DimensionControl` is a component designed to provide a UI to control spacing and/or dimensions.
*
@@ -57662,12 +57581,14 @@ function DimensionControl(props) {
value: ''
}, ...options];
};
- const selectLabel = (0,external_React_.createElement)(external_React_.Fragment, null, icon && (0,external_React_.createElement)(build_module_icon, {
- icon: icon
- }), label);
- return (0,external_React_.createElement)(select_control, {
+ const selectLabel = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [icon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: icon
+ }), label]
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(select_control, {
__next40pxDefaultSize: __next40pxDefaultSize,
- className: classnames_default()(className, 'block-editor-dimension-control'),
+ className: dist_clsx(className, 'block-editor-dimension-control'),
label: selectLabel,
hideLabelFromVision: false,
value: value,
@@ -57689,7 +57610,6 @@ const disabled_styles_disabledStyles = true ? {
} : 0;
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/disabled/index.js
-
/**
* WordPress dependencies
*/
@@ -57700,6 +57620,7 @@ const disabled_styles_disabledStyles = true ? {
*/
+
const Context = (0,external_wp_element_namespaceObject.createContext)(false);
const {
Consumer,
@@ -57750,21 +57671,22 @@ function Disabled({
...props
}) {
const cx = useCx();
- return (0,external_React_.createElement)(disabled_Provider, {
- value: isDisabled
- }, (0,external_React_.createElement)("div", {
- // @ts-ignore Reason: inert is a recent HTML attribute
- inert: isDisabled ? 'true' : undefined,
- className: isDisabled ? cx(disabled_styles_disabledStyles, className, 'components-disabled') : undefined,
- ...props
- }, children));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(disabled_Provider, {
+ value: isDisabled,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ // @ts-ignore Reason: inert is a recent HTML attribute
+ inert: isDisabled ? 'true' : undefined,
+ className: isDisabled ? cx(disabled_styles_disabledStyles, className, 'components-disabled') : undefined,
+ ...props,
+ children: children
+ })
+ });
}
Disabled.Context = Context;
Disabled.Consumer = Consumer;
/* harmony default export */ const disabled = (Disabled);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/disclosure/index.js
-
/**
* External dependencies
*/
@@ -57792,17 +57714,17 @@ const UnforwardedDisclosureContent = ({
const disclosure = useDisclosureStore({
open: visible
});
- return (0,external_React_.createElement)(DisclosureContent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DisclosureContent, {
store: disclosure,
ref: ref,
- ...props
- }, children);
+ ...props,
+ children: children
+ });
};
const disclosure_DisclosureContent = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedDisclosureContent);
/* harmony default export */ const disclosure = ((/* unused pure expression or super */ null && (disclosure_DisclosureContent)));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/draggable/index.js
-
/**
* External dependencies
*/
@@ -57817,6 +57739,8 @@ const disclosure_DisclosureContent = (0,external_wp_element_namespaceObject.forw
* Internal dependencies
*/
+
+
const dragImageClass = 'components-draggable__invisible-drag-image';
const cloneWrapperClass = 'components-draggable__clone';
const clonePadding = 0;
@@ -58014,35 +57938,38 @@ function Draggable({
(0,external_wp_element_namespaceObject.useEffect)(() => () => {
cleanup.current();
}, []);
- return (0,external_React_.createElement)(external_React_.Fragment, null, children({
- onDraggableStart: start,
- onDraggableEnd: end
- }), dragComponent && (0,external_React_.createElement)("div", {
- className: "components-draggable-drag-component-root",
- style: {
- display: 'none'
- },
- ref: dragComponentRef
- }, dragComponent));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [children({
+ onDraggableStart: start,
+ onDraggableEnd: end
+ }), dragComponent && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "components-draggable-drag-component-root",
+ style: {
+ display: 'none'
+ },
+ ref: dragComponentRef,
+ children: dragComponent
+ })]
+ });
}
/* harmony default export */ const draggable = (Draggable);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/upload.js
-
/**
* WordPress dependencies
*/
-const upload = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const upload = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"
+ })
+});
/* harmony default export */ const library_upload = (upload);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/drop-zone/index.js
-
/**
* External dependencies
*/
@@ -58061,6 +57988,82 @@ const upload = (0,external_React_.createElement)(external_wp_primitives_namespac
* Internal dependencies
*/
+
+
+const drop_zone_backdrop = {
+ hidden: {
+ opacity: 0
+ },
+ show: {
+ opacity: 1,
+ transition: {
+ type: 'tween',
+ duration: 0.2,
+ delay: 0,
+ delayChildren: 0.1
+ }
+ },
+ exit: {
+ opacity: 0,
+ transition: {
+ duration: 0.2,
+ delayChildren: 0
+ }
+ }
+};
+const foreground = {
+ hidden: {
+ opacity: 0,
+ scale: 0.9
+ },
+ show: {
+ opacity: 1,
+ scale: 1,
+ transition: {
+ duration: 0.1
+ }
+ },
+ exit: {
+ opacity: 0,
+ scale: 0.9
+ }
+};
+function DropIndicator({
+ label
+}) {
+ const disableMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
+ const children = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(motion.div, {
+ variants: drop_zone_backdrop,
+ initial: disableMotion ? 'show' : 'hidden',
+ animate: "show",
+ exit: disableMotion ? 'show' : 'exit',
+ className: "components-drop-zone__content"
+ // Without this, when this div is shown,
+ // Safari calls a onDropZoneLeave causing a loop because of this bug
+ // https://bugs.webkit.org/show_bug.cgi?id=66547
+ ,
+ style: {
+ pointerEvents: 'none'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(motion.div, {
+ variants: foreground,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
+ icon: library_upload,
+ className: "components-drop-zone__content-icon"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "components-drop-zone__content-text",
+ children: label ? label : (0,external_wp_i18n_namespaceObject.__)('Drop files to upload')
+ })]
+ })
+ });
+ if (disableMotion) {
+ return children;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AnimatePresence, {
+ children: children
+ });
+}
+
/**
* `DropZone` is a component creating a drop zone area taking the full size of its parent element. It supports dropping files, HTML content or any other HTML drop event.
*
@@ -58141,80 +58144,20 @@ function DropZoneComponent({
setIsDraggingOverElement(false);
}
});
- const disableMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
- let children;
- const backdrop = {
- hidden: {
- opacity: 0
- },
- show: {
- opacity: 1,
- transition: {
- type: 'tween',
- duration: 0.2,
- delay: 0,
- delayChildren: 0.1
- }
- },
- exit: {
- opacity: 0,
- transition: {
- duration: 0.2,
- delayChildren: 0
- }
- }
- };
- const foreground = {
- hidden: {
- opacity: 0,
- scale: 0.9
- },
- show: {
- opacity: 1,
- scale: 1,
- transition: {
- duration: 0.1
- }
- },
- exit: {
- opacity: 0,
- scale: 0.9
- }
- };
- if (isDraggingOverElement) {
- children = (0,external_React_.createElement)(motion.div, {
- variants: backdrop,
- initial: disableMotion ? 'show' : 'hidden',
- animate: "show",
- exit: disableMotion ? 'show' : 'exit',
- className: "components-drop-zone__content"
- // Without this, when this div is shown,
- // Safari calls a onDropZoneLeave causing a loop because of this bug
- // https://bugs.webkit.org/show_bug.cgi?id=66547
- ,
- style: {
- pointerEvents: 'none'
- }
- }, (0,external_React_.createElement)(motion.div, {
- variants: foreground
- }, (0,external_React_.createElement)(icons_build_module_icon, {
- icon: library_upload,
- className: "components-drop-zone__content-icon"
- }), (0,external_React_.createElement)("span", {
- className: "components-drop-zone__content-text"
- }, label ? label : (0,external_wp_i18n_namespaceObject.__)('Drop files to upload'))));
- }
- const classes = classnames_default()('components-drop-zone', className, {
+ const classes = dist_clsx('components-drop-zone', className, {
'is-active': (isDraggingOverDocument || isDraggingOverElement) && (type === 'file' && onFilesDrop || type === 'html' && onHTMLDrop || type === 'default' && onDrop),
'is-dragging-over-document': isDraggingOverDocument,
'is-dragging-over-element': isDraggingOverElement,
[`is-dragging-${type}`]: !!type
});
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...restProps,
ref: ref,
- className: classes
- }, disableMotion ? children : (0,external_React_.createElement)(AnimatePresence, null, children));
+ className: classes,
+ children: isDraggingOverElement && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropIndicator, {
+ label: label
+ })
+ });
}
/* harmony default export */ const drop_zone = (DropZoneComponent);
@@ -58234,17 +58177,18 @@ function DropZoneProvider({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/swatch.js
-
/**
* WordPress dependencies
*/
-const swatch = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const swatch = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"
+ })
+});
/* harmony default export */ const library_swatch = (swatch);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/duotone-picker/utils.js
@@ -58278,7 +58222,9 @@ k([names]);
*/
function getDefaultColors(palette) {
// A default dark and light color are required.
- if (!palette || palette.length < 2) return ['#000', '#fff'];
+ if (!palette || palette.length < 2) {
+ return ['#000', '#fff'];
+ }
return palette.map(({
color
}) => ({
@@ -58339,7 +58285,6 @@ function getColorsFromColorStops(colorStops = []) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/duotone-picker/duotone-swatch.js
-
/**
* WordPress dependencies
*/
@@ -58351,19 +58296,19 @@ function getColorsFromColorStops(colorStops = []) {
+
function DuotoneSwatch({
values
}) {
- return values ? (0,external_React_.createElement)(color_indicator, {
+ return values ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_indicator, {
colorValue: getGradientFromCSSColors(values, '135deg')
- }) : (0,external_React_.createElement)(build_module_icon, {
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
icon: library_swatch
});
}
/* harmony default export */ const duotone_swatch = (DuotoneSwatch);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/duotone-picker/color-list-picker/index.js
-
/**
* WordPress dependencies
*/
@@ -58380,6 +58325,9 @@ function DuotoneSwatch({
+
+
+
function ColorOption({
label,
value,
@@ -58392,36 +58340,42 @@ function ColorOption({
const idRoot = (0,external_wp_compose_namespaceObject.useInstanceId)(ColorOption, 'color-list-picker-option');
const labelId = `${idRoot}__label`;
const contentId = `${idRoot}__content`;
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(build_module_button, {
- className: "components-color-list-picker__swatch-button",
- onClick: () => setIsOpen(prev => !prev),
- "aria-expanded": isOpen,
- "aria-controls": contentId
- }, (0,external_React_.createElement)(h_stack_component, {
- justify: "flex-start",
- spacing: 2
- }, value ? (0,external_React_.createElement)(color_indicator, {
- colorValue: value,
- className: "components-color-list-picker__swatch-color"
- }) : (0,external_React_.createElement)(build_module_icon, {
- icon: library_swatch
- }), (0,external_React_.createElement)("span", {
- id: labelId
- }, label))), (0,external_React_.createElement)("div", {
- role: "group",
- id: contentId,
- "aria-labelledby": labelId,
- "aria-hidden": !isOpen
- }, isOpen && (0,external_React_.createElement)(color_palette, {
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Color options'),
- className: "components-color-list-picker__color-picker",
- colors: colors,
- value: value,
- clearable: false,
- onChange: onChange,
- disableCustomColors: disableCustomColors,
- enableAlpha: enableAlpha
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ className: "components-color-list-picker__swatch-button",
+ onClick: () => setIsOpen(prev => !prev),
+ "aria-expanded": isOpen,
+ "aria-controls": contentId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
+ justify: "flex-start",
+ spacing: 2,
+ children: [value ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_indicator, {
+ colorValue: value,
+ className: "components-color-list-picker__swatch-color"
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: library_swatch
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ id: labelId,
+ children: label
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ role: "group",
+ id: contentId,
+ "aria-labelledby": labelId,
+ "aria-hidden": !isOpen,
+ children: isOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_palette, {
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Color options'),
+ className: "components-color-list-picker__color-picker",
+ colors: colors,
+ value: value,
+ clearable: false,
+ onChange: onChange,
+ disableCustomColors: disableCustomColors,
+ enableAlpha: enableAlpha
+ })
+ })]
+ });
}
function ColorListPicker({
colors,
@@ -58431,31 +58385,31 @@ function ColorListPicker({
enableAlpha,
onChange
}) {
- return (0,external_React_.createElement)("div", {
- className: "components-color-list-picker"
- }, labels.map((label, index) => (0,external_React_.createElement)(ColorOption, {
- key: index,
- label: label,
- value: value[index],
- colors: colors,
- disableCustomColors: disableCustomColors,
- enableAlpha: enableAlpha,
- onChange: newColor => {
- const newColors = value.slice();
- newColors[index] = newColor;
- onChange(newColors);
- }
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "components-color-list-picker",
+ children: labels.map((label, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorOption, {
+ label: label,
+ value: value[index],
+ colors: colors,
+ disableCustomColors: disableCustomColors,
+ enableAlpha: enableAlpha,
+ onChange: newColor => {
+ const newColors = value.slice();
+ newColors[index] = newColor;
+ onChange(newColors);
+ }
+ }, index))
+ });
}
/* harmony default export */ const color_list_picker = (ColorListPicker);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/duotone-picker/custom-duotone-bar.js
-
/**
* Internal dependencies
*/
+
const PLACEHOLDER_VALUES = ['#333', '#CCC'];
function CustomDuotoneBar({
value,
@@ -58465,7 +58419,7 @@ function CustomDuotoneBar({
const values = hasGradient ? value : PLACEHOLDER_VALUES;
const background = getGradientFromCSSColors(values);
const controlPoints = getColorStopsFromColors(values);
- return (0,external_React_.createElement)(CustomGradientBar, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomGradientBar, {
disableInserter: true,
background: background,
hasGradient: hasGradient,
@@ -58478,7 +58432,6 @@ function CustomDuotoneBar({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/duotone-picker/duotone-picker.js
-
/**
* External dependencies
*/
@@ -58499,6 +58452,8 @@ function CustomDuotoneBar({
+
+
/**
* ```jsx
* import { DuotonePicker, DuotoneSwatch } from '@wordpress/components';
@@ -58550,8 +58505,7 @@ function DuotonePicker({
const [defaultDark, defaultLight] = (0,external_wp_element_namespaceObject.useMemo)(() => getDefaultColors(colorPalette), [colorPalette]);
const isUnset = value === 'unset';
const unsetOptionLabel = (0,external_wp_i18n_namespaceObject.__)('Unset');
- const unsetOption = (0,external_React_.createElement)(build_module_circular_option_picker.Option, {
- key: "unset",
+ const unsetOption = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker.Option, {
value: "unset",
isSelected: isUnset,
tooltipText: unsetOptionLabel,
@@ -58560,7 +58514,7 @@ function DuotonePicker({
onClick: () => {
onChange(isUnset ? undefined : 'unset');
}
- });
+ }, "unset");
const duotoneOptions = duotonePalette.map(({
colors,
slug,
@@ -58577,8 +58531,7 @@ function DuotonePicker({
// translators: %s: The name of the option e.g: "Dark grayscale".
(0,external_wp_i18n_namespaceObject.__)('Duotone: %s'), name) : tooltipText;
const isSelected = es6_default()(colors, value);
- return (0,external_React_.createElement)(build_module_circular_option_picker.Option, {
- key: slug,
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker.Option, {
value: colors,
isSelected: isSelected,
"aria-label": label,
@@ -58587,7 +58540,7 @@ function DuotonePicker({
onClick: () => {
onChange(isSelected ? undefined : colors);
}
- });
+ }, slug);
});
let metaProps;
if (asButtons) {
@@ -58617,77 +58570,48 @@ function DuotonePicker({
}
}
const options = unsetable ? [unsetOption, ...duotoneOptions] : duotoneOptions;
- return (0,external_React_.createElement)(build_module_circular_option_picker, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker, {
...otherProps,
...metaProps,
options: options,
- actions: !!clearable && (0,external_React_.createElement)(build_module_circular_option_picker.ButtonAction, {
- onClick: () => onChange(undefined)
- }, (0,external_wp_i18n_namespaceObject.__)('Clear'))
- }, (0,external_React_.createElement)(spacer_component, {
- paddingTop: options.length === 0 ? 0 : 4
- }, (0,external_React_.createElement)(v_stack_component, {
- spacing: 3
- }, !disableCustomColors && !disableCustomDuotone && (0,external_React_.createElement)(CustomDuotoneBar, {
- value: isUnset ? undefined : value,
- onChange: onChange
- }), !disableCustomDuotone && (0,external_React_.createElement)(color_list_picker, {
- labels: [(0,external_wp_i18n_namespaceObject.__)('Shadows'), (0,external_wp_i18n_namespaceObject.__)('Highlights')],
- colors: colorPalette,
- value: isUnset ? undefined : value,
- disableCustomColors: disableCustomColors,
- enableAlpha: true,
- onChange: newColors => {
- if (!newColors[0]) {
- newColors[0] = defaultDark;
- }
- if (!newColors[1]) {
- newColors[1] = defaultLight;
- }
- const newValue = newColors.length >= 2 ? newColors : undefined;
- // @ts-expect-error TODO: The color arrays for a DuotonePicker should be a tuple of two colors,
- // but it's currently typed as a string[].
- // See also https://github.com/WordPress/gutenberg/pull/49060#discussion_r1136951035
- onChange(newValue);
- }
- }))));
+ actions: !!clearable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker.ButtonAction, {
+ onClick: () => onChange(undefined),
+ children: (0,external_wp_i18n_namespaceObject.__)('Clear')
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
+ paddingTop: options.length === 0 ? 0 : 4,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
+ spacing: 3,
+ children: [!disableCustomColors && !disableCustomDuotone && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomDuotoneBar, {
+ value: isUnset ? undefined : value,
+ onChange: onChange
+ }), !disableCustomDuotone && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_list_picker, {
+ labels: [(0,external_wp_i18n_namespaceObject.__)('Shadows'), (0,external_wp_i18n_namespaceObject.__)('Highlights')],
+ colors: colorPalette,
+ value: isUnset ? undefined : value,
+ disableCustomColors: disableCustomColors,
+ enableAlpha: true,
+ onChange: newColors => {
+ if (!newColors[0]) {
+ newColors[0] = defaultDark;
+ }
+ if (!newColors[1]) {
+ newColors[1] = defaultLight;
+ }
+ const newValue = newColors.length >= 2 ? newColors : undefined;
+ // @ts-expect-error TODO: The color arrays for a DuotonePicker should be a tuple of two colors,
+ // but it's currently typed as a string[].
+ // See also https://github.com/WordPress/gutenberg/pull/49060#discussion_r1136951035
+ onChange(newValue);
+ }
+ })]
+ })
+ })
+ });
}
/* harmony default export */ const duotone_picker = (DuotonePicker);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
-
-/**
- * WordPress dependencies
- */
-
-const external = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"
-}));
-/* harmony default export */ const library_external = (external);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/external-link/styles/external-link-styles.js
-
-function external_link_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
- */
-
-/**
- * WordPress dependencies
- */
-
-const StyledIcon = /*#__PURE__*/emotion_styled_base_browser_esm(icons_build_module_icon, true ? {
- target: "esh4a730"
-} : 0)( true ? {
- name: "rvs7bx",
- styles: "width:1em;height:1em;margin:0;vertical-align:middle;fill:currentColor"
-} : 0);
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/external-link/index.js
-
/**
* External dependencies
*/
@@ -58698,7 +58622,6 @@ const StyledIcon = /*#__PURE__*/emotion_styled_base_browser_esm(icons_build_modu
-
/**
* Internal dependencies
*/
@@ -58713,7 +58636,7 @@ function UnforwardedExternalLink(props, ref) {
...additionalProps
} = props;
const optimizedRel = [...new Set([...rel.split(' '), 'external', 'noreferrer', 'noopener'].filter(Boolean))].join(' ');
- const classes = classnames_default()('components-external-link', className);
+ const classes = dist_clsx('components-external-link', className);
/* Anchor links are perceived as external links.
This constant helps check for on page anchor links,
to prevent them from being opened in the editor. */
@@ -58726,22 +58649,27 @@ function UnforwardedExternalLink(props, ref) {
props.onClick(event);
}
};
- return /* eslint-disable react/jsx-no-target-blank */(
- (0,external_React_.createElement)("a", {
+ return (
+ /*#__PURE__*/
+ /* eslint-disable react/jsx-no-target-blank */
+ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("a", {
...additionalProps,
className: classes,
href: href,
onClick: onClickHandler,
target: "_blank",
rel: optimizedRel,
- ref: ref
- }, children, (0,external_React_.createElement)(visually_hidden_component, {
- as: "span"
- }, /* translators: accessibility text */
- (0,external_wp_i18n_namespaceObject.__)('(opens in a new tab)')), (0,external_React_.createElement)(StyledIcon, {
- icon: library_external,
- className: "components-external-link__icon"
- }))
+ ref: ref,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "components-external-link__contents",
+ children: children
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "components-external-link__icon",
+ "aria-label": /* translators: accessibility text */
+ (0,external_wp_i18n_namespaceObject.__)('(opens in a new tab)'),
+ children: "\u2197"
+ })]
+ })
/* eslint-enable react/jsx-no-target-blank */
);
}
@@ -58785,7 +58713,9 @@ function getExtension(filename = '') {
* @return Whether the file is a video.
*/
function isVideoType(filename = '') {
- if (!filename) return false;
+ if (!filename) {
+ return false;
+ }
return filename.startsWith('data:video/') || VIDEO_EXTENSIONS.includes(getExtension(filename));
}
@@ -58813,16 +58743,16 @@ function focal_point_picker_style_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You
-const MediaWrapper = emotion_styled_base_browser_esm("div", true ? {
+const MediaWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "eeew7dm8"
} : 0)( true ? {
name: "jqnsxy",
styles: "background-color:transparent;display:flex;text-align:center;width:100%"
} : 0);
-const MediaContainer = emotion_styled_base_browser_esm("div", true ? {
+const MediaContainer = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "eeew7dm7"
} : 0)("align-items:center;border-radius:", config_values.radiusBlockUi, ";cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;&:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 1px rgba( 0, 0, 0, 0.1 );content:'';left:0;pointer-events:none;position:absolute;right:0;top:0;}img,video{border-radius:inherit;box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}" + ( true ? "" : 0));
-const MediaPlaceholder = emotion_styled_base_browser_esm("div", true ? {
+const MediaPlaceholder = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "eeew7dm6"
} : 0)("background:", COLORS.gray[100], ";border-radius:inherit;box-sizing:border-box;height:", INITIAL_BOUNDS.height, "px;max-width:280px;min-width:", INITIAL_BOUNDS.width, "px;width:100%;" + ( true ? "" : 0));
const focal_point_picker_style_StyledUnitControl = /*#__PURE__*/emotion_styled_base_browser_esm(unit_control, true ? {
@@ -58852,12 +58782,12 @@ const extraHelpTextMargin = ({
const ControlWrapper = /*#__PURE__*/emotion_styled_base_browser_esm(flex_component, true ? {
target: "eeew7dm4"
} : 0)("max-width:320px;padding-top:1em;", extraHelpTextMargin, " ", deprecatedBottomMargin, ";" + ( true ? "" : 0));
-const GridView = emotion_styled_base_browser_esm("div", true ? {
+const GridView = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "eeew7dm3"
-} : 0)("left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );transition:opacity 100ms linear;z-index:1;", reduceMotion('transition'), " opacity:", ({
+} : 0)("left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );z-index:1;@media not ( prefers-reduced-motion ){transition:opacity 100ms linear;}opacity:", ({
showOverlay
}) => showOverlay ? 1 : 0, ";" + ( true ? "" : 0));
-const GridLine = emotion_styled_base_browser_esm("div", true ? {
+const GridLine = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "eeew7dm2"
} : 0)( true ? {
name: "1yzbo24",
@@ -58877,7 +58807,6 @@ const GridLineY = /*#__PURE__*/emotion_styled_base_browser_esm(GridLine, true ?
} : 0);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/focal-point-picker/controls.js
-
/**
* WordPress dependencies
*/
@@ -58888,6 +58817,8 @@ const GridLineY = /*#__PURE__*/emotion_styled_base_browser_esm(GridLine, true ?
*/
+
+
const TEXTCONTROL_MIN = 0;
const TEXTCONTROL_MAX = 100;
const controls_noop = () => {};
@@ -58904,7 +58835,9 @@ function FocalPointPickerControls({
const valueX = fractionToPercentage(point.x);
const valueY = fractionToPercentage(point.y);
const handleChange = (value, axis) => {
- if (value === undefined) return;
+ if (value === undefined) {
+ return;
+ }
const num = parseInt(value, 10);
if (!isNaN(num)) {
onChange({
@@ -58913,29 +58846,30 @@ function FocalPointPickerControls({
});
}
};
- return (0,external_React_.createElement)(ControlWrapper, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ControlWrapper, {
className: "focal-point-picker__controls",
__nextHasNoMarginBottom: __nextHasNoMarginBottom,
hasHelpText: hasHelpText,
- gap: 4
- }, (0,external_React_.createElement)(FocalPointUnitControl, {
- __next40pxDefaultSize: __next40pxDefaultSize,
- label: (0,external_wp_i18n_namespaceObject.__)('Left'),
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Focal point left position'),
- value: [valueX, '%'].join(''),
- onChange: next => handleChange(next, 'x'),
- dragDirection: "e"
- }), (0,external_React_.createElement)(FocalPointUnitControl, {
- __next40pxDefaultSize: __next40pxDefaultSize,
- label: (0,external_wp_i18n_namespaceObject.__)('Top'),
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Focal point top position'),
- value: [valueY, '%'].join(''),
- onChange: next => handleChange(next, 'y'),
- dragDirection: "s"
- }));
+ gap: 4,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FocalPointUnitControl, {
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ label: (0,external_wp_i18n_namespaceObject.__)('Left'),
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Focal point left position'),
+ value: [valueX, '%'].join(''),
+ onChange: next => handleChange(next, 'x'),
+ dragDirection: "e"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FocalPointUnitControl, {
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ label: (0,external_wp_i18n_namespaceObject.__)('Top'),
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Focal point top position'),
+ value: [valueY, '%'].join(''),
+ onChange: next => handleChange(next, 'y'),
+ dragDirection: "s"
+ })]
+ });
}
function FocalPointUnitControl(props) {
- return (0,external_React_.createElement)(focal_point_picker_style_StyledUnitControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(focal_point_picker_style_StyledUnitControl, {
className: "focal-point-picker__controls-position-unit-control",
labelPosition: "top",
max: TEXTCONTROL_MAX,
@@ -58954,13 +58888,9 @@ function FocalPointUnitControl(props) {
* External dependencies
*/
-/**
- * Internal dependencies
- */
-
-const PointerCircle = emotion_styled_base_browser_esm("div", true ? {
+const PointerCircle = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "e19snlhg0"
-} : 0)("background-color:transparent;cursor:grab;height:40px;margin:-20px 0 0 -20px;position:absolute;user-select:none;width:40px;will-change:transform;z-index:10000;background:rgba( 255, 255, 255, 0.4 );border:1px solid rgba( 255, 255, 255, 0.4 );border-radius:50%;backdrop-filter:blur( 16px ) saturate( 180% );box-shadow:rgb( 0 0 0 / 10% ) 0px 0px 8px;transition:transform 100ms linear;", reduceMotion('transition'), " ", ({
+} : 0)("background-color:transparent;cursor:grab;height:40px;margin:-20px 0 0 -20px;position:absolute;user-select:none;width:40px;will-change:transform;z-index:10000;background:rgba( 255, 255, 255, 0.4 );border:1px solid rgba( 255, 255, 255, 0.4 );border-radius:50%;backdrop-filter:blur( 16px ) saturate( 180% );box-shadow:rgb( 0 0 0 / 10% ) 0px 0px 8px;@media not ( prefers-reduced-motion ){transition:transform 100ms linear;}", ({
isDragging
}) => isDragging && `
box-shadow: rgb( 0 0 0 / 12% ) 0px 0px 10px;
@@ -58969,7 +58899,6 @@ const PointerCircle = emotion_styled_base_browser_esm("div", true ? {
`, ";" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/focal-point-picker/focal-point.js
-
/**
* Internal dependencies
*/
@@ -58984,56 +58913,56 @@ function FocalPoint({
top = '50%',
...props
}) {
- const classes = classnames_default()('components-focal-point-picker__icon_container');
const style = {
left,
top
};
- return (0,external_React_.createElement)(PointerCircle, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PointerCircle, {
...props,
- className: classes,
+ className: "components-focal-point-picker__icon_container",
style: style
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/focal-point-picker/grid.js
-
/**
* Internal dependencies
*/
+
+
function FocalPointPickerGrid({
bounds,
...props
}) {
- return (0,external_React_.createElement)(GridView, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(GridView, {
...props,
className: "components-focal-point-picker__grid",
style: {
width: bounds.width,
height: bounds.height
- }
- }, (0,external_React_.createElement)(GridLineX, {
- style: {
- top: '33%'
- }
- }), (0,external_React_.createElement)(GridLineX, {
- style: {
- top: '66%'
- }
- }), (0,external_React_.createElement)(GridLineY, {
- style: {
- left: '33%'
- }
- }), (0,external_React_.createElement)(GridLineY, {
- style: {
- left: '66%'
- }
- }));
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GridLineX, {
+ style: {
+ top: '33%'
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GridLineX, {
+ style: {
+ top: '66%'
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GridLineY, {
+ style: {
+ left: '33%'
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GridLineY, {
+ style: {
+ left: '66%'
+ }
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/focal-point-picker/media.js
-
/**
* External dependencies
*/
@@ -59043,6 +58972,7 @@ function FocalPointPickerGrid({
*/
+
function media_Media({
alt,
autoPlay,
@@ -59055,14 +58985,14 @@ function media_Media({
...props
}) {
if (!src) {
- return (0,external_React_.createElement)(MediaPlaceholder, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MediaPlaceholder, {
className: "components-focal-point-picker__media components-focal-point-picker__media--placeholder",
ref: mediaRef,
...props
});
}
const isVideo = isVideoType(src);
- return isVideo ? (0,external_React_.createElement)("video", {
+ return isVideo ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
...props,
autoPlay: autoPlay,
className: "components-focal-point-picker__media components-focal-point-picker__media--video",
@@ -59071,7 +59001,7 @@ function media_Media({
onLoadedData: onLoad,
ref: mediaRef,
src: src
- }) : (0,external_React_.createElement)("img", {
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
...props,
alt: alt,
className: "components-focal-point-picker__media components-focal-point-picker__media--image",
@@ -59082,7 +59012,6 @@ function media_Media({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/focal-point-picker/index.js
-
/**
* External dependencies
*/
@@ -59106,6 +59035,8 @@ function media_Media({
+
+
const GRID_OVERLAY_TIMEOUT = 600;
/**
@@ -59185,7 +59116,9 @@ function FocalPointPicker({
// `value` can technically be undefined if getValueWithinDragArea() is
// called before dragAreaRef is set, but this shouldn't happen in reality.
- if (!value) return;
+ if (!value) {
+ return;
+ }
onDragStart?.(value, event);
setPoint(value);
},
@@ -59193,7 +59126,9 @@ function FocalPointPicker({
// Prevents text-selection when dragging.
event.preventDefault();
const value = getValueWithinDragArea(event);
- if (!value) return;
+ if (!value) {
+ return;
+ }
onDrag?.(value, event);
setPoint(value);
},
@@ -59211,7 +59146,9 @@ function FocalPointPicker({
const dragAreaRef = (0,external_wp_element_namespaceObject.useRef)(null);
const [bounds, setBounds] = (0,external_wp_element_namespaceObject.useState)(INITIAL_BOUNDS);
const refUpdateBounds = (0,external_wp_element_namespaceObject.useRef)(() => {
- if (!dragAreaRef.current) return;
+ if (!dragAreaRef.current) {
+ return;
+ }
const {
clientWidth: width,
clientHeight: height
@@ -59228,7 +59165,9 @@ function FocalPointPicker({
});
(0,external_wp_element_namespaceObject.useEffect)(() => {
const updateBounds = refUpdateBounds.current;
- if (!dragAreaRef.current) return;
+ if (!dragAreaRef.current) {
+ return;
+ }
const {
defaultView
} = dragAreaRef.current.ownerDocument;
@@ -59246,7 +59185,9 @@ function FocalPointPicker({
clientY,
shiftKey
}) => {
- if (!dragAreaRef.current) return;
+ if (!dragAreaRef.current) {
+ return;
+ }
const {
top,
left
@@ -59279,7 +59220,9 @@ function FocalPointPicker({
code,
shiftKey
} = event;
- if (!['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'].includes(code)) return;
+ if (!['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'].includes(code)) {
+ return;
+ }
event.preventDefault();
const value = {
x,
@@ -59295,7 +59238,7 @@ function FocalPointPicker({
left: x !== undefined ? x * bounds.width : 0.5 * bounds.width,
top: y !== undefined ? y * bounds.height : 0.5 * bounds.height
};
- const classes = classnames_default()('components-focal-point-picker-control', className);
+ const classes = dist_clsx('components-focal-point-picker-control', className);
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(FocalPointPicker);
const id = `inspector-focal-point-picker-control-${instanceId}`;
use_update_effect(() => {
@@ -59305,53 +59248,57 @@ function FocalPointPicker({
}, GRID_OVERLAY_TIMEOUT);
return () => window.clearTimeout(timeout);
}, [x, y]);
- return (0,external_React_.createElement)(base_control, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(base_control, {
...restProps,
__nextHasNoMarginBottom: __nextHasNoMarginBottom,
label: label,
id: id,
help: help,
- className: classes
- }, (0,external_React_.createElement)(MediaWrapper, {
- className: "components-focal-point-picker-wrapper"
- }, (0,external_React_.createElement)(MediaContainer, {
- className: "components-focal-point-picker",
- onKeyDown: arrowKeyStep,
- onMouseDown: startDrag,
- onBlur: () => {
- if (isDragging) endDrag();
- },
- ref: dragAreaRef,
- role: "button",
- tabIndex: -1
- }, (0,external_React_.createElement)(FocalPointPickerGrid, {
- bounds: bounds,
- showOverlay: showGridOverlay
- }), (0,external_React_.createElement)(media_Media, {
- alt: (0,external_wp_i18n_namespaceObject.__)('Media preview'),
- autoPlay: autoPlay,
- onLoad: refUpdateBounds.current,
- src: url
- }), (0,external_React_.createElement)(FocalPoint, {
- ...focalPointPosition,
- isDragging: isDragging
- }))), (0,external_React_.createElement)(FocalPointPickerControls, {
- __nextHasNoMarginBottom: __nextHasNoMarginBottom,
- __next40pxDefaultSize: __next40pxDefaultSize,
- hasHelpText: !!help,
- point: {
- x,
- y
- },
- onChange: value => {
- onChange?.(getFinalValue(value));
- }
- }));
+ className: classes,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MediaWrapper, {
+ className: "components-focal-point-picker-wrapper",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(MediaContainer, {
+ className: "components-focal-point-picker",
+ onKeyDown: arrowKeyStep,
+ onMouseDown: startDrag,
+ onBlur: () => {
+ if (isDragging) {
+ endDrag();
+ }
+ },
+ ref: dragAreaRef,
+ role: "button",
+ tabIndex: -1,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FocalPointPickerGrid, {
+ bounds: bounds,
+ showOverlay: showGridOverlay
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(media_Media, {
+ alt: (0,external_wp_i18n_namespaceObject.__)('Media preview'),
+ autoPlay: autoPlay,
+ onLoad: refUpdateBounds.current,
+ src: url
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FocalPoint, {
+ ...focalPointPosition,
+ isDragging: isDragging
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FocalPointPickerControls, {
+ __nextHasNoMarginBottom: __nextHasNoMarginBottom,
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ hasHelpText: !!help,
+ point: {
+ x,
+ y
+ },
+ onChange: value => {
+ onChange?.(getFinalValue(value));
+ }
+ })]
+ });
}
/* harmony default export */ const focal_point_picker = (FocalPointPicker);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/focusable-iframe/index.js
-
/**
* WordPress dependencies
*/
@@ -59374,26 +59321,28 @@ function FocusableIframe({
// assigning props inherited from the rendering parent. It's the
// responsibility of the parent to assign a title.
// eslint-disable-next-line jsx-a11y/iframe-has-title
- return (0,external_React_.createElement)("iframe", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("iframe", {
ref: ref,
...props
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/settings.js
-
/**
* WordPress dependencies
*/
-const settings = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const settings = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"
+ })]
+});
/* harmony default export */ const library_settings = (settings);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/font-size-picker/utils.js
@@ -59454,7 +59403,7 @@ function font_size_picker_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You
-const styles_Container = emotion_styled_base_browser_esm("fieldset", true ? {
+const styles_Container = /*#__PURE__*/emotion_styled_base_browser_esm("fieldset", true ? {
target: "e8tqeku4"
} : 0)( true ? {
name: "1t1ytme",
@@ -59469,12 +59418,11 @@ const HeaderToggle = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_b
const HeaderLabel = /*#__PURE__*/emotion_styled_base_browser_esm(base_control.VisualLabel, true ? {
target: "e8tqeku1"
} : 0)("display:flex;gap:", space(1), ";justify-content:flex-start;margin-bottom:0;" + ( true ? "" : 0));
-const HeaderHint = emotion_styled_base_browser_esm("span", true ? {
+const HeaderHint = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "e8tqeku0"
} : 0)("color:", COLORS.gray[700], ";" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/font-size-picker/font-size-picker-select.js
-
/**
* WordPress dependencies
*/
@@ -59486,6 +59434,7 @@ const HeaderHint = emotion_styled_base_browser_esm("span", true ? {
+
const DEFAULT_OPTION = {
key: 'default',
name: (0,external_wp_i18n_namespaceObject.__)('Default'),
@@ -59525,9 +59474,8 @@ const FontSizePickerSelect = props => {
};
}), ...(disableCustomFontSizes ? [] : [CUSTOM_OPTION])];
const selectedOption = value ? (_options$find = options.find(option => option.value === value)) !== null && _options$find !== void 0 ? _options$find : CUSTOM_OPTION : DEFAULT_OPTION;
- return (0,external_React_.createElement)(CustomSelectControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomSelectControl, {
__next40pxDefaultSize: __next40pxDefaultSize,
- __nextUnconstrainedWidth: true,
className: "components-font-size-picker__select",
label: (0,external_wp_i18n_namespaceObject.__)('Font size'),
hideLabelFromVision: true,
@@ -59552,7 +59500,6 @@ const FontSizePickerSelect = props => {
/* harmony default export */ const font_size_picker_select = (FontSizePickerSelect);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control-option/component.js
-
/**
* External dependencies
*/
@@ -59567,17 +59514,19 @@ const FontSizePickerSelect = props => {
*/
+
function UnforwardedToggleGroupControlOption(props, ref) {
const {
label,
...restProps
} = props;
const optionLabel = restProps['aria-label'] || label;
- return (0,external_React_.createElement)(toggle_group_control_option_base_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toggle_group_control_option_base_component, {
...restProps,
"aria-label": optionLabel,
- ref: ref
- }, label);
+ ref: ref,
+ children: label
+ });
}
/**
@@ -59631,7 +59580,6 @@ const T_SHIRT_ABBREVIATIONS = [/* translators: S stands for 'small' and is a siz
const T_SHIRT_NAMES = [(0,external_wp_i18n_namespaceObject.__)('Small'), (0,external_wp_i18n_namespaceObject.__)('Medium'), (0,external_wp_i18n_namespaceObject.__)('Large'), (0,external_wp_i18n_namespaceObject.__)('Extra Large'), (0,external_wp_i18n_namespaceObject.__)('Extra Extra Large')];
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/font-size-picker/font-size-picker-toggle-group.js
-
/**
* WordPress dependencies
*/
@@ -59642,6 +59590,7 @@ const T_SHIRT_NAMES = [(0,external_wp_i18n_namespaceObject.__)('Small'), (0,exte
*/
+
const FontSizePickerToggleGroup = props => {
const {
fontSizes,
@@ -59650,7 +59599,7 @@ const FontSizePickerToggleGroup = props => {
size,
onChange
} = props;
- return (0,external_React_.createElement)(toggle_group_control_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toggle_group_control_component, {
__nextHasNoMarginBottom: true,
__next40pxDefaultSize: __next40pxDefaultSize,
label: (0,external_wp_i18n_namespaceObject.__)('Font size'),
@@ -59658,19 +59607,18 @@ const FontSizePickerToggleGroup = props => {
value: value,
onChange: onChange,
isBlock: true,
- size: size
- }, fontSizes.map((fontSize, index) => (0,external_React_.createElement)(toggle_group_control_option_component, {
- key: fontSize.slug,
- value: fontSize.size,
- label: T_SHIRT_ABBREVIATIONS[index],
- "aria-label": fontSize.name || T_SHIRT_NAMES[index],
- showTooltip: true
- })));
+ size: size,
+ children: fontSizes.map((fontSize, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toggle_group_control_option_component, {
+ value: fontSize.size,
+ label: T_SHIRT_ABBREVIATIONS[index],
+ "aria-label": fontSize.name || T_SHIRT_NAMES[index],
+ showTooltip: true
+ }, fontSize.slug))
+ });
};
/* harmony default export */ const font_size_picker_toggle_group = (FontSizePickerToggleGroup);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/font-size-picker/index.js
-
/**
* External dependencies
*/
@@ -59696,6 +59644,9 @@ const FontSizePickerToggleGroup = props => {
+
+
+const DEFAULT_UNITS = ['px', 'em', 'rem', 'vw', 'vh'];
const UnforwardedFontSizePicker = (props, ref) => {
const {
__next40pxDefaultSize = false,
@@ -59704,13 +59655,13 @@ const UnforwardedFontSizePicker = (props, ref) => {
disableCustomFontSizes = false,
onChange,
size = 'default',
- units: unitsProp,
+ units: unitsProp = DEFAULT_UNITS,
value,
withSlider = false,
withReset = true
} = props;
const units = useCustomUnits({
- availableUnits: unitsProp || ['px', 'em', 'rem']
+ availableUnits: unitsProp
});
const shouldUseSelectControl = fontSizes.length > 5;
const selectedFontSize = fontSizes.find(fontSize => fontSize.size === value);
@@ -59741,115 +59692,130 @@ const UnforwardedFontSizePicker = (props, ref) => {
// to select px values and onChange() is always called with number values.
const hasUnits = typeof value === 'string' || typeof fontSizes[0]?.size === 'string';
const [valueQuantity, valueUnit] = parseQuantityAndUnitFromRawValue(value, units);
- const isValueUnitRelative = !!valueUnit && ['em', 'rem'].includes(valueUnit);
+ const isValueUnitRelative = !!valueUnit && ['em', 'rem', 'vw', 'vh'].includes(valueUnit);
const isDisabled = value === undefined;
- return (0,external_React_.createElement)(styles_Container, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_Container, {
ref: ref,
- className: "components-font-size-picker"
- }, (0,external_React_.createElement)(visually_hidden_component, {
- as: "legend"
- }, (0,external_wp_i18n_namespaceObject.__)('Font size')), (0,external_React_.createElement)(spacer_component, null, (0,external_React_.createElement)(styles_Header, {
- className: "components-font-size-picker__header"
- }, (0,external_React_.createElement)(HeaderLabel, {
- "aria-label": `${(0,external_wp_i18n_namespaceObject.__)('Size')} ${headerHint || ''}`
- }, (0,external_wp_i18n_namespaceObject.__)('Size'), headerHint && (0,external_React_.createElement)(HeaderHint, {
- className: "components-font-size-picker__header__hint"
- }, headerHint)), !disableCustomFontSizes && (0,external_React_.createElement)(HeaderToggle, {
- label: showCustomValueControl ? (0,external_wp_i18n_namespaceObject.__)('Use size preset') : (0,external_wp_i18n_namespaceObject.__)('Set custom size'),
- icon: library_settings,
- onClick: () => {
- setShowCustomValueControl(!showCustomValueControl);
- },
- isPressed: showCustomValueControl,
- size: "small"
- }))), (0,external_React_.createElement)("div", null, !!fontSizes.length && shouldUseSelectControl && !showCustomValueControl && (0,external_React_.createElement)(font_size_picker_select, {
- __next40pxDefaultSize: __next40pxDefaultSize,
- fontSizes: fontSizes,
- value: value,
- disableCustomFontSizes: disableCustomFontSizes,
- size: size,
- onChange: newValue => {
- if (newValue === undefined) {
- onChange?.(undefined);
- } else {
- onChange?.(hasUnits ? newValue : Number(newValue), fontSizes.find(fontSize => fontSize.size === newValue));
- }
- },
- onSelectCustom: () => setShowCustomValueControl(true)
- }), !shouldUseSelectControl && !showCustomValueControl && (0,external_React_.createElement)(font_size_picker_toggle_group, {
- fontSizes: fontSizes,
- value: value,
- __next40pxDefaultSize: __next40pxDefaultSize,
- size: size,
- onChange: newValue => {
- if (newValue === undefined) {
- onChange?.(undefined);
- } else {
- onChange?.(hasUnits ? newValue : Number(newValue), fontSizes.find(fontSize => fontSize.size === newValue));
- }
- }
- }), !disableCustomFontSizes && showCustomValueControl && (0,external_React_.createElement)(flex_component, {
- className: "components-font-size-picker__custom-size-control"
- }, (0,external_React_.createElement)(flex_item_component, {
- isBlock: true
- }, (0,external_React_.createElement)(unit_control, {
- __next40pxDefaultSize: __next40pxDefaultSize,
- label: (0,external_wp_i18n_namespaceObject.__)('Custom'),
- labelPosition: "top",
- hideLabelFromVision: true,
- value: value,
- onChange: newValue => {
- if (newValue === undefined) {
- onChange?.(undefined);
- } else {
- onChange?.(hasUnits ? newValue : parseInt(newValue, 10));
- }
- },
- size: size,
- units: hasUnits ? units : [],
- min: 0
- })), withSlider && (0,external_React_.createElement)(flex_item_component, {
- isBlock: true
- }, (0,external_React_.createElement)(spacer_component, {
- marginX: 2,
- marginBottom: 0
- }, (0,external_React_.createElement)(range_control, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: __next40pxDefaultSize,
- className: "components-font-size-picker__custom-input",
- label: (0,external_wp_i18n_namespaceObject.__)('Custom Size'),
- hideLabelFromVision: true,
- value: valueQuantity,
- initialPosition: fallbackFontSize,
- withInputField: false,
- onChange: newValue => {
- if (newValue === undefined) {
- onChange?.(undefined);
- } else if (hasUnits) {
- onChange?.(newValue + (valueUnit !== null && valueUnit !== void 0 ? valueUnit : 'px'));
- } else {
- onChange?.(newValue);
- }
- },
- min: 0,
- max: isValueUnitRelative ? 10 : 100,
- step: isValueUnitRelative ? 0.1 : 1
- }))), withReset && (0,external_React_.createElement)(flex_item_component, null, (0,external_React_.createElement)(Button, {
- disabled: isDisabled,
- __experimentalIsFocusable: true,
- onClick: () => {
- onChange?.(undefined);
- },
- variant: "secondary",
- __next40pxDefaultSize: true,
- size: size === '__unstable-large' || props.__next40pxDefaultSize ? 'default' : 'small'
- }, (0,external_wp_i18n_namespaceObject.__)('Reset'))))));
+ className: "components-font-size-picker",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
+ as: "legend",
+ children: (0,external_wp_i18n_namespaceObject.__)('Font size')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_Header, {
+ className: "components-font-size-picker__header",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(HeaderLabel, {
+ "aria-label": `${(0,external_wp_i18n_namespaceObject.__)('Size')} ${headerHint || ''}`,
+ children: [(0,external_wp_i18n_namespaceObject.__)('Size'), headerHint && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HeaderHint, {
+ className: "components-font-size-picker__header__hint",
+ children: headerHint
+ })]
+ }), !disableCustomFontSizes && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HeaderToggle, {
+ label: showCustomValueControl ? (0,external_wp_i18n_namespaceObject.__)('Use size preset') : (0,external_wp_i18n_namespaceObject.__)('Set custom size'),
+ icon: library_settings,
+ onClick: () => {
+ setShowCustomValueControl(!showCustomValueControl);
+ },
+ isPressed: showCustomValueControl,
+ size: "small"
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ children: [!!fontSizes.length && shouldUseSelectControl && !showCustomValueControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(font_size_picker_select, {
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ fontSizes: fontSizes,
+ value: value,
+ disableCustomFontSizes: disableCustomFontSizes,
+ size: size,
+ onChange: newValue => {
+ if (newValue === undefined) {
+ onChange?.(undefined);
+ } else {
+ onChange?.(hasUnits ? newValue : Number(newValue), fontSizes.find(fontSize => fontSize.size === newValue));
+ }
+ },
+ onSelectCustom: () => setShowCustomValueControl(true)
+ }), !shouldUseSelectControl && !showCustomValueControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(font_size_picker_toggle_group, {
+ fontSizes: fontSizes,
+ value: value,
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ size: size,
+ onChange: newValue => {
+ if (newValue === undefined) {
+ onChange?.(undefined);
+ } else {
+ onChange?.(hasUnits ? newValue : Number(newValue), fontSizes.find(fontSize => fontSize.size === newValue));
+ }
+ }
+ }), !disableCustomFontSizes && showCustomValueControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(flex_component, {
+ className: "components-font-size-picker__custom-size-control",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_item_component, {
+ isBlock: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(unit_control, {
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ label: (0,external_wp_i18n_namespaceObject.__)('Custom'),
+ labelPosition: "top",
+ hideLabelFromVision: true,
+ value: value,
+ onChange: newValue => {
+ if (newValue === undefined) {
+ onChange?.(undefined);
+ } else {
+ onChange?.(hasUnits ? newValue : parseInt(newValue, 10));
+ }
+ },
+ size: size,
+ units: hasUnits ? units : [],
+ min: 0
+ })
+ }), withSlider && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_item_component, {
+ isBlock: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
+ marginX: 2,
+ marginBottom: 0,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(range_control, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ className: "components-font-size-picker__custom-input",
+ label: (0,external_wp_i18n_namespaceObject.__)('Custom Size'),
+ hideLabelFromVision: true,
+ value: valueQuantity,
+ initialPosition: fallbackFontSize,
+ withInputField: false,
+ onChange: newValue => {
+ if (newValue === undefined) {
+ onChange?.(undefined);
+ } else if (hasUnits) {
+ onChange?.(newValue + (valueUnit !== null && valueUnit !== void 0 ? valueUnit : 'px'));
+ } else {
+ onChange?.(newValue);
+ }
+ },
+ min: 0,
+ max: isValueUnitRelative ? 10 : 100,
+ step: isValueUnitRelative ? 0.1 : 1
+ })
+ })
+ }), withReset && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_item_component, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Button, {
+ disabled: isDisabled,
+ __experimentalIsFocusable: true,
+ onClick: () => {
+ onChange?.(undefined);
+ },
+ variant: "secondary",
+ __next40pxDefaultSize: true,
+ size: size === '__unstable-large' || props.__next40pxDefaultSize ? 'default' : 'small',
+ children: (0,external_wp_i18n_namespaceObject.__)('Reset')
+ })
+ })]
+ })]
+ })]
+ });
};
const FontSizePicker = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedFontSizePicker);
/* harmony default export */ const font_size_picker = (FontSizePicker);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-file-upload/index.js
-
/**
* WordPress dependencies
*/
@@ -59859,6 +59825,8 @@ const FontSizePicker = (0,external_wp_element_namespaceObject.forwardRef)(Unforw
* Internal dependencies
*/
+
+
/**
* FormFileUpload is a component that allows users to select files from their local device.
*
@@ -59890,38 +59858,44 @@ function FormFileUpload({
};
const ui = render ? render({
openFileDialog
- }) : (0,external_React_.createElement)(build_module_button, {
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
onClick: openFileDialog,
- ...props
- }, children);
- return (0,external_React_.createElement)("div", {
- className: "components-form-file-upload"
- }, ui, (0,external_React_.createElement)("input", {
- type: "file",
- ref: ref,
- multiple: multiple,
- style: {
- display: 'none'
- },
- accept: accept,
- onChange: onChange,
- onClick: onClick,
- "data-testid": "form-file-upload-input"
- }));
+ ...props,
+ children: children
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "components-form-file-upload",
+ children: [ui, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
+ type: "file",
+ ref: ref,
+ multiple: multiple,
+ style: {
+ display: 'none'
+ },
+ accept: accept,
+ onChange: onChange,
+ onClick: onClick,
+ "data-testid": "form-file-upload-input"
+ })]
+ });
}
/* harmony default export */ const form_file_upload = (FormFileUpload);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-toggle/index.js
-
/**
* External dependencies
*/
+/**
+ * WordPress dependencies
+ */
+
/**
* Internal dependencies
*/
+
const form_toggle_noop = () => {};
/**
@@ -59943,7 +59917,7 @@ const form_toggle_noop = () => {};
* };
* ```
*/
-function FormToggle(props) {
+function FormToggle(props, ref) {
const {
className,
checked,
@@ -59952,30 +59926,31 @@ function FormToggle(props) {
onChange = form_toggle_noop,
...additionalProps
} = props;
- const wrapperClasses = classnames_default()('components-form-toggle', className, {
+ const wrapperClasses = dist_clsx('components-form-toggle', className, {
'is-checked': checked,
'is-disabled': disabled
});
- return (0,external_React_.createElement)("span", {
- className: wrapperClasses
- }, (0,external_React_.createElement)("input", {
- className: "components-form-toggle__input",
- id: id,
- type: "checkbox",
- checked: checked,
- onChange: onChange,
- disabled: disabled,
- ...additionalProps
- }), (0,external_React_.createElement)("span", {
- className: "components-form-toggle__track"
- }), (0,external_React_.createElement)("span", {
- className: "components-form-toggle__thumb"
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
+ className: wrapperClasses,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
+ className: "components-form-toggle__input",
+ id: id,
+ type: "checkbox",
+ checked: checked,
+ onChange: onChange,
+ disabled: disabled,
+ ...additionalProps,
+ ref: ref
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "components-form-toggle__track"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "components-form-toggle__thumb"
+ })]
+ });
}
-/* harmony default export */ const form_toggle = (FormToggle);
+/* harmony default export */ const form_toggle = ((0,external_wp_element_namespaceObject.forwardRef)(FormToggle));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/token.js
-
/**
* External dependencies
*/
@@ -59993,6 +59968,8 @@ function FormToggle(props) {
*/
+
+
const token_noop = () => {};
function Token({
value,
@@ -60009,7 +59986,7 @@ function Token({
termsCount
}) {
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(Token);
- const tokenClasses = classnames_default()('components-form-token-field__token', {
+ const tokenClasses = dist_clsx('components-form-token-field__token', {
'is-error': 'error' === status,
'is-success': 'success' === status,
'is-validating': 'validating' === status,
@@ -60022,26 +59999,30 @@ function Token({
const transformedValue = displayTransform(value);
const termPositionAndCount = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: term name, 2: term position in a set of terms, 3: total term set count. */
(0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s of %3$s)'), transformedValue, termPosition, termsCount);
- return (0,external_React_.createElement)("span", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
className: tokenClasses,
onMouseEnter: onMouseEnter,
onMouseLeave: onMouseLeave,
- title: title
- }, (0,external_React_.createElement)("span", {
- className: "components-form-token-field__token-text",
- id: `components-form-token-field__token-text-${instanceId}`
- }, (0,external_React_.createElement)(visually_hidden_component, {
- as: "span"
- }, termPositionAndCount), (0,external_React_.createElement)("span", {
- "aria-hidden": "true"
- }, transformedValue)), (0,external_React_.createElement)(build_module_button, {
- className: "components-form-token-field__remove-token",
- icon: close_small,
- onClick: !disabled ? onClick : undefined,
- disabled: disabled,
- label: messages.remove,
- "aria-describedby": `components-form-token-field__token-text-${instanceId}`
- }));
+ title: title,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
+ className: "components-form-token-field__token-text",
+ id: `components-form-token-field__token-text-${instanceId}`,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
+ as: "span",
+ children: termPositionAndCount
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-hidden": "true",
+ children: transformedValue
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ className: "components-form-token-field__remove-token",
+ icon: close_small,
+ onClick: !disabled ? onClick : undefined,
+ disabled: disabled,
+ label: messages.remove,
+ "aria-describedby": `components-form-token-field__token-text-${instanceId}`
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/styles.js
@@ -60067,7 +60048,6 @@ const TokensAndInputWrapperFlex = /*#__PURE__*/emotion_styled_base_browser_esm(f
} : 0)("padding:7px;", boxSizingReset, " ", deprecatedPaddings, ";" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/index.js
-
/**
* External dependencies
*/
@@ -60092,6 +60072,9 @@ const TokensAndInputWrapperFlex = /*#__PURE__*/emotion_styled_base_browser_esm(f
+
+
+
const form_token_field_identity = value => value;
/**
@@ -60102,7 +60085,7 @@ const form_token_field_identity = value => value;
* Tokens are separated by the "," character. Suggestions can be selected with the up or down arrows and added with the tab or enter key.
*
* The `value` property is handled in a manner similar to controlled form components.
- * See [Forms](http://facebook.github.io/react/docs/forms.html) in the React Documentation for more information.
+ * See [Forms](https://react.dev/reference/react-dom/components#form-components) in the React Documentation for more information.
*/
function FormTokenField(props) {
const {
@@ -60229,13 +60212,7 @@ function FormTokenField(props) {
}
function onKeyDown(event) {
let preventDefault = false;
- if (event.defaultPrevented ||
- // Ignore keydowns from IMEs
- event.nativeEvent.isComposing ||
- // Workaround for Mac Safari where the final Enter/Backspace of an IME composition
- // is `isComposing=false`, even though it's technically still part of the composition.
- // These can only be detected by keyCode.
- event.keyCode === 229) {
+ if (event.defaultPrevented) {
return;
}
switch (event.key) {
@@ -60527,22 +60504,22 @@ function FormTokenField(props) {
const status = typeof token !== 'string' ? token.status : undefined;
const termPosition = index + 1;
const termsCount = tokens.length;
- return (0,external_React_.createElement)(flex_item_component, {
- key: 'token-' + _value
- }, (0,external_React_.createElement)(Token, {
- value: _value,
- status: status,
- title: typeof token !== 'string' ? token.title : undefined,
- displayTransform: displayTransform,
- onClickRemove: onTokenClickRemove,
- isBorderless: typeof token !== 'string' && token.isBorderless || isBorderless,
- onMouseEnter: typeof token !== 'string' ? token.onMouseEnter : undefined,
- onMouseLeave: typeof token !== 'string' ? token.onMouseLeave : undefined,
- disabled: 'error' !== status && disabled,
- messages: messages,
- termsCount: termsCount,
- termPosition: termPosition
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_item_component, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Token, {
+ value: _value,
+ status: status,
+ title: typeof token !== 'string' ? token.title : undefined,
+ displayTransform: displayTransform,
+ onClickRemove: onTokenClickRemove,
+ isBorderless: typeof token !== 'string' && token.isBorderless || isBorderless,
+ onMouseEnter: typeof token !== 'string' ? token.onMouseEnter : undefined,
+ onMouseLeave: typeof token !== 'string' ? token.onMouseLeave : undefined,
+ disabled: 'error' !== status && disabled,
+ messages: messages,
+ termsCount: termsCount,
+ termPosition: termPosition
+ })
+ }, 'token-' + _value);
}
function renderInput() {
const inputProps = {
@@ -60550,20 +60527,19 @@ function FormTokenField(props) {
autoCapitalize,
autoComplete,
placeholder: value.length === 0 ? placeholder : '',
- key: 'input',
disabled,
value: incompleteTokenValue,
onBlur,
isExpanded,
selectedSuggestionIndex
};
- return (0,external_React_.createElement)(token_input, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(token_input, {
...inputProps,
onChange: !(maxLength && value.length >= maxLength) ? onInputChangeHandler : undefined,
ref: input
- });
+ }, "input");
}
- const classes = classnames_default()(className, 'components-form-token-field__input-container', {
+ const classes = dist_clsx(className, 'components-form-token-field__input-container', {
'is-active': isActive,
'is-disabled': disabled
});
@@ -60574,7 +60550,7 @@ function FormTokenField(props) {
const matchingSuggestions = getMatchingSuggestions();
if (!disabled) {
tokenFieldProps = Object.assign({}, tokenFieldProps, {
- onKeyDown,
+ onKeyDown: withIgnoreIMEEvents(onKeyDown),
onKeyPress,
onFocus: onFocusHandler
});
@@ -60584,64 +60560,69 @@ function FormTokenField(props) {
// input container intended accessible usability.
// TODO: Refactor click detection to use blur to stop propagation.
/* eslint-disable jsx-a11y/no-static-element-interactions */
- return (0,external_React_.createElement)("div", {
- ...tokenFieldProps
- }, (0,external_React_.createElement)(StyledLabel, {
- htmlFor: `components-form-token-input-${instanceId}`,
- className: "components-form-token-field__label"
- }, label), (0,external_React_.createElement)("div", {
- ref: tokensAndInput,
- className: classes,
- tabIndex: -1,
- onMouseDown: onContainerTouched,
- onTouchStart: onContainerTouched
- }, (0,external_React_.createElement)(TokensAndInputWrapperFlex, {
- justify: "flex-start",
- align: "center",
- gap: 1,
- wrap: true,
- __next40pxDefaultSize: __next40pxDefaultSize,
- hasTokens: !!value.length
- }, renderTokensAndInput()), isExpanded && (0,external_React_.createElement)(suggestions_list, {
- instanceId: instanceId,
- match: saveTransform(incompleteTokenValue),
- displayTransform: displayTransform,
- suggestions: matchingSuggestions,
- selectedIndex: selectedSuggestionIndex,
- scrollIntoView: selectedSuggestionScroll,
- onHover: onSuggestionHovered,
- onSelect: onSuggestionSelected,
- __experimentalRenderItem: __experimentalRenderItem
- })), !__nextHasNoMarginBottom && (0,external_React_.createElement)(spacer_component, {
- marginBottom: 2
- }), __experimentalShowHowTo && (0,external_React_.createElement)(StyledHelp, {
- id: `components-form-token-suggestions-howto-${instanceId}`,
- className: "components-form-token-field__help",
- __nextHasNoMarginBottom: __nextHasNoMarginBottom
- }, tokenizeOnSpace ? (0,external_wp_i18n_namespaceObject.__)('Separate with commas, spaces, or the Enter key.') : (0,external_wp_i18n_namespaceObject.__)('Separate with commas or the Enter key.')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...tokenFieldProps,
+ children: [label && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledLabel, {
+ htmlFor: `components-form-token-input-${instanceId}`,
+ className: "components-form-token-field__label",
+ children: label
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ref: tokensAndInput,
+ className: classes,
+ tabIndex: -1,
+ onMouseDown: onContainerTouched,
+ onTouchStart: onContainerTouched,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TokensAndInputWrapperFlex, {
+ justify: "flex-start",
+ align: "center",
+ gap: 1,
+ wrap: true,
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ hasTokens: !!value.length,
+ children: renderTokensAndInput()
+ }), isExpanded && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(suggestions_list, {
+ instanceId: instanceId,
+ match: saveTransform(incompleteTokenValue),
+ displayTransform: displayTransform,
+ suggestions: matchingSuggestions,
+ selectedIndex: selectedSuggestionIndex,
+ scrollIntoView: selectedSuggestionScroll,
+ onHover: onSuggestionHovered,
+ onSelect: onSuggestionSelected,
+ __experimentalRenderItem: __experimentalRenderItem
+ })]
+ }), !__nextHasNoMarginBottom && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
+ marginBottom: 2
+ }), __experimentalShowHowTo && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledHelp, {
+ id: `components-form-token-suggestions-howto-${instanceId}`,
+ className: "components-form-token-field__help",
+ __nextHasNoMarginBottom: __nextHasNoMarginBottom,
+ children: tokenizeOnSpace ? (0,external_wp_i18n_namespaceObject.__)('Separate with commas, spaces, or the Enter key.') : (0,external_wp_i18n_namespaceObject.__)('Separate with commas or the Enter key.')
+ })]
+ });
/* eslint-enable jsx-a11y/no-static-element-interactions */
}
/* harmony default export */ const form_token_field = (FormTokenField);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/guide/icons.js
-
/**
* WordPress dependencies
*/
-const PageControlIcon = () => (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const PageControlIcon = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "8",
height: "8",
fill: "none",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Circle, {
- cx: "4",
- cy: "4",
- r: "4"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Circle, {
+ cx: "4",
+ cy: "4",
+ r: "4"
+ })
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/guide/page-control.js
-
/**
* WordPress dependencies
*/
@@ -60652,32 +60633,31 @@ const PageControlIcon = () => (0,external_React_.createElement)(external_wp_prim
*/
+
function PageControl({
currentPage,
numberOfPages,
setCurrentPage
}) {
- return (0,external_React_.createElement)("ul", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
className: "components-guide__page-control",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Guide controls')
- }, Array.from({
- length: numberOfPages
- }).map((_, page) => (0,external_React_.createElement)("li", {
- key: page
- // Set aria-current="step" on the active page, see https://www.w3.org/TR/wai-aria-1.1/#aria-current
- ,
- "aria-current": page === currentPage ? 'step' : undefined
- }, (0,external_React_.createElement)(build_module_button, {
- key: page,
- icon: (0,external_React_.createElement)(PageControlIcon, null),
- "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: current page number 2: total number of pages */
- (0,external_wp_i18n_namespaceObject.__)('Page %1$d of %2$d'), page + 1, numberOfPages),
- onClick: () => setCurrentPage(page)
- }))));
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Guide controls'),
+ children: Array.from({
+ length: numberOfPages
+ }).map((_, page) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ // Set aria-current="step" on the active page, see https://www.w3.org/TR/wai-aria-1.1/#aria-current
+ "aria-current": page === currentPage ? 'step' : undefined,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PageControlIcon, {}),
+ "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: current page number 2: total number of pages */
+ (0,external_wp_i18n_namespaceObject.__)('Page %1$d of %2$d'), page + 1, numberOfPages),
+ onClick: () => setCurrentPage(page)
+ }, page)
+ }, page))
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/guide/index.js
-
/**
* External dependencies
*/
@@ -60696,6 +60676,8 @@ function PageControl({
+
+
/**
* `Guide` is a React component that renders a _user guide_ in a modal. The guide consists of several pages which the user can step through one by one. The guide is finished when the modal is closed or when the user clicks _Finish_ on the last page of the guide.
*
@@ -60774,8 +60756,8 @@ function Guide({
if (pages.length === 0) {
return null;
}
- return (0,external_React_.createElement)(modal, {
- className: classnames_default()('components-guide', className),
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(modal, {
+ className: dist_clsx('components-guide', className),
contentLabel: contentLabel,
isDismissible: pages.length > 1,
onRequestClose: onFinish,
@@ -60790,35 +60772,41 @@ function Guide({
event.preventDefault();
}
},
- ref: ref
- }, (0,external_React_.createElement)("div", {
- className: "components-guide__container"
- }, (0,external_React_.createElement)("div", {
- className: "components-guide__page"
- }, pages[currentPage].image, pages.length > 1 && (0,external_React_.createElement)(PageControl, {
- currentPage: currentPage,
- numberOfPages: pages.length,
- setCurrentPage: setCurrentPage
- }), pages[currentPage].content), (0,external_React_.createElement)("div", {
- className: "components-guide__footer"
- }, canGoBack && (0,external_React_.createElement)(build_module_button, {
- className: "components-guide__back-button",
- variant: "tertiary",
- onClick: goBack
- }, (0,external_wp_i18n_namespaceObject.__)('Previous')), canGoForward && (0,external_React_.createElement)(build_module_button, {
- className: "components-guide__forward-button",
- variant: "primary",
- onClick: goForward
- }, (0,external_wp_i18n_namespaceObject.__)('Next')), !canGoForward && (0,external_React_.createElement)(build_module_button, {
- className: "components-guide__finish-button",
- variant: "primary",
- onClick: onFinish
- }, finishButtonText))));
+ ref: ref,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "components-guide__container",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "components-guide__page",
+ children: [pages[currentPage].image, pages.length > 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PageControl, {
+ currentPage: currentPage,
+ numberOfPages: pages.length,
+ setCurrentPage: setCurrentPage
+ }), pages[currentPage].content]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "components-guide__footer",
+ children: [canGoBack && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ className: "components-guide__back-button",
+ variant: "tertiary",
+ onClick: goBack,
+ children: (0,external_wp_i18n_namespaceObject.__)('Previous')
+ }), canGoForward && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ className: "components-guide__forward-button",
+ variant: "primary",
+ onClick: goForward,
+ children: (0,external_wp_i18n_namespaceObject.__)('Next')
+ }), !canGoForward && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ className: "components-guide__finish-button",
+ variant: "primary",
+ onClick: onFinish,
+ children: finishButtonText
+ })]
+ })]
+ })
+ });
}
/* harmony default export */ const guide = (Guide);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/guide/page.js
-
/**
* WordPress dependencies
*/
@@ -60836,13 +60824,12 @@ function GuidePage(props) {
alternative: 'the `pages` prop in <Guide>'
});
}, []);
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...props
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/button/deprecated.js
-
/**
* External dependencies
*/
@@ -60857,6 +60844,7 @@ function GuidePage(props) {
* Internal dependencies
*/
+
function UnforwardedIconButton({
label,
labelPosition,
@@ -60869,7 +60857,7 @@ function UnforwardedIconButton({
alternative: 'wp.components.Button',
version: '6.2'
});
- return (0,external_React_.createElement)(build_module_button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
...props,
ref: ref,
tooltipPosition: labelPosition,
@@ -60882,10 +60870,6 @@ function UnforwardedIconButton({
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/item-group/item/hook.js
/**
- * External dependencies
- */
-
-/**
* WordPress dependencies
*/
@@ -60927,7 +60911,6 @@ function useItem(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/item-group/item/component.js
-
/**
* External dependencies
*/
@@ -60939,19 +60922,21 @@ function useItem(props) {
+
function UnconnectedItem(props, forwardedRef) {
const {
role,
wrapperClassName,
...otherProps
} = useItem(props);
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
role: role,
- className: wrapperClassName
- }, (0,external_React_.createElement)(component, {
- ...otherProps,
- ref: forwardedRef
- }));
+ className: wrapperClassName,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
+ ...otherProps,
+ ref: forwardedRef
+ })
+ });
}
/**
@@ -60979,7 +60964,6 @@ const component_Item = contextConnect(UnconnectedItem, 'Item');
/* harmony default export */ const item_component = (component_Item);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/input-prefix-wrapper.js
-
/**
* External dependencies
*/
@@ -60989,9 +60973,10 @@ const component_Item = contextConnect(UnconnectedItem, 'Item');
*/
+
function UnconnectedInputControlPrefixWrapper(props, forwardedRef) {
const derivedProps = useContextSystem(props, 'InputControlPrefixWrapper');
- return (0,external_React_.createElement)(spacer_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
marginBottom: 0,
...derivedProps,
ref: forwardedRef
@@ -61017,7 +61002,6 @@ const InputControlPrefixWrapper = contextConnect(UnconnectedInputControlPrefixWr
/* harmony default export */ const input_prefix_wrapper = (InputControlPrefixWrapper);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/keyboard-shortcuts/index.js
-
/**
* WordPress dependencies
*/
@@ -61028,6 +61012,8 @@ const InputControlPrefixWrapper = contextConnect(UnconnectedInputControlPrefixWr
* Internal dependencies
*/
+
+
function KeyboardShortcut({
target,
callback,
@@ -61080,28 +61066,29 @@ function KeyboardShortcuts({
eventName
}) {
const target = (0,external_wp_element_namespaceObject.useRef)(null);
- const element = Object.entries(shortcuts !== null && shortcuts !== void 0 ? shortcuts : {}).map(([shortcut, callback]) => (0,external_React_.createElement)(KeyboardShortcut, {
- key: shortcut,
+ const element = Object.entries(shortcuts !== null && shortcuts !== void 0 ? shortcuts : {}).map(([shortcut, callback]) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(KeyboardShortcut, {
shortcut: shortcut,
callback: callback,
bindGlobal: bindGlobal,
eventName: eventName,
target: target
- }));
+ }, shortcut));
// Render as non-visual if there are no children pressed. Keyboard
// events will be bound to the document instead.
if (!external_wp_element_namespaceObject.Children.count(children)) {
- return (0,external_React_.createElement)(external_React_.Fragment, null, element);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: element
+ });
}
- return (0,external_React_.createElement)("div", {
- ref: target
- }, element, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ref: target,
+ children: [element, children]
+ });
}
/* harmony default export */ const keyboard_shortcuts = (KeyboardShortcuts);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/menu-group/index.js
-
/**
* External dependencies
*/
@@ -61117,6 +61104,7 @@ function KeyboardShortcuts({
* Internal dependencies
*/
+
/**
* `MenuGroup` wraps a series of related `MenuItem` components into a common
* section.
@@ -61144,24 +61132,26 @@ function MenuGroup(props) {
return null;
}
const labelId = `components-menu-group-label-${instanceId}`;
- const classNames = classnames_default()(className, 'components-menu-group', {
+ const classNames = dist_clsx(className, 'components-menu-group', {
'has-hidden-separator': hideSeparator
});
- return (0,external_React_.createElement)("div", {
- className: classNames
- }, label && (0,external_React_.createElement)("div", {
- className: "components-menu-group__label",
- id: labelId,
- "aria-hidden": "true"
- }, label), (0,external_React_.createElement)("div", {
- role: "group",
- "aria-labelledby": label ? labelId : undefined
- }, children));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: classNames,
+ children: [label && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "components-menu-group__label",
+ id: labelId,
+ "aria-hidden": "true",
+ children: label
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ role: "group",
+ "aria-labelledby": label ? labelId : undefined,
+ children: children
+ })]
+ });
}
/* harmony default export */ const menu_group = (MenuGroup);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/menu-item/index.js
-
/**
* External dependencies
*/
@@ -61179,6 +61169,8 @@ function MenuGroup(props) {
+
+
function UnforwardedMenuItem(props, ref) {
let {
children,
@@ -61192,24 +61184,27 @@ function UnforwardedMenuItem(props, ref) {
suffix,
...buttonProps
} = props;
- className = classnames_default()('components-menu-item__button', className);
+ className = dist_clsx('components-menu-item__button', className);
if (info) {
- children = (0,external_React_.createElement)("span", {
- className: "components-menu-item__info-wrapper"
- }, (0,external_React_.createElement)("span", {
- className: "components-menu-item__item"
- }, children), (0,external_React_.createElement)("span", {
- className: "components-menu-item__info"
- }, info));
+ children = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
+ className: "components-menu-item__info-wrapper",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "components-menu-item__item",
+ children: children
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "components-menu-item__info",
+ children: info
+ })]
+ });
}
if (icon && typeof icon !== 'string') {
icon = (0,external_wp_element_namespaceObject.cloneElement)(icon, {
- className: classnames_default()('components-menu-items__item-icon', {
+ className: dist_clsx('components-menu-items__item-icon', {
'has-icon-right': iconPosition === 'right'
})
});
}
- return (0,external_React_.createElement)(build_module_button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(build_module_button, {
ref: ref
// Make sure aria-checked matches spec https://www.w3.org/TR/wai-aria-1.1/#aria-checked
,
@@ -61217,15 +61212,17 @@ function UnforwardedMenuItem(props, ref) {
role: role,
icon: iconPosition === 'left' ? icon : undefined,
className: className,
- ...buttonProps
- }, (0,external_React_.createElement)("span", {
- className: "components-menu-item__item"
- }, children), !suffix && (0,external_React_.createElement)(build_module_shortcut, {
- className: "components-menu-item__shortcut",
- shortcut: shortcut
- }), !suffix && icon && iconPosition === 'right' && (0,external_React_.createElement)(build_module_icon, {
- icon: icon
- }), suffix);
+ ...buttonProps,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "components-menu-item__item",
+ children: children
+ }), !suffix && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_shortcut, {
+ className: "components-menu-item__shortcut",
+ shortcut: shortcut
+ }), !suffix && icon && iconPosition === 'right' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: icon
+ }), suffix]
+ });
}
/**
@@ -61255,7 +61252,6 @@ const MenuItem = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedM
/* harmony default export */ const menu_item = (MenuItem);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/menu-items-choice/index.js
-
/**
* WordPress dependencies
*/
@@ -61265,6 +61261,8 @@ const MenuItem = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedM
* Internal dependencies
*/
+
+
const menu_items_choice_noop = () => {};
/**
@@ -61306,32 +61304,33 @@ function MenuItemsChoice({
onSelect,
value
}) {
- return (0,external_React_.createElement)(external_React_.Fragment, null, choices.map(item => {
- const isSelected = value === item.value;
- return (0,external_React_.createElement)(menu_item, {
- key: item.value,
- role: "menuitemradio",
- disabled: item.disabled,
- icon: isSelected ? library_check : null,
- info: item.info,
- isSelected: isSelected,
- shortcut: item.shortcut,
- className: "components-menu-items-choice",
- onClick: () => {
- if (!isSelected) {
- onSelect(item.value);
- }
- },
- onMouseEnter: () => onHover(item.value),
- onMouseLeave: () => onHover(null),
- "aria-label": item['aria-label']
- }, item.label);
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: choices.map(item => {
+ const isSelected = value === item.value;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(menu_item, {
+ role: "menuitemradio",
+ disabled: item.disabled,
+ icon: isSelected ? library_check : null,
+ info: item.info,
+ isSelected: isSelected,
+ shortcut: item.shortcut,
+ className: "components-menu-items-choice",
+ onClick: () => {
+ if (!isSelected) {
+ onSelect(item.value);
+ }
+ },
+ onMouseEnter: () => onHover(item.value),
+ onMouseLeave: () => onHover(null),
+ "aria-label": item['aria-label'],
+ children: item.label
+ }, item.value);
+ })
+ });
}
/* harmony default export */ const menu_items_choice = (MenuItemsChoice);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigable-container/tabbable.js
-
/**
* External dependencies
*/
@@ -61345,6 +61344,7 @@ function MenuItemsChoice({
* Internal dependencies
*/
+
function UnforwardedTabbableContainer({
eventToOffset,
...props
@@ -61374,7 +61374,7 @@ function UnforwardedTabbableContainer({
}
return undefined;
};
- return (0,external_React_.createElement)(container, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(container, {
ref: ref,
stopNavigationEvents: true,
onlyBrowserTabstops: true,
@@ -61478,10 +61478,10 @@ function navigation_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have t
-const NavigationUI = emotion_styled_base_browser_esm("div", true ? {
+const NavigationUI = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "eeiismy11"
} : 0)("width:100%;box-sizing:border-box;padding:0 ", space(4), ";overflow:hidden;" + ( true ? "" : 0));
-const MenuUI = emotion_styled_base_browser_esm("div", true ? {
+const MenuUI = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "eeiismy10"
} : 0)("margin-top:", space(6), ";margin-bottom:", space(6), ";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:", space(6), ";}.components-navigation__group+.components-navigation__group{margin-top:", space(6), ";}" + ( true ? "" : 0));
const MenuBackButtonUI = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_button, true ? {
@@ -61490,40 +61490,40 @@ const MenuBackButtonUI = /*#__PURE__*/emotion_styled_base_browser_esm(build_modu
name: "26l0q2",
styles: "&.is-tertiary{color:inherit;opacity:0.7;&:hover:not( :disabled ){opacity:1;box-shadow:none;color:inherit;}&:active:not( :disabled ){background:transparent;opacity:1;color:inherit;}}"
} : 0);
-const MenuTitleUI = emotion_styled_base_browser_esm("div", true ? {
+const MenuTitleUI = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "eeiismy8"
} : 0)( true ? {
name: "1aubja5",
styles: "overflow:hidden;width:100%"
} : 0);
-const MenuTitleSearchControlWrapper = emotion_styled_base_browser_esm("div", true ? {
+const MenuTitleSearchControlWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "eeiismy7"
} : 0)( true ? {
name: "rgorny",
styles: "margin:11px 0;padding:1px"
} : 0);
-const MenuTitleActionsUI = emotion_styled_base_browser_esm("span", true ? {
+const MenuTitleActionsUI = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "eeiismy6"
} : 0)("height:", space(6), ";.components-button.is-small{color:inherit;opacity:0.7;margin-right:", space(1), ";padding:0;&:active:not( :disabled ){background:none;opacity:1;color:inherit;}&:hover:not( :disabled ){box-shadow:none;opacity:1;color:inherit;}}" + ( true ? "" : 0));
const GroupTitleUI = /*#__PURE__*/emotion_styled_base_browser_esm(heading_component, true ? {
target: "eeiismy5"
} : 0)("min-height:", space(12), ";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:", space(2), ";padding:", () => (0,external_wp_i18n_namespaceObject.isRTL)() ? `${space(1)} ${space(4)} ${space(1)} ${space(2)}` : `${space(1)} ${space(2)} ${space(1)} ${space(4)}`, ";" + ( true ? "" : 0));
-const ItemBaseUI = emotion_styled_base_browser_esm("li", true ? {
+const ItemBaseUI = /*#__PURE__*/emotion_styled_base_browser_esm("li", true ? {
target: "eeiismy4"
} : 0)("border-radius:2px;color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:", space(2), " ", space(4), ";", rtl({
textAlign: 'left'
}, {
textAlign: 'right'
}), " &:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:inherit;opacity:1;}}&.is-active{background-color:", COLORS.theme.accent, ";color:", COLORS.white, ";>button,>a{color:", COLORS.white, ";opacity:1;}}>svg path{color:", COLORS.gray[600], ";}" + ( true ? "" : 0));
-const ItemUI = emotion_styled_base_browser_esm("div", true ? {
+const ItemUI = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "eeiismy3"
} : 0)("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:", space(1.5), " ", space(4), ";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;" + ( true ? "" : 0));
-const ItemIconUI = emotion_styled_base_browser_esm("span", true ? {
+const ItemIconUI = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "eeiismy2"
} : 0)("display:flex;margin-right:", space(2), ";" + ( true ? "" : 0));
-const ItemBadgeUI = emotion_styled_base_browser_esm("span", true ? {
+const ItemBadgeUI = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "eeiismy1"
-} : 0)("margin-left:", () => (0,external_wp_i18n_namespaceObject.isRTL)() ? '0' : space(2), ";margin-right:", () => (0,external_wp_i18n_namespaceObject.isRTL)() ? space(2) : '0', ";display:inline-flex;padding:", space(1), " ", space(3), ";border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}", reduceMotion('animation'), ";" + ( true ? "" : 0));
+} : 0)("margin-left:", () => (0,external_wp_i18n_namespaceObject.isRTL)() ? '0' : space(2), ";margin-right:", () => (0,external_wp_i18n_namespaceObject.isRTL)() ? space(2) : '0', ";display:inline-flex;padding:", space(1), " ", space(3), ";border-radius:2px;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}@media not ( prefers-reduced-motion ){animation:fade-in 250ms ease-out;}" + ( true ? "" : 0));
const ItemTitleUI = /*#__PURE__*/emotion_styled_base_browser_esm(text_component, true ? {
target: "eeiismy0"
} : 0)(() => (0,external_wp_i18n_namespaceObject.isRTL)() ? 'margin-left: auto;' : 'margin-right: auto;', " font-size:14px;line-height:20px;color:inherit;" + ( true ? "" : 0));
@@ -61655,7 +61655,6 @@ const useCreateNavigationTree = () => {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/index.js
-
/**
* External dependencies
*/
@@ -61675,11 +61674,14 @@ const useCreateNavigationTree = () => {
+
const navigation_noop = () => {};
/**
* Render a navigation list with optional groupings and hierarchy.
*
+ * @deprecated Use `Navigator` instead.
+ *
* ```jsx
* import {
* __experimentalNavigation as Navigation,
@@ -61758,54 +61760,57 @@ function Navigation({
setActiveMenu,
navigationTree
};
- const classes = classnames_default()('components-navigation', className);
+ const classes = dist_clsx('components-navigation', className);
const animateClassName = getAnimateClassName({
type: 'slide-in',
origin: slideOrigin
});
- return (0,external_React_.createElement)(NavigationUI, {
- className: classes
- }, (0,external_React_.createElement)("div", {
- key: menu,
- className: animateClassName ? classnames_default()({
- [animateClassName]: isMounted.current && slideOrigin
- }) : undefined
- }, (0,external_React_.createElement)(NavigationContext.Provider, {
- value: context
- }, children)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationUI, {
+ className: classes,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: animateClassName ? dist_clsx({
+ [animateClassName]: isMounted.current && slideOrigin
+ }) : undefined,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationContext.Provider, {
+ value: context,
+ children: children
+ })
+ }, menu)
+ });
}
/* harmony default export */ const navigation = (Navigation);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js
-
/**
* WordPress dependencies
*/
-const chevronRight = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
+ })
+});
/* harmony default export */ const chevron_right = (chevronRight);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js
-
/**
* WordPress dependencies
*/
-const chevronLeft = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
+ })
+});
/* harmony default export */ const chevron_left = (chevronLeft);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/back-button/index.js
-
/**
* External dependencies
*/
@@ -61822,6 +61827,8 @@ const chevronLeft = (0,external_React_.createElement)(external_wp_primitives_nam
*/
+
+
function UnforwardedNavigationBackButton({
backButtonLabel,
className,
@@ -61833,7 +61840,7 @@ function UnforwardedNavigationBackButton({
setActiveMenu,
navigationTree
} = useNavigationContext();
- const classes = classnames_default()('components-navigation__back-button', className);
+ const classes = dist_clsx('components-navigation__back-button', className);
const parentMenuTitle = parentMenu !== undefined ? navigationTree.getMenu(parentMenu)?.title : undefined;
const handleOnClick = event => {
if (typeof onClick === 'function') {
@@ -61845,16 +61852,21 @@ function UnforwardedNavigationBackButton({
}
};
const icon = (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_right : chevron_left;
- return (0,external_React_.createElement)(MenuBackButtonUI, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(MenuBackButtonUI, {
className: classes,
href: href,
variant: "tertiary",
ref: ref,
- onClick: handleOnClick
- }, (0,external_React_.createElement)(icons_build_module_icon, {
- icon: icon
- }), backButtonLabel || parentMenuTitle || (0,external_wp_i18n_namespaceObject.__)('Back'));
+ onClick: handleOnClick,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
+ icon: icon
+ }), backButtonLabel || parentMenuTitle || (0,external_wp_i18n_namespaceObject.__)('Back')]
+ });
}
+
+/**
+ * @deprecated Use `Navigator` instead.
+ */
const NavigationBackButton = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedNavigationBackButton);
/* harmony default export */ const back_button = (NavigationBackButton);
@@ -61874,7 +61886,6 @@ const NavigationGroupContext = (0,external_wp_element_namespaceObject.createCont
const useNavigationGroupContext = () => (0,external_wp_element_namespaceObject.useContext)(NavigationGroupContext);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/group/index.js
-
/**
* External dependencies
*/
@@ -61891,7 +61902,13 @@ const useNavigationGroupContext = () => (0,external_wp_element_namespaceObject.u
+
+
let uniqueId = 0;
+
+/**
+ * @deprecated Use `Navigator` instead.
+ */
function NavigationGroup({
children,
className,
@@ -61909,44 +61926,55 @@ function NavigationGroup({
// Keep the children rendered to make sure invisible items are included in the navigation tree.
if (!Object.values(items).some(item => item.group === groupId && item._isVisible)) {
- return (0,external_React_.createElement)(NavigationGroupContext.Provider, {
- value: context
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationGroupContext.Provider, {
+ value: context,
+ children: children
+ });
}
const groupTitleId = `components-navigation__group-title-${groupId}`;
- const classes = classnames_default()('components-navigation__group', className);
- return (0,external_React_.createElement)(NavigationGroupContext.Provider, {
- value: context
- }, (0,external_React_.createElement)("li", {
- className: classes
- }, title && (0,external_React_.createElement)(GroupTitleUI, {
- className: "components-navigation__group-title",
- id: groupTitleId,
- level: 3
- }, title), (0,external_React_.createElement)("ul", {
- "aria-labelledby": groupTitleId,
- role: "group"
- }, children)));
+ const classes = dist_clsx('components-navigation__group', className);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationGroupContext.Provider, {
+ value: context,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ className: classes,
+ children: [title && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GroupTitleUI, {
+ className: "components-navigation__group-title",
+ id: groupTitleId,
+ level: 3,
+ children: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ "aria-labelledby": groupTitleId,
+ role: "group",
+ children: children
+ })]
+ })
+ });
}
/* harmony default export */ const group = (NavigationGroup);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/item/base-content.js
-
/**
* Internal dependencies
*/
+
+
+
function NavigationItemBaseContent(props) {
const {
badge,
title
} = props;
- return (0,external_React_.createElement)(external_React_.Fragment, null, title && (0,external_React_.createElement)(ItemTitleUI, {
- className: "components-navigation__item-title",
- as: "span"
- }, title), badge && (0,external_React_.createElement)(ItemBadgeUI, {
- className: "components-navigation__item-badge"
- }, badge));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [title && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemTitleUI, {
+ className: "components-navigation__item-title",
+ as: "span",
+ children: title
+ }), badge && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemBadgeUI, {
+ className: "components-navigation__item-badge",
+ children: badge
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/menu/context.js
@@ -62021,7 +62049,6 @@ const useNavigationTreeItem = (itemId, props) => {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/item/base.js
-
/**
* External dependencies
*/
@@ -62038,6 +62065,7 @@ const useNavigationTreeItem = (itemId, props) => {
+
let base_uniqueId = 0;
function NavigationItemBase(props) {
// Also avoid to pass the `title` and `href` props to the ItemBaseUI styled component.
@@ -62056,15 +62084,15 @@ function NavigationItemBase(props) {
if (!navigationTree.getItem(itemId)?._isVisible) {
return null;
}
- const classes = classnames_default()('components-navigation__item', className);
- return (0,external_React_.createElement)(ItemBaseUI, {
+ const classes = dist_clsx('components-navigation__item', className);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemBaseUI, {
className: classes,
- ...restProps
- }, children);
+ ...restProps,
+ children: children
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/item/index.js
-
/**
* External dependencies
*/
@@ -62084,7 +62112,13 @@ function NavigationItemBase(props) {
+
+
const item_noop = () => {};
+
+/**
+ * @deprecated Use `Navigator` instead.
+ */
function NavigationItem(props) {
const {
badge,
@@ -62115,7 +62149,7 @@ function NavigationItem(props) {
return null;
}
const isActive = item && activeItem === item;
- const classes = classnames_default()(className, {
+ const classes = dist_clsx(className, {
'is-active': isActive
});
const onItemClick = event => {
@@ -62136,19 +62170,23 @@ function NavigationItem(props) {
'aria-current': isActive ? 'page' : undefined,
...restProps
};
- return (0,external_React_.createElement)(NavigationItemBase, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationItemBase, {
...baseProps,
- className: classes
- }, children || (0,external_React_.createElement)(ItemUI, {
- ...itemProps
- }, icon && (0,external_React_.createElement)(ItemIconUI, null, (0,external_React_.createElement)(icons_build_module_icon, {
- icon: icon
- })), (0,external_React_.createElement)(NavigationItemBaseContent, {
- title: title,
- badge: badge
- }), navigateToMenu && (0,external_React_.createElement)(icons_build_module_icon, {
- icon: navigationIcon
- })));
+ className: classes,
+ children: children || /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ItemUI, {
+ ...itemProps,
+ children: [icon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemIconUI, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
+ icon: icon
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationItemBaseContent, {
+ title: title,
+ badge: badge
+ }), navigateToMenu && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
+ icon: navigationIcon
+ })]
+ })
+ });
}
/* harmony default export */ const navigation_item = (NavigationItem);
@@ -62185,21 +62223,21 @@ const useNavigationTreeMenu = props => {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/search.js
-
/**
* WordPress dependencies
*/
-const search = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const search = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"
+ })
+});
/* harmony default export */ const library_search = (search);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-spoken-messages/index.js
-
/**
* WordPress dependencies
*/
@@ -62218,7 +62256,8 @@ const search = (0,external_React_.createElement)(external_wp_primitives_namespac
*
* @return {ComponentType} The wrapped component.
*/
-/* harmony default export */ const with_spoken_messages = ((0,external_wp_compose_namespaceObject.createHigherOrderComponent)(Component => props => (0,external_React_.createElement)(Component, {
+
+/* harmony default export */ const with_spoken_messages = ((0,external_wp_compose_namespaceObject.createHigherOrderComponent)(Component => props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
...props,
speak: external_wp_a11y_namespaceObject.speak,
debouncedSpeak: (0,external_wp_compose_namespaceObject.useDebounce)(external_wp_a11y_namespaceObject.speak, 500)
@@ -62241,7 +62280,7 @@ const inlinePadding = ({
}) => {
return space(size === 'compact' ? 1 : 2);
};
-const SuffixItemWrapper = emotion_styled_base_browser_esm("div", true ? {
+const SuffixItemWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "effl84m1"
} : 0)("display:flex;padding-inline-end:", inlinePadding, ";svg{fill:currentColor;}" + ( true ? "" : 0));
const StyledInputControl = /*#__PURE__*/emotion_styled_base_browser_esm(input_control, true ? {
@@ -62249,7 +62288,6 @@ const StyledInputControl = /*#__PURE__*/emotion_styled_base_browser_esm(input_co
} : 0)("input[type='search']{&::-webkit-search-decoration,&::-webkit-search-cancel-button,&::-webkit-search-results-button,&::-webkit-search-results-decoration{-webkit-appearance:none;}}&:not( :focus-within ){--wp-components-color-background:", COLORS.theme.gray[100], ";}" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/search-control/index.js
-
/**
* External dependencies
*/
@@ -62269,6 +62307,7 @@ const StyledInputControl = /*#__PURE__*/emotion_styled_base_browser_esm(input_co
+
function SuffixItem({
searchRef,
value,
@@ -62276,7 +62315,7 @@ function SuffixItem({
onClose
}) {
if (!onClose && !value) {
- return (0,external_React_.createElement)(icons_build_module_icon, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
icon: library_search
});
}
@@ -62284,7 +62323,7 @@ function SuffixItem({
onChange('');
searchRef.current?.focus();
};
- return (0,external_React_.createElement)(build_module_button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
size: "small",
icon: close_small,
label: onClose ? (0,external_wp_i18n_namespaceObject.__)('Close search') : (0,external_wp_i18n_namespaceObject.__)('Reset search'),
@@ -62322,31 +62361,33 @@ function UnforwardedSearchControl({
isBorderless: true
}
}), [__nextHasNoMarginBottom]);
- return (0,external_React_.createElement)(ContextSystemProvider, {
- value: contextValue
- }, (0,external_React_.createElement)(StyledInputControl, {
- __next40pxDefaultSize: true,
- id: instanceId,
- hideLabelFromVision: hideLabelFromVision,
- label: label,
- ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([searchRef, forwardedRef]),
- type: "search",
- size: size,
- className: classnames_default()('components-search-control', className),
- onChange: nextValue => onChange(nextValue !== null && nextValue !== void 0 ? nextValue : ''),
- autoComplete: "off",
- placeholder: placeholder,
- value: value !== null && value !== void 0 ? value : '',
- suffix: (0,external_React_.createElement)(SuffixItemWrapper, {
- size: size
- }, (0,external_React_.createElement)(SuffixItem, {
- searchRef: searchRef,
- value: value,
- onChange: onChange,
- onClose: onClose
- })),
- ...restProps
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ContextSystemProvider, {
+ value: contextValue,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledInputControl, {
+ __next40pxDefaultSize: true,
+ id: instanceId,
+ hideLabelFromVision: hideLabelFromVision,
+ label: label,
+ ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([searchRef, forwardedRef]),
+ type: "search",
+ size: size,
+ className: dist_clsx('components-search-control', className),
+ onChange: nextValue => onChange(nextValue !== null && nextValue !== void 0 ? nextValue : ''),
+ autoComplete: "off",
+ placeholder: placeholder,
+ value: value !== null && value !== void 0 ? value : '',
+ suffix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SuffixItemWrapper, {
+ size: size,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SuffixItem, {
+ searchRef: searchRef,
+ value: value,
+ onChange: onChange,
+ onClose: onClose
+ })
+ }),
+ ...restProps
+ })
+ });
}
/**
@@ -62373,7 +62414,6 @@ const SearchControl = (0,external_wp_element_namespaceObject.forwardRef)(Unforwa
/* harmony default export */ const search_control = (SearchControl);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/menu/menu-title-search.js
-
/**
* WordPress dependencies
*/
@@ -62389,6 +62429,7 @@ const SearchControl = (0,external_wp_element_namespaceObject.forwardRef)(Unforwa
+
function MenuTitleSearch({
debouncedSpeak,
onCloseSearch,
@@ -62440,22 +62481,23 @@ function MenuTitleSearch({
const inputId = `components-navigation__menu-title-search-${menu}`;
const placeholder = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: placeholder for menu search box. %s: menu title */
(0,external_wp_i18n_namespaceObject.__)('Search %s'), title?.toLowerCase()).trim();
- return (0,external_React_.createElement)(MenuTitleSearchControlWrapper, null, (0,external_React_.createElement)(search_control, {
- __nextHasNoMarginBottom: true,
- className: "components-navigation__menu-search-input",
- id: inputId,
- onChange: value => onSearch?.(value),
- onKeyDown: onKeyDown,
- placeholder: placeholder,
- onClose: onClose,
- ref: inputRef,
- value: search
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuTitleSearchControlWrapper, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(search_control, {
+ __nextHasNoMarginBottom: true,
+ className: "components-navigation__menu-search-input",
+ id: inputId,
+ onChange: value => onSearch?.(value),
+ onKeyDown: onKeyDown,
+ placeholder: placeholder,
+ onClose: onClose,
+ ref: inputRef,
+ value: search
+ })
+ });
}
/* harmony default export */ const menu_title_search = (with_spoken_messages(MenuTitleSearch));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/menu/menu-title.js
-
/**
* WordPress dependencies
*/
@@ -62472,6 +62514,8 @@ function MenuTitleSearch({
+
+
function NavigationMenuTitle({
hasSearch,
onSearch,
@@ -62499,37 +62543,43 @@ function NavigationMenuTitle({
const menuTitleId = `components-navigation__menu-title-${menu}`;
/* translators: search button label for menu search box. %s: menu title */
const searchButtonLabel = (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Search in %s'), title);
- return (0,external_React_.createElement)(MenuTitleUI, {
- className: "components-navigation__menu-title"
- }, !isSearching && (0,external_React_.createElement)(GroupTitleUI, {
- as: "h2",
- className: "components-navigation__menu-title-heading",
- level: 3
- }, (0,external_React_.createElement)("span", {
- id: menuTitleId
- }, title), (hasSearch || titleAction) && (0,external_React_.createElement)(MenuTitleActionsUI, null, titleAction, hasSearch && (0,external_React_.createElement)(build_module_button, {
- size: "small",
- variant: "tertiary",
- label: searchButtonLabel,
- onClick: () => setIsSearching(true),
- ref: searchButtonRef
- }, (0,external_React_.createElement)(icons_build_module_icon, {
- icon: library_search
- })))), isSearching && (0,external_React_.createElement)("div", {
- className: getAnimateClassName({
- type: 'slide-in',
- origin: 'left'
- })
- }, (0,external_React_.createElement)(menu_title_search, {
- onCloseSearch: onCloseSearch,
- onSearch: onSearch,
- search: search,
- title: title
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(MenuTitleUI, {
+ className: "components-navigation__menu-title",
+ children: [!isSearching && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(GroupTitleUI, {
+ as: "h2",
+ className: "components-navigation__menu-title-heading",
+ level: 3,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ id: menuTitleId,
+ children: title
+ }), (hasSearch || titleAction) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(MenuTitleActionsUI, {
+ children: [titleAction, hasSearch && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ size: "small",
+ variant: "tertiary",
+ label: searchButtonLabel,
+ onClick: () => setIsSearching(true),
+ ref: searchButtonRef,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
+ icon: library_search
+ })
+ })]
+ })]
+ }), isSearching && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: getAnimateClassName({
+ type: 'slide-in',
+ origin: 'left'
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(menu_title_search, {
+ onCloseSearch: onCloseSearch,
+ onSearch: onSearch,
+ search: search,
+ title: title
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/menu/search-no-results-found.js
-
/**
* WordPress dependencies
*/
@@ -62540,6 +62590,8 @@ function NavigationMenuTitle({
*/
+
+
function NavigationSearchNoResultsFound({
search
}) {
@@ -62552,11 +62604,14 @@ function NavigationSearchNoResultsFound({
if (!search || !!resultsCount) {
return null;
}
- return (0,external_React_.createElement)(ItemBaseUI, null, (0,external_React_.createElement)(ItemUI, null, (0,external_wp_i18n_namespaceObject.__)('No results found.'), " "));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemBaseUI, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ItemUI, {
+ children: [(0,external_wp_i18n_namespaceObject.__)('No results found.'), " "]
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/menu/index.js
-
/**
* External dependencies
*/
@@ -62579,6 +62634,11 @@ function NavigationSearchNoResultsFound({
+
+
+/**
+ * @deprecated Use `Navigator` instead.
+ */
function NavigationMenu(props) {
const {
backButtonLabel,
@@ -62606,34 +62666,40 @@ function NavigationMenu(props) {
// Keep the children rendered to make sure invisible items are included in the navigation tree.
if (activeMenu !== menu) {
- return (0,external_React_.createElement)(NavigationMenuContext.Provider, {
- value: context
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationMenuContext.Provider, {
+ value: context,
+ children: children
+ });
}
const isControlledSearch = !!setControlledSearch;
const search = isControlledSearch ? controlledSearch : uncontrolledSearch;
const onSearch = isControlledSearch ? setControlledSearch : setUncontrolledSearch;
const menuTitleId = `components-navigation__menu-title-${menu}`;
- const classes = classnames_default()('components-navigation__menu', className);
- return (0,external_React_.createElement)(NavigationMenuContext.Provider, {
- value: context
- }, (0,external_React_.createElement)(MenuUI, {
- className: classes
- }, (parentMenu || onBackButtonClick) && (0,external_React_.createElement)(back_button, {
- backButtonLabel: backButtonLabel,
- parentMenu: parentMenu,
- onClick: onBackButtonClick
- }), title && (0,external_React_.createElement)(NavigationMenuTitle, {
- hasSearch: hasSearch,
- onSearch: onSearch,
- search: search,
- title: title,
- titleAction: titleAction
- }), (0,external_React_.createElement)(navigable_container_menu, null, (0,external_React_.createElement)("ul", {
- "aria-labelledby": menuTitleId
- }, children, search && !isSearchDebouncing && (0,external_React_.createElement)(NavigationSearchNoResultsFound, {
- search: search
- })))));
+ const classes = dist_clsx('components-navigation__menu', className);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationMenuContext.Provider, {
+ value: context,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(MenuUI, {
+ className: classes,
+ children: [(parentMenu || onBackButtonClick) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(back_button, {
+ backButtonLabel: backButtonLabel,
+ parentMenu: parentMenu,
+ onClick: onBackButtonClick
+ }), title && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationMenuTitle, {
+ hasSearch: hasSearch,
+ onSearch: onSearch,
+ search: search,
+ title: title,
+ titleAction: titleAction
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(navigable_container_menu, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("ul", {
+ "aria-labelledby": menuTitleId,
+ children: [children, search && !isSearchDebouncing && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationSearchNoResultsFound, {
+ search: search
+ })]
+ })
+ })]
+ })
+ });
}
/* harmony default export */ const navigation_menu = (NavigationMenu);
@@ -63149,7 +63215,6 @@ const navigatorScreenAnimation = ({
const navigatorScreen = props => /*#__PURE__*/emotion_react_browser_esm_css("overflow-x:auto;max-height:100%;", navigatorScreenAnimation(props), ";" + ( true ? "" : 0), true ? "" : 0);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigator/navigator-provider/component.js
-
/**
* External dependencies
*/
@@ -63170,15 +63235,133 @@ const navigatorScreen = props => /*#__PURE__*/emotion_react_browser_esm_css("ove
+
const MAX_HISTORY_LENGTH = 50;
-function screensReducer(state = [], action) {
+function addScreen({
+ screens
+}, screen) {
+ return [...screens, screen];
+}
+function removeScreen({
+ screens
+}, screen) {
+ return screens.filter(s => s.id !== screen.id);
+}
+function goBack({
+ locationHistory
+}) {
+ if (locationHistory.length <= 1) {
+ return locationHistory;
+ }
+ return [...locationHistory.slice(0, -2), {
+ ...locationHistory[locationHistory.length - 2],
+ isBack: true,
+ hasRestoredFocus: false
+ }];
+}
+function goTo(state, path, options = {}) {
+ const {
+ locationHistory
+ } = state;
+ const {
+ focusTargetSelector,
+ isBack = false,
+ skipFocus = false,
+ replace = false,
+ ...restOptions
+ } = options;
+ const isNavigatingToSamePath = locationHistory.length > 0 && locationHistory[locationHistory.length - 1].path === path;
+ if (isNavigatingToSamePath) {
+ return locationHistory;
+ }
+ const isNavigatingToPreviousPath = isBack && locationHistory.length > 1 && locationHistory[locationHistory.length - 2].path === path;
+ if (isNavigatingToPreviousPath) {
+ return goBack(state);
+ }
+ const newLocation = {
+ ...restOptions,
+ path,
+ isBack,
+ hasRestoredFocus: false,
+ skipFocus
+ };
+ if (locationHistory.length === 0) {
+ return replace ? [] : [newLocation];
+ }
+ const newLocationHistory = locationHistory.slice(locationHistory.length > MAX_HISTORY_LENGTH - 1 ? 1 : 0, -1);
+ if (!replace) {
+ newLocationHistory.push(
+ // Assign `focusTargetSelector` to the previous location in history
+ // (the one we just navigated from).
+ {
+ ...locationHistory[locationHistory.length - 1],
+ focusTargetSelector
+ });
+ }
+ newLocationHistory.push(newLocation);
+ return newLocationHistory;
+}
+function goToParent(state, options = {}) {
+ const {
+ locationHistory,
+ screens
+ } = state;
+ const currentPath = locationHistory[locationHistory.length - 1].path;
+ if (currentPath === undefined) {
+ return locationHistory;
+ }
+ const parentPath = findParent(currentPath, screens);
+ if (parentPath === undefined) {
+ return locationHistory;
+ }
+ return goTo(state, parentPath, {
+ ...options,
+ isBack: true
+ });
+}
+function routerReducer(state, action) {
+ let {
+ screens,
+ locationHistory,
+ matchedPath
+ } = state;
switch (action.type) {
case 'add':
- return [...state, action.screen];
+ screens = addScreen(state, action.screen);
+ break;
case 'remove':
- return state.filter(s => s.id !== action.screen.id);
+ screens = removeScreen(state, action.screen);
+ break;
+ case 'goback':
+ locationHistory = goBack(state);
+ break;
+ case 'goto':
+ locationHistory = goTo(state, action.path, action.options);
+ break;
+ case 'gotoparent':
+ locationHistory = goToParent(state, action.options);
+ break;
}
- return state;
+
+ // Return early in case there is no change
+ if (screens === state.screens && locationHistory === state.locationHistory) {
+ return state;
+ }
+
+ // Compute the matchedPath
+ const currentPath = locationHistory.length > 0 ? locationHistory[locationHistory.length - 1].path : undefined;
+ matchedPath = currentPath !== undefined ? patternMatch(currentPath, screens) : undefined;
+
+ // If the new match is the same as the previous match,
+ // return the previous one to keep immutability.
+ if (matchedPath && state.matchedPath && matchedPath.id === state.matchedPath.id && external_wp_isShallowEqual_default()(matchedPath.params, state.matchedPath.params)) {
+ matchedPath = state.matchedPath;
+ }
+ return {
+ screens,
+ locationHistory,
+ matchedPath
+ };
}
function UnconnectedNavigatorProvider(props, forwardedRef) {
const {
@@ -63187,133 +63370,64 @@ function UnconnectedNavigatorProvider(props, forwardedRef) {
className,
...otherProps
} = useContextSystem(props, 'NavigatorProvider');
- const [locationHistory, setLocationHistory] = (0,external_wp_element_namespaceObject.useState)([{
- path: initialPath
- }]);
- const currentLocationHistory = (0,external_wp_element_namespaceObject.useRef)([]);
- const [screens, dispatch] = (0,external_wp_element_namespaceObject.useReducer)(screensReducer, []);
- const currentScreens = (0,external_wp_element_namespaceObject.useRef)([]);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- currentScreens.current = screens;
- }, [screens]);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- currentLocationHistory.current = locationHistory;
- }, [locationHistory]);
- const currentMatch = (0,external_wp_element_namespaceObject.useRef)();
- const matchedPath = (0,external_wp_element_namespaceObject.useMemo)(() => {
- let currentPath;
- if (locationHistory.length === 0 || (currentPath = locationHistory[locationHistory.length - 1].path) === undefined) {
- currentMatch.current = undefined;
- return undefined;
- }
- const resolvePath = path => {
- const newMatch = patternMatch(path, screens);
+ const [routerState, dispatch] = (0,external_wp_element_namespaceObject.useReducer)(routerReducer, initialPath, path => ({
+ screens: [],
+ locationHistory: [{
+ path
+ }],
+ matchedPath: undefined
+ }));
- // If the new match is the same as the current match,
- // return the previous one for performance reasons.
- if (currentMatch.current && newMatch && external_wp_isShallowEqual_default()(newMatch.params, currentMatch.current.params) && newMatch.id === currentMatch.current.id) {
- return currentMatch.current;
- }
- return newMatch;
- };
- const newMatch = resolvePath(currentPath);
- currentMatch.current = newMatch;
- return newMatch;
- }, [screens, locationHistory]);
- const addScreen = (0,external_wp_element_namespaceObject.useCallback)(screen => dispatch({
- type: 'add',
- screen
- }), []);
- const removeScreen = (0,external_wp_element_namespaceObject.useCallback)(screen => dispatch({
- type: 'remove',
- screen
+ // The methods are constant forever, create stable references to them.
+ const methods = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ goBack: () => dispatch({
+ type: 'goback'
+ }),
+ goTo: (path, options) => dispatch({
+ type: 'goto',
+ path,
+ options
+ }),
+ goToParent: options => dispatch({
+ type: 'gotoparent',
+ options
+ }),
+ addScreen: screen => dispatch({
+ type: 'add',
+ screen
+ }),
+ removeScreen: screen => dispatch({
+ type: 'remove',
+ screen
+ })
}), []);
- const goBack = (0,external_wp_element_namespaceObject.useCallback)(() => {
- setLocationHistory(prevLocationHistory => {
- if (prevLocationHistory.length <= 1) {
- return prevLocationHistory;
- }
- return [...prevLocationHistory.slice(0, -2), {
- ...prevLocationHistory[prevLocationHistory.length - 2],
- isBack: true,
- hasRestoredFocus: false
- }];
- });
- }, []);
- const goTo = (0,external_wp_element_namespaceObject.useCallback)((path, options = {}) => {
- const {
- focusTargetSelector,
- isBack = false,
- skipFocus = false,
- replace = false,
- ...restOptions
- } = options;
- const isNavigatingToPreviousPath = isBack && currentLocationHistory.current.length > 1 && currentLocationHistory.current[currentLocationHistory.current.length - 2].path === path;
- if (isNavigatingToPreviousPath) {
- goBack();
- return;
- }
- setLocationHistory(prevLocationHistory => {
- const newLocation = {
- ...restOptions,
- path,
- isBack,
- hasRestoredFocus: false,
- skipFocus
- };
- if (prevLocationHistory.length === 0) {
- return replace ? [] : [newLocation];
- }
- const newLocationHistory = prevLocationHistory.slice(prevLocationHistory.length > MAX_HISTORY_LENGTH - 1 ? 1 : 0, -1);
- if (!replace) {
- newLocationHistory.push(
- // Assign `focusTargetSelector` to the previous location in history
- // (the one we just navigated from).
- {
- ...prevLocationHistory[prevLocationHistory.length - 1],
- focusTargetSelector
- });
- }
- newLocationHistory.push(newLocation);
- return newLocationHistory;
- });
- }, [goBack]);
- const goToParent = (0,external_wp_element_namespaceObject.useCallback)((options = {}) => {
- const currentPath = currentLocationHistory.current[currentLocationHistory.current.length - 1].path;
- if (currentPath === undefined) {
- return;
- }
- const parentPath = findParent(currentPath, currentScreens.current);
- if (parentPath === undefined) {
- return;
- }
- goTo(parentPath, {
- ...options,
- isBack: true
- });
- }, [goTo]);
- const navigatorContextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
- location: {
- ...locationHistory[locationHistory.length - 1],
- isInitial: locationHistory.length === 1
- },
- params: matchedPath ? matchedPath.params : {},
- match: matchedPath ? matchedPath.id : undefined,
- goTo,
- goBack,
- goToParent,
- addScreen,
- removeScreen
- }), [locationHistory, matchedPath, goTo, goBack, goToParent, addScreen, removeScreen]);
+ const {
+ locationHistory,
+ matchedPath
+ } = routerState;
+ const navigatorContextValue = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ var _matchedPath$params;
+ return {
+ location: {
+ ...locationHistory[locationHistory.length - 1],
+ isInitial: locationHistory.length === 1
+ },
+ params: (_matchedPath$params = matchedPath?.params) !== null && _matchedPath$params !== void 0 ? _matchedPath$params : {},
+ match: matchedPath?.id,
+ ...methods
+ };
+ }, [locationHistory, matchedPath, methods]);
const cx = useCx();
const classes = (0,external_wp_element_namespaceObject.useMemo)(() => cx(navigatorProviderWrapper, className), [className, cx]);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
ref: forwardedRef,
className: classes,
- ...otherProps
- }, (0,external_React_.createElement)(NavigatorContext.Provider, {
- value: navigatorContextValue
- }, children));
+ ...otherProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigatorContext.Provider, {
+ value: navigatorContextValue,
+ children: children
+ })
+ });
}
/**
@@ -63355,7 +63469,6 @@ const NavigatorProvider = contextConnect(UnconnectedNavigatorProvider, 'Navigato
;// CONCATENATED MODULE: external ["wp","escapeHtml"]
const external_wp_escapeHtml_namespaceObject = window["wp"]["escapeHtml"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigator/navigator-screen/component.js
-
/**
* External dependencies
*/
@@ -63378,6 +63491,7 @@ const external_wp_escapeHtml_namespaceObject = window["wp"]["escapeHtml"];
+
function UnconnectedNavigatorScreen(props, forwardedRef) {
const screenId = (0,external_wp_element_namespaceObject.useId)();
const {
@@ -63441,25 +63555,26 @@ function UnconnectedNavigatorScreen(props, forwardedRef) {
// When navigating back, if a selector is provided, use it to look for the
// target element (assumed to be a node inside the current NavigatorScreen)
- if (location.isBack && location?.focusTargetSelector) {
+ if (location.isBack && location.focusTargetSelector) {
elementToFocus = wrapperRef.current.querySelector(location.focusTargetSelector);
}
// If the previous query didn't run or find any element to focus, fallback
// to the first tabbable element in the screen (or the screen itself).
if (!elementToFocus) {
- const firstTabbable = external_wp_dom_namespaceObject.focus.tabbable.find(wrapperRef.current)[0];
+ const [firstTabbable] = external_wp_dom_namespaceObject.focus.tabbable.find(wrapperRef.current);
elementToFocus = firstTabbable !== null && firstTabbable !== void 0 ? firstTabbable : wrapperRef.current;
}
locationRef.current.hasRestoredFocus = true;
elementToFocus.focus();
}, [isInitialLocation, isMatch, location.isBack, location.focusTargetSelector, location.skipFocus]);
const mergedWrapperRef = (0,external_wp_compose_namespaceObject.useMergeRefs)([forwardedRef, wrapperRef]);
- return isMatch ? (0,external_React_.createElement)(component, {
+ return isMatch ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
ref: mergedWrapperRef,
className: classes,
- ...otherProps
- }, children) : null;
+ ...otherProps,
+ children: children
+ }) : null;
}
/**
@@ -63573,7 +63688,6 @@ function useNavigatorButton(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigator/navigator-button/component.js
-
/**
* External dependencies
*/
@@ -63585,9 +63699,10 @@ function useNavigatorButton(props) {
+
function UnconnectedNavigatorButton(props, forwardedRef) {
const navigatorButtonProps = useNavigatorButton(props);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
ref: forwardedRef,
...navigatorButtonProps
});
@@ -63670,7 +63785,6 @@ function useNavigatorBackButton(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigator/navigator-back-button/component.js
-
/**
* External dependencies
*/
@@ -63682,9 +63796,10 @@ function useNavigatorBackButton(props) {
+
function UnconnectedNavigatorBackButton(props, forwardedRef) {
const navigatorBackButtonProps = useNavigatorBackButton(props);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
ref: forwardedRef,
...navigatorBackButtonProps
});
@@ -63728,7 +63843,6 @@ const NavigatorBackButton = contextConnect(UnconnectedNavigatorBackButton, 'Navi
/* harmony default export */ const navigator_back_button_component = (NavigatorBackButton);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigator/navigator-to-parent-button/component.js
-
/**
* External dependencies
*/
@@ -63740,12 +63854,13 @@ const NavigatorBackButton = contextConnect(UnconnectedNavigatorBackButton, 'Navi
+
function UnconnectedNavigatorToParentButton(props, forwardedRef) {
const navigatorToParentButtonProps = useNavigatorBackButton({
...props,
goToParent: true
});
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
ref: forwardedRef,
...navigatorToParentButtonProps
});
@@ -63789,7 +63904,6 @@ const NavigatorToParentButton = contextConnect(UnconnectedNavigatorToParentButto
/* harmony default export */ const navigator_to_parent_button_component = (NavigatorToParentButton);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/notice/index.js
-
/**
* External dependencies
*/
@@ -63808,6 +63922,8 @@ const NavigatorToParentButton = contextConnect(UnconnectedNavigatorToParentButto
*/
+
+
const notice_noop = () => {};
/**
@@ -63874,56 +63990,62 @@ function Notice({
onDismiss = notice_noop
}) {
useSpokenMessage(spokenMessage, politeness);
- const classes = classnames_default()(className, 'components-notice', 'is-' + status, {
+ const classes = dist_clsx(className, 'components-notice', 'is-' + status, {
'is-dismissible': isDismissible
});
if (__unstableHTML && typeof children === 'string') {
- children = (0,external_React_.createElement)(external_wp_element_namespaceObject.RawHTML, null, children);
+ children = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
+ children: children
+ });
}
const onDismissNotice = () => {
onDismiss();
onRemove();
};
- return (0,external_React_.createElement)("div", {
- className: classes
- }, (0,external_React_.createElement)(visually_hidden_component, null, getStatusLabel(status)), (0,external_React_.createElement)("div", {
- className: "components-notice__content"
- }, children, (0,external_React_.createElement)("div", {
- className: "components-notice__actions"
- }, actions.map(({
- className: buttonCustomClasses,
- label,
- isPrimary,
- variant,
- noDefaultClasses = false,
- onClick,
- url
- }, index) => {
- let computedVariant = variant;
- if (variant !== 'primary' && !noDefaultClasses) {
- computedVariant = !url ? 'secondary' : 'link';
- }
- if (typeof computedVariant === 'undefined' && isPrimary) {
- computedVariant = 'primary';
- }
- return (0,external_React_.createElement)(build_module_button, {
- key: index,
- href: url,
- variant: computedVariant,
- onClick: url ? undefined : onClick,
- className: classnames_default()('components-notice__action', buttonCustomClasses)
- }, label);
- }))), isDismissible && (0,external_React_.createElement)(build_module_button, {
- className: "components-notice__dismiss",
- icon: library_close,
- label: (0,external_wp_i18n_namespaceObject.__)('Close'),
- onClick: onDismissNotice
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: classes,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
+ children: getStatusLabel(status)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "components-notice__content",
+ children: [children, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "components-notice__actions",
+ children: actions.map(({
+ className: buttonCustomClasses,
+ label,
+ isPrimary,
+ variant,
+ noDefaultClasses = false,
+ onClick,
+ url
+ }, index) => {
+ let computedVariant = variant;
+ if (variant !== 'primary' && !noDefaultClasses) {
+ computedVariant = !url ? 'secondary' : 'link';
+ }
+ if (typeof computedVariant === 'undefined' && isPrimary) {
+ computedVariant = 'primary';
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ href: url,
+ variant: computedVariant,
+ onClick: url ? undefined : onClick,
+ className: dist_clsx('components-notice__action', buttonCustomClasses),
+ children: label
+ }, index);
+ })
+ })]
+ }), isDismissible && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ className: "components-notice__dismiss",
+ icon: library_close,
+ label: (0,external_wp_i18n_namespaceObject.__)('Close'),
+ onClick: onDismissNotice
+ })]
+ });
}
/* harmony default export */ const build_module_notice = (Notice);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/notice/list.js
-
/**
* External dependencies
*/
@@ -63933,6 +64055,8 @@ function Notice({
* Internal dependencies
*/
+
+
const list_noop = () => {};
/**
@@ -63968,25 +64092,27 @@ function NoticeList({
children
}) {
const removeNotice = id => () => onRemove(id);
- className = classnames_default()('components-notice-list', className);
- return (0,external_React_.createElement)("div", {
- className: className
- }, children, [...notices].reverse().map(notice => {
- const {
- content,
- ...restNotice
- } = notice;
- return (0,external_React_.createElement)(build_module_notice, {
- ...restNotice,
- key: notice.id,
- onRemove: removeNotice(notice.id)
- }, notice.content);
- }));
+ className = dist_clsx('components-notice-list', className);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: className,
+ children: [children, [...notices].reverse().map(notice => {
+ const {
+ content,
+ ...restNotice
+ } = notice;
+ return /*#__PURE__*/(0,external_React_.createElement)(build_module_notice, {
+ ...restNotice,
+ key: notice.id,
+ onRemove: removeNotice(notice.id)
+ }, notice.content);
+ })]
+ });
}
/* harmony default export */ const list = (NoticeList);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/panel/header.js
+
/**
* Internal dependencies
*/
@@ -64000,14 +64126,16 @@ function PanelHeader({
label,
children
}) {
- return (0,external_React_.createElement)("div", {
- className: "components-panel__header"
- }, label && (0,external_React_.createElement)("h2", null, label), children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "components-panel__header",
+ children: [label && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ children: label
+ }), children]
+ });
}
/* harmony default export */ const panel_header = (PanelHeader);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/panel/index.js
-
/**
* External dependencies
*/
@@ -64022,18 +64150,21 @@ function PanelHeader({
* Internal dependencies
*/
+
+
function UnforwardedPanel({
header,
className,
children
}, ref) {
- const classNames = classnames_default()(className, 'components-panel');
- return (0,external_React_.createElement)("div", {
+ const classNames = dist_clsx(className, 'components-panel');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: classNames,
- ref: ref
- }, header && (0,external_React_.createElement)(panel_header, {
- label: header
- }), children);
+ ref: ref,
+ children: [header && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(panel_header, {
+ label: header
+ }), children]
+ });
}
/**
@@ -64056,21 +64187,21 @@ const Panel = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedPane
/* harmony default export */ const panel = (Panel);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-up.js
-
/**
* WordPress dependencies
*/
-const chevronUp = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronUp = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"
+ })
+});
/* harmony default export */ const chevron_up = (chevronUp);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/panel/body.js
-
/**
* External dependencies
*/
@@ -64090,6 +64221,8 @@ const chevronUp = (0,external_React_.createElement)(external_wp_primitives_names
+
+
const body_noop = () => {};
function UnforwardedPanelBody(props, ref) {
const {
@@ -64137,21 +64270,22 @@ function UnforwardedPanelBody(props, ref) {
});
}
}, [isOpened, scrollBehavior]);
- const classes = classnames_default()('components-panel__body', className, {
+ const classes = dist_clsx('components-panel__body', className, {
'is-opened': isOpened
});
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: classes,
- ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([nodeRef, ref])
- }, (0,external_React_.createElement)(PanelBodyTitle, {
- icon: icon,
- isOpened: Boolean(isOpened),
- onClick: handleOnToggle,
- title: title,
- ...buttonProps
- }), typeof children === 'function' ? children({
- opened: Boolean(isOpened)
- }) : isOpened && children);
+ ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([nodeRef, ref]),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PanelBodyTitle, {
+ icon: icon,
+ isOpened: Boolean(isOpened),
+ onClick: handleOnToggle,
+ title: title,
+ ...buttonProps
+ }), typeof children === 'function' ? children({
+ opened: Boolean(isOpened)
+ }) : isOpened && children]
+ });
}
const PanelBodyTitle = (0,external_wp_element_namespaceObject.forwardRef)(({
isOpened,
@@ -64159,30 +64293,34 @@ const PanelBodyTitle = (0,external_wp_element_namespaceObject.forwardRef)(({
title,
...props
}, ref) => {
- if (!title) return null;
- return (0,external_React_.createElement)("h2", {
- className: "components-panel__body-title"
- }, (0,external_React_.createElement)(build_module_button, {
- className: "components-panel__body-toggle",
- "aria-expanded": isOpened,
- ref: ref,
- ...props
- }, (0,external_React_.createElement)("span", {
- "aria-hidden": "true"
- }, (0,external_React_.createElement)(build_module_icon, {
- className: "components-panel__arrow",
- icon: isOpened ? chevron_up : chevron_down
- })), title, icon && (0,external_React_.createElement)(build_module_icon, {
- icon: icon,
- className: "components-panel__icon",
- size: 20
- })));
+ if (!title) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ className: "components-panel__body-title",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(build_module_button, {
+ className: "components-panel__body-toggle",
+ "aria-expanded": isOpened,
+ ref: ref,
+ ...props,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-hidden": "true",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ className: "components-panel__arrow",
+ icon: isOpened ? chevron_up : chevron_down
+ })
+ }), title, icon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: icon,
+ className: "components-panel__icon",
+ size: 20
+ })]
+ })
+ });
});
const PanelBody = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedPanelBody);
/* harmony default export */ const body = (PanelBody);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/panel/row.js
-
/**
* External dependencies
*/
@@ -64192,14 +64330,20 @@ const PanelBody = (0,external_wp_element_namespaceObject.forwardRef)(Unforwarded
* WordPress dependencies
*/
+
+/**
+ * Internal dependencies
+ */
+
function UnforwardedPanelRow({
className,
children
}, ref) {
- return (0,external_React_.createElement)("div", {
- className: classnames_default()('components-panel__row', className),
- ref: ref
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('components-panel__row', className),
+ ref: ref,
+ children: children
+ });
}
/**
@@ -64210,7 +64354,6 @@ const PanelRow = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedP
/* harmony default export */ const row = (PanelRow);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/placeholder/index.js
-
/**
* External dependencies
*/
@@ -64228,16 +64371,19 @@ const PanelRow = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedP
* Internal dependencies
*/
-const PlaceholderIllustration = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const PlaceholderIllustration = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
className: "components-placeholder__illustration",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 60 60",
- preserveAspectRatio: "none"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- vectorEffect: "non-scaling-stroke",
- d: "M60 60 0 0"
-}));
+ preserveAspectRatio: "none",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ vectorEffect: "non-scaling-stroke",
+ d: "M60 60 0 0"
+ })
+});
/**
* Renders a placeholder. Normally used by blocks to render their empty state.
@@ -64276,8 +64422,8 @@ function Placeholder(props) {
'is-small': width < 160
};
}
- const classes = classnames_default()('components-placeholder', className, modifierClassNames, withIllustration ? 'has-illustration' : null);
- const fieldsetClasses = classnames_default()('components-placeholder__fieldset', {
+ const classes = dist_clsx('components-placeholder', className, modifierClassNames, withIllustration ? 'has-illustration' : null);
+ const fieldsetClasses = dist_clsx('components-placeholder__fieldset', {
'is-column-layout': isColumnLayout
});
(0,external_wp_element_namespaceObject.useEffect)(() => {
@@ -64285,23 +64431,136 @@ function Placeholder(props) {
(0,external_wp_a11y_namespaceObject.speak)(instructions);
}
}, [instructions]);
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
...additionalProps,
- className: classes
- }, withIllustration ? PlaceholderIllustration : null, resizeListener, notices, preview && (0,external_React_.createElement)("div", {
- className: "components-placeholder__preview"
- }, preview), (0,external_React_.createElement)("div", {
- className: "components-placeholder__label"
- }, (0,external_React_.createElement)(build_module_icon, {
- icon: icon
- }), label), !!instructions && (0,external_React_.createElement)("div", {
- className: "components-placeholder__instructions"
- }, instructions), (0,external_React_.createElement)("div", {
- className: fieldsetClasses
- }, children));
+ className: classes,
+ children: [withIllustration ? PlaceholderIllustration : null, resizeListener, notices, preview && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "components-placeholder__preview",
+ children: preview
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "components-placeholder__label",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: icon
+ }), label]
+ }), !!instructions && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "components-placeholder__instructions",
+ children: instructions
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: fieldsetClasses,
+ children: children
+ })]
+ });
}
/* harmony default export */ const placeholder = (Placeholder);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/progress-bar/styles.js
+
+function progress_bar_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
+ */
+
+const animateProgressBar = emotion_react_browser_esm_keyframes({
+ '0%': {
+ left: '-50%'
+ },
+ '100%': {
+ left: '100%'
+ }
+});
+
+// Width of the indicator for the indeterminate progress bar
+const INDETERMINATE_TRACK_WIDTH = 50;
+const styles_Track = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
+ target: "e15u147w2"
+} : 0)("position:relative;overflow:hidden;height:", config_values.borderWidthFocus, ";background-color:color-mix(\n\t\tin srgb,\n\t\t", COLORS.theme.foreground, ",\n\t\ttransparent 90%\n\t);border-radius:", config_values.radiusBlockUi, ";outline:2px solid transparent;outline-offset:2px;:where( & ){width:160px;}" + ( true ? "" : 0));
+var progress_bar_styles_ref = true ? {
+ name: "152sa26",
+ styles: "width:var(--indicator-width);transition:width 0.4s ease-in-out"
+} : 0;
+const Indicator = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
+ target: "e15u147w1"
+} : 0)("display:inline-block;position:absolute;top:0;height:100%;border-radius:", config_values.radiusBlockUi, ";background-color:color-mix(\n\t\tin srgb,\n\t\t", COLORS.theme.foreground, ",\n\t\ttransparent 10%\n\t);outline:2px solid transparent;outline-offset:-2px;", ({
+ isIndeterminate
+}) => isIndeterminate ? /*#__PURE__*/emotion_react_browser_esm_css({
+ animationDuration: '1.5s',
+ animationTimingFunction: 'ease-in-out',
+ animationIterationCount: 'infinite',
+ animationName: animateProgressBar,
+ width: `${INDETERMINATE_TRACK_WIDTH}%`
+}, true ? "" : 0, true ? "" : 0) : progress_bar_styles_ref, ";" + ( true ? "" : 0));
+const ProgressElement = /*#__PURE__*/emotion_styled_base_browser_esm("progress", true ? {
+ target: "e15u147w0"
+} : 0)( true ? {
+ name: "11fb690",
+ styles: "position:absolute;top:0;left:0;opacity:0;width:100%;height:100%"
+} : 0);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/progress-bar/index.js
+/**
+ * External dependencies
+ */
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+function UnforwardedProgressBar(props, ref) {
+ const {
+ className,
+ value,
+ ...progressProps
+ } = props;
+ const isIndeterminate = !Number.isFinite(value);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_Track, {
+ className: className,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Indicator, {
+ style: {
+ '--indicator-width': !isIndeterminate ? `${value}%` : undefined
+ },
+ isIndeterminate: isIndeterminate
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ProgressElement, {
+ max: 100,
+ value: value,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Loading …'),
+ ref: ref,
+ ...progressProps
+ })]
+ });
+}
+
+/**
+ * A simple horizontal progress bar component.
+ *
+ * Supports two modes: determinate and indeterminate. A progress bar is determinate
+ * when a specific progress value has been specified (from 0 to 100), and indeterminate
+ * when a value hasn't been specified.
+ *
+ * ```jsx
+ * import { ProgressBar } from '@wordpress/components';
+ *
+ * const MyLoadingComponent = () => {
+ * return <ProgressBar />;
+ * };
+ * ```
+ */
+const ProgressBar = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedProgressBar);
+/* harmony default export */ const progress_bar = (ProgressBar);
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/query-controls/terms.js
/**
* Internal dependencies
@@ -64357,7 +64616,6 @@ function buildTermsTree(flatTerms) {
;// CONCATENATED MODULE: external ["wp","htmlEntities"]
const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tree-select/index.js
-
/**
* WordPress dependencies
*/
@@ -64369,6 +64627,7 @@ const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
*/
+
function getSelectOptions(tree, level = 0) {
return tree.flatMap(treeNode => [{
value: treeNode.id,
@@ -64439,7 +64698,7 @@ function TreeSelect(props) {
label: noOptionLabel
}, ...getSelectOptions(tree)].filter(option => !!option);
}, [noOptionLabel, tree]);
- return (0,external_React_.createElement)(SelectControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SelectControl, {
label,
options,
onChange,
@@ -64450,12 +64709,12 @@ function TreeSelect(props) {
/* harmony default export */ const tree_select = (TreeSelect);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/query-controls/author-select.js
-
/**
* Internal dependencies
*/
+
function AuthorSelect({
__next40pxDefaultSize,
label,
@@ -64464,9 +64723,11 @@ function AuthorSelect({
selectedAuthorId,
onChange: onChangeProp
}) {
- if (!authorList) return null;
+ if (!authorList) {
+ return null;
+ }
const termsTree = buildTermsTree(authorList);
- return (0,external_React_.createElement)(tree_select, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tree_select, {
label,
noOptionLabel,
onChange: onChangeProp,
@@ -64478,7 +64739,6 @@ function AuthorSelect({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/query-controls/category-select.js
-
/**
* Internal dependencies
*/
@@ -64489,6 +64749,7 @@ function AuthorSelect({
* WordPress dependencies
*/
+
function CategorySelect({
__next40pxDefaultSize,
label,
@@ -64501,7 +64762,7 @@ function CategorySelect({
const termsTree = (0,external_wp_element_namespaceObject.useMemo)(() => {
return buildTermsTree(categoriesList);
}, [categoriesList]);
- return (0,external_React_.createElement)(tree_select, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tree_select, {
label,
noOptionLabel,
onChange: onChangeProp,
@@ -64514,7 +64775,6 @@ function CategorySelect({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/query-controls/index.js
-
/**
* WordPress dependencies
*/
@@ -64529,6 +64789,7 @@ function CategorySelect({
+
const DEFAULT_MIN_ITEMS = 1;
const DEFAULT_MAX_ITEMS = 100;
const MAX_CATEGORIES_SUGGESTIONS = 20;
@@ -64581,85 +64842,81 @@ function QueryControls({
// but instead are destructured inline where necessary.
...props
}) {
- return (0,external_React_.createElement)(v_stack_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(v_stack_component, {
spacing: "4",
- className: "components-query-controls"
- }, [onOrderChange && onOrderByChange && (0,external_React_.createElement)(select_control, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: __next40pxDefaultSize,
- key: "query-controls-order-select",
- label: (0,external_wp_i18n_namespaceObject.__)('Order by'),
- value: `${orderBy}/${order}`,
- options: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Newest to oldest'),
- value: 'date/desc'
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('Oldest to newest'),
- value: 'date/asc'
- }, {
- /* translators: Label for ordering posts by title in ascending order. */
- label: (0,external_wp_i18n_namespaceObject.__)('A → Z'),
- value: 'title/asc'
- }, {
- /* translators: Label for ordering posts by title in descending order. */
- label: (0,external_wp_i18n_namespaceObject.__)('Z → A'),
- value: 'title/desc'
- }],
- onChange: value => {
- if (typeof value !== 'string') {
- return;
- }
- const [newOrderBy, newOrder] = value.split('/');
- if (newOrder !== order) {
- onOrderChange(newOrder);
- }
- if (newOrderBy !== orderBy) {
- onOrderByChange(newOrderBy);
+ className: "components-query-controls",
+ children: [onOrderChange && onOrderByChange && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(select_control, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ label: (0,external_wp_i18n_namespaceObject.__)('Order by'),
+ value: `${orderBy}/${order}`,
+ options: [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Newest to oldest'),
+ value: 'date/desc'
+ }, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Oldest to newest'),
+ value: 'date/asc'
+ }, {
+ /* translators: Label for ordering posts by title in ascending order. */
+ label: (0,external_wp_i18n_namespaceObject.__)('A → Z'),
+ value: 'title/asc'
+ }, {
+ /* translators: Label for ordering posts by title in descending order. */
+ label: (0,external_wp_i18n_namespaceObject.__)('Z → A'),
+ value: 'title/desc'
+ }],
+ onChange: value => {
+ if (typeof value !== 'string') {
+ return;
+ }
+ const [newOrderBy, newOrder] = value.split('/');
+ if (newOrder !== order) {
+ onOrderChange(newOrder);
+ }
+ if (newOrderBy !== orderBy) {
+ onOrderByChange(newOrderBy);
+ }
}
- }
- }), isSingleCategorySelection(props) && props.categoriesList && props.onCategoryChange && (0,external_React_.createElement)(CategorySelect, {
- __next40pxDefaultSize: __next40pxDefaultSize,
- key: "query-controls-category-select",
- categoriesList: props.categoriesList,
- label: (0,external_wp_i18n_namespaceObject.__)('Category'),
- noOptionLabel: (0,external_wp_i18n_namespaceObject._x)('All', 'categories'),
- selectedCategoryId: props.selectedCategoryId,
- onChange: props.onCategoryChange
- }), isMultipleCategorySelection(props) && props.categorySuggestions && props.onCategoryChange && (0,external_React_.createElement)(form_token_field, {
- __next40pxDefaultSize: __next40pxDefaultSize,
- __nextHasNoMarginBottom: true,
- key: "query-controls-categories-select",
- label: (0,external_wp_i18n_namespaceObject.__)('Categories'),
- value: props.selectedCategories && props.selectedCategories.map(item => ({
- id: item.id,
- // Keeping the fallback to `item.value` for legacy reasons,
- // even if items of `selectedCategories` should not have a
- // `value` property.
- // @ts-expect-error
- value: item.name || item.value
- })),
- suggestions: Object.keys(props.categorySuggestions),
- onChange: props.onCategoryChange,
- maxSuggestions: MAX_CATEGORIES_SUGGESTIONS
- }), onAuthorChange && (0,external_React_.createElement)(AuthorSelect, {
- __next40pxDefaultSize: __next40pxDefaultSize,
- key: "query-controls-author-select",
- authorList: authorList,
- label: (0,external_wp_i18n_namespaceObject.__)('Author'),
- noOptionLabel: (0,external_wp_i18n_namespaceObject._x)('All', 'authors'),
- selectedAuthorId: selectedAuthorId,
- onChange: onAuthorChange
- }), onNumberOfItemsChange && (0,external_React_.createElement)(range_control, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: __next40pxDefaultSize,
- key: "query-controls-range-control",
- label: (0,external_wp_i18n_namespaceObject.__)('Number of items'),
- value: numberOfItems,
- onChange: onNumberOfItemsChange,
- min: minItems,
- max: maxItems,
- required: true
- })]);
+ }, "query-controls-order-select"), isSingleCategorySelection(props) && props.categoriesList && props.onCategoryChange && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CategorySelect, {
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ categoriesList: props.categoriesList,
+ label: (0,external_wp_i18n_namespaceObject.__)('Category'),
+ noOptionLabel: (0,external_wp_i18n_namespaceObject._x)('All', 'categories'),
+ selectedCategoryId: props.selectedCategoryId,
+ onChange: props.onCategoryChange
+ }, "query-controls-category-select"), isMultipleCategorySelection(props) && props.categorySuggestions && props.onCategoryChange && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(form_token_field, {
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Categories'),
+ value: props.selectedCategories && props.selectedCategories.map(item => ({
+ id: item.id,
+ // Keeping the fallback to `item.value` for legacy reasons,
+ // even if items of `selectedCategories` should not have a
+ // `value` property.
+ // @ts-expect-error
+ value: item.name || item.value
+ })),
+ suggestions: Object.keys(props.categorySuggestions),
+ onChange: props.onCategoryChange,
+ maxSuggestions: MAX_CATEGORIES_SUGGESTIONS
+ }, "query-controls-categories-select"), onAuthorChange && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AuthorSelect, {
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ authorList: authorList,
+ label: (0,external_wp_i18n_namespaceObject.__)('Author'),
+ noOptionLabel: (0,external_wp_i18n_namespaceObject._x)('All', 'authors'),
+ selectedAuthorId: selectedAuthorId,
+ onChange: onAuthorChange
+ }, "query-controls-author-select"), onNumberOfItemsChange && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(range_control, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ label: (0,external_wp_i18n_namespaceObject.__)('Number of items'),
+ value: numberOfItems,
+ onChange: onNumberOfItemsChange,
+ min: minItems,
+ max: maxItems,
+ required: true
+ }, "query-controls-range-control")]
+ });
}
/* harmony default export */ const query_controls = (QueryControls);
@@ -64679,7 +64936,6 @@ const RadioGroupContext = (0,external_wp_element_namespaceObject.createContext)(
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/radio-group/radio.js
-
/**
* WordPress dependencies
*/
@@ -64696,6 +64952,7 @@ const RadioGroupContext = (0,external_wp_element_namespaceObject.createContext)(
*/
+
function UnforwardedRadio({
value,
children,
@@ -64707,16 +64964,17 @@ function UnforwardedRadio({
} = (0,external_wp_element_namespaceObject.useContext)(RadioGroupContext);
const selectedValue = store?.useState('value');
const isChecked = selectedValue !== undefined && selectedValue === value;
- return (0,external_React_.createElement)(Radio, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Radio, {
disabled: disabled,
store: store,
ref: ref,
value: value,
- render: (0,external_React_.createElement)(build_module_button, {
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
variant: isChecked ? 'primary' : 'secondary',
...props
- })
- }, children || value);
+ }),
+ children: children || value
+ });
}
/**
@@ -64726,7 +64984,6 @@ const radio_Radio = (0,external_wp_element_namespaceObject.forwardRef)(Unforward
/* harmony default export */ const radio_group_radio = (radio_Radio);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/radio-group/index.js
-
/**
* External dependencies
*/
@@ -64743,6 +65000,7 @@ const radio_Radio = (0,external_wp_element_namespaceObject.forwardRef)(Unforward
*/
+
function UnforwardedRadioGroup({
label,
checked,
@@ -64763,15 +65021,18 @@ function UnforwardedRadioGroup({
store: radioStore,
disabled
}), [radioStore, disabled]);
- return (0,external_React_.createElement)(RadioGroupContext.Provider, {
- value: contextValue
- }, (0,external_React_.createElement)(RadioGroup, {
- store: radioStore,
- render: (0,external_React_.createElement)(button_group, null, children),
- "aria-label": label,
- ref: ref,
- ...props
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RadioGroupContext.Provider, {
+ value: contextValue,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RadioGroup, {
+ store: radioStore,
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(button_group, {
+ children: children
+ }),
+ "aria-label": label,
+ ref: ref,
+ ...props
+ })
+ });
}
/**
@@ -64781,7 +65042,6 @@ const radio_group_RadioGroup = (0,external_wp_element_namespaceObject.forwardRef
/* harmony default export */ const radio_group = (radio_group_RadioGroup);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/radio-control/index.js
-
/**
* External dependencies
*/
@@ -64822,6 +65082,8 @@ const radio_group_RadioGroup = (0,external_wp_element_namespaceObject.forwardRef
* };
* ```
*/
+
+
function RadioControl(props) {
const {
label,
@@ -64839,32 +65101,35 @@ function RadioControl(props) {
if (!options?.length) {
return null;
}
- return (0,external_React_.createElement)(base_control, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
__nextHasNoMarginBottom: true,
label: label,
id: id,
hideLabelFromVision: hideLabelFromVision,
help: help,
- className: classnames_default()(className, 'components-radio-control')
- }, (0,external_React_.createElement)(v_stack_component, {
- spacing: 1
- }, options.map((option, index) => (0,external_React_.createElement)("div", {
- key: `${id}-${index}`,
- className: "components-radio-control__option"
- }, (0,external_React_.createElement)("input", {
- id: `${id}-${index}`,
- className: "components-radio-control__input",
- type: "radio",
- name: id,
- value: option.value,
- onChange: onChangeValue,
- checked: option.value === selected,
- "aria-describedby": !!help ? `${id}__help` : undefined,
- ...additionalProps
- }), (0,external_React_.createElement)("label", {
- className: "components-radio-control__label",
- htmlFor: `${id}-${index}`
- }, option.label)))));
+ className: dist_clsx(className, 'components-radio-control'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(v_stack_component, {
+ spacing: 1,
+ children: options.map((option, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "components-radio-control__option",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
+ id: `${id}-${index}`,
+ className: "components-radio-control__input",
+ type: "radio",
+ name: id,
+ value: option.value,
+ onChange: onChangeValue,
+ checked: option.value === selected,
+ "aria-describedby": !!help ? `${id}__help` : undefined,
+ ...additionalProps
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("label", {
+ className: "components-radio-control__label",
+ htmlFor: `${id}-${index}`,
+ children: option.label
+ })]
+ }, `${id}-${index}`))
+ })
+ });
}
/* harmony default export */ const radio_control = (RadioControl);
@@ -65773,7 +66038,9 @@ function useResizeLabel({
* If axis is controlled, we will avoid resetting the moveX and moveY values.
* This will allow for the preferred axis values to persist in the label.
*/
- if (isAxisControlled) return;
+ if (isAxisControlled) {
+ return;
+ }
setMoveX(false);
setMoveY(false);
};
@@ -65788,10 +66055,14 @@ function useResizeLabel({
* null. They are calculated then set using via an internal useEffect hook.
*/
const isRendered = width !== null || height !== null;
- if (!isRendered) return;
+ if (!isRendered) {
+ return;
+ }
const didWidthChange = width !== widthRef.current;
const didHeightChange = height !== heightRef.current;
- if (!didWidthChange && !didHeightChange) return;
+ if (!didWidthChange && !didHeightChange) {
+ return;
+ }
/*
* After the initial render, the useResizeAware will set the first
@@ -65859,7 +66130,9 @@ function getSizeLabel({
showPx = false,
width
}) {
- if (!moveX && !moveY) return undefined;
+ if (!moveX && !moveY) {
+ return undefined;
+ }
/*
* Corner position...
@@ -65910,19 +66183,19 @@ function resize_tooltip_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You ha
*/
-const resize_tooltip_styles_Root = emotion_styled_base_browser_esm("div", true ? {
+const resize_tooltip_styles_Root = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "e1wq7y4k3"
} : 0)( true ? {
name: "1cd7zoc",
styles: "bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"
} : 0);
-const TooltipWrapper = emotion_styled_base_browser_esm("div", true ? {
+const TooltipWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "e1wq7y4k2"
} : 0)( true ? {
name: "ajymcs",
styles: "align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear"
} : 0);
-const resize_tooltip_styles_Tooltip = emotion_styled_base_browser_esm("div", true ? {
+const resize_tooltip_styles_Tooltip = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "e1wq7y4k1"
} : 0)("background:", COLORS.theme.foreground, ";border-radius:2px;box-sizing:border-box;font-family:", font('default.fontFamily'), ";font-size:12px;color:", COLORS.theme.foregroundInverted, ";padding:4px 8px;position:relative;" + ( true ? "" : 0));
@@ -65934,7 +66207,6 @@ const LabelText = /*#__PURE__*/emotion_styled_base_browser_esm(text_component,
} : 0)("&&&{color:", COLORS.theme.foregroundInverted, ";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/resizable-box/resize-tooltip/label.js
-
/**
* External dependencies
*/
@@ -65951,6 +66223,7 @@ const LabelText = /*#__PURE__*/emotion_styled_base_browser_esm(text_component,
+
const CORNER_OFFSET = 4;
const CURSOR_OFFSET_TOP = CORNER_OFFSET * 2.5;
function resize_tooltip_label_Label({
@@ -65962,7 +66235,9 @@ function resize_tooltip_label_Label({
const showLabel = !!label;
const isBottom = position === POSITIONS.bottom;
const isCorner = position === POSITIONS.corner;
- if (!showLabel) return null;
+ if (!showLabel) {
+ return null;
+ }
let style = {
opacity: showLabel ? 1 : undefined,
zIndex
@@ -65989,24 +66264,26 @@ function resize_tooltip_label_Label({
left: (0,external_wp_i18n_namespaceObject.isRTL)() ? CORNER_OFFSET : undefined
};
}
- return (0,external_React_.createElement)(TooltipWrapper, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TooltipWrapper, {
"aria-hidden": "true",
className: "components-resizable-tooltip__tooltip-wrapper",
ref: ref,
style: style,
- ...props
- }, (0,external_React_.createElement)(resize_tooltip_styles_Tooltip, {
- className: "components-resizable-tooltip__tooltip",
- style: labelStyle
- }, (0,external_React_.createElement)(LabelText, {
- as: "span"
- }, label)));
+ ...props,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(resize_tooltip_styles_Tooltip, {
+ className: "components-resizable-tooltip__tooltip",
+ style: labelStyle,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LabelText, {
+ as: "span",
+ children: label
+ })
+ })
+ });
}
const label_ForwardedComponent = (0,external_wp_element_namespaceObject.forwardRef)(resize_tooltip_label_Label);
/* harmony default export */ const resize_tooltip_label = (label_ForwardedComponent);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/resizable-box/resize-tooltip/index.js
-
/**
* External dependencies
*/
@@ -66022,6 +66299,8 @@ const label_ForwardedComponent = (0,external_wp_element_namespaceObject.forwardR
+
+
const resize_tooltip_noop = () => {};
function ResizeTooltip({
axis,
@@ -66045,26 +66324,28 @@ function ResizeTooltip({
showPx,
position
});
- if (!isVisible) return null;
- const classes = classnames_default()('components-resize-tooltip', className);
- return (0,external_React_.createElement)(resize_tooltip_styles_Root, {
+ if (!isVisible) {
+ return null;
+ }
+ const classes = dist_clsx('components-resize-tooltip', className);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(resize_tooltip_styles_Root, {
"aria-hidden": "true",
className: classes,
ref: ref,
- ...props
- }, resizeListener, (0,external_React_.createElement)(resize_tooltip_label, {
- "aria-hidden": props['aria-hidden'],
- label: label,
- position: position,
- ref: labelRef,
- zIndex: zIndex
- }));
+ ...props,
+ children: [resizeListener, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(resize_tooltip_label, {
+ "aria-hidden": props['aria-hidden'],
+ label: label,
+ position: position,
+ ref: labelRef,
+ zIndex: zIndex
+ })]
+ });
}
const resize_tooltip_ForwardedComponent = (0,external_wp_element_namespaceObject.forwardRef)(ResizeTooltip);
/* harmony default export */ const resize_tooltip = (resize_tooltip_ForwardedComponent);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/resizable-box/index.js
-
/**
* WordPress dependencies
*/
@@ -66079,18 +66360,20 @@ const resize_tooltip_ForwardedComponent = (0,external_wp_element_namespaceObject
* Internal dependencies
*/
+
+
const HANDLE_CLASS_NAME = 'components-resizable-box__handle';
const SIDE_HANDLE_CLASS_NAME = 'components-resizable-box__side-handle';
const CORNER_HANDLE_CLASS_NAME = 'components-resizable-box__corner-handle';
const HANDLE_CLASSES = {
- top: classnames_default()(HANDLE_CLASS_NAME, SIDE_HANDLE_CLASS_NAME, 'components-resizable-box__handle-top'),
- right: classnames_default()(HANDLE_CLASS_NAME, SIDE_HANDLE_CLASS_NAME, 'components-resizable-box__handle-right'),
- bottom: classnames_default()(HANDLE_CLASS_NAME, SIDE_HANDLE_CLASS_NAME, 'components-resizable-box__handle-bottom'),
- left: classnames_default()(HANDLE_CLASS_NAME, SIDE_HANDLE_CLASS_NAME, 'components-resizable-box__handle-left'),
- topLeft: classnames_default()(HANDLE_CLASS_NAME, CORNER_HANDLE_CLASS_NAME, 'components-resizable-box__handle-top', 'components-resizable-box__handle-left'),
- topRight: classnames_default()(HANDLE_CLASS_NAME, CORNER_HANDLE_CLASS_NAME, 'components-resizable-box__handle-top', 'components-resizable-box__handle-right'),
- bottomRight: classnames_default()(HANDLE_CLASS_NAME, CORNER_HANDLE_CLASS_NAME, 'components-resizable-box__handle-bottom', 'components-resizable-box__handle-right'),
- bottomLeft: classnames_default()(HANDLE_CLASS_NAME, CORNER_HANDLE_CLASS_NAME, 'components-resizable-box__handle-bottom', 'components-resizable-box__handle-left')
+ top: dist_clsx(HANDLE_CLASS_NAME, SIDE_HANDLE_CLASS_NAME, 'components-resizable-box__handle-top'),
+ right: dist_clsx(HANDLE_CLASS_NAME, SIDE_HANDLE_CLASS_NAME, 'components-resizable-box__handle-right'),
+ bottom: dist_clsx(HANDLE_CLASS_NAME, SIDE_HANDLE_CLASS_NAME, 'components-resizable-box__handle-bottom'),
+ left: dist_clsx(HANDLE_CLASS_NAME, SIDE_HANDLE_CLASS_NAME, 'components-resizable-box__handle-left'),
+ topLeft: dist_clsx(HANDLE_CLASS_NAME, CORNER_HANDLE_CLASS_NAME, 'components-resizable-box__handle-top', 'components-resizable-box__handle-left'),
+ topRight: dist_clsx(HANDLE_CLASS_NAME, CORNER_HANDLE_CLASS_NAME, 'components-resizable-box__handle-top', 'components-resizable-box__handle-right'),
+ bottomRight: dist_clsx(HANDLE_CLASS_NAME, CORNER_HANDLE_CLASS_NAME, 'components-resizable-box__handle-bottom', 'components-resizable-box__handle-right'),
+ bottomLeft: dist_clsx(HANDLE_CLASS_NAME, CORNER_HANDLE_CLASS_NAME, 'components-resizable-box__handle-bottom', 'components-resizable-box__handle-left')
};
// Removes the inline styles in the drag handles.
@@ -66120,21 +66403,21 @@ function UnforwardedResizableBox({
__experimentalTooltipProps: tooltipProps = {},
...props
}, ref) {
- return (0,external_React_.createElement)(Resizable, {
- className: classnames_default()('components-resizable-box__container', showHandle && 'has-show-handle', className),
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Resizable, {
+ className: dist_clsx('components-resizable-box__container', showHandle && 'has-show-handle', className),
handleClasses: HANDLE_CLASSES,
handleStyles: HANDLE_STYLES,
ref: ref,
- ...props
- }, children, showTooltip && (0,external_React_.createElement)(resize_tooltip, {
- ...tooltipProps
- }));
+ ...props,
+ children: [children, showTooltip && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(resize_tooltip, {
+ ...tooltipProps
+ })]
+ });
}
const ResizableBox = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedResizableBox);
/* harmony default export */ const resizable_box = (ResizableBox);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/responsive-wrapper/index.js
-
/**
* External dependencies
*/
@@ -66179,20 +66462,22 @@ function ResponsiveWrapper({
if (naturalWidth && naturalHeight) {
aspectRatio = `${naturalWidth} / ${naturalHeight}`;
}
- return (0,external_React_.createElement)(TagName, {
- className: "components-responsive-wrapper"
- }, (0,external_React_.createElement)("div", null, (0,external_wp_element_namespaceObject.cloneElement)(children, {
- className: classnames_default()('components-responsive-wrapper__content', children.props.className),
- style: {
- ...children.props.style,
- aspectRatio
- }
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ className: "components-responsive-wrapper",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ children: (0,external_wp_element_namespaceObject.cloneElement)(children, {
+ className: dist_clsx('components-responsive-wrapper__content', children.props.className),
+ style: {
+ ...children.props.style,
+ aspectRatio
+ }
+ })
+ })
+ });
}
/* harmony default export */ const responsive_wrapper = (ResponsiveWrapper);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/sandbox/index.js
-
/**
* WordPress dependencies
*/
@@ -66203,6 +66488,7 @@ function ResponsiveWrapper({
* Internal dependencies
*/
+
const observeAndResizeJS = function () {
const {
MutationObserver
@@ -66325,34 +66611,38 @@ function SandBox({
// we can use this in the future to inject custom styles or scripts.
// Scripts go into the body rather than the head, to support embedded content such as Instagram
// that expect the scripts to be part of the body.
- const htmlDoc = (0,external_React_.createElement)("html", {
+ const htmlDoc = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("html", {
lang: ownerDocument.documentElement.lang,
- className: type
- }, (0,external_React_.createElement)("head", null, (0,external_React_.createElement)("title", null, title), (0,external_React_.createElement)("style", {
- dangerouslySetInnerHTML: {
- __html: style
- }
- }), styles.map((rules, i) => (0,external_React_.createElement)("style", {
- key: i,
- dangerouslySetInnerHTML: {
- __html: rules
- }
- }))), (0,external_React_.createElement)("body", {
- "data-resizable-iframe-connected": "data-resizable-iframe-connected",
- className: type
- }, (0,external_React_.createElement)("div", {
- dangerouslySetInnerHTML: {
- __html: html
- }
- }), (0,external_React_.createElement)("script", {
- type: "text/javascript",
- dangerouslySetInnerHTML: {
- __html: `(${observeAndResizeJS.toString()})();`
- }
- }), scripts.map(src => (0,external_React_.createElement)("script", {
- key: src,
- src: src
- }))));
+ className: type,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("head", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("title", {
+ children: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("style", {
+ dangerouslySetInnerHTML: {
+ __html: style
+ }
+ }), styles.map((rules, i) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("style", {
+ dangerouslySetInnerHTML: {
+ __html: rules
+ }
+ }, i))]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("body", {
+ "data-resizable-iframe-connected": "data-resizable-iframe-connected",
+ className: type,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ dangerouslySetInnerHTML: {
+ __html: html
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("script", {
+ type: "text/javascript",
+ dangerouslySetInnerHTML: {
+ __html: `(${observeAndResizeJS.toString()})();`
+ }
+ }), scripts.map(src => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("script", {
+ src: src
+ }, src))]
+ })]
+ });
// Writing the document like this makes it act in the same way as if it was
// loaded over the network, so DOM creation and mutation, script execution, etc.
@@ -66419,7 +66709,7 @@ function SandBox({
// See https://github.com/WordPress/gutenberg/pull/44378
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [html, type]);
- return (0,external_React_.createElement)("iframe", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("iframe", {
ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, (0,external_wp_compose_namespaceObject.useFocusableIframe)()]),
title: title,
tabIndex: tabIndex,
@@ -66433,7 +66723,6 @@ function SandBox({
/* harmony default export */ const sandbox = (SandBox);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/snackbar/index.js
-
/**
* External dependencies
*/
@@ -66452,6 +66741,8 @@ function SandBox({
* Internal dependencies
*/
+
+
const NOTICE_TIMEOUT = 10000;
/**
@@ -66525,7 +66816,7 @@ function UnforwardedSnackbar({
}, NOTICE_TIMEOUT);
return () => clearTimeout(timeoutHandle);
}, [explicitDismiss]);
- const classes = classnames_default()(className, 'components-snackbar', {
+ const classes = dist_clsx(className, 'components-snackbar', {
'components-snackbar-explicit-dismiss': !!explicitDismiss
});
if (actions && actions.length > 1) {
@@ -66534,41 +66825,46 @@ function UnforwardedSnackbar({
// return first element only while keeping it inside an array
actions = [actions[0]];
}
- const snackbarContentClassnames = classnames_default()('components-snackbar__content', {
+ const snackbarContentClassnames = dist_clsx('components-snackbar__content', {
'components-snackbar__content-with-icon': !!icon
});
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
ref: ref,
className: classes,
onClick: !explicitDismiss ? dismissMe : undefined,
tabIndex: 0,
- role: !explicitDismiss ? 'button' : '',
+ role: !explicitDismiss ? 'button' : undefined,
onKeyPress: !explicitDismiss ? dismissMe : undefined,
- "aria-label": !explicitDismiss ? (0,external_wp_i18n_namespaceObject.__)('Dismiss this notice') : ''
- }, (0,external_React_.createElement)("div", {
- className: snackbarContentClassnames
- }, icon && (0,external_React_.createElement)("div", {
- className: "components-snackbar__icon"
- }, icon), children, actions.map(({
- label,
- onClick,
- url
- }, index) => {
- return (0,external_React_.createElement)(build_module_button, {
- key: index,
- href: url,
- variant: "tertiary",
- onClick: event => onActionClick(event, onClick),
- className: "components-snackbar__action"
- }, label);
- }), explicitDismiss && (0,external_React_.createElement)("span", {
- role: "button",
- "aria-label": "Dismiss this notice",
- tabIndex: 0,
- className: "components-snackbar__dismiss-button",
- onClick: dismissMe,
- onKeyPress: dismissMe
- }, "\u2715")));
+ "aria-label": !explicitDismiss ? (0,external_wp_i18n_namespaceObject.__)('Dismiss this notice') : undefined,
+ "data-testid": "snackbar",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: snackbarContentClassnames,
+ children: [icon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "components-snackbar__icon",
+ children: icon
+ }), children, actions.map(({
+ label,
+ onClick,
+ url
+ }, index) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ href: url,
+ variant: "tertiary",
+ onClick: event => onActionClick(event, onClick),
+ className: "components-snackbar__action",
+ children: label
+ }, index);
+ }), explicitDismiss && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ role: "button",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Dismiss this notice'),
+ tabIndex: 0,
+ className: "components-snackbar__dismiss-button",
+ onClick: dismissMe,
+ onKeyPress: dismissMe,
+ children: "\u2715"
+ })]
+ })
+ });
}
/**
@@ -66587,7 +66883,6 @@ const Snackbar = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedS
/* harmony default export */ const snackbar = (Snackbar);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/snackbar/list.js
-
/**
* External dependencies
*/
@@ -66604,6 +66899,8 @@ const Snackbar = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedS
*/
+
+
const SNACKBAR_VARIANTS = {
init: {
height: 0,
@@ -66656,33 +66953,39 @@ function SnackbarList({
}) {
const listRef = (0,external_wp_element_namespaceObject.useRef)(null);
const isReducedMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
- className = classnames_default()('components-snackbar-list', className);
+ className = dist_clsx('components-snackbar-list', className);
const removeNotice = notice => () => onRemove?.(notice.id);
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: className,
tabIndex: -1,
- ref: listRef
- }, children, (0,external_React_.createElement)(AnimatePresence, null, notices.map(notice => {
- const {
- content,
- ...restNotice
- } = notice;
- return (0,external_React_.createElement)(motion.div, {
- layout: !isReducedMotion // See https://www.framer.com/docs/animation/#layout-animations
- ,
- initial: 'init',
- animate: 'open',
- exit: 'exit',
- key: notice.id,
- variants: isReducedMotion ? undefined : SNACKBAR_VARIANTS
- }, (0,external_React_.createElement)("div", {
- className: "components-snackbar-list__notice-container"
- }, (0,external_React_.createElement)(snackbar, {
- ...restNotice,
- onRemove: removeNotice(notice),
- listRef: listRef
- }, notice.content)));
- })));
+ ref: listRef,
+ "data-testid": "snackbar-list",
+ children: [children, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AnimatePresence, {
+ children: notices.map(notice => {
+ const {
+ content,
+ ...restNotice
+ } = notice;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(motion.div, {
+ layout: !isReducedMotion // See https://www.framer.com/docs/animation/#layout-animations
+ ,
+ initial: "init",
+ animate: "open",
+ exit: "exit",
+ variants: isReducedMotion ? undefined : SNACKBAR_VARIANTS,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "components-snackbar-list__notice-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(snackbar, {
+ ...restNotice,
+ onRemove: removeNotice(notice),
+ listRef: listRef,
+ children: notice.content
+ })
+ })
+ }, notice.id);
+ })
+ })]
+ });
}
/* harmony default export */ const snackbar_list = (SnackbarList);
@@ -66707,22 +67010,21 @@ const spinAnimation = emotion_react_browser_esm_keyframes`
transform: rotate(360deg);
}
`;
-const StyledSpinner = emotion_styled_base_browser_esm("svg", true ? {
+const StyledSpinner = /*#__PURE__*/emotion_styled_base_browser_esm("svg", true ? {
target: "ea4tfvq2"
} : 0)("width:", config_values.spinnerSize, "px;height:", config_values.spinnerSize, "px;display:inline-block;margin:5px 11px 0;position:relative;color:", COLORS.theme.accent, ";overflow:visible;opacity:1;background-color:transparent;" + ( true ? "" : 0));
const commonPathProps = true ? {
name: "9s4963",
styles: "fill:transparent;stroke-width:1.5px"
} : 0;
-const SpinnerTrack = emotion_styled_base_browser_esm("circle", true ? {
+const SpinnerTrack = /*#__PURE__*/emotion_styled_base_browser_esm("circle", true ? {
target: "ea4tfvq1"
} : 0)(commonPathProps, ";stroke:", COLORS.gray[300], ";" + ( true ? "" : 0));
-const SpinnerIndicator = emotion_styled_base_browser_esm("path", true ? {
+const SpinnerIndicator = /*#__PURE__*/emotion_styled_base_browser_esm("path", true ? {
target: "ea4tfvq0"
} : 0)(commonPathProps, ";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ", spinAnimation, ";" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/spinner/index.js
-
/**
* External dependencies
*/
@@ -66735,12 +67037,14 @@ const SpinnerIndicator = emotion_styled_base_browser_esm("path", true ? {
* WordPress dependencies
*/
+
+
function UnforwardedSpinner({
className,
...props
}, forwardedRef) {
- return (0,external_React_.createElement)(StyledSpinner, {
- className: classnames_default()('components-spinner', className),
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(StyledSpinner, {
+ className: dist_clsx('components-spinner', className),
viewBox: "0 0 100 100",
width: "16",
height: "16",
@@ -66748,16 +67052,17 @@ function UnforwardedSpinner({
role: "presentation",
focusable: "false",
...props,
- ref: forwardedRef
- }, (0,external_React_.createElement)(SpinnerTrack, {
- cx: "50",
- cy: "50",
- r: "50",
- vectorEffect: "non-scaling-stroke"
- }), (0,external_React_.createElement)(SpinnerIndicator, {
- d: "m 50 0 a 50 50 0 0 1 50 50",
- vectorEffect: "non-scaling-stroke"
- }));
+ ref: forwardedRef,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpinnerTrack, {
+ cx: "50",
+ cy: "50",
+ r: "50",
+ vectorEffect: "non-scaling-stroke"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpinnerIndicator, {
+ d: "m 50 0 a 50 50 0 0 1 50 50",
+ vectorEffect: "non-scaling-stroke"
+ })]
+ });
}
/**
* `Spinner` is a component used to notify users that their action is being processed.
@@ -66774,7 +67079,6 @@ const Spinner = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedSp
/* harmony default export */ const spinner = (Spinner);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/surface/component.js
-
/**
* External dependencies
*/
@@ -66785,9 +67089,10 @@ const Spinner = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedSp
+
function UnconnectedSurface(props, forwardedRef) {
const surfaceProps = useSurface(props);
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
...surfaceProps,
ref: forwardedRef
});
@@ -67002,7 +67307,7 @@ var useTabList = createHook((_a) => {
);
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(TabScopedContextProvider, { value: store, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(TabScopedContextProvider, { value: store, children: element }),
[store]
);
props = _4R3V3JGP_spreadValues({
@@ -67162,7 +67467,7 @@ var useTabPanel = createHook(
);
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(TabScopedContextProvider, { value: store, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(TabScopedContextProvider, { value: store, children: element }),
[store]
);
const tabId = store.panels.useState(
@@ -67196,7 +67501,6 @@ if (false) {}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tab-panel/index.js
-
/**
* External dependencies
*/
@@ -67214,6 +67518,8 @@ if (false) {}
*/
+
+
// Separate the actual tab name from the instance ID. This is
// necessary because Ariakit internally uses the element ID when
// a new tab is selected, but our implementation looks specifically
@@ -67352,39 +67658,41 @@ const UnforwardedTabPanel = ({
setTabStoreSelectedId(firstEnabledTab.name);
}
}, [tabs, selectedTab?.disabled, setTabStoreSelectedId, instanceId]);
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: className,
- ref: ref
- }, (0,external_React_.createElement)(tab_list_TabList, {
- store: tabStore,
- className: "components-tab-panel__tabs"
- }, tabs.map(tab => {
- return (0,external_React_.createElement)(Tab, {
- key: tab.name,
- id: prependInstanceId(tab.name),
- className: classnames_default()('components-tab-panel__tabs-item', tab.className, {
- [activeClass]: tab.name === selectedTabName
- }),
- disabled: tab.disabled,
- "aria-controls": `${prependInstanceId(tab.name)}-view`,
- render: (0,external_React_.createElement)(build_module_button, {
- icon: tab.icon,
- label: tab.icon && tab.title,
- showTooltip: !!tab.icon
+ ref: ref,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tab_list_TabList, {
+ store: tabStore,
+ className: "components-tab-panel__tabs",
+ children: tabs.map(tab => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tab, {
+ id: prependInstanceId(tab.name),
+ className: dist_clsx('components-tab-panel__tabs-item', tab.className, {
+ [activeClass]: tab.name === selectedTabName
+ }),
+ disabled: tab.disabled,
+ "aria-controls": `${prependInstanceId(tab.name)}-view`,
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ icon: tab.icon,
+ label: tab.icon && tab.title,
+ showTooltip: !!tab.icon
+ }),
+ children: !tab.icon && tab.title
+ }, tab.name);
})
- }, !tab.icon && tab.title);
- })), selectedTab && (0,external_React_.createElement)(TabPanel, {
- id: `${prependInstanceId(selectedTab.name)}-view`,
- store: tabStore,
- tabId: prependInstanceId(selectedTab.name),
- className: 'components-tab-panel__tab-content'
- }, children(selectedTab)));
+ }), selectedTab && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TabPanel, {
+ id: `${prependInstanceId(selectedTab.name)}-view`,
+ store: tabStore,
+ tabId: prependInstanceId(selectedTab.name),
+ className: "components-tab-panel__tab-content",
+ children: children(selectedTab)
+ })]
+ });
};
const tab_panel_TabPanel = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTabPanel);
/* harmony default export */ const tab_panel = (tab_panel_TabPanel);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text-control/index.js
-
/**
* External dependencies
*/
@@ -67401,6 +67709,7 @@ const tab_panel_TabPanel = (0,external_wp_element_namespaceObject.forwardRef)(Un
* Internal dependencies
*/
+
function UnforwardedTextControl(props, ref) {
const {
__nextHasNoMarginBottom,
@@ -67417,25 +67726,26 @@ function UnforwardedTextControl(props, ref) {
} = props;
const id = (0,external_wp_compose_namespaceObject.useInstanceId)(TextControl, 'inspector-text-control', idProp);
const onChangeValue = event => onChange(event.target.value);
- return (0,external_React_.createElement)(base_control, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
__nextHasNoMarginBottom: __nextHasNoMarginBottom,
label: label,
hideLabelFromVision: hideLabelFromVision,
id: id,
help: help,
- className: className
- }, (0,external_React_.createElement)("input", {
- className: classnames_default()('components-text-control__input', {
- 'is-next-40px-default-size': __next40pxDefaultSize
- }),
- type: type,
- id: id,
- value: value,
- onChange: onChangeValue,
- "aria-describedby": !!help ? id + '__help' : undefined,
- ref: ref,
- ...additionalProps
- }));
+ className: className,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
+ className: dist_clsx('components-text-control__input', {
+ 'is-next-40px-default-size': __next40pxDefaultSize
+ }),
+ type: type,
+ id: id,
+ value: value,
+ onChange: onChangeValue,
+ "aria-describedby": !!help ? id + '__help' : undefined,
+ ref: ref,
+ ...additionalProps
+ })
+ });
}
/**
@@ -67472,8 +67782,7 @@ const TextControl = (0,external_wp_element_namespaceObject.forwardRef)(Unforward
*/
-
-const inputStyleNeutral = /*#__PURE__*/emotion_react_browser_esm_css("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:", config_values.radiusBlockUi, ";border:", config_values.borderWidth, " solid ", COLORS.ui.border, ";" + ( true ? "" : 0), true ? "" : 0);
+const inputStyleNeutral = /*#__PURE__*/emotion_react_browser_esm_css("box-shadow:0 0 0 transparent;border-radius:", config_values.radiusBlockUi, ";border:", config_values.borderWidth, " solid ", COLORS.ui.border, ";@media not ( prefers-reduced-motion ){transition:box-shadow 0.1s linear;}" + ( true ? "" : 0), true ? "" : 0);
const inputStyleFocus = /*#__PURE__*/emotion_react_browser_esm_css("border-color:", COLORS.theme.accent, ";box-shadow:0 0 0 calc( ", config_values.borderWidthFocus, " - ", config_values.borderWidth, " ) ", COLORS.theme.accent, ";outline:2px solid transparent;" + ( true ? "" : 0), true ? "" : 0);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/breakpoint-values.js
@@ -67527,12 +67836,11 @@ const inputControl = /*#__PURE__*/emotion_react_browser_esm_css("display:block;f
* Internal dependencies
*/
-const StyledTextarea = emotion_styled_base_browser_esm("textarea", true ? {
+const StyledTextarea = /*#__PURE__*/emotion_styled_base_browser_esm("textarea", true ? {
target: "e1w5nnrk0"
} : 0)("width:100%;", inputControl, ";" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/textarea-control/index.js
-
/**
* WordPress dependencies
*/
@@ -67544,6 +67852,7 @@ const StyledTextarea = emotion_styled_base_browser_esm("textarea", true ? {
*/
+
function UnforwardedTextareaControl(props, ref) {
const {
__nextHasNoMarginBottom,
@@ -67559,23 +67868,24 @@ function UnforwardedTextareaControl(props, ref) {
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(TextareaControl);
const id = `inspector-textarea-control-${instanceId}`;
const onChangeValue = event => onChange(event.target.value);
- return (0,external_React_.createElement)(base_control, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
__nextHasNoMarginBottom: __nextHasNoMarginBottom,
label: label,
hideLabelFromVision: hideLabelFromVision,
id: id,
help: help,
- className: className
- }, (0,external_React_.createElement)(StyledTextarea, {
- className: "components-textarea-control__input",
- id: id,
- rows: rows,
- onChange: onChangeValue,
- "aria-describedby": !!help ? id + '__help' : undefined,
- value: value,
- ref: ref,
- ...additionalProps
- }));
+ className: className,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledTextarea, {
+ className: "components-textarea-control__input",
+ id: id,
+ rows: rows,
+ onChange: onChangeValue,
+ "aria-describedby": !!help ? id + '__help' : undefined,
+ value: value,
+ ref: ref,
+ ...additionalProps
+ })
+ });
}
/**
@@ -67605,7 +67915,6 @@ const TextareaControl = (0,external_wp_element_namespaceObject.forwardRef)(Unfor
/* harmony default export */ const textarea_control = (TextareaControl);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text-highlight/index.js
-
/**
* WordPress dependencies
*/
@@ -67615,6 +67924,8 @@ const TextareaControl = (0,external_wp_element_namespaceObject.forwardRef)(Unfor
* Internal dependencies
*/
+
+
/**
* Highlights occurrences of a given string within another string of text. Wraps
* each match with a `<mark>` tag which provides browser default styling.
@@ -67637,31 +67948,33 @@ const TextHighlight = props => {
} = props;
const trimmedHighlightText = highlight.trim();
if (!trimmedHighlightText) {
- return (0,external_React_.createElement)(external_React_.Fragment, null, text);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: text
+ });
}
const regex = new RegExp(`(${escapeRegExp(trimmedHighlightText)})`, 'gi');
return (0,external_wp_element_namespaceObject.createInterpolateElement)(text.replace(regex, '<mark>$&</mark>'), {
- mark: (0,external_React_.createElement)("mark", null)
+ mark: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("mark", {})
});
};
/* harmony default export */ const text_highlight = (TextHighlight);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/tip.js
-
/**
* WordPress dependencies
*/
-const tip = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const tip = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"
+ })
+});
/* harmony default export */ const library_tip = (tip);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tip/index.js
-
/**
* WordPress dependencies
*/
@@ -67671,20 +67984,23 @@ const tip = (0,external_React_.createElement)(external_wp_primitives_namespaceOb
* Internal dependencies
*/
+
function Tip(props) {
const {
children
} = props;
- return (0,external_React_.createElement)("div", {
- className: "components-tip"
- }, (0,external_React_.createElement)(icons_build_module_icon, {
- icon: library_tip
- }), (0,external_React_.createElement)("p", null, children));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "components-tip",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
+ icon: library_tip
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: children
+ })]
+ });
}
/* harmony default export */ const build_module_tip = (Tip);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-control/index.js
-
/**
* External dependencies
*/
@@ -67696,6 +68012,7 @@ function Tip(props) {
*/
+
/**
* Internal dependencies
*/
@@ -67726,6 +68043,8 @@ function Tip(props) {
* };
* ```
*/
+
+
function ToggleControl({
__nextHasNoMarginBottom,
label,
@@ -67734,7 +68053,7 @@ function ToggleControl({
className,
onChange,
disabled
-}) {
+}, ref) {
function onChangeToggle(event) {
onChange(event.target.checked);
}
@@ -67760,27 +68079,31 @@ function ToggleControl({
describedBy = id + '__help';
}
}
- return (0,external_React_.createElement)(base_control, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
id: id,
help: helpLabel,
className: classes,
- __nextHasNoMarginBottom: true
- }, (0,external_React_.createElement)(h_stack_component, {
- justify: "flex-start",
- spacing: 3
- }, (0,external_React_.createElement)(form_toggle, {
- id: id,
- checked: checked,
- onChange: onChangeToggle,
- "aria-describedby": describedBy,
- disabled: disabled
- }), (0,external_React_.createElement)(flex_block_component, {
- as: "label",
- htmlFor: id,
- className: "components-toggle-control__label"
- }, label)));
+ __nextHasNoMarginBottom: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
+ justify: "flex-start",
+ spacing: 3,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(form_toggle, {
+ id: id,
+ checked: checked,
+ onChange: onChangeToggle,
+ "aria-describedby": describedBy,
+ disabled: disabled,
+ ref: ref
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_block_component, {
+ as: "label",
+ htmlFor: id,
+ className: "components-toggle-control__label",
+ children: label
+ })]
+ })
+ });
}
-/* harmony default export */ const toggle_control = (ToggleControl);
+/* harmony default export */ const toggle_control = ((0,external_wp_element_namespaceObject.forwardRef)(ToggleControl));
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/SOK7T35T.js
"use client";
@@ -67839,7 +68162,6 @@ const ToolbarContext = (0,external_wp_element_namespaceObject.createContext)(und
/* harmony default export */ const toolbar_context = (ToolbarContext);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar/toolbar-item/index.js
-
/**
* External dependencies
*/
@@ -67855,6 +68177,7 @@ const ToolbarContext = (0,external_wp_element_namespaceObject.createContext)(und
* Internal dependencies
*/
+
function toolbar_item_ToolbarItem({
children,
as: Component,
@@ -67873,17 +68196,20 @@ function toolbar_item_ToolbarItem({
};
if (!accessibleToolbarStore) {
if (Component) {
- return (0,external_React_.createElement)(Component, {
- ...allProps
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
+ ...allProps,
+ children: children
+ });
}
if (!isRenderProp) {
return null;
}
return children(allProps);
}
- const render = isRenderProp ? children : Component && (0,external_React_.createElement)(Component, null, children);
- return (0,external_React_.createElement)(ToolbarItem, {
+ const render = isRenderProp ? children : Component && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
+ children: children
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ToolbarItem, {
...allProps,
store: accessibleToolbarStore,
render: render
@@ -67900,13 +68226,13 @@ function toolbar_item_ToolbarItem({
const ToolbarButtonContainer = ({
children,
className
-}) => (0,external_React_.createElement)("div", {
- className: className
-}, children);
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: className,
+ children: children
+});
/* harmony default export */ const toolbar_button_container = (ToolbarButtonContainer);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar/toolbar-button/index.js
-
/**
* External dependencies
*/
@@ -67923,6 +68249,7 @@ const ToolbarButtonContainer = ({
+
function UnforwardedToolbarButton({
children,
className,
@@ -67935,44 +68262,48 @@ function UnforwardedToolbarButton({
}, ref) {
const accessibleToolbarState = (0,external_wp_element_namespaceObject.useContext)(toolbar_context);
if (!accessibleToolbarState) {
- return (0,external_React_.createElement)(toolbar_button_container, {
- className: containerClassName
- }, (0,external_React_.createElement)(build_module_button, {
- ref: ref,
- icon: props.icon,
- label: title,
- shortcut: props.shortcut,
- "data-subscript": props.subscript,
- onClick: event => {
- event.stopPropagation();
- // TODO: Possible bug; maybe use onClick instead of props.onClick.
- if (props.onClick) {
- props.onClick(event);
- }
- },
- className: classnames_default()('components-toolbar__control', className),
- isPressed: isActive,
- disabled: isDisabled,
- "data-toolbar-item": true,
- ...extraProps,
- ...props
- }, children));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toolbar_button_container, {
+ className: containerClassName,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ ref: ref,
+ icon: props.icon,
+ label: title,
+ shortcut: props.shortcut,
+ "data-subscript": props.subscript,
+ onClick: event => {
+ event.stopPropagation();
+ // TODO: Possible bug; maybe use onClick instead of props.onClick.
+ if (props.onClick) {
+ props.onClick(event);
+ }
+ },
+ className: dist_clsx('components-toolbar__control', className),
+ isPressed: isActive,
+ disabled: isDisabled,
+ "data-toolbar-item": true,
+ ...extraProps,
+ ...props,
+ children: children
+ })
+ });
}
// ToobarItem will pass all props to the render prop child, which will pass
// all props to Button. This means that ToolbarButton has the same API as
// Button.
- return (0,external_React_.createElement)(toolbar_item, {
- className: classnames_default()('components-toolbar-button', className),
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toolbar_item, {
+ className: dist_clsx('components-toolbar-button', className),
...extraProps,
...props,
- ref: ref
- }, toolbarItemProps => (0,external_React_.createElement)(build_module_button, {
- label: title,
- isPressed: isActive,
- disabled: isDisabled,
- ...toolbarItemProps
- }, children));
+ ref: ref,
+ children: toolbarItemProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
+ label: title,
+ isPressed: isActive,
+ disabled: isDisabled,
+ ...toolbarItemProps,
+ children: children
+ })
+ });
}
/**
@@ -68009,14 +68340,14 @@ const ToolbarGroupContainer = ({
className,
children,
...props
-}) => (0,external_React_.createElement)("div", {
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: className,
- ...props
-}, children);
+ ...props,
+ children: children
+});
/* harmony default export */ const toolbar_group_container = (ToolbarGroupContainer);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar/toolbar-group/toolbar-group-collapsed.js
-
/**
* WordPress dependencies
*/
@@ -68028,6 +68359,7 @@ const ToolbarGroupContainer = ({
+
function ToolbarGroupCollapsed({
controls = [],
toggleProps,
@@ -68036,7 +68368,7 @@ function ToolbarGroupCollapsed({
// It'll contain state if `ToolbarGroup` is being used within
// `<Toolbar label="label" />`
const accessibleToolbarState = (0,external_wp_element_namespaceObject.useContext)(toolbar_context);
- const renderDropdownMenu = internalToggleProps => (0,external_React_.createElement)(dropdown_menu, {
+ const renderDropdownMenu = internalToggleProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown_menu, {
controls: controls,
toggleProps: {
...internalToggleProps,
@@ -68045,16 +68377,16 @@ function ToolbarGroupCollapsed({
...props
});
if (accessibleToolbarState) {
- return (0,external_React_.createElement)(toolbar_item, {
- ...toggleProps
- }, renderDropdownMenu);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toolbar_item, {
+ ...toggleProps,
+ children: renderDropdownMenu
+ });
}
return renderDropdownMenu(toggleProps);
}
/* harmony default export */ const toolbar_group_collapsed = (ToolbarGroupCollapsed);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar/toolbar-group/index.js
-
/**
* External dependencies
*/
@@ -68072,6 +68404,8 @@ function ToolbarGroupCollapsed({
+
+
function isNestedArray(arr) {
return Array.isArray(arr) && Array.isArray(arr[0]);
}
@@ -68120,7 +68454,7 @@ function ToolbarGroup({
if ((!controls || !controls.length) && !children) {
return null;
}
- const finalClassName = classnames_default()(
+ const finalClassName = dist_clsx(
// Unfortunately, there's legacy code referencing to `.components-toolbar`
// So we can't get rid of it
accessibleToolbarState ? 'components-toolbar-group' : 'components-toolbar', className);
@@ -68133,7 +68467,7 @@ function ToolbarGroup({
controlSets = [controls];
}
if (isCollapsed) {
- return (0,external_React_.createElement)(toolbar_group_collapsed, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toolbar_group_collapsed, {
label: title,
controls: controlSets,
className: finalClassName,
@@ -68141,14 +68475,14 @@ function ToolbarGroup({
...props
});
}
- return (0,external_React_.createElement)(toolbar_group_container, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(toolbar_group_container, {
className: finalClassName,
- ...props
- }, controlSets?.flatMap((controlSet, indexOfSet) => controlSet.map((control, indexOfControl) => (0,external_React_.createElement)(toolbar_button, {
- key: [indexOfSet, indexOfControl].join(),
- containerClassName: indexOfSet > 0 && indexOfControl === 0 ? 'has-left-divider' : undefined,
- ...control
- }))), children);
+ ...props,
+ children: [controlSets?.flatMap((controlSet, indexOfSet) => controlSet.map((control, indexOfControl) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toolbar_button, {
+ containerClassName: indexOfSet > 0 && indexOfControl === 0 ? 'has-left-divider' : undefined,
+ ...control
+ }, [indexOfSet, indexOfControl].join()))), children]
+ });
}
/* harmony default export */ const toolbar_group = (ToolbarGroup);
@@ -68243,7 +68577,7 @@ var useToolbar = createHook(
);
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(ToolbarScopedContextProvider, { value: store, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(ToolbarScopedContextProvider, { value: store, children: element }),
[store]
);
props = _4R3V3JGP_spreadValues({
@@ -68262,7 +68596,6 @@ if (false) {}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar/toolbar/toolbar-container.js
-
/**
* External dependencies
*/
@@ -68278,6 +68611,7 @@ if (false) {}
* Internal dependencies
*/
+
function UnforwardedToolbarContainer({
label,
...props
@@ -68287,22 +68621,23 @@ function UnforwardedToolbarContainer({
rtl: (0,external_wp_i18n_namespaceObject.isRTL)()
});
return (
+ /*#__PURE__*/
// This will provide state for `ToolbarButton`'s
- (0,external_React_.createElement)(toolbar_context.Provider, {
- value: toolbarStore
- }, (0,external_React_.createElement)(Toolbar, {
- ref: ref,
- "aria-label": label,
- store: toolbarStore,
- ...props
- }))
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)(toolbar_context.Provider, {
+ value: toolbarStore,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Toolbar, {
+ ref: ref,
+ "aria-label": label,
+ store: toolbarStore,
+ ...props
+ })
+ })
);
}
const ToolbarContainer = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedToolbarContainer);
/* harmony default export */ const toolbar_container = (ToolbarContainer);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar/toolbar/index.js
-
/**
* External dependencies
*/
@@ -68319,6 +68654,7 @@ const ToolbarContainer = (0,external_wp_element_namespaceObject.forwardRef)(Unfo
+
function UnforwardedToolbar({
className,
label,
@@ -68350,22 +68686,23 @@ function UnforwardedToolbar({
title: _title,
...restProps
} = props;
- return (0,external_React_.createElement)(toolbar_group, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toolbar_group, {
isCollapsed: false,
...restProps,
className: className
});
}
// `ToolbarGroup` already uses components-toolbar for compatibility reasons.
- const finalClassName = classnames_default()('components-accessible-toolbar', className, variant && `is-${variant}`);
- return (0,external_React_.createElement)(ContextSystemProvider, {
- value: contextSystemValue
- }, (0,external_React_.createElement)(toolbar_container, {
- className: finalClassName,
- label: label,
- ref: ref,
- ...props
- }));
+ const finalClassName = dist_clsx('components-accessible-toolbar', className, variant && `is-${variant}`);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ContextSystemProvider, {
+ value: contextSystemValue,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toolbar_container, {
+ className: finalClassName,
+ label: label,
+ ref: ref,
+ ...props
+ })
+ });
}
/**
@@ -68392,7 +68729,6 @@ const toolbar_Toolbar = (0,external_wp_element_namespaceObject.forwardRef)(Unfor
/* harmony default export */ const toolbar = (toolbar_Toolbar);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar/toolbar-dropdown-menu/index.js
-
/**
* WordPress dependencies
*/
@@ -68408,10 +68744,11 @@ const toolbar_Toolbar = (0,external_wp_element_namespaceObject.forwardRef)(Unfor
+
function ToolbarDropdownMenu(props, ref) {
const accessibleToolbarState = (0,external_wp_element_namespaceObject.useContext)(toolbar_context);
if (!accessibleToolbarState) {
- return (0,external_React_.createElement)(dropdown_menu, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown_menu, {
...props
});
}
@@ -68419,16 +68756,17 @@ function ToolbarDropdownMenu(props, ref) {
// ToolbarItem will pass all props to the render prop child, which will pass
// all props to the toggle of DropdownMenu. This means that ToolbarDropdownMenu
// has the same API as DropdownMenu.
- return (0,external_React_.createElement)(toolbar_item, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toolbar_item, {
ref: ref,
- ...props.toggleProps
- }, toolbarItemProps => (0,external_React_.createElement)(dropdown_menu, {
- ...props,
- popoverProps: {
- ...props.popoverProps
- },
- toggleProps: toolbarItemProps
- }));
+ ...props.toggleProps,
+ children: toolbarItemProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown_menu, {
+ ...props,
+ popoverProps: {
+ ...props.popoverProps
+ },
+ toggleProps: toolbarItemProps
+ })
+ });
}
/* harmony default export */ const toolbar_dropdown_menu = ((0,external_wp_element_namespaceObject.forwardRef)(ToolbarDropdownMenu));
@@ -68487,7 +68825,7 @@ const styles_DropdownMenu = true ? {
name: "16gsvie",
styles: "min-width:200px"
} : 0;
-const ResetLabel = emotion_styled_base_browser_esm("span", true ? {
+const ResetLabel = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "ews648u0"
} : 0)("color:", COLORS.theme.accentDarker10, ";font-size:11px;font-weight:500;line-height:1.4;", rtl({
marginLeft: space(3)
@@ -68573,7 +68911,6 @@ function useToolsPanelHeader(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tools-panel/tools-panel-header/component.js
-
/**
* External dependencies
*/
@@ -68596,6 +68933,9 @@ function useToolsPanelHeader(props) {
+
+
+
const DefaultControlsGroup = ({
itemClassName,
items,
@@ -68604,36 +68944,39 @@ const DefaultControlsGroup = ({
if (!items.length) {
return null;
}
- const resetSuffix = (0,external_React_.createElement)(ResetLabel, {
- "aria-hidden": true
- }, (0,external_wp_i18n_namespaceObject.__)('Reset'));
- return (0,external_React_.createElement)(external_React_.Fragment, null, items.map(([label, hasValue]) => {
- if (hasValue) {
- return (0,external_React_.createElement)(menu_item, {
- key: label,
- className: itemClassName,
- role: "menuitem",
- label: (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: The name of the control being reset e.g. "Padding".
- (0,external_wp_i18n_namespaceObject.__)('Reset %s'), label),
- onClick: () => {
- toggleItem(label);
- (0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.sprintf)(
+ const resetSuffix = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResetLabel, {
+ "aria-hidden": true,
+ children: (0,external_wp_i18n_namespaceObject.__)('Reset')
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: items.map(([label, hasValue]) => {
+ if (hasValue) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(menu_item, {
+ className: itemClassName,
+ role: "menuitem",
+ label: (0,external_wp_i18n_namespaceObject.sprintf)(
// translators: %s: The name of the control being reset e.g. "Padding".
- (0,external_wp_i18n_namespaceObject.__)('%s reset to default'), label), 'assertive');
- },
- suffix: resetSuffix
+ (0,external_wp_i18n_namespaceObject.__)('Reset %s'), label),
+ onClick: () => {
+ toggleItem(label);
+ (0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: The name of the control being reset e.g. "Padding".
+ (0,external_wp_i18n_namespaceObject.__)('%s reset to default'), label), 'assertive');
+ },
+ suffix: resetSuffix,
+ children: label
+ }, label);
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(menu_item, {
+ icon: library_check,
+ className: itemClassName,
+ role: "menuitemcheckbox",
+ isSelected: true,
+ "aria-disabled": true,
+ children: label
}, label);
- }
- return (0,external_React_.createElement)(menu_item, {
- key: label,
- icon: library_check,
- className: itemClassName,
- role: "menuitemcheckbox",
- isSelected: true,
- "aria-disabled": true
- }, label);
- }));
+ })
+ });
};
const OptionalControlsGroup = ({
items,
@@ -68642,32 +68985,34 @@ const OptionalControlsGroup = ({
if (!items.length) {
return null;
}
- return (0,external_React_.createElement)(external_React_.Fragment, null, items.map(([label, isSelected]) => {
- const itemLabel = isSelected ? (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: The name of the control being hidden and reset e.g. "Padding".
- (0,external_wp_i18n_namespaceObject.__)('Hide and reset %s'), label) : (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: The name of the control to display e.g. "Padding".
- (0,external_wp_i18n_namespaceObject.__)('Show %s'), label);
- return (0,external_React_.createElement)(menu_item, {
- key: label,
- icon: isSelected ? library_check : null,
- isSelected: isSelected,
- label: itemLabel,
- onClick: () => {
- if (isSelected) {
- (0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: The name of the control being reset e.g. "Padding".
- (0,external_wp_i18n_namespaceObject.__)('%s hidden and reset to default'), label), 'assertive');
- } else {
- (0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: The name of the control being reset e.g. "Padding".
- (0,external_wp_i18n_namespaceObject.__)('%s is now visible'), label), 'assertive');
- }
- toggleItem(label);
- },
- role: "menuitemcheckbox"
- }, label);
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: items.map(([label, isSelected]) => {
+ const itemLabel = isSelected ? (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: The name of the control being hidden and reset e.g. "Padding".
+ (0,external_wp_i18n_namespaceObject.__)('Hide and reset %s'), label) : (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: The name of the control to display e.g. "Padding".
+ (0,external_wp_i18n_namespaceObject.__)('Show %s'), label);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(menu_item, {
+ icon: isSelected ? library_check : null,
+ isSelected: isSelected,
+ label: itemLabel,
+ onClick: () => {
+ if (isSelected) {
+ (0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: The name of the control being reset e.g. "Padding".
+ (0,external_wp_i18n_namespaceObject.__)('%s hidden and reset to default'), label), 'assertive');
+ } else {
+ (0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: The name of the control being reset e.g. "Padding".
+ (0,external_wp_i18n_namespaceObject.__)('%s is now visible'), label), 'assertive');
+ }
+ toggleItem(label);
+ },
+ role: "menuitemcheckbox",
+ children: label
+ }, label);
+ })
+ });
};
const component_ToolsPanelHeader = (props, forwardedRef) => {
const {
@@ -68695,46 +69040,55 @@ const component_ToolsPanelHeader = (props, forwardedRef) => {
(0,external_wp_i18n_namespaceObject._x)('%s options', 'Button label to reveal tool panel options'), labelText);
const dropdownMenuDescriptionText = areAllOptionalControlsHidden ? (0,external_wp_i18n_namespaceObject.__)('All options are currently hidden') : undefined;
const canResetAll = [...defaultItems, ...optionalItems].some(([, isSelected]) => isSelected);
- return (0,external_React_.createElement)(h_stack_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
...headerProps,
- ref: forwardedRef
- }, (0,external_React_.createElement)(heading_component, {
- level: headingLevel,
- className: headingClassName
- }, labelText), hasMenuItems && (0,external_React_.createElement)(dropdown_menu, {
- ...dropdownMenuProps,
- icon: dropDownMenuIcon,
- label: dropDownMenuLabelText,
- menuProps: {
- className: dropdownMenuClassName
- },
- toggleProps: {
- isSmall: true,
- describedBy: dropdownMenuDescriptionText
- }
- }, () => (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(menu_group, {
- label: labelText
- }, (0,external_React_.createElement)(DefaultControlsGroup, {
- items: defaultItems,
- toggleItem: toggleItem,
- itemClassName: defaultControlsItemClassName
- }), (0,external_React_.createElement)(OptionalControlsGroup, {
- items: optionalItems,
- toggleItem: toggleItem
- })), (0,external_React_.createElement)(menu_group, null, (0,external_React_.createElement)(menu_item, {
- "aria-disabled": !canResetAll
- // @ts-expect-error - TODO: If this "tertiary" style is something we really want to allow on MenuItem,
- // we should rename it and explicitly allow it as an official API. All the other Button variants
- // don't make sense in a MenuItem context, and should be disallowed.
- ,
- variant: 'tertiary',
- onClick: () => {
- if (canResetAll) {
- resetAll();
- (0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.__)('All options reset'), 'assertive');
- }
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Reset all'))))));
+ ref: forwardedRef,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(heading_component, {
+ level: headingLevel,
+ className: headingClassName,
+ children: labelText
+ }), hasMenuItems && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown_menu, {
+ ...dropdownMenuProps,
+ icon: dropDownMenuIcon,
+ label: dropDownMenuLabelText,
+ menuProps: {
+ className: dropdownMenuClassName
+ },
+ toggleProps: {
+ size: 'small',
+ describedBy: dropdownMenuDescriptionText
+ },
+ children: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(menu_group, {
+ label: labelText,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DefaultControlsGroup, {
+ items: defaultItems,
+ toggleItem: toggleItem,
+ itemClassName: defaultControlsItemClassName
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OptionalControlsGroup, {
+ items: optionalItems,
+ toggleItem: toggleItem
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(menu_group, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(menu_item, {
+ "aria-disabled": !canResetAll
+ // @ts-expect-error - TODO: If this "tertiary" style is something we really want to allow on MenuItem,
+ // we should rename it and explicitly allow it as an official API. All the other Button variants
+ // don't make sense in a MenuItem context, and should be disallowed.
+ ,
+ variant: "tertiary",
+ onClick: () => {
+ if (canResetAll) {
+ resetAll();
+ (0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.__)('All options reset'), 'assertive');
+ }
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Reset all')
+ })
+ })]
+ })
+ })]
+ });
};
const ConnectedToolsPanelHeader = contextConnect(component_ToolsPanelHeader, 'ToolsPanelHeader');
/* harmony default export */ const tools_panel_header_component = (ConnectedToolsPanelHeader);
@@ -68904,17 +69258,16 @@ function useToolsPanel(props) {
});
}, [panelItems, setMenuItems, menuItemOrder]);
- // Force a menu item to be checked.
- // This is intended for use with default panel items. They are displayed
- // separately to optional items and have different display states,
- // we need to update that when their value is customized.
- const flagItemCustomization = (0,external_wp_element_namespaceObject.useCallback)((label, group = 'default') => {
+ // Updates the status of the panel’s menu items. For default items the
+ // value represents whether it differs from the default and for optional
+ // items whether the item is shown.
+ const flagItemCustomization = (0,external_wp_element_namespaceObject.useCallback)((value, label, group = 'default') => {
setMenuItems(items => {
const newState = {
...items,
[group]: {
...items[group],
- [label]: true
+ [label]: value
}
};
return newState;
@@ -69010,7 +69363,6 @@ function useToolsPanel(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tools-panel/tools-panel/component.js
-
/**
* External dependencies
*/
@@ -69023,6 +69375,8 @@ function useToolsPanel(props) {
+
+
const UnconnectedToolsPanel = (props, forwardedRef) => {
const {
children,
@@ -69034,19 +69388,21 @@ const UnconnectedToolsPanel = (props, forwardedRef) => {
dropdownMenuProps,
...toolsPanelProps
} = useToolsPanel(props);
- return (0,external_React_.createElement)(grid_component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(grid_component, {
...toolsPanelProps,
columns: 2,
- ref: forwardedRef
- }, (0,external_React_.createElement)(ToolsPanelContext.Provider, {
- value: panelContext
- }, (0,external_React_.createElement)(tools_panel_header_component, {
- label: label,
- resetAll: resetAllItems,
- toggleItem: toggleItem,
- headingLevel: headingLevel,
- dropdownMenuProps: dropdownMenuProps
- }), children));
+ ref: forwardedRef,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ToolsPanelContext.Provider, {
+ value: panelContext,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tools_panel_header_component, {
+ label: label,
+ resetAll: resetAllItems,
+ toggleItem: toggleItem,
+ headingLevel: headingLevel,
+ dropdownMenuProps: dropdownMenuProps
+ }), children]
+ })
+ });
};
/**
@@ -69196,16 +69552,14 @@ function useToolsPanelItem(props) {
const wasMenuItemChecked = (0,external_wp_compose_namespaceObject.usePrevious)(isMenuItemChecked);
const isRegistered = menuItems?.[menuGroup]?.[label] !== undefined;
const isValueSet = hasValue();
- const wasValueSet = (0,external_wp_compose_namespaceObject.usePrevious)(isValueSet);
- const newValueSet = isValueSet && !wasValueSet;
-
- // Notify the panel when an item's value has been set.
+ // Notify the panel when an item's value has changed except for optional
+ // items without value because the item should not cause itself to hide.
(0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!newValueSet) {
+ if (!isShownByDefault && !isValueSet) {
return;
}
- flagItemCustomization(label, menuGroup);
- }, [newValueSet, menuGroup, label, flagItemCustomization]);
+ flagItemCustomization(isValueSet, label, menuGroup);
+ }, [isValueSet, menuGroup, label, flagItemCustomization, isShownByDefault]);
// Determine if the panel item's corresponding menu is being toggled and
// trigger appropriate callback if it is.
@@ -69219,7 +69573,7 @@ function useToolsPanelItem(props) {
if (isMenuItemChecked && !isValueSet && !wasMenuItemChecked) {
onSelect?.();
}
- if (!isMenuItemChecked && wasMenuItemChecked) {
+ if (!isMenuItemChecked && isValueSet && wasMenuItemChecked) {
onDeselect?.();
}
}, [hasMatchingPanel, isMenuItemChecked, isRegistered, isResetting, isValueSet, wasMenuItemChecked, onSelect, onDeselect]);
@@ -69244,7 +69598,6 @@ function useToolsPanelItem(props) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tools-panel/tools-panel-item/component.js
-
/**
* External dependencies
*/
@@ -69255,6 +69608,7 @@ function useToolsPanelItem(props) {
+
// This wraps controls to be conditionally displayed within a tools panel. It
// prevents props being applied to HTML elements that would make them invalid.
const UnconnectedToolsPanelItem = (props, forwardedRef) => {
@@ -69265,15 +69619,16 @@ const UnconnectedToolsPanelItem = (props, forwardedRef) => {
...toolsPanelItemProps
} = useToolsPanelItem(props);
if (!isShown) {
- return shouldRenderPlaceholder ? (0,external_React_.createElement)(component, {
+ return shouldRenderPlaceholder ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
...toolsPanelItemProps,
ref: forwardedRef
}) : null;
}
- return (0,external_React_.createElement)(component, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
...toolsPanelItemProps,
- ref: forwardedRef
- }, children);
+ ref: forwardedRef,
+ children: children
+ });
};
const component_ToolsPanelItem = contextConnect(UnconnectedToolsPanelItem, 'ToolsPanelItem');
/* harmony default export */ const tools_panel_item_component = (component_ToolsPanelItem);
@@ -69288,7 +69643,6 @@ const useRovingTabIndexContext = () => (0,external_wp_element_namespaceObject.us
const RovingTabIndexProvider = RovingTabIndexContext.Provider;
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tree-grid/roving-tab-index.js
-
/**
* WordPress dependencies
*/
@@ -69304,6 +69658,7 @@ const RovingTabIndexProvider = RovingTabIndexContext.Provider;
*
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/components/src/tree-grid/README.md
*/
+
function RovingTabIndex({
children
}) {
@@ -69316,13 +69671,13 @@ function RovingTabIndex({
lastFocusedElement,
setLastFocusedElement
}), [lastFocusedElement]);
- return (0,external_React_.createElement)(RovingTabIndexProvider, {
- value: providerValue
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RovingTabIndexProvider, {
+ value: providerValue,
+ children: children
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tree-grid/index.js
-
/**
* WordPress dependencies
*/
@@ -69334,6 +69689,7 @@ function RovingTabIndex({
* Internal dependencies
*/
+
/**
* Return focusables in a row element, excluding those from other branches
* nested within the row.
@@ -69555,15 +69911,21 @@ ref) {
/* Disable reason: A treegrid is implemented using a table element. */
/* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */
- return (0,external_React_.createElement)(RovingTabIndex, null, (0,external_React_.createElement)("div", {
- role: "application",
- "aria-label": applicationAriaLabel
- }, (0,external_React_.createElement)("table", {
- ...props,
- role: "treegrid",
- onKeyDown: onKeyDown,
- ref: ref
- }, (0,external_React_.createElement)("tbody", null, children))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RovingTabIndex, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ role: "application",
+ "aria-label": applicationAriaLabel,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("table", {
+ ...props,
+ role: "treegrid",
+ onKeyDown: onKeyDown,
+ ref: ref,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("tbody", {
+ children: children
+ })
+ })
+ })
+ });
/* eslint-enable jsx-a11y/no-noninteractive-element-to-interactive-role */
}
@@ -69636,7 +69998,6 @@ const TreeGrid = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedT
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tree-grid/row.js
-
/**
* WordPress dependencies
*/
@@ -69654,15 +70015,16 @@ function UnforwardedTreeGridRow({
isExpanded,
...props
}, ref) {
- return (0,external_React_.createElement)("tr", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("tr", {
...props,
ref: ref,
role: "row",
"aria-level": level,
"aria-posinset": positionInSet,
"aria-setsize": setSize,
- "aria-expanded": isExpanded
- }, children);
+ "aria-expanded": isExpanded,
+ children: children
+ });
}
/**
@@ -69676,7 +70038,6 @@ const TreeGridRow = (0,external_wp_element_namespaceObject.forwardRef)(Unforward
/* harmony default export */ const tree_grid_row = (TreeGridRow);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tree-grid/roving-tab-index-item.js
-
/**
* WordPress dependencies
*/
@@ -69686,6 +70047,7 @@ const TreeGridRow = (0,external_wp_element_namespaceObject.forwardRef)(Unforward
* Internal dependencies
*/
+
const RovingTabIndexItem = (0,external_wp_element_namespaceObject.forwardRef)(function UnforwardedRovingTabIndexItem({
children,
as: Component,
@@ -69717,15 +70079,17 @@ const RovingTabIndexItem = (0,external_wp_element_namespaceObject.forwardRef)(fu
if (typeof children === 'function') {
return children(allProps);
}
- if (!Component) return null;
- return (0,external_React_.createElement)(Component, {
- ...allProps
- }, children);
+ if (!Component) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
+ ...allProps,
+ children: children
+ });
});
/* harmony default export */ const roving_tab_index_item = (RovingTabIndexItem);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tree-grid/item.js
-
/**
* WordPress dependencies
*/
@@ -69735,14 +70099,16 @@ const RovingTabIndexItem = (0,external_wp_element_namespaceObject.forwardRef)(fu
* Internal dependencies
*/
+
function UnforwardedTreeGridItem({
children,
...props
}, ref) {
- return (0,external_React_.createElement)(roving_tab_index_item, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(roving_tab_index_item, {
ref: ref,
- ...props
- }, children);
+ ...props,
+ children: children
+ });
}
/**
@@ -69756,7 +70122,6 @@ const TreeGridItem = (0,external_wp_element_namespaceObject.forwardRef)(Unforwar
/* harmony default export */ const tree_grid_item = (TreeGridItem);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tree-grid/cell.js
-
/**
* WordPress dependencies
*/
@@ -69766,17 +70131,23 @@ const TreeGridItem = (0,external_wp_element_namespaceObject.forwardRef)(Unforwar
* Internal dependencies
*/
+
+
function UnforwardedTreeGridCell({
children,
withoutGridItem = false,
...props
}, ref) {
- return (0,external_React_.createElement)("td", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("td", {
...props,
- role: "gridcell"
- }, withoutGridItem ? (0,external_React_.createElement)(external_React_.Fragment, null, children) : (0,external_React_.createElement)(tree_grid_item, {
- ref: ref
- }, children));
+ role: "gridcell",
+ children: withoutGridItem ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: children
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tree_grid_item, {
+ ref: ref,
+ children: children
+ })
+ });
}
/**
@@ -69790,7 +70161,6 @@ const TreeGridCell = (0,external_wp_element_namespaceObject.forwardRef)(Unforwar
/* harmony default export */ const cell = (TreeGridCell);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/isolated-event-container/index.js
-
/**
* External dependencies
*/
@@ -69800,6 +70170,7 @@ const TreeGridCell = (0,external_wp_element_namespaceObject.forwardRef)(Unforwar
*/
+
function stopPropagation(event) {
event.stopPropagation();
}
@@ -69811,7 +70182,7 @@ const IsolatedEventContainer = (0,external_wp_element_namespaceObject.forwardRef
// 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 (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...props,
ref: ref,
onMouseDown: stopPropagation
@@ -69822,28 +70193,18 @@ const IsolatedEventContainer = (0,external_wp_element_namespaceObject.forwardRef
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot-fills.js
/**
- * External dependencies
- */
-
-
-/**
* WordPress dependencies
*/
+
/**
* Internal dependencies
*/
function useSlotFills(name) {
const registry = (0,external_wp_element_namespaceObject.useContext)(slot_fill_context);
- const fills = useSnapshot(registry.fills, {
- sync: true
- });
- // The important bit here is that this call ensures that the hook
- // only causes a re-render if the "fills" of a given slot name
- // change, not any fills.
- return fills.get(name);
+ return (0,external_wp_compose_namespaceObject.useObservableValue)(registry.fills, name);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/z-stack/styles.js
@@ -69853,7 +70214,7 @@ function z_stack_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have trie
* External dependencies
*/
-const ZStackChildView = emotion_styled_base_browser_esm("div", true ? {
+const ZStackChildView = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "ebn2ljm1"
} : 0)("&:not( :first-of-type ){", ({
offsetAmount
@@ -69868,7 +70229,7 @@ var z_stack_styles_ref = true ? {
name: "rs0gp6",
styles: "grid-row-start:1;grid-column-start:1"
} : 0;
-const ZStackView = emotion_styled_base_browser_esm("div", true ? {
+const ZStackView = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "ebn2ljm0"
} : 0)("display:inline-grid;grid-auto-flow:column;position:relative;&>", ZStackChildView, "{position:relative;justify-self:start;", ({
isLayered
@@ -69876,7 +70237,6 @@ const ZStackView = emotion_styled_base_browser_esm("div", true ? {
z_stack_styles_ref : undefined, ";}" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/z-stack/component.js
-
/**
* External dependencies
*/
@@ -69892,6 +70252,7 @@ z_stack_styles_ref : undefined, ";}" + ( true ? "" : 0));
+
function UnconnectedZStack(props, forwardedRef) {
const {
children,
@@ -69909,18 +70270,19 @@ function UnconnectedZStack(props, forwardedRef) {
// the item's index, so that items can correctly stack at the right distance
const offsetAmount = isLayered ? offset * index : offset;
const key = (0,external_wp_element_namespaceObject.isValidElement)(child) ? child.key : index;
- return (0,external_React_.createElement)(ZStackChildView, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ZStackChildView, {
offsetAmount: offsetAmount,
zIndex: zIndex,
- key: key
- }, child);
+ children: child
+ }, key);
});
- return (0,external_React_.createElement)(ZStackView, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ZStackView, {
...otherProps,
className: className,
isLayered: isLayered,
- ref: forwardedRef
- }, clonedChildren);
+ ref: forwardedRef,
+ children: clonedChildren
+ });
}
/**
@@ -69944,13 +70306,13 @@ const ZStack = contextConnect(UnconnectedZStack, 'ZStack');
/* harmony default export */ const z_stack_component = (ZStack);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/navigate-regions/index.js
-
/**
* WordPress dependencies
*/
+
const defaultShortcuts = {
previous: [{
modifier: 'ctrlShift',
@@ -70053,14 +70415,14 @@ function useNavigateRegions(shortcuts = defaultShortcuts) {
/* harmony default export */ const navigate_regions = ((0,external_wp_compose_namespaceObject.createHigherOrderComponent)(Component => ({
shortcuts,
...props
-}) => (0,external_React_.createElement)("div", {
- ...useNavigateRegions(shortcuts)
-}, (0,external_React_.createElement)(Component, {
- ...props
-})), 'navigateRegions'));
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...useNavigateRegions(shortcuts),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
+ ...props
+ })
+}), 'navigateRegions'));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-constrained-tabbing/index.js
-
/**
* WordPress dependencies
*/
@@ -70074,19 +70436,20 @@ function useNavigateRegions(shortcuts = defaultShortcuts) {
* navigate away from the wrapped component is implemented by other means, usually by pressing
* the Escape key or using a specific UI control, e.g. a "Close" button.
*/
+
const withConstrainedTabbing = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => function ComponentWithConstrainedTabbing(props) {
const ref = (0,external_wp_compose_namespaceObject.useConstrainedTabbing)();
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
ref: ref,
- tabIndex: -1
- }, (0,external_React_.createElement)(WrappedComponent, {
- ...props
- }));
+ tabIndex: -1,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
+ ...props
+ })
+ });
}, 'withConstrainedTabbing');
/* harmony default export */ const with_constrained_tabbing = (withConstrainedTabbing);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-fallback-styles/index.js
-
/**
* External dependencies
*/
@@ -70097,6 +70460,8 @@ const withConstrainedTabbing = (0,external_wp_compose_namespaceObject.createHigh
*/
+
+
/* harmony default export */ const with_fallback_styles = (mapNodeToProps => (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => {
return class extends external_wp_element_namespaceObject.Component {
constructor(props) {
@@ -70136,13 +70501,14 @@ const withConstrainedTabbing = (0,external_wp_compose_namespaceObject.createHigh
}
}
render() {
- const wrappedComponent = (0,external_React_.createElement)(WrappedComponent, {
+ const wrappedComponent = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
...this.props,
...this.state.fallbackStyles
});
- return this.props.node ? wrappedComponent : (0,external_React_.createElement)("div", {
- ref: this.bindRef
- }, " ", wrappedComponent, " ");
+ return this.props.node ? wrappedComponent : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ref: this.bindRef,
+ children: [" ", wrappedComponent, " "]
+ });
}
};
}, 'withFallbackStyles'));
@@ -70150,13 +70516,13 @@ const withConstrainedTabbing = (0,external_wp_compose_namespaceObject.createHigh
;// CONCATENATED MODULE: external ["wp","hooks"]
const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-filters/index.js
-
/**
* WordPress dependencies
*/
+
const ANIMATION_FRAME_PERIOD = 16;
/**
@@ -70241,7 +70607,7 @@ function withFilters(hookName) {
}
}
render() {
- return (0,external_React_.createElement)(FilteredComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FilteredComponent, {
...this.props
});
}
@@ -70280,7 +70646,6 @@ function withFilters(hookName) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-return/index.js
-
/**
* WordPress dependencies
*/
@@ -70296,6 +70661,7 @@ function withFilters(hookName) {
*
* @return Whether object is component-like.
*/
+
function isComponentLike(object) {
return object instanceof external_wp_element_namespaceObject.Component || typeof object === 'function';
}
@@ -70320,11 +70686,12 @@ options => {
} = {}) => WrappedComponent => {
const WithFocusReturn = props => {
const ref = (0,external_wp_compose_namespaceObject.useFocusReturn)(onFocusReturn);
- return (0,external_React_.createElement)("div", {
- ref: ref
- }, (0,external_React_.createElement)(WrappedComponent, {
- ...props
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ref: ref,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
+ ...props
+ })
+ });
};
return WithFocusReturn;
};
@@ -70345,7 +70712,6 @@ const with_focus_return_Provider = ({
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-notices/index.js
-
/**
* External dependencies
*/
@@ -70361,6 +70727,7 @@ const with_focus_return_Provider = ({
* Internal dependencies
*/
+
/**
* Override the default edit UI to include notices if supported.
*
@@ -70422,16 +70789,16 @@ const with_focus_return_Provider = ({
...props,
noticeList,
noticeOperations,
- noticeUI: noticeList.length > 0 && (0,external_React_.createElement)(list, {
+ noticeUI: noticeList.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(list, {
className: "components-with-notices-ui",
notices: noticeList,
onRemove: noticeOperations.removeNotice
})
};
- return isForwardRef ? (0,external_React_.createElement)(OriginalComponent, {
+ return isForwardRef ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OriginalComponent, {
...propsOut,
ref: ref
- }) : (0,external_React_.createElement)(OriginalComponent, {
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OriginalComponent, {
...propsOut
});
}
@@ -70448,94 +70815,6 @@ const with_focus_return_Provider = ({
return Component;
}, 'withNotices'));
-;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/progress-bar/styles.js
-
-function progress_bar_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
- */
-
-const animateProgressBar = emotion_react_browser_esm_keyframes({
- '0%': {
- left: '-50%'
- },
- '100%': {
- left: '100%'
- }
-});
-
-// Width of the indicator for the indeterminate progress bar
-const INDETERMINATE_TRACK_WIDTH = 50;
-const styles_Track = emotion_styled_base_browser_esm("div", true ? {
- target: "e15u147w2"
-} : 0)("position:relative;overflow:hidden;width:100%;max-width:160px;height:", config_values.borderWidthFocus, ";background-color:color-mix(\n\t\tin srgb,\n\t\tvar( --wp-components-color-foreground, ", COLORS.gray[900], " ),\n\t\ttransparent 90%\n\t);border-radius:", config_values.radiusBlockUi, ";outline:2px solid transparent;outline-offset:2px;" + ( true ? "" : 0));
-const Indicator = emotion_styled_base_browser_esm("div", true ? {
- target: "e15u147w1"
-} : 0)("display:inline-block;position:absolute;top:0;height:100%;border-radius:", config_values.radiusBlockUi, ";background-color:color-mix(\n\t\tin srgb,\n\t\tvar( --wp-components-color-foreground, ", COLORS.gray[900], " ),\n\t\ttransparent 10%\n\t);outline:2px solid transparent;outline-offset:-2px;", ({
- isIndeterminate,
- value
-}) => isIndeterminate ? /*#__PURE__*/emotion_react_browser_esm_css({
- animationDuration: '1.5s',
- animationTimingFunction: 'ease-in-out',
- animationIterationCount: 'infinite',
- animationName: animateProgressBar,
- width: `${INDETERMINATE_TRACK_WIDTH}%`
-}, true ? "" : 0, true ? "" : 0) : /*#__PURE__*/emotion_react_browser_esm_css({
- width: `${value}%`,
- transition: 'width 0.4s ease-in-out'
-}, true ? "" : 0, true ? "" : 0), ";" + ( true ? "" : 0));
-const ProgressElement = emotion_styled_base_browser_esm("progress", true ? {
- target: "e15u147w0"
-} : 0)( true ? {
- name: "11fb690",
- styles: "position:absolute;top:0;left:0;opacity:0;width:100%;height:100%"
-} : 0);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/progress-bar/index.js
-
-/**
- * External dependencies
- */
-
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-function UnforwardedProgressBar(props, ref) {
- const {
- className,
- value,
- ...progressProps
- } = props;
- const isIndeterminate = !Number.isFinite(value);
- return (0,external_React_.createElement)(styles_Track, {
- className: className
- }, (0,external_React_.createElement)(Indicator, {
- isIndeterminate: isIndeterminate,
- value: value
- }), (0,external_React_.createElement)(ProgressElement, {
- max: 100,
- value: value,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Loading …'),
- ref: ref,
- ...progressProps
- }));
-}
-const ProgressBar = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedProgressBar);
-/* harmony default export */ const progress_bar = (ProgressBar);
-
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/YGMEBI3A.js
"use client";
@@ -70583,7 +70862,7 @@ var CheckboxCheckedContext = (0,external_React_.createContext)(false);
// src/checkbox/checkbox-check.tsx
-var checkmark = /* @__PURE__ */ (0,jsx_runtime.jsx)(
+var checkmark = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
"svg",
{
display: "block",
@@ -70595,7 +70874,7 @@ var checkmark = /* @__PURE__ */ (0,jsx_runtime.jsx)(
viewBox: "0 0 16 16",
height: "1em",
width: "1em",
- children: /* @__PURE__ */ (0,jsx_runtime.jsx)("polyline", { points: "4,8 7,12 12,4" })
+ children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("polyline", { points: "4,8 7,12 12,4" })
}
);
function getChildren(props) {
@@ -71069,7 +71348,7 @@ var usePopoverDisclosure = createHook(
});
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(PopoverScopedContextProvider, { value: store, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(PopoverScopedContextProvider, { value: store, children: element }),
[store]
);
props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
@@ -71341,12 +71620,12 @@ var useMenuButton = createHook(
});
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(MenuContextProvider, { value: store, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuContextProvider, { value: store, children: element }),
[store]
);
if (hasParentMenu) {
props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
- render: /* @__PURE__ */ (0,jsx_runtime.jsx)(Role.div, { render: props.render })
+ render: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Role.div, { render: props.render })
});
}
const id = useId(props.id);
@@ -71415,17 +71694,18 @@ if (false) {}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right-small.js
-
/**
* WordPress dependencies
*/
-const chevronRightSmall = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronRightSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"
+ })
+});
/* harmony default export */ const chevron_right_small = (chevronRightSmall);
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/HHNFDKU2.js
@@ -71542,7 +71822,7 @@ var useMenuList = createHook(
});
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(MenuScopedContextProvider, { value: store, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuScopedContextProvider, { value: store, children: element }),
[store]
);
const ariaLabelledBy = useAriaLabelledBy(_4R3V3JGP_spreadValues({ store }, props));
@@ -72247,7 +72527,7 @@ var useCheckbox = createHook(
});
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(CheckboxCheckedContext.Provider, { value: isChecked, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(CheckboxCheckedContext.Provider, { value: isChecked, children: element }),
[isChecked]
);
props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
@@ -72486,7 +72766,7 @@ var useMenuItemRadio = createHook(
const isChecked = store.useState((state) => state.values[name] === value);
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(MenuItemCheckedContext.Provider, { value: !!isChecked, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuItemCheckedContext.Provider, { value: !!isChecked, children: element }),
[isChecked]
);
props = _4R3V3JGP_spreadValues({
@@ -72698,16 +72978,16 @@ const styles_DropdownMenuCheckboxItem = /*#__PURE__*/emotion_styled_base_browser
const styles_DropdownMenuRadioItem = /*#__PURE__*/emotion_styled_base_browser_esm(MenuItemRadio, true ? {
target: "e1kdzosf9"
} : 0)(baseItem, ";" + ( true ? "" : 0));
-const ItemPrefixWrapper = emotion_styled_base_browser_esm("span", true ? {
+const ItemPrefixWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "e1kdzosf8"
} : 0)("grid-column:1;", styles_DropdownMenuCheckboxItem, ">&,", styles_DropdownMenuRadioItem, ">&{min-width:", space(6), ";}", styles_DropdownMenuCheckboxItem, ">&,", styles_DropdownMenuRadioItem, ">&,&:not( :empty ){margin-inline-end:", space(2), ";}display:flex;align-items:center;justify-content:center;color:", COLORS.gray['700'], ";[data-active-item]:not( [data-focus-visible] )>&,[aria-disabled='true']>&{color:inherit;}" + ( true ? "" : 0));
-const DropdownMenuItemContentWrapper = emotion_styled_base_browser_esm("div", true ? {
+const DropdownMenuItemContentWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "e1kdzosf7"
} : 0)("grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:", space(3), ";pointer-events:none;" + ( true ? "" : 0));
-const DropdownMenuItemChildrenWrapper = emotion_styled_base_browser_esm("div", true ? {
+const DropdownMenuItemChildrenWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "e1kdzosf6"
} : 0)("flex:1;display:inline-flex;flex-direction:column;gap:", space(1), ";" + ( true ? "" : 0));
-const ItemSuffixWrapper = emotion_styled_base_browser_esm("span", true ? {
+const ItemSuffixWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
target: "e1kdzosf5"
} : 0)("flex:0 1 fit-content;min-width:0;width:fit-content;display:flex;align-items:center;justify-content:center;gap:", space(3), ";color:", COLORS.gray['700'], ";[data-active-item]:not( [data-focus-visible] ) *:not(", dropdown_menu_v2_styles_DropdownMenu, ") &,[aria-disabled='true'] *:not(", dropdown_menu_v2_styles_DropdownMenu, ") &{color:inherit;}" + ( true ? "" : 0));
const styles_DropdownMenuGroup = /*#__PURE__*/emotion_styled_base_browser_esm(menu_group_MenuGroup, true ? {
@@ -72734,7 +73014,6 @@ const styles_DropdownMenuItemHelpText = /*#__PURE__*/emotion_styled_base_browser
} : 0)("font-size:", font('helpText.fontSize'), ";line-height:16px;color:", COLORS.gray['700'], ";[data-active-item]:not( [data-focus-visible] ) *:not( ", dropdown_menu_v2_styles_DropdownMenu, " ) &,[aria-disabled='true'] *:not( ", dropdown_menu_v2_styles_DropdownMenu, " ) &{color:inherit;}" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dropdown-menu-v2/index.js
-
/**
* External dependencies
*/
@@ -72755,6 +73034,9 @@ const styles_DropdownMenuItemHelpText = /*#__PURE__*/emotion_styled_base_browser
+
+
+
const DropdownMenuContext = (0,external_wp_element_namespaceObject.createContext)(undefined);
const DropdownMenuItem = (0,external_wp_element_namespaceObject.forwardRef)(function DropdownMenuItem({
prefix,
@@ -72764,13 +73046,22 @@ const DropdownMenuItem = (0,external_wp_element_namespaceObject.forwardRef)(func
...props
}, ref) {
const dropdownMenuContext = (0,external_wp_element_namespaceObject.useContext)(DropdownMenuContext);
- return (0,external_React_.createElement)(styles_DropdownMenuItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_DropdownMenuItem, {
ref: ref,
...props,
accessibleWhenDisabled: true,
hideOnClick: hideOnClick,
- store: dropdownMenuContext?.store
- }, (0,external_React_.createElement)(ItemPrefixWrapper, null, prefix), (0,external_React_.createElement)(DropdownMenuItemContentWrapper, null, (0,external_React_.createElement)(DropdownMenuItemChildrenWrapper, null, children), suffix && (0,external_React_.createElement)(ItemSuffixWrapper, null, suffix)));
+ store: dropdownMenuContext?.store,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemPrefixWrapper, {
+ children: prefix
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(DropdownMenuItemContentWrapper, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuItemChildrenWrapper, {
+ children: children
+ }), suffix && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemSuffixWrapper, {
+ children: suffix
+ })]
+ })]
+ });
});
const DropdownMenuCheckboxItem = (0,external_wp_element_namespaceObject.forwardRef)(function DropdownMenuCheckboxItem({
suffix,
@@ -72779,34 +73070,43 @@ const DropdownMenuCheckboxItem = (0,external_wp_element_namespaceObject.forwardR
...props
}, ref) {
const dropdownMenuContext = (0,external_wp_element_namespaceObject.useContext)(DropdownMenuContext);
- return (0,external_React_.createElement)(styles_DropdownMenuCheckboxItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_DropdownMenuCheckboxItem, {
ref: ref,
...props,
accessibleWhenDisabled: true,
hideOnClick: hideOnClick,
- store: dropdownMenuContext?.store
- }, (0,external_React_.createElement)(MenuItemCheck, {
store: dropdownMenuContext?.store,
- render: (0,external_React_.createElement)(ItemPrefixWrapper, null)
- // Override some ariakit inline styles
- ,
- style: {
- width: 'auto',
- height: 'auto'
- }
- }, (0,external_React_.createElement)(build_module_icon, {
- icon: library_check,
- size: 24
- })), (0,external_React_.createElement)(DropdownMenuItemContentWrapper, null, (0,external_React_.createElement)(DropdownMenuItemChildrenWrapper, null, children), suffix && (0,external_React_.createElement)(ItemSuffixWrapper, null, suffix)));
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuItemCheck, {
+ store: dropdownMenuContext?.store,
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemPrefixWrapper, {})
+ // Override some ariakit inline styles
+ ,
+ style: {
+ width: 'auto',
+ height: 'auto'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: library_check,
+ size: 24
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(DropdownMenuItemContentWrapper, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuItemChildrenWrapper, {
+ children: children
+ }), suffix && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemSuffixWrapper, {
+ children: suffix
+ })]
+ })]
+ });
});
-const radioCheck = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+const radioCheck = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Circle, {
- cx: 12,
- cy: 12,
- r: 3
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Circle, {
+ cx: 12,
+ cy: 12,
+ r: 3
+ })
+});
const DropdownMenuRadioItem = (0,external_wp_element_namespaceObject.forwardRef)(function DropdownMenuRadioItem({
suffix,
children,
@@ -72814,29 +73114,37 @@ const DropdownMenuRadioItem = (0,external_wp_element_namespaceObject.forwardRef)
...props
}, ref) {
const dropdownMenuContext = (0,external_wp_element_namespaceObject.useContext)(DropdownMenuContext);
- return (0,external_React_.createElement)(styles_DropdownMenuRadioItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_DropdownMenuRadioItem, {
ref: ref,
...props,
accessibleWhenDisabled: true,
hideOnClick: hideOnClick,
- store: dropdownMenuContext?.store
- }, (0,external_React_.createElement)(MenuItemCheck, {
store: dropdownMenuContext?.store,
- render: (0,external_React_.createElement)(ItemPrefixWrapper, null)
- // Override some ariakit inline styles
- ,
- style: {
- width: 'auto',
- height: 'auto'
- }
- }, (0,external_React_.createElement)(build_module_icon, {
- icon: radioCheck,
- size: 24
- })), (0,external_React_.createElement)(DropdownMenuItemContentWrapper, null, (0,external_React_.createElement)(DropdownMenuItemChildrenWrapper, null, children), suffix && (0,external_React_.createElement)(ItemSuffixWrapper, null, suffix)));
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuItemCheck, {
+ store: dropdownMenuContext?.store,
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemPrefixWrapper, {})
+ // Override some ariakit inline styles
+ ,
+ style: {
+ width: 'auto',
+ height: 'auto'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: radioCheck,
+ size: 24
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(DropdownMenuItemContentWrapper, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuItemChildrenWrapper, {
+ children: children
+ }), suffix && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemSuffixWrapper, {
+ children: suffix
+ })]
+ })]
+ });
});
const DropdownMenuGroup = (0,external_wp_element_namespaceObject.forwardRef)(function DropdownMenuGroup(props, ref) {
const dropdownMenuContext = (0,external_wp_element_namespaceObject.useContext)(DropdownMenuContext);
- return (0,external_React_.createElement)(styles_DropdownMenuGroup, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_DropdownMenuGroup, {
ref: ref,
...props,
store: dropdownMenuContext?.store
@@ -72912,44 +73220,50 @@ const dropdown_menu_v2_UnconnectedDropdownMenu = (props, ref) => {
direction: computedDirection
}
}), [computedDirection]);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(MenuButton, {
- ref: ref,
- store: dropdownMenuStore,
- render: dropdownMenuStore.parent ? (0,external_wp_element_namespaceObject.cloneElement)(trigger, {
- // Add submenu arrow, unless a `suffix` is explicitly specified
- suffix: (0,external_React_.createElement)(external_React_.Fragment, null, trigger.props.suffix, (0,external_React_.createElement)(SubmenuChevronIcon, {
- "aria-hidden": "true",
- icon: chevron_right_small,
- size: 24,
- preserveAspectRatio: "xMidYMid slice"
- }))
- }) : trigger
- }), (0,external_React_.createElement)(dropdown_menu_v2_styles_DropdownMenu, {
- ...otherProps,
- modal: modal,
- store: dropdownMenuStore
- // Root menu has an 8px distance from its trigger,
- // otherwise 0 (which causes the submenu to slightly overlap)
- ,
- gutter: gutter !== null && gutter !== void 0 ? gutter : dropdownMenuStore.parent ? 0 : 8
- // Align nested menu by the same (but opposite) amount
- // as the menu container's padding.
- ,
- shift: shift !== null && shift !== void 0 ? shift : dropdownMenuStore.parent ? -4 : 0,
- hideOnHoverOutside: false,
- "data-side": appliedPlacementSide,
- variant: variant,
- wrapperProps: wrapperProps,
- hideOnEscape: hideOnEscape,
- unmountOnHide: true
- }, (0,external_React_.createElement)(DropdownMenuContext.Provider, {
- value: contextValue
- }, children)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuButton, {
+ ref: ref,
+ store: dropdownMenuStore,
+ render: dropdownMenuStore.parent ? (0,external_wp_element_namespaceObject.cloneElement)(trigger, {
+ // Add submenu arrow, unless a `suffix` is explicitly specified
+ suffix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [trigger.props.suffix, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SubmenuChevronIcon, {
+ "aria-hidden": "true",
+ icon: chevron_right_small,
+ size: 24,
+ preserveAspectRatio: "xMidYMid slice"
+ })]
+ })
+ }) : trigger
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown_menu_v2_styles_DropdownMenu, {
+ ...otherProps,
+ modal: modal,
+ store: dropdownMenuStore
+ // Root menu has an 8px distance from its trigger,
+ // otherwise 0 (which causes the submenu to slightly overlap)
+ ,
+ gutter: gutter !== null && gutter !== void 0 ? gutter : dropdownMenuStore.parent ? 0 : 8
+ // Align nested menu by the same (but opposite) amount
+ // as the menu container's padding.
+ ,
+ shift: shift !== null && shift !== void 0 ? shift : dropdownMenuStore.parent ? -4 : 0,
+ hideOnHoverOutside: false,
+ "data-side": appliedPlacementSide,
+ variant: variant,
+ wrapperProps: wrapperProps,
+ hideOnEscape: hideOnEscape,
+ unmountOnHide: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuContext.Provider, {
+ value: contextValue,
+ children: children
+ })
+ })]
+ });
};
const dropdown_menu_v2_DropdownMenu = contextConnect(dropdown_menu_v2_UnconnectedDropdownMenu, 'DropdownMenu');
const DropdownMenuSeparator = (0,external_wp_element_namespaceObject.forwardRef)(function DropdownMenuSeparator(props, ref) {
const dropdownMenuContext = (0,external_wp_element_namespaceObject.useContext)(DropdownMenuContext);
- return (0,external_React_.createElement)(styles_DropdownMenuSeparator, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_DropdownMenuSeparator, {
ref: ref,
...props,
store: dropdownMenuContext?.store,
@@ -72957,14 +73271,14 @@ const DropdownMenuSeparator = (0,external_wp_element_namespaceObject.forwardRef)
});
});
const DropdownMenuItemLabel = (0,external_wp_element_namespaceObject.forwardRef)(function DropdownMenuItemLabel(props, ref) {
- return (0,external_React_.createElement)(styles_DropdownMenuItemLabel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_DropdownMenuItemLabel, {
numberOfLines: 1,
ref: ref,
...props
});
});
const DropdownMenuItemHelpText = (0,external_wp_element_namespaceObject.forwardRef)(function DropdownMenuItemHelpText(props, ref) {
- return (0,external_React_.createElement)(styles_DropdownMenuItemHelpText, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_DropdownMenuItemHelpText, {
numberOfLines: 2,
ref: ref,
...props
@@ -72990,7 +73304,7 @@ const colorVariables = ({
const shades = Object.entries(colors.gray || {}).map(([k, v]) => `--wp-components-color-gray-${k}: ${v};`).join('');
return [/*#__PURE__*/emotion_react_browser_esm_css("--wp-components-color-accent:", colors.accent, ";--wp-components-color-accent-darker-10:", colors.accentDarker10, ";--wp-components-color-accent-darker-20:", colors.accentDarker20, ";--wp-components-color-accent-inverted:", colors.accentInverted, ";--wp-components-color-background:", colors.background, ";--wp-components-color-foreground:", colors.foreground, ";--wp-components-color-foreground-inverted:", colors.foregroundInverted, ";", shades, ";" + ( true ? "" : 0), true ? "" : 0)];
};
-const theme_styles_Wrapper = emotion_styled_base_browser_esm("div", true ? {
+const theme_styles_Wrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "e1krjpvb0"
} : 0)( true ? {
name: "1a3idx0",
@@ -73053,7 +73367,9 @@ function warnContrastIssues(issues) {
}
}
function generateAccentDependentColors(accent) {
- if (!accent) return {};
+ if (!accent) {
+ return {};
+ }
return {
accent,
accentDarker10: w(accent).darken(0.1).toHex(),
@@ -73062,7 +73378,9 @@ function generateAccentDependentColors(accent) {
};
}
function generateBackgroundDependentColors(background) {
- if (!background) return {};
+ if (!background) {
+ return {};
+ }
const foreground = getForegroundForColor(background);
return {
background,
@@ -73100,7 +73418,6 @@ function generateShades(background, foreground) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/theme/index.js
-
/**
* WordPress dependencies
*/
@@ -73133,6 +73450,7 @@ function generateShades(background, foreground) {
* };
* ```
*/
+
function Theme({
accent,
background,
@@ -73144,7 +73462,7 @@ function Theme({
accent,
background
})), className), [accent, background, className, cx]);
- return (0,external_React_.createElement)(theme_styles_Wrapper, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(theme_styles_Wrapper, {
className: classes,
...props
});
@@ -73166,7 +73484,6 @@ const useTabsContext = () => (0,external_wp_element_namespaceObject.useContext)(
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tabs/styles.js
-function tabs_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
*/
@@ -73179,22 +73496,17 @@ function tabs_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried t
*/
-
-const TabListWrapper = emotion_styled_base_browser_esm("div", true ? {
+const TabListWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
target: "enfox0g2"
-} : 0)( true ? {
- name: "xbm4q1",
- styles: "display:flex;align-items:stretch;flex-direction:row;&[aria-orientation='vertical']{flex-direction:column;}"
-} : 0);
+} : 0)("position:relative;display:flex;align-items:stretch;flex-direction:row;&[aria-orientation='vertical']{flex-direction:column;}@media not ( prefers-reduced-motion: reduce ){&.is-animation-enabled::after{transition-property:left,top,width,height;transition-duration:0.2s;transition-timing-function:ease-out;}}&::after{content:'';position:absolute;pointer-events:none;outline:2px solid transparent;outline-offset:-1px;}&:not( [aria-orientation='vertical'] )::after{left:var( --indicator-left );bottom:0;width:var( --indicator-width );height:0;border-bottom:var( --wp-admin-border-width-focus ) solid ", COLORS.theme.accent, ";}&[aria-orientation='vertical']::after{opacity:0;right:0;top:var( --indicator-top );height:var( --indicator-height );border-right:var( --wp-admin-border-width-focus ) solid ", COLORS.theme.accent, ";}" + ( true ? "" : 0));
const styles_Tab = /*#__PURE__*/emotion_styled_base_browser_esm(Tab, true ? {
target: "enfox0g1"
-} : 0)("&{display:inline-flex;align-items:center;position:relative;border-radius:0;height:", space(12), ";background:transparent;border:none;box-shadow:none;cursor:pointer;padding:3px ", space(4), ";margin-left:0;font-weight:500;&[aria-disabled='true']{cursor:default;opacity:0.3;}&:hover{color:", COLORS.theme.accent, ";}&:focus:not( :disabled ){position:relative;box-shadow:none;outline:none;}&::after{content:'';position:absolute;right:0;bottom:0;left:0;pointer-events:none;background:", COLORS.theme.accent, ";height:calc( 0 * var( --wp-admin-border-width-focus ) );border-radius:0;transition:all 0.1s linear;", reduceMotion('transition'), ";}&[aria-selected='true']::after{height:calc( 1 * var( --wp-admin-border-width-focus ) );outline:2px solid transparent;outline-offset:-1px;}&::before{content:'';position:absolute;top:", space(3), ";right:", space(3), ";bottom:", space(3), ";left:", space(3), ";pointer-events:none;box-shadow:0 0 0 0 transparent;border-radius:2px;transition:all 0.1s linear;", reduceMotion('transition'), ";}&:focus-visible::before{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ", COLORS.theme.accent, ";outline:2px solid transparent;}}" + ( true ? "" : 0));
+} : 0)("&{display:inline-flex;align-items:center;position:relative;border-radius:0;height:", space(12), ";background:transparent;border:none;box-shadow:none;cursor:pointer;padding:3px ", space(4), ";margin-left:0;font-weight:500;&[aria-disabled='true']{cursor:default;opacity:0.3;}&:hover{color:", COLORS.theme.accent, ";}&:focus:not( :disabled ){position:relative;box-shadow:none;outline:none;}&::before{content:'';position:absolute;top:", space(3), ";right:", space(3), ";bottom:", space(3), ";left:", space(3), ";pointer-events:none;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ", COLORS.theme.accent, ";border-radius:2px;opacity:0;@media not ( prefers-reduced-motion ){transition:opacity 0.1s linear;}}&:focus-visible::before{opacity:1;outline:2px solid transparent;}}" + ( true ? "" : 0));
const styles_TabPanel = /*#__PURE__*/emotion_styled_base_browser_esm(TabPanel, true ? {
target: "enfox0g0"
} : 0)("&:focus{box-shadow:none;outline:none;}&:focus-visible{border-radius:2px;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ", COLORS.theme.accent, ";outline:2px solid transparent;outline-offset:0;}" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tabs/tab.js
-
/**
* WordPress dependencies
*/
@@ -73208,6 +73520,7 @@ const styles_TabPanel = /*#__PURE__*/emotion_styled_base_browser_esm(TabPanel,
+
const tab_Tab = (0,external_wp_element_namespaceObject.forwardRef)(function Tab({
children,
tabId,
@@ -73225,18 +73538,18 @@ const tab_Tab = (0,external_wp_element_namespaceObject.forwardRef)(function Tab(
instanceId
} = context;
const instancedTabId = `${instanceId}-${tabId}`;
- return (0,external_React_.createElement)(styles_Tab, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_Tab, {
ref: ref,
store: store,
id: instancedTabId,
disabled: disabled,
render: render,
- ...otherProps
- }, children);
+ ...otherProps,
+ children: children
+ });
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tabs/tablist.js
-
/**
* External dependencies
*/
@@ -73255,11 +73568,94 @@ const tab_Tab = (0,external_wp_element_namespaceObject.forwardRef)(function Tab(
+
+
+function useTrackElementOffset(targetElement, onUpdate) {
+ const [indicatorPosition, setIndicatorPosition] = (0,external_wp_element_namespaceObject.useState)({
+ left: 0,
+ top: 0,
+ width: 0,
+ height: 0
+ });
+
+ // TODO: replace with useEventCallback or similar when officially available.
+ const updateCallbackRef = (0,external_wp_element_namespaceObject.useRef)(onUpdate);
+ (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
+ updateCallbackRef.current = onUpdate;
+ });
+ const observedElementRef = (0,external_wp_element_namespaceObject.useRef)();
+ const resizeObserverRef = (0,external_wp_element_namespaceObject.useRef)();
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (targetElement === observedElementRef.current) {
+ return;
+ }
+ observedElementRef.current = targetElement !== null && targetElement !== void 0 ? targetElement : undefined;
+ function updateIndicator(element) {
+ setIndicatorPosition({
+ // Workaround to prevent unwanted scrollbars, see:
+ // https://github.com/WordPress/gutenberg/pull/61979
+ left: Math.max(element.offsetLeft - 1, 0),
+ top: Math.max(element.offsetTop - 1, 0),
+ width: parseFloat(getComputedStyle(element).width),
+ height: parseFloat(getComputedStyle(element).height)
+ });
+ updateCallbackRef.current?.();
+ }
+
+ // Set up a ResizeObserver.
+ if (!resizeObserverRef.current) {
+ resizeObserverRef.current = new ResizeObserver(() => {
+ if (observedElementRef.current) {
+ updateIndicator(observedElementRef.current);
+ }
+ });
+ }
+ const {
+ current: resizeObserver
+ } = resizeObserverRef;
+
+ // Observe new element.
+ if (targetElement) {
+ updateIndicator(targetElement);
+ resizeObserver.observe(targetElement);
+ }
+ return () => {
+ // Unobserve previous element.
+ if (observedElementRef.current) {
+ resizeObserver.unobserve(observedElementRef.current);
+ }
+ };
+ }, [targetElement]);
+ return indicatorPosition;
+}
+function useOnValueUpdate(value, onUpdate) {
+ const previousValueRef = (0,external_wp_element_namespaceObject.useRef)(value);
+
+ // TODO: replace with useEventCallback or similar when officially available.
+ const updateCallbackRef = (0,external_wp_element_namespaceObject.useRef)(onUpdate);
+ (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
+ updateCallbackRef.current = onUpdate;
+ });
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (previousValueRef.current !== value) {
+ updateCallbackRef.current({
+ previousValue: previousValueRef.current
+ });
+ previousValueRef.current = value;
+ }
+ }, [value]);
+}
const TabList = (0,external_wp_element_namespaceObject.forwardRef)(function TabList({
children,
...otherProps
}, ref) {
const context = useTabsContext();
+ const selectedId = context?.store.useState('selectedId');
+ const indicatorPosition = useTrackElementOffset(context?.store.item(selectedId)?.element);
+ const [animationEnabled, setAnimationEnabled] = (0,external_wp_element_namespaceObject.useState)(false);
+ useOnValueUpdate(selectedId, ({
+ previousValue
+ }) => previousValue && setAnimationEnabled(true));
if (!context) {
true ? external_wp_warning_default()('`Tabs.TabList` must be wrapped in a `Tabs` component.') : 0;
return null;
@@ -73268,7 +73664,6 @@ const TabList = (0,external_wp_element_namespaceObject.forwardRef)(function TabL
store
} = context;
const {
- selectedId,
activeId,
selectOnMove
} = store.useState();
@@ -73288,17 +73683,31 @@ const TabList = (0,external_wp_element_namespaceObject.forwardRef)(function TabL
setActiveId(selectedId);
}
};
- return (0,external_React_.createElement)(tab_list_TabList, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tab_list_TabList, {
ref: ref,
store: store,
- render: (0,external_React_.createElement)(TabListWrapper, null),
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TabListWrapper, {
+ onTransitionEnd: event => {
+ if (event.pseudoElement === '::after') {
+ setAnimationEnabled(false);
+ }
+ }
+ }),
onBlur: onBlur,
- ...otherProps
- }, children);
+ ...otherProps,
+ style: {
+ '--indicator-left': `${indicatorPosition.left}px`,
+ '--indicator-top': `${indicatorPosition.top}px`,
+ '--indicator-width': `${indicatorPosition.width}px`,
+ '--indicator-height': `${indicatorPosition.height}px`,
+ ...otherProps.style
+ },
+ className: dist_clsx(animationEnabled ? 'is-animation-enabled' : '', otherProps.className),
+ children: children
+ });
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tabs/tabpanel.js
-
/**
* WordPress dependencies
*/
@@ -73312,6 +73721,7 @@ const TabList = (0,external_wp_element_namespaceObject.forwardRef)(function TabL
+
const tabpanel_TabPanel = (0,external_wp_element_namespaceObject.forwardRef)(function TabPanel({
children,
tabId,
@@ -73329,7 +73739,7 @@ const tabpanel_TabPanel = (0,external_wp_element_namespaceObject.forwardRef)(fun
} = context;
const instancedTabId = `${instanceId}-${tabId}`;
const selectedId = store.useState(state => state.selectedId);
- return (0,external_React_.createElement)(styles_TabPanel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_TabPanel, {
ref: ref,
store: store
// For TabPanel, the id passed here is the id attribute of the DOM
@@ -73339,12 +73749,12 @@ const tabpanel_TabPanel = (0,external_wp_element_namespaceObject.forwardRef)(fun
id: `${instancedTabId}-view`,
tabId: instancedTabId,
focusable: focusable,
- ...otherProps
- }, selectedId === instancedTabId && children);
+ ...otherProps,
+ children: selectedId === instancedTabId && children
+ });
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tabs/index.js
-
/**
* External dependencies
*/
@@ -73365,9 +73775,10 @@ const tabpanel_TabPanel = (0,external_wp_element_namespaceObject.forwardRef)(fun
+
function Tabs({
selectOnMove = true,
- initialTabId,
+ defaultTabId,
orientation = 'horizontal',
onSelect,
children,
@@ -73377,7 +73788,7 @@ function Tabs({
const store = useTabStore({
selectOnMove,
orientation,
- defaultSelectedId: initialTabId && `${instanceId}-${initialTabId}`,
+ defaultSelectedId: defaultTabId && `${instanceId}-${defaultTabId}`,
setSelectedId: selectedId => {
const strippedDownId = typeof selectedId === 'string' ? selectedId.replace(`${instanceId}-`, '') : selectedId;
onSelect?.(strippedDownId);
@@ -73407,7 +73818,7 @@ function Tabs({
// Ariakit internally refers to disabled tabs as `dimmed`.
return !item.dimmed;
});
- const initialTab = items.find(item => item.id === `${instanceId}-${initialTabId}`);
+ const initialTab = items.find(item => item.id === `${instanceId}-${defaultTabId}`);
// Handle selecting the initial tab.
(0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
@@ -73418,8 +73829,8 @@ function Tabs({
// Wait for the denoted initial tab to be declared before making a
// selection. This ensures that if a tab is declared lazily it can
// still receive initial selection, as well as ensuring no tab is
- // selected if an invalid `initialTabId` is provided.
- if (initialTabId && !initialTab) {
+ // selected if an invalid `defaultTabId` is provided.
+ if (defaultTabId && !initialTab) {
return;
}
@@ -73437,7 +73848,7 @@ function Tabs({
setSelectedId(null);
}
}
- }, [firstEnabledTab, initialTab, initialTabId, isControlled, items, selectedId, setSelectedId]);
+ }, [firstEnabledTab, initialTab, defaultTabId, isControlled, items, selectedId, setSelectedId]);
// Handle the currently selected tab becoming disabled.
(0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
@@ -73453,7 +73864,7 @@ function Tabs({
}
// If the currently selected tab becomes disabled, fall back to the
- // `initialTabId` if possible. Otherwise select the first
+ // `defaultTabId` if possible. Otherwise select the first
// enabled tab (if there is one).
if (initialTab && !initialTab.dimmed) {
setSelectedId(initialTab.id);
@@ -73477,6 +73888,13 @@ function Tabs({
}
}, [isControlled, selectedTab, selectedTabId, setSelectedId]);
(0,external_wp_element_namespaceObject.useEffect)(() => {
+ // If there is no active tab, fallback to place focus on the first enabled tab
+ // so there is always an active element
+ if (selectedTabId === null && !activeId && firstEnabledTab?.id) {
+ setActiveId(firstEnabledTab.id);
+ }
+ }, [selectedTabId, activeId, firstEnabledTab?.id, setActiveId]);
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
if (!isControlled) {
return;
}
@@ -73499,9 +73917,10 @@ function Tabs({
store,
instanceId
}), [store, instanceId]);
- return (0,external_React_.createElement)(TabsContext.Provider, {
- value: contextValue
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TabsContext.Provider, {
+ value: contextValue,
+ children: children
+ });
}
Tabs.TabList = TabList;
Tabs.Tab = tab_Tab;
@@ -73519,7 +73938,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
const {
lock,
unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/components');
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/components');
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/private-apis.js
/**
@@ -73539,7 +73958,6 @@ const {
-
const privateApis = {};
lock(privateApis, {
CompositeV2: Composite,
@@ -73551,7 +73969,6 @@ lock(privateApis, {
__experimentalPopoverLegacyPositionToPlacement: positionToPlacement,
createPrivateSlotFill: createPrivateSlotFill,
ComponentsContext: ComponentsContext,
- ProgressBar: progress_bar,
Tabs: tabs,
Theme: theme,
DropdownMenuV2: dropdown_menu_v2_DropdownMenu,
@@ -73688,6 +74105,7 @@ lock(privateApis, {
+
// Higher-Order Components.
diff --git a/wp-includes/js/dist/components.min.js b/wp-includes/js/dist/components.min.js
index 95bc414..1e2532b 100644
--- a/wp-includes/js/dist/components.min.js
+++ b/wp-includes/js/dist/components.min.js
@@ -1,10 +1,5 @@
/*! This file is auto-generated */
-(()=>{var e,t,n={5755:(e,t)=>{var n;
-/*!
- Copyright (c) 2018 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<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},66:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}function l(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?i.arrayMerge(e,n,i):s(e,n,i):r(n,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},1637:(e,t,n)=>{"use strict";var r=n(3062);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,a=n.alignWithTop,s=n.alignWithLeft,l=n.offsetTop||0,c=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),m=r.offset(e),p=r.outerHeight(e),h=r.outerWidth(e),g=void 0,v=void 0,b=void 0,y=void 0,x=void 0,w=void 0,E=void 0,_=void 0,S=void 0,C=void 0;f?(E=t,C=r.height(E),S=r.width(E),_={left:r.scrollLeft(E),top:r.scrollTop(E)},x={left:m.left-_.left-c,top:m.top-_.top-l},w={left:m.left+h-(_.left+S)+d,top:m.top+p-(_.top+C)+u},y=_):(g=r.offset(t),v=t.clientHeight,b=t.clientWidth,y={left:t.scrollLeft,top:t.scrollTop},x={left:m.left-(g.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-c,top:m.top-(g.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-l},w={left:m.left+h-(g.left+b+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:m.top+p-(g.top+v+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),x.top<0||w.top>0?!0===a?r.scrollTop(t,y.top+x.top):!1===a?r.scrollTop(t,y.top+w.top):x.top<0?r.scrollTop(t,y.top+x.top):r.scrollTop(t,y.top+w.top):i||((a=void 0===a||!!a)?r.scrollTop(t,y.top+x.top):r.scrollTop(t,y.top+w.top)),o&&(x.left<0||w.left>0?!0===s?r.scrollLeft(t,y.left+x.left):!1===s?r.scrollLeft(t,y.left+w.left):x.left<0?r.scrollLeft(t,y.left+x.left):r.scrollLeft(t,y.left+w.left):i||((s=void 0===s||!!s)?r.scrollLeft(t,y.left+x.left):r.scrollLeft(t,y.left+w.left)))}},5428:(e,t,n)=>{"use strict";e.exports=n(1637)},3062:e=>{"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function r(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function o(e){return r(e)}function i(e){return r(e,!0)}function a(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=o(r),t.top+=i(r),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),l=/^(top|right|bottom|left)$/,c="currentStyle",u="runtimeStyle",d="left";var f=void 0;function m(e,t){for(var n=0;n<e.length;n++)t(e[n])}function p(e){return"border-box"===f(e,"boxSizing")}"undefined"!=typeof window&&(f=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,i=n||o.defaultView.getComputedStyle(e,null);return i&&(r=i.getPropertyValue(t)||i[t]),r}:function(e,t){var n=e[c]&&e[c][t];if(s.test(n)&&!l.test(t)){var r=e.style,o=r[d],i=e[u][d];e[u][d]=e[c][d],r[d]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[d]=o,e[u][d]=i}return""===n?"auto":n});var h=["margin","border","padding"],g=-1,v=2,b=1;function y(e,t,n){var r=0,o=void 0,i=void 0,a=void 0;for(i=0;i<t.length;i++)if(o=t[i])for(a=0;a<n.length;a++){var s=void 0;s="border"===o?o+n[a]+"Width":o+n[a],r+=parseFloat(f(e,s))||0}return r}function x(e){return null!=e&&e==e.window}var w={};function E(e,t,n){if(x(e))return"width"===t?w.viewportWidth(e):w.viewportHeight(e);if(9===e.nodeType)return"width"===t?w.docWidth(e):w.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,i=(f(e),p(e)),a=0;(null==o||o<=0)&&(o=void 0,(null==(a=f(e,t))||Number(a)<0)&&(a=e.style[t]||0),a=parseFloat(a)||0),void 0===n&&(n=i?b:g);var s=void 0!==o||i,l=o||a;if(n===g)return s?l-y(e,["border","padding"],r):a;if(s){var c=n===v?-y(e,["border"],r):y(e,["margin"],r);return l+(n===b?0:c)}return a+y(e,h.slice(n),r)}m(["Width","Height"],(function(e){w["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],w["viewport"+e](n))},w["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var _={position:"absolute",visibility:"hidden",display:"block"};function S(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=E.apply(void 0,n):function(e,t,n){var r={},o=e.style,i=void 0;for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i],o[i]=t[i]);for(i in n.call(e),t)t.hasOwnProperty(i)&&(o[i]=r[i])}(e,_,(function(){t=E.apply(void 0,n)})),t}function C(e,t,r){var o=r;if("object"!==(void 0===t?"undefined":n(t)))return void 0!==o?("number"==typeof o&&(o+="px"),void(e.style[t]=o)):f(e,t);for(var i in t)t.hasOwnProperty(i)&&C(e,i,t[i])}m(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);w["outer"+t]=function(t,n){return t&&S(t,e,n?0:b)};var n="width"===e?["Left","Right"]:["Top","Bottom"];w[e]=function(t,r){if(void 0===r)return t&&S(t,e,g);if(t){f(t);return p(t)&&(r+=y(t,["padding","border"],n)),C(t,e,r)}}})),e.exports=t({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return a(e);!function(e,t){"static"===C(e,"position")&&(e.style.position="relative");var n=a(e),r={},o=void 0,i=void 0;for(i in t)t.hasOwnProperty(i)&&(o=parseFloat(C(e,i))||0,r[i]=o+t[i]-n[i]);C(e,r)}(e,t)},isWindow:x,each:m,css:C,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(x(e)){if(void 0===t)return o(e);window.scrollTo(t,i(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(x(e)){if(void 0===t)return i(e);window.scrollTo(o(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},w)},2287:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,f=60115,m=60116,p=60121,h=60122,g=60117,v=60129,b=60131;
+(()=>{var e,t,n={66:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}function l(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var s=Array.isArray(n);return s===Array.isArray(e)?s?i.arrayMerge(e,n,i):a(e,n,i):r(n,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},2287:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,s=60114,a=60109,l=60110,c=60112,u=60113,d=60120,p=60115,h=60116,f=60121,m=60122,g=60117,v=60129,b=60131;
/** @license React v17.0.2
* react-is.production.min.js
*
@@ -12,7 +7,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */if("function"==typeof Symbol&&Symbol.for){var y=Symbol.for;n=y("react.element"),r=y("react.portal"),o=y("react.fragment"),i=y("react.strict_mode"),a=y("react.profiler"),s=y("react.provider"),l=y("react.context"),c=y("react.forward_ref"),u=y("react.suspense"),d=y("react.suspense_list"),f=y("react.memo"),m=y("react.lazy"),p=y("react.block"),h=y("react.server.block"),g=y("react.fundamental"),v=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case m:case f:case s:return e;default:return t}}case r:return t}}}},1915:(e,t,n)=>{"use strict";n(2287)},7734:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(t[o]!==n[o])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},8924:(e,t)=>{var n={};n.parse=function(){var e={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]+\.?))/},t="";function n(e){var n=new Error(t+": "+e);throw n.source=t,n}function r(){var e=f(o);return t.length>0&&n("Invalid input not EOF"),e}function o(){return i("linear-gradient",e.linearGradient,s)||i("repeating-linear-gradient",e.repeatingLinearGradient,s)||i("radial-gradient",e.radialGradient,l)||i("repeating-radial-gradient",e.repeatingRadialGradient,l)}function i(t,r,o){return a(r,(function(r){var i=o();return i&&(b(e.comma)||n("Missing comma before color stops")),{type:t,orientation:i,colorStops:f(m)}}))}function a(t,r){var o=b(t);if(o)return b(e.startCall)||n("Missing ("),result=r(o),b(e.endCall)||n("Missing )"),result}function s(){return v("directional",e.sideOrCorner,1)||v("angular",e.angleValue,1)}function l(){var n,r,o=c();return o&&((n=[]).push(o),r=t,b(e.comma)&&((o=c())?n.push(o):t=r)),n}function c(){var e=function(){var e=v("shape",/^(circle)/i,0);e&&(e.style=g()||u());return e}()||function(){var e=v("shape",/^(ellipse)/i,0);e&&(e.style=h()||u());return e}();if(e)e.at=function(){if(v("position",/^at/,0)){var e=d();return e||n("Missing positioning value"),e}}();else{var t=d();t&&(e={type:"default-radial",at:t})}return e}function u(){return v("extent-keyword",e.extentKeywords,1)}function d(){var e={x:h(),y:h()};if(e.x||e.y)return{type:"position",value:e}}function f(t){var r=t(),o=[];if(r)for(o.push(r);b(e.comma);)(r=t())?o.push(r):n("One extra comma");return o}function m(){var t=v("hex",e.hexColor,1)||a(e.rgbaColor,(function(){return{type:"rgba",value:f(p)}}))||a(e.rgbColor,(function(){return{type:"rgb",value:f(p)}}))||v("literal",e.literalColor,0);return t||n("Expected color definition"),t.length=h(),t}function p(){return b(e.number)[1]}function h(){return v("%",e.percentageValue,1)||v("position-keyword",e.positionKeywords,1)||g()}function g(){return v("px",e.pixelValue,1)||v("em",e.emValue,1)}function v(e,t,n){var r=b(t);if(r)return{type:e,value:r[n]}}function b(e){var n,r;return(r=/^[\n\r\t\s]+/.exec(t))&&y(r[0].length),(n=e.exec(t))&&y(n[0].length),n}function y(e){t=t.substr(e)}return function(e){return t=e.toString(),r()}}(),t.parse=(n||{}).parse},9664:e=>{e.exports=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){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,s=e.findChunks,l=void 0===s?r:s,c=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:l({autoEscape:t,caseSensitive:a,sanitize:c,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,a=e.searchWords,s=e.textToHighlight;return s=o(s),a.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),a=void 0;a=i.exec(s);){var l=a.index,c=i.lastIndex;c>l&&e.push({highlight:!1,start:l,end:c}),a.index===i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r};function i(e){return e}}])},1880:(e,t,n)=>{"use strict";var r=n(1178),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=m(n);o&&o!==p&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),h=l(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||h&&h[v]||s&&s[v])){var b=f(n,v);try{c(t,v,b)}catch(e){}}}}return t}},2950:(e,t)=>{"use strict";
+ */if("function"==typeof Symbol&&Symbol.for){var x=Symbol.for;n=x("react.element"),r=x("react.portal"),o=x("react.fragment"),i=x("react.strict_mode"),s=x("react.profiler"),a=x("react.provider"),l=x("react.context"),c=x("react.forward_ref"),u=x("react.suspense"),d=x("react.suspense_list"),p=x("react.memo"),h=x("react.lazy"),f=x("react.block"),m=x("react.server.block"),g=x("react.fundamental"),v=x("react.debug_trace_mode"),b=x("react.legacy_hidden")}function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case s:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case p:case a:return e;default:return t}}case r:return t}}}},1915:(e,t,n)=>{"use strict";n(2287)},7734:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(t[o]!==n[o])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var s=i[o];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},8924:(e,t)=>{var n={};n.parse=function(){var e={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]+\.?))/},t="";function n(e){var n=new Error(t+": "+e);throw n.source=t,n}function r(){var e=p(o);return t.length>0&&n("Invalid input not EOF"),e}function o(){return i("linear-gradient",e.linearGradient,a)||i("repeating-linear-gradient",e.repeatingLinearGradient,a)||i("radial-gradient",e.radialGradient,l)||i("repeating-radial-gradient",e.repeatingRadialGradient,l)}function i(t,r,o){return s(r,(function(r){var i=o();return i&&(b(e.comma)||n("Missing comma before color stops")),{type:t,orientation:i,colorStops:p(h)}}))}function s(t,r){var o=b(t);if(o)return b(e.startCall)||n("Missing ("),result=r(o),b(e.endCall)||n("Missing )"),result}function a(){return v("directional",e.sideOrCorner,1)||v("angular",e.angleValue,1)}function l(){var n,r,o=c();return o&&((n=[]).push(o),r=t,b(e.comma)&&((o=c())?n.push(o):t=r)),n}function c(){var e=function(){var e=v("shape",/^(circle)/i,0);e&&(e.style=g()||u());return e}()||function(){var e=v("shape",/^(ellipse)/i,0);e&&(e.style=m()||u());return e}();if(e)e.at=function(){if(v("position",/^at/,0)){var e=d();return e||n("Missing positioning value"),e}}();else{var t=d();t&&(e={type:"default-radial",at:t})}return e}function u(){return v("extent-keyword",e.extentKeywords,1)}function d(){var e={x:m(),y:m()};if(e.x||e.y)return{type:"position",value:e}}function p(t){var r=t(),o=[];if(r)for(o.push(r);b(e.comma);)(r=t())?o.push(r):n("One extra comma");return o}function h(){var t=v("hex",e.hexColor,1)||s(e.rgbaColor,(function(){return{type:"rgba",value:p(f)}}))||s(e.rgbColor,(function(){return{type:"rgb",value:p(f)}}))||v("literal",e.literalColor,0);return t||n("Expected color definition"),t.length=m(),t}function f(){return b(e.number)[1]}function m(){return v("%",e.percentageValue,1)||v("position-keyword",e.positionKeywords,1)||g()}function g(){return v("px",e.pixelValue,1)||v("em",e.emValue,1)}function v(e,t,n){var r=b(t);if(r)return{type:e,value:r[n]}}function b(e){var n,r;return(r=/^[\n\r\t\s]+/.exec(t))&&x(r[0].length),(n=e.exec(t))&&x(n[0].length),n}function x(e){t=t.substr(e)}return function(e){return t=e.toString(),r()}}(),t.parse=(n||{}).parse},9664:e=>{e.exports=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){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,s=void 0!==i&&i,a=e.findChunks,l=void 0===a?r:a,c=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:l({autoEscape:t,caseSensitive:s,sanitize:c,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,s=e.searchWords,a=e.textToHighlight;return a=o(a),s.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),s=void 0;s=i.exec(a);){var l=s.index,c=i.lastIndex;c>l&&e.push({highlight:!1,start:l,end:c}),s.index===i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r};function i(e){return e}}])},1880:(e,t,n)=>{"use strict";var r=n(1178),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=h(n);o&&o!==f&&e(t,o,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var a=l(t),m=l(n),g=0;g<s.length;++g){var v=s[g];if(!(i[v]||r&&r[v]||m&&m[v]||a&&a[v])){var b=p(n,v);try{c(t,v,b)}catch(e){}}}}return t}},2950:(e,t)=>{"use strict";
/** @license React v16.13.1
* react-is.production.min.js
*
@@ -20,16 +15,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case m:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case h:case l:return e;default:return t}}case o:return t}}}function E(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=m,t.isAsyncMode=function(e){return E(e)||w(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===m||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},1178:(e,t,n)=>{"use strict";e.exports=n(2950)},628:(e,t,n)=>{"use strict";var r=n(4067);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint: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}},5826:(e,t,n)=>{e.exports=n(628)()},4067:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3394:(e,t,n)=>{"use strict";
-/**
- * @license React
- * react-jsx-runtime.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var r=n(1609),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},4922:(e,t,n)=>{"use strict";e.exports=n(3394)},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),o=new RegExp(n,"");function i(e){return t[e]}var a=function(e){return e.replace(r,i)};e.exports=a,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=a},8477:(e,t,n)=>{"use strict";
+ */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,x=n?Symbol.for("react.responder"):60118,y=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case a:case s:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}function _(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return _(e)||w(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===x||e.$$typeof===y||e.$$typeof===v)},t.typeOf=w},1178:(e,t,n)=>{"use strict";e.exports=n(2950)},628:(e,t,n)=>{"use strict";var r=n(4067);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==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,bigint: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}},5826:(e,t,n)=>{e.exports=n(628)()},4067:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),o=new RegExp(n,"");function i(e){return t[e]}var s=function(e){return e.replace(r,i)};e.exports=s,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=s},8477:(e,t,n)=>{"use strict";
/**
* @license React
* use-sync-external-store-shim.production.min.js
@@ -38,18 +24,18 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var r=n(1609);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},422:(e,t,n)=>{"use strict";e.exports=n(8477)},1609:e=>{"use strict";e.exports=window.React}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};(()=>{"use strict";o.r(i),o.d(i,{AnglePickerControl:()=>zy,Animate:()=>vl,Autocomplete:()=>Sw,BaseControl:()=>iy,BlockQuotation:()=>n.BlockQuotation,Button:()=>my,ButtonGroup:()=>Ok,Card:()=>gP,CardBody:()=>kP,CardDivider:()=>AP,CardFooter:()=>zP,CardHeader:()=>FP,CardMedia:()=>jP,CheckboxControl:()=>VP,Circle:()=>n.Circle,ClipboardButton:()=>$P,ColorIndicator:()=>DE,ColorPalette:()=>JS,ColorPicker:()=>MS,ComboboxControl:()=>II,CustomGradientPicker:()=>OT,CustomSelectControl:()=>EM,Dashicon:()=>cy,DatePicker:()=>fD,DateTimePicker:()=>AD,Disabled:()=>HD,Draggable:()=>UD,DropZone:()=>qD,DropZoneProvider:()=>YD,Dropdown:()=>FE,DropdownMenu:()=>QT,DuotonePicker:()=>nA,DuotoneSwatch:()=>ZD,ExternalLink:()=>iA,Fill:()=>cw,Flex:()=>$h,FlexBlock:()=>Uh,FlexItem:()=>og,FocalPointPicker:()=>MA,FocusReturnProvider:()=>oj,FocusableIframe:()=>NA,FontSizePicker:()=>YA,FormFileUpload:()=>KA,FormToggle:()=>ZA,FormTokenField:()=>rO,G:()=>n.G,GradientPicker:()=>jT,Guide:()=>aO,GuidePage:()=>sO,HorizontalRule:()=>n.HorizontalRule,Icon:()=>uy,IconButton:()=>lO,IsolatedEventContainer:()=>HB,KeyboardShortcuts:()=>mO,Line:()=>n.Line,MenuGroup:()=>pO,MenuItem:()=>gO,MenuItemsChoice:()=>bO,Modal:()=>qI,NavigableMenu:()=>KT,Notice:()=>jz,NoticeList:()=>Hz,Panel:()=>Wz,PanelBody:()=>Kz,PanelHeader:()=>$z,PanelRow:()=>Xz,Path:()=>n.Path,Placeholder:()=>Jz,Polygon:()=>n.Polygon,Popover:()=>bw,QueryControls:()=>lL,RadioControl:()=>pL,RangeControl:()=>k_,Rect:()=>n.Rect,ResizableBox:()=>QL,ResponsiveWrapper:()=>eF,SVG:()=>n.SVG,SandBox:()=>nF,ScrollLock:()=>ox,SearchControl:()=>cz,SelectControl:()=>YE,Slot:()=>uw,SlotFillProvider:()=>dw,Snackbar:()=>oF,SnackbarList:()=>aF,Spinner:()=>fF,TabPanel:()=>TF,TabbableContainer:()=>yO,TextControl:()=>RF,TextHighlight:()=>FF,TextareaControl:()=>LF,TimePicker:()=>RD,Tip:()=>jF,ToggleControl:()=>VF,Toolbar:()=>aB,ToolbarButton:()=>ZF,ToolbarDropdownMenu:()=>sB,ToolbarGroup:()=>eB,ToolbarItem:()=>KF,Tooltip:()=>ri,TreeSelect:()=>rL,VisuallyHidden:()=>ws,__experimentalAlignmentMatrixControl:()=>pl,__experimentalApplyValueToSides:()=>_k,__experimentalBorderBoxControl:()=>ZC,__experimentalBorderControl:()=>NC,__experimentalBoxControl:()=>Ak,__experimentalConfirmDialog:()=>KI,__experimentalDimensionControl:()=>zD,__experimentalDivider:()=>NP,__experimentalDropdownContentWrapper:()=>GS,__experimentalElevation:()=>Bk,__experimentalGrid:()=>OC,__experimentalHStack:()=>Py,__experimentalHasSplitBorders:()=>WC,__experimentalHeading:()=>$S,__experimentalInputControl:()=>ly,__experimentalInputControlPrefixWrapper:()=>dO,__experimentalInputControlSuffixWrapper:()=>BE,__experimentalIsDefinedBorder:()=>$C,__experimentalIsEmptyBorder:()=>HC,__experimentalItem:()=>uO,__experimentalItemGroup:()=>aT,__experimentalNavigation:()=>jO,__experimentalNavigationBackButton:()=>WO,__experimentalNavigationGroup:()=>qO,__experimentalNavigationItem:()=>nz,__experimentalNavigationMenu:()=>mz,__experimentalNavigatorBackButton:()=>zz,__experimentalNavigatorButton:()=>Az,__experimentalNavigatorProvider:()=>Tz,__experimentalNavigatorScreen:()=>Mz,__experimentalNavigatorToParentButton:()=>Lz,__experimentalNumberControl:()=>Ry,__experimentalPaletteEdit:()=>gI,__experimentalParseQuantityAndUnitFromRawValue:()=>xC,__experimentalRadio:()=>dL,__experimentalRadioGroup:()=>mL,__experimentalScrollable:()=>SP,__experimentalSpacer:()=>tg,__experimentalStyleProvider:()=>ew,__experimentalSurface:()=>mF,__experimentalText:()=>mv,__experimentalToggleGroupControl:()=>fE,__experimentalToggleGroupControlOption:()=>$A,__experimentalToggleGroupControlOptionIcon:()=>RE,__experimentalToolbarContext:()=>YF,__experimentalToolsPanel:()=>PB,__experimentalToolsPanelContext:()=>bB,__experimentalToolsPanelItem:()=>RB,__experimentalTreeGrid:()=>zB,__experimentalTreeGridCell:()=>jB,__experimentalTreeGridItem:()=>BB,__experimentalTreeGridRow:()=>LB,__experimentalTruncate:()=>VS,__experimentalUnitControl:()=>PC,__experimentalUseCustomUnits:()=>wC,__experimentalUseNavigator:()=>Nz,__experimentalUseSlot:()=>zx,__experimentalUseSlotFills:()=>$B,__experimentalVStack:()=>jS,__experimentalView:()=>xs,__experimentalZStack:()=>YB,__unstableAnimatePresence:()=>Ih,__unstableComposite:()=>LI,__unstableCompositeGroup:()=>FI,__unstableCompositeItem:()=>BI,__unstableDisclosureContent:()=>$D,__unstableGetAnimateClassName:()=>gl,__unstableMotion:()=>wh,__unstableMotionContext:()=>yl,__unstableUseAutocompleteProps:()=>_w,__unstableUseCompositeState:()=>jI,__unstableUseNavigateRegions:()=>XB,createSlotFill:()=>fw,navigateRegions:()=>ZB,privateApis:()=>_H,useBaseControlProps:()=>Cw,withConstrainedTabbing:()=>JB,withFallbackStyles:()=>QB,withFilters:()=>nj,withFocusOutside:()=>CI,withFocusReturn:()=>rj,withNotices:()=>ij,withSpokenMessages:()=>oz});var e={};o.r(e),o.d(e,{Text:()=>Zg,block:()=>Jg,destructive:()=>ev,highlighterText:()=>nv,muted:()=>tv,positive:()=>Qg,upperCase:()=>rv});var t={};o.r(t),o.d(t,{ButtonContentView:()=>xE,LabelView:()=>hE,ou:()=>EE,uG:()=>vE,eh:()=>gE});const n=window.wp.primitives;var r=o(1609),a=o.t(r,2),s=o.n(r),l=o(5755),c=o.n(l);const u=window.wp.i18n,d=window.wp.compose;var f=(0,r.createContext)(!0),m=Object.defineProperty,p=Object.defineProperties,h=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,y=(e,t,n)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))v.call(t,n)&&y(e,n,t[n]);if(g)for(var n of g(t))b.call(t,n)&&y(e,n,t[n]);return e},w=(e,t)=>p(e,h(t)),E=(e,t)=>{var n={};for(var r in e)v.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&g)for(var r of g(e))t.indexOf(r)<0&&b.call(e,r)&&(n[r]=e[r]);return n},_=Object.defineProperty,S=Object.defineProperties,C=Object.getOwnPropertyDescriptors,k=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,I=(e,t,n)=>t in e?_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=(e,t)=>{for(var n in t||(t={}))P.call(t,n)&&I(e,n,t[n]);if(k)for(var n of k(t))T.call(t,n)&&I(e,n,t[n]);return e},M=(e,t)=>S(e,C(t)),N=(e,t)=>{var n={};for(var r in e)P.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&k)for(var r of k(e))t.indexOf(r)<0&&T.call(e,r)&&(n[r]=e[r]);return n};function D(...e){}function A(e,t){if(function(e){return"function"==typeof e}(e)){return e(function(e){return"function"==typeof e}(t)?t():t)}return e}function O(e,t){return"function"==typeof Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function z(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function L(e){return e}function F(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function B(e,...t){const n="function"==typeof e?e(...t):e;return null!=n&&!n}function j(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function V(...e){for(const t of e)if(void 0!==t)return t}function H(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function $(e){return function(e){return!!e&&!!(0,r.isValidElement)(e)&&"ref"in e}(e)?e.ref:null}var W,U="undefined"!=typeof window&&!!(null==(W=window.document)?void 0:W.createElement);function G(e){return e?e.ownerDocument||e:document}function q(e,t=!1){const{activeElement:n}=G(e);if(!(null==n?void 0:n.nodeName))return null;if(K(n)&&n.contentDocument)return q(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=G(n).getElementById(e);if(t)return t}}return n}function Y(e,t){return e===t||e.contains(t)}function K(e){return"IFRAME"===e.tagName}function X(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==Z.indexOf(e.type)}var Z=["button","color","file","image","reset","submit"];function J(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function Q(e){const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function ee(e,t){if("closest"in e)return e.closest(t);do{if(J(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function te(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function ne(e,t){const n=null==e?void 0:e.getAttribute("role");return n&&-1!==["dialog","menu","listbox","tree","grid"].indexOf(n)?n:t}function re(e,t){var n;const r=ne(e);if(!r)return t;return null!=(n={menu:"menuitem",listbox:"option",tree:"treeitem",grid:"gridcell"}[r])?n:t}function oe(e){if(!e)return null;if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}return oe(e.parentElement)||document.scrollingElement||document.body}function ie(){return!!U&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function ae(){return U&&ie()&&/apple/i.test(navigator.vendor)}function se(){return U&&navigator.platform.startsWith("Mac")&&!(U&&navigator.maxTouchPoints)}function le(e){return Boolean(e.currentTarget&&!Y(e.currentTarget,e.target))}function ce(e){return e.target===e.currentTarget}function ue(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=M(R({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function de(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function fe(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Y(n,r)}function me(e,t,n){const r=requestAnimationFrame((()=>{e.removeEventListener(t,o,!0),n()})),o=()=>{cancelAnimationFrame(r),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function pe(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push(pe(e,t,n,i))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}o.forEach((e=>e()))}}var he=x({},a),ge=he.useId,ve=(he.useDeferredValue,he.useInsertionEffect),be=U?r.useLayoutEffect:r.useEffect;function ye(e){const[t]=(0,r.useState)(e);return t}function xe(e){const t=(0,r.useRef)(e);return be((()=>{t.current=e})),t}function we(e){const t=(0,r.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return ve?ve((()=>{t.current=e})):t.current=e,(0,r.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function Ee(...e){return(0,r.useMemo)((()=>{if(e.some(Boolean))return t=>{e.forEach((e=>H(e,t)))}}),e)}function _e(e){if(ge){const t=ge();return e||t}const[t,n]=(0,r.useState)(e);return be((()=>{if(e||t)return;const r=Math.random().toString(36).substr(2,6);n(`id-${r}`)}),[e,t]),e||t}function Se(e,t){const n=e=>{if("string"==typeof e)return e},[o,i]=(0,r.useState)((()=>n(t)));return be((()=>{const r=e&&"current"in e?e.current:e;i((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),o}function Ce(e,t){const n=(0,r.useRef)(!1);(0,r.useEffect)((()=>{if(n.current)return e();n.current=!0}),t),(0,r.useEffect)((()=>()=>{n.current=!1}),[])}Symbol("setNextState");function ke(){return(0,r.useReducer)((()=>[]),[])}function Pe(e){return we("function"==typeof e?e:()=>e)}function Te(e,t,n=[]){const o=(0,r.useCallback)((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return w(x({},e),{wrapElement:o})}function Ie(e=!1,t){const[n,o]=(0,r.useState)(null);return{portalRef:Ee(o,t),portalNode:n,domReady:!e||n}}function Re(e,t,n){const o=e.onLoadedMetadataCapture,i=(0,r.useMemo)((()=>Object.assign((()=>{}),w(x({},o),{[t]:n}))),[o,t,n]);return[null==o?void 0:o[t],{onLoadedMetadataCapture:i}]}function Me(){(0,r.useEffect)((()=>{pe("mousemove",Oe,!0),pe("mousedown",ze,!0),pe("mouseup",ze,!0),pe("keydown",ze,!0),pe("scroll",ze,!0)}),[]);return we((()=>Ne))}var Ne=!1,De=0,Ae=0;function Oe(e){(function(e){const t=e.movementX||e.screenX-De,n=e.movementY||e.screenY-Ae;return De=e.screenX,Ae=e.screenY,t||n||!1})(e)&&(Ne=!0)}function ze(){Ne=!1}var Le=o(4922);function Fe(e){return r.forwardRef(((t,n)=>e(x({ref:n},t))))}function Be(e){const t=Fe(e);return r.memo(t)}function je(e,t){const n=t,{as:o,wrapElement:i,render:a}=n,s=E(n,["as","wrapElement","render"]);let l;const c=Ee(t.ref,$(a));if(o&&"string"!=typeof o)l=(0,Le.jsx)(o,w(x({},s),{render:a}));else if(r.isValidElement(a)){const e=w(x({},a.props),{ref:c});l=r.cloneElement(a,function(e,t){const n=x({},e);for(const r in t){if(!O(t,r))continue;if("className"===r){const r="className";n[r]=e[r]?`${e[r]} ${t[r]}`:t[r];continue}if("style"===r){const r="style";n[r]=e[r]?x(x({},e[r]),t[r]):t[r];continue}const o=t[r];if("function"==typeof o&&r.startsWith("on")){const t=e[r];if("function"==typeof t){n[r]=(...e)=>{o(...e),t(...e)};continue}}n[r]=o}return n}(s,e))}else if(a)l=a(s);else if("function"==typeof t.children){0;const e=s,{children:n}=e,r=E(e,["children"]);l=t.children(r)}else l=o?(0,Le.jsx)(o,x({},s)):(0,Le.jsx)(e,x({},s));return i?i(l):l}function Ve(e){return(t={})=>{const n=e(t),r={};for(const e in n)O(n,e)&&void 0!==n[e]&&(r[e]=n[e]);return r}}function He(e=[],t=[]){const n=r.createContext(void 0),o=r.createContext(void 0),i=()=>r.useContext(n),a=t=>e.reduceRight(((e,n)=>(0,Le.jsx)(n,w(x({},t),{children:e}))),(0,Le.jsx)(n.Provider,x({},t)));return{context:n,scopedContext:o,useContext:i,useScopedContext:(e=!1)=>{const t=r.useContext(o),n=i();return e?t:t||n},useProviderContext:()=>{const e=r.useContext(o),t=i();if(!e||e!==t)return t},ContextProvider:a,ScopedContextProvider:e=>(0,Le.jsx)(a,w(x({},e),{children:t.reduceRight(((t,n)=>(0,Le.jsx)(n,w(x({},e),{children:t}))),(0,Le.jsx)(o.Provider,x({},e)))}))}}var $e="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 We(e){return!!J(e,$e)&&(!!Q(e)&&!ee(e,"[inert]"))}function Ue(e){if(!We(e))return!1;if(function(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}(e))return!1;if(!("form"in e))return!0;if(!e.form)return!0;if(e.checked)return!0;if("radio"!==e.type)return!0;const t=e.form.elements.namedItem(e.name);if(!t)return!0;if(!("length"in t))return!0;const n=q(e);return!n||(n===e||(!("form"in n)||(n.form!==e.form||n.name!==e.name)))}function Ge(e,t){const n=Array.from(e.querySelectorAll($e));t&&n.unshift(e);const r=n.filter(We);return r.forEach(((e,t)=>{if(K(e)&&e.contentDocument){const n=e.contentDocument.body;r.splice(t,1,...Ge(n))}})),r}function qe(e,t,n){const r=Array.from(e.querySelectorAll($e)),o=r.filter(Ue);return t&&Ue(e)&&o.unshift(e),o.forEach(((e,t)=>{if(K(e)&&e.contentDocument){const r=qe(e.contentDocument.body,!1,n);o.splice(t,1,...r)}})),!o.length&&n?r:o}function Ye(e,t,n){const[r]=qe(e,t,n);return r||null}function Ke(e,t){return function(e,t,n,r){const o=q(e),i=Ge(e,t),a=i.indexOf(o),s=i.slice(a+1);return s.find(Ue)||(n?i.find(Ue):null)||(r?s[0]:null)||null}(document.body,!1,e,t)}function Xe(e,t){return function(e,t,n,r){const o=q(e),i=Ge(e,t).reverse(),a=i.indexOf(o),s=i.slice(a+1);return s.find(Ue)||(n?i.find(Ue):null)||(r?s[0]:null)||null}(document.body,!1,e,t)}function Ze(e){const t=q(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function Je(e){const t=q(e);if(!t)return!1;if(Y(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&("id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`)))}function Qe(e){!Je(e)&&We(e)&&e.focus()}function et(e){var t;const n=null!=(t=e.getAttribute("tabindex"))?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}var tt=ae(),nt=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function rt(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function ot(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function it(e,t){return we((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var at=!0;function st(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(at=!1))}function lt(e){e.metaKey||e.ctrlKey||e.altKey||(at=!0)}var ct=Ve((e=>{var t=e,{focusable:n=!0,accessibleWhenDisabled:o,autoFocus:i,onFocusVisible:a}=t,s=E(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const l=(0,r.useRef)(null);(0,r.useEffect)((()=>{n&&(pe("mousedown",st,!0),pe("keydown",lt,!0))}),[n]),tt&&(0,r.useEffect)((()=>{if(!n)return;const e=l.current;if(!e)return;if(!rt(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const r=()=>queueMicrotask((()=>e.focus()));return t.forEach((e=>e.addEventListener("mouseup",r))),()=>{t.forEach((e=>e.removeEventListener("mouseup",r)))}}),[n]);const c=n&&j(s),u=!!c&&!o,[d,m]=(0,r.useState)(!1);(0,r.useEffect)((()=>{n&&u&&d&&m(!1)}),[n,u,d]),(0,r.useEffect)((()=>{if(!n)return;if(!d)return;const e=l.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{We(e)||m(!1)}));return t.observe(e),()=>t.disconnect()}),[n,d]);const p=it(s.onKeyPressCapture,c),h=it(s.onMouseDownCapture,c),g=it(s.onClickCapture,c),v=s.onMouseDown,b=we((e=>{if(null==v||v(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!tt)return;if(le(e))return;if(!X(t)&&!rt(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0}),me(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),r||Qe(t)}))})),y=(e,t)=>{if(t&&(e.currentTarget=t),!n)return;const r=e.currentTarget;r&&Ze(r)&&(null==a||a(e),e.defaultPrevented||m(!0))},_=s.onKeyDownCapture,S=we((e=>{if(null==_||_(e),e.defaultPrevented)return;if(!n)return;if(d)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!ce(e))return;const t=e.currentTarget;queueMicrotask((()=>y(e,t)))})),C=s.onFocusCapture,k=we((e=>{if(null==C||C(e),e.defaultPrevented)return;if(!n)return;if(!ce(e))return void m(!1);const t=e.currentTarget,r=()=>y(e,t);at||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||"SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable:nt.includes(r))}(e.target)?queueMicrotask(r):!function(e){return"combobox"===e.getAttribute("role")&&!!e.dataset.name}(e.target)?m(!1):me(e.target,"focusout",r)})),P=s.onBlur,T=we((e=>{null==P||P(e),n&&fe(e)&&m(!1)})),I=(0,r.useContext)(f),R=we((e=>{n&&i&&e&&I&&queueMicrotask((()=>{Ze(e)||We(e)&&e.focus()}))})),M=Se(l,s.as),N=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(M),D=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(M),A=u?x({pointerEvents:"none"},s.style):s.style;return s=w(x({"data-focus-visible":n&&d?"":void 0,"data-autofocus":!!i||void 0,"aria-disabled":!!c||void 0},s),{ref:Ee(l,R,s.ref),style:A,tabIndex:ot(n,u,N,D,s.tabIndex),disabled:!(!D||!u)||void 0,contentEditable:c?void 0:s.contentEditable,onKeyPressCapture:p,onClickCapture:g,onMouseDownCapture:h,onMouseDown:b,onKeyDownCapture:S,onFocusCapture:k,onBlur:T})}));Fe((e=>je("div",e=ct(e))));function ut(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?X(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(X(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var dt=Symbol("command"),ft=Ve((e=>{var t=e,{clickOnEnter:n=!0,clickOnSpace:o=!0}=t,i=E(t,["clickOnEnter","clickOnSpace"]);const a=(0,r.useRef)(null),s=Se(a,i.as),l=i.type,[c,u]=(0,r.useState)((()=>!!s&&X({tagName:s,type:l})));(0,r.useEffect)((()=>{a.current&&u(X(a.current))}),[]);const[d,f]=(0,r.useState)(!1),m=(0,r.useRef)(!1),p=j(i),[h,g]=Re(i,dt,!0),v=i.onKeyDown,b=we((e=>{null==v||v(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(h)return;if(p)return;if(!ce(e))return;if(te(t))return;if(t.isContentEditable)return;const r=n&&"Enter"===e.key,i=o&&" "===e.key,a="Enter"===e.key&&!n,s=" "===e.key&&!o;if(a||s)e.preventDefault();else if(r||i){const n=ut(e);if(r){if(!n){e.preventDefault();const n=e,{view:r}=n,o=E(n,["view"]),i=()=>de(t,o);U&&/firefox\//i.test(navigator.userAgent)?me(t,"keyup",i):queueMicrotask(i)}}else i&&(m.current=!0,n||(e.preventDefault(),f(!0)))}})),y=i.onKeyUp,_=we((e=>{if(null==y||y(e),e.defaultPrevented)return;if(h)return;if(p)return;if(e.metaKey)return;const t=o&&" "===e.key;if(m.current&&t&&(m.current=!1,!ut(e))){e.preventDefault(),f(!1);const t=e.currentTarget,n=e,{view:r}=n,o=E(n,["view"]);queueMicrotask((()=>de(t,o)))}}));return i=w(x(x({"data-active":d?"":void 0,type:c?"button":void 0},g),i),{ref:Ee(a,i.ref),onKeyDown:b,onKeyUp:_}),i=ct(i)}));Fe((e=>je("button",e=ft(e))));var mt=He(),pt=mt.useContext,ht=(mt.useScopedContext,mt.useProviderContext,mt.ContextProvider),gt=mt.ScopedContextProvider,vt=Ve((e=>{var t=e,{store:n,shouldRegisterItem:o=!0,getItem:i=L,element:a}=t,s=E(t,["store","shouldRegisterItem","getItem","element"]);const l=pt();n=n||l;const c=_e(s.id),u=(0,r.useRef)(a);return(0,r.useEffect)((()=>{const e=u.current;if(!c)return;if(!e)return;if(!o)return;const t=i({id:c,element:e});return null==n?void 0:n.renderItem(t)}),[c,o,i,n]),s=w(x({},s),{ref:Ee(u,s.ref)})}));Fe((e=>je("div",vt(e))));var bt={id:null};function yt(e,t){return t&&e.item(t)||null}var xt=Symbol("FOCUS_SILENTLY");function wt(e,t,n){if(!t)return!1;if(t===n)return!1;const r=e.item(t.id);return!!r&&(!n||r.element!==n)}var Et=He([ht],[gt]),_t=Et.useContext,St=(Et.useScopedContext,Et.useProviderContext),Ct=Et.ContextProvider,kt=Et.ScopedContextProvider,Pt=(0,r.createContext)(void 0),Tt=(0,r.createContext)(void 0);function It(e,t){const n=e.__unstableInternals;return F(n,"Invalid store"),n[t]}function Rt(e,...t){let n=e,r=n,o=Symbol(),i=D;const a=new Set,s=new Set,l=new Set,c=new Set,u=new Set,d=new WeakMap,f=new WeakMap,m=(e,t,n=c)=>(n.add(t),f.set(t,e),()=>{var e;null==(e=d.get(t))||e(),d.delete(t),f.delete(t),n.delete(t)}),p=(e,i,a=!1)=>{if(!O(n,e))return;const l=A(i,n[e]);if(l===n[e])return;a||t.forEach((t=>{var n;null==(n=null==t?void 0:t.setState)||n.call(t,e,l)}));const m=n;n=M(R({},n),{[e]:l});const p=Symbol();o=p,s.add(e);const h=(t,r,o)=>{var i;const a=f.get(t);a&&!a.some((t=>o?o.has(t):t===e))||(null==(i=d.get(t))||i(),d.set(t,t(n,r)))};c.forEach((e=>{h(e,m)})),queueMicrotask((()=>{if(o!==p)return;const e=n;u.forEach((e=>{h(e,r,s)})),r=e,s.clear()}))},h={getState:()=>n,setState:p,__unstableInternals:{setup:e=>(l.add(e),()=>l.delete(e)),init:()=>{const e=a.size,r=Symbol();a.add(r);const o=()=>{a.delete(r),a.size||i()};if(e)return o;const s=(c=n,Object.keys(c)).map((e=>z(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&O(r,e))return At(t,[e],(t=>{p(e,t[e],!0)}))})))));var c;const u=[];l.forEach((e=>u.push(e())));const d=t.map(Nt);return i=z(...s,...u,...d),o},subscribe:(e,t)=>m(e,t),sync:(e,t)=>(d.set(t,t(n,n)),m(e,t)),batch:(e,t)=>(d.set(t,t(n,r)),m(e,t,u)),pick:e=>Rt(function(e,t){const n={};for(const r of t)O(e,r)&&(n[r]=e[r]);return n}(n,e),h),omit:e=>Rt(function(e,t){const n=R({},e);for(const e of t)O(n,e)&&delete n[e];return n}(n,e),h)}};return h}function Mt(e,...t){if(e)return It(e,"setup")(...t)}function Nt(e,...t){if(e)return It(e,"init")(...t)}function Dt(e,...t){if(e)return It(e,"subscribe")(...t)}function At(e,...t){if(e)return It(e,"sync")(...t)}function Ot(e,...t){if(e)return It(e,"batch")(...t)}function zt(e,...t){if(e)return It(e,"omit")(...t)}function Lt(...e){const t=e.reduce(((e,t)=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);return r?R(R({},e),r):e}),{});return Rt(t,...e)}var Ft=o(422),{useSyncExternalStore:Bt}=Ft,jt=()=>()=>{};function Vt(e,t=L){const n=r.useCallback((t=>e?Dt(e,null,t):jt()),[e]),o=()=>{const n="string"==typeof t?t:null,r="function"==typeof t?t:null,o=null==e?void 0:e.getState();return r?r(o):o&&n&&O(o,n)?o[n]:void 0};return Bt(n,o,o)}function Ht(e,t,n,r){const o=O(t,n)?t[n]:void 0,i=r?t[r]:void 0,a=xe({value:o,setValue:i});be((()=>At(e,[n],((e,t)=>{const{value:r,setValue:o}=a.current;o&&e[n]!==t[n]&&e[n]!==r&&o(e[n])}))),[e,n]),be((()=>{if(void 0!==o)return e.setState(n,o),Ot(e,[n],(()=>{void 0!==o&&e.setState(n,o)}))}))}function $t(e,t){const[n,o]=r.useState((()=>e(t)));be((()=>Nt(n)),[n]);const i=r.useCallback((e=>Vt(n,e)),[n]);return[r.useMemo((()=>w(x({},n),{useState:i})),[n,i]),we((()=>{o((n=>e(x(x({},t),n.getState()))))}))]}function Wt(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function Ut(e,t,n,r=!1){var o;if(!t)return;if(!n)return;const{renderedItems:i}=t.getState(),a=oe(e);if(!a)return;const s=function(e,t=!1){const n=e.clientHeight,{top:r}=e.getBoundingClientRect(),o=1.5*Math.max(.875*n,n-40),i=t?n-o+r:o+r;return"HTML"===e.tagName?i+e.scrollTop:i}(a,r);let l,c;for(let e=0;e<i.length;e+=1){const i=l;if(l=n(e),!l)break;if(l===i)continue;const a=null==(o=yt(t,l))?void 0:o.element;if(!a)continue;const u=Wt(a,r)-s,d=Math.abs(u);if(r&&u<=0||!r&&u>=0){void 0!==c&&c<d&&(l=i);break}c=d}return l}var Gt=Ve((e=>{var t=e,{store:n,rowId:o,preventScrollOnKeyDown:i=!1,moveOnKeyPress:a=!0,tabbable:s=!1,getItem:l,"aria-setsize":c,"aria-posinset":u}=t,d=E(t,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","tabbable","getItem","aria-setsize","aria-posinset"]);const f=_t();n=n||f;const m=_e(d.id),p=(0,r.useRef)(null),h=(0,r.useContext)(Tt),g=Vt(n,(e=>o||(e&&(null==h?void 0:h.baseElement)&&h.baseElement===e.baseElement?h.id:void 0))),v=j(d)&&!d.accessibleWhenDisabled,b=(0,r.useCallback)((e=>{const t=w(x({},e),{id:m||e.id,rowId:g,disabled:!!v});return l?l(t):t}),[m,g,v,l]),y=d.onFocus,_=(0,r.useRef)(!1),S=we((e=>{if(null==y||y(e),e.defaultPrevented)return;if(le(e))return;if(!m)return;if(!n)return;const{activeId:t,virtualFocus:r,baseElement:o}=n.getState();if(function(e,t){return!ce(e)&&wt(t,e.target)}(e,n))return;if(t!==m&&n.setActiveId(m),!r)return;if(!ce(e))return;if((i=e.currentTarget).isContentEditable||te(i)||"INPUT"===i.tagName&&!X(i))return;var i;if(!(null==o?void 0:o.isConnected))return;_.current=!0;e.relatedTarget===o||wt(n,e.relatedTarget)?function(e){e[xt]=!0,e.focus({preventScroll:!0})}(o):o.focus()})),C=d.onBlurCapture,k=we((e=>{if(null==C||C(e),e.defaultPrevented)return;const t=null==n?void 0:n.getState();(null==t?void 0:t.virtualFocus)&&_.current&&(_.current=!1,e.preventDefault(),e.stopPropagation())})),P=d.onKeyDown,T=Pe(i),I=Pe(a),R=we((e=>{if(null==P||P(e),e.defaultPrevented)return;if(!ce(e))return;if(!n)return;const{currentTarget:t}=e,r=n.getState(),o=n.item(m),i=!!(null==o?void 0:o.rowId),a="horizontal"!==r.orientation,s="vertical"!==r.orientation,l=()=>!!i||(!!s||(!r.baseElement||!te(r.baseElement))),c={ArrowUp:(i||a)&&n.up,ArrowRight:(i||s)&&n.next,ArrowDown:(i||a)&&n.down,ArrowLeft:(i||s)&&n.previous,Home:()=>{if(l())return!i||e.ctrlKey?null==n?void 0:n.first():null==n?void 0:n.previous(-1)},End:()=>{if(l())return!i||e.ctrlKey?null==n?void 0:n.last():null==n?void 0:n.next(-1)},PageUp:()=>Ut(t,n,null==n?void 0:n.up,!0),PageDown:()=>Ut(t,n,null==n?void 0:n.down)}[e.key];if(c){const t=c();if(T(e)||void 0!==t){if(!I(e))return;e.preventDefault(),n.move(t)}}})),M=Vt(n,(e=>(null==e?void 0:e.baseElement)||void 0)),N=(0,r.useMemo)((()=>({id:m,baseElement:M})),[m,M]);d=Te(d,(e=>(0,Le.jsx)(Pt.Provider,{value:N,children:e})),[N]);const D=Vt(n,(e=>!!e&&e.activeId===m)),A=Vt(n,"virtualFocus"),O=function(e,t){const n=t.role,[o,i]=(0,r.useState)(n);return be((()=>{const t=e.current;t&&i(t.getAttribute("role")||n)}),[n]),o}(p,d);let z;D&&(!function(e){return"option"===e||"treeitem"===e}(O)?A&&function(e){return"option"===e||"tab"===e||"treeitem"===e||"gridcell"===e||"row"===e||"columnheader"===e||"rowheader"===e}(O)&&(z=!0):z=!0);const L=Vt(n,(e=>null!=c?c:e&&(null==h?void 0:h.ariaSetSize)&&h.baseElement===e.baseElement?h.ariaSetSize:void 0)),F=Vt(n,(e=>{if(null!=u)return u;if(!e)return;if(!(null==h?void 0:h.ariaPosInSet))return;if(h.baseElement!==e.baseElement)return;const t=e.renderedItems.filter((e=>e.rowId===g));return h.ariaPosInSet+t.findIndex((e=>e.id===m))})),B=Vt(n,(e=>!(null==e?void 0:e.renderedItems.length)||!e.virtualFocus&&(!!s||e.activeId===m)));return d=w(x({id:m,"aria-selected":z,"data-active-item":D?"":void 0},d),{ref:Ee(p,d.ref),tabIndex:B?d.tabIndex:-1,onFocus:S,onBlurCapture:k,onKeyDown:R}),d=ft(d),d=vt(w(x({store:n},d),{getItem:b,shouldRegisterItem:!!m&&d.shouldRegisterItem})),w(x({},d),{"aria-setsize":L,"aria-posinset":F})})),qt=Be((e=>je("button",Gt(e))));function Yt(e={}){const t=Lt(e.store,zt(e.disclosure,["contentElement","disclosureElement"])),n=null==t?void 0:t.getState(),r=V(e.open,null==n?void 0:n.open,e.defaultOpen,!1),o=V(e.animated,null==n?void 0:n.animated,!1),i=Rt({open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:V(null==n?void 0:n.contentElement,null),disclosureElement:V(null==n?void 0:n.disclosureElement,null)},t);return Mt(i,(()=>At(i,["animated","animating"],(e=>{e.animated||i.setState("animating",!1)})))),Mt(i,(()=>Dt(i,["open"],(()=>{i.getState().animated&&i.setState("animating",!0)})))),Mt(i,(()=>At(i,["open","animating"],(e=>{i.setState("mounted",e.open||e.animating)})))),M(R({},i),{setOpen:e=>i.setState("open",e),show:()=>i.setState("open",!0),hide:()=>i.setState("open",!1),toggle:()=>i.setState("open",(e=>!e)),stopAnimation:()=>i.setState("animating",!1),setContentElement:e=>i.setState("contentElement",e),setDisclosureElement:e=>i.setState("disclosureElement",e)})}function Kt(e,t,n){return Ce(t,[n.store,n.disclosure]),Ht(e,n,"open","setOpen"),Ht(e,n,"mounted","setMounted"),Ht(e,n,"animated"),e}function Xt(e={}){const[t,n]=$t(Yt,e);return Kt(t,n,e)}function Zt(e={}){return Yt(e)}function Jt(e,t,n){return Kt(e,t,n)}function Qt(e,t,n){return Ce(t,[n.popover]),Ht(e=Jt(e,t,n),n,"placement"),e}function en(e,t,n){return Ht(e=Qt(e,t,n),n,"timeout"),Ht(e,n,"showTimeout"),Ht(e,n,"hideTimeout"),e}function tn(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=function(e={}){var t=e,{popover:n}=t,r=N(t,["popover"]);const o=Lt(r.store,zt(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=null==o?void 0:o.getState(),a=Zt(M(R({},r),{store:o})),s=V(r.placement,null==i?void 0:i.placement,"bottom"),l=Rt(M(R({},a.getState()),{placement:s,currentPlacement:s,anchorElement:V(null==i?void 0:i.anchorElement,null),popoverElement:V(null==i?void 0:i.popoverElement,null),arrowElement:V(null==i?void 0:i.arrowElement,null),rendered:Symbol("rendered")}),a,o);return M(R(R({},a),l),{setAnchorElement:e=>l.setState("anchorElement",e),setPopoverElement:e=>l.setState("popoverElement",e),setArrowElement:e=>l.setState("arrowElement",e),render:()=>l.setState("rendered",Symbol("rendered"))})}(M(R({},e),{placement:V(e.placement,null==n?void 0:n.placement,"bottom")})),o=V(e.timeout,null==n?void 0:n.timeout,500),i=Rt(M(R({},r.getState()),{timeout:o,showTimeout:V(e.showTimeout,null==n?void 0:n.showTimeout),hideTimeout:V(e.hideTimeout,null==n?void 0:n.hideTimeout),autoFocusOnShow:V(null==n?void 0:n.autoFocusOnShow,!1)}),r,e.store);return M(R(R({},r),i),{setAutoFocusOnShow:e=>i.setState("autoFocusOnShow",e)})}function nn(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=tn(M(R({},e),{placement:V(e.placement,null==n?void 0:n.placement,"top"),hideTimeout:V(e.hideTimeout,null==n?void 0:n.hideTimeout,0)})),o=Rt(M(R({},r.getState()),{type:V(e.type,null==n?void 0:n.type,"description"),skipTimeout:V(e.skipTimeout,null==n?void 0:n.skipTimeout,300)}),r,e.store);return R(R({},r),o)}function rn(e={}){const[t,n]=$t(nn,e);return function(e,t,n){return Ht(e=en(e,t,n),n,"type"),Ht(e,n,"skipTimeout"),e}(t,n,e)}Ve((e=>e));var on=Fe((e=>je("div",e)));Object.assign(on,["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","textarea","ul","svg"].reduce(((e,t)=>(e[t]=Fe((e=>je(t,e))),e)),{}));var an=He(),sn=(an.useContext,an.useScopedContext,an.useProviderContext),ln=He([an.ContextProvider],[an.ScopedContextProvider]),cn=(ln.useContext,ln.useScopedContext,ln.useProviderContext),un=ln.ContextProvider,dn=ln.ScopedContextProvider,fn=(0,r.createContext)(void 0),mn=(0,r.createContext)(void 0),pn=He([un],[dn]),hn=(pn.useContext,pn.useScopedContext,pn.useProviderContext),gn=pn.ContextProvider,vn=pn.ScopedContextProvider,bn=He([gn],[vn]),yn=(bn.useContext,bn.useScopedContext,bn.useProviderContext),xn=bn.ContextProvider,wn=bn.ScopedContextProvider,En=Ve((e=>{var t=e,{store:n,showOnHover:o=!0}=t,i=E(t,["store","showOnHover"]);const a=yn();F(n=n||a,!1);const s=j(i),l=(0,r.useRef)(0);(0,r.useEffect)((()=>()=>window.clearTimeout(l.current)),[]),(0,r.useEffect)((()=>pe("mouseleave",(e=>{if(!n)return;const{anchorElement:t}=n.getState();t&&e.target===t&&(window.clearTimeout(l.current),l.current=0)}),!0)),[n]);const c=i.onMouseMove,u=Pe(o),d=Me(),f=we((e=>{if(null==c||c(e),s)return;if(!n)return;if(e.defaultPrevented)return;if(l.current)return;if(!d())return;if(!u(e))return;const t=e.currentTarget;n.setAnchorElement(t),n.setDisclosureElement(t);const{showTimeout:r,timeout:o}=n.getState(),i=()=>{l.current=0,d()&&(null==n||n.setAnchorElement(t),null==n||n.show(),queueMicrotask((()=>{null==n||n.setDisclosureElement(t)})))},a=null!=r?r:o;0===a?i():l.current=window.setTimeout(i,a)})),m=(0,r.useCallback)((e=>{if(!n)return;const{anchorElement:t}=n.getState();(null==t?void 0:t.isConnected)||n.setAnchorElement(e)}),[n]);return i=w(x({},i),{ref:Ee(m,i.ref),onMouseMove:f}),i=ct(i)}));Fe((e=>je("a",En(e))));var _n=He([xn],[wn]),Sn=(_n.useContext,_n.useScopedContext,_n.useProviderContext),Cn=(_n.ContextProvider,_n.ScopedContextProvider),kn=Rt({activeStore:null}),Pn=Ve((e=>{var t=e,{store:n,showOnHover:o=!0}=t,i=E(t,["store","showOnHover"]);const a=Sn();F(n=n||a,!1);const s=(0,r.useRef)(!1);(0,r.useEffect)((()=>At(n,["mounted"],(e=>{e.mounted||(s.current=!1)}))),[n]),(0,r.useEffect)((()=>At(n,["mounted","skipTimeout"],(e=>{if(!n)return;if(e.mounted){const{activeStore:e}=kn.getState();return e!==n&&(null==e||e.hide()),kn.setState("activeStore",n)}const t=setTimeout((()=>{const{activeStore:e}=kn.getState();e===n&&kn.setState("activeStore",null)}),e.skipTimeout);return()=>clearTimeout(t)}))),[n]);const l=i.onMouseEnter,c=we((e=>{null==l||l(e),s.current=!0})),u=i.onFocusVisible,d=we((e=>{null==u||u(e),e.defaultPrevented||(null==n||n.setAnchorElement(e.currentTarget),null==n||n.show())})),f=i.onBlur,m=we((e=>{if(null==f||f(e),e.defaultPrevented)return;const{activeStore:t}=kn.getState();t===n&&kn.setState("activeStore",null)})),p=n.useState("type"),h=n.useState((e=>{var t;return null==(t=e.contentElement)?void 0:t.id}));return i=w(x({"aria-labelledby":"label"===p?h:void 0,"aria-describedby":"description"===p?h:void 0},i),{onMouseEnter:c,onFocusVisible:d,onBlur:m}),i=En(x({store:n,showOnHover:e=>{if(!s.current)return!1;if(B(o,e))return!1;const{activeStore:t}=kn.getState();return!t||(null==n||n.show(),!1)}},i))})),Tn=Fe((e=>je("div",Pn(e))));function In(e){return[e.clientX,e.clientY]}function Rn(e,t){const[n,r]=e;let o=!1;for(let e=t.length,i=0,a=e-1;i<e;a=i++){const[s,l]=t[i],[c,u]=t[a],[,d]=t[0===a?e-1:a-1]||[0,0],f=(l-u)*(n-s)-(s-c)*(r-l);if(u<l){if(r>=u&&r<l){if(0===f)return!0;f>0&&(r===u?r>d&&(o=!o):o=!o)}}else if(l<u){if(r>l&&r<=u){if(0===f)return!0;f<0&&(r===u?r<d&&(o=!o):o=!o)}}else if(r==l&&(n>=c&&n<=s||n>=s&&n<=c))return!0}return o}function Mn(e,t){const n=e.getBoundingClientRect(),{top:r,right:o,bottom:i,left:a}=n,[s,l]=function(e,t){const{top:n,right:r,bottom:o,left:i}=t,[a,s]=e;return[a<i?"left":a>r?"right":null,s<n?"top":s>o?"bottom":null]}(t,n),c=[t];return s?("top"!==l&&c.push(["left"===s?a:o,r]),c.push(["left"===s?o:a,r]),c.push(["left"===s?o:a,i]),"bottom"!==l&&c.push(["left"===s?a:o,i])):"top"===l?(c.push([a,r]),c.push([a,i]),c.push([o,i]),c.push([o,r])):(c.push([a,i]),c.push([a,r]),c.push([o,r]),c.push([o,i])),c}function Nn(e,...t){if(!e)return!1;const n=e.getAttribute("data-backdrop");return null!=n&&(""===n||("true"===n||(!t.length||t.some((e=>n===e)))))}var Dn=new WeakMap;function An(e,t,n){Dn.has(e)||Dn.set(e,new Map);const r=Dn.get(e),o=r.get(t);if(!o)return r.set(t,n()),()=>{var e;null==(e=r.get(t))||e(),r.delete(t)};const i=n(),a=()=>{i(),o(),r.delete(t)};return r.set(t,a),()=>{r.get(t)===a&&(i(),r.set(t,o))}}function On(e,t,n){return An(e,t,(()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{null==r?e.removeAttribute(t):e.setAttribute(t,r)}}))}function zn(e,t,n){return An(e,t,(()=>{const r=t in e,o=e[t];return e[t]=n,()=>{r?e[t]=o:delete e[t]}}))}function Ln(e,t){if(!e)return()=>{};return An(e,"style",(()=>{const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}))}var Fn=["SCRIPT","STYLE"];function Bn(e){return`__ariakit-dialog-snapshot-${e}`}function jn(e,t,n){return!Fn.includes(t.tagName)&&(!!function(e,t){const n=G(t),r=Bn(e);if(!n.body[r])return!0;for(;;){if(t===n.body)return!1;if(t[r])return!0;if(!t.parentElement)return!1;t=t.parentElement}}(e,t)&&!n.some((e=>e&&Y(t,e))))}function Vn(e,t,n,r){for(let o of t){if(!(null==o?void 0:o.isConnected))continue;const i=t.some((e=>!!e&&(e!==o&&e.contains(o)))),a=G(o),s=o;for(;o.parentElement&&o!==a.body;){if(null==r||r(o.parentElement,s),!i)for(const r of o.parentElement.children)jn(e,r,t)&&n(r,s);o=o.parentElement}}}function Hn(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function $n(e,t=""){return z(zn(e,Hn("",!0),!0),zn(e,Hn(t,!0),!0))}function Wn(e,t){if(e[Hn(t,!0)])return!0;const n=Hn(t);for(;;){if(e[n])return!0;if(!e.parentElement)return!1;e=e.parentElement}}function Un(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));Vn(e,t,(t=>{Nn(t,...r)||n.unshift(function(e,t=""){return z(zn(e,Hn(),!0),zn(e,Hn(t),!0))}(t,e))}),((t,r)=>{r.hasAttribute("data-dialog")&&r.id!==e||n.unshift($n(t,e))}));return()=>{n.forEach((e=>e()))}}function Gn(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function qn(...e){return e.join(", ").split(", ").reduce(((e,t)=>{const n=1e3*parseFloat(t||"0s");return n>e?n:e}),0)}function Yn(e,t,n){return!(n||!1===t||e&&!t)}var Kn=Ve((e=>{var t=e,{store:n,alwaysVisible:o}=t,i=E(t,["store","alwaysVisible"]);const a=sn();F(n=n||a,!1);const s=_e(i.id),[l,c]=(0,r.useState)(null),u=n.useState("open"),d=n.useState("mounted"),f=n.useState("animated"),m=n.useState("contentElement");be((()=>{if(f){if(null==m?void 0:m.isConnected)return function(e){let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}((()=>{c(u?"enter":"leave")}));c(null)}}),[f,m,u]),be((()=>{if(!n)return;if(!f)return;if(!m)return;if(!l)return;if("enter"===l&&!u)return;if("leave"===l&&u)return;if("number"==typeof f){return Gn(f,n.stopAnimation)}const{transitionDuration:e,animationDuration:t,transitionDelay:r,animationDelay:o}=getComputedStyle(m),i=qn(r,o)+qn(e,t);return i?Gn(i,n.stopAnimation):void 0}),[n,f,m,u,l]);const p=Yn(d,(i=Te(i,(e=>(0,Le.jsx)(dn,{value:n,children:e})),[n])).hidden,o),h=p?w(x({},i.style),{display:"none"}):i.style;return i=w(x({id:s,"data-enter":"enter"===l?"":void 0,"data-leave":"leave"===l?"":void 0,hidden:p},i),{ref:Ee(s?n.setContentElement:null,i.ref),style:h})})),Xn=Fe((e=>je("div",Kn(e)))),Zn=Fe((e=>{var t=e,{unmountOnHide:n}=t,r=E(t,["unmountOnHide"]);const o=sn();return!1===Vt(r.store||o,(e=>!n||(null==e?void 0:e.mounted)))?null:(0,Le.jsx)(Xn,x({},r))}));function Jn({store:e,backdrop:t,backdropProps:n,alwaysVisible:o,hidden:i}){const a=(0,r.useRef)(null),s=Xt({disclosure:e}),l=e.useState("contentElement");be((()=>{const e=a.current,t=l;e&&t&&(e.style.zIndex=getComputedStyle(t).zIndex)}),[l]),be((()=>{const e=null==l?void 0:l.id;if(!e)return;const t=a.current;return t?$n(t,e):void 0}),[l]),null!=i&&(n=w(x({},n),{hidden:i}));const c=Kn(w(x({store:s,role:"presentation","data-backdrop":(null==l?void 0:l.id)||"",alwaysVisible:o},n),{ref:Ee(null==n?void 0:n.ref,a),style:x({position:"fixed",top:0,right:0,bottom:0,left:0},null==n?void 0:n.style)}));if(!t)return null;if((0,r.isValidElement)(t))return(0,Le.jsx)(on,w(x({},c),{render:t}));const u="boolean"!=typeof t?t:"div";return(0,Le.jsx)(on,w(x({},c),{render:(0,Le.jsx)(u,{})}))}function Qn(e){return On(e,"aria-hidden","true")}function er(e,t){if(!("style"in e))return D;if("inert"in HTMLElement.prototype)return zn(e,"inert",!0);return z(...qe(e,!0).map((e=>(null==t?void 0:t.some((t=>t&&Y(t,e))))?D:On(e,"tabindex","-1"))),Qn(e),Ln(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}const tr=window.ReactDOM;function nr(e,t,n){const o=function({attribute:e,contentId:t,contentElement:n,enabled:o}){const[i,a]=ke(),s=(0,r.useCallback)((()=>{if(!o)return!1;if(!n)return!1;const{body:r}=G(n),i=r.getAttribute(e);return!i||i===t}),[i,o,n,e,t]);return(0,r.useEffect)((()=>{if(!o)return;if(!t)return;if(!n)return;const{body:r}=G(n);if(s())return r.setAttribute(e,t),()=>r.removeAttribute(e);const i=new MutationObserver((()=>(0,tr.flushSync)(a)));return i.observe(r,{attributeFilter:[e]}),()=>i.disconnect()}),[i,o,t,n,s,e]),s}({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:t,enabled:n});(0,r.useEffect)((()=>{if(!o())return;if(!e)return;const t=G(e),n=function(e){return G(e).defaultView||window}(e),{documentElement:r,body:i}=t,a=r.style.getPropertyValue("--scrollbar-width"),s=a?parseInt(a):n.innerWidth-r.clientWidth,l=function(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}(r),c=ie()&&!se();return z((d="--scrollbar-width",f=`${s}px`,(u=r)?An(u,d,(()=>{const e=u.style.getPropertyValue(d);return u.style.setProperty(d,f),()=>{e?u.style.setProperty(d,e):u.style.removeProperty(d)}})):()=>{}),c?(()=>{var e,t;const{scrollX:r,scrollY:o,visualViewport:a}=n,c=null!=(e=null==a?void 0:a.offsetLeft)?e:0,u=null!=(t=null==a?void 0:a.offsetTop)?t:0,d=Ln(i,{position:"fixed",overflow:"hidden",top:-(o-Math.floor(u))+"px",left:-(r-Math.floor(c))+"px",right:"0",[l]:`${s}px`});return()=>{d(),n.scrollTo(r,o)}})():Ln(i,{overflow:"hidden",[l]:`${s}px`}));var u,d,f}),[o,e])}var rr=(0,r.createContext)({});function or({store:e,type:t,listener:n,capture:o,domReady:i}){const a=we(n),s=e.useState("open"),l=(0,r.useRef)(!1);be((()=>{if(!s)return;if(!i)return;const{contentElement:t}=e.getState();if(!t)return;const n=()=>{l.current=!0};return t.addEventListener("focusin",n,!0),()=>t.removeEventListener("focusin",n,!0)}),[e,s,i]),(0,r.useEffect)((()=>{if(!s)return;return pe(t,(t=>{const{contentElement:n,disclosureElement:r}=e.getState(),o=t.target;if(!n)return;if(!o)return;if(!function(e){return"HTML"===e.tagName||Y(G(e).body,e)}(o))return;if(Y(n,o))return;if(function(e,t){if(!e)return!1;if(Y(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const t=G(e).getElementById(n);if(t)return Y(e,t)}return!1}(r,o))return;if(o.hasAttribute("data-focus-trap"))return;if(function(e,t){if(!("clientY"in e))return!1;const n=t.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=e.clientY&&e.clientY<=n.top+n.height&&n.left<=e.clientX&&e.clientX<=n.left+n.width}(t,n))return;l.current&&!Wn(o,n.id)||a(t)}),o)}),[s,o])}function ir(e,t){return"function"==typeof e?e(t):!!e}function ar(e,t,n){const o=function(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{if(e)return pe("mousedown",(e=>{t.current=e.target}),!0);t.current=null}),[e]),t}(e.useState("open")),i={store:e,domReady:n,capture:!0};or(w(x({},i),{type:"click",listener:n=>{const{contentElement:r}=e.getState(),i=o.current;i&&Q(i)&&Wn(i,null==r?void 0:r.id)&&ir(t,n)&&e.hide()}})),or(w(x({},i),{type:"focusin",listener:n=>{const{contentElement:r}=e.getState();r&&n.target!==G(r)&&ir(t,n)&&e.hide()}})),or(w(x({},i),{type:"contextmenu",listener:n=>{ir(t,n)&&e.hide()}}))}var sr=Ve((e=>{var t=e,{autoFocusOnShow:n=!0}=t,r=E(t,["autoFocusOnShow"]);return r=Te(r,(e=>(0,Le.jsx)(f.Provider,{value:n,children:e})),[n])}));Fe((e=>je("div",sr(e))));var lr=(0,r.createContext)(0);function cr({level:e,children:t}){const n=(0,r.useContext)(lr),o=Math.max(Math.min(e||n+1,6),1);return(0,Le.jsx)(lr.Provider,{value:o,children:t})}var ur=Ve((e=>e=w(x({},e),{style:x({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e.style)})));Fe((e=>je("span",ur(e))));var dr=Ve((e=>(e=w(x({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},e),{style:x({position:"fixed",top:0,left:0},e.style)}),e=ur(e)))),fr=Fe((e=>je("span",dr(e))));var mr=(0,r.createContext)(null);function pr(e){queueMicrotask((()=>{null==e||e.focus()}))}var hr=Ve((e=>{var t=e,{preserveTabOrder:n,preserveTabOrderAnchor:o,portalElement:i,portalRef:a,portal:s=!0}=t,l=E(t,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const c=(0,r.useRef)(null),u=Ee(c,l.ref),d=(0,r.useContext)(mr),[f,m]=(0,r.useState)(null),[p,h]=(0,r.useState)(null),g=(0,r.useRef)(null),v=(0,r.useRef)(null),b=(0,r.useRef)(null),y=(0,r.useRef)(null);return be((()=>{const e=c.current;if(!e||!s)return void m(null);const t=function(e,t){return t?"function"==typeof t?t(e):t:G(e).createElement("div")}(e,i);if(!t)return void m(null);const n=t.isConnected;if(!n){const n=d||function(e){return G(e).body}(e);n.appendChild(t)}return t.id||(t.id=e.id?`portal/${e.id}`:function(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).substr(2,6)}`}()),m(t),H(a,t),n?void 0:()=>{t.remove(),H(a,null)}}),[s,i,d,a]),be((()=>{if(!n)return;if(!o)return;const e=G(o).createElement("span");return e.style.position="fixed",o.insertAdjacentElement("afterend",e),h(e),()=>{e.remove(),h(null)}}),[n,o]),(0,r.useEffect)((()=>{if(!f)return;if(!n)return;let e=0;const t=t=>{if(!fe(t))return;const n="focusin"===t.type;if(cancelAnimationFrame(e),n)return function(e){const t=e.querySelectorAll("[data-tabindex]"),n=e=>{const t=e.getAttribute("data-tabindex");e.removeAttribute("data-tabindex"),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")};e.hasAttribute("data-tabindex")&&n(e),t.forEach(n)}(f);e=requestAnimationFrame((()=>{!function(e,t){qe(e,t).forEach(et)}(f,!0)}))};return f.addEventListener("focusin",t,!0),f.addEventListener("focusout",t,!0),()=>{cancelAnimationFrame(e),f.removeEventListener("focusin",t,!0),f.removeEventListener("focusout",t,!0)}}),[f,n]),l=Te(l,(e=>{if(e=(0,Le.jsx)(mr.Provider,{value:f||d,children:e}),!s)return e;if(!f)return(0,Le.jsx)("span",{ref:u,id:l.id,style:{position:"fixed"},hidden:!0});e=(0,Le.jsxs)(Le.Fragment,{children:[n&&f&&(0,Le.jsx)(fr,{ref:v,className:"__focus-trap-inner-before",onFocus:e=>{fe(e,f)?pr(Ke()):pr(g.current)}}),e,n&&f&&(0,Le.jsx)(fr,{ref:b,className:"__focus-trap-inner-after",onFocus:e=>{fe(e,f)?pr(Xe()):pr(y.current)}})]}),f&&(e=(0,tr.createPortal)(e,f));let t=(0,Le.jsxs)(Le.Fragment,{children:[n&&f&&(0,Le.jsx)(fr,{ref:g,className:"__focus-trap-outer-before",onFocus:e=>{!(e.relatedTarget===y.current)&&fe(e,f)?pr(v.current):pr(Xe())}}),n&&(0,Le.jsx)("span",{"aria-owns":null==f?void 0:f.id,style:{position:"fixed"}}),n&&f&&(0,Le.jsx)(fr,{ref:y,className:"__focus-trap-outer-after",onFocus:e=>{if(fe(e,f))pr(b.current);else{const e=Ke();if(e===v.current)return void requestAnimationFrame((()=>{var e;return null==(e=Ke())?void 0:e.focus()}));pr(e)}}})]});return p&&n&&(t=(0,tr.createPortal)(t,p)),(0,Le.jsxs)(Le.Fragment,{children:[t,e]})}),[f,d,s,l.id,n,p]),l=w(x({},l),{ref:u})}));Fe((e=>je("div",hr(e))));var gr=ae();function vr(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?We(n)?n:null:n:null}var br=Ve((e=>{var t=e,{store:n,open:o,onClose:i,focusable:a=!0,modal:s=!0,portal:l=!!s,backdrop:c=!!s,backdropProps:u,hideOnEscape:d=!0,hideOnInteractOutside:f=!0,getPersistentElements:m,preventBodyScroll:p=!!s,autoFocusOnShow:h=!0,autoFocusOnHide:g=!0,initialFocus:v,finalFocus:b,unmountOnHide:y}=t,_=E(t,["store","open","onClose","focusable","modal","portal","backdrop","backdropProps","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide"]);const S=cn(),C=(0,r.useRef)(null),k=function(e={}){const[t,n]=$t(Zt,e);return Jt(t,n,e)}({store:n||S,open:o,setOpen(e){if(e)return;const t=C.current;if(!t)return;const n=new Event("close",{bubbles:!1,cancelable:!0});i&&t.addEventListener("close",i,{once:!0}),t.dispatchEvent(n),n.defaultPrevented&&k.setOpen(!0)}}),{portalRef:P,domReady:T}=Ie(l,_.portalRef),I=_.preserveTabOrder,R=k.useState((e=>I&&!s&&e.mounted)),M=_e(_.id),N=k.useState("open"),D=k.useState("mounted"),A=k.useState("contentElement"),O=Yn(D,_.hidden,_.alwaysVisible);nr(A,M,p&&!O),ar(k,f,T);const{wrapElement:L,nestedDialogs:F}=function(e){const t=(0,r.useContext)(rr),[n,o]=(0,r.useState)([]),i=(0,r.useCallback)((e=>{var n;return o((t=>[...t,e])),z(null==(n=t.add)?void 0:n.call(t,e),(()=>{o((t=>t.filter((t=>t!==e))))}))}),[t]);be((()=>At(e,["open","contentElement"],(n=>{var r;if(n.open&&n.contentElement)return null==(r=t.add)?void 0:r.call(t,e)}))),[e,t]);const a=(0,r.useMemo)((()=>({store:e,add:i})),[e,i]);return{wrapElement:(0,r.useCallback)((e=>(0,Le.jsx)(rr.Provider,{value:a,children:e})),[a]),nestedDialogs:n}}(k);_=Te(_,L,[L]),be((()=>{if(!N)return;const e=C.current,t=q(e,!0);t&&"BODY"!==t.tagName&&(e&&Y(e,t)||k.setDisclosureElement(t))}),[k,N]),gr&&(0,r.useEffect)((()=>{if(!D)return;const{disclosureElement:e}=k.getState();if(!e)return;if(!X(e))return;const t=()=>{let t=!1;const n=()=>{t=!0};e.addEventListener("focusin",n,{capture:!0,once:!0}),me(e,"mouseup",(()=>{e.removeEventListener("focusin",n,!0),t||Qe(e)}))};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}}),[k,D]),(0,r.useEffect)((()=>{if(!s)return;if(!D)return;if(!T)return;const e=C.current;if(!e)return;return e.querySelector("[data-dialog-dismiss]")?void 0:function(e,t){const n=G(e).createElement("button");return n.type="button",n.tabIndex=-1,n.textContent="Dismiss popup",Object.assign(n.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),n.addEventListener("click",t),e.prepend(n),()=>{n.removeEventListener("click",t),n.remove()}}(e,k.hide)}),[k,s,D,T]),be((()=>{if(N)return;if(!D)return;if(!T)return;const e=C.current;return e?er(e):void 0}),[N,D,T]);const B=N&&T;be((()=>{if(!M)return;if(!B)return;const e=C.current;return function(e,t){const{body:n}=G(t[0]),r=[];return Vn(e,t,(t=>{r.push(zn(t,Bn(e),!0))})),z(zn(n,Bn(e),!0),(()=>r.forEach((e=>e()))))}(M,[e])}),[M,B]);const j=we(m);be((()=>{if(!M)return;if(!B)return;const{disclosureElement:e}=k.getState(),t=[C.current,...j()||[],...F.map((e=>e.getState().contentElement))];return s?z(Un(M,t),function(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return Vn(e,t,(e=>{Nn(e,...r)||n.unshift(er(e,t))})),()=>{n.forEach((e=>e()))}}(M,t)):Un(M,[e,...t])}),[M,k,B,j,F,s]);const V=!!h,H=Pe(h),[$,W]=(0,r.useState)(!1);(0,r.useEffect)((()=>{if(!N)return;if(!V)return;if(!T)return;if(!(null==A?void 0:A.isConnected))return;const e=vr(v,!0)||A.querySelector("[data-autofocus=true],[autofocus]")||Ye(A,!0,l&&R)||A,t=We(e);H(t?e:null)&&(W(!0),queueMicrotask((()=>{e.focus(),gr&&e.scrollIntoView({block:"nearest",inline:"nearest"})})))}),[N,V,T,A,v,l,R,H]);const U=!!g,K=Pe(g),[Z,J]=(0,r.useState)(!1);(0,r.useEffect)((()=>{if(N)return J(!0),()=>J(!1)}),[N]);const Q=(0,r.useCallback)(((e,t=!0)=>{const{disclosureElement:n}=k.getState();if(function(e){const t=q();return!(!t||e&&Y(e,t)||!We(t))}(e))return;let r=vr(b)||n;if(null==r?void 0:r.id){const e=G(r),t=`[aria-activedescendant="${r.id}"]`,n=e.querySelector(t);n&&(r=n)}if(r&&!We(r)){const e=ee(r,"[data-dialog]");if(e&&e.id){const t=G(e),n=`[aria-controls~="${e.id}"]`,o=t.querySelector(n);o&&(r=o)}}const o=r&&We(r);o||!t?K(o?r:null)&&o&&(null==r||r.focus()):requestAnimationFrame((()=>Q(e,!1)))}),[k,b,K]);be((()=>{if(N)return;if(!Z)return;if(!U)return;const e=C.current;Q(e)}),[N,Z,T,U,Q]),(0,r.useEffect)((()=>{if(!Z)return;if(!U)return;const e=C.current;return()=>Q(e)}),[Z,U,Q]);const te=Pe(d);(0,r.useEffect)((()=>{if(!T)return;if(!D)return;return pe("keydown",(e=>{if("Escape"!==e.key)return;if(e.defaultPrevented)return;const t=C.current;if(!t)return;if(Wn(t))return;const n=e.target;if(!n)return;const{disclosureElement:r}=k.getState();("BODY"===n.tagName||Y(t,n)||!r||Y(r,n))&&te(e)&&k.hide()}),!0)}),[k,T,D,te]);const ne=(_=Te(_,(e=>(0,Le.jsx)(cr,{level:s?1:void 0,children:e})),[s])).hidden,re=_.alwaysVisible;_=Te(_,(e=>c?(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(Jn,{store:k,backdrop:c,backdropProps:u,hidden:ne,alwaysVisible:re}),e]}):e),[k,c,u,ne,re]);const[oe,ie]=(0,r.useState)(),[ae,se]=(0,r.useState)();return _=Te(_,(e=>(0,Le.jsx)(dn,{value:k,children:(0,Le.jsx)(fn.Provider,{value:ie,children:(0,Le.jsx)(mn.Provider,{value:se,children:e})})})),[k]),_=w(x({id:M,"data-dialog":"",role:"dialog",tabIndex:a?-1:void 0,"aria-labelledby":oe,"aria-describedby":ae},_),{ref:Ee(C,_.ref)}),_=sr(w(x({},_),{autoFocusOnShow:$})),_=Kn(x({store:k},_)),_=ct(w(x({},_),{focusable:a})),_=hr(w(x({portal:l},_),{portalRef:P,preserveTabOrder:R}))}));function yr(e,t=cn){return Fe((n=>{const r=t();return Vt(n.store||r,(e=>!n.unmountOnHide||(null==e?void 0:e.mounted)||!!n.open))?(0,Le.jsx)(e,x({},n)):null}))}yr(Fe((e=>je("div",br(e)))),cn);const xr=Math.min,wr=Math.max,Er=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),_r={start:"end",end:"start"};function Sr(e,t,n){return wr(e,xr(t,n))}function Cr(e,t){return"function"==typeof e?e(t):e}function kr(e){return e.split("-")[0]}function Pr(e){return e.split("-")[1]}function Tr(e){return"x"===e?"y":"x"}function Ir(e){return"y"===e?"height":"width"}function Rr(e){return["top","bottom"].includes(kr(e))?"y":"x"}function Mr(e){return Tr(Rr(e))}function Nr(e){return e.replace(/start|end/g,(e=>_r[e]))}function Dr(e){return e.replace(/left|right|bottom|top/g,(e=>Er[e]))}function Ar(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Or(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function zr(e,t,n){let{reference:r,floating:o}=e;const i=Rr(t),a=Mr(t),s=Ir(a),l=kr(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let m;switch(l){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(Pr(t)){case"start":m[a]-=f*(n&&c?-1:1);break;case"end":m[a]+=f*(n&&c?-1:1)}return m}async function Lr(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=Cr(t,e),p=Ar(m),h=s[f?"floating"===d?"reference":"floating":d],g=Or(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{...a.floating,x:r,y:o}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=Or(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-x.top+p.top)/y.y,bottom:(x.bottom-g.bottom+p.bottom)/y.y,left:(g.left-x.left+p.left)/y.x,right:(x.right-g.right+p.right)/y.x}}const Fr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=kr(n),s=Pr(n),l="y"===Rr(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=Cr(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(m="end"===s?-1*p:p),l?{x:m*u,y:f*c}:{x:f*c,y:m*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},Br=Math.min,jr=Math.max,Vr=Math.round,Hr=Math.floor,$r=e=>({x:e,y:e});function Wr(e){return qr(e)?(e.nodeName||"").toLowerCase():"#document"}function Ur(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Gr(e){var t;return null==(t=(qr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function qr(e){return e instanceof Node||e instanceof Ur(e).Node}function Yr(e){return e instanceof Element||e instanceof Ur(e).Element}function Kr(e){return e instanceof HTMLElement||e instanceof Ur(e).HTMLElement}function Xr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Ur(e).ShadowRoot)}function Zr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=no(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Jr(e){return["table","td","th"].includes(Wr(e))}function Qr(e){const t=eo(),n=no(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function eo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function to(e){return["html","body","#document"].includes(Wr(e))}function no(e){return Ur(e).getComputedStyle(e)}function ro(e){return Yr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function oo(e){if("html"===Wr(e))return e;const t=e.assignedSlot||e.parentNode||Xr(e)&&e.host||Gr(e);return Xr(t)?t.host:t}function io(e){const t=oo(e);return to(t)?e.ownerDocument?e.ownerDocument.body:e.body:Kr(t)&&Zr(t)?t:io(t)}function ao(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=io(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Ur(o);return i?t.concat(a,a.visualViewport||[],Zr(o)?o:[],a.frameElement&&n?ao(a.frameElement):[]):t.concat(o,ao(o,[],n))}function so(e){const t=no(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Kr(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Vr(n)!==i||Vr(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function lo(e){return Yr(e)?e:e.contextElement}function co(e){const t=lo(e);if(!Kr(t))return $r(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=so(t);let a=(i?Vr(n.width):n.width)/r,s=(i?Vr(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const uo=$r(0);function fo(e){const t=Ur(e);return eo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:uo}function mo(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=lo(e);let a=$r(1);t&&(r?Yr(r)&&(a=co(r)):a=co(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ur(e))&&t}(i,n,r)?fo(i):$r(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Ur(i),t=r&&Yr(r)?Ur(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=co(o),t=o.getBoundingClientRect(),r=no(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=Ur(o),o=n.frameElement}}return Or({width:u,height:d,x:l,y:c})}const po=[":popover-open",":modal"];function ho(e){return po.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function go(e){return mo(Gr(e)).left+ro(e).scrollLeft}function vo(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ur(e),r=Gr(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=eo();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Gr(e),n=ro(e),r=e.ownerDocument.body,o=jr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=jr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+go(e);const s=-n.scrollTop;return"rtl"===no(r).direction&&(a+=jr(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Gr(e));else if(Yr(t))r=function(e,t){const n=mo(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Kr(e)?co(e):$r(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=fo(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Or(r)}function bo(e,t){const n=oo(e);return!(n===t||!Yr(n)||to(n))&&("fixed"===no(n).position||bo(n,t))}function yo(e,t,n){const r=Kr(t),o=Gr(t),i="fixed"===n,a=mo(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=$r(0);if(r||!r&&!i)if(("body"!==Wr(t)||Zr(o))&&(s=ro(t)),r){const e=mo(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=go(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function xo(e,t){return Kr(e)&&"fixed"!==no(e).position?t?t(e):e.offsetParent:null}function wo(e,t){const n=Ur(e);if(!Kr(e)||ho(e))return n;let r=xo(e,t);for(;r&&Jr(r)&&"static"===no(r).position;)r=xo(r,t);return r&&("html"===Wr(r)||"body"===Wr(r)&&"static"===no(r).position&&!Qr(r))?n:r||function(e){let t=oo(e);for(;Kr(t)&&!to(t);){if(Qr(t))return t;t=oo(t)}return null}(e)||n}const Eo={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Gr(r),s=!!t&&ho(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=$r(1);const u=$r(0),d=Kr(r);if((d||!d&&!i)&&(("body"!==Wr(r)||Zr(a))&&(l=ro(r)),Kr(r))){const e=mo(r);c=co(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:Gr,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=ao(e,[],!1).filter((e=>Yr(e)&&"body"!==Wr(e))),o=null;const i="fixed"===no(e).position;let a=i?oo(e):e;for(;Yr(a)&&!to(a);){const t=no(a),n=Qr(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Zr(a)&&!n&&bo(e,a))?r=r.filter((e=>e!==a)):o=t,a=oo(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=a[0],l=a.reduce(((e,n)=>{const r=vo(t,n,o);return e.top=jr(r.top,e.top),e.right=Br(r.right,e.right),e.bottom=Br(r.bottom,e.bottom),e.left=jr(r.left,e.left),e}),vo(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:wo,getElementRects:async function(e){const t=this.getOffsetParent||wo,n=this.getDimensions;return{reference:yo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=so(e);return{width:t,height:n}},getScale:co,isElement:Yr,isRTL:function(e){return"rtl"===no(e).direction}};function _o(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=lo(e),u=o||i?[...c?ao(c):[],...ao(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=Gr(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const m={rootMargin:-Hr(u)+"px "+-Hr(o.clientWidth-(c+d))+"px "+-Hr(o.clientHeight-(u+f))+"px "+-Hr(c)+"px",threshold:jr(0,Br(1,l))||1};let p=!0;function h(e){const t=e[0].intersectionRatio;if(t!==l){if(!p)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}p=!1}try{r=new IntersectionObserver(h,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,m)}r.observe(e)}(!0),i}(c,n):null;let f,m=-1,p=null;a&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),c&&!l&&p.observe(c),p.observe(t));let h=l?mo(e):null;return l&&function t(){const r=mo(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const So=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Cr(e,t),c={x:n,y:r},u=await Lr(t,l),d=Rr(kr(o)),f=Tr(d);let m=c[f],p=c[d];if(i){const e="y"===f?"bottom":"right";m=Sr(m+u["y"===f?"top":"left"],m,m-u[e])}if(a){const e="y"===d?"bottom":"right";p=Sr(p+u["y"===d?"top":"left"],p,p-u[e])}const h=s.fn({...t,[f]:m,[d]:p});return{...h,data:{x:h.x-n,y:h.y-r}}}}},Co=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...g}=Cr(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=kr(o),b=kr(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(b||!h?[Dr(s)]:function(e){const t=Dr(e);return[Nr(e),t,Nr(t)]}(s));f||"none"===p||x.push(...function(e,t,n,r){const o=Pr(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(kr(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Nr)))),i}(s,h,p,y));const w=[s,...x],E=await Lr(t,g),_=[];let S=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&_.push(E[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Pr(e),o=Mr(e),i=Ir(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Dr(a)),[a,Dr(a)]}(o,a,y);_.push(E[e[0]],E[e[1]])}if(S=[...S,{placement:o,overflows:_}],!_.every((e=>e<=0))){var C,k;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(k=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:k.placement;if(!n)switch(m){case"bestFit":{var P;const e=null==(P=S.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},ko=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...s}=Cr(e,t),l=await Lr(t,s),c=kr(n),u=Pr(n),d="y"===Rr(n),{width:f,height:m}=r.floating;let p,h;"top"===c||"bottom"===c?(p=c,h=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,p="end"===u?"top":"bottom");const g=m-l[p],v=f-l[h],b=!t.middlewareData.shift;let y=g,x=v;if(d){const e=f-l.left-l.right;x=u||b?xr(v,e):e}else{const e=m-l.top-l.bottom;y=u||b?xr(g,e):e}if(b&&!u){const e=wr(l.left,0),t=wr(l.right,0),n=wr(l.top,0),r=wr(l.bottom,0);d?x=f-2*(0!==e||0!==t?e+t:wr(l.left,l.right)):y=m-2*(0!==n||0!==r?n+r:wr(l.top,l.bottom))}await a({...t,availableWidth:x,availableHeight:y});const w=await o.getDimensions(i.floating);return f!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}},Po=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Cr(e,t)||{};if(null==c)return{};const d=Ar(u),f={x:n,y:r},m=Mr(o),p=Ir(m),h=await a.getDimensions(c),g="y"===m,v=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",x=i.reference[p]+i.reference[m]-f[m]-i.floating[p],w=f[m]-i.reference[m],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let _=E?E[y]:0;_&&await(null==a.isElement?void 0:a.isElement(E))||(_=s.floating[y]||i.floating[p]);const S=x/2-w/2,C=_/2-h[p]/2-1,k=xr(d[v],C),P=xr(d[b],C),T=k,I=_-h[p]-P,R=_/2-h[p]/2+S,M=Sr(T,R,I),N=!l.arrow&&null!=Pr(o)&&R!=M&&i.reference[p]/2-(R<T?k:P)-h[p]/2<0,D=N?R<T?R-T:R-I:0;return{[m]:f[m]+D,data:{[m]:M,centerOffset:R-M-D,...N&&{alignmentOffset:D}},reset:N}}}),To=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Cr(e,t),u={x:n,y:r},d=Rr(o),f=Tr(d);let m=u[f],p=u[d];const h=Cr(s,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;m<t?m=t:m>n&&(m=n)}if(c){var v,b;const e="y"===f?"width":"height",t=["top","left"].includes(kr(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[f]:m,[d]:p}}}},Io=(e,t,n)=>{const r=new Map,o={platform:Eo,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=zr(c,r,l),f=r,m={},p=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:g,y:v,data:b,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,m={...m,[i]:{...m[i],...b}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=zr(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};function Ro(e=0,t=0,n=0,r=0){if("function"==typeof DOMRect)return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return w(x({},o),{toJSON:()=>o})}function Mo(e,t){return{contextElement:e||void 0,getBoundingClientRect:()=>{const n=e,r=null==t?void 0:t(n);return r||!n?function(e){if(!e)return Ro();const{x:t,y:n,width:r,height:o}=e;return Ro(t,n,r,o)}(r):n.getBoundingClientRect()}}}function No(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function Do(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function Ao(e,t){return Fr((({placement:n})=>{var r;const o=((null==e?void 0:e.clientHeight)||0)/2,i="number"==typeof t.gutter?t.gutter+o:null!=(r=t.gutter)?r:o;return{crossAxis:!!n.split("-")[1]?void 0:t.shift,mainAxis:i,alignmentAxis:t.shift}}))}function Oo(e){if(!1===e.flip)return;const t="string"==typeof e.flip?e.flip.split(" "):void 0;return F(!t||t.every(No),!1),Co({padding:e.overflowPadding,fallbackPlacements:t})}function zo(e){if(e.slide||e.overlap)return So({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:To()})}function Lo(e){return ko({padding:e.overflowPadding,apply({elements:t,availableWidth:n,availableHeight:r,rects:o}){const i=t.floating,a=Math.round(o.reference.width);n=Math.floor(n),r=Math.floor(r),i.style.setProperty("--popover-anchor-width",`${a}px`),i.style.setProperty("--popover-available-width",`${n}px`),i.style.setProperty("--popover-available-height",`${r}px`),e.sameWidth&&(i.style.width=`${a}px`),e.fitViewport&&(i.style.maxWidth=`${n}px`,i.style.maxHeight=`${r}px`)}})}function Fo(e,t){if(e)return Po({element:e,padding:t.arrowPadding})}var Bo=Ve((e=>{var t=e,{store:n,modal:o=!1,portal:i=!!o,preserveTabOrder:a=!0,autoFocusOnShow:s=!0,wrapperProps:l,fixed:c=!1,flip:u=!0,shift:d=0,slide:f=!0,overlap:m=!1,sameWidth:p=!1,fitViewport:h=!1,gutter:g,arrowPadding:v=4,overflowPadding:b=8,getAnchorRect:y,updatePosition:_}=t,S=E(t,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const C=hn();F(n=n||C,!1);const k=n.useState("arrowElement"),P=n.useState("anchorElement"),T=n.useState("disclosureElement"),I=n.useState("popoverElement"),R=n.useState("contentElement"),M=n.useState("placement"),N=n.useState("mounted"),D=n.useState("rendered"),[A,O]=(0,r.useState)(!1),{portalRef:z,domReady:L}=Ie(i,S.portalRef),B=we(y),j=we(_),V=!!_;be((()=>{if(!(null==I?void 0:I.isConnected))return;I.style.setProperty("--popover-overflow-padding",`${b}px`);const e=Mo(P,B),t=async()=>{if(!N)return;const t=[Ao(k,{gutter:g,shift:d}),Oo({flip:u,overflowPadding:b}),zo({slide:f,shift:d,overlap:m,overflowPadding:b}),Fo(k,{arrowPadding:v}),Lo({sameWidth:p,fitViewport:h,overflowPadding:b})],r=await Io(e,I,{placement:M,strategy:c?"fixed":"absolute",middleware:t});null==n||n.setState("currentPlacement",r.placement),O(!0);const o=Do(r.x),i=Do(r.y);if(Object.assign(I.style,{top:"0",left:"0",transform:`translate3d(${o}px,${i}px,0)`}),k&&r.middlewareData.arrow){const{x:e,y:t}=r.middlewareData.arrow,n=r.placement.split("-")[0];Object.assign(k.style,{left:null!=e?`${e}px`:"",top:null!=t?`${t}px`:"",[n]:"100%"})}},r=_o(e,I,(async()=>{V?(await j({updatePosition:t}),O(!0)):await t()}),{elementResize:"function"==typeof ResizeObserver});return()=>{O(!1),r()}}),[n,D,I,k,P,I,M,N,L,c,u,d,f,m,p,h,g,v,b,B,V,j]),be((()=>{if(!N)return;if(!L)return;if(!(null==I?void 0:I.isConnected))return;if(!(null==R?void 0:R.isConnected))return;const e=()=>{I.style.zIndex=getComputedStyle(R).zIndex};e();let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}),[N,L,I,R]);const H=c?"fixed":"absolute";return S=Te(S,(e=>(0,Le.jsx)("div",w(x({role:"presentation"},l),{style:x({position:H,top:0,left:0,width:"max-content"},null==l?void 0:l.style),ref:null==n?void 0:n.setPopoverElement,children:e}))),[n,H,l]),S=Te(S,(e=>(0,Le.jsx)(vn,{value:n,children:e})),[n]),S=w(x({"data-placing":A?void 0:""},S),{style:x({position:"relative"},S.style)}),S=br(w(x({store:n,modal:o,portal:i,preserveTabOrder:a,preserveTabOrderAnchor:T||P,autoFocusOnShow:A&&s},S),{portalRef:z}))}));yr(Fe((e=>je("div",Bo(e)))),hn);function jo(e,t,n,r){return!!Je(t)||!!e&&(!!Y(t,e)||(!(!n||!Y(n,e))||!!(null==r?void 0:r.some((t=>jo(e,t,n))))))}var Vo=(0,r.createContext)(null),Ho=Ve((e=>{var t=e,{store:n,modal:o=!1,portal:i=!!o,hideOnEscape:a=!0,hideOnHoverOutside:s=!0,disablePointerEventsOnApproach:l=!!s}=t,c=E(t,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const u=yn();F(n=n||u,!1);const d=(0,r.useRef)(null),[f,m]=(0,r.useState)([]),p=(0,r.useRef)(0),h=(0,r.useRef)(null),{portalRef:g,domReady:v}=Ie(i,c.portalRef),b=!!s,y=Pe(s),_=!!l,S=Pe(l),C=n.useState("open"),k=n.useState("mounted");(0,r.useEffect)((()=>{if(!v)return;if(!k)return;if(!b&&!_)return;const e=d.current;if(!e)return;return z(pe("mousemove",(t=>{if(!n)return;const{anchorElement:r,hideTimeout:o,timeout:i}=n.getState(),a=h.current,[s]=t.composedPath(),l=r;if(jo(s,e,l,f))return h.current=s&&l&&Y(l,s)?In(t):null,window.clearTimeout(p.current),void(p.current=0);if(!p.current){if(a){const n=In(t);if(Rn(n,Mn(e,a))){if(h.current=n,!S(t))return;return t.preventDefault(),void t.stopPropagation()}}y(t)&&(p.current=window.setTimeout((()=>{p.current=0,null==n||n.hide()}),null!=o?o:i))}}),!0),(()=>clearTimeout(p.current)))}),[n,v,k,b,_,f,S,y]),(0,r.useEffect)((()=>{if(!v)return;if(!k)return;if(!_)return;const e=e=>{const t=d.current;if(!t)return;const n=h.current;if(!n)return;const r=Mn(t,n);if(Rn(In(e),r)){if(!S(e))return;e.preventDefault(),e.stopPropagation()}};return z(pe("mouseenter",e,!0),pe("mouseover",e,!0),pe("mouseout",e,!0),pe("mouseleave",e,!0))}),[v,k,_,S]),(0,r.useEffect)((()=>{v&&(C||null==n||n.setAutoFocusOnShow(!1))}),[n,v,C]);const P=xe(C);(0,r.useEffect)((()=>{if(v)return()=>{P.current||null==n||n.setAutoFocusOnShow(!1)}}),[n,v]);const T=(0,r.useContext)(Vo);be((()=>{if(o)return;if(!i)return;if(!k)return;if(!v)return;const e=d.current;return e?null==T?void 0:T(e):void 0}),[o,i,k,v]);const I=(0,r.useCallback)((e=>{m((t=>[...t,e]));const t=null==T?void 0:T(e);return()=>{m((t=>t.filter((t=>t!==e)))),null==t||t()}}),[T]);c=Te(c,(e=>(0,Le.jsx)(wn,{value:n,children:(0,Le.jsx)(Vo.Provider,{value:I,children:e})})),[n,I]),c=w(x({},c),{ref:Ee(d,c.ref)}),c=function(e){var t=e,{store:n}=t,o=E(t,["store"]);const[i,a]=(0,r.useState)(!1),s=n.useState("mounted");(0,r.useEffect)((()=>{s||a(!1)}),[s]);const l=o.onFocus,c=we((e=>{null==l||l(e),e.defaultPrevented||a(!0)})),u=(0,r.useRef)(null);return(0,r.useEffect)((()=>At(n,["anchorElement"],(e=>{u.current=e.anchorElement}))),[]),w(x({autoFocusOnHide:i,finalFocus:u},o),{onFocus:c})}(x({store:n},c));const R=n.useState((e=>o||e.autoFocusOnShow));return c=Bo(w(x({store:n,modal:o,portal:i,autoFocusOnShow:R},c),{portalRef:g,hideOnEscape:e=>!B(a,e)&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{null==n||n.hide()}))})),!0)}))}));yr(Fe((e=>je("div",Ho(e)))),yn);var $o=Ve((e=>{var t=e,{store:n,portal:r=!0,gutter:o=8,preserveTabOrder:i=!1,hideOnHoverOutside:a=!0,hideOnInteractOutside:s=!0}=t,l=E(t,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const c=Sn();F(n=n||c,!1),l=Te(l,(e=>(0,Le.jsx)(Cn,{value:n,children:e})),[n]);const u=n.useState((e=>"description"===e.type?"tooltip":"none"));return l=x({role:u},l),l=Ho(w(x({},l),{store:n,portal:r,gutter:o,preserveTabOrder:i,hideOnHoverOutside:e=>{if(B(a,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!("focusVisible"in t.dataset)},hideOnInteractOutside:e=>{if(B(s,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!Y(t,e.target)}}))})),Wo=yr(Fe((e=>je("div",$o(e)))),Sn);const Uo=window.wp.element,Go=window.wp.deprecated;var qo=o.n(Go);const Yo=function(e){const{shortcut:t,className:n}=e;if(!t)return null;let o,i;return"string"==typeof t&&(o=t),null!==t&&"object"==typeof t&&(o=t.display,i=t.ariaLabel),(0,r.createElement)("span",{className:n,"aria-label":i},o)},Ko={bottom:"bottom",top:"top","middle left":"left","middle right":"right","bottom left":"bottom-end","bottom center":"bottom","bottom right":"bottom-start","top left":"top-end","top center":"top","top right":"top-start","middle left left":"left","middle left right":"left","middle left bottom":"left-end","middle left top":"left-start","middle right left":"right","middle right right":"right","middle right bottom":"right-end","middle right top":"right-start","bottom left left":"bottom-end","bottom left right":"bottom-end","bottom left bottom":"bottom-end","bottom left top":"bottom-end","bottom center left":"bottom","bottom center right":"bottom","bottom center bottom":"bottom","bottom center top":"bottom","bottom right left":"bottom-start","bottom right right":"bottom-start","bottom right bottom":"bottom-start","bottom right top":"bottom-start","top left left":"top-end","top left right":"top-end","top left bottom":"top-end","top left top":"top-end","top center left":"top","top center right":"top","top center bottom":"top","top center top":"top","top right left":"top-start","top right right":"top-start","top right bottom":"top-start","top right top":"top-start",middle:"bottom","middle center":"bottom","middle center bottom":"bottom","middle center left":"bottom","middle center right":"bottom","middle center top":"bottom"},Xo=e=>{var t;return null!==(t=Ko[e])&&void 0!==t?t:"bottom"},Zo={top:{originX:.5,originY:1},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},right:{originX:0,originY:.5},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},bottom:{originX:.5,originY:0},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},left:{originX:1,originY:.5},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1},overlay:{originX:.5,originY:.5}};const Jo=e=>null===e||Number.isNaN(e)?void 0:Math.round(e),Qo=(0,Uo.createContext)({isNestedInTooltip:!1}),ei=700,ti={isNestedInTooltip:!0};const ni=(0,Uo.forwardRef)((function(e,t){const{children:n,delay:o=ei,hideOnClick:i=!0,placement:a,position:s,shortcut:l,text:c,...u}=e,{isNestedInTooltip:f}=(0,Uo.useContext)(Qo),m=(0,d.useInstanceId)(ni,"tooltip"),p=c||l?m:void 0,h=1===Uo.Children.count(n);let g;void 0!==a?g=a:void 0!==s&&(g=Xo(s),qo()("`position` prop in wp.components.tooltip",{since:"6.4",alternative:"`placement` prop"})),g=g||"bottom";const v=rn({placement:g,showTimeout:o});return f?h?(0,r.createElement)(on,{...u,render:n}):n:(0,r.createElement)(Qo.Provider,{value:ti},(0,r.createElement)(Tn,{onClick:i?v.hide:void 0,store:v,render:h?n:void 0,ref:t},h?void 0:n),h&&(c||l)&&(0,r.createElement)(Wo,{...u,className:"components-tooltip",unmountOnHide:!0,gutter:4,id:p,overflowPadding:.5,store:v},c,l&&(0,r.createElement)(Yo,{className:c?"components-tooltip__shortcut":"",shortcut:l})))})),ri=ni;window.wp.warning;var oi=o(66),ii=o.n(oi),ai=o(7734),si=o.n(ai);
+ */var r=n(1609);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return a((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),s((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},422:(e,t,n)=>{"use strict";e.exports=n(8477)},1609:e=>{"use strict";e.exports=window.React}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,o.d(i,s),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};(()=>{"use strict";o.r(i),o.d(i,{AnglePickerControl:()=>py,Animate:()=>yl,Autocomplete:()=>kw,BaseControl:()=>Dx,BlockQuotation:()=>n.BlockQuotation,Button:()=>Hx,ButtonGroup:()=>Qj,Card:()=>AE,CardBody:()=>WE,CardDivider:()=>nP,CardFooter:()=>oP,CardHeader:()=>sP,CardMedia:()=>lP,CheckboxControl:()=>cP,Circle:()=>n.Circle,ClipboardButton:()=>dP,ColorIndicator:()=>A_,ColorPalette:()=>fk,ColorPicker:()=>GC,ComboboxControl:()=>qT,CustomGradientPicker:()=>rT,CustomSelectControl:()=>BM,Dashicon:()=>Fx,DatePicker:()=>MN,DateTimePicker:()=>tA,Disabled:()=>cA,Draggable:()=>pA,DropZone:()=>vA,DropZoneProvider:()=>bA,Dropdown:()=>F_,DropdownMenu:()=>wT,DuotonePicker:()=>jA,DuotoneSwatch:()=>wA,ExternalLink:()=>EA,Fill:()=>cw,Flex:()=>dg,FlexBlock:()=>hg,FlexItem:()=>jg,FocalPointPicker:()=>QA,FocusReturnProvider:()=>BB,FocusableIframe:()=>eD,FontSizePicker:()=>vD,FormFileUpload:()=>bD,FormToggle:()=>yD,FormTokenField:()=>jD,G:()=>n.G,GradientPicker:()=>lT,Guide:()=>TD,GuidePage:()=>ID,HorizontalRule:()=>n.HorizontalRule,Icon:()=>Bx,IconButton:()=>MD,IsolatedEventContainer:()=>CB,KeyboardShortcuts:()=>OD,Line:()=>n.Line,MenuGroup:()=>zD,MenuItem:()=>FD,MenuItemsChoice:()=>VD,Modal:()=>hI,NavigableMenu:()=>vT,Notice:()=>gz,NoticeList:()=>bz,Panel:()=>yz,PanelBody:()=>kz,PanelHeader:()=>xz,PanelRow:()=>jz,Path:()=>n.Path,Placeholder:()=>Pz,Polygon:()=>n.Polygon,Popover:()=>bw,ProgressBar:()=>Az,QueryControls:()=>Wz,RadioControl:()=>Xz,RangeControl:()=>BS,Rect:()=>n.Rect,ResizableBox:()=>DL,ResponsiveWrapper:()=>OL,SVG:()=>n.SVG,SandBox:()=>LL,ScrollLock:()=>Ny,SearchControl:()=>NO,SelectControl:()=>J_,Slot:()=>uw,SlotFillProvider:()=>dw,Snackbar:()=>BL,SnackbarList:()=>$L,Spinner:()=>YL,TabPanel:()=>uF,TabbableContainer:()=>$D,TextControl:()=>pF,TextHighlight:()=>yF,TextareaControl:()=>xF,TimePicker:()=>ZN,Tip:()=>_F,ToggleControl:()=>SF,Toolbar:()=>$F,ToolbarButton:()=>NF,ToolbarDropdownMenu:()=>HF,ToolbarGroup:()=>OF,ToolbarItem:()=>MF,Tooltip:()=>ri,TreeSelect:()=>Fz,VisuallyHidden:()=>wa,__experimentalAlignmentMatrixControl:()=>vl,__experimentalApplyValueToSides:()=>Vj,__experimentalBorderBoxControl:()=>fj,__experimentalBorderControl:()=>qk,__experimentalBoxControl:()=>Jj,__experimentalConfirmDialog:()=>mI,__experimentalDimensionControl:()=>rA,__experimentalDivider:()=>eP,__experimentalDropdownContentWrapper:()=>lk,__experimentalElevation:()=>rE,__experimentalGrid:()=>Jk,__experimentalHStack:()=>ry,__experimentalHasSplitBorders:()=>aj,__experimentalHeading:()=>ok,__experimentalInputControl:()=>Lx,__experimentalInputControlPrefixWrapper:()=>AD,__experimentalInputControlSuffixWrapper:()=>B_,__experimentalIsDefinedBorder:()=>sj,__experimentalIsEmptyBorder:()=>ij,__experimentalItem:()=>ND,__experimentalItemGroup:()=>PP,__experimentalNavigation:()=>cO,__experimentalNavigationBackButton:()=>hO,__experimentalNavigationGroup:()=>gO,__experimentalNavigationItem:()=>kO,__experimentalNavigationMenu:()=>zO,__experimentalNavigatorBackButton:()=>dz,__experimentalNavigatorButton:()=>cz,__experimentalNavigatorProvider:()=>nz,__experimentalNavigatorScreen:()=>iz,__experimentalNavigatorToParentButton:()=>pz,__experimentalNumberControl:()=>sy,__experimentalPaletteEdit:()=>LT,__experimentalParseQuantityAndUnitFromRawValue:()=>zk,__experimentalRadio:()=>Kz,__experimentalRadioGroup:()=>qz,__experimentalScrollable:()=>$E,__experimentalSpacer:()=>Sg,__experimentalStyleProvider:()=>ew,__experimentalSurface:()=>qL,__experimentalText:()=>Dv,__experimentalToggleGroupControl:()=>h_,__experimentalToggleGroupControlOption:()=>dD,__experimentalToggleGroupControlOptionIcon:()=>M_,__experimentalToolbarContext:()=>IF,__experimentalToolsPanel:()=>cB,__experimentalToolsPanelContext:()=>eB,__experimentalToolsPanelItem:()=>pB,__experimentalTreeGrid:()=>bB,__experimentalTreeGridCell:()=>_B,__experimentalTreeGridItem:()=>wB,__experimentalTreeGridRow:()=>xB,__experimentalTruncate:()=>nk,__experimentalUnitControl:()=>Wk,__experimentalUseCustomUnits:()=>Lk,__experimentalUseNavigator:()=>sz,__experimentalUseSlot:()=>Oy,__experimentalUseSlotFills:()=>kB,__experimentalVStack:()=>tk,__experimentalView:()=>ya,__experimentalZStack:()=>IB,__unstableAnimatePresence:()=>Zm,__unstableComposite:()=>rI,__unstableCompositeGroup:()=>oI,__unstableCompositeItem:()=>iI,__unstableDisclosureContent:()=>uA,__unstableGetAnimateClassName:()=>xl,__unstableMotion:()=>Hm,__unstableMotionContext:()=>_l,__unstableUseAutocompleteProps:()=>Cw,__unstableUseCompositeState:()=>sI,__unstableUseNavigateRegions:()=>RB,createSlotFill:()=>pw,navigateRegions:()=>NB,privateApis:()=>eH,useBaseControlProps:()=>jw,withConstrainedTabbing:()=>AB,withFallbackStyles:()=>DB,withFilters:()=>LB,withFocusOutside:()=>UT,withFocusReturn:()=>FB,withNotices:()=>VB,withSpokenMessages:()=>EO});var e={};o.r(e),o.d(e,{Text:()=>xv,block:()=>yv,destructive:()=>_v,highlighterText:()=>Cv,muted:()=>Sv,positive:()=>wv,upperCase:()=>kv});var t={};o.r(t),o.d(t,{ButtonContentView:()=>w_,LabelView:()=>g_,ou:()=>S_,uG:()=>b_,eh:()=>v_});const n=window.wp.primitives;function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}const s=function(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o},a=window.wp.i18n,l=window.wp.compose;var c=o(1609),u=o.t(c,2),d=o.n(c),p=(0,c.createContext)(!0),h=Object.defineProperty,f=Object.defineProperties,m=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(e,t,n)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||(t={}))v.call(t,n)&&x(e,n,t[n]);if(g)for(var n of g(t))b.call(t,n)&&x(e,n,t[n]);return e},w=(e,t)=>f(e,m(t)),_=(e,t)=>{var n={};for(var r in e)v.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&g)for(var r of g(e))t.indexOf(r)<0&&b.call(e,r)&&(n[r]=e[r]);return n},S=Object.defineProperty,C=Object.defineProperties,k=Object.getOwnPropertyDescriptors,j=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,T=(e,t,n)=>t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I=(e,t)=>{for(var n in t||(t={}))E.call(t,n)&&T(e,n,t[n]);if(j)for(var n of j(t))P.call(t,n)&&T(e,n,t[n]);return e},M=(e,t)=>C(e,k(t)),R=(e,t)=>{var n={};for(var r in e)E.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&j)for(var r of j(e))t.indexOf(r)<0&&P.call(e,r)&&(n[r]=e[r]);return n};function N(...e){}function A(e,t){if(function(e){return"function"==typeof e}(e)){return e(function(e){return"function"==typeof e}(t)?t():t)}return e}function D(e,t){return"function"==typeof Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function O(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function z(e){return e}function L(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function F(e,...t){const n="function"==typeof e?e(...t):e;return null!=n&&!n}function B(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function V(...e){for(const t of e)if(void 0!==t)return t}function $(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function H(e){return function(e){return!!e&&!!(0,c.isValidElement)(e)&&"ref"in e}(e)?e.ref:null}var W,U="undefined"!=typeof window&&!!(null==(W=window.document)?void 0:W.createElement);function G(e){return e?e.ownerDocument||e:document}function K(e,t=!1){const{activeElement:n}=G(e);if(!(null==n?void 0:n.nodeName))return null;if(q(n)&&n.contentDocument)return K(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=G(n).getElementById(e);if(t)return t}}return n}function Y(e,t){return e===t||e.contains(t)}function q(e){return"IFRAME"===e.tagName}function X(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==Z.indexOf(e.type)}var Z=["button","color","file","image","reset","submit"];function J(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function Q(e){const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function ee(e,t){if("closest"in e)return e.closest(t);do{if(J(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function te(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function ne(e,t){const n=null==e?void 0:e.getAttribute("role");return n&&-1!==["dialog","menu","listbox","tree","grid"].indexOf(n)?n:t}function re(e,t){var n;const r=ne(e);if(!r)return t;return null!=(n={menu:"menuitem",listbox:"option",tree:"treeitem",grid:"gridcell"}[r])?n:t}function oe(e){if(!e)return null;if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}return oe(e.parentElement)||document.scrollingElement||document.body}function ie(){return!!U&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function se(){return U&&ie()&&/apple/i.test(navigator.vendor)}function ae(){return U&&navigator.platform.startsWith("Mac")&&!(U&&navigator.maxTouchPoints)}function le(e){return Boolean(e.currentTarget&&!Y(e.currentTarget,e.target))}function ce(e){return e.target===e.currentTarget}function ue(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=M(I({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function de(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function pe(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Y(n,r)}function he(e,t,n){const r=requestAnimationFrame((()=>{e.removeEventListener(t,o,!0),n()})),o=()=>{cancelAnimationFrame(r),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function fe(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push(fe(e,t,n,i))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}o.forEach((e=>e()))}}var me=y({},u),ge=me.useId,ve=(me.useDeferredValue,me.useInsertionEffect),be=U?c.useLayoutEffect:c.useEffect;function xe(e){const[t]=(0,c.useState)(e);return t}function ye(e){const t=(0,c.useRef)(e);return be((()=>{t.current=e})),t}function we(e){const t=(0,c.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return ve?ve((()=>{t.current=e})):t.current=e,(0,c.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function _e(...e){return(0,c.useMemo)((()=>{if(e.some(Boolean))return t=>{e.forEach((e=>$(e,t)))}}),e)}function Se(e){if(ge){const t=ge();return e||t}const[t,n]=(0,c.useState)(e);return be((()=>{if(e||t)return;const r=Math.random().toString(36).substr(2,6);n(`id-${r}`)}),[e,t]),e||t}function Ce(e,t){const n=e=>{if("string"==typeof e)return e},[r,o]=(0,c.useState)((()=>n(t)));return be((()=>{const r=e&&"current"in e?e.current:e;o((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),r}function ke(e,t){const n=(0,c.useRef)(!1);(0,c.useEffect)((()=>{if(n.current)return e();n.current=!0}),t),(0,c.useEffect)((()=>()=>{n.current=!1}),[])}Symbol("setNextState");function je(){return(0,c.useReducer)((()=>[]),[])}function Ee(e){return we("function"==typeof e?e:()=>e)}function Pe(e,t,n=[]){const r=(0,c.useCallback)((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return w(y({},e),{wrapElement:r})}function Te(e=!1,t){const[n,r]=(0,c.useState)(null);return{portalRef:_e(r,t),portalNode:n,domReady:!e||n}}function Ie(e,t,n){const r=e.onLoadedMetadataCapture,o=(0,c.useMemo)((()=>Object.assign((()=>{}),w(y({},r),{[t]:n}))),[r,t,n]);return[null==r?void 0:r[t],{onLoadedMetadataCapture:o}]}function Me(){(0,c.useEffect)((()=>{fe("mousemove",De,!0),fe("mousedown",Oe,!0),fe("mouseup",Oe,!0),fe("keydown",Oe,!0),fe("scroll",Oe,!0)}),[]);return we((()=>Re))}var Re=!1,Ne=0,Ae=0;function De(e){(function(e){const t=e.movementX||e.screenX-Ne,n=e.movementY||e.screenY-Ae;return Ne=e.screenX,Ae=e.screenY,t||n||!1})(e)&&(Re=!0)}function Oe(){Re=!1}const ze=window.ReactJSXRuntime;function Le(e){return c.forwardRef(((t,n)=>e(y({ref:n},t))))}function Fe(e){const t=Le(e);return c.memo(t)}function Be(e,t){const n=t,{as:r,wrapElement:o,render:i}=n,s=_(n,["as","wrapElement","render"]);let a;const l=_e(t.ref,H(i));if(r&&"string"!=typeof r)a=(0,ze.jsx)(r,w(y({},s),{render:i}));else if(c.isValidElement(i)){const e=w(y({},i.props),{ref:l});a=c.cloneElement(i,function(e,t){const n=y({},e);for(const r in t){if(!D(t,r))continue;if("className"===r){const r="className";n[r]=e[r]?`${e[r]} ${t[r]}`:t[r];continue}if("style"===r){const r="style";n[r]=e[r]?y(y({},e[r]),t[r]):t[r];continue}const o=t[r];if("function"==typeof o&&r.startsWith("on")){const t=e[r];if("function"==typeof t){n[r]=(...e)=>{o(...e),t(...e)};continue}}n[r]=o}return n}(s,e))}else if(i)a=i(s);else if("function"==typeof t.children){0;const e=s,{children:n}=e,r=_(e,["children"]);a=t.children(r)}else a=r?(0,ze.jsx)(r,y({},s)):(0,ze.jsx)(e,y({},s));return o?o(a):a}function Ve(e){return(t={})=>{const n=e(t),r={};for(const e in n)D(n,e)&&void 0!==n[e]&&(r[e]=n[e]);return r}}function $e(e=[],t=[]){const n=c.createContext(void 0),r=c.createContext(void 0),o=()=>c.useContext(n),i=t=>e.reduceRight(((e,n)=>(0,ze.jsx)(n,w(y({},t),{children:e}))),(0,ze.jsx)(n.Provider,y({},t)));return{context:n,scopedContext:r,useContext:o,useScopedContext:(e=!1)=>{const t=c.useContext(r),n=o();return e?t:t||n},useProviderContext:()=>{const e=c.useContext(r),t=o();if(!e||e!==t)return t},ContextProvider:i,ScopedContextProvider:e=>(0,ze.jsx)(i,w(y({},e),{children:t.reduceRight(((t,n)=>(0,ze.jsx)(n,w(y({},e),{children:t}))),(0,ze.jsx)(r.Provider,y({},e)))}))}}var He="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 We(e){return!!J(e,He)&&(!!Q(e)&&!ee(e,"[inert]"))}function Ue(e){if(!We(e))return!1;if(function(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}(e))return!1;if(!("form"in e))return!0;if(!e.form)return!0;if(e.checked)return!0;if("radio"!==e.type)return!0;const t=e.form.elements.namedItem(e.name);if(!t)return!0;if(!("length"in t))return!0;const n=K(e);return!n||(n===e||(!("form"in n)||(n.form!==e.form||n.name!==e.name)))}function Ge(e,t){const n=Array.from(e.querySelectorAll(He));t&&n.unshift(e);const r=n.filter(We);return r.forEach(((e,t)=>{if(q(e)&&e.contentDocument){const n=e.contentDocument.body;r.splice(t,1,...Ge(n))}})),r}function Ke(e,t,n){const r=Array.from(e.querySelectorAll(He)),o=r.filter(Ue);return t&&Ue(e)&&o.unshift(e),o.forEach(((e,t)=>{if(q(e)&&e.contentDocument){const r=Ke(e.contentDocument.body,!1,n);o.splice(t,1,...r)}})),!o.length&&n?r:o}function Ye(e,t,n){const[r]=Ke(e,t,n);return r||null}function qe(e,t){return function(e,t,n,r){const o=K(e),i=Ge(e,t),s=i.indexOf(o),a=i.slice(s+1);return a.find(Ue)||(n?i.find(Ue):null)||(r?a[0]:null)||null}(document.body,!1,e,t)}function Xe(e,t){return function(e,t,n,r){const o=K(e),i=Ge(e,t).reverse(),s=i.indexOf(o),a=i.slice(s+1);return a.find(Ue)||(n?i.find(Ue):null)||(r?a[0]:null)||null}(document.body,!1,e,t)}function Ze(e){const t=K(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function Je(e){const t=K(e);if(!t)return!1;if(Y(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&("id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`)))}function Qe(e){!Je(e)&&We(e)&&e.focus()}function et(e){var t;const n=null!=(t=e.getAttribute("tabindex"))?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}var tt=se(),nt=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function rt(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function ot(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function it(e,t){return we((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var st=!0;function at(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(st=!1))}function lt(e){e.metaKey||e.ctrlKey||e.altKey||(st=!0)}var ct=Ve((e=>{var t=e,{focusable:n=!0,accessibleWhenDisabled:r,autoFocus:o,onFocusVisible:i}=t,s=_(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const a=(0,c.useRef)(null);(0,c.useEffect)((()=>{n&&(fe("mousedown",at,!0),fe("keydown",lt,!0))}),[n]),tt&&(0,c.useEffect)((()=>{if(!n)return;const e=a.current;if(!e)return;if(!rt(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const r=()=>queueMicrotask((()=>e.focus()));return t.forEach((e=>e.addEventListener("mouseup",r))),()=>{t.forEach((e=>e.removeEventListener("mouseup",r)))}}),[n]);const l=n&&B(s),u=!!l&&!r,[d,h]=(0,c.useState)(!1);(0,c.useEffect)((()=>{n&&u&&d&&h(!1)}),[n,u,d]),(0,c.useEffect)((()=>{if(!n)return;if(!d)return;const e=a.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{We(e)||h(!1)}));return t.observe(e),()=>t.disconnect()}),[n,d]);const f=it(s.onKeyPressCapture,l),m=it(s.onMouseDownCapture,l),g=it(s.onClickCapture,l),v=s.onMouseDown,b=we((e=>{if(null==v||v(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!tt)return;if(le(e))return;if(!X(t)&&!rt(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0}),he(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),r||Qe(t)}))})),x=(e,t)=>{if(t&&(e.currentTarget=t),!n)return;const r=e.currentTarget;r&&Ze(r)&&(null==i||i(e),e.defaultPrevented||h(!0))},S=s.onKeyDownCapture,C=we((e=>{if(null==S||S(e),e.defaultPrevented)return;if(!n)return;if(d)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!ce(e))return;const t=e.currentTarget;queueMicrotask((()=>x(e,t)))})),k=s.onFocusCapture,j=we((e=>{if(null==k||k(e),e.defaultPrevented)return;if(!n)return;if(!ce(e))return void h(!1);const t=e.currentTarget,r=()=>x(e,t);st||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||"SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable:nt.includes(r))}(e.target)?queueMicrotask(r):!function(e){return"combobox"===e.getAttribute("role")&&!!e.dataset.name}(e.target)?h(!1):he(e.target,"focusout",r)})),E=s.onBlur,P=we((e=>{null==E||E(e),n&&pe(e)&&h(!1)})),T=(0,c.useContext)(p),I=we((e=>{n&&o&&e&&T&&queueMicrotask((()=>{Ze(e)||We(e)&&e.focus()}))})),M=Ce(a,s.as),R=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(M),N=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(M),A=u?y({pointerEvents:"none"},s.style):s.style;return s=w(y({"data-focus-visible":n&&d?"":void 0,"data-autofocus":!!o||void 0,"aria-disabled":!!l||void 0},s),{ref:_e(a,I,s.ref),style:A,tabIndex:ot(n,u,R,N,s.tabIndex),disabled:!(!N||!u)||void 0,contentEditable:l?void 0:s.contentEditable,onKeyPressCapture:f,onClickCapture:g,onMouseDownCapture:m,onMouseDown:b,onKeyDownCapture:C,onFocusCapture:j,onBlur:P})}));Le((e=>Be("div",e=ct(e))));function ut(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?X(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(X(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var dt=Symbol("command"),pt=Ve((e=>{var t=e,{clickOnEnter:n=!0,clickOnSpace:r=!0}=t,o=_(t,["clickOnEnter","clickOnSpace"]);const i=(0,c.useRef)(null),s=Ce(i,o.as),a=o.type,[l,u]=(0,c.useState)((()=>!!s&&X({tagName:s,type:a})));(0,c.useEffect)((()=>{i.current&&u(X(i.current))}),[]);const[d,p]=(0,c.useState)(!1),h=(0,c.useRef)(!1),f=B(o),[m,g]=Ie(o,dt,!0),v=o.onKeyDown,b=we((e=>{null==v||v(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(m)return;if(f)return;if(!ce(e))return;if(te(t))return;if(t.isContentEditable)return;const o=n&&"Enter"===e.key,i=r&&" "===e.key,s="Enter"===e.key&&!n,a=" "===e.key&&!r;if(s||a)e.preventDefault();else if(o||i){const n=ut(e);if(o){if(!n){e.preventDefault();const n=e,{view:r}=n,o=_(n,["view"]),i=()=>de(t,o);U&&/firefox\//i.test(navigator.userAgent)?he(t,"keyup",i):queueMicrotask(i)}}else i&&(h.current=!0,n||(e.preventDefault(),p(!0)))}})),x=o.onKeyUp,S=we((e=>{if(null==x||x(e),e.defaultPrevented)return;if(m)return;if(f)return;if(e.metaKey)return;const t=r&&" "===e.key;if(h.current&&t&&(h.current=!1,!ut(e))){e.preventDefault(),p(!1);const t=e.currentTarget,n=e,{view:r}=n,o=_(n,["view"]);queueMicrotask((()=>de(t,o)))}}));return o=w(y(y({"data-active":d?"":void 0,type:l?"button":void 0},g),o),{ref:_e(i,o.ref),onKeyDown:b,onKeyUp:S}),o=ct(o)}));Le((e=>Be("button",e=pt(e))));var ht=$e(),ft=ht.useContext,mt=(ht.useScopedContext,ht.useProviderContext,ht.ContextProvider),gt=ht.ScopedContextProvider,vt=Ve((e=>{var t=e,{store:n,shouldRegisterItem:r=!0,getItem:o=z,element:i}=t,s=_(t,["store","shouldRegisterItem","getItem","element"]);const a=ft();n=n||a;const l=Se(s.id),u=(0,c.useRef)(i);return(0,c.useEffect)((()=>{const e=u.current;if(!l)return;if(!e)return;if(!r)return;const t=o({id:l,element:e});return null==n?void 0:n.renderItem(t)}),[l,r,o,n]),s=w(y({},s),{ref:_e(u,s.ref)})}));Le((e=>Be("div",vt(e))));var bt={id:null};function xt(e,t){return t&&e.item(t)||null}var yt=Symbol("FOCUS_SILENTLY");function wt(e,t,n){if(!t)return!1;if(t===n)return!1;const r=e.item(t.id);return!!r&&(!n||r.element!==n)}var _t=$e([mt],[gt]),St=_t.useContext,Ct=(_t.useScopedContext,_t.useProviderContext),kt=_t.ContextProvider,jt=_t.ScopedContextProvider,Et=(0,c.createContext)(void 0),Pt=(0,c.createContext)(void 0);function Tt(e,t){const n=e.__unstableInternals;return L(n,"Invalid store"),n[t]}function It(e,...t){let n=e,r=n,o=Symbol(),i=N;const s=new Set,a=new Set,l=new Set,c=new Set,u=new Set,d=new WeakMap,p=new WeakMap,h=(e,t,n=c)=>(n.add(t),p.set(t,e),()=>{var e;null==(e=d.get(t))||e(),d.delete(t),p.delete(t),n.delete(t)}),f=(e,i,s=!1)=>{if(!D(n,e))return;const l=A(i,n[e]);if(l===n[e])return;s||t.forEach((t=>{var n;null==(n=null==t?void 0:t.setState)||n.call(t,e,l)}));const h=n;n=M(I({},n),{[e]:l});const f=Symbol();o=f,a.add(e);const m=(t,r,o)=>{var i;const s=p.get(t);s&&!s.some((t=>o?o.has(t):t===e))||(null==(i=d.get(t))||i(),d.set(t,t(n,r)))};c.forEach((e=>{m(e,h)})),queueMicrotask((()=>{if(o!==f)return;const e=n;u.forEach((e=>{m(e,r,a)})),r=e,a.clear()}))},m={getState:()=>n,setState:f,__unstableInternals:{setup:e=>(l.add(e),()=>l.delete(e)),init:()=>{const e=s.size,r=Symbol();s.add(r);const o=()=>{s.delete(r),s.size||i()};if(e)return o;const a=(c=n,Object.keys(c)).map((e=>O(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&D(r,e))return At(t,[e],(t=>{f(e,t[e],!0)}))})))));var c;const u=[];l.forEach((e=>u.push(e())));const d=t.map(Rt);return i=O(...a,...u,...d),o},subscribe:(e,t)=>h(e,t),sync:(e,t)=>(d.set(t,t(n,n)),h(e,t)),batch:(e,t)=>(d.set(t,t(n,r)),h(e,t,u)),pick:e=>It(function(e,t){const n={};for(const r of t)D(e,r)&&(n[r]=e[r]);return n}(n,e),m),omit:e=>It(function(e,t){const n=I({},e);for(const e of t)D(n,e)&&delete n[e];return n}(n,e),m)}};return m}function Mt(e,...t){if(e)return Tt(e,"setup")(...t)}function Rt(e,...t){if(e)return Tt(e,"init")(...t)}function Nt(e,...t){if(e)return Tt(e,"subscribe")(...t)}function At(e,...t){if(e)return Tt(e,"sync")(...t)}function Dt(e,...t){if(e)return Tt(e,"batch")(...t)}function Ot(e,...t){if(e)return Tt(e,"omit")(...t)}function zt(...e){const t=e.reduce(((e,t)=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);return r?I(I({},e),r):e}),{});return It(t,...e)}var Lt=o(422),{useSyncExternalStore:Ft}=Lt,Bt=()=>()=>{};function Vt(e,t=z){const n=c.useCallback((t=>e?Nt(e,null,t):Bt()),[e]),r=()=>{const n="string"==typeof t?t:null,r="function"==typeof t?t:null,o=null==e?void 0:e.getState();return r?r(o):o&&n&&D(o,n)?o[n]:void 0};return Ft(n,r,r)}function $t(e,t,n,r){const o=D(t,n)?t[n]:void 0,i=r?t[r]:void 0,s=ye({value:o,setValue:i});be((()=>At(e,[n],((e,t)=>{const{value:r,setValue:o}=s.current;o&&e[n]!==t[n]&&e[n]!==r&&o(e[n])}))),[e,n]),be((()=>{if(void 0!==o)return e.setState(n,o),Dt(e,[n],(()=>{void 0!==o&&e.setState(n,o)}))}))}function Ht(e,t){const[n,r]=c.useState((()=>e(t)));be((()=>Rt(n)),[n]);const o=c.useCallback((e=>Vt(n,e)),[n]);return[c.useMemo((()=>w(y({},n),{useState:o})),[n,o]),we((()=>{r((n=>e(y(y({},t),n.getState()))))}))]}function Wt(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function Ut(e,t,n,r=!1){var o;if(!t)return;if(!n)return;const{renderedItems:i}=t.getState(),s=oe(e);if(!s)return;const a=function(e,t=!1){const n=e.clientHeight,{top:r}=e.getBoundingClientRect(),o=1.5*Math.max(.875*n,n-40),i=t?n-o+r:o+r;return"HTML"===e.tagName?i+e.scrollTop:i}(s,r);let l,c;for(let e=0;e<i.length;e+=1){const i=l;if(l=n(e),!l)break;if(l===i)continue;const s=null==(o=xt(t,l))?void 0:o.element;if(!s)continue;const u=Wt(s,r)-a,d=Math.abs(u);if(r&&u<=0||!r&&u>=0){void 0!==c&&c<d&&(l=i);break}c=d}return l}var Gt=Ve((e=>{var t=e,{store:n,rowId:r,preventScrollOnKeyDown:o=!1,moveOnKeyPress:i=!0,tabbable:s=!1,getItem:a,"aria-setsize":l,"aria-posinset":u}=t,d=_(t,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","tabbable","getItem","aria-setsize","aria-posinset"]);const p=St();n=n||p;const h=Se(d.id),f=(0,c.useRef)(null),m=(0,c.useContext)(Pt),g=Vt(n,(e=>r||(e&&(null==m?void 0:m.baseElement)&&m.baseElement===e.baseElement?m.id:void 0))),v=B(d)&&!d.accessibleWhenDisabled,b=(0,c.useCallback)((e=>{const t=w(y({},e),{id:h||e.id,rowId:g,disabled:!!v});return a?a(t):t}),[h,g,v,a]),x=d.onFocus,S=(0,c.useRef)(!1),C=we((e=>{if(null==x||x(e),e.defaultPrevented)return;if(le(e))return;if(!h)return;if(!n)return;const{activeId:t,virtualFocus:r,baseElement:o}=n.getState();if(function(e,t){return!ce(e)&&wt(t,e.target)}(e,n))return;if(t!==h&&n.setActiveId(h),!r)return;if(!ce(e))return;if((i=e.currentTarget).isContentEditable||te(i)||"INPUT"===i.tagName&&!X(i))return;var i;if(!(null==o?void 0:o.isConnected))return;S.current=!0;e.relatedTarget===o||wt(n,e.relatedTarget)?function(e){e[yt]=!0,e.focus({preventScroll:!0})}(o):o.focus()})),k=d.onBlurCapture,j=we((e=>{if(null==k||k(e),e.defaultPrevented)return;const t=null==n?void 0:n.getState();(null==t?void 0:t.virtualFocus)&&S.current&&(S.current=!1,e.preventDefault(),e.stopPropagation())})),E=d.onKeyDown,P=Ee(o),T=Ee(i),I=we((e=>{if(null==E||E(e),e.defaultPrevented)return;if(!ce(e))return;if(!n)return;const{currentTarget:t}=e,r=n.getState(),o=n.item(h),i=!!(null==o?void 0:o.rowId),s="horizontal"!==r.orientation,a="vertical"!==r.orientation,l=()=>!!i||(!!a||(!r.baseElement||!te(r.baseElement))),c={ArrowUp:(i||s)&&n.up,ArrowRight:(i||a)&&n.next,ArrowDown:(i||s)&&n.down,ArrowLeft:(i||a)&&n.previous,Home:()=>{if(l())return!i||e.ctrlKey?null==n?void 0:n.first():null==n?void 0:n.previous(-1)},End:()=>{if(l())return!i||e.ctrlKey?null==n?void 0:n.last():null==n?void 0:n.next(-1)},PageUp:()=>Ut(t,n,null==n?void 0:n.up,!0),PageDown:()=>Ut(t,n,null==n?void 0:n.down)}[e.key];if(c){const t=c();if(P(e)||void 0!==t){if(!T(e))return;e.preventDefault(),n.move(t)}}})),M=Vt(n,(e=>(null==e?void 0:e.baseElement)||void 0)),R=(0,c.useMemo)((()=>({id:h,baseElement:M})),[h,M]);d=Pe(d,(e=>(0,ze.jsx)(Et.Provider,{value:R,children:e})),[R]);const N=Vt(n,(e=>!!e&&e.activeId===h)),A=Vt(n,"virtualFocus"),D=function(e,t){const n=t.role,[r,o]=(0,c.useState)(n);return be((()=>{const t=e.current;t&&o(t.getAttribute("role")||n)}),[n]),r}(f,d);let O;N&&(!function(e){return"option"===e||"treeitem"===e}(D)?A&&function(e){return"option"===e||"tab"===e||"treeitem"===e||"gridcell"===e||"row"===e||"columnheader"===e||"rowheader"===e}(D)&&(O=!0):O=!0);const z=Vt(n,(e=>null!=l?l:e&&(null==m?void 0:m.ariaSetSize)&&m.baseElement===e.baseElement?m.ariaSetSize:void 0)),L=Vt(n,(e=>{if(null!=u)return u;if(!e)return;if(!(null==m?void 0:m.ariaPosInSet))return;if(m.baseElement!==e.baseElement)return;const t=e.renderedItems.filter((e=>e.rowId===g));return m.ariaPosInSet+t.findIndex((e=>e.id===h))})),F=Vt(n,(e=>!(null==e?void 0:e.renderedItems.length)||!e.virtualFocus&&(!!s||e.activeId===h)));return d=w(y({id:h,"aria-selected":O,"data-active-item":N?"":void 0},d),{ref:_e(f,d.ref),tabIndex:F?d.tabIndex:-1,onFocus:C,onBlurCapture:j,onKeyDown:I}),d=pt(d),d=vt(w(y({store:n},d),{getItem:b,shouldRegisterItem:!!h&&d.shouldRegisterItem})),w(y({},d),{"aria-setsize":z,"aria-posinset":L})})),Kt=Fe((e=>Be("button",Gt(e))));function Yt(e={}){const t=zt(e.store,Ot(e.disclosure,["contentElement","disclosureElement"])),n=null==t?void 0:t.getState(),r=V(e.open,null==n?void 0:n.open,e.defaultOpen,!1),o=V(e.animated,null==n?void 0:n.animated,!1),i=It({open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:V(null==n?void 0:n.contentElement,null),disclosureElement:V(null==n?void 0:n.disclosureElement,null)},t);return Mt(i,(()=>At(i,["animated","animating"],(e=>{e.animated||i.setState("animating",!1)})))),Mt(i,(()=>Nt(i,["open"],(()=>{i.getState().animated&&i.setState("animating",!0)})))),Mt(i,(()=>At(i,["open","animating"],(e=>{i.setState("mounted",e.open||e.animating)})))),M(I({},i),{setOpen:e=>i.setState("open",e),show:()=>i.setState("open",!0),hide:()=>i.setState("open",!1),toggle:()=>i.setState("open",(e=>!e)),stopAnimation:()=>i.setState("animating",!1),setContentElement:e=>i.setState("contentElement",e),setDisclosureElement:e=>i.setState("disclosureElement",e)})}function qt(e,t,n){return ke(t,[n.store,n.disclosure]),$t(e,n,"open","setOpen"),$t(e,n,"mounted","setMounted"),$t(e,n,"animated"),e}function Xt(e={}){const[t,n]=Ht(Yt,e);return qt(t,n,e)}function Zt(e={}){return Yt(e)}function Jt(e,t,n){return qt(e,t,n)}function Qt(e,t,n){return ke(t,[n.popover]),$t(e=Jt(e,t,n),n,"placement"),e}function en(e,t,n){return $t(e=Qt(e,t,n),n,"timeout"),$t(e,n,"showTimeout"),$t(e,n,"hideTimeout"),e}function tn(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=function(e={}){var t=e,{popover:n}=t,r=R(t,["popover"]);const o=zt(r.store,Ot(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=null==o?void 0:o.getState(),s=Zt(M(I({},r),{store:o})),a=V(r.placement,null==i?void 0:i.placement,"bottom"),l=It(M(I({},s.getState()),{placement:a,currentPlacement:a,anchorElement:V(null==i?void 0:i.anchorElement,null),popoverElement:V(null==i?void 0:i.popoverElement,null),arrowElement:V(null==i?void 0:i.arrowElement,null),rendered:Symbol("rendered")}),s,o);return M(I(I({},s),l),{setAnchorElement:e=>l.setState("anchorElement",e),setPopoverElement:e=>l.setState("popoverElement",e),setArrowElement:e=>l.setState("arrowElement",e),render:()=>l.setState("rendered",Symbol("rendered"))})}(M(I({},e),{placement:V(e.placement,null==n?void 0:n.placement,"bottom")})),o=V(e.timeout,null==n?void 0:n.timeout,500),i=It(M(I({},r.getState()),{timeout:o,showTimeout:V(e.showTimeout,null==n?void 0:n.showTimeout),hideTimeout:V(e.hideTimeout,null==n?void 0:n.hideTimeout),autoFocusOnShow:V(null==n?void 0:n.autoFocusOnShow,!1)}),r,e.store);return M(I(I({},r),i),{setAutoFocusOnShow:e=>i.setState("autoFocusOnShow",e)})}function nn(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=tn(M(I({},e),{placement:V(e.placement,null==n?void 0:n.placement,"top"),hideTimeout:V(e.hideTimeout,null==n?void 0:n.hideTimeout,0)})),o=It(M(I({},r.getState()),{type:V(e.type,null==n?void 0:n.type,"description"),skipTimeout:V(e.skipTimeout,null==n?void 0:n.skipTimeout,300)}),r,e.store);return I(I({},r),o)}function rn(e={}){const[t,n]=Ht(nn,e);return function(e,t,n){return $t(e=en(e,t,n),n,"type"),$t(e,n,"skipTimeout"),e}(t,n,e)}Ve((e=>e));var on=Le((e=>Be("div",e)));Object.assign(on,["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","textarea","ul","svg"].reduce(((e,t)=>(e[t]=Le((e=>Be(t,e))),e)),{}));var sn=$e(),an=(sn.useContext,sn.useScopedContext,sn.useProviderContext),ln=$e([sn.ContextProvider],[sn.ScopedContextProvider]),cn=(ln.useContext,ln.useScopedContext,ln.useProviderContext),un=ln.ContextProvider,dn=ln.ScopedContextProvider,pn=(0,c.createContext)(void 0),hn=(0,c.createContext)(void 0),fn=$e([un],[dn]),mn=(fn.useContext,fn.useScopedContext,fn.useProviderContext),gn=fn.ContextProvider,vn=fn.ScopedContextProvider,bn=$e([gn],[vn]),xn=(bn.useContext,bn.useScopedContext,bn.useProviderContext),yn=bn.ContextProvider,wn=bn.ScopedContextProvider,_n=Ve((e=>{var t=e,{store:n,showOnHover:r=!0}=t,o=_(t,["store","showOnHover"]);const i=xn();L(n=n||i,!1);const s=B(o),a=(0,c.useRef)(0);(0,c.useEffect)((()=>()=>window.clearTimeout(a.current)),[]),(0,c.useEffect)((()=>fe("mouseleave",(e=>{if(!n)return;const{anchorElement:t}=n.getState();t&&e.target===t&&(window.clearTimeout(a.current),a.current=0)}),!0)),[n]);const l=o.onMouseMove,u=Ee(r),d=Me(),p=we((e=>{if(null==l||l(e),s)return;if(!n)return;if(e.defaultPrevented)return;if(a.current)return;if(!d())return;if(!u(e))return;const t=e.currentTarget;n.setAnchorElement(t),n.setDisclosureElement(t);const{showTimeout:r,timeout:o}=n.getState(),i=()=>{a.current=0,d()&&(null==n||n.setAnchorElement(t),null==n||n.show(),queueMicrotask((()=>{null==n||n.setDisclosureElement(t)})))},c=null!=r?r:o;0===c?i():a.current=window.setTimeout(i,c)})),h=(0,c.useCallback)((e=>{if(!n)return;const{anchorElement:t}=n.getState();(null==t?void 0:t.isConnected)||n.setAnchorElement(e)}),[n]);return o=w(y({},o),{ref:_e(h,o.ref),onMouseMove:p}),o=ct(o)}));Le((e=>Be("a",_n(e))));var Sn=$e([yn],[wn]),Cn=(Sn.useContext,Sn.useScopedContext,Sn.useProviderContext),kn=(Sn.ContextProvider,Sn.ScopedContextProvider),jn=It({activeStore:null}),En=Ve((e=>{var t=e,{store:n,showOnHover:r=!0}=t,o=_(t,["store","showOnHover"]);const i=Cn();L(n=n||i,!1);const s=(0,c.useRef)(!1);(0,c.useEffect)((()=>At(n,["mounted"],(e=>{e.mounted||(s.current=!1)}))),[n]),(0,c.useEffect)((()=>At(n,["mounted","skipTimeout"],(e=>{if(!n)return;if(e.mounted){const{activeStore:e}=jn.getState();return e!==n&&(null==e||e.hide()),jn.setState("activeStore",n)}const t=setTimeout((()=>{const{activeStore:e}=jn.getState();e===n&&jn.setState("activeStore",null)}),e.skipTimeout);return()=>clearTimeout(t)}))),[n]);const a=o.onMouseEnter,l=we((e=>{null==a||a(e),s.current=!0})),u=o.onFocusVisible,d=we((e=>{null==u||u(e),e.defaultPrevented||(null==n||n.setAnchorElement(e.currentTarget),null==n||n.show())})),p=o.onBlur,h=we((e=>{if(null==p||p(e),e.defaultPrevented)return;const{activeStore:t}=jn.getState();t===n&&jn.setState("activeStore",null)})),f=n.useState("type"),m=n.useState((e=>{var t;return null==(t=e.contentElement)?void 0:t.id}));return o=w(y({"aria-labelledby":"label"===f?m:void 0,"aria-describedby":"description"===f?m:void 0},o),{onMouseEnter:l,onFocusVisible:d,onBlur:h}),o=_n(y({store:n,showOnHover:e=>{if(!s.current)return!1;if(F(r,e))return!1;const{activeStore:t}=jn.getState();return!t||(null==n||n.show(),!1)}},o))})),Pn=Le((e=>Be("div",En(e))));function Tn(e){return[e.clientX,e.clientY]}function In(e,t){const[n,r]=e;let o=!1;for(let e=t.length,i=0,s=e-1;i<e;s=i++){const[a,l]=t[i],[c,u]=t[s],[,d]=t[0===s?e-1:s-1]||[0,0],p=(l-u)*(n-a)-(a-c)*(r-l);if(u<l){if(r>=u&&r<l){if(0===p)return!0;p>0&&(r===u?r>d&&(o=!o):o=!o)}}else if(l<u){if(r>l&&r<=u){if(0===p)return!0;p<0&&(r===u?r<d&&(o=!o):o=!o)}}else if(r==l&&(n>=c&&n<=a||n>=a&&n<=c))return!0}return o}function Mn(e,t){const n=e.getBoundingClientRect(),{top:r,right:o,bottom:i,left:s}=n,[a,l]=function(e,t){const{top:n,right:r,bottom:o,left:i}=t,[s,a]=e;return[s<i?"left":s>r?"right":null,a<n?"top":a>o?"bottom":null]}(t,n),c=[t];return a?("top"!==l&&c.push(["left"===a?s:o,r]),c.push(["left"===a?o:s,r]),c.push(["left"===a?o:s,i]),"bottom"!==l&&c.push(["left"===a?s:o,i])):"top"===l?(c.push([s,r]),c.push([s,i]),c.push([o,i]),c.push([o,r])):(c.push([s,i]),c.push([s,r]),c.push([o,r]),c.push([o,i])),c}function Rn(e,...t){if(!e)return!1;const n=e.getAttribute("data-backdrop");return null!=n&&(""===n||("true"===n||(!t.length||t.some((e=>n===e)))))}var Nn=new WeakMap;function An(e,t,n){Nn.has(e)||Nn.set(e,new Map);const r=Nn.get(e),o=r.get(t);if(!o)return r.set(t,n()),()=>{var e;null==(e=r.get(t))||e(),r.delete(t)};const i=n(),s=()=>{i(),o(),r.delete(t)};return r.set(t,s),()=>{r.get(t)===s&&(i(),r.set(t,o))}}function Dn(e,t,n){return An(e,t,(()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{null==r?e.removeAttribute(t):e.setAttribute(t,r)}}))}function On(e,t,n){return An(e,t,(()=>{const r=t in e,o=e[t];return e[t]=n,()=>{r?e[t]=o:delete e[t]}}))}function zn(e,t){if(!e)return()=>{};return An(e,"style",(()=>{const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}))}var Ln=["SCRIPT","STYLE"];function Fn(e){return`__ariakit-dialog-snapshot-${e}`}function Bn(e,t,n){return!Ln.includes(t.tagName)&&(!!function(e,t){const n=G(t),r=Fn(e);if(!n.body[r])return!0;for(;;){if(t===n.body)return!1;if(t[r])return!0;if(!t.parentElement)return!1;t=t.parentElement}}(e,t)&&!n.some((e=>e&&Y(t,e))))}function Vn(e,t,n,r){for(let o of t){if(!(null==o?void 0:o.isConnected))continue;const i=t.some((e=>!!e&&(e!==o&&e.contains(o)))),s=G(o),a=o;for(;o.parentElement&&o!==s.body;){if(null==r||r(o.parentElement,a),!i)for(const r of o.parentElement.children)Bn(e,r,t)&&n(r,a);o=o.parentElement}}}function $n(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function Hn(e,t=""){return O(On(e,$n("",!0),!0),On(e,$n(t,!0),!0))}function Wn(e,t){if(e[$n(t,!0)])return!0;const n=$n(t);for(;;){if(e[n])return!0;if(!e.parentElement)return!1;e=e.parentElement}}function Un(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));Vn(e,t,(t=>{Rn(t,...r)||n.unshift(function(e,t=""){return O(On(e,$n(),!0),On(e,$n(t),!0))}(t,e))}),((t,r)=>{r.hasAttribute("data-dialog")&&r.id!==e||n.unshift(Hn(t,e))}));return()=>{n.forEach((e=>e()))}}function Gn(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function Kn(...e){return e.join(", ").split(", ").reduce(((e,t)=>{const n=1e3*parseFloat(t||"0s");return n>e?n:e}),0)}function Yn(e,t,n){return!(n||!1===t||e&&!t)}var qn=Ve((e=>{var t=e,{store:n,alwaysVisible:r}=t,o=_(t,["store","alwaysVisible"]);const i=an();L(n=n||i,!1);const s=Se(o.id),[a,l]=(0,c.useState)(null),u=n.useState("open"),d=n.useState("mounted"),p=n.useState("animated"),h=n.useState("contentElement");be((()=>{if(p){if(null==h?void 0:h.isConnected)return function(e){let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}((()=>{l(u?"enter":"leave")}));l(null)}}),[p,h,u]),be((()=>{if(!n)return;if(!p)return;if(!h)return;if(!a)return;if("enter"===a&&!u)return;if("leave"===a&&u)return;if("number"==typeof p){return Gn(p,n.stopAnimation)}const{transitionDuration:e,animationDuration:t,transitionDelay:r,animationDelay:o}=getComputedStyle(h),i=Kn(r,o)+Kn(e,t);return i?Gn(i,n.stopAnimation):void 0}),[n,p,h,u,a]);const f=Yn(d,(o=Pe(o,(e=>(0,ze.jsx)(dn,{value:n,children:e})),[n])).hidden,r),m=f?w(y({},o.style),{display:"none"}):o.style;return o=w(y({id:s,"data-enter":"enter"===a?"":void 0,"data-leave":"leave"===a?"":void 0,hidden:f},o),{ref:_e(s?n.setContentElement:null,o.ref),style:m})})),Xn=Le((e=>Be("div",qn(e)))),Zn=Le((e=>{var t=e,{unmountOnHide:n}=t,r=_(t,["unmountOnHide"]);const o=an();return!1===Vt(r.store||o,(e=>!n||(null==e?void 0:e.mounted)))?null:(0,ze.jsx)(Xn,y({},r))}));function Jn({store:e,backdrop:t,backdropProps:n,alwaysVisible:r,hidden:o}){const i=(0,c.useRef)(null),s=Xt({disclosure:e}),a=e.useState("contentElement");be((()=>{const e=i.current,t=a;e&&t&&(e.style.zIndex=getComputedStyle(t).zIndex)}),[a]),be((()=>{const e=null==a?void 0:a.id;if(!e)return;const t=i.current;return t?Hn(t,e):void 0}),[a]),null!=o&&(n=w(y({},n),{hidden:o}));const l=qn(w(y({store:s,role:"presentation","data-backdrop":(null==a?void 0:a.id)||"",alwaysVisible:r},n),{ref:_e(null==n?void 0:n.ref,i),style:y({position:"fixed",top:0,right:0,bottom:0,left:0},null==n?void 0:n.style)}));if(!t)return null;if((0,c.isValidElement)(t))return(0,ze.jsx)(on,w(y({},l),{render:t}));const u="boolean"!=typeof t?t:"div";return(0,ze.jsx)(on,w(y({},l),{render:(0,ze.jsx)(u,{})}))}function Qn(e){return Dn(e,"aria-hidden","true")}function er(e,t){if(!("style"in e))return N;if("inert"in HTMLElement.prototype)return On(e,"inert",!0);return O(...Ke(e,!0).map((e=>(null==t?void 0:t.some((t=>t&&Y(t,e))))?N:Dn(e,"tabindex","-1"))),Qn(e),zn(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}const tr=window.ReactDOM;function nr(e,t,n){const r=function({attribute:e,contentId:t,contentElement:n,enabled:r}){const[o,i]=je(),s=(0,c.useCallback)((()=>{if(!r)return!1;if(!n)return!1;const{body:o}=G(n),i=o.getAttribute(e);return!i||i===t}),[o,r,n,e,t]);return(0,c.useEffect)((()=>{if(!r)return;if(!t)return;if(!n)return;const{body:o}=G(n);if(s())return o.setAttribute(e,t),()=>o.removeAttribute(e);const a=new MutationObserver((()=>(0,tr.flushSync)(i)));return a.observe(o,{attributeFilter:[e]}),()=>a.disconnect()}),[o,r,t,n,s,e]),s}({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:t,enabled:n});(0,c.useEffect)((()=>{if(!r())return;if(!e)return;const t=G(e),n=function(e){return G(e).defaultView||window}(e),{documentElement:o,body:i}=t,s=o.style.getPropertyValue("--scrollbar-width"),a=s?parseInt(s):n.innerWidth-o.clientWidth,l=function(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}(o),c=ie()&&!ae();return O((d="--scrollbar-width",p=`${a}px`,(u=o)?An(u,d,(()=>{const e=u.style.getPropertyValue(d);return u.style.setProperty(d,p),()=>{e?u.style.setProperty(d,e):u.style.removeProperty(d)}})):()=>{}),c?(()=>{var e,t;const{scrollX:r,scrollY:o,visualViewport:s}=n,c=null!=(e=null==s?void 0:s.offsetLeft)?e:0,u=null!=(t=null==s?void 0:s.offsetTop)?t:0,d=zn(i,{position:"fixed",overflow:"hidden",top:-(o-Math.floor(u))+"px",left:-(r-Math.floor(c))+"px",right:"0",[l]:`${a}px`});return()=>{d(),n.scrollTo(r,o)}})():zn(i,{overflow:"hidden",[l]:`${a}px`}));var u,d,p}),[r,e])}var rr=(0,c.createContext)({});function or({store:e,type:t,listener:n,capture:r,domReady:o}){const i=we(n),s=e.useState("open"),a=(0,c.useRef)(!1);be((()=>{if(!s)return;if(!o)return;const{contentElement:t}=e.getState();if(!t)return;const n=()=>{a.current=!0};return t.addEventListener("focusin",n,!0),()=>t.removeEventListener("focusin",n,!0)}),[e,s,o]),(0,c.useEffect)((()=>{if(!s)return;return fe(t,(t=>{const{contentElement:n,disclosureElement:r}=e.getState(),o=t.target;if(!n)return;if(!o)return;if(!function(e){return"HTML"===e.tagName||Y(G(e).body,e)}(o))return;if(Y(n,o))return;if(function(e,t){if(!e)return!1;if(Y(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const t=G(e).getElementById(n);if(t)return Y(e,t)}return!1}(r,o))return;if(o.hasAttribute("data-focus-trap"))return;if(function(e,t){if(!("clientY"in e))return!1;const n=t.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=e.clientY&&e.clientY<=n.top+n.height&&n.left<=e.clientX&&e.clientX<=n.left+n.width}(t,n))return;a.current&&!Wn(o,n.id)||i(t)}),r)}),[s,r])}function ir(e,t){return"function"==typeof e?e(t):!!e}function sr(e,t,n){const r=function(e){const t=(0,c.useRef)();return(0,c.useEffect)((()=>{if(e)return fe("mousedown",(e=>{t.current=e.target}),!0);t.current=null}),[e]),t}(e.useState("open")),o={store:e,domReady:n,capture:!0};or(w(y({},o),{type:"click",listener:n=>{const{contentElement:o}=e.getState(),i=r.current;i&&Q(i)&&Wn(i,null==o?void 0:o.id)&&ir(t,n)&&e.hide()}})),or(w(y({},o),{type:"focusin",listener:n=>{const{contentElement:r}=e.getState();r&&n.target!==G(r)&&ir(t,n)&&e.hide()}})),or(w(y({},o),{type:"contextmenu",listener:n=>{ir(t,n)&&e.hide()}}))}var ar=Ve((e=>{var t=e,{autoFocusOnShow:n=!0}=t,r=_(t,["autoFocusOnShow"]);return r=Pe(r,(e=>(0,ze.jsx)(p.Provider,{value:n,children:e})),[n])}));Le((e=>Be("div",ar(e))));var lr=(0,c.createContext)(0);function cr({level:e,children:t}){const n=(0,c.useContext)(lr),r=Math.max(Math.min(e||n+1,6),1);return(0,ze.jsx)(lr.Provider,{value:r,children:t})}var ur=Ve((e=>e=w(y({},e),{style:y({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e.style)})));Le((e=>Be("span",ur(e))));var dr=Ve((e=>(e=w(y({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},e),{style:y({position:"fixed",top:0,left:0},e.style)}),e=ur(e)))),pr=Le((e=>Be("span",dr(e))));var hr=(0,c.createContext)(null);function fr(e){queueMicrotask((()=>{null==e||e.focus()}))}var mr=Ve((e=>{var t=e,{preserveTabOrder:n,preserveTabOrderAnchor:r,portalElement:o,portalRef:i,portal:s=!0}=t,a=_(t,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const l=(0,c.useRef)(null),u=_e(l,a.ref),d=(0,c.useContext)(hr),[p,h]=(0,c.useState)(null),[f,m]=(0,c.useState)(null),g=(0,c.useRef)(null),v=(0,c.useRef)(null),b=(0,c.useRef)(null),x=(0,c.useRef)(null);return be((()=>{const e=l.current;if(!e||!s)return void h(null);const t=function(e,t){return t?"function"==typeof t?t(e):t:G(e).createElement("div")}(e,o);if(!t)return void h(null);const n=t.isConnected;if(!n){const n=d||function(e){return G(e).body}(e);n.appendChild(t)}return t.id||(t.id=e.id?`portal/${e.id}`:function(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).substr(2,6)}`}()),h(t),$(i,t),n?void 0:()=>{t.remove(),$(i,null)}}),[s,o,d,i]),be((()=>{if(!n)return;if(!r)return;const e=G(r).createElement("span");return e.style.position="fixed",r.insertAdjacentElement("afterend",e),m(e),()=>{e.remove(),m(null)}}),[n,r]),(0,c.useEffect)((()=>{if(!p)return;if(!n)return;let e=0;const t=t=>{if(!pe(t))return;const n="focusin"===t.type;if(cancelAnimationFrame(e),n)return function(e){const t=e.querySelectorAll("[data-tabindex]"),n=e=>{const t=e.getAttribute("data-tabindex");e.removeAttribute("data-tabindex"),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")};e.hasAttribute("data-tabindex")&&n(e),t.forEach(n)}(p);e=requestAnimationFrame((()=>{!function(e,t){Ke(e,t).forEach(et)}(p,!0)}))};return p.addEventListener("focusin",t,!0),p.addEventListener("focusout",t,!0),()=>{cancelAnimationFrame(e),p.removeEventListener("focusin",t,!0),p.removeEventListener("focusout",t,!0)}}),[p,n]),a=Pe(a,(e=>{if(e=(0,ze.jsx)(hr.Provider,{value:p||d,children:e}),!s)return e;if(!p)return(0,ze.jsx)("span",{ref:u,id:a.id,style:{position:"fixed"},hidden:!0});e=(0,ze.jsxs)(ze.Fragment,{children:[n&&p&&(0,ze.jsx)(pr,{ref:v,className:"__focus-trap-inner-before",onFocus:e=>{pe(e,p)?fr(qe()):fr(g.current)}}),e,n&&p&&(0,ze.jsx)(pr,{ref:b,className:"__focus-trap-inner-after",onFocus:e=>{pe(e,p)?fr(Xe()):fr(x.current)}})]}),p&&(e=(0,tr.createPortal)(e,p));let t=(0,ze.jsxs)(ze.Fragment,{children:[n&&p&&(0,ze.jsx)(pr,{ref:g,className:"__focus-trap-outer-before",onFocus:e=>{!(e.relatedTarget===x.current)&&pe(e,p)?fr(v.current):fr(Xe())}}),n&&(0,ze.jsx)("span",{"aria-owns":null==p?void 0:p.id,style:{position:"fixed"}}),n&&p&&(0,ze.jsx)(pr,{ref:x,className:"__focus-trap-outer-after",onFocus:e=>{if(pe(e,p))fr(b.current);else{const e=qe();if(e===v.current)return void requestAnimationFrame((()=>{var e;return null==(e=qe())?void 0:e.focus()}));fr(e)}}})]});return f&&n&&(t=(0,tr.createPortal)(t,f)),(0,ze.jsxs)(ze.Fragment,{children:[t,e]})}),[p,d,s,a.id,n,f]),a=w(y({},a),{ref:u})}));Le((e=>Be("div",mr(e))));var gr=se();function vr(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?We(n)?n:null:n:null}var br=Ve((e=>{var t=e,{store:n,open:r,onClose:o,focusable:i=!0,modal:s=!0,portal:a=!!s,backdrop:l=!!s,backdropProps:u,hideOnEscape:d=!0,hideOnInteractOutside:p=!0,getPersistentElements:h,preventBodyScroll:f=!!s,autoFocusOnShow:m=!0,autoFocusOnHide:g=!0,initialFocus:v,finalFocus:b,unmountOnHide:x}=t,S=_(t,["store","open","onClose","focusable","modal","portal","backdrop","backdropProps","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide"]);const C=cn(),k=(0,c.useRef)(null),j=function(e={}){const[t,n]=Ht(Zt,e);return Jt(t,n,e)}({store:n||C,open:r,setOpen(e){if(e)return;const t=k.current;if(!t)return;const n=new Event("close",{bubbles:!1,cancelable:!0});o&&t.addEventListener("close",o,{once:!0}),t.dispatchEvent(n),n.defaultPrevented&&j.setOpen(!0)}}),{portalRef:E,domReady:P}=Te(a,S.portalRef),T=S.preserveTabOrder,I=j.useState((e=>T&&!s&&e.mounted)),M=Se(S.id),R=j.useState("open"),N=j.useState("mounted"),A=j.useState("contentElement"),D=Yn(N,S.hidden,S.alwaysVisible);nr(A,M,f&&!D),sr(j,p,P);const{wrapElement:z,nestedDialogs:L}=function(e){const t=(0,c.useContext)(rr),[n,r]=(0,c.useState)([]),o=(0,c.useCallback)((e=>{var n;return r((t=>[...t,e])),O(null==(n=t.add)?void 0:n.call(t,e),(()=>{r((t=>t.filter((t=>t!==e))))}))}),[t]);be((()=>At(e,["open","contentElement"],(n=>{var r;if(n.open&&n.contentElement)return null==(r=t.add)?void 0:r.call(t,e)}))),[e,t]);const i=(0,c.useMemo)((()=>({store:e,add:o})),[e,o]);return{wrapElement:(0,c.useCallback)((e=>(0,ze.jsx)(rr.Provider,{value:i,children:e})),[i]),nestedDialogs:n}}(j);S=Pe(S,z,[z]),be((()=>{if(!R)return;const e=k.current,t=K(e,!0);t&&"BODY"!==t.tagName&&(e&&Y(e,t)||j.setDisclosureElement(t))}),[j,R]),gr&&(0,c.useEffect)((()=>{if(!N)return;const{disclosureElement:e}=j.getState();if(!e)return;if(!X(e))return;const t=()=>{let t=!1;const n=()=>{t=!0};e.addEventListener("focusin",n,{capture:!0,once:!0}),he(e,"mouseup",(()=>{e.removeEventListener("focusin",n,!0),t||Qe(e)}))};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}}),[j,N]),(0,c.useEffect)((()=>{if(!s)return;if(!N)return;if(!P)return;const e=k.current;if(!e)return;return e.querySelector("[data-dialog-dismiss]")?void 0:function(e,t){const n=G(e).createElement("button");return n.type="button",n.tabIndex=-1,n.textContent="Dismiss popup",Object.assign(n.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),n.addEventListener("click",t),e.prepend(n),()=>{n.removeEventListener("click",t),n.remove()}}(e,j.hide)}),[j,s,N,P]),be((()=>{if(R)return;if(!N)return;if(!P)return;const e=k.current;return e?er(e):void 0}),[R,N,P]);const F=R&&P;be((()=>{if(!M)return;if(!F)return;const e=k.current;return function(e,t){const{body:n}=G(t[0]),r=[];return Vn(e,t,(t=>{r.push(On(t,Fn(e),!0))})),O(On(n,Fn(e),!0),(()=>r.forEach((e=>e()))))}(M,[e])}),[M,F]);const B=we(h);be((()=>{if(!M)return;if(!F)return;const{disclosureElement:e}=j.getState(),t=[k.current,...B()||[],...L.map((e=>e.getState().contentElement))];return s?O(Un(M,t),function(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return Vn(e,t,(e=>{Rn(e,...r)||n.unshift(er(e,t))})),()=>{n.forEach((e=>e()))}}(M,t)):Un(M,[e,...t])}),[M,j,F,B,L,s]);const V=!!m,$=Ee(m),[H,W]=(0,c.useState)(!1);(0,c.useEffect)((()=>{if(!R)return;if(!V)return;if(!P)return;if(!(null==A?void 0:A.isConnected))return;const e=vr(v,!0)||A.querySelector("[data-autofocus=true],[autofocus]")||Ye(A,!0,a&&I)||A,t=We(e);$(t?e:null)&&(W(!0),queueMicrotask((()=>{e.focus(),gr&&e.scrollIntoView({block:"nearest",inline:"nearest"})})))}),[R,V,P,A,v,a,I,$]);const U=!!g,q=Ee(g),[Z,J]=(0,c.useState)(!1);(0,c.useEffect)((()=>{if(R)return J(!0),()=>J(!1)}),[R]);const Q=(0,c.useCallback)(((e,t=!0)=>{const{disclosureElement:n}=j.getState();if(function(e){const t=K();return!(!t||e&&Y(e,t)||!We(t))}(e))return;let r=vr(b)||n;if(null==r?void 0:r.id){const e=G(r),t=`[aria-activedescendant="${r.id}"]`,n=e.querySelector(t);n&&(r=n)}if(r&&!We(r)){const e=ee(r,"[data-dialog]");if(e&&e.id){const t=G(e),n=`[aria-controls~="${e.id}"]`,o=t.querySelector(n);o&&(r=o)}}const o=r&&We(r);o||!t?q(o?r:null)&&o&&(null==r||r.focus()):requestAnimationFrame((()=>Q(e,!1)))}),[j,b,q]);be((()=>{if(R)return;if(!Z)return;if(!U)return;const e=k.current;Q(e)}),[R,Z,P,U,Q]),(0,c.useEffect)((()=>{if(!Z)return;if(!U)return;const e=k.current;return()=>Q(e)}),[Z,U,Q]);const te=Ee(d);(0,c.useEffect)((()=>{if(!P)return;if(!N)return;return fe("keydown",(e=>{if("Escape"!==e.key)return;if(e.defaultPrevented)return;const t=k.current;if(!t)return;if(Wn(t))return;const n=e.target;if(!n)return;const{disclosureElement:r}=j.getState();("BODY"===n.tagName||Y(t,n)||!r||Y(r,n))&&te(e)&&j.hide()}),!0)}),[j,P,N,te]);const ne=(S=Pe(S,(e=>(0,ze.jsx)(cr,{level:s?1:void 0,children:e})),[s])).hidden,re=S.alwaysVisible;S=Pe(S,(e=>l?(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(Jn,{store:j,backdrop:l,backdropProps:u,hidden:ne,alwaysVisible:re}),e]}):e),[j,l,u,ne,re]);const[oe,ie]=(0,c.useState)(),[se,ae]=(0,c.useState)();return S=Pe(S,(e=>(0,ze.jsx)(dn,{value:j,children:(0,ze.jsx)(pn.Provider,{value:ie,children:(0,ze.jsx)(hn.Provider,{value:ae,children:e})})})),[j]),S=w(y({id:M,"data-dialog":"",role:"dialog",tabIndex:i?-1:void 0,"aria-labelledby":oe,"aria-describedby":se},S),{ref:_e(k,S.ref)}),S=ar(w(y({},S),{autoFocusOnShow:H})),S=qn(y({store:j},S)),S=ct(w(y({},S),{focusable:i})),S=mr(w(y({portal:a},S),{portalRef:E,preserveTabOrder:I}))}));function xr(e,t=cn){return Le((n=>{const r=t();return Vt(n.store||r,(e=>!n.unmountOnHide||(null==e?void 0:e.mounted)||!!n.open))?(0,ze.jsx)(e,y({},n)):null}))}xr(Le((e=>Be("div",br(e)))),cn);const yr=Math.min,wr=Math.max,_r=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),Sr={start:"end",end:"start"};function Cr(e,t,n){return wr(e,yr(t,n))}function kr(e,t){return"function"==typeof e?e(t):e}function jr(e){return e.split("-")[0]}function Er(e){return e.split("-")[1]}function Pr(e){return"x"===e?"y":"x"}function Tr(e){return"y"===e?"height":"width"}function Ir(e){return["top","bottom"].includes(jr(e))?"y":"x"}function Mr(e){return Pr(Ir(e))}function Rr(e){return e.replace(/start|end/g,(e=>Sr[e]))}function Nr(e){return e.replace(/left|right|bottom|top/g,(e=>_r[e]))}function Ar(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Dr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Or(e,t,n){let{reference:r,floating:o}=e;const i=Ir(t),s=Mr(t),a=Tr(s),l=jr(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Er(t)){case"start":h[s]-=p*(n&&c?-1:1);break;case"end":h[s]+=p*(n&&c?-1:1)}return h}async function zr(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=kr(t,e),f=Ar(h),m=a[p?"floating"===d?"reference":"floating":d],g=Dr(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{...s.floating,x:r,y:o}:s.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),x=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},y=Dr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-y.top+f.top)/x.y,bottom:(y.bottom-g.bottom+f.bottom)/x.y,left:(g.left-y.left+f.left)/x.x,right:(y.right-g.right+f.right)/x.x}}const Lr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=jr(n),a=Er(n),l="y"===Ir(n),c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=kr(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof f&&(h="end"===a?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},Fr=Math.min,Br=Math.max,Vr=Math.round,$r=Math.floor,Hr=e=>({x:e,y:e});function Wr(e){return Kr(e)?(e.nodeName||"").toLowerCase():"#document"}function Ur(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Gr(e){var t;return null==(t=(Kr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Kr(e){return e instanceof Node||e instanceof Ur(e).Node}function Yr(e){return e instanceof Element||e instanceof Ur(e).Element}function qr(e){return e instanceof HTMLElement||e instanceof Ur(e).HTMLElement}function Xr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Ur(e).ShadowRoot)}function Zr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=no(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Jr(e){return["table","td","th"].includes(Wr(e))}function Qr(e){const t=eo(),n=no(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function eo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function to(e){return["html","body","#document"].includes(Wr(e))}function no(e){return Ur(e).getComputedStyle(e)}function ro(e){return Yr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function oo(e){if("html"===Wr(e))return e;const t=e.assignedSlot||e.parentNode||Xr(e)&&e.host||Gr(e);return Xr(t)?t.host:t}function io(e){const t=oo(e);return to(t)?e.ownerDocument?e.ownerDocument.body:e.body:qr(t)&&Zr(t)?t:io(t)}function so(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=io(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=Ur(o);return i?t.concat(s,s.visualViewport||[],Zr(o)?o:[],s.frameElement&&n?so(s.frameElement):[]):t.concat(o,so(o,[],n))}function ao(e){const t=no(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=qr(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Vr(n)!==i||Vr(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function lo(e){return Yr(e)?e:e.contextElement}function co(e){const t=lo(e);if(!qr(t))return Hr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ao(t);let s=(i?Vr(n.width):n.width)/r,a=(i?Vr(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const uo=Hr(0);function po(e){const t=Ur(e);return eo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:uo}function ho(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=lo(e);let s=Hr(1);t&&(r?Yr(r)&&(s=co(r)):s=co(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ur(e))&&t}(i,n,r)?po(i):Hr(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const e=Ur(i),t=r&&Yr(r)?Ur(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=co(o),t=o.getBoundingClientRect(),r=no(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=s,n=Ur(o),o=n.frameElement}}return Dr({width:u,height:d,x:l,y:c})}const fo=[":popover-open",":modal"];function mo(e){return fo.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function go(e){return ho(Gr(e)).left+ro(e).scrollLeft}function vo(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ur(e),r=Gr(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=eo();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=Gr(e),n=ro(e),r=e.ownerDocument.body,o=Br(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Br(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+go(e);const a=-n.scrollTop;return"rtl"===no(r).direction&&(s+=Br(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(Gr(e));else if(Yr(t))r=function(e,t){const n=ho(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=qr(e)?co(e):Hr(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=po(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Dr(r)}function bo(e,t){const n=oo(e);return!(n===t||!Yr(n)||to(n))&&("fixed"===no(n).position||bo(n,t))}function xo(e,t,n){const r=qr(t),o=Gr(t),i="fixed"===n,s=ho(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Hr(0);if(r||!r&&!i)if(("body"!==Wr(t)||Zr(o))&&(a=ro(t)),r){const e=ho(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=go(o));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function yo(e,t){return qr(e)&&"fixed"!==no(e).position?t?t(e):e.offsetParent:null}function wo(e,t){const n=Ur(e);if(!qr(e)||mo(e))return n;let r=yo(e,t);for(;r&&Jr(r)&&"static"===no(r).position;)r=yo(r,t);return r&&("html"===Wr(r)||"body"===Wr(r)&&"static"===no(r).position&&!Qr(r))?n:r||function(e){let t=oo(e);for(;qr(t)&&!to(t);){if(Qr(t))return t;t=oo(t)}return null}(e)||n}const _o={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=Gr(r),a=!!t&&mo(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Hr(1);const u=Hr(0),d=qr(r);if((d||!d&&!i)&&(("body"!==Wr(r)||Zr(s))&&(l=ro(r)),qr(r))){const e=ho(r);c=co(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:Gr,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=so(e,[],!1).filter((e=>Yr(e)&&"body"!==Wr(e))),o=null;const i="fixed"===no(e).position;let s=i?oo(e):e;for(;Yr(s)&&!to(s);){const t=no(s),n=Qr(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Zr(s)&&!n&&bo(e,s))?r=r.filter((e=>e!==s)):o=t,s=oo(s)}return t.set(e,r),r}(t,this._c):[].concat(n),s=[...i,r],a=s[0],l=s.reduce(((e,n)=>{const r=vo(t,n,o);return e.top=Br(r.top,e.top),e.right=Fr(r.right,e.right),e.bottom=Fr(r.bottom,e.bottom),e.left=Br(r.left,e.left),e}),vo(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:wo,getElementRects:async function(e){const t=this.getOffsetParent||wo,n=this.getDimensions;return{reference:xo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ao(e);return{width:t,height:n}},getScale:co,isElement:Yr,isRTL:function(e){return"rtl"===no(e).direction}};function So(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=lo(e),u=o||i?[...c?so(c):[],...so(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&a?function(e,t){let n,r=null;const o=Gr(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(a||t(),!d||!p)return;const h={rootMargin:-$r(u)+"px "+-$r(o.clientWidth-(c+d))+"px "+-$r(o.clientHeight-(u+p))+"px "+-$r(c)+"px",threshold:Br(0,Fr(1,l))||1};let f=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!f)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),100)}f=!1}try{r=new IntersectionObserver(m,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,h)}r.observe(e)}(!0),i}(c,n):null;let p,h=-1,f=null;s&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?ho(e):null;return l&&function t(){const r=ho(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const Co=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=kr(e,t),c={x:n,y:r},u=await zr(t,l),d=Ir(jr(o)),p=Pr(d);let h=c[p],f=c[d];if(i){const e="y"===p?"bottom":"right";h=Cr(h+u["y"===p?"top":"left"],h,h-u[e])}if(s){const e="y"===d?"bottom":"right";f=Cr(f+u["y"===d?"top":"left"],f,f-u[e])}const m=a.fn({...t,[p]:h,[d]:f});return{...m,data:{x:m.x-n,y:m.y-r}}}}},ko=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=kr(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=jr(o),b=jr(a)===a,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),y=p||(b||!m?[Nr(a)]:function(e){const t=Nr(e);return[Rr(e),t,Rr(t)]}(a));p||"none"===f||y.push(...function(e,t,n,r){const o=Er(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}(jr(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Rr)))),i}(a,m,f,x));const w=[a,...y],_=await zr(t,g),S=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&S.push(_[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Er(e),o=Mr(e),i=Tr(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Nr(s)),[s,Nr(s)]}(o,s,x);S.push(_[e[0]],_[e[1]])}if(C=[...C,{placement:o,overflows:S}],!S.every((e=>e<=0))){var k,j;const e=((null==(k=i.flip)?void 0:k.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(j=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:j.placement;if(!n)switch(h){case"bestFit":{var E;const e=null==(E=C.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:E[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},jo=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=(()=>{}),...a}=kr(e,t),l=await zr(t,a),c=jr(n),u=Er(n),d="y"===Ir(n),{width:p,height:h}=r.floating;let f,m;"top"===c||"bottom"===c?(f=c,m=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,f="end"===u?"top":"bottom");const g=h-l[f],v=p-l[m],b=!t.middlewareData.shift;let x=g,y=v;if(d){const e=p-l.left-l.right;y=u||b?yr(v,e):e}else{const e=h-l.top-l.bottom;x=u||b?yr(g,e):e}if(b&&!u){const e=wr(l.left,0),t=wr(l.right,0),n=wr(l.top,0),r=wr(l.bottom,0);d?y=p-2*(0!==e||0!==t?e+t:wr(l.left,l.right)):x=h-2*(0!==n||0!==r?n+r:wr(l.top,l.bottom))}await s({...t,availableWidth:y,availableHeight:x});const w=await o.getDimensions(i.floating);return p!==w.width||h!==w.height?{reset:{rects:!0}}:{}}}},Eo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=kr(e,t)||{};if(null==c)return{};const d=Ar(u),p={x:n,y:r},h=Mr(o),f=Tr(h),m=await s.getDimensions(c),g="y"===h,v=g?"top":"left",b=g?"bottom":"right",x=g?"clientHeight":"clientWidth",y=i.reference[f]+i.reference[h]-p[h]-i.floating[f],w=p[h]-i.reference[h],_=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let S=_?_[x]:0;S&&await(null==s.isElement?void 0:s.isElement(_))||(S=a.floating[x]||i.floating[f]);const C=y/2-w/2,k=S/2-m[f]/2-1,j=yr(d[v],k),E=yr(d[b],k),P=j,T=S-m[f]-E,I=S/2-m[f]/2+C,M=Cr(P,I,T),R=!l.arrow&&null!=Er(o)&&I!=M&&i.reference[f]/2-(I<P?j:E)-m[f]/2<0,N=R?I<P?I-P:I-T:0;return{[h]:p[h]+N,data:{[h]:M,centerOffset:I-M-N,...R&&{alignmentOffset:N}},reset:R}}}),Po=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=kr(e,t),u={x:n,y:r},d=Ir(o),p=Pr(d);let h=u[p],f=u[d];const m=kr(a,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+g.mainAxis,n=i.reference[p]+i.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var v,b;const e="y"===p?"width":"height",t=["top","left"].includes(jr(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=s.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[p]:h,[d]:f}}}},To=(e,t,n)=>{const r=new Map,o={platform:_o,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Or(c,r,l),p=r,h={},f=0;for(let n=0;n<a.length;n++){const{name:i,fn:m}=a[n],{x:g,y:v,data:b,reset:x}=await m({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,h={...h,[i]:{...h[i],...b}},x&&f<=50&&(f++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(c=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:d}=Or(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};function Io(e=0,t=0,n=0,r=0){if("function"==typeof DOMRect)return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return w(y({},o),{toJSON:()=>o})}function Mo(e,t){return{contextElement:e||void 0,getBoundingClientRect:()=>{const n=e,r=null==t?void 0:t(n);return r||!n?function(e){if(!e)return Io();const{x:t,y:n,width:r,height:o}=e;return Io(t,n,r,o)}(r):n.getBoundingClientRect()}}}function Ro(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function No(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function Ao(e,t){return Lr((({placement:n})=>{var r;const o=((null==e?void 0:e.clientHeight)||0)/2,i="number"==typeof t.gutter?t.gutter+o:null!=(r=t.gutter)?r:o;return{crossAxis:!!n.split("-")[1]?void 0:t.shift,mainAxis:i,alignmentAxis:t.shift}}))}function Do(e){if(!1===e.flip)return;const t="string"==typeof e.flip?e.flip.split(" "):void 0;return L(!t||t.every(Ro),!1),ko({padding:e.overflowPadding,fallbackPlacements:t})}function Oo(e){if(e.slide||e.overlap)return Co({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Po()})}function zo(e){return jo({padding:e.overflowPadding,apply({elements:t,availableWidth:n,availableHeight:r,rects:o}){const i=t.floating,s=Math.round(o.reference.width);n=Math.floor(n),r=Math.floor(r),i.style.setProperty("--popover-anchor-width",`${s}px`),i.style.setProperty("--popover-available-width",`${n}px`),i.style.setProperty("--popover-available-height",`${r}px`),e.sameWidth&&(i.style.width=`${s}px`),e.fitViewport&&(i.style.maxWidth=`${n}px`,i.style.maxHeight=`${r}px`)}})}function Lo(e,t){if(e)return Eo({element:e,padding:t.arrowPadding})}var Fo=Ve((e=>{var t=e,{store:n,modal:r=!1,portal:o=!!r,preserveTabOrder:i=!0,autoFocusOnShow:s=!0,wrapperProps:a,fixed:l=!1,flip:u=!0,shift:d=0,slide:p=!0,overlap:h=!1,sameWidth:f=!1,fitViewport:m=!1,gutter:g,arrowPadding:v=4,overflowPadding:b=8,getAnchorRect:x,updatePosition:S}=t,C=_(t,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const k=mn();L(n=n||k,!1);const j=n.useState("arrowElement"),E=n.useState("anchorElement"),P=n.useState("disclosureElement"),T=n.useState("popoverElement"),I=n.useState("contentElement"),M=n.useState("placement"),R=n.useState("mounted"),N=n.useState("rendered"),[A,D]=(0,c.useState)(!1),{portalRef:O,domReady:z}=Te(o,C.portalRef),F=we(x),B=we(S),V=!!S;be((()=>{if(!(null==T?void 0:T.isConnected))return;T.style.setProperty("--popover-overflow-padding",`${b}px`);const e=Mo(E,F),t=async()=>{if(!R)return;const t=[Ao(j,{gutter:g,shift:d}),Do({flip:u,overflowPadding:b}),Oo({slide:p,shift:d,overlap:h,overflowPadding:b}),Lo(j,{arrowPadding:v}),zo({sameWidth:f,fitViewport:m,overflowPadding:b})],r=await To(e,T,{placement:M,strategy:l?"fixed":"absolute",middleware:t});null==n||n.setState("currentPlacement",r.placement),D(!0);const o=No(r.x),i=No(r.y);if(Object.assign(T.style,{top:"0",left:"0",transform:`translate3d(${o}px,${i}px,0)`}),j&&r.middlewareData.arrow){const{x:e,y:t}=r.middlewareData.arrow,n=r.placement.split("-")[0];Object.assign(j.style,{left:null!=e?`${e}px`:"",top:null!=t?`${t}px`:"",[n]:"100%"})}},r=So(e,T,(async()=>{V?(await B({updatePosition:t}),D(!0)):await t()}),{elementResize:"function"==typeof ResizeObserver});return()=>{D(!1),r()}}),[n,N,T,j,E,T,M,R,z,l,u,d,p,h,f,m,g,v,b,F,V,B]),be((()=>{if(!R)return;if(!z)return;if(!(null==T?void 0:T.isConnected))return;if(!(null==I?void 0:I.isConnected))return;const e=()=>{T.style.zIndex=getComputedStyle(I).zIndex};e();let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}),[R,z,T,I]);const $=l?"fixed":"absolute";return C=Pe(C,(e=>(0,ze.jsx)("div",w(y({role:"presentation"},a),{style:y({position:$,top:0,left:0,width:"max-content"},null==a?void 0:a.style),ref:null==n?void 0:n.setPopoverElement,children:e}))),[n,$,a]),C=Pe(C,(e=>(0,ze.jsx)(vn,{value:n,children:e})),[n]),C=w(y({"data-placing":A?void 0:""},C),{style:y({position:"relative"},C.style)}),C=br(w(y({store:n,modal:r,portal:o,preserveTabOrder:i,preserveTabOrderAnchor:P||E,autoFocusOnShow:A&&s},C),{portalRef:O}))}));xr(Le((e=>Be("div",Fo(e)))),mn);function Bo(e,t,n,r){return!!Je(t)||!!e&&(!!Y(t,e)||(!(!n||!Y(n,e))||!!(null==r?void 0:r.some((t=>Bo(e,t,n))))))}var Vo=(0,c.createContext)(null),$o=Ve((e=>{var t=e,{store:n,modal:r=!1,portal:o=!!r,hideOnEscape:i=!0,hideOnHoverOutside:s=!0,disablePointerEventsOnApproach:a=!!s}=t,l=_(t,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const u=xn();L(n=n||u,!1);const d=(0,c.useRef)(null),[p,h]=(0,c.useState)([]),f=(0,c.useRef)(0),m=(0,c.useRef)(null),{portalRef:g,domReady:v}=Te(o,l.portalRef),b=!!s,x=Ee(s),S=!!a,C=Ee(a),k=n.useState("open"),j=n.useState("mounted");(0,c.useEffect)((()=>{if(!v)return;if(!j)return;if(!b&&!S)return;const e=d.current;if(!e)return;return O(fe("mousemove",(t=>{if(!n)return;const{anchorElement:r,hideTimeout:o,timeout:i}=n.getState(),s=m.current,[a]=t.composedPath(),l=r;if(Bo(a,e,l,p))return m.current=a&&l&&Y(l,a)?Tn(t):null,window.clearTimeout(f.current),void(f.current=0);if(!f.current){if(s){const n=Tn(t);if(In(n,Mn(e,s))){if(m.current=n,!C(t))return;return t.preventDefault(),void t.stopPropagation()}}x(t)&&(f.current=window.setTimeout((()=>{f.current=0,null==n||n.hide()}),null!=o?o:i))}}),!0),(()=>clearTimeout(f.current)))}),[n,v,j,b,S,p,C,x]),(0,c.useEffect)((()=>{if(!v)return;if(!j)return;if(!S)return;const e=e=>{const t=d.current;if(!t)return;const n=m.current;if(!n)return;const r=Mn(t,n);if(In(Tn(e),r)){if(!C(e))return;e.preventDefault(),e.stopPropagation()}};return O(fe("mouseenter",e,!0),fe("mouseover",e,!0),fe("mouseout",e,!0),fe("mouseleave",e,!0))}),[v,j,S,C]),(0,c.useEffect)((()=>{v&&(k||null==n||n.setAutoFocusOnShow(!1))}),[n,v,k]);const E=ye(k);(0,c.useEffect)((()=>{if(v)return()=>{E.current||null==n||n.setAutoFocusOnShow(!1)}}),[n,v]);const P=(0,c.useContext)(Vo);be((()=>{if(r)return;if(!o)return;if(!j)return;if(!v)return;const e=d.current;return e?null==P?void 0:P(e):void 0}),[r,o,j,v]);const T=(0,c.useCallback)((e=>{h((t=>[...t,e]));const t=null==P?void 0:P(e);return()=>{h((t=>t.filter((t=>t!==e)))),null==t||t()}}),[P]);l=Pe(l,(e=>(0,ze.jsx)(wn,{value:n,children:(0,ze.jsx)(Vo.Provider,{value:T,children:e})})),[n,T]),l=w(y({},l),{ref:_e(d,l.ref)}),l=function(e){var t=e,{store:n}=t,r=_(t,["store"]);const[o,i]=(0,c.useState)(!1),s=n.useState("mounted");(0,c.useEffect)((()=>{s||i(!1)}),[s]);const a=r.onFocus,l=we((e=>{null==a||a(e),e.defaultPrevented||i(!0)})),u=(0,c.useRef)(null);return(0,c.useEffect)((()=>At(n,["anchorElement"],(e=>{u.current=e.anchorElement}))),[]),w(y({autoFocusOnHide:o,finalFocus:u},r),{onFocus:l})}(y({store:n},l));const I=n.useState((e=>r||e.autoFocusOnShow));return l=Fo(w(y({store:n,modal:r,portal:o,autoFocusOnShow:I},l),{portalRef:g,hideOnEscape:e=>!F(i,e)&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{null==n||n.hide()}))})),!0)}))}));xr(Le((e=>Be("div",$o(e)))),xn);var Ho=Ve((e=>{var t=e,{store:n,portal:r=!0,gutter:o=8,preserveTabOrder:i=!1,hideOnHoverOutside:s=!0,hideOnInteractOutside:a=!0}=t,l=_(t,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const c=Cn();L(n=n||c,!1),l=Pe(l,(e=>(0,ze.jsx)(kn,{value:n,children:e})),[n]);const u=n.useState((e=>"description"===e.type?"tooltip":"none"));return l=y({role:u},l),l=$o(w(y({},l),{store:n,portal:r,gutter:o,preserveTabOrder:i,hideOnHoverOutside:e=>{if(F(s,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!("focusVisible"in t.dataset)},hideOnInteractOutside:e=>{if(F(a,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!Y(t,e.target)}}))})),Wo=xr(Le((e=>Be("div",Ho(e)))),Cn);const Uo=window.wp.element,Go=window.wp.deprecated;var Ko=o.n(Go);const Yo=function(e){const{shortcut:t,className:n}=e;if(!t)return null;let r,o;return"string"==typeof t&&(r=t),null!==t&&"object"==typeof t&&(r=t.display,o=t.ariaLabel),(0,ze.jsx)("span",{className:n,"aria-label":o,children:r})},qo={bottom:"bottom",top:"top","middle left":"left","middle right":"right","bottom left":"bottom-end","bottom center":"bottom","bottom right":"bottom-start","top left":"top-end","top center":"top","top right":"top-start","middle left left":"left","middle left right":"left","middle left bottom":"left-end","middle left top":"left-start","middle right left":"right","middle right right":"right","middle right bottom":"right-end","middle right top":"right-start","bottom left left":"bottom-end","bottom left right":"bottom-end","bottom left bottom":"bottom-end","bottom left top":"bottom-end","bottom center left":"bottom","bottom center right":"bottom","bottom center bottom":"bottom","bottom center top":"bottom","bottom right left":"bottom-start","bottom right right":"bottom-start","bottom right bottom":"bottom-start","bottom right top":"bottom-start","top left left":"top-end","top left right":"top-end","top left bottom":"top-end","top left top":"top-end","top center left":"top","top center right":"top","top center bottom":"top","top center top":"top","top right left":"top-start","top right right":"top-start","top right bottom":"top-start","top right top":"top-start",middle:"bottom","middle center":"bottom","middle center bottom":"bottom","middle center left":"bottom","middle center right":"bottom","middle center top":"bottom"},Xo=e=>{var t;return null!==(t=qo[e])&&void 0!==t?t:"bottom"},Zo={top:{originX:.5,originY:1},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},right:{originX:0,originY:.5},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},bottom:{originX:.5,originY:0},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},left:{originX:1,originY:.5},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1},overlay:{originX:.5,originY:.5}};const Jo=e=>null===e||Number.isNaN(e)?void 0:Math.round(e),Qo=(0,Uo.createContext)({isNestedInTooltip:!1}),ei=700,ti={isNestedInTooltip:!0};const ni=(0,Uo.forwardRef)((function(e,t){const{children:n,delay:r=ei,hideOnClick:o=!0,placement:i,position:s,shortcut:a,text:c,...u}=e,{isNestedInTooltip:d}=(0,Uo.useContext)(Qo),p=(0,l.useInstanceId)(ni,"tooltip"),h=c||a?p:void 0,f=1===Uo.Children.count(n);let m;void 0!==i?m=i:void 0!==s&&(m=Xo(s),Ko()("`position` prop in wp.components.tooltip",{since:"6.4",alternative:"`placement` prop"})),m=m||"bottom";const g=rn({placement:m,showTimeout:r});return d?f?(0,ze.jsx)(on,{...u,render:n}):n:(0,ze.jsxs)(Qo.Provider,{value:ti,children:[(0,ze.jsx)(Pn,{onClick:o?g.hide:void 0,store:g,render:f?n:void 0,ref:t,children:f?void 0:n}),f&&(c||a)&&(0,ze.jsxs)(Wo,{...u,className:"components-tooltip",unmountOnHide:!0,gutter:4,id:h,overflowPadding:.5,store:g,children:[c,a&&(0,ze.jsx)(Yo,{className:c?"components-tooltip__shortcut":"",shortcut:a})]})]})})),ri=ni;window.wp.warning;var oi=o(66),ii=o.n(oi),si=o(7734),ai=o.n(si);
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
-function li(e){return"[object Object]"===Object.prototype.toString.call(e)}function ci(e){var t,n;return!1!==li(e)&&(void 0===(t=e.constructor)||!1!==li(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}const ui=function(e,t){const n=(0,Uo.useRef)(!1);(0,Uo.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)},di=(0,Uo.createContext)({}),fi=()=>(0,Uo.useContext)(di);const mi=(0,Uo.memo)((({children:e,value:t})=>{const n=function({value:e}){const t=fi(),n=(0,Uo.useRef)(e);return ui((()=>{si()(n.current,e)&&n.current}),[e]),(0,Uo.useMemo)((()=>ii()(null!=t?t:{},null!=e?e:{},{isMergeableObject:ci})),[t,e])}({value:t});return(0,r.createElement)(di.Provider,{value:n},e)})),pi="data-wp-component",hi="data-wp-c16t",gi="__contextSystemKey__";var vi=function(){return vi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vi.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function bi(e){return e.toLowerCase()}var yi=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],xi=/[^A-Z0-9]+/gi;function wi(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function Ei(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?yi:n,o=t.stripRegexp,i=void 0===o?xi:o,a=t.transform,s=void 0===a?bi:a,l=t.delimiter,c=void 0===l?" ":l,u=wi(wi(e,r,"$1\0$2"),i,"\0"),d=0,f=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(f-1);)f--;return u.slice(d,f).split("\0").map(s).join(c)}(e,vi({delimiter:"."},t))}function _i(e,t){return void 0===t&&(t={}),Ei(e,vi({delimiter:"-"},t))}function Si(e,t){var n,r,o=0;function i(){var i,a,s=n,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(a=0;a<l;a++)if(s.args[a]!==arguments[a]){s=s.next;continue e}return s!==n&&(s===r&&(r=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return s={args:i,val:e.apply(null,i)},n?(n.prev=s,s.next=n):r=s,o===t.maxSize?(r=r.prev).next=null:o++,n=s,s.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}const Ci=Si((function(e){return`components-${_i(e)}`}));var ki=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Pi=Math.abs,Ti=String.fromCharCode,Ii=Object.assign;function Ri(e){return e.trim()}function Mi(e,t,n){return e.replace(t,n)}function Ni(e,t){return e.indexOf(t)}function Di(e,t){return 0|e.charCodeAt(t)}function Ai(e,t,n){return e.slice(t,n)}function Oi(e){return e.length}function zi(e){return e.length}function Li(e,t){return t.push(e),e}var Fi=1,Bi=1,ji=0,Vi=0,Hi=0,$i="";function Wi(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Fi,column:Bi,length:a,return:""}}function Ui(e,t){return Ii(Wi("",null,null,"",null,null,0),e,{length:-e.length},t)}function Gi(){return Hi=Vi>0?Di($i,--Vi):0,Bi--,10===Hi&&(Bi=1,Fi--),Hi}function qi(){return Hi=Vi<ji?Di($i,Vi++):0,Bi++,10===Hi&&(Bi=1,Fi++),Hi}function Yi(){return Di($i,Vi)}function Ki(){return Vi}function Xi(e,t){return Ai($i,e,t)}function Zi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ji(e){return Fi=Bi=1,ji=Oi($i=e),Vi=0,[]}function Qi(e){return $i="",e}function ea(e){return Ri(Xi(Vi-1,ra(91===e?e+2:40===e?e+1:e)))}function ta(e){for(;(Hi=Yi())&&Hi<33;)qi();return Zi(e)>2||Zi(Hi)>3?"":" "}function na(e,t){for(;--t&&qi()&&!(Hi<48||Hi>102||Hi>57&&Hi<65||Hi>70&&Hi<97););return Xi(e,Ki()+(t<6&&32==Yi()&&32==qi()))}function ra(e){for(;qi();)switch(Hi){case e:return Vi;case 34:case 39:34!==e&&39!==e&&ra(Hi);break;case 40:41===e&&ra(e);break;case 92:qi()}return Vi}function oa(e,t){for(;qi()&&e+Hi!==57&&(e+Hi!==84||47!==Yi()););return"/*"+Xi(t,Vi-1)+"*"+Ti(47===e?e:qi())}function ia(e){for(;!Zi(Yi());)qi();return Xi(e,Vi)}var aa="-ms-",sa="-moz-",la="-webkit-",ca="comm",ua="rule",da="decl",fa="@keyframes";function ma(e,t){for(var n="",r=zi(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function pa(e,t,n,r){switch(e.type){case"@import":case da:return e.return=e.return||e.value;case ca:return"";case fa:return e.return=e.value+"{"+ma(e.children,r)+"}";case ua:e.value=e.props.join(",")}return Oi(n=ma(e.children,r))?e.return=e.value+"{"+n+"}":""}function ha(e){return Qi(ga("",null,null,null,[""],e=Ji(e),0,[0],e))}function ga(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,m=0,p=0,h=1,g=1,v=1,b=0,y="",x=o,w=i,E=r,_=y;g;)switch(p=b,b=qi()){case 40:if(108!=p&&58==Di(_,d-1)){-1!=Ni(_+=Mi(ea(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=ea(b);break;case 9:case 10:case 13:case 32:_+=ta(p);break;case 92:_+=na(Ki()-1,7);continue;case 47:switch(Yi()){case 42:case 47:Li(ba(oa(qi(),Ki()),t,n),l);break;default:_+="/"}break;case 123*h:s[c++]=Oi(_)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:m>0&&Oi(_)-d&&Li(m>32?ya(_+";",r,n,d-1):ya(Mi(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(Li(E=va(_,t,n,c,u,o,s,y,x=[],w=[],d),i),123===b)if(0===u)ga(_,t,E,E,x,i,d,s,w);else switch(99===f&&110===Di(_,3)?100:f){case 100:case 109:case 115:ga(e,E,E,r&&Li(va(e,E,E,0,0,o,s,y,o,x=[],d),w),o,w,d,s,r?x:w);break;default:ga(_,E,E,E,[""],w,0,s,w)}}c=u=m=0,h=v=1,y=_="",d=a;break;case 58:d=1+Oi(_),m=p;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Gi())continue;switch(_+=Ti(b),b*h){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Oi(_)-1)*v,v=1;break;case 64:45===Yi()&&(_+=ea(qi())),f=Yi(),u=d=Oi(y=_+=ia(Ki())),b++;break;case 45:45===p&&2==Oi(_)&&(h=0)}}return i}function va(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],m=zi(f),p=0,h=0,g=0;p<r;++p)for(var v=0,b=Ai(e,d+1,d=Pi(h=a[p])),y=e;v<m;++v)(y=Ri(h>0?f[v]+" "+b:Mi(b,/&\f/g,f[v])))&&(l[g++]=y);return Wi(e,t,n,0===o?ua:s,l,c,u)}function ba(e,t,n){return Wi(e,t,n,ca,Ti(Hi),Ai(e,2,-2),0)}function ya(e,t,n,r){return Wi(e,t,n,da,Ai(e,0,r),Ai(e,r+1,-1),r)}var xa=function(e,t,n){for(var r=0,o=0;r=o,o=Yi(),38===r&&12===o&&(t[n]=1),!Zi(o);)qi();return Xi(e,Vi)},wa=function(e,t){return Qi(function(e,t){var n=-1,r=44;do{switch(Zi(r)){case 0:38===r&&12===Yi()&&(t[n]=1),e[n]+=xa(Vi-1,t,n);break;case 2:e[n]+=ea(r);break;case 4:if(44===r){e[++n]=58===Yi()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ti(r)}}while(r=qi());return e}(Ji(e),t))},Ea=new WeakMap,_a=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Ea.get(n))&&!r){Ea.set(e,!0);for(var o=[],i=wa(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Sa=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ca(e,t){switch(function(e,t){return 45^Di(e,0)?(((t<<2^Di(e,0))<<2^Di(e,1))<<2^Di(e,2))<<2^Di(e,3):0}(e,t)){case 5103:return la+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return la+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return la+e+sa+e+aa+e+e;case 6828:case 4268:return la+e+aa+e+e;case 6165:return la+e+aa+"flex-"+e+e;case 5187:return la+e+Mi(e,/(\w+).+(:[^]+)/,la+"box-$1$2"+aa+"flex-$1$2")+e;case 5443:return la+e+aa+"flex-item-"+Mi(e,/flex-|-self/,"")+e;case 4675:return la+e+aa+"flex-line-pack"+Mi(e,/align-content|flex-|-self/,"")+e;case 5548:return la+e+aa+Mi(e,"shrink","negative")+e;case 5292:return la+e+aa+Mi(e,"basis","preferred-size")+e;case 6060:return la+"box-"+Mi(e,"-grow","")+la+e+aa+Mi(e,"grow","positive")+e;case 4554:return la+Mi(e,/([^-])(transform)/g,"$1"+la+"$2")+e;case 6187:return Mi(Mi(Mi(e,/(zoom-|grab)/,la+"$1"),/(image-set)/,la+"$1"),e,"")+e;case 5495:case 3959:return Mi(e,/(image-set\([^]*)/,la+"$1$`$1");case 4968:return Mi(Mi(e,/(.+:)(flex-)?(.*)/,la+"box-pack:$3"+aa+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+la+e+e;case 4095:case 3583:case 4068:case 2532:return Mi(e,/(.+)-inline(.+)/,la+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Oi(e)-1-t>6)switch(Di(e,t+1)){case 109:if(45!==Di(e,t+4))break;case 102:return Mi(e,/(.+:)(.+)-([^]+)/,"$1"+la+"$2-$3$1"+sa+(108==Di(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ni(e,"stretch")?Ca(Mi(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Di(e,t+1))break;case 6444:switch(Di(e,Oi(e)-3-(~Ni(e,"!important")&&10))){case 107:return Mi(e,":",":"+la)+e;case 101:return Mi(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+la+(45===Di(e,14)?"inline-":"")+"box$3$1"+la+"$2$3$1"+aa+"$2box$3")+e}break;case 5936:switch(Di(e,t+11)){case 114:return la+e+aa+Mi(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return la+e+aa+Mi(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return la+e+aa+Mi(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return la+e+aa+e+e}return e}var ka=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case da:e.return=Ca(e.value,e.length);break;case fa:return ma([Ui(e,{value:Mi(e.value,"@","@"+la)})],r);case ua:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ma([Ui(e,{props:[Mi(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ma([Ui(e,{props:[Mi(t,/:(plac\w+)/,":"+la+"input-$1")]}),Ui(e,{props:[Mi(t,/:(plac\w+)/,":-moz-$1")]}),Ui(e,{props:[Mi(t,/:(plac\w+)/,aa+"input-$1")]})],r)}return""}))}}];const Pa=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||ka;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u,d,f=[pa,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],m=(c=[_a,Sa].concat(r,f),u=zi(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});i=function(e,t,n,r){l=n,function(e){ma(ha(e),m)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new ki({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return p.sheet.hydrate(s),p};const Ta=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const Ia={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Ra(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ma=/[A-Z]|^ms/g,Na=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Da=function(e){return 45===e.charCodeAt(1)},Aa=function(e){return null!=e&&"boolean"!=typeof e},Oa=Ra((function(e){return Da(e)?e:e.replace(Ma,"-$&").toLowerCase()})),za=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Na,(function(e,t,n){return Fa={name:t,styles:n,next:Fa},t}))}return 1===Ia[e]||Da(e)||"number"!=typeof t||0===t?t:t+"px"};function La(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Fa={name:n.name,styles:n.styles,next:Fa},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Fa={name:r.name,styles:r.styles,next:Fa},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=La(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Aa(a)&&(r+=Oa(i)+":"+za(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=La(e,t,a);switch(i){case"animation":case"animationName":r+=Oa(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)Aa(a[l])&&(r+=Oa(i)+":"+za(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Fa,i=n(e);return Fa=o,La(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Fa,Ba=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var ja=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Fa=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=La(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=La(n,t,e[a]),r&&(o+=i[a]);Ba.lastIndex=0;for(var s,l="";null!==(s=Ba.exec(o));)l+="-"+s[1];return{name:Ta(o)+l,styles:o,next:Fa}},Va=!!r.useInsertionEffect&&r.useInsertionEffect,Ha=Va||function(e){return e()},$a=(0,r.createContext)("undefined"!=typeof HTMLElement?Pa({key:"css"}):null);var Wa=$a.Provider,Ua=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)($a);return e(t,o,n)}))},Ga=(0,r.createContext)({});function qa(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Ya=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ka=function(e,t,n){Ya(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}};function Xa(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Za(e,t,n){var r=[],o=qa(e,r,n);return r.length<2?n:o+t(r)}var Ja=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var a in i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n};const Qa=function(e){var t=Pa(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=ja(n,t.registered,void 0);return Ka(t,o,!1),t.key+"-"+o.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return Za(t.registered,n,Ja(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=ja(n,t.registered);Xa(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=ja(n,t.registered),i="animation-"+o.name;return Xa(t,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:qa.bind(null,t.registered),merge:Za.bind(null,t.registered,n)}};var es=Qa({key:"css"}),ts=(es.flush,es.hydrate,es.cx);es.merge,es.getRegisteredStyles,es.injectGlobal,es.keyframes,es.css,es.sheet,es.cache;const ns=()=>{const e=(0,r.useContext)($a),t=(0,Uo.useCallback)(((...t)=>{if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return ts(...t.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(Ka(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function rs(e,t){const n=fi(),r=n?.[t]||{},o={[hi]:!0,...(i=t,{[pi]:i})};var i;const{_overrides:a,...s}=r,l=Object.entries(s).length?Object.assign({},s,e):e,c=ns()(Ci(t),e.className),u="function"==typeof l.renderChildren?l.renderChildren(l):l.children;for(const e in l)o[e]=l[e];for(const e in a)o[e]=a[e];return void 0!==u&&(o.children=u),o.className=c,o}function os(e,t){return as(e,t,{forwardsRef:!0})}function is(e,t){return as(e,t)}function as(e,t,n){const r=n?.forwardsRef?(0,Uo.forwardRef)(e):e;let o=r[gi]||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[gi]:[...new Set(o)],displayName:t,selector:`.${Ci(t)}`})}function ss(e){if(!e)return[];let t=[];return e[gi]&&(t=e[gi]),e.type&&e.type[gi]&&(t=e.type[gi]),t}function ls(e,t){return!!e&&("string"==typeof t?ss(e).includes(t):!!Array.isArray(t)&&t.some((t=>ss(e).includes(t))))}const cs={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};function us(){return us=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},us.apply(this,arguments)}function ds(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var fs=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ms=ds((function(e){return fs.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),ps=function(e){return"theme"!==e},hs=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ms:ps},gs=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},vs=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Ya(t,n,r);Ha((function(){return Ka(t,n,r)}));return null};const bs=function e(t,n){var o,i,a=t.__emotion_real===t,s=a&&t.__emotion_base||t;void 0!==n&&(o=n.label,i=n.target);var l=gs(t,n,a),c=l||hs(s),u=!c("as");return function(){var d=arguments,f=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&f.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{0,f.push(d[0][0]);for(var m=d.length,p=1;p<m;p++)f.push(d[p],d[0][p])}var h=Ua((function(e,t,n){var o=u&&e.as||s,a="",d=[],m=e;if(null==e.theme){for(var p in m={},e)m[p]=e[p];m.theme=(0,r.useContext)(Ga)}"string"==typeof e.className?a=qa(t.registered,d,e.className):null!=e.className&&(a=e.className+" ");var h=ja(f.concat(d),t.registered,m);a+=t.key+"-"+h.name,void 0!==i&&(a+=" "+i);var g=u&&void 0===l?hs(o):c,v={};for(var b in e)u&&"as"===b||g(b)&&(v[b]=e[b]);return v.className=a,v.ref=n,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(vs,{cache:t,serialized:h,isStringTag:"string"==typeof o}),(0,r.createElement)(o,v))}));return h.displayName=void 0!==o?o:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=s,h.__emotion_styles=f,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+i}}),h.withComponent=function(t,r){return e(t,us({},n,r,{shouldForwardProp:gs(h,r,!0)})).apply(void 0,f)},h}},ys=bs("div",{target:"e19lxcc00"})("");ys.selector=".components-view",ys.displayName="View";const xs=ys;const ws=os((function(e,t){const{style:n,...o}=rs(e,"VisuallyHidden");return(0,r.createElement)(xs,{ref:t,...o,style:{...cs,...n||{}}})}),"VisuallyHidden"),Es=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],_s={"top left":(0,u.__)("Top Left"),"top center":(0,u.__)("Top Center"),"top right":(0,u.__)("Top Right"),"center left":(0,u.__)("Center Left"),"center center":(0,u.__)("Center"),center:(0,u.__)("Center"),"center right":(0,u.__)("Center Right"),"bottom left":(0,u.__)("Bottom Left"),"bottom center":(0,u.__)("Bottom Center"),"bottom right":(0,u.__)("Bottom Right")},Ss=Es.flat();function Cs(e){const t="center"===e?"center center":e,n=t?.replace("-"," ");return Ss.includes(n)?n:void 0}function ks(e,t){const n=Cs(t);if(!n)return;return`${e}-${n.replace(" ","-")}`}o(1880);function Ps(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ja(t)}var Ts=function(){var e=Ps.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};const Is="#fff",Rs={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},Ms={accent:"var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))",accentDarker10:"var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))",accentDarker20:"var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6))",accentInverted:`var(--wp-components-color-accent-inverted, ${Is})`,background:`var(--wp-components-color-background, ${Is})`,foreground:`var(--wp-components-color-foreground, ${Rs[900]})`,foregroundInverted:`var(--wp-components-color-foreground-inverted, ${Is})`,gray:{900:`var(--wp-components-color-foreground, ${Rs[900]})`,800:`var(--wp-components-color-gray-800, ${Rs[800]})`,700:`var(--wp-components-color-gray-700, ${Rs[700]})`,600:`var(--wp-components-color-gray-600, ${Rs[600]})`,400:`var(--wp-components-color-gray-400, ${Rs[400]})`,300:`var(--wp-components-color-gray-300, ${Rs[300]})`,200:`var(--wp-components-color-gray-200, ${Rs[200]})`,100:`var(--wp-components-color-gray-100, ${Rs[100]})`}},Ns={background:Ms.background,backgroundDisabled:Ms.gray[100],border:Ms.gray[600],borderHover:Ms.gray[700],borderFocus:Ms.accent,borderDisabled:Ms.gray[400],textDisabled:Ms.gray[600],darkGrayPlaceholder:`color-mix(in srgb, ${Ms.foreground}, transparent 38%)`,lightGrayPlaceholder:`color-mix(in srgb, ${Ms.background}, transparent 35%)`},Ds=Object.freeze({gray:Rs,white:Is,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},theme:Ms,ui:Ns});function As(e="transition"){let t;switch(e){case"transition":t="transition-duration: 0ms;";break;case"animation":t="animation-duration: 1ms;";break;default:t="\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${t};\n\t\t}\n\t`}var Os={name:"93uojk",styles:"border-radius:2px;box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:repeat( 3, 1fr );outline:none"};const zs=()=>Os,Ls=bs("div",{target:"ecapk1j3"})(zs,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(({size:e=92})=>Ps("grid-template-rows:repeat( 3, calc( ",e,"px / 3 ) );width:",e,"px;","")),";"),Fs=bs("div",{target:"ecapk1j2"})({name:"1x5gbbj",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),Bs=e=>Ps("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",As("transition")," ",(({isActive:e})=>Ps("box-shadow:",e?`0 0 0 2px ${Ds.gray[900]}`:null,";color:",e?Ds.gray[900]:Ds.gray[400],";*:hover>&{color:",e?Ds.gray[900]:Ds.theme.accent,";}",""))(e),";",""),js=bs("span",{target:"ecapk1j1"})("height:6px;width:6px;",Bs,";"),Vs=bs("span",{target:"ecapk1j0"})({name:"rjf3ub",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"});function Hs({id:e,isActive:t=!1,value:n,...o}){const i=_s[n];return(0,r.createElement)(ri,{text:i},(0,r.createElement)(qt,{id:e,render:(0,r.createElement)(Vs,{...o,role:"gridcell"})},(0,r.createElement)(ws,null,n),(0,r.createElement)(js,{isActive:t,role:"presentation"})))}function $s(e,t,n){return Ce(t,[n.store]),Ht(e,n,"items","setItems"),e}function Ws(e){const t=e.map(((e,t)=>[t,e]));let n=!1;return t.sort((([e,t],[r,o])=>{const i=t.element,a=o.element;return i===a?0:i&&a?function(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}(i,a)?(e>r&&(n=!0),-1):(e<r&&(n=!0),1):0})),n?t.map((([e,t])=>t)):e}function Us(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=V(e.items,null==n?void 0:n.items,e.defaultItems,[]),o=new Map(r.map((e=>[e.id,e]))),i={items:r,renderedItems:V(null==n?void 0:n.renderedItems,[])},a=null==(s=e.store)?void 0:s.__unstablePrivateStore;var s;const l=Rt({items:r,renderedItems:i.renderedItems},a),c=Rt(i,e.store),u=e=>{const t=Ws(e);l.setState("renderedItems",t),c.setState("renderedItems",t)};Mt(c,(()=>Nt(l))),Mt(l,(()=>Ot(l,["items"],(e=>{c.setState("items",e.items)})))),Mt(l,(()=>Ot(l,["renderedItems"],(e=>{let t=!0,n=requestAnimationFrame((()=>{const{renderedItems:t}=c.getState();e.renderedItems!==t&&u(e.renderedItems)}));if("function"!=typeof IntersectionObserver)return()=>cancelAnimationFrame(n);const r=function(e){var t;const n=e.find((e=>!!e.element)),r=[...e].reverse().find((e=>!!e.element));let o=null==(t=null==n?void 0:n.element)?void 0:t.parentElement;for(;o&&(null==r?void 0:r.element);){if(r&&o.contains(r.element))return o;o=o.parentElement}return G(o).body}(e.renderedItems),o=new IntersectionObserver((()=>{t?t=!1:(cancelAnimationFrame(n),n=requestAnimationFrame((()=>u(e.renderedItems))))}),{root:r});for(const t of e.renderedItems)t.element&&o.observe(t.element);return()=>{cancelAnimationFrame(n),o.disconnect()}}))));const d=(e,t,n=!1)=>{let r;t((t=>{const n=t.findIndex((({id:t})=>t===e.id)),i=t.slice();if(-1!==n){r=t[n];const a=R(R({},r),e);i[n]=a,o.set(e.id,a)}else i.push(e),o.set(e.id,e);return i}));return()=>{t((t=>{if(!r)return n&&o.delete(e.id),t.filter((({id:t})=>t!==e.id));const i=t.findIndex((({id:t})=>t===e.id));if(-1===i)return t;const a=t.slice();return a[i]=r,o.set(e.id,r),a}))}},f=e=>d(e,(e=>l.setState("items",e)),!0);return M(R({},c),{registerItem:f,renderItem:e=>z(f(e),d(e,(e=>l.setState("renderedItems",e)))),item:e=>{if(!e)return null;let t=o.get(e);if(!t){const{items:n}=c.getState();t=n.find((t=>t.id===e)),t&&o.set(e,t)}return t||null},__unstablePrivateStore:l})}function Gs(e){const t=[];for(const n of e)t.push(...n);return t}function qs(e){return e.slice().reverse()}var Ys={id:null};function Ks(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function Xs(e,t){return e.filter((e=>e.rowId===t))}function Zs(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}function Js(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function Qs(e,t,n){const r=Js(e);for(const o of e)for(let e=0;e<r;e+=1){const r=o[e];if(!r||n&&r.disabled){const r=0===e&&n?Ks(o):o[e-1];o[e]=r&&t!==r.id&&n?r:{id:"__EMPTY_ITEM__",disabled:!0,rowId:null==r?void 0:r.rowId}}}return e}function el(e){const t=Zs(e),n=Js(t),r=[];for(let e=0;e<n;e+=1)for(const n of t){const t=n[e];t&&r.push(M(R({},t),{rowId:t.rowId?`${e}`:void 0}))}return r}function tl(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Us(e),o=V(e.activeId,null==n?void 0:n.activeId,e.defaultActiveId),i=Rt(M(R({},r.getState()),{activeId:o,baseElement:V(null==n?void 0:n.baseElement,null),includesBaseElement:V(e.includesBaseElement,null==n?void 0:n.includesBaseElement,null===o),moves:V(null==n?void 0:n.moves,0),orientation:V(e.orientation,null==n?void 0:n.orientation,"both"),rtl:V(e.rtl,null==n?void 0:n.rtl,!1),virtualFocus:V(e.virtualFocus,null==n?void 0:n.virtualFocus,!1),focusLoop:V(e.focusLoop,null==n?void 0:n.focusLoop,!1),focusWrap:V(e.focusWrap,null==n?void 0:n.focusWrap,!1),focusShift:V(e.focusShift,null==n?void 0:n.focusShift,!1)}),r,e.store);Mt(i,(()=>At(i,["renderedItems","activeId"],(e=>{i.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=Ks(e.renderedItems))?void 0:n.id}))}))));const a=(e,t,n,r)=>{var o,a;const{activeId:s,rtl:l,focusLoop:c,focusWrap:u,includesBaseElement:d}=i.getState(),f=l&&"vertical"!==t?qs(e):e;if(null==s)return null==(o=Ks(f))?void 0:o.id;const m=f.find((e=>e.id===s));if(!m)return null==(a=Ks(f))?void 0:a.id;const p=!!m.rowId,h=f.indexOf(m),g=f.slice(h+1),v=Xs(g,m.rowId);if(void 0!==r){const e=function(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(v,s),t=e.slice(r)[0]||e[e.length-1];return null==t?void 0:t.id}const b=function(e){return"vertical"===e?"horizontal":"horizontal"===e?"vertical":void 0}(p?t||"horizontal":t),y=c&&c!==b,x=p&&u&&u!==b;if(n=n||!p&&y&&d,y){const e=function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[Ys]:[],...e.slice(0,r)]}(x&&!n?f:Xs(f,m.rowId),s,n),t=Ks(e,s);return null==t?void 0:t.id}if(x){const e=Ks(n?v:g,s);return n?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const w=Ks(v,s);return!w&&n?null:null==w?void 0:w.id};return M(R(R({},r),i),{setBaseElement:e=>i.setState("baseElement",e),setActiveId:e=>i.setState("activeId",e),move:e=>{void 0!==e&&(i.setState("activeId",e),i.setState("moves",(e=>e+1)))},first:()=>{var e;return null==(e=Ks(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=Ks(qs(i.getState().renderedItems)))?void 0:e.id},next:e=>{const{renderedItems:t,orientation:n}=i.getState();return a(t,n,!1,e)},previous:e=>{var t;const{renderedItems:n,orientation:r,includesBaseElement:o}=i.getState(),s=!!!(null==(t=Ks(n))?void 0:t.rowId)&&o;return a(qs(n),r,s,e)},down:e=>{const{activeId:t,renderedItems:n,focusShift:r,focusLoop:o,includesBaseElement:s}=i.getState(),l=r&&!e,c=el(Gs(Qs(Zs(n),t,l)));return a(c,"vertical",o&&"horizontal"!==o&&s,e)},up:e=>{const{activeId:t,renderedItems:n,focusShift:r,includesBaseElement:o}=i.getState(),s=r&&!e,l=el(qs(Gs(Qs(Zs(n),t,s))));return a(l,"vertical",o,e)}})}function nl(e,t,n){return Ht(e=$s(e,t,n),n,"activeId","setActiveId"),Ht(e,n,"includesBaseElement"),Ht(e,n,"virtualFocus"),Ht(e,n,"orientation"),Ht(e,n,"rtl"),Ht(e,n,"focusLoop"),Ht(e,n,"focusWrap"),Ht(e,n,"focusShift"),e}function rl(e={}){const[t,n]=$t(tl,e);return nl(t,n,e)}function ol(e,t,n){return we((r=>{var o;if(null==t||t(r),r.defaultPrevented)return;if(r.isPropagationStopped())return;if(!ce(r))return;if(function(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}(r))return;if(function(e){const t=e.target;return!(t&&!te(t)||1!==e.key.length||e.ctrlKey||e.metaKey)}(r))return;const i=e.getState(),a=null==(o=yt(e,i.activeId))?void 0:o.element;if(!a)return;const s=r,{view:l}=s,c=E(s,["view"]);a!==(null==n?void 0:n.current)&&a.focus(),function(e,t,n){const r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}(a,r.type,c)||r.preventDefault(),r.currentTarget.contains(a)&&r.stopPropagation()}))}var il=Ve((e=>{var t=e,{store:n,composite:o=!0,focusOnMove:i=o,moveOnKeyPress:a=!0}=t,s=E(t,["store","composite","focusOnMove","moveOnKeyPress"]);const l=St();F(n=n||l,!1);const c=(0,r.useRef)(null),u=function(e){const[t,n]=(0,r.useState)(!1),o=(0,r.useCallback)((()=>n(!0)),[]),i=e.useState((t=>yt(e,t.activeId)));return(0,r.useEffect)((()=>{const e=null==i?void 0:i.element;t&&e&&(n(!1),e.focus({preventScroll:!0}))}),[i,t]),o}(n),d=n.useState("moves");(0,r.useEffect)((()=>{var e;if(!n)return;if(!d)return;if(!o)return;if(!i)return;const{activeId:t}=n.getState(),r=null==(e=yt(n,t))?void 0:e.element;r&&function(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(R({block:"nearest",inline:"nearest"},t))):e.focus()}(r)}),[n,d,o,i]),be((()=>{if(!n)return;if(!d)return;if(!o)return;const{baseElement:e,activeId:t}=n.getState();if(!(null===t))return;if(!e)return;const r=c.current;c.current=null,r&&ue(r,{relatedTarget:e}),Ze(e)||e.focus()}),[n,d,o]);const f=n.useState("activeId"),m=n.useState("virtualFocus");be((()=>{var e;if(!n)return;if(!o)return;if(!m)return;const t=c.current;if(c.current=null,!t)return;const r=(null==(e=yt(n,f))?void 0:e.element)||q(t);r!==t&&ue(t,{relatedTarget:r})}),[n,f,m,o]);const p=ol(n,s.onKeyDownCapture,c),h=ol(n,s.onKeyUpCapture,c),g=s.onFocusCapture,v=we((e=>{if(null==g||g(e),e.defaultPrevented)return;if(!n)return;const{virtualFocus:t}=n.getState();if(!t)return;const r=e.relatedTarget,o=function(e){const t=e[xt];return delete e[xt],t}(e.currentTarget);ce(e)&&o&&(e.stopPropagation(),c.current=r)})),b=s.onFocus,y=we((e=>{if(null==b||b(e),e.defaultPrevented)return;if(!o)return;if(!n)return;const{relatedTarget:t}=e,{virtualFocus:r}=n.getState();r?ce(e)&&!wt(n,t)&&queueMicrotask(u):ce(e)&&n.setActiveId(null)})),_=s.onBlurCapture,S=we((e=>{var t;if(null==_||_(e),e.defaultPrevented)return;if(!n)return;const{virtualFocus:r,activeId:o}=n.getState();if(!r)return;const i=null==(t=yt(n,o))?void 0:t.element,a=e.relatedTarget,s=wt(n,a),l=c.current;if(c.current=null,ce(e)&&s)a===i?l&&l!==a&&ue(l,e):i?ue(i,e):l&&ue(l,e),e.stopPropagation();else{!wt(n,e.target)&&i&&ue(i,e)}})),C=s.onKeyDown,k=Pe(a),P=we((e=>{var t;if(null==C||C(e),e.defaultPrevented)return;if(!n)return;if(!ce(e))return;const{orientation:r,items:o,renderedItems:i,activeId:a}=n.getState(),s=yt(n,a);if(null==(t=null==s?void 0:s.element)?void 0:t.isConnected)return;const l="horizontal"!==r,c="vertical"!==r,u=function(e){return e.some((e=>!!e.rowId))}(i);if(("ArrowLeft"===e.key||"ArrowRight"===e.key||"Home"===e.key||"End"===e.key)&&te(e.currentTarget))return;const d={ArrowUp:(u||l)&&(()=>{if(u){const e=o&&function(e){return function(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(Gs(qs(function(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}(e))))}(o);return null==e?void 0:e.id}return null==n?void 0:n.last()}),ArrowRight:(u||c)&&n.first,ArrowDown:(u||l)&&n.first,ArrowLeft:(u||c)&&n.last,Home:n.first,End:n.last,PageUp:n.first,PageDown:n.last},f=d[e.key];if(f){const t=f();if(void 0!==t){if(!k(e))return;e.preventDefault(),n.move(t)}}}));s=Te(s,(e=>(0,Le.jsx)(Ct,{value:n,children:e})),[n]);const T=n.useState((e=>{var t;if(n&&o&&e.virtualFocus)return null==(t=yt(n,e.activeId))?void 0:t.id}));s=w(x({"aria-activedescendant":T},s),{ref:Ee(o?n.setBaseElement:null,s.ref),onKeyDownCapture:p,onKeyUpCapture:h,onFocusCapture:v,onFocus:y,onBlurCapture:S,onKeyDown:P});const I=n.useState((e=>o&&(e.virtualFocus||null===e.activeId)));return s=ct(x({focusable:I},s))})),al=Fe((e=>je("div",il(e))));var sl=Ve((e=>{var t=e,{store:n,"aria-setsize":o,"aria-posinset":i}=t,a=E(t,["store","aria-setsize","aria-posinset"]);const s=_t();F(n=n||s,!1);const l=_e(a.id),c=n.useState((e=>e.baseElement||void 0)),u=(0,r.useMemo)((()=>({id:l,baseElement:c,ariaSetSize:o,ariaPosInSet:i})),[l,c,o,i]);return a=Te(a,(e=>(0,Le.jsx)(Tt.Provider,{value:u,children:e})),[u]),a=x({id:l},a)})),ll=Fe((e=>je("div",sl(e))));bs("div",{target:"erowt52"})({name:"ogl07i",styles:"box-sizing:border-box;padding:2px"});const cl=bs("div",{target:"erowt51"})("transform-origin:top left;height:100%;width:100%;",zs,";",(()=>Ps({gridTemplateRows:"repeat( 3, calc( 21px / 3))",padding:1.5,maxHeight:24,maxWidth:24},"","")),";",(({disablePointerEvents:e})=>Ps({pointerEvents:e?"none":void 0},"","")),";"),ul=bs("span",{target:"erowt50"})("height:2px;width:2px;",Bs,";",(({isActive:e})=>Ps("box-shadow:",e?"0 0 0 1px currentColor":null,";color:currentColor;*:hover>&{color:currentColor;}","")),";"),dl=Vs;const fl=function({className:e,disablePointerEvents:t=!0,size:n=24,style:o={},value:i="center",...a}){const s=function(e="center"){const t=Cs(e);if(!t)return;const n=Ss.indexOf(t);return n>-1?n:void 0}(i),l=(n/24).toFixed(2),u=c()("component-alignment-matrix-control-icon",e),d={...o,transform:`scale(${l})`};return(0,r.createElement)(cl,{...a,className:u,disablePointerEvents:t,role:"presentation",style:d},Ss.map(((e,t)=>{const n=s===t;return(0,r.createElement)(dl,{key:e},(0,r.createElement)(ul,{isActive:n}))})))};function ml({className:e,id:t,label:n=(0,u.__)("Alignment Matrix Control"),defaultValue:o="center center",value:i,onChange:a,width:s=92,...l}){const f=(0,d.useInstanceId)(ml,"alignment-matrix-control",t),m=rl({defaultActiveId:ks(f,o),activeId:ks(f,i),setActiveId:e=>{const t=function(e,t){const n=t?.replace(e+"-","");return Cs(n)}(f,e);t&&a?.(t)},rtl:(0,u.isRTL)()}),p=m.useState("activeId"),h=c()("component-alignment-matrix-control",e);return(0,r.createElement)(al,{store:m,render:(0,r.createElement)(Ls,{...l,"aria-label":n,className:h,id:f,role:"grid",size:s})},Es.map(((e,t)=>(0,r.createElement)(ll,{render:(0,r.createElement)(Fs,{role:"row"}),key:t},e.map((e=>{const t=ks(f,e),n=t===p;return(0,r.createElement)(Hs,{id:t,isActive:n,key:e,value:e})}))))))}ml.Icon=fl;const pl=ml;function hl(e){return"appear"===e?"top":"left"}function gl(e){if("loading"===e.type)return c()("components-animate__loading");const{type:t,origin:n=hl(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return c()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?c()("components-animate__slide-in","is-from-"+n):void 0}const vl=function({type:e,options:t={},children:n}){return n({className:gl({type:e,...t})})},bl=(0,r.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),yl=(0,r.createContext)({}),xl=(0,r.createContext)(null),wl="undefined"!=typeof document,El=wl?r.useLayoutEffect:r.useEffect,_l=(0,r.createContext)({strict:!1});function Sl(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Cl(e){return"string"==typeof e||Array.isArray(e)}function kl(e){return"object"==typeof e&&"function"==typeof e.start}const Pl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Tl=["initial",...Pl];function Il(e){return kl(e.animate)||Tl.some((t=>Cl(e[t])))}function Rl(e){return Boolean(Il(e)||e.variants)}function Ml(e){const{initial:t,animate:n}=function(e,t){if(Il(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Cl(t)?t:void 0,animate:Cl(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,r.useContext)(yl));return(0,r.useMemo)((()=>({initial:t,animate:n})),[Nl(t),Nl(n)])}function Nl(e){return Array.isArray(e)?e.join(" "):e}const Dl={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Al={};for(const e in Dl)Al[e]={isEnabled:t=>Dl[e].some((e=>!!t[e]))};const Ol=(0,r.createContext)({}),zl=(0,r.createContext)({}),Ll=Symbol.for("motionComponentSymbol");function Fl({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:i}){e&&function(e){for(const t in e)Al[t]={...Al[t],...e[t]}}(e);const a=(0,r.forwardRef)((function(a,s){let l;const c={...(0,r.useContext)(bl),...a,layoutId:Bl(a)},{isStatic:u}=c,d=Ml(a),f=o(a,u);if(!u&&wl){d.visualElement=function(e,t,n,o){const{visualElement:i}=(0,r.useContext)(yl),a=(0,r.useContext)(_l),s=(0,r.useContext)(xl),l=(0,r.useContext)(bl).reducedMotion,c=(0,r.useRef)();o=o||a.renderer,!c.current&&o&&(c.current=o(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const u=c.current;(0,r.useInsertionEffect)((()=>{u&&u.update(n,s)}));const d=(0,r.useRef)(Boolean(window.HandoffAppearAnimations));return El((()=>{u&&(u.render(),d.current&&u.animationState&&u.animationState.animateChanges())})),(0,r.useEffect)((()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,d.current=!1)})),u}(i,f,c,t);const n=(0,r.useContext)(zl),o=(0,r.useContext)(_l).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,o,e,n))}return r.createElement(yl.Provider,{value:d},l&&d.visualElement?r.createElement(l,{visualElement:d.visualElement,...c}):null,n(i,a,function(e,t,n){return(0,r.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Sl(n)&&(n.current=r))}),[t])}(f,d.visualElement,s),f,u,d.visualElement))}));return a[Ll]=i,a}function Bl({layoutId:e}){const t=(0,r.useContext)(Ol).id;return t&&void 0!==e?t+"-"+e:e}function jl(e){function t(t,n={}){return Fl(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const Vl=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Hl(e){return"string"==typeof e&&!e.includes("-")&&!!(Vl.indexOf(e)>-1||/[A-Z]/.test(e))}const $l={};const Wl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ul=new Set(Wl);function Gl(e,{layout:t,layoutId:n}){return Ul.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!$l[e]||"opacity"===e)}const ql=e=>Boolean(e&&e.getVelocity),Yl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Kl=Wl.length;const Xl=e=>t=>"string"==typeof t&&t.startsWith(e),Zl=Xl("--"),Jl=Xl("var(--"),Ql=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ec=(e,t,n)=>Math.min(Math.max(n,e),t),tc={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},nc={...tc,transform:e=>ec(0,1,e)},rc={...tc,default:1},oc=e=>Math.round(1e5*e)/1e5,ic=/(-)?([\d]*\.?[\d])+/g,ac=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,sc=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function lc(e){return"string"==typeof e}const cc=e=>({test:t=>lc(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),uc=cc("deg"),dc=cc("%"),fc=cc("px"),mc=cc("vh"),pc=cc("vw"),hc={...dc,parse:e=>dc.parse(e)/100,transform:e=>dc.transform(100*e)},gc={...tc,transform:Math.round},vc={borderWidth:fc,borderTopWidth:fc,borderRightWidth:fc,borderBottomWidth:fc,borderLeftWidth:fc,borderRadius:fc,radius:fc,borderTopLeftRadius:fc,borderTopRightRadius:fc,borderBottomRightRadius:fc,borderBottomLeftRadius:fc,width:fc,maxWidth:fc,height:fc,maxHeight:fc,size:fc,top:fc,right:fc,bottom:fc,left:fc,padding:fc,paddingTop:fc,paddingRight:fc,paddingBottom:fc,paddingLeft:fc,margin:fc,marginTop:fc,marginRight:fc,marginBottom:fc,marginLeft:fc,rotate:uc,rotateX:uc,rotateY:uc,rotateZ:uc,scale:rc,scaleX:rc,scaleY:rc,scaleZ:rc,skew:uc,skewX:uc,skewY:uc,distance:fc,translateX:fc,translateY:fc,translateZ:fc,x:fc,y:fc,z:fc,perspective:fc,transformPerspective:fc,opacity:nc,originX:hc,originY:hc,originZ:fc,zIndex:gc,fillOpacity:nc,strokeOpacity:nc,numOctaves:gc};function bc(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(Zl(e)){i[e]=n;continue}const r=vc[e],d=Ql(n,r);if(Ul.has(e)){if(l=!0,a[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,s[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<Kl;t++){const n=Wl[t];void 0!==e[n]&&(i+=`${Yl[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;o.transformOrigin=`${e} ${t} ${n}`}}const yc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function xc(e,t,n){for(const r in t)ql(t[r])||Gl(r,n)||(e[r]=t[r])}function wc(e,t,n){const o={};return xc(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},t,n){return(0,r.useMemo)((()=>{const r=yc();return bc(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),e.transformValues?e.transformValues(o):o}function Ec(e,t,n){const r={},o=wc(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const _c=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Sc(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||_c.has(e)}let Cc=e=>!Sc(e);try{(kc=require("@emotion/is-prop-valid").default)&&(Cc=e=>e.startsWith("on")?!Sc(e):kc(e))}catch(W){}var kc;function Pc(e,t,n){return"string"==typeof e?e:fc.transform(t+n*e)}const Tc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ic={offset:"strokeDashoffset",array:"strokeDasharray"};function Rc(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d,f){if(bc(e,c,u,f),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:p,dimensions:h}=e;m.transform&&(h&&(p.transform=m.transform),delete m.transform),h&&(void 0!==o||void 0!==i||p.transform)&&(p.transformOrigin=function(e,t,n){return`${Pc(t,e.x,e.width)} ${Pc(n,e.y,e.height)}`}(h,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==r&&(m.scale=r),void 0!==a&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Tc:Ic;e[i.offset]=fc.transform(-r);const a=fc.transform(t),s=fc.transform(n);e[i.array]=`${a} ${s}`}(m,a,s,l,!1)}const Mc=()=>({...yc(),attrs:{}}),Nc=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Dc(e,t,n,o){const i=(0,r.useMemo)((()=>{const n=Mc();return Rc(n,t,{enableHardwareAcceleration:!1},Nc(o),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};xc(t,e.style,e),i.style={...t,...i.style}}return i}function Ac(e=!1){return(t,n,o,{latestValues:i},a)=>{const s=(Hl(t)?Dc:Ec)(n,i,a,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Cc(o)||!0===n&&Sc(o)||!t&&!Sc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c={...l,...s,ref:o},{children:u}=n,d=(0,r.useMemo)((()=>ql(u)?u.get():u),[u]);return(0,r.createElement)(t,{...c,children:d})}}const Oc=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function zc(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const Lc=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Fc(e,t,n,r){zc(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Lc.has(n)?n:Oc(n),t.attrs[n])}function Bc(e,t){const{style:n}=e,r={};for(const o in n)(ql(n[o])||t.style&&ql(t.style[o])||Gl(o,e))&&(r[o]=n[o]);return r}function jc(e,t){const n=Bc(e,t);for(const r in e)if(ql(e[r])||ql(t[r])){n[-1!==Wl.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function Vc(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}function Hc(e){const t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}const $c=e=>Array.isArray(e),Wc=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),Uc=e=>$c(e)?e[e.length-1]||0:e;function Gc(e){const t=ql(e)?e.get():e;return Wc(t)?t.toValue():t}const qc=e=>(t,n)=>{const o=(0,r.useContext)(yl),i=(0,r.useContext)(xl),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:Yc(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,o,i);return n?a():Hc(a)};function Yc(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Gc(i[e]);let{initial:a,animate:s}=e;const l=Il(e),c=Rl(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!kl(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=Vc(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}))}return o}const Kc=e=>e;class Xc{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const Zc=["prepare","read","update","preRender","render","postRender"];const{schedule:Jc,cancel:Qc,state:eu,steps:tu}=function(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=Zc.reduce(((e,t)=>(e[t]=function(e){let t=new Xc,n=new Xc,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:n;return i&&a.add(e),c.add(e)&&l&&o&&(r=t.order.length),e},cancel:e=>{n.remove(e),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let n=0;n<r;n++){const r=t.order[n];r(l),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>n=!0)),e)),{}),a=e=>i[e].process(o),s=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,Zc.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))};return{schedule:Zc.reduce(((t,a)=>{const l=i[a];return t[a]=(t,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(s)),l.schedule(t,i,a)),t}),{}),cancel:e=>Zc.forEach((t=>i[t].cancel(e))),state:o,steps:i}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Kc,!0),nu={useVisualState:qc({scrapeMotionValuesFromProps:jc,createRenderState:Mc,onMount:(e,t,{renderState:n,latestValues:r})=>{Jc.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),Jc.render((()=>{Rc(n,r,{enableHardwareAcceleration:!1},Nc(t.tagName),e.transformTemplate),Fc(t,n)}))}})},ru={useVisualState:qc({scrapeMotionValuesFromProps:Bc,createRenderState:yc})};function ou(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const iu=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function au(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const su=e=>t=>iu(t)&&e(t,au(t));function lu(e,t,n,r){return ou(e,t,su(n),r)}const cu=(e,t)=>n=>t(e(n)),uu=(...e)=>e.reduce(cu);function du(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const fu=du("dragHorizontal"),mu=du("dragVertical");function pu(e){let t=!1;if("y"===e)t=mu();else if("x"===e)t=fu();else{const e=fu(),n=mu();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function hu(){const e=pu(!0);return!e||(e(),!1)}class gu{constructor(e){this.isMounted=!1,this.node=e}update(){}}function vu(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return lu(e.current,n,((n,o)=>{if("touch"===n.type||hu())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&Jc.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const bu=(e,t)=>!!t&&(e===t||bu(e,t.parentElement));function yu(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,au(n))}const xu=new WeakMap,wu=new WeakMap,Eu=e=>{const t=xu.get(e.target);t&&t(e)},_u=e=>{e.forEach(Eu)};function Su(e,t,n){const r=function({root:e,...t}){const n=e||document;wu.has(n)||wu.set(n,{});const r=wu.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(_u,{root:e,...t})),r[o]}(t);return xu.set(e,n),r.observe(e),()=>{xu.delete(e),r.unobserve(e)}}const Cu={some:0,all:1};const ku={inView:{Feature:class extends gu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Cu[r]};return Su(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends gu{constructor(){super(...arguments),this.removeStartListeners=Kc,this.removeEndListeners=Kc,this.removeAccessibleListeners=Kc,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=lu(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();Jc.update((()=>{bu(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=lu(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=uu(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=ou(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=ou(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&yu("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&Jc.update((()=>n(e,t)))}))})),yu("down",((e,t)=>{this.startPress(e,t)}))})),t=ou(this.node.current,"blur",(()=>{this.isPressing&&yu("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=uu(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Jc.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!hu()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Jc.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=lu(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=ou(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=uu(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends gu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=uu(ou(this.node.current,"focus",(()=>this.onFocus())),ou(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends gu{mount(){this.unmount=uu(vu(this.node,!0),vu(this.node,!1))}unmount(){}}}};function Pu(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Tu(e,t,n){const r=e.getProps();return Vc(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.getVelocity())),t}(e))}const Iu="data-"+Oc("framerAppearId");let Ru=Kc,Mu=Kc;const Nu=e=>1e3*e,Du=e=>e/1e3,Au=!1,Ou=e=>Array.isArray(e)&&"number"==typeof e[0];function zu(e){return Boolean(!e||"string"==typeof e&&Fu[e]||Ou(e)||Array.isArray(e)&&e.every(zu))}const Lu=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Fu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Lu([0,.65,.55,1]),circOut:Lu([.55,0,1,.45]),backIn:Lu([.31,.01,.66,-.59]),backOut:Lu([.33,1.53,.69,.99])};function Bu(e){if(e)return Ou(e)?Lu(e):Array.isArray(e)?e.map(Bu):Fu[e]}const ju=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Vu=1e-7,Hu=12;function $u(e,t,n,r){if(e===t&&n===r)return Kc;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=ju(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>Vu&&++s<Hu);return a}(t,0,1,e,n);return e=>0===e||1===e?e:ju(o(e),t,r)}const Wu=$u(.42,0,1,1),Uu=$u(0,0,.58,1),Gu=$u(.42,0,.58,1),qu=e=>Array.isArray(e)&&"number"!=typeof e[0],Yu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ku=e=>t=>1-e(1-t),Xu=e=>1-Math.sin(Math.acos(e)),Zu=Ku(Xu),Ju=Yu(Zu),Qu=$u(.33,1.53,.69,.99),ed=Ku(Qu),td=Yu(ed),nd={linear:Kc,easeIn:Wu,easeInOut:Gu,easeOut:Uu,circIn:Xu,circInOut:Ju,circOut:Zu,backIn:ed,backInOut:td,backOut:Qu,anticipate:e=>(e*=2)<1?.5*ed(e):.5*(2-Math.pow(2,-10*(e-1)))},rd=e=>{if(Array.isArray(e)){Mu(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return $u(t,n,r,o)}return"string"==typeof e?(Mu(void 0!==nd[e],`Invalid easing type '${e}'`),nd[e]):e},od=(e,t)=>n=>Boolean(lc(n)&&sc.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),id=(e,t,n)=>r=>{if(!lc(r))return r;const[o,i,a,s]=r.match(ic);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},ad={...tc,transform:e=>Math.round((e=>ec(0,255,e))(e))},sd={test:od("rgb","red"),parse:id("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ad.transform(e)+", "+ad.transform(t)+", "+ad.transform(n)+", "+oc(nc.transform(r))+")"};const ld={test:od("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:sd.transform},cd={test:od("hsl","hue"),parse:id("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+dc.transform(oc(t))+", "+dc.transform(oc(n))+", "+oc(nc.transform(r))+")"},ud={test:e=>sd.test(e)||ld.test(e)||cd.test(e),parse:e=>sd.test(e)?sd.parse(e):cd.test(e)?cd.parse(e):ld.parse(e),transform:e=>lc(e)?e:e.hasOwnProperty("red")?sd.transform(e):cd.transform(e)},dd=(e,t,n)=>-n*e+n*t+e;function fd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const md=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},pd=[ld,sd,cd];function hd(e){const t=(e=>pd.find((t=>t.test(e))))(e);Mu(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===cd&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=fd(s,r,e+1/3),i=fd(s,r,e),a=fd(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(n)),n}const gd=(e,t)=>{const n=hd(e),r=hd(t),o={...n};return e=>(o.red=md(n.red,r.red,e),o.green=md(n.green,r.green,e),o.blue=md(n.blue,r.blue,e),o.alpha=dd(n.alpha,r.alpha,e),sd.transform(o))};const vd={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Kc},bd={regex:ac,countKey:"Colors",token:"${c}",parse:ud.parse},yd={regex:ic,countKey:"Numbers",token:"${n}",parse:tc.parse};function xd(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function wd(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&xd(n,vd),xd(n,bd),xd(n,yd),n}function Ed(e){return wd(e).values}function _d(e){const{values:t,numColors:n,numVars:r,tokenised:o}=wd(e),i=t.length;return e=>{let t=o;for(let o=0;o<i;o++)t=o<r?t.replace(vd.token,e[o]):o<r+n?t.replace(bd.token,ud.transform(e[o])):t.replace(yd.token,oc(e[o]));return t}}const Sd=e=>"number"==typeof e?0:e;const Cd={test:function(e){var t,n;return isNaN(e)&&lc(e)&&((null===(t=e.match(ic))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(ac))||void 0===n?void 0:n.length)||0)>0},parse:Ed,createTransformer:_d,getAnimatableNone:function(e){const t=Ed(e);return _d(e)(t.map(Sd))}},kd=(e,t)=>n=>`${n>0?t:e}`;function Pd(e,t){return"number"==typeof e?n=>dd(e,t,n):ud.test(e)?gd(e,t):e.startsWith("var(")?kd(e,t):Rd(e,t)}const Td=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>Pd(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},Id=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Pd(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Rd=(e,t)=>{const n=Cd.createTransformer(t),r=wd(e),o=wd(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?uu(Td(r.values,o.values),n):(Ru(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),kd(e,t))},Md=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Nd=(e,t)=>n=>dd(e,t,n);function Dd(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?Nd:"string"==typeof e?ud.test(e)?gd:Rd:Array.isArray(e)?Td:"object"==typeof e?Id:Nd}(e[0]),i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Kc:t;i=uu(e,i)}r.push(i)}return r}function Ad(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Mu(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Dd(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Md(e[n],e[n+1],t);return a[n](r)};return n?t=>l(ec(e[0],e[i-1],t)):l}function Od(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Md(0,t,r);e.push(dd(n,1,o))}}(t,e.length-1),t}function zd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=qu(r)?r.map(rd):rd(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:Od(t),e),s=Ad(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||Gu)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function Ld(e,t){return t?e*(1e3/t):0}const Fd=5;function Bd(e,t,n){const r=Math.max(t-Fd,0);return Ld(n-e(r),t-r)}const jd=.001,Vd=.01,Hd=10,$d=.05,Wd=1;function Ud({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Ru(e<=Nu(Hd),"Spring duration must be 10 seconds or less");let a=1-t;a=ec($d,Wd,a),e=ec(Vd,Hd,Du(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=qd(t,a),l=Math.exp(-o);return jd-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=qd(Math.pow(t,2),a);return(-o(t)+jd>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-jd,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<Gd;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Nu(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const Gd=12;function qd(e,t){return e*Math.sqrt(1-t*t)}const Yd=["duration","bounce"],Kd=["stiffness","damping","mass"];function Xd(e,t){return t.some((t=>void 0!==e[t]))}function Zd({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Xd(e,Kd)&&Xd(e,Yd)){const n=Ud(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),m=u?-Du(u):0,p=l/(2*Math.sqrt(s*c)),h=i-o,g=Du(Math.sqrt(s/c)),v=Math.abs(h)<5;let b;if(n||(n=v?.01:2),t||(t=v?.005:.5),p<1){const e=qd(g,p);b=t=>{const n=Math.exp(-p*g*t);return i-n*((m+p*g*h)/e*Math.sin(e*t)+h*Math.cos(e*t))}}else if(1===p)b=e=>i-Math.exp(-g*e)*(h+(m+g*h)*e);else{const e=g*Math.sqrt(p*p-1);b=t=>{const n=Math.exp(-p*g*t),r=Math.min(e*t,300);return i-n*((m+p*g*h)*Math.sinh(r)+e*h*Math.cosh(r))/e}}return{calculatedDuration:f&&d||null,next:e=>{const r=b(e);if(f)a.done=e>=d;else{let o=m;0!==e&&(o=p<1?Bd(b,e,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=t;a.done=s&&l}return a.value=a.done?i:r,a}}}function Jd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},m=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let p=n*t;const h=d+p,g=void 0===a?h:a(h);g!==h&&(p=g-d);const v=e=>-p*Math.exp(-e/r),b=e=>g+v(e),y=e=>{const t=v(e),n=b(e);f.done=Math.abs(t)<=c,f.value=f.done?g:n};let x,w;const E=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(f.value)&&(x=e,w=Zd({keyframes:[f.value,m(f.value)],velocity:Bd(b,e,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,y(e),E(e)),void 0!==x&&e>x?w.next(e-x):(!t&&y(e),f)}}}const Qd=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Jc.update(t,!0),stop:()=>Qc(t),now:()=>eu.isProcessing?eu.timestamp:performance.now()}},ef=2e4;function tf(e){let t=0;let n=e.next(t);for(;!n.done&&t<ef;)t+=50,n=e.next(t);return t>=ef?1/0:t}const nf={decay:Jd,inertia:Jd,tween:zd,keyframes:zd,spring:Zd};function rf({autoplay:e=!0,delay:t=0,driver:n=Qd,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...f}){let m,p,h=1,g=!1;const v=()=>{p=new Promise((e=>{m=e}))};let b;v();const y=nf[o]||zd;let x;y!==zd&&"number"!=typeof r[0]&&(x=Ad([0,100],r,{clamp:!1}),r=[0,100]);const w=y({...f,keyframes:r});let E;"mirror"===s&&(E=y({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let _="idle",S=null,C=null,k=null;null===w.calculatedDuration&&i&&(w.calculatedDuration=tf(w));const{calculatedDuration:P}=w;let T=1/0,I=1/0;null!==P&&(T=P+a,I=T*(i+1)-a);let R=0;const M=e=>{if(null===C)return;h>0&&(C=Math.min(C,e)),h<0&&(C=Math.min(e-I/h,C)),R=null!==S?S:Math.round(e-C)*h;const n=R-t*(h>=0?1:-1),o=h>=0?n<0:n>I;R=Math.max(n,0),"finished"===_&&null===S&&(R=I);let l=R,c=w;if(i){const e=R/T;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===s?(n=1-n,a&&(n-=a/T)):"mirror"===s&&(c=E));let o=ec(0,1,n);R>I&&(o="reverse"===s&&r?1:0),l=o*T}const u=o?{done:!1,value:r[0]}:c.next(l);x&&(u.value=x(u.value));let{done:f}=u;o||null===P||(f=h>=0?R>=I:R<=0);const m=null===S&&("finished"===_||"running"===_&&f);return d&&d(u.value),m&&A(),u},N=()=>{b&&b.stop(),b=void 0},D=()=>{_="idle",N(),m(),v(),C=k=null},A=()=>{_="finished",u&&u(),N(),m()},O=()=>{if(g)return;b||(b=n(M));const e=b.now();l&&l(),null!==S?C=e-S:C&&"finished"!==_||(C=e),"finished"===_&&v(),k=C,S=null,_="running",b.start()};e&&O();const z={then:(e,t)=>p.then(e,t),get time(){return Du(R)},set time(e){e=Nu(e),R=e,null===S&&b&&0!==h?C=b.now()-e/h:S=e},get duration(){const e=null===w.calculatedDuration?tf(w):w.calculatedDuration;return Du(e)},get speed(){return h},set speed(e){e!==h&&b&&(h=e,z.time=Du(R))},get state(){return _},play:O,pause:()=>{_="paused",S=R},stop:()=>{g=!0,"idle"!==_&&(_="idle",c&&c(),D())},cancel:()=>{null!==k&&M(k),D()},complete:()=>{_="finished"},sample:e=>(C=0,M(e))};return z}const of=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),af=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function sf(e,t,{onUpdate:n,onComplete:r,...o}){if(!(of()&&af.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1;const l=()=>{a=new Promise((e=>{i=e}))};l();let{keyframes:c,duration:u=300,ease:d,times:f}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!zu(t.ease))(t,o)){const e=rf({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;f=void 0,c=n,u=r-10,d="linear"}const m=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Bu(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d,times:f});o.syncStart&&(m.startTime=eu.isProcessing?eu.timestamp:document.timeline?document.timeline.currentTime:performance.now());const p=()=>m.cancel(),h=()=>{Jc.update(p),i(),l()};m.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),r&&r(),h()};return{then:(e,t)=>a.then(e,t),attachTimeline:e=>(m.timeline=e,m.onfinish=null,Kc),get time(){return Du(m.currentTime||0)},set time(e){m.currentTime=Nu(e)},get speed(){return m.playbackRate},set speed(e){m.playbackRate=e},get duration(){return Du(u)},play:()=>{s||(m.play(),Qc(p))},pause:()=>m.pause(),stop:()=>{if(s=!0,"idle"===m.playState)return;const{currentTime:t}=m;if(t){const n=rf({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}h()},complete:()=>m.finish(),cancel:h}}const lf={type:"spring",stiffness:500,damping:25,restSpeed:10},cf={type:"keyframes",duration:.8},uf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},df=(e,{keyframes:t})=>t.length>2?cf:Ul.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:lf:uf,ff=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Cd.test(t)&&"0"!==t||t.startsWith("url("))),mf=new Set(["brightness","contrast","saturate","opacity"]);function pf(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(ic)||[];if(!r)return e;const o=n.replace(r,"");let i=mf.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const hf=/([a-z-]*)\(.*?\)/g,gf={...Cd,getAnimatableNone:e=>{const t=e.match(hf);return t?t.map(pf).join(" "):e}},vf={...vc,color:ud,backgroundColor:ud,outlineColor:ud,fill:ud,stroke:ud,borderColor:ud,borderTopColor:ud,borderRightColor:ud,borderBottomColor:ud,borderLeftColor:ud,filter:gf,WebkitFilter:gf},bf=e=>vf[e];function yf(e,t){let n=bf(e);return n!==gf&&(n=Cd),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const xf=e=>/^0[^.\s]+$/.test(e);function wf(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||xf(e):void 0}function Ef(e,t){return e[t]||e.default||e}const _f=(e,t,n,r={})=>o=>{const i=Ef(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=Nu(a);const l=function(e,t,n,r){const o=ff(t,n);let i;i=Array.isArray(n)?[...n]:[null,n];const a=void 0!==r.from?r.from:e.get();let s;const l=[];for(let e=0;e<i.length;e++)null===i[e]&&(i[e]=0===e?a:i[e-1]),wf(i[e])&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(s=i[e]);if(o&&l.length&&s)for(let e=0;e<l.length;e++)i[l[e]]=yf(t,s);return i}(t,e,n,i),c=l[0],u=l[l.length-1],d=ff(e,c),f=ff(e,u);Ru(d===f,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(m={...m,...df(e,m)}),m.duration&&(m.duration=Nu(m.duration)),m.repeatDelay&&(m.repeatDelay=Nu(m.repeatDelay)),!d||!f||Au||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Kc,pause:Kc,stop:Kc,then:e=>(e(),Promise.resolve()),cancel:Kc,complete:Kc});return t?rf({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(Au?{...m,delay:0}:m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=sf(t,e,m);if(n)return n}return rf(m)};function Sf(e){return Boolean(ql(e)&&e.add)}const Cf=e=>/^\-?\d*\.?\d+$/.test(e);function kf(e,t){-1===e.indexOf(t)&&e.push(t)}function Pf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Tf{constructor(){this.subscriptions=[]}add(e){return kf(this.subscriptions,e),()=>Pf(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const If={current:void 0};class Rf{constructor(e,t={}){var n;this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=eu;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Jc.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Jc.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Tf);const n=this.events[e].add(t);return"change"===e?()=>{n(),Jc.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return If.current&&If.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Ld(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Mf(e,t){return new Rf(e,t)}const Nf=e=>t=>t.test(e),Df=[tc,fc,dc,uc,pc,mc,{test:e=>"auto"===e,parse:e=>e}],Af=e=>Df.find(Nf(e)),Of=[...Df,ud,Cd],zf=e=>Of.find(Nf(e));function Lf(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mf(n))}function Ff(e,t){const n=Tu(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i){Lf(e,t,Uc(i[t]))}}function Bf(e,t){if(!t)return;return(t[e]||t.default||t).from}function jf({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Vf(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const r=e.getValue(t),o=s[t];if(!r||void 0===o||u&&jf(u,t))continue;const a={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[Iu];n&&(a.elapsed=window.HandoffAppearAnimations(n,t,r,Jc),a.syncStart=!0)}r.start(_f(t,r,o,e.shouldReduceMotion&&Ul.has(t)?{type:!1}:a));const d=r.animation;Sf(l)&&(l.add(t),d.then((()=>l.remove(t)))),c.push(d)}return a&&Promise.all(c).then((()=>{a&&Ff(e,a)})),c}function Hf(e,t,n={}){const r=Tu(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Vf(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort($f).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(Hf(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(n.delay)])}function $f(e,t){return e.sortNodePosition(t)}const Wf=[...Pl].reverse(),Uf=Pl.length;function Gf(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>Hf(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=Hf(e,t,n);else{const o="function"==typeof t?Tu(e,t,n.custom):t;r=Promise.all(Vf(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function qf(e){let t=Gf(e);const n={animate:Kf(!0),whileInView:Kf(),whileHover:Kf(),whileTap:Kf(),whileDrag:Kf(),whileFocus:Kf(),exit:Kf()};let r=!0;const o=(t,n)=>{const r=Tu(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},f=1/0;for(let t=0;t<Uf;t++){const m=Wf[t],p=n[m],h=void 0!==s[m]?s[m]:l[m],g=Cl(h),v=m===a?p.isActive:null;!1===v&&(f=t);let b=h===l[m]&&h!==s[m]&&g;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),p.protectedKeys={...d},!p.isActive&&null===v||!h&&!p.prevProp||kl(h)||"boolean"==typeof h)continue;const y=Yf(p.prevProp,h);let x=y||m===a&&p.isActive&&!b&&g||t>f&&g;const w=Array.isArray(h)?h:[h];let E=w.reduce(o,{});!1===v&&(E={});const{prevResolvedValues:_={}}=p,S={..._,...E},C=e=>{x=!0,u.delete(e),p.needsAnimating[e]=!0};for(const e in S){const t=E[e],n=_[e];d.hasOwnProperty(e)||(t!==n?$c(t)&&$c(n)?!Pu(t,n)||y?C(e):p.protectedKeys[e]=!0:void 0!==t?C(e):u.add(e):void 0!==t&&u.has(e)?C(e):p.protectedKeys[e]=!0)}p.prevProp=h,p.prevResolvedValues=E,p.isActive&&(d={...d,...E}),r&&e.blockInitialAnimation&&(x=!1),x&&!b&&c.push(...w.map((e=>({animation:e,options:{type:m,...i}}))))}if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)})),c.push({animation:t})}let m=Boolean(c.length);return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function Yf(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Pu(t,e)}function Kf(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Xf=0;const Zf={animation:{Feature:class extends gu{constructor(e){super(e),e.animationState||(e.animationState=qf(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),kl(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends gu{constructor(){super(...arguments),this.id=Xf++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Jf=(e,t)=>Math.abs(e-t);class Qf{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=nm(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Jf(e.x,t.x),r=Jf(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=eu;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=em(t,this.transformPagePoint),Jc.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=nm("pointercancel"===e.type?this.lastMoveEventInfo:em(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!iu(e))return;this.handlers=t,this.transformPagePoint=n;const r=em(au(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=eu;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,nm(r,this.history)),this.removeListeners=uu(lu(window,"pointermove",this.handlePointerMove),lu(window,"pointerup",this.handlePointerUp),lu(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Qc(this.updatePoint)}}function em(e,t){return t?{point:t(e.point)}:e}function tm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nm({point:e},t){return{point:e,delta:tm(e,om(t)),offset:tm(e,rm(t)),velocity:im(t,.1)}}function rm(e){return e[0]}function om(e){return e[e.length-1]}function im(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=om(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Nu(t)));)n--;if(!r)return{x:0,y:0};const i=Du(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function am(e){return e.max-e.min}function sm(e,t=0,n=.01){return Math.abs(e-t)<=n}function lm(e,t,n,r=.5){e.origin=r,e.originPoint=dd(t.min,t.max,e.origin),e.scale=am(n)/am(t),(sm(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=dd(n.min,n.max,e.origin)-e.originPoint,(sm(e.translate)||isNaN(e.translate))&&(e.translate=0)}function cm(e,t,n,r){lm(e.x,t.x,n.x,r?r.originX:void 0),lm(e.y,t.y,n.y,r?r.originY:void 0)}function um(e,t,n){e.min=n.min+t.min,e.max=e.min+am(t)}function dm(e,t,n){e.min=t.min-n.min,e.max=e.min+am(t)}function fm(e,t,n){dm(e.x,t.x,n.x),dm(e.y,t.y,n.y)}function mm(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function pm(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const hm=.35;function gm(e,t,n){return{min:vm(e,t),max:vm(e,n)}}function vm(e,t){return"number"==typeof e?e:e[t]||0}const bm=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),ym=()=>({x:{min:0,max:0},y:{min:0,max:0}});function xm(e){return[e("x"),e("y")]}function wm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Em(e){return void 0===e||1===e}function _m({scale:e,scaleX:t,scaleY:n}){return!Em(e)||!Em(t)||!Em(n)}function Sm(e){return _m(e)||Cm(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Cm(e){return km(e.x)||km(e.y)}function km(e){return e&&"0%"!==e}function Pm(e,t,n){return n+t*(e-n)}function Tm(e,t,n,r,o){return void 0!==o&&(e=Pm(e,o,r)),Pm(e,n,r)+t}function Im(e,t=0,n=1,r,o){e.min=Tm(e.min,t,n,r,o),e.max=Tm(e.max,t,n,r,o)}function Rm(e,{x:t,y:n}){Im(e.x,t.translate,t.scale,t.originPoint),Im(e.y,n.translate,n.scale,n.originPoint)}function Mm(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Nm(e,t){e.min=e.min+t,e.max=e.max+t}function Dm(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=dd(e.min,e.max,i);Im(e,t[n],t[r],a,t.scale)}const Am=["x","scaleX","originX"],Om=["y","scaleY","originY"];function zm(e,t){Dm(e.x,t,Am),Dm(e.y,t,Om)}function Lm(e,t){return wm(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Fm=new WeakMap;class Bm{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ym(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new Qf(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(au(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=pu(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),xm((e=>{let t=this.getAxisMotionValue(e).get()||0;if(dc.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=am(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&Jc.update((()=>o(e,t)),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&Jc.update((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!jm(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?dd(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?dd(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&Sl(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:mm(e.x,n,o),y:mm(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=hm){return!1===e?e=0:!0===e&&(e=hm),{x:gm(e,"left","right"),y:gm(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&xm((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Sl(e))return!1;const n=e.current;Mu(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Lm(e,n),{scroll:o}=t;return o&&(Nm(r.x,o.offset.x),Nm(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:pm(e.x,t.x),y:pm(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=wm(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=xm((a=>{if(!jm(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(_f(e,n,0,t))}stopAnimation(){xm((e=>this.getAxisMotionValue(e).stop()))}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){xm((t=>{const{drag:n}=this.getProps();if(!jm(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-dd(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Sl(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};xm((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=am(e),o=am(t);return o>r?n=Md(t.min,t.max-r,e.min):r>o&&(n=Md(e.min,e.max-o,t.min)),ec(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),xm((t=>{if(!jm(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(dd(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;Fm.set(this.visualElement,this);const e=lu(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Sl(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=ou(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(xm((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=hm,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function jm(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Vm=e=>(t,n)=>{e&&Jc.update((()=>e(t,n)))};const Hm={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function $m(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Wm={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!fc.test(e))return e;e=parseFloat(e)}return`${$m(e,t.target.x)}% ${$m(e,t.target.y)}%`}},Um={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Cd.parse(e);if(o.length>5)return r;const i=Cd.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=dd(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}};class Gm extends r.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Ym,Object.assign($l,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Hm.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Jc.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function qm(e){const[t,n]=function(){const e=(0,r.useContext)(xl);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:o}=e,i=(0,r.useId)();return(0,r.useEffect)((()=>o(i)),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}(),o=(0,r.useContext)(Ol);return r.createElement(Gm,{...e,layoutGroup:o,switchLayoutGroup:(0,r.useContext)(zl),isPresent:t,safeToRemove:n})}const Ym={borderRadius:{...Wm,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Wm,borderTopRightRadius:Wm,borderBottomLeftRadius:Wm,borderBottomRightRadius:Wm,boxShadow:Um},Km=["TopLeft","TopRight","BottomLeft","BottomRight"],Xm=Km.length,Zm=e=>"string"==typeof e?parseFloat(e):e,Jm=e=>"number"==typeof e||fc.test(e);function Qm(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const ep=np(0,.5,Zu),tp=np(.5,.95,Kc);function np(e,t,n){return r=>r<e?0:r>t?1:n(Md(e,t,r))}function rp(e,t){e.min=t.min,e.max=t.max}function op(e,t){rp(e.x,t.x),rp(e.y,t.y)}function ip(e,t,n,r,o){return e=Pm(e-=t,1/n,r),void 0!==o&&(e=Pm(e,1/o,r)),e}function ap(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){dc.test(t)&&(t=parseFloat(t),t=dd(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=dd(i.min,i.max,r);e===i&&(s-=t),e.min=ip(e.min,t,n,s,o),e.max=ip(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const sp=["x","scaleX","originX"],lp=["y","scaleY","originY"];function cp(e,t,n,r){ap(e.x,t,sp,n?n.x:void 0,r?r.x:void 0),ap(e.y,t,lp,n?n.y:void 0,r?r.y:void 0)}function up(e){return 0===e.translate&&1===e.scale}function dp(e){return up(e.x)&&up(e.y)}function fp(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function mp(e){return am(e.x)/am(e.y)}class pp{constructor(){this.members=[]}add(e){kf(this.members,e),e.scheduleRender()}remove(e){if(Pf(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function hp(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const gp=(e,t)=>e.depth-t.depth;class vp{constructor(){this.children=[],this.isDirty=!1}add(e){kf(this.children,e),this.isDirty=!0}remove(e){Pf(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(gp),this.isDirty=!1,this.children.forEach(e)}}const bp=["","X","Y","Z"];let yp=0;const xp={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function wp({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=yp++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;xp.totalNodes=xp.resolvedTargetDeltas=xp.recalculatedProjection=0,this.nodes.forEach(Sp),this.nodes.forEach(Mp),this.nodes.forEach(Np),this.nodes.forEach(Cp),e=xp,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new vp)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Tf),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Qc(r),e(i-t))};return Jc.read(r,!0),()=>Qc(r)}(r,250),Hm.hasAnimatedSinceResize&&(Hm.hasAnimatedSinceResize=!1,this.nodes.forEach(Rp))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||Fp,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!fp(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Ef(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Rp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Qc(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Dp),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Pp);this.isUpdating||this.nodes.forEach(Tp),this.isUpdating=!1,this.nodes.forEach(Ip),this.nodes.forEach(Ep),this.nodes.forEach(_p),this.clearAllSnapshots();const e=performance.now();eu.delta=ec(0,1e3/60,e-eu.timestamp),eu.timestamp=e,eu.isProcessing=!0,tu.update.process(eu),tu.preRender.process(eu),tu.render.process(eu),eu.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(kp),this.sharedNodes.forEach(Ap)}scheduleUpdateProjection(){Jc.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Jc.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ym(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!dp(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||Sm(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Vp((r=n).x),Vp(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return ym();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(Nm(t.x,n.offset.x),Nm(t.y,n.offset.y)),t}removeElementScroll(e){const t=ym();op(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){op(t,e);const{scroll:n}=this.root;n&&(Nm(t.x,-n.offset.x),Nm(t.y,-n.offset.y))}Nm(t.x,o.offset.x),Nm(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=ym();op(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&zm(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Sm(r.latestValues)&&zm(n,r.latestValues)}return Sm(this.latestValues)&&zm(n,this.latestValues),n}removeTransform(e){const t=ym();op(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!Sm(n.latestValues))continue;_m(n.latestValues)&&n.updateSnapshot();const r=ym();op(r,n.measurePageBox()),cp(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Sm(this.latestValues)&&cp(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eu.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=eu.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ym(),this.relativeTargetOrigin=ym(),fm(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),op(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=ym(),this.targetWithTransforms=ym()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,um(a.x,s.x,l.x),um(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):op(this.target,this.layout.layoutBox),Rm(this.target,this.targetDelta)):op(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ym(),this.relativeTargetOrigin=ym(),fm(this.relativeTargetOrigin,this.target,e.target),op(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}xp.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!_m(this.parent.latestValues)&&!Cm(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===eu.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;op(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&zm(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Rm(e,a)),r&&Sm(i.latestValues)&&zm(e,i.latestValues))}t.x=Mm(t.x),t.y=Mm(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta=bm(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=bm(),this.projectionDeltaWithTransform=bm());const c=this.projectionTransform;cm(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=hp(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),xp.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=bm();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=ym(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(Lp));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;Op(i.x,e.x,n),Op(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fm(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){zp(e.x,t.x,n.x,r),zp(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&function(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=ym()),op(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=dd(0,void 0!==n.opacity?n.opacity:1,ep(r)),e.opacityExit=dd(void 0!==t.opacity?t.opacity:1,0,tp(r))):i&&(e.opacity=dd(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Xm;o++){const i=`border${Km[o]}Radius`;let a=Qm(t,i),s=Qm(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Jm(a)===Jm(s)?(e[i]=Math.max(dd(Zm(a),Zm(s),r),0),(dc.test(s)||dc.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=dd(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Qc(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Jc.update((()=>{Hm.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=ql(e)?e:Mf(e);return r.start(_f("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Hp(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||ym();const t=am(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=am(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}op(t,n),zm(t,o),cm(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new pp);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let t=0;t<bp.length;t++){const o="rotate"+bp[t];n[o]&&(r[o]=n[o],e.setStaticValue(o,0))}e.render();for(const t in r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Gc(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Gc(e.pointerEvents)||""),this.hasProjected&&!Sm(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=hp(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in $l){if(void 0===a[e])continue;const{correct:t,applyTo:n}=$l[e],o="none"===r.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?Gc(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Pp),this.root.sharedNodes.clear()}}}function Ep(e){e.updateLayout()}function _p(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?xm((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=am(r);r.min=t[e].min,r.max=r.min+o})):Hp(o,n.layoutBox,t)&&xm((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=am(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=bm();cm(a,t,n.layoutBox);const s=bm();i?cm(s,e.applyTransform(r,!0),n.measuredBox):cm(s,t,n.layoutBox);const l=!dp(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=ym();fm(a,n.layoutBox,o.layoutBox);const s=ym();fm(s,t,i.layoutBox),fp(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Sp(e){xp.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Cp(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function kp(e){e.clearSnapshot()}function Pp(e){e.clearMeasurements()}function Tp(e){e.isLayoutDirty=!1}function Ip(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Rp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Mp(e){e.resolveTargetDelta()}function Np(e){e.calcProjection()}function Dp(e){e.resetRotation()}function Ap(e){e.removeLeadSnapshot()}function Op(e,t,n){e.translate=dd(t.translate,0,n),e.scale=dd(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zp(e,t,n,r){e.min=dd(t.min,n.min,r),e.max=dd(t.max,n.max,r)}function Lp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Fp={duration:.45,ease:[.4,0,.1,1]},Bp=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),jp=Bp("applewebkit/")&&!Bp("chrome/")?Math.round:Kc;function Vp(e){e.min=jp(e.min),e.max=jp(e.max)}function Hp(e,t,n){return"position"===e||"preserve-aspect"===e&&!sm(mp(t),mp(n),.2)}const $p=wp({attachResizeListener:(e,t)=>ou(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Wp={current:void 0},Up=wp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Wp.current){const e=new $p({});e.mount(window),e.setOptions({layoutScroll:!0}),Wp.current=e}return Wp.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Gp={pan:{Feature:class extends gu{constructor(){super(...arguments),this.removePointerDownListener=Kc}onPointerDown(e){this.session=new Qf(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Vm(e),onStart:Vm(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Jc.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=lu(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends gu{constructor(e){super(e),this.removeGroupControls=Kc,this.removeListeners=Kc,this.controls=new Bm(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Kc}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Up,MeasureLayout:qm}},qp=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const Yp=4;function Kp(e,t,n=1){Mu(n<=Yp,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=qp.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return Cf(e)?parseFloat(e):e}return Jl(o)?Kp(o,t,n+1):o}const Xp=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Zp=e=>Xp.has(e),Jp=e=>e===tc||e===fc,Qp=(e,t)=>parseFloat(e.split(", ")[t]),eh=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Qp(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Qp(t[1],e):0}},th=new Set(["x","y","z"]),nh=Wl.filter((e=>!th.has(e)));const rh={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:eh(4,13),y:eh(5,14)};rh.translateX=rh.x,rh.translateY=rh.y;const oh=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Zp);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=Af(c);const d=t[o];let f;if($c(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=Af(c);for(let n=t;n<e&&null!==d[n];n++)f?Mu(Af(d[n])===f,"All keyframes must be of the same type"):(f=Af(d[n]),Mu(f===u||Jp(u)&&Jp(f),"Keyframes must be of the same dimension as the current value"))}else f=Af(d);if(u!==f)if(Jp(u)&&Jp(f)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&f===fc&&(t[o]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==f?void 0:f.transform)&&(0===c||0===d)?0===c?l.set(f.transform(c)):t[o]=u.transform(d):(a||(i=function(e){const t=[];return nh.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((e=>{s[e]=rh[e](r,i)})),t.render();const l=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);r&&r.jump(s[n]),e[n]=rh[n](l,i)})),e})(t,e,s);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),wl&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function ih(e,t,n,r){return(e=>Object.keys(e).some(Zp))(t)?oh(e,t,n,r):{target:t,transitionEnd:r}}const ah=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach((e=>{const t=e.get();if(!Jl(t))return;const n=Kp(t,r);n&&e.set(n)}));for(const e in t){const o=t[e];if(!Jl(o))continue;const i=Kp(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return ih(e,t=o.target,n,r=o.transitionEnd)},sh={current:null},lh={current:!1};function ch(){if(lh.current=!0,wl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sh.current=e.matches;e.addListener(t),t()}else sh.current=!1}const uh=new WeakMap,dh=Object.keys(Al),fh=dh.length,mh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ph=Tl.length;class hh{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Jc.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=Il(t),this.isVariantNode=Rl(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==a[e]&&ql(t)&&(t.set(a[e],!1),Sf(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,uh.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),lh.current||ch(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sh.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){uh.delete(this.current),this.projection&&this.projection.unmount(),Qc(this.notifyUpdate),Qc(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=Ul.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Jc.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o){let i,a;for(let e=0;e<fh;e++){const n=dh[e],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=Al[n];s&&(i=s),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(a=l))}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||a&&Sl(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ym()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<mh.length;t++){const n=mh[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(ql(i))e.addValue(o,i),Sf(r)&&r.add(o);else if(ql(a))e.addValue(o,Mf(i,{owner:e})),Sf(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,Mf(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<ph;e++){const n=Tl[e],r=this.props[n];(Cl(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Mf(t,{owner:this}),this.addValue(e,n)),n}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=Vc(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||ql(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Tf),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class gh extends hh{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=Bf(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter((t=>!e.hasValue(t))),a=i.length;if(a)for(let s=0;s<a;s++){const a=i[s],l=t[a];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==o?o:t[a]),null!=c&&("string"==typeof c&&(Cf(c)||xf(c))?c=parseFloat(c):!zf(c)&&Cd.test(l)&&(c=yf(a,l)),e.addValue(a,Mf(c,{owner:e})),void 0===n[a]&&(n[a]=c),null!==c&&e.setBaseTarget(a,c))}}(this,n,i);const e=ah(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class vh extends gh{readValueFromInstance(e,t){if(Ul.has(t)){const e=bf(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Zl(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Lm(e,t)}build(e,t,n,r){bc(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Bc(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ql(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){zc(e,t,n,r)}}class bh extends gh{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Ul.has(t)){const e=bf(t);return e&&e.default||0}return t=Lc.has(t)?t:Oc(t),e.getAttribute(t)}measureInstanceViewportBox(){return ym()}scrapeMotionValuesFromProps(e,t){return jc(e,t)}build(e,t,n,r){Rc(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Fc(e,t,0,r)}mount(e){this.isSVGTag=Nc(e.tagName),super.mount(e)}}const yh=(e,t)=>Hl(e)?new bh(t,{enableHardwareAcceleration:!1}):new vh(t,{enableHardwareAcceleration:!0}),xh={...Zf,...ku,...Gp,...{layout:{ProjectionNode:Up,MeasureLayout:qm}}},wh=jl(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Hl(e)?nu:ru,preloadedFeatures:n,useRender:Ac(t),createVisualElement:r,Component:e}}(e,t,xh,yh)));function Eh(){const e=(0,r.useRef)(!1);return El((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function _h(){const e=Eh(),[t,n]=(0,r.useState)(0),o=(0,r.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,r.useCallback)((()=>Jc.postRender(o)),[o]),t]}class Sh extends r.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Ch({children:e,isPresent:t}){const n=(0,r.useId)(),o=(0,r.useRef)(null),i=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)((()=>{const{width:e,height:r,top:a,left:s}=i.current;if(t||!o.current||!e||!r)return;o.current.dataset.motionPopId=n;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${r}px !important;\n top: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(l)}}),[t]),r.createElement(Sh,{isPresent:t,childRef:o,sizeRef:i},r.cloneElement(e,{ref:o}))}const kh=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:i,presenceAffectsLayout:a,mode:s})=>{const l=Hc(Ph),c=(0,r.useId)(),u=(0,r.useMemo)((()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:e=>{l.set(e,!0);for(const e of l.values())if(!e)return;o&&o()},register:e=>(l.set(e,!1),()=>l.delete(e))})),a?void 0:[n]);return(0,r.useMemo)((()=>{l.forEach(((e,t)=>l.set(t,!1)))}),[n]),r.useEffect((()=>{!n&&!l.size&&o&&o()}),[n]),"popLayout"===s&&(e=r.createElement(Ch,{isPresent:n},e)),r.createElement(xl.Provider,{value:u},e)};function Ph(){return new Map}const Th=e=>e.key||"";const Ih=({children:e,custom:t,initial:n=!0,onExitComplete:o,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:s="sync"})=>{Mu(!i,"Replace exitBeforeEnter with mode='wait'");const l=(0,r.useContext)(Ol).forceRender||_h()[0],c=Eh(),u=function(e){const t=[];return r.Children.forEach(e,(e=>{(0,r.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const f=(0,r.useRef)(new Map).current,m=(0,r.useRef)(d),p=(0,r.useRef)(new Map).current,h=(0,r.useRef)(!0);var g;if(El((()=>{h.current=!1,function(e,t){e.forEach((e=>{const n=Th(e);t.set(n,e)}))}(u,p),m.current=d})),g=()=>{h.current=!0,p.clear(),f.clear()},(0,r.useEffect)((()=>()=>g()),[]),h.current)return r.createElement(r.Fragment,null,d.map((e=>r.createElement(kh,{key:Th(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:a,mode:s},e))));d=[...d];const v=m.current.map(Th),b=u.map(Th),y=v.length;for(let e=0;e<y;e++){const t=v[e];-1!==b.indexOf(t)||f.has(t)||f.set(t,void 0)}return"wait"===s&&f.size&&(d=[]),f.forEach(((e,n)=>{if(-1!==b.indexOf(n))return;const i=p.get(n);if(!i)return;const h=v.indexOf(n);let g=e;if(!g){const e=()=>{p.delete(n),f.delete(n);const e=m.current.findIndex((e=>e.key===n));if(m.current.splice(e,1),!f.size){if(m.current=u,!1===c.current)return;l(),o&&o()}};g=r.createElement(kh,{key:Th(i),isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:a,mode:s},i),f.set(n,g)}d.splice(h,0,g)})),d=d.map((e=>{const t=e.key;return f.has(t)?e:r.createElement(kh,{key:Th(e),isPresent:!0,presenceAffectsLayout:a,mode:s},e)})),r.createElement(r.Fragment,null,f.size?d:d.map((e=>(0,r.cloneElement)(e))))},Rh=["40em","52em","64em"],Mh=(e={})=>{const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>Rh.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${Rh.length} breakpoints, got index ${t}`);const[n,r]=(0,Uo.useState)(t);return(0,Uo.useEffect)((()=>{const e=()=>{const e=Rh.filter((e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches)).length;n!==e&&r(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[n]),n};function Nh(e,t={}){const n=Mh(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}const Dh="4px";function Ah(e){if(void 0===e)return;if(!e)return"0";const t="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&window.CSS?.supports?.("margin",e.toString())||Number.isNaN(t)?e.toString():`calc(${Dh} * ${e})`}const Oh={name:"zjik7",styles:"display:flex"},zh={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},Lh={name:"82a6rk",styles:"flex:1"},Fh={name:"13nosa1",styles:">*{min-height:0;}"},Bh={name:"1pwxzk4",styles:">*{min-width:0;}"};function jh(e){const{align:t,className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:a="space-between",wrap:s=!1,...l}=rs(function(e){const{isReversed:t,...n}=e;return void 0!==t?(qo()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),c=Nh(Array.isArray(r)?r:[r]),u="string"==typeof c&&!!c.includes("column"),d=ns();return{...l,className:(0,Uo.useMemo)((()=>{const e=Ps({alignItems:null!=t?t:u?"normal":"center",flexDirection:c,flexWrap:s?"wrap":void 0,gap:Ah(i),justifyContent:a,height:u&&o?"100%":void 0,width:!u&&o?"100%":void 0},"","");return d(Oh,e,u?Fh:Bh,n)}),[t,n,d,c,o,i,u,a,s]),isColumn:u}}const Vh=(0,Uo.createContext)({flexItemDisplay:void 0}),Hh=()=>(0,Uo.useContext)(Vh);const $h=os((function(e,t){const{children:n,isColumn:o,...i}=jh(e);return(0,r.createElement)(Vh.Provider,{value:{flexItemDisplay:o?"block":void 0}},(0,r.createElement)(xs,{...i,ref:t},n))}),"Flex");function Wh(e){const{className:t,display:n,isBlock:r=!1,...o}=rs(e,"FlexItem"),i={},a=Hh().flexItemDisplay;i.Base=Ps({display:n||a},"","");return{...o,className:ns()(zh,i.Base,r&&Lh,t)}}const Uh=os((function(e,t){const n=function(e){return Wh({isBlock:!0,...rs(e,"FlexBlock")})}(e);return(0,r.createElement)(xs,{...n,ref:t})}),"FlexBlock"),Gh=new RegExp(/-left/g),qh=new RegExp(/-right/g),Yh=new RegExp(/Left/g),Kh=new RegExp(/Right/g);function Xh(e){return"left"===e?"right":"right"===e?"left":Gh.test(e)?e.replace(Gh,"-right"):qh.test(e)?e.replace(qh,"-left"):Yh.test(e)?e.replace(Yh,"Right"):Kh.test(e)?e.replace(Kh,"Left"):e}const Zh=(e={})=>Object.fromEntries(Object.entries(e).map((([e,t])=>[Xh(e),t])));function Jh(e={},t){return()=>t?(0,u.isRTL)()?Ps(t,""):Ps(e,""):(0,u.isRTL)()?Ps(Zh(e),""):Ps(e,"")}Jh.watch=()=>(0,u.isRTL)();const Qh=e=>null!=e;const eg=os((function(e,t){const n=function(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:o,marginRight:i,marginTop:a,marginX:s,marginY:l,padding:c,paddingBottom:u,paddingLeft:d,paddingRight:f,paddingTop:m,paddingX:p,paddingY:h,...g}=rs(e,"Spacer");return{...g,className:ns()(Qh(n)&&Ps("margin:",Ah(n),";",""),Qh(l)&&Ps("margin-bottom:",Ah(l),";margin-top:",Ah(l),";",""),Qh(s)&&Ps("margin-left:",Ah(s),";margin-right:",Ah(s),";",""),Qh(a)&&Ps("margin-top:",Ah(a),";",""),Qh(r)&&Ps("margin-bottom:",Ah(r),";",""),Qh(o)&&Jh({marginLeft:Ah(o)})(),Qh(i)&&Jh({marginRight:Ah(i)})(),Qh(c)&&Ps("padding:",Ah(c),";",""),Qh(h)&&Ps("padding-bottom:",Ah(h),";padding-top:",Ah(h),";",""),Qh(p)&&Ps("padding-left:",Ah(p),";padding-right:",Ah(p),";",""),Qh(m)&&Ps("padding-top:",Ah(m),";",""),Qh(u)&&Ps("padding-bottom:",Ah(u),";",""),Qh(d)&&Jh({paddingLeft:Ah(d)})(),Qh(f)&&Jh({paddingRight:Ah(f)})(),t)}}(e);return(0,r.createElement)(xs,{...n,ref:t})}),"Spacer"),tg=eg,ng=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})),rg=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M7 11.5h10V13H7z"}));const og=os((function(e,t){const n=Wh(e);return(0,r.createElement)(xs,{...n,ref:t})}),"FlexItem");const ig={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};function ag(e){return null!=e}const sg=e=>"string"==typeof e?(e=>parseFloat(e))(e):e,lg="…",cg={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},ug={ellipsis:lg,ellipsizeMode:cg.auto,limit:0,numberOfLines:0};function dg(e="",t){const n={...ug,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===cg.none)return e;let a,s;switch(o){case cg.head:a=0,s=i;break;case cg.middle:a=Math.floor(i/2),s=Math.floor(i/2);break;default:a=i,s=0}const l=o!==cg.auto?function(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,a=~~n,s=ag(r)?r:lg;return 0===i&&0===a||i>=o||a>=o||i+a>=o?e:0===a?e.slice(0,i)+s:e.slice(0,i)+s+e.slice(o-a)}(e,a,s,r):e;return l}function fg(e){const{className:t,children:n,ellipsis:r=lg,ellipsizeMode:o=cg.auto,limit:i=0,numberOfLines:a=0,...s}=rs(e,"Truncate"),l=ns();let c;"string"==typeof n?c=n:"number"==typeof n&&(c=n.toString());const u=c?dg(c,{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:a}):n,d=!!c&&o===cg.auto;return{...s,className:(0,Uo.useMemo)((()=>l(d&&!a&&ig,d&&!!a&&Ps("-webkit-box-orient:vertical;-webkit-line-clamp:",a,";display:-webkit-box;overflow:hidden;",""),t)),[t,l,a,d]),children:u}}var mg={grad:.9,turn:360,rad:360/(2*Math.PI)},pg=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},hg=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},gg=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},vg=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},bg=function(e){return{r:gg(e.r,0,255),g:gg(e.g,0,255),b:gg(e.b,0,255),a:gg(e.a)}},yg=function(e){return{r:hg(e.r),g:hg(e.g),b:hg(e.b),a:hg(e.a,3)}},xg=/^#([0-9a-f]{3,8})$/i,wg=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Eg=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:i?a/i*100:0,v:i/255*100,a:o}},_g=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,s,a,a,l,r][c],g:255*[l,r,r,s,a,a][c],b:255*[a,a,l,r,r,s][c],a:o}},Sg=function(e){return{h:vg(e.h),s:gg(e.s,0,100),l:gg(e.l,0,100),a:gg(e.a)}},Cg=function(e){return{h:hg(e.h),s:hg(e.s),l:hg(e.l),a:hg(e.a,3)}},kg=function(e){return _g((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},Pg=function(e){return{h:(t=Eg(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},Tg=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ig=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Rg=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Mg=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ng={string:[[function(e){var t=xg.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?hg(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?hg(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Rg.exec(e)||Mg.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:bg({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Tg.exec(e)||Ig.exec(e);if(!t)return null;var n,r,o=Sg({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(mg[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return kg(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return pg(t)&&pg(n)&&pg(r)?bg({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!pg(t)||!pg(n)||!pg(r))return null;var a=Sg({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return kg(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!pg(t)||!pg(n)||!pg(r))return null;var a=function(e){return{h:vg(e.h),s:gg(e.s,0,100),v:gg(e.v,0,100),a:gg(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return _g(a)},"hsv"]]},Dg=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},Ag=function(e){return"string"==typeof e?Dg(e.trim(),Ng.string):"object"==typeof e&&null!==e?Dg(e,Ng.object):[null,void 0]},Og=function(e,t){var n=Pg(e);return{h:n.h,s:gg(n.s+100*t,0,100),l:n.l,a:n.a}},zg=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Lg=function(e,t){var n=Pg(e);return{h:n.h,s:n.s,l:gg(n.l+100*t,0,100),a:n.a}},Fg=function(){function e(e){this.parsed=Ag(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return hg(zg(this.rgba),2)},e.prototype.isDark=function(){return zg(this.rgba)<.5},e.prototype.isLight=function(){return zg(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=yg(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?wg(hg(255*o)):"","#"+wg(t)+wg(n)+wg(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return yg(this.rgba)},e.prototype.toRgbString=function(){return t=(e=yg(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return Cg(Pg(this.rgba))},e.prototype.toHslString=function(){return t=(e=Cg(Pg(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=Eg(this.rgba),{h:hg(e.h),s:hg(e.s),v:hg(e.v),a:hg(e.a,3)};var e},e.prototype.invert=function(){return Bg({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Bg(Og(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Bg(Og(this.rgba,-e))},e.prototype.grayscale=function(){return Bg(Og(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Bg(Lg(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Bg(Lg(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Bg({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):hg(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Pg(this.rgba);return"number"==typeof e?Bg({h:e,s:t.s,l:t.l,a:t.a}):hg(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Bg(e).toHex()},e}(),Bg=function(e){return e instanceof Fg?e:new Fg(e)},jg=[],Vg=function(e){e.forEach((function(e){jg.indexOf(e)<0&&(e(Fg,Ng),jg.push(e))}))};function Hg(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,a,s=r[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!i.length)for(var d in n)i[d]=new e(n[d]).toRgb();for(var f in n){var m=(o=l,a=i[f],Math.pow(o.r-a.r,2)+Math.pow(o.g-a.g,2)+Math.pow(o.b-a.b,2));m<c&&(c=m,u=f)}return u}},t.string.push([function(t){var r=t.toLowerCase(),o="transparent"===r?"#0000":n[r];return o?new e(o).toRgb():null},"name"])}let $g;Vg([Hg]);const Wg=Si((function(e){if("string"!=typeof e)return"";if("string"==typeof(t=e)&&Bg(t).isValid())return e;var t;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!$g){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),$g=e}return $g}}();if(!n)return"";n.style.background=e;const r=window?.getComputedStyle(n).background;return n.style.background="",r||""}));function Ug(e){const t=function(e){const t=Wg(e);return Bg(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}const Gg="36px",qg="12px",Yg={controlSurfaceColor:Ds.white,controlTextActiveColor:Ds.theme.accent,controlPaddingX:qg,controlPaddingXLarge:`calc(${qg} * 1.3334)`,controlPaddingXSmall:`calc(${qg} / 1.3334)`,controlBackgroundColor:Ds.white,controlBorderRadius:"2px",controlBoxShadow:"transparent",controlBoxShadowFocus:`0 0 0 0.5px ${Ds.theme.accent}`,controlDestructiveBorderColor:Ds.alert.red,controlHeight:Gg,controlHeightXSmall:`calc( ${Gg} * 0.6 )`,controlHeightSmall:`calc( ${Gg} * 0.8 )`,controlHeightLarge:`calc( ${Gg} * 1.2 )`,controlHeightXLarge:`calc( ${Gg} * 1.4 )`},Kg={toggleGroupControlBackgroundColor:Yg.controlBackgroundColor,toggleGroupControlBorderColor:Ds.ui.border,toggleGroupControlBackdropBackgroundColor:Yg.controlSurfaceColor,toggleGroupControlBackdropBorderColor:Ds.ui.border,toggleGroupControlButtonColorActive:Yg.controlBackgroundColor},Xg=Object.assign({},Yg,Kg,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.2",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:`${Ah(2)}`,cardPaddingSmall:`${Ah(4)}`,cardPaddingMedium:`${Ah(4)} ${Ah(6)}`,cardPaddingLarge:`${Ah(6)} ${Ah(8)}`,popoverShadow:"0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1)",surfaceBackgroundColor:Ds.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:Ds.white,surfaceColor:Ds.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"});const Zg=Ps("color:",Ds.gray[900],";line-height:",Xg.fontLineHeightBase,";margin:0;",""),Jg={name:"4zleql",styles:"display:block"},Qg=Ps("color:",Ds.alert.green,";",""),ev=Ps("color:",Ds.alert.red,";",""),tv=Ps("color:",Ds.gray[700],";",""),nv=Ps("mark{background:",Ds.alert.yellow,";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),rv={name:"50zrmy",styles:"text-transform:uppercase"};var ov=o(9664);const iv=Si((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t}));const av=13,sv={body:av,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},lv=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function cv(e=av){if(e in sv)return cv(sv[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc(${`(${e} / ${av})`} * ${Xg.fontSize})`}function uv(e=3){if(!lv.includes(e))return cv(e);return Xg[`fontSizeH${e}`]}var dv={name:"50zrmy",styles:"text-transform:uppercase"};function fv(t){const{adjustLineHeightForInnerControls:n,align:r,children:o,className:i,color:a,ellipsizeMode:s,isDestructive:l=!1,display:c,highlightEscape:u=!1,highlightCaseSensitive:d=!1,highlightWords:f,highlightSanitize:m,isBlock:p=!1,letterSpacing:h,lineHeight:g,optimizeReadabilityFor:v,size:b,truncate:y=!1,upperCase:x=!1,variant:w,weight:E=Xg.fontWeight,..._}=rs(t,"Text");let S=o;const C=Array.isArray(f),k="caption"===b;if(C){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");S=function({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:r,caseSensitive:o=!1,children:i,findChunks:a,highlightClassName:s="",highlightStyle:l={},highlightTag:c="mark",sanitize:u,searchWords:d=[],unhighlightClassName:f="",unhighlightStyle:m}){if(!i)return null;if("string"!=typeof i)return i;const p=i,h=(0,ov.findAll)({autoEscape:r,caseSensitive:o,findChunks:a,sanitize:u,searchWords:d,textToHighlight:p}),g=c;let v,b=-1,y="";const x=h.map(((r,i)=>{const a=p.substr(r.start,r.end-r.start);if(r.highlight){let r;b++,r="object"==typeof s?o?s[a]:(s=iv(s))[a.toLowerCase()]:s;const c=b===+t;y=`${r} ${c?e:""}`,v=!0===c&&null!==n?Object.assign({},l,n):l;const u={children:a,className:y,key:i,style:v};return"string"!=typeof g&&(u.highlightIndex=b),(0,Uo.createElement)(g,u)}return(0,Uo.createElement)("span",{children:a,className:f,key:i,style:m})}));return x}({autoEscape:u,children:o,caseSensitive:d,searchWords:f,sanitize:m})}const P=ns();let T;!0===y&&(T="auto"),!1===y&&(T="none");const I=fg({..._,className:(0,Uo.useMemo)((()=>{const t={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${Xg.controlHeight} + ${Ah(2)})`;switch(e){case"large":n=`calc(${Xg.controlHeightLarge} + ${Ah(2)})`;break;case"small":n=`calc(${Xg.controlHeightSmall} + ${Ah(2)})`;break;case"xSmall":n=`calc(${Xg.controlHeightXSmall} + ${Ah(2)})`}return n}(n,g);if(t.Base=Ps({color:a,display:c,fontSize:cv(b),fontWeight:E,lineHeight:o,letterSpacing:h,textAlign:r},"",""),t.upperCase=dv,t.optimalTextColor=null,v){const e="dark"===Ug(v);t.optimalTextColor=Ps(e?{color:Ds.gray[900]}:{color:Ds.white},"","")}return P(Zg,t.Base,t.optimalTextColor,l&&ev,!!C&&nv,p&&Jg,k&&tv,w&&e[w],x&&t.upperCase,i)}),[n,r,i,a,P,c,p,k,l,C,h,g,v,b,x,w,E]),children:o,ellipsizeMode:s||T});return!y&&Array.isArray(o)&&(S=Uo.Children.map(o,(e=>{if("object"!=typeof e||null===e||!("props"in e))return e;return ls(e,["Link"])?(0,Uo.cloneElement)(e,{size:e.props.size||"inherit"}):e}))),{...I,children:y?I.children:S}}const mv=os((function(e,t){const n=fv(e);return(0,r.createElement)(xs,{as:"span",...n,ref:t})}),"Text");const pv={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"};var hv={name:"1739oy8",styles:"z-index:1"};const gv=({isFocused:e})=>e?hv:"",vv=bs($h,{target:"em5sgkm7"})("box-sizing:border-box;position:relative;border-radius:2px;padding-top:0;",gv,";");var bv={name:"1d3w5wq",styles:"width:100%"};const yv=bs("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(({disabled:e})=>Ps({backgroundColor:e?Ds.ui.backgroundDisabled:Ds.ui.background},"",""))," ",(({__unstableInputWidth:e,labelPosition:t})=>e?"side"===t?"":Ps("edge"===t?{flex:`0 0 ${e}`}:{width:e},"",""):bv),";"),xv=({inputSize:e})=>{const t={default:"13px",small:"11px",compact:"13px","__unstable-large":"13px"},n=t[e]||t.default;return n?Ps("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""},wv=({inputSize:e,__next40pxDefaultSize:t})=>{const n={default:{height:40,lineHeight:1,minHeight:40,paddingLeft:Ah(4),paddingRight:Ah(4)},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:Ah(2),paddingRight:Ah(2)},compact:{height:32,lineHeight:1,minHeight:32,paddingLeft:Ah(2),paddingRight:Ah(2)},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:Ah(4),paddingRight:Ah(4)}};return t||(n.default=n.compact),n[e]||n.default},Ev=bs("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Ds.theme.foreground,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(({isDragging:e,dragCursor:t})=>{let n,r;return e&&(n=Ps("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(r=Ps("&:active{cursor:",t,";}","")),Ps(n," ",r,";","")})," ",(({disabled:e})=>e?Ps({color:Ds.ui.textDisabled},"",""):"")," ",xv," ",(e=>Ps(wv(e),"",""))," ",(({paddingInlineStart:e,paddingInlineEnd:t})=>Ps({paddingInlineStart:e,paddingInlineEnd:t},"",""))," &::-webkit-input-placeholder{line-height:normal;}}"),_v=bs(mv,{target:"em5sgkm4"})("&&&{",pv,";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),Sv=e=>(0,r.createElement)(_v,{...e,as:"label"}),Cv=bs(og,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),kv=bs("div",{target:"em5sgkm2"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(({disabled:e,isBorderless:t,isFocused:n})=>{let r,o,i,a=t?"transparent":Ds.ui.border;return n&&(a=Ds.ui.borderFocus,r=Xg.controlBoxShadowFocus,o="2px solid transparent",i="-2px"),e&&(a=t?"transparent":Ds.ui.borderDisabled),Ps({boxShadow:r,borderColor:a,borderStyle:"solid",borderWidth:1,outline:o,outlineOffset:i},"","")})," ",Jh({paddingLeft:2}),";}"),Pv=bs("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),Tv=bs("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"});const Iv=(0,Uo.memo)((function({disabled:e=!1,isBorderless:t=!1,isFocused:n=!1}){return(0,r.createElement)(kv,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isBorderless:t,isFocused:n})})),Rv=Iv;function Mv({children:e,hideLabelFromVision:t,htmlFor:n,...o}){return e?t?(0,r.createElement)(ws,{as:"label",htmlFor:n},e):(0,r.createElement)(Cv,null,(0,r.createElement)(Sv,{htmlFor:n,...o},e)):null}function Nv(e){const{__next36pxDefaultSize:t,__next40pxDefaultSize:n,...r}=e;return{...r,__next40pxDefaultSize:null!=n?n:t}}function Dv(e){const t={};switch(e){case"top":t.direction="column",t.expanded=!1,t.gap=0;break;case"bottom":t.direction="column-reverse",t.expanded=!1,t.gap=0;break;case"edge":t.justify="space-between"}return t}function Av(e,t){const{__next40pxDefaultSize:n,__unstableInputWidth:o,children:i,className:a,disabled:s=!1,hideLabelFromVision:l=!1,labelPosition:c,id:u,isBorderless:f=!1,isFocused:m=!1,label:p,prefix:h,size:g="default",suffix:v,...b}=Nv(rs(e,"InputBase")),y=function(e){const t=(0,d.useInstanceId)(Av);return e||`input-base-control-${t}`}(u),x=l||!p,{paddingLeft:w,paddingRight:E}=wv({inputSize:g,__next40pxDefaultSize:n}),_=(0,Uo.useMemo)((()=>({InputControlPrefixWrapper:{paddingLeft:w},InputControlSuffixWrapper:{paddingRight:E}})),[w,E]);return(0,r.createElement)(vv,{...b,...Dv(c),className:a,gap:2,isFocused:m,labelPosition:c,ref:t},(0,r.createElement)(Mv,{className:"components-input-control__label",hideLabelFromVision:l,labelPosition:c,htmlFor:y},p),(0,r.createElement)(yv,{__unstableInputWidth:o,className:"components-input-control__container",disabled:s,hideLabel:x,labelPosition:c},(0,r.createElement)(mi,{value:_},h&&(0,r.createElement)(Pv,{className:"components-input-control__prefix"},h),i,v&&(0,r.createElement)(Tv,{className:"components-input-control__suffix"},v)),(0,r.createElement)(Rv,{disabled:s,isBorderless:f,isFocused:m})))}const Ov=os(Av,"InputBase");const zv={toVector:(e,t)=>(void 0===e&&(e=t),Array.isArray(e)?e:[e,e]),add:(e,t)=>[e[0]+t[0],e[1]+t[1]],sub:(e,t)=>[e[0]-t[0],e[1]-t[1]],addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Lv(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function Fv(e,t,n,r=.15){return 0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-Lv(t-e,n-t,r)+t:e>n?+Lv(e-n,n-t,r)+n:e}function Bv(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function jv(e,t,n){return(t=Bv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vv(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 Hv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vv(Object(n),!0).forEach((function(t){jv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $v={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function Wv(e){return e?e[0].toUpperCase()+e.slice(1):""}const Uv=["enter","leave"];function Gv(e,t="",n=!1){const r=$v[e],o=r&&r[t]||t;return"on"+Wv(e)+Wv(o)+(function(e=!1,t){return e&&!Uv.includes(t)}(n,o)?"Capture":"")}const qv=["gotpointercapture","lostpointercapture"];function Yv(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=qv.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(r);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:n}}function Kv(e){return"touches"in e}function Xv(e){return Kv(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function Zv(e){return Kv(e)?function(e){return"touchend"===e.type||"touchcancel"===e.type?e.changedTouches:e.targetTouches}(e)[0]:e}function Jv(e){return function(e){return Array.from(e.touches).filter((t=>{var n,r;return t.target===e.currentTarget||(null===(n=e.currentTarget)||void 0===n||null===(r=n.contains)||void 0===r?void 0:r.call(n,t.target))}))}(e).map((e=>e.identifier))}function Qv(e){const t=Zv(e);return Kv(e)?t.identifier:t.pointerId}function eb(e){const t=Zv(e);return[t.clientX,t.clientY]}function tb(e,...t){return"function"==typeof e?e(...t):e}function nb(){}function rb(...e){return 0===e.length?nb:1===e.length?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function ob(e,t){return Object.assign({},t,e||{})}class ib{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:n,args:r}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?tb(n.from,t):t.offset,t.offset=t.lastOffset),t.startTime=t.timeStamp=e.timeStamp}computeValues(e){const t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:t,config:n,shared:r}=this;t.args=this.args;let o=0;if(e&&(t.event=e,n.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,function(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}(e)),r.down=r.pressed=r.buttons%2==1||r.touches>0,o=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const e=t._delta.map(Math.abs);zv.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);const[i,a]=t._movement,[s,l]=n.threshold,{_step:c,values:u}=t;if(n.hasCustomTransform?(!1===c[0]&&(c[0]=Math.abs(i)>=s&&u[0]),!1===c[1]&&(c[1]=Math.abs(a)>=l&&u[1])):(!1===c[0]&&(c[0]=Math.abs(i)>=s&&Math.sign(i)*s),!1===c[1]&&(c[1]=Math.abs(a)>=l&&Math.sign(a)*l)),t.intentional=!1!==c[0]||!1!==c[1],!t.intentional)return;const d=[0,0];if(n.hasCustomTransform){const[e,t]=u;d[0]=!1!==c[0]?e-c[0]:0,d[1]=!1!==c[1]?t-c[1]:0}else d[0]=!1!==c[0]?i-c[0]:0,d[1]=!1!==c[1]?a-c[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(d);const f=t.offset,m=t._active&&!t._blocked||t.active;m&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e&&(t.first&&("bounds"in n&&(t._bounds=tb(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[p,h]=t.offset,[[g,v],[b,y]]=t._bounds;t.overflow=[p<g?-1:p>v?1:0,h<b?-1:h>y?1:0],t._movementBound[0]=!!t.overflow[0]&&(!1===t._movementBound[0]?t._movement[0]:t._movementBound[0]),t._movementBound[1]=!!t.overflow[1]&&(!1===t._movementBound[1]?t._movement[1]:t._movementBound[1]);const x=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,o]){const[[i,a],[s,l]]=e;return[Fv(t,i,a,r),Fv(n,s,l,o)]}(t._bounds,t.offset,x),t.delta=zv.sub(t.offset,f),this.computeMovement(),m&&(!t.last||o>32)){t.delta=zv.sub(t.offset,f);const e=t.delta.map(Math.abs);zv.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&o>0&&(t.velocity=[e[0]/o,e[1]/o])}}emit(){const e=this.state,t=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const r=this.handler(Hv(Hv(Hv({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class ab extends ib{constructor(...e){super(...e),jv(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=zv.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=zv.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const t=this.state,n=this.config;if(!t.axis&&e){const r="object"==typeof n.axisThreshold?n.axisThreshold[Xv(e)]:n.axisThreshold;t.axis=function([e,t],n){const r=Math.abs(e),o=Math.abs(t);return r>o&&r>n?"x":o>r&&o>n?"y":void 0}(t._movement,r)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0}}}const sb=e=>e,lb={enabled:(e=!0)=>e,eventOptions:(e,t,n)=>Hv(Hv({},n.shared.eventOptions),e),preventDefault:(e=!1)=>e,triggerAllEvents:(e=!1)=>e,rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return zv.toVector(e)}},from:e=>"function"==typeof e?e:null!=e?zv.toVector(e):void 0,transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||sb},threshold:e=>zv.toVector(e,0)};const cb=Hv(Hv({},lb),{},{axis(e,t,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold:(e=0)=>e,bounds(e={}){if("function"==typeof e)return t=>cb.bounds(e(t));if("current"in e)return()=>e.current;if("function"==typeof HTMLElement&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),ub={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};const db="undefined"!=typeof window&&window.document&&window.document.createElement;function fb(){return db&&"ontouchstart"in window||db&&window.navigator.maxTouchPoints>1}const mb={isBrowser:db,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:fb(),touchscreen:fb(),pointer:db&&"onpointerdown"in window,pointerLock:db&&"exitPointerLock"in window.document},pb={mouse:0,touch:0,pen:8},hb=Hv(Hv({},cb),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&mb.pointerLock,mb.touch&&n?"touch":this.pointerLock?"mouse":mb.pointer&&!o?"pointer":mb.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,mb.touchscreen&&!1!==n)return e||(void 0!==n?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&"pointer"===this.device&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o}){const i=zv.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=.5,distance:t=50,duration:n=250}={}){return{velocity:this.transform(zv.toVector(e)),distance:this.transform(zv.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold:e=>e?Hv(Hv({},pb),e):pb,keyboardDisplacement:(e=10)=>e});Hv(Hv({},lb),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!mb.touch&&mb.gesture)return"gesture";if(mb.touch&&r)return"touch";if(mb.touchscreen){if(mb.pointer)return"pointer";if(mb.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=ob(tb(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=ob(tb(r,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof n&&"function"!=typeof r?[o(),i()]:e=>[o(e),i(e)]},threshold(e,t,n){this.lockDirection="lock"===n.axis;return zv.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey:e=>void 0===e?"ctrlKey":e,pinchOnWheel:(e=!0)=>e});Hv(Hv({},cb),{},{mouseOnly:(e=!0)=>e});Hv(Hv({},cb),{},{mouseOnly:(e=!0)=>e});const gb=new Map,vb=new Map;const bb={key:"drag",engine:class extends ab{constructor(...e){super(...e),jv(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),r={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=cb.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout((()=>{this.compute(),this.emit()}),0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const t=this.config,n=this.state;if(null!=e.buttons&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):-1!==t.pointerButtons&&t.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),r&&r.size>1&&n._pointerActive||(this.start(e),this.setupPointer(e),n._pointerId=Qv(e),n._pointerActive=!0,this.computeValues(eb(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==Xv(e)?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,n=this.config;if(!t._pointerActive)return;if(t.type===e.type&&e.timeStamp===t.timeStamp)return;const r=Qv(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;const o=eb(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=zv.sub(o,t._values),this.computeValues(o)),zv.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional?(this.timeoutStore.remove("dragDelay"),t.active=!1,void this.startPointerDrag(e)):n.preventScrollAxis&&!t._preventScroll?t.axis?t.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis?(t._active=!1,void this.clean()):(this.timeoutStore.remove("startPointerDrag"),void this.startPointerDrag(e)):void 0:void this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(e){0}const t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;const r=Qv(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,i]=t._distance;if(t.tap=o<=n.tapsThreshold&&i<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{const[e,r]=t.direction,[o,i]=t.velocity,[a,s]=t.movement,[l,c]=n.swipe.velocity,[u,d]=n.swipe.distance,f=n.swipe.duration;t.elapsedTime<f&&(Math.abs(o)>l&&Math.abs(a)>u&&(t.swipe[0]=e),Math.abs(i)>c&&Math.abs(s)>d&&(t.swipe[1]=r))}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,function(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}(e);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",(()=>{this.state._step=[0,0],this.startPointerDrag(e)}),this.config.delay)}keyDown(e){const t=ub[e.key];if(t){const n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(this.config.keyboardDisplacement,r),n._keyboardActive=!0,zv.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in ub&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:hb};function yb(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const xb={target(e){if(e)return()=>"current"in e?e.current:e},enabled:(e=!0)=>e,window:(e=(mb.isBrowser?window:void 0))=>e,eventOptions:({passive:e=!0,capture:t=!1}={})=>({passive:e,capture:t}),transform:e=>e},wb=["target","eventOptions","window","enabled","transform"];function Eb(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=Eb(e[r],o);break;case"boolean":o&&(n[r]=e[r])}return n}class _b{constructor(e,t){jv(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,r,o){const i=this._listeners,a=function(e,t=""){const n=$v[e];return e+(n&&n[t]||t)}(t,n),s=Hv(Hv({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),o);e.addEventListener(a,r,s);const l=()=>{e.removeEventListener(a,r,s),i.delete(l)};return i.add(l),l}clean(){this._listeners.forEach((e=>e())),this._listeners.clear()}}class Sb{constructor(){jv(this,"_timeouts",new Map)}add(e,t,n=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,n,...r))}remove(e){const t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach((e=>{window.clearTimeout(e)})),this._timeouts.clear()}}class Cb{constructor(e){jv(this,"gestures",new Set),jv(this,"_targetEventStore",new _b(this)),jv(this,"gestureEventStores",{}),jv(this,"gestureTimeoutStores",{}),jv(this,"handlers",{}),jv(this,"config",{}),jv(this,"pointerIds",new Set),jv(this,"touchIds",new Set),jv(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&kb(e,"drag");t.wheel&&kb(e,"wheel");t.scroll&&kb(e,"scroll");t.move&&kb(e,"move");t.pinch&&kb(e,"pinch");t.hover&&kb(e,"hover")}(this,e)}setEventIds(e){return Kv(e)?(this.touchIds=new Set(Jv(e)),this.touchIds):"pointerId"in e?("pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds):void 0}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=function(e,t,n={}){const r=e,{target:o,eventOptions:i,window:a,enabled:s,transform:l}=r,c=yb(r,wb);if(n.shared=Eb({target:o,eventOptions:i,window:a,enabled:s,transform:l},xb),t){const e=vb.get(t);n[t]=Eb(Hv({shared:n.shared},c),e)}else for(const e in c){const t=vb.get(e);t&&(n[e]=Eb(Hv({shared:n.shared},c[e]),t))}return n}(e,t,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared,n={};let r;if(!t.target||(r=t.target(),r)){if(t.enabled){for(const t of this.gestures){const o=this.config[t],i=Pb(n,o.eventOptions,!!r);if(o.enabled){new(gb.get(t))(this,e,t).bind(i)}}const o=Pb(n,t.eventOptions,!!r);for(const t in this.nativeHandlers)o(t,"",(n=>this.nativeHandlers[t](Hv(Hv({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(const e in n)n[e]=rb(...n[e]);if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=Yv(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}}function kb(e,t){e.gestures.add(t),e.gestureEventStores[t]=new _b(e,t),e.gestureTimeoutStores[t]=new Sb}const Pb=(e,t,n)=>(r,o,i,a={},s=!1)=>{var l,c;const u=null!==(l=a.capture)&&void 0!==l?l:t.capture,d=null!==(c=a.passive)&&void 0!==c?c:t.passive;let f=s?r:Gv(r,o,u);n&&d&&(f+="Passive"),e[f]=e[f]||[],e[f].push(i)};function Tb(e,t={},n,r){const o=s().useMemo((()=>new Cb(e)),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),s().useEffect(o.effect.bind(o)),s().useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}function Ib(e,t){var n;return n=bb,gb.set(n.key,n.engine),vb.set(n.key,n.resolver),Tb({drag:e},t||{},"drag")}const Rb=e=>e,Mb={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},Nb="CHANGE",Db="COMMIT",Ab="CONTROL",Ob="DRAG_END",zb="DRAG_START",Lb="DRAG",Fb="INVALIDATE",Bb="PRESS_DOWN",jb="PRESS_ENTER",Vb="PRESS_UP",Hb="RESET";function $b(e=Rb,t=Mb,n){const[r,o]=(0,Uo.useReducer)((i=e,(e,t)=>{const n={...e};switch(t.type){case Ab:return n.value=t.payload.value,n.isDirty=!1,n._event=void 0,n;case Vb:case Bb:n.isDirty=!1;break;case zb:n.isDragging=!0;break;case Ob:n.isDragging=!1;break;case Nb:n.error=null,n.value=t.payload.value,e.isPressEnterToChange&&(n.isDirty=!0);break;case Db:n.value=t.payload.value,n.isDirty=!1;break;case Hb:n.error=null,n.isDirty=!1,n.value=t.payload.value||e.initialValue;break;case Fb:n.error=t.payload.error}return n._event=t.payload.event,i(n,t)}),function(e=Mb){const{value:t}=e;return{...Mb,...e,initialValue:t}}(t));var i;const a=e=>(t,n)=>{o({type:e,payload:{value:t,event:n}})},s=e=>t=>{o({type:e,payload:{event:t}})},l=e=>t=>{o({type:e,payload:t})},c=a(Nb),u=a(Hb),d=a(Db),f=l(zb),m=l(Lb),p=l(Ob),h=s(Vb),g=s(Bb),v=s(jb),b=(0,Uo.useRef)(r),y=(0,Uo.useRef)({value:t.value,onChangeHandler:n});return(0,Uo.useLayoutEffect)((()=>{b.current=r,y.current={value:t.value,onChangeHandler:n}})),(0,Uo.useLayoutEffect)((()=>{var e;void 0===b.current._event||r.value===y.current.value||r.isDirty||y.current.onChangeHandler(null!==(e=r.value)&&void 0!==e?e:"",{event:b.current._event})}),[r.value,r.isDirty]),(0,Uo.useLayoutEffect)((()=>{var e;t.value===b.current.value||b.current.isDirty||o({type:Ab,payload:{value:null!==(e=t.value)&&void 0!==e?e:""}})}),[t.value]),{change:c,commit:d,dispatch:o,drag:m,dragEnd:p,dragStart:f,invalidate:(e,t)=>o({type:Fb,payload:{error:e,event:t}}),pressDown:g,pressEnter:v,pressUp:h,reset:u,state:r}}const Wb=()=>{};const Ub=(0,Uo.forwardRef)((function({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:o,isDragEnabled:i=!1,isFocused:a,isPressEnterToChange:s=!1,onBlur:l=Wb,onChange:c=Wb,onDrag:u=Wb,onDragEnd:d=Wb,onDragStart:f=Wb,onFocus:m=Wb,onKeyDown:p=Wb,onValidate:h=Wb,size:g="default",setIsFocused:v,stateReducer:b=(e=>e),value:y,type:x,...w},E){const{state:_,change:S,commit:C,drag:k,dragEnd:P,dragStart:T,invalidate:I,pressDown:R,pressEnter:M,pressUp:N,reset:D}=$b(b,{isDragEnabled:i,value:y,isPressEnterToChange:s},c),{value:A,isDragging:O,isDirty:z}=_,L=(0,Uo.useRef)(!1),F=function(e,t){const n=function(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return(0,Uo.useEffect)((()=>{document.documentElement.style.cursor=e?n:null}),[e,n]),n}(O,t),B=e=>{const t=e.currentTarget.value;try{h(t),C(t,e)}catch(t){I(t,e)}},j=Ib((e=>{const{distance:t,dragging:n,event:r,target:o}=e;if(e.event={...e.event,target:o},t){if(r.stopPropagation(),!n)return d(e),void P(e);u(e),k(e),O||(f(e),T(e))}}),{axis:"e"===t||"w"===t?"x":"y",threshold:n,enabled:i,pointer:{capture:!1}}),V=i?j():{};let H;return"number"===x&&(H=e=>{w.onMouseDown?.(e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),(0,r.createElement)(Ev,{...w,...V,className:"components-input-control__input",disabled:e,dragCursor:F,isDragging:O,id:o,onBlur:e=>{l(e),v?.(!1),!z&&e.target.validity.valid||(L.current=!0,B(e))},onChange:e=>{const t=e.target.value;S(t,e)},onFocus:e=>{m(e),v?.(!0)},onKeyDown:e=>{const{key:t}=e;switch(p(e),t){case"ArrowUp":N(e);break;case"ArrowDown":R(e);break;case"Enter":M(e),s&&(e.preventDefault(),B(e));break;case"Escape":s&&z&&(e.preventDefault(),D(y,e))}},onMouseDown:H,ref:E,inputSize:g,value:null!=A?A:"",type:x})})),Gb=Ub,qb={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function Yb(e){var t;return null!==(t=qb[e])&&void 0!==t?t:""}const Kb={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};const Xb=bs("div",{target:"ej5x27r4"})("font-family:",Yb("default.fontFamily"),";font-size:",Yb("default.fontSize"),";",Kb,";"),Zb=bs("div",{target:"ej5x27r3"})((({__nextHasNoMarginBottom:e=!1})=>!e&&Ps("margin-bottom:",Ah(2),";",""))," .components-panel__row &{margin-bottom:inherit;}"),Jb=Ps(pv,";display:inline-block;margin-bottom:",Ah(2),";padding:0;",""),Qb=bs("label",{target:"ej5x27r2"})(Jb,";");var ey={name:"11yad0w",styles:"margin-bottom:revert"};const ty=bs("p",{target:"ej5x27r1"})("margin-top:",Ah(2),";margin-bottom:0;font-size:",Yb("helpText.fontSize"),";font-style:normal;color:",Ds.gray[700],";",(({__nextHasNoMarginBottom:e=!1})=>!e&&ey),";"),ny=bs("span",{target:"ej5x27r0"})(Jb,";"),ry=({className:e,children:t,...n})=>(0,r.createElement)(ny,{...n,className:c()("components-base-control__label",e)},t),oy=Object.assign(is((e=>{const{__nextHasNoMarginBottom:t=!1,id:n,label:o,hideLabelFromVision:i=!1,help:a,className:s,children:l}=rs(e,"BaseControl");return(0,r.createElement)(Xb,{className:s},(0,r.createElement)(Zb,{className:"components-base-control__field",__nextHasNoMarginBottom:t},o&&n&&(i?(0,r.createElement)(ws,{as:"label",htmlFor:n},o):(0,r.createElement)(Qb,{className:"components-base-control__label",htmlFor:n},o)),o&&!n&&(i?(0,r.createElement)(ws,{as:"label"},o):(0,r.createElement)(ry,null,o)),l),!!a&&(0,r.createElement)(ty,{id:n?n+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t},a))}),"BaseControl"),{VisualLabel:ry}),iy=oy,ay=()=>{};const sy=(0,Uo.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,__unstableStateReducer:o=(e=>e),__unstableInputWidth:i,className:a,disabled:s=!1,help:l,hideLabelFromVision:u=!1,id:f,isPressEnterToChange:m=!1,label:p,labelPosition:h="top",onChange:g=ay,onValidate:v=ay,onKeyDown:b=ay,prefix:y,size:x="default",style:w,suffix:E,value:_,...S}=Nv(e),[C,k]=(0,Uo.useState)(!1),P=function(e){const t=(0,d.useInstanceId)(sy);return e||`inspector-input-control-${t}`}(f),T=c()("components-input-control",a),I=function(e){const t=(0,Uo.useRef)(e.value),[n,r]=(0,Uo.useState)({}),o=void 0!==n.value?n.value:e.value;return(0,Uo.useLayoutEffect)((()=>{const{current:o}=t;t.current=e.value,void 0===n.value||n.isStale?n.isStale&&e.value!==o&&r({}):r({...n,isStale:!0})}),[e.value,n]),{value:o,onBlur:t=>{r({}),e.onBlur?.(t)},onChange:(t,n)=>{r((e=>Object.assign(e,{value:t,isStale:!1}))),e.onChange(t,n)}}}({value:_,onBlur:S.onBlur,onChange:g}),R=l?{["string"==typeof l?"aria-describedby":"aria-details"]:`${P}__help`}:{};return(0,r.createElement)(iy,{className:T,help:l,id:P,__nextHasNoMarginBottom:!0},(0,r.createElement)(Ov,{__next40pxDefaultSize:n,__unstableInputWidth:i,disabled:s,gap:3,hideLabelFromVision:u,id:P,isFocused:C,justify:"left",label:p,labelPosition:h,prefix:y,size:x,style:w,suffix:E},(0,r.createElement)(Gb,{...S,...R,__next40pxDefaultSize:n,className:"components-input-control__input",disabled:s,id:P,isFocused:C,isPressEnterToChange:m,onKeyDown:b,onValidate:v,paddingInlineStart:y?Ah(2):void 0,paddingInlineEnd:E?Ah(2):void 0,ref:t,setIsFocused:k,size:x,stateReducer:o,...I})))})),ly=sy;const cy=function({icon:e,className:t,size:n=20,style:o={},...i}){const a=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),s={...20!=n?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...o};return(0,r.createElement)("span",{className:a,style:s,...i})};const uy=function({icon:e=null,size:t=("string"==typeof e?20:24),...r}){if("string"==typeof e)return(0,Uo.createElement)(cy,{icon:e,size:t,...r});if((0,Uo.isValidElement)(e)&&cy===e.type)return(0,Uo.cloneElement)(e,{...r});if("function"==typeof e)return(0,Uo.createElement)(e,{size:t,...r});if(e&&("svg"===e.type||e.type===n.SVG)){const o={...e.props,width:t,height:t,...r};return(0,Uo.createElement)(n.SVG,{...o})}return(0,Uo.isValidElement)(e)?(0,Uo.cloneElement)(e,{size:t,...r}):e},dy=["onMouseDown","onClick"];const fy=(0,Uo.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,isBusy:o,isDestructive:i,className:a,disabled:s,icon:l,iconPosition:u="left",iconSize:f,showTooltip:m,tooltipPosition:p,shortcut:h,label:g,children:v,size:b="default",text:y,variant:x,__experimentalIsFocusable:w,describedBy:E,..._}=function({isDefault:e,isPrimary:t,isSecondary:n,isTertiary:r,isLink:o,isPressed:i,isSmall:a,size:s,variant:l,...c}){let u=s,d=l;const f={"aria-pressed":i};var m,p,h,g,v,b;return a&&(null!==(m=u)&&void 0!==m||(u="small")),t&&(null!==(p=d)&&void 0!==p||(d="primary")),r&&(null!==(h=d)&&void 0!==h||(d="tertiary")),n&&(null!==(g=d)&&void 0!==g||(d="secondary")),e&&(qo()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"',version:"6.2"}),null!==(v=d)&&void 0!==v||(d="secondary")),o&&(null!==(b=d)&&void 0!==b||(d="link")),{...f,...c,size:u,variant:d}}(e),{href:S,target:C,"aria-checked":k,"aria-pressed":P,"aria-selected":T,...I}="href"in _?_:{href:void 0,target:void 0,..._},R=(0,d.useInstanceId)(fy,"components-button__description"),M="string"==typeof v&&!!v||Array.isArray(v)&&v?.[0]&&null!==v[0]&&"components-tooltip"!==v?.[0]?.props?.className,N=c()("components-button",a,{"is-next-40px-default-size":n,"is-secondary":"secondary"===x,"is-primary":"primary"===x,"is-small":"small"===b,"is-compact":"compact"===b,"is-tertiary":"tertiary"===x,"is-pressed":[!0,"true","mixed"].includes(P),"is-pressed-mixed":"mixed"===P,"is-busy":o,"is-link":"link"===x,"is-destructive":i,"has-text":!!l&&(M||y),"has-icon":!!l}),D=s&&!w,A=void 0===S||D?"button":"a",O="button"===A?{type:"button",disabled:D,"aria-checked":k,"aria-pressed":P,"aria-selected":T}:{},z="a"===A?{href:S,target:C}:{};if(s&&w){O["aria-disabled"]=!0,z["aria-disabled"]=!0;for(const e of dy)I[e]=e=>{e&&(e.stopPropagation(),e.preventDefault())}}const L=!D&&(m&&!!g||!!h||!!g&&!v?.length&&!1!==m),F=E?R:void 0,B=I["aria-describedby"]||F,j={className:N,"aria-label":I["aria-label"]||g,"aria-describedby":B,ref:t},V=(0,r.createElement)(r.Fragment,null,l&&"left"===u&&(0,r.createElement)(uy,{icon:l,size:f}),y&&(0,r.createElement)(r.Fragment,null,y),l&&"right"===u&&(0,r.createElement)(uy,{icon:l,size:f}),v),H="a"===A?(0,r.createElement)("a",{...z,...I,...j},V):(0,r.createElement)("button",{...O,...I,...j},V),$=L?{text:v?.length&&E?E:g,shortcut:h,placement:p&&Xo(p)}:{};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(ri,{...$},H),E&&(0,r.createElement)(ws,null,(0,r.createElement)("span",{id:F},E)))})),my=fy;var py={name:"euqsgg",styles:"input[type='number']::-webkit-outer-spin-button,input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}input[type='number']{-moz-appearance:textfield;}"};const hy=({hideHTMLArrows:e})=>e?py:"",gy=bs(ly,{target:"ep09it41"})(hy,";"),vy=bs(my,{target:"ep09it40"})("&&&&&{color:",Ds.theme.accent,";}"),by={smallSpinButtons:Ps("width:",Ah(5),";min-width:",Ah(5),";height:",Ah(5),";","")};function yy(e){const t=Number(e);return isNaN(t)?0:t}function xy(...e){return e.reduce(((e,t)=>e+yy(t)),0)}function wy(e,t,n){const r=yy(e);return Math.max(t,Math.min(r,n))}function Ey(e=0,t=1/0,n=1/0,r=1){const o=yy(e),i=yy(r),a=function(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}(r),s=wy(Math.round(o/i)*i,t,n);return a?yy(s.toFixed(a)):s}const _y={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-end",justify:"flex-start"},bottomRight:{align:"flex-end",justify:"flex-end"},center:{align:"center",justify:"center"},edge:{align:"center",justify:"space-between"},left:{align:"center",justify:"flex-start"},right:{align:"center",justify:"flex-end"},stretch:{align:"stretch"},top:{align:"flex-start",justify:"center"},topLeft:{align:"flex-start",justify:"flex-start"},topRight:{align:"flex-start",justify:"flex-end"}},Sy={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-end",align:"flex-start"},bottomRight:{justify:"flex-end",align:"flex-end"},center:{justify:"center",align:"center"},edge:{justify:"space-between",align:"center"},left:{justify:"center",align:"flex-start"},right:{justify:"center",align:"flex-end"},stretch:{align:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function Cy(e){return"string"==typeof e?[e]:Uo.Children.toArray(e).filter((e=>(0,Uo.isValidElement)(e)))}function ky(e){const{alignment:t="edge",children:n,direction:o,spacing:i=2,...a}=rs(e,"HStack"),s=function(e,t="row"){if(!ag(e))return{};const n="column"===t?Sy:_y;return e in n?n[e]:{align:e}}(t,o),l=Cy(n).map(((e,t)=>{if(ls(e,["Spacer"])){const n=e,o=n.key||`hstack-${t}`;return(0,r.createElement)(og,{isBlock:!0,key:o,...n.props})}return e}));return jh({children:l,direction:o,justify:"center",...s,...a,gap:i})}const Py=os((function(e,t){const n=ky(e);return(0,r.createElement)(xs,{...n,ref:t})}),"HStack"),Ty=()=>{};const Iy=(0,Uo.forwardRef)((function(e,t){const{__unstableStateReducer:n,className:o,dragDirection:i="n",hideHTMLArrows:a=!1,spinControls:s=(a?"none":"native"),isDragEnabled:l=!0,isShiftStepEnabled:f=!0,label:m,max:p=1/0,min:h=-1/0,required:g=!1,shiftStep:v=10,step:b=1,spinFactor:y=1,type:x="number",value:w,size:E="default",suffix:_,onChange:S=Ty,...C}=Nv(e);a&&qo()("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"});const k=(0,Uo.useRef)(),P=(0,d.useMergeRefs)([k,t]),T="any"===b,I=T?1:sg(b),R=sg(y)*I,M=Ey(0,h,p,I),N=(e,t)=>T?""+Math.min(p,Math.max(h,sg(e))):""+Ey(e,h,p,null!=t?t:I),D="number"===x?"off":void 0,A=c()("components-number-control",o),O=ns()("small"===E&&by.smallSpinButtons),z=(e,t,n)=>{n?.preventDefault();const r=n?.shiftKey&&f,o=r?sg(v)*R:R;let i=function(e){const t=""===e;return!ag(e)||t}(e)?M:e;return"up"===t?i=xy(i,o):"down"===t&&(i=function(...e){return e.reduce(((e,t,n)=>{const r=yy(t);return 0===n?r:e-r}),0)}(i,o)),N(i,r?o:void 0)},L=e=>t=>S(String(z(w,e,t)),{event:{...t,target:k.current}});return(0,r.createElement)(gy,{autoComplete:D,inputMode:"numeric",...C,className:A,dragDirection:i,hideHTMLArrows:"native"!==s,isDragEnabled:l,label:m,max:p,min:h,ref:P,required:g,step:b,type:x,value:w,__unstableStateReducer:(e,t)=>{var r;const o=((e,t)=>{const n={...e},{type:r,payload:o}=t,a=o.event,s=n.value;if(r!==Vb&&r!==Bb||(n.value=z(s,r===Vb?"up":"down",a)),r===Lb&&l){const[e,t]=o.delta,r=o.shiftKey&&f,a=r?sg(v)*R:R;let l,c;switch(i){case"n":c=t,l=-1;break;case"e":c=e,l=(0,u.isRTL)()?-1:1;break;case"s":c=t,l=1;break;case"w":c=e,l=(0,u.isRTL)()?1:-1}if(0!==c){c=Math.ceil(Math.abs(c))*Math.sign(c);const e=c*a*l;n.value=N(xy(s,e),r?a:void 0)}}if(r===jb||r===Db){const e=!1===g&&""===s;n.value=e?s:N(s)}return n})(e,t);return null!==(r=n?.(o,t))&&void 0!==r?r:o},size:E,suffix:"custom"===s?(0,r.createElement)(r.Fragment,null,_,(0,r.createElement)(tg,{marginBottom:0,marginRight:2},(0,r.createElement)(Py,{spacing:1},(0,r.createElement)(vy,{className:O,icon:ng,size:"small",label:(0,u.__)("Increment"),onClick:L("up")}),(0,r.createElement)(vy,{className:O,icon:rg,size:"small",label:(0,u.__)("Decrement"),onClick:L("down")})))):_,onChange:S})})),Ry=Iy;const My=bs("div",{target:"eln3bjz3"})("border-radius:50%;border:",Xg.borderWidth," solid ",Ds.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;:active{cursor:grabbing;}"),Ny=bs("div",{target:"eln3bjz2"})({name:"1r307gh",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"}),Dy=bs("div",{target:"eln3bjz1"})("background:",Ds.theme.accent,";border-radius:50%;box-sizing:border-box;display:block;left:50%;top:4px;transform:translateX( -50% );position:absolute;width:",6,"px;height:",6,"px;"),Ay=bs(mv,{target:"eln3bjz0"})("color:",Ds.theme.accent,";margin-right:",Ah(3),";");const Oy=function({value:e,onChange:t,...n}){const o=(0,Uo.useRef)(null),i=(0,Uo.useRef)(),a=(0,Uo.useRef)(),s=e=>{if(void 0!==e&&(e.preventDefault(),e.target?.focus(),void 0!==i.current&&void 0!==t)){const{x:n,y:r}=i.current;t(function(e,t,n,r){const o=r-t,i=n-e,a=Math.atan2(o,i),s=Math.round(a*(180/Math.PI))+90;if(s<0)return 360+s;return s}(n,r,e.clientX,e.clientY))}},{startDrag:l,isDragging:c}=(0,d.__experimentalUseDragging)({onDragStart:e=>{(()=>{if(null===o.current)return;const e=o.current.getBoundingClientRect();i.current={x:e.x+e.width/2,y:e.y+e.height/2}})(),s(e)},onDragMove:s,onDragEnd:s});return(0,Uo.useEffect)((()=>{c?(void 0===a.current&&(a.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=a.current||"",a.current=void 0)}),[c]),(0,r.createElement)(My,{ref:o,onMouseDown:l,className:"components-angle-picker-control__angle-circle",...n},(0,r.createElement)(Ny,{style:e?{transform:`rotate(${e}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1},(0,r.createElement)(Dy,{className:"components-angle-picker-control__angle-circle-indicator"})))};const zy=(0,Uo.forwardRef)((function(e,t){const{className:n,label:o=(0,u.__)("Angle"),onChange:i,value:a,...s}=e,l=c()("components-angle-picker-control",n),d=(0,r.createElement)(Ay,null,"°"),[f,m]=(0,u.isRTL)()?[d,null]:[null,d];return(0,r.createElement)($h,{...s,ref:t,className:l,gap:2},(0,r.createElement)(Uh,null,(0,r.createElement)(Ry,{label:o,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:e=>{if(void 0===i)return;const t=void 0!==e&&""!==e?parseInt(e,10):0;i(t)},size:"__unstable-large",step:"1",value:a,spinControls:"none",prefix:f,suffix:m})),(0,r.createElement)(tg,{marginBottom:"1",marginTop:"auto"},(0,r.createElement)(Oy,{"aria-hidden":"true",value:a,onChange:i})))}));var Ly=o(9681),Fy=o.n(Ly);const By=window.wp.richText,jy=window.wp.a11y,Vy=window.wp.keycodes,Hy=new RegExp(`[${["-","~","­","֊","־","᐀","᠆","‐","‑","‒","–","—","―","⁓","⁻","₋","−","⸗","⸺","⸻","〜","〰","゠","︱","︲","﹘","﹣","-"].join("")}]`,"g"),$y=e=>Fy()(e).toLocaleLowerCase().replace(Hy,"-");function Wy(e){var t;let n=null!==(t=e?.toString?.())&&void 0!==t?t:"";return n=n.replace(/['\u2019]/,""),_i(n,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}function Uy(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function Gy(e){return t=>{const[n,r]=(0,Uo.useState)([]);return(0,Uo.useLayoutEffect)((()=>{const{options:n,isDebounced:o}=e,i=(0,d.debounce)((()=>{const o=Promise.resolve("function"==typeof n?n(t):n).then((n=>{if(o.canceled)return;const i=n.map(((t,n)=>({key:`${e.name}-${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)}))),a=new RegExp("(?:\\b|\\s|^)"+Uy(t),"i");r(function(e,t=[],n=10){const r=[];for(let o=0;o<t.length;o++){const i=t[o];let{keywords:a=[]}=i;if("string"==typeof i.label&&(a=[...a,i.label]),a.some((t=>e.test(Fy()(t))))&&(r.push(i),r.length===n))break}return r}(a,i))}));return o}),o?250:0),a=i();return()=>{i.cancel(),a&&(a.canceled=!0)}}),[t]),[n]}}const qy=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Po({element:n.current,padding:r}).fn(t):{}:n?Po({element:n,padding:r}).fn(t):{};var o}});var Yy="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function Ky(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Ky(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Ky(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Xy(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zy(e,t){const n=Xy(e);return Math.round(t*n)/n}function Jy(e){const t=r.useRef(e);return Yy((()=>{t.current=e})),t}function Qy(){!lh.current&&ch();const[e]=(0,r.useState)(sh.current);return e}const ex=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.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"}));let tx=0;function nx(e){const t=document.scrollingElement||document.body;e&&(tx=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=tx)}let rx=0;const ox=function(){return(0,Uo.useEffect)((()=>(0===rx&&nx(!0),++rx,()=>{1===rx&&nx(!1),--rx})),[]),null},ix=Symbol(),ax=Symbol(),sx=Symbol();let lx=(e,t)=>new Proxy(e,t);const cx=Object.getPrototypeOf,ux=new WeakMap,dx=e=>e&&(ux.has(e)?ux.get(e):cx(e)===Object.prototype||cx(e)===Array.prototype),fx=e=>"object"==typeof e&&null!==e,mx=new WeakMap,px=e=>e[sx]||e,hx=(e,t,n)=>{if(!dx(e))return e;const r=px(e),o=(e=>Object.isFrozen(e)||Object.values(Object.getOwnPropertyDescriptors(e)).some((e=>!e.writable)))(r);let i=n&&n.get(r);return i&&i[1].f===o||(i=((e,t)=>{const n={f:t};let r=!1;const o=(t,o)=>{if(!r){let r=n.a.get(e);r||(r=new Set,n.a.set(e,r)),o&&r.has(ix)||r.add(t)}},i={get:(t,r)=>r===sx?e:(o(r),hx(t[r],n.a,n.c)),has:(t,i)=>i===ax?(r=!0,n.a.delete(e),!0):(o(i),i in t),getOwnPropertyDescriptor:(e,t)=>(o(t,!0),Object.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(o(ix),Reflect.ownKeys(e))};return t&&(i.set=i.deleteProperty=()=>!1),[i,n]})(r,o),i[1].p=lx(o?(e=>{let t=mx.get(e);if(!t){if(Array.isArray(e))t=Array.from(e);else{const n=Object.getOwnPropertyDescriptors(e);Object.values(n).forEach((e=>{e.configurable=!0})),t=Object.create(cx(e),n)}mx.set(e,t)}return t})(r):r,i[0]),n&&n.set(r,i)),i[1].a=t,i[1].c=n,i[1].p},gx=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some(((e,t)=>e!==r[t]))},vx=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!fx(e)||!fx(t))return!0;const o=n.get(px(e));if(!o)return!0;if(r){const n=r.get(e);if(n&&n.n===t)return n.g;r.set(e,{n:t,g:!1})}let i=null;for(const a of o){const o=a===ix?gx(e,t):vx(e[a],t[a],n,r);if(!0!==o&&!1!==o||(i=o),i)break}return null===i&&(i=!0),r&&r.set(e,{n:t,g:i}),i},bx=(e,t=!0)=>{ux.set(e,t)},yx=e=>"object"==typeof e&&null!==e,xx=new WeakSet,wx=Symbol("VERSION"),Ex=Symbol("LISTENERS"),_x=Symbol("SNAPSHOT"),Sx=(e=Object.is,t=((e,t)=>new Proxy(e,t)),n=(e=>yx(e)&&!xx.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)),r=Symbol("PROMISE_RESULT"),o=Symbol("PROMISE_ERROR"),i=new WeakMap,a=((e,t,n)=>{const a=i.get(n);if((null==a?void 0:a[0])===e)return a[1];const s=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return bx(s,!0),i.set(n,[e,s]),Reflect.ownKeys(t).forEach((e=>{const i=Reflect.get(t,e,n);if(xx.has(i))bx(i,!1),s[e]=i;else if(i instanceof Promise)if(r in i)s[e]=i[r];else{const t=i[o]||i;Object.defineProperty(s,e,{get(){if(r in i)return i[r];throw t}})}else(null==i?void 0:i[Ex])?s[e]=i[_x]:s[e]=i})),Object.freeze(s)}),s=new WeakMap,l=[1],c=(i=>{if(!yx(i))throw new Error("object required");const c=s.get(i);if(c)return c;let u=l[0];const d=new Set,f=(e,t=++l[0])=>{u!==t&&(u=t,d.forEach((n=>n(e,t))))},m=new Map,p=e=>{let t=m.get(e);return t||(t=(t,n)=>{const r=[...t];r[1]=[e,...r[1]],f(r,n)},m.set(e,t)),t},h=e=>{const t=m.get(e);return m.delete(e),t},g=Array.isArray(i)?[]:Object.create(Object.getPrototypeOf(i)),v={get:(e,t,n)=>t===wx?u:t===Ex?d:t===_x?a(u,e,n):Reflect.get(e,t,n),deleteProperty(e,t){const n=Reflect.get(e,t),r=null==n?void 0:n[Ex];r&&r.delete(h(t));const o=Reflect.deleteProperty(e,t);return o&&f(["delete",[t],n]),o},set(t,i,a,s){var l;const c=Reflect.has(t,i),u=Reflect.get(t,i,s);if(c&&e(u,a))return!0;const d=null==u?void 0:u[Ex];let m;return d&&d.delete(h(i)),yx(a)&&(a=(e=>dx(e)&&e[sx]||null)(a)||a),(null==(l=Object.getOwnPropertyDescriptor(t,i))?void 0:l.set)?m=a:a instanceof Promise?m=a.then((e=>(m[r]=e,f(["resolve",[i],e]),e))).catch((e=>{m[o]=e,f(["reject",[i],e])})):(null==a?void 0:a[Ex])?(m=a,m[Ex].add(p(i))):n(a)?(m=kx(a),m[Ex].add(p(i))):m=a,Reflect.set(t,i,m,s),f(["set",[i],a,u]),!0}},b=t(g,v);return s.set(i,b),Reflect.ownKeys(i).forEach((e=>{const t=Object.getOwnPropertyDescriptor(i,e);t.get||t.set?Object.defineProperty(g,e,t):b[e]=i[e]})),b}))=>[c,xx,wx,Ex,_x,e,t,n,r,o,i,a,s,l],[Cx]=Sx();function kx(e={}){return Cx(e)}function Px(e,t,n){let r;(null==e?void 0:e[Ex])||console.warn("Please use proxy object");const o=[],i=e=>{o.push(e),n?t(o.splice(0)):r||(r=Promise.resolve().then((()=>{r=void 0,t(o.splice(0))})))};return e[Ex].add(i),()=>{e[Ex].delete(i)}}function Tx(e){return(null==e?void 0:e[_x])||console.warn("Please use proxy object"),e[_x]}function Ix(e){return xx.add(e),e}const{useSyncExternalStore:Rx}=Ft,Mx=(e,t)=>{const n=(0,r.useRef)();(0,r.useEffect)((()=>{n.current=((e,t)=>{const n=[],r=new WeakSet,o=(e,i)=>{if(r.has(e))return;fx(e)&&r.add(e);const a=fx(e)&&t.get(px(e));a?a.forEach((t=>{o(e[t],i?[...i,t]:[t])})):i&&n.push(i)};return o(e),n})(e,t)})),(0,r.useDebugValue)(n.current)};function Nx(e,t){const n=null==t?void 0:t.sync,o=(0,r.useRef)(),i=(0,r.useRef)();let a=!0;const s=Rx((0,r.useCallback)((t=>{const r=Px(e,t,n);return t(),r}),[e,n]),(()=>{const t=Tx(e);try{if(!a&&o.current&&i.current&&!vx(o.current,t,i.current,new WeakMap))return o.current}catch(e){}return t}),(()=>Tx(e)));a=!1;const l=new WeakMap;(0,r.useEffect)((()=>{o.current=s,i.current=l})),Mx(s,l);const c=(0,r.useMemo)((()=>new WeakMap),[]);return hx(s,l,c)}Symbol();function Dx(e){const t=kx({data:Array.from(e||[]),has(e){return this.data.some((t=>t[0]===e))},set(e,t){const n=this.data.find((t=>t[0]===e));return n?n[1]=t:this.data.push([e,t]),this},get(e){var t;return null==(t=this.data.find((t=>t[0]===e)))?void 0:t[1]},delete(e){const t=this.data.findIndex((t=>t[0]===e));return-1!==t&&(this.data.splice(t,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON:()=>({}),forEach(e){this.data.forEach((t=>{e(t[1],t[0],this)}))},keys(){return this.data.map((e=>e[0])).values()},values(){return this.data.map((e=>e[1])).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}const Ax={slots:Dx(),fills:Dx(),registerSlot:()=>{},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},isDefault:!0},Ox=(0,Uo.createContext)(Ax);function zx(e){const t=(0,Uo.useContext)(Ox);return{...Nx(t.slots,{sync:!0}).get(e),...(0,Uo.useMemo)((()=>({updateSlot:n=>t.updateSlot(e,n),unregisterSlot:n=>t.unregisterSlot(e,n),registerFill:n=>t.registerFill(e,n),unregisterFill:n=>t.unregisterFill(e,n)})),[e,t])}}const Lx={registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>[],subscribe:()=>()=>{}},Fx=(0,Uo.createContext)(Lx),Bx=e=>{const{getSlot:t,subscribe:n}=(0,Uo.useContext)(Fx);return(0,Uo.useSyncExternalStore)(n,(()=>t(e)),(()=>t(e)))};function jx({name:e,children:t}){const{registerFill:n,unregisterFill:r}=(0,Uo.useContext)(Fx),o=Bx(e),i=(0,Uo.useRef)({name:e,children:t});return(0,Uo.useLayoutEffect)((()=>{const t=i.current;return n(e,t),()=>r(e,t)}),[]),(0,Uo.useLayoutEffect)((()=>{i.current.children=t,o&&o.forceUpdate()}),[t]),(0,Uo.useLayoutEffect)((()=>{e!==i.current.name&&(r(i.current.name,i.current),i.current.name=e,n(e,i.current))}),[e]),null}function Vx(e){return"function"==typeof e}class Hx extends Uo.Component{constructor(e){super(e),this.isUnmounted=!1}componentDidMount(){const{registerSlot:e}=this.props;this.isUnmounted=!1,e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name,this),r(t,this))}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){var e;const{children:t,name:n,fillProps:o={},getFills:i}=this.props,a=(null!==(e=i(n,this))&&void 0!==e?e:[]).map((e=>{const t=Vx(e.children)?e.children(o):e.children;return Uo.Children.map(t,((e,t)=>{if(!e||"string"==typeof e)return e;let n=t;return"object"==typeof e&&"key"in e&&e?.key&&(n=e.key),(0,Uo.cloneElement)(e,{key:n})}))})).filter((e=>!(0,Uo.isEmptyElement)(e)));return(0,r.createElement)(r.Fragment,null,Vx(t)?t(a):a)}}const $x=e=>(0,r.createElement)(Fx.Consumer,null,(({registerSlot:t,unregisterSlot:n,getFills:o})=>(0,r.createElement)(Hx,{...e,registerSlot:t,unregisterSlot:n,getFills:o}))),Wx={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Ux;const Gx=new Uint8Array(16);function qx(){if(!Ux&&(Ux="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ux))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ux(Gx)}const Yx=[];for(let e=0;e<256;++e)Yx.push((e+256).toString(16).slice(1));function Kx(e,t=0){return Yx[e[t+0]]+Yx[e[t+1]]+Yx[e[t+2]]+Yx[e[t+3]]+"-"+Yx[e[t+4]]+Yx[e[t+5]]+"-"+Yx[e[t+6]]+Yx[e[t+7]]+"-"+Yx[e[t+8]]+Yx[e[t+9]]+"-"+Yx[e[t+10]]+Yx[e[t+11]]+Yx[e[t+12]]+Yx[e[t+13]]+Yx[e[t+14]]+Yx[e[t+15]]}const Xx=function(e,t,n){if(Wx.randomUUID&&!t&&!e)return Wx.randomUUID();const r=(e=e||{}).random||(e.rng||qx)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return Kx(r)},Zx=new Set,Jx=new WeakMap;function Qx(e){const{children:t,document:n}=e;if(!n)return null;const o=(e=>{if(Jx.has(e))return Jx.get(e);let t=Xx().replace(/[0-9]/g,"");for(;Zx.has(t);)t=Xx().replace(/[0-9]/g,"");Zx.add(t);const n=Pa({container:e,key:t});return Jx.set(e,n),n})(n.head);return(0,r.createElement)(Wa,{value:o},t)}const ew=Qx;function tw(e){var t;const{name:n,children:o}=e,{registerFill:i,unregisterFill:a,...s}=zx(n),l=function(){const[,e]=(0,Uo.useState)({}),t=(0,Uo.useRef)(!0);return(0,Uo.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),()=>{t.current&&e({})}}(),c=(0,Uo.useRef)({rerender:l});if((0,Uo.useEffect)((()=>(i(c),()=>{a(c)})),[i,a]),!s.ref||!s.ref.current)return null;const u=(0,r.createElement)(ew,{document:s.ref.current.ownerDocument},"function"==typeof o?o(null!==(t=s.fillProps)&&void 0!==t?t:{}):o);return(0,Uo.createPortal)(u,s.ref.current)}const nw=(0,Uo.forwardRef)((function(e,t){const{name:n,fillProps:o={},as:i,children:a,...s}=e,{registerSlot:l,unregisterSlot:c,...u}=(0,Uo.useContext)(Ox),f=(0,Uo.useRef)(null);return(0,Uo.useLayoutEffect)((()=>(l(n,f,o),()=>{c(n,f)})),[l,c,n]),(0,Uo.useLayoutEffect)((()=>{u.updateSlot(n,o)})),(0,r.createElement)(xs,{as:i,ref:(0,d.useMergeRefs)([t,f]),...s})})),rw=window.wp.isShallowEqual;var ow=o.n(rw);function iw(){const e=Dx(),t=Dx();return{slots:e,fills:t,registerSlot:(t,n,r)=>{const o=e.get(t);e.set(t,Ix({...o,ref:n||o?.ref,fillProps:r||o?.fillProps||{}}))},updateSlot:(n,r)=>{const o=e.get(n);if(!o)return;if(ow()(o.fillProps,r))return;o.fillProps=r;const i=t.get(n);i&&i.forEach((e=>e.current.rerender()))},unregisterSlot:(t,n)=>{e.get(t)?.ref===n&&e.delete(t)},registerFill:(e,n)=>{t.set(e,Ix([...t.get(e)||[],n]))},unregisterFill:(e,n)=>{const r=t.get(e);r&&t.set(e,Ix(r.filter((e=>e!==n))))}}}function aw({children:e}){const t=(0,Uo.useMemo)(iw,[]);return(0,r.createElement)(Ox.Provider,{value:t},e)}function sw(){const e={},t={};let n=[];function r(t){return e[t]}function o(e){const t=r(e);t&&t.forceUpdate()}function i(){n.forEach((e=>e()))}return{registerSlot:function(t,n){const r=e[t];e[t]=n,i(),o(t),r&&r.forceUpdate()},unregisterSlot:function(t,n){e[t]===n&&(delete e[t],i())},registerFill:function(e,n){t[e]=[...t[e]||[],n],o(e)},unregisterFill:function(e,n){var r;t[e]=null!==(r=t[e]?.filter((e=>e!==n)))&&void 0!==r?r:[],o(e)},getSlot:r,getFills:function(n,r){return e[n]!==r?[]:t[n]},subscribe:function(e){return n.push(e),()=>{n=n.filter((t=>t!==e))}}}}const lw=function({children:e}){const t=(0,Uo.useMemo)(sw,[]);return(0,r.createElement)(Fx.Provider,{value:t},e)};function cw(e){return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(jx,{...e}),(0,r.createElement)(tw,{...e}))}const uw=(0,Uo.forwardRef)((function(e,t){const{bubblesVirtually:n,...o}=e;return n?(0,r.createElement)(nw,{...o,ref:t}):(0,r.createElement)($x,{...o})}));function dw({children:e,passthrough:t=!1}){return!(0,Uo.useContext)(Ox).isDefault&&t?(0,r.createElement)(r.Fragment,null,e):(0,r.createElement)(lw,null,(0,r.createElement)(aw,null,e))}function fw(e){const t="symbol"==typeof e?e.description:e,n=t=>(0,r.createElement)(cw,{name:e,...t});n.displayName=`${t}Fill`;const o=t=>(0,r.createElement)(uw,{name:e,...t});return o.displayName=`${t}Slot`,o.__unstableName=e,{Fill:n,Slot:o}}const mw="Popover",pw=()=>(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation"},(0,r.createElement)(n.Path,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,r.createElement)(n.Path,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})),hw=(0,Uo.createContext)(void 0),gw="components-popover__fallback-container",vw=os(((e,t)=>{const{animate:n=!0,headerTitle:o,constrainTabbing:i,onClose:a,children:s,className:l,noArrow:u=!0,position:f,placement:m="bottom-start",offset:p=0,focusOnMount:h="firstElement",anchor:g,expandOnMobile:v,onFocusOutside:b,__unstableSlotName:y=mw,flip:x=!0,resize:w=!0,shift:E=!1,inline:_=!1,variant:S,__unstableForcePosition:C,anchorRef:k,anchorRect:P,getAnchorRect:T,isAlternate:I,...R}=rs(e,"Popover");let M=x,N=w;void 0!==C&&(qo()("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),M=!C,N=!C),void 0!==k&&qo()("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==P&&qo()("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==T&&qo()("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const D=I?"toolbar":S;void 0!==I&&qo()("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const A=(0,Uo.useRef)(null),[O,z]=(0,Uo.useState)(null),L=(0,Uo.useCallback)((e=>{z(e)}),[]),F=(0,d.useViewportMatch)("medium","<"),B=v&&F,j=!B&&!u,V=f?Xo(f):m,H=[..."overlay"===m?[{name:"overlay",fn:({rects:e})=>e.reference},ko({apply({rects:e,elements:t}){var n;const{firstElementChild:r}=null!==(n=t.floating)&&void 0!==n?n:{};r instanceof HTMLElement&&Object.assign(r.style,{width:`${e.reference.width}px`,height:`${e.reference.height}px`})}})]:[],Fr(p),M&&Co(),N&&ko({apply(e){var t;const{firstElementChild:n}=null!==(t=X.floating.current)&&void 0!==t?t:{};n instanceof HTMLElement&&Object.assign(n.style,{maxHeight:`${e.availableHeight}px`,overflow:"auto"})}}),E&&So({crossAxis:!0,limiter:To(),padding:1}),qy({element:A})],$=(0,Uo.useContext)(hw)||y,W=zx($);let U;(a||b)&&(U=(e,t)=>{"focus-outside"===e&&b?b(t):a&&a()});const[G,q]=(0,d.__experimentalUseDialog)({constrainTabbing:i,focusOnMount:h,__unstableOnClose:U,onClose:U}),{x:Y,y:K,refs:X,strategy:Z,update:J,placement:Q,middlewareData:{arrow:ee}}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=r.useState(o);Ky(m,o)||p(o);const[h,g]=r.useState(null),[v,b]=r.useState(null),y=r.useCallback((e=>{e!==_.current&&(_.current=e,g(e))}),[]),x=r.useCallback((e=>{e!==S.current&&(S.current=e,b(e))}),[]),w=a||h,E=s||v,_=r.useRef(null),S=r.useRef(null),C=r.useRef(d),k=null!=c,P=Jy(c),T=Jy(i),I=r.useCallback((()=>{if(!_.current||!S.current)return;const e={placement:t,strategy:n,middleware:m};T.current&&(e.platform=T.current),Io(_.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};R.current&&!Ky(C.current,t)&&(C.current=t,tr.flushSync((()=>{f(t)})))}))}),[m,t,n,T]);Yy((()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const R=r.useRef(!1);Yy((()=>(R.current=!0,()=>{R.current=!1})),[]),Yy((()=>{if(w&&(_.current=w),E&&(S.current=E),w&&E){if(P.current)return P.current(w,E,I);I()}}),[w,E,I,P,k]);const M=r.useMemo((()=>({reference:_,floating:S,setReference:y,setFloating:x})),[y,x]),N=r.useMemo((()=>({reference:w,floating:E})),[w,E]),D=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=Zy(N.floating,d.x),r=Zy(N.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...Xy(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,N.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:I,refs:M,elements:N,floatingStyles:D})),[d,I,M,N,D])}({placement:"overlay"===V?void 0:V,middleware:H,whileElementsMounted:(e,t,n)=>_o(e,t,n,{layoutShift:!1,animationFrame:!0})}),te=(0,Uo.useCallback)((e=>{A.current=e,J()}),[J]),ne=k?.top,re=k?.bottom,oe=k?.startContainer,ie=k?.current;(0,Uo.useLayoutEffect)((()=>{const e=(({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o})=>{var i;let a=null;return e?a=e:function(e){return!!e?.top}(t)?a={getBoundingClientRect(){const e=t.top.getBoundingClientRect(),n=t.bottom.getBoundingClientRect();return new window.DOMRect(e.x,e.y,e.width,n.bottom-e.top)}}:function(e){return!!e?.current}(t)?a=t.current:t?a=t:n?a={getBoundingClientRect:()=>n}:r?a={getBoundingClientRect(){var e,t,n,i;const a=r(o);return new window.DOMRect(null!==(e=a.x)&&void 0!==e?e:a.left,null!==(t=a.y)&&void 0!==t?t:a.top,null!==(n=a.width)&&void 0!==n?n:a.right-a.left,null!==(i=a.height)&&void 0!==i?i:a.bottom-a.top)}}:o&&(a=o.parentElement),null!==(i=a)&&void 0!==i?i:null})({anchor:g,anchorRef:k,anchorRect:P,getAnchorRect:T,fallbackReferenceElement:O});X.setReference(e)}),[g,k,ne,re,oe,ie,P,T,O,X]);const ae=(0,d.useMergeRefs)([X.setFloating,G,t]),se=B?void 0:{position:Z,top:0,left:0,x:Jo(Y),y:Jo(K)},le=Qy(),ce=n&&!B&&!le,[ue,de]=(0,Uo.useState)(!1),{style:fe,...me}=(0,Uo.useMemo)((()=>(e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:Zo[e],initial:{opacity:0,scale:0,[t]:2*n+"em"},animate:{opacity:1,scale:1,[t]:0},transition:{duration:.1,ease:[0,0,.2,1]}}})(Q)),[Q]),pe=ce?{style:{...fe,...se},onAnimationComplete:()=>de(!0),...me}:{animate:!1,style:se},he=(!ce||ue)&&null!==Y&&null!==K,[ge,ve]=(0,Uo.useState)(!1),be=(0,Uo.useMemo)((()=>({ColorPicker:{onPickerDragStart(){ve(!0)},onPickerDragEnd(){ve(!1)}}})),[]);let ye=(0,r.createElement)(r.Fragment,null,ge&&(0,r.createElement)("div",{className:"components-popover-pointer-events-trap","aria-hidden":"true",onClick:()=>ve(!1)}),(0,r.createElement)(wh.div,{className:c()("components-popover",l,{"is-expanded":B,"is-positioned":he,[`is-${"toolbar"===D?"alternate":D}`]:D}),...pe,...R,ref:ae,...q,tabIndex:-1},B&&(0,r.createElement)(ox,null),B&&(0,r.createElement)("div",{className:"components-popover__header"},(0,r.createElement)("span",{className:"components-popover__header-title"},o),(0,r.createElement)(my,{className:"components-popover__close",icon:ex,onClick:a})),(0,r.createElement)("div",{className:"components-popover__content"},(0,r.createElement)(mi,{value:be},s)),j&&(0,r.createElement)("div",{ref:te,className:["components-popover__arrow",`is-${Q.split("-")[0]}`].join(" "),style:{left:void 0!==ee?.x&&Number.isFinite(ee.x)?`${ee.x}px`:"",top:void 0!==ee?.y&&Number.isFinite(ee.y)?`${ee.y}px`:""}},(0,r.createElement)(pw,null))));const xe=W.ref&&!_,we=k||P||g;return xe?ye=(0,r.createElement)(cw,{name:$},ye):_||(ye=(0,Uo.createPortal)((0,r.createElement)(Qx,{document},ye),(()=>{let e=document.body.querySelector("."+gw);return e||(e=document.createElement("div"),e.className=gw,document.body.append(e)),e})())),we?ye:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{ref:L}),ye)}),"Popover");vw.Slot=(0,Uo.forwardRef)((function({name:e=mw},t){return(0,r.createElement)(uw,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})})),vw.__unstableSlotNameProvider=hw.Provider;const bw=vw;function yw(e){const t=e.useItems?e.useItems:Gy(e);return function({filterValue:e,instanceId:n,listBoxId:o,className:i,selectedIndex:a,onChangeOptions:s,onSelect:l,onReset:f,reset:m,contentRef:p}){const[h]=t(e),g=(0,By.useAnchor)({editableContentElement:p.current}),[v,b]=(0,Uo.useState)(!1),y=(0,Uo.useRef)(null),x=(0,d.useMergeRefs)([y,(0,d.useRefEffect)((e=>{p.current&&b(e.ownerDocument!==p.current.ownerDocument)}),[p])]);!function(e,t){(0,Uo.useEffect)((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t(n)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}),[t])}(y,m);const w=(0,d.useDebounce)(jy.speak,500);if((0,Uo.useLayoutEffect)((()=>{s(h),function(t){w&&(t.length?w(e?(0,u.sprintf)((0,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):(0,u.sprintf)((0,u._n)("Initial %d result loaded. Type to filter all available results. Use up and down arrow keys to navigate.","Initial %d results loaded. Type to filter all available results. Use up and down arrow keys to navigate.",t.length),t.length),"assertive"):w((0,u.__)("No results."),"assertive"))}(h)}),[h]),0===h.length)return null;const E=({Component:e="div"})=>(0,r.createElement)(e,{id:o,role:"listbox",className:"components-autocomplete__results"},h.map(((e,t)=>(0,r.createElement)(my,{key:e.key,id:`components-autocomplete-item-${n}-${e.key}`,role:"option","aria-selected":t===a,disabled:e.isDisabled,className:c()("components-autocomplete__result",i,{"is-selected":t===a}),onClick:()=>l(e)},e.label))));return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(bw,{focusOnMount:!1,onClose:f,placement:"top-start",className:"components-autocomplete__popover",anchor:g,ref:x},(0,r.createElement)(E,null)),p.current&&v&&(0,tr.createPortal)((0,r.createElement)(E,{Component:ws}),p.current.ownerDocument.body))}}const xw=e=>{if(null===e)return"";switch(typeof e){case"string":case"number":return e.toString();case"boolean":default:return"";case"object":if(e instanceof Array)return e.map(xw).join("");if("props"in e)return xw(e.props.children)}return""},ww=[];function Ew({record:e,onChange:t,onReplace:n,completers:o,contentRef:i}){const a=(0,d.useInstanceId)(Ew),[s,l]=(0,Uo.useState)(0),[c,u]=(0,Uo.useState)(ww),[f,m]=(0,Uo.useState)(""),[p,h]=(0,Uo.useState)(null),[g,v]=(0,Uo.useState)(null),b=(0,Uo.useRef)(!1);function y(r){const{getOptionCompletion:o}=p||{};if(!r.isDisabled){if(o){const i=o(r.value,f),a=(e=>null!==e&&"object"==typeof e&&"action"in e&&void 0!==e.action&&"value"in e&&void 0!==e.value)(i)?i:{action:"insert-at-caret",value:i};if("replace"===a.action)return void n([a.value]);"insert-at-caret"===a.action&&function(n){if(null===p)return;const r=e.start,o=r-p.triggerPrefix.length-f.length,i=(0,By.create)({html:(0,Uo.renderToString)(n)});t((0,By.insert)(e,i,o,r))}(a.value)}x()}}function x(){l(0),u(ww),m(""),h(null),v(null)}const w=(0,Uo.useMemo)((()=>(0,By.isCollapsed)(e)?(0,By.getTextContent)((0,By.slice)(e,0)):""),[e]);(0,Uo.useEffect)((()=>{if(!w)return void(p&&x());const t=o.reduce(((e,t)=>w.lastIndexOf(t.triggerPrefix)>(null!==e?w.lastIndexOf(e.triggerPrefix):-1)?t:e),null);if(!t)return void(p&&x());const{allowContext:n,triggerPrefix:r}=t,i=w.lastIndexOf(r),a=w.slice(i+r.length);if(a.length>50)return;const s=0===c.length,l=a.split(/\s/),u=1===l.length,d=b.current&&l.length<=3;if(s&&!d&&!u)return void(p&&x());const f=(0,By.getTextContent)((0,By.slice)(e,void 0,(0,By.getTextContent)(e).length));if(n&&!n(w.slice(0,i),f))return void(p&&x());if(/^\s/.test(a)||/\s\s+$/.test(a))return void(p&&x());if(!/[\u0000-\uFFFF]*$/.test(a))return void(p&&x());const y=Uy(t.triggerPrefix),E=Fy()(w),_=E.slice(E.lastIndexOf(t.triggerPrefix)).match(new RegExp(`${y}([\0-￿]*)$`)),S=_&&_[1];h(t),v((()=>t!==p?yw(t):g)),m(null===S?"":S)}),[w]);const{key:E=""}=c[s]||{},{className:_}=p||{},S=!!p&&c.length>0,C=S?`components-autocomplete-listbox-${a}`:void 0;return{listBoxId:C,activeId:S?`components-autocomplete-item-${a}-${E}`:null,onKeyDown:function(e){if(b.current="Backspace"===e.key,p&&0!==c.length&&!e.defaultPrevented&&!e.isComposing&&229!==e.keyCode){switch(e.key){case"ArrowUp":{const e=(0===s?c.length:s)-1;l(e),(0,Vy.isAppleOS)()&&(0,jy.speak)(xw(c[e].label),"assertive");break}case"ArrowDown":{const e=(s+1)%c.length;l(e),(0,Vy.isAppleOS)()&&(0,jy.speak)(xw(c[e].label),"assertive");break}case"Escape":h(null),v(null),e.preventDefault();break;case"Enter":y(c[s]);break;case"ArrowLeft":case"ArrowRight":return void x();default:return}e.preventDefault()}},popover:void 0!==e.start&&g&&(0,r.createElement)(g,{className:_,filterValue:f,instanceId:a,listBoxId:C,selectedIndex:s,onChangeOptions:function(e){l(e.length===c.length?s:0),u(e)},onSelect:y,value:e,contentRef:i,reset:x})}}function _w(e){const t=(0,Uo.useRef)(null),n=(0,Uo.useRef)(),{record:r}=e,o=function(e){const t=(0,Uo.useRef)(new Set);return t.current.add(e),t.current.size>2&&t.current.delete(Array.from(t.current)[0]),Array.from(t.current)[0]}(r),{popover:i,listBoxId:a,activeId:s,onKeyDown:l}=Ew({...e,contentRef:t});n.current=l;const c=(0,d.useMergeRefs)([t,(0,d.useRefEffect)((e=>{function t(e){n.current?.(e)}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[])]);return r.text!==o?.text?{ref:c,children:i,"aria-autocomplete":a?"list":void 0,"aria-owns":a,"aria-activedescendant":s}:{ref:c}}function Sw({children:e,isSelected:t,...n}){const{popover:o,...i}=Ew(n);return(0,r.createElement)(r.Fragment,null,e(i),t&&o)}function Cw(e){const{help:t,id:n,...r}=e,o=(0,d.useInstanceId)(iy,"wp-components-base-control",n);return{baseControlProps:{id:o,help:t,...r},controlProps:{id:o,...t?{["string"==typeof t?"aria-describedby":"aria-details"]:`${o}__help`}:{}}}}const kw=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})),Pw=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"}));const Tw=Ps("",""),Iw={name:"bjn8wh",styles:"position:relative"},Rw=e=>{const{color:t=Ds.gray[200],style:n="solid",width:r=Xg.borderWidth}=e||{};return`${t} ${!!r&&"0"!==r||!!t?n||"solid":n} ${r!==Xg.borderWidth?`clamp(1px, ${r}, 10px)`:r}`},Mw={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"};function Nw(e){const{className:t,size:n="default",...r}=rs(e,"BorderBoxControlLinkedButton"),o=ns();return{...r,className:(0,Uo.useMemo)((()=>o((e=>Ps("position:absolute;top:","__unstable-large"===e?"8px":"3px",";",Jh({right:0})()," line-height:0;",""))(n),t)),[t,o,n])}}const Dw=os(((e,t)=>{const{className:n,isLinked:o,...i}=Nw(e),a=o?(0,u.__)("Unlink sides"):(0,u.__)("Link sides");return(0,r.createElement)(ri,{text:a},(0,r.createElement)(xs,{className:n},(0,r.createElement)(my,{...i,size:"small",icon:o?kw:Pw,iconSize:24,"aria-label":a,ref:t})))}),"BorderBoxControlLinkedButton");function Aw(e){const{className:t,value:n,size:r="default",...o}=rs(e,"BorderBoxControlVisualizer"),i=ns(),a=(0,Uo.useMemo)((()=>i(((e,t)=>Ps("position:absolute;top:","__unstable-large"===t?"20px":"15px",";right:","__unstable-large"===t?"39px":"29px",";bottom:","__unstable-large"===t?"20px":"15px",";left:","__unstable-large"===t?"39px":"29px",";border-top:",Rw(e?.top),";border-bottom:",Rw(e?.bottom),";",Jh({borderLeft:Rw(e?.left)})()," ",Jh({borderRight:Rw(e?.right)})(),";",""))(n,r),t)),[i,t,n,r]);return{...o,className:a,value:n}}const Ow=os(((e,t)=>{const{value:n,...o}=Aw(e);return(0,r.createElement)(xs,{...o,ref:t})}),"BorderBoxControlVisualizer"),zw=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),Lw=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M5 11.25h14v1.5H5z"})),Fw=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"})),Bw=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"})),jw=(0,r.createContext)(null),Vw=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Hw(){const e=new Set,t=new WeakMap,n=()=>e.forEach(Vw);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);const o=t.get(r);o&&(o(),t.delete(r)),n()},dirty:n}}const $w=e=>!0===e,Ww=({children:e,id:t,inherit:n=!0})=>{const o=(0,r.useContext)(Ol),i=(0,r.useContext)(jw),[a,s]=_h(),l=(0,r.useRef)(null),c=o.id||i;null===l.current&&((e=>$w(!0===e)||"id"===e)(n)&&c&&(t=t?c+"-"+t:c),l.current={id:t,group:$w(n)&&o.group||Hw()});const u=(0,r.useMemo)((()=>({...l.current,forceRender:a})),[s]);return r.createElement(Ol.Provider,{value:u},e)};const Uw=e=>{const t=Ps("border-color:",Ds.ui.border,";","");return Ps(e&&t," &:hover{border-color:",Ds.ui.borderHover,";}&:focus-within{border-color:",Ds.ui.borderFocus,";box-shadow:",Xg.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","")};var Gw={name:"1aqh2c7",styles:"min-height:40px;padding:3px"},qw={name:"1ndywgm",styles:"min-height:36px;padding:2px"};const Yw=e=>({default:qw,"__unstable-large":Gw}[e]),Kw={name:"7whenc",styles:"display:flex;width:100%"},Xw=bs("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"});function Zw(e={}){var t,n=N(e,[]);const r=null==(t=n.store)?void 0:t.getState(),o=tl(M(R({},n),{focusLoop:V(n.focusLoop,null==r?void 0:r.focusLoop,!0)})),i=Rt(M(R({},o.getState()),{value:V(n.value,null==r?void 0:r.value,n.defaultValue,null)}),o,n.store);return M(R(R({},o),i),{setValue:e=>i.setState("value",e)})}function Jw(e={}){const[t,n]=$t(Zw,e);return function(e,t,n){return Ht(e=nl(e,t,n),n,"value","setValue"),e}(t,n,e)}var Qw=He([Ct],[kt]),eE=Qw.useContext,tE=(Qw.useScopedContext,Qw.useProviderContext),nE=(Qw.ContextProvider,Qw.ScopedContextProvider),rE=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=tE();return F(n=n||o,!1),r=Te(r,(e=>(0,Le.jsx)(nE,{value:n,children:e})),[n]),r=x({role:"radiogroup"},r),r=il(x({store:n},r))})),oE=Fe((e=>je("div",rE(e))));const iE=(0,Uo.createContext)({}),aE=iE;function sE(e){const t=(0,Uo.useRef)(!0),n=(0,d.usePrevious)(e),r=(0,Uo.useRef)(!1);(0,Uo.useEffect)((()=>{t.current&&(t.current=!1)}),[]);const o=r.current||!t.current&&n!==e;return(0,Uo.useEffect)((()=>{r.current=o}),[o]),o?{value:null!=e?e:"",defaultValue:void 0}:{value:void 0,defaultValue:e}}const lE=(0,Uo.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:o,size:i,value:a,id:s,...l},c){const u=(0,d.useInstanceId)(lE,"toggle-group-control-as-radio-group"),f=s||u,{value:m,defaultValue:p}=sE(a),h=o?e=>{o(null!=e?e:void 0)}:void 0,g=Jw({defaultValue:p,value:m,setValue:h}),v=g.useState("value"),b=g.setValue,y=(0,Uo.useMemo)((()=>({baseId:f,isBlock:!t,size:i,value:v,setValue:b})),[f,t,i,v,b]);return(0,r.createElement)(aE.Provider,{value:y},(0,r.createElement)(oE,{store:g,"aria-label":n,render:(0,r.createElement)(xs,null),...l,id:f,ref:c},e))}));function cE({defaultValue:e,onChange:t,value:n}){const r=void 0!==n,o=r?n:e,[i,a]=(0,Uo.useState)(o);let s;return s=r&&"function"==typeof t?t:r||"function"!=typeof t?a:e=>{t(e),a(e)},[r?n:i,s]}const uE=(0,Uo.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:o,size:i,value:a,id:s,...l},c){const u=(0,d.useInstanceId)(uE,"toggle-group-control-as-button-group"),f=s||u,{value:m,defaultValue:p}=sE(a),[h,g]=cE({defaultValue:p,value:m,onChange:o}),v=(0,Uo.useMemo)((()=>({baseId:f,value:h,setValue:g,isBlock:!t,isDeselectable:!0,size:i})),[f,h,g,t,i]);return(0,r.createElement)(aE.Provider,{value:v},(0,r.createElement)(xs,{"aria-label":n,...l,ref:c,role:"group"},e))}));const dE=os((function(e,t){const{__nextHasNoMarginBottom:n=!1,__next40pxDefaultSize:o=!1,className:i,isAdaptiveWidth:a=!1,isBlock:s=!1,isDeselectable:l=!1,label:c,hideLabelFromVision:u=!1,help:f,onChange:m,size:p="default",value:h,children:g,...v}=rs(e,"ToggleGroupControl"),b=(0,d.useInstanceId)(dE,"toggle-group-control"),y=o&&"default"===p?"__unstable-large":p,x=ns(),w=(0,Uo.useMemo)((()=>x((({isBlock:e,isDeselectable:t,size:n})=>Ps("background:",Ds.ui.background,";border:1px solid transparent;border-radius:",Xg.controlBorderRadius,";display:inline-flex;min-width:0;position:relative;",Yw(n)," ",!t&&Uw(e),";",""))({isBlock:s,isDeselectable:l,size:y}),s&&Kw,i)),[i,x,s,l,y]),E=l?uE:lE;return(0,r.createElement)(iy,{help:f,__nextHasNoMarginBottom:n},!u&&(0,r.createElement)(Xw,null,(0,r.createElement)(iy.VisualLabel,null,c)),(0,r.createElement)(E,{...v,className:w,isAdaptiveWidth:a,label:c,onChange:m,ref:t,size:y,value:h},(0,r.createElement)(Ww,{id:b},g)))}),"ToggleGroupControl"),fE=dE;var mE=Ve((e=>{var t=e,{store:n,name:o,value:i,checked:a}=t,s=E(t,["store","name","value","checked"]);const l=eE();n=n||l;const c=_e(s.id),u=(0,r.useRef)(null),d=Vt(n,(e=>null!=a?a:function(e,t){if(void 0!==t)return null!=e&&null!=t?t===e:!!t}(i,null==e?void 0:e.value)));(0,r.useEffect)((()=>{if(!c)return;if(!d)return;(null==n?void 0:n.getState().activeId)===c||null==n||n.setActiveId(c)}),[n,d,c]);const f=s.onChange,m=function(e,t){return"input"===e&&(!t||"radio"===t)}(Se(u,s.as||"input"),s.type),p=j(s),[h,g]=ke();(0,r.useEffect)((()=>{const e=u.current;e&&(m||(void 0!==d&&(e.checked=d),void 0!==o&&(e.name=o),void 0!==i&&(e.value=`${i}`)))}),[h,m,d,o,i]);const v=we((e=>{if(p)return e.preventDefault(),void e.stopPropagation();m||(e.currentTarget.checked=!0,g()),null==f||f(e),e.defaultPrevented||null==n||n.setValue(i)})),b=s.onClick,y=we((e=>{null==b||b(e),e.defaultPrevented||m||v(e)})),_=s.onFocus,S=we((e=>{if(null==_||_(e),e.defaultPrevented)return;if(!m)return;if(!n)return;const{moves:t,activeId:r}=n.getState();t&&(c&&r!==c||v(e))}));return s=w(x({id:c,role:m?void 0:"radio",type:m?"radio":void 0,"aria-checked":d},s),{ref:Ee(u,s.ref),onChange:v,onClick:y,onFocus:S}),s=Gt(x({store:n,clickOnEnter:!m},s)),x({name:m?o:void 0,value:m?i:void 0,checked:d},s)})),pE=Be((e=>je("input",mE(e))));const hE=bs("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),gE={name:"82a6rk",styles:"flex:1"},vE=({isDeselectable:e,isIcon:t,isPressed:n,size:r})=>Ps("align-items:center;appearance:none;background:transparent;border:none;border-radius:",Xg.controlBorderRadius,";color:",Ds.gray[700],";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;transition:background ",Xg.transitionDurationFast," linear,color ",Xg.transitionDurationFast," linear,font-weight 60ms linear;",As("transition")," user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:",Xg.toggleGroupControlBackgroundColor,";}",e&&yE," ",t&&wE({size:r})," ",n&&bE,";",""),bE=Ps("color:",Ds.white,";&:active{background:transparent;}",""),yE=Ps("color:",Ds.gray[900],";&:focus{box-shadow:inset 0 0 0 1px ",Ds.white,",0 0 0 ",Xg.borderWidthFocus," ",Ds.theme.accent,";outline:2px solid transparent;}",""),xE=bs("div",{target:"et6ln9s0"})("display:flex;font-size:",Xg.fontSize,";line-height:1;"),wE=({size:e="default"})=>Ps("color:",Ds.gray[900],";height:",{default:"30px","__unstable-large":"32px"}[e],";aspect-ratio:1;padding-left:0;padding-right:0;",""),EE=Ps("background:",Ds.gray[900],";border-radius:",Xg.controlBorderRadius,";position:absolute;inset:0;z-index:1;outline:2px solid transparent;outline-offset:-3px;",""),{ButtonContentView:_E,LabelView:SE}=t,CE={duration:0},kE=({showTooltip:e,text:t,children:n})=>e&&t?(0,r.createElement)(ri,{text:t,placement:"top"},n):(0,r.createElement)(r.Fragment,null,n);const PE=os((function e(t,n){const o=Qy(),i=(0,Uo.useContext)(iE),a=rs({...t,id:(0,d.useInstanceId)(e,i.baseId||"toggle-group-control-option-base")},"ToggleGroupControlOptionBase"),{isBlock:s=!1,isDeselectable:l=!1,size:c="default"}=i,{className:u,isIcon:f=!1,value:m,children:p,showTooltip:h=!1,onFocus:g,...v}=a,b=i.value===m,y=ns(),x=(0,Uo.useMemo)((()=>y(s&&gE)),[y,s]),w=(0,Uo.useMemo)((()=>y(vE({isDeselectable:l,isIcon:f,isPressed:b,size:c}),u)),[y,l,f,b,c,u]),E=(0,Uo.useMemo)((()=>y(EE)),[y]),_={...v,className:w,"data-value":m,ref:n};return(0,r.createElement)(SE,{className:x},(0,r.createElement)(kE,{showTooltip:h,text:v["aria-label"]},l?(0,r.createElement)("button",{..._,onFocus:g,"aria-pressed":b,type:"button",onClick:()=>{l&&b?i.setValue(void 0):i.setValue(m)}},(0,r.createElement)(_E,null,p)):(0,r.createElement)(pE,{render:(0,r.createElement)("button",{type:"button",..._,onFocus:e=>{g?.(e),e.defaultPrevented||i.setValue(m)}}),value:m},(0,r.createElement)(_E,null,p))),b?(0,r.createElement)(wh.div,{className:E,transition:o?CE:void 0,role:"presentation",layoutId:"toggle-group-backdrop-shared-layout-id"}):null)}),"ToggleGroupControlOptionBase"),TE=PE;const IE=(0,Uo.forwardRef)((function(e,t){const{icon:n,label:o,...i}=e;return(0,r.createElement)(TE,{...i,isIcon:!0,"aria-label":o,showTooltip:!0,ref:t},(0,r.createElement)(uy,{icon:n}))})),RE=IE,ME=[{label:(0,u.__)("Solid"),icon:Lw,value:"solid"},{label:(0,u.__)("Dashed"),icon:Fw,value:"dashed"},{label:(0,u.__)("Dotted"),icon:Bw,value:"dotted"}];const NE=os((function({onChange:e,...t},n){return(0,r.createElement)(fE,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,ref:n,isDeselectable:!0,onChange:t=>{e?.(t)},...t},ME.map((e=>(0,r.createElement)(RE,{key:e.value,value:e.value,icon:e.icon,label:e.label}))))}),"BorderControlStylePicker");const DE=(0,Uo.forwardRef)((function(e,t){const{className:n,colorValue:o,...i}=e;return(0,r.createElement)("span",{className:c()("component-color-indicator",n),style:{background:o},ref:t,...i})}));var AE=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},OE=function(e){return.2126*AE(e.r)+.7152*AE(e.g)+.0722*AE(e.b)};function zE(e){e.prototype.luminance=function(){return e=OE(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,r,o,i,a,s,l,c=t instanceof e?t:new e(t);return i=this.rgba,a=c.toRgb(),n=(s=OE(i))>(l=OE(a))?(s+.05)/(l+.05):(l+.05)/(s+.05),void 0===(r=2)&&(r=0),void 0===o&&(o=Math.pow(10,r)),Math.floor(o*n)/o+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(a=void 0===(i=(n=t).size)?"normal":i,"AAA"===(o=void 0===(r=n.level)?"AA":r)&&"normal"===a?7:"AA"===o&&"large"===a?3:4.5);var n,r,o,i,a}}const LE=os(((e,t)=>{const{renderContent:n,renderToggle:o,className:i,contentClassName:a,expandOnMobile:s,headerTitle:l,focusOnMount:u,popoverProps:f,onClose:m,onToggle:p,style:h,open:g,defaultOpen:v,position:b,variant:y}=rs(e,"Dropdown");void 0!==b&&qo()("`position` prop in wp.components.Dropdown",{since:"6.2",alternative:"`popoverProps.placement` prop",hint:"Note that the `position` prop will override any values passed through the `popoverProps.placement` prop."});const[x,w]=(0,Uo.useState)(null),E=(0,Uo.useRef)(),[_,S]=cE({defaultValue:v,value:g,onChange:p});function C(){m?.(),S(!1)}const k={isOpen:!!_,onToggle:()=>S(!_),onClose:C},P=!!(f?.anchor||f?.anchorRef||f?.getAnchorRect||f?.anchorRect);return(0,r.createElement)("div",{className:i,ref:(0,d.useMergeRefs)([E,t,w]),tabIndex:-1,style:h},o(k),_&&(0,r.createElement)(bw,{position:b,onClose:C,onFocusOutside:function(){if(!E.current)return;const{ownerDocument:e}=E.current,t=e?.activeElement?.closest('[role="dialog"]');E.current.contains(e.activeElement)||t&&!t.contains(E.current)||C()},expandOnMobile:s,headerTitle:l,focusOnMount:u,offset:13,anchor:P?void 0:x,variant:y,...f,className:c()("components-dropdown__content",f?.className,a)},n(k)))}),"Dropdown"),FE=LE;const BE=os((function(e,t){const n=rs(e,"InputControlSuffixWrapper");return(0,r.createElement)(tg,{marginBottom:0,...n,ref:t})}),"InputControlSuffixWrapper"),jE=bs("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Ds.gray[900],";display:block;font-family:inherit;margin:0;width:100%;max-width:none;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;",(({disabled:e})=>e?Ps({color:Ds.ui.textDisabled},"",""):""),";",xv,";",(({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{if(t)return;const r={default:{height:40,minHeight:40,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},compact:{height:32,minHeight:32,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};e||(r.default=r.compact);return Ps(r[n]||r.default,"","")}),";",(({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{const r={default:16,small:8,compact:8,"__unstable-large":16};e||(r.default=r.compact);const o=r[n]||r.default;return Jh({paddingLeft:o,paddingRight:o+18,...t?{paddingTop:o,paddingBottom:o}:{}})}),";",(({multiple:e})=>({overflow:e?"auto":"hidden"})),";}"),VE=bs("div",{target:"e1mv6sxx1"})("margin-inline-end:",Ah(-1),";line-height:0;"),HE=bs(BE,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",Jh({right:0}),";");const $E=(0,Uo.forwardRef)((function({icon:e,size:t=24,...n},r){return(0,Uo.cloneElement)(e,{width:t,height:t,...n,ref:r})})),WE=(0,r.createElement)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(n.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),UE=()=>(0,r.createElement)(HE,null,(0,r.createElement)(VE,null,(0,r.createElement)($E,{icon:WE,size:18}))),GE=()=>{};const qE=(0,Uo.forwardRef)((function(e,t){const{className:n,disabled:o=!1,help:i,hideLabelFromVision:a,id:s,label:l,multiple:u=!1,onBlur:f=GE,onChange:m,onFocus:p=GE,options:h=[],size:g="default",value:v,labelPosition:b="top",children:y,prefix:x,suffix:w,__next40pxDefaultSize:E=!1,__nextHasNoMarginBottom:_=!1,...S}=Nv(e),[C,k]=(0,Uo.useState)(!1),P=function(e){const t=(0,d.useInstanceId)(qE);return e||`inspector-select-control-${t}`}(s),T=i?`${P}__help`:void 0;if(!h?.length&&!y)return null;const I=c()("components-select-control",n);return(0,r.createElement)(iy,{help:i,id:P,__nextHasNoMarginBottom:_},(0,r.createElement)(Ov,{className:I,disabled:o,hideLabelFromVision:a,id:P,isFocused:C,label:l,size:g,suffix:w||!u&&(0,r.createElement)(UE,null),prefix:x,labelPosition:b,__next40pxDefaultSize:E},(0,r.createElement)(jE,{...S,__next40pxDefaultSize:E,"aria-describedby":T,className:"components-select-control__input",disabled:o,id:P,multiple:u,onBlur:e=>{f(e),k(!1)},onChange:t=>{if(e.multiple){const n=Array.from(t.target.options).filter((({selected:e})=>e)).map((({value:e})=>e));e.onChange?.(n,{event:t})}else e.onChange?.(t.target.value,{event:t})},onFocus:e=>{p(e),k(!0)},ref:t,selectSize:g,value:v},y||h.map(((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return(0,r.createElement)("option",{key:n,value:e.value,disabled:e.disabled,hidden:e.hidden},e.label)})))))})),YE=qE,KE={initial:void 0,fallback:""};const XE=function(e,t=KE){const{initial:n,fallback:r}={...KE,...t},[o,i]=(0,Uo.useState)(e),a=ag(e);return(0,Uo.useEffect)((()=>{a&&o&&i(void 0)}),[a,o]),[function(e=[],t){var n;return null!==(n=e.find(ag))&&void 0!==n?n:t}([e,o,n],r),(0,Uo.useCallback)((e=>{a||i(e)}),[a])]};function ZE(e,t,n){return"number"!=typeof e?null:parseFloat(`${wy(e,t,n)}`)}const JE=30,QE=()=>Ps({height:JE,minHeight:JE},"",""),e_=12,t_=bs("div",{target:"e1epgpqk14"})("-webkit-tap-highlight-color:transparent;align-items:center;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;min-height:40px;",(({__next40pxDefaultSize:e})=>!e&&Ps({minHeight:JE},"","")),";"),n_=bs("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",(({color:e=Ds.ui.borderFocus})=>Ps({color:e},"","")),";",QE,";",(({marks:e,__nextHasNoMarginBottom:t})=>t?"":Ps({marginBottom:e?16:void 0},"","")),";"),r_=bs("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",Jh({marginRight:6}),";"),o_=bs("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",Jh({marginLeft:6}),";"),i_=bs("span",{target:"e1epgpqk10"})("background-color:",Ds.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",4,"px;position:absolute;margin-top:",13,"px;top:0;border-radius:",4,"px;",(({disabled:e,railColor:t})=>{let n=t||"";return e&&(n=Ds.ui.backgroundDisabled),Ps({background:n},"","")}),";"),a_=bs("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",4,"px;height:",4,"px;pointer-events:none;display:block;position:absolute;margin-top:",13,"px;top:0;",(({disabled:e,trackColor:t})=>{let n=t||"currentColor";return e&&(n=Ds.gray[400]),Ps({background:n},"","")}),";"),s_=bs("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),l_=bs("span",{target:"e1epgpqk7"})("height:",e_,"px;left:0;position:absolute;top:-4px;width:1px;",(({disabled:e,isFilled:t})=>{let n=t?"currentColor":Ds.gray[300];return e&&(n=Ds.gray[400]),Ps({backgroundColor:n},"","")}),";"),c_=bs("span",{target:"e1epgpqk6"})("color:",Ds.gray[300],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(({isFilled:e})=>Ps({color:e?Ds.gray[700]:Ds.gray[300]},"","")),";"),u_=({disabled:e})=>Ps("background-color:",e?Ds.gray[400]:Ds.theme.accent,";",""),d_=bs("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",e_,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",e_,"px;border-radius:50%;",u_,";",Jh({marginLeft:-10}),";",Jh({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),f_=bs("span",{target:"e1epgpqk4"})("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;",u_,";",(({isFocused:e})=>e?Ps("&::before{content:' ';position:absolute;background-color:",Ds.theme.accent,";opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):""),";"),m_=bs("input",{target:"e1epgpqk3"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",6,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",e_,"px );");var p_={name:"1cypxip",styles:"top:-80%"},h_={name:"1lr98c4",styles:"bottom:-80%"};const g_=bs("span",{target:"e1epgpqk2"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",(({show:e})=>Ps({opacity:e?1:0},"","")),";",(({position:e})=>"bottom"===e?h_:p_),";",As("transition"),";",Jh({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),v_=bs(Ry,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;input[type='number']&{",QE,";}",Jh({marginLeft:`${Ah(4)} !important`}),";"),b_=bs("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",QE,";}",Jh({marginLeft:8}),";");const y_=(0,Uo.forwardRef)((function(e,t){const{describedBy:n,label:o,value:i,...a}=e;return(0,r.createElement)(m_,{...a,"aria-describedby":n,"aria-label":o,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:i})}));function x_(e){const{className:t,isFilled:n=!1,label:o,style:i={},...a}=e,s=c()("components-range-control__mark",n&&"is-filled",t),l=c()("components-range-control__mark-label",n&&"is-filled");return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l_,{...a,"aria-hidden":"true",className:s,isFilled:n,style:i}),o&&(0,r.createElement)(c_,{"aria-hidden":"true",className:l,isFilled:n,style:i},o))}function w_(e){const{disabled:t=!1,marks:n=!1,min:o=0,max:i=100,step:a=1,value:s=0,...l}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i_,{disabled:t,...l}),n&&(0,r.createElement)(E_,{disabled:t,marks:n,min:o,max:i,step:a,value:s}))}function E_(e){const{disabled:t=!1,marks:n=!1,min:o=0,max:i=100,step:a=1,value:s=0}=e,l=function({marks:e,min:t=0,max:n=100,step:r=1,value:o=0}){if(!e)return[];const i=n-t;if(!Array.isArray(e)){e=[];const n=1+Math.round(i/r);for(;n>e.push({value:r*e.length+t}););}const a=[];return e.forEach(((e,r)=>{if(e.value<t||e.value>n)return;const s=`mark-${r}`,l=e.value<=o,c=(e.value-t)/i*100+"%",d={[(0,u.isRTL)()?"right":"left"]:c};a.push({...e,isFilled:l,key:s,style:d})})),a}({marks:n,min:o,max:i,step:"any"===a?1:a,value:s});return(0,r.createElement)(s_,{"aria-hidden":"true",className:"components-range-control__marks"},l.map((e=>(0,r.createElement)(x_,{...e,key:e.key,"aria-hidden":"true",disabled:t}))))}function __(e){const{className:t,inputRef:n,tooltipPosition:o,show:i=!1,style:a={},value:s=0,renderTooltipContent:l=(e=>e),zIndex:u=100,...d}=e,f=function({inputRef:e,tooltipPosition:t}){const[n,r]=(0,Uo.useState)(),o=(0,Uo.useCallback)((()=>{e&&e.current&&r(t)}),[t,e]);return(0,Uo.useEffect)((()=>{o()}),[o]),(0,Uo.useEffect)((()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}))),n}({inputRef:n,tooltipPosition:o}),m=c()("components-simple-tooltip",t),p={...a,zIndex:u};return(0,r.createElement)(g_,{...d,"aria-hidden":i,className:m,position:f,show:i,role:"tooltip",style:p},l(s))}const S_=()=>{};const C_=(0,Uo.forwardRef)((function e(t,n){const{__nextHasNoMarginBottom:o=!1,afterIcon:i,allowReset:a=!1,beforeIcon:s,className:l,color:f=Ds.theme.accent,currentInput:m,disabled:p=!1,help:h,hideLabelFromVision:g=!1,initialPosition:v,isShiftStepEnabled:b=!0,label:y,marks:x=!1,max:w=100,min:E=0,onBlur:_=S_,onChange:S=S_,onFocus:C=S_,onMouseLeave:k=S_,onMouseMove:P=S_,railColor:T,renderTooltipContent:I=(e=>e),resetFallbackValue:R,__next40pxDefaultSize:M=!1,shiftStep:N=10,showTooltip:D,step:A=1,trackColor:O,value:z,withInputField:L=!0,...F}=t,[B,j]=function(e){const{min:t,max:n,value:r,initial:o}=e,[i,a]=XE(ZE(r,t,n),{initial:ZE(null!=o?o:null,t,n),fallback:null});return[i,(0,Uo.useCallback)((e=>{a(null===e?null:ZE(e,t,n))}),[t,n,a])]}({min:E,max:w,value:null!=z?z:null,initial:v}),V=(0,Uo.useRef)(!1);let H=D,$=L;"any"===A&&(H=!1,$=!1);const[W,U]=(0,Uo.useState)(H),[G,q]=(0,Uo.useState)(!1),Y=(0,Uo.useRef)(),K=Y.current?.matches(":focus"),X=!p&&G,Z=null===B,J=Z?"":void 0!==B?B:m,Q=Z?(w-E)/2+E:B,ee=`${wy(Z?50:(B-E)/(w-E)*100,0,100)}%`,te=c()("components-range-control",l),ne=c()("components-range-control__wrapper",!!x&&"is-marked"),re=(0,d.useInstanceId)(e,"inspector-range-control"),oe=h?`${re}__help`:void 0,ie=!1!==H&&Number.isFinite(B),ae=()=>{let e=parseFloat(`${R}`),t=e;isNaN(e)&&(e=null,t=void 0),j(e),S(t)},se={[(0,u.isRTL)()?"right":"left"]:ee};return(0,r.createElement)(iy,{__nextHasNoMarginBottom:o,className:te,label:y,hideLabelFromVision:g,id:`${re}`,help:h},(0,r.createElement)(t_,{className:"components-range-control__root",__next40pxDefaultSize:M},s&&(0,r.createElement)(r_,null,(0,r.createElement)(uy,{icon:s})),(0,r.createElement)(n_,{__nextHasNoMarginBottom:o,className:ne,color:f,marks:!!x},(0,r.createElement)(y_,{...F,className:"components-range-control__slider",describedBy:oe,disabled:p,id:`${re}`,label:y,max:w,min:E,onBlur:e=>{_(e),q(!1),U(!1)},onChange:e=>{const t=parseFloat(e.target.value);j(t),S(t)},onFocus:e=>{C(e),q(!0),U(!0)},onMouseMove:P,onMouseLeave:k,ref:(0,d.useMergeRefs)([Y,n]),step:A,value:null!=J?J:void 0}),(0,r.createElement)(w_,{"aria-hidden":!0,disabled:p,marks:x,max:w,min:E,railColor:T,step:A,value:Q}),(0,r.createElement)(a_,{"aria-hidden":!0,className:"components-range-control__track",disabled:p,style:{width:ee},trackColor:O}),(0,r.createElement)(d_,{className:"components-range-control__thumb-wrapper",style:se,disabled:p},(0,r.createElement)(f_,{"aria-hidden":!0,isFocused:X,disabled:p})),ie&&(0,r.createElement)(__,{className:"components-range-control__tooltip",inputRef:Y,tooltipPosition:"bottom",renderTooltipContent:I,show:K||W,style:se,value:B})),i&&(0,r.createElement)(o_,null,(0,r.createElement)(uy,{icon:i})),$&&(0,r.createElement)(v_,{"aria-label":y,className:"components-range-control__number",disabled:p,inputMode:"decimal",isShiftStepEnabled:b,max:w,min:E,onBlur:()=>{V.current&&(ae(),V.current=!1)},onChange:e=>{let t=parseFloat(e);j(t),isNaN(t)?a&&(V.current=!0):((t<E||t>w)&&(t=ZE(t,E,w)),S(t),V.current=!1)},shiftStep:N,size:M?"__unstable-large":"default",__unstableInputWidth:Ah(M?20:16),step:A,value:J}),a&&(0,r.createElement)(b_,null,(0,r.createElement)(my,{className:"components-range-control__reset",disabled:p||void 0===B,variant:"secondary",size:"small",onClick:ae},(0,u.__)("Reset")))))})),k_=C_,P_=bs(Ry,{target:"ez9hsf47"})(yv,"{width:",Ah(24),";}"),T_=bs(YE,{target:"ez9hsf46"})("margin-left:",Ah(-2),";width:5em;select:not( :focus )~",kv,kv,kv,"{border-color:transparent;}"),I_=bs(k_,{target:"ez9hsf45"})("flex:1;margin-right:",Ah(2),";"),R_=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${Ah(2)} );\n\tmargin-left: ${Ah(1)};\n}`,M_=bs("div",{target:"ez9hsf44"})("padding-top:",Ah(2),";padding-right:0;padding-left:0;padding-bottom:0;"),N_=bs(Py,{target:"ez9hsf43"})("padding-left:",Ah(4),";padding-right:",Ah(4),";"),D_=bs($h,{target:"ez9hsf42"})("padding-top:",Ah(4),";padding-left:",Ah(4),";padding-right:",Ah(3),";padding-bottom:",Ah(5),";"),A_=bs("div",{target:"ez9hsf41"})(Kb,";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",Ah(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",Ah(2),";}.react-colorful__pointer{height:16px;width:16px;border:none;box-shadow:0 0 2px 0 rgba( 0, 0, 0, 0.25 );outline:2px solid transparent;}.react-colorful__pointer-fill{box-shadow:inset 0 0 0 ",Xg.borderWidthFocus," #fff;}",R_,";"),O_=bs(my,{target:"ez9hsf40"})("&&&&&{min-width:",Ah(6),";padding:0;>svg{margin-right:0;}}"),z_=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})),L_=e=>{const{color:t,colorType:n}=e,[o,i]=(0,Uo.useState)(null),a=(0,Uo.useRef)(),s=(0,d.useCopyToClipboard)((()=>{switch(n){case"hsl":return t.toHslString();case"rgb":return t.toRgbString();default:return t.toHex()}}),(()=>{a.current&&clearTimeout(a.current),i(t.toHex()),a.current=setTimeout((()=>{i(null),a.current=void 0}),3e3)}));return(0,Uo.useEffect)((()=>()=>{a.current&&clearTimeout(a.current)}),[]),(0,r.createElement)(ri,{delay:0,hideOnClick:!1,text:o===t.toHex()?(0,u.__)("Copied!"):(0,u.__)("Copy")},(0,r.createElement)(O_,{size:"small",ref:s,icon:z_,showTooltip:!1}))},F_=({min:e,max:t,label:n,abbreviation:o,onChange:i,value:a})=>(0,r.createElement)(Py,{spacing:4},(0,r.createElement)(P_,{min:e,max:t,label:n,hideLabelFromVision:!0,value:a,onChange:e=>{i(e?"string"!=typeof e?e:parseInt(e,10):0)},prefix:(0,r.createElement)(tg,{as:mv,paddingLeft:Ah(4),color:Ds.theme.accent,lineHeight:1},o),spinControls:"none",size:"__unstable-large"}),(0,r.createElement)(I_,{__nextHasNoMarginBottom:!0,label:n,hideLabelFromVision:!0,min:e,max:t,value:a,onChange:i,withInputField:!1})),B_=({color:e,onChange:t,enableAlpha:n})=>{const{r:o,g:i,b:a,a:s}=e.toRgb();return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(F_,{min:0,max:255,label:"Red",abbreviation:"R",value:o,onChange:e=>t(Bg({r:e,g:i,b:a,a:s}))}),(0,r.createElement)(F_,{min:0,max:255,label:"Green",abbreviation:"G",value:i,onChange:e=>t(Bg({r:o,g:e,b:a,a:s}))}),(0,r.createElement)(F_,{min:0,max:255,label:"Blue",abbreviation:"B",value:a,onChange:e=>t(Bg({r:o,g:i,b:e,a:s}))}),n&&(0,r.createElement)(F_,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*s),onChange:e=>t(Bg({r:o,g:i,b:a,a:e/100}))}))},j_=({color:e,onChange:t,enableAlpha:n})=>{const o=(0,Uo.useMemo)((()=>e.toHsl()),[e]),[i,a]=(0,Uo.useState)({...o}),s=e.isEqual(Bg(i));(0,Uo.useEffect)((()=>{s||a(o)}),[o,s]);const l=s?i:o,c=n=>{const r=Bg({...l,...n});e.isEqual(r)?a((e=>({...e,...n}))):t(r)};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(F_,{min:0,max:359,label:"Hue",abbreviation:"H",value:l.h,onChange:e=>{c({h:e})}}),(0,r.createElement)(F_,{min:0,max:100,label:"Saturation",abbreviation:"S",value:l.s,onChange:e=>{c({s:e})}}),(0,r.createElement)(F_,{min:0,max:100,label:"Lightness",abbreviation:"L",value:l.l,onChange:e=>{c({l:e})}}),n&&(0,r.createElement)(F_,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*l.a),onChange:e=>{c({a:e/100})}}))},V_=({color:e,onChange:t,enableAlpha:n})=>(0,r.createElement)(sy,{prefix:(0,r.createElement)(tg,{as:mv,marginLeft:Ah(4),color:Ds.theme.accent,lineHeight:1},"#"),value:e.toHex().slice(1).toUpperCase(),onChange:e=>{if(!e)return;const n=e.startsWith("#")?e:"#"+e;t(Bg(n))},maxLength:n?9:7,label:(0,u.__)("Hex color"),hideLabelFromVision:!0,size:"__unstable-large",__unstableStateReducer:(e,t)=>{const n=t.payload?.event?.nativeEvent;if("insertFromPaste"!==n?.inputType)return{...e};const r=e.value?.startsWith("#")?e.value.slice(1).toUpperCase():e.value?.toUpperCase();return{...e,value:r}},__unstableInputWidth:"9em"}),H_=({colorType:e,color:t,onChange:n,enableAlpha:o})=>{const i={color:t,onChange:n,enableAlpha:o};switch(e){case"hsl":return(0,r.createElement)(j_,{...i});case"rgb":return(0,r.createElement)(B_,{...i});default:return(0,r.createElement)(V_,{...i})}};function $_(){return($_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function W_(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function U_(e){var t=(0,r.useRef)(e),n=(0,r.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var G_=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},q_=function(e){return"touches"in e},Y_=function(e){return e&&e.ownerDocument.defaultView||self},K_=function(e,t,n){var r=e.getBoundingClientRect(),o=q_(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:G_((o.pageX-(r.left+Y_(e).pageXOffset))/r.width),top:G_((o.pageY-(r.top+Y_(e).pageYOffset))/r.height)}},X_=function(e){!q_(e)&&e.preventDefault()},Z_=r.memo((function(e){var t=e.onMove,n=e.onKey,o=W_(e,["onMove","onKey"]),i=(0,r.useRef)(null),a=U_(t),s=U_(n),l=(0,r.useRef)(null),c=(0,r.useRef)(!1),u=(0,r.useMemo)((function(){var e=function(e){X_(e),(q_(e)?e.touches.length>0:e.buttons>0)&&i.current?a(K_(i.current,e,l.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=c.current,o=Y_(i.current),a=n?o.addEventListener:o.removeEventListener;a(r?"touchmove":"mousemove",e),a(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=i.current;if(r&&(X_(t),!function(e,t){return t&&!q_(e)}(t,c.current)&&r)){if(q_(t)){c.current=!0;var o=t.changedTouches||[];o.length&&(l.current=o[0].identifier)}r.focus(),a(K_(r,t,l.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),s({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[s,a]),d=u[0],f=u[1],m=u[2];return(0,r.useEffect)((function(){return m}),[m]),r.createElement("div",$_({},o,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:i,onKeyDown:f,tabIndex:0,role:"slider"}))})),J_=function(e){return e.filter(Boolean).join(" ")},Q_=function(e){var t=e.color,n=e.left,o=e.top,i=void 0===o?.5:o,a=J_(["react-colorful__pointer",e.className]);return r.createElement("div",{className:a,style:{top:100*i+"%",left:100*n+"%"}},r.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},eS=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},tS=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:eS(e.h),s:eS(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:eS(o/2),a:eS(r,2)}}),nS=function(e){var t=tS(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},rS=function(e){var t=tS(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},oS=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:eS(255*[r,s,a,a,l,r][c]),g:eS(255*[l,r,r,s,a,a][c]),b:eS(255*[a,a,l,r,r,s][c]),a:eS(o,2)}},iS=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?sS({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},aS=iS,sS=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:eS(60*(s<0?s+6:s)),s:eS(i?a/i*100:0),v:eS(i/255*100),a:o}},lS=r.memo((function(e){var t=e.hue,n=e.onChange,o=J_(["react-colorful__hue",e.className]);return r.createElement("div",{className:o},r.createElement(Z_,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:G_(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":eS(t),"aria-valuemax":"360","aria-valuemin":"0"},r.createElement(Q_,{className:"react-colorful__hue-pointer",left:t/360,color:nS({h:t,s:100,v:100,a:1})})))})),cS=r.memo((function(e){var t=e.hsva,n=e.onChange,o={backgroundColor:nS({h:t.h,s:100,v:100,a:1})};return r.createElement("div",{className:"react-colorful__saturation",style:o},r.createElement(Z_,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:G_(t.s+100*e.left,0,100),v:G_(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+eS(t.s)+"%, Brightness "+eS(t.v)+"%"},r.createElement(Q_,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:nS(t)})))})),uS=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},dS=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function fS(e,t,n){var o=U_(n),i=(0,r.useState)((function(){return e.toHsva(t)})),a=i[0],s=i[1],l=(0,r.useRef)({color:t,hsva:a});(0,r.useEffect)((function(){if(!e.equal(t,l.current.color)){var n=e.toHsva(t);l.current={hsva:n,color:t},s(n)}}),[t,e]),(0,r.useEffect)((function(){var t;uS(a,l.current.hsva)||e.equal(t=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:t},o(t))}),[a,e,o]);var c=(0,r.useCallback)((function(e){s((function(t){return Object.assign({},t,e)}))}),[]);return[a,c]}var mS,pS="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,hS=new Map,gS=function(e){pS((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!hS.has(t)){var n=t.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',hS.set(t,n);var r=mS||o.nc;r&&n.setAttribute("nonce",r),t.head.appendChild(n)}}),[])},vS=function(e){var t=e.className,n=e.colorModel,o=e.color,i=void 0===o?n.defaultColor:o,a=e.onChange,s=W_(e,["className","colorModel","color","onChange"]),l=(0,r.useRef)(null);gS(l);var c=fS(n,i,a),u=c[0],d=c[1],f=J_(["react-colorful",t]);return r.createElement("div",$_({},s,{ref:l,className:f}),r.createElement(cS,{hsva:u,onChange:d}),r.createElement(lS,{hue:u.h,onChange:d,className:"react-colorful__last-control"}))},bS=function(e){var t=e.className,n=e.hsva,o=e.onChange,i={backgroundImage:"linear-gradient(90deg, "+rS(Object.assign({},n,{a:0}))+", "+rS(Object.assign({},n,{a:1}))+")"},a=J_(["react-colorful__alpha",t]),s=eS(100*n.a);return r.createElement("div",{className:a},r.createElement("div",{className:"react-colorful__alpha-gradient",style:i}),r.createElement(Z_,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:G_(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},r.createElement(Q_,{className:"react-colorful__alpha-pointer",left:n.a,color:rS(n)})))},yS=function(e){var t=e.className,n=e.colorModel,o=e.color,i=void 0===o?n.defaultColor:o,a=e.onChange,s=W_(e,["className","colorModel","color","onChange"]),l=(0,r.useRef)(null);gS(l);var c=fS(n,i,a),u=c[0],d=c[1],f=J_(["react-colorful",t]);return r.createElement("div",$_({},s,{ref:l,className:f}),r.createElement(cS,{hsva:u,onChange:d}),r.createElement(lS,{hue:u.h,onChange:d}),r.createElement(bS,{hsva:u,onChange:d,className:"react-colorful__last-control"}))},xS={defaultColor:"rgba(0, 0, 0, 1)",toHsva:iS,fromHsva:function(e){var t=oS(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:dS},wS=function(e){return r.createElement(yS,$_({},e,{colorModel:xS}))},ES={defaultColor:"rgb(0, 0, 0)",toHsva:aS,fromHsva:function(e){var t=oS(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:dS},_S=function(e){return r.createElement(vS,$_({},e,{colorModel:ES}))};const SS=({color:e,enableAlpha:t,onChange:n,onDragStart:o,onDragEnd:i,containerEl:a})=>{const s=t?wS:_S,l=(0,Uo.useMemo)((()=>e.toRgbString()),[e]);return(({containerEl:e,onDragStart:t,onDragEnd:n})=>{const r=(0,Uo.useRef)(!1),o=(0,Uo.useRef)(!1);(0,Uo.useEffect)((()=>{if(!e||!t&&!n)return;const i=[e.querySelector(".react-colorful__saturation"),e.querySelector(".react-colorful__hue"),e.querySelector(".react-colorful__alpha")].filter((e=>!!e));if(0===i.length)return;const a=e.ownerDocument,s=e=>{r.current=!1,o.current=!1,n?.(e)},l=e=>{r.current=!0,t?.(e)},c=e=>{const t=0===e.buttons;o.current&&t&&s(e)};return i.forEach((e=>e.addEventListener("pointerdown",l))),a.addEventListener("pointerup",s),a.addEventListener("pointerenter",c),a.addEventListener("pointerleave",(()=>{o.current=r.current})),()=>{i.forEach((e=>e.removeEventListener("pointerdown",l))),a.removeEventListener("pointerup",s),a.removeEventListener("pointerenter",c),a.removeEventListener("pointerleave",s)}}),[t,n,e])})({containerEl:a,onDragStart:o,onDragEnd:i}),(0,r.createElement)(s,{color:l,onChange:e=>{n(Bg(e))}})};Vg([Hg]);const CS=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],kS=os(((e,t)=>{const{enableAlpha:n=!1,color:o,onChange:i,defaultValue:a="#fff",copyFormat:s,onPickerDragStart:l,onPickerDragEnd:c,...f}=rs(e,"ColorPicker"),[m,p]=(0,Uo.useState)(null),[h,g]=cE({onChange:i,value:o,defaultValue:a}),v=(0,Uo.useMemo)((()=>Bg(h||"")),[h]),b=(0,d.useDebounce)(g),y=(0,Uo.useCallback)((e=>{b(e.toHex())}),[b]),[x,w]=(0,Uo.useState)(s||"hex");return(0,r.createElement)(A_,{ref:(0,d.useMergeRefs)([e=>{p(e)},t]),...f},(0,r.createElement)(SS,{containerEl:m,onChange:y,color:v,enableAlpha:n,onDragStart:l,onDragEnd:c}),(0,r.createElement)(M_,null,(0,r.createElement)(N_,{justify:"space-between"},(0,r.createElement)(T_,{__nextHasNoMarginBottom:!0,options:CS,value:x,onChange:e=>w(e),label:(0,u.__)("Color format"),hideLabelFromVision:!0}),(0,r.createElement)(L_,{color:v,colorType:s||x})),(0,r.createElement)(D_,{direction:"column",gap:2},(0,r.createElement)(H_,{colorType:x,color:v,onChange:y,enableAlpha:n}))))}),"ColorPicker"),PS=kS;function TS(e){if(void 0!==e)return"string"==typeof e?e:e.hex?e.hex:void 0}const IS=Si((e=>{const t=Bg(e),n=t.toHex(),r=t.toRgb(),o=t.toHsv(),i=t.toHsl();return{hex:n,rgb:r,hsv:o,hsl:i,source:"hex",oldHue:i.h}}));function RS(e){const{onChangeComplete:t}=e,n=(0,Uo.useCallback)((e=>{t(IS(e))}),[t]);return function(e){return void 0!==e.onChangeComplete||void 0!==e.disableAlpha||"string"==typeof e.color?.hex}(e)?{color:TS(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}const MS=e=>(0,r.createElement)(PS,{...RS(e)}),NS=(0,Uo.createContext)({}),DS=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));const AS=(0,Uo.forwardRef)((function(e,t){const{isPressed:n,...o}=e;return(0,r.createElement)(my,{...o,"aria-pressed":n,ref:t})}));const OS=(0,Uo.forwardRef)((function(e,t){const{id:n,isSelected:o,compositeStore:i,...a}=e,s=i.useState("activeId");return o&&!s&&i.setActiveId(n),(0,r.createElement)(qt,{render:(0,r.createElement)(my,{...a,role:"option","aria-selected":!!o,ref:t}),store:i,id:n})}));function zS(e){const{actions:t,options:n,baseId:o,className:i,loop:a=!0,children:s,...l}=e,c=rl({focusLoop:a,rtl:(0,u.isRTL)()}),d={baseId:o,compositeStore:c};return(0,r.createElement)("div",{className:i},(0,r.createElement)(NS.Provider,{value:d},(0,r.createElement)(al,{...l,id:o,store:c,role:"listbox"},n),s,t))}function LS(e){const{actions:t,options:n,children:o,baseId:i,...a}=e;return(0,r.createElement)("div",{...a,id:i},(0,r.createElement)(NS.Provider,{value:{baseId:i}},n,o,t))}function FS(e){const{asButtons:t,actions:n,options:o,children:i,className:a,...s}=e,l=(0,d.useInstanceId)(FS,"components-circular-option-picker",s.id),u=t?LS:zS,f=n?(0,r.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},n):void 0,m=(0,r.createElement)("div",{className:"components-circular-option-picker__swatches"},o);return(0,r.createElement)(u,{...s,baseId:l,className:c()("components-circular-option-picker",a),actions:f,options:m},i)}FS.Option=function e({className:t,isSelected:n,selectedIconProps:o={},tooltipText:i,...a}){const{baseId:s,compositeStore:l}=(0,Uo.useContext)(NS),u={id:(0,d.useInstanceId)(e,s||"components-circular-option-picker__option"),className:"components-circular-option-picker__option",...a},f=l?(0,r.createElement)(OS,{...u,compositeStore:l,isSelected:n}):(0,r.createElement)(AS,{...u,isPressed:n});return(0,r.createElement)("div",{className:c()(t,"components-circular-option-picker__option-wrapper")},i?(0,r.createElement)(ri,{text:i},f):f,n&&(0,r.createElement)($E,{icon:DS,...o}))},FS.OptionGroup=function({className:e,options:t,...n}){const o="aria-label"in n||"aria-labelledby"in n?"group":void 0;return(0,r.createElement)("div",{...n,role:o,className:c()("components-circular-option-picker__option-group","components-circular-option-picker__swatches",e)},t)},FS.ButtonAction=function({className:e,children:t,...n}){return(0,r.createElement)(my,{className:c()("components-circular-option-picker__clear",e),variant:"tertiary",...n},t)},FS.DropdownLinkAction=function({buttonProps:e,className:t,dropdownProps:n,linkText:o}){return(0,r.createElement)(FE,{className:c()("components-circular-option-picker__dropdown-link-action",t),renderToggle:({isOpen:t,onToggle:n})=>(0,r.createElement)(my,{"aria-expanded":t,"aria-haspopup":"true",onClick:n,variant:"link",...e},o),...n})};const BS=FS;const jS=os((function(e,t){const n=function(e){const{expanded:t=!1,alignment:n="stretch",...r}=rs(e,"VStack");return ky({direction:"column",expanded:t,alignment:n,...r})}(e);return(0,r.createElement)(xs,{...n,ref:t})}),"VStack");const VS=os((function(e,t){const n=fg(e);return(0,r.createElement)(xs,{as:"span",...n,ref:t})}),"Truncate");const HS=os((function(e,t){const n=function(e){const{as:t,level:n=2,color:r=Ds.gray[900],isBlock:o=!0,weight:i=Xg.fontWeightHeading,...a}=rs(e,"Heading"),s=t||`h${n}`,l={};return"string"==typeof s&&"h"!==s[0]&&(l.role="heading",l["aria-level"]="string"==typeof n?parseInt(n):n),{...fv({color:r,isBlock:o,weight:i,size:uv(n),...a}),...l,as:s}}(e);return(0,r.createElement)(xs,{...n,ref:t})}),"Heading"),$S=HS;const WS=bs($S,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),US=bs("div",{target:"eovvns30"})("margin-left:",Ah(-2),";margin-right:",Ah(-2),";&:first-of-type{margin-top:",Ah(-2),";}&:last-of-type{margin-bottom:",Ah(-2),";}",(({paddingSize:e="small"})=>{if("none"===e)return;const t={small:Ah(2),medium:Ah(4)};return Ps("padding:",t[e]||t.small,";","")}),";");const GS=os((function(e,t){const{paddingSize:n="small",...o}=rs(e,"DropdownContentWrapper");return(0,r.createElement)(US,{...o,paddingSize:n,ref:t})}),"DropdownContentWrapper");Vg([Hg,zE]);const qS=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.colors)&&!("color"in t);var t}));function YS({className:e,clearColor:t,colors:n,onChange:o,value:i,...a}){const s=(0,Uo.useMemo)((()=>n.map((({color:e,name:n},a)=>{const s=Bg(e),l=i===e;return(0,r.createElement)(BS.Option,{key:`${e}-${a}`,isSelected:l,selectedIconProps:l?{fill:s.contrast()>s.contrast("#000")?"#fff":"#000"}:{},tooltipText:n||(0,u.sprintf)((0,u.__)("Color code: %s"),e),style:{backgroundColor:e,color:e},onClick:l?t:()=>o(e,a),"aria-label":n?(0,u.sprintf)((0,u.__)("Color: %s"),n):(0,u.sprintf)((0,u.__)("Color code: %s"),e)})}))),[n,i,o,t]);return(0,r.createElement)(BS.OptionGroup,{className:e,options:s,...a})}function KS({className:e,clearColor:t,colors:n,onChange:o,value:i,headingLevel:a}){const s=(0,d.useInstanceId)(KS,"color-palette");return 0===n.length?null:(0,r.createElement)(jS,{spacing:3,className:e},n.map((({name:e,colors:n},l)=>{const c=`${s}-${l}`;return(0,r.createElement)(jS,{spacing:2,key:l},(0,r.createElement)(WS,{id:c,level:a},e),(0,r.createElement)(YS,{clearColor:t,colors:n,onChange:e=>o(e,l),value:i,"aria-labelledby":c}))})))}function XS({isRenderedInSidebar:e,popoverProps:t,...n}){const o=(0,Uo.useMemo)((()=>({shift:!0,resize:!1,...e?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...t})),[e,t]);return(0,r.createElement)(FE,{contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:o,...n})}Vg([Hg,zE]);const ZS=(0,Uo.forwardRef)((function(e,t){const{asButtons:n,loop:o,clearable:i=!0,colors:a=[],disableCustomColors:s=!1,enableAlpha:l=!1,onChange:d,value:f,__experimentalIsRenderedInSidebar:m=!1,headingLevel:p=2,"aria-label":h,"aria-labelledby":g,...v}=e,[b,y]=(0,Uo.useState)(f),x=(0,Uo.useCallback)((()=>d(void 0)),[d]),w=(0,Uo.useCallback)((e=>{y(((e,t)=>{if(!/^var\(/.test(null!=e?e:"")||null===t)return e;const{ownerDocument:n}=t,{defaultView:r}=n,o=r?.getComputedStyle(t).backgroundColor;return o?Bg(o).toHex():e})(f,e))}),[f]),E=qS(a),_=(0,Uo.useMemo)((()=>((e,t=[],n=!1)=>{if(!e)return"";const r=/^var\(/.test(e),o=r?e:Bg(e).toHex(),i=n?t:[{colors:t}];for(const{colors:e}of i)for(const{name:t,color:n}of e)if(o===(r?n:Bg(n).toHex()))return t;return(0,u.__)("Custom")})(f,a,E)),[f,a,E]),S=f?.startsWith("#"),C=f?.replace(/^var\((.+)\)$/,"$1"),k=C?(0,u.sprintf)((0,u.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),_,C):(0,u.__)("Custom color picker."),P={clearColor:x,onChange:d,value:f},T=!!i&&(0,r.createElement)(BS.ButtonAction,{onClick:x},(0,u.__)("Clear"));let I;if(n)I={asButtons:!0};else{const e={asButtons:!1,loop:o};I=h?{...e,"aria-label":h}:g?{...e,"aria-labelledby":g}:{...e,"aria-label":(0,u.__)("Custom color picker.")}}return(0,r.createElement)(jS,{spacing:3,ref:t,...v},!s&&(0,r.createElement)(XS,{isRenderedInSidebar:m,renderContent:()=>(0,r.createElement)(GS,{paddingSize:"none"},(0,r.createElement)(MS,{color:b,onChange:e=>d(e),enableAlpha:l})),renderToggle:({isOpen:e,onToggle:t})=>(0,r.createElement)(jS,{className:"components-color-palette__custom-color-wrapper",spacing:0},(0,r.createElement)("button",{ref:w,className:"components-color-palette__custom-color-button","aria-expanded":e,"aria-haspopup":"true",onClick:t,"aria-label":k,style:{background:f},type:"button"}),(0,r.createElement)(jS,{className:"components-color-palette__custom-color-text-wrapper",spacing:.5},(0,r.createElement)(VS,{className:"components-color-palette__custom-color-name"},f?_:(0,u.__)("No color selected")),(0,r.createElement)(VS,{className:c()("components-color-palette__custom-color-value",{"components-color-palette__custom-color-value--is-hex":S})},C)))}),(0,r.createElement)(BS,{...I,actions:T,options:E?(0,r.createElement)(KS,{...P,headingLevel:p,colors:a,value:f}):(0,r.createElement)(YS,{...P,colors:a,value:f})}))})),JS=ZS,QS=bs(Ry,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",kv,"{transition:box-shadow 0.1s linear;}}"),eC=({selectSize:e})=>({small:Ps("box-sizing:border-box;padding:2px 1px;width:20px;color:",Ds.gray[800],";font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;",""),default:Ps("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",Ah(2),";padding:",Ah(1),";color:",Ds.theme.accent,";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;","")}[e]),tC=bs("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",eC,";color:",Ds.gray[900],";}"),nC=bs("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",eC,";",(({selectSize:e="default"})=>({small:Ps("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",Jh({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",Ds.gray[100],";}&:focus{border:1px solid ",Ds.ui.borderFocus,";box-shadow:inset 0 0 0 ",Xg.borderWidth+" "+Ds.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),default:Ps("display:flex;justify-content:center;align-items:center;&:hover{color:",Ds.ui.borderFocus,";box-shadow:inset 0 0 0 ",Xg.borderWidth+" "+Ds.ui.borderFocus,";outline:",Xg.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",Xg.borderWidthFocus+" "+Ds.ui.borderFocus,";outline:",Xg.borderWidthFocus," solid transparent;}","")}[e])),";&:not( :disabled ){cursor:pointer;}}");const rC={name:"f3vz0n",styles:"font-weight:500"},oC=Ps("box-shadow:inset ",Xg.controlBoxShadowFocus,";",""),iC=Ps("border:0;padding:0;margin:0;",Kb,";",""),aC=Ps(QS,"{flex:0 0 auto;}",""),sC=Ps("background:#fff;&&>button{aspect-ratio:1;padding:0;display:flex;align-items:center;justify-content:center;",Jh({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",Xg.borderWidth," solid ",Ds.ui.border,";&:focus,&:hover:not( :disabled ){",oC," border-color:",Ds.ui.borderFocus,";z-index:1;position:relative;}}",""),lC=(e,t)=>{const{style:n}=e||{};return Ps("border-radius:9999px;border:2px solid transparent;",n?(e=>{const{color:t,style:n}=e||{},r=n&&"none"!==n?Ds.gray[300]:void 0;return Ps("border-style:","none"===n?"solid":n,";border-color:",t||r,";","")})(e):void 0," width:","__unstable-large"===t?"24px":"22px",";height:","__unstable-large"===t?"24px":"22px",";padding:","__unstable-large"===t?"2px":"1px",";&>span{height:",Ah(4),";width:",Ah(4),";background:linear-gradient(\n\t\t\t\t-45deg,\n\t\t\t\ttransparent 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 52%,\n\t\t\t\ttransparent 52%\n\t\t\t);}","")},cC=Ps("width:",228,"px;>div:first-of-type>",Qb,"{margin-bottom:0;",rC,";}&& ",Qb,"+button:not( .has-text ){min-width:24px;padding:0;}",""),uC=Ps("",""),dC=Ps("",""),fC=Ps("justify-content:center;width:100%;&&{border-top:",Xg.borderWidth," solid ",Ds.gray[400],";border-top-left-radius:0;border-top-right-radius:0;height:40px;}",""),mC="web"===Uo.Platform.OS,pC={px:{value:"px",label:mC?"px":(0,u.__)("Pixels (px)"),a11yLabel:(0,u.__)("Pixels (px)"),step:1},"%":{value:"%",label:mC?"%":(0,u.__)("Percentage (%)"),a11yLabel:(0,u.__)("Percent (%)"),step:.1},em:{value:"em",label:mC?"em":(0,u.__)("Relative to parent font size (em)"),a11yLabel:(0,u._x)("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:mC?"rem":(0,u.__)("Relative to root font size (rem)"),a11yLabel:(0,u._x)("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:mC?"vw":(0,u.__)("Viewport width (vw)"),a11yLabel:(0,u.__)("Viewport width (vw)"),step:.1},vh:{value:"vh",label:mC?"vh":(0,u.__)("Viewport height (vh)"),a11yLabel:(0,u.__)("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:mC?"vmin":(0,u.__)("Viewport smallest dimension (vmin)"),a11yLabel:(0,u.__)("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:mC?"vmax":(0,u.__)("Viewport largest dimension (vmax)"),a11yLabel:(0,u.__)("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:mC?"ch":(0,u.__)("Width of the zero (0) character (ch)"),a11yLabel:(0,u.__)("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:mC?"ex":(0,u.__)("x-height of the font (ex)"),a11yLabel:(0,u.__)("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:mC?"cm":(0,u.__)("Centimeters (cm)"),a11yLabel:(0,u.__)("Centimeters (cm)"),step:.001},mm:{value:"mm",label:mC?"mm":(0,u.__)("Millimeters (mm)"),a11yLabel:(0,u.__)("Millimeters (mm)"),step:.1},in:{value:"in",label:mC?"in":(0,u.__)("Inches (in)"),a11yLabel:(0,u.__)("Inches (in)"),step:.001},pc:{value:"pc",label:mC?"pc":(0,u.__)("Picas (pc)"),a11yLabel:(0,u.__)("Picas (pc)"),step:1},pt:{value:"pt",label:mC?"pt":(0,u.__)("Points (pt)"),a11yLabel:(0,u.__)("Points (pt)"),step:1},svw:{value:"svw",label:mC?"svw":(0,u.__)("Small viewport width (svw)"),a11yLabel:(0,u.__)("Small viewport width (svw)"),step:.1},svh:{value:"svh",label:mC?"svh":(0,u.__)("Small viewport height (svh)"),a11yLabel:(0,u.__)("Small viewport height (svh)"),step:.1},svi:{value:"svi",label:mC?"svi":(0,u.__)("Viewport smallest size in the inline direction (svi)"),a11yLabel:(0,u.__)("Small viewport width or height (svi)"),step:.1},svb:{value:"svb",label:mC?"svb":(0,u.__)("Viewport smallest size in the block direction (svb)"),a11yLabel:(0,u.__)("Small viewport width or height (svb)"),step:.1},svmin:{value:"svmin",label:mC?"svmin":(0,u.__)("Small viewport smallest dimension (svmin)"),a11yLabel:(0,u.__)("Small viewport smallest dimension (svmin)"),step:.1},lvw:{value:"lvw",label:mC?"lvw":(0,u.__)("Large viewport width (lvw)"),a11yLabel:(0,u.__)("Large viewport width (lvw)"),step:.1},lvh:{value:"lvh",label:mC?"lvh":(0,u.__)("Large viewport height (lvh)"),a11yLabel:(0,u.__)("Large viewport height (lvh)"),step:.1},lvi:{value:"lvi",label:mC?"lvi":(0,u.__)("Large viewport width or height (lvi)"),a11yLabel:(0,u.__)("Large viewport width or height (lvi)"),step:.1},lvb:{value:"lvb",label:mC?"lvb":(0,u.__)("Large viewport width or height (lvb)"),a11yLabel:(0,u.__)("Large viewport width or height (lvb)"),step:.1},lvmin:{value:"lvmin",label:mC?"lvmin":(0,u.__)("Large viewport smallest dimension (lvmin)"),a11yLabel:(0,u.__)("Large viewport smallest dimension (lvmin)"),step:.1},dvw:{value:"dvw",label:mC?"dvw":(0,u.__)("Dynamic viewport width (dvw)"),a11yLabel:(0,u.__)("Dynamic viewport width (dvw)"),step:.1},dvh:{value:"dvh",label:mC?"dvh":(0,u.__)("Dynamic viewport height (dvh)"),a11yLabel:(0,u.__)("Dynamic viewport height (dvh)"),step:.1},dvi:{value:"dvi",label:mC?"dvi":(0,u.__)("Dynamic viewport width or height (dvi)"),a11yLabel:(0,u.__)("Dynamic viewport width or height (dvi)"),step:.1},dvb:{value:"dvb",label:mC?"dvb":(0,u.__)("Dynamic viewport width or height (dvb)"),a11yLabel:(0,u.__)("Dynamic viewport width or height (dvb)"),step:.1},dvmin:{value:"dvmin",label:mC?"dvmin":(0,u.__)("Dynamic viewport smallest dimension (dvmin)"),a11yLabel:(0,u.__)("Dynamic viewport smallest dimension (dvmin)"),step:.1},dvmax:{value:"dvmax",label:mC?"dvmax":(0,u.__)("Dynamic viewport largest dimension (dvmax)"),a11yLabel:(0,u.__)("Dynamic viewport largest dimension (dvmax)"),step:.1},svmax:{value:"svmax",label:mC?"svmax":(0,u.__)("Small viewport largest dimension (svmax)"),a11yLabel:(0,u.__)("Small viewport largest dimension (svmax)"),step:.1},lvmax:{value:"lvmax",label:mC?"lvmax":(0,u.__)("Large viewport largest dimension (lvmax)"),a11yLabel:(0,u.__)("Large viewport largest dimension (lvmax)"),step:.1}},hC=Object.values(pC),gC=[pC.px,pC["%"],pC.em,pC.rem,pC.vw,pC.vh],vC=pC.px;function bC(e,t,n){return xC(t?`${null!=e?e:""}${t}`:e,n)}function yC(e){return Array.isArray(e)&&!!e.length}function xC(e,t=hC){let n,r;if(void 0!==e||null===e){n=`${e}`.trim();const t=parseFloat(n);r=isFinite(t)?t:void 0}const o=n?.match(/[\d.\-\+]*\s*(.*)/),i=o?.[1]?.toLowerCase();let a;if(yC(t)){const e=t.find((e=>e.value===i));a=e?.value}else a=vC.value;return[r,a]}const wC=({units:e=hC,availableUnits:t=[],defaultValues:n})=>{const r=function(e=[],t){return Array.isArray(t)?t.filter((t=>e.includes(t.value))):[]}(t,e);return n&&r.forEach(((e,t)=>{if(n[e.value]){const[o]=xC(n[e.value]);r[t].default=o}})),r};const EC=e=>e.replace(/^var\((.+)\)$/,"$1"),_C=os(((e,t)=>{const{__experimentalIsRenderedInSidebar:n,border:o,colors:i,disableCustomColors:a,enableAlpha:s,enableStyle:l,indicatorClassName:c,indicatorWrapperClassName:d,isStyleSettable:f,onReset:m,onColorChange:p,onStyleChange:h,popoverContentClassName:g,popoverControlsClassName:v,resetButtonClassName:b,showDropdownHeader:y,size:x,__unstablePopoverProps:w,...E}=function(e){const{border:t,className:n,colors:r=[],enableAlpha:o=!1,enableStyle:i=!0,onChange:a,previousStyleSelection:s,size:l="default",__experimentalIsRenderedInSidebar:c=!1,...u}=rs(e,"BorderControlDropdown"),[d]=xC(t?.width),f=0===d,m=ns(),p=(0,Uo.useMemo)((()=>m(sC,n)),[n,m]),h=(0,Uo.useMemo)((()=>m(dC)),[m]),g=(0,Uo.useMemo)((()=>m(lC(t,l))),[t,m,l]),v=(0,Uo.useMemo)((()=>m(cC)),[m]),b=(0,Uo.useMemo)((()=>m(uC)),[m]),y=(0,Uo.useMemo)((()=>m(fC)),[m]);return{...u,border:t,className:p,colors:r,enableAlpha:o,enableStyle:i,indicatorClassName:h,indicatorWrapperClassName:g,onColorChange:e=>{a({color:e,style:"none"===t?.style?s:t?.style,width:f&&e?"1px":t?.width})},onStyleChange:e=>{const n=f&&e?"1px":t?.width;a({...t,style:e,width:n})},onReset:()=>{a({...t,color:void 0,style:void 0})},popoverContentClassName:b,popoverControlsClassName:v,resetButtonClassName:y,size:l,__experimentalIsRenderedInSidebar:c}}(e),{color:_,style:S}=o||{},C=((e,t)=>{if(e&&t){if(qS(t)){let n;return t.some((t=>t.colors.some((t=>t.color===e&&(n=t,!0))))),n}return t.find((t=>t.color===e))}})(_,i),k=((e,t,n,r)=>{if(r){if(t){const e=EC(t.color);return n?(0,u.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".',t.name,e,n):(0,u.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,e)}if(e){const t=EC(e);return n?(0,u.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".',t,n):(0,u.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s".',t)}return(0,u.__)("Border color and style picker.")}return t?(0,u.sprintf)('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,EC(t.color)):e?(0,u.sprintf)('Border color picker. The currently selected color has a value of "%1$s".',EC(e)):(0,u.__)("Border color picker.")})(_,C,S,l),P=_||S&&"none"!==S,T=n?"bottom left":void 0;return(0,r.createElement)(FE,{renderToggle:({onToggle:e})=>(0,r.createElement)(my,{onClick:e,variant:"tertiary","aria-label":k,tooltipPosition:T,label:(0,u.__)("Border color and style picker"),showTooltip:!0,__next40pxDefaultSize:"__unstable-large"===x},(0,r.createElement)("span",{className:d},(0,r.createElement)(DE,{className:c,colorValue:_}))),renderContent:({onClose:e})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(GS,{paddingSize:"medium"},(0,r.createElement)(jS,{className:v,spacing:6},y?(0,r.createElement)(Py,null,(0,r.createElement)(Qb,null,(0,u.__)("Border color")),(0,r.createElement)(my,{size:"small",label:(0,u.__)("Close border color"),icon:zw,onClick:e})):void 0,(0,r.createElement)(JS,{className:g,value:_,onChange:p,colors:i,disableCustomColors:a,__experimentalIsRenderedInSidebar:n,clearable:!1,enableAlpha:s}),l&&f&&(0,r.createElement)(NE,{label:(0,u.__)("Style"),value:S,onChange:h}))),P&&(0,r.createElement)(GS,{paddingSize:"none"},(0,r.createElement)(my,{className:b,variant:"tertiary",onClick:()=>{m(),e()}},(0,u.__)("Reset")))),popoverProps:{...w},...E,ref:t})}),"BorderControlDropdown"),SC=_C;const CC=(0,Uo.forwardRef)((function({className:e,isUnitSelectTabbable:t=!0,onChange:n,size:o="default",unit:i="px",units:a=gC,...s},l){if(!yC(a)||1===a?.length)return(0,r.createElement)(tC,{className:"components-unit-control__unit-label",selectSize:o},i);const u=c()("components-unit-control__select",e);return(0,r.createElement)(nC,{ref:l,className:u,onChange:e=>{const{value:t}=e.target,r=a.find((e=>e.value===t));n?.(t,{event:e,data:r})},selectSize:o,tabIndex:t?void 0:-1,value:i,...s},a.map((e=>(0,r.createElement)("option",{value:e.value,key:e.value},e.label))))}));const kC=(0,Uo.forwardRef)((function(e,t){const{__unstableStateReducer:n,autoComplete:o="off",children:i,className:a,disabled:s=!1,disableUnits:l=!1,isPressEnterToChange:d=!1,isResetValueOnUnitChange:f=!1,isUnitSelectTabbable:m=!0,label:p,onChange:h,onUnitChange:g,size:v="default",unit:b,units:y=gC,value:x,onFocus:w,...E}=Nv(e);"unit"in e&&qo()("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const _=null!=x?x:void 0,[S,C]=(0,Uo.useMemo)((()=>{const e=function(e,t,n=hC){const r=Array.isArray(n)?[...n]:[],[,o]=bC(e,t,hC);return o&&!r.some((e=>e.value===o))&&pC[o]&&r.unshift(pC[o]),r}(_,b,y),[{value:t=""}={},...n]=e,r=n.reduce(((e,{value:t})=>{const n=Uy(t?.substring(0,1)||"");return e.includes(n)?e:`${e}|${n}`}),Uy(t.substring(0,1)));return[e,new RegExp(`^(?:${r})$`,"i")]}),[_,b,y]),[k,P]=bC(_,b,S),[T,I]=XE(1===S.length?S[0].value:b,{initial:P,fallback:""});(0,Uo.useEffect)((()=>{void 0!==P&&I(P)}),[P,I]);const R=c()("components-unit-control","components-unit-control-wrapper",a);let M;!l&&m&&S.length&&(M=e=>{E.onKeyDown?.(e),!e.metaKey&&C.test(e.key)&&N.current?.focus()});const N=(0,Uo.useRef)(null),D=l?null:(0,r.createElement)(CC,{ref:N,"aria-label":(0,u.__)("Select unit"),disabled:s,isUnitSelectTabbable:m,onChange:(e,t)=>{const{data:n}=t;let r=`${null!=k?k:""}${e}`;f&&void 0!==n?.default&&(r=`${n.default}${e}`),h?.(r,t),g?.(e,t),I(e)},size:["small","compact"].includes(v)||"default"===v&&!E.__next40pxDefaultSize?"small":"default",unit:T,units:S,onFocus:w,onBlur:e.onBlur});let A=E.step;if(!A&&S){var O;const e=S.find((e=>e.value===T));A=null!==(O=e?.step)&&void 0!==O?O:1}return(0,r.createElement)(QS,{...E,autoComplete:o,className:R,disabled:s,spinControls:"none",isPressEnterToChange:d,label:p,onKeyDown:M,onChange:(e,t)=>{if(""===e||null==e)return void h?.("",t);const n=function(e,t,n,r){const[o,i]=xC(e,t),a=null!=o?o:n;let s=i||r;return!s&&yC(t)&&(s=t[0].value),[a,s]}(e,S,k,T).join("");h?.(n,t)},ref:t,size:v,suffix:D,type:d?"text":"number",value:null!=k?k:"",step:A,onFocus:w,__unstableStateReducer:n})})),PC=kC,TC=e=>void 0!==e?.width&&""!==e.width||void 0!==e?.color;function IC(e){const{className:t,colors:n=[],isCompact:r,onChange:o,enableAlpha:i=!0,enableStyle:a=!0,shouldSanitizeBorder:s=!0,size:l="default",value:c,width:u,__experimentalIsRenderedInSidebar:d=!1,__next40pxDefaultSize:f,...m}=rs(e,"BorderControl"),p="default"===l&&f?"__unstable-large":l,[h,g]=xC(c?.width),v=g||"px",b=0===h,[y,x]=(0,Uo.useState)(),[w,E]=(0,Uo.useState)(),_=!s||TC(c),S=(0,Uo.useCallback)((e=>{!s||TC(e)?o(e):o(void 0)}),[o,s]),C=(0,Uo.useCallback)((e=>{const t=""===e?void 0:e,[n]=xC(e),r=0===n,o={...c,width:t};r&&!b&&(x(c?.color),E(c?.style),o.color=void 0,o.style="none"),!r&&b&&(void 0===o.color&&(o.color=y),"none"===o.style&&(o.style=w)),S(o)}),[c,b,y,w,S]),k=(0,Uo.useCallback)((e=>{C(`${e}${v}`)}),[C,v]),P=ns(),T=(0,Uo.useMemo)((()=>P(iC,t)),[t,P]);let I=u;r&&(I="__unstable-large"===l?"116px":"90px");const R=(0,Uo.useMemo)((()=>{const e=!!I&&aC,t=(e=>Ps("height:","__unstable-large"===e?"40px":"30px",";",""))(p);return P(Ps(QS,"{flex:1 1 40%;}&& ",nC,"{min-height:0;}",""),e,t)}),[I,P,p]),M=(0,Uo.useMemo)((()=>P(Ps("flex:1 1 60%;",Jh({marginRight:Ah(3)})(),";",""))),[P]);return{...m,className:T,colors:n,enableAlpha:i,enableStyle:a,innerWrapperClassName:R,inputWidth:I,isStyleSettable:_,onBorderChange:S,onSliderChange:k,onWidthChange:C,previousStyleSelection:w,sliderClassName:M,value:c,widthUnit:v,widthValue:h,size:p,__experimentalIsRenderedInSidebar:d,__next40pxDefaultSize:f}}const RC=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,r.createElement)(ws,{as:"legend"},t):(0,r.createElement)(Qb,{as:"legend"},t):null},MC=os(((e,t)=>{const{__next40pxDefaultSize:n=!1,colors:o,disableCustomColors:i,disableUnits:a,enableAlpha:s,enableStyle:l,hideLabelFromVision:c,innerWrapperClassName:d,inputWidth:f,isStyleSettable:m,label:p,onBorderChange:h,onSliderChange:g,onWidthChange:v,placeholder:b,__unstablePopoverProps:y,previousStyleSelection:x,showDropdownHeader:w,size:E,sliderClassName:_,value:S,widthUnit:C,widthValue:k,withSlider:P,__experimentalIsRenderedInSidebar:T,...I}=IC(e);return(0,r.createElement)(xs,{as:"fieldset",...I,ref:t},(0,r.createElement)(RC,{label:p,hideLabelFromVision:c}),(0,r.createElement)(Py,{spacing:4,className:d},(0,r.createElement)(PC,{prefix:(0,r.createElement)(SC,{border:S,colors:o,__unstablePopoverProps:y,disableCustomColors:i,enableAlpha:s,enableStyle:l,isStyleSettable:m,onChange:h,previousStyleSelection:x,showDropdownHeader:w,__experimentalIsRenderedInSidebar:T,size:E}),label:(0,u.__)("Border width"),hideLabelFromVision:!0,min:0,onChange:v,value:S?.width||"",placeholder:b,disableUnits:a,__unstableInputWidth:f,size:E}),P&&(0,r.createElement)(k_,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Border width"),hideLabelFromVision:!0,className:_,initialPosition:0,max:100,min:0,onChange:g,step:["px","%"].includes(C)?1:.1,value:k||void 0,withInputField:!1,__next40pxDefaultSize:n})))}),"BorderControl"),NC=MC,DC={bottom:{alignItems:"flex-end",justifyContent:"center"},bottomLeft:{alignItems:"flex-start",justifyContent:"flex-end"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-end"},center:{alignItems:"center",justifyContent:"center"},spaced:{alignItems:"center",justifyContent:"space-between"},left:{alignItems:"center",justifyContent:"flex-start"},right:{alignItems:"center",justifyContent:"flex-end"},stretch:{alignItems:"stretch"},top:{alignItems:"flex-start",justifyContent:"center"},topLeft:{alignItems:"flex-start",justifyContent:"flex-start"},topRight:{alignItems:"flex-start",justifyContent:"flex-end"}};function AC(e){const{align:t,alignment:n,className:r,columnGap:o,columns:i=2,gap:a=3,isInline:s=!1,justify:l,rowGap:c,rows:u,templateColumns:d,templateRows:f,...m}=rs(e,"Grid"),p=Nh(Array.isArray(i)?i:[i]),h=Nh(Array.isArray(u)?u:[u]),g=d||!!i&&`repeat( ${p}, 1fr )`,v=f||!!u&&`repeat( ${h}, 1fr )`,b=ns();return{...m,className:(0,Uo.useMemo)((()=>{const e=function(e){return e?DC[e]:{}}(n),i=Ps({alignItems:t,display:s?"inline-grid":"grid",gap:`calc( ${Xg.gridBase} * ${a} )`,gridTemplateColumns:g||void 0,gridTemplateRows:v||void 0,gridRowGap:c,gridColumnGap:o,justifyContent:l,verticalAlign:s?"middle":void 0,...e},"","");return b(i,r)}),[t,n,r,o,b,a,g,v,s,l,c])}}const OC=os((function(e,t){const n=AC(e);return(0,r.createElement)(xs,{...n,ref:t})}),"Grid");function zC(e){const{className:t,colors:n=[],enableAlpha:r=!1,enableStyle:o=!0,size:i="default",__experimentalIsRenderedInSidebar:a=!1,...s}=rs(e,"BorderBoxControlSplitControls"),l=ns(),c=(0,Uo.useMemo)((()=>l((e=>Ps("position:relative;flex:1;width:","__unstable-large"===e?void 0:"80%",";",""))(i),t)),[l,t,i]);return{...s,centeredClassName:(0,Uo.useMemo)((()=>l(Mw,t)),[l,t]),className:c,colors:n,enableAlpha:r,enableStyle:o,rightAlignedClassName:(0,Uo.useMemo)((()=>l(Ps(Jh({marginLeft:"auto"})(),";",""),t)),[l,t]),size:i,__experimentalIsRenderedInSidebar:a}}const LC=os(((e,t)=>{const{centeredClassName:n,colors:o,disableCustomColors:i,enableAlpha:a,enableStyle:s,onChange:l,popoverPlacement:c,popoverOffset:f,rightAlignedClassName:m,size:p="default",value:h,__experimentalIsRenderedInSidebar:g,...v}=zC(e),[b,y]=(0,Uo.useState)(null),x=(0,Uo.useMemo)((()=>c?{placement:c,offset:f,anchor:b,shift:!0}:void 0),[c,f,b]),w={colors:o,disableCustomColors:i,enableAlpha:a,enableStyle:s,isCompact:!0,__experimentalIsRenderedInSidebar:g,size:p},E=(0,d.useMergeRefs)([y,t]);return(0,r.createElement)(OC,{...v,ref:E,gap:4},(0,r.createElement)(Ow,{value:h,size:p}),(0,r.createElement)(NC,{className:n,hideLabelFromVision:!0,label:(0,u.__)("Top border"),onChange:e=>l(e,"top"),__unstablePopoverProps:x,value:h?.top,...w}),(0,r.createElement)(NC,{hideLabelFromVision:!0,label:(0,u.__)("Left border"),onChange:e=>l(e,"left"),__unstablePopoverProps:x,value:h?.left,...w}),(0,r.createElement)(NC,{className:m,hideLabelFromVision:!0,label:(0,u.__)("Right border"),onChange:e=>l(e,"right"),__unstablePopoverProps:x,value:h?.right,...w}),(0,r.createElement)(NC,{className:n,hideLabelFromVision:!0,label:(0,u.__)("Bottom border"),onChange:e=>l(e,"bottom"),__unstablePopoverProps:x,value:h?.bottom,...w}))}),"BorderBoxControlSplitControls"),FC=LC,BC=/^([\d.\-+]*)\s*(fr|cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|vw|vh|vmin|vmax|%|cap|ic|rlh|vi|vb|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx|svw|lvw|dvw|svh|lvh|dvh|svi|lvi|dvi|svb|lvb|dvb|svmin|lvmin|dvmin|svmax|lvmax|dvmax)?$/;const jC=["top","right","bottom","left"],VC=["color","style","width"],HC=e=>!e||!VC.some((t=>void 0!==e[t])),$C=e=>{if(!e)return!1;if(WC(e)){return!jC.every((t=>HC(e[t])))}return!HC(e)},WC=(e={})=>Object.keys(e).some((e=>-1!==jC.indexOf(e))),UC=e=>{if(!WC(e))return!1;const t=jC.map((t=>GC(e?.[t])));return!t.every((e=>e===t[0]))},GC=(e,t)=>{if(HC(e))return t;const{color:n,style:r,width:o}=t||{},{color:i=n,style:a=r,width:s=o}=e;return[s,!!s&&"0"!==s||!!i?a||"solid":a,i].filter(Boolean).join(" ")},qC=e=>function(e){if(0===e.length)return;const t={};let n,r=0;return e.forEach((e=>{t[e]=void 0===t[e]?1:t[e]+1,t[e]>r&&(n=e,r=t[e])})),n}(e.map((e=>void 0===e?void 0:function(e){const t=e.trim().match(BC);if(!t)return[void 0,void 0];const[,n,r]=t;let o=parseFloat(n);return o=Number.isNaN(o)?void 0:o,[o,r]}(`${e}`)[1])).filter((e=>void 0!==e)));function YC(e){const{className:t,colors:n=[],onChange:r,enableAlpha:o=!1,enableStyle:i=!0,size:a="default",value:s,__experimentalIsRenderedInSidebar:l=!1,__next40pxDefaultSize:c,...u}=rs(e,"BorderBoxControl"),d="default"===a&&c?"__unstable-large":a,f=UC(s),m=WC(s),p=m?(e=>{if(!e)return;const t=[],n=[],r=[];jC.forEach((o=>{t.push(e[o]?.color),n.push(e[o]?.style),r.push(e[o]?.width)}));const o=t.every((e=>e===t[0])),i=n.every((e=>e===n[0])),a=r.every((e=>e===r[0]));return{color:o?t[0]:void 0,style:i?n[0]:void 0,width:a?r[0]:qC(r)}})(s):s,h=m?s:(e=>{if(e&&!HC(e))return{top:e,right:e,bottom:e,left:e}})(s),g=!isNaN(parseFloat(`${p?.width}`)),[v,b]=(0,Uo.useState)(!f),y=ns(),x=(0,Uo.useMemo)((()=>y(Tw,t)),[y,t]),w=(0,Uo.useMemo)((()=>y(Ps("flex:1;",Jh({marginRight:"24px"})(),";",""))),[y]),E=(0,Uo.useMemo)((()=>y(Iw)),[y]);return{...u,className:x,colors:n,disableUnits:f&&!g,enableAlpha:o,enableStyle:i,hasMixedBorders:f,isLinked:v,linkedControlClassName:w,onLinkedChange:e=>{if(!e)return r(void 0);if(!f||(t=e)&&VC.every((e=>void 0!==t[e])))return r(HC(e)?void 0:e);var t;const n=((e,t)=>{const n={};return e.color!==t.color&&(n.color=t.color),e.style!==t.style&&(n.style=t.style),e.width!==t.width&&(n.width=t.width),n})(p,e),o={top:{...s?.top,...n},right:{...s?.right,...n},bottom:{...s?.bottom,...n},left:{...s?.left,...n}};if(UC(o))return r(o);const i=HC(o.top)?void 0:o.top;r(i)},onSplitChange:(e,t)=>{const n={...h,[t]:e};UC(n)?r(n):r(e)},toggleLinked:()=>b(!v),linkedValue:p,size:d,splitValue:h,wrapperClassName:E,__experimentalIsRenderedInSidebar:l}}const KC=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,r.createElement)(ws,{as:"label"},t):(0,r.createElement)(Qb,null,t):null},XC=os(((e,t)=>{const{className:n,colors:o,disableCustomColors:i,disableUnits:a,enableAlpha:s,enableStyle:l,hasMixedBorders:c,hideLabelFromVision:f,isLinked:m,label:p,linkedControlClassName:h,linkedValue:g,onLinkedChange:v,onSplitChange:b,popoverPlacement:y,popoverOffset:x,size:w,splitValue:E,toggleLinked:_,wrapperClassName:S,__experimentalIsRenderedInSidebar:C,...k}=YC(e),[P,T]=(0,Uo.useState)(null),I=(0,Uo.useMemo)((()=>y?{placement:y,offset:x,anchor:P,shift:!0}:void 0),[y,x,P]),R=(0,d.useMergeRefs)([T,t]);return(0,r.createElement)(xs,{className:n,...k,ref:R},(0,r.createElement)(KC,{label:p,hideLabelFromVision:f}),(0,r.createElement)(xs,{className:S},m?(0,r.createElement)(NC,{className:h,colors:o,disableUnits:a,disableCustomColors:i,enableAlpha:s,enableStyle:l,onChange:v,placeholder:c?(0,u.__)("Mixed"):void 0,__unstablePopoverProps:I,shouldSanitizeBorder:!1,value:g,withSlider:!0,width:"__unstable-large"===w?"116px":"110px",__experimentalIsRenderedInSidebar:C,size:w}):(0,r.createElement)(FC,{colors:o,disableCustomColors:i,enableAlpha:s,enableStyle:l,onChange:b,popoverPlacement:y,popoverOffset:x,value:E,__experimentalIsRenderedInSidebar:C,size:w}),(0,r.createElement)(Dw,{onClick:_,isLinked:m,size:w})))}),"BorderBoxControl"),ZC=XC;const JC=bs("span",{target:"e1j5nr4z8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),QC=bs("span",{target:"e1j5nr4z7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),ek=bs("span",{target:"e1j5nr4z6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",(({isFocused:e})=>Ps({backgroundColor:"currentColor",opacity:e?1:.3},"","")),";"),tk=bs(ek,{target:"e1j5nr4z5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),nk=bs(ek,{target:"e1j5nr4z4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),rk=bs(nk,{target:"e1j5nr4z3"})({name:"abcix4",styles:"top:0"}),ok=bs(tk,{target:"e1j5nr4z2"})({name:"1wf8jf",styles:"right:0"}),ik=bs(nk,{target:"e1j5nr4z1"})({name:"8tapst",styles:"bottom:0"}),ak=bs(tk,{target:"e1j5nr4z0"})({name:"1ode3cm",styles:"left:0"});function sk({size:e=24,side:t="all",sides:n,...o}){const i=e=>!(e=>n?.length&&!n.includes(e))(e)&&("all"===t||t===e),a=i("top")||i("vertical"),s=i("right")||i("horizontal"),l=i("bottom")||i("vertical"),c=i("left")||i("horizontal"),u=e/24;return(0,r.createElement)(JC,{style:{transform:`scale(${u})`},...o},(0,r.createElement)(QC,null,(0,r.createElement)(rk,{isFocused:a}),(0,r.createElement)(ok,{isFocused:s}),(0,r.createElement)(ik,{isFocused:l}),(0,r.createElement)(ak,{isFocused:c})))}const lk=bs(PC,{target:"e1jovhle5"})({name:"1ejyr19",styles:"max-width:90px"}),ck=bs(Py,{target:"e1jovhle4"})({name:"1j1lmoi",styles:"grid-column:1/span 3"}),uk=bs(my,{target:"e1jovhle3"})({name:"tkya7b",styles:"grid-area:1/2;justify-self:end"}),dk=bs("div",{target:"e1jovhle2"})({name:"1dfa8al",styles:"grid-area:1/3;justify-self:end"}),fk=bs(sk,{target:"e1jovhle1"})({name:"ou8xsw",styles:"flex:0 0 auto"}),mk=bs(k_,{target:"e1jovhle0"})("width:100%;margin-inline-end:",Ah(2),";"),pk={px:{max:300,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:10,step:.1},rm:{max:10,step:.1},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}},hk={all:(0,u.__)("All sides"),top:(0,u.__)("Top side"),bottom:(0,u.__)("Bottom side"),left:(0,u.__)("Left side"),right:(0,u.__)("Right side"),mixed:(0,u.__)("Mixed"),vertical:(0,u.__)("Top and bottom sides"),horizontal:(0,u.__)("Left and right sides")},gk={top:void 0,right:void 0,bottom:void 0,left:void 0},vk=["top","right","bottom","left"];function bk(e){return e.sort(((t,n)=>e.filter((e=>e===t)).length-e.filter((e=>e===n)).length)).pop()}function yk(e={},t,n=vk){const r=function(e){const t=[];if(!e?.length)return vk;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=vk.filter((t=>e.includes(t)));t.push(...n)}return t}(n).map((t=>xC(e[t]))),o=r.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),i=r.map((e=>e[1])),a=o.every((e=>e===o[0]))?o[0]:"";let s;var l;"number"==typeof a?s=bk(i):s=null!==(l=function(e){if(!e||"object"!=typeof e)return;const t=Object.values(e).filter(Boolean);return bk(t)}(t))&&void 0!==l?l:bk(i);return[a,s].join("")}function xk(e={},t,n=vk){const r=yk(e,t,n);return isNaN(parseFloat(r))}function wk(e){return void 0!==e&&Object.values(e).filter((e=>!!e&&/\d/.test(e))).length>0}function Ek(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function _k(e,t,n){const r={...e};return n?.length?n.forEach((e=>{"vertical"===e?(r.top=t,r.bottom=t):"horizontal"===e?(r.left=t,r.right=t):r[e]=t})):vk.forEach((e=>r[e]=t)),r}const Sk=()=>{};function Ck({__next40pxDefaultSize:e,onChange:t=Sk,onFocus:n=Sk,values:o,sides:i,selectedUnits:a,setSelectedUnits:s,...l}){var c,u;const f=(0,d.useInstanceId)(Ck,"box-control-input-all"),m=yk(o,a,i),p=wk(o)&&xk(o,a,i),h=p?hk.mixed:void 0,[g,v]=xC(m),b=e=>{const n=void 0!==e&&!isNaN(parseFloat(e)),r=_k(o,n?e:void 0,i);t(r)};return(0,r.createElement)(Py,null,(0,r.createElement)(lk,{...l,__next40pxDefaultSize:e,className:"component-box-control__unit-control",disableUnits:p,id:f,isPressEnterToChange:!0,value:m,onChange:b,onUnitChange:e=>{const t=_k(a,e,i);s(t)},onFocus:e=>{n(e,{side:"all"})},placeholder:h,label:hk.all,hideLabelFromVision:!0}),(0,r.createElement)(mk,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":f,label:hk.all,hideLabelFromVision:!0,onChange:e=>{b(void 0!==e?[e,v].join(""):void 0)},min:0,max:null!==(c=pk[null!=v?v:"px"]?.max)&&void 0!==c?c:10,step:null!==(u=pk[null!=v?v:"px"]?.step)&&void 0!==u?u:.1,value:null!=g?g:0,withInputField:!1}))}const kk=()=>{};function Pk({__next40pxDefaultSize:e,onChange:t=kk,onFocus:n=kk,values:o,selectedUnits:i,setSelectedUnits:a,sides:s,...l}){const c=(0,d.useInstanceId)(Pk,"box-control-input"),u=e=>t=>{n(t,{side:e})},f=(e,n,r)=>{const i={...o},a=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;if(i[e]=a,r?.event.altKey)switch(e){case"top":i.bottom=a;break;case"bottom":i.top=a;break;case"left":i.right=a;break;case"right":i.left=a}(e=>{t(e)})(i)},m=e=>t=>{const n={...i};n[e]=t,a(n)},p=s?.length?vk.filter((e=>s.includes(e))):vk;return(0,r.createElement)(r.Fragment,null,p.map((t=>{var n,a;const[d,p]=xC(o[t]),h=o[t]?p:i[t],g=[c,t].join("-");return(0,r.createElement)(ck,{key:`box-control-${t}`,expanded:!0},(0,r.createElement)(fk,{side:t,sides:s}),(0,r.createElement)(ri,{placement:"top-end",text:hk[t]},(0,r.createElement)(lk,{...l,__next40pxDefaultSize:e,className:"component-box-control__unit-control",id:g,isPressEnterToChange:!0,value:[d,h].join(""),onChange:(e,n)=>f(t,e,n),onUnitChange:m(t),onFocus:u(t),label:hk[t],hideLabelFromVision:!0})),(0,r.createElement)(mk,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":g,label:hk[t],hideLabelFromVision:!0,onChange:e=>{f(t,void 0!==e?[e,h].join(""):void 0)},min:0,max:null!==(n=pk[null!=h?h:"px"]?.max)&&void 0!==n?n:10,step:null!==(a=pk[null!=h?h:"px"]?.step)&&void 0!==a?a:.1,value:null!=d?d:0,withInputField:!1}))})))}const Tk=["vertical","horizontal"];function Ik({__next40pxDefaultSize:e,onChange:t,onFocus:n,values:o,selectedUnits:i,setSelectedUnits:a,sides:s,...l}){const c=(0,d.useInstanceId)(Ik,"box-control-input"),u=e=>t=>{n&&n(t,{side:e})},f=(e,n)=>{if(!t)return;const r={...o},i=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;"vertical"===e&&(r.top=i,r.bottom=i),"horizontal"===e&&(r.left=i,r.right=i),t(r)},m=e=>t=>{const n={...i};"vertical"===e&&(n.top=t,n.bottom=t),"horizontal"===e&&(n.left=t,n.right=t),a(n)},p=s?.length?Tk.filter((e=>s.includes(e))):Tk;return(0,r.createElement)(r.Fragment,null,p.map((t=>{var n,a;const[d,p]=xC("vertical"===t?o.top:o.left),h="vertical"===t?i.top:i.left,g=[c,t].join("-");return(0,r.createElement)(ck,{key:t},(0,r.createElement)(fk,{side:t,sides:s}),(0,r.createElement)(ri,{placement:"top-end",text:hk[t]},(0,r.createElement)(lk,{...l,__next40pxDefaultSize:e,className:"component-box-control__unit-control",id:g,isPressEnterToChange:!0,value:[d,null!=h?h:p].join(""),onChange:e=>f(t,e),onUnitChange:m(t),onFocus:u(t),label:hk[t],hideLabelFromVision:!0,key:t})),(0,r.createElement)(mk,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":g,label:hk[t],hideLabelFromVision:!0,onChange:e=>f(t,void 0!==e?[e,null!=h?h:p].join(""):void 0),min:0,max:null!==(n=pk[null!=h?h:"px"]?.max)&&void 0!==n?n:10,step:null!==(a=pk[null!=h?h:"px"]?.step)&&void 0!==a?a:.1,value:null!=d?d:0,withInputField:!1}))})))}function Rk({isLinked:e,...t}){const n=e?(0,u.__)("Unlink sides"):(0,u.__)("Link sides");return(0,r.createElement)(ri,{text:n},(0,r.createElement)(my,{...t,className:"component-box-control__linked-button",size:"small",icon:e?kw:Pw,iconSize:24,"aria-label":n}))}const Mk={min:0},Nk=()=>{};function Dk({__next40pxDefaultSize:e=!1,id:t,inputProps:n=Mk,onChange:o=Nk,label:i=(0,u.__)("Box Control"),values:a,units:s,sides:l,splitOnAxis:c=!1,allowReset:f=!0,resetValues:m=gk,onMouseOver:p,onMouseOut:h}){const[g,v]=XE(a,{fallback:gk}),b=g||gk,y=wk(a),x=1===l?.length,[w,E]=(0,Uo.useState)(y),[_,S]=(0,Uo.useState)(!y||!xk(b)||x),[C,k]=(0,Uo.useState)(Ek(_,c)),[P,T]=(0,Uo.useState)({top:xC(a?.top)[1],right:xC(a?.right)[1],bottom:xC(a?.bottom)[1],left:xC(a?.left)[1]}),I=function(e){const t=(0,d.useInstanceId)(Dk,"inspector-box-control");return e||t}(t),R=`${I}-heading`,M={...n,onChange:e=>{o(e),v(e),E(!0)},onFocus:(e,{side:t})=>{k(t)},isLinked:_,units:s,selectedUnits:P,setSelectedUnits:T,sides:l,values:b,onMouseOver:p,onMouseOut:h,__next40pxDefaultSize:e};return(0,r.createElement)(OC,{id:I,columns:3,templateColumns:"1fr min-content min-content",role:"group","aria-labelledby":R},(0,r.createElement)(oy.VisualLabel,{id:R},i),_&&(0,r.createElement)(ck,null,(0,r.createElement)(fk,{side:C,sides:l}),(0,r.createElement)(Ck,{...M})),!x&&(0,r.createElement)(dk,null,(0,r.createElement)(Rk,{onClick:()=>{S(!_),k(Ek(!_,c))},isLinked:_})),!_&&c&&(0,r.createElement)(Ik,{...M}),!_&&!c&&(0,r.createElement)(Pk,{...M}),f&&(0,r.createElement)(uk,{className:"component-box-control__reset-button",variant:"secondary",size:"small",onClick:()=>{o(m),v(m),T(m),E(!1)},disabled:!w},(0,u.__)("Reset")))}const Ak=Dk;const Ok=(0,Uo.forwardRef)((function(e,t){const{className:n,...o}=e,i=c()("components-button-group",n);return(0,r.createElement)("div",{ref:t,role:"group",className:i,...o})}));const zk={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function Lk(e){return`0 ${e}px ${2*e}px 0\n\t${`rgba(0, 0, 0, ${e/20})`}`}const Fk=os((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:i,isInteractive:a=!1,offset:s=0,value:l=0,...c}=rs(e,"Elevation"),u=ns();return{...c,className:(0,Uo.useMemo)((()=>{let e=ag(i)?i:2*l,c=ag(t)?t:l/2;a||(e=ag(i)?i:void 0,c=ag(t)?t:void 0);const d=`box-shadow ${Xg.transitionDuration} ${Xg.transitionTimingFunction}`,f={};return f.Base=Ps({borderRadius:n,bottom:s,boxShadow:Lk(l),opacity:Xg.elevationIntensity,left:s,right:s,top:s,transition:d},As("transition"),"",""),ag(e)&&(f.hover=Ps("*:hover>&{box-shadow:",Lk(e),";}","")),ag(c)&&(f.active=Ps("*:active>&{box-shadow:",Lk(c),";}","")),ag(o)&&(f.focus=Ps("*:focus>&{box-shadow:",Lk(o),";}","")),u(zk,f.Base,f.hover,f.focus,f.active,r)}),[t,n,r,u,o,i,a,s,l]),"aria-hidden":!0}}(e);return(0,r.createElement)(xs,{...n,ref:t})}),"Elevation"),Bk=Fk;const jk=`calc(${Xg.cardBorderRadius} - 1px)`,Vk=Ps("box-shadow:0 0 0 1px ",Xg.surfaceBorderColor,";outline:none;",""),Hk={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},$k={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},Wk={name:"13udsys",styles:"height:100%"},Uk={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},Gk={name:"dq805e",styles:"box-sizing:border-box;overflow:hidden;&>img,&>iframe{display:block;height:auto;max-width:100%;width:100%;}"},qk={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},Yk=Ps("&:first-of-type{border-top-left-radius:",jk,";border-top-right-radius:",jk,";}&:last-of-type{border-bottom-left-radius:",jk,";border-bottom-right-radius:",jk,";}",""),Kk=Ps("border-color:",Xg.colorDivider,";",""),Xk={name:"1t90u8d",styles:"box-shadow:none"},Zk={name:"1e1ncky",styles:"border:none"},Jk=Ps("border-radius:",jk,";",""),Qk=Ps("padding:",Xg.cardPaddingXSmall,";",""),eP={large:Ps("padding:",Xg.cardPaddingLarge,";",""),medium:Ps("padding:",Xg.cardPaddingMedium,";",""),small:Ps("padding:",Xg.cardPaddingSmall,";",""),xSmall:Qk,extraSmall:Qk},tP=Ps("background-color:",Ds.ui.backgroundDisabled,";",""),nP=Ps("background-color:",Xg.surfaceColor,";color:",Ds.gray[900],";position:relative;","");Xg.surfaceBackgroundColor;function rP({borderBottom:e,borderLeft:t,borderRight:n,borderTop:r}){const o=`1px solid ${Xg.surfaceBorderColor}`;return Ps({borderBottom:e?o:void 0,borderLeft:t?o:void 0,borderRight:n?o:void 0,borderTop:r?o:void 0},"","")}const oP=Ps("",""),iP=Ps("background:",Xg.surfaceBackgroundTintColor,";",""),aP=Ps("background:",Xg.surfaceBackgroundTertiaryColor,";",""),sP=e=>[e,e].join(" "),lP=e=>["90deg",[Xg.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),cP=e=>[[Xg.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),uP=(e,t)=>Ps("background:",(e=>[`linear-gradient( ${lP(e)} ) center`,`linear-gradient( ${cP(e)} ) center`,Xg.surfaceBorderBoldColor].join(","))(t),";background-size:",sP(e),";",""),dP=[`linear-gradient( ${[`${Xg.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${Xg.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),fP=(e,t,n)=>{switch(e){case"dotted":return uP(t,n);case"grid":return(e=>Ps("background:",Xg.surfaceBackgroundColor,";background-image:",dP,";background-size:",sP(e),";",""))(t);case"primary":return oP;case"secondary":return iP;case"tertiary":return aP}};function mP(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:i=!1,className:a,variant:s="primary",...l}=rs(e,"Surface"),c=ns();return{...l,className:(0,Uo.useMemo)((()=>{const e={borders:rP({borderBottom:n,borderLeft:r,borderRight:o,borderTop:i})};return c(nP,e.borders,fP(s,`${t}px`,t-1+"px"),a)}),[t,n,r,o,i,a,c,s])}}function pP(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:i="medium",...a}=rs(function({elevation:e,isElevated:t,...n}){const r={...n};let o=e;var i;return t&&(qo()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(i=o)&&void 0!==i||(o=2)),void 0!==o&&(r.elevation=o),r}(e),"Card"),s=ns();return{...mP({...a,className:(0,Uo.useMemo)((()=>s(Vk,r&&Xk,o&&Jk,t)),[t,s,r,o])}),elevation:n,isBorderless:r,isRounded:o,size:i}}const hP=os((function(e,t){const{children:n,elevation:o,isBorderless:i,isRounded:a,size:s,...l}=pP(e),c=a?Xg.cardBorderRadius:0,u=ns(),d=(0,Uo.useMemo)((()=>u(Ps({borderRadius:c},"",""))),[u,c]),f=(0,Uo.useMemo)((()=>{const e={size:s,isBorderless:i};return{CardBody:e,CardHeader:e,CardFooter:e}}),[i,s]);return(0,r.createElement)(mi,{value:f},(0,r.createElement)(xs,{...l,ref:t},(0,r.createElement)(xs,{className:u(Wk)},n),(0,r.createElement)(Bk,{className:d,isInteractive:!1,value:o?1:0}),(0,r.createElement)(Bk,{className:d,isInteractive:!1,value:o})))}),"Card"),gP=hP;const vP=Ps("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",Xg.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",Xg.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",Xg.colorScrollbarThumbHover,";}}",""),bP={name:"13udsys",styles:"height:100%"},yP={name:"7zq9w",styles:"scroll-behavior:smooth"},xP={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},wP={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},EP={name:"umwchj",styles:"overflow-y:auto"};const _P=os((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=rs(e,"Scrollable"),i=ns();return{...o,className:(0,Uo.useMemo)((()=>i(bP,vP,r&&yP,"x"===n&&xP,"y"===n&&wP,"auto"===n&&EP,t)),[t,i,n,r])}}(e);return(0,r.createElement)(xs,{...n,ref:t})}),"Scrollable"),SP=_P;const CP=os((function(e,t){const{isScrollable:n,...o}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...i}=rs(e,"CardBody"),a=ns();return{...i,className:(0,Uo.useMemo)((()=>a(Uk,Yk,eP[o],r&&tP,"components-card__body",t)),[t,a,r,o]),isScrollable:n}}(e);return n?(0,r.createElement)(SP,{...o,ref:t}):(0,r.createElement)(xs,{...o,ref:t})}),"CardBody"),kP=CP;var PP=Ve((e=>{var t=e,{orientation:n="horizontal"}=t,r=E(t,["orientation"]);return r=x({role:"separator","aria-orientation":n},r)})),TP=Fe((e=>je("hr",PP(e))));const IP={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}};var RP={name:"1u4hpl4",styles:"display:inline"};const MP=bs("hr",{target:"e19on6iw0"})("border:0;margin:0;",(({"aria-orientation":e="horizontal"})=>"vertical"===e?RP:void 0)," ",(({"aria-orientation":e="horizontal"})=>Ps({["vertical"===e?"borderRight":"borderBottom"]:"1px solid currentColor"},"",""))," ",(({"aria-orientation":e="horizontal"})=>Ps({height:"vertical"===e?"auto":0,width:"vertical"===e?0:"auto"},"",""))," ",(({"aria-orientation":e="horizontal",margin:t,marginStart:n,marginEnd:r})=>Ps(Jh({[IP[e].start]:Ah(null!=n?n:t),[IP[e].end]:Ah(null!=r?r:t)})(),"","")),";");const NP=os((function(e,t){const n=rs(e,"Divider");return(0,r.createElement)(TP,{render:(0,r.createElement)(MP,null),...n,ref:t})}),"Divider");const DP=os((function(e,t){const n=function(e){const{className:t,...n}=rs(e,"CardDivider"),r=ns();return{...n,className:(0,Uo.useMemo)((()=>r(qk,Kk,"components-card__divider",t)),[t,r])}}(e);return(0,r.createElement)(NP,{...n,ref:t})}),"CardDivider"),AP=DP;const OP=os((function(e,t){const n=function(e){const{className:t,justify:n,isBorderless:r=!1,isShady:o=!1,size:i="medium",...a}=rs(e,"CardFooter"),s=ns();return{...a,className:(0,Uo.useMemo)((()=>s($k,Yk,Kk,eP[i],r&&Zk,o&&tP,"components-card__footer",t)),[t,s,r,o,i]),justify:n}}(e);return(0,r.createElement)($h,{...n,ref:t})}),"CardFooter"),zP=OP;const LP=os((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...i}=rs(e,"CardHeader"),a=ns();return{...i,className:(0,Uo.useMemo)((()=>a(Hk,Yk,Kk,eP[o],n&&Zk,r&&tP,"components-card__header",t)),[t,a,n,r,o])}}(e);return(0,r.createElement)($h,{...n,ref:t})}),"CardHeader"),FP=LP;const BP=os((function(e,t){const n=function(e){const{className:t,...n}=rs(e,"CardMedia"),r=ns();return{...n,className:(0,Uo.useMemo)((()=>r(Gk,Yk,"components-card__media",t)),[t,r])}}(e);return(0,r.createElement)(xs,{...n,ref:t})}),"CardMedia"),jP=BP;const VP=function e(t){const{__nextHasNoMarginBottom:n,label:o,className:i,heading:a,checked:s,indeterminate:l,help:u,id:f,onChange:m,...p}=t;a&&qo()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[h,g]=(0,Uo.useState)(!1),[v,b]=(0,Uo.useState)(!1),y=(0,d.useRefEffect)((e=>{e&&(e.indeterminate=!!l,g(e.matches(":checked")),b(e.matches(":indeterminate")))}),[s,l]),x=(0,d.useInstanceId)(e,"inspector-checkbox-control",f);return(0,r.createElement)(iy,{__nextHasNoMarginBottom:n,label:a,id:x,help:u,className:c()("components-checkbox-control",i)},(0,r.createElement)("span",{className:"components-checkbox-control__input-container"},(0,r.createElement)("input",{ref:y,id:x,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>m(e.target.checked),checked:s,"aria-describedby":u?x+"__help":void 0,...p}),v?(0,r.createElement)($E,{icon:rg,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,h?(0,r.createElement)($E,{icon:DS,className:"components-checkbox-control__checked",role:"presentation"}):null),o&&(0,r.createElement)("label",{className:"components-checkbox-control__label",htmlFor:x},o))},HP=4e3;function $P({className:e,children:t,onCopy:n,onFinishCopy:o,text:i,...a}){qo()("wp.components.ClipboardButton",{since:"5.8",alternative:"wp.compose.useCopyToClipboard"});const s=(0,Uo.useRef)(),l=(0,d.useCopyToClipboard)(i,(()=>{n(),s.current&&clearTimeout(s.current),o&&(s.current=setTimeout((()=>o()),HP))}));(0,Uo.useEffect)((()=>{s.current&&clearTimeout(s.current)}),[]);const u=c()("components-clipboard-button",e);return(0,r.createElement)(my,{...a,className:u,ref:l,onCopy:e=>{e.target.focus()}},t)}const WP=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const UP=e=>Ps("font-size:",Yb("default.fontSize"),";font-family:inherit;appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:start;text-decoration:","a"===e?"none":void 0,";svg,path{fill:currentColor;}&:hover{color:",Ds.theme.accent,";}&:focus{box-shadow:none;outline:none;}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Ds.theme.accent,";outline:2px solid transparent;outline-offset:0;}",""),GP={name:"1bcj5ek",styles:"width:100%;display:block"},qP={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},YP=Ps("border:1px solid ",Xg.surfaceBorderColor,";",""),KP=Ps(">*:not( marquee )>*{border-bottom:1px solid ",Xg.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),XP=Xg.controlBorderRadius,ZP=Ps("border-radius:",XP,";",""),JP=Ps("border-radius:",XP,";>*:first-of-type>*{border-top-left-radius:",XP,";border-top-right-radius:",XP,";}>*:last-of-type>*{border-bottom-left-radius:",XP,";border-bottom-right-radius:",XP,";}",""),QP=`calc(${Xg.fontSize} * ${Xg.fontLineHeightBase})`,eT=`calc((${Xg.controlHeight} - ${QP} - 2px) / 2)`,tT=`calc((${Xg.controlHeightSmall} - ${QP} - 2px) / 2)`,nT=`calc((${Xg.controlHeightLarge} - ${QP} - 2px) / 2)`,rT={small:Ps("padding:",tT," ",Xg.controlPaddingXSmall,";",""),medium:Ps("padding:",eT," ",Xg.controlPaddingX,";",""),large:Ps("padding:",nT," ",Xg.controlPaddingXLarge,";","")};const oT=(0,Uo.createContext)({size:"medium"}),iT=()=>(0,Uo.useContext)(oT);const aT=os((function(e,t){const{isBordered:n,isSeparated:o,size:i,...a}=function(e){const{className:t,isBordered:n=!1,isRounded:r=!0,isSeparated:o=!1,role:i="list",...a}=rs(e,"ItemGroup");return{isBordered:n,className:ns()(n&&YP,o&&KP,r&&JP,t),role:i,isSeparated:o,...a}}(e),{size:s}=iT(),l={spacedAround:!n&&!o,size:i||s};return(0,r.createElement)(oT.Provider,{value:l},(0,r.createElement)(xs,{...a,ref:t}))}),"ItemGroup"),sT=10,lT=0,cT=sT;function uT(e){return Math.max(0,Math.min(100,e))}function dT(e,t,n){const r=e.slice();return r[t]=n,r}function fT(e,t,n){if(function(e,t,n,r=lT){const o=e[t].position,i=Math.min(o,n),a=Math.max(o,n);return e.some((({position:e},o)=>o!==t&&(Math.abs(e-n)<r||i<e&&e<a)))}(e,t,n))return e;return dT(e,t,{...e[t],position:n})}function mT(e,t,n){return dT(e,t,{...e[t],color:n})}function pT(e,t){if(!t)return;const{x:n,width:r}=t.getBoundingClientRect(),o=e-n;return Math.round(uT(100*o/r))}function hT({isOpen:e,position:t,color:n,...o}){const i=`components-custom-gradient-picker__control-point-button-description-${(0,d.useInstanceId)(hT)}`;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(my,{"aria-label":(0,u.sprintf)((0,u.__)("Gradient control point at position %1$s%% with color code %2$s."),t,n),"aria-describedby":i,"aria-haspopup":"true","aria-expanded":e,className:c()("components-custom-gradient-picker__control-point-button",{"is-active":e}),...o}),(0,r.createElement)(ws,{id:i},(0,u.__)("Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.")))}function gT({isRenderedInSidebar:e,className:t,...n}){const o=(0,Uo.useMemo)((()=>({placement:"bottom",offset:8,resize:!1})),[]),i=c()("components-custom-gradient-picker__control-point-dropdown",t);return(0,r.createElement)(XS,{isRenderedInSidebar:e,popoverProps:o,className:i,...n})}function vT({disableRemove:e,disableAlpha:t,gradientPickerDomRef:n,ignoreMarkerPosition:o,value:i,onChange:a,onStartControlPointChange:s,onStopControlPointChange:l,__experimentalIsRenderedInSidebar:c}){const d=(0,Uo.useRef)(),f=e=>{if(void 0===d.current||null===n.current)return;const t=pT(e.clientX,n.current),{initialPosition:r,index:o,significantMoveHappened:s}=d.current;!s&&Math.abs(r-t)>=5&&(d.current.significantMoveHappened=!0),a(fT(i,o,t))},m=()=>{window&&window.removeEventListener&&d.current&&d.current.listenersActivated&&(window.removeEventListener("mousemove",f),window.removeEventListener("mouseup",m),l(),d.current.listenersActivated=!1)},p=(0,Uo.useRef)();return p.current=m,(0,Uo.useEffect)((()=>()=>{p.current?.()}),[]),(0,r.createElement)(r.Fragment,null,i.map(((n,p)=>{const h=n?.position;return o!==h&&(0,r.createElement)(gT,{isRenderedInSidebar:c,key:p,onClose:l,renderToggle:({isOpen:e,onToggle:t})=>(0,r.createElement)(hT,{key:p,onClick:()=>{d.current&&d.current.significantMoveHappened||(e?l():s(),t())},onMouseDown:()=>{window&&window.addEventListener&&(d.current={initialPosition:h,index:p,significantMoveHappened:!1,listenersActivated:!0},s(),window.addEventListener("mousemove",f),window.addEventListener("mouseup",m))},onKeyDown:e=>{"ArrowLeft"===e.code?(e.stopPropagation(),a(fT(i,p,uT(n.position-cT)))):"ArrowRight"===e.code&&(e.stopPropagation(),a(fT(i,p,uT(n.position+cT))))},isOpen:e,position:n.position,color:n.color}),renderContent:({onClose:o})=>(0,r.createElement)(GS,{paddingSize:"none"},(0,r.createElement)(MS,{enableAlpha:!t,color:n.color,onChange:e=>{a(mT(i,p,Bg(e).toRgbString()))}}),!e&&i.length>2&&(0,r.createElement)(Py,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center"},(0,r.createElement)(my,{onClick:()=>{a(function(e,t){return e.filter(((e,n)=>n!==t))}(i,p)),o()},variant:"link"},(0,u.__)("Remove Control Point")))),style:{left:`${n.position}%`,transform:"translateX( -50% )"}})})))}vT.InsertPoint=function({value:e,onChange:t,onOpenInserter:n,onCloseInserter:o,insertPosition:i,disableAlpha:a,__experimentalIsRenderedInSidebar:s}){const[l,c]=(0,Uo.useState)(!1);return(0,r.createElement)(gT,{isRenderedInSidebar:s,className:"components-custom-gradient-picker__inserter",onClose:()=>{o()},renderToggle:({isOpen:e,onToggle:t})=>(0,r.createElement)(my,{"aria-expanded":e,"aria-haspopup":"true",onClick:()=>{e?o():(c(!1),n()),t()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:ng}),renderContent:()=>(0,r.createElement)(GS,{paddingSize:"none"},(0,r.createElement)(MS,{enableAlpha:!a,onChange:n=>{l?t(function(e,t,n){const r=e.findIndex((e=>e.position===t));return mT(e,r,n)}(e,i,Bg(n).toRgbString())):(t(function(e,t,n){const r=e.findIndex((e=>e.position>t)),o={color:n,position:t},i=e.slice();return i.splice(r-1,0,o),i}(e,i,Bg(n).toRgbString())),c(!0))}})),style:null!==i?{left:`${i}%`,transform:"translateX( -50% )"}:void 0})};const bT=vT,yT=(e,t)=>{switch(t.type){case"MOVE_INSERTER":if("IDLE"===e.id||"MOVING_INSERTER"===e.id)return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===e.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===e.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===e.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===e.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===e.id)return{id:"IDLE"}}return e},xT={id:"IDLE"};function wT({background:e,hasGradient:t,value:n,onChange:o,disableInserter:i=!1,disableAlpha:a=!1,__experimentalIsRenderedInSidebar:s=!1}){const l=(0,Uo.useRef)(null),[u,d]=(0,Uo.useReducer)(yT,xT),f=e=>{if(!l.current)return;const t=pT(e.clientX,l.current);n.some((({position:e})=>Math.abs(t-e)<sT))?"MOVING_INSERTER"===u.id&&d({type:"STOP_INSERTER_MOVE"}):d({type:"MOVE_INSERTER",insertPosition:t})},m="MOVING_INSERTER"===u.id,p="INSERTING_CONTROL_POINT"===u.id;return(0,r.createElement)("div",{className:c()("components-custom-gradient-picker__gradient-bar",{"has-gradient":t}),onMouseEnter:f,onMouseMove:f,onMouseLeave:()=>{d({type:"STOP_INSERTER_MOVE"})}},(0,r.createElement)("div",{className:"components-custom-gradient-picker__gradient-bar-background",style:{background:e,opacity:t?1:.4}}),(0,r.createElement)("div",{ref:l,className:"components-custom-gradient-picker__markers-container"},!i&&(m||p)&&(0,r.createElement)(bT.InsertPoint,{__experimentalIsRenderedInSidebar:s,disableAlpha:a,insertPosition:u.insertPosition,value:n,onChange:o,onOpenInserter:()=>{d({type:"OPEN_INSERTER"})},onCloseInserter:()=>{d({type:"CLOSE_INSERTER"})}}),(0,r.createElement)(bT,{__experimentalIsRenderedInSidebar:s,disableAlpha:a,disableRemove:i,gradientPickerDomRef:l,ignoreMarkerPosition:p?u.insertPosition:void 0,value:n,onChange:o,onStartControlPointChange:()=>{d({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{d({type:"STOP_CONTROL_CHANGE"})}})))}var ET=o(8924);const _T="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",ST={type:"angular",value:"90"},CT=[{value:"linear-gradient",label:(0,u.__)("Linear")},{value:"radial-gradient",label:(0,u.__)("Radial")}],kT={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function PT({type:e,value:t,length:n}){return`${function({type:e,value:t}){return"literal"===e?t:"hex"===e?`#${t}`:`${e}(${t.join(",")})`}({type:e,value:t})} ${function(e){if(!e)return"";const{value:t,type:n}=e;return`${t}${n}`}(n)}`}function TT({type:e,orientation:t,colorStops:n}){const r=function(e){if(!Array.isArray(e)&&e&&"angular"===e.type)return`${e.value}deg`}(t);return`${e}(${[r,...n.sort(((e,t)=>{const n=e=>void 0===e?.length?.value?0:parseInt(e.length.value);return n(e)-n(t)})).map(PT)].filter(Boolean).join(",")})`}function IT(e){return void 0===e.length||"%"!==e.length.type}function RT(e){switch(e.type){case"hex":return`#${e.value}`;case"literal":return e.value;case"rgb":case"rgba":return`${e.type}(${e.value.join(",")})`;default:return"transparent"}}Vg([Hg]);const MT=bs(Uh,{target:"e10bzpgi1"})({name:"1gvx10y",styles:"flex-grow:5"}),NT=bs(Uh,{target:"e10bzpgi0"})({name:"1gvx10y",styles:"flex-grow:5"}),DT=({gradientAST:e,hasGradient:t,onChange:n})=>{var o;const i=null!==(o=e?.orientation?.value)&&void 0!==o?o:180;return(0,r.createElement)(zy,{onChange:t=>{n(TT({...e,orientation:{type:"angular",value:`${t}`}}))},value:t?i:""})},AT=({gradientAST:e,hasGradient:t,onChange:n})=>{const{type:o}=e;return(0,r.createElement)(YE,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:(0,u.__)("Type"),labelPosition:"top",onChange:t=>{"linear-gradient"===t&&n(TT({...e,orientation:e.orientation?void 0:ST,type:"linear-gradient"})),"radial-gradient"===t&&(()=>{const{orientation:t,...r}=e;n(TT({...r,type:"radial-gradient"}))})()},options:CT,size:"__unstable-large",value:t?o:void 0})};const OT=function({value:e,onChange:t,__experimentalIsRenderedInSidebar:n=!1}){const{gradientAST:o,hasGradient:i}=function(e){let t,n=!!e;const r=null!=e?e:_T;try{t=ET.parse(r)[0]}catch(e){console.warn("wp.components.CustomGradientPicker failed to parse the gradient with error",e),t=ET.parse(_T)[0],n=!1}if(Array.isArray(t.orientation)||"directional"!==t.orientation?.type||(t.orientation={type:"angular",value:kT[t.orientation.value].toString()}),t.colorStops.some(IT)){const{colorStops:e}=t,n=100/(e.length-1);e.forEach(((e,t)=>{e.length={value:""+n*t,type:"%"}}))}return{gradientAST:t,hasGradient:n}}(e),a=function(e){return TT({type:"linear-gradient",orientation:ST,colorStops:e.colorStops})}(o),s=o.colorStops.map((e=>({color:RT(e),position:parseInt(e.length.value)})));return(0,r.createElement)(jS,{spacing:4,className:"components-custom-gradient-picker"},(0,r.createElement)(wT,{__experimentalIsRenderedInSidebar:n,background:a,hasGradient:i,value:s,onChange:e=>{t(TT(function(e,t){return{...e,colorStops:t.map((({position:e,color:t})=>{const{r:n,g:r,b:o,a:i}=Bg(t).toRgb();return{length:{type:"%",value:e?.toString()},type:i<1?"rgba":"rgb",value:i<1?[`${n}`,`${r}`,`${o}`,`${i}`]:[`${n}`,`${r}`,`${o}`]}}))}}(o,e)))}}),(0,r.createElement)($h,{gap:3,className:"components-custom-gradient-picker__ui-line"},(0,r.createElement)(MT,null,(0,r.createElement)(AT,{gradientAST:o,hasGradient:i,onChange:t})),(0,r.createElement)(NT,null,"linear-gradient"===o.type&&(0,r.createElement)(DT,{gradientAST:o,hasGradient:i,onChange:t}))))},zT=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.gradients)&&!("gradient"in t);var t}));function LT({className:e,clearGradient:t,gradients:n,onChange:o,value:i,...a}){const s=(0,Uo.useMemo)((()=>n.map((({gradient:e,name:n,slug:a},s)=>(0,r.createElement)(BS.Option,{key:a,value:e,isSelected:i===e,tooltipText:n||(0,u.sprintf)((0,u.__)("Gradient code: %s"),e),style:{color:"rgba( 0,0,0,0 )",background:e},onClick:i===e?t:()=>o(e,s),"aria-label":n?(0,u.sprintf)((0,u.__)("Gradient: %s"),n):(0,u.sprintf)((0,u.__)("Gradient code: %s"),e)})))),[n,i,o,t]);return(0,r.createElement)(BS.OptionGroup,{className:e,options:s,...a})}function FT({className:e,clearGradient:t,gradients:n,onChange:o,value:i,headingLevel:a}){const s=(0,d.useInstanceId)(FT);return(0,r.createElement)(jS,{spacing:3,className:e},n.map((({name:e,gradients:n},l)=>{const c=`color-palette-${s}-${l}`;return(0,r.createElement)(jS,{spacing:2,key:l},(0,r.createElement)(WS,{level:a,id:c},e),(0,r.createElement)(LT,{clearGradient:t,gradients:n,onChange:e=>o(e,l),value:i,"aria-labelledby":c}))})))}function BT(e){const{asButtons:t,loop:n,actions:o,headingLevel:i,"aria-label":a,"aria-labelledby":s,...l}=e,c=zT(e.gradients)?(0,r.createElement)(FT,{headingLevel:i,...l}):(0,r.createElement)(LT,{...l});let d;if(t)d={asButtons:!0};else{const e={asButtons:!1,loop:n};d=a?{...e,"aria-label":a}:s?{...e,"aria-labelledby":s}:{...e,"aria-label":(0,u.__)("Custom color picker.")}}return(0,r.createElement)(BS,{...d,actions:o,options:c})}const jT=function({className:e,gradients:t=[],onChange:n,value:o,clearable:i=!0,disableCustomGradients:a=!1,__experimentalIsRenderedInSidebar:s,headingLevel:l=2,...c}){const d=(0,Uo.useCallback)((()=>n(void 0)),[n]);return(0,r.createElement)(jS,{spacing:t.length?4:0},!a&&(0,r.createElement)(OT,{__experimentalIsRenderedInSidebar:s,value:o,onChange:n}),(t.length>0||i)&&(0,r.createElement)(BT,{...c,className:e,clearGradient:d,gradients:t,onChange:n,value:o,actions:i&&!a&&(0,r.createElement)(BS.ButtonAction,{onClick:d},(0,u.__)("Clear")),headingLevel:l}))},VT=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})),HT=window.wp.dom,$T=()=>{},WT=["menuitem","menuitemradio","menuitemcheckbox"];class UT extends Uo.Component{constructor(e){super(e),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container&&this.container.addEventListener("keydown",this.onKeyDown)}componentWillUnmount(){this.container&&this.container.removeEventListener("keydown",this.onKeyDown)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,"function"==typeof t?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){if(!this.container)return null;const{onlyBrowserTabstops:t}=this.props,n=(t?HT.focus.tabbable:HT.focus.focusable).find(this.container),r=this.getFocusableIndex(n,e);return r>-1&&e?{index:r,target:e,focusables:n}:null}getFocusableIndex(e,t){return e.indexOf(t)}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:r,onNavigate:o=$T,stopNavigationEvents:i}=this.props,a=r(e);if(void 0!==a&&i){e.stopImmediatePropagation();const t=e.target?.getAttribute("role");!!t&&WT.includes(t)&&e.preventDefault()}if(!a)return;const s=e.target?.ownerDocument?.activeElement;if(!s)return;const l=t(s);if(!l)return;const{index:c,focusables:u}=l,d=n?function(e,t,n){const r=e+n;return r<0?t+r:r>=t?r-t:r}(c,u.length,a):c+a;d>=0&&d<u.length&&(u[d].focus(),o(d,u[d]),"Tab"===e.code&&e.preventDefault())}render(){const{children:e,stopNavigationEvents:t,eventToOffset:n,onNavigate:o,onKeyDown:i,cycle:a,onlyBrowserTabstops:s,forwardedRef:l,...c}=this.props;return(0,r.createElement)("div",{ref:this.bindContainer,...c},e)}}const GT=(e,t)=>(0,r.createElement)(UT,{...e,forwardedRef:t});GT.displayName="NavigableContainer";const qT=(0,Uo.forwardRef)(GT);const YT=(0,Uo.forwardRef)((function({role:e="menu",orientation:t="vertical",...n},o){return(0,r.createElement)(qT,{ref:o,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:e,"aria-orientation":"presentation"===e||"vertical"!==t&&"horizontal"!==t?void 0:t,eventToOffset:e=>{const{code:n}=e;let r=["ArrowDown"],o=["ArrowUp"];return"horizontal"===t&&(r=["ArrowRight"],o=["ArrowLeft"]),"both"===t&&(r=["ArrowRight","ArrowDown"],o=["ArrowLeft","ArrowUp"]),r.includes(n)?1:o.includes(n)?-1:["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(n)?0:void 0},...n})})),KT=YT;function XT(e={},t={}){const n={...e,...t};return t.className&&e.className&&(n.className=c()(t.className,e.className)),n}function ZT(e){return"function"==typeof e}const JT=is((function(e){const{children:t,className:n,controls:o,icon:i=VT,label:a,popoverProps:s,toggleProps:l,menuProps:u,disableOpenOnArrowDown:d=!1,text:f,noIcons:m,open:p,defaultOpen:h,onToggle:g,variant:v}=rs(e,"DropdownMenu");if(!o?.length&&!ZT(t))return null;let b;o?.length&&(b=o,Array.isArray(b[0])||(b=[o]));const y=XT({className:"components-dropdown-menu__popover",variant:v},s);return(0,r.createElement)(FE,{className:n,popoverProps:y,renderToggle:({isOpen:e,onToggle:t})=>{var n;const{as:o=my,...s}=null!=l?l:{},u=XT({className:c()("components-dropdown-menu__toggle",{"is-opened":e})},s);return(0,r.createElement)(o,{...u,icon:i,onClick:e=>{t(),u.onClick&&u.onClick(e)},onKeyDown:n=>{(n=>{d||e||"ArrowDown"!==n.code||(n.preventDefault(),t())})(n),u.onKeyDown&&u.onKeyDown(n)},"aria-haspopup":"true","aria-expanded":e,label:a,text:f,showTooltip:null===(n=l?.showTooltip)||void 0===n||n},u.children)},renderContent:e=>{const n=XT({"aria-label":a,className:c()("components-dropdown-menu__menu",{"no-icons":m})},u);return(0,r.createElement)(KT,{...n,role:"menu"},ZT(t)?t(e):null,b?.flatMap(((t,n)=>t.map(((t,o)=>(0,r.createElement)(my,{key:[n,o].join(),onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:c()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===o,"is-active":t.isActive,"is-icon-only":!t.title}),icon:t.icon,label:t.label,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title))))))},open:p,defaultOpen:h,onToggle:g})}),"DropdownMenu"),QT=JT;const eI=bs(DE,{target:"e1lpqc909"})("&&{flex-shrink:0;width:",Ah(6),";height:",Ah(6),";}"),tI=bs(ly,{target:"e1lpqc908"})(yv,"{background:",Ds.gray[100],";border-radius:",Xg.controlBorderRadius,";",Ev,Ev,Ev,Ev,"{height:",Ah(8),";}",kv,kv,kv,"{border-color:transparent;box-shadow:none;}}"),nI=({as:e})=>"button"===e?Ps("display:flex;align-items:center;width:100%;appearance:none;background:transparent;border:none;border-radius:0;padding:0;cursor:pointer;&:hover{color:",Ds.theme.accent,";}",""):null,rI=bs(xs,{target:"e1lpqc907"})(nI," padding-block:3px;padding-inline-start:",Ah(3),";border:1px solid ",Xg.surfaceBorderColor,";border-bottom-color:transparent;font-size:",Yb("default.fontSize"),";&:focus-visible{border-color:transparent;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Ds.theme.accent,";outline:2px solid transparent;outline-offset:0;}border-top-left-radius:",Xg.controlBorderRadius,";border-top-right-radius:",Xg.controlBorderRadius,";&+&{border-top-left-radius:0;border-top-right-radius:0;}&:last-child{border-bottom-left-radius:",Xg.controlBorderRadius,";border-bottom-right-radius:",Xg.controlBorderRadius,";border-bottom-color:",Xg.surfaceBorderColor,";}&.is-selected+&{border-top-color:transparent;}&.is-selected{border-color:",Ds.theme.accent,";}"),oI=bs("div",{target:"e1lpqc906"})("line-height:",Ah(8),";margin-left:",Ah(2),";margin-right:",Ah(2),";white-space:nowrap;overflow:hidden;"),iI=bs($S,{target:"e1lpqc905"})("text-transform:uppercase;line-height:",Ah(6),";font-weight:500;&&&{font-size:11px;margin-bottom:0;}"),aI=bs(xs,{target:"e1lpqc904"})("height:",Ah(6),";display:flex;"),sI=bs(Py,{target:"e1lpqc903"})("margin-bottom:",Ah(2),";"),lI=bs(xs,{target:"e1lpqc902"})({name:"u6wnko",styles:"&&&{.components-button.has-icon{min-width:0;padding:0;}}"}),cI=bs(my,{target:"e1lpqc901"})("&&{color:",Ds.theme.accent,";}"),uI=bs(my,{target:"e1lpqc900"})("&&{margin-top:",Ah(1),";}");function dI({value:e,onChange:t,label:n}){return(0,r.createElement)(tI,{label:n,hideLabelFromVision:!0,value:e,onChange:t})}function fI({isGradient:e,element:t,onChange:n,popoverProps:o,onClose:i=(()=>{})}){const a=(0,Uo.useMemo)((()=>({shift:!0,offset:20,resize:!1,placement:"left-start",...o,className:c()("components-palette-edit__popover",o?.className)})),[o]);return(0,r.createElement)(bw,{...a,onClose:i},!e&&(0,r.createElement)(MS,{color:t.color,enableAlpha:!0,onChange:e=>{n({...t,color:e})}}),e&&(0,r.createElement)("div",{className:"components-palette-edit__popover-gradient-picker"},(0,r.createElement)(OT,{__experimentalIsRenderedInSidebar:!0,value:t.gradient,onChange:e=>{n({...t,gradient:e})}})))}function mI({canOnlyChangeValues:e,element:t,onChange:n,isEditing:o,onStartEditing:i,onRemove:a,onStopEditing:s,popoverProps:l,slugPrefix:c,isGradient:f}){const m=(0,d.__experimentalUseFocusOutside)(s),p=f?t.gradient:t.color,[h,g]=(0,Uo.useState)(null),v=(0,Uo.useMemo)((()=>({...l,anchor:h})),[h,l]);return(0,r.createElement)(rI,{className:o?"is-selected":void 0,as:o?"div":"button",onClick:i,"aria-label":o?void 0:(0,u.sprintf)((0,u.__)("Edit: %s"),t.name.trim().length?t.name:p),ref:g,...o?{...m}:{}},(0,r.createElement)(Py,{justify:"flex-start"},(0,r.createElement)(eI,{colorValue:p}),(0,r.createElement)(og,null,o&&!e?(0,r.createElement)(dI,{label:f?(0,u.__)("Gradient name"):(0,u.__)("Color name"),value:t.name,onChange:e=>n({...t,name:e,slug:c+Wy(null!=e?e:"")})}):(0,r.createElement)(oI,null,t.name.trim().length?t.name:" ")),o&&!e&&(0,r.createElement)(og,null,(0,r.createElement)(uI,{size:"small",icon:Lw,label:(0,u.__)("Remove color"),onClick:a}))),o&&(0,r.createElement)(fI,{isGradient:f,onChange:n,element:t,popoverProps:v}))}function pI({elements:e,onChange:t,editingElement:n,setEditingElement:o,canOnlyChangeValues:i,slugPrefix:a,isGradient:s,popoverProps:l}){const c=(0,Uo.useRef)();(0,Uo.useEffect)((()=>{c.current=e}),[e]);const u=(0,d.useDebounce)(t,100);return(0,r.createElement)(jS,{spacing:3},(0,r.createElement)(aT,{isRounded:!0},e.map(((c,d)=>(0,r.createElement)(mI,{isGradient:s,canOnlyChangeValues:i,key:d,element:c,onStartEditing:()=>{n!==d&&o(d)},onChange:t=>{u(e.map(((e,n)=>n===d?t:e)))},onRemove:()=>{o(null);const n=e.filter(((e,t)=>t!==d));t(n.length?n:void 0)},isEditing:d===n,onStopEditing:()=>{d===n&&o(null)},slugPrefix:a,popoverProps:l})))))}const hI=[];const gI=function({gradients:e,colors:t=hI,onChange:n,paletteLabel:o,paletteLabelHeadingLevel:i=2,emptyMessage:a,canOnlyChangeValues:s,canReset:l,slugPrefix:c="",popoverProps:f}){const m=!!e,p=m?e:t,[h,g]=(0,Uo.useState)(!1),[v,b]=(0,Uo.useState)(null),y=h&&!!v&&p[v]&&!p[v].slug,x=p.length>0,w=(0,d.useDebounce)(n,100),E=(0,Uo.useCallback)(((e,t)=>{const n=void 0===t?void 0:p[t];n&&n[m?"gradient":"color"]===e?b(t):g(!0)}),[m,p]);return(0,r.createElement)(lI,null,(0,r.createElement)(sI,null,(0,r.createElement)(iI,{level:i},o),(0,r.createElement)(aI,null,x&&h&&(0,r.createElement)(cI,{size:"small",onClick:()=>{g(!1),b(null)}},(0,u.__)("Done")),!s&&(0,r.createElement)(my,{size:"small",isPressed:y,icon:ng,label:m?(0,u.__)("Add gradient"):(0,u.__)("Add color"),onClick:()=>{const r=function(e,t){const n=new RegExp(`^${t}color-([\\d]+)$`),r=e.reduce(((e,t)=>{if("string"==typeof t?.slug){const r=t?.slug.match(n);if(r){const t=parseInt(r[1],10);if(t>=e)return t+1}}return e}),1);return(0,u.sprintf)((0,u.__)("Color %s"),r)}(p,c);n(e?[...e,{gradient:_T,name:r,slug:c+Wy(r)}]:[...t,{color:"#000",name:r,slug:c+Wy(r)}]),g(!0),b(p.length)}}),x&&(!h||!s||l)&&(0,r.createElement)(QT,{icon:WP,label:m?(0,u.__)("Gradient options"):(0,u.__)("Color options"),toggleProps:{isSmall:!0}},(({onClose:e})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(KT,{role:"menu"},!h&&(0,r.createElement)(my,{variant:"tertiary",onClick:()=>{g(!0),e()},className:"components-palette-edit__menu-button"},(0,u.__)("Show details")),!s&&(0,r.createElement)(my,{variant:"tertiary",onClick:()=>{b(null),g(!1),n(),e()},className:"components-palette-edit__menu-button"},m?(0,u.__)("Remove all gradients"):(0,u.__)("Remove all colors")),l&&(0,r.createElement)(my,{variant:"tertiary",onClick:()=>{b(null),n(),e()}},m?(0,u.__)("Reset gradient"):(0,u.__)("Reset colors")))))))),x&&(0,r.createElement)(r.Fragment,null,h&&(0,r.createElement)(pI,{canOnlyChangeValues:s,elements:p,onChange:n,editingElement:v,setEditingElement:b,slugPrefix:c,isGradient:m,popoverProps:f}),!h&&null!==v&&(0,r.createElement)(fI,{isGradient:m,onClose:()=>b(null),onChange:e=>{w(p.map(((t,n)=>n===v?e:t)))},element:p[null!=v?v:-1],popoverProps:f}),!h&&(m?(0,r.createElement)(jT,{gradients:e,onChange:E,clearable:!1,disableCustomGradients:!0}):(0,r.createElement)(JS,{colors:t,onChange:E,clearable:!1,disableCustomColors:!0}))),!x&&a)},vI=({__next40pxDefaultSize:e})=>!e&&Ps("height:28px;padding-left:",Ah(1),";padding-right:",Ah(1),";",""),bI=bs($h,{target:"evuatpg0"})("height:38px;padding-left:",Ah(2),";padding-right:",Ah(2),";",vI,";");const yI=(0,Uo.forwardRef)((function(e,t){const{value:n,isExpanded:o,instanceId:i,selectedSuggestionIndex:a,className:s,onChange:l,onFocus:u,onBlur:d,...f}=e,[m,p]=(0,Uo.useState)(!1),h=n?n.length+1:0;return(0,r.createElement)("input",{ref:t,id:`components-form-token-input-${i}`,type:"text",...f,value:n||"",onChange:e=>{l&&l({value:e.target.value})},onFocus:e=>{p(!0),u?.(e)},onBlur:e=>{p(!1),d?.(e)},size:h,className:c()(s,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":o,"aria-autocomplete":"list","aria-owns":o?`components-form-token-suggestions-${i}`:void 0,"aria-activedescendant":m&&-1!==a&&o?`components-form-token-suggestions-${i}-${a}`:void 0,"aria-describedby":`components-form-token-suggestions-howto-${i}`})})),xI=yI;var wI=o(5428),EI=o.n(wI);const _I=e=>{e.preventDefault()};const SI=function({selectedIndex:e,scrollIntoView:t,match:n,onHover:o,onSelect:i,suggestions:a=[],displayTransform:s,instanceId:l,__experimentalRenderItem:u}){const[f,m]=(0,Uo.useState)(!1),p=(0,d.useRefEffect)((n=>{let r;return e>-1&&t&&n.children[e]&&(m(!0),EI()(n.children[e],n,{onlyScrollIfNeeded:!0}),r=requestAnimationFrame((()=>{m(!1)}))),()=>{void 0!==r&&cancelAnimationFrame(r)}}),[e,t]),h=e=>()=>{f||o?.(e)},g=e=>()=>{i?.(e)};return(0,r.createElement)("ul",{ref:p,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${l}`,role:"listbox"},a.map(((t,o)=>{const i=(e=>{const t=s(n).toLocaleLowerCase();if(0===t.length)return null;const r=s(e),o=r.toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:r.substring(0,o),suggestionMatch:r.substring(o,o+t.length),suggestionAfterMatch:r.substring(o+t.length)}})(t),a=c()("components-form-token-field__suggestion",{"is-selected":o===e});let d;return d="function"==typeof u?u({item:t}):i?(0,r.createElement)("span",{"aria-label":s(t)},i.suggestionBeforeMatch,(0,r.createElement)("strong",{className:"components-form-token-field__suggestion-match"},i.suggestionMatch),i.suggestionAfterMatch):s(t),(0,r.createElement)("li",{id:`components-form-token-suggestions-${l}-${o}`,role:"option",className:a,key:"object"==typeof t&&"value"in t?t?.value:s(t),onMouseDown:_I,onClick:g(t),onMouseEnter:h(t),"aria-selected":o===e},d)})))},CI=(0,d.createHigherOrderComponent)((e=>t=>{const[n,o]=(0,Uo.useState)(void 0),i=(0,Uo.useCallback)((e=>o((()=>e?.handleFocusOutside?e.handleFocusOutside.bind(e):void 0))),[]);return(0,r.createElement)("div",{...(0,d.__experimentalUseFocusOutside)(n)},(0,r.createElement)(e,{ref:i,...t}))}),"withFocusOutside"),kI=()=>{},PI=CI(class extends Uo.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}}),TI=(e,t)=>null===e?-1:t.indexOf(e);const II=function e(t){var n;const{__nextHasNoMarginBottom:o=!1,__next40pxDefaultSize:i=!1,value:a,label:s,options:l,onChange:f,onFilterValueChange:m=kI,hideLabelFromVision:p,help:h,allowReset:g=!0,className:v,messages:b={selected:(0,u.__)("Item selected.")},__experimentalRenderItem:y}=Nv(t),[x,w]=cE({value:a,onChange:f}),E=l.find((e=>e.value===x)),_=null!==(n=E?.label)&&void 0!==n?n:"",S=(0,d.useInstanceId)(e,"combobox-control"),[C,k]=(0,Uo.useState)(E||null),[P,T]=(0,Uo.useState)(!1),[I,R]=(0,Uo.useState)(!1),[M,N]=(0,Uo.useState)(""),D=(0,Uo.useRef)(null),A=(0,Uo.useMemo)((()=>{const e=[],t=[],n=$y(M);return l.forEach((r=>{const o=$y(r.label).indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[M,l]),O=e=>{w(e.value),(0,jy.speak)(b.selected,"assertive"),k(e),N(""),T(!1)},z=(e=1)=>{let t=TI(C,A)+e;t<0?t=A.length-1:t>=A.length&&(t=0),k(A[t]),T(!0)};return(0,Uo.useEffect)((()=>{const e=A.length>0,t=TI(C,A)>0;e&&!t&&k(A[0])}),[A,C]),(0,Uo.useEffect)((()=>{const e=A.length>0;if(P){const t=e?(0,u.sprintf)((0,u._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",A.length),A.length):(0,u.__)("No results.");(0,jy.speak)(t,"polite")}}),[A,P]),(0,r.createElement)(PI,{onFocusOutside:()=>{T(!1)}},(0,r.createElement)(iy,{__nextHasNoMarginBottom:o,className:c()(v,"components-combobox-control"),label:s,id:`components-form-token-input-${S}`,hideLabelFromVision:p,help:h},(0,r.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:-1,onKeyDown:e=>{let t=!1;if(!e.defaultPrevented&&!e.nativeEvent.isComposing&&229!==e.keyCode){switch(e.code){case"Enter":C&&(O(C),t=!0);break;case"ArrowUp":z(-1),t=!0;break;case"ArrowDown":z(1),t=!0;break;case"Escape":T(!1),k(null),t=!0}t&&e.preventDefault()}}},(0,r.createElement)(bI,{__next40pxDefaultSize:i},(0,r.createElement)(Uh,null,(0,r.createElement)(xI,{className:"components-combobox-control__input",instanceId:S,ref:D,value:P?M:_,onFocus:()=>{R(!0),T(!0),m(""),N("")},onBlur:()=>{R(!1)},isExpanded:P,selectedSuggestionIndex:TI(C,A),onChange:e=>{const t=e.value;N(t),m(t),I&&T(!0)}})),g&&(0,r.createElement)(og,null,(0,r.createElement)(my,{className:"components-combobox-control__reset",icon:zw,disabled:!x,onClick:()=>{w(null),D.current?.focus()},label:(0,u.__)("Reset")}))),P&&(0,r.createElement)(SI,{instanceId:S,match:{label:M,value:""},displayTransform:e=>e.label,suggestions:A,selectedIndex:TI(C,A),onHover:k,onSelect:O,scrollIntoView:!0,__experimentalRenderItem:y}))))};var RI=(0,r.createContext)(void 0),MI=Ve((e=>{const[t,n]=(0,r.useState)();return e=Te(e,(e=>(0,Le.jsx)(RI.Provider,{value:n,children:e})),[]),e=x({role:"group","aria-labelledby":t},e)}));Fe((e=>je("div",MI(e))));var NI=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);return r=MI(r)})),DI=Fe((e=>je("div",NI(e))));function AI(e){if(e.state){const{state:t,...n}=e,{store:r,...o}=AI(t);return{...n,...o,store:r}}return e}function OI(e,t={}){const n=e.displayName,o=n=>{const{store:o,...i}=AI(n),a=i;return a.id=(0,d.useInstanceId)(o,a.baseId,a.id),Object.entries(t).forEach((([e,t])=>{a.hasOwnProperty(e)&&(Object.assign(a,{[t]:a[e]}),delete a[e])})),delete a.baseId,(0,r.createElement)(e,{...a,store:o})};return o.displayName=n,o}const zI=(0,Uo.forwardRef)((({role:e,...t},n)=>{const o="row"===e?ll:DI;return(0,r.createElement)(o,{ref:n,role:e,...t})}));zI.displayName="CompositeGroup";const LI=OI(al,{baseId:"id"}),FI=OI(zI),BI=OI(qt,{focusable:"accessibleWhenDisabled"});function jI(e={}){const{baseId:t,currentId:n,orientation:r,rtl:o=!1,loop:i=!1,wrap:a=!1,shift:s=!1,unstable_virtual:l}=e;return{baseId:(0,d.useInstanceId)(LI,"composite",t),store:rl({defaultActiveId:n,rtl:o,orientation:r,focusLoop:i,focusShift:s,focusWrap:a,virtualFocus:l})}}const VI=new Set(["alert","status","log","marquee","timer"]),HI=[];function $I(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&&VI.has(t))}const WI=(0,Uo.createContext)([]),UI=new Map;const GI=(0,Uo.forwardRef)((function(e,t){const{bodyOpenClassName:n="modal-open",role:o="dialog",title:i=null,focusOnMount:a=!0,shouldCloseOnEsc:s=!0,shouldCloseOnClickOutside:l=!0,isDismissible:f=!0,aria:m={labelledby:void 0,describedby:void 0},onRequestClose:p,icon:h,closeButtonLabel:g,children:v,style:b,overlayClassName:y,className:x,contentLabel:w,onKeyDown:E,isFullScreen:_=!1,size:S,headerActions:C=null,__experimentalHideHeader:k=!1}=e,P=(0,Uo.useRef)(),T=(0,d.useInstanceId)(GI),I=i?`components-modal-header-${T}`:m.labelledby,R=(0,d.useFocusOnMount)("firstContentElement"===a?"firstElement":a),M=(0,d.useConstrainedTabbing)(),N=(0,d.useFocusReturn)(),D=(0,Uo.useRef)(null),A=(0,Uo.useRef)(null),[O,z]=(0,Uo.useState)(!1),[L,F]=(0,Uo.useState)(!1);let B;_||"fill"===S?B="is-full-screen":S&&(B=`has-size-${S}`);const j=(0,Uo.useCallback)((()=>{if(!D.current)return;const e=(0,HT.getScrollContainer)(D.current);D.current===e?F(!0):F(!1)}),[D]);(0,Uo.useEffect)((()=>(function(e){const t=Array.from(document.body.children),n=[];HI.push(n);for(const r of t)r!==e&&$I(r)&&(r.setAttribute("aria-hidden","true"),n.push(r))}(P.current),()=>function(){const e=HI.pop();if(e)for(const t of e)t.removeAttribute("aria-hidden")}())),[]);const V=(0,Uo.useRef)();(0,Uo.useEffect)((()=>{V.current=p}),[p]);const H=(0,Uo.useContext)(WI),$=(0,Uo.useRef)([]);(0,Uo.useEffect)((()=>{H.push(V);const[e,t]=H;t&&e?.current?.();const n=$.current;return()=>{n[0]?.current?.(),H.shift()}}),[H]),(0,Uo.useEffect)((()=>{var e;const t=n,r=1+(null!==(e=UI.get(t))&&void 0!==e?e:0);return UI.set(t,r),document.body.classList.add(n),()=>{const e=UI.get(t)-1;0===e?(document.body.classList.remove(t),UI.delete(t)):UI.set(t,e)}}),[n]),(0,Uo.useLayoutEffect)((()=>{if(!window.ResizeObserver||!A.current)return;const e=new ResizeObserver(j);return e.observe(A.current),j(),()=>{e.disconnect()}}),[j,A]);const W=(0,Uo.useCallback)((e=>{var t;const n=null!==(t=e?.currentTarget?.scrollTop)&&void 0!==t?t:-1;!O&&n>0?z(!0):O&&n<=0&&z(!1)}),[O]);let U=null;const G={onPointerDown:e=>{e.target===e.currentTarget&&(U=e.target,e.preventDefault())},onPointerUp:({target:e,button:t})=>{const n=e===U;U=null,0===t&&n&&p()}},q=(0,r.createElement)("div",{ref:(0,d.useMergeRefs)([P,t]),className:c()("components-modal__screen-overlay",y),onKeyDown:function(e){e.nativeEvent.isComposing||229===e.keyCode||!s||"Escape"!==e.code&&"Escape"!==e.key||e.defaultPrevented||(e.preventDefault(),p&&p(e))},...l?G:{}},(0,r.createElement)(ew,{document},(0,r.createElement)("div",{className:c()("components-modal__frame",B,x),style:b,ref:(0,d.useMergeRefs)([M,N,"firstContentElement"!==a?R:null]),role:o,"aria-label":w,"aria-labelledby":w?void 0:I,"aria-describedby":m.describedby,tabIndex:-1,onKeyDown:E},(0,r.createElement)("div",{className:c()("components-modal__content",{"hide-header":k,"is-scrollable":L,"has-scrolled-content":O}),role:"document",onScroll:W,ref:D,"aria-label":L?(0,u.__)("Scrollable section"):void 0,tabIndex:L?0:void 0},!k&&(0,r.createElement)("div",{className:"components-modal__header"},(0,r.createElement)("div",{className:"components-modal__header-heading-container"},h&&(0,r.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},h),i&&(0,r.createElement)("h1",{id:I,className:"components-modal__header-heading"},i)),C,f&&(0,r.createElement)(my,{onClick:p,icon:ex,label:g||(0,u.__)("Close")})),(0,r.createElement)("div",{ref:(0,d.useMergeRefs)([A,"firstContentElement"===a?R:null])},v)))));return(0,Uo.createPortal)((0,r.createElement)(WI.Provider,{value:$.current},q),document.body)})),qI=GI;const YI={name:"7g5ii0",styles:"&&{z-index:1000001;}"},KI=os(((e,t)=>{const{isOpen:n,onConfirm:o,onCancel:i,children:a,confirmButtonText:s,cancelButtonText:l,...c}=rs(e,"ConfirmDialog"),d=ns()(YI),f=(0,Uo.useRef)(),m=(0,Uo.useRef)(),[p,h]=(0,Uo.useState)(),[g,v]=(0,Uo.useState)();(0,Uo.useEffect)((()=>{const e=void 0!==n;h(!e||n),v(!e)}),[n]);const b=(0,Uo.useCallback)((e=>t=>{e?.(t),g&&h(!1)}),[g,h]),y=(0,Uo.useCallback)((e=>{e.target===f.current||e.target===m.current||"Enter"!==e.key||b(o)(e)}),[b,o]),x=null!=l?l:(0,u.__)("Cancel"),w=null!=s?s:(0,u.__)("OK");return(0,r.createElement)(r.Fragment,null,p&&(0,r.createElement)(qI,{onRequestClose:b(i),onKeyDown:y,closeButtonLabel:x,isDismissible:!0,ref:t,overlayClassName:d,__experimentalHideHeader:!0,...c},(0,r.createElement)(jS,{spacing:8},(0,r.createElement)(mv,null,a),(0,r.createElement)($h,{direction:"row",justify:"flex-end"},(0,r.createElement)(my,{__next40pxDefaultSize:!0,ref:f,variant:"tertiary",onClick:b(i)},x),(0,r.createElement)(my,{__next40pxDefaultSize:!0,ref:m,variant:"primary",onClick:b(o)},w)))))}),"ConfirmDialog");var XI=o(5826),ZI=o.n(XI);o(1915);function JI(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function QI(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function eR(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return QI(n.overflowY,t)||QI(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function tR(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}let nR=0;function rR(){}function oR(e,t){if(!e)return;const n=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!JI(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,f=[],m=e;JI(m)&&l(m);){if((m=null==(u=(c=m).parentElement)?c.getRootNode().host||null:u)===d){f.push(m);break}null!=m&&m===document.body&&eR(m)&&!eR(document.documentElement)||null!=m&&eR(m,s)&&f.push(m)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,x=b.width,w=b.top,E=b.right,_=b.bottom,S=b.left,C="start"===o||"nearest"===o?w:"end"===o?_:w+y/2,k="center"===i?S+x/2:"end"===i?E:S,P=[],T=0;T<f.length;T++){var I=f[T],R=I.getBoundingClientRect(),M=R.height,N=R.width,D=R.top,A=R.right,O=R.bottom,z=R.left;if("if-needed"===r&&w>=0&&S>=0&&_<=h&&E<=p&&w>=D&&_<=O&&S>=z&&E<=A)return P;var L=getComputedStyle(I),F=parseInt(L.borderLeftWidth,10),B=parseInt(L.borderTopWidth,10),j=parseInt(L.borderRightWidth,10),V=parseInt(L.borderBottomWidth,10),H=0,$=0,W="offsetWidth"in I?I.offsetWidth-I.clientWidth-F-j:0,U="offsetHeight"in I?I.offsetHeight-I.clientHeight-B-V:0,G="offsetWidth"in I?0===I.offsetWidth?0:N/I.offsetWidth:0,q="offsetHeight"in I?0===I.offsetHeight?0:M/I.offsetHeight:0;if(d===I)H="start"===o?C:"end"===o?C-h:"nearest"===o?tR(v,v+h,h,B,V,v+C,v+C+y,y):C-h/2,$="start"===i?k:"center"===i?k-p/2:"end"===i?k-p:tR(g,g+p,p,F,j,g+k,g+k+x,x),H=Math.max(0,H+v),$=Math.max(0,$+g);else{H="start"===o?C-D-B:"end"===o?C-O+V+U:"nearest"===o?tR(D,O,M,B,V+U,C,C+y,y):C-(D+M/2)+U/2,$="start"===i?k-z-F:"center"===i?k-(z+N/2)+W/2:"end"===i?k-A+j+W:tR(z,A,N,F,j+W,k,k+x,x);var Y=I.scrollLeft,K=I.scrollTop;C+=K-(H=Math.max(0,Math.min(K+H/q,I.scrollHeight-M/q+U))),k+=Y-($=Math.max(0,Math.min(Y+$/G,I.scrollWidth-N/G+W)))}P.push({el:I,top:H,left:$})}return P}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((e=>{let{el:t,top:n,left:r}=e;t.scrollTop=n,t.scrollLeft=r}))}function iR(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function aR(e,t){let n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((()=>{n=null,e(...i)}),t)}return o.cancel=r,o}function sR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((t=>(t&&t(e,...r),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault)))}}function lR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}}function cR(){return String(nR++)}function uR(e){let{isOpen:t,resultCount:n,previousResultCount:r}=e;return t?n?n!==r?`${n} result${1===n?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function dR(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=fR(t,r)?t[r]:e[r],n)),{})}function fR(e,t){return void 0!==e[t]}function mR(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function pR(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;const i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);let a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);const s=hR(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function hR(e,t,n,r,o){const i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e<n;e++)if(!r(e).hasAttribute("disabled"))return e}else for(let e=t-1;e>=0;e--)if(!r(e).hasAttribute("disabled"))return e;return o?e>0?hR(1,0,n,r,!1):hR(-1,n-1,n,r,!1):-1}function gR(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(iR(t,e,n)||r&&iR(t,n.document.activeElement,n))))}const vR=aR((e=>{yR(e).textContent=""}),500);function bR(e,t){const n=yR(t);e&&(n.textContent=e,vR(t))}function yR(e){void 0===e&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}const xR={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function wR(e,t,n){const{props:r,type:o}=e,i={};Object.keys(t).forEach((r=>{!function(e,t,n,r){const{props:o,type:i}=t,a=`on${PR(e)}Change`;o[a]&&void 0!==r[e]&&r[e]!==n[e]&&o[a]({type:i,...r})}(r,e,t,n),n[r]!==t[r]&&(i[r]=n[r])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange({type:o,...i})}const ER=aR(((e,t)=>{bR(e(),t)}),200),_R="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function SR(e){let{id:t=`downshift-${cR()}`,labelId:n,menuId:o,getItemId:i,toggleButtonId:a,inputId:s}=e;const l=(0,r.useRef)({labelId:n||`${t}-label`,menuId:o||`${t}-menu`,getItemId:i||(e=>`${t}-item-${e}`),toggleButtonId:a||`${t}-toggle-button`,inputId:s||`${t}-input`});return l.current}function CR(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function kR(e){return/^\S{1}$/.test(e)}function PR(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function TR(e){const t=(0,r.useRef)(e);return t.current=e,t}function IR(e,t,n){const o=(0,r.useRef)(),i=(0,r.useRef)(),a=(0,r.useCallback)(((t,n)=>{i.current=n,t=dR(t,n.props);const r=e(t,n);return n.props.stateReducer(t,{...n,changes:r})}),[e]),[s,l]=(0,r.useReducer)(a,t),c=TR(n),u=(0,r.useCallback)((e=>l({props:c.current,...e})),[c]),d=i.current;return(0,r.useEffect)((()=>{d&&o.current&&o.current!==s&&wR(d,dR(o.current,d.props),s),o.current=s}),[s,n,d]),[s,u]}function RR(e,t,n){const[r,o]=IR(e,t,n);return[dR(r,n),o]}const MR={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""},scrollIntoView:oR,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function NR(e,t,n){void 0===n&&(n=xR);const r=e[`default${PR(t)}`];return void 0!==r?r:n[t]}function DR(e,t,n){void 0===n&&(n=xR);const r=e[t];if(void 0!==r)return r;const o=e[`initial${PR(t)}`];return void 0!==o?o:NR(e,t,n)}function AR(e){const t=DR(e,"selectedItem"),n=DR(e,"isOpen"),r=DR(e,"highlightedIndex"),o=DR(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function OR(e,t,n,r){const{items:o,initialHighlightedIndex:i,defaultHighlightedIndex:a}=e,{selectedItem:s,highlightedIndex:l}=t;return 0===o.length?-1:void 0!==i&&l===i?i:void 0!==a?a:s?0===n?o.indexOf(s):pR(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function zR(e,t,n,o){const i=(0,r.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,r.useEffect)((()=>{const r=()=>{i.current.isMouseDown=!0},a=r=>{i.current.isMouseDown=!1,e&&!gR(r.target,t.map((e=>e.current)),n)&&o()},s=()=>{i.current.isTouchMove=!1},l=()=>{i.current.isTouchMove=!0},c=r=>{!e||i.current.isTouchMove||gR(r.target,t.map((e=>e.current)),n,!1)||o()};return n.addEventListener("mousedown",r),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",r),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}}),[e,n]),i}let LR=()=>rR;function FR(e,t,n){let{isInitialMount:o,highlightedIndex:i,items:a,environment:s,...l}=n;(0,r.useEffect)((()=>{o||ER((()=>e({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length,...l})),s.document)}),t)}function BR(e){let{highlightedIndex:t,isOpen:n,itemRefs:o,getItemNodeFromIndex:i,menuElement:a,scrollIntoView:s}=e;const l=(0,r.useRef)(!0);return _R((()=>{t<0||!n||!Object.keys(o.current).length||(!1===l.current?l.current=!0:s(i(t),a))}),[t]),l}let jR=rR;function VR(e,t,n){const{type:r,props:o}=t;let i;switch(r){case n.ItemMouseMove:i={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:i={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:i={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:OR(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:OR(o,e,0)};break;case n.FunctionCloseMenu:i={isOpen:!1};break;case n.FunctionSetHighlightedIndex:i={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:i={inputValue:t.inputValue};break;case n.FunctionReset:i={highlightedIndex:NR(o,"highlightedIndex"),isOpen:NR(o,"isOpen"),selectedItem:NR(o,"selectedItem"),inputValue:NR(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...i}}function HR(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex,a=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+1)%r.length,c=r[l];if(void 0!==c&&o(c).toLowerCase().startsWith(a)){var u=i(l);if(!(null==u?void 0:u.hasAttribute("disabled")))return l}}return n}ZI().array.isRequired,ZI().func,ZI().func,ZI().func,ZI().bool,ZI().number,ZI().number,ZI().number,ZI().bool,ZI().bool,ZI().bool,ZI().any,ZI().any,ZI().any,ZI().string,ZI().string,ZI().string,ZI().func,ZI().string,ZI().func,ZI().func,ZI().func,ZI().func,ZI().func,ZI().shape({addEventListener:ZI().func,removeEventListener:ZI().func,document:ZI().shape({getElementById:ZI().func,activeElement:ZI().any,body:ZI().any})});var $R=vi(vi({},MR),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}}),WR=rR;const UR=0,GR=1,qR=2,YR=3,KR=4,XR=5,ZR=6,JR=7,QR=8,eM=9,tM=10,nM=11,rM=12,oM=13,iM=14,aM=15,sM=16,lM=17,cM=18,uM=19,dM=20,fM=21,mM=22;var pM=Object.freeze({__proto__:null,MenuKeyDownArrowDown:UR,MenuKeyDownArrowUp:GR,MenuKeyDownEscape:qR,MenuKeyDownHome:YR,MenuKeyDownEnd:KR,MenuKeyDownEnter:XR,MenuKeyDownSpaceButton:ZR,MenuKeyDownCharacter:JR,MenuBlur:QR,MenuMouseLeave:eM,ItemMouseMove:tM,ItemClick:nM,ToggleButtonClick:rM,ToggleButtonKeyDownArrowDown:oM,ToggleButtonKeyDownArrowUp:iM,ToggleButtonKeyDownCharacter:aM,FunctionToggleMenu:sM,FunctionOpenMenu:lM,FunctionCloseMenu:cM,FunctionSetHighlightedIndex:uM,FunctionSelectItem:dM,FunctionSetInputValue:fM,FunctionReset:mM});function hM(e,t){const{type:n,props:r,shiftKey:o}=t;let i;switch(n){case nM:i={isOpen:NR(r,"isOpen"),highlightedIndex:NR(r,"highlightedIndex"),selectedItem:r.items[t.index]};break;case aM:{const n=t.key,o=`${e.inputValue}${n}`,a=HR({keysSoFar:o,highlightedIndex:e.selectedItem?r.items.indexOf(e.selectedItem):-1,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{selectedItem:r.items[a]}}}break;case oM:i={highlightedIndex:OR(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case iM:i={highlightedIndex:OR(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case XR:case ZR:i={isOpen:NR(r,"isOpen"),highlightedIndex:NR(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case YR:i={highlightedIndex:hR(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case KR:i={highlightedIndex:hR(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case qR:case QR:i={isOpen:!1,highlightedIndex:-1};break;case JR:{const n=t.key,o=`${e.inputValue}${n}`,a=HR({keysSoFar:o,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{highlightedIndex:a}}}break;case UR:i={highlightedIndex:pR(o?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case GR:i={highlightedIndex:pR(o?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case dM:i={selectedItem:t.selectedItem};break;default:return VR(e,t,pM)}return{...e,...i}}function gM(e){void 0===e&&(e={}),WR(e,gM);const t={...$R,...e},{items:n,scrollIntoView:o,environment:i,initialIsOpen:a,defaultIsOpen:s,itemToString:l,getA11ySelectionMessage:c,getA11yStatusMessage:u}=t,d=AR(t),[f,m]=RR(hM,d,t),{isOpen:p,highlightedIndex:h,selectedItem:g,inputValue:v}=f,b=(0,r.useRef)(null),y=(0,r.useRef)(null),x=(0,r.useRef)({}),w=(0,r.useRef)(!0),E=(0,r.useRef)(null),_=SR(t),S=(0,r.useRef)(),C=(0,r.useRef)(!0),k=TR({state:f,props:t}),P=(0,r.useCallback)((e=>x.current[_.getItemId(e)]),[_]);FR(u,[p,h,v,n],{isInitialMount:C.current,previousResultCount:S.current,items:n,environment:i,itemToString:l,...f}),FR(c,[g],{isInitialMount:C.current,previousResultCount:S.current,items:n,environment:i,itemToString:l,...f});const T=BR({menuElement:y.current,highlightedIndex:h,isOpen:p,itemRefs:x,scrollIntoView:o,getItemNodeFromIndex:P});(0,r.useEffect)((()=>(E.current=aR((e=>{e({type:fM,inputValue:""})}),500),()=>{E.current.cancel()})),[]),(0,r.useEffect)((()=>{v&&E.current(m)}),[m,v]),jR({isInitialMount:C.current,props:t,state:f}),(0,r.useEffect)((()=>{C.current?(a||s||p)&&y.current&&y.current.focus():p?y.current&&y.current.focus():i.document.activeElement===y.current&&b.current&&(w.current=!1,b.current.focus())}),[p]),(0,r.useEffect)((()=>{C.current||(S.current=n.length)}));const I=zR(p,[y,b],i,(()=>{m({type:QR})})),R=LR("getMenuProps","getToggleButtonProps");(0,r.useEffect)((()=>{C.current=!1}),[]),(0,r.useEffect)((()=>{p||(x.current={})}),[p]);const M=(0,r.useMemo)((()=>({ArrowDown(e){e.preventDefault(),m({type:oM,getItemNodeFromIndex:P,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),m({type:iM,getItemNodeFromIndex:P,shiftKey:e.shiftKey})}})),[m,P]),N=(0,r.useMemo)((()=>({ArrowDown(e){e.preventDefault(),m({type:UR,getItemNodeFromIndex:P,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),m({type:GR,getItemNodeFromIndex:P,shiftKey:e.shiftKey})},Home(e){e.preventDefault(),m({type:YR,getItemNodeFromIndex:P})},End(e){e.preventDefault(),m({type:KR,getItemNodeFromIndex:P})},Escape(){m({type:qR})},Enter(e){e.preventDefault(),m({type:XR})}," "(e){e.preventDefault(),m({type:ZR})}})),[m,P]),D=(0,r.useCallback)((()=>{m({type:sM})}),[m]),A=(0,r.useCallback)((()=>{m({type:cM})}),[m]),O=(0,r.useCallback)((()=>{m({type:lM})}),[m]),z=(0,r.useCallback)((e=>{m({type:uM,highlightedIndex:e})}),[m]),L=(0,r.useCallback)((e=>{m({type:dM,selectedItem:e})}),[m]),F=(0,r.useCallback)((()=>{m({type:mM})}),[m]),B=(0,r.useCallback)((e=>{m({type:fM,inputValue:e})}),[m]),j=(0,r.useCallback)((e=>({id:_.labelId,htmlFor:_.toggleButtonId,...e})),[_]),V=(0,r.useCallback)((function(e,t){let{onMouseLeave:n,refKey:r="ref",onKeyDown:o,onBlur:i,ref:a,...s}=void 0===e?{}:e,{suppressRefError:l=!1}=void 0===t?{}:t;const c=k.current.state;return R("getMenuProps",l,r,y),{[r]:lR(a,(e=>{y.current=e})),id:_.menuId,role:"listbox","aria-labelledby":_.labelId,tabIndex:-1,...c.isOpen&&c.highlightedIndex>-1&&{"aria-activedescendant":_.getItemId(c.highlightedIndex)},onMouseLeave:sR(n,(()=>{m({type:eM})})),onKeyDown:sR(o,(e=>{const t=mR(e);t&&N[t]?N[t](e):kR(t)&&m({type:JR,key:t,getItemNodeFromIndex:P})})),onBlur:sR(i,(()=>{if(!1===w.current)return void(w.current=!0);!I.current.isMouseDown&&m({type:QR})})),...s}}),[m,k,N,I,R,_,P]),H=(0,r.useCallback)((function(e,t){let{onClick:n,onKeyDown:r,refKey:o="ref",ref:i,...a}=void 0===e?{}:e,{suppressRefError:s=!1}=void 0===t?{}:t;const l=()=>{m({type:rM})},c=e=>{const t=mR(e);t&&M[t]?M[t](e):kR(t)&&m({type:aM,key:t,getItemNodeFromIndex:P})},u={[o]:lR(i,(e=>{b.current=e})),id:_.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":k.current.state.isOpen,"aria-labelledby":`${_.labelId} ${_.toggleButtonId}`,...a};return a.disabled||(u.onClick=sR(n,l),u.onKeyDown=sR(r,c)),R("getToggleButtonProps",s,o,b),u}),[m,k,M,R,_,P]),$=(0,r.useCallback)((function(e){let{item:t,index:n,onMouseMove:r,onClick:o,refKey:i="ref",ref:a,disabled:s,...l}=void 0===e?{}:e;const{state:c,props:u}=k.current,d=()=>{m({type:nM,index:n})},f=CR(n,t,u.items);if(f<0)throw new Error("Pass either item or item index in getItemProps!");const p={disabled:s,role:"option","aria-selected":`${f===c.highlightedIndex}`,id:_.getItemId(f),[i]:lR(a,(e=>{e&&(x.current[_.getItemId(f)]=e)})),...l};return s||(p.onClick=sR(o,d)),p.onMouseMove=sR(r,(()=>{n!==c.highlightedIndex&&(T.current=!1,m({type:tM,index:n,disabled:s}))})),p}),[m,k,T,_]);return{getToggleButtonProps:H,getLabelProps:j,getMenuProps:V,getItemProps:$,toggleMenu:D,openMenu:O,closeMenu:A,setHighlightedIndex:z,selectItem:L,reset:F,setInputValue:B,highlightedIndex:h,isOpen:p,selectedItem:g,inputValue:v}}gM.stateChangeTypes=pM;ZI().array.isRequired,ZI().func,ZI().func,ZI().func,ZI().bool,ZI().number,ZI().number,ZI().number,ZI().bool,ZI().bool,ZI().bool,ZI().any,ZI().any,ZI().any,ZI().string,ZI().string,ZI().string,ZI().string,ZI().string,ZI().string,ZI().func,ZI().string,ZI().string,ZI().func,ZI().func,ZI().func,ZI().func,ZI().func,ZI().func,ZI().shape({addEventListener:ZI().func,removeEventListener:ZI().func,document:ZI().shape({getElementById:ZI().func,activeElement:ZI().any,body:ZI().any})});ZI().array,ZI().array,ZI().array,ZI().func,ZI().func,ZI().func,ZI().number,ZI().number,ZI().number,ZI().func,ZI().func,ZI().string,ZI().string,ZI().shape({addEventListener:ZI().func,removeEventListener:ZI().func,document:ZI().shape({getElementById:ZI().func,activeElement:ZI().any,body:ZI().any})});const vM=e=>e.__nextUnconstrainedWidth?"":Ps(yv,"{min-width:130px;}",""),bM=bs(Ov,{target:"eswuck60"})(vM,";"),yM=e=>e?.name,xM=({selectedItem:e},{type:t,changes:n,props:{items:r}})=>{switch(t){case gM.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:r[e?Math.min(r.indexOf(e)+1,r.length-1):0]};case gM.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:r[e?Math.max(r.indexOf(e)-1,0):r.length-1]};default:return n}};function wM(e){const{__next40pxDefaultSize:t=!1,__nextUnconstrainedWidth:n=!1,className:o,hideLabelFromVision:i,label:a,describedBy:s,options:l,onChange:d,size:f="default",value:m,onMouseOver:p,onMouseOut:h,onFocus:g,onBlur:v,__experimentalShowSelectedHint:b=!1}=Nv(e),{getLabelProps:y,getToggleButtonProps:x,getMenuProps:w,getItemProps:E,isOpen:_,highlightedIndex:S,selectedItem:C}=gM({initialSelectedItem:l[0],items:l,itemToString:yM,onSelectedItemChange:d,...null!=m?{selectedItem:m}:void 0,stateReducer:xM}),[k,P]=(0,Uo.useState)(!1);n||qo()("Constrained width styles for wp.components.CustomSelectControl",{since:"6.1",version:"6.4",hint:"Set the `__nextUnconstrainedWidth` prop to true to start opting into the new styles, which will become the default in a future version"});const T=w({className:"components-custom-select-control__menu","aria-hidden":!_}),I=(0,Uo.useCallback)((e=>{e.stopPropagation(),T?.onKeyDown?.(e)}),[T]);return T["aria-activedescendant"]?.startsWith("downshift-null")&&delete T["aria-activedescendant"],(0,r.createElement)("div",{className:c()("components-custom-select-control",o)},i?(0,r.createElement)(ws,{as:"label",...y()},a):(0,r.createElement)(Qb,{...y({className:"components-custom-select-control__label"})},a),(0,r.createElement)(bM,{__next40pxDefaultSize:t,__nextUnconstrainedWidth:n,isFocused:_||k,__unstableInputWidth:n?void 0:"auto",labelPosition:n?void 0:"top",size:f,suffix:(0,r.createElement)(UE,null)},(0,r.createElement)(jE,{onMouseOver:p,onMouseOut:h,as:"button",onFocus:function(e){P(!0),g?.(e)},onBlur:function(e){P(!1),v?.(e)},selectSize:f,__next40pxDefaultSize:t,...x({"aria-label":a,"aria-labelledby":void 0,className:"components-custom-select-control__button",describedBy:s||(C?(0,u.sprintf)((0,u.__)("Currently selected: %s"),C.name):(0,u.__)("No selection"))})},yM(C),b&&C.__experimentalHint&&(0,r.createElement)("span",{className:"components-custom-select-control__hint"},C.__experimentalHint))),(0,r.createElement)("ul",{...T,onKeyDown:I},_&&l.map(((e,n)=>(0,r.createElement)("li",{...E({item:e,index:n,key:e.key,className:c()(e.className,"components-custom-select-control__item",{"is-highlighted":n===S,"has-hint":!!e.__experimentalHint,"is-next-40px-default-size":t}),style:e.style})},e.name,e.__experimentalHint&&(0,r.createElement)("span",{className:"components-custom-select-control__item-hint"},e.__experimentalHint),e===C&&(0,r.createElement)($E,{icon:DS,className:"components-custom-select-control__item-icon"}))))))}function EM(e){return(0,r.createElement)(wM,{...e,__experimentalShowSelectedHint:!1})}function _M(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function SM(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function CM(e){SM(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function kM(e,t){SM(2,arguments);var n=CM(e),r=_M(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}var PM,TM,IM={};function RM(){return IM}function MM(e,t){var n,r,o,i,a,s,l,c;SM(1,arguments);var u=RM(),d=_M(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=CM(e),m=f.getDay(),p=(m<d?7:0)+m-d;return f.setDate(f.getDate()-p),f.setHours(0,0,0,0),f}function NM(e,t){return SM(2,arguments),function(e,t){SM(2,arguments);var n=CM(e),r=_M(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}(e,7*_M(t))}function DM(e,t){return SM(2,arguments),kM(e,12*_M(t))}function AM(e){SM(1,arguments);var t=CM(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function OM(e,t){var n;SM(1,arguments);var r=e||{},o=CM(r.start),i=CM(r.end).getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var a=[],s=o;s.setHours(0,0,0,0);var l=Number(null!==(n=null==t?void 0:t.step)&&void 0!==n?n:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=i;)a.push(CM(s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return a}function zM(e){SM(1,arguments);var t=CM(e);return t.setDate(1),t.setHours(0,0,0,0),t}function LM(e,t){var n,r,o,i,a,s,l,c;SM(1,arguments);var u=RM(),d=_M(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=CM(e),m=f.getDay(),p=6+(m<d?-7:0)-(m-d);return f.setDate(f.getDate()+p),f.setHours(23,59,59,999),f}function FM(e,t){SM(2,arguments);var n=CM(e),r=CM(t);return n.getTime()===r.getTime()}function BM(e,t){SM(2,arguments);var n=CM(e),r=_M(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=function(e){SM(1,arguments);var t=CM(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(a);return n.setMonth(r,Math.min(i,s)),n}function jM(){return function(e){SM(1,arguments);var t=CM(e);return t.setHours(0,0,0,0),t}(Date.now())}!function(e){e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER"}(PM||(PM={})),function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"}(TM||(TM={}));var VM=function(e,t,n){return(FM(e,t)||function(e,t){SM(2,arguments);var n=CM(e),r=CM(t);return n.getTime()>r.getTime()}(e,t))&&(FM(e,n)||function(e,t){SM(2,arguments);var n=CM(e),r=CM(t);return n.getTime()<r.getTime()}(e,n))},HM=function(e){return function(e,t){if(SM(2,arguments),"object"!=typeof t||null===t)throw new RangeError("values parameter must be an object");var n=CM(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=BM(n,t.month)),null!=t.date&&n.setDate(_M(t.date)),null!=t.hours&&n.setHours(_M(t.hours)),null!=t.minutes&&n.setMinutes(_M(t.minutes)),null!=t.seconds&&n.setSeconds(_M(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(_M(t.milliseconds)),n)}(e,{hours:0,minutes:0,seconds:0,milliseconds:0})},$M=function(e){var t=void 0===e?{}:e,n=t.weekStartsOn,o=void 0===n?TM.SUNDAY:n,i=t.viewing,a=void 0===i?new Date:i,s=t.selected,l=void 0===s?[]:s,c=t.numberOfMonths,u=void 0===c?1:c,d=(0,r.useState)(a),f=d[0],m=d[1],p=(0,r.useCallback)((function(){return m(jM())}),[m]),h=(0,r.useCallback)((function(e){return m((function(t){return BM(t,e)}))}),[]),g=(0,r.useCallback)((function(){return m((function(e){return function(e,t){return SM(2,arguments),kM(e,-_M(t))}(e,1)}))}),[]),v=(0,r.useCallback)((function(){return m((function(e){return kM(e,1)}))}),[]),b=(0,r.useCallback)((function(e){return m((function(t){return function(e,t){SM(2,arguments);var n=CM(e),r=_M(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}(t,e)}))}),[]),y=(0,r.useCallback)((function(){return m((function(e){return function(e,t){return SM(2,arguments),DM(e,-_M(t))}(e,1)}))}),[]),x=(0,r.useCallback)((function(){return m((function(e){return DM(e,1)}))}),[]),w=(0,r.useState)(l.map(HM)),E=w[0],_=w[1],S=(0,r.useCallback)((function(e){return E.findIndex((function(t){return FM(t,e)}))>-1}),[E]),C=(0,r.useCallback)((function(e,t){_(t?Array.isArray(e)?e:[e]:function(t){return t.concat(Array.isArray(e)?e:[e])})}),[]),k=(0,r.useCallback)((function(e){return _((function(t){return Array.isArray(e)?t.filter((function(t){return!e.map((function(e){return e.getTime()})).includes(t.getTime())})):t.filter((function(t){return!FM(t,e)}))}))}),[]),P=(0,r.useCallback)((function(e,t){return S(e)?k(e):C(e,t)}),[k,S,C]),T=(0,r.useCallback)((function(e,t,n){_(n?OM({start:e,end:t}):function(n){return n.concat(OM({start:e,end:t}))})}),[]),I=(0,r.useCallback)((function(e,t){_((function(n){return n.filter((function(n){return!OM({start:e,end:t}).map((function(e){return e.getTime()})).includes(n.getTime())}))}))}),[]),R=(0,r.useMemo)((function(){return function(e){SM(1,arguments);var t=e||{},n=CM(t.start),r=CM(t.end).getTime(),o=[];if(!(n.getTime()<=r))throw new RangeError("Invalid interval");var i=n;for(i.setHours(0,0,0,0),i.setDate(1);i.getTime()<=r;)o.push(CM(i)),i.setMonth(i.getMonth()+1);return o}({start:zM(f),end:AM(kM(f,u-1))}).map((function(e){return function(e,t){SM(1,arguments);var n=e||{},r=CM(n.start),o=CM(n.end),i=o.getTime();if(!(r.getTime()<=i))throw new RangeError("Invalid interval");var a=MM(r,t),s=MM(o,t);a.setHours(15),s.setHours(15),i=s.getTime();for(var l=[],c=a;c.getTime()<=i;)c.setHours(0),l.push(CM(c)),(c=NM(c,1)).setHours(15);return l}({start:zM(e),end:AM(e)},{weekStartsOn:o}).map((function(e){return OM({start:MM(e,{weekStartsOn:o}),end:LM(e,{weekStartsOn:o})})}))}))}),[f,o,u]);return{clearTime:HM,inRange:VM,viewing:f,setViewing:m,viewToday:p,viewMonth:h,viewPreviousMonth:g,viewNextMonth:v,viewYear:b,viewPreviousYear:y,viewNextYear:x,selected:E,setSelected:_,clearSelected:function(){return _([])},isSelected:S,select:C,deselect:k,toggle:P,selectRange:T,deselectRange:I,calendar:R}};function WM(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function UM(e){return UM="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},UM(e)}function GM(e){WM(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===UM(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function qM(e){WM(1,arguments);var t=GM(e);return t.setHours(0,0,0,0),t}function YM(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function KM(e,t){WM(2,arguments);var n=GM(e),r=YM(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function XM(e,t){return WM(2,arguments),KM(e,-YM(t))}function ZM(e){return ZM="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},ZM(e)}function JM(e){if(WM(1,arguments),!function(e){return WM(1,arguments),e instanceof Date||"object"===ZM(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=GM(e);return!isNaN(Number(t))}function QM(e,t){return WM(2,arguments),function(e,t){WM(2,arguments);var n=GM(e).getTime(),r=YM(t);return new Date(n+r)}(e,-YM(t))}function eN(e){WM(1,arguments);var t=GM(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function tN(e){WM(1,arguments);var t=GM(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=eN(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=eN(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function nN(e){WM(1,arguments);var t=GM(e),n=eN(t).getTime()-function(e){WM(1,arguments);var t=tN(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),eN(n)}(t).getTime();return Math.round(n/6048e5)+1}var rN={};function oN(){return rN}function iN(e,t){var n,r,o,i,a,s,l,c;WM(1,arguments);var u=oN(),d=YM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=GM(e),m=f.getUTCDay(),p=(m<d?7:0)+m-d;return f.setUTCDate(f.getUTCDate()-p),f.setUTCHours(0,0,0,0),f}function aN(e,t){var n,r,o,i,a,s,l,c;WM(1,arguments);var u=GM(e),d=u.getUTCFullYear(),f=oN(),m=YM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==r?r:null===(l=f.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,m),p.setUTCHours(0,0,0,0);var h=iN(p,t),g=new Date(0);g.setUTCFullYear(d,0,m),g.setUTCHours(0,0,0,0);var v=iN(g,t);return u.getTime()>=h.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function sN(e,t){WM(1,arguments);var n=GM(e),r=iN(n,t).getTime()-function(e,t){var n,r,o,i,a,s,l,c;WM(1,arguments);var u=oN(),d=YM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),f=aN(e,t),m=new Date(0);return m.setUTCFullYear(f,0,d),m.setUTCHours(0,0,0,0),iN(m,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function lN(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var cN={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return lN("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):lN(n+1,2)},d:function(e,t){return lN(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return lN(e.getUTCHours()%12||12,t.length)},H:function(e,t){return lN(e.getUTCHours(),t.length)},m:function(e,t){return lN(e.getUTCMinutes(),t.length)},s:function(e,t){return lN(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return lN(Math.floor(r*Math.pow(10,n-3)),t.length)}};const uN=cN;var dN="midnight",fN="noon",mN="morning",pN="afternoon",hN="evening",gN="night",vN={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return uN.y(e,t)},Y:function(e,t,n,r){var o=aN(e,r),i=o>0?o:1-o;return"YY"===t?lN(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):lN(i,t.length)},R:function(e,t){return lN(tN(e),t.length)},u:function(e,t){return lN(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return lN(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return lN(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return uN.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return lN(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=sN(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):lN(o,t.length)},I:function(e,t,n){var r=nN(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):lN(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):uN.d(e,t)},D:function(e,t,n){var r=function(e){WM(1,arguments);var t=GM(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):lN(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return lN(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return lN(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return lN(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?fN:0===o?dN:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?hN:o>=12?pN:o>=4?mN:gN,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return uN.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):uN.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):lN(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):lN(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):uN.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):uN.s(e,t)},S:function(e,t){return uN.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return yN(o);case"XXXX":case"XX":return xN(o);default:return xN(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return yN(o);case"xxxx":case"xx":return xN(o);default:return xN(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+bN(o,":");default:return"GMT"+xN(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+bN(o,":");default:return"GMT"+xN(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return lN(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return lN((r._originalDate||e).getTime(),t.length)}};function bN(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+lN(i,2)}function yN(e,t){return e%60==0?(e>0?"-":"+")+lN(Math.abs(e)/60,2):xN(e,t)}function xN(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+lN(Math.floor(o/60),2)+n+lN(o%60,2)}const wN=vN;var EN=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},_N=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},SN={p:_N,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return EN(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",EN(o,t)).replace("{{time}}",_N(i,t))}};const CN=SN;var kN=["D","DD"],PN=["YY","YYYY"];function TN(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var IN={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const RN=function(e,t,n){var r,o=IN[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function MN(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const NN={date:MN({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:MN({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:MN({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var DN={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const AN=function(e,t,n,r){return DN[e]};function ON(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var zN={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ON({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ON({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ON({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ON({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ON({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};const LN=zN;function FN(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var BN,jN={ordinalNumber:(BN={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(BN.matchPattern);if(!n)return null;var r=n[0],o=e.match(BN.parsePattern);if(!o)return null;var i=BN.valueCallback?BN.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:FN({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:FN({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:FN({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:FN({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:FN({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const VN={code:"en-US",formatDistance:RN,formatLong:NN,formatRelative:AN,localize:LN,match:jN,options:{weekStartsOn:0,firstWeekContainsDate:1}};var HN=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$N=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,WN=/^'([^]*?)'?$/,UN=/''/g,GN=/[a-zA-Z]/;function qN(e,t,n){var r,o,i,a,s,l,c,u,d,f,m,p,h,g,v,b,y,x;WM(2,arguments);var w=String(t),E=oN(),_=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:E.locale)&&void 0!==r?r:VN,S=YM(null!==(i=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:E.firstWeekContainsDate)&&void 0!==a?a:null===(d=E.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=YM(null!==(m=null!==(p=null!==(h=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(v=n.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==h?h:E.weekStartsOn)&&void 0!==p?p:null===(y=E.locale)||void 0===y||null===(x=y.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==m?m:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var k=GM(e);if(!JM(k))throw new RangeError("Invalid time value");var P=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(k),T=QM(k,P),I={firstWeekContainsDate:S,weekStartsOn:C,locale:_,_originalDate:k},R=w.match($N).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,CN[t])(e,_.formatLong):e})).join("").match(HN).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(WN);if(!t)return e;return t[1].replace(UN,"'")}(r);var i=wN[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!function(e){return-1!==PN.indexOf(e)}(r)||TN(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==kN.indexOf(e)}(r)||TN(r,t,String(e)),i(T,r,_.localize,I);if(o.match(GN))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return R}function YN(e,t){WM(2,arguments);var n=GM(e),r=GM(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function KN(e,t){WM(2,arguments);var n=GM(e),r=GM(t);return n.getTime()===r.getTime()}function XN(e,t){WM(2,arguments);var n=qM(e),r=qM(t);return n.getTime()===r.getTime()}function ZN(e,t){WM(2,arguments);var n=GM(e),r=YM(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function JN(e,t){return WM(2,arguments),ZN(e,7*YM(t))}const QN=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})),eD=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})),tD=window.wp.date;const nD=bs("div",{target:"e105ri6r5"})({name:"1khn195",styles:"box-sizing:border-box"}),rD=bs(Py,{target:"e105ri6r4"})("margin-bottom:",Ah(4),";"),oD=bs($S,{target:"e105ri6r3"})("font-size:",Xg.fontSize,";font-weight:",Xg.fontWeight,";strong{font-weight:",Xg.fontWeightHeading,";}"),iD=bs("div",{target:"e105ri6r2"})("column-gap:",Ah(2),";display:grid;grid-template-columns:0.5fr repeat( 5, 1fr ) 0.5fr;justify-items:center;row-gap:",Ah(2),";"),aD=bs("div",{target:"e105ri6r1"})("color:",Ds.gray[700],";font-size:",Xg.fontSize,";line-height:",Xg.fontLineHeightBase,";&:nth-of-type( 1 ){justify-self:start;}&:nth-of-type( 7 ){justify-self:end;}"),sD=bs(my,{shouldForwardProp:e=>!["column","isSelected","isToday","hasEvents"].includes(e),target:"e105ri6r0"})("grid-column:",(e=>e.column),";position:relative;justify-content:center;",(e=>1===e.column&&"\n\t\tjustify-self: start;\n\t\t")," ",(e=>7===e.column&&"\n\t\tjustify-self: end;\n\t\t")," ",(e=>e.disabled&&"\n\t\tpointer-events: none;\n\t\t")," &&&{border-radius:100%;height:",Ah(7),";width:",Ah(7),";",(e=>e.isSelected&&`\n\t\t\tbackground: ${Ds.theme.accent};\n\t\t\tcolor: ${Ds.white};\n\t\t\t`)," ",(e=>!e.isSelected&&e.isToday&&`\n\t\t\tbackground: ${Ds.gray[200]};\n\t\t\t`),";}",(e=>e.hasEvents&&`\n\t\t::before {\n\t\t\tbackground: ${e.isSelected?Ds.white:Ds.theme.accent};\n\t\t\tborder-radius: 2px;\n\t\t\tbottom: 2px;\n\t\t\tcontent: " ";\n\t\t\theight: 4px;\n\t\t\tleft: 50%;\n\t\t\tmargin-left: -2px;\n\t\t\tposition: absolute;\n\t\t\twidth: 4px;\n\t\t}\n\t\t`),";");function lD(e){return"string"==typeof e?new Date(e):GM(e)}const cD="yyyy-MM-dd'T'HH:mm:ss";function uD({day:e,column:t,isSelected:n,isFocusable:o,isFocusAllowed:i,isToday:a,isInvalid:s,numEvents:l,onClick:c,onKeyDown:u}){const d=(0,Uo.useRef)();return(0,Uo.useEffect)((()=>{d.current&&o&&i&&d.current.focus()}),[o]),(0,r.createElement)(sD,{ref:d,className:"components-datetime__date__day",disabled:s,tabIndex:o?0:-1,"aria-label":dD(e,n,l),column:t,isSelected:n,isToday:a,hasEvents:l>0,onClick:c,onKeyDown:u},(0,tD.dateI18n)("j",e,-e.getTimezoneOffset()))}function dD(e,t,n){const{formats:r}=(0,tD.getSettings)(),o=(0,tD.dateI18n)(r.date,e,-e.getTimezoneOffset());return t&&n>0?(0,u.sprintf)((0,u._n)("%1$s. Selected. There is %2$d event","%1$s. Selected. There are %2$d events",n),o,n):t?(0,u.sprintf)((0,u.__)("%1$s. Selected"),o):n>0?(0,u.sprintf)((0,u._n)("%1$s. There is %2$d event","%1$s. There are %2$d events",n),o,n):o}const fD=function({currentDate:e,onChange:t,events:n=[],isInvalidDate:o,onMonthPreviewed:i,startOfWeek:a=0}){const s=e?lD(e):new Date,{calendar:l,viewing:c,setSelected:d,setViewing:f,isSelected:m,viewPreviousMonth:p,viewNextMonth:h}=$M({selected:[qM(s)],viewing:qM(s),weekStartsOn:a}),[g,v]=(0,Uo.useState)(qM(s)),[b,y]=(0,Uo.useState)(!1),[x,w]=(0,Uo.useState)(e);return e!==x&&(w(e),d([qM(s)]),f(qM(s)),v(qM(s))),(0,r.createElement)(nD,{className:"components-datetime__date",role:"application","aria-label":(0,u.__)("Calendar")},(0,r.createElement)(rD,null,(0,r.createElement)(my,{icon:(0,u.isRTL)()?QN:eD,variant:"tertiary","aria-label":(0,u.__)("View previous month"),onClick:()=>{p(),v(XM(g,1)),i?.(qN(XM(c,1),cD))}}),(0,r.createElement)(oD,{level:3},(0,r.createElement)("strong",null,(0,tD.dateI18n)("F",c,-c.getTimezoneOffset()))," ",(0,tD.dateI18n)("Y",c,-c.getTimezoneOffset())),(0,r.createElement)(my,{icon:(0,u.isRTL)()?eD:QN,variant:"tertiary","aria-label":(0,u.__)("View next month"),onClick:()=>{h(),v(KM(g,1)),i?.(qN(KM(c,1),cD))}})),(0,r.createElement)(iD,{onFocus:()=>y(!0),onBlur:()=>y(!1)},l[0][0].map((e=>(0,r.createElement)(aD,{key:e.toString()},(0,tD.dateI18n)("D",e,-e.getTimezoneOffset())))),l[0].map((e=>e.map(((e,a)=>YN(e,c)?(0,r.createElement)(uD,{key:e.toString(),day:e,column:a+1,isSelected:m(e),isFocusable:KN(e,g),isFocusAllowed:b,isToday:XN(e,new Date),isInvalid:!!o&&o(e),numEvents:n.filter((t=>XN(t.date,e))).length,onClick:()=>{d([e]),v(e),t?.(qN(new Date(e.getFullYear(),e.getMonth(),e.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),cD))},onKeyDown:t=>{let n;"ArrowLeft"===t.key&&(n=ZN(e,(0,u.isRTL)()?1:-1)),"ArrowRight"===t.key&&(n=ZN(e,(0,u.isRTL)()?-1:1)),"ArrowUp"===t.key&&(n=function(e,t){return WM(2,arguments),JN(e,-YM(t))}(e,1)),"ArrowDown"===t.key&&(n=JN(e,1)),"PageUp"===t.key&&(n=XM(e,1)),"PageDown"===t.key&&(n=KM(e,1)),"Home"===t.key&&(n=function(e,t){var n,r,o,i,a,s,l,c;WM(1,arguments);var u=oN(),d=YM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=GM(e),m=f.getDay(),p=(m<d?7:0)+m-d;return f.setDate(f.getDate()-p),f.setHours(0,0,0,0),f}(e)),"End"===t.key&&(n=qM(function(e,t){var n,r,o,i,a,s,l,c;WM(1,arguments);var u=oN(),d=YM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=GM(e),m=f.getDay(),p=6+(m<d?-7:0)-(m-d);return f.setDate(f.getDate()+p),f.setHours(23,59,59,999),f}(e))),n&&(t.preventDefault(),v(n),YN(n,c)||(f(n),i?.(qN(n,cD))))}}):null))))))};function mD(e){WM(1,arguments);var t=GM(e);return t.setSeconds(0,0),t}function pD(e,t){WM(2,arguments);var n=GM(e),r=YM(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=function(e){WM(1,arguments);var t=GM(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(a);return n.setMonth(r,Math.min(i,s)),n}function hD(e){return hD="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},hD(e)}const gD=bs("div",{target:"evcr2319"})("box-sizing:border-box;font-size:",Xg.fontSize,";"),vD=bs("fieldset",{target:"evcr2318"})("border:0;margin:0 0 ",Ah(4)," 0;padding:0;&:last-child{margin-bottom:0;}"),bD=bs("div",{target:"evcr2317"})({name:"pd0mhc",styles:"direction:ltr;display:flex"}),yD=Ps("&&& ",Ev,"{padding-left:",Ah(2),";padding-right:",Ah(2),";text-align:center;}",""),xD=bs(Ry,{target:"evcr2316"})(yD," width:",Ah(9),";&&& ",Ev,"{padding-right:0;}&&& ",kv,"{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;}"),wD=bs("span",{target:"evcr2315"})("border-top:",Xg.borderWidth," solid ",Ds.gray[700],";border-bottom:",Xg.borderWidth," solid ",Ds.gray[700],";line-height:calc(\n\t\t",Xg.controlHeight," - ",Xg.borderWidth," * 2\n\t);display:inline-block;"),ED=bs(Ry,{target:"evcr2314"})(yD," width:",Ah(9),";&&& ",Ev,"{padding-left:0;}&&& ",kv,"{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;}"),_D=bs("div",{target:"evcr2313"})({name:"1ff36h2",styles:"flex-grow:1"}),SD=bs(Ry,{target:"evcr2312"})(yD," width:",Ah(9),";"),CD=bs(Ry,{target:"evcr2311"})(yD," width:",Ah(14),";"),kD=bs("div",{target:"evcr2310"})({name:"ebu3jh",styles:"text-decoration:underline dotted"}),PD=()=>{const{timezone:e}=(0,tD.getSettings)(),t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;const n=Number(e.offset)>=0?"+":"",o=""!==e.abbr&&isNaN(Number(e.abbr))?e.abbr:`UTC${n}${e.offsetFormatted}`,i=e.string.replace("_"," "),a="UTC"===e.string?(0,u.__)("Coordinated Universal Time"):`(${o}) ${i}`;return 0===i.trim().length?(0,r.createElement)(kD,{className:"components-datetime__timezone"},o):(0,r.createElement)(ri,{placement:"top",text:a},(0,r.createElement)(kD,{className:"components-datetime__timezone"},o))};function TD(e,t){return t?(e%12+12)%24:e%12}function ID(e){return(t,n)=>{const r={...t};return n.type!==Db&&n.type!==Vb&&n.type!==Bb||void 0!==r.value&&(r.value=r.value.toString().padStart(e,"0")),r}}const RD=function({is12Hour:e,currentTime:t,onChange:n}){const[o,i]=(0,Uo.useState)((()=>t?mD(lD(t)):new Date));(0,Uo.useEffect)((()=>{i(t?mD(lD(t)):new Date)}),[t]);const{day:a,month:s,year:l,minutes:c,hours:d,am:f}=(0,Uo.useMemo)((()=>({day:qN(o,"dd"),month:qN(o,"MM"),year:qN(o,"yyyy"),minutes:qN(o,"mm"),hours:qN(o,e?"hh":"HH"),am:qN(o,"a")})),[o,e]),m=t=>(r,{event:a})=>{var s;const l=null!==(s=a.target?.ownerDocument.defaultView?.HTMLInputElement)&&void 0!==s?s:HTMLInputElement;if(!(a.target instanceof l))return;if(!a.target.validity.valid)return;let c=Number(r);"hours"===t&&e&&(c=TD(c,"PM"===f));const u=function(e,t){if(WM(2,arguments),"object"!==hD(t)||null===t)throw new RangeError("values parameter must be an object");var n=GM(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=pD(n,t.month)),null!=t.date&&n.setDate(YM(t.date)),null!=t.hours&&n.setHours(YM(t.hours)),null!=t.minutes&&n.setMinutes(YM(t.minutes)),null!=t.seconds&&n.setSeconds(YM(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(YM(t.milliseconds)),n)}(o,{[t]:c});i(u),n?.(qN(u,cD))};function p(e){return()=>{if(f===e)return;const t=parseInt(d,10),r=function(e,t){WM(2,arguments);var n=GM(e),r=YM(t);return n.setHours(r),n}(o,TD(t,"PM"===e));i(r),n?.(qN(r,cD))}}const h=(0,r.createElement)(SD,{className:"components-datetime__time-field components-datetime__time-field-day",label:(0,u.__)("Day"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:a,step:1,min:1,max:31,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("date")}),g=(0,r.createElement)(_D,null,(0,r.createElement)(YE,{className:"components-datetime__time-field components-datetime__time-field-month",label:(0,u.__)("Month"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,value:s,options:[{value:"01",label:(0,u.__)("January")},{value:"02",label:(0,u.__)("February")},{value:"03",label:(0,u.__)("March")},{value:"04",label:(0,u.__)("April")},{value:"05",label:(0,u.__)("May")},{value:"06",label:(0,u.__)("June")},{value:"07",label:(0,u.__)("July")},{value:"08",label:(0,u.__)("August")},{value:"09",label:(0,u.__)("September")},{value:"10",label:(0,u.__)("October")},{value:"11",label:(0,u.__)("November")},{value:"12",label:(0,u.__)("December")}],onChange:e=>{const t=pD(o,Number(e)-1);i(t),n?.(qN(t,cD))}}));return(0,r.createElement)(gD,{className:"components-datetime__time"},(0,r.createElement)(vD,null,(0,r.createElement)(iy.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,u.__)("Time")),(0,r.createElement)(Py,{className:"components-datetime__time-wrapper"},(0,r.createElement)(bD,{className:"components-datetime__time-field components-datetime__time-field-time"},(0,r.createElement)(xD,{className:"components-datetime__time-field-hours-input",label:(0,u.__)("Hours"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:d,step:1,min:e?1:0,max:e?12:23,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("hours"),__unstableStateReducer:ID(2)}),(0,r.createElement)(wD,{className:"components-datetime__time-separator","aria-hidden":"true"},":"),(0,r.createElement)(ED,{className:"components-datetime__time-field-minutes-input",label:(0,u.__)("Minutes"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:c,step:1,min:0,max:59,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("minutes"),__unstableStateReducer:ID(2)})),e&&(0,r.createElement)(Ok,{className:"components-datetime__time-field components-datetime__time-field-am-pm"},(0,r.createElement)(my,{className:"components-datetime__time-am-button",variant:"AM"===f?"primary":"secondary",__next40pxDefaultSize:!0,onClick:p("AM")},(0,u.__)("AM")),(0,r.createElement)(my,{className:"components-datetime__time-pm-button",variant:"PM"===f?"primary":"secondary",__next40pxDefaultSize:!0,onClick:p("PM")},(0,u.__)("PM"))),(0,r.createElement)(tg,null),(0,r.createElement)(PD,null))),(0,r.createElement)(vD,null,(0,r.createElement)(iy.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,u.__)("Date")),(0,r.createElement)(Py,{className:"components-datetime__time-wrapper"},e?(0,r.createElement)(r.Fragment,null,g,h):(0,r.createElement)(r.Fragment,null,h,g),(0,r.createElement)(CD,{className:"components-datetime__time-field components-datetime__time-field-year",label:(0,u.__)("Year"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:l,step:1,min:1,max:9999,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("year"),__unstableStateReducer:ID(4)}))))};const MD=bs(jS,{target:"e1p5onf00"})({name:"1khn195",styles:"box-sizing:border-box"}),ND=()=>{};const DD=(0,Uo.forwardRef)((function({currentDate:e,is12Hour:t,isInvalidDate:n,onMonthPreviewed:o=ND,onChange:i,events:a,startOfWeek:s},l){return(0,r.createElement)(MD,{ref:l,className:"components-datetime",spacing:4},(0,r.createElement)(r.Fragment,null,(0,r.createElement)(RD,{currentTime:e,onChange:i,is12Hour:t}),(0,r.createElement)(fD,{currentDate:e,onChange:i,isInvalidDate:n,events:a,onMonthPreviewed:o,startOfWeek:s})))})),AD=DD,OD=[{name:(0,u._x)("None","Size of a UI element"),slug:"none"},{name:(0,u._x)("Small","Size of a UI element"),slug:"small"},{name:(0,u._x)("Medium","Size of a UI element"),slug:"medium"},{name:(0,u._x)("Large","Size of a UI element"),slug:"large"},{name:(0,u._x)("Extra Large","Size of a UI element"),slug:"xlarge"}];const zD=function(e){const{__next40pxDefaultSize:t=!1,label:n,value:o,sizes:i=OD,icon:a,onChange:s,className:l=""}=e,d=(0,r.createElement)(r.Fragment,null,a&&(0,r.createElement)(uy,{icon:a}),n);return(0,r.createElement)(YE,{__next40pxDefaultSize:t,className:c()(l,"block-editor-dimension-control"),label:d,hideLabelFromVision:!1,value:o,onChange:e=>{const t=((e,t)=>e.find((e=>t===e.slug)))(i,e);t&&o!==t.slug?"function"==typeof s&&s(t.slug):s?.(void 0)},options:(e=>{const t=e.map((({name:e,slug:t})=>({label:e,value:t})));return[{label:(0,u.__)("Default"),value:""},...t]})(i)})};const LD={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},FD=(0,Uo.createContext)(!1),{Consumer:BD,Provider:jD}=FD;function VD({className:e,children:t,isDisabled:n=!0,...o}){const i=ns();return(0,r.createElement)(jD,{value:n},(0,r.createElement)("div",{inert:n?"true":void 0,className:n?i(LD,e,"components-disabled"):void 0,...o},t))}VD.Context=FD,VD.Consumer=BD;const HD=VD,$D=(0,Uo.forwardRef)((({visible:e,children:t,...n},o)=>{const i=Xt({open:e});return(0,r.createElement)(Zn,{store:i,ref:o,...n},t)})),WD="is-dragging-components-draggable";const UD=function({children:e,onDragStart:t,onDragOver:n,onDragEnd:o,appendToOwnerDocument:i=!1,cloneClassname:a,elementId:s,transferData:l,__experimentalTransferDataType:c="text",__experimentalDragComponent:u}){const f=(0,Uo.useRef)(null),m=(0,Uo.useRef)((()=>{}));return(0,Uo.useEffect)((()=>()=>{m.current()}),[]),(0,r.createElement)(r.Fragment,null,e({onDraggableStart:function(e){const{ownerDocument:r}=e.target;e.dataTransfer.setData(c,JSON.stringify(l));const o=r.createElement("div");o.style.top="0",o.style.left="0";const u=r.createElement("div");"function"==typeof e.dataTransfer.setDragImage&&(u.classList.add("components-draggable__invisible-drag-image"),r.body.appendChild(u),e.dataTransfer.setDragImage(u,0,0)),o.classList.add("components-draggable__clone"),a&&o.classList.add(a);let p=0,h=0;if(f.current){p=e.clientX,h=e.clientY,o.style.transform=`translate( ${p}px, ${h}px )`;const t=r.createElement("div");t.innerHTML=f.current.innerHTML,o.appendChild(t),r.body.appendChild(o)}else{const e=r.getElementById(s),t=e.getBoundingClientRect(),n=e.parentNode,a=t.top,l=t.left;o.style.width=`${t.width+0}px`;const c=e.cloneNode(!0);c.id=`clone-${s}`,p=l-0,h=a-0,o.style.transform=`translate( ${p}px, ${h}px )`,Array.from(c.querySelectorAll("iframe")).forEach((e=>e.parentNode?.removeChild(e))),o.appendChild(c),i?r.body.appendChild(o):n?.appendChild(o)}let g=e.clientX,v=e.clientY;const b=(0,d.throttle)((function(e){if(g===e.clientX&&v===e.clientY)return;const t=p+e.clientX-g,r=h+e.clientY-v;o.style.transform=`translate( ${t}px, ${r}px )`,g=e.clientX,v=e.clientY,p=t,h=r,n&&n(e)}),16);r.addEventListener("dragover",b),r.body.classList.add(WD),t&&t(e),m.current=()=>{o&&o.parentNode&&o.parentNode.removeChild(o),u&&u.parentNode&&u.parentNode.removeChild(u),r.body.classList.remove(WD),r.removeEventListener("dragover",b)}},onDraggableEnd:function(e){e.preventDefault(),m.current(),o&&o(e)}}),u&&(0,r.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:f},u))},GD=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));const qD=function({className:e,label:t,onFilesDrop:n,onHTMLDrop:o,onDrop:i,...a}){const[s,l]=(0,Uo.useState)(),[f,m]=(0,Uo.useState)(),[p,h]=(0,Uo.useState)(),g=(0,d.__experimentalUseDropZone)({onDrop(e){const t=e.dataTransfer?(0,HT.getFilesFromDataTransfer)(e.dataTransfer):[],r=e.dataTransfer?.getData("text/html");r&&o?o(r):t.length&&n?n(t):i&&i(e)},onDragStart(e){l(!0);let t="default";e.dataTransfer?.types.includes("text/html")?t="html":(e.dataTransfer?.types.includes("Files")||(e.dataTransfer?(0,HT.getFilesFromDataTransfer)(e.dataTransfer):[]).length>0)&&(t="file"),h(t)},onDragEnd(){l(!1),h(void 0)},onDragEnter(){m(!0)},onDragLeave(){m(!1)}}),v=(0,d.useReducedMotion)();let b;const y={hidden:{opacity:0},show:{opacity:1,transition:{type:"tween",duration:.2,delay:0,delayChildren:.1}},exit:{opacity:0,transition:{duration:.2,delayChildren:0}}},x={hidden:{opacity:0,scale:.9},show:{opacity:1,scale:1,transition:{duration:.1}},exit:{opacity:0,scale:.9}};f&&(b=(0,r.createElement)(wh.div,{variants:y,initial:v?"show":"hidden",animate:"show",exit:v?"show":"exit",className:"components-drop-zone__content",style:{pointerEvents:"none"}},(0,r.createElement)(wh.div,{variants:x},(0,r.createElement)($E,{icon:GD,className:"components-drop-zone__content-icon"}),(0,r.createElement)("span",{className:"components-drop-zone__content-text"},t||(0,u.__)("Drop files to upload")))));const w=c()("components-drop-zone",e,{"is-active":(s||f)&&("file"===p&&n||"html"===p&&o||"default"===p&&i),"is-dragging-over-document":s,"is-dragging-over-element":f,[`is-dragging-${p}`]:!!p});return(0,r.createElement)("div",{...a,ref:g,className:w},v?b:(0,r.createElement)(Ih,null,b))};function YD({children:e}){return qo()("wp.components.DropZoneProvider",{since:"5.8",hint:"wp.component.DropZone no longer needs a provider. wp.components.DropZoneProvider is safe to remove from your code."}),e}const KD=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"}));function XD(e=[],t="90deg"){const n=100/e.length,r=e.map(((e,t)=>`${e} ${t*n}%, ${e} ${(t+1)*n}%`)).join(", ");return`linear-gradient( ${t}, ${r} )`}Vg([Hg]);const ZD=function({values:e}){return e?(0,r.createElement)(DE,{colorValue:XD(e,"135deg")}):(0,r.createElement)(uy,{icon:KD})};function JD({label:e,value:t,colors:n,disableCustomColors:o,enableAlpha:i,onChange:a}){const[s,l]=(0,Uo.useState)(!1),c=(0,d.useInstanceId)(JD,"color-list-picker-option"),f=`${c}__label`,m=`${c}__content`;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(my,{className:"components-color-list-picker__swatch-button",onClick:()=>l((e=>!e)),"aria-expanded":s,"aria-controls":m},(0,r.createElement)(Py,{justify:"flex-start",spacing:2},t?(0,r.createElement)(DE,{colorValue:t,className:"components-color-list-picker__swatch-color"}):(0,r.createElement)(uy,{icon:KD}),(0,r.createElement)("span",{id:f},e))),(0,r.createElement)("div",{role:"group",id:m,"aria-labelledby":f,"aria-hidden":!s},s&&(0,r.createElement)(JS,{"aria-label":(0,u.__)("Color options"),className:"components-color-list-picker__color-picker",colors:n,value:t,clearable:!1,onChange:a,disableCustomColors:o,enableAlpha:i})))}const QD=function({colors:e,labels:t,value:n=[],disableCustomColors:o,enableAlpha:i,onChange:a}){return(0,r.createElement)("div",{className:"components-color-list-picker"},t.map(((t,s)=>(0,r.createElement)(JD,{key:s,label:t,value:n[s],colors:e,disableCustomColors:o,enableAlpha:i,onChange:e=>{const t=n.slice();t[s]=e,a(t)}}))))},eA=["#333","#CCC"];function tA({value:e,onChange:t}){const n=!!e,o=n?e:eA,i=XD(o),a=(s=o).map(((e,t)=>({position:100*t/(s.length-1),color:e})));var s;return(0,r.createElement)(wT,{disableInserter:!0,background:i,hasGradient:n,value:a,onChange:e=>{const n=function(e=[]){return e.map((({color:e})=>e))}(e);t(n)}})}const nA=function({asButtons:e,loop:t,clearable:n=!0,unsetable:o=!0,colorPalette:i,duotonePalette:a,disableCustomColors:s,disableCustomDuotone:l,value:c,onChange:d,"aria-label":f,"aria-labelledby":m,...p}){const[h,g]=(0,Uo.useMemo)((()=>{return!(e=i)||e.length<2?["#000","#fff"]:e.map((({color:e})=>({color:e,brightness:Bg(e).brightness()}))).reduce((([e,t],n)=>[n.brightness<=e.brightness?n:e,n.brightness>=t.brightness?n:t]),[{brightness:1,color:""},{brightness:0,color:""}]).map((({color:e})=>e));var e}),[i]),v="unset"===c,b=(0,u.__)("Unset"),y=(0,r.createElement)(BS.Option,{key:"unset",value:"unset",isSelected:v,tooltipText:b,"aria-label":b,className:"components-duotone-picker__color-indicator",onClick:()=>{d(v?void 0:"unset")}}),x=a.map((({colors:e,slug:t,name:n})=>{const o={background:XD(e,"135deg"),color:"transparent"},i=null!=n?n:(0,u.sprintf)((0,u.__)("Duotone code: %s"),t),a=n?(0,u.sprintf)((0,u.__)("Duotone: %s"),n):i,s=si()(e,c);return(0,r.createElement)(BS.Option,{key:t,value:e,isSelected:s,"aria-label":a,tooltipText:i,style:o,onClick:()=>{d(s?void 0:e)}})}));let w;if(e)w={asButtons:!0};else{const e={asButtons:!1,loop:t};w=f?{...e,"aria-label":f}:m?{...e,"aria-labelledby":m}:{...e,"aria-label":(0,u.__)("Custom color picker.")}}const E=o?[y,...x]:x;return(0,r.createElement)(BS,{...p,...w,options:E,actions:!!n&&(0,r.createElement)(BS.ButtonAction,{onClick:()=>d(void 0)},(0,u.__)("Clear"))},(0,r.createElement)(tg,{paddingTop:0===E.length?0:4},(0,r.createElement)(jS,{spacing:3},!s&&!l&&(0,r.createElement)(tA,{value:v?void 0:c,onChange:d}),!l&&(0,r.createElement)(QD,{labels:[(0,u.__)("Shadows"),(0,u.__)("Highlights")],colors:i,value:v?void 0:c,disableCustomColors:s,enableAlpha:!0,onChange:e=>{e[0]||(e[0]=h),e[1]||(e[1]=g);const t=e.length>=2?e:void 0;d(t)}}))))},rA=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));const oA=bs($E,{target:"esh4a730"})({name:"rvs7bx",styles:"width:1em;height:1em;margin:0;vertical-align:middle;fill:currentColor"});const iA=(0,Uo.forwardRef)((function(e,t){const{href:n,children:o,className:i,rel:a="",...s}=e,l=[...new Set([...a.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),d=c()("components-external-link",i),f=!!n?.startsWith("#");return(0,r.createElement)("a",{...s,className:d,href:n,onClick:t=>{f&&t.preventDefault(),e.onClick&&e.onClick(t)},target:"_blank",rel:l,ref:t},o,(0,r.createElement)(ws,{as:"span"},(0,u.__)("(opens in a new tab)")),(0,r.createElement)(oA,{icon:rA,className:"components-external-link__icon"}))})),aA={width:200,height:170},sA=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function lA(e){return Math.round(100*e)}const cA=bs("div",{target:"eeew7dm8"})({name:"jqnsxy",styles:"background-color:transparent;display:flex;text-align:center;width:100%"}),uA=bs("div",{target:"eeew7dm7"})("align-items:center;border-radius:",Xg.radiusBlockUi,";cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;&:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 1px rgba( 0, 0, 0, 0.1 );content:'';left:0;pointer-events:none;position:absolute;right:0;top:0;}img,video{border-radius:inherit;box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"),dA=bs("div",{target:"eeew7dm6"})("background:",Ds.gray[100],";border-radius:inherit;box-sizing:border-box;height:",aA.height,"px;max-width:280px;min-width:",aA.width,"px;width:100%;"),fA=bs(PC,{target:"eeew7dm5"})({name:"1d3w5wq",styles:"width:100%"});var mA={name:"1mn7kwb",styles:"padding-bottom:1em"};const pA=({__nextHasNoMarginBottom:e})=>e?void 0:mA;var hA={name:"1mn7kwb",styles:"padding-bottom:1em"};const gA=({hasHelpText:e=!1})=>e?hA:void 0,vA=bs($h,{target:"eeew7dm4"})("max-width:320px;padding-top:1em;",gA," ",pA,";"),bA=bs("div",{target:"eeew7dm3"})("left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );transition:opacity 100ms linear;z-index:1;",As("transition")," opacity:",(({showOverlay:e})=>e?1:0),";"),yA=bs("div",{target:"eeew7dm2"})({name:"1yzbo24",styles:"background:rgba( 255, 255, 255, 0.4 );backdrop-filter:blur( 16px ) saturate( 180% );position:absolute;transform:translateZ( 0 )"}),xA=bs(yA,{target:"eeew7dm1"})({name:"1sw8ur",styles:"height:1px;left:1px;right:1px"}),wA=bs(yA,{target:"eeew7dm0"})({name:"188vg4t",styles:"width:1px;top:1px;bottom:1px"}),EA=0,_A=100,SA=()=>{};function CA({__nextHasNoMarginBottom:e,__next40pxDefaultSize:t,hasHelpText:n,onChange:o=SA,point:i={x:.5,y:.5}}){const a=lA(i.x),s=lA(i.y),l=(e,t)=>{if(void 0===e)return;const n=parseInt(e,10);isNaN(n)||o({...i,[t]:n/100})};return(0,r.createElement)(vA,{className:"focal-point-picker__controls",__nextHasNoMarginBottom:e,hasHelpText:n,gap:4},(0,r.createElement)(kA,{__next40pxDefaultSize:t,label:(0,u.__)("Left"),"aria-label":(0,u.__)("Focal point left position"),value:[a,"%"].join(""),onChange:e=>l(e,"x"),dragDirection:"e"}),(0,r.createElement)(kA,{__next40pxDefaultSize:t,label:(0,u.__)("Top"),"aria-label":(0,u.__)("Focal point top position"),value:[s,"%"].join(""),onChange:e=>l(e,"y"),dragDirection:"s"}))}function kA(e){return(0,r.createElement)(fA,{className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:_A,min:EA,units:[{value:"%",label:"%"}],...e})}const PA=bs("div",{target:"e19snlhg0"})("background-color:transparent;cursor:grab;height:40px;margin:-20px 0 0 -20px;position:absolute;user-select:none;width:40px;will-change:transform;z-index:10000;background:rgba( 255, 255, 255, 0.4 );border:1px solid rgba( 255, 255, 255, 0.4 );border-radius:50%;backdrop-filter:blur( 16px ) saturate( 180% );box-shadow:rgb( 0 0 0 / 10% ) 0px 0px 8px;transition:transform 100ms linear;",As("transition")," ",(({isDragging:e})=>e&&"\n\t\t\tbox-shadow: rgb( 0 0 0 / 12% ) 0px 0px 10px;\n\t\t\ttransform: scale( 1.1 );\n\t\t\tcursor: grabbing;\n\t\t\t"),";");function TA({left:e="50%",top:t="50%",...n}){const o=c()("components-focal-point-picker__icon_container"),i={left:e,top:t};return(0,r.createElement)(PA,{...n,className:o,style:i})}function IA({bounds:e,...t}){return(0,r.createElement)(bA,{...t,className:"components-focal-point-picker__grid",style:{width:e.width,height:e.height}},(0,r.createElement)(xA,{style:{top:"33%"}}),(0,r.createElement)(xA,{style:{top:"66%"}}),(0,r.createElement)(wA,{style:{left:"33%"}}),(0,r.createElement)(wA,{style:{left:"66%"}}))}function RA({alt:e,autoPlay:t,src:n,onLoad:o,mediaRef:i,muted:a=!0,...s}){if(!n)return(0,r.createElement)(dA,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",ref:i,...s});return function(e=""){return!!e&&(e.startsWith("data:video/")||sA.includes(function(e=""){const t=e.split(".");return t[t.length-1]}(e)))}(n)?(0,r.createElement)("video",{...s,autoPlay:t,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:a,onLoadedData:o,ref:i,src:n}):(0,r.createElement)("img",{...s,alt:e,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:o,ref:i,src:n})}const MA=function e({__nextHasNoMarginBottom:t,__next40pxDefaultSize:n=!1,autoPlay:o=!0,className:i,help:a,label:s,onChange:l,onDrag:f,onDragEnd:m,onDragStart:p,resolvePoint:h,url:g,value:v={x:.5,y:.5},...b}){const[y,x]=(0,Uo.useState)(v),[w,E]=(0,Uo.useState)(!1),{startDrag:_,endDrag:S,isDragging:C}=(0,d.__experimentalUseDragging)({onDragStart:e=>{T.current?.focus();const t=N(e);t&&(p?.(t,e),x(t))},onDragMove:e=>{e.preventDefault();const t=N(e);t&&(f?.(t,e),x(t))},onDragEnd:()=>{m?.(),l?.(y)}}),{x:k,y:P}=C?y:v,T=(0,Uo.useRef)(null),[I,R]=(0,Uo.useState)(aA),M=(0,Uo.useRef)((()=>{if(!T.current)return;const{clientWidth:e,clientHeight:t}=T.current;R(e>0&&t>0?{width:e,height:t}:{...aA})}));(0,Uo.useEffect)((()=>{const e=M.current;if(!T.current)return;const{defaultView:t}=T.current.ownerDocument;return t?.addEventListener("resize",e),()=>t?.removeEventListener("resize",e)}),[]),(0,d.useIsomorphicLayoutEffect)((()=>{M.current()}),[]);const N=({clientX:e,clientY:t,shiftKey:n})=>{if(!T.current)return;const{top:r,left:o}=T.current.getBoundingClientRect();let i=(e-o)/I.width,a=(t-r)/I.height;return n&&(i=.1*Math.round(i/.1),a=.1*Math.round(a/.1)),D({x:i,y:a})},D=e=>{var t;const n=null!==(t=h?.(e))&&void 0!==t?t:e;n.x=Math.max(0,Math.min(n.x,1)),n.y=Math.max(0,Math.min(n.y,1));const r=e=>Math.round(100*e)/100;return{x:r(n.x),y:r(n.y)}},A={left:void 0!==k?k*I.width:.5*I.width,top:void 0!==P?P*I.height:.5*I.height},O=c()("components-focal-point-picker-control",i),z=`inspector-focal-point-picker-control-${(0,d.useInstanceId)(e)}`;return ui((()=>{E(!0);const e=window.setTimeout((()=>{E(!1)}),600);return()=>window.clearTimeout(e)}),[k,P]),(0,r.createElement)(iy,{...b,__nextHasNoMarginBottom:t,label:s,id:z,help:a,className:O},(0,r.createElement)(cA,{className:"components-focal-point-picker-wrapper"},(0,r.createElement)(uA,{className:"components-focal-point-picker",onKeyDown:e=>{const{code:t,shiftKey:n}=e;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t))return;e.preventDefault();const r={x:k,y:P},o=n?.1:.01,i="ArrowUp"===t||"ArrowLeft"===t?-1*o:o,a="ArrowUp"===t||"ArrowDown"===t?"y":"x";r[a]=r[a]+i,l?.(D(r))},onMouseDown:_,onBlur:()=>{C&&S()},ref:T,role:"button",tabIndex:-1},(0,r.createElement)(IA,{bounds:I,showOverlay:w}),(0,r.createElement)(RA,{alt:(0,u.__)("Media preview"),autoPlay:o,onLoad:M.current,src:g}),(0,r.createElement)(TA,{...A,isDragging:C}))),(0,r.createElement)(CA,{__nextHasNoMarginBottom:t,__next40pxDefaultSize:n,hasHelpText:!!a,point:{x:k,y:P},onChange:e=>{l?.(D(e))}}))};function NA({iframeRef:e,...t}){const n=(0,d.useMergeRefs)([e,(0,d.useFocusableIframe)()]);return qo()("wp.components.FocusableIframe",{since:"5.9",alternative:"wp.compose.useFocusableIframe"}),(0,r.createElement)("iframe",{ref:n,...t})}const DA=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,r.createElement)(n.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"}));function AA(e){const[t,...n]=e;if(!t)return null;const[,r]=xC(t.size);return n.every((e=>{const[,t]=xC(e.size);return t===r}))?r:null}const OA=bs("fieldset",{target:"e8tqeku4"})({name:"1t1ytme",styles:"border:0;margin:0;padding:0"}),zA=bs(Py,{target:"e8tqeku3"})("height:",Ah(4),";"),LA=bs(my,{target:"e8tqeku2"})("margin-top:",Ah(-1),";"),FA=bs(iy.VisualLabel,{target:"e8tqeku1"})("display:flex;gap:",Ah(1),";justify-content:flex-start;margin-bottom:0;"),BA=bs("span",{target:"e8tqeku0"})("color:",Ds.gray[700],";"),jA={key:"default",name:(0,u.__)("Default"),value:void 0},VA={key:"custom",name:(0,u.__)("Custom")},HA=e=>{var t;const{__next40pxDefaultSize:n,fontSizes:o,value:i,disableCustomFontSizes:a,size:s,onChange:l,onSelectCustom:c}=e,d=!!AA(o),f=[jA,...o.map((e=>{let t;if(d){const[n]=xC(e.size);void 0!==n&&(t=String(n))}else(function(e){return/^[\d\.]+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i.test(String(e))})(e.size)&&(t=String(e.size));return{key:e.slug,name:e.name||e.slug,value:e.size,__experimentalHint:t}})),...a?[]:[VA]],m=i?null!==(t=f.find((e=>e.value===i)))&&void 0!==t?t:VA:jA;return(0,r.createElement)(wM,{__next40pxDefaultSize:n,__nextUnconstrainedWidth:!0,className:"components-font-size-picker__select",label:(0,u.__)("Font size"),hideLabelFromVision:!0,describedBy:(0,u.sprintf)((0,u.__)("Currently selected font size: %s"),m.name),options:f,value:m,__experimentalShowSelectedHint:!0,onChange:({selectedItem:e})=>{e===VA?c():l(e.value)},size:s})};const $A=(0,Uo.forwardRef)((function(e,t){const{label:n,...o}=e,i=o["aria-label"]||n;return(0,r.createElement)(TE,{...o,"aria-label":i,ref:t},n)})),WA=[(0,u.__)("S"),(0,u.__)("M"),(0,u.__)("L"),(0,u.__)("XL"),(0,u.__)("XXL")],UA=[(0,u.__)("Small"),(0,u.__)("Medium"),(0,u.__)("Large"),(0,u.__)("Extra Large"),(0,u.__)("Extra Extra Large")],GA=e=>{const{fontSizes:t,value:n,__next40pxDefaultSize:o,size:i,onChange:a}=e;return(0,r.createElement)(fE,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:o,label:(0,u.__)("Font size"),hideLabelFromVision:!0,value:n,onChange:a,isBlock:!0,size:i},t.map(((e,t)=>(0,r.createElement)($A,{key:e.slug,value:e.size,label:WA[t],"aria-label":e.name||UA[t],showTooltip:!0}))))},qA=(0,Uo.forwardRef)(((e,t)=>{const{__next40pxDefaultSize:n=!1,fallbackFontSize:o,fontSizes:i=[],disableCustomFontSizes:a=!1,onChange:s,size:l="default",units:c,value:d,withSlider:f=!1,withReset:m=!0}=e,p=wC({availableUnits:c||["px","em","rem"]}),h=i.length>5,g=i.find((e=>e.size===d)),v=!!d&&!g,[b,y]=(0,Uo.useState)(!a&&v),x=(0,Uo.useMemo)((()=>{if(b)return(0,u.__)("Custom");if(!h)return g?g.name||UA[i.indexOf(g)]:"";const e=AA(i);return e?`(${e})`:""}),[b,h,g,i]);if(0===i.length&&a)return null;const w="string"==typeof d||"string"==typeof i[0]?.size,[E,_]=xC(d,p),S=!!_&&["em","rem"].includes(_),C=void 0===d;return(0,r.createElement)(OA,{ref:t,className:"components-font-size-picker"},(0,r.createElement)(ws,{as:"legend"},(0,u.__)("Font size")),(0,r.createElement)(tg,null,(0,r.createElement)(zA,{className:"components-font-size-picker__header"},(0,r.createElement)(FA,{"aria-label":`${(0,u.__)("Size")} ${x||""}`},(0,u.__)("Size"),x&&(0,r.createElement)(BA,{className:"components-font-size-picker__header__hint"},x)),!a&&(0,r.createElement)(LA,{label:b?(0,u.__)("Use size preset"):(0,u.__)("Set custom size"),icon:DA,onClick:()=>{y(!b)},isPressed:b,size:"small"}))),(0,r.createElement)("div",null,!!i.length&&h&&!b&&(0,r.createElement)(HA,{__next40pxDefaultSize:n,fontSizes:i,value:d,disableCustomFontSizes:a,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(w?e:Number(e),i.find((t=>t.size===e)))},onSelectCustom:()=>y(!0)}),!h&&!b&&(0,r.createElement)(GA,{fontSizes:i,value:d,__next40pxDefaultSize:n,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(w?e:Number(e),i.find((t=>t.size===e)))}}),!a&&b&&(0,r.createElement)($h,{className:"components-font-size-picker__custom-size-control"},(0,r.createElement)(og,{isBlock:!0},(0,r.createElement)(PC,{__next40pxDefaultSize:n,label:(0,u.__)("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:d,onChange:e=>{s?.(void 0===e?void 0:w?e:parseInt(e,10))},size:l,units:w?p:[],min:0})),f&&(0,r.createElement)(og,{isBlock:!0},(0,r.createElement)(tg,{marginX:2,marginBottom:0},(0,r.createElement)(k_,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:n,className:"components-font-size-picker__custom-input",label:(0,u.__)("Custom Size"),hideLabelFromVision:!0,value:E,initialPosition:o,withInputField:!1,onChange:e=>{s?.(void 0===e?void 0:w?e+(null!=_?_:"px"):e)},min:0,max:S?10:100,step:S?.1:1}))),m&&(0,r.createElement)(og,null,(0,r.createElement)(fy,{disabled:C,__experimentalIsFocusable:!0,onClick:()=>{s?.(void 0)},variant:"secondary",__next40pxDefaultSize:!0,size:"__unstable-large"===l||e.__next40pxDefaultSize?"default":"small"},(0,u.__)("Reset"))))))})),YA=qA;const KA=function({accept:e,children:t,multiple:n=!1,onChange:o,onClick:i,render:a,...s}){const l=(0,Uo.useRef)(null),c=()=>{l.current?.click()},u=a?a({openFileDialog:c}):(0,r.createElement)(my,{onClick:c,...s},t);return(0,r.createElement)("div",{className:"components-form-file-upload"},u,(0,r.createElement)("input",{type:"file",ref:l,multiple:n,style:{display:"none"},accept:e,onChange:o,onClick:i,"data-testid":"form-file-upload-input"}))},XA=()=>{};const ZA=function(e){const{className:t,checked:n,id:o,disabled:i,onChange:a=XA,...s}=e,l=c()("components-form-toggle",t,{"is-checked":n,"is-disabled":i});return(0,r.createElement)("span",{className:l},(0,r.createElement)("input",{className:"components-form-toggle__input",id:o,type:"checkbox",checked:n,onChange:a,disabled:i,...s}),(0,r.createElement)("span",{className:"components-form-toggle__track"}),(0,r.createElement)("span",{className:"components-form-toggle__thumb"}))},JA=()=>{};function QA({value:e,status:t,title:n,displayTransform:o,isBorderless:i=!1,disabled:a=!1,onClickRemove:s=JA,onMouseEnter:l,onMouseLeave:f,messages:m,termPosition:p,termsCount:h}){const g=(0,d.useInstanceId)(QA),v=c()("components-form-token-field__token",{"is-error":"error"===t,"is-success":"success"===t,"is-validating":"validating"===t,"is-borderless":i,"is-disabled":a}),b=o(e),y=(0,u.sprintf)((0,u.__)("%1$s (%2$s of %3$s)"),b,p,h);return(0,r.createElement)("span",{className:v,onMouseEnter:l,onMouseLeave:f,title:n},(0,r.createElement)("span",{className:"components-form-token-field__token-text",id:`components-form-token-field__token-text-${g}`},(0,r.createElement)(ws,{as:"span"},y),(0,r.createElement)("span",{"aria-hidden":"true"},b)),(0,r.createElement)(my,{className:"components-form-token-field__remove-token",icon:zw,onClick:a?void 0:()=>s({value:e}),disabled:a,label:m.remove,"aria-describedby":`components-form-token-field__token-text-${g}`}))}const eO=({__next40pxDefaultSize:e,hasTokens:t})=>!e&&Ps("padding-top:",Ah(t?1:.5),";padding-bottom:",Ah(t?1:.5),";",""),tO=bs($h,{target:"ehq8nmi0"})("padding:7px;",Kb," ",eO,";"),nO=e=>e;const rO=function e(t){const{autoCapitalize:n,autoComplete:o,maxLength:i,placeholder:a,label:s=(0,u.__)("Add item"),className:l,suggestions:f=[],maxSuggestions:m=100,value:p=[],displayTransform:h=nO,saveTransform:g=(e=>e.trim()),onChange:v=(()=>{}),onInputChange:b=(()=>{}),onFocus:y,isBorderless:x=!1,disabled:w=!1,tokenizeOnSpace:E=!1,messages:_={added:(0,u.__)("Item added."),removed:(0,u.__)("Item removed."),remove:(0,u.__)("Remove item"),__experimentalInvalid:(0,u.__)("Invalid item")},__experimentalRenderItem:S,__experimentalExpandOnFocus:C=!1,__experimentalValidateInput:k=(()=>!0),__experimentalShowHowTo:P=!0,__next40pxDefaultSize:T=!1,__experimentalAutoSelectFirstMatch:I=!1,__nextHasNoMarginBottom:R=!1,tokenizeOnBlur:M=!1}=Nv(t),N=(0,d.useInstanceId)(e),[D,A]=(0,Uo.useState)(""),[O,z]=(0,Uo.useState)(0),[L,F]=(0,Uo.useState)(!1),[B,j]=(0,Uo.useState)(!1),[V,H]=(0,Uo.useState)(-1),[$,W]=(0,Uo.useState)(!1),U=(0,d.usePrevious)(f),G=(0,d.usePrevious)(p),q=(0,Uo.useRef)(null),Y=(0,Uo.useRef)(null),K=(0,d.useDebounce)(jy.speak,500);function X(){q.current?.focus()}function Z(){return q.current===q.current?.ownerDocument.activeElement}function J(e){if(me()&&k(D))F(!1),M&&me()&&se(D);else{if(A(""),z(0),F(!1),C){const t=e.relatedTarget===Y.current;j(t)}else j(!1);H(-1),W(!1)}}function Q(e){e.target===Y.current&&L&&e.preventDefault()}function ee(e){le(e.value),X()}function te(e){const t=e.value,n=E?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=r[r.length-1]||"";r.length>1&&ae(r.slice(0,-1)),A(o),b(o)}function ne(e){let t=!1;return Z()&&fe()&&(e(),t=!0),t}function re(){const e=de()-1;e>-1&&le(p[e])}function oe(){const e=de();e<p.length&&(le(p[e]),function(e){z(p.length-Math.max(e,-1)-1)}(e))}function ie(){let e=!1;const t=function(){if(-1!==V)return ue()[V];return}();return t?(se(t),e=!0):me()&&(se(D),e=!0),e}function ae(e){const t=[...new Set(e.map(g).filter(Boolean).filter((e=>!function(e){return p.some((t=>ce(e)===ce(t)))}(e))))];if(t.length>0){const e=[...p];e.splice(de(),0,...t),v(e)}}function se(e){k(e)?(ae([e]),(0,jy.speak)(_.added,"assertive"),A(""),H(-1),W(!1),j(!C),L&&!M&&X()):(0,jy.speak)(_.__experimentalInvalid,"assertive")}function le(e){const t=p.filter((t=>ce(t)!==ce(e)));v(t),(0,jy.speak)(_.removed,"assertive")}function ce(e){return"object"==typeof e?e.value:e}function ue(e=D,t=f,n=p,r=m,o=g){let i=o(e);const a=[],s=[],l=n.map((e=>"string"==typeof e?e:e.value));return 0===i.length?t=t.filter((e=>!l.includes(e))):(i=i.toLocaleLowerCase(),t.forEach((e=>{const t=e.toLocaleLowerCase().indexOf(i);-1===l.indexOf(e)&&(0===t?a.push(e):t>0&&s.push(e))})),t=a.concat(s)),t.slice(0,r)}function de(){return p.length-O}function fe(){return 0===D.length}function me(){return g(D).length>0}function pe(e=!0){const t=D.trim().length>1,n=ue(D),r=n.length>0,o=Z()&&C;if(j(o||t&&r),e&&(I&&t&&r?(H(0),W(!0)):(H(-1),W(!1))),t){const e=r?(0,u.sprintf)((0,u._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",n.length),n.length):(0,u.__)("No results.");K(e,"assertive")}}function he(e,t,n){const o=ce(e),i="string"!=typeof e?e.status:void 0,a=t+1,s=n.length;return(0,r.createElement)(og,{key:"token-"+o},(0,r.createElement)(QA,{value:o,status:i,title:"string"!=typeof e?e.title:void 0,displayTransform:h,onClickRemove:ee,isBorderless:"string"!=typeof e&&e.isBorderless||x,onMouseEnter:"string"!=typeof e?e.onMouseEnter:void 0,onMouseLeave:"string"!=typeof e?e.onMouseLeave:void 0,disabled:"error"!==i&&w,messages:_,termsCount:s,termPosition:a}))}(0,Uo.useEffect)((()=>{L&&!Z()&&X()}),[L]),(0,Uo.useEffect)((()=>{const e=!ow()(f,U||[]);(e||p!==G)&&pe(e)}),[f,U,p,G]),(0,Uo.useEffect)((()=>{pe()}),[D]),(0,Uo.useEffect)((()=>{pe()}),[I]),w&&L&&(F(!1),A(""));const ge=c()(l,"components-form-token-field__input-container",{"is-active":L,"is-disabled":w});let ve={className:"components-form-token-field",tabIndex:-1};const be=ue();return w||(ve=Object.assign({},ve,{onKeyDown:function(e){let t=!1;if(!e.defaultPrevented&&!e.nativeEvent.isComposing&&229!==e.keyCode){switch(e.key){case"Backspace":t=ne(re);break;case"Enter":t=ie();break;case"ArrowLeft":t=function(){let e=!1;return fe()&&(z((e=>Math.min(e+1,p.length))),e=!0),e}();break;case"ArrowUp":H((e=>(0===e?ue(D,f,p,m,g).length:e)-1)),W(!0),t=!0;break;case"ArrowRight":t=function(){let e=!1;return fe()&&(z((e=>Math.max(e-1,0))),e=!0),e}();break;case"ArrowDown":H((e=>(e+1)%ue(D,f,p,m,g).length)),W(!0),t=!0;break;case"Delete":t=ne(oe);break;case"Space":E&&(t=ie());break;case"Escape":t=function(e){return e.target instanceof HTMLInputElement&&(A(e.target.value),j(!1),H(-1),W(!1)),!0}(e)}t&&e.preventDefault()}},onKeyPress:function(e){let t=!1;","===e.key&&(me()&&se(D),t=!0);t&&e.preventDefault()},onFocus:function(e){Z()||e.target===Y.current?(F(!0),j(C||B)):F(!1),"function"==typeof y&&y(e)}})),(0,r.createElement)("div",{...ve},(0,r.createElement)(Qb,{htmlFor:`components-form-token-input-${N}`,className:"components-form-token-field__label"},s),(0,r.createElement)("div",{ref:Y,className:ge,tabIndex:-1,onMouseDown:Q,onTouchStart:Q},(0,r.createElement)(tO,{justify:"flex-start",align:"center",gap:1,wrap:!0,__next40pxDefaultSize:T,hasTokens:!!p.length},function(){const e=p.map(he);return e.splice(de(),0,function(){const e={instanceId:N,autoCapitalize:n,autoComplete:o,placeholder:0===p.length?a:"",key:"input",disabled:w,value:D,onBlur:J,isExpanded:B,selectedSuggestionIndex:V};return(0,r.createElement)(xI,{...e,onChange:i&&p.length>=i?void 0:te,ref:q})}()),e}()),B&&(0,r.createElement)(SI,{instanceId:N,match:g(D),displayTransform:h,suggestions:be,selectedIndex:V,scrollIntoView:$,onHover:function(e){const t=ue().indexOf(e);t>=0&&(H(t),W(!1))},onSelect:function(e){se(e)},__experimentalRenderItem:S})),!R&&(0,r.createElement)(tg,{marginBottom:2}),P&&(0,r.createElement)(ty,{id:`components-form-token-suggestions-howto-${N}`,className:"components-form-token-field__help",__nextHasNoMarginBottom:R},E?(0,u.__)("Separate with commas, spaces, or the Enter key."):(0,u.__)("Separate with commas or the Enter key.")))},oO=()=>(0,r.createElement)(n.SVG,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(n.Circle,{cx:"4",cy:"4",r:"4"}));function iO({currentPage:e,numberOfPages:t,setCurrentPage:n}){return(0,r.createElement)("ul",{className:"components-guide__page-control","aria-label":(0,u.__)("Guide controls")},Array.from({length:t}).map(((o,i)=>(0,r.createElement)("li",{key:i,"aria-current":i===e?"step":void 0},(0,r.createElement)(my,{key:i,icon:(0,r.createElement)(oO,null),"aria-label":(0,u.sprintf)((0,u.__)("Page %1$d of %2$d"),i+1,t),onClick:()=>n(i)})))))}const aO=function({children:e,className:t,contentLabel:n,finishButtonText:o=(0,u.__)("Finish"),onFinish:i,pages:a=[]}){const s=(0,Uo.useRef)(null),[l,d]=(0,Uo.useState)(0);var f;(0,Uo.useEffect)((()=>{const e=s.current?.querySelector(".components-guide");e instanceof HTMLElement&&e.focus()}),[l]),(0,Uo.useEffect)((()=>{Uo.Children.count(e)&&qo()("Passing children to <Guide>",{since:"5.5",alternative:"the `pages` prop"})}),[e]),Uo.Children.count(e)&&(a=null!==(f=Uo.Children.map(e,(e=>({content:e}))))&&void 0!==f?f:[]);const m=l>0,p=l<a.length-1,h=()=>{m&&d(l-1)},g=()=>{p&&d(l+1)};return 0===a.length?null:(0,r.createElement)(qI,{className:c()("components-guide",t),contentLabel:n,isDismissible:a.length>1,onRequestClose:i,onKeyDown:e=>{"ArrowLeft"===e.code?(h(),e.preventDefault()):"ArrowRight"===e.code&&(g(),e.preventDefault())},ref:s},(0,r.createElement)("div",{className:"components-guide__container"},(0,r.createElement)("div",{className:"components-guide__page"},a[l].image,a.length>1&&(0,r.createElement)(iO,{currentPage:l,numberOfPages:a.length,setCurrentPage:d}),a[l].content),(0,r.createElement)("div",{className:"components-guide__footer"},m&&(0,r.createElement)(my,{className:"components-guide__back-button",variant:"tertiary",onClick:h},(0,u.__)("Previous")),p&&(0,r.createElement)(my,{className:"components-guide__forward-button",variant:"primary",onClick:g},(0,u.__)("Next")),!p&&(0,r.createElement)(my,{className:"components-guide__finish-button",variant:"primary",onClick:i},o))))};function sO(e){return(0,Uo.useEffect)((()=>{qo()("<GuidePage>",{since:"5.5",alternative:"the `pages` prop in <Guide>"})}),[]),(0,r.createElement)("div",{...e})}const lO=(0,Uo.forwardRef)((function({label:e,labelPosition:t,size:n,tooltip:o,...i},a){return qo()("wp.components.IconButton",{since:"5.4",alternative:"wp.components.Button",version:"6.2"}),(0,r.createElement)(my,{...i,ref:a,tooltipPosition:t,iconSize:n,showTooltip:void 0!==o?!!o:void 0,label:o||e})}));const cO=os((function(e,t){const{role:n,wrapperClassName:o,...i}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:i,...a}=rs(e,"Item"),{spacedAround:s,size:l}=iT(),c=i||l,u=t||(void 0!==r?"button":"div"),d=ns(),f=(0,Uo.useMemo)((()=>d(("button"===u||"a"===u)&&UP(u),rT[c]||rT.medium,qP,s&&ZP,n)),[u,n,d,c,s]),m=d(GP);return{as:u,className:f,onClick:r,wrapperClassName:m,role:o,...a}}(e);return(0,r.createElement)("div",{role:n,className:o},(0,r.createElement)(xs,{...i,ref:t}))}),"Item"),uO=cO;const dO=os((function(e,t){const n=rs(e,"InputControlPrefixWrapper");return(0,r.createElement)(tg,{marginBottom:0,...n,ref:t})}),"InputControlPrefixWrapper");function fO({target:e,callback:t,shortcut:n,bindGlobal:r,eventName:o}){return(0,d.useKeyboardShortcut)(n,t,{bindGlobal:r,target:e,eventName:o}),null}const mO=function({children:e,shortcuts:t,bindGlobal:n,eventName:o}){const i=(0,Uo.useRef)(null),a=Object.entries(null!=t?t:{}).map((([e,t])=>(0,r.createElement)(fO,{key:e,shortcut:e,callback:t,bindGlobal:n,eventName:o,target:i})));return Uo.Children.count(e)?(0,r.createElement)("div",{ref:i},a,e):(0,r.createElement)(r.Fragment,null,a)};const pO=function e(t){const{children:n,className:o="",label:i,hideSeparator:a}=t,s=(0,d.useInstanceId)(e);if(!Uo.Children.count(n))return null;const l=`components-menu-group-label-${s}`,u=c()(o,"components-menu-group",{"has-hidden-separator":a});return(0,r.createElement)("div",{className:u},i&&(0,r.createElement)("div",{className:"components-menu-group__label",id:l,"aria-hidden":"true"},i),(0,r.createElement)("div",{role:"group","aria-labelledby":i?l:void 0},n))};const hO=(0,Uo.forwardRef)((function(e,t){let{children:n,info:o,className:i,icon:a,iconPosition:s="right",shortcut:l,isSelected:u,role:d="menuitem",suffix:f,...m}=e;return i=c()("components-menu-item__button",i),o&&(n=(0,r.createElement)("span",{className:"components-menu-item__info-wrapper"},(0,r.createElement)("span",{className:"components-menu-item__item"},n),(0,r.createElement)("span",{className:"components-menu-item__info"},o))),a&&"string"!=typeof a&&(a=(0,Uo.cloneElement)(a,{className:c()("components-menu-items__item-icon",{"has-icon-right":"right"===s})})),(0,r.createElement)(my,{ref:t,"aria-checked":"menuitemcheckbox"===d||"menuitemradio"===d?u:void 0,role:d,icon:"left"===s?a:void 0,className:i,...m},(0,r.createElement)("span",{className:"components-menu-item__item"},n),!f&&(0,r.createElement)(Yo,{className:"components-menu-item__shortcut",shortcut:l}),!f&&a&&"right"===s&&(0,r.createElement)(uy,{icon:a}),f)})),gO=hO,vO=()=>{};const bO=function({choices:e=[],onHover:t=vO,onSelect:n,value:o}){return(0,r.createElement)(r.Fragment,null,e.map((e=>{const i=o===e.value;return(0,r.createElement)(gO,{key:e.value,role:"menuitemradio",disabled:e.disabled,icon:i?DS:null,info:e.info,isSelected:i,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:()=>{i||n(e.value)},onMouseEnter:()=>t(e.value),onMouseLeave:()=>t(null),"aria-label":e["aria-label"]},e.label)})))};const yO=(0,Uo.forwardRef)((function({eventToOffset:e,...t},n){return(0,r.createElement)(qT,{ref:n,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:t=>{const{code:n,shiftKey:r}=t;return"Tab"===n?r?-1:1:e?e(t):void 0},...t})})),xO="root",wO=100,EO=()=>{},_O=()=>{},SO=(0,Uo.createContext)({activeItem:void 0,activeMenu:xO,setActiveMenu:EO,navigationTree:{items:{},getItem:_O,addItem:EO,removeItem:EO,menus:{},getMenu:_O,addMenu:EO,removeMenu:EO,childMenu:{},traverseMenu:EO,isMenuEmpty:()=>!1}}),CO=()=>(0,Uo.useContext)(SO);const kO=bs("div",{target:"eeiismy11"})("width:100%;box-sizing:border-box;padding:0 ",Ah(4),";overflow:hidden;"),PO=bs("div",{target:"eeiismy10"})("margin-top:",Ah(6),";margin-bottom:",Ah(6),";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:",Ah(6),";}.components-navigation__group+.components-navigation__group{margin-top:",Ah(6),";}"),TO=bs(my,{target:"eeiismy9"})({name:"26l0q2",styles:"&.is-tertiary{color:inherit;opacity:0.7;&:hover:not( :disabled ){opacity:1;box-shadow:none;color:inherit;}&:active:not( :disabled ){background:transparent;opacity:1;color:inherit;}}"}),IO=bs("div",{target:"eeiismy8"})({name:"1aubja5",styles:"overflow:hidden;width:100%"}),RO=bs("div",{target:"eeiismy7"})({name:"rgorny",styles:"margin:11px 0;padding:1px"}),MO=bs("span",{target:"eeiismy6"})("height:",Ah(6),";.components-button.is-small{color:inherit;opacity:0.7;margin-right:",Ah(1),";padding:0;&:active:not( :disabled ){background:none;opacity:1;color:inherit;}&:hover:not( :disabled ){box-shadow:none;opacity:1;color:inherit;}}"),NO=bs($S,{target:"eeiismy5"})("min-height:",Ah(12),";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:",Ah(2),";padding:",(()=>(0,u.isRTL)()?`${Ah(1)} ${Ah(4)} ${Ah(1)} ${Ah(2)}`:`${Ah(1)} ${Ah(2)} ${Ah(1)} ${Ah(4)}`),";"),DO=bs("li",{target:"eeiismy4"})("border-radius:2px;color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:",Ah(2)," ",Ah(4),";",Jh({textAlign:"left"},{textAlign:"right"})," &:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:inherit;opacity:1;}}&.is-active{background-color:",Ds.theme.accent,";color:",Ds.white,";>button,>a{color:",Ds.white,";opacity:1;}}>svg path{color:",Ds.gray[600],";}"),AO=bs("div",{target:"eeiismy3"})("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:",Ah(1.5)," ",Ah(4),";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;"),OO=bs("span",{target:"eeiismy2"})("display:flex;margin-right:",Ah(2),";"),zO=bs("span",{target:"eeiismy1"})("margin-left:",(()=>(0,u.isRTL)()?"0":Ah(2)),";margin-right:",(()=>(0,u.isRTL)()?Ah(2):"0"),";display:inline-flex;padding:",Ah(1)," ",Ah(3),";border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",As("animation"),";"),LO=bs(mv,{target:"eeiismy0"})((()=>(0,u.isRTL)()?"margin-left: auto;":"margin-right: auto;")," font-size:14px;line-height:20px;color:inherit;");function FO(){const[e,t]=(0,Uo.useState)({});return{nodes:e,getNode:t=>e[t],addNode:(e,n)=>{const{children:r,...o}=n;return t((t=>({...t,[e]:o})))},removeNode:e=>t((t=>{const{[e]:n,...r}=t;return r}))}}const BO=()=>{};const jO=function({activeItem:e,activeMenu:t=xO,children:n,className:o,onActivateMenu:i=BO}){const[a,s]=(0,Uo.useState)(t),[l,d]=(0,Uo.useState)(),f=(()=>{const{nodes:e,getNode:t,addNode:n,removeNode:r}=FO(),{nodes:o,getNode:i,addNode:a,removeNode:s}=FO(),[l,c]=(0,Uo.useState)({}),u=e=>l[e]||[],d=(e,t)=>{const n=[];let r,o=[e];for(;o.length>0&&(r=i(o.shift()),!r||n.includes(r.menu)||(n.push(r.menu),o=[...o,...u(r.menu)],!1!==t(r))););};return{items:e,getItem:t,addItem:n,removeItem:r,menus:o,getMenu:i,addMenu:(e,t)=>{c((n=>{const r={...n};return t.parentMenu?(r[t.parentMenu]||(r[t.parentMenu]=[]),r[t.parentMenu].push(e),r):r})),a(e,t)},removeMenu:s,childMenu:l,traverseMenu:d,isMenuEmpty:e=>{let t=!0;return d(e,(e=>{if(!e.isEmpty)return t=!1,!1})),t}}})(),m=(0,u.isRTL)()?"right":"left",p=(e,t=m)=>{f.getMenu(e)&&(d(t),s(e),i(e))},h=(0,Uo.useRef)(!1);(0,Uo.useEffect)((()=>{h.current||(h.current=!0)}),[]),(0,Uo.useEffect)((()=>{t!==a&&p(t)}),[t]);const g={activeItem:e,activeMenu:a,setActiveMenu:p,navigationTree:f},v=c()("components-navigation",o),b=gl({type:"slide-in",origin:l});return(0,r.createElement)(kO,{className:v},(0,r.createElement)("div",{key:a,className:b?c()({[b]:h.current&&l}):void 0},(0,r.createElement)(SO.Provider,{value:g},n)))},VO=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),HO=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));const $O=(0,Uo.forwardRef)((function({backButtonLabel:e,className:t,href:n,onClick:o,parentMenu:i},a){const{setActiveMenu:s,navigationTree:l}=CO(),d=c()("components-navigation__back-button",t),f=void 0!==i?l.getMenu(i)?.title:void 0,m=(0,u.isRTL)()?VO:HO;return(0,r.createElement)(TO,{className:d,href:n,variant:"tertiary",ref:a,onClick:e=>{"function"==typeof o&&o(e);const t=(0,u.isRTL)()?"left":"right";i&&!e.defaultPrevented&&s(i,t)}},(0,r.createElement)($E,{icon:m}),e||f||(0,u.__)("Back"))})),WO=$O,UO=(0,Uo.createContext)({group:void 0});let GO=0;const qO=function({children:e,className:t,title:n}){const[o]=(0,Uo.useState)("group-"+ ++GO),{navigationTree:{items:i}}=CO(),a={group:o};if(!Object.values(i).some((e=>e.group===o&&e._isVisible)))return(0,r.createElement)(UO.Provider,{value:a},e);const s=`components-navigation__group-title-${o}`,l=c()("components-navigation__group",t);return(0,r.createElement)(UO.Provider,{value:a},(0,r.createElement)("li",{className:l},n&&(0,r.createElement)(NO,{className:"components-navigation__group-title",id:s,level:3},n),(0,r.createElement)("ul",{"aria-labelledby":s,role:"group"},e)))};function YO(e){const{badge:t,title:n}=e;return(0,r.createElement)(r.Fragment,null,n&&(0,r.createElement)(LO,{className:"components-navigation__item-title",as:"span"},n),t&&(0,r.createElement)(zO,{className:"components-navigation__item-badge"},t))}const KO=(0,Uo.createContext)({menu:void 0,search:""}),XO=()=>(0,Uo.useContext)(KO),ZO=e=>Fy()(e).replace(/^\//,"").toLowerCase(),JO=(e,t)=>{const{activeMenu:n,navigationTree:{addItem:r,removeItem:o}}=CO(),{group:i}=(0,Uo.useContext)(UO),{menu:a,search:s}=XO();(0,Uo.useEffect)((()=>{const l=n===a,c=!s||void 0!==t.title&&((e,t)=>-1!==ZO(e).indexOf(ZO(t)))(t.title,s);return r(e,{...t,group:i,menu:a,_isVisible:l&&c}),()=>{o(e)}}),[n,s])};let QO=0;function ez(e){const{children:t,className:n,title:o,href:i,...a}=e,[s]=(0,Uo.useState)("item-"+ ++QO);JO(s,e);const{navigationTree:l}=CO();if(!l.getItem(s)?._isVisible)return null;const u=c()("components-navigation__item",n);return(0,r.createElement)(DO,{className:u,...a},t)}const tz=()=>{};const nz=function(e){const{badge:t,children:n,className:o,href:i,item:a,navigateToMenu:s,onClick:l=tz,title:d,icon:f,hideIfTargetMenuEmpty:m,isText:p,...h}=e,{activeItem:g,setActiveMenu:v,navigationTree:{isMenuEmpty:b}}=CO();if(m&&s&&b(s))return null;const y=a&&g===a,x=c()(o,{"is-active":y}),w=(0,u.isRTL)()?HO:VO,E=n?e:{...e,onClick:void 0},_=p?h:{as:my,href:i,onClick:e=>{s&&v(s),l(e)},"aria-current":y?"page":void 0,...h};return(0,r.createElement)(ez,{...E,className:x},n||(0,r.createElement)(AO,{..._},f&&(0,r.createElement)(OO,null,(0,r.createElement)($E,{icon:f})),(0,r.createElement)(YO,{title:d,badge:t}),s&&(0,r.createElement)($E,{icon:w})))},rz=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})),oz=(0,d.createHigherOrderComponent)((e=>t=>(0,r.createElement)(e,{...t,speak:jy.speak,debouncedSpeak:(0,d.useDebounce)(jy.speak,500)})),"withSpokenMessages"),iz=bs("div",{target:"effl84m1"})("display:flex;padding-inline-end:",(({size:e})=>Ah("compact"===e?1:2)),";svg{fill:currentColor;}"),az=bs(ly,{target:"effl84m0"})("input[type='search']{&::-webkit-search-decoration,&::-webkit-search-cancel-button,&::-webkit-search-results-button,&::-webkit-search-results-decoration{-webkit-appearance:none;}}&:not( :focus-within ){--wp-components-color-background:",Ds.theme.gray[100],";}");function sz({searchRef:e,value:t,onChange:n,onClose:o}){if(!o&&!t)return(0,r.createElement)($E,{icon:rz});return(0,r.createElement)(my,{size:"small",icon:zw,label:o?(0,u.__)("Close search"):(0,u.__)("Reset search"),onClick:null!=o?o:()=>{n(""),e.current?.focus()}})}const lz=(0,Uo.forwardRef)((function({__nextHasNoMarginBottom:e=!1,className:t,onChange:n,value:o,label:i=(0,u.__)("Search"),placeholder:a=(0,u.__)("Search"),hideLabelFromVision:s=!0,onClose:l,size:f="default",...m},p){delete m.disabled;const h=(0,Uo.useRef)(null),g=(0,d.useInstanceId)(lz,"components-search-control"),v=(0,Uo.useMemo)((()=>({BaseControl:{_overrides:{__nextHasNoMarginBottom:e}},InputBase:{isBorderless:!0}})),[e]);return(0,r.createElement)(mi,{value:v},(0,r.createElement)(az,{__next40pxDefaultSize:!0,id:g,hideLabelFromVision:s,label:i,ref:(0,d.useMergeRefs)([h,p]),type:"search",size:f,className:c()("components-search-control",t),onChange:e=>n(null!=e?e:""),autoComplete:"off",placeholder:a,value:null!=o?o:"",suffix:(0,r.createElement)(iz,{size:f},(0,r.createElement)(sz,{searchRef:h,value:o,onChange:n,onClose:l})),...m}))})),cz=lz;const uz=oz((function({debouncedSpeak:e,onCloseSearch:t,onSearch:n,search:o,title:i}){const{navigationTree:{items:a}}=CO(),{menu:s}=XO(),l=(0,Uo.useRef)(null);(0,Uo.useEffect)((()=>{const e=setTimeout((()=>{l.current?.focus()}),wO);return()=>{clearTimeout(e)}}),[]),(0,Uo.useEffect)((()=>{if(!o)return;const t=Object.values(a).filter((e=>e._isVisible)).length,n=(0,u.sprintf)((0,u._n)("%d result found.","%d results found.",t),t);e(n)}),[a,o]);const c=()=>{n?.(""),t()},d=`components-navigation__menu-title-search-${s}`,f=(0,u.sprintf)((0,u.__)("Search %s"),i?.toLowerCase()).trim();return(0,r.createElement)(RO,null,(0,r.createElement)(cz,{__nextHasNoMarginBottom:!0,className:"components-navigation__menu-search-input",id:d,onChange:e=>n?.(e),onKeyDown:e=>{"Escape"!==e.code||e.defaultPrevented||(e.preventDefault(),c())},placeholder:f,onClose:c,ref:l,value:o}))}));function dz({hasSearch:e,onSearch:t,search:n,title:o,titleAction:i}){const[a,s]=(0,Uo.useState)(!1),{menu:l}=XO(),c=(0,Uo.useRef)(null);if(!o)return null;const d=`components-navigation__menu-title-${l}`,f=(0,u.sprintf)((0,u.__)("Search in %s"),o);return(0,r.createElement)(IO,{className:"components-navigation__menu-title"},!a&&(0,r.createElement)(NO,{as:"h2",className:"components-navigation__menu-title-heading",level:3},(0,r.createElement)("span",{id:d},o),(e||i)&&(0,r.createElement)(MO,null,i,e&&(0,r.createElement)(my,{size:"small",variant:"tertiary",label:f,onClick:()=>s(!0),ref:c},(0,r.createElement)($E,{icon:rz})))),a&&(0,r.createElement)("div",{className:gl({type:"slide-in",origin:"left"})},(0,r.createElement)(uz,{onCloseSearch:()=>{s(!1),setTimeout((()=>{c.current?.focus()}),wO)},onSearch:t,search:n,title:o})))}function fz({search:e}){const{navigationTree:{items:t}}=CO(),n=Object.values(t).filter((e=>e._isVisible)).length;return!e||n?null:(0,r.createElement)(DO,null,(0,r.createElement)(AO,null,(0,u.__)("No results found.")," "))}const mz=function(e){const{backButtonLabel:t,children:n,className:o,hasSearch:i,menu:a=xO,onBackButtonClick:s,onSearch:l,parentMenu:u,search:d,isSearchDebouncing:f,title:m,titleAction:p}=e,[h,g]=(0,Uo.useState)("");(e=>{const{navigationTree:{addMenu:t,removeMenu:n}}=CO(),r=e.menu||xO;(0,Uo.useEffect)((()=>(t(r,{...e,menu:r}),()=>{n(r)})),[])})(e);const{activeMenu:v}=CO(),b={menu:a,search:h};if(v!==a)return(0,r.createElement)(KO.Provider,{value:b},n);const y=!!l,x=y?d:h,w=y?l:g,E=`components-navigation__menu-title-${a}`,_=c()("components-navigation__menu",o);return(0,r.createElement)(KO.Provider,{value:b},(0,r.createElement)(PO,{className:_},(u||s)&&(0,r.createElement)(WO,{backButtonLabel:t,parentMenu:u,onClick:s}),m&&(0,r.createElement)(dz,{hasSearch:i,onSearch:w,search:x,title:m,titleAction:p}),(0,r.createElement)(KT,null,(0,r.createElement)("ul",{"aria-labelledby":E},n,x&&!f&&(0,r.createElement)(fz,{search:x})))))};function pz(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));i+=e[s++]}else i+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:i}),n=s}else{for(var a="",s=n+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,i="[^".concat(gz(t.delimiter||"/#?"),"]+?"),a=[],s=0,l=0,c="",u=function(e){if(l<n.length&&n[l].type===e)return n[l++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var r=n[l],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(e))},f=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};l<n.length;){var m=u("CHAR"),p=u("NAME"),h=u("PATTERN");if(p||h){var g=m||"";-1===o.indexOf(g)&&(c+=g,g=""),c&&(a.push(c),c=""),a.push({name:p||s++,prefix:g,suffix:"",pattern:h||i,modifier:u("MODIFIER")||""})}else{var v=m||u("ESCAPED_CHAR");if(v)c+=v;else if(c&&(a.push(c),c=""),u("OPEN")){g=f();var b=u("NAME")||"",y=u("PATTERN")||"",x=f();d("CLOSE"),a.push({name:b||(y?s++:""),pattern:b&&!y?i:y,prefix:g,suffix:x,modifier:u("MODIFIER")||""})}else d("END")}}return a}function hz(e,t){var n=[];return function(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var i=r[0],a=r.index,s=Object.create(null),l=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?s[n.name]=r[e].split(n.prefix+n.suffix).map((function(e){return o(e,n)})):s[n.name]=o(r[e],n)},c=1;c<r.length;c++)l(c);return{path:i,index:a,params:s}}}(yz(e,n,t),n,t)}function gz(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function vz(e){return e&&e.sensitive?"":"i"}function bz(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,i=n.start,a=void 0===i||i,s=n.end,l=void 0===s||s,c=n.encode,u=void 0===c?function(e){return e}:c,d=n.delimiter,f=void 0===d?"/#?":d,m=n.endsWith,p="[".concat(gz(void 0===m?"":m),"]|$"),h="[".concat(gz(f),"]"),g=a?"^":"",v=0,b=e;v<b.length;v++){var y=b[v];if("string"==typeof y)g+=gz(u(y));else{var x=gz(u(y.prefix)),w=gz(u(y.suffix));if(y.pattern)if(t&&t.push(y),x||w)if("+"===y.modifier||"*"===y.modifier){var E="*"===y.modifier?"?":"";g+="(?:".concat(x,"((?:").concat(y.pattern,")(?:").concat(w).concat(x,"(?:").concat(y.pattern,"))*)").concat(w,")").concat(E)}else g+="(?:".concat(x,"(").concat(y.pattern,")").concat(w,")").concat(y.modifier);else"+"===y.modifier||"*"===y.modifier?g+="((?:".concat(y.pattern,")").concat(y.modifier,")"):g+="(".concat(y.pattern,")").concat(y.modifier);else g+="(?:".concat(x).concat(w,")").concat(y.modifier)}}if(l)o||(g+="".concat(h,"?")),g+=n.endsWith?"(?=".concat(p,")"):"$";else{var _=e[e.length-1],S="string"==typeof _?h.indexOf(_[_.length-1])>-1:void 0===_;o||(g+="(?:".concat(h,"(?=").concat(p,"))?")),S||(g+="(?=".concat(h,"|").concat(p,")"))}return new RegExp(g,vz(n))}(pz(e,n),t,n)}function yz(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return yz(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),vz(n))}(e,t,n):bz(e,t,n)}function xz(e,t){return hz(t,{decode:decodeURIComponent})(e)}const wz=(0,Uo.createContext)({location:{},goTo:()=>{},goBack:()=>{},goToParent:()=>{},addScreen:()=>{},removeScreen:()=>{},params:{}});const Ez={name:"xpkswc",styles:"overflow-x:hidden;contain:content"},_z=Ts({"0%":{opacity:0,transform:"translateX( 50px )"},"100%":{opacity:1,transform:"none"}}),Sz=Ts({"0%":{opacity:0,transform:"translateX( -50px )"},"100%":{opacity:1,transform:"none"}}),Cz=e=>Ps("overflow-x:auto;max-height:100%;",(({isInitial:e,isBack:t,isRTL:n})=>{if(e&&!t)return;return Ps("animation-duration:0.14s;animation-timing-function:ease-in-out;will-change:transform,opacity;animation-name:",n&&t||!n&&!t?_z:Sz,";@media ( prefers-reduced-motion ){animation-duration:0s;}","")})(e),";","");function kz(e=[],t){switch(t.type){case"add":return[...e,t.screen];case"remove":return e.filter((e=>e.id!==t.screen.id))}return e}const Pz=os((function(e,t){const{initialPath:n,children:o,className:i,...a}=rs(e,"NavigatorProvider"),[s,l]=(0,Uo.useState)([{path:n}]),c=(0,Uo.useRef)([]),[u,d]=(0,Uo.useReducer)(kz,[]),f=(0,Uo.useRef)([]);(0,Uo.useEffect)((()=>{f.current=u}),[u]),(0,Uo.useEffect)((()=>{c.current=s}),[s]);const m=(0,Uo.useRef)(),p=(0,Uo.useMemo)((()=>{let e;if(0===s.length||void 0===(e=s[s.length-1].path))return void(m.current=void 0);const t=(e=>{const t=function(e,t){for(const n of t){const t=xz(e,n.path);if(t)return{params:t.params,id:n.id}}}(e,u);return m.current&&t&&ow()(t.params,m.current.params)&&t.id===m.current.id?m.current:t})(e);return m.current=t,t}),[u,s]),h=(0,Uo.useCallback)((e=>d({type:"add",screen:e})),[]),g=(0,Uo.useCallback)((e=>d({type:"remove",screen:e})),[]),v=(0,Uo.useCallback)((()=>{l((e=>e.length<=1?e:[...e.slice(0,-2),{...e[e.length-2],isBack:!0,hasRestoredFocus:!1}]))}),[]),b=(0,Uo.useCallback)(((e,t={})=>{const{focusTargetSelector:n,isBack:r=!1,skipFocus:o=!1,replace:i=!1,...a}=t;r&&c.current.length>1&&c.current[c.current.length-2].path===e?v():l((t=>{const s={...a,path:e,isBack:r,hasRestoredFocus:!1,skipFocus:o};if(0===t.length)return i?[]:[s];const l=t.slice(t.length>49?1:0,-1);return i||l.push({...t[t.length-1],focusTargetSelector:n}),l.push(s),l}))}),[v]),y=(0,Uo.useCallback)(((e={})=>{const t=c.current[c.current.length-1].path;if(void 0===t)return;const n=function(e,t){if(!e.startsWith("/"))return;const n=e.split("/");let r;for(;n.length>1&&void 0===r;){n.pop();const e=""===n.join("/")?"/":n.join("/");t.find((t=>!1!==xz(e,t.path)))&&(r=e)}return r}(t,f.current);void 0!==n&&b(n,{...e,isBack:!0})}),[b]),x=(0,Uo.useMemo)((()=>({location:{...s[s.length-1],isInitial:1===s.length},params:p?p.params:{},match:p?p.id:void 0,goTo:b,goBack:v,goToParent:y,addScreen:h,removeScreen:g})),[s,p,b,v,y,h,g]),w=ns(),E=(0,Uo.useMemo)((()=>w(Ez,i)),[i,w]);return(0,r.createElement)(xs,{ref:t,className:E,...a},(0,r.createElement)(wz.Provider,{value:x},o))}),"NavigatorProvider"),Tz=Pz,Iz=window.wp.escapeHtml;const Rz=os((function(e,t){const n=(0,Uo.useId)(),{children:o,className:i,path:a,...s}=rs(e,"NavigatorScreen"),{location:l,match:c,addScreen:f,removeScreen:m}=(0,Uo.useContext)(wz),p=c===n,h=(0,Uo.useRef)(null);(0,Uo.useEffect)((()=>{const e={id:n,path:(0,Iz.escapeAttribute)(a)};return f(e),()=>m(e)}),[n,a,f,m]);const g=(0,u.isRTL)(),{isInitial:v,isBack:b}=l,y=ns(),x=(0,Uo.useMemo)((()=>y(Cz({isInitial:v,isBack:b,isRTL:g}),i)),[i,y,v,b,g]),w=(0,Uo.useRef)(l);(0,Uo.useEffect)((()=>{w.current=l}),[l]);const E=l.isInitial&&!l.isBack;(0,Uo.useEffect)((()=>{if(E||!p||!h.current||w.current.hasRestoredFocus||l.skipFocus)return;const e=h.current.ownerDocument.activeElement;if(h.current.contains(e))return;let t=null;if(l.isBack&&l?.focusTargetSelector&&(t=h.current.querySelector(l.focusTargetSelector)),!t){const e=HT.focus.tabbable.find(h.current)[0];t=null!=e?e:h.current}w.current.hasRestoredFocus=!0,t.focus()}),[E,p,l.isBack,l.focusTargetSelector,l.skipFocus]);const _=(0,d.useMergeRefs)([t,h]);return p?(0,r.createElement)(xs,{ref:_,className:x,...s},o):null}),"NavigatorScreen"),Mz=Rz;const Nz=function(){const{location:e,params:t,goTo:n,goBack:r,goToParent:o}=(0,Uo.useContext)(wz);return{location:e,goTo:n,goBack:r,goToParent:o,params:t}},Dz=(e,t)=>`[${e}="${t}"]`;const Az=os((function(e,t){const n=function(e){const{path:t,onClick:n,as:r=my,attributeName:o="id",...i}=rs(e,"NavigatorButton"),a=(0,Iz.escapeAttribute)(t),{goTo:s}=Nz();return{as:r,onClick:(0,Uo.useCallback)((e=>{e.preventDefault(),s(a,{focusTargetSelector:Dz(o,a)}),n?.(e)}),[s,n,o,a]),...i,[o]:a}}(e);return(0,r.createElement)(xs,{ref:t,...n})}),"NavigatorButton");function Oz(e){const{onClick:t,as:n=my,goToParent:r=!1,...o}=rs(e,"NavigatorBackButton"),{goBack:i,goToParent:a}=Nz();return{as:n,onClick:(0,Uo.useCallback)((e=>{e.preventDefault(),r?a():i(),t?.(e)}),[r,a,i,t]),...o}}const zz=os((function(e,t){const n=Oz(e);return(0,r.createElement)(xs,{ref:t,...n})}),"NavigatorBackButton");const Lz=os((function(e,t){const n=Oz({...e,goToParent:!0});return(0,r.createElement)(xs,{ref:t,...n})}),"NavigatorToParentButton"),Fz=()=>{};function Bz(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}const jz=function({className:e,status:t="info",children:n,spokenMessage:o=n,onRemove:i=Fz,isDismissible:a=!0,actions:s=[],politeness:l=Bz(t),__unstableHTML:d,onDismiss:f=Fz}){!function(e,t){const n="string"==typeof e?e:(0,Uo.renderToString)(e);(0,Uo.useEffect)((()=>{n&&(0,jy.speak)(n,t)}),[n,t])}(o,l);const m=c()(e,"components-notice","is-"+t,{"is-dismissible":a});return d&&"string"==typeof n&&(n=(0,r.createElement)(Uo.RawHTML,null,n)),(0,r.createElement)("div",{className:m},(0,r.createElement)(ws,null,function(e){switch(e){case"warning":return(0,u.__)("Warning notice");case"info":return(0,u.__)("Information notice");case"error":return(0,u.__)("Error notice");default:return(0,u.__)("Notice")}}(t)),(0,r.createElement)("div",{className:"components-notice__content"},n,(0,r.createElement)("div",{className:"components-notice__actions"},s.map((({className:e,label:t,isPrimary:n,variant:o,noDefaultClasses:i=!1,onClick:a,url:s},l)=>{let u=o;return"primary"===o||i||(u=s?"link":"secondary"),void 0===u&&n&&(u="primary"),(0,r.createElement)(my,{key:l,href:s,variant:u,onClick:s?void 0:a,className:c()("components-notice__action",e)},t)})))),a&&(0,r.createElement)(my,{className:"components-notice__dismiss",icon:ex,label:(0,u.__)("Close"),onClick:()=>{f(),i()}}))},Vz=()=>{};const Hz=function({notices:e,onRemove:t=Vz,className:n,children:o}){const i=e=>()=>t(e);return n=c()("components-notice-list",n),(0,r.createElement)("div",{className:n},o,[...e].reverse().map((e=>{const{content:t,...n}=e;return(0,r.createElement)(jz,{...n,key:e.id,onRemove:i(e.id)},e.content)})))};const $z=function({label:e,children:t}){return(0,r.createElement)("div",{className:"components-panel__header"},e&&(0,r.createElement)("h2",null,e),t)};const Wz=(0,Uo.forwardRef)((function({header:e,className:t,children:n},o){const i=c()(t,"components-panel");return(0,r.createElement)("div",{className:i,ref:o},e&&(0,r.createElement)($z,{label:e}),n)})),Uz=(0,r.createElement)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(n.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),Gz=()=>{};const qz=(0,Uo.forwardRef)((({isOpened:e,icon:t,title:n,...o},i)=>n?(0,r.createElement)("h2",{className:"components-panel__body-title"},(0,r.createElement)(my,{className:"components-panel__body-toggle","aria-expanded":e,ref:i,...o},(0,r.createElement)("span",{"aria-hidden":"true"},(0,r.createElement)(uy,{className:"components-panel__arrow",icon:e?Uz:WE})),n,t&&(0,r.createElement)(uy,{icon:t,className:"components-panel__icon",size:20}))):null)),Yz=(0,Uo.forwardRef)((function(e,t){const{buttonProps:n={},children:o,className:i,icon:a,initialOpen:s,onToggle:l=Gz,opened:u,title:f,scrollAfterOpen:m=!0}=e,[p,h]=XE(u,{initial:void 0===s||s,fallback:!1}),g=(0,Uo.useRef)(null),v=(0,d.useReducedMotion)()?"auto":"smooth",b=(0,Uo.useRef)();b.current=m,ui((()=>{p&&b.current&&g.current?.scrollIntoView&&g.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:v})}),[p,v]);const y=c()("components-panel__body",i,{"is-opened":p});return(0,r.createElement)("div",{className:y,ref:(0,d.useMergeRefs)([g,t])},(0,r.createElement)(qz,{icon:a,isOpened:Boolean(p),onClick:e=>{e.preventDefault();const t=!p;h(t),l(t)},title:f,...n}),"function"==typeof o?o({opened:Boolean(p)}):p&&o)})),Kz=Yz;const Xz=(0,Uo.forwardRef)((function({className:e,children:t},n){return(0,r.createElement)("div",{className:c()("components-panel__row",e),ref:n},t)})),Zz=(0,r.createElement)(n.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none"},(0,r.createElement)(n.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"}));const Jz=function(e){const{icon:t,children:n,label:o,instructions:i,className:a,notices:s,preview:l,isColumnLayout:u,withIllustration:f,...m}=e,[p,{width:h}]=(0,d.useResizeObserver)();let g;"number"==typeof h&&(g={"is-large":h>=480,"is-medium":h>=160&&h<480,"is-small":h<160});const v=c()("components-placeholder",a,g,f?"has-illustration":null),b=c()("components-placeholder__fieldset",{"is-column-layout":u});return(0,Uo.useEffect)((()=>{i&&(0,jy.speak)(i)}),[i]),(0,r.createElement)("div",{...m,className:v},f?Zz:null,p,s,l&&(0,r.createElement)("div",{className:"components-placeholder__preview"},l),(0,r.createElement)("div",{className:"components-placeholder__label"},(0,r.createElement)(uy,{icon:t}),o),!!i&&(0,r.createElement)("div",{className:"components-placeholder__instructions"},i),(0,r.createElement)("div",{className:b},n))},Qz=e=>e.every((e=>null!==e.parent));function eL(e){const t=e.map((e=>({children:[],parent:null,...e,id:String(e.id)})));if(!Qz(t))return t;const n=t.reduce(((e,t)=>{const{parent:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{}),r=e=>e.map((e=>{const t=n[e.id];return{...e,children:t&&t.length?r(t):[]}}));return r(n[0]||[])}const tL=window.wp.htmlEntities;function nL(e,t=0){return e.flatMap((e=>[{value:e.id,label:" ".repeat(3*t)+(0,tL.decodeEntities)(e.name)},...nL(e.children||[],t+1)]))}const rL=function(e){const{label:t,noOptionLabel:n,onChange:o,selectedId:i,tree:a=[],...s}=Nv(e),l=(0,Uo.useMemo)((()=>[n&&{value:"",label:n},...nL(a)].filter((e=>!!e))),[n,a]);return(0,r.createElement)(qE,{label:t,options:l,onChange:o,value:i,...s})};function oL({__next40pxDefaultSize:e,label:t,noOptionLabel:n,authorList:o,selectedAuthorId:i,onChange:a}){if(!o)return null;const s=eL(o);return(0,r.createElement)(rL,{label:t,noOptionLabel:n,onChange:a,tree:s,selectedId:void 0!==i?String(i):void 0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e})}function iL({__next40pxDefaultSize:e,label:t,noOptionLabel:n,categoriesList:o,selectedCategoryId:i,onChange:a,...s}){const l=(0,Uo.useMemo)((()=>eL(o)),[o]);return(0,r.createElement)(rL,{label:t,noOptionLabel:n,onChange:a,tree:l,selectedId:void 0!==i?String(i):void 0,...s,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e})}function aL(e){return"categoriesList"in e}function sL(e){return"categorySuggestions"in e}const lL=function({__next40pxDefaultSize:e=!1,authorList:t,selectedAuthorId:n,numberOfItems:o,order:i,orderBy:a,maxItems:s=100,minItems:l=1,onAuthorChange:c,onNumberOfItemsChange:d,onOrderChange:f,onOrderByChange:m,...p}){return(0,r.createElement)(jS,{spacing:"4",className:"components-query-controls"},[f&&m&&(0,r.createElement)(YE,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,key:"query-controls-order-select",label:(0,u.__)("Order by"),value:`${a}/${i}`,options:[{label:(0,u.__)("Newest to oldest"),value:"date/desc"},{label:(0,u.__)("Oldest to newest"),value:"date/asc"},{label:(0,u.__)("A → Z"),value:"title/asc"},{label:(0,u.__)("Z → A"),value:"title/desc"}],onChange:e=>{if("string"!=typeof e)return;const[t,n]=e.split("/");n!==i&&f(n),t!==a&&m(t)}}),aL(p)&&p.categoriesList&&p.onCategoryChange&&(0,r.createElement)(iL,{__next40pxDefaultSize:e,key:"query-controls-category-select",categoriesList:p.categoriesList,label:(0,u.__)("Category"),noOptionLabel:(0,u._x)("All","categories"),selectedCategoryId:p.selectedCategoryId,onChange:p.onCategoryChange}),sL(p)&&p.categorySuggestions&&p.onCategoryChange&&(0,r.createElement)(rO,{__next40pxDefaultSize:e,__nextHasNoMarginBottom:!0,key:"query-controls-categories-select",label:(0,u.__)("Categories"),value:p.selectedCategories&&p.selectedCategories.map((e=>({id:e.id,value:e.name||e.value}))),suggestions:Object.keys(p.categorySuggestions),onChange:p.onCategoryChange,maxSuggestions:20}),c&&(0,r.createElement)(oL,{__next40pxDefaultSize:e,key:"query-controls-author-select",authorList:t,label:(0,u.__)("Author"),noOptionLabel:(0,u._x)("All","authors"),selectedAuthorId:n,onChange:c}),d&&(0,r.createElement)(k_,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,key:"query-controls-range-control",label:(0,u.__)("Number of items"),value:o,onChange:d,min:l,max:s,required:!0})])},cL=(0,Uo.createContext)({store:void 0,disabled:void 0});const uL=(0,Uo.forwardRef)((function({value:e,children:t,...n},o){const{store:i,disabled:a}=(0,Uo.useContext)(cL),s=i?.useState("value"),l=void 0!==s&&s===e;return(0,r.createElement)(pE,{disabled:a,store:i,ref:o,value:e,render:(0,r.createElement)(my,{variant:l?"primary":"secondary",...n})},t||e)})),dL=uL;const fL=(0,Uo.forwardRef)((function({label:e,checked:t,defaultChecked:n,disabled:o,onChange:i,children:a,...s},l){const c=Jw({value:t,defaultValue:n,setValue:e=>{i?.(null!=e?e:void 0)}}),u=(0,Uo.useMemo)((()=>({store:c,disabled:o})),[c,o]);return(0,r.createElement)(cL.Provider,{value:u},(0,r.createElement)(oE,{store:c,render:(0,r.createElement)(Ok,null,a),"aria-label":e,ref:l,...s}))})),mL=fL;const pL=function e(t){const{label:n,className:o,selected:i,help:a,onChange:s,hideLabelFromVision:l,options:u=[],...f}=t,m=`inspector-radio-control-${(0,d.useInstanceId)(e)}`,p=e=>s(e.target.value);return u?.length?(0,r.createElement)(iy,{__nextHasNoMarginBottom:!0,label:n,id:m,hideLabelFromVision:l,help:a,className:c()(o,"components-radio-control")},(0,r.createElement)(jS,{spacing:1},u.map(((e,t)=>(0,r.createElement)("div",{key:`${m}-${t}`,className:"components-radio-control__option"},(0,r.createElement)("input",{id:`${m}-${t}`,className:"components-radio-control__input",type:"radio",name:m,value:e.value,onChange:p,checked:e.value===i,"aria-describedby":a?`${m}__help`:void 0,...f}),(0,r.createElement)("label",{className:"components-radio-control__label",htmlFor:`${m}-${t}`},e.label)))))):null};var hL=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gL=function(){return gL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},gL.apply(this,arguments)},vL={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},bL={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},yL={width:"20px",height:"20px",position:"absolute"},xL={top:gL(gL({},vL),{top:"-5px"}),right:gL(gL({},bL),{left:void 0,right:"-5px"}),bottom:gL(gL({},vL),{top:void 0,bottom:"-5px"}),left:gL(gL({},bL),{left:"-5px"}),topRight:gL(gL({},yL),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:gL(gL({},yL),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:gL(gL({},yL),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:gL(gL({},yL),{left:"-10px",top:"-10px",cursor:"nw-resize"})},wL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return hL(t,e),t.prototype.render=function(){return r.createElement("div",{className:this.props.className||"",style:gL(gL({position:"absolute",userSelect:"none"},xL[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(r.PureComponent),EL=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_L=function(){return _L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_L.apply(this,arguments)},SL={width:"auto",height:"auto"},CL=function(e,t,n){return Math.max(Math.min(e,n),t)},kL=function(e,t){return Math.round(e/t)*t},PL=function(e,t){return new RegExp(e,"i").test(t)},TL=function(e){return Boolean(e.touches&&e.touches.length)},IL=function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e},RL=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},ML=function(e,t,n,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%"))return t*(Number(e.replace("%",""))/100);if(e.endsWith("vw"))return n*(Number(e.replace("vw",""))/100);if(e.endsWith("vh"))return r*(Number(e.replace("vh",""))/100)}return e},NL=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],DL="__resizable_base__",AL=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(DL):t.className+=DL,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return EL(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||SL},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&e.propsSize[t].toString().endsWith("%")){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return RL(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?RL(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?RL(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,i=this.state.direction,a=o&&PL("left",i),s=o&&PL("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(n=a?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),r=s?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,i=o.direction,a=o.original,s=this.props,l=s.lockAspectRatio,c=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,d=a.width,f=a.height,m=c||0,p=u||0;return PL("right",i)&&(d=a.width+(e-a.x)*r/n,l&&(f=(d-p)/this.ratio+m)),PL("left",i)&&(d=a.width-(e-a.x)*r/n,l&&(f=(d-p)/this.ratio+m)),PL("bottom",i)&&(f=a.height+(t-a.y)*r/n,l&&(d=(f-m)*this.ratio+p)),PL("top",i)&&(f=a.height-(t-a.y)*r/n,l&&(d=(f-m)*this.ratio+p)),{newWidth:d,newHeight:f}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,s=o.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,f=a||0,m=s||0;if(i){var p=(u-f)*this.ratio+m,h=(d-f)*this.ratio+m,g=(l-m)/this.ratio+f,v=(c-m)/this.ratio+f,b=Math.max(l,p),y=Math.min(c,h),x=Math.max(u,g),w=Math.min(d,v);e=CL(e,b,y),t=CL(t,x,w)}else e=CL(e,l,c),t=CL(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top,a=r.right,s=r.bottom;this.resizableLeft=o,this.resizableRight=a,this.resizableTop=i,this.resizableBottom=s}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&TL(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var s=this.window.getComputedStyle(a).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:_L(_L({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&TL(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var n=this.props,r=n.maxWidth,o=n.maxHeight,i=n.minWidth,a=n.minHeight,s=TL(e)?e.touches[0].clientX:e.clientX,l=TL(e)?e.touches[0].clientY:e.clientY,c=this.state,u=c.direction,d=c.original,f=c.width,m=c.height,p=this.getParentSize(),h=function(e,t,n,r,o,i,a){return r=ML(r,e.width,t,n),o=ML(o,e.height,t,n),i=ML(i,e.width,t,n),a=ML(a,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}}(p,this.window.innerWidth,this.window.innerHeight,r,o,i,a);r=h.maxWidth,o=h.maxHeight,i=h.minWidth,a=h.minHeight;var g=this.calculateNewSizeFromDirection(s,l),v=g.newHeight,b=g.newWidth,y=this.calculateNewMaxFromBoundary(r,o);this.props.snap&&this.props.snap.x&&(b=IL(b,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(v=IL(v,this.props.snap.y,this.props.snapGap));var x=this.calculateNewSizeFromAspectRatio(b,v,{width:y.maxWidth,height:y.maxHeight},{width:i,height:a});if(b=x.newWidth,v=x.newHeight,this.props.grid){var w=kL(b,this.props.grid[0]),E=kL(v,this.props.grid[1]),_=this.props.snapGap||0;b=0===_||Math.abs(w-b)<=_?w:b,v=0===_||Math.abs(E-v)<=_?E:v}var S={width:b-d.width,height:v-d.height};if(f&&"string"==typeof f)if(f.endsWith("%"))b=b/p.width*100+"%";else if(f.endsWith("vw")){b=b/this.window.innerWidth*100+"vw"}else if(f.endsWith("vh")){b=b/this.window.innerHeight*100+"vh"}if(m&&"string"==typeof m)if(m.endsWith("%"))v=v/p.height*100+"%";else if(m.endsWith("vw")){v=v/this.window.innerWidth*100+"vw"}else if(m.endsWith("vh")){v=v/this.window.innerHeight*100+"vh"}var C={width:this.createSizeForCssProperty(b,"width"),height:this.createSizeForCssProperty(v,"height")};"row"===this.flexDir?C.flexBasis=C.width:"column"===this.flexDir&&(C.flexBasis=C.height),(0,tr.flushSync)((function(){t.setState(C)})),this.props.onResize&&this.props.onResize(e,u,this.resizable,S)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var i={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:_L(_L({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,o=t.handleStyles,i=t.handleClasses,a=t.handleWrapperStyle,s=t.handleWrapperClass,l=t.handleComponent;if(!n)return null;var c=Object.keys(n).map((function(t){return!1!==n[t]?r.createElement(wL,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:o&&o[t],className:i&&i[t]},l&&l[t]?l[t]:null):null}));return r.createElement("div",{className:s,style:a},c)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==NL.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=_L(_L(_L({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return r.createElement(o,_L({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&r.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(r.PureComponent);const OL=()=>{},zL={bottom:"bottom",corner:"corner"};function LL({axis:e,fadeTimeout:t=180,onResize:n=OL,position:r=zL.bottom,showPx:o=!1}){const[i,a]=(0,d.useResizeObserver)(),s=!!e,[l,c]=(0,Uo.useState)(!1),[u,f]=(0,Uo.useState)(!1),{width:m,height:p}=a,h=(0,Uo.useRef)(p),g=(0,Uo.useRef)(m),v=(0,Uo.useRef)(),b=(0,Uo.useCallback)((()=>{v.current&&window.clearTimeout(v.current),v.current=window.setTimeout((()=>{s||(c(!1),f(!1))}),t)}),[t,s]);(0,Uo.useEffect)((()=>{if(!(null!==m||null!==p))return;const e=m!==g.current,t=p!==h.current;if(e||t){if(m&&!g.current&&p&&!h.current)return g.current=m,void(h.current=p);e&&(c(!0),g.current=m),t&&(f(!0),h.current=p),n({width:m,height:p}),b()}}),[m,p,n,b]);const y=function({axis:e,height:t,moveX:n=!1,moveY:r=!1,position:o=zL.bottom,showPx:i=!1,width:a}){if(!n&&!r)return;if(o===zL.corner)return`${a} x ${t}`;const s=i?" px":"";if(e){if("x"===e&&n)return`${a}${s}`;if("y"===e&&r)return`${t}${s}`}if(n&&r)return`${a} x ${t}`;if(n)return`${a}${s}`;if(r)return`${t}${s}`;return}({axis:e,height:p,moveX:l,moveY:u,position:r,showPx:o,width:m});return{label:y,resizeListener:i}}const FL=bs("div",{target:"e1wq7y4k3"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),BL=bs("div",{target:"e1wq7y4k2"})({name:"ajymcs",styles:"align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear"}),jL=bs("div",{target:"e1wq7y4k1"})("background:",Ds.theme.foreground,";border-radius:2px;box-sizing:border-box;font-family:",Yb("default.fontFamily"),";font-size:12px;color:",Ds.theme.foregroundInverted,";padding:4px 8px;position:relative;"),VL=bs(mv,{target:"e1wq7y4k0"})("&&&{color:",Ds.theme.foregroundInverted,";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}");const HL=(0,Uo.forwardRef)((function({label:e,position:t=zL.corner,zIndex:n=1e3,...o},i){const a=!!e,s=t===zL.bottom,l=t===zL.corner;if(!a)return null;let c={opacity:a?1:void 0,zIndex:n},d={};return s&&(c={...c,position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"},d={transform:"translate(0, 100%)"}),l&&(c={...c,position:"absolute",top:4,right:(0,u.isRTL)()?void 0:4,left:(0,u.isRTL)()?4:void 0}),(0,r.createElement)(BL,{"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:i,style:c,...o},(0,r.createElement)(jL,{className:"components-resizable-tooltip__tooltip",style:d},(0,r.createElement)(VL,{as:"span"},e)))})),$L=HL,WL=()=>{};const UL=(0,Uo.forwardRef)((function({axis:e,className:t,fadeTimeout:n=180,isVisible:o=!0,labelRef:i,onResize:a=WL,position:s=zL.bottom,showPx:l=!0,zIndex:u=1e3,...d},f){const{label:m,resizeListener:p}=LL({axis:e,fadeTimeout:n,onResize:a,showPx:l,position:s});if(!o)return null;const h=c()("components-resize-tooltip",t);return(0,r.createElement)(FL,{"aria-hidden":"true",className:h,ref:f,...d},p,(0,r.createElement)($L,{"aria-hidden":d["aria-hidden"],label:m,position:s,ref:i,zIndex:u}))})),GL=UL,qL="components-resizable-box__handle",YL="components-resizable-box__side-handle",KL="components-resizable-box__corner-handle",XL={top:c()(qL,YL,"components-resizable-box__handle-top"),right:c()(qL,YL,"components-resizable-box__handle-right"),bottom:c()(qL,YL,"components-resizable-box__handle-bottom"),left:c()(qL,YL,"components-resizable-box__handle-left"),topLeft:c()(qL,KL,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:c()(qL,KL,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:c()(qL,KL,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:c()(qL,KL,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},ZL={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},JL={top:ZL,right:ZL,bottom:ZL,left:ZL,topLeft:ZL,topRight:ZL,bottomRight:ZL,bottomLeft:ZL};const QL=(0,Uo.forwardRef)((function({className:e,children:t,showHandle:n=!0,__experimentalShowTooltip:o=!1,__experimentalTooltipProps:i={},...a},s){return(0,r.createElement)(AL,{className:c()("components-resizable-box__container",n&&"has-show-handle",e),handleClasses:XL,handleStyles:JL,ref:s,...a},t,o&&(0,r.createElement)(GL,{...i}))}));const eF=function({naturalWidth:e,naturalHeight:t,children:n,isInline:o=!1}){if(1!==Uo.Children.count(n))return null;const i=o?"span":"div";let a;return e&&t&&(a=`${e} / ${t}`),(0,r.createElement)(i,{className:"components-responsive-wrapper"},(0,r.createElement)("div",null,(0,Uo.cloneElement)(n,{className:c()("components-responsive-wrapper__content",n.props.className),style:{...n.props.style,aspectRatio:a}})))},tF=function(){const{MutationObserver:e}=window;if(!e||!document.body||!window.parent)return;function t(){const e=document.body.getBoundingClientRect();window.parent.postMessage({action:"resize",width:e.width,height:e.height},"*")}function n(e){e.style&&["width","height","minHeight","maxHeight"].forEach((function(t){/^\\d+(vw|vh|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)$/.test(e.style[t])&&(e.style[t]="")}))}new e(t).observe(document.body,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),window.addEventListener("load",t,!0),Array.prototype.forEach.call(document.querySelectorAll("[style]"),n),Array.prototype.forEach.call(document.styleSheets,(function(e){Array.prototype.forEach.call(e.cssRules||e.rules,n)})),document.body.style.position="absolute",document.body.style.width="100%",document.body.setAttribute("data-resizable-iframe-connected",""),t(),window.addEventListener("resize",t,!0)};const nF=function({html:e="",title:t="",type:n,styles:o=[],scripts:i=[],onFocus:a,tabIndex:s}){const l=(0,Uo.useRef)(),[c,u]=(0,Uo.useState)(0),[f,m]=(0,Uo.useState)(0);function p(a=!1){if(!function(){try{return!!l.current?.contentDocument?.body}catch(e){return!1}}())return;const{contentDocument:s,ownerDocument:c}=l.current;if(!a&&null!==s?.body.getAttribute("data-resizable-iframe-connected"))return;const u=(0,r.createElement)("html",{lang:c.documentElement.lang,className:n},(0,r.createElement)("head",null,(0,r.createElement)("title",null,t),(0,r.createElement)("style",{dangerouslySetInnerHTML:{__html:"\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div {\n\t\twidth: 100%;\n\t}\n\thtml.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio > div,\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n"}}),o.map(((e,t)=>(0,r.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})))),(0,r.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:n},(0,r.createElement)("div",{dangerouslySetInnerHTML:{__html:e}}),(0,r.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`(${tF.toString()})();`}}),i.map((e=>(0,r.createElement)("script",{key:e,src:e})))));s.open(),s.write("<!DOCTYPE html>"+(0,Uo.renderToString)(u)),s.close()}return(0,Uo.useEffect)((()=>{function e(){p(!1)}function t(e){const t=l.current;if(!t||t.contentWindow!==e.source)return;let n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}"resize"===n.action&&(u(n.width),m(n.height))}p();const n=l.current,r=n?.ownerDocument?.defaultView;return n?.addEventListener("load",e,!1),r?.addEventListener("message",t),()=>{n?.removeEventListener("load",e,!1),r?.removeEventListener("message",t)}}),[]),(0,Uo.useEffect)((()=>{p()}),[t,o,i]),(0,Uo.useEffect)((()=>{p(!0)}),[e,n]),(0,r.createElement)("iframe",{ref:(0,d.useMergeRefs)([l,(0,d.useFocusableIframe)()]),title:t,tabIndex:s,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:a,width:Math.ceil(c),height:Math.ceil(f)})};const rF=(0,Uo.forwardRef)((function({className:e,children:t,spokenMessage:n=t,politeness:o="polite",actions:i=[],onRemove:a,icon:s=null,explicitDismiss:l=!1,onDismiss:d,listRef:f},m){function p(e){e&&e.preventDefault&&e.preventDefault(),f?.current?.focus(),d?.(),a?.()}!function(e,t){const n="string"==typeof e?e:(0,Uo.renderToString)(e);(0,Uo.useEffect)((()=>{n&&(0,jy.speak)(n,t)}),[n,t])}(n,o);const h=(0,Uo.useRef)({onDismiss:d,onRemove:a});(0,Uo.useLayoutEffect)((()=>{h.current={onDismiss:d,onRemove:a}})),(0,Uo.useEffect)((()=>{const e=setTimeout((()=>{l||(h.current.onDismiss?.(),h.current.onRemove?.())}),1e4);return()=>clearTimeout(e)}),[l]);const g=c()(e,"components-snackbar",{"components-snackbar-explicit-dismiss":!!l});i&&i.length>1&&(i=[i[0]]);const v=c()("components-snackbar__content",{"components-snackbar__content-with-icon":!!s});return(0,r.createElement)("div",{ref:m,className:g,onClick:l?void 0:p,tabIndex:0,role:l?"":"button",onKeyPress:l?void 0:p,"aria-label":l?"":(0,u.__)("Dismiss this notice")},(0,r.createElement)("div",{className:v},s&&(0,r.createElement)("div",{className:"components-snackbar__icon"},s),t,i.map((({label:e,onClick:t,url:n},o)=>(0,r.createElement)(my,{key:o,href:n,variant:"tertiary",onClick:e=>function(e,t){e.stopPropagation(),a?.(),t&&t(e)}(e,t),className:"components-snackbar__action"},e))),l&&(0,r.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:0,className:"components-snackbar__dismiss-button",onClick:p,onKeyPress:p},"✕")))})),oF=rF,iF={init:{height:0,opacity:0},open:{height:"auto",opacity:1,transition:{height:{type:"tween",duration:.3,ease:[0,0,.2,1]},opacity:{type:"tween",duration:.25,delay:.05,ease:[0,0,.2,1]}}},exit:{opacity:0,transition:{type:"tween",duration:.1,ease:[0,0,.2,1]}}};const aF=function({notices:e,className:t,children:n,onRemove:o}){const i=(0,Uo.useRef)(null),a=(0,d.useReducedMotion)();t=c()("components-snackbar-list",t);const s=e=>()=>o?.(e.id);return(0,r.createElement)("div",{className:t,tabIndex:-1,ref:i},n,(0,r.createElement)(Ih,null,e.map((e=>{const{content:t,...n}=e;return(0,r.createElement)(wh.div,{layout:!a,initial:"init",animate:"open",exit:"exit",key:e.id,variants:a?void 0:iF},(0,r.createElement)("div",{className:"components-snackbar-list__notice-container"},(0,r.createElement)(oF,{...n,onRemove:s(e),listRef:i},e.content)))}))))};const sF=Ts`
+function li(e){return"[object Object]"===Object.prototype.toString.call(e)}function ci(e){var t,n;return!1!==li(e)&&(void 0===(t=e.constructor)||!1!==li(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}const ui=function(e,t){const n=(0,Uo.useRef)(!1);(0,Uo.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)},di=(0,Uo.createContext)({}),pi=()=>(0,Uo.useContext)(di);const hi=(0,Uo.memo)((({children:e,value:t})=>{const n=function({value:e}){const t=pi(),n=(0,Uo.useRef)(e);return ui((()=>{ai()(n.current,e)&&n.current}),[e]),(0,Uo.useMemo)((()=>ii()(null!=t?t:{},null!=e?e:{},{isMergeableObject:ci})),[t,e])}({value:t});return(0,ze.jsx)(di.Provider,{value:n,children:e})})),fi="data-wp-component",mi="data-wp-c16t",gi="__contextSystemKey__";var vi=function(){return vi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vi.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function bi(e){return e.toLowerCase()}var xi=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],yi=/[^A-Z0-9]+/gi;function wi(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function _i(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?xi:n,o=t.stripRegexp,i=void 0===o?yi:o,s=t.transform,a=void 0===s?bi:s,l=t.delimiter,c=void 0===l?" ":l,u=wi(wi(e,r,"$1\0$2"),i,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(a).join(c)}(e,vi({delimiter:"."},t))}function Si(e,t){return void 0===t&&(t={}),_i(e,vi({delimiter:"-"},t))}function Ci(e,t){var n,r,o=0;function i(){var i,s,a=n,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(s=0;s<l;s++)if(a.args[s]!==arguments[s]){a=a.next;continue e}return a!==n&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=n,a.prev=null,n.prev=a,n=a),a.val}a=a.next}for(i=new Array(l),s=0;s<l;s++)i[s]=arguments[s];return a={args:i,val:e.apply(null,i)},n?(n.prev=a,a.next=n):r=a,o===t.maxSize?(r=r.prev).next=null:o++,n=a,a.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}const ki=Ci((function(e){return`components-${Si(e)}`}));var ji=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Ei=Math.abs,Pi=String.fromCharCode,Ti=Object.assign;function Ii(e){return e.trim()}function Mi(e,t,n){return e.replace(t,n)}function Ri(e,t){return e.indexOf(t)}function Ni(e,t){return 0|e.charCodeAt(t)}function Ai(e,t,n){return e.slice(t,n)}function Di(e){return e.length}function Oi(e){return e.length}function zi(e,t){return t.push(e),e}var Li=1,Fi=1,Bi=0,Vi=0,$i=0,Hi="";function Wi(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Li,column:Fi,length:s,return:""}}function Ui(e,t){return Ti(Wi("",null,null,"",null,null,0),e,{length:-e.length},t)}function Gi(){return $i=Vi>0?Ni(Hi,--Vi):0,Fi--,10===$i&&(Fi=1,Li--),$i}function Ki(){return $i=Vi<Bi?Ni(Hi,Vi++):0,Fi++,10===$i&&(Fi=1,Li++),$i}function Yi(){return Ni(Hi,Vi)}function qi(){return Vi}function Xi(e,t){return Ai(Hi,e,t)}function Zi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ji(e){return Li=Fi=1,Bi=Di(Hi=e),Vi=0,[]}function Qi(e){return Hi="",e}function es(e){return Ii(Xi(Vi-1,rs(91===e?e+2:40===e?e+1:e)))}function ts(e){for(;($i=Yi())&&$i<33;)Ki();return Zi(e)>2||Zi($i)>3?"":" "}function ns(e,t){for(;--t&&Ki()&&!($i<48||$i>102||$i>57&&$i<65||$i>70&&$i<97););return Xi(e,qi()+(t<6&&32==Yi()&&32==Ki()))}function rs(e){for(;Ki();)switch($i){case e:return Vi;case 34:case 39:34!==e&&39!==e&&rs($i);break;case 40:41===e&&rs(e);break;case 92:Ki()}return Vi}function os(e,t){for(;Ki()&&e+$i!==57&&(e+$i!==84||47!==Yi()););return"/*"+Xi(t,Vi-1)+"*"+Pi(47===e?e:Ki())}function is(e){for(;!Zi(Yi());)Ki();return Xi(e,Vi)}var ss="-ms-",as="-moz-",ls="-webkit-",cs="comm",us="rule",ds="decl",ps="@keyframes";function hs(e,t){for(var n="",r=Oi(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function fs(e,t,n,r){switch(e.type){case"@import":case ds:return e.return=e.return||e.value;case cs:return"";case ps:return e.return=e.value+"{"+hs(e.children,r)+"}";case us:e.value=e.props.join(",")}return Di(n=hs(e.children,r))?e.return=e.value+"{"+n+"}":""}function ms(e){return Qi(gs("",null,null,null,[""],e=Ji(e),0,[0],e))}function gs(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,p=0,h=0,f=0,m=1,g=1,v=1,b=0,x="",y=o,w=i,_=r,S=x;g;)switch(f=b,b=Ki()){case 40:if(108!=f&&58==Ni(S,d-1)){-1!=Ri(S+=Mi(es(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=es(b);break;case 9:case 10:case 13:case 32:S+=ts(f);break;case 92:S+=ns(qi()-1,7);continue;case 47:switch(Yi()){case 42:case 47:zi(bs(os(Ki(),qi()),t,n),l);break;default:S+="/"}break;case 123*m:a[c++]=Di(S)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:h>0&&Di(S)-d&&zi(h>32?xs(S+";",r,n,d-1):xs(Mi(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(zi(_=vs(S,t,n,c,u,o,a,x,y=[],w=[],d),i),123===b)if(0===u)gs(S,t,_,_,y,i,d,a,w);else switch(99===p&&110===Ni(S,3)?100:p){case 100:case 109:case 115:gs(e,_,_,r&&zi(vs(e,_,_,0,0,o,a,x,o,y=[],d),w),o,w,d,a,r?y:w);break;default:gs(S,_,_,_,[""],w,0,a,w)}}c=u=h=0,m=v=1,x=S="",d=s;break;case 58:d=1+Di(S),h=f;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Gi())continue;switch(S+=Pi(b),b*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:a[c++]=(Di(S)-1)*v,v=1;break;case 64:45===Yi()&&(S+=es(Ki())),p=Yi(),u=d=Di(x=S+=is(qi())),b++;break;case 45:45===f&&2==Di(S)&&(m=0)}}return i}function vs(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,p=0===o?i:[""],h=Oi(p),f=0,m=0,g=0;f<r;++f)for(var v=0,b=Ai(e,d+1,d=Ei(m=s[f])),x=e;v<h;++v)(x=Ii(m>0?p[v]+" "+b:Mi(b,/&\f/g,p[v])))&&(l[g++]=x);return Wi(e,t,n,0===o?us:a,l,c,u)}function bs(e,t,n){return Wi(e,t,n,cs,Pi($i),Ai(e,2,-2),0)}function xs(e,t,n,r){return Wi(e,t,n,ds,Ai(e,0,r),Ai(e,r+1,-1),r)}var ys=function(e,t,n){for(var r=0,o=0;r=o,o=Yi(),38===r&&12===o&&(t[n]=1),!Zi(o);)Ki();return Xi(e,Vi)},ws=function(e,t){return Qi(function(e,t){var n=-1,r=44;do{switch(Zi(r)){case 0:38===r&&12===Yi()&&(t[n]=1),e[n]+=ys(Vi-1,t,n);break;case 2:e[n]+=es(r);break;case 4:if(44===r){e[++n]=58===Yi()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Pi(r)}}while(r=Ki());return e}(Ji(e),t))},_s=new WeakMap,Ss=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||_s.get(n))&&!r){_s.set(e,!0);for(var o=[],i=ws(t,o),s=n.props,a=0,l=0;a<i.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=o[a]?i[a].replace(/&\f/g,s[c]):s[c]+" "+i[a]}}},Cs=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ks(e,t){switch(function(e,t){return 45^Ni(e,0)?(((t<<2^Ni(e,0))<<2^Ni(e,1))<<2^Ni(e,2))<<2^Ni(e,3):0}(e,t)){case 5103:return ls+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ls+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ls+e+as+e+ss+e+e;case 6828:case 4268:return ls+e+ss+e+e;case 6165:return ls+e+ss+"flex-"+e+e;case 5187:return ls+e+Mi(e,/(\w+).+(:[^]+)/,ls+"box-$1$2"+ss+"flex-$1$2")+e;case 5443:return ls+e+ss+"flex-item-"+Mi(e,/flex-|-self/,"")+e;case 4675:return ls+e+ss+"flex-line-pack"+Mi(e,/align-content|flex-|-self/,"")+e;case 5548:return ls+e+ss+Mi(e,"shrink","negative")+e;case 5292:return ls+e+ss+Mi(e,"basis","preferred-size")+e;case 6060:return ls+"box-"+Mi(e,"-grow","")+ls+e+ss+Mi(e,"grow","positive")+e;case 4554:return ls+Mi(e,/([^-])(transform)/g,"$1"+ls+"$2")+e;case 6187:return Mi(Mi(Mi(e,/(zoom-|grab)/,ls+"$1"),/(image-set)/,ls+"$1"),e,"")+e;case 5495:case 3959:return Mi(e,/(image-set\([^]*)/,ls+"$1$`$1");case 4968:return Mi(Mi(e,/(.+:)(flex-)?(.*)/,ls+"box-pack:$3"+ss+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ls+e+e;case 4095:case 3583:case 4068:case 2532:return Mi(e,/(.+)-inline(.+)/,ls+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Di(e)-1-t>6)switch(Ni(e,t+1)){case 109:if(45!==Ni(e,t+4))break;case 102:return Mi(e,/(.+:)(.+)-([^]+)/,"$1"+ls+"$2-$3$1"+as+(108==Ni(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ri(e,"stretch")?ks(Mi(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ni(e,t+1))break;case 6444:switch(Ni(e,Di(e)-3-(~Ri(e,"!important")&&10))){case 107:return Mi(e,":",":"+ls)+e;case 101:return Mi(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ls+(45===Ni(e,14)?"inline-":"")+"box$3$1"+ls+"$2$3$1"+ss+"$2box$3")+e}break;case 5936:switch(Ni(e,t+11)){case 114:return ls+e+ss+Mi(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ls+e+ss+Mi(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ls+e+ss+Mi(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ls+e+ss+e+e}return e}var js=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ds:e.return=ks(e.value,e.length);break;case ps:return hs([Ui(e,{value:Mi(e.value,"@","@"+ls)})],r);case us:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hs([Ui(e,{props:[Mi(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return hs([Ui(e,{props:[Mi(t,/:(plac\w+)/,":"+ls+"input-$1")]}),Ui(e,{props:[Mi(t,/:(plac\w+)/,":-moz-$1")]}),Ui(e,{props:[Mi(t,/:(plac\w+)/,ss+"input-$1")]})],r)}return""}))}}];const Es=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||js;var o,i,s={},a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var l,c,u,d,p=[fs,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[Ss,Cs].concat(r,p),u=Oi(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});i=function(e,t,n,r){l=n,function(e){hs(ms(e),h)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new ji({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return f.sheet.hydrate(a),f};const Ps=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const Ts={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Is(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ms=/[A-Z]|^ms/g,Rs=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ns=function(e){return 45===e.charCodeAt(1)},As=function(e){return null!=e&&"boolean"!=typeof e},Ds=Is((function(e){return Ns(e)?e:e.replace(Ms,"-$&").toLowerCase()})),Os=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Rs,(function(e,t,n){return Ls={name:t,styles:n,next:Ls},t}))}return 1===Ts[e]||Ns(e)||"number"!=typeof t||0===t?t:t+"px"};function zs(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ls={name:n.name,styles:n.styles,next:Ls},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ls={name:r.name,styles:r.styles,next:Ls},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=zs(e,t,n[o])+";";else for(var i in n){var s=n[i];if("object"!=typeof s)null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":As(s)&&(r+=Ds(i)+":"+Os(i,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var a=zs(e,t,s);switch(i){case"animation":case"animationName":r+=Ds(i)+":"+a+";";break;default:r+=i+"{"+a+"}"}}else for(var l=0;l<s.length;l++)As(s[l])&&(r+=Ds(i)+":"+Os(i,s[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Ls,i=n(e);return Ls=o,zs(e,t,i)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var Ls,Fs=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Bs=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ls=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=zs(n,t,i)):o+=i[0];for(var s=1;s<e.length;s++)o+=zs(n,t,e[s]),r&&(o+=i[s]);Fs.lastIndex=0;for(var a,l="";null!==(a=Fs.exec(o));)l+="-"+a[1];return{name:Ps(o)+l,styles:o,next:Ls}},Vs=!!c.useInsertionEffect&&c.useInsertionEffect,$s=Vs||function(e){return e()},Hs=(0,c.createContext)("undefined"!=typeof HTMLElement?Es({key:"css"}):null);var Ws=Hs.Provider,Us=function(e){return(0,c.forwardRef)((function(t,n){var r=(0,c.useContext)(Hs);return e(t,r,n)}))},Gs=(0,c.createContext)({});function Ks(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Ys=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},qs=function(e,t,n){Ys(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}};function Xs(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Zs(e,t,n){var r=[],o=Ks(e,r,n);return r.length<2?n:o+t(r)}var Js=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var s in i="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n};const Qs=function(e){var t=Es(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Bs(n,t.registered,void 0);return qs(t,o,!1),t.key+"-"+o.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return Zs(t.registered,n,Js(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Bs(n,t.registered);Xs(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Bs(n,t.registered),i="animation-"+o.name;return Xs(t,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Ks.bind(null,t.registered),merge:Zs.bind(null,t.registered,n)}};var ea=Qs({key:"css"}),ta=(ea.flush,ea.hydrate,ea.cx);ea.merge,ea.getRegisteredStyles,ea.injectGlobal,ea.keyframes,ea.css,ea.sheet,ea.cache;const na=()=>{const e=(0,c.useContext)(Hs),t=(0,Uo.useCallback)(((...t)=>{if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return ta(...t.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(qs(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function ra(e,t){const n=pi(),r=n?.[t]||{},o={[mi]:!0,...(i=t,{[fi]:i})};var i;const{_overrides:s,...a}=r,l=Object.entries(a).length?Object.assign({},a,e):e,c=na()(ki(t),e.className),u="function"==typeof l.renderChildren?l.renderChildren(l):l.children;for(const e in l)o[e]=l[e];for(const e in s)o[e]=s[e];return void 0!==u&&(o.children=u),o.className=c,o}function oa(e,t){return sa(e,t,{forwardsRef:!0})}function ia(e,t){return sa(e,t)}function sa(e,t,n){const r=n?.forwardsRef?(0,Uo.forwardRef)(e):e;let o=r[gi]||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[gi]:[...new Set(o)],displayName:t,selector:`.${ki(t)}`})}function aa(e){if(!e)return[];let t=[];return e[gi]&&(t=e[gi]),e.type&&e.type[gi]&&(t=e.type[gi]),t}function la(e,t){return!!e&&("string"==typeof t?aa(e).includes(t):!!Array.isArray(t)&&t.some((t=>aa(e).includes(t))))}const ca={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ua.apply(this,arguments)}function da(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var pa=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ha=da((function(e){return pa.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),fa=function(e){return"theme"!==e},ma=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ha:fa},ga=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},va=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Ys(t,n,r);$s((function(){return qs(t,n,r)}));return null};const ba=function e(t,n){var r,o,i=t.__emotion_real===t,s=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var a=ga(t,n,i),l=a||ma(s),u=!l("as");return function(){var d=arguments,p=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{0,p.push(d[0][0]);for(var h=d.length,f=1;f<h;f++)p.push(d[f],d[0][f])}var m=Us((function(e,t,n){var r=u&&e.as||s,i="",d=[],h=e;if(null==e.theme){for(var f in h={},e)h[f]=e[f];h.theme=(0,c.useContext)(Gs)}"string"==typeof e.className?i=Ks(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var m=Bs(p.concat(d),t.registered,h);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var g=u&&void 0===a?ma(r):l,v={};for(var b in e)u&&"as"===b||g(b)&&(v[b]=e[b]);return v.className=i,v.ref=n,(0,c.createElement)(c.Fragment,null,(0,c.createElement)(va,{cache:t,serialized:m,isStringTag:"string"==typeof r}),(0,c.createElement)(r,v))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=s,m.__emotion_styles=p,m.__emotion_forwardProp=a,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,ua({},n,r,{shouldForwardProp:ga(m,r,!0)})).apply(void 0,p)},m}},xa=ba("div",{target:"e19lxcc00"})("");const ya=Object.assign((0,Uo.forwardRef)((function({as:e,...t},n){return(0,ze.jsx)(xa,{as:e,ref:n,...t})})),{selector:".components-view"});const wa=oa((function(e,t){const{style:n,...r}=ra(e,"VisuallyHidden");return(0,ze.jsx)(ya,{ref:t,...r,style:{...ca,...n||{}}})}),"VisuallyHidden"),_a=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],Sa={"top left":(0,a.__)("Top Left"),"top center":(0,a.__)("Top Center"),"top right":(0,a.__)("Top Right"),"center left":(0,a.__)("Center Left"),"center center":(0,a.__)("Center"),center:(0,a.__)("Center"),"center right":(0,a.__)("Center Right"),"bottom left":(0,a.__)("Bottom Left"),"bottom center":(0,a.__)("Bottom Center"),"bottom right":(0,a.__)("Bottom Right")},Ca=_a.flat();function ka(e){const t="center"===e?"center center":e,n=t?.replace("-"," ");return Ca.includes(n)?n:void 0}function ja(e,t){const n=ka(t);if(!n)return;return`${e}-${n.replace(" ","-")}`}o(1880);function Ea(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Bs(t)}var Pa=function(){var e=Ea.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};const Ta="#fff",Ia={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},Ma={accent:"var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))",accentDarker10:"var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))",accentDarker20:"var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6))",accentInverted:`var(--wp-components-color-accent-inverted, ${Ta})`,background:`var(--wp-components-color-background, ${Ta})`,foreground:`var(--wp-components-color-foreground, ${Ia[900]})`,foregroundInverted:`var(--wp-components-color-foreground-inverted, ${Ta})`,gray:{900:`var(--wp-components-color-foreground, ${Ia[900]})`,800:`var(--wp-components-color-gray-800, ${Ia[800]})`,700:`var(--wp-components-color-gray-700, ${Ia[700]})`,600:`var(--wp-components-color-gray-600, ${Ia[600]})`,400:`var(--wp-components-color-gray-400, ${Ia[400]})`,300:`var(--wp-components-color-gray-300, ${Ia[300]})`,200:`var(--wp-components-color-gray-200, ${Ia[200]})`,100:`var(--wp-components-color-gray-100, ${Ia[100]})`}},Ra={background:Ma.background,backgroundDisabled:Ma.gray[100],border:Ma.gray[600],borderHover:Ma.gray[700],borderFocus:Ma.accent,borderDisabled:Ma.gray[400],textDisabled:Ma.gray[600],darkGrayPlaceholder:`color-mix(in srgb, ${Ma.foreground}, transparent 38%)`,lightGrayPlaceholder:`color-mix(in srgb, ${Ma.background}, transparent 35%)`},Na=Object.freeze({gray:Ia,white:Ta,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},theme:Ma,ui:Ra});var Aa={name:"93uojk",styles:"border-radius:2px;box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:repeat( 3, 1fr );outline:none"};const Da=()=>Aa,Oa=({size:e=92})=>Ea("grid-template-rows:repeat( 3, calc( ",e,"px / 3 ) );width:",e,"px;",""),za=ba("div",{target:"ecapk1j3"})(Da,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",Oa,";"),La=ba("div",{target:"ecapk1j2"})({name:"1x5gbbj",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),Fa=e=>Ea("background:currentColor;box-sizing:border-box;display:grid;margin:auto;@media not ( prefers-reduced-motion ){transition:all 120ms linear;}",(({isActive:e})=>Ea("box-shadow:",e?`0 0 0 2px ${Na.gray[900]}`:null,";color:",e?Na.gray[900]:Na.gray[400],";*:hover>&{color:",e?Na.gray[900]:Na.theme.accent,";}",""))(e),";",""),Ba=ba("span",{target:"ecapk1j1"})("height:6px;width:6px;",Fa,";"),Va=ba("span",{target:"ecapk1j0"})({name:"rjf3ub",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"});function $a({id:e,isActive:t=!1,value:n,...r}){const o=Sa[n];return(0,ze.jsx)(ri,{text:o,children:(0,ze.jsxs)(Kt,{id:e,render:(0,ze.jsx)(Va,{...r,role:"gridcell"}),children:[(0,ze.jsx)(wa,{children:n}),(0,ze.jsx)(Ba,{isActive:t,role:"presentation"})]})})}function Ha(e,t,n){return ke(t,[n.store]),$t(e,n,"items","setItems"),e}function Wa(e){const t=e.map(((e,t)=>[t,e]));let n=!1;return t.sort((([e,t],[r,o])=>{const i=t.element,s=o.element;return i===s?0:i&&s?function(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}(i,s)?(e>r&&(n=!0),-1):(e<r&&(n=!0),1):0})),n?t.map((([e,t])=>t)):e}function Ua(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=V(e.items,null==n?void 0:n.items,e.defaultItems,[]),o=new Map(r.map((e=>[e.id,e]))),i={items:r,renderedItems:V(null==n?void 0:n.renderedItems,[])},s=null==(a=e.store)?void 0:a.__unstablePrivateStore;var a;const l=It({items:r,renderedItems:i.renderedItems},s),c=It(i,e.store),u=e=>{const t=Wa(e);l.setState("renderedItems",t),c.setState("renderedItems",t)};Mt(c,(()=>Rt(l))),Mt(l,(()=>Dt(l,["items"],(e=>{c.setState("items",e.items)})))),Mt(l,(()=>Dt(l,["renderedItems"],(e=>{let t=!0,n=requestAnimationFrame((()=>{const{renderedItems:t}=c.getState();e.renderedItems!==t&&u(e.renderedItems)}));if("function"!=typeof IntersectionObserver)return()=>cancelAnimationFrame(n);const r=function(e){var t;const n=e.find((e=>!!e.element)),r=[...e].reverse().find((e=>!!e.element));let o=null==(t=null==n?void 0:n.element)?void 0:t.parentElement;for(;o&&(null==r?void 0:r.element);){if(r&&o.contains(r.element))return o;o=o.parentElement}return G(o).body}(e.renderedItems),o=new IntersectionObserver((()=>{t?t=!1:(cancelAnimationFrame(n),n=requestAnimationFrame((()=>u(e.renderedItems))))}),{root:r});for(const t of e.renderedItems)t.element&&o.observe(t.element);return()=>{cancelAnimationFrame(n),o.disconnect()}}))));const d=(e,t,n=!1)=>{let r;t((t=>{const n=t.findIndex((({id:t})=>t===e.id)),i=t.slice();if(-1!==n){r=t[n];const s=I(I({},r),e);i[n]=s,o.set(e.id,s)}else i.push(e),o.set(e.id,e);return i}));return()=>{t((t=>{if(!r)return n&&o.delete(e.id),t.filter((({id:t})=>t!==e.id));const i=t.findIndex((({id:t})=>t===e.id));if(-1===i)return t;const s=t.slice();return s[i]=r,o.set(e.id,r),s}))}},p=e=>d(e,(e=>l.setState("items",e)),!0);return M(I({},c),{registerItem:p,renderItem:e=>O(p(e),d(e,(e=>l.setState("renderedItems",e)))),item:e=>{if(!e)return null;let t=o.get(e);if(!t){const{items:n}=c.getState();t=n.find((t=>t.id===e)),t&&o.set(e,t)}return t||null},__unstablePrivateStore:l})}function Ga(e){const t=[];for(const n of e)t.push(...n);return t}function Ka(e){return e.slice().reverse()}var Ya={id:null};function qa(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function Xa(e,t){return e.filter((e=>e.rowId===t))}function Za(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}function Ja(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function Qa(e,t,n){const r=Ja(e);for(const o of e)for(let e=0;e<r;e+=1){const r=o[e];if(!r||n&&r.disabled){const r=0===e&&n?qa(o):o[e-1];o[e]=r&&t!==r.id&&n?r:{id:"__EMPTY_ITEM__",disabled:!0,rowId:null==r?void 0:r.rowId}}}return e}function el(e){const t=Za(e),n=Ja(t),r=[];for(let e=0;e<n;e+=1)for(const n of t){const t=n[e];t&&r.push(M(I({},t),{rowId:t.rowId?`${e}`:void 0}))}return r}function tl(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Ua(e),o=V(e.activeId,null==n?void 0:n.activeId,e.defaultActiveId),i=It(M(I({},r.getState()),{activeId:o,baseElement:V(null==n?void 0:n.baseElement,null),includesBaseElement:V(e.includesBaseElement,null==n?void 0:n.includesBaseElement,null===o),moves:V(null==n?void 0:n.moves,0),orientation:V(e.orientation,null==n?void 0:n.orientation,"both"),rtl:V(e.rtl,null==n?void 0:n.rtl,!1),virtualFocus:V(e.virtualFocus,null==n?void 0:n.virtualFocus,!1),focusLoop:V(e.focusLoop,null==n?void 0:n.focusLoop,!1),focusWrap:V(e.focusWrap,null==n?void 0:n.focusWrap,!1),focusShift:V(e.focusShift,null==n?void 0:n.focusShift,!1)}),r,e.store);Mt(i,(()=>At(i,["renderedItems","activeId"],(e=>{i.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=qa(e.renderedItems))?void 0:n.id}))}))));const s=(e,t,n,r)=>{var o,s;const{activeId:a,rtl:l,focusLoop:c,focusWrap:u,includesBaseElement:d}=i.getState(),p=l&&"vertical"!==t?Ka(e):e;if(null==a)return null==(o=qa(p))?void 0:o.id;const h=p.find((e=>e.id===a));if(!h)return null==(s=qa(p))?void 0:s.id;const f=!!h.rowId,m=p.indexOf(h),g=p.slice(m+1),v=Xa(g,h.rowId);if(void 0!==r){const e=function(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(v,a),t=e.slice(r)[0]||e[e.length-1];return null==t?void 0:t.id}const b=function(e){return"vertical"===e?"horizontal":"horizontal"===e?"vertical":void 0}(f?t||"horizontal":t),x=c&&c!==b,y=f&&u&&u!==b;if(n=n||!f&&x&&d,x){const e=function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[Ya]:[],...e.slice(0,r)]}(y&&!n?p:Xa(p,h.rowId),a,n),t=qa(e,a);return null==t?void 0:t.id}if(y){const e=qa(n?v:g,a);return n?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const w=qa(v,a);return!w&&n?null:null==w?void 0:w.id};return M(I(I({},r),i),{setBaseElement:e=>i.setState("baseElement",e),setActiveId:e=>i.setState("activeId",e),move:e=>{void 0!==e&&(i.setState("activeId",e),i.setState("moves",(e=>e+1)))},first:()=>{var e;return null==(e=qa(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=qa(Ka(i.getState().renderedItems)))?void 0:e.id},next:e=>{const{renderedItems:t,orientation:n}=i.getState();return s(t,n,!1,e)},previous:e=>{var t;const{renderedItems:n,orientation:r,includesBaseElement:o}=i.getState(),a=!!!(null==(t=qa(n))?void 0:t.rowId)&&o;return s(Ka(n),r,a,e)},down:e=>{const{activeId:t,renderedItems:n,focusShift:r,focusLoop:o,includesBaseElement:a}=i.getState(),l=r&&!e,c=el(Ga(Qa(Za(n),t,l)));return s(c,"vertical",o&&"horizontal"!==o&&a,e)},up:e=>{const{activeId:t,renderedItems:n,focusShift:r,includesBaseElement:o}=i.getState(),a=r&&!e,l=el(Ka(Ga(Qa(Za(n),t,a))));return s(l,"vertical",o,e)}})}function nl(e,t,n){return $t(e=Ha(e,t,n),n,"activeId","setActiveId"),$t(e,n,"includesBaseElement"),$t(e,n,"virtualFocus"),$t(e,n,"orientation"),$t(e,n,"rtl"),$t(e,n,"focusLoop"),$t(e,n,"focusWrap"),$t(e,n,"focusShift"),e}function rl(e={}){const[t,n]=Ht(tl,e);return nl(t,n,e)}function ol(e,t,n){return we((r=>{var o;if(null==t||t(r),r.defaultPrevented)return;if(r.isPropagationStopped())return;if(!ce(r))return;if(function(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}(r))return;if(function(e){const t=e.target;return!(t&&!te(t)||1!==e.key.length||e.ctrlKey||e.metaKey)}(r))return;const i=e.getState(),s=null==(o=xt(e,i.activeId))?void 0:o.element;if(!s)return;const a=r,{view:l}=a,c=_(a,["view"]);s!==(null==n?void 0:n.current)&&s.focus(),function(e,t,n){const r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}(s,r.type,c)||r.preventDefault(),r.currentTarget.contains(s)&&r.stopPropagation()}))}var il=Ve((e=>{var t=e,{store:n,composite:r=!0,focusOnMove:o=r,moveOnKeyPress:i=!0}=t,s=_(t,["store","composite","focusOnMove","moveOnKeyPress"]);const a=Ct();L(n=n||a,!1);const l=(0,c.useRef)(null),u=function(e){const[t,n]=(0,c.useState)(!1),r=(0,c.useCallback)((()=>n(!0)),[]),o=e.useState((t=>xt(e,t.activeId)));return(0,c.useEffect)((()=>{const e=null==o?void 0:o.element;t&&e&&(n(!1),e.focus({preventScroll:!0}))}),[o,t]),r}(n),d=n.useState("moves");(0,c.useEffect)((()=>{var e;if(!n)return;if(!d)return;if(!r)return;if(!o)return;const{activeId:t}=n.getState(),i=null==(e=xt(n,t))?void 0:e.element;i&&function(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(I({block:"nearest",inline:"nearest"},t))):e.focus()}(i)}),[n,d,r,o]),be((()=>{if(!n)return;if(!d)return;if(!r)return;const{baseElement:e,activeId:t}=n.getState();if(!(null===t))return;if(!e)return;const o=l.current;l.current=null,o&&ue(o,{relatedTarget:e}),Ze(e)||e.focus()}),[n,d,r]);const p=n.useState("activeId"),h=n.useState("virtualFocus");be((()=>{var e;if(!n)return;if(!r)return;if(!h)return;const t=l.current;if(l.current=null,!t)return;const o=(null==(e=xt(n,p))?void 0:e.element)||K(t);o!==t&&ue(t,{relatedTarget:o})}),[n,p,h,r]);const f=ol(n,s.onKeyDownCapture,l),m=ol(n,s.onKeyUpCapture,l),g=s.onFocusCapture,v=we((e=>{if(null==g||g(e),e.defaultPrevented)return;if(!n)return;const{virtualFocus:t}=n.getState();if(!t)return;const r=e.relatedTarget,o=function(e){const t=e[yt];return delete e[yt],t}(e.currentTarget);ce(e)&&o&&(e.stopPropagation(),l.current=r)})),b=s.onFocus,x=we((e=>{if(null==b||b(e),e.defaultPrevented)return;if(!r)return;if(!n)return;const{relatedTarget:t}=e,{virtualFocus:o}=n.getState();o?ce(e)&&!wt(n,t)&&queueMicrotask(u):ce(e)&&n.setActiveId(null)})),S=s.onBlurCapture,C=we((e=>{var t;if(null==S||S(e),e.defaultPrevented)return;if(!n)return;const{virtualFocus:r,activeId:o}=n.getState();if(!r)return;const i=null==(t=xt(n,o))?void 0:t.element,s=e.relatedTarget,a=wt(n,s),c=l.current;if(l.current=null,ce(e)&&a)s===i?c&&c!==s&&ue(c,e):i?ue(i,e):c&&ue(c,e),e.stopPropagation();else{!wt(n,e.target)&&i&&ue(i,e)}})),k=s.onKeyDown,j=Ee(i),E=we((e=>{var t;if(null==k||k(e),e.defaultPrevented)return;if(!n)return;if(!ce(e))return;const{orientation:r,items:o,renderedItems:i,activeId:s}=n.getState(),a=xt(n,s);if(null==(t=null==a?void 0:a.element)?void 0:t.isConnected)return;const l="horizontal"!==r,c="vertical"!==r,u=function(e){return e.some((e=>!!e.rowId))}(i);if(("ArrowLeft"===e.key||"ArrowRight"===e.key||"Home"===e.key||"End"===e.key)&&te(e.currentTarget))return;const d={ArrowUp:(u||l)&&(()=>{if(u){const e=o&&function(e){return function(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(Ga(Ka(function(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}(e))))}(o);return null==e?void 0:e.id}return null==n?void 0:n.last()}),ArrowRight:(u||c)&&n.first,ArrowDown:(u||l)&&n.first,ArrowLeft:(u||c)&&n.last,Home:n.first,End:n.last,PageUp:n.first,PageDown:n.last},p=d[e.key];if(p){const t=p();if(void 0!==t){if(!j(e))return;e.preventDefault(),n.move(t)}}}));s=Pe(s,(e=>(0,ze.jsx)(kt,{value:n,children:e})),[n]);const P=n.useState((e=>{var t;if(n&&r&&e.virtualFocus)return null==(t=xt(n,e.activeId))?void 0:t.id}));s=w(y({"aria-activedescendant":P},s),{ref:_e(r?n.setBaseElement:null,s.ref),onKeyDownCapture:f,onKeyUpCapture:m,onFocusCapture:v,onFocus:x,onBlurCapture:C,onKeyDown:E});const T=n.useState((e=>r&&(e.virtualFocus||null===e.activeId)));return s=ct(y({focusable:T},s))})),sl=Le((e=>Be("div",il(e))));var al=Ve((e=>{var t=e,{store:n,"aria-setsize":r,"aria-posinset":o}=t,i=_(t,["store","aria-setsize","aria-posinset"]);const s=St();L(n=n||s,!1);const a=Se(i.id),l=n.useState((e=>e.baseElement||void 0)),u=(0,c.useMemo)((()=>({id:a,baseElement:l,ariaSetSize:r,ariaPosInSet:o})),[a,l,r,o]);return i=Pe(i,(e=>(0,ze.jsx)(Pt.Provider,{value:u,children:e})),[u]),i=y({id:a},i)})),ll=Le((e=>Be("div",al(e))));const cl=()=>Ea({gridTemplateRows:"repeat( 3, calc( 21px / 3))",padding:1.5,maxHeight:24,maxWidth:24},"",""),ul=({disablePointerEvents:e})=>Ea({pointerEvents:e?"none":void 0},"",""),dl=ba("div",{target:"erowt51"})("transform-origin:top left;height:100%;width:100%;",Da,";",cl,";",ul,";"),pl=({isActive:e})=>Ea("box-shadow:",e?"0 0 0 1px currentColor":null,";color:currentColor;*:hover>&{color:currentColor;}",""),hl=ba("span",{target:"erowt50"})("height:2px;width:2px;",Fa,";",pl,";"),fl=Va;const ml=function({className:e,disablePointerEvents:t=!0,size:n=24,style:r={},value:o="center",...i}){const a=function(e="center"){const t=ka(e);if(!t)return;const n=Ca.indexOf(t);return n>-1?n:void 0}(o),l=(n/24).toFixed(2),c=s("component-alignment-matrix-control-icon",e),u={...r,transform:`scale(${l})`};return(0,ze.jsx)(dl,{...i,className:c,disablePointerEvents:t,role:"presentation",style:u,children:Ca.map(((e,t)=>{const n=a===t;return(0,ze.jsx)(fl,{children:(0,ze.jsx)(hl,{isActive:n})},e)}))})};function gl({className:e,id:t,label:n=(0,a.__)("Alignment Matrix Control"),defaultValue:r="center center",value:o,onChange:i,width:c=92,...u}){const d=(0,l.useInstanceId)(gl,"alignment-matrix-control",t),p=rl({defaultActiveId:ja(d,r),activeId:ja(d,o),setActiveId:e=>{const t=function(e,t){const n=t?.replace(e+"-","");return ka(n)}(d,e);t&&i?.(t)},rtl:(0,a.isRTL)()}),h=p.useState("activeId"),f=s("component-alignment-matrix-control",e);return(0,ze.jsx)(sl,{store:p,render:(0,ze.jsx)(za,{...u,"aria-label":n,className:f,id:d,role:"grid",size:c}),children:_a.map(((e,t)=>(0,ze.jsx)(ll,{render:(0,ze.jsx)(La,{role:"row"}),children:e.map((e=>{const t=ja(d,e),n=t===h;return(0,ze.jsx)($a,{id:t,isActive:n,value:e},e)}))},t)))})}gl.Icon=ml;const vl=gl;function bl(e){return"appear"===e?"top":"left"}function xl(e){if("loading"===e.type)return"components-animate__loading";const{type:t,origin:n=bl(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return s("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?s("components-animate__slide-in","is-from-"+n):void 0}const yl=function({type:e,options:t={},children:n}){return n({className:xl({type:e,...t})})},wl=(0,c.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),_l=(0,c.createContext)({}),Sl=(0,c.createContext)(null),Cl="undefined"!=typeof document,kl=Cl?c.useLayoutEffect:c.useEffect,jl=(0,c.createContext)({strict:!1}),El=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Pl="data-"+El("framerAppearId"),Tl=!1,Il=!1;class Ml{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const Rl=["read","resolveKeyframes","update","preRender","render","postRender"];function Nl(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=Rl.reduce(((e,t)=>(e[t]=function(e){let t=new Ml,n=new Ml,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(e,i=!1,a=!1)=>{const l=a&&o,c=l?t:n;return i&&s.add(e),c.add(e)&&l&&o&&(r=t.order.length),e},cancel:e=>{n.remove(e),s.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let n=0;n<r;n++){const r=t.order[n];s.has(r)&&(a.schedule(r),e()),r(l)}o=!1,i&&(i=!1,a.process(l))}}};return a}((()=>n=!0)),e)),{}),s=e=>{i[e].process(o)},a=()=>{const i=Il?o.timestamp:performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,Rl.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))};return{schedule:Rl.reduce(((t,s)=>{const l=i[s];return t[s]=(t,i=!1,s=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(a)),l.schedule(t,i,s)),t}),{}),cancel:e=>Rl.forEach((t=>i[t].cancel(e))),state:o,steps:i}}const{schedule:Al,cancel:Dl}=Nl(queueMicrotask,!1);function Ol(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function zl(e,t,n){return(0,c.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Ol(n)&&(n.current=r))}),[t])}function Ll(e){return"string"==typeof e||Array.isArray(e)}function Fl(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const Bl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Vl=["initial",...Bl];function $l(e){return Fl(e.animate)||Vl.some((t=>Ll(e[t])))}function Hl(e){return Boolean($l(e)||e.variants)}function Wl(e){const{initial:t,animate:n}=function(e,t){if($l(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Ll(t)?t:void 0,animate:Ll(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,c.useContext)(_l));return(0,c.useMemo)((()=>({initial:t,animate:n})),[Ul(t),Ul(n)])}function Ul(e){return Array.isArray(e)?e.join(" "):e}const Gl={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Kl={};for(const e in Gl)Kl[e]={isEnabled:t=>Gl[e].some((e=>!!t[e]))};const Yl=(0,c.createContext)({}),ql=(0,c.createContext)({}),Xl=Symbol.for("motionComponentSymbol");function Zl({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&function(e){for(const t in e)Kl[t]={...Kl[t],...e[t]}}(e);const i=(0,c.forwardRef)((function(i,s){let a;const l={...(0,c.useContext)(wl),...i,layoutId:Jl(i)},{isStatic:u}=l,d=Wl(i),p=r(i,u);if(!u&&Cl){d.visualElement=function(e,t,n,r){const{visualElement:o}=(0,c.useContext)(_l),i=(0,c.useContext)(jl),s=(0,c.useContext)(Sl),a=(0,c.useContext)(wl).reducedMotion,l=(0,c.useRef)();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:a}));const u=l.current;(0,c.useInsertionEffect)((()=>{u&&u.update(n,s)}));const d=(0,c.useRef)(Boolean(n[Pl]&&!window.HandoffComplete));return kl((()=>{u&&(Al.render(u.render),d.current&&u.animationState&&u.animationState.animateChanges())})),(0,c.useEffect)((()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))})),u}(o,p,l,t);const n=(0,c.useContext)(ql),r=(0,c.useContext)(jl).strict;d.visualElement&&(a=d.visualElement.loadFeatures(l,r,e,n))}return(0,ze.jsxs)(_l.Provider,{value:d,children:[a&&d.visualElement?(0,ze.jsx)(a,{visualElement:d.visualElement,...l}):null,n(o,i,zl(p,d.visualElement,s),p,u,d.visualElement)]})}));return i[Xl]=o,i}function Jl({layoutId:e}){const t=(0,c.useContext)(Yl).id;return t&&void 0!==e?t+"-"+e:e}function Ql(e){function t(t,n={}){return Zl(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const ec=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function tc(e){return"string"==typeof e&&!e.includes("-")&&!!(ec.indexOf(e)>-1||/[A-Z]/u.test(e))}const nc={};const rc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oc=new Set(rc);function ic(e,{layout:t,layoutId:n}){return oc.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!nc[e]||"opacity"===e)}const sc=e=>Boolean(e&&e.getVelocity),ac={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},lc=rc.length;const cc=e=>t=>"string"==typeof t&&t.startsWith(e),uc=cc("--"),dc=cc("var(--"),pc=e=>!!dc(e)&&hc.test(e.split("/*")[0].trim()),hc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,fc=(e,t)=>t&&"number"==typeof e?t.transform(e):e,mc=(e,t,n)=>n>t?t:n<e?e:n,gc={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},vc={...gc,transform:e=>mc(0,1,e)},bc={...gc,default:1},xc=e=>Math.round(1e5*e)/1e5,yc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,wc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,_c=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Sc(e){return"string"==typeof e}const Cc=e=>({test:t=>Sc(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),kc=Cc("deg"),jc=Cc("%"),Ec=Cc("px"),Pc=Cc("vh"),Tc=Cc("vw"),Ic={...jc,parse:e=>jc.parse(e)/100,transform:e=>jc.transform(100*e)},Mc={...gc,transform:Math.round},Rc={borderWidth:Ec,borderTopWidth:Ec,borderRightWidth:Ec,borderBottomWidth:Ec,borderLeftWidth:Ec,borderRadius:Ec,radius:Ec,borderTopLeftRadius:Ec,borderTopRightRadius:Ec,borderBottomRightRadius:Ec,borderBottomLeftRadius:Ec,width:Ec,maxWidth:Ec,height:Ec,maxHeight:Ec,size:Ec,top:Ec,right:Ec,bottom:Ec,left:Ec,padding:Ec,paddingTop:Ec,paddingRight:Ec,paddingBottom:Ec,paddingLeft:Ec,margin:Ec,marginTop:Ec,marginRight:Ec,marginBottom:Ec,marginLeft:Ec,rotate:kc,rotateX:kc,rotateY:kc,rotateZ:kc,scale:bc,scaleX:bc,scaleY:bc,scaleZ:bc,skew:kc,skewX:kc,skewY:kc,distance:Ec,translateX:Ec,translateY:Ec,translateZ:Ec,x:Ec,y:Ec,z:Ec,perspective:Ec,transformPerspective:Ec,opacity:vc,originX:Ic,originY:Ic,originZ:Ec,zIndex:Mc,backgroundPositionX:Ec,backgroundPositionY:Ec,fillOpacity:vc,strokeOpacity:vc,numOctaves:Mc};function Nc(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(uc(e)){i[e]=n;continue}const r=Rc[e],d=fc(n,r);if(oc.has(e)){if(l=!0,s[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,a[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<lc;t++){const n=rc[t];void 0!==e[n]&&(i+=`${ac[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;o.transformOrigin=`${e} ${t} ${n}`}}const Ac=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Dc(e,t,n){for(const r in t)sc(t[r])||ic(r,n)||(e[r]=t[r])}function Oc(e,t,n){const r={};return Dc(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return(0,c.useMemo)((()=>{const r=Ac();return Nc(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),r}function zc(e,t,n){const r={},o=Oc(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const Lc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Fc(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Lc.has(e)}let Bc=e=>!Fc(e);try{(Vc=require("@emotion/is-prop-valid").default)&&(Bc=e=>e.startsWith("on")?!Fc(e):Vc(e))}catch(W){}var Vc;function $c(e,t,n){return"string"==typeof e?e:Ec.transform(t+n*e)}const Hc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Wc={offset:"strokeDashoffset",array:"strokeDasharray"};function Uc(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d,p){if(Nc(e,c,u,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:h,style:f,dimensions:m}=e;h.transform&&(m&&(f.transform=h.transform),delete h.transform),m&&(void 0!==o||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){return`${$c(t,e.x,e.width)} ${$c(n,e.y,e.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(h.x=t),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==s&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Hc:Wc;e[i.offset]=Ec.transform(-r);const s=Ec.transform(t),a=Ec.transform(n);e[i.array]=`${s} ${a}`}(h,s,a,l,!1)}const Gc=()=>({...Ac(),attrs:{}}),Kc=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Yc(e,t,n,r){const o=(0,c.useMemo)((()=>{const n=Gc();return Uc(n,t,{enableHardwareAcceleration:!1},Kc(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};Dc(t,e.style,e),o.style={...t,...o.style}}return o}function qc(e=!1){return(t,n,r,{latestValues:o},i)=>{const s=(tc(t)?Yc:zc)(n,o,i,t),a=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Bc(o)||!0===n&&Fc(o)||!t&&!Fc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),l=t!==c.Fragment?{...a,...s,ref:r}:{},{children:u}=n,d=(0,c.useMemo)((()=>sc(u)?u.get():u),[u]);return(0,c.createElement)(t,{...l,children:d})}}function Xc(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const Zc=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Jc(e,t,n,r){Xc(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Zc.has(n)?n:El(n),t.attrs[n])}function Qc(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(sc(o[s])||t.style&&sc(t.style[s])||ic(s,e)||void 0!==(null===(r=null==n?void 0:n.getValue(s))||void 0===r?void 0:r.liveStyle))&&(i[s]=o[s]);return i}function eu(e,t,n){const r=Qc(e,t,n);for(const n in e)if(sc(e[n])||sc(t[n])){r[-1!==rc.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return r}function tu(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function nu(e,t,n,r){if("function"==typeof t){const[o,i]=tu(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=tu(r);t=t(void 0!==n?n:e.custom,o,i)}return t}function ru(e){const t=(0,c.useRef)(null);return null===t.current&&(t.current=e()),t.current}const ou=e=>Array.isArray(e),iu=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),su=e=>ou(e)?e[e.length-1]||0:e;function au(e){const t=sc(e)?e.get():e;return iu(t)?t.toValue():t}const lu=e=>(t,n)=>{const r=(0,c.useContext)(_l),o=(0,c.useContext)(Sl),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:cu(r,o,i,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s}(e,t,r,o);return n?i():ru(i)};function cu(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=au(i[e]);let{initial:s,animate:a}=e;const l=$l(e),c=Hl(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const d=u?a:s;if(d&&"boolean"!=typeof d&&!Fl(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=nu(e,t);if(!n)return;const{transitionEnd:r,transition:i,...s}=n;for(const e in s){let t=s[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}))}return o}const uu=e=>e,{schedule:du,cancel:pu,state:hu,steps:fu}=Nl("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:uu,!0),mu={useVisualState:lu({scrapeMotionValuesFromProps:eu,createRenderState:Gc,onMount:(e,t,{renderState:n,latestValues:r})=>{du.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),du.render((()=>{Uc(n,r,{enableHardwareAcceleration:!1},Kc(t.tagName),e.transformTemplate),Jc(t,n)}))}})},gu={useVisualState:lu({scrapeMotionValuesFromProps:Qc,createRenderState:Ac})};function vu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const bu=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function xu(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const yu=e=>t=>bu(t)&&e(t,xu(t));function wu(e,t,n,r){return vu(e,t,yu(n),r)}const _u=(e,t)=>n=>t(e(n)),Su=(...e)=>e.reduce(_u);function Cu(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const ku=Cu("dragHorizontal"),ju=Cu("dragVertical");function Eu(e){let t=!1;if("y"===e)t=ju();else if("x"===e)t=ku();else{const e=ku(),n=ju();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Pu(){const e=Eu(!0);return!e||(e(),!1)}class Tu{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Iu(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd";return wu(e.current,n,((n,o)=>{if("touch"===n.pointerType||Pu())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t);const s=i[r];s&&du.postRender((()=>s(n,o)))}),{passive:!e.getProps()[r]})}const Mu=(e,t)=>!!t&&(e===t||Mu(e,t.parentElement));function Ru(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,xu(n))}const Nu=new WeakMap,Au=new WeakMap,Du=e=>{const t=Nu.get(e.target);t&&t(e)},Ou=e=>{e.forEach(Du)};function zu(e,t,n){const r=function({root:e,...t}){const n=e||document;Au.has(n)||Au.set(n,{});const r=Au.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Ou,{root:e,...t})),r[o]}(t);return Nu.set(e,n),r.observe(e),()=>{Nu.delete(e),r.unobserve(e)}}const Lu={some:0,all:1};const Fu={inView:{Feature:class extends Tu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Lu[r]};return zu(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Tu{constructor(){super(...arguments),this.removeStartListeners=uu,this.removeEndListeners=uu,this.removeAccessibleListeners=uu,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=wu(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:o}=this.node.getProps(),i=o||Mu(this.node.current,e.target)?n:r;i&&du.update((()=>i(e,t)))}),{passive:!(n.onTap||n.onPointerUp)}),o=wu(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Su(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=vu(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=vu(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Ru("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&du.postRender((()=>n(e,t)))}))})),Ru("down",((e,t)=>{this.startPress(e,t)}))})),t=vu(this.node.current,"blur",(()=>{this.isPressing&&Ru("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=Su(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&du.postRender((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Pu()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&du.postRender((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=wu(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=vu(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Su(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Tu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Su(vu(this.node.current,"focus",(()=>this.onFocus())),vu(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Tu{mount(){this.unmount=Su(Iu(this.node,!0),Iu(this.node,!1))}unmount(){}}}};function Bu(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Vu(e,t,n){const r=e.getProps();return nu(r,t,void 0!==n?n:r.custom,e)}const $u=e=>1e3*e,Hu=e=>e/1e3,Wu={type:"spring",stiffness:500,damping:25,restSpeed:10},Uu={type:"keyframes",duration:.8},Gu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ku=(e,{keyframes:t})=>t.length>2?Uu:oc.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Wu:Gu;function Yu(e,t){return e[t]||e.default||e}const qu=!1,Xu=e=>null!==e;function Zu(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Xu),i=t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}let Ju;function Qu(){Ju=void 0}const ed={now:()=>(void 0===Ju&&ed.set(hu.isProcessing||Il?hu.timestamp:performance.now()),Ju),set:e=>{Ju=e,queueMicrotask(Qu)}},td=e=>/^0[^.\s]+$/u.test(e);let nd=uu,rd=uu;const od=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),id=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sd(e,t,n=1){rd(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=id.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return od(e)?parseFloat(e):e}return pc(o)?sd(o,t,n+1):o}const ad=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ld=e=>e===gc||e===Ec,cd=(e,t)=>parseFloat(e.split(", ")[t]),ud=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return cd(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?cd(t[1],e):0}},dd=new Set(["x","y","z"]),pd=rc.filter((e=>!dd.has(e)));const hd={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ud(4,13),y:ud(5,14)};hd.translateX=hd.x,hd.translateY=hd.y;const fd=e=>t=>t.test(e),md=[gc,Ec,jc,kc,Tc,Pc,{test:e=>"auto"===e,parse:e=>e}],gd=e=>md.find(fd(e)),vd=new Set;let bd=!1,xd=!1;function yd(){if(xd){const e=Array.from(vd).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return pd.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}xd=!1,bd=!1,vd.forEach((e=>e.complete())),vd.clear()}function wd(){vd.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(xd=!0)}))}class _d{constructor(e,t,n,r,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(vd.add(this),bd||(bd=!0,du.read(wd),du.resolveKeyframes(yd))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==r?void 0:r.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),vd.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,vd.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Sd=(e,t)=>n=>Boolean(Sc(n)&&_c.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Cd=(e,t,n)=>r=>{if(!Sc(r))return r;const[o,i,s,a]=r.match(yc);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},kd={...gc,transform:e=>Math.round((e=>mc(0,255,e))(e))},jd={test:Sd("rgb","red"),parse:Cd("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+kd.transform(e)+", "+kd.transform(t)+", "+kd.transform(n)+", "+xc(vc.transform(r))+")"};const Ed={test:Sd("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:jd.transform},Pd={test:Sd("hsl","hue"),parse:Cd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+jc.transform(xc(t))+", "+jc.transform(xc(n))+", "+xc(vc.transform(r))+")"},Td={test:e=>jd.test(e)||Ed.test(e)||Pd.test(e),parse:e=>jd.test(e)?jd.parse(e):Pd.test(e)?Pd.parse(e):Ed.parse(e),transform:e=>Sc(e)?e:e.hasOwnProperty("red")?jd.transform(e):Pd.transform(e)};const Id="number",Md="color",Rd="var",Nd="var(",Ad="${}",Dd=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Od(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(Dd,(e=>(Td.test(e)?(r.color.push(i),o.push(Md),n.push(Td.parse(e))):e.startsWith(Nd)?(r.var.push(i),o.push(Rd),n.push(e)):(r.number.push(i),o.push(Id),n.push(parseFloat(e))),++i,Ad))).split(Ad);return{values:n,split:s,indexes:r,types:o}}function zd(e){return Od(e).values}function Ld(e){const{split:t,types:n}=Od(e),r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===Id?xc(e[i]):t===Md?Td.transform(e[i]):e[i]}return o}}const Fd=e=>"number"==typeof e?0:e;const Bd={test:function(e){var t,n;return isNaN(e)&&Sc(e)&&((null===(t=e.match(yc))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(wc))||void 0===n?void 0:n.length)||0)>0},parse:zd,createTransformer:Ld,getAnimatableNone:function(e){const t=zd(e);return Ld(e)(t.map(Fd))}},Vd=new Set(["brightness","contrast","saturate","opacity"]);function $d(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(yc)||[];if(!r)return e;const o=n.replace(r,"");let i=Vd.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Hd=/\b([a-z-]*)\(.*?\)/gu,Wd={...Bd,getAnimatableNone:e=>{const t=e.match(Hd);return t?t.map($d).join(" "):e}},Ud={...Rc,color:Td,backgroundColor:Td,outlineColor:Td,fill:Td,stroke:Td,borderColor:Td,borderTopColor:Td,borderRightColor:Td,borderBottomColor:Td,borderLeftColor:Td,filter:Wd,WebkitFilter:Wd},Gd=e=>Ud[e];function Kd(e,t){let n=Gd(e);return n!==Wd&&(n=Bd),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Yd=new Set(["auto","none","0"]);class qd extends _d{constructor(e,t,n,r){super(e,t,n,r,null==r?void 0:r.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){const r=e[n];if("string"==typeof r&&pc(r)){const o=sd(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!ad.has(n)||2!==e.length)return;const[r,o]=e,i=gd(r),s=gd(o);if(i!==s)if(ld(i)&&ld(s))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||td(r))&&n.push(t);var r;n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!Yd.has(t)&&Od(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=Kd(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=hd[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=hd[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}const Xd=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!Bd.test(e)&&"0"!==e||e.startsWith("url(")));class Zd{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,...s},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(wd(),yd()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:i,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],s=Xd(o,t),a=Xd(i,t);return nd(s===a,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!s||!a)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||"spring"===n&&r)}(e,n,r,o)){if(qu||!i)return null==a||a(Zu(e,this.options,t)),null==s||s(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}function Jd(e,t){return t?e*(1e3/t):0}const Qd=5;function ep(e,t,n){const r=Math.max(t-Qd,0);return Jd(n-e(r),t-r)}const tp=.001,np=.01,rp=10,op=.05,ip=1;function sp({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;nd(e<=$u(rp),"Spring duration must be 10 seconds or less");let s=1-t;s=mc(op,ip,s),e=mc(np,rp,Hu(e)),s<1?(o=t=>{const r=t*s,o=r*e,i=r-n,a=lp(t,s),l=Math.exp(-o);return tp-i/a*l},i=t=>{const r=t*s*e,i=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=lp(Math.pow(t,2),s);return(-o(t)+tp>0?-1:1)*((i-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-tp,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<ap;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=$u(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}const ap=12;function lp(e,t){return e*Math.sqrt(1-t*t)}const cp=["duration","bounce"],up=["stiffness","damping","mass"];function dp(e,t){return t.some((t=>void 0!==e[t]))}function pp({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:c,duration:u,velocity:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!dp(e,up)&&dp(e,cp)){const n=sp(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...r,velocity:-Hu(r.velocity||0)}),h=d||0,f=l/(2*Math.sqrt(a*c)),m=i-o,g=Hu(Math.sqrt(a/c)),v=Math.abs(m)<5;let b;if(n||(n=v?.01:2),t||(t=v?.005:.5),f<1){const e=lp(g,f);b=t=>{const n=Math.exp(-f*g*t);return i-n*((h+f*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===f)b=e=>i-Math.exp(-g*e)*(m+(h+g*m)*e);else{const e=g*Math.sqrt(f*f-1);b=t=>{const n=Math.exp(-f*g*t),r=Math.min(e*t,300);return i-n*((h+f*g*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:p&&u||null,next:e=>{const r=b(e);if(p)s.done=e>=u;else{let o=h;0!==e&&(o=f<1?ep(b,e,r):0);const a=Math.abs(o)<=n,l=Math.abs(i-r)<=t;s.done=a&&l}return s.value=s.done?i:r,s}}}function hp({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},h=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let f=n*t;const m=d+f,g=void 0===s?m:s(m);g!==m&&(f=g-d);const v=e=>-f*Math.exp(-e/r),b=e=>g+v(e),x=e=>{const t=v(e),n=b(e);p.done=Math.abs(t)<=c,p.value=p.done?g:n};let y,w;const _=e=>{(e=>void 0!==a&&e<a||void 0!==l&&e>l)(p.value)&&(y=e,w=pp({keyframes:[p.value,h(p.value)],velocity:ep(b,e,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return _(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==y||(t=!0,x(e),_(e)),void 0!==y&&e>=y?w.next(e-y):(!t&&x(e),p)}}}const fp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mp=1e-7,gp=12;function vp(e,t,n,r){if(e===t&&n===r)return uu;const o=t=>function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=fp(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>mp&&++a<gp);return s}(t,0,1,e,n);return e=>0===e||1===e?e:fp(o(e),t,r)}const bp=vp(.42,0,1,1),xp=vp(0,0,.58,1),yp=vp(.42,0,.58,1),wp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_p=e=>t=>1-e(1-t),Sp=e=>1-Math.sin(Math.acos(e)),Cp=_p(Sp),kp=wp(Sp),jp=vp(.33,1.53,.69,.99),Ep=_p(jp),Pp=wp(Ep),Tp={linear:uu,easeIn:bp,easeInOut:yp,easeOut:xp,circIn:Sp,circInOut:kp,circOut:Cp,backIn:Ep,backInOut:Pp,backOut:jp,anticipate:e=>(e*=2)<1?.5*Ep(e):.5*(2-Math.pow(2,-10*(e-1)))},Ip=e=>{if(Array.isArray(e)){rd(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return vp(t,n,r,o)}return"string"==typeof e?(rd(void 0!==Tp[e],`Invalid easing type '${e}'`),Tp[e]):e},Mp=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Rp=(e,t,n)=>e+(t-e)*n;function Np(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const Ap=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Dp=[Ed,jd,Pd];function Op(e){const t=(e=>Dp.find((t=>t.test(e))))(e);rd(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Pd&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=Np(a,r,e+1/3),i=Np(a,r,e),s=Np(a,r,e-1/3)}else o=i=s=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*s),alpha:r}}(n)),n}const zp=(e,t)=>{const n=Op(e),r=Op(t),o={...n};return e=>(o.red=Ap(n.red,r.red,e),o.green=Ap(n.green,r.green,e),o.blue=Ap(n.blue,r.blue,e),o.alpha=Rp(n.alpha,r.alpha,e),jd.transform(o))},Lp=new Set(["none","hidden"]);function Fp(e,t){return n=>n>0?t:e}function Bp(e,t){return n=>Rp(e,t,n)}function Vp(e){return"number"==typeof e?Bp:"string"==typeof e?pc(e)?Fp:Td.test(e)?zp:Wp:Array.isArray(e)?$p:"object"==typeof e?Td.test(e)?zp:Hp:Fp}function $p(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>Vp(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function Hp(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Vp(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const Wp=(e,t)=>{const n=Bd.createTransformer(t),r=Od(e),o=Od(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Lp.has(e)&&!o.values.length||Lp.has(t)&&!r.values.length?function(e,t){return Lp.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):Su($p(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][o[s]],l=null!==(n=e.values[a])&&void 0!==n?n:0;r[i]=l,o[s]++}return r}(r,o),o.values),n):(nd(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Fp(e,t))};function Up(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return Rp(e,t,n);return Vp(e)(e,t)}function Gp(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(rd(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],o=n||Up,i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||uu:t;i=Su(e,i)}r.push(i)}return r}(t,r,o),a=s.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Mp(e[n],e[n+1],t);return s[n](r)};return n?t=>l(mc(e[0],e[i-1],t)):l}function Kp(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Mp(0,t,r);e.push(Rp(n,1,o))}}(t,e.length-1),t}function Yp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Ip):Ip(r),i={done:!1,value:t[0]},s=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:Kp(t),e),a=Gp(s,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||yp)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}const qp=e=>{const t=({timestamp:t})=>e(t);return{start:()=>du.update(t,!0),stop:()=>pu(t),now:()=>hu.isProcessing?hu.timestamp:ed.now()}},Xp={decay:hp,inertia:hp,tween:Yp,keyframes:Yp,spring:pp},Zp=e=>e/100;class Jp extends Zd{constructor({KeyframeResolver:e=_d,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:n,motionValue:r,keyframes:o}=this.options,i=(e,t)=>this.onKeyframesResolved(e,t);n&&r&&r.owner?this.resolver=r.owner.resolveKeyframes(o,i,n,r):this.resolver=new e(o,i,n,r),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=this.options,s=Xp[t]||Yp;let a,l;s!==Yp&&"number"!=typeof e[0]&&(a=Su(Zp,Up(e[0],e[1])),e=[0,100]);const c=s({...this.options,keyframes:e});"mirror"===o&&(l=s({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===c.calculatedDuration&&(c.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:i,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:p,repeatType:h,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let b=this.currentTime,x=o;if(p){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,p+1);Boolean(t%2)&&("reverse"===h?(n=1-n,f&&(n-=f/u)):"mirror"===h&&(x=i)),b=mc(0,1,n)*u}const y=v?{done:!1,value:a[0]}:x.next(b);s&&(y.value=s(y.value));let{done:w}=y;v||null===l||(w=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return _&&void 0!==r&&(y.value=Zu(a,this.options,r)),m&&m(y.value),_&&this.finish(),y}get duration(){const{resolved:e}=this;return e?Hu(e.calculatedDuration):0}get time(){return Hu(this.currentTime)}set time(e){e=$u(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Hu(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=qp,onPlay:t}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Qp=e=>Array.isArray(e)&&"number"==typeof e[0];function eh(e){return Boolean(!e||"string"==typeof e&&e in nh||Qp(e)||Array.isArray(e)&&e.every(eh))}const th=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,nh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:th([0,.65,.55,1]),circOut:th([.55,0,1,.45]),backIn:th([.31,.01,.66,-.59]),backOut:th([.33,1.53,.69,.99])};function rh(e){return oh(e)||nh.easeOut}function oh(e){return e?Qp(e)?th(e):Array.isArray(e)?e.map(rh):nh[e]:void 0}const ih=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),sh=new Set(["opacity","clipPath","filter","transform"]);class ah extends Zd{constructor(e){super(e);const{name:t,motionValue:n,keyframes:r}=this.options;this.resolver=new qd(r,((e,t)=>this.onKeyframesResolved(e,t)),t,n),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:o,ease:i,type:s,motionValue:a,name:l}=this.options;if(!(null===(n=a.owner)||void 0===n?void 0:n.current))return!1;if(function(e){return"spring"===e.type||"backgroundColor"===e.name||!eh(e.ease)}(this.options)){const{onComplete:t,onUpdate:n,motionValue:a,...l}=this.options,c=function(e,t){const n=new Jp({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<2e4;)r=n.sample(i),o.push(r.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,l);1===(e=c.keyframes).length&&(e[1]=e[0]),r=c.duration,o=c.times,i=c.ease,s="keyframes"}const c=function(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=oh(a);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(a.owner.current,l,e,{...this.options,duration:r,times:o,ease:i});return c.startTime=ed.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;a.set(Zu(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:o,type:s,ease:i,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Hu(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Hu(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=$u(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return uu;const{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return uu}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:i,times:s}=e;if("idle"!==t.playState&&"finished"!==t.playState){if(this.time){const{motionValue:e,onUpdate:t,onComplete:a,...l}=this.options,c=new Jp({...l,keyframes:n,duration:r,type:o,ease:i,times:s,isGenerator:!0}),u=$u(this.time);e.setWithVelocity(c.sample(u-10).value,c.sample(u).value,10)}this.cancel()}}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;return ih()&&n&&sh.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&"mirror"!==o&&0!==i&&"inertia"!==s}}const lh=(e,t,n,r={},o,i)=>s=>{const a=Yu(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c-=$u(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(a)||(u={...u,...Ku(e,u)}),u.duration&&(u.duration=$u(u.duration)),u.repeatDelay&&(u.repeatDelay=$u(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(d=!0)),(qu||Tl)&&(d=!0,u.duration=0,u.delay=0),d&&!i&&void 0!==t.get()){const e=Zu(u.keyframes,a);if(void 0!==e)return void du.update((()=>{u.onUpdate(e),u.onComplete()}))}return!i&&ah.supports(u)?new ah(u):new Jp(u)};function ch(e){return Boolean(sc(e)&&e.add)}function uh(e,t){-1===e.indexOf(t)&&e.push(t)}function dh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ph{constructor(){this.subscriptions=[]}add(e){return uh(this.subscriptions,e),()=>dh(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const hh={current:void 0};class fh{constructor(e,t={}){this.version="11.2.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=ed.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=ed.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new ph);const n=this.events[e].add(t);return"change"===e?()=>{n(),du.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return hh.current&&hh.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=ed.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Jd(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function mh(e,t){return new fh(e,t)}function gh(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,mh(n))}function vh({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function bh(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;const c=e.getValue("willChange");r&&(s=r);const u=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||d&&vh(d,t))continue;const a={delay:n,elapsed:0,...Yu(s||{},t)};let p=!1;if(window.HandoffAppearAnimations){const n=e.getProps()[Pl];if(n){const e=window.HandoffAppearAnimations(n,t,r,du);null!==e&&(a.elapsed=e,p=!0)}}r.start(lh(t,r,o,e.shouldReduceMotion&&oc.has(t)?{type:!1}:a,e,p));const h=r.animation;h&&(ch(c)&&(c.add(t),h.then((()=>c.remove(t)))),u.push(h))}return a&&Promise.all(u).then((()=>{du.update((()=>{a&&function(e,t){const n=Vu(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)gh(e,t,su(i[t]))}(e,a)}))})),u}function xh(e,t,n={}){var r;const o=Vu(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(bh(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(yh).forEach(((e,r)=>{e.notify("AnimationStart",t),s.push(xh(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(s)}(e,t,o+r,s,a,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[s,a]:[a,s];return e().then((()=>t()))}return Promise.all([s(),a(n.delay)])}function yh(e,t){return e.sortNodePosition(t)}const wh=[...Bl].reverse(),_h=Bl.length;function Sh(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>xh(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=xh(e,t,n);else{const o="function"==typeof t?Vu(e,t,n.custom):t;r=Promise.all(bh(e,o,n))}return r.then((()=>{du.postRender((()=>{e.notify("AnimationComplete",t)}))}))}(e,t,n))))}function Ch(e){let t=Sh(e);const n={animate:jh(!0),whileInView:jh(),whileHover:jh(),whileTap:jh(),whileDrag:jh(),whileFocus:jh(),exit:jh()};let r=!0;const o=t=>(n,r)=>{var o;const i=Vu(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function i(i){const s=e.getProps(),a=e.getVariantContext(!0)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<_h;t++){const p=wh[t],h=n[p],f=void 0!==s[p]?s[p]:a[p],m=Ll(f),g=p===i?h.isActive:null;!1===g&&(d=t);let v=f===a[p]&&f!==s[p]&&m;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...u},!h.isActive&&null===g||!f&&!h.prevProp||Fl(f)||"boolean"==typeof f)continue;let b=kh(h.prevProp,f)||p===i&&h.isActive&&!v&&m||t>d&&m,x=!1;const y=Array.isArray(f)?f:[f];let w=y.reduce(o(p),{});!1===g&&(w={});const{prevResolvedValues:_={}}=h,S={..._,...w},C=t=>{b=!0,c.has(t)&&(x=!0,c.delete(t)),h.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in S){const t=w[e],n=_[e];if(u.hasOwnProperty(e))continue;let r=!1;r=ou(t)&&ou(n)?!Bu(t,n):t!==n,r?null!=t?C(e):c.add(e):void 0!==t&&c.has(e)?C(e):h.protectedKeys[e]=!0}h.prevProp=f,h.prevResolvedValues=w,h.isActive&&(u={...u,...w}),r&&e.blockInitialAnimation&&(b=!1),!b||v&&!x||l.push(...y.map((e=>({animation:e,options:{type:p}}))))}if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=r?r:null})),l.push({animation:t})}let p=Boolean(l.length);return!r||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function kh(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Bu(t,e)}function jh(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Eh=0;const Ph={animation:{Feature:class extends Tu{constructor(e){super(e),e.animationState||(e.animationState=Ch(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Fl(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Tu{constructor(){super(...arguments),this.id=Eh++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Th=(e,t)=>Math.abs(e-t);class Ih{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Nh(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Th(e.x,t.x),r=Th(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=hu;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Mh(t,this.transformPagePoint),du.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Nh("pointercancel"===e.type?this.lastMoveEventInfo:Mh(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!bu(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=Mh(xu(e),this.transformPagePoint),{point:s}=i,{timestamp:a}=hu;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=t;l&&l(e,Nh(i,this.history)),this.removeListeners=Su(wu(this.contextWindow,"pointermove",this.handlePointerMove),wu(this.contextWindow,"pointerup",this.handlePointerUp),wu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),pu(this.updatePoint)}}function Mh(e,t){return t?{point:t(e.point)}:e}function Rh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nh({point:e},t){return{point:e,delta:Rh(e,Dh(t)),offset:Rh(e,Ah(t)),velocity:Oh(t,.1)}}function Ah(e){return e[0]}function Dh(e){return e[e.length-1]}function Oh(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Dh(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>$u(t)));)n--;if(!r)return{x:0,y:0};const i=Hu(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function zh(e){return e.max-e.min}function Lh(e,t=0,n=.01){return Math.abs(e-t)<=n}function Fh(e,t,n,r=.5){e.origin=r,e.originPoint=Rp(t.min,t.max,e.origin),e.scale=zh(n)/zh(t),(Lh(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Rp(n.min,n.max,e.origin)-e.originPoint,(Lh(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Bh(e,t,n,r){Fh(e.x,t.x,n.x,r?r.originX:void 0),Fh(e.y,t.y,n.y,r?r.originY:void 0)}function Vh(e,t,n){e.min=n.min+t.min,e.max=e.min+zh(t)}function $h(e,t,n){e.min=t.min-n.min,e.max=e.min+zh(t)}function Hh(e,t,n){$h(e.x,t.x,n.x),$h(e.y,t.y,n.y)}function Wh(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Uh(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const Gh=.35;function Kh(e,t,n){return{min:Yh(e,t),max:Yh(e,n)}}function Yh(e,t){return"number"==typeof e?e:e[t]||0}const qh=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Xh=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Zh(e){return[e("x"),e("y")]}function Jh({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Qh(e){return void 0===e||1===e}function ef({scale:e,scaleX:t,scaleY:n}){return!Qh(e)||!Qh(t)||!Qh(n)}function tf(e){return ef(e)||nf(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nf(e){return rf(e.x)||rf(e.y)}function rf(e){return e&&"0%"!==e}function of(e,t,n){return n+t*(e-n)}function sf(e,t,n,r,o){return void 0!==o&&(e=of(e,o,r)),of(e,n,r)+t}function af(e,t=0,n=1,r,o){e.min=sf(e.min,t,n,r,o),e.max=sf(e.max,t,n,r,o)}function lf(e,{x:t,y:n}){af(e.x,t.translate,t.scale,t.originPoint),af(e.y,n.translate,n.scale,n.originPoint)}function cf(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function uf(e,t){e.min=e.min+t,e.max=e.max+t}function df(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,s=Rp(e.min,e.max,i);af(e,t[n],t[r],s,t.scale)}const pf=["x","scaleX","originX"],hf=["y","scaleY","originY"];function ff(e,t){df(e.x,t,pf),df(e.y,t,hf)}function mf(e,t){return Jh(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const gf=({current:e})=>e?e.ownerDocument.defaultView:null,vf=new WeakMap;class bf{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Xh(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new Ih(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(xu(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Eu(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Zh((e=>{let t=this.getAxisMotionValue(e).get()||0;if(jc.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=zh(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&du.postRender((()=>o(e,t)));const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Zh((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:gf(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&du.postRender((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!xf(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?Rp(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Rp(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&Ol(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Wh(e.x,n,o),y:Wh(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=Gh){return!1===e?e=0:!0===e&&(e=Gh),{x:Kh(e,"left","right"),y:Kh(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Zh((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ol(e))return!1;const n=e.current;rd(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=mf(e,n),{scroll:o}=t;return o&&(uf(r.x,o.offset.x),uf(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Uh(e.x,t.x),y:Uh(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Jh(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Zh((s=>{if(!xf(s,t,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,d)}));return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(lh(e,n,0,t,this.visualElement))}stopAnimation(){Zh((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){Zh((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Zh((t=>{const{drag:n}=this.getProps();if(!xf(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-Rp(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Ol(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Zh((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=zh(e),o=zh(t);return o>r?n=Mp(t.min,t.max-r,e.min):r>o&&(n=Mp(e.min,e.max-o,t.min)),mc(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Zh((t=>{if(!xf(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Rp(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;vf.set(this.visualElement,this);const e=wu(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Ol(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=vu(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Zh((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Gh,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function xf(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const yf=e=>(t,n)=>{e&&du.postRender((()=>e(t,n)))};const wf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function _f(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Sf={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Ec.test(e))return e;e=parseFloat(e)}return`${_f(e,t.target.x)}% ${_f(e,t.target.y)}%`}},Cf={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Bd.parse(e);if(o.length>5)return r;const i=Bd.createTransformer(e),s="number"!=typeof o[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=Rp(a,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=c),"number"==typeof o[3+s]&&(o[3+s]/=c),i(o)}};class kf extends c.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Ef,Object.assign(nc,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),wf.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||du.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Al.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function jf(e){const[t,n]=function(){const e=(0,c.useContext)(Sl);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=(0,c.useId)();return(0,c.useEffect)((()=>r(o)),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=(0,c.useContext)(Yl);return(0,ze.jsx)(kf,{...e,layoutGroup:r,switchLayoutGroup:(0,c.useContext)(ql),isPresent:t,safeToRemove:n})}const Ef={borderRadius:{...Sf,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Sf,borderTopRightRadius:Sf,borderBottomLeftRadius:Sf,borderBottomRightRadius:Sf,boxShadow:Cf},Pf=["TopLeft","TopRight","BottomLeft","BottomRight"],Tf=Pf.length,If=e=>"string"==typeof e?parseFloat(e):e,Mf=e=>"number"==typeof e||Ec.test(e);function Rf(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Nf=Df(0,.5,Cp),Af=Df(.5,.95,uu);function Df(e,t,n){return r=>r<e?0:r>t?1:n(Mp(e,t,r))}function Of(e,t){e.min=t.min,e.max=t.max}function zf(e,t){Of(e.x,t.x),Of(e.y,t.y)}function Lf(e,t,n,r,o){return e=of(e-=t,1/n,r),void 0!==o&&(e=of(e,1/o,r)),e}function Ff(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){jc.test(t)&&(t=parseFloat(t),t=Rp(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let a=Rp(i.min,i.max,r);e===i&&(a-=t),e.min=Lf(e.min,t,n,a,o),e.max=Lf(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const Bf=["x","scaleX","originX"],Vf=["y","scaleY","originY"];function $f(e,t,n,r){Ff(e.x,t,Bf,n?n.x:void 0,r?r.x:void 0),Ff(e.y,t,Vf,n?n.y:void 0,r?r.y:void 0)}function Hf(e){return 0===e.translate&&1===e.scale}function Wf(e){return Hf(e.x)&&Hf(e.y)}function Uf(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Gf(e){return zh(e.x)/zh(e.y)}class Kf{constructor(){this.members=[]}add(e){uh(this.members,e),e.scheduleRender()}remove(e){if(dh(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Yf(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(null==n?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:s,skewY:a}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),i&&(r+=`rotateY(${i}deg) `),s&&(r+=`skewX(${s}deg) `),a&&(r+=`skewY(${a}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return 1===a&&1===l||(r+=`scale(${a}, ${l})`),r||"none"}const qf=(e,t)=>e.depth-t.depth;class Xf{constructor(){this.children=[],this.isDirty=!1}add(e){uh(this.children,e),this.isDirty=!0}remove(e){dh(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(qf),this.isDirty=!1,this.children.forEach(e)}}const Zf=["","X","Y","Z"],Jf={visibility:"hidden"};let Qf=0;const em={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tm(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function nm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Qf++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;this.projectionUpdateScheduled=!1,em.totalNodes=em.resolvedTargetDeltas=em.recalculatedProjection=0,this.nodes.forEach(im),this.nodes.forEach(pm),this.nodes.forEach(hm),this.nodes.forEach(sm),e=em,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Xf)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ph),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=ed.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(pu(r),e(i-t))};return du.read(r,!0),()=>pu(r)}(r,250),wf.hasAnimatedSinceResize&&(wf.hasAnimatedSinceResize=!1,this.nodes.forEach(dm))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||xm,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!Uf(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Yu(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||dm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,pu(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes&&this.nodes.forEach(fm),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(lm);this.isUpdating||this.nodes.forEach(cm),this.isUpdating=!1,this.nodes.forEach(um),this.nodes.forEach(rm),this.nodes.forEach(om),this.clearAllSnapshots();const e=ed.now();hu.delta=mc(0,1e3/60,e-hu.timestamp),hu.timestamp=e,hu.isProcessing=!0,fu.update.process(hu),fu.preRender.process(hu),fu.render.process(hu),hu.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Al.read((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(am),this.sharedNodes.forEach(mm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,du.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){du.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Xh(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Wf(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||tf(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),_m((r=n).x),_m(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return Xh();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(uf(t.x,n.offset.x),uf(t.y,n.offset.y)),t}removeElementScroll(e){const t=Xh();zf(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){zf(t,e);const{scroll:n}=this.root;n&&(uf(t.x,-n.offset.x),uf(t.y,-n.offset.y))}uf(t.x,o.offset.x),uf(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=Xh();zf(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&ff(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),tf(r.latestValues)&&ff(n,r.latestValues)}return tf(this.latestValues)&&ff(n,this.latestValues),n}removeTransform(e){const t=Xh();zf(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!tf(n.latestValues))continue;ef(n.latestValues)&&n.updateSnapshot();const r=Xh();zf(r,n.measurePageBox()),$f(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return tf(this.latestValues)&&$f(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==hu.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=hu.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Xh(),this.relativeTargetOrigin=Xh(),Hh(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),zf(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target=Xh(),this.targetWithTransforms=Xh()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,Vh(s.x,a.x,l.x),Vh(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):zf(this.target,this.layout.layoutBox),lf(this.target,this.targetDelta)):zf(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Xh(),this.relativeTargetOrigin=Xh(),Hh(this.relativeTargetOrigin,this.target,e.target),zf(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}em.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!ef(this.parent.latestValues)&&!nf(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===hu.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;zf(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,s;t.x=t.y=1;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ff(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,lf(e,s)),r&&tf(i.latestValues)&&ff(e,i.latestValues))}t.x=cf(t.x),t.y=cf(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=Xh());const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta=qh(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=qh(),this.projectionDeltaWithTransform=qh());const c=this.projectionTransform;Bh(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Yf(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),em.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=qh();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s=Xh(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(bm));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;gm(i.x,e.x,n),gm(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hh(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){vm(e.x,t.x,n.x,r),vm(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,s,n),d&&function(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=Xh()),zf(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=Rp(0,void 0!==n.opacity?n.opacity:1,Nf(r)),e.opacityExit=Rp(void 0!==t.opacity?t.opacity:1,0,Af(r))):i&&(e.opacity=Rp(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Tf;o++){const i=`border${Pf[o]}Radius`;let s=Rf(t,i),a=Rf(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||Mf(s)===Mf(a)?(e[i]=Math.max(Rp(If(s),If(a),r),0),(jc.test(a)||jc.test(s))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=Rp(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(pu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=du.update((()=>{wf.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=sc(e)?e:mh(e);return r.start(lh("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Sm(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Xh();const t=zh(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=zh(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}zf(t,n),ff(t,o),Bh(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Kf);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&tm("z",e,r,this.animationValues);for(let t=0;t<Zf.length;t++)tm(`rotate${Zf[t]}`,e,r,this.animationValues),tm(`skew${Zf[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Jf;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=au(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=au(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!tf(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=Yf(this.projectionDeltaWithTransform,this.treeScale,s),o&&(r.transform=o(s,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in nc){if(void 0===s[e])continue;const{correct:t,applyTo:n}=nc[e],o="none"===r.transform?s[e]:t(s[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?au(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(lm),this.root.sharedNodes.clear()}}}function rm(e){e.updateLayout()}function om(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?Zh((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=zh(r);r.min=t[e].min,r.max=r.min+o})):Sm(o,n.layoutBox,t)&&Zh((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=zh(t[r]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)}));const s=qh();Bh(s,t,n.layoutBox);const a=qh();i?Bh(a,e.applyTransform(r,!0),n.measuredBox):Bh(a,t,n.layoutBox);const l=!Wf(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s=Xh();Hh(s,n.layoutBox,o.layoutBox);const a=Xh();Hh(a,t,i.layoutBox),Uf(s,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function im(e){em.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function sm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function am(e){e.clearSnapshot()}function lm(e){e.clearMeasurements()}function cm(e){e.isLayoutDirty=!1}function um(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function dm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function pm(e){e.resolveTargetDelta()}function hm(e){e.calcProjection()}function fm(e){e.resetSkewAndRotation()}function mm(e){e.removeLeadSnapshot()}function gm(e,t,n){e.translate=Rp(t.translate,0,n),e.scale=Rp(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vm(e,t,n,r){e.min=Rp(t.min,n.min,r),e.max=Rp(t.max,n.max,r)}function bm(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const xm={duration:.45,ease:[.4,0,.1,1]},ym=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),wm=ym("applewebkit/")&&!ym("chrome/")?Math.round:uu;function _m(e){e.min=wm(e.min),e.max=wm(e.max)}function Sm(e,t,n){return"position"===e||"preserve-aspect"===e&&!Lh(Gf(t),Gf(n),.2)}const Cm=nm({attachResizeListener:(e,t)=>vu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),km={current:void 0},jm=nm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!km.current){const e=new Cm({});e.mount(window),e.setOptions({layoutScroll:!0}),km.current=e}return km.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Em={pan:{Feature:class extends Tu{constructor(){super(...arguments),this.removePointerDownListener=uu}onPointerDown(e){this.session=new Ih(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gf(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:yf(e),onStart:yf(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&du.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=wu(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Tu{constructor(e){super(e),this.removeGroupControls=uu,this.removeListeners=uu,this.controls=new bf(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||uu}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:jm,MeasureLayout:jf}},Pm={current:null},Tm={current:!1};const Im=new WeakMap,Mm=[...md,Td,Bd],Rm=Object.keys(Kl),Nm=Rm.length,Am=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Dm=Vl.length;function Om(e){if(e)return!1!==e.options.allowProjection?e.projection:Om(e.parent)}class zm{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},s={}){this.resolveKeyframes=(e,t,n,r)=>new this.KeyframeResolver(e,t,n,r,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=_d,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>du.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=$l(t),this.isVariantNode=Hl(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==a[e]&&sc(t)&&(t.set(a[e],!1),ch(c)&&c.add(e))}}mount(e){this.current=e,Im.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Tm.current||function(){if(Tm.current=!0,Cl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Pm.current=e.matches;e.addListener(t),t()}else Pm.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Pm.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var e;Im.delete(this.current),this.projection&&this.projection.unmount(),pu(this.notifyUpdate),pu(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const t in this.features)null===(e=this.features[t])||void 0===e||e.unmount();this.current=null}bindToMotionValue(e,t){const n=oc.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&du.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o){let i,s;for(let e=0;e<Nm;e++){const n=Rm[e],{isEnabled:r,Feature:o,ProjectionNode:a,MeasureLayout:l}=Kl[n];a&&(i=a),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(s=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&i){const{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:l}=t;this.projection=new i(this.latestValues,t["data-framer-portal-id"]?void 0:Om(this.parent)),this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||s&&Ol(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:a,layoutRoot:l})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Xh()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Am.length;t++){const n=Am[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(sc(i))e.addValue(o,i),ch(r)&&r.add(o);else if(sc(s))e.addValue(o,mh(i,{owner:e})),ch(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const t=e.getValue(o);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,mh(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<Dm;e++){const n=Vl[e],r=this.props[n];(Ll(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=mh(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(od(r)||td(r))?r=parseFloat(r):!(e=>Mm.find(fd(e)))(r)&&Bd.test(t)&&(r=Kd(e,t)),this.setBaseTarget(e,sc(r)?r.get():r)),sc(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=nu(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||sc(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new ph),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Lm extends zm{constructor(){super(...arguments),this.KeyframeResolver=qd}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}}class Fm extends Lm{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(oc.has(t)){const e=Gd(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(uc(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return mf(e,t)}build(e,t,n,r){Nc(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Qc(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;sc(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){Xc(e,t,n,r)}}class Bm extends Lm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(oc.has(t)){const e=Gd(t);return e&&e.default||0}return t=Zc.has(t)?t:El(t),e.getAttribute(t)}measureInstanceViewportBox(){return Xh()}scrapeMotionValuesFromProps(e,t,n){return eu(e,t,n)}build(e,t,n,r){Uc(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Jc(e,t,0,r)}mount(e){this.isSVGTag=Kc(e.tagName),super.mount(e)}}const Vm=(e,t)=>tc(e)?new Bm(t,{enableHardwareAcceleration:!1}):new Fm(t,{allowProjection:e!==c.Fragment,enableHardwareAcceleration:!0}),$m={...Ph,...Fu,...Em,...{layout:{ProjectionNode:jm,MeasureLayout:jf}}},Hm=Ql(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...tc(e)?mu:gu,preloadedFeatures:n,useRender:qc(t),createVisualElement:r,Component:e}}(e,t,$m,Vm)));function Wm(){const e=(0,c.useRef)(!1);return kl((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Um(){const e=Wm(),[t,n]=(0,c.useState)(0),r=(0,c.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,c.useCallback)((()=>du.postRender(r)),[r]),t]}class Gm extends c.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Km({children:e,isPresent:t}){const n=(0,c.useId)(),r=(0,c.useRef)(null),o=(0,c.useRef)({width:0,height:0,top:0,left:0}),{nonce:i}=(0,c.useContext)(wl);return(0,c.useInsertionEffect)((()=>{const{width:e,height:s,top:a,left:l}=o.current;if(t||!r.current||!e||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${s}px !important;\n top: ${a}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),(0,ze.jsx)(Gm,{isPresent:t,childRef:r,sizeRef:o,children:c.cloneElement(e,{ref:r})})}const Ym=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=ru(qm),l=(0,c.useId)(),u=(0,c.useMemo)((()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:e=>{a.set(e,!0);for(const e of a.values())if(!e)return;r&&r()},register:e=>(a.set(e,!1),()=>a.delete(e))})),i?[Math.random()]:[n]);return(0,c.useMemo)((()=>{a.forEach(((e,t)=>a.set(t,!1)))}),[n]),c.useEffect((()=>{!n&&!a.size&&r&&r()}),[n]),"popLayout"===s&&(e=(0,ze.jsx)(Km,{isPresent:n,children:e})),(0,ze.jsx)(Sl.Provider,{value:u,children:e})};function qm(){return new Map}const Xm=e=>e.key||"";const Zm=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{rd(!o,"Replace exitBeforeEnter with mode='wait'");const a=(0,c.useContext)(Yl).forceRender||Um()[0],l=Wm(),u=function(e){const t=[];return c.Children.forEach(e,(e=>{(0,c.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const p=(0,c.useRef)(new Map).current,h=(0,c.useRef)(d),f=(0,c.useRef)(new Map).current,m=(0,c.useRef)(!0);var g;if(kl((()=>{m.current=!1,function(e,t){e.forEach((e=>{const n=Xm(e);t.set(n,e)}))}(u,f),h.current=d})),g=()=>{m.current=!0,f.clear(),p.clear()},(0,c.useEffect)((()=>()=>g()),[]),m.current)return(0,ze.jsx)(ze.Fragment,{children:d.map((e=>(0,ze.jsx)(Ym,{isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:i,mode:s,children:e},Xm(e))))});d=[...d];const v=h.current.map(Xm),b=u.map(Xm),x=v.length;for(let e=0;e<x;e++){const t=v[e];-1!==b.indexOf(t)||p.has(t)||p.set(t,void 0)}return"wait"===s&&p.size&&(d=[]),p.forEach(((e,n)=>{if(-1!==b.indexOf(n))return;const o=f.get(n);if(!o)return;const c=v.indexOf(n);let m=e;if(!m){const e=()=>{p.delete(n);const e=Array.from(f.keys()).filter((e=>!b.includes(e)));if(e.forEach((e=>f.delete(e))),h.current=u.filter((t=>{const r=Xm(t);return r===n||e.includes(r)})),!p.size){if(!1===l.current)return;a(),r&&r()}};m=(0,ze.jsx)(Ym,{isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:i,mode:s,children:o},Xm(o)),p.set(n,m)}d.splice(c,0,m)})),d=d.map((e=>{const t=e.key;return p.has(t)?e:(0,ze.jsx)(Ym,{isPresent:!0,presenceAffectsLayout:i,mode:s,children:e},Xm(e))})),(0,ze.jsx)(ze.Fragment,{children:p.size?d:d.map((e=>(0,c.cloneElement)(e)))})},Jm=["40em","52em","64em"],Qm=(e={})=>{const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>Jm.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${Jm.length} breakpoints, got index ${t}`);const[n,r]=(0,Uo.useState)(t);return(0,Uo.useEffect)((()=>{const e=()=>{const e=Jm.filter((e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches)).length;n!==e&&r(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[n]),n};function eg(e,t={}){const n=Qm(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}const tg="4px";function ng(e){if(void 0===e)return;if(!e)return"0";const t="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&window.CSS?.supports?.("margin",e.toString())||Number.isNaN(t)?e.toString():`calc(${tg} * ${e})`}const rg={name:"zjik7",styles:"display:flex"},og={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},ig={name:"82a6rk",styles:"flex:1"},sg={name:"13nosa1",styles:">*{min-height:0;}"},ag={name:"1pwxzk4",styles:">*{min-width:0;}"};function lg(e){const{align:t,className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:s="space-between",wrap:a=!1,...l}=ra(function(e){const{isReversed:t,...n}=e;return void 0!==t?(Ko()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),c=eg(Array.isArray(r)?r:[r]),u="string"==typeof c&&!!c.includes("column"),d=na();return{...l,className:(0,Uo.useMemo)((()=>{const e=Ea({alignItems:null!=t?t:u?"normal":"center",flexDirection:c,flexWrap:a?"wrap":void 0,gap:ng(i),justifyContent:s,height:u&&o?"100%":void 0,width:!u&&o?"100%":void 0},"","");return d(rg,e,u?sg:ag,n)}),[t,n,d,c,o,i,u,s,a]),isColumn:u}}const cg=(0,Uo.createContext)({flexItemDisplay:void 0}),ug=()=>(0,Uo.useContext)(cg);const dg=oa((function(e,t){const{children:n,isColumn:r,...o}=lg(e);return(0,ze.jsx)(cg.Provider,{value:{flexItemDisplay:r?"block":void 0},children:(0,ze.jsx)(ya,{...o,ref:t,children:n})})}),"Flex");function pg(e){const{className:t,display:n,isBlock:r=!1,...o}=ra(e,"FlexItem"),i={},s=ug().flexItemDisplay;i.Base=Ea({display:n||s},"","");return{...o,className:na()(og,i.Base,r&&ig,t)}}const hg=oa((function(e,t){const n=function(e){return pg({isBlock:!0,...ra(e,"FlexBlock")})}(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"FlexBlock"),fg=new RegExp(/-left/g),mg=new RegExp(/-right/g),gg=new RegExp(/Left/g),vg=new RegExp(/Right/g);function bg(e){return"left"===e?"right":"right"===e?"left":fg.test(e)?e.replace(fg,"-right"):mg.test(e)?e.replace(mg,"-left"):gg.test(e)?e.replace(gg,"Right"):vg.test(e)?e.replace(vg,"Left"):e}const xg=(e={})=>Object.fromEntries(Object.entries(e).map((([e,t])=>[bg(e),t])));function yg(e={},t){return()=>t?(0,a.isRTL)()?Ea(t,"",""):Ea(e,"",""):(0,a.isRTL)()?Ea(xg(e),"",""):Ea(e,"","")}yg.watch=()=>(0,a.isRTL)();const wg=e=>null!=e;const _g=oa((function(e,t){const n=function(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:o,marginRight:i,marginTop:s,marginX:a,marginY:l,padding:c,paddingBottom:u,paddingLeft:d,paddingRight:p,paddingTop:h,paddingX:f,paddingY:m,...g}=ra(e,"Spacer");return{...g,className:na()(wg(n)&&Ea("margin:",ng(n),";",""),wg(l)&&Ea("margin-bottom:",ng(l),";margin-top:",ng(l),";",""),wg(a)&&Ea("margin-left:",ng(a),";margin-right:",ng(a),";",""),wg(s)&&Ea("margin-top:",ng(s),";",""),wg(r)&&Ea("margin-bottom:",ng(r),";",""),wg(o)&&yg({marginLeft:ng(o)})(),wg(i)&&yg({marginRight:ng(i)})(),wg(c)&&Ea("padding:",ng(c),";",""),wg(m)&&Ea("padding-bottom:",ng(m),";padding-top:",ng(m),";",""),wg(f)&&Ea("padding-left:",ng(f),";padding-right:",ng(f),";",""),wg(h)&&Ea("padding-top:",ng(h),";",""),wg(u)&&Ea("padding-bottom:",ng(u),";",""),wg(d)&&yg({paddingLeft:ng(d)})(),wg(p)&&yg({paddingRight:ng(p)})(),t)}}(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"Spacer"),Sg=_g,Cg=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),kg=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M7 11.5h10V13H7z"})});const jg=oa((function(e,t){const n=pg(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"FlexItem");const Eg={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};function Pg(e){return null!=e}const Tg=e=>"string"==typeof e?(e=>parseFloat(e))(e):e,Ig="…",Mg={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},Rg={ellipsis:Ig,ellipsizeMode:Mg.auto,limit:0,numberOfLines:0};function Ng(e="",t){const n={...Rg,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===Mg.none)return e;let s,a;switch(o){case Mg.head:s=0,a=i;break;case Mg.middle:s=Math.floor(i/2),a=Math.floor(i/2);break;default:s=i,a=0}const l=o!==Mg.auto?function(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,s=~~n,a=Pg(r)?r:Ig;return 0===i&&0===s||i>=o||s>=o||i+s>=o?e:0===s?e.slice(0,i)+a:e.slice(0,i)+a+e.slice(o-s)}(e,s,a,r):e;return l}function Ag(e){const{className:t,children:n,ellipsis:r=Ig,ellipsizeMode:o=Mg.auto,limit:i=0,numberOfLines:s=0,...a}=ra(e,"Truncate"),l=na();let c;"string"==typeof n?c=n:"number"==typeof n&&(c=n.toString());const u=c?Ng(c,{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:s}):n,d=!!c&&o===Mg.auto;return{...a,className:(0,Uo.useMemo)((()=>l(d&&!s&&Eg,d&&!!s&&Ea(1===s?"word-break: break-all;":""," -webkit-box-orient:vertical;-webkit-line-clamp:",s,";display:-webkit-box;overflow:hidden;",""),t)),[t,l,s,d]),children:u}}var Dg={grad:.9,turn:360,rad:360/(2*Math.PI)},Og=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},zg=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Lg=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Fg=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Bg=function(e){return{r:Lg(e.r,0,255),g:Lg(e.g,0,255),b:Lg(e.b,0,255),a:Lg(e.a)}},Vg=function(e){return{r:zg(e.r),g:zg(e.g),b:zg(e.b),a:zg(e.a,3)}},$g=/^#([0-9a-f]{3,8})$/i,Hg=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Wg=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},Ug=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,a,s,s,l,r][c],g:255*[l,r,r,a,s,s][c],b:255*[s,s,l,r,r,a][c],a:o}},Gg=function(e){return{h:Fg(e.h),s:Lg(e.s,0,100),l:Lg(e.l,0,100),a:Lg(e.a)}},Kg=function(e){return{h:zg(e.h),s:zg(e.s),l:zg(e.l),a:zg(e.a,3)}},Yg=function(e){return Ug((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},qg=function(e){return{h:(t=Wg(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},Xg=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Zg=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Jg=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Qg=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ev={string:[[function(e){var t=$g.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?zg(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?zg(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Jg.exec(e)||Qg.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Bg({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Xg.exec(e)||Zg.exec(e);if(!t)return null;var n,r,o=Gg({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(Dg[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Yg(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return Og(t)&&Og(n)&&Og(r)?Bg({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!Og(t)||!Og(n)||!Og(r))return null;var s=Gg({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return Yg(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!Og(t)||!Og(n)||!Og(r))return null;var s=function(e){return{h:Fg(e.h),s:Lg(e.s,0,100),v:Lg(e.v,0,100),a:Lg(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return Ug(s)},"hsv"]]},tv=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},nv=function(e){return"string"==typeof e?tv(e.trim(),ev.string):"object"==typeof e&&null!==e?tv(e,ev.object):[null,void 0]},rv=function(e,t){var n=qg(e);return{h:n.h,s:Lg(n.s+100*t,0,100),l:n.l,a:n.a}},ov=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},iv=function(e,t){var n=qg(e);return{h:n.h,s:n.s,l:Lg(n.l+100*t,0,100),a:n.a}},sv=function(){function e(e){this.parsed=nv(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return zg(ov(this.rgba),2)},e.prototype.isDark=function(){return ov(this.rgba)<.5},e.prototype.isLight=function(){return ov(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Vg(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?Hg(zg(255*o)):"","#"+Hg(t)+Hg(n)+Hg(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return Vg(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Vg(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return Kg(qg(this.rgba))},e.prototype.toHslString=function(){return t=(e=Kg(qg(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=Wg(this.rgba),{h:zg(e.h),s:zg(e.s),v:zg(e.v),a:zg(e.a,3)};var e},e.prototype.invert=function(){return av({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),av(rv(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),av(rv(this.rgba,-e))},e.prototype.grayscale=function(){return av(rv(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),av(iv(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),av(iv(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?av({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):zg(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=qg(this.rgba);return"number"==typeof e?av({h:e,s:t.s,l:t.l,a:t.a}):zg(t.h)},e.prototype.isEqual=function(e){return this.toHex()===av(e).toHex()},e}(),av=function(e){return e instanceof sv?e:new sv(e)},lv=[],cv=function(e){e.forEach((function(e){lv.indexOf(e)<0&&(e(sv,ev),lv.push(e))}))};function uv(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,s,a=r[this.toHex()];if(a)return a;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!i.length)for(var d in n)i[d]=new e(n[d]).toRgb();for(var p in n){var h=(o=l,s=i[p],Math.pow(o.r-s.r,2)+Math.pow(o.g-s.g,2)+Math.pow(o.b-s.b,2));h<c&&(c=h,u=p)}return u}},t.string.push([function(t){var r=t.toLowerCase(),o="transparent"===r?"#0000":n[r];return o?new e(o).toRgb():null},"name"])}let dv;cv([uv]);const pv=Ci((function(e){if("string"!=typeof e)return"";if("string"==typeof(t=e)&&av(t).isValid())return e;var t;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!dv){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),dv=e}return dv}}();if(!n)return"";n.style.background=e;const r=window?.getComputedStyle(n).background;return n.style.background="",r||""}));function hv(e){const t=function(e){const t=pv(e);return av(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}const fv="36px",mv="12px",gv={controlSurfaceColor:Na.white,controlTextActiveColor:Na.theme.accent,controlPaddingX:mv,controlPaddingXLarge:`calc(${mv} * 1.3334)`,controlPaddingXSmall:`calc(${mv} / 1.3334)`,controlBackgroundColor:Na.white,controlBorderRadius:"2px",controlBoxShadow:"transparent",controlBoxShadowFocus:`0 0 0 0.5px ${Na.theme.accent}`,controlDestructiveBorderColor:Na.alert.red,controlHeight:fv,controlHeightXSmall:`calc( ${fv} * 0.6 )`,controlHeightSmall:`calc( ${fv} * 0.8 )`,controlHeightLarge:`calc( ${fv} * 1.2 )`,controlHeightXLarge:`calc( ${fv} * 1.4 )`},vv={toggleGroupControlBackgroundColor:gv.controlBackgroundColor,toggleGroupControlBorderColor:Na.ui.border,toggleGroupControlBackdropBackgroundColor:gv.controlSurfaceColor,toggleGroupControlBackdropBorderColor:Na.ui.border,toggleGroupControlButtonColorActive:gv.controlBackgroundColor},bv=Object.assign({},gv,vv,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.4",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:`${ng(2)}`,cardPaddingSmall:`${ng(4)}`,cardPaddingMedium:`${ng(4)} ${ng(6)}`,cardPaddingLarge:`${ng(6)} ${ng(8)}`,popoverShadow:"0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1)",surfaceBackgroundColor:Na.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:Na.white,surfaceColor:Na.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"});const xv=Ea("color:",Na.gray[900],";line-height:",bv.fontLineHeightBase,";margin:0;text-wrap:balance;text-wrap:pretty;",""),yv={name:"4zleql",styles:"display:block"},wv=Ea("color:",Na.alert.green,";",""),_v=Ea("color:",Na.alert.red,";",""),Sv=Ea("color:",Na.gray[700],";",""),Cv=Ea("mark{background:",Na.alert.yellow,";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),kv={name:"50zrmy",styles:"text-transform:uppercase"};var jv=o(9664);const Ev=Ci((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t}));const Pv=13,Tv={body:Pv,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},Iv=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function Mv(e=Pv){if(e in Tv)return Mv(Tv[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc(${`(${e} / ${Pv})`} * ${bv.fontSize})`}function Rv(e=3){if(!Iv.includes(e))return Mv(e);return bv[`fontSizeH${e}`]}var Nv={name:"50zrmy",styles:"text-transform:uppercase"};function Av(t){const{adjustLineHeightForInnerControls:n,align:r,children:o,className:i,color:s,ellipsizeMode:a,isDestructive:l=!1,display:c,highlightEscape:u=!1,highlightCaseSensitive:d=!1,highlightWords:p,highlightSanitize:h,isBlock:f=!1,letterSpacing:m,lineHeight:g,optimizeReadabilityFor:v,size:b,truncate:x=!1,upperCase:y=!1,variant:w,weight:_=bv.fontWeight,...S}=ra(t,"Text");let C=o;const k=Array.isArray(p),j="caption"===b;if(k){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");C=function({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:r,caseSensitive:o=!1,children:i,findChunks:s,highlightClassName:a="",highlightStyle:l={},highlightTag:c="mark",sanitize:u,searchWords:d=[],unhighlightClassName:p="",unhighlightStyle:h}){if(!i)return null;if("string"!=typeof i)return i;const f=i,m=(0,jv.findAll)({autoEscape:r,caseSensitive:o,findChunks:s,sanitize:u,searchWords:d,textToHighlight:f}),g=c;let v,b=-1,x="";const y=m.map(((r,i)=>{const s=f.substr(r.start,r.end-r.start);if(r.highlight){let r;b++,r="object"==typeof a?o?a[s]:(a=Ev(a))[s.toLowerCase()]:a;const c=b===+t;x=`${r} ${c?e:""}`,v=!0===c&&null!==n?Object.assign({},l,n):l;const u={children:s,className:x,key:i,style:v};return"string"!=typeof g&&(u.highlightIndex=b),(0,Uo.createElement)(g,u)}return(0,Uo.createElement)("span",{children:s,className:p,key:i,style:h})}));return y}({autoEscape:u,children:o,caseSensitive:d,searchWords:p,sanitize:h})}const E=na();let P;!0===x&&(P="auto"),!1===x&&(P="none");const T=Ag({...S,className:(0,Uo.useMemo)((()=>{const t={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${bv.controlHeight} + ${ng(2)})`;switch(e){case"large":n=`calc(${bv.controlHeightLarge} + ${ng(2)})`;break;case"small":n=`calc(${bv.controlHeightSmall} + ${ng(2)})`;break;case"xSmall":n=`calc(${bv.controlHeightXSmall} + ${ng(2)})`}return n}(n,g);if(t.Base=Ea({color:s,display:c,fontSize:Mv(b),fontWeight:_,lineHeight:o,letterSpacing:m,textAlign:r},"",""),t.upperCase=Nv,t.optimalTextColor=null,v){const e="dark"===hv(v);t.optimalTextColor=Ea(e?{color:Na.gray[900]}:{color:Na.white},"","")}return E(xv,t.Base,t.optimalTextColor,l&&_v,!!k&&Cv,f&&yv,j&&Sv,w&&e[w],y&&t.upperCase,i)}),[n,r,i,s,E,c,f,j,l,k,m,g,v,b,y,w,_]),children:o,ellipsizeMode:a||P});return!x&&Array.isArray(o)&&(C=Uo.Children.map(o,(e=>{if("object"!=typeof e||null===e||!("props"in e))return e;return la(e,["Link"])?(0,Uo.cloneElement)(e,{size:e.props.size||"inherit"}):e}))),{...T,children:x?T.children:C}}const Dv=oa((function(e,t){const n=Av(e);return(0,ze.jsx)(ya,{as:"span",...n,ref:t})}),"Text");const Ov={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"};const zv=ba("span",{target:"em5sgkm7"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),Lv=ba("span",{target:"em5sgkm6"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"}),Fv=({disabled:e,isBorderless:t})=>t?"transparent":e?Na.ui.borderDisabled:Na.ui.border,Bv=ba("div",{target:"em5sgkm5"})("&&&{box-sizing:border-box;border-color:",Fv,";border-radius:inherit;border-style:solid;border-width:1px;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",yg({paddingLeft:2}),";}"),Vv=ba(dg,{target:"em5sgkm4"})("box-sizing:border-box;position:relative;border-radius:2px;padding-top:0;&:focus-within:not( :has( :is( ",zv,", ",Lv," ):focus-within ) ){",Bv,"{border-color:",Na.ui.borderFocus,";box-shadow:",bv.controlBoxShadowFocus,";outline:2px solid transparent;outline-offset:-2px;}}"),$v=({disabled:e})=>Ea({backgroundColor:e?Na.ui.backgroundDisabled:Na.ui.background},"","");var Hv={name:"1d3w5wq",styles:"width:100%"};const Wv=({__unstableInputWidth:e,labelPosition:t})=>e?"side"===t?"":Ea("edge"===t?{flex:`0 0 ${e}`}:{width:e},"",""):Hv,Uv=ba("div",{target:"em5sgkm3"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",$v," ",Wv,";"),Gv=({disabled:e})=>e?Ea({color:Na.ui.textDisabled},"",""):"",Kv=({inputSize:e})=>{const t={default:"13px",small:"11px",compact:"13px","__unstable-large":"13px"},n=t[e]||t.default;return n?Ea("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""},Yv=({inputSize:e,__next40pxDefaultSize:t})=>{const n={default:{height:40,lineHeight:1,minHeight:40,paddingLeft:ng(4),paddingRight:ng(4)},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:ng(2),paddingRight:ng(2)},compact:{height:32,lineHeight:1,minHeight:32,paddingLeft:ng(2),paddingRight:ng(2)},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:ng(4),paddingRight:ng(4)}};return t||(n.default=n.compact),n[e]||n.default},qv=e=>Ea(Yv(e),"",""),Xv=({paddingInlineStart:e,paddingInlineEnd:t})=>Ea({paddingInlineStart:e,paddingInlineEnd:t},"",""),Zv=({isDragging:e,dragCursor:t})=>{let n,r;return e&&(n=Ea("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(r=Ea("&:active{cursor:",t,";}","")),Ea(n," ",r,";","")},Jv=ba("input",{target:"em5sgkm2"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Na.theme.foreground,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",Zv," ",Gv," ",Kv," ",qv," ",Xv," &::-webkit-input-placeholder{line-height:normal;}}"),Qv=ba(Dv,{target:"em5sgkm1"})("&&&{",Ov,";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),eb=e=>(0,ze.jsx)(Qv,{...e,as:"label"}),tb=ba(jg,{target:"em5sgkm0"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"});const nb=(0,Uo.memo)((function({disabled:e=!1,isBorderless:t=!1}){return(0,ze.jsx)(Bv,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isBorderless:t})})),rb=nb;function ob({children:e,hideLabelFromVision:t,htmlFor:n,...r}){return e?t?(0,ze.jsx)(wa,{as:"label",htmlFor:n,children:e}):(0,ze.jsx)(tb,{children:(0,ze.jsx)(eb,{htmlFor:n,...r,children:e})}):null}function ib(e){const{__next36pxDefaultSize:t,__next40pxDefaultSize:n,...r}=e;return{...r,__next40pxDefaultSize:null!=n?n:t}}function sb(e){const t={};switch(e){case"top":t.direction="column",t.expanded=!1,t.gap=0;break;case"bottom":t.direction="column-reverse",t.expanded=!1,t.gap=0;break;case"edge":t.justify="space-between"}return t}function ab(e,t){const{__next40pxDefaultSize:n,__unstableInputWidth:r,children:o,className:i,disabled:s=!1,hideLabelFromVision:a=!1,labelPosition:c,id:u,isBorderless:d=!1,label:p,prefix:h,size:f="default",suffix:m,...g}=ib(ra(e,"InputBase")),v=function(e){const t=(0,l.useInstanceId)(ab);return e||`input-base-control-${t}`}(u),b=a||!p,{paddingLeft:x,paddingRight:y}=Yv({inputSize:f,__next40pxDefaultSize:n}),w=(0,Uo.useMemo)((()=>({InputControlPrefixWrapper:{paddingLeft:x},InputControlSuffixWrapper:{paddingRight:y}})),[x,y]);return(0,ze.jsxs)(Vv,{...g,...sb(c),className:i,gap:2,ref:t,children:[(0,ze.jsx)(ob,{className:"components-input-control__label",hideLabelFromVision:a,labelPosition:c,htmlFor:v,children:p}),(0,ze.jsxs)(Uv,{__unstableInputWidth:r,className:"components-input-control__container",disabled:s,hideLabel:b,labelPosition:c,children:[(0,ze.jsxs)(hi,{value:w,children:[h&&(0,ze.jsx)(zv,{className:"components-input-control__prefix",children:h}),o,m&&(0,ze.jsx)(Lv,{className:"components-input-control__suffix",children:m})]}),(0,ze.jsx)(rb,{disabled:s,isBorderless:d})]})]})}const lb=oa(ab,"InputBase");const cb={toVector:(e,t)=>(void 0===e&&(e=t),Array.isArray(e)?e:[e,e]),add:(e,t)=>[e[0]+t[0],e[1]+t[1]],sub:(e,t)=>[e[0]-t[0],e[1]-t[1]],addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function ub(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function db(e,t,n,r=.15){return 0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-ub(t-e,n-t,r)+t:e>n?+ub(e-n,n-t,r)+n:e}function pb(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function hb(e,t,n){return(t=pb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fb(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 mb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fb(Object(n),!0).forEach((function(t){hb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const gb={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function vb(e){return e?e[0].toUpperCase()+e.slice(1):""}const bb=["enter","leave"];function xb(e,t="",n=!1){const r=gb[e],o=r&&r[t]||t;return"on"+vb(e)+vb(o)+(function(e=!1,t){return e&&!bb.includes(t)}(n,o)?"Capture":"")}const yb=["gotpointercapture","lostpointercapture"];function wb(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=yb.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(r);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:n}}function _b(e){return"touches"in e}function Sb(e){return _b(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function Cb(e){return _b(e)?function(e){return"touchend"===e.type||"touchcancel"===e.type?e.changedTouches:e.targetTouches}(e)[0]:e}function kb(e){return function(e){return Array.from(e.touches).filter((t=>{var n,r;return t.target===e.currentTarget||(null===(n=e.currentTarget)||void 0===n||null===(r=n.contains)||void 0===r?void 0:r.call(n,t.target))}))}(e).map((e=>e.identifier))}function jb(e){const t=Cb(e);return _b(e)?t.identifier:t.pointerId}function Eb(e){const t=Cb(e);return[t.clientX,t.clientY]}function Pb(e,...t){return"function"==typeof e?e(...t):e}function Tb(){}function Ib(...e){return 0===e.length?Tb:1===e.length?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Mb(e,t){return Object.assign({},t,e||{})}class Rb{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:n,args:r}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?Pb(n.from,t):t.offset,t.offset=t.lastOffset,t.startTime=t.timeStamp=e.timeStamp)}computeValues(e){const t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:t,config:n,shared:r}=this;t.args=this.args;let o=0;if(e&&(t.event=e,n.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,function(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}(e)),r.down=r.pressed=r.buttons%2==1||r.touches>0,o=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const e=t._delta.map(Math.abs);cb.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);const[i,s]=t._movement,[a,l]=n.threshold,{_step:c,values:u}=t;if(n.hasCustomTransform?(!1===c[0]&&(c[0]=Math.abs(i)>=a&&u[0]),!1===c[1]&&(c[1]=Math.abs(s)>=l&&u[1])):(!1===c[0]&&(c[0]=Math.abs(i)>=a&&Math.sign(i)*a),!1===c[1]&&(c[1]=Math.abs(s)>=l&&Math.sign(s)*l)),t.intentional=!1!==c[0]||!1!==c[1],!t.intentional)return;const d=[0,0];if(n.hasCustomTransform){const[e,t]=u;d[0]=!1!==c[0]?e-c[0]:0,d[1]=!1!==c[1]?t-c[1]:0}else d[0]=!1!==c[0]?i-c[0]:0,d[1]=!1!==c[1]?s-c[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(d);const p=t.offset,h=t._active&&!t._blocked||t.active;h&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e&&(t.first&&("bounds"in n&&(t._bounds=Pb(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[f,m]=t.offset,[[g,v],[b,x]]=t._bounds;t.overflow=[f<g?-1:f>v?1:0,m<b?-1:m>x?1:0],t._movementBound[0]=!!t.overflow[0]&&(!1===t._movementBound[0]?t._movement[0]:t._movementBound[0]),t._movementBound[1]=!!t.overflow[1]&&(!1===t._movementBound[1]?t._movement[1]:t._movementBound[1]);const y=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,o]){const[[i,s],[a,l]]=e;return[db(t,i,s,r),db(n,a,l,o)]}(t._bounds,t.offset,y),t.delta=cb.sub(t.offset,p),this.computeMovement(),h&&(!t.last||o>32)){t.delta=cb.sub(t.offset,p);const e=t.delta.map(Math.abs);cb.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&o>0&&(t.velocity=[e[0]/o,e[1]/o],t.timeDelta=o)}}emit(){const e=this.state,t=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const r=this.handler(mb(mb(mb({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class Nb extends Rb{constructor(...e){super(...e),hb(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=cb.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=cb.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const t=this.state,n=this.config;if(!t.axis&&e){const r="object"==typeof n.axisThreshold?n.axisThreshold[Sb(e)]:n.axisThreshold;t.axis=function([e,t],n){const r=Math.abs(e),o=Math.abs(t);return r>o&&r>n?"x":o>r&&o>n?"y":void 0}(t._movement,r)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0}}}const Ab=e=>e,Db={enabled:(e=!0)=>e,eventOptions:(e,t,n)=>mb(mb({},n.shared.eventOptions),e),preventDefault:(e=!1)=>e,triggerAllEvents:(e=!1)=>e,rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return cb.toVector(e)}},from:e=>"function"==typeof e?e:null!=e?cb.toVector(e):void 0,transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||Ab},threshold:e=>cb.toVector(e,0)};const Ob=mb(mb({},Db),{},{axis(e,t,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold:(e=0)=>e,bounds(e={}){if("function"==typeof e)return t=>Ob.bounds(e(t));if("current"in e)return()=>e.current;if("function"==typeof HTMLElement&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),zb={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};const Lb="undefined"!=typeof window&&window.document&&window.document.createElement;function Fb(){return Lb&&"ontouchstart"in window}const Bb={isBrowser:Lb,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:Fb(),touchscreen:Fb()||Lb&&window.navigator.maxTouchPoints>1,pointer:Lb&&"onpointerdown"in window,pointerLock:Lb&&"exitPointerLock"in window.document},Vb={mouse:0,touch:0,pen:8},$b=mb(mb({},Ob),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&Bb.pointerLock,Bb.touch&&n?"touch":this.pointerLock?"mouse":Bb.pointer&&!o?"pointer":Bb.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,Bb.touchscreen&&!1!==n)return e||(void 0!==n?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&"pointer"===this.device&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o}){const i=cb.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=.5,distance:t=50,duration:n=250}={}){return{velocity:this.transform(cb.toVector(e)),distance:this.transform(cb.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold:e=>e?mb(mb({},Vb),e):Vb,keyboardDisplacement:(e=10)=>e});mb(mb({},Db),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!Bb.touch&&Bb.gesture)return"gesture";if(Bb.touch&&r)return"touch";if(Bb.touchscreen){if(Bb.pointer)return"pointer";if(Bb.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=Mb(Pb(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=Mb(Pb(r,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof n&&"function"!=typeof r?[o(),i()]:e=>[o(e),i(e)]},threshold(e,t,n){this.lockDirection="lock"===n.axis;return cb.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey:e=>void 0===e?"ctrlKey":e,pinchOnWheel:(e=!0)=>e});mb(mb({},Ob),{},{mouseOnly:(e=!0)=>e});mb(mb({},Ob),{},{mouseOnly:(e=!0)=>e});const Hb=new Map,Wb=new Map;const Ub={key:"drag",engine:class extends Nb{constructor(...e){super(...e),hb(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),r={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=Ob.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout((()=>{this.compute(),this.emit()}),0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const t=this.config,n=this.state;if(null!=e.buttons&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):-1!==t.pointerButtons&&t.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),r&&r.size>1&&n._pointerActive||(this.start(e),this.setupPointer(e),n._pointerId=jb(e),n._pointerActive=!0,this.computeValues(Eb(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==Sb(e)?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,n=this.config;if(!t._pointerActive)return;const r=jb(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;const o=Eb(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=cb.sub(o,t._values),this.computeValues(o)),cb.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional?(this.timeoutStore.remove("dragDelay"),t.active=!1,void this.startPointerDrag(e)):n.preventScrollAxis&&!t._preventScroll?t.axis?t.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis?(t._active=!1,void this.clean()):(this.timeoutStore.remove("startPointerDrag"),void this.startPointerDrag(e)):void 0:void this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(e){0}const t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;const r=jb(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,i]=t._distance;if(t.tap=o<=n.tapsThreshold&&i<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{const[e,r]=t._delta,[o,i]=t._movement,[s,a]=n.swipe.velocity,[l,c]=n.swipe.distance,u=n.swipe.duration;if(t.elapsedTime<u){const n=Math.abs(e/t.timeDelta),u=Math.abs(r/t.timeDelta);n>s&&Math.abs(o)>l&&(t.swipe[0]=Math.sign(e)),u>a&&Math.abs(i)>c&&(t.swipe[1]=Math.sign(r))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,function(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}(e);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",(()=>{this.state._step=[0,0],this.startPointerDrag(e)}),this.config.delay)}keyDown(e){const t=zb[e.key];if(t){const n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(this.config.keyboardDisplacement,r),n._keyboardActive=!0,cb.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in zb&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:$b};function Gb(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Kb={target(e){if(e)return()=>"current"in e?e.current:e},enabled:(e=!0)=>e,window:(e=(Bb.isBrowser?window:void 0))=>e,eventOptions:({passive:e=!0,capture:t=!1}={})=>({passive:e,capture:t}),transform:e=>e},Yb=["target","eventOptions","window","enabled","transform"];function qb(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=qb(e[r],o);break;case"boolean":o&&(n[r]=e[r])}return n}class Xb{constructor(e,t){hb(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,r,o){const i=this._listeners,s=function(e,t=""){const n=gb[e];return e+(n&&n[t]||t)}(t,n),a=mb(mb({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),o);e.addEventListener(s,r,a);const l=()=>{e.removeEventListener(s,r,a),i.delete(l)};return i.add(l),l}clean(){this._listeners.forEach((e=>e())),this._listeners.clear()}}class Zb{constructor(){hb(this,"_timeouts",new Map)}add(e,t,n=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,n,...r))}remove(e){const t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach((e=>{window.clearTimeout(e)})),this._timeouts.clear()}}class Jb{constructor(e){hb(this,"gestures",new Set),hb(this,"_targetEventStore",new Xb(this)),hb(this,"gestureEventStores",{}),hb(this,"gestureTimeoutStores",{}),hb(this,"handlers",{}),hb(this,"config",{}),hb(this,"pointerIds",new Set),hb(this,"touchIds",new Set),hb(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&Qb(e,"drag");t.wheel&&Qb(e,"wheel");t.scroll&&Qb(e,"scroll");t.move&&Qb(e,"move");t.pinch&&Qb(e,"pinch");t.hover&&Qb(e,"hover")}(this,e)}setEventIds(e){return _b(e)?(this.touchIds=new Set(kb(e)),this.touchIds):"pointerId"in e?("pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds):void 0}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=function(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:a,transform:l}=r,c=Gb(r,Yb);if(n.shared=qb({target:o,eventOptions:i,window:s,enabled:a,transform:l},Kb),t){const e=Wb.get(t);n[t]=qb(mb({shared:n.shared},c),e)}else for(const e in c){const t=Wb.get(e);t&&(n[e]=qb(mb({shared:n.shared},c[e]),t))}return n}(e,t,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared,n={};let r;if(!t.target||(r=t.target(),r)){if(t.enabled){for(const t of this.gestures){const o=this.config[t],i=ex(n,o.eventOptions,!!r);if(o.enabled){new(Hb.get(t))(this,e,t).bind(i)}}const o=ex(n,t.eventOptions,!!r);for(const t in this.nativeHandlers)o(t,"",(n=>this.nativeHandlers[t](mb(mb({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(const e in n)n[e]=Ib(...n[e]);if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=wb(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}}function Qb(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Xb(e,t),e.gestureTimeoutStores[t]=new Zb}const ex=(e,t,n)=>(r,o,i,s={},a=!1)=>{var l,c;const u=null!==(l=s.capture)&&void 0!==l?l:t.capture,d=null!==(c=s.passive)&&void 0!==c?c:t.passive;let p=a?r:xb(r,o,u);n&&d&&(p+="Passive"),e[p]=e[p]||[],e[p].push(i)};function tx(e,t={},n,r){const o=d().useMemo((()=>new Jb(e)),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),d().useEffect(o.effect.bind(o)),d().useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}function nx(e,t){var n;return n=Ub,Hb.set(n.key,n.engine),Wb.set(n.key,n.resolver),tx({drag:e},t||{},"drag")}const rx=e=>e,ox={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},ix="CHANGE",sx="COMMIT",ax="CONTROL",lx="DRAG_END",cx="DRAG_START",ux="DRAG",dx="INVALIDATE",px="PRESS_DOWN",hx="PRESS_ENTER",fx="PRESS_UP",mx="RESET";function gx(e=rx,t=ox,n){const[r,o]=(0,Uo.useReducer)((i=e,(e,t)=>{const n={...e};switch(t.type){case ax:return n.value=t.payload.value,n.isDirty=!1,n._event=void 0,n;case fx:case px:n.isDirty=!1;break;case cx:n.isDragging=!0;break;case lx:n.isDragging=!1;break;case ix:n.error=null,n.value=t.payload.value,e.isPressEnterToChange&&(n.isDirty=!0);break;case sx:n.value=t.payload.value,n.isDirty=!1;break;case mx:n.error=null,n.isDirty=!1,n.value=t.payload.value||e.initialValue;break;case dx:n.error=t.payload.error}return n._event=t.payload.event,i(n,t)}),function(e=ox){const{value:t}=e;return{...ox,...e,initialValue:t}}(t));var i;const s=e=>(t,n)=>{o({type:e,payload:{value:t,event:n}})},a=e=>t=>{o({type:e,payload:{event:t}})},l=e=>t=>{o({type:e,payload:t})},c=s(ix),u=s(mx),d=s(sx),p=l(cx),h=l(ux),f=l(lx),m=a(fx),g=a(px),v=a(hx),b=(0,Uo.useRef)(r),x=(0,Uo.useRef)({value:t.value,onChangeHandler:n});return(0,Uo.useLayoutEffect)((()=>{b.current=r,x.current={value:t.value,onChangeHandler:n}})),(0,Uo.useLayoutEffect)((()=>{var e;void 0===b.current._event||r.value===x.current.value||r.isDirty||x.current.onChangeHandler(null!==(e=r.value)&&void 0!==e?e:"",{event:b.current._event})}),[r.value,r.isDirty]),(0,Uo.useLayoutEffect)((()=>{var e;t.value===b.current.value||b.current.isDirty||o({type:ax,payload:{value:null!==(e=t.value)&&void 0!==e?e:""}})}),[t.value]),{change:c,commit:d,dispatch:o,drag:h,dragEnd:f,dragStart:p,invalidate:(e,t)=>o({type:dx,payload:{error:e,event:t}}),pressDown:g,pressEnter:v,pressUp:m,reset:u,state:r}}function vx(e){return t=>{const{isComposing:n}="nativeEvent"in t?t.nativeEvent:t;n||229===t.keyCode||e(t)}}const bx=()=>{};const xx=(0,Uo.forwardRef)((function({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:r,isDragEnabled:o=!1,isPressEnterToChange:i=!1,onBlur:s=bx,onChange:a=bx,onDrag:l=bx,onDragEnd:c=bx,onDragStart:u=bx,onKeyDown:d=bx,onValidate:p=bx,size:h="default",stateReducer:f=(e=>e),value:m,type:g,...v},b){const{state:x,change:y,commit:w,drag:_,dragEnd:S,dragStart:C,invalidate:k,pressDown:j,pressEnter:E,pressUp:P,reset:T}=gx(f,{isDragEnabled:o,value:m,isPressEnterToChange:i},a),{value:I,isDragging:M,isDirty:R}=x,N=(0,Uo.useRef)(!1),A=function(e,t){const n=function(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return(0,Uo.useEffect)((()=>{document.documentElement.style.cursor=e?n:null}),[e,n]),n}(M,t),D=e=>{const t=e.currentTarget.value;try{p(t),w(t,e)}catch(t){k(t,e)}},O=nx((e=>{const{distance:t,dragging:n,event:r,target:o}=e;if(e.event={...e.event,target:o},t){if(r.stopPropagation(),!n)return c(e),void S(e);l(e),_(e),M||(u(e),C(e))}}),{axis:"e"===t||"w"===t?"x":"y",threshold:n,enabled:o,pointer:{capture:!1}}),z=o?O():{};let L;return"number"===g&&(L=e=>{v.onMouseDown?.(e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),(0,ze.jsx)(Jv,{...v,...z,className:"components-input-control__input",disabled:e,dragCursor:A,isDragging:M,id:r,onBlur:e=>{s(e),!R&&e.target.validity.valid||(N.current=!0,D(e))},onChange:e=>{const t=e.target.value;y(t,e)},onKeyDown:vx((e=>{const{key:t}=e;switch(d(e),t){case"ArrowUp":P(e);break;case"ArrowDown":j(e);break;case"Enter":E(e),i&&(e.preventDefault(),D(e));break;case"Escape":i&&R&&(e.preventDefault(),T(m,e))}})),onMouseDown:L,ref:b,inputSize:h,value:null!=I?I:"",type:g})})),yx=xx,wx={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function _x(e){var t;return null!==(t=wx[e])&&void 0!==t?t:""}const Sx={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};const Cx=ba("div",{target:"ej5x27r4"})("font-family:",_x("default.fontFamily"),";font-size:",_x("default.fontSize"),";",Sx,";"),kx=({__nextHasNoMarginBottom:e=!1})=>!e&&Ea("margin-bottom:",ng(2),";",""),jx=ba("div",{target:"ej5x27r3"})(kx," .components-panel__row &{margin-bottom:inherit;}"),Ex=Ea(Ov,";display:inline-block;margin-bottom:",ng(2),";padding:0;",""),Px=ba("label",{target:"ej5x27r2"})(Ex,";");var Tx={name:"11yad0w",styles:"margin-bottom:revert"};const Ix=({__nextHasNoMarginBottom:e=!1})=>!e&&Tx,Mx=ba("p",{target:"ej5x27r1"})("margin-top:",ng(2),";margin-bottom:0;font-size:",_x("helpText.fontSize"),";font-style:normal;color:",Na.gray[700],";",Ix,";"),Rx=ba("span",{target:"ej5x27r0"})(Ex,";"),Nx=({className:e,children:t,...n})=>(0,ze.jsx)(Rx,{...n,className:s("components-base-control__label",e),children:t}),Ax=Object.assign(ia((e=>{const{__nextHasNoMarginBottom:t=!1,id:n,label:r,hideLabelFromVision:o=!1,help:i,className:s,children:a}=ra(e,"BaseControl");return(0,ze.jsxs)(Cx,{className:s,children:[(0,ze.jsxs)(jx,{className:"components-base-control__field",__nextHasNoMarginBottom:t,children:[r&&n&&(o?(0,ze.jsx)(wa,{as:"label",htmlFor:n,children:r}):(0,ze.jsx)(Px,{className:"components-base-control__label",htmlFor:n,children:r})),r&&!n&&(o?(0,ze.jsx)(wa,{as:"label",children:r}):(0,ze.jsx)(Nx,{children:r})),a]}),!!i&&(0,ze.jsx)(Mx,{id:n?n+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t,children:i})]})}),"BaseControl"),{VisualLabel:Nx}),Dx=Ax,Ox=()=>{};const zx=(0,Uo.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,__unstableStateReducer:r=(e=>e),__unstableInputWidth:o,className:i,disabled:a=!1,help:c,hideLabelFromVision:u=!1,id:d,isPressEnterToChange:p=!1,label:h,labelPosition:f="top",onChange:m=Ox,onValidate:g=Ox,onKeyDown:v=Ox,prefix:b,size:x="default",style:y,suffix:w,value:_,...S}=ib(e),C=function(e){const t=(0,l.useInstanceId)(zx);return e||`inspector-input-control-${t}`}(d),k=s("components-input-control",i),j=function(e){const t=(0,Uo.useRef)(e.value),[n,r]=(0,Uo.useState)({}),o=void 0!==n.value?n.value:e.value;return(0,Uo.useLayoutEffect)((()=>{const{current:o}=t;t.current=e.value,void 0===n.value||n.isStale?n.isStale&&e.value!==o&&r({}):r({...n,isStale:!0})}),[e.value,n]),{value:o,onBlur:t=>{r({}),e.onBlur?.(t)},onChange:(t,n)=>{r((e=>Object.assign(e,{value:t,isStale:!1}))),e.onChange(t,n)}}}({value:_,onBlur:S.onBlur,onChange:m}),E=c?{"aria-describedby":`${C}__help`}:{};return(0,ze.jsx)(Dx,{className:k,help:c,id:C,__nextHasNoMarginBottom:!0,children:(0,ze.jsx)(lb,{__next40pxDefaultSize:n,__unstableInputWidth:o,disabled:a,gap:3,hideLabelFromVision:u,id:C,justify:"left",label:h,labelPosition:f,prefix:b,size:x,style:y,suffix:w,children:(0,ze.jsx)(yx,{...S,...E,__next40pxDefaultSize:n,className:"components-input-control__input",disabled:a,id:C,isPressEnterToChange:p,onKeyDown:v,onValidate:g,paddingInlineStart:b?ng(2):void 0,paddingInlineEnd:w?ng(2):void 0,ref:t,size:x,stateReducer:r,...j})})})})),Lx=zx;const Fx=function({icon:e,className:t,size:n=20,style:r={},...o}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),s={...20!=n?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...r};return(0,ze.jsx)("span",{className:i,style:s,...o})};const Bx=function({icon:e=null,size:t=("string"==typeof e?20:24),...r}){if("string"==typeof e)return(0,ze.jsx)(Fx,{icon:e,size:t,...r});if((0,Uo.isValidElement)(e)&&Fx===e.type)return(0,Uo.cloneElement)(e,{...r});if("function"==typeof e)return(0,Uo.createElement)(e,{size:t,...r});if(e&&("svg"===e.type||e.type===n.SVG)){const o={...e.props,width:t,height:t,...r};return(0,ze.jsx)(n.SVG,{...o})}return(0,Uo.isValidElement)(e)?(0,Uo.cloneElement)(e,{size:t,...r}):e},Vx=["onMouseDown","onClick"];const $x=(0,Uo.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,isBusy:r,isDestructive:o,className:i,disabled:a,icon:c,iconPosition:u="left",iconSize:d,showTooltip:p,tooltipPosition:h,shortcut:f,label:m,children:g,size:v="default",text:b,variant:x,__experimentalIsFocusable:y,describedBy:w,..._}=function({isDefault:e,isPrimary:t,isSecondary:n,isTertiary:r,isLink:o,isPressed:i,isSmall:s,size:a,variant:l,...c}){let u=a,d=l;const p={"aria-pressed":i};var h,f,m,g,v,b;return s&&(null!==(h=u)&&void 0!==h||(u="small")),t&&(null!==(f=d)&&void 0!==f||(d="primary")),r&&(null!==(m=d)&&void 0!==m||(d="tertiary")),n&&(null!==(g=d)&&void 0!==g||(d="secondary")),e&&(Ko()("wp.components.Button `isDefault` prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(v=d)&&void 0!==v||(d="secondary")),o&&(null!==(b=d)&&void 0!==b||(d="link")),{...p,...c,size:u,variant:d}}(e),{href:S,target:C,"aria-checked":k,"aria-pressed":j,"aria-selected":E,...P}="href"in _?_:{href:void 0,target:void 0,..._},T=(0,l.useInstanceId)($x,"components-button__description"),I="string"==typeof g&&!!g||Array.isArray(g)&&g?.[0]&&null!==g[0]&&"components-tooltip"!==g?.[0]?.props?.className,M=s("components-button",i,{"is-next-40px-default-size":n,"is-secondary":"secondary"===x,"is-primary":"primary"===x,"is-small":"small"===v,"is-compact":"compact"===v,"is-tertiary":"tertiary"===x,"is-pressed":[!0,"true","mixed"].includes(j),"is-pressed-mixed":"mixed"===j,"is-busy":r,"is-link":"link"===x,"is-destructive":o,"has-text":!!c&&(I||b),"has-icon":!!c}),R=a&&!y,N=void 0===S||R?"button":"a",A="button"===N?{type:"button",disabled:R,"aria-checked":k,"aria-pressed":j,"aria-selected":E}:{},D="a"===N?{href:S,target:C}:{},O={};if(a&&y){A["aria-disabled"]=!0,D["aria-disabled"]=!0;for(const e of Vx)O[e]=e=>{e&&(e.stopPropagation(),e.preventDefault())}}const z=!R&&(p&&!!m||!!f||!!m&&!g?.length&&!1!==p),L=w?T:void 0,F=P["aria-describedby"]||L,B={className:M,"aria-label":P["aria-label"]||m,"aria-describedby":F,ref:t},V=(0,ze.jsxs)(ze.Fragment,{children:[c&&"left"===u&&(0,ze.jsx)(Bx,{icon:c,size:d}),b&&(0,ze.jsx)(ze.Fragment,{children:b}),g,c&&"right"===u&&(0,ze.jsx)(Bx,{icon:c,size:d})]}),$="a"===N?(0,ze.jsx)("a",{...D,...P,...O,...B,children:V}):(0,ze.jsx)("button",{...A,...P,...O,...B,children:V}),H=z?{text:g?.length&&w?w:m,shortcut:f,placement:h&&Xo(h)}:{};return(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(ri,{...H,children:$}),w&&(0,ze.jsx)(wa,{children:(0,ze.jsx)("span",{id:L,children:w})})]})})),Hx=$x;var Wx={name:"euqsgg",styles:"input[type='number']::-webkit-outer-spin-button,input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}input[type='number']{-moz-appearance:textfield;}"};const Ux=({hideHTMLArrows:e})=>e?Wx:"",Gx=ba(Lx,{target:"ep09it41"})(Ux,";"),Kx=ba(Hx,{target:"ep09it40"})("&&&&&{color:",Na.theme.accent,";}"),Yx={smallSpinButtons:Ea("width:",ng(5),";min-width:",ng(5),";height:",ng(5),";","")};function qx(e){const t=Number(e);return isNaN(t)?0:t}function Xx(...e){return e.reduce(((e,t)=>e+qx(t)),0)}function Zx(e,t,n){const r=qx(e);return Math.max(t,Math.min(r,n))}function Jx(e=0,t=1/0,n=1/0,r=1){const o=qx(e),i=qx(r),s=function(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}(r),a=Zx(Math.round(o/i)*i,t,n);return s?qx(a.toFixed(s)):a}const Qx={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-end",justify:"flex-start"},bottomRight:{align:"flex-end",justify:"flex-end"},center:{align:"center",justify:"center"},edge:{align:"center",justify:"space-between"},left:{align:"center",justify:"flex-start"},right:{align:"center",justify:"flex-end"},stretch:{align:"stretch"},top:{align:"flex-start",justify:"center"},topLeft:{align:"flex-start",justify:"flex-start"},topRight:{align:"flex-start",justify:"flex-end"}},ey={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-end",align:"flex-start"},bottomRight:{justify:"flex-end",align:"flex-end"},center:{justify:"center",align:"center"},edge:{justify:"space-between",align:"center"},left:{justify:"center",align:"flex-start"},right:{justify:"center",align:"flex-end"},stretch:{align:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function ty(e){return"string"==typeof e?[e]:Uo.Children.toArray(e).filter((e=>(0,Uo.isValidElement)(e)))}function ny(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...i}=ra(e,"HStack"),s=function(e,t="row"){if(!Pg(e))return{};const n="column"===t?ey:Qx;return e in n?n[e]:{align:e}}(t,r),a=ty(n).map(((e,t)=>{if(la(e,["Spacer"])){const n=e,r=n.key||`hstack-${t}`;return(0,ze.jsx)(jg,{isBlock:!0,...n.props},r)}return e})),l={children:a,direction:r,justify:"center",...s,...i,gap:o},{isColumn:c,...u}=lg(l);return u}const ry=oa((function(e,t){const n=ny(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"HStack"),oy=()=>{};const iy=(0,Uo.forwardRef)((function(e,t){const{__unstableStateReducer:n,className:r,dragDirection:o="n",hideHTMLArrows:i=!1,spinControls:c=(i?"none":"native"),isDragEnabled:u=!0,isShiftStepEnabled:d=!0,label:p,max:h=1/0,min:f=-1/0,required:m=!1,shiftStep:g=10,step:v=1,spinFactor:b=1,type:x="number",value:y,size:w="default",suffix:_,onChange:S=oy,...C}=ib(e);i&&Ko()("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"});const k=(0,Uo.useRef)(),j=(0,l.useMergeRefs)([k,t]),E="any"===v,P=E?1:Tg(v),T=Tg(b)*P,I=Jx(0,f,h,P),M=(e,t)=>E?""+Math.min(h,Math.max(f,Tg(e))):""+Jx(e,f,h,null!=t?t:P),R="number"===x?"off":void 0,N=s("components-number-control",r),A=na()("small"===w&&Yx.smallSpinButtons),D=(e,t,n)=>{n?.preventDefault();const r=n?.shiftKey&&d,o=r?Tg(g)*T:T;let i=function(e){const t=""===e;return!Pg(e)||t}(e)?I:e;return"up"===t?i=Xx(i,o):"down"===t&&(i=function(...e){return e.reduce(((e,t,n)=>{const r=qx(t);return 0===n?r:e-r}),0)}(i,o)),M(i,r?o:void 0)},O=e=>t=>S(String(D(y,e,t)),{event:{...t,target:k.current}});return(0,ze.jsx)(Gx,{autoComplete:R,inputMode:"numeric",...C,className:N,dragDirection:o,hideHTMLArrows:"native"!==c,isDragEnabled:u,label:p,max:h,min:f,ref:j,required:m,step:v,type:x,value:y,__unstableStateReducer:(e,t)=>{var r;const i=((e,t)=>{const n={...e},{type:r,payload:i}=t,s=i.event,l=n.value;if(r!==fx&&r!==px||(n.value=D(l,r===fx?"up":"down",s)),r===ux&&u){const[e,t]=i.delta,r=i.shiftKey&&d,s=r?Tg(g)*T:T;let c,u;switch(o){case"n":u=t,c=-1;break;case"e":u=e,c=(0,a.isRTL)()?-1:1;break;case"s":u=t,c=1;break;case"w":u=e,c=(0,a.isRTL)()?1:-1}if(0!==u){u=Math.ceil(Math.abs(u))*Math.sign(u);const e=u*s*c;n.value=M(Xx(l,e),r?s:void 0)}}if(r===hx||r===sx){const e=!1===m&&""===l;n.value=e?l:M(l)}return n})(e,t);return null!==(r=n?.(i,t))&&void 0!==r?r:i},size:w,suffix:"custom"===c?(0,ze.jsxs)(ze.Fragment,{children:[_,(0,ze.jsx)(Sg,{marginBottom:0,marginRight:2,children:(0,ze.jsxs)(ry,{spacing:1,children:[(0,ze.jsx)(Kx,{className:A,icon:Cg,size:"small",label:(0,a.__)("Increment"),onClick:O("up")}),(0,ze.jsx)(Kx,{className:A,icon:kg,size:"small",label:(0,a.__)("Decrement"),onClick:O("down")})]})})]}):_,onChange:S})})),sy=iy;const ay=ba("div",{target:"eln3bjz3"})("border-radius:50%;border:",bv.borderWidth," solid ",Na.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;:active{cursor:grabbing;}"),ly=ba("div",{target:"eln3bjz2"})({name:"1r307gh",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"}),cy=ba("div",{target:"eln3bjz1"})("background:",Na.theme.accent,";border-radius:50%;box-sizing:border-box;display:block;left:50%;top:4px;transform:translateX( -50% );position:absolute;width:",6,"px;height:",6,"px;"),uy=ba(Dv,{target:"eln3bjz0"})("color:",Na.theme.accent,";margin-right:",ng(3),";");const dy=function({value:e,onChange:t,...n}){const r=(0,Uo.useRef)(null),o=(0,Uo.useRef)(),i=(0,Uo.useRef)(),s=e=>{if(void 0!==e&&(e.preventDefault(),e.target?.focus(),void 0!==o.current&&void 0!==t)){const{x:n,y:r}=o.current;t(function(e,t,n,r){const o=r-t,i=n-e,s=Math.atan2(o,i),a=Math.round(s*(180/Math.PI))+90;if(a<0)return 360+a;return a}(n,r,e.clientX,e.clientY))}},{startDrag:a,isDragging:c}=(0,l.__experimentalUseDragging)({onDragStart:e=>{(()=>{if(null===r.current)return;const e=r.current.getBoundingClientRect();o.current={x:e.x+e.width/2,y:e.y+e.height/2}})(),s(e)},onDragMove:s,onDragEnd:s});return(0,Uo.useEffect)((()=>{c?(void 0===i.current&&(i.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=i.current||"",i.current=void 0)}),[c]),(0,ze.jsx)(ay,{ref:r,onMouseDown:a,className:"components-angle-picker-control__angle-circle",...n,children:(0,ze.jsx)(ly,{style:e?{transform:`rotate(${e}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1,children:(0,ze.jsx)(cy,{className:"components-angle-picker-control__angle-circle-indicator"})})})};const py=(0,Uo.forwardRef)((function(e,t){const{className:n,label:r=(0,a.__)("Angle"),onChange:o,value:i,...l}=e,c=s("components-angle-picker-control",n),u=(0,ze.jsx)(uy,{children:"°"}),[d,p]=(0,a.isRTL)()?[u,null]:[null,u];return(0,ze.jsxs)(dg,{...l,ref:t,className:c,gap:2,children:[(0,ze.jsx)(hg,{children:(0,ze.jsx)(sy,{label:r,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:e=>{if(void 0===o)return;const t=void 0!==e&&""!==e?parseInt(e,10):0;o(t)},size:"__unstable-large",step:"1",value:i,spinControls:"none",prefix:d,suffix:p})}),(0,ze.jsx)(Sg,{marginBottom:"1",marginTop:"auto",children:(0,ze.jsx)(dy,{"aria-hidden":"true",value:i,onChange:o})})]})}));var hy=o(9681),fy=o.n(hy);const my=window.wp.richText,gy=window.wp.a11y,vy=window.wp.keycodes,by=new RegExp(/[\u007e\u00ad\u2053\u207b\u208b\u2212\p{Pd}]/gu),xy=e=>fy()(e).toLocaleLowerCase().replace(by,"-");function yy(e){var t;let n=null!==(t=e?.toString?.())&&void 0!==t?t:"";return n=n.replace(/['\u2019]/,""),Si(n,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}function wy(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function _y(e){return t=>{const[n,r]=(0,Uo.useState)([]);return(0,Uo.useLayoutEffect)((()=>{const{options:n,isDebounced:o}=e,i=(0,l.debounce)((()=>{const o=Promise.resolve("function"==typeof n?n(t):n).then((n=>{if(o.canceled)return;const i=n.map(((t,n)=>({key:`${e.name}-${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)}))),s=new RegExp("(?:\\b|\\s|^)"+wy(t),"i");r(function(e,t=[],n=10){const r=[];for(let o=0;o<t.length;o++){const i=t[o];let{keywords:s=[]}=i;if("string"==typeof i.label&&(s=[...s,i.label]),s.some((t=>e.test(fy()(t))))&&(r.push(i),r.length===n))break}return r}(s,i))}));return o}),o?250:0),s=i();return()=>{i.cancel(),s&&(s.canceled=!0)}}),[t]),[n]}}const Sy=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Eo({element:n.current,padding:r}).fn(t):{}:n?Eo({element:n,padding:r}).fn(t):{};var o}});var Cy="undefined"!=typeof document?c.useLayoutEffect:c.useEffect;function ky(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!ky(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ky(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function jy(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ey(e,t){const n=jy(e);return Math.round(t*n)/n}function Py(e){const t=c.useRef(e);return Cy((()=>{t.current=e})),t}const Ty=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.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"})});let Iy=0;function My(e){const t=document.scrollingElement||document.body;e&&(Iy=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=Iy)}let Ry=0;const Ny=function(){return(0,Uo.useEffect)((()=>(0===Ry&&My(!0),++Ry,()=>{1===Ry&&My(!1),--Ry})),[]),null},Ay={slots:(0,l.observableMap)(),fills:(0,l.observableMap)(),registerSlot:()=>{},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},isDefault:!0},Dy=(0,Uo.createContext)(Ay);function Oy(e){const t=(0,Uo.useContext)(Dy);return{...(0,l.useObservableValue)(t.slots,e),...(0,Uo.useMemo)((()=>({updateSlot:n=>t.updateSlot(e,n),unregisterSlot:n=>t.unregisterSlot(e,n),registerFill:n=>t.registerFill(e,n),unregisterFill:n=>t.unregisterFill(e,n)})),[e,t])}}const zy={registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>[],subscribe:()=>()=>{}},Ly=(0,Uo.createContext)(zy),Fy=e=>{const{getSlot:t,subscribe:n}=(0,Uo.useContext)(Ly);return(0,Uo.useSyncExternalStore)(n,(()=>t(e)),(()=>t(e)))};function By({name:e,children:t}){const{registerFill:n,unregisterFill:r}=(0,Uo.useContext)(Ly),o=Fy(e),i=(0,Uo.useRef)({name:e,children:t});return(0,Uo.useLayoutEffect)((()=>{const t=i.current;return n(e,t),()=>r(e,t)}),[]),(0,Uo.useLayoutEffect)((()=>{i.current.children=t,o&&o.forceUpdate()}),[t]),(0,Uo.useLayoutEffect)((()=>{e!==i.current.name&&(r(i.current.name,i.current),i.current.name=e,n(e,i.current))}),[e]),null}function Vy(e){return"function"==typeof e}class $y extends Uo.Component{constructor(e){super(e),this.isUnmounted=!1}componentDidMount(){const{registerSlot:e}=this.props;this.isUnmounted=!1,e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name,this),r(t,this))}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){var e;const{children:t,name:n,fillProps:r={},getFills:o}=this.props,i=(null!==(e=o(n,this))&&void 0!==e?e:[]).map((e=>{const t=Vy(e.children)?e.children(r):e.children;return Uo.Children.map(t,((e,t)=>{if(!e||"string"==typeof e)return e;let n=t;return"object"==typeof e&&"key"in e&&e?.key&&(n=e.key),(0,Uo.cloneElement)(e,{key:n})}))})).filter((e=>!(0,Uo.isEmptyElement)(e)));return(0,ze.jsx)(ze.Fragment,{children:Vy(t)?t(i):i})}}const Hy=e=>(0,ze.jsx)(Ly.Consumer,{children:({registerSlot:t,unregisterSlot:n,getFills:r})=>(0,ze.jsx)($y,{...e,registerSlot:t,unregisterSlot:n,getFills:r})}),Wy={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Uy;const Gy=new Uint8Array(16);function Ky(){if(!Uy&&(Uy="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Uy))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Uy(Gy)}const Yy=[];for(let e=0;e<256;++e)Yy.push((e+256).toString(16).slice(1));function qy(e,t=0){return Yy[e[t+0]]+Yy[e[t+1]]+Yy[e[t+2]]+Yy[e[t+3]]+"-"+Yy[e[t+4]]+Yy[e[t+5]]+"-"+Yy[e[t+6]]+Yy[e[t+7]]+"-"+Yy[e[t+8]]+Yy[e[t+9]]+"-"+Yy[e[t+10]]+Yy[e[t+11]]+Yy[e[t+12]]+Yy[e[t+13]]+Yy[e[t+14]]+Yy[e[t+15]]}const Xy=function(e,t,n){if(Wy.randomUUID&&!t&&!e)return Wy.randomUUID();const r=(e=e||{}).random||(e.rng||Ky)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return qy(r)},Zy=new Set,Jy=new WeakMap;function Qy(e){const{children:t,document:n}=e;if(!n)return null;const r=(e=>{if(Jy.has(e))return Jy.get(e);let t=Xy().replace(/[0-9]/g,"");for(;Zy.has(t);)t=Xy().replace(/[0-9]/g,"");Zy.add(t);const n=Es({container:e,key:t});return Jy.set(e,n),n})(n.head);return(0,ze.jsx)(Ws,{value:r,children:t})}const ew=Qy;function tw(e){var t;const{name:n,children:r}=e,{registerFill:o,unregisterFill:i,...s}=Oy(n),a=function(){const[,e]=(0,Uo.useState)({}),t=(0,Uo.useRef)(!0);return(0,Uo.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),()=>{t.current&&e({})}}(),l=(0,Uo.useRef)({rerender:a});if((0,Uo.useEffect)((()=>(o(l),()=>{i(l)})),[o,i]),!s.ref||!s.ref.current)return null;const c=(0,ze.jsx)(ew,{document:s.ref.current.ownerDocument,children:"function"==typeof r?r(null!==(t=s.fillProps)&&void 0!==t?t:{}):r});return(0,Uo.createPortal)(c,s.ref.current)}const nw=(0,Uo.forwardRef)((function(e,t){const{name:n,fillProps:r={},as:o,children:i,...s}=e,{registerSlot:a,unregisterSlot:c,...u}=(0,Uo.useContext)(Dy),d=(0,Uo.useRef)(null);return(0,Uo.useLayoutEffect)((()=>(a(n,d,r),()=>{c(n,d)})),[a,c,n]),(0,Uo.useLayoutEffect)((()=>{u.updateSlot(n,r)})),(0,ze.jsx)(ya,{as:o,ref:(0,l.useMergeRefs)([t,d]),...s})})),rw=window.wp.isShallowEqual;var ow=o.n(rw);function iw(){const e=(0,l.observableMap)(),t=(0,l.observableMap)();return{slots:e,fills:t,registerSlot:(t,n,r)=>{const o=e.get(t);e.set(t,{...o,ref:n||o?.ref,fillProps:r||o?.fillProps||{}})},updateSlot:(n,r)=>{const o=e.get(n);if(!o)return;if(ow()(o.fillProps,r))return;o.fillProps=r;const i=t.get(n);i&&i.forEach((e=>e.current.rerender()))},unregisterSlot:(t,n)=>{e.get(t)?.ref===n&&e.delete(t)},registerFill:(e,n)=>{t.set(e,[...t.get(e)||[],n])},unregisterFill:(e,n)=>{const r=t.get(e);r&&t.set(e,r.filter((e=>e!==n)))}}}function sw({children:e}){const[t]=(0,Uo.useState)(iw);return(0,ze.jsx)(Dy.Provider,{value:t,children:e})}function aw(){const e={},t={};let n=[];function r(t){return e[t]}function o(e){const t=r(e);t&&t.forceUpdate()}function i(){n.forEach((e=>e()))}return{registerSlot:function(t,n){const r=e[t];e[t]=n,i(),o(t),r&&r.forceUpdate()},unregisterSlot:function(t,n){e[t]===n&&(delete e[t],i())},registerFill:function(e,n){t[e]=[...t[e]||[],n],o(e)},unregisterFill:function(e,n){var r;t[e]=null!==(r=t[e]?.filter((e=>e!==n)))&&void 0!==r?r:[],o(e)},getSlot:r,getFills:function(n,r){return e[n]!==r?[]:t[n]},subscribe:function(e){return n.push(e),()=>{n=n.filter((t=>t!==e))}}}}const lw=function({children:e}){const[t]=(0,Uo.useState)(aw);return(0,ze.jsx)(Ly.Provider,{value:t,children:e})};function cw(e){return(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(By,{...e}),(0,ze.jsx)(tw,{...e})]})}const uw=(0,Uo.forwardRef)((function(e,t){const{bubblesVirtually:n,...r}=e;return n?(0,ze.jsx)(nw,{...r,ref:t}):(0,ze.jsx)(Hy,{...r})}));function dw({children:e,passthrough:t=!1}){return!(0,Uo.useContext)(Dy).isDefault&&t?(0,ze.jsx)(ze.Fragment,{children:e}):(0,ze.jsx)(lw,{children:(0,ze.jsx)(sw,{children:e})})}function pw(e){const t="symbol"==typeof e?e.description:e,n=t=>(0,ze.jsx)(cw,{name:e,...t});n.displayName=`${t}Fill`;const r=t=>(0,ze.jsx)(uw,{name:e,...t});return r.displayName=`${t}Slot`,r.__unstableName=e,{Fill:n,Slot:r}}const hw="Popover",fw=()=>(0,ze.jsxs)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation",children:[(0,ze.jsx)(n.Path,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,ze.jsx)(n.Path,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})]}),mw=(0,Uo.createContext)(void 0),gw="components-popover__fallback-container",vw=oa(((e,t)=>{const{animate:n=!0,headerTitle:r,constrainTabbing:o,onClose:i,children:a,className:u,noArrow:d=!0,position:p,placement:h="bottom-start",offset:f=0,focusOnMount:m="firstElement",anchor:g,expandOnMobile:v,onFocusOutside:b,__unstableSlotName:x=hw,flip:y=!0,resize:w=!0,shift:_=!1,inline:S=!1,variant:C,__unstableForcePosition:k,anchorRef:j,anchorRect:E,getAnchorRect:P,isAlternate:T,...I}=ra(e,"Popover");let M=y,R=w;void 0!==k&&(Ko()("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),M=!k,R=!k),void 0!==j&&Ko()("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==E&&Ko()("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==P&&Ko()("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const N=T?"toolbar":C;void 0!==T&&Ko()("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const A=(0,Uo.useRef)(null),[D,O]=(0,Uo.useState)(null),z=(0,Uo.useCallback)((e=>{O(e)}),[]),L=(0,l.useViewportMatch)("medium","<"),F=v&&L,B=!F&&!d,V=p?Xo(p):h,$=[..."overlay"===h?[{name:"overlay",fn:({rects:e})=>e.reference},jo({apply({rects:e,elements:t}){var n;const{firstElementChild:r}=null!==(n=t.floating)&&void 0!==n?n:{};r instanceof HTMLElement&&Object.assign(r.style,{width:`${e.reference.width}px`,height:`${e.reference.height}px`})}})]:[],Lr(f),M&&ko(),R&&jo({apply(e){var t;const{firstElementChild:n}=null!==(t=X.floating.current)&&void 0!==t?t:{};n instanceof HTMLElement&&Object.assign(n.style,{maxHeight:`${e.availableHeight}px`,overflow:"auto"})}}),_&&Co({crossAxis:!0,limiter:Po(),padding:1}),Sy({element:A})],H=(0,Uo.useContext)(mw)||x,W=Oy(H);let U;(i||b)&&(U=(e,t)=>{"focus-outside"===e&&b?b(t):i&&i()});const[G,K]=(0,l.__experimentalUseDialog)({constrainTabbing:o,focusOnMount:m,__unstableOnClose:U,onClose:U}),{x:Y,y:q,refs:X,strategy:Z,update:J,placement:Q,middlewareData:{arrow:ee}}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=c.useState(r);ky(h,r)||f(r);const[m,g]=c.useState(null),[v,b]=c.useState(null),x=c.useCallback((e=>{e!==S.current&&(S.current=e,g(e))}),[]),y=c.useCallback((e=>{e!==C.current&&(C.current=e,b(e))}),[]),w=i||m,_=s||v,S=c.useRef(null),C=c.useRef(null),k=c.useRef(d),j=null!=l,E=Py(l),P=Py(o),T=c.useCallback((()=>{if(!S.current||!C.current)return;const e={placement:t,strategy:n,middleware:h};P.current&&(e.platform=P.current),To(S.current,C.current,e).then((e=>{const t={...e,isPositioned:!0};I.current&&!ky(k.current,t)&&(k.current=t,tr.flushSync((()=>{p(t)})))}))}),[h,t,n,P]);Cy((()=>{!1===u&&k.current.isPositioned&&(k.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[u]);const I=c.useRef(!1);Cy((()=>(I.current=!0,()=>{I.current=!1})),[]),Cy((()=>{if(w&&(S.current=w),_&&(C.current=_),w&&_){if(E.current)return E.current(w,_,T);T()}}),[w,_,T,E,j]);const M=c.useMemo((()=>({reference:S,floating:C,setReference:x,setFloating:y})),[x,y]),R=c.useMemo((()=>({reference:w,floating:_})),[w,_]),N=c.useMemo((()=>{const e={position:n,left:0,top:0};if(!R.floating)return e;const t=Ey(R.floating,d.x),r=Ey(R.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...jy(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,a,R.floating,d.x,d.y]);return c.useMemo((()=>({...d,update:T,refs:M,elements:R,floatingStyles:N})),[d,T,M,R,N])}({placement:"overlay"===V?void 0:V,middleware:$,whileElementsMounted:(e,t,n)=>So(e,t,n,{layoutShift:!1,animationFrame:!0})}),te=(0,Uo.useCallback)((e=>{A.current=e,J()}),[J]),ne=j?.top,re=j?.bottom,oe=j?.startContainer,ie=j?.current;(0,Uo.useLayoutEffect)((()=>{const e=(({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o})=>{var i;let s=null;return e?s=e:function(e){return!!e?.top}(t)?s={getBoundingClientRect(){const e=t.top.getBoundingClientRect(),n=t.bottom.getBoundingClientRect();return new window.DOMRect(e.x,e.y,e.width,n.bottom-e.top)}}:function(e){return!!e?.current}(t)?s=t.current:t?s=t:n?s={getBoundingClientRect:()=>n}:r?s={getBoundingClientRect(){var e,t,n,i;const s=r(o);return new window.DOMRect(null!==(e=s.x)&&void 0!==e?e:s.left,null!==(t=s.y)&&void 0!==t?t:s.top,null!==(n=s.width)&&void 0!==n?n:s.right-s.left,null!==(i=s.height)&&void 0!==i?i:s.bottom-s.top)}}:o&&(s=o.parentElement),null!==(i=s)&&void 0!==i?i:null})({anchor:g,anchorRef:j,anchorRect:E,getAnchorRect:P,fallbackReferenceElement:D});X.setReference(e)}),[g,j,ne,re,oe,ie,E,P,D,X]);const se=(0,l.useMergeRefs)([X.setFloating,G,t]),ae=F?void 0:{position:Z,top:0,left:0,x:Jo(Y),y:Jo(q)},le=(0,l.useReducedMotion)(),ce=n&&!F&&!le,[ue,de]=(0,Uo.useState)(!1),{style:pe,...he}=(0,Uo.useMemo)((()=>(e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:Zo[e],initial:{opacity:0,scale:0,[t]:2*n+"em"},animate:{opacity:1,scale:1,[t]:0},transition:{duration:.1,ease:[0,0,.2,1]}}})(Q)),[Q]),fe=ce?{style:{...pe,...ae},onAnimationComplete:()=>de(!0),...he}:{animate:!1,style:ae},me=(!ce||ue)&&null!==Y&&null!==q;let ge=(0,ze.jsxs)(Hm.div,{className:s(u,{"is-expanded":F,"is-positioned":me,[`is-${"toolbar"===N?"alternate":N}`]:N}),...fe,...I,ref:se,...K,tabIndex:-1,children:[F&&(0,ze.jsx)(Ny,{}),F&&(0,ze.jsxs)("div",{className:"components-popover__header",children:[(0,ze.jsx)("span",{className:"components-popover__header-title",children:r}),(0,ze.jsx)(Hx,{className:"components-popover__close",icon:Ty,onClick:i})]}),(0,ze.jsx)("div",{className:"components-popover__content",children:a}),B&&(0,ze.jsx)("div",{ref:te,className:["components-popover__arrow",`is-${Q.split("-")[0]}`].join(" "),style:{left:void 0!==ee?.x&&Number.isFinite(ee.x)?`${ee.x}px`:"",top:void 0!==ee?.y&&Number.isFinite(ee.y)?`${ee.y}px`:""},children:(0,ze.jsx)(fw,{})})]});const ve=W.ref&&!S,be=j||E||g;return ve?ge=(0,ze.jsx)(cw,{name:H,children:ge}):S||(ge=(0,Uo.createPortal)((0,ze.jsx)(Qy,{document,children:ge}),(()=>{let e=document.body.querySelector("."+gw);return e||(e=document.createElement("div"),e.className=gw,document.body.append(e)),e})())),be?ge:(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)("span",{ref:z}),ge]})}),"Popover");vw.Slot=(0,Uo.forwardRef)((function({name:e=hw},t){return(0,ze.jsx)(uw,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})})),vw.__unstableSlotNameProvider=mw.Provider;const bw=vw;function xw({items:e,onSelect:t,selectedIndex:n,instanceId:r,listBoxId:o,className:i,Component:a="div"}){return(0,ze.jsx)(a,{id:o,role:"listbox",className:"components-autocomplete__results",children:e.map(((e,o)=>(0,ze.jsx)(Hx,{id:`components-autocomplete-item-${r}-${e.key}`,role:"option","aria-selected":o===n,disabled:e.isDisabled,className:s("components-autocomplete__result",i,{"is-selected":o===n}),onClick:()=>t(e),children:e.label},e.key)))})}function yw(e){var t;const n=null!==(t=e.useItems)&&void 0!==t?t:_y(e);return function({filterValue:e,instanceId:t,listBoxId:r,className:o,selectedIndex:i,onChangeOptions:s,onSelect:c,onReset:u,reset:d,contentRef:p}){const[h]=n(e),f=(0,my.useAnchor)({editableContentElement:p.current}),[m,g]=(0,Uo.useState)(!1),v=(0,Uo.useRef)(null),b=(0,l.useMergeRefs)([v,(0,l.useRefEffect)((e=>{p.current&&g(e.ownerDocument!==p.current.ownerDocument)}),[p])]);var x,y;x=v,y=d,(0,Uo.useEffect)((()=>{const e=e=>{x.current&&!x.current.contains(e.target)&&y(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[y]);const w=(0,l.useDebounce)(gy.speak,500);return(0,Uo.useLayoutEffect)((()=>{s(h),function(t){w&&(t.length?w(e?(0,a.sprintf)((0,a._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):(0,a.sprintf)((0,a._n)("Initial %d result loaded. Type to filter all available results. Use up and down arrow keys to navigate.","Initial %d results loaded. Type to filter all available results. Use up and down arrow keys to navigate.",t.length),t.length),"assertive"):w((0,a.__)("No results."),"assertive"))}(h)}),[h]),0===h.length?null:(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(bw,{focusOnMount:!1,onClose:u,placement:"top-start",className:"components-autocomplete__popover",anchor:f,ref:b,children:(0,ze.jsx)(xw,{items:h,onSelect:c,selectedIndex:i,instanceId:t,listBoxId:r,className:o})}),p.current&&m&&(0,tr.createPortal)((0,ze.jsx)(xw,{items:h,onSelect:c,selectedIndex:i,instanceId:t,listBoxId:r,className:o,Component:wa}),p.current.ownerDocument.body)]})}}const ww=e=>{if(null===e)return"";switch(typeof e){case"string":case"number":return e.toString();case"boolean":default:return"";case"object":if(e instanceof Array)return e.map(ww).join("");if("props"in e)return ww(e.props.children)}return""},_w=[];function Sw({record:e,onChange:t,onReplace:n,completers:r,contentRef:o}){const i=(0,l.useInstanceId)(Sw),[s,a]=(0,Uo.useState)(0),[c,u]=(0,Uo.useState)(_w),[d,p]=(0,Uo.useState)(""),[h,f]=(0,Uo.useState)(null),[m,g]=(0,Uo.useState)(null),v=(0,Uo.useRef)(!1);function b(r){const{getOptionCompletion:o}=h||{};if(!r.isDisabled){if(o){const i=o(r.value,d),s=(e=>null!==e&&"object"==typeof e&&"action"in e&&void 0!==e.action&&"value"in e&&void 0!==e.value)(i)?i:{action:"insert-at-caret",value:i};if("replace"===s.action)return void n([s.value]);"insert-at-caret"===s.action&&function(n){if(null===h)return;const r=e.start,o=r-h.triggerPrefix.length-d.length,i=(0,my.create)({html:(0,Uo.renderToString)(n)});t((0,my.insert)(e,i,o,r))}(s.value)}x()}}function x(){a(0),u(_w),p(""),f(null),g(null)}const y=(0,Uo.useMemo)((()=>(0,my.isCollapsed)(e)?(0,my.getTextContent)((0,my.slice)(e,0)):""),[e]);(0,Uo.useEffect)((()=>{if(!y)return void(h&&x());const t=r.reduce(((e,t)=>y.lastIndexOf(t.triggerPrefix)>(null!==e?y.lastIndexOf(e.triggerPrefix):-1)?t:e),null);if(!t)return void(h&&x());const{allowContext:n,triggerPrefix:o}=t,i=y.lastIndexOf(o),s=y.slice(i+o.length);if(s.length>50)return;const a=0===c.length,l=s.split(/\s/),u=1===l.length,d=v.current&&l.length<=3;if(a&&!d&&!u)return void(h&&x());const b=(0,my.getTextContent)((0,my.slice)(e,void 0,(0,my.getTextContent)(e).length));if(n&&!n(y.slice(0,i),b))return void(h&&x());if(/^\s/.test(s)||/\s\s+$/.test(s))return void(h&&x());if(!/[\u0000-\uFFFF]*$/.test(s))return void(h&&x());const w=wy(t.triggerPrefix),_=fy()(y),S=_.slice(_.lastIndexOf(t.triggerPrefix)).match(new RegExp(`${w}([\0-￿]*)$`)),C=S&&S[1];f(t),g((()=>t!==h?yw(t):m)),p(null===C?"":C)}),[y]);const{key:w=""}=c[s]||{},{className:_}=h||{},S=!!h&&c.length>0,C=S?`components-autocomplete-listbox-${i}`:void 0,k=S?`components-autocomplete-item-${i}-${w}`:null,j=void 0!==e.start;return{listBoxId:C,activeId:k,onKeyDown:vx((function(e){if(v.current="Backspace"===e.key,h&&0!==c.length&&!e.defaultPrevented){switch(e.key){case"ArrowUp":{const e=(0===s?c.length:s)-1;a(e),(0,vy.isAppleOS)()&&(0,gy.speak)(ww(c[e].label),"assertive");break}case"ArrowDown":{const e=(s+1)%c.length;a(e),(0,vy.isAppleOS)()&&(0,gy.speak)(ww(c[e].label),"assertive");break}case"Escape":f(null),g(null),e.preventDefault();break;case"Enter":b(c[s]);break;case"ArrowLeft":case"ArrowRight":return void x();default:return}e.preventDefault()}})),popover:j&&m&&(0,ze.jsx)(m,{className:_,filterValue:d,instanceId:i,listBoxId:C,selectedIndex:s,onChangeOptions:function(e){a(e.length===c.length?s:0),u(e)},onSelect:b,value:e,contentRef:o,reset:x})}}function Cw(e){const t=(0,Uo.useRef)(null),n=(0,Uo.useRef)(),{record:r}=e,o=function(e){const t=(0,Uo.useRef)(new Set);return t.current.add(e),t.current.size>2&&t.current.delete(Array.from(t.current)[0]),Array.from(t.current)[0]}(r),{popover:i,listBoxId:s,activeId:a,onKeyDown:c}=Sw({...e,contentRef:t});n.current=c;const u=(0,l.useMergeRefs)([t,(0,l.useRefEffect)((e=>{function t(e){n.current?.(e)}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[])]);return r.text!==o?.text?{ref:u,children:i,"aria-autocomplete":s?"list":void 0,"aria-owns":s,"aria-activedescendant":a}:{ref:u}}function kw({children:e,isSelected:t,...n}){const{popover:r,...o}=Sw(n);return(0,ze.jsxs)(ze.Fragment,{children:[e(o),t&&r]})}function jw(e){const{help:t,id:n,...r}=e,o=(0,l.useInstanceId)(Dx,"wp-components-base-control",n);return{baseControlProps:{id:o,help:t,...r},controlProps:{id:o,...t?{"aria-describedby":`${o}__help`}:{}}}}const Ew=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})}),Pw=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})});const Tw=Ea("",""),Iw={name:"bjn8wh",styles:"position:relative"},Mw=e=>{const{color:t=Na.gray[200],style:n="solid",width:r=bv.borderWidth}=e||{};return`${t} ${!!r&&"0"!==r||!!t?n||"solid":n} ${r!==bv.borderWidth?`clamp(1px, ${r}, 10px)`:r}`},Rw={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"};function Nw(e){const{className:t,size:n="default",...r}=ra(e,"BorderBoxControlLinkedButton"),o=na();return{...r,className:(0,Uo.useMemo)((()=>o((e=>Ea("position:absolute;top:","__unstable-large"===e?"8px":"3px",";",yg({right:0})()," line-height:0;",""))(n),t)),[t,o,n])}}const Aw=oa(((e,t)=>{const{className:n,isLinked:r,...o}=Nw(e),i=r?(0,a.__)("Unlink sides"):(0,a.__)("Link sides");return(0,ze.jsx)(ri,{text:i,children:(0,ze.jsx)(ya,{className:n,children:(0,ze.jsx)(Hx,{...o,size:"small",icon:r?Ew:Pw,iconSize:24,"aria-label":i,ref:t})})})}),"BorderBoxControlLinkedButton");function Dw(e){const{className:t,value:n,size:r="default",...o}=ra(e,"BorderBoxControlVisualizer"),i=na(),s=(0,Uo.useMemo)((()=>i(((e,t)=>Ea("position:absolute;top:","__unstable-large"===t?"20px":"15px",";right:","__unstable-large"===t?"39px":"29px",";bottom:","__unstable-large"===t?"20px":"15px",";left:","__unstable-large"===t?"39px":"29px",";border-top:",Mw(e?.top),";border-bottom:",Mw(e?.bottom),";",yg({borderLeft:Mw(e?.left)})()," ",yg({borderRight:Mw(e?.right)})(),";",""))(n,r),t)),[i,t,n,r]);return{...o,className:s,value:n}}const Ow=oa(((e,t)=>{const{value:n,...r}=Dw(e);return(0,ze.jsx)(ya,{...r,ref:t})}),"BorderBoxControlVisualizer"),zw=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})}),Lw=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M5 11.25h14v1.5H5z"})}),Fw=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"})}),Bw=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"})}),Vw=(0,c.createContext)(null),$w=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Hw(){const e=new Set,t=new WeakMap,n=()=>e.forEach($w);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);const o=t.get(r);o&&(o(),t.delete(r)),n()},dirty:n}}const Ww=e=>!0===e,Uw=({children:e,id:t,inherit:n=!0})=>{const r=(0,c.useContext)(Yl),o=(0,c.useContext)(Vw),[i,s]=Um(),a=(0,c.useRef)(null),l=r.id||o;null===a.current&&((e=>Ww(!0===e)||"id"===e)(n)&&l&&(t=t?l+"-"+t:l),a.current={id:t,group:Ww(n)&&r.group||Hw()});const u=(0,c.useMemo)((()=>({...a.current,forceRender:i})),[s]);return(0,ze.jsx)(Yl.Provider,{value:u,children:e})};const Gw=e=>{const t=Ea("border-color:",Na.ui.border,";","");return Ea(e&&t," &:hover{border-color:",Na.ui.borderHover,";}&:focus-within{border-color:",Na.ui.borderFocus,";box-shadow:",bv.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","")};var Kw={name:"1aqh2c7",styles:"min-height:40px;padding:3px"},Yw={name:"1ndywgm",styles:"min-height:36px;padding:2px"};const qw=e=>({default:Yw,"__unstable-large":Kw}[e]),Xw={name:"7whenc",styles:"display:flex;width:100%"},Zw=ba("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"});function Jw(e={}){var t,n=R(e,[]);const r=null==(t=n.store)?void 0:t.getState(),o=tl(M(I({},n),{focusLoop:V(n.focusLoop,null==r?void 0:r.focusLoop,!0)})),i=It(M(I({},o.getState()),{value:V(n.value,null==r?void 0:r.value,n.defaultValue,null)}),o,n.store);return M(I(I({},o),i),{setValue:e=>i.setState("value",e)})}function Qw(e={}){const[t,n]=Ht(Jw,e);return function(e,t,n){return $t(e=nl(e,t,n),n,"value","setValue"),e}(t,n,e)}var e_=$e([kt],[jt]),t_=e_.useContext,n_=(e_.useScopedContext,e_.useProviderContext),r_=(e_.ContextProvider,e_.ScopedContextProvider),o_=Ve((e=>{var t=e,{store:n}=t,r=_(t,["store"]);const o=n_();return L(n=n||o,!1),r=Pe(r,(e=>(0,ze.jsx)(r_,{value:n,children:e})),[n]),r=y({role:"radiogroup"},r),r=il(y({store:n},r))})),i_=Le((e=>Be("div",o_(e))));const s_=(0,Uo.createContext)({}),a_=s_;function l_(e){const t=(0,Uo.useRef)(!0),n=(0,l.usePrevious)(e),r=(0,Uo.useRef)(!1);(0,Uo.useEffect)((()=>{t.current&&(t.current=!1)}),[]);const o=r.current||!t.current&&n!==e;return(0,Uo.useEffect)((()=>{r.current=o}),[o]),o?{value:null!=e?e:"",defaultValue:void 0}:{value:void 0,defaultValue:e}}const c_=(0,Uo.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,id:s,...a},c){const u=(0,l.useInstanceId)(c_,"toggle-group-control-as-radio-group"),d=s||u,{value:p,defaultValue:h}=l_(i),f=r?e=>{r(null!=e?e:void 0)}:void 0,m=Qw({defaultValue:h,value:p,setValue:f}),g=m.useState("value"),v=m.setValue,b=(0,Uo.useMemo)((()=>({baseId:d,isBlock:!t,size:o,value:g,setValue:v})),[d,t,o,g,v]);return(0,ze.jsx)(a_.Provider,{value:b,children:(0,ze.jsx)(i_,{store:m,"aria-label":n,render:(0,ze.jsx)(ya,{}),...a,id:d,ref:c,children:e})})}));function u_({defaultValue:e,onChange:t,value:n}){const r=void 0!==n,o=r?n:e,[i,s]=(0,Uo.useState)(o);let a;return a=r&&"function"==typeof t?t:r||"function"!=typeof t?s:e=>{t(e),s(e)},[r?n:i,a]}const d_=(0,Uo.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,id:s,...a},c){const u=(0,l.useInstanceId)(d_,"toggle-group-control-as-button-group"),d=s||u,{value:p,defaultValue:h}=l_(i),[f,m]=u_({defaultValue:h,value:p,onChange:r}),g=(0,Uo.useMemo)((()=>({baseId:d,value:f,setValue:m,isBlock:!t,isDeselectable:!0,size:o})),[d,f,m,t,o]);return(0,ze.jsx)(a_.Provider,{value:g,children:(0,ze.jsx)(ya,{"aria-label":n,...a,ref:c,role:"group",children:e})})}));const p_=oa((function(e,t){const{__nextHasNoMarginBottom:n=!1,__next40pxDefaultSize:r=!1,className:o,isAdaptiveWidth:i=!1,isBlock:s=!1,isDeselectable:a=!1,label:c,hideLabelFromVision:u=!1,help:d,onChange:p,size:h="default",value:f,children:m,...g}=ra(e,"ToggleGroupControl"),v=(0,l.useInstanceId)(p_,"toggle-group-control"),b=r&&"default"===h?"__unstable-large":h,x=na(),y=(0,Uo.useMemo)((()=>x((({isBlock:e,isDeselectable:t,size:n})=>Ea("background:",Na.ui.background,";border:1px solid transparent;border-radius:",bv.controlBorderRadius,";display:inline-flex;min-width:0;position:relative;",qw(n)," ",!t&&Gw(e),";",""))({isBlock:s,isDeselectable:a,size:b}),s&&Xw,o)),[o,x,s,a,b]),w=a?d_:c_;return(0,ze.jsxs)(Dx,{help:d,__nextHasNoMarginBottom:n,children:[!u&&(0,ze.jsx)(Zw,{children:(0,ze.jsx)(Dx.VisualLabel,{children:c})}),(0,ze.jsx)(w,{...g,className:y,isAdaptiveWidth:i,label:c,onChange:p,ref:t,size:b,value:f,children:(0,ze.jsx)(Uw,{id:v,children:m})})]})}),"ToggleGroupControl"),h_=p_;var f_=Ve((e=>{var t=e,{store:n,name:r,value:o,checked:i}=t,s=_(t,["store","name","value","checked"]);const a=t_();n=n||a;const l=Se(s.id),u=(0,c.useRef)(null),d=Vt(n,(e=>null!=i?i:function(e,t){if(void 0!==t)return null!=e&&null!=t?t===e:!!t}(o,null==e?void 0:e.value)));(0,c.useEffect)((()=>{if(!l)return;if(!d)return;(null==n?void 0:n.getState().activeId)===l||null==n||n.setActiveId(l)}),[n,d,l]);const p=s.onChange,h=function(e,t){return"input"===e&&(!t||"radio"===t)}(Ce(u,s.as||"input"),s.type),f=B(s),[m,g]=je();(0,c.useEffect)((()=>{const e=u.current;e&&(h||(void 0!==d&&(e.checked=d),void 0!==r&&(e.name=r),void 0!==o&&(e.value=`${o}`)))}),[m,h,d,r,o]);const v=we((e=>{if(f)return e.preventDefault(),void e.stopPropagation();h||(e.currentTarget.checked=!0,g()),null==p||p(e),e.defaultPrevented||null==n||n.setValue(o)})),b=s.onClick,x=we((e=>{null==b||b(e),e.defaultPrevented||h||v(e)})),S=s.onFocus,C=we((e=>{if(null==S||S(e),e.defaultPrevented)return;if(!h)return;if(!n)return;const{moves:t,activeId:r}=n.getState();t&&(l&&r!==l||v(e))}));return s=w(y({id:l,role:h?void 0:"radio",type:h?"radio":void 0,"aria-checked":d},s),{ref:_e(u,s.ref),onChange:v,onClick:x,onFocus:C}),s=Gt(y({store:n,clickOnEnter:!h},s)),y({name:h?r:void 0,value:h?o:void 0,checked:d},s)})),m_=Fe((e=>Be("input",f_(e))));const g_=ba("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),v_={name:"82a6rk",styles:"flex:1"},b_=({isDeselectable:e,isIcon:t,isPressed:n,size:r})=>Ea("align-items:center;appearance:none;background:transparent;border:none;border-radius:",bv.controlBorderRadius,";color:",Na.gray[700],";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;@media not ( prefers-reduced-motion ){transition:background ",bv.transitionDurationFast," linear,color ",bv.transitionDurationFast," linear,font-weight 60ms linear;}user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:",bv.toggleGroupControlBackgroundColor,";}",e&&y_," ",t&&__({size:r})," ",n&&x_,";",""),x_=Ea("color:",Na.white,";&:active{background:transparent;}",""),y_=Ea("color:",Na.gray[900],";&:focus{box-shadow:inset 0 0 0 1px ",Na.white,",0 0 0 ",bv.borderWidthFocus," ",Na.theme.accent,";outline:2px solid transparent;}",""),w_=ba("div",{target:"et6ln9s0"})("display:flex;font-size:",bv.fontSize,";line-height:1;"),__=({size:e="default"})=>Ea("color:",Na.gray[900],";height:",{default:"30px","__unstable-large":"32px"}[e],";aspect-ratio:1;padding-left:0;padding-right:0;",""),S_=Ea("background:",Na.gray[900],";border-radius:",bv.controlBorderRadius,";position:absolute;inset:0;z-index:1;outline:2px solid transparent;outline-offset:-3px;",""),{ButtonContentView:C_,LabelView:k_}=t,j_={duration:0},E_=({showTooltip:e,text:t,children:n})=>e&&t?(0,ze.jsx)(ri,{text:t,placement:"top",children:n}):(0,ze.jsx)(ze.Fragment,{children:n});const P_=oa((function e(t,n){const r=(0,l.useReducedMotion)(),o=(0,Uo.useContext)(s_),i=ra({...t,id:(0,l.useInstanceId)(e,o.baseId||"toggle-group-control-option-base")},"ToggleGroupControlOptionBase"),{isBlock:s=!1,isDeselectable:a=!1,size:c="default"}=o,{className:u,isIcon:d=!1,value:p,children:h,showTooltip:f=!1,onFocus:m,...g}=i,v=o.value===p,b=na(),x=(0,Uo.useMemo)((()=>b(s&&v_)),[b,s]),y=(0,Uo.useMemo)((()=>b(b_({isDeselectable:a,isIcon:d,isPressed:v,size:c}),u)),[b,a,d,v,c,u]),w=(0,Uo.useMemo)((()=>b(S_)),[b]),_={...g,className:y,"data-value":p,ref:n};return(0,ze.jsxs)(k_,{className:x,children:[(0,ze.jsx)(E_,{showTooltip:f,text:g["aria-label"],children:a?(0,ze.jsx)("button",{..._,onFocus:m,"aria-pressed":v,type:"button",onClick:()=>{a&&v?o.setValue(void 0):o.setValue(p)},children:(0,ze.jsx)(C_,{children:h})}):(0,ze.jsx)(m_,{render:(0,ze.jsx)("button",{type:"button",..._,onFocus:e=>{m?.(e),e.defaultPrevented||o.setValue(p)}}),value:p,children:(0,ze.jsx)(C_,{children:h})})}),v?(0,ze.jsx)(Hm.div,{layout:!0,layoutRoot:!0,children:(0,ze.jsx)(Hm.div,{className:w,transition:r?j_:void 0,role:"presentation",layoutId:"toggle-group-backdrop-shared-layout-id"})}):null]})}),"ToggleGroupControlOptionBase"),T_=P_;const I_=(0,Uo.forwardRef)((function(e,t){const{icon:n,label:r,...o}=e;return(0,ze.jsx)(T_,{...o,isIcon:!0,"aria-label":r,showTooltip:!0,ref:t,children:(0,ze.jsx)(Bx,{icon:n})})})),M_=I_,R_=[{label:(0,a.__)("Solid"),icon:Lw,value:"solid"},{label:(0,a.__)("Dashed"),icon:Fw,value:"dashed"},{label:(0,a.__)("Dotted"),icon:Bw,value:"dotted"}];const N_=oa((function({onChange:e,...t},n){return(0,ze.jsx)(h_,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,ref:n,isDeselectable:!0,onChange:t=>{e?.(t)},...t,children:R_.map((e=>(0,ze.jsx)(M_,{value:e.value,icon:e.icon,label:e.label},e.value)))})}),"BorderControlStylePicker");const A_=(0,Uo.forwardRef)((function(e,t){const{className:n,colorValue:r,...o}=e;return(0,ze.jsx)("span",{className:s("component-color-indicator",n),style:{background:r},ref:t,...o})}));var D_=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},O_=function(e){return.2126*D_(e.r)+.7152*D_(e.g)+.0722*D_(e.b)};function z_(e){e.prototype.luminance=function(){return e=O_(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,r,o,i,s,a,l,c=t instanceof e?t:new e(t);return i=this.rgba,s=c.toRgb(),n=(a=O_(i))>(l=O_(s))?(a+.05)/(l+.05):(l+.05)/(a+.05),void 0===(r=2)&&(r=0),void 0===o&&(o=Math.pow(10,r)),Math.floor(o*n)/o+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(s=void 0===(i=(n=t).size)?"normal":i,"AAA"===(o=void 0===(r=n.level)?"AA":r)&&"normal"===s?7:"AA"===o&&"large"===s?3:4.5);var n,r,o,i,s}}const L_=oa(((e,t)=>{const{renderContent:n,renderToggle:r,className:o,contentClassName:i,expandOnMobile:a,headerTitle:c,focusOnMount:u,popoverProps:d,onClose:p,onToggle:h,style:f,open:m,defaultOpen:g,position:v,variant:b}=ra(e,"Dropdown");void 0!==v&&Ko()("`position` prop in wp.components.Dropdown",{since:"6.2",alternative:"`popoverProps.placement` prop",hint:"Note that the `position` prop will override any values passed through the `popoverProps.placement` prop."});const[x,y]=(0,Uo.useState)(null),w=(0,Uo.useRef)(),[_,S]=u_({defaultValue:g,value:m,onChange:h});function C(){p?.(),S(!1)}const k={isOpen:!!_,onToggle:()=>S(!_),onClose:C},j=!!(d?.anchor||d?.anchorRef||d?.getAnchorRect||d?.anchorRect);return(0,ze.jsxs)("div",{className:o,ref:(0,l.useMergeRefs)([w,t,y]),tabIndex:-1,style:f,children:[r(k),_&&(0,ze.jsx)(bw,{position:v,onClose:C,onFocusOutside:function(){if(!w.current)return;const{ownerDocument:e}=w.current,t=e?.activeElement?.closest('[role="dialog"]');w.current.contains(e.activeElement)||t&&!t.contains(w.current)||C()},expandOnMobile:a,headerTitle:c,focusOnMount:u,offset:13,anchor:j?void 0:x,variant:b,...d,className:s("components-dropdown__content",d?.className,i),children:n(k)})]})}),"Dropdown"),F_=L_;const B_=oa((function(e,t){const n=ra(e,"InputControlSuffixWrapper");return(0,ze.jsx)(Sg,{marginBottom:0,...n,ref:t})}),"InputControlSuffixWrapper"),V_=({disabled:e})=>e?Ea({color:Na.ui.textDisabled},"",""):"",$_=({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{if(t)return;const r={default:{height:40,minHeight:40,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},compact:{height:32,minHeight:32,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};e||(r.default=r.compact);return Ea(r[n]||r.default,"","")},H_=({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{const r={default:16,small:8,compact:8,"__unstable-large":16};e||(r.default=r.compact);const o=r[n]||r.default;return yg({paddingLeft:o,paddingRight:o+18,...t?{paddingTop:o,paddingBottom:o}:{}})},W_=({multiple:e})=>({overflow:e?"auto":"hidden"}),U_=ba("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Na.gray[900],";display:block;font-family:inherit;margin:0;width:100%;max-width:none;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;",V_,";",Kv,";",$_,";",H_,";",W_,";}"),G_=ba("div",{target:"e1mv6sxx1"})("margin-inline-end:",ng(-1),";line-height:0;"),K_=ba(B_,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",yg({right:0}),";");const Y_=(0,Uo.forwardRef)((function({icon:e,size:t=24,...n},r){return(0,Uo.cloneElement)(e,{width:t,height:t,...n,ref:r})})),q_=(0,ze.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,ze.jsx)(n.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),X_=()=>(0,ze.jsx)(K_,{children:(0,ze.jsx)(G_,{children:(0,ze.jsx)(Y_,{icon:q_,size:18})})});const Z_=(0,Uo.forwardRef)((function(e,t){const{className:n,disabled:r=!1,help:o,hideLabelFromVision:i,id:a,label:c,multiple:u=!1,onChange:d,options:p=[],size:h="default",value:f,labelPosition:m="top",children:g,prefix:v,suffix:b,__next40pxDefaultSize:x=!1,__nextHasNoMarginBottom:y=!1,...w}=ib(e),_=function(e){const t=(0,l.useInstanceId)(Z_);return e||`inspector-select-control-${t}`}(a),S=o?`${_}__help`:void 0;if(!p?.length&&!g)return null;const C=s("components-select-control",n);return(0,ze.jsx)(Dx,{help:o,id:_,__nextHasNoMarginBottom:y,children:(0,ze.jsx)(lb,{className:C,disabled:r,hideLabelFromVision:i,id:_,label:c,size:h,suffix:b||!u&&(0,ze.jsx)(X_,{}),prefix:v,labelPosition:m,__next40pxDefaultSize:x,children:(0,ze.jsx)(U_,{...w,__next40pxDefaultSize:x,"aria-describedby":S,className:"components-select-control__input",disabled:r,id:_,multiple:u,onChange:t=>{if(e.multiple){const n=Array.from(t.target.options).filter((({selected:e})=>e)).map((({value:e})=>e));e.onChange?.(n,{event:t})}else e.onChange?.(t.target.value,{event:t})},ref:t,selectSize:h,value:f,children:g||p.map(((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return(0,ze.jsx)("option",{value:e.value,disabled:e.disabled,hidden:e.hidden,children:e.label},n)}))})})})})),J_=Z_,Q_={initial:void 0,fallback:""};const eS=function(e,t=Q_){const{initial:n,fallback:r}={...Q_,...t},[o,i]=(0,Uo.useState)(e),s=Pg(e);return(0,Uo.useEffect)((()=>{s&&o&&i(void 0)}),[s,o]),[function(e=[],t){var n;return null!==(n=e.find(Pg))&&void 0!==n?n:t}([e,o,n],r),(0,Uo.useCallback)((e=>{s||i(e)}),[s])]};function tS(e,t,n){return"number"!=typeof e?null:parseFloat(`${Zx(e,t,n)}`)}const nS=30,rS=()=>Ea({height:nS,minHeight:nS},"",""),oS=12,iS=({__next40pxDefaultSize:e})=>!e&&Ea({minHeight:nS},"",""),sS=ba("div",{target:"e1epgpqk14"})("-webkit-tap-highlight-color:transparent;align-items:center;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;min-height:40px;",iS,";"),aS=({color:e=Na.ui.borderFocus})=>Ea({color:e},"",""),lS=({marks:e,__nextHasNoMarginBottom:t})=>t?"":Ea({marginBottom:e?16:void 0},"",""),cS=ba("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",aS,";",rS,";",lS,";"),uS=ba("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",yg({marginRight:6}),";"),dS=ba("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",yg({marginLeft:6}),";"),pS=({disabled:e,railColor:t})=>{let n=t||"";return e&&(n=Na.ui.backgroundDisabled),Ea({background:n},"","")},hS=ba("span",{target:"e1epgpqk10"})("background-color:",Na.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",4,"px;position:absolute;margin-top:",13,"px;top:0;border-radius:",4,"px;",pS,";"),fS=({disabled:e,trackColor:t})=>{let n=t||"currentColor";return e&&(n=Na.gray[400]),Ea({background:n},"","")},mS=ba("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",4,"px;height:",4,"px;pointer-events:none;display:block;position:absolute;margin-top:",13,"px;top:0;",fS,";"),gS=ba("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),vS=({disabled:e,isFilled:t})=>{let n=t?"currentColor":Na.gray[300];return e&&(n=Na.gray[400]),Ea({backgroundColor:n},"","")},bS=ba("span",{target:"e1epgpqk7"})("height:",oS,"px;left:0;position:absolute;top:-4px;width:1px;",vS,";"),xS=({isFilled:e})=>Ea({color:e?Na.gray[700]:Na.gray[300]},"",""),yS=ba("span",{target:"e1epgpqk6"})("color:",Na.gray[300],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",xS,";"),wS=({disabled:e})=>Ea("background-color:",e?Na.gray[400]:Na.theme.accent,";",""),_S=ba("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",oS,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",oS,"px;border-radius:50%;",wS,";",yg({marginLeft:-10}),";",yg({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),SS=({isFocused:e})=>e?Ea("&::before{content:' ';position:absolute;background-color:",Na.theme.accent,";opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):"",CS=ba("span",{target:"e1epgpqk4"})("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;",wS,";",SS,";"),kS=ba("input",{target:"e1epgpqk3"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",6,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",oS,"px );"),jS=({show:e})=>Ea({opacity:e?1:0},"","");var ES={name:"1cypxip",styles:"top:-80%"},PS={name:"1lr98c4",styles:"bottom:-80%"};const TS=({position:e})=>"bottom"===e?PS:ES,IS=ba("span",{target:"e1epgpqk2"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;user-select:none;line-height:1.4;@media not ( prefers-reduced-motion ){transition:opacity 120ms ease;}",jS,";",TS,";",yg({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),MS=ba(sy,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;input[type='number']&{",rS,";}",yg({marginLeft:`${ng(4)} !important`}),";"),RS=ba("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",rS,";}",yg({marginLeft:8}),";");const NS=(0,Uo.forwardRef)((function(e,t){const{describedBy:n,label:r,value:o,...i}=e;return(0,ze.jsx)(kS,{...i,"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:o})}));function AS(e){const{className:t,isFilled:n=!1,label:r,style:o={},...i}=e,a=s("components-range-control__mark",n&&"is-filled",t),l=s("components-range-control__mark-label",n&&"is-filled");return(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(bS,{...i,"aria-hidden":"true",className:a,isFilled:n,style:o}),r&&(0,ze.jsx)(yS,{"aria-hidden":"true",className:l,isFilled:n,style:o,children:r})]})}function DS(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:s=0,...a}=e;return(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(hS,{disabled:t,...a}),n&&(0,ze.jsx)(OS,{disabled:t,marks:n,min:r,max:o,step:i,value:s})]})}function OS(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:s=0}=e,l=function({marks:e,min:t=0,max:n=100,step:r=1,value:o=0}){if(!e)return[];const i=n-t;if(!Array.isArray(e)){e=[];const n=1+Math.round(i/r);for(;n>e.push({value:r*e.length+t}););}const s=[];return e.forEach(((e,r)=>{if(e.value<t||e.value>n)return;const l=`mark-${r}`,c=e.value<=o,u=(e.value-t)/i*100+"%",d={[(0,a.isRTL)()?"right":"left"]:u};s.push({...e,isFilled:c,key:l,style:d})})),s}({marks:n,min:r,max:o,step:"any"===i?1:i,value:s});return(0,ze.jsx)(gS,{"aria-hidden":"true",className:"components-range-control__marks",children:l.map((e=>(0,c.createElement)(AS,{...e,key:e.key,"aria-hidden":"true",disabled:t})))})}function zS(e){const{className:t,inputRef:n,tooltipPosition:r,show:o=!1,style:i={},value:a=0,renderTooltipContent:l=(e=>e),zIndex:c=100,...u}=e,d=function({inputRef:e,tooltipPosition:t}){const[n,r]=(0,Uo.useState)(),o=(0,Uo.useCallback)((()=>{e&&e.current&&r(t)}),[t,e]);return(0,Uo.useEffect)((()=>{o()}),[o]),(0,Uo.useEffect)((()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}))),n}({inputRef:n,tooltipPosition:r}),p=s("components-simple-tooltip",t),h={...i,zIndex:c};return(0,ze.jsx)(IS,{...u,"aria-hidden":o,className:p,position:d,show:o,role:"tooltip",style:h,children:l(a)})}const LS=()=>{};const FS=(0,Uo.forwardRef)((function e(t,n){const{__nextHasNoMarginBottom:r=!1,afterIcon:o,allowReset:i=!1,beforeIcon:c,className:u,color:d=Na.theme.accent,currentInput:p,disabled:h=!1,help:f,hideLabelFromVision:m=!1,initialPosition:g,isShiftStepEnabled:v=!0,label:b,marks:x=!1,max:y=100,min:w=0,onBlur:_=LS,onChange:S=LS,onFocus:C=LS,onMouseLeave:k=LS,onMouseMove:j=LS,railColor:E,renderTooltipContent:P=(e=>e),resetFallbackValue:T,__next40pxDefaultSize:I=!1,shiftStep:M=10,showTooltip:R,step:N=1,trackColor:A,value:D,withInputField:O=!0,...z}=t,[L,F]=function(e){const{min:t,max:n,value:r,initial:o}=e,[i,s]=eS(tS(r,t,n),{initial:tS(null!=o?o:null,t,n),fallback:null});return[i,(0,Uo.useCallback)((e=>{s(null===e?null:tS(e,t,n))}),[t,n,s])]}({min:w,max:y,value:null!=D?D:null,initial:g}),B=(0,Uo.useRef)(!1);let V=R,$=O;"any"===N&&(V=!1,$=!1);const[H,W]=(0,Uo.useState)(V),[U,G]=(0,Uo.useState)(!1),K=(0,Uo.useRef)(),Y=K.current?.matches(":focus"),q=!h&&U,X=null===L,Z=X?"":void 0!==L?L:p,J=X?(y-w)/2+w:L,Q=`${Zx(X?50:(L-w)/(y-w)*100,0,100)}%`,ee=s("components-range-control",u),te=s("components-range-control__wrapper",!!x&&"is-marked"),ne=(0,l.useInstanceId)(e,"inspector-range-control"),re=f?`${ne}__help`:void 0,oe=!1!==V&&Number.isFinite(L),ie=()=>{let e=parseFloat(`${T}`),t=e;isNaN(e)&&(e=null,t=void 0),F(e),S(t)},se={[(0,a.isRTL)()?"right":"left"]:Q};return(0,ze.jsx)(Dx,{__nextHasNoMarginBottom:r,className:ee,label:b,hideLabelFromVision:m,id:`${ne}`,help:f,children:(0,ze.jsxs)(sS,{className:"components-range-control__root",__next40pxDefaultSize:I,children:[c&&(0,ze.jsx)(uS,{children:(0,ze.jsx)(Bx,{icon:c})}),(0,ze.jsxs)(cS,{__nextHasNoMarginBottom:r,className:te,color:d,marks:!!x,children:[(0,ze.jsx)(NS,{...z,className:"components-range-control__slider",describedBy:re,disabled:h,id:`${ne}`,label:b,max:y,min:w,onBlur:e=>{_(e),G(!1),W(!1)},onChange:e=>{const t=parseFloat(e.target.value);F(t),S(t)},onFocus:e=>{C(e),G(!0),W(!0)},onMouseMove:j,onMouseLeave:k,ref:(0,l.useMergeRefs)([K,n]),step:N,value:null!=Z?Z:void 0}),(0,ze.jsx)(DS,{"aria-hidden":!0,disabled:h,marks:x,max:y,min:w,railColor:E,step:N,value:J}),(0,ze.jsx)(mS,{"aria-hidden":!0,className:"components-range-control__track",disabled:h,style:{width:Q},trackColor:A}),(0,ze.jsx)(_S,{className:"components-range-control__thumb-wrapper",style:se,disabled:h,children:(0,ze.jsx)(CS,{"aria-hidden":!0,isFocused:q,disabled:h})}),oe&&(0,ze.jsx)(zS,{className:"components-range-control__tooltip",inputRef:K,tooltipPosition:"bottom",renderTooltipContent:P,show:Y||H,style:se,value:L})]}),o&&(0,ze.jsx)(dS,{children:(0,ze.jsx)(Bx,{icon:o})}),$&&(0,ze.jsx)(MS,{"aria-label":b,className:"components-range-control__number",disabled:h,inputMode:"decimal",isShiftStepEnabled:v,max:y,min:w,onBlur:()=>{B.current&&(ie(),B.current=!1)},onChange:e=>{let t=parseFloat(e);F(t),isNaN(t)?i&&(B.current=!0):((t<w||t>y)&&(t=tS(t,w,y)),S(t),B.current=!1)},shiftStep:M,size:I?"__unstable-large":"default",__unstableInputWidth:ng(I?20:16),step:N,value:Z}),i&&(0,ze.jsx)(RS,{children:(0,ze.jsx)(Hx,{className:"components-range-control__reset",disabled:h||void 0===L,variant:"secondary",size:"small",onClick:ie,children:(0,a.__)("Reset")})})]})})})),BS=FS,VS=ba(sy,{target:"ez9hsf47"})("width:",ng(24),";"),$S=ba(J_,{target:"ez9hsf46"})("margin-left:",ng(-2),";width:5em;"),HS=ba(BS,{target:"ez9hsf45"})("flex:1;margin-right:",ng(2),";"),WS=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${ng(2)} );\n\tmargin-left: ${ng(1)};\n}`,US=ba("div",{target:"ez9hsf44"})("padding-top:",ng(2),";padding-right:0;padding-left:0;padding-bottom:0;"),GS=ba(ry,{target:"ez9hsf43"})("padding-left:",ng(4),";padding-right:",ng(4),";"),KS=ba(dg,{target:"ez9hsf42"})("padding-top:",ng(4),";padding-left:",ng(4),";padding-right:",ng(3),";padding-bottom:",ng(5),";"),YS=ba("div",{target:"ez9hsf41"})(Sx,";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",ng(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",ng(2),";}.react-colorful__pointer{height:16px;width:16px;border:none;box-shadow:0 0 2px 0 rgba( 0, 0, 0, 0.25 );outline:2px solid transparent;}.react-colorful__pointer-fill{box-shadow:inset 0 0 0 ",bv.borderWidthFocus," #fff;}",WS,";"),qS=ba(Hx,{target:"ez9hsf40"})("&&&&&{min-width:",ng(6),";padding:0;>svg{margin-right:0;}}"),XS=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})}),ZS=e=>{const{color:t,colorType:n}=e,[r,o]=(0,Uo.useState)(null),i=(0,Uo.useRef)(),s=(0,l.useCopyToClipboard)((()=>{switch(n){case"hsl":return t.toHslString();case"rgb":return t.toRgbString();default:return t.toHex()}}),(()=>{i.current&&clearTimeout(i.current),o(t.toHex()),i.current=setTimeout((()=>{o(null),i.current=void 0}),3e3)}));return(0,Uo.useEffect)((()=>()=>{i.current&&clearTimeout(i.current)}),[]),(0,ze.jsx)(ri,{delay:0,hideOnClick:!1,text:r===t.toHex()?(0,a.__)("Copied!"):(0,a.__)("Copy"),children:(0,ze.jsx)(qS,{size:"small",ref:s,icon:XS,showTooltip:!1})})},JS=({min:e,max:t,label:n,abbreviation:r,onChange:o,value:i})=>(0,ze.jsxs)(ry,{spacing:4,children:[(0,ze.jsx)(VS,{min:e,max:t,label:n,hideLabelFromVision:!0,value:i,onChange:e=>{o(e?"string"!=typeof e?e:parseInt(e,10):0)},prefix:(0,ze.jsx)(Sg,{as:Dv,paddingLeft:ng(4),color:Na.theme.accent,lineHeight:1,children:r}),spinControls:"none",size:"__unstable-large"}),(0,ze.jsx)(HS,{__nextHasNoMarginBottom:!0,label:n,hideLabelFromVision:!0,min:e,max:t,value:i,onChange:o,withInputField:!1})]}),QS=({color:e,onChange:t,enableAlpha:n})=>{const{r,g:o,b:i,a:s}=e.toRgb();return(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(JS,{min:0,max:255,label:"Red",abbreviation:"R",value:r,onChange:e=>t(av({r:e,g:o,b:i,a:s}))}),(0,ze.jsx)(JS,{min:0,max:255,label:"Green",abbreviation:"G",value:o,onChange:e=>t(av({r,g:e,b:i,a:s}))}),(0,ze.jsx)(JS,{min:0,max:255,label:"Blue",abbreviation:"B",value:i,onChange:e=>t(av({r,g:o,b:e,a:s}))}),n&&(0,ze.jsx)(JS,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*s),onChange:e=>t(av({r,g:o,b:i,a:e/100}))})]})},eC=({color:e,onChange:t,enableAlpha:n})=>{const r=(0,Uo.useMemo)((()=>e.toHsl()),[e]),[o,i]=(0,Uo.useState)({...r}),s=e.isEqual(av(o));(0,Uo.useEffect)((()=>{s||i(r)}),[r,s]);const a=s?o:r,l=n=>{const r=av({...a,...n});e.isEqual(r)?i((e=>({...e,...n}))):t(r)};return(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(JS,{min:0,max:359,label:"Hue",abbreviation:"H",value:a.h,onChange:e=>{l({h:e})}}),(0,ze.jsx)(JS,{min:0,max:100,label:"Saturation",abbreviation:"S",value:a.s,onChange:e=>{l({s:e})}}),(0,ze.jsx)(JS,{min:0,max:100,label:"Lightness",abbreviation:"L",value:a.l,onChange:e=>{l({l:e})}}),n&&(0,ze.jsx)(JS,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*a.a),onChange:e=>{l({a:e/100})}})]})},tC=({color:e,onChange:t,enableAlpha:n})=>(0,ze.jsx)(zx,{prefix:(0,ze.jsx)(Sg,{as:Dv,marginLeft:ng(4),color:Na.theme.accent,lineHeight:1,children:"#"}),value:e.toHex().slice(1).toUpperCase(),onChange:e=>{if(!e)return;const n=e.startsWith("#")?e:"#"+e;t(av(n))},maxLength:n?9:7,label:(0,a.__)("Hex color"),hideLabelFromVision:!0,size:"__unstable-large",__unstableStateReducer:(e,t)=>{const n=t.payload?.event?.nativeEvent;if("insertFromPaste"!==n?.inputType)return{...e};const r=e.value?.startsWith("#")?e.value.slice(1).toUpperCase():e.value?.toUpperCase();return{...e,value:r}},__unstableInputWidth:"9em"}),nC=({colorType:e,color:t,onChange:n,enableAlpha:r})=>{const o={color:t,onChange:n,enableAlpha:r};switch(e){case"hsl":return(0,ze.jsx)(eC,{...o});case"rgb":return(0,ze.jsx)(QS,{...o});default:return(0,ze.jsx)(tC,{...o})}};function rC(){return(rC=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function oC(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function iC(e){var t=(0,c.useRef)(e),n=(0,c.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var sC=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},aC=function(e){return"touches"in e},lC=function(e){return e&&e.ownerDocument.defaultView||self},cC=function(e,t,n){var r=e.getBoundingClientRect(),o=aC(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:sC((o.pageX-(r.left+lC(e).pageXOffset))/r.width),top:sC((o.pageY-(r.top+lC(e).pageYOffset))/r.height)}},uC=function(e){!aC(e)&&e.preventDefault()},dC=c.memo((function(e){var t=e.onMove,n=e.onKey,r=oC(e,["onMove","onKey"]),o=(0,c.useRef)(null),i=iC(t),s=iC(n),a=(0,c.useRef)(null),l=(0,c.useRef)(!1),u=(0,c.useMemo)((function(){var e=function(e){uC(e),(aC(e)?e.touches.length>0:e.buttons>0)&&o.current?i(cC(o.current,e,a.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=l.current,i=lC(o.current),s=n?i.addEventListener:i.removeEventListener;s(r?"touchmove":"mousemove",e),s(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=o.current;if(r&&(uC(t),!function(e,t){return t&&!aC(e)}(t,l.current)&&r)){if(aC(t)){l.current=!0;var s=t.changedTouches||[];s.length&&(a.current=s[0].identifier)}r.focus(),i(cC(r,t,a.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),s({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[s,i]),d=u[0],p=u[1],h=u[2];return(0,c.useEffect)((function(){return h}),[h]),c.createElement("div",rC({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:p,tabIndex:0,role:"slider"}))})),pC=function(e){return e.filter(Boolean).join(" ")},hC=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=pC(["react-colorful__pointer",e.className]);return c.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},c.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},fC=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},mC=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:fC(e.h),s:fC(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:fC(o/2),a:fC(r,2)}}),gC=function(e){var t=mC(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},vC=function(e){var t=mC(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},bC=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:fC(255*[r,a,s,s,l,r][c]),g:fC(255*[l,r,r,a,s,s][c]),b:fC(255*[s,s,l,r,r,a][c]),a:fC(o,2)}},xC=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?wC({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},yC=xC,wC=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:fC(60*(a<0?a+6:a)),s:fC(i?s/i*100:0),v:fC(i/255*100),a:o}},_C=c.memo((function(e){var t=e.hue,n=e.onChange,r=pC(["react-colorful__hue",e.className]);return c.createElement("div",{className:r},c.createElement(dC,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:sC(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":fC(t),"aria-valuemax":"360","aria-valuemin":"0"},c.createElement(hC,{className:"react-colorful__hue-pointer",left:t/360,color:gC({h:t,s:100,v:100,a:1})})))})),SC=c.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:gC({h:t.h,s:100,v:100,a:1})};return c.createElement("div",{className:"react-colorful__saturation",style:r},c.createElement(dC,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:sC(t.s+100*e.left,0,100),v:sC(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+fC(t.s)+"%, Brightness "+fC(t.v)+"%"},c.createElement(hC,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:gC(t)})))})),CC=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},kC=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function jC(e,t,n){var r=iC(n),o=(0,c.useState)((function(){return e.toHsva(t)})),i=o[0],s=o[1],a=(0,c.useRef)({color:t,hsva:i});(0,c.useEffect)((function(){if(!e.equal(t,a.current.color)){var n=e.toHsva(t);a.current={hsva:n,color:t},s(n)}}),[t,e]),(0,c.useEffect)((function(){var t;CC(i,a.current.hsva)||e.equal(t=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:t},r(t))}),[i,e,r]);var l=(0,c.useCallback)((function(e){s((function(t){return Object.assign({},t,e)}))}),[]);return[i,l]}var EC,PC="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,TC=new Map,IC=function(e){PC((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!TC.has(t)){var n=t.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',TC.set(t,n);var r=EC||o.nc;r&&n.setAttribute("nonce",r),t.head.appendChild(n)}}),[])},MC=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,s=oC(e,["className","colorModel","color","onChange"]),a=(0,c.useRef)(null);IC(a);var l=jC(n,o,i),u=l[0],d=l[1],p=pC(["react-colorful",t]);return c.createElement("div",rC({},s,{ref:a,className:p}),c.createElement(SC,{hsva:u,onChange:d}),c.createElement(_C,{hue:u.h,onChange:d,className:"react-colorful__last-control"}))},RC=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+vC(Object.assign({},n,{a:0}))+", "+vC(Object.assign({},n,{a:1}))+")"},i=pC(["react-colorful__alpha",t]),s=fC(100*n.a);return c.createElement("div",{className:i},c.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),c.createElement(dC,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:sC(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},c.createElement(hC,{className:"react-colorful__alpha-pointer",left:n.a,color:vC(n)})))},NC=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,s=oC(e,["className","colorModel","color","onChange"]),a=(0,c.useRef)(null);IC(a);var l=jC(n,o,i),u=l[0],d=l[1],p=pC(["react-colorful",t]);return c.createElement("div",rC({},s,{ref:a,className:p}),c.createElement(SC,{hsva:u,onChange:d}),c.createElement(_C,{hue:u.h,onChange:d}),c.createElement(RC,{hsva:u,onChange:d,className:"react-colorful__last-control"}))},AC={defaultColor:"rgba(0, 0, 0, 1)",toHsva:xC,fromHsva:function(e){var t=bC(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:kC},DC=function(e){return c.createElement(NC,rC({},e,{colorModel:AC}))},OC={defaultColor:"rgb(0, 0, 0)",toHsva:yC,fromHsva:function(e){var t=bC(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:kC},zC=function(e){return c.createElement(MC,rC({},e,{colorModel:OC}))};const LC=({color:e,enableAlpha:t,onChange:n})=>{const r=t?DC:zC,o=(0,Uo.useMemo)((()=>e.toRgbString()),[e]);return(0,ze.jsx)(r,{color:o,onChange:e=>{n(av(e))},onPointerDown:({currentTarget:e,pointerId:t})=>{e.setPointerCapture(t)},onPointerUp:({currentTarget:e,pointerId:t})=>{e.releasePointerCapture(t)}})};cv([uv]);const FC=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],BC={InputBase:{isBorderless:!0}},VC=oa(((e,t)=>{const{enableAlpha:n=!1,color:r,onChange:o,defaultValue:i="#fff",copyFormat:s,...c}=ra(e,"ColorPicker"),[u,d]=u_({onChange:o,value:r,defaultValue:i}),p=(0,Uo.useMemo)((()=>av(u||"")),[u]),h=(0,l.useDebounce)(d),f=(0,Uo.useCallback)((e=>{h(e.toHex())}),[h]),[m,g]=(0,Uo.useState)(s||"hex");return(0,ze.jsxs)(YS,{ref:t,...c,children:[(0,ze.jsx)(LC,{onChange:f,color:p,enableAlpha:n}),(0,ze.jsxs)(US,{children:[(0,ze.jsxs)(GS,{justify:"space-between",children:[(0,ze.jsx)(hi,{value:BC,children:(0,ze.jsx)($S,{__nextHasNoMarginBottom:!0,options:FC,value:m,onChange:e=>g(e),label:(0,a.__)("Color format"),hideLabelFromVision:!0})}),(0,ze.jsx)(ZS,{color:p,colorType:s||m})]}),(0,ze.jsx)(KS,{direction:"column",gap:2,children:(0,ze.jsx)(nC,{colorType:m,color:p,onChange:f,enableAlpha:n})})]})]})}),"ColorPicker"),$C=VC;function HC(e){if(void 0!==e)return"string"==typeof e?e:e.hex?e.hex:void 0}const WC=Ci((e=>{const t=av(e),n=t.toHex(),r=t.toRgb(),o=t.toHsv(),i=t.toHsl();return{hex:n,rgb:r,hsv:o,hsl:i,source:"hex",oldHue:i.h}}));function UC(e){const{onChangeComplete:t}=e,n=(0,Uo.useCallback)((e=>{t(WC(e))}),[t]);return function(e){return void 0!==e.onChangeComplete||void 0!==e.disableAlpha||"string"==typeof e.color?.hex}(e)?{color:HC(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}const GC=e=>(0,ze.jsx)($C,{...UC(e)}),KC=(0,Uo.createContext)({}),YC=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})});const qC=(0,Uo.forwardRef)((function(e,t){const{isPressed:n,...r}=e;return(0,ze.jsx)(Hx,{...r,"aria-pressed":n,ref:t})}));const XC=(0,Uo.forwardRef)((function(e,t){const{id:n,isSelected:r,compositeStore:o,...i}=e,s=o.useState("activeId");return r&&!s&&o.setActiveId(n),(0,ze.jsx)(Kt,{render:(0,ze.jsx)(Hx,{...i,role:"option","aria-selected":!!r,ref:t}),store:o,id:n})}));function ZC(e){const{actions:t,options:n,baseId:r,className:o,loop:i=!0,children:s,...l}=e,c=rl({focusLoop:i,rtl:(0,a.isRTL)()}),u={baseId:r,compositeStore:c};return(0,ze.jsx)("div",{className:o,children:(0,ze.jsxs)(KC.Provider,{value:u,children:[(0,ze.jsx)(sl,{...l,id:r,store:c,role:"listbox",children:n}),s,t]})})}function JC(e){const{actions:t,options:n,children:r,baseId:o,...i}=e;return(0,ze.jsx)("div",{...i,id:o,children:(0,ze.jsxs)(KC.Provider,{value:{baseId:o},children:[n,r,t]})})}function QC(e){const{asButtons:t,actions:n,options:r,children:o,className:i,...a}=e,c=(0,l.useInstanceId)(QC,"components-circular-option-picker",a.id),u=t?JC:ZC,d=n?(0,ze.jsx)("div",{className:"components-circular-option-picker__custom-clear-wrapper",children:n}):void 0,p=(0,ze.jsx)("div",{className:"components-circular-option-picker__swatches",children:r});return(0,ze.jsx)(u,{...a,baseId:c,className:s("components-circular-option-picker",i),actions:d,options:p,children:o})}QC.Option=function e({className:t,isSelected:n,selectedIconProps:r={},tooltipText:o,...i}){const{baseId:a,compositeStore:c}=(0,Uo.useContext)(KC),u={id:(0,l.useInstanceId)(e,a||"components-circular-option-picker__option"),className:"components-circular-option-picker__option",...i},d=c?(0,ze.jsx)(XC,{...u,compositeStore:c,isSelected:n}):(0,ze.jsx)(qC,{...u,isPressed:n});return(0,ze.jsxs)("div",{className:s(t,"components-circular-option-picker__option-wrapper"),children:[o?(0,ze.jsx)(ri,{text:o,children:d}):d,n&&(0,ze.jsx)(Y_,{icon:YC,...r})]})},QC.OptionGroup=function({className:e,options:t,...n}){const r="aria-label"in n||"aria-labelledby"in n?"group":void 0;return(0,ze.jsx)("div",{...n,role:r,className:s("components-circular-option-picker__option-group","components-circular-option-picker__swatches",e),children:t})},QC.ButtonAction=function({className:e,children:t,...n}){return(0,ze.jsx)(Hx,{className:s("components-circular-option-picker__clear",e),variant:"tertiary",...n,children:t})},QC.DropdownLinkAction=function({buttonProps:e,className:t,dropdownProps:n,linkText:r}){return(0,ze.jsx)(F_,{className:s("components-circular-option-picker__dropdown-link-action",t),renderToggle:({isOpen:t,onToggle:n})=>(0,ze.jsx)(Hx,{"aria-expanded":t,"aria-haspopup":"true",onClick:n,variant:"link",...e,children:r}),...n})};const ek=QC;const tk=oa((function(e,t){const n=function(e){const{expanded:t=!1,alignment:n="stretch",...r}=ra(e,"VStack");return ny({direction:"column",expanded:t,alignment:n,...r})}(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"VStack");const nk=oa((function(e,t){const n=Ag(e);return(0,ze.jsx)(ya,{as:"span",...n,ref:t})}),"Truncate");const rk=oa((function(e,t){const n=function(e){const{as:t,level:n=2,color:r=Na.gray[900],isBlock:o=!0,weight:i=bv.fontWeightHeading,...s}=ra(e,"Heading"),a=t||`h${n}`,l={};return"string"==typeof a&&"h"!==a[0]&&(l.role="heading",l["aria-level"]="string"==typeof n?parseInt(n):n),{...Av({color:r,isBlock:o,weight:i,size:Rv(n),...s}),...l,as:a}}(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"Heading"),ok=rk;const ik=ba(ok,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),sk=({paddingSize:e="small"})=>{if("none"===e)return;const t={small:ng(2),medium:ng(4)};return Ea("padding:",t[e]||t.small,";","")},ak=ba("div",{target:"eovvns30"})("margin-left:",ng(-2),";margin-right:",ng(-2),";&:first-of-type{margin-top:",ng(-2),";}&:last-of-type{margin-bottom:",ng(-2),";}",sk,";");const lk=oa((function(e,t){const{paddingSize:n="small",...r}=ra(e,"DropdownContentWrapper");return(0,ze.jsx)(ak,{...r,paddingSize:n,ref:t})}),"DropdownContentWrapper");cv([uv,z_]);const ck=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.colors)&&!("color"in t);var t}));function uk({className:e,clearColor:t,colors:n,onChange:r,value:o,...i}){const s=(0,Uo.useMemo)((()=>n.map((({color:e,name:n},i)=>{const s=av(e),l=o===e;return(0,ze.jsx)(ek.Option,{isSelected:l,selectedIconProps:l?{fill:s.contrast()>s.contrast("#000")?"#fff":"#000"}:{},tooltipText:n||(0,a.sprintf)((0,a.__)("Color code: %s"),e),style:{backgroundColor:e,color:e},onClick:l?t:()=>r(e,i),"aria-label":n?(0,a.sprintf)((0,a.__)("Color: %s"),n):(0,a.sprintf)((0,a.__)("Color code: %s"),e)},`${e}-${i}`)}))),[n,o,r,t]);return(0,ze.jsx)(ek.OptionGroup,{className:e,options:s,...i})}function dk({className:e,clearColor:t,colors:n,onChange:r,value:o,headingLevel:i}){const s=(0,l.useInstanceId)(dk,"color-palette");return 0===n.length?null:(0,ze.jsx)(tk,{spacing:3,className:e,children:n.map((({name:e,colors:n},a)=>{const l=`${s}-${a}`;return(0,ze.jsxs)(tk,{spacing:2,children:[(0,ze.jsx)(ik,{id:l,level:i,children:e}),(0,ze.jsx)(uk,{clearColor:t,colors:n,onChange:e=>r(e,a),value:o,"aria-labelledby":l})]},a)}))})}function pk({isRenderedInSidebar:e,popoverProps:t,...n}){const r=(0,Uo.useMemo)((()=>({shift:!0,resize:!1,...e?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...t})),[e,t]);return(0,ze.jsx)(F_,{contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:r,...n})}cv([uv,z_]);const hk=(0,Uo.forwardRef)((function(e,t){const{asButtons:n,loop:r,clearable:o=!0,colors:i=[],disableCustomColors:l=!1,enableAlpha:c=!1,onChange:u,value:d,__experimentalIsRenderedInSidebar:p=!1,headingLevel:h=2,"aria-label":f,"aria-labelledby":m,...g}=e,[v,b]=(0,Uo.useState)(d),x=(0,Uo.useCallback)((()=>u(void 0)),[u]),y=(0,Uo.useCallback)((e=>{b(((e,t)=>{if(!/^var\(/.test(null!=e?e:"")||null===t)return e;const{ownerDocument:n}=t,{defaultView:r}=n,o=r?.getComputedStyle(t).backgroundColor;return o?av(o).toHex():e})(d,e))}),[d]),w=ck(i),_=(0,Uo.useMemo)((()=>((e,t=[],n=!1)=>{if(!e)return"";const r=/^var\(/.test(e),o=r?e:av(e).toHex(),i=n?t:[{colors:t}];for(const{colors:e}of i)for(const{name:t,color:n}of e)if(o===(r?n:av(n).toHex()))return t;return(0,a.__)("Custom")})(d,i,w)),[d,i,w]),S=d?.startsWith("#"),C=d?.replace(/^var\((.+)\)$/,"$1"),k=C?(0,a.sprintf)((0,a.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),_,C):(0,a.__)("Custom color picker."),j={clearColor:x,onChange:u,value:d},E=!!o&&(0,ze.jsx)(ek.ButtonAction,{onClick:x,children:(0,a.__)("Clear")});let P;if(n)P={asButtons:!0};else{const e={asButtons:!1,loop:r};P=f?{...e,"aria-label":f}:m?{...e,"aria-labelledby":m}:{...e,"aria-label":(0,a.__)("Custom color picker.")}}return(0,ze.jsxs)(tk,{spacing:3,ref:t,...g,children:[!l&&(0,ze.jsx)(pk,{isRenderedInSidebar:p,renderContent:()=>(0,ze.jsx)(lk,{paddingSize:"none",children:(0,ze.jsx)(GC,{color:v,onChange:e=>u(e),enableAlpha:c})}),renderToggle:({isOpen:e,onToggle:t})=>(0,ze.jsxs)(tk,{className:"components-color-palette__custom-color-wrapper",spacing:0,children:[(0,ze.jsx)("button",{ref:y,className:"components-color-palette__custom-color-button","aria-expanded":e,"aria-haspopup":"true",onClick:t,"aria-label":k,style:{background:d},type:"button"}),(0,ze.jsxs)(tk,{className:"components-color-palette__custom-color-text-wrapper",spacing:.5,children:[(0,ze.jsx)(nk,{className:"components-color-palette__custom-color-name",children:d?_:(0,a.__)("No color selected")}),(0,ze.jsx)(nk,{className:s("components-color-palette__custom-color-value",{"components-color-palette__custom-color-value--is-hex":S}),children:C})]})]})}),(0,ze.jsx)(ek,{...P,actions:E,options:w?(0,ze.jsx)(dk,{...j,headingLevel:h,colors:i,value:d}):(0,ze.jsx)(uk,{...j,colors:i,value:d})})]})})),fk=hk,mk=ba(sy,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",Bv,"{transition:box-shadow 0.1s linear;}}"),gk=({selectSize:e})=>({small:Ea("box-sizing:border-box;padding:2px 1px;width:20px;color:",Na.gray[800],";font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;",""),default:Ea("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",ng(2),";padding:",ng(1),";color:",Na.theme.accent,";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;","")}[e]),vk=ba("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",gk,";color:",Na.gray[900],";}"),bk=({selectSize:e="default"})=>({small:Ea("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",yg({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",Na.gray[100],";}&:focus{border:1px solid ",Na.ui.borderFocus,";box-shadow:inset 0 0 0 ",bv.borderWidth+" "+Na.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),default:Ea("display:flex;justify-content:center;align-items:center;&:hover{color:",Na.ui.borderFocus,";box-shadow:inset 0 0 0 ",bv.borderWidth+" "+Na.ui.borderFocus,";outline:",bv.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",bv.borderWidthFocus+" "+Na.ui.borderFocus,";outline:",bv.borderWidthFocus," solid transparent;}","")}[e]),xk=ba("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",gk,";",bk,";&:not( :disabled ){cursor:pointer;}}");const yk={name:"f3vz0n",styles:"font-weight:500"},wk=Ea("box-shadow:inset ",bv.controlBoxShadowFocus,";",""),_k=Ea("border:0;padding:0;margin:0;",Sx,";",""),Sk=Ea(mk,"{flex:0 0 auto;}",""),Ck=Ea("background:#fff;&&>button{aspect-ratio:1;padding:0;display:flex;align-items:center;justify-content:center;",yg({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",bv.borderWidth," solid ",Na.ui.border,";&:focus,&:hover:not( :disabled ){",wk," border-color:",Na.ui.borderFocus,";z-index:1;position:relative;}}",""),kk=(e,t)=>{const{style:n}=e||{};return Ea("border-radius:9999px;border:2px solid transparent;",n?(e=>{const{color:t,style:n}=e||{},r=n&&"none"!==n?Na.gray[300]:void 0;return Ea("border-style:","none"===n?"solid":n,";border-color:",t||r,";","")})(e):void 0," width:","__unstable-large"===t?"24px":"22px",";height:","__unstable-large"===t?"24px":"22px",";padding:","__unstable-large"===t?"2px":"1px",";&>span{height:",ng(4),";width:",ng(4),";background:linear-gradient(\n\t\t\t\t-45deg,\n\t\t\t\ttransparent 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 52%,\n\t\t\t\ttransparent 52%\n\t\t\t);}","")},jk=Ea("width:",228,"px;>div:first-of-type>",Px,"{margin-bottom:0;",yk,";}&& ",Px,"+button:not( .has-text ){min-width:24px;padding:0;}",""),Ek=Ea("",""),Pk=Ea("",""),Tk=Ea("justify-content:center;width:100%;&&{border-top:",bv.borderWidth," solid ",Na.gray[400],";border-top-left-radius:0;border-top-right-radius:0;height:40px;}",""),Ik="web"===Uo.Platform.OS,Mk={px:{value:"px",label:Ik?"px":(0,a.__)("Pixels (px)"),a11yLabel:(0,a.__)("Pixels (px)"),step:1},"%":{value:"%",label:Ik?"%":(0,a.__)("Percentage (%)"),a11yLabel:(0,a.__)("Percent (%)"),step:.1},em:{value:"em",label:Ik?"em":(0,a.__)("Relative to parent font size (em)"),a11yLabel:(0,a._x)("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:Ik?"rem":(0,a.__)("Relative to root font size (rem)"),a11yLabel:(0,a._x)("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:Ik?"vw":(0,a.__)("Viewport width (vw)"),a11yLabel:(0,a.__)("Viewport width (vw)"),step:.1},vh:{value:"vh",label:Ik?"vh":(0,a.__)("Viewport height (vh)"),a11yLabel:(0,a.__)("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:Ik?"vmin":(0,a.__)("Viewport smallest dimension (vmin)"),a11yLabel:(0,a.__)("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:Ik?"vmax":(0,a.__)("Viewport largest dimension (vmax)"),a11yLabel:(0,a.__)("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:Ik?"ch":(0,a.__)("Width of the zero (0) character (ch)"),a11yLabel:(0,a.__)("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:Ik?"ex":(0,a.__)("x-height of the font (ex)"),a11yLabel:(0,a.__)("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:Ik?"cm":(0,a.__)("Centimeters (cm)"),a11yLabel:(0,a.__)("Centimeters (cm)"),step:.001},mm:{value:"mm",label:Ik?"mm":(0,a.__)("Millimeters (mm)"),a11yLabel:(0,a.__)("Millimeters (mm)"),step:.1},in:{value:"in",label:Ik?"in":(0,a.__)("Inches (in)"),a11yLabel:(0,a.__)("Inches (in)"),step:.001},pc:{value:"pc",label:Ik?"pc":(0,a.__)("Picas (pc)"),a11yLabel:(0,a.__)("Picas (pc)"),step:1},pt:{value:"pt",label:Ik?"pt":(0,a.__)("Points (pt)"),a11yLabel:(0,a.__)("Points (pt)"),step:1},svw:{value:"svw",label:Ik?"svw":(0,a.__)("Small viewport width (svw)"),a11yLabel:(0,a.__)("Small viewport width (svw)"),step:.1},svh:{value:"svh",label:Ik?"svh":(0,a.__)("Small viewport height (svh)"),a11yLabel:(0,a.__)("Small viewport height (svh)"),step:.1},svi:{value:"svi",label:Ik?"svi":(0,a.__)("Viewport smallest size in the inline direction (svi)"),a11yLabel:(0,a.__)("Small viewport width or height (svi)"),step:.1},svb:{value:"svb",label:Ik?"svb":(0,a.__)("Viewport smallest size in the block direction (svb)"),a11yLabel:(0,a.__)("Small viewport width or height (svb)"),step:.1},svmin:{value:"svmin",label:Ik?"svmin":(0,a.__)("Small viewport smallest dimension (svmin)"),a11yLabel:(0,a.__)("Small viewport smallest dimension (svmin)"),step:.1},lvw:{value:"lvw",label:Ik?"lvw":(0,a.__)("Large viewport width (lvw)"),a11yLabel:(0,a.__)("Large viewport width (lvw)"),step:.1},lvh:{value:"lvh",label:Ik?"lvh":(0,a.__)("Large viewport height (lvh)"),a11yLabel:(0,a.__)("Large viewport height (lvh)"),step:.1},lvi:{value:"lvi",label:Ik?"lvi":(0,a.__)("Large viewport width or height (lvi)"),a11yLabel:(0,a.__)("Large viewport width or height (lvi)"),step:.1},lvb:{value:"lvb",label:Ik?"lvb":(0,a.__)("Large viewport width or height (lvb)"),a11yLabel:(0,a.__)("Large viewport width or height (lvb)"),step:.1},lvmin:{value:"lvmin",label:Ik?"lvmin":(0,a.__)("Large viewport smallest dimension (lvmin)"),a11yLabel:(0,a.__)("Large viewport smallest dimension (lvmin)"),step:.1},dvw:{value:"dvw",label:Ik?"dvw":(0,a.__)("Dynamic viewport width (dvw)"),a11yLabel:(0,a.__)("Dynamic viewport width (dvw)"),step:.1},dvh:{value:"dvh",label:Ik?"dvh":(0,a.__)("Dynamic viewport height (dvh)"),a11yLabel:(0,a.__)("Dynamic viewport height (dvh)"),step:.1},dvi:{value:"dvi",label:Ik?"dvi":(0,a.__)("Dynamic viewport width or height (dvi)"),a11yLabel:(0,a.__)("Dynamic viewport width or height (dvi)"),step:.1},dvb:{value:"dvb",label:Ik?"dvb":(0,a.__)("Dynamic viewport width or height (dvb)"),a11yLabel:(0,a.__)("Dynamic viewport width or height (dvb)"),step:.1},dvmin:{value:"dvmin",label:Ik?"dvmin":(0,a.__)("Dynamic viewport smallest dimension (dvmin)"),a11yLabel:(0,a.__)("Dynamic viewport smallest dimension (dvmin)"),step:.1},dvmax:{value:"dvmax",label:Ik?"dvmax":(0,a.__)("Dynamic viewport largest dimension (dvmax)"),a11yLabel:(0,a.__)("Dynamic viewport largest dimension (dvmax)"),step:.1},svmax:{value:"svmax",label:Ik?"svmax":(0,a.__)("Small viewport largest dimension (svmax)"),a11yLabel:(0,a.__)("Small viewport largest dimension (svmax)"),step:.1},lvmax:{value:"lvmax",label:Ik?"lvmax":(0,a.__)("Large viewport largest dimension (lvmax)"),a11yLabel:(0,a.__)("Large viewport largest dimension (lvmax)"),step:.1}},Rk=Object.values(Mk),Nk=[Mk.px,Mk["%"],Mk.em,Mk.rem,Mk.vw,Mk.vh],Ak=Mk.px;function Dk(e,t,n){return zk(t?`${null!=e?e:""}${t}`:e,n)}function Ok(e){return Array.isArray(e)&&!!e.length}function zk(e,t=Rk){let n,r;if(void 0!==e||null===e){n=`${e}`.trim();const t=parseFloat(n);r=isFinite(t)?t:void 0}const o=n?.match(/[\d.\-\+]*\s*(.*)/),i=o?.[1]?.toLowerCase();let s;if(Ok(t)){const e=t.find((e=>e.value===i));s=e?.value}else s=Ak.value;return[r,s]}const Lk=({units:e=Rk,availableUnits:t=[],defaultValues:n})=>{const r=function(e=[],t){return Array.isArray(t)?t.filter((t=>e.includes(t.value))):[]}(t,e);return n&&r.forEach(((e,t)=>{if(n[e.value]){const[o]=zk(n[e.value]);r[t].default=o}})),r};const Fk=e=>e.replace(/^var\((.+)\)$/,"$1"),Bk=oa(((e,t)=>{const{__experimentalIsRenderedInSidebar:n,border:r,colors:o,disableCustomColors:i,enableAlpha:s,enableStyle:l,indicatorClassName:c,indicatorWrapperClassName:u,isStyleSettable:d,onReset:p,onColorChange:h,onStyleChange:f,popoverContentClassName:m,popoverControlsClassName:g,resetButtonClassName:v,showDropdownHeader:b,size:x,__unstablePopoverProps:y,...w}=function(e){const{border:t,className:n,colors:r=[],enableAlpha:o=!1,enableStyle:i=!0,onChange:s,previousStyleSelection:a,size:l="default",__experimentalIsRenderedInSidebar:c=!1,...u}=ra(e,"BorderControlDropdown"),[d]=zk(t?.width),p=0===d,h=na(),f=(0,Uo.useMemo)((()=>h(Ck,n)),[n,h]),m=(0,Uo.useMemo)((()=>h(Pk)),[h]),g=(0,Uo.useMemo)((()=>h(kk(t,l))),[t,h,l]),v=(0,Uo.useMemo)((()=>h(jk)),[h]),b=(0,Uo.useMemo)((()=>h(Ek)),[h]),x=(0,Uo.useMemo)((()=>h(Tk)),[h]);return{...u,border:t,className:f,colors:r,enableAlpha:o,enableStyle:i,indicatorClassName:m,indicatorWrapperClassName:g,onColorChange:e=>{s({color:e,style:"none"===t?.style?a:t?.style,width:p&&e?"1px":t?.width})},onStyleChange:e=>{const n=p&&e?"1px":t?.width;s({...t,style:e,width:n})},onReset:()=>{s({...t,color:void 0,style:void 0})},popoverContentClassName:b,popoverControlsClassName:v,resetButtonClassName:x,size:l,__experimentalIsRenderedInSidebar:c}}(e),{color:_,style:S}=r||{},C=((e,t)=>{if(e&&t){if(ck(t)){let n;return t.some((t=>t.colors.some((t=>t.color===e&&(n=t,!0))))),n}return t.find((t=>t.color===e))}})(_,o),k=((e,t,n,r)=>{if(r){if(t){const e=Fk(t.color);return n?(0,a.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".',t.name,e,n):(0,a.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,e)}if(e){const t=Fk(e);return n?(0,a.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".',t,n):(0,a.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s".',t)}return(0,a.__)("Border color and style picker.")}return t?(0,a.sprintf)('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,Fk(t.color)):e?(0,a.sprintf)('Border color picker. The currently selected color has a value of "%1$s".',Fk(e)):(0,a.__)("Border color picker.")})(_,C,S,l),j=_||S&&"none"!==S,E=n?"bottom left":void 0;return(0,ze.jsx)(F_,{renderToggle:({onToggle:e})=>(0,ze.jsx)(Hx,{onClick:e,variant:"tertiary","aria-label":k,tooltipPosition:E,label:(0,a.__)("Border color and style picker"),showTooltip:!0,__next40pxDefaultSize:"__unstable-large"===x,children:(0,ze.jsx)("span",{className:u,children:(0,ze.jsx)(A_,{className:c,colorValue:_})})}),renderContent:({onClose:e})=>(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(lk,{paddingSize:"medium",children:(0,ze.jsxs)(tk,{className:g,spacing:6,children:[b?(0,ze.jsxs)(ry,{children:[(0,ze.jsx)(Px,{children:(0,a.__)("Border color")}),(0,ze.jsx)(Hx,{size:"small",label:(0,a.__)("Close border color"),icon:zw,onClick:e})]}):void 0,(0,ze.jsx)(fk,{className:m,value:_,onChange:h,colors:o,disableCustomColors:i,__experimentalIsRenderedInSidebar:n,clearable:!1,enableAlpha:s}),l&&d&&(0,ze.jsx)(N_,{label:(0,a.__)("Style"),value:S,onChange:f})]})}),j&&(0,ze.jsx)(lk,{paddingSize:"none",children:(0,ze.jsx)(Hx,{className:v,variant:"tertiary",onClick:()=>{p(),e()},children:(0,a.__)("Reset")})})]}),popoverProps:{...y},...w,ref:t})}),"BorderControlDropdown"),Vk=Bk;const $k=(0,Uo.forwardRef)((function({className:e,isUnitSelectTabbable:t=!0,onChange:n,size:r="default",unit:o="px",units:i=Nk,...a},l){if(!Ok(i)||1===i?.length)return(0,ze.jsx)(vk,{className:"components-unit-control__unit-label",selectSize:r,children:o});const c=s("components-unit-control__select",e);return(0,ze.jsx)(xk,{ref:l,className:c,onChange:e=>{const{value:t}=e.target,r=i.find((e=>e.value===t));n?.(t,{event:e,data:r})},selectSize:r,tabIndex:t?void 0:-1,value:o,...a,children:i.map((e=>(0,ze.jsx)("option",{value:e.value,children:e.label},e.value)))})}));const Hk=(0,Uo.forwardRef)((function(e,t){const{__unstableStateReducer:n,autoComplete:r="off",children:o,className:i,disabled:l=!1,disableUnits:c=!1,isPressEnterToChange:u=!1,isResetValueOnUnitChange:d=!1,isUnitSelectTabbable:p=!0,label:h,onChange:f,onUnitChange:m,size:g="default",unit:v,units:b=Nk,value:x,onFocus:y,...w}=ib(e);"unit"in e&&Ko()("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const _=null!=x?x:void 0,[S,C]=(0,Uo.useMemo)((()=>{const e=function(e,t,n=Rk){const r=Array.isArray(n)?[...n]:[],[,o]=Dk(e,t,Rk);return o&&!r.some((e=>e.value===o))&&Mk[o]&&r.unshift(Mk[o]),r}(_,v,b),[{value:t=""}={},...n]=e,r=n.reduce(((e,{value:t})=>{const n=wy(t?.substring(0,1)||"");return e.includes(n)?e:`${e}|${n}`}),wy(t.substring(0,1)));return[e,new RegExp(`^(?:${r})$`,"i")]}),[_,v,b]),[k,j]=Dk(_,v,S),[E,P]=eS(1===S.length?S[0].value:v,{initial:j,fallback:""});(0,Uo.useEffect)((()=>{void 0!==j&&P(j)}),[j,P]);const T=s("components-unit-control","components-unit-control-wrapper",i);let I;!c&&p&&S.length&&(I=e=>{w.onKeyDown?.(e),!e.metaKey&&C.test(e.key)&&M.current?.focus()});const M=(0,Uo.useRef)(null),R=c?null:(0,ze.jsx)($k,{ref:M,"aria-label":(0,a.__)("Select unit"),disabled:l,isUnitSelectTabbable:p,onChange:(e,t)=>{const{data:n}=t;let r=`${null!=k?k:""}${e}`;d&&void 0!==n?.default&&(r=`${n.default}${e}`),f?.(r,t),m?.(e,t),P(e)},size:["small","compact"].includes(g)||"default"===g&&!w.__next40pxDefaultSize?"small":"default",unit:E,units:S,onFocus:y,onBlur:e.onBlur});let N=w.step;if(!N&&S){var A;const e=S.find((e=>e.value===E));N=null!==(A=e?.step)&&void 0!==A?A:1}return(0,ze.jsx)(mk,{...w,autoComplete:r,className:T,disabled:l,spinControls:"none",isPressEnterToChange:u,label:h,onKeyDown:I,onChange:(e,t)=>{if(""===e||null==e)return void f?.("",t);const n=function(e,t,n,r){const[o,i]=zk(e,t),s=null!=o?o:n;let a=i||r;return!a&&Ok(t)&&(a=t[0].value),[s,a]}(e,S,k,E).join("");f?.(n,t)},ref:t,size:g,suffix:R,type:u?"text":"number",value:null!=k?k:"",step:N,onFocus:y,__unstableStateReducer:n})})),Wk=Hk,Uk=e=>void 0!==e?.width&&""!==e.width||void 0!==e?.color;function Gk(e){const{className:t,colors:n=[],isCompact:r,onChange:o,enableAlpha:i=!0,enableStyle:s=!0,shouldSanitizeBorder:a=!0,size:l="default",value:c,width:u,__experimentalIsRenderedInSidebar:d=!1,__next40pxDefaultSize:p,...h}=ra(e,"BorderControl"),f="default"===l&&p?"__unstable-large":l,[m,g]=zk(c?.width),v=g||"px",b=0===m,[x,y]=(0,Uo.useState)(),[w,_]=(0,Uo.useState)(),S=!a||Uk(c),C=(0,Uo.useCallback)((e=>{!a||Uk(e)?o(e):o(void 0)}),[o,a]),k=(0,Uo.useCallback)((e=>{const t=""===e?void 0:e,[n]=zk(e),r=0===n,o={...c,width:t};r&&!b&&(y(c?.color),_(c?.style),o.color=void 0,o.style="none"),!r&&b&&(void 0===o.color&&(o.color=x),"none"===o.style&&(o.style=w)),C(o)}),[c,b,x,w,C]),j=(0,Uo.useCallback)((e=>{k(`${e}${v}`)}),[k,v]),E=na(),P=(0,Uo.useMemo)((()=>E(_k,t)),[t,E]);let T=u;r&&(T="__unstable-large"===l?"116px":"90px");const I=(0,Uo.useMemo)((()=>{const e=!!T&&Sk,t=(e=>Ea("height:","__unstable-large"===e?"40px":"30px",";",""))(f);return E(Ea(mk,"{flex:1 1 40%;}&& ",xk,"{min-height:0;}",""),e,t)}),[T,E,f]),M=(0,Uo.useMemo)((()=>E(Ea("flex:1 1 60%;",yg({marginRight:ng(3)})(),";",""))),[E]);return{...h,className:P,colors:n,enableAlpha:i,enableStyle:s,innerWrapperClassName:I,inputWidth:T,isStyleSettable:S,onBorderChange:C,onSliderChange:j,onWidthChange:k,previousStyleSelection:w,sliderClassName:M,value:c,widthUnit:v,widthValue:m,size:f,__experimentalIsRenderedInSidebar:d,__next40pxDefaultSize:p}}const Kk=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,ze.jsx)(wa,{as:"legend",children:t}):(0,ze.jsx)(Px,{as:"legend",children:t}):null},Yk=oa(((e,t)=>{const{__next40pxDefaultSize:n=!1,colors:r,disableCustomColors:o,disableUnits:i,enableAlpha:s,enableStyle:l,hideLabelFromVision:c,innerWrapperClassName:u,inputWidth:d,isStyleSettable:p,label:h,onBorderChange:f,onSliderChange:m,onWidthChange:g,placeholder:v,__unstablePopoverProps:b,previousStyleSelection:x,showDropdownHeader:y,size:w,sliderClassName:_,value:S,widthUnit:C,widthValue:k,withSlider:j,__experimentalIsRenderedInSidebar:E,...P}=Gk(e);return(0,ze.jsxs)(ya,{as:"fieldset",...P,ref:t,children:[(0,ze.jsx)(Kk,{label:h,hideLabelFromVision:c}),(0,ze.jsxs)(ry,{spacing:4,className:u,children:[(0,ze.jsx)(Wk,{prefix:(0,ze.jsx)(Vk,{border:S,colors:r,__unstablePopoverProps:b,disableCustomColors:o,enableAlpha:s,enableStyle:l,isStyleSettable:p,onChange:f,previousStyleSelection:x,showDropdownHeader:y,__experimentalIsRenderedInSidebar:E,size:w}),label:(0,a.__)("Border width"),hideLabelFromVision:!0,min:0,onChange:g,value:S?.width||"",placeholder:v,disableUnits:i,__unstableInputWidth:d,size:w}),j&&(0,ze.jsx)(BS,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Border width"),hideLabelFromVision:!0,className:_,initialPosition:0,max:100,min:0,onChange:m,step:["px","%"].includes(C)?1:.1,value:k||void 0,withInputField:!1,__next40pxDefaultSize:n})]})]})}),"BorderControl"),qk=Yk,Xk={bottom:{alignItems:"flex-end",justifyContent:"center"},bottomLeft:{alignItems:"flex-start",justifyContent:"flex-end"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-end"},center:{alignItems:"center",justifyContent:"center"},spaced:{alignItems:"center",justifyContent:"space-between"},left:{alignItems:"center",justifyContent:"flex-start"},right:{alignItems:"center",justifyContent:"flex-end"},stretch:{alignItems:"stretch"},top:{alignItems:"flex-start",justifyContent:"center"},topLeft:{alignItems:"flex-start",justifyContent:"flex-start"},topRight:{alignItems:"flex-start",justifyContent:"flex-end"}};function Zk(e){const{align:t,alignment:n,className:r,columnGap:o,columns:i=2,gap:s=3,isInline:a=!1,justify:l,rowGap:c,rows:u,templateColumns:d,templateRows:p,...h}=ra(e,"Grid"),f=eg(Array.isArray(i)?i:[i]),m=eg(Array.isArray(u)?u:[u]),g=d||!!i&&`repeat( ${f}, 1fr )`,v=p||!!u&&`repeat( ${m}, 1fr )`,b=na();return{...h,className:(0,Uo.useMemo)((()=>{const e=function(e){return e?Xk[e]:{}}(n),i=Ea({alignItems:t,display:a?"inline-grid":"grid",gap:`calc( ${bv.gridBase} * ${s} )`,gridTemplateColumns:g||void 0,gridTemplateRows:v||void 0,gridRowGap:c,gridColumnGap:o,justifyContent:l,verticalAlign:a?"middle":void 0,...e},"","");return b(i,r)}),[t,n,r,o,b,s,g,v,a,l,c])}}const Jk=oa((function(e,t){const n=Zk(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"Grid");function Qk(e){const{className:t,colors:n=[],enableAlpha:r=!1,enableStyle:o=!0,size:i="default",__experimentalIsRenderedInSidebar:s=!1,...a}=ra(e,"BorderBoxControlSplitControls"),l=na(),c=(0,Uo.useMemo)((()=>l((e=>Ea("position:relative;flex:1;width:","__unstable-large"===e?void 0:"80%",";",""))(i),t)),[l,t,i]);return{...a,centeredClassName:(0,Uo.useMemo)((()=>l(Rw,t)),[l,t]),className:c,colors:n,enableAlpha:r,enableStyle:o,rightAlignedClassName:(0,Uo.useMemo)((()=>l(Ea(yg({marginLeft:"auto"})(),";",""),t)),[l,t]),size:i,__experimentalIsRenderedInSidebar:s}}const ej=oa(((e,t)=>{const{centeredClassName:n,colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:s,onChange:c,popoverPlacement:u,popoverOffset:d,rightAlignedClassName:p,size:h="default",value:f,__experimentalIsRenderedInSidebar:m,...g}=Qk(e),[v,b]=(0,Uo.useState)(null),x=(0,Uo.useMemo)((()=>u?{placement:u,offset:d,anchor:v,shift:!0}:void 0),[u,d,v]),y={colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:s,isCompact:!0,__experimentalIsRenderedInSidebar:m,size:h},w=(0,l.useMergeRefs)([b,t]);return(0,ze.jsxs)(Jk,{...g,ref:w,gap:4,children:[(0,ze.jsx)(Ow,{value:f,size:h}),(0,ze.jsx)(qk,{className:n,hideLabelFromVision:!0,label:(0,a.__)("Top border"),onChange:e=>c(e,"top"),__unstablePopoverProps:x,value:f?.top,...y}),(0,ze.jsx)(qk,{hideLabelFromVision:!0,label:(0,a.__)("Left border"),onChange:e=>c(e,"left"),__unstablePopoverProps:x,value:f?.left,...y}),(0,ze.jsx)(qk,{className:p,hideLabelFromVision:!0,label:(0,a.__)("Right border"),onChange:e=>c(e,"right"),__unstablePopoverProps:x,value:f?.right,...y}),(0,ze.jsx)(qk,{className:n,hideLabelFromVision:!0,label:(0,a.__)("Bottom border"),onChange:e=>c(e,"bottom"),__unstablePopoverProps:x,value:f?.bottom,...y})]})}),"BorderBoxControlSplitControls"),tj=ej,nj=/^([\d.\-+]*)\s*(fr|cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|vw|vh|vmin|vmax|%|cap|ic|rlh|vi|vb|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx|svw|lvw|dvw|svh|lvh|dvh|svi|lvi|dvi|svb|lvb|dvb|svmin|lvmin|dvmin|svmax|lvmax|dvmax)?$/;const rj=["top","right","bottom","left"],oj=["color","style","width"],ij=e=>!e||!oj.some((t=>void 0!==e[t])),sj=e=>{if(!e)return!1;if(aj(e)){return!rj.every((t=>ij(e[t])))}return!ij(e)},aj=(e={})=>Object.keys(e).some((e=>-1!==rj.indexOf(e))),lj=e=>{if(!aj(e))return!1;const t=rj.map((t=>cj(e?.[t])));return!t.every((e=>e===t[0]))},cj=(e,t)=>{if(ij(e))return t;const{color:n,style:r,width:o}=t||{},{color:i=n,style:s=r,width:a=o}=e;return[a,!!a&&"0"!==a||!!i?s||"solid":s,i].filter(Boolean).join(" ")},uj=e=>function(e){if(0===e.length)return;const t={};let n,r=0;return e.forEach((e=>{t[e]=void 0===t[e]?1:t[e]+1,t[e]>r&&(n=e,r=t[e])})),n}(e.map((e=>void 0===e?void 0:function(e){const t=e.trim().match(nj);if(!t)return[void 0,void 0];const[,n,r]=t;let o=parseFloat(n);return o=Number.isNaN(o)?void 0:o,[o,r]}(`${e}`)[1])).filter((e=>void 0!==e)));function dj(e){const{className:t,colors:n=[],onChange:r,enableAlpha:o=!1,enableStyle:i=!0,size:s="default",value:a,__experimentalIsRenderedInSidebar:l=!1,__next40pxDefaultSize:c,...u}=ra(e,"BorderBoxControl"),d="default"===s&&c?"__unstable-large":s,p=lj(a),h=aj(a),f=h?(e=>{if(!e)return;const t=[],n=[],r=[];rj.forEach((o=>{t.push(e[o]?.color),n.push(e[o]?.style),r.push(e[o]?.width)}));const o=t.every((e=>e===t[0])),i=n.every((e=>e===n[0])),s=r.every((e=>e===r[0]));return{color:o?t[0]:void 0,style:i?n[0]:void 0,width:s?r[0]:uj(r)}})(a):a,m=h?a:(e=>{if(e&&!ij(e))return{top:e,right:e,bottom:e,left:e}})(a),g=!isNaN(parseFloat(`${f?.width}`)),[v,b]=(0,Uo.useState)(!p),x=na(),y=(0,Uo.useMemo)((()=>x(Tw,t)),[x,t]),w=(0,Uo.useMemo)((()=>x(Ea("flex:1;",yg({marginRight:"24px"})(),";",""))),[x]),_=(0,Uo.useMemo)((()=>x(Iw)),[x]);return{...u,className:y,colors:n,disableUnits:p&&!g,enableAlpha:o,enableStyle:i,hasMixedBorders:p,isLinked:v,linkedControlClassName:w,onLinkedChange:e=>{if(!e)return r(void 0);if(!p||(t=e)&&oj.every((e=>void 0!==t[e])))return r(ij(e)?void 0:e);var t;const n=((e,t)=>{const n={};return e.color!==t.color&&(n.color=t.color),e.style!==t.style&&(n.style=t.style),e.width!==t.width&&(n.width=t.width),n})(f,e),o={top:{...a?.top,...n},right:{...a?.right,...n},bottom:{...a?.bottom,...n},left:{...a?.left,...n}};if(lj(o))return r(o);const i=ij(o.top)?void 0:o.top;r(i)},onSplitChange:(e,t)=>{const n={...m,[t]:e};lj(n)?r(n):r(e)},toggleLinked:()=>b(!v),linkedValue:f,size:d,splitValue:m,wrapperClassName:_,__experimentalIsRenderedInSidebar:l}}const pj=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,ze.jsx)(wa,{as:"label",children:t}):(0,ze.jsx)(Px,{children:t}):null},hj=oa(((e,t)=>{const{className:n,colors:r,disableCustomColors:o,disableUnits:i,enableAlpha:s,enableStyle:c,hasMixedBorders:u,hideLabelFromVision:d,isLinked:p,label:h,linkedControlClassName:f,linkedValue:m,onLinkedChange:g,onSplitChange:v,popoverPlacement:b,popoverOffset:x,size:y,splitValue:w,toggleLinked:_,wrapperClassName:S,__experimentalIsRenderedInSidebar:C,...k}=dj(e),[j,E]=(0,Uo.useState)(null),P=(0,Uo.useMemo)((()=>b?{placement:b,offset:x,anchor:j,shift:!0}:void 0),[b,x,j]),T=(0,l.useMergeRefs)([E,t]);return(0,ze.jsxs)(ya,{className:n,...k,ref:T,children:[(0,ze.jsx)(pj,{label:h,hideLabelFromVision:d}),(0,ze.jsxs)(ya,{className:S,children:[p?(0,ze.jsx)(qk,{className:f,colors:r,disableUnits:i,disableCustomColors:o,enableAlpha:s,enableStyle:c,onChange:g,placeholder:u?(0,a.__)("Mixed"):void 0,__unstablePopoverProps:P,shouldSanitizeBorder:!1,value:m,withSlider:!0,width:"__unstable-large"===y?"116px":"110px",__experimentalIsRenderedInSidebar:C,size:y}):(0,ze.jsx)(tj,{colors:r,disableCustomColors:o,enableAlpha:s,enableStyle:c,onChange:v,popoverPlacement:b,popoverOffset:x,value:w,__experimentalIsRenderedInSidebar:C,size:y}),(0,ze.jsx)(Aw,{onClick:_,isLinked:p,size:y})]})]})}),"BorderBoxControl"),fj=hj;const mj=ba("span",{target:"e1j5nr4z8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),gj=ba("span",{target:"e1j5nr4z7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),vj=({isFocused:e})=>Ea({backgroundColor:"currentColor",opacity:e?1:.3},"",""),bj=ba("span",{target:"e1j5nr4z6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",vj,";"),xj=ba(bj,{target:"e1j5nr4z5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),yj=ba(bj,{target:"e1j5nr4z4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),wj=ba(yj,{target:"e1j5nr4z3"})({name:"abcix4",styles:"top:0"}),_j=ba(xj,{target:"e1j5nr4z2"})({name:"1wf8jf",styles:"right:0"}),Sj=ba(yj,{target:"e1j5nr4z1"})({name:"8tapst",styles:"bottom:0"}),Cj=ba(xj,{target:"e1j5nr4z0"})({name:"1ode3cm",styles:"left:0"});function kj({size:e=24,side:t="all",sides:n,...r}){const o=e=>!(e=>n?.length&&!n.includes(e))(e)&&("all"===t||t===e),i=o("top")||o("vertical"),s=o("right")||o("horizontal"),a=o("bottom")||o("vertical"),l=o("left")||o("horizontal"),c=e/24;return(0,ze.jsx)(mj,{style:{transform:`scale(${c})`},...r,children:(0,ze.jsxs)(gj,{children:[(0,ze.jsx)(wj,{isFocused:i}),(0,ze.jsx)(_j,{isFocused:s}),(0,ze.jsx)(Sj,{isFocused:a}),(0,ze.jsx)(Cj,{isFocused:l})]})})}const jj=ba(Wk,{target:"e1jovhle5"})({name:"1ejyr19",styles:"max-width:90px"}),Ej=ba(ry,{target:"e1jovhle4"})({name:"1j1lmoi",styles:"grid-column:1/span 3"}),Pj=ba(Hx,{target:"e1jovhle3"})({name:"tkya7b",styles:"grid-area:1/2;justify-self:end"}),Tj=ba("div",{target:"e1jovhle2"})({name:"1dfa8al",styles:"grid-area:1/3;justify-self:end"}),Ij=ba(kj,{target:"e1jovhle1"})({name:"ou8xsw",styles:"flex:0 0 auto"}),Mj=ba(BS,{target:"e1jovhle0"})("width:100%;margin-inline-end:",ng(2),";"),Rj={px:{max:300,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:10,step:.1},rm:{max:10,step:.1},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}},Nj={all:(0,a.__)("All sides"),top:(0,a.__)("Top side"),bottom:(0,a.__)("Bottom side"),left:(0,a.__)("Left side"),right:(0,a.__)("Right side"),mixed:(0,a.__)("Mixed"),vertical:(0,a.__)("Top and bottom sides"),horizontal:(0,a.__)("Left and right sides")},Aj={top:void 0,right:void 0,bottom:void 0,left:void 0},Dj=["top","right","bottom","left"];function Oj(e){return e.sort(((t,n)=>e.filter((e=>e===t)).length-e.filter((e=>e===n)).length)).pop()}function zj(e={},t,n=Dj){const r=function(e){const t=[];if(!e?.length)return Dj;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=Dj.filter((t=>e.includes(t)));t.push(...n)}return t}(n).map((t=>zk(e[t]))),o=r.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),i=r.map((e=>e[1])),s=o.every((e=>e===o[0]))?o[0]:"";let a;var l;"number"==typeof s?a=Oj(i):a=null!==(l=function(e){if(!e||"object"!=typeof e)return;const t=Object.values(e).filter(Boolean);return Oj(t)}(t))&&void 0!==l?l:Oj(i);return[s,a].join("")}function Lj(e={},t,n=Dj){const r=zj(e,t,n);return isNaN(parseFloat(r))}function Fj(e){return void 0!==e&&Object.values(e).filter((e=>!!e&&/\d/.test(e))).length>0}function Bj(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function Vj(e,t,n){const r={...e};return n?.length?n.forEach((e=>{"vertical"===e?(r.top=t,r.bottom=t):"horizontal"===e?(r.left=t,r.right=t):r[e]=t})):Dj.forEach((e=>r[e]=t)),r}const $j=()=>{};function Hj({__next40pxDefaultSize:e,onChange:t=$j,onFocus:n=$j,values:r,sides:o,selectedUnits:i,setSelectedUnits:s,...a}){var c,u;const d=(0,l.useInstanceId)(Hj,"box-control-input-all"),p=zj(r,i,o),h=Fj(r)&&Lj(r,i,o),f=h?Nj.mixed:void 0,[m,g]=zk(p),v=e=>{const n=void 0!==e&&!isNaN(parseFloat(e)),i=Vj(r,n?e:void 0,o);t(i)};return(0,ze.jsxs)(ry,{children:[(0,ze.jsx)(jj,{...a,__next40pxDefaultSize:e,className:"component-box-control__unit-control",disableUnits:h,id:d,isPressEnterToChange:!0,value:p,onChange:v,onUnitChange:e=>{const t=Vj(i,e,o);s(t)},onFocus:e=>{n(e,{side:"all"})},placeholder:f,label:Nj.all,hideLabelFromVision:!0}),(0,ze.jsx)(Mj,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":d,label:Nj.all,hideLabelFromVision:!0,onChange:e=>{v(void 0!==e?[e,g].join(""):void 0)},min:0,max:null!==(c=Rj[null!=g?g:"px"]?.max)&&void 0!==c?c:10,step:null!==(u=Rj[null!=g?g:"px"]?.step)&&void 0!==u?u:.1,value:null!=m?m:0,withInputField:!1})]})}const Wj=()=>{};function Uj({__next40pxDefaultSize:e,onChange:t=Wj,onFocus:n=Wj,values:r,selectedUnits:o,setSelectedUnits:i,sides:s,...a}){const c=(0,l.useInstanceId)(Uj,"box-control-input"),u=e=>t=>{n(t,{side:e})},d=(e,n,o)=>{const i={...r},s=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;if(i[e]=s,o?.event.altKey)switch(e){case"top":i.bottom=s;break;case"bottom":i.top=s;break;case"left":i.right=s;break;case"right":i.left=s}(e=>{t(e)})(i)},p=e=>t=>{const n={...o};n[e]=t,i(n)},h=s?.length?Dj.filter((e=>s.includes(e))):Dj;return(0,ze.jsx)(ze.Fragment,{children:h.map((t=>{var n,i;const[l,h]=zk(r[t]),f=r[t]?h:o[t],m=[c,t].join("-");return(0,ze.jsxs)(Ej,{expanded:!0,children:[(0,ze.jsx)(Ij,{side:t,sides:s}),(0,ze.jsx)(ri,{placement:"top-end",text:Nj[t],children:(0,ze.jsx)(jj,{...a,__next40pxDefaultSize:e,className:"component-box-control__unit-control",id:m,isPressEnterToChange:!0,value:[l,f].join(""),onChange:(e,n)=>d(t,e,n),onUnitChange:p(t),onFocus:u(t),label:Nj[t],hideLabelFromVision:!0})}),(0,ze.jsx)(Mj,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":m,label:Nj[t],hideLabelFromVision:!0,onChange:e=>{d(t,void 0!==e?[e,f].join(""):void 0)},min:0,max:null!==(n=Rj[null!=f?f:"px"]?.max)&&void 0!==n?n:10,step:null!==(i=Rj[null!=f?f:"px"]?.step)&&void 0!==i?i:.1,value:null!=l?l:0,withInputField:!1})]},`box-control-${t}`)}))})}const Gj=["vertical","horizontal"];function Kj({__next40pxDefaultSize:e,onChange:t,onFocus:n,values:r,selectedUnits:o,setSelectedUnits:i,sides:s,...a}){const u=(0,l.useInstanceId)(Kj,"box-control-input"),d=e=>t=>{n&&n(t,{side:e})},p=(e,n)=>{if(!t)return;const o={...r},i=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;"vertical"===e&&(o.top=i,o.bottom=i),"horizontal"===e&&(o.left=i,o.right=i),t(o)},h=e=>t=>{const n={...o};"vertical"===e&&(n.top=t,n.bottom=t),"horizontal"===e&&(n.left=t,n.right=t),i(n)},f=s?.length?Gj.filter((e=>s.includes(e))):Gj;return(0,ze.jsx)(ze.Fragment,{children:f.map((t=>{var n,i;const[l,f]=zk("vertical"===t?r.top:r.left),m="vertical"===t?o.top:o.left,g=[u,t].join("-");return(0,ze.jsxs)(Ej,{children:[(0,ze.jsx)(Ij,{side:t,sides:s}),(0,ze.jsx)(ri,{placement:"top-end",text:Nj[t],children:(0,c.createElement)(jj,{...a,__next40pxDefaultSize:e,className:"component-box-control__unit-control",id:g,isPressEnterToChange:!0,value:[l,null!=m?m:f].join(""),onChange:e=>p(t,e),onUnitChange:h(t),onFocus:d(t),label:Nj[t],hideLabelFromVision:!0,key:t})}),(0,ze.jsx)(Mj,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":g,label:Nj[t],hideLabelFromVision:!0,onChange:e=>p(t,void 0!==e?[e,null!=m?m:f].join(""):void 0),min:0,max:null!==(n=Rj[null!=m?m:"px"]?.max)&&void 0!==n?n:10,step:null!==(i=Rj[null!=m?m:"px"]?.step)&&void 0!==i?i:.1,value:null!=l?l:0,withInputField:!1})]},t)}))})}function Yj({isLinked:e,...t}){const n=e?(0,a.__)("Unlink sides"):(0,a.__)("Link sides");return(0,ze.jsx)(ri,{text:n,children:(0,ze.jsx)(Hx,{...t,className:"component-box-control__linked-button",size:"small",icon:e?Ew:Pw,iconSize:24,"aria-label":n})})}const qj={min:0},Xj=()=>{};function Zj({__next40pxDefaultSize:e=!1,id:t,inputProps:n=qj,onChange:r=Xj,label:o=(0,a.__)("Box Control"),values:i,units:s,sides:c,splitOnAxis:u=!1,allowReset:d=!0,resetValues:p=Aj,onMouseOver:h,onMouseOut:f}){const[m,g]=eS(i,{fallback:Aj}),v=m||Aj,b=Fj(i),x=1===c?.length,[y,w]=(0,Uo.useState)(b),[_,S]=(0,Uo.useState)(!b||!Lj(v)||x),[C,k]=(0,Uo.useState)(Bj(_,u)),[j,E]=(0,Uo.useState)({top:zk(i?.top)[1],right:zk(i?.right)[1],bottom:zk(i?.bottom)[1],left:zk(i?.left)[1]}),P=function(e){const t=(0,l.useInstanceId)(Zj,"inspector-box-control");return e||t}(t),T=`${P}-heading`,I={...n,onChange:e=>{r(e),g(e),w(!0)},onFocus:(e,{side:t})=>{k(t)},isLinked:_,units:s,selectedUnits:j,setSelectedUnits:E,sides:c,values:v,onMouseOver:h,onMouseOut:f,__next40pxDefaultSize:e};return(0,ze.jsxs)(Jk,{id:P,columns:3,templateColumns:"1fr min-content min-content",role:"group","aria-labelledby":T,children:[(0,ze.jsx)(Ax.VisualLabel,{id:T,children:o}),_&&(0,ze.jsxs)(Ej,{children:[(0,ze.jsx)(Ij,{side:C,sides:c}),(0,ze.jsx)(Hj,{...I})]}),!x&&(0,ze.jsx)(Tj,{children:(0,ze.jsx)(Yj,{onClick:()=>{S(!_),k(Bj(!_,u))},isLinked:_})}),!_&&u&&(0,ze.jsx)(Kj,{...I}),!_&&!u&&(0,ze.jsx)(Uj,{...I}),d&&(0,ze.jsx)(Pj,{className:"component-box-control__reset-button",variant:"secondary",size:"small",onClick:()=>{r(p),g(p),E(p),w(!1)},disabled:!y,children:(0,a.__)("Reset")})]})}const Jj=Zj;const Qj=(0,Uo.forwardRef)((function(e,t){const{className:n,...r}=e,o=s("components-button-group",n);return(0,ze.jsx)("div",{ref:t,role:"group",className:o,...r})}));const eE={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function tE(e){return`0 ${e}px ${2*e}px 0\n\t${`rgba(0, 0, 0, ${e/20})`}`}const nE=oa((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:i,isInteractive:s=!1,offset:a=0,value:l=0,...c}=ra(e,"Elevation"),u=na();return{...c,className:(0,Uo.useMemo)((()=>{let e=Pg(i)?i:2*l,c=Pg(t)?t:l/2;s||(e=Pg(i)?i:void 0,c=Pg(t)?t:void 0);const d=`box-shadow ${bv.transitionDuration} ${bv.transitionTimingFunction}`,p={};return p.Base=Ea({borderRadius:n,bottom:a,boxShadow:tE(l),opacity:bv.elevationIntensity,left:a,right:a,top:a},Ea("@media not ( prefers-reduced-motion ){transition:",d,";}",""),"",""),Pg(e)&&(p.hover=Ea("*:hover>&{box-shadow:",tE(e),";}","")),Pg(c)&&(p.active=Ea("*:active>&{box-shadow:",tE(c),";}","")),Pg(o)&&(p.focus=Ea("*:focus>&{box-shadow:",tE(o),";}","")),u(eE,p.Base,p.hover,p.focus,p.active,r)}),[t,n,r,u,o,i,s,a,l]),"aria-hidden":!0}}(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"Elevation"),rE=nE;const oE=`calc(${bv.cardBorderRadius} - 1px)`,iE=Ea("box-shadow:0 0 0 1px ",bv.surfaceBorderColor,";outline:none;",""),sE={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},aE={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},lE={name:"13udsys",styles:"height:100%"},cE={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},uE={name:"dq805e",styles:"box-sizing:border-box;overflow:hidden;&>img,&>iframe{display:block;height:auto;max-width:100%;width:100%;}"},dE={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},pE=Ea("&:first-of-type{border-top-left-radius:",oE,";border-top-right-radius:",oE,";}&:last-of-type{border-bottom-left-radius:",oE,";border-bottom-right-radius:",oE,";}",""),hE=Ea("border-color:",bv.colorDivider,";",""),fE={name:"1t90u8d",styles:"box-shadow:none"},mE={name:"1e1ncky",styles:"border:none"},gE=Ea("border-radius:",oE,";",""),vE=Ea("padding:",bv.cardPaddingXSmall,";",""),bE={large:Ea("padding:",bv.cardPaddingLarge,";",""),medium:Ea("padding:",bv.cardPaddingMedium,";",""),small:Ea("padding:",bv.cardPaddingSmall,";",""),xSmall:vE,extraSmall:vE},xE=Ea("background-color:",Na.ui.backgroundDisabled,";",""),yE=Ea("background-color:",bv.surfaceColor,";color:",Na.gray[900],";position:relative;","");bv.surfaceBackgroundColor;function wE({borderBottom:e,borderLeft:t,borderRight:n,borderTop:r}){const o=`1px solid ${bv.surfaceBorderColor}`;return Ea({borderBottom:e?o:void 0,borderLeft:t?o:void 0,borderRight:n?o:void 0,borderTop:r?o:void 0},"","")}const _E=Ea("",""),SE=Ea("background:",bv.surfaceBackgroundTintColor,";",""),CE=Ea("background:",bv.surfaceBackgroundTertiaryColor,";",""),kE=e=>[e,e].join(" "),jE=e=>["90deg",[bv.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),EE=e=>[[bv.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),PE=(e,t)=>Ea("background:",(e=>[`linear-gradient( ${jE(e)} ) center`,`linear-gradient( ${EE(e)} ) center`,bv.surfaceBorderBoldColor].join(","))(t),";background-size:",kE(e),";",""),TE=[`linear-gradient( ${[`${bv.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${bv.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),IE=(e,t,n)=>{switch(e){case"dotted":return PE(t,n);case"grid":return(e=>Ea("background:",bv.surfaceBackgroundColor,";background-image:",TE,";background-size:",kE(e),";",""))(t);case"primary":return _E;case"secondary":return SE;case"tertiary":return CE}};function ME(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:i=!1,className:s,variant:a="primary",...l}=ra(e,"Surface"),c=na();return{...l,className:(0,Uo.useMemo)((()=>{const e={borders:wE({borderBottom:n,borderLeft:r,borderRight:o,borderTop:i})};return c(yE,e.borders,IE(a,`${t}px`,t-1+"px"),s)}),[t,n,r,o,i,s,c,a])}}function RE(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:i="medium",...s}=ra(function({elevation:e,isElevated:t,...n}){const r={...n};let o=e;var i;return t&&(Ko()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(i=o)&&void 0!==i||(o=2)),void 0!==o&&(r.elevation=o),r}(e),"Card"),a=na();return{...ME({...s,className:(0,Uo.useMemo)((()=>a(iE,r&&fE,o&&gE,t)),[t,a,r,o])}),elevation:n,isBorderless:r,isRounded:o,size:i}}const NE=oa((function(e,t){const{children:n,elevation:r,isBorderless:o,isRounded:i,size:s,...a}=RE(e),l=i?bv.cardBorderRadius:0,c=na(),u=(0,Uo.useMemo)((()=>c(Ea({borderRadius:l},"",""))),[c,l]),d=(0,Uo.useMemo)((()=>{const e={size:s,isBorderless:o};return{CardBody:e,CardHeader:e,CardFooter:e}}),[o,s]);return(0,ze.jsx)(hi,{value:d,children:(0,ze.jsxs)(ya,{...a,ref:t,children:[(0,ze.jsx)(ya,{className:c(lE),children:n}),(0,ze.jsx)(rE,{className:u,isInteractive:!1,value:r?1:0}),(0,ze.jsx)(rE,{className:u,isInteractive:!1,value:r})]})})}),"Card"),AE=NE;const DE=Ea("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",bv.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",bv.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",bv.colorScrollbarThumbHover,";}}",""),OE={name:"13udsys",styles:"height:100%"},zE={name:"7zq9w",styles:"scroll-behavior:smooth"},LE={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},FE={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},BE={name:"umwchj",styles:"overflow-y:auto"};const VE=oa((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=ra(e,"Scrollable"),i=na();return{...o,className:(0,Uo.useMemo)((()=>i(OE,DE,r&&zE,"x"===n&&LE,"y"===n&&FE,"auto"===n&&BE,t)),[t,i,n,r])}}(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"Scrollable"),$E=VE;const HE=oa((function(e,t){const{isScrollable:n,...r}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...i}=ra(e,"CardBody"),s=na();return{...i,className:(0,Uo.useMemo)((()=>s(cE,pE,bE[o],r&&xE,"components-card__body",t)),[t,s,r,o]),isScrollable:n}}(e);return n?(0,ze.jsx)($E,{...r,ref:t}):(0,ze.jsx)(ya,{...r,ref:t})}),"CardBody"),WE=HE;var UE=Ve((e=>{var t=e,{orientation:n="horizontal"}=t,r=_(t,["orientation"]);return r=y({role:"separator","aria-orientation":n},r)})),GE=Le((e=>Be("hr",UE(e))));const KE={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}},YE=({"aria-orientation":e="horizontal",margin:t,marginStart:n,marginEnd:r})=>Ea(yg({[KE[e].start]:ng(null!=n?n:t),[KE[e].end]:ng(null!=r?r:t)})(),"","");var qE={name:"1u4hpl4",styles:"display:inline"};const XE=({"aria-orientation":e="horizontal"})=>"vertical"===e?qE:void 0,ZE=({"aria-orientation":e="horizontal"})=>Ea({["vertical"===e?"borderRight":"borderBottom"]:"1px solid currentColor"},"",""),JE=({"aria-orientation":e="horizontal"})=>Ea({height:"vertical"===e?"auto":0,width:"vertical"===e?0:"auto"},"",""),QE=ba("hr",{target:"e19on6iw0"})("border:0;margin:0;",XE," ",ZE," ",JE," ",YE,";");const eP=oa((function(e,t){const n=ra(e,"Divider");return(0,ze.jsx)(GE,{render:(0,ze.jsx)(QE,{}),...n,ref:t})}),"Divider");const tP=oa((function(e,t){const n=function(e){const{className:t,...n}=ra(e,"CardDivider"),r=na();return{...n,className:(0,Uo.useMemo)((()=>r(dE,hE,"components-card__divider",t)),[t,r])}}(e);return(0,ze.jsx)(eP,{...n,ref:t})}),"CardDivider"),nP=tP;const rP=oa((function(e,t){const n=function(e){const{className:t,justify:n,isBorderless:r=!1,isShady:o=!1,size:i="medium",...s}=ra(e,"CardFooter"),a=na();return{...s,className:(0,Uo.useMemo)((()=>a(aE,pE,hE,bE[i],r&&mE,o&&xE,"components-card__footer",t)),[t,a,r,o,i]),justify:n}}(e);return(0,ze.jsx)(dg,{...n,ref:t})}),"CardFooter"),oP=rP;const iP=oa((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...i}=ra(e,"CardHeader"),s=na();return{...i,className:(0,Uo.useMemo)((()=>s(sE,pE,hE,bE[o],n&&mE,r&&xE,"components-card__header",t)),[t,s,n,r,o])}}(e);return(0,ze.jsx)(dg,{...n,ref:t})}),"CardHeader"),sP=iP;const aP=oa((function(e,t){const n=function(e){const{className:t,...n}=ra(e,"CardMedia"),r=na();return{...n,className:(0,Uo.useMemo)((()=>r(uE,pE,"components-card__media",t)),[t,r])}}(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"CardMedia"),lP=aP;const cP=function e(t){const{__nextHasNoMarginBottom:n,label:r,className:o,heading:i,checked:a,indeterminate:c,help:u,id:d,onChange:p,...h}=t;i&&Ko()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[f,m]=(0,Uo.useState)(!1),[g,v]=(0,Uo.useState)(!1),b=(0,l.useRefEffect)((e=>{e&&(e.indeterminate=!!c,m(e.matches(":checked")),v(e.matches(":indeterminate")))}),[a,c]),x=(0,l.useInstanceId)(e,"inspector-checkbox-control",d);return(0,ze.jsx)(Dx,{__nextHasNoMarginBottom:n,label:i,id:x,help:u&&(0,ze.jsx)("span",{className:"components-checkbox-control__help",children:u}),className:s("components-checkbox-control",o),children:(0,ze.jsxs)(ry,{spacing:0,justify:"start",alignment:"top",children:[(0,ze.jsxs)("span",{className:"components-checkbox-control__input-container",children:[(0,ze.jsx)("input",{ref:b,id:x,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>p(e.target.checked),checked:a,"aria-describedby":u?x+"__help":void 0,...h}),g?(0,ze.jsx)(Y_,{icon:kg,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,f?(0,ze.jsx)(Y_,{icon:YC,className:"components-checkbox-control__checked",role:"presentation"}):null]}),r&&(0,ze.jsx)("label",{className:"components-checkbox-control__label",htmlFor:x,children:r})]})})},uP=4e3;function dP({className:e,children:t,onCopy:n,onFinishCopy:r,text:o,...i}){Ko()("wp.components.ClipboardButton",{since:"5.8",alternative:"wp.compose.useCopyToClipboard"});const a=(0,Uo.useRef)(),c=(0,l.useCopyToClipboard)(o,(()=>{n(),a.current&&clearTimeout(a.current),r&&(a.current=setTimeout((()=>r()),uP))}));(0,Uo.useEffect)((()=>{a.current&&clearTimeout(a.current)}),[]);const u=s("components-clipboard-button",e);return(0,ze.jsx)(Hx,{...i,className:u,ref:c,onCopy:e=>{e.target.focus()},children:t})}const pP=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});const hP=e=>Ea("font-size:",_x("default.fontSize"),";font-family:inherit;appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:start;text-decoration:","a"===e?"none":void 0,";svg,path{fill:currentColor;}&:hover{color:",Na.theme.accent,";}&:focus{box-shadow:none;outline:none;}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Na.theme.accent,";outline:2px solid transparent;outline-offset:0;}",""),fP={name:"1bcj5ek",styles:"width:100%;display:block"},mP={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},gP=Ea("border:1px solid ",bv.surfaceBorderColor,";",""),vP=Ea(">*:not( marquee )>*{border-bottom:1px solid ",bv.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),bP=bv.controlBorderRadius,xP=Ea("border-radius:",bP,";",""),yP=Ea("border-radius:",bP,";>*:first-of-type>*{border-top-left-radius:",bP,";border-top-right-radius:",bP,";}>*:last-of-type>*{border-bottom-left-radius:",bP,";border-bottom-right-radius:",bP,";}",""),wP=`calc(${bv.fontSize} * ${bv.fontLineHeightBase})`,_P=`calc((${bv.controlHeight} - ${wP} - 2px) / 2)`,SP=`calc((${bv.controlHeightSmall} - ${wP} - 2px) / 2)`,CP=`calc((${bv.controlHeightLarge} - ${wP} - 2px) / 2)`,kP={small:Ea("padding:",SP," ",bv.controlPaddingXSmall,";",""),medium:Ea("padding:",_P," ",bv.controlPaddingX,";",""),large:Ea("padding:",CP," ",bv.controlPaddingXLarge,";","")};const jP=(0,Uo.createContext)({size:"medium"}),EP=()=>(0,Uo.useContext)(jP);const PP=oa((function(e,t){const{isBordered:n,isSeparated:r,size:o,...i}=function(e){const{className:t,isBordered:n=!1,isRounded:r=!0,isSeparated:o=!1,role:i="list",...s}=ra(e,"ItemGroup");return{isBordered:n,className:na()(n&&gP,o&&vP,r&&yP,t),role:i,isSeparated:o,...s}}(e),{size:s}=EP(),a={spacedAround:!n&&!r,size:o||s};return(0,ze.jsx)(jP.Provider,{value:a,children:(0,ze.jsx)(ya,{...i,ref:t})})}),"ItemGroup"),TP=10,IP=0,MP=TP;function RP(e){return Math.max(0,Math.min(100,e))}function NP(e,t,n){const r=e.slice();return r[t]=n,r}function AP(e,t,n){if(function(e,t,n,r=IP){const o=e[t].position,i=Math.min(o,n),s=Math.max(o,n);return e.some((({position:e},o)=>o!==t&&(Math.abs(e-n)<r||i<e&&e<s)))}(e,t,n))return e;return NP(e,t,{...e[t],position:n})}function DP(e,t,n){return NP(e,t,{...e[t],color:n})}function OP(e,t){if(!t)return;const{x:n,width:r}=t.getBoundingClientRect(),o=e-n;return Math.round(RP(100*o/r))}function zP({isOpen:e,position:t,color:n,...r}){const o=`components-custom-gradient-picker__control-point-button-description-${(0,l.useInstanceId)(zP)}`;return(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(Hx,{"aria-label":(0,a.sprintf)((0,a.__)("Gradient control point at position %1$s%% with color code %2$s."),t,n),"aria-describedby":o,"aria-haspopup":"true","aria-expanded":e,className:s("components-custom-gradient-picker__control-point-button",{"is-active":e}),...r}),(0,ze.jsx)(wa,{id:o,children:(0,a.__)("Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.")})]})}function LP({isRenderedInSidebar:e,className:t,...n}){const r=(0,Uo.useMemo)((()=>({placement:"bottom",offset:8,resize:!1})),[]),o=s("components-custom-gradient-picker__control-point-dropdown",t);return(0,ze.jsx)(pk,{isRenderedInSidebar:e,popoverProps:r,className:o,...n})}function FP({disableRemove:e,disableAlpha:t,gradientPickerDomRef:n,ignoreMarkerPosition:r,value:o,onChange:i,onStartControlPointChange:s,onStopControlPointChange:l,__experimentalIsRenderedInSidebar:c}){const u=(0,Uo.useRef)(),d=e=>{if(void 0===u.current||null===n.current)return;const t=OP(e.clientX,n.current),{initialPosition:r,index:s,significantMoveHappened:a}=u.current;!a&&Math.abs(r-t)>=5&&(u.current.significantMoveHappened=!0),i(AP(o,s,t))},p=()=>{window&&window.removeEventListener&&u.current&&u.current.listenersActivated&&(window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",p),l(),u.current.listenersActivated=!1)},h=(0,Uo.useRef)();return h.current=p,(0,Uo.useEffect)((()=>()=>{h.current?.()}),[]),(0,ze.jsx)(ze.Fragment,{children:o.map(((n,h)=>{const f=n?.position;return r!==f&&(0,ze.jsx)(LP,{isRenderedInSidebar:c,onClose:l,renderToggle:({isOpen:e,onToggle:t})=>(0,ze.jsx)(zP,{onClick:()=>{u.current&&u.current.significantMoveHappened||(e?l():s(),t())},onMouseDown:()=>{window&&window.addEventListener&&(u.current={initialPosition:f,index:h,significantMoveHappened:!1,listenersActivated:!0},s(),window.addEventListener("mousemove",d),window.addEventListener("mouseup",p))},onKeyDown:e=>{"ArrowLeft"===e.code?(e.stopPropagation(),i(AP(o,h,RP(n.position-MP)))):"ArrowRight"===e.code&&(e.stopPropagation(),i(AP(o,h,RP(n.position+MP))))},isOpen:e,position:n.position,color:n.color},h),renderContent:({onClose:r})=>(0,ze.jsxs)(lk,{paddingSize:"none",children:[(0,ze.jsx)(GC,{enableAlpha:!t,color:n.color,onChange:e=>{i(DP(o,h,av(e).toRgbString()))}}),!e&&o.length>2&&(0,ze.jsx)(ry,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center",children:(0,ze.jsx)(Hx,{onClick:()=>{i(function(e,t){return e.filter(((e,n)=>n!==t))}(o,h)),r()},variant:"link",children:(0,a.__)("Remove Control Point")})})]}),style:{left:`${n.position}%`,transform:"translateX( -50% )"}},h)}))})}FP.InsertPoint=function({value:e,onChange:t,onOpenInserter:n,onCloseInserter:r,insertPosition:o,disableAlpha:i,__experimentalIsRenderedInSidebar:s}){const[a,l]=(0,Uo.useState)(!1);return(0,ze.jsx)(LP,{isRenderedInSidebar:s,className:"components-custom-gradient-picker__inserter",onClose:()=>{r()},renderToggle:({isOpen:e,onToggle:t})=>(0,ze.jsx)(Hx,{"aria-expanded":e,"aria-haspopup":"true",onClick:()=>{e?r():(l(!1),n()),t()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:Cg}),renderContent:()=>(0,ze.jsx)(lk,{paddingSize:"none",children:(0,ze.jsx)(GC,{enableAlpha:!i,onChange:n=>{a?t(function(e,t,n){const r=e.findIndex((e=>e.position===t));return DP(e,r,n)}(e,o,av(n).toRgbString())):(t(function(e,t,n){const r=e.findIndex((e=>e.position>t)),o={color:n,position:t},i=e.slice();return i.splice(r-1,0,o),i}(e,o,av(n).toRgbString())),l(!0))}})}),style:null!==o?{left:`${o}%`,transform:"translateX( -50% )"}:void 0})};const BP=FP,VP=(e,t)=>{switch(t.type){case"MOVE_INSERTER":if("IDLE"===e.id||"MOVING_INSERTER"===e.id)return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===e.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===e.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===e.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===e.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===e.id)return{id:"IDLE"}}return e},$P={id:"IDLE"};function HP({background:e,hasGradient:t,value:n,onChange:r,disableInserter:o=!1,disableAlpha:i=!1,__experimentalIsRenderedInSidebar:a=!1}){const l=(0,Uo.useRef)(null),[c,u]=(0,Uo.useReducer)(VP,$P),d=e=>{if(!l.current)return;const t=OP(e.clientX,l.current);n.some((({position:e})=>Math.abs(t-e)<TP))?"MOVING_INSERTER"===c.id&&u({type:"STOP_INSERTER_MOVE"}):u({type:"MOVE_INSERTER",insertPosition:t})},p="MOVING_INSERTER"===c.id,h="INSERTING_CONTROL_POINT"===c.id;return(0,ze.jsxs)("div",{className:s("components-custom-gradient-picker__gradient-bar",{"has-gradient":t}),onMouseEnter:d,onMouseMove:d,onMouseLeave:()=>{u({type:"STOP_INSERTER_MOVE"})},children:[(0,ze.jsx)("div",{className:"components-custom-gradient-picker__gradient-bar-background",style:{background:e,opacity:t?1:.4}}),(0,ze.jsxs)("div",{ref:l,className:"components-custom-gradient-picker__markers-container",children:[!o&&(p||h)&&(0,ze.jsx)(BP.InsertPoint,{__experimentalIsRenderedInSidebar:a,disableAlpha:i,insertPosition:c.insertPosition,value:n,onChange:r,onOpenInserter:()=>{u({type:"OPEN_INSERTER"})},onCloseInserter:()=>{u({type:"CLOSE_INSERTER"})}}),(0,ze.jsx)(BP,{__experimentalIsRenderedInSidebar:a,disableAlpha:i,disableRemove:o,gradientPickerDomRef:l,ignoreMarkerPosition:h?c.insertPosition:void 0,value:n,onChange:r,onStartControlPointChange:()=>{u({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{u({type:"STOP_CONTROL_CHANGE"})}})]})]})}var WP=o(8924);const UP="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",GP={type:"angular",value:"90"},KP=[{value:"linear-gradient",label:(0,a.__)("Linear")},{value:"radial-gradient",label:(0,a.__)("Radial")}],YP={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function qP({type:e,value:t,length:n}){return`${function({type:e,value:t}){return"literal"===e?t:"hex"===e?`#${t}`:`${e}(${t.join(",")})`}({type:e,value:t})} ${function(e){if(!e)return"";const{value:t,type:n}=e;return`${t}${n}`}(n)}`}function XP({type:e,orientation:t,colorStops:n}){const r=function(e){if(!Array.isArray(e)&&e&&"angular"===e.type)return`${e.value}deg`}(t);return`${e}(${[r,...n.sort(((e,t)=>{const n=e=>void 0===e?.length?.value?0:parseInt(e.length.value);return n(e)-n(t)})).map(qP)].filter(Boolean).join(",")})`}function ZP(e){return void 0===e.length||"%"!==e.length.type}function JP(e){switch(e.type){case"hex":return`#${e.value}`;case"literal":return e.value;case"rgb":case"rgba":return`${e.type}(${e.value.join(",")})`;default:return"transparent"}}cv([uv]);const QP=ba(hg,{target:"e10bzpgi1"})({name:"1gvx10y",styles:"flex-grow:5"}),eT=ba(hg,{target:"e10bzpgi0"})({name:"1gvx10y",styles:"flex-grow:5"}),tT=({gradientAST:e,hasGradient:t,onChange:n})=>{var r;const o=null!==(r=e?.orientation?.value)&&void 0!==r?r:180;return(0,ze.jsx)(py,{onChange:t=>{n(XP({...e,orientation:{type:"angular",value:`${t}`}}))},value:t?o:""})},nT=({gradientAST:e,hasGradient:t,onChange:n})=>{const{type:r}=e;return(0,ze.jsx)(J_,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:(0,a.__)("Type"),labelPosition:"top",onChange:t=>{"linear-gradient"===t&&n(XP({...e,orientation:e.orientation?void 0:GP,type:"linear-gradient"})),"radial-gradient"===t&&(()=>{const{orientation:t,...r}=e;n(XP({...r,type:"radial-gradient"}))})()},options:KP,size:"__unstable-large",value:t?r:void 0})};const rT=function({value:e,onChange:t,__experimentalIsRenderedInSidebar:n=!1}){const{gradientAST:r,hasGradient:o}=function(e){let t,n=!!e;const r=null!=e?e:UP;try{t=WP.parse(r)[0]}catch(e){console.warn("wp.components.CustomGradientPicker failed to parse the gradient with error",e),t=WP.parse(UP)[0],n=!1}if(Array.isArray(t.orientation)||"directional"!==t.orientation?.type||(t.orientation={type:"angular",value:YP[t.orientation.value].toString()}),t.colorStops.some(ZP)){const{colorStops:e}=t,n=100/(e.length-1);e.forEach(((e,t)=>{e.length={value:""+n*t,type:"%"}}))}return{gradientAST:t,hasGradient:n}}(e),i=function(e){return XP({type:"linear-gradient",orientation:GP,colorStops:e.colorStops})}(r),s=r.colorStops.map((e=>({color:JP(e),position:parseInt(e.length.value)})));return(0,ze.jsxs)(tk,{spacing:4,className:"components-custom-gradient-picker",children:[(0,ze.jsx)(HP,{__experimentalIsRenderedInSidebar:n,background:i,hasGradient:o,value:s,onChange:e=>{t(XP(function(e,t){return{...e,colorStops:t.map((({position:e,color:t})=>{const{r:n,g:r,b:o,a:i}=av(t).toRgb();return{length:{type:"%",value:e?.toString()},type:i<1?"rgba":"rgb",value:i<1?[`${n}`,`${r}`,`${o}`,`${i}`]:[`${n}`,`${r}`,`${o}`]}}))}}(r,e)))}}),(0,ze.jsxs)(dg,{gap:3,className:"components-custom-gradient-picker__ui-line",children:[(0,ze.jsx)(QP,{children:(0,ze.jsx)(nT,{gradientAST:r,hasGradient:o,onChange:t})}),(0,ze.jsx)(eT,{children:"linear-gradient"===r.type&&(0,ze.jsx)(tT,{gradientAST:r,hasGradient:o,onChange:t})})]})]})},oT=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.gradients)&&!("gradient"in t);var t}));function iT({className:e,clearGradient:t,gradients:n,onChange:r,value:o,...i}){const s=(0,Uo.useMemo)((()=>n.map((({gradient:e,name:n,slug:i},s)=>(0,ze.jsx)(ek.Option,{value:e,isSelected:o===e,tooltipText:n||(0,a.sprintf)((0,a.__)("Gradient code: %s"),e),style:{color:"rgba( 0,0,0,0 )",background:e},onClick:o===e?t:()=>r(e,s),"aria-label":n?(0,a.sprintf)((0,a.__)("Gradient: %s"),n):(0,a.sprintf)((0,a.__)("Gradient code: %s"),e)},i)))),[n,o,r,t]);return(0,ze.jsx)(ek.OptionGroup,{className:e,options:s,...i})}function sT({className:e,clearGradient:t,gradients:n,onChange:r,value:o,headingLevel:i}){const s=(0,l.useInstanceId)(sT);return(0,ze.jsx)(tk,{spacing:3,className:e,children:n.map((({name:e,gradients:n},a)=>{const l=`color-palette-${s}-${a}`;return(0,ze.jsxs)(tk,{spacing:2,children:[(0,ze.jsx)(ik,{level:i,id:l,children:e}),(0,ze.jsx)(iT,{clearGradient:t,gradients:n,onChange:e=>r(e,a),value:o,"aria-labelledby":l})]},a)}))})}function aT(e){const{asButtons:t,loop:n,actions:r,headingLevel:o,"aria-label":i,"aria-labelledby":s,...l}=e,c=oT(e.gradients)?(0,ze.jsx)(sT,{headingLevel:o,...l}):(0,ze.jsx)(iT,{...l});let u;if(t)u={asButtons:!0};else{const e={asButtons:!1,loop:n};u=i?{...e,"aria-label":i}:s?{...e,"aria-labelledby":s}:{...e,"aria-label":(0,a.__)("Custom color picker.")}}return(0,ze.jsx)(ek,{...u,actions:r,options:c})}const lT=function({className:e,gradients:t=[],onChange:n,value:r,clearable:o=!0,disableCustomGradients:i=!1,__experimentalIsRenderedInSidebar:s,headingLevel:l=2,...c}){const u=(0,Uo.useCallback)((()=>n(void 0)),[n]);return(0,ze.jsxs)(tk,{spacing:t.length?4:0,children:[!i&&(0,ze.jsx)(rT,{__experimentalIsRenderedInSidebar:s,value:r,onChange:n}),(t.length>0||o)&&(0,ze.jsx)(aT,{...c,className:e,clearGradient:u,gradients:t,onChange:n,value:r,actions:o&&!i&&(0,ze.jsx)(ek.ButtonAction,{onClick:u,children:(0,a.__)("Clear")}),headingLevel:l})]})},cT=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})}),uT=window.wp.dom,dT=()=>{},pT=["menuitem","menuitemradio","menuitemcheckbox"];class hT extends Uo.Component{constructor(e){super(e),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container&&this.container.addEventListener("keydown",this.onKeyDown)}componentWillUnmount(){this.container&&this.container.removeEventListener("keydown",this.onKeyDown)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,"function"==typeof t?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){if(!this.container)return null;const{onlyBrowserTabstops:t}=this.props,n=(t?uT.focus.tabbable:uT.focus.focusable).find(this.container),r=this.getFocusableIndex(n,e);return r>-1&&e?{index:r,target:e,focusables:n}:null}getFocusableIndex(e,t){return e.indexOf(t)}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:r,onNavigate:o=dT,stopNavigationEvents:i}=this.props,s=r(e);if(void 0!==s&&i){e.stopImmediatePropagation();const t=e.target?.getAttribute("role");!!t&&pT.includes(t)&&e.preventDefault()}if(!s)return;const a=e.target?.ownerDocument?.activeElement;if(!a)return;const l=t(a);if(!l)return;const{index:c,focusables:u}=l,d=n?function(e,t,n){const r=e+n;return r<0?t+r:r>=t?r-t:r}(c,u.length,s):c+s;d>=0&&d<u.length&&(u[d].focus(),o(d,u[d]),"Tab"===e.code&&e.preventDefault())}render(){const{children:e,stopNavigationEvents:t,eventToOffset:n,onNavigate:r,onKeyDown:o,cycle:i,onlyBrowserTabstops:s,forwardedRef:a,...l}=this.props;return(0,ze.jsx)("div",{ref:this.bindContainer,...l,children:e})}}const fT=(e,t)=>(0,ze.jsx)(hT,{...e,forwardedRef:t});fT.displayName="NavigableContainer";const mT=(0,Uo.forwardRef)(fT);const gT=(0,Uo.forwardRef)((function({role:e="menu",orientation:t="vertical",...n},r){return(0,ze.jsx)(mT,{ref:r,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:e,"aria-orientation":"presentation"===e||"vertical"!==t&&"horizontal"!==t?void 0:t,eventToOffset:e=>{const{code:n}=e;let r=["ArrowDown"],o=["ArrowUp"];return"horizontal"===t&&(r=["ArrowRight"],o=["ArrowLeft"]),"both"===t&&(r=["ArrowRight","ArrowDown"],o=["ArrowLeft","ArrowUp"]),r.includes(n)?1:o.includes(n)?-1:["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(n)?0:void 0},...n})})),vT=gT;function bT(e={},t={}){const n={...e,...t};return t.className&&e.className&&(n.className=s(t.className,e.className)),n}function xT(e){return"function"==typeof e}const yT=ia((function(e){const{children:t,className:n,controls:r,icon:o=cT,label:i,popoverProps:a,toggleProps:l,menuProps:c,disableOpenOnArrowDown:u=!1,text:d,noIcons:p,open:h,defaultOpen:f,onToggle:m,variant:g}=ra(e,"DropdownMenu");if(!r?.length&&!xT(t))return null;let v;r?.length&&(v=r,Array.isArray(v[0])||(v=[r]));const b=bT({className:"components-dropdown-menu__popover",variant:g},a);return(0,ze.jsx)(F_,{className:n,popoverProps:b,renderToggle:({isOpen:e,onToggle:t})=>{var n;const{as:r=Hx,...a}=null!=l?l:{},c=bT({className:s("components-dropdown-menu__toggle",{"is-opened":e})},a);return(0,ze.jsx)(r,{...c,icon:o,onClick:e=>{t(),c.onClick&&c.onClick(e)},onKeyDown:n=>{(n=>{u||e||"ArrowDown"!==n.code||(n.preventDefault(),t())})(n),c.onKeyDown&&c.onKeyDown(n)},"aria-haspopup":"true","aria-expanded":e,label:i,text:d,showTooltip:null===(n=l?.showTooltip)||void 0===n||n,children:c.children})},renderContent:e=>{const n=bT({"aria-label":i,className:s("components-dropdown-menu__menu",{"no-icons":p})},c);return(0,ze.jsxs)(vT,{...n,role:"menu",children:[xT(t)?t(e):null,v?.flatMap(((t,n)=>t.map(((t,r)=>(0,ze.jsx)(Hx,{onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:s("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive,"is-icon-only":!t.title}),icon:t.icon,label:t.label,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled,children:t.title},[n,r].join())))))]})},open:h,defaultOpen:f,onToggle:m})}),"DropdownMenu"),wT=yT;const _T=ba(A_,{target:"e1lpqc909"})("&&{flex-shrink:0;width:",ng(6),";height:",ng(6),";}"),ST=ba(Lx,{target:"e1lpqc908"})(Uv,"{background:",Na.gray[100],";border-radius:",bv.controlBorderRadius,";",Jv,Jv,Jv,Jv,"{height:",ng(8),";}",Bv,Bv,Bv,"{border-color:transparent;box-shadow:none;}}"),CT=({as:e})=>"button"===e?Ea("display:flex;align-items:center;width:100%;appearance:none;background:transparent;border:none;border-radius:0;padding:0;cursor:pointer;&:hover{color:",Na.theme.accent,";}",""):null,kT=ba(ya,{target:"e1lpqc907"})(CT," padding-block:3px;padding-inline-start:",ng(3),";border:1px solid ",bv.surfaceBorderColor,";border-bottom-color:transparent;font-size:",_x("default.fontSize"),";&:focus-visible{border-color:transparent;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Na.theme.accent,";outline:2px solid transparent;outline-offset:0;}border-top-left-radius:",bv.controlBorderRadius,";border-top-right-radius:",bv.controlBorderRadius,";&+&{border-top-left-radius:0;border-top-right-radius:0;}&:last-child{border-bottom-left-radius:",bv.controlBorderRadius,";border-bottom-right-radius:",bv.controlBorderRadius,";border-bottom-color:",bv.surfaceBorderColor,";}&.is-selected+&{border-top-color:transparent;}&.is-selected{border-color:",Na.theme.accent,";}"),jT=ba("div",{target:"e1lpqc906"})("line-height:",ng(8),";margin-left:",ng(2),";margin-right:",ng(2),";white-space:nowrap;overflow:hidden;"),ET=ba(ok,{target:"e1lpqc905"})("text-transform:uppercase;line-height:",ng(6),";font-weight:500;&&&{font-size:11px;margin-bottom:0;}"),PT=ba(ya,{target:"e1lpqc904"})("height:",ng(6),";display:flex;"),TT=ba(ya,{target:"e1lpqc903"})("margin-top:",ng(2),";"),IT=ba(ya,{target:"e1lpqc902"})({name:"u6wnko",styles:"&&&{.components-button.has-icon{min-width:0;padding:0;}}"}),MT=ba(Hx,{target:"e1lpqc901"})("&&{color:",Na.theme.accent,";}"),RT=ba(Hx,{target:"e1lpqc900"})("&&{margin-top:",ng(1),";}");function NT({value:e,onChange:t,label:n}){return(0,ze.jsx)(ST,{label:n,hideLabelFromVision:!0,value:e,onChange:t})}function AT({isGradient:e,element:t,onChange:n,popoverProps:r,onClose:o=(()=>{})}){const i=(0,Uo.useMemo)((()=>({shift:!0,offset:20,resize:!1,placement:"left-start",...r,className:s("components-palette-edit__popover",r?.className)})),[r]);return(0,ze.jsxs)(bw,{...i,onClose:o,children:[!e&&(0,ze.jsx)(GC,{color:t.color,enableAlpha:!0,onChange:e=>{n({...t,color:e})}}),e&&(0,ze.jsx)("div",{className:"components-palette-edit__popover-gradient-picker",children:(0,ze.jsx)(rT,{__experimentalIsRenderedInSidebar:!0,value:t.gradient,onChange:e=>{n({...t,gradient:e})}})})]})}function DT({canOnlyChangeValues:e,element:t,onChange:n,onRemove:r,popoverProps:o,slugPrefix:i,isGradient:s}){const l=s?t.gradient:t.color,[c,u]=(0,Uo.useState)(!1),[d,p]=(0,Uo.useState)(null),h=(0,Uo.useMemo)((()=>({...o,anchor:d})),[d,o]);return(0,ze.jsxs)(kT,{ref:p,as:"div",children:[(0,ze.jsxs)(ry,{justify:"flex-start",children:[(0,ze.jsx)(Hx,{onClick:()=>{u(!0)},"aria-label":(0,a.sprintf)((0,a.__)("Edit: %s"),t.name.trim().length?t.name:l),style:{padding:0},children:(0,ze.jsx)(_T,{colorValue:l})}),(0,ze.jsx)(jg,{children:e?(0,ze.jsx)(jT,{children:t.name.trim().length?t.name:" "}):(0,ze.jsx)(NT,{label:s?(0,a.__)("Gradient name"):(0,a.__)("Color name"),value:t.name,onChange:e=>n({...t,name:e,slug:i+yy(null!=e?e:"")})})}),!e&&(0,ze.jsx)(jg,{children:(0,ze.jsx)(RT,{size:"small",icon:Lw,label:(0,a.sprintf)((0,a.__)("Remove color: %s"),t.name.trim().length?t.name:l),onClick:r})})]}),c&&(0,ze.jsx)(AT,{isGradient:s,onChange:n,element:t,popoverProps:h,onClose:()=>u(!1)})]})}function OT({elements:e,onChange:t,canOnlyChangeValues:n,slugPrefix:r,isGradient:o,popoverProps:i,addColorRef:s}){const a=(0,Uo.useRef)();(0,Uo.useEffect)((()=>{a.current=e}),[e]);const c=(0,l.useDebounce)(t,100);return(0,ze.jsx)(tk,{spacing:3,children:(0,ze.jsx)(PP,{isRounded:!0,children:e.map(((a,l)=>(0,ze.jsx)(DT,{isGradient:o,canOnlyChangeValues:n,element:a,onChange:t=>{c(e.map(((e,n)=>n===l?t:e)))},onRemove:()=>{const n=e.filter(((e,t)=>t!==l));t(n.length?n:void 0),s.current?.focus()},slugPrefix:r,popoverProps:i},l)))})})}const zT=[];const LT=function({gradients:e,colors:t=zT,onChange:n,paletteLabel:r,paletteLabelHeadingLevel:o=2,emptyMessage:i,canOnlyChangeValues:s,canReset:c,slugPrefix:u="",popoverProps:d}){const p=!!e,h=p?e:t,[f,m]=(0,Uo.useState)(!1),[g,v]=(0,Uo.useState)(null),b=f&&!!g&&h[g]&&!h[g].slug,x=h.length>0,y=(0,l.useDebounce)(n,100),w=(0,Uo.useCallback)(((e,t)=>{const n=void 0===t?void 0:h[t];n&&n[p?"gradient":"color"]===e?v(t):m(!0)}),[p,h]),_=(0,Uo.useRef)(null);return(0,ze.jsxs)(IT,{children:[(0,ze.jsxs)(ry,{children:[(0,ze.jsx)(ET,{level:o,children:r}),(0,ze.jsxs)(PT,{children:[x&&f&&(0,ze.jsx)(MT,{size:"small",onClick:()=>{m(!1),v(null)},children:(0,a.__)("Done")}),!s&&(0,ze.jsx)(Hx,{ref:_,size:"small",isPressed:b,icon:Cg,label:p?(0,a.__)("Add gradient"):(0,a.__)("Add color"),onClick:()=>{const{name:r,slug:o}=function(e,t){const n=new RegExp(`^${t}color-([\\d]+)$`),r=e.reduce(((e,t)=>{if("string"==typeof t?.slug){const r=t?.slug.match(n);if(r){const t=parseInt(r[1],10);if(t>=e)return t+1}}return e}),1);return{name:(0,a.sprintf)((0,a.__)("Color %s"),r),slug:`${t}color-${r}`}}(h,u);n(e?[...e,{gradient:UP,name:r,slug:o}]:[...t,{color:"#000",name:r,slug:o}]),m(!0),v(h.length)}}),x&&(!f||!s||c)&&(0,ze.jsx)(wT,{icon:pP,label:p?(0,a.__)("Gradient options"):(0,a.__)("Color options"),toggleProps:{size:"small"},children:({onClose:e})=>(0,ze.jsx)(ze.Fragment,{children:(0,ze.jsxs)(vT,{role:"menu",children:[!f&&(0,ze.jsx)(Hx,{variant:"tertiary",onClick:()=>{m(!0),e()},className:"components-palette-edit__menu-button",children:(0,a.__)("Show details")}),!s&&(0,ze.jsx)(Hx,{variant:"tertiary",onClick:()=>{v(null),m(!1),n(),e()},className:"components-palette-edit__menu-button",children:p?(0,a.__)("Remove all gradients"):(0,a.__)("Remove all colors")}),c&&(0,ze.jsx)(Hx,{variant:"tertiary",onClick:()=>{v(null),n(),e()},children:p?(0,a.__)("Reset gradient"):(0,a.__)("Reset colors")})]})})})]})]}),x&&(0,ze.jsxs)(TT,{children:[f&&(0,ze.jsx)(OT,{canOnlyChangeValues:s,elements:h,onChange:n,slugPrefix:u,isGradient:p,popoverProps:d,addColorRef:_}),!f&&null!==g&&(0,ze.jsx)(AT,{isGradient:p,onClose:()=>v(null),onChange:e=>{y(h.map(((t,n)=>n===g?e:t)))},element:h[null!=g?g:-1],popoverProps:d}),!f&&(p?(0,ze.jsx)(lT,{gradients:e,onChange:w,clearable:!1,disableCustomGradients:!0}):(0,ze.jsx)(fk,{colors:t,onChange:w,clearable:!1,disableCustomColors:!0}))]}),!x&&i&&(0,ze.jsx)(TT,{children:i})]})},FT=({__next40pxDefaultSize:e})=>!e&&Ea("height:28px;padding-left:",ng(1),";padding-right:",ng(1),";",""),BT=ba(dg,{target:"evuatpg0"})("height:38px;padding-left:",ng(2),";padding-right:",ng(2),";",FT,";");const VT=(0,Uo.forwardRef)((function(e,t){const{value:n,isExpanded:r,instanceId:o,selectedSuggestionIndex:i,className:a,onChange:l,onFocus:c,onBlur:u,...d}=e,[p,h]=(0,Uo.useState)(!1),f=n?n.length+1:0;return(0,ze.jsx)("input",{ref:t,id:`components-form-token-input-${o}`,type:"text",...d,value:n||"",onChange:e=>{l&&l({value:e.target.value})},onFocus:e=>{h(!0),c?.(e)},onBlur:e=>{h(!1),u?.(e)},size:f,className:s(a,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":r,"aria-autocomplete":"list","aria-owns":r?`components-form-token-suggestions-${o}`:void 0,"aria-activedescendant":p&&-1!==i&&r?`components-form-token-suggestions-${o}-${i}`:void 0,"aria-describedby":`components-form-token-suggestions-howto-${o}`})})),$T=VT,HT=e=>{e.preventDefault()};const WT=function({selectedIndex:e,scrollIntoView:t,match:n,onHover:r,onSelect:o,suggestions:i=[],displayTransform:a,instanceId:c,__experimentalRenderItem:u}){const d=(0,l.useRefEffect)((n=>(e>-1&&t&&n.children[e]&&n.children[e].scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"}),()=>{0})),[e,t]),p=e=>()=>{r?.(e)},h=e=>()=>{o?.(e)};return(0,ze.jsx)("ul",{ref:d,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${c}`,role:"listbox",children:i.map(((t,r)=>{const o=(e=>{const t=a(n).toLocaleLowerCase();if(0===t.length)return null;const r=a(e),o=r.toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:r.substring(0,o),suggestionMatch:r.substring(o,o+t.length),suggestionAfterMatch:r.substring(o+t.length)}})(t),i=r===e,l="object"==typeof t&&t?.disabled,d="object"==typeof t&&"value"in t?t?.value:a(t),f=s("components-form-token-field__suggestion",{"is-selected":i});let m;return m="function"==typeof u?u({item:t}):o?(0,ze.jsxs)("span",{"aria-label":a(t),children:[o.suggestionBeforeMatch,(0,ze.jsx)("strong",{className:"components-form-token-field__suggestion-match",children:o.suggestionMatch}),o.suggestionAfterMatch]}):a(t),(0,ze.jsx)("li",{id:`components-form-token-suggestions-${c}-${r}`,role:"option",className:f,onMouseDown:HT,onClick:h(t),onMouseEnter:p(t),"aria-selected":r===e,"aria-disabled":l,children:m},d)}))})},UT=(0,l.createHigherOrderComponent)((e=>t=>{const[n,r]=(0,Uo.useState)(void 0),o=(0,Uo.useCallback)((e=>r((()=>e?.handleFocusOutside?e.handleFocusOutside.bind(e):void 0))),[]);return(0,ze.jsx)("div",{...(0,l.__experimentalUseFocusOutside)(n),children:(0,ze.jsx)(e,{ref:o,...t})})}),"withFocusOutside"),GT=()=>{},KT=UT(class extends Uo.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}}),YT=(e,t)=>null===e?-1:t.indexOf(e);const qT=function e(t){var n;const{__nextHasNoMarginBottom:r=!1,__next40pxDefaultSize:o=!1,value:i,label:c,options:u,onChange:d,onFilterValueChange:p=GT,hideLabelFromVision:h,help:f,allowReset:m=!0,className:g,messages:v={selected:(0,a.__)("Item selected.")},__experimentalRenderItem:b,expandOnFocus:x=!0}=ib(t),[y,w]=u_({value:i,onChange:d}),_=u.find((e=>e.value===y)),S=null!==(n=_?.label)&&void 0!==n?n:"",C=(0,l.useInstanceId)(e,"combobox-control"),[k,j]=(0,Uo.useState)(_||null),[E,P]=(0,Uo.useState)(!1),[T,I]=(0,Uo.useState)(!1),[M,R]=(0,Uo.useState)(""),N=(0,Uo.useRef)(null),A=(0,Uo.useMemo)((()=>{const e=[],t=[],n=xy(M);return u.forEach((r=>{const o=xy(r.label).indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[M,u]),D=e=>{e.disabled||(w(e.value),(0,gy.speak)(v.selected,"assertive"),j(e),R(""),P(!1))},O=(e=1)=>{let t=YT(k,A)+e;t<0?t=A.length-1:t>=A.length&&(t=0),j(A[t]),P(!0)},z=vx((e=>{let t=!1;if(!e.defaultPrevented){switch(e.code){case"Enter":k&&(D(k),t=!0);break;case"ArrowUp":O(-1),t=!0;break;case"ArrowDown":O(1),t=!0;break;case"Escape":P(!1),j(null),t=!0}t&&e.preventDefault()}}));return(0,Uo.useEffect)((()=>{const e=A.length>0,t=YT(k,A)>0;e&&!t&&j(A[0])}),[A,k]),(0,Uo.useEffect)((()=>{const e=A.length>0;if(E){const t=e?(0,a.sprintf)((0,a._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",A.length),A.length):(0,a.__)("No results.");(0,gy.speak)(t,"polite")}}),[A,E]),(0,ze.jsx)(KT,{onFocusOutside:()=>{P(!1)},children:(0,ze.jsx)(Dx,{__nextHasNoMarginBottom:r,className:s(g,"components-combobox-control"),label:c,id:`components-form-token-input-${C}`,hideLabelFromVision:h,help:f,children:(0,ze.jsxs)("div",{className:"components-combobox-control__suggestions-container",tabIndex:-1,onKeyDown:z,children:[(0,ze.jsxs)(BT,{__next40pxDefaultSize:o,children:[(0,ze.jsx)(hg,{children:(0,ze.jsx)($T,{className:"components-combobox-control__input",instanceId:C,ref:N,value:E?M:S,onFocus:()=>{I(!0),x&&P(!0),p(""),R("")},onBlur:()=>{I(!1)},onClick:()=>{P(!0)},isExpanded:E,selectedSuggestionIndex:YT(k,A),onChange:e=>{const t=e.value;R(t),p(t),T&&P(!0)}})}),m&&(0,ze.jsx)(jg,{children:(0,ze.jsx)(Hx,{className:"components-combobox-control__reset",icon:zw,disabled:!y,onClick:()=>{w(null),N.current?.focus()},label:(0,a.__)("Reset")})})]}),E&&(0,ze.jsx)(WT,{instanceId:C,match:{label:M,value:""},displayTransform:e=>e.label,suggestions:A,selectedIndex:YT(k,A),onHover:j,onSelect:D,scrollIntoView:!0,__experimentalRenderItem:b})]})})})};var XT=(0,c.createContext)(void 0),ZT=Ve((e=>{const[t,n]=(0,c.useState)();return e=Pe(e,(e=>(0,ze.jsx)(XT.Provider,{value:n,children:e})),[]),e=y({role:"group","aria-labelledby":t},e)}));Le((e=>Be("div",ZT(e))));var JT=Ve((e=>{var t=e,{store:n}=t,r=_(t,["store"]);return r=ZT(r)})),QT=Le((e=>Be("div",JT(e))));function eI(e){if(e.state){const{state:t,...n}=e,{store:r,...o}=eI(t);return{...n,...o,store:r}}return e}function tI(e,t={}){const n=e.displayName,r=n=>{const{store:r,...o}=eI(n),i=o;return i.id=(0,l.useInstanceId)(r,i.baseId,i.id),Object.entries(t).forEach((([e,t])=>{i.hasOwnProperty(e)&&(Object.assign(i,{[t]:i[e]}),delete i[e])})),delete i.baseId,(0,ze.jsx)(e,{...i,store:r})};return r.displayName=n,r}const nI=(0,Uo.forwardRef)((({role:e,...t},n)=>{const r="row"===e?ll:QT;return(0,ze.jsx)(r,{ref:n,role:e,...t})}));nI.displayName="CompositeGroup";const rI=tI(sl,{baseId:"id"}),oI=tI(nI),iI=tI(Kt,{focusable:"accessibleWhenDisabled"});function sI(e={}){const{baseId:t,currentId:n,orientation:r,rtl:o=!1,loop:i=!1,wrap:s=!1,shift:a=!1,unstable_virtual:c}=e;return{baseId:(0,l.useInstanceId)(rI,"composite",t),store:rl({defaultActiveId:n,rtl:o,orientation:r,focusLoop:i,focusShift:a,focusWrap:s,virtualFocus:c})}}const aI=new Set(["alert","status","log","marquee","timer"]),lI=[];function cI(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&&aI.has(t))}const uI=(0,Uo.createContext)([]),dI=new Map;const pI=(0,Uo.forwardRef)((function(e,t){const{bodyOpenClassName:n="modal-open",role:r="dialog",title:o=null,focusOnMount:i=!0,shouldCloseOnEsc:c=!0,shouldCloseOnClickOutside:u=!0,isDismissible:d=!0,aria:p={labelledby:void 0,describedby:void 0},onRequestClose:h,icon:f,closeButtonLabel:m,children:g,style:v,overlayClassName:b,className:x,contentLabel:y,onKeyDown:w,isFullScreen:_=!1,size:S,headerActions:C=null,__experimentalHideHeader:k=!1}=e,j=(0,Uo.useRef)(),E=(0,l.useInstanceId)(pI),P=o?`components-modal-header-${E}`:p.labelledby,T=(0,l.useFocusOnMount)("firstContentElement"===i?"firstElement":i),I=(0,l.useConstrainedTabbing)(),M=(0,l.useFocusReturn)(),R=(0,Uo.useRef)(null),N=(0,Uo.useRef)(null),[A,D]=(0,Uo.useState)(!1),[O,z]=(0,Uo.useState)(!1);let L;_||"fill"===S?L="is-full-screen":S&&(L=`has-size-${S}`);const F=(0,Uo.useCallback)((()=>{if(!R.current)return;const e=(0,uT.getScrollContainer)(R.current);R.current===e?z(!0):z(!1)}),[R]);(0,Uo.useEffect)((()=>(function(e){const t=Array.from(document.body.children),n=[];lI.push(n);for(const r of t)r!==e&&cI(r)&&(r.setAttribute("aria-hidden","true"),n.push(r))}(j.current),()=>function(){const e=lI.pop();if(e)for(const t of e)t.removeAttribute("aria-hidden")}())),[]);const B=(0,Uo.useRef)();(0,Uo.useEffect)((()=>{B.current=h}),[h]);const V=(0,Uo.useContext)(uI),$=(0,Uo.useRef)([]);(0,Uo.useEffect)((()=>{V.push(B);const[e,t]=V;t&&e?.current?.();const n=$.current;return()=>{n[0]?.current?.(),V.shift()}}),[V]),(0,Uo.useEffect)((()=>{var e;const t=n,r=1+(null!==(e=dI.get(t))&&void 0!==e?e:0);return dI.set(t,r),document.body.classList.add(n),()=>{const e=dI.get(t)-1;0===e?(document.body.classList.remove(t),dI.delete(t)):dI.set(t,e)}}),[n]),(0,Uo.useLayoutEffect)((()=>{if(!window.ResizeObserver||!N.current)return;const e=new ResizeObserver(F);return e.observe(N.current),F(),()=>{e.disconnect()}}),[F,N]);const H=(0,Uo.useCallback)((e=>{var t;const n=null!==(t=e?.currentTarget?.scrollTop)&&void 0!==t?t:-1;!A&&n>0?D(!0):A&&n<=0&&D(!1)}),[A]);let W=null;const U={onPointerDown:e=>{e.target===e.currentTarget&&(W=e.target,e.preventDefault())},onPointerUp:({target:e,button:t})=>{const n=e===W;W=null,0===t&&n&&h()}},G=(0,ze.jsx)("div",{ref:(0,l.useMergeRefs)([j,t]),className:s("components-modal__screen-overlay",b),onKeyDown:vx((function(e){!c||"Escape"!==e.code&&"Escape"!==e.key||e.defaultPrevented||(e.preventDefault(),h&&h(e))})),...u?U:{},children:(0,ze.jsx)(ew,{document,children:(0,ze.jsx)("div",{className:s("components-modal__frame",L,x),style:v,ref:(0,l.useMergeRefs)([I,M,"firstContentElement"!==i?T:null]),role:r,"aria-label":y,"aria-labelledby":y?void 0:P,"aria-describedby":p.describedby,tabIndex:-1,onKeyDown:w,children:(0,ze.jsxs)("div",{className:s("components-modal__content",{"hide-header":k,"is-scrollable":O,"has-scrolled-content":A}),role:"document",onScroll:H,ref:R,"aria-label":O?(0,a.__)("Scrollable section"):void 0,tabIndex:O?0:void 0,children:[!k&&(0,ze.jsxs)("div",{className:"components-modal__header",children:[(0,ze.jsxs)("div",{className:"components-modal__header-heading-container",children:[f&&(0,ze.jsx)("span",{className:"components-modal__icon-container","aria-hidden":!0,children:f}),o&&(0,ze.jsx)("h1",{id:P,className:"components-modal__header-heading",children:o})]}),C,d&&(0,ze.jsx)(Hx,{onClick:h,icon:Ty,label:m||(0,a.__)("Close")})]}),(0,ze.jsx)("div",{ref:(0,l.useMergeRefs)([N,"firstContentElement"===i?T:null]),children:g})]})})})});return(0,Uo.createPortal)((0,ze.jsx)(uI.Provider,{value:$.current,children:G}),document.body)})),hI=pI;const fI={name:"7g5ii0",styles:"&&{z-index:1000001;}"},mI=oa(((e,t)=>{const{isOpen:n,onConfirm:r,onCancel:o,children:i,confirmButtonText:s,cancelButtonText:l,...c}=ra(e,"ConfirmDialog"),u=na()(fI),d=(0,Uo.useRef)(),p=(0,Uo.useRef)(),[h,f]=(0,Uo.useState)(),[m,g]=(0,Uo.useState)();(0,Uo.useEffect)((()=>{const e=void 0!==n;f(!e||n),g(!e)}),[n]);const v=(0,Uo.useCallback)((e=>t=>{e?.(t),m&&f(!1)}),[m,f]),b=(0,Uo.useCallback)((e=>{e.target===d.current||e.target===p.current||"Enter"!==e.key||v(r)(e)}),[v,r]),x=null!=l?l:(0,a.__)("Cancel"),y=null!=s?s:(0,a.__)("OK");return(0,ze.jsx)(ze.Fragment,{children:h&&(0,ze.jsx)(hI,{onRequestClose:v(o),onKeyDown:b,closeButtonLabel:x,isDismissible:!0,ref:t,overlayClassName:u,__experimentalHideHeader:!0,...c,children:(0,ze.jsxs)(tk,{spacing:8,children:[(0,ze.jsx)(Dv,{children:i}),(0,ze.jsxs)(dg,{direction:"row",justify:"flex-end",children:[(0,ze.jsx)(Hx,{__next40pxDefaultSize:!0,ref:d,variant:"tertiary",onClick:v(o),children:x}),(0,ze.jsx)(Hx,{__next40pxDefaultSize:!0,ref:p,variant:"primary",onClick:v(r),children:y})]})]})})})}),"ConfirmDialog");var gI=o(5826),vI=o.n(gI);o(1915);function bI(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function xI(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function yI(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return xI(n.overflowY,t)||xI(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function wI(e,t,n,r,o,i,s,a){return i<e&&s>t||i>e&&s<t?0:i<=e&&a<=n||s>=t&&a>=n?i-e-r:s>t&&a<n||i<e&&a>n?s-t+o:0}let _I=0;function SI(){}function CI(e,t){if(!e)return;const n=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,s=t.boundary,a=t.skipOverflowHiddenElements,l="function"==typeof s?s:function(e){return e!==s};if(!bI(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,p=[],h=e;bI(h)&&l(h);){if((h=null==(u=(c=h).parentElement)?c.getRootNode().host||null:u)===d){p.push(h);break}null!=h&&h===document.body&&yI(h)&&!yI(document.documentElement)||null!=h&&yI(h,a)&&p.push(h)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),x=b.height,y=b.width,w=b.top,_=b.right,S=b.bottom,C=b.left,k="start"===o||"nearest"===o?w:"end"===o?S:w+x/2,j="center"===i?C+y/2:"end"===i?_:C,E=[],P=0;P<p.length;P++){var T=p[P],I=T.getBoundingClientRect(),M=I.height,R=I.width,N=I.top,A=I.right,D=I.bottom,O=I.left;if("if-needed"===r&&w>=0&&C>=0&&S<=m&&_<=f&&w>=N&&S<=D&&C>=O&&_<=A)return E;var z=getComputedStyle(T),L=parseInt(z.borderLeftWidth,10),F=parseInt(z.borderTopWidth,10),B=parseInt(z.borderRightWidth,10),V=parseInt(z.borderBottomWidth,10),$=0,H=0,W="offsetWidth"in T?T.offsetWidth-T.clientWidth-L-B:0,U="offsetHeight"in T?T.offsetHeight-T.clientHeight-F-V:0,G="offsetWidth"in T?0===T.offsetWidth?0:R/T.offsetWidth:0,K="offsetHeight"in T?0===T.offsetHeight?0:M/T.offsetHeight:0;if(d===T)$="start"===o?k:"end"===o?k-m:"nearest"===o?wI(v,v+m,m,F,V,v+k,v+k+x,x):k-m/2,H="start"===i?j:"center"===i?j-f/2:"end"===i?j-f:wI(g,g+f,f,L,B,g+j,g+j+y,y),$=Math.max(0,$+v),H=Math.max(0,H+g);else{$="start"===o?k-N-F:"end"===o?k-D+V+U:"nearest"===o?wI(N,D,M,F,V+U,k,k+x,x):k-(N+M/2)+U/2,H="start"===i?j-O-L:"center"===i?j-(O+R/2)+W/2:"end"===i?j-A+B+W:wI(O,A,R,L,B+W,j,j+y,y);var Y=T.scrollLeft,q=T.scrollTop;k+=q-($=Math.max(0,Math.min(q+$/K,T.scrollHeight-M/K+U))),j+=Y-(H=Math.max(0,Math.min(Y+H/G,T.scrollWidth-R/G+W)))}E.push({el:T,top:$,left:H})}return E}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((e=>{let{el:t,top:n,left:r}=e;t.scrollTop=n,t.scrollLeft=r}))}function kI(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function jI(e,t){let n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];r(),n=setTimeout((()=>{n=null,e(...i)}),t)}return o.cancel=r,o}function EI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((t=>(t&&t(e,...r),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault)))}}function PI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}}function TI(){return String(_I++)}function II(e){let{isOpen:t,resultCount:n,previousResultCount:r}=e;return t?n?n!==r?`${n} result${1===n?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function MI(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=RI(t,r)?t[r]:e[r],n)),{})}function RI(e,t){return void 0!==e[t]}function NI(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function AI(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;const i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);let s=t+e;s<0?s=o?i:0:s>i&&(s=o?0:i);const a=DI(e,s,n,r,o);return-1===a?t>=n?-1:t:a}function DI(e,t,n,r,o){const i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e<n;e++)if(!r(e).hasAttribute("disabled"))return e}else for(let e=t-1;e>=0;e--)if(!r(e).hasAttribute("disabled"))return e;return o?e>0?DI(1,0,n,r,!1):DI(-1,n-1,n,r,!1):-1}function OI(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(kI(t,e,n)||r&&kI(t,n.document.activeElement,n))))}const zI=jI((e=>{FI(e).textContent=""}),500);function LI(e,t){const n=FI(t);e&&(n.textContent=e,zI(t))}function FI(e){void 0===e&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}const BI={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function VI(e,t,n){const{props:r,type:o}=e,i={};Object.keys(t).forEach((r=>{!function(e,t,n,r){const{props:o,type:i}=t,s=`on${KI(e)}Change`;o[s]&&void 0!==r[e]&&r[e]!==n[e]&&o[s]({type:i,...r})}(r,e,t,n),n[r]!==t[r]&&(i[r]=n[r])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange({type:o,...i})}const $I=jI(((e,t)=>{LI(e(),t)}),200),HI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?c.useLayoutEffect:c.useEffect;function WI(e){let{id:t=`downshift-${TI()}`,labelId:n,menuId:r,getItemId:o,toggleButtonId:i,inputId:s}=e;const a=(0,c.useRef)({labelId:n||`${t}-label`,menuId:r||`${t}-menu`,getItemId:o||(e=>`${t}-item-${e}`),toggleButtonId:i||`${t}-toggle-button`,inputId:s||`${t}-input`});return a.current}function UI(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function GI(e){return/^\S{1}$/.test(e)}function KI(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function YI(e){const t=(0,c.useRef)(e);return t.current=e,t}function qI(e,t,n){const r=(0,c.useRef)(),o=(0,c.useRef)(),i=(0,c.useCallback)(((t,n)=>{o.current=n,t=MI(t,n.props);const r=e(t,n);return n.props.stateReducer(t,{...n,changes:r})}),[e]),[s,a]=(0,c.useReducer)(i,t),l=YI(n),u=(0,c.useCallback)((e=>a({props:l.current,...e})),[l]),d=o.current;return(0,c.useEffect)((()=>{d&&r.current&&r.current!==s&&VI(d,MI(r.current,d.props),s),r.current=s}),[s,n,d]),[s,u]}function XI(e,t,n){const[r,o]=qI(e,t,n);return[MI(r,n),o]}const ZI={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""},scrollIntoView:CI,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function JI(e,t,n){void 0===n&&(n=BI);const r=e[`default${KI(t)}`];return void 0!==r?r:n[t]}function QI(e,t,n){void 0===n&&(n=BI);const r=e[t];if(void 0!==r)return r;const o=e[`initial${KI(t)}`];return void 0!==o?o:JI(e,t,n)}function eM(e){const t=QI(e,"selectedItem"),n=QI(e,"isOpen"),r=QI(e,"highlightedIndex"),o=QI(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function tM(e,t,n,r){const{items:o,initialHighlightedIndex:i,defaultHighlightedIndex:s}=e,{selectedItem:a,highlightedIndex:l}=t;return 0===o.length?-1:void 0!==i&&l===i?i:void 0!==s?s:a?0===n?o.indexOf(a):AI(n,o.indexOf(a),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function nM(e,t,n,r){const o=(0,c.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,c.useEffect)((()=>{const i=()=>{o.current.isMouseDown=!0},s=i=>{o.current.isMouseDown=!1,e&&!OI(i.target,t.map((e=>e.current)),n)&&r()},a=()=>{o.current.isTouchMove=!1},l=()=>{o.current.isTouchMove=!0},c=i=>{!e||o.current.isTouchMove||OI(i.target,t.map((e=>e.current)),n,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",s),n.addEventListener("touchstart",a),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",s),n.removeEventListener("touchstart",a),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}}),[e,n]),o}let rM=()=>SI;function oM(e,t,n){let{isInitialMount:r,highlightedIndex:o,items:i,environment:s,...a}=n;(0,c.useEffect)((()=>{r||$I((()=>e({highlightedIndex:o,highlightedItem:i[o],resultCount:i.length,...a})),s.document)}),t)}function iM(e){let{highlightedIndex:t,isOpen:n,itemRefs:r,getItemNodeFromIndex:o,menuElement:i,scrollIntoView:s}=e;const a=(0,c.useRef)(!0);return HI((()=>{t<0||!n||!Object.keys(r.current).length||(!1===a.current?a.current=!0:s(o(t),i))}),[t]),a}let sM=SI;function aM(e,t,n){const{type:r,props:o}=t;let i;switch(r){case n.ItemMouseMove:i={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:i={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:i={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:tM(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:tM(o,e,0)};break;case n.FunctionCloseMenu:i={isOpen:!1};break;case n.FunctionSetHighlightedIndex:i={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:i={inputValue:t.inputValue};break;case n.FunctionReset:i={highlightedIndex:JI(o,"highlightedIndex"),isOpen:JI(o,"isOpen"),selectedItem:JI(o,"selectedItem"),inputValue:JI(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...i}}function lM(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex,s=t.toLowerCase(),a=0;a<r.length;a++){var l=(a+n+1)%r.length,c=r[l];if(void 0!==c&&o(c).toLowerCase().startsWith(s)){var u=i(l);if(!(null==u?void 0:u.hasAttribute("disabled")))return l}}return n}vI().array.isRequired,vI().func,vI().func,vI().func,vI().bool,vI().number,vI().number,vI().number,vI().bool,vI().bool,vI().bool,vI().any,vI().any,vI().any,vI().string,vI().string,vI().string,vI().func,vI().string,vI().func,vI().func,vI().func,vI().func,vI().func,vI().shape({addEventListener:vI().func,removeEventListener:vI().func,document:vI().shape({getElementById:vI().func,activeElement:vI().any,body:vI().any})});var cM=vi(vi({},ZI),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}}),uM=SI;const dM=0,pM=1,hM=2,fM=3,mM=4,gM=5,vM=6,bM=7,xM=8,yM=9,wM=10,_M=11,SM=12,CM=13,kM=14,jM=15,EM=16,PM=17,TM=18,IM=19,MM=20,RM=21,NM=22;var AM=Object.freeze({__proto__:null,MenuKeyDownArrowDown:dM,MenuKeyDownArrowUp:pM,MenuKeyDownEscape:hM,MenuKeyDownHome:fM,MenuKeyDownEnd:mM,MenuKeyDownEnter:gM,MenuKeyDownSpaceButton:vM,MenuKeyDownCharacter:bM,MenuBlur:xM,MenuMouseLeave:yM,ItemMouseMove:wM,ItemClick:_M,ToggleButtonClick:SM,ToggleButtonKeyDownArrowDown:CM,ToggleButtonKeyDownArrowUp:kM,ToggleButtonKeyDownCharacter:jM,FunctionToggleMenu:EM,FunctionOpenMenu:PM,FunctionCloseMenu:TM,FunctionSetHighlightedIndex:IM,FunctionSelectItem:MM,FunctionSetInputValue:RM,FunctionReset:NM});function DM(e,t){const{type:n,props:r,shiftKey:o}=t;let i;switch(n){case _M:i={isOpen:JI(r,"isOpen"),highlightedIndex:JI(r,"highlightedIndex"),selectedItem:r.items[t.index]};break;case jM:{const n=t.key,o=`${e.inputValue}${n}`,s=lM({keysSoFar:o,highlightedIndex:e.selectedItem?r.items.indexOf(e.selectedItem):-1,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...s>=0&&{selectedItem:r.items[s]}}}break;case CM:i={highlightedIndex:tM(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case kM:i={highlightedIndex:tM(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case gM:case vM:i={isOpen:JI(r,"isOpen"),highlightedIndex:JI(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case fM:i={highlightedIndex:DI(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case mM:i={highlightedIndex:DI(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case hM:case xM:i={isOpen:!1,highlightedIndex:-1};break;case bM:{const n=t.key,o=`${e.inputValue}${n}`,s=lM({keysSoFar:o,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...s>=0&&{highlightedIndex:s}}}break;case dM:i={highlightedIndex:AI(o?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case pM:i={highlightedIndex:AI(o?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case MM:i={selectedItem:t.selectedItem};break;default:return aM(e,t,AM)}return{...e,...i}}function OM(e){void 0===e&&(e={}),uM(e,OM);const t={...cM,...e},{items:n,scrollIntoView:r,environment:o,initialIsOpen:i,defaultIsOpen:s,itemToString:a,getA11ySelectionMessage:l,getA11yStatusMessage:u}=t,d=eM(t),[p,h]=XI(DM,d,t),{isOpen:f,highlightedIndex:m,selectedItem:g,inputValue:v}=p,b=(0,c.useRef)(null),x=(0,c.useRef)(null),y=(0,c.useRef)({}),w=(0,c.useRef)(!0),_=(0,c.useRef)(null),S=WI(t),C=(0,c.useRef)(),k=(0,c.useRef)(!0),j=YI({state:p,props:t}),E=(0,c.useCallback)((e=>y.current[S.getItemId(e)]),[S]);oM(u,[f,m,v,n],{isInitialMount:k.current,previousResultCount:C.current,items:n,environment:o,itemToString:a,...p}),oM(l,[g],{isInitialMount:k.current,previousResultCount:C.current,items:n,environment:o,itemToString:a,...p});const P=iM({menuElement:x.current,highlightedIndex:m,isOpen:f,itemRefs:y,scrollIntoView:r,getItemNodeFromIndex:E});(0,c.useEffect)((()=>(_.current=jI((e=>{e({type:RM,inputValue:""})}),500),()=>{_.current.cancel()})),[]),(0,c.useEffect)((()=>{v&&_.current(h)}),[h,v]),sM({isInitialMount:k.current,props:t,state:p}),(0,c.useEffect)((()=>{k.current?(i||s||f)&&x.current&&x.current.focus():f?x.current&&x.current.focus():o.document.activeElement===x.current&&b.current&&(w.current=!1,b.current.focus())}),[f]),(0,c.useEffect)((()=>{k.current||(C.current=n.length)}));const T=nM(f,[x,b],o,(()=>{h({type:xM})})),I=rM("getMenuProps","getToggleButtonProps");(0,c.useEffect)((()=>{k.current=!1}),[]),(0,c.useEffect)((()=>{f||(y.current={})}),[f]);const M=(0,c.useMemo)((()=>({ArrowDown(e){e.preventDefault(),h({type:CM,getItemNodeFromIndex:E,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),h({type:kM,getItemNodeFromIndex:E,shiftKey:e.shiftKey})}})),[h,E]),R=(0,c.useMemo)((()=>({ArrowDown(e){e.preventDefault(),h({type:dM,getItemNodeFromIndex:E,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),h({type:pM,getItemNodeFromIndex:E,shiftKey:e.shiftKey})},Home(e){e.preventDefault(),h({type:fM,getItemNodeFromIndex:E})},End(e){e.preventDefault(),h({type:mM,getItemNodeFromIndex:E})},Escape(){h({type:hM})},Enter(e){e.preventDefault(),h({type:gM})}," "(e){e.preventDefault(),h({type:vM})}})),[h,E]),N=(0,c.useCallback)((()=>{h({type:EM})}),[h]),A=(0,c.useCallback)((()=>{h({type:TM})}),[h]),D=(0,c.useCallback)((()=>{h({type:PM})}),[h]),O=(0,c.useCallback)((e=>{h({type:IM,highlightedIndex:e})}),[h]),z=(0,c.useCallback)((e=>{h({type:MM,selectedItem:e})}),[h]),L=(0,c.useCallback)((()=>{h({type:NM})}),[h]),F=(0,c.useCallback)((e=>{h({type:RM,inputValue:e})}),[h]),B=(0,c.useCallback)((e=>({id:S.labelId,htmlFor:S.toggleButtonId,...e})),[S]),V=(0,c.useCallback)((function(e,t){let{onMouseLeave:n,refKey:r="ref",onKeyDown:o,onBlur:i,ref:s,...a}=void 0===e?{}:e,{suppressRefError:l=!1}=void 0===t?{}:t;const c=j.current.state;return I("getMenuProps",l,r,x),{[r]:PI(s,(e=>{x.current=e})),id:S.menuId,role:"listbox","aria-labelledby":S.labelId,tabIndex:-1,...c.isOpen&&c.highlightedIndex>-1&&{"aria-activedescendant":S.getItemId(c.highlightedIndex)},onMouseLeave:EI(n,(()=>{h({type:yM})})),onKeyDown:EI(o,(e=>{const t=NI(e);t&&R[t]?R[t](e):GI(t)&&h({type:bM,key:t,getItemNodeFromIndex:E})})),onBlur:EI(i,(()=>{if(!1===w.current)return void(w.current=!0);!T.current.isMouseDown&&h({type:xM})})),...a}}),[h,j,R,T,I,S,E]),$=(0,c.useCallback)((function(e,t){let{onClick:n,onKeyDown:r,refKey:o="ref",ref:i,...s}=void 0===e?{}:e,{suppressRefError:a=!1}=void 0===t?{}:t;const l=()=>{h({type:SM})},c=e=>{const t=NI(e);t&&M[t]?M[t](e):GI(t)&&h({type:jM,key:t,getItemNodeFromIndex:E})},u={[o]:PI(i,(e=>{b.current=e})),id:S.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":j.current.state.isOpen,"aria-labelledby":`${S.labelId} ${S.toggleButtonId}`,...s};return s.disabled||(u.onClick=EI(n,l),u.onKeyDown=EI(r,c)),I("getToggleButtonProps",a,o,b),u}),[h,j,M,I,S,E]),H=(0,c.useCallback)((function(e){let{item:t,index:n,onMouseMove:r,onClick:o,refKey:i="ref",ref:s,disabled:a,...l}=void 0===e?{}:e;const{state:c,props:u}=j.current,d=()=>{h({type:_M,index:n})},p=UI(n,t,u.items);if(p<0)throw new Error("Pass either item or item index in getItemProps!");const f={disabled:a,role:"option","aria-selected":`${p===c.highlightedIndex}`,id:S.getItemId(p),[i]:PI(s,(e=>{e&&(y.current[S.getItemId(p)]=e)})),...l};return a||(f.onClick=EI(o,d)),f.onMouseMove=EI(r,(()=>{n!==c.highlightedIndex&&(P.current=!1,h({type:wM,index:n,disabled:a}))})),f}),[h,j,P,S]);return{getToggleButtonProps:$,getLabelProps:B,getMenuProps:V,getItemProps:H,toggleMenu:N,openMenu:D,closeMenu:A,setHighlightedIndex:O,selectItem:z,reset:L,setInputValue:F,highlightedIndex:m,isOpen:f,selectedItem:g,inputValue:v}}OM.stateChangeTypes=AM;vI().array.isRequired,vI().func,vI().func,vI().func,vI().bool,vI().number,vI().number,vI().number,vI().bool,vI().bool,vI().bool,vI().any,vI().any,vI().any,vI().string,vI().string,vI().string,vI().string,vI().string,vI().string,vI().func,vI().string,vI().string,vI().func,vI().func,vI().func,vI().func,vI().func,vI().func,vI().shape({addEventListener:vI().func,removeEventListener:vI().func,document:vI().shape({getElementById:vI().func,activeElement:vI().any,body:vI().any})});vI().array,vI().array,vI().array,vI().func,vI().func,vI().func,vI().number,vI().number,vI().number,vI().func,vI().func,vI().string,vI().string,vI().shape({addEventListener:vI().func,removeEventListener:vI().func,document:vI().shape({getElementById:vI().func,activeElement:vI().any,body:vI().any})});const zM=e=>e?.name,LM=({selectedItem:e},{type:t,changes:n,props:{items:r}})=>{switch(t){case OM.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:r[e?Math.min(r.indexOf(e)+1,r.length-1):0]};case OM.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:r[e?Math.max(r.indexOf(e)-1,0):r.length-1]};default:return n}};function FM(e){const{__next40pxDefaultSize:t=!1,className:n,hideLabelFromVision:r,label:o,describedBy:i,options:l,onChange:c,size:u="default",value:d,onMouseOver:p,onMouseOut:h,onFocus:f,onBlur:m,__experimentalShowSelectedHint:g=!1}=ib(e),{getLabelProps:v,getToggleButtonProps:b,getMenuProps:x,getItemProps:y,isOpen:w,highlightedIndex:_,selectedItem:S}=OM({initialSelectedItem:l[0],items:l,itemToString:zM,onSelectedItemChange:c,...null!=d?{selectedItem:d}:void 0,stateReducer:LM});let C=x({className:"components-custom-select-control__menu","aria-hidden":!w});const k=(0,Uo.useCallback)((e=>{e.stopPropagation(),C?.onKeyDown?.(e)}),[C]);if(C["aria-activedescendant"]?.startsWith("downshift-null")){const{"aria-activedescendant":e,...t}=C;C=t}return(0,ze.jsxs)("div",{className:s("components-custom-select-control",n),children:[r?(0,ze.jsx)(wa,{as:"label",...v(),children:o}):(0,ze.jsx)(Px,{...v({className:"components-custom-select-control__label"}),children:o}),(0,ze.jsxs)(lb,{__next40pxDefaultSize:t,size:u,suffix:(0,ze.jsx)(X_,{}),children:[(0,ze.jsxs)(U_,{onMouseOver:p,onMouseOut:h,as:"button",onFocus:f,onBlur:m,selectSize:u,__next40pxDefaultSize:t,...b({"aria-label":o,"aria-labelledby":void 0,className:"components-custom-select-control__button",describedBy:i||(S?(0,a.sprintf)((0,a.__)("Currently selected: %s"),S.name):(0,a.__)("No selection"))}),children:[zM(S),g&&S.__experimentalHint&&(0,ze.jsx)("span",{className:"components-custom-select-control__hint",children:S.__experimentalHint})]}),(0,ze.jsx)("div",{className:"components-custom-select-control__menu-wrapper",children:(0,ze.jsx)("ul",{...C,onKeyDown:k,children:w&&l.map(((e,n)=>(0,ze.jsxs)("li",{...y({item:e,index:n,className:s(e.className,"components-custom-select-control__item",{"is-highlighted":n===_,"has-hint":!!e.__experimentalHint,"is-next-40px-default-size":t}),style:e.style}),children:[e.name,e.__experimentalHint&&(0,ze.jsx)("span",{className:"components-custom-select-control__item-hint",children:e.__experimentalHint}),e===S&&(0,ze.jsx)(Y_,{icon:YC,className:"components-custom-select-control__item-icon"})]},e.key)))})})]})]})}function BM(e){return(0,ze.jsx)(FM,{...e,__experimentalShowSelectedHint:!1})}function VM(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function $M(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function HM(e,t){const n=VM(e);if(isNaN(t))return $M(e,NaN);if(!t)return n;const r=n.getDate(),o=$M(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);return r>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}let WM={};function UM(){return WM}function GM(e,t){const n=UM(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=VM(e),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function KM(e,t){return function(e,t){const n=VM(e);return isNaN(t)?$M(e,NaN):t?(n.setDate(n.getDate()+t),n):n}(e,7*t)}function YM(e,t){return HM(e,12*t)}function qM(e){const t=VM(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function XM(e,t){const n=VM(e.start),r=VM(e.end);let o=+n>+r;const i=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);const l=[];for(;+s<=i;)l.push(VM(s)),s.setDate(s.getDate()+a),s.setHours(0,0,0,0);return o?l.reverse():l}function ZM(e){const t=VM(e);return t.setDate(1),t.setHours(0,0,0,0),t}function JM(e,t){const n=UM(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=VM(e),i=o.getDay(),s=6+(i<r?-7:0)-(i-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function QM(e,t){return+VM(e)==+VM(t)}function eR(e,t){const n=VM(e),r=n.getFullYear(),o=n.getDate(),i=$M(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const s=function(e){const t=VM(e),n=t.getFullYear(),r=t.getMonth(),o=$M(e,0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(i);return n.setMonth(t,Math.min(o,s)),n}function tR(){return function(e){const t=VM(e);return t.setHours(0,0,0,0),t}(Date.now())}var nR,rR;!function(e){e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER"}(nR||(nR={})),function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"}(rR||(rR={}));var oR=function(e,t,n){return(QM(e,t)||function(e,t){const n=VM(e),r=VM(t);return n.getTime()>r.getTime()}(e,t))&&(QM(e,n)||function(e,t){return+VM(e)<+VM(t)}(e,n))},iR=function(e){return function(e,t){let n=VM(e);return isNaN(+n)?$M(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=eR(n,t.month)),null!=t.date&&n.setDate(t.date),null!=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!=t.seconds&&n.setSeconds(t.seconds),null!=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)}(e,{hours:0,minutes:0,seconds:0,milliseconds:0})},sR=function(e){var t=void 0===e?{}:e,n=t.weekStartsOn,r=void 0===n?rR.SUNDAY:n,o=t.viewing,i=void 0===o?new Date:o,s=t.selected,a=void 0===s?[]:s,l=t.numberOfMonths,u=void 0===l?1:l,d=(0,c.useState)(i),p=d[0],h=d[1],f=(0,c.useCallback)((function(){return h(tR())}),[h]),m=(0,c.useCallback)((function(e){return h((function(t){return eR(t,e)}))}),[]),g=(0,c.useCallback)((function(){return h((function(e){return function(e,t){return HM(e,-t)}(e,1)}))}),[]),v=(0,c.useCallback)((function(){return h((function(e){return HM(e,1)}))}),[]),b=(0,c.useCallback)((function(e){return h((function(t){return function(e,t){const n=VM(e);return isNaN(+n)?$M(e,NaN):(n.setFullYear(t),n)}(t,e)}))}),[]),x=(0,c.useCallback)((function(){return h((function(e){return function(e,t){return YM(e,-t)}(e,1)}))}),[]),y=(0,c.useCallback)((function(){return h((function(e){return YM(e,1)}))}),[]),w=(0,c.useState)(a.map(iR)),_=w[0],S=w[1],C=(0,c.useCallback)((function(e){return _.findIndex((function(t){return QM(t,e)}))>-1}),[_]),k=(0,c.useCallback)((function(e,t){S(t?Array.isArray(e)?e:[e]:function(t){return t.concat(Array.isArray(e)?e:[e])})}),[]),j=(0,c.useCallback)((function(e){return S((function(t){return Array.isArray(e)?t.filter((function(t){return!e.map((function(e){return e.getTime()})).includes(t.getTime())})):t.filter((function(t){return!QM(t,e)}))}))}),[]),E=(0,c.useCallback)((function(e,t){return C(e)?j(e):k(e,t)}),[j,C,k]),P=(0,c.useCallback)((function(e,t,n){S(n?XM({start:e,end:t}):function(n){return n.concat(XM({start:e,end:t}))})}),[]),T=(0,c.useCallback)((function(e,t){S((function(n){return n.filter((function(n){return!XM({start:e,end:t}).map((function(e){return e.getTime()})).includes(n.getTime())}))}))}),[]),I=(0,c.useMemo)((function(){return function(e,t){const n=VM(e.start),r=VM(e.end);let o=+n>+r;const i=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0),s.setDate(1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);const l=[];for(;+s<=i;)l.push(VM(s)),s.setMonth(s.getMonth()+a);return o?l.reverse():l}({start:ZM(p),end:qM(HM(p,u-1))}).map((function(e){return function(e,t){const n=VM(e.start),r=VM(e.end);let o=+n>+r;const i=GM(o?r:n,t),s=GM(o?n:r,t);i.setHours(15),s.setHours(15);const a=+s.getTime();let l=i,c=t?.step??1;if(!c)return[];c<0&&(c=-c,o=!o);const u=[];for(;+l<=a;)l.setHours(0),u.push(VM(l)),l=KM(l,c),l.setHours(15);return o?u.reverse():u}({start:ZM(e),end:qM(e)},{weekStartsOn:r}).map((function(e){return XM({start:GM(e,{weekStartsOn:r}),end:JM(e,{weekStartsOn:r})})}))}))}),[p,r,u]);return{clearTime:iR,inRange:oR,viewing:p,setViewing:h,viewToday:f,viewMonth:m,viewPreviousMonth:g,viewNextMonth:v,viewYear:b,viewPreviousYear:x,viewNextYear:y,selected:_,setSelected:S,clearSelected:function(){return S([])},isSelected:C,select:k,deselect:j,toggle:E,selectRange:P,deselectRange:T,calendar:I}};function aR(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function lR(e){const t=aR(e);return t.setHours(0,0,0,0),t}function cR(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function uR(e,t){const n=aR(e);if(isNaN(t))return cR(e,NaN);if(!t)return n;const r=n.getDate(),o=cR(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);return r>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}function dR(e,t){return uR(e,-t)}const pR={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function hR(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const fR={date:hR({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:hR({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:hR({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},mR={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function gR(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const vR={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:gR({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:gR({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:gR({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:gR({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:gR({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function bR(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(a,(e=>e.test(s))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(a,(e=>e.test(s)));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(s.length)}}}const xR={ordinalNumber:(yR={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(yR.matchPattern);if(!n)return null;const r=n[0],o=e.match(yR.parsePattern);if(!o)return null;let i=yR.valueCallback?yR.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(r.length)}}),era:bR({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:bR({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:bR({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:bR({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:bR({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var yR;const wR={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=pR[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:fR,formatRelative:(e,t,n,r)=>mR[e],localize:vR,match:xR,options:{weekStartsOn:0,firstWeekContainsDate:1}};let _R={};function SR(){return _R}Math.pow(10,8);const CR=6048e5,kR=864e5;function jR(e){const t=aR(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ER(e,t){const n=lR(e),r=lR(t),o=+n-jR(n),i=+r-jR(r);return Math.round((o-i)/kR)}function PR(e){const t=aR(e),n=cR(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function TR(e){const t=aR(e);return ER(t,PR(t))+1}function IR(e,t){const n=SR(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=aR(e),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function MR(e){return IR(e,{weekStartsOn:1})}function RR(e){const t=aR(e),n=t.getFullYear(),r=cR(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=MR(r),i=cR(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const s=MR(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function NR(e){const t=RR(e),n=cR(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),MR(n)}function AR(e){const t=aR(e),n=+MR(t)-+NR(t);return Math.round(n/CR)+1}function DR(e,t){const n=aR(e),r=n.getFullYear(),o=SR(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=cR(e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const a=IR(s,t),l=cR(e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const c=IR(l,t);return n.getTime()>=a.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function OR(e,t){const n=SR(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=DR(e,t),i=cR(e,0);i.setFullYear(o,0,r),i.setHours(0,0,0,0);return IR(i,t)}function zR(e,t){const n=aR(e),r=+IR(n,t)-+OR(n,t);return Math.round(r/CR)+1}function LR(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const FR={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return LR("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):LR(n+1,2)},d:(e,t)=>LR(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>LR(e.getHours()%12||12,t.length),H:(e,t)=>LR(e.getHours(),t.length),m:(e,t)=>LR(e.getMinutes(),t.length),s:(e,t)=>LR(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return LR(Math.trunc(r*Math.pow(10,n-3)),t.length)}},BR="midnight",VR="noon",$R="morning",HR="afternoon",WR="evening",UR="night",GR={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return FR.y(e,t)},Y:function(e,t,n,r){const o=DR(e,r),i=o>0?o:1-o;if("YY"===t){return LR(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):LR(i,t.length)},R:function(e,t){return LR(RR(e),t.length)},u:function(e,t){return LR(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return LR(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return LR(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return FR.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return LR(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=zR(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):LR(o,t.length)},I:function(e,t,n){const r=AR(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):LR(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):FR.d(e,t)},D:function(e,t,n){const r=TR(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):LR(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return LR(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return LR(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return LR(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?VR:0===r?BR:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?WR:r>=12?HR:r>=4?$R:UR,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return FR.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):FR.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):LR(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):LR(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):FR.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):FR.s(e,t)},S:function(e,t){return FR.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return YR(r);case"XXXX":case"XX":return qR(r);default:return qR(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return YR(r);case"xxxx":case"xx":return qR(r);default:return qR(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+KR(r,":");default:return"GMT"+qR(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+KR(r,":");default:return"GMT"+qR(r,":")}},t:function(e,t,n){return LR(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return LR(e.getTime(),t.length)}};function KR(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+LR(i,2)}function YR(e,t){if(e%60==0){return(e>0?"-":"+")+LR(Math.abs(e)/60,2)}return qR(e,t)}function qR(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+LR(Math.trunc(r/60),2)+t+LR(r%60,2)}const XR=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},ZR=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},JR={p:ZR,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return XR(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",XR(r,t)).replace("{{time}}",ZR(o,t))}},QR=/^D+$/,eN=/^Y+$/,tN=["D","DD","YY","YYYY"];function nN(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function rN(e){if(!nN(e)&&"number"!=typeof e)return!1;const t=aR(e);return!isNaN(Number(t))}const oN=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,iN=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,sN=/^'([^]*?)'?$/,aN=/''/g,lN=/[a-zA-Z]/;function cN(e,t,n){const r=SR(),o=n?.locale??r.locale??wR,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=aR(e);if(!rN(a))throw new RangeError("Invalid time value");let l=t.match(iN).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,JR[t])(e,o.formatLong)}return e})).join("").match(oN).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:uN(e)};if(GR[t])return{isToken:!0,value:e};if(t.match(lN))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(l=o.localize.preprocessor(a,l));const c={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return l.map((r=>{if(!r.isToken)return r.value;const i=r.value;(!n?.useAdditionalWeekYearTokens&&function(e){return eN.test(e)}(i)||!n?.useAdditionalDayOfYearTokens&&function(e){return QR.test(e)}(i))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),tN.includes(e))throw new RangeError(r)}(i,t,String(e));return(0,GR[i[0]])(a,i,o.localize,c)})).join("")}function uN(e){const t=e.match(sN);return t?t[1].replace(aN,"'"):e}function dN(e,t){const n=aR(e),r=aR(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function pN(e,t){return+aR(e)==+aR(t)}function hN(e,t){return+lR(e)==+lR(t)}function fN(e,t){const n=aR(e);return isNaN(t)?cR(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function mN(e,t){return fN(e,7*t)}function gN(e,t){return mN(e,-t)}function vN(e,t){const n=SR(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=aR(e),i=o.getDay(),s=6+(i<r?-7:0)-(i-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}const bN=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})}),xN=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})}),yN=window.wp.date;const wN=ba("div",{target:"e105ri6r5"})({name:"1khn195",styles:"box-sizing:border-box"}),_N=ba(ry,{target:"e105ri6r4"})("margin-bottom:",ng(4),";"),SN=ba(ok,{target:"e105ri6r3"})("font-size:",bv.fontSize,";font-weight:",bv.fontWeight,";strong{font-weight:",bv.fontWeightHeading,";}"),CN=ba("div",{target:"e105ri6r2"})("column-gap:",ng(2),";display:grid;grid-template-columns:0.5fr repeat( 5, 1fr ) 0.5fr;justify-items:center;row-gap:",ng(2),";"),kN=ba("div",{target:"e105ri6r1"})("color:",Na.gray[700],";font-size:",bv.fontSize,";line-height:",bv.fontLineHeightBase,";&:nth-of-type( 1 ){justify-self:start;}&:nth-of-type( 7 ){justify-self:end;}"),jN=ba(Hx,{shouldForwardProp:e=>!["column","isSelected","isToday","hasEvents"].includes(e),target:"e105ri6r0"})("grid-column:",(e=>e.column),";position:relative;justify-content:center;",(e=>1===e.column&&"\n\t\tjustify-self: start;\n\t\t")," ",(e=>7===e.column&&"\n\t\tjustify-self: end;\n\t\t")," ",(e=>e.disabled&&"\n\t\tpointer-events: none;\n\t\t")," &&&{border-radius:100%;height:",ng(7),";width:",ng(7),";",(e=>e.isSelected&&`\n\t\t\tbackground: ${Na.theme.accent};\n\t\t\tcolor: ${Na.white};\n\t\t\t`)," ",(e=>!e.isSelected&&e.isToday&&`\n\t\t\tbackground: ${Na.gray[200]};\n\t\t\t`),";}",(e=>e.hasEvents&&`\n\t\t::before {\n\t\t\tbackground: ${e.isSelected?Na.white:Na.theme.accent};\n\t\t\tborder-radius: 2px;\n\t\t\tbottom: 2px;\n\t\t\tcontent: " ";\n\t\t\theight: 4px;\n\t\t\tleft: 50%;\n\t\t\tmargin-left: -2px;\n\t\t\tposition: absolute;\n\t\t\twidth: 4px;\n\t\t}\n\t\t`),";");function EN(e){return"string"==typeof e?new Date(e):aR(e)}const PN="yyyy-MM-dd'T'HH:mm:ss";function TN({day:e,column:t,isSelected:n,isFocusable:r,isFocusAllowed:o,isToday:i,isInvalid:s,numEvents:a,onClick:l,onKeyDown:c}){const u=(0,Uo.useRef)();return(0,Uo.useEffect)((()=>{u.current&&r&&o&&u.current.focus()}),[r]),(0,ze.jsx)(jN,{ref:u,className:"components-datetime__date__day",disabled:s,tabIndex:r?0:-1,"aria-label":IN(e,n,a),column:t,isSelected:n,isToday:i,hasEvents:a>0,onClick:l,onKeyDown:c,children:(0,yN.dateI18n)("j",e,-e.getTimezoneOffset())})}function IN(e,t,n){const{formats:r}=(0,yN.getSettings)(),o=(0,yN.dateI18n)(r.date,e,-e.getTimezoneOffset());return t&&n>0?(0,a.sprintf)((0,a._n)("%1$s. Selected. There is %2$d event","%1$s. Selected. There are %2$d events",n),o,n):t?(0,a.sprintf)((0,a.__)("%1$s. Selected"),o):n>0?(0,a.sprintf)((0,a._n)("%1$s. There is %2$d event","%1$s. There are %2$d events",n),o,n):o}const MN=function({currentDate:e,onChange:t,events:n=[],isInvalidDate:r,onMonthPreviewed:o,startOfWeek:i=0}){const s=e?EN(e):new Date,{calendar:l,viewing:c,setSelected:u,setViewing:d,isSelected:p,viewPreviousMonth:h,viewNextMonth:f}=sR({selected:[lR(s)],viewing:lR(s),weekStartsOn:i}),[m,g]=(0,Uo.useState)(lR(s)),[v,b]=(0,Uo.useState)(!1),[x,y]=(0,Uo.useState)(e);return e!==x&&(y(e),u([lR(s)]),d(lR(s)),g(lR(s))),(0,ze.jsxs)(wN,{className:"components-datetime__date",role:"application","aria-label":(0,a.__)("Calendar"),children:[(0,ze.jsxs)(_N,{children:[(0,ze.jsx)(Hx,{icon:(0,a.isRTL)()?bN:xN,variant:"tertiary","aria-label":(0,a.__)("View previous month"),onClick:()=>{h(),g(dR(m,1)),o?.(cN(dR(c,1),PN))}}),(0,ze.jsxs)(SN,{level:3,children:[(0,ze.jsx)("strong",{children:(0,yN.dateI18n)("F",c,-c.getTimezoneOffset())})," ",(0,yN.dateI18n)("Y",c,-c.getTimezoneOffset())]}),(0,ze.jsx)(Hx,{icon:(0,a.isRTL)()?xN:bN,variant:"tertiary","aria-label":(0,a.__)("View next month"),onClick:()=>{f(),g(uR(m,1)),o?.(cN(uR(c,1),PN))}})]}),(0,ze.jsxs)(CN,{onFocus:()=>b(!0),onBlur:()=>b(!1),children:[l[0][0].map((e=>(0,ze.jsx)(kN,{children:(0,yN.dateI18n)("D",e,-e.getTimezoneOffset())},e.toString()))),l[0].map((e=>e.map(((e,i)=>dN(e,c)?(0,ze.jsx)(TN,{day:e,column:i+1,isSelected:p(e),isFocusable:pN(e,m),isFocusAllowed:v,isToday:hN(e,new Date),isInvalid:!!r&&r(e),numEvents:n.filter((t=>hN(t.date,e))).length,onClick:()=>{u([e]),g(e),t?.(cN(new Date(e.getFullYear(),e.getMonth(),e.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),PN))},onKeyDown:t=>{let n;"ArrowLeft"===t.key&&(n=fN(e,(0,a.isRTL)()?1:-1)),"ArrowRight"===t.key&&(n=fN(e,(0,a.isRTL)()?-1:1)),"ArrowUp"===t.key&&(n=gN(e,1)),"ArrowDown"===t.key&&(n=mN(e,1)),"PageUp"===t.key&&(n=dR(e,1)),"PageDown"===t.key&&(n=uR(e,1)),"Home"===t.key&&(n=IR(e)),"End"===t.key&&(n=lR(vN(e))),n&&(t.preventDefault(),g(n),dN(n,c)||(d(n),o?.(cN(n,PN))))}},e.toString()):null))))]})]})};function RN(e){const t=aR(e);return t.setSeconds(0,0),t}function NN(e){const t=aR(e),n=t.getFullYear(),r=t.getMonth(),o=cR(e,0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function AN(e,t){const n=aR(e),r=n.getFullYear(),o=n.getDate(),i=cR(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const s=NN(i);return n.setMonth(t,Math.min(o,s)),n}function DN(e,t){let n=aR(e);return isNaN(+n)?cR(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=AN(n,t.month)),null!=t.date&&n.setDate(t.date),null!=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!=t.seconds&&n.setSeconds(t.seconds),null!=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)}function ON(e,t){const n=aR(e);return n.setHours(t),n}const zN=ba("div",{target:"evcr2319"})("box-sizing:border-box;font-size:",bv.fontSize,";"),LN=ba("fieldset",{target:"evcr2318"})("border:0;margin:0 0 ",ng(4)," 0;padding:0;&:last-child{margin-bottom:0;}"),FN=ba("div",{target:"evcr2317"})({name:"pd0mhc",styles:"direction:ltr;display:flex"}),BN=Ea("&&& ",Jv,"{padding-left:",ng(2),";padding-right:",ng(2),";text-align:center;}",""),VN=ba(sy,{target:"evcr2316"})(BN," width:",ng(9),";&&& ",Jv,"{padding-right:0;}&&& ",Bv,"{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;}"),$N=ba("span",{target:"evcr2315"})("border-top:",bv.borderWidth," solid ",Na.gray[700],";border-bottom:",bv.borderWidth," solid ",Na.gray[700],";line-height:calc(\n\t\t",bv.controlHeight," - ",bv.borderWidth," * 2\n\t);display:inline-block;"),HN=ba(sy,{target:"evcr2314"})(BN," width:",ng(9),";&&& ",Jv,"{padding-left:0;}&&& ",Bv,"{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;}"),WN=ba("div",{target:"evcr2313"})({name:"1ff36h2",styles:"flex-grow:1"}),UN=ba(sy,{target:"evcr2312"})(BN," width:",ng(9),";"),GN=ba(sy,{target:"evcr2311"})(BN," width:",ng(14),";"),KN=ba("div",{target:"evcr2310"})({name:"ebu3jh",styles:"text-decoration:underline dotted"}),YN=()=>{const{timezone:e}=(0,yN.getSettings)(),t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;const n=Number(e.offset)>=0?"+":"",r=""!==e.abbr&&isNaN(Number(e.abbr))?e.abbr:`UTC${n}${e.offsetFormatted}`,o=e.string.replace("_"," "),i="UTC"===e.string?(0,a.__)("Coordinated Universal Time"):`(${r}) ${o}`;return 0===o.trim().length?(0,ze.jsx)(KN,{className:"components-datetime__timezone",children:r}):(0,ze.jsx)(ri,{placement:"top",text:i,children:(0,ze.jsx)(KN,{className:"components-datetime__timezone",children:r})})};function qN(e,t){return t?(e%12+12)%24:e%12}function XN(e){return(t,n)=>{const r={...t};return n.type!==sx&&n.type!==fx&&n.type!==px||void 0!==r.value&&(r.value=r.value.toString().padStart(e,"0")),r}}const ZN=function({is12Hour:e,currentTime:t,onChange:n}){const[r,o]=(0,Uo.useState)((()=>t?RN(EN(t)):new Date));(0,Uo.useEffect)((()=>{o(t?RN(EN(t)):new Date)}),[t]);const{day:i,month:s,year:l,minutes:c,hours:u,am:d}=(0,Uo.useMemo)((()=>({day:cN(r,"dd"),month:cN(r,"MM"),year:cN(r,"yyyy"),minutes:cN(r,"mm"),hours:cN(r,e?"hh":"HH"),am:cN(r,"a")})),[r,e]),p=t=>(i,{event:s})=>{var a;const l=null!==(a=s.target?.ownerDocument.defaultView?.HTMLInputElement)&&void 0!==a?a:HTMLInputElement;if(!(s.target instanceof l))return;if(!s.target.validity.valid)return;let c=Number(i);"hours"===t&&e&&(c=qN(c,"PM"===d));const u=DN(r,{[t]:c});o(u),n?.(cN(u,PN))};function h(e){return()=>{if(d===e)return;const t=parseInt(u,10),i=ON(r,qN(t,"PM"===e));o(i),n?.(cN(i,PN))}}const f=(0,ze.jsx)(UN,{className:"components-datetime__time-field components-datetime__time-field-day",label:(0,a.__)("Day"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:i,step:1,min:1,max:31,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("date")}),m=(0,ze.jsx)(WN,{children:(0,ze.jsx)(J_,{className:"components-datetime__time-field components-datetime__time-field-month",label:(0,a.__)("Month"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,value:s,options:[{value:"01",label:(0,a.__)("January")},{value:"02",label:(0,a.__)("February")},{value:"03",label:(0,a.__)("March")},{value:"04",label:(0,a.__)("April")},{value:"05",label:(0,a.__)("May")},{value:"06",label:(0,a.__)("June")},{value:"07",label:(0,a.__)("July")},{value:"08",label:(0,a.__)("August")},{value:"09",label:(0,a.__)("September")},{value:"10",label:(0,a.__)("October")},{value:"11",label:(0,a.__)("November")},{value:"12",label:(0,a.__)("December")}],onChange:e=>{const t=AN(r,Number(e)-1);o(t),n?.(cN(t,PN))}})});return(0,ze.jsxs)(zN,{className:"components-datetime__time",children:[(0,ze.jsxs)(LN,{children:[(0,ze.jsx)(Dx.VisualLabel,{as:"legend",className:"components-datetime__time-legend",children:(0,a.__)("Time")}),(0,ze.jsxs)(ry,{className:"components-datetime__time-wrapper",children:[(0,ze.jsxs)(FN,{className:"components-datetime__time-field components-datetime__time-field-time",children:[(0,ze.jsx)(VN,{className:"components-datetime__time-field-hours-input",label:(0,a.__)("Hours"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:u,step:1,min:e?1:0,max:e?12:23,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("hours"),__unstableStateReducer:XN(2)}),(0,ze.jsx)($N,{className:"components-datetime__time-separator","aria-hidden":"true",children:":"}),(0,ze.jsx)(HN,{className:"components-datetime__time-field-minutes-input",label:(0,a.__)("Minutes"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:c,step:1,min:0,max:59,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("minutes"),__unstableStateReducer:XN(2)})]}),e&&(0,ze.jsxs)(Qj,{className:"components-datetime__time-field components-datetime__time-field-am-pm",children:[(0,ze.jsx)(Hx,{className:"components-datetime__time-am-button",variant:"AM"===d?"primary":"secondary",__next40pxDefaultSize:!0,onClick:h("AM"),children:(0,a.__)("AM")}),(0,ze.jsx)(Hx,{className:"components-datetime__time-pm-button",variant:"PM"===d?"primary":"secondary",__next40pxDefaultSize:!0,onClick:h("PM"),children:(0,a.__)("PM")})]}),(0,ze.jsx)(Sg,{}),(0,ze.jsx)(YN,{})]})]}),(0,ze.jsxs)(LN,{children:[(0,ze.jsx)(Dx.VisualLabel,{as:"legend",className:"components-datetime__time-legend",children:(0,a.__)("Date")}),(0,ze.jsxs)(ry,{className:"components-datetime__time-wrapper",children:[e?(0,ze.jsxs)(ze.Fragment,{children:[m,f]}):(0,ze.jsxs)(ze.Fragment,{children:[f,m]}),(0,ze.jsx)(GN,{className:"components-datetime__time-field components-datetime__time-field-year",label:(0,a.__)("Year"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:l,step:1,min:1,max:9999,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("year"),__unstableStateReducer:XN(4)})]})]})]})};const JN=ba(tk,{target:"e1p5onf00"})({name:"1khn195",styles:"box-sizing:border-box"}),QN=()=>{};const eA=(0,Uo.forwardRef)((function({currentDate:e,is12Hour:t,isInvalidDate:n,onMonthPreviewed:r=QN,onChange:o,events:i,startOfWeek:s},a){return(0,ze.jsx)(JN,{ref:a,className:"components-datetime",spacing:4,children:(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(ZN,{currentTime:e,onChange:o,is12Hour:t}),(0,ze.jsx)(MN,{currentDate:e,onChange:o,isInvalidDate:n,events:i,onMonthPreviewed:r,startOfWeek:s})]})})})),tA=eA,nA=[{name:(0,a._x)("None","Size of a UI element"),slug:"none"},{name:(0,a._x)("Small","Size of a UI element"),slug:"small"},{name:(0,a._x)("Medium","Size of a UI element"),slug:"medium"},{name:(0,a._x)("Large","Size of a UI element"),slug:"large"},{name:(0,a._x)("Extra Large","Size of a UI element"),slug:"xlarge"}];const rA=function(e){const{__next40pxDefaultSize:t=!1,label:n,value:r,sizes:o=nA,icon:i,onChange:l,className:c=""}=e,u=(0,ze.jsxs)(ze.Fragment,{children:[i&&(0,ze.jsx)(Bx,{icon:i}),n]});return(0,ze.jsx)(J_,{__next40pxDefaultSize:t,className:s(c,"block-editor-dimension-control"),label:u,hideLabelFromVision:!1,value:r,onChange:e=>{const t=((e,t)=>e.find((e=>t===e.slug)))(o,e);t&&r!==t.slug?"function"==typeof l&&l(t.slug):l?.(void 0)},options:(e=>{const t=e.map((({name:e,slug:t})=>({label:e,value:t})));return[{label:(0,a.__)("Default"),value:""},...t]})(o)})};const oA={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},iA=(0,Uo.createContext)(!1),{Consumer:sA,Provider:aA}=iA;function lA({className:e,children:t,isDisabled:n=!0,...r}){const o=na();return(0,ze.jsx)(aA,{value:n,children:(0,ze.jsx)("div",{inert:n?"true":void 0,className:n?o(oA,e,"components-disabled"):void 0,...r,children:t})})}lA.Context=iA,lA.Consumer=sA;const cA=lA,uA=(0,Uo.forwardRef)((({visible:e,children:t,...n},r)=>{const o=Xt({open:e});return(0,ze.jsx)(Zn,{store:o,ref:r,...n,children:t})})),dA="is-dragging-components-draggable";const pA=function({children:e,onDragStart:t,onDragOver:n,onDragEnd:r,appendToOwnerDocument:o=!1,cloneClassname:i,elementId:s,transferData:a,__experimentalTransferDataType:c="text",__experimentalDragComponent:u}){const d=(0,Uo.useRef)(null),p=(0,Uo.useRef)((()=>{}));return(0,Uo.useEffect)((()=>()=>{p.current()}),[]),(0,ze.jsxs)(ze.Fragment,{children:[e({onDraggableStart:function(e){const{ownerDocument:r}=e.target;e.dataTransfer.setData(c,JSON.stringify(a));const u=r.createElement("div");u.style.top="0",u.style.left="0";const h=r.createElement("div");"function"==typeof e.dataTransfer.setDragImage&&(h.classList.add("components-draggable__invisible-drag-image"),r.body.appendChild(h),e.dataTransfer.setDragImage(h,0,0)),u.classList.add("components-draggable__clone"),i&&u.classList.add(i);let f=0,m=0;if(d.current){f=e.clientX,m=e.clientY,u.style.transform=`translate( ${f}px, ${m}px )`;const t=r.createElement("div");t.innerHTML=d.current.innerHTML,u.appendChild(t),r.body.appendChild(u)}else{const e=r.getElementById(s),t=e.getBoundingClientRect(),n=e.parentNode,i=t.top,a=t.left;u.style.width=`${t.width+0}px`;const l=e.cloneNode(!0);l.id=`clone-${s}`,f=a-0,m=i-0,u.style.transform=`translate( ${f}px, ${m}px )`,Array.from(l.querySelectorAll("iframe")).forEach((e=>e.parentNode?.removeChild(e))),u.appendChild(l),o?r.body.appendChild(u):n?.appendChild(u)}let g=e.clientX,v=e.clientY;const b=(0,l.throttle)((function(e){if(g===e.clientX&&v===e.clientY)return;const t=f+e.clientX-g,r=m+e.clientY-v;u.style.transform=`translate( ${t}px, ${r}px )`,g=e.clientX,v=e.clientY,f=t,m=r,n&&n(e)}),16);r.addEventListener("dragover",b),r.body.classList.add(dA),t&&t(e),p.current=()=>{u&&u.parentNode&&u.parentNode.removeChild(u),h&&h.parentNode&&h.parentNode.removeChild(h),r.body.classList.remove(dA),r.removeEventListener("dragover",b)}},onDraggableEnd:function(e){e.preventDefault(),p.current(),r&&r(e)}}),u&&(0,ze.jsx)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:d,children:u})]})},hA=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})}),fA={hidden:{opacity:0},show:{opacity:1,transition:{type:"tween",duration:.2,delay:0,delayChildren:.1}},exit:{opacity:0,transition:{duration:.2,delayChildren:0}}},mA={hidden:{opacity:0,scale:.9},show:{opacity:1,scale:1,transition:{duration:.1}},exit:{opacity:0,scale:.9}};function gA({label:e}){const t=(0,l.useReducedMotion)(),n=(0,ze.jsx)(Hm.div,{variants:fA,initial:t?"show":"hidden",animate:"show",exit:t?"show":"exit",className:"components-drop-zone__content",style:{pointerEvents:"none"},children:(0,ze.jsxs)(Hm.div,{variants:mA,children:[(0,ze.jsx)(Y_,{icon:hA,className:"components-drop-zone__content-icon"}),(0,ze.jsx)("span",{className:"components-drop-zone__content-text",children:e||(0,a.__)("Drop files to upload")})]})});return t?n:(0,ze.jsx)(Zm,{children:n})}const vA=function({className:e,label:t,onFilesDrop:n,onHTMLDrop:r,onDrop:o,...i}){const[a,c]=(0,Uo.useState)(),[u,d]=(0,Uo.useState)(),[p,h]=(0,Uo.useState)(),f=(0,l.__experimentalUseDropZone)({onDrop(e){const t=e.dataTransfer?(0,uT.getFilesFromDataTransfer)(e.dataTransfer):[],i=e.dataTransfer?.getData("text/html");i&&r?r(i):t.length&&n?n(t):o&&o(e)},onDragStart(e){c(!0);let t="default";e.dataTransfer?.types.includes("text/html")?t="html":(e.dataTransfer?.types.includes("Files")||(e.dataTransfer?(0,uT.getFilesFromDataTransfer)(e.dataTransfer):[]).length>0)&&(t="file"),h(t)},onDragEnd(){c(!1),h(void 0)},onDragEnter(){d(!0)},onDragLeave(){d(!1)}}),m=s("components-drop-zone",e,{"is-active":(a||u)&&("file"===p&&n||"html"===p&&r||"default"===p&&o),"is-dragging-over-document":a,"is-dragging-over-element":u,[`is-dragging-${p}`]:!!p});return(0,ze.jsx)("div",{...i,ref:f,className:m,children:u&&(0,ze.jsx)(gA,{label:t})})};function bA({children:e}){return Ko()("wp.components.DropZoneProvider",{since:"5.8",hint:"wp.component.DropZone no longer needs a provider. wp.components.DropZoneProvider is safe to remove from your code."}),e}const xA=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"})});function yA(e=[],t="90deg"){const n=100/e.length,r=e.map(((e,t)=>`${e} ${t*n}%, ${e} ${(t+1)*n}%`)).join(", ");return`linear-gradient( ${t}, ${r} )`}cv([uv]);const wA=function({values:e}){return e?(0,ze.jsx)(A_,{colorValue:yA(e,"135deg")}):(0,ze.jsx)(Bx,{icon:xA})};function _A({label:e,value:t,colors:n,disableCustomColors:r,enableAlpha:o,onChange:i}){const[s,c]=(0,Uo.useState)(!1),u=(0,l.useInstanceId)(_A,"color-list-picker-option"),d=`${u}__label`,p=`${u}__content`;return(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(Hx,{className:"components-color-list-picker__swatch-button",onClick:()=>c((e=>!e)),"aria-expanded":s,"aria-controls":p,children:(0,ze.jsxs)(ry,{justify:"flex-start",spacing:2,children:[t?(0,ze.jsx)(A_,{colorValue:t,className:"components-color-list-picker__swatch-color"}):(0,ze.jsx)(Bx,{icon:xA}),(0,ze.jsx)("span",{id:d,children:e})]})}),(0,ze.jsx)("div",{role:"group",id:p,"aria-labelledby":d,"aria-hidden":!s,children:s&&(0,ze.jsx)(fk,{"aria-label":(0,a.__)("Color options"),className:"components-color-list-picker__color-picker",colors:n,value:t,clearable:!1,onChange:i,disableCustomColors:r,enableAlpha:o})})]})}const SA=function({colors:e,labels:t,value:n=[],disableCustomColors:r,enableAlpha:o,onChange:i}){return(0,ze.jsx)("div",{className:"components-color-list-picker",children:t.map(((t,s)=>(0,ze.jsx)(_A,{label:t,value:n[s],colors:e,disableCustomColors:r,enableAlpha:o,onChange:e=>{const t=n.slice();t[s]=e,i(t)}},s)))})},CA=["#333","#CCC"];function kA({value:e,onChange:t}){const n=!!e,r=n?e:CA,o=yA(r),i=(s=r).map(((e,t)=>({position:100*t/(s.length-1),color:e})));var s;return(0,ze.jsx)(HP,{disableInserter:!0,background:o,hasGradient:n,value:i,onChange:e=>{const n=function(e=[]){return e.map((({color:e})=>e))}(e);t(n)}})}const jA=function({asButtons:e,loop:t,clearable:n=!0,unsetable:r=!0,colorPalette:o,duotonePalette:i,disableCustomColors:s,disableCustomDuotone:l,value:c,onChange:u,"aria-label":d,"aria-labelledby":p,...h}){const[f,m]=(0,Uo.useMemo)((()=>{return!(e=o)||e.length<2?["#000","#fff"]:e.map((({color:e})=>({color:e,brightness:av(e).brightness()}))).reduce((([e,t],n)=>[n.brightness<=e.brightness?n:e,n.brightness>=t.brightness?n:t]),[{brightness:1,color:""},{brightness:0,color:""}]).map((({color:e})=>e));var e}),[o]),g="unset"===c,v=(0,a.__)("Unset"),b=(0,ze.jsx)(ek.Option,{value:"unset",isSelected:g,tooltipText:v,"aria-label":v,className:"components-duotone-picker__color-indicator",onClick:()=>{u(g?void 0:"unset")}},"unset"),x=i.map((({colors:e,slug:t,name:n})=>{const r={background:yA(e,"135deg"),color:"transparent"},o=null!=n?n:(0,a.sprintf)((0,a.__)("Duotone code: %s"),t),i=n?(0,a.sprintf)((0,a.__)("Duotone: %s"),n):o,s=ai()(e,c);return(0,ze.jsx)(ek.Option,{value:e,isSelected:s,"aria-label":i,tooltipText:o,style:r,onClick:()=>{u(s?void 0:e)}},t)}));let y;if(e)y={asButtons:!0};else{const e={asButtons:!1,loop:t};y=d?{...e,"aria-label":d}:p?{...e,"aria-labelledby":p}:{...e,"aria-label":(0,a.__)("Custom color picker.")}}const w=r?[b,...x]:x;return(0,ze.jsx)(ek,{...h,...y,options:w,actions:!!n&&(0,ze.jsx)(ek.ButtonAction,{onClick:()=>u(void 0),children:(0,a.__)("Clear")}),children:(0,ze.jsx)(Sg,{paddingTop:0===w.length?0:4,children:(0,ze.jsxs)(tk,{spacing:3,children:[!s&&!l&&(0,ze.jsx)(kA,{value:g?void 0:c,onChange:u}),!l&&(0,ze.jsx)(SA,{labels:[(0,a.__)("Shadows"),(0,a.__)("Highlights")],colors:o,value:g?void 0:c,disableCustomColors:s,enableAlpha:!0,onChange:e=>{e[0]||(e[0]=f),e[1]||(e[1]=m);const t=e.length>=2?e:void 0;u(t)}})]})})})};const EA=(0,Uo.forwardRef)((function(e,t){const{href:n,children:r,className:o,rel:i="",...l}=e,c=[...new Set([...i.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),u=s("components-external-link",o),d=!!n?.startsWith("#");return(0,ze.jsxs)("a",{...l,className:u,href:n,onClick:t=>{d&&t.preventDefault(),e.onClick&&e.onClick(t)},target:"_blank",rel:c,ref:t,children:[(0,ze.jsx)("span",{className:"components-external-link__contents",children:r}),(0,ze.jsx)("span",{className:"components-external-link__icon","aria-label":(0,a.__)("(opens in a new tab)"),children:"↗"})]})})),PA={width:200,height:170},TA=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function IA(e){return Math.round(100*e)}const MA=ba("div",{target:"eeew7dm8"})({name:"jqnsxy",styles:"background-color:transparent;display:flex;text-align:center;width:100%"}),RA=ba("div",{target:"eeew7dm7"})("align-items:center;border-radius:",bv.radiusBlockUi,";cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;&:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 1px rgba( 0, 0, 0, 0.1 );content:'';left:0;pointer-events:none;position:absolute;right:0;top:0;}img,video{border-radius:inherit;box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"),NA=ba("div",{target:"eeew7dm6"})("background:",Na.gray[100],";border-radius:inherit;box-sizing:border-box;height:",PA.height,"px;max-width:280px;min-width:",PA.width,"px;width:100%;"),AA=ba(Wk,{target:"eeew7dm5"})({name:"1d3w5wq",styles:"width:100%"});var DA={name:"1mn7kwb",styles:"padding-bottom:1em"};const OA=({__nextHasNoMarginBottom:e})=>e?void 0:DA;var zA={name:"1mn7kwb",styles:"padding-bottom:1em"};const LA=({hasHelpText:e=!1})=>e?zA:void 0,FA=ba(dg,{target:"eeew7dm4"})("max-width:320px;padding-top:1em;",LA," ",OA,";"),BA=ba("div",{target:"eeew7dm3"})("left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );z-index:1;@media not ( prefers-reduced-motion ){transition:opacity 100ms linear;}opacity:",(({showOverlay:e})=>e?1:0),";"),VA=ba("div",{target:"eeew7dm2"})({name:"1yzbo24",styles:"background:rgba( 255, 255, 255, 0.4 );backdrop-filter:blur( 16px ) saturate( 180% );position:absolute;transform:translateZ( 0 )"}),$A=ba(VA,{target:"eeew7dm1"})({name:"1sw8ur",styles:"height:1px;left:1px;right:1px"}),HA=ba(VA,{target:"eeew7dm0"})({name:"188vg4t",styles:"width:1px;top:1px;bottom:1px"}),WA=0,UA=100,GA=()=>{};function KA({__nextHasNoMarginBottom:e,__next40pxDefaultSize:t,hasHelpText:n,onChange:r=GA,point:o={x:.5,y:.5}}){const i=IA(o.x),s=IA(o.y),l=(e,t)=>{if(void 0===e)return;const n=parseInt(e,10);isNaN(n)||r({...o,[t]:n/100})};return(0,ze.jsxs)(FA,{className:"focal-point-picker__controls",__nextHasNoMarginBottom:e,hasHelpText:n,gap:4,children:[(0,ze.jsx)(YA,{__next40pxDefaultSize:t,label:(0,a.__)("Left"),"aria-label":(0,a.__)("Focal point left position"),value:[i,"%"].join(""),onChange:e=>l(e,"x"),dragDirection:"e"}),(0,ze.jsx)(YA,{__next40pxDefaultSize:t,label:(0,a.__)("Top"),"aria-label":(0,a.__)("Focal point top position"),value:[s,"%"].join(""),onChange:e=>l(e,"y"),dragDirection:"s"})]})}function YA(e){return(0,ze.jsx)(AA,{className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:UA,min:WA,units:[{value:"%",label:"%"}],...e})}const qA=ba("div",{target:"e19snlhg0"})("background-color:transparent;cursor:grab;height:40px;margin:-20px 0 0 -20px;position:absolute;user-select:none;width:40px;will-change:transform;z-index:10000;background:rgba( 255, 255, 255, 0.4 );border:1px solid rgba( 255, 255, 255, 0.4 );border-radius:50%;backdrop-filter:blur( 16px ) saturate( 180% );box-shadow:rgb( 0 0 0 / 10% ) 0px 0px 8px;@media not ( prefers-reduced-motion ){transition:transform 100ms linear;}",(({isDragging:e})=>e&&"\n\t\t\tbox-shadow: rgb( 0 0 0 / 12% ) 0px 0px 10px;\n\t\t\ttransform: scale( 1.1 );\n\t\t\tcursor: grabbing;\n\t\t\t"),";");function XA({left:e="50%",top:t="50%",...n}){const r={left:e,top:t};return(0,ze.jsx)(qA,{...n,className:"components-focal-point-picker__icon_container",style:r})}function ZA({bounds:e,...t}){return(0,ze.jsxs)(BA,{...t,className:"components-focal-point-picker__grid",style:{width:e.width,height:e.height},children:[(0,ze.jsx)($A,{style:{top:"33%"}}),(0,ze.jsx)($A,{style:{top:"66%"}}),(0,ze.jsx)(HA,{style:{left:"33%"}}),(0,ze.jsx)(HA,{style:{left:"66%"}})]})}function JA({alt:e,autoPlay:t,src:n,onLoad:r,mediaRef:o,muted:i=!0,...s}){if(!n)return(0,ze.jsx)(NA,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",ref:o,...s});return function(e=""){return!!e&&(e.startsWith("data:video/")||TA.includes(function(e=""){const t=e.split(".");return t[t.length-1]}(e)))}(n)?(0,ze.jsx)("video",{...s,autoPlay:t,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:i,onLoadedData:r,ref:o,src:n}):(0,ze.jsx)("img",{...s,alt:e,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:r,ref:o,src:n})}const QA=function e({__nextHasNoMarginBottom:t,__next40pxDefaultSize:n=!1,autoPlay:r=!0,className:o,help:i,label:c,onChange:u,onDrag:d,onDragEnd:p,onDragStart:h,resolvePoint:f,url:m,value:g={x:.5,y:.5},...v}){const[b,x]=(0,Uo.useState)(g),[y,w]=(0,Uo.useState)(!1),{startDrag:_,endDrag:S,isDragging:C}=(0,l.__experimentalUseDragging)({onDragStart:e=>{E.current?.focus();const t=M(e);t&&(h?.(t,e),x(t))},onDragMove:e=>{e.preventDefault();const t=M(e);t&&(d?.(t,e),x(t))},onDragEnd:()=>{p?.(),u?.(b)}}),{x:k,y:j}=C?b:g,E=(0,Uo.useRef)(null),[P,T]=(0,Uo.useState)(PA),I=(0,Uo.useRef)((()=>{if(!E.current)return;const{clientWidth:e,clientHeight:t}=E.current;T(e>0&&t>0?{width:e,height:t}:{...PA})}));(0,Uo.useEffect)((()=>{const e=I.current;if(!E.current)return;const{defaultView:t}=E.current.ownerDocument;return t?.addEventListener("resize",e),()=>t?.removeEventListener("resize",e)}),[]),(0,l.useIsomorphicLayoutEffect)((()=>{I.current()}),[]);const M=({clientX:e,clientY:t,shiftKey:n})=>{if(!E.current)return;const{top:r,left:o}=E.current.getBoundingClientRect();let i=(e-o)/P.width,s=(t-r)/P.height;return n&&(i=.1*Math.round(i/.1),s=.1*Math.round(s/.1)),R({x:i,y:s})},R=e=>{var t;const n=null!==(t=f?.(e))&&void 0!==t?t:e;n.x=Math.max(0,Math.min(n.x,1)),n.y=Math.max(0,Math.min(n.y,1));const r=e=>Math.round(100*e)/100;return{x:r(n.x),y:r(n.y)}},N={left:void 0!==k?k*P.width:.5*P.width,top:void 0!==j?j*P.height:.5*P.height},A=s("components-focal-point-picker-control",o),D=`inspector-focal-point-picker-control-${(0,l.useInstanceId)(e)}`;return ui((()=>{w(!0);const e=window.setTimeout((()=>{w(!1)}),600);return()=>window.clearTimeout(e)}),[k,j]),(0,ze.jsxs)(Dx,{...v,__nextHasNoMarginBottom:t,label:c,id:D,help:i,className:A,children:[(0,ze.jsx)(MA,{className:"components-focal-point-picker-wrapper",children:(0,ze.jsxs)(RA,{className:"components-focal-point-picker",onKeyDown:e=>{const{code:t,shiftKey:n}=e;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t))return;e.preventDefault();const r={x:k,y:j},o=n?.1:.01,i="ArrowUp"===t||"ArrowLeft"===t?-1*o:o,s="ArrowUp"===t||"ArrowDown"===t?"y":"x";r[s]=r[s]+i,u?.(R(r))},onMouseDown:_,onBlur:()=>{C&&S()},ref:E,role:"button",tabIndex:-1,children:[(0,ze.jsx)(ZA,{bounds:P,showOverlay:y}),(0,ze.jsx)(JA,{alt:(0,a.__)("Media preview"),autoPlay:r,onLoad:I.current,src:m}),(0,ze.jsx)(XA,{...N,isDragging:C})]})}),(0,ze.jsx)(KA,{__nextHasNoMarginBottom:t,__next40pxDefaultSize:n,hasHelpText:!!i,point:{x:k,y:j},onChange:e=>{u?.(R(e))}})]})};function eD({iframeRef:e,...t}){const n=(0,l.useMergeRefs)([e,(0,l.useFocusableIframe)()]);return Ko()("wp.components.FocusableIframe",{since:"5.9",alternative:"wp.compose.useFocusableIframe"}),(0,ze.jsx)("iframe",{ref:n,...t})}const tD=(0,ze.jsxs)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,ze.jsx)(n.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,ze.jsx)(n.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]});function nD(e){const[t,...n]=e;if(!t)return null;const[,r]=zk(t.size);return n.every((e=>{const[,t]=zk(e.size);return t===r}))?r:null}const rD=ba("fieldset",{target:"e8tqeku4"})({name:"1t1ytme",styles:"border:0;margin:0;padding:0"}),oD=ba(ry,{target:"e8tqeku3"})("height:",ng(4),";"),iD=ba(Hx,{target:"e8tqeku2"})("margin-top:",ng(-1),";"),sD=ba(Dx.VisualLabel,{target:"e8tqeku1"})("display:flex;gap:",ng(1),";justify-content:flex-start;margin-bottom:0;"),aD=ba("span",{target:"e8tqeku0"})("color:",Na.gray[700],";"),lD={key:"default",name:(0,a.__)("Default"),value:void 0},cD={key:"custom",name:(0,a.__)("Custom")},uD=e=>{var t;const{__next40pxDefaultSize:n,fontSizes:r,value:o,disableCustomFontSizes:i,size:s,onChange:l,onSelectCustom:c}=e,u=!!nD(r),d=[lD,...r.map((e=>{let t;if(u){const[n]=zk(e.size);void 0!==n&&(t=String(n))}else(function(e){return/^[\d\.]+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i.test(String(e))})(e.size)&&(t=String(e.size));return{key:e.slug,name:e.name||e.slug,value:e.size,__experimentalHint:t}})),...i?[]:[cD]],p=o?null!==(t=d.find((e=>e.value===o)))&&void 0!==t?t:cD:lD;return(0,ze.jsx)(FM,{__next40pxDefaultSize:n,className:"components-font-size-picker__select",label:(0,a.__)("Font size"),hideLabelFromVision:!0,describedBy:(0,a.sprintf)((0,a.__)("Currently selected font size: %s"),p.name),options:d,value:p,__experimentalShowSelectedHint:!0,onChange:({selectedItem:e})=>{e===cD?c():l(e.value)},size:s})};const dD=(0,Uo.forwardRef)((function(e,t){const{label:n,...r}=e,o=r["aria-label"]||n;return(0,ze.jsx)(T_,{...r,"aria-label":o,ref:t,children:n})})),pD=[(0,a.__)("S"),(0,a.__)("M"),(0,a.__)("L"),(0,a.__)("XL"),(0,a.__)("XXL")],hD=[(0,a.__)("Small"),(0,a.__)("Medium"),(0,a.__)("Large"),(0,a.__)("Extra Large"),(0,a.__)("Extra Extra Large")],fD=e=>{const{fontSizes:t,value:n,__next40pxDefaultSize:r,size:o,onChange:i}=e;return(0,ze.jsx)(h_,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:r,label:(0,a.__)("Font size"),hideLabelFromVision:!0,value:n,onChange:i,isBlock:!0,size:o,children:t.map(((e,t)=>(0,ze.jsx)(dD,{value:e.size,label:pD[t],"aria-label":e.name||hD[t],showTooltip:!0},e.slug)))})},mD=["px","em","rem","vw","vh"],gD=(0,Uo.forwardRef)(((e,t)=>{const{__next40pxDefaultSize:n=!1,fallbackFontSize:r,fontSizes:o=[],disableCustomFontSizes:i=!1,onChange:s,size:l="default",units:c=mD,value:u,withSlider:d=!1,withReset:p=!0}=e,h=Lk({availableUnits:c}),f=o.length>5,m=o.find((e=>e.size===u)),g=!!u&&!m,[v,b]=(0,Uo.useState)(!i&&g),x=(0,Uo.useMemo)((()=>{if(v)return(0,a.__)("Custom");if(!f)return m?m.name||hD[o.indexOf(m)]:"";const e=nD(o);return e?`(${e})`:""}),[v,f,m,o]);if(0===o.length&&i)return null;const y="string"==typeof u||"string"==typeof o[0]?.size,[w,_]=zk(u,h),S=!!_&&["em","rem","vw","vh"].includes(_),C=void 0===u;return(0,ze.jsxs)(rD,{ref:t,className:"components-font-size-picker",children:[(0,ze.jsx)(wa,{as:"legend",children:(0,a.__)("Font size")}),(0,ze.jsx)(Sg,{children:(0,ze.jsxs)(oD,{className:"components-font-size-picker__header",children:[(0,ze.jsxs)(sD,{"aria-label":`${(0,a.__)("Size")} ${x||""}`,children:[(0,a.__)("Size"),x&&(0,ze.jsx)(aD,{className:"components-font-size-picker__header__hint",children:x})]}),!i&&(0,ze.jsx)(iD,{label:v?(0,a.__)("Use size preset"):(0,a.__)("Set custom size"),icon:tD,onClick:()=>{b(!v)},isPressed:v,size:"small"})]})}),(0,ze.jsxs)("div",{children:[!!o.length&&f&&!v&&(0,ze.jsx)(uD,{__next40pxDefaultSize:n,fontSizes:o,value:u,disableCustomFontSizes:i,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(y?e:Number(e),o.find((t=>t.size===e)))},onSelectCustom:()=>b(!0)}),!f&&!v&&(0,ze.jsx)(fD,{fontSizes:o,value:u,__next40pxDefaultSize:n,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(y?e:Number(e),o.find((t=>t.size===e)))}}),!i&&v&&(0,ze.jsxs)(dg,{className:"components-font-size-picker__custom-size-control",children:[(0,ze.jsx)(jg,{isBlock:!0,children:(0,ze.jsx)(Wk,{__next40pxDefaultSize:n,label:(0,a.__)("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:u,onChange:e=>{s?.(void 0===e?void 0:y?e:parseInt(e,10))},size:l,units:y?h:[],min:0})}),d&&(0,ze.jsx)(jg,{isBlock:!0,children:(0,ze.jsx)(Sg,{marginX:2,marginBottom:0,children:(0,ze.jsx)(BS,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:n,className:"components-font-size-picker__custom-input",label:(0,a.__)("Custom Size"),hideLabelFromVision:!0,value:w,initialPosition:r,withInputField:!1,onChange:e=>{s?.(void 0===e?void 0:y?e+(null!=_?_:"px"):e)},min:0,max:S?10:100,step:S?.1:1})})}),p&&(0,ze.jsx)(jg,{children:(0,ze.jsx)($x,{disabled:C,__experimentalIsFocusable:!0,onClick:()=>{s?.(void 0)},variant:"secondary",__next40pxDefaultSize:!0,size:"__unstable-large"===l||e.__next40pxDefaultSize?"default":"small",children:(0,a.__)("Reset")})})]})]})]})})),vD=gD;const bD=function({accept:e,children:t,multiple:n=!1,onChange:r,onClick:o,render:i,...s}){const a=(0,Uo.useRef)(null),l=()=>{a.current?.click()},c=i?i({openFileDialog:l}):(0,ze.jsx)(Hx,{onClick:l,...s,children:t});return(0,ze.jsxs)("div",{className:"components-form-file-upload",children:[c,(0,ze.jsx)("input",{type:"file",ref:a,multiple:n,style:{display:"none"},accept:e,onChange:r,onClick:o,"data-testid":"form-file-upload-input"})]})},xD=()=>{};const yD=(0,Uo.forwardRef)((function(e,t){const{className:n,checked:r,id:o,disabled:i,onChange:a=xD,...l}=e,c=s("components-form-toggle",n,{"is-checked":r,"is-disabled":i});return(0,ze.jsxs)("span",{className:c,children:[(0,ze.jsx)("input",{className:"components-form-toggle__input",id:o,type:"checkbox",checked:r,onChange:a,disabled:i,...l,ref:t}),(0,ze.jsx)("span",{className:"components-form-toggle__track"}),(0,ze.jsx)("span",{className:"components-form-toggle__thumb"})]})})),wD=()=>{};function _D({value:e,status:t,title:n,displayTransform:r,isBorderless:o=!1,disabled:i=!1,onClickRemove:c=wD,onMouseEnter:u,onMouseLeave:d,messages:p,termPosition:h,termsCount:f}){const m=(0,l.useInstanceId)(_D),g=s("components-form-token-field__token",{"is-error":"error"===t,"is-success":"success"===t,"is-validating":"validating"===t,"is-borderless":o,"is-disabled":i}),v=r(e),b=(0,a.sprintf)((0,a.__)("%1$s (%2$s of %3$s)"),v,h,f);return(0,ze.jsxs)("span",{className:g,onMouseEnter:u,onMouseLeave:d,title:n,children:[(0,ze.jsxs)("span",{className:"components-form-token-field__token-text",id:`components-form-token-field__token-text-${m}`,children:[(0,ze.jsx)(wa,{as:"span",children:b}),(0,ze.jsx)("span",{"aria-hidden":"true",children:v})]}),(0,ze.jsx)(Hx,{className:"components-form-token-field__remove-token",icon:zw,onClick:i?void 0:()=>c({value:e}),disabled:i,label:p.remove,"aria-describedby":`components-form-token-field__token-text-${m}`})]})}const SD=({__next40pxDefaultSize:e,hasTokens:t})=>!e&&Ea("padding-top:",ng(t?1:.5),";padding-bottom:",ng(t?1:.5),";",""),CD=ba(dg,{target:"ehq8nmi0"})("padding:7px;",Sx," ",SD,";"),kD=e=>e;const jD=function e(t){const{autoCapitalize:n,autoComplete:r,maxLength:o,placeholder:i,label:c=(0,a.__)("Add item"),className:u,suggestions:d=[],maxSuggestions:p=100,value:h=[],displayTransform:f=kD,saveTransform:m=(e=>e.trim()),onChange:g=(()=>{}),onInputChange:v=(()=>{}),onFocus:b,isBorderless:x=!1,disabled:y=!1,tokenizeOnSpace:w=!1,messages:_={added:(0,a.__)("Item added."),removed:(0,a.__)("Item removed."),remove:(0,a.__)("Remove item"),__experimentalInvalid:(0,a.__)("Invalid item")},__experimentalRenderItem:S,__experimentalExpandOnFocus:C=!1,__experimentalValidateInput:k=(()=>!0),__experimentalShowHowTo:j=!0,__next40pxDefaultSize:E=!1,__experimentalAutoSelectFirstMatch:P=!1,__nextHasNoMarginBottom:T=!1,tokenizeOnBlur:I=!1}=ib(t),M=(0,l.useInstanceId)(e),[R,N]=(0,Uo.useState)(""),[A,D]=(0,Uo.useState)(0),[O,z]=(0,Uo.useState)(!1),[L,F]=(0,Uo.useState)(!1),[B,V]=(0,Uo.useState)(-1),[$,H]=(0,Uo.useState)(!1),W=(0,l.usePrevious)(d),U=(0,l.usePrevious)(h),G=(0,Uo.useRef)(null),K=(0,Uo.useRef)(null),Y=(0,l.useDebounce)(gy.speak,500);function q(){G.current?.focus()}function X(){return G.current===G.current?.ownerDocument.activeElement}function Z(e){if(pe()&&k(R))z(!1),I&&pe()&&se(R);else{if(N(""),D(0),z(!1),C){const t=e.relatedTarget===K.current;F(t)}else F(!1);V(-1),H(!1)}}function J(e){e.target===K.current&&O&&e.preventDefault()}function Q(e){ae(e.value),q()}function ee(e){const t=e.value,n=w?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=r[r.length-1]||"";r.length>1&&ie(r.slice(0,-1)),N(o),v(o)}function te(e){let t=!1;return X()&&de()&&(e(),t=!0),t}function ne(){const e=ue()-1;e>-1&&ae(h[e])}function re(){const e=ue();e<h.length&&(ae(h[e]),function(e){D(h.length-Math.max(e,-1)-1)}(e))}function oe(){let e=!1;const t=function(){if(-1!==B)return ce()[B];return}();return t?(se(t),e=!0):pe()&&(se(R),e=!0),e}function ie(e){const t=[...new Set(e.map(m).filter(Boolean).filter((e=>!function(e){return h.some((t=>le(e)===le(t)))}(e))))];if(t.length>0){const e=[...h];e.splice(ue(),0,...t),g(e)}}function se(e){k(e)?(ie([e]),(0,gy.speak)(_.added,"assertive"),N(""),V(-1),H(!1),F(!C),O&&!I&&q()):(0,gy.speak)(_.__experimentalInvalid,"assertive")}function ae(e){const t=h.filter((t=>le(t)!==le(e)));g(t),(0,gy.speak)(_.removed,"assertive")}function le(e){return"object"==typeof e?e.value:e}function ce(e=R,t=d,n=h,r=p,o=m){let i=o(e);const s=[],a=[],l=n.map((e=>"string"==typeof e?e:e.value));return 0===i.length?t=t.filter((e=>!l.includes(e))):(i=i.toLocaleLowerCase(),t.forEach((e=>{const t=e.toLocaleLowerCase().indexOf(i);-1===l.indexOf(e)&&(0===t?s.push(e):t>0&&a.push(e))})),t=s.concat(a)),t.slice(0,r)}function ue(){return h.length-A}function de(){return 0===R.length}function pe(){return m(R).length>0}function he(e=!0){const t=R.trim().length>1,n=ce(R),r=n.length>0,o=X()&&C;if(F(o||t&&r),e&&(P&&t&&r?(V(0),H(!0)):(V(-1),H(!1))),t){const e=r?(0,a.sprintf)((0,a._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",n.length),n.length):(0,a.__)("No results.");Y(e,"assertive")}}function fe(e,t,n){const r=le(e),o="string"!=typeof e?e.status:void 0,i=t+1,s=n.length;return(0,ze.jsx)(jg,{children:(0,ze.jsx)(_D,{value:r,status:o,title:"string"!=typeof e?e.title:void 0,displayTransform:f,onClickRemove:Q,isBorderless:"string"!=typeof e&&e.isBorderless||x,onMouseEnter:"string"!=typeof e?e.onMouseEnter:void 0,onMouseLeave:"string"!=typeof e?e.onMouseLeave:void 0,disabled:"error"!==o&&y,messages:_,termsCount:s,termPosition:i})},"token-"+r)}(0,Uo.useEffect)((()=>{O&&!X()&&q()}),[O]),(0,Uo.useEffect)((()=>{const e=!ow()(d,W||[]);(e||h!==U)&&he(e)}),[d,W,h,U]),(0,Uo.useEffect)((()=>{he()}),[R]),(0,Uo.useEffect)((()=>{he()}),[P]),y&&O&&(z(!1),N(""));const me=s(u,"components-form-token-field__input-container",{"is-active":O,"is-disabled":y});let ge={className:"components-form-token-field",tabIndex:-1};const ve=ce();return y||(ge=Object.assign({},ge,{onKeyDown:vx((function(e){let t=!1;if(!e.defaultPrevented){switch(e.key){case"Backspace":t=te(ne);break;case"Enter":t=oe();break;case"ArrowLeft":t=function(){let e=!1;return de()&&(D((e=>Math.min(e+1,h.length))),e=!0),e}();break;case"ArrowUp":V((e=>(0===e?ce(R,d,h,p,m).length:e)-1)),H(!0),t=!0;break;case"ArrowRight":t=function(){let e=!1;return de()&&(D((e=>Math.max(e-1,0))),e=!0),e}();break;case"ArrowDown":V((e=>(e+1)%ce(R,d,h,p,m).length)),H(!0),t=!0;break;case"Delete":t=te(re);break;case"Space":w&&(t=oe());break;case"Escape":t=function(e){return e.target instanceof HTMLInputElement&&(N(e.target.value),F(!1),V(-1),H(!1)),!0}(e)}t&&e.preventDefault()}})),onKeyPress:function(e){let t=!1;","===e.key&&(pe()&&se(R),t=!0);t&&e.preventDefault()},onFocus:function(e){X()||e.target===K.current?(z(!0),F(C||L)):z(!1),"function"==typeof b&&b(e)}})),(0,ze.jsxs)("div",{...ge,children:[c&&(0,ze.jsx)(Px,{htmlFor:`components-form-token-input-${M}`,className:"components-form-token-field__label",children:c}),(0,ze.jsxs)("div",{ref:K,className:me,tabIndex:-1,onMouseDown:J,onTouchStart:J,children:[(0,ze.jsx)(CD,{justify:"flex-start",align:"center",gap:1,wrap:!0,__next40pxDefaultSize:E,hasTokens:!!h.length,children:function(){const e=h.map(fe);return e.splice(ue(),0,function(){const e={instanceId:M,autoCapitalize:n,autoComplete:r,placeholder:0===h.length?i:"",disabled:y,value:R,onBlur:Z,isExpanded:L,selectedSuggestionIndex:B};return(0,ze.jsx)($T,{...e,onChange:o&&h.length>=o?void 0:ee,ref:G},"input")}()),e}()}),L&&(0,ze.jsx)(WT,{instanceId:M,match:m(R),displayTransform:f,suggestions:ve,selectedIndex:B,scrollIntoView:$,onHover:function(e){const t=ce().indexOf(e);t>=0&&(V(t),H(!1))},onSelect:function(e){se(e)},__experimentalRenderItem:S})]}),!T&&(0,ze.jsx)(Sg,{marginBottom:2}),j&&(0,ze.jsx)(Mx,{id:`components-form-token-suggestions-howto-${M}`,className:"components-form-token-field__help",__nextHasNoMarginBottom:T,children:w?(0,a.__)("Separate with commas, spaces, or the Enter key."):(0,a.__)("Separate with commas or the Enter key.")})]})},ED=()=>(0,ze.jsx)(n.SVG,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ze.jsx)(n.Circle,{cx:"4",cy:"4",r:"4"})});function PD({currentPage:e,numberOfPages:t,setCurrentPage:n}){return(0,ze.jsx)("ul",{className:"components-guide__page-control","aria-label":(0,a.__)("Guide controls"),children:Array.from({length:t}).map(((r,o)=>(0,ze.jsx)("li",{"aria-current":o===e?"step":void 0,children:(0,ze.jsx)(Hx,{icon:(0,ze.jsx)(ED,{}),"aria-label":(0,a.sprintf)((0,a.__)("Page %1$d of %2$d"),o+1,t),onClick:()=>n(o)},o)},o)))})}const TD=function({children:e,className:t,contentLabel:n,finishButtonText:r=(0,a.__)("Finish"),onFinish:o,pages:i=[]}){const l=(0,Uo.useRef)(null),[c,u]=(0,Uo.useState)(0);var d;(0,Uo.useEffect)((()=>{const e=l.current?.querySelector(".components-guide");e instanceof HTMLElement&&e.focus()}),[c]),(0,Uo.useEffect)((()=>{Uo.Children.count(e)&&Ko()("Passing children to <Guide>",{since:"5.5",alternative:"the `pages` prop"})}),[e]),Uo.Children.count(e)&&(i=null!==(d=Uo.Children.map(e,(e=>({content:e}))))&&void 0!==d?d:[]);const p=c>0,h=c<i.length-1,f=()=>{p&&u(c-1)},m=()=>{h&&u(c+1)};return 0===i.length?null:(0,ze.jsx)(hI,{className:s("components-guide",t),contentLabel:n,isDismissible:i.length>1,onRequestClose:o,onKeyDown:e=>{"ArrowLeft"===e.code?(f(),e.preventDefault()):"ArrowRight"===e.code&&(m(),e.preventDefault())},ref:l,children:(0,ze.jsxs)("div",{className:"components-guide__container",children:[(0,ze.jsxs)("div",{className:"components-guide__page",children:[i[c].image,i.length>1&&(0,ze.jsx)(PD,{currentPage:c,numberOfPages:i.length,setCurrentPage:u}),i[c].content]}),(0,ze.jsxs)("div",{className:"components-guide__footer",children:[p&&(0,ze.jsx)(Hx,{className:"components-guide__back-button",variant:"tertiary",onClick:f,children:(0,a.__)("Previous")}),h&&(0,ze.jsx)(Hx,{className:"components-guide__forward-button",variant:"primary",onClick:m,children:(0,a.__)("Next")}),!h&&(0,ze.jsx)(Hx,{className:"components-guide__finish-button",variant:"primary",onClick:o,children:r})]})]})})};function ID(e){return(0,Uo.useEffect)((()=>{Ko()("<GuidePage>",{since:"5.5",alternative:"the `pages` prop in <Guide>"})}),[]),(0,ze.jsx)("div",{...e})}const MD=(0,Uo.forwardRef)((function({label:e,labelPosition:t,size:n,tooltip:r,...o},i){return Ko()("wp.components.IconButton",{since:"5.4",alternative:"wp.components.Button",version:"6.2"}),(0,ze.jsx)(Hx,{...o,ref:i,tooltipPosition:t,iconSize:n,showTooltip:void 0!==r?!!r:void 0,label:r||e})}));const RD=oa((function(e,t){const{role:n,wrapperClassName:r,...o}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:i,...s}=ra(e,"Item"),{spacedAround:a,size:l}=EP(),c=i||l,u=t||(void 0!==r?"button":"div"),d=na(),p=(0,Uo.useMemo)((()=>d(("button"===u||"a"===u)&&hP(u),kP[c]||kP.medium,mP,a&&xP,n)),[u,n,d,c,a]),h=d(fP);return{as:u,className:p,onClick:r,wrapperClassName:h,role:o,...s}}(e);return(0,ze.jsx)("div",{role:n,className:r,children:(0,ze.jsx)(ya,{...o,ref:t})})}),"Item"),ND=RD;const AD=oa((function(e,t){const n=ra(e,"InputControlPrefixWrapper");return(0,ze.jsx)(Sg,{marginBottom:0,...n,ref:t})}),"InputControlPrefixWrapper");function DD({target:e,callback:t,shortcut:n,bindGlobal:r,eventName:o}){return(0,l.useKeyboardShortcut)(n,t,{bindGlobal:r,target:e,eventName:o}),null}const OD=function({children:e,shortcuts:t,bindGlobal:n,eventName:r}){const o=(0,Uo.useRef)(null),i=Object.entries(null!=t?t:{}).map((([e,t])=>(0,ze.jsx)(DD,{shortcut:e,callback:t,bindGlobal:n,eventName:r,target:o},e)));return Uo.Children.count(e)?(0,ze.jsxs)("div",{ref:o,children:[i,e]}):(0,ze.jsx)(ze.Fragment,{children:i})};const zD=function e(t){const{children:n,className:r="",label:o,hideSeparator:i}=t,a=(0,l.useInstanceId)(e);if(!Uo.Children.count(n))return null;const c=`components-menu-group-label-${a}`,u=s(r,"components-menu-group",{"has-hidden-separator":i});return(0,ze.jsxs)("div",{className:u,children:[o&&(0,ze.jsx)("div",{className:"components-menu-group__label",id:c,"aria-hidden":"true",children:o}),(0,ze.jsx)("div",{role:"group","aria-labelledby":o?c:void 0,children:n})]})};const LD=(0,Uo.forwardRef)((function(e,t){let{children:n,info:r,className:o,icon:i,iconPosition:a="right",shortcut:l,isSelected:c,role:u="menuitem",suffix:d,...p}=e;return o=s("components-menu-item__button",o),r&&(n=(0,ze.jsxs)("span",{className:"components-menu-item__info-wrapper",children:[(0,ze.jsx)("span",{className:"components-menu-item__item",children:n}),(0,ze.jsx)("span",{className:"components-menu-item__info",children:r})]})),i&&"string"!=typeof i&&(i=(0,Uo.cloneElement)(i,{className:s("components-menu-items__item-icon",{"has-icon-right":"right"===a})})),(0,ze.jsxs)(Hx,{ref:t,"aria-checked":"menuitemcheckbox"===u||"menuitemradio"===u?c:void 0,role:u,icon:"left"===a?i:void 0,className:o,...p,children:[(0,ze.jsx)("span",{className:"components-menu-item__item",children:n}),!d&&(0,ze.jsx)(Yo,{className:"components-menu-item__shortcut",shortcut:l}),!d&&i&&"right"===a&&(0,ze.jsx)(Bx,{icon:i}),d]})})),FD=LD,BD=()=>{};const VD=function({choices:e=[],onHover:t=BD,onSelect:n,value:r}){return(0,ze.jsx)(ze.Fragment,{children:e.map((e=>{const o=r===e.value;return(0,ze.jsx)(FD,{role:"menuitemradio",disabled:e.disabled,icon:o?YC:null,info:e.info,isSelected:o,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:()=>{o||n(e.value)},onMouseEnter:()=>t(e.value),onMouseLeave:()=>t(null),"aria-label":e["aria-label"],children:e.label},e.value)}))})};const $D=(0,Uo.forwardRef)((function({eventToOffset:e,...t},n){return(0,ze.jsx)(mT,{ref:n,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:t=>{const{code:n,shiftKey:r}=t;return"Tab"===n?r?-1:1:e?e(t):void 0},...t})})),HD="root",WD=100,UD=()=>{},GD=()=>{},KD=(0,Uo.createContext)({activeItem:void 0,activeMenu:HD,setActiveMenu:UD,navigationTree:{items:{},getItem:GD,addItem:UD,removeItem:UD,menus:{},getMenu:GD,addMenu:UD,removeMenu:UD,childMenu:{},traverseMenu:UD,isMenuEmpty:()=>!1}}),YD=()=>(0,Uo.useContext)(KD);const qD=ba("div",{target:"eeiismy11"})("width:100%;box-sizing:border-box;padding:0 ",ng(4),";overflow:hidden;"),XD=ba("div",{target:"eeiismy10"})("margin-top:",ng(6),";margin-bottom:",ng(6),";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:",ng(6),";}.components-navigation__group+.components-navigation__group{margin-top:",ng(6),";}"),ZD=ba(Hx,{target:"eeiismy9"})({name:"26l0q2",styles:"&.is-tertiary{color:inherit;opacity:0.7;&:hover:not( :disabled ){opacity:1;box-shadow:none;color:inherit;}&:active:not( :disabled ){background:transparent;opacity:1;color:inherit;}}"}),JD=ba("div",{target:"eeiismy8"})({name:"1aubja5",styles:"overflow:hidden;width:100%"}),QD=ba("div",{target:"eeiismy7"})({name:"rgorny",styles:"margin:11px 0;padding:1px"}),eO=ba("span",{target:"eeiismy6"})("height:",ng(6),";.components-button.is-small{color:inherit;opacity:0.7;margin-right:",ng(1),";padding:0;&:active:not( :disabled ){background:none;opacity:1;color:inherit;}&:hover:not( :disabled ){box-shadow:none;opacity:1;color:inherit;}}"),tO=ba(ok,{target:"eeiismy5"})("min-height:",ng(12),";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:",ng(2),";padding:",(()=>(0,a.isRTL)()?`${ng(1)} ${ng(4)} ${ng(1)} ${ng(2)}`:`${ng(1)} ${ng(2)} ${ng(1)} ${ng(4)}`),";"),nO=ba("li",{target:"eeiismy4"})("border-radius:2px;color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:",ng(2)," ",ng(4),";",yg({textAlign:"left"},{textAlign:"right"})," &:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:inherit;opacity:1;}}&.is-active{background-color:",Na.theme.accent,";color:",Na.white,";>button,>a{color:",Na.white,";opacity:1;}}>svg path{color:",Na.gray[600],";}"),rO=ba("div",{target:"eeiismy3"})("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:",ng(1.5)," ",ng(4),";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;"),oO=ba("span",{target:"eeiismy2"})("display:flex;margin-right:",ng(2),";"),iO=ba("span",{target:"eeiismy1"})("margin-left:",(()=>(0,a.isRTL)()?"0":ng(2)),";margin-right:",(()=>(0,a.isRTL)()?ng(2):"0"),";display:inline-flex;padding:",ng(1)," ",ng(3),";border-radius:2px;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}@media not ( prefers-reduced-motion ){animation:fade-in 250ms ease-out;}"),sO=ba(Dv,{target:"eeiismy0"})((()=>(0,a.isRTL)()?"margin-left: auto;":"margin-right: auto;")," font-size:14px;line-height:20px;color:inherit;");function aO(){const[e,t]=(0,Uo.useState)({});return{nodes:e,getNode:t=>e[t],addNode:(e,n)=>{const{children:r,...o}=n;return t((t=>({...t,[e]:o})))},removeNode:e=>t((t=>{const{[e]:n,...r}=t;return r}))}}const lO=()=>{};const cO=function({activeItem:e,activeMenu:t=HD,children:n,className:r,onActivateMenu:o=lO}){const[i,l]=(0,Uo.useState)(t),[c,u]=(0,Uo.useState)(),d=(()=>{const{nodes:e,getNode:t,addNode:n,removeNode:r}=aO(),{nodes:o,getNode:i,addNode:s,removeNode:a}=aO(),[l,c]=(0,Uo.useState)({}),u=e=>l[e]||[],d=(e,t)=>{const n=[];let r,o=[e];for(;o.length>0&&(r=i(o.shift()),!r||n.includes(r.menu)||(n.push(r.menu),o=[...o,...u(r.menu)],!1!==t(r))););};return{items:e,getItem:t,addItem:n,removeItem:r,menus:o,getMenu:i,addMenu:(e,t)=>{c((n=>{const r={...n};return t.parentMenu?(r[t.parentMenu]||(r[t.parentMenu]=[]),r[t.parentMenu].push(e),r):r})),s(e,t)},removeMenu:a,childMenu:l,traverseMenu:d,isMenuEmpty:e=>{let t=!0;return d(e,(e=>{if(!e.isEmpty)return t=!1,!1})),t}}})(),p=(0,a.isRTL)()?"right":"left",h=(e,t=p)=>{d.getMenu(e)&&(u(t),l(e),o(e))},f=(0,Uo.useRef)(!1);(0,Uo.useEffect)((()=>{f.current||(f.current=!0)}),[]),(0,Uo.useEffect)((()=>{t!==i&&h(t)}),[t]);const m={activeItem:e,activeMenu:i,setActiveMenu:h,navigationTree:d},g=s("components-navigation",r),v=xl({type:"slide-in",origin:c});return(0,ze.jsx)(qD,{className:g,children:(0,ze.jsx)("div",{className:v?s({[v]:f.current&&c}):void 0,children:(0,ze.jsx)(KD.Provider,{value:m,children:n})},i)})},uO=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})}),dO=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})});const pO=(0,Uo.forwardRef)((function({backButtonLabel:e,className:t,href:n,onClick:r,parentMenu:o},i){const{setActiveMenu:l,navigationTree:c}=YD(),u=s("components-navigation__back-button",t),d=void 0!==o?c.getMenu(o)?.title:void 0,p=(0,a.isRTL)()?uO:dO;return(0,ze.jsxs)(ZD,{className:u,href:n,variant:"tertiary",ref:i,onClick:e=>{"function"==typeof r&&r(e);const t=(0,a.isRTL)()?"left":"right";o&&!e.defaultPrevented&&l(o,t)},children:[(0,ze.jsx)(Y_,{icon:p}),e||d||(0,a.__)("Back")]})})),hO=pO,fO=(0,Uo.createContext)({group:void 0});let mO=0;const gO=function({children:e,className:t,title:n}){const[r]=(0,Uo.useState)("group-"+ ++mO),{navigationTree:{items:o}}=YD(),i={group:r};if(!Object.values(o).some((e=>e.group===r&&e._isVisible)))return(0,ze.jsx)(fO.Provider,{value:i,children:e});const a=`components-navigation__group-title-${r}`,l=s("components-navigation__group",t);return(0,ze.jsx)(fO.Provider,{value:i,children:(0,ze.jsxs)("li",{className:l,children:[n&&(0,ze.jsx)(tO,{className:"components-navigation__group-title",id:a,level:3,children:n}),(0,ze.jsx)("ul",{"aria-labelledby":a,role:"group",children:e})]})})};function vO(e){const{badge:t,title:n}=e;return(0,ze.jsxs)(ze.Fragment,{children:[n&&(0,ze.jsx)(sO,{className:"components-navigation__item-title",as:"span",children:n}),t&&(0,ze.jsx)(iO,{className:"components-navigation__item-badge",children:t})]})}const bO=(0,Uo.createContext)({menu:void 0,search:""}),xO=()=>(0,Uo.useContext)(bO),yO=e=>fy()(e).replace(/^\//,"").toLowerCase(),wO=(e,t)=>{const{activeMenu:n,navigationTree:{addItem:r,removeItem:o}}=YD(),{group:i}=(0,Uo.useContext)(fO),{menu:s,search:a}=xO();(0,Uo.useEffect)((()=>{const l=n===s,c=!a||void 0!==t.title&&((e,t)=>-1!==yO(e).indexOf(yO(t)))(t.title,a);return r(e,{...t,group:i,menu:s,_isVisible:l&&c}),()=>{o(e)}}),[n,a])};let _O=0;function SO(e){const{children:t,className:n,title:r,href:o,...i}=e,[a]=(0,Uo.useState)("item-"+ ++_O);wO(a,e);const{navigationTree:l}=YD();if(!l.getItem(a)?._isVisible)return null;const c=s("components-navigation__item",n);return(0,ze.jsx)(nO,{className:c,...i,children:t})}const CO=()=>{};const kO=function(e){const{badge:t,children:n,className:r,href:o,item:i,navigateToMenu:l,onClick:c=CO,title:u,icon:d,hideIfTargetMenuEmpty:p,isText:h,...f}=e,{activeItem:m,setActiveMenu:g,navigationTree:{isMenuEmpty:v}}=YD();if(p&&l&&v(l))return null;const b=i&&m===i,x=s(r,{"is-active":b}),y=(0,a.isRTL)()?dO:uO,w=n?e:{...e,onClick:void 0},_=h?f:{as:Hx,href:o,onClick:e=>{l&&g(l),c(e)},"aria-current":b?"page":void 0,...f};return(0,ze.jsx)(SO,{...w,className:x,children:n||(0,ze.jsxs)(rO,{..._,children:[d&&(0,ze.jsx)(oO,{children:(0,ze.jsx)(Y_,{icon:d})}),(0,ze.jsx)(vO,{title:u,badge:t}),l&&(0,ze.jsx)(Y_,{icon:y})]})})},jO=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})}),EO=(0,l.createHigherOrderComponent)((e=>t=>(0,ze.jsx)(e,{...t,speak:gy.speak,debouncedSpeak:(0,l.useDebounce)(gy.speak,500)})),"withSpokenMessages"),PO=({size:e})=>ng("compact"===e?1:2),TO=ba("div",{target:"effl84m1"})("display:flex;padding-inline-end:",PO,";svg{fill:currentColor;}"),IO=ba(Lx,{target:"effl84m0"})("input[type='search']{&::-webkit-search-decoration,&::-webkit-search-cancel-button,&::-webkit-search-results-button,&::-webkit-search-results-decoration{-webkit-appearance:none;}}&:not( :focus-within ){--wp-components-color-background:",Na.theme.gray[100],";}");function MO({searchRef:e,value:t,onChange:n,onClose:r}){if(!r&&!t)return(0,ze.jsx)(Y_,{icon:jO});return(0,ze.jsx)(Hx,{size:"small",icon:zw,label:r?(0,a.__)("Close search"):(0,a.__)("Reset search"),onClick:null!=r?r:()=>{n(""),e.current?.focus()}})}const RO=(0,Uo.forwardRef)((function({__nextHasNoMarginBottom:e=!1,className:t,onChange:n,value:r,label:o=(0,a.__)("Search"),placeholder:i=(0,a.__)("Search"),hideLabelFromVision:c=!0,onClose:u,size:d="default",...p},h){delete p.disabled;const f=(0,Uo.useRef)(null),m=(0,l.useInstanceId)(RO,"components-search-control"),g=(0,Uo.useMemo)((()=>({BaseControl:{_overrides:{__nextHasNoMarginBottom:e}},InputBase:{isBorderless:!0}})),[e]);return(0,ze.jsx)(hi,{value:g,children:(0,ze.jsx)(IO,{__next40pxDefaultSize:!0,id:m,hideLabelFromVision:c,label:o,ref:(0,l.useMergeRefs)([f,h]),type:"search",size:d,className:s("components-search-control",t),onChange:e=>n(null!=e?e:""),autoComplete:"off",placeholder:i,value:null!=r?r:"",suffix:(0,ze.jsx)(TO,{size:d,children:(0,ze.jsx)(MO,{searchRef:f,value:r,onChange:n,onClose:u})}),...p})})})),NO=RO;const AO=EO((function({debouncedSpeak:e,onCloseSearch:t,onSearch:n,search:r,title:o}){const{navigationTree:{items:i}}=YD(),{menu:s}=xO(),l=(0,Uo.useRef)(null);(0,Uo.useEffect)((()=>{const e=setTimeout((()=>{l.current?.focus()}),WD);return()=>{clearTimeout(e)}}),[]),(0,Uo.useEffect)((()=>{if(!r)return;const t=Object.values(i).filter((e=>e._isVisible)).length,n=(0,a.sprintf)((0,a._n)("%d result found.","%d results found.",t),t);e(n)}),[i,r]);const c=()=>{n?.(""),t()},u=`components-navigation__menu-title-search-${s}`,d=(0,a.sprintf)((0,a.__)("Search %s"),o?.toLowerCase()).trim();return(0,ze.jsx)(QD,{children:(0,ze.jsx)(NO,{__nextHasNoMarginBottom:!0,className:"components-navigation__menu-search-input",id:u,onChange:e=>n?.(e),onKeyDown:e=>{"Escape"!==e.code||e.defaultPrevented||(e.preventDefault(),c())},placeholder:d,onClose:c,ref:l,value:r})})}));function DO({hasSearch:e,onSearch:t,search:n,title:r,titleAction:o}){const[i,s]=(0,Uo.useState)(!1),{menu:l}=xO(),c=(0,Uo.useRef)(null);if(!r)return null;const u=`components-navigation__menu-title-${l}`,d=(0,a.sprintf)((0,a.__)("Search in %s"),r);return(0,ze.jsxs)(JD,{className:"components-navigation__menu-title",children:[!i&&(0,ze.jsxs)(tO,{as:"h2",className:"components-navigation__menu-title-heading",level:3,children:[(0,ze.jsx)("span",{id:u,children:r}),(e||o)&&(0,ze.jsxs)(eO,{children:[o,e&&(0,ze.jsx)(Hx,{size:"small",variant:"tertiary",label:d,onClick:()=>s(!0),ref:c,children:(0,ze.jsx)(Y_,{icon:jO})})]})]}),i&&(0,ze.jsx)("div",{className:xl({type:"slide-in",origin:"left"}),children:(0,ze.jsx)(AO,{onCloseSearch:()=>{s(!1),setTimeout((()=>{c.current?.focus()}),WD)},onSearch:t,search:n,title:r})})]})}function OO({search:e}){const{navigationTree:{items:t}}=YD(),n=Object.values(t).filter((e=>e._isVisible)).length;return!e||n?null:(0,ze.jsx)(nO,{children:(0,ze.jsxs)(rO,{children:[(0,a.__)("No results found.")," "]})})}const zO=function(e){const{backButtonLabel:t,children:n,className:r,hasSearch:o,menu:i=HD,onBackButtonClick:a,onSearch:l,parentMenu:c,search:u,isSearchDebouncing:d,title:p,titleAction:h}=e,[f,m]=(0,Uo.useState)("");(e=>{const{navigationTree:{addMenu:t,removeMenu:n}}=YD(),r=e.menu||HD;(0,Uo.useEffect)((()=>(t(r,{...e,menu:r}),()=>{n(r)})),[])})(e);const{activeMenu:g}=YD(),v={menu:i,search:f};if(g!==i)return(0,ze.jsx)(bO.Provider,{value:v,children:n});const b=!!l,x=b?u:f,y=b?l:m,w=`components-navigation__menu-title-${i}`,_=s("components-navigation__menu",r);return(0,ze.jsx)(bO.Provider,{value:v,children:(0,ze.jsxs)(XD,{className:_,children:[(c||a)&&(0,ze.jsx)(hO,{backButtonLabel:t,parentMenu:c,onClick:a}),p&&(0,ze.jsx)(DO,{hasSearch:o,onSearch:y,search:x,title:p,titleAction:h}),(0,ze.jsx)(vT,{children:(0,ze.jsxs)("ul",{"aria-labelledby":w,children:[n,x&&!d&&(0,ze.jsx)(OO,{search:x})]})})]})})};function LO(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[a=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<e.length;)if("\\"!==e[a]){if(")"===e[a]){if(0==--o){a++;break}}else if("("===e[a]&&(o++,"?"!==e[a+1]))throw new TypeError("Capturing groups are not allowed at ".concat(a));i+=e[a++]}else i+=e[a++]+e[a++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:i}),n=a}else{for(var s="",a=n+1;a<e.length;){var l=e.charCodeAt(a);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;s+=e[a++]}if(!s)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:s}),n=a}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,i="[^".concat(BO(t.delimiter||"/#?"),"]+?"),s=[],a=0,l=0,c="",u=function(e){if(l<n.length&&n[l].type===e)return n[l++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var r=n[l],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(e))},p=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};l<n.length;){var h=u("CHAR"),f=u("NAME"),m=u("PATTERN");if(f||m){var g=h||"";-1===o.indexOf(g)&&(c+=g,g=""),c&&(s.push(c),c=""),s.push({name:f||a++,prefix:g,suffix:"",pattern:m||i,modifier:u("MODIFIER")||""})}else{var v=h||u("ESCAPED_CHAR");if(v)c+=v;else if(c&&(s.push(c),c=""),u("OPEN")){g=p();var b=u("NAME")||"",x=u("PATTERN")||"",y=p();d("CLOSE"),s.push({name:b||(x?a++:""),pattern:b&&!x?i:x,prefix:g,suffix:y,modifier:u("MODIFIER")||""})}else d("END")}}return s}function FO(e,t){var n=[];return function(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var i=r[0],s=r.index,a=Object.create(null),l=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?a[n.name]=r[e].split(n.prefix+n.suffix).map((function(e){return o(e,n)})):a[n.name]=o(r[e],n)},c=1;c<r.length;c++)l(c);return{path:i,index:s,params:a}}}(HO(e,n,t),n,t)}function BO(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function VO(e){return e&&e.sensitive?"":"i"}function $O(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,i=n.start,s=void 0===i||i,a=n.end,l=void 0===a||a,c=n.encode,u=void 0===c?function(e){return e}:c,d=n.delimiter,p=void 0===d?"/#?":d,h=n.endsWith,f="[".concat(BO(void 0===h?"":h),"]|$"),m="[".concat(BO(p),"]"),g=s?"^":"",v=0,b=e;v<b.length;v++){var x=b[v];if("string"==typeof x)g+=BO(u(x));else{var y=BO(u(x.prefix)),w=BO(u(x.suffix));if(x.pattern)if(t&&t.push(x),y||w)if("+"===x.modifier||"*"===x.modifier){var _="*"===x.modifier?"?":"";g+="(?:".concat(y,"((?:").concat(x.pattern,")(?:").concat(w).concat(y,"(?:").concat(x.pattern,"))*)").concat(w,")").concat(_)}else g+="(?:".concat(y,"(").concat(x.pattern,")").concat(w,")").concat(x.modifier);else"+"===x.modifier||"*"===x.modifier?g+="((?:".concat(x.pattern,")").concat(x.modifier,")"):g+="(".concat(x.pattern,")").concat(x.modifier);else g+="(?:".concat(y).concat(w,")").concat(x.modifier)}}if(l)o||(g+="".concat(m,"?")),g+=n.endsWith?"(?=".concat(f,")"):"$";else{var S=e[e.length-1],C="string"==typeof S?m.indexOf(S[S.length-1])>-1:void 0===S;o||(g+="(?:".concat(m,"(?=").concat(f,"))?")),C||(g+="(?=".concat(m,"|").concat(f,")"))}return new RegExp(g,VO(n))}(LO(e,n),t,n)}function HO(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return HO(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),VO(n))}(e,t,n):$O(e,t,n)}function WO(e,t){return FO(t,{decode:decodeURIComponent})(e)}const UO=(0,Uo.createContext)({location:{},goTo:()=>{},goBack:()=>{},goToParent:()=>{},addScreen:()=>{},removeScreen:()=>{},params:{}});const GO={name:"xpkswc",styles:"overflow-x:hidden;contain:content"},KO=Pa({"0%":{opacity:0,transform:"translateX( 50px )"},"100%":{opacity:1,transform:"none"}}),YO=Pa({"0%":{opacity:0,transform:"translateX( -50px )"},"100%":{opacity:1,transform:"none"}}),qO=e=>Ea("overflow-x:auto;max-height:100%;",(({isInitial:e,isBack:t,isRTL:n})=>{if(e&&!t)return;return Ea("animation-duration:0.14s;animation-timing-function:ease-in-out;will-change:transform,opacity;animation-name:",n&&t||!n&&!t?KO:YO,";@media ( prefers-reduced-motion ){animation-duration:0s;}","")})(e),";",""),XO=50;function ZO({locationHistory:e}){return e.length<=1?e:[...e.slice(0,-2),{...e[e.length-2],isBack:!0,hasRestoredFocus:!1}]}function JO(e,t,n={}){const{locationHistory:r}=e,{focusTargetSelector:o,isBack:i=!1,skipFocus:s=!1,replace:a=!1,...l}=n;if(r.length>0&&r[r.length-1].path===t)return r;if(i&&r.length>1&&r[r.length-2].path===t)return ZO(e);const c={...l,path:t,isBack:i,hasRestoredFocus:!1,skipFocus:s};if(0===r.length)return a?[]:[c];const u=r.slice(r.length>XO-1?1:0,-1);return a||u.push({...r[r.length-1],focusTargetSelector:o}),u.push(c),u}function QO(e,t={}){const{locationHistory:n,screens:r}=e,o=n[n.length-1].path;if(void 0===o)return n;const i=function(e,t){if(!e.startsWith("/"))return;const n=e.split("/");let r;for(;n.length>1&&void 0===r;){n.pop();const e=""===n.join("/")?"/":n.join("/");t.find((t=>!1!==WO(e,t.path)))&&(r=e)}return r}(o,r);return void 0===i?n:JO(e,i,{...t,isBack:!0})}function ez(e,t){let{screens:n,locationHistory:r,matchedPath:o}=e;switch(t.type){case"add":n=function({screens:e},t){return[...e,t]}(e,t.screen);break;case"remove":n=function({screens:e},t){return e.filter((e=>e.id!==t.id))}(e,t.screen);break;case"goback":r=ZO(e);break;case"goto":r=JO(e,t.path,t.options);break;case"gotoparent":r=QO(e,t.options)}if(n===e.screens&&r===e.locationHistory)return e;const i=r.length>0?r[r.length-1].path:void 0;return o=void 0!==i?function(e,t){for(const n of t){const t=WO(e,n.path);if(t)return{params:t.params,id:n.id}}}(i,n):void 0,o&&e.matchedPath&&o.id===e.matchedPath.id&&ow()(o.params,e.matchedPath.params)&&(o=e.matchedPath),{screens:n,locationHistory:r,matchedPath:o}}const tz=oa((function(e,t){const{initialPath:n,children:r,className:o,...i}=ra(e,"NavigatorProvider"),[s,a]=(0,Uo.useReducer)(ez,n,(e=>({screens:[],locationHistory:[{path:e}],matchedPath:void 0}))),l=(0,Uo.useMemo)((()=>({goBack:()=>a({type:"goback"}),goTo:(e,t)=>a({type:"goto",path:e,options:t}),goToParent:e=>a({type:"gotoparent",options:e}),addScreen:e=>a({type:"add",screen:e}),removeScreen:e=>a({type:"remove",screen:e})})),[]),{locationHistory:c,matchedPath:u}=s,d=(0,Uo.useMemo)((()=>{var e;return{location:{...c[c.length-1],isInitial:1===c.length},params:null!==(e=u?.params)&&void 0!==e?e:{},match:u?.id,...l}}),[c,u,l]),p=na(),h=(0,Uo.useMemo)((()=>p(GO,o)),[o,p]);return(0,ze.jsx)(ya,{ref:t,className:h,...i,children:(0,ze.jsx)(UO.Provider,{value:d,children:r})})}),"NavigatorProvider"),nz=tz,rz=window.wp.escapeHtml;const oz=oa((function(e,t){const n=(0,Uo.useId)(),{children:r,className:o,path:i,...s}=ra(e,"NavigatorScreen"),{location:c,match:u,addScreen:d,removeScreen:p}=(0,Uo.useContext)(UO),h=u===n,f=(0,Uo.useRef)(null);(0,Uo.useEffect)((()=>{const e={id:n,path:(0,rz.escapeAttribute)(i)};return d(e),()=>p(e)}),[n,i,d,p]);const m=(0,a.isRTL)(),{isInitial:g,isBack:v}=c,b=na(),x=(0,Uo.useMemo)((()=>b(qO({isInitial:g,isBack:v,isRTL:m}),o)),[o,b,g,v,m]),y=(0,Uo.useRef)(c);(0,Uo.useEffect)((()=>{y.current=c}),[c]);const w=c.isInitial&&!c.isBack;(0,Uo.useEffect)((()=>{if(w||!h||!f.current||y.current.hasRestoredFocus||c.skipFocus)return;const e=f.current.ownerDocument.activeElement;if(f.current.contains(e))return;let t=null;if(c.isBack&&c.focusTargetSelector&&(t=f.current.querySelector(c.focusTargetSelector)),!t){const[e]=uT.focus.tabbable.find(f.current);t=null!=e?e:f.current}y.current.hasRestoredFocus=!0,t.focus()}),[w,h,c.isBack,c.focusTargetSelector,c.skipFocus]);const _=(0,l.useMergeRefs)([t,f]);return h?(0,ze.jsx)(ya,{ref:_,className:x,...s,children:r}):null}),"NavigatorScreen"),iz=oz;const sz=function(){const{location:e,params:t,goTo:n,goBack:r,goToParent:o}=(0,Uo.useContext)(UO);return{location:e,goTo:n,goBack:r,goToParent:o,params:t}},az=(e,t)=>`[${e}="${t}"]`;const lz=oa((function(e,t){const n=function(e){const{path:t,onClick:n,as:r=Hx,attributeName:o="id",...i}=ra(e,"NavigatorButton"),s=(0,rz.escapeAttribute)(t),{goTo:a}=sz();return{as:r,onClick:(0,Uo.useCallback)((e=>{e.preventDefault(),a(s,{focusTargetSelector:az(o,s)}),n?.(e)}),[a,n,o,s]),...i,[o]:s}}(e);return(0,ze.jsx)(ya,{ref:t,...n})}),"NavigatorButton"),cz=lz;function uz(e){const{onClick:t,as:n=Hx,goToParent:r=!1,...o}=ra(e,"NavigatorBackButton"),{goBack:i,goToParent:s}=sz();return{as:n,onClick:(0,Uo.useCallback)((e=>{e.preventDefault(),r?s():i(),t?.(e)}),[r,s,i,t]),...o}}const dz=oa((function(e,t){const n=uz(e);return(0,ze.jsx)(ya,{ref:t,...n})}),"NavigatorBackButton");const pz=oa((function(e,t){const n=uz({...e,goToParent:!0});return(0,ze.jsx)(ya,{ref:t,...n})}),"NavigatorToParentButton"),hz=()=>{};function fz(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}function mz(e){switch(e){case"warning":return(0,a.__)("Warning notice");case"info":return(0,a.__)("Information notice");case"error":return(0,a.__)("Error notice");default:return(0,a.__)("Notice")}}const gz=function({className:e,status:t="info",children:n,spokenMessage:r=n,onRemove:o=hz,isDismissible:i=!0,actions:l=[],politeness:c=fz(t),__unstableHTML:u,onDismiss:d=hz}){!function(e,t){const n="string"==typeof e?e:(0,Uo.renderToString)(e);(0,Uo.useEffect)((()=>{n&&(0,gy.speak)(n,t)}),[n,t])}(r,c);const p=s(e,"components-notice","is-"+t,{"is-dismissible":i});return u&&"string"==typeof n&&(n=(0,ze.jsx)(Uo.RawHTML,{children:n})),(0,ze.jsxs)("div",{className:p,children:[(0,ze.jsx)(wa,{children:mz(t)}),(0,ze.jsxs)("div",{className:"components-notice__content",children:[n,(0,ze.jsx)("div",{className:"components-notice__actions",children:l.map((({className:e,label:t,isPrimary:n,variant:r,noDefaultClasses:o=!1,onClick:i,url:a},l)=>{let c=r;return"primary"===r||o||(c=a?"link":"secondary"),void 0===c&&n&&(c="primary"),(0,ze.jsx)(Hx,{href:a,variant:c,onClick:a?void 0:i,className:s("components-notice__action",e),children:t},l)}))})]}),i&&(0,ze.jsx)(Hx,{className:"components-notice__dismiss",icon:Ty,label:(0,a.__)("Close"),onClick:()=>{d(),o()}})]})},vz=()=>{};const bz=function({notices:e,onRemove:t=vz,className:n,children:r}){const o=e=>()=>t(e);return n=s("components-notice-list",n),(0,ze.jsxs)("div",{className:n,children:[r,[...e].reverse().map((e=>{const{content:t,...n}=e;return(0,c.createElement)(gz,{...n,key:e.id,onRemove:o(e.id)},e.content)}))]})};const xz=function({label:e,children:t}){return(0,ze.jsxs)("div",{className:"components-panel__header",children:[e&&(0,ze.jsx)("h2",{children:e}),t]})};const yz=(0,Uo.forwardRef)((function({header:e,className:t,children:n},r){const o=s(t,"components-panel");return(0,ze.jsxs)("div",{className:o,ref:r,children:[e&&(0,ze.jsx)(xz,{label:e}),n]})})),wz=(0,ze.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,ze.jsx)(n.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),_z=()=>{};const Sz=(0,Uo.forwardRef)((({isOpened:e,icon:t,title:n,...r},o)=>n?(0,ze.jsx)("h2",{className:"components-panel__body-title",children:(0,ze.jsxs)(Hx,{className:"components-panel__body-toggle","aria-expanded":e,ref:o,...r,children:[(0,ze.jsx)("span",{"aria-hidden":"true",children:(0,ze.jsx)(Bx,{className:"components-panel__arrow",icon:e?wz:q_})}),n,t&&(0,ze.jsx)(Bx,{icon:t,className:"components-panel__icon",size:20})]})}):null)),Cz=(0,Uo.forwardRef)((function(e,t){const{buttonProps:n={},children:r,className:o,icon:i,initialOpen:a,onToggle:c=_z,opened:u,title:d,scrollAfterOpen:p=!0}=e,[h,f]=eS(u,{initial:void 0===a||a,fallback:!1}),m=(0,Uo.useRef)(null),g=(0,l.useReducedMotion)()?"auto":"smooth",v=(0,Uo.useRef)();v.current=p,ui((()=>{h&&v.current&&m.current?.scrollIntoView&&m.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:g})}),[h,g]);const b=s("components-panel__body",o,{"is-opened":h});return(0,ze.jsxs)("div",{className:b,ref:(0,l.useMergeRefs)([m,t]),children:[(0,ze.jsx)(Sz,{icon:i,isOpened:Boolean(h),onClick:e=>{e.preventDefault();const t=!h;f(t),c(t)},title:d,...n}),"function"==typeof r?r({opened:Boolean(h)}):h&&r]})})),kz=Cz;const jz=(0,Uo.forwardRef)((function({className:e,children:t},n){return(0,ze.jsx)("div",{className:s("components-panel__row",e),ref:n,children:t})})),Ez=(0,ze.jsx)(n.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none",children:(0,ze.jsx)(n.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"})});const Pz=function(e){const{icon:t,children:n,label:r,instructions:o,className:i,notices:a,preview:c,isColumnLayout:u,withIllustration:d,...p}=e,[h,{width:f}]=(0,l.useResizeObserver)();let m;"number"==typeof f&&(m={"is-large":f>=480,"is-medium":f>=160&&f<480,"is-small":f<160});const g=s("components-placeholder",i,m,d?"has-illustration":null),v=s("components-placeholder__fieldset",{"is-column-layout":u});return(0,Uo.useEffect)((()=>{o&&(0,gy.speak)(o)}),[o]),(0,ze.jsxs)("div",{...p,className:g,children:[d?Ez:null,h,a,c&&(0,ze.jsx)("div",{className:"components-placeholder__preview",children:c}),(0,ze.jsxs)("div",{className:"components-placeholder__label",children:[(0,ze.jsx)(Bx,{icon:t}),r]}),!!o&&(0,ze.jsx)("div",{className:"components-placeholder__instructions",children:o}),(0,ze.jsx)("div",{className:v,children:n})]})};const Tz=Pa({"0%":{left:"-50%"},"100%":{left:"100%"}}),Iz=ba("div",{target:"e15u147w2"})("position:relative;overflow:hidden;height:",bv.borderWidthFocus,";background-color:color-mix(\n\t\tin srgb,\n\t\t",Na.theme.foreground,",\n\t\ttransparent 90%\n\t);border-radius:",bv.radiusBlockUi,";outline:2px solid transparent;outline-offset:2px;:where( & ){width:160px;}");var Mz={name:"152sa26",styles:"width:var(--indicator-width);transition:width 0.4s ease-in-out"};const Rz=ba("div",{target:"e15u147w1"})("display:inline-block;position:absolute;top:0;height:100%;border-radius:",bv.radiusBlockUi,";background-color:color-mix(\n\t\tin srgb,\n\t\t",Na.theme.foreground,",\n\t\ttransparent 10%\n\t);outline:2px solid transparent;outline-offset:-2px;",(({isIndeterminate:e})=>e?Ea({animationDuration:"1.5s",animationTimingFunction:"ease-in-out",animationIterationCount:"infinite",animationName:Tz,width:"50%"},"",""):Mz),";"),Nz=ba("progress",{target:"e15u147w0"})({name:"11fb690",styles:"position:absolute;top:0;left:0;opacity:0;width:100%;height:100%"});const Az=(0,Uo.forwardRef)((function(e,t){const{className:n,value:r,...o}=e,i=!Number.isFinite(r);return(0,ze.jsxs)(Iz,{className:n,children:[(0,ze.jsx)(Rz,{style:{"--indicator-width":i?void 0:`${r}%`},isIndeterminate:i}),(0,ze.jsx)(Nz,{max:100,value:r,"aria-label":(0,a.__)("Loading …"),ref:t,...o})]})})),Dz=e=>e.every((e=>null!==e.parent));function Oz(e){const t=e.map((e=>({children:[],parent:null,...e,id:String(e.id)})));if(!Dz(t))return t;const n=t.reduce(((e,t)=>{const{parent:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{}),r=e=>e.map((e=>{const t=n[e.id];return{...e,children:t&&t.length?r(t):[]}}));return r(n[0]||[])}const zz=window.wp.htmlEntities;function Lz(e,t=0){return e.flatMap((e=>[{value:e.id,label:" ".repeat(3*t)+(0,zz.decodeEntities)(e.name)},...Lz(e.children||[],t+1)]))}const Fz=function(e){const{label:t,noOptionLabel:n,onChange:r,selectedId:o,tree:i=[],...s}=ib(e),a=(0,Uo.useMemo)((()=>[n&&{value:"",label:n},...Lz(i)].filter((e=>!!e))),[n,i]);return(0,ze.jsx)(Z_,{label:t,options:a,onChange:r,value:o,...s})};function Bz({__next40pxDefaultSize:e,label:t,noOptionLabel:n,authorList:r,selectedAuthorId:o,onChange:i}){if(!r)return null;const s=Oz(r);return(0,ze.jsx)(Fz,{label:t,noOptionLabel:n,onChange:i,tree:s,selectedId:void 0!==o?String(o):void 0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e})}function Vz({__next40pxDefaultSize:e,label:t,noOptionLabel:n,categoriesList:r,selectedCategoryId:o,onChange:i,...s}){const a=(0,Uo.useMemo)((()=>Oz(r)),[r]);return(0,ze.jsx)(Fz,{label:t,noOptionLabel:n,onChange:i,tree:a,selectedId:void 0!==o?String(o):void 0,...s,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e})}function $z(e){return"categoriesList"in e}function Hz(e){return"categorySuggestions"in e}const Wz=function({__next40pxDefaultSize:e=!1,authorList:t,selectedAuthorId:n,numberOfItems:r,order:o,orderBy:i,maxItems:s=100,minItems:l=1,onAuthorChange:c,onNumberOfItemsChange:u,onOrderChange:d,onOrderByChange:p,...h}){return(0,ze.jsx)(tk,{spacing:"4",className:"components-query-controls",children:[d&&p&&(0,ze.jsx)(J_,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,label:(0,a.__)("Order by"),value:`${i}/${o}`,options:[{label:(0,a.__)("Newest to oldest"),value:"date/desc"},{label:(0,a.__)("Oldest to newest"),value:"date/asc"},{label:(0,a.__)("A → Z"),value:"title/asc"},{label:(0,a.__)("Z → A"),value:"title/desc"}],onChange:e=>{if("string"!=typeof e)return;const[t,n]=e.split("/");n!==o&&d(n),t!==i&&p(t)}},"query-controls-order-select"),$z(h)&&h.categoriesList&&h.onCategoryChange&&(0,ze.jsx)(Vz,{__next40pxDefaultSize:e,categoriesList:h.categoriesList,label:(0,a.__)("Category"),noOptionLabel:(0,a._x)("All","categories"),selectedCategoryId:h.selectedCategoryId,onChange:h.onCategoryChange},"query-controls-category-select"),Hz(h)&&h.categorySuggestions&&h.onCategoryChange&&(0,ze.jsx)(jD,{__next40pxDefaultSize:e,__nextHasNoMarginBottom:!0,label:(0,a.__)("Categories"),value:h.selectedCategories&&h.selectedCategories.map((e=>({id:e.id,value:e.name||e.value}))),suggestions:Object.keys(h.categorySuggestions),onChange:h.onCategoryChange,maxSuggestions:20},"query-controls-categories-select"),c&&(0,ze.jsx)(Bz,{__next40pxDefaultSize:e,authorList:t,label:(0,a.__)("Author"),noOptionLabel:(0,a._x)("All","authors"),selectedAuthorId:n,onChange:c},"query-controls-author-select"),u&&(0,ze.jsx)(BS,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,label:(0,a.__)("Number of items"),value:r,onChange:u,min:l,max:s,required:!0},"query-controls-range-control")]})},Uz=(0,Uo.createContext)({store:void 0,disabled:void 0});const Gz=(0,Uo.forwardRef)((function({value:e,children:t,...n},r){const{store:o,disabled:i}=(0,Uo.useContext)(Uz),s=o?.useState("value"),a=void 0!==s&&s===e;return(0,ze.jsx)(m_,{disabled:i,store:o,ref:r,value:e,render:(0,ze.jsx)(Hx,{variant:a?"primary":"secondary",...n}),children:t||e})})),Kz=Gz;const Yz=(0,Uo.forwardRef)((function({label:e,checked:t,defaultChecked:n,disabled:r,onChange:o,children:i,...s},a){const l=Qw({value:t,defaultValue:n,setValue:e=>{o?.(null!=e?e:void 0)}}),c=(0,Uo.useMemo)((()=>({store:l,disabled:r})),[l,r]);return(0,ze.jsx)(Uz.Provider,{value:c,children:(0,ze.jsx)(i_,{store:l,render:(0,ze.jsx)(Qj,{children:i}),"aria-label":e,ref:a,...s})})})),qz=Yz;const Xz=function e(t){const{label:n,className:r,selected:o,help:i,onChange:a,hideLabelFromVision:c,options:u=[],...d}=t,p=`inspector-radio-control-${(0,l.useInstanceId)(e)}`,h=e=>a(e.target.value);return u?.length?(0,ze.jsx)(Dx,{__nextHasNoMarginBottom:!0,label:n,id:p,hideLabelFromVision:c,help:i,className:s(r,"components-radio-control"),children:(0,ze.jsx)(tk,{spacing:1,children:u.map(((e,t)=>(0,ze.jsxs)("div",{className:"components-radio-control__option",children:[(0,ze.jsx)("input",{id:`${p}-${t}`,className:"components-radio-control__input",type:"radio",name:p,value:e.value,onChange:h,checked:e.value===o,"aria-describedby":i?`${p}__help`:void 0,...d}),(0,ze.jsx)("label",{className:"components-radio-control__label",htmlFor:`${p}-${t}`,children:e.label})]},`${p}-${t}`)))})}):null};var Zz=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jz=function(){return Jz=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Jz.apply(this,arguments)},Qz={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},eL={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},tL={width:"20px",height:"20px",position:"absolute"},nL={top:Jz(Jz({},Qz),{top:"-5px"}),right:Jz(Jz({},eL),{left:void 0,right:"-5px"}),bottom:Jz(Jz({},Qz),{top:void 0,bottom:"-5px"}),left:Jz(Jz({},eL),{left:"-5px"}),topRight:Jz(Jz({},tL),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Jz(Jz({},tL),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Jz(Jz({},tL),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Jz(Jz({},tL),{left:"-10px",top:"-10px",cursor:"nw-resize"})},rL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return Zz(t,e),t.prototype.render=function(){return c.createElement("div",{className:this.props.className||"",style:Jz(Jz({position:"absolute",userSelect:"none"},nL[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(c.PureComponent),oL=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),iL=function(){return iL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},iL.apply(this,arguments)},sL={width:"auto",height:"auto"},aL=function(e,t,n){return Math.max(Math.min(e,n),t)},lL=function(e,t){return Math.round(e/t)*t},cL=function(e,t){return new RegExp(e,"i").test(t)},uL=function(e){return Boolean(e.touches&&e.touches.length)},dL=function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e},pL=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},hL=function(e,t,n,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%"))return t*(Number(e.replace("%",""))/100);if(e.endsWith("vw"))return n*(Number(e.replace("vw",""))/100);if(e.endsWith("vh"))return r*(Number(e.replace("vh",""))/100)}return e},fL=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],mL="__resizable_base__",gL=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(mL):t.className+=mL,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return oL(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||sL},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&e.propsSize[t].toString().endsWith("%")){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return pL(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?pL(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?pL(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,i=this.state.direction,s=o&&cL("left",i),a=o&&cL("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(n=s?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),r=a?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,i=o.direction,s=o.original,a=this.props,l=a.lockAspectRatio,c=a.lockAspectRatioExtraHeight,u=a.lockAspectRatioExtraWidth,d=s.width,p=s.height,h=c||0,f=u||0;return cL("right",i)&&(d=s.width+(e-s.x)*r/n,l&&(p=(d-f)/this.ratio+h)),cL("left",i)&&(d=s.width-(e-s.x)*r/n,l&&(p=(d-f)/this.ratio+h)),cL("bottom",i)&&(p=s.height+(t-s.y)*r/n,l&&(d=(p-h)*this.ratio+f)),cL("top",i)&&(p=s.height-(t-s.y)*r/n,l&&(d=(p-h)*this.ratio+f)),{newWidth:d,newHeight:p}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,s=o.lockAspectRatioExtraHeight,a=o.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,p=s||0,h=a||0;if(i){var f=(u-p)*this.ratio+h,m=(d-p)*this.ratio+h,g=(l-h)/this.ratio+p,v=(c-h)/this.ratio+p,b=Math.max(l,f),x=Math.min(c,m),y=Math.max(u,g),w=Math.min(d,v);e=aL(e,b,x),t=aL(t,y,w)}else e=aL(e,l,c),t=aL(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top,s=r.right,a=r.bottom;this.resizableLeft=o,this.resizableRight=s,this.resizableTop=i,this.resizableBottom=a}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&uL(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var s=this.parentNode;if(s){var a=this.window.getComputedStyle(s).flexDirection;this.flexDir=a.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:iL(iL({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&uL(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var n=this.props,r=n.maxWidth,o=n.maxHeight,i=n.minWidth,s=n.minHeight,a=uL(e)?e.touches[0].clientX:e.clientX,l=uL(e)?e.touches[0].clientY:e.clientY,c=this.state,u=c.direction,d=c.original,p=c.width,h=c.height,f=this.getParentSize(),m=function(e,t,n,r,o,i,s){return r=hL(r,e.width,t,n),o=hL(o,e.height,t,n),i=hL(i,e.width,t,n),s=hL(s,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===s?void 0:Number(s)}}(f,this.window.innerWidth,this.window.innerHeight,r,o,i,s);r=m.maxWidth,o=m.maxHeight,i=m.minWidth,s=m.minHeight;var g=this.calculateNewSizeFromDirection(a,l),v=g.newHeight,b=g.newWidth,x=this.calculateNewMaxFromBoundary(r,o);this.props.snap&&this.props.snap.x&&(b=dL(b,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(v=dL(v,this.props.snap.y,this.props.snapGap));var y=this.calculateNewSizeFromAspectRatio(b,v,{width:x.maxWidth,height:x.maxHeight},{width:i,height:s});if(b=y.newWidth,v=y.newHeight,this.props.grid){var w=lL(b,this.props.grid[0]),_=lL(v,this.props.grid[1]),S=this.props.snapGap||0;b=0===S||Math.abs(w-b)<=S?w:b,v=0===S||Math.abs(_-v)<=S?_:v}var C={width:b-d.width,height:v-d.height};if(p&&"string"==typeof p)if(p.endsWith("%"))b=b/f.width*100+"%";else if(p.endsWith("vw")){b=b/this.window.innerWidth*100+"vw"}else if(p.endsWith("vh")){b=b/this.window.innerHeight*100+"vh"}if(h&&"string"==typeof h)if(h.endsWith("%"))v=v/f.height*100+"%";else if(h.endsWith("vw")){v=v/this.window.innerWidth*100+"vw"}else if(h.endsWith("vh")){v=v/this.window.innerHeight*100+"vh"}var k={width:this.createSizeForCssProperty(b,"width"),height:this.createSizeForCssProperty(v,"height")};"row"===this.flexDir?k.flexBasis=k.width:"column"===this.flexDir&&(k.flexBasis=k.height),(0,tr.flushSync)((function(){t.setState(k)})),this.props.onResize&&this.props.onResize(e,u,this.resizable,C)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var i={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:iL(iL({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,i=t.handleWrapperStyle,s=t.handleWrapperClass,a=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?c.createElement(rL,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},a&&a[t]?a[t]:null):null}));return c.createElement("div",{className:s,style:i},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==fL.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=iL(iL(iL({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return c.createElement(r,iL({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&c.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(c.PureComponent);const vL=()=>{},bL={bottom:"bottom",corner:"corner"};function xL({axis:e,fadeTimeout:t=180,onResize:n=vL,position:r=bL.bottom,showPx:o=!1}){const[i,s]=(0,l.useResizeObserver)(),a=!!e,[c,u]=(0,Uo.useState)(!1),[d,p]=(0,Uo.useState)(!1),{width:h,height:f}=s,m=(0,Uo.useRef)(f),g=(0,Uo.useRef)(h),v=(0,Uo.useRef)(),b=(0,Uo.useCallback)((()=>{v.current&&window.clearTimeout(v.current),v.current=window.setTimeout((()=>{a||(u(!1),p(!1))}),t)}),[t,a]);(0,Uo.useEffect)((()=>{if(!(null!==h||null!==f))return;const e=h!==g.current,t=f!==m.current;if(e||t){if(h&&!g.current&&f&&!m.current)return g.current=h,void(m.current=f);e&&(u(!0),g.current=h),t&&(p(!0),m.current=f),n({width:h,height:f}),b()}}),[h,f,n,b]);const x=function({axis:e,height:t,moveX:n=!1,moveY:r=!1,position:o=bL.bottom,showPx:i=!1,width:s}){if(!n&&!r)return;if(o===bL.corner)return`${s} x ${t}`;const a=i?" px":"";if(e){if("x"===e&&n)return`${s}${a}`;if("y"===e&&r)return`${t}${a}`}if(n&&r)return`${s} x ${t}`;if(n)return`${s}${a}`;if(r)return`${t}${a}`;return}({axis:e,height:f,moveX:c,moveY:d,position:r,showPx:o,width:h});return{label:x,resizeListener:i}}const yL=ba("div",{target:"e1wq7y4k3"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),wL=ba("div",{target:"e1wq7y4k2"})({name:"ajymcs",styles:"align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear"}),_L=ba("div",{target:"e1wq7y4k1"})("background:",Na.theme.foreground,";border-radius:2px;box-sizing:border-box;font-family:",_x("default.fontFamily"),";font-size:12px;color:",Na.theme.foregroundInverted,";padding:4px 8px;position:relative;"),SL=ba(Dv,{target:"e1wq7y4k0"})("&&&{color:",Na.theme.foregroundInverted,";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}");const CL=(0,Uo.forwardRef)((function({label:e,position:t=bL.corner,zIndex:n=1e3,...r},o){const i=!!e,s=t===bL.bottom,l=t===bL.corner;if(!i)return null;let c={opacity:i?1:void 0,zIndex:n},u={};return s&&(c={...c,position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"},u={transform:"translate(0, 100%)"}),l&&(c={...c,position:"absolute",top:4,right:(0,a.isRTL)()?void 0:4,left:(0,a.isRTL)()?4:void 0}),(0,ze.jsx)(wL,{"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:o,style:c,...r,children:(0,ze.jsx)(_L,{className:"components-resizable-tooltip__tooltip",style:u,children:(0,ze.jsx)(SL,{as:"span",children:e})})})})),kL=CL,jL=()=>{};const EL=(0,Uo.forwardRef)((function({axis:e,className:t,fadeTimeout:n=180,isVisible:r=!0,labelRef:o,onResize:i=jL,position:a=bL.bottom,showPx:l=!0,zIndex:c=1e3,...u},d){const{label:p,resizeListener:h}=xL({axis:e,fadeTimeout:n,onResize:i,showPx:l,position:a});if(!r)return null;const f=s("components-resize-tooltip",t);return(0,ze.jsxs)(yL,{"aria-hidden":"true",className:f,ref:d,...u,children:[h,(0,ze.jsx)(kL,{"aria-hidden":u["aria-hidden"],label:p,position:a,ref:o,zIndex:c})]})})),PL=EL,TL="components-resizable-box__handle",IL="components-resizable-box__side-handle",ML="components-resizable-box__corner-handle",RL={top:s(TL,IL,"components-resizable-box__handle-top"),right:s(TL,IL,"components-resizable-box__handle-right"),bottom:s(TL,IL,"components-resizable-box__handle-bottom"),left:s(TL,IL,"components-resizable-box__handle-left"),topLeft:s(TL,ML,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:s(TL,ML,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:s(TL,ML,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:s(TL,ML,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},NL={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},AL={top:NL,right:NL,bottom:NL,left:NL,topLeft:NL,topRight:NL,bottomRight:NL,bottomLeft:NL};const DL=(0,Uo.forwardRef)((function({className:e,children:t,showHandle:n=!0,__experimentalShowTooltip:r=!1,__experimentalTooltipProps:o={},...i},a){return(0,ze.jsxs)(gL,{className:s("components-resizable-box__container",n&&"has-show-handle",e),handleClasses:RL,handleStyles:AL,ref:a,...i,children:[t,r&&(0,ze.jsx)(PL,{...o})]})}));const OL=function({naturalWidth:e,naturalHeight:t,children:n,isInline:r=!1}){if(1!==Uo.Children.count(n))return null;const o=r?"span":"div";let i;return e&&t&&(i=`${e} / ${t}`),(0,ze.jsx)(o,{className:"components-responsive-wrapper",children:(0,ze.jsx)("div",{children:(0,Uo.cloneElement)(n,{className:s("components-responsive-wrapper__content",n.props.className),style:{...n.props.style,aspectRatio:i}})})})},zL=function(){const{MutationObserver:e}=window;if(!e||!document.body||!window.parent)return;function t(){const e=document.body.getBoundingClientRect();window.parent.postMessage({action:"resize",width:e.width,height:e.height},"*")}function n(e){e.style&&["width","height","minHeight","maxHeight"].forEach((function(t){/^\\d+(vw|vh|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)$/.test(e.style[t])&&(e.style[t]="")}))}new e(t).observe(document.body,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),window.addEventListener("load",t,!0),Array.prototype.forEach.call(document.querySelectorAll("[style]"),n),Array.prototype.forEach.call(document.styleSheets,(function(e){Array.prototype.forEach.call(e.cssRules||e.rules,n)})),document.body.style.position="absolute",document.body.style.width="100%",document.body.setAttribute("data-resizable-iframe-connected",""),t(),window.addEventListener("resize",t,!0)};const LL=function({html:e="",title:t="",type:n,styles:r=[],scripts:o=[],onFocus:i,tabIndex:s}){const a=(0,Uo.useRef)(),[c,u]=(0,Uo.useState)(0),[d,p]=(0,Uo.useState)(0);function h(i=!1){if(!function(){try{return!!a.current?.contentDocument?.body}catch(e){return!1}}())return;const{contentDocument:s,ownerDocument:l}=a.current;if(!i&&null!==s?.body.getAttribute("data-resizable-iframe-connected"))return;const c=(0,ze.jsxs)("html",{lang:l.documentElement.lang,className:n,children:[(0,ze.jsxs)("head",{children:[(0,ze.jsx)("title",{children:t}),(0,ze.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div {\n\t\twidth: 100%;\n\t}\n\thtml.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio > div,\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n"}}),r.map(((e,t)=>(0,ze.jsx)("style",{dangerouslySetInnerHTML:{__html:e}},t)))]}),(0,ze.jsxs)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:n,children:[(0,ze.jsx)("div",{dangerouslySetInnerHTML:{__html:e}}),(0,ze.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`(${zL.toString()})();`}}),o.map((e=>(0,ze.jsx)("script",{src:e},e)))]})]});s.open(),s.write("<!DOCTYPE html>"+(0,Uo.renderToString)(c)),s.close()}return(0,Uo.useEffect)((()=>{function e(){h(!1)}function t(e){const t=a.current;if(!t||t.contentWindow!==e.source)return;let n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}"resize"===n.action&&(u(n.width),p(n.height))}h();const n=a.current,r=n?.ownerDocument?.defaultView;return n?.addEventListener("load",e,!1),r?.addEventListener("message",t),()=>{n?.removeEventListener("load",e,!1),r?.removeEventListener("message",t)}}),[]),(0,Uo.useEffect)((()=>{h()}),[t,r,o]),(0,Uo.useEffect)((()=>{h(!0)}),[e,n]),(0,ze.jsx)("iframe",{ref:(0,l.useMergeRefs)([a,(0,l.useFocusableIframe)()]),title:t,tabIndex:s,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:i,width:Math.ceil(c),height:Math.ceil(d)})};const FL=(0,Uo.forwardRef)((function({className:e,children:t,spokenMessage:n=t,politeness:r="polite",actions:o=[],onRemove:i,icon:l=null,explicitDismiss:c=!1,onDismiss:u,listRef:d},p){function h(e){e&&e.preventDefault&&e.preventDefault(),d?.current?.focus(),u?.(),i?.()}!function(e,t){const n="string"==typeof e?e:(0,Uo.renderToString)(e);(0,Uo.useEffect)((()=>{n&&(0,gy.speak)(n,t)}),[n,t])}(n,r);const f=(0,Uo.useRef)({onDismiss:u,onRemove:i});(0,Uo.useLayoutEffect)((()=>{f.current={onDismiss:u,onRemove:i}})),(0,Uo.useEffect)((()=>{const e=setTimeout((()=>{c||(f.current.onDismiss?.(),f.current.onRemove?.())}),1e4);return()=>clearTimeout(e)}),[c]);const m=s(e,"components-snackbar",{"components-snackbar-explicit-dismiss":!!c});o&&o.length>1&&(o=[o[0]]);const g=s("components-snackbar__content",{"components-snackbar__content-with-icon":!!l});return(0,ze.jsx)("div",{ref:p,className:m,onClick:c?void 0:h,tabIndex:0,role:c?void 0:"button",onKeyPress:c?void 0:h,"aria-label":c?void 0:(0,a.__)("Dismiss this notice"),"data-testid":"snackbar",children:(0,ze.jsxs)("div",{className:g,children:[l&&(0,ze.jsx)("div",{className:"components-snackbar__icon",children:l}),t,o.map((({label:e,onClick:t,url:n},r)=>(0,ze.jsx)(Hx,{href:n,variant:"tertiary",onClick:e=>function(e,t){e.stopPropagation(),i?.(),t&&t(e)}(e,t),className:"components-snackbar__action",children:e},r))),c&&(0,ze.jsx)("span",{role:"button","aria-label":(0,a.__)("Dismiss this notice"),tabIndex:0,className:"components-snackbar__dismiss-button",onClick:h,onKeyPress:h,children:"✕"})]})})})),BL=FL,VL={init:{height:0,opacity:0},open:{height:"auto",opacity:1,transition:{height:{type:"tween",duration:.3,ease:[0,0,.2,1]},opacity:{type:"tween",duration:.25,delay:.05,ease:[0,0,.2,1]}}},exit:{opacity:0,transition:{type:"tween",duration:.1,ease:[0,0,.2,1]}}};const $L=function({notices:e,className:t,children:n,onRemove:r}){const o=(0,Uo.useRef)(null),i=(0,l.useReducedMotion)();t=s("components-snackbar-list",t);const a=e=>()=>r?.(e.id);return(0,ze.jsxs)("div",{className:t,tabIndex:-1,ref:o,"data-testid":"snackbar-list",children:[n,(0,ze.jsx)(Zm,{children:e.map((e=>{const{content:t,...n}=e;return(0,ze.jsx)(Hm.div,{layout:!i,initial:"init",animate:"open",exit:"exit",variants:i?void 0:VL,children:(0,ze.jsx)("div",{className:"components-snackbar-list__notice-container",children:(0,ze.jsx)(BL,{...n,onRemove:a(e),listRef:o,children:e.content})})},e.id)}))})]})};const HL=Pa`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
- `,lF=bs("svg",{target:"ea4tfvq2"})("width:",Xg.spinnerSize,"px;height:",Xg.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",Ds.theme.accent,";overflow:visible;opacity:1;background-color:transparent;"),cF={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},uF=bs("circle",{target:"ea4tfvq1"})(cF,";stroke:",Ds.gray[300],";"),dF=bs("path",{target:"ea4tfvq0"})(cF,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",sF,";");const fF=(0,Uo.forwardRef)((function({className:e,...t},n){return(0,r.createElement)(lF,{className:c()("components-spinner",e),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...t,ref:n},(0,r.createElement)(uF,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,r.createElement)(dF,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"}))}));const mF=os((function(e,t){const n=mP(e);return(0,r.createElement)(xs,{...n,ref:t})}),"Surface");function pF(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=tl(M(R({},e),{orientation:V(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:V(e.focusLoop,null==n?void 0:n.focusLoop,!0)})),o=Us(),i=Rt(M(R({},r.getState()),{selectedId:V(e.selectedId,null==n?void 0:n.selectedId,e.defaultSelectedId,void 0),selectOnMove:V(e.selectOnMove,null==n?void 0:n.selectOnMove,!0)}),r,e.store);return Mt(i,(()=>At(i,["moves"],(()=>{const{activeId:e,selectOnMove:t}=i.getState();if(!t)return;if(!e)return;const n=r.item(e);n&&(n.dimmed||n.disabled||i.setState("selectedId",n.id))})))),Mt(i,(()=>Ot(i,["selectedId"],(e=>i.setState("activeId",e.selectedId))))),Mt(i,(()=>At(i,["selectedId","renderedItems"],(e=>{if(void 0!==e.selectedId)return;const{activeId:t,renderedItems:n}=i.getState(),o=r.item(t);if(!o||o.disabled||o.dimmed){const e=n.find((e=>!e.disabled&&!e.dimmed));i.setState("selectedId",null==e?void 0:e.id)}else i.setState("selectedId",o.id)})))),Mt(i,(()=>At(i,["renderedItems"],(e=>{const t=e.renderedItems;if(t.length)return At(o,["renderedItems"],(e=>{const n=e.renderedItems,r=n.some((e=>!e.tabId));r&&n.forEach(((e,n)=>{if(e.tabId)return;const r=t[n];r&&o.renderItem(M(R({},e),{tabId:r.id}))}))}))})))),M(R(R({},r),i),{panels:o,setSelectedId:e=>i.setState("selectedId",e),select:e=>{i.setState("selectedId",e),r.move(e)}})}function hF(e={}){const[t,n]=$t(pF,e);return function(e,t,n){Ht(e=nl(e,t,n),n,"selectedId","setSelectedId"),Ht(e,n,"selectOnMove");const[o,i]=$t((()=>e.panels),{});return Ce(i,[e,i]),(0,r.useMemo)((()=>w(x({},e),{panels:o})),[e,o])}(t,n,e)}var gF=He([Ct],[kt]),vF=(gF.useContext,gF.useScopedContext),bF=gF.useProviderContext,yF=(gF.ContextProvider,gF.ScopedContextProvider),xF=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=bF();F(n=n||o,!1);const i=n.useState((e=>"both"===e.orientation?void 0:e.orientation));return r=Te(r,(e=>(0,Le.jsx)(yF,{value:n,children:e})),[n]),r=x({role:"tablist","aria-orientation":i},r),r=il(x({store:n},r))})),wF=Fe((e=>je("div",xF(e))));var EF=Ve((e=>{var t=e,{store:n,accessibleWhenDisabled:o=!0,getItem:i}=t,a=E(t,["store","accessibleWhenDisabled","getItem"]);const s=vF();F(n=n||s,!1);const l=_e(),c=a.id||l,u=j(a),d=(0,r.useCallback)((e=>{const t=w(x({},e),{dimmed:u});return i?i(t):t}),[u,i]),f=a.onClick,m=we((e=>{null==f||f(e),e.defaultPrevented||null==n||n.setSelectedId(c)})),p=n.panels.useState((e=>{var t;return null==(t=e.items.find((e=>e.tabId===c)))?void 0:t.id})),h=n.useState((e=>!!c&&e.selectedId===c));return a=w(x({id:c,role:"tab","aria-selected":h,"aria-controls":p||void 0},a),{onClick:m}),a=Gt(w(x({store:n},a),{accessibleWhenDisabled:o,getItem:d,shouldRegisterItem:!!l&&a.shouldRegisterItem}))})),_F=Be((e=>je("button",EF(e))));var SF=Ve((e=>{var t=e,{store:n,tabId:o,getItem:i}=t,a=E(t,["store","tabId","getItem"]);const s=bF();F(n=n||s,!1);const l=(0,r.useRef)(null),c=_e(a.id),[u,d]=(0,r.useState)(!1);(0,r.useEffect)((()=>{const e=l.current;if(!e)return;const t=qe(e);d(!!t.length)}),[]);const f=(0,r.useCallback)((e=>{const t=w(x({},e),{id:c||e.id,tabId:o});return i?i(t):t}),[c,o,i]);a=Te(a,(e=>(0,Le.jsx)(yF,{value:n,children:e})),[n]);const m=n.panels.useState((()=>{var e;return o||(null==(e=null==n?void 0:n.panels.item(c))?void 0:e.tabId)})),p=n.useState((e=>!!m&&e.selectedId===m));a=w(x({id:c,role:"tabpanel","aria-labelledby":m||void 0},a),{ref:Ee(l,a.ref)});const h=Xt({open:p});return a=ct(x({focusable:!u},a)),a=Kn(x({store:h},a)),a=vt(w(x({store:n.panels},a),{getItem:f}))})),CF=Fe((e=>je("div",SF(e))));const kF=e=>{if(null!=e)return e.match(/^tab-panel-[0-9]*-(.*)/)?.[1]},PF=(0,Uo.forwardRef)((({className:e,children:t,tabs:n,selectOnMove:o=!0,initialTabName:i,orientation:a="horizontal",activeClass:s="is-active",onSelect:l},u)=>{const f=(0,d.useInstanceId)(PF,"tab-panel"),m=(0,Uo.useCallback)((e=>{if(void 0!==e)return`${f}-${e}`}),[f]),p=hF({setSelectedId:e=>{if(null==e)return;const t=n.find((t=>m(t.name)===e));if(t?.disabled||t===v)return;const r=kF(e);void 0!==r&&l?.(r)},orientation:a,selectOnMove:o,defaultSelectedId:m(i)}),h=kF(p.useState("selectedId")),g=(0,Uo.useCallback)((e=>{p.setState("selectedId",m(e))}),[m,p]),v=n.find((({name:e})=>e===h)),b=(0,d.usePrevious)(h);return(0,Uo.useEffect)((()=>{b!==h&&h===i&&h&&l?.(h)}),[h,i,l,b]),(0,Uo.useLayoutEffect)((()=>{if(v)return;const e=n.find((e=>e.name===i));if(!i||e)if(e&&!e.disabled)g(e.name);else{const e=n.find((e=>!e.disabled));e&&g(e.name)}}),[n,v,i,f,g]),(0,Uo.useEffect)((()=>{if(!v?.disabled)return;const e=n.find((e=>!e.disabled));e&&g(e.name)}),[n,v?.disabled,g,f]),(0,r.createElement)("div",{className:e,ref:u},(0,r.createElement)(wF,{store:p,className:"components-tab-panel__tabs"},n.map((e=>(0,r.createElement)(_F,{key:e.name,id:m(e.name),className:c()("components-tab-panel__tabs-item",e.className,{[s]:e.name===h}),disabled:e.disabled,"aria-controls":`${m(e.name)}-view`,render:(0,r.createElement)(my,{icon:e.icon,label:e.icon&&e.title,showTooltip:!!e.icon})},!e.icon&&e.title)))),v&&(0,r.createElement)(CF,{id:`${m(v.name)}-view`,store:p,tabId:m(v.name),className:"components-tab-panel__tab-content"},t(v)))})),TF=PF;const IF=(0,Uo.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,__next40pxDefaultSize:o=!1,label:i,hideLabelFromVision:a,value:s,help:l,id:u,className:f,onChange:m,type:p="text",...h}=e,g=(0,d.useInstanceId)(IF,"inspector-text-control",u);return(0,r.createElement)(iy,{__nextHasNoMarginBottom:n,label:i,hideLabelFromVision:a,id:g,help:l,className:f},(0,r.createElement)("input",{className:c()("components-text-control__input",{"is-next-40px-default-size":o}),type:p,id:g,value:s,onChange:e=>m(e.target.value),"aria-describedby":l?g+"__help":void 0,ref:t,...h}))})),RF=IF,MF=Ps("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Xg.radiusBlockUi,";border:",Xg.borderWidth," solid ",Ds.ui.border,";",""),NF=Ps("border-color:",Ds.theme.accent,";box-shadow:0 0 0 calc( ",Xg.borderWidthFocus," - ",Xg.borderWidth," ) ",Ds.theme.accent,";outline:2px solid transparent;",""),DF={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"},AF=Ps("display:block;font-family:",Yb("default.fontFamily"),";padding:6px 8px;",MF,";font-size:",Yb("mobileTextMinFontSize"),";line-height:normal;",`@media (min-width: ${DF["small"]})`,"{font-size:",Yb("default.fontSize"),";line-height:normal;}&:focus{",NF,";}&::-webkit-input-placeholder{color:",Ds.ui.darkGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Ds.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",Ds.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Ds.ui.lightGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Ds.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",Ds.ui.lightGrayPlaceholder,";}}","");const OF=bs("textarea",{target:"e1w5nnrk0"})("width:100%;",AF,";");const zF=(0,Uo.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,label:o,hideLabelFromVision:i,value:a,help:s,onChange:l,rows:c=4,className:u,...f}=e,m=`inspector-textarea-control-${(0,d.useInstanceId)(zF)}`;return(0,r.createElement)(iy,{__nextHasNoMarginBottom:n,label:o,hideLabelFromVision:i,id:m,help:s,className:u},(0,r.createElement)(OF,{className:"components-textarea-control__input",id:m,rows:c,onChange:e=>l(e.target.value),"aria-describedby":s?m+"__help":void 0,value:a,ref:t,...f}))})),LF=zF,FF=e=>{const{text:t="",highlight:n=""}=e,o=n.trim();if(!o)return(0,r.createElement)(r.Fragment,null,t);const i=new RegExp(`(${Uy(o)})`,"gi");return(0,Uo.createInterpolateElement)(t.replace(i,"<mark>$&</mark>"),{mark:(0,r.createElement)("mark",null)})},BF=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"}));const jF=function(e){const{children:t}=e;return(0,r.createElement)("div",{className:"components-tip"},(0,r.createElement)($E,{icon:BF}),(0,r.createElement)("p",null,t))};const VF=function e({__nextHasNoMarginBottom:t,label:n,checked:o,help:i,className:a,onChange:s,disabled:l}){const c=`inspector-toggle-control-${(0,d.useInstanceId)(e)}`,u=ns()("components-toggle-control",a,!t&&Ps({marginBottom:Ah(3)},"",""));let f,m;return i&&("function"==typeof i?void 0!==o&&(m=i(o)):m=i,m&&(f=c+"__help")),(0,r.createElement)(iy,{id:c,help:m,className:u,__nextHasNoMarginBottom:!0},(0,r.createElement)(Py,{justify:"flex-start",spacing:3},(0,r.createElement)(ZA,{id:c,checked:o,onChange:function(e){s(e.target.checked)},"aria-describedby":f,disabled:l}),(0,r.createElement)(Uh,{as:"label",htmlFor:c,className:"components-toggle-control__label"},n)))};var HF=He([Ct],[kt]),$F=HF.useContext,WF=(HF.useScopedContext,HF.useProviderContext),UF=(HF.ContextProvider,HF.ScopedContextProvider),GF=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=$F();return r=Gt(x({store:n=n||o},r))})),qF=Be((e=>je("button",GF(e))));const YF=(0,Uo.createContext)(void 0);const KF=(0,Uo.forwardRef)((function({children:e,as:t,...n},o){const i=(0,Uo.useContext)(YF),a="function"==typeof e;if(!a&&!t)return null;const s={...n,ref:o,"data-toolbar-item":!0};if(!i)return t?(0,r.createElement)(t,{...s},e):a?e(s):null;const l=a?e:t&&(0,r.createElement)(t,null,e);return(0,r.createElement)(qF,{...s,store:i,render:l})})),XF=({children:e,className:t})=>(0,r.createElement)("div",{className:t},e);const ZF=(0,Uo.forwardRef)((function({children:e,className:t,containerClassName:n,extraProps:o,isActive:i,isDisabled:a,title:s,...l},u){return(0,Uo.useContext)(YF)?(0,r.createElement)(KF,{className:c()("components-toolbar-button",t),...o,...l,ref:u},(t=>(0,r.createElement)(my,{label:s,isPressed:i,disabled:a,...t},e))):(0,r.createElement)(XF,{className:n},(0,r.createElement)(my,{ref:u,icon:l.icon,label:s,shortcut:l.shortcut,"data-subscript":l.subscript,onClick:e=>{e.stopPropagation(),l.onClick&&l.onClick(e)},className:c()("components-toolbar__control",t),isPressed:i,disabled:a,"data-toolbar-item":!0,...o,...l},e))})),JF=({className:e,children:t,...n})=>(0,r.createElement)("div",{className:e,...n},t);const QF=function({controls:e=[],toggleProps:t,...n}){const o=t=>(0,r.createElement)(QT,{controls:e,toggleProps:{...t,"data-toolbar-item":!0},...n});return(0,Uo.useContext)(YF)?(0,r.createElement)(KF,{...t},o):o(t)};const eB=function({controls:e=[],children:t,className:n,isCollapsed:o,title:i,...a}){const s=(0,Uo.useContext)(YF);if(!(e&&e.length||t))return null;const l=c()(s?"components-toolbar-group":"components-toolbar",n);let u;var d;return d=e,u=Array.isArray(d)&&Array.isArray(d[0])?e:[e],o?(0,r.createElement)(QF,{label:i,controls:u,className:l,children:t,...a}):(0,r.createElement)(JF,{className:l,...a},u?.flatMap(((e,t)=>e.map(((e,n)=>(0,r.createElement)(ZF,{key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":void 0,...e}))))),t)};function tB(e={}){var t;const n=null==(t=e.store)?void 0:t.getState();return tl(M(R({},e),{orientation:V(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:V(e.focusLoop,null==n?void 0:n.focusLoop,!0)}))}function nB(e={}){const[t,n]=$t(tB,e);return function(e,t,n){return nl(e,t,n)}(t,n,e)}var rB=Ve((e=>{var t=e,{store:n,orientation:r,virtualFocus:o,focusLoop:i,rtl:a}=t,s=E(t,["store","orientation","virtualFocus","focusLoop","rtl"]);const l=WF(),c=nB({store:n=n||l,orientation:r,virtualFocus:o,focusLoop:i,rtl:a}),u=c.useState((e=>"both"===e.orientation?void 0:e.orientation));return s=Te(s,(e=>(0,Le.jsx)(UF,{value:c,children:e})),[c]),s=x({role:"toolbar","aria-orientation":u},s),s=il(x({store:c},s))})),oB=Fe((e=>je("div",rB(e))));const iB=(0,Uo.forwardRef)((function({label:e,...t},n){const o=nB({focusLoop:!0,rtl:(0,u.isRTL)()});return(0,r.createElement)(YF.Provider,{value:o},(0,r.createElement)(oB,{ref:n,"aria-label":e,store:o,...t}))}));const aB=(0,Uo.forwardRef)((function({className:e,label:t,variant:n,...o},i){const a=void 0!==n,s=(0,Uo.useMemo)((()=>a?{}:{DropdownMenu:{variant:"toolbar"},Dropdown:{variant:"toolbar"}}),[a]);if(!t){qo()("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"});const{title:t,...n}=o;return(0,r.createElement)(eB,{isCollapsed:!1,...n,className:e})}const l=c()("components-accessible-toolbar",e,n&&`is-${n}`);return(0,r.createElement)(mi,{value:s},(0,r.createElement)(iB,{className:l,label:t,ref:i,...o}))}));const sB=(0,Uo.forwardRef)((function(e,t){return(0,Uo.useContext)(YF)?(0,r.createElement)(KF,{ref:t,...e.toggleProps},(t=>(0,r.createElement)(QT,{...e,popoverProps:{...e.popoverProps},toggleProps:t}))):(0,r.createElement)(QT,{...e})}));const lB={columns:e=>Ps("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:Ps("column-gap:",Ah(2),";row-gap:",Ah(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},cB={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},uB=Ps(lB.item.fullWidth," gap:",Ah(2),";.components-dropdown-menu{margin:",Ah(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",Ah(6),";}",""),dB={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},fB=Ps(lB.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",Xb,"{margin-bottom:0;",Zb,":last-child{margin-bottom:0;}}",ty,"{margin-bottom:0;}&& ",Cv,"{label{line-height:1.4em;}}",""),mB={name:"eivff4",styles:"display:none"},pB={name:"16gsvie",styles:"min-width:200px"},hB=bs("span",{target:"ews648u0"})("color:",Ds.theme.accentDarker10,";font-size:11px;font-weight:500;line-height:1.4;",Jh({marginLeft:Ah(3)})," text-transform:uppercase;"),gB=Ps("color:",Ds.gray[900],";&&[aria-disabled='true']{color:",Ds.gray[700],";opacity:1;&:hover{color:",Ds.gray[700],";}",hB,"{opacity:0.3;}}",""),vB=()=>{},bB=(0,Uo.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:vB,deregisterPanelItem:vB,flagItemCustomization:vB,registerResetAllFilter:vB,deregisterResetAllFilter:vB,areAllOptionalControlsHidden:!0}),yB=()=>(0,Uo.useContext)(bB);const xB=({itemClassName:e,items:t,toggleItem:n})=>{if(!t.length)return null;const o=(0,r.createElement)(hB,{"aria-hidden":!0},(0,u.__)("Reset"));return(0,r.createElement)(r.Fragment,null,t.map((([t,i])=>i?(0,r.createElement)(gO,{key:t,className:e,role:"menuitem",label:(0,u.sprintf)((0,u.__)("Reset %s"),t),onClick:()=>{n(t),(0,jy.speak)((0,u.sprintf)((0,u.__)("%s reset to default"),t),"assertive")},suffix:o},t):(0,r.createElement)(gO,{key:t,icon:DS,className:e,role:"menuitemcheckbox",isSelected:!0,"aria-disabled":!0},t))))},wB=({items:e,toggleItem:t})=>e.length?(0,r.createElement)(r.Fragment,null,e.map((([e,n])=>{const o=n?(0,u.sprintf)((0,u.__)("Hide and reset %s"),e):(0,u.sprintf)((0,u.__)("Show %s"),e);return(0,r.createElement)(gO,{key:e,icon:n?DS:null,isSelected:n,label:o,onClick:()=>{n?(0,jy.speak)((0,u.sprintf)((0,u.__)("%s hidden and reset to default"),e),"assertive"):(0,jy.speak)((0,u.sprintf)((0,u.__)("%s is now visible"),e),"assertive"),t(e)},role:"menuitemcheckbox"},e)}))):null,EB=os(((e,t)=>{const{areAllOptionalControlsHidden:n,defaultControlsItemClassName:o,dropdownMenuClassName:i,hasMenuItems:a,headingClassName:s,headingLevel:l=2,label:c,menuItems:d,resetAll:f,toggleItem:m,dropdownMenuProps:p,...h}=function(e){const{className:t,headingLevel:n=2,...r}=rs(e,"ToolsPanelHeader"),o=ns(),i=(0,Uo.useMemo)((()=>o(uB,t)),[t,o]),a=(0,Uo.useMemo)((()=>o(pB)),[o]),s=(0,Uo.useMemo)((()=>o(dB)),[o]),l=(0,Uo.useMemo)((()=>o(gB)),[o]),{menuItems:c,hasMenuItems:u,areAllOptionalControlsHidden:d}=yB();return{...r,areAllOptionalControlsHidden:d,defaultControlsItemClassName:l,dropdownMenuClassName:a,hasMenuItems:u,headingClassName:s,headingLevel:n,menuItems:c,className:i}}(e);if(!c)return null;const g=Object.entries(d?.default||{}),v=Object.entries(d?.optional||{}),b=n?ng:WP,y=(0,u.sprintf)((0,u._x)("%s options","Button label to reveal tool panel options"),c),x=n?(0,u.__)("All options are currently hidden"):void 0,w=[...g,...v].some((([,e])=>e));return(0,r.createElement)(Py,{...h,ref:t},(0,r.createElement)($S,{level:l,className:s},c),a&&(0,r.createElement)(QT,{...p,icon:b,label:y,menuProps:{className:i},toggleProps:{isSmall:!0,describedBy:x}},(()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(pO,{label:c},(0,r.createElement)(xB,{items:g,toggleItem:m,itemClassName:o}),(0,r.createElement)(wB,{items:v,toggleItem:m})),(0,r.createElement)(pO,null,(0,r.createElement)(gO,{"aria-disabled":!w,variant:"tertiary",onClick:()=>{w&&(f(),(0,jy.speak)((0,u.__)("All options reset"),"assertive"))}},(0,u.__)("Reset all")))))))}),"ToolsPanelHeader"),_B=EB,SB=({panelItems:e,shouldReset:t,currentMenuItems:n,menuItemOrder:r})=>{const o={default:{},optional:{}},i={default:{},optional:{}};return e.forEach((({hasValue:e,isShownByDefault:r,label:i})=>{const a=r?"default":"optional",s=n?.[a]?.[i],l=s||e();o[a][i]=!t&&l})),r.forEach((e=>{o.default.hasOwnProperty(e)&&(i.default[e]=o.default[e]),o.optional.hasOwnProperty(e)&&(i.optional[e]=o.optional[e])})),Object.keys(o.default).forEach((e=>{i.default.hasOwnProperty(e)||(i.default[e]=o.default[e])})),Object.keys(o.optional).forEach((e=>{i.optional.hasOwnProperty(e)||(i.optional[e]=o.optional[e])})),i},CB=e=>e&&0===Object.keys(e).length;function kB(e){const{className:t,headingLevel:n=2,resetAll:r,panelId:o,hasInnerWrapper:i=!1,shouldRenderPlaceholderItems:a=!1,__experimentalFirstVisibleItemClass:s,__experimentalLastVisibleItemClass:l,...c}=rs(e,"ToolsPanel"),u=(0,Uo.useRef)(!1),d=u.current;(0,Uo.useEffect)((()=>{d&&(u.current=!1)}),[d]);const[f,m]=(0,Uo.useState)([]),[p,h]=(0,Uo.useState)([]),[g,v]=(0,Uo.useState)([]),b=(0,Uo.useCallback)((e=>{m((t=>{const n=[...t],r=n.findIndex((t=>t.label===e.label));return-1!==r&&n.splice(r,1),[...n,e]})),h((t=>t.includes(e.label)?t:[...t,e.label]))}),[m,h]),y=(0,Uo.useCallback)((e=>{m((t=>{const n=[...t],r=n.findIndex((t=>t.label===e));return-1!==r&&n.splice(r,1),n}))}),[m]),x=(0,Uo.useCallback)((e=>{v((t=>[...t,e]))}),[v]),w=(0,Uo.useCallback)((e=>{v((t=>t.filter((t=>t!==e))))}),[v]),[E,_]=(0,Uo.useState)({default:{},optional:{}});(0,Uo.useEffect)((()=>{_((e=>SB({panelItems:f,shouldReset:!1,currentMenuItems:e,menuItemOrder:p})))}),[f,_,p]);const S=(0,Uo.useCallback)(((e,t="default")=>{_((n=>({...n,[t]:{...n[t],[e]:!0}})))}),[_]),[C,k]=(0,Uo.useState)(!1);(0,Uo.useEffect)((()=>{if(CB(E?.default)&&!CB(E?.optional)){const e=!Object.entries(E.optional).some((([,e])=>e));k(e)}}),[E,k]);const P=ns(),T=(0,Uo.useMemo)((()=>{const e=i&&Ps(">div:not( :first-of-type ){display:grid;",lB.columns(2)," ",lB.spacing," ",lB.item.fullWidth,";}","");const n=CB(E?.default)&&C&&cB;return P((e=>Ps(lB.columns(e)," ",lB.spacing," border-top:",Xg.borderWidth," solid ",Ds.gray[300],";margin-top:-1px;padding:",Ah(4),";",""))(2),e,n,t)}),[C,t,P,i,E]),I=(0,Uo.useCallback)((e=>{const t=f.find((t=>t.label===e));if(!t)return;const n=t.isShownByDefault?"default":"optional",r={...E,[n]:{...E[n],[e]:!E[n][e]}};_(r)}),[E,f,_]),R=(0,Uo.useCallback)((()=>{"function"==typeof r&&(u.current=!0,r(g));const e=SB({panelItems:f,menuItemOrder:p,shouldReset:!0});_(e)}),[f,g,r,_,p]),M=e=>{const t=E.optional||{},n=e.find((e=>e.isShownByDefault||!!t[e.label]));return n?.label},N=M(f),D=M([...f].reverse());return{...c,headingLevel:n,panelContext:(0,Uo.useMemo)((()=>({areAllOptionalControlsHidden:C,deregisterPanelItem:y,deregisterResetAllFilter:w,firstDisplayedItem:N,flagItemCustomization:S,hasMenuItems:!!f.length,isResetting:u.current,lastDisplayedItem:D,menuItems:E,panelId:o,registerPanelItem:b,registerResetAllFilter:x,shouldRenderPlaceholderItems:a,__experimentalFirstVisibleItemClass:s,__experimentalLastVisibleItemClass:l})),[C,y,w,N,S,D,E,o,f,x,b,a,s,l]),resetAllItems:R,toggleItem:I,className:T}}const PB=os(((e,t)=>{const{children:n,label:o,panelContext:i,resetAllItems:a,toggleItem:s,headingLevel:l,dropdownMenuProps:c,...u}=kB(e);return(0,r.createElement)(OC,{...u,columns:2,ref:t},(0,r.createElement)(bB.Provider,{value:i},(0,r.createElement)(_B,{label:o,resetAll:a,toggleItem:s,headingLevel:l,dropdownMenuProps:c}),n))}),"ToolsPanel"),TB=()=>{};const IB=os(((e,t)=>{const{children:n,isShown:o,shouldRenderPlaceholder:i,...a}=function(e){const{className:t,hasValue:n,isShownByDefault:r=!1,label:o,panelId:i,resetAllFilter:a=TB,onDeselect:s,onSelect:l,...c}=rs(e,"ToolsPanelItem"),{panelId:u,menuItems:f,registerResetAllFilter:m,deregisterResetAllFilter:p,registerPanelItem:h,deregisterPanelItem:g,flagItemCustomization:v,isResetting:b,shouldRenderPlaceholderItems:y,firstDisplayedItem:x,lastDisplayedItem:w,__experimentalFirstVisibleItemClass:E,__experimentalLastVisibleItemClass:_}=yB(),S=(0,Uo.useCallback)(n,[i]),C=(0,Uo.useCallback)(a,[i]),k=(0,d.usePrevious)(u),P=u===i||null===u;(0,Uo.useLayoutEffect)((()=>(P&&null!==k&&h({hasValue:S,isShownByDefault:r,label:o,panelId:i}),()=>{(null===k&&u||u===i)&&g(o)})),[u,P,r,o,S,i,k,h,g]),(0,Uo.useEffect)((()=>(P&&m(C),()=>{P&&p(C)})),[m,p,C,P]);const T=r?"default":"optional",I=f?.[T]?.[o],R=(0,d.usePrevious)(I),M=void 0!==f?.[T]?.[o],N=n(),D=(0,d.usePrevious)(N),A=N&&!D;(0,Uo.useEffect)((()=>{A&&v(o,T)}),[A,T,o,v]),(0,Uo.useEffect)((()=>{M&&!b&&P&&(!I||N||R||l?.(),!I&&R&&s?.())}),[P,I,M,b,N,R,l,s]);const O=r?void 0!==f?.[T]?.[o]:I,z=ns(),L=(0,Uo.useMemo)((()=>{const e=y&&!O;return z(fB,e&&mB,!e&&t,x===o&&E,w===o&&_)}),[O,y,t,z,x,w,E,_,o]);return{...c,isShown:O,shouldRenderPlaceholder:y,className:L}}(e);return o?(0,r.createElement)(xs,{...a,ref:t},n):i?(0,r.createElement)(xs,{...a,ref:t}):null}),"ToolsPanelItem"),RB=IB,MB=(0,Uo.createContext)(void 0),NB=MB.Provider;function DB({children:e}){const[t,n]=(0,Uo.useState)(),o=(0,Uo.useMemo)((()=>({lastFocusedElement:t,setLastFocusedElement:n})),[t]);return(0,r.createElement)(NB,{value:o},e)}function AB(e){return HT.focus.focusable.find(e,{sequential:!0}).filter((t=>t.closest('[role="row"]')===e))}const OB=(0,Uo.forwardRef)((function({children:e,onExpandRow:t=(()=>{}),onCollapseRow:n=(()=>{}),onFocusRow:o=(()=>{}),applicationAriaLabel:i,...a},s){const l=(0,Uo.useCallback)((e=>{const{keyCode:r,metaKey:i,ctrlKey:a,altKey:s}=e;if(i||a||s||![Vy.UP,Vy.DOWN,Vy.LEFT,Vy.RIGHT,Vy.HOME,Vy.END].includes(r))return;e.stopPropagation();const{activeElement:l}=document,{currentTarget:c}=e;if(!l||!c.contains(l))return;const u=l.closest('[role="row"]');if(!u)return;const d=AB(u),f=d.indexOf(l),m=0===f,p=m&&("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))&&r===Vy.RIGHT;if([Vy.LEFT,Vy.RIGHT].includes(r)){let o;if(o=r===Vy.LEFT?Math.max(0,f-1):Math.min(f+1,d.length-1),m){if(r===Vy.LEFT){var h;if("true"===u.getAttribute("data-expanded")||"true"===u.getAttribute("aria-expanded"))return n(u),void e.preventDefault();const t=Math.max(parseInt(null!==(h=u?.getAttribute("aria-level"))&&void 0!==h?h:"1",10)-1,1),r=Array.from(c.querySelectorAll('[role="row"]'));let o=u;for(let e=r.indexOf(u);e>=0;e--){const n=r[e].getAttribute("aria-level");if(null!==n&&parseInt(n,10)===t){o=r[e];break}}AB(o)?.[0]?.focus()}if(r===Vy.RIGHT){if("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))return t(u),void e.preventDefault();const n=AB(u);n.length>0&&n[o]?.focus()}return void e.preventDefault()}if(p)return;d[o].focus(),e.preventDefault()}else if([Vy.UP,Vy.DOWN].includes(r)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=r===Vy.UP?Math.max(0,n-1):Math.min(n+1,t.length-1),i===n)return void e.preventDefault();const a=AB(t[i]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),o(e,u,t[i]),e.preventDefault()}else if([Vy.HOME,Vy.END].includes(r)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=r===Vy.HOME?0:t.length-1,i===n)return void e.preventDefault();const a=AB(t[i]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),o(e,u,t[i]),e.preventDefault()}}),[t,n,o]);return(0,r.createElement)(DB,null,(0,r.createElement)("div",{role:"application","aria-label":i},(0,r.createElement)("table",{...a,role:"treegrid",onKeyDown:l,ref:s},(0,r.createElement)("tbody",null,e))))})),zB=OB;const LB=(0,Uo.forwardRef)((function({children:e,level:t,positionInSet:n,setSize:o,isExpanded:i,...a},s){return(0,r.createElement)("tr",{...a,ref:s,role:"row","aria-level":t,"aria-posinset":n,"aria-setsize":o,"aria-expanded":i},e)})),FB=(0,Uo.forwardRef)((function({children:e,as:t,...n},o){const i=(0,Uo.useRef)(),a=o||i,{lastFocusedElement:s,setLastFocusedElement:l}=(0,Uo.useContext)(MB);let c;s&&(c=s===("current"in a?a.current:void 0)?0:-1);const u={ref:a,tabIndex:c,onFocus:e=>l?.(e.target),...n};return"function"==typeof e?e(u):t?(0,r.createElement)(t,{...u},e):null}));const BB=(0,Uo.forwardRef)((function({children:e,...t},n){return(0,r.createElement)(FB,{ref:n,...t},e)}));const jB=(0,Uo.forwardRef)((function({children:e,withoutGridItem:t=!1,...n},o){return(0,r.createElement)("td",{...n,role:"gridcell"},t?(0,r.createElement)(r.Fragment,null,e):(0,r.createElement)(BB,{ref:o},e))}));function VB(e){e.stopPropagation()}const HB=(0,Uo.forwardRef)(((e,t)=>(qo()("wp.components.IsolatedEventContainer",{since:"5.7"}),(0,r.createElement)("div",{...e,ref:t,onMouseDown:VB}))));function $B(e){return Nx((0,Uo.useContext)(Ox).fills,{sync:!0}).get(e)}const WB=bs("div",{target:"ebn2ljm1"})("&:not( :first-of-type ){",(({offsetAmount:e})=>Ps({marginInlineStart:e},"","")),";}",(({zIndex:e})=>Ps({zIndex:e},"","")),";");var UB={name:"rs0gp6",styles:"grid-row-start:1;grid-column-start:1"};const GB=bs("div",{target:"ebn2ljm0"})("display:inline-grid;grid-auto-flow:column;position:relative;&>",WB,"{position:relative;justify-self:start;",(({isLayered:e})=>e?UB:void 0),";}");const qB=os((function(e,t){const{children:n,className:o,isLayered:i=!0,isReversed:a=!1,offset:s=0,...l}=rs(e,"ZStack"),c=Cy(n),u=c.length-1,d=c.map(((e,t)=>{const n=a?u-t:t,o=i?s*t:s,l=(0,Uo.isValidElement)(e)?e.key:t;return(0,r.createElement)(WB,{offsetAmount:o,zIndex:n,key:l},e)}));return(0,r.createElement)(GB,{...l,className:o,isLayered:i,ref:t},d)}),"ZStack"),YB=qB,KB={previous:[{modifier:"ctrlShift",character:"`"},{modifier:"ctrlShift",character:"~"},{modifier:"access",character:"p"}],next:[{modifier:"ctrl",character:"`"},{modifier:"access",character:"n"}]};function XB(e=KB){const t=(0,Uo.useRef)(null),[n,r]=(0,Uo.useState)(!1);function o(e){var n;const o=Array.from(null!==(n=t.current?.querySelectorAll('[role="region"][tabindex="-1"]'))&&void 0!==n?n:[]);if(!o.length)return;let i=o[0];const a=t.current?.ownerDocument?.activeElement?.closest('[role="region"][tabindex="-1"]'),s=a?o.indexOf(a):-1;if(-1!==s){let t=s+e;t=-1===t?o.length-1:t,t=t===o.length?0:t,i=o[t]}i.focus(),r(!0)}const i=(0,d.useRefEffect)((e=>{function t(){r(!1)}return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[r]);return{ref:(0,d.useMergeRefs)([t,i]),className:n?"is-focusing-regions":"",onKeyDown(t){e.previous.some((({modifier:e,character:n})=>Vy.isKeyboardEvent[e](t,n)))?o(-1):e.next.some((({modifier:e,character:n})=>Vy.isKeyboardEvent[e](t,n)))&&o(1)}}}const ZB=(0,d.createHigherOrderComponent)((e=>({shortcuts:t,...n})=>(0,r.createElement)("div",{...XB(t)},(0,r.createElement)(e,{...n}))),"navigateRegions"),JB=(0,d.createHigherOrderComponent)((e=>function(t){const n=(0,d.useConstrainedTabbing)();return(0,r.createElement)("div",{ref:n,tabIndex:-1},(0,r.createElement)(e,{...t}))}),"withConstrainedTabbing"),QB=e=>(0,d.createHigherOrderComponent)((t=>class extends Uo.Component{constructor(e){super(e),this.nodeRef=this.props.node,this.state={fallbackStyles:void 0,grabStylesCompleted:!1},this.bindRef=this.bindRef.bind(this)}bindRef(e){e&&(this.nodeRef=e)}componentDidMount(){this.grabFallbackStyles()}componentDidUpdate(){this.grabFallbackStyles()}grabFallbackStyles(){const{grabStylesCompleted:t,fallbackStyles:n}=this.state;if(this.nodeRef&&!t){const t=e(this.nodeRef,this.props);si()(t,n)||this.setState({fallbackStyles:t,grabStylesCompleted:Object.values(t).every(Boolean)})}}render(){const e=(0,r.createElement)(t,{...this.props,...this.state.fallbackStyles});return this.props.node?e:(0,r.createElement)("div",{ref:this.bindRef}," ",e," ")}}),"withFallbackStyles"),ej=window.wp.hooks,tj=16;function nj(e){return(0,d.createHigherOrderComponent)((t=>{const n="core/with-filters/"+e;let o;class i extends Uo.Component{constructor(n){super(n),void 0===o&&(o=(0,ej.applyFilters)(e,t))}componentDidMount(){i.instances.push(this),1===i.instances.length&&((0,ej.addAction)("hookRemoved",n,s),(0,ej.addAction)("hookAdded",n,s))}componentWillUnmount(){i.instances=i.instances.filter((e=>e!==this)),0===i.instances.length&&((0,ej.removeAction)("hookRemoved",n),(0,ej.removeAction)("hookAdded",n))}render(){return(0,r.createElement)(o,{...this.props})}}i.instances=[];const a=(0,d.debounce)((()=>{o=(0,ej.applyFilters)(e,t),i.instances.forEach((e=>{e.forceUpdate()}))}),tj);function s(t){t===e&&a()}return i}),"withFilters")}const rj=(0,d.createHigherOrderComponent)((e=>{const t=({onFocusReturn:e}={})=>t=>n=>{const o=(0,d.useFocusReturn)(e);return(0,r.createElement)("div",{ref:o},(0,r.createElement)(t,{...n}))};if((n=e)instanceof Uo.Component||"function"==typeof n){const n=e;return t()(n)}var n;return t(e)}),"withFocusReturn"),oj=({children:e})=>(qo()("wp.components.FocusReturnProvider component",{since:"5.7",hint:"This provider is not used anymore. You can just remove it from your codebase"}),e),ij=(0,d.createHigherOrderComponent)((e=>{function t(t,o){const[i,a]=(0,Uo.useState)([]),s=(0,Uo.useMemo)((()=>{const e=e=>{const t=e.id?e:{...e,id:Xx()};a((e=>[...e,t]))};return{createNotice:e,createErrorNotice:t=>{e({status:"error",content:t})},removeNotice:e=>{a((t=>t.filter((t=>t.id!==e))))},removeAllNotices:()=>{a([])}}}),[]),l={...t,noticeList:i,noticeOperations:s,noticeUI:i.length>0&&(0,r.createElement)(Hz,{className:"components-with-notices-ui",notices:i,onRemove:s.removeNotice})};return n?(0,r.createElement)(e,{...l,ref:o}):(0,r.createElement)(e,{...l})}let n;const{render:o}=e;return"function"==typeof o?(n=!0,(0,Uo.forwardRef)(t)):t}),"withNotices");const aj=Ts({"0%":{left:"-50%"},"100%":{left:"100%"}}),sj=bs("div",{target:"e15u147w2"})("position:relative;overflow:hidden;width:100%;max-width:160px;height:",Xg.borderWidthFocus,";background-color:color-mix(\n\t\tin srgb,\n\t\tvar( --wp-components-color-foreground, ",Ds.gray[900]," ),\n\t\ttransparent 90%\n\t);border-radius:",Xg.radiusBlockUi,";outline:2px solid transparent;outline-offset:2px;"),lj=bs("div",{target:"e15u147w1"})("display:inline-block;position:absolute;top:0;height:100%;border-radius:",Xg.radiusBlockUi,";background-color:color-mix(\n\t\tin srgb,\n\t\tvar( --wp-components-color-foreground, ",Ds.gray[900]," ),\n\t\ttransparent 10%\n\t);outline:2px solid transparent;outline-offset:-2px;",(({isIndeterminate:e,value:t})=>Ps(e?{animationDuration:"1.5s",animationTimingFunction:"ease-in-out",animationIterationCount:"infinite",animationName:aj,width:"50%"}:{width:`${t}%`,transition:"width 0.4s ease-in-out"},"","")),";"),cj=bs("progress",{target:"e15u147w0"})({name:"11fb690",styles:"position:absolute;top:0;left:0;opacity:0;width:100%;height:100%"});const uj=(0,Uo.forwardRef)((function(e,t){const{className:n,value:o,...i}=e,a=!Number.isFinite(o);return(0,r.createElement)(sj,{className:n},(0,r.createElement)(lj,{isIndeterminate:a,value:o}),(0,r.createElement)(cj,{max:100,value:o,"aria-label":(0,u.__)("Loading …"),ref:t,...i}))}));var dj=He([Ct,xn],[kt,wn]),fj=dj.useContext,mj=dj.useScopedContext,pj=dj.useProviderContext,hj=dj.ContextProvider,gj=dj.ScopedContextProvider,vj=(0,r.createContext)(void 0),bj=(0,r.createContext)(!1),yj=(0,Le.jsx)("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5pt",viewBox:"0 0 16 16",height:"1em",width:"1em",children:(0,Le.jsx)("polyline",{points:"4,8 7,12 12,4"})});var xj=Ve((e=>{var t=e,{store:n,checked:o}=t,i=E(t,["store","checked"]);const a=(0,r.useContext)(bj),s=function(e){return e.checked?e.children||yj:"function"==typeof e.children?e.children:null}({checked:o=null!=o?o:a,children:i.children});return i=w(x({"aria-hidden":!0},i),{children:s,style:x({width:"1em",height:"1em",pointerEvents:"none"},i.style)})}));Fe((e=>je("span",xj(e))));var wj=Ve((e=>{var t=e,{store:n,checked:o}=t,i=E(t,["store","checked"]);const a=(0,r.useContext)(vj);return o=null!=o?o:a,i=xj(w(x({},i),{checked:o}))})),Ej=Fe((e=>je("span",wj(e))));var _j=He([Ct],[kt]),Sj=_j.useContext,Cj=_j.useScopedContext,kj=(_j.useProviderContext,_j.ContextProvider,_j.ScopedContextProvider,(0,r.createContext)(void 0),He([gn,Ct],[vn,kt])),Pj=(kj.useContext,kj.useScopedContext,kj.useProviderContext);kj.ContextProvider,kj.ScopedContextProvider,(0,r.createContext)(void 0),(0,r.createContext)(!1);function Tj(e={}){var t=e,{combobox:n,parent:r,menubar:o}=t,i=N(t,["combobox","parent","menubar"]);const a=!!o&&!r,s=Lt(i.store,function(e,...t){if(e)return It(e,"pick")(...t)}(r,["values"]),zt(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),l=s.getState(),c=tl(M(R({},i),{store:s,orientation:V(i.orientation,l.orientation,"vertical")})),u=tn(M(R({},i),{store:s,placement:V(i.placement,l.placement,"bottom-start"),timeout:V(i.timeout,l.timeout,a?0:150),hideTimeout:V(i.hideTimeout,l.hideTimeout,0)})),d=Rt(M(R(R({},c.getState()),u.getState()),{initialFocus:V(l.initialFocus,"container"),values:V(i.values,l.values,i.defaultValues,{})}),c,u,s);return Mt(d,(()=>At(d,["mounted"],(e=>{e.mounted||d.setState("activeId",null)})))),Mt(d,(()=>At(r,["orientation"],(e=>{d.setState("placement","vertical"===e.orientation?"right-start":"bottom-start")})))),M(R(R(R({},c),u),d),{combobox:n,parent:r,menubar:o,hideAll:()=>{u.hide(),null==r||r.hideAll()},setInitialFocus:e=>d.setState("initialFocus",e),setValues:e=>d.setState("values",e),setValue:(e,t)=>{"__proto__"!==e&&"constructor"!==e&&(Array.isArray(e)||d.setState("values",(n=>{const r=n[e],o=A(t,r);return o===r?n:M(R({},n),{[e]:void 0!==o&&o})})))}})}function Ij(e={}){const t=fj(),n=Sj(),r=Pj();e=w(x({},e),{parent:void 0!==e.parent?e.parent:t,menubar:void 0!==e.menubar?e.menubar:n,combobox:void 0!==e.combobox?e.combobox:r});const[o,i]=$t(Tj,e);return function(e,t,n){return Ce(t,[n.combobox,n.parent,n.menubar]),Ht(e=en(e=nl(e,t,n),t,n),n,"values","setValues"),Object.assign(e,{combobox:n.combobox,parent:n.parent,menubar:n.menubar})}(o,i,e)}var Rj=Ve((e=>{const t=(0,r.useRef)(null),n=Se(t,e.as||"button"),[o,i]=(0,r.useState)((()=>!!n&&X({tagName:n,type:e.type})));return(0,r.useEffect)((()=>{t.current&&i(X(t.current))}),[]),e=w(x({role:o||"a"===n?void 0:"button"},e),{ref:Ee(t,e.ref)}),e=ft(e)}));Fe((e=>je("button",Rj(e))));var Mj=Symbol("disclosure"),Nj=Ve((e=>{var t=e,{store:n,toggleOnClick:o=!0}=t,i=E(t,["store","toggleOnClick"]);const a=sn();F(n=n||a,!1);const s=(0,r.useRef)(null),[l,c]=(0,r.useState)(!1),u=n.useState("disclosureElement"),d=n.useState("open");(0,r.useEffect)((()=>{let e=u===s.current;(null==u?void 0:u.isConnected)||(null==n||n.setDisclosureElement(s.current),e=!0),c(d&&e)}),[u,n,d]);const f=i.onClick,m=Pe(o),[p,h]=Re(i,Mj,!0),g=we((e=>{null==f||f(e),e.defaultPrevented||p||m(e)&&(null==n||n.setDisclosureElement(e.currentTarget),null==n||n.toggle())})),v=n.useState("contentElement");return i=w(x(x({"aria-expanded":l,"aria-controls":null==v?void 0:v.id},h),i),{ref:Ee(s,i.ref),onClick:g}),i=Rj(i)}));Fe((e=>je("button",Nj(e))));var Dj=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=cn();F(n=n||o,!1);const i=n.useState("contentElement");return r=x({"aria-haspopup":ne(i,"dialog")},r),r=Nj(x({store:n},r))}));Fe((e=>je("button",Dj(e))));var Aj=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=hn();return n=n||o,r=w(x({},r),{ref:Ee(null==n?void 0:n.setAnchorElement,r.ref)})}));Fe((e=>je("div",Aj(e))));var Oj=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=hn();F(n=n||o,!1);const i=r.onClick,a=we((e=>{null==n||n.setAnchorElement(e.currentTarget),null==i||i(e)}));return r=Te(r,(e=>(0,Le.jsx)(vn,{value:n,children:e})),[n]),r=w(x({},r),{onClick:a}),r=Aj(x({store:n},r)),r=Dj(x({store:n},r))}));Fe((e=>je("button",Oj(e))));var zj="";function Lj(){zj=""}function Fj(e,t){var n;const r=(null==(n=e.element)?void 0:n.textContent)||e.children;return!!r&&(o=r,o.normalize("NFD").replace(/[\u0300-\u036f]/g,"")).trim().toLowerCase().startsWith(t.toLowerCase());var o}function Bj(e,t,n){if(!n)return e;const r=e.find((e=>e.id===n));return r&&Fj(r,t)?zj!==t&&Fj(r,zj)?e:(zj=t,function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[bt]:[],...e.slice(0,r)]}(e.filter((e=>Fj(e,zj))),n).filter((e=>e.id!==n))):e}var jj=Ve((e=>{var t=e,{store:n,typeahead:o=!0}=t,i=E(t,["store","typeahead"]);const a=_t();F(n=n||a,!1);const s=i.onKeyDownCapture,l=(0,r.useRef)(0),c=we((e=>{if(null==s||s(e),e.defaultPrevented)return;if(!o)return;if(!n)return;const{items:t,activeId:r}=n.getState();if(!function(e){const t=e.target;return(!t||!te(t))&&(!(" "!==e.key||!zj.length)||1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(e.key))}(e))return Lj();let i=function(e){return e.filter((e=>!e.disabled))}(t);if(!function(e,t){if(ce(e))return!0;const n=e.target;if(!n)return!1;const r=t.some((e=>e.element===n));return r}(e,i))return Lj();e.preventDefault(),window.clearTimeout(l.current),l.current=window.setTimeout((()=>{zj=""}),500);const a=e.key.toLowerCase();zj+=a,i=Bj(i,a,r);const c=i.find((e=>Fj(e,zj)));c?n.move(c.id):Lj()}));return i=w(x({},i),{onKeyDownCapture:c})}));Fe((e=>je("div",jj(e))));function Vj(e,t){return!!(null==e?void 0:e.some((e=>!!e.element&&(e.element!==t&&"true"===e.element.getAttribute("aria-expanded")))))}var Hj=Ve((e=>{var t=e,{store:n,focusable:o,accessibleWhenDisabled:i,showOnHover:a}=t,s=E(t,["store","focusable","accessibleWhenDisabled","showOnHover"]);const l=pj();F(n=n||l,!1);const c=(0,r.useRef)(null),u=n.parent,d=n.menubar,f=!!u,m=!!d&&!f,p=j(s),h=()=>{const e=c.current;e&&(null==n||n.setDisclosureElement(e),null==n||n.setAnchorElement(e),null==n||n.show())},g=s.onFocus,v=we((e=>{if(null==g||g(e),p)return;if(e.defaultPrevented)return;if(null==n||n.setAutoFocusOnShow(!1),null==n||n.setActiveId(null),!d)return;if(!m)return;const{items:t}=d.getState();Vj(t,e.currentTarget)&&h()})),b=n.useState((e=>e.placement.split("-")[0])),y=s.onKeyDown,_=we((e=>{if(null==y||y(e),p)return;if(e.defaultPrevented)return;const t=function(e,t){return{ArrowDown:("bottom"===t||"top"===t)&&"first",ArrowUp:("bottom"===t||"top"===t)&&"last",ArrowRight:"right"===t&&"first",ArrowLeft:"left"===t&&"first"}[e.key]}(e,b);t&&(e.preventDefault(),h(),null==n||n.setAutoFocusOnShow(!0),null==n||n.setInitialFocus(t))})),S=s.onClick,C=we((e=>{if(null==S||S(e),e.defaultPrevented)return;if(!n)return;const t=!e.detail,{open:r}=n.getState();r&&!t||(f&&!t||n.setAutoFocusOnShow(!0),n.setInitialFocus(t?"first":"container")),f&&h()}));s=Te(s,(e=>(0,Le.jsx)(hj,{value:n,children:e})),[n]),f&&(s=w(x({},s),{render:(0,Le.jsx)(on.div,{render:s.render})}));const k=_e(s.id),P=Vt((null==u?void 0:u.combobox)||u,"contentElement"),T=f||m?re(P,"menuitem"):void 0,I=n.useState("contentElement");return s=w(x({id:k,role:T,"aria-haspopup":ne(I,"menu")},s),{ref:Ee(c,s.ref),onFocus:v,onKeyDown:_,onClick:C}),s=En(w(x({store:n,focusable:o,accessibleWhenDisabled:i},s),{showOnHover:e=>{if(!(()=>{if("function"==typeof a)return a(e);if(null!=a)return a;if(f)return!0;if(!d)return!1;const{items:t}=d.getState();return m&&Vj(t)})())return!1;const t=m?d:u;return!t||(t.setActiveId(e.currentTarget.id),!0)}})),s=Oj(x({store:n,toggleOnClick:!f,focusable:o,accessibleWhenDisabled:i},s)),s=jj(x({store:n,typeahead:m},s))})),$j=Fe((e=>je("button",Hj(e))));const Wj=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));var Uj=Ve((e=>{var t=e,{store:n,alwaysVisible:o,composite:i}=t,a=E(t,["store","alwaysVisible","composite"]);const s=pj();F(n=n||s,!1);const l=n.parent,c=n.menubar,u=!!l,d=_e(a.id),f=a.onKeyDown,m=n.useState((e=>e.placement.split("-")[0])),p=n.useState((e=>"both"===e.orientation?void 0:e.orientation)),h="vertical"!==p,g=Vt(c,(e=>!!e&&"vertical"!==e.orientation)),v=we((e=>{if(null==f||f(e),!e.defaultPrevented){if(u||c&&!h){const t={ArrowRight:()=>"left"===m&&!h,ArrowLeft:()=>"right"===m&&!h,ArrowUp:()=>"bottom"===m&&h,ArrowDown:()=>"top"===m&&h}[e.key];if(null==t?void 0:t())return e.stopPropagation(),e.preventDefault(),null==n?void 0:n.hide()}if(c){const t={ArrowRight:()=>{if(g)return c.next()},ArrowLeft:()=>{if(g)return c.previous()},ArrowDown:()=>{if(!g)return c.next()},ArrowUp:()=>{if(!g)return c.previous()}}[e.key],n=null==t?void 0:t();void 0!==n&&(e.stopPropagation(),e.preventDefault(),c.move(n))}}}));a=Te(a,(e=>(0,Le.jsx)(gj,{value:n,children:e})),[n]);const b=function(e){var t=e,{store:n}=t,o=E(t,["store"]);const[i,a]=(0,r.useState)(void 0),s=o["aria-label"],l=Vt(n,"disclosureElement"),c=Vt(n,"contentElement");return(0,r.useEffect)((()=>{const e=l;e&&c&&(s||c.hasAttribute("aria-label")?a(void 0):e.id&&a(e.id))}),[s,l,c]),i}(x({store:n},a)),y=Yn(n.useState("mounted"),a.hidden,o),_=y?w(x({},a.style),{display:"none"}):a.style;a=w(x({id:d,"aria-labelledby":b,hidden:y},a),{ref:Ee(d?n.setContentElement:null,a.ref),style:_,onKeyDown:v});const S=!!n.combobox;return(i=null!=i?i:!S)&&(a=x({role:"menu","aria-orientation":p},a)),a=il(x({store:n,composite:i},a)),a=jj(x({store:n,typeahead:!S},a))}));Fe((e=>je("div",Uj(e))));var Gj=Ve((e=>{var t=e,{store:n,modal:o=!1,portal:i=!!o,hideOnEscape:a=!0,autoFocusOnShow:s=!0,hideOnHoverOutside:l,alwaysVisible:c}=t,u=E(t,["store","modal","portal","hideOnEscape","autoFocusOnShow","hideOnHoverOutside","alwaysVisible"]);const d=pj();F(n=n||d,!1);const f=(0,r.useRef)(null),m=n.parent,p=n.menubar,h=!!m,g=!!p&&!h;u=w(x({},u),{ref:Ee(f,u.ref)});const v=Uj(x({store:n,alwaysVisible:c},u)),{"aria-labelledby":b}=v;u=E(v,["aria-labelledby"]);const[y,_]=(0,r.useState)(),S=n.useState("autoFocusOnShow"),C=n.useState("initialFocus"),k=n.useState("baseElement"),P=n.useState("renderedItems");(0,r.useEffect)((()=>{let e=!1;return _((t=>{var n,o,i;if(e)return;if(!S)return;if(null==(n=null==t?void 0:t.current)?void 0:n.isConnected)return t;const a=(0,r.createRef)();switch(C){case"first":a.current=(null==(o=P.find((e=>!e.disabled&&e.element)))?void 0:o.element)||null;break;case"last":a.current=(null==(i=[...P].reverse().find((e=>!e.disabled&&e.element)))?void 0:i.element)||null;break;default:a.current=k}return a})),()=>{e=!0}}),[n,S,C,P,k]);const T=!h&&o,I=!!s,R=!!y||!!u.initialFocus||!!T,M=Vt(n.combobox||n,"contentElement"),N=Vt((null==m?void 0:m.combobox)||m,"contentElement"),D=(0,r.useMemo)((()=>{if(!N)return;if(!M)return;const e=M.getAttribute("role"),t=N.getAttribute("role");return"menu"!==t&&"menubar"!==t||"menu"!==e?N:void 0}),[M,N]);return void 0!==D&&(u=x({preserveTabOrderAnchor:D},u)),u=Ho(w(x({store:n,alwaysVisible:c,initialFocus:y,autoFocusOnShow:I?R&&s:S||!!T},u),{hideOnEscape:e=>!B(a,e)&&(null==n||n.hideAll(),!0),hideOnHoverOutside:e=>{const t=null==n?void 0:n.getState().disclosureElement;return!!("function"==typeof l?l(e):null!=l?l:h||g&&(!t||!Je(t)))&&(!!e.defaultPrevented||(!h||(!t||(function(e,t,n){const r=new Event(t,n);e.dispatchEvent(r)}(t,"mouseout",e),!Je(t)||(requestAnimationFrame((()=>{Je(t)||null==n||n.hide()})),!1)))))},modal:T,portal:i,backdrop:!h&&u.backdrop})),u=x({"aria-labelledby":b},u)})),qj=yr(Fe((e=>je("div",Gj(e)))),pj);function Yj(e){const t=e.relatedTarget;return(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null}var Kj=Symbol("composite-hover");var Xj=Ve((e=>{var t=e,{store:n,focusOnHover:o=!0,blurOnHoverEnd:i=!!o}=t,a=E(t,["store","focusOnHover","blurOnHoverEnd"]);const s=_t();F(n=n||s,!1);const l=Me(),c=a.onMouseMove,u=Pe(o),d=we((e=>{if(null==c||c(e),!e.defaultPrevented&&l()&&u(e)){if(!Je(e.currentTarget)){const e=null==n?void 0:n.getState().baseElement;e&&!Ze(e)&&e.focus()}null==n||n.setActiveId(e.currentTarget.id)}})),f=a.onMouseLeave,m=Pe(i),p=we((e=>{var t;null==f||f(e),e.defaultPrevented||l()&&(function(e){const t=Yj(e);return!!t&&Y(e.currentTarget,t)}(e)||function(e){let t=Yj(e);if(!t)return!1;do{if(O(t,Kj)&&t[Kj])return!0;t=t.parentElement}while(t);return!1}(e)||u(e)&&m(e)&&(null==n||n.setActiveId(null),null==(t=null==n?void 0:n.getState().baseElement)||t.focus()))})),h=(0,r.useCallback)((e=>{e&&(e[Kj]=!0)}),[]);return a=w(x({},a),{ref:Ee(h,a.ref),onMouseMove:d,onMouseLeave:p})}));Be((e=>je("div",Xj(e))));var Zj=Ve((e=>{var t=e,{store:n,hideOnClick:r=!0,preventScrollOnKeyDown:o=!0,focusOnHover:i,blurOnHoverEnd:a}=t,s=E(t,["store","hideOnClick","preventScrollOnKeyDown","focusOnHover","blurOnHoverEnd"]);const l=mj(!0),c=Cj();F(n=n||l||c,!1);const u=s.onClick,d=Pe(r),f="hideAll"in n?n.hideAll:void 0,m=!!f,p=we((e=>{if(null==u||u(e),e.defaultPrevented)return;if(function(e){const t=e.currentTarget;if(!t)return!1;const n=t.tagName.toLowerCase();return!!e.altKey&&("a"===n||"button"===n&&"submit"===t.type||"input"===n&&"submit"===t.type)}(e))return;if(function(e){const t=e.currentTarget;if(!t)return!1;const n=ie();if(n&&!e.metaKey)return!1;if(!n&&!e.ctrlKey)return!1;const r=t.tagName.toLowerCase();return"a"===r||"button"===r&&"submit"===t.type||"input"===r&&"submit"===t.type}(e))return;if(!f)return;"menu"!==e.currentTarget.getAttribute("aria-haspopup")&&d(e)&&f()})),h=re(Vt(n,(e=>"contentElement"in e?e.contentElement:null)),"menuitem");return s=w(x({role:h},s),{onClick:p}),s=Gt(x({store:n,preventScrollOnKeyDown:o},s)),s=Xj(w(x({store:n},s),{focusOnHover(e){if(!n)return!1;if(!("function"==typeof i?i(e):null==i||i))return!1;const{baseElement:t,items:r}=n.getState();return m?(e.currentTarget.hasAttribute("aria-expanded")&&e.currentTarget.focus(),!0):!!function(e,t,n){var r;if(!e)return!1;if(Je(e))return!0;const o=null==t?void 0:t.find((e=>{var t;return e.element!==n&&"true"===(null==(t=e.element)?void 0:t.getAttribute("aria-expanded"))})),i=null==(r=null==o?void 0:o.element)?void 0:r.getAttribute("aria-controls");if(!i)return!1;const a=G(e).getElementById(i);return!(!a||!Je(a)&&!a.querySelector("[role=menuitem][aria-expanded=true]"))}(t,r,e.currentTarget)&&(e.currentTarget.focus(),!0)},blurOnHoverEnd:e=>"function"==typeof a?a(e):null!=a?a:m})),s})),Jj=Be((e=>je("div",Zj(e))));function Qj(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=Rt({value:V(e.value,null==n?void 0:n.value,e.defaultValue,!1)},e.store);return M(R({},r),{setValue:e=>r.setState("value",e)})}function eV(e={}){const[t,n]=$t(Qj,e);return function(e,t,n){return Ce(t,[n.store]),Ht(e,n,"value","setValue"),e}(t,n,e)}var tV=He(),nV=tV.useContext;tV.useScopedContext,tV.useProviderContext,tV.ContextProvider,tV.ScopedContextProvider;function rV(e,t){t?e.indeterminate=!0:e.indeterminate&&(e.indeterminate=!1)}function oV(e){return Array.isArray(e)?e.toString():e}var iV=Ve((e=>{var t=e,{store:n,name:o,value:i,checked:a,defaultChecked:s}=t,l=E(t,["store","name","value","checked","defaultChecked"]);const c=nV();n=n||c;const[u,d]=(0,r.useState)(null!=s&&s),f=Vt(n,(e=>{if(void 0!==a)return a;if(void 0===(null==e?void 0:e.value))return u;if(null!=i){if(Array.isArray(e.value)){const t=oV(i);return e.value.includes(t)}return e.value===i}return!Array.isArray(e.value)&&("boolean"==typeof e.value&&e.value)})),m=(0,r.useRef)(null),p=function(e,t){return"input"===e&&(!t||"checkbox"===t)}(Se(m,l.as||"input"),l.type),h=f?"mixed"===f:void 0,g="mixed"!==f&&f,v=j(l),[b,y]=ke();(0,r.useEffect)((()=>{const e=m.current;e&&(rV(e,h),p||(e.checked=g,void 0!==o&&(e.name=o),void 0!==i&&(e.value=`${i}`)))}),[b,h,p,g,o,i]);const _=l.onChange,S=we((e=>{if(v)return e.stopPropagation(),void e.preventDefault();if(rV(e.currentTarget,h),p||(e.currentTarget.checked=!e.currentTarget.checked,y()),null==_||_(e),e.defaultPrevented)return;const t=e.currentTarget.checked;d(t),null==n||n.setValue((e=>{if(null==i)return t;const n=oV(i);return Array.isArray(e)?t?e.includes(n)?e:[...e,n]:e.filter((e=>e!==n)):e!==n&&n}))})),C=l.onClick,k=we((e=>{null==C||C(e),e.defaultPrevented||p||S(e)}));return l=Te(l,(e=>(0,Le.jsx)(bj.Provider,{value:g,children:e})),[g]),l=w(x({role:p?void 0:"checkbox",type:p?"checkbox":void 0,"aria-checked":f},l),{ref:Ee(m,l.ref),onChange:S,onClick:k}),l=ft(x({clickOnEnter:!p},l)),x({name:p?o:void 0,value:p?i:void 0,checked:g},l)}));Fe((e=>je("input",iV(e))));function aV(e,t,n){if(void 0===t)return Array.isArray(e)?e:!!n;const r=function(e){return Array.isArray(e)?e.toString():e}(t);return Array.isArray(e)?n?e.includes(r)?e:[...e,r]:e.filter((e=>e!==r)):n?r:e!==r&&e}var sV=Ve((e=>{var t=e,{store:n,name:o,value:i,checked:a,defaultChecked:s,hideOnClick:l=!1}=t,c=E(t,["store","name","value","checked","defaultChecked","hideOnClick"]);const u=mj();F(n=n||u,!1);const d=ye(s);(0,r.useEffect)((()=>{null==n||n.setValue(o,((e=[])=>d?aV(e,i,!0):e))}),[n,o,i,d]),(0,r.useEffect)((()=>{void 0!==a&&(null==n||n.setValue(o,(e=>aV(e,i,a))))}),[n,o,i,a]);const f=eV({value:n.useState((e=>e.values[o])),setValue(e){null==n||n.setValue(o,(()=>{if(void 0===a)return e;const t=aV(e,i,a);return Array.isArray(t)&&Array.isArray(e)&&function(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;const n=Object.keys(e),r=Object.keys(t),{length:o}=n;if(r.length!==o)return!1;for(const r of n)if(e[r]!==t[r])return!1;return!0}(e,t)?e:t}))}});return c=x({role:"menuitemcheckbox"},c),c=iV(x({store:f,name:o,value:i,checked:a},c)),c=Zj(x({store:n,hideOnClick:l},c))})),lV=Be((e=>je("div",sV(e))));function cV(e,t,n){return void 0===n?e:n?t:e}var uV=Ve((e=>{var t=e,{store:n,name:o,value:i,checked:a,onChange:s,hideOnClick:l=!1}=t,c=E(t,["store","name","value","checked","onChange","hideOnClick"]);const u=mj();F(n=n||u,!1);const d=ye(c.defaultChecked);(0,r.useEffect)((()=>{null==n||n.setValue(o,((e=!1)=>cV(e,i,d)))}),[n,o,i,d]),(0,r.useEffect)((()=>{void 0!==a&&(null==n||n.setValue(o,(e=>cV(e,i,a))))}),[n,o,i,a]);const f=n.useState((e=>e.values[o]===i));return c=Te(c,(e=>(0,Le.jsx)(vj.Provider,{value:!!f,children:e})),[f]),c=x({role:"menuitemradio"},c),c=mE(x({name:o,value:i,checked:f,onChange:e=>{if(null==s||s(e),e.defaultPrevented)return;const t=e.currentTarget;null==n||n.setValue(o,(e=>cV(e,i,null!=a?a:t.checked)))}},c)),c=Zj(x({store:n,hideOnClick:l},c))})),dV=Be((e=>je("div",uV(e))));var fV=Ve((e=>e=NI(e))),mV=Fe((e=>je("div",fV(e))));var pV=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=_t();F(n=n||o,!1);const i=n.useState((e=>"horizontal"===e.orientation?"vertical":"horizontal"));return r=PP(w(x({},r),{orientation:i}))}));Fe((e=>je("hr",pV(e))));var hV=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=fj();return r=pV(x({store:n=n||o},r))})),gV=Fe((e=>je("hr",hV(e))));const vV="2px",bV="400ms",yV="cubic-bezier( 0.16, 1, 0.3, 1 )",xV=Ah(1),wV=Ah(2),EV=Ah(3),_V=Ds.gray[300],SV=Ds.gray[200],CV=Ds.gray[900],kV=`0 0 0 ${Xg.borderWidth} ${_V}, ${Xg.popoverShadow}`,PV=`0 0 0 ${Xg.borderWidth} ${CV}`,TV="minmax( 0, max-content ) 1fr",IV=Ts({"0%":{opacity:0,transform:`translateY(${vV})`},"100%":{opacity:1,transform:"translateY(0)"}}),RV=Ts({"0%":{opacity:0,transform:`translateX(-${vV})`},"100%":{opacity:1,transform:"translateX(0)"}}),MV=Ts({"0%":{opacity:0,transform:`translateY(-${vV})`},"100%":{opacity:1,transform:"translateY(0)"}}),NV=Ts({"0%":{opacity:0,transform:`translateX(${vV})`},"100%":{opacity:1,transform:"translateX(0)"}}),DV=bs(qj,{target:"e1kdzosf12"})("position:relative;z-index:1000000;display:grid;grid-template-columns:",TV,";grid-template-rows:auto;box-sizing:border-box;min-width:160px;max-width:320px;max-height:var( --popover-available-height );padding:",xV,";background-color:",Ds.ui.background,";border-radius:4px;",(e=>Ps("box-shadow:","toolbar"===e.variant?PV:kV,";",""))," overscroll-behavior:contain;overflow:auto;outline:2px solid transparent!important;animation-duration:",bV,";animation-timing-function:",yV,";will-change:transform,opacity;animation-name:",MV,";&[data-side='right']{animation-name:",NV,";}&[data-side='bottom']{animation-name:",IV,";}&[data-side='left']{animation-name:",RV,";}@media ( prefers-reduced-motion ){animation-duration:0s;}"),AV=Ps("all:unset;position:relative;min-height:",Ah(10),";box-sizing:border-box;grid-column:1/-1;display:grid;grid-template-columns:",TV,";align-items:center;@supports ( grid-template-columns: subgrid ){grid-template-columns:subgrid;}font-size:",Yb("default.fontSize"),";font-family:inherit;font-weight:normal;line-height:20px;color:",Ds.gray[900],";border-radius:",Xg.radiusBlockUi,";padding-block:",wV,";padding-inline:",EV,";scroll-margin:",xV,";user-select:none;outline:none;&[aria-disabled='true']{color:",Ds.ui.textDisabled,";cursor:not-allowed;}&[data-active-item]:not( [data-focus-visible] ):not(\n\t\t\t[aria-disabled='true']\n\t\t){background-color:",Ds.theme.accent,";color:",Ds.white,";}&[data-focus-visible]{box-shadow:0 0 0 1.5px ",Ds.theme.accent,";outline:2px solid transparent;}&:active,&[data-active]{}",DV,':not(:focus) &:not(:focus)[aria-expanded="true"]{background-color:',Ds.gray[100],";color:",Ds.gray[900],";}svg{fill:currentColor;}",""),OV=bs(Jj,{target:"e1kdzosf11"})(AV,";"),zV=bs(lV,{target:"e1kdzosf10"})(AV,";"),LV=bs(dV,{target:"e1kdzosf9"})(AV,";"),FV=bs("span",{target:"e1kdzosf8"})("grid-column:1;",zV,">&,",LV,">&{min-width:",Ah(6),";}",zV,">&,",LV,">&,&:not( :empty ){margin-inline-end:",Ah(2),";}display:flex;align-items:center;justify-content:center;color:",Ds.gray[700],";[data-active-item]:not( [data-focus-visible] )>&,[aria-disabled='true']>&{color:inherit;}"),BV=bs("div",{target:"e1kdzosf7"})("grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:",Ah(3),";pointer-events:none;"),jV=bs("div",{target:"e1kdzosf6"})("flex:1;display:inline-flex;flex-direction:column;gap:",Ah(1),";"),VV=bs("span",{target:"e1kdzosf5"})("flex:0 1 fit-content;min-width:0;width:fit-content;display:flex;align-items:center;justify-content:center;gap:",Ah(3),";color:",Ds.gray[700],";[data-active-item]:not( [data-focus-visible] ) *:not(",DV,") &,[aria-disabled='true'] *:not(",DV,") &{color:inherit;}"),HV=bs(mV,{target:"e1kdzosf4"})({name:"49aokf",styles:"display:contents"}),$V=bs(gV,{target:"e1kdzosf3"})("grid-column:1/-1;border:none;height:",Xg.borderWidth,";background-color:",(e=>"toolbar"===e.variant?CV:SV),";margin-block:",Ah(2),";margin-inline:",EV,";outline:2px solid transparent;"),WV=bs(uy,{target:"e1kdzosf2"})("width:",Ah(1.5),";",Jh({transform:"scaleX(1)"},{transform:"scaleX(-1)"}),";"),UV=bs(VS,{target:"e1kdzosf1"})("font-size:",Yb("default.fontSize"),";line-height:20px;color:inherit;"),GV=bs(VS,{target:"e1kdzosf0"})("font-size:",Yb("helpText.fontSize"),";line-height:16px;color:",Ds.gray[700],";[data-active-item]:not( [data-focus-visible] ) *:not( ",DV," ) &,[aria-disabled='true'] *:not( ",DV," ) &{color:inherit;}"),qV=(0,Uo.createContext)(void 0),YV=(0,Uo.forwardRef)((function({prefix:e,suffix:t,children:n,hideOnClick:o=!0,...i},a){const s=(0,Uo.useContext)(qV);return(0,r.createElement)(OV,{ref:a,...i,accessibleWhenDisabled:!0,hideOnClick:o,store:s?.store},(0,r.createElement)(FV,null,e),(0,r.createElement)(BV,null,(0,r.createElement)(jV,null,n),t&&(0,r.createElement)(VV,null,t)))})),KV=(0,Uo.forwardRef)((function({suffix:e,children:t,hideOnClick:n=!1,...o},i){const a=(0,Uo.useContext)(qV);return(0,r.createElement)(zV,{ref:i,...o,accessibleWhenDisabled:!0,hideOnClick:n,store:a?.store},(0,r.createElement)(Ej,{store:a?.store,render:(0,r.createElement)(FV,null),style:{width:"auto",height:"auto"}},(0,r.createElement)(uy,{icon:DS,size:24})),(0,r.createElement)(BV,null,(0,r.createElement)(jV,null,t),e&&(0,r.createElement)(VV,null,e)))})),XV=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Circle,{cx:12,cy:12,r:3})),ZV=(0,Uo.forwardRef)((function({suffix:e,children:t,hideOnClick:n=!1,...o},i){const a=(0,Uo.useContext)(qV);return(0,r.createElement)(LV,{ref:i,...o,accessibleWhenDisabled:!0,hideOnClick:n,store:a?.store},(0,r.createElement)(Ej,{store:a?.store,render:(0,r.createElement)(FV,null),style:{width:"auto",height:"auto"}},(0,r.createElement)(uy,{icon:XV,size:24})),(0,r.createElement)(BV,null,(0,r.createElement)(jV,null,t),e&&(0,r.createElement)(VV,null,e)))})),JV=(0,Uo.forwardRef)((function(e,t){const n=(0,Uo.useContext)(qV);return(0,r.createElement)(HV,{ref:t,...e,store:n?.store})})),QV=os(((e,t)=>{var n;const{open:o,defaultOpen:i=!1,onOpenChange:a,placement:s,trigger:l,gutter:c,children:d,shift:f,modal:m=!0,variant:p,...h}=rs(e,"DropdownMenu"),g=(0,Uo.useContext)(qV),v=(0,u.isRTL)()?"rtl":"ltr";let b=null!==(n=e.placement)&&void 0!==n?n:g?.store?"right-start":"bottom-start";"rtl"===v&&(/right/.test(b)?b=b.replace("right","left"):/left/.test(b)&&(b=b.replace("left","right")));const y=Ij({parent:g?.store,open:o,defaultOpen:i,placement:b,focusLoop:!0,setOpen(e){a?.(e)},rtl:"rtl"===v}),x=(0,Uo.useMemo)((()=>({store:y,variant:p})),[y,p]),w=y.useState("placement").split("-")[0];!y.parent||(0,Uo.isValidElement)(l)&&YV===l.type||console.warn("For nested DropdownMenus, the `trigger` should always be a `DropdownMenuItem`.");const E=(0,Uo.useCallback)((e=>(e.preventDefault(),!0)),[]),_=(0,Uo.useMemo)((()=>({dir:v,style:{direction:v}})),[v]);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)($j,{ref:t,store:y,render:y.parent?(0,Uo.cloneElement)(l,{suffix:(0,r.createElement)(r.Fragment,null,l.props.suffix,(0,r.createElement)(WV,{"aria-hidden":"true",icon:Wj,size:24,preserveAspectRatio:"xMidYMid slice"}))}):l}),(0,r.createElement)(DV,{...h,modal:m,store:y,gutter:null!=c?c:y.parent?0:8,shift:null!=f?f:y.parent?-4:0,hideOnHoverOutside:!1,"data-side":w,variant:p,wrapperProps:_,hideOnEscape:E,unmountOnHide:!0},(0,r.createElement)(qV.Provider,{value:x},d)))}),"DropdownMenu"),eH=(0,Uo.forwardRef)((function(e,t){const n=(0,Uo.useContext)(qV);return(0,r.createElement)($V,{ref:t,...e,store:n?.store,variant:n?.variant})})),tH=(0,Uo.forwardRef)((function(e,t){return(0,r.createElement)(UV,{numberOfLines:1,ref:t,...e})})),nH=(0,Uo.forwardRef)((function(e,t){return(0,r.createElement)(GV,{numberOfLines:2,ref:t,...e})}));const rH=bs("div",{target:"e1krjpvb0"})({name:"1a3idx0",styles:"color:var( --wp-components-color-foreground, currentColor )"});function oH(e){!function(e){for(const[t,n]of Object.entries(e))void 0!==n&&Bg(n).isValid()}(e);const t={...iH(e.accent),...aH(e.background)};return function(e){for(const t of Object.values(e));}(function(e,t){const n=e.background||Ds.white,r=e.accent||"#3858e9",o=t.foreground||Ds.gray[900],i=t.gray||Ds.gray;return{accent:Bg(n).isReadable(r)?void 0:`The background color ("${n}") does not have sufficient contrast against the accent color ("${r}").`,foreground:Bg(n).isReadable(o)?void 0:`The background color provided ("${n}") does not have sufficient contrast against the standard foreground colors.`,grays:Bg(n).contrast(i[600])>=3&&Bg(n).contrast(i[700])>=4.5?void 0:`The background color provided ("${n}") cannot generate a set of grayscale foreground colors with sufficient contrast. Try adjusting the color to be lighter or darker.`}}(e,t)),{colors:t}}function iH(e){return e?{accent:e,accentDarker10:Bg(e).darken(.1).toHex(),accentDarker20:Bg(e).darken(.2).toHex(),accentInverted:sH(e)}:{}}function aH(e){if(!e)return{};const t=sH(e);return{background:e,foreground:t,foregroundInverted:sH(t),gray:lH(e,t)}}function sH(e){return Bg(e).isDark()?Ds.white:Ds.gray[900]}function lH(e,t){const n=Bg(e).isDark()?"lighten":"darken",r=Math.abs(Bg(e).toHsl().l-Bg(t).toHsl().l)/100,o={};return Object.entries({100:.06,200:.121,300:.132,400:.2,600:.42,700:.543,800:.821}).forEach((([t,i])=>{o[parseInt(t)]=Bg(e)[n](i/.884*r).toHex()})),o}Vg([Hg,zE]);const cH=function({accent:e,background:t,className:n,...o}){const i=ns(),a=(0,Uo.useMemo)((()=>i(...(({colors:e})=>{const t=Object.entries(e.gray||{}).map((([e,t])=>`--wp-components-color-gray-${e}: ${t};`)).join("");return[Ps("--wp-components-color-accent:",e.accent,";--wp-components-color-accent-darker-10:",e.accentDarker10,";--wp-components-color-accent-darker-20:",e.accentDarker20,";--wp-components-color-accent-inverted:",e.accentInverted,";--wp-components-color-background:",e.background,";--wp-components-color-foreground:",e.foreground,";--wp-components-color-foreground-inverted:",e.foregroundInverted,";",t,";","")]})(oH({accent:e,background:t})),n)),[e,t,n,i]);return(0,r.createElement)(rH,{className:a,...o})},uH=(0,Uo.createContext)(void 0),dH=()=>(0,Uo.useContext)(uH);const fH=bs("div",{target:"enfox0g2"})({name:"xbm4q1",styles:"display:flex;align-items:stretch;flex-direction:row;&[aria-orientation='vertical']{flex-direction:column;}"}),mH=bs(_F,{target:"enfox0g1"})("&{display:inline-flex;align-items:center;position:relative;border-radius:0;height:",Ah(12),";background:transparent;border:none;box-shadow:none;cursor:pointer;padding:3px ",Ah(4),";margin-left:0;font-weight:500;&[aria-disabled='true']{cursor:default;opacity:0.3;}&:hover{color:",Ds.theme.accent,";}&:focus:not( :disabled ){position:relative;box-shadow:none;outline:none;}&::after{content:'';position:absolute;right:0;bottom:0;left:0;pointer-events:none;background:",Ds.theme.accent,";height:calc( 0 * var( --wp-admin-border-width-focus ) );border-radius:0;transition:all 0.1s linear;",As("transition"),";}&[aria-selected='true']::after{height:calc( 1 * var( --wp-admin-border-width-focus ) );outline:2px solid transparent;outline-offset:-1px;}&::before{content:'';position:absolute;top:",Ah(3),";right:",Ah(3),";bottom:",Ah(3),";left:",Ah(3),";pointer-events:none;box-shadow:0 0 0 0 transparent;border-radius:2px;transition:all 0.1s linear;",As("transition"),";}&:focus-visible::before{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Ds.theme.accent,";outline:2px solid transparent;}}"),pH=bs(CF,{target:"enfox0g0"})("&:focus{box-shadow:none;outline:none;}&:focus-visible{border-radius:2px;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Ds.theme.accent,";outline:2px solid transparent;outline-offset:0;}"),hH=(0,Uo.forwardRef)((function({children:e,tabId:t,disabled:n,render:o,...i},a){const s=dH();if(!s)return null;const{store:l,instanceId:c}=s,u=`${c}-${t}`;return(0,r.createElement)(mH,{ref:a,store:l,id:u,disabled:n,render:o,...i},e)})),gH=(0,Uo.forwardRef)((function({children:e,...t},n){const o=dH();if(!o)return null;const{store:i}=o,{selectedId:a,activeId:s,selectOnMove:l}=i.useState(),{setActiveId:c}=i;return(0,r.createElement)(wF,{ref:n,store:i,render:(0,r.createElement)(fH,null),onBlur:()=>{l&&a!==s&&c(a)},...t},e)})),vH=(0,Uo.forwardRef)((function({children:e,tabId:t,focusable:n=!0,...o},i){const a=dH();if(!a)return null;const{store:s,instanceId:l}=a,c=`${l}-${t}`,u=s.useState((e=>e.selectedId));return(0,r.createElement)(pH,{ref:i,store:s,id:`${c}-view`,tabId:c,focusable:n,...o},u===c&&e)}));function bH({selectOnMove:e=!0,initialTabId:t,orientation:n="horizontal",onSelect:o,children:i,selectedTabId:a}){const s=(0,d.useInstanceId)(bH,"tabs"),l=hF({selectOnMove:e,orientation:n,defaultSelectedId:t&&`${s}-${t}`,setSelectedId:e=>{const t="string"==typeof e?e.replace(`${s}-`,""):e;o?.(t)},selectedId:a&&`${s}-${a}`}),c=void 0!==a,{items:u,selectedId:f,activeId:m}=l.useState(),{setSelectedId:p,setActiveId:h}=l,g=(0,Uo.useRef)(!1);u.length>0&&(g.current=!0);const v=u.find((e=>e.id===f)),b=u.find((e=>!e.dimmed)),y=u.find((e=>e.id===`${s}-${t}`));(0,Uo.useLayoutEffect)((()=>{if(!c&&(!t||y)&&!u.find((e=>e.id===f))){if(y&&!y.dimmed)return void p(y?.id);b?p(b.id):g.current&&p(null)}}),[b,y,t,c,u,f,p]),(0,Uo.useLayoutEffect)((()=>{v?.dimmed&&(c?p(null):!y||y.dimmed?b&&p(b.id):p(y.id))}),[b,y,c,v?.dimmed,p]),(0,Uo.useLayoutEffect)((()=>{c&&g.current&&a&&!v&&p(null)}),[c,v,a,p]),(0,Uo.useEffect)((()=>{c&&requestAnimationFrame((()=>{const e=u?.[0]?.element?.ownerDocument.activeElement;e&&u.some((t=>e===t.element))&&m!==e.id&&h(e.id)}))}),[m,c,u,h]);const x=(0,Uo.useMemo)((()=>({store:l,instanceId:s})),[l,s]);return(0,r.createElement)(uH.Provider,{value:x},i)}bH.TabList=gH,bH.Tab=hH,bH.TabPanel=vH,bH.Context=uH;const yH=bH,xH=window.wp.privateApis,{lock:wH,unlock:EH}=(0,xH.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/components"),_H={};wH(_H,{CompositeV2:al,CompositeGroupV2:DI,CompositeItemV2:qt,CompositeRowV2:ll,useCompositeStoreV2:rl,CustomSelectControl:wM,__experimentalPopoverLegacyPositionToPlacement:Xo,createPrivateSlotFill:e=>{const t=Symbol(e);return{privateKey:t,...fw(t)}},ComponentsContext:di,ProgressBar:uj,Tabs:yH,Theme:cH,DropdownMenuV2:QV,DropdownMenuGroupV2:JV,DropdownMenuItemV2:YV,DropdownMenuCheckboxItemV2:KV,DropdownMenuRadioItemV2:ZV,DropdownMenuSeparatorV2:eH,DropdownMenuItemLabelV2:tH,DropdownMenuItemHelpTextV2:nH,kebabCase:Wy})})(),(window.wp=window.wp||{}).components=i})(); \ No newline at end of file
+ `,WL=ba("svg",{target:"ea4tfvq2"})("width:",bv.spinnerSize,"px;height:",bv.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",Na.theme.accent,";overflow:visible;opacity:1;background-color:transparent;"),UL={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},GL=ba("circle",{target:"ea4tfvq1"})(UL,";stroke:",Na.gray[300],";"),KL=ba("path",{target:"ea4tfvq0"})(UL,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",HL,";");const YL=(0,Uo.forwardRef)((function({className:e,...t},n){return(0,ze.jsxs)(WL,{className:s("components-spinner",e),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...t,ref:n,children:[(0,ze.jsx)(GL,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,ze.jsx)(KL,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"})]})}));const qL=oa((function(e,t){const n=ME(e);return(0,ze.jsx)(ya,{...n,ref:t})}),"Surface");function XL(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=tl(M(I({},e),{orientation:V(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:V(e.focusLoop,null==n?void 0:n.focusLoop,!0)})),o=Ua(),i=It(M(I({},r.getState()),{selectedId:V(e.selectedId,null==n?void 0:n.selectedId,e.defaultSelectedId,void 0),selectOnMove:V(e.selectOnMove,null==n?void 0:n.selectOnMove,!0)}),r,e.store);return Mt(i,(()=>At(i,["moves"],(()=>{const{activeId:e,selectOnMove:t}=i.getState();if(!t)return;if(!e)return;const n=r.item(e);n&&(n.dimmed||n.disabled||i.setState("selectedId",n.id))})))),Mt(i,(()=>Dt(i,["selectedId"],(e=>i.setState("activeId",e.selectedId))))),Mt(i,(()=>At(i,["selectedId","renderedItems"],(e=>{if(void 0!==e.selectedId)return;const{activeId:t,renderedItems:n}=i.getState(),o=r.item(t);if(!o||o.disabled||o.dimmed){const e=n.find((e=>!e.disabled&&!e.dimmed));i.setState("selectedId",null==e?void 0:e.id)}else i.setState("selectedId",o.id)})))),Mt(i,(()=>At(i,["renderedItems"],(e=>{const t=e.renderedItems;if(t.length)return At(o,["renderedItems"],(e=>{const n=e.renderedItems,r=n.some((e=>!e.tabId));r&&n.forEach(((e,n)=>{if(e.tabId)return;const r=t[n];r&&o.renderItem(M(I({},e),{tabId:r.id}))}))}))})))),M(I(I({},r),i),{panels:o,setSelectedId:e=>i.setState("selectedId",e),select:e=>{i.setState("selectedId",e),r.move(e)}})}function ZL(e={}){const[t,n]=Ht(XL,e);return function(e,t,n){$t(e=nl(e,t,n),n,"selectedId","setSelectedId"),$t(e,n,"selectOnMove");const[r,o]=Ht((()=>e.panels),{});return ke(o,[e,o]),(0,c.useMemo)((()=>w(y({},e),{panels:r})),[e,r])}(t,n,e)}var JL=$e([kt],[jt]),QL=(JL.useContext,JL.useScopedContext),eF=JL.useProviderContext,tF=(JL.ContextProvider,JL.ScopedContextProvider),nF=Ve((e=>{var t=e,{store:n}=t,r=_(t,["store"]);const o=eF();L(n=n||o,!1);const i=n.useState((e=>"both"===e.orientation?void 0:e.orientation));return r=Pe(r,(e=>(0,ze.jsx)(tF,{value:n,children:e})),[n]),r=y({role:"tablist","aria-orientation":i},r),r=il(y({store:n},r))})),rF=Le((e=>Be("div",nF(e))));var oF=Ve((e=>{var t=e,{store:n,accessibleWhenDisabled:r=!0,getItem:o}=t,i=_(t,["store","accessibleWhenDisabled","getItem"]);const s=QL();L(n=n||s,!1);const a=Se(),l=i.id||a,u=B(i),d=(0,c.useCallback)((e=>{const t=w(y({},e),{dimmed:u});return o?o(t):t}),[u,o]),p=i.onClick,h=we((e=>{null==p||p(e),e.defaultPrevented||null==n||n.setSelectedId(l)})),f=n.panels.useState((e=>{var t;return null==(t=e.items.find((e=>e.tabId===l)))?void 0:t.id})),m=n.useState((e=>!!l&&e.selectedId===l));return i=w(y({id:l,role:"tab","aria-selected":m,"aria-controls":f||void 0},i),{onClick:h}),i=Gt(w(y({store:n},i),{accessibleWhenDisabled:r,getItem:d,shouldRegisterItem:!!a&&i.shouldRegisterItem}))})),iF=Fe((e=>Be("button",oF(e))));var sF=Ve((e=>{var t=e,{store:n,tabId:r,getItem:o}=t,i=_(t,["store","tabId","getItem"]);const s=eF();L(n=n||s,!1);const a=(0,c.useRef)(null),l=Se(i.id),[u,d]=(0,c.useState)(!1);(0,c.useEffect)((()=>{const e=a.current;if(!e)return;const t=Ke(e);d(!!t.length)}),[]);const p=(0,c.useCallback)((e=>{const t=w(y({},e),{id:l||e.id,tabId:r});return o?o(t):t}),[l,r,o]);i=Pe(i,(e=>(0,ze.jsx)(tF,{value:n,children:e})),[n]);const h=n.panels.useState((()=>{var e;return r||(null==(e=null==n?void 0:n.panels.item(l))?void 0:e.tabId)})),f=n.useState((e=>!!h&&e.selectedId===h));i=w(y({id:l,role:"tabpanel","aria-labelledby":h||void 0},i),{ref:_e(a,i.ref)});const m=Xt({open:f});return i=ct(y({focusable:!u},i)),i=qn(y({store:m},i)),i=vt(w(y({store:n.panels},i),{getItem:p}))})),aF=Le((e=>Be("div",sF(e))));const lF=e=>{if(null!=e)return e.match(/^tab-panel-[0-9]*-(.*)/)?.[1]},cF=(0,Uo.forwardRef)((({className:e,children:t,tabs:n,selectOnMove:r=!0,initialTabName:o,orientation:i="horizontal",activeClass:a="is-active",onSelect:c},u)=>{const d=(0,l.useInstanceId)(cF,"tab-panel"),p=(0,Uo.useCallback)((e=>{if(void 0!==e)return`${d}-${e}`}),[d]),h=ZL({setSelectedId:e=>{if(null==e)return;const t=n.find((t=>p(t.name)===e));if(t?.disabled||t===g)return;const r=lF(e);void 0!==r&&c?.(r)},orientation:i,selectOnMove:r,defaultSelectedId:p(o)}),f=lF(h.useState("selectedId")),m=(0,Uo.useCallback)((e=>{h.setState("selectedId",p(e))}),[p,h]),g=n.find((({name:e})=>e===f)),v=(0,l.usePrevious)(f);return(0,Uo.useEffect)((()=>{v!==f&&f===o&&f&&c?.(f)}),[f,o,c,v]),(0,Uo.useLayoutEffect)((()=>{if(g)return;const e=n.find((e=>e.name===o));if(!o||e)if(e&&!e.disabled)m(e.name);else{const e=n.find((e=>!e.disabled));e&&m(e.name)}}),[n,g,o,d,m]),(0,Uo.useEffect)((()=>{if(!g?.disabled)return;const e=n.find((e=>!e.disabled));e&&m(e.name)}),[n,g?.disabled,m,d]),(0,ze.jsxs)("div",{className:e,ref:u,children:[(0,ze.jsx)(rF,{store:h,className:"components-tab-panel__tabs",children:n.map((e=>(0,ze.jsx)(iF,{id:p(e.name),className:s("components-tab-panel__tabs-item",e.className,{[a]:e.name===f}),disabled:e.disabled,"aria-controls":`${p(e.name)}-view`,render:(0,ze.jsx)(Hx,{icon:e.icon,label:e.icon&&e.title,showTooltip:!!e.icon}),children:!e.icon&&e.title},e.name)))}),g&&(0,ze.jsx)(aF,{id:`${p(g.name)}-view`,store:h,tabId:p(g.name),className:"components-tab-panel__tab-content",children:t(g)})]})})),uF=cF;const dF=(0,Uo.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,__next40pxDefaultSize:r=!1,label:o,hideLabelFromVision:i,value:a,help:c,id:u,className:d,onChange:p,type:h="text",...f}=e,m=(0,l.useInstanceId)(dF,"inspector-text-control",u);return(0,ze.jsx)(Dx,{__nextHasNoMarginBottom:n,label:o,hideLabelFromVision:i,id:m,help:c,className:d,children:(0,ze.jsx)("input",{className:s("components-text-control__input",{"is-next-40px-default-size":r}),type:h,id:m,value:a,onChange:e=>p(e.target.value),"aria-describedby":c?m+"__help":void 0,ref:t,...f})})})),pF=dF,hF=Ea("box-shadow:0 0 0 transparent;border-radius:",bv.radiusBlockUi,";border:",bv.borderWidth," solid ",Na.ui.border,";@media not ( prefers-reduced-motion ){transition:box-shadow 0.1s linear;}",""),fF=Ea("border-color:",Na.theme.accent,";box-shadow:0 0 0 calc( ",bv.borderWidthFocus," - ",bv.borderWidth," ) ",Na.theme.accent,";outline:2px solid transparent;",""),mF={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"},gF=Ea("display:block;font-family:",_x("default.fontFamily"),";padding:6px 8px;",hF,";font-size:",_x("mobileTextMinFontSize"),";line-height:normal;",`@media (min-width: ${mF["small"]})`,"{font-size:",_x("default.fontSize"),";line-height:normal;}&:focus{",fF,";}&::-webkit-input-placeholder{color:",Na.ui.darkGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Na.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",Na.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Na.ui.lightGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Na.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",Na.ui.lightGrayPlaceholder,";}}","");const vF=ba("textarea",{target:"e1w5nnrk0"})("width:100%;",gF,";");const bF=(0,Uo.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:s,onChange:a,rows:c=4,className:u,...d}=e,p=`inspector-textarea-control-${(0,l.useInstanceId)(bF)}`;return(0,ze.jsx)(Dx,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:p,help:s,className:u,children:(0,ze.jsx)(vF,{className:"components-textarea-control__input",id:p,rows:c,onChange:e=>a(e.target.value),"aria-describedby":s?p+"__help":void 0,value:i,ref:t,...d})})})),xF=bF,yF=e=>{const{text:t="",highlight:n=""}=e,r=n.trim();if(!r)return(0,ze.jsx)(ze.Fragment,{children:t});const o=new RegExp(`(${wy(r)})`,"gi");return(0,Uo.createInterpolateElement)(t.replace(o,"<mark>$&</mark>"),{mark:(0,ze.jsx)("mark",{})})},wF=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})});const _F=function(e){const{children:t}=e;return(0,ze.jsxs)("div",{className:"components-tip",children:[(0,ze.jsx)(Y_,{icon:wF}),(0,ze.jsx)("p",{children:t})]})};const SF=(0,Uo.forwardRef)((function e({__nextHasNoMarginBottom:t,label:n,checked:r,help:o,className:i,onChange:s,disabled:a},c){const u=`inspector-toggle-control-${(0,l.useInstanceId)(e)}`,d=na()("components-toggle-control",i,!t&&Ea({marginBottom:ng(3)},"",""));let p,h;return o&&("function"==typeof o?void 0!==r&&(h=o(r)):h=o,h&&(p=u+"__help")),(0,ze.jsx)(Dx,{id:u,help:h,className:d,__nextHasNoMarginBottom:!0,children:(0,ze.jsxs)(ry,{justify:"flex-start",spacing:3,children:[(0,ze.jsx)(yD,{id:u,checked:r,onChange:function(e){s(e.target.checked)},"aria-describedby":p,disabled:a,ref:c}),(0,ze.jsx)(hg,{as:"label",htmlFor:u,className:"components-toggle-control__label",children:n})]})})}));var CF=$e([kt],[jt]),kF=CF.useContext,jF=(CF.useScopedContext,CF.useProviderContext),EF=(CF.ContextProvider,CF.ScopedContextProvider),PF=Ve((e=>{var t=e,{store:n}=t,r=_(t,["store"]);const o=kF();return r=Gt(y({store:n=n||o},r))})),TF=Fe((e=>Be("button",PF(e))));const IF=(0,Uo.createContext)(void 0);const MF=(0,Uo.forwardRef)((function({children:e,as:t,...n},r){const o=(0,Uo.useContext)(IF),i="function"==typeof e;if(!i&&!t)return null;const s={...n,ref:r,"data-toolbar-item":!0};if(!o)return t?(0,ze.jsx)(t,{...s,children:e}):i?e(s):null;const a=i?e:t&&(0,ze.jsx)(t,{children:e});return(0,ze.jsx)(TF,{...s,store:o,render:a})})),RF=({children:e,className:t})=>(0,ze.jsx)("div",{className:t,children:e});const NF=(0,Uo.forwardRef)((function({children:e,className:t,containerClassName:n,extraProps:r,isActive:o,isDisabled:i,title:a,...l},c){return(0,Uo.useContext)(IF)?(0,ze.jsx)(MF,{className:s("components-toolbar-button",t),...r,...l,ref:c,children:t=>(0,ze.jsx)(Hx,{label:a,isPressed:o,disabled:i,...t,children:e})}):(0,ze.jsx)(RF,{className:n,children:(0,ze.jsx)(Hx,{ref:c,icon:l.icon,label:a,shortcut:l.shortcut,"data-subscript":l.subscript,onClick:e=>{e.stopPropagation(),l.onClick&&l.onClick(e)},className:s("components-toolbar__control",t),isPressed:o,disabled:i,"data-toolbar-item":!0,...r,...l,children:e})})})),AF=({className:e,children:t,...n})=>(0,ze.jsx)("div",{className:e,...n,children:t});const DF=function({controls:e=[],toggleProps:t,...n}){const r=t=>(0,ze.jsx)(wT,{controls:e,toggleProps:{...t,"data-toolbar-item":!0},...n});return(0,Uo.useContext)(IF)?(0,ze.jsx)(MF,{...t,children:r}):r(t)};const OF=function({controls:e=[],children:t,className:n,isCollapsed:r,title:o,...i}){const a=(0,Uo.useContext)(IF);if(!(e&&e.length||t))return null;const l=s(a?"components-toolbar-group":"components-toolbar",n);let c;var u;return u=e,c=Array.isArray(u)&&Array.isArray(u[0])?e:[e],r?(0,ze.jsx)(DF,{label:o,controls:c,className:l,children:t,...i}):(0,ze.jsxs)(AF,{className:l,...i,children:[c?.flatMap(((e,t)=>e.map(((e,n)=>(0,ze.jsx)(NF,{containerClassName:t>0&&0===n?"has-left-divider":void 0,...e},[t,n].join()))))),t]})};function zF(e={}){var t;const n=null==(t=e.store)?void 0:t.getState();return tl(M(I({},e),{orientation:V(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:V(e.focusLoop,null==n?void 0:n.focusLoop,!0)}))}function LF(e={}){const[t,n]=Ht(zF,e);return function(e,t,n){return nl(e,t,n)}(t,n,e)}var FF=Ve((e=>{var t=e,{store:n,orientation:r,virtualFocus:o,focusLoop:i,rtl:s}=t,a=_(t,["store","orientation","virtualFocus","focusLoop","rtl"]);const l=jF(),c=LF({store:n=n||l,orientation:r,virtualFocus:o,focusLoop:i,rtl:s}),u=c.useState((e=>"both"===e.orientation?void 0:e.orientation));return a=Pe(a,(e=>(0,ze.jsx)(EF,{value:c,children:e})),[c]),a=y({role:"toolbar","aria-orientation":u},a),a=il(y({store:c},a))})),BF=Le((e=>Be("div",FF(e))));const VF=(0,Uo.forwardRef)((function({label:e,...t},n){const r=LF({focusLoop:!0,rtl:(0,a.isRTL)()});return(0,ze.jsx)(IF.Provider,{value:r,children:(0,ze.jsx)(BF,{ref:n,"aria-label":e,store:r,...t})})}));const $F=(0,Uo.forwardRef)((function({className:e,label:t,variant:n,...r},o){const i=void 0!==n,a=(0,Uo.useMemo)((()=>i?{}:{DropdownMenu:{variant:"toolbar"},Dropdown:{variant:"toolbar"}}),[i]);if(!t){Ko()("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"});const{title:t,...n}=r;return(0,ze.jsx)(OF,{isCollapsed:!1,...n,className:e})}const l=s("components-accessible-toolbar",e,n&&`is-${n}`);return(0,ze.jsx)(hi,{value:a,children:(0,ze.jsx)(VF,{className:l,label:t,ref:o,...r})})}));const HF=(0,Uo.forwardRef)((function(e,t){return(0,Uo.useContext)(IF)?(0,ze.jsx)(MF,{ref:t,...e.toggleProps,children:t=>(0,ze.jsx)(wT,{...e,popoverProps:{...e.popoverProps},toggleProps:t})}):(0,ze.jsx)(wT,{...e})}));const WF={columns:e=>Ea("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:Ea("column-gap:",ng(2),";row-gap:",ng(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},UF={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},GF=Ea(WF.item.fullWidth," gap:",ng(2),";.components-dropdown-menu{margin:",ng(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",ng(6),";}",""),KF={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},YF=Ea(WF.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",Cx,"{margin-bottom:0;",jx,":last-child{margin-bottom:0;}}",Mx,"{margin-bottom:0;}&& ",tb,"{label{line-height:1.4em;}}",""),qF={name:"eivff4",styles:"display:none"},XF={name:"16gsvie",styles:"min-width:200px"},ZF=ba("span",{target:"ews648u0"})("color:",Na.theme.accentDarker10,";font-size:11px;font-weight:500;line-height:1.4;",yg({marginLeft:ng(3)})," text-transform:uppercase;"),JF=Ea("color:",Na.gray[900],";&&[aria-disabled='true']{color:",Na.gray[700],";opacity:1;&:hover{color:",Na.gray[700],";}",ZF,"{opacity:0.3;}}",""),QF=()=>{},eB=(0,Uo.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:QF,deregisterPanelItem:QF,flagItemCustomization:QF,registerResetAllFilter:QF,deregisterResetAllFilter:QF,areAllOptionalControlsHidden:!0}),tB=()=>(0,Uo.useContext)(eB);const nB=({itemClassName:e,items:t,toggleItem:n})=>{if(!t.length)return null;const r=(0,ze.jsx)(ZF,{"aria-hidden":!0,children:(0,a.__)("Reset")});return(0,ze.jsx)(ze.Fragment,{children:t.map((([t,o])=>o?(0,ze.jsx)(FD,{className:e,role:"menuitem",label:(0,a.sprintf)((0,a.__)("Reset %s"),t),onClick:()=>{n(t),(0,gy.speak)((0,a.sprintf)((0,a.__)("%s reset to default"),t),"assertive")},suffix:r,children:t},t):(0,ze.jsx)(FD,{icon:YC,className:e,role:"menuitemcheckbox",isSelected:!0,"aria-disabled":!0,children:t},t)))})},rB=({items:e,toggleItem:t})=>e.length?(0,ze.jsx)(ze.Fragment,{children:e.map((([e,n])=>{const r=n?(0,a.sprintf)((0,a.__)("Hide and reset %s"),e):(0,a.sprintf)((0,a.__)("Show %s"),e);return(0,ze.jsx)(FD,{icon:n?YC:null,isSelected:n,label:r,onClick:()=>{n?(0,gy.speak)((0,a.sprintf)((0,a.__)("%s hidden and reset to default"),e),"assertive"):(0,gy.speak)((0,a.sprintf)((0,a.__)("%s is now visible"),e),"assertive"),t(e)},role:"menuitemcheckbox",children:e},e)}))}):null,oB=oa(((e,t)=>{const{areAllOptionalControlsHidden:n,defaultControlsItemClassName:r,dropdownMenuClassName:o,hasMenuItems:i,headingClassName:s,headingLevel:l=2,label:c,menuItems:u,resetAll:d,toggleItem:p,dropdownMenuProps:h,...f}=function(e){const{className:t,headingLevel:n=2,...r}=ra(e,"ToolsPanelHeader"),o=na(),i=(0,Uo.useMemo)((()=>o(GF,t)),[t,o]),s=(0,Uo.useMemo)((()=>o(XF)),[o]),a=(0,Uo.useMemo)((()=>o(KF)),[o]),l=(0,Uo.useMemo)((()=>o(JF)),[o]),{menuItems:c,hasMenuItems:u,areAllOptionalControlsHidden:d}=tB();return{...r,areAllOptionalControlsHidden:d,defaultControlsItemClassName:l,dropdownMenuClassName:s,hasMenuItems:u,headingClassName:a,headingLevel:n,menuItems:c,className:i}}(e);if(!c)return null;const m=Object.entries(u?.default||{}),g=Object.entries(u?.optional||{}),v=n?Cg:pP,b=(0,a.sprintf)((0,a._x)("%s options","Button label to reveal tool panel options"),c),x=n?(0,a.__)("All options are currently hidden"):void 0,y=[...m,...g].some((([,e])=>e));return(0,ze.jsxs)(ry,{...f,ref:t,children:[(0,ze.jsx)(ok,{level:l,className:s,children:c}),i&&(0,ze.jsx)(wT,{...h,icon:v,label:b,menuProps:{className:o},toggleProps:{size:"small",describedBy:x},children:()=>(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsxs)(zD,{label:c,children:[(0,ze.jsx)(nB,{items:m,toggleItem:p,itemClassName:r}),(0,ze.jsx)(rB,{items:g,toggleItem:p})]}),(0,ze.jsx)(zD,{children:(0,ze.jsx)(FD,{"aria-disabled":!y,variant:"tertiary",onClick:()=>{y&&(d(),(0,gy.speak)((0,a.__)("All options reset"),"assertive"))},children:(0,a.__)("Reset all")})})]})})]})}),"ToolsPanelHeader"),iB=oB,sB=({panelItems:e,shouldReset:t,currentMenuItems:n,menuItemOrder:r})=>{const o={default:{},optional:{}},i={default:{},optional:{}};return e.forEach((({hasValue:e,isShownByDefault:r,label:i})=>{const s=r?"default":"optional",a=n?.[s]?.[i],l=a||e();o[s][i]=!t&&l})),r.forEach((e=>{o.default.hasOwnProperty(e)&&(i.default[e]=o.default[e]),o.optional.hasOwnProperty(e)&&(i.optional[e]=o.optional[e])})),Object.keys(o.default).forEach((e=>{i.default.hasOwnProperty(e)||(i.default[e]=o.default[e])})),Object.keys(o.optional).forEach((e=>{i.optional.hasOwnProperty(e)||(i.optional[e]=o.optional[e])})),i},aB=e=>e&&0===Object.keys(e).length;function lB(e){const{className:t,headingLevel:n=2,resetAll:r,panelId:o,hasInnerWrapper:i=!1,shouldRenderPlaceholderItems:s=!1,__experimentalFirstVisibleItemClass:a,__experimentalLastVisibleItemClass:l,...c}=ra(e,"ToolsPanel"),u=(0,Uo.useRef)(!1),d=u.current;(0,Uo.useEffect)((()=>{d&&(u.current=!1)}),[d]);const[p,h]=(0,Uo.useState)([]),[f,m]=(0,Uo.useState)([]),[g,v]=(0,Uo.useState)([]),b=(0,Uo.useCallback)((e=>{h((t=>{const n=[...t],r=n.findIndex((t=>t.label===e.label));return-1!==r&&n.splice(r,1),[...n,e]})),m((t=>t.includes(e.label)?t:[...t,e.label]))}),[h,m]),x=(0,Uo.useCallback)((e=>{h((t=>{const n=[...t],r=n.findIndex((t=>t.label===e));return-1!==r&&n.splice(r,1),n}))}),[h]),y=(0,Uo.useCallback)((e=>{v((t=>[...t,e]))}),[v]),w=(0,Uo.useCallback)((e=>{v((t=>t.filter((t=>t!==e))))}),[v]),[_,S]=(0,Uo.useState)({default:{},optional:{}});(0,Uo.useEffect)((()=>{S((e=>sB({panelItems:p,shouldReset:!1,currentMenuItems:e,menuItemOrder:f})))}),[p,S,f]);const C=(0,Uo.useCallback)(((e,t,n="default")=>{S((r=>({...r,[n]:{...r[n],[t]:e}})))}),[S]),[k,j]=(0,Uo.useState)(!1);(0,Uo.useEffect)((()=>{if(aB(_?.default)&&!aB(_?.optional)){const e=!Object.entries(_.optional).some((([,e])=>e));j(e)}}),[_,j]);const E=na(),P=(0,Uo.useMemo)((()=>{const e=i&&Ea(">div:not( :first-of-type ){display:grid;",WF.columns(2)," ",WF.spacing," ",WF.item.fullWidth,";}","");const n=aB(_?.default)&&k&&UF;return E((e=>Ea(WF.columns(e)," ",WF.spacing," border-top:",bv.borderWidth," solid ",Na.gray[300],";margin-top:-1px;padding:",ng(4),";",""))(2),e,n,t)}),[k,t,E,i,_]),T=(0,Uo.useCallback)((e=>{const t=p.find((t=>t.label===e));if(!t)return;const n=t.isShownByDefault?"default":"optional",r={..._,[n]:{..._[n],[e]:!_[n][e]}};S(r)}),[_,p,S]),I=(0,Uo.useCallback)((()=>{"function"==typeof r&&(u.current=!0,r(g));const e=sB({panelItems:p,menuItemOrder:f,shouldReset:!0});S(e)}),[p,g,r,S,f]),M=e=>{const t=_.optional||{},n=e.find((e=>e.isShownByDefault||!!t[e.label]));return n?.label},R=M(p),N=M([...p].reverse());return{...c,headingLevel:n,panelContext:(0,Uo.useMemo)((()=>({areAllOptionalControlsHidden:k,deregisterPanelItem:x,deregisterResetAllFilter:w,firstDisplayedItem:R,flagItemCustomization:C,hasMenuItems:!!p.length,isResetting:u.current,lastDisplayedItem:N,menuItems:_,panelId:o,registerPanelItem:b,registerResetAllFilter:y,shouldRenderPlaceholderItems:s,__experimentalFirstVisibleItemClass:a,__experimentalLastVisibleItemClass:l})),[k,x,w,R,C,N,_,o,p,y,b,s,a,l]),resetAllItems:I,toggleItem:T,className:P}}const cB=oa(((e,t)=>{const{children:n,label:r,panelContext:o,resetAllItems:i,toggleItem:s,headingLevel:a,dropdownMenuProps:l,...c}=lB(e);return(0,ze.jsx)(Jk,{...c,columns:2,ref:t,children:(0,ze.jsxs)(eB.Provider,{value:o,children:[(0,ze.jsx)(iB,{label:r,resetAll:i,toggleItem:s,headingLevel:a,dropdownMenuProps:l}),n]})})}),"ToolsPanel"),uB=()=>{};const dB=oa(((e,t)=>{const{children:n,isShown:r,shouldRenderPlaceholder:o,...i}=function(e){const{className:t,hasValue:n,isShownByDefault:r=!1,label:o,panelId:i,resetAllFilter:s=uB,onDeselect:a,onSelect:c,...u}=ra(e,"ToolsPanelItem"),{panelId:d,menuItems:p,registerResetAllFilter:h,deregisterResetAllFilter:f,registerPanelItem:m,deregisterPanelItem:g,flagItemCustomization:v,isResetting:b,shouldRenderPlaceholderItems:x,firstDisplayedItem:y,lastDisplayedItem:w,__experimentalFirstVisibleItemClass:_,__experimentalLastVisibleItemClass:S}=tB(),C=(0,Uo.useCallback)(n,[i]),k=(0,Uo.useCallback)(s,[i]),j=(0,l.usePrevious)(d),E=d===i||null===d;(0,Uo.useLayoutEffect)((()=>(E&&null!==j&&m({hasValue:C,isShownByDefault:r,label:o,panelId:i}),()=>{(null===j&&d||d===i)&&g(o)})),[d,E,r,o,C,i,j,m,g]),(0,Uo.useEffect)((()=>(E&&h(k),()=>{E&&f(k)})),[h,f,k,E]);const P=r?"default":"optional",T=p?.[P]?.[o],I=(0,l.usePrevious)(T),M=void 0!==p?.[P]?.[o],R=n();(0,Uo.useEffect)((()=>{(r||R)&&v(R,o,P)}),[R,P,o,v,r]),(0,Uo.useEffect)((()=>{M&&!b&&E&&(!T||R||I||c?.(),!T&&R&&I&&a?.())}),[E,T,M,b,R,I,c,a]);const N=r?void 0!==p?.[P]?.[o]:T,A=na(),D=(0,Uo.useMemo)((()=>{const e=x&&!N;return A(YF,e&&qF,!e&&t,y===o&&_,w===o&&S)}),[N,x,t,A,y,w,_,S,o]);return{...u,isShown:N,shouldRenderPlaceholder:x,className:D}}(e);return r?(0,ze.jsx)(ya,{...i,ref:t,children:n}):o?(0,ze.jsx)(ya,{...i,ref:t}):null}),"ToolsPanelItem"),pB=dB,hB=(0,Uo.createContext)(void 0),fB=hB.Provider;function mB({children:e}){const[t,n]=(0,Uo.useState)(),r=(0,Uo.useMemo)((()=>({lastFocusedElement:t,setLastFocusedElement:n})),[t]);return(0,ze.jsx)(fB,{value:r,children:e})}function gB(e){return uT.focus.focusable.find(e,{sequential:!0}).filter((t=>t.closest('[role="row"]')===e))}const vB=(0,Uo.forwardRef)((function({children:e,onExpandRow:t=(()=>{}),onCollapseRow:n=(()=>{}),onFocusRow:r=(()=>{}),applicationAriaLabel:o,...i},s){const a=(0,Uo.useCallback)((e=>{const{keyCode:o,metaKey:i,ctrlKey:s,altKey:a}=e;if(i||s||a||![vy.UP,vy.DOWN,vy.LEFT,vy.RIGHT,vy.HOME,vy.END].includes(o))return;e.stopPropagation();const{activeElement:l}=document,{currentTarget:c}=e;if(!l||!c.contains(l))return;const u=l.closest('[role="row"]');if(!u)return;const d=gB(u),p=d.indexOf(l),h=0===p,f=h&&("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))&&o===vy.RIGHT;if([vy.LEFT,vy.RIGHT].includes(o)){let r;if(r=o===vy.LEFT?Math.max(0,p-1):Math.min(p+1,d.length-1),h){if(o===vy.LEFT){var m;if("true"===u.getAttribute("data-expanded")||"true"===u.getAttribute("aria-expanded"))return n(u),void e.preventDefault();const t=Math.max(parseInt(null!==(m=u?.getAttribute("aria-level"))&&void 0!==m?m:"1",10)-1,1),r=Array.from(c.querySelectorAll('[role="row"]'));let o=u;for(let e=r.indexOf(u);e>=0;e--){const n=r[e].getAttribute("aria-level");if(null!==n&&parseInt(n,10)===t){o=r[e];break}}gB(o)?.[0]?.focus()}if(o===vy.RIGHT){if("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))return t(u),void e.preventDefault();const n=gB(u);n.length>0&&n[r]?.focus()}return void e.preventDefault()}if(f)return;d[r].focus(),e.preventDefault()}else if([vy.UP,vy.DOWN].includes(o)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=o===vy.UP?Math.max(0,n-1):Math.min(n+1,t.length-1),i===n)return void e.preventDefault();const s=gB(t[i]);if(!s||!s.length)return void e.preventDefault();s[Math.min(p,s.length-1)].focus(),r(e,u,t[i]),e.preventDefault()}else if([vy.HOME,vy.END].includes(o)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=o===vy.HOME?0:t.length-1,i===n)return void e.preventDefault();const s=gB(t[i]);if(!s||!s.length)return void e.preventDefault();s[Math.min(p,s.length-1)].focus(),r(e,u,t[i]),e.preventDefault()}}),[t,n,r]);return(0,ze.jsx)(mB,{children:(0,ze.jsx)("div",{role:"application","aria-label":o,children:(0,ze.jsx)("table",{...i,role:"treegrid",onKeyDown:a,ref:s,children:(0,ze.jsx)("tbody",{children:e})})})})})),bB=vB;const xB=(0,Uo.forwardRef)((function({children:e,level:t,positionInSet:n,setSize:r,isExpanded:o,...i},s){return(0,ze.jsx)("tr",{...i,ref:s,role:"row","aria-level":t,"aria-posinset":n,"aria-setsize":r,"aria-expanded":o,children:e})})),yB=(0,Uo.forwardRef)((function({children:e,as:t,...n},r){const o=(0,Uo.useRef)(),i=r||o,{lastFocusedElement:s,setLastFocusedElement:a}=(0,Uo.useContext)(hB);let l;s&&(l=s===("current"in i?i.current:void 0)?0:-1);const c={ref:i,tabIndex:l,onFocus:e=>a?.(e.target),...n};return"function"==typeof e?e(c):t?(0,ze.jsx)(t,{...c,children:e}):null}));const wB=(0,Uo.forwardRef)((function({children:e,...t},n){return(0,ze.jsx)(yB,{ref:n,...t,children:e})}));const _B=(0,Uo.forwardRef)((function({children:e,withoutGridItem:t=!1,...n},r){return(0,ze.jsx)("td",{...n,role:"gridcell",children:t?(0,ze.jsx)(ze.Fragment,{children:e}):(0,ze.jsx)(wB,{ref:r,children:e})})}));function SB(e){e.stopPropagation()}const CB=(0,Uo.forwardRef)(((e,t)=>(Ko()("wp.components.IsolatedEventContainer",{since:"5.7"}),(0,ze.jsx)("div",{...e,ref:t,onMouseDown:SB}))));function kB(e){const t=(0,Uo.useContext)(Dy);return(0,l.useObservableValue)(t.fills,e)}const jB=ba("div",{target:"ebn2ljm1"})("&:not( :first-of-type ){",(({offsetAmount:e})=>Ea({marginInlineStart:e},"","")),";}",(({zIndex:e})=>Ea({zIndex:e},"","")),";");var EB={name:"rs0gp6",styles:"grid-row-start:1;grid-column-start:1"};const PB=ba("div",{target:"ebn2ljm0"})("display:inline-grid;grid-auto-flow:column;position:relative;&>",jB,"{position:relative;justify-self:start;",(({isLayered:e})=>e?EB:void 0),";}");const TB=oa((function(e,t){const{children:n,className:r,isLayered:o=!0,isReversed:i=!1,offset:s=0,...a}=ra(e,"ZStack"),l=ty(n),c=l.length-1,u=l.map(((e,t)=>{const n=i?c-t:t,r=o?s*t:s,a=(0,Uo.isValidElement)(e)?e.key:t;return(0,ze.jsx)(jB,{offsetAmount:r,zIndex:n,children:e},a)}));return(0,ze.jsx)(PB,{...a,className:r,isLayered:o,ref:t,children:u})}),"ZStack"),IB=TB,MB={previous:[{modifier:"ctrlShift",character:"`"},{modifier:"ctrlShift",character:"~"},{modifier:"access",character:"p"}],next:[{modifier:"ctrl",character:"`"},{modifier:"access",character:"n"}]};function RB(e=MB){const t=(0,Uo.useRef)(null),[n,r]=(0,Uo.useState)(!1);function o(e){var n;const o=Array.from(null!==(n=t.current?.querySelectorAll('[role="region"][tabindex="-1"]'))&&void 0!==n?n:[]);if(!o.length)return;let i=o[0];const s=t.current?.ownerDocument?.activeElement?.closest('[role="region"][tabindex="-1"]'),a=s?o.indexOf(s):-1;if(-1!==a){let t=a+e;t=-1===t?o.length-1:t,t=t===o.length?0:t,i=o[t]}i.focus(),r(!0)}const i=(0,l.useRefEffect)((e=>{function t(){r(!1)}return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[r]);return{ref:(0,l.useMergeRefs)([t,i]),className:n?"is-focusing-regions":"",onKeyDown(t){e.previous.some((({modifier:e,character:n})=>vy.isKeyboardEvent[e](t,n)))?o(-1):e.next.some((({modifier:e,character:n})=>vy.isKeyboardEvent[e](t,n)))&&o(1)}}}const NB=(0,l.createHigherOrderComponent)((e=>({shortcuts:t,...n})=>(0,ze.jsx)("div",{...RB(t),children:(0,ze.jsx)(e,{...n})})),"navigateRegions"),AB=(0,l.createHigherOrderComponent)((e=>function(t){const n=(0,l.useConstrainedTabbing)();return(0,ze.jsx)("div",{ref:n,tabIndex:-1,children:(0,ze.jsx)(e,{...t})})}),"withConstrainedTabbing"),DB=e=>(0,l.createHigherOrderComponent)((t=>class extends Uo.Component{constructor(e){super(e),this.nodeRef=this.props.node,this.state={fallbackStyles:void 0,grabStylesCompleted:!1},this.bindRef=this.bindRef.bind(this)}bindRef(e){e&&(this.nodeRef=e)}componentDidMount(){this.grabFallbackStyles()}componentDidUpdate(){this.grabFallbackStyles()}grabFallbackStyles(){const{grabStylesCompleted:t,fallbackStyles:n}=this.state;if(this.nodeRef&&!t){const t=e(this.nodeRef,this.props);ai()(t,n)||this.setState({fallbackStyles:t,grabStylesCompleted:Object.values(t).every(Boolean)})}}render(){const e=(0,ze.jsx)(t,{...this.props,...this.state.fallbackStyles});return this.props.node?e:(0,ze.jsxs)("div",{ref:this.bindRef,children:[" ",e," "]})}}),"withFallbackStyles"),OB=window.wp.hooks,zB=16;function LB(e){return(0,l.createHigherOrderComponent)((t=>{const n="core/with-filters/"+e;let r;class o extends Uo.Component{constructor(n){super(n),void 0===r&&(r=(0,OB.applyFilters)(e,t))}componentDidMount(){o.instances.push(this),1===o.instances.length&&((0,OB.addAction)("hookRemoved",n,s),(0,OB.addAction)("hookAdded",n,s))}componentWillUnmount(){o.instances=o.instances.filter((e=>e!==this)),0===o.instances.length&&((0,OB.removeAction)("hookRemoved",n),(0,OB.removeAction)("hookAdded",n))}render(){return(0,ze.jsx)(r,{...this.props})}}o.instances=[];const i=(0,l.debounce)((()=>{r=(0,OB.applyFilters)(e,t),o.instances.forEach((e=>{e.forceUpdate()}))}),zB);function s(t){t===e&&i()}return o}),"withFilters")}const FB=(0,l.createHigherOrderComponent)((e=>{const t=({onFocusReturn:e}={})=>t=>n=>{const r=(0,l.useFocusReturn)(e);return(0,ze.jsx)("div",{ref:r,children:(0,ze.jsx)(t,{...n})})};if((n=e)instanceof Uo.Component||"function"==typeof n){const n=e;return t()(n)}var n;return t(e)}),"withFocusReturn"),BB=({children:e})=>(Ko()("wp.components.FocusReturnProvider component",{since:"5.7",hint:"This provider is not used anymore. You can just remove it from your codebase"}),e),VB=(0,l.createHigherOrderComponent)((e=>{function t(t,r){const[o,i]=(0,Uo.useState)([]),s=(0,Uo.useMemo)((()=>{const e=e=>{const t=e.id?e:{...e,id:Xy()};i((e=>[...e,t]))};return{createNotice:e,createErrorNotice:t=>{e({status:"error",content:t})},removeNotice:e=>{i((t=>t.filter((t=>t.id!==e))))},removeAllNotices:()=>{i([])}}}),[]),a={...t,noticeList:o,noticeOperations:s,noticeUI:o.length>0&&(0,ze.jsx)(bz,{className:"components-with-notices-ui",notices:o,onRemove:s.removeNotice})};return n?(0,ze.jsx)(e,{...a,ref:r}):(0,ze.jsx)(e,{...a})}let n;const{render:r}=e;return"function"==typeof r?(n=!0,(0,Uo.forwardRef)(t)):t}),"withNotices");var $B=$e([kt,yn],[jt,wn]),HB=$B.useContext,WB=$B.useScopedContext,UB=$B.useProviderContext,GB=$B.ContextProvider,KB=$B.ScopedContextProvider,YB=(0,c.createContext)(void 0),qB=(0,c.createContext)(!1),XB=(0,ze.jsx)("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5pt",viewBox:"0 0 16 16",height:"1em",width:"1em",children:(0,ze.jsx)("polyline",{points:"4,8 7,12 12,4"})});var ZB=Ve((e=>{var t=e,{store:n,checked:r}=t,o=_(t,["store","checked"]);const i=(0,c.useContext)(qB),s=function(e){return e.checked?e.children||XB:"function"==typeof e.children?e.children:null}({checked:r=null!=r?r:i,children:o.children});return o=w(y({"aria-hidden":!0},o),{children:s,style:y({width:"1em",height:"1em",pointerEvents:"none"},o.style)})}));Le((e=>Be("span",ZB(e))));var JB=Ve((e=>{var t=e,{store:n,checked:r}=t,o=_(t,["store","checked"]);const i=(0,c.useContext)(YB);return r=null!=r?r:i,o=ZB(w(y({},o),{checked:r}))})),QB=Le((e=>Be("span",JB(e))));var eV=$e([kt],[jt]),tV=eV.useContext,nV=eV.useScopedContext,rV=(eV.useProviderContext,eV.ContextProvider,eV.ScopedContextProvider,(0,c.createContext)(void 0),$e([gn,kt],[vn,jt])),oV=(rV.useContext,rV.useScopedContext,rV.useProviderContext);rV.ContextProvider,rV.ScopedContextProvider,(0,c.createContext)(void 0),(0,c.createContext)(!1);function iV(e={}){var t=e,{combobox:n,parent:r,menubar:o}=t,i=R(t,["combobox","parent","menubar"]);const s=!!o&&!r,a=zt(i.store,function(e,...t){if(e)return Tt(e,"pick")(...t)}(r,["values"]),Ot(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),l=a.getState(),c=tl(M(I({},i),{store:a,orientation:V(i.orientation,l.orientation,"vertical")})),u=tn(M(I({},i),{store:a,placement:V(i.placement,l.placement,"bottom-start"),timeout:V(i.timeout,l.timeout,s?0:150),hideTimeout:V(i.hideTimeout,l.hideTimeout,0)})),d=It(M(I(I({},c.getState()),u.getState()),{initialFocus:V(l.initialFocus,"container"),values:V(i.values,l.values,i.defaultValues,{})}),c,u,a);return Mt(d,(()=>At(d,["mounted"],(e=>{e.mounted||d.setState("activeId",null)})))),Mt(d,(()=>At(r,["orientation"],(e=>{d.setState("placement","vertical"===e.orientation?"right-start":"bottom-start")})))),M(I(I(I({},c),u),d),{combobox:n,parent:r,menubar:o,hideAll:()=>{u.hide(),null==r||r.hideAll()},setInitialFocus:e=>d.setState("initialFocus",e),setValues:e=>d.setState("values",e),setValue:(e,t)=>{"__proto__"!==e&&"constructor"!==e&&(Array.isArray(e)||d.setState("values",(n=>{const r=n[e],o=A(t,r);return o===r?n:M(I({},n),{[e]:void 0!==o&&o})})))}})}function sV(e={}){const t=HB(),n=tV(),r=oV();e=w(y({},e),{parent:void 0!==e.parent?e.parent:t,menubar:void 0!==e.menubar?e.menubar:n,combobox:void 0!==e.combobox?e.combobox:r});const[o,i]=Ht(iV,e);return function(e,t,n){return ke(t,[n.combobox,n.parent,n.menubar]),$t(e=en(e=nl(e,t,n),t,n),n,"values","setValues"),Object.assign(e,{combobox:n.combobox,parent:n.parent,menubar:n.menubar})}(o,i,e)}var aV=Ve((e=>{const t=(0,c.useRef)(null),n=Ce(t,e.as||"button"),[r,o]=(0,c.useState)((()=>!!n&&X({tagName:n,type:e.type})));return(0,c.useEffect)((()=>{t.current&&o(X(t.current))}),[]),e=w(y({role:r||"a"===n?void 0:"button"},e),{ref:_e(t,e.ref)}),e=pt(e)}));Le((e=>Be("button",aV(e))));var lV=Symbol("disclosure"),cV=Ve((e=>{var t=e,{store:n,toggleOnClick:r=!0}=t,o=_(t,["store","toggleOnClick"]);const i=an();L(n=n||i,!1);const s=(0,c.useRef)(null),[a,l]=(0,c.useState)(!1),u=n.useState("disclosureElement"),d=n.useState("open");(0,c.useEffect)((()=>{let e=u===s.current;(null==u?void 0:u.isConnected)||(null==n||n.setDisclosureElement(s.current),e=!0),l(d&&e)}),[u,n,d]);const p=o.onClick,h=Ee(r),[f,m]=Ie(o,lV,!0),g=we((e=>{null==p||p(e),e.defaultPrevented||f||h(e)&&(null==n||n.setDisclosureElement(e.currentTarget),null==n||n.toggle())})),v=n.useState("contentElement");return o=w(y(y({"aria-expanded":a,"aria-controls":null==v?void 0:v.id},m),o),{ref:_e(s,o.ref),onClick:g}),o=aV(o)}));Le((e=>Be("button",cV(e))));var uV=Ve((e=>{var t=e,{store:n}=t,r=_(t,["store"]);const o=cn();L(n=n||o,!1);const i=n.useState("contentElement");return r=y({"aria-haspopup":ne(i,"dialog")},r),r=cV(y({store:n},r))}));Le((e=>Be("button",uV(e))));var dV=Ve((e=>{var t=e,{store:n}=t,r=_(t,["store"]);const o=mn();return n=n||o,r=w(y({},r),{ref:_e(null==n?void 0:n.setAnchorElement,r.ref)})}));Le((e=>Be("div",dV(e))));var pV=Ve((e=>{var t=e,{store:n}=t,r=_(t,["store"]);const o=mn();L(n=n||o,!1);const i=r.onClick,s=we((e=>{null==n||n.setAnchorElement(e.currentTarget),null==i||i(e)}));return r=Pe(r,(e=>(0,ze.jsx)(vn,{value:n,children:e})),[n]),r=w(y({},r),{onClick:s}),r=dV(y({store:n},r)),r=uV(y({store:n},r))}));Le((e=>Be("button",pV(e))));var hV="";function fV(){hV=""}function mV(e,t){var n;const r=(null==(n=e.element)?void 0:n.textContent)||e.children;return!!r&&(o=r,o.normalize("NFD").replace(/[\u0300-\u036f]/g,"")).trim().toLowerCase().startsWith(t.toLowerCase());var o}function gV(e,t,n){if(!n)return e;const r=e.find((e=>e.id===n));return r&&mV(r,t)?hV!==t&&mV(r,hV)?e:(hV=t,function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[bt]:[],...e.slice(0,r)]}(e.filter((e=>mV(e,hV))),n).filter((e=>e.id!==n))):e}var vV=Ve((e=>{var t=e,{store:n,typeahead:r=!0}=t,o=_(t,["store","typeahead"]);const i=St();L(n=n||i,!1);const s=o.onKeyDownCapture,a=(0,c.useRef)(0),l=we((e=>{if(null==s||s(e),e.defaultPrevented)return;if(!r)return;if(!n)return;const{items:t,activeId:o}=n.getState();if(!function(e){const t=e.target;return(!t||!te(t))&&(!(" "!==e.key||!hV.length)||1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(e.key))}(e))return fV();let i=function(e){return e.filter((e=>!e.disabled))}(t);if(!function(e,t){if(ce(e))return!0;const n=e.target;if(!n)return!1;const r=t.some((e=>e.element===n));return r}(e,i))return fV();e.preventDefault(),window.clearTimeout(a.current),a.current=window.setTimeout((()=>{hV=""}),500);const l=e.key.toLowerCase();hV+=l,i=gV(i,l,o);const c=i.find((e=>mV(e,hV)));c?n.move(c.id):fV()}));return o=w(y({},o),{onKeyDownCapture:l})}));Le((e=>Be("div",vV(e))));function bV(e,t){return!!(null==e?void 0:e.some((e=>!!e.element&&(e.element!==t&&"true"===e.element.getAttribute("aria-expanded")))))}var xV=Ve((e=>{var t=e,{store:n,focusable:r,accessibleWhenDisabled:o,showOnHover:i}=t,s=_(t,["store","focusable","accessibleWhenDisabled","showOnHover"]);const a=UB();L(n=n||a,!1);const l=(0,c.useRef)(null),u=n.parent,d=n.menubar,p=!!u,h=!!d&&!p,f=B(s),m=()=>{const e=l.current;e&&(null==n||n.setDisclosureElement(e),null==n||n.setAnchorElement(e),null==n||n.show())},g=s.onFocus,v=we((e=>{if(null==g||g(e),f)return;if(e.defaultPrevented)return;if(null==n||n.setAutoFocusOnShow(!1),null==n||n.setActiveId(null),!d)return;if(!h)return;const{items:t}=d.getState();bV(t,e.currentTarget)&&m()})),b=n.useState((e=>e.placement.split("-")[0])),x=s.onKeyDown,S=we((e=>{if(null==x||x(e),f)return;if(e.defaultPrevented)return;const t=function(e,t){return{ArrowDown:("bottom"===t||"top"===t)&&"first",ArrowUp:("bottom"===t||"top"===t)&&"last",ArrowRight:"right"===t&&"first",ArrowLeft:"left"===t&&"first"}[e.key]}(e,b);t&&(e.preventDefault(),m(),null==n||n.setAutoFocusOnShow(!0),null==n||n.setInitialFocus(t))})),C=s.onClick,k=we((e=>{if(null==C||C(e),e.defaultPrevented)return;if(!n)return;const t=!e.detail,{open:r}=n.getState();r&&!t||(p&&!t||n.setAutoFocusOnShow(!0),n.setInitialFocus(t?"first":"container")),p&&m()}));s=Pe(s,(e=>(0,ze.jsx)(GB,{value:n,children:e})),[n]),p&&(s=w(y({},s),{render:(0,ze.jsx)(on.div,{render:s.render})}));const j=Se(s.id),E=Vt((null==u?void 0:u.combobox)||u,"contentElement"),P=p||h?re(E,"menuitem"):void 0,T=n.useState("contentElement");return s=w(y({id:j,role:P,"aria-haspopup":ne(T,"menu")},s),{ref:_e(l,s.ref),onFocus:v,onKeyDown:S,onClick:k}),s=_n(w(y({store:n,focusable:r,accessibleWhenDisabled:o},s),{showOnHover:e=>{if(!(()=>{if("function"==typeof i)return i(e);if(null!=i)return i;if(p)return!0;if(!d)return!1;const{items:t}=d.getState();return h&&bV(t)})())return!1;const t=h?d:u;return!t||(t.setActiveId(e.currentTarget.id),!0)}})),s=pV(y({store:n,toggleOnClick:!p,focusable:r,accessibleWhenDisabled:o},s)),s=vV(y({store:n,typeahead:h},s))})),yV=Le((e=>Be("button",xV(e))));const wV=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})});var _V=Ve((e=>{var t=e,{store:n,alwaysVisible:r,composite:o}=t,i=_(t,["store","alwaysVisible","composite"]);const s=UB();L(n=n||s,!1);const a=n.parent,l=n.menubar,u=!!a,d=Se(i.id),p=i.onKeyDown,h=n.useState((e=>e.placement.split("-")[0])),f=n.useState((e=>"both"===e.orientation?void 0:e.orientation)),m="vertical"!==f,g=Vt(l,(e=>!!e&&"vertical"!==e.orientation)),v=we((e=>{if(null==p||p(e),!e.defaultPrevented){if(u||l&&!m){const t={ArrowRight:()=>"left"===h&&!m,ArrowLeft:()=>"right"===h&&!m,ArrowUp:()=>"bottom"===h&&m,ArrowDown:()=>"top"===h&&m}[e.key];if(null==t?void 0:t())return e.stopPropagation(),e.preventDefault(),null==n?void 0:n.hide()}if(l){const t={ArrowRight:()=>{if(g)return l.next()},ArrowLeft:()=>{if(g)return l.previous()},ArrowDown:()=>{if(!g)return l.next()},ArrowUp:()=>{if(!g)return l.previous()}}[e.key],n=null==t?void 0:t();void 0!==n&&(e.stopPropagation(),e.preventDefault(),l.move(n))}}}));i=Pe(i,(e=>(0,ze.jsx)(KB,{value:n,children:e})),[n]);const b=function(e){var t=e,{store:n}=t,r=_(t,["store"]);const[o,i]=(0,c.useState)(void 0),s=r["aria-label"],a=Vt(n,"disclosureElement"),l=Vt(n,"contentElement");return(0,c.useEffect)((()=>{const e=a;e&&l&&(s||l.hasAttribute("aria-label")?i(void 0):e.id&&i(e.id))}),[s,a,l]),o}(y({store:n},i)),x=Yn(n.useState("mounted"),i.hidden,r),S=x?w(y({},i.style),{display:"none"}):i.style;i=w(y({id:d,"aria-labelledby":b,hidden:x},i),{ref:_e(d?n.setContentElement:null,i.ref),style:S,onKeyDown:v});const C=!!n.combobox;return(o=null!=o?o:!C)&&(i=y({role:"menu","aria-orientation":f},i)),i=il(y({store:n,composite:o},i)),i=vV(y({store:n,typeahead:!C},i))}));Le((e=>Be("div",_V(e))));var SV=Ve((e=>{var t=e,{store:n,modal:r=!1,portal:o=!!r,hideOnEscape:i=!0,autoFocusOnShow:s=!0,hideOnHoverOutside:a,alwaysVisible:l}=t,u=_(t,["store","modal","portal","hideOnEscape","autoFocusOnShow","hideOnHoverOutside","alwaysVisible"]);const d=UB();L(n=n||d,!1);const p=(0,c.useRef)(null),h=n.parent,f=n.menubar,m=!!h,g=!!f&&!m;u=w(y({},u),{ref:_e(p,u.ref)});const v=_V(y({store:n,alwaysVisible:l},u)),{"aria-labelledby":b}=v;u=_(v,["aria-labelledby"]);const[x,S]=(0,c.useState)(),C=n.useState("autoFocusOnShow"),k=n.useState("initialFocus"),j=n.useState("baseElement"),E=n.useState("renderedItems");(0,c.useEffect)((()=>{let e=!1;return S((t=>{var n,r,o;if(e)return;if(!C)return;if(null==(n=null==t?void 0:t.current)?void 0:n.isConnected)return t;const i=(0,c.createRef)();switch(k){case"first":i.current=(null==(r=E.find((e=>!e.disabled&&e.element)))?void 0:r.element)||null;break;case"last":i.current=(null==(o=[...E].reverse().find((e=>!e.disabled&&e.element)))?void 0:o.element)||null;break;default:i.current=j}return i})),()=>{e=!0}}),[n,C,k,E,j]);const P=!m&&r,T=!!s,I=!!x||!!u.initialFocus||!!P,M=Vt(n.combobox||n,"contentElement"),R=Vt((null==h?void 0:h.combobox)||h,"contentElement"),N=(0,c.useMemo)((()=>{if(!R)return;if(!M)return;const e=M.getAttribute("role"),t=R.getAttribute("role");return"menu"!==t&&"menubar"!==t||"menu"!==e?R:void 0}),[M,R]);return void 0!==N&&(u=y({preserveTabOrderAnchor:N},u)),u=$o(w(y({store:n,alwaysVisible:l,initialFocus:x,autoFocusOnShow:T?I&&s:C||!!P},u),{hideOnEscape:e=>!F(i,e)&&(null==n||n.hideAll(),!0),hideOnHoverOutside:e=>{const t=null==n?void 0:n.getState().disclosureElement;return!!("function"==typeof a?a(e):null!=a?a:m||g&&(!t||!Je(t)))&&(!!e.defaultPrevented||(!m||(!t||(function(e,t,n){const r=new Event(t,n);e.dispatchEvent(r)}(t,"mouseout",e),!Je(t)||(requestAnimationFrame((()=>{Je(t)||null==n||n.hide()})),!1)))))},modal:P,portal:o,backdrop:!m&&u.backdrop})),u=y({"aria-labelledby":b},u)})),CV=xr(Le((e=>Be("div",SV(e)))),UB);function kV(e){const t=e.relatedTarget;return(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null}var jV=Symbol("composite-hover");var EV=Ve((e=>{var t=e,{store:n,focusOnHover:r=!0,blurOnHoverEnd:o=!!r}=t,i=_(t,["store","focusOnHover","blurOnHoverEnd"]);const s=St();L(n=n||s,!1);const a=Me(),l=i.onMouseMove,u=Ee(r),d=we((e=>{if(null==l||l(e),!e.defaultPrevented&&a()&&u(e)){if(!Je(e.currentTarget)){const e=null==n?void 0:n.getState().baseElement;e&&!Ze(e)&&e.focus()}null==n||n.setActiveId(e.currentTarget.id)}})),p=i.onMouseLeave,h=Ee(o),f=we((e=>{var t;null==p||p(e),e.defaultPrevented||a()&&(function(e){const t=kV(e);return!!t&&Y(e.currentTarget,t)}(e)||function(e){let t=kV(e);if(!t)return!1;do{if(D(t,jV)&&t[jV])return!0;t=t.parentElement}while(t);return!1}(e)||u(e)&&h(e)&&(null==n||n.setActiveId(null),null==(t=null==n?void 0:n.getState().baseElement)||t.focus()))})),m=(0,c.useCallback)((e=>{e&&(e[jV]=!0)}),[]);return i=w(y({},i),{ref:_e(m,i.ref),onMouseMove:d,onMouseLeave:f})}));Fe((e=>Be("div",EV(e))));var PV=Ve((e=>{var t=e,{store:n,hideOnClick:r=!0,preventScrollOnKeyDown:o=!0,focusOnHover:i,blurOnHoverEnd:s}=t,a=_(t,["store","hideOnClick","preventScrollOnKeyDown","focusOnHover","blurOnHoverEnd"]);const l=WB(!0),c=nV();L(n=n||l||c,!1);const u=a.onClick,d=Ee(r),p="hideAll"in n?n.hideAll:void 0,h=!!p,f=we((e=>{if(null==u||u(e),e.defaultPrevented)return;if(function(e){const t=e.currentTarget;if(!t)return!1;const n=t.tagName.toLowerCase();return!!e.altKey&&("a"===n||"button"===n&&"submit"===t.type||"input"===n&&"submit"===t.type)}(e))return;if(function(e){const t=e.currentTarget;if(!t)return!1;const n=ie();if(n&&!e.metaKey)return!1;if(!n&&!e.ctrlKey)return!1;const r=t.tagName.toLowerCase();return"a"===r||"button"===r&&"submit"===t.type||"input"===r&&"submit"===t.type}(e))return;if(!p)return;"menu"!==e.currentTarget.getAttribute("aria-haspopup")&&d(e)&&p()})),m=re(Vt(n,(e=>"contentElement"in e?e.contentElement:null)),"menuitem");return a=w(y({role:m},a),{onClick:f}),a=Gt(y({store:n,preventScrollOnKeyDown:o},a)),a=EV(w(y({store:n},a),{focusOnHover(e){if(!n)return!1;if(!("function"==typeof i?i(e):null==i||i))return!1;const{baseElement:t,items:r}=n.getState();return h?(e.currentTarget.hasAttribute("aria-expanded")&&e.currentTarget.focus(),!0):!!function(e,t,n){var r;if(!e)return!1;if(Je(e))return!0;const o=null==t?void 0:t.find((e=>{var t;return e.element!==n&&"true"===(null==(t=e.element)?void 0:t.getAttribute("aria-expanded"))})),i=null==(r=null==o?void 0:o.element)?void 0:r.getAttribute("aria-controls");if(!i)return!1;const s=G(e).getElementById(i);return!(!s||!Je(s)&&!s.querySelector("[role=menuitem][aria-expanded=true]"))}(t,r,e.currentTarget)&&(e.currentTarget.focus(),!0)},blurOnHoverEnd:e=>"function"==typeof s?s(e):null!=s?s:h})),a})),TV=Fe((e=>Be("div",PV(e))));function IV(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=It({value:V(e.value,null==n?void 0:n.value,e.defaultValue,!1)},e.store);return M(I({},r),{setValue:e=>r.setState("value",e)})}function MV(e={}){const[t,n]=Ht(IV,e);return function(e,t,n){return ke(t,[n.store]),$t(e,n,"value","setValue"),e}(t,n,e)}var RV=$e(),NV=RV.useContext;RV.useScopedContext,RV.useProviderContext,RV.ContextProvider,RV.ScopedContextProvider;function AV(e,t){t?e.indeterminate=!0:e.indeterminate&&(e.indeterminate=!1)}function DV(e){return Array.isArray(e)?e.toString():e}var OV=Ve((e=>{var t=e,{store:n,name:r,value:o,checked:i,defaultChecked:s}=t,a=_(t,["store","name","value","checked","defaultChecked"]);const l=NV();n=n||l;const[u,d]=(0,c.useState)(null!=s&&s),p=Vt(n,(e=>{if(void 0!==i)return i;if(void 0===(null==e?void 0:e.value))return u;if(null!=o){if(Array.isArray(e.value)){const t=DV(o);return e.value.includes(t)}return e.value===o}return!Array.isArray(e.value)&&("boolean"==typeof e.value&&e.value)})),h=(0,c.useRef)(null),f=function(e,t){return"input"===e&&(!t||"checkbox"===t)}(Ce(h,a.as||"input"),a.type),m=p?"mixed"===p:void 0,g="mixed"!==p&&p,v=B(a),[b,x]=je();(0,c.useEffect)((()=>{const e=h.current;e&&(AV(e,m),f||(e.checked=g,void 0!==r&&(e.name=r),void 0!==o&&(e.value=`${o}`)))}),[b,m,f,g,r,o]);const S=a.onChange,C=we((e=>{if(v)return e.stopPropagation(),void e.preventDefault();if(AV(e.currentTarget,m),f||(e.currentTarget.checked=!e.currentTarget.checked,x()),null==S||S(e),e.defaultPrevented)return;const t=e.currentTarget.checked;d(t),null==n||n.setValue((e=>{if(null==o)return t;const n=DV(o);return Array.isArray(e)?t?e.includes(n)?e:[...e,n]:e.filter((e=>e!==n)):e!==n&&n}))})),k=a.onClick,j=we((e=>{null==k||k(e),e.defaultPrevented||f||C(e)}));return a=Pe(a,(e=>(0,ze.jsx)(qB.Provider,{value:g,children:e})),[g]),a=w(y({role:f?void 0:"checkbox",type:f?"checkbox":void 0,"aria-checked":p},a),{ref:_e(h,a.ref),onChange:C,onClick:j}),a=pt(y({clickOnEnter:!f},a)),y({name:f?r:void 0,value:f?o:void 0,checked:g},a)}));Le((e=>Be("input",OV(e))));function zV(e,t,n){if(void 0===t)return Array.isArray(e)?e:!!n;const r=function(e){return Array.isArray(e)?e.toString():e}(t);return Array.isArray(e)?n?e.includes(r)?e:[...e,r]:e.filter((e=>e!==r)):n?r:e!==r&&e}var LV=Ve((e=>{var t=e,{store:n,name:r,value:o,checked:i,defaultChecked:s,hideOnClick:a=!1}=t,l=_(t,["store","name","value","checked","defaultChecked","hideOnClick"]);const u=WB();L(n=n||u,!1);const d=xe(s);(0,c.useEffect)((()=>{null==n||n.setValue(r,((e=[])=>d?zV(e,o,!0):e))}),[n,r,o,d]),(0,c.useEffect)((()=>{void 0!==i&&(null==n||n.setValue(r,(e=>zV(e,o,i))))}),[n,r,o,i]);const p=MV({value:n.useState((e=>e.values[r])),setValue(e){null==n||n.setValue(r,(()=>{if(void 0===i)return e;const t=zV(e,o,i);return Array.isArray(t)&&Array.isArray(e)&&function(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;const n=Object.keys(e),r=Object.keys(t),{length:o}=n;if(r.length!==o)return!1;for(const r of n)if(e[r]!==t[r])return!1;return!0}(e,t)?e:t}))}});return l=y({role:"menuitemcheckbox"},l),l=OV(y({store:p,name:r,value:o,checked:i},l)),l=PV(y({store:n,hideOnClick:a},l))})),FV=Fe((e=>Be("div",LV(e))));function BV(e,t,n){return void 0===n?e:n?t:e}var VV=Ve((e=>{var t=e,{store:n,name:r,value:o,checked:i,onChange:s,hideOnClick:a=!1}=t,l=_(t,["store","name","value","checked","onChange","hideOnClick"]);const u=WB();L(n=n||u,!1);const d=xe(l.defaultChecked);(0,c.useEffect)((()=>{null==n||n.setValue(r,((e=!1)=>BV(e,o,d)))}),[n,r,o,d]),(0,c.useEffect)((()=>{void 0!==i&&(null==n||n.setValue(r,(e=>BV(e,o,i))))}),[n,r,o,i]);const p=n.useState((e=>e.values[r]===o));return l=Pe(l,(e=>(0,ze.jsx)(YB.Provider,{value:!!p,children:e})),[p]),l=y({role:"menuitemradio"},l),l=f_(y({name:r,value:o,checked:p,onChange:e=>{if(null==s||s(e),e.defaultPrevented)return;const t=e.currentTarget;null==n||n.setValue(r,(e=>BV(e,o,null!=i?i:t.checked)))}},l)),l=PV(y({store:n,hideOnClick:a},l))})),$V=Fe((e=>Be("div",VV(e))));var HV=Ve((e=>e=JT(e))),WV=Le((e=>Be("div",HV(e))));var UV=Ve((e=>{var t=e,{store:n}=t,r=_(t,["store"]);const o=St();L(n=n||o,!1);const i=n.useState((e=>"horizontal"===e.orientation?"vertical":"horizontal"));return r=UE(w(y({},r),{orientation:i}))}));Le((e=>Be("hr",UV(e))));var GV=Ve((e=>{var t=e,{store:n}=t,r=_(t,["store"]);const o=HB();return r=UV(y({store:n=n||o},r))})),KV=Le((e=>Be("hr",GV(e))));const YV="2px",qV="400ms",XV="cubic-bezier( 0.16, 1, 0.3, 1 )",ZV=ng(1),JV=ng(2),QV=ng(3),e$=Na.gray[300],t$=Na.gray[200],n$=Na.gray[900],r$=`0 0 0 ${bv.borderWidth} ${e$}, ${bv.popoverShadow}`,o$=`0 0 0 ${bv.borderWidth} ${n$}`,i$="minmax( 0, max-content ) 1fr",s$=Pa({"0%":{opacity:0,transform:`translateY(${YV})`},"100%":{opacity:1,transform:"translateY(0)"}}),a$=Pa({"0%":{opacity:0,transform:`translateX(-${YV})`},"100%":{opacity:1,transform:"translateX(0)"}}),l$=Pa({"0%":{opacity:0,transform:`translateY(-${YV})`},"100%":{opacity:1,transform:"translateY(0)"}}),c$=Pa({"0%":{opacity:0,transform:`translateX(${YV})`},"100%":{opacity:1,transform:"translateX(0)"}}),u$=ba(CV,{target:"e1kdzosf12"})("position:relative;z-index:1000000;display:grid;grid-template-columns:",i$,";grid-template-rows:auto;box-sizing:border-box;min-width:160px;max-width:320px;max-height:var( --popover-available-height );padding:",ZV,";background-color:",Na.ui.background,";border-radius:4px;",(e=>Ea("box-shadow:","toolbar"===e.variant?o$:r$,";",""))," overscroll-behavior:contain;overflow:auto;outline:2px solid transparent!important;animation-duration:",qV,";animation-timing-function:",XV,";will-change:transform,opacity;animation-name:",l$,";&[data-side='right']{animation-name:",c$,";}&[data-side='bottom']{animation-name:",s$,";}&[data-side='left']{animation-name:",a$,";}@media ( prefers-reduced-motion ){animation-duration:0s;}"),d$=Ea("all:unset;position:relative;min-height:",ng(10),";box-sizing:border-box;grid-column:1/-1;display:grid;grid-template-columns:",i$,";align-items:center;@supports ( grid-template-columns: subgrid ){grid-template-columns:subgrid;}font-size:",_x("default.fontSize"),";font-family:inherit;font-weight:normal;line-height:20px;color:",Na.gray[900],";border-radius:",bv.radiusBlockUi,";padding-block:",JV,";padding-inline:",QV,";scroll-margin:",ZV,";user-select:none;outline:none;&[aria-disabled='true']{color:",Na.ui.textDisabled,";cursor:not-allowed;}&[data-active-item]:not( [data-focus-visible] ):not(\n\t\t\t[aria-disabled='true']\n\t\t){background-color:",Na.theme.accent,";color:",Na.white,";}&[data-focus-visible]{box-shadow:0 0 0 1.5px ",Na.theme.accent,";outline:2px solid transparent;}&:active,&[data-active]{}",u$,':not(:focus) &:not(:focus)[aria-expanded="true"]{background-color:',Na.gray[100],";color:",Na.gray[900],";}svg{fill:currentColor;}",""),p$=ba(TV,{target:"e1kdzosf11"})(d$,";"),h$=ba(FV,{target:"e1kdzosf10"})(d$,";"),f$=ba($V,{target:"e1kdzosf9"})(d$,";"),m$=ba("span",{target:"e1kdzosf8"})("grid-column:1;",h$,">&,",f$,">&{min-width:",ng(6),";}",h$,">&,",f$,">&,&:not( :empty ){margin-inline-end:",ng(2),";}display:flex;align-items:center;justify-content:center;color:",Na.gray[700],";[data-active-item]:not( [data-focus-visible] )>&,[aria-disabled='true']>&{color:inherit;}"),g$=ba("div",{target:"e1kdzosf7"})("grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:",ng(3),";pointer-events:none;"),v$=ba("div",{target:"e1kdzosf6"})("flex:1;display:inline-flex;flex-direction:column;gap:",ng(1),";"),b$=ba("span",{target:"e1kdzosf5"})("flex:0 1 fit-content;min-width:0;width:fit-content;display:flex;align-items:center;justify-content:center;gap:",ng(3),";color:",Na.gray[700],";[data-active-item]:not( [data-focus-visible] ) *:not(",u$,") &,[aria-disabled='true'] *:not(",u$,") &{color:inherit;}"),x$=ba(WV,{target:"e1kdzosf4"})({name:"49aokf",styles:"display:contents"}),y$=ba(KV,{target:"e1kdzosf3"})("grid-column:1/-1;border:none;height:",bv.borderWidth,";background-color:",(e=>"toolbar"===e.variant?n$:t$),";margin-block:",ng(2),";margin-inline:",QV,";outline:2px solid transparent;"),w$=ba(Bx,{target:"e1kdzosf2"})("width:",ng(1.5),";",yg({transform:"scaleX(1)"},{transform:"scaleX(-1)"}),";"),_$=ba(nk,{target:"e1kdzosf1"})("font-size:",_x("default.fontSize"),";line-height:20px;color:inherit;"),S$=ba(nk,{target:"e1kdzosf0"})("font-size:",_x("helpText.fontSize"),";line-height:16px;color:",Na.gray[700],";[data-active-item]:not( [data-focus-visible] ) *:not( ",u$," ) &,[aria-disabled='true'] *:not( ",u$," ) &{color:inherit;}"),C$=(0,Uo.createContext)(void 0),k$=(0,Uo.forwardRef)((function({prefix:e,suffix:t,children:n,hideOnClick:r=!0,...o},i){const s=(0,Uo.useContext)(C$);return(0,ze.jsxs)(p$,{ref:i,...o,accessibleWhenDisabled:!0,hideOnClick:r,store:s?.store,children:[(0,ze.jsx)(m$,{children:e}),(0,ze.jsxs)(g$,{children:[(0,ze.jsx)(v$,{children:n}),t&&(0,ze.jsx)(b$,{children:t})]})]})})),j$=(0,Uo.forwardRef)((function({suffix:e,children:t,hideOnClick:n=!1,...r},o){const i=(0,Uo.useContext)(C$);return(0,ze.jsxs)(h$,{ref:o,...r,accessibleWhenDisabled:!0,hideOnClick:n,store:i?.store,children:[(0,ze.jsx)(QB,{store:i?.store,render:(0,ze.jsx)(m$,{}),style:{width:"auto",height:"auto"},children:(0,ze.jsx)(Bx,{icon:YC,size:24})}),(0,ze.jsxs)(g$,{children:[(0,ze.jsx)(v$,{children:t}),e&&(0,ze.jsx)(b$,{children:e})]})]})})),E$=(0,ze.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(n.Circle,{cx:12,cy:12,r:3})}),P$=(0,Uo.forwardRef)((function({suffix:e,children:t,hideOnClick:n=!1,...r},o){const i=(0,Uo.useContext)(C$);return(0,ze.jsxs)(f$,{ref:o,...r,accessibleWhenDisabled:!0,hideOnClick:n,store:i?.store,children:[(0,ze.jsx)(QB,{store:i?.store,render:(0,ze.jsx)(m$,{}),style:{width:"auto",height:"auto"},children:(0,ze.jsx)(Bx,{icon:E$,size:24})}),(0,ze.jsxs)(g$,{children:[(0,ze.jsx)(v$,{children:t}),e&&(0,ze.jsx)(b$,{children:e})]})]})})),T$=(0,Uo.forwardRef)((function(e,t){const n=(0,Uo.useContext)(C$);return(0,ze.jsx)(x$,{ref:t,...e,store:n?.store})})),I$=oa(((e,t)=>{var n;const{open:r,defaultOpen:o=!1,onOpenChange:i,placement:s,trigger:l,gutter:c,children:u,shift:d,modal:p=!0,variant:h,...f}=ra(e,"DropdownMenu"),m=(0,Uo.useContext)(C$),g=(0,a.isRTL)()?"rtl":"ltr";let v=null!==(n=e.placement)&&void 0!==n?n:m?.store?"right-start":"bottom-start";"rtl"===g&&(/right/.test(v)?v=v.replace("right","left"):/left/.test(v)&&(v=v.replace("left","right")));const b=sV({parent:m?.store,open:r,defaultOpen:o,placement:v,focusLoop:!0,setOpen(e){i?.(e)},rtl:"rtl"===g}),x=(0,Uo.useMemo)((()=>({store:b,variant:h})),[b,h]),y=b.useState("placement").split("-")[0];!b.parent||(0,Uo.isValidElement)(l)&&k$===l.type||console.warn("For nested DropdownMenus, the `trigger` should always be a `DropdownMenuItem`.");const w=(0,Uo.useCallback)((e=>(e.preventDefault(),!0)),[]),_=(0,Uo.useMemo)((()=>({dir:g,style:{direction:g}})),[g]);return(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(yV,{ref:t,store:b,render:b.parent?(0,Uo.cloneElement)(l,{suffix:(0,ze.jsxs)(ze.Fragment,{children:[l.props.suffix,(0,ze.jsx)(w$,{"aria-hidden":"true",icon:wV,size:24,preserveAspectRatio:"xMidYMid slice"})]})}):l}),(0,ze.jsx)(u$,{...f,modal:p,store:b,gutter:null!=c?c:b.parent?0:8,shift:null!=d?d:b.parent?-4:0,hideOnHoverOutside:!1,"data-side":y,variant:h,wrapperProps:_,hideOnEscape:w,unmountOnHide:!0,children:(0,ze.jsx)(C$.Provider,{value:x,children:u})})]})}),"DropdownMenu"),M$=(0,Uo.forwardRef)((function(e,t){const n=(0,Uo.useContext)(C$);return(0,ze.jsx)(y$,{ref:t,...e,store:n?.store,variant:n?.variant})})),R$=(0,Uo.forwardRef)((function(e,t){return(0,ze.jsx)(_$,{numberOfLines:1,ref:t,...e})})),N$=(0,Uo.forwardRef)((function(e,t){return(0,ze.jsx)(S$,{numberOfLines:2,ref:t,...e})}));const A$=ba("div",{target:"e1krjpvb0"})({name:"1a3idx0",styles:"color:var( --wp-components-color-foreground, currentColor )"});function D$(e){!function(e){for(const[t,n]of Object.entries(e))void 0!==n&&av(n).isValid()}(e);const t={...O$(e.accent),...z$(e.background)};return function(e){for(const t of Object.values(e));}(function(e,t){const n=e.background||Na.white,r=e.accent||"#3858e9",o=t.foreground||Na.gray[900],i=t.gray||Na.gray;return{accent:av(n).isReadable(r)?void 0:`The background color ("${n}") does not have sufficient contrast against the accent color ("${r}").`,foreground:av(n).isReadable(o)?void 0:`The background color provided ("${n}") does not have sufficient contrast against the standard foreground colors.`,grays:av(n).contrast(i[600])>=3&&av(n).contrast(i[700])>=4.5?void 0:`The background color provided ("${n}") cannot generate a set of grayscale foreground colors with sufficient contrast. Try adjusting the color to be lighter or darker.`}}(e,t)),{colors:t}}function O$(e){return e?{accent:e,accentDarker10:av(e).darken(.1).toHex(),accentDarker20:av(e).darken(.2).toHex(),accentInverted:L$(e)}:{}}function z$(e){if(!e)return{};const t=L$(e);return{background:e,foreground:t,foregroundInverted:L$(t),gray:F$(e,t)}}function L$(e){return av(e).isDark()?Na.white:Na.gray[900]}function F$(e,t){const n=av(e).isDark()?"lighten":"darken",r=Math.abs(av(e).toHsl().l-av(t).toHsl().l)/100,o={};return Object.entries({100:.06,200:.121,300:.132,400:.2,600:.42,700:.543,800:.821}).forEach((([t,i])=>{o[parseInt(t)]=av(e)[n](i/.884*r).toHex()})),o}cv([uv,z_]);const B$=function({accent:e,background:t,className:n,...r}){const o=na(),i=(0,Uo.useMemo)((()=>o(...(({colors:e})=>{const t=Object.entries(e.gray||{}).map((([e,t])=>`--wp-components-color-gray-${e}: ${t};`)).join("");return[Ea("--wp-components-color-accent:",e.accent,";--wp-components-color-accent-darker-10:",e.accentDarker10,";--wp-components-color-accent-darker-20:",e.accentDarker20,";--wp-components-color-accent-inverted:",e.accentInverted,";--wp-components-color-background:",e.background,";--wp-components-color-foreground:",e.foreground,";--wp-components-color-foreground-inverted:",e.foregroundInverted,";",t,";","")]})(D$({accent:e,background:t})),n)),[e,t,n,o]);return(0,ze.jsx)(A$,{className:i,...r})},V$=(0,Uo.createContext)(void 0),$$=()=>(0,Uo.useContext)(V$),H$=ba("div",{target:"enfox0g2"})("position:relative;display:flex;align-items:stretch;flex-direction:row;&[aria-orientation='vertical']{flex-direction:column;}@media not ( prefers-reduced-motion: reduce ){&.is-animation-enabled::after{transition-property:left,top,width,height;transition-duration:0.2s;transition-timing-function:ease-out;}}&::after{content:'';position:absolute;pointer-events:none;outline:2px solid transparent;outline-offset:-1px;}&:not( [aria-orientation='vertical'] )::after{left:var( --indicator-left );bottom:0;width:var( --indicator-width );height:0;border-bottom:var( --wp-admin-border-width-focus ) solid ",Na.theme.accent,";}&[aria-orientation='vertical']::after{opacity:0;right:0;top:var( --indicator-top );height:var( --indicator-height );border-right:var( --wp-admin-border-width-focus ) solid ",Na.theme.accent,";}"),W$=ba(iF,{target:"enfox0g1"})("&{display:inline-flex;align-items:center;position:relative;border-radius:0;height:",ng(12),";background:transparent;border:none;box-shadow:none;cursor:pointer;padding:3px ",ng(4),";margin-left:0;font-weight:500;&[aria-disabled='true']{cursor:default;opacity:0.3;}&:hover{color:",Na.theme.accent,";}&:focus:not( :disabled ){position:relative;box-shadow:none;outline:none;}&::before{content:'';position:absolute;top:",ng(3),";right:",ng(3),";bottom:",ng(3),";left:",ng(3),";pointer-events:none;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Na.theme.accent,";border-radius:2px;opacity:0;@media not ( prefers-reduced-motion ){transition:opacity 0.1s linear;}}&:focus-visible::before{opacity:1;outline:2px solid transparent;}}"),U$=ba(aF,{target:"enfox0g0"})("&:focus{box-shadow:none;outline:none;}&:focus-visible{border-radius:2px;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Na.theme.accent,";outline:2px solid transparent;outline-offset:0;}"),G$=(0,Uo.forwardRef)((function({children:e,tabId:t,disabled:n,render:r,...o},i){const s=$$();if(!s)return null;const{store:a,instanceId:l}=s,c=`${l}-${t}`;return(0,ze.jsx)(W$,{ref:i,store:a,id:c,disabled:n,render:r,...o,children:e})}));const K$=(0,Uo.forwardRef)((function({children:e,...t},n){const r=$$(),o=r?.store.useState("selectedId"),i=function(e,t){const[n,r]=(0,Uo.useState)({left:0,top:0,width:0,height:0}),o=(0,Uo.useRef)(t);(0,Uo.useLayoutEffect)((()=>{o.current=t}));const i=(0,Uo.useRef)(),s=(0,Uo.useRef)();return(0,Uo.useEffect)((()=>{if(e===i.current)return;function t(e){r({left:Math.max(e.offsetLeft-1,0),top:Math.max(e.offsetTop-1,0),width:parseFloat(getComputedStyle(e).width),height:parseFloat(getComputedStyle(e).height)}),o.current?.()}i.current=null!=e?e:void 0,s.current||(s.current=new ResizeObserver((()=>{i.current&&t(i.current)})));const{current:n}=s;return e&&(t(e),n.observe(e)),()=>{i.current&&n.unobserve(i.current)}}),[e]),n}(r?.store.item(o)?.element),[a,l]=(0,Uo.useState)(!1);if(function(e,t){const n=(0,Uo.useRef)(e),r=(0,Uo.useRef)(t);(0,Uo.useLayoutEffect)((()=>{r.current=t})),(0,Uo.useEffect)((()=>{n.current!==e&&(r.current({previousValue:n.current}),n.current=e)}),[e])}(o,(({previousValue:e})=>e&&l(!0))),!r)return null;const{store:c}=r,{activeId:u,selectOnMove:d}=c.useState(),{setActiveId:p}=c;return(0,ze.jsx)(rF,{ref:n,store:c,render:(0,ze.jsx)(H$,{onTransitionEnd:e=>{"::after"===e.pseudoElement&&l(!1)}}),onBlur:()=>{d&&o!==u&&p(o)},...t,style:{"--indicator-left":`${i.left}px`,"--indicator-top":`${i.top}px`,"--indicator-width":`${i.width}px`,"--indicator-height":`${i.height}px`,...t.style},className:s(a?"is-animation-enabled":"",t.className),children:e})})),Y$=(0,Uo.forwardRef)((function({children:e,tabId:t,focusable:n=!0,...r},o){const i=$$();if(!i)return null;const{store:s,instanceId:a}=i,l=`${a}-${t}`,c=s.useState((e=>e.selectedId));return(0,ze.jsx)(U$,{ref:o,store:s,id:`${l}-view`,tabId:l,focusable:n,...r,children:c===l&&e})}));function q$({selectOnMove:e=!0,defaultTabId:t,orientation:n="horizontal",onSelect:r,children:o,selectedTabId:i}){const s=(0,l.useInstanceId)(q$,"tabs"),a=ZL({selectOnMove:e,orientation:n,defaultSelectedId:t&&`${s}-${t}`,setSelectedId:e=>{const t="string"==typeof e?e.replace(`${s}-`,""):e;r?.(t)},selectedId:i&&`${s}-${i}`}),c=void 0!==i,{items:u,selectedId:d,activeId:p}=a.useState(),{setSelectedId:h,setActiveId:f}=a,m=(0,Uo.useRef)(!1);u.length>0&&(m.current=!0);const g=u.find((e=>e.id===d)),v=u.find((e=>!e.dimmed)),b=u.find((e=>e.id===`${s}-${t}`));(0,Uo.useLayoutEffect)((()=>{if(!c&&(!t||b)&&!u.find((e=>e.id===d))){if(b&&!b.dimmed)return void h(b?.id);v?h(v.id):m.current&&h(null)}}),[v,b,t,c,u,d,h]),(0,Uo.useLayoutEffect)((()=>{g?.dimmed&&(c?h(null):!b||b.dimmed?v&&h(v.id):h(b.id))}),[v,b,c,g?.dimmed,h]),(0,Uo.useLayoutEffect)((()=>{c&&m.current&&i&&!g&&h(null)}),[c,g,i,h]),(0,Uo.useEffect)((()=>{null===i&&!p&&v?.id&&f(v.id)}),[i,p,v?.id,f]),(0,Uo.useEffect)((()=>{c&&requestAnimationFrame((()=>{const e=u?.[0]?.element?.ownerDocument.activeElement;e&&u.some((t=>e===t.element))&&p!==e.id&&f(e.id)}))}),[p,c,u,f]);const x=(0,Uo.useMemo)((()=>({store:a,instanceId:s})),[a,s]);return(0,ze.jsx)(V$.Provider,{value:x,children:o})}q$.TabList=K$,q$.Tab=G$,q$.TabPanel=Y$,q$.Context=V$;const X$=q$,Z$=window.wp.privateApis,{lock:J$,unlock:Q$}=(0,Z$.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/components"),eH={};J$(eH,{CompositeV2:sl,CompositeGroupV2:QT,CompositeItemV2:Kt,CompositeRowV2:ll,useCompositeStoreV2:rl,CustomSelectControl:FM,__experimentalPopoverLegacyPositionToPlacement:Xo,createPrivateSlotFill:e=>{const t=Symbol(e);return{privateKey:t,...pw(t)}},ComponentsContext:di,Tabs:X$,Theme:B$,DropdownMenuV2:I$,DropdownMenuGroupV2:T$,DropdownMenuItemV2:k$,DropdownMenuCheckboxItemV2:j$,DropdownMenuRadioItemV2:P$,DropdownMenuSeparatorV2:M$,DropdownMenuItemLabelV2:R$,DropdownMenuItemHelpTextV2:N$,kebabCase:yy})})(),(window.wp=window.wp||{}).components=i})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/compose.js b/wp-includes/js/dist/compose.js
index ad81bed..34a0dd1 100644
--- a/wp-includes/js/dist/compose.js
+++ b/wp-includes/js/dist/compose.js
@@ -2288,6 +2288,7 @@ __webpack_require__.d(__webpack_exports__, {
createHigherOrderComponent: () => (/* reexport */ createHigherOrderComponent),
debounce: () => (/* reexport */ debounce),
ifCondition: () => (/* reexport */ if_condition),
+ observableMap: () => (/* reexport */ observableMap),
pipe: () => (/* reexport */ higher_order_pipe),
pure: () => (/* reexport */ higher_order_pure),
throttle: () => (/* reexport */ throttle),
@@ -2306,6 +2307,7 @@ __webpack_require__.d(__webpack_exports__, {
useKeyboardShortcut: () => (/* reexport */ use_keyboard_shortcut),
useMediaQuery: () => (/* reexport */ useMediaQuery),
useMergeRefs: () => (/* reexport */ useMergeRefs),
+ useObservableValue: () => (/* reexport */ useObservableValue),
usePrevious: () => (/* reexport */ usePrevious),
useReducedMotion: () => (/* reexport */ use_reduced_motion),
useRefEffect: () => (/* reexport */ useRefEffect),
@@ -3111,6 +3113,59 @@ const throttle = (func, wait, options) => {
});
};
+;// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/utils/observable-map/index.js
+/**
+ * A constructor (factory) for `ObservableMap`, a map-like key/value data structure
+ * where the individual entries are observable: using the `subscribe` method, you can
+ * subscribe to updates for a particular keys. Each subscriber always observes one
+ * specific key and is not notified about any unrelated changes (for different keys)
+ * in the `ObservableMap`.
+ *
+ * @template K The type of the keys in the map.
+ * @template V The type of the values in the map.
+ * @return A new instance of the `ObservableMap` type.
+ */
+function observableMap() {
+ const map = new Map();
+ const listeners = new Map();
+ function callListeners(name) {
+ const list = listeners.get(name);
+ if (!list) {
+ return;
+ }
+ for (const listener of list) {
+ listener();
+ }
+ }
+ return {
+ get(name) {
+ return map.get(name);
+ },
+ set(name, value) {
+ map.set(name, value);
+ callListeners(name);
+ },
+ delete(name) {
+ map.delete(name);
+ callListeners(name);
+ },
+ subscribe(name, listener) {
+ let list = listeners.get(name);
+ if (!list) {
+ list = new Set();
+ listeners.set(name, list);
+ }
+ list.add(listener);
+ return () => {
+ list.delete(listener);
+ if (list.size === 0) {
+ listeners.delete(name);
+ }
+ };
+ }
+ };
+}
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/pipe.js
/**
* Parts of this source were derived and modified from lodash,
@@ -3157,7 +3212,7 @@ const throttle = (func, wait, options) => {
*
* Allows to choose whether to perform left-to-right or right-to-left composition.
*
- * @see https://docs-lodash.com/v4/flow/
+ * @see https://lodash.com/docs/4#flow
*
* @param {boolean} reverse True if right-to-left, false for left-to-right composition.
*/
@@ -3175,7 +3230,7 @@ const basePipe = (reverse = false) => (...funcs) => (...args) => {
*
* This is inspired by `lodash`'s `flow` function.
*
- * @see https://docs-lodash.com/v4/flow/
+ * @see https://lodash.com/docs/4#flow
*/
const pipe = basePipe();
@@ -3193,15 +3248,14 @@ const pipe = basePipe();
*
* This is inspired by `lodash`'s `flowRight` function.
*
- * @see https://docs-lodash.com/v4/flow-right/
+ * @see https://lodash.com/docs/4#flow-right
*/
const compose = basePipe(true);
/* harmony default export */ const higher_order_compose = (compose);
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/if-condition/index.js
-
/**
* External dependencies
*/
@@ -3228,12 +3282,13 @@ const external_React_namespaceObject = window["React"];
*
* @return Higher-order component.
*/
+
function ifCondition(predicate) {
return createHigherOrderComponent(WrappedComponent => props => {
if (!predicate(props)) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(WrappedComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
...props
});
}, 'ifCondition');
@@ -3246,7 +3301,6 @@ var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(exte
;// CONCATENATED MODULE: external ["wp","element"]
const external_wp_element_namespaceObject = window["wp"]["element"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/pure/index.js
-
/**
* External dependencies
*/
@@ -3268,6 +3322,7 @@ const external_wp_element_namespaceObject = window["wp"]["element"];
*
* @deprecated Use `memo` or `PureComponent` instead.
*/
+
const pure = createHigherOrderComponent(function (WrappedComponent) {
if (WrappedComponent.prototype instanceof external_wp_element_namespaceObject.Component) {
return class extends WrappedComponent {
@@ -3281,7 +3336,7 @@ const pure = createHigherOrderComponent(function (WrappedComponent) {
return !external_wp_isShallowEqual_default()(nextProps, this.props);
}
render() {
- return (0,external_React_namespaceObject.createElement)(WrappedComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
...this.props
});
}
@@ -3332,7 +3387,6 @@ class Listener {
/* harmony default export */ const listener = (Listener);
;// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/with-global-events/index.js
-
/**
* WordPress dependencies
*/
@@ -3348,6 +3402,7 @@ class Listener {
/**
* Listener instance responsible for managing document event handling.
*/
+
const with_global_events_listener = new listener();
/* eslint-disable jsdoc/no-undefined-types */
@@ -3413,14 +3468,14 @@ function withGlobalEvents(eventTypesToHandlers) {
}
}
render() {
- return (0,external_React_namespaceObject.createElement)(WrappedComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
...this.props.ownProps,
ref: this.handleRef
});
}
}
return (0,external_wp_element_namespaceObject.forwardRef)((props, ref) => {
- return (0,external_React_namespaceObject.createElement)(Wrapper, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Wrapper, {
ownProps: props,
forwardedRef: ref
});
@@ -3470,7 +3525,9 @@ function createId(object) {
*/
function useInstanceId(object, prefix, preferredId) {
return (0,external_wp_element_namespaceObject.useMemo)(() => {
- if (preferredId) return preferredId;
+ if (preferredId) {
+ return preferredId;
+ }
const id = createId(object);
return prefix ? `${prefix}-${id}` : id;
}, [object, preferredId, prefix]);
@@ -3478,13 +3535,13 @@ function useInstanceId(object, prefix, preferredId) {
/* harmony default export */ const use_instance_id = (useInstanceId);
;// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/with-instance-id/index.js
-
/**
* Internal dependencies
*/
+
/**
* A Higher Order Component used to be provide a unique instance ID by
* component.
@@ -3493,7 +3550,7 @@ const withInstanceId = createHigherOrderComponent(WrappedComponent => {
return props => {
const instanceId = use_instance_id(WrappedComponent);
// @ts-ignore
- return (0,external_React_namespaceObject.createElement)(WrappedComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
...props,
instanceId: instanceId
});
@@ -3502,7 +3559,6 @@ const withInstanceId = createHigherOrderComponent(WrappedComponent => {
/* harmony default export */ const with_instance_id = (withInstanceId);
;// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/with-safe-timeout/index.js
-
/**
* WordPress dependencies
*/
@@ -3552,8 +3608,9 @@ const withSafeTimeout = createHigherOrderComponent(OriginalComponent => {
}
render() {
return (
+ /*#__PURE__*/
// @ts-ignore
- (0,external_React_namespaceObject.createElement)(OriginalComponent, {
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)(OriginalComponent, {
...this.props,
setTimeout: this.setTimeout,
clearTimeout: this.clearTimeout
@@ -3565,7 +3622,6 @@ const withSafeTimeout = createHigherOrderComponent(OriginalComponent => {
/* harmony default export */ const with_safe_timeout = (withSafeTimeout);
;// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/with-state/index.js
-
/**
* WordPress dependencies
*/
@@ -3587,6 +3643,7 @@ const withSafeTimeout = createHigherOrderComponent(OriginalComponent => {
*
* @return {any} A higher order component wrapper accepting a component that takes the state props + its own props + `setState` and returning a component that only accepts the own props.
*/
+
function withState(initialState = {}) {
external_wp_deprecated_default()('wp.compose.withState', {
since: '5.8',
@@ -3600,7 +3657,7 @@ function withState(initialState = {}) {
this.state = initialState;
}
render() {
- return (0,external_React_namespaceObject.createElement)(OriginalComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OriginalComponent, {
...this.props,
...this.state,
setState: this.setState
@@ -3706,7 +3763,6 @@ function useConstrainedTabbing() {
// See https://github.com/WordPress/gutenberg/issues/46041.
if ( /** @type {HTMLElement} */target.contains(nextElement)) {
event.preventDefault();
- /** @type {HTMLElement} */
nextElement?.focus();
return;
}
@@ -3897,6 +3953,11 @@ const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
/**
+ * Internal dependencies
+ */
+
+
+/**
* Hook used to focus the first tabbable element on mount.
*
* @param {boolean | 'firstElement'} focusOnMount Focus on mount mode.
@@ -3940,14 +4001,7 @@ function useFocusOnMount(focusOnMount = 'firstElement') {
(0,external_wp_element_namespaceObject.useEffect)(() => {
focusOnMountRef.current = focusOnMount;
}, [focusOnMount]);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- return () => {
- if (timerId.current) {
- clearTimeout(timerId.current);
- }
- };
- }, []);
- return (0,external_wp_element_namespaceObject.useCallback)(node => {
+ return useRefEffect(node => {
var _node$ownerDocument$a;
if (!node || focusOnMountRef.current === false) {
return;
@@ -3959,12 +4013,17 @@ function useFocusOnMount(focusOnMount = 'firstElement') {
timerId.current = setTimeout(() => {
const firstTabbable = external_wp_dom_namespaceObject.focus.tabbable.find(node)[0];
if (firstTabbable) {
- setFocus( /** @type {HTMLElement} */firstTabbable);
+ setFocus(firstTabbable);
}
}, 0);
return;
}
setFocus(node);
+ return () => {
+ if (timerId.current) {
+ clearTimeout(timerId.current);
+ }
+ };
}, []);
}
@@ -4651,6 +4710,7 @@ shortcuts, callback, {
* WordPress dependencies
*/
+const matchMediaCache = new Map();
/**
* A new MediaQueryList object for the media query
@@ -4659,8 +4719,17 @@ shortcuts, callback, {
* @return {MediaQueryList|null} A new object for the media query
*/
function getMediaQueryList(query) {
- if (query && typeof window !== 'undefined' && typeof window.matchMedia === 'function') {
- return window.matchMedia(query);
+ if (!query) {
+ return null;
+ }
+ let match = matchMediaCache.get(query);
+ if (match) {
+ return match;
+ }
+ if (typeof window !== 'undefined' && typeof window.matchMedia === 'function') {
+ match = window.matchMedia(query);
+ matchMediaCache.set(query, match);
+ return match;
}
return null;
}
@@ -4910,7 +4979,6 @@ useViewportMatch.__experimentalWidthProvider = ViewportMatchWidthContext.Provide
/* harmony default export */ const use_viewport_match = (useViewportMatch);
;// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-resize-observer/index.js
-
/**
* External dependencies
*/
@@ -4919,6 +4987,7 @@ useViewportMatch.__experimentalWidthProvider = ViewportMatchWidthContext.Provide
* WordPress dependencies
*/
+
// This of course could've been more streamlined with internal state instead of
// refs, but then host hooks / components could not opt out of renders.
// This could've been exported to its own module, but the current build doesn't
@@ -4971,6 +5040,10 @@ function useResolvedElement(subscriber, refOrElement) {
callSubscriber();
}, [callSubscriber]);
}
+
+// Declaring my own type here instead of using the one provided by TS (available since 4.2.2), because this way I'm not
+// forcing consumers to use a specific TS version.
+
// We're only using the first element of the size sequences, until future versions of the spec solidify on how
// exactly it'll be used for fragments in multi-column scenarios:
// From the spec:
@@ -5133,7 +5206,7 @@ function useResizeAware() {
height: height !== null && height !== void 0 ? height : null
};
}, [width, height]);
- const resizeListener = (0,external_React_namespaceObject.createElement)("div", {
+ const resizeListener = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
style: {
position: 'absolute',
top: 0,
@@ -5254,6 +5327,8 @@ function useWarnOnChange(object, prefix = 'Change detection') {
}
/* harmony default export */ const use_warn_on_change = (useWarnOnChange);
+;// CONCATENATED MODULE: external "React"
+const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: ./node_modules/use-memo-one/dist/use-memo-one.esm.js
@@ -5323,7 +5398,7 @@ var useCallback = (/* unused pure expression or super */ null && (useCallbackOne
* including the function to debounce, so please wrap functions created on
* render in components in `useCallback`.
*
- * @see https://docs-lodash.com/v4/debounce/
+ * @see https://lodash.com/docs/4#debounce
*
* @template {(...args: any[]) => void} TFunc
*
@@ -5352,8 +5427,8 @@ function useDebounce(fn, wait, options) {
/**
* Helper hook for input fields that need to debounce the value before using it.
*
- * @param {any} defaultValue The default value to use.
- * @return {[string, Function, string]} The input value, the setter and the debounced input value.
+ * @param defaultValue The default value to use.
+ * @return The input value, the setter and the debounced input value.
*/
function useDebouncedInput(defaultValue = '') {
const [input, setInput] = (0,external_wp_element_namespaceObject.useState)(defaultValue);
@@ -5361,7 +5436,7 @@ function useDebouncedInput(defaultValue = '') {
const setDebouncedInput = useDebounce(setDebouncedState, 250);
(0,external_wp_element_namespaceObject.useEffect)(() => {
setDebouncedInput(input);
- }, [input]);
+ }, [input, setDebouncedInput]);
return [input, setInput, debouncedInput];
}
@@ -5387,7 +5462,7 @@ function useDebouncedInput(defaultValue = '') {
* including the function to throttle, so please wrap functions created on
* render in components in `useCallback`.
*
- * @see https://docs-lodash.com/v4/throttle/
+ * @see https://lodash.com/docs/4#throttle
*
* @template {(...args: any[]) => void} TFunc
*
@@ -5633,11 +5708,15 @@ function useFocusableIframe() {
const {
ownerDocument
} = element;
- if (!ownerDocument) return;
+ if (!ownerDocument) {
+ return;
+ }
const {
defaultView
} = ownerDocument;
- if (!defaultView) return;
+ if (!defaultView) {
+ return;
+ }
/**
* Checks whether the iframe is the activeElement, inferring that it has
@@ -5791,6 +5870,33 @@ function useFixedWindowList(elementRef, itemHeight, totalItems, options) {
return [fixedListWindow, setFixedListWindow];
}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-observable-value/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Internal dependencies
+ */
+
+/**
+ * React hook that lets you observe an entry in an `ObservableMap`. The hook returns the
+ * current value corresponding to the key, or `undefined` when there is no value stored.
+ * It also observes changes to the value and triggers an update of the calling component
+ * in case the value changes.
+ *
+ * @template K The type of the keys in the map.
+ * @template V The type of the values in the map.
+ * @param map The `ObservableMap` to observe.
+ * @param name The map key to observe.
+ * @return The value corresponding to the map key requested.
+ */
+function useObservableValue(map, name) {
+ const [subscribe, getValue] = (0,external_wp_element_namespaceObject.useMemo)(() => [listener => map.subscribe(name, listener), () => map.get(name)], [map, name]);
+ return (0,external_wp_element_namespaceObject.useSyncExternalStore)(subscribe, getValue, getValue);
+}
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/index.js
// The `createHigherOrderComponent` helper and helper types.
@@ -5798,6 +5904,8 @@ function useFixedWindowList(elementRef, itemHeight, totalItems, options) {
// The `throttle` helper and its types.
+// The `ObservableMap` data structure
+
// The `compose` and `pipe` helpers (inspired by `flowRight` and `flow` from Lodash).
@@ -5841,6 +5949,7 @@ function useFixedWindowList(elementRef, itemHeight, totalItems, options) {
+
})();
(window.wp = window.wp || {}).compose = __webpack_exports__;
diff --git a/wp-includes/js/dist/compose.min.js b/wp-includes/js/dist/compose.min.js
index de44213..e30e7de 100644
--- a/wp-includes/js/dist/compose.min.js
+++ b/wp-includes/js/dist/compose.min.js
@@ -6,4 +6,4 @@
*
* Licensed MIT © Zeno Rocha
*/
-var t;t=function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return S}});var r=n(279),o=n.n(r),u=n(370),i=n.n(u),c=n(817),s=n.n(c);function a(e){try{return document.execCommand(e)}catch(e){return!1}}var l=function(e){var t=s()(e);return a("cut"),t},f=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var r=s()(n);return a("copy"),n.remove(),r},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=f(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=f(e.value,t):(n=s()(e),a("copy")),n};function p(e){return p="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},p(e)}var h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,o=e.target,u=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==p(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return u?d(u,{container:r}):o?"cut"===n?l(o):d(o,{container:r}):void 0};function v(e){return v="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},v(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function g(e){var t=function(){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}}();return function(){var n,r,o,u=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(u,arguments,i)}else n=u.apply(this,arguments);return r=this,!(o=n)||"object"!==v(o)&&"function"!=typeof o?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r):o}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function w(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(u,e);var t,n,r,o=g(u);function u(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=o.call(this)).resolveOptions(t),n.listenClick(e),n}return t=u,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===v(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=i()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=h({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return w("action",e)}},{key:"defaultTarget",value:function(e){var t=w("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return w("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return d(e,t)}},{key:"cut",value:function(e){return l(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&m(t.prototype,n),r&&m(t,r),u}(o()),S=E},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function o(e,t,n,r,o){var i=u.apply(this,arguments);return e.addEventListener(n,i,o),{destroy:function(){e.removeEventListener(n,i,o)}}}function u(e,t,n,o){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=function(e,t,n,r,u){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,r,u)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var u=0,i=r.length;u<i;u++)r[u].fn!==t&&r[u].fn._!==t&&o.push(r[u]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},e.exports=t()},1933:(e,t,n)=>{var r;!function(o,u,i){if(o){for(var c,s={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},a={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},l={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},f={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)s[111+d]="f"+d;for(d=0;d<=9;++d)s[d+96]=d.toString();b.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},b.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},b.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},b.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},b.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(g(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},b.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},b.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(s[t]=e[t]);c=null},b.init=function(){var e=b(u);for(var t in e)"_"!==t.charAt(0)&&(b[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},b.init(),o.Mousetrap=b,e.exports&&(e.exports=b),void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}function p(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function h(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return s[e.which]?s[e.which]:a[e.which]?a[e.which]:String.fromCharCode(e.which).toLowerCase()}function v(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function m(e,t,n){return n||(n=function(){if(!c)for(var e in c={},s)e>95&&e<112||s.hasOwnProperty(e)&&(c[s[e]]=e);return c}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function y(e,t){var n,r,o,u=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o<n.length;++o)r=n[o],f[r]&&(r=f[r]),t&&"keypress"!=t&&l[r]&&(r=l[r],u.push("shift")),v(r)&&u.push(r);return{key:r,modifiers:u,action:t=m(r,u,t)}}function g(e,t){return null!==e&&e!==u&&(e===t||g(e.parentNode,t))}function b(e){var t=this;if(e=e||u,!(t instanceof b))return new b(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},o=!1,i=!1,c=!1;function s(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(c=!1)}function a(e,n,o,u,i,c){var s,a,l,f,d=[],p=o.type;if(!t._callbacks[e])return[];for("keyup"==p&&v(e)&&(n=[e]),s=0;s<t._callbacks[e].length;++s)if(a=t._callbacks[e][s],(u||!a.seq||r[a.seq]==a.level)&&p==a.action&&("keypress"==p&&!o.metaKey&&!o.ctrlKey||(l=n,f=a.modifiers,l.sort().join(",")===f.sort().join(",")))){var h=!u&&a.combo==i,m=u&&a.seq==u&&a.level==c;(h||m)&&t._callbacks[e].splice(s,1),d.push(a)}return d}function l(e,n,r,o){t.stopCallback(n,n.target||n.srcElement,r,o)||!1===e(n,r)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function f(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=h(e);n&&("keyup"!=e.type||o!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):o=!1)}function d(e,t,u,i){function a(t){return function(){c=t,++r[e],clearTimeout(n),n=setTimeout(s,1e3)}}function f(t){l(u,t,e),"keyup"!==i&&(o=h(t)),setTimeout(s,10)}r[e]=0;for(var d=0;d<t.length;++d){var p=d+1===t.length?f:a(i||y(t[d+1]).action);m(t[d],p,i,e,d)}}function m(e,n,r,o,u){t._directMap[e+":"+r]=n;var i,c=(e=e.replace(/\s+/g," ")).split(" ");c.length>1?d(e,c,n,r):(i=y(e,r),t._callbacks[i.key]=t._callbacks[i.key]||[],a(i.key,i.modifiers,{type:i.action},o,e,u),t._callbacks[i.key][o?"unshift":"push"]({callback:n,modifiers:i.modifiers,action:i.action,seq:o,level:u,combo:e}))}t._handleKey=function(e,t,n){var r,o=a(e,t,n),u={},f=0,d=!1;for(r=0;r<o.length;++r)o[r].seq&&(f=Math.max(f,o[r].level));for(r=0;r<o.length;++r)if(o[r].seq){if(o[r].level!=f)continue;d=!0,u[o[r].seq]=1,l(o[r].callback,n,o[r].combo,o[r].seq)}else d||l(o[r].callback,n,o[r].combo);var p="keypress"==n.type&&i;n.type!=c||v(e)||p||s(u),i=d&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)m(e[r],t,n)},p(e,"keypress",f),p(e,"keydown",f),p(e,"keyup",f)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},5760:()=>{!function(e){if(e){var t={},n=e.prototype.stopCallback;e.prototype.stopCallback=function(e,r,o,u){return!!this.paused||!t[o]&&!t[u]&&n.call(this,e,r,o)},e.prototype.bindGlobal=function(e,n,r){if(this.bind(e,n,r),e instanceof Array)for(var o=0;o<e.length;o++)t[e[o]]=!0;else t[e]=!0},e.init()}}("undefined"!=typeof Mousetrap?Mousetrap:void 0)},923:e=>{"use strict";e.exports=window.wp.isShallowEqual}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var u=t[r]={exports:{}};return e[r].call(u.exports,u,u.exports,n),u.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{__experimentalUseDialog:()=>B,__experimentalUseDragging:()=>Q,__experimentalUseDropZone:()=>ke,__experimentalUseFixedWindowList:()=>Re,__experimentalUseFocusOutside:()=>H,compose:()=>v,createHigherOrderComponent:()=>a,debounce:()=>f,ifCondition:()=>y,pipe:()=>h,pure:()=>E,throttle:()=>d,useAsyncList:()=>ye,useConstrainedTabbing:()=>A,useCopyOnClick:()=>I,useCopyToClipboard:()=>U,useDebounce:()=>we,useDebouncedInput:()=>Ee,useDisabled:()=>Z,useFocusOnMount:()=>V,useFocusReturn:()=>K,useFocusableIframe:()=>Te,useInstanceId:()=>R,useIsomorphicLayoutEffect:()=>G,useKeyboardShortcut:()=>J,useMediaQuery:()=>ee,useMergeRefs:()=>F,usePrevious:()=>te,useReducedMotion:()=>ne,useRefEffect:()=>_,useResizeObserver:()=>ve,useStateWithHistory:()=>ie,useThrottle:()=>Se,useViewportMatch:()=>de,useWarnOnChange:()=>ge,withGlobalEvents:()=>T,withInstanceId:()=>L,withSafeTimeout:()=>D,withState:()=>O});var e=function(){return e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function t(e){return e.toLowerCase()}var o=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],u=/[^A-Z0-9]+/gi;function i(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function c(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function s(n,r){return void 0===r&&(r={}),function(e,n){void 0===n&&(n={});for(var r=n.splitRegexp,c=void 0===r?o:r,s=n.stripRegexp,a=void 0===s?u:s,l=n.transform,f=void 0===l?t:l,d=n.delimiter,p=void 0===d?" ":d,h=i(i(e,c,"$1\0$2"),a,"\0"),v=0,m=h.length;"\0"===h.charAt(v);)v++;for(;"\0"===h.charAt(m-1);)m--;return h.slice(v,m).split("\0").map(f).join(p)}(n,e({delimiter:"",transform:c},r))}function a(e,t){return n=>{const r=e(n);return r.displayName=l(t,n),r}}const l=(e,t)=>{const n=t.displayName||t.name||"Component";return`${s(null!=e?e:"")}(${n})`},f=(e,t,n)=>{let r,o,u,i,c,s=0,a=0,l=!1,f=!1,d=!0;function p(t){const n=r,i=o;return r=void 0,o=void 0,a=t,u=e.apply(i,n),u}function h(e,t){i=setTimeout(e,t)}function v(e){return e-(c||0)}function m(e){const n=v(e);return void 0===c||n>=t||n<0||f&&e-a>=s}function y(){const e=Date.now();if(m(e))return b(e);h(y,function(e){const n=v(e),r=e-a,o=t-n;return f?Math.min(o,s-r):o}(e))}function g(){i=void 0}function b(e){return g(),d&&r?p(e):(r=o=void 0,u)}function w(){return void 0!==i}function E(...e){const n=Date.now(),i=m(n);if(r=e,o=this,c=n,i){if(!w())return function(e){return a=e,h(y,t),l?p(e):u}(c);if(f)return h(y,t),p(c)}return w()||h(y,t),u}return n&&(l=!!n.leading,f="maxWait"in n,void 0!==n.maxWait&&(s=Math.max(n.maxWait,t)),d="trailing"in n?!!n.trailing:d),E.cancel=function(){void 0!==i&&clearTimeout(i),a=0,g(),r=c=o=void 0},E.flush=function(){return w()?b(Date.now()):u},E.pending=w,E},d=(e,t,n)=>{let r=!0,o=!0;return n&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),f(e,t,{leading:r,trailing:o,maxWait:t})},p=(e=!1)=>(...t)=>(...n)=>{const r=t.flat();return e&&r.reverse(),r.reduce(((e,t)=>[t(...e)]),n)[0]},h=p(),v=p(!0),m=window.React;const y=function(e){return a((t=>n=>e(n)?(0,m.createElement)(t,{...n}):null),"ifCondition")};var g=n(923),b=n.n(g);const w=window.wp.element,E=a((function(e){return e.prototype instanceof w.Component?class extends e{shouldComponentUpdate(e,t){return!b()(e,this.props)||!b()(t,this.state)}}:class extends w.Component{shouldComponentUpdate(e){return!b()(e,this.props)}render(){return(0,m.createElement)(e,{...this.props})}}}),"pure"),S=window.wp.deprecated;var x=n.n(S);const k=new class{constructor(){this.listeners={},this.handleEvent=this.handleEvent.bind(this)}add(e,t){this.listeners[e]||(window.addEventListener(e,this.handleEvent),this.listeners[e]=[]),this.listeners[e].push(t)}remove(e,t){this.listeners[e]&&(this.listeners[e]=this.listeners[e].filter((e=>e!==t)),this.listeners[e].length||(window.removeEventListener(e,this.handleEvent),delete this.listeners[e]))}handleEvent(e){this.listeners[e.type]?.forEach((t=>{t.handleEvent(e)}))}};function T(e){return x()("wp.compose.withGlobalEvents",{since:"5.7",alternative:"useEffect"}),a((t=>{class n extends w.Component{constructor(e){super(e),this.handleEvent=this.handleEvent.bind(this),this.handleRef=this.handleRef.bind(this)}componentDidMount(){Object.keys(e).forEach((e=>{k.add(e,this)}))}componentWillUnmount(){Object.keys(e).forEach((e=>{k.remove(e,this)}))}handleEvent(t){const n=e[t.type];"function"==typeof this.wrappedRef[n]&&this.wrappedRef[n](t)}handleRef(e){this.wrappedRef=e,this.props.forwardedRef&&this.props.forwardedRef(e)}render(){return(0,m.createElement)(t,{...this.props.ownProps,ref:this.handleRef})}}return(0,w.forwardRef)(((e,t)=>(0,m.createElement)(n,{ownProps:e,forwardedRef:t})))}),"withGlobalEvents")}const C=new WeakMap;const R=function(e,t,n){return(0,w.useMemo)((()=>{if(n)return n;const r=function(e){const t=C.get(e)||0;return C.set(e,t+1),t}(e);return t?`${t}-${r}`:r}),[e,n,t])},L=a((e=>t=>{const n=R(e);return(0,m.createElement)(e,{...t,instanceId:n})}),"instanceId"),D=a((e=>class extends w.Component{constructor(e){super(e),this.timeouts=[],this.setTimeout=this.setTimeout.bind(this),this.clearTimeout=this.clearTimeout.bind(this)}componentWillUnmount(){this.timeouts.forEach(clearTimeout)}setTimeout(e,t){const n=setTimeout((()=>{e(),this.clearTimeout(n)}),t);return this.timeouts.push(n),n}clearTimeout(e){clearTimeout(e),this.timeouts=this.timeouts.filter((t=>t!==e))}render(){return(0,m.createElement)(e,{...this.props,setTimeout:this.setTimeout,clearTimeout:this.clearTimeout})}}),"withSafeTimeout");function O(e={}){return x()("wp.compose.withState",{since:"5.8",alternative:"wp.element.useState"}),a((t=>class extends w.Component{constructor(t){super(t),this.setState=this.setState.bind(this),this.state=e}render(){return(0,m.createElement)(t,{...this.props,...this.state,setState:this.setState})}}),"withState")}const M=window.wp.dom;function _(e,t){const n=(0,w.useRef)();return(0,w.useCallback)((t=>{t?n.current=e(t):n.current&&n.current()}),t)}const A=function(){return _((e=>{function t(t){const{key:n,shiftKey:r,target:o}=t;if("Tab"!==n)return;const u=r?"findPrevious":"findNext",i=M.focus.tabbable[u](o)||null;if(o.contains(i))return t.preventDefault(),void i?.focus();if(e.contains(i))return;const c=r?"append":"prepend",{ownerDocument:s}=e,a=s.createElement("div");a.tabIndex=-1,e[c](a),a.addEventListener("blur",(()=>e.removeChild(a))),a.focus()}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[])};var P=n(3758),j=n.n(P);function I(e,t,n=4e3){x()("wp.compose.useCopyOnClick",{since:"5.8",alternative:"wp.compose.useCopyToClipboard"});const r=(0,w.useRef)(),[o,u]=(0,w.useState)(!1);return(0,w.useEffect)((()=>{let o;if(e.current)return r.current=new(j())(e.current,{text:()=>"function"==typeof t?t():t}),r.current.on("success",(({clearSelection:e,trigger:t})=>{e(),t&&t.focus(),n&&(u(!0),clearTimeout(o),o=setTimeout((()=>u(!1)),n))})),()=>{r.current&&r.current.destroy(),clearTimeout(o)}}),[t,n,u]),o}function N(e){const t=(0,w.useRef)(e);return t.current=e,t}function U(e,t){const n=N(e),r=N(t);return _((e=>{const t=new(j())(e,{text:()=>"function"==typeof n.current?n.current():n.current||""});return t.on("success",(({clearSelection:e})=>{e(),r.current&&r.current()})),()=>{t.destroy()}}),[])}const z=window.wp.keycodes;function V(e="firstElement"){const t=(0,w.useRef)(e),n=e=>{e.focus({preventScroll:!0})},r=(0,w.useRef)();return(0,w.useEffect)((()=>{t.current=e}),[e]),(0,w.useEffect)((()=>()=>{r.current&&clearTimeout(r.current)}),[]),(0,w.useCallback)((e=>{var o;e&&!1!==t.current&&(e.contains(null!==(o=e.ownerDocument?.activeElement)&&void 0!==o?o:null)||("firstElement"!==t.current?n(e):r.current=setTimeout((()=>{const t=M.focus.tabbable.find(e)[0];t&&n(t)}),0)))}),[])}let q=null;const K=function(e){const t=(0,w.useRef)(null),n=(0,w.useRef)(null),r=(0,w.useRef)(e);return(0,w.useEffect)((()=>{r.current=e}),[e]),(0,w.useCallback)((e=>{if(e){if(t.current=e,n.current)return;n.current=e.ownerDocument.activeElement}else if(n.current){const e=t.current?.contains(t.current?.ownerDocument.activeElement);var o;if(t.current?.isConnected&&!e)return void(null!==(o=q)&&void 0!==o||(q=n.current));r.current?r.current():(n.current.isConnected?n.current:q)?.focus(),q=null}}),[])},W=["button","submit"];function H(e){const t=(0,w.useRef)(e);(0,w.useEffect)((()=>{t.current=e}),[e]);const n=(0,w.useRef)(!1),r=(0,w.useRef)(),o=(0,w.useCallback)((()=>{clearTimeout(r.current)}),[]);(0,w.useEffect)((()=>()=>o()),[]),(0,w.useEffect)((()=>{e||o()}),[e,o]);const u=(0,w.useCallback)((e=>{const{type:t,target:r}=e;["mouseup","touchend"].includes(t)?n.current=!1:function(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return W.includes(e.type)}return!1}(r)&&(n.current=!0)}),[]),i=(0,w.useCallback)((e=>{if(e.persist(),n.current)return;const o=e.target.getAttribute("data-unstable-ignore-focus-outside-for-relatedtarget");o&&e.relatedTarget?.closest(o)||(r.current=setTimeout((()=>{document.hasFocus()?"function"==typeof t.current&&t.current(e):e.preventDefault()}),0))}),[]);return{onFocus:o,onMouseDown:u,onMouseUp:u,onTouchStart:u,onTouchEnd:u,onBlur:i}}function $(e,t){"function"==typeof e?e(t):e&&e.hasOwnProperty("current")&&(e.current=t)}function F(e){const t=(0,w.useRef)(),n=(0,w.useRef)(!1),r=(0,w.useRef)(!1),o=(0,w.useRef)([]),u=(0,w.useRef)(e);return u.current=e,(0,w.useLayoutEffect)((()=>{!1===r.current&&!0===n.current&&e.forEach(((e,n)=>{const r=o.current[n];e!==r&&($(r,null),$(e,t.current))})),o.current=e}),e),(0,w.useLayoutEffect)((()=>{r.current=!1})),(0,w.useCallback)((e=>{$(t,e),r.current=!0,n.current=null!==e;const i=e?u.current:o.current;for(const t of i)$(t,e)}),[])}const B=function(e){const t=(0,w.useRef)(),{constrainTabbing:n=!1!==e.focusOnMount}=e;(0,w.useEffect)((()=>{t.current=e}),Object.values(e));const r=A(),o=V(e.focusOnMount),u=K(),i=H((e=>{t.current?.__unstableOnClose?t.current.__unstableOnClose("focus-outside",e):t.current?.onClose&&t.current.onClose()})),c=(0,w.useCallback)((e=>{e&&e.addEventListener("keydown",(e=>{e.keyCode===z.ESCAPE&&!e.defaultPrevented&&t.current?.onClose&&(e.preventDefault(),t.current.onClose())}))}),[]);return[F([n?r:null,!1!==e.focusOnMount?u:null,!1!==e.focusOnMount?o:null,c]),{...i,tabIndex:-1}]};function Z({isDisabled:e=!1}={}){return _((t=>{if(e)return;const n=t?.ownerDocument?.defaultView;if(!n)return;const r=[],o=()=>{t.childNodes.forEach((e=>{e instanceof n.HTMLElement&&(e.getAttribute("inert")||(e.setAttribute("inert","true"),r.push((()=>{e.removeAttribute("inert")}))))}))},u=f(o,0,{leading:!0});o();const i=new window.MutationObserver(u);return i.observe(t,{childList:!0}),()=>{i&&i.disconnect(),u.cancel(),r.forEach((e=>e()))}}),[e])}const G="undefined"!=typeof window?w.useLayoutEffect:w.useEffect;function Q({onDragStart:e,onDragMove:t,onDragEnd:n}){const[r,o]=(0,w.useState)(!1),u=(0,w.useRef)({onDragStart:e,onDragMove:t,onDragEnd:n});G((()=>{u.current.onDragStart=e,u.current.onDragMove=t,u.current.onDragEnd=n}),[e,t,n]);const i=(0,w.useCallback)((e=>u.current.onDragMove&&u.current.onDragMove(e)),[]),c=(0,w.useCallback)((e=>{u.current.onDragEnd&&u.current.onDragEnd(e),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c),o(!1)}),[]),s=(0,w.useCallback)((e=>{u.current.onDragStart&&u.current.onDragStart(e),document.addEventListener("mousemove",i),document.addEventListener("mouseup",c),o(!0)}),[]);return(0,w.useEffect)((()=>()=>{r&&(document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c))}),[r]),{startDrag:s,endDrag:c,isDragging:r}}var X=n(1933),Y=n.n(X);n(5760);const J=function(e,t,{bindGlobal:n=!1,eventName:r="keydown",isDisabled:o=!1,target:u}={}){const i=(0,w.useRef)(t);(0,w.useEffect)((()=>{i.current=t}),[t]),(0,w.useEffect)((()=>{if(o)return;const t=new(Y())(u&&u.current?u.current:document);return(Array.isArray(e)?e:[e]).forEach((e=>{const o=e.split("+"),u=new Set(o.filter((e=>e.length>1))),c=u.has("alt"),s=u.has("shift");if((0,z.isAppleOS)()&&(1===u.size&&c||2===u.size&&c&&s))throw new Error(`Cannot bind ${e}. Alt and Shift+Alt modifiers are reserved for character input.`);t[n?"bindGlobal":"bind"](e,((...e)=>i.current(...e)),r)})),()=>{t.reset()}}),[e,n,r,u,o])};function ee(e){const t=(0,w.useMemo)((()=>{const t=function(e){return e&&"undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia(e):null}(e);return{subscribe:e=>t?(t.addEventListener?.("change",e),()=>{t.removeEventListener?.("change",e)}):()=>{},getValue(){var e;return null!==(e=t?.matches)&&void 0!==e&&e}}}),[e]);return(0,w.useSyncExternalStore)(t.subscribe,t.getValue,(()=>!1))}function te(e){const t=(0,w.useRef)();return(0,w.useEffect)((()=>{t.current=e}),[e]),t.current}const ne=()=>ee("(prefers-reduced-motion: reduce)");var re=n(6689);function oe(e,t){switch(t.type){case"UNDO":{const t=e.manager.undo();return t?{...e,value:t[0].changes.prop.from}:e}case"REDO":{const t=e.manager.redo();return t?{...e,value:t[0].changes.prop.to}:e}case"RECORD":return e.manager.addRecord([{id:"object",changes:{prop:{from:e.value,to:t.value}}}],t.isStaged),{...e,value:t.value}}return e}function ue(e){return{manager:(0,re.createUndoManager)(),value:e}}function ie(e){const[t,n]=(0,w.useReducer)(oe,e,ue);return{value:t.value,setValue:(0,w.useCallback)(((e,t)=>{n({type:"RECORD",value:e,isStaged:t})}),[]),hasUndo:t.manager.hasUndo(),hasRedo:t.manager.hasRedo(),undo:(0,w.useCallback)((()=>{n({type:"UNDO"})}),[]),redo:(0,w.useCallback)((()=>{n({type:"REDO"})}),[])}}const ce={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},se={">=":"min-width","<":"max-width"},ae={">=":(e,t)=>t>=e,"<":(e,t)=>t<e},le=(0,w.createContext)(null),fe=(e,t=">=")=>{const n=(0,w.useContext)(le),r=ee(!n&&`(${se[t]}: ${ce[e]}px)`||void 0);return n?ae[t](ce[e],n):r};fe.__experimentalWidthProvider=le.Provider;const de=fe;const pe=(e,t,n)=>e[t]?e[t][0]?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0;function he(e={}){const t=e.onResize,n=(0,w.useRef)(void 0);n.current=t;const r=e.round||Math.round,o=(0,w.useRef)(),[u,i]=(0,w.useState)({width:void 0,height:void 0}),c=(0,w.useRef)(!1);(0,w.useEffect)((()=>(c.current=!1,()=>{c.current=!0})),[]);const s=(0,w.useRef)({width:void 0,height:void 0}),a=function(e,t){const n=(0,w.useRef)(null),r=(0,w.useRef)(null),o=(0,w.useRef)(),u=(0,w.useCallback)((()=>{let i=null;n.current?i=n.current:t&&(i=t instanceof HTMLElement?t:t.current),r.current&&r.current.element===i&&r.current.reporter===u||(o.current&&(o.current(),o.current=null),r.current={reporter:u,element:i},i&&(o.current=e(i)))}),[t,e]);return(0,w.useEffect)((()=>{u()}),[u]),(0,w.useCallback)((e=>{n.current=e,u()}),[u])}((0,w.useCallback)((t=>(o.current&&o.current.box===e.box&&o.current.round===r||(o.current={box:e.box,round:r,instance:new ResizeObserver((t=>{const o=t[0];let u="borderBoxSize";u="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize";const a=pe(o,u,"inlineSize"),l=pe(o,u,"blockSize"),f=a?r(a):void 0,d=l?r(l):void 0;if(s.current.width!==f||s.current.height!==d){const e={width:f,height:d};s.current.width=f,s.current.height=d,n.current?n.current(e):c.current||i(e)}}))}),o.current.instance.observe(t,{box:e.box}),()=>{o.current&&o.current.instance.unobserve(t)})),[e.box,r]),e.ref);return(0,w.useMemo)((()=>({ref:a,width:u.width,height:u.height})),[a,u?u.width:null,u?u.height:null])}function ve(){const{ref:e,width:t,height:n}=he(),r=(0,w.useMemo)((()=>({width:null!=t?t:null,height:null!=n?n:null})),[t,n]);return[(0,m.createElement)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",opacity:0,overflow:"hidden",zIndex:-1},"aria-hidden":"true",ref:e}),r]}const me=window.wp.priorityQueue;const ye=function(e,t={step:1}){const{step:n=1}=t,[r,o]=(0,w.useState)([]);return(0,w.useEffect)((()=>{let t=function(e,t){const n=[];for(let r=0;r<e.length;r++){const o=e[r];if(!t.includes(o))break;n.push(o)}return n}(e,r);t.length<n&&(t=t.concat(e.slice(t.length,n))),o(t);const u=(0,me.createQueue)();for(let r=t.length;r<e.length;r+=n)u.add({},(()=>{(0,w.flushSync)((()=>{o((t=>[...t,...e.slice(r,r+n)]))}))}));return()=>u.reset()}),[e]),r};const ge=function(e,t="Change detection"){const n=te(e);Object.entries(null!=n?n:[]).forEach((([n,r])=>{r!==e[n]&&console.warn(`${t}: ${n} key changed:`,r,e[n])}))};function be(e,t){var n=(0,m.useState)((function(){return{inputs:t,result:e()}}))[0],r=(0,m.useRef)(!0),o=(0,m.useRef)(n),u=r.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs))?o.current:{inputs:t,result:e()};return(0,m.useEffect)((function(){r.current=!1,o.current=u}),[u]),u.result}function we(e,t,n){const r=be((()=>f(e,null!=t?t:0,n)),[e,t,n]);return(0,w.useEffect)((()=>()=>r.cancel()),[r]),r}function Ee(e=""){const[t,n]=(0,w.useState)(e),[r,o]=(0,w.useState)(e),u=we(o,250);return(0,w.useEffect)((()=>{u(t)}),[t]),[t,n,r]}function Se(e,t,n){const r=be((()=>d(e,null!=t?t:0,n)),[e,t,n]);return(0,w.useEffect)((()=>()=>r.cancel()),[r]),r}function xe(e){const t=(0,w.useRef)();return t.current=e,t}function ke({dropZoneElement:e,isDisabled:t,onDrop:n,onDragStart:r,onDragEnter:o,onDragLeave:u,onDragEnd:i,onDragOver:c}){const s=xe(n),a=xe(r),l=xe(o),f=xe(u),d=xe(i),p=xe(c);return _((n=>{if(t)return;const r=null!=e?e:n;let o=!1;const{ownerDocument:u}=r;function i(e){o||(o=!0,u.addEventListener("dragend",y),u.addEventListener("mousemove",y),a.current&&a.current(e))}function c(e){e.preventDefault(),r.contains(e.relatedTarget)||l.current&&l.current(e)}function h(e){!e.defaultPrevented&&p.current&&p.current(e),e.preventDefault()}function v(e){(function(e){const{defaultView:t}=u;if(!(e&&t&&e instanceof t.HTMLElement&&r.contains(e)))return!1;let n=e;do{if(n.dataset.isDropZone)return n===r}while(n=n.parentElement);return!1})(e.relatedTarget)||f.current&&f.current(e)}function m(e){e.defaultPrevented||(e.preventDefault(),e.dataTransfer&&e.dataTransfer.files.length,s.current&&s.current(e),y(e))}function y(e){o&&(o=!1,u.removeEventListener("dragend",y),u.removeEventListener("mousemove",y),d.current&&d.current(e))}return r.dataset.isDropZone="true",r.addEventListener("drop",m),r.addEventListener("dragenter",c),r.addEventListener("dragover",h),r.addEventListener("dragleave",v),u.addEventListener("dragenter",i),()=>{delete r.dataset.isDropZone,r.removeEventListener("drop",m),r.removeEventListener("dragenter",c),r.removeEventListener("dragover",h),r.removeEventListener("dragleave",v),u.removeEventListener("dragend",y),u.removeEventListener("mousemove",y),u.removeEventListener("dragenter",i)}}),[t,e])}function Te(){return _((e=>{const{ownerDocument:t}=e;if(!t)return;const{defaultView:n}=t;if(n)return n.addEventListener("blur",r),()=>{n.removeEventListener("blur",r)};function r(){t&&t.activeElement===e&&e.focus()}}),[])}const Ce=30;function Re(e,t,n,r){var o,u;const i=null!==(o=r?.initWindowSize)&&void 0!==o?o:Ce,c=null===(u=r?.useWindowing)||void 0===u||u,[s,a]=(0,w.useState)({visibleItems:i,start:0,end:i,itemInView:e=>e>=0&&e<=i});return(0,w.useLayoutEffect)((()=>{if(!c)return;const o=(0,M.getScrollContainer)(e.current),u=e=>{var u;if(!o)return;const i=Math.ceil(o.clientHeight/t),c=e?i:null!==(u=r?.windowOverscan)&&void 0!==u?u:i,s=Math.floor(o.scrollTop/t),l=Math.max(0,s-c),f=Math.min(n-1,s+i+c);a((e=>{const t={visibleItems:i,start:l,end:f,itemInView:e=>l<=e&&e<=f};return e.start!==t.start||e.end!==t.end||e.visibleItems!==t.visibleItems?t:e}))};u(!0);const i=f((()=>{u()}),16);return o?.addEventListener("scroll",i),o?.ownerDocument?.defaultView?.addEventListener("resize",i),o?.ownerDocument?.defaultView?.addEventListener("resize",i),()=>{o?.removeEventListener("scroll",i),o?.ownerDocument?.defaultView?.removeEventListener("resize",i)}}),[t,e,n,r?.expandedState,r?.windowOverscan,c]),(0,w.useLayoutEffect)((()=>{if(!c)return;const r=(0,M.getScrollContainer)(e.current),o=e=>{switch(e.keyCode){case z.HOME:return r?.scrollTo({top:0});case z.END:return r?.scrollTo({top:n*t});case z.PAGEUP:return r?.scrollTo({top:r.scrollTop-s.visibleItems*t});case z.PAGEDOWN:return r?.scrollTo({top:r.scrollTop+s.visibleItems*t})}};return r?.ownerDocument?.defaultView?.addEventListener("keydown",o),()=>{r?.ownerDocument?.defaultView?.removeEventListener("keydown",o)}}),[n,t,e,s.visibleItems,c,r?.expandedState]),[s,a]}})(),(window.wp=window.wp||{}).compose=r})(); \ No newline at end of file
+var t;t=function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return x}});var r=n(279),o=n.n(r),u=n(370),i=n.n(u),c=n(817),s=n.n(c);function a(e){try{return document.execCommand(e)}catch(e){return!1}}var l=function(e){var t=s()(e);return a("cut"),t},f=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var r=s()(n);return a("copy"),n.remove(),r},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=f(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=f(e.value,t):(n=s()(e),a("copy")),n};function p(e){return p="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},p(e)}var h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,o=e.target,u=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==p(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return u?d(u,{container:r}):o?"cut"===n?l(o):d(o,{container:r}):void 0};function v(e){return v="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},v(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function g(e){var t=function(){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}}();return function(){var n,r,o,u=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(u,arguments,i)}else n=u.apply(this,arguments);return r=this,!(o=n)||"object"!==v(o)&&"function"!=typeof o?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r):o}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function w(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(u,e);var t,n,r,o=g(u);function u(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=o.call(this)).resolveOptions(t),n.listenClick(e),n}return t=u,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===v(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=i()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=h({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return w("action",e)}},{key:"defaultTarget",value:function(e){var t=w("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return w("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return d(e,t)}},{key:"cut",value:function(e){return l(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&m(t.prototype,n),r&&m(t,r),u}(o()),x=E},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function o(e,t,n,r,o){var i=u.apply(this,arguments);return e.addEventListener(n,i,o),{destroy:function(){e.removeEventListener(n,i,o)}}}function u(e,t,n,o){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=function(e,t,n,r,u){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,r,u)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var u=0,i=r.length;u<i;u++)r[u].fn!==t&&r[u].fn._!==t&&o.push(r[u]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},e.exports=t()},1933:(e,t,n)=>{var r;!function(o,u,i){if(o){for(var c,s={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},a={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},l={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},f={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)s[111+d]="f"+d;for(d=0;d<=9;++d)s[d+96]=d.toString();b.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},b.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},b.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},b.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},b.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(g(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},b.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},b.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(s[t]=e[t]);c=null},b.init=function(){var e=b(u);for(var t in e)"_"!==t.charAt(0)&&(b[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},b.init(),o.Mousetrap=b,e.exports&&(e.exports=b),void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}function p(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function h(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return s[e.which]?s[e.which]:a[e.which]?a[e.which]:String.fromCharCode(e.which).toLowerCase()}function v(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function m(e,t,n){return n||(n=function(){if(!c)for(var e in c={},s)e>95&&e<112||s.hasOwnProperty(e)&&(c[s[e]]=e);return c}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function y(e,t){var n,r,o,u=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o<n.length;++o)r=n[o],f[r]&&(r=f[r]),t&&"keypress"!=t&&l[r]&&(r=l[r],u.push("shift")),v(r)&&u.push(r);return{key:r,modifiers:u,action:t=m(r,u,t)}}function g(e,t){return null!==e&&e!==u&&(e===t||g(e.parentNode,t))}function b(e){var t=this;if(e=e||u,!(t instanceof b))return new b(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},o=!1,i=!1,c=!1;function s(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(c=!1)}function a(e,n,o,u,i,c){var s,a,l,f,d=[],p=o.type;if(!t._callbacks[e])return[];for("keyup"==p&&v(e)&&(n=[e]),s=0;s<t._callbacks[e].length;++s)if(a=t._callbacks[e][s],(u||!a.seq||r[a.seq]==a.level)&&p==a.action&&("keypress"==p&&!o.metaKey&&!o.ctrlKey||(l=n,f=a.modifiers,l.sort().join(",")===f.sort().join(",")))){var h=!u&&a.combo==i,m=u&&a.seq==u&&a.level==c;(h||m)&&t._callbacks[e].splice(s,1),d.push(a)}return d}function l(e,n,r,o){t.stopCallback(n,n.target||n.srcElement,r,o)||!1===e(n,r)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function f(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=h(e);n&&("keyup"!=e.type||o!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):o=!1)}function d(e,t,u,i){function a(t){return function(){c=t,++r[e],clearTimeout(n),n=setTimeout(s,1e3)}}function f(t){l(u,t,e),"keyup"!==i&&(o=h(t)),setTimeout(s,10)}r[e]=0;for(var d=0;d<t.length;++d){var p=d+1===t.length?f:a(i||y(t[d+1]).action);m(t[d],p,i,e,d)}}function m(e,n,r,o,u){t._directMap[e+":"+r]=n;var i,c=(e=e.replace(/\s+/g," ")).split(" ");c.length>1?d(e,c,n,r):(i=y(e,r),t._callbacks[i.key]=t._callbacks[i.key]||[],a(i.key,i.modifiers,{type:i.action},o,e,u),t._callbacks[i.key][o?"unshift":"push"]({callback:n,modifiers:i.modifiers,action:i.action,seq:o,level:u,combo:e}))}t._handleKey=function(e,t,n){var r,o=a(e,t,n),u={},f=0,d=!1;for(r=0;r<o.length;++r)o[r].seq&&(f=Math.max(f,o[r].level));for(r=0;r<o.length;++r)if(o[r].seq){if(o[r].level!=f)continue;d=!0,u[o[r].seq]=1,l(o[r].callback,n,o[r].combo,o[r].seq)}else d||l(o[r].callback,n,o[r].combo);var p="keypress"==n.type&&i;n.type!=c||v(e)||p||s(u),i=d&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)m(e[r],t,n)},p(e,"keypress",f),p(e,"keydown",f),p(e,"keyup",f)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},5760:()=>{!function(e){if(e){var t={},n=e.prototype.stopCallback;e.prototype.stopCallback=function(e,r,o,u){return!!this.paused||!t[o]&&!t[u]&&n.call(this,e,r,o)},e.prototype.bindGlobal=function(e,n,r){if(this.bind(e,n,r),e instanceof Array)for(var o=0;o<e.length;o++)t[e[o]]=!0;else t[e]=!0},e.init()}}("undefined"!=typeof Mousetrap?Mousetrap:void 0)},923:e=>{"use strict";e.exports=window.wp.isShallowEqual}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var u=t[r]={exports:{}};return e[r].call(u.exports,u,u.exports,n),u.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{__experimentalUseDialog:()=>Z,__experimentalUseDragging:()=>X,__experimentalUseDropZone:()=>Re,__experimentalUseFixedWindowList:()=>Me,__experimentalUseFocusOutside:()=>$,compose:()=>m,createHigherOrderComponent:()=>a,debounce:()=>f,ifCondition:()=>g,observableMap:()=>p,pipe:()=>v,pure:()=>x,throttle:()=>d,useAsyncList:()=>be,useConstrainedTabbing:()=>j,useCopyOnClick:()=>N,useCopyToClipboard:()=>U,useDebounce:()=>Se,useDebouncedInput:()=>ke,useDisabled:()=>G,useFocusOnMount:()=>q,useFocusReturn:()=>W,useFocusableIframe:()=>Le,useInstanceId:()=>L,useIsomorphicLayoutEffect:()=>Q,useKeyboardShortcut:()=>ee,useMediaQuery:()=>ne,useMergeRefs:()=>B,useObservableValue:()=>Oe,usePrevious:()=>re,useReducedMotion:()=>oe,useRefEffect:()=>A,useResizeObserver:()=>ye,useStateWithHistory:()=>se,useThrottle:()=>Te,useViewportMatch:()=>he,useWarnOnChange:()=>we,withGlobalEvents:()=>C,withInstanceId:()=>D,withSafeTimeout:()=>M,withState:()=>O});var e=function(){return e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function t(e){return e.toLowerCase()}var o=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],u=/[^A-Z0-9]+/gi;function i(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function c(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function s(n,r){return void 0===r&&(r={}),function(e,n){void 0===n&&(n={});for(var r=n.splitRegexp,c=void 0===r?o:r,s=n.stripRegexp,a=void 0===s?u:s,l=n.transform,f=void 0===l?t:l,d=n.delimiter,p=void 0===d?" ":d,h=i(i(e,c,"$1\0$2"),a,"\0"),v=0,m=h.length;"\0"===h.charAt(v);)v++;for(;"\0"===h.charAt(m-1);)m--;return h.slice(v,m).split("\0").map(f).join(p)}(n,e({delimiter:"",transform:c},r))}function a(e,t){return n=>{const r=e(n);return r.displayName=l(t,n),r}}const l=(e,t)=>{const n=t.displayName||t.name||"Component";return`${s(null!=e?e:"")}(${n})`},f=(e,t,n)=>{let r,o,u,i,c,s=0,a=0,l=!1,f=!1,d=!0;function p(t){const n=r,i=o;return r=void 0,o=void 0,a=t,u=e.apply(i,n),u}function h(e,t){i=setTimeout(e,t)}function v(e){return e-(c||0)}function m(e){const n=v(e);return void 0===c||n>=t||n<0||f&&e-a>=s}function y(){const e=Date.now();if(m(e))return b(e);h(y,function(e){const n=v(e),r=e-a,o=t-n;return f?Math.min(o,s-r):o}(e))}function g(){i=void 0}function b(e){return g(),d&&r?p(e):(r=o=void 0,u)}function w(){return void 0!==i}function E(...e){const n=Date.now(),i=m(n);if(r=e,o=this,c=n,i){if(!w())return function(e){return a=e,h(y,t),l?p(e):u}(c);if(f)return h(y,t),p(c)}return w()||h(y,t),u}return n&&(l=!!n.leading,f="maxWait"in n,void 0!==n.maxWait&&(s=Math.max(n.maxWait,t)),d="trailing"in n?!!n.trailing:d),E.cancel=function(){void 0!==i&&clearTimeout(i),a=0,g(),r=c=o=void 0},E.flush=function(){return w()?b(Date.now()):u},E.pending=w,E},d=(e,t,n)=>{let r=!0,o=!0;return n&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),f(e,t,{leading:r,trailing:o,maxWait:t})};function p(){const e=new Map,t=new Map;function n(e){const n=t.get(e);if(n)for(const e of n)e()}return{get:t=>e.get(t),set(t,r){e.set(t,r),n(t)},delete(t){e.delete(t),n(t)},subscribe(e,n){let r=t.get(e);return r||(r=new Set,t.set(e,r)),r.add(n),()=>{r.delete(n),0===r.size&&t.delete(e)}}}}const h=(e=!1)=>(...t)=>(...n)=>{const r=t.flat();return e&&r.reverse(),r.reduce(((e,t)=>[t(...e)]),n)[0]},v=h(),m=h(!0),y=window.ReactJSXRuntime;const g=function(e){return a((t=>n=>e(n)?(0,y.jsx)(t,{...n}):null),"ifCondition")};var b=n(923),w=n.n(b);const E=window.wp.element,x=a((function(e){return e.prototype instanceof E.Component?class extends e{shouldComponentUpdate(e,t){return!w()(e,this.props)||!w()(t,this.state)}}:class extends E.Component{shouldComponentUpdate(e){return!w()(e,this.props)}render(){return(0,y.jsx)(e,{...this.props})}}}),"pure"),S=window.wp.deprecated;var k=n.n(S);const T=new class{constructor(){this.listeners={},this.handleEvent=this.handleEvent.bind(this)}add(e,t){this.listeners[e]||(window.addEventListener(e,this.handleEvent),this.listeners[e]=[]),this.listeners[e].push(t)}remove(e,t){this.listeners[e]&&(this.listeners[e]=this.listeners[e].filter((e=>e!==t)),this.listeners[e].length||(window.removeEventListener(e,this.handleEvent),delete this.listeners[e]))}handleEvent(e){this.listeners[e.type]?.forEach((t=>{t.handleEvent(e)}))}};function C(e){return k()("wp.compose.withGlobalEvents",{since:"5.7",alternative:"useEffect"}),a((t=>{class n extends E.Component{constructor(e){super(e),this.handleEvent=this.handleEvent.bind(this),this.handleRef=this.handleRef.bind(this)}componentDidMount(){Object.keys(e).forEach((e=>{T.add(e,this)}))}componentWillUnmount(){Object.keys(e).forEach((e=>{T.remove(e,this)}))}handleEvent(t){const n=e[t.type];"function"==typeof this.wrappedRef[n]&&this.wrappedRef[n](t)}handleRef(e){this.wrappedRef=e,this.props.forwardedRef&&this.props.forwardedRef(e)}render(){return(0,y.jsx)(t,{...this.props.ownProps,ref:this.handleRef})}}return(0,E.forwardRef)(((e,t)=>(0,y.jsx)(n,{ownProps:e,forwardedRef:t})))}),"withGlobalEvents")}const R=new WeakMap;const L=function(e,t,n){return(0,E.useMemo)((()=>{if(n)return n;const r=function(e){const t=R.get(e)||0;return R.set(e,t+1),t}(e);return t?`${t}-${r}`:r}),[e,n,t])},D=a((e=>t=>{const n=L(e);return(0,y.jsx)(e,{...t,instanceId:n})}),"instanceId"),M=a((e=>class extends E.Component{constructor(e){super(e),this.timeouts=[],this.setTimeout=this.setTimeout.bind(this),this.clearTimeout=this.clearTimeout.bind(this)}componentWillUnmount(){this.timeouts.forEach(clearTimeout)}setTimeout(e,t){const n=setTimeout((()=>{e(),this.clearTimeout(n)}),t);return this.timeouts.push(n),n}clearTimeout(e){clearTimeout(e),this.timeouts=this.timeouts.filter((t=>t!==e))}render(){return(0,y.jsx)(e,{...this.props,setTimeout:this.setTimeout,clearTimeout:this.clearTimeout})}}),"withSafeTimeout");function O(e={}){return k()("wp.compose.withState",{since:"5.8",alternative:"wp.element.useState"}),a((t=>class extends E.Component{constructor(t){super(t),this.setState=this.setState.bind(this),this.state=e}render(){return(0,y.jsx)(t,{...this.props,...this.state,setState:this.setState})}}),"withState")}const _=window.wp.dom;function A(e,t){const n=(0,E.useRef)();return(0,E.useCallback)((t=>{t?n.current=e(t):n.current&&n.current()}),t)}const j=function(){return A((e=>{function t(t){const{key:n,shiftKey:r,target:o}=t;if("Tab"!==n)return;const u=r?"findPrevious":"findNext",i=_.focus.tabbable[u](o)||null;if(o.contains(i))return t.preventDefault(),void i?.focus();if(e.contains(i))return;const c=r?"append":"prepend",{ownerDocument:s}=e,a=s.createElement("div");a.tabIndex=-1,e[c](a),a.addEventListener("blur",(()=>e.removeChild(a))),a.focus()}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[])};var P=n(3758),I=n.n(P);function N(e,t,n=4e3){k()("wp.compose.useCopyOnClick",{since:"5.8",alternative:"wp.compose.useCopyToClipboard"});const r=(0,E.useRef)(),[o,u]=(0,E.useState)(!1);return(0,E.useEffect)((()=>{let o;if(e.current)return r.current=new(I())(e.current,{text:()=>"function"==typeof t?t():t}),r.current.on("success",(({clearSelection:e,trigger:t})=>{e(),t&&t.focus(),n&&(u(!0),clearTimeout(o),o=setTimeout((()=>u(!1)),n))})),()=>{r.current&&r.current.destroy(),clearTimeout(o)}}),[t,n,u]),o}function z(e){const t=(0,E.useRef)(e);return t.current=e,t}function U(e,t){const n=z(e),r=z(t);return A((e=>{const t=new(I())(e,{text:()=>"function"==typeof n.current?n.current():n.current||""});return t.on("success",(({clearSelection:e})=>{e(),r.current&&r.current()})),()=>{t.destroy()}}),[])}const V=window.wp.keycodes;function q(e="firstElement"){const t=(0,E.useRef)(e),n=e=>{e.focus({preventScroll:!0})},r=(0,E.useRef)();return(0,E.useEffect)((()=>{t.current=e}),[e]),A((e=>{var o;if(e&&!1!==t.current&&!e.contains(null!==(o=e.ownerDocument?.activeElement)&&void 0!==o?o:null)){if("firstElement"!==t.current)return n(e),()=>{r.current&&clearTimeout(r.current)};r.current=setTimeout((()=>{const t=_.focus.tabbable.find(e)[0];t&&n(t)}),0)}}),[])}let K=null;const W=function(e){const t=(0,E.useRef)(null),n=(0,E.useRef)(null),r=(0,E.useRef)(e);return(0,E.useEffect)((()=>{r.current=e}),[e]),(0,E.useCallback)((e=>{if(e){if(t.current=e,n.current)return;n.current=e.ownerDocument.activeElement}else if(n.current){const e=t.current?.contains(t.current?.ownerDocument.activeElement);var o;if(t.current?.isConnected&&!e)return void(null!==(o=K)&&void 0!==o||(K=n.current));r.current?r.current():(n.current.isConnected?n.current:K)?.focus(),K=null}}),[])},H=["button","submit"];function $(e){const t=(0,E.useRef)(e);(0,E.useEffect)((()=>{t.current=e}),[e]);const n=(0,E.useRef)(!1),r=(0,E.useRef)(),o=(0,E.useCallback)((()=>{clearTimeout(r.current)}),[]);(0,E.useEffect)((()=>()=>o()),[]),(0,E.useEffect)((()=>{e||o()}),[e,o]);const u=(0,E.useCallback)((e=>{const{type:t,target:r}=e;["mouseup","touchend"].includes(t)?n.current=!1:function(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return H.includes(e.type)}return!1}(r)&&(n.current=!0)}),[]),i=(0,E.useCallback)((e=>{if(e.persist(),n.current)return;const o=e.target.getAttribute("data-unstable-ignore-focus-outside-for-relatedtarget");o&&e.relatedTarget?.closest(o)||(r.current=setTimeout((()=>{document.hasFocus()?"function"==typeof t.current&&t.current(e):e.preventDefault()}),0))}),[]);return{onFocus:o,onMouseDown:u,onMouseUp:u,onTouchStart:u,onTouchEnd:u,onBlur:i}}function F(e,t){"function"==typeof e?e(t):e&&e.hasOwnProperty("current")&&(e.current=t)}function B(e){const t=(0,E.useRef)(),n=(0,E.useRef)(!1),r=(0,E.useRef)(!1),o=(0,E.useRef)([]),u=(0,E.useRef)(e);return u.current=e,(0,E.useLayoutEffect)((()=>{!1===r.current&&!0===n.current&&e.forEach(((e,n)=>{const r=o.current[n];e!==r&&(F(r,null),F(e,t.current))})),o.current=e}),e),(0,E.useLayoutEffect)((()=>{r.current=!1})),(0,E.useCallback)((e=>{F(t,e),r.current=!0,n.current=null!==e;const i=e?u.current:o.current;for(const t of i)F(t,e)}),[])}const Z=function(e){const t=(0,E.useRef)(),{constrainTabbing:n=!1!==e.focusOnMount}=e;(0,E.useEffect)((()=>{t.current=e}),Object.values(e));const r=j(),o=q(e.focusOnMount),u=W(),i=$((e=>{t.current?.__unstableOnClose?t.current.__unstableOnClose("focus-outside",e):t.current?.onClose&&t.current.onClose()})),c=(0,E.useCallback)((e=>{e&&e.addEventListener("keydown",(e=>{e.keyCode===V.ESCAPE&&!e.defaultPrevented&&t.current?.onClose&&(e.preventDefault(),t.current.onClose())}))}),[]);return[B([n?r:null,!1!==e.focusOnMount?u:null,!1!==e.focusOnMount?o:null,c]),{...i,tabIndex:-1}]};function G({isDisabled:e=!1}={}){return A((t=>{if(e)return;const n=t?.ownerDocument?.defaultView;if(!n)return;const r=[],o=()=>{t.childNodes.forEach((e=>{e instanceof n.HTMLElement&&(e.getAttribute("inert")||(e.setAttribute("inert","true"),r.push((()=>{e.removeAttribute("inert")}))))}))},u=f(o,0,{leading:!0});o();const i=new window.MutationObserver(u);return i.observe(t,{childList:!0}),()=>{i&&i.disconnect(),u.cancel(),r.forEach((e=>e()))}}),[e])}const Q="undefined"!=typeof window?E.useLayoutEffect:E.useEffect;function X({onDragStart:e,onDragMove:t,onDragEnd:n}){const[r,o]=(0,E.useState)(!1),u=(0,E.useRef)({onDragStart:e,onDragMove:t,onDragEnd:n});Q((()=>{u.current.onDragStart=e,u.current.onDragMove=t,u.current.onDragEnd=n}),[e,t,n]);const i=(0,E.useCallback)((e=>u.current.onDragMove&&u.current.onDragMove(e)),[]),c=(0,E.useCallback)((e=>{u.current.onDragEnd&&u.current.onDragEnd(e),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c),o(!1)}),[]),s=(0,E.useCallback)((e=>{u.current.onDragStart&&u.current.onDragStart(e),document.addEventListener("mousemove",i),document.addEventListener("mouseup",c),o(!0)}),[]);return(0,E.useEffect)((()=>()=>{r&&(document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c))}),[r]),{startDrag:s,endDrag:c,isDragging:r}}var Y=n(1933),J=n.n(Y);n(5760);const ee=function(e,t,{bindGlobal:n=!1,eventName:r="keydown",isDisabled:o=!1,target:u}={}){const i=(0,E.useRef)(t);(0,E.useEffect)((()=>{i.current=t}),[t]),(0,E.useEffect)((()=>{if(o)return;const t=new(J())(u&&u.current?u.current:document);return(Array.isArray(e)?e:[e]).forEach((e=>{const o=e.split("+"),u=new Set(o.filter((e=>e.length>1))),c=u.has("alt"),s=u.has("shift");if((0,V.isAppleOS)()&&(1===u.size&&c||2===u.size&&c&&s))throw new Error(`Cannot bind ${e}. Alt and Shift+Alt modifiers are reserved for character input.`);t[n?"bindGlobal":"bind"](e,((...e)=>i.current(...e)),r)})),()=>{t.reset()}}),[e,n,r,u,o])},te=new Map;function ne(e){const t=(0,E.useMemo)((()=>{const t=function(e){if(!e)return null;let t=te.get(e);return t||("undefined"!=typeof window&&"function"==typeof window.matchMedia?(t=window.matchMedia(e),te.set(e,t),t):null)}(e);return{subscribe:e=>t?(t.addEventListener?.("change",e),()=>{t.removeEventListener?.("change",e)}):()=>{},getValue(){var e;return null!==(e=t?.matches)&&void 0!==e&&e}}}),[e]);return(0,E.useSyncExternalStore)(t.subscribe,t.getValue,(()=>!1))}function re(e){const t=(0,E.useRef)();return(0,E.useEffect)((()=>{t.current=e}),[e]),t.current}const oe=()=>ne("(prefers-reduced-motion: reduce)");var ue=n(6689);function ie(e,t){switch(t.type){case"UNDO":{const t=e.manager.undo();return t?{...e,value:t[0].changes.prop.from}:e}case"REDO":{const t=e.manager.redo();return t?{...e,value:t[0].changes.prop.to}:e}case"RECORD":return e.manager.addRecord([{id:"object",changes:{prop:{from:e.value,to:t.value}}}],t.isStaged),{...e,value:t.value}}return e}function ce(e){return{manager:(0,ue.createUndoManager)(),value:e}}function se(e){const[t,n]=(0,E.useReducer)(ie,e,ce);return{value:t.value,setValue:(0,E.useCallback)(((e,t)=>{n({type:"RECORD",value:e,isStaged:t})}),[]),hasUndo:t.manager.hasUndo(),hasRedo:t.manager.hasRedo(),undo:(0,E.useCallback)((()=>{n({type:"UNDO"})}),[]),redo:(0,E.useCallback)((()=>{n({type:"REDO"})}),[])}}const ae={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},le={">=":"min-width","<":"max-width"},fe={">=":(e,t)=>t>=e,"<":(e,t)=>t<e},de=(0,E.createContext)(null),pe=(e,t=">=")=>{const n=(0,E.useContext)(de),r=ne(!n&&`(${le[t]}: ${ae[e]}px)`||void 0);return n?fe[t](ae[e],n):r};pe.__experimentalWidthProvider=de.Provider;const he=pe;const ve=(e,t,n)=>e[t]?e[t][0]?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0;function me(e={}){const t=e.onResize,n=(0,E.useRef)(void 0);n.current=t;const r=e.round||Math.round,o=(0,E.useRef)(),[u,i]=(0,E.useState)({width:void 0,height:void 0}),c=(0,E.useRef)(!1);(0,E.useEffect)((()=>(c.current=!1,()=>{c.current=!0})),[]);const s=(0,E.useRef)({width:void 0,height:void 0}),a=function(e,t){const n=(0,E.useRef)(null),r=(0,E.useRef)(null),o=(0,E.useRef)(),u=(0,E.useCallback)((()=>{let i=null;n.current?i=n.current:t&&(i=t instanceof HTMLElement?t:t.current),r.current&&r.current.element===i&&r.current.reporter===u||(o.current&&(o.current(),o.current=null),r.current={reporter:u,element:i},i&&(o.current=e(i)))}),[t,e]);return(0,E.useEffect)((()=>{u()}),[u]),(0,E.useCallback)((e=>{n.current=e,u()}),[u])}((0,E.useCallback)((t=>(o.current&&o.current.box===e.box&&o.current.round===r||(o.current={box:e.box,round:r,instance:new ResizeObserver((t=>{const o=t[0];let u="borderBoxSize";u="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize";const a=ve(o,u,"inlineSize"),l=ve(o,u,"blockSize"),f=a?r(a):void 0,d=l?r(l):void 0;if(s.current.width!==f||s.current.height!==d){const e={width:f,height:d};s.current.width=f,s.current.height=d,n.current?n.current(e):c.current||i(e)}}))}),o.current.instance.observe(t,{box:e.box}),()=>{o.current&&o.current.instance.unobserve(t)})),[e.box,r]),e.ref);return(0,E.useMemo)((()=>({ref:a,width:u.width,height:u.height})),[a,u?u.width:null,u?u.height:null])}function ye(){const{ref:e,width:t,height:n}=me(),r=(0,E.useMemo)((()=>({width:null!=t?t:null,height:null!=n?n:null})),[t,n]);return[(0,y.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",opacity:0,overflow:"hidden",zIndex:-1},"aria-hidden":"true",ref:e}),r]}const ge=window.wp.priorityQueue;const be=function(e,t={step:1}){const{step:n=1}=t,[r,o]=(0,E.useState)([]);return(0,E.useEffect)((()=>{let t=function(e,t){const n=[];for(let r=0;r<e.length;r++){const o=e[r];if(!t.includes(o))break;n.push(o)}return n}(e,r);t.length<n&&(t=t.concat(e.slice(t.length,n))),o(t);const u=(0,ge.createQueue)();for(let r=t.length;r<e.length;r+=n)u.add({},(()=>{(0,E.flushSync)((()=>{o((t=>[...t,...e.slice(r,r+n)]))}))}));return()=>u.reset()}),[e]),r};const we=function(e,t="Change detection"){const n=re(e);Object.entries(null!=n?n:[]).forEach((([n,r])=>{r!==e[n]&&console.warn(`${t}: ${n} key changed:`,r,e[n])}))},Ee=window.React;function xe(e,t){var n=(0,Ee.useState)((function(){return{inputs:t,result:e()}}))[0],r=(0,Ee.useRef)(!0),o=(0,Ee.useRef)(n),u=r.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs))?o.current:{inputs:t,result:e()};return(0,Ee.useEffect)((function(){r.current=!1,o.current=u}),[u]),u.result}function Se(e,t,n){const r=xe((()=>f(e,null!=t?t:0,n)),[e,t,n]);return(0,E.useEffect)((()=>()=>r.cancel()),[r]),r}function ke(e=""){const[t,n]=(0,E.useState)(e),[r,o]=(0,E.useState)(e),u=Se(o,250);return(0,E.useEffect)((()=>{u(t)}),[t,u]),[t,n,r]}function Te(e,t,n){const r=xe((()=>d(e,null!=t?t:0,n)),[e,t,n]);return(0,E.useEffect)((()=>()=>r.cancel()),[r]),r}function Ce(e){const t=(0,E.useRef)();return t.current=e,t}function Re({dropZoneElement:e,isDisabled:t,onDrop:n,onDragStart:r,onDragEnter:o,onDragLeave:u,onDragEnd:i,onDragOver:c}){const s=Ce(n),a=Ce(r),l=Ce(o),f=Ce(u),d=Ce(i),p=Ce(c);return A((n=>{if(t)return;const r=null!=e?e:n;let o=!1;const{ownerDocument:u}=r;function i(e){o||(o=!0,u.addEventListener("dragend",y),u.addEventListener("mousemove",y),a.current&&a.current(e))}function c(e){e.preventDefault(),r.contains(e.relatedTarget)||l.current&&l.current(e)}function h(e){!e.defaultPrevented&&p.current&&p.current(e),e.preventDefault()}function v(e){(function(e){const{defaultView:t}=u;if(!(e&&t&&e instanceof t.HTMLElement&&r.contains(e)))return!1;let n=e;do{if(n.dataset.isDropZone)return n===r}while(n=n.parentElement);return!1})(e.relatedTarget)||f.current&&f.current(e)}function m(e){e.defaultPrevented||(e.preventDefault(),e.dataTransfer&&e.dataTransfer.files.length,s.current&&s.current(e),y(e))}function y(e){o&&(o=!1,u.removeEventListener("dragend",y),u.removeEventListener("mousemove",y),d.current&&d.current(e))}return r.dataset.isDropZone="true",r.addEventListener("drop",m),r.addEventListener("dragenter",c),r.addEventListener("dragover",h),r.addEventListener("dragleave",v),u.addEventListener("dragenter",i),()=>{delete r.dataset.isDropZone,r.removeEventListener("drop",m),r.removeEventListener("dragenter",c),r.removeEventListener("dragover",h),r.removeEventListener("dragleave",v),u.removeEventListener("dragend",y),u.removeEventListener("mousemove",y),u.removeEventListener("dragenter",i)}}),[t,e])}function Le(){return A((e=>{const{ownerDocument:t}=e;if(!t)return;const{defaultView:n}=t;if(n)return n.addEventListener("blur",r),()=>{n.removeEventListener("blur",r)};function r(){t&&t.activeElement===e&&e.focus()}}),[])}const De=30;function Me(e,t,n,r){var o,u;const i=null!==(o=r?.initWindowSize)&&void 0!==o?o:De,c=null===(u=r?.useWindowing)||void 0===u||u,[s,a]=(0,E.useState)({visibleItems:i,start:0,end:i,itemInView:e=>e>=0&&e<=i});return(0,E.useLayoutEffect)((()=>{if(!c)return;const o=(0,_.getScrollContainer)(e.current),u=e=>{var u;if(!o)return;const i=Math.ceil(o.clientHeight/t),c=e?i:null!==(u=r?.windowOverscan)&&void 0!==u?u:i,s=Math.floor(o.scrollTop/t),l=Math.max(0,s-c),f=Math.min(n-1,s+i+c);a((e=>{const t={visibleItems:i,start:l,end:f,itemInView:e=>l<=e&&e<=f};return e.start!==t.start||e.end!==t.end||e.visibleItems!==t.visibleItems?t:e}))};u(!0);const i=f((()=>{u()}),16);return o?.addEventListener("scroll",i),o?.ownerDocument?.defaultView?.addEventListener("resize",i),o?.ownerDocument?.defaultView?.addEventListener("resize",i),()=>{o?.removeEventListener("scroll",i),o?.ownerDocument?.defaultView?.removeEventListener("resize",i)}}),[t,e,n,r?.expandedState,r?.windowOverscan,c]),(0,E.useLayoutEffect)((()=>{if(!c)return;const r=(0,_.getScrollContainer)(e.current),o=e=>{switch(e.keyCode){case V.HOME:return r?.scrollTo({top:0});case V.END:return r?.scrollTo({top:n*t});case V.PAGEUP:return r?.scrollTo({top:r.scrollTop-s.visibleItems*t});case V.PAGEDOWN:return r?.scrollTo({top:r.scrollTop+s.visibleItems*t})}};return r?.ownerDocument?.defaultView?.addEventListener("keydown",o),()=>{r?.ownerDocument?.defaultView?.removeEventListener("keydown",o)}}),[n,t,e,s.visibleItems,c,r?.expandedState]),[s,a]}function Oe(e,t){const[n,r]=(0,E.useMemo)((()=>[n=>e.subscribe(t,n),()=>e.get(t)]),[e,t]);return(0,E.useSyncExternalStore)(n,r,r)}})(),(window.wp=window.wp||{}).compose=r})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/core-commands.js b/wp-includes/js/dist/core-commands.js
index 1376aba..ce49497 100644
--- a/wp-includes/js/dist/core-commands.js
+++ b/wp-includes/js/dist/core-commands.js
@@ -46,70 +46,24 @@ __webpack_require__.d(__webpack_exports__, {
const external_wp_commands_namespaceObject = window["wp"]["commands"];
;// CONCATENATED MODULE: external ["wp","i18n"]
const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: external ["wp","primitives"]
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js
-
/**
* WordPress dependencies
*/
-const plus = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
-}));
-/* harmony default export */ const library_plus = (plus);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/symbol.js
-/**
- * WordPress dependencies
- */
-
-const symbol = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+const plus = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
-}));
-/* harmony default export */ const library_symbol = (symbol);
-
-;// CONCATENATED MODULE: external ["wp","url"]
-const external_wp_url_namespaceObject = window["wp"]["url"];
-;// CONCATENATED MODULE: external ["wp","router"]
-const external_wp_router_namespaceObject = window["wp"]["router"];
-;// CONCATENATED MODULE: external ["wp","coreData"]
-const external_wp_coreData_namespaceObject = window["wp"]["coreData"];
-;// CONCATENATED MODULE: external ["wp","data"]
-const external_wp_data_namespaceObject = window["wp"]["data"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/core-commands/build-module/hooks.js
-/**
- * WordPress dependencies
- */
-
-
-function useIsTemplatesAccessible() {
- return (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).canUser('read', 'templates'), []);
-}
-function useIsBlockBasedTheme() {
- return (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getCurrentTheme()?.is_block_theme, []);
-}
-
-;// CONCATENATED MODULE: external ["wp","privateApis"]
-const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/core-commands/build-module/lock-unlock.js
-/**
- * WordPress dependencies
- */
-
-const {
- lock,
- unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/core-commands');
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
+ })
+});
+/* harmony default export */ const library_plus = (plus);
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-commands/build-module/admin-navigation-commands.js
/**
@@ -118,22 +72,7 @@ const {
-
-
-
-/**
- * Internal dependencies
- */
-
-
-const {
- useHistory
-} = unlock(external_wp_router_namespaceObject.privateApis);
function useAdminNavigationCommands() {
- const history = useHistory();
- const isTemplatesAccessible = useIsTemplatesAccessible();
- const isBlockBasedTheme = useIsBlockBasedTheme();
- const isSiteEditor = (0,external_wp_url_namespaceObject.getPath)(window.location.href)?.includes('site-editor.php');
(0,external_wp_commands_namespaceObject.useCommand)({
name: 'core/add-new-post',
label: (0,external_wp_i18n_namespaceObject.__)('Add new post'),
@@ -150,120 +89,150 @@ function useAdminNavigationCommands() {
document.location.href = 'post-new.php?post_type=page';
}
});
- (0,external_wp_commands_namespaceObject.useCommand)({
- name: 'core/manage-reusable-blocks',
- label: (0,external_wp_i18n_namespaceObject.__)('Patterns'),
- icon: library_symbol,
- callback: ({
- close
- }) => {
- if (isTemplatesAccessible && isBlockBasedTheme) {
- const args = {
- path: '/patterns'
- };
- if (isSiteEditor) {
- history.push(args);
- } else {
- document.location = (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', args);
- }
- close();
- } else {
- document.location.href = 'edit.php?post_type=wp_block';
- }
- }
- });
}
;// CONCATENATED MODULE: external ["wp","element"]
const external_wp_element_namespaceObject = window["wp"]["element"];
+;// CONCATENATED MODULE: external ["wp","data"]
+const external_wp_data_namespaceObject = window["wp"]["data"];
+;// CONCATENATED MODULE: external ["wp","coreData"]
+const external_wp_coreData_namespaceObject = window["wp"]["coreData"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post.js
-
/**
* WordPress dependencies
*/
-const post = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const post = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"
+ })
+});
/* harmony default export */ const library_post = (post);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/page.js
-
/**
* WordPress dependencies
*/
-const page = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const page = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"
-}), (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"
+ })]
+});
/* harmony default export */ const library_page = (page);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/layout.js
-
/**
* WordPress dependencies
*/
-const layout = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const layout = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
+ })
+});
/* harmony default export */ const library_layout = (layout);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/symbol-filled.js
-
/**
* WordPress dependencies
*/
-const symbolFilled = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const symbolFilled = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
+ })
+});
/* harmony default export */ const symbol_filled = (symbolFilled);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/navigation.js
-
/**
* WordPress dependencies
*/
-const navigation = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const navigation = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"
+ })
+});
/* harmony default export */ const library_navigation = (navigation);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/styles.js
-
/**
* WordPress dependencies
*/
-const styles = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const styles = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"
+ })
+});
/* harmony default export */ const library_styles = (styles);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/symbol.js
+/**
+ * WordPress dependencies
+ */
+
+
+const symbol = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
+ })
+});
+/* harmony default export */ const library_symbol = (symbol);
+
+;// CONCATENATED MODULE: external ["wp","router"]
+const external_wp_router_namespaceObject = window["wp"]["router"];
+;// CONCATENATED MODULE: external ["wp","url"]
+const external_wp_url_namespaceObject = window["wp"]["url"];
;// CONCATENATED MODULE: external ["wp","compose"]
const external_wp_compose_namespaceObject = window["wp"]["compose"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/core-commands/build-module/hooks.js
+/**
+ * WordPress dependencies
+ */
+
+
+function useIsBlockBasedTheme() {
+ return (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getCurrentTheme()?.is_block_theme, []);
+}
+
+;// CONCATENATED MODULE: external ["wp","privateApis"]
+const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/core-commands/build-module/lock-unlock.js
+/**
+ * WordPress dependencies
+ */
+
+const {
+ lock,
+ unlock
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/core-commands');
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-commands/build-module/utils/order-entity-records-by-search.js
function orderEntityRecordsBySearch(records = [], search = '') {
if (!Array.isArray(records) || !records.length) {
@@ -306,8 +275,7 @@ function orderEntityRecordsBySearch(records = [], search = '') {
const {
- useHistory: site_editor_navigation_commands_useHistory,
- useLocation
+ useHistory
} = unlock(external_wp_router_namespaceObject.privateApis);
const icons = {
post: library_post,
@@ -327,7 +295,7 @@ function useDebouncedValue(value) {
const getNavigationCommandLoaderPerPostType = postType => function useNavigationCommandLoader({
search
}) {
- const history = site_editor_navigation_commands_useHistory();
+ const history = useHistory();
const isBlockBasedTheme = useIsBlockBasedTheme();
const delayedSearch = useDebouncedValue(search);
const {
@@ -375,9 +343,6 @@ const getNavigationCommandLoaderPerPostType = postType => function useNavigation
};
}
const isSiteEditor = (0,external_wp_url_namespaceObject.getPath)(window.location.href)?.includes('site-editor.php');
- const extraArgs = isSiteEditor ? {
- canvas: (0,external_wp_url_namespaceObject.getQueryArg)(window.location.href, 'canvas')
- } : {};
return {
...command,
callback: ({
@@ -386,7 +351,7 @@ const getNavigationCommandLoaderPerPostType = postType => function useNavigation
const args = {
postType,
postId: record.id,
- ...extraArgs
+ canvas: 'edit'
};
const targetUrl = (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', args);
if (isSiteEditor) {
@@ -407,10 +372,7 @@ const getNavigationCommandLoaderPerPostType = postType => function useNavigation
const getNavigationCommandLoaderPerTemplate = templateType => function useNavigationCommandLoader({
search
}) {
- const history = site_editor_navigation_commands_useHistory();
- const location = useLocation();
- const isPatternsPage = location?.params?.path === '/patterns' || location?.params?.postType === 'wp_block';
- const didAccessPatternsPage = !!location?.params?.didAccessPatternsPage;
+ const history = useHistory();
const isBlockBasedTheme = useIsBlockBasedTheme();
const {
records,
@@ -440,11 +402,9 @@ const getNavigationCommandLoaderPerTemplate = templateType => function useNaviga
if (!isBlockBasedTheme && !templateType === 'wp_template_part') {
return [];
}
- return orderedRecords.map(record => {
- const isSiteEditor = (0,external_wp_url_namespaceObject.getPath)(window.location.href)?.includes('site-editor.php');
- const extraArgs = isSiteEditor ? {
- canvas: (0,external_wp_url_namespaceObject.getQueryArg)(window.location.href, 'canvas')
- } : {};
+ const isSiteEditor = (0,external_wp_url_namespaceObject.getPath)(window.location.href)?.includes('site-editor.php');
+ const result = [];
+ result.push(...orderedRecords.map(record => {
return {
name: templateType + '-' + record.id,
searchLabel: record.title?.rendered + ' ' + record.id,
@@ -456,8 +416,7 @@ const getNavigationCommandLoaderPerTemplate = templateType => function useNaviga
const args = {
postType: templateType,
postId: record.id,
- didAccessPatternsPage: !isBlockBasedTheme && (isPatternsPage || didAccessPatternsPage) ? 1 : undefined,
- ...extraArgs
+ canvas: 'edit'
};
const targetUrl = (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', args);
if (isSiteEditor) {
@@ -468,7 +427,30 @@ const getNavigationCommandLoaderPerTemplate = templateType => function useNaviga
close();
}
};
- });
+ }));
+ if (orderedRecords?.length > 0 && templateType === 'wp_template_part') {
+ result.push({
+ name: 'core/edit-site/open-template-parts',
+ label: (0,external_wp_i18n_namespaceObject.__)('Template parts'),
+ icon: symbol_filled,
+ callback: ({
+ close
+ }) => {
+ const args = {
+ postType: 'wp_template_part',
+ categoryId: 'all-parts'
+ };
+ const targetUrl = (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', args);
+ if (isSiteEditor) {
+ history.push(args);
+ } else {
+ document.location = targetUrl;
+ }
+ close();
+ }
+ });
+ }
+ return result;
}, [isBlockBasedTheme, orderedRecords, history]);
return {
commands,
@@ -480,93 +462,118 @@ const usePostNavigationCommandLoader = getNavigationCommandLoaderPerPostType('po
const useTemplateNavigationCommandLoader = getNavigationCommandLoaderPerTemplate('wp_template');
const useTemplatePartNavigationCommandLoader = getNavigationCommandLoaderPerTemplate('wp_template_part');
function useSiteEditorBasicNavigationCommands() {
- const history = site_editor_navigation_commands_useHistory();
+ const history = useHistory();
const isSiteEditor = (0,external_wp_url_namespaceObject.getPath)(window.location.href)?.includes('site-editor.php');
- const isTemplatesAccessible = useIsTemplatesAccessible();
+ const canCreateTemplate = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ return select(external_wp_coreData_namespaceObject.store).canUser('create', 'templates');
+ }, []);
const isBlockBasedTheme = useIsBlockBasedTheme();
const commands = (0,external_wp_element_namespaceObject.useMemo)(() => {
const result = [];
- if (!isTemplatesAccessible || !isBlockBasedTheme) {
- return result;
- }
- result.push({
- name: 'core/edit-site/open-navigation',
- label: (0,external_wp_i18n_namespaceObject.__)('Navigation'),
- icon: library_navigation,
- callback: ({
- close
- }) => {
- const args = {
- path: '/navigation'
- };
- const targetUrl = (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', args);
- if (isSiteEditor) {
- history.push(args);
- } else {
- document.location = targetUrl;
+ if (canCreateTemplate && isBlockBasedTheme) {
+ result.push({
+ name: 'core/edit-site/open-navigation',
+ label: (0,external_wp_i18n_namespaceObject.__)('Navigation'),
+ icon: library_navigation,
+ callback: ({
+ close
+ }) => {
+ const args = {
+ postType: 'wp_navigation'
+ };
+ const targetUrl = (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', args);
+ if (isSiteEditor) {
+ history.push(args);
+ } else {
+ document.location = targetUrl;
+ }
+ close();
}
- close();
- }
- });
- result.push({
- name: 'core/edit-site/open-styles',
- label: (0,external_wp_i18n_namespaceObject.__)('Styles'),
- icon: library_styles,
- callback: ({
- close
- }) => {
- const args = {
- path: '/wp_global_styles'
- };
- const targetUrl = (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', args);
- if (isSiteEditor) {
- history.push(args);
- } else {
- document.location = targetUrl;
+ });
+ result.push({
+ name: 'core/edit-site/open-styles',
+ label: (0,external_wp_i18n_namespaceObject.__)('Styles'),
+ icon: library_styles,
+ callback: ({
+ close
+ }) => {
+ const args = {
+ path: '/wp_global_styles'
+ };
+ const targetUrl = (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', args);
+ if (isSiteEditor) {
+ history.push(args);
+ } else {
+ document.location = targetUrl;
+ }
+ close();
}
- close();
- }
- });
- result.push({
- name: 'core/edit-site/open-pages',
- label: (0,external_wp_i18n_namespaceObject.__)('Pages'),
- icon: library_page,
- callback: ({
- close
- }) => {
- const args = {
- path: '/page'
- };
- const targetUrl = (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', args);
- if (isSiteEditor) {
- history.push(args);
- } else {
- document.location = targetUrl;
+ });
+ result.push({
+ name: 'core/edit-site/open-pages',
+ label: (0,external_wp_i18n_namespaceObject.__)('Pages'),
+ icon: library_page,
+ callback: ({
+ close
+ }) => {
+ const args = {
+ postType: 'page'
+ };
+ const targetUrl = (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', args);
+ if (isSiteEditor) {
+ history.push(args);
+ } else {
+ document.location = targetUrl;
+ }
+ close();
}
- close();
- }
- });
+ });
+ result.push({
+ name: 'core/edit-site/open-templates',
+ label: (0,external_wp_i18n_namespaceObject.__)('Templates'),
+ icon: library_layout,
+ callback: ({
+ close
+ }) => {
+ const args = {
+ postType: 'wp_template'
+ };
+ const targetUrl = (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', args);
+ if (isSiteEditor) {
+ history.push(args);
+ } else {
+ document.location = targetUrl;
+ }
+ close();
+ }
+ });
+ }
result.push({
- name: 'core/edit-site/open-templates',
- label: (0,external_wp_i18n_namespaceObject.__)('Templates'),
- icon: library_layout,
+ name: 'core/edit-site/open-patterns',
+ label: (0,external_wp_i18n_namespaceObject.__)('Patterns'),
+ icon: library_symbol,
callback: ({
close
}) => {
- const args = {
- path: '/wp_template'
- };
- const targetUrl = (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', args);
- if (isSiteEditor) {
- history.push(args);
+ if (canCreateTemplate) {
+ const args = {
+ postType: 'wp_block'
+ };
+ const targetUrl = (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', args);
+ if (isSiteEditor) {
+ history.push(args);
+ } else {
+ document.location = targetUrl;
+ }
+ close();
} else {
- document.location = targetUrl;
+ // If a user cannot access the site editor
+ document.location.href = 'edit.php?post_type=wp_block';
}
- close();
}
});
return result;
- }, [history, isSiteEditor, isTemplatesAccessible, isBlockBasedTheme]);
+ }, [history, isSiteEditor, canCreateTemplate, isBlockBasedTheme]);
return {
commands,
isLoading: false
diff --git a/wp-includes/js/dist/core-commands.min.js b/wp-includes/js/dist/core-commands.min.js
index dfc692c..3bfb8ee 100644
--- a/wp-includes/js/dist/core-commands.min.js
+++ b/wp-includes/js/dist/core-commands.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-(()=>{"use strict";var e={d:(t,o)=>{for(var a in o)e.o(o,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:o[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{privateApis:()=>B});const o=window.wp.commands,a=window.wp.i18n,n=window.React,s=window.wp.primitives,r=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})),c=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),i=window.wp.url,l=window.wp.router,d=window.wp.coreData,p=window.wp.data;function m(){return(0,p.useSelect)((e=>e(d.store).canUser("read","templates")),[])}function u(){return(0,p.useSelect)((e=>e(d.store).getCurrentTheme()?.is_block_theme),[])}const w=window.wp.privateApis,{lock:h,unlock:g}=(0,w.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/core-commands"),{useHistory:v}=g(l.privateApis);const b=window.wp.element,y=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})),_=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,n.createElement)(s.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})),f=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),L=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),V=(0,n.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(s.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})),P=(0,n.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(s.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"})),k=window.wp.compose;const{useHistory:E,useLocation:A}=g(l.privateApis),S={post:y,page:_,wp_template:f,wp_template_part:L};const M=e=>function({search:t}){const o=E(),n=u(),s=function(e){const[t,o]=(0,b.useState)(""),a=(0,k.useDebounce)(o,250);return(0,b.useEffect)((()=>(a(e),()=>a.cancel())),[a,e]),t}(t),{records:r,isLoading:c}=(0,p.useSelect)((t=>{if(!s)return{isLoading:!1};const o={search:s,per_page:10,orderby:"relevance",status:["publish","future","draft","pending","private"]};return{records:t(d.store).getEntityRecords("postType",e,o),isLoading:!t(d.store).hasFinishedResolution("getEntityRecords",["postType",e,o])}}),[s]);return{commands:(0,b.useMemo)((()=>(null!=r?r:[]).map((t=>{const s={name:e+"-"+t.id,searchLabel:t.title?.rendered+" "+t.id,label:t.title?.rendered?t.title?.rendered:(0,a.__)("(no title)"),icon:S[e]};if("post"===e||"page"===e&&!n)return{...s,callback:({close:e})=>{const o={post:t.id,action:"edit"},a=(0,i.addQueryArgs)("post.php",o);document.location=a,e()}};const r=(0,i.getPath)(window.location.href)?.includes("site-editor.php"),c=r?{canvas:(0,i.getQueryArg)(window.location.href,"canvas")}:{};return{...s,callback:({close:a})=>{const n={postType:e,postId:t.id,...c},s=(0,i.addQueryArgs)("site-editor.php",n);r?o.push(n):document.location=s,a()}}}))),[r,n,o]),isLoading:c}},x=e=>function({search:t}){const o=E(),n=A(),s="/patterns"===n?.params?.path||"wp_block"===n?.params?.postType,r=!!n?.params?.didAccessPatternsPage,c=u(),{records:l,isLoading:m}=(0,p.useSelect)((t=>{const{getEntityRecords:o}=t(d.store),a={per_page:-1};return{records:o("postType",e,a),isLoading:!t(d.store).hasFinishedResolution("getEntityRecords",["postType",e,a])}}),[]),w=(0,b.useMemo)((()=>function(e=[],t=""){if(!Array.isArray(e)||!e.length)return[];if(!t)return e;const o=[],a=[];for(let n=0;n<e.length;n++){const s=e[n];s?.title?.raw?.toLowerCase()?.includes(t?.toLowerCase())?o.push(s):a.push(s)}return o.concat(a)}(l,t).slice(0,10)),[l,t]);return{commands:(0,b.useMemo)((()=>c||"wp_template_part"!==!e?w.map((t=>{const n=(0,i.getPath)(window.location.href)?.includes("site-editor.php"),l=n?{canvas:(0,i.getQueryArg)(window.location.href,"canvas")}:{};return{name:e+"-"+t.id,searchLabel:t.title?.rendered+" "+t.id,label:t.title?.rendered?t.title?.rendered:(0,a.__)("(no title)"),icon:S[e],callback:({close:a})=>{const d={postType:e,postId:t.id,didAccessPatternsPage:c||!s&&!r?void 0:1,...l},p=(0,i.addQueryArgs)("site-editor.php",d);n?o.push(d):document.location=p,a()}}})):[]),[c,w,o]),isLoading:m}},z=M("page"),H=M("post"),C=x("wp_template"),T=x("wp_template_part");function Q(){const e=E(),t=(0,i.getPath)(window.location.href)?.includes("site-editor.php"),o=m(),n=u();return{commands:(0,b.useMemo)((()=>{const s=[];return o&&n?(s.push({name:"core/edit-site/open-navigation",label:(0,a.__)("Navigation"),icon:V,callback:({close:o})=>{const a={path:"/navigation"},n=(0,i.addQueryArgs)("site-editor.php",a);t?e.push(a):document.location=n,o()}}),s.push({name:"core/edit-site/open-styles",label:(0,a.__)("Styles"),icon:P,callback:({close:o})=>{const a={path:"/wp_global_styles"},n=(0,i.addQueryArgs)("site-editor.php",a);t?e.push(a):document.location=n,o()}}),s.push({name:"core/edit-site/open-pages",label:(0,a.__)("Pages"),icon:_,callback:({close:o})=>{const a={path:"/page"},n=(0,i.addQueryArgs)("site-editor.php",a);t?e.push(a):document.location=n,o()}}),s.push({name:"core/edit-site/open-templates",label:(0,a.__)("Templates"),icon:f,callback:({close:o})=>{const a={path:"/wp_template"},n=(0,i.addQueryArgs)("site-editor.php",a);t?e.push(a):document.location=n,o()}}),s):s}),[e,t,o,n]),isLoading:!1}}const B={};h(B,{useCommands:function(){!function(){const e=v(),t=m(),n=u(),s=(0,i.getPath)(window.location.href)?.includes("site-editor.php");(0,o.useCommand)({name:"core/add-new-post",label:(0,a.__)("Add new post"),icon:r,callback:()=>{document.location.href="post-new.php"}}),(0,o.useCommand)({name:"core/add-new-page",label:(0,a.__)("Add new page"),icon:r,callback:()=>{document.location.href="post-new.php?post_type=page"}}),(0,o.useCommand)({name:"core/manage-reusable-blocks",label:(0,a.__)("Patterns"),icon:c,callback:({close:o})=>{if(t&&n){const t={path:"/patterns"};s?e.push(t):document.location=(0,i.addQueryArgs)("site-editor.php",t),o()}else document.location.href="edit.php?post_type=wp_block"}})}(),(0,o.useCommandLoader)({name:"core/edit-site/navigate-pages",hook:z}),(0,o.useCommandLoader)({name:"core/edit-site/navigate-posts",hook:H}),(0,o.useCommandLoader)({name:"core/edit-site/navigate-templates",hook:C}),(0,o.useCommandLoader)({name:"core/edit-site/navigate-template-parts",hook:T}),(0,o.useCommandLoader)({name:"core/edit-site/basic-navigation",hook:Q,context:"site-editor"})}}),(window.wp=window.wp||{}).coreCommands=t})(); \ No newline at end of file
+(()=>{"use strict";var e={d:(t,o)=>{for(var s in o)e.o(o,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:o[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{privateApis:()=>H});const o=window.wp.commands,s=window.wp.i18n,n=window.wp.primitives,a=window.ReactJSXRuntime,i=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});const r=window.wp.element,c=window.wp.data,p=window.wp.coreData,d=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})}),l=(0,a.jsxs)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,a.jsx)(n.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,a.jsx)(n.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]}),u=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),w=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})}),h=(0,a.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(n.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})}),m=(0,a.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(n.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"})}),g=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})}),v=window.wp.router,_=window.wp.url,y=window.wp.compose;function b(){return(0,c.useSelect)((e=>e(p.store).getCurrentTheme()?.is_block_theme),[])}const x=window.wp.privateApis,{lock:f,unlock:V}=(0,x.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/core-commands");const{useHistory:L}=V(v.privateApis),k={post:d,page:l,wp_template:u,wp_template_part:w};const j=e=>function({search:t}){const o=L(),n=b(),a=function(e){const[t,o]=(0,r.useState)(""),s=(0,y.useDebounce)(o,250);return(0,r.useEffect)((()=>(s(e),()=>s.cancel())),[s,e]),t}(t),{records:i,isLoading:d}=(0,c.useSelect)((t=>{if(!a)return{isLoading:!1};const o={search:a,per_page:10,orderby:"relevance",status:["publish","future","draft","pending","private"]};return{records:t(p.store).getEntityRecords("postType",e,o),isLoading:!t(p.store).hasFinishedResolution("getEntityRecords",["postType",e,o])}}),[a]);return{commands:(0,r.useMemo)((()=>(null!=i?i:[]).map((t=>{const a={name:e+"-"+t.id,searchLabel:t.title?.rendered+" "+t.id,label:t.title?.rendered?t.title?.rendered:(0,s.__)("(no title)"),icon:k[e]};if("post"===e||"page"===e&&!n)return{...a,callback:({close:e})=>{const o={post:t.id,action:"edit"},s=(0,_.addQueryArgs)("post.php",o);document.location=s,e()}};const i=(0,_.getPath)(window.location.href)?.includes("site-editor.php");return{...a,callback:({close:s})=>{const n={postType:e,postId:t.id,canvas:"edit"},a=(0,_.addQueryArgs)("site-editor.php",n);i?o.push(n):document.location=a,s()}}}))),[i,n,o]),isLoading:d}},S=e=>function({search:t}){const o=L(),n=b(),{records:a,isLoading:i}=(0,c.useSelect)((t=>{const{getEntityRecords:o}=t(p.store),s={per_page:-1};return{records:o("postType",e,s),isLoading:!t(p.store).hasFinishedResolution("getEntityRecords",["postType",e,s])}}),[]),d=(0,r.useMemo)((()=>function(e=[],t=""){if(!Array.isArray(e)||!e.length)return[];if(!t)return e;const o=[],s=[];for(let n=0;n<e.length;n++){const a=e[n];a?.title?.raw?.toLowerCase()?.includes(t?.toLowerCase())?o.push(a):s.push(a)}return o.concat(s)}(a,t).slice(0,10)),[a,t]);return{commands:(0,r.useMemo)((()=>{if(!n&&"wp_template_part"===!e)return[];const t=(0,_.getPath)(window.location.href)?.includes("site-editor.php"),a=[];return a.push(...d.map((n=>({name:e+"-"+n.id,searchLabel:n.title?.rendered+" "+n.id,label:n.title?.rendered?n.title?.rendered:(0,s.__)("(no title)"),icon:k[e],callback:({close:s})=>{const a={postType:e,postId:n.id,canvas:"edit"},i=(0,_.addQueryArgs)("site-editor.php",a);t?o.push(a):document.location=i,s()}})))),d?.length>0&&"wp_template_part"===e&&a.push({name:"core/edit-site/open-template-parts",label:(0,s.__)("Template parts"),icon:w,callback:({close:e})=>{const s={postType:"wp_template_part",categoryId:"all-parts"},n=(0,_.addQueryArgs)("site-editor.php",s);t?o.push(s):document.location=n,e()}}),a}),[n,d,o]),isLoading:i}},P=j("page"),M=j("post"),z=S("wp_template"),A=S("wp_template_part");function T(){const e=L(),t=(0,_.getPath)(window.location.href)?.includes("site-editor.php"),o=(0,c.useSelect)((e=>e(p.store).canUser("create","templates")),[]),n=b();return{commands:(0,r.useMemo)((()=>{const a=[];return o&&n&&(a.push({name:"core/edit-site/open-navigation",label:(0,s.__)("Navigation"),icon:h,callback:({close:o})=>{const s={postType:"wp_navigation"},n=(0,_.addQueryArgs)("site-editor.php",s);t?e.push(s):document.location=n,o()}}),a.push({name:"core/edit-site/open-styles",label:(0,s.__)("Styles"),icon:m,callback:({close:o})=>{const s={path:"/wp_global_styles"},n=(0,_.addQueryArgs)("site-editor.php",s);t?e.push(s):document.location=n,o()}}),a.push({name:"core/edit-site/open-pages",label:(0,s.__)("Pages"),icon:l,callback:({close:o})=>{const s={postType:"page"},n=(0,_.addQueryArgs)("site-editor.php",s);t?e.push(s):document.location=n,o()}}),a.push({name:"core/edit-site/open-templates",label:(0,s.__)("Templates"),icon:u,callback:({close:o})=>{const s={postType:"wp_template"},n=(0,_.addQueryArgs)("site-editor.php",s);t?e.push(s):document.location=n,o()}})),a.push({name:"core/edit-site/open-patterns",label:(0,s.__)("Patterns"),icon:g,callback:({close:s})=>{if(o){const o={postType:"wp_block"},n=(0,_.addQueryArgs)("site-editor.php",o);t?e.push(o):document.location=n,s()}else document.location.href="edit.php?post_type=wp_block"}}),a}),[e,t,o,n]),isLoading:!1}}const H={};f(H,{useCommands:function(){(0,o.useCommand)({name:"core/add-new-post",label:(0,s.__)("Add new post"),icon:i,callback:()=>{document.location.href="post-new.php"}}),(0,o.useCommand)({name:"core/add-new-page",label:(0,s.__)("Add new page"),icon:i,callback:()=>{document.location.href="post-new.php?post_type=page"}}),(0,o.useCommandLoader)({name:"core/edit-site/navigate-pages",hook:P}),(0,o.useCommandLoader)({name:"core/edit-site/navigate-posts",hook:M}),(0,o.useCommandLoader)({name:"core/edit-site/navigate-templates",hook:z}),(0,o.useCommandLoader)({name:"core/edit-site/navigate-template-parts",hook:A}),(0,o.useCommandLoader)({name:"core/edit-site/basic-navigation",hook:T,context:"site-editor"})}}),(window.wp=window.wp||{}).coreCommands=t})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/core-data.js b/wp-includes/js/dist/core-data.js
index bd5026d..62e955f 100644
--- a/wp-includes/js/dist/core-data.js
+++ b/wp-includes/js/dist/core-data.js
@@ -2161,7 +2161,7 @@ const deleteEntityRecord = (kind, name, recordId, query, {
} = {}) => async ({
dispatch
}) => {
- const configs = await dispatch(getOrLoadEntitiesConfig(kind));
+ const configs = await dispatch(getOrLoadEntitiesConfig(kind, name));
const entityConfig = configs.find(config => config.kind === kind && config.name === name);
let error;
let deletedRecord = false;
@@ -2348,7 +2348,7 @@ const saveEntityRecord = (kind, name, record, {
resolveSelect,
dispatch
}) => {
- const configs = await dispatch(getOrLoadEntitiesConfig(kind));
+ const configs = await dispatch(getOrLoadEntitiesConfig(kind, name));
const entityConfig = configs.find(config => config.kind === kind && config.name === name);
if (!entityConfig || entityConfig?.__experimentalNoFetch) {
return;
@@ -2408,7 +2408,11 @@ const saveEntityRecord = (kind, name, record, {
}
return acc;
}, {
- status: data.status === 'auto-draft' ? 'draft' : data.status
+ // Do not update the `status` if we have edited it when auto saving.
+ // It's very important to let the user explicitly save this change,
+ // because it can lead to unexpected results. An example would be to
+ // have a draft post and change the status to publish.
+ status: data.status === 'auto-draft' ? 'draft' : undefined
});
updatedRecord = await __unstableFetch({
path: `${path}/autosaves`,
@@ -2545,7 +2549,7 @@ const saveEditedEntityRecord = (kind, name, recordId, options) => async ({
if (!select.hasEditsForEntityRecord(kind, name, recordId)) {
return;
}
- const configs = await dispatch(getOrLoadEntitiesConfig(kind));
+ const configs = await dispatch(getOrLoadEntitiesConfig(kind, name));
const entityConfig = configs.find(config => config.kind === kind && config.name === name);
if (!entityConfig) {
return;
@@ -2580,7 +2584,7 @@ const __experimentalSaveSpecifiedEntityEdits = (kind, name, recordId, itemsToSav
for (const item of itemsToSave) {
setNestedValue(editsToSave, item, getNestedValue(edits, item));
}
- const configs = await dispatch(getOrLoadEntitiesConfig(kind));
+ const configs = await dispatch(getOrLoadEntitiesConfig(kind, name));
const entityConfig = configs.find(config => config.kind === kind && config.name === name);
const entityIdKey = entityConfig?.key || DEFAULT_ENTITY_KEY;
@@ -2695,7 +2699,7 @@ function receiveDefaultTemplateId(query, templateId) {
const receiveRevisions = (kind, name, recordKey, records, query, invalidateCache = false, meta) => async ({
dispatch
}) => {
- const configs = await dispatch(getOrLoadEntitiesConfig(kind));
+ const configs = await dispatch(getOrLoadEntitiesConfig(kind, name));
const entityConfig = configs.find(config => config.kind === kind && config.name === name);
const key = entityConfig && entityConfig?.revisionKey ? entityConfig.revisionKey : DEFAULT_ENTITY_KEY;
dispatch({
@@ -2739,6 +2743,9 @@ const rootEntitiesConfig = [{
baseURLParams: {
_fields: ['description', 'gmt_offset', 'home', 'name', 'site_icon', 'site_icon_url', 'site_logo', 'timezone_string', 'url'].join(',')
},
+ // The entity doesn't support selecting multiple records.
+ // The property is maintained for backward compatibility.
+ plural: '__unstableBases',
syncConfig: {
fetch: async () => {
return external_wp_apiFetch_default()({
@@ -2760,35 +2767,6 @@ const rootEntitiesConfig = [{
syncObjectType: 'root/base',
getSyncObjectId: () => 'index'
}, {
- label: (0,external_wp_i18n_namespaceObject.__)('Site'),
- name: 'site',
- kind: 'root',
- baseURL: '/wp/v2/settings',
- getTitle: record => {
- var _record$title;
- return (_record$title = record?.title) !== null && _record$title !== void 0 ? _record$title : (0,external_wp_i18n_namespaceObject.__)('Site Title');
- },
- syncConfig: {
- fetch: async () => {
- return external_wp_apiFetch_default()({
- path: '/wp/v2/settings'
- });
- },
- applyChangesToDoc: (doc, changes) => {
- const document = doc.getMap('document');
- Object.entries(changes).forEach(([key, value]) => {
- if (document.get(key) !== value) {
- document.set(key, value);
- }
- });
- },
- fromCRDTDoc: doc => {
- return doc.getMap('document').toJSON();
- }
- },
- syncObjectType: 'root/site',
- getSyncObjectId: () => 'index'
-}, {
label: (0,external_wp_i18n_namespaceObject.__)('Post Type'),
name: 'postType',
kind: 'root',
@@ -2797,6 +2775,7 @@ const rootEntitiesConfig = [{
baseURLParams: {
context: 'edit'
},
+ plural: 'postTypes',
syncConfig: {
fetch: async id => {
return external_wp_apiFetch_default()({
@@ -2939,6 +2918,7 @@ const rootEntitiesConfig = [{
baseURLParams: {
context: 'edit'
},
+ plural: 'themes',
key: 'stylesheet'
}, {
label: (0,external_wp_i18n_namespaceObject.__)('Plugins'),
@@ -2948,6 +2928,7 @@ const rootEntitiesConfig = [{
baseURLParams: {
context: 'edit'
},
+ plural: 'plugins',
key: 'plugin'
}, {
label: (0,external_wp_i18n_namespaceObject.__)('Status'),
@@ -2966,6 +2947,11 @@ const additionalEntityConfigLoaders = [{
}, {
kind: 'taxonomy',
loadEntities: loadTaxonomyEntities
+}, {
+ kind: 'root',
+ name: 'site',
+ plural: 'sites',
+ loadEntities: loadSiteEntity
}];
/**
@@ -3112,29 +3098,79 @@ async function loadTaxonomyEntities() {
}
/**
- * Returns the entity's getter method name given its kind and name.
+ * Returns the Site entity.
+ *
+ * @return {Promise} Entity promise
+ */
+async function loadSiteEntity() {
+ var _site$schema$properti;
+ const entity = {
+ label: (0,external_wp_i18n_namespaceObject.__)('Site'),
+ name: 'site',
+ kind: 'root',
+ baseURL: '/wp/v2/settings',
+ syncConfig: {
+ fetch: async () => {
+ return external_wp_apiFetch_default()({
+ path: '/wp/v2/settings'
+ });
+ },
+ applyChangesToDoc: (doc, changes) => {
+ const document = doc.getMap('document');
+ Object.entries(changes).forEach(([key, value]) => {
+ if (document.get(key) !== value) {
+ document.set(key, value);
+ }
+ });
+ },
+ fromCRDTDoc: doc => {
+ return doc.getMap('document').toJSON();
+ }
+ },
+ syncObjectType: 'root/site',
+ getSyncObjectId: () => 'index',
+ meta: {}
+ };
+ const site = await external_wp_apiFetch_default()({
+ path: entity.baseURL,
+ method: 'OPTIONS'
+ });
+ const labels = {};
+ Object.entries((_site$schema$properti = site?.schema?.properties) !== null && _site$schema$properti !== void 0 ? _site$schema$properti : {}).forEach(([key, value]) => {
+ // Ignore properties `title` and `type` keys.
+ if (typeof value === 'object' && value.title) {
+ labels[key] = value.title;
+ }
+ });
+ return [{
+ ...entity,
+ meta: {
+ labels
+ }
+ }];
+}
+
+/**
+ * Returns the entity's getter method name given its kind and name or plural name.
*
* @example
* ```js
* const nameSingular = getMethodName( 'root', 'theme', 'get' );
* // nameSingular is getRootTheme
*
- * const namePlural = getMethodName( 'root', 'theme', 'set' );
+ * const namePlural = getMethodName( 'root', 'themes', 'set' );
* // namePlural is setRootThemes
* ```
*
- * @param {string} kind Entity kind.
- * @param {string} name Entity name.
- * @param {string} prefix Function prefix.
- * @param {boolean} usePlural Whether to use the plural form or not.
+ * @param {string} kind Entity kind.
+ * @param {string} name Entity name or plural name.
+ * @param {string} prefix Function prefix.
*
* @return {string} Method name
*/
-const getMethodName = (kind, name, prefix = 'get', usePlural = false) => {
- const entityConfig = rootEntitiesConfig.find(config => config.kind === kind && config.name === name);
+const getMethodName = (kind, name, prefix = 'get') => {
const kindPrefix = kind === 'root' ? '' : pascalCase(kind);
- const nameSuffix = pascalCase(name) + (usePlural ? 's' : '');
- const suffix = usePlural && 'plural' in entityConfig && entityConfig?.plural ? pascalCase(entityConfig.plural) : nameSuffix;
+ const suffix = pascalCase(name);
return `${prefix}${kindPrefix}${suffix}`;
};
function registerSyncConfigs(configs) {
@@ -3152,24 +3188,32 @@ function registerSyncConfigs(configs) {
}
/**
- * Loads the kind entities into the store.
+ * Loads the entities into the store.
*
- * @param {string} kind Kind
+ * Note: The `name` argument is used for `root` entities requiring additional server data.
*
+ * @param {string} kind Kind
+ * @param {string} name Name
* @return {(thunkArgs: object) => Promise<Array>} Entities
*/
-const getOrLoadEntitiesConfig = kind => async ({
+const getOrLoadEntitiesConfig = (kind, name) => async ({
select,
dispatch
}) => {
let configs = select.getEntitiesConfig(kind);
- if (configs && configs.length !== 0) {
+ const hasConfig = !!select.getEntityConfig(kind, name);
+ if (configs?.length > 0 && hasConfig) {
if (window.__experimentalEnableSync) {
if (false) {}
}
return configs;
}
- const loader = additionalEntityConfigLoaders.find(l => l.kind === kind);
+ const loader = additionalEntityConfigLoaders.find(l => {
+ if (!name || !l.name) {
+ return l.kind === kind;
+ }
+ return l.kind === kind && l.name === name;
+ });
if (!loader) {
return [];
}
@@ -3433,7 +3477,7 @@ function items(state = {}, action) {
[context]: {
...state[context],
...action.items.reduce((accumulator, value) => {
- const itemId = value[key];
+ const itemId = value?.[key];
accumulator[itemId] = conservativeMapItem(state?.[context]?.[itemId], value);
return accumulator;
}, {})
@@ -3481,7 +3525,7 @@ function itemIsComplete(state = {}, action) {
[context]: {
...state[context],
...action.items.reduce((result, item) => {
- const itemId = item[key];
+ const itemId = item?.[key];
// Defer to completeness if already assigned. Technically the
// data may be outdated if receiving items for a field subset.
@@ -3536,7 +3580,7 @@ on_sub_key('stableKey')])((state = {}, action) => {
return state;
}
return {
- itemIds: getMergedItemIds(state?.itemIds || [], action.items.map(item => item[key]), page, perPage),
+ itemIds: getMergedItemIds(state?.itemIds || [], action.items.map(item => item?.[key]).filter(Boolean), page, perPage),
meta: action.meta
};
});
@@ -3815,7 +3859,7 @@ function entity(entityConfig) {
...state
};
for (const record of action.items) {
- const recordId = record[action.key];
+ const recordId = record?.[action.key];
const edits = nextState[recordId];
if (!edits) {
continue;
@@ -4148,304 +4192,6 @@ function defaultTemplates(state = {}, action) {
defaultTemplates
}));
-;// CONCATENATED MODULE: ./node_modules/rememo/rememo.js
-
-
-/** @typedef {(...args: any[]) => *[]} GetDependants */
-
-/** @typedef {() => void} Clear */
-
-/**
- * @typedef {{
- * getDependants: GetDependants,
- * clear: Clear
- * }} EnhancedSelector
- */
-
-/**
- * Internal cache entry.
- *
- * @typedef CacheNode
- *
- * @property {?CacheNode|undefined} [prev] Previous node.
- * @property {?CacheNode|undefined} [next] Next node.
- * @property {*[]} args Function arguments for cache entry.
- * @property {*} val Function result.
- */
-
-/**
- * @typedef Cache
- *
- * @property {Clear} clear Function to clear cache.
- * @property {boolean} [isUniqueByDependants] Whether dependants are valid in
- * considering cache uniqueness. A cache is unique if dependents are all arrays
- * or objects.
- * @property {CacheNode?} [head] Cache head.
- * @property {*[]} [lastDependants] Dependants from previous invocation.
- */
-
-/**
- * Arbitrary value used as key for referencing cache object in WeakMap tree.
- *
- * @type {{}}
- */
-var LEAF_KEY = {};
-
-/**
- * Returns the first argument as the sole entry in an array.
- *
- * @template T
- *
- * @param {T} value Value to return.
- *
- * @return {[T]} 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 {Cache} Cache object.
- */
-function createCache() {
- /** @type {Cache} */
- 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 {*[]} a First array.
- * @param {*[]} 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.
- *
- * @template {(...args: *[]) => *} S
- *
- * @param {S} selector Selector function.
- * @param {GetDependants=} getDependants Dependant getter returning an array of
- * references used in cache bust consideration.
- */
-/* harmony default export */ function rememo(selector, getDependants) {
- /** @type {WeakMap<*,*>} */
- var rootCache;
-
- /** @type {GetDependants} */
- var normalizedGetDependants = getDependants ? getDependants : arrayOf;
-
- /**
- * 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 {*[]} dependants Selector dependants.
- *
- * @return {Cache} Cache object.
- */
- function getCache(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);
- }
-
- /**
- * Resets root memoization cache.
- */
- function clear() {
- rootCache = new WeakMap();
- }
-
- /* eslint-disable jsdoc/check-param-names */
- /**
- * The augmented selector call, considering first whether dependants have
- * changed before passing it to underlying memoize function.
- *
- * @param {*} source Source object for derivation.
- * @param {...*} extraArgs Additional arguments to pass to selector.
- *
- * @return {*} Selector result.
- */
- /* eslint-enable jsdoc/check-param-names */
- 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 = normalizedGetDependants.apply(null, args);
- cache = getCache(dependants);
-
- // If not guaranteed uniqueness by dependants (primitive type), 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.
- /** @type {CacheNode} */ (node.prev).next = node.next;
- if (node.next) {
- node.next.prev = node.prev;
- }
-
- node.next = cache.head;
- node.prev = null;
- /** @type {CacheNode} */ (cache.head).prev = node;
- cache.head = node;
- }
-
- // Return immediately
- return node.val;
- }
-
- // No cached value found. Continue to insertion phase:
-
- node = /** @type {CacheNode} */ ({
- // 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 = normalizedGetDependants;
- callSelector.clear = clear;
- clear();
-
- return /** @type {S & EnhancedSelector} */ (callSelector);
-}
-
// EXTERNAL MODULE: ./node_modules/equivalent-key-map/equivalent-key-map.js
var equivalent_key_map = __webpack_require__(3249);
var equivalent_key_map_default = /*#__PURE__*/__webpack_require__.n(equivalent_key_map);
@@ -4455,6 +4201,10 @@ var equivalent_key_map_default = /*#__PURE__*/__webpack_require__.n(equivalent_k
*/
+/**
+ * WordPress dependencies
+ */
+
/**
* Internal dependencies
@@ -4548,7 +4298,7 @@ function getQueriedItemsUncached(state, query) {
*
* @return {?Array} Query items.
*/
-const getQueriedItems = rememo((state, query = {}) => {
+const getQueriedItems = (0,external_wp_data_namespaceObject.createSelector)((state, query = {}) => {
let queriedItemsCache = queriedItemsCacheByState.get(state);
if (queriedItemsCache) {
const queriedItems = queriedItemsCache.get(query);
@@ -4571,6 +4321,14 @@ function getQueriedTotalItems(state, query = {}) {
} = get_query_parts(query);
return (_state$queries$contex = state.queries?.[context]?.[stableKey]?.meta?.totalItems) !== null && _state$queries$contex !== void 0 ? _state$queries$contex : null;
}
+function getQueriedTotalPages(state, query = {}) {
+ var _state$queries$contex2;
+ const {
+ stableKey,
+ context
+ } = get_query_parts(query);
+ return (_state$queries$contex2 = state.queries?.[context]?.[stableKey]?.meta?.totalPages) !== null && _state$queries$contex2 !== void 0 ? _state$queries$contex2 : null;
+}
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/utils/is-numeric-id.js
/**
@@ -4599,11 +4357,6 @@ function isRawAttribute(entity, attribute) {
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/selectors.js
/**
- * External dependencies
- */
-
-
-/**
* WordPress dependencies
*/
@@ -4617,6 +4370,20 @@ function isRawAttribute(entity, attribute) {
+
+// This is an incomplete, high-level approximation of the State type.
+// It makes the selectors slightly more safe, but is intended to evolve
+// into a more detailed representation over time.
+// See https://github.com/WordPress/gutenberg/pull/40025#discussion_r865410589 for more context.
+
+/**
+ * HTTP Query parameters sent with the API request to fetch the entity records.
+ */
+
+/**
+ * Arguments for EntityRecord selectors.
+ */
+
/**
* Shared reference to an empty object for cases where it is important to avoid
* returning a new object reference on every invocation, as in a connected or
@@ -4677,7 +4444,7 @@ function getCurrentUser(state) {
*
* @return Users list.
*/
-const getUserQueryResults = rememo((state, queryID) => {
+const getUserQueryResults = (0,external_wp_data_namespaceObject.createSelector)((state, queryID) => {
var _state$users$queries$;
const queryResults = (_state$users$queries$ = state.users.queries[queryID]) !== null && _state$users$queries$ !== void 0 ? _state$users$queries$ : [];
return queryResults.map(id => state.users.byId[id]);
@@ -4708,7 +4475,7 @@ function getEntitiesByKind(state, kind) {
*
* @return Array of entities with config matching kind.
*/
-const getEntitiesConfig = rememo((state, kind) => state.entities.config.filter(entity => entity.kind === kind), (state, kind) => state.entities.config);
+const getEntitiesConfig = (0,external_wp_data_namespaceObject.createSelector)((state, kind) => state.entities.config.filter(entity => entity.kind === kind), (state, kind) => state.entities.config);
/**
* Returns the entity config given its kind and name.
*
@@ -4779,7 +4546,7 @@ function getEntityConfig(state, kind, name) {
*
* @return Record.
*/
-const getEntityRecord = rememo((state, kind, name, key, query) => {
+const getEntityRecord = (0,external_wp_data_namespaceObject.createSelector)((state, kind, name, key, query) => {
var _query$context;
const queriedState = state.entities.records?.[kind]?.[name]?.queriedData;
if (!queriedState) {
@@ -4855,7 +4622,7 @@ function __experimentalGetEntityRecordNoResolver(state, kind, name, key) {
*
* @return Object with the entity's raw attributes.
*/
-const getRawEntityRecord = rememo((state, kind, name, key) => {
+const getRawEntityRecord = (0,external_wp_data_namespaceObject.createSelector)((state, kind, name, key) => {
const record = getEntityRecord(state, kind, name, key);
return record && Object.keys(record).reduce((accumulator, _key) => {
if (isRawAttribute(getEntityConfig(state, kind, name), _key)) {
@@ -4959,9 +4726,18 @@ const getEntityRecordsTotalPages = (state, kind, name, query) => {
if (!queriedState) {
return null;
}
- if (query.per_page === -1) return 1;
+ if (query.per_page === -1) {
+ return 1;
+ }
const totalItems = getQueriedTotalItems(queriedState, query);
- if (!totalItems) return totalItems;
+ if (!totalItems) {
+ return totalItems;
+ }
+ // If `per_page` is not set and the query relies on the defaults of the
+ // REST endpoint, get the info from query's meta.
+ if (!query.per_page) {
+ return getQueriedTotalPages(queriedState, query);
+ }
return Math.ceil(totalItems / query.per_page);
};
/**
@@ -4971,7 +4747,7 @@ const getEntityRecordsTotalPages = (state, kind, name, query) => {
*
* @return The list of updated records
*/
-const __experimentalGetDirtyEntityRecords = rememo(state => {
+const __experimentalGetDirtyEntityRecords = (0,external_wp_data_namespaceObject.createSelector)(state => {
const {
entities: {
records
@@ -5010,7 +4786,7 @@ const __experimentalGetDirtyEntityRecords = rememo(state => {
*
* @return The list of records being saved.
*/
-const __experimentalGetEntitiesBeingSaved = rememo(state => {
+const __experimentalGetEntitiesBeingSaved = (0,external_wp_data_namespaceObject.createSelector)(state => {
const {
entities: {
records
@@ -5067,7 +4843,7 @@ function getEntityRecordEdits(state, kind, name, recordId) {
*
* @return The entity record's non transient edits.
*/
-const getEntityRecordNonTransientEdits = rememo((state, kind, name, recordId) => {
+const getEntityRecordNonTransientEdits = (0,external_wp_data_namespaceObject.createSelector)((state, kind, name, recordId) => {
const {
transientEdits
} = getEntityConfig(state, kind, name) || {};
@@ -5108,10 +4884,21 @@ function hasEditsForEntityRecord(state, kind, name, recordId) {
*
* @return The entity record, merged with its edits.
*/
-const getEditedEntityRecord = rememo((state, kind, name, recordId) => ({
- ...getRawEntityRecord(state, kind, name, recordId),
- ...getEntityRecordEdits(state, kind, name, recordId)
-}), (state, kind, name, recordId, query) => {
+const getEditedEntityRecord = (0,external_wp_data_namespaceObject.createSelector)((state, kind, name, recordId) => {
+ const raw = getRawEntityRecord(state, kind, name, recordId);
+ const edited = getEntityRecordEdits(state, kind, name, recordId);
+ // Never return a non-falsy empty object. Unfortunately we can't return
+ // undefined or null because we were previously returning an empty
+ // object, so trying to read properties from the result would throw.
+ // Using false here is a workaround to avoid breaking changes.
+ if (!raw && !edited) {
+ return false;
+ }
+ return {
+ ...raw,
+ ...edited
+ };
+}, (state, kind, name, recordId, query) => {
var _query$context4;
const context = (_query$context4 = query?.context) !== null && _query$context4 !== void 0 ? _query$context4 : 'default';
return [state.entities.config, state.entities.records?.[kind]?.[name]?.queriedData.items[context]?.[recordId], state.entities.records?.[kind]?.[name]?.queriedData.itemIsComplete[context]?.[recordId], state.entities.records?.[kind]?.[name]?.edits?.[recordId]];
@@ -5585,7 +5372,7 @@ const getRevisions = (state, kind, name, recordKey, query) => {
*
* @return Record.
*/
-const getRevision = rememo((state, kind, name, recordKey, revisionKey, query) => {
+const getRevision = (0,external_wp_data_namespaceObject.createSelector)((state, kind, name, recordKey, revisionKey, query) => {
var _query$context5;
const queriedState = state.entities.records?.[kind]?.[name]?.revisions?.[recordKey];
if (!queriedState) {
@@ -5623,11 +5410,6 @@ const getRevision = rememo((state, kind, name, recordKey, revisionKey, query) =>
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/private-selectors.js
/**
- * External dependencies
- */
-
-
-/**
* WordPress dependencies
*/
@@ -5658,7 +5440,7 @@ function getUndoManager(state) {
function getNavigationFallbackId(state) {
return state.navigationFallbackId;
}
-const getBlockPatternsForPostType = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => rememo((state, postType) => select(STORE_NAME).getBlockPatterns().filter(({
+const getBlockPatternsForPostType = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (0,external_wp_data_namespaceObject.createSelector)((state, postType) => select(STORE_NAME).getBlockPatterns().filter(({
postTypes
}) => !postTypes || Array.isArray(postTypes) && postTypes.includes(postType)), () => [select(STORE_NAME).getBlockPatterns()]));
@@ -6067,7 +5849,7 @@ const resolvers_getEntityRecord = (kind, name, key = '', query) => async ({
select,
dispatch
}) => {
- const configs = await dispatch(getOrLoadEntitiesConfig(kind));
+ const configs = await dispatch(getOrLoadEntitiesConfig(kind, name));
const entityConfig = configs.find(config => config.name === name && config.kind === kind);
if (!entityConfig || entityConfig?.__experimentalNoFetch) {
return;
@@ -6145,9 +5927,10 @@ const resolvers_getEditedEntityRecord = forward_resolver('getEntityRecord');
* must always include the ID.
*/
const resolvers_getEntityRecords = (kind, name, query = {}) => async ({
- dispatch
+ dispatch,
+ registry
}) => {
- const configs = await dispatch(getOrLoadEntitiesConfig(kind));
+ const configs = await dispatch(getOrLoadEntitiesConfig(kind, name));
const entityConfig = configs.find(config => config.name === name && config.kind === kind);
if (!entityConfig || entityConfig?.__experimentalNoFetch) {
return;
@@ -6177,7 +5960,8 @@ const resolvers_getEntityRecords = (kind, name, query = {}) => async ({
});
records = Object.values(await response.json());
meta = {
- totalItems: parseInt(response.headers.get('X-WP-Total'))
+ totalItems: parseInt(response.headers.get('X-WP-Total')),
+ totalPages: parseInt(response.headers.get('X-WP-TotalPages'))
};
} else {
records = Object.values(await external_wp_apiFetch_default()({
@@ -6198,26 +5982,29 @@ const resolvers_getEntityRecords = (kind, name, query = {}) => async ({
return record;
});
}
- dispatch.receiveEntityRecords(kind, name, records, query, false, undefined, meta);
-
- // When requesting all fields, the list of results can be used to
- // resolve the `getEntityRecord` selector in addition to `getEntityRecords`.
- // See https://github.com/WordPress/gutenberg/pull/26575
- if (!query?._fields && !query.context) {
- const key = entityConfig.key || DEFAULT_ENTITY_KEY;
- const resolutionsArgs = records.filter(record => record[key]).map(record => [kind, name, record[key]]);
- dispatch({
- type: 'START_RESOLUTIONS',
- selectorName: 'getEntityRecord',
- args: resolutionsArgs
- });
- dispatch({
- type: 'FINISH_RESOLUTIONS',
- selectorName: 'getEntityRecord',
- args: resolutionsArgs
- });
- }
- } finally {
+ registry.batch(() => {
+ dispatch.receiveEntityRecords(kind, name, records, query, false, undefined, meta);
+
+ // When requesting all fields, the list of results can be used to
+ // resolve the `getEntityRecord` selector in addition to `getEntityRecords`.
+ // See https://github.com/WordPress/gutenberg/pull/26575
+ if (!query?._fields && !query.context) {
+ const key = entityConfig.key || DEFAULT_ENTITY_KEY;
+ const resolutionsArgs = records.filter(record => record?.[key]).map(record => [kind, name, record[key]]);
+ dispatch({
+ type: 'START_RESOLUTIONS',
+ selectorName: 'getEntityRecord',
+ args: resolutionsArgs
+ });
+ dispatch({
+ type: 'FINISH_RESOLUTIONS',
+ selectorName: 'getEntityRecord',
+ args: resolutionsArgs
+ });
+ }
+ dispatch.__unstableReleaseStoreLock(lock);
+ });
+ } catch (e) {
dispatch.__unstableReleaseStoreLock(lock);
}
};
@@ -6340,7 +6127,7 @@ const resolvers_canUser = (requestedAction, resource, id) => async ({
const resolvers_canUserEditEntityRecord = (kind, name, recordId) => async ({
dispatch
}) => {
- const configs = await dispatch(getOrLoadEntitiesConfig(kind));
+ const configs = await dispatch(getOrLoadEntitiesConfig(kind, name));
const entityConfig = configs.find(config => config.name === name && config.kind === kind);
if (!entityConfig) {
return;
@@ -6430,11 +6217,16 @@ const resolvers_experimentalGetCurrentGlobalStylesId = () => async ({
status: 'active'
});
const globalStylesURL = activeThemes?.[0]?._links?.['wp:user-global-styles']?.[0]?.href;
- if (globalStylesURL) {
- const globalStylesObject = await external_wp_apiFetch_default()({
- url: globalStylesURL
- });
- dispatch.__experimentalReceiveCurrentGlobalStylesId(globalStylesObject.id);
+ if (!globalStylesURL) {
+ return;
+ }
+
+ // Regex matches the ID at the end of a URL or immediately before
+ // the query string.
+ const matches = globalStylesURL.match(/\/(\d+)(?:\?|$)/);
+ const id = matches ? Number(matches[1]) : null;
+ if (id) {
+ dispatch.__experimentalReceiveCurrentGlobalStylesId(id);
}
};
const resolvers_experimentalGetCurrentThemeBaseGlobalStyles = () => async ({
@@ -6547,7 +6339,8 @@ const resolvers_getDefaultTemplateId = query => async ({
const template = await external_wp_apiFetch_default()({
path: (0,external_wp_url_namespaceObject.addQueryArgs)('/wp/v2/templates/lookup', query)
});
- if (template) {
+ // Endpoint may return an empty object if no template is found.
+ if (template?.id) {
dispatch.receiveDefaultTemplateId(query, template.id);
}
};
@@ -6565,7 +6358,7 @@ const resolvers_getDefaultTemplateId = query => async ({
const resolvers_getRevisions = (kind, name, recordKey, query = {}) => async ({
dispatch
}) => {
- const configs = await dispatch(getOrLoadEntitiesConfig(kind));
+ const configs = await dispatch(getOrLoadEntitiesConfig(kind, name));
const entityConfig = configs.find(config => config.name === name && config.kind === kind);
if (!entityConfig || entityConfig?.__experimentalNoFetch) {
return;
@@ -6651,7 +6444,7 @@ resolvers_getRevisions.shouldInvalidate = (action, kind, name, recordKey) => act
const resolvers_getRevision = (kind, name, recordKey, revisionKey, query) => async ({
dispatch
}) => {
- const configs = await dispatch(getOrLoadEntitiesConfig(kind));
+ const configs = await dispatch(getOrLoadEntitiesConfig(kind, name));
const entityConfig = configs.find(config => config.name === name && config.kind === kind);
if (!entityConfig || entityConfig?.__experimentalNoFetch) {
return;
@@ -6947,10 +6740,8 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
const {
lock,
unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/core-data');
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/core-data');
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: external ["wp","element"]
const external_wp_element_namespaceObject = window["wp"]["element"];
;// CONCATENATED MODULE: external ["wp","blocks"]
@@ -7042,14 +6833,20 @@ function updateFootnotesFromMeta(blocks, meta) {
const output = {
blocks
};
- if (!meta) return output;
+ if (!meta) {
+ return output;
+ }
// If meta.footnotes is empty, it means the meta is not registered.
- if (meta.footnotes === undefined) return output;
+ if (meta.footnotes === undefined) {
+ return output;
+ }
const newOrder = getFootnotesOrder(blocks);
const footnotes = meta.footnotes ? JSON.parse(meta.footnotes) : [];
const currentOrder = footnotes.map(fn => fn.id);
- if (currentOrder.join('') === newOrder.join('')) return output;
+ if (currentOrder.join('') === newOrder.join('')) {
+ return output;
+ }
const newFootnotes = newOrder.map(fnId => footnotes.find(fn => fn.id === fnId) || oldFootnotes[fnId] || {
id: fnId,
content: ''
@@ -7129,8 +6926,9 @@ function updateFootnotesFromMeta(blocks, meta) {
};
}
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/entity-provider.js
-
/**
* WordPress dependencies
*/
@@ -7147,37 +6945,7 @@ function updateFootnotesFromMeta(blocks, meta) {
/** @typedef {import('@wordpress/blocks').WPBlock} WPBlock */
const EMPTY_ARRAY = [];
-
-/**
- * Internal dependencies
- */
-
-const entityContexts = {
- ...rootEntitiesConfig.reduce((acc, loader) => {
- if (!acc[loader.kind]) {
- acc[loader.kind] = {};
- }
- acc[loader.kind][loader.name] = {
- context: (0,external_wp_element_namespaceObject.createContext)(undefined)
- };
- return acc;
- }, {}),
- ...additionalEntityConfigLoaders.reduce((acc, loader) => {
- acc[loader.kind] = {};
- return acc;
- }, {})
-};
-const getEntityContext = (kind, name) => {
- if (!entityContexts[kind]) {
- throw new Error(`Missing entity config for kind: ${kind}.`);
- }
- if (!entityContexts[kind][name]) {
- entityContexts[kind][name] = {
- context: (0,external_wp_element_namespaceObject.createContext)(undefined)
- };
- }
- return entityContexts[kind][name].context;
-};
+const EntityContext = (0,external_wp_element_namespaceObject.createContext)({});
/**
* Context provider component for providing
@@ -7198,10 +6966,18 @@ function EntityProvider({
id,
children
}) {
- const Provider = getEntityContext(kind, name).Provider;
- return (0,external_React_namespaceObject.createElement)(Provider, {
- value: id
- }, children);
+ const parent = (0,external_wp_element_namespaceObject.useContext)(EntityContext);
+ const childContext = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ ...parent,
+ [kind]: {
+ ...parent?.[kind],
+ [name]: id
+ }
+ }), [parent, kind, name, id]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EntityContext.Provider, {
+ value: childContext,
+ children: children
+ });
}
/**
@@ -7212,7 +6988,8 @@ function EntityProvider({
* @param {string} name The entity name.
*/
function useEntityId(kind, name) {
- return (0,external_wp_element_namespaceObject.useContext)(getEntityContext(kind, name));
+ const context = (0,external_wp_element_namespaceObject.useContext)(EntityContext);
+ return context?.[kind]?.[name];
}
/**
@@ -7634,30 +7411,29 @@ const enrichSelectors = memoize(selectors => {
}
Object.defineProperty(resolvers, selectorName, {
get: () => (...args) => {
- const {
- getIsResolving,
- hasFinishedResolution
- } = selectors;
- const isResolving = !!getIsResolving(selectorName, args);
- const hasResolved = !isResolving && hasFinishedResolution(selectorName, args);
const data = selectors[selectorName](...args);
+ const resolutionStatus = selectors.getResolutionState(selectorName, args)?.status;
let status;
- if (isResolving) {
- status = Status.Resolving;
- } else if (hasResolved) {
- if (data) {
+ switch (resolutionStatus) {
+ case 'resolving':
+ status = Status.Resolving;
+ break;
+ case 'finished':
status = Status.Success;
- } else {
+ break;
+ case 'error':
status = Status.Error;
- }
- } else {
- status = Status.Idle;
+ break;
+ case undefined:
+ status = Status.Idle;
+ break;
}
return {
data,
status,
- isResolving,
- hasResolved
+ isResolving: status === Status.Resolving,
+ hasStarted: status !== Status.Idle,
+ hasResolved: status === Status.Success || status === Status.Error
};
}
});
@@ -7945,6 +7721,11 @@ function __experimentalUseEntityRecords(kind, name, queryArgs, options) {
+
+/**
+ * Is the data resolved by now?
+ */
+
/**
* Resolves resource permissions.
*
@@ -8095,28 +7876,34 @@ function __experimentalUseResourcePermissions(resource, id) {
// (getEntityRecord, getEntityRecords, updateEntityRecord, updateEntityRecords)
// Instead of getEntityRecord, the consumer could use more user-friendly named selector: getPostType, getTaxonomy...
// The "kind" and the "name" of the entity are combined to generate these shortcuts.
-
-const entitySelectors = rootEntitiesConfig.reduce((result, entity) => {
+const build_module_entitiesConfig = [...rootEntitiesConfig, ...additionalEntityConfigLoaders.filter(config => !!config.name)];
+const entitySelectors = build_module_entitiesConfig.reduce((result, entity) => {
const {
kind,
- name
+ name,
+ plural
} = entity;
result[getMethodName(kind, name)] = (state, key, query) => getEntityRecord(state, kind, name, key, query);
- result[getMethodName(kind, name, 'get', true)] = (state, query) => getEntityRecords(state, kind, name, query);
+ if (plural) {
+ result[getMethodName(kind, plural, 'get')] = (state, query) => getEntityRecords(state, kind, name, query);
+ }
return result;
}, {});
-const entityResolvers = rootEntitiesConfig.reduce((result, entity) => {
+const entityResolvers = build_module_entitiesConfig.reduce((result, entity) => {
const {
kind,
- name
+ name,
+ plural
} = entity;
result[getMethodName(kind, name)] = (key, query) => resolvers_getEntityRecord(kind, name, key, query);
- const pluralMethodName = getMethodName(kind, name, 'get', true);
- result[pluralMethodName] = (...args) => resolvers_getEntityRecords(kind, name, ...args);
- result[pluralMethodName].shouldInvalidate = action => resolvers_getEntityRecords.shouldInvalidate(action, kind, name);
+ if (plural) {
+ const pluralMethodName = getMethodName(kind, plural, 'get');
+ result[pluralMethodName] = (...args) => resolvers_getEntityRecords(kind, name, ...args);
+ result[pluralMethodName].shouldInvalidate = action => resolvers_getEntityRecords.shouldInvalidate(action, kind, name);
+ }
return result;
}, {});
-const entityActions = rootEntitiesConfig.reduce((result, entity) => {
+const entityActions = build_module_entitiesConfig.reduce((result, entity) => {
const {
kind,
name
diff --git a/wp-includes/js/dist/core-data.min.js b/wp-includes/js/dist/core-data.min.js
index 3097391..e11f754 100644
--- a/wp-includes/js/dist/core-data.min.js
+++ b/wp-includes/js/dist/core-data.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-(()=>{"use strict";var e={6689:(e,t,n)=>{n.d(t,{createUndoManager:()=>a});var r=n(923),s=n.n(r);function i(e,t){const n={...e};return Object.entries(t).forEach((([e,t])=>{n[e]?n[e]={...n[e],to:t.to}:n[e]=t})),n}const o=(e,t)=>{const n=e?.findIndex((({id:e})=>"string"==typeof e?e===t.id:s()(e,t.id))),r=[...e];return-1!==n?r[n]={id:t.id,changes:i(r[n].changes,t.changes)}:r.push(t),r};function a(){let e=[],t=[],n=0;const r=()=>{e=e.slice(0,n||void 0),n=0},i=()=>{var n;const r=0===e.length?0:e.length-1;let s=null!==(n=e[r])&&void 0!==n?n:[];t.forEach((e=>{s=o(s,e)})),t=[],e[r]=s};return{addRecord(n,a=!1){const c=!n||(e=>!e.filter((({changes:e})=>Object.values(e).some((({from:e,to:t})=>"function"!=typeof e&&"function"!=typeof t&&!s()(e,t))))).length)(n);if(a){if(c)return;n.forEach((e=>{t=o(t,e)}))}else{if(r(),t.length&&i(),c)return;e.push(n)}},undo(){t.length&&(r(),i());const s=e[e.length-1+n];if(s)return n-=1,s},redo(){const t=e[e.length+n];if(t)return n+=1,t},hasUndo:()=>!!e[e.length-1+n],hasRedo:()=>!!e[e.length+n]}}},3249:e=>{function t(e){return t="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},t(e)}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t){var n=e._map,r=e._arrayTreeMap,s=e._objectTreeMap;if(n.has(t))return n.get(t);for(var i=Object.keys(t).sort(),o=Array.isArray(t)?r:s,a=0;a<i.length;a++){var c=i[a];if(void 0===(o=o.get(c)))return;var l=t[c];if(void 0===(o=o.get(l)))return}var u=o.get("_ekm_value");return u?(n.delete(u[0]),u[0]=t,o.set("_ekm_value",u),n.set(t,u),u):void 0}var s=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clear(),t instanceof e){var n=[];t.forEach((function(e,t){n.push([t,e])})),t=n}if(null!=t)for(var r=0;r<t.length;r++)this.set(t[r][0],t[r][1])}var s,i,o;return s=e,i=[{key:"set",value:function(n,r){if(null===n||"object"!==t(n))return this._map.set(n,r),this;for(var s=Object.keys(n).sort(),i=[n,r],o=Array.isArray(n)?this._arrayTreeMap:this._objectTreeMap,a=0;a<s.length;a++){var c=s[a];o.has(c)||o.set(c,new e),o=o.get(c);var l=n[c];o.has(l)||o.set(l,new e),o=o.get(l)}var u=o.get("_ekm_value");return u&&this._map.delete(u[0]),o.set("_ekm_value",i),this._map.set(n,i),this}},{key:"get",value:function(e){if(null===e||"object"!==t(e))return this._map.get(e);var n=r(this,e);return n?n[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==t(e)?this._map.has(e):void 0!==r(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(s,i){null!==i&&"object"===t(i)&&(s=s[1]),e.call(r,s,i,n)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}],i&&n(s.prototype,i),o&&n(s,o),e}();e.exports=s},7734:e=>{e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,s,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(s=r;0!=s--;)if(!e(t[s],n[s]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(s of t.entries())if(!n.has(s[0]))return!1;for(s of t.entries())if(!e(s[1],n.get(s[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(s of t.entries())if(!n.has(s[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(s=r;0!=s--;)if(t[s]!==n[s])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(s=r;0!=s--;)if(!Object.prototype.hasOwnProperty.call(n,i[s]))return!1;for(s=r;0!=s--;){var o=i[s];if(!e(t[o],n[o]))return!1}return!0}return t!=t&&n!=n}},923:e=>{e.exports=window.wp.isShallowEqual}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{n.r(r),n.d(r,{EntityProvider:()=>Zn,__experimentalFetchLinkSuggestions:()=>Zt,__experimentalFetchUrlData:()=>en,__experimentalUseEntityRecord:()=>ur,__experimentalUseEntityRecords:()=>fr,__experimentalUseResourcePermissions:()=>Er,fetchBlockPatterns:()=>tn,store:()=>vr,useEntityBlockEditor:()=>nr,useEntityId:()=>Xn,useEntityProp:()=>er,useEntityRecord:()=>lr,useEntityRecords:()=>pr,useResourcePermissions:()=>yr});var e={};n.r(e),n.d(e,{__experimentalBatch:()=>ce,__experimentalReceiveCurrentGlobalStylesId:()=>W,__experimentalReceiveThemeBaseGlobalStyles:()=>J,__experimentalReceiveThemeGlobalStyleVariations:()=>Z,__experimentalSaveSpecifiedEntityEdits:()=>ue,__unstableCreateUndoLevel:()=>oe,addEntities:()=>Y,deleteEntityRecord:()=>ne,editEntityRecord:()=>re,receiveAutosaves:()=>fe,receiveCurrentTheme:()=>z,receiveCurrentUser:()=>Q,receiveDefaultTemplateId:()=>Ee,receiveEmbedPreview:()=>te,receiveEntityRecords:()=>H,receiveNavigationFallbackId:()=>ye,receiveRevisions:()=>me,receiveThemeGlobalStyleRevisions:()=>ee,receiveThemeSupports:()=>X,receiveUploadPermissions:()=>de,receiveUserPermission:()=>pe,receiveUserQuery:()=>K,redo:()=>ie,saveEditedEntityRecord:()=>le,saveEntityRecord:()=>ae,undo:()=>se});var t={};n.r(t),n.d(t,{__experimentalGetCurrentGlobalStylesId:()=>It,__experimentalGetCurrentThemeBaseGlobalStyles:()=>Dt,__experimentalGetCurrentThemeGlobalStylesVariations:()=>Nt,__experimentalGetDirtyEntityRecords:()=>lt,__experimentalGetEntitiesBeingSaved:()=>ut,__experimentalGetEntityRecordNoResolver:()=>rt,__experimentalGetTemplateForLink:()=>jt,canUser:()=>At,canUserEditEntityRecord:()=>Ct,getAuthors:()=>ze,getAutosave:()=>Ut,getAutosaves:()=>xt,getBlockPatternCategories:()=>Vt,getBlockPatterns:()=>Mt,getCurrentTheme:()=>Tt,getCurrentThemeGlobalStylesRevisions:()=>qt,getCurrentUser:()=>We,getDefaultTemplateId:()=>Bt,getEditedEntityRecord:()=>yt,getEmbedPreview:()=>kt,getEntitiesByKind:()=>Ze,getEntitiesConfig:()=>Xe,getEntity:()=>et,getEntityConfig:()=>tt,getEntityRecord:()=>nt,getEntityRecordEdits:()=>dt,getEntityRecordNonTransientEdits:()=>pt,getEntityRecords:()=>ot,getEntityRecordsTotalItems:()=>at,getEntityRecordsTotalPages:()=>ct,getLastEntityDeleteError:()=>vt,getLastEntitySaveError:()=>gt,getRawEntityRecord:()=>st,getRedoEdit:()=>Rt,getReferenceByDistinctEdits:()=>Lt,getRevision:()=>$t,getRevisions:()=>Ft,getThemeSupports:()=>St,getUndoEdit:()=>_t,getUserPatternCategories:()=>Gt,getUserQueryResults:()=>Je,hasEditsForEntityRecord:()=>ft,hasEntityRecords:()=>it,hasFetchedAutosaves:()=>Pt,hasRedo:()=>wt,hasUndo:()=>bt,isAutosavingEntityRecord:()=>Et,isDeletingEntityRecord:()=>ht,isPreviewEmbedFallback:()=>Ot,isRequestingEmbedPreview:()=>He,isSavingEntityRecord:()=>mt});var s={};n.r(s),n.d(s,{getBlockPatternsForPostType:()=>Yt,getNavigationFallbackId:()=>Qt,getUndoManager:()=>Kt});var i={};n.r(i),n.d(i,{__experimentalGetCurrentGlobalStylesId:()=>hn,__experimentalGetCurrentThemeBaseGlobalStyles:()=>gn,__experimentalGetCurrentThemeGlobalStylesVariations:()=>vn,__experimentalGetTemplateForLink:()=>mn,canUser:()=>pn,canUserEditEntityRecord:()=>fn,getAuthors:()=>nn,getAutosave:()=>En,getAutosaves:()=>yn,getBlockPatternCategories:()=>bn,getBlockPatterns:()=>Rn,getCurrentTheme:()=>ln,getCurrentThemeGlobalStylesRevisions:()=>_n,getCurrentUser:()=>rn,getDefaultTemplateId:()=>In,getEditedEntityRecord:()=>an,getEmbedPreview:()=>dn,getEntityRecord:()=>sn,getEntityRecords:()=>cn,getNavigationFallbackId:()=>Tn,getRawEntityRecord:()=>on,getRevision:()=>kn,getRevisions:()=>Sn,getThemeSupports:()=>un,getUserPatternCategories:()=>wn});const o=window.wp.data;var a=n(7734),c=n.n(a);const l=window.wp.compose;var u=n(6689);const d=e=>t=>(n,r)=>void 0===n||e(r)?t(n,r):n,p=e=>t=>(n,r)=>t(n,e(r));const f=e=>t=>(n={},r)=>{const s=r[e];if(void 0===s)return n;const i=t(n[s],r);return i===n[s]?n:{...n,[s]:i}};var y=function(){return y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},y.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function E(e){return e.toLowerCase()}var m=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],h=/[^A-Z0-9]+/gi;function g(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?m:n,s=t.stripRegexp,i=void 0===s?h:s,o=t.transform,a=void 0===o?E:o,c=t.delimiter,l=void 0===c?" ":c,u=v(v(e,r,"$1\0$2"),i,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(a).join(l)}function v(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function _(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}function R(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function b(e,t){return void 0===t&&(t={}),g(e,y({delimiter:"",transform:R},t))}const w=window.wp.apiFetch;var T=n.n(w);const I=window.wp.i18n,S=window.wp.richText,k={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let O;const A=new Uint8Array(16);function C(){if(!O&&(O="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!O))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return O(A)}const x=[];for(let e=0;e<256;++e)x.push((e+256).toString(16).slice(1));function U(e,t=0){return x[e[t+0]]+x[e[t+1]]+x[e[t+2]]+x[e[t+3]]+"-"+x[e[t+4]]+x[e[t+5]]+"-"+x[e[t+6]]+x[e[t+7]]+"-"+x[e[t+8]]+x[e[t+9]]+"-"+x[e[t+10]]+x[e[t+11]]+x[e[t+12]]+x[e[t+13]]+x[e[t+14]]+x[e[t+15]]}const P=function(e,t,n){if(k.randomUUID&&!t&&!e)return k.randomUUID();const r=(e=e||{}).random||(e.rng||C)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return U(r)},L=window.wp.url,j=window.wp.deprecated;var D=n.n(j);function N(e,t,n){if(!e||"object"!=typeof e)return e;const r=Array.isArray(t)?t:t.split(".");return r.reduce(((e,t,s)=>(void 0===e[t]&&(Number.isInteger(r[s+1])?e[t]=[]:e[t]={}),s===r.length-1&&(e[t]=n),e[t])),e),e}function M(e,t,n){if(!e||"object"!=typeof e||"string"!=typeof t&&!Array.isArray(t))return e;const r=Array.isArray(t)?t:t.split(".");let s=e;return r.forEach((e=>{s=s?.[e]})),void 0!==s?s:n}function V(e,t,n){return{type:"RECEIVE_ITEMS",items:Array.isArray(e)?e:[e],persistedEdits:t,meta:n}}let G=null;async function q(e){if(null===G){const e=await T()({path:"/batch/v1",method:"OPTIONS"});G=e.endpoints[0].args.requests.maxItems}const t=[];for(const n of function(e,t){const n=[...e],r=[];for(;n.length;)r.push(n.splice(0,t));return r}(e,G)){const e=await T()({path:"/batch/v1",method:"POST",data:{validation:"require-all-validate",requests:n.map((e=>({path:e.path,body:e.data,method:e.method,headers:e.headers})))}});let r;r=e.failed?e.responses.map((e=>({error:e?.body}))):e.responses.map((e=>{const t={};return e.status>=200&&e.status<300?t.output=e.body:t.error=e.body,t})),t.push(...r)}return t}function B(e=q){let t=0,n=[];const r=new F;return{add(e){const s=++t;r.add(s);const i=e=>new Promise(((t,i)=>{n.push({input:e,resolve:t,reject:i}),r.delete(s)}));return"function"==typeof e?Promise.resolve(e(i)).finally((()=>{r.delete(s)})):i(e)},async run(){let t;r.size&&await new Promise((e=>{const t=r.subscribe((()=>{r.size||(t(),e(void 0))}))}));try{if(t=await e(n.map((({input:e})=>e))),t.length!==n.length)throw new Error("run: Array returned by processor must be same size as input array.")}catch(e){for(const{reject:t}of n)t(e);throw e}let s=!0;return t.forEach(((e,t)=>{const r=n[t];var i;e?.error?(r?.reject(e.error),s=!1):r?.resolve(null!==(i=e?.output)&&void 0!==i?i:e)})),n=[],s}}}class F{constructor(...e){this.set=new Set(...e),this.subscribers=new Set}get size(){return this.set.size}add(e){return this.set.add(e),this.subscribers.forEach((e=>e())),this}delete(e){const t=this.set.delete(e);return this.subscribers.forEach((e=>e())),t}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}}const $="core";function K(e,t){return{type:"RECEIVE_USER_QUERY",users:Array.isArray(t)?t:[t],queryID:e}}function Q(e){return{type:"RECEIVE_CURRENT_USER",currentUser:e}}function Y(e){return{type:"ADD_ENTITIES",entities:e}}function H(e,t,n,r,s=!1,i,o){let a;return"postType"===e&&(n=(Array.isArray(n)?n:[n]).map((e=>"auto-draft"===e.status?{...e,title:""}:e))),a=r?function(e,t={},n,r){return{...V(e,n,r),query:t}}(n,r,i,o):V(n,i,o),{...a,kind:e,name:t,invalidateCache:s}}function z(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function W(e){return{type:"RECEIVE_CURRENT_GLOBAL_STYLES_ID",id:e}}function J(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLES",stylesheet:e,globalStyles:t}}function Z(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLE_VARIATIONS",stylesheet:e,variations:t}}function X(){return D()("wp.data.dispatch( 'core' ).receiveThemeSupports",{since:"5.9"}),{type:"DO_NOTHING"}}function ee(e,t){return D()("wp.data.dispatch( 'core' ).receiveThemeGlobalStyleRevisions()",{since:"6.5.0",alternative:"wp.data.dispatch( 'core' ).receiveRevisions"}),{type:"RECEIVE_THEME_GLOBAL_STYLE_REVISIONS",currentId:e,revisions:t}}function te(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}const ne=(e,t,n,r,{__unstableFetch:s=T(),throwOnError:i=!1}={})=>async({dispatch:o})=>{const a=(await o(Se(e))).find((n=>n.kind===e&&n.name===t));let c,l=!1;if(!a||a?.__experimentalNoFetch)return;const u=await o.__unstableAcquireStoreLock($,["entities","records",e,t,n],{exclusive:!0});try{o({type:"DELETE_ENTITY_RECORD_START",kind:e,name:t,recordId:n});let u=!1;try{let i=`${a.baseURL}/${n}`;r&&(i=(0,L.addQueryArgs)(i,r)),l=await s({path:i,method:"DELETE"}),await o(function(e,t,n,r=!1){return{type:"REMOVE_ITEMS",itemIds:Array.isArray(n)?n:[n],kind:e,name:t,invalidateCache:r}}(e,t,n,!0))}catch(e){u=!0,c=e}if(o({type:"DELETE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:n,error:c}),u&&i)throw c;return l}finally{o.__unstableReleaseStoreLock(u)}},re=(e,t,n,r,s={})=>({select:i,dispatch:o})=>{const a=i.getEntityConfig(e,t);if(!a)throw new Error(`The entity being edited (${e}, ${t}) does not have a loaded config.`);const{mergedEdits:l={}}=a,u=i.getRawEntityRecord(e,t,n),d=i.getEditedEntityRecord(e,t,n),p={kind:e,name:t,recordId:n,edits:Object.keys(r).reduce(((e,t)=>{const n=u[t],s=d[t],i=l[t]?{...s,...r[t]}:r[t];return e[t]=c()(n,i)?void 0:i,e}),{})};window.__experimentalEnableSync&&a.syncConfig||(s.undoIgnore||i.getUndoManager().addRecord([{id:{kind:e,name:t,recordId:n},changes:Object.keys(r).reduce(((e,t)=>(e[t]={from:d[t],to:r[t]},e)),{})}],s.isCached),o({type:"EDIT_ENTITY_RECORD",...p}))},se=()=>({select:e,dispatch:t})=>{const n=e.getUndoManager().undo();n&&t({type:"UNDO",record:n})},ie=()=>({select:e,dispatch:t})=>{const n=e.getUndoManager().redo();n&&t({type:"REDO",record:n})},oe=()=>({select:e})=>{e.getUndoManager().addRecord()},ae=(e,t,n,{isAutosave:r=!1,__unstableFetch:s=T(),throwOnError:i=!1}={})=>async({select:o,resolveSelect:a,dispatch:c})=>{const l=(await c(Se(e))).find((n=>n.kind===e&&n.name===t));if(!l||l?.__experimentalNoFetch)return;const u=l.key||he,d=n[u],p=await c.__unstableAcquireStoreLock($,["entities","records",e,t,d||P()],{exclusive:!0});try{for(const[r,s]of Object.entries(n))if("function"==typeof s){const i=s(o.getEditedEntityRecord(e,t,d));c.editEntityRecord(e,t,d,{[r]:i},{undoIgnore:!0}),n[r]=i}let u,p;c({type:"SAVE_ENTITY_RECORD_START",kind:e,name:t,recordId:d,isAutosave:r});let f=!1;try{const i=`${l.baseURL}${d?"/"+d:""}`,p=o.getRawEntityRecord(e,t,d);if(r){const r=o.getCurrentUser(),l=r?r.id:void 0,d=await a.getAutosave(p.type,p.id,l);let f={...p,...d,...n};if(f=Object.keys(f).reduce(((e,t)=>(["title","excerpt","content","meta"].includes(t)&&(e[t]=f[t]),e)),{status:"auto-draft"===f.status?"draft":f.status}),u=await s({path:`${i}/autosaves`,method:"POST",data:f}),p.id===u.id){let n={...p,...f,...u};n=Object.keys(n).reduce(((e,t)=>(["title","excerpt","content"].includes(t)?e[t]=n[t]:e[t]="status"===t?"auto-draft"===p.status&&"draft"===n.status?n.status:p.status:p[t],e)),{}),c.receiveEntityRecords(e,t,n,void 0,!0)}else c.receiveAutosaves(p.id,u)}else{let r=n;l.__unstablePrePersist&&(r={...r,...l.__unstablePrePersist(p,r)}),u=await s({path:i,method:d?"PUT":"POST",data:r}),c.receiveEntityRecords(e,t,u,void 0,!0,r)}}catch(e){f=!0,p=e}if(c({type:"SAVE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:d,error:p,isAutosave:r}),f&&i)throw p;return u}finally{c.__unstableReleaseStoreLock(p)}},ce=e=>async({dispatch:t})=>{const n=B(),r={saveEntityRecord:(e,r,s,i)=>n.add((n=>t.saveEntityRecord(e,r,s,{...i,__unstableFetch:n}))),saveEditedEntityRecord:(e,r,s,i)=>n.add((n=>t.saveEditedEntityRecord(e,r,s,{...i,__unstableFetch:n}))),deleteEntityRecord:(e,r,s,i,o)=>n.add((n=>t.deleteEntityRecord(e,r,s,i,{...o,__unstableFetch:n})))},s=e.map((e=>e(r))),[,...i]=await Promise.all([n.run(),...s]);return i},le=(e,t,n,r)=>async({select:s,dispatch:i})=>{if(!s.hasEditsForEntityRecord(e,t,n))return;const o=(await i(Se(e))).find((n=>n.kind===e&&n.name===t));if(!o)return;const a=o.key||he,c=s.getEntityRecordNonTransientEdits(e,t,n),l={[a]:n,...c};return await i.saveEntityRecord(e,t,l,r)},ue=(e,t,n,r,s)=>async({select:i,dispatch:o})=>{if(!i.hasEditsForEntityRecord(e,t,n))return;const a=i.getEntityRecordNonTransientEdits(e,t,n),c={};for(const e of r)N(c,e,M(a,e));const l=(await o(Se(e))).find((n=>n.kind===e&&n.name===t));return n&&(c[l?.key||he]=n),await o.saveEntityRecord(e,t,c,s)};function de(e){return D()("wp.data.dispatch( 'core' ).receiveUploadPermissions",{since:"5.9",alternative:"receiveUserPermission"}),pe("create/media",e)}function pe(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}function fe(e,t){return{type:"RECEIVE_AUTOSAVES",postId:e,autosaves:Array.isArray(t)?t:[t]}}function ye(e){return{type:"RECEIVE_NAVIGATION_FALLBACK_ID",fallbackId:e}}function Ee(e,t){return{type:"RECEIVE_DEFAULT_TEMPLATE",query:e,templateId:t}}const me=(e,t,n,r,s,i=!1,o)=>async({dispatch:a})=>{const c=(await a(Se(e))).find((n=>n.kind===e&&n.name===t));a({type:"RECEIVE_ITEM_REVISIONS",key:c&&c?.revisionKey?c.revisionKey:he,items:Array.isArray(r)?r:[r],recordKey:n,meta:o,query:s,kind:e,name:t,invalidateCache:i})},he="id",ge=["title","excerpt","content"],ve=[{label:(0,I.__)("Base"),kind:"root",name:"__unstableBase",baseURL:"/",baseURLParams:{_fields:["description","gmt_offset","home","name","site_icon","site_icon_url","site_logo","timezone_string","url"].join(",")},syncConfig:{fetch:async()=>T()({path:"/"}),applyChangesToDoc:(e,t)=>{const n=e.getMap("document");Object.entries(t).forEach((([e,t])=>{n.get(e)!==t&&n.set(e,t)}))},fromCRDTDoc:e=>e.getMap("document").toJSON()},syncObjectType:"root/base",getSyncObjectId:()=>"index"},{label:(0,I.__)("Site"),name:"site",kind:"root",baseURL:"/wp/v2/settings",getTitle:e=>{var t;return null!==(t=e?.title)&&void 0!==t?t:(0,I.__)("Site Title")},syncConfig:{fetch:async()=>T()({path:"/wp/v2/settings"}),applyChangesToDoc:(e,t)=>{const n=e.getMap("document");Object.entries(t).forEach((([e,t])=>{n.get(e)!==t&&n.set(e,t)}))},fromCRDTDoc:e=>e.getMap("document").toJSON()},syncObjectType:"root/site",getSyncObjectId:()=>"index"},{label:(0,I.__)("Post Type"),name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types",baseURLParams:{context:"edit"},syncConfig:{fetch:async e=>T()({path:`/wp/v2/types/${e}?context=edit`}),applyChangesToDoc:(e,t)=>{const n=e.getMap("document");Object.entries(t).forEach((([e,t])=>{n.get(e)!==t&&n.set(e,t)}))},fromCRDTDoc:e=>e.getMap("document").toJSON()},syncObjectType:"root/postType",getSyncObjectId:e=>e},{name:"media",kind:"root",baseURL:"/wp/v2/media",baseURLParams:{context:"edit"},plural:"mediaItems",label:(0,I.__)("Media"),rawAttributes:["caption","title","description"],supportsPagination:!0},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",baseURLParams:{context:"edit"},plural:"taxonomies",label:(0,I.__)("Taxonomy")},{name:"sidebar",kind:"root",baseURL:"/wp/v2/sidebars",baseURLParams:{context:"edit"},plural:"sidebars",transientEdits:{blocks:!0},label:(0,I.__)("Widget areas")},{name:"widget",kind:"root",baseURL:"/wp/v2/widgets",baseURLParams:{context:"edit"},plural:"widgets",transientEdits:{blocks:!0},label:(0,I.__)("Widgets")},{name:"widgetType",kind:"root",baseURL:"/wp/v2/widget-types",baseURLParams:{context:"edit"},plural:"widgetTypes",label:(0,I.__)("Widget types")},{label:(0,I.__)("User"),name:"user",kind:"root",baseURL:"/wp/v2/users",baseURLParams:{context:"edit"},plural:"users"},{name:"comment",kind:"root",baseURL:"/wp/v2/comments",baseURLParams:{context:"edit"},plural:"comments",label:(0,I.__)("Comment")},{name:"menu",kind:"root",baseURL:"/wp/v2/menus",baseURLParams:{context:"edit"},plural:"menus",label:(0,I.__)("Menu")},{name:"menuItem",kind:"root",baseURL:"/wp/v2/menu-items",baseURLParams:{context:"edit"},plural:"menuItems",label:(0,I.__)("Menu Item"),rawAttributes:["title"]},{name:"menuLocation",kind:"root",baseURL:"/wp/v2/menu-locations",baseURLParams:{context:"edit"},plural:"menuLocations",label:(0,I.__)("Menu Location"),key:"name"},{label:(0,I.__)("Global Styles"),name:"globalStyles",kind:"root",baseURL:"/wp/v2/global-styles",baseURLParams:{context:"edit"},plural:"globalStylesVariations",getTitle:e=>e?.title?.rendered||e?.title,getRevisionsUrl:(e,t)=>`/wp/v2/global-styles/${e}/revisions${t?"/"+t:""}`,supportsPagination:!0},{label:(0,I.__)("Themes"),name:"theme",kind:"root",baseURL:"/wp/v2/themes",baseURLParams:{context:"edit"},key:"stylesheet"},{label:(0,I.__)("Plugins"),name:"plugin",kind:"root",baseURL:"/wp/v2/plugins",baseURLParams:{context:"edit"},key:"plugin"},{label:(0,I.__)("Status"),name:"status",kind:"root",baseURL:"/wp/v2/statuses",baseURLParams:{context:"edit"},plural:"statuses",key:"slug"}],_e=[{kind:"postType",loadEntities:async function(){const e=await T()({path:"/wp/v2/types?context=view"});return Object.entries(null!=e?e:{}).map((([e,t])=>{var n;const r=["wp_template","wp_template_part"].includes(e),s=null!==(n=t?.rest_namespace)&&void 0!==n?n:"wp/v2";return{kind:"postType",baseURL:`/${s}/${t.rest_base}`,baseURLParams:{context:"edit"},name:e,label:t.name,transientEdits:{blocks:!0,selection:!0},mergedEdits:{meta:!0},rawAttributes:ge,getTitle:e=>{var t,n,s;return e?.title?.rendered||e?.title||(r?(n=null!==(t=e.slug)&&void 0!==t?t:"",void 0===s&&(s={}),g(n,y({delimiter:" ",transform:_},s))):String(e.id))},__unstablePrePersist:r?void 0:Re,__unstable_rest_base:t.rest_base,syncConfig:{fetch:async e=>T()({path:`/${s}/${t.rest_base}/${e}?context=edit`}),applyChangesToDoc:(e,t)=>{const n=e.getMap("document");Object.entries(t).forEach((([e,t])=>{"function"!=typeof t&&("blocks"===e&&(be.has(t)||be.set(t,Te(t)),t=be.get(t)),n.get(e)!==t&&n.set(e,t))}))},fromCRDTDoc:e=>e.getMap("document").toJSON()},syncObjectType:"postType/"+t.name,getSyncObjectId:e=>e,supportsPagination:!0,getRevisionsUrl:(e,n)=>`/${s}/${t.rest_base}/${e}/revisions${n?"/"+n:""}`,revisionKey:r?"wp_id":he}}))}},{kind:"taxonomy",loadEntities:async function(){const e=await T()({path:"/wp/v2/taxonomies?context=view"});return Object.entries(null!=e?e:{}).map((([e,t])=>{var n;return{kind:"taxonomy",baseURL:`/${null!==(n=t?.rest_namespace)&&void 0!==n?n:"wp/v2"}/${t.rest_base}`,baseURLParams:{context:"edit"},name:e,label:t.name}}))}}],Re=(e,t)=>{const n={};return"auto-draft"===e?.status&&(t.status||n.status||(n.status="draft"),t.title&&"Auto Draft"!==t.title||n.title||e?.title&&"Auto Draft"!==e?.title||(n.title="")),n},be=new WeakMap;function we(e){const t={...e};for(const[n,r]of Object.entries(e))r instanceof S.RichTextData&&(t[n]=r.valueOf());return t}function Te(e){return e.map((e=>{const{innerBlocks:t,attributes:n,...r}=e;return{...r,attributes:we(n),innerBlocks:Te(t)}}))}const Ie=(e,t,n="get",r=!1)=>{const s=ve.find((n=>n.kind===e&&n.name===t)),i="root"===e?"":b(e),o=b(t)+(r?"s":"");return`${n}${i}${r&&"plural"in s&&s?.plural?b(s.plural):o}`};const Se=e=>async({select:t,dispatch:n})=>{let r=t.getEntitiesConfig(e);if(r&&0!==r.length)return window.__experimentalEnableSync,r;const s=_e.find((t=>t.kind===e));return s?(r=await s.loadEntities(),window.__experimentalEnableSync,n(Y(r)),r):[]};const ke=function(e){return"string"==typeof e?e.split(","):Array.isArray(e)?e:null};const Oe=function(e){const t=new WeakMap;return n=>{let r;return t.has(n)?r=t.get(n):(r=e(n),null!==n&&"object"==typeof n&&t.set(n,r)),r}};const Ae=Oe((function(e){const t={stableKey:"",page:1,perPage:10,fields:null,include:null,context:"default"},n=Object.keys(e).sort();for(let i=0;i<n.length;i++){const o=n[i];let a=e[o];switch(o){case"page":t[o]=Number(a);break;case"per_page":t.perPage=Number(a);break;case"context":t.context=a;break;default:var r,s;if("_fields"===o)t.fields=null!==(r=ke(a))&&void 0!==r?r:[],a=t.fields.join();if("include"===o)"number"==typeof a&&(a=a.toString()),t.include=(null!==(s=ke(a))&&void 0!==s?s:[]).map(Number),a=t.include.join();t.stableKey+=(t.stableKey?"&":"")+(0,L.addQueryArgs)("",{[o]:a}).slice(1)}}return t}));function Ce(e){const{query:t}=e;if(!t)return"default";return Ae(t).context}function xe(e,t,n,r){var s;if(1===n&&-1===r)return t;const i=(n-1)*r,o=Math.max(null!==(s=e?.length)&&void 0!==s?s:0,i+t.length),a=new Array(o);for(let n=0;n<o;n++){const s=n>=i&&n<i+r;a[n]=s?t[n-i]:e?.[n]}return a}function Ue(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.some((t=>Number.isInteger(t)?t===+e:t===e)))))}const Pe=(0,l.compose)([d((e=>"query"in e)),p((e=>e.query?{...e,...Ae(e.query)}:e)),f("context"),f("stableKey")])(((e={},t)=>{const{type:n,page:r,perPage:s,key:i=he}=t;return"RECEIVE_ITEMS"!==n?e:{itemIds:xe(e?.itemIds||[],t.items.map((e=>e[i])),r,s),meta:t.meta}})),Le=(0,o.combineReducers)({items:function(e={},t){switch(t.type){case"RECEIVE_ITEMS":{const n=Ce(t),r=t.key||he;return{...e,[n]:{...e[n],...t.items.reduce(((t,s)=>{const i=s[r];return t[i]=function(e,t){if(!e)return t;let n=!1;const r={};for(const s in t)c()(e[s],t[s])?r[s]=e[s]:(n=!0,r[s]=t[s]);if(!n)return e;for(const t in e)r.hasOwnProperty(t)||(r[t]=e[t]);return r}(e?.[n]?.[i],s),t}),{})}}}case"REMOVE_ITEMS":return Object.fromEntries(Object.entries(e).map((([e,n])=>[e,Ue(n,t.itemIds)])))}return e},itemIsComplete:function(e={},t){switch(t.type){case"RECEIVE_ITEMS":{const n=Ce(t),{query:r,key:s=he}=t,i=r?Ae(r):{},o=!r||!Array.isArray(i.fields);return{...e,[n]:{...e[n],...t.items.reduce(((t,r)=>{const i=r[s];return t[i]=e?.[n]?.[i]||o,t}),{})}}}case"REMOVE_ITEMS":return Object.fromEntries(Object.entries(e).map((([e,n])=>[e,Ue(n,t.itemIds)])))}return e},queries:(e={},t)=>{switch(t.type){case"RECEIVE_ITEMS":return Pe(e,t);case"REMOVE_ITEMS":const n=t.itemIds.reduce(((e,t)=>(e[t]=!0,e)),{});return Object.fromEntries(Object.entries(e).map((([e,t])=>[e,Object.fromEntries(Object.entries(t).map((([e,t])=>[e,{...t,itemIds:t.itemIds.filter((e=>!n[e]))}])))])));default:return e}}});const je=e=>(t,n)=>{if("UNDO"===n.type||"REDO"===n.type){const{record:r}=n;let s=t;return r.forEach((({id:{kind:t,name:r,recordId:i},changes:o})=>{s=e(s,{type:"EDIT_ENTITY_RECORD",kind:t,name:r,recordId:i,edits:Object.entries(o).reduce(((e,[t,r])=>(e[t]="UNDO"===n.type?r.from:r.to,e)),{})})})),s}return e(t,n)};function De(e){return(0,l.compose)([je,d((t=>t.name&&t.kind&&t.name===e.name&&t.kind===e.kind)),p((t=>({key:e.key||he,...t})))])((0,o.combineReducers)({queriedData:Le,edits:(e={},t)=>{var n;switch(t.type){case"RECEIVE_ITEMS":if("default"!==(null!==(n=t?.query?.context)&&void 0!==n?n:"default"))return e;const r={...e};for(const e of t.items){const n=e[t.key],s=r[n];if(!s)continue;const i=Object.keys(s).reduce(((n,r)=>{var i;return c()(s[r],null!==(i=e[r]?.raw)&&void 0!==i?i:e[r])||t.persistedEdits&&c()(s[r],t.persistedEdits[r])||(n[r]=s[r]),n}),{});Object.keys(i).length?r[n]=i:delete r[n]}return r;case"EDIT_ENTITY_RECORD":const s={...e[t.recordId],...t.edits};return Object.keys(s).forEach((e=>{void 0===s[e]&&delete s[e]})),{...e,[t.recordId]:s}}return e},saving:(e={},t)=>{switch(t.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return{...e,[t.recordId]:{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}}}return e},deleting:(e={},t)=>{switch(t.type){case"DELETE_ENTITY_RECORD_START":case"DELETE_ENTITY_RECORD_FINISH":return{...e,[t.recordId]:{pending:"DELETE_ENTITY_RECORD_START"===t.type,error:t.error}}}return e},revisions:(e={},t)=>{if("RECEIVE_ITEM_REVISIONS"===t.type){const n=t.recordKey;delete t.recordKey;const r=Le(e[n],{...t,type:"RECEIVE_ITEMS"});return{...e,[n]:r}}return"REMOVE_ITEMS"===t.type?Object.fromEntries(Object.entries(e).filter((([e])=>!t.itemIds.some((t=>Number.isInteger(t)?t===+e:t===e))))):e}}))}const Ne=(0,o.combineReducers)({terms:function(e={},t){return"RECEIVE_TERMS"===t.type?{...e,[t.taxonomy]:t.terms}:e},users:function(e={byId:{},queries:{}},t){return"RECEIVE_USER_QUERY"===t.type?{byId:{...e.byId,...t.users.reduce(((e,t)=>({...e,[t.id]:t})),{})},queries:{...e.queries,[t.queryID]:t.users.map((e=>e.id))}}:e},currentTheme:function(e=void 0,t){return"RECEIVE_CURRENT_THEME"===t.type?t.currentTheme.stylesheet:e},currentGlobalStylesId:function(e=void 0,t){return"RECEIVE_CURRENT_GLOBAL_STYLES_ID"===t.type?t.id:e},currentUser:function(e={},t){return"RECEIVE_CURRENT_USER"===t.type?t.currentUser:e},themeGlobalStyleVariations:function(e={},t){return"RECEIVE_THEME_GLOBAL_STYLE_VARIATIONS"===t.type?{...e,[t.stylesheet]:t.variations}:e},themeBaseGlobalStyles:function(e={},t){return"RECEIVE_THEME_GLOBAL_STYLES"===t.type?{...e,[t.stylesheet]:t.globalStyles}:e},themeGlobalStyleRevisions:function(e={},t){return"RECEIVE_THEME_GLOBAL_STYLE_REVISIONS"===t.type?{...e,[t.currentId]:t.revisions}:e},taxonomies:function(e=[],t){return"RECEIVE_TAXONOMIES"===t.type?t.taxonomies:e},entities:(e={},t)=>{const n=function(e=ve,t){return"ADD_ENTITIES"===t.type?[...e,...t.entities]:e}(e.config,t);let r=e.reducer;if(!r||n!==e.config){const e=n.reduce(((e,t)=>{const{kind:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{});r=(0,o.combineReducers)(Object.entries(e).reduce(((e,[t,n])=>{const r=(0,o.combineReducers)(n.reduce(((e,t)=>({...e,[t.name]:De(t)})),{}));return e[t]=r,e}),{}))}const s=r(e.records,t);return s===e.records&&n===e.config&&r===e.reducer?e:{reducer:r,records:s,config:n}},editsReference:function(e={},t){switch(t.type){case"EDIT_ENTITY_RECORD":case"UNDO":case"REDO":return{}}return e},undoManager:function(e=(0,u.createUndoManager)()){return e},embedPreviews:function(e={},t){if("RECEIVE_EMBED_PREVIEW"===t.type){const{url:n,preview:r}=t;return{...e,[n]:r}}return e},userPermissions:function(e={},t){return"RECEIVE_USER_PERMISSION"===t.type?{...e,[t.key]:t.isAllowed}:e},autosaves:function(e={},t){if("RECEIVE_AUTOSAVES"===t.type){const{postId:n,autosaves:r}=t;return{...e,[n]:r}}return e},blockPatterns:function(e=[],t){return"RECEIVE_BLOCK_PATTERNS"===t.type?t.patterns:e},blockPatternCategories:function(e=[],t){return"RECEIVE_BLOCK_PATTERN_CATEGORIES"===t.type?t.categories:e},userPatternCategories:function(e=[],t){return"RECEIVE_USER_PATTERN_CATEGORIES"===t.type?t.patternCategories:e},navigationFallbackId:function(e=null,t){return"RECEIVE_NAVIGATION_FALLBACK_ID"===t.type?t.fallbackId:e},defaultTemplates:function(e={},t){return"RECEIVE_DEFAULT_TEMPLATE"===t.type?{...e,[JSON.stringify(t.query)]:t.templateId}:e}});var Me={};function Ve(e){return[e]}function Ge(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function qe(e,t){var n,r=t||Ve;function s(){n=new WeakMap}function i(){var t,s,i,o,a,c=arguments.length;for(o=new Array(c),i=0;i<c;i++)o[i]=arguments[i];for(t=function(e){var t,r,s,i,o,a=n,c=!0;for(t=0;t<e.length;t++){if(!(o=r=e[t])||"object"!=typeof o){c=!1;break}a.has(r)?a=a.get(r):(s=new WeakMap,a.set(r,s),a=s)}return a.has(Me)||((i=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=c,a.set(Me,i)),a.get(Me)}(a=r.apply(null,o)),t.isUniqueByDependants||(t.lastDependants&&!Ge(a,t.lastDependants,0)&&t.clear(),t.lastDependants=a),s=t.head;s;){if(Ge(s.args,o,1))return s!==t.head&&(s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=t.head,s.prev=null,t.head.prev=s,t.head=s),s.val;s=s.next}return s={val:e.apply(null,o)},o[0]=null,s.args=o,t.head&&(t.head.prev=s,s.next=t.head),t.head=s,s.val}return i.getDependants=r,i.clear=s,s(),i}var Be=n(3249),Fe=n.n(Be);const $e=new WeakMap;const Ke=qe(((e,t={})=>{let n=$e.get(e);if(n){const e=n.get(t);if(void 0!==e)return e}else n=new(Fe()),$e.set(e,n);const r=function(e,t){const{stableKey:n,page:r,perPage:s,include:i,fields:o,context:a}=Ae(t);let c;if(e.queries?.[a]?.[n]&&(c=e.queries[a][n].itemIds),!c)return null;const l=-1===s?0:(r-1)*s,u=-1===s?c.length:Math.min(l+s,c.length),d=[];for(let t=l;t<u;t++){const n=c[t];if(Array.isArray(i)&&!i.includes(n))continue;if(void 0===n)continue;if(!e.items[a]?.hasOwnProperty(n))return null;const r=e.items[a][n];let s;if(Array.isArray(o)){s={};for(let e=0;e<o.length;e++){const t=o[e].split(".");let n=r;t.forEach((e=>{n=n?.[e]})),N(s,t,n)}}else{if(!e.itemIsComplete[a]?.[n])return null;s=r}d.push(s)}return d}(e,t);return n.set(t,r),r}));function Qe(e,t={}){var n;const{stableKey:r,context:s}=Ae(t);return null!==(n=e.queries?.[s]?.[r]?.meta?.totalItems)&&void 0!==n?n:null}const Ye={},He=(0,o.createRegistrySelector)((e=>(t,n)=>e($).isResolving("getEmbedPreview",[n])));function ze(e,t){D()("select( 'core' ).getAuthors()",{since:"5.9",alternative:"select( 'core' ).getUsers({ who: 'authors' })"});const n=(0,L.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",t);return Je(e,n)}function We(e){return e.currentUser}const Je=qe(((e,t)=>{var n;return(null!==(n=e.users.queries[t])&&void 0!==n?n:[]).map((t=>e.users.byId[t]))}),((e,t)=>[e.users.queries[t],e.users.byId]));function Ze(e,t){return D()("wp.data.select( 'core' ).getEntitiesByKind()",{since:"6.0",alternative:"wp.data.select( 'core' ).getEntitiesConfig()"}),Xe(e,t)}const Xe=qe(((e,t)=>e.entities.config.filter((e=>e.kind===t))),((e,t)=>e.entities.config));function et(e,t,n){return D()("wp.data.select( 'core' ).getEntity()",{since:"6.0",alternative:"wp.data.select( 'core' ).getEntityConfig()"}),tt(e,t,n)}function tt(e,t,n){return e.entities.config?.find((e=>e.kind===t&&e.name===n))}const nt=qe(((e,t,n,r,s)=>{var i;const o=e.entities.records?.[t]?.[n]?.queriedData;if(!o)return;const a=null!==(i=s?.context)&&void 0!==i?i:"default";if(void 0===s){if(!o.itemIsComplete[a]?.[r])return;return o.items[a][r]}const c=o.items[a]?.[r];if(c&&s._fields){var l;const e={},t=null!==(l=ke(s._fields))&&void 0!==l?l:[];for(let n=0;n<t.length;n++){const r=t[n].split(".");let s=c;r.forEach((e=>{s=s?.[e]})),N(e,r,s)}return e}return c}),((e,t,n,r,s)=>{var i;const o=null!==(i=s?.context)&&void 0!==i?i:"default";return[e.entities.records?.[t]?.[n]?.queriedData?.items[o]?.[r],e.entities.records?.[t]?.[n]?.queriedData?.itemIsComplete[o]?.[r]]}));function rt(e,t,n,r){return nt(e,t,n,r)}nt.__unstableNormalizeArgs=e=>{const t=[...e],n=t?.[2];return t[2]=/^\s*\d+\s*$/.test(n)?Number(n):n,t};const st=qe(((e,t,n,r)=>{const s=nt(e,t,n,r);return s&&Object.keys(s).reduce(((r,i)=>{var o;(function(e,t){return(e.rawAttributes||[]).includes(t)})(tt(e,t,n),i)?r[i]=null!==(o=s[i]?.raw)&&void 0!==o?o:s[i]:r[i]=s[i];return r}),{})}),((e,t,n,r,s)=>{var i;const o=null!==(i=s?.context)&&void 0!==i?i:"default";return[e.entities.config,e.entities.records?.[t]?.[n]?.queriedData?.items[o]?.[r],e.entities.records?.[t]?.[n]?.queriedData?.itemIsComplete[o]?.[r]]}));function it(e,t,n,r){return Array.isArray(ot(e,t,n,r))}const ot=(e,t,n,r)=>{const s=e.entities.records?.[t]?.[n]?.queriedData;return s?Ke(s,r):null},at=(e,t,n,r)=>{const s=e.entities.records?.[t]?.[n]?.queriedData;return s?Qe(s,r):null},ct=(e,t,n,r)=>{const s=e.entities.records?.[t]?.[n]?.queriedData;if(!s)return null;if(-1===r.per_page)return 1;const i=Qe(s,r);return i?Math.ceil(i/r.per_page):i},lt=qe((e=>{const{entities:{records:t}}=e,n=[];return Object.keys(t).forEach((r=>{Object.keys(t[r]).forEach((s=>{const i=Object.keys(t[r][s].edits).filter((t=>nt(e,r,s,t)&&ft(e,r,s,t)));if(i.length){const t=tt(e,r,s);i.forEach((i=>{const o=yt(e,r,s,i);n.push({key:o?o[t.key||he]:void 0,title:t?.getTitle?.(o)||"",name:s,kind:r})}))}}))})),n}),(e=>[e.entities.records])),ut=qe((e=>{const{entities:{records:t}}=e,n=[];return Object.keys(t).forEach((r=>{Object.keys(t[r]).forEach((s=>{const i=Object.keys(t[r][s].saving).filter((t=>mt(e,r,s,t)));if(i.length){const t=tt(e,r,s);i.forEach((i=>{const o=yt(e,r,s,i);n.push({key:o?o[t.key||he]:void 0,title:t?.getTitle?.(o)||"",name:s,kind:r})}))}}))})),n}),(e=>[e.entities.records]));function dt(e,t,n,r){return e.entities.records?.[t]?.[n]?.edits?.[r]}const pt=qe(((e,t,n,r)=>{const{transientEdits:s}=tt(e,t,n)||{},i=dt(e,t,n,r)||{};return s?Object.keys(i).reduce(((e,t)=>(s[t]||(e[t]=i[t]),e)),{}):i}),((e,t,n,r)=>[e.entities.config,e.entities.records?.[t]?.[n]?.edits?.[r]]));function ft(e,t,n,r){return mt(e,t,n,r)||Object.keys(pt(e,t,n,r)).length>0}const yt=qe(((e,t,n,r)=>({...st(e,t,n,r),...dt(e,t,n,r)})),((e,t,n,r,s)=>{var i;const o=null!==(i=s?.context)&&void 0!==i?i:"default";return[e.entities.config,e.entities.records?.[t]?.[n]?.queriedData.items[o]?.[r],e.entities.records?.[t]?.[n]?.queriedData.itemIsComplete[o]?.[r],e.entities.records?.[t]?.[n]?.edits?.[r]]}));function Et(e,t,n,r){var s;const{pending:i,isAutosave:o}=null!==(s=e.entities.records?.[t]?.[n]?.saving?.[r])&&void 0!==s?s:{};return Boolean(i&&o)}function mt(e,t,n,r){var s;return null!==(s=e.entities.records?.[t]?.[n]?.saving?.[r]?.pending)&&void 0!==s&&s}function ht(e,t,n,r){var s;return null!==(s=e.entities.records?.[t]?.[n]?.deleting?.[r]?.pending)&&void 0!==s&&s}function gt(e,t,n,r){return e.entities.records?.[t]?.[n]?.saving?.[r]?.error}function vt(e,t,n,r){return e.entities.records?.[t]?.[n]?.deleting?.[r]?.error}function _t(e){D()("select( 'core' ).getUndoEdit()",{since:"6.3"})}function Rt(e){D()("select( 'core' ).getRedoEdit()",{since:"6.3"})}function bt(e){return e.undoManager.hasUndo()}function wt(e){return e.undoManager.hasRedo()}function Tt(e){return e.currentTheme?nt(e,"root","theme",e.currentTheme):null}function It(e){return e.currentGlobalStylesId}function St(e){var t;return null!==(t=Tt(e)?.theme_supports)&&void 0!==t?t:Ye}function kt(e,t){return e.embedPreviews[t]}function Ot(e,t){const n=e.embedPreviews[t],r='<a href="'+t+'">'+t+"</a>";return!!n&&n.html===r}function At(e,t,n,r){const s=[t,n,r].filter(Boolean).join("/");return e.userPermissions[s]}function Ct(e,t,n,r){const s=tt(e,t,n);if(!s)return!1;return At(e,"update",s.__unstable_rest_base,r)}function xt(e,t,n){return e.autosaves[n]}function Ut(e,t,n,r){if(void 0===r)return;const s=e.autosaves[n];return s?.find((e=>e.author===r))}const Pt=(0,o.createRegistrySelector)((e=>(t,n,r)=>e($).hasFinishedResolution("getAutosaves",[n,r])));function Lt(e){return e.editsReference}function jt(e,t){const n=ot(e,"postType","wp_template",{"find-template":t});return n?.length?yt(e,"postType","wp_template",n[0].id):null}function Dt(e){const t=Tt(e);return t?e.themeBaseGlobalStyles[t.stylesheet]:null}function Nt(e){const t=Tt(e);return t?e.themeGlobalStyleVariations[t.stylesheet]:null}function Mt(e){return e.blockPatterns}function Vt(e){return e.blockPatternCategories}function Gt(e){return e.userPatternCategories}function qt(e){D()("select( 'core' ).getCurrentThemeGlobalStylesRevisions()",{since:"6.5.0",alternative:"select( 'core' ).getRevisions( 'root', 'globalStyles', ${ recordKey } )"});const t=It(e);return t?e.themeGlobalStyleRevisions[t]:null}function Bt(e,t){return e.defaultTemplates[JSON.stringify(t)]}const Ft=(e,t,n,r,s)=>{const i=e.entities.records?.[t]?.[n]?.revisions?.[r];return i?Ke(i,s):null},$t=qe(((e,t,n,r,s,i)=>{var o;const a=e.entities.records?.[t]?.[n]?.revisions?.[r];if(!a)return;const c=null!==(o=i?.context)&&void 0!==o?o:"default";if(void 0===i){if(!a.itemIsComplete[c]?.[s])return;return a.items[c][s]}const l=a.items[c]?.[s];if(l&&i._fields){var u;const e={},t=null!==(u=ke(i._fields))&&void 0!==u?u:[];for(let n=0;n<t.length;n++){const r=t[n].split(".");let s=l;r.forEach((e=>{s=s?.[e]})),N(e,r,s)}return e}return l}),((e,t,n,r,s,i)=>{var o;const a=null!==(o=i?.context)&&void 0!==o?o:"default";return[e.entities.records?.[t]?.[n]?.revisions?.[r]?.items?.[a]?.[s],e.entities.records?.[t]?.[n]?.revisions?.[r]?.itemIsComplete?.[a]?.[s]]}));function Kt(e){return e.undoManager}function Qt(e){return e.navigationFallbackId}const Yt=(0,o.createRegistrySelector)((e=>qe(((t,n)=>e($).getBlockPatterns().filter((({postTypes:e})=>!e||Array.isArray(e)&&e.includes(n)))),(()=>[e($).getBlockPatterns()]))));function Ht(e,t){return 0===t?e.toLowerCase():R(e,t)}function zt(e,t){return void 0===t&&(t={}),b(e,y({transform:Ht},t))}const Wt=window.wp.htmlEntities,Jt=e=>(...t)=>async({resolveSelect:n})=>{await n[e](...t)},Zt=async(e,t={},n={})=>{const{isInitialSuggestions:r=!1,initialSuggestionsSearchOptions:s}=t,{disablePostFormats:i=!1}=n;let{type:o,subtype:a,page:c,perPage:l=(r?3:20)}=t;const u=[];return r&&s&&(o=s.type||o,a=s.subtype||a,c=s.page||c,l=s.perPage||l),o&&"post"!==o||u.push(T()({path:(0,L.addQueryArgs)("/wp/v2/search",{search:e,page:c,per_page:l,type:"post",subtype:a})}).then((e=>e.map((e=>({...e,meta:{kind:"post-type",subtype:a}}))))).catch((()=>[]))),o&&"term"!==o||u.push(T()({path:(0,L.addQueryArgs)("/wp/v2/search",{search:e,page:c,per_page:l,type:"term",subtype:a})}).then((e=>e.map((e=>({...e,meta:{kind:"taxonomy",subtype:a}}))))).catch((()=>[]))),i||o&&"post-format"!==o||u.push(T()({path:(0,L.addQueryArgs)("/wp/v2/search",{search:e,page:c,per_page:l,type:"post-format",subtype:a})}).then((e=>e.map((e=>({...e,meta:{kind:"taxonomy",subtype:a}}))))).catch((()=>[]))),o&&"attachment"!==o||u.push(T()({path:(0,L.addQueryArgs)("/wp/v2/media",{search:e,page:c,per_page:l})}).then((e=>e.map((e=>({...e,meta:{kind:"media"}}))))).catch((()=>[]))),Promise.all(u).then((e=>e.reduce(((e,t)=>e.concat(t)),[]).filter((e=>!!e.id)).slice(0,l).map((e=>{const t="attachment"===e.type;return{id:e.id,url:t?e.source_url:e.url,title:(0,Wt.decodeEntities)(t?e.title.rendered:e.title||"")||(0,I.__)("(no title)"),type:e.subtype||e.type,kind:e?.meta?.kind}}))))},Xt=new Map,en=async(e,t={})=>{const n={url:(0,L.prependHTTP)(e)};if(!(0,L.isURL)(e))return Promise.reject(`${e} is not a valid URL.`);const r=(0,L.getProtocol)(e);return r&&(0,L.isValidProtocol)(r)&&r.startsWith("http")&&/^https?:\/\/[^\/\s]/i.test(e)?Xt.has(e)?Xt.get(e):T()({path:(0,L.addQueryArgs)("/wp-block-editor/v1/url-details",n),...t}).then((t=>(Xt.set(e,t),t))):Promise.reject(`${e} does not have a valid protocol. URLs must be "http" based`)};async function tn(){const e=await T()({path:"/wp/v2/block-patterns/patterns"});return e?e.map((e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[zt(e),t]))))):[]}const nn=e=>async({dispatch:t})=>{const n=(0,L.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",e),r=await T()({path:n});t.receiveUserQuery(n,r)},rn=()=>async({dispatch:e})=>{const t=await T()({path:"/wp/v2/users/me"});e.receiveCurrentUser(t)},sn=(e,t,n="",r)=>async({select:s,dispatch:i})=>{const o=(await i(Se(e))).find((n=>n.name===t&&n.kind===e));if(!o||o?.__experimentalNoFetch)return;const a=await i.__unstableAcquireStoreLock($,["entities","records",e,t,n],{exclusive:!1});try{if(window.__experimentalEnableSync&&o.syncConfig&&!r)0;else{void 0!==r&&r._fields&&(r={...r,_fields:[...new Set([...ke(r._fields)||[],o.key||he])].join()});const a=(0,L.addQueryArgs)(o.baseURL+(n?"/"+n:""),{...o.baseURLParams,...r});if(void 0!==r){r={...r,include:[n]};if(s.hasEntityRecords(e,t,r))return}const c=await T()({path:a});i.receiveEntityRecords(e,t,c,r)}}finally{i.__unstableReleaseStoreLock(a)}},on=Jt("getEntityRecord"),an=Jt("getEntityRecord"),cn=(e,t,n={})=>async({dispatch:r})=>{const s=(await r(Se(e))).find((n=>n.name===t&&n.kind===e));if(!s||s?.__experimentalNoFetch)return;const i=await r.__unstableAcquireStoreLock($,["entities","records",e,t],{exclusive:!1});try{n._fields&&(n={...n,_fields:[...new Set([...ke(n._fields)||[],s.key||he])].join()});const i=(0,L.addQueryArgs)(s.baseURL,{...s.baseURLParams,...n});let o,a;if(s.supportsPagination&&-1!==n.per_page){const e=await T()({path:i,parse:!1});o=Object.values(await e.json()),a={totalItems:parseInt(e.headers.get("X-WP-Total"))}}else o=Object.values(await T()({path:i}));if(n._fields&&(o=o.map((e=>(n._fields.split(",").forEach((t=>{e.hasOwnProperty(t)||(e[t]=void 0)})),e)))),r.receiveEntityRecords(e,t,o,n,!1,void 0,a),!n?._fields&&!n.context){const n=s.key||he,i=o.filter((e=>e[n])).map((r=>[e,t,r[n]]));r({type:"START_RESOLUTIONS",selectorName:"getEntityRecord",args:i}),r({type:"FINISH_RESOLUTIONS",selectorName:"getEntityRecord",args:i})}}finally{r.__unstableReleaseStoreLock(i)}};cn.shouldInvalidate=(e,t,n)=>("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&t===e.kind&&n===e.name;const ln=()=>async({dispatch:e,resolveSelect:t})=>{const n=await t.getEntityRecords("root","theme",{status:"active"});e.receiveCurrentTheme(n[0])},un=Jt("getCurrentTheme"),dn=e=>async({dispatch:t})=>{try{const n=await T()({path:(0,L.addQueryArgs)("/oembed/1.0/proxy",{url:e})});t.receiveEmbedPreview(e,n)}catch(n){t.receiveEmbedPreview(e,!1)}},pn=(e,t,n)=>async({dispatch:r,registry:s})=>{const{hasStartedResolution:i}=s.select($),o=n?`${t}/${n}`:t,a=["create","read","update","delete"];if(!a.includes(e))throw new Error(`'${e}' is not a valid action.`);for(const r of a){if(r===e)continue;if(i("canUser",[r,t,n]))return}let c;try{c=await T()({path:`/wp/v2/${o}`,method:"OPTIONS",parse:!1})}catch(e){return}const l=c.headers?.get("allow"),u=l?.allow||l||"",d={},p={create:"POST",read:"GET",update:"PUT",delete:"DELETE"};for(const[e,t]of Object.entries(p))d[e]=u.includes(t);for(const e of a)r.receiveUserPermission(`${e}/${o}`,d[e])},fn=(e,t,n)=>async({dispatch:r})=>{const s=(await r(Se(e))).find((n=>n.name===t&&n.kind===e));if(!s)return;const i=s.__unstable_rest_base;await r(pn("update",i,n))},yn=(e,t)=>async({dispatch:n,resolveSelect:r})=>{const{rest_base:s,rest_namespace:i="wp/v2"}=await r.getPostType(e),o=await T()({path:`/${i}/${s}/${t}/autosaves?context=edit`});o&&o.length&&n.receiveAutosaves(t,o)},En=(e,t)=>async({resolveSelect:n})=>{await n.getAutosaves(e,t)},mn=e=>async({dispatch:t,resolveSelect:n})=>{let r;try{r=await T()({url:(0,L.addQueryArgs)(e,{"_wp-find-template":!0})}).then((({data:e})=>e))}catch(e){}if(!r)return;const s=await n.getEntityRecord("postType","wp_template",r.id);s&&t.receiveEntityRecords("postType","wp_template",[s],{"find-template":e})};mn.shouldInvalidate=e=>("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&"postType"===e.kind&&"wp_template"===e.name;const hn=()=>async({dispatch:e,resolveSelect:t})=>{const n=await t.getEntityRecords("root","theme",{status:"active"}),r=n?.[0]?._links?.["wp:user-global-styles"]?.[0]?.href;if(r){const t=await T()({url:r});e.__experimentalReceiveCurrentGlobalStylesId(t.id)}},gn=()=>async({resolveSelect:e,dispatch:t})=>{const n=await e.getCurrentTheme(),r=await T()({path:`/wp/v2/global-styles/themes/${n.stylesheet}`});t.__experimentalReceiveThemeBaseGlobalStyles(n.stylesheet,r)},vn=()=>async({resolveSelect:e,dispatch:t})=>{const n=await e.getCurrentTheme(),r=await T()({path:`/wp/v2/global-styles/themes/${n.stylesheet}/variations`});t.__experimentalReceiveThemeGlobalStyleVariations(n.stylesheet,r)},_n=()=>async({resolveSelect:e,dispatch:t})=>{const n=await e.__experimentalGetCurrentGlobalStylesId(),r=n?await e.getEntityRecord("root","globalStyles",n):void 0,s=r?._links?.["version-history"]?.[0]?.href;if(s){const e=await T()({url:s}),r=e?.map((e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[zt(e),t])))));t.receiveThemeGlobalStyleRevisions(n,r)}};_n.shouldInvalidate=e=>"SAVE_ENTITY_RECORD_FINISH"===e.type&&"root"===e.kind&&!e.error&&"globalStyles"===e.name;const Rn=()=>async({dispatch:e})=>{e({type:"RECEIVE_BLOCK_PATTERNS",patterns:await tn()})},bn=()=>async({dispatch:e})=>{e({type:"RECEIVE_BLOCK_PATTERN_CATEGORIES",categories:await T()({path:"/wp/v2/block-patterns/categories"})})},wn=()=>async({dispatch:e,resolveSelect:t})=>{const n=await t.getEntityRecords("taxonomy","wp_pattern_category",{per_page:-1,_fields:"id,name,description,slug",context:"view"});e({type:"RECEIVE_USER_PATTERN_CATEGORIES",patternCategories:n?.map((e=>({...e,label:(0,Wt.decodeEntities)(e.name),name:e.slug})))||[]})},Tn=()=>async({dispatch:e,select:t})=>{const n=await T()({path:(0,L.addQueryArgs)("/wp-block-editor/v1/navigation-fallback",{_embed:!0})}),r=n?._embedded?.self;if(e.receiveNavigationFallbackId(n?.id),r){const s=!t.getEntityRecord("postType","wp_navigation",n.id);e.receiveEntityRecords("postType","wp_navigation",r,void 0,s),e.finishResolution("getEntityRecord",["postType","wp_navigation",n.id])}},In=e=>async({dispatch:t})=>{const n=await T()({path:(0,L.addQueryArgs)("/wp/v2/templates/lookup",e)});n&&t.receiveDefaultTemplateId(e,n.id)},Sn=(e,t,n,r={})=>async({dispatch:s})=>{const i=(await s(Se(e))).find((n=>n.name===t&&n.kind===e));if(!i||i?.__experimentalNoFetch)return;r._fields&&(r={...r,_fields:[...new Set([...ke(r._fields)||[],i.revisionKey||he])].join()});const o=(0,L.addQueryArgs)(i.getRevisionsUrl(n),r);let a,c;const l={},u=i.supportsPagination&&-1!==r.per_page;try{c=await T()({path:o,parse:!u})}catch(e){return}if(c&&(u?(a=Object.values(await c.json()),l.totalItems=parseInt(c.headers.get("X-WP-Total"))):a=Object.values(c),r._fields&&(a=a.map((e=>(r._fields.split(",").forEach((t=>{e.hasOwnProperty(t)||(e[t]=void 0)})),e)))),s.receiveRevisions(e,t,n,a,r,!1,l),!r?._fields&&!r.context)){const r=i.key||he,o=a.filter((e=>e[r])).map((s=>[e,t,n,s[r]]));s({type:"START_RESOLUTIONS",selectorName:"getRevision",args:o}),s({type:"FINISH_RESOLUTIONS",selectorName:"getRevision",args:o})}};Sn.shouldInvalidate=(e,t,n,r)=>"SAVE_ENTITY_RECORD_FINISH"===e.type&&n===e.name&&t===e.kind&&!e.error&&r===e.recordId;const kn=(e,t,n,r,s)=>async({dispatch:i})=>{const o=(await i(Se(e))).find((n=>n.name===t&&n.kind===e));if(!o||o?.__experimentalNoFetch)return;void 0!==s&&s._fields&&(s={...s,_fields:[...new Set([...ke(s._fields)||[],o.revisionKey||he])].join()});const a=(0,L.addQueryArgs)(o.getRevisionsUrl(n,r),s);let c;try{c=await T()({path:a})}catch(e){return}c&&i.receiveRevisions(e,t,n,c,s)};function On(e,t){const n={...e};let r=n;for(const e of t)r.children={...r.children,[e]:{locks:[],children:{},...r.children[e]}},r=r.children[e];return n}function An(e,t){let n=e;for(const e of t){const t=n.children[e];if(!t)return null;n=t}return n}function Cn({exclusive:e},t){return!(!e||!t.length)||!(e||!t.filter((e=>e.exclusive)).length)}const xn={requests:[],tree:{locks:[],children:{}}};function Un(e=xn,t){switch(t.type){case"ENQUEUE_LOCK_REQUEST":{const{request:n}=t;return{...e,requests:[n,...e.requests]}}case"GRANT_LOCK_REQUEST":{const{lock:n,request:r}=t,{store:s,path:i}=r,o=[s,...i],a=On(e.tree,o),c=An(a,o);return c.locks=[...c.locks,n],{...e,requests:e.requests.filter((e=>e!==r)),tree:a}}case"RELEASE_LOCK":{const{lock:n}=t,r=[n.store,...n.path],s=On(e.tree,r),i=An(s,r);return i.locks=i.locks.filter((e=>e!==n)),{...e,tree:s}}}return e}function Pn(e,t,n,{exclusive:r}){const s=[t,...n],i=e.tree;for(const e of function*(e,t){let n=e;yield n;for(const e of t){const t=n.children[e];if(!t)break;yield t,n=t}}(i,s))if(Cn({exclusive:r},e.locks))return!1;const o=An(i,s);if(!o)return!0;for(const e of function*(e){const t=Object.values(e.children);for(;t.length;){const e=t.pop();yield e,t.push(...Object.values(e.children))}}(o))if(Cn({exclusive:r},e.locks))return!1;return!0}function Ln(){let e=Un(void 0,{type:"@@INIT"});function t(){for(const t of function(e){return e.requests}(e)){const{store:n,path:r,exclusive:s,notifyAcquired:i}=t;if(Pn(e,n,r,{exclusive:s})){const o={store:n,path:r,exclusive:s};e=Un(e,{type:"GRANT_LOCK_REQUEST",lock:o,request:t}),i(o)}}}return{acquire:function(n,r,s){return new Promise((i=>{e=Un(e,{type:"ENQUEUE_LOCK_REQUEST",request:{store:n,path:r,exclusive:s,notifyAcquired:i}}),t()}))},release:function(n){e=Un(e,{type:"RELEASE_LOCK",lock:n}),t()}}}function jn(){const e=Ln();return{__unstableAcquireStoreLock:function(t,n,{exclusive:r}){return()=>e.acquire(t,n,r)},__unstableReleaseStoreLock:function(t){return()=>e.release(t)}}}const Dn=window.wp.privateApis,{lock:Nn,unlock:Mn}=(0,Dn.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/core-data"),Vn=window.React,Gn=window.wp.element,qn=window.wp.blocks,Bn=window.wp.blockEditor;let Fn;const $n=new WeakMap;const Kn=new WeakMap;function Qn(e){if(!Kn.has(e)){const t=[];for(const n of function(e){if(Fn||(Fn=Mn(Bn.privateApis)),!$n.has(e)){const t=Fn.getRichTextValues([e]);$n.set(e,t)}return $n.get(e)}(e))n&&n.replacements.forEach((({type:e,attributes:n})=>{"core/footnote"===e&&t.push(n["data-fn"])}));Kn.set(e,t)}return Kn.get(e)}let Yn={};function Hn(e,t){const n={blocks:e};if(!t)return n;if(void 0===t.footnotes)return n;const r=function(e){return e.flatMap(Qn)}(e),s=t.footnotes?JSON.parse(t.footnotes):[];if(s.map((e=>e.id)).join("")===r.join(""))return n;const i=r.map((e=>s.find((t=>t.id===e))||Yn[e]||{id:e,content:""}));function o(e){if(!e||Array.isArray(e)||"object"!=typeof e)return e;e={...e};for(const t in e){const n=e[t];if(Array.isArray(n)){e[t]=n.map(o);continue}if("string"!=typeof n&&!(n instanceof S.RichTextData))continue;const s="string"==typeof n?S.RichTextData.fromHTMLString(n):new S.RichTextData(n);s.replacements.forEach((e=>{if("core/footnote"===e.type){const t=e.attributes["data-fn"],n=r.indexOf(t),s=(0,S.create)({html:e.innerHTML});s.text=String(n+1),s.formats=Array.from({length:s.text.length},(()=>s.formats[0])),s.replacements=Array.from({length:s.text.length},(()=>s.replacements[0])),e.innerHTML=(0,S.toHTMLString)({value:s})}})),e[t]="string"==typeof n?s.toHTMLString():s}return e}const a=function e(t){return t.map((t=>({...t,attributes:o(t.attributes),innerBlocks:e(t.innerBlocks)})))}(e);return Yn={...Yn,...s.reduce(((e,t)=>(r.includes(t.id)||(e[t.id]=t),e)),{})},{meta:{...t,footnotes:JSON.stringify(i)},blocks:a}}const zn=[],Wn={...ve.reduce(((e,t)=>(e[t.kind]||(e[t.kind]={}),e[t.kind][t.name]={context:(0,Gn.createContext)(void 0)},e)),{}),..._e.reduce(((e,t)=>(e[t.kind]={},e)),{})},Jn=(e,t)=>{if(!Wn[e])throw new Error(`Missing entity config for kind: ${e}.`);return Wn[e][t]||(Wn[e][t]={context:(0,Gn.createContext)(void 0)}),Wn[e][t].context};function Zn({kind:e,type:t,id:n,children:r}){const s=Jn(e,t).Provider;return(0,Vn.createElement)(s,{value:n},r)}function Xn(e,t){return(0,Gn.useContext)(Jn(e,t))}function er(e,t,n,r){const s=Xn(e,t),i=null!=r?r:s,{value:a,fullValue:c}=(0,o.useSelect)((r=>{const{getEntityRecord:s,getEditedEntityRecord:o}=r($),a=s(e,t,i),c=o(e,t,i);return a&&c?{value:c[n],fullValue:a[n]}:{}}),[e,t,i,n]),{editEntityRecord:l}=(0,o.useDispatch)($);return[a,(0,Gn.useCallback)((r=>{l(e,t,i,{[n]:r})}),[l,e,t,i,n]),c]}const tr=new WeakMap;function nr(e,t,{id:n}={}){const r=Xn(e,t),s=null!=n?n:r,{getEntityRecord:i,getEntityRecordEdits:a}=(0,o.useSelect)($),{content:c,editedBlocks:l,meta:u}=(0,o.useSelect)((n=>{if(!s)return{};const{getEditedEntityRecord:r}=n($),i=r(e,t,s);return{editedBlocks:i.blocks,content:i.content,meta:i.meta}}),[e,t,s]),{__unstableCreateUndoLevel:d,editEntityRecord:p}=(0,o.useDispatch)($),f=(0,Gn.useMemo)((()=>{if(!s)return;if(l)return l;if(!c||"string"!=typeof c)return zn;const n=a(e,t,s),r=!n||!Object.keys(n).length?i(e,t,s):n;let o=tr.get(r);return o||(o=(0,qn.parse)(c),tr.set(r,o)),o}),[e,t,s,l,c,i,a]),y=(0,Gn.useCallback)((e=>Hn(e,u)),[u]),E=(0,Gn.useCallback)(((n,r)=>{if(f===n)return d(e,t,s);const{selection:i,...o}=r,a={selection:i,content:({blocks:e=[]})=>(0,qn.__unstableSerializeAndClean)(e),...y(n)};p(e,t,s,a,{isCached:!1,...o})}),[e,t,s,f,y,d,p]),m=(0,Gn.useCallback)(((n,r)=>{const{selection:i,...o}=r,a={selection:i,...y(n)};p(e,t,s,a,{isCached:!0,...o})}),[e,t,s,y,p]);return[f,m,E]}const rr=function(e,t){var n,r,s=0;function i(){var i,o,a=n,c=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(o=0;o<c;o++)if(a.args[o]!==arguments[o]){a=a.next;continue e}return a!==n&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=n,a.prev=null,n.prev=a,n=a),a.val}a=a.next}for(i=new Array(c),o=0;o<c;o++)i[o]=arguments[o];return a={args:i,val:e.apply(null,i)},n?(n.prev=a,a.next=n):r=a,s===t.maxSize?(r=r.prev).next=null:s++,n=a,a.val}return t=t||{},i.clear=function(){n=null,r=null,s=0},i};let sr=function(e){return e.Idle="IDLE",e.Resolving="RESOLVING",e.Error="ERROR",e.Success="SUCCESS",e}({});const ir=["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"];function or(e,t){return(0,o.useSelect)(((t,n)=>e((e=>ar(t(e))),n)),t)}const ar=rr((e=>{const t={};for(const n in e)ir.includes(n)||Object.defineProperty(t,n,{get:()=>(...t)=>{const{getIsResolving:r,hasFinishedResolution:s}=e,i=!!r(n,t),o=!i&&s(n,t),a=e[n](...t);let c;return c=i?sr.Resolving:o?a?sr.Success:sr.Error:sr.Idle,{data:a,status:c,isResolving:i,hasResolved:o}}});return t})),cr={};function lr(e,t,n,r={enabled:!0}){const{editEntityRecord:s,saveEditedEntityRecord:i}=(0,o.useDispatch)(vr),a=(0,Gn.useMemo)((()=>({edit:(r,i={})=>s(e,t,n,r,i),save:(r={})=>i(e,t,n,{throwOnError:!0,...r})})),[s,e,t,n,i]),{editedRecord:c,hasEdits:l,edits:u}=(0,o.useSelect)((s=>r.enabled?{editedRecord:s(vr).getEditedEntityRecord(e,t,n),hasEdits:s(vr).hasEditsForEntityRecord(e,t,n),edits:s(vr).getEntityRecordNonTransientEdits(e,t,n)}:{editedRecord:cr,hasEdits:!1,edits:cr}),[e,t,n,r.enabled]),{data:d,...p}=or((s=>r.enabled?s(vr).getEntityRecord(e,t,n):{data:null}),[e,t,n,r.enabled]);return{record:d,editedRecord:c,hasEdits:l,edits:u,...p,...a}}function ur(e,t,n,r){return D()("wp.data.__experimentalUseEntityRecord",{alternative:"wp.data.useEntityRecord",since:"6.1"}),lr(e,t,n,r)}const dr=[];function pr(e,t,n={},r={enabled:!0}){const s=(0,L.addQueryArgs)("",n),{data:i,...a}=or((s=>r.enabled?s(vr).getEntityRecords(e,t,n):{data:dr}),[e,t,s,r.enabled]),{totalItems:c,totalPages:l}=(0,o.useSelect)((s=>r.enabled?{totalItems:s(vr).getEntityRecordsTotalItems(e,t,n),totalPages:s(vr).getEntityRecordsTotalPages(e,t,n)}:{totalItems:null,totalPages:null}),[e,t,s,r.enabled]);return{records:i,totalItems:c,totalPages:l,...a}}function fr(e,t,n,r){return D()("wp.data.__experimentalUseEntityRecords",{alternative:"wp.data.useEntityRecords",since:"6.1"}),pr(e,t,n,r)}function yr(e,t){return or((n=>{const{canUser:r}=n(vr),s=r("create",e);if(!t){const t=r("read",e),n=s.isResolving||t.isResolving,i=s.hasResolved&&t.hasResolved;let o=sr.Idle;return n?o=sr.Resolving:i&&(o=sr.Success),{status:o,isResolving:n,hasResolved:i,canCreate:s.hasResolved&&s.data,canRead:t.hasResolved&&t.data}}const i=r("read",e,t),o=r("update",e,t),a=r("delete",e,t),c=i.isResolving||s.isResolving||o.isResolving||a.isResolving,l=i.hasResolved&&s.hasResolved&&o.hasResolved&&a.hasResolved;let u=sr.Idle;return c?u=sr.Resolving:l&&(u=sr.Success),{status:u,isResolving:c,hasResolved:l,canRead:l&&i.data,canCreate:l&&s.data,canUpdate:l&&o.data,canDelete:l&&a.data}}),[e,t])}function Er(e,t){return D()("wp.data.__experimentalUseResourcePermissions",{alternative:"wp.data.useResourcePermissions",since:"6.1"}),yr(e,t)}const mr=ve.reduce(((e,t)=>{const{kind:n,name:r}=t;return e[Ie(n,r)]=(e,t,s)=>nt(e,n,r,t,s),e[Ie(n,r,"get",!0)]=(e,t)=>ot(e,n,r,t),e}),{}),hr=ve.reduce(((e,t)=>{const{kind:n,name:r}=t;e[Ie(n,r)]=(e,t)=>sn(n,r,e,t);const s=Ie(n,r,"get",!0);return e[s]=(...e)=>cn(n,r,...e),e[s].shouldInvalidate=e=>cn.shouldInvalidate(e,n,r),e}),{}),gr=ve.reduce(((e,t)=>{const{kind:n,name:r}=t;return e[Ie(n,r,"save")]=(e,t)=>ae(n,r,e,t),e[Ie(n,r,"delete")]=(e,t,s)=>ne(n,r,e,t,s),e}),{}),vr=(0,o.createReduxStore)($,{reducer:Ne,actions:{...e,...gr,...jn()},selectors:{...t,...mr},resolvers:{...i,...hr}});Mn(vr).registerPrivateSelectors(s),(0,o.register)(vr)})(),(window.wp=window.wp||{}).coreData=r})(); \ No newline at end of file
+(()=>{"use strict";var e={6689:(e,t,r)=>{r.d(t,{createUndoManager:()=>a});var n=r(923),s=r.n(n);function i(e,t){const r={...e};return Object.entries(t).forEach((([e,t])=>{r[e]?r[e]={...r[e],to:t.to}:r[e]=t})),r}const o=(e,t)=>{const r=e?.findIndex((({id:e})=>"string"==typeof e?e===t.id:s()(e,t.id))),n=[...e];return-1!==r?n[r]={id:t.id,changes:i(n[r].changes,t.changes)}:n.push(t),n};function a(){let e=[],t=[],r=0;const n=()=>{e=e.slice(0,r||void 0),r=0},i=()=>{var r;const n=0===e.length?0:e.length-1;let s=null!==(r=e[n])&&void 0!==r?r:[];t.forEach((e=>{s=o(s,e)})),t=[],e[n]=s};return{addRecord(r,a=!1){const c=!r||(e=>!e.filter((({changes:e})=>Object.values(e).some((({from:e,to:t})=>"function"!=typeof e&&"function"!=typeof t&&!s()(e,t))))).length)(r);if(a){if(c)return;r.forEach((e=>{t=o(t,e)}))}else{if(n(),t.length&&i(),c)return;e.push(r)}},undo(){t.length&&(n(),i());const s=e[e.length-1+r];if(s)return r-=1,s},redo(){const t=e[e.length+r];if(t)return r+=1,t},hasUndo:()=>!!e[e.length-1+r],hasRedo:()=>!!e[e.length+r]}}},3249:e=>{function t(e){return t="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},t(e)}function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t){var r=e._map,n=e._arrayTreeMap,s=e._objectTreeMap;if(r.has(t))return r.get(t);for(var i=Object.keys(t).sort(),o=Array.isArray(t)?n:s,a=0;a<i.length;a++){var c=i[a];if(void 0===(o=o.get(c)))return;var l=t[c];if(void 0===(o=o.get(l)))return}var u=o.get("_ekm_value");return u?(r.delete(u[0]),u[0]=t,o.set("_ekm_value",u),r.set(t,u),u):void 0}var s=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clear(),t instanceof e){var r=[];t.forEach((function(e,t){r.push([t,e])})),t=r}if(null!=t)for(var n=0;n<t.length;n++)this.set(t[n][0],t[n][1])}var s,i,o;return s=e,i=[{key:"set",value:function(r,n){if(null===r||"object"!==t(r))return this._map.set(r,n),this;for(var s=Object.keys(r).sort(),i=[r,n],o=Array.isArray(r)?this._arrayTreeMap:this._objectTreeMap,a=0;a<s.length;a++){var c=s[a];o.has(c)||o.set(c,new e),o=o.get(c);var l=r[c];o.has(l)||o.set(l,new e),o=o.get(l)}var u=o.get("_ekm_value");return u&&this._map.delete(u[0]),o.set("_ekm_value",i),this._map.set(r,i),this}},{key:"get",value:function(e){if(null===e||"object"!==t(e))return this._map.get(e);var r=n(this,e);return r?r[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==t(e)?this._map.has(e):void 0!==n(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(s,i){null!==i&&"object"===t(i)&&(s=s[1]),e.call(n,s,i,r)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}],i&&r(s.prototype,i),o&&r(s,o),e}();e.exports=s},7734:e=>{e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,s,i;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(s=n;0!=s--;)if(!e(t[s],r[s]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(s of t.entries())if(!r.has(s[0]))return!1;for(s of t.entries())if(!e(s[1],r.get(s[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(s of t.entries())if(!r.has(s[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if((n=t.length)!=r.length)return!1;for(s=n;0!=s--;)if(t[s]!==r[s])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(s=n;0!=s--;)if(!Object.prototype.hasOwnProperty.call(r,i[s]))return!1;for(s=n;0!=s--;){var o=i[s];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}},923:e=>{e.exports=window.wp.isShallowEqual}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{EntityProvider:()=>Qr,__experimentalFetchLinkSuggestions:()=>Ht,__experimentalFetchUrlData:()=>Wt,__experimentalUseEntityRecord:()=>sn,__experimentalUseEntityRecords:()=>cn,__experimentalUseResourcePermissions:()=>un,fetchBlockPatterns:()=>Jt,store:()=>En,useEntityBlockEditor:()=>Wr,useEntityId:()=>Yr,useEntityProp:()=>Hr,useEntityRecord:()=>nn,useEntityRecords:()=>an,useResourcePermissions:()=>ln});var e={};r.r(e),r.d(e,{__experimentalBatch:()=>ce,__experimentalReceiveCurrentGlobalStylesId:()=>W,__experimentalReceiveThemeBaseGlobalStyles:()=>J,__experimentalReceiveThemeGlobalStyleVariations:()=>X,__experimentalSaveSpecifiedEntityEdits:()=>ue,__unstableCreateUndoLevel:()=>oe,addEntities:()=>Y,deleteEntityRecord:()=>re,editEntityRecord:()=>ne,receiveAutosaves:()=>fe,receiveCurrentTheme:()=>z,receiveCurrentUser:()=>Q,receiveDefaultTemplateId:()=>Ee,receiveEmbedPreview:()=>te,receiveEntityRecords:()=>H,receiveNavigationFallbackId:()=>ye,receiveRevisions:()=>me,receiveThemeGlobalStyleRevisions:()=>ee,receiveThemeSupports:()=>Z,receiveUploadPermissions:()=>de,receiveUserPermission:()=>pe,receiveUserQuery:()=>K,redo:()=>ie,saveEditedEntityRecord:()=>le,saveEntityRecord:()=>ae,undo:()=>se});var t={};r.r(t),r.d(t,{__experimentalGetCurrentGlobalStylesId:()=>Rt,__experimentalGetCurrentThemeBaseGlobalStyles:()=>xt,__experimentalGetCurrentThemeGlobalStylesVariations:()=>Pt,__experimentalGetDirtyEntityRecords:()=>it,__experimentalGetEntitiesBeingSaved:()=>ot,__experimentalGetEntityRecordNoResolver:()=>Ze,__experimentalGetTemplateForLink:()=>Ut,canUser:()=>Tt,canUserEditEntityRecord:()=>It,getAuthors:()=>Ke,getAutosave:()=>Ot,getAutosaves:()=>kt,getBlockPatternCategories:()=>jt,getBlockPatterns:()=>Lt,getCurrentTheme:()=>_t,getCurrentThemeGlobalStylesRevisions:()=>Dt,getCurrentUser:()=>Qe,getDefaultTemplateId:()=>Mt,getEditedEntityRecord:()=>ut,getEmbedPreview:()=>wt,getEntitiesByKind:()=>He,getEntitiesConfig:()=>ze,getEntity:()=>We,getEntityConfig:()=>Je,getEntityRecord:()=>Xe,getEntityRecordEdits:()=>at,getEntityRecordNonTransientEdits:()=>ct,getEntityRecords:()=>rt,getEntityRecordsTotalItems:()=>nt,getEntityRecordsTotalPages:()=>st,getLastEntityDeleteError:()=>Et,getLastEntitySaveError:()=>yt,getRawEntityRecord:()=>et,getRedoEdit:()=>gt,getReferenceByDistinctEdits:()=>At,getRevision:()=>Gt,getRevisions:()=>Vt,getThemeSupports:()=>bt,getUndoEdit:()=>mt,getUserPatternCategories:()=>Nt,getUserQueryResults:()=>Ye,hasEditsForEntityRecord:()=>lt,hasEntityRecords:()=>tt,hasFetchedAutosaves:()=>Ct,hasRedo:()=>vt,hasUndo:()=>ht,isAutosavingEntityRecord:()=>dt,isDeletingEntityRecord:()=>ft,isPreviewEmbedFallback:()=>St,isRequestingEmbedPreview:()=>$e,isSavingEntityRecord:()=>pt});var s={};r.r(s),r.d(s,{getBlockPatternsForPostType:()=>Ft,getNavigationFallbackId:()=>Bt,getUndoManager:()=>qt});var i={};r.r(i),r.d(i,{__experimentalGetCurrentGlobalStylesId:()=>pr,__experimentalGetCurrentThemeBaseGlobalStyles:()=>fr,__experimentalGetCurrentThemeGlobalStylesVariations:()=>yr,__experimentalGetTemplateForLink:()=>dr,canUser:()=>ar,canUserEditEntityRecord:()=>cr,getAuthors:()=>Xt,getAutosave:()=>ur,getAutosaves:()=>lr,getBlockPatternCategories:()=>gr,getBlockPatterns:()=>mr,getCurrentTheme:()=>sr,getCurrentThemeGlobalStylesRevisions:()=>Er,getCurrentUser:()=>Zt,getDefaultTemplateId:()=>_r,getEditedEntityRecord:()=>rr,getEmbedPreview:()=>or,getEntityRecord:()=>er,getEntityRecords:()=>nr,getNavigationFallbackId:()=>vr,getRawEntityRecord:()=>tr,getRevision:()=>br,getRevisions:()=>Rr,getThemeSupports:()=>ir,getUserPatternCategories:()=>hr});const o=window.wp.data;var a=r(7734),c=r.n(a);const l=window.wp.compose;var u=r(6689);const d=e=>t=>(r,n)=>void 0===r||e(n)?t(r,n):r,p=e=>t=>(r,n)=>t(r,e(n));const f=e=>t=>(r={},n)=>{const s=n[e];if(void 0===s)return r;const i=t(r[s],n);return i===r[s]?r:{...r,[s]:i}};var y=function(){return y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},y.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function E(e){return e.toLowerCase()}var m=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],g=/[^A-Z0-9]+/gi;function h(e,t){void 0===t&&(t={});for(var r=t.splitRegexp,n=void 0===r?m:r,s=t.stripRegexp,i=void 0===s?g:s,o=t.transform,a=void 0===o?E:o,c=t.delimiter,l=void 0===c?" ":c,u=v(v(e,n,"$1\0$2"),i,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(a).join(l)}function v(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce((function(e,t){return e.replace(t,r)}),e)}function _(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}function R(e,t){var r=e.charAt(0),n=e.substr(1).toLowerCase();return t>0&&r>="0"&&r<="9"?"_"+r+n:""+r.toUpperCase()+n}function b(e,t){return void 0===t&&(t={}),h(e,y({delimiter:"",transform:R},t))}const w=window.wp.apiFetch;var S=r.n(w);const T=window.wp.i18n,I=window.wp.richText,k={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let O;const C=new Uint8Array(16);function A(){if(!O&&(O="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!O))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return O(C)}const U=[];for(let e=0;e<256;++e)U.push((e+256).toString(16).slice(1));function x(e,t=0){return U[e[t+0]]+U[e[t+1]]+U[e[t+2]]+U[e[t+3]]+"-"+U[e[t+4]]+U[e[t+5]]+"-"+U[e[t+6]]+U[e[t+7]]+"-"+U[e[t+8]]+U[e[t+9]]+"-"+U[e[t+10]]+U[e[t+11]]+U[e[t+12]]+U[e[t+13]]+U[e[t+14]]+U[e[t+15]]}const P=function(e,t,r){if(k.randomUUID&&!t&&!e)return k.randomUUID();const n=(e=e||{}).random||(e.rng||A)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return x(n)},L=window.wp.url,j=window.wp.deprecated;var N=r.n(j);function D(e,t,r){if(!e||"object"!=typeof e)return e;const n=Array.isArray(t)?t:t.split(".");return n.reduce(((e,t,s)=>(void 0===e[t]&&(Number.isInteger(n[s+1])?e[t]=[]:e[t]={}),s===n.length-1&&(e[t]=r),e[t])),e),e}function M(e,t,r){if(!e||"object"!=typeof e||"string"!=typeof t&&!Array.isArray(t))return e;const n=Array.isArray(t)?t:t.split(".");let s=e;return n.forEach((e=>{s=s?.[e]})),void 0!==s?s:r}function V(e,t,r){return{type:"RECEIVE_ITEMS",items:Array.isArray(e)?e:[e],persistedEdits:t,meta:r}}let G=null;async function q(e){if(null===G){const e=await S()({path:"/batch/v1",method:"OPTIONS"});G=e.endpoints[0].args.requests.maxItems}const t=[];for(const r of function(e,t){const r=[...e],n=[];for(;r.length;)n.push(r.splice(0,t));return n}(e,G)){const e=await S()({path:"/batch/v1",method:"POST",data:{validation:"require-all-validate",requests:r.map((e=>({path:e.path,body:e.data,method:e.method,headers:e.headers})))}});let n;n=e.failed?e.responses.map((e=>({error:e?.body}))):e.responses.map((e=>{const t={};return e.status>=200&&e.status<300?t.output=e.body:t.error=e.body,t})),t.push(...n)}return t}function B(e=q){let t=0,r=[];const n=new F;return{add(e){const s=++t;n.add(s);const i=e=>new Promise(((t,i)=>{r.push({input:e,resolve:t,reject:i}),n.delete(s)}));return"function"==typeof e?Promise.resolve(e(i)).finally((()=>{n.delete(s)})):i(e)},async run(){let t;n.size&&await new Promise((e=>{const t=n.subscribe((()=>{n.size||(t(),e(void 0))}))}));try{if(t=await e(r.map((({input:e})=>e))),t.length!==r.length)throw new Error("run: Array returned by processor must be same size as input array.")}catch(e){for(const{reject:t}of r)t(e);throw e}let s=!0;return t.forEach(((e,t)=>{const n=r[t];var i;e?.error?(n?.reject(e.error),s=!1):n?.resolve(null!==(i=e?.output)&&void 0!==i?i:e)})),r=[],s}}}class F{constructor(...e){this.set=new Set(...e),this.subscribers=new Set}get size(){return this.set.size}add(e){return this.set.add(e),this.subscribers.forEach((e=>e())),this}delete(e){const t=this.set.delete(e);return this.subscribers.forEach((e=>e())),t}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}}const $="core";function K(e,t){return{type:"RECEIVE_USER_QUERY",users:Array.isArray(t)?t:[t],queryID:e}}function Q(e){return{type:"RECEIVE_CURRENT_USER",currentUser:e}}function Y(e){return{type:"ADD_ENTITIES",entities:e}}function H(e,t,r,n,s=!1,i,o){let a;return"postType"===e&&(r=(Array.isArray(r)?r:[r]).map((e=>"auto-draft"===e.status?{...e,title:""}:e))),a=n?function(e,t={},r,n){return{...V(e,r,n),query:t}}(r,n,i,o):V(r,i,o),{...a,kind:e,name:t,invalidateCache:s}}function z(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function W(e){return{type:"RECEIVE_CURRENT_GLOBAL_STYLES_ID",id:e}}function J(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLES",stylesheet:e,globalStyles:t}}function X(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLE_VARIATIONS",stylesheet:e,variations:t}}function Z(){return N()("wp.data.dispatch( 'core' ).receiveThemeSupports",{since:"5.9"}),{type:"DO_NOTHING"}}function ee(e,t){return N()("wp.data.dispatch( 'core' ).receiveThemeGlobalStyleRevisions()",{since:"6.5.0",alternative:"wp.data.dispatch( 'core' ).receiveRevisions"}),{type:"RECEIVE_THEME_GLOBAL_STYLE_REVISIONS",currentId:e,revisions:t}}function te(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}const re=(e,t,r,n,{__unstableFetch:s=S(),throwOnError:i=!1}={})=>async({dispatch:o})=>{const a=(await o(Ie(e,t))).find((r=>r.kind===e&&r.name===t));let c,l=!1;if(!a||a?.__experimentalNoFetch)return;const u=await o.__unstableAcquireStoreLock($,["entities","records",e,t,r],{exclusive:!0});try{o({type:"DELETE_ENTITY_RECORD_START",kind:e,name:t,recordId:r});let u=!1;try{let i=`${a.baseURL}/${r}`;n&&(i=(0,L.addQueryArgs)(i,n)),l=await s({path:i,method:"DELETE"}),await o(function(e,t,r,n=!1){return{type:"REMOVE_ITEMS",itemIds:Array.isArray(r)?r:[r],kind:e,name:t,invalidateCache:n}}(e,t,r,!0))}catch(e){u=!0,c=e}if(o({type:"DELETE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:r,error:c}),u&&i)throw c;return l}finally{o.__unstableReleaseStoreLock(u)}},ne=(e,t,r,n,s={})=>({select:i,dispatch:o})=>{const a=i.getEntityConfig(e,t);if(!a)throw new Error(`The entity being edited (${e}, ${t}) does not have a loaded config.`);const{mergedEdits:l={}}=a,u=i.getRawEntityRecord(e,t,r),d=i.getEditedEntityRecord(e,t,r),p={kind:e,name:t,recordId:r,edits:Object.keys(n).reduce(((e,t)=>{const r=u[t],s=d[t],i=l[t]?{...s,...n[t]}:n[t];return e[t]=c()(r,i)?void 0:i,e}),{})};window.__experimentalEnableSync&&a.syncConfig||(s.undoIgnore||i.getUndoManager().addRecord([{id:{kind:e,name:t,recordId:r},changes:Object.keys(n).reduce(((e,t)=>(e[t]={from:d[t],to:n[t]},e)),{})}],s.isCached),o({type:"EDIT_ENTITY_RECORD",...p}))},se=()=>({select:e,dispatch:t})=>{const r=e.getUndoManager().undo();r&&t({type:"UNDO",record:r})},ie=()=>({select:e,dispatch:t})=>{const r=e.getUndoManager().redo();r&&t({type:"REDO",record:r})},oe=()=>({select:e})=>{e.getUndoManager().addRecord()},ae=(e,t,r,{isAutosave:n=!1,__unstableFetch:s=S(),throwOnError:i=!1}={})=>async({select:o,resolveSelect:a,dispatch:c})=>{const l=(await c(Ie(e,t))).find((r=>r.kind===e&&r.name===t));if(!l||l?.__experimentalNoFetch)return;const u=l.key||ge,d=r[u],p=await c.__unstableAcquireStoreLock($,["entities","records",e,t,d||P()],{exclusive:!0});try{for(const[n,s]of Object.entries(r))if("function"==typeof s){const i=s(o.getEditedEntityRecord(e,t,d));c.editEntityRecord(e,t,d,{[n]:i},{undoIgnore:!0}),r[n]=i}let u,p;c({type:"SAVE_ENTITY_RECORD_START",kind:e,name:t,recordId:d,isAutosave:n});let f=!1;try{const i=`${l.baseURL}${d?"/"+d:""}`,p=o.getRawEntityRecord(e,t,d);if(n){const n=o.getCurrentUser(),l=n?n.id:void 0,d=await a.getAutosave(p.type,p.id,l);let f={...p,...d,...r};if(f=Object.keys(f).reduce(((e,t)=>(["title","excerpt","content","meta"].includes(t)&&(e[t]=f[t]),e)),{status:"auto-draft"===f.status?"draft":void 0}),u=await s({path:`${i}/autosaves`,method:"POST",data:f}),p.id===u.id){let r={...p,...f,...u};r=Object.keys(r).reduce(((e,t)=>(["title","excerpt","content"].includes(t)?e[t]=r[t]:e[t]="status"===t?"auto-draft"===p.status&&"draft"===r.status?r.status:p.status:p[t],e)),{}),c.receiveEntityRecords(e,t,r,void 0,!0)}else c.receiveAutosaves(p.id,u)}else{let n=r;l.__unstablePrePersist&&(n={...n,...l.__unstablePrePersist(p,n)}),u=await s({path:i,method:d?"PUT":"POST",data:n}),c.receiveEntityRecords(e,t,u,void 0,!0,n)}}catch(e){f=!0,p=e}if(c({type:"SAVE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:d,error:p,isAutosave:n}),f&&i)throw p;return u}finally{c.__unstableReleaseStoreLock(p)}},ce=e=>async({dispatch:t})=>{const r=B(),n={saveEntityRecord:(e,n,s,i)=>r.add((r=>t.saveEntityRecord(e,n,s,{...i,__unstableFetch:r}))),saveEditedEntityRecord:(e,n,s,i)=>r.add((r=>t.saveEditedEntityRecord(e,n,s,{...i,__unstableFetch:r}))),deleteEntityRecord:(e,n,s,i,o)=>r.add((r=>t.deleteEntityRecord(e,n,s,i,{...o,__unstableFetch:r})))},s=e.map((e=>e(n))),[,...i]=await Promise.all([r.run(),...s]);return i},le=(e,t,r,n)=>async({select:s,dispatch:i})=>{if(!s.hasEditsForEntityRecord(e,t,r))return;const o=(await i(Ie(e,t))).find((r=>r.kind===e&&r.name===t));if(!o)return;const a=o.key||ge,c=s.getEntityRecordNonTransientEdits(e,t,r),l={[a]:r,...c};return await i.saveEntityRecord(e,t,l,n)},ue=(e,t,r,n,s)=>async({select:i,dispatch:o})=>{if(!i.hasEditsForEntityRecord(e,t,r))return;const a=i.getEntityRecordNonTransientEdits(e,t,r),c={};for(const e of n)D(c,e,M(a,e));const l=(await o(Ie(e,t))).find((r=>r.kind===e&&r.name===t));return r&&(c[l?.key||ge]=r),await o.saveEntityRecord(e,t,c,s)};function de(e){return N()("wp.data.dispatch( 'core' ).receiveUploadPermissions",{since:"5.9",alternative:"receiveUserPermission"}),pe("create/media",e)}function pe(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}function fe(e,t){return{type:"RECEIVE_AUTOSAVES",postId:e,autosaves:Array.isArray(t)?t:[t]}}function ye(e){return{type:"RECEIVE_NAVIGATION_FALLBACK_ID",fallbackId:e}}function Ee(e,t){return{type:"RECEIVE_DEFAULT_TEMPLATE",query:e,templateId:t}}const me=(e,t,r,n,s,i=!1,o)=>async({dispatch:a})=>{const c=(await a(Ie(e,t))).find((r=>r.kind===e&&r.name===t));a({type:"RECEIVE_ITEM_REVISIONS",key:c&&c?.revisionKey?c.revisionKey:ge,items:Array.isArray(n)?n:[n],recordKey:r,meta:o,query:s,kind:e,name:t,invalidateCache:i})},ge="id",he=["title","excerpt","content"],ve=[{label:(0,T.__)("Base"),kind:"root",name:"__unstableBase",baseURL:"/",baseURLParams:{_fields:["description","gmt_offset","home","name","site_icon","site_icon_url","site_logo","timezone_string","url"].join(",")},plural:"__unstableBases",syncConfig:{fetch:async()=>S()({path:"/"}),applyChangesToDoc:(e,t)=>{const r=e.getMap("document");Object.entries(t).forEach((([e,t])=>{r.get(e)!==t&&r.set(e,t)}))},fromCRDTDoc:e=>e.getMap("document").toJSON()},syncObjectType:"root/base",getSyncObjectId:()=>"index"},{label:(0,T.__)("Post Type"),name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types",baseURLParams:{context:"edit"},plural:"postTypes",syncConfig:{fetch:async e=>S()({path:`/wp/v2/types/${e}?context=edit`}),applyChangesToDoc:(e,t)=>{const r=e.getMap("document");Object.entries(t).forEach((([e,t])=>{r.get(e)!==t&&r.set(e,t)}))},fromCRDTDoc:e=>e.getMap("document").toJSON()},syncObjectType:"root/postType",getSyncObjectId:e=>e},{name:"media",kind:"root",baseURL:"/wp/v2/media",baseURLParams:{context:"edit"},plural:"mediaItems",label:(0,T.__)("Media"),rawAttributes:["caption","title","description"],supportsPagination:!0},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",baseURLParams:{context:"edit"},plural:"taxonomies",label:(0,T.__)("Taxonomy")},{name:"sidebar",kind:"root",baseURL:"/wp/v2/sidebars",baseURLParams:{context:"edit"},plural:"sidebars",transientEdits:{blocks:!0},label:(0,T.__)("Widget areas")},{name:"widget",kind:"root",baseURL:"/wp/v2/widgets",baseURLParams:{context:"edit"},plural:"widgets",transientEdits:{blocks:!0},label:(0,T.__)("Widgets")},{name:"widgetType",kind:"root",baseURL:"/wp/v2/widget-types",baseURLParams:{context:"edit"},plural:"widgetTypes",label:(0,T.__)("Widget types")},{label:(0,T.__)("User"),name:"user",kind:"root",baseURL:"/wp/v2/users",baseURLParams:{context:"edit"},plural:"users"},{name:"comment",kind:"root",baseURL:"/wp/v2/comments",baseURLParams:{context:"edit"},plural:"comments",label:(0,T.__)("Comment")},{name:"menu",kind:"root",baseURL:"/wp/v2/menus",baseURLParams:{context:"edit"},plural:"menus",label:(0,T.__)("Menu")},{name:"menuItem",kind:"root",baseURL:"/wp/v2/menu-items",baseURLParams:{context:"edit"},plural:"menuItems",label:(0,T.__)("Menu Item"),rawAttributes:["title"]},{name:"menuLocation",kind:"root",baseURL:"/wp/v2/menu-locations",baseURLParams:{context:"edit"},plural:"menuLocations",label:(0,T.__)("Menu Location"),key:"name"},{label:(0,T.__)("Global Styles"),name:"globalStyles",kind:"root",baseURL:"/wp/v2/global-styles",baseURLParams:{context:"edit"},plural:"globalStylesVariations",getTitle:e=>e?.title?.rendered||e?.title,getRevisionsUrl:(e,t)=>`/wp/v2/global-styles/${e}/revisions${t?"/"+t:""}`,supportsPagination:!0},{label:(0,T.__)("Themes"),name:"theme",kind:"root",baseURL:"/wp/v2/themes",baseURLParams:{context:"edit"},plural:"themes",key:"stylesheet"},{label:(0,T.__)("Plugins"),name:"plugin",kind:"root",baseURL:"/wp/v2/plugins",baseURLParams:{context:"edit"},plural:"plugins",key:"plugin"},{label:(0,T.__)("Status"),name:"status",kind:"root",baseURL:"/wp/v2/statuses",baseURLParams:{context:"edit"},plural:"statuses",key:"slug"}],_e=[{kind:"postType",loadEntities:async function(){const e=await S()({path:"/wp/v2/types?context=view"});return Object.entries(null!=e?e:{}).map((([e,t])=>{var r;const n=["wp_template","wp_template_part"].includes(e),s=null!==(r=t?.rest_namespace)&&void 0!==r?r:"wp/v2";return{kind:"postType",baseURL:`/${s}/${t.rest_base}`,baseURLParams:{context:"edit"},name:e,label:t.name,transientEdits:{blocks:!0,selection:!0},mergedEdits:{meta:!0},rawAttributes:he,getTitle:e=>{var t,r,s;return e?.title?.rendered||e?.title||(n?(r=null!==(t=e.slug)&&void 0!==t?t:"",void 0===s&&(s={}),h(r,y({delimiter:" ",transform:_},s))):String(e.id))},__unstablePrePersist:n?void 0:Re,__unstable_rest_base:t.rest_base,syncConfig:{fetch:async e=>S()({path:`/${s}/${t.rest_base}/${e}?context=edit`}),applyChangesToDoc:(e,t)=>{const r=e.getMap("document");Object.entries(t).forEach((([e,t])=>{"function"!=typeof t&&("blocks"===e&&(be.has(t)||be.set(t,Se(t)),t=be.get(t)),r.get(e)!==t&&r.set(e,t))}))},fromCRDTDoc:e=>e.getMap("document").toJSON()},syncObjectType:"postType/"+t.name,getSyncObjectId:e=>e,supportsPagination:!0,getRevisionsUrl:(e,r)=>`/${s}/${t.rest_base}/${e}/revisions${r?"/"+r:""}`,revisionKey:n?"wp_id":ge}}))}},{kind:"taxonomy",loadEntities:async function(){const e=await S()({path:"/wp/v2/taxonomies?context=view"});return Object.entries(null!=e?e:{}).map((([e,t])=>{var r;return{kind:"taxonomy",baseURL:`/${null!==(r=t?.rest_namespace)&&void 0!==r?r:"wp/v2"}/${t.rest_base}`,baseURLParams:{context:"edit"},name:e,label:t.name}}))}},{kind:"root",name:"site",plural:"sites",loadEntities:async function(){var e;const t={label:(0,T.__)("Site"),name:"site",kind:"root",baseURL:"/wp/v2/settings",syncConfig:{fetch:async()=>S()({path:"/wp/v2/settings"}),applyChangesToDoc:(e,t)=>{const r=e.getMap("document");Object.entries(t).forEach((([e,t])=>{r.get(e)!==t&&r.set(e,t)}))},fromCRDTDoc:e=>e.getMap("document").toJSON()},syncObjectType:"root/site",getSyncObjectId:()=>"index",meta:{}},r=await S()({path:t.baseURL,method:"OPTIONS"}),n={};return Object.entries(null!==(e=r?.schema?.properties)&&void 0!==e?e:{}).forEach((([e,t])=>{"object"==typeof t&&t.title&&(n[e]=t.title)})),[{...t,meta:{labels:n}}]}}],Re=(e,t)=>{const r={};return"auto-draft"===e?.status&&(t.status||r.status||(r.status="draft"),t.title&&"Auto Draft"!==t.title||r.title||e?.title&&"Auto Draft"!==e?.title||(r.title="")),r},be=new WeakMap;function we(e){const t={...e};for(const[r,n]of Object.entries(e))n instanceof I.RichTextData&&(t[r]=n.valueOf());return t}function Se(e){return e.map((e=>{const{innerBlocks:t,attributes:r,...n}=e;return{...n,attributes:we(r),innerBlocks:Se(t)}}))}const Te=(e,t,r="get")=>`${r}${"root"===e?"":b(e)}${b(t)}`;const Ie=(e,t)=>async({select:r,dispatch:n})=>{let s=r.getEntitiesConfig(e);const i=!!r.getEntityConfig(e,t);if(s?.length>0&&i)return window.__experimentalEnableSync,s;const o=_e.find((r=>t&&r.name?r.kind===e&&r.name===t:r.kind===e));return o?(s=await o.loadEntities(),window.__experimentalEnableSync,n(Y(s)),s):[]};const ke=function(e){return"string"==typeof e?e.split(","):Array.isArray(e)?e:null};const Oe=function(e){const t=new WeakMap;return r=>{let n;return t.has(r)?n=t.get(r):(n=e(r),null!==r&&"object"==typeof r&&t.set(r,n)),n}};const Ce=Oe((function(e){const t={stableKey:"",page:1,perPage:10,fields:null,include:null,context:"default"},r=Object.keys(e).sort();for(let i=0;i<r.length;i++){const o=r[i];let a=e[o];switch(o){case"page":t[o]=Number(a);break;case"per_page":t.perPage=Number(a);break;case"context":t.context=a;break;default:var n,s;if("_fields"===o)t.fields=null!==(n=ke(a))&&void 0!==n?n:[],a=t.fields.join();if("include"===o)"number"==typeof a&&(a=a.toString()),t.include=(null!==(s=ke(a))&&void 0!==s?s:[]).map(Number),a=t.include.join();t.stableKey+=(t.stableKey?"&":"")+(0,L.addQueryArgs)("",{[o]:a}).slice(1)}}return t}));function Ae(e){const{query:t}=e;if(!t)return"default";return Ce(t).context}function Ue(e,t,r,n){var s;if(1===r&&-1===n)return t;const i=(r-1)*n,o=Math.max(null!==(s=e?.length)&&void 0!==s?s:0,i+t.length),a=new Array(o);for(let r=0;r<o;r++){const s=r>=i&&r<i+n;a[r]=s?t[r-i]:e?.[r]}return a}function xe(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.some((t=>Number.isInteger(t)?t===+e:t===e)))))}const Pe=(0,l.compose)([d((e=>"query"in e)),p((e=>e.query?{...e,...Ce(e.query)}:e)),f("context"),f("stableKey")])(((e={},t)=>{const{type:r,page:n,perPage:s,key:i=ge}=t;return"RECEIVE_ITEMS"!==r?e:{itemIds:Ue(e?.itemIds||[],t.items.map((e=>e?.[i])).filter(Boolean),n,s),meta:t.meta}})),Le=(0,o.combineReducers)({items:function(e={},t){switch(t.type){case"RECEIVE_ITEMS":{const r=Ae(t),n=t.key||ge;return{...e,[r]:{...e[r],...t.items.reduce(((t,s)=>{const i=s?.[n];return t[i]=function(e,t){if(!e)return t;let r=!1;const n={};for(const s in t)c()(e[s],t[s])?n[s]=e[s]:(r=!0,n[s]=t[s]);if(!r)return e;for(const t in e)n.hasOwnProperty(t)||(n[t]=e[t]);return n}(e?.[r]?.[i],s),t}),{})}}}case"REMOVE_ITEMS":return Object.fromEntries(Object.entries(e).map((([e,r])=>[e,xe(r,t.itemIds)])))}return e},itemIsComplete:function(e={},t){switch(t.type){case"RECEIVE_ITEMS":{const r=Ae(t),{query:n,key:s=ge}=t,i=n?Ce(n):{},o=!n||!Array.isArray(i.fields);return{...e,[r]:{...e[r],...t.items.reduce(((t,n)=>{const i=n?.[s];return t[i]=e?.[r]?.[i]||o,t}),{})}}}case"REMOVE_ITEMS":return Object.fromEntries(Object.entries(e).map((([e,r])=>[e,xe(r,t.itemIds)])))}return e},queries:(e={},t)=>{switch(t.type){case"RECEIVE_ITEMS":return Pe(e,t);case"REMOVE_ITEMS":const r=t.itemIds.reduce(((e,t)=>(e[t]=!0,e)),{});return Object.fromEntries(Object.entries(e).map((([e,t])=>[e,Object.fromEntries(Object.entries(t).map((([e,t])=>[e,{...t,itemIds:t.itemIds.filter((e=>!r[e]))}])))])));default:return e}}});const je=e=>(t,r)=>{if("UNDO"===r.type||"REDO"===r.type){const{record:n}=r;let s=t;return n.forEach((({id:{kind:t,name:n,recordId:i},changes:o})=>{s=e(s,{type:"EDIT_ENTITY_RECORD",kind:t,name:n,recordId:i,edits:Object.entries(o).reduce(((e,[t,n])=>(e[t]="UNDO"===r.type?n.from:n.to,e)),{})})})),s}return e(t,r)};function Ne(e){return(0,l.compose)([je,d((t=>t.name&&t.kind&&t.name===e.name&&t.kind===e.kind)),p((t=>({key:e.key||ge,...t})))])((0,o.combineReducers)({queriedData:Le,edits:(e={},t)=>{var r;switch(t.type){case"RECEIVE_ITEMS":if("default"!==(null!==(r=t?.query?.context)&&void 0!==r?r:"default"))return e;const n={...e};for(const e of t.items){const r=e?.[t.key],s=n[r];if(!s)continue;const i=Object.keys(s).reduce(((r,n)=>{var i;return c()(s[n],null!==(i=e[n]?.raw)&&void 0!==i?i:e[n])||t.persistedEdits&&c()(s[n],t.persistedEdits[n])||(r[n]=s[n]),r}),{});Object.keys(i).length?n[r]=i:delete n[r]}return n;case"EDIT_ENTITY_RECORD":const s={...e[t.recordId],...t.edits};return Object.keys(s).forEach((e=>{void 0===s[e]&&delete s[e]})),{...e,[t.recordId]:s}}return e},saving:(e={},t)=>{switch(t.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return{...e,[t.recordId]:{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}}}return e},deleting:(e={},t)=>{switch(t.type){case"DELETE_ENTITY_RECORD_START":case"DELETE_ENTITY_RECORD_FINISH":return{...e,[t.recordId]:{pending:"DELETE_ENTITY_RECORD_START"===t.type,error:t.error}}}return e},revisions:(e={},t)=>{if("RECEIVE_ITEM_REVISIONS"===t.type){const r=t.recordKey;delete t.recordKey;const n=Le(e[r],{...t,type:"RECEIVE_ITEMS"});return{...e,[r]:n}}return"REMOVE_ITEMS"===t.type?Object.fromEntries(Object.entries(e).filter((([e])=>!t.itemIds.some((t=>Number.isInteger(t)?t===+e:t===e))))):e}}))}const De=(0,o.combineReducers)({terms:function(e={},t){return"RECEIVE_TERMS"===t.type?{...e,[t.taxonomy]:t.terms}:e},users:function(e={byId:{},queries:{}},t){return"RECEIVE_USER_QUERY"===t.type?{byId:{...e.byId,...t.users.reduce(((e,t)=>({...e,[t.id]:t})),{})},queries:{...e.queries,[t.queryID]:t.users.map((e=>e.id))}}:e},currentTheme:function(e=void 0,t){return"RECEIVE_CURRENT_THEME"===t.type?t.currentTheme.stylesheet:e},currentGlobalStylesId:function(e=void 0,t){return"RECEIVE_CURRENT_GLOBAL_STYLES_ID"===t.type?t.id:e},currentUser:function(e={},t){return"RECEIVE_CURRENT_USER"===t.type?t.currentUser:e},themeGlobalStyleVariations:function(e={},t){return"RECEIVE_THEME_GLOBAL_STYLE_VARIATIONS"===t.type?{...e,[t.stylesheet]:t.variations}:e},themeBaseGlobalStyles:function(e={},t){return"RECEIVE_THEME_GLOBAL_STYLES"===t.type?{...e,[t.stylesheet]:t.globalStyles}:e},themeGlobalStyleRevisions:function(e={},t){return"RECEIVE_THEME_GLOBAL_STYLE_REVISIONS"===t.type?{...e,[t.currentId]:t.revisions}:e},taxonomies:function(e=[],t){return"RECEIVE_TAXONOMIES"===t.type?t.taxonomies:e},entities:(e={},t)=>{const r=function(e=ve,t){return"ADD_ENTITIES"===t.type?[...e,...t.entities]:e}(e.config,t);let n=e.reducer;if(!n||r!==e.config){const e=r.reduce(((e,t)=>{const{kind:r}=t;return e[r]||(e[r]=[]),e[r].push(t),e}),{});n=(0,o.combineReducers)(Object.entries(e).reduce(((e,[t,r])=>{const n=(0,o.combineReducers)(r.reduce(((e,t)=>({...e,[t.name]:Ne(t)})),{}));return e[t]=n,e}),{}))}const s=n(e.records,t);return s===e.records&&r===e.config&&n===e.reducer?e:{reducer:n,records:s,config:r}},editsReference:function(e={},t){switch(t.type){case"EDIT_ENTITY_RECORD":case"UNDO":case"REDO":return{}}return e},undoManager:function(e=(0,u.createUndoManager)()){return e},embedPreviews:function(e={},t){if("RECEIVE_EMBED_PREVIEW"===t.type){const{url:r,preview:n}=t;return{...e,[r]:n}}return e},userPermissions:function(e={},t){return"RECEIVE_USER_PERMISSION"===t.type?{...e,[t.key]:t.isAllowed}:e},autosaves:function(e={},t){if("RECEIVE_AUTOSAVES"===t.type){const{postId:r,autosaves:n}=t;return{...e,[r]:n}}return e},blockPatterns:function(e=[],t){return"RECEIVE_BLOCK_PATTERNS"===t.type?t.patterns:e},blockPatternCategories:function(e=[],t){return"RECEIVE_BLOCK_PATTERN_CATEGORIES"===t.type?t.categories:e},userPatternCategories:function(e=[],t){return"RECEIVE_USER_PATTERN_CATEGORIES"===t.type?t.patternCategories:e},navigationFallbackId:function(e=null,t){return"RECEIVE_NAVIGATION_FALLBACK_ID"===t.type?t.fallbackId:e},defaultTemplates:function(e={},t){return"RECEIVE_DEFAULT_TEMPLATE"===t.type?{...e,[JSON.stringify(t.query)]:t.templateId}:e}});var Me=r(3249),Ve=r.n(Me);const Ge=new WeakMap;const qe=(0,o.createSelector)(((e,t={})=>{let r=Ge.get(e);if(r){const e=r.get(t);if(void 0!==e)return e}else r=new(Ve()),Ge.set(e,r);const n=function(e,t){const{stableKey:r,page:n,perPage:s,include:i,fields:o,context:a}=Ce(t);let c;if(e.queries?.[a]?.[r]&&(c=e.queries[a][r].itemIds),!c)return null;const l=-1===s?0:(n-1)*s,u=-1===s?c.length:Math.min(l+s,c.length),d=[];for(let t=l;t<u;t++){const r=c[t];if(Array.isArray(i)&&!i.includes(r))continue;if(void 0===r)continue;if(!e.items[a]?.hasOwnProperty(r))return null;const n=e.items[a][r];let s;if(Array.isArray(o)){s={};for(let e=0;e<o.length;e++){const t=o[e].split(".");let r=n;t.forEach((e=>{r=r?.[e]})),D(s,t,r)}}else{if(!e.itemIsComplete[a]?.[r])return null;s=n}d.push(s)}return d}(e,t);return r.set(t,n),n}));function Be(e,t={}){var r;const{stableKey:n,context:s}=Ce(t);return null!==(r=e.queries?.[s]?.[n]?.meta?.totalItems)&&void 0!==r?r:null}const Fe={},$e=(0,o.createRegistrySelector)((e=>(t,r)=>e($).isResolving("getEmbedPreview",[r])));function Ke(e,t){N()("select( 'core' ).getAuthors()",{since:"5.9",alternative:"select( 'core' ).getUsers({ who: 'authors' })"});const r=(0,L.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",t);return Ye(e,r)}function Qe(e){return e.currentUser}const Ye=(0,o.createSelector)(((e,t)=>{var r;return(null!==(r=e.users.queries[t])&&void 0!==r?r:[]).map((t=>e.users.byId[t]))}),((e,t)=>[e.users.queries[t],e.users.byId]));function He(e,t){return N()("wp.data.select( 'core' ).getEntitiesByKind()",{since:"6.0",alternative:"wp.data.select( 'core' ).getEntitiesConfig()"}),ze(e,t)}const ze=(0,o.createSelector)(((e,t)=>e.entities.config.filter((e=>e.kind===t))),((e,t)=>e.entities.config));function We(e,t,r){return N()("wp.data.select( 'core' ).getEntity()",{since:"6.0",alternative:"wp.data.select( 'core' ).getEntityConfig()"}),Je(e,t,r)}function Je(e,t,r){return e.entities.config?.find((e=>e.kind===t&&e.name===r))}const Xe=(0,o.createSelector)(((e,t,r,n,s)=>{var i;const o=e.entities.records?.[t]?.[r]?.queriedData;if(!o)return;const a=null!==(i=s?.context)&&void 0!==i?i:"default";if(void 0===s){if(!o.itemIsComplete[a]?.[n])return;return o.items[a][n]}const c=o.items[a]?.[n];if(c&&s._fields){var l;const e={},t=null!==(l=ke(s._fields))&&void 0!==l?l:[];for(let r=0;r<t.length;r++){const n=t[r].split(".");let s=c;n.forEach((e=>{s=s?.[e]})),D(e,n,s)}return e}return c}),((e,t,r,n,s)=>{var i;const o=null!==(i=s?.context)&&void 0!==i?i:"default";return[e.entities.records?.[t]?.[r]?.queriedData?.items[o]?.[n],e.entities.records?.[t]?.[r]?.queriedData?.itemIsComplete[o]?.[n]]}));function Ze(e,t,r,n){return Xe(e,t,r,n)}Xe.__unstableNormalizeArgs=e=>{const t=[...e],r=t?.[2];return t[2]=/^\s*\d+\s*$/.test(r)?Number(r):r,t};const et=(0,o.createSelector)(((e,t,r,n)=>{const s=Xe(e,t,r,n);return s&&Object.keys(s).reduce(((n,i)=>{var o;(function(e,t){return(e.rawAttributes||[]).includes(t)})(Je(e,t,r),i)?n[i]=null!==(o=s[i]?.raw)&&void 0!==o?o:s[i]:n[i]=s[i];return n}),{})}),((e,t,r,n,s)=>{var i;const o=null!==(i=s?.context)&&void 0!==i?i:"default";return[e.entities.config,e.entities.records?.[t]?.[r]?.queriedData?.items[o]?.[n],e.entities.records?.[t]?.[r]?.queriedData?.itemIsComplete[o]?.[n]]}));function tt(e,t,r,n){return Array.isArray(rt(e,t,r,n))}const rt=(e,t,r,n)=>{const s=e.entities.records?.[t]?.[r]?.queriedData;return s?qe(s,n):null},nt=(e,t,r,n)=>{const s=e.entities.records?.[t]?.[r]?.queriedData;return s?Be(s,n):null},st=(e,t,r,n)=>{const s=e.entities.records?.[t]?.[r]?.queriedData;if(!s)return null;if(-1===n.per_page)return 1;const i=Be(s,n);return i?n.per_page?Math.ceil(i/n.per_page):function(e,t={}){var r;const{stableKey:n,context:s}=Ce(t);return null!==(r=e.queries?.[s]?.[n]?.meta?.totalPages)&&void 0!==r?r:null}(s,n):i},it=(0,o.createSelector)((e=>{const{entities:{records:t}}=e,r=[];return Object.keys(t).forEach((n=>{Object.keys(t[n]).forEach((s=>{const i=Object.keys(t[n][s].edits).filter((t=>Xe(e,n,s,t)&&lt(e,n,s,t)));if(i.length){const t=Je(e,n,s);i.forEach((i=>{const o=ut(e,n,s,i);r.push({key:o?o[t.key||ge]:void 0,title:t?.getTitle?.(o)||"",name:s,kind:n})}))}}))})),r}),(e=>[e.entities.records])),ot=(0,o.createSelector)((e=>{const{entities:{records:t}}=e,r=[];return Object.keys(t).forEach((n=>{Object.keys(t[n]).forEach((s=>{const i=Object.keys(t[n][s].saving).filter((t=>pt(e,n,s,t)));if(i.length){const t=Je(e,n,s);i.forEach((i=>{const o=ut(e,n,s,i);r.push({key:o?o[t.key||ge]:void 0,title:t?.getTitle?.(o)||"",name:s,kind:n})}))}}))})),r}),(e=>[e.entities.records]));function at(e,t,r,n){return e.entities.records?.[t]?.[r]?.edits?.[n]}const ct=(0,o.createSelector)(((e,t,r,n)=>{const{transientEdits:s}=Je(e,t,r)||{},i=at(e,t,r,n)||{};return s?Object.keys(i).reduce(((e,t)=>(s[t]||(e[t]=i[t]),e)),{}):i}),((e,t,r,n)=>[e.entities.config,e.entities.records?.[t]?.[r]?.edits?.[n]]));function lt(e,t,r,n){return pt(e,t,r,n)||Object.keys(ct(e,t,r,n)).length>0}const ut=(0,o.createSelector)(((e,t,r,n)=>{const s=et(e,t,r,n),i=at(e,t,r,n);return!(!s&&!i)&&{...s,...i}}),((e,t,r,n,s)=>{var i;const o=null!==(i=s?.context)&&void 0!==i?i:"default";return[e.entities.config,e.entities.records?.[t]?.[r]?.queriedData.items[o]?.[n],e.entities.records?.[t]?.[r]?.queriedData.itemIsComplete[o]?.[n],e.entities.records?.[t]?.[r]?.edits?.[n]]}));function dt(e,t,r,n){var s;const{pending:i,isAutosave:o}=null!==(s=e.entities.records?.[t]?.[r]?.saving?.[n])&&void 0!==s?s:{};return Boolean(i&&o)}function pt(e,t,r,n){var s;return null!==(s=e.entities.records?.[t]?.[r]?.saving?.[n]?.pending)&&void 0!==s&&s}function ft(e,t,r,n){var s;return null!==(s=e.entities.records?.[t]?.[r]?.deleting?.[n]?.pending)&&void 0!==s&&s}function yt(e,t,r,n){return e.entities.records?.[t]?.[r]?.saving?.[n]?.error}function Et(e,t,r,n){return e.entities.records?.[t]?.[r]?.deleting?.[n]?.error}function mt(e){N()("select( 'core' ).getUndoEdit()",{since:"6.3"})}function gt(e){N()("select( 'core' ).getRedoEdit()",{since:"6.3"})}function ht(e){return e.undoManager.hasUndo()}function vt(e){return e.undoManager.hasRedo()}function _t(e){return e.currentTheme?Xe(e,"root","theme",e.currentTheme):null}function Rt(e){return e.currentGlobalStylesId}function bt(e){var t;return null!==(t=_t(e)?.theme_supports)&&void 0!==t?t:Fe}function wt(e,t){return e.embedPreviews[t]}function St(e,t){const r=e.embedPreviews[t],n='<a href="'+t+'">'+t+"</a>";return!!r&&r.html===n}function Tt(e,t,r,n){const s=[t,r,n].filter(Boolean).join("/");return e.userPermissions[s]}function It(e,t,r,n){const s=Je(e,t,r);if(!s)return!1;return Tt(e,"update",s.__unstable_rest_base,n)}function kt(e,t,r){return e.autosaves[r]}function Ot(e,t,r,n){if(void 0===n)return;const s=e.autosaves[r];return s?.find((e=>e.author===n))}const Ct=(0,o.createRegistrySelector)((e=>(t,r,n)=>e($).hasFinishedResolution("getAutosaves",[r,n])));function At(e){return e.editsReference}function Ut(e,t){const r=rt(e,"postType","wp_template",{"find-template":t});return r?.length?ut(e,"postType","wp_template",r[0].id):null}function xt(e){const t=_t(e);return t?e.themeBaseGlobalStyles[t.stylesheet]:null}function Pt(e){const t=_t(e);return t?e.themeGlobalStyleVariations[t.stylesheet]:null}function Lt(e){return e.blockPatterns}function jt(e){return e.blockPatternCategories}function Nt(e){return e.userPatternCategories}function Dt(e){N()("select( 'core' ).getCurrentThemeGlobalStylesRevisions()",{since:"6.5.0",alternative:"select( 'core' ).getRevisions( 'root', 'globalStyles', ${ recordKey } )"});const t=Rt(e);return t?e.themeGlobalStyleRevisions[t]:null}function Mt(e,t){return e.defaultTemplates[JSON.stringify(t)]}const Vt=(e,t,r,n,s)=>{const i=e.entities.records?.[t]?.[r]?.revisions?.[n];return i?qe(i,s):null},Gt=(0,o.createSelector)(((e,t,r,n,s,i)=>{var o;const a=e.entities.records?.[t]?.[r]?.revisions?.[n];if(!a)return;const c=null!==(o=i?.context)&&void 0!==o?o:"default";if(void 0===i){if(!a.itemIsComplete[c]?.[s])return;return a.items[c][s]}const l=a.items[c]?.[s];if(l&&i._fields){var u;const e={},t=null!==(u=ke(i._fields))&&void 0!==u?u:[];for(let r=0;r<t.length;r++){const n=t[r].split(".");let s=l;n.forEach((e=>{s=s?.[e]})),D(e,n,s)}return e}return l}),((e,t,r,n,s,i)=>{var o;const a=null!==(o=i?.context)&&void 0!==o?o:"default";return[e.entities.records?.[t]?.[r]?.revisions?.[n]?.items?.[a]?.[s],e.entities.records?.[t]?.[r]?.revisions?.[n]?.itemIsComplete?.[a]?.[s]]}));function qt(e){return e.undoManager}function Bt(e){return e.navigationFallbackId}const Ft=(0,o.createRegistrySelector)((e=>(0,o.createSelector)(((t,r)=>e($).getBlockPatterns().filter((({postTypes:e})=>!e||Array.isArray(e)&&e.includes(r)))),(()=>[e($).getBlockPatterns()]))));function $t(e,t){return 0===t?e.toLowerCase():R(e,t)}function Kt(e,t){return void 0===t&&(t={}),b(e,y({transform:$t},t))}const Qt=window.wp.htmlEntities,Yt=e=>(...t)=>async({resolveSelect:r})=>{await r[e](...t)},Ht=async(e,t={},r={})=>{const{isInitialSuggestions:n=!1,initialSuggestionsSearchOptions:s}=t,{disablePostFormats:i=!1}=r;let{type:o,subtype:a,page:c,perPage:l=(n?3:20)}=t;const u=[];return n&&s&&(o=s.type||o,a=s.subtype||a,c=s.page||c,l=s.perPage||l),o&&"post"!==o||u.push(S()({path:(0,L.addQueryArgs)("/wp/v2/search",{search:e,page:c,per_page:l,type:"post",subtype:a})}).then((e=>e.map((e=>({...e,meta:{kind:"post-type",subtype:a}}))))).catch((()=>[]))),o&&"term"!==o||u.push(S()({path:(0,L.addQueryArgs)("/wp/v2/search",{search:e,page:c,per_page:l,type:"term",subtype:a})}).then((e=>e.map((e=>({...e,meta:{kind:"taxonomy",subtype:a}}))))).catch((()=>[]))),i||o&&"post-format"!==o||u.push(S()({path:(0,L.addQueryArgs)("/wp/v2/search",{search:e,page:c,per_page:l,type:"post-format",subtype:a})}).then((e=>e.map((e=>({...e,meta:{kind:"taxonomy",subtype:a}}))))).catch((()=>[]))),o&&"attachment"!==o||u.push(S()({path:(0,L.addQueryArgs)("/wp/v2/media",{search:e,page:c,per_page:l})}).then((e=>e.map((e=>({...e,meta:{kind:"media"}}))))).catch((()=>[]))),Promise.all(u).then((e=>e.reduce(((e,t)=>e.concat(t)),[]).filter((e=>!!e.id)).slice(0,l).map((e=>{const t="attachment"===e.type;return{id:e.id,url:t?e.source_url:e.url,title:(0,Qt.decodeEntities)(t?e.title.rendered:e.title||"")||(0,T.__)("(no title)"),type:e.subtype||e.type,kind:e?.meta?.kind}}))))},zt=new Map,Wt=async(e,t={})=>{const r={url:(0,L.prependHTTP)(e)};if(!(0,L.isURL)(e))return Promise.reject(`${e} is not a valid URL.`);const n=(0,L.getProtocol)(e);return n&&(0,L.isValidProtocol)(n)&&n.startsWith("http")&&/^https?:\/\/[^\/\s]/i.test(e)?zt.has(e)?zt.get(e):S()({path:(0,L.addQueryArgs)("/wp-block-editor/v1/url-details",r),...t}).then((t=>(zt.set(e,t),t))):Promise.reject(`${e} does not have a valid protocol. URLs must be "http" based`)};async function Jt(){const e=await S()({path:"/wp/v2/block-patterns/patterns"});return e?e.map((e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[Kt(e),t]))))):[]}const Xt=e=>async({dispatch:t})=>{const r=(0,L.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",e),n=await S()({path:r});t.receiveUserQuery(r,n)},Zt=()=>async({dispatch:e})=>{const t=await S()({path:"/wp/v2/users/me"});e.receiveCurrentUser(t)},er=(e,t,r="",n)=>async({select:s,dispatch:i})=>{const o=(await i(Ie(e,t))).find((r=>r.name===t&&r.kind===e));if(!o||o?.__experimentalNoFetch)return;const a=await i.__unstableAcquireStoreLock($,["entities","records",e,t,r],{exclusive:!1});try{if(window.__experimentalEnableSync&&o.syncConfig&&!n)0;else{void 0!==n&&n._fields&&(n={...n,_fields:[...new Set([...ke(n._fields)||[],o.key||ge])].join()});const a=(0,L.addQueryArgs)(o.baseURL+(r?"/"+r:""),{...o.baseURLParams,...n});if(void 0!==n){n={...n,include:[r]};if(s.hasEntityRecords(e,t,n))return}const c=await S()({path:a});i.receiveEntityRecords(e,t,c,n)}}finally{i.__unstableReleaseStoreLock(a)}},tr=Yt("getEntityRecord"),rr=Yt("getEntityRecord"),nr=(e,t,r={})=>async({dispatch:n,registry:s})=>{const i=(await n(Ie(e,t))).find((r=>r.name===t&&r.kind===e));if(!i||i?.__experimentalNoFetch)return;const o=await n.__unstableAcquireStoreLock($,["entities","records",e,t],{exclusive:!1});try{r._fields&&(r={...r,_fields:[...new Set([...ke(r._fields)||[],i.key||ge])].join()});const a=(0,L.addQueryArgs)(i.baseURL,{...i.baseURLParams,...r});let c,l;if(i.supportsPagination&&-1!==r.per_page){const e=await S()({path:a,parse:!1});c=Object.values(await e.json()),l={totalItems:parseInt(e.headers.get("X-WP-Total")),totalPages:parseInt(e.headers.get("X-WP-TotalPages"))}}else c=Object.values(await S()({path:a}));r._fields&&(c=c.map((e=>(r._fields.split(",").forEach((t=>{e.hasOwnProperty(t)||(e[t]=void 0)})),e)))),s.batch((()=>{if(n.receiveEntityRecords(e,t,c,r,!1,void 0,l),!r?._fields&&!r.context){const r=i.key||ge,s=c.filter((e=>e?.[r])).map((n=>[e,t,n[r]]));n({type:"START_RESOLUTIONS",selectorName:"getEntityRecord",args:s}),n({type:"FINISH_RESOLUTIONS",selectorName:"getEntityRecord",args:s})}n.__unstableReleaseStoreLock(o)}))}catch(e){n.__unstableReleaseStoreLock(o)}};nr.shouldInvalidate=(e,t,r)=>("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&t===e.kind&&r===e.name;const sr=()=>async({dispatch:e,resolveSelect:t})=>{const r=await t.getEntityRecords("root","theme",{status:"active"});e.receiveCurrentTheme(r[0])},ir=Yt("getCurrentTheme"),or=e=>async({dispatch:t})=>{try{const r=await S()({path:(0,L.addQueryArgs)("/oembed/1.0/proxy",{url:e})});t.receiveEmbedPreview(e,r)}catch(r){t.receiveEmbedPreview(e,!1)}},ar=(e,t,r)=>async({dispatch:n,registry:s})=>{const{hasStartedResolution:i}=s.select($),o=r?`${t}/${r}`:t,a=["create","read","update","delete"];if(!a.includes(e))throw new Error(`'${e}' is not a valid action.`);for(const n of a){if(n===e)continue;if(i("canUser",[n,t,r]))return}let c;try{c=await S()({path:`/wp/v2/${o}`,method:"OPTIONS",parse:!1})}catch(e){return}const l=c.headers?.get("allow"),u=l?.allow||l||"",d={},p={create:"POST",read:"GET",update:"PUT",delete:"DELETE"};for(const[e,t]of Object.entries(p))d[e]=u.includes(t);for(const e of a)n.receiveUserPermission(`${e}/${o}`,d[e])},cr=(e,t,r)=>async({dispatch:n})=>{const s=(await n(Ie(e,t))).find((r=>r.name===t&&r.kind===e));if(!s)return;const i=s.__unstable_rest_base;await n(ar("update",i,r))},lr=(e,t)=>async({dispatch:r,resolveSelect:n})=>{const{rest_base:s,rest_namespace:i="wp/v2"}=await n.getPostType(e),o=await S()({path:`/${i}/${s}/${t}/autosaves?context=edit`});o&&o.length&&r.receiveAutosaves(t,o)},ur=(e,t)=>async({resolveSelect:r})=>{await r.getAutosaves(e,t)},dr=e=>async({dispatch:t,resolveSelect:r})=>{let n;try{n=await S()({url:(0,L.addQueryArgs)(e,{"_wp-find-template":!0})}).then((({data:e})=>e))}catch(e){}if(!n)return;const s=await r.getEntityRecord("postType","wp_template",n.id);s&&t.receiveEntityRecords("postType","wp_template",[s],{"find-template":e})};dr.shouldInvalidate=e=>("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&"postType"===e.kind&&"wp_template"===e.name;const pr=()=>async({dispatch:e,resolveSelect:t})=>{const r=await t.getEntityRecords("root","theme",{status:"active"}),n=r?.[0]?._links?.["wp:user-global-styles"]?.[0]?.href;if(!n)return;const s=n.match(/\/(\d+)(?:\?|$)/),i=s?Number(s[1]):null;i&&e.__experimentalReceiveCurrentGlobalStylesId(i)},fr=()=>async({resolveSelect:e,dispatch:t})=>{const r=await e.getCurrentTheme(),n=await S()({path:`/wp/v2/global-styles/themes/${r.stylesheet}`});t.__experimentalReceiveThemeBaseGlobalStyles(r.stylesheet,n)},yr=()=>async({resolveSelect:e,dispatch:t})=>{const r=await e.getCurrentTheme(),n=await S()({path:`/wp/v2/global-styles/themes/${r.stylesheet}/variations`});t.__experimentalReceiveThemeGlobalStyleVariations(r.stylesheet,n)},Er=()=>async({resolveSelect:e,dispatch:t})=>{const r=await e.__experimentalGetCurrentGlobalStylesId(),n=r?await e.getEntityRecord("root","globalStyles",r):void 0,s=n?._links?.["version-history"]?.[0]?.href;if(s){const e=await S()({url:s}),n=e?.map((e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[Kt(e),t])))));t.receiveThemeGlobalStyleRevisions(r,n)}};Er.shouldInvalidate=e=>"SAVE_ENTITY_RECORD_FINISH"===e.type&&"root"===e.kind&&!e.error&&"globalStyles"===e.name;const mr=()=>async({dispatch:e})=>{e({type:"RECEIVE_BLOCK_PATTERNS",patterns:await Jt()})},gr=()=>async({dispatch:e})=>{e({type:"RECEIVE_BLOCK_PATTERN_CATEGORIES",categories:await S()({path:"/wp/v2/block-patterns/categories"})})},hr=()=>async({dispatch:e,resolveSelect:t})=>{const r=await t.getEntityRecords("taxonomy","wp_pattern_category",{per_page:-1,_fields:"id,name,description,slug",context:"view"});e({type:"RECEIVE_USER_PATTERN_CATEGORIES",patternCategories:r?.map((e=>({...e,label:(0,Qt.decodeEntities)(e.name),name:e.slug})))||[]})},vr=()=>async({dispatch:e,select:t})=>{const r=await S()({path:(0,L.addQueryArgs)("/wp-block-editor/v1/navigation-fallback",{_embed:!0})}),n=r?._embedded?.self;if(e.receiveNavigationFallbackId(r?.id),n){const s=!t.getEntityRecord("postType","wp_navigation",r.id);e.receiveEntityRecords("postType","wp_navigation",n,void 0,s),e.finishResolution("getEntityRecord",["postType","wp_navigation",r.id])}},_r=e=>async({dispatch:t})=>{const r=await S()({path:(0,L.addQueryArgs)("/wp/v2/templates/lookup",e)});r?.id&&t.receiveDefaultTemplateId(e,r.id)},Rr=(e,t,r,n={})=>async({dispatch:s})=>{const i=(await s(Ie(e,t))).find((r=>r.name===t&&r.kind===e));if(!i||i?.__experimentalNoFetch)return;n._fields&&(n={...n,_fields:[...new Set([...ke(n._fields)||[],i.revisionKey||ge])].join()});const o=(0,L.addQueryArgs)(i.getRevisionsUrl(r),n);let a,c;const l={},u=i.supportsPagination&&-1!==n.per_page;try{c=await S()({path:o,parse:!u})}catch(e){return}if(c&&(u?(a=Object.values(await c.json()),l.totalItems=parseInt(c.headers.get("X-WP-Total"))):a=Object.values(c),n._fields&&(a=a.map((e=>(n._fields.split(",").forEach((t=>{e.hasOwnProperty(t)||(e[t]=void 0)})),e)))),s.receiveRevisions(e,t,r,a,n,!1,l),!n?._fields&&!n.context)){const n=i.key||ge,o=a.filter((e=>e[n])).map((s=>[e,t,r,s[n]]));s({type:"START_RESOLUTIONS",selectorName:"getRevision",args:o}),s({type:"FINISH_RESOLUTIONS",selectorName:"getRevision",args:o})}};Rr.shouldInvalidate=(e,t,r,n)=>"SAVE_ENTITY_RECORD_FINISH"===e.type&&r===e.name&&t===e.kind&&!e.error&&n===e.recordId;const br=(e,t,r,n,s)=>async({dispatch:i})=>{const o=(await i(Ie(e,t))).find((r=>r.name===t&&r.kind===e));if(!o||o?.__experimentalNoFetch)return;void 0!==s&&s._fields&&(s={...s,_fields:[...new Set([...ke(s._fields)||[],o.revisionKey||ge])].join()});const a=(0,L.addQueryArgs)(o.getRevisionsUrl(r,n),s);let c;try{c=await S()({path:a})}catch(e){return}c&&i.receiveRevisions(e,t,r,c,s)};function wr(e,t){const r={...e};let n=r;for(const e of t)n.children={...n.children,[e]:{locks:[],children:{},...n.children[e]}},n=n.children[e];return r}function Sr(e,t){let r=e;for(const e of t){const t=r.children[e];if(!t)return null;r=t}return r}function Tr({exclusive:e},t){return!(!e||!t.length)||!(e||!t.filter((e=>e.exclusive)).length)}const Ir={requests:[],tree:{locks:[],children:{}}};function kr(e=Ir,t){switch(t.type){case"ENQUEUE_LOCK_REQUEST":{const{request:r}=t;return{...e,requests:[r,...e.requests]}}case"GRANT_LOCK_REQUEST":{const{lock:r,request:n}=t,{store:s,path:i}=n,o=[s,...i],a=wr(e.tree,o),c=Sr(a,o);return c.locks=[...c.locks,r],{...e,requests:e.requests.filter((e=>e!==n)),tree:a}}case"RELEASE_LOCK":{const{lock:r}=t,n=[r.store,...r.path],s=wr(e.tree,n),i=Sr(s,n);return i.locks=i.locks.filter((e=>e!==r)),{...e,tree:s}}}return e}function Or(e,t,r,{exclusive:n}){const s=[t,...r],i=e.tree;for(const e of function*(e,t){let r=e;yield r;for(const e of t){const t=r.children[e];if(!t)break;yield t,r=t}}(i,s))if(Tr({exclusive:n},e.locks))return!1;const o=Sr(i,s);if(!o)return!0;for(const e of function*(e){const t=Object.values(e.children);for(;t.length;){const e=t.pop();yield e,t.push(...Object.values(e.children))}}(o))if(Tr({exclusive:n},e.locks))return!1;return!0}function Cr(){let e=kr(void 0,{type:"@@INIT"});function t(){for(const t of function(e){return e.requests}(e)){const{store:r,path:n,exclusive:s,notifyAcquired:i}=t;if(Or(e,r,n,{exclusive:s})){const o={store:r,path:n,exclusive:s};e=kr(e,{type:"GRANT_LOCK_REQUEST",lock:o,request:t}),i(o)}}}return{acquire:function(r,n,s){return new Promise((i=>{e=kr(e,{type:"ENQUEUE_LOCK_REQUEST",request:{store:r,path:n,exclusive:s,notifyAcquired:i}}),t()}))},release:function(r){e=kr(e,{type:"RELEASE_LOCK",lock:r}),t()}}}function Ar(){const e=Cr();return{__unstableAcquireStoreLock:function(t,r,{exclusive:n}){return()=>e.acquire(t,r,n)},__unstableReleaseStoreLock:function(t){return()=>e.release(t)}}}const Ur=window.wp.privateApis,{lock:xr,unlock:Pr}=(0,Ur.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/core-data"),Lr=window.wp.element,jr=window.wp.blocks,Nr=window.wp.blockEditor;let Dr;const Mr=new WeakMap;const Vr=new WeakMap;function Gr(e){if(!Vr.has(e)){const t=[];for(const r of function(e){if(Dr||(Dr=Pr(Nr.privateApis)),!Mr.has(e)){const t=Dr.getRichTextValues([e]);Mr.set(e,t)}return Mr.get(e)}(e))r&&r.replacements.forEach((({type:e,attributes:r})=>{"core/footnote"===e&&t.push(r["data-fn"])}));Vr.set(e,t)}return Vr.get(e)}let qr={};function Br(e,t){const r={blocks:e};if(!t)return r;if(void 0===t.footnotes)return r;const n=function(e){return e.flatMap(Gr)}(e),s=t.footnotes?JSON.parse(t.footnotes):[];if(s.map((e=>e.id)).join("")===n.join(""))return r;const i=n.map((e=>s.find((t=>t.id===e))||qr[e]||{id:e,content:""}));function o(e){if(!e||Array.isArray(e)||"object"!=typeof e)return e;e={...e};for(const t in e){const r=e[t];if(Array.isArray(r)){e[t]=r.map(o);continue}if("string"!=typeof r&&!(r instanceof I.RichTextData))continue;const s="string"==typeof r?I.RichTextData.fromHTMLString(r):new I.RichTextData(r);s.replacements.forEach((e=>{if("core/footnote"===e.type){const t=e.attributes["data-fn"],r=n.indexOf(t),s=(0,I.create)({html:e.innerHTML});s.text=String(r+1),s.formats=Array.from({length:s.text.length},(()=>s.formats[0])),s.replacements=Array.from({length:s.text.length},(()=>s.replacements[0])),e.innerHTML=(0,I.toHTMLString)({value:s})}})),e[t]="string"==typeof r?s.toHTMLString():s}return e}const a=function e(t){return t.map((t=>({...t,attributes:o(t.attributes),innerBlocks:e(t.innerBlocks)})))}(e);return qr={...qr,...s.reduce(((e,t)=>(n.includes(t.id)||(e[t.id]=t),e)),{})},{meta:{...t,footnotes:JSON.stringify(i)},blocks:a}}const Fr=window.ReactJSXRuntime,$r=[],Kr=(0,Lr.createContext)({});function Qr({kind:e,type:t,id:r,children:n}){const s=(0,Lr.useContext)(Kr),i=(0,Lr.useMemo)((()=>({...s,[e]:{...s?.[e],[t]:r}})),[s,e,t,r]);return(0,Fr.jsx)(Kr.Provider,{value:i,children:n})}function Yr(e,t){const r=(0,Lr.useContext)(Kr);return r?.[e]?.[t]}function Hr(e,t,r,n){const s=Yr(e,t),i=null!=n?n:s,{value:a,fullValue:c}=(0,o.useSelect)((n=>{const{getEntityRecord:s,getEditedEntityRecord:o}=n($),a=s(e,t,i),c=o(e,t,i);return a&&c?{value:c[r],fullValue:a[r]}:{}}),[e,t,i,r]),{editEntityRecord:l}=(0,o.useDispatch)($);return[a,(0,Lr.useCallback)((n=>{l(e,t,i,{[r]:n})}),[l,e,t,i,r]),c]}const zr=new WeakMap;function Wr(e,t,{id:r}={}){const n=Yr(e,t),s=null!=r?r:n,{getEntityRecord:i,getEntityRecordEdits:a}=(0,o.useSelect)($),{content:c,editedBlocks:l,meta:u}=(0,o.useSelect)((r=>{if(!s)return{};const{getEditedEntityRecord:n}=r($),i=n(e,t,s);return{editedBlocks:i.blocks,content:i.content,meta:i.meta}}),[e,t,s]),{__unstableCreateUndoLevel:d,editEntityRecord:p}=(0,o.useDispatch)($),f=(0,Lr.useMemo)((()=>{if(!s)return;if(l)return l;if(!c||"string"!=typeof c)return $r;const r=a(e,t,s),n=!r||!Object.keys(r).length?i(e,t,s):r;let o=zr.get(n);return o||(o=(0,jr.parse)(c),zr.set(n,o)),o}),[e,t,s,l,c,i,a]),y=(0,Lr.useCallback)((e=>Br(e,u)),[u]),E=(0,Lr.useCallback)(((r,n)=>{if(f===r)return d(e,t,s);const{selection:i,...o}=n,a={selection:i,content:({blocks:e=[]})=>(0,jr.__unstableSerializeAndClean)(e),...y(r)};p(e,t,s,a,{isCached:!1,...o})}),[e,t,s,f,y,d,p]),m=(0,Lr.useCallback)(((r,n)=>{const{selection:i,...o}=n,a={selection:i,...y(r)};p(e,t,s,a,{isCached:!0,...o})}),[e,t,s,y,p]);return[f,m,E]}const Jr=function(e,t){var r,n,s=0;function i(){var i,o,a=r,c=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(o=0;o<c;o++)if(a.args[o]!==arguments[o]){a=a.next;continue e}return a!==r&&(a===n&&(n=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=r,a.prev=null,r.prev=a,r=a),a.val}a=a.next}for(i=new Array(c),o=0;o<c;o++)i[o]=arguments[o];return a={args:i,val:e.apply(null,i)},r?(r.prev=a,a.next=r):n=a,s===t.maxSize?(n=n.prev).next=null:s++,r=a,a.val}return t=t||{},i.clear=function(){r=null,n=null,s=0},i};let Xr=function(e){return e.Idle="IDLE",e.Resolving="RESOLVING",e.Error="ERROR",e.Success="SUCCESS",e}({});const Zr=["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"];function en(e,t){return(0,o.useSelect)(((t,r)=>e((e=>tn(t(e))),r)),t)}const tn=Jr((e=>{const t={};for(const r in e)Zr.includes(r)||Object.defineProperty(t,r,{get:()=>(...t)=>{const n=e[r](...t),s=e.getResolutionState(r,t)?.status;let i;switch(s){case"resolving":i=Xr.Resolving;break;case"finished":i=Xr.Success;break;case"error":i=Xr.Error;break;case void 0:i=Xr.Idle}return{data:n,status:i,isResolving:i===Xr.Resolving,hasStarted:i!==Xr.Idle,hasResolved:i===Xr.Success||i===Xr.Error}}});return t})),rn={};function nn(e,t,r,n={enabled:!0}){const{editEntityRecord:s,saveEditedEntityRecord:i}=(0,o.useDispatch)(En),a=(0,Lr.useMemo)((()=>({edit:(n,i={})=>s(e,t,r,n,i),save:(n={})=>i(e,t,r,{throwOnError:!0,...n})})),[s,e,t,r,i]),{editedRecord:c,hasEdits:l,edits:u}=(0,o.useSelect)((s=>n.enabled?{editedRecord:s(En).getEditedEntityRecord(e,t,r),hasEdits:s(En).hasEditsForEntityRecord(e,t,r),edits:s(En).getEntityRecordNonTransientEdits(e,t,r)}:{editedRecord:rn,hasEdits:!1,edits:rn}),[e,t,r,n.enabled]),{data:d,...p}=en((s=>n.enabled?s(En).getEntityRecord(e,t,r):{data:null}),[e,t,r,n.enabled]);return{record:d,editedRecord:c,hasEdits:l,edits:u,...p,...a}}function sn(e,t,r,n){return N()("wp.data.__experimentalUseEntityRecord",{alternative:"wp.data.useEntityRecord",since:"6.1"}),nn(e,t,r,n)}const on=[];function an(e,t,r={},n={enabled:!0}){const s=(0,L.addQueryArgs)("",r),{data:i,...a}=en((s=>n.enabled?s(En).getEntityRecords(e,t,r):{data:on}),[e,t,s,n.enabled]),{totalItems:c,totalPages:l}=(0,o.useSelect)((s=>n.enabled?{totalItems:s(En).getEntityRecordsTotalItems(e,t,r),totalPages:s(En).getEntityRecordsTotalPages(e,t,r)}:{totalItems:null,totalPages:null}),[e,t,s,n.enabled]);return{records:i,totalItems:c,totalPages:l,...a}}function cn(e,t,r,n){return N()("wp.data.__experimentalUseEntityRecords",{alternative:"wp.data.useEntityRecords",since:"6.1"}),an(e,t,r,n)}function ln(e,t){return en((r=>{const{canUser:n}=r(En),s=n("create",e);if(!t){const t=n("read",e),r=s.isResolving||t.isResolving,i=s.hasResolved&&t.hasResolved;let o=Xr.Idle;return r?o=Xr.Resolving:i&&(o=Xr.Success),{status:o,isResolving:r,hasResolved:i,canCreate:s.hasResolved&&s.data,canRead:t.hasResolved&&t.data}}const i=n("read",e,t),o=n("update",e,t),a=n("delete",e,t),c=i.isResolving||s.isResolving||o.isResolving||a.isResolving,l=i.hasResolved&&s.hasResolved&&o.hasResolved&&a.hasResolved;let u=Xr.Idle;return c?u=Xr.Resolving:l&&(u=Xr.Success),{status:u,isResolving:c,hasResolved:l,canRead:l&&i.data,canCreate:l&&s.data,canUpdate:l&&o.data,canDelete:l&&a.data}}),[e,t])}function un(e,t){return N()("wp.data.__experimentalUseResourcePermissions",{alternative:"wp.data.useResourcePermissions",since:"6.1"}),ln(e,t)}const dn=[...ve,..._e.filter((e=>!!e.name))],pn=dn.reduce(((e,t)=>{const{kind:r,name:n,plural:s}=t;return e[Te(r,n)]=(e,t,s)=>Xe(e,r,n,t,s),s&&(e[Te(r,s,"get")]=(e,t)=>rt(e,r,n,t)),e}),{}),fn=dn.reduce(((e,t)=>{const{kind:r,name:n,plural:s}=t;if(e[Te(r,n)]=(e,t)=>er(r,n,e,t),s){const t=Te(r,s,"get");e[t]=(...e)=>nr(r,n,...e),e[t].shouldInvalidate=e=>nr.shouldInvalidate(e,r,n)}return e}),{}),yn=dn.reduce(((e,t)=>{const{kind:r,name:n}=t;return e[Te(r,n,"save")]=(e,t)=>ae(r,n,e,t),e[Te(r,n,"delete")]=(e,t,s)=>re(r,n,e,t,s),e}),{}),En=(0,o.createReduxStore)($,{reducer:De,actions:{...e,...yn,...Ar()},selectors:{...t,...pn},resolvers:{...i,...fn}});Pr(En).registerPrivateSelectors(s),(0,o.register)(En)})(),(window.wp=window.wp||{}).coreData=n})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/customize-widgets.js b/wp-includes/js/dist/customize-widgets.js
index 71b52fb..1a81147 100644
--- a/wp-includes/js/dist/customize-widgets.js
+++ b/wp-includes/js/dist/customize-widgets.js
@@ -1,76 +1,10 @@
/******/ (() => { // webpackBootstrap
+/******/ "use strict";
/******/ var __webpack_modules__ = ({
-/***/ 5755:
-/***/ ((module, exports) => {
-
-var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/
-/* global define */
-
-(function () {
- 'use strict';
-
- var hasOwn = {}.hasOwnProperty;
- var nativeCodeString = '[native code]';
-
- 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)) {
- if (arg.length) {
- var inner = classNames.apply(null, arg);
- if (inner) {
- classes.push(inner);
- }
- }
- } else if (argType === 'object') {
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
- classes.push(arg.toString());
- continue;
- }
-
- 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 {}
-}());
-
-
-/***/ }),
-
/***/ 7734:
/***/ ((module) => {
-"use strict";
// do not edit .js files directly - edit src/index.jst
@@ -216,9 +150,8 @@ module.exports = function equal(a, b) {
/******/
/************************************************************************/
var __webpack_exports__ = {};
-// This entry need to be wrapped in an IIFE because it need to be in strict mode.
+// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
(() => {
-"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
@@ -243,35 +176,6 @@ __webpack_require__.d(actions_namespaceObject, {
setIsInserterOpened: () => (setIsInserterOpened)
});
-// NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/actions.js
-var store_actions_namespaceObject = {};
-__webpack_require__.r(store_actions_namespaceObject);
-__webpack_require__.d(store_actions_namespaceObject, {
- closeModal: () => (closeModal),
- disableComplementaryArea: () => (disableComplementaryArea),
- enableComplementaryArea: () => (enableComplementaryArea),
- openModal: () => (openModal),
- pinItem: () => (pinItem),
- setDefaultComplementaryArea: () => (setDefaultComplementaryArea),
- setFeatureDefaults: () => (setFeatureDefaults),
- setFeatureValue: () => (setFeatureValue),
- toggleFeature: () => (toggleFeature),
- unpinItem: () => (unpinItem)
-});
-
-// NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/selectors.js
-var store_selectors_namespaceObject = {};
-__webpack_require__.r(store_selectors_namespaceObject);
-__webpack_require__.d(store_selectors_namespaceObject, {
- getActiveComplementaryArea: () => (getActiveComplementaryArea),
- isComplementaryAreaLoading: () => (isComplementaryAreaLoading),
- isFeatureActive: () => (isFeatureActive),
- isItemPinned: () => (isItemPinned),
- isModalActive: () => (isModalActive)
-});
-
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: external ["wp","element"]
const external_wp_element_namespaceObject = window["wp"]["element"];
;// CONCATENATED MODULE: external ["wp","blockLibrary"]
@@ -294,8 +198,9 @@ const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
const external_wp_compose_namespaceObject = window["wp"]["compose"];
;// CONCATENATED MODULE: external ["wp","hooks"]
const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/error-boundary/index.js
-
/**
* WordPress dependencies
*/
@@ -305,15 +210,17 @@ const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
+
function CopyButton({
text,
children
}) {
const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(text);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
variant: "secondary",
- ref: ref
- }, children);
+ ref: ref,
+ children: children
+ });
}
class ErrorBoundary extends external_wp_element_namespaceObject.Component {
constructor() {
@@ -335,13 +242,14 @@ class ErrorBoundary extends external_wp_element_namespaceObject.Component {
if (!error) {
return this.props.children;
}
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
className: "customize-widgets-error-boundary",
- actions: [(0,external_React_namespaceObject.createElement)(CopyButton, {
- key: "copy-error",
- text: error.stack
- }, (0,external_wp_i18n_namespaceObject.__)('Copy Error'))]
- }, (0,external_wp_i18n_namespaceObject.__)('The editor has encountered an unexpected error.'));
+ actions: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CopyButton, {
+ text: error.stack,
+ children: (0,external_wp_i18n_namespaceObject.__)('Copy Error')
+ }, "copy-error")],
+ children: (0,external_wp_i18n_namespaceObject.__)('The editor has encountered an unexpected error.')
+ });
}
}
@@ -350,7 +258,6 @@ const external_wp_coreData_namespaceObject = window["wp"]["coreData"];
;// CONCATENATED MODULE: external ["wp","mediaUtils"]
const external_wp_mediaUtils_namespaceObject = window["wp"]["mediaUtils"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/block-inspector-button/index.js
-
/**
* WordPress dependencies
*/
@@ -359,6 +266,7 @@ const external_wp_mediaUtils_namespaceObject = window["wp"]["mediaUtils"];
+
function BlockInspectorButton({
inspector,
closeMenu,
@@ -366,7 +274,7 @@ function BlockInspectorButton({
}) {
const selectedBlockClientId = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).getSelectedBlockClientId(), []);
const selectedBlock = (0,external_wp_element_namespaceObject.useMemo)(() => document.getElementById(`block-${selectedBlockClientId}`), [selectedBlockClientId]);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
onClick: () => {
// Open the inspector.
inspector.open({
@@ -375,72 +283,76 @@ function BlockInspectorButton({
// Then close the dropdown menu.
closeMenu();
},
- ...props
- }, (0,external_wp_i18n_namespaceObject.__)('Show more settings'));
+ ...props,
+ children: (0,external_wp_i18n_namespaceObject.__)('Show more settings')
+ });
}
/* harmony default export */ const block_inspector_button = (BlockInspectorButton);
-// EXTERNAL MODULE: ./node_modules/classnames/index.js
-var classnames = __webpack_require__(5755);
-var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
+;// CONCATENATED MODULE: ./node_modules/clsx/dist/clsx.mjs
+function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
;// CONCATENATED MODULE: external ["wp","keycodes"]
const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
;// CONCATENATED MODULE: external ["wp","primitives"]
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/undo.js
-
/**
* WordPress dependencies
*/
-const undo = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const undo = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"
+ })
+});
/* harmony default export */ const library_undo = (undo);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/redo.js
-
/**
* WordPress dependencies
*/
-const redo = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const redo = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"
+ })
+});
/* harmony default export */ const library_redo = (redo);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js
-
/**
* WordPress dependencies
*/
-const plus = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const plus = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
+ })
+});
/* harmony default export */ const library_plus = (plus);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
-
/**
* WordPress dependencies
*/
-const closeSmall = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const closeSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
+ })
+});
/* harmony default export */ const close_small = (closeSmall);
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/store/reducer.js
@@ -604,7 +516,6 @@ const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME,
(0,external_wp_data_namespaceObject.register)(store);
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/inserter/index.js
-
/**
* WordPress dependencies
*/
@@ -619,496 +530,73 @@ const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME,
* Internal dependencies
*/
+
+
function Inserter({
setIsOpened
}) {
const inserterTitleId = (0,external_wp_compose_namespaceObject.useInstanceId)(Inserter, 'customize-widget-layout__inserter-panel-title');
const insertionPoint = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).__experimentalGetInsertionPoint(), []);
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: "customize-widgets-layout__inserter-panel",
- "aria-labelledby": inserterTitleId
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "customize-widgets-layout__inserter-panel-header"
- }, (0,external_React_namespaceObject.createElement)("h2", {
- id: inserterTitleId,
- className: "customize-widgets-layout__inserter-panel-header-title"
- }, (0,external_wp_i18n_namespaceObject.__)('Add a block')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- className: "customize-widgets-layout__inserter-panel-header-close-button",
- icon: close_small,
- onClick: () => setIsOpened(false),
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Close inserter')
- })), (0,external_React_namespaceObject.createElement)("div", {
- className: "customize-widgets-layout__inserter-panel-content"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalLibrary, {
- rootClientId: insertionPoint.rootClientId,
- __experimentalInsertionIndex: insertionPoint.insertionIndex,
- showInserterHelpPanel: true,
- onSelect: () => setIsOpened(false)
- })));
+ "aria-labelledby": inserterTitleId,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "customize-widgets-layout__inserter-panel-header",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ id: inserterTitleId,
+ className: "customize-widgets-layout__inserter-panel-header-title",
+ children: (0,external_wp_i18n_namespaceObject.__)('Add a block')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "customize-widgets-layout__inserter-panel-header-close-button",
+ icon: close_small,
+ onClick: () => setIsOpened(false),
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Close inserter')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "customize-widgets-layout__inserter-panel-content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalLibrary, {
+ rootClientId: insertionPoint.rootClientId,
+ __experimentalInsertionIndex: insertionPoint.insertionIndex,
+ showInserterHelpPanel: true,
+ onSelect: () => setIsOpened(false)
+ })
+ })]
+ });
}
/* harmony default export */ const components_inserter = (Inserter);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
-
-/**
- * WordPress dependencies
- */
-
-const external = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"
-}));
-/* harmony default export */ const library_external = (external);
-
-;// CONCATENATED MODULE: external ["wp","keyboardShortcuts"]
-const external_wp_keyboardShortcuts_namespaceObject = window["wp"]["keyboardShortcuts"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
-
-/**
- * WordPress dependencies
- */
-
-const moreVertical = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
-}));
-/* harmony default export */ const more_vertical = (moreVertical);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/more-menu-dropdown/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-function MoreMenuDropdown({
- as: DropdownComponent = external_wp_components_namespaceObject.DropdownMenu,
- className,
- /* translators: button label text should, if possible, be under 16 characters. */
- label = (0,external_wp_i18n_namespaceObject.__)('Options'),
- popoverProps,
- toggleProps,
- children
-}) {
- return (0,external_React_namespaceObject.createElement)(DropdownComponent, {
- className: classnames_default()('interface-more-menu-dropdown', className),
- icon: more_vertical,
- label: label,
- popoverProps: {
- placement: 'bottom-end',
- ...popoverProps,
- className: classnames_default()('interface-more-menu-dropdown__content', popoverProps?.className)
- },
- toggleProps: {
- tooltipPosition: 'bottom',
- ...toggleProps,
- size: 'compact'
- }
- }, onClose => children(onClose));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/index.js
-
-
-
-
-
-
-
-
-
-
-;// CONCATENATED MODULE: external ["wp","deprecated"]
-const external_wp_deprecated_namespaceObject = window["wp"]["deprecated"];
-var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/actions.js
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Set a default complementary area.
- *
- * @param {string} scope Complementary area scope.
- * @param {string} area Area identifier.
- *
- * @return {Object} Action object.
- */
-const setDefaultComplementaryArea = (scope, area) => ({
- type: 'SET_DEFAULT_COMPLEMENTARY_AREA',
- scope,
- area
-});
-
-/**
- * Enable the complementary area.
- *
- * @param {string} scope Complementary area scope.
- * @param {string} area Area identifier.
- */
-const enableComplementaryArea = (scope, area) => ({
- registry,
- dispatch
-}) => {
- // Return early if there's no area.
- if (!area) {
- return;
- }
- const isComplementaryAreaVisible = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
- if (!isComplementaryAreaVisible) {
- registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'isComplementaryAreaVisible', true);
- }
- dispatch({
- type: 'ENABLE_COMPLEMENTARY_AREA',
- scope,
- area
- });
-};
-
-/**
- * Disable the complementary area.
- *
- * @param {string} scope Complementary area scope.
- */
-const disableComplementaryArea = scope => ({
- registry
-}) => {
- const isComplementaryAreaVisible = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
- if (isComplementaryAreaVisible) {
- registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'isComplementaryAreaVisible', false);
- }
-};
-
-/**
- * Pins an item.
- *
- * @param {string} scope Item scope.
- * @param {string} item Item identifier.
- *
- * @return {Object} Action object.
- */
-const pinItem = (scope, item) => ({
- registry
-}) => {
- // Return early if there's no item.
- if (!item) {
- return;
- }
- const pinnedItems = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'pinnedItems');
-
- // The item is already pinned, there's nothing to do.
- if (pinnedItems?.[item] === true) {
- return;
- }
- registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'pinnedItems', {
- ...pinnedItems,
- [item]: true
- });
-};
-
-/**
- * Unpins an item.
- *
- * @param {string} scope Item scope.
- * @param {string} item Item identifier.
- */
-const unpinItem = (scope, item) => ({
- registry
-}) => {
- // Return early if there's no item.
- if (!item) {
- return;
- }
- const pinnedItems = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'pinnedItems');
- registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'pinnedItems', {
- ...pinnedItems,
- [item]: false
- });
-};
-
-/**
- * Returns an action object used in signalling that a feature should be toggled.
- *
- * @param {string} scope The feature scope (e.g. core/edit-post).
- * @param {string} featureName The feature name.
- */
-function toggleFeature(scope, featureName) {
- return function ({
- registry
- }) {
- external_wp_deprecated_default()(`dispatch( 'core/interface' ).toggleFeature`, {
- since: '6.0',
- alternative: `dispatch( 'core/preferences' ).toggle`
- });
- registry.dispatch(external_wp_preferences_namespaceObject.store).toggle(scope, featureName);
- };
-}
-
-/**
- * Returns an action object used in signalling that a feature should be set to
- * a true or false value
- *
- * @param {string} scope The feature scope (e.g. core/edit-post).
- * @param {string} featureName The feature name.
- * @param {boolean} value The value to set.
- *
- * @return {Object} Action object.
- */
-function setFeatureValue(scope, featureName, value) {
- return function ({
- registry
- }) {
- external_wp_deprecated_default()(`dispatch( 'core/interface' ).setFeatureValue`, {
- since: '6.0',
- alternative: `dispatch( 'core/preferences' ).set`
- });
- registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, featureName, !!value);
- };
-}
-
-/**
- * Returns an action object used in signalling that defaults should be set for features.
- *
- * @param {string} scope The feature scope (e.g. core/edit-post).
- * @param {Object<string, boolean>} defaults A key/value map of feature names to values.
- *
- * @return {Object} Action object.
- */
-function setFeatureDefaults(scope, defaults) {
- return function ({
- registry
- }) {
- external_wp_deprecated_default()(`dispatch( 'core/interface' ).setFeatureDefaults`, {
- since: '6.0',
- alternative: `dispatch( 'core/preferences' ).setDefaults`
- });
- registry.dispatch(external_wp_preferences_namespaceObject.store).setDefaults(scope, defaults);
- };
-}
-
-/**
- * Returns an action object used in signalling that the user opened a modal.
- *
- * @param {string} name A string that uniquely identifies the modal.
- *
- * @return {Object} Action object.
- */
-function openModal(name) {
- return {
- type: 'OPEN_MODAL',
- name
- };
-}
-
-/**
- * Returns an action object signalling that the user closed a modal.
- *
- * @return {Object} Action object.
- */
-function closeModal() {
- return {
- type: 'CLOSE_MODAL'
- };
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/selectors.js
/**
* WordPress dependencies
*/
-
-
-/**
- * Returns the complementary area that is active in a given scope.
- *
- * @param {Object} state Global application state.
- * @param {string} scope Item scope.
- *
- * @return {string | null | undefined} The complementary area that is active in the given scope.
- */
-const getActiveComplementaryArea = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope) => {
- const isComplementaryAreaVisible = select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
-
- // Return `undefined` to indicate that the user has never toggled
- // visibility, this is the vanilla default. Other code relies on this
- // nuance in the return value.
- if (isComplementaryAreaVisible === undefined) {
- return undefined;
- }
-
- // Return `null` to indicate the user hid the complementary area.
- if (isComplementaryAreaVisible === false) {
- return null;
- }
- return state?.complementaryAreas?.[scope];
-});
-const isComplementaryAreaLoading = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope) => {
- const isVisible = select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
- const identifier = state?.complementaryAreas?.[scope];
- return isVisible && identifier === undefined;
-});
-
-/**
- * Returns a boolean indicating if an item is pinned or not.
- *
- * @param {Object} state Global application state.
- * @param {string} scope Scope.
- * @param {string} item Item to check.
- *
- * @return {boolean} True if the item is pinned and false otherwise.
- */
-const isItemPinned = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope, item) => {
- var _pinnedItems$item;
- const pinnedItems = select(external_wp_preferences_namespaceObject.store).get(scope, 'pinnedItems');
- return (_pinnedItems$item = pinnedItems?.[item]) !== null && _pinnedItems$item !== void 0 ? _pinnedItems$item : true;
-});
-
-/**
- * Returns a boolean indicating whether a feature is active for a particular
- * scope.
- *
- * @param {Object} state The store state.
- * @param {string} scope The scope of the feature (e.g. core/edit-post).
- * @param {string} featureName The name of the feature.
- *
- * @return {boolean} Is the feature enabled?
- */
-const isFeatureActive = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope, featureName) => {
- external_wp_deprecated_default()(`select( 'core/interface' ).isFeatureActive( scope, featureName )`, {
- since: '6.0',
- alternative: `select( 'core/preferences' ).get( scope, featureName )`
- });
- return !!select(external_wp_preferences_namespaceObject.store).get(scope, featureName);
+const moreVertical = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
+ })
});
+/* harmony default export */ const more_vertical = (moreVertical);
-/**
- * Returns true if a modal is active, or false otherwise.
- *
- * @param {Object} state Global application state.
- * @param {string} modalName A string that uniquely identifies the modal.
- *
- * @return {boolean} Whether the modal is active.
- */
-function isModalActive(state, modalName) {
- return state.activeModal === modalName;
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/reducer.js
-/**
- * WordPress dependencies
- */
-
-function complementaryAreas(state = {}, action) {
- switch (action.type) {
- case 'SET_DEFAULT_COMPLEMENTARY_AREA':
- {
- const {
- scope,
- area
- } = action;
-
- // If there's already an area, don't overwrite it.
- if (state[scope]) {
- return state;
- }
- return {
- ...state,
- [scope]: area
- };
- }
- case 'ENABLE_COMPLEMENTARY_AREA':
- {
- const {
- scope,
- area
- } = action;
- return {
- ...state,
- [scope]: area
- };
- }
- }
- return state;
-}
-
-/**
- * Reducer for storing the name of the open modal, or null if no modal is open.
- *
- * @param {Object} state Previous state.
- * @param {Object} action Action object containing the `name` of the modal
- *
- * @return {Object} Updated state
- */
-function activeModal(state = null, action) {
- switch (action.type) {
- case 'OPEN_MODAL':
- return action.name;
- case 'CLOSE_MODAL':
- return null;
- }
- return state;
-}
-/* harmony default export */ const store_reducer = ((0,external_wp_data_namespaceObject.combineReducers)({
- complementaryAreas,
- activeModal
-}));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/constants.js
-/**
- * The identifier for the data store.
- *
- * @type {string}
- */
-const constants_STORE_NAME = 'core/interface';
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/index.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
/**
* WordPress dependencies
*/
-/**
- * Internal dependencies
- */
-
-
-
-
-
-/**
- * Store definition for the interface namespace.
- *
- * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
- *
- * @type {Object}
- */
-const store_store = (0,external_wp_data_namespaceObject.createReduxStore)(constants_STORE_NAME, {
- reducer: store_reducer,
- actions: store_actions_namespaceObject,
- selectors: store_selectors_namespaceObject
+const external = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"
+ })
});
+/* harmony default export */ const library_external = (external);
-// Once we build a more generic persistence plugin that works across types of stores
-// we'd be able to replace this with a register call.
-(0,external_wp_data_namespaceObject.register)(store_store);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/index.js
-
-
-
+;// CONCATENATED MODULE: external ["wp","keyboardShortcuts"]
+const external_wp_keyboardShortcuts_namespaceObject = window["wp"]["keyboardShortcuts"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/keyboard-shortcut-help-modal/config.js
/**
* WordPress dependencies
@@ -1166,6 +654,10 @@ const textFormattingShortcuts = [{
modifier: 'access',
character: '0'
},
+ aliases: [{
+ modifier: 'access',
+ character: '7'
+ }],
description: (0,external_wp_i18n_namespaceObject.__)('Convert the current heading to a paragraph.')
}, {
keyCombination: {
@@ -1173,35 +665,44 @@ const textFormattingShortcuts = [{
character: '1-6'
},
description: (0,external_wp_i18n_namespaceObject.__)('Convert the current paragraph or heading to a heading of level 1 to 6.')
+}, {
+ keyCombination: {
+ modifier: 'primaryShift',
+ character: 'SPACE'
+ },
+ description: (0,external_wp_i18n_namespaceObject.__)('Add non breaking space.')
}];
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/keyboard-shortcut-help-modal/shortcut.js
-
/**
* WordPress dependencies
*/
+
+
+
function KeyCombination({
keyCombination,
forceAriaLabel
}) {
const shortcut = keyCombination.modifier ? external_wp_keycodes_namespaceObject.displayShortcutList[keyCombination.modifier](keyCombination.character) : keyCombination.character;
const ariaLabel = keyCombination.modifier ? external_wp_keycodes_namespaceObject.shortcutAriaLabel[keyCombination.modifier](keyCombination.character) : keyCombination.character;
- return (0,external_React_namespaceObject.createElement)("kbd", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("kbd", {
className: "customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination",
- "aria-label": forceAriaLabel || ariaLabel
- }, (Array.isArray(shortcut) ? shortcut : [shortcut]).map((character, index) => {
- if (character === '+') {
- return (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, {
- key: index
- }, character);
- }
- return (0,external_React_namespaceObject.createElement)("kbd", {
- key: index,
- className: "customize-widgets-keyboard-shortcut-help-modal__shortcut-key"
- }, character);
- }));
+ "aria-label": forceAriaLabel || ariaLabel,
+ children: (Array.isArray(shortcut) ? shortcut : [shortcut]).map((character, index) => {
+ if (character === '+') {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.Fragment, {
+ children: character
+ }, index);
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("kbd", {
+ className: "customize-widgets-keyboard-shortcut-help-modal__shortcut-key",
+ children: character
+ }, index);
+ })
+ });
}
function Shortcut({
description,
@@ -1209,23 +710,25 @@ function Shortcut({
aliases = [],
ariaLabel
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("div", {
- className: "customize-widgets-keyboard-shortcut-help-modal__shortcut-description"
- }, description), (0,external_React_namespaceObject.createElement)("div", {
- className: "customize-widgets-keyboard-shortcut-help-modal__shortcut-term"
- }, (0,external_React_namespaceObject.createElement)(KeyCombination, {
- keyCombination: keyCombination,
- forceAriaLabel: ariaLabel
- }), aliases.map((alias, index) => (0,external_React_namespaceObject.createElement)(KeyCombination, {
- keyCombination: alias,
- forceAriaLabel: ariaLabel,
- key: index
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "customize-widgets-keyboard-shortcut-help-modal__shortcut-description",
+ children: description
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "customize-widgets-keyboard-shortcut-help-modal__shortcut-term",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(KeyCombination, {
+ keyCombination: keyCombination,
+ forceAriaLabel: ariaLabel
+ }), aliases.map((alias, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(KeyCombination, {
+ keyCombination: alias,
+ forceAriaLabel: ariaLabel
+ }, index))]
+ })]
+ });
}
/* harmony default export */ const keyboard_shortcut_help_modal_shortcut = (Shortcut);
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js
-
/**
* WordPress dependencies
*/
@@ -1236,6 +739,7 @@ function Shortcut({
* Internal dependencies
*/
+
function DynamicShortcut({
name
}) {
@@ -1258,7 +762,7 @@ function DynamicShortcut({
if (!keyCombination) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(keyboard_shortcut_help_modal_shortcut, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(keyboard_shortcut_help_modal_shortcut, {
keyCombination: keyCombination,
description: description,
aliases: aliases
@@ -1267,7 +771,6 @@ function DynamicShortcut({
/* harmony default export */ const dynamic_shortcut = (DynamicShortcut);
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/keyboard-shortcut-help-modal/index.js
-
/**
* External dependencies
*/
@@ -1287,37 +790,43 @@ function DynamicShortcut({
+
+
const ShortcutList = ({
shortcuts
}) =>
+/*#__PURE__*/
/*
* Disable reason: The `list` ARIA role is redundant but
* Safari+VoiceOver won't announce the list otherwise.
*/
/* eslint-disable jsx-a11y/no-redundant-roles */
-(0,external_React_namespaceObject.createElement)("ul", {
+(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
className: "customize-widgets-keyboard-shortcut-help-modal__shortcut-list",
- role: "list"
-}, shortcuts.map((shortcut, index) => (0,external_React_namespaceObject.createElement)("li", {
- className: "customize-widgets-keyboard-shortcut-help-modal__shortcut",
- key: index
-}, typeof shortcut === 'string' ? (0,external_React_namespaceObject.createElement)(dynamic_shortcut, {
- name: shortcut
-}) : (0,external_React_namespaceObject.createElement)(keyboard_shortcut_help_modal_shortcut, {
- ...shortcut
-}))))
+ role: "list",
+ children: shortcuts.map((shortcut, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ className: "customize-widgets-keyboard-shortcut-help-modal__shortcut",
+ children: typeof shortcut === 'string' ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dynamic_shortcut, {
+ name: shortcut
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(keyboard_shortcut_help_modal_shortcut, {
+ ...shortcut
+ })
+ }, index))
+})
/* eslint-enable jsx-a11y/no-redundant-roles */;
const ShortcutSection = ({
title,
shortcuts,
className
-}) => (0,external_React_namespaceObject.createElement)("section", {
- className: classnames_default()('customize-widgets-keyboard-shortcut-help-modal__section', className)
-}, !!title && (0,external_React_namespaceObject.createElement)("h2", {
- className: "customize-widgets-keyboard-shortcut-help-modal__section-title"
-}, title), (0,external_React_namespaceObject.createElement)(ShortcutList, {
- shortcuts: shortcuts
-}));
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("section", {
+ className: dist_clsx('customize-widgets-keyboard-shortcut-help-modal__section', className),
+ children: [!!title && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ className: "customize-widgets-keyboard-shortcut-help-modal__section-title",
+ children: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutList, {
+ shortcuts: shortcuts
+ })]
+});
const ShortcutCategorySection = ({
title,
categoryName,
@@ -1326,7 +835,7 @@ const ShortcutCategorySection = ({
const categoryShortcuts = (0,external_wp_data_namespaceObject.useSelect)(select => {
return select(external_wp_keyboardShortcuts_namespaceObject.store).getCategoryShortcuts(categoryName);
}, [categoryName]);
- return (0,external_React_namespaceObject.createElement)(ShortcutSection, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutSection, {
title: title,
shortcuts: categoryShortcuts.concat(additionalShortcuts)
});
@@ -1351,38 +860,38 @@ function KeyboardShortcutHelpModal({
if (!isModalActive) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Modal, {
className: "customize-widgets-keyboard-shortcut-help-modal",
title: (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts'),
- onRequestClose: toggleModal
- }, (0,external_React_namespaceObject.createElement)(ShortcutSection, {
- className: "customize-widgets-keyboard-shortcut-help-modal__main-shortcuts",
- shortcuts: ['core/customize-widgets/keyboard-shortcuts']
- }), (0,external_React_namespaceObject.createElement)(ShortcutCategorySection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Global shortcuts'),
- categoryName: "global"
- }), (0,external_React_namespaceObject.createElement)(ShortcutCategorySection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Selection shortcuts'),
- categoryName: "selection"
- }), (0,external_React_namespaceObject.createElement)(ShortcutCategorySection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Block shortcuts'),
- categoryName: "block",
- additionalShortcuts: [{
- keyCombination: {
- character: '/'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Change the block type after adding a new paragraph.'),
- /* translators: The forward-slash character. e.g. '/'. */
- ariaLabel: (0,external_wp_i18n_namespaceObject.__)('Forward-slash')
- }]
- }), (0,external_React_namespaceObject.createElement)(ShortcutSection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Text formatting'),
- shortcuts: textFormattingShortcuts
- }));
+ onRequestClose: toggleModal,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutSection, {
+ className: "customize-widgets-keyboard-shortcut-help-modal__main-shortcuts",
+ shortcuts: ['core/customize-widgets/keyboard-shortcuts']
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutCategorySection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Global shortcuts'),
+ categoryName: "global"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutCategorySection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Selection shortcuts'),
+ categoryName: "selection"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutCategorySection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Block shortcuts'),
+ categoryName: "block",
+ additionalShortcuts: [{
+ keyCombination: {
+ character: '/'
+ },
+ description: (0,external_wp_i18n_namespaceObject.__)('Change the block type after adding a new paragraph.'),
+ /* translators: The forward-slash character. e.g. '/'. */
+ ariaLabel: (0,external_wp_i18n_namespaceObject.__)('Forward-slash')
+ }]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutSection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Text formatting'),
+ shortcuts: textFormattingShortcuts
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/more-menu/index.js
-
/**
* WordPress dependencies
*/
@@ -1394,63 +903,84 @@ function KeyboardShortcutHelpModal({
-
/**
* Internal dependencies
*/
+
+
+
function MoreMenu() {
const [isKeyboardShortcutsModalActive, setIsKeyboardShortcutsModalVisible] = (0,external_wp_element_namespaceObject.useState)(false);
const toggleKeyboardShortcutsModal = () => setIsKeyboardShortcutsModalVisible(!isKeyboardShortcutsModalActive);
(0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/customize-widgets/keyboard-shortcuts', toggleKeyboardShortcutsModal);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(MoreMenuDropdown, {
- as: external_wp_components_namespaceObject.ToolbarDropdownMenu
- }, () => (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject._x)('View', 'noun')
- }, (0,external_React_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
- scope: "core/customize-widgets",
- name: "fixedToolbar",
- label: (0,external_wp_i18n_namespaceObject.__)('Top toolbar'),
- info: (0,external_wp_i18n_namespaceObject.__)('Access all block and document tools in a single place'),
- messageActivated: (0,external_wp_i18n_namespaceObject.__)('Top toolbar activated'),
- messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Top toolbar deactivated')
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Tools')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- setIsKeyboardShortcutsModalVisible(true);
- },
- shortcut: external_wp_keycodes_namespaceObject.displayShortcut.access('h')
- }, (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts')), (0,external_React_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
- scope: "core/customize-widgets",
- name: "welcomeGuide",
- label: (0,external_wp_i18n_namespaceObject.__)('Welcome Guide')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- role: "menuitem",
- icon: library_external,
- href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/block-based-widgets-editor/'),
- target: "_blank",
- rel: "noopener noreferrer"
- }, (0,external_wp_i18n_namespaceObject.__)('Help'), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "span"
- }, /* translators: accessibility text */
- (0,external_wp_i18n_namespaceObject.__)('(opens in a new tab)')))), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Preferences')
- }, (0,external_React_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
- scope: "core/customize-widgets",
- name: "keepCaretInsideBlock",
- label: (0,external_wp_i18n_namespaceObject.__)('Contain text cursor inside block'),
- info: (0,external_wp_i18n_namespaceObject.__)('Aids screen readers by stopping text caret from leaving blocks.'),
- messageActivated: (0,external_wp_i18n_namespaceObject.__)('Contain text cursor inside block activated'),
- messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Contain text cursor inside block deactivated')
- })))), (0,external_React_namespaceObject.createElement)(KeyboardShortcutHelpModal, {
- isModalActive: isKeyboardShortcutsModalActive,
- toggleModal: toggleKeyboardShortcutsModal
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarDropdownMenu, {
+ icon: more_vertical,
+ label: (0,external_wp_i18n_namespaceObject.__)('Options'),
+ popoverProps: {
+ placement: 'bottom-end',
+ className: 'more-menu-dropdown__content'
+ },
+ toggleProps: {
+ tooltipPosition: 'bottom',
+ size: 'compact'
+ },
+ children: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ label: (0,external_wp_i18n_namespaceObject._x)('View', 'noun'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
+ scope: "core/customize-widgets",
+ name: "fixedToolbar",
+ label: (0,external_wp_i18n_namespaceObject.__)('Top toolbar'),
+ info: (0,external_wp_i18n_namespaceObject.__)('Access all block and document tools in a single place'),
+ messageActivated: (0,external_wp_i18n_namespaceObject.__)('Top toolbar activated'),
+ messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Top toolbar deactivated')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Tools'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ setIsKeyboardShortcutsModalVisible(true);
+ },
+ shortcut: external_wp_keycodes_namespaceObject.displayShortcut.access('h'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
+ scope: "core/customize-widgets",
+ name: "welcomeGuide",
+ label: (0,external_wp_i18n_namespaceObject.__)('Welcome Guide')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuItem, {
+ role: "menuitem",
+ icon: library_external,
+ href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/block-based-widgets-editor/'),
+ target: "_blank",
+ rel: "noopener noreferrer",
+ children: [(0,external_wp_i18n_namespaceObject.__)('Help'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ as: "span",
+ children: /* translators: accessibility text */
+ (0,external_wp_i18n_namespaceObject.__)('(opens in a new tab)')
+ })]
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Preferences'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
+ scope: "core/customize-widgets",
+ name: "keepCaretInsideBlock",
+ label: (0,external_wp_i18n_namespaceObject.__)('Contain text cursor inside block'),
+ info: (0,external_wp_i18n_namespaceObject.__)('Aids screen readers by stopping text caret from leaving blocks.'),
+ messageActivated: (0,external_wp_i18n_namespaceObject.__)('Contain text cursor inside block activated'),
+ messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Contain text cursor inside block deactivated')
+ })
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(KeyboardShortcutHelpModal, {
+ isModalActive: isKeyboardShortcutsModalActive,
+ toggleModal: toggleKeyboardShortcutsModal
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/header/index.js
-
/**
* External dependencies
*/
@@ -1471,6 +1001,9 @@ function MoreMenu() {
*/
+
+
+
function Header({
sidebar,
inserter,
@@ -1485,49 +1018,53 @@ function Header({
setUndoRedo([sidebar.hasUndo(), sidebar.hasRedo()]);
});
}, [sidebar]);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("div", {
- className: classnames_default()('customize-widgets-header', {
- 'is-fixed-toolbar-active': isFixedToolbarActive
- })
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.NavigableToolbar, {
- className: "customize-widgets-header-toolbar",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Document tools')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- icon: !(0,external_wp_i18n_namespaceObject.isRTL)() ? library_undo : library_redo
- /* translators: button label text should, if possible, be under 16 characters. */,
- label: (0,external_wp_i18n_namespaceObject.__)('Undo'),
- shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('z')
- // If there are no undo levels we don't want to actually disable this
- // button, because it will remove focus for keyboard users.
- // See: https://github.com/WordPress/gutenberg/issues/3486
- ,
- "aria-disabled": !hasUndo,
- onClick: sidebar.undo,
- className: "customize-widgets-editor-history-button undo-button"
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- icon: !(0,external_wp_i18n_namespaceObject.isRTL)() ? library_redo : library_undo
- /* translators: button label text should, if possible, be under 16 characters. */,
- label: (0,external_wp_i18n_namespaceObject.__)('Redo'),
- shortcut: shortcut
- // If there are no undo levels we don't want to actually disable this
- // button, because it will remove focus for keyboard users.
- // See: https://github.com/WordPress/gutenberg/issues/3486
- ,
- "aria-disabled": !hasRedo,
- onClick: sidebar.redo,
- className: "customize-widgets-editor-history-button redo-button"
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- className: "customize-widgets-header-toolbar__inserter-toggle",
- isPressed: isInserterOpened,
- variant: "primary",
- icon: library_plus,
- label: (0,external_wp_i18n_namespaceObject._x)('Add block', 'Generic label for block inserter button'),
- onClick: () => {
- setIsInserterOpened(isOpen => !isOpen);
- }
- }), (0,external_React_namespaceObject.createElement)(MoreMenu, null))), (0,external_wp_element_namespaceObject.createPortal)((0,external_React_namespaceObject.createElement)(components_inserter, {
- setIsOpened: setIsInserterOpened
- }), inserter.contentContainer[0]));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('customize-widgets-header', {
+ 'is-fixed-toolbar-active': isFixedToolbarActive
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.NavigableToolbar, {
+ className: "customize-widgets-header-toolbar",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Document tools'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ icon: !(0,external_wp_i18n_namespaceObject.isRTL)() ? library_undo : library_redo
+ /* translators: button label text should, if possible, be under 16 characters. */,
+ label: (0,external_wp_i18n_namespaceObject.__)('Undo'),
+ shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('z')
+ // If there are no undo levels we don't want to actually disable this
+ // button, because it will remove focus for keyboard users.
+ // See: https://github.com/WordPress/gutenberg/issues/3486
+ ,
+ "aria-disabled": !hasUndo,
+ onClick: sidebar.undo,
+ className: "customize-widgets-editor-history-button undo-button"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ icon: !(0,external_wp_i18n_namespaceObject.isRTL)() ? library_redo : library_undo
+ /* translators: button label text should, if possible, be under 16 characters. */,
+ label: (0,external_wp_i18n_namespaceObject.__)('Redo'),
+ shortcut: shortcut
+ // If there are no undo levels we don't want to actually disable this
+ // button, because it will remove focus for keyboard users.
+ // See: https://github.com/WordPress/gutenberg/issues/3486
+ ,
+ "aria-disabled": !hasRedo,
+ onClick: sidebar.redo,
+ className: "customize-widgets-editor-history-button redo-button"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ className: "customize-widgets-header-toolbar__inserter-toggle",
+ isPressed: isInserterOpened,
+ variant: "primary",
+ icon: library_plus,
+ label: (0,external_wp_i18n_namespaceObject._x)('Add block', 'Generic label for block inserter button'),
+ onClick: () => {
+ setIsInserterOpened(isOpen => !isOpen);
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MoreMenu, {})]
+ })
+ }), (0,external_wp_element_namespaceObject.createPortal)( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(components_inserter, {
+ setIsOpened: setIsInserterOpened
+ }), inserter.contentContainer[0])]
+ });
}
/* harmony default export */ const header = (Header);
@@ -1797,7 +1334,6 @@ function useSidebarBlockEditor(sidebar) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/focus-control/index.js
-
/**
* WordPress dependencies
*/
@@ -1807,6 +1343,7 @@ function useSidebarBlockEditor(sidebar) {
* Internal dependencies
*/
+
const FocusControlContext = (0,external_wp_element_namespaceObject.createContext)();
function FocusControl({
api,
@@ -1854,9 +1391,10 @@ function FocusControl({
};
}, [api, focusWidget]);
const context = (0,external_wp_element_namespaceObject.useMemo)(() => [focusedWidgetIdRef, focusWidget], [focusedWidgetIdRef, focusWidget]);
- return (0,external_React_namespaceObject.createElement)(FocusControlContext.Provider, {
- value: context
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FocusControlContext.Provider, {
+ value: context,
+ children: children
+ });
}
const useFocusControl = () => (0,external_wp_element_namespaceObject.useContext)(FocusControlContext);
@@ -1907,10 +1445,9 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
const {
lock,
unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/customize-widgets');
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/customize-widgets');
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/sidebar-block-editor/sidebar-editor-provider.js
-
/**
* WordPress dependencies
*/
@@ -1922,6 +1459,7 @@ const {
+
const {
ExperimentalBlockEditorProvider
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
@@ -1932,17 +1470,17 @@ function SidebarEditorProvider({
}) {
const [blocks, onInput, onChange] = useSidebarBlockEditor(sidebar);
useBlocksFocusControl(blocks);
- return (0,external_React_namespaceObject.createElement)(ExperimentalBlockEditorProvider, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ExperimentalBlockEditorProvider, {
value: blocks,
onInput: onInput,
onChange: onChange,
settings: settings,
- useSubRegistry: false
- }, children);
+ useSubRegistry: false,
+ children: children
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/welcome-guide/index.js
-
/**
* WordPress dependencies
*/
@@ -1950,6 +1488,8 @@ function SidebarEditorProvider({
+
+
function WelcomeGuide({
sidebar
}) {
@@ -1957,38 +1497,49 @@ function WelcomeGuide({
toggle
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
const isEntirelyBlockWidgets = sidebar.getWidgets().every(widget => widget.id.startsWith('block-'));
- return (0,external_React_namespaceObject.createElement)("div", {
- className: "customize-widgets-welcome-guide"
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "customize-widgets-welcome-guide__image__wrapper"
- }, (0,external_React_namespaceObject.createElement)("picture", null, (0,external_React_namespaceObject.createElement)("source", {
- srcSet: "https://s.w.org/images/block-editor/welcome-editor.svg",
- media: "(prefers-reduced-motion: reduce)"
- }), (0,external_React_namespaceObject.createElement)("img", {
- className: "customize-widgets-welcome-guide__image",
- src: "https://s.w.org/images/block-editor/welcome-editor.gif",
- width: "312",
- height: "240",
- alt: ""
- }))), (0,external_React_namespaceObject.createElement)("h1", {
- className: "customize-widgets-welcome-guide__heading"
- }, (0,external_wp_i18n_namespaceObject.__)('Welcome to block Widgets')), (0,external_React_namespaceObject.createElement)("p", {
- className: "customize-widgets-welcome-guide__text"
- }, isEntirelyBlockWidgets ? (0,external_wp_i18n_namespaceObject.__)('Your theme provides different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.') : (0,external_wp_i18n_namespaceObject.__)('You can now add any block to your site’s widget areas. Don’t worry, all of your favorite widgets still work flawlessly.')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- className: "customize-widgets-welcome-guide__button",
- variant: "primary",
- onClick: () => toggle('core/customize-widgets', 'welcomeGuide')
- }, (0,external_wp_i18n_namespaceObject.__)('Got it')), (0,external_React_namespaceObject.createElement)("hr", {
- className: "customize-widgets-welcome-guide__separator"
- }), !isEntirelyBlockWidgets && (0,external_React_namespaceObject.createElement)("p", {
- className: "customize-widgets-welcome-guide__more-info"
- }, (0,external_wp_i18n_namespaceObject.__)('Want to stick with the old widgets?'), (0,external_React_namespaceObject.createElement)("br", null), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/plugins/classic-widgets/')
- }, (0,external_wp_i18n_namespaceObject.__)('Get the Classic Widgets plugin.'))), (0,external_React_namespaceObject.createElement)("p", {
- className: "customize-widgets-welcome-guide__more-info"
- }, (0,external_wp_i18n_namespaceObject.__)('New to the block editor?'), (0,external_React_namespaceObject.createElement)("br", null), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/wordpress-block-editor/')
- }, (0,external_wp_i18n_namespaceObject.__)("Here's a detailed guide."))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "customize-widgets-welcome-guide",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "customize-widgets-welcome-guide__image__wrapper",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("picture", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("source", {
+ srcSet: "https://s.w.org/images/block-editor/welcome-editor.svg",
+ media: "(prefers-reduced-motion: reduce)"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ className: "customize-widgets-welcome-guide__image",
+ src: "https://s.w.org/images/block-editor/welcome-editor.gif",
+ width: "312",
+ height: "240",
+ alt: ""
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ className: "customize-widgets-welcome-guide__heading",
+ children: (0,external_wp_i18n_namespaceObject.__)('Welcome to block Widgets')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "customize-widgets-welcome-guide__text",
+ children: isEntirelyBlockWidgets ? (0,external_wp_i18n_namespaceObject.__)('Your theme provides different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.') : (0,external_wp_i18n_namespaceObject.__)('You can now add any block to your site’s widget areas. Don’t worry, all of your favorite widgets still work flawlessly.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "customize-widgets-welcome-guide__button",
+ variant: "primary",
+ onClick: () => toggle('core/customize-widgets', 'welcomeGuide'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Got it')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("hr", {
+ className: "customize-widgets-welcome-guide__separator"
+ }), !isEntirelyBlockWidgets && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("p", {
+ className: "customize-widgets-welcome-guide__more-info",
+ children: [(0,external_wp_i18n_namespaceObject.__)('Want to stick with the old widgets?'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("br", {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/plugins/classic-widgets/'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Get the Classic Widgets plugin.')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("p", {
+ className: "customize-widgets-welcome-guide__more-info",
+ children: [(0,external_wp_i18n_namespaceObject.__)('New to the block editor?'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("br", {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/wordpress-block-editor/'),
+ children: (0,external_wp_i18n_namespaceObject.__)("Here's a detailed guide.")
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/keyboard-shortcuts/index.js
@@ -2000,43 +1551,11 @@ function WelcomeGuide({
-
-
function KeyboardShortcuts({
undo,
redo,
save
}) {
- const {
- replaceBlocks
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- const {
- getBlockName,
- getSelectedBlockClientId,
- getBlockAttributes
- } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
- const handleTextLevelShortcut = (event, level) => {
- event.preventDefault();
- const destinationBlockName = level === 0 ? 'core/paragraph' : 'core/heading';
- const currentClientId = getSelectedBlockClientId();
- if (currentClientId === null) {
- return;
- }
- const blockName = getBlockName(currentClientId);
- if (blockName !== 'core/paragraph' && blockName !== 'core/heading') {
- return;
- }
- const attributes = getBlockAttributes(currentClientId);
- const textAlign = blockName === 'core/paragraph' ? 'align' : 'textAlign';
- const destinationTextAlign = destinationBlockName === 'core/paragraph' ? 'align' : 'textAlign';
- replaceBlocks(currentClientId, (0,external_wp_blocks_namespaceObject.createBlock)(destinationBlockName, {
- level,
- content: attributes.content,
- ...{
- [destinationTextAlign]: attributes[textAlign]
- }
- }));
- };
(0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/customize-widgets/undo', event => {
undo();
event.preventDefault();
@@ -2049,13 +1568,6 @@ function KeyboardShortcuts({
event.preventDefault();
save();
});
- (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/customize-widgets/transform-heading-to-paragraph', event => handleTextLevelShortcut(event, 0));
- [1, 2, 3, 4, 5, 6].forEach(level => {
- //the loop is based off on a constant therefore
- //the hook will execute the same way every time
- //eslint-disable-next-line react-hooks/rules-of-hooks
- (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)(`core/customize-widgets/transform-paragraph-to-heading-${level}`, event => handleTextLevelShortcut(event, level));
- });
return null;
}
function KeyboardShortcutsRegister() {
@@ -2099,26 +1611,6 @@ function KeyboardShortcutsRegister() {
character: 's'
}
});
- registerShortcut({
- name: 'core/customize-widgets/transform-heading-to-paragraph',
- category: 'block-library',
- description: (0,external_wp_i18n_namespaceObject.__)('Transform heading to paragraph.'),
- keyCombination: {
- modifier: 'access',
- character: `0`
- }
- });
- [1, 2, 3, 4, 5, 6].forEach(level => {
- registerShortcut({
- name: `core/customize-widgets/transform-paragraph-to-heading-${level}`,
- category: 'block-library',
- description: (0,external_wp_i18n_namespaceObject.__)('Transform paragraph to heading.'),
- keyCombination: {
- modifier: 'access',
- character: `${level}`
- }
- });
- });
return () => {
unregisterShortcut('core/customize-widgets/undo');
unregisterShortcut('core/customize-widgets/redo');
@@ -2131,13 +1623,13 @@ KeyboardShortcuts.Register = KeyboardShortcutsRegister;
/* harmony default export */ const keyboard_shortcuts = (KeyboardShortcuts);
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/block-appender/index.js
-
/**
* WordPress dependencies
*/
+
function BlockAppender(props) {
const ref = (0,external_wp_element_namespaceObject.useRef)();
const isBlocksListEmpty = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).getBlockCount() === 0);
@@ -2154,14 +1646,13 @@ function BlockAppender(props) {
}
}
}, [isBlocksListEmpty]);
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.ButtonBlockAppender, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.ButtonBlockAppender, {
...props,
ref: ref
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/sidebar-block-editor/index.js
-
/**
* WordPress dependencies
*/
@@ -2173,6 +1664,7 @@ function BlockAppender(props) {
+
/**
* Internal dependencies
*/
@@ -2184,9 +1676,15 @@ function BlockAppender(props) {
+
+
+
const {
ExperimentalBlockCanvas: BlockCanvas
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+const {
+ BlockKeyboardShortcuts
+} = unlock(external_wp_blockLibrary_namespaceObject.privateApis);
function SidebarBlockEditor({
blockEditorSettings,
sidebar,
@@ -2238,50 +1736,58 @@ function SidebarBlockEditor({
};
}, [hasUploadPermissions, blockEditorSettings, isFixedToolbarActive, isMediumViewport, keepCaretInsideBlock, setIsInserterOpened]);
if (isWelcomeGuideActive) {
- return (0,external_React_namespaceObject.createElement)(WelcomeGuide, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuide, {
sidebar: sidebar
});
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(keyboard_shortcuts.Register, null), (0,external_React_namespaceObject.createElement)(SidebarEditorProvider, {
- sidebar: sidebar,
- settings: settings
- }, (0,external_React_namespaceObject.createElement)(keyboard_shortcuts, {
- undo: sidebar.undo,
- redo: sidebar.redo,
- save: sidebar.save
- }), (0,external_React_namespaceObject.createElement)(header, {
- sidebar: sidebar,
- inserter: inserter,
- isInserterOpened: isInserterOpened,
- setIsInserterOpened: setIsInserterOpened,
- isFixedToolbarActive: isFixedToolbarActive || !isMediumViewport
- }), (isFixedToolbarActive || !isMediumViewport) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockToolbar, {
- hideDragHandle: true
- }), (0,external_React_namespaceObject.createElement)(BlockCanvas, {
- shouldIframe: false,
- styles: settings.defaultEditorStyles,
- height: "100%"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockList, {
- renderAppender: BlockAppender
- })), (0,external_wp_element_namespaceObject.createPortal)(
- // This is a temporary hack to prevent button component inside <BlockInspector>
- // from submitting form when type="button" is not specified.
- (0,external_React_namespaceObject.createElement)("form", {
- onSubmit: event => event.preventDefault()
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockInspector, null)), inspector.contentContainer[0])), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__unstableBlockSettingsMenuFirstItem, null, ({
- onClose
- }) => (0,external_React_namespaceObject.createElement)(block_inspector_button, {
- inspector: inspector,
- closeMenu: onClose
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(keyboard_shortcuts.Register, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockKeyboardShortcuts, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(SidebarEditorProvider, {
+ sidebar: sidebar,
+ settings: settings,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(keyboard_shortcuts, {
+ undo: sidebar.undo,
+ redo: sidebar.redo,
+ save: sidebar.save
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(header, {
+ sidebar: sidebar,
+ inserter: inserter,
+ isInserterOpened: isInserterOpened,
+ setIsInserterOpened: setIsInserterOpened,
+ isFixedToolbarActive: isFixedToolbarActive || !isMediumViewport
+ }), (isFixedToolbarActive || !isMediumViewport) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockToolbar, {
+ hideDragHandle: true
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockCanvas, {
+ shouldIframe: false,
+ styles: settings.defaultEditorStyles,
+ height: "100%",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockList, {
+ renderAppender: BlockAppender
+ })
+ }), (0,external_wp_element_namespaceObject.createPortal)(
+ /*#__PURE__*/
+ // This is a temporary hack to prevent button component inside <BlockInspector>
+ // from submitting form when type="button" is not specified.
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ onSubmit: event => event.preventDefault(),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockInspector, {})
+ }), inspector.contentContainer[0])]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__unstableBlockSettingsMenuFirstItem, {
+ children: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_inspector_button, {
+ inspector: inspector,
+ closeMenu: onClose
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/sidebar-controls/index.js
-
/**
* WordPress dependencies
*/
+
const SidebarControlsContext = (0,external_wp_element_namespaceObject.createContext)();
function SidebarControls({
sidebarControls,
@@ -2292,9 +1798,10 @@ function SidebarControls({
sidebarControls,
activeSidebarControl
}), [sidebarControls, activeSidebarControl]);
- return (0,external_React_namespaceObject.createElement)(SidebarControlsContext.Provider, {
- value: context
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarControlsContext.Provider, {
+ value: context,
+ children: children
+ });
}
function useSidebarControls() {
const {
@@ -2380,7 +1887,6 @@ function useClearSelectedBlock(sidebarControl, popoverRef) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/customize-widgets/index.js
-
/**
* WordPress dependencies
*/
@@ -2395,6 +1901,8 @@ function useClearSelectedBlock(sidebarControl, popoverRef) {
+
+
function CustomizeWidgets({
api,
sidebarControls,
@@ -2414,27 +1922,33 @@ function CustomizeWidgets({
unsubscribers.forEach(unsubscriber => unsubscriber());
};
}, [sidebarControls]);
- const activeSidebar = activeSidebarControl && (0,external_wp_element_namespaceObject.createPortal)((0,external_React_namespaceObject.createElement)(ErrorBoundary, null, (0,external_React_namespaceObject.createElement)(SidebarBlockEditor, {
- key: activeSidebarControl.id,
- blockEditorSettings: blockEditorSettings,
- sidebar: activeSidebarControl.sidebarAdapter,
- inserter: activeSidebarControl.inserter,
- inspector: activeSidebarControl.inspector
- })), activeSidebarControl.container[0]);
+ const activeSidebar = activeSidebarControl && (0,external_wp_element_namespaceObject.createPortal)( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ErrorBoundary, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarBlockEditor, {
+ blockEditorSettings: blockEditorSettings,
+ sidebar: activeSidebarControl.sidebarAdapter,
+ inserter: activeSidebarControl.inserter,
+ inspector: activeSidebarControl.inspector
+ }, activeSidebarControl.id)
+ }), activeSidebarControl.container[0]);
// We have to portal this to the parent of both the editor and the inspector,
// so that the popovers will appear above both of them.
- const popover = parentContainer && (0,external_wp_element_namespaceObject.createPortal)((0,external_React_namespaceObject.createElement)("div", {
+ const popover = parentContainer && (0,external_wp_element_namespaceObject.createPortal)( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: "customize-widgets-popover",
- ref: popoverRef
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Popover.Slot, null)), parentContainer);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SlotFillProvider, null, (0,external_React_namespaceObject.createElement)(SidebarControls, {
- sidebarControls: sidebarControls,
- activeSidebarControl: activeSidebarControl
- }, (0,external_React_namespaceObject.createElement)(FocusControl, {
- api: api,
- sidebarControls: sidebarControls
- }, activeSidebar, popover)));
+ ref: popoverRef,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover.Slot, {})
+ }), parentContainer);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SlotFillProvider, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarControls, {
+ sidebarControls: sidebarControls,
+ activeSidebarControl: activeSidebarControl,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(FocusControl, {
+ api: api,
+ sidebarControls: sidebarControls,
+ children: [activeSidebar, popover]
+ })
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/controls/inspector-section.js
@@ -3033,7 +2547,6 @@ function getSidebarControl() {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/filters/move-to-sidebar.js
-
/**
* WordPress dependencies
*/
@@ -3049,6 +2562,9 @@ function getSidebarControl() {
+
+
+
const withMoveToSidebarToolbarItem = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockEdit => props => {
let widgetId = (0,external_wp_widgets_namespaceObject.getWidgetIdFromBlock)(props);
const sidebarControls = useSidebarControls();
@@ -3092,17 +2608,21 @@ const withMoveToSidebarToolbarItem = (0,external_wp_compose_namespaceObject.crea
// Move focus to the moved widget and expand the sidebar.
focusWidget(widgetId);
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(BlockEdit, {
- ...props
- }), hasMultipleSidebars && canInsertBlockInSidebar && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_widgets_namespaceObject.MoveToWidgetArea, {
- widgetAreas: sidebarControls.map(sidebarControl => ({
- id: sidebarControl.id,
- name: sidebarControl.params.label,
- description: sidebarControl.params.description
- })),
- currentWidgetAreaId: activeSidebarControl?.id,
- onSelect: moveToSidebar
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockEdit, {
+ ...props
+ }), hasMultipleSidebars && canInsertBlockInSidebar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_widgets_namespaceObject.MoveToWidgetArea, {
+ widgetAreas: sidebarControls.map(sidebarControl => ({
+ id: sidebarControl.id,
+ name: sidebarControl.params.label,
+ description: sidebarControl.params.description
+ })),
+ currentWidgetAreaId: activeSidebarControl?.id,
+ onSelect: moveToSidebar
+ })
+ })]
+ });
}, 'withMoveToSidebarToolbarItem');
(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/customize-widgets/block-edit', withMoveToSidebarToolbarItem);
@@ -3116,12 +2636,12 @@ const replaceMediaUpload = () => external_wp_mediaUtils_namespaceObject.MediaUpl
(0,external_wp_hooks_namespaceObject.addFilter)('editor.MediaUpload', 'core/edit-widgets/replace-media-upload', replaceMediaUpload);
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/filters/wide-widget-display.js
-
/**
* WordPress dependencies
*/
+
const {
wp: wide_widget_display_wp
} = window;
@@ -3131,7 +2651,7 @@ const withWideWidgetDisplay = (0,external_wp_compose_namespaceObject.createHighe
idBase
} = props.attributes;
const isWide = (_wp$customize$Widgets = wide_widget_display_wp.customize.Widgets.data.availableWidgets.find(widget => widget.id_base === idBase)?.is_wide) !== null && _wp$customize$Widgets !== void 0 ? _wp$customize$Widgets : false;
- return (0,external_React_namespaceObject.createElement)(BlockEdit, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockEdit, {
...props,
isWide: isWide
});
@@ -3147,7 +2667,6 @@ const withWideWidgetDisplay = (0,external_wp_compose_namespaceObject.createHighe
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/index.js
-
/**
* WordPress dependencies
*/
@@ -3165,6 +2684,7 @@ const withWideWidgetDisplay = (0,external_wp_compose_namespaceObject.createHighe
+
const {
wp: build_module_wp
} = window;
@@ -3209,7 +2729,7 @@ function initialize(editorName, blockEditorSettings) {
sidebarControls.push(control);
}
});
- (0,external_wp_element_namespaceObject.createRoot)(container).render((0,external_React_namespaceObject.createElement)(CustomizeWidgets, {
+ (0,external_wp_element_namespaceObject.createRoot)(container).render( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomizeWidgets, {
api: build_module_wp.customize,
sidebarControls: sidebarControls,
blockEditorSettings: blockEditorSettings
diff --git a/wp-includes/js/dist/customize-widgets.min.js b/wp-includes/js/dist/customize-widgets.min.js
index 911e380..1dcd2e7 100644
--- a/wp-includes/js/dist/customize-widgets.min.js
+++ b/wp-includes/js/dist/customize-widgets.min.js
@@ -1,7 +1,2 @@
/*! This file is auto-generated */
-(()=>{var e={5755:(e,t)=>{var r;
-/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/!function(){"use strict";var s={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var n=typeof r;if("string"===n||"number"===n)e.push(r);else if(Array.isArray(r)){if(r.length){var o=i.apply(null,r);o&&e.push(o)}}else if("object"===n){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var a in r)s.call(r,a)&&r[a]&&e.push(a)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},7734:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var s,i,n;if(Array.isArray(t)){if((s=t.length)!=r.length)return!1;for(i=s;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],r.get(i[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if((s=t.length)!=r.length)return!1;for(i=s;0!=i--;)if(t[i]!==r[i])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((s=(n=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=s;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,n[i]))return!1;for(i=s;0!=i--;){var o=n[i];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}}},t={};function r(s){var i=t[s];if(void 0!==i)return i.exports;var n=t[s]={exports:{}};return e[s](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};(()=>{"use strict";r.r(s),r.d(s,{initialize:()=>st,store:()=>F});var e={};r.r(e),r.d(e,{__experimentalGetInsertionPoint:()=>T,isInserterOpened:()=>O});var t={};r.r(t),r.d(t,{setIsInserterOpened:()=>N});var i={};r.r(i),r.d(i,{closeModal:()=>ee,disableComplementaryArea:()=>Y,enableComplementaryArea:()=>j,openModal:()=>X,pinItem:()=>q,setDefaultComplementaryArea:()=>$,setFeatureDefaults:()=>Q,setFeatureValue:()=>J,toggleFeature:()=>Z,unpinItem:()=>K});var n={};r.r(n),r.d(n,{getActiveComplementaryArea:()=>te,isComplementaryAreaLoading:()=>re,isFeatureActive:()=>ie,isItemPinned:()=>se,isModalActive:()=>ne});const o=window.React,a=window.wp.element,c=window.wp.blockLibrary,l=window.wp.widgets,d=window.wp.blocks,u=window.wp.data,m=window.wp.preferences,h=window.wp.components,p=window.wp.i18n,g=window.wp.blockEditor,f=window.wp.compose,b=window.wp.hooks;function w({text:e,children:t}){const r=(0,f.useCopyToClipboard)(e);return(0,o.createElement)(h.Button,{variant:"secondary",ref:r},t)}class _ extends a.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){this.setState({error:e}),(0,b.doAction)("editor.ErrorBoundary.errorLogged",e)}render(){const{error:e}=this.state;return e?(0,o.createElement)(g.Warning,{className:"customize-widgets-error-boundary",actions:[(0,o.createElement)(w,{key:"copy-error",text:e.stack},(0,p.__)("Copy Error"))]},(0,p.__)("The editor has encountered an unexpected error.")):this.props.children}}const y=window.wp.coreData,E=window.wp.mediaUtils;const v=function({inspector:e,closeMenu:t,...r}){const s=(0,u.useSelect)((e=>e(g.store).getSelectedBlockClientId()),[]),i=(0,a.useMemo)((()=>document.getElementById(`block-${s}`)),[s]);return(0,o.createElement)(h.MenuItem,{onClick:()=>{e.open({returnFocusWhenClose:i}),t()},...r},(0,p.__)("Show more settings"))};var k=r(5755),C=r.n(k);const S=window.wp.keycodes,x=window.wp.primitives,I=(0,o.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(x.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"})),z=(0,o.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(x.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"})),A=(0,o.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(x.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})),B=(0,o.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(x.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));const W=(0,u.combineReducers)({blockInserterPanel:function(e=!1,t){return"SET_IS_INSERTER_OPENED"===t.type?t.value:e}}),M={rootClientId:void 0,insertionIndex:void 0};function O(e){return!!e.blockInserterPanel}function T(e){return"boolean"==typeof e.blockInserterPanel?M:e.blockInserterPanel}function N(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}const P={reducer:W,selectors:e,actions:t},F=(0,u.createReduxStore)("core/customize-widgets",P);(0,u.register)(F);const L=function e({setIsOpened:t}){const r=(0,f.useInstanceId)(e,"customize-widget-layout__inserter-panel-title"),s=(0,u.useSelect)((e=>e(F).__experimentalGetInsertionPoint()),[]);return(0,o.createElement)("div",{className:"customize-widgets-layout__inserter-panel","aria-labelledby":r},(0,o.createElement)("div",{className:"customize-widgets-layout__inserter-panel-header"},(0,o.createElement)("h2",{id:r,className:"customize-widgets-layout__inserter-panel-header-title"},(0,p.__)("Add a block")),(0,o.createElement)(h.Button,{className:"customize-widgets-layout__inserter-panel-header-close-button",icon:B,onClick:()=>t(!1),"aria-label":(0,p.__)("Close inserter")})),(0,o.createElement)("div",{className:"customize-widgets-layout__inserter-panel-content"},(0,o.createElement)(g.__experimentalLibrary,{rootClientId:s.rootClientId,__experimentalInsertionIndex:s.insertionIndex,showInserterHelpPanel:!0,onSelect:()=>t(!1)})))},D=(0,o.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(x.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})),R=window.wp.keyboardShortcuts,V=(0,o.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(x.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function H({as:e=h.DropdownMenu,className:t,label:r=(0,p.__)("Options"),popoverProps:s,toggleProps:i,children:n}){return(0,o.createElement)(e,{className:C()("interface-more-menu-dropdown",t),icon:V,label:r,popoverProps:{placement:"bottom-end",...s,className:C()("interface-more-menu-dropdown__content",s?.className)},toggleProps:{tooltipPosition:"bottom",...i,size:"compact"}},(e=>n(e)))}const G=window.wp.deprecated;var U=r.n(G);const $=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),j=(e,t)=>({registry:r,dispatch:s})=>{if(!t)return;r.select(m.store).get(e,"isComplementaryAreaVisible")||r.dispatch(m.store).set(e,"isComplementaryAreaVisible",!0),s({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},Y=e=>({registry:t})=>{t.select(m.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(m.store).set(e,"isComplementaryAreaVisible",!1)},q=(e,t)=>({registry:r})=>{if(!t)return;const s=r.select(m.store).get(e,"pinnedItems");!0!==s?.[t]&&r.dispatch(m.store).set(e,"pinnedItems",{...s,[t]:!0})},K=(e,t)=>({registry:r})=>{if(!t)return;const s=r.select(m.store).get(e,"pinnedItems");r.dispatch(m.store).set(e,"pinnedItems",{...s,[t]:!1})};function Z(e,t){return function({registry:r}){U()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),r.dispatch(m.store).toggle(e,t)}}function J(e,t,r){return function({registry:s}){U()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),s.dispatch(m.store).set(e,t,!!r)}}function Q(e,t){return function({registry:r}){U()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),r.dispatch(m.store).setDefaults(e,t)}}function X(e){return{type:"OPEN_MODAL",name:e}}function ee(){return{type:"CLOSE_MODAL"}}const te=(0,u.createRegistrySelector)((e=>(t,r)=>{const s=e(m.store).get(r,"isComplementaryAreaVisible");if(void 0!==s)return!1===s?null:t?.complementaryAreas?.[r]})),re=(0,u.createRegistrySelector)((e=>(t,r)=>{const s=e(m.store).get(r,"isComplementaryAreaVisible"),i=t?.complementaryAreas?.[r];return s&&void 0===i})),se=(0,u.createRegistrySelector)((e=>(t,r,s)=>{var i;const n=e(m.store).get(r,"pinnedItems");return null===(i=n?.[s])||void 0===i||i})),ie=(0,u.createRegistrySelector)((e=>(t,r,s)=>(U()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(m.store).get(r,s))));function ne(e,t){return e.activeModal===t}const oe=(0,u.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:r,area:s}=t;return e[r]?e:{...e,[r]:s}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:r,area:s}=t;return{...e,[r]:s}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}}),ae=(0,u.createReduxStore)("core/interface",{reducer:oe,actions:i,selectors:n});(0,u.register)(ae);const ce=[{keyCombination:{modifier:"primary",character:"b"},description:(0,p.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,p.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,p.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,p.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,p.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,p.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,p.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,p.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},description:(0,p.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,p.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")}];function le({keyCombination:e,forceAriaLabel:t}){const r=e.modifier?S.displayShortcutList[e.modifier](e.character):e.character,s=e.modifier?S.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,o.createElement)("kbd",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||s},(Array.isArray(r)?r:[r]).map(((e,t)=>"+"===e?(0,o.createElement)(a.Fragment,{key:t},e):(0,o.createElement)("kbd",{key:t,className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-key"},e))))}const de=function({description:e,keyCombination:t,aliases:r=[],ariaLabel:s}){return(0,o.createElement)(a.Fragment,null,(0,o.createElement)("div",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-description"},e),(0,o.createElement)("div",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-term"},(0,o.createElement)(le,{keyCombination:t,forceAriaLabel:s}),r.map(((e,t)=>(0,o.createElement)(le,{keyCombination:e,forceAriaLabel:s,key:t})))))};const ue=function({name:e}){const{keyCombination:t,description:r,aliases:s}=(0,u.useSelect)((t=>{const{getShortcutKeyCombination:r,getShortcutDescription:s,getShortcutAliases:i}=t(R.store);return{keyCombination:r(e),aliases:i(e),description:s(e)}}),[e]);return t?(0,o.createElement)(de,{keyCombination:t,description:r,aliases:s}):null},me=({shortcuts:e})=>(0,o.createElement)("ul",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map(((e,t)=>(0,o.createElement)("li",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut",key:t},"string"==typeof e?(0,o.createElement)(ue,{name:e}):(0,o.createElement)(de,{...e}))))),he=({title:e,shortcuts:t,className:r})=>(0,o.createElement)("section",{className:C()("customize-widgets-keyboard-shortcut-help-modal__section",r)},!!e&&(0,o.createElement)("h2",{className:"customize-widgets-keyboard-shortcut-help-modal__section-title"},e),(0,o.createElement)(me,{shortcuts:t})),pe=({title:e,categoryName:t,additionalShortcuts:r=[]})=>{const s=(0,u.useSelect)((e=>e(R.store).getCategoryShortcuts(t)),[t]);return(0,o.createElement)(he,{title:e,shortcuts:s.concat(r)})};function ge({isModalActive:e,toggleModal:t}){const{registerShortcut:r}=(0,u.useDispatch)(R.store);return r({name:"core/customize-widgets/keyboard-shortcuts",category:"main",description:(0,p.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),(0,R.useShortcut)("core/customize-widgets/keyboard-shortcuts",t),e?(0,o.createElement)(h.Modal,{className:"customize-widgets-keyboard-shortcut-help-modal",title:(0,p.__)("Keyboard shortcuts"),onRequestClose:t},(0,o.createElement)(he,{className:"customize-widgets-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/customize-widgets/keyboard-shortcuts"]}),(0,o.createElement)(pe,{title:(0,p.__)("Global shortcuts"),categoryName:"global"}),(0,o.createElement)(pe,{title:(0,p.__)("Selection shortcuts"),categoryName:"selection"}),(0,o.createElement)(pe,{title:(0,p.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,p.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,p.__)("Forward-slash")}]}),(0,o.createElement)(he,{title:(0,p.__)("Text formatting"),shortcuts:ce})):null}function fe(){const[e,t]=(0,a.useState)(!1),r=()=>t(!e);return(0,R.useShortcut)("core/customize-widgets/keyboard-shortcuts",r),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(H,{as:h.ToolbarDropdownMenu},(()=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)(h.MenuGroup,{label:(0,p._x)("View","noun")},(0,o.createElement)(m.PreferenceToggleMenuItem,{scope:"core/customize-widgets",name:"fixedToolbar",label:(0,p.__)("Top toolbar"),info:(0,p.__)("Access all block and document tools in a single place"),messageActivated:(0,p.__)("Top toolbar activated"),messageDeactivated:(0,p.__)("Top toolbar deactivated")})),(0,o.createElement)(h.MenuGroup,{label:(0,p.__)("Tools")},(0,o.createElement)(h.MenuItem,{onClick:()=>{t(!0)},shortcut:S.displayShortcut.access("h")},(0,p.__)("Keyboard shortcuts")),(0,o.createElement)(m.PreferenceToggleMenuItem,{scope:"core/customize-widgets",name:"welcomeGuide",label:(0,p.__)("Welcome Guide")}),(0,o.createElement)(h.MenuItem,{role:"menuitem",icon:D,href:(0,p.__)("https://wordpress.org/documentation/article/block-based-widgets-editor/"),target:"_blank",rel:"noopener noreferrer"},(0,p.__)("Help"),(0,o.createElement)(h.VisuallyHidden,{as:"span"},(0,p.__)("(opens in a new tab)")))),(0,o.createElement)(h.MenuGroup,{label:(0,p.__)("Preferences")},(0,o.createElement)(m.PreferenceToggleMenuItem,{scope:"core/customize-widgets",name:"keepCaretInsideBlock",label:(0,p.__)("Contain text cursor inside block"),info:(0,p.__)("Aids screen readers by stopping text caret from leaving blocks."),messageActivated:(0,p.__)("Contain text cursor inside block activated"),messageDeactivated:(0,p.__)("Contain text cursor inside block deactivated")}))))),(0,o.createElement)(ge,{isModalActive:e,toggleModal:r}))}const be=function({sidebar:e,inserter:t,isInserterOpened:r,setIsInserterOpened:s,isFixedToolbarActive:i}){const[[n,c],l]=(0,a.useState)([e.hasUndo(),e.hasRedo()]),d=(0,S.isAppleOS)()?S.displayShortcut.primaryShift("z"):S.displayShortcut.primary("y");return(0,a.useEffect)((()=>e.subscribeHistory((()=>{l([e.hasUndo(),e.hasRedo()])}))),[e]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:C()("customize-widgets-header",{"is-fixed-toolbar-active":i})},(0,o.createElement)(g.NavigableToolbar,{className:"customize-widgets-header-toolbar","aria-label":(0,p.__)("Document tools")},(0,o.createElement)(h.ToolbarButton,{icon:(0,p.isRTL)()?z:I,label:(0,p.__)("Undo"),shortcut:S.displayShortcut.primary("z"),"aria-disabled":!n,onClick:e.undo,className:"customize-widgets-editor-history-button undo-button"}),(0,o.createElement)(h.ToolbarButton,{icon:(0,p.isRTL)()?I:z,label:(0,p.__)("Redo"),shortcut:d,"aria-disabled":!c,onClick:e.redo,className:"customize-widgets-editor-history-button redo-button"}),(0,o.createElement)(h.ToolbarButton,{className:"customize-widgets-header-toolbar__inserter-toggle",isPressed:r,variant:"primary",icon:A,label:(0,p._x)("Add block","Generic label for block inserter button"),onClick:()=>{s((e=>!e))}}),(0,o.createElement)(fe,null))),(0,a.createPortal)((0,o.createElement)(L,{setIsOpened:s}),t.contentContainer[0]))};var we=r(7734),_e=r.n(we);const ye=window.wp.isShallowEqual;var Ee=r.n(ye);function ve(e){const t=e.match(/^widget_(.+)(?:\[(\d+)\])$/);if(t){return`${t[1]}-${parseInt(t[2],10)}`}return e}function ke(e,t=null){let r;if("core/legacy-widget"===e.name&&(e.attributes.id||e.attributes.instance))if(e.attributes.id)r={id:e.attributes.id};else{const{encoded:s,hash:i,raw:n,...o}=e.attributes.instance;r={idBase:e.attributes.idBase,instance:{...t?.instance,is_widget_customizer_js_value:!0,encoded_serialized_instance:s,instance_hash_key:i,raw_instance:n,...o}}}else{r={idBase:"block",widgetClass:"WP_Widget_Block",instance:{raw_instance:{content:(0,d.serialize)(e)}}}}const{form:s,rendered:i,...n}=t||{};return{...n,...r}}function Ce({id:e,idBase:t,number:r,instance:s}){let i;const{encoded_serialized_instance:n,instance_hash_key:o,raw_instance:a,...c}=s;if("block"===t){var u;const e=(0,d.parse)(null!==(u=a.content)&&void 0!==u?u:"",{__unstableSkipAutop:!0});i=e.length?e[0]:(0,d.createBlock)("core/paragraph",{})}else i=r?(0,d.createBlock)("core/legacy-widget",{idBase:t,instance:{encoded:n,hash:o,raw:a,...c}}):(0,d.createBlock)("core/legacy-widget",{id:e});return(0,l.addWidgetIdToBlock)(i,e)}function Se(e){const[t,r]=(0,a.useState)((()=>e.getWidgets().map((e=>Ce(e)))));(0,a.useEffect)((()=>e.subscribe(((e,t)=>{r((r=>{const s=new Map(e.map((e=>[e.id,e]))),i=new Map(r.map((e=>[(0,l.getWidgetIdFromBlock)(e),e]))),n=t.map((e=>{const t=s.get(e.id);return t&&t===e?i.get(e.id):Ce(e)}));return Ee()(r,n)?r:n}))}))),[e]);const s=(0,a.useCallback)((t=>{r((r=>{if(Ee()(r,t))return r;const s=new Map(r.map((e=>[(0,l.getWidgetIdFromBlock)(e),e]))),i=t.map((t=>{const r=(0,l.getWidgetIdFromBlock)(t);if(r&&s.has(r)){const i=s.get(r),n=e.getWidget(r);return _e()(t,i)&&n?n:ke(t,n)}return ke(t)}));if(Ee()(e.getWidgets(),i))return r;const n=e.setWidgets(i);return t.reduce(((e,r,s)=>{const i=n[s];return null!==i&&(e===t&&(e=t.slice()),e[s]=(0,l.addWidgetIdToBlock)(r,i)),e}),t)}))}),[e]);return[t,s,s]}const xe=(0,a.createContext)();function Ie({api:e,sidebarControls:t,children:r}){const[s,i]=(0,a.useState)({current:null}),n=(0,a.useCallback)((e=>{for(const r of t){if(r.setting.get().includes(e)){r.sectionInstance.expand({completeCallback(){i({current:e})}});break}}}),[t]);(0,a.useEffect)((()=>{function t(e){const t=ve(e);n(t)}let r=!1;function s(){e.previewer.preview.bind("focus-control-for-setting",t),r=!0}return e.previewer.bind("ready",s),()=>{e.previewer.unbind("ready",s),r&&e.previewer.preview.unbind("focus-control-for-setting",t)}}),[e,n]);const c=(0,a.useMemo)((()=>[s,n]),[s,n]);return(0,o.createElement)(xe.Provider,{value:c},r)}const ze=()=>(0,a.useContext)(xe);const Ae=window.wp.privateApis,{lock:Be,unlock:We}=(0,Ae.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/customize-widgets"),{ExperimentalBlockEditorProvider:Me}=We(g.privateApis);function Oe({sidebar:e,settings:t,children:r}){const[s,i,n]=Se(e);return function(e){const{selectBlock:t}=(0,u.useDispatch)(g.store),[r]=ze(),s=(0,a.useRef)(e);(0,a.useEffect)((()=>{s.current=e}),[e]),(0,a.useEffect)((()=>{if(r.current){const e=s.current.find((e=>(0,l.getWidgetIdFromBlock)(e)===r.current));if(e){t(e.clientId);const r=document.querySelector(`[data-block="${e.clientId}"]`);r?.focus()}}}),[r,t])}(s),(0,o.createElement)(Me,{value:s,onInput:i,onChange:n,settings:t,useSubRegistry:!1},r)}function Te({sidebar:e}){const{toggle:t}=(0,u.useDispatch)(m.store),r=e.getWidgets().every((e=>e.id.startsWith("block-")));return(0,o.createElement)("div",{className:"customize-widgets-welcome-guide"},(0,o.createElement)("div",{className:"customize-widgets-welcome-guide__image__wrapper"},(0,o.createElement)("picture",null,(0,o.createElement)("source",{srcSet:"https://s.w.org/images/block-editor/welcome-editor.svg",media:"(prefers-reduced-motion: reduce)"}),(0,o.createElement)("img",{className:"customize-widgets-welcome-guide__image",src:"https://s.w.org/images/block-editor/welcome-editor.gif",width:"312",height:"240",alt:""}))),(0,o.createElement)("h1",{className:"customize-widgets-welcome-guide__heading"},(0,p.__)("Welcome to block Widgets")),(0,o.createElement)("p",{className:"customize-widgets-welcome-guide__text"},r?(0,p.__)("Your theme provides different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site."):(0,p.__)("You can now add any block to your site’s widget areas. Don’t worry, all of your favorite widgets still work flawlessly.")),(0,o.createElement)(h.Button,{className:"customize-widgets-welcome-guide__button",variant:"primary",onClick:()=>t("core/customize-widgets","welcomeGuide")},(0,p.__)("Got it")),(0,o.createElement)("hr",{className:"customize-widgets-welcome-guide__separator"}),!r&&(0,o.createElement)("p",{className:"customize-widgets-welcome-guide__more-info"},(0,p.__)("Want to stick with the old widgets?"),(0,o.createElement)("br",null),(0,o.createElement)(h.ExternalLink,{href:(0,p.__)("https://wordpress.org/plugins/classic-widgets/")},(0,p.__)("Get the Classic Widgets plugin."))),(0,o.createElement)("p",{className:"customize-widgets-welcome-guide__more-info"},(0,p.__)("New to the block editor?"),(0,o.createElement)("br",null),(0,o.createElement)(h.ExternalLink,{href:(0,p.__)("https://wordpress.org/documentation/article/wordpress-block-editor/")},(0,p.__)("Here's a detailed guide."))))}function Ne({undo:e,redo:t,save:r}){const{replaceBlocks:s}=(0,u.useDispatch)(g.store),{getBlockName:i,getSelectedBlockClientId:n,getBlockAttributes:o}=(0,u.useSelect)(g.store),a=(e,t)=>{e.preventDefault();const r=0===t?"core/paragraph":"core/heading",a=n();if(null===a)return;const c=i(a);if("core/paragraph"!==c&&"core/heading"!==c)return;const l=o(a),u="core/paragraph"===c?"align":"textAlign",m="core/paragraph"===r?"align":"textAlign";s(a,(0,d.createBlock)(r,{level:t,content:l.content,[m]:l[u]}))};return(0,R.useShortcut)("core/customize-widgets/undo",(t=>{e(),t.preventDefault()})),(0,R.useShortcut)("core/customize-widgets/redo",(e=>{t(),e.preventDefault()})),(0,R.useShortcut)("core/customize-widgets/save",(e=>{e.preventDefault(),r()})),(0,R.useShortcut)("core/customize-widgets/transform-heading-to-paragraph",(e=>a(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,R.useShortcut)(`core/customize-widgets/transform-paragraph-to-heading-${e}`,(t=>a(t,e)))})),null}Ne.Register=function(){const{registerShortcut:e,unregisterShortcut:t}=(0,u.useDispatch)(R.store);return(0,a.useEffect)((()=>(e({name:"core/customize-widgets/undo",category:"global",description:(0,p.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/customize-widgets/redo",category:"global",description:(0,p.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,S.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/customize-widgets/save",category:"global",description:(0,p.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/customize-widgets/transform-heading-to-paragraph",category:"block-library",description:(0,p.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"}}),[1,2,3,4,5,6].forEach((t=>{e({name:`core/customize-widgets/transform-paragraph-to-heading-${t}`,category:"block-library",description:(0,p.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${t}`}})})),()=>{t("core/customize-widgets/undo"),t("core/customize-widgets/redo"),t("core/customize-widgets/save")})),[e]),null};const Pe=Ne;function Fe(e){const t=(0,a.useRef)(),r=(0,u.useSelect)((e=>0===e(g.store).getBlockCount()));return(0,a.useEffect)((()=>{if(r&&t.current){const{ownerDocument:e}=t.current;e.activeElement&&e.activeElement!==e.body||t.current.focus()}}),[r]),(0,o.createElement)(g.ButtonBlockAppender,{...e,ref:t})}const{ExperimentalBlockCanvas:Le}=We(g.privateApis);function De({blockEditorSettings:e,sidebar:t,inserter:r,inspector:s}){const[i,n]=function(e){const t=(0,u.useSelect)((e=>e(F).isInserterOpened()),[]),{setIsInserterOpened:r}=(0,u.useDispatch)(F);return(0,a.useEffect)((()=>{t?e.open():e.close()}),[e,t]),[t,(0,a.useCallback)((e=>{let t=e;"function"==typeof e&&(t=e((0,u.select)(F).isInserterOpened())),r(t)}),[r])]}(r),c=(0,f.useViewportMatch)("small"),{hasUploadPermissions:l,isFixedToolbarActive:d,keepCaretInsideBlock:h,isWelcomeGuideActive:p}=(0,u.useSelect)((e=>{var t;const{get:r}=e(m.store);return{hasUploadPermissions:null===(t=e(y.store).canUser("create","media"))||void 0===t||t,isFixedToolbarActive:!!r("core/customize-widgets","fixedToolbar"),keepCaretInsideBlock:!!r("core/customize-widgets","keepCaretInsideBlock"),isWelcomeGuideActive:!!r("core/customize-widgets","welcomeGuide")}}),[]),b=(0,a.useMemo)((()=>{let t;return l&&(t=({onError:t,...r})=>{(0,E.uploadMedia)({wpAllowedMimeTypes:e.allowedMimeTypes,onError:({message:e})=>t(e),...r})}),{...e,__experimentalSetIsInserterOpened:n,mediaUpload:t,hasFixedToolbar:d||!c,keepCaretInsideBlock:h,__unstableHasCustomAppender:!0}}),[l,e,d,c,h,n]);return p?(0,o.createElement)(Te,{sidebar:t}):(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Pe.Register,null),(0,o.createElement)(Oe,{sidebar:t,settings:b},(0,o.createElement)(Pe,{undo:t.undo,redo:t.redo,save:t.save}),(0,o.createElement)(be,{sidebar:t,inserter:r,isInserterOpened:i,setIsInserterOpened:n,isFixedToolbarActive:d||!c}),(d||!c)&&(0,o.createElement)(g.BlockToolbar,{hideDragHandle:!0}),(0,o.createElement)(Le,{shouldIframe:!1,styles:b.defaultEditorStyles,height:"100%"},(0,o.createElement)(g.BlockList,{renderAppender:Fe})),(0,a.createPortal)((0,o.createElement)("form",{onSubmit:e=>e.preventDefault()},(0,o.createElement)(g.BlockInspector,null)),s.contentContainer[0])),(0,o.createElement)(g.__unstableBlockSettingsMenuFirstItem,null,(({onClose:e})=>(0,o.createElement)(v,{inspector:s,closeMenu:e}))))}const Re=(0,a.createContext)();function Ve({sidebarControls:e,activeSidebarControl:t,children:r}){const s=(0,a.useMemo)((()=>({sidebarControls:e,activeSidebarControl:t})),[e,t]);return(0,o.createElement)(Re.Provider,{value:s},r)}function He({api:e,sidebarControls:t,blockEditorSettings:r}){const[s,i]=(0,a.useState)(null),n=document.getElementById("customize-theme-controls"),c=(0,a.useRef)();!function(e,t){const{hasSelectedBlock:r,hasMultiSelection:s}=(0,u.useSelect)(g.store),{clearSelectedBlock:i}=(0,u.useDispatch)(g.store);(0,a.useEffect)((()=>{if(t.current&&e){const n=e.inspector,o=e.container[0],a=o.ownerDocument,c=a.defaultView;function l(e){!r()&&!s()||!e||!a.contains(e)||o.contains(e)||t.current.contains(e)||e.closest('[role="dialog"]')||n.expanded()||i()}function d(e){l(e.target)}function u(){l(a.activeElement)}return a.addEventListener("mousedown",d),c.addEventListener("blur",u),()=>{a.removeEventListener("mousedown",d),c.removeEventListener("blur",u)}}}),[t,e,r,s,i])}(s,c),(0,a.useEffect)((()=>{const e=t.map((e=>e.subscribe((t=>{t&&i(e)}))));return()=>{e.forEach((e=>e()))}}),[t]);const l=s&&(0,a.createPortal)((0,o.createElement)(_,null,(0,o.createElement)(De,{key:s.id,blockEditorSettings:r,sidebar:s.sidebarAdapter,inserter:s.inserter,inspector:s.inspector})),s.container[0]),d=n&&(0,a.createPortal)((0,o.createElement)("div",{className:"customize-widgets-popover",ref:c},(0,o.createElement)(h.Popover.Slot,null)),n);return(0,o.createElement)(h.SlotFillProvider,null,(0,o.createElement)(Ve,{sidebarControls:t,activeSidebarControl:s},(0,o.createElement)(Ie,{api:e,sidebarControls:t},l,d)))}const Ge=e=>`widgets-inspector-${e}`;function Ue(){const{wp:{customize:e}}=window,t=window.matchMedia("(prefers-reduced-motion: reduce)");let r=t.matches;return t.addEventListener("change",(e=>{r=e.matches})),class extends e.Section{ready(){const t=function(){const{wp:{customize:e}}=window;return class extends e.Section{constructor(e,t){super(e,t),this.parentSection=t.parentSection,this.returnFocusWhenClose=null,this._isOpen=!1}get isOpen(){return this._isOpen}set isOpen(e){this._isOpen=e,this.triggerActiveCallbacks()}ready(){this.contentContainer[0].classList.add("customize-widgets-layout__inspector")}isContextuallyActive(){return this.isOpen}onChangeExpanded(e,t){super.onChangeExpanded(e,t),this.parentSection&&!t.unchanged&&(e?this.parentSection.collapse({manualTransition:!0}):this.parentSection.expand({manualTransition:!0,completeCallback:()=>{this.returnFocusWhenClose&&!this.contentContainer[0].contains(this.returnFocusWhenClose)&&this.returnFocusWhenClose.focus()}}))}open({returnFocusWhenClose:e}={}){this.isOpen=!0,this.returnFocusWhenClose=e,this.expand({allowMultiple:!0})}close(){this.collapse({allowMultiple:!0})}collapse(e){this.isOpen=!1,super.collapse(e)}triggerActiveCallbacks(){this.active.callbacks.fireWith(this.active,[!1,!0])}}}();this.inspector=new t(Ge(this.id),{title:(0,p.__)("Block Settings"),parentSection:this,customizeAction:[(0,p.__)("Customizing"),(0,p.__)("Widgets"),this.params.title].join(" ▸ ")}),e.section.add(this.inspector),this.contentContainer[0].classList.add("customize-widgets__sidebar-section")}hasSubSectionOpened(){return this.inspector.expanded()}onChangeExpanded(e,t){const s=this.controls(),i={...t,completeCallback(){s.forEach((t=>{t.onChangeSectionExpanded?.(e,i)})),t.completeCallback?.()}};if(i.manualTransition){e?(this.contentContainer.addClass(["busy","open"]),this.contentContainer.removeClass("is-sub-section-open"),this.contentContainer.closest(".wp-full-overlay").addClass("section-open")):(this.contentContainer.addClass(["busy","is-sub-section-open"]),this.contentContainer.closest(".wp-full-overlay").addClass("section-open"),this.contentContainer.removeClass("open"));const t=()=>{this.contentContainer.removeClass("busy"),i.completeCallback()};r?t():this.contentContainer.one("transitionend",t)}else super.onChangeExpanded(e,i)}}}const{wp:$e}=window;function je(e){const t=e.match(/^(.+)-(\d+)$/);return t?{idBase:t[1],number:parseInt(t[2],10)}:{idBase:e}}function Ye(e){const{idBase:t,number:r}=je(e);return r?`widget_${t}[${r}]`:`widget_${t}`}class qe{constructor(e,t){this.setting=e,this.api=t,this.locked=!1,this.widgetsCache=new WeakMap,this.subscribers=new Set,this.history=[this._getWidgetIds().map((e=>this.getWidget(e)))],this.historyIndex=0,this.historySubscribers=new Set,this._debounceSetHistory=function(e,t,r){let s,i=!1;function n(...n){const o=(i?t:e).apply(this,n);return i=!0,clearTimeout(s),s=setTimeout((()=>{i=!1}),r),o}return n.cancel=()=>{i=!1,clearTimeout(s)},n}(this._pushHistory,this._replaceHistory,1e3),this.setting.bind(this._handleSettingChange.bind(this)),this.api.bind("change",this._handleAllSettingsChange.bind(this)),this.undo=this.undo.bind(this),this.redo=this.redo.bind(this),this.save=this.save.bind(this)}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}getWidgets(){return this.history[this.historyIndex]}_emit(...e){for(const t of this.subscribers)t(...e)}_getWidgetIds(){return this.setting.get()}_pushHistory(){this.history=[...this.history.slice(0,this.historyIndex+1),this._getWidgetIds().map((e=>this.getWidget(e)))],this.historyIndex+=1,this.historySubscribers.forEach((e=>e()))}_replaceHistory(){this.history[this.historyIndex]=this._getWidgetIds().map((e=>this.getWidget(e)))}_handleSettingChange(){if(this.locked)return;const e=this.getWidgets();this._pushHistory(),this._emit(e,this.getWidgets())}_handleAllSettingsChange(e){if(this.locked)return;if(!e.id.startsWith("widget_"))return;const t=ve(e.id);if(!this.setting.get().includes(t))return;const r=this.getWidgets();this._pushHistory(),this._emit(r,this.getWidgets())}_createWidget(e){const t=$e.customize.Widgets.availableWidgets.findWhere({id_base:e.idBase});let r=e.number;t.get("is_multi")&&!r&&(t.set("multi_number",t.get("multi_number")+1),r=t.get("multi_number"));const s=r?`widget_${e.idBase}[${r}]`:`widget_${e.idBase}`,i={transport:$e.customize.Widgets.data.selectiveRefreshableWidgets[t.get("id_base")]?"postMessage":"refresh",previewer:this.setting.previewer};this.api.create(s,s,"",i).set(e.instance);return ve(s)}_removeWidget(e){const t=Ye(e.id),r=this.api(t);if(r){const e=r.get();this.widgetsCache.delete(e)}this.api.remove(t)}_updateWidget(e){const t=this.getWidget(e.id);if(t===e)return e.id;if(t.idBase&&e.idBase&&t.idBase===e.idBase){const t=Ye(e.id);return this.api(t).set(e.instance),e.id}return this._removeWidget(e),this._createWidget(e)}getWidget(e){if(!e)return null;const{idBase:t,number:r}=je(e),s=Ye(e),i=this.api(s);if(!i)return null;const n=i.get();if(this.widgetsCache.has(n))return this.widgetsCache.get(n);const o={id:e,idBase:t,number:r,instance:n};return this.widgetsCache.set(n,o),o}_updateWidgets(e){this.locked=!0;const t=[],r=e.map((e=>{if(e.id&&this.getWidget(e.id))return t.push(null),this._updateWidget(e);const r=this._createWidget(e);return t.push(r),r}));return this.getWidgets().filter((e=>!r.includes(e.id))).forEach((e=>this._removeWidget(e))),this.setting.set(r),this.locked=!1,t}setWidgets(e){const t=this._updateWidgets(e);return this._debounceSetHistory(),t}hasUndo(){return this.historyIndex>0}hasRedo(){return this.historyIndex<this.history.length-1}_seek(e){const t=this.getWidgets();this.historyIndex=e;const r=this.history[this.historyIndex];this._updateWidgets(r),this._emit(t,this.getWidgets()),this.historySubscribers.forEach((e=>e())),this._debounceSetHistory.cancel()}undo(){this.hasUndo()&&this._seek(this.historyIndex-1)}redo(){this.hasRedo()&&this._seek(this.historyIndex+1)}subscribeHistory(e){return this.historySubscribers.add(e),()=>{this.historySubscribers.delete(e)}}save(){this.api.previewer.save()}}const Ke=window.wp.dom;const Ze=e=>`widgets-inserter-${e}`;function Je(){const{wp:{customize:e}}=window;return class extends e.Control{constructor(...e){super(...e),this.subscribers=new Set}ready(){const t=function(){const{wp:{customize:e}}=window,t=e.OuterSection;return e.OuterSection=class extends t{onChangeExpanded(t,r){return t&&e.section.each((e=>{"outer"===e.params.type&&e.id!==this.id&&e.expanded()&&e.collapse()})),super.onChangeExpanded(t,r)}},e.sectionConstructor.outer=e.OuterSection,class extends e.OuterSection{constructor(...e){super(...e),this.params.type="outer",this.activeElementBeforeExpanded=null,this.contentContainer[0].ownerDocument.defaultView.addEventListener("keydown",(e=>{!this.expanded()||e.keyCode!==S.ESCAPE&&"Escape"!==e.code||e.defaultPrevented||(e.preventDefault(),e.stopPropagation(),(0,u.dispatch)(F).setIsInserterOpened(!1))}),!0),this.contentContainer.addClass("widgets-inserter"),this.isFromInternalAction=!1,this.expanded.bind((()=>{this.isFromInternalAction||(0,u.dispatch)(F).setIsInserterOpened(this.expanded()),this.isFromInternalAction=!1}))}open(){if(!this.expanded()){const e=this.contentContainer[0];this.activeElementBeforeExpanded=e.ownerDocument.activeElement,this.isFromInternalAction=!0,this.expand({completeCallback(){const t=Ke.focus.tabbable.find(e)[1];t&&t.focus()}})}}close(){if(this.expanded()){const e=this.contentContainer[0],t=e.ownerDocument.activeElement;this.isFromInternalAction=!0,this.collapse({completeCallback(){e.contains(t)&&this.activeElementBeforeExpanded&&this.activeElementBeforeExpanded.focus()}})}}}}();this.inserter=new t(Ze(this.id),{}),e.section.add(this.inserter),this.sectionInstance=e.section(this.section()),this.inspector=this.sectionInstance.inspector,this.sidebarAdapter=new qe(this.setting,e)}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}onChangeSectionExpanded(e,t){t.unchanged||(e||(0,u.dispatch)(F).setIsInserterOpened(!1),this.subscribers.forEach((r=>r(e,t))))}}}const Qe=(0,f.createHigherOrderComponent)((e=>t=>{let r=(0,l.getWidgetIdFromBlock)(t);const s=function(){const{sidebarControls:e}=(0,a.useContext)(Re);return e}(),i=function(){const{activeSidebarControl:e}=(0,a.useContext)(Re);return e}(),n=s?.length>1,c=t.name,d=t.clientId,m=(0,u.useSelect)((e=>e(g.store).canInsertBlockType(c,"")),[c]),h=(0,u.useSelect)((e=>e(g.store).getBlock(d)),[d]),{removeBlock:p}=(0,u.useDispatch)(g.store),[,f]=ze();return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(e,{...t}),n&&m&&(0,o.createElement)(g.BlockControls,null,(0,o.createElement)(l.MoveToWidgetArea,{widgetAreas:s.map((e=>({id:e.id,name:e.params.label,description:e.params.description}))),currentWidgetAreaId:i?.id,onSelect:function(e){const t=s.find((t=>t.id===e));if(r){const e=i.setting,s=t.setting;e(e().filter((e=>e!==r))),s([...s(),r])}else{const e=t.sidebarAdapter;p(d);const s=e.setWidgets([...e.getWidgets(),ke(h)]);r=s.reverse().find((e=>!!e))}f(r)}})))}),"withMoveToSidebarToolbarItem");(0,b.addFilter)("editor.BlockEdit","core/customize-widgets/block-edit",Qe);(0,b.addFilter)("editor.MediaUpload","core/edit-widgets/replace-media-upload",(()=>E.MediaUpload));const{wp:Xe}=window,et=(0,f.createHigherOrderComponent)((e=>t=>{var r;const{idBase:s}=t.attributes,i=null!==(r=Xe.customize.Widgets.data.availableWidgets.find((e=>e.id_base===s))?.is_wide)&&void 0!==r&&r;return(0,o.createElement)(e,{...t,isWide:i})}),"withWideWidgetDisplay");(0,b.addFilter)("editor.BlockEdit","core/customize-widgets/wide-widget-display",et);const{wp:tt}=window,rt=["core/more","core/block","core/freeform","core/template-part"];function st(e,t){(0,u.dispatch)(m.store).setDefaults("core/customize-widgets",{fixedToolbar:!1,welcomeGuide:!0}),(0,u.dispatch)(d.store).reapplyBlockTypeFilters();const r=(0,c.__experimentalGetCoreBlocks)().filter((e=>!(rt.includes(e.name)||e.name.startsWith("core/post")||e.name.startsWith("core/query")||e.name.startsWith("core/site")||e.name.startsWith("core/navigation"))));(0,c.registerCoreBlocks)(r),(0,l.registerLegacyWidgetBlock)(),(0,l.registerLegacyWidgetVariations)(t),(0,l.registerWidgetGroupBlock)(),(0,d.setFreeformContentHandlerName)("core/html");const s=Je();tt.customize.sectionConstructor.sidebar=Ue(),tt.customize.controlConstructor.sidebar_block_editor=s;const i=document.createElement("div");document.body.appendChild(i),tt.customize.bind("ready",(()=>{const e=[];tt.customize.control.each((t=>{t instanceof s&&e.push(t)})),(0,a.createRoot)(i).render((0,o.createElement)(He,{api:tt.customize,sidebarControls:e,blockEditorSettings:t}))}))}})(),(window.wp=window.wp||{}).customizeWidgets=s})(); \ No newline at end of file
+(()=>{"use strict";var e={7734:e=>{e.exports=function e(t,s){if(t===s)return!0;if(t&&s&&"object"==typeof t&&"object"==typeof s){if(t.constructor!==s.constructor)return!1;var i,r,o;if(Array.isArray(t)){if((i=t.length)!=s.length)return!1;for(r=i;0!=r--;)if(!e(t[r],s[r]))return!1;return!0}if(t instanceof Map&&s instanceof Map){if(t.size!==s.size)return!1;for(r of t.entries())if(!s.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],s.get(r[0])))return!1;return!0}if(t instanceof Set&&s instanceof Set){if(t.size!==s.size)return!1;for(r of t.entries())if(!s.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(s)){if((i=t.length)!=s.length)return!1;for(r=i;0!=r--;)if(t[r]!==s[r])return!1;return!0}if(t.constructor===RegExp)return t.source===s.source&&t.flags===s.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===s.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===s.toString();if((i=(o=Object.keys(t)).length)!==Object.keys(s).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(s,o[r]))return!1;for(r=i;0!=r--;){var n=o[r];if(!e(t[n],s[n]))return!1}return!0}return t!=t&&s!=s}}},t={};function s(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,s),o.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{s.r(i),s.d(i,{initialize:()=>Pe,store:()=>T});var e={};s.r(e),s.d(e,{__experimentalGetInsertionPoint:()=>A,isInserterOpened:()=>E});var t={};s.r(t),s.d(t,{setIsInserterOpened:()=>M});const r=window.wp.element,o=window.wp.blockLibrary,n=window.wp.widgets,c=window.wp.blocks,a=window.wp.data,d=window.wp.preferences,l=window.wp.components,u=window.wp.i18n,h=window.wp.blockEditor,p=window.wp.compose,m=window.wp.hooks,g=window.ReactJSXRuntime;function b({text:e,children:t}){const s=(0,p.useCopyToClipboard)(e);return(0,g.jsx)(l.Button,{variant:"secondary",ref:s,children:t})}class w extends r.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){this.setState({error:e}),(0,m.doAction)("editor.ErrorBoundary.errorLogged",e)}render(){const{error:e}=this.state;return e?(0,g.jsx)(h.Warning,{className:"customize-widgets-error-boundary",actions:[(0,g.jsx)(b,{text:e.stack,children:(0,u.__)("Copy Error")},"copy-error")],children:(0,u.__)("The editor has encountered an unexpected error.")}):this.props.children}}const f=window.wp.coreData,_=window.wp.mediaUtils;const y=function({inspector:e,closeMenu:t,...s}){const i=(0,a.useSelect)((e=>e(h.store).getSelectedBlockClientId()),[]),o=(0,r.useMemo)((()=>document.getElementById(`block-${i}`)),[i]);return(0,g.jsx)(l.MenuItem,{onClick:()=>{e.open({returnFocusWhenClose:o}),t()},...s,children:(0,u.__)("Show more settings")})};function x(e){var t,s,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(s=x(e[t]))&&(i&&(i+=" "),i+=s)}else for(s in e)e[s]&&(i&&(i+=" "),i+=s);return i}const k=function(){for(var e,t,s=0,i="",r=arguments.length;s<r;s++)(e=arguments[s])&&(t=x(e))&&(i&&(i+=" "),i+=t);return i},v=window.wp.keycodes,C=window.wp.primitives,S=(0,g.jsx)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,g.jsx)(C.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"})}),j=(0,g.jsx)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,g.jsx)(C.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"})}),I=(0,g.jsx)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,g.jsx)(C.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),z=(0,g.jsx)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,g.jsx)(C.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})});const W=(0,a.combineReducers)({blockInserterPanel:function(e=!1,t){return"SET_IS_INSERTER_OPENED"===t.type?t.value:e}}),B={rootClientId:void 0,insertionIndex:void 0};function E(e){return!!e.blockInserterPanel}function A(e){return"boolean"==typeof e.blockInserterPanel?B:e.blockInserterPanel}function M(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}const O={reducer:W,selectors:e,actions:t},T=(0,a.createReduxStore)("core/customize-widgets",O);(0,a.register)(T);const P=function e({setIsOpened:t}){const s=(0,p.useInstanceId)(e,"customize-widget-layout__inserter-panel-title"),i=(0,a.useSelect)((e=>e(T).__experimentalGetInsertionPoint()),[]);return(0,g.jsxs)("div",{className:"customize-widgets-layout__inserter-panel","aria-labelledby":s,children:[(0,g.jsxs)("div",{className:"customize-widgets-layout__inserter-panel-header",children:[(0,g.jsx)("h2",{id:s,className:"customize-widgets-layout__inserter-panel-header-title",children:(0,u.__)("Add a block")}),(0,g.jsx)(l.Button,{className:"customize-widgets-layout__inserter-panel-header-close-button",icon:z,onClick:()=>t(!1),"aria-label":(0,u.__)("Close inserter")})]}),(0,g.jsx)("div",{className:"customize-widgets-layout__inserter-panel-content",children:(0,g.jsx)(h.__experimentalLibrary,{rootClientId:i.rootClientId,__experimentalInsertionIndex:i.insertionIndex,showInserterHelpPanel:!0,onSelect:()=>t(!1)})})]})},N=(0,g.jsx)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,g.jsx)(C.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})}),F=(0,g.jsx)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,g.jsx)(C.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})}),L=window.wp.keyboardShortcuts,D=[{keyCombination:{modifier:"primary",character:"b"},description:(0,u.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,u.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,u.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,u.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,u.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,u.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,u.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,u.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}],description:(0,u.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,u.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")},{keyCombination:{modifier:"primaryShift",character:"SPACE"},description:(0,u.__)("Add non breaking space.")}];function H({keyCombination:e,forceAriaLabel:t}){const s=e.modifier?v.displayShortcutList[e.modifier](e.character):e.character,i=e.modifier?v.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,g.jsx)("kbd",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||i,children:(Array.isArray(s)?s:[s]).map(((e,t)=>"+"===e?(0,g.jsx)(r.Fragment,{children:e},t):(0,g.jsx)("kbd",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-key",children:e},t)))})}const R=function({description:e,keyCombination:t,aliases:s=[],ariaLabel:i}){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-description",children:e}),(0,g.jsxs)("div",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-term",children:[(0,g.jsx)(H,{keyCombination:t,forceAriaLabel:i}),s.map(((e,t)=>(0,g.jsx)(H,{keyCombination:e,forceAriaLabel:i},t)))]})]})};const G=function({name:e}){const{keyCombination:t,description:s,aliases:i}=(0,a.useSelect)((t=>{const{getShortcutKeyCombination:s,getShortcutDescription:i,getShortcutAliases:r}=t(L.store);return{keyCombination:s(e),aliases:r(e),description:i(e)}}),[e]);return t?(0,g.jsx)(R,{keyCombination:t,description:s,aliases:i}):null},V=({shortcuts:e})=>(0,g.jsx)("ul",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-list",role:"list",children:e.map(((e,t)=>(0,g.jsx)("li",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut",children:"string"==typeof e?(0,g.jsx)(G,{name:e}):(0,g.jsx)(R,{...e})},t)))}),U=({title:e,shortcuts:t,className:s})=>(0,g.jsxs)("section",{className:k("customize-widgets-keyboard-shortcut-help-modal__section",s),children:[!!e&&(0,g.jsx)("h2",{className:"customize-widgets-keyboard-shortcut-help-modal__section-title",children:e}),(0,g.jsx)(V,{shortcuts:t})]}),$=({title:e,categoryName:t,additionalShortcuts:s=[]})=>{const i=(0,a.useSelect)((e=>e(L.store).getCategoryShortcuts(t)),[t]);return(0,g.jsx)(U,{title:e,shortcuts:i.concat(s)})};function q({isModalActive:e,toggleModal:t}){const{registerShortcut:s}=(0,a.useDispatch)(L.store);return s({name:"core/customize-widgets/keyboard-shortcuts",category:"main",description:(0,u.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),(0,L.useShortcut)("core/customize-widgets/keyboard-shortcuts",t),e?(0,g.jsxs)(l.Modal,{className:"customize-widgets-keyboard-shortcut-help-modal",title:(0,u.__)("Keyboard shortcuts"),onRequestClose:t,children:[(0,g.jsx)(U,{className:"customize-widgets-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/customize-widgets/keyboard-shortcuts"]}),(0,g.jsx)($,{title:(0,u.__)("Global shortcuts"),categoryName:"global"}),(0,g.jsx)($,{title:(0,u.__)("Selection shortcuts"),categoryName:"selection"}),(0,g.jsx)($,{title:(0,u.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,u.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,u.__)("Forward-slash")}]}),(0,g.jsx)(U,{title:(0,u.__)("Text formatting"),shortcuts:D})]}):null}function K(){const[e,t]=(0,r.useState)(!1),s=()=>t(!e);return(0,L.useShortcut)("core/customize-widgets/keyboard-shortcuts",s),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.ToolbarDropdownMenu,{icon:N,label:(0,u.__)("Options"),popoverProps:{placement:"bottom-end",className:"more-menu-dropdown__content"},toggleProps:{tooltipPosition:"bottom",size:"compact"},children:()=>(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.MenuGroup,{label:(0,u._x)("View","noun"),children:(0,g.jsx)(d.PreferenceToggleMenuItem,{scope:"core/customize-widgets",name:"fixedToolbar",label:(0,u.__)("Top toolbar"),info:(0,u.__)("Access all block and document tools in a single place"),messageActivated:(0,u.__)("Top toolbar activated"),messageDeactivated:(0,u.__)("Top toolbar deactivated")})}),(0,g.jsxs)(l.MenuGroup,{label:(0,u.__)("Tools"),children:[(0,g.jsx)(l.MenuItem,{onClick:()=>{t(!0)},shortcut:v.displayShortcut.access("h"),children:(0,u.__)("Keyboard shortcuts")}),(0,g.jsx)(d.PreferenceToggleMenuItem,{scope:"core/customize-widgets",name:"welcomeGuide",label:(0,u.__)("Welcome Guide")}),(0,g.jsxs)(l.MenuItem,{role:"menuitem",icon:F,href:(0,u.__)("https://wordpress.org/documentation/article/block-based-widgets-editor/"),target:"_blank",rel:"noopener noreferrer",children:[(0,u.__)("Help"),(0,g.jsx)(l.VisuallyHidden,{as:"span",children:(0,u.__)("(opens in a new tab)")})]})]}),(0,g.jsx)(l.MenuGroup,{label:(0,u.__)("Preferences"),children:(0,g.jsx)(d.PreferenceToggleMenuItem,{scope:"core/customize-widgets",name:"keepCaretInsideBlock",label:(0,u.__)("Contain text cursor inside block"),info:(0,u.__)("Aids screen readers by stopping text caret from leaving blocks."),messageActivated:(0,u.__)("Contain text cursor inside block activated"),messageDeactivated:(0,u.__)("Contain text cursor inside block deactivated")})})]})}),(0,g.jsx)(q,{isModalActive:e,toggleModal:s})]})}const Z=function({sidebar:e,inserter:t,isInserterOpened:s,setIsInserterOpened:i,isFixedToolbarActive:o}){const[[n,c],a]=(0,r.useState)([e.hasUndo(),e.hasRedo()]),d=(0,v.isAppleOS)()?v.displayShortcut.primaryShift("z"):v.displayShortcut.primary("y");return(0,r.useEffect)((()=>e.subscribeHistory((()=>{a([e.hasUndo(),e.hasRedo()])}))),[e]),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:k("customize-widgets-header",{"is-fixed-toolbar-active":o}),children:(0,g.jsxs)(h.NavigableToolbar,{className:"customize-widgets-header-toolbar","aria-label":(0,u.__)("Document tools"),children:[(0,g.jsx)(l.ToolbarButton,{icon:(0,u.isRTL)()?j:S,label:(0,u.__)("Undo"),shortcut:v.displayShortcut.primary("z"),"aria-disabled":!n,onClick:e.undo,className:"customize-widgets-editor-history-button undo-button"}),(0,g.jsx)(l.ToolbarButton,{icon:(0,u.isRTL)()?S:j,label:(0,u.__)("Redo"),shortcut:d,"aria-disabled":!c,onClick:e.redo,className:"customize-widgets-editor-history-button redo-button"}),(0,g.jsx)(l.ToolbarButton,{className:"customize-widgets-header-toolbar__inserter-toggle",isPressed:s,variant:"primary",icon:I,label:(0,u._x)("Add block","Generic label for block inserter button"),onClick:()=>{i((e=>!e))}}),(0,g.jsx)(K,{})]})}),(0,r.createPortal)((0,g.jsx)(P,{setIsOpened:i}),t.contentContainer[0])]})};var Y=s(7734),J=s.n(Y);const X=window.wp.isShallowEqual;var Q=s.n(X);function ee(e){const t=e.match(/^widget_(.+)(?:\[(\d+)\])$/);if(t){return`${t[1]}-${parseInt(t[2],10)}`}return e}function te(e,t=null){let s;if("core/legacy-widget"===e.name&&(e.attributes.id||e.attributes.instance))if(e.attributes.id)s={id:e.attributes.id};else{const{encoded:i,hash:r,raw:o,...n}=e.attributes.instance;s={idBase:e.attributes.idBase,instance:{...t?.instance,is_widget_customizer_js_value:!0,encoded_serialized_instance:i,instance_hash_key:r,raw_instance:o,...n}}}else{s={idBase:"block",widgetClass:"WP_Widget_Block",instance:{raw_instance:{content:(0,c.serialize)(e)}}}}const{form:i,rendered:r,...o}=t||{};return{...o,...s}}function se({id:e,idBase:t,number:s,instance:i}){let r;const{encoded_serialized_instance:o,instance_hash_key:a,raw_instance:d,...l}=i;if("block"===t){var u;const e=(0,c.parse)(null!==(u=d.content)&&void 0!==u?u:"",{__unstableSkipAutop:!0});r=e.length?e[0]:(0,c.createBlock)("core/paragraph",{})}else r=s?(0,c.createBlock)("core/legacy-widget",{idBase:t,instance:{encoded:o,hash:a,raw:d,...l}}):(0,c.createBlock)("core/legacy-widget",{id:e});return(0,n.addWidgetIdToBlock)(r,e)}function ie(e){const[t,s]=(0,r.useState)((()=>e.getWidgets().map((e=>se(e)))));(0,r.useEffect)((()=>e.subscribe(((e,t)=>{s((s=>{const i=new Map(e.map((e=>[e.id,e]))),r=new Map(s.map((e=>[(0,n.getWidgetIdFromBlock)(e),e]))),o=t.map((e=>{const t=i.get(e.id);return t&&t===e?r.get(e.id):se(e)}));return Q()(s,o)?s:o}))}))),[e]);const i=(0,r.useCallback)((t=>{s((s=>{if(Q()(s,t))return s;const i=new Map(s.map((e=>[(0,n.getWidgetIdFromBlock)(e),e]))),r=t.map((t=>{const s=(0,n.getWidgetIdFromBlock)(t);if(s&&i.has(s)){const r=i.get(s),o=e.getWidget(s);return J()(t,r)&&o?o:te(t,o)}return te(t)}));if(Q()(e.getWidgets(),r))return s;const o=e.setWidgets(r);return t.reduce(((e,s,i)=>{const r=o[i];return null!==r&&(e===t&&(e=t.slice()),e[i]=(0,n.addWidgetIdToBlock)(s,r)),e}),t)}))}),[e]);return[t,i,i]}const re=(0,r.createContext)();function oe({api:e,sidebarControls:t,children:s}){const[i,o]=(0,r.useState)({current:null}),n=(0,r.useCallback)((e=>{for(const s of t){if(s.setting.get().includes(e)){s.sectionInstance.expand({completeCallback(){o({current:e})}});break}}}),[t]);(0,r.useEffect)((()=>{function t(e){const t=ee(e);n(t)}let s=!1;function i(){e.previewer.preview.bind("focus-control-for-setting",t),s=!0}return e.previewer.bind("ready",i),()=>{e.previewer.unbind("ready",i),s&&e.previewer.preview.unbind("focus-control-for-setting",t)}}),[e,n]);const c=(0,r.useMemo)((()=>[i,n]),[i,n]);return(0,g.jsx)(re.Provider,{value:c,children:s})}const ne=()=>(0,r.useContext)(re);const ce=window.wp.privateApis,{lock:ae,unlock:de}=(0,ce.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/customize-widgets"),{ExperimentalBlockEditorProvider:le}=de(h.privateApis);function ue({sidebar:e,settings:t,children:s}){const[i,o,c]=ie(e);return function(e){const{selectBlock:t}=(0,a.useDispatch)(h.store),[s]=ne(),i=(0,r.useRef)(e);(0,r.useEffect)((()=>{i.current=e}),[e]),(0,r.useEffect)((()=>{if(s.current){const e=i.current.find((e=>(0,n.getWidgetIdFromBlock)(e)===s.current));if(e){t(e.clientId);const s=document.querySelector(`[data-block="${e.clientId}"]`);s?.focus()}}}),[s,t])}(i),(0,g.jsx)(le,{value:i,onInput:o,onChange:c,settings:t,useSubRegistry:!1,children:s})}function he({sidebar:e}){const{toggle:t}=(0,a.useDispatch)(d.store),s=e.getWidgets().every((e=>e.id.startsWith("block-")));return(0,g.jsxs)("div",{className:"customize-widgets-welcome-guide",children:[(0,g.jsx)("div",{className:"customize-widgets-welcome-guide__image__wrapper",children:(0,g.jsxs)("picture",{children:[(0,g.jsx)("source",{srcSet:"https://s.w.org/images/block-editor/welcome-editor.svg",media:"(prefers-reduced-motion: reduce)"}),(0,g.jsx)("img",{className:"customize-widgets-welcome-guide__image",src:"https://s.w.org/images/block-editor/welcome-editor.gif",width:"312",height:"240",alt:""})]})}),(0,g.jsx)("h1",{className:"customize-widgets-welcome-guide__heading",children:(0,u.__)("Welcome to block Widgets")}),(0,g.jsx)("p",{className:"customize-widgets-welcome-guide__text",children:s?(0,u.__)("Your theme provides different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site."):(0,u.__)("You can now add any block to your site’s widget areas. Don’t worry, all of your favorite widgets still work flawlessly.")}),(0,g.jsx)(l.Button,{className:"customize-widgets-welcome-guide__button",variant:"primary",onClick:()=>t("core/customize-widgets","welcomeGuide"),children:(0,u.__)("Got it")}),(0,g.jsx)("hr",{className:"customize-widgets-welcome-guide__separator"}),!s&&(0,g.jsxs)("p",{className:"customize-widgets-welcome-guide__more-info",children:[(0,u.__)("Want to stick with the old widgets?"),(0,g.jsx)("br",{}),(0,g.jsx)(l.ExternalLink,{href:(0,u.__)("https://wordpress.org/plugins/classic-widgets/"),children:(0,u.__)("Get the Classic Widgets plugin.")})]}),(0,g.jsxs)("p",{className:"customize-widgets-welcome-guide__more-info",children:[(0,u.__)("New to the block editor?"),(0,g.jsx)("br",{}),(0,g.jsx)(l.ExternalLink,{href:(0,u.__)("https://wordpress.org/documentation/article/wordpress-block-editor/"),children:(0,u.__)("Here's a detailed guide.")})]})]})}function pe({undo:e,redo:t,save:s}){return(0,L.useShortcut)("core/customize-widgets/undo",(t=>{e(),t.preventDefault()})),(0,L.useShortcut)("core/customize-widgets/redo",(e=>{t(),e.preventDefault()})),(0,L.useShortcut)("core/customize-widgets/save",(e=>{e.preventDefault(),s()})),null}pe.Register=function(){const{registerShortcut:e,unregisterShortcut:t}=(0,a.useDispatch)(L.store);return(0,r.useEffect)((()=>(e({name:"core/customize-widgets/undo",category:"global",description:(0,u.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/customize-widgets/redo",category:"global",description:(0,u.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,v.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/customize-widgets/save",category:"global",description:(0,u.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),()=>{t("core/customize-widgets/undo"),t("core/customize-widgets/redo"),t("core/customize-widgets/save")})),[e]),null};const me=pe;function ge(e){const t=(0,r.useRef)(),s=(0,a.useSelect)((e=>0===e(h.store).getBlockCount()));return(0,r.useEffect)((()=>{if(s&&t.current){const{ownerDocument:e}=t.current;e.activeElement&&e.activeElement!==e.body||t.current.focus()}}),[s]),(0,g.jsx)(h.ButtonBlockAppender,{...e,ref:t})}const{ExperimentalBlockCanvas:be}=de(h.privateApis),{BlockKeyboardShortcuts:we}=de(o.privateApis);function fe({blockEditorSettings:e,sidebar:t,inserter:s,inspector:i}){const[o,n]=function(e){const t=(0,a.useSelect)((e=>e(T).isInserterOpened()),[]),{setIsInserterOpened:s}=(0,a.useDispatch)(T);return(0,r.useEffect)((()=>{t?e.open():e.close()}),[e,t]),[t,(0,r.useCallback)((e=>{let t=e;"function"==typeof e&&(t=e((0,a.select)(T).isInserterOpened())),s(t)}),[s])]}(s),c=(0,p.useViewportMatch)("small"),{hasUploadPermissions:l,isFixedToolbarActive:u,keepCaretInsideBlock:m,isWelcomeGuideActive:b}=(0,a.useSelect)((e=>{var t;const{get:s}=e(d.store);return{hasUploadPermissions:null===(t=e(f.store).canUser("create","media"))||void 0===t||t,isFixedToolbarActive:!!s("core/customize-widgets","fixedToolbar"),keepCaretInsideBlock:!!s("core/customize-widgets","keepCaretInsideBlock"),isWelcomeGuideActive:!!s("core/customize-widgets","welcomeGuide")}}),[]),w=(0,r.useMemo)((()=>{let t;return l&&(t=({onError:t,...s})=>{(0,_.uploadMedia)({wpAllowedMimeTypes:e.allowedMimeTypes,onError:({message:e})=>t(e),...s})}),{...e,__experimentalSetIsInserterOpened:n,mediaUpload:t,hasFixedToolbar:u||!c,keepCaretInsideBlock:m,__unstableHasCustomAppender:!0}}),[l,e,u,c,m,n]);return b?(0,g.jsx)(he,{sidebar:t}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(me.Register,{}),(0,g.jsx)(we,{}),(0,g.jsxs)(ue,{sidebar:t,settings:w,children:[(0,g.jsx)(me,{undo:t.undo,redo:t.redo,save:t.save}),(0,g.jsx)(Z,{sidebar:t,inserter:s,isInserterOpened:o,setIsInserterOpened:n,isFixedToolbarActive:u||!c}),(u||!c)&&(0,g.jsx)(h.BlockToolbar,{hideDragHandle:!0}),(0,g.jsx)(be,{shouldIframe:!1,styles:w.defaultEditorStyles,height:"100%",children:(0,g.jsx)(h.BlockList,{renderAppender:ge})}),(0,r.createPortal)((0,g.jsx)("form",{onSubmit:e=>e.preventDefault(),children:(0,g.jsx)(h.BlockInspector,{})}),i.contentContainer[0])]}),(0,g.jsx)(h.__unstableBlockSettingsMenuFirstItem,{children:({onClose:e})=>(0,g.jsx)(y,{inspector:i,closeMenu:e})})]})}const _e=(0,r.createContext)();function ye({sidebarControls:e,activeSidebarControl:t,children:s}){const i=(0,r.useMemo)((()=>({sidebarControls:e,activeSidebarControl:t})),[e,t]);return(0,g.jsx)(_e.Provider,{value:i,children:s})}function xe({api:e,sidebarControls:t,blockEditorSettings:s}){const[i,o]=(0,r.useState)(null),n=document.getElementById("customize-theme-controls"),c=(0,r.useRef)();!function(e,t){const{hasSelectedBlock:s,hasMultiSelection:i}=(0,a.useSelect)(h.store),{clearSelectedBlock:o}=(0,a.useDispatch)(h.store);(0,r.useEffect)((()=>{if(t.current&&e){const r=e.inspector,n=e.container[0],c=n.ownerDocument,a=c.defaultView;function d(e){!s()&&!i()||!e||!c.contains(e)||n.contains(e)||t.current.contains(e)||e.closest('[role="dialog"]')||r.expanded()||o()}function l(e){d(e.target)}function u(){d(c.activeElement)}return c.addEventListener("mousedown",l),a.addEventListener("blur",u),()=>{c.removeEventListener("mousedown",l),a.removeEventListener("blur",u)}}}),[t,e,s,i,o])}(i,c),(0,r.useEffect)((()=>{const e=t.map((e=>e.subscribe((t=>{t&&o(e)}))));return()=>{e.forEach((e=>e()))}}),[t]);const d=i&&(0,r.createPortal)((0,g.jsx)(w,{children:(0,g.jsx)(fe,{blockEditorSettings:s,sidebar:i.sidebarAdapter,inserter:i.inserter,inspector:i.inspector},i.id)}),i.container[0]),u=n&&(0,r.createPortal)((0,g.jsx)("div",{className:"customize-widgets-popover",ref:c,children:(0,g.jsx)(l.Popover.Slot,{})}),n);return(0,g.jsx)(l.SlotFillProvider,{children:(0,g.jsx)(ye,{sidebarControls:t,activeSidebarControl:i,children:(0,g.jsxs)(oe,{api:e,sidebarControls:t,children:[d,u]})})})}const ke=e=>`widgets-inspector-${e}`;function ve(){const{wp:{customize:e}}=window,t=window.matchMedia("(prefers-reduced-motion: reduce)");let s=t.matches;return t.addEventListener("change",(e=>{s=e.matches})),class extends e.Section{ready(){const t=function(){const{wp:{customize:e}}=window;return class extends e.Section{constructor(e,t){super(e,t),this.parentSection=t.parentSection,this.returnFocusWhenClose=null,this._isOpen=!1}get isOpen(){return this._isOpen}set isOpen(e){this._isOpen=e,this.triggerActiveCallbacks()}ready(){this.contentContainer[0].classList.add("customize-widgets-layout__inspector")}isContextuallyActive(){return this.isOpen}onChangeExpanded(e,t){super.onChangeExpanded(e,t),this.parentSection&&!t.unchanged&&(e?this.parentSection.collapse({manualTransition:!0}):this.parentSection.expand({manualTransition:!0,completeCallback:()=>{this.returnFocusWhenClose&&!this.contentContainer[0].contains(this.returnFocusWhenClose)&&this.returnFocusWhenClose.focus()}}))}open({returnFocusWhenClose:e}={}){this.isOpen=!0,this.returnFocusWhenClose=e,this.expand({allowMultiple:!0})}close(){this.collapse({allowMultiple:!0})}collapse(e){this.isOpen=!1,super.collapse(e)}triggerActiveCallbacks(){this.active.callbacks.fireWith(this.active,[!1,!0])}}}();this.inspector=new t(ke(this.id),{title:(0,u.__)("Block Settings"),parentSection:this,customizeAction:[(0,u.__)("Customizing"),(0,u.__)("Widgets"),this.params.title].join(" ▸ ")}),e.section.add(this.inspector),this.contentContainer[0].classList.add("customize-widgets__sidebar-section")}hasSubSectionOpened(){return this.inspector.expanded()}onChangeExpanded(e,t){const i=this.controls(),r={...t,completeCallback(){i.forEach((t=>{t.onChangeSectionExpanded?.(e,r)})),t.completeCallback?.()}};if(r.manualTransition){e?(this.contentContainer.addClass(["busy","open"]),this.contentContainer.removeClass("is-sub-section-open"),this.contentContainer.closest(".wp-full-overlay").addClass("section-open")):(this.contentContainer.addClass(["busy","is-sub-section-open"]),this.contentContainer.closest(".wp-full-overlay").addClass("section-open"),this.contentContainer.removeClass("open"));const t=()=>{this.contentContainer.removeClass("busy"),r.completeCallback()};s?t():this.contentContainer.one("transitionend",t)}else super.onChangeExpanded(e,r)}}}const{wp:Ce}=window;function Se(e){const t=e.match(/^(.+)-(\d+)$/);return t?{idBase:t[1],number:parseInt(t[2],10)}:{idBase:e}}function je(e){const{idBase:t,number:s}=Se(e);return s?`widget_${t}[${s}]`:`widget_${t}`}class Ie{constructor(e,t){this.setting=e,this.api=t,this.locked=!1,this.widgetsCache=new WeakMap,this.subscribers=new Set,this.history=[this._getWidgetIds().map((e=>this.getWidget(e)))],this.historyIndex=0,this.historySubscribers=new Set,this._debounceSetHistory=function(e,t,s){let i,r=!1;function o(...o){const n=(r?t:e).apply(this,o);return r=!0,clearTimeout(i),i=setTimeout((()=>{r=!1}),s),n}return o.cancel=()=>{r=!1,clearTimeout(i)},o}(this._pushHistory,this._replaceHistory,1e3),this.setting.bind(this._handleSettingChange.bind(this)),this.api.bind("change",this._handleAllSettingsChange.bind(this)),this.undo=this.undo.bind(this),this.redo=this.redo.bind(this),this.save=this.save.bind(this)}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}getWidgets(){return this.history[this.historyIndex]}_emit(...e){for(const t of this.subscribers)t(...e)}_getWidgetIds(){return this.setting.get()}_pushHistory(){this.history=[...this.history.slice(0,this.historyIndex+1),this._getWidgetIds().map((e=>this.getWidget(e)))],this.historyIndex+=1,this.historySubscribers.forEach((e=>e()))}_replaceHistory(){this.history[this.historyIndex]=this._getWidgetIds().map((e=>this.getWidget(e)))}_handleSettingChange(){if(this.locked)return;const e=this.getWidgets();this._pushHistory(),this._emit(e,this.getWidgets())}_handleAllSettingsChange(e){if(this.locked)return;if(!e.id.startsWith("widget_"))return;const t=ee(e.id);if(!this.setting.get().includes(t))return;const s=this.getWidgets();this._pushHistory(),this._emit(s,this.getWidgets())}_createWidget(e){const t=Ce.customize.Widgets.availableWidgets.findWhere({id_base:e.idBase});let s=e.number;t.get("is_multi")&&!s&&(t.set("multi_number",t.get("multi_number")+1),s=t.get("multi_number"));const i=s?`widget_${e.idBase}[${s}]`:`widget_${e.idBase}`,r={transport:Ce.customize.Widgets.data.selectiveRefreshableWidgets[t.get("id_base")]?"postMessage":"refresh",previewer:this.setting.previewer};this.api.create(i,i,"",r).set(e.instance);return ee(i)}_removeWidget(e){const t=je(e.id),s=this.api(t);if(s){const e=s.get();this.widgetsCache.delete(e)}this.api.remove(t)}_updateWidget(e){const t=this.getWidget(e.id);if(t===e)return e.id;if(t.idBase&&e.idBase&&t.idBase===e.idBase){const t=je(e.id);return this.api(t).set(e.instance),e.id}return this._removeWidget(e),this._createWidget(e)}getWidget(e){if(!e)return null;const{idBase:t,number:s}=Se(e),i=je(e),r=this.api(i);if(!r)return null;const o=r.get();if(this.widgetsCache.has(o))return this.widgetsCache.get(o);const n={id:e,idBase:t,number:s,instance:o};return this.widgetsCache.set(o,n),n}_updateWidgets(e){this.locked=!0;const t=[],s=e.map((e=>{if(e.id&&this.getWidget(e.id))return t.push(null),this._updateWidget(e);const s=this._createWidget(e);return t.push(s),s}));return this.getWidgets().filter((e=>!s.includes(e.id))).forEach((e=>this._removeWidget(e))),this.setting.set(s),this.locked=!1,t}setWidgets(e){const t=this._updateWidgets(e);return this._debounceSetHistory(),t}hasUndo(){return this.historyIndex>0}hasRedo(){return this.historyIndex<this.history.length-1}_seek(e){const t=this.getWidgets();this.historyIndex=e;const s=this.history[this.historyIndex];this._updateWidgets(s),this._emit(t,this.getWidgets()),this.historySubscribers.forEach((e=>e())),this._debounceSetHistory.cancel()}undo(){this.hasUndo()&&this._seek(this.historyIndex-1)}redo(){this.hasRedo()&&this._seek(this.historyIndex+1)}subscribeHistory(e){return this.historySubscribers.add(e),()=>{this.historySubscribers.delete(e)}}save(){this.api.previewer.save()}}const ze=window.wp.dom;const We=e=>`widgets-inserter-${e}`;function Be(){const{wp:{customize:e}}=window;return class extends e.Control{constructor(...e){super(...e),this.subscribers=new Set}ready(){const t=function(){const{wp:{customize:e}}=window,t=e.OuterSection;return e.OuterSection=class extends t{onChangeExpanded(t,s){return t&&e.section.each((e=>{"outer"===e.params.type&&e.id!==this.id&&e.expanded()&&e.collapse()})),super.onChangeExpanded(t,s)}},e.sectionConstructor.outer=e.OuterSection,class extends e.OuterSection{constructor(...e){super(...e),this.params.type="outer",this.activeElementBeforeExpanded=null,this.contentContainer[0].ownerDocument.defaultView.addEventListener("keydown",(e=>{!this.expanded()||e.keyCode!==v.ESCAPE&&"Escape"!==e.code||e.defaultPrevented||(e.preventDefault(),e.stopPropagation(),(0,a.dispatch)(T).setIsInserterOpened(!1))}),!0),this.contentContainer.addClass("widgets-inserter"),this.isFromInternalAction=!1,this.expanded.bind((()=>{this.isFromInternalAction||(0,a.dispatch)(T).setIsInserterOpened(this.expanded()),this.isFromInternalAction=!1}))}open(){if(!this.expanded()){const e=this.contentContainer[0];this.activeElementBeforeExpanded=e.ownerDocument.activeElement,this.isFromInternalAction=!0,this.expand({completeCallback(){const t=ze.focus.tabbable.find(e)[1];t&&t.focus()}})}}close(){if(this.expanded()){const e=this.contentContainer[0],t=e.ownerDocument.activeElement;this.isFromInternalAction=!0,this.collapse({completeCallback(){e.contains(t)&&this.activeElementBeforeExpanded&&this.activeElementBeforeExpanded.focus()}})}}}}();this.inserter=new t(We(this.id),{}),e.section.add(this.inserter),this.sectionInstance=e.section(this.section()),this.inspector=this.sectionInstance.inspector,this.sidebarAdapter=new Ie(this.setting,e)}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}onChangeSectionExpanded(e,t){t.unchanged||(e||(0,a.dispatch)(T).setIsInserterOpened(!1),this.subscribers.forEach((s=>s(e,t))))}}}const Ee=(0,p.createHigherOrderComponent)((e=>t=>{let s=(0,n.getWidgetIdFromBlock)(t);const i=function(){const{sidebarControls:e}=(0,r.useContext)(_e);return e}(),o=function(){const{activeSidebarControl:e}=(0,r.useContext)(_e);return e}(),c=i?.length>1,d=t.name,l=t.clientId,u=(0,a.useSelect)((e=>e(h.store).canInsertBlockType(d,"")),[d]),p=(0,a.useSelect)((e=>e(h.store).getBlock(l)),[l]),{removeBlock:m}=(0,a.useDispatch)(h.store),[,b]=ne();return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(e,{...t}),c&&u&&(0,g.jsx)(h.BlockControls,{children:(0,g.jsx)(n.MoveToWidgetArea,{widgetAreas:i.map((e=>({id:e.id,name:e.params.label,description:e.params.description}))),currentWidgetAreaId:o?.id,onSelect:function(e){const t=i.find((t=>t.id===e));if(s){const e=o.setting,i=t.setting;e(e().filter((e=>e!==s))),i([...i(),s])}else{const e=t.sidebarAdapter;m(l);const i=e.setWidgets([...e.getWidgets(),te(p)]);s=i.reverse().find((e=>!!e))}b(s)}})})]})}),"withMoveToSidebarToolbarItem");(0,m.addFilter)("editor.BlockEdit","core/customize-widgets/block-edit",Ee);(0,m.addFilter)("editor.MediaUpload","core/edit-widgets/replace-media-upload",(()=>_.MediaUpload));const{wp:Ae}=window,Me=(0,p.createHigherOrderComponent)((e=>t=>{var s;const{idBase:i}=t.attributes,r=null!==(s=Ae.customize.Widgets.data.availableWidgets.find((e=>e.id_base===i))?.is_wide)&&void 0!==s&&s;return(0,g.jsx)(e,{...t,isWide:r})}),"withWideWidgetDisplay");(0,m.addFilter)("editor.BlockEdit","core/customize-widgets/wide-widget-display",Me);const{wp:Oe}=window,Te=["core/more","core/block","core/freeform","core/template-part"];function Pe(e,t){(0,a.dispatch)(d.store).setDefaults("core/customize-widgets",{fixedToolbar:!1,welcomeGuide:!0}),(0,a.dispatch)(c.store).reapplyBlockTypeFilters();const s=(0,o.__experimentalGetCoreBlocks)().filter((e=>!(Te.includes(e.name)||e.name.startsWith("core/post")||e.name.startsWith("core/query")||e.name.startsWith("core/site")||e.name.startsWith("core/navigation"))));(0,o.registerCoreBlocks)(s),(0,n.registerLegacyWidgetBlock)(),(0,n.registerLegacyWidgetVariations)(t),(0,n.registerWidgetGroupBlock)(),(0,c.setFreeformContentHandlerName)("core/html");const i=Be();Oe.customize.sectionConstructor.sidebar=ve(),Oe.customize.controlConstructor.sidebar_block_editor=i;const l=document.createElement("div");document.body.appendChild(l),Oe.customize.bind("ready",(()=>{const e=[];Oe.customize.control.each((t=>{t instanceof i&&e.push(t)})),(0,r.createRoot)(l).render((0,g.jsx)(xe,{api:Oe.customize,sidebarControls:e,blockEditorSettings:t}))}))}})(),(window.wp=window.wp||{}).customizeWidgets=i})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/data.js b/wp-includes/js/dist/data.js
index 0966a1a..2574926 100644
--- a/wp-includes/js/dist/data.js
+++ b/wp-includes/js/dist/data.js
@@ -541,6 +541,7 @@ __webpack_require__.d(__webpack_exports__, {
createRegistry: () => (/* reexport */ createRegistry),
createRegistryControl: () => (/* reexport */ createRegistryControl),
createRegistrySelector: () => (/* reexport */ createRegistrySelector),
+ createSelector: () => (/* reexport */ rememo),
dispatch: () => (/* reexport */ dispatch_dispatch),
plugins: () => (/* reexport */ plugins_namespaceObject),
register: () => (/* binding */ register),
@@ -1575,7 +1576,7 @@ function resolveSelect(storeNameOrDescriptor, selectorName, ...args) {
*
* // Action generator using dispatch
* export function* myAction() {
- * yield controls.dispatch( 'core/edit-post', 'togglePublishSidebar' );
+ * yield controls.dispatch( 'core/editor', 'togglePublishSidebar' );
* // do some other things.
* }
* ```
@@ -1626,7 +1627,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
const {
lock,
unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/data');
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/data');
;// CONCATENATED MODULE: ./node_modules/is-promise/index.mjs
function isPromise(obj) {
@@ -2187,7 +2188,7 @@ function isShallowEqual(a, b, fromIndex) {
;// CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/redux-store/metadata/selectors.js
/**
- * External dependencies
+ * WordPress dependencies
*/
@@ -2196,6 +2197,7 @@ function isShallowEqual(a, b, fromIndex) {
*/
+
/** @typedef {Record<string, import('./reducer').State>} State */
/** @typedef {import('./reducer').StateValue} StateValue */
/** @typedef {import('./reducer').Status} Status */
@@ -2221,10 +2223,16 @@ function getResolutionState(state, selectorName, args) {
}
/**
- * Returns the raw `isResolving` value for a given selector name,
- * and arguments set. May be undefined if the selector has never been resolved
- * or not resolved for the given set of arguments, otherwise true or false for
- * resolution started and completed respectively.
+ * Returns an `isResolving`-like value for a given selector name and arguments set.
+ * Its value is either `undefined` if the selector has never been resolved or has been
+ * invalidated, or a `true`/`false` boolean value if the resolution is in progress or
+ * has finished, respectively.
+ *
+ * This is a legacy selector that was implemented when the "raw" internal data had
+ * this `undefined | boolean` format. Nowadays the internal value is an object that
+ * can be retrieved with `getResolutionState`.
+ *
+ * @deprecated
*
* @param {State} state Data state.
* @param {string} selectorName Selector name.
@@ -2233,6 +2241,11 @@ function getResolutionState(state, selectorName, args) {
* @return {boolean | undefined} isResolving value.
*/
function getIsResolving(state, selectorName, args) {
+ external_wp_deprecated_default()('wp.data.select( store ).getIsResolving', {
+ since: '6.6',
+ version: '6.8',
+ alternative: 'wp.data.select( store ).getResolutionState'
+ });
const resolutionState = getResolutionState(state, selectorName, args);
return resolutionState && resolutionState.status === 'resolving';
}
@@ -2582,11 +2595,14 @@ const trimUndefinedValues = array => {
*/
const mapValues = (obj, callback) => Object.fromEntries(Object.entries(obj !== null && obj !== void 0 ? obj : {}).map(([key, value]) => [key, callback(value, key)]));
-// Convert Map objects to plain objects
-const mapToObject = (key, state) => {
+// Convert non serializable types to plain objects
+const devToolsReplacer = (key, state) => {
if (state instanceof Map) {
return Object.fromEntries(state);
}
+ if (state instanceof window.HTMLElement) {
+ return null;
+ }
return state;
};
@@ -2862,7 +2878,7 @@ function instantiateReduxStore(key, options, registry, thunkArgs) {
name: key,
instanceId: key,
serialize: {
- replacer: mapToObject
+ replacer: devToolsReplacer
}
}));
}
@@ -3418,9 +3434,12 @@ function createRegistry(storeConfigs = {}, parent = null) {
}
emitter.pause();
Object.values(stores).forEach(store => store.emitter.pause());
- callback();
- emitter.resume();
- Object.values(stores).forEach(store => store.emitter.resume());
+ try {
+ callback();
+ } finally {
+ emitter.resume();
+ Object.values(stores).forEach(store => store.emitter.resume());
+ }
}
let registry = {
batch,
@@ -3773,8 +3792,6 @@ persistencePlugin.__unstableMigrate = () => {};
;// CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/plugins/index.js
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: external ["wp","priorityQueue"]
const external_wp_priorityQueue_namespaceObject = window["wp"]["priorityQueue"];
;// CONCATENATED MODULE: external ["wp","element"]
@@ -4239,26 +4256,31 @@ function useSelect(mapSelect, deps) {
}
/**
- * A variant of the `useSelect` hook that has the same API, but will throw a
- * suspense Promise if any of the called selectors is in an unresolved state.
+ * A variant of the `useSelect` hook that has the same API, but is a compatible
+ * Suspense-enabled data source.
*
- * @param {Function} mapSelect Function called on every state change. The
- * returned value is exposed to the component
- * using this hook. The function receives the
- * `registry.suspendSelect` method as the first
- * argument and the `registry` as the second one.
- * @param {Array} deps A dependency array used to memoize the `mapSelect`
- * so that the same `mapSelect` is invoked on every
- * state change unless the dependencies change.
+ * @template {MapSelect} T
+ * @param {T} mapSelect Function called on every state change. The
+ * returned value is exposed to the component
+ * using this hook. The function receives the
+ * `registry.suspendSelect` method as the first
+ * argument and the `registry` as the second one.
+ * @param {Array} deps A dependency array used to memoize the `mapSelect`
+ * so that the same `mapSelect` is invoked on every
+ * state change unless the dependencies change.
*
- * @return {Object} Data object returned by the `mapSelect` function.
+ * @throws {Promise} A suspense Promise that is thrown if any of the called
+ * selectors is in an unresolved state.
+ *
+ * @return {ReturnType<T>} Data object returned by the `mapSelect` function.
*/
function useSuspenseSelect(mapSelect, deps) {
return useMappingSelect(true, mapSelect, deps);
}
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/components/with-select/index.js
-
/**
* WordPress dependencies
*/
@@ -4311,10 +4333,11 @@ function useSuspenseSelect(mapSelect, deps) {
*
* @return {ComponentType} Enhanced component with merged state data props.
*/
+
const withSelect = mapSelectToProps => (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => (0,external_wp_compose_namespaceObject.pure)(ownProps => {
const mapSelect = (select, registry) => mapSelectToProps(select, ownProps, registry);
const mergeProps = useSelect(mapSelect);
- return (0,external_React_namespaceObject.createElement)(WrappedComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
...ownProps,
...mergeProps
});
@@ -4367,7 +4390,6 @@ const useDispatchWithMap = (dispatchMap, deps) => {
/* harmony default export */ const use_dispatch_with_map = (useDispatchWithMap);
;// CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/components/with-dispatch/index.js
-
/**
* WordPress dependencies
*/
@@ -4461,10 +4483,11 @@ const useDispatchWithMap = (dispatchMap, deps) => {
*
* @return {ComponentType} Enhanced component with merged dispatcher props.
*/
+
const withDispatch = mapDispatchToProps => (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => ownProps => {
const mapDispatch = (dispatch, registry) => mapDispatchToProps(dispatch, ownProps, registry);
const dispatchProps = use_dispatch_with_map(mapDispatch, []);
- return (0,external_React_namespaceObject.createElement)(WrappedComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
...ownProps,
...dispatchProps
});
@@ -4472,7 +4495,6 @@ const withDispatch = mapDispatchToProps => (0,external_wp_compose_namespaceObjec
/* harmony default export */ const with_dispatch = (withDispatch);
;// CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/components/with-registry/index.js
-
/**
* WordPress dependencies
*/
@@ -4491,10 +4513,13 @@ const withDispatch = mapDispatchToProps => (0,external_wp_compose_namespaceObjec
*
* @return {Component} Enhanced component.
*/
-const withRegistry = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(OriginalComponent => props => (0,external_React_namespaceObject.createElement)(RegistryConsumer, null, registry => (0,external_React_namespaceObject.createElement)(OriginalComponent, {
- ...props,
- registry: registry
-})), 'withRegistry');
+
+const withRegistry = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(OriginalComponent => props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RegistryConsumer, {
+ children: registry => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OriginalComponent, {
+ ...props,
+ registry: registry
+ })
+}), 'withRegistry');
/* harmony default export */ const with_registry = (withRegistry);
;// CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/components/use-dispatch/use-dispatch.js
@@ -4650,6 +4675,7 @@ function select_select(storeNameOrDescriptor) {
+
/**
* Object of available plugins to use with a registry.
*
diff --git a/wp-includes/js/dist/data.min.js b/wp-includes/js/dist/data.min.js
index fe5ef45..5a02111 100644
--- a/wp-includes/js/dist/data.min.js
+++ b/wp-includes/js/dist/data.min.js
@@ -1,9 +1,9 @@
/*! This file is auto-generated */
-(()=>{"use strict";var e={66:e=>{var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function i(e,t){try{return t in e}catch(e){return!1}}function c(e,t,r){var o={};return r.isMergeableObject(e)&&s(e).forEach((function(t){o[t]=n(e[t],r)})),s(t).forEach((function(s){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(i(e,s)&&r.isMergeableObject(t[s])?o[s]=function(e,t){if(!t.customMerge)return u;var r=t.customMerge(e);return"function"==typeof r?r:u}(s,r)(e[s],t[s],r):o[s]=n(t[s],r))})),o}function u(e,r,s){(s=s||{}).arrayMerge=s.arrayMerge||o,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var i=Array.isArray(r);return i===Array.isArray(e)?i?s.arrayMerge(e,r,s):c(e,r,s):n(r,s)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return u(e,r,t)}),{})};var a=u;e.exports=a},3249:e=>{function t(e){return t="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},t(e)}function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t){var r=e._map,n=e._arrayTreeMap,o=e._objectTreeMap;if(r.has(t))return r.get(t);for(var s=Object.keys(t).sort(),i=Array.isArray(t)?n:o,c=0;c<s.length;c++){var u=s[c];if(void 0===(i=i.get(u)))return;var a=t[u];if(void 0===(i=i.get(a)))return}var l=i.get("_ekm_value");return l?(r.delete(l[0]),l[0]=t,i.set("_ekm_value",l),r.set(t,l),l):void 0}var o=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clear(),t instanceof e){var r=[];t.forEach((function(e,t){r.push([t,e])})),t=r}if(null!=t)for(var n=0;n<t.length;n++)this.set(t[n][0],t[n][1])}var o,s,i;return o=e,s=[{key:"set",value:function(r,n){if(null===r||"object"!==t(r))return this._map.set(r,n),this;for(var o=Object.keys(r).sort(),s=[r,n],i=Array.isArray(r)?this._arrayTreeMap:this._objectTreeMap,c=0;c<o.length;c++){var u=o[c];i.has(u)||i.set(u,new e),i=i.get(u);var a=r[u];i.has(a)||i.set(a,new e),i=i.get(a)}var l=i.get("_ekm_value");return l&&this._map.delete(l[0]),i.set("_ekm_value",s),this._map.set(r,s),this}},{key:"get",value:function(e){if(null===e||"object"!==t(e))return this._map.get(e);var r=n(this,e);return r?r[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==t(e)?this._map.has(e):void 0!==n(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(o,s){null!==s&&"object"===t(s)&&(o=o[1]),e.call(n,o,s,r)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}],s&&r(o.prototype,s),i&&r(o,i),e}();e.exports=o}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{AsyncModeProvider:()=>Xe,RegistryConsumer:()=>He,RegistryProvider:()=>We,combineReducers:()=>ct,controls:()=>P,createReduxStore:()=>de,createRegistry:()=>me,createRegistryControl:()=>I,createRegistrySelector:()=>_,dispatch:()=>st,plugins:()=>o,register:()=>yt,registerGenericStore:()=>ft,registerStore:()=>pt,resolveSelect:()=>ut,select:()=>it,subscribe:()=>lt,suspendSelect:()=>at,use:()=>gt,useDispatch:()=>ot,useRegistry:()=>Ke,useSelect:()=>Ye,useSuspenseSelect:()=>Ze,withDispatch:()=>rt,withRegistry:()=>nt,withSelect:()=>et});var e={};r.r(e),r.d(e,{countSelectorsByStatus:()=>te,getCachedResolvers:()=>Z,getIsResolving:()=>$,getResolutionError:()=>Q,getResolutionState:()=>B,hasFinishedResolution:()=>q,hasResolutionFailed:()=>J,hasResolvingSelectors:()=>ee,hasStartedResolution:()=>X,isResolving:()=>Y});var t={};r.r(t),r.d(t,{failResolution:()=>oe,failResolutions:()=>ce,finishResolution:()=>ne,finishResolutions:()=>ie,invalidateResolution:()=>ue,invalidateResolutionForStore:()=>ae,invalidateResolutionForStoreSelector:()=>le,startResolution:()=>re,startResolutions:()=>se});var o={};r.r(o),r.d(o,{persistence:()=>Me});const s=window.wp.deprecated;var i=r.n(s);function c(e){return c="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},c(e)}function u(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===c(t)?t:String(t)}function a(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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){var n,o,s;n=e,o=t,s=r[t],(o=u(o))in n?Object.defineProperty(n,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[o]=s})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var p="function"==typeof Symbol&&Symbol.observable||"@@observable",g=function(){return Math.random().toString(36).substring(7).split("").join(".")},y={INIT:"@@redux/INIT"+g(),REPLACE:"@@redux/REPLACE"+g(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+g()}};function d(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function b(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(f(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(f(1));return r(b)(e,t)}if("function"!=typeof e)throw new Error(f(2));var o=e,s=t,i=[],c=i,u=!1;function a(){c===i&&(c=i.slice())}function l(){if(u)throw new Error(f(3));return s}function g(e){if("function"!=typeof e)throw new Error(f(4));if(u)throw new Error(f(5));var t=!0;return a(),c.push(e),function(){if(t){if(u)throw new Error(f(6));t=!1,a();var r=c.indexOf(e);c.splice(r,1),i=null}}}function h(e){if(!d(e))throw new Error(f(7));if(void 0===e.type)throw new Error(f(8));if(u)throw new Error(f(9));try{u=!0,s=o(s,e)}finally{u=!1}for(var t=i=c,r=0;r<t.length;r++){(0,t[r])()}return e}return h({type:y.INIT}),(n={dispatch:h,subscribe:g,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(f(10));o=e,h({type:y.REPLACE})}})[p]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(f(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[p]=function(){return this},e},n}function h(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function v(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(f(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},s=t.map((function(e){return e(o)}));return n=h.apply(void 0,s)(r.dispatch),l(l({},r),{},{dispatch:n})}}}var S=r(3249),m=r.n(S);const O=window.wp.reduxRoutine;var w=r.n(O);const R=window.wp.compose;function E(e){const t=Object.keys(e);return function(r={},n){const o={};let s=!1;for(const i of t){const t=e[i],c=r[i],u=t(c,n);o[i]=u,s=s||u!==c}return s?o:r}}function _(e){const t=new WeakMap,r=(...n)=>{let o=t.get(r.registry);return o||(o=e(r.registry.select),t.set(r.registry,o)),o(...n)};return r.isRegistrySelector=!0,r}function I(e){return e.isRegistryControl=!0,e}const T="@@data/SELECT",N="@@data/RESOLVE_SELECT",j="@@data/DISPATCH";function A(e){return null!==e&&"object"==typeof e}const P={select:function(e,t,...r){return{type:T,storeKey:A(e)?e.name:e,selectorName:t,args:r}},resolveSelect:function(e,t,...r){return{type:N,storeKey:A(e)?e.name:e,selectorName:t,args:r}},dispatch:function(e,t,...r){return{type:j,storeKey:A(e)?e.name:e,actionName:t,args:r}}},L={[T]:I((e=>({storeKey:t,selectorName:r,args:n})=>e.select(t)[r](...n))),[N]:I((e=>({storeKey:t,selectorName:r,args:n})=>{const o=e.select(t)[r].hasResolver?"resolveSelect":"select";return e[o](t)[r](...n)})),[j]:I((e=>({storeKey:t,actionName:r,args:n})=>e.dispatch(t)[r](...n)))},M=window.wp.privateApis,{lock:x,unlock:F}=(0,M.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/data");const U=()=>e=>t=>{return!(r=t)||"object"!=typeof r&&"function"!=typeof r||"function"!=typeof r.then?e(t):t.then((t=>{if(t)return e(t)}));var r},D=(e,t)=>()=>r=>n=>{const o=e.select(t).getCachedResolvers();return Object.entries(o).forEach((([r,o])=>{const s=e.stores[t]?.resolvers?.[r];s&&s.shouldInvalidate&&o.forEach(((o,i)=>{void 0!==o&&("finished"!==o.status&&"error"!==o.status||s.shouldInvalidate(n,...i)&&e.dispatch(t).invalidateResolution(r,i))}))})),r(n)};function k(e){return()=>t=>r=>"function"==typeof r?r(e):t(r)}function C(e){if(null==e)return[];const t=e.length;let r=t;for(;r>0&&void 0===e[r-1];)r--;return r===t?e:e.slice(0,r)}const V=(G="selectorName",e=>(t={},r)=>{const n=r[G];if(void 0===n)return t;const o=e(t[n],r);return o===t[n]?t:{...t,[n]:o}})(((e=new(m()),t)=>{switch(t.type){case"START_RESOLUTION":{const r=new(m())(e);return r.set(C(t.args),{status:"resolving"}),r}case"FINISH_RESOLUTION":{const r=new(m())(e);return r.set(C(t.args),{status:"finished"}),r}case"FAIL_RESOLUTION":{const r=new(m())(e);return r.set(C(t.args),{status:"error",error:t.error}),r}case"START_RESOLUTIONS":{const r=new(m())(e);for(const e of t.args)r.set(C(e),{status:"resolving"});return r}case"FINISH_RESOLUTIONS":{const r=new(m())(e);for(const e of t.args)r.set(C(e),{status:"finished"});return r}case"FAIL_RESOLUTIONS":{const r=new(m())(e);return t.args.forEach(((e,n)=>{const o={status:"error",error:void 0},s=t.errors[n];s&&(o.error=s),r.set(C(e),o)})),r}case"INVALIDATE_RESOLUTION":{const r=new(m())(e);return r.delete(C(t.args)),r}}return e}));var G;const H=(e={},t)=>{switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":if(t.selectorName in e){const{[t.selectorName]:r,...n}=e;return n}return e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"FAIL_RESOLUTION":case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":case"FAIL_RESOLUTIONS":case"INVALIDATE_RESOLUTION":return V(e,t)}return e};var W={};function K(e){return[e]}function z(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function B(e,t,r){const n=e[t];if(n)return n.get(C(r))}function $(e,t,r){const n=B(e,t,r);return n&&"resolving"===n.status}function X(e,t,r){return void 0!==B(e,t,r)}function q(e,t,r){const n=B(e,t,r)?.status;return"finished"===n||"error"===n}function J(e,t,r){return"error"===B(e,t,r)?.status}function Q(e,t,r){const n=B(e,t,r);return"error"===n?.status?n.error:null}function Y(e,t,r){return"resolving"===B(e,t,r)?.status}function Z(e){return e}function ee(e){return Object.values(e).some((e=>Array.from(e._map.values()).some((e=>"resolving"===e[1]?.status))))}const te=function(e,t){var r,n=t||K;function o(){r=new WeakMap}function s(){var t,o,s,i,c,u=arguments.length;for(i=new Array(u),s=0;s<u;s++)i[s]=arguments[s];for(t=function(e){var t,n,o,s,i,c=r,u=!0;for(t=0;t<e.length;t++){if(!(i=n=e[t])||"object"!=typeof i){u=!1;break}c.has(n)?c=c.get(n):(o=new WeakMap,c.set(n,o),c=o)}return c.has(W)||((s=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=u,c.set(W,s)),c.get(W)}(c=n.apply(null,i)),t.isUniqueByDependants||(t.lastDependants&&!z(c,t.lastDependants,0)&&t.clear(),t.lastDependants=c),o=t.head;o;){if(z(o.args,i,1))return o!==t.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=t.head,o.prev=null,t.head.prev=o,t.head=o),o.val;o=o.next}return o={val:e.apply(null,i)},i[0]=null,o.args=i,t.head&&(t.head.prev=o,o.next=t.head),t.head=o,o.val}return s.getDependants=n,s.clear=o,o(),s}((e=>{const t={};return Object.values(e).forEach((e=>Array.from(e._map.values()).forEach((e=>{var r;const n=null!==(r=e[1]?.status)&&void 0!==r?r:"error";t[n]||(t[n]=0),t[n]++})))),t}),(e=>[e]));function re(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function ne(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function oe(e,t,r){return{type:"FAIL_RESOLUTION",selectorName:e,args:t,error:r}}function se(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function ie(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function ce(e,t,r){return{type:"FAIL_RESOLUTIONS",selectorName:e,args:t,errors:r}}function ue(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function ae(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function le(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}const fe=e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)void 0===t[e]&&t.splice(e,1);return t},pe=(e,t)=>Object.fromEntries(Object.entries(null!=e?e:{}).map((([e,r])=>[e,t(r,e)]))),ge=(e,t)=>t instanceof Map?Object.fromEntries(t):t;function ye(e){const t=new WeakMap;return{get(r,n){let o=t.get(r);return o||(o=e(r,n),t.set(r,o)),o}}}function de(r,n){const o={},s={},i={privateActions:o,registerPrivateActions:e=>{Object.assign(o,e)},privateSelectors:s,registerPrivateSelectors:e=>{Object.assign(s,e)}},c={name:r,instantiate:c=>{const u=new Set,a=n.reducer,l=function(e,t,r,n){const o={...t.controls,...L},s=pe(o,(e=>e.isRegistryControl?e(r):e)),i=[D(r,e),U,w()(s),k(n)],c=[v(...i)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&c.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e,serialize:{replacer:ge}}));const{reducer:u,initialState:a}=t,l=E({metadata:H,root:u});return b(l,{root:a},(0,R.compose)(c))}(r,n,c,{registry:c,get dispatch(){return h},get select(){return N},get resolveSelect(){return P()}});x(l,i);const f=function(){const e={};return{isRunning:(t,r)=>e[t]&&e[t].get(fe(r)),clear(t,r){e[t]&&e[t].delete(fe(r))},markAsRunning(t,r){e[t]||(e[t]=new(m())),e[t].set(fe(r),!0)}}}();function p(e){return(...t)=>Promise.resolve(l.dispatch(e(...t)))}const g={...pe(t,p),...pe(n.actions,p)},y=ye(p),d=new Proxy((()=>{}),{get:(e,t)=>{const r=o[t];return r?y.get(r,t):g[t]}}),h=new Proxy(d,{apply:(e,t,[r])=>l.dispatch(r)});x(g,d);const S=n.resolvers?function(e){return pe(e,(e=>e.fulfill?e:{...e,fulfill:e}))}(n.resolvers):{};function O(e,t){e.isRegistrySelector&&(e.registry=c);const r=(...t)=>{t=be(e,t);const r=l.__unstableOriginalGetState();return e.isRegistrySelector&&(e.registry=c),e(r.root,...t)};r.__unstableNormalizeArgs=e.__unstableNormalizeArgs;const n=S[t];return n?function(e,t,r,n,o){function s(e){const s=n.getState();if(o.isRunning(t,e)||"function"==typeof r.isFulfilled&&r.isFulfilled(s,...e))return;const{metadata:i}=n.__unstableOriginalGetState();X(i,t,e)||(o.markAsRunning(t,e),setTimeout((async()=>{o.clear(t,e),n.dispatch(re(t,e));try{const o=r.fulfill(...e);o&&await n.dispatch(o),n.dispatch(ne(t,e))}catch(r){n.dispatch(oe(t,e,r))}}),0))}const i=(...t)=>(s(t=be(e,t)),e(...t));return i.hasResolver=!0,i}(r,t,n,l,f):(r.hasResolver=!1,r)}const _={...pe(e,(function(e){const t=(...t)=>{const r=l.__unstableOriginalGetState(),o=t&&t[0],s=t&&t[1],i=n?.selectors?.[o];return o&&i&&(t[1]=be(i,s)),e(r.metadata,...t)};return t.hasResolver=!1,t})),...pe(n.selectors,O)},I=ye(O);for(const[e,t]of Object.entries(s))I.get(t,e);const T=new Proxy((()=>{}),{get:(e,t)=>{const r=s[t];return r?I.get(r,t):_[t]}}),N=new Proxy(T,{apply:(e,t,[r])=>r(l.__unstableOriginalGetState())});x(_,T);const j=function(e,t){const{getIsResolving:r,hasStartedResolution:n,hasFinishedResolution:o,hasResolutionFailed:s,isResolving:i,getCachedResolvers:c,getResolutionState:u,getResolutionError:a,hasResolvingSelectors:l,countSelectorsByStatus:f,...p}=e;return pe(p,((r,n)=>r.hasResolver?(...o)=>new Promise(((s,i)=>{const c=()=>e.hasFinishedResolution(n,o),u=t=>{if(e.hasResolutionFailed(n,o)){const t=e.getResolutionError(n,o);i(t)}else s(t)},a=()=>r.apply(null,o),l=a();if(c())return u(l);const f=t.subscribe((()=>{c()&&(f(),u(a()))}))})):async(...e)=>r.apply(null,e)))}(_,l),A=function(e,t){return pe(e,((r,n)=>r.hasResolver?(...o)=>{const s=r.apply(null,o);if(e.hasFinishedResolution(n,o)){if(e.hasResolutionFailed(n,o))throw e.getResolutionError(n,o);return s}throw new Promise((r=>{const s=t.subscribe((()=>{e.hasFinishedResolution(n,o)&&(r(),s())}))}))}:r))}(_,l),P=()=>j;l.__unstableOriginalGetState=l.getState,l.getState=()=>l.__unstableOriginalGetState().root;const M=l&&(e=>(u.add(e),()=>u.delete(e)));let F=l.__unstableOriginalGetState();return l.subscribe((()=>{const e=l.__unstableOriginalGetState(),t=e!==F;if(F=e,t)for(const e of u)e()})),{reducer:a,store:l,actions:g,selectors:_,resolvers:S,getSelectors:()=>_,getResolveSelectors:P,getSuspendSelectors:()=>A,getActions:()=>g,subscribe:M}}};return x(c,i),c}function be(e,t){return e.__unstableNormalizeArgs&&"function"==typeof e.__unstableNormalizeArgs&&t?.length?e.__unstableNormalizeArgs(t):t}const he={name:"core/data",instantiate(e){const t=t=>(r,...n)=>e.select(r)[t](...n),r=t=>(r,...n)=>e.dispatch(r)[t](...n);return{getSelectors:()=>Object.fromEntries(["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"].map((e=>[e,t(e)]))),getActions:()=>Object.fromEntries(["startResolution","finishResolution","invalidateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].map((e=>[e,r(e)]))),subscribe:()=>()=>()=>{}}}};function ve(){let e=!1,t=!1;const r=new Set,n=()=>Array.from(r).forEach((e=>e()));return{get isPaused(){return e},subscribe:e=>(r.add(e),()=>r.delete(e)),pause(){e=!0},resume(){e=!1,t&&(t=!1,n())},emit(){e?t=!0:n()}}}function Se(e){return"string"==typeof e?e:e.name}function me(e={},t=null){const r={},n=ve();let o=null;function s(){n.emit()}function c(e,n){if(r[e])return console.error('Store "'+e+'" is already registered.'),r[e];const o=n();if("function"!=typeof o.getSelectors)throw new TypeError("store.getSelectors must be a function");if("function"!=typeof o.getActions)throw new TypeError("store.getActions must be a function");if("function"!=typeof o.subscribe)throw new TypeError("store.subscribe must be a function");o.emitter=ve();const i=o.subscribe;if(o.subscribe=e=>{const t=o.emitter.subscribe(e),r=i((()=>{o.emitter.isPaused?o.emitter.emit():e()}));return()=>{r?.(),t?.()}},r[e]=o,o.subscribe(s),t)try{F(o.store).registerPrivateActions(F(t).privateActionsOf(e)),F(o.store).registerPrivateSelectors(F(t).privateSelectorsOf(e))}catch(e){}return o}let u={batch:function(e){n.isPaused?e():(n.pause(),Object.values(r).forEach((e=>e.emitter.pause())),e(),n.resume(),Object.values(r).forEach((e=>e.emitter.resume())))},stores:r,namespaces:r,subscribe:(e,o)=>{if(!o)return n.subscribe(e);const s=Se(o),i=r[s];return i?i.subscribe(e):t?t.subscribe(e,o):n.subscribe(e)},select:function(e){const n=Se(e);o?.add(n);const s=r[n];return s?s.getSelectors():t?.select(n)},resolveSelect:function(e){const n=Se(e);o?.add(n);const s=r[n];return s?s.getResolveSelectors():t&&t.resolveSelect(n)},suspendSelect:function(e){const n=Se(e);o?.add(n);const s=r[n];return s?s.getSuspendSelectors():t&&t.suspendSelect(n)},dispatch:function(e){const n=Se(e),o=r[n];return o?o.getActions():t&&t.dispatch(n)},use:function(e,t){if(!e)return;return u={...u,...e(u,t)},u},register:function(e){c(e.name,(()=>e.instantiate(u)))},registerGenericStore:function(e,t){i()("wp.data.registerGenericStore",{since:"5.9",alternative:"wp.data.register( storeDescriptor )"}),c(e,(()=>t))},registerStore:function(e,t){if(!t.reducer)throw new TypeError("Must specify store reducer");return c(e,(()=>de(e,t).instantiate(u))).store},__unstableMarkListeningStores:function(e,t){o=new Set;try{return e.call(this)}finally{t.current=Array.from(o),o=null}}};u.register(he);for(const[t,r]of Object.entries(e))u.register(de(t,r));t&&t.subscribe(s);const a=(l=u,Object.fromEntries(Object.entries(l).map((([e,t])=>"function"!=typeof t?[e,t]:[e,function(){return u[e].apply(null,arguments)}]))));var l;return x(a,{privateActionsOf:e=>{try{return F(r[e].store).privateActions}catch(e){return{}}},privateSelectorsOf:e=>{try{return F(r[e].store).privateSelectors}catch(e){return{}}}}),a}const Oe=me();
+(()=>{"use strict";var e={66:e=>{var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function i(e,t){try{return t in e}catch(e){return!1}}function c(e,t,r){var o={};return r.isMergeableObject(e)&&s(e).forEach((function(t){o[t]=n(e[t],r)})),s(t).forEach((function(s){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(i(e,s)&&r.isMergeableObject(t[s])?o[s]=function(e,t){if(!t.customMerge)return u;var r=t.customMerge(e);return"function"==typeof r?r:u}(s,r)(e[s],t[s],r):o[s]=n(t[s],r))})),o}function u(e,r,s){(s=s||{}).arrayMerge=s.arrayMerge||o,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var i=Array.isArray(r);return i===Array.isArray(e)?i?s.arrayMerge(e,r,s):c(e,r,s):n(r,s)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return u(e,r,t)}),{})};var a=u;e.exports=a},3249:e=>{function t(e){return t="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},t(e)}function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t){var r=e._map,n=e._arrayTreeMap,o=e._objectTreeMap;if(r.has(t))return r.get(t);for(var s=Object.keys(t).sort(),i=Array.isArray(t)?n:o,c=0;c<s.length;c++){var u=s[c];if(void 0===(i=i.get(u)))return;var a=t[u];if(void 0===(i=i.get(a)))return}var l=i.get("_ekm_value");return l?(r.delete(l[0]),l[0]=t,i.set("_ekm_value",l),r.set(t,l),l):void 0}var o=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clear(),t instanceof e){var r=[];t.forEach((function(e,t){r.push([t,e])})),t=r}if(null!=t)for(var n=0;n<t.length;n++)this.set(t[n][0],t[n][1])}var o,s,i;return o=e,s=[{key:"set",value:function(r,n){if(null===r||"object"!==t(r))return this._map.set(r,n),this;for(var o=Object.keys(r).sort(),s=[r,n],i=Array.isArray(r)?this._arrayTreeMap:this._objectTreeMap,c=0;c<o.length;c++){var u=o[c];i.has(u)||i.set(u,new e),i=i.get(u);var a=r[u];i.has(a)||i.set(a,new e),i=i.get(a)}var l=i.get("_ekm_value");return l&&this._map.delete(l[0]),i.set("_ekm_value",s),this._map.set(r,s),this}},{key:"get",value:function(e){if(null===e||"object"!==t(e))return this._map.get(e);var r=n(this,e);return r?r[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==t(e)?this._map.has(e):void 0!==n(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(o,s){null!==s&&"object"===t(s)&&(o=o[1]),e.call(n,o,s,r)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}],s&&r(o.prototype,s),i&&r(o,i),e}();e.exports=o}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{AsyncModeProvider:()=>$e,RegistryConsumer:()=>He,RegistryProvider:()=>We,combineReducers:()=>ut,controls:()=>L,createReduxStore:()=>be,createRegistry:()=>me,createRegistryControl:()=>I,createRegistrySelector:()=>_,createSelector:()=>B,dispatch:()=>it,plugins:()=>o,register:()=>dt,registerGenericStore:()=>pt,registerStore:()=>gt,resolveSelect:()=>at,select:()=>ct,subscribe:()=>ft,suspendSelect:()=>lt,use:()=>yt,useDispatch:()=>st,useRegistry:()=>Ke,useSelect:()=>Ye,useSuspenseSelect:()=>Ze,withDispatch:()=>nt,withRegistry:()=>ot,withSelect:()=>tt});var e={};r.r(e),r.d(e,{countSelectorsByStatus:()=>re,getCachedResolvers:()=>ee,getIsResolving:()=>$,getResolutionError:()=>Y,getResolutionState:()=>X,hasFinishedResolution:()=>J,hasResolutionFailed:()=>Q,hasResolvingSelectors:()=>te,hasStartedResolution:()=>q,isResolving:()=>Z});var t={};r.r(t),r.d(t,{failResolution:()=>se,failResolutions:()=>ue,finishResolution:()=>oe,finishResolutions:()=>ce,invalidateResolution:()=>ae,invalidateResolutionForStore:()=>le,invalidateResolutionForStoreSelector:()=>fe,startResolution:()=>ne,startResolutions:()=>ie});var o={};r.r(o),r.d(o,{persistence:()=>Me});const s=window.wp.deprecated;var i=r.n(s);function c(e){return c="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},c(e)}function u(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===c(t)?t:String(t)}function a(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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){var n,o,s;n=e,o=t,s=r[t],(o=u(o))in n?Object.defineProperty(n,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[o]=s})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var p="function"==typeof Symbol&&Symbol.observable||"@@observable",g=function(){return Math.random().toString(36).substring(7).split("").join(".")},y={INIT:"@@redux/INIT"+g(),REPLACE:"@@redux/REPLACE"+g(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+g()}};function d(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function b(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(f(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(f(1));return r(b)(e,t)}if("function"!=typeof e)throw new Error(f(2));var o=e,s=t,i=[],c=i,u=!1;function a(){c===i&&(c=i.slice())}function l(){if(u)throw new Error(f(3));return s}function g(e){if("function"!=typeof e)throw new Error(f(4));if(u)throw new Error(f(5));var t=!0;return a(),c.push(e),function(){if(t){if(u)throw new Error(f(6));t=!1,a();var r=c.indexOf(e);c.splice(r,1),i=null}}}function v(e){if(!d(e))throw new Error(f(7));if(void 0===e.type)throw new Error(f(8));if(u)throw new Error(f(9));try{u=!0,s=o(s,e)}finally{u=!1}for(var t=i=c,r=0;r<t.length;r++){(0,t[r])()}return e}return v({type:y.INIT}),(n={dispatch:v,subscribe:g,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(f(10));o=e,v({type:y.REPLACE})}})[p]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(f(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[p]=function(){return this},e},n}function v(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function h(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(f(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},s=t.map((function(e){return e(o)}));return n=v.apply(void 0,s)(r.dispatch),l(l({},r),{},{dispatch:n})}}}var S=r(3249),O=r.n(S);const m=window.wp.reduxRoutine;var w=r.n(m);const R=window.wp.compose;function E(e){const t=Object.keys(e);return function(r={},n){const o={};let s=!1;for(const i of t){const t=e[i],c=r[i],u=t(c,n);o[i]=u,s=s||u!==c}return s?o:r}}function _(e){const t=new WeakMap,r=(...n)=>{let o=t.get(r.registry);return o||(o=e(r.registry.select),t.set(r.registry,o)),o(...n)};return r.isRegistrySelector=!0,r}function I(e){return e.isRegistryControl=!0,e}const T="@@data/SELECT",j="@@data/RESOLVE_SELECT",N="@@data/DISPATCH";function A(e){return null!==e&&"object"==typeof e}const L={select:function(e,t,...r){return{type:T,storeKey:A(e)?e.name:e,selectorName:t,args:r}},resolveSelect:function(e,t,...r){return{type:j,storeKey:A(e)?e.name:e,selectorName:t,args:r}},dispatch:function(e,t,...r){return{type:N,storeKey:A(e)?e.name:e,actionName:t,args:r}}},P={[T]:I((e=>({storeKey:t,selectorName:r,args:n})=>e.select(t)[r](...n))),[j]:I((e=>({storeKey:t,selectorName:r,args:n})=>{const o=e.select(t)[r].hasResolver?"resolveSelect":"select";return e[o](t)[r](...n)})),[N]:I((e=>({storeKey:t,actionName:r,args:n})=>e.dispatch(t)[r](...n)))},x=window.wp.privateApis,{lock:M,unlock:F}=(0,x.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/data");const U=()=>e=>t=>{return!(r=t)||"object"!=typeof r&&"function"!=typeof r||"function"!=typeof r.then?e(t):t.then((t=>{if(t)return e(t)}));var r},D=(e,t)=>()=>r=>n=>{const o=e.select(t).getCachedResolvers();return Object.entries(o).forEach((([r,o])=>{const s=e.stores[t]?.resolvers?.[r];s&&s.shouldInvalidate&&o.forEach(((o,i)=>{void 0!==o&&("finished"!==o.status&&"error"!==o.status||s.shouldInvalidate(n,...i)&&e.dispatch(t).invalidateResolution(r,i))}))})),r(n)};function k(e){return()=>t=>r=>"function"==typeof r?r(e):t(r)}function C(e){if(null==e)return[];const t=e.length;let r=t;for(;r>0&&void 0===e[r-1];)r--;return r===t?e:e.slice(0,r)}const V=(G="selectorName",e=>(t={},r)=>{const n=r[G];if(void 0===n)return t;const o=e(t[n],r);return o===t[n]?t:{...t,[n]:o}})(((e=new(O()),t)=>{switch(t.type){case"START_RESOLUTION":{const r=new(O())(e);return r.set(C(t.args),{status:"resolving"}),r}case"FINISH_RESOLUTION":{const r=new(O())(e);return r.set(C(t.args),{status:"finished"}),r}case"FAIL_RESOLUTION":{const r=new(O())(e);return r.set(C(t.args),{status:"error",error:t.error}),r}case"START_RESOLUTIONS":{const r=new(O())(e);for(const e of t.args)r.set(C(e),{status:"resolving"});return r}case"FINISH_RESOLUTIONS":{const r=new(O())(e);for(const e of t.args)r.set(C(e),{status:"finished"});return r}case"FAIL_RESOLUTIONS":{const r=new(O())(e);return t.args.forEach(((e,n)=>{const o={status:"error",error:void 0},s=t.errors[n];s&&(o.error=s),r.set(C(e),o)})),r}case"INVALIDATE_RESOLUTION":{const r=new(O())(e);return r.delete(C(t.args)),r}}return e}));var G;const H=(e={},t)=>{switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":if(t.selectorName in e){const{[t.selectorName]:r,...n}=e;return n}return e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"FAIL_RESOLUTION":case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":case"FAIL_RESOLUTIONS":case"INVALIDATE_RESOLUTION":return V(e,t)}return e};var W={};function K(e){return[e]}function z(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function B(e,t){var r,n=t||K;function o(){r=new WeakMap}function s(){var t,o,s,i,c,u=arguments.length;for(i=new Array(u),s=0;s<u;s++)i[s]=arguments[s];for(t=function(e){var t,n,o,s,i,c=r,u=!0;for(t=0;t<e.length;t++){if(!(i=n=e[t])||"object"!=typeof i){u=!1;break}c.has(n)?c=c.get(n):(o=new WeakMap,c.set(n,o),c=o)}return c.has(W)||((s=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=u,c.set(W,s)),c.get(W)}(c=n.apply(null,i)),t.isUniqueByDependants||(t.lastDependants&&!z(c,t.lastDependants,0)&&t.clear(),t.lastDependants=c),o=t.head;o;){if(z(o.args,i,1))return o!==t.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=t.head,o.prev=null,t.head.prev=o,t.head=o),o.val;o=o.next}return o={val:e.apply(null,i)},i[0]=null,o.args=i,t.head&&(t.head.prev=o,o.next=t.head),t.head=o,o.val}return s.getDependants=n,s.clear=o,o(),s}function X(e,t,r){const n=e[t];if(n)return n.get(C(r))}function $(e,t,r){i()("wp.data.select( store ).getIsResolving",{since:"6.6",version:"6.8",alternative:"wp.data.select( store ).getResolutionState"});const n=X(e,t,r);return n&&"resolving"===n.status}function q(e,t,r){return void 0!==X(e,t,r)}function J(e,t,r){const n=X(e,t,r)?.status;return"finished"===n||"error"===n}function Q(e,t,r){return"error"===X(e,t,r)?.status}function Y(e,t,r){const n=X(e,t,r);return"error"===n?.status?n.error:null}function Z(e,t,r){return"resolving"===X(e,t,r)?.status}function ee(e){return e}function te(e){return Object.values(e).some((e=>Array.from(e._map.values()).some((e=>"resolving"===e[1]?.status))))}const re=B((e=>{const t={};return Object.values(e).forEach((e=>Array.from(e._map.values()).forEach((e=>{var r;const n=null!==(r=e[1]?.status)&&void 0!==r?r:"error";t[n]||(t[n]=0),t[n]++})))),t}),(e=>[e]));function ne(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function oe(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function se(e,t,r){return{type:"FAIL_RESOLUTION",selectorName:e,args:t,error:r}}function ie(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function ce(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function ue(e,t,r){return{type:"FAIL_RESOLUTIONS",selectorName:e,args:t,errors:r}}function ae(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function le(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function fe(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}const pe=e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)void 0===t[e]&&t.splice(e,1);return t},ge=(e,t)=>Object.fromEntries(Object.entries(null!=e?e:{}).map((([e,r])=>[e,t(r,e)]))),ye=(e,t)=>t instanceof Map?Object.fromEntries(t):t instanceof window.HTMLElement?null:t;function de(e){const t=new WeakMap;return{get(r,n){let o=t.get(r);return o||(o=e(r,n),t.set(r,o)),o}}}function be(r,n){const o={},s={},i={privateActions:o,registerPrivateActions:e=>{Object.assign(o,e)},privateSelectors:s,registerPrivateSelectors:e=>{Object.assign(s,e)}},c={name:r,instantiate:c=>{const u=new Set,a=n.reducer,l=function(e,t,r,n){const o={...t.controls,...P},s=ge(o,(e=>e.isRegistryControl?e(r):e)),i=[D(r,e),U,w()(s),k(n)],c=[h(...i)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&c.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e,serialize:{replacer:ye}}));const{reducer:u,initialState:a}=t,l=E({metadata:H,root:u});return b(l,{root:a},(0,R.compose)(c))}(r,n,c,{registry:c,get dispatch(){return v},get select(){return j},get resolveSelect(){return L()}});M(l,i);const f=function(){const e={};return{isRunning:(t,r)=>e[t]&&e[t].get(pe(r)),clear(t,r){e[t]&&e[t].delete(pe(r))},markAsRunning(t,r){e[t]||(e[t]=new(O())),e[t].set(pe(r),!0)}}}();function p(e){return(...t)=>Promise.resolve(l.dispatch(e(...t)))}const g={...ge(t,p),...ge(n.actions,p)},y=de(p),d=new Proxy((()=>{}),{get:(e,t)=>{const r=o[t];return r?y.get(r,t):g[t]}}),v=new Proxy(d,{apply:(e,t,[r])=>l.dispatch(r)});M(g,d);const S=n.resolvers?function(e){return ge(e,(e=>e.fulfill?e:{...e,fulfill:e}))}(n.resolvers):{};function m(e,t){e.isRegistrySelector&&(e.registry=c);const r=(...t)=>{t=ve(e,t);const r=l.__unstableOriginalGetState();return e.isRegistrySelector&&(e.registry=c),e(r.root,...t)};r.__unstableNormalizeArgs=e.__unstableNormalizeArgs;const n=S[t];return n?function(e,t,r,n,o){function s(e){const s=n.getState();if(o.isRunning(t,e)||"function"==typeof r.isFulfilled&&r.isFulfilled(s,...e))return;const{metadata:i}=n.__unstableOriginalGetState();q(i,t,e)||(o.markAsRunning(t,e),setTimeout((async()=>{o.clear(t,e),n.dispatch(ne(t,e));try{const o=r.fulfill(...e);o&&await n.dispatch(o),n.dispatch(oe(t,e))}catch(r){n.dispatch(se(t,e,r))}}),0))}const i=(...t)=>(s(t=ve(e,t)),e(...t));return i.hasResolver=!0,i}(r,t,n,l,f):(r.hasResolver=!1,r)}const _={...ge(e,(function(e){const t=(...t)=>{const r=l.__unstableOriginalGetState(),o=t&&t[0],s=t&&t[1],i=n?.selectors?.[o];return o&&i&&(t[1]=ve(i,s)),e(r.metadata,...t)};return t.hasResolver=!1,t})),...ge(n.selectors,m)},I=de(m);for(const[e,t]of Object.entries(s))I.get(t,e);const T=new Proxy((()=>{}),{get:(e,t)=>{const r=s[t];return r?I.get(r,t):_[t]}}),j=new Proxy(T,{apply:(e,t,[r])=>r(l.__unstableOriginalGetState())});M(_,T);const N=function(e,t){const{getIsResolving:r,hasStartedResolution:n,hasFinishedResolution:o,hasResolutionFailed:s,isResolving:i,getCachedResolvers:c,getResolutionState:u,getResolutionError:a,hasResolvingSelectors:l,countSelectorsByStatus:f,...p}=e;return ge(p,((r,n)=>r.hasResolver?(...o)=>new Promise(((s,i)=>{const c=()=>e.hasFinishedResolution(n,o),u=t=>{if(e.hasResolutionFailed(n,o)){const t=e.getResolutionError(n,o);i(t)}else s(t)},a=()=>r.apply(null,o),l=a();if(c())return u(l);const f=t.subscribe((()=>{c()&&(f(),u(a()))}))})):async(...e)=>r.apply(null,e)))}(_,l),A=function(e,t){return ge(e,((r,n)=>r.hasResolver?(...o)=>{const s=r.apply(null,o);if(e.hasFinishedResolution(n,o)){if(e.hasResolutionFailed(n,o))throw e.getResolutionError(n,o);return s}throw new Promise((r=>{const s=t.subscribe((()=>{e.hasFinishedResolution(n,o)&&(r(),s())}))}))}:r))}(_,l),L=()=>N;l.__unstableOriginalGetState=l.getState,l.getState=()=>l.__unstableOriginalGetState().root;const x=l&&(e=>(u.add(e),()=>u.delete(e)));let F=l.__unstableOriginalGetState();return l.subscribe((()=>{const e=l.__unstableOriginalGetState(),t=e!==F;if(F=e,t)for(const e of u)e()})),{reducer:a,store:l,actions:g,selectors:_,resolvers:S,getSelectors:()=>_,getResolveSelectors:L,getSuspendSelectors:()=>A,getActions:()=>g,subscribe:x}}};return M(c,i),c}function ve(e,t){return e.__unstableNormalizeArgs&&"function"==typeof e.__unstableNormalizeArgs&&t?.length?e.__unstableNormalizeArgs(t):t}const he={name:"core/data",instantiate(e){const t=t=>(r,...n)=>e.select(r)[t](...n),r=t=>(r,...n)=>e.dispatch(r)[t](...n);return{getSelectors:()=>Object.fromEntries(["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"].map((e=>[e,t(e)]))),getActions:()=>Object.fromEntries(["startResolution","finishResolution","invalidateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].map((e=>[e,r(e)]))),subscribe:()=>()=>()=>{}}}};function Se(){let e=!1,t=!1;const r=new Set,n=()=>Array.from(r).forEach((e=>e()));return{get isPaused(){return e},subscribe:e=>(r.add(e),()=>r.delete(e)),pause(){e=!0},resume(){e=!1,t&&(t=!1,n())},emit(){e?t=!0:n()}}}function Oe(e){return"string"==typeof e?e:e.name}function me(e={},t=null){const r={},n=Se();let o=null;function s(){n.emit()}function c(e,n){if(r[e])return console.error('Store "'+e+'" is already registered.'),r[e];const o=n();if("function"!=typeof o.getSelectors)throw new TypeError("store.getSelectors must be a function");if("function"!=typeof o.getActions)throw new TypeError("store.getActions must be a function");if("function"!=typeof o.subscribe)throw new TypeError("store.subscribe must be a function");o.emitter=Se();const i=o.subscribe;if(o.subscribe=e=>{const t=o.emitter.subscribe(e),r=i((()=>{o.emitter.isPaused?o.emitter.emit():e()}));return()=>{r?.(),t?.()}},r[e]=o,o.subscribe(s),t)try{F(o.store).registerPrivateActions(F(t).privateActionsOf(e)),F(o.store).registerPrivateSelectors(F(t).privateSelectorsOf(e))}catch(e){}return o}let u={batch:function(e){if(n.isPaused)e();else{n.pause(),Object.values(r).forEach((e=>e.emitter.pause()));try{e()}finally{n.resume(),Object.values(r).forEach((e=>e.emitter.resume()))}}},stores:r,namespaces:r,subscribe:(e,o)=>{if(!o)return n.subscribe(e);const s=Oe(o),i=r[s];return i?i.subscribe(e):t?t.subscribe(e,o):n.subscribe(e)},select:function(e){const n=Oe(e);o?.add(n);const s=r[n];return s?s.getSelectors():t?.select(n)},resolveSelect:function(e){const n=Oe(e);o?.add(n);const s=r[n];return s?s.getResolveSelectors():t&&t.resolveSelect(n)},suspendSelect:function(e){const n=Oe(e);o?.add(n);const s=r[n];return s?s.getSuspendSelectors():t&&t.suspendSelect(n)},dispatch:function(e){const n=Oe(e),o=r[n];return o?o.getActions():t&&t.dispatch(n)},use:function(e,t){if(!e)return;return u={...u,...e(u,t)},u},register:function(e){c(e.name,(()=>e.instantiate(u)))},registerGenericStore:function(e,t){i()("wp.data.registerGenericStore",{since:"5.9",alternative:"wp.data.register( storeDescriptor )"}),c(e,(()=>t))},registerStore:function(e,t){if(!t.reducer)throw new TypeError("Must specify store reducer");return c(e,(()=>be(e,t).instantiate(u))).store},__unstableMarkListeningStores:function(e,t){o=new Set;try{return e.call(this)}finally{t.current=Array.from(o),o=null}}};u.register(he);for(const[t,r]of Object.entries(e))u.register(be(t,r));t&&t.subscribe(s);const a=(l=u,Object.fromEntries(Object.entries(l).map((([e,t])=>"function"!=typeof t?[e,t]:[e,function(){return u[e].apply(null,arguments)}]))));var l;return M(a,{privateActionsOf:e=>{try{return F(r[e].store).privateActions}catch(e){return{}}},privateSelectorsOf:e=>{try{return F(r[e].store).privateSelectors}catch(e){return{}}}}),a}const we=me();
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
-function we(e){return"[object Object]"===Object.prototype.toString.call(e)}function Re(e){var t,r;return!1!==we(e)&&(void 0===(t=e.constructor)||!1!==we(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}var Ee=r(66),_e=r.n(Ee);let Ie;const Te={getItem:e=>Ie&&Ie[e]?Ie[e]:null,setItem(e,t){Ie||Te.clear(),Ie[e]=String(t)},clear(){Ie=Object.create(null)}},Ne=Te;let je;try{je=window.localStorage,je.setItem("__wpDataTestLocalStorage",""),je.removeItem("__wpDataTestLocalStorage")}catch(e){je=Ne}const Ae=je,Pe="WP_DATA";function Le(e,t){const r=function(e){const{storage:t=Ae,storageKey:r=Pe}=e;let n;return{get:function(){if(void 0===n){const e=t.getItem(r);if(null===e)n={};else try{n=JSON.parse(e)}catch(e){n={}}}return n},set:function(e,o){n={...n,[e]:o},t.setItem(r,JSON.stringify(n))}}}(t);return{registerStore(t,n){if(!n.persist)return e.registerStore(t,n);const o=r.get()[t];if(void 0!==o){let e=n.reducer(n.initialState,{type:"@@WP/PERSISTENCE_RESTORE"});e=Re(e)&&Re(o)?_e()(e,o,{isMergeableObject:Re}):o,n={...n,initialState:e}}const s=e.registerStore(t,n);return s.subscribe(function(e,t,n){let o;if(Array.isArray(n)){const e=n.reduce(((e,t)=>Object.assign(e,{[t]:(e,r)=>r.nextState[t]})),{});s=ct(e),o=(e,t)=>t.nextState===e?e:s(e,t)}else o=(e,t)=>t.nextState;var s;let i=o(void 0,{nextState:e()});return()=>{const n=o(i,{nextState:e()});n!==i&&(r.set(t,n),i=n)}}(s.getState,t,n.persist)),s}}}Le.__unstableMigrate=()=>{};const Me=Le,xe=window.React,Fe=window.wp.priorityQueue,Ue=window.wp.element,De=window.wp.isShallowEqual;var ke=r.n(De);const Ce=(0,Ue.createContext)(Oe),{Consumer:Ve,Provider:Ge}=Ce,He=Ve,We=Ge;function Ke(){return(0,Ue.useContext)(Ce)}const ze=(0,Ue.createContext)(!1),{Consumer:Be,Provider:$e}=ze,Xe=$e;const qe=(0,Fe.createQueue)();function Je(e,t){const r=t?e.suspendSelect:e.select,n={};let o,s,i,c,u=!1;const a=new Map;function l(t){var r;return null!==(r=e.stores[t]?.store?.getState?.())&&void 0!==r?r:{}}return(t,f)=>{function p(){if(u&&t===o)return s;const f={current:null},p=e.__unstableMarkListeningStores((()=>t(r,e)),f);if(c)c.updateStores(f.current);else{for(const e of f.current)a.set(e,l(e));c=(t=>{const r=[...t],o=new Set;return{subscribe:function(t){if(u)for(const e of r)a.get(e)!==l(e)&&(u=!1);a.clear();const s=()=>{u=!1,t()},c=()=>{i?qe.add(n,s):s()},f=[];function p(t){f.push(e.subscribe(c,t))}for(const e of r)p(e);return o.add(p),()=>{o.delete(p);for(const e of f.values())e?.();qe.cancel(n)}},updateStores:function(e){for(const t of e)if(!r.includes(t)){r.push(t);for(const e of o)e(t)}}}})(f.current)}ke()(s,p)||(s=p),o=t,u=!0}return i&&!f&&(u=!1,qe.cancel(n)),p(),i=f,{subscribe:c.subscribe,getValue:function(){return p(),s}}}}function Qe(e,t,r){const n=Ke(),o=(0,Ue.useContext)(ze),s=(0,Ue.useMemo)((()=>Je(n,e)),[n,e]),i=(0,Ue.useCallback)(t,r),{subscribe:c,getValue:u}=s(i,o),a=(0,Ue.useSyncExternalStore)(c,u,u);return(0,Ue.useDebugValue)(a),a}function Ye(e,t){const r="function"!=typeof e,n=(0,Ue.useRef)(r);if(r!==n.current){const e=n.current?"static":"mapping";throw new Error(`Switching useSelect from ${e} to ${r?"static":"mapping"} is not allowed`)}return r?(o=e,Ke().select(o)):Qe(!1,e,t);var o}function Ze(e,t){return Qe(!0,e,t)}const et=e=>(0,R.createHigherOrderComponent)((t=>(0,R.pure)((r=>{const n=Ye(((t,n)=>e(t,r,n)));return(0,xe.createElement)(t,{...r,...n})}))),"withSelect"),tt=(e,t)=>{const r=Ke(),n=(0,Ue.useRef)(e);return(0,R.useIsomorphicLayoutEffect)((()=>{n.current=e})),(0,Ue.useMemo)((()=>{const e=n.current(r.dispatch,r);return Object.fromEntries(Object.entries(e).map((([e,t])=>("function"!=typeof t&&console.warn(`Property ${e} returned from dispatchMap in useDispatchWithMap must be a function.`),[e,(...t)=>n.current(r.dispatch,r)[e](...t)]))))}),[r,...t])},rt=e=>(0,R.createHigherOrderComponent)((t=>r=>{const n=tt(((t,n)=>e(t,r,n)),[]);return(0,xe.createElement)(t,{...r,...n})}),"withDispatch"),nt=(0,R.createHigherOrderComponent)((e=>t=>(0,xe.createElement)(He,null,(r=>(0,xe.createElement)(e,{...t,registry:r})))),"withRegistry"),ot=e=>{const{dispatch:t}=Ke();return void 0===e?t:t(e)};function st(e){return Oe.dispatch(e)}function it(e){return Oe.select(e)}const ct=E,ut=Oe.resolveSelect,at=Oe.suspendSelect,lt=Oe.subscribe,ft=Oe.registerGenericStore,pt=Oe.registerStore,gt=Oe.use,yt=Oe.register})(),(window.wp=window.wp||{}).data=n})(); \ No newline at end of file
+function Re(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ee(e){var t,r;return!1!==Re(e)&&(void 0===(t=e.constructor)||!1!==Re(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}var _e=r(66),Ie=r.n(_e);let Te;const je={getItem:e=>Te&&Te[e]?Te[e]:null,setItem(e,t){Te||je.clear(),Te[e]=String(t)},clear(){Te=Object.create(null)}},Ne=je;let Ae;try{Ae=window.localStorage,Ae.setItem("__wpDataTestLocalStorage",""),Ae.removeItem("__wpDataTestLocalStorage")}catch(e){Ae=Ne}const Le=Ae,Pe="WP_DATA";function xe(e,t){const r=function(e){const{storage:t=Le,storageKey:r=Pe}=e;let n;return{get:function(){if(void 0===n){const e=t.getItem(r);if(null===e)n={};else try{n=JSON.parse(e)}catch(e){n={}}}return n},set:function(e,o){n={...n,[e]:o},t.setItem(r,JSON.stringify(n))}}}(t);return{registerStore(t,n){if(!n.persist)return e.registerStore(t,n);const o=r.get()[t];if(void 0!==o){let e=n.reducer(n.initialState,{type:"@@WP/PERSISTENCE_RESTORE"});e=Ee(e)&&Ee(o)?Ie()(e,o,{isMergeableObject:Ee}):o,n={...n,initialState:e}}const s=e.registerStore(t,n);return s.subscribe(function(e,t,n){let o;if(Array.isArray(n)){const e=n.reduce(((e,t)=>Object.assign(e,{[t]:(e,r)=>r.nextState[t]})),{});s=ut(e),o=(e,t)=>t.nextState===e?e:s(e,t)}else o=(e,t)=>t.nextState;var s;let i=o(void 0,{nextState:e()});return()=>{const n=o(i,{nextState:e()});n!==i&&(r.set(t,n),i=n)}}(s.getState,t,n.persist)),s}}}xe.__unstableMigrate=()=>{};const Me=xe,Fe=window.wp.priorityQueue,Ue=window.wp.element,De=window.wp.isShallowEqual;var ke=r.n(De);const Ce=(0,Ue.createContext)(we),{Consumer:Ve,Provider:Ge}=Ce,He=Ve,We=Ge;function Ke(){return(0,Ue.useContext)(Ce)}const ze=(0,Ue.createContext)(!1),{Consumer:Be,Provider:Xe}=ze,$e=Xe;const qe=(0,Fe.createQueue)();function Je(e,t){const r=t?e.suspendSelect:e.select,n={};let o,s,i,c,u=!1;const a=new Map;function l(t){var r;return null!==(r=e.stores[t]?.store?.getState?.())&&void 0!==r?r:{}}return(t,f)=>{function p(){if(u&&t===o)return s;const f={current:null},p=e.__unstableMarkListeningStores((()=>t(r,e)),f);if(c)c.updateStores(f.current);else{for(const e of f.current)a.set(e,l(e));c=(t=>{const r=[...t],o=new Set;return{subscribe:function(t){if(u)for(const e of r)a.get(e)!==l(e)&&(u=!1);a.clear();const s=()=>{u=!1,t()},c=()=>{i?qe.add(n,s):s()},f=[];function p(t){f.push(e.subscribe(c,t))}for(const e of r)p(e);return o.add(p),()=>{o.delete(p);for(const e of f.values())e?.();qe.cancel(n)}},updateStores:function(e){for(const t of e)if(!r.includes(t)){r.push(t);for(const e of o)e(t)}}}})(f.current)}ke()(s,p)||(s=p),o=t,u=!0}return i&&!f&&(u=!1,qe.cancel(n)),p(),i=f,{subscribe:c.subscribe,getValue:function(){return p(),s}}}}function Qe(e,t,r){const n=Ke(),o=(0,Ue.useContext)(ze),s=(0,Ue.useMemo)((()=>Je(n,e)),[n,e]),i=(0,Ue.useCallback)(t,r),{subscribe:c,getValue:u}=s(i,o),a=(0,Ue.useSyncExternalStore)(c,u,u);return(0,Ue.useDebugValue)(a),a}function Ye(e,t){const r="function"!=typeof e,n=(0,Ue.useRef)(r);if(r!==n.current){const e=n.current?"static":"mapping";throw new Error(`Switching useSelect from ${e} to ${r?"static":"mapping"} is not allowed`)}return r?(o=e,Ke().select(o)):Qe(!1,e,t);var o}function Ze(e,t){return Qe(!0,e,t)}const et=window.ReactJSXRuntime,tt=e=>(0,R.createHigherOrderComponent)((t=>(0,R.pure)((r=>{const n=Ye(((t,n)=>e(t,r,n)));return(0,et.jsx)(t,{...r,...n})}))),"withSelect"),rt=(e,t)=>{const r=Ke(),n=(0,Ue.useRef)(e);return(0,R.useIsomorphicLayoutEffect)((()=>{n.current=e})),(0,Ue.useMemo)((()=>{const e=n.current(r.dispatch,r);return Object.fromEntries(Object.entries(e).map((([e,t])=>("function"!=typeof t&&console.warn(`Property ${e} returned from dispatchMap in useDispatchWithMap must be a function.`),[e,(...t)=>n.current(r.dispatch,r)[e](...t)]))))}),[r,...t])},nt=e=>(0,R.createHigherOrderComponent)((t=>r=>{const n=rt(((t,n)=>e(t,r,n)),[]);return(0,et.jsx)(t,{...r,...n})}),"withDispatch"),ot=(0,R.createHigherOrderComponent)((e=>t=>(0,et.jsx)(He,{children:r=>(0,et.jsx)(e,{...t,registry:r})})),"withRegistry"),st=e=>{const{dispatch:t}=Ke();return void 0===e?t:t(e)};function it(e){return we.dispatch(e)}function ct(e){return we.select(e)}const ut=E,at=we.resolveSelect,lt=we.suspendSelect,ft=we.subscribe,pt=we.registerGenericStore,gt=we.registerStore,yt=we.use,dt=we.register})(),(window.wp=window.wp||{}).data=n})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/dom.js b/wp-includes/js/dist/dom.js
index 763c016..634d87e 100644
--- a/wp-includes/js/dist/dom.js
+++ b/wp-includes/js/dist/dom.js
@@ -186,9 +186,7 @@ function isValidFocusableArea(element) {
function find(context, {
sequential = false
} = {}) {
- /* eslint-disable jsdoc/no-undefined-types */
/** @type {NodeListOf<HTMLElement>} */
- /* eslint-enable jsdoc/no-undefined-types */
const elements = context.querySelectorAll(buildSelector(sequential));
return Array.from(elements).filter(element => {
if (!isVisible(element)) {
@@ -238,7 +236,7 @@ function isTabbableIndex(element) {
return getTabIndex(element) !== -1;
}
-/** @typedef {Element & { type?: string, checked?: boolean, name?: string }} MaybeHTMLInputElement */
+/** @typedef {HTMLElement & { type?: string, checked?: boolean, name?: string }} MaybeHTMLInputElement */
/**
* Returns a stateful reducer function which constructs a filtered array of
@@ -289,10 +287,10 @@ function createStatefulCollapseRadioGroup() {
* sort where equal tabIndex should be left in order of their occurrence in the
* document.
*
- * @param {Element} element Element.
- * @param {number} index Array index of element.
+ * @param {HTMLElement} element Element.
+ * @param {number} index Array index of element.
*
- * @return {{ element: Element, index: number }} Mapped object with element, index.
+ * @return {{ element: HTMLElement, index: number }} Mapped object with element, index.
*/
function mapElementToObjectTabbable(element, index) {
return {
@@ -305,9 +303,9 @@ function mapElementToObjectTabbable(element, index) {
* An array map callback, returning an element of the given mapped object's
* element value.
*
- * @param {{ element: Element }} object Mapped object with element.
+ * @param {{ element: HTMLElement }} object Mapped object with element.
*
- * @return {Element} Mapped object element.
+ * @return {HTMLElement} Mapped object element.
*/
function mapObjectTabbableToElement(object) {
return object.element;
@@ -318,8 +316,8 @@ function mapObjectTabbableToElement(object) {
*
* @see mapElementToObjectTabbable
*
- * @param {{ element: Element, index: number }} a First object to compare.
- * @param {{ element: Element, index: number }} b Second object to compare.
+ * @param {{ element: HTMLElement, index: number }} a First object to compare.
+ * @param {{ element: HTMLElement, index: number }} b Second object to compare.
*
* @return {number} Comparator result.
*/
@@ -335,9 +333,9 @@ function compareObjectTabbables(a, b) {
/**
* Givin focusable elements, filters out tabbable element.
*
- * @param {Element[]} focusables Focusable elements to filter.
+ * @param {HTMLElement[]} focusables Focusable elements to filter.
*
- * @return {Element[]} Tabbable elements.
+ * @return {HTMLElement[]} Tabbable elements.
*/
function filterTabbable(focusables) {
return focusables.filter(isTabbableIndex).map(mapElementToObjectTabbable).sort(compareObjectTabbables).map(mapObjectTabbableToElement).reduce(createStatefulCollapseRadioGroup(), []);
@@ -345,7 +343,7 @@ function filterTabbable(focusables) {
/**
* @param {Element} context
- * @return {Element[]} Tabbable elements within the context.
+ * @return {HTMLElement[]} Tabbable elements within the context.
*/
function tabbable_find(context) {
return filterTabbable(find(context));
@@ -357,15 +355,12 @@ function tabbable_find(context) {
* @param {Element} element The focusable element before which to look. Defaults
* to the active element.
*
- * @return {Element|undefined} Preceding tabbable element.
+ * @return {HTMLElement|undefined} Preceding tabbable element.
*/
function findPrevious(element) {
- return filterTabbable(find(element.ownerDocument.body)).reverse().find(focusable => {
- return (
- // eslint-disable-next-line no-bitwise
- element.compareDocumentPosition(focusable) & element.DOCUMENT_POSITION_PRECEDING
- );
- });
+ return filterTabbable(find(element.ownerDocument.body)).reverse().find(focusable =>
+ // eslint-disable-next-line no-bitwise
+ element.compareDocumentPosition(focusable) & element.DOCUMENT_POSITION_PRECEDING);
}
/**
@@ -374,15 +369,12 @@ function findPrevious(element) {
* @param {Element} element The focusable element after which to look. Defaults
* to the active element.
*
- * @return {Element|undefined} Next tabbable element.
+ * @return {HTMLElement|undefined} Next tabbable element.
*/
function findNext(element) {
- return filterTabbable(find(element.ownerDocument.body)).find(focusable => {
- return (
- // eslint-disable-next-line no-bitwise
- element.compareDocumentPosition(focusable) & element.DOCUMENT_POSITION_FOLLOWING
- );
- });
+ return filterTabbable(find(element.ownerDocument.body)).find(focusable =>
+ // eslint-disable-next-line no-bitwise
+ element.compareDocumentPosition(focusable) & element.DOCUMENT_POSITION_FOLLOWING);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/utils/assert-is-defined.js
@@ -440,10 +432,18 @@ function getRectangleFromRange(range) {
left,
right
} of filteredRects) {
- if (top < furthestTop) furthestTop = top;
- if (bottom > furthestBottom) furthestBottom = bottom;
- if (left < furthestLeft) furthestLeft = left;
- if (right > furthestRight) furthestRight = right;
+ if (top < furthestTop) {
+ furthestTop = top;
+ }
+ if (bottom > furthestBottom) {
+ furthestBottom = bottom;
+ }
+ if (left < furthestLeft) {
+ furthestLeft = left;
+ }
+ if (right > furthestRight) {
+ furthestRight = right;
+ }
}
return new window.DOMRect(furthestLeft, furthestTop, furthestRight - furthestLeft, furthestBottom - furthestTop);
}
@@ -1107,7 +1107,7 @@ function isEdge(container, isReverse, onlyVertical = false) {
}
return container.value.length === container.selectionStart;
}
- if (!( /** @type {HTMLElement} */container.isContentEditable)) {
+ if (!container.isContentEditable) {
return true;
}
const {
@@ -1317,7 +1317,9 @@ function placeCaretAtEdge(container, isReverse, x) {
return;
}
const range = scrollIfNoRange(container, isReverse, () => getRange(container, isReverse, x));
- if (!range) return;
+ if (!range) {
+ return;
+ }
const {
ownerDocument
} = container;
diff --git a/wp-includes/js/dist/edit-post.js b/wp-includes/js/dist/edit-post.js
index 5ea7449..6c40fce 100644
--- a/wp-includes/js/dist/edit-post.js
+++ b/wp-includes/js/dist/edit-post.js
@@ -1,97 +1,7 @@
/******/ (() => { // webpackBootstrap
-/******/ var __webpack_modules__ = ({
-
-/***/ 5755:
-/***/ ((module, exports) => {
-
-var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/
-/* global define */
-
-(function () {
- 'use strict';
-
- var hasOwn = {}.hasOwnProperty;
- var nativeCodeString = '[native code]';
-
- 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)) {
- if (arg.length) {
- var inner = classNames.apply(null, arg);
- if (inner) {
- classes.push(inner);
- }
- }
- } else if (argType === 'object') {
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
- classes.push(arg.toString());
- continue;
- }
-
- 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 {}
-}());
-
-
-/***/ })
-
-/******/ });
-/************************************************************************/
-/******/ // The module cache
-/******/ var __webpack_module_cache__ = {};
-/******/
-/******/ // The require function
-/******/ function __webpack_require__(moduleId) {
-/******/ // Check if module is in cache
-/******/ var cachedModule = __webpack_module_cache__[moduleId];
-/******/ if (cachedModule !== undefined) {
-/******/ return cachedModule.exports;
-/******/ }
-/******/ // Create a new module (and put it into the cache)
-/******/ var module = __webpack_module_cache__[moduleId] = {
-/******/ // no module.id needed
-/******/ // no module.loaded needed
-/******/ exports: {}
-/******/ };
-/******/
-/******/ // Execute the module function
-/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
-/******/
-/******/ // Return the exports of the module
-/******/ return module.exports;
-/******/ }
+/******/ "use strict";
+/******/ // The require scope
+/******/ var __webpack_require__ = {};
/******/
/************************************************************************/
/******/ /* webpack/runtime/compat get default export */
@@ -136,72 +46,42 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
/******/
/************************************************************************/
var __webpack_exports__ = {};
-// This entry need to be wrapped in an IIFE because it need to be in strict mode.
-(() => {
-"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
- PluginBlockSettingsMenuItem: () => (/* reexport */ plugin_block_settings_menu_item),
- PluginDocumentSettingPanel: () => (/* reexport */ plugin_document_setting_panel),
- PluginMoreMenuItem: () => (/* reexport */ plugin_more_menu_item),
- PluginPostPublishPanel: () => (/* reexport */ plugin_post_publish_panel),
- PluginPostStatusInfo: () => (/* reexport */ plugin_post_status_info),
- PluginPrePublishPanel: () => (/* reexport */ plugin_pre_publish_panel),
- PluginSidebar: () => (/* reexport */ PluginSidebarEditPost),
+ PluginBlockSettingsMenuItem: () => (/* reexport */ PluginBlockSettingsMenuItem),
+ PluginDocumentSettingPanel: () => (/* reexport */ PluginDocumentSettingPanel),
+ PluginMoreMenuItem: () => (/* reexport */ PluginMoreMenuItem),
+ PluginPostPublishPanel: () => (/* reexport */ PluginPostPublishPanel),
+ PluginPostStatusInfo: () => (/* reexport */ PluginPostStatusInfo),
+ PluginPrePublishPanel: () => (/* reexport */ PluginPrePublishPanel),
+ PluginSidebar: () => (/* reexport */ PluginSidebar),
PluginSidebarMoreMenuItem: () => (/* reexport */ PluginSidebarMoreMenuItem),
__experimentalFullscreenModeClose: () => (/* reexport */ fullscreen_mode_close),
- __experimentalMainDashboardButton: () => (/* reexport */ main_dashboard_button),
- __experimentalPluginPostExcerpt: () => (/* binding */ __experimentalPluginPostExcerpt),
+ __experimentalMainDashboardButton: () => (/* binding */ __experimentalMainDashboardButton),
+ __experimentalPluginPostExcerpt: () => (/* reexport */ __experimentalPluginPostExcerpt),
initializeEditor: () => (/* binding */ initializeEditor),
reinitializeEditor: () => (/* binding */ reinitializeEditor),
- store: () => (/* reexport */ store_store)
+ store: () => (/* reexport */ store)
});
-// NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/actions.js
+// NAMESPACE OBJECT: ./node_modules/@wordpress/edit-post/build-module/store/actions.js
var actions_namespaceObject = {};
__webpack_require__.r(actions_namespaceObject);
__webpack_require__.d(actions_namespaceObject, {
- closeModal: () => (closeModal),
- disableComplementaryArea: () => (disableComplementaryArea),
- enableComplementaryArea: () => (enableComplementaryArea),
- openModal: () => (openModal),
- pinItem: () => (pinItem),
- setDefaultComplementaryArea: () => (setDefaultComplementaryArea),
- setFeatureDefaults: () => (setFeatureDefaults),
- setFeatureValue: () => (setFeatureValue),
- toggleFeature: () => (toggleFeature),
- unpinItem: () => (unpinItem)
-});
-
-// NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/selectors.js
-var selectors_namespaceObject = {};
-__webpack_require__.r(selectors_namespaceObject);
-__webpack_require__.d(selectors_namespaceObject, {
- getActiveComplementaryArea: () => (getActiveComplementaryArea),
- isComplementaryAreaLoading: () => (isComplementaryAreaLoading),
- isFeatureActive: () => (isFeatureActive),
- isItemPinned: () => (isItemPinned),
- isModalActive: () => (isModalActive)
-});
-
-// NAMESPACE OBJECT: ./node_modules/@wordpress/edit-post/build-module/store/actions.js
-var store_actions_namespaceObject = {};
-__webpack_require__.r(store_actions_namespaceObject);
-__webpack_require__.d(store_actions_namespaceObject, {
__experimentalSetPreviewDeviceType: () => (__experimentalSetPreviewDeviceType),
__unstableCreateTemplate: () => (__unstableCreateTemplate),
closeGeneralSidebar: () => (closeGeneralSidebar),
- closeModal: () => (actions_closeModal),
+ closeModal: () => (closeModal),
closePublishSidebar: () => (closePublishSidebar),
hideBlockTypes: () => (hideBlockTypes),
initializeMetaBoxes: () => (initializeMetaBoxes),
metaBoxUpdatesFailure: () => (metaBoxUpdatesFailure),
metaBoxUpdatesSuccess: () => (metaBoxUpdatesSuccess),
openGeneralSidebar: () => (openGeneralSidebar),
- openModal: () => (actions_openModal),
+ openModal: () => (openModal),
openPublishSidebar: () => (openPublishSidebar),
removeEditorPanel: () => (removeEditorPanel),
requestMetaBoxUpdates: () => (requestMetaBoxUpdates),
@@ -214,16 +94,16 @@ __webpack_require__.d(store_actions_namespaceObject, {
toggleDistractionFree: () => (toggleDistractionFree),
toggleEditorPanelEnabled: () => (toggleEditorPanelEnabled),
toggleEditorPanelOpened: () => (toggleEditorPanelOpened),
- toggleFeature: () => (actions_toggleFeature),
+ toggleFeature: () => (toggleFeature),
togglePinnedPluginItem: () => (togglePinnedPluginItem),
togglePublishSidebar: () => (togglePublishSidebar),
updatePreferredStyleVariations: () => (updatePreferredStyleVariations)
});
// NAMESPACE OBJECT: ./node_modules/@wordpress/edit-post/build-module/store/selectors.js
-var store_selectors_namespaceObject = {};
-__webpack_require__.r(store_selectors_namespaceObject);
-__webpack_require__.d(store_selectors_namespaceObject, {
+var selectors_namespaceObject = {};
+__webpack_require__.r(selectors_namespaceObject);
+__webpack_require__.d(selectors_namespaceObject, {
__experimentalGetInsertionPoint: () => (__experimentalGetInsertionPoint),
__experimentalGetPreviewDeviceType: () => (__experimentalGetPreviewDeviceType),
areMetaBoxesInitialized: () => (areMetaBoxesInitialized),
@@ -242,20 +122,18 @@ __webpack_require__.d(store_selectors_namespaceObject, {
isEditorPanelOpened: () => (isEditorPanelOpened),
isEditorPanelRemoved: () => (isEditorPanelRemoved),
isEditorSidebarOpened: () => (isEditorSidebarOpened),
- isFeatureActive: () => (selectors_isFeatureActive),
+ isFeatureActive: () => (isFeatureActive),
isInserterOpened: () => (isInserterOpened),
isListViewOpened: () => (isListViewOpened),
isMetaBoxLocationActive: () => (isMetaBoxLocationActive),
isMetaBoxLocationVisible: () => (isMetaBoxLocationVisible),
- isModalActive: () => (selectors_isModalActive),
+ isModalActive: () => (isModalActive),
isPluginItemPinned: () => (isPluginItemPinned),
isPluginSidebarOpened: () => (isPluginSidebarOpened),
isPublishSidebarOpened: () => (isPublishSidebarOpened),
isSavingMetaBoxes: () => (selectors_isSavingMetaBoxes)
});
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: external ["wp","blocks"]
const external_wp_blocks_namespaceObject = window["wp"]["blocks"];
;// CONCATENATED MODULE: external ["wp","blockLibrary"]
@@ -267,1807 +145,60 @@ var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external
const external_wp_element_namespaceObject = window["wp"]["element"];
;// CONCATENATED MODULE: external ["wp","data"]
const external_wp_data_namespaceObject = window["wp"]["data"];
-;// CONCATENATED MODULE: external ["wp","hooks"]
-const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
;// CONCATENATED MODULE: external ["wp","preferences"]
const external_wp_preferences_namespaceObject = window["wp"]["preferences"];
;// CONCATENATED MODULE: external ["wp","widgets"]
const external_wp_widgets_namespaceObject = window["wp"]["widgets"];
;// CONCATENATED MODULE: external ["wp","editor"]
const external_wp_editor_namespaceObject = window["wp"]["editor"];
-;// CONCATENATED MODULE: external ["wp","mediaUtils"]
-const external_wp_mediaUtils_namespaceObject = window["wp"]["mediaUtils"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/components/index.js
-/**
- * WordPress dependencies
- */
-
-
-const replaceMediaUpload = () => external_wp_mediaUtils_namespaceObject.MediaUpload;
-(0,external_wp_hooks_namespaceObject.addFilter)('editor.MediaUpload', 'core/edit-post/replace-media-upload', replaceMediaUpload);
-
;// CONCATENATED MODULE: external ["wp","components"]
const external_wp_components_namespaceObject = window["wp"]["components"];
-;// CONCATENATED MODULE: external ["wp","blockEditor"]
-const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
-;// CONCATENATED MODULE: external ["wp","i18n"]
-const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
-;// CONCATENATED MODULE: external ["wp","compose"]
-const external_wp_compose_namespaceObject = window["wp"]["compose"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/validate-multiple-use/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-/**
- * Recursively find very first block of an specific block type.
- *
- * @param {Object[]} blocks List of blocks.
- * @param {string} name Block name to search.
- *
- * @return {Object|undefined} Return block object or undefined.
- */
-function findFirstOfSameType(blocks, name) {
- if (!Array.isArray(blocks) || !blocks.length) {
- return;
- }
- for (const block of blocks) {
- if (block.name === name) {
- return block;
- }
-
- // Search inside innerBlocks.
- const firstBlock = findFirstOfSameType(block.innerBlocks, name);
- if (firstBlock) {
- return firstBlock;
- }
- }
-}
-const enhance = (0,external_wp_compose_namespaceObject.compose)(
-/**
- * For blocks whose block type doesn't support `multiple`, provides the
- * wrapped component with `originalBlockClientId` -- a reference to the
- * first block of the same type in the content -- if and only if that
- * "original" block is not the current one. Thus, an inexisting
- * `originalBlockClientId` prop signals that the block is valid.
- *
- * @param {Component} WrappedBlockEdit A filtered BlockEdit instance.
- *
- * @return {Component} Enhanced component with merged state data props.
- */
-(0,external_wp_data_namespaceObject.withSelect)((select, block) => {
- const multiple = (0,external_wp_blocks_namespaceObject.hasBlockSupport)(block.name, 'multiple', true);
-
- // For block types with `multiple` support, there is no "original
- // block" to be found in the content, as the block itself is valid.
- if (multiple) {
- return {};
- }
-
- // Otherwise, only pass `originalBlockClientId` if it refers to a different
- // block from the current one.
- const blocks = select(external_wp_blockEditor_namespaceObject.store).getBlocks();
- const firstOfSameType = findFirstOfSameType(blocks, block.name);
- const isInvalid = firstOfSameType && firstOfSameType.clientId !== block.clientId;
- return {
- originalBlockClientId: isInvalid && firstOfSameType.clientId
- };
-}), (0,external_wp_data_namespaceObject.withDispatch)((dispatch, {
- originalBlockClientId
-}) => ({
- selectFirst: () => dispatch(external_wp_blockEditor_namespaceObject.store).selectBlock(originalBlockClientId)
-})));
-const withMultipleValidation = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockEdit => {
- return enhance(({
- originalBlockClientId,
- selectFirst,
- ...props
- }) => {
- if (!originalBlockClientId) {
- return (0,external_React_namespaceObject.createElement)(BlockEdit, {
- ...props
- });
- }
- const blockType = (0,external_wp_blocks_namespaceObject.getBlockType)(props.name);
- const outboundType = getOutboundType(props.name);
- return [(0,external_React_namespaceObject.createElement)("div", {
- key: "invalid-preview",
- style: {
- minHeight: '60px'
- }
- }, (0,external_React_namespaceObject.createElement)(BlockEdit, {
- key: "block-edit",
- ...props
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, {
- key: "multiple-use-warning",
- actions: [(0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- key: "find-original",
- variant: "secondary",
- onClick: selectFirst
- }, (0,external_wp_i18n_namespaceObject.__)('Find original')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- key: "remove",
- variant: "secondary",
- onClick: () => props.onReplace([])
- }, (0,external_wp_i18n_namespaceObject.__)('Remove')), outboundType && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- key: "transform",
- variant: "secondary",
- onClick: () => props.onReplace((0,external_wp_blocks_namespaceObject.createBlock)(outboundType.name, props.attributes))
- }, (0,external_wp_i18n_namespaceObject.__)('Transform into:'), " ", outboundType.title)]
- }, (0,external_React_namespaceObject.createElement)("strong", null, blockType?.title, ": "), (0,external_wp_i18n_namespaceObject.__)('This block can only be used once.'))];
- });
-}, 'withMultipleValidation');
-
-/**
- * Given a base block name, returns the default block type to which to offer
- * transforms.
- *
- * @param {string} blockName Base block name.
- *
- * @return {?Object} The chosen default block type.
- */
-function getOutboundType(blockName) {
- // Grab the first outbound transform.
- const transform = (0,external_wp_blocks_namespaceObject.findTransform)((0,external_wp_blocks_namespaceObject.getBlockTransforms)('to', blockName), ({
- type,
- blocks
- }) => type === 'block' && blocks.length === 1 // What about when .length > 1?
- );
- if (!transform) {
- return null;
- }
- return (0,external_wp_blocks_namespaceObject.getBlockType)(transform.blocks[0]);
-}
-(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/edit-post/validate-multiple-use/with-multiple-validation', withMultipleValidation);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/index.js
-/**
- * Internal dependencies
- */
-
-
-
;// CONCATENATED MODULE: external ["wp","coreData"]
const external_wp_coreData_namespaceObject = window["wp"]["coreData"];
-;// CONCATENATED MODULE: external ["wp","primitives"]
-const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
-
-/**
- * WordPress dependencies
- */
-
-const external = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"
-}));
-/* harmony default export */ const library_external = (external);
-
+;// CONCATENATED MODULE: external ["wp","commands"]
+const external_wp_commands_namespaceObject = window["wp"]["commands"];
+;// CONCATENATED MODULE: ./node_modules/clsx/dist/clsx.mjs
+function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
+;// CONCATENATED MODULE: external ["wp","blockEditor"]
+const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
;// CONCATENATED MODULE: external ["wp","plugins"]
const external_wp_plugins_namespaceObject = window["wp"]["plugins"];
-;// CONCATENATED MODULE: external ["wp","url"]
-const external_wp_url_namespaceObject = window["wp"]["url"];
+;// CONCATENATED MODULE: external ["wp","i18n"]
+const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
;// CONCATENATED MODULE: external ["wp","notices"]
const external_wp_notices_namespaceObject = window["wp"]["notices"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/copy-content-menu-item/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-function CopyContentMenuItem() {
- const {
- createNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- const {
- getEditedPostAttribute
- } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_editor_namespaceObject.store);
- function getText() {
- return getEditedPostAttribute('content');
- }
- function onSuccess() {
- createNotice('info', (0,external_wp_i18n_namespaceObject.__)('All content copied.'), {
- isDismissible: true,
- type: 'snackbar'
- });
- }
- const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(getText, onSuccess);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- ref: ref
- }, (0,external_wp_i18n_namespaceObject.__)('Copy all blocks'));
-}
-
-;// CONCATENATED MODULE: external ["wp","keycodes"]
-const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
-// EXTERNAL MODULE: ./node_modules/classnames/index.js
-var classnames = __webpack_require__(5755);
-var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
-
-/**
- * WordPress dependencies
- */
-
-const check = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
-}));
-/* harmony default export */ const library_check = (check);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js
-
-/**
- * WordPress dependencies
- */
-
-const starFilled = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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 */ const star_filled = (starFilled);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js
-
+;// CONCATENATED MODULE: external ["wp","coreCommands"]
+const external_wp_coreCommands_namespaceObject = window["wp"]["coreCommands"];
+;// CONCATENATED MODULE: external ["wp","url"]
+const external_wp_url_namespaceObject = window["wp"]["url"];
+;// CONCATENATED MODULE: external ["wp","htmlEntities"]
+const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
+;// CONCATENATED MODULE: external ["wp","primitives"]
+const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/wordpress.js
/**
* WordPress dependencies
*/
-const starEmpty = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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 */ const star_empty = (starEmpty);
-
-;// CONCATENATED MODULE: external ["wp","viewport"]
-const external_wp_viewport_namespaceObject = window["wp"]["viewport"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
-/**
- * WordPress dependencies
- */
-
-const closeSmall = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+const wordpress = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
-}));
-/* harmony default export */ const close_small = (closeSmall);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/actions.js
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Set a default complementary area.
- *
- * @param {string} scope Complementary area scope.
- * @param {string} area Area identifier.
- *
- * @return {Object} Action object.
- */
-const setDefaultComplementaryArea = (scope, area) => ({
- type: 'SET_DEFAULT_COMPLEMENTARY_AREA',
- scope,
- area
-});
-
-/**
- * Enable the complementary area.
- *
- * @param {string} scope Complementary area scope.
- * @param {string} area Area identifier.
- */
-const enableComplementaryArea = (scope, area) => ({
- registry,
- dispatch
-}) => {
- // Return early if there's no area.
- if (!area) {
- return;
- }
- const isComplementaryAreaVisible = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
- if (!isComplementaryAreaVisible) {
- registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'isComplementaryAreaVisible', true);
- }
- dispatch({
- type: 'ENABLE_COMPLEMENTARY_AREA',
- scope,
- area
- });
-};
-
-/**
- * Disable the complementary area.
- *
- * @param {string} scope Complementary area scope.
- */
-const disableComplementaryArea = scope => ({
- registry
-}) => {
- const isComplementaryAreaVisible = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
- if (isComplementaryAreaVisible) {
- registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'isComplementaryAreaVisible', false);
- }
-};
-
-/**
- * Pins an item.
- *
- * @param {string} scope Item scope.
- * @param {string} item Item identifier.
- *
- * @return {Object} Action object.
- */
-const pinItem = (scope, item) => ({
- registry
-}) => {
- // Return early if there's no item.
- if (!item) {
- return;
- }
- const pinnedItems = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'pinnedItems');
-
- // The item is already pinned, there's nothing to do.
- if (pinnedItems?.[item] === true) {
- return;
- }
- registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'pinnedItems', {
- ...pinnedItems,
- [item]: true
- });
-};
-
-/**
- * Unpins an item.
- *
- * @param {string} scope Item scope.
- * @param {string} item Item identifier.
- */
-const unpinItem = (scope, item) => ({
- registry
-}) => {
- // Return early if there's no item.
- if (!item) {
- return;
- }
- const pinnedItems = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'pinnedItems');
- registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'pinnedItems', {
- ...pinnedItems,
- [item]: false
- });
-};
-
-/**
- * Returns an action object used in signalling that a feature should be toggled.
- *
- * @param {string} scope The feature scope (e.g. core/edit-post).
- * @param {string} featureName The feature name.
- */
-function toggleFeature(scope, featureName) {
- return function ({
- registry
- }) {
- external_wp_deprecated_default()(`dispatch( 'core/interface' ).toggleFeature`, {
- since: '6.0',
- alternative: `dispatch( 'core/preferences' ).toggle`
- });
- registry.dispatch(external_wp_preferences_namespaceObject.store).toggle(scope, featureName);
- };
-}
-
-/**
- * Returns an action object used in signalling that a feature should be set to
- * a true or false value
- *
- * @param {string} scope The feature scope (e.g. core/edit-post).
- * @param {string} featureName The feature name.
- * @param {boolean} value The value to set.
- *
- * @return {Object} Action object.
- */
-function setFeatureValue(scope, featureName, value) {
- return function ({
- registry
- }) {
- external_wp_deprecated_default()(`dispatch( 'core/interface' ).setFeatureValue`, {
- since: '6.0',
- alternative: `dispatch( 'core/preferences' ).set`
- });
- registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, featureName, !!value);
- };
-}
-
-/**
- * Returns an action object used in signalling that defaults should be set for features.
- *
- * @param {string} scope The feature scope (e.g. core/edit-post).
- * @param {Object<string, boolean>} defaults A key/value map of feature names to values.
- *
- * @return {Object} Action object.
- */
-function setFeatureDefaults(scope, defaults) {
- return function ({
- registry
- }) {
- external_wp_deprecated_default()(`dispatch( 'core/interface' ).setFeatureDefaults`, {
- since: '6.0',
- alternative: `dispatch( 'core/preferences' ).setDefaults`
- });
- registry.dispatch(external_wp_preferences_namespaceObject.store).setDefaults(scope, defaults);
- };
-}
-
-/**
- * Returns an action object used in signalling that the user opened a modal.
- *
- * @param {string} name A string that uniquely identifies the modal.
- *
- * @return {Object} Action object.
- */
-function openModal(name) {
- return {
- type: 'OPEN_MODAL',
- name
- };
-}
-
-/**
- * Returns an action object signalling that the user closed a modal.
- *
- * @return {Object} Action object.
- */
-function closeModal() {
- return {
- type: 'CLOSE_MODAL'
- };
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/selectors.js
-/**
- * WordPress dependencies
- */
-
-
-
-
-/**
- * Returns the complementary area that is active in a given scope.
- *
- * @param {Object} state Global application state.
- * @param {string} scope Item scope.
- *
- * @return {string | null | undefined} The complementary area that is active in the given scope.
- */
-const getActiveComplementaryArea = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope) => {
- const isComplementaryAreaVisible = select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
-
- // Return `undefined` to indicate that the user has never toggled
- // visibility, this is the vanilla default. Other code relies on this
- // nuance in the return value.
- if (isComplementaryAreaVisible === undefined) {
- return undefined;
- }
-
- // Return `null` to indicate the user hid the complementary area.
- if (isComplementaryAreaVisible === false) {
- return null;
- }
- return state?.complementaryAreas?.[scope];
-});
-const isComplementaryAreaLoading = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope) => {
- const isVisible = select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
- const identifier = state?.complementaryAreas?.[scope];
- return isVisible && identifier === undefined;
-});
-
-/**
- * Returns a boolean indicating if an item is pinned or not.
- *
- * @param {Object} state Global application state.
- * @param {string} scope Scope.
- * @param {string} item Item to check.
- *
- * @return {boolean} True if the item is pinned and false otherwise.
- */
-const isItemPinned = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope, item) => {
- var _pinnedItems$item;
- const pinnedItems = select(external_wp_preferences_namespaceObject.store).get(scope, 'pinnedItems');
- return (_pinnedItems$item = pinnedItems?.[item]) !== null && _pinnedItems$item !== void 0 ? _pinnedItems$item : true;
-});
-
-/**
- * Returns a boolean indicating whether a feature is active for a particular
- * scope.
- *
- * @param {Object} state The store state.
- * @param {string} scope The scope of the feature (e.g. core/edit-post).
- * @param {string} featureName The name of the feature.
- *
- * @return {boolean} Is the feature enabled?
- */
-const isFeatureActive = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope, featureName) => {
- external_wp_deprecated_default()(`select( 'core/interface' ).isFeatureActive( scope, featureName )`, {
- since: '6.0',
- alternative: `select( 'core/preferences' ).get( scope, featureName )`
- });
- return !!select(external_wp_preferences_namespaceObject.store).get(scope, featureName);
-});
-
-/**
- * Returns true if a modal is active, or false otherwise.
- *
- * @param {Object} state Global application state.
- * @param {string} modalName A string that uniquely identifies the modal.
- *
- * @return {boolean} Whether the modal is active.
- */
-function isModalActive(state, modalName) {
- return state.activeModal === modalName;
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/reducer.js
-/**
- * WordPress dependencies
- */
-
-function complementaryAreas(state = {}, action) {
- switch (action.type) {
- case 'SET_DEFAULT_COMPLEMENTARY_AREA':
- {
- const {
- scope,
- area
- } = action;
-
- // If there's already an area, don't overwrite it.
- if (state[scope]) {
- return state;
- }
- return {
- ...state,
- [scope]: area
- };
- }
- case 'ENABLE_COMPLEMENTARY_AREA':
- {
- const {
- scope,
- area
- } = action;
- return {
- ...state,
- [scope]: area
- };
- }
- }
- return state;
-}
-
-/**
- * Reducer for storing the name of the open modal, or null if no modal is open.
- *
- * @param {Object} state Previous state.
- * @param {Object} action Action object containing the `name` of the modal
- *
- * @return {Object} Updated state
- */
-function activeModal(state = null, action) {
- switch (action.type) {
- case 'OPEN_MODAL':
- return action.name;
- case 'CLOSE_MODAL':
- return null;
- }
- return state;
-}
-/* harmony default export */ const reducer = ((0,external_wp_data_namespaceObject.combineReducers)({
- complementaryAreas,
- activeModal
-}));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/constants.js
-/**
- * The identifier for the data store.
- *
- * @type {string}
- */
-const STORE_NAME = 'core/interface';
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/index.js
-/**
- * WordPress dependencies
- */
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-/**
- * Store definition for the interface namespace.
- *
- * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
- *
- * @type {Object}
- */
-const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME, {
- reducer: reducer,
- actions: actions_namespaceObject,
- selectors: selectors_namespaceObject
-});
-
-// Once we build a more generic persistence plugin that works across types of stores
-// we'd be able to replace this with a register call.
-(0,external_wp_data_namespaceObject.register)(store);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-context/index.js
-/**
- * WordPress dependencies
- */
-
-/* harmony default export */ const complementary_area_context = ((0,external_wp_plugins_namespaceObject.withPluginContext)((context, ownProps) => {
- return {
- icon: ownProps.icon || context.icon,
- identifier: ownProps.identifier || `${context.name}/${ownProps.name}`
- };
-}));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-toggle/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-
-function ComplementaryAreaToggle({
- as = external_wp_components_namespaceObject.Button,
- scope,
- identifier,
- icon,
- selectedIcon,
- name,
- ...props
-}) {
- const ComponentToUse = as;
- const isSelected = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getActiveComplementaryArea(scope) === identifier, [identifier, scope]);
- const {
- enableComplementaryArea,
- disableComplementaryArea
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- return (0,external_React_namespaceObject.createElement)(ComponentToUse, {
- icon: selectedIcon && isSelected ? selectedIcon : icon,
- "aria-controls": identifier.replace('/', ':'),
- onClick: () => {
- if (isSelected) {
- disableComplementaryArea(scope);
- } else {
- enableComplementaryArea(scope, identifier);
- }
- },
- ...props
- });
-}
-/* harmony default export */ const complementary_area_toggle = (complementary_area_context(ComplementaryAreaToggle));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-header/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-/**
- * Internal dependencies
- */
-
-const ComplementaryAreaHeader = ({
- smallScreenTitle,
- children,
- className,
- toggleButtonProps
-}) => {
- const toggleButton = (0,external_React_namespaceObject.createElement)(complementary_area_toggle, {
- icon: close_small,
- ...toggleButtonProps
- });
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("div", {
- className: "components-panel__header interface-complementary-area-header__small"
- }, smallScreenTitle && (0,external_React_namespaceObject.createElement)("span", {
- className: "interface-complementary-area-header__small-title"
- }, smallScreenTitle), toggleButton), (0,external_React_namespaceObject.createElement)("div", {
- className: classnames_default()('components-panel__header', 'interface-complementary-area-header', className),
- tabIndex: -1
- }, children, toggleButton));
-};
-/* harmony default export */ const complementary_area_header = (ComplementaryAreaHeader);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/action-item/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-const noop = () => {};
-function ActionItemSlot({
- name,
- as: Component = external_wp_components_namespaceObject.ButtonGroup,
- fillProps = {},
- bubblesVirtually,
- ...props
-}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Slot, {
- name: name,
- bubblesVirtually: bubblesVirtually,
- fillProps: fillProps
- }, fills => {
- if (!external_wp_element_namespaceObject.Children.toArray(fills).length) {
- return null;
- }
-
- // Special handling exists for backward compatibility.
- // It ensures that menu items created by plugin authors aren't
- // duplicated with automatically injected menu items coming
- // from pinnable plugin sidebars.
- // @see https://github.com/WordPress/gutenberg/issues/14457
- const initializedByPlugins = [];
- external_wp_element_namespaceObject.Children.forEach(fills, ({
- props: {
- __unstableExplicitMenuItem,
- __unstableTarget
- }
- }) => {
- if (__unstableTarget && __unstableExplicitMenuItem) {
- initializedByPlugins.push(__unstableTarget);
- }
- });
- const children = external_wp_element_namespaceObject.Children.map(fills, child => {
- if (!child.props.__unstableExplicitMenuItem && initializedByPlugins.includes(child.props.__unstableTarget)) {
- return null;
- }
- return child;
- });
- return (0,external_React_namespaceObject.createElement)(Component, {
- ...props
- }, children);
- });
-}
-function ActionItem({
- name,
- as: Component = external_wp_components_namespaceObject.Button,
- onClick,
- ...props
-}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Fill, {
- name: name
- }, ({
- onClick: fpOnClick
- }) => {
- return (0,external_React_namespaceObject.createElement)(Component, {
- onClick: onClick || fpOnClick ? (...args) => {
- (onClick || noop)(...args);
- (fpOnClick || noop)(...args);
- } : undefined,
- ...props
- });
- });
-}
-ActionItem.Slot = ActionItemSlot;
-/* harmony default export */ const action_item = (ActionItem);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-more-menu-item/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-
-const PluginsMenuItem = ({
- // Menu item is marked with unstable prop for backward compatibility.
- // They are removed so they don't leak to DOM elements.
- // @see https://github.com/WordPress/gutenberg/issues/14457
- __unstableExplicitMenuItem,
- __unstableTarget,
- ...restProps
-}) => (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- ...restProps
-});
-function ComplementaryAreaMoreMenuItem({
- scope,
- target,
- __unstableExplicitMenuItem,
- ...props
-}) {
- return (0,external_React_namespaceObject.createElement)(complementary_area_toggle, {
- as: toggleProps => {
- return (0,external_React_namespaceObject.createElement)(action_item, {
- __unstableExplicitMenuItem: __unstableExplicitMenuItem,
- __unstableTarget: `${scope}/${target}`,
- as: PluginsMenuItem,
- name: `${scope}/plugin-more-menu`,
- ...toggleProps
- });
- },
- role: "menuitemcheckbox",
- selectedIcon: library_check,
- name: target,
- scope: scope,
- ...props
- });
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/pinned-items/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-function PinnedItems({
- scope,
- ...props
-}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Fill, {
- name: `PinnedItems/${scope}`,
- ...props
- });
-}
-function PinnedItemsSlot({
- scope,
- className,
- ...props
-}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Slot, {
- name: `PinnedItems/${scope}`,
- ...props
- }, fills => fills?.length > 0 && (0,external_React_namespaceObject.createElement)("div", {
- className: classnames_default()(className, 'interface-pinned-items')
- }, fills));
-}
-PinnedItems.Slot = PinnedItemsSlot;
-/* harmony default export */ const pinned_items = (PinnedItems);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-function ComplementaryAreaSlot({
- scope,
- ...props
-}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Slot, {
- name: `ComplementaryArea/${scope}`,
- ...props
- });
-}
-function ComplementaryAreaFill({
- scope,
- children,
- className,
- id
-}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Fill, {
- name: `ComplementaryArea/${scope}`
- }, (0,external_React_namespaceObject.createElement)("div", {
- id: id,
- className: className
- }, children));
-}
-function useAdjustComplementaryListener(scope, identifier, activeArea, isActive, isSmall) {
- const previousIsSmall = (0,external_wp_element_namespaceObject.useRef)(false);
- const shouldOpenWhenNotSmall = (0,external_wp_element_namespaceObject.useRef)(false);
- const {
- enableComplementaryArea,
- disableComplementaryArea
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- // If the complementary area is active and the editor is switching from
- // a big to a small window size.
- if (isActive && isSmall && !previousIsSmall.current) {
- disableComplementaryArea(scope);
- // Flag the complementary area to be reopened when the window size
- // goes from small to big.
- shouldOpenWhenNotSmall.current = true;
- } else if (
- // If there is a flag indicating the complementary area should be
- // enabled when we go from small to big window size and we are going
- // from a small to big window size.
- shouldOpenWhenNotSmall.current && !isSmall && previousIsSmall.current) {
- // Remove the flag indicating the complementary area should be
- // enabled.
- shouldOpenWhenNotSmall.current = false;
- enableComplementaryArea(scope, identifier);
- } else if (
- // If the flag is indicating the current complementary should be
- // reopened but another complementary area becomes active, remove
- // the flag.
- shouldOpenWhenNotSmall.current && activeArea && activeArea !== identifier) {
- shouldOpenWhenNotSmall.current = false;
- }
- if (isSmall !== previousIsSmall.current) {
- previousIsSmall.current = isSmall;
- }
- }, [isActive, isSmall, scope, identifier, activeArea, disableComplementaryArea, enableComplementaryArea]);
-}
-function ComplementaryArea({
- children,
- className,
- closeLabel = (0,external_wp_i18n_namespaceObject.__)('Close plugin'),
- identifier,
- header,
- headerClassName,
- icon,
- isPinnable = true,
- panelClassName,
- scope,
- name,
- smallScreenTitle,
- title,
- toggleShortcut,
- isActiveByDefault
-}) {
- const {
- isLoading,
- isActive,
- isPinned,
- activeArea,
- isSmall,
- isLarge,
- showIconLabels
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getActiveComplementaryArea,
- isComplementaryAreaLoading,
- isItemPinned
- } = select(store);
- const {
- get
- } = select(external_wp_preferences_namespaceObject.store);
- const _activeArea = getActiveComplementaryArea(scope);
- return {
- isLoading: isComplementaryAreaLoading(scope),
- isActive: _activeArea === identifier,
- isPinned: isItemPinned(scope, identifier),
- activeArea: _activeArea,
- isSmall: select(external_wp_viewport_namespaceObject.store).isViewportMatch('< medium'),
- isLarge: select(external_wp_viewport_namespaceObject.store).isViewportMatch('large'),
- showIconLabels: get('core', 'showIconLabels')
- };
- }, [identifier, scope]);
- useAdjustComplementaryListener(scope, identifier, activeArea, isActive, isSmall);
- const {
- enableComplementaryArea,
- disableComplementaryArea,
- pinItem,
- unpinItem
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- // Set initial visibility: For large screens, enable if it's active by
- // default. For small screens, always initially disable.
- if (isActiveByDefault && activeArea === undefined && !isSmall) {
- enableComplementaryArea(scope, identifier);
- } else if (activeArea === undefined && isSmall) {
- disableComplementaryArea(scope, identifier);
- }
- }, [activeArea, isActiveByDefault, scope, identifier, isSmall, enableComplementaryArea, disableComplementaryArea]);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, isPinnable && (0,external_React_namespaceObject.createElement)(pinned_items, {
- scope: scope
- }, isPinned && (0,external_React_namespaceObject.createElement)(complementary_area_toggle, {
- scope: scope,
- identifier: identifier,
- isPressed: isActive && (!showIconLabels || isLarge),
- "aria-expanded": isActive,
- "aria-disabled": isLoading,
- label: title,
- icon: showIconLabels ? library_check : icon,
- showTooltip: !showIconLabels,
- variant: showIconLabels ? 'tertiary' : undefined,
- size: "compact"
- })), name && isPinnable && (0,external_React_namespaceObject.createElement)(ComplementaryAreaMoreMenuItem, {
- target: name,
- scope: scope,
- icon: icon
- }, title), isActive && (0,external_React_namespaceObject.createElement)(ComplementaryAreaFill, {
- className: classnames_default()('interface-complementary-area', className),
- scope: scope,
- id: identifier.replace('/', ':')
- }, (0,external_React_namespaceObject.createElement)(complementary_area_header, {
- className: headerClassName,
- closeLabel: closeLabel,
- onClose: () => disableComplementaryArea(scope),
- smallScreenTitle: smallScreenTitle,
- toggleButtonProps: {
- label: closeLabel,
- shortcut: toggleShortcut,
- scope,
- identifier
- }
- }, header || (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("strong", null, title), isPinnable && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- className: "interface-complementary-area__pin-unpin-item",
- icon: isPinned ? star_filled : star_empty,
- label: isPinned ? (0,external_wp_i18n_namespaceObject.__)('Unpin from toolbar') : (0,external_wp_i18n_namespaceObject.__)('Pin to toolbar'),
- onClick: () => (isPinned ? unpinItem : pinItem)(scope, identifier),
- isPressed: isPinned,
- "aria-expanded": isPinned
- }))), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Panel, {
- className: panelClassName
- }, children)));
-}
-const ComplementaryAreaWrapped = complementary_area_context(ComplementaryArea);
-ComplementaryAreaWrapped.Slot = ComplementaryAreaSlot;
-/* harmony default export */ const complementary_area = (ComplementaryAreaWrapped);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/fullscreen-mode/index.js
-/**
- * WordPress dependencies
- */
-
-const FullscreenMode = ({
- isActive
-}) => {
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- let isSticky = false;
- // `is-fullscreen-mode` is set in PHP as a body class by Gutenberg, and this causes
- // `sticky-menu` to be applied by WordPress and prevents the admin menu being scrolled
- // even if `is-fullscreen-mode` is then removed. Let's remove `sticky-menu` here as
- // a consequence of the FullscreenMode setup.
- if (document.body.classList.contains('sticky-menu')) {
- isSticky = true;
- document.body.classList.remove('sticky-menu');
- }
- return () => {
- if (isSticky) {
- document.body.classList.add('sticky-menu');
- }
- };
- }, []);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (isActive) {
- document.body.classList.add('is-fullscreen-mode');
- } else {
- document.body.classList.remove('is-fullscreen-mode');
- }
- return () => {
- if (isActive) {
- document.body.classList.remove('is-fullscreen-mode');
- }
- };
- }, [isActive]);
- return null;
-};
-/* harmony default export */ const fullscreen_mode = (FullscreenMode);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/navigable-region/index.js
-
-/**
- * External dependencies
- */
-
-function NavigableRegion({
- children,
- className,
- ariaLabel,
- as: Tag = 'div',
- ...props
-}) {
- return (0,external_React_namespaceObject.createElement)(Tag, {
- className: classnames_default()('interface-navigable-region', className),
- "aria-label": ariaLabel,
- role: "region",
- tabIndex: "-1",
- ...props
- }, children);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/interface-skeleton/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-function useHTMLClass(className) {
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- const element = document && document.querySelector(`html:not(.${className})`);
- if (!element) {
- return;
- }
- element.classList.toggle(className);
- return () => {
- element.classList.toggle(className);
- };
- }, [className]);
-}
-const headerVariants = {
- hidden: {
- opacity: 0
- },
- hover: {
- opacity: 1,
- transition: {
- type: 'tween',
- delay: 0.2,
- delayChildren: 0.2
- }
- },
- distractionFreeInactive: {
- opacity: 1,
- transition: {
- delay: 0
- }
- }
-};
-function InterfaceSkeleton({
- isDistractionFree,
- footer,
- header,
- editorNotices,
- sidebar,
- secondarySidebar,
- notices,
- content,
- actions,
- labels,
- className,
- enableRegionNavigation = true,
- // Todo: does this need to be a prop.
- // Can we use a dependency to keyboard-shortcuts directly?
- shortcuts
-}, ref) {
- const navigateRegionsProps = (0,external_wp_components_namespaceObject.__unstableUseNavigateRegions)(shortcuts);
- useHTMLClass('interface-interface-skeleton__html-container');
- const defaultLabels = {
- /* translators: accessibility text for the top bar landmark region. */
- header: (0,external_wp_i18n_namespaceObject._x)('Header', 'header landmark area'),
- /* translators: accessibility text for the content landmark region. */
- body: (0,external_wp_i18n_namespaceObject.__)('Content'),
- /* translators: accessibility text for the secondary sidebar landmark region. */
- secondarySidebar: (0,external_wp_i18n_namespaceObject.__)('Block Library'),
- /* translators: accessibility text for the settings landmark region. */
- sidebar: (0,external_wp_i18n_namespaceObject.__)('Settings'),
- /* translators: accessibility text for the publish landmark region. */
- actions: (0,external_wp_i18n_namespaceObject.__)('Publish'),
- /* translators: accessibility text for the footer landmark region. */
- footer: (0,external_wp_i18n_namespaceObject.__)('Footer')
- };
- const mergedLabels = {
- ...defaultLabels,
- ...labels
- };
- return (0,external_React_namespaceObject.createElement)("div", {
- ...(enableRegionNavigation ? navigateRegionsProps : {}),
- ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, enableRegionNavigation ? navigateRegionsProps.ref : undefined]),
- className: classnames_default()(className, 'interface-interface-skeleton', navigateRegionsProps.className, !!footer && 'has-footer')
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "interface-interface-skeleton__editor"
- }, !!header && (0,external_React_namespaceObject.createElement)(NavigableRegion, {
- as: external_wp_components_namespaceObject.__unstableMotion.div,
- className: "interface-interface-skeleton__header",
- "aria-label": mergedLabels.header,
- initial: isDistractionFree ? 'hidden' : 'distractionFreeInactive',
- whileHover: isDistractionFree ? 'hover' : 'distractionFreeInactive',
- animate: isDistractionFree ? 'hidden' : 'distractionFreeInactive',
- variants: headerVariants,
- transition: isDistractionFree ? {
- type: 'tween',
- delay: 0.8
- } : undefined
- }, header), isDistractionFree && (0,external_React_namespaceObject.createElement)("div", {
- className: "interface-interface-skeleton__header"
- }, editorNotices), (0,external_React_namespaceObject.createElement)("div", {
- className: "interface-interface-skeleton__body"
- }, !!secondarySidebar && (0,external_React_namespaceObject.createElement)(NavigableRegion, {
- className: "interface-interface-skeleton__secondary-sidebar",
- ariaLabel: mergedLabels.secondarySidebar
- }, secondarySidebar), !!notices && (0,external_React_namespaceObject.createElement)("div", {
- className: "interface-interface-skeleton__notices"
- }, notices), (0,external_React_namespaceObject.createElement)(NavigableRegion, {
- className: "interface-interface-skeleton__content",
- ariaLabel: mergedLabels.body
- }, content), !!sidebar && (0,external_React_namespaceObject.createElement)(NavigableRegion, {
- className: "interface-interface-skeleton__sidebar",
- ariaLabel: mergedLabels.sidebar
- }, sidebar), !!actions && (0,external_React_namespaceObject.createElement)(NavigableRegion, {
- className: "interface-interface-skeleton__actions",
- ariaLabel: mergedLabels.actions
- }, actions))), !!footer && (0,external_React_namespaceObject.createElement)(NavigableRegion, {
- className: "interface-interface-skeleton__footer",
- ariaLabel: mergedLabels.footer
- }, footer));
-}
-/* harmony default export */ const interface_skeleton = ((0,external_wp_element_namespaceObject.forwardRef)(InterfaceSkeleton));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
-
-/**
- * WordPress dependencies
- */
-
-const moreVertical = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
-}));
-/* harmony default export */ const more_vertical = (moreVertical);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/more-menu-dropdown/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-function MoreMenuDropdown({
- as: DropdownComponent = external_wp_components_namespaceObject.DropdownMenu,
- className,
- /* translators: button label text should, if possible, be under 16 characters. */
- label = (0,external_wp_i18n_namespaceObject.__)('Options'),
- popoverProps,
- toggleProps,
- children
-}) {
- return (0,external_React_namespaceObject.createElement)(DropdownComponent, {
- className: classnames_default()('interface-more-menu-dropdown', className),
- icon: more_vertical,
- label: label,
- popoverProps: {
- placement: 'bottom-end',
- ...popoverProps,
- className: classnames_default()('interface-more-menu-dropdown__content', popoverProps?.className)
- },
- toggleProps: {
- tooltipPosition: 'bottom',
- ...toggleProps,
- size: 'compact'
- }
- }, onClose => children(onClose));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/index.js
-
-
-
-
-
-
-
-
-
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/index.js
-
-
-
-;// CONCATENATED MODULE: external ["wp","keyboardShortcuts"]
-const external_wp_keyboardShortcuts_namespaceObject = window["wp"]["keyboardShortcuts"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/config.js
-/**
- * WordPress dependencies
- */
-
-const textFormattingShortcuts = [{
- keyCombination: {
- modifier: 'primary',
- character: 'b'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Make the selected text bold.')
-}, {
- keyCombination: {
- modifier: 'primary',
- character: 'i'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Make the selected text italic.')
-}, {
- keyCombination: {
- modifier: 'primary',
- character: 'k'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Convert the selected text into a link.')
-}, {
- keyCombination: {
- modifier: 'primaryShift',
- character: 'k'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Remove a link.')
-}, {
- keyCombination: {
- character: '[['
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Insert a link to a post or page.')
-}, {
- keyCombination: {
- modifier: 'primary',
- character: 'u'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Underline the selected text.')
-}, {
- keyCombination: {
- modifier: 'access',
- character: 'd'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Strikethrough the selected text.')
-}, {
- keyCombination: {
- modifier: 'access',
- character: 'x'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Make the selected text inline code.')
-}, {
- keyCombination: {
- modifier: 'access',
- character: '0'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Convert the current heading to a paragraph.')
-}, {
- keyCombination: {
- modifier: 'access',
- character: '1-6'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Convert the current paragraph or heading to a heading of level 1 to 6.')
-}];
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/shortcut.js
-
-/**
- * WordPress dependencies
- */
-
-
-function KeyCombination({
- keyCombination,
- forceAriaLabel
-}) {
- const shortcut = keyCombination.modifier ? external_wp_keycodes_namespaceObject.displayShortcutList[keyCombination.modifier](keyCombination.character) : keyCombination.character;
- const ariaLabel = keyCombination.modifier ? external_wp_keycodes_namespaceObject.shortcutAriaLabel[keyCombination.modifier](keyCombination.character) : keyCombination.character;
- return (0,external_React_namespaceObject.createElement)("kbd", {
- className: "edit-post-keyboard-shortcut-help-modal__shortcut-key-combination",
- "aria-label": forceAriaLabel || ariaLabel
- }, (Array.isArray(shortcut) ? shortcut : [shortcut]).map((character, index) => {
- if (character === '+') {
- return (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, {
- key: index
- }, character);
- }
- return (0,external_React_namespaceObject.createElement)("kbd", {
- key: index,
- className: "edit-post-keyboard-shortcut-help-modal__shortcut-key"
- }, character);
- }));
-}
-function Shortcut({
- description,
- keyCombination,
- aliases = [],
- ariaLabel
-}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-post-keyboard-shortcut-help-modal__shortcut-description"
- }, description), (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-post-keyboard-shortcut-help-modal__shortcut-term"
- }, (0,external_React_namespaceObject.createElement)(KeyCombination, {
- keyCombination: keyCombination,
- forceAriaLabel: ariaLabel
- }), aliases.map((alias, index) => (0,external_React_namespaceObject.createElement)(KeyCombination, {
- keyCombination: alias,
- forceAriaLabel: ariaLabel,
- key: index
- }))));
-}
-/* harmony default export */ const keyboard_shortcut_help_modal_shortcut = (Shortcut);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-function DynamicShortcut({
- name
-}) {
- const {
- keyCombination,
- description,
- aliases
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getShortcutKeyCombination,
- getShortcutDescription,
- getShortcutAliases
- } = select(external_wp_keyboardShortcuts_namespaceObject.store);
- return {
- keyCombination: getShortcutKeyCombination(name),
- aliases: getShortcutAliases(name),
- description: getShortcutDescription(name)
- };
- }, [name]);
- if (!keyCombination) {
- return null;
- }
- return (0,external_React_namespaceObject.createElement)(keyboard_shortcut_help_modal_shortcut, {
- keyCombination: keyCombination,
- description: description,
- aliases: aliases
- });
-}
-/* harmony default export */ const dynamic_shortcut = (DynamicShortcut);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-const KEYBOARD_SHORTCUT_HELP_MODAL_NAME = 'edit-post/keyboard-shortcut-help';
-const ShortcutList = ({
- shortcuts
-}) =>
-/*
- * Disable reason: The `list` ARIA role is redundant but
- * Safari+VoiceOver won't announce the list otherwise.
- */
-/* eslint-disable jsx-a11y/no-redundant-roles */
-(0,external_React_namespaceObject.createElement)("ul", {
- className: "edit-post-keyboard-shortcut-help-modal__shortcut-list",
- role: "list"
-}, shortcuts.map((shortcut, index) => (0,external_React_namespaceObject.createElement)("li", {
- className: "edit-post-keyboard-shortcut-help-modal__shortcut",
- key: index
-}, typeof shortcut === 'string' ? (0,external_React_namespaceObject.createElement)(dynamic_shortcut, {
- name: shortcut
-}) : (0,external_React_namespaceObject.createElement)(keyboard_shortcut_help_modal_shortcut, {
- ...shortcut
-}))))
-/* eslint-enable jsx-a11y/no-redundant-roles */;
-const ShortcutSection = ({
- title,
- shortcuts,
- className
-}) => (0,external_React_namespaceObject.createElement)("section", {
- className: classnames_default()('edit-post-keyboard-shortcut-help-modal__section', className)
-}, !!title && (0,external_React_namespaceObject.createElement)("h2", {
- className: "edit-post-keyboard-shortcut-help-modal__section-title"
-}, title), (0,external_React_namespaceObject.createElement)(ShortcutList, {
- shortcuts: shortcuts
-}));
-const ShortcutCategorySection = ({
- title,
- categoryName,
- additionalShortcuts = []
-}) => {
- const categoryShortcuts = (0,external_wp_data_namespaceObject.useSelect)(select => {
- return select(external_wp_keyboardShortcuts_namespaceObject.store).getCategoryShortcuts(categoryName);
- }, [categoryName]);
- return (0,external_React_namespaceObject.createElement)(ShortcutSection, {
- title: title,
- shortcuts: categoryShortcuts.concat(additionalShortcuts)
- });
-};
-function KeyboardShortcutHelpModal({
- isModalActive,
- toggleModal
-}) {
- (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-post/keyboard-shortcuts', toggleModal);
- if (!isModalActive) {
- return null;
- }
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
- className: "edit-post-keyboard-shortcut-help-modal",
- title: (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts'),
- closeButtonLabel: (0,external_wp_i18n_namespaceObject.__)('Close'),
- onRequestClose: toggleModal
- }, (0,external_React_namespaceObject.createElement)(ShortcutSection, {
- className: "edit-post-keyboard-shortcut-help-modal__main-shortcuts",
- shortcuts: ['core/edit-post/keyboard-shortcuts']
- }), (0,external_React_namespaceObject.createElement)(ShortcutCategorySection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Global shortcuts'),
- categoryName: "global"
- }), (0,external_React_namespaceObject.createElement)(ShortcutCategorySection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Selection shortcuts'),
- categoryName: "selection"
- }), (0,external_React_namespaceObject.createElement)(ShortcutCategorySection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Block shortcuts'),
- categoryName: "block",
- additionalShortcuts: [{
- keyCombination: {
- character: '/'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Change the block type after adding a new paragraph.'),
- /* translators: The forward-slash character. e.g. '/'. */
- ariaLabel: (0,external_wp_i18n_namespaceObject.__)('Forward-slash')
- }]
- }), (0,external_React_namespaceObject.createElement)(ShortcutSection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Text formatting'),
- shortcuts: textFormattingShortcuts
- }));
-}
-/* harmony default export */ const keyboard_shortcut_help_modal = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)(select => ({
- isModalActive: select(store).isModalActive(KEYBOARD_SHORTCUT_HELP_MODAL_NAME)
-})), (0,external_wp_data_namespaceObject.withDispatch)((dispatch, {
- isModalActive
-}) => {
- const {
- openModal,
- closeModal
- } = dispatch(store);
- return {
- toggleModal: () => isModalActive ? closeModal() : openModal(KEYBOARD_SHORTCUT_HELP_MODAL_NAME)
- };
-})])(KeyboardShortcutHelpModal));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/keyboard-shortcuts-help-menu-item/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-function KeyboardShortcutsHelpMenuItem({
- openModal
-}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- openModal(KEYBOARD_SHORTCUT_HELP_MODAL_NAME);
- },
- shortcut: external_wp_keycodes_namespaceObject.displayShortcut.access('h')
- }, (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts'));
-}
-/* harmony default export */ const keyboard_shortcuts_help_menu_item = ((0,external_wp_data_namespaceObject.withDispatch)(dispatch => {
- const {
- openModal
- } = dispatch(store);
- return {
- openModal
- };
-})(KeyboardShortcutsHelpMenuItem));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/tools-more-menu-group/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-const {
- Fill: ToolsMoreMenuGroup,
- Slot
-} = (0,external_wp_components_namespaceObject.createSlotFill)('ToolsMoreMenuGroup');
-ToolsMoreMenuGroup.Slot = ({
- fillProps
-}) => (0,external_React_namespaceObject.createElement)(Slot, {
- fillProps: fillProps
-}, fills => fills.length > 0 && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Tools')
-}, fills));
-/* harmony default export */ const tools_more_menu_group = (ToolsMoreMenuGroup);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/welcome-guide-menu-item/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-function WelcomeGuideMenuItem() {
- const isEditingTemplate = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_editor_namespaceObject.store).getCurrentPostType() === 'wp_template', []);
- return (0,external_React_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
- scope: "core/edit-post",
- name: isEditingTemplate ? 'welcomeGuideTemplate' : 'welcomeGuide',
- label: (0,external_wp_i18n_namespaceObject.__)('Welcome Guide')
- });
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-function ManagePatternsMenuItem() {
- const url = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- canUser
- } = select(external_wp_coreData_namespaceObject.store);
- const {
- getEditorSettings
- } = select(external_wp_editor_namespaceObject.store);
- const isBlockTheme = getEditorSettings().__unstableIsBlockBasedTheme;
- const defaultUrl = (0,external_wp_url_namespaceObject.addQueryArgs)('edit.php', {
- post_type: 'wp_block'
- });
- const patternsUrl = (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', {
- path: '/patterns'
- });
-
- // The site editor and templates both check whether the user has
- // edit_theme_options capabilities. We can leverage that here and not
- // display the manage patterns link if the user can't access it.
- return canUser('read', 'templates') && isBlockTheme ? patternsUrl : defaultUrl;
- }, []);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- role: "menuitem",
- href: url
- }, (0,external_wp_i18n_namespaceObject.__)('Manage patterns'));
-}
-(0,external_wp_plugins_namespaceObject.registerPlugin)('edit-post', {
- render() {
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(tools_more_menu_group, null, ({
- onClose
- }) => (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(ManagePatternsMenuItem, null), (0,external_React_namespaceObject.createElement)(keyboard_shortcuts_help_menu_item, {
- onSelect: onClose
- }), (0,external_React_namespaceObject.createElement)(WelcomeGuideMenuItem, null), (0,external_React_namespaceObject.createElement)(CopyContentMenuItem, null), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- role: "menuitem",
- icon: library_external,
- href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/wordpress-block-editor/'),
- target: "_blank",
- rel: "noopener noreferrer"
- }, (0,external_wp_i18n_namespaceObject.__)('Help'), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "span"
- }, /* translators: accessibility text */
- (0,external_wp_i18n_namespaceObject.__)('(opens in a new tab)'))))));
- }
+ viewBox: "-2 -2 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"
+ })
});
+/* harmony default export */ const library_wordpress = (wordpress);
-;// CONCATENATED MODULE: external ["wp","commands"]
-const external_wp_commands_namespaceObject = window["wp"]["commands"];
-;// CONCATENATED MODULE: external ["wp","coreCommands"]
-const external_wp_coreCommands_namespaceObject = window["wp"]["coreCommands"];
+;// CONCATENATED MODULE: external ["wp","compose"]
+const external_wp_compose_namespaceObject = window["wp"]["compose"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/reducer.js
/**
* WordPress dependencies
*/
-function publishSidebarActive(state = false, action) {
- switch (action.type) {
- case 'OPEN_PUBLISH_SIDEBAR':
- return true;
- case 'CLOSE_PUBLISH_SIDEBAR':
- return false;
- case 'TOGGLE_PUBLISH_SIDEBAR':
- return !state;
- }
- return state;
-}
/**
* Reducer keeping track of the meta boxes isSaving state.
@@ -2147,16 +278,15 @@ const metaBoxes = (0,external_wp_data_namespaceObject.combineReducers)({
locations: metaBoxLocations,
initialized: metaBoxesInitialized
});
-/* harmony default export */ const store_reducer = ((0,external_wp_data_namespaceObject.combineReducers)({
- metaBoxes,
- publishSidebarActive
+/* harmony default export */ const reducer = ((0,external_wp_data_namespaceObject.combineReducers)({
+ metaBoxes
}));
;// CONCATENATED MODULE: external ["wp","apiFetch"]
const external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
-;// CONCATENATED MODULE: external ["wp","a11y"]
-const external_wp_a11y_namespaceObject = window["wp"]["a11y"];
+;// CONCATENATED MODULE: external ["wp","hooks"]
+const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/utils/meta-boxes.js
/**
* Function returning the current Meta Boxes DOM Node in the editor
@@ -2185,7 +315,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
const {
lock,
unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/edit-post');
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/edit-post');
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/actions.js
/**
@@ -2198,16 +328,14 @@ const {
-
-
-
-
/**
* Internal dependencies
*/
-
+const {
+ interfaceStore
+} = unlock(external_wp_editor_namespaceObject.privateApis);
/**
* Returns an action object used in signalling that the user opened an editor sidebar.
@@ -2215,14 +343,9 @@ const {
* @param {?string} name Sidebar name to be opened.
*/
const openGeneralSidebar = name => ({
- dispatch,
registry
}) => {
- const isDistractionFree = registry.select(external_wp_preferences_namespaceObject.store).get('core', 'distractionFree');
- if (isDistractionFree) {
- dispatch.toggleDistractionFree();
- }
- registry.dispatch(store).enableComplementaryArea(store_store.name, name);
+ registry.dispatch(interfaceStore).enableComplementaryArea('core', name);
};
/**
@@ -2230,7 +353,7 @@ const openGeneralSidebar = name => ({
*/
const closeGeneralSidebar = () => ({
registry
-}) => registry.dispatch(store).disableComplementaryArea(store_store.name);
+}) => registry.dispatch(interfaceStore).disableComplementaryArea('core');
/**
* Returns an action object used in signalling that the user opened a modal.
@@ -2242,14 +365,14 @@ const closeGeneralSidebar = () => ({
*
* @return {Object} Action object.
*/
-const actions_openModal = name => ({
+const openModal = name => ({
registry
}) => {
external_wp_deprecated_default()("select( 'core/edit-post' ).openModal( name )", {
since: '6.3',
alternative: "select( 'core/interface').openModal( name )"
});
- return registry.dispatch(store).openModal(name);
+ return registry.dispatch(interfaceStore).openModal(name);
};
/**
@@ -2259,50 +382,65 @@ const actions_openModal = name => ({
*
* @return {Object} Action object.
*/
-const actions_closeModal = () => ({
+const closeModal = () => ({
registry
}) => {
external_wp_deprecated_default()("select( 'core/edit-post' ).closeModal()", {
since: '6.3',
alternative: "select( 'core/interface').closeModal()"
});
- return registry.dispatch(store).closeModal();
+ return registry.dispatch(interfaceStore).closeModal();
};
/**
* Returns an action object used in signalling that the user opened the publish
* sidebar.
+ * @deprecated
*
* @return {Object} Action object
*/
-function openPublishSidebar() {
- return {
- type: 'OPEN_PUBLISH_SIDEBAR'
- };
-}
+const openPublishSidebar = () => ({
+ registry
+}) => {
+ external_wp_deprecated_default()("dispatch( 'core/edit-post' ).openPublishSidebar", {
+ since: '6.6',
+ alternative: "dispatch( 'core/editor').openPublishSidebar"
+ });
+ registry.dispatch(external_wp_editor_namespaceObject.store).openPublishSidebar();
+};
/**
* Returns an action object used in signalling that the user closed the
* publish sidebar.
+ * @deprecated
*
* @return {Object} Action object.
*/
-function closePublishSidebar() {
- return {
- type: 'CLOSE_PUBLISH_SIDEBAR'
- };
-}
+const closePublishSidebar = () => ({
+ registry
+}) => {
+ external_wp_deprecated_default()("dispatch( 'core/edit-post' ).closePublishSidebar", {
+ since: '6.6',
+ alternative: "dispatch( 'core/editor').closePublishSidebar"
+ });
+ registry.dispatch(external_wp_editor_namespaceObject.store).closePublishSidebar();
+};
/**
* Returns an action object used in signalling that the user toggles the publish sidebar.
+ * @deprecated
*
* @return {Object} Action object
*/
-function togglePublishSidebar() {
- return {
- type: 'TOGGLE_PUBLISH_SIDEBAR'
- };
-}
+const togglePublishSidebar = () => ({
+ registry
+}) => {
+ external_wp_deprecated_default()("dispatch( 'core/edit-post' ).togglePublishSidebar", {
+ since: '6.6',
+ alternative: "dispatch( 'core/editor').togglePublishSidebar"
+ });
+ registry.dispatch(external_wp_editor_namespaceObject.store).togglePublishSidebar();
+};
/**
* Returns an action object used to enable or disable a panel in the editor.
@@ -2364,30 +502,25 @@ const removeEditorPanel = panelName => ({
*
* @param {string} feature Feature name.
*/
-const actions_toggleFeature = feature => ({
+const toggleFeature = feature => ({
registry
}) => registry.dispatch(external_wp_preferences_namespaceObject.store).toggle('core/edit-post', feature);
/**
* Triggers an action used to switch editor mode.
*
+ * @deprecated
+ *
* @param {string} mode The editor mode.
*/
const switchEditorMode = mode => ({
- dispatch,
registry
}) => {
- registry.dispatch(external_wp_preferences_namespaceObject.store).set('core', 'editorMode', mode);
-
- // Unselect blocks when we switch to the code editor.
- if (mode !== 'visual') {
- registry.dispatch(external_wp_blockEditor_namespaceObject.store).clearSelectedBlock();
- }
- if (mode === 'text' && registry.select(external_wp_preferences_namespaceObject.store).get('core', 'distractionFree')) {
- dispatch.toggleDistractionFree();
- }
- const message = mode === 'visual' ? (0,external_wp_i18n_namespaceObject.__)('Visual editor selected') : (0,external_wp_i18n_namespaceObject.__)('Code editor selected');
- (0,external_wp_a11y_namespaceObject.speak)(message, 'assertive');
+ external_wp_deprecated_default()("dispatch( 'core/edit-post' ).switchEditorMode", {
+ since: '6.6',
+ alternative: "dispatch( 'core/editor').switchEditorMode"
+ });
+ registry.dispatch(external_wp_editor_namespaceObject.store).switchEditorMode(mode);
};
/**
@@ -2398,40 +531,24 @@ const switchEditorMode = mode => ({
const togglePinnedPluginItem = pluginName => ({
registry
}) => {
- const isPinned = registry.select(store).isItemPinned('core/edit-post', pluginName);
- registry.dispatch(store)[isPinned ? 'unpinItem' : 'pinItem']('core/edit-post', pluginName);
+ const isPinned = registry.select(interfaceStore).isItemPinned('core', pluginName);
+ registry.dispatch(interfaceStore)[isPinned ? 'unpinItem' : 'pinItem']('core', pluginName);
};
/**
* Returns an action object used in signaling that a style should be auto-applied when a block is created.
*
- * @param {string} blockName Name of the block.
- * @param {?string} blockStyle Name of the style that should be auto applied. If undefined, the "auto apply" setting of the block is removed.
+ * @deprecated
*/
-const updatePreferredStyleVariations = (blockName, blockStyle) => ({
- registry
-}) => {
- var _registry$select$get;
- if (!blockName) {
- return;
- }
- const existingVariations = (_registry$select$get = registry.select(external_wp_preferences_namespaceObject.store).get('core/edit-post', 'preferredStyleVariations')) !== null && _registry$select$get !== void 0 ? _registry$select$get : {};
-
- // When the blockStyle is omitted, remove the block's preferred variation.
- if (!blockStyle) {
- const updatedVariations = {
- ...existingVariations
- };
- delete updatedVariations[blockName];
- registry.dispatch(external_wp_preferences_namespaceObject.store).set('core/edit-post', 'preferredStyleVariations', updatedVariations);
- } else {
- // Else add the variation.
- registry.dispatch(external_wp_preferences_namespaceObject.store).set('core/edit-post', 'preferredStyleVariations', {
- ...existingVariations,
- [blockName]: blockStyle
- });
- }
-};
+function updatePreferredStyleVariations() {
+ external_wp_deprecated_default()("dispatch( 'core/edit-post' ).updatePreferredStyleVariations", {
+ since: '6.6',
+ hint: 'Preferred Style Variations are not supported anymore.'
+ });
+ return {
+ type: 'NOTHING'
+ };
+}
/**
* Update the provided block types to be visible.
@@ -2484,13 +601,19 @@ const requestMetaBoxUpdates = () => async ({
window.tinyMCE.triggerSave();
}
+ // We gather the base form data.
+ const baseFormData = new window.FormData(document.querySelector('.metabox-base-form'));
+ const postId = baseFormData.get('post_ID');
+ const postType = baseFormData.get('post_type');
+
// Additional data needed for backward compatibility.
// If we do not provide this data, the post will be overridden with the default values.
- const post = registry.select(external_wp_editor_namespaceObject.store).getCurrentPost();
+ // We cannot rely on getCurrentPost because right now on the editor we may be editing a pattern or a template.
+ // We need to retrieve the post that the base form data is referring to.
+ const post = registry.select(external_wp_coreData_namespaceObject.store).getEditedEntityRecord('postType', postType, postId);
const additionalData = [post.comment_status ? ['comment_status', post.comment_status] : false, post.ping_status ? ['ping_status', post.ping_status] : false, post.sticky ? ['sticky', post.sticky] : false, post.author ? ['post_author', post.author] : false].filter(Boolean);
- // We gather all the metaboxes locations data and the base form data.
- const baseFormData = new window.FormData(document.querySelector('.metabox-base-form'));
+ // We gather all the metaboxes locations.
const activeMetaBoxLocations = select.getActiveMetaBoxLocations();
const formDataToMerge = [baseFormData, ...activeMetaBoxLocations.map(location => new window.FormData(getMetaBoxContainer(location)))];
@@ -2661,346 +784,21 @@ const initializeMetaBoxes = () => ({
* Action that toggles Distraction free mode.
* Distraction free mode expects there are no sidebars, as due to the
* z-index values set, you can't close sidebars.
+ *
+ * @deprecated
*/
const toggleDistractionFree = () => ({
- dispatch,
registry
}) => {
- const isDistractionFree = registry.select(external_wp_preferences_namespaceObject.store).get('core', 'distractionFree');
- if (isDistractionFree) {
- registry.dispatch(external_wp_preferences_namespaceObject.store).set('core', 'fixedToolbar', false);
- }
- if (!isDistractionFree) {
- registry.batch(() => {
- registry.dispatch(external_wp_preferences_namespaceObject.store).set('core', 'fixedToolbar', true);
- registry.dispatch(external_wp_editor_namespaceObject.store).setIsInserterOpened(false);
- registry.dispatch(external_wp_editor_namespaceObject.store).setIsListViewOpened(false);
- dispatch.closeGeneralSidebar();
- });
- }
- registry.batch(() => {
- registry.dispatch(external_wp_preferences_namespaceObject.store).set('core', 'distractionFree', !isDistractionFree);
- registry.dispatch(external_wp_notices_namespaceObject.store).createInfoNotice(isDistractionFree ? (0,external_wp_i18n_namespaceObject.__)('Distraction free off.') : (0,external_wp_i18n_namespaceObject.__)('Distraction free on.'), {
- id: 'core/edit-post/distraction-free-mode/notice',
- type: 'snackbar',
- actions: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Undo'),
- onClick: () => {
- registry.batch(() => {
- registry.dispatch(external_wp_preferences_namespaceObject.store).set('core', 'fixedToolbar', isDistractionFree ? true : false);
- registry.dispatch(external_wp_preferences_namespaceObject.store).toggle('core', 'distractionFree');
- });
- }
- }]
- });
+ external_wp_deprecated_default()("dispatch( 'core/edit-post' ).toggleDistractionFree", {
+ since: '6.6',
+ alternative: "dispatch( 'core/editor').toggleDistractionFree"
});
+ registry.dispatch(external_wp_editor_namespaceObject.store).toggleDistractionFree();
};
-;// CONCATENATED MODULE: ./node_modules/rememo/rememo.js
-
-
-/** @typedef {(...args: any[]) => *[]} GetDependants */
-
-/** @typedef {() => void} Clear */
-
-/**
- * @typedef {{
- * getDependants: GetDependants,
- * clear: Clear
- * }} EnhancedSelector
- */
-
-/**
- * Internal cache entry.
- *
- * @typedef CacheNode
- *
- * @property {?CacheNode|undefined} [prev] Previous node.
- * @property {?CacheNode|undefined} [next] Next node.
- * @property {*[]} args Function arguments for cache entry.
- * @property {*} val Function result.
- */
-
-/**
- * @typedef Cache
- *
- * @property {Clear} clear Function to clear cache.
- * @property {boolean} [isUniqueByDependants] Whether dependants are valid in
- * considering cache uniqueness. A cache is unique if dependents are all arrays
- * or objects.
- * @property {CacheNode?} [head] Cache head.
- * @property {*[]} [lastDependants] Dependants from previous invocation.
- */
-
-/**
- * Arbitrary value used as key for referencing cache object in WeakMap tree.
- *
- * @type {{}}
- */
-var LEAF_KEY = {};
-
-/**
- * Returns the first argument as the sole entry in an array.
- *
- * @template T
- *
- * @param {T} value Value to return.
- *
- * @return {[T]} 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 {Cache} Cache object.
- */
-function createCache() {
- /** @type {Cache} */
- 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 {*[]} a First array.
- * @param {*[]} 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.
- *
- * @template {(...args: *[]) => *} S
- *
- * @param {S} selector Selector function.
- * @param {GetDependants=} getDependants Dependant getter returning an array of
- * references used in cache bust consideration.
- */
-/* harmony default export */ function rememo(selector, getDependants) {
- /** @type {WeakMap<*,*>} */
- var rootCache;
-
- /** @type {GetDependants} */
- var normalizedGetDependants = getDependants ? getDependants : arrayOf;
-
- /**
- * 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 {*[]} dependants Selector dependants.
- *
- * @return {Cache} Cache object.
- */
- function getCache(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);
- }
-
- /**
- * Resets root memoization cache.
- */
- function clear() {
- rootCache = new WeakMap();
- }
-
- /* eslint-disable jsdoc/check-param-names */
- /**
- * The augmented selector call, considering first whether dependants have
- * changed before passing it to underlying memoize function.
- *
- * @param {*} source Source object for derivation.
- * @param {...*} extraArgs Additional arguments to pass to selector.
- *
- * @return {*} Selector result.
- */
- /* eslint-enable jsdoc/check-param-names */
- 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 = normalizedGetDependants.apply(null, args);
- cache = getCache(dependants);
-
- // If not guaranteed uniqueness by dependants (primitive type), 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.
- /** @type {CacheNode} */ (node.prev).next = node.next;
- if (node.next) {
- node.next.prev = node.prev;
- }
-
- node.next = cache.head;
- node.prev = null;
- /** @type {CacheNode} */ (cache.head).prev = node;
- cache.head = node;
- }
-
- // Return immediately
- return node.val;
- }
-
- // No cached value found. Continue to insertion phase:
-
- node = /** @type {CacheNode} */ ({
- // 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 = normalizedGetDependants;
- callSelector.clear = clear;
- clear();
-
- return /** @type {S & EnhancedSelector} */ (callSelector);
-}
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/selectors.js
/**
- * External dependencies
- */
-
-
-/**
* WordPress dependencies
*/
@@ -3009,11 +807,13 @@ function isShallowEqual(a, b, fromIndex) {
-
/**
* Internal dependencies
*/
+const {
+ interfaceStore: selectors_interfaceStore
+} = unlock(external_wp_editor_namespaceObject.privateApis);
const EMPTY_ARRAY = [];
const EMPTY_OBJECT = {};
@@ -3037,7 +837,7 @@ const getEditorMode = (0,external_wp_data_namespaceObject.createRegistrySelector
* @return {boolean} Whether the editor sidebar is opened.
*/
const isEditorSidebarOpened = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => () => {
- const activeGeneralSidebar = select(store).getActiveComplementaryArea('core/edit-post');
+ const activeGeneralSidebar = select(selectors_interfaceStore).getActiveComplementaryArea('core');
return ['edit-post/document', 'edit-post/block'].includes(activeGeneralSidebar);
});
@@ -3049,7 +849,7 @@ const isEditorSidebarOpened = (0,external_wp_data_namespaceObject.createRegistry
* @return {boolean} Whether the plugin sidebar is opened.
*/
const isPluginSidebarOpened = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => () => {
- const activeGeneralSidebar = select(store).getActiveComplementaryArea('core/edit-post');
+ const activeGeneralSidebar = select(selectors_interfaceStore).getActiveComplementaryArea('core');
return !!activeGeneralSidebar && !['edit-post/document', 'edit-post/block'].includes(activeGeneralSidebar);
});
@@ -3068,7 +868,7 @@ const isPluginSidebarOpened = (0,external_wp_data_namespaceObject.createRegistry
* @return {?string} Active general sidebar name.
*/
const getActiveGeneralSidebarName = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => () => {
- return select(store).getActiveComplementaryArea('core/edit-post');
+ return select(selectors_interfaceStore).getActiveComplementaryArea('core');
});
/**
@@ -3133,17 +933,6 @@ const getPreferences = (0,external_wp_data_namespaceObject.createRegistrySelecto
since: '6.0',
alternative: `select( 'core/preferences' ).get`
});
-
- // These preferences now exist in the preferences store.
- // Fetch them so that they can be merged into the post
- // editor preferences.
- const preferences = ['preferredStyleVariations'].reduce((accumulatedPrefs, preferenceKey) => {
- const value = select(external_wp_preferences_namespaceObject.store).get('core/edit-post', preferenceKey);
- return {
- ...accumulatedPrefs,
- [preferenceKey]: value
- };
- }, {});
const corePreferences = ['editorMode', 'hiddenBlockTypes'].reduce((accumulatedPrefs, preferenceKey) => {
const value = select(external_wp_preferences_namespaceObject.store).get('core', preferenceKey);
return {
@@ -3160,7 +949,6 @@ const getPreferences = (0,external_wp_data_namespaceObject.createRegistrySelecto
const openPanels = select(external_wp_preferences_namespaceObject.store).get('core', 'openPanels');
const panels = convertPanelsToOldFormat(inactivePanels, openPanels);
return {
- ...preferences,
...corePreferences,
panels
};
@@ -3199,13 +987,19 @@ const getHiddenBlockTypes = (0,external_wp_data_namespaceObject.createRegistrySe
/**
* Returns true if the publish sidebar is opened.
*
+ * @deprecated
+ *
* @param {Object} state Global application state
*
* @return {boolean} Whether the publish sidebar is open.
*/
-function isPublishSidebarOpened(state) {
- return state.publishSidebarActive;
-}
+const isPublishSidebarOpened = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => () => {
+ external_wp_deprecated_default()(`select( 'core/edit-post' ).isPublishSidebarOpened`, {
+ since: '6.6',
+ alternative: `select( 'core/editor' ).isPublishSidebarOpened`
+ });
+ return select(external_wp_editor_namespaceObject.store).isPublishSidebarOpened();
+});
/**
* Returns true if the given panel was programmatically removed, or false otherwise.
@@ -3274,12 +1068,12 @@ const isEditorPanelOpened = (0,external_wp_data_namespaceObject.createRegistrySe
*
* @return {boolean} Whether the modal is active.
*/
-const selectors_isModalActive = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, modalName) => {
+const isModalActive = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, modalName) => {
external_wp_deprecated_default()(`select( 'core/edit-post' ).isModalActive`, {
since: '6.3',
alternative: `select( 'core/interface' ).isModalActive`
});
- return !!select(store).isModalActive(modalName);
+ return !!select(selectors_interfaceStore).isModalActive(modalName);
});
/**
@@ -3290,7 +1084,7 @@ const selectors_isModalActive = (0,external_wp_data_namespaceObject.createRegist
*
* @return {boolean} Is active.
*/
-const selectors_isFeatureActive = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, feature) => {
+const isFeatureActive = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, feature) => {
return !!select(external_wp_preferences_namespaceObject.store).get('core/edit-post', feature);
});
@@ -3304,7 +1098,7 @@ const selectors_isFeatureActive = (0,external_wp_data_namespaceObject.createRegi
* @return {boolean} Whether the plugin item is pinned.
*/
const isPluginItemPinned = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, pluginName) => {
- return select(store).isItemPinned('core/edit-post', pluginName);
+ return select(selectors_interfaceStore).isItemPinned('core', pluginName);
});
/**
@@ -3314,7 +1108,7 @@ const isPluginItemPinned = (0,external_wp_data_namespaceObject.createRegistrySel
*
* @return {string[]} Active meta box locations.
*/
-const getActiveMetaBoxLocations = rememo(state => {
+const getActiveMetaBoxLocations = (0,external_wp_data_namespaceObject.createSelector)(state => {
return Object.keys(state.metaBoxes.locations).filter(location => isMetaBoxLocationActive(state, location));
}, state => [state.metaBoxes.locations]);
@@ -3367,7 +1161,7 @@ function getMetaBoxesPerLocation(state, location) {
*
* @return {Array} List of meta boxes.
*/
-const getAllMetaBoxes = rememo(state => {
+const getAllMetaBoxes = (0,external_wp_data_namespaceObject.createSelector)(state => {
return Object.values(state.metaBoxes.locations).flat();
}, state => [state.metaBoxes.locations]);
@@ -3532,7 +1326,7 @@ const getEditedPostTemplate = (0,external_wp_data_namespaceObject.createRegistry
const defaultTemplateId = select(external_wp_coreData_namespaceObject.store).getDefaultTemplateId({
slug: slugToCheck
});
- return select(external_wp_coreData_namespaceObject.store).getEditedEntityRecord('postType', 'wp_template', defaultTemplateId);
+ return defaultTemplateId ? select(external_wp_coreData_namespaceObject.store).getEditedEntityRecord('postType', 'wp_template', defaultTemplateId) : null;
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/constants.js
@@ -3541,7 +1335,7 @@ const getEditedPostTemplate = (0,external_wp_data_namespaceObject.createRegistry
*
* @type {string}
*/
-const constants_STORE_NAME = 'core/edit-post';
+const STORE_NAME = 'core/edit-post';
/**
* CSS selector string for the admin bar view post link anchor tag.
@@ -3578,14 +1372,18 @@ const VIEW_AS_PREVIEW_LINK_SELECTOR = '#wp-admin-bar-preview a';
*
* @type {Object}
*/
-const store_store = (0,external_wp_data_namespaceObject.createReduxStore)(constants_STORE_NAME, {
- reducer: store_reducer,
- actions: store_actions_namespaceObject,
- selectors: store_selectors_namespaceObject
+const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME, {
+ reducer: reducer,
+ actions: actions_namespaceObject,
+ selectors: selectors_namespaceObject
});
-(0,external_wp_data_namespaceObject.register)(store_store);
+(0,external_wp_data_namespaceObject.register)(store);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/back-button/fullscreen-mode-close.js
+/**
+ * External dependencies
+ */
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/text-editor/index.js
/**
* WordPress dependencies
@@ -3597,131 +1395,157 @@ const store_store = (0,external_wp_data_namespaceObject.createReduxStore)(consta
+
+
/**
* Internal dependencies
*/
-function TextEditor() {
- const isRichEditingEnabled = (0,external_wp_data_namespaceObject.useSelect)(select => {
- return select(external_wp_editor_namespaceObject.store).getEditorSettings().richEditingEnabled;
- }, []);
- const {
- switchEditorMode
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+
+function FullscreenModeClose({
+ showTooltip,
+ icon,
+ href,
+ initialPost
+}) {
+ var _postType$labels$view;
const {
- isWelcomeGuideVisible
+ isActive,
+ isRequestingSiteIcon,
+ postType,
+ siteIconUrl
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
+ getCurrentPostType
+ } = select(external_wp_editor_namespaceObject.store);
+ const {
isFeatureActive
- } = select(store_store);
+ } = select(store);
+ const {
+ getEntityRecord,
+ getPostType,
+ isResolving
+ } = select(external_wp_coreData_namespaceObject.store);
+ const siteData = getEntityRecord('root', '__unstableBase', undefined) || {};
+ const _postType = initialPost?.type || getCurrentPostType();
return {
- isWelcomeGuideVisible: isFeatureActive('welcomeGuide')
+ isActive: isFeatureActive('fullscreenMode'),
+ isRequestingSiteIcon: isResolving('getEntityRecord', ['root', '__unstableBase', undefined]),
+ postType: getPostType(_postType),
+ siteIconUrl: siteData.site_icon_url
};
}, []);
- const titleRef = (0,external_wp_element_namespaceObject.useRef)();
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (isWelcomeGuideVisible) {
- return;
+ const disableMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
+ if (!isActive || !postType) {
+ return null;
+ }
+ let buttonIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ size: "36px",
+ icon: library_wordpress
+ });
+ const effect = {
+ expand: {
+ scale: 1.25,
+ transition: {
+ type: 'tween',
+ duration: '0.3'
+ }
}
- titleRef?.current?.focus();
- }, [isWelcomeGuideVisible]);
- return (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-post-text-editor"
- }, isRichEditingEnabled && (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-post-text-editor__toolbar"
- }, (0,external_React_namespaceObject.createElement)("h2", null, (0,external_wp_i18n_namespaceObject.__)('Editing code')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: () => switchEditorMode('visual'),
- shortcut: external_wp_keycodes_namespaceObject.displayShortcut.secondary('m')
- }, (0,external_wp_i18n_namespaceObject.__)('Exit code editor'))), (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-post-text-editor__body"
- }, (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostTitleRaw, {
- ref: titleRef
- }), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostTextEditor, null)));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/visual-editor/index.js
-
-/**
- * External dependencies
- */
+ };
+ if (siteIconUrl) {
+ buttonIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.img, {
+ variants: !disableMotion && effect,
+ alt: (0,external_wp_i18n_namespaceObject.__)('Site Icon'),
+ className: "edit-post-fullscreen-mode-close_site-icon",
+ src: siteIconUrl
+ });
+ }
+ if (isRequestingSiteIcon) {
+ buttonIcon = null;
+ }
+ // Override default icon if custom icon is provided via props.
+ if (icon) {
+ buttonIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ size: "36px",
+ icon: icon
+ });
+ }
+ const classes = dist_clsx({
+ 'edit-post-fullscreen-mode-close': true,
+ 'has-icon': siteIconUrl
+ });
+ const buttonHref = href !== null && href !== void 0 ? href : (0,external_wp_url_namespaceObject.addQueryArgs)('edit.php', {
+ post_type: postType.slug
+ });
+ const buttonLabel = (_postType$labels$view = postType?.labels?.view_items) !== null && _postType$labels$view !== void 0 ? _postType$labels$view : (0,external_wp_i18n_namespaceObject.__)('Back');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ whileHover: "expand",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: classes,
+ href: buttonHref,
+ label: buttonLabel,
+ showTooltip: showTooltip,
+ children: buttonIcon
+ })
+ });
+}
+/* harmony default export */ const fullscreen_mode_close = (FullscreenModeClose);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/back-button/index.js
/**
* WordPress dependencies
*/
-
-
/**
* Internal dependencies
*/
+
const {
- EditorCanvas
+ BackButton: BackButtonFill
} = unlock(external_wp_editor_namespaceObject.privateApis);
-const isGutenbergPlugin = false ? 0 : false;
-function VisualEditor({
- styles
-}) {
- const {
- isWelcomeGuideVisible,
- renderingMode,
- isBlockBasedTheme,
- hasV3BlocksOnly,
- isEditingTemplate
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- isFeatureActive
- } = select(store_store);
- const {
- getEditorSettings,
- getRenderingMode
- } = select(external_wp_editor_namespaceObject.store);
- const {
- getBlockTypes
- } = select(external_wp_blocks_namespaceObject.store);
- const editorSettings = getEditorSettings();
- return {
- isWelcomeGuideVisible: isFeatureActive('welcomeGuide'),
- renderingMode: getRenderingMode(),
- isBlockBasedTheme: editorSettings.__unstableIsBlockBasedTheme,
- hasV3BlocksOnly: getBlockTypes().every(type => {
- return type.apiVersion >= 3;
- }),
- isEditingTemplate: select(external_wp_editor_namespaceObject.store).getCurrentPostType() === 'wp_template'
- };
- }, []);
- const hasMetaBoxes = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).hasMetaBoxes(), []);
- let paddingBottom;
-
- // Add a constant padding for the typewritter effect. When typing at the
- // bottom, there needs to be room to scroll up.
- if (!hasMetaBoxes && renderingMode === 'post-only') {
- paddingBottom = '40vh';
+const slideX = {
+ hidden: {
+ x: '-100%'
+ },
+ distractionFreeInactive: {
+ x: 0
+ },
+ hover: {
+ x: 0,
+ transition: {
+ type: 'tween',
+ delay: 0.2
+ }
}
- styles = (0,external_wp_element_namespaceObject.useMemo)(() => [...styles, {
- // We should move this in to future to the body.
- css: paddingBottom ? `body{padding-bottom:${paddingBottom}}` : ''
- }], [styles, paddingBottom]);
- const isToBeIframed = (hasV3BlocksOnly || isGutenbergPlugin && isBlockBasedTheme) && !hasMetaBoxes || isEditingTemplate;
- return (0,external_React_namespaceObject.createElement)("div", {
- className: classnames_default()('edit-post-visual-editor', {
- 'has-inline-canvas': !isToBeIframed
+};
+function BackButton({
+ initialPost
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BackButtonFill, {
+ children: ({
+ length
+ }) => length <= 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ variants: slideX,
+ transition: {
+ type: 'tween',
+ delay: 0.8
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(fullscreen_mode_close, {
+ showTooltip: true,
+ initialPost: initialPost
+ })
})
- }, (0,external_React_namespaceObject.createElement)(EditorCanvas, {
- disableIframe: !isToBeIframed,
- styles: styles
- // We should auto-focus the canvas (title) on load.
- // eslint-disable-next-line jsx-a11y/no-autofocus
- ,
- autoFocus: !isWelcomeGuideVisible
- }));
+ });
}
+/* harmony default export */ const back_button = (BackButton);
+;// CONCATENATED MODULE: external ["wp","keyboardShortcuts"]
+const external_wp_keyboardShortcuts_namespaceObject = window["wp"]["keyboardShortcuts"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcuts/index.js
/**
* WordPress dependencies
@@ -3731,86 +1555,19 @@ function VisualEditor({
-
-
-
/**
* Internal dependencies
*/
function KeyboardShortcuts() {
const {
- getEditorMode,
- isEditorSidebarOpened
- } = (0,external_wp_data_namespaceObject.useSelect)(store_store);
- const isModeToggleDisabled = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- richEditingEnabled,
- codeEditingEnabled
- } = select(external_wp_editor_namespaceObject.store).getEditorSettings();
- return !richEditingEnabled || !codeEditingEnabled;
- }, []);
- const {
- switchEditorMode,
- openGeneralSidebar,
- closeGeneralSidebar,
- toggleFeature,
- toggleDistractionFree
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ toggleFeature
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
const {
registerShortcut
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_keyboardShortcuts_namespaceObject.store);
- const {
- replaceBlocks
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- const {
- getBlockName,
- getSelectedBlockClientId,
- getBlockAttributes,
- getBlockSelectionStart
- } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
- const handleTextLevelShortcut = (event, level) => {
- event.preventDefault();
- const destinationBlockName = level === 0 ? 'core/paragraph' : 'core/heading';
- const currentClientId = getSelectedBlockClientId();
- if (currentClientId === null) {
- return;
- }
- const blockName = getBlockName(currentClientId);
- if (blockName !== 'core/paragraph' && blockName !== 'core/heading') {
- return;
- }
- const attributes = getBlockAttributes(currentClientId);
- const textAlign = blockName === 'core/paragraph' ? 'align' : 'textAlign';
- const destinationTextAlign = destinationBlockName === 'core/paragraph' ? 'align' : 'textAlign';
- replaceBlocks(currentClientId, (0,external_wp_blocks_namespaceObject.createBlock)(destinationBlockName, {
- level,
- content: attributes.content,
- ...{
- [destinationTextAlign]: attributes[textAlign]
- }
- }));
- };
(0,external_wp_element_namespaceObject.useEffect)(() => {
registerShortcut({
- name: 'core/edit-post/toggle-mode',
- category: 'global',
- description: (0,external_wp_i18n_namespaceObject.__)('Switch between visual editor and code editor.'),
- keyCombination: {
- modifier: 'secondary',
- character: 'm'
- }
- });
- registerShortcut({
- name: 'core/edit-post/toggle-distraction-free',
- category: 'global',
- description: (0,external_wp_i18n_namespaceObject.__)('Toggle distraction free mode.'),
- keyCombination: {
- modifier: 'primaryShift',
- character: '\\'
- }
- });
- registerShortcut({
name: 'core/edit-post/toggle-fullscreen',
category: 'global',
description: (0,external_wp_i18n_namespaceObject.__)('Toggle fullscreen mode.'),
@@ -3819,205 +1576,15 @@ function KeyboardShortcuts() {
character: 'f'
}
});
- registerShortcut({
- name: 'core/edit-post/toggle-sidebar',
- category: 'global',
- description: (0,external_wp_i18n_namespaceObject.__)('Show or hide the Settings sidebar.'),
- keyCombination: {
- modifier: 'primaryShift',
- character: ','
- }
- });
- registerShortcut({
- name: 'core/edit-post/next-region',
- category: 'global',
- description: (0,external_wp_i18n_namespaceObject.__)('Navigate to the next part of the editor.'),
- keyCombination: {
- modifier: 'ctrl',
- character: '`'
- },
- aliases: [{
- modifier: 'access',
- character: 'n'
- }]
- });
- registerShortcut({
- name: 'core/edit-post/previous-region',
- category: 'global',
- description: (0,external_wp_i18n_namespaceObject.__)('Navigate to the previous part of the editor.'),
- keyCombination: {
- modifier: 'ctrlShift',
- character: '`'
- },
- aliases: [{
- modifier: 'access',
- character: 'p'
- }, {
- modifier: 'ctrlShift',
- character: '~'
- }]
- });
- registerShortcut({
- name: 'core/edit-post/keyboard-shortcuts',
- category: 'main',
- description: (0,external_wp_i18n_namespaceObject.__)('Display these keyboard shortcuts.'),
- keyCombination: {
- modifier: 'access',
- character: 'h'
- }
- });
- registerShortcut({
- name: 'core/edit-post/transform-heading-to-paragraph',
- category: 'block-library',
- description: (0,external_wp_i18n_namespaceObject.__)('Transform heading to paragraph.'),
- keyCombination: {
- modifier: 'access',
- character: `0`
- }
- });
- [1, 2, 3, 4, 5, 6].forEach(level => {
- registerShortcut({
- name: `core/edit-post/transform-paragraph-to-heading-${level}`,
- category: 'block-library',
- description: (0,external_wp_i18n_namespaceObject.__)('Transform paragraph to heading.'),
- keyCombination: {
- modifier: 'access',
- character: `${level}`
- }
- });
- });
}, []);
- (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-post/toggle-mode', () => {
- switchEditorMode(getEditorMode() === 'visual' ? 'text' : 'visual');
- }, {
- isDisabled: isModeToggleDisabled
- });
(0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-post/toggle-fullscreen', () => {
toggleFeature('fullscreenMode');
});
- (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-post/toggle-distraction-free', () => {
- toggleDistractionFree();
- });
- (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-post/toggle-sidebar', event => {
- // This shortcut has no known clashes, but use preventDefault to prevent any
- // obscure shortcuts from triggering.
- event.preventDefault();
- if (isEditorSidebarOpened()) {
- closeGeneralSidebar();
- } else {
- const sidebarToOpen = getBlockSelectionStart() ? 'edit-post/block' : 'edit-post/document';
- openGeneralSidebar(sidebarToOpen);
- }
- });
- (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-post/transform-heading-to-paragraph', event => handleTextLevelShortcut(event, 0));
- [1, 2, 3, 4, 5, 6].forEach(level => {
- //the loop is based off on a constant therefore
- //the hook will execute the same way every time
- //eslint-disable-next-line react-hooks/rules-of-hooks
- (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)(`core/edit-post/transform-paragraph-to-heading-${level}`, event => handleTextLevelShortcut(event, level));
- });
return null;
}
/* harmony default export */ const keyboard_shortcuts = (KeyboardShortcuts);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/enable-custom-fields.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-const {
- PreferenceBaseOption
-} = unlock(external_wp_preferences_namespaceObject.privateApis);
-function submitCustomFieldsForm() {
- const customFieldsForm = document.getElementById('toggle-custom-fields-form');
-
- // Ensure the referrer values is up to update with any
- customFieldsForm.querySelector('[name="_wp_http_referer"]').setAttribute('value', (0,external_wp_url_namespaceObject.getPathAndQueryString)(window.location.href));
- customFieldsForm.submit();
-}
-function CustomFieldsConfirmation({
- willEnable
-}) {
- const [isReloading, setIsReloading] = (0,external_wp_element_namespaceObject.useState)(false);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("p", {
- className: "edit-post-preferences-modal__custom-fields-confirmation-message"
- }, (0,external_wp_i18n_namespaceObject.__)('A page reload is required for this change. Make sure your content is saved before reloading.')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- className: "edit-post-preferences-modal__custom-fields-confirmation-button",
- variant: "secondary",
- isBusy: isReloading,
- disabled: isReloading,
- onClick: () => {
- setIsReloading(true);
- submitCustomFieldsForm();
- }
- }, willEnable ? (0,external_wp_i18n_namespaceObject.__)('Show & Reload Page') : (0,external_wp_i18n_namespaceObject.__)('Hide & Reload Page')));
-}
-function EnableCustomFieldsOption({
- label,
- areCustomFieldsEnabled
-}) {
- const [isChecked, setIsChecked] = (0,external_wp_element_namespaceObject.useState)(areCustomFieldsEnabled);
- return (0,external_React_namespaceObject.createElement)(PreferenceBaseOption, {
- label: label,
- isChecked: isChecked,
- onChange: setIsChecked
- }, isChecked !== areCustomFieldsEnabled && (0,external_React_namespaceObject.createElement)(CustomFieldsConfirmation, {
- willEnable: isChecked
- }));
-}
-/* harmony default export */ const enable_custom_fields = ((0,external_wp_data_namespaceObject.withSelect)(select => ({
- areCustomFieldsEnabled: !!select(external_wp_editor_namespaceObject.store).getEditorSettings().enableCustomFields
-}))(EnableCustomFieldsOption));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/enable-panel.js
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-const {
- PreferenceBaseOption: enable_panel_PreferenceBaseOption
-} = unlock(external_wp_preferences_namespaceObject.privateApis);
-/* harmony default export */ const enable_panel = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_data_namespaceObject.withSelect)((select, {
- panelName
-}) => {
- const {
- isEditorPanelEnabled,
- isEditorPanelRemoved
- } = select(external_wp_editor_namespaceObject.store);
- return {
- isRemoved: isEditorPanelRemoved(panelName),
- isChecked: isEditorPanelEnabled(panelName)
- };
-}), (0,external_wp_compose_namespaceObject.ifCondition)(({
- isRemoved
-}) => !isRemoved), (0,external_wp_data_namespaceObject.withDispatch)((dispatch, {
- panelName
-}) => ({
- onChange: () => dispatch(external_wp_editor_namespaceObject.store).toggleEditorPanelEnabled(panelName)
-})))(enable_panel_PreferenceBaseOption));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/meta-boxes-section.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/init-pattern-modal/index.js
/**
* WordPress dependencies
*/
@@ -4026,170 +1593,16 @@ const {
-/**
- * Internal dependencies
- */
-
-
-
-
-const {
- PreferencesModalSection
-} = unlock(external_wp_preferences_namespaceObject.privateApis);
-function MetaBoxesSection({
- areCustomFieldsRegistered,
- metaBoxes,
- ...sectionProps
-}) {
- // The 'Custom Fields' meta box is a special case that we handle separately.
- const thirdPartyMetaBoxes = metaBoxes.filter(({
- id
- }) => id !== 'postcustom');
- if (!areCustomFieldsRegistered && thirdPartyMetaBoxes.length === 0) {
- return null;
- }
- return (0,external_React_namespaceObject.createElement)(PreferencesModalSection, {
- ...sectionProps
- }, areCustomFieldsRegistered && (0,external_React_namespaceObject.createElement)(enable_custom_fields, {
- label: (0,external_wp_i18n_namespaceObject.__)('Custom fields')
- }), thirdPartyMetaBoxes.map(({
- id,
- title
- }) => (0,external_React_namespaceObject.createElement)(enable_panel, {
- key: id,
- label: title,
- panelName: `meta-box-${id}`
- })));
-}
-/* harmony default export */ const meta_boxes_section = ((0,external_wp_data_namespaceObject.withSelect)(select => {
- const {
- getEditorSettings
- } = select(external_wp_editor_namespaceObject.store);
- const {
- getAllMetaBoxes
- } = select(store_store);
- return {
- // This setting should not live in the block editor's store.
- areCustomFieldsRegistered: getEditorSettings().enableCustomFields !== undefined,
- metaBoxes: getAllMetaBoxes()
- };
-})(MetaBoxesSection));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/enable-publish-sidebar.js
-/**
- * WordPress dependencies
- */
-
-
-
-
/**
* Internal dependencies
*/
-const {
- PreferenceBaseOption: enable_publish_sidebar_PreferenceBaseOption
-} = unlock(external_wp_preferences_namespaceObject.privateApis);
-/* harmony default export */ const enable_publish_sidebar = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_data_namespaceObject.withSelect)(select => ({
- isChecked: select(external_wp_editor_namespaceObject.store).isPublishSidebarEnabled()
-})), (0,external_wp_data_namespaceObject.withDispatch)(dispatch => {
- const {
- enablePublishSidebar,
- disablePublishSidebar
- } = dispatch(external_wp_editor_namespaceObject.store);
- return {
- onChange: isEnabled => isEnabled ? enablePublishSidebar() : disablePublishSidebar()
- };
-}),
-// In < medium viewports we override this option and always show the publish sidebar.
-// See the edit-post's header component for the specific logic.
-(0,external_wp_viewport_namespaceObject.ifViewportMatches)('medium'))(enable_publish_sidebar_PreferenceBaseOption));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-const {
- PreferencesModalSection: preferences_modal_PreferencesModalSection,
- PreferenceToggleControl
-} = unlock(external_wp_preferences_namespaceObject.privateApis);
-const {
- PreferencesModal
-} = unlock(external_wp_editor_namespaceObject.privateApis);
-const PREFERENCES_MODAL_NAME = 'edit-post/preferences';
-function EditPostPreferencesModal() {
- const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
- const {
- closeModal
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- const {
- isModalActive
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const modalActive = select(store).isModalActive(PREFERENCES_MODAL_NAME);
- return {
- isModalActive: modalActive
- };
- }, []);
- const extraSections = {
- general: (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, isLargeViewport && (0,external_React_namespaceObject.createElement)(preferences_modal_PreferencesModalSection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Publishing')
- }, (0,external_React_namespaceObject.createElement)(enable_publish_sidebar, {
- help: (0,external_wp_i18n_namespaceObject.__)('Review settings, such as visibility and tags.'),
- label: (0,external_wp_i18n_namespaceObject.__)('Enable pre-publish checks')
- })), (0,external_React_namespaceObject.createElement)(meta_boxes_section, {
- title: (0,external_wp_i18n_namespaceObject.__)('Advanced')
- })),
- appearance: (0,external_React_namespaceObject.createElement)(PreferenceToggleControl, {
- scope: "core/edit-post",
- featureName: "themeStyles",
- help: (0,external_wp_i18n_namespaceObject.__)('Make the editor look like your theme.'),
- label: (0,external_wp_i18n_namespaceObject.__)('Use theme styles')
- })
- };
- if (!isModalActive) {
- return null;
- }
- return (0,external_React_namespaceObject.createElement)(PreferencesModal, {
- extraSections: extraSections,
- isActive: isModalActive,
- onClose: closeModal
- });
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/init-pattern-modal/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
const {
ReusableBlocksRenameHint
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
@@ -4223,48 +1636,55 @@ function InitPatternModal() {
if (postType !== 'wp_block' || !isNewPost) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, isModalOpen && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
- title: (0,external_wp_i18n_namespaceObject.__)('Create pattern'),
- onRequestClose: () => {
- setIsModalOpen(false);
- },
- overlayClassName: "reusable-blocks-menu-items__convert-modal"
- }, (0,external_React_namespaceObject.createElement)("form", {
- onSubmit: event => {
- event.preventDefault();
- setIsModalOpen(false);
- editPost({
- title,
- meta: {
- wp_pattern_sync_status: syncType
- }
- });
- }
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "5"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Name'),
- value: title,
- onChange: setTitle,
- placeholder: (0,external_wp_i18n_namespaceObject.__)('My pattern'),
- className: "patterns-create-modal__name-input",
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true
- }), (0,external_React_namespaceObject.createElement)(ReusableBlocksRenameHint, null), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'Option that makes an individual pattern synchronized'),
- help: (0,external_wp_i18n_namespaceObject.__)('Sync this pattern across multiple locations.'),
- checked: !syncType,
- onChange: () => {
- setSyncType(!syncType ? 'unsynced' : undefined);
- }
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- type: "submit",
- disabled: !title,
- __experimentalIsFocusable: true
- }, (0,external_wp_i18n_namespaceObject.__)('Create')))))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: isModalOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Create pattern'),
+ onRequestClose: () => {
+ setIsModalOpen(false);
+ },
+ overlayClassName: "reusable-blocks-menu-items__convert-modal",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ onSubmit: event => {
+ event.preventDefault();
+ setIsModalOpen(false);
+ editPost({
+ title,
+ meta: {
+ wp_pattern_sync_status: syncType
+ }
+ });
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "5",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Name'),
+ value: title,
+ onChange: setTitle,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('My pattern'),
+ className: "patterns-create-modal__name-input",
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ReusableBlocksRenameHint, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'pattern (singular)'),
+ help: (0,external_wp_i18n_namespaceObject.__)('Sync this pattern across multiple locations.'),
+ checked: !syncType,
+ onChange: () => {
+ setSyncType(!syncType ? 'unsynced' : undefined);
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ type: "submit",
+ disabled: !title,
+ __experimentalIsFocusable: true,
+ children: (0,external_wp_i18n_namespaceObject.__)('Create')
+ })
+ })]
+ })
+ })
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/browser-url/index.js
@@ -4389,1036 +1809,7 @@ class BrowserURL extends external_wp_element_namespaceObject.Component {
};
})(BrowserURL));
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/next.js
-
-/**
- * WordPress dependencies
- */
-
-const next = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"
-}));
-/* harmony default export */ const library_next = (next);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/previous.js
-
-/**
- * WordPress dependencies
- */
-
-const previous = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"
-}));
-/* harmony default export */ const library_previous = (previous);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/wordpress.js
-
-/**
- * WordPress dependencies
- */
-
-const wordpress = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "-2 -2 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"
-}));
-/* harmony default export */ const library_wordpress = (wordpress);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/fullscreen-mode-close/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-function FullscreenModeClose({
- showTooltip,
- icon,
- href,
- initialPost
-}) {
- var _postType$labels$view;
- const {
- isActive,
- isRequestingSiteIcon,
- postType,
- siteIconUrl
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getCurrentPostType
- } = select(external_wp_editor_namespaceObject.store);
- const {
- isFeatureActive
- } = select(store_store);
- const {
- getEntityRecord,
- getPostType,
- isResolving
- } = select(external_wp_coreData_namespaceObject.store);
- const siteData = getEntityRecord('root', '__unstableBase', undefined) || {};
- const _postType = initialPost?.type || getCurrentPostType();
- return {
- isActive: isFeatureActive('fullscreenMode'),
- isRequestingSiteIcon: isResolving('getEntityRecord', ['root', '__unstableBase', undefined]),
- postType: getPostType(_postType),
- siteIconUrl: siteData.site_icon_url
- };
- }, []);
- const disableMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
- if (!isActive || !postType) {
- return null;
- }
- let buttonIcon = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Icon, {
- size: "36px",
- icon: library_wordpress
- });
- const effect = {
- expand: {
- scale: 1.25,
- transition: {
- type: 'tween',
- duration: '0.3'
- }
- }
- };
- if (siteIconUrl) {
- buttonIcon = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__unstableMotion.img, {
- variants: !disableMotion && effect,
- alt: (0,external_wp_i18n_namespaceObject.__)('Site Icon'),
- className: "edit-post-fullscreen-mode-close_site-icon",
- src: siteIconUrl
- });
- }
- if (isRequestingSiteIcon) {
- buttonIcon = null;
- }
-
- // Override default icon if custom icon is provided via props.
- if (icon) {
- buttonIcon = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Icon, {
- size: "36px",
- icon: icon
- });
- }
- const classes = classnames_default()({
- 'edit-post-fullscreen-mode-close': true,
- 'has-icon': siteIconUrl
- });
- const buttonHref = href !== null && href !== void 0 ? href : (0,external_wp_url_namespaceObject.addQueryArgs)('edit.php', {
- post_type: postType.slug
- });
- const buttonLabel = (_postType$labels$view = postType?.labels?.view_items) !== null && _postType$labels$view !== void 0 ? _postType$labels$view : (0,external_wp_i18n_namespaceObject.__)('Back');
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- whileHover: "expand"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- className: classes,
- href: buttonHref,
- label: buttonLabel,
- showTooltip: showTooltip
- }, buttonIcon));
-}
-/* harmony default export */ const fullscreen_mode_close = (FullscreenModeClose);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/mode-switcher/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-/**
- * Set of available mode options.
- *
- * @type {Array}
- */
-const MODES = [{
- value: 'visual',
- label: (0,external_wp_i18n_namespaceObject.__)('Visual editor')
-}, {
- value: 'text',
- label: (0,external_wp_i18n_namespaceObject.__)('Code editor')
-}];
-function ModeSwitcher() {
- const {
- shortcut,
- isRichEditingEnabled,
- isCodeEditingEnabled,
- mode
- } = (0,external_wp_data_namespaceObject.useSelect)(select => ({
- shortcut: select(external_wp_keyboardShortcuts_namespaceObject.store).getShortcutRepresentation('core/edit-post/toggle-mode'),
- isRichEditingEnabled: select(external_wp_editor_namespaceObject.store).getEditorSettings().richEditingEnabled,
- isCodeEditingEnabled: select(external_wp_editor_namespaceObject.store).getEditorSettings().codeEditingEnabled,
- mode: select(store_store).getEditorMode()
- }), []);
- const {
- switchEditorMode
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- let selectedMode = mode;
- if (!isRichEditingEnabled && mode === 'visual') {
- selectedMode = 'text';
- }
- if (!isCodeEditingEnabled && mode === 'text') {
- selectedMode = 'visual';
- }
- const choices = MODES.map(choice => {
- if (!isCodeEditingEnabled && choice.value === 'text') {
- choice = {
- ...choice,
- disabled: true
- };
- }
- if (!isRichEditingEnabled && choice.value === 'visual') {
- choice = {
- ...choice,
- disabled: true,
- info: (0,external_wp_i18n_namespaceObject.__)('You can enable the visual editor in your profile settings.')
- };
- }
- if (choice.value !== selectedMode && !choice.disabled) {
- return {
- ...choice,
- shortcut
- };
- }
- return choice;
- });
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Editor')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItemsChoice, {
- choices: choices,
- value: selectedMode,
- onSelect: switchEditorMode
- }));
-}
-/* harmony default export */ const mode_switcher = (ModeSwitcher);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/preferences-menu-item/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-function PreferencesMenuItem() {
- const {
- openModal
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- openModal(PREFERENCES_MODAL_NAME);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Preferences'));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/writing-menu/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-function WritingMenu() {
- const {
- set: setPreference
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
- const {
- toggleDistractionFree
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const turnOffDistractionFree = () => {
- setPreference('core', 'distractionFree', false);
- };
- const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
- if (!isLargeViewport) {
- return null;
- }
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject._x)('View', 'noun')
- }, (0,external_React_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
- scope: "core",
- name: "fixedToolbar",
- onToggle: turnOffDistractionFree,
- label: (0,external_wp_i18n_namespaceObject.__)('Top toolbar'),
- info: (0,external_wp_i18n_namespaceObject.__)('Access all block and document tools in a single place'),
- messageActivated: (0,external_wp_i18n_namespaceObject.__)('Top toolbar activated'),
- messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Top toolbar deactivated')
- }), (0,external_React_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
- scope: "core",
- name: "distractionFree",
- handleToggling: false,
- onToggle: toggleDistractionFree,
- label: (0,external_wp_i18n_namespaceObject.__)('Distraction free'),
- info: (0,external_wp_i18n_namespaceObject.__)('Write with calmness'),
- messageActivated: (0,external_wp_i18n_namespaceObject.__)('Distraction free mode activated'),
- messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Distraction free mode deactivated'),
- shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primaryShift('\\')
- }), (0,external_React_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
- scope: "core",
- name: "focusMode",
- label: (0,external_wp_i18n_namespaceObject.__)('Spotlight mode'),
- info: (0,external_wp_i18n_namespaceObject.__)('Focus on one block at a time'),
- messageActivated: (0,external_wp_i18n_namespaceObject.__)('Spotlight mode activated'),
- messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Spotlight mode deactivated')
- }), (0,external_React_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
- scope: "core/edit-post",
- name: "fullscreenMode",
- label: (0,external_wp_i18n_namespaceObject.__)('Fullscreen mode'),
- info: (0,external_wp_i18n_namespaceObject.__)('Show and hide the admin user interface'),
- messageActivated: (0,external_wp_i18n_namespaceObject.__)('Fullscreen mode activated'),
- messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Fullscreen mode deactivated'),
- shortcut: external_wp_keycodes_namespaceObject.displayShortcut.secondary('f')
- }));
-}
-/* harmony default export */ const writing_menu = (WritingMenu);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/more-menu/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-const MoreMenu = ({
- showIconLabels
-}) => {
- const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('large');
- return (0,external_React_namespaceObject.createElement)(MoreMenuDropdown, {
- toggleProps: {
- showTooltip: !showIconLabels,
- ...(showIconLabels && {
- variant: 'tertiary'
- }),
- size: 'compact'
- }
- }, ({
- onClose
- }) => (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, showIconLabels && !isLargeViewport && (0,external_React_namespaceObject.createElement)(pinned_items.Slot, {
- className: showIconLabels && 'show-icon-labels',
- scope: "core/edit-post"
- }), (0,external_React_namespaceObject.createElement)(writing_menu, null), (0,external_React_namespaceObject.createElement)(mode_switcher, null), (0,external_React_namespaceObject.createElement)(action_item.Slot, {
- name: "core/edit-post/plugin-more-menu",
- label: (0,external_wp_i18n_namespaceObject.__)('Plugins'),
- as: external_wp_components_namespaceObject.MenuGroup,
- fillProps: {
- onClick: onClose
- }
- }), (0,external_React_namespaceObject.createElement)(tools_more_menu_group.Slot, {
- fillProps: {
- onClose
- }
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_namespaceObject.createElement)(PreferencesMenuItem, null))));
-};
-/* harmony default export */ const more_menu = (MoreMenu);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/post-publish-button-or-toggle.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-/**
- * Internal dependencies
- */
-
-function PostPublishButtonOrToggle({
- forceIsDirty,
- hasPublishAction,
- isBeingScheduled,
- isPending,
- isPublished,
- isPublishSidebarEnabled,
- isPublishSidebarOpened,
- isScheduled,
- togglePublishSidebar,
- setEntitiesSavedStatesCallback
-}) {
- const IS_TOGGLE = 'toggle';
- const IS_BUTTON = 'button';
- const isSmallerThanMediumViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
- let component;
-
- /**
- * Conditions to show a BUTTON (publish directly) or a TOGGLE (open publish sidebar):
- *
- * 1) We want to show a BUTTON when the post status is at the _final stage_
- * for a particular role (see https://wordpress.org/documentation/article/post-status/):
- *
- * - is published
- * - is scheduled to be published
- * - is pending and can't be published (but only for viewports >= medium).
- * Originally, we considered showing a button for pending posts that couldn't be published
- * (for example, for an author with the contributor role). Some languages can have
- * long translations for "Submit for review", so given the lack of UI real estate available
- * we decided to take into account the viewport in that case.
- * See: https://github.com/WordPress/gutenberg/issues/10475
- *
- * 2) Then, in small viewports, we'll show a TOGGLE.
- *
- * 3) Finally, we'll use the publish sidebar status to decide:
- *
- * - if it is enabled, we show a TOGGLE
- * - if it is disabled, we show a BUTTON
- */
- if (isPublished || isScheduled && isBeingScheduled || isPending && !hasPublishAction && !isSmallerThanMediumViewport) {
- component = IS_BUTTON;
- } else if (isSmallerThanMediumViewport) {
- component = IS_TOGGLE;
- } else if (isPublishSidebarEnabled) {
- component = IS_TOGGLE;
- } else {
- component = IS_BUTTON;
- }
- return (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostPublishButton, {
- forceIsDirty: forceIsDirty,
- isOpen: isPublishSidebarOpened,
- isToggle: component === IS_TOGGLE,
- onToggle: togglePublishSidebar,
- setEntitiesSavedStatesCallback: setEntitiesSavedStatesCallback
- });
-}
-/* harmony default export */ const post_publish_button_or_toggle = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_data_namespaceObject.withSelect)(select => {
- var _select$getCurrentPos;
- return {
- hasPublishAction: (_select$getCurrentPos = select(external_wp_editor_namespaceObject.store).getCurrentPost()?._links?.['wp:action-publish']) !== null && _select$getCurrentPos !== void 0 ? _select$getCurrentPos : false,
- isBeingScheduled: select(external_wp_editor_namespaceObject.store).isEditedPostBeingScheduled(),
- isPending: select(external_wp_editor_namespaceObject.store).isCurrentPostPending(),
- isPublished: select(external_wp_editor_namespaceObject.store).isCurrentPostPublished(),
- isPublishSidebarEnabled: select(external_wp_editor_namespaceObject.store).isPublishSidebarEnabled(),
- isPublishSidebarOpened: select(store_store).isPublishSidebarOpened(),
- isScheduled: select(external_wp_editor_namespaceObject.store).isCurrentPostScheduled()
- };
-}), (0,external_wp_data_namespaceObject.withDispatch)(dispatch => {
- const {
- togglePublishSidebar
- } = dispatch(store_store);
- return {
- togglePublishSidebar
- };
-}))(PostPublishButtonOrToggle));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/main-dashboard-button/index.js
-
-/**
- * WordPress dependencies
- */
-
-const slotName = '__experimentalMainDashboardButton';
-const {
- Fill,
- Slot: MainDashboardButtonSlot
-} = (0,external_wp_components_namespaceObject.createSlotFill)(slotName);
-const MainDashboardButton = Fill;
-const main_dashboard_button_Slot = ({
- children
-}) => {
- const fills = (0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(slotName);
- const hasFills = Boolean(fills && fills.length);
- if (!hasFills) {
- return children;
- }
- return (0,external_React_namespaceObject.createElement)(MainDashboardButtonSlot, {
- bubblesVirtually: true
- });
-};
-MainDashboardButton.Slot = main_dashboard_button_Slot;
-/* harmony default export */ const main_dashboard_button = (MainDashboardButton);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-const {
- DocumentTools,
- PostViewLink,
- PreviewDropdown
-} = unlock(external_wp_editor_namespaceObject.privateApis);
-const slideY = {
- hidden: {
- y: '-50px'
- },
- distractionFreeInactive: {
- y: 0
- },
- hover: {
- y: 0,
- transition: {
- type: 'tween',
- delay: 0.2
- }
- }
-};
-const slideX = {
- hidden: {
- x: '-100%'
- },
- distractionFreeInactive: {
- x: 0
- },
- hover: {
- x: 0,
- transition: {
- type: 'tween',
- delay: 0.2
- }
- }
-};
-function Header({
- setEntitiesSavedStatesCallback,
- initialPost
-}) {
- const isWideViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('large');
- const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
- const blockToolbarRef = (0,external_wp_element_namespaceObject.useRef)();
- const {
- isTextEditor,
- blockSelectionStart,
- hasActiveMetaboxes,
- hasFixedToolbar,
- isPublishSidebarOpened,
- showIconLabels,
- hasHistory
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- get: getPreference
- } = select(external_wp_preferences_namespaceObject.store);
- const {
- getEditorMode
- } = select(store_store);
- return {
- isTextEditor: getEditorMode() === 'text',
- blockSelectionStart: select(external_wp_blockEditor_namespaceObject.store).getBlockSelectionStart(),
- hasActiveMetaboxes: select(store_store).hasMetaBoxes(),
- hasHistory: !!select(external_wp_editor_namespaceObject.store).getEditorSettings().onNavigateToPreviousEntityRecord,
- isPublishSidebarOpened: select(store_store).isPublishSidebarOpened(),
- hasFixedToolbar: getPreference('core', 'fixedToolbar'),
- showIconLabels: getPreference('core', 'showIconLabels')
- };
- }, []);
- const [isBlockToolsCollapsed, setIsBlockToolsCollapsed] = (0,external_wp_element_namespaceObject.useState)(true);
- const hasBlockSelection = !!blockSelectionStart;
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- // If we have a new block selection, show the block tools
- if (blockSelectionStart) {
- setIsBlockToolsCollapsed(false);
- }
- }, [blockSelectionStart]);
- return (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-post-header"
- }, (0,external_React_namespaceObject.createElement)(main_dashboard_button.Slot, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- variants: slideX,
- transition: {
- type: 'tween',
- delay: 0.8
- }
- }, (0,external_React_namespaceObject.createElement)(fullscreen_mode_close, {
- showTooltip: true,
- initialPost: initialPost
- }))), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- variants: slideY,
- transition: {
- type: 'tween',
- delay: 0.8
- },
- className: "edit-post-header__toolbar"
- }, (0,external_React_namespaceObject.createElement)(DocumentTools, {
- disableBlockTools: isTextEditor
- }), hasFixedToolbar && isLargeViewport && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("div", {
- className: classnames_default()('selected-block-tools-wrapper', {
- 'is-collapsed': isBlockToolsCollapsed || !hasBlockSelection
- })
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockToolbar, {
- hideDragHandle: true
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Popover.Slot, {
- ref: blockToolbarRef,
- name: "block-toolbar"
- }), hasBlockSelection && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- className: "edit-post-header__block-tools-toggle",
- icon: isBlockToolsCollapsed ? library_next : library_previous,
- onClick: () => {
- setIsBlockToolsCollapsed(collapsed => !collapsed);
- },
- label: isBlockToolsCollapsed ? (0,external_wp_i18n_namespaceObject.__)('Show block tools') : (0,external_wp_i18n_namespaceObject.__)('Hide block tools')
- })), (0,external_React_namespaceObject.createElement)("div", {
- className: classnames_default()('edit-post-header__center', {
- 'is-collapsed': hasHistory && hasBlockSelection && !isBlockToolsCollapsed && hasFixedToolbar && isLargeViewport
- })
- }, hasHistory && (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.DocumentBar, null))), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- variants: slideY,
- transition: {
- type: 'tween',
- delay: 0.8
- },
- className: "edit-post-header__settings"
- }, !isPublishSidebarOpened &&
- // This button isn't completely hidden by the publish sidebar.
- // We can't hide the whole toolbar when the publish sidebar is open because
- // we want to prevent mounting/unmounting the PostPublishButtonOrToggle DOM node.
- // We track that DOM node to return focus to the PostPublishButtonOrToggle
- // when the publish sidebar has been closed.
- (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostSavedState, {
- forceIsDirty: hasActiveMetaboxes
- }), (0,external_React_namespaceObject.createElement)(PreviewDropdown, {
- forceIsAutosaveable: hasActiveMetaboxes
- }), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostPreviewButton, {
- className: "edit-post-header__post-preview-button",
- forceIsAutosaveable: hasActiveMetaboxes
- }), (0,external_React_namespaceObject.createElement)(PostViewLink, null), (0,external_React_namespaceObject.createElement)(post_publish_button_or_toggle, {
- forceIsDirty: hasActiveMetaboxes,
- setEntitiesSavedStatesCallback: setEntitiesSavedStatesCallback
- }), (isWideViewport || !showIconLabels) && (0,external_React_namespaceObject.createElement)(pinned_items.Slot, {
- scope: "core/edit-post"
- }), (0,external_React_namespaceObject.createElement)(more_menu, {
- showIconLabels: showIconLabels
- })));
-}
-/* harmony default export */ const header = (Header);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/drawer-left.js
-
-/**
- * WordPress dependencies
- */
-
-const drawerLeft = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- width: "24",
- height: "24",
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"
-}));
-/* harmony default export */ const drawer_left = (drawerLeft);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/drawer-right.js
-
-/**
- * WordPress dependencies
- */
-
-const drawerRight = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- width: "24",
- height: "24",
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"
-}));
-/* harmony default export */ const drawer_right = (drawerRight);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/settings-header/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-const {
- Tabs
-} = unlock(external_wp_components_namespaceObject.privateApis);
-const SettingsHeader = (_, ref) => {
- const {
- documentLabel
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getPostTypeLabel
- } = select(external_wp_editor_namespaceObject.store);
- return {
- // translators: Default label for the Document sidebar tab, not selected.
- documentLabel: getPostTypeLabel() || (0,external_wp_i18n_namespaceObject._x)('Document', 'noun')
- };
- }, []);
- return (0,external_React_namespaceObject.createElement)(Tabs.TabList, {
- ref: ref
- }, (0,external_React_namespaceObject.createElement)(Tabs.Tab, {
- tabId: sidebars.document
- // Used for focus management in the SettingsSidebar component.
- ,
- "data-tab-id": sidebars.document
- }, documentLabel), (0,external_React_namespaceObject.createElement)(Tabs.Tab, {
- tabId: sidebars.block
- // Used for focus management in the SettingsSidebar component.
- ,
- "data-tab-id": sidebars.block
- }, (0,external_wp_i18n_namespaceObject.__)('Block')));
-};
-/* harmony default export */ const settings_header = ((0,external_wp_element_namespaceObject.forwardRef)(SettingsHeader));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-visibility/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-const {
- PostPanelRow
-} = unlock(external_wp_editor_namespaceObject.privateApis);
-function PostVisibility() {
- // Use internal state instead of a ref to make sure that the component
- // re-renders when the popover's anchor updates.
- const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
- // Memoize popoverProps to avoid returning a new object every time.
- const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
- // Anchor the popover to the middle of the entire row so that it doesn't
- // move around when the label changes.
- anchor: popoverAnchor,
- placement: 'bottom-end'
- }), [popoverAnchor]);
- return (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostVisibilityCheck, {
- render: ({
- canEdit
- }) => (0,external_React_namespaceObject.createElement)(PostPanelRow, {
- label: (0,external_wp_i18n_namespaceObject.__)('Visibility'),
- ref: setPopoverAnchor
- }, !canEdit && (0,external_React_namespaceObject.createElement)("span", null, (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostVisibilityLabel, null)), canEdit && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Dropdown, {
- contentClassName: "edit-post-post-visibility__dialog",
- popoverProps: popoverProps,
- focusOnMount: true,
- renderToggle: ({
- isOpen,
- onToggle
- }) => (0,external_React_namespaceObject.createElement)(PostVisibilityToggle, {
- isOpen: isOpen,
- onClick: onToggle
- }),
- renderContent: ({
- onClose
- }) => (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostVisibility, {
- onClose: onClose
- })
- }))
- });
-}
-function PostVisibilityToggle({
- isOpen,
- onClick
-}) {
- const label = (0,external_wp_editor_namespaceObject.usePostVisibilityLabel)();
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- className: "edit-post-post-visibility__toggle",
- variant: "tertiary",
- "aria-expanded": isOpen
- // translators: %s: Current post visibility.
- ,
- "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Select visibility: %s'), label),
- onClick: onClick
- }, label);
-}
-/* harmony default export */ const post_visibility = (PostVisibility);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-trash/index.js
-
-/**
- * WordPress dependencies
- */
-
-function PostTrash() {
- return (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostTrashCheck, null, (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostTrash, null));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-sticky/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-/**
- * Internal dependencies
- */
-
-const {
- PostPanelRow: post_sticky_PostPanelRow
-} = unlock(external_wp_editor_namespaceObject.privateApis);
-function PostSticky() {
- return (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostStickyCheck, null, (0,external_React_namespaceObject.createElement)(post_sticky_PostPanelRow, null, (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostSticky, null)));
-}
-/* harmony default export */ const post_sticky = (PostSticky);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-slug/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-function PostSlug() {
- return (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostSlugCheck, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelRow, {
- className: "edit-post-post-slug"
- }, (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostSlug, null)));
-}
-/* harmony default export */ const post_slug = (PostSlug);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-format/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-function PostFormat() {
- return (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostFormatCheck, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelRow, {
- className: "edit-post-post-format"
- }, (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostFormat, null)));
-}
-/* harmony default export */ const post_format = (PostFormat);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-pending-status/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-/**
- * Internal dependencies
- */
-
-const {
- PostPanelRow: post_pending_status_PostPanelRow
-} = unlock(external_wp_editor_namespaceObject.privateApis);
-function PostPendingStatus() {
- return (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostPendingStatusCheck, null, (0,external_React_namespaceObject.createElement)(post_pending_status_PostPanelRow, null, (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostPendingStatus, null)));
-}
-/* harmony default export */ const post_pending_status = (PostPendingStatus);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-status-info/index.js
-
-/**
- * Defines as extensibility slot for the Summary panel.
- */
-
-/**
- * WordPress dependencies
- */
-
-const {
- Fill: plugin_post_status_info_Fill,
- Slot: plugin_post_status_info_Slot
-} = (0,external_wp_components_namespaceObject.createSlotFill)('PluginPostStatusInfo');
-
-/**
- * Renders a row in the Summary panel of the Document sidebar.
- * It should be noted that this is named and implemented around the function it serves
- * and not its location, which may change in future iterations.
- *
- * @param {Object} props Component properties.
- * @param {string} [props.className] An optional class name added to the row.
- * @param {Element} props.children Children to be rendered.
- *
- * @example
- * ```js
- * // Using ES5 syntax
- * var __ = wp.i18n.__;
- * var PluginPostStatusInfo = wp.editPost.PluginPostStatusInfo;
- *
- * function MyPluginPostStatusInfo() {
- * return React.createElement(
- * PluginPostStatusInfo,
- * {
- * className: 'my-plugin-post-status-info',
- * },
- * __( 'My post status info' )
- * )
- * }
- * ```
- *
- * @example
- * ```jsx
- * // Using ESNext syntax
- * import { __ } from '@wordpress/i18n';
- * import { PluginPostStatusInfo } from '@wordpress/edit-post';
- *
- * const MyPluginPostStatusInfo = () => (
- * <PluginPostStatusInfo
- * className="my-plugin-post-status-info"
- * >
- * { __( 'My post status info' ) }
- * </PluginPostStatusInfo>
- * );
- * ```
- *
- * @return {Component} The component to be rendered.
- */
-const PluginPostStatusInfo = ({
- children,
- className
-}) => (0,external_React_namespaceObject.createElement)(plugin_post_status_info_Fill, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelRow, {
- className: className
-}, children));
-PluginPostStatusInfo.Slot = plugin_post_status_info_Slot;
-/* harmony default export */ const plugin_post_status_info = (PluginPostStatusInfo);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-status/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-
-
-/**
- * Module Constants
- */
-const PANEL_NAME = 'post-status';
-function PostStatus() {
- const {
- isOpened,
- isRemoved
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- // We use isEditorPanelRemoved to hide the panel if it was programatically removed. We do
- // not use isEditorPanelEnabled since this panel should not be disabled through the UI.
- const {
- isEditorPanelRemoved,
- isEditorPanelOpened
- } = select(external_wp_editor_namespaceObject.store);
- return {
- isRemoved: isEditorPanelRemoved(PANEL_NAME),
- isOpened: isEditorPanelOpened(PANEL_NAME)
- };
- }, []);
- const {
- toggleEditorPanelOpened
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_editor_namespaceObject.store);
- if (isRemoved) {
- return null;
- }
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- className: "edit-post-post-status",
- title: (0,external_wp_i18n_namespaceObject.__)('Summary'),
- opened: isOpened,
- onToggle: () => toggleEditorPanelOpened(PANEL_NAME)
- }, (0,external_React_namespaceObject.createElement)(plugin_post_status_info.Slot, null, fills => (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(post_visibility, null), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostSchedulePanel, null), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostTemplatePanel, null), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostURLPanel, null), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostSyncStatus, null), (0,external_React_namespaceObject.createElement)(post_sticky, null), (0,external_React_namespaceObject.createElement)(post_pending_status, null), (0,external_React_namespaceObject.createElement)(post_format, null), (0,external_React_namespaceObject.createElement)(post_slug, null), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostAuthorPanel, null), fills, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- style: {
- marginTop: '16px'
- },
- spacing: 4,
- wrap: true
- }, (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostSwitchToDraftButton, null), (0,external_React_namespaceObject.createElement)(PostTrash, null)))));
-}
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/meta-boxes/meta-boxes-area/index.js
-
/**
* External dependencies
*/
@@ -5443,6 +1834,8 @@ function PostStatus() {
* @param {string} props.location metabox location.
* @return {Component} The component to be rendered.
*/
+
+
function MetaBoxesArea({
location
}) {
@@ -5460,19 +1853,20 @@ function MetaBoxesArea({
};
}, [location]);
const isSaving = (0,external_wp_data_namespaceObject.useSelect)(select => {
- return select(store_store).isSavingMetaBoxes();
+ return select(store).isSavingMetaBoxes();
}, []);
- const classes = classnames_default()('edit-post-meta-boxes-area', `is-${location}`, {
+ const classes = dist_clsx('edit-post-meta-boxes-area', `is-${location}`, {
'is-loading': isSaving
});
- return (0,external_React_namespaceObject.createElement)("div", {
- className: classes
- }, isSaving && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null), (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-post-meta-boxes-area__container",
- ref: container
- }), (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-post-meta-boxes-area__clear"
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: classes,
+ children: [isSaving && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-post-meta-boxes-area__container",
+ ref: container
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-post-meta-boxes-area__clear"
+ })]
+ });
}
/* harmony default export */ const meta_boxes_area = (MetaBoxesArea);
@@ -5518,7 +1912,6 @@ class MetaBoxVisibility extends external_wp_element_namespaceObject.Component {
}))(MetaBoxVisibility));
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/meta-boxes/index.js
-
/**
* WordPress dependencies
*/
@@ -5532,6 +1925,9 @@ class MetaBoxVisibility extends external_wp_element_namespaceObject.Component {
+
+
+
function MetaBoxes({
location
}) {
@@ -5547,7 +1943,7 @@ function MetaBoxes({
const {
getMetaBoxesPerLocation,
areMetaBoxesInitialized: _areMetaBoxesInitialized
- } = select(store_store);
+ } = select(store);
return {
metaBoxes: getMetaBoxesPerLocation(location),
areMetaBoxesInitialized: _areMetaBoxesInitialized(),
@@ -5561,27 +1957,26 @@ function MetaBoxes({
// one.
(0,external_wp_element_namespaceObject.useEffect)(() => {
if (isEditorReady && hasMetaBoxes && !areMetaBoxesInitialized) {
- registry.dispatch(store_store).initializeMetaBoxes();
+ registry.dispatch(store).initializeMetaBoxes();
}
}, [isEditorReady, hasMetaBoxes, areMetaBoxesInitialized]);
if (!areMetaBoxesInitialized) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (metaBoxes !== null && metaBoxes !== void 0 ? metaBoxes : []).map(({
- id
- }) => (0,external_React_namespaceObject.createElement)(meta_box_visibility, {
- key: id,
- id: id
- })), (0,external_React_namespaceObject.createElement)(meta_boxes_area, {
- location: location
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [(metaBoxes !== null && metaBoxes !== void 0 ? metaBoxes : []).map(({
+ id
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(meta_box_visibility, {
+ id: id
+ }, id)), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(meta_boxes_area, {
+ location: location
+ })]
+ });
}
-;// CONCATENATED MODULE: external ["wp","warning"]
-const external_wp_warning_namespaceObject = window["wp"]["warning"];
-var external_wp_warning_default = /*#__PURE__*/__webpack_require__.n(external_wp_warning_namespaceObject);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-document-setting-panel/index.js
-
+;// CONCATENATED MODULE: external ["wp","keycodes"]
+const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/more-menu/manage-patterns-menu-item.js
/**
* WordPress dependencies
*/
@@ -5591,116 +1986,50 @@ var external_wp_warning_default = /*#__PURE__*/__webpack_require__.n(external_wp
-/**
- * Internal dependencies
- */
+function ManagePatternsMenuItem() {
+ const url = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ canUser
+ } = select(external_wp_coreData_namespaceObject.store);
+ const defaultUrl = (0,external_wp_url_namespaceObject.addQueryArgs)('edit.php', {
+ post_type: 'wp_block'
+ });
+ const patternsUrl = (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', {
+ path: '/patterns'
+ });
-const {
- Fill: plugin_document_setting_panel_Fill,
- Slot: plugin_document_setting_panel_Slot
-} = (0,external_wp_components_namespaceObject.createSlotFill)('PluginDocumentSettingPanel');
-const {
- EnablePluginDocumentSettingPanelOption
-} = unlock(external_wp_editor_namespaceObject.privateApis);
+ // The site editor and templates both check whether the user has
+ // edit_theme_options capabilities. We can leverage that here and not
+ // display the manage patterns link if the user can't access it.
+ return canUser('create', 'templates') ? patternsUrl : defaultUrl;
+ }, []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ role: "menuitem",
+ href: url,
+ children: (0,external_wp_i18n_namespaceObject.__)('Manage patterns')
+ });
+}
+/* harmony default export */ const manage_patterns_menu_item = (ManagePatternsMenuItem);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/more-menu/welcome-guide-menu-item.js
/**
- * Renders items below the Status & Availability panel in the Document Sidebar.
- *
- * @param {Object} props Component properties.
- * @param {string} props.name Required. A machine-friendly name for the panel.
- * @param {string} [props.className] An optional class name added to the row.
- * @param {string} [props.title] The title of the panel
- * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
- * @param {Element} props.children Children to be rendered
- *
- * @example
- * ```js
- * // Using ES5 syntax
- * var el = React.createElement;
- * var __ = wp.i18n.__;
- * var registerPlugin = wp.plugins.registerPlugin;
- * var PluginDocumentSettingPanel = wp.editPost.PluginDocumentSettingPanel;
- *
- * function MyDocumentSettingPlugin() {
- * return el(
- * PluginDocumentSettingPanel,
- * {
- * className: 'my-document-setting-plugin',
- * title: 'My Panel',
- * name: 'my-panel',
- * },
- * __( 'My Document Setting Panel' )
- * );
- * }
- *
- * registerPlugin( 'my-document-setting-plugin', {
- * render: MyDocumentSettingPlugin
- * } );
- * ```
- *
- * @example
- * ```jsx
- * // Using ESNext syntax
- * import { registerPlugin } from '@wordpress/plugins';
- * import { PluginDocumentSettingPanel } from '@wordpress/edit-post';
- *
- * const MyDocumentSettingTest = () => (
- * <PluginDocumentSettingPanel className="my-document-setting-plugin" title="My Panel" name="my-panel">
- * <p>My Document Setting Panel</p>
- * </PluginDocumentSettingPanel>
- * );
- *
- * registerPlugin( 'document-setting-test', { render: MyDocumentSettingTest } );
- * ```
- *
- * @return {Component} The component to be rendered.
+ * WordPress dependencies
*/
-const PluginDocumentSettingPanel = ({
- name,
- className,
- title,
- icon,
- children
-}) => {
- const {
- name: pluginName
- } = (0,external_wp_plugins_namespaceObject.usePluginContext)();
- const panelName = `${pluginName}/${name}`;
- const {
- opened,
- isEnabled
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- isEditorPanelOpened,
- isEditorPanelEnabled
- } = select(external_wp_editor_namespaceObject.store);
- return {
- opened: isEditorPanelOpened(panelName),
- isEnabled: isEditorPanelEnabled(panelName)
- };
- }, [panelName]);
- const {
- toggleEditorPanelOpened
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_editor_namespaceObject.store);
- if (undefined === name) {
- true ? external_wp_warning_default()('PluginDocumentSettingPanel requires a name property.') : 0;
- }
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(EnablePluginDocumentSettingPanelOption, {
- label: title,
- panelName: panelName
- }), (0,external_React_namespaceObject.createElement)(plugin_document_setting_panel_Fill, null, isEnabled && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- className: className,
- title: title,
- icon: icon,
- opened: opened,
- onToggle: () => toggleEditorPanelOpened(panelName)
- }, children)));
-};
-PluginDocumentSettingPanel.Slot = plugin_document_setting_panel_Slot;
-/* harmony default export */ const plugin_document_setting_panel = (PluginDocumentSettingPanel);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-sidebar/index.js
+
+
+
+function WelcomeGuideMenuItem() {
+ const isEditingTemplate = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_editor_namespaceObject.store).getCurrentPostType() === 'wp_template', []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
+ scope: "core/edit-post",
+ name: isEditingTemplate ? 'welcomeGuideTemplate' : 'welcomeGuide',
+ label: (0,external_wp_i18n_namespaceObject.__)('Welcome Guide')
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/enable-custom-fields.js
/**
* WordPress dependencies
*/
@@ -5710,172 +2039,161 @@ PluginDocumentSettingPanel.Slot = plugin_document_setting_panel_Slot;
+
+
/**
- * Renders a sidebar when activated. The contents within the `PluginSidebar` will appear as content within the sidebar.
- * It also automatically renders a corresponding `PluginSidebarMenuItem` component when `isPinnable` flag is set to `true`.
- * If you wish to display the sidebar, you can with use the `PluginSidebarMoreMenuItem` component or the `wp.data.dispatch` API:
- *
- * ```js
- * wp.data.dispatch( 'core/edit-post' ).openGeneralSidebar( 'plugin-name/sidebar-name' );
- * ```
- *
- * @see PluginSidebarMoreMenuItem
- *
- * @param {Object} props Element props.
- * @param {string} props.name A string identifying the sidebar. Must be unique for every sidebar registered within the scope of your plugin.
- * @param {string} [props.className] An optional class name added to the sidebar body.
- * @param {string} props.title Title displayed at the top of the sidebar.
- * @param {boolean} [props.isPinnable=true] Whether to allow to pin sidebar to the toolbar. When set to `true` it also automatically renders a corresponding menu item.
- * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
- *
- * @example
- * ```js
- * // Using ES5 syntax
- * var __ = wp.i18n.__;
- * var el = React.createElement;
- * var PanelBody = wp.components.PanelBody;
- * var PluginSidebar = wp.editPost.PluginSidebar;
- * var moreIcon = React.createElement( 'svg' ); //... svg element.
- *
- * function MyPluginSidebar() {
- * return el(
- * PluginSidebar,
- * {
- * name: 'my-sidebar',
- * title: 'My sidebar title',
- * icon: moreIcon,
- * },
- * el(
- * PanelBody,
- * {},
- * __( 'My sidebar content' )
- * )
- * );
- * }
- * ```
- *
- * @example
- * ```jsx
- * // Using ESNext syntax
- * import { __ } from '@wordpress/i18n';
- * import { PanelBody } from '@wordpress/components';
- * import { PluginSidebar } from '@wordpress/edit-post';
- * import { more } from '@wordpress/icons';
- *
- * const MyPluginSidebar = () => (
- * <PluginSidebar
- * name="my-sidebar"
- * title="My sidebar title"
- * icon={ more }
- * >
- * <PanelBody>
- * { __( 'My sidebar content' ) }
- * </PanelBody>
- * </PluginSidebar>
- * );
- * ```
- */
-function PluginSidebarEditPost({
- className,
- ...props
+ * Internal dependencies
+ */
+
+
+
+
+const {
+ PreferenceBaseOption
+} = unlock(external_wp_preferences_namespaceObject.privateApis);
+function submitCustomFieldsForm() {
+ const customFieldsForm = document.getElementById('toggle-custom-fields-form');
+
+ // Ensure the referrer values is up to update with any
+ customFieldsForm.querySelector('[name="_wp_http_referer"]').setAttribute('value', (0,external_wp_url_namespaceObject.getPathAndQueryString)(window.location.href));
+ customFieldsForm.submit();
+}
+function CustomFieldsConfirmation({
+ willEnable
}) {
- const {
- postTitle,
- shortcut
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- return {
- postTitle: select(external_wp_editor_namespaceObject.store).getEditedPostAttribute('title'),
- shortcut: select(external_wp_keyboardShortcuts_namespaceObject.store).getShortcutRepresentation('core/edit-post/toggle-sidebar')
- };
- }, []);
- return (0,external_React_namespaceObject.createElement)(complementary_area, {
- panelClassName: className,
- className: "edit-post-sidebar",
- smallScreenTitle: postTitle || (0,external_wp_i18n_namespaceObject.__)('(no title)'),
- scope: "core/edit-post",
- toggleShortcut: shortcut,
- ...props
+ const [isReloading, setIsReloading] = (0,external_wp_element_namespaceObject.useState)(false);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-post-preferences-modal__custom-fields-confirmation-message",
+ children: (0,external_wp_i18n_namespaceObject.__)('A page reload is required for this change. Make sure your content is saved before reloading.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "edit-post-preferences-modal__custom-fields-confirmation-button",
+ variant: "secondary",
+ isBusy: isReloading,
+ __experimentalIsFocusable: true,
+ disabled: isReloading,
+ onClick: () => {
+ setIsReloading(true);
+ submitCustomFieldsForm();
+ },
+ children: willEnable ? (0,external_wp_i18n_namespaceObject.__)('Show & Reload Page') : (0,external_wp_i18n_namespaceObject.__)('Hide & Reload Page')
+ })]
+ });
+}
+function EnableCustomFieldsOption({
+ label,
+ areCustomFieldsEnabled
+}) {
+ const [isChecked, setIsChecked] = (0,external_wp_element_namespaceObject.useState)(areCustomFieldsEnabled);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferenceBaseOption, {
+ label: label,
+ isChecked: isChecked,
+ onChange: setIsChecked,
+ children: isChecked !== areCustomFieldsEnabled && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomFieldsConfirmation, {
+ willEnable: isChecked
+ })
});
}
+/* harmony default export */ const enable_custom_fields = ((0,external_wp_data_namespaceObject.withSelect)(select => ({
+ areCustomFieldsEnabled: !!select(external_wp_editor_namespaceObject.store).getEditorSettings().enableCustomFields
+}))(EnableCustomFieldsOption));
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/enable-panel.js
/**
* WordPress dependencies
*/
-/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */
+
+
/**
- * 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
- * @param {import('react').ForwardedRef<HTMLElement>} ref The forwarded ref to the SVG element.
- *
- * @return {JSX.Element} Icon component
+ * Internal dependencies
*/
-function Icon({
- icon,
- size = 24,
- ...props
-}, ref) {
- return (0,external_wp_element_namespaceObject.cloneElement)(icon, {
- width: size,
- height: size,
- ...props,
- ref
- });
-}
-/* harmony default export */ const icon = ((0,external_wp_element_namespaceObject.forwardRef)(Icon));
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/layout.js
+const {
+ PreferenceBaseOption: enable_panel_PreferenceBaseOption
+} = unlock(external_wp_preferences_namespaceObject.privateApis);
+/* harmony default export */ const enable_panel = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_data_namespaceObject.withSelect)((select, {
+ panelName
+}) => {
+ const {
+ isEditorPanelEnabled,
+ isEditorPanelRemoved
+ } = select(external_wp_editor_namespaceObject.store);
+ return {
+ isRemoved: isEditorPanelRemoved(panelName),
+ isChecked: isEditorPanelEnabled(panelName)
+ };
+}), (0,external_wp_compose_namespaceObject.ifCondition)(({
+ isRemoved
+}) => !isRemoved), (0,external_wp_data_namespaceObject.withDispatch)((dispatch, {
+ panelName
+}) => ({
+ onChange: () => dispatch(external_wp_editor_namespaceObject.store).toggleEditorPanelEnabled(panelName)
+})))(enable_panel_PreferenceBaseOption));
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/meta-boxes-section.js
/**
* WordPress dependencies
*/
-const layout = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
-}));
-/* harmony default export */ const library_layout = (layout);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/template-summary/index.js
+
+
/**
- * WordPress dependencies
+ * Internal dependencies
*/
-function TemplateSummary() {
- const template = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getCurrentPost
- } = select(external_wp_editor_namespaceObject.store);
- return getCurrentPost();
- }, []);
- if (!template) {
+
+
+const {
+ PreferencesModalSection
+} = unlock(external_wp_preferences_namespaceObject.privateApis);
+function MetaBoxesSection({
+ areCustomFieldsRegistered,
+ metaBoxes,
+ ...sectionProps
+}) {
+ // The 'Custom Fields' meta box is a special case that we handle separately.
+ const thirdPartyMetaBoxes = metaBoxes.filter(({
+ id
+ }) => id !== 'postcustom');
+ if (!areCustomFieldsRegistered && thirdPartyMetaBoxes.length === 0) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Flex, {
- align: "flex-start",
- gap: "3"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_namespaceObject.createElement)(icon, {
- icon: library_layout
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexBlock, null, (0,external_React_namespaceObject.createElement)("h2", {
- className: "edit-post-template-summary__title"
- }, template?.title || template?.slug), (0,external_React_namespaceObject.createElement)("p", null, template?.description))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(PreferencesModalSection, {
+ ...sectionProps,
+ children: [areCustomFieldsRegistered && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(enable_custom_fields, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Custom fields')
+ }), thirdPartyMetaBoxes.map(({
+ id,
+ title
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(enable_panel, {
+ label: title,
+ panelName: `meta-box-${id}`
+ }, id))]
+ });
}
-/* harmony default export */ const template_summary = (TemplateSummary);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/settings-sidebar/index.js
+/* harmony default export */ const meta_boxes_section = ((0,external_wp_data_namespaceObject.withSelect)(select => {
+ const {
+ getEditorSettings
+ } = select(external_wp_editor_namespaceObject.store);
+ const {
+ getAllMetaBoxes
+ } = select(store);
+ return {
+ // This setting should not live in the block editor's store.
+ areCustomFieldsRegistered: getEditorSettings().enableCustomFields !== undefined,
+ metaBoxes: getAllMetaBoxes()
+ };
+})(MetaBoxesSection));
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/index.js
/**
* WordPress dependencies
*/
@@ -5884,12 +2202,38 @@ function TemplateSummary() {
+/**
+ * Internal dependencies
+ */
+const {
+ PreferenceToggleControl
+} = unlock(external_wp_preferences_namespaceObject.privateApis);
+const {
+ PreferencesModal
+} = unlock(external_wp_editor_namespaceObject.privateApis);
+function EditPostPreferencesModal() {
+ const extraSections = {
+ general: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(meta_boxes_section, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Advanced')
+ }),
+ appearance: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferenceToggleControl, {
+ scope: "core/edit-post",
+ featureName: "themeStyles",
+ help: (0,external_wp_i18n_namespaceObject.__)('Make the editor look like your theme.'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Use theme styles')
+ })
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferencesModal, {
+ extraSections: extraSections
+ });
+}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/more-menu/index.js
/**
- * Internal dependencies
+ * WordPress dependencies
*/
@@ -5897,159 +2241,62 @@ function TemplateSummary() {
+/**
+ * Internal dependencies
+ */
+
+
+
+
const {
- Tabs: settings_sidebar_Tabs
-} = unlock(external_wp_components_namespaceObject.privateApis);
-const SIDEBAR_ACTIVE_BY_DEFAULT = external_wp_element_namespaceObject.Platform.select({
- web: true,
- native: false
-});
-const sidebars = {
- document: 'edit-post/document',
- block: 'edit-post/block'
-};
-const SidebarContent = ({
- sidebarName,
- keyboardShortcut,
- isEditingTemplate
-}) => {
- const tabListRef = (0,external_wp_element_namespaceObject.useRef)(null);
- // Because `PluginSidebarEditPost` renders a `ComplementaryArea`, we
- // need to forward the `Tabs` context so it can be passed through the
- // underlying slot/fill.
- const tabsContextValue = (0,external_wp_element_namespaceObject.useContext)(settings_sidebar_Tabs.Context);
-
- // This effect addresses a race condition caused by tabbing from the last
- // block in the editor into the settings sidebar. Without this effect, the
- // selected tab and browser focus can become separated in an unexpected way
- // (e.g the "block" tab is focused, but the "post" tab is selected).
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- const tabsElements = Array.from(tabListRef.current?.querySelectorAll('[role="tab"]') || []);
- const selectedTabElement = tabsElements.find(
- // We are purposefully using a custom `data-tab-id` attribute here
- // because we don't want rely on any assumptions about `Tabs`
- // component internals.
- element => element.getAttribute('data-tab-id') === sidebarName);
- const activeElement = selectedTabElement?.ownerDocument.activeElement;
- const tabsHasFocus = tabsElements.some(element => {
- return activeElement && activeElement.id === element.id;
- });
- if (tabsHasFocus && selectedTabElement && selectedTabElement.id !== activeElement?.id) {
- selectedTabElement?.focus();
- }
- }, [sidebarName]);
- return (0,external_React_namespaceObject.createElement)(PluginSidebarEditPost, {
- identifier: sidebarName,
- header: (0,external_React_namespaceObject.createElement)(settings_sidebar_Tabs.Context.Provider, {
- value: tabsContextValue
- }, (0,external_React_namespaceObject.createElement)(settings_header, {
- ref: tabListRef
- })),
- closeLabel: (0,external_wp_i18n_namespaceObject.__)('Close Settings')
- // This classname is added so we can apply a corrective negative
- // margin to the panel.
- // see https://github.com/WordPress/gutenberg/pull/55360#pullrequestreview-1737671049
- ,
- className: "edit-post-sidebar__panel",
- headerClassName: "edit-post-sidebar__panel-tabs"
- /* translators: button label text should, if possible, be under 16 characters. */,
- title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
- toggleShortcut: keyboardShortcut,
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? drawer_left : drawer_right,
- isActiveByDefault: SIDEBAR_ACTIVE_BY_DEFAULT
- }, (0,external_React_namespaceObject.createElement)(settings_sidebar_Tabs.Context.Provider, {
- value: tabsContextValue
- }, (0,external_React_namespaceObject.createElement)(settings_sidebar_Tabs.TabPanel, {
- tabId: sidebars.document,
- focusable: false
- }, !isEditingTemplate && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(PostStatus, null), (0,external_React_namespaceObject.createElement)(plugin_document_setting_panel.Slot, null), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostLastRevisionPanel, null), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostTaxonomiesPanel, null), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostFeaturedImagePanel, null), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostExcerptPanel, null), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostDiscussionPanel, null), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PageAttributesPanel, null), (0,external_React_namespaceObject.createElement)(MetaBoxes, {
- location: "side"
- })), isEditingTemplate && (0,external_React_namespaceObject.createElement)(template_summary, null)), (0,external_React_namespaceObject.createElement)(settings_sidebar_Tabs.TabPanel, {
- tabId: sidebars.block,
- focusable: false
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockInspector, null))));
-};
-const SettingsSidebar = () => {
- const {
- sidebarName,
- isSettingsSidebarActive,
- keyboardShortcut,
- isEditingTemplate
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- // The settings sidebar is used by the edit-post/document and edit-post/block sidebars.
- // sidebarName represents the sidebar that is active or that should be active when the SettingsSidebar toggle button is pressed.
- // If one of the two sidebars is active the component will contain the content of that sidebar.
- // When neither of the two sidebars is active we can not simply return null, because the PluginSidebarEditPost
- // component, besides being used to render the sidebar, also renders the toggle button. In that case sidebarName
- // should contain the sidebar that will be active when the toggle button is pressed. If a block
- // is selected, that should be edit-post/block otherwise it's edit-post/document.
- let sidebar = select(store).getActiveComplementaryArea(store_store.name);
- let isSettingsSidebar = true;
- if (![sidebars.document, sidebars.block].includes(sidebar)) {
- isSettingsSidebar = false;
- if (select(external_wp_blockEditor_namespaceObject.store).getBlockSelectionStart()) {
- sidebar = sidebars.block;
- }
- sidebar = sidebars.document;
- }
- const shortcut = select(external_wp_keyboardShortcuts_namespaceObject.store).getShortcutRepresentation('core/edit-post/toggle-sidebar');
- return {
- sidebarName: sidebar,
- isSettingsSidebarActive: isSettingsSidebar,
- keyboardShortcut: shortcut,
- isEditingTemplate: select(external_wp_editor_namespaceObject.store).getCurrentPostType() === 'wp_template'
- };
- }, []);
- const {
- openGeneralSidebar
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const onTabSelect = (0,external_wp_element_namespaceObject.useCallback)(newSelectedTabId => {
- if (!!newSelectedTabId) {
- openGeneralSidebar(newSelectedTabId);
- }
- }, [openGeneralSidebar]);
- return (0,external_React_namespaceObject.createElement)(settings_sidebar_Tabs
- // Due to how this component is controlled (via a value from the
- // `interfaceStore`), when the sidebar closes the currently selected
- // tab can't be found. This causes the component to continuously reset
- // the selection to `null` in an infinite loop.Proactively setting
- // the selected tab to `null` avoids that.
- , {
- selectedTabId: isSettingsSidebarActive ? sidebarName : null,
- onSelect: onTabSelect,
- selectOnMove: false
- }, (0,external_React_namespaceObject.createElement)(SidebarContent, {
- sidebarName: sidebarName,
- keyboardShortcut: keyboardShortcut,
- isEditingTemplate: isEditingTemplate
- }));
+ ToolsMoreMenuGroup,
+ ViewMoreMenuGroup
+} = unlock(external_wp_editor_namespaceObject.privateApis);
+const MoreMenu = () => {
+ const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('large');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [isLargeViewport && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ViewMoreMenuGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
+ scope: "core/edit-post",
+ name: "fullscreenMode",
+ label: (0,external_wp_i18n_namespaceObject.__)('Fullscreen mode'),
+ info: (0,external_wp_i18n_namespaceObject.__)('Show and hide the admin user interface'),
+ messageActivated: (0,external_wp_i18n_namespaceObject.__)('Fullscreen mode activated'),
+ messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Fullscreen mode deactivated'),
+ shortcut: external_wp_keycodes_namespaceObject.displayShortcut.secondary('f')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ToolsMoreMenuGroup, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(manage_patterns_menu_item, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideMenuItem, {})]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditPostPreferencesModal, {})]
+ });
};
-/* harmony default export */ const settings_sidebar = (SettingsSidebar);
+/* harmony default export */ const more_menu = (MoreMenu);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/welcome-guide/image.js
+
function WelcomeGuideImage({
nonAnimatedSrc,
animatedSrc
}) {
- return (0,external_React_namespaceObject.createElement)("picture", {
- className: "edit-post-welcome-guide__image"
- }, (0,external_React_namespaceObject.createElement)("source", {
- srcSet: nonAnimatedSrc,
- media: "(prefers-reduced-motion: reduce)"
- }), (0,external_React_namespaceObject.createElement)("img", {
- src: animatedSrc,
- width: "312",
- height: "240",
- alt: ""
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("picture", {
+ className: "edit-post-welcome-guide__image",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("source", {
+ srcSet: nonAnimatedSrc,
+ media: "(prefers-reduced-motion: reduce)"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: animatedSrc,
+ width: "312",
+ height: "240",
+ alt: ""
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/welcome-guide/default.js
-
/**
* WordPress dependencies
*/
@@ -6063,68 +2310,87 @@ function WelcomeGuideImage({
*/
+
+
+
function WelcomeGuideDefault() {
const {
toggleFeature
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Guide, {
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Guide, {
className: "edit-post-welcome-guide",
contentLabel: (0,external_wp_i18n_namespaceObject.__)('Welcome to the block editor'),
finishButtonText: (0,external_wp_i18n_namespaceObject.__)('Get started'),
onFinish: () => toggleFeature('welcomeGuide'),
pages: [{
- image: (0,external_React_namespaceObject.createElement)(WelcomeGuideImage, {
+ image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideImage, {
nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-canvas.svg",
animatedSrc: "https://s.w.org/images/block-editor/welcome-canvas.gif"
}),
- content: (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("h1", {
- className: "edit-post-welcome-guide__heading"
- }, (0,external_wp_i18n_namespaceObject.__)('Welcome to the block editor')), (0,external_React_namespaceObject.createElement)("p", {
- className: "edit-post-welcome-guide__text"
- }, (0,external_wp_i18n_namespaceObject.__)('In the WordPress editor, each paragraph, image, or video is presented as a distinct “block” of content.')))
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ className: "edit-post-welcome-guide__heading",
+ children: (0,external_wp_i18n_namespaceObject.__)('Welcome to the block editor')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-post-welcome-guide__text",
+ children: (0,external_wp_i18n_namespaceObject.__)('In the WordPress editor, each paragraph, image, or video is presented as a distinct “block” of content.')
+ })]
+ })
}, {
- image: (0,external_React_namespaceObject.createElement)(WelcomeGuideImage, {
+ image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideImage, {
nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-editor.svg",
animatedSrc: "https://s.w.org/images/block-editor/welcome-editor.gif"
}),
- content: (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("h1", {
- className: "edit-post-welcome-guide__heading"
- }, (0,external_wp_i18n_namespaceObject.__)('Make each block your own')), (0,external_React_namespaceObject.createElement)("p", {
- className: "edit-post-welcome-guide__text"
- }, (0,external_wp_i18n_namespaceObject.__)('Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.')))
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ className: "edit-post-welcome-guide__heading",
+ children: (0,external_wp_i18n_namespaceObject.__)('Make each block your own')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-post-welcome-guide__text",
+ children: (0,external_wp_i18n_namespaceObject.__)('Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.')
+ })]
+ })
}, {
- image: (0,external_React_namespaceObject.createElement)(WelcomeGuideImage, {
+ image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideImage, {
nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-library.svg",
animatedSrc: "https://s.w.org/images/block-editor/welcome-library.gif"
}),
- content: (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("h1", {
- className: "edit-post-welcome-guide__heading"
- }, (0,external_wp_i18n_namespaceObject.__)('Get to know the block library')), (0,external_React_namespaceObject.createElement)("p", {
- className: "edit-post-welcome-guide__text"
- }, (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('All of the blocks available to you live in the block library. You’ll find it wherever you see the <InserterIconImage /> icon.'), {
- InserterIconImage: (0,external_React_namespaceObject.createElement)("img", {
- alt: (0,external_wp_i18n_namespaceObject.__)('inserter'),
- src: "data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"
- })
- })))
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ className: "edit-post-welcome-guide__heading",
+ children: (0,external_wp_i18n_namespaceObject.__)('Get to know the block library')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-post-welcome-guide__text",
+ children: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('All of the blocks available to you live in the block library. You’ll find it wherever you see the <InserterIconImage /> icon.'), {
+ InserterIconImage: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ alt: (0,external_wp_i18n_namespaceObject.__)('inserter'),
+ src: "data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"
+ })
+ })
+ })]
+ })
}, {
- image: (0,external_React_namespaceObject.createElement)(WelcomeGuideImage, {
+ image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideImage, {
nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-documentation.svg",
animatedSrc: "https://s.w.org/images/block-editor/welcome-documentation.gif"
}),
- content: (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("h1", {
- className: "edit-post-welcome-guide__heading"
- }, (0,external_wp_i18n_namespaceObject.__)('Learn how to use the block editor')), (0,external_React_namespaceObject.createElement)("p", {
- className: "edit-post-welcome-guide__text"
- }, (0,external_wp_i18n_namespaceObject.__)('New to the block editor? Want to learn more about using it? '), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/wordpress-block-editor/')
- }, (0,external_wp_i18n_namespaceObject.__)("Here's a detailed guide."))))
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ className: "edit-post-welcome-guide__heading",
+ children: (0,external_wp_i18n_namespaceObject.__)('Learn how to use the block editor')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("p", {
+ className: "edit-post-welcome-guide__text",
+ children: [(0,external_wp_i18n_namespaceObject.__)('New to the block editor? Want to learn more about using it? '), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/wordpress-block-editor/'),
+ children: (0,external_wp_i18n_namespaceObject.__)("Here's a detailed guide.")
+ })]
+ })]
+ })
}]
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/welcome-guide/template.js
-
/**
* WordPress dependencies
*/
@@ -6137,31 +2403,37 @@ function WelcomeGuideDefault() {
*/
+
+
+
function WelcomeGuideTemplate() {
const {
toggleFeature
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Guide, {
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Guide, {
className: "edit-template-welcome-guide",
contentLabel: (0,external_wp_i18n_namespaceObject.__)('Welcome to the template editor'),
finishButtonText: (0,external_wp_i18n_namespaceObject.__)('Get started'),
onFinish: () => toggleFeature('welcomeGuideTemplate'),
pages: [{
- image: (0,external_React_namespaceObject.createElement)(WelcomeGuideImage, {
+ image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideImage, {
nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-template-editor.svg",
animatedSrc: "https://s.w.org/images/block-editor/welcome-template-editor.gif"
}),
- content: (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("h1", {
- className: "edit-post-welcome-guide__heading"
- }, (0,external_wp_i18n_namespaceObject.__)('Welcome to the template editor')), (0,external_React_namespaceObject.createElement)("p", {
- className: "edit-post-welcome-guide__text"
- }, (0,external_wp_i18n_namespaceObject.__)('Templates help define the layout of the site. You can customize all aspects of your posts and pages using blocks and patterns in this editor.')))
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ className: "edit-post-welcome-guide__heading",
+ children: (0,external_wp_i18n_namespaceObject.__)('Welcome to the template editor')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-post-welcome-guide__text",
+ children: (0,external_wp_i18n_namespaceObject.__)('Templates help define the layout of the site. You can customize all aspects of your posts and pages using blocks and patterns in this editor.')
+ })]
+ })
}]
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/welcome-guide/index.js
-
/**
* WordPress dependencies
*/
@@ -6174,6 +2446,7 @@ function WelcomeGuideTemplate() {
+
function WelcomeGuide() {
const {
isActive,
@@ -6181,7 +2454,7 @@ function WelcomeGuide() {
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
isFeatureActive
- } = select(store_store);
+ } = select(store);
const {
getCurrentPostType
} = select(external_wp_editor_namespaceObject.store);
@@ -6195,442 +2468,25 @@ function WelcomeGuide() {
if (!isActive) {
return null;
}
- return isEditingTemplate ? (0,external_React_namespaceObject.createElement)(WelcomeGuideTemplate, null) : (0,external_React_namespaceObject.createElement)(WelcomeGuideDefault, null);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-publish-panel/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-const {
- Fill: plugin_post_publish_panel_Fill,
- Slot: plugin_post_publish_panel_Slot
-} = (0,external_wp_components_namespaceObject.createSlotFill)('PluginPostPublishPanel');
-
-/**
- * Renders provided content to the post-publish panel in the publish flow
- * (side panel that opens after a user publishes the post).
- *
- * @param {Object} props Component properties.
- * @param {string} [props.className] An optional class name added to the panel.
- * @param {string} [props.title] Title displayed at the top of the panel.
- * @param {boolean} [props.initialOpen=false] Whether to have the panel initially opened. When no title is provided it is always opened.
- * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
- * @param {Element} props.children Children to be rendered
- *
- * @example
- * ```js
- * // Using ES5 syntax
- * var __ = wp.i18n.__;
- * var PluginPostPublishPanel = wp.editPost.PluginPostPublishPanel;
- *
- * function MyPluginPostPublishPanel() {
- * return React.createElement(
- * PluginPostPublishPanel,
- * {
- * className: 'my-plugin-post-publish-panel',
- * title: __( 'My panel title' ),
- * initialOpen: true,
- * },
- * __( 'My panel content' )
- * );
- * }
- * ```
- *
- * @example
- * ```jsx
- * // Using ESNext syntax
- * import { __ } from '@wordpress/i18n';
- * import { PluginPostPublishPanel } from '@wordpress/edit-post';
- *
- * const MyPluginPostPublishPanel = () => (
- * <PluginPostPublishPanel
- * className="my-plugin-post-publish-panel"
- * title={ __( 'My panel title' ) }
- * initialOpen={ true }
- * >
- * { __( 'My panel content' ) }
- * </PluginPostPublishPanel>
- * );
- * ```
- *
- * @return {Component} The component to be rendered.
- */
-const PluginPostPublishPanel = ({
- children,
- className,
- title,
- initialOpen = false,
- icon
-}) => {
- const {
- icon: pluginIcon
- } = (0,external_wp_plugins_namespaceObject.usePluginContext)();
- return (0,external_React_namespaceObject.createElement)(plugin_post_publish_panel_Fill, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- className: className,
- initialOpen: initialOpen || !title,
- title: title,
- icon: icon !== null && icon !== void 0 ? icon : pluginIcon
- }, children));
-};
-PluginPostPublishPanel.Slot = plugin_post_publish_panel_Slot;
-/* harmony default export */ const plugin_post_publish_panel = (PluginPostPublishPanel);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-pre-publish-panel/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-const {
- Fill: plugin_pre_publish_panel_Fill,
- Slot: plugin_pre_publish_panel_Slot
-} = (0,external_wp_components_namespaceObject.createSlotFill)('PluginPrePublishPanel');
-
-/**
- * Renders provided content to the pre-publish side panel in the publish flow
- * (side panel that opens when a user first pushes "Publish" from the main editor).
- *
- * @param {Object} props Component props.
- * @param {string} [props.className] An optional class name added to the panel.
- * @param {string} [props.title] Title displayed at the top of the panel.
- * @param {boolean} [props.initialOpen=false] Whether to have the panel initially opened.
- * When no title is provided it is always opened.
- * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/)
- * icon slug string, or an SVG WP element, to be rendered when
- * the sidebar is pinned to toolbar.
- * @param {Element} props.children Children to be rendered
- *
- * @example
- * ```js
- * // Using ES5 syntax
- * var __ = wp.i18n.__;
- * var PluginPrePublishPanel = wp.editPost.PluginPrePublishPanel;
- *
- * function MyPluginPrePublishPanel() {
- * return React.createElement(
- * PluginPrePublishPanel,
- * {
- * className: 'my-plugin-pre-publish-panel',
- * title: __( 'My panel title' ),
- * initialOpen: true,
- * },
- * __( 'My panel content' )
- * );
- * }
- * ```
- *
- * @example
- * ```jsx
- * // Using ESNext syntax
- * import { __ } from '@wordpress/i18n';
- * import { PluginPrePublishPanel } from '@wordpress/edit-post';
- *
- * const MyPluginPrePublishPanel = () => (
- * <PluginPrePublishPanel
- * className="my-plugin-pre-publish-panel"
- * title={ __( 'My panel title' ) }
- * initialOpen={ true }
- * >
- * { __( 'My panel content' ) }
- * </PluginPrePublishPanel>
- * );
- * ```
- *
- * @return {Component} The component to be rendered.
- */
-const PluginPrePublishPanel = ({
- children,
- className,
- title,
- initialOpen = false,
- icon
-}) => {
- const {
- icon: pluginIcon
- } = (0,external_wp_plugins_namespaceObject.usePluginContext)();
- return (0,external_React_namespaceObject.createElement)(plugin_pre_publish_panel_Fill, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- className: className,
- initialOpen: initialOpen || !title,
- title: title,
- icon: icon !== null && icon !== void 0 ? icon : pluginIcon
- }, children));
-};
-PluginPrePublishPanel.Slot = plugin_pre_publish_panel_Slot;
-/* harmony default export */ const plugin_pre_publish_panel = (PluginPrePublishPanel);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/layout/actions-panel.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-const {
- Fill: actions_panel_Fill,
- Slot: actions_panel_Slot
-} = (0,external_wp_components_namespaceObject.createSlotFill)('ActionsPanel');
-const ActionsPanelFill = (/* unused pure expression or super */ null && (actions_panel_Fill));
-function ActionsPanel({
- setEntitiesSavedStatesCallback,
- closeEntitiesSavedStates,
- isEntitiesSavedStatesOpen
-}) {
- const {
- closePublishSidebar,
- togglePublishSidebar
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const {
- publishSidebarOpened,
- hasActiveMetaboxes,
- hasNonPostEntityChanges
- } = (0,external_wp_data_namespaceObject.useSelect)(select => ({
- publishSidebarOpened: select(store_store).isPublishSidebarOpened(),
- hasActiveMetaboxes: select(store_store).hasMetaBoxes(),
- hasNonPostEntityChanges: select(external_wp_editor_namespaceObject.store).hasNonPostEntityChanges()
- }), []);
- const openEntitiesSavedStates = (0,external_wp_element_namespaceObject.useCallback)(() => setEntitiesSavedStatesCallback(true), []);
-
- // It is ok for these components to be unmounted when not in visual use.
- // We don't want more than one present at a time, decide which to render.
- let unmountableContent;
- if (publishSidebarOpened) {
- unmountableContent = (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostPublishPanel, {
- onClose: closePublishSidebar,
- forceIsDirty: hasActiveMetaboxes,
- PrePublishExtension: plugin_pre_publish_panel.Slot,
- PostPublishExtension: plugin_post_publish_panel.Slot
- });
- } else if (hasNonPostEntityChanges) {
- unmountableContent = (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-post-layout__toggle-entities-saved-states-panel"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "secondary",
- className: "edit-post-layout__toggle-entities-saved-states-panel-button",
- onClick: openEntitiesSavedStates,
- "aria-expanded": false
- }, (0,external_wp_i18n_namespaceObject.__)('Open save panel')));
- } else {
- unmountableContent = (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-post-layout__toggle-publish-panel"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "secondary",
- className: "edit-post-layout__toggle-publish-panel-button",
- onClick: togglePublishSidebar,
- "aria-expanded": false
- }, (0,external_wp_i18n_namespaceObject.__)('Open publish panel')));
- }
-
- // Since EntitiesSavedStates controls its own panel, we can keep it
- // always mounted to retain its own component state (such as checkboxes).
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, isEntitiesSavedStatesOpen && (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.EntitiesSavedStates, {
- close: closeEntitiesSavedStates
- }), (0,external_React_namespaceObject.createElement)(actions_panel_Slot, {
- bubblesVirtually: true
- }), !isEntitiesSavedStatesOpen && unmountableContent);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/start-page-options/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-function useStartPatterns() {
- // A pattern is a start pattern if it includes 'core/post-content' in its blockTypes,
- // and it has no postTypes declared and the current post type is page or if
- // the current post type is part of the postTypes declared.
- const {
- blockPatternsWithPostContentBlockType,
- postType
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getPatternsByBlockTypes
- } = select(external_wp_blockEditor_namespaceObject.store);
- const {
- getCurrentPostType
- } = select(external_wp_editor_namespaceObject.store);
- return {
- blockPatternsWithPostContentBlockType: getPatternsByBlockTypes('core/post-content'),
- postType: getCurrentPostType()
- };
- }, []);
- return (0,external_wp_element_namespaceObject.useMemo)(() => {
- // filter patterns without postTypes declared if the current postType is page
- // or patterns that declare the current postType in its post type array.
- return blockPatternsWithPostContentBlockType.filter(pattern => {
- return postType === 'page' && !pattern.postTypes || Array.isArray(pattern.postTypes) && pattern.postTypes.includes(postType);
- });
- }, [postType, blockPatternsWithPostContentBlockType]);
-}
-function PatternSelection({
- blockPatterns,
- onChoosePattern
-}) {
- const shownBlockPatterns = (0,external_wp_compose_namespaceObject.useAsyncList)(blockPatterns);
- const {
- resetEditorBlocks
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_editor_namespaceObject.store);
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalBlockPatternsList, {
- blockPatterns: blockPatterns,
- shownPatterns: shownBlockPatterns,
- onClickPattern: (_pattern, blocks) => {
- resetEditorBlocks(blocks);
- onChoosePattern();
- }
- });
-}
-function StartPageOptionsModal({
- onClose
-}) {
- const startPatterns = useStartPatterns();
- const hasStartPattern = startPatterns.length > 0;
- if (!hasStartPattern) {
- return null;
- }
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
- className: "edit-post-start-page-options__modal",
- title: (0,external_wp_i18n_namespaceObject.__)('Choose a pattern'),
- isFullScreen: true,
- onRequestClose: onClose
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-post-start-page-options__modal-content"
- }, (0,external_React_namespaceObject.createElement)(PatternSelection, {
- blockPatterns: startPatterns,
- onChoosePattern: onClose
- })));
-}
-function StartPageOptions() {
- const [isClosed, setIsClosed] = (0,external_wp_element_namespaceObject.useState)(false);
- const shouldEnableModal = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- isCleanNewPost,
- getRenderingMode
- } = select(external_wp_editor_namespaceObject.store);
- const {
- isFeatureActive
- } = select(store_store);
- return getRenderingMode() === 'post-only' && !isFeatureActive('welcomeGuide') && isCleanNewPost();
- }, []);
- if (!shouldEnableModal || isClosed) {
- return null;
- }
- return (0,external_React_namespaceObject.createElement)(StartPageOptionsModal, {
- onClose: () => setIsClosed(true)
- });
+ return isEditingTemplate ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideTemplate, {}) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideDefault, {});
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js
-
-/**
- * WordPress dependencies
- */
-
-const blockDefault = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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 */ const block_default = (blockDefault);
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/fullscreen.js
-
-/**
- * WordPress dependencies
- */
-
-const fullscreen = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"
-}));
-/* harmony default export */ const library_fullscreen = (fullscreen);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/list-view.js
-
-/**
- * WordPress dependencies
- */
-
-const listView = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"
-}));
-/* harmony default export */ const list_view = (listView);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/code.js
-
-/**
- * WordPress dependencies
- */
-
-const code = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"
-}));
-/* harmony default export */ const library_code = (code);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard.js
-
/**
* WordPress dependencies
*/
-const keyboard = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m16 15.5h-8v-1.5h8zm-7.5-2.5h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm-9-3h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2z"
-}), (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m18.5 6.5h-13a.5.5 0 0 0 -.5.5v9.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9.5a.5.5 0 0 0 -.5-.5zm-13-1.5h13a2 2 0 0 1 2 2v9.5a2 2 0 0 1 -2 2h-13a2 2 0 0 1 -2-2v-9.5a2 2 0 0 1 2-2z"
-}));
-/* harmony default export */ const library_keyboard = (keyboard);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-list-bullets.js
-/**
- * WordPress dependencies
- */
-
-const formatListBullets = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+const fullscreen = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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 */ const format_list_bullets = (formatListBullets);
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"
+ })
+});
+/* harmony default export */ const library_fullscreen = (fullscreen);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/commands/use-common-commands.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/commands/use-commands.js
/**
* WordPress dependencies
*/
@@ -6640,54 +2496,14 @@ const formatListBullets = (0,external_React_namespaceObject.createElement)(exter
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-function useCommonCommands() {
- const {
- openGeneralSidebar,
- closeGeneralSidebar,
- switchEditorMode,
- toggleDistractionFree
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const {
- openModal
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+function useCommands() {
const {
- editorMode,
- activeSidebar,
- isListViewOpen,
- isFullscreen,
- isPublishSidebarEnabled,
- showBlockBreadcrumbs,
- isDistractionFree,
- isTopToolbar,
- isFocusMode
+ isFullscreen
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
get
} = select(external_wp_preferences_namespaceObject.store);
- const {
- getEditorMode
- } = select(store_store);
- const {
- isListViewOpened
- } = select(external_wp_editor_namespaceObject.store);
return {
- activeSidebar: select(store).getActiveComplementaryArea(store_store.name),
- editorMode: getEditorMode(),
- isListViewOpen: isListViewOpened(),
- isPublishSidebarEnabled: select(external_wp_editor_namespaceObject.store).isPublishSidebarEnabled(),
- showBlockBreadcrumbs: get('core', 'showBlockBreadcrumbs'),
- isDistractionFree: get('core', 'distractionFree'),
- isFocusMode: get('core', 'focusMode'),
- isTopToolbar: get('core', 'fixedToolbar'),
isFullscreen: get('core/edit-post', 'fullscreenMode')
};
}, []);
@@ -6697,73 +2513,6 @@ function useCommonCommands() {
const {
createInfoNotice
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- const {
- __unstableSaveForPreview,
- setIsListViewOpened
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_editor_namespaceObject.store);
- const {
- getCurrentPostId
- } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_editor_namespaceObject.store);
- (0,external_wp_commands_namespaceObject.useCommand)({
- name: 'core/open-settings-sidebar',
- label: (0,external_wp_i18n_namespaceObject.__)('Toggle settings sidebar'),
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? drawer_left : drawer_right,
- callback: ({
- close
- }) => {
- close();
- if (activeSidebar === 'edit-post/document') {
- closeGeneralSidebar();
- } else {
- openGeneralSidebar('edit-post/document');
- }
- }
- });
- (0,external_wp_commands_namespaceObject.useCommand)({
- name: 'core/open-block-inspector',
- label: (0,external_wp_i18n_namespaceObject.__)('Toggle block inspector'),
- icon: block_default,
- callback: ({
- close
- }) => {
- close();
- if (activeSidebar === 'edit-post/block') {
- closeGeneralSidebar();
- } else {
- openGeneralSidebar('edit-post/block');
- }
- }
- });
- (0,external_wp_commands_namespaceObject.useCommand)({
- name: 'core/toggle-distraction-free',
- label: isDistractionFree ? (0,external_wp_i18n_namespaceObject.__)('Exit Distraction Free') : (0,external_wp_i18n_namespaceObject.__)('Enter Distraction Free '),
- callback: ({
- close
- }) => {
- toggleDistractionFree();
- close();
- }
- });
- (0,external_wp_commands_namespaceObject.useCommand)({
- name: 'core/toggle-spotlight-mode',
- label: (0,external_wp_i18n_namespaceObject.__)('Toggle spotlight'),
- callback: ({
- close
- }) => {
- toggle('core', 'focusMode');
- close();
- createInfoNotice(isFocusMode ? (0,external_wp_i18n_namespaceObject.__)('Spotlight off.') : (0,external_wp_i18n_namespaceObject.__)('Spotlight on.'), {
- id: 'core/edit-post/toggle-spotlight-mode/notice',
- type: 'snackbar',
- actions: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Undo'),
- onClick: () => {
- toggle('core', 'focusMode');
- }
- }]
- });
- }
- });
(0,external_wp_commands_namespaceObject.useCommand)({
name: 'core/toggle-fullscreen-mode',
label: isFullscreen ? (0,external_wp_i18n_namespaceObject.__)('Exit fullscreen') : (0,external_wp_i18n_namespaceObject.__)('Enter fullscreen'),
@@ -6785,116 +2534,110 @@ function useCommonCommands() {
});
}
});
- (0,external_wp_commands_namespaceObject.useCommand)({
- name: 'core/toggle-list-view',
- label: isListViewOpen ? (0,external_wp_i18n_namespaceObject.__)('Close List View') : (0,external_wp_i18n_namespaceObject.__)('Open List View'),
- icon: list_view,
- callback: ({
- close
- }) => {
- setIsListViewOpened(!isListViewOpen);
- close();
- createInfoNotice(isListViewOpen ? (0,external_wp_i18n_namespaceObject.__)('List View off.') : (0,external_wp_i18n_namespaceObject.__)('List View on.'), {
- id: 'core/edit-post/toggle-list-view/notice',
- type: 'snackbar'
- });
- }
- });
- (0,external_wp_commands_namespaceObject.useCommand)({
- name: 'core/toggle-top-toolbar',
- label: (0,external_wp_i18n_namespaceObject.__)('Toggle top toolbar'),
- callback: ({
- close
- }) => {
- toggle('core', 'fixedToolbar');
- if (isDistractionFree) {
- toggleDistractionFree();
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/layout/use-padding-appender.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+function usePaddingAppender() {
+ const registry = (0,external_wp_data_namespaceObject.useRegistry)();
+ return (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
+ function onMouseDown(event) {
+ if (event.target !== node) {
+ return;
+ }
+ const {
+ ownerDocument
+ } = node;
+ const {
+ defaultView
+ } = ownerDocument;
+ const paddingBottom = defaultView.parseInt(defaultView.getComputedStyle(node).paddingBottom, 10);
+ if (!paddingBottom) {
+ return;
+ }
+
+ // Only handle clicks under the last child.
+ const lastChild = node.lastElementChild;
+ if (!lastChild) {
+ return;
+ }
+ const lastChildRect = lastChild.getBoundingClientRect();
+ if (event.clientY < lastChildRect.bottom) {
+ return;
+ }
+ event.preventDefault();
+ const blockOrder = registry.select(external_wp_blockEditor_namespaceObject.store).getBlockOrder('');
+ const lastBlockClientId = blockOrder[blockOrder.length - 1];
+
+ // Do nothing when only default block appender is present.
+ if (!lastBlockClientId) {
+ return;
+ }
+ const lastBlock = registry.select(external_wp_blockEditor_namespaceObject.store).getBlock(lastBlockClientId);
+ const {
+ selectBlock,
+ insertDefaultBlock
+ } = registry.dispatch(external_wp_blockEditor_namespaceObject.store);
+ if ((0,external_wp_blocks_namespaceObject.isUnmodifiedDefaultBlock)(lastBlock)) {
+ selectBlock(lastBlockClientId);
+ } else {
+ insertDefaultBlock();
}
- close();
- createInfoNotice(isTopToolbar ? (0,external_wp_i18n_namespaceObject.__)('Top toolbar off.') : (0,external_wp_i18n_namespaceObject.__)('Top toolbar on.'), {
- id: 'core/edit-post/toggle-top-toolbar/notice',
- type: 'snackbar',
- actions: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Undo'),
- onClick: () => {
- toggle('core', 'fixedToolbar');
- }
- }]
- });
- }
- });
- (0,external_wp_commands_namespaceObject.useCommand)({
- name: 'core/toggle-code-editor',
- label: editorMode === 'visual' ? (0,external_wp_i18n_namespaceObject.__)('Open code editor') : (0,external_wp_i18n_namespaceObject.__)('Exit code editor'),
- icon: library_code,
- callback: ({
- close
- }) => {
- switchEditorMode(editorMode === 'visual' ? 'text' : 'visual');
- close();
- }
- });
- (0,external_wp_commands_namespaceObject.useCommand)({
- name: 'core/open-preferences',
- label: (0,external_wp_i18n_namespaceObject.__)('Editor preferences'),
- callback: () => {
- openModal(PREFERENCES_MODAL_NAME);
- }
- });
- (0,external_wp_commands_namespaceObject.useCommand)({
- name: 'core/open-shortcut-help',
- label: (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts'),
- icon: library_keyboard,
- callback: () => {
- openModal(KEYBOARD_SHORTCUT_HELP_MODAL_NAME);
- }
- });
- (0,external_wp_commands_namespaceObject.useCommand)({
- name: 'core/toggle-breadcrumbs',
- label: showBlockBreadcrumbs ? (0,external_wp_i18n_namespaceObject.__)('Hide block breadcrumbs') : (0,external_wp_i18n_namespaceObject.__)('Show block breadcrumbs'),
- callback: ({
- close
- }) => {
- toggle('core', 'showBlockBreadcrumbs');
- close();
- createInfoNotice(showBlockBreadcrumbs ? (0,external_wp_i18n_namespaceObject.__)('Breadcrumbs hidden.') : (0,external_wp_i18n_namespaceObject.__)('Breadcrumbs visible.'), {
- id: 'core/edit-post/toggle-breadcrumbs/notice',
- type: 'snackbar'
- });
- }
- });
- (0,external_wp_commands_namespaceObject.useCommand)({
- name: 'core/toggle-publish-sidebar',
- label: isPublishSidebarEnabled ? (0,external_wp_i18n_namespaceObject.__)('Disable pre-publish checks') : (0,external_wp_i18n_namespaceObject.__)('Enable pre-publish checks'),
- icon: format_list_bullets,
- callback: ({
- close
- }) => {
- close();
- toggle('core/edit-post', 'isPublishSidebarEnabled');
- createInfoNotice(isPublishSidebarEnabled ? (0,external_wp_i18n_namespaceObject.__)('Pre-publish checks disabled.') : (0,external_wp_i18n_namespaceObject.__)('Pre-publish checks enabled.'), {
- id: 'core/edit-post/publish-sidebar/notice',
- type: 'snackbar'
- });
- }
- });
- (0,external_wp_commands_namespaceObject.useCommand)({
- name: 'core/preview-link',
- label: (0,external_wp_i18n_namespaceObject.__)('Preview in a new tab'),
- icon: library_external,
- callback: async ({
- close
- }) => {
- close();
- const postId = getCurrentPostId();
- const link = await __unstableSaveForPreview();
- window.open(link, `wp-preview-${postId}`);
}
- });
+ node.addEventListener('mousedown', onMouseDown);
+ return () => {
+ node.removeEventListener('mousedown', onMouseDown);
+ };
+ }, [registry]);
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/layout/index.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/layout/use-should-iframe.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+const isGutenbergPlugin = false ? 0 : false;
+function useShouldIframe() {
+ const {
+ isBlockBasedTheme,
+ hasV3BlocksOnly,
+ isEditingTemplate,
+ hasMetaBoxes
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getEditorSettings,
+ getCurrentPostType
+ } = select(external_wp_editor_namespaceObject.store);
+ const {
+ getBlockTypes
+ } = select(external_wp_blocks_namespaceObject.store);
+ const editorSettings = getEditorSettings();
+ return {
+ isBlockBasedTheme: editorSettings.__unstableIsBlockBasedTheme,
+ hasV3BlocksOnly: getBlockTypes().every(type => {
+ return type.apiVersion >= 3;
+ }),
+ isEditingTemplate: getCurrentPostType() === 'wp_template',
+ hasMetaBoxes: select(store).hasMetaBoxes()
+ };
+ }, []);
+ return (hasV3BlocksOnly || isGutenbergPlugin && isBlockBasedTheme) && !hasMetaBoxes || isEditingTemplate;
+}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/layout/index.js
/**
* External dependencies
*/
@@ -6917,7 +2660,6 @@ function useCommonCommands() {
-
/**
* Internal dependencies
*/
@@ -6936,44 +2678,54 @@ function useCommonCommands() {
-
const {
getLayoutStyles
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
const {
- useCommands
+ useCommands: layout_useCommands
} = unlock(external_wp_coreCommands_namespaceObject.privateApis);
const {
useCommandContext
} = unlock(external_wp_commands_namespaceObject.privateApis);
const {
- InserterSidebar,
- ListViewSidebar
+ EditorInterface,
+ FullscreenMode,
+ Sidebar
} = unlock(external_wp_editor_namespaceObject.privateApis);
-const interfaceLabels = {
- /* translators: accessibility text for the editor top bar landmark region. */
- header: (0,external_wp_i18n_namespaceObject.__)('Editor top bar'),
- /* translators: accessibility text for the editor content landmark region. */
- body: (0,external_wp_i18n_namespaceObject.__)('Editor content'),
- /* translators: accessibility text for the editor settings landmark region. */
- sidebar: (0,external_wp_i18n_namespaceObject.__)('Editor settings'),
- /* translators: accessibility text for the editor publish landmark region. */
- actions: (0,external_wp_i18n_namespaceObject.__)('Editor publish'),
- /* translators: accessibility text for the editor footer landmark region. */
- footer: (0,external_wp_i18n_namespaceObject.__)('Editor footer')
-};
+const {
+ BlockKeyboardShortcuts
+} = unlock(external_wp_blockLibrary_namespaceObject.privateApis);
+const DESIGN_POST_TYPES = ['wp_template', 'wp_template_part', 'wp_block', 'wp_navigation'];
function useEditorStyles() {
const {
hasThemeStyleSupport,
- editorSettings
- } = (0,external_wp_data_namespaceObject.useSelect)(select => ({
- hasThemeStyleSupport: select(store_store).isFeatureActive('themeStyles'),
- editorSettings: select(external_wp_editor_namespaceObject.store).getEditorSettings()
- }), []);
+ editorSettings,
+ isZoomedOutView,
+ hasMetaBoxes,
+ renderingMode,
+ postType
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ __unstableGetEditorMode
+ } = select(external_wp_blockEditor_namespaceObject.store);
+ const {
+ getCurrentPostType,
+ getRenderingMode
+ } = select(external_wp_editor_namespaceObject.store);
+ const _postType = getCurrentPostType();
+ return {
+ hasThemeStyleSupport: select(store).isFeatureActive('themeStyles'),
+ editorSettings: select(external_wp_editor_namespaceObject.store).getEditorSettings(),
+ isZoomedOutView: __unstableGetEditorMode() === 'zoom-out',
+ hasMetaBoxes: select(store).hasMetaBoxes(),
+ renderingMode: getRenderingMode(),
+ postType: _postType
+ };
+ }, []);
// Compute the default styles.
return (0,external_wp_element_namespaceObject.useMemo)(() => {
- var _editorSettings$style, _editorSettings$style2;
+ var _editorSettings$style, _editorSettings$style2, _editorSettings$style3;
const presetStyles = (_editorSettings$style = editorSettings.styles?.filter(style => style.__unstableType && style.__unstableType !== 'theme')) !== null && _editorSettings$style !== void 0 ? _editorSettings$style : [];
const defaultEditorStyles = [...editorSettings.defaultEditorStyles, ...presetStyles];
@@ -6993,104 +2745,69 @@ function useEditorStyles() {
})
});
}
- return hasThemeStyles ? editorSettings.styles : defaultEditorStyles;
- }, [editorSettings.defaultEditorStyles, editorSettings.disableLayoutStyles, editorSettings.styles, hasThemeStyleSupport]);
+ const baseStyles = hasThemeStyles ? (_editorSettings$style3 = editorSettings.styles) !== null && _editorSettings$style3 !== void 0 ? _editorSettings$style3 : [] : defaultEditorStyles;
+
+ // Add a constant padding for the typewriter effect. When typing at the
+ // bottom, there needs to be room to scroll up.
+ if (!isZoomedOutView && !hasMetaBoxes && renderingMode === 'post-only' && !DESIGN_POST_TYPES.includes(postType)) {
+ return [...baseStyles, {
+ // Should override global styles padding, so ensure 0-1-0
+ // specificity.
+ css: ':root :where(body){padding-bottom: 40vh}'
+ }];
+ }
+ return baseStyles;
+ }, [editorSettings.defaultEditorStyles, editorSettings.disableLayoutStyles, editorSettings.styles, hasThemeStyleSupport, postType]);
}
function Layout({
initialPost
}) {
+ layout_useCommands();
useCommands();
- useCommonCommands();
- (0,external_wp_blockEditor_namespaceObject.useBlockCommands)();
- const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
- const isHugeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('huge', '>=');
- const isWideViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('large');
- const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
- const {
- openGeneralSidebar,
- closeGeneralSidebar
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ const paddingAppenderRef = usePaddingAppender();
+ const shouldIframe = useShouldIframe();
const {
createErrorNotice
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
const {
- setIsInserterOpened
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_editor_namespaceObject.store);
- const {
mode,
isFullscreenActive,
- isRichEditingEnabled,
- sidebarIsOpened,
hasActiveMetaboxes,
- previousShortcut,
- nextShortcut,
hasBlockSelected,
- isInserterOpened,
- isListViewOpened,
showIconLabels,
isDistractionFree,
- showBlockBreadcrumbs,
showMetaBoxes,
- documentLabel,
- hasHistory
+ hasHistory,
+ isEditingTemplate,
+ isWelcomeGuideVisible
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
get
} = select(external_wp_preferences_namespaceObject.store);
const {
- getEditorSettings,
- getPostTypeLabel
+ getEditorSettings
} = select(external_wp_editor_namespaceObject.store);
- const editorSettings = getEditorSettings();
- const postTypeLabel = getPostTypeLabel();
+ const {
+ isFeatureActive
+ } = select(store);
return {
- showMetaBoxes: select(external_wp_editor_namespaceObject.store).getRenderingMode() === 'post-only',
- sidebarIsOpened: !!(select(store).getActiveComplementaryArea(store_store.name) || select(store_store).isPublishSidebarOpened()),
- isFullscreenActive: select(store_store).isFeatureActive('fullscreenMode'),
- isInserterOpened: select(external_wp_editor_namespaceObject.store).isInserterOpened(),
- isListViewOpened: select(external_wp_editor_namespaceObject.store).isListViewOpened(),
- mode: select(store_store).getEditorMode(),
- isRichEditingEnabled: editorSettings.richEditingEnabled,
- hasActiveMetaboxes: select(store_store).hasMetaBoxes(),
- previousShortcut: select(external_wp_keyboardShortcuts_namespaceObject.store).getAllShortcutKeyCombinations('core/edit-post/previous-region'),
- nextShortcut: select(external_wp_keyboardShortcuts_namespaceObject.store).getAllShortcutKeyCombinations('core/edit-post/next-region'),
+ mode: select(external_wp_editor_namespaceObject.store).getEditorMode(),
+ isFullscreenActive: select(store).isFeatureActive('fullscreenMode'),
+ hasActiveMetaboxes: select(store).hasMetaBoxes(),
+ hasBlockSelected: !!select(external_wp_blockEditor_namespaceObject.store).getBlockSelectionStart(),
showIconLabels: get('core', 'showIconLabels'),
isDistractionFree: get('core', 'distractionFree'),
- showBlockBreadcrumbs: get('core', 'showBlockBreadcrumbs'),
- // translators: Default label for the Document in the Block Breadcrumb.
- documentLabel: postTypeLabel || (0,external_wp_i18n_namespaceObject._x)('Document', 'noun'),
- hasBlockSelected: !!select(external_wp_blockEditor_namespaceObject.store).getBlockSelectionStart(),
- hasHistory: !!getEditorSettings().onNavigateToPreviousEntityRecord
+ showMetaBoxes: select(external_wp_editor_namespaceObject.store).getRenderingMode() === 'post-only',
+ hasHistory: !!getEditorSettings().onNavigateToPreviousEntityRecord,
+ isEditingTemplate: select(external_wp_editor_namespaceObject.store).getCurrentPostType() === 'wp_template',
+ isWelcomeGuideVisible: isFeatureActive('welcomeGuide')
};
}, []);
// Set the right context for the command palette
- const commandContext = hasBlockSelected ? 'block-selection-edit' : 'post-editor-edit';
+ const commandContext = hasBlockSelected ? 'block-selection-edit' : 'entity-edit';
useCommandContext(commandContext);
const styles = useEditorStyles();
- const openSidebarPanel = () => openGeneralSidebar(hasBlockSelected ? 'edit-post/block' : 'edit-post/document');
-
- // Inserter and Sidebars are mutually exclusive
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (sidebarIsOpened && !isHugeViewport) {
- setIsInserterOpened(false);
- }
- }, [isHugeViewport, setIsInserterOpened, sidebarIsOpened]);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (isInserterOpened && !isHugeViewport) {
- closeGeneralSidebar();
- }
- }, [closeGeneralSidebar, isInserterOpened, isHugeViewport]);
-
- // Local state for save panel.
- // Note 'truthy' callback implies an open panel.
- const [entitiesSavedStatesCallback, setEntitiesSavedStatesCallback] = (0,external_wp_element_namespaceObject.useState)(false);
- const closeEntitiesSavedStates = (0,external_wp_element_namespaceObject.useCallback)(arg => {
- if (typeof entitiesSavedStatesCallback === 'function') {
- entitiesSavedStatesCallback(arg);
- }
- setEntitiesSavedStatesCallback(false);
- }, [entitiesSavedStatesCallback]);
// We need to add the show-icon-labels class to the body element so it is applied to modals.
if (showIconLabels) {
@@ -7098,84 +2815,87 @@ function Layout({
} else {
document.body.classList.remove('show-icon-labels');
}
- const className = classnames_default()('edit-post-layout', 'is-mode-' + mode, {
- 'is-sidebar-opened': sidebarIsOpened,
- 'has-metaboxes': hasActiveMetaboxes,
- 'is-distraction-free': isDistractionFree && isWideViewport,
- 'is-entity-save-view-open': !!entitiesSavedStatesCallback
+ const className = dist_clsx('edit-post-layout', 'is-mode-' + mode, {
+ 'has-metaboxes': hasActiveMetaboxes
});
- const secondarySidebarLabel = isListViewOpened ? (0,external_wp_i18n_namespaceObject.__)('Document Overview') : (0,external_wp_i18n_namespaceObject.__)('Block Library');
- const secondarySidebar = () => {
- if (mode === 'visual' && isInserterOpened) {
- return (0,external_React_namespaceObject.createElement)(InserterSidebar, null);
- }
- if (mode === 'visual' && isListViewOpened) {
- return (0,external_React_namespaceObject.createElement)(ListViewSidebar, null);
- }
- return null;
- };
function onPluginAreaError(name) {
createErrorNotice((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: plugin name */
(0,external_wp_i18n_namespaceObject.__)('The "%s" plugin has encountered an error and cannot be rendered.'), name));
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(fullscreen_mode, {
- isActive: isFullscreenActive
- }), (0,external_React_namespaceObject.createElement)(browser_url, {
- hasHistory: hasHistory
- }), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.UnsavedChangesWarning, null), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.AutosaveMonitor, null), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.LocalAutosaveMonitor, null), (0,external_React_namespaceObject.createElement)(keyboard_shortcuts, null), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.EditorKeyboardShortcutsRegister, null), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.EditorKeyboardShortcuts, null), (0,external_React_namespaceObject.createElement)(interface_skeleton, {
- isDistractionFree: isDistractionFree && isWideViewport,
- className: className,
- labels: {
- ...interfaceLabels,
- secondarySidebar: secondarySidebarLabel
- },
- header: (0,external_React_namespaceObject.createElement)(header, {
- setEntitiesSavedStatesCallback: setEntitiesSavedStatesCallback,
+ const {
+ createSuccessNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ const onActionPerformed = (0,external_wp_element_namespaceObject.useCallback)((actionId, items) => {
+ switch (actionId) {
+ case 'move-to-trash':
+ {
+ document.location.href = (0,external_wp_url_namespaceObject.addQueryArgs)('edit.php', {
+ trashed: 1,
+ post_type: items[0].type,
+ ids: items[0].id
+ });
+ }
+ break;
+ case 'duplicate-post':
+ {
+ const newItem = items[0];
+ const title = typeof newItem.title === 'string' ? newItem.title : newItem.title?.rendered;
+ createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Title of the created post e.g: "Post 1".
+ (0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title)), {
+ type: 'snackbar',
+ id: 'duplicate-post-action',
+ actions: [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Edit'),
+ onClick: () => {
+ const postId = newItem.id;
+ document.location.href = (0,external_wp_url_namespaceObject.addQueryArgs)('post.php', {
+ post: postId,
+ action: 'edit'
+ });
+ }
+ }]
+ });
+ }
+ break;
+ }
+ }, [createSuccessNotice]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FullscreenMode, {
+ isActive: isFullscreenActive
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(browser_url, {
+ hasHistory: hasHistory
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.UnsavedChangesWarning, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.AutosaveMonitor, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.LocalAutosaveMonitor, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(keyboard_shortcuts, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.EditorKeyboardShortcutsRegister, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockKeyboardShortcuts, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuide, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InitPatternModal, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_plugins_namespaceObject.PluginArea, {
+ onError: onPluginAreaError
+ }), !isDistractionFree && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Sidebar, {
+ onActionPerformed: onActionPerformed,
+ extraPanels: !isEditingTemplate && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MetaBoxes, {
+ location: "side"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(more_menu, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(back_button, {
initialPost: initialPost
- }),
- editorNotices: (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.EditorNotices, null),
- secondarySidebar: secondarySidebar(),
- sidebar: (!isMobileViewport || sidebarIsOpened) && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, !isMobileViewport && !sidebarIsOpened && (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-post-layout__toggle-sidebar-panel"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "secondary",
- className: "edit-post-layout__toggle-sidebar-panel-button",
- onClick: openSidebarPanel,
- "aria-expanded": false
- }, hasBlockSelected ? (0,external_wp_i18n_namespaceObject.__)('Open block settings') : (0,external_wp_i18n_namespaceObject.__)('Open document settings'))), (0,external_React_namespaceObject.createElement)(complementary_area.Slot, {
- scope: "core/edit-post"
- })),
- notices: (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.EditorSnackbars, null),
- content: (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, !isDistractionFree && (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.EditorNotices, null), (mode === 'text' || !isRichEditingEnabled) && (0,external_React_namespaceObject.createElement)(TextEditor, null), !isLargeViewport && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockToolbar, {
- hideDragHandle: true
- }), isRichEditingEnabled && mode === 'visual' && (0,external_React_namespaceObject.createElement)(VisualEditor, {
- styles: styles
- }), !isDistractionFree && showMetaBoxes && (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-post-layout__metaboxes"
- }, (0,external_React_namespaceObject.createElement)(MetaBoxes, {
- location: "normal"
- }), (0,external_React_namespaceObject.createElement)(MetaBoxes, {
- location: "advanced"
- })), isMobileViewport && sidebarIsOpened && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ScrollLock, null)),
- footer: !isDistractionFree && !isMobileViewport && showBlockBreadcrumbs && isRichEditingEnabled && mode === 'visual' && (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-post-layout__footer"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockBreadcrumb, {
- rootLabelText: documentLabel
- })),
- actions: (0,external_React_namespaceObject.createElement)(ActionsPanel, {
- closeEntitiesSavedStates: closeEntitiesSavedStates,
- isEntitiesSavedStatesOpen: entitiesSavedStatesCallback,
- setEntitiesSavedStatesCallback: setEntitiesSavedStatesCallback
- }),
- shortcuts: {
- previous: previousShortcut,
- next: nextShortcut
- }
- }), (0,external_React_namespaceObject.createElement)(EditPostPreferencesModal, null), (0,external_React_namespaceObject.createElement)(keyboard_shortcut_help_modal, null), (0,external_React_namespaceObject.createElement)(WelcomeGuide, null), (0,external_React_namespaceObject.createElement)(InitPatternModal, null), (0,external_React_namespaceObject.createElement)(StartPageOptions, null), (0,external_React_namespaceObject.createElement)(external_wp_plugins_namespaceObject.PluginArea, {
- onError: onPluginAreaError
- }), !isDistractionFree && (0,external_React_namespaceObject.createElement)(settings_sidebar, null));
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.EditorSnackbars, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditorInterface, {
+ className: className,
+ styles: styles,
+ forceIsDirty: hasActiveMetaboxes,
+ contentRef: paddingAppenderRef,
+ disableIframe: !shouldIframe
+ // We should auto-focus the canvas (title) on load.
+ // eslint-disable-next-line jsx-a11y/no-autofocus
+ ,
+ autoFocus: !isWelcomeGuideVisible,
+ children: !isDistractionFree && showMetaBoxes && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "edit-post-layout__metaboxes",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MetaBoxes, {
+ location: "normal"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MetaBoxes, {
+ location: "advanced"
+ })]
+ })
+ })]
+ });
}
-/* harmony default export */ const components_layout = (Layout);
+/* harmony default export */ const layout = (Layout);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/editor-initialization/listener-hooks.js
/**
@@ -7185,65 +2905,25 @@ function Layout({
-
-
/**
* Internal dependencies
*/
/**
- * This listener hook monitors for block selection and triggers the appropriate
- * sidebar state.
- *
- * @param {number} postId The current post id.
- */
-const useBlockSelectionListener = postId => {
- const {
- hasBlockSelection,
- isEditorSidebarOpened,
- isDistractionFree
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- get
- } = select(external_wp_preferences_namespaceObject.store);
- return {
- hasBlockSelection: !!select(external_wp_blockEditor_namespaceObject.store).getBlockSelectionStart(),
- isEditorSidebarOpened: select(constants_STORE_NAME).isEditorSidebarOpened(),
- isDistractionFree: get('core', 'distractionFree')
- };
- }, [postId]);
- const {
- openGeneralSidebar
- } = (0,external_wp_data_namespaceObject.useDispatch)(constants_STORE_NAME);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!isEditorSidebarOpened || isDistractionFree) {
- return;
- }
- if (hasBlockSelection) {
- openGeneralSidebar('edit-post/block');
- } else {
- openGeneralSidebar('edit-post/document');
- }
- }, [hasBlockSelection, isEditorSidebarOpened]);
-};
-
-/**
* This listener hook monitors any change in permalink and updates the view
* post link in the admin bar.
- *
- * @param {number} postId
*/
-const useUpdatePostLinkListener = postId => {
+const useUpdatePostLinkListener = () => {
const {
newPermalink
} = (0,external_wp_data_namespaceObject.useSelect)(select => ({
newPermalink: select(external_wp_editor_namespaceObject.store).getCurrentPost().link
- }), [postId]);
+ }), []);
const nodeToUpdate = (0,external_wp_element_namespaceObject.useRef)();
(0,external_wp_element_namespaceObject.useEffect)(() => {
nodeToUpdate.current = document.querySelector(VIEW_AS_PREVIEW_LINK_SELECTOR) || document.querySelector(VIEW_AS_LINK_SELECTOR);
- }, [postId]);
+ }, []);
(0,external_wp_element_namespaceObject.useEffect)(() => {
if (!newPermalink || !nodeToUpdate.current) {
return;
@@ -7262,14 +2942,10 @@ const useUpdatePostLinkListener = postId => {
* Data component used for initializing the editor and re-initializes
* when postId changes or on unmount.
*
- * @param {number} postId The id of the post.
* @return {null} This is a data component so does not render any ui.
*/
-function EditorInitialization({
- postId
-}) {
- useBlockSelectionListener(postId);
- useUpdatePostLinkListener(postId);
+function EditorInitialization() {
+ useUpdatePostLinkListener();
return null;
}
@@ -7279,6 +2955,8 @@ function EditorInitialization({
*/
+
+
/**
* A hook that records the 'entity' history in the post editor as a user
* navigates between editing a post and editing the post template or patterns.
@@ -7287,19 +2965,24 @@ function EditorInitialization({
*
* Used to control displaying UI elements like the back button.
*
- * @param {number} initialPostId The post id of the post when the editor loaded.
- * @param {string} initialPostType The post type of the post when the editor loaded.
+ * @param {number} initialPostId The post id of the post when the editor loaded.
+ * @param {string} initialPostType The post type of the post when the editor loaded.
+ * @param {string} defaultRenderingMode The rendering mode to switch to when navigating.
*
* @return {Object} An object containing the `currentPost` variable and
* `onNavigateToEntityRecord` and `onNavigateToPreviousEntityRecord` functions.
*/
-function useNavigateToEntityRecord(initialPostId, initialPostType) {
+function useNavigateToEntityRecord(initialPostId, initialPostType, defaultRenderingMode) {
const [postHistory, dispatch] = (0,external_wp_element_namespaceObject.useReducer)((historyState, {
type,
- post
+ post,
+ previousRenderingMode
}) => {
if (type === 'push') {
- return [...historyState, post];
+ return [...historyState, {
+ post,
+ previousRenderingMode
+ }];
}
if (type === 'pop') {
// Try to leave one item in the history.
@@ -7309,40 +2992,49 @@ function useNavigateToEntityRecord(initialPostId, initialPostType) {
}
return historyState;
}, [{
- postId: initialPostId,
- postType: initialPostType
+ post: {
+ postId: initialPostId,
+ postType: initialPostType
+ }
}]);
- const initialPost = (0,external_wp_element_namespaceObject.useMemo)(() => {
- return {
- type: initialPostType,
- id: initialPostId
- };
- }, [initialPostType, initialPostId]);
+ const {
+ post,
+ previousRenderingMode
+ } = postHistory[postHistory.length - 1];
+ const {
+ getRenderingMode
+ } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_editor_namespaceObject.store);
+ const {
+ setRenderingMode
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_editor_namespaceObject.store);
const onNavigateToEntityRecord = (0,external_wp_element_namespaceObject.useCallback)(params => {
dispatch({
type: 'push',
post: {
postId: params.postId,
postType: params.postType
- }
+ },
+ // Save the current rendering mode so we can restore it when navigating back.
+ previousRenderingMode: getRenderingMode()
});
- }, []);
+ setRenderingMode(defaultRenderingMode);
+ }, [getRenderingMode, setRenderingMode, defaultRenderingMode]);
const onNavigateToPreviousEntityRecord = (0,external_wp_element_namespaceObject.useCallback)(() => {
dispatch({
type: 'pop'
});
- }, []);
- const currentPost = postHistory[postHistory.length - 1];
+ if (previousRenderingMode) {
+ setRenderingMode(previousRenderingMode);
+ }
+ }, [setRenderingMode, previousRenderingMode]);
return {
- currentPost,
- initialPost,
+ currentPost: post,
onNavigateToEntityRecord,
onNavigateToPreviousEntityRecord: postHistory.length > 1 ? onNavigateToPreviousEntityRecord : undefined
};
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/editor.js
-
/**
* WordPress dependencies
*/
@@ -7353,9 +3045,6 @@ function useNavigateToEntityRecord(initialPostId, initialPostType) {
-
-
-
/**
* Internal dependencies
*/
@@ -7364,17 +3053,11 @@ function useNavigateToEntityRecord(initialPostId, initialPostType) {
+
+
const {
ExperimentalEditorProvider
} = unlock(external_wp_editor_namespaceObject.privateApis);
-const {
- BlockRemovalWarningModal
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
-// Prevent accidental removal of certain blocks, asking the user for
-// confirmation.
-const blockRemovalRules = {
- 'bindings/core/pattern-overrides': (0,external_wp_i18n_namespaceObject.__)('Blocks from synced patterns that can have overriden content.')
-};
function Editor({
postId: initialPostId,
postType: initialPostType,
@@ -7383,22 +3066,18 @@ function Editor({
...props
}) {
const {
- initialPost,
currentPost,
onNavigateToEntityRecord,
onNavigateToPreviousEntityRecord
- } = useNavigateToEntityRecord(initialPostId, initialPostType);
+ } = useNavigateToEntityRecord(initialPostId, initialPostType, 'post-only');
const {
- hasInlineToolbar,
post,
- preferredStyleVariations,
template
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
var _getPostType$viewable;
const {
- isFeatureActive,
getEditedPostTemplate
- } = select(store_store);
+ } = select(store);
const {
getEntityRecord,
getPostType,
@@ -7410,291 +3089,192 @@ function Editor({
const postObject = getEntityRecord('postType', currentPost.postType, currentPost.postId);
const supportsTemplateMode = getEditorSettings().supportsTemplateMode;
const isViewable = (_getPostType$viewable = getPostType(currentPost.postType)?.viewable) !== null && _getPostType$viewable !== void 0 ? _getPostType$viewable : false;
- const canEditTemplate = canUser('create', 'templates');
+ const canViewTemplate = canUser('read', 'templates');
return {
- hasInlineToolbar: isFeatureActive('inlineToolbar'),
- preferredStyleVariations: select(external_wp_preferences_namespaceObject.store).get('core/edit-post', 'preferredStyleVariations'),
- template: supportsTemplateMode && isViewable && canEditTemplate && currentPost.postType !== 'wp_template' ? getEditedPostTemplate() : null,
+ template: supportsTemplateMode && isViewable && canViewTemplate && currentPost.postType !== 'wp_template' ? getEditedPostTemplate() : null,
post: postObject
};
}, [currentPost.postType, currentPost.postId]);
- const {
- updatePreferredStyleVariations
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
const editorSettings = (0,external_wp_element_namespaceObject.useMemo)(() => ({
...settings,
onNavigateToEntityRecord,
onNavigateToPreviousEntityRecord,
- defaultRenderingMode: 'post-only',
- __experimentalPreferredStyleVariations: {
- value: preferredStyleVariations,
- onChange: updatePreferredStyleVariations
- },
- hasInlineToolbar
- }), [settings, hasInlineToolbar, preferredStyleVariations, updatePreferredStyleVariations, onNavigateToEntityRecord, onNavigateToPreviousEntityRecord]);
+ defaultRenderingMode: 'post-only'
+ }), [settings, onNavigateToEntityRecord, onNavigateToPreviousEntityRecord]);
+ const initialPost = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return {
+ type: initialPostType,
+ id: initialPostId
+ };
+ }, [initialPostType, initialPostId]);
if (!post) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SlotFillProvider, null, (0,external_React_namespaceObject.createElement)(ExperimentalEditorProvider, {
- settings: editorSettings,
- post: post,
- initialEdits: initialEdits,
- useSubRegistry: false,
- __unstableTemplate: template,
- ...props
- }, (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.ErrorBoundary, null, (0,external_React_namespaceObject.createElement)(external_wp_commands_namespaceObject.CommandMenu, null), (0,external_React_namespaceObject.createElement)(EditorInitialization, {
- postId: currentPost.postId
- }), (0,external_React_namespaceObject.createElement)(components_layout, {
- initialPost: initialPost
- }), (0,external_React_namespaceObject.createElement)(BlockRemovalWarningModal, {
- rules: blockRemovalRules
- })), (0,external_React_namespaceObject.createElement)(external_wp_editor_namespaceObject.PostLockedModal, null)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SlotFillProvider, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ExperimentalEditorProvider, {
+ settings: editorSettings,
+ post: post,
+ initialEdits: initialEdits,
+ useSubRegistry: false,
+ __unstableTemplate: template,
+ ...props,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_editor_namespaceObject.ErrorBoundary, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_commands_namespaceObject.CommandMenu, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditorInitialization, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(layout, {
+ initialPost: initialPost
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PostLockedModal, {})]
+ })
+ });
}
/* harmony default export */ const editor = (Editor);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/deprecated.js
/**
* WordPress dependencies
*/
-const isEverySelectedBlockAllowed = (selected, allowed) => selected.filter(id => !allowed.includes(id)).length === 0;
/**
- * Plugins may want to add an item to the menu either for every block
- * or only for the specific ones provided in the `allowedBlocks` component property.
- *
- * If there are multiple blocks selected the item will be rendered if every block
- * is of one allowed type (not necessarily the same).
- *
- * @param {string[]} selectedBlocks Array containing the names of the blocks selected
- * @param {string[]} allowedBlocks Array containing the names of the blocks allowed
- * @return {boolean} Whether the item will be rendered or not.
+ * Internal dependencies
*/
-const shouldRenderItem = (selectedBlocks, allowedBlocks) => !Array.isArray(allowedBlocks) || isEverySelectedBlockAllowed(selectedBlocks, allowedBlocks);
+
+const {
+ PluginPostExcerpt
+} = unlock(external_wp_editor_namespaceObject.privateApis);
+const isSiteEditor = (0,external_wp_url_namespaceObject.getPath)(window.location.href)?.includes('site-editor.php');
+const deprecateSlot = name => {
+ external_wp_deprecated_default()(`wp.editPost.${name}`, {
+ since: '6.6',
+ alternative: `wp.editor.${name}`
+ });
+};
+
+/* eslint-disable jsdoc/require-param */
/**
- * Renders a new item in the block settings menu.
- *
- * @param {Object} props Component props.
- * @param {Array} [props.allowedBlocks] An array containing a list of block names for which the item should be shown. If not present, it'll be rendered for any block. If multiple blocks are selected, it'll be shown if and only if all of them are in the allowed list.
- * @param {WPBlockTypeIconRender} [props.icon] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element.
- * @param {string} props.label The menu item text.
- * @param {Function} props.onClick Callback function to be executed when the user click the menu item.
- * @param {boolean} [props.small] Whether to render the label or not.
- * @param {string} [props.role] The ARIA role for the menu item.
- *
- * @example
- * ```js
- * // Using ES5 syntax
- * var __ = wp.i18n.__;
- * var PluginBlockSettingsMenuItem = wp.editPost.PluginBlockSettingsMenuItem;
- *
- * function doOnClick(){
- * // To be called when the user clicks the menu item.
- * }
- *
- * function MyPluginBlockSettingsMenuItem() {
- * return React.createElement(
- * PluginBlockSettingsMenuItem,
- * {
- * allowedBlocks: [ 'core/paragraph' ],
- * icon: 'dashicon-name',
- * label: __( 'Menu item text' ),
- * onClick: doOnClick,
- * }
- * );
- * }
- * ```
- *
- * @example
- * ```jsx
- * // Using ESNext syntax
- * import { __ } from '@wordpress/i18n';
- * import { PluginBlockSettingsMenuItem } from '@wordpress/edit-post';
- *
- * const doOnClick = ( ) => {
- * // To be called when the user clicks the menu item.
- * };
- *
- * const MyPluginBlockSettingsMenuItem = () => (
- * <PluginBlockSettingsMenuItem
- * allowedBlocks={ [ 'core/paragraph' ] }
- * icon='dashicon-name'
- * label={ __( 'Menu item text' ) }
- * onClick={ doOnClick } />
- * );
- * ```
- *
- * @return {Component} The component to be rendered.
+ * @see PluginBlockSettingsMenuItem in @wordpress/editor package.
*/
-const PluginBlockSettingsMenuItem = ({
- allowedBlocks,
- icon,
- label,
- onClick,
- small,
- role
-}) => (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockSettingsMenuControls, null, ({
- selectedBlocks,
- onClose
-}) => {
- if (!shouldRenderItem(selectedBlocks, allowedBlocks)) {
+function PluginBlockSettingsMenuItem(props) {
+ if (isSiteEditor) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: (0,external_wp_compose_namespaceObject.compose)(onClick, onClose),
- icon: icon,
- label: small ? label : undefined,
- role: role
- }, !small && label);
-});
-/* harmony default export */ const plugin_block_settings_menu_item = (PluginBlockSettingsMenuItem);
+ deprecateSlot('PluginBlockSettingsMenuItem');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginBlockSettingsMenuItem, {
+ ...props
+ });
+}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/plugin-more-menu-item/index.js
/**
- * WordPress dependencies
+ * @see PluginDocumentSettingPanel in @wordpress/editor package.
*/
-
-
-
-
+function PluginDocumentSettingPanel(props) {
+ if (isSiteEditor) {
+ return null;
+ }
+ deprecateSlot('PluginDocumentSettingPanel');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginDocumentSettingPanel, {
+ ...props
+ });
+}
/**
- * Renders a menu item in `Plugins` group in `More Menu` drop down, and can be used to as a button or link depending on the props provided.
- * The text within the component appears as the menu item label.
- *
- * @param {Object} props Component properties.
- * @param {string} [props.href] When `href` is provided then the menu item is represented as an anchor rather than button. It corresponds to the `href` attribute of the anchor.
- * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered to the left of the menu item label.
- * @param {Function} [props.onClick=noop] The callback function to be executed when the user clicks the menu item.
- * @param {...*} [props.other] Any additional props are passed through to the underlying [MenuItem](https://github.com/WordPress/gutenberg/tree/HEAD/packages/components/src/menu-item/README.md) component.
- *
- * @example
- * ```js
- * // Using ES5 syntax
- * var __ = wp.i18n.__;
- * var PluginMoreMenuItem = wp.editPost.PluginMoreMenuItem;
- * var moreIcon = React.createElement( 'svg' ); //... svg element.
- *
- * function onButtonClick() {
- * alert( 'Button clicked.' );
- * }
- *
- * function MyButtonMoreMenuItem() {
- * return React.createElement(
- * PluginMoreMenuItem,
- * {
- * icon: moreIcon,
- * onClick: onButtonClick,
- * },
- * __( 'My button title' )
- * );
- * }
- * ```
- *
- * @example
- * ```jsx
- * // Using ESNext syntax
- * import { __ } from '@wordpress/i18n';
- * import { PluginMoreMenuItem } from '@wordpress/edit-post';
- * import { more } from '@wordpress/icons';
- *
- * function onButtonClick() {
- * alert( 'Button clicked.' );
- * }
- *
- * const MyButtonMoreMenuItem = () => (
- * <PluginMoreMenuItem
- * icon={ more }
- * onClick={ onButtonClick }
- * >
- * { __( 'My button title' ) }
- * </PluginMoreMenuItem>
- * );
- * ```
- *
- * @return {Component} The component to be rendered.
+ * @see PluginMoreMenuItem in @wordpress/editor package.
*/
-/* harmony default export */ const plugin_more_menu_item = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_plugins_namespaceObject.withPluginContext)((context, ownProps) => {
- var _ownProps$as;
- return {
- as: (_ownProps$as = ownProps.as) !== null && _ownProps$as !== void 0 ? _ownProps$as : external_wp_components_namespaceObject.MenuItem,
- icon: ownProps.icon || context.icon,
- name: 'core/edit-post/plugin-more-menu'
- };
-}))(action_item));
+function PluginMoreMenuItem(props) {
+ if (isSiteEditor) {
+ return null;
+ }
+ deprecateSlot('PluginMoreMenuItem');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginMoreMenuItem, {
+ ...props
+ });
+}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/plugin-sidebar-more-menu-item/index.js
+/**
+ * @see PluginPrePublishPanel in @wordpress/editor package.
+ */
+function PluginPrePublishPanel(props) {
+ if (isSiteEditor) {
+ return null;
+ }
+ deprecateSlot('PluginPrePublishPanel');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginPrePublishPanel, {
+ ...props
+ });
+}
/**
- * WordPress dependencies
+ * @see PluginPostPublishPanel in @wordpress/editor package.
*/
+function PluginPostPublishPanel(props) {
+ if (isSiteEditor) {
+ return null;
+ }
+ deprecateSlot('PluginPostPublishPanel');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginPostPublishPanel, {
+ ...props
+ });
+}
+/**
+ * @see PluginPostStatusInfo in @wordpress/editor package.
+ */
+function PluginPostStatusInfo(props) {
+ if (isSiteEditor) {
+ return null;
+ }
+ deprecateSlot('PluginPostStatusInfo');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginPostStatusInfo, {
+ ...props
+ });
+}
/**
- * Renders a menu item in `Plugins` group in `More Menu` drop down,
- * and can be used to activate the corresponding `PluginSidebar` component.
- * The text within the component appears as the menu item label.
- *
- * @param {Object} props Component props.
- * @param {string} props.target A string identifying the target sidebar you wish to be activated by this menu item. Must be the same as the `name` prop you have given to that sidebar.
- * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered to the left of the menu item label.
- *
- * @example
- * ```js
- * // Using ES5 syntax
- * var __ = wp.i18n.__;
- * var PluginSidebarMoreMenuItem = wp.editPost.PluginSidebarMoreMenuItem;
- * var moreIcon = React.createElement( 'svg' ); //... svg element.
- *
- * function MySidebarMoreMenuItem() {
- * return React.createElement(
- * PluginSidebarMoreMenuItem,
- * {
- * target: 'my-sidebar',
- * icon: moreIcon,
- * },
- * __( 'My sidebar title' )
- * )
- * }
- * ```
- *
- * @example
- * ```jsx
- * // Using ESNext syntax
- * import { __ } from '@wordpress/i18n';
- * import { PluginSidebarMoreMenuItem } from '@wordpress/edit-post';
- * import { more } from '@wordpress/icons';
- *
- * const MySidebarMoreMenuItem = () => (
- * <PluginSidebarMoreMenuItem
- * target="my-sidebar"
- * icon={ more }
- * >
- * { __( 'My sidebar title' ) }
- * </PluginSidebarMoreMenuItem>
- * );
- * ```
- *
- * @return {Component} The component to be rendered.
+ * @see PluginSidebar in @wordpress/editor package.
*/
+function PluginSidebar(props) {
+ if (isSiteEditor) {
+ return null;
+ }
+ deprecateSlot('PluginSidebar');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginSidebar, {
+ ...props
+ });
+}
+/**
+ * @see PluginSidebarMoreMenuItem in @wordpress/editor package.
+ */
function PluginSidebarMoreMenuItem(props) {
- return (0,external_React_namespaceObject.createElement)(ComplementaryAreaMoreMenuItem
- // Menu item is marked with unstable prop for backward compatibility.
- // @see https://github.com/WordPress/gutenberg/issues/14457
- , {
- __unstableExplicitMenuItem: true,
- scope: "core/edit-post",
+ if (isSiteEditor) {
+ return null;
+ }
+ deprecateSlot('PluginSidebarMoreMenuItem');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginSidebarMoreMenuItem, {
...props
});
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/index.js
+/**
+ * @see PluginPostExcerpt in @wordpress/editor package.
+ */
+function __experimentalPluginPostExcerpt() {
+ if (isSiteEditor) {
+ return null;
+ }
+ external_wp_deprecated_default()('wp.editPost.__experimentalPluginPostExcerpt', {
+ since: '6.6',
+ hint: 'Core and custom panels can be access programmatically using their panel name.',
+ link: 'https://developer.wordpress.org/block-editor/reference-guides/slotfills/plugin-document-setting-panel/#accessing-a-panel-programmatically'
+ });
+ return PluginPostExcerpt;
+}
+/* eslint-enable jsdoc/require-param */
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/index.js
/**
* WordPress dependencies
*/
@@ -7707,16 +3287,14 @@ function PluginSidebarMoreMenuItem(props) {
-
/**
* Internal dependencies
*/
-
const {
- PluginPostExcerpt: __experimentalPluginPostExcerpt
+ BackButton: __experimentalMainDashboardButton
} = unlock(external_wp_editor_namespaceObject.privateApis);
/**
@@ -7736,8 +3314,6 @@ function initializeEditor(id, postType, postId, settings, initialEdits) {
const root = (0,external_wp_element_namespaceObject.createRoot)(target);
(0,external_wp_data_namespaceObject.dispatch)(external_wp_preferences_namespaceObject.store).setDefaults('core/edit-post', {
fullscreenMode: true,
- isPublishSidebarEnabled: true,
- preferredStyleVariations: {},
themeStyles: true,
welcomeGuide: true,
welcomeGuideTemplate: true
@@ -7751,7 +3327,8 @@ function initializeEditor(id, postType, postId, settings, initialEdits) {
openPanels: ['post-status'],
showBlockBreadcrumbs: true,
showIconLabels: false,
- showListViewByDefault: false
+ showListViewByDefault: false,
+ isPublishSidebarEnabled: true
});
(0,external_wp_data_namespaceObject.dispatch)(external_wp_blocks_namespaceObject.store).reapplyBlockTypeFilters();
@@ -7770,34 +3347,6 @@ function initializeEditor(id, postType, postId, settings, initialEdits) {
});
if (false) {}
- /*
- * Prevent adding template part in the post editor.
- * Only add the filter when the post editor is initialized, not imported.
- * Also only add the filter(s) after registerCoreBlocks()
- * so that common filters in the block library are not overwritten.
- */
- (0,external_wp_hooks_namespaceObject.addFilter)('blockEditor.__unstableCanInsertBlockType', 'removeTemplatePartsFromInserter', (canInsert, blockType) => {
- if (blockType.name === 'core/template-part') {
- return false;
- }
- return canInsert;
- });
-
- /*
- * Prevent adding post content block (except in query block) in the post editor.
- * Only add the filter when the post editor is initialized, not imported.
- * Also only add the filter(s) after registerCoreBlocks()
- * so that common filters in the block library are not overwritten.
- */
- (0,external_wp_hooks_namespaceObject.addFilter)('blockEditor.__unstableCanInsertBlockType', 'removePostContentFromInserter', (canInsert, blockType, rootClientId, {
- getBlockParentsByBlockName
- }) => {
- if (blockType.name === 'core/post-content') {
- return getBlockParentsByBlockName(rootClientId, 'core/query').length > 0;
- }
- return canInsert;
- });
-
// Show a console log warning if the browser is not in Standards rendering mode.
const documentMode = document.compatMode === 'CSS1Compat' ? 'Standards' : 'Quirks';
if (documentMode !== 'Standards') {
@@ -7833,7 +3382,7 @@ function initializeEditor(id, postType, postId, settings, initialEdits) {
// Prevent the default browser action for files dropped outside of dropzones.
window.addEventListener('dragover', e => e.preventDefault(), false);
window.addEventListener('drop', e => e.preventDefault(), false);
- root.render((0,external_React_namespaceObject.createElement)(editor, {
+ root.render( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(editor, {
settings: settings,
postId: postId,
postType: postType,
@@ -7856,16 +3405,6 @@ function reinitializeEditor() {
-
-
-
-
-
-
-
-
-})();
-
(window.wp = window.wp || {}).editPost = __webpack_exports__;
/******/ })()
; \ No newline at end of file
diff --git a/wp-includes/js/dist/edit-post.min.js b/wp-includes/js/dist/edit-post.min.js
index 7579df5..aceb2be 100644
--- a/wp-includes/js/dist/edit-post.min.js
+++ b/wp-includes/js/dist/edit-post.min.js
@@ -1,7 +1,2 @@
/*! This file is auto-generated */
-(()=>{var e={5755:(e,t)=>{var o;
-/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var a=typeof o;if("string"===a||"number"===a)e.push(o);else if(Array.isArray(o)){if(o.length){var s=r.apply(null,o);s&&e.push(s)}}else if("object"===a){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var i in o)n.call(o,i)&&o[i]&&e.push(i)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{PluginBlockSettingsMenuItem:()=>vr,PluginDocumentSettingPanel:()=>kn,PluginMoreMenuItem:()=>yr,PluginPostPublishPanel:()=>Hn,PluginPostStatusInfo:()=>gn,PluginPrePublishPanel:()=>qn,PluginSidebar:()=>Cn,PluginSidebarMoreMenuItem:()=>fr,__experimentalFullscreenModeClose:()=>Io,__experimentalMainDashboardButton:()=>Uo,__experimentalPluginPostExcerpt:()=>wr,initializeEditor:()=>Sr,reinitializeEditor:()=>Pr,store:()=>ro});var e={};o.r(e),o.d(e,{closeModal:()=>Y,disableComplementaryArea:()=>H,enableComplementaryArea:()=>z,openModal:()=>Q,pinItem:()=>U,setDefaultComplementaryArea:()=>G,setFeatureDefaults:()=>j,setFeatureValue:()=>q,toggleFeature:()=>W,unpinItem:()=>$});var t={};o.r(t),o.d(t,{getActiveComplementaryArea:()=>Z,isComplementaryAreaLoading:()=>X,isFeatureActive:()=>J,isItemPinned:()=>K,isModalActive:()=>ee});var r={};o.r(r),o.d(r,{__experimentalSetPreviewDeviceType:()=>ht,__unstableCreateTemplate:()=>vt,closeGeneralSidebar:()=>Ze,closeModal:()=>Ke,closePublishSidebar:()=>et,hideBlockTypes:()=>dt,initializeMetaBoxes:()=>ft,metaBoxUpdatesFailure:()=>gt,metaBoxUpdatesSuccess:()=>pt,openGeneralSidebar:()=>Ye,openModal:()=>Xe,openPublishSidebar:()=>Je,removeEditorPanel:()=>rt,requestMetaBoxUpdates:()=>mt,setAvailableMetaBoxesPerLocation:()=>ut,setIsEditingTemplate:()=>_t,setIsInserterOpened:()=>bt,setIsListViewOpened:()=>Et,showBlockTypes:()=>ct,switchEditorMode:()=>st,toggleDistractionFree:()=>wt,toggleEditorPanelEnabled:()=>ot,toggleEditorPanelOpened:()=>nt,toggleFeature:()=>at,togglePinnedPluginItem:()=>it,togglePublishSidebar:()=>tt,updatePreferredStyleVariations:()=>lt});var a={};o.r(a),o.d(a,{__experimentalGetInsertionPoint:()=>Kt,__experimentalGetPreviewDeviceType:()=>Zt,areMetaBoxesInitialized:()=>to,getActiveGeneralSidebarName:()=>It,getActiveMetaBoxLocations:()=>Ut,getAllMetaBoxes:()=>jt,getEditedPostTemplate:()=>oo,getEditorMode:()=>Tt,getHiddenBlockTypes:()=>Ft,getMetaBoxesPerLocation:()=>qt,getPreference:()=>Lt,getPreferences:()=>Nt,hasMetaBoxes:()=>Qt,isEditingTemplate:()=>eo,isEditorPanelEnabled:()=>Ot,isEditorPanelOpened:()=>Vt,isEditorPanelRemoved:()=>Rt,isEditorSidebarOpened:()=>Bt,isFeatureActive:()=>zt,isInserterOpened:()=>Xt,isListViewOpened:()=>Jt,isMetaBoxLocationActive:()=>Wt,isMetaBoxLocationVisible:()=>$t,isModalActive:()=>Gt,isPluginItemPinned:()=>Ht,isPluginSidebarOpened:()=>At,isPublishSidebarOpened:()=>Dt,isSavingMetaBoxes:()=>Yt});const s=window.React,i=window.wp.blocks,l=window.wp.blockLibrary,c=window.wp.deprecated;var d=o.n(c);const u=window.wp.element,m=window.wp.data,p=window.wp.hooks,g=window.wp.preferences,h=window.wp.widgets,b=window.wp.editor,E=window.wp.mediaUtils;(0,p.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",(()=>E.MediaUpload));const _=window.wp.components,v=window.wp.blockEditor,y=window.wp.i18n,f=window.wp.compose;function w(e,t){if(Array.isArray(e)&&e.length)for(const o of e){if(o.name===t)return o;const e=w(o.innerBlocks,t);if(e)return e}}const S=(0,f.compose)((0,m.withSelect)(((e,t)=>{if((0,i.hasBlockSupport)(t.name,"multiple",!0))return{};const o=w(e(v.store).getBlocks(),t.name);return{originalBlockClientId:o&&o.clientId!==t.clientId&&o.clientId}})),(0,m.withDispatch)(((e,{originalBlockClientId:t})=>({selectFirst:()=>e(v.store).selectBlock(t)})))),P=(0,f.createHigherOrderComponent)((e=>S((({originalBlockClientId:t,selectFirst:o,...n})=>{if(!t)return(0,s.createElement)(e,{...n});const r=(0,i.getBlockType)(n.name),a=function(e){const t=(0,i.findTransform)((0,i.getBlockTransforms)("to",e),(({type:e,blocks:t})=>"block"===e&&1===t.length));if(!t)return null;return(0,i.getBlockType)(t.blocks[0])}(n.name);return[(0,s.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},(0,s.createElement)(e,{key:"block-edit",...n})),(0,s.createElement)(v.Warning,{key:"multiple-use-warning",actions:[(0,s.createElement)(_.Button,{key:"find-original",variant:"secondary",onClick:o},(0,y.__)("Find original")),(0,s.createElement)(_.Button,{key:"remove",variant:"secondary",onClick:()=>n.onReplace([])},(0,y.__)("Remove")),a&&(0,s.createElement)(_.Button,{key:"transform",variant:"secondary",onClick:()=>n.onReplace((0,i.createBlock)(a.name,n.attributes))},(0,y.__)("Transform into:")," ",a.title)]},(0,s.createElement)("strong",null,r?.title,": "),(0,y.__)("This block can only be used once."))]}))),"withMultipleValidation");(0,p.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",P);const k=window.wp.coreData,C=window.wp.primitives,M=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})),x=window.wp.plugins,T=window.wp.url,B=window.wp.notices;function A(){const{createNotice:e}=(0,m.useDispatch)(B.store),{getEditedPostAttribute:t}=(0,m.useSelect)(b.store);const o=(0,f.useCopyToClipboard)((function(){return t("content")}),(function(){e("info",(0,y.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}));return(0,s.createElement)(_.MenuItem,{ref:o},(0,y.__)("Copy all blocks"))}const I=window.wp.keycodes;var N=o(5755),L=o.n(N);const F=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),D=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.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"})),R=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.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"})),O=window.wp.viewport,V=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),G=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),z=(e,t)=>({registry:o,dispatch:n})=>{if(!t)return;o.select(g.store).get(e,"isComplementaryAreaVisible")||o.dispatch(g.store).set(e,"isComplementaryAreaVisible",!0),n({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},H=e=>({registry:t})=>{t.select(g.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(g.store).set(e,"isComplementaryAreaVisible",!1)},U=(e,t)=>({registry:o})=>{if(!t)return;const n=o.select(g.store).get(e,"pinnedItems");!0!==n?.[t]&&o.dispatch(g.store).set(e,"pinnedItems",{...n,[t]:!0})},$=(e,t)=>({registry:o})=>{if(!t)return;const n=o.select(g.store).get(e,"pinnedItems");o.dispatch(g.store).set(e,"pinnedItems",{...n,[t]:!1})};function W(e,t){return function({registry:o}){d()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),o.dispatch(g.store).toggle(e,t)}}function q(e,t,o){return function({registry:n}){d()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),n.dispatch(g.store).set(e,t,!!o)}}function j(e,t){return function({registry:o}){d()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),o.dispatch(g.store).setDefaults(e,t)}}function Q(e){return{type:"OPEN_MODAL",name:e}}function Y(){return{type:"CLOSE_MODAL"}}const Z=(0,m.createRegistrySelector)((e=>(t,o)=>{const n=e(g.store).get(o,"isComplementaryAreaVisible");if(void 0!==n)return!1===n?null:t?.complementaryAreas?.[o]})),X=(0,m.createRegistrySelector)((e=>(t,o)=>{const n=e(g.store).get(o,"isComplementaryAreaVisible"),r=t?.complementaryAreas?.[o];return n&&void 0===r})),K=(0,m.createRegistrySelector)((e=>(t,o,n)=>{var r;const a=e(g.store).get(o,"pinnedItems");return null===(r=a?.[n])||void 0===r||r})),J=(0,m.createRegistrySelector)((e=>(t,o,n)=>(d()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(g.store).get(o,n))));function ee(e,t){return e.activeModal===t}const te=(0,m.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:o,area:n}=t;return e[o]?e:{...e,[o]:n}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:o,area:n}=t;return{...e,[o]:n}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}}),oe=(0,m.createReduxStore)("core/interface",{reducer:te,actions:e,selectors:t});(0,m.register)(oe);const ne=(0,x.withPluginContext)(((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`})));const re=ne((function({as:e=_.Button,scope:t,identifier:o,icon:n,selectedIcon:r,name:a,...i}){const l=e,c=(0,m.useSelect)((e=>e(oe).getActiveComplementaryArea(t)===o),[o,t]),{enableComplementaryArea:d,disableComplementaryArea:u}=(0,m.useDispatch)(oe);return(0,s.createElement)(l,{icon:r&&c?r:n,"aria-controls":o.replace("/",":"),onClick:()=>{c?u(t):d(t,o)},...i})})),ae=({smallScreenTitle:e,children:t,className:o,toggleButtonProps:n})=>{const r=(0,s.createElement)(re,{icon:V,...n});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},e&&(0,s.createElement)("span",{className:"interface-complementary-area-header__small-title"},e),r),(0,s.createElement)("div",{className:L()("components-panel__header","interface-complementary-area-header",o),tabIndex:-1},t,r))},se=()=>{};function ie({name:e,as:t=_.Button,onClick:o,...n}){return(0,s.createElement)(_.Fill,{name:e},(({onClick:e})=>(0,s.createElement)(t,{onClick:o||e?(...t)=>{(o||se)(...t),(e||se)(...t)}:void 0,...n})))}ie.Slot=function({name:e,as:t=_.ButtonGroup,fillProps:o={},bubblesVirtually:n,...r}){return(0,s.createElement)(_.Slot,{name:e,bubblesVirtually:n,fillProps:o},(e=>{if(!u.Children.toArray(e).length)return null;const o=[];u.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&o.push(t)}));const n=u.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&o.includes(e.props.__unstableTarget)?null:e));return(0,s.createElement)(t,{...r},n)}))};const le=ie,ce=({__unstableExplicitMenuItem:e,__unstableTarget:t,...o})=>(0,s.createElement)(_.MenuItem,{...o});function de({scope:e,target:t,__unstableExplicitMenuItem:o,...n}){return(0,s.createElement)(re,{as:n=>(0,s.createElement)(le,{__unstableExplicitMenuItem:o,__unstableTarget:`${e}/${t}`,as:ce,name:`${e}/plugin-more-menu`,...n}),role:"menuitemcheckbox",selectedIcon:F,name:t,scope:e,...n})}function ue({scope:e,...t}){return(0,s.createElement)(_.Fill,{name:`PinnedItems/${e}`,...t})}ue.Slot=function({scope:e,className:t,...o}){return(0,s.createElement)(_.Slot,{name:`PinnedItems/${e}`,...o},(e=>e?.length>0&&(0,s.createElement)("div",{className:L()(t,"interface-pinned-items")},e)))};const me=ue;function pe({scope:e,children:t,className:o,id:n}){return(0,s.createElement)(_.Fill,{name:`ComplementaryArea/${e}`},(0,s.createElement)("div",{id:n,className:o},t))}const ge=ne((function({children:e,className:t,closeLabel:o=(0,y.__)("Close plugin"),identifier:n,header:r,headerClassName:a,icon:i,isPinnable:l=!0,panelClassName:c,scope:d,name:p,smallScreenTitle:h,title:b,toggleShortcut:E,isActiveByDefault:v}){const{isLoading:f,isActive:w,isPinned:S,activeArea:P,isSmall:k,isLarge:C,showIconLabels:M}=(0,m.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:o,isItemPinned:r}=e(oe),{get:a}=e(g.store),s=t(d);return{isLoading:o(d),isActive:s===n,isPinned:r(d,n),activeArea:s,isSmall:e(O.store).isViewportMatch("< medium"),isLarge:e(O.store).isViewportMatch("large"),showIconLabels:a("core","showIconLabels")}}),[n,d]);!function(e,t,o,n,r){const a=(0,u.useRef)(!1),s=(0,u.useRef)(!1),{enableComplementaryArea:i,disableComplementaryArea:l}=(0,m.useDispatch)(oe);(0,u.useEffect)((()=>{n&&r&&!a.current?(l(e),s.current=!0):s.current&&!r&&a.current?(s.current=!1,i(e,t)):s.current&&o&&o!==t&&(s.current=!1),r!==a.current&&(a.current=r)}),[n,r,e,t,o,l,i])}(d,n,P,w,k);const{enableComplementaryArea:x,disableComplementaryArea:T,pinItem:B,unpinItem:A}=(0,m.useDispatch)(oe);return(0,u.useEffect)((()=>{v&&void 0===P&&!k?x(d,n):void 0===P&&k&&T(d,n)}),[P,v,d,n,k,x,T]),(0,s.createElement)(s.Fragment,null,l&&(0,s.createElement)(me,{scope:d},S&&(0,s.createElement)(re,{scope:d,identifier:n,isPressed:w&&(!M||C),"aria-expanded":w,"aria-disabled":f,label:b,icon:M?F:i,showTooltip:!M,variant:M?"tertiary":void 0,size:"compact"})),p&&l&&(0,s.createElement)(de,{target:p,scope:d,icon:i},b),w&&(0,s.createElement)(pe,{className:L()("interface-complementary-area",t),scope:d,id:n.replace("/",":")},(0,s.createElement)(ae,{className:a,closeLabel:o,onClose:()=>T(d),smallScreenTitle:h,toggleButtonProps:{label:o,shortcut:E,scope:d,identifier:n}},r||(0,s.createElement)(s.Fragment,null,(0,s.createElement)("strong",null,b),l&&(0,s.createElement)(_.Button,{className:"interface-complementary-area__pin-unpin-item",icon:S?D:R,label:S?(0,y.__)("Unpin from toolbar"):(0,y.__)("Pin to toolbar"),onClick:()=>(S?A:B)(d,n),isPressed:S,"aria-expanded":S}))),(0,s.createElement)(_.Panel,{className:c},e)))}));ge.Slot=function({scope:e,...t}){return(0,s.createElement)(_.Slot,{name:`ComplementaryArea/${e}`,...t})};const he=ge,be=({isActive:e})=>((0,u.useEffect)((()=>{let e=!1;return document.body.classList.contains("sticky-menu")&&(e=!0,document.body.classList.remove("sticky-menu")),()=>{e&&document.body.classList.add("sticky-menu")}}),[]),(0,u.useEffect)((()=>(e?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{e&&document.body.classList.remove("is-fullscreen-mode")})),[e]),null);function Ee({children:e,className:t,ariaLabel:o,as:n="div",...r}){return(0,s.createElement)(n,{className:L()("interface-navigable-region",t),"aria-label":o,role:"region",tabIndex:"-1",...r},e)}const _e={hidden:{opacity:0},hover:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},distractionFreeInactive:{opacity:1,transition:{delay:0}}};const ve=(0,u.forwardRef)((function({isDistractionFree:e,footer:t,header:o,editorNotices:n,sidebar:r,secondarySidebar:a,notices:i,content:l,actions:c,labels:d,className:m,enableRegionNavigation:p=!0,shortcuts:g},h){const b=(0,_.__unstableUseNavigateRegions)(g);!function(e){(0,u.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("interface-interface-skeleton__html-container");const E={...{header:(0,y._x)("Header","header landmark area"),body:(0,y.__)("Content"),secondarySidebar:(0,y.__)("Block Library"),sidebar:(0,y.__)("Settings"),actions:(0,y.__)("Publish"),footer:(0,y.__)("Footer")},...d};return(0,s.createElement)("div",{...p?b:{},ref:(0,f.useMergeRefs)([h,p?b.ref:void 0]),className:L()(m,"interface-interface-skeleton",b.className,!!t&&"has-footer")},(0,s.createElement)("div",{className:"interface-interface-skeleton__editor"},!!o&&(0,s.createElement)(Ee,{as:_.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":E.header,initial:e?"hidden":"distractionFreeInactive",whileHover:e?"hover":"distractionFreeInactive",animate:e?"hidden":"distractionFreeInactive",variants:_e,transition:e?{type:"tween",delay:.8}:void 0},o),e&&(0,s.createElement)("div",{className:"interface-interface-skeleton__header"},n),(0,s.createElement)("div",{className:"interface-interface-skeleton__body"},!!a&&(0,s.createElement)(Ee,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:E.secondarySidebar},a),!!i&&(0,s.createElement)("div",{className:"interface-interface-skeleton__notices"},i),(0,s.createElement)(Ee,{className:"interface-interface-skeleton__content",ariaLabel:E.body},l),!!r&&(0,s.createElement)(Ee,{className:"interface-interface-skeleton__sidebar",ariaLabel:E.sidebar},r),!!c&&(0,s.createElement)(Ee,{className:"interface-interface-skeleton__actions",ariaLabel:E.actions},c))),!!t&&(0,s.createElement)(Ee,{className:"interface-interface-skeleton__footer",ariaLabel:E.footer},t))})),ye=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function fe({as:e=_.DropdownMenu,className:t,label:o=(0,y.__)("Options"),popoverProps:n,toggleProps:r,children:a}){return(0,s.createElement)(e,{className:L()("interface-more-menu-dropdown",t),icon:ye,label:o,popoverProps:{placement:"bottom-end",...n,className:L()("interface-more-menu-dropdown__content",n?.className)},toggleProps:{tooltipPosition:"bottom",...r,size:"compact"}},(e=>a(e)))}const we=window.wp.keyboardShortcuts,Se=[{keyCombination:{modifier:"primary",character:"b"},description:(0,y.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,y.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,y.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,y.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,y.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,y.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,y.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,y.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},description:(0,y.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,y.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")}];function Pe({keyCombination:e,forceAriaLabel:t}){const o=e.modifier?I.displayShortcutList[e.modifier](e.character):e.character,n=e.modifier?I.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,s.createElement)("kbd",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||n},(Array.isArray(o)?o:[o]).map(((e,t)=>"+"===e?(0,s.createElement)(u.Fragment,{key:t},e):(0,s.createElement)("kbd",{key:t,className:"edit-post-keyboard-shortcut-help-modal__shortcut-key"},e))))}const ke=function({description:e,keyCombination:t,aliases:o=[],ariaLabel:n}){return(0,s.createElement)(u.Fragment,null,(0,s.createElement)("div",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-description"},e),(0,s.createElement)("div",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-term"},(0,s.createElement)(Pe,{keyCombination:t,forceAriaLabel:n}),o.map(((e,t)=>(0,s.createElement)(Pe,{keyCombination:e,forceAriaLabel:n,key:t})))))};const Ce=function({name:e}){const{keyCombination:t,description:o,aliases:n}=(0,m.useSelect)((t=>{const{getShortcutKeyCombination:o,getShortcutDescription:n,getShortcutAliases:r}=t(we.store);return{keyCombination:o(e),aliases:r(e),description:n(e)}}),[e]);return t?(0,s.createElement)(ke,{keyCombination:t,description:o,aliases:n}):null},Me="edit-post/keyboard-shortcut-help",xe=({shortcuts:e})=>(0,s.createElement)("ul",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map(((e,t)=>(0,s.createElement)("li",{className:"edit-post-keyboard-shortcut-help-modal__shortcut",key:t},"string"==typeof e?(0,s.createElement)(Ce,{name:e}):(0,s.createElement)(ke,{...e}))))),Te=({title:e,shortcuts:t,className:o})=>(0,s.createElement)("section",{className:L()("edit-post-keyboard-shortcut-help-modal__section",o)},!!e&&(0,s.createElement)("h2",{className:"edit-post-keyboard-shortcut-help-modal__section-title"},e),(0,s.createElement)(xe,{shortcuts:t})),Be=({title:e,categoryName:t,additionalShortcuts:o=[]})=>{const n=(0,m.useSelect)((e=>e(we.store).getCategoryShortcuts(t)),[t]);return(0,s.createElement)(Te,{title:e,shortcuts:n.concat(o)})};const Ae=(0,f.compose)([(0,m.withSelect)((e=>({isModalActive:e(oe).isModalActive(Me)}))),(0,m.withDispatch)(((e,{isModalActive:t})=>{const{openModal:o,closeModal:n}=e(oe);return{toggleModal:()=>t?n():o(Me)}}))])((function({isModalActive:e,toggleModal:t}){return(0,we.useShortcut)("core/edit-post/keyboard-shortcuts",t),e?(0,s.createElement)(_.Modal,{className:"edit-post-keyboard-shortcut-help-modal",title:(0,y.__)("Keyboard shortcuts"),closeButtonLabel:(0,y.__)("Close"),onRequestClose:t},(0,s.createElement)(Te,{className:"edit-post-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-post/keyboard-shortcuts"]}),(0,s.createElement)(Be,{title:(0,y.__)("Global shortcuts"),categoryName:"global"}),(0,s.createElement)(Be,{title:(0,y.__)("Selection shortcuts"),categoryName:"selection"}),(0,s.createElement)(Be,{title:(0,y.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,y.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,y.__)("Forward-slash")}]}),(0,s.createElement)(Te,{title:(0,y.__)("Text formatting"),shortcuts:Se})):null}));const Ie=(0,m.withDispatch)((e=>{const{openModal:t}=e(oe);return{openModal:t}}))((function({openModal:e}){return(0,s.createElement)(_.MenuItem,{onClick:()=>{e(Me)},shortcut:I.displayShortcut.access("h")},(0,y.__)("Keyboard shortcuts"))})),{Fill:Ne,Slot:Le}=(0,_.createSlotFill)("ToolsMoreMenuGroup");Ne.Slot=({fillProps:e})=>(0,s.createElement)(Le,{fillProps:e},(e=>e.length>0&&(0,s.createElement)(_.MenuGroup,{label:(0,y.__)("Tools")},e)));const Fe=Ne;function De(){const e=(0,m.useSelect)((e=>"wp_template"===e(b.store).getCurrentPostType()),[]);return(0,s.createElement)(g.PreferenceToggleMenuItem,{scope:"core/edit-post",name:e?"welcomeGuideTemplate":"welcomeGuide",label:(0,y.__)("Welcome Guide")})}function Re(){const e=(0,m.useSelect)((e=>{const{canUser:t}=e(k.store),{getEditorSettings:o}=e(b.store),n=o().__unstableIsBlockBasedTheme,r=(0,T.addQueryArgs)("edit.php",{post_type:"wp_block"}),a=(0,T.addQueryArgs)("site-editor.php",{path:"/patterns"});return t("read","templates")&&n?a:r}),[]);return(0,s.createElement)(_.MenuItem,{role:"menuitem",href:e},(0,y.__)("Manage patterns"))}(0,x.registerPlugin)("edit-post",{render:()=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Fe,null,(({onClose:e})=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Re,null),(0,s.createElement)(Ie,{onSelect:e}),(0,s.createElement)(De,null),(0,s.createElement)(A,null),(0,s.createElement)(_.MenuItem,{role:"menuitem",icon:M,href:(0,y.__)("https://wordpress.org/documentation/article/wordpress-block-editor/"),target:"_blank",rel:"noopener noreferrer"},(0,y.__)("Help"),(0,s.createElement)(_.VisuallyHidden,{as:"span"},(0,y.__)("(opens in a new tab)")))))))});const Oe=window.wp.commands,Ve=window.wp.coreCommands;function Ge(e=[],t){const o=[...e];for(const e of t){const t=o.findIndex((t=>t.id===e.id));-1!==t?o[t]=e:o.push(e)}return o}const ze=(0,m.combineReducers)({isSaving:function(e=!1,t){switch(t.type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":case"META_BOX_UPDATES_FAILURE":return!1;default:return e}},locations:function(e={},t){if("SET_META_BOXES_PER_LOCATIONS"===t.type){const o={...e};for(const[e,n]of Object.entries(t.metaBoxesPerLocation))o[e]=Ge(o[e],n);return o}return e},initialized:function(e=!1,t){return"META_BOXES_INITIALIZED"===t.type||e}}),He=(0,m.combineReducers)({metaBoxes:ze,publishSidebarActive:function(e=!1,t){switch(t.type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e}}),Ue=window.wp.apiFetch;var $e=o.n(Ue);const We=window.wp.a11y,qe=window.wp.privateApis,{lock:je,unlock:Qe}=(0,qe.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/edit-post"),Ye=e=>({dispatch:t,registry:o})=>{o.select(g.store).get("core","distractionFree")&&t.toggleDistractionFree(),o.dispatch(oe).enableComplementaryArea(ro.name,e)},Ze=()=>({registry:e})=>e.dispatch(oe).disableComplementaryArea(ro.name),Xe=e=>({registry:t})=>(d()("select( 'core/edit-post' ).openModal( name )",{since:"6.3",alternative:"select( 'core/interface').openModal( name )"}),t.dispatch(oe).openModal(e)),Ke=()=>({registry:e})=>(d()("select( 'core/edit-post' ).closeModal()",{since:"6.3",alternative:"select( 'core/interface').closeModal()"}),e.dispatch(oe).closeModal());function Je(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function et(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function tt(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}const ot=e=>({registry:t})=>{d()("dispatch( 'core/edit-post' ).toggleEditorPanelEnabled",{since:"6.5",alternative:"dispatch( 'core/editor').toggleEditorPanelEnabled"}),t.dispatch(b.store).toggleEditorPanelEnabled(e)},nt=e=>({registry:t})=>{d()("dispatch( 'core/edit-post' ).toggleEditorPanelOpened",{since:"6.5",alternative:"dispatch( 'core/editor').toggleEditorPanelOpened"}),t.dispatch(b.store).toggleEditorPanelOpened(e)},rt=e=>({registry:t})=>{d()("dispatch( 'core/edit-post' ).removeEditorPanel",{since:"6.5",alternative:"dispatch( 'core/editor').removeEditorPanel"}),t.dispatch(b.store).removeEditorPanel(e)},at=e=>({registry:t})=>t.dispatch(g.store).toggle("core/edit-post",e),st=e=>({dispatch:t,registry:o})=>{o.dispatch(g.store).set("core","editorMode",e),"visual"!==e&&o.dispatch(v.store).clearSelectedBlock(),"text"===e&&o.select(g.store).get("core","distractionFree")&&t.toggleDistractionFree();const n="visual"===e?(0,y.__)("Visual editor selected"):(0,y.__)("Code editor selected");(0,We.speak)(n,"assertive")},it=e=>({registry:t})=>{const o=t.select(oe).isItemPinned("core/edit-post",e);t.dispatch(oe)[o?"unpinItem":"pinItem"]("core/edit-post",e)},lt=(e,t)=>({registry:o})=>{var n;if(!e)return;const r=null!==(n=o.select(g.store).get("core/edit-post","preferredStyleVariations"))&&void 0!==n?n:{};if(t)o.dispatch(g.store).set("core/edit-post","preferredStyleVariations",{...r,[e]:t});else{const t={...r};delete t[e],o.dispatch(g.store).set("core/edit-post","preferredStyleVariations",t)}},ct=e=>({registry:t})=>{Qe(t.dispatch(b.store)).showBlockTypes(e)},dt=e=>({registry:t})=>{Qe(t.dispatch(b.store)).hideBlockTypes(e)};function ut(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}const mt=()=>async({registry:e,select:t,dispatch:o})=>{o({type:"REQUEST_META_BOX_UPDATES"}),window.tinyMCE&&window.tinyMCE.triggerSave();const n=e.select(b.store).getCurrentPost(),r=[!!n.comment_status&&["comment_status",n.comment_status],!!n.ping_status&&["ping_status",n.ping_status],!!n.sticky&&["sticky",n.sticky],!!n.author&&["post_author",n.author]].filter(Boolean),a=[new window.FormData(document.querySelector(".metabox-base-form")),...t.getActiveMetaBoxLocations().map((e=>new window.FormData((e=>{const t=document.querySelector(`.edit-post-meta-boxes-area.is-${e} .metabox-location-${e}`);return t||document.querySelector("#metaboxes .metabox-location-"+e)})(e))))].reduce(((e,t)=>{for(const[o,n]of t)e.append(o,n);return e}),new window.FormData);r.forEach((([e,t])=>a.append(e,t)));try{await $e()({url:window._wpMetaBoxUrl,method:"POST",body:a,parse:!1}),o.metaBoxUpdatesSuccess()}catch{o.metaBoxUpdatesFailure()}};function pt(){return{type:"META_BOX_UPDATES_SUCCESS"}}function gt(){return{type:"META_BOX_UPDATES_FAILURE"}}const ht=e=>({registry:t})=>{d()("dispatch( 'core/edit-post' ).__experimentalSetPreviewDeviceType",{since:"6.5",version:"6.7",hint:"registry.dispatch( editorStore ).setDeviceType"}),t.dispatch(b.store).setDeviceType(e)},bt=e=>({registry:t})=>{d()("dispatch( 'core/edit-post' ).setIsInserterOpened",{since:"6.5",alternative:"dispatch( 'core/editor').setIsInserterOpened"}),t.dispatch(b.store).setIsInserterOpened(e)},Et=e=>({registry:t})=>{d()("dispatch( 'core/edit-post' ).setIsListViewOpened",{since:"6.5",alternative:"dispatch( 'core/editor').setIsListViewOpened"}),t.dispatch(b.store).setIsListViewOpened(e)};function _t(){return d()("dispatch( 'core/edit-post' ).setIsEditingTemplate",{since:"6.5",alternative:"dispatch( 'core/editor').setRenderingMode"}),{type:"NOTHING"}}function vt(){return d()("dispatch( 'core/edit-post' ).__unstableCreateTemplate",{since:"6.5"}),{type:"NOTHING"}}let yt=!1;const ft=()=>({registry:e,select:t,dispatch:o})=>{if(!e.select(b.store).__unstableIsEditorReady())return;if(yt)return;const n=e.select(b.store).getCurrentPostType();window.postboxes.page!==n&&window.postboxes.add_postbox_toggles(n),yt=!0,(0,p.addFilter)("editor.__unstableSavePost","core/edit-post/save-metaboxes",((e,n)=>e.then((()=>{if(!n.isAutosave&&t.hasMetaBoxes())return o.requestMetaBoxUpdates()})))),o({type:"META_BOXES_INITIALIZED"})},wt=()=>({dispatch:e,registry:t})=>{const o=t.select(g.store).get("core","distractionFree");o&&t.dispatch(g.store).set("core","fixedToolbar",!1),o||t.batch((()=>{t.dispatch(g.store).set("core","fixedToolbar",!0),t.dispatch(b.store).setIsInserterOpened(!1),t.dispatch(b.store).setIsListViewOpened(!1),e.closeGeneralSidebar()})),t.batch((()=>{t.dispatch(g.store).set("core","distractionFree",!o),t.dispatch(B.store).createInfoNotice(o?(0,y.__)("Distraction free off."):(0,y.__)("Distraction free on."),{id:"core/edit-post/distraction-free-mode/notice",type:"snackbar",actions:[{label:(0,y.__)("Undo"),onClick:()=>{t.batch((()=>{t.dispatch(g.store).set("core","fixedToolbar",!!o),t.dispatch(g.store).toggle("core","distractionFree")}))}}]})}))};var St={};function Pt(e){return[e]}function kt(e,t,o){var n;if(e.length!==t.length)return!1;for(n=o;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Ct(e,t){var o,n=t||Pt;function r(){o=new WeakMap}function a(){var t,r,a,s,i,l=arguments.length;for(s=new Array(l),a=0;a<l;a++)s[a]=arguments[a];for(t=function(e){var t,n,r,a,s,i=o,l=!0;for(t=0;t<e.length;t++){if(!(s=n=e[t])||"object"!=typeof s){l=!1;break}i.has(n)?i=i.get(n):(r=new WeakMap,i.set(n,r),i=r)}return i.has(St)||((a=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=l,i.set(St,a)),i.get(St)}(i=n.apply(null,s)),t.isUniqueByDependants||(t.lastDependants&&!kt(i,t.lastDependants,0)&&t.clear(),t.lastDependants=i),r=t.head;r;){if(kt(r.args,s,1))return r!==t.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=t.head,r.prev=null,t.head.prev=r,t.head=r),r.val;r=r.next}return r={val:e.apply(null,s)},s[0]=null,r.args=s,t.head&&(t.head.prev=r,r.next=t.head),t.head=r,r.val}return a.getDependants=n,a.clear=r,r(),a}const Mt=[],xt={},Tt=(0,m.createRegistrySelector)((e=>()=>{var t;return null!==(t=e(g.store).get("core","editorMode"))&&void 0!==t?t:"visual"})),Bt=(0,m.createRegistrySelector)((e=>()=>{const t=e(oe).getActiveComplementaryArea("core/edit-post");return["edit-post/document","edit-post/block"].includes(t)})),At=(0,m.createRegistrySelector)((e=>()=>{const t=e(oe).getActiveComplementaryArea("core/edit-post");return!!t&&!["edit-post/document","edit-post/block"].includes(t)})),It=(0,m.createRegistrySelector)((e=>()=>e(oe).getActiveComplementaryArea("core/edit-post")));const Nt=(0,m.createRegistrySelector)((e=>()=>{d()("select( 'core/edit-post' ).getPreferences",{since:"6.0",alternative:"select( 'core/preferences' ).get"});const t=["preferredStyleVariations"].reduce(((t,o)=>({...t,[o]:e(g.store).get("core/edit-post",o)})),{}),o=["editorMode","hiddenBlockTypes"].reduce(((t,o)=>({...t,[o]:e(g.store).get("core",o)})),{}),n=function(e,t){var o;const n=e?.reduce(((e,t)=>({...e,[t]:{enabled:!1}})),{}),r=t?.reduce(((e,t)=>{const o=e?.[t];return{...e,[t]:{...o,opened:!0}}}),null!=n?n:{});return null!==(o=null!=r?r:n)&&void 0!==o?o:xt}(e(g.store).get("core","inactivePanels"),e(g.store).get("core","openPanels"));return{...t,...o,panels:n}}));function Lt(e,t,o){d()("select( 'core/edit-post' ).getPreference",{since:"6.0",alternative:"select( 'core/preferences' ).get"});const n=Nt(e)[t];return void 0===n?o:n}const Ft=(0,m.createRegistrySelector)((e=>()=>{var t;return null!==(t=e(g.store).get("core","hiddenBlockTypes"))&&void 0!==t?t:Mt}));function Dt(e){return e.publishSidebarActive}const Rt=(0,m.createRegistrySelector)((e=>(t,o)=>(d()("select( 'core/edit-post' ).isEditorPanelRemoved",{since:"6.5",alternative:"select( 'core/editor' ).isEditorPanelRemoved"}),e(b.store).isEditorPanelRemoved(o)))),Ot=(0,m.createRegistrySelector)((e=>(t,o)=>(d()("select( 'core/edit-post' ).isEditorPanelEnabled",{since:"6.5",alternative:"select( 'core/editor' ).isEditorPanelEnabled"}),e(b.store).isEditorPanelEnabled(o)))),Vt=(0,m.createRegistrySelector)((e=>(t,o)=>(d()("select( 'core/edit-post' ).isEditorPanelOpened",{since:"6.5",alternative:"select( 'core/editor' ).isEditorPanelOpened"}),e(b.store).isEditorPanelOpened(o)))),Gt=(0,m.createRegistrySelector)((e=>(t,o)=>(d()("select( 'core/edit-post' ).isModalActive",{since:"6.3",alternative:"select( 'core/interface' ).isModalActive"}),!!e(oe).isModalActive(o)))),zt=(0,m.createRegistrySelector)((e=>(t,o)=>!!e(g.store).get("core/edit-post",o))),Ht=(0,m.createRegistrySelector)((e=>(t,o)=>e(oe).isItemPinned("core/edit-post",o))),Ut=Ct((e=>Object.keys(e.metaBoxes.locations).filter((t=>Wt(e,t)))),(e=>[e.metaBoxes.locations])),$t=(0,m.createRegistrySelector)((e=>(t,o)=>Wt(t,o)&&qt(t,o)?.some((({id:o})=>e(b.store).isEditorPanelEnabled(t,`meta-box-${o}`)))));function Wt(e,t){const o=qt(e,t);return!!o&&0!==o.length}function qt(e,t){return e.metaBoxes.locations[t]}const jt=Ct((e=>Object.values(e.metaBoxes.locations).flat()),(e=>[e.metaBoxes.locations]));function Qt(e){return Ut(e).length>0}function Yt(e){return e.metaBoxes.isSaving}const Zt=(0,m.createRegistrySelector)((e=>()=>(d()("select( 'core/edit-site' ).__experimentalGetPreviewDeviceType",{since:"6.5",version:"6.7",alternative:"select( 'core/editor' ).getDeviceType"}),e(b.store).getDeviceType()))),Xt=(0,m.createRegistrySelector)((e=>()=>(d()("select( 'core/edit-post' ).isInserterOpened",{since:"6.5",alternative:"select( 'core/editor' ).isInserterOpened"}),e(b.store).isInserterOpened()))),Kt=(0,m.createRegistrySelector)((e=>()=>(d()("select( 'core/edit-post' ).__experimentalGetInsertionPoint",{since:"6.5",version:"6.7"}),Qe(e(b.store)).getInsertionPoint()))),Jt=(0,m.createRegistrySelector)((e=>()=>(d()("select( 'core/edit-post' ).isListViewOpened",{since:"6.5",alternative:"select( 'core/editor' ).isListViewOpened"}),e(b.store).isListViewOpened()))),eo=(0,m.createRegistrySelector)((e=>()=>(d()("select( 'core/edit-post' ).isEditingTemplate",{since:"6.5",alternative:"select( 'core/editor' ).getRenderingMode"}),"wp_template"===e(b.store).getCurrentPostType())));function to(e){return e.metaBoxes.initialized}const oo=(0,m.createRegistrySelector)((e=>()=>{const{id:t,type:o,slug:n}=e(b.store).getCurrentPost(),{getSite:r,getEditedEntityRecord:a,getEntityRecords:s}=e(k.store),i=r();if(+t===i?.page_for_posts){return a("postType","wp_template",e(k.store).getDefaultTemplateId({slug:"home"}))}const l=e(b.store).getEditedPostAttribute("template");if(l){const e=s("postType","wp_template",{per_page:-1})?.find((e=>e.slug===l));return e?a("postType","wp_template",e.id):e}let c;c=n?"page"===o?`${o}-${n}`:`single-${o}-${n}`:"page"===o?"page":`single-${o}`;const d=e(k.store).getDefaultTemplateId({slug:c});return e(k.store).getEditedEntityRecord("postType","wp_template",d)})),no="core/edit-post",ro=(0,m.createReduxStore)(no,{reducer:He,actions:r,selectors:a});function ao(){const e=(0,m.useSelect)((e=>e(b.store).getEditorSettings().richEditingEnabled),[]),{switchEditorMode:t}=(0,m.useDispatch)(ro),{isWelcomeGuideVisible:o}=(0,m.useSelect)((e=>{const{isFeatureActive:t}=e(ro);return{isWelcomeGuideVisible:t("welcomeGuide")}}),[]),n=(0,u.useRef)();return(0,u.useEffect)((()=>{o||n?.current?.focus()}),[o]),(0,s.createElement)("div",{className:"edit-post-text-editor"},e&&(0,s.createElement)("div",{className:"edit-post-text-editor__toolbar"},(0,s.createElement)("h2",null,(0,y.__)("Editing code")),(0,s.createElement)(_.Button,{variant:"tertiary",onClick:()=>t("visual"),shortcut:I.displayShortcut.secondary("m")},(0,y.__)("Exit code editor"))),(0,s.createElement)("div",{className:"edit-post-text-editor__body"},(0,s.createElement)(b.PostTitleRaw,{ref:n}),(0,s.createElement)(b.PostTextEditor,null)))}(0,m.register)(ro);const{EditorCanvas:so}=Qe(b.privateApis),io=!1;function lo({styles:e}){const{isWelcomeGuideVisible:t,renderingMode:o,isBlockBasedTheme:n,hasV3BlocksOnly:r,isEditingTemplate:a}=(0,m.useSelect)((e=>{const{isFeatureActive:t}=e(ro),{getEditorSettings:o,getRenderingMode:n}=e(b.store),{getBlockTypes:r}=e(i.store),a=o();return{isWelcomeGuideVisible:t("welcomeGuide"),renderingMode:n(),isBlockBasedTheme:a.__unstableIsBlockBasedTheme,hasV3BlocksOnly:r().every((e=>e.apiVersion>=3)),isEditingTemplate:"wp_template"===e(b.store).getCurrentPostType()}}),[]),l=(0,m.useSelect)((e=>e(ro).hasMetaBoxes()),[]);let c;l||"post-only"!==o||(c="40vh"),e=(0,u.useMemo)((()=>[...e,{css:c?`body{padding-bottom:${c}}`:""}]),[e,c]);const d=(r||io&&n)&&!l||a;return(0,s.createElement)("div",{className:L()("edit-post-visual-editor",{"has-inline-canvas":!d})},(0,s.createElement)(so,{disableIframe:!d,styles:e,autoFocus:!t}))}const co=function(){const{getEditorMode:e,isEditorSidebarOpened:t}=(0,m.useSelect)(ro),o=(0,m.useSelect)((e=>{const{richEditingEnabled:t,codeEditingEnabled:o}=e(b.store).getEditorSettings();return!t||!o}),[]),{switchEditorMode:n,openGeneralSidebar:r,closeGeneralSidebar:a,toggleFeature:s,toggleDistractionFree:l}=(0,m.useDispatch)(ro),{registerShortcut:c}=(0,m.useDispatch)(we.store),{replaceBlocks:d}=(0,m.useDispatch)(v.store),{getBlockName:p,getSelectedBlockClientId:g,getBlockAttributes:h,getBlockSelectionStart:E}=(0,m.useSelect)(v.store),_=(e,t)=>{e.preventDefault();const o=0===t?"core/paragraph":"core/heading",n=g();if(null===n)return;const r=p(n);if("core/paragraph"!==r&&"core/heading"!==r)return;const a=h(n),s="core/paragraph"===r?"align":"textAlign",l="core/paragraph"===o?"align":"textAlign";d(n,(0,i.createBlock)(o,{level:t,content:a.content,[l]:a[s]}))};return(0,u.useEffect)((()=>{c({name:"core/edit-post/toggle-mode",category:"global",description:(0,y.__)("Switch between visual editor and code editor."),keyCombination:{modifier:"secondary",character:"m"}}),c({name:"core/edit-post/toggle-distraction-free",category:"global",description:(0,y.__)("Toggle distraction free mode."),keyCombination:{modifier:"primaryShift",character:"\\"}}),c({name:"core/edit-post/toggle-fullscreen",category:"global",description:(0,y.__)("Toggle fullscreen mode."),keyCombination:{modifier:"secondary",character:"f"}}),c({name:"core/edit-post/toggle-sidebar",category:"global",description:(0,y.__)("Show or hide the Settings sidebar."),keyCombination:{modifier:"primaryShift",character:","}}),c({name:"core/edit-post/next-region",category:"global",description:(0,y.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),c({name:"core/edit-post/previous-region",category:"global",description:(0,y.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]}),c({name:"core/edit-post/keyboard-shortcuts",category:"main",description:(0,y.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),c({name:"core/edit-post/transform-heading-to-paragraph",category:"block-library",description:(0,y.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"}}),[1,2,3,4,5,6].forEach((e=>{c({name:`core/edit-post/transform-paragraph-to-heading-${e}`,category:"block-library",description:(0,y.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${e}`}})}))}),[]),(0,we.useShortcut)("core/edit-post/toggle-mode",(()=>{n("visual"===e()?"text":"visual")}),{isDisabled:o}),(0,we.useShortcut)("core/edit-post/toggle-fullscreen",(()=>{s("fullscreenMode")})),(0,we.useShortcut)("core/edit-post/toggle-distraction-free",(()=>{l()})),(0,we.useShortcut)("core/edit-post/toggle-sidebar",(e=>{if(e.preventDefault(),t())a();else{const e=E()?"edit-post/block":"edit-post/document";r(e)}})),(0,we.useShortcut)("core/edit-post/transform-heading-to-paragraph",(e=>_(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,we.useShortcut)(`core/edit-post/transform-paragraph-to-heading-${e}`,(t=>_(t,e)))})),null},{PreferenceBaseOption:uo}=Qe(g.privateApis);function mo({willEnable:e}){const[t,o]=(0,u.useState)(!1);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",{className:"edit-post-preferences-modal__custom-fields-confirmation-message"},(0,y.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),(0,s.createElement)(_.Button,{className:"edit-post-preferences-modal__custom-fields-confirmation-button",variant:"secondary",isBusy:t,disabled:t,onClick:()=>{o(!0),function(){const e=document.getElementById("toggle-custom-fields-form");e.querySelector('[name="_wp_http_referer"]').setAttribute("value",(0,T.getPathAndQueryString)(window.location.href)),e.submit()}()}},e?(0,y.__)("Show & Reload Page"):(0,y.__)("Hide & Reload Page")))}const po=(0,m.withSelect)((e=>({areCustomFieldsEnabled:!!e(b.store).getEditorSettings().enableCustomFields})))((function({label:e,areCustomFieldsEnabled:t}){const[o,n]=(0,u.useState)(t);return(0,s.createElement)(uo,{label:e,isChecked:o,onChange:n},o!==t&&(0,s.createElement)(mo,{willEnable:o}))})),{PreferenceBaseOption:go}=Qe(g.privateApis),ho=(0,f.compose)((0,m.withSelect)(((e,{panelName:t})=>{const{isEditorPanelEnabled:o,isEditorPanelRemoved:n}=e(b.store);return{isRemoved:n(t),isChecked:o(t)}})),(0,f.ifCondition)((({isRemoved:e})=>!e)),(0,m.withDispatch)(((e,{panelName:t})=>({onChange:()=>e(b.store).toggleEditorPanelEnabled(t)}))))(go),{PreferencesModalSection:bo}=Qe(g.privateApis);const Eo=(0,m.withSelect)((e=>{const{getEditorSettings:t}=e(b.store),{getAllMetaBoxes:o}=e(ro);return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:o()}}))((function({areCustomFieldsRegistered:e,metaBoxes:t,...o}){const n=t.filter((({id:e})=>"postcustom"!==e));return e||0!==n.length?(0,s.createElement)(bo,{...o},e&&(0,s.createElement)(po,{label:(0,y.__)("Custom fields")}),n.map((({id:e,title:t})=>(0,s.createElement)(ho,{key:e,label:t,panelName:`meta-box-${e}`})))):null})),{PreferenceBaseOption:_o}=Qe(g.privateApis),vo=(0,f.compose)((0,m.withSelect)((e=>({isChecked:e(b.store).isPublishSidebarEnabled()}))),(0,m.withDispatch)((e=>{const{enablePublishSidebar:t,disablePublishSidebar:o}=e(b.store);return{onChange:e=>e?t():o()}})),(0,O.ifViewportMatches)("medium"))(_o),{PreferencesModalSection:yo,PreferenceToggleControl:fo}=Qe(g.privateApis),{PreferencesModal:wo}=Qe(b.privateApis),So="edit-post/preferences";function Po(){const e=(0,f.useViewportMatch)("medium"),{closeModal:t}=(0,m.useDispatch)(oe),{isModalActive:o}=(0,m.useSelect)((e=>({isModalActive:e(oe).isModalActive(So)})),[]),n={general:(0,s.createElement)(s.Fragment,null,e&&(0,s.createElement)(yo,{title:(0,y.__)("Publishing")},(0,s.createElement)(vo,{help:(0,y.__)("Review settings, such as visibility and tags."),label:(0,y.__)("Enable pre-publish checks")})),(0,s.createElement)(Eo,{title:(0,y.__)("Advanced")})),appearance:(0,s.createElement)(fo,{scope:"core/edit-post",featureName:"themeStyles",help:(0,y.__)("Make the editor look like your theme."),label:(0,y.__)("Use theme styles")})};return o?(0,s.createElement)(wo,{extraSections:n,isActive:o,onClose:t}):null}const{ReusableBlocksRenameHint:ko}=Qe(v.privateApis);function Co(){const{editPost:e}=(0,m.useDispatch)(b.store),[t,o]=(0,u.useState)(!1),[n,r]=(0,u.useState)(void 0),[a,i]=(0,u.useState)(""),{postType:l,isNewPost:c}=(0,m.useSelect)((e=>{const{getEditedPostAttribute:t,isCleanNewPost:o}=e(b.store);return{postType:t("type"),isNewPost:o()}}),[]);return(0,u.useEffect)((()=>{c&&"wp_block"===l&&o(!0)}),[]),"wp_block"===l&&c?(0,s.createElement)(s.Fragment,null,t&&(0,s.createElement)(_.Modal,{title:(0,y.__)("Create pattern"),onRequestClose:()=>{o(!1)},overlayClassName:"reusable-blocks-menu-items__convert-modal"},(0,s.createElement)("form",{onSubmit:t=>{t.preventDefault(),o(!1),e({title:a,meta:{wp_pattern_sync_status:n}})}},(0,s.createElement)(_.__experimentalVStack,{spacing:"5"},(0,s.createElement)(_.TextControl,{label:(0,y.__)("Name"),value:a,onChange:i,placeholder:(0,y.__)("My pattern"),className:"patterns-create-modal__name-input",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,s.createElement)(ko,null),(0,s.createElement)(_.ToggleControl,{label:(0,y._x)("Synced","Option that makes an individual pattern synchronized"),help:(0,y.__)("Sync this pattern across multiple locations."),checked:!n,onChange:()=>{r(n?void 0:"unsynced")}}),(0,s.createElement)(_.__experimentalHStack,{justify:"right"},(0,s.createElement)(_.Button,{variant:"primary",type:"submit",disabled:!a,__experimentalIsFocusable:!0},(0,y.__)("Create"))))))):null}class Mo extends u.Component{constructor(){super(...arguments),this.state={historyId:null}}componentDidUpdate(e){const{postId:t,postStatus:o,postType:n,isSavingPost:r,hasHistory:a}=this.props,{historyId:s}=this.state;"trash"!==o||r?t===e.postId&&t===s||"auto-draft"===o||!t||a||this.setBrowserURL(t):this.setTrashURL(t,n)}setTrashURL(e,t){window.location.href=function(e,t){return(0,T.addQueryArgs)("edit.php",{trashed:1,post_type:t,ids:e})}(e,t)}setBrowserURL(e){window.history.replaceState({id:e},"Post "+e,function(e){return(0,T.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((()=>({historyId:e})))}render(){return null}}const xo=(0,m.withSelect)((e=>{const{getCurrentPost:t,isSavingPost:o}=e(b.store),n=t();let{id:r,status:a,type:s}=n;return["wp_template","wp_template_part"].includes(s)&&(r=n.wp_id),{postId:r,postStatus:a,postType:s,isSavingPost:o()}}))(Mo),To=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})),Bo=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})),Ao=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,s.createElement)(C.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));const Io=function({showTooltip:e,icon:t,href:o,initialPost:n}){var r;const{isActive:a,isRequestingSiteIcon:i,postType:l,siteIconUrl:c}=(0,m.useSelect)((e=>{const{getCurrentPostType:t}=e(b.store),{isFeatureActive:o}=e(ro),{getEntityRecord:r,getPostType:a,isResolving:s}=e(k.store),i=r("root","__unstableBase",void 0)||{},l=n?.type||t();return{isActive:o("fullscreenMode"),isRequestingSiteIcon:s("getEntityRecord",["root","__unstableBase",void 0]),postType:a(l),siteIconUrl:i.site_icon_url}}),[]),d=(0,f.useReducedMotion)();if(!a||!l)return null;let u=(0,s.createElement)(_.Icon,{size:"36px",icon:Ao});const p={expand:{scale:1.25,transition:{type:"tween",duration:"0.3"}}};c&&(u=(0,s.createElement)(_.__unstableMotion.img,{variants:!d&&p,alt:(0,y.__)("Site Icon"),className:"edit-post-fullscreen-mode-close_site-icon",src:c})),i&&(u=null),t&&(u=(0,s.createElement)(_.Icon,{size:"36px",icon:t}));const g=L()({"edit-post-fullscreen-mode-close":!0,"has-icon":c}),h=null!=o?o:(0,T.addQueryArgs)("edit.php",{post_type:l.slug}),E=null!==(r=l?.labels?.view_items)&&void 0!==r?r:(0,y.__)("Back");return(0,s.createElement)(_.__unstableMotion.div,{whileHover:"expand"},(0,s.createElement)(_.Button,{className:g,href:h,label:E,showTooltip:e},u))},No=[{value:"visual",label:(0,y.__)("Visual editor")},{value:"text",label:(0,y.__)("Code editor")}];const Lo=function(){const{shortcut:e,isRichEditingEnabled:t,isCodeEditingEnabled:o,mode:n}=(0,m.useSelect)((e=>({shortcut:e(we.store).getShortcutRepresentation("core/edit-post/toggle-mode"),isRichEditingEnabled:e(b.store).getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e(b.store).getEditorSettings().codeEditingEnabled,mode:e(ro).getEditorMode()})),[]),{switchEditorMode:r}=(0,m.useDispatch)(ro);let a=n;t||"visual"!==n||(a="text"),o||"text"!==n||(a="visual");const i=No.map((n=>(o||"text"!==n.value||(n={...n,disabled:!0}),t||"visual"!==n.value||(n={...n,disabled:!0,info:(0,y.__)("You can enable the visual editor in your profile settings.")}),n.value===a||n.disabled?n:{...n,shortcut:e})));return(0,s.createElement)(_.MenuGroup,{label:(0,y.__)("Editor")},(0,s.createElement)(_.MenuItemsChoice,{choices:i,value:a,onSelect:r}))};function Fo(){const{openModal:e}=(0,m.useDispatch)(oe);return(0,s.createElement)(_.MenuItem,{onClick:()=>{e(So)}},(0,y.__)("Preferences"))}const Do=function(){const{set:e}=(0,m.useDispatch)(g.store),{toggleDistractionFree:t}=(0,m.useDispatch)(ro);return(0,f.useViewportMatch)("medium")?(0,s.createElement)(_.MenuGroup,{label:(0,y._x)("View","noun")},(0,s.createElement)(g.PreferenceToggleMenuItem,{scope:"core",name:"fixedToolbar",onToggle:()=>{e("core","distractionFree",!1)},label:(0,y.__)("Top toolbar"),info:(0,y.__)("Access all block and document tools in a single place"),messageActivated:(0,y.__)("Top toolbar activated"),messageDeactivated:(0,y.__)("Top toolbar deactivated")}),(0,s.createElement)(g.PreferenceToggleMenuItem,{scope:"core",name:"distractionFree",handleToggling:!1,onToggle:t,label:(0,y.__)("Distraction free"),info:(0,y.__)("Write with calmness"),messageActivated:(0,y.__)("Distraction free mode activated"),messageDeactivated:(0,y.__)("Distraction free mode deactivated"),shortcut:I.displayShortcut.primaryShift("\\")}),(0,s.createElement)(g.PreferenceToggleMenuItem,{scope:"core",name:"focusMode",label:(0,y.__)("Spotlight mode"),info:(0,y.__)("Focus on one block at a time"),messageActivated:(0,y.__)("Spotlight mode activated"),messageDeactivated:(0,y.__)("Spotlight mode deactivated")}),(0,s.createElement)(g.PreferenceToggleMenuItem,{scope:"core/edit-post",name:"fullscreenMode",label:(0,y.__)("Fullscreen mode"),info:(0,y.__)("Show and hide the admin user interface"),messageActivated:(0,y.__)("Fullscreen mode activated"),messageDeactivated:(0,y.__)("Fullscreen mode deactivated"),shortcut:I.displayShortcut.secondary("f")})):null},Ro=({showIconLabels:e})=>{const t=(0,f.useViewportMatch)("large");return(0,s.createElement)(fe,{toggleProps:{showTooltip:!e,...e&&{variant:"tertiary"},size:"compact"}},(({onClose:o})=>(0,s.createElement)(s.Fragment,null,e&&!t&&(0,s.createElement)(me.Slot,{className:e&&"show-icon-labels",scope:"core/edit-post"}),(0,s.createElement)(Do,null),(0,s.createElement)(Lo,null),(0,s.createElement)(le.Slot,{name:"core/edit-post/plugin-more-menu",label:(0,y.__)("Plugins"),as:_.MenuGroup,fillProps:{onClick:o}}),(0,s.createElement)(Fe.Slot,{fillProps:{onClose:o}}),(0,s.createElement)(_.MenuGroup,null,(0,s.createElement)(Fo,null)))))};const Oo=(0,f.compose)((0,m.withSelect)((e=>{var t;return{hasPublishAction:null!==(t=e(b.store).getCurrentPost()?._links?.["wp:action-publish"])&&void 0!==t&&t,isBeingScheduled:e(b.store).isEditedPostBeingScheduled(),isPending:e(b.store).isCurrentPostPending(),isPublished:e(b.store).isCurrentPostPublished(),isPublishSidebarEnabled:e(b.store).isPublishSidebarEnabled(),isPublishSidebarOpened:e(ro).isPublishSidebarOpened(),isScheduled:e(b.store).isCurrentPostScheduled()}})),(0,m.withDispatch)((e=>{const{togglePublishSidebar:t}=e(ro);return{togglePublishSidebar:t}})))((function({forceIsDirty:e,hasPublishAction:t,isBeingScheduled:o,isPending:n,isPublished:r,isPublishSidebarEnabled:a,isPublishSidebarOpened:i,isScheduled:l,togglePublishSidebar:c,setEntitiesSavedStatesCallback:d}){const u="toggle",m="button",p=(0,f.useViewportMatch)("medium","<");let g;return g=r||l&&o||n&&!t&&!p?m:p||a?u:m,(0,s.createElement)(b.PostPublishButton,{forceIsDirty:e,isOpen:i,isToggle:g===u,onToggle:c,setEntitiesSavedStatesCallback:d})})),Vo="__experimentalMainDashboardButton",{Fill:Go,Slot:zo}=(0,_.createSlotFill)(Vo),Ho=Go;Ho.Slot=({children:e})=>{const t=(0,_.__experimentalUseSlotFills)(Vo);return Boolean(t&&t.length)?(0,s.createElement)(zo,{bubblesVirtually:!0}):e};const Uo=Ho,{DocumentTools:$o,PostViewLink:Wo,PreviewDropdown:qo}=Qe(b.privateApis),jo={hidden:{y:"-50px"},distractionFreeInactive:{y:0},hover:{y:0,transition:{type:"tween",delay:.2}}},Qo={hidden:{x:"-100%"},distractionFreeInactive:{x:0},hover:{x:0,transition:{type:"tween",delay:.2}}};const Yo=function({setEntitiesSavedStatesCallback:e,initialPost:t}){const o=(0,f.useViewportMatch)("large"),n=(0,f.useViewportMatch)("medium"),r=(0,u.useRef)(),{isTextEditor:a,blockSelectionStart:i,hasActiveMetaboxes:l,hasFixedToolbar:c,isPublishSidebarOpened:d,showIconLabels:p,hasHistory:h}=(0,m.useSelect)((e=>{const{get:t}=e(g.store),{getEditorMode:o}=e(ro);return{isTextEditor:"text"===o(),blockSelectionStart:e(v.store).getBlockSelectionStart(),hasActiveMetaboxes:e(ro).hasMetaBoxes(),hasHistory:!!e(b.store).getEditorSettings().onNavigateToPreviousEntityRecord,isPublishSidebarOpened:e(ro).isPublishSidebarOpened(),hasFixedToolbar:t("core","fixedToolbar"),showIconLabels:t("core","showIconLabels")}}),[]),[E,w]=(0,u.useState)(!0),S=!!i;return(0,u.useEffect)((()=>{i&&w(!1)}),[i]),(0,s.createElement)("div",{className:"edit-post-header"},(0,s.createElement)(Uo.Slot,null,(0,s.createElement)(_.__unstableMotion.div,{variants:Qo,transition:{type:"tween",delay:.8}},(0,s.createElement)(Io,{showTooltip:!0,initialPost:t}))),(0,s.createElement)(_.__unstableMotion.div,{variants:jo,transition:{type:"tween",delay:.8},className:"edit-post-header__toolbar"},(0,s.createElement)($o,{disableBlockTools:a}),c&&n&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:L()("selected-block-tools-wrapper",{"is-collapsed":E||!S})},(0,s.createElement)(v.BlockToolbar,{hideDragHandle:!0})),(0,s.createElement)(_.Popover.Slot,{ref:r,name:"block-toolbar"}),S&&(0,s.createElement)(_.Button,{className:"edit-post-header__block-tools-toggle",icon:E?To:Bo,onClick:()=>{w((e=>!e))},label:E?(0,y.__)("Show block tools"):(0,y.__)("Hide block tools")})),(0,s.createElement)("div",{className:L()("edit-post-header__center",{"is-collapsed":h&&S&&!E&&c&&n})},h&&(0,s.createElement)(b.DocumentBar,null))),(0,s.createElement)(_.__unstableMotion.div,{variants:jo,transition:{type:"tween",delay:.8},className:"edit-post-header__settings"},!d&&(0,s.createElement)(b.PostSavedState,{forceIsDirty:l}),(0,s.createElement)(qo,{forceIsAutosaveable:l}),(0,s.createElement)(b.PostPreviewButton,{className:"edit-post-header__post-preview-button",forceIsAutosaveable:l}),(0,s.createElement)(Wo,null),(0,s.createElement)(Oo,{forceIsDirty:l,setEntitiesSavedStatesCallback:e}),(o||!p)&&(0,s.createElement)(me.Slot,{scope:"core/edit-post"}),(0,s.createElement)(Ro,{showIconLabels:p})))},Zo=(0,s.createElement)(C.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"})),Xo=(0,s.createElement)(C.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"})),{Tabs:Ko}=Qe(_.privateApis),Jo=(0,u.forwardRef)(((e,t)=>{const{documentLabel:o}=(0,m.useSelect)((e=>{const{getPostTypeLabel:t}=e(b.store);return{documentLabel:t()||(0,y._x)("Document","noun")}}),[]);return(0,s.createElement)(Ko.TabList,{ref:t},(0,s.createElement)(Ko.Tab,{tabId:In.document,"data-tab-id":In.document},o),(0,s.createElement)(Ko.Tab,{tabId:In.block,"data-tab-id":In.block},(0,y.__)("Block")))})),{PostPanelRow:en}=Qe(b.privateApis);function tn({isOpen:e,onClick:t}){const o=(0,b.usePostVisibilityLabel)();return(0,s.createElement)(_.Button,{__next40pxDefaultSize:!0,className:"edit-post-post-visibility__toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,y.sprintf)((0,y.__)("Select visibility: %s"),o),onClick:t},o)}const on=function(){const[e,t]=(0,u.useState)(null),o=(0,u.useMemo)((()=>({anchor:e,placement:"bottom-end"})),[e]);return(0,s.createElement)(b.PostVisibilityCheck,{render:({canEdit:e})=>(0,s.createElement)(en,{label:(0,y.__)("Visibility"),ref:t},!e&&(0,s.createElement)("span",null,(0,s.createElement)(b.PostVisibilityLabel,null)),e&&(0,s.createElement)(_.Dropdown,{contentClassName:"edit-post-post-visibility__dialog",popoverProps:o,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,s.createElement)(tn,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,s.createElement)(b.PostVisibility,{onClose:e})}))})};function nn(){return(0,s.createElement)(b.PostTrashCheck,null,(0,s.createElement)(b.PostTrash,null))}const{PostPanelRow:rn}=Qe(b.privateApis);const an=function(){return(0,s.createElement)(b.PostStickyCheck,null,(0,s.createElement)(rn,null,(0,s.createElement)(b.PostSticky,null)))};const sn=function(){return(0,s.createElement)(b.PostSlugCheck,null,(0,s.createElement)(_.PanelRow,{className:"edit-post-post-slug"},(0,s.createElement)(b.PostSlug,null)))};const ln=function(){return(0,s.createElement)(b.PostFormatCheck,null,(0,s.createElement)(_.PanelRow,{className:"edit-post-post-format"},(0,s.createElement)(b.PostFormat,null)))},{PostPanelRow:cn}=Qe(b.privateApis);const dn=function(){return(0,s.createElement)(b.PostPendingStatusCheck,null,(0,s.createElement)(cn,null,(0,s.createElement)(b.PostPendingStatus,null)))},{Fill:un,Slot:mn}=(0,_.createSlotFill)("PluginPostStatusInfo"),pn=({children:e,className:t})=>(0,s.createElement)(un,null,(0,s.createElement)(_.PanelRow,{className:t},e));pn.Slot=mn;const gn=pn,hn="post-status";function bn(){const{isOpened:e,isRemoved:t}=(0,m.useSelect)((e=>{const{isEditorPanelRemoved:t,isEditorPanelOpened:o}=e(b.store);return{isRemoved:t(hn),isOpened:o(hn)}}),[]),{toggleEditorPanelOpened:o}=(0,m.useDispatch)(b.store);return t?null:(0,s.createElement)(_.PanelBody,{className:"edit-post-post-status",title:(0,y.__)("Summary"),opened:e,onToggle:()=>o(hn)},(0,s.createElement)(gn.Slot,null,(e=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(on,null),(0,s.createElement)(b.PostSchedulePanel,null),(0,s.createElement)(b.PostTemplatePanel,null),(0,s.createElement)(b.PostURLPanel,null),(0,s.createElement)(b.PostSyncStatus,null),(0,s.createElement)(an,null),(0,s.createElement)(dn,null),(0,s.createElement)(ln,null),(0,s.createElement)(sn,null),(0,s.createElement)(b.PostAuthorPanel,null),e,(0,s.createElement)(_.__experimentalHStack,{style:{marginTop:"16px"},spacing:4,wrap:!0},(0,s.createElement)(b.PostSwitchToDraftButton,null),(0,s.createElement)(nn,null))))))}const En=function({location:e}){const t=(0,u.useRef)(null),o=(0,u.useRef)(null);(0,u.useEffect)((()=>(o.current=document.querySelector(".metabox-location-"+e),o.current&&t.current.appendChild(o.current),()=>{o.current&&document.querySelector("#metaboxes").appendChild(o.current)})),[e]);const n=(0,m.useSelect)((e=>e(ro).isSavingMetaBoxes()),[]),r=L()("edit-post-meta-boxes-area",`is-${e}`,{"is-loading":n});return(0,s.createElement)("div",{className:r},n&&(0,s.createElement)(_.Spinner,null),(0,s.createElement)("div",{className:"edit-post-meta-boxes-area__container",ref:t}),(0,s.createElement)("div",{className:"edit-post-meta-boxes-area__clear"}))};class _n extends u.Component{componentDidMount(){this.updateDOM()}componentDidUpdate(e){this.props.isVisible!==e.isVisible&&this.updateDOM()}updateDOM(){const{id:e,isVisible:t}=this.props,o=document.getElementById(e);o&&(t?o.classList.remove("is-hidden"):o.classList.add("is-hidden"))}render(){return null}}const vn=(0,m.withSelect)(((e,{id:t})=>({isVisible:e(b.store).isEditorPanelEnabled(`meta-box-${t}`)})))(_n);function yn({location:e}){const t=(0,m.useRegistry)(),{metaBoxes:o,areMetaBoxesInitialized:n,isEditorReady:r}=(0,m.useSelect)((t=>{const{__unstableIsEditorReady:o}=t(b.store),{getMetaBoxesPerLocation:n,areMetaBoxesInitialized:r}=t(ro);return{metaBoxes:n(e),areMetaBoxesInitialized:r(),isEditorReady:o()}}),[e]),a=!!o?.length;return(0,u.useEffect)((()=>{r&&a&&!n&&t.dispatch(ro).initializeMetaBoxes()}),[r,a,n]),n?(0,s.createElement)(s.Fragment,null,(null!=o?o:[]).map((({id:e})=>(0,s.createElement)(vn,{key:e,id:e}))),(0,s.createElement)(En,{location:e})):null}window.wp.warning;const{Fill:fn,Slot:wn}=(0,_.createSlotFill)("PluginDocumentSettingPanel"),{EnablePluginDocumentSettingPanelOption:Sn}=Qe(b.privateApis),Pn=({name:e,className:t,title:o,icon:n,children:r})=>{const{name:a}=(0,x.usePluginContext)(),i=`${a}/${e}`,{opened:l,isEnabled:c}=(0,m.useSelect)((e=>{const{isEditorPanelOpened:t,isEditorPanelEnabled:o}=e(b.store);return{opened:t(i),isEnabled:o(i)}}),[i]),{toggleEditorPanelOpened:d}=(0,m.useDispatch)(b.store);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Sn,{label:o,panelName:i}),(0,s.createElement)(fn,null,c&&(0,s.createElement)(_.PanelBody,{className:t,title:o,icon:n,opened:l,onToggle:()=>d(i)},r)))};Pn.Slot=wn;const kn=Pn;function Cn({className:e,...t}){const{postTitle:o,shortcut:n}=(0,m.useSelect)((e=>({postTitle:e(b.store).getEditedPostAttribute("title"),shortcut:e(we.store).getShortcutRepresentation("core/edit-post/toggle-sidebar")})),[]);return(0,s.createElement)(he,{panelClassName:e,className:"edit-post-sidebar",smallScreenTitle:o||(0,y.__)("(no title)"),scope:"core/edit-post",toggleShortcut:n,...t})}const Mn=(0,u.forwardRef)((function({icon:e,size:t=24,...o},n){return(0,u.cloneElement)(e,{width:t,height:t,...o,ref:n})})),xn=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));const Tn=function(){const e=(0,m.useSelect)((e=>{const{getCurrentPost:t}=e(b.store);return t()}),[]);return e?(0,s.createElement)(_.PanelBody,null,(0,s.createElement)(_.Flex,{align:"flex-start",gap:"3"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(Mn,{icon:xn})),(0,s.createElement)(_.FlexBlock,null,(0,s.createElement)("h2",{className:"edit-post-template-summary__title"},e?.title||e?.slug),(0,s.createElement)("p",null,e?.description)))):null},{Tabs:Bn}=Qe(_.privateApis),An=u.Platform.select({web:!0,native:!1}),In={document:"edit-post/document",block:"edit-post/block"},Nn=({sidebarName:e,keyboardShortcut:t,isEditingTemplate:o})=>{const n=(0,u.useRef)(null),r=(0,u.useContext)(Bn.Context);return(0,u.useEffect)((()=>{const t=Array.from(n.current?.querySelectorAll('[role="tab"]')||[]),o=t.find((t=>t.getAttribute("data-tab-id")===e)),r=o?.ownerDocument.activeElement;t.some((e=>r&&r.id===e.id))&&o&&o.id!==r?.id&&o?.focus()}),[e]),(0,s.createElement)(Cn,{identifier:e,header:(0,s.createElement)(Bn.Context.Provider,{value:r},(0,s.createElement)(Jo,{ref:n})),closeLabel:(0,y.__)("Close Settings"),className:"edit-post-sidebar__panel",headerClassName:"edit-post-sidebar__panel-tabs",title:(0,y.__)("Settings"),toggleShortcut:t,icon:(0,y.isRTL)()?Zo:Xo,isActiveByDefault:An},(0,s.createElement)(Bn.Context.Provider,{value:r},(0,s.createElement)(Bn.TabPanel,{tabId:In.document,focusable:!1},!o&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(bn,null),(0,s.createElement)(kn.Slot,null),(0,s.createElement)(b.PostLastRevisionPanel,null),(0,s.createElement)(b.PostTaxonomiesPanel,null),(0,s.createElement)(b.PostFeaturedImagePanel,null),(0,s.createElement)(b.PostExcerptPanel,null),(0,s.createElement)(b.PostDiscussionPanel,null),(0,s.createElement)(b.PageAttributesPanel,null),(0,s.createElement)(yn,{location:"side"})),o&&(0,s.createElement)(Tn,null)),(0,s.createElement)(Bn.TabPanel,{tabId:In.block,focusable:!1},(0,s.createElement)(v.BlockInspector,null))))},Ln=()=>{const{sidebarName:e,isSettingsSidebarActive:t,keyboardShortcut:o,isEditingTemplate:n}=(0,m.useSelect)((e=>{let t=e(oe).getActiveComplementaryArea(ro.name),o=!0;[In.document,In.block].includes(t)||(o=!1,e(v.store).getBlockSelectionStart()&&(t=In.block),t=In.document);return{sidebarName:t,isSettingsSidebarActive:o,keyboardShortcut:e(we.store).getShortcutRepresentation("core/edit-post/toggle-sidebar"),isEditingTemplate:"wp_template"===e(b.store).getCurrentPostType()}}),[]),{openGeneralSidebar:r}=(0,m.useDispatch)(ro),a=(0,u.useCallback)((e=>{e&&r(e)}),[r]);return(0,s.createElement)(Bn,{selectedTabId:t?e:null,onSelect:a,selectOnMove:!1},(0,s.createElement)(Nn,{sidebarName:e,keyboardShortcut:o,isEditingTemplate:n}))};function Fn({nonAnimatedSrc:e,animatedSrc:t}){return(0,s.createElement)("picture",{className:"edit-post-welcome-guide__image"},(0,s.createElement)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,s.createElement)("img",{src:t,width:"312",height:"240",alt:""}))}function Dn(){const{toggleFeature:e}=(0,m.useDispatch)(ro);return(0,s.createElement)(_.Guide,{className:"edit-post-welcome-guide",contentLabel:(0,y.__)("Welcome to the block editor"),finishButtonText:(0,y.__)("Get started"),onFinish:()=>e("welcomeGuide"),pages:[{image:(0,s.createElement)(Fn,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.gif"}),content:(0,s.createElement)(s.Fragment,null,(0,s.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,y.__)("Welcome to the block editor")),(0,s.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,y.__)("In the WordPress editor, each paragraph, image, or video is presented as a distinct “block” of content.")))},{image:(0,s.createElement)(Fn,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-editor.gif"}),content:(0,s.createElement)(s.Fragment,null,(0,s.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,y.__)("Make each block your own")),(0,s.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,y.__)("Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.")))},{image:(0,s.createElement)(Fn,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-library.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-library.gif"}),content:(0,s.createElement)(s.Fragment,null,(0,s.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,y.__)("Get to know the block library")),(0,s.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,u.createInterpolateElement)((0,y.__)("All of the blocks available to you live in the block library. You’ll find it wherever you see the <InserterIconImage /> icon."),{InserterIconImage:(0,s.createElement)("img",{alt:(0,y.__)("inserter"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"})})))},{image:(0,s.createElement)(Fn,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,s.createElement)(s.Fragment,null,(0,s.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,y.__)("Learn how to use the block editor")),(0,s.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,y.__)("New to the block editor? Want to learn more about using it? "),(0,s.createElement)(_.ExternalLink,{href:(0,y.__)("https://wordpress.org/documentation/article/wordpress-block-editor/")},(0,y.__)("Here's a detailed guide."))))}]})}function Rn(){const{toggleFeature:e}=(0,m.useDispatch)(ro);return(0,s.createElement)(_.Guide,{className:"edit-template-welcome-guide",contentLabel:(0,y.__)("Welcome to the template editor"),finishButtonText:(0,y.__)("Get started"),onFinish:()=>e("welcomeGuideTemplate"),pages:[{image:(0,s.createElement)(Fn,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-template-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-template-editor.gif"}),content:(0,s.createElement)(s.Fragment,null,(0,s.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,y.__)("Welcome to the template editor")),(0,s.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,y.__)("Templates help define the layout of the site. You can customize all aspects of your posts and pages using blocks and patterns in this editor.")))}]})}function On(){const{isActive:e,isEditingTemplate:t}=(0,m.useSelect)((e=>{const{isFeatureActive:t}=e(ro),{getCurrentPostType:o}=e(b.store),n="wp_template"===o();return{isActive:t(n?"welcomeGuideTemplate":"welcomeGuide"),isEditingTemplate:n}}),[]);return e?t?(0,s.createElement)(Rn,null):(0,s.createElement)(Dn,null):null}const{Fill:Vn,Slot:Gn}=(0,_.createSlotFill)("PluginPostPublishPanel"),zn=({children:e,className:t,title:o,initialOpen:n=!1,icon:r})=>{const{icon:a}=(0,x.usePluginContext)();return(0,s.createElement)(Vn,null,(0,s.createElement)(_.PanelBody,{className:t,initialOpen:n||!o,title:o,icon:null!=r?r:a},e))};zn.Slot=Gn;const Hn=zn,{Fill:Un,Slot:$n}=(0,_.createSlotFill)("PluginPrePublishPanel"),Wn=({children:e,className:t,title:o,initialOpen:n=!1,icon:r})=>{const{icon:a}=(0,x.usePluginContext)();return(0,s.createElement)(Un,null,(0,s.createElement)(_.PanelBody,{className:t,initialOpen:n||!o,title:o,icon:null!=r?r:a},e))};Wn.Slot=$n;const qn=Wn,{Fill:jn,Slot:Qn}=(0,_.createSlotFill)("ActionsPanel");function Yn({setEntitiesSavedStatesCallback:e,closeEntitiesSavedStates:t,isEntitiesSavedStatesOpen:o}){const{closePublishSidebar:n,togglePublishSidebar:r}=(0,m.useDispatch)(ro),{publishSidebarOpened:a,hasActiveMetaboxes:i,hasNonPostEntityChanges:l}=(0,m.useSelect)((e=>({publishSidebarOpened:e(ro).isPublishSidebarOpened(),hasActiveMetaboxes:e(ro).hasMetaBoxes(),hasNonPostEntityChanges:e(b.store).hasNonPostEntityChanges()})),[]),c=(0,u.useCallback)((()=>e(!0)),[]);let d;return d=a?(0,s.createElement)(b.PostPublishPanel,{onClose:n,forceIsDirty:i,PrePublishExtension:qn.Slot,PostPublishExtension:Hn.Slot}):l?(0,s.createElement)("div",{className:"edit-post-layout__toggle-entities-saved-states-panel"},(0,s.createElement)(_.Button,{variant:"secondary",className:"edit-post-layout__toggle-entities-saved-states-panel-button",onClick:c,"aria-expanded":!1},(0,y.__)("Open save panel"))):(0,s.createElement)("div",{className:"edit-post-layout__toggle-publish-panel"},(0,s.createElement)(_.Button,{variant:"secondary",className:"edit-post-layout__toggle-publish-panel-button",onClick:r,"aria-expanded":!1},(0,y.__)("Open publish panel"))),(0,s.createElement)(s.Fragment,null,o&&(0,s.createElement)(b.EntitiesSavedStates,{close:t}),(0,s.createElement)(Qn,{bubblesVirtually:!0}),!o&&d)}function Zn({blockPatterns:e,onChoosePattern:t}){const o=(0,f.useAsyncList)(e),{resetEditorBlocks:n}=(0,m.useDispatch)(b.store);return(0,s.createElement)(v.__experimentalBlockPatternsList,{blockPatterns:e,shownPatterns:o,onClickPattern:(e,o)=>{n(o),t()}})}function Xn({onClose:e}){const t=function(){const{blockPatternsWithPostContentBlockType:e,postType:t}=(0,m.useSelect)((e=>{const{getPatternsByBlockTypes:t}=e(v.store),{getCurrentPostType:o}=e(b.store);return{blockPatternsWithPostContentBlockType:t("core/post-content"),postType:o()}}),[]);return(0,u.useMemo)((()=>e.filter((e=>"page"===t&&!e.postTypes||Array.isArray(e.postTypes)&&e.postTypes.includes(t)))),[t,e])}();return t.length>0?(0,s.createElement)(_.Modal,{className:"edit-post-start-page-options__modal",title:(0,y.__)("Choose a pattern"),isFullScreen:!0,onRequestClose:e},(0,s.createElement)("div",{className:"edit-post-start-page-options__modal-content"},(0,s.createElement)(Zn,{blockPatterns:t,onChoosePattern:e}))):null}function Kn(){const[e,t]=(0,u.useState)(!1),o=(0,m.useSelect)((e=>{const{isCleanNewPost:t,getRenderingMode:o}=e(b.store),{isFeatureActive:n}=e(ro);return"post-only"===o()&&!n("welcomeGuide")&&t()}),[]);return!o||e?null:(0,s.createElement)(Xn,{onClose:()=>t(!0)})}const Jn=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.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"})),er=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})),tr=(0,s.createElement)(C.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(C.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})),or=(0,s.createElement)(C.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(C.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})),nr=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"m16 15.5h-8v-1.5h8zm-7.5-2.5h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm-9-3h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2z"}),(0,s.createElement)(C.Path,{d:"m18.5 6.5h-13a.5.5 0 0 0 -.5.5v9.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9.5a.5.5 0 0 0 -.5-.5zm-13-1.5h13a2 2 0 0 1 2 2v9.5a2 2 0 0 1 -2 2h-13a2 2 0 0 1 -2-2v-9.5a2 2 0 0 1 2-2z"})),rr=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.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"}));const{getLayoutStyles:ar}=Qe(v.privateApis),{useCommands:sr}=Qe(Ve.privateApis),{useCommandContext:ir}=Qe(Oe.privateApis),{InserterSidebar:lr,ListViewSidebar:cr}=Qe(b.privateApis),dr={header:(0,y.__)("Editor top bar"),body:(0,y.__)("Editor content"),sidebar:(0,y.__)("Editor settings"),actions:(0,y.__)("Editor publish"),footer:(0,y.__)("Editor footer")};const ur=function({initialPost:e}){sr(),function(){const{openGeneralSidebar:e,closeGeneralSidebar:t,switchEditorMode:o,toggleDistractionFree:n}=(0,m.useDispatch)(ro),{openModal:r}=(0,m.useDispatch)(oe),{editorMode:a,activeSidebar:s,isListViewOpen:i,isFullscreen:l,isPublishSidebarEnabled:c,showBlockBreadcrumbs:d,isDistractionFree:u,isTopToolbar:p,isFocusMode:h}=(0,m.useSelect)((e=>{const{get:t}=e(g.store),{getEditorMode:o}=e(ro),{isListViewOpened:n}=e(b.store);return{activeSidebar:e(oe).getActiveComplementaryArea(ro.name),editorMode:o(),isListViewOpen:n(),isPublishSidebarEnabled:e(b.store).isPublishSidebarEnabled(),showBlockBreadcrumbs:t("core","showBlockBreadcrumbs"),isDistractionFree:t("core","distractionFree"),isFocusMode:t("core","focusMode"),isTopToolbar:t("core","fixedToolbar"),isFullscreen:t("core/edit-post","fullscreenMode")}}),[]),{toggle:E}=(0,m.useDispatch)(g.store),{createInfoNotice:_}=(0,m.useDispatch)(B.store),{__unstableSaveForPreview:v,setIsListViewOpened:f}=(0,m.useDispatch)(b.store),{getCurrentPostId:w}=(0,m.useSelect)(b.store);(0,Oe.useCommand)({name:"core/open-settings-sidebar",label:(0,y.__)("Toggle settings sidebar"),icon:(0,y.isRTL)()?Zo:Xo,callback:({close:o})=>{o(),"edit-post/document"===s?t():e("edit-post/document")}}),(0,Oe.useCommand)({name:"core/open-block-inspector",label:(0,y.__)("Toggle block inspector"),icon:Jn,callback:({close:o})=>{o(),"edit-post/block"===s?t():e("edit-post/block")}}),(0,Oe.useCommand)({name:"core/toggle-distraction-free",label:u?(0,y.__)("Exit Distraction Free"):(0,y.__)("Enter Distraction Free "),callback:({close:e})=>{n(),e()}}),(0,Oe.useCommand)({name:"core/toggle-spotlight-mode",label:(0,y.__)("Toggle spotlight"),callback:({close:e})=>{E("core","focusMode"),e(),_(h?(0,y.__)("Spotlight off."):(0,y.__)("Spotlight on."),{id:"core/edit-post/toggle-spotlight-mode/notice",type:"snackbar",actions:[{label:(0,y.__)("Undo"),onClick:()=>{E("core","focusMode")}}]})}}),(0,Oe.useCommand)({name:"core/toggle-fullscreen-mode",label:l?(0,y.__)("Exit fullscreen"):(0,y.__)("Enter fullscreen"),icon:er,callback:({close:e})=>{E("core/edit-post","fullscreenMode"),e(),_(l?(0,y.__)("Fullscreen off."):(0,y.__)("Fullscreen on."),{id:"core/edit-post/toggle-fullscreen-mode/notice",type:"snackbar",actions:[{label:(0,y.__)("Undo"),onClick:()=>{E("core/edit-post","fullscreenMode")}}]})}}),(0,Oe.useCommand)({name:"core/toggle-list-view",label:i?(0,y.__)("Close List View"):(0,y.__)("Open List View"),icon:tr,callback:({close:e})=>{f(!i),e(),_(i?(0,y.__)("List View off."):(0,y.__)("List View on."),{id:"core/edit-post/toggle-list-view/notice",type:"snackbar"})}}),(0,Oe.useCommand)({name:"core/toggle-top-toolbar",label:(0,y.__)("Toggle top toolbar"),callback:({close:e})=>{E("core","fixedToolbar"),u&&n(),e(),_(p?(0,y.__)("Top toolbar off."):(0,y.__)("Top toolbar on."),{id:"core/edit-post/toggle-top-toolbar/notice",type:"snackbar",actions:[{label:(0,y.__)("Undo"),onClick:()=>{E("core","fixedToolbar")}}]})}}),(0,Oe.useCommand)({name:"core/toggle-code-editor",label:"visual"===a?(0,y.__)("Open code editor"):(0,y.__)("Exit code editor"),icon:or,callback:({close:e})=>{o("visual"===a?"text":"visual"),e()}}),(0,Oe.useCommand)({name:"core/open-preferences",label:(0,y.__)("Editor preferences"),callback:()=>{r(So)}}),(0,Oe.useCommand)({name:"core/open-shortcut-help",label:(0,y.__)("Keyboard shortcuts"),icon:nr,callback:()=>{r(Me)}}),(0,Oe.useCommand)({name:"core/toggle-breadcrumbs",label:d?(0,y.__)("Hide block breadcrumbs"):(0,y.__)("Show block breadcrumbs"),callback:({close:e})=>{E("core","showBlockBreadcrumbs"),e(),_(d?(0,y.__)("Breadcrumbs hidden."):(0,y.__)("Breadcrumbs visible."),{id:"core/edit-post/toggle-breadcrumbs/notice",type:"snackbar"})}}),(0,Oe.useCommand)({name:"core/toggle-publish-sidebar",label:c?(0,y.__)("Disable pre-publish checks"):(0,y.__)("Enable pre-publish checks"),icon:rr,callback:({close:e})=>{e(),E("core/edit-post","isPublishSidebarEnabled"),_(c?(0,y.__)("Pre-publish checks disabled."):(0,y.__)("Pre-publish checks enabled."),{id:"core/edit-post/publish-sidebar/notice",type:"snackbar"})}}),(0,Oe.useCommand)({name:"core/preview-link",label:(0,y.__)("Preview in a new tab"),icon:M,callback:async({close:e})=>{e();const t=w(),o=await v();window.open(o,`wp-preview-${t}`)}})}(),(0,v.useBlockCommands)();const t=(0,f.useViewportMatch)("medium","<"),o=(0,f.useViewportMatch)("huge",">="),n=(0,f.useViewportMatch)("large"),r=(0,f.useViewportMatch)("medium"),{openGeneralSidebar:a,closeGeneralSidebar:i}=(0,m.useDispatch)(ro),{createErrorNotice:l}=(0,m.useDispatch)(B.store),{setIsInserterOpened:c}=(0,m.useDispatch)(b.store),{mode:d,isFullscreenActive:p,isRichEditingEnabled:h,sidebarIsOpened:E,hasActiveMetaboxes:w,previousShortcut:S,nextShortcut:P,hasBlockSelected:k,isInserterOpened:C,isListViewOpened:T,showIconLabels:A,isDistractionFree:I,showBlockBreadcrumbs:N,showMetaBoxes:F,documentLabel:D,hasHistory:R}=(0,m.useSelect)((e=>{const{get:t}=e(g.store),{getEditorSettings:o,getPostTypeLabel:n}=e(b.store),r=o(),a=n();return{showMetaBoxes:"post-only"===e(b.store).getRenderingMode(),sidebarIsOpened:!(!e(oe).getActiveComplementaryArea(ro.name)&&!e(ro).isPublishSidebarOpened()),isFullscreenActive:e(ro).isFeatureActive("fullscreenMode"),isInserterOpened:e(b.store).isInserterOpened(),isListViewOpened:e(b.store).isListViewOpened(),mode:e(ro).getEditorMode(),isRichEditingEnabled:r.richEditingEnabled,hasActiveMetaboxes:e(ro).hasMetaBoxes(),previousShortcut:e(we.store).getAllShortcutKeyCombinations("core/edit-post/previous-region"),nextShortcut:e(we.store).getAllShortcutKeyCombinations("core/edit-post/next-region"),showIconLabels:t("core","showIconLabels"),isDistractionFree:t("core","distractionFree"),showBlockBreadcrumbs:t("core","showBlockBreadcrumbs"),documentLabel:a||(0,y._x)("Document","noun"),hasBlockSelected:!!e(v.store).getBlockSelectionStart(),hasHistory:!!o().onNavigateToPreviousEntityRecord}}),[]);ir(k?"block-selection-edit":"post-editor-edit");const O=function(){const{hasThemeStyleSupport:e,editorSettings:t}=(0,m.useSelect)((e=>({hasThemeStyleSupport:e(ro).isFeatureActive("themeStyles"),editorSettings:e(b.store).getEditorSettings()})),[]);return(0,u.useMemo)((()=>{var o,n;const r=null!==(o=t.styles?.filter((e=>e.__unstableType&&"theme"!==e.__unstableType)))&&void 0!==o?o:[],a=[...t.defaultEditorStyles,...r],s=e&&r.length!==(null!==(n=t.styles?.length)&&void 0!==n?n:0);return t.disableLayoutStyles||s||a.push({css:ar({style:{},selector:"body",hasBlockGapSupport:!1,hasFallbackGapSupport:!0,fallbackGapValue:"0.5em"})}),s?t.styles:a}),[t.defaultEditorStyles,t.disableLayoutStyles,t.styles,e])}();(0,u.useEffect)((()=>{E&&!o&&c(!1)}),[o,c,E]),(0,u.useEffect)((()=>{C&&!o&&i()}),[i,C,o]);const[V,G]=(0,u.useState)(!1),z=(0,u.useCallback)((e=>{"function"==typeof V&&V(e),G(!1)}),[V]);A?document.body.classList.add("show-icon-labels"):document.body.classList.remove("show-icon-labels");const H=L()("edit-post-layout","is-mode-"+d,{"is-sidebar-opened":E,"has-metaboxes":w,"is-distraction-free":I&&n,"is-entity-save-view-open":!!V}),U=T?(0,y.__)("Document Overview"):(0,y.__)("Block Library");return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(be,{isActive:p}),(0,s.createElement)(xo,{hasHistory:R}),(0,s.createElement)(b.UnsavedChangesWarning,null),(0,s.createElement)(b.AutosaveMonitor,null),(0,s.createElement)(b.LocalAutosaveMonitor,null),(0,s.createElement)(co,null),(0,s.createElement)(b.EditorKeyboardShortcutsRegister,null),(0,s.createElement)(b.EditorKeyboardShortcuts,null),(0,s.createElement)(ve,{isDistractionFree:I&&n,className:H,labels:{...dr,secondarySidebar:U},header:(0,s.createElement)(Yo,{setEntitiesSavedStatesCallback:G,initialPost:e}),editorNotices:(0,s.createElement)(b.EditorNotices,null),secondarySidebar:"visual"===d&&C?(0,s.createElement)(lr,null):"visual"===d&&T?(0,s.createElement)(cr,null):null,sidebar:(!t||E)&&(0,s.createElement)(s.Fragment,null,!t&&!E&&(0,s.createElement)("div",{className:"edit-post-layout__toggle-sidebar-panel"},(0,s.createElement)(_.Button,{variant:"secondary",className:"edit-post-layout__toggle-sidebar-panel-button",onClick:()=>a(k?"edit-post/block":"edit-post/document"),"aria-expanded":!1},k?(0,y.__)("Open block settings"):(0,y.__)("Open document settings"))),(0,s.createElement)(he.Slot,{scope:"core/edit-post"})),notices:(0,s.createElement)(b.EditorSnackbars,null),content:(0,s.createElement)(s.Fragment,null,!I&&(0,s.createElement)(b.EditorNotices,null),("text"===d||!h)&&(0,s.createElement)(ao,null),!r&&(0,s.createElement)(v.BlockToolbar,{hideDragHandle:!0}),h&&"visual"===d&&(0,s.createElement)(lo,{styles:O}),!I&&F&&(0,s.createElement)("div",{className:"edit-post-layout__metaboxes"},(0,s.createElement)(yn,{location:"normal"}),(0,s.createElement)(yn,{location:"advanced"})),t&&E&&(0,s.createElement)(_.ScrollLock,null)),footer:!I&&!t&&N&&h&&"visual"===d&&(0,s.createElement)("div",{className:"edit-post-layout__footer"},(0,s.createElement)(v.BlockBreadcrumb,{rootLabelText:D})),actions:(0,s.createElement)(Yn,{closeEntitiesSavedStates:z,isEntitiesSavedStatesOpen:V,setEntitiesSavedStatesCallback:G}),shortcuts:{previous:S,next:P}}),(0,s.createElement)(Po,null),(0,s.createElement)(Ae,null),(0,s.createElement)(On,null),(0,s.createElement)(Co,null),(0,s.createElement)(Kn,null),(0,s.createElement)(x.PluginArea,{onError:function(e){l((0,y.sprintf)((0,y.__)('The "%s" plugin has encountered an error and cannot be rendered.'),e))}}),!I&&(0,s.createElement)(Ln,null))},mr=e=>{const{hasBlockSelection:t,isEditorSidebarOpened:o,isDistractionFree:n}=(0,m.useSelect)((e=>{const{get:t}=e(g.store);return{hasBlockSelection:!!e(v.store).getBlockSelectionStart(),isEditorSidebarOpened:e(no).isEditorSidebarOpened(),isDistractionFree:t("core","distractionFree")}}),[e]),{openGeneralSidebar:r}=(0,m.useDispatch)(no);(0,u.useEffect)((()=>{o&&!n&&r(t?"edit-post/block":"edit-post/document")}),[t,o])},pr=e=>{const{newPermalink:t}=(0,m.useSelect)((e=>({newPermalink:e(b.store).getCurrentPost().link})),[e]),o=(0,u.useRef)();(0,u.useEffect)((()=>{o.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[e]),(0,u.useEffect)((()=>{t&&o.current&&o.current.setAttribute("href",t)}),[t])};function gr({postId:e}){return mr(e),pr(e),null}const{ExperimentalEditorProvider:hr}=Qe(b.privateApis),{BlockRemovalWarningModal:br}=Qe(v.privateApis),Er={"bindings/core/pattern-overrides":(0,y.__)("Blocks from synced patterns that can have overriden content.")};const _r=function({postId:e,postType:t,settings:o,initialEdits:n,...r}){const{initialPost:a,currentPost:i,onNavigateToEntityRecord:l,onNavigateToPreviousEntityRecord:c}=function(e,t){const[o,n]=(0,u.useReducer)(((e,{type:t,post:o})=>"push"===t?[...e,o]:"pop"===t&&e.length>1?e.slice(0,-1):e),[{postId:e,postType:t}]),r=(0,u.useMemo)((()=>({type:t,id:e})),[t,e]),a=(0,u.useCallback)((e=>{n({type:"push",post:{postId:e.postId,postType:e.postType}})}),[]),s=(0,u.useCallback)((()=>{n({type:"pop"})}),[]);return{currentPost:o[o.length-1],initialPost:r,onNavigateToEntityRecord:a,onNavigateToPreviousEntityRecord:o.length>1?s:void 0}}(e,t),{hasInlineToolbar:d,post:p,preferredStyleVariations:h,template:E}=(0,m.useSelect)((e=>{var t;const{isFeatureActive:o,getEditedPostTemplate:n}=e(ro),{getEntityRecord:r,getPostType:a,canUser:s}=e(k.store),{getEditorSettings:l}=e(b.store),c=r("postType",i.postType,i.postId),d=l().supportsTemplateMode,u=null!==(t=a(i.postType)?.viewable)&&void 0!==t&&t,m=s("create","templates");return{hasInlineToolbar:o("inlineToolbar"),preferredStyleVariations:e(g.store).get("core/edit-post","preferredStyleVariations"),template:d&&u&&m&&"wp_template"!==i.postType?n():null,post:c}}),[i.postType,i.postId]),{updatePreferredStyleVariations:v}=(0,m.useDispatch)(ro),y=(0,u.useMemo)((()=>({...o,onNavigateToEntityRecord:l,onNavigateToPreviousEntityRecord:c,defaultRenderingMode:"post-only",__experimentalPreferredStyleVariations:{value:h,onChange:v},hasInlineToolbar:d})),[o,d,h,v,l,c]);return p?(0,s.createElement)(_.SlotFillProvider,null,(0,s.createElement)(hr,{settings:y,post:p,initialEdits:n,useSubRegistry:!1,__unstableTemplate:E,...r},(0,s.createElement)(b.ErrorBoundary,null,(0,s.createElement)(Oe.CommandMenu,null),(0,s.createElement)(gr,{postId:i.postId}),(0,s.createElement)(ur,{initialPost:a}),(0,s.createElement)(br,{rules:Er})),(0,s.createElement)(b.PostLockedModal,null))):null},vr=({allowedBlocks:e,icon:t,label:o,onClick:n,small:r,role:a})=>(0,s.createElement)(v.BlockSettingsMenuControls,null,(({selectedBlocks:i,onClose:l})=>((e,t)=>{return!Array.isArray(t)||(o=t,0===e.filter((e=>!o.includes(e))).length);var o})(i,e)?(0,s.createElement)(_.MenuItem,{onClick:(0,f.compose)(n,l),icon:t,label:r?o:void 0,role:a},!r&&o):null)),yr=(0,f.compose)((0,x.withPluginContext)(((e,t)=>{var o;return{as:null!==(o=t.as)&&void 0!==o?o:_.MenuItem,icon:t.icon||e.icon,name:"core/edit-post/plugin-more-menu"}})))(le);function fr(e){return(0,s.createElement)(de,{__unstableExplicitMenuItem:!0,scope:"core/edit-post",...e})}const{PluginPostExcerpt:wr}=Qe(b.privateApis);function Sr(e,t,o,n,r){const a=window.matchMedia("(min-width: 782px)").matches,c=document.getElementById(e),d=(0,u.createRoot)(c);(0,m.dispatch)(g.store).setDefaults("core/edit-post",{fullscreenMode:!0,isPublishSidebarEnabled:!0,preferredStyleVariations:{},themeStyles:!0,welcomeGuide:!0,welcomeGuideTemplate:!0}),(0,m.dispatch)(g.store).setDefaults("core",{allowRightClickOverrides:!0,editorMode:"visual",fixedToolbar:!1,hiddenBlockTypes:[],inactivePanels:[],openPanels:["post-status"],showBlockBreadcrumbs:!0,showIconLabels:!1,showListViewByDefault:!1}),(0,m.dispatch)(i.store).reapplyBlockTypeFilters(),a&&(0,m.select)(g.store).get("core","showListViewByDefault")&&!(0,m.select)(g.store).get("core","distractionFree")&&(0,m.dispatch)(b.store).setIsListViewOpened(!0),(0,l.registerCoreBlocks)(),(0,h.registerLegacyWidgetBlock)({inserter:!1}),(0,h.registerWidgetGroupBlock)({inserter:!1}),(0,p.addFilter)("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromInserter",((e,t)=>"core/template-part"!==t.name&&e)),(0,p.addFilter)("blockEditor.__unstableCanInsertBlockType","removePostContentFromInserter",((e,t,o,{getBlockParentsByBlockName:n})=>"core/post-content"===t.name?n(o,"core/query").length>0:e));"Standards"!==("CSS1Compat"===document.compatMode?"Standards":"Quirks")&&console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening <!DOCTYPE html>. Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins.");return-1!==window.navigator.userAgent.indexOf("iPhone")&&window.addEventListener("scroll",(e=>{const t=document.getElementsByClassName("interface-interface-skeleton__body")[0];e.target===document&&(window.scrollY>100&&(t.scrollTop=t.scrollTop+window.scrollY),document.getElementsByClassName("is-mode-visual")[0]&&window.scrollTo(0,0))})),window.addEventListener("dragover",(e=>e.preventDefault()),!1),window.addEventListener("drop",(e=>e.preventDefault()),!1),d.render((0,s.createElement)(_r,{settings:n,postId:o,postType:t,initialEdits:r})),d}function Pr(){d()("wp.editPost.reinitializeEditor",{since:"6.2",version:"6.3"})}})(),(window.wp=window.wp||{}).editPost=n})(); \ No newline at end of file
+(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var o in s)e.o(s,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:s[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{PluginBlockSettingsMenuItem:()=>Ht,PluginDocumentSettingPanel:()=>zt,PluginMoreMenuItem:()=>qt,PluginPostPublishPanel:()=>Wt,PluginPostStatusInfo:()=>$t,PluginPrePublishPanel:()=>Qt,PluginSidebar:()=>Xt,PluginSidebarMoreMenuItem:()=>Zt,__experimentalFullscreenModeClose:()=>qe,__experimentalMainDashboardButton:()=>Kt,__experimentalPluginPostExcerpt:()=>Yt,initializeEditor:()=>Jt,reinitializeEditor:()=>es,store:()=>ze});var s={};e.r(s),e.d(s,{__experimentalSetPreviewDeviceType:()=>re,__unstableCreateTemplate:()=>le,closeGeneralSidebar:()=>V,closeModal:()=>U,closePublishSidebar:()=>z,hideBlockTypes:()=>ee,initializeMetaBoxes:()=>pe,metaBoxUpdatesFailure:()=>ie,metaBoxUpdatesSuccess:()=>oe,openGeneralSidebar:()=>N,openModal:()=>G,openPublishSidebar:()=>H,removeEditorPanel:()=>$,requestMetaBoxUpdates:()=>se,setAvailableMetaBoxesPerLocation:()=>te,setIsEditingTemplate:()=>ce,setIsInserterOpened:()=>ne,setIsListViewOpened:()=>ae,showBlockTypes:()=>J,switchEditorMode:()=>Z,toggleDistractionFree:()=>ue,toggleEditorPanelEnabled:()=>Q,toggleEditorPanelOpened:()=>W,toggleFeature:()=>X,togglePinnedPluginItem:()=>Y,togglePublishSidebar:()=>q,updatePreferredStyleVariations:()=>K});var o={};e.r(o),e.d(o,{__experimentalGetInsertionPoint:()=>Ne,__experimentalGetPreviewDeviceType:()=>Fe,areMetaBoxesInitialized:()=>Ue,getActiveGeneralSidebarName:()=>be,getActiveMetaBoxLocations:()=>ke,getAllMetaBoxes:()=>Ce,getEditedPostTemplate:()=>He,getEditorMode:()=>we,getHiddenBlockTypes:()=>xe,getMetaBoxesPerLocation:()=>Re,getPreference:()=>ve,getPreferences:()=>fe,hasMetaBoxes:()=>Oe,isEditingTemplate:()=>Ge,isEditorPanelEnabled:()=>Ee,isEditorPanelOpened:()=>Me,isEditorPanelRemoved:()=>Pe,isEditorSidebarOpened:()=>ye,isFeatureActive:()=>Be,isInserterOpened:()=>Le,isListViewOpened:()=>Ve,isMetaBoxLocationActive:()=>Ae,isMetaBoxLocationVisible:()=>Ie,isModalActive:()=>Te,isPluginItemPinned:()=>je,isPluginSidebarOpened:()=>_e,isPublishSidebarOpened:()=>Se,isSavingMetaBoxes:()=>De});const i=window.wp.blocks,r=window.wp.blockLibrary,n=window.wp.deprecated;var a=e.n(n);const c=window.wp.element,l=window.wp.data,d=window.wp.preferences,p=window.wp.widgets,u=window.wp.editor,g=window.wp.components,m=window.wp.coreData,h=window.wp.commands;function w(e){var t,s,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(s=w(e[t]))&&(o&&(o+=" "),o+=s)}else for(s in e)e[s]&&(o&&(o+=" "),o+=s);return o}const y=function(){for(var e,t,s=0,o="",i=arguments.length;s<i;s++)(e=arguments[s])&&(t=w(e))&&(o&&(o+=" "),o+=t);return o},_=window.wp.blockEditor,b=window.wp.plugins,f=window.wp.i18n,v=window.wp.notices,x=window.wp.coreCommands,S=window.wp.url,P=window.wp.htmlEntities,E=window.wp.primitives,M=window.ReactJSXRuntime,T=(0,M.jsx)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,M.jsx)(E.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})}),B=window.wp.compose;function j(e=[],t){const s=[...e];for(const e of t){const t=s.findIndex((t=>t.id===e.id));-1!==t?s[t]=e:s.push(e)}return s}const k=(0,l.combineReducers)({isSaving:function(e=!1,t){switch(t.type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":case"META_BOX_UPDATES_FAILURE":return!1;default:return e}},locations:function(e={},t){if("SET_META_BOXES_PER_LOCATIONS"===t.type){const s={...e};for(const[e,o]of Object.entries(t.metaBoxesPerLocation))s[e]=j(s[e],o);return s}return e},initialized:function(e=!1,t){return"META_BOXES_INITIALIZED"===t.type||e}}),I=(0,l.combineReducers)({metaBoxes:k}),A=window.wp.apiFetch;var R=e.n(A);const C=window.wp.hooks,O=window.wp.privateApis,{lock:D,unlock:F}=(0,O.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/edit-post"),{interfaceStore:L}=F(u.privateApis),N=e=>({registry:t})=>{t.dispatch(L).enableComplementaryArea("core",e)},V=()=>({registry:e})=>e.dispatch(L).disableComplementaryArea("core"),G=e=>({registry:t})=>(a()("select( 'core/edit-post' ).openModal( name )",{since:"6.3",alternative:"select( 'core/interface').openModal( name )"}),t.dispatch(L).openModal(e)),U=()=>({registry:e})=>(a()("select( 'core/edit-post' ).closeModal()",{since:"6.3",alternative:"select( 'core/interface').closeModal()"}),e.dispatch(L).closeModal()),H=()=>({registry:e})=>{a()("dispatch( 'core/edit-post' ).openPublishSidebar",{since:"6.6",alternative:"dispatch( 'core/editor').openPublishSidebar"}),e.dispatch(u.store).openPublishSidebar()},z=()=>({registry:e})=>{a()("dispatch( 'core/edit-post' ).closePublishSidebar",{since:"6.6",alternative:"dispatch( 'core/editor').closePublishSidebar"}),e.dispatch(u.store).closePublishSidebar()},q=()=>({registry:e})=>{a()("dispatch( 'core/edit-post' ).togglePublishSidebar",{since:"6.6",alternative:"dispatch( 'core/editor').togglePublishSidebar"}),e.dispatch(u.store).togglePublishSidebar()},Q=e=>({registry:t})=>{a()("dispatch( 'core/edit-post' ).toggleEditorPanelEnabled",{since:"6.5",alternative:"dispatch( 'core/editor').toggleEditorPanelEnabled"}),t.dispatch(u.store).toggleEditorPanelEnabled(e)},W=e=>({registry:t})=>{a()("dispatch( 'core/edit-post' ).toggleEditorPanelOpened",{since:"6.5",alternative:"dispatch( 'core/editor').toggleEditorPanelOpened"}),t.dispatch(u.store).toggleEditorPanelOpened(e)},$=e=>({registry:t})=>{a()("dispatch( 'core/edit-post' ).removeEditorPanel",{since:"6.5",alternative:"dispatch( 'core/editor').removeEditorPanel"}),t.dispatch(u.store).removeEditorPanel(e)},X=e=>({registry:t})=>t.dispatch(d.store).toggle("core/edit-post",e),Z=e=>({registry:t})=>{a()("dispatch( 'core/edit-post' ).switchEditorMode",{since:"6.6",alternative:"dispatch( 'core/editor').switchEditorMode"}),t.dispatch(u.store).switchEditorMode(e)},Y=e=>({registry:t})=>{const s=t.select(L).isItemPinned("core",e);t.dispatch(L)[s?"unpinItem":"pinItem"]("core",e)};function K(){return a()("dispatch( 'core/edit-post' ).updatePreferredStyleVariations",{since:"6.6",hint:"Preferred Style Variations are not supported anymore."}),{type:"NOTHING"}}const J=e=>({registry:t})=>{F(t.dispatch(u.store)).showBlockTypes(e)},ee=e=>({registry:t})=>{F(t.dispatch(u.store)).hideBlockTypes(e)};function te(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}const se=()=>async({registry:e,select:t,dispatch:s})=>{s({type:"REQUEST_META_BOX_UPDATES"}),window.tinyMCE&&window.tinyMCE.triggerSave();const o=new window.FormData(document.querySelector(".metabox-base-form")),i=o.get("post_ID"),r=o.get("post_type"),n=e.select(m.store).getEditedEntityRecord("postType",r,i),a=[!!n.comment_status&&["comment_status",n.comment_status],!!n.ping_status&&["ping_status",n.ping_status],!!n.sticky&&["sticky",n.sticky],!!n.author&&["post_author",n.author]].filter(Boolean),c=[o,...t.getActiveMetaBoxLocations().map((e=>new window.FormData((e=>{const t=document.querySelector(`.edit-post-meta-boxes-area.is-${e} .metabox-location-${e}`);return t||document.querySelector("#metaboxes .metabox-location-"+e)})(e))))].reduce(((e,t)=>{for(const[s,o]of t)e.append(s,o);return e}),new window.FormData);a.forEach((([e,t])=>c.append(e,t)));try{await R()({url:window._wpMetaBoxUrl,method:"POST",body:c,parse:!1}),s.metaBoxUpdatesSuccess()}catch{s.metaBoxUpdatesFailure()}};function oe(){return{type:"META_BOX_UPDATES_SUCCESS"}}function ie(){return{type:"META_BOX_UPDATES_FAILURE"}}const re=e=>({registry:t})=>{a()("dispatch( 'core/edit-post' ).__experimentalSetPreviewDeviceType",{since:"6.5",version:"6.7",hint:"registry.dispatch( editorStore ).setDeviceType"}),t.dispatch(u.store).setDeviceType(e)},ne=e=>({registry:t})=>{a()("dispatch( 'core/edit-post' ).setIsInserterOpened",{since:"6.5",alternative:"dispatch( 'core/editor').setIsInserterOpened"}),t.dispatch(u.store).setIsInserterOpened(e)},ae=e=>({registry:t})=>{a()("dispatch( 'core/edit-post' ).setIsListViewOpened",{since:"6.5",alternative:"dispatch( 'core/editor').setIsListViewOpened"}),t.dispatch(u.store).setIsListViewOpened(e)};function ce(){return a()("dispatch( 'core/edit-post' ).setIsEditingTemplate",{since:"6.5",alternative:"dispatch( 'core/editor').setRenderingMode"}),{type:"NOTHING"}}function le(){return a()("dispatch( 'core/edit-post' ).__unstableCreateTemplate",{since:"6.5"}),{type:"NOTHING"}}let de=!1;const pe=()=>({registry:e,select:t,dispatch:s})=>{if(!e.select(u.store).__unstableIsEditorReady())return;if(de)return;const o=e.select(u.store).getCurrentPostType();window.postboxes.page!==o&&window.postboxes.add_postbox_toggles(o),de=!0,(0,C.addFilter)("editor.__unstableSavePost","core/edit-post/save-metaboxes",((e,o)=>e.then((()=>{if(!o.isAutosave&&t.hasMetaBoxes())return s.requestMetaBoxUpdates()})))),s({type:"META_BOXES_INITIALIZED"})},ue=()=>({registry:e})=>{a()("dispatch( 'core/edit-post' ).toggleDistractionFree",{since:"6.6",alternative:"dispatch( 'core/editor').toggleDistractionFree"}),e.dispatch(u.store).toggleDistractionFree()},{interfaceStore:ge}=F(u.privateApis),me=[],he={},we=(0,l.createRegistrySelector)((e=>()=>{var t;return null!==(t=e(d.store).get("core","editorMode"))&&void 0!==t?t:"visual"})),ye=(0,l.createRegistrySelector)((e=>()=>{const t=e(ge).getActiveComplementaryArea("core");return["edit-post/document","edit-post/block"].includes(t)})),_e=(0,l.createRegistrySelector)((e=>()=>{const t=e(ge).getActiveComplementaryArea("core");return!!t&&!["edit-post/document","edit-post/block"].includes(t)})),be=(0,l.createRegistrySelector)((e=>()=>e(ge).getActiveComplementaryArea("core")));const fe=(0,l.createRegistrySelector)((e=>()=>{a()("select( 'core/edit-post' ).getPreferences",{since:"6.0",alternative:"select( 'core/preferences' ).get"});const t=["editorMode","hiddenBlockTypes"].reduce(((t,s)=>({...t,[s]:e(d.store).get("core",s)})),{}),s=function(e,t){var s;const o=e?.reduce(((e,t)=>({...e,[t]:{enabled:!1}})),{}),i=t?.reduce(((e,t)=>{const s=e?.[t];return{...e,[t]:{...s,opened:!0}}}),null!=o?o:{});return null!==(s=null!=i?i:o)&&void 0!==s?s:he}(e(d.store).get("core","inactivePanels"),e(d.store).get("core","openPanels"));return{...t,panels:s}}));function ve(e,t,s){a()("select( 'core/edit-post' ).getPreference",{since:"6.0",alternative:"select( 'core/preferences' ).get"});const o=fe(e)[t];return void 0===o?s:o}const xe=(0,l.createRegistrySelector)((e=>()=>{var t;return null!==(t=e(d.store).get("core","hiddenBlockTypes"))&&void 0!==t?t:me})),Se=(0,l.createRegistrySelector)((e=>()=>(a()("select( 'core/edit-post' ).isPublishSidebarOpened",{since:"6.6",alternative:"select( 'core/editor' ).isPublishSidebarOpened"}),e(u.store).isPublishSidebarOpened()))),Pe=(0,l.createRegistrySelector)((e=>(t,s)=>(a()("select( 'core/edit-post' ).isEditorPanelRemoved",{since:"6.5",alternative:"select( 'core/editor' ).isEditorPanelRemoved"}),e(u.store).isEditorPanelRemoved(s)))),Ee=(0,l.createRegistrySelector)((e=>(t,s)=>(a()("select( 'core/edit-post' ).isEditorPanelEnabled",{since:"6.5",alternative:"select( 'core/editor' ).isEditorPanelEnabled"}),e(u.store).isEditorPanelEnabled(s)))),Me=(0,l.createRegistrySelector)((e=>(t,s)=>(a()("select( 'core/edit-post' ).isEditorPanelOpened",{since:"6.5",alternative:"select( 'core/editor' ).isEditorPanelOpened"}),e(u.store).isEditorPanelOpened(s)))),Te=(0,l.createRegistrySelector)((e=>(t,s)=>(a()("select( 'core/edit-post' ).isModalActive",{since:"6.3",alternative:"select( 'core/interface' ).isModalActive"}),!!e(ge).isModalActive(s)))),Be=(0,l.createRegistrySelector)((e=>(t,s)=>!!e(d.store).get("core/edit-post",s))),je=(0,l.createRegistrySelector)((e=>(t,s)=>e(ge).isItemPinned("core",s))),ke=(0,l.createSelector)((e=>Object.keys(e.metaBoxes.locations).filter((t=>Ae(e,t)))),(e=>[e.metaBoxes.locations])),Ie=(0,l.createRegistrySelector)((e=>(t,s)=>Ae(t,s)&&Re(t,s)?.some((({id:s})=>e(u.store).isEditorPanelEnabled(t,`meta-box-${s}`)))));function Ae(e,t){const s=Re(e,t);return!!s&&0!==s.length}function Re(e,t){return e.metaBoxes.locations[t]}const Ce=(0,l.createSelector)((e=>Object.values(e.metaBoxes.locations).flat()),(e=>[e.metaBoxes.locations]));function Oe(e){return ke(e).length>0}function De(e){return e.metaBoxes.isSaving}const Fe=(0,l.createRegistrySelector)((e=>()=>(a()("select( 'core/edit-site' ).__experimentalGetPreviewDeviceType",{since:"6.5",version:"6.7",alternative:"select( 'core/editor' ).getDeviceType"}),e(u.store).getDeviceType()))),Le=(0,l.createRegistrySelector)((e=>()=>(a()("select( 'core/edit-post' ).isInserterOpened",{since:"6.5",alternative:"select( 'core/editor' ).isInserterOpened"}),e(u.store).isInserterOpened()))),Ne=(0,l.createRegistrySelector)((e=>()=>(a()("select( 'core/edit-post' ).__experimentalGetInsertionPoint",{since:"6.5",version:"6.7"}),F(e(u.store)).getInsertionPoint()))),Ve=(0,l.createRegistrySelector)((e=>()=>(a()("select( 'core/edit-post' ).isListViewOpened",{since:"6.5",alternative:"select( 'core/editor' ).isListViewOpened"}),e(u.store).isListViewOpened()))),Ge=(0,l.createRegistrySelector)((e=>()=>(a()("select( 'core/edit-post' ).isEditingTemplate",{since:"6.5",alternative:"select( 'core/editor' ).getRenderingMode"}),"wp_template"===e(u.store).getCurrentPostType())));function Ue(e){return e.metaBoxes.initialized}const He=(0,l.createRegistrySelector)((e=>()=>{const{id:t,type:s,slug:o}=e(u.store).getCurrentPost(),{getSite:i,getEditedEntityRecord:r,getEntityRecords:n}=e(m.store),a=i();if(+t===a?.page_for_posts){return r("postType","wp_template",e(m.store).getDefaultTemplateId({slug:"home"}))}const c=e(u.store).getEditedPostAttribute("template");if(c){const e=n("postType","wp_template",{per_page:-1})?.find((e=>e.slug===c));return e?r("postType","wp_template",e.id):e}let l;l=o?"page"===s?`${s}-${o}`:`single-${s}-${o}`:"page"===s?"page":`single-${s}`;const d=e(m.store).getDefaultTemplateId({slug:l});return d?e(m.store).getEditedEntityRecord("postType","wp_template",d):null})),ze=(0,l.createReduxStore)("core/edit-post",{reducer:I,actions:s,selectors:o});(0,l.register)(ze);const qe=function({showTooltip:e,icon:t,href:s,initialPost:o}){var i;const{isActive:r,isRequestingSiteIcon:n,postType:a,siteIconUrl:c}=(0,l.useSelect)((e=>{const{getCurrentPostType:t}=e(u.store),{isFeatureActive:s}=e(ze),{getEntityRecord:i,getPostType:r,isResolving:n}=e(m.store),a=i("root","__unstableBase",void 0)||{},c=o?.type||t();return{isActive:s("fullscreenMode"),isRequestingSiteIcon:n("getEntityRecord",["root","__unstableBase",void 0]),postType:r(c),siteIconUrl:a.site_icon_url}}),[]),d=(0,B.useReducedMotion)();if(!r||!a)return null;let p=(0,M.jsx)(g.Icon,{size:"36px",icon:T});const h={expand:{scale:1.25,transition:{type:"tween",duration:"0.3"}}};c&&(p=(0,M.jsx)(g.__unstableMotion.img,{variants:!d&&h,alt:(0,f.__)("Site Icon"),className:"edit-post-fullscreen-mode-close_site-icon",src:c})),n&&(p=null),t&&(p=(0,M.jsx)(g.Icon,{size:"36px",icon:t}));const w=y({"edit-post-fullscreen-mode-close":!0,"has-icon":c}),_=null!=s?s:(0,S.addQueryArgs)("edit.php",{post_type:a.slug}),b=null!==(i=a?.labels?.view_items)&&void 0!==i?i:(0,f.__)("Back");return(0,M.jsx)(g.__unstableMotion.div,{whileHover:"expand",children:(0,M.jsx)(g.Button,{className:w,href:_,label:b,showTooltip:e,children:p})})},{BackButton:Qe}=F(u.privateApis),We={hidden:{x:"-100%"},distractionFreeInactive:{x:0},hover:{x:0,transition:{type:"tween",delay:.2}}};const $e=function({initialPost:e}){return(0,M.jsx)(Qe,{children:({length:t})=>t<=1&&(0,M.jsx)(g.__unstableMotion.div,{variants:We,transition:{type:"tween",delay:.8},children:(0,M.jsx)(qe,{showTooltip:!0,initialPost:e})})})},Xe=window.wp.keyboardShortcuts;const Ze=function(){const{toggleFeature:e}=(0,l.useDispatch)(ze),{registerShortcut:t}=(0,l.useDispatch)(Xe.store);return(0,c.useEffect)((()=>{t({name:"core/edit-post/toggle-fullscreen",category:"global",description:(0,f.__)("Toggle fullscreen mode."),keyCombination:{modifier:"secondary",character:"f"}})}),[]),(0,Xe.useShortcut)("core/edit-post/toggle-fullscreen",(()=>{e("fullscreenMode")})),null},{ReusableBlocksRenameHint:Ye}=F(_.privateApis);function Ke(){const{editPost:e}=(0,l.useDispatch)(u.store),[t,s]=(0,c.useState)(!1),[o,i]=(0,c.useState)(void 0),[r,n]=(0,c.useState)(""),{postType:a,isNewPost:d}=(0,l.useSelect)((e=>{const{getEditedPostAttribute:t,isCleanNewPost:s}=e(u.store);return{postType:t("type"),isNewPost:s()}}),[]);return(0,c.useEffect)((()=>{d&&"wp_block"===a&&s(!0)}),[]),"wp_block"===a&&d?(0,M.jsx)(M.Fragment,{children:t&&(0,M.jsx)(g.Modal,{title:(0,f.__)("Create pattern"),onRequestClose:()=>{s(!1)},overlayClassName:"reusable-blocks-menu-items__convert-modal",children:(0,M.jsx)("form",{onSubmit:t=>{t.preventDefault(),s(!1),e({title:r,meta:{wp_pattern_sync_status:o}})},children:(0,M.jsxs)(g.__experimentalVStack,{spacing:"5",children:[(0,M.jsx)(g.TextControl,{label:(0,f.__)("Name"),value:r,onChange:n,placeholder:(0,f.__)("My pattern"),className:"patterns-create-modal__name-input",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,M.jsx)(Ye,{}),(0,M.jsx)(g.ToggleControl,{label:(0,f._x)("Synced","pattern (singular)"),help:(0,f.__)("Sync this pattern across multiple locations."),checked:!o,onChange:()=>{i(o?void 0:"unsynced")}}),(0,M.jsx)(g.__experimentalHStack,{justify:"right",children:(0,M.jsx)(g.Button,{variant:"primary",type:"submit",disabled:!r,__experimentalIsFocusable:!0,children:(0,f.__)("Create")})})]})})})}):null}class Je extends c.Component{constructor(){super(...arguments),this.state={historyId:null}}componentDidUpdate(e){const{postId:t,postStatus:s,postType:o,isSavingPost:i,hasHistory:r}=this.props,{historyId:n}=this.state;"trash"!==s||i?t===e.postId&&t===n||"auto-draft"===s||!t||r||this.setBrowserURL(t):this.setTrashURL(t,o)}setTrashURL(e,t){window.location.href=function(e,t){return(0,S.addQueryArgs)("edit.php",{trashed:1,post_type:t,ids:e})}(e,t)}setBrowserURL(e){window.history.replaceState({id:e},"Post "+e,function(e){return(0,S.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((()=>({historyId:e})))}render(){return null}}const et=(0,l.withSelect)((e=>{const{getCurrentPost:t,isSavingPost:s}=e(u.store),o=t();let{id:i,status:r,type:n}=o;return["wp_template","wp_template_part"].includes(n)&&(i=o.wp_id),{postId:i,postStatus:r,postType:n,isSavingPost:s()}}))(Je);const tt=function({location:e}){const t=(0,c.useRef)(null),s=(0,c.useRef)(null);(0,c.useEffect)((()=>(s.current=document.querySelector(".metabox-location-"+e),s.current&&t.current.appendChild(s.current),()=>{s.current&&document.querySelector("#metaboxes").appendChild(s.current)})),[e]);const o=(0,l.useSelect)((e=>e(ze).isSavingMetaBoxes()),[]),i=y("edit-post-meta-boxes-area",`is-${e}`,{"is-loading":o});return(0,M.jsxs)("div",{className:i,children:[o&&(0,M.jsx)(g.Spinner,{}),(0,M.jsx)("div",{className:"edit-post-meta-boxes-area__container",ref:t}),(0,M.jsx)("div",{className:"edit-post-meta-boxes-area__clear"})]})};class st extends c.Component{componentDidMount(){this.updateDOM()}componentDidUpdate(e){this.props.isVisible!==e.isVisible&&this.updateDOM()}updateDOM(){const{id:e,isVisible:t}=this.props,s=document.getElementById(e);s&&(t?s.classList.remove("is-hidden"):s.classList.add("is-hidden"))}render(){return null}}const ot=(0,l.withSelect)(((e,{id:t})=>({isVisible:e(u.store).isEditorPanelEnabled(`meta-box-${t}`)})))(st);function it({location:e}){const t=(0,l.useRegistry)(),{metaBoxes:s,areMetaBoxesInitialized:o,isEditorReady:i}=(0,l.useSelect)((t=>{const{__unstableIsEditorReady:s}=t(u.store),{getMetaBoxesPerLocation:o,areMetaBoxesInitialized:i}=t(ze);return{metaBoxes:o(e),areMetaBoxesInitialized:i(),isEditorReady:s()}}),[e]),r=!!s?.length;return(0,c.useEffect)((()=>{i&&r&&!o&&t.dispatch(ze).initializeMetaBoxes()}),[i,r,o]),o?(0,M.jsxs)(M.Fragment,{children:[(null!=s?s:[]).map((({id:e})=>(0,M.jsx)(ot,{id:e},e))),(0,M.jsx)(tt,{location:e})]}):null}const rt=window.wp.keycodes;const nt=function(){const e=(0,l.useSelect)((e=>{const{canUser:t}=e(m.store),s=(0,S.addQueryArgs)("edit.php",{post_type:"wp_block"}),o=(0,S.addQueryArgs)("site-editor.php",{path:"/patterns"});return t("create","templates")?o:s}),[]);return(0,M.jsx)(g.MenuItem,{role:"menuitem",href:e,children:(0,f.__)("Manage patterns")})};function at(){const e=(0,l.useSelect)((e=>"wp_template"===e(u.store).getCurrentPostType()),[]);return(0,M.jsx)(d.PreferenceToggleMenuItem,{scope:"core/edit-post",name:e?"welcomeGuideTemplate":"welcomeGuide",label:(0,f.__)("Welcome Guide")})}const{PreferenceBaseOption:ct}=F(d.privateApis);function lt({willEnable:e}){const[t,s]=(0,c.useState)(!1);return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("p",{className:"edit-post-preferences-modal__custom-fields-confirmation-message",children:(0,f.__)("A page reload is required for this change. Make sure your content is saved before reloading.")}),(0,M.jsx)(g.Button,{className:"edit-post-preferences-modal__custom-fields-confirmation-button",variant:"secondary",isBusy:t,__experimentalIsFocusable:!0,disabled:t,onClick:()=>{s(!0),function(){const e=document.getElementById("toggle-custom-fields-form");e.querySelector('[name="_wp_http_referer"]').setAttribute("value",(0,S.getPathAndQueryString)(window.location.href)),e.submit()}()},children:e?(0,f.__)("Show & Reload Page"):(0,f.__)("Hide & Reload Page")})]})}const dt=(0,l.withSelect)((e=>({areCustomFieldsEnabled:!!e(u.store).getEditorSettings().enableCustomFields})))((function({label:e,areCustomFieldsEnabled:t}){const[s,o]=(0,c.useState)(t);return(0,M.jsx)(ct,{label:e,isChecked:s,onChange:o,children:s!==t&&(0,M.jsx)(lt,{willEnable:s})})})),{PreferenceBaseOption:pt}=F(d.privateApis),ut=(0,B.compose)((0,l.withSelect)(((e,{panelName:t})=>{const{isEditorPanelEnabled:s,isEditorPanelRemoved:o}=e(u.store);return{isRemoved:o(t),isChecked:s(t)}})),(0,B.ifCondition)((({isRemoved:e})=>!e)),(0,l.withDispatch)(((e,{panelName:t})=>({onChange:()=>e(u.store).toggleEditorPanelEnabled(t)}))))(pt),{PreferencesModalSection:gt}=F(d.privateApis);const mt=(0,l.withSelect)((e=>{const{getEditorSettings:t}=e(u.store),{getAllMetaBoxes:s}=e(ze);return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:s()}}))((function({areCustomFieldsRegistered:e,metaBoxes:t,...s}){const o=t.filter((({id:e})=>"postcustom"!==e));return e||0!==o.length?(0,M.jsxs)(gt,{...s,children:[e&&(0,M.jsx)(dt,{label:(0,f.__)("Custom fields")}),o.map((({id:e,title:t})=>(0,M.jsx)(ut,{label:t,panelName:`meta-box-${e}`},e)))]}):null})),{PreferenceToggleControl:ht}=F(d.privateApis),{PreferencesModal:wt}=F(u.privateApis);function yt(){const e={general:(0,M.jsx)(mt,{title:(0,f.__)("Advanced")}),appearance:(0,M.jsx)(ht,{scope:"core/edit-post",featureName:"themeStyles",help:(0,f.__)("Make the editor look like your theme."),label:(0,f.__)("Use theme styles")})};return(0,M.jsx)(wt,{extraSections:e})}const{ToolsMoreMenuGroup:_t,ViewMoreMenuGroup:bt}=F(u.privateApis),ft=()=>{const e=(0,B.useViewportMatch)("large");return(0,M.jsxs)(M.Fragment,{children:[e&&(0,M.jsx)(bt,{children:(0,M.jsx)(d.PreferenceToggleMenuItem,{scope:"core/edit-post",name:"fullscreenMode",label:(0,f.__)("Fullscreen mode"),info:(0,f.__)("Show and hide the admin user interface"),messageActivated:(0,f.__)("Fullscreen mode activated"),messageDeactivated:(0,f.__)("Fullscreen mode deactivated"),shortcut:rt.displayShortcut.secondary("f")})}),(0,M.jsxs)(_t,{children:[(0,M.jsx)(nt,{}),(0,M.jsx)(at,{})]}),(0,M.jsx)(yt,{})]})};function vt({nonAnimatedSrc:e,animatedSrc:t}){return(0,M.jsxs)("picture",{className:"edit-post-welcome-guide__image",children:[(0,M.jsx)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,M.jsx)("img",{src:t,width:"312",height:"240",alt:""})]})}function xt(){const{toggleFeature:e}=(0,l.useDispatch)(ze);return(0,M.jsx)(g.Guide,{className:"edit-post-welcome-guide",contentLabel:(0,f.__)("Welcome to the block editor"),finishButtonText:(0,f.__)("Get started"),onFinish:()=>e("welcomeGuide"),pages:[{image:(0,M.jsx)(vt,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.gif"}),content:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("h1",{className:"edit-post-welcome-guide__heading",children:(0,f.__)("Welcome to the block editor")}),(0,M.jsx)("p",{className:"edit-post-welcome-guide__text",children:(0,f.__)("In the WordPress editor, each paragraph, image, or video is presented as a distinct “block” of content.")})]})},{image:(0,M.jsx)(vt,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-editor.gif"}),content:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("h1",{className:"edit-post-welcome-guide__heading",children:(0,f.__)("Make each block your own")}),(0,M.jsx)("p",{className:"edit-post-welcome-guide__text",children:(0,f.__)("Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.")})]})},{image:(0,M.jsx)(vt,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-library.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-library.gif"}),content:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("h1",{className:"edit-post-welcome-guide__heading",children:(0,f.__)("Get to know the block library")}),(0,M.jsx)("p",{className:"edit-post-welcome-guide__text",children:(0,c.createInterpolateElement)((0,f.__)("All of the blocks available to you live in the block library. You’ll find it wherever you see the <InserterIconImage /> icon."),{InserterIconImage:(0,M.jsx)("img",{alt:(0,f.__)("inserter"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"})})})]})},{image:(0,M.jsx)(vt,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("h1",{className:"edit-post-welcome-guide__heading",children:(0,f.__)("Learn how to use the block editor")}),(0,M.jsxs)("p",{className:"edit-post-welcome-guide__text",children:[(0,f.__)("New to the block editor? Want to learn more about using it? "),(0,M.jsx)(g.ExternalLink,{href:(0,f.__)("https://wordpress.org/documentation/article/wordpress-block-editor/"),children:(0,f.__)("Here's a detailed guide.")})]})]})}]})}function St(){const{toggleFeature:e}=(0,l.useDispatch)(ze);return(0,M.jsx)(g.Guide,{className:"edit-template-welcome-guide",contentLabel:(0,f.__)("Welcome to the template editor"),finishButtonText:(0,f.__)("Get started"),onFinish:()=>e("welcomeGuideTemplate"),pages:[{image:(0,M.jsx)(vt,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-template-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-template-editor.gif"}),content:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("h1",{className:"edit-post-welcome-guide__heading",children:(0,f.__)("Welcome to the template editor")}),(0,M.jsx)("p",{className:"edit-post-welcome-guide__text",children:(0,f.__)("Templates help define the layout of the site. You can customize all aspects of your posts and pages using blocks and patterns in this editor.")})]})}]})}function Pt(){const{isActive:e,isEditingTemplate:t}=(0,l.useSelect)((e=>{const{isFeatureActive:t}=e(ze),{getCurrentPostType:s}=e(u.store),o="wp_template"===s();return{isActive:t(o?"welcomeGuideTemplate":"welcomeGuide"),isEditingTemplate:o}}),[]);return e?t?(0,M.jsx)(St,{}):(0,M.jsx)(xt,{}):null}const Et=(0,M.jsx)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,M.jsx)(E.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})});const Mt=!1;const{getLayoutStyles:Tt}=F(_.privateApis),{useCommands:Bt}=F(x.privateApis),{useCommandContext:jt}=F(h.privateApis),{EditorInterface:kt,FullscreenMode:It,Sidebar:At}=F(u.privateApis),{BlockKeyboardShortcuts:Rt}=F(r.privateApis),Ct=["wp_template","wp_template_part","wp_block","wp_navigation"];const Ot=function({initialPost:e}){Bt(),function(){const{isFullscreen:e}=(0,l.useSelect)((e=>{const{get:t}=e(d.store);return{isFullscreen:t("core/edit-post","fullscreenMode")}}),[]),{toggle:t}=(0,l.useDispatch)(d.store),{createInfoNotice:s}=(0,l.useDispatch)(v.store);(0,h.useCommand)({name:"core/toggle-fullscreen-mode",label:e?(0,f.__)("Exit fullscreen"):(0,f.__)("Enter fullscreen"),icon:Et,callback:({close:o})=>{t("core/edit-post","fullscreenMode"),o(),s(e?(0,f.__)("Fullscreen off."):(0,f.__)("Fullscreen on."),{id:"core/edit-post/toggle-fullscreen-mode/notice",type:"snackbar",actions:[{label:(0,f.__)("Undo"),onClick:()=>{t("core/edit-post","fullscreenMode")}}]})}})}();const t=function(){const e=(0,l.useRegistry)();return(0,B.useRefEffect)((t=>{function s(s){if(s.target!==t)return;const{ownerDocument:o}=t,{defaultView:r}=o;if(!r.parseInt(r.getComputedStyle(t).paddingBottom,10))return;const n=t.lastElementChild;if(!n)return;const a=n.getBoundingClientRect();if(s.clientY<a.bottom)return;s.preventDefault();const c=e.select(_.store).getBlockOrder(""),l=c[c.length-1];if(!l)return;const d=e.select(_.store).getBlock(l),{selectBlock:p,insertDefaultBlock:u}=e.dispatch(_.store);(0,i.isUnmodifiedDefaultBlock)(d)?p(l):u()}return t.addEventListener("mousedown",s),()=>{t.removeEventListener("mousedown",s)}}),[e])}(),s=function(){const{isBlockBasedTheme:e,hasV3BlocksOnly:t,isEditingTemplate:s,hasMetaBoxes:o}=(0,l.useSelect)((e=>{const{getEditorSettings:t,getCurrentPostType:s}=e(u.store),{getBlockTypes:o}=e(i.store);return{isBlockBasedTheme:t().__unstableIsBlockBasedTheme,hasV3BlocksOnly:o().every((e=>e.apiVersion>=3)),isEditingTemplate:"wp_template"===s(),hasMetaBoxes:e(ze).hasMetaBoxes()}}),[]);return(t||Mt&&e)&&!o||s}(),{createErrorNotice:o}=(0,l.useDispatch)(v.store),{mode:r,isFullscreenActive:n,hasActiveMetaboxes:a,hasBlockSelected:p,showIconLabels:g,isDistractionFree:m,showMetaBoxes:w,hasHistory:x,isEditingTemplate:E,isWelcomeGuideVisible:T}=(0,l.useSelect)((e=>{const{get:t}=e(d.store),{getEditorSettings:s}=e(u.store),{isFeatureActive:o}=e(ze);return{mode:e(u.store).getEditorMode(),isFullscreenActive:e(ze).isFeatureActive("fullscreenMode"),hasActiveMetaboxes:e(ze).hasMetaBoxes(),hasBlockSelected:!!e(_.store).getBlockSelectionStart(),showIconLabels:t("core","showIconLabels"),isDistractionFree:t("core","distractionFree"),showMetaBoxes:"post-only"===e(u.store).getRenderingMode(),hasHistory:!!s().onNavigateToPreviousEntityRecord,isEditingTemplate:"wp_template"===e(u.store).getCurrentPostType(),isWelcomeGuideVisible:o("welcomeGuide")}}),[]);jt(p?"block-selection-edit":"entity-edit");const j=function(){const{hasThemeStyleSupport:e,editorSettings:t,isZoomedOutView:s,hasMetaBoxes:o,renderingMode:i,postType:r}=(0,l.useSelect)((e=>{const{__unstableGetEditorMode:t}=e(_.store),{getCurrentPostType:s,getRenderingMode:o}=e(u.store),i=s();return{hasThemeStyleSupport:e(ze).isFeatureActive("themeStyles"),editorSettings:e(u.store).getEditorSettings(),isZoomedOutView:"zoom-out"===t(),hasMetaBoxes:e(ze).hasMetaBoxes(),renderingMode:o(),postType:i}}),[]);return(0,c.useMemo)((()=>{var n,a,c;const l=null!==(n=t.styles?.filter((e=>e.__unstableType&&"theme"!==e.__unstableType)))&&void 0!==n?n:[],d=[...t.defaultEditorStyles,...l],p=e&&l.length!==(null!==(a=t.styles?.length)&&void 0!==a?a:0);t.disableLayoutStyles||p||d.push({css:Tt({style:{},selector:"body",hasBlockGapSupport:!1,hasFallbackGapSupport:!0,fallbackGapValue:"0.5em"})});const u=p?null!==(c=t.styles)&&void 0!==c?c:[]:d;return s||o||"post-only"!==i||Ct.includes(r)?u:[...u,{css:":root :where(body){padding-bottom: 40vh}"}]}),[t.defaultEditorStyles,t.disableLayoutStyles,t.styles,e,r])}();g?document.body.classList.add("show-icon-labels"):document.body.classList.remove("show-icon-labels");const k=y("edit-post-layout","is-mode-"+r,{"has-metaboxes":a}),{createSuccessNotice:I}=(0,l.useDispatch)(v.store),A=(0,c.useCallback)(((e,t)=>{switch(e){case"move-to-trash":document.location.href=(0,S.addQueryArgs)("edit.php",{trashed:1,post_type:t[0].type,ids:t[0].id});break;case"duplicate-post":{const e=t[0],s="string"==typeof e.title?e.title:e.title?.rendered;I((0,f.sprintf)((0,f.__)('"%s" successfully created.'),(0,P.decodeEntities)(s)),{type:"snackbar",id:"duplicate-post-action",actions:[{label:(0,f.__)("Edit"),onClick:()=>{const t=e.id;document.location.href=(0,S.addQueryArgs)("post.php",{post:t,action:"edit"})}}]})}}}),[I]);return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(It,{isActive:n}),(0,M.jsx)(et,{hasHistory:x}),(0,M.jsx)(u.UnsavedChangesWarning,{}),(0,M.jsx)(u.AutosaveMonitor,{}),(0,M.jsx)(u.LocalAutosaveMonitor,{}),(0,M.jsx)(Ze,{}),(0,M.jsx)(u.EditorKeyboardShortcutsRegister,{}),(0,M.jsx)(Rt,{}),(0,M.jsx)(Pt,{}),(0,M.jsx)(Ke,{}),(0,M.jsx)(b.PluginArea,{onError:function(e){o((0,f.sprintf)((0,f.__)('The "%s" plugin has encountered an error and cannot be rendered.'),e))}}),!m&&(0,M.jsx)(At,{onActionPerformed:A,extraPanels:!E&&(0,M.jsx)(it,{location:"side"})}),(0,M.jsx)(ft,{}),(0,M.jsx)($e,{initialPost:e}),(0,M.jsx)(u.EditorSnackbars,{}),(0,M.jsx)(kt,{className:k,styles:j,forceIsDirty:a,contentRef:t,disableIframe:!s,autoFocus:!T,children:!m&&w&&(0,M.jsxs)("div",{className:"edit-post-layout__metaboxes",children:[(0,M.jsx)(it,{location:"normal"}),(0,M.jsx)(it,{location:"advanced"})]})})]})},Dt=()=>{const{newPermalink:e}=(0,l.useSelect)((e=>({newPermalink:e(u.store).getCurrentPost().link})),[]),t=(0,c.useRef)();(0,c.useEffect)((()=>{t.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[]),(0,c.useEffect)((()=>{e&&t.current&&t.current.setAttribute("href",e)}),[e])};function Ft(){return Dt(),null}const{ExperimentalEditorProvider:Lt}=F(u.privateApis);const Nt=function({postId:e,postType:t,settings:s,initialEdits:o,...i}){const{currentPost:r,onNavigateToEntityRecord:n,onNavigateToPreviousEntityRecord:a}=function(e,t,s){const[o,i]=(0,c.useReducer)(((e,{type:t,post:s,previousRenderingMode:o})=>"push"===t?[...e,{post:s,previousRenderingMode:o}]:"pop"===t&&e.length>1?e.slice(0,-1):e),[{post:{postId:e,postType:t}}]),{post:r,previousRenderingMode:n}=o[o.length-1],{getRenderingMode:a}=(0,l.useSelect)(u.store),{setRenderingMode:d}=(0,l.useDispatch)(u.store),p=(0,c.useCallback)((e=>{i({type:"push",post:{postId:e.postId,postType:e.postType},previousRenderingMode:a()}),d(s)}),[a,d,s]),g=(0,c.useCallback)((()=>{i({type:"pop"}),n&&d(n)}),[d,n]);return{currentPost:r,onNavigateToEntityRecord:p,onNavigateToPreviousEntityRecord:o.length>1?g:void 0}}(e,t,"post-only"),{post:d,template:p}=(0,l.useSelect)((e=>{var t;const{getEditedPostTemplate:s}=e(ze),{getEntityRecord:o,getPostType:i,canUser:n}=e(m.store),{getEditorSettings:a}=e(u.store),c=o("postType",r.postType,r.postId),l=a().supportsTemplateMode,d=null!==(t=i(r.postType)?.viewable)&&void 0!==t&&t,p=n("read","templates");return{template:l&&d&&p&&"wp_template"!==r.postType?s():null,post:c}}),[r.postType,r.postId]),w=(0,c.useMemo)((()=>({...s,onNavigateToEntityRecord:n,onNavigateToPreviousEntityRecord:a,defaultRenderingMode:"post-only"})),[s,n,a]),y=(0,c.useMemo)((()=>({type:t,id:e})),[t,e]);return d?(0,M.jsx)(g.SlotFillProvider,{children:(0,M.jsxs)(Lt,{settings:w,post:d,initialEdits:o,useSubRegistry:!1,__unstableTemplate:p,...i,children:[(0,M.jsxs)(u.ErrorBoundary,{children:[(0,M.jsx)(h.CommandMenu,{}),(0,M.jsx)(Ft,{}),(0,M.jsx)(Ot,{initialPost:y})]}),(0,M.jsx)(u.PostLockedModal,{})]})}):null},{PluginPostExcerpt:Vt}=F(u.privateApis),Gt=(0,S.getPath)(window.location.href)?.includes("site-editor.php"),Ut=e=>{a()(`wp.editPost.${e}`,{since:"6.6",alternative:`wp.editor.${e}`})};function Ht(e){return Gt?null:(Ut("PluginBlockSettingsMenuItem"),(0,M.jsx)(u.PluginBlockSettingsMenuItem,{...e}))}function zt(e){return Gt?null:(Ut("PluginDocumentSettingPanel"),(0,M.jsx)(u.PluginDocumentSettingPanel,{...e}))}function qt(e){return Gt?null:(Ut("PluginMoreMenuItem"),(0,M.jsx)(u.PluginMoreMenuItem,{...e}))}function Qt(e){return Gt?null:(Ut("PluginPrePublishPanel"),(0,M.jsx)(u.PluginPrePublishPanel,{...e}))}function Wt(e){return Gt?null:(Ut("PluginPostPublishPanel"),(0,M.jsx)(u.PluginPostPublishPanel,{...e}))}function $t(e){return Gt?null:(Ut("PluginPostStatusInfo"),(0,M.jsx)(u.PluginPostStatusInfo,{...e}))}function Xt(e){return Gt?null:(Ut("PluginSidebar"),(0,M.jsx)(u.PluginSidebar,{...e}))}function Zt(e){return Gt?null:(Ut("PluginSidebarMoreMenuItem"),(0,M.jsx)(u.PluginSidebarMoreMenuItem,{...e}))}function Yt(){return Gt?null:(a()("wp.editPost.__experimentalPluginPostExcerpt",{since:"6.6",hint:"Core and custom panels can be access programmatically using their panel name.",link:"https://developer.wordpress.org/block-editor/reference-guides/slotfills/plugin-document-setting-panel/#accessing-a-panel-programmatically"}),Vt)}const{BackButton:Kt}=F(u.privateApis);function Jt(e,t,s,o,n){const a=window.matchMedia("(min-width: 782px)").matches,g=document.getElementById(e),m=(0,c.createRoot)(g);(0,l.dispatch)(d.store).setDefaults("core/edit-post",{fullscreenMode:!0,themeStyles:!0,welcomeGuide:!0,welcomeGuideTemplate:!0}),(0,l.dispatch)(d.store).setDefaults("core",{allowRightClickOverrides:!0,editorMode:"visual",fixedToolbar:!1,hiddenBlockTypes:[],inactivePanels:[],openPanels:["post-status"],showBlockBreadcrumbs:!0,showIconLabels:!1,showListViewByDefault:!1,isPublishSidebarEnabled:!0}),(0,l.dispatch)(i.store).reapplyBlockTypeFilters(),a&&(0,l.select)(d.store).get("core","showListViewByDefault")&&!(0,l.select)(d.store).get("core","distractionFree")&&(0,l.dispatch)(u.store).setIsListViewOpened(!0),(0,r.registerCoreBlocks)(),(0,p.registerLegacyWidgetBlock)({inserter:!1}),(0,p.registerWidgetGroupBlock)({inserter:!1});"Standards"!==("CSS1Compat"===document.compatMode?"Standards":"Quirks")&&console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening <!DOCTYPE html>. Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins.");return-1!==window.navigator.userAgent.indexOf("iPhone")&&window.addEventListener("scroll",(e=>{const t=document.getElementsByClassName("interface-interface-skeleton__body")[0];e.target===document&&(window.scrollY>100&&(t.scrollTop=t.scrollTop+window.scrollY),document.getElementsByClassName("is-mode-visual")[0]&&window.scrollTo(0,0))})),window.addEventListener("dragover",(e=>e.preventDefault()),!1),window.addEventListener("drop",(e=>e.preventDefault()),!1),m.render((0,M.jsx)(Nt,{settings:o,postId:s,postType:t,initialEdits:n})),m}function es(){a()("wp.editPost.reinitializeEditor",{since:"6.2",version:"6.3"})}(window.wp=window.wp||{}).editPost=t})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/edit-site.js b/wp-includes/js/dist/edit-site.js
index c29d3d9..d38affa 100644
--- a/wp-includes/js/dist/edit-site.js
+++ b/wp-includes/js/dist/edit-site.js
@@ -6748,932 +6748,6 @@
/***/ }),
-/***/ 4306:
-/***/ (function(module, exports) {
-
-var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- autosize 4.0.4
- 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'];
-});
-
-/***/ }),
-
-/***/ 5755:
-/***/ ((module, exports) => {
-
-var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/
-/* global define */
-
-(function () {
- 'use strict';
-
- var hasOwn = {}.hasOwnProperty;
- var nativeCodeString = '[native code]';
-
- 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)) {
- if (arg.length) {
- var inner = classNames.apply(null, arg);
- if (inner) {
- classes.push(inner);
- }
- }
- } else if (argType === 'object') {
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
- classes.push(arg.toString());
- continue;
- }
-
- 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 {}
-}());
-
-
-/***/ }),
-
-/***/ 6109:
-/***/ ((module) => {
-
-// 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;
-
-
-/***/ }),
-
-/***/ 66:
-/***/ ((module) => {
-
-"use strict";
-
-
-var isMergeableObject = function isMergeableObject(value) {
- return isNonNullObject(value)
- && !isSpecial(value)
-};
-
-function isNonNullObject(value) {
- return !!value && typeof value === 'object'
-}
-
-function isSpecial(value) {
- var stringValue = Object.prototype.toString.call(value);
-
- return stringValue === '[object RegExp]'
- || stringValue === '[object Date]'
- || isReactElement(value)
-}
-
-// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
-var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
-var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
-
-function isReactElement(value) {
- return value.$$typeof === REACT_ELEMENT_TYPE
-}
-
-function emptyTarget(val) {
- return Array.isArray(val) ? [] : {}
-}
-
-function cloneUnlessOtherwiseSpecified(value, options) {
- return (options.clone !== false && options.isMergeableObject(value))
- ? deepmerge(emptyTarget(value), value, options)
- : value
-}
-
-function defaultArrayMerge(target, source, options) {
- return target.concat(source).map(function(element) {
- return cloneUnlessOtherwiseSpecified(element, options)
- })
-}
-
-function getMergeFunction(key, options) {
- if (!options.customMerge) {
- return deepmerge
- }
- var customMerge = options.customMerge(key);
- return typeof customMerge === 'function' ? customMerge : deepmerge
-}
-
-function getEnumerableOwnPropertySymbols(target) {
- return Object.getOwnPropertySymbols
- ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
- return Object.propertyIsEnumerable.call(target, symbol)
- })
- : []
-}
-
-function getKeys(target) {
- return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))
-}
-
-function propertyIsOnObject(object, property) {
- try {
- return property in object
- } catch(_) {
- return false
- }
-}
-
-// Protects from prototype poisoning and unexpected merging up the prototype chain.
-function propertyIsUnsafe(target, key) {
- return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
- && !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
- && Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
-}
-
-function mergeObject(target, source, options) {
- var destination = {};
- if (options.isMergeableObject(target)) {
- getKeys(target).forEach(function(key) {
- destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
- });
- }
- getKeys(source).forEach(function(key) {
- if (propertyIsUnsafe(target, key)) {
- return
- }
-
- if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
- destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
- } else {
- destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
- }
- });
- return destination
-}
-
-function deepmerge(target, source, options) {
- options = options || {};
- options.arrayMerge = options.arrayMerge || defaultArrayMerge;
- options.isMergeableObject = options.isMergeableObject || isMergeableObject;
- // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
- // implementations can use it. The caller may not replace it.
- options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
-
- var sourceIsArray = Array.isArray(source);
- var targetIsArray = Array.isArray(target);
- var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
-
- if (!sourceAndTargetTypesMatch) {
- return cloneUnlessOtherwiseSpecified(source, options)
- } else if (sourceIsArray) {
- return options.arrayMerge(target, source, options)
- } else {
- return mergeObject(target, source, options)
- }
-}
-
-deepmerge.all = function deepmergeAll(array, options) {
- if (!Array.isArray(array)) {
- throw new Error('first argument should be an array')
- }
-
- return array.reduce(function(prev, next) {
- return deepmerge(prev, next, options)
- }, {})
-};
-
-var deepmerge_1 = deepmerge;
-
-module.exports = deepmerge_1;
-
-
-/***/ }),
-
-/***/ 461:
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-// Load in dependencies
-var computedStyle = __webpack_require__(6109);
-
-/**
- * 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 = '&nbsp;';
-
- // 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;
-
-
-/***/ }),
-
-/***/ 628:
-/***/ ((module, __unused_webpack_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__(4067);
-
-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,
- bigint: 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;
-};
-
-
-/***/ }),
-
-/***/ 5826:
-/***/ ((module, __unused_webpack_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__(628)();
-}
-
-
-/***/ }),
-
-/***/ 4067:
-/***/ ((module) => {
-
-"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;
-
-
-/***/ }),
-
-/***/ 4462:
-/***/ (function(__unused_webpack_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__(1609);
-var PropTypes = __webpack_require__(5826);
-var autosize = __webpack_require__(4306);
-var _getLineHeight = __webpack_require__(461);
-var getLineHeight = _getLineHeight;
-var RESIZED = "autosize:resized";
-/**
- * A light replacement for built-in textarea component
- * which automaticaly adjusts its height to match the content
- */
-var TextareaAutosizeClass = /** @class */ (function (_super) {
- __extends(TextareaAutosizeClass, _super);
- function TextareaAutosizeClass() {
- var _this = _super !== null && _super.apply(this, arguments) || this;
- _this.state = {
- lineHeight: null
- };
- _this.textarea = null;
- _this.onResize = function (e) {
- if (_this.props.onResize) {
- _this.props.onResize(e);
- }
- };
- _this.updateLineHeight = function () {
- if (_this.textarea) {
- _this.setState({
- lineHeight: getLineHeight(_this.textarea)
- });
- }
- };
- _this.onChange = function (e) {
- var onChange = _this.props.onChange;
- _this.currentValue = e.currentTarget.value;
- onChange && onChange(e);
- };
- return _this;
- }
- TextareaAutosizeClass.prototype.componentDidMount = function () {
- var _this = this;
- var _a = this.props, maxRows = _a.maxRows, async = _a.async;
- if (typeof maxRows === "number") {
- this.updateLineHeight();
- }
- if (typeof maxRows === "number" || async) {
- /*
- the defer is needed to:
- - force "autosize" to activate the scrollbar when this.props.maxRows is passed
- - support StyledComponents (see #71)
- */
- setTimeout(function () { return _this.textarea && autosize(_this.textarea); });
- }
- else {
- this.textarea && autosize(this.textarea);
- }
- if (this.textarea) {
- this.textarea.addEventListener(RESIZED, this.onResize);
- }
- };
- TextareaAutosizeClass.prototype.componentWillUnmount = function () {
- if (this.textarea) {
- this.textarea.removeEventListener(RESIZED, this.onResize);
- autosize.destroy(this.textarea);
- }
- };
- TextareaAutosizeClass.prototype.render = function () {
- var _this = this;
- var _a = this, _b = _a.props, onResize = _b.onResize, maxRows = _b.maxRows, onChange = _b.onChange, style = _b.style, innerRef = _b.innerRef, children = _b.children, props = __rest(_b, ["onResize", "maxRows", "onChange", "style", "innerRef", "children"]), lineHeight = _a.state.lineHeight;
- var maxHeight = maxRows && lineHeight ? lineHeight * maxRows : null;
- return (React.createElement("textarea", __assign({}, props, { onChange: this.onChange, style: maxHeight ? __assign({}, style, { maxHeight: maxHeight }) : style, ref: function (element) {
- _this.textarea = element;
- if (typeof _this.props.innerRef === 'function') {
- _this.props.innerRef(element);
- }
- else if (_this.props.innerRef) {
- _this.props.innerRef.current = element;
- }
- } }), children));
- };
- TextareaAutosizeClass.prototype.componentDidUpdate = function () {
- this.textarea && autosize.update(this.textarea);
- };
- TextareaAutosizeClass.defaultProps = {
- rows: 1,
- async: false
- };
- TextareaAutosizeClass.propTypes = {
- rows: PropTypes.number,
- maxRows: PropTypes.number,
- onResize: PropTypes.func,
- innerRef: PropTypes.any,
- async: PropTypes.bool
- };
- return TextareaAutosizeClass;
-}(React.Component));
-exports.TextareaAutosize = React.forwardRef(function (props, ref) {
- return React.createElement(TextareaAutosizeClass, __assign({}, props, { innerRef: ref }));
-});
-
-
-/***/ }),
-
-/***/ 4132:
-/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-
-"use strict";
-var __webpack_unused_export__;
-
-__webpack_unused_export__ = true;
-var TextareaAutosize_1 = __webpack_require__(4462);
-exports.A = TextareaAutosize_1.TextareaAutosize;
-
-
-/***/ }),
-
-/***/ 3394:
-/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-
-"use strict";
-var __webpack_unused_export__;
-/**
- * @license React
- * react-jsx-runtime.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-var f=__webpack_require__(1609),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
-function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}__webpack_unused_export__=l;exports.jsx=q;__webpack_unused_export__=q;
-
-
-/***/ }),
-
-/***/ 4922:
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-"use strict";
-
-
-if (true) {
- module.exports = __webpack_require__(3394);
-} else {}
-
-
-/***/ }),
-
/***/ 9681:
/***/ ((module) => {
@@ -8222,7 +7296,7 @@ module.exports = window["React"];
/******/ };
/******/
/******/ // Execute the module function
-/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
+/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
@@ -8309,55 +7383,19 @@ __webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
- PluginMoreMenuItem: () => (/* reexport */ plugin_more_menu_item),
- PluginSidebar: () => (/* reexport */ PluginSidebarEditSite),
+ PluginMoreMenuItem: () => (/* reexport */ PluginMoreMenuItem),
+ PluginSidebar: () => (/* reexport */ PluginSidebar),
PluginSidebarMoreMenuItem: () => (/* reexport */ PluginSidebarMoreMenuItem),
PluginTemplateSettingPanel: () => (/* reexport */ plugin_template_setting_panel),
initializeEditor: () => (/* binding */ initializeEditor),
reinitializeEditor: () => (/* binding */ reinitializeEditor),
- store: () => (/* reexport */ store_store)
+ store: () => (/* reexport */ store)
});
-// NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/actions.js
+// NAMESPACE OBJECT: ./node_modules/@wordpress/edit-site/build-module/store/actions.js
var actions_namespaceObject = {};
__webpack_require__.r(actions_namespaceObject);
__webpack_require__.d(actions_namespaceObject, {
- closeModal: () => (closeModal),
- disableComplementaryArea: () => (disableComplementaryArea),
- enableComplementaryArea: () => (enableComplementaryArea),
- openModal: () => (openModal),
- pinItem: () => (pinItem),
- setDefaultComplementaryArea: () => (setDefaultComplementaryArea),
- setFeatureDefaults: () => (setFeatureDefaults),
- setFeatureValue: () => (setFeatureValue),
- toggleFeature: () => (toggleFeature),
- unpinItem: () => (unpinItem)
-});
-
-// NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/selectors.js
-var selectors_namespaceObject = {};
-__webpack_require__.r(selectors_namespaceObject);
-__webpack_require__.d(selectors_namespaceObject, {
- getActiveComplementaryArea: () => (getActiveComplementaryArea),
- isComplementaryAreaLoading: () => (isComplementaryAreaLoading),
- isFeatureActive: () => (isFeatureActive),
- isItemPinned: () => (isItemPinned),
- isModalActive: () => (isModalActive)
-});
-
-// NAMESPACE OBJECT: ./node_modules/@wordpress/edit-site/build-module/store/private-actions.js
-var private_actions_namespaceObject = {};
-__webpack_require__.r(private_actions_namespaceObject);
-__webpack_require__.d(private_actions_namespaceObject, {
- removeTemplates: () => (removeTemplates),
- setCanvasMode: () => (setCanvasMode),
- setEditorCanvasContainerView: () => (setEditorCanvasContainerView)
-});
-
-// NAMESPACE OBJECT: ./node_modules/@wordpress/edit-site/build-module/store/actions.js
-var store_actions_namespaceObject = {};
-__webpack_require__.r(store_actions_namespaceObject);
-__webpack_require__.d(store_actions_namespaceObject, {
__experimentalSetPreviewDeviceType: () => (__experimentalSetPreviewDeviceType),
addTemplate: () => (addTemplate),
closeGeneralSidebar: () => (closeGeneralSidebar),
@@ -8380,14 +7418,22 @@ __webpack_require__.d(store_actions_namespaceObject, {
setTemplatePart: () => (setTemplatePart),
switchEditorMode: () => (switchEditorMode),
toggleDistractionFree: () => (toggleDistractionFree),
- toggleFeature: () => (actions_toggleFeature),
+ toggleFeature: () => (toggleFeature),
updateSettings: () => (updateSettings)
});
+// NAMESPACE OBJECT: ./node_modules/@wordpress/edit-site/build-module/store/private-actions.js
+var private_actions_namespaceObject = {};
+__webpack_require__.r(private_actions_namespaceObject);
+__webpack_require__.d(private_actions_namespaceObject, {
+ setCanvasMode: () => (setCanvasMode),
+ setEditorCanvasContainerView: () => (setEditorCanvasContainerView)
+});
+
// NAMESPACE OBJECT: ./node_modules/@wordpress/edit-site/build-module/store/selectors.js
-var store_selectors_namespaceObject = {};
-__webpack_require__.r(store_selectors_namespaceObject);
-__webpack_require__.d(store_selectors_namespaceObject, {
+var selectors_namespaceObject = {};
+__webpack_require__.r(selectors_namespaceObject);
+__webpack_require__.d(selectors_namespaceObject, {
__experimentalGetInsertionPoint: () => (__experimentalGetInsertionPoint),
__experimentalGetPreviewDeviceType: () => (__experimentalGetPreviewDeviceType),
getCanUserCreateMedia: () => (getCanUserCreateMedia),
@@ -8403,7 +7449,7 @@ __webpack_require__.d(store_selectors_namespaceObject, {
getReusableBlocks: () => (getReusableBlocks),
getSettings: () => (getSettings),
hasPageContentFocus: () => (hasPageContentFocus),
- isFeatureActive: () => (selectors_isFeatureActive),
+ isFeatureActive: () => (isFeatureActive),
isInserterOpened: () => (isInserterOpened),
isListViewOpened: () => (isListViewOpened),
isNavigationOpened: () => (isNavigationOpened),
@@ -8419,9 +7465,6 @@ __webpack_require__.d(private_selectors_namespaceObject, {
getEditorCanvasContainerView: () => (getEditorCanvasContainerView)
});
-// EXTERNAL MODULE: external "React"
-var external_React_ = __webpack_require__(1609);
-var external_React_namespaceObject = /*#__PURE__*/__webpack_require__.t(external_React_, 2);
;// CONCATENATED MODULE: external ["wp","blocks"]
const external_wp_blocks_namespaceObject = window["wp"]["blocks"];
;// CONCATENATED MODULE: external ["wp","blockLibrary"]
@@ -8435,1154 +7478,177 @@ var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external
const external_wp_element_namespaceObject = window["wp"]["element"];
;// CONCATENATED MODULE: external ["wp","editor"]
const external_wp_editor_namespaceObject = window["wp"]["editor"];
-// EXTERNAL MODULE: ./node_modules/classnames/index.js
-var classnames = __webpack_require__(5755);
-var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
+;// CONCATENATED MODULE: external ["wp","preferences"]
+const external_wp_preferences_namespaceObject = window["wp"]["preferences"];
+;// CONCATENATED MODULE: external ["wp","widgets"]
+const external_wp_widgets_namespaceObject = window["wp"]["widgets"];
+;// CONCATENATED MODULE: external ["wp","hooks"]
+const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
+;// CONCATENATED MODULE: external ["wp","compose"]
+const external_wp_compose_namespaceObject = window["wp"]["compose"];
+;// CONCATENATED MODULE: external ["wp","blockEditor"]
+const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
;// CONCATENATED MODULE: external ["wp","components"]
const external_wp_components_namespaceObject = window["wp"]["components"];
;// CONCATENATED MODULE: external ["wp","i18n"]
const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
-;// CONCATENATED MODULE: external ["wp","primitives"]
-const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
-
-/**
- * WordPress dependencies
- */
-
-const check = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
-}));
-/* harmony default export */ const library_check = (check);
+;// CONCATENATED MODULE: external ["wp","notices"]
+const external_wp_notices_namespaceObject = window["wp"]["notices"];
+;// CONCATENATED MODULE: external ["wp","coreData"]
+const external_wp_coreData_namespaceObject = window["wp"]["coreData"];
+;// CONCATENATED MODULE: ./node_modules/colord/index.mjs
+var r={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(r){return"string"==typeof r?r.length>0:"number"==typeof r},n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},a=function(r){return{r:e(r.r,0,255),g:e(r.g,0,255),b:e(r.b,0,255),a:e(r.a)}},o=function(r){return{r:n(r.r),g:n(r.g),b:n(r.b),a:n(r.a,3)}},i=/^#([0-9a-f]{3,8})$/i,s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},g=function(r){return{h:u(r.h),s:e(r.s,0,100),l:e(r.l,0,100),a:e(r.a)}},d=function(r){return{h:n(r.h),s:n(r.s),l:n(r.l),a:n(r.a,3)}},f=function(r){return b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},c=function(r){return{h:(t=h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,colord_p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y={string:[[function(r){var t=i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=v.exec(r)||m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=l.exec(t)||colord_p.exec(t);if(!n)return null;var e,u,a=g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return f(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return t(n)&&t(e)&&t(u)?a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!t(n)||!t(e)||!t(u))return null;var i=g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return f(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!t(n)||!t(a)||!t(o))return null;var h=function(r){return{h:u(r.h),s:e(r.s,0,100),v:e(r.v,0,100),a:e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return b(h)},"hsv"]]},N=function(r,t){for(var n=0;n<t.length;n++){var e=t[n][0](r);if(e)return[e,t[n][1]]}return[null,void 0]},x=function(r){return"string"==typeof r?N(r.trim(),y.string):"object"==typeof r&&null!==r?N(r,y.object):[null,void 0]},I=function(r){return x(r)[1]},M=function(r,t){var n=c(r);return{h:n.h,s:e(n.s+100*t,0,100),l:n.l,a:n.a}},H=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},$=function(r,t){var n=c(r);return{h:n.h,s:n.s,l:e(n.l+100*t,0,100),a:n.a}},colord_j=function(){function r(r){this.parsed=x(r)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return n(H(this.rgba),2)},r.prototype.isDark=function(){return H(this.rgba)<.5},r.prototype.isLight=function(){return H(this.rgba)>=.5},r.prototype.toHex=function(){return r=o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?s(n(255*a)):"","#"+s(t)+s(e)+s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return o(this.rgba)},r.prototype.toRgbString=function(){return r=o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u},r.prototype.toHsl=function(){return d(c(this.rgba))},r.prototype.toHslString=function(){return r=d(c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u},r.prototype.toHsv=function(){return r=h(this.rgba),{h:n(r.h),s:n(r.s),v:n(r.v),a:n(r.a,3)};var r},r.prototype.invert=function(){return w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,-r))},r.prototype.grayscale=function(){return w(M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return"number"==typeof r?w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=c(this.rgba);return"number"==typeof r?w({h:r,s:t.s,l:t.l,a:t.a}):n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===w(r).toHex()},r}(),w=function(r){return r instanceof colord_j?r:new colord_j(r)},S=[],k=function(r){r.forEach(function(r){S.indexOf(r)<0&&(r(colord_j,y),S.push(r))})},E=function(){return new colord_j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})};
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js
+;// CONCATENATED MODULE: ./node_modules/colord/plugins/a11y.mjs
+var a11y_o=function(o){var t=o/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},a11y_t=function(t){return.2126*a11y_o(t.r)+.7152*a11y_o(t.g)+.0722*a11y_o(t.b)};/* harmony default export */ function a11y(o){o.prototype.luminance=function(){return o=a11y_t(this.rgba),void 0===(r=2)&&(r=0),void 0===n&&(n=Math.pow(10,r)),Math.round(n*o)/n+0;var o,r,n},o.prototype.contrast=function(r){void 0===r&&(r="#FFF");var n,a,i,e,v,u,d,c=r instanceof o?r:new o(r);return e=this.rgba,v=c.toRgb(),u=a11y_t(e),d=a11y_t(v),n=u>d?(u+.05)/(d+.05):(d+.05)/(u+.05),void 0===(a=2)&&(a=0),void 0===i&&(i=Math.pow(10,a)),Math.floor(i*n)/i+0},o.prototype.isReadable=function(o,t){return void 0===o&&(o="#FFF"),void 0===t&&(t={}),this.contrast(o)>=(e=void 0===(i=(r=t).size)?"normal":i,"AAA"===(a=void 0===(n=r.level)?"AA":n)&&"normal"===e?7:"AA"===a&&"large"===e?3:4.5);var r,n,a,i,e}}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/utils/clone-deep.js
/**
- * WordPress dependencies
+ * Makes a copy of an object without storing any references to the original object.
+ * @param {Object} object
+ * @return {Object} The cloned object.
*/
+function cloneDeep(object) {
+ return !object ? {} : JSON.parse(JSON.stringify(object));
+}
-const starFilled = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.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 */ const star_filled = (starFilled);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js
-
+;// CONCATENATED MODULE: external ["wp","privateApis"]
+const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/lock-unlock.js
/**
* WordPress dependencies
*/
-const starEmpty = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.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 */ const star_empty = (starEmpty);
-
-;// CONCATENATED MODULE: external ["wp","viewport"]
-const external_wp_viewport_namespaceObject = window["wp"]["viewport"];
-;// CONCATENATED MODULE: external ["wp","preferences"]
-const external_wp_preferences_namespaceObject = window["wp"]["preferences"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
+const {
+ lock,
+ unlock: lock_unlock_unlock
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/edit-site');
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js
/**
* WordPress dependencies
*/
-const closeSmall = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
-}));
-/* harmony default export */ const close_small = (closeSmall);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/actions.js
-/**
- * WordPress dependencies
- */
-/**
- * Set a default complementary area.
- *
- * @param {string} scope Complementary area scope.
- * @param {string} area Area identifier.
- *
- * @return {Object} Action object.
- */
-const setDefaultComplementaryArea = (scope, area) => ({
- type: 'SET_DEFAULT_COMPLEMENTARY_AREA',
- scope,
- area
-});
-/**
- * Enable the complementary area.
- *
- * @param {string} scope Complementary area scope.
- * @param {string} area Area identifier.
- */
-const enableComplementaryArea = (scope, area) => ({
- registry,
- dispatch
-}) => {
- // Return early if there's no area.
- if (!area) {
- return;
- }
- const isComplementaryAreaVisible = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
- if (!isComplementaryAreaVisible) {
- registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'isComplementaryAreaVisible', true);
- }
- dispatch({
- type: 'ENABLE_COMPLEMENTARY_AREA',
- scope,
- area
- });
-};
-
-/**
- * Disable the complementary area.
- *
- * @param {string} scope Complementary area scope.
- */
-const disableComplementaryArea = scope => ({
- registry
-}) => {
- const isComplementaryAreaVisible = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
- if (isComplementaryAreaVisible) {
- registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'isComplementaryAreaVisible', false);
- }
-};
-
-/**
- * Pins an item.
- *
- * @param {string} scope Item scope.
- * @param {string} item Item identifier.
- *
- * @return {Object} Action object.
- */
-const pinItem = (scope, item) => ({
- registry
-}) => {
- // Return early if there's no item.
- if (!item) {
- return;
- }
- const pinnedItems = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'pinnedItems');
-
- // The item is already pinned, there's nothing to do.
- if (pinnedItems?.[item] === true) {
- return;
- }
- registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'pinnedItems', {
- ...pinnedItems,
- [item]: true
- });
-};
-
-/**
- * Unpins an item.
- *
- * @param {string} scope Item scope.
- * @param {string} item Item identifier.
- */
-const unpinItem = (scope, item) => ({
- registry
-}) => {
- // Return early if there's no item.
- if (!item) {
- return;
- }
- const pinnedItems = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'pinnedItems');
- registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'pinnedItems', {
- ...pinnedItems,
- [item]: false
- });
-};
-
-/**
- * Returns an action object used in signalling that a feature should be toggled.
- *
- * @param {string} scope The feature scope (e.g. core/edit-post).
- * @param {string} featureName The feature name.
- */
-function toggleFeature(scope, featureName) {
- return function ({
- registry
- }) {
- external_wp_deprecated_default()(`dispatch( 'core/interface' ).toggleFeature`, {
- since: '6.0',
- alternative: `dispatch( 'core/preferences' ).toggle`
- });
- registry.dispatch(external_wp_preferences_namespaceObject.store).toggle(scope, featureName);
- };
-}
-
-/**
- * Returns an action object used in signalling that a feature should be set to
- * a true or false value
- *
- * @param {string} scope The feature scope (e.g. core/edit-post).
- * @param {string} featureName The feature name.
- * @param {boolean} value The value to set.
- *
- * @return {Object} Action object.
- */
-function setFeatureValue(scope, featureName, value) {
- return function ({
- registry
- }) {
- external_wp_deprecated_default()(`dispatch( 'core/interface' ).setFeatureValue`, {
- since: '6.0',
- alternative: `dispatch( 'core/preferences' ).set`
- });
- registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, featureName, !!value);
- };
-}
-
-/**
- * Returns an action object used in signalling that defaults should be set for features.
- *
- * @param {string} scope The feature scope (e.g. core/edit-post).
- * @param {Object<string, boolean>} defaults A key/value map of feature names to values.
- *
- * @return {Object} Action object.
- */
-function setFeatureDefaults(scope, defaults) {
- return function ({
- registry
- }) {
- external_wp_deprecated_default()(`dispatch( 'core/interface' ).setFeatureDefaults`, {
- since: '6.0',
- alternative: `dispatch( 'core/preferences' ).setDefaults`
- });
- registry.dispatch(external_wp_preferences_namespaceObject.store).setDefaults(scope, defaults);
- };
-}
/**
- * Returns an action object used in signalling that the user opened a modal.
- *
- * @param {string} name A string that uniquely identifies the modal.
- *
- * @return {Object} Action object.
- */
-function openModal(name) {
- return {
- type: 'OPEN_MODAL',
- name
- };
-}
-
-/**
- * Returns an action object signalling that the user closed a modal.
- *
- * @return {Object} Action object.
- */
-function closeModal() {
- return {
- type: 'CLOSE_MODAL'
- };
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/selectors.js
-/**
- * WordPress dependencies
+ * Internal dependencies
*/
-
+const {
+ GlobalStylesContext
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+const {
+ mergeBaseAndUserConfigs
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
/**
- * Returns the complementary area that is active in a given scope.
- *
- * @param {Object} state Global application state.
- * @param {string} scope Item scope.
+ * Removes all instances of a property from an object.
*
- * @return {string | null | undefined} The complementary area that is active in the given scope.
+ * @param {Object} object The object to remove the property from.
+ * @param {string} property The property to remove.
+ * @return {Object} The modified object.
*/
-const getActiveComplementaryArea = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope) => {
- const isComplementaryAreaVisible = select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
-
- // Return `undefined` to indicate that the user has never toggled
- // visibility, this is the vanilla default. Other code relies on this
- // nuance in the return value.
- if (isComplementaryAreaVisible === undefined) {
- return undefined;
- }
-
- // Return `null` to indicate the user hid the complementary area.
- if (isComplementaryAreaVisible === false) {
- return null;
+function removePropertyFromObject(object, property) {
+ if (!property || typeof property !== 'string') {
+ return object;
}
- return state?.complementaryAreas?.[scope];
-});
-const isComplementaryAreaLoading = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope) => {
- const isVisible = select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
- const identifier = state?.complementaryAreas?.[scope];
- return isVisible && identifier === undefined;
-});
-
-/**
- * Returns a boolean indicating if an item is pinned or not.
- *
- * @param {Object} state Global application state.
- * @param {string} scope Scope.
- * @param {string} item Item to check.
- *
- * @return {boolean} True if the item is pinned and false otherwise.
- */
-const isItemPinned = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope, item) => {
- var _pinnedItems$item;
- const pinnedItems = select(external_wp_preferences_namespaceObject.store).get(scope, 'pinnedItems');
- return (_pinnedItems$item = pinnedItems?.[item]) !== null && _pinnedItems$item !== void 0 ? _pinnedItems$item : true;
-});
-
-/**
- * Returns a boolean indicating whether a feature is active for a particular
- * scope.
- *
- * @param {Object} state The store state.
- * @param {string} scope The scope of the feature (e.g. core/edit-post).
- * @param {string} featureName The name of the feature.
- *
- * @return {boolean} Is the feature enabled?
- */
-const isFeatureActive = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope, featureName) => {
- external_wp_deprecated_default()(`select( 'core/interface' ).isFeatureActive( scope, featureName )`, {
- since: '6.0',
- alternative: `select( 'core/preferences' ).get( scope, featureName )`
- });
- return !!select(external_wp_preferences_namespaceObject.store).get(scope, featureName);
-});
-
-/**
- * Returns true if a modal is active, or false otherwise.
- *
- * @param {Object} state Global application state.
- * @param {string} modalName A string that uniquely identifies the modal.
- *
- * @return {boolean} Whether the modal is active.
- */
-function isModalActive(state, modalName) {
- return state.activeModal === modalName;
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/reducer.js
-/**
- * WordPress dependencies
- */
-
-function complementaryAreas(state = {}, action) {
- switch (action.type) {
- case 'SET_DEFAULT_COMPLEMENTARY_AREA':
- {
- const {
- scope,
- area
- } = action;
-
- // If there's already an area, don't overwrite it.
- if (state[scope]) {
- return state;
- }
- return {
- ...state,
- [scope]: area
- };
- }
- case 'ENABLE_COMPLEMENTARY_AREA':
- {
- const {
- scope,
- area
- } = action;
- return {
- ...state,
- [scope]: area
- };
- }
+ if (typeof object !== 'object' || !object || !Object.keys(object).length) {
+ return object;
}
- return state;
-}
-
-/**
- * Reducer for storing the name of the open modal, or null if no modal is open.
- *
- * @param {Object} state Previous state.
- * @param {Object} action Action object containing the `name` of the modal
- *
- * @return {Object} Updated state
- */
-function activeModal(state = null, action) {
- switch (action.type) {
- case 'OPEN_MODAL':
- return action.name;
- case 'CLOSE_MODAL':
- return null;
+ for (const key in object) {
+ if (key === property) {
+ delete object[key];
+ } else if (typeof object[key] === 'object') {
+ removePropertyFromObject(object[key], property);
+ }
}
- return state;
+ return object;
}
-/* harmony default export */ const reducer = ((0,external_wp_data_namespaceObject.combineReducers)({
- complementaryAreas,
- activeModal
-}));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/constants.js
-/**
- * The identifier for the data store.
- *
- * @type {string}
- */
-const STORE_NAME = 'core/interface';
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/index.js
-/**
- * WordPress dependencies
- */
-
/**
- * Internal dependencies
- */
-
-
-
-
-
-/**
- * Store definition for the interface namespace.
- *
- * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
+ * Fetches the current theme style variations that contain only the specified property
+ * and merges them with the user config.
*
- * @type {Object}
- */
-const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME, {
- reducer: reducer,
- actions: actions_namespaceObject,
- selectors: selectors_namespaceObject
-});
-
-// Once we build a more generic persistence plugin that works across types of stores
-// we'd be able to replace this with a register call.
-(0,external_wp_data_namespaceObject.register)(store);
-
-;// CONCATENATED MODULE: external ["wp","plugins"]
-const external_wp_plugins_namespaceObject = window["wp"]["plugins"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-context/index.js
-/**
- * WordPress dependencies
- */
-
-/* harmony default export */ const complementary_area_context = ((0,external_wp_plugins_namespaceObject.withPluginContext)((context, ownProps) => {
- return {
- icon: ownProps.icon || context.icon,
- identifier: ownProps.identifier || `${context.name}/${ownProps.name}`
- };
-}));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-toggle/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-
-function ComplementaryAreaToggle({
- as = external_wp_components_namespaceObject.Button,
- scope,
- identifier,
- icon,
- selectedIcon,
- name,
- ...props
-}) {
- const ComponentToUse = as;
- const isSelected = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getActiveComplementaryArea(scope) === identifier, [identifier, scope]);
- const {
- enableComplementaryArea,
- disableComplementaryArea
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- return (0,external_React_.createElement)(ComponentToUse, {
- icon: selectedIcon && isSelected ? selectedIcon : icon,
- "aria-controls": identifier.replace('/', ':'),
- onClick: () => {
- if (isSelected) {
- disableComplementaryArea(scope);
- } else {
- enableComplementaryArea(scope, identifier);
- }
- },
- ...props
- });
-}
-/* harmony default export */ const complementary_area_toggle = (complementary_area_context(ComplementaryAreaToggle));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-header/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-/**
- * Internal dependencies
- */
-
-const ComplementaryAreaHeader = ({
- smallScreenTitle,
- children,
- className,
- toggleButtonProps
-}) => {
- const toggleButton = (0,external_React_.createElement)(complementary_area_toggle, {
- icon: close_small,
- ...toggleButtonProps
- });
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("div", {
- className: "components-panel__header interface-complementary-area-header__small"
- }, smallScreenTitle && (0,external_React_.createElement)("span", {
- className: "interface-complementary-area-header__small-title"
- }, smallScreenTitle), toggleButton), (0,external_React_.createElement)("div", {
- className: classnames_default()('components-panel__header', 'interface-complementary-area-header', className),
- tabIndex: -1
- }, children, toggleButton));
-};
-/* harmony default export */ const complementary_area_header = (ComplementaryAreaHeader);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/action-item/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-const noop = () => {};
-function ActionItemSlot({
- name,
- as: Component = external_wp_components_namespaceObject.ButtonGroup,
- fillProps = {},
- bubblesVirtually,
- ...props
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Slot, {
- name: name,
- bubblesVirtually: bubblesVirtually,
- fillProps: fillProps
- }, fills => {
- if (!external_wp_element_namespaceObject.Children.toArray(fills).length) {
- return null;
- }
-
- // Special handling exists for backward compatibility.
- // It ensures that menu items created by plugin authors aren't
- // duplicated with automatically injected menu items coming
- // from pinnable plugin sidebars.
- // @see https://github.com/WordPress/gutenberg/issues/14457
- const initializedByPlugins = [];
- external_wp_element_namespaceObject.Children.forEach(fills, ({
- props: {
- __unstableExplicitMenuItem,
- __unstableTarget
- }
- }) => {
- if (__unstableTarget && __unstableExplicitMenuItem) {
- initializedByPlugins.push(__unstableTarget);
- }
- });
- const children = external_wp_element_namespaceObject.Children.map(fills, child => {
- if (!child.props.__unstableExplicitMenuItem && initializedByPlugins.includes(child.props.__unstableTarget)) {
- return null;
- }
- return child;
- });
- return (0,external_React_.createElement)(Component, {
- ...props
- }, children);
- });
-}
-function ActionItem({
- name,
- as: Component = external_wp_components_namespaceObject.Button,
- onClick,
- ...props
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Fill, {
- name: name
- }, ({
- onClick: fpOnClick
- }) => {
- return (0,external_React_.createElement)(Component, {
- onClick: onClick || fpOnClick ? (...args) => {
- (onClick || noop)(...args);
- (fpOnClick || noop)(...args);
- } : undefined,
- ...props
- });
- });
-}
-ActionItem.Slot = ActionItemSlot;
-/* harmony default export */ const action_item = (ActionItem);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-more-menu-item/index.js
-
-/**
- * WordPress dependencies
+ * @param {Object} props Object of hook args.
+ * @param {string} props.property The property to filter by.
+ * @return {Object[]|*} The merged object.
*/
-
-
-
-/**
- * Internal dependencies
- */
-
-
-const PluginsMenuItem = ({
- // Menu item is marked with unstable prop for backward compatibility.
- // They are removed so they don't leak to DOM elements.
- // @see https://github.com/WordPress/gutenberg/issues/14457
- __unstableExplicitMenuItem,
- __unstableTarget,
- ...restProps
-}) => (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- ...restProps
-});
-function ComplementaryAreaMoreMenuItem({
- scope,
- target,
- __unstableExplicitMenuItem,
- ...props
-}) {
- return (0,external_React_.createElement)(complementary_area_toggle, {
- as: toggleProps => {
- return (0,external_React_.createElement)(action_item, {
- __unstableExplicitMenuItem: __unstableExplicitMenuItem,
- __unstableTarget: `${scope}/${target}`,
- as: PluginsMenuItem,
- name: `${scope}/plugin-more-menu`,
- ...toggleProps
- });
- },
- role: "menuitemcheckbox",
- selectedIcon: library_check,
- name: target,
- scope: scope,
- ...props
- });
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/pinned-items/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-function PinnedItems({
- scope,
- ...props
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Fill, {
- name: `PinnedItems/${scope}`,
- ...props
- });
-}
-function PinnedItemsSlot({
- scope,
- className,
- ...props
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Slot, {
- name: `PinnedItems/${scope}`,
- ...props
- }, fills => fills?.length > 0 && (0,external_React_.createElement)("div", {
- className: classnames_default()(className, 'interface-pinned-items')
- }, fills));
-}
-PinnedItems.Slot = PinnedItemsSlot;
-/* harmony default export */ const pinned_items = (PinnedItems);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-function ComplementaryAreaSlot({
- scope,
- ...props
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Slot, {
- name: `ComplementaryArea/${scope}`,
- ...props
- });
-}
-function ComplementaryAreaFill({
- scope,
- children,
- className,
- id
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Fill, {
- name: `ComplementaryArea/${scope}`
- }, (0,external_React_.createElement)("div", {
- id: id,
- className: className
- }, children));
-}
-function useAdjustComplementaryListener(scope, identifier, activeArea, isActive, isSmall) {
- const previousIsSmall = (0,external_wp_element_namespaceObject.useRef)(false);
- const shouldOpenWhenNotSmall = (0,external_wp_element_namespaceObject.useRef)(false);
- const {
- enableComplementaryArea,
- disableComplementaryArea
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- // If the complementary area is active and the editor is switching from
- // a big to a small window size.
- if (isActive && isSmall && !previousIsSmall.current) {
- disableComplementaryArea(scope);
- // Flag the complementary area to be reopened when the window size
- // goes from small to big.
- shouldOpenWhenNotSmall.current = true;
- } else if (
- // If there is a flag indicating the complementary area should be
- // enabled when we go from small to big window size and we are going
- // from a small to big window size.
- shouldOpenWhenNotSmall.current && !isSmall && previousIsSmall.current) {
- // Remove the flag indicating the complementary area should be
- // enabled.
- shouldOpenWhenNotSmall.current = false;
- enableComplementaryArea(scope, identifier);
- } else if (
- // If the flag is indicating the current complementary should be
- // reopened but another complementary area becomes active, remove
- // the flag.
- shouldOpenWhenNotSmall.current && activeArea && activeArea !== identifier) {
- shouldOpenWhenNotSmall.current = false;
- }
- if (isSmall !== previousIsSmall.current) {
- previousIsSmall.current = isSmall;
- }
- }, [isActive, isSmall, scope, identifier, activeArea, disableComplementaryArea, enableComplementaryArea]);
-}
-function ComplementaryArea({
- children,
- className,
- closeLabel = (0,external_wp_i18n_namespaceObject.__)('Close plugin'),
- identifier,
- header,
- headerClassName,
- icon,
- isPinnable = true,
- panelClassName,
- scope,
- name,
- smallScreenTitle,
- title,
- toggleShortcut,
- isActiveByDefault
+function useCurrentMergeThemeStyleVariationsWithUserConfig({
+ property
}) {
const {
- isLoading,
- isActive,
- isPinned,
- activeArea,
- isSmall,
- isLarge,
- showIconLabels
+ variationsFromTheme
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getActiveComplementaryArea,
- isComplementaryAreaLoading,
- isItemPinned
- } = select(store);
- const {
- get
- } = select(external_wp_preferences_namespaceObject.store);
- const _activeArea = getActiveComplementaryArea(scope);
+ const _variationsFromTheme = select(external_wp_coreData_namespaceObject.store).__experimentalGetCurrentThemeGlobalStylesVariations();
return {
- isLoading: isComplementaryAreaLoading(scope),
- isActive: _activeArea === identifier,
- isPinned: isItemPinned(scope, identifier),
- activeArea: _activeArea,
- isSmall: select(external_wp_viewport_namespaceObject.store).isViewportMatch('< medium'),
- isLarge: select(external_wp_viewport_namespaceObject.store).isViewportMatch('large'),
- showIconLabels: get('core', 'showIconLabels')
+ variationsFromTheme: _variationsFromTheme || []
};
- }, [identifier, scope]);
- useAdjustComplementaryListener(scope, identifier, activeArea, isActive, isSmall);
+ }, []);
const {
- enableComplementaryArea,
- disableComplementaryArea,
- pinItem,
- unpinItem
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- // Set initial visibility: For large screens, enable if it's active by
- // default. For small screens, always initially disable.
- if (isActiveByDefault && activeArea === undefined && !isSmall) {
- enableComplementaryArea(scope, identifier);
- } else if (activeArea === undefined && isSmall) {
- disableComplementaryArea(scope, identifier);
- }
- }, [activeArea, isActiveByDefault, scope, identifier, isSmall, enableComplementaryArea, disableComplementaryArea]);
- return (0,external_React_.createElement)(external_React_.Fragment, null, isPinnable && (0,external_React_.createElement)(pinned_items, {
- scope: scope
- }, isPinned && (0,external_React_.createElement)(complementary_area_toggle, {
- scope: scope,
- identifier: identifier,
- isPressed: isActive && (!showIconLabels || isLarge),
- "aria-expanded": isActive,
- "aria-disabled": isLoading,
- label: title,
- icon: showIconLabels ? library_check : icon,
- showTooltip: !showIconLabels,
- variant: showIconLabels ? 'tertiary' : undefined,
- size: "compact"
- })), name && isPinnable && (0,external_React_.createElement)(ComplementaryAreaMoreMenuItem, {
- target: name,
- scope: scope,
- icon: icon
- }, title), isActive && (0,external_React_.createElement)(ComplementaryAreaFill, {
- className: classnames_default()('interface-complementary-area', className),
- scope: scope,
- id: identifier.replace('/', ':')
- }, (0,external_React_.createElement)(complementary_area_header, {
- className: headerClassName,
- closeLabel: closeLabel,
- onClose: () => disableComplementaryArea(scope),
- smallScreenTitle: smallScreenTitle,
- toggleButtonProps: {
- label: closeLabel,
- shortcut: toggleShortcut,
- scope,
- identifier
- }
- }, header || (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("strong", null, title), isPinnable && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "interface-complementary-area__pin-unpin-item",
- icon: isPinned ? star_filled : star_empty,
- label: isPinned ? (0,external_wp_i18n_namespaceObject.__)('Unpin from toolbar') : (0,external_wp_i18n_namespaceObject.__)('Pin to toolbar'),
- onClick: () => (isPinned ? unpinItem : pinItem)(scope, identifier),
- isPressed: isPinned,
- "aria-expanded": isPinned
- }))), (0,external_React_.createElement)(external_wp_components_namespaceObject.Panel, {
- className: panelClassName
- }, children)));
-}
-const ComplementaryAreaWrapped = complementary_area_context(ComplementaryArea);
-ComplementaryAreaWrapped.Slot = ComplementaryAreaSlot;
-/* harmony default export */ const complementary_area = (ComplementaryAreaWrapped);
-
-;// CONCATENATED MODULE: external ["wp","compose"]
-const external_wp_compose_namespaceObject = window["wp"]["compose"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/navigable-region/index.js
-
-/**
- * External dependencies
- */
-
-function NavigableRegion({
- children,
- className,
- ariaLabel,
- as: Tag = 'div',
- ...props
-}) {
- return (0,external_React_.createElement)(Tag, {
- className: classnames_default()('interface-navigable-region', className),
- "aria-label": ariaLabel,
- role: "region",
- tabIndex: "-1",
- ...props
- }, children);
+ user: userVariation
+ } = (0,external_wp_element_namespaceObject.useContext)(GlobalStylesContext);
+ return (0,external_wp_element_namespaceObject.useMemo)(() => {
+ const clonedUserVariation = cloneDeep(userVariation);
+
+ // Get user variation and remove the settings for the given property.
+ const userVariationWithoutProperty = removePropertyFromObject(clonedUserVariation, property);
+ userVariationWithoutProperty.title = (0,external_wp_i18n_namespaceObject.__)('Default');
+ const variationsWithSinglePropertyAndBase = variationsFromTheme.filter(variation => {
+ return isVariationWithSingleProperty(variation, property);
+ }).map(variation => {
+ return mergeBaseAndUserConfigs(userVariationWithoutProperty, variation);
+ });
+ return [userVariationWithoutProperty, ...variationsWithSinglePropertyAndBase];
+ }, [property, userVariation, variationsFromTheme]);
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/interface-skeleton/index.js
-
-/**
- * External dependencies
- */
-
-
/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
+ * Returns a new object, with properties specified in `property`,
+ * maintain the original object tree structure.
+ * The function is recursive, so it will perform a deep search for the given property.
+ * E.g., the function will return `{ a: { b: { c: { test: 1 } } } }` if the property is `test`.
+ *
+ * @param {Object} object The object to filter
+ * @param {Object} property The property to filter by
+ * @return {Object} The merged object.
*/
-
-function useHTMLClass(className) {
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- const element = document && document.querySelector(`html:not(.${className})`);
- if (!element) {
- return;
- }
- element.classList.toggle(className);
- return () => {
- element.classList.toggle(className);
- };
- }, [className]);
-}
-const headerVariants = {
- hidden: {
- opacity: 0
- },
- hover: {
- opacity: 1,
- transition: {
- type: 'tween',
- delay: 0.2,
- delayChildren: 0.2
- }
- },
- distractionFreeInactive: {
- opacity: 1,
- transition: {
- delay: 0
- }
+const filterObjectByProperty = (object, property) => {
+ if (!object) {
+ return {};
}
+ const newObject = {};
+ Object.keys(object).forEach(key => {
+ if (key === property) {
+ newObject[key] = object[key];
+ } else if (typeof object[key] === 'object') {
+ const newFilter = filterObjectByProperty(object[key], property);
+ if (Object.keys(newFilter).length) {
+ newObject[key] = newFilter;
+ }
+ }
+ });
+ return newObject;
};
-function InterfaceSkeleton({
- isDistractionFree,
- footer,
- header,
- editorNotices,
- sidebar,
- secondarySidebar,
- notices,
- content,
- actions,
- labels,
- className,
- enableRegionNavigation = true,
- // Todo: does this need to be a prop.
- // Can we use a dependency to keyboard-shortcuts directly?
- shortcuts
-}, ref) {
- const navigateRegionsProps = (0,external_wp_components_namespaceObject.__unstableUseNavigateRegions)(shortcuts);
- useHTMLClass('interface-interface-skeleton__html-container');
- const defaultLabels = {
- /* translators: accessibility text for the top bar landmark region. */
- header: (0,external_wp_i18n_namespaceObject._x)('Header', 'header landmark area'),
- /* translators: accessibility text for the content landmark region. */
- body: (0,external_wp_i18n_namespaceObject.__)('Content'),
- /* translators: accessibility text for the secondary sidebar landmark region. */
- secondarySidebar: (0,external_wp_i18n_namespaceObject.__)('Block Library'),
- /* translators: accessibility text for the settings landmark region. */
- sidebar: (0,external_wp_i18n_namespaceObject.__)('Settings'),
- /* translators: accessibility text for the publish landmark region. */
- actions: (0,external_wp_i18n_namespaceObject.__)('Publish'),
- /* translators: accessibility text for the footer landmark region. */
- footer: (0,external_wp_i18n_namespaceObject.__)('Footer')
- };
- const mergedLabels = {
- ...defaultLabels,
- ...labels
- };
- return (0,external_React_.createElement)("div", {
- ...(enableRegionNavigation ? navigateRegionsProps : {}),
- ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, enableRegionNavigation ? navigateRegionsProps.ref : undefined]),
- className: classnames_default()(className, 'interface-interface-skeleton', navigateRegionsProps.className, !!footer && 'has-footer')
- }, (0,external_React_.createElement)("div", {
- className: "interface-interface-skeleton__editor"
- }, !!header && (0,external_React_.createElement)(NavigableRegion, {
- as: external_wp_components_namespaceObject.__unstableMotion.div,
- className: "interface-interface-skeleton__header",
- "aria-label": mergedLabels.header,
- initial: isDistractionFree ? 'hidden' : 'distractionFreeInactive',
- whileHover: isDistractionFree ? 'hover' : 'distractionFreeInactive',
- animate: isDistractionFree ? 'hidden' : 'distractionFreeInactive',
- variants: headerVariants,
- transition: isDistractionFree ? {
- type: 'tween',
- delay: 0.8
- } : undefined
- }, header), isDistractionFree && (0,external_React_.createElement)("div", {
- className: "interface-interface-skeleton__header"
- }, editorNotices), (0,external_React_.createElement)("div", {
- className: "interface-interface-skeleton__body"
- }, !!secondarySidebar && (0,external_React_.createElement)(NavigableRegion, {
- className: "interface-interface-skeleton__secondary-sidebar",
- ariaLabel: mergedLabels.secondarySidebar
- }, secondarySidebar), !!notices && (0,external_React_.createElement)("div", {
- className: "interface-interface-skeleton__notices"
- }, notices), (0,external_React_.createElement)(NavigableRegion, {
- className: "interface-interface-skeleton__content",
- ariaLabel: mergedLabels.body
- }, content), !!sidebar && (0,external_React_.createElement)(NavigableRegion, {
- className: "interface-interface-skeleton__sidebar",
- ariaLabel: mergedLabels.sidebar
- }, sidebar), !!actions && (0,external_React_.createElement)(NavigableRegion, {
- className: "interface-interface-skeleton__actions",
- ariaLabel: mergedLabels.actions
- }, actions))), !!footer && (0,external_React_.createElement)(NavigableRegion, {
- className: "interface-interface-skeleton__footer",
- ariaLabel: mergedLabels.footer
- }, footer));
-}
-/* harmony default export */ const interface_skeleton = ((0,external_wp_element_namespaceObject.forwardRef)(InterfaceSkeleton));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
/**
- * WordPress dependencies
- */
-
-const moreVertical = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
-}));
-/* harmony default export */ const more_vertical = (moreVertical);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/more-menu-dropdown/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
+ * Compares a style variation to the same variation filtered by a single property.
+ * Returns true if the variation contains only the property specified.
+ *
+ * @param {Object} variation The variation to compare.
+ * @param {string} property The property to compare.
+ * @return {boolean} Whether the variation contains only a single property.
*/
-
-
-
-function MoreMenuDropdown({
- as: DropdownComponent = external_wp_components_namespaceObject.DropdownMenu,
- className,
- /* translators: button label text should, if possible, be under 16 characters. */
- label = (0,external_wp_i18n_namespaceObject.__)('Options'),
- popoverProps,
- toggleProps,
- children
-}) {
- return (0,external_React_.createElement)(DropdownComponent, {
- className: classnames_default()('interface-more-menu-dropdown', className),
- icon: more_vertical,
- label: label,
- popoverProps: {
- placement: 'bottom-end',
- ...popoverProps,
- className: classnames_default()('interface-more-menu-dropdown__content', popoverProps?.className)
- },
- toggleProps: {
- tooltipPosition: 'bottom',
- ...toggleProps,
- size: 'compact'
- }
- }, onClose => children(onClose));
+function isVariationWithSingleProperty(variation, property) {
+ const variationWithProperty = filterObjectByProperty(cloneDeep(variation), property);
+ return JSON.stringify(variationWithProperty?.styles) === JSON.stringify(variation?.styles) && JSON.stringify(variationWithProperty?.settings) === JSON.stringify(variation?.settings);
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/index.js
-
-
-
-
-
-
-
-
-
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/index.js
-
-
-
-;// CONCATENATED MODULE: external ["wp","widgets"]
-const external_wp_widgets_namespaceObject = window["wp"]["widgets"];
-;// CONCATENATED MODULE: external ["wp","hooks"]
-const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
-;// CONCATENATED MODULE: external ["wp","mediaUtils"]
-const external_wp_mediaUtils_namespaceObject = window["wp"]["mediaUtils"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/hooks/components.js
-/**
- * WordPress dependencies
- */
-
-
-(0,external_wp_hooks_namespaceObject.addFilter)('editor.MediaUpload', 'core/edit-site/components/media-upload', () => external_wp_mediaUtils_namespaceObject.MediaUpload);
-
-;// CONCATENATED MODULE: external ["wp","blockEditor"]
-const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
-;// CONCATENATED MODULE: external ["wp","notices"]
-const external_wp_notices_namespaceObject = window["wp"]["notices"];
-;// CONCATENATED MODULE: external ["wp","coreData"]
-const external_wp_coreData_namespaceObject = window["wp"]["coreData"];
-;// CONCATENATED MODULE: ./node_modules/colord/index.mjs
-var r={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(r){return"string"==typeof r?r.length>0:"number"==typeof r},n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},a=function(r){return{r:e(r.r,0,255),g:e(r.g,0,255),b:e(r.b,0,255),a:e(r.a)}},o=function(r){return{r:n(r.r),g:n(r.g),b:n(r.b),a:n(r.a,3)}},i=/^#([0-9a-f]{3,8})$/i,s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},g=function(r){return{h:u(r.h),s:e(r.s,0,100),l:e(r.l,0,100),a:e(r.a)}},d=function(r){return{h:n(r.h),s:n(r.s),l:n(r.l),a:n(r.a,3)}},f=function(r){return b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},c=function(r){return{h:(t=h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,colord_p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y={string:[[function(r){var t=i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=v.exec(r)||m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=l.exec(t)||colord_p.exec(t);if(!n)return null;var e,u,a=g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return f(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return t(n)&&t(e)&&t(u)?a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!t(n)||!t(e)||!t(u))return null;var i=g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return f(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!t(n)||!t(a)||!t(o))return null;var h=function(r){return{h:u(r.h),s:e(r.s,0,100),v:e(r.v,0,100),a:e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return b(h)},"hsv"]]},N=function(r,t){for(var n=0;n<t.length;n++){var e=t[n][0](r);if(e)return[e,t[n][1]]}return[null,void 0]},x=function(r){return"string"==typeof r?N(r.trim(),y.string):"object"==typeof r&&null!==r?N(r,y.object):[null,void 0]},I=function(r){return x(r)[1]},M=function(r,t){var n=c(r);return{h:n.h,s:e(n.s+100*t,0,100),l:n.l,a:n.a}},H=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},$=function(r,t){var n=c(r);return{h:n.h,s:n.s,l:e(n.l+100*t,0,100),a:n.a}},j=function(){function r(r){this.parsed=x(r)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return n(H(this.rgba),2)},r.prototype.isDark=function(){return H(this.rgba)<.5},r.prototype.isLight=function(){return H(this.rgba)>=.5},r.prototype.toHex=function(){return r=o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?s(n(255*a)):"","#"+s(t)+s(e)+s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return o(this.rgba)},r.prototype.toRgbString=function(){return r=o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u},r.prototype.toHsl=function(){return d(c(this.rgba))},r.prototype.toHslString=function(){return r=d(c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u},r.prototype.toHsv=function(){return r=h(this.rgba),{h:n(r.h),s:n(r.s),v:n(r.v),a:n(r.a,3)};var r},r.prototype.invert=function(){return w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,-r))},r.prototype.grayscale=function(){return w(M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return"number"==typeof r?w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=c(this.rgba);return"number"==typeof r?w({h:r,s:t.s,l:t.l,a:t.a}):n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===w(r).toHex()},r}(),w=function(r){return r instanceof j?r:new j(r)},S=[],k=function(r){r.forEach(function(r){S.indexOf(r)<0&&(r(j,y),S.push(r))})},E=function(){return new j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})};
-
-;// CONCATENATED MODULE: ./node_modules/colord/plugins/a11y.mjs
-var a11y_o=function(o){var t=o/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},a11y_t=function(t){return.2126*a11y_o(t.r)+.7152*a11y_o(t.g)+.0722*a11y_o(t.b)};/* harmony default export */ function a11y(o){o.prototype.luminance=function(){return o=a11y_t(this.rgba),void 0===(r=2)&&(r=0),void 0===n&&(n=Math.pow(10,r)),Math.round(n*o)/n+0;var o,r,n},o.prototype.contrast=function(r){void 0===r&&(r="#FFF");var n,a,i,e,v,u,d,c=r instanceof o?r:new o(r);return e=this.rgba,v=c.toRgb(),u=a11y_t(e),d=a11y_t(v),n=u>d?(u+.05)/(d+.05):(d+.05)/(u+.05),void 0===(a=2)&&(a=0),void 0===i&&(i=Math.pow(10,a)),Math.floor(i*n)/i+0},o.prototype.isReadable=function(o,t){return void 0===o&&(o="#FFF"),void 0===t&&(t={}),this.contrast(o)>=(e=void 0===(i=(r=t).size)?"normal":i,"AAA"===(a=void 0===(n=r.level)?"AA":n)&&"normal"===e?7:"AA"===a&&"large"===e?3:4.5);var r,n,a,i,e}}
-
-;// CONCATENATED MODULE: external ["wp","privateApis"]
-const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/lock-unlock.js
-/**
- * WordPress dependencies
- */
-
-const {
- lock,
- unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/edit-site');
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/hooks.js
/**
* External dependencies
@@ -9596,15 +7662,17 @@ const {
+
/**
* Internal dependencies
*/
+
const {
useGlobalSetting,
useGlobalStyle
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
// Enable colord's a11y plugin.
k([a11y]);
@@ -9633,15 +7701,23 @@ function useStylesPreviewColors() {
const [textColor = 'black'] = useGlobalStyle('color.text');
const [backgroundColor = 'white'] = useGlobalStyle('color.background');
const [headingColor = textColor] = useGlobalStyle('elements.h1.color.text');
+ const [linkColor = headingColor] = useGlobalStyle('elements.link.color.text');
+ const [buttonBackgroundColor = linkColor] = useGlobalStyle('elements.button.color.background');
const [coreColors] = useGlobalSetting('color.palette.core');
const [themeColors] = useGlobalSetting('color.palette.theme');
const [customColors] = useGlobalSetting('color.palette.custom');
const paletteColors = (themeColors !== null && themeColors !== void 0 ? themeColors : []).concat(customColors !== null && customColors !== void 0 ? customColors : []).concat(coreColors !== null && coreColors !== void 0 ? coreColors : []);
- const highlightedColors = paletteColors.filter(
- // we exclude these two colors because they are already visible in the preview.
+ const textColorObject = paletteColors.filter(({
+ color
+ }) => color === textColor);
+ const buttonBackgroundColorObject = paletteColors.filter(({
+ color
+ }) => color === buttonBackgroundColor);
+ const highlightedColors = textColorObject.concat(buttonBackgroundColorObject).concat(paletteColors).filter(
+ // we exclude these background color because it is already visible in the preview.
({
color
- }) => color !== backgroundColor && color !== headingColor).slice(0, 2);
+ }) => color !== backgroundColor).slice(0, 2);
return {
paletteColors,
highlightedColors
@@ -9652,11 +7728,47 @@ function useSupportedStyles(name, element) {
supportedPanels
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
return {
- supportedPanels: unlock(select(external_wp_blocks_namespaceObject.store)).getSupportedStyles(name, element)
+ supportedPanels: lock_unlock_unlock(select(external_wp_blocks_namespaceObject.store)).getSupportedStyles(name, element)
};
}, [name, element]);
return supportedPanels;
}
+function useColorVariations() {
+ const colorVariations = useCurrentMergeThemeStyleVariationsWithUserConfig({
+ property: 'color'
+ });
+ /*
+ * Filter out variations with no settings or styles.
+ */
+ return colorVariations?.length ? colorVariations.filter(variation => {
+ const {
+ settings,
+ styles,
+ title
+ } = variation;
+ return title === (0,external_wp_i18n_namespaceObject.__)('Default') ||
+ // Always preseve the default variation.
+ Object.keys(settings).length > 0 || Object.keys(styles).length > 0;
+ }) : [];
+}
+function useTypographyVariations() {
+ const typographyVariations = useCurrentMergeThemeStyleVariationsWithUserConfig({
+ property: 'typography'
+ });
+ /*
+ * Filter out variations with no settings or styles.
+ */
+ return typographyVariations?.length ? typographyVariations.filter(variation => {
+ const {
+ settings,
+ styles,
+ title
+ } = variation;
+ return title === (0,external_wp_i18n_namespaceObject.__)('Default') ||
+ // Always preseve the default variation.
+ Object.keys(settings).length > 0 || Object.keys(styles).length > 0;
+ }) : [];
+}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/utils/set-nested-value.js
/**
@@ -9697,8 +7809,9 @@ function setNestedValue(object, path, value) {
return object;
}
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/hooks/push-changes-to-global-styles/index.js
-
/**
* WordPress dependencies
*/
@@ -9719,10 +7832,14 @@ function setNestedValue(object, path, value) {
+
+
+
+
const {
cleanEmptyObject,
- GlobalStylesContext
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+ GlobalStylesContext: push_changes_to_global_styles_GlobalStylesContext
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
// Block Gap is a special case and isn't defined within the blocks
// style properties config. We'll add it here to allow it to be pushed
@@ -9917,9 +8034,6 @@ function useChangesToPush(name, attributes, userConfig) {
return changes;
}, [supports, attributes, blockUserConfig]);
}
-function cloneDeep(object) {
- return !object ? {} : JSON.parse(JSON.stringify(object));
-}
function PushChangesToGlobalStylesControl({
name,
attributes,
@@ -9928,7 +8042,7 @@ function PushChangesToGlobalStylesControl({
const {
user: userConfig,
setUserConfig
- } = (0,external_wp_element_namespaceObject.useContext)(GlobalStylesContext);
+ } = (0,external_wp_element_namespaceObject.useContext)(push_changes_to_global_styles_GlobalStylesContext);
const changes = useChangesToPush(name, attributes, userConfig);
const {
__unstableMarkNextChangeAsNotPersistent
@@ -9969,7 +8083,7 @@ function PushChangesToGlobalStylesControl({
// notification.
__unstableMarkNextChangeAsNotPersistent();
setAttributes(newBlockAttributes);
- setUserConfig(() => newUserConfig, {
+ setUserConfig(newUserConfig, {
undoIgnore: true
});
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
@@ -9981,7 +8095,7 @@ function PushChangesToGlobalStylesControl({
onClick() {
__unstableMarkNextChangeAsNotPersistent();
setAttributes(attributes);
- setUserConfig(() => userConfig, {
+ setUserConfig(userConfig, {
undoIgnore: true
});
}
@@ -9989,16 +8103,22 @@ function PushChangesToGlobalStylesControl({
});
}
}, [__unstableMarkNextChangeAsNotPersistent, attributes, changes, createSuccessNotice, name, setAttributes, setUserConfig, userConfig]);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.BaseControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.BaseControl, {
className: "edit-site-push-changes-to-global-styles-control",
help: (0,external_wp_i18n_namespaceObject.sprintf)(
// translators: %s: Title of the block e.g. 'Heading'.
- (0,external_wp_i18n_namespaceObject.__)('Apply this block’s typography, spacing, dimensions, and color styles to all %s blocks.'), (0,external_wp_blocks_namespaceObject.getBlockType)(name).title)
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.BaseControl.VisualLabel, null, (0,external_wp_i18n_namespaceObject.__)('Styles')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- disabled: changes.length === 0,
- onClick: pushChanges
- }, (0,external_wp_i18n_namespaceObject.__)('Apply globally')));
+ (0,external_wp_i18n_namespaceObject.__)('Apply this block’s typography, spacing, dimensions, and color styles to all %s blocks.'), (0,external_wp_blocks_namespaceObject.getBlockType)(name).title),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Styles')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "secondary",
+ __experimentalIsFocusable: true,
+ disabled: changes.length === 0,
+ onClick: pushChanges,
+ children: (0,external_wp_i18n_namespaceObject.__)('Apply globally')
+ })]
+ });
}
function PushChangesToGlobalStyles(props) {
const blockEditingMode = (0,external_wp_blockEditor_namespaceObject.useBlockEditingMode)();
@@ -10008,298 +8128,20 @@ function PushChangesToGlobalStyles(props) {
if (!isDisplayed) {
return null;
}
- return (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.InspectorAdvancedControls, null, (0,external_React_.createElement)(PushChangesToGlobalStylesControl, {
- ...props
- }));
-}
-const withPushChangesToGlobalStyles = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockEdit => props => (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(BlockEdit, {
- ...props
-}), props.isSelected && (0,external_React_.createElement)(PushChangesToGlobalStyles, {
- ...props
-})));
-(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/edit-site/push-changes-to-global-styles', withPushChangesToGlobalStyles);
-
-;// CONCATENATED MODULE: external ["wp","router"]
-const external_wp_router_namespaceObject = window["wp"]["router"];
-;// CONCATENATED MODULE: external ["wp","url"]
-const external_wp_url_namespaceObject = window["wp"]["url"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/utils/is-previewing-theme.js
-/**
- * WordPress dependencies
- */
-
-function isPreviewingTheme() {
- return (0,external_wp_url_namespaceObject.getQueryArg)(window.location.href, 'wp_theme_preview') !== undefined;
-}
-function currentlyPreviewingTheme() {
- if (isPreviewingTheme()) {
- return (0,external_wp_url_namespaceObject.getQueryArg)(window.location.href, 'wp_theme_preview');
- }
- return null;
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/routes/link.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-
-const {
- useHistory
-} = unlock(external_wp_router_namespaceObject.privateApis);
-function useLink(params, state, shouldReplace = false) {
- const history = useHistory();
- function onClick(event) {
- event?.preventDefault();
- if (shouldReplace) {
- history.replace(params, state);
- } else {
- history.push(params, state);
- }
- }
- const currentArgs = (0,external_wp_url_namespaceObject.getQueryArgs)(window.location.href);
- const currentUrlWithoutArgs = (0,external_wp_url_namespaceObject.removeQueryArgs)(window.location.href, ...Object.keys(currentArgs));
- if (isPreviewingTheme()) {
- params = {
- ...params,
- wp_theme_preview: currentlyPreviewingTheme()
- };
- }
- const newUrl = (0,external_wp_url_namespaceObject.addQueryArgs)(currentUrlWithoutArgs, params);
- return {
- href: newUrl,
- onClick
- };
-}
-function Link({
- params = {},
- state,
- replace: shouldReplace = false,
- children,
- ...props
-}) {
- const {
- href,
- onClick
- } = useLink(params, state, shouldReplace);
- return (0,external_React_.createElement)("a", {
- href: href,
- onClick: onClick,
- ...props
- }, children);
-}
-
-;// CONCATENATED MODULE: external ["wp","patterns"]
-const external_wp_patterns_namespaceObject = window["wp"]["patterns"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/utils/constants.js
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-
-// Navigation
-const NAVIGATION_POST_TYPE = 'wp_navigation';
-
-// Templates.
-const constants_TEMPLATE_POST_TYPE = 'wp_template';
-const TEMPLATE_PART_POST_TYPE = 'wp_template_part';
-const TEMPLATE_ORIGINS = {
- custom: 'custom',
- theme: 'theme',
- plugin: 'plugin'
-};
-const TEMPLATE_PART_AREA_DEFAULT_CATEGORY = 'uncategorized';
-
-// Patterns.
-const {
- PATTERN_TYPES,
- PATTERN_DEFAULT_CATEGORY,
- PATTERN_USER_CATEGORY,
- EXCLUDED_PATTERN_SOURCES,
- PATTERN_SYNC_TYPES
-} = unlock(external_wp_patterns_namespaceObject.privateApis);
-
-// Entities that are editable in focus mode.
-const FOCUSABLE_ENTITIES = [TEMPLATE_PART_POST_TYPE, NAVIGATION_POST_TYPE, PATTERN_TYPES.user];
-const POST_TYPE_LABELS = {
- [constants_TEMPLATE_POST_TYPE]: (0,external_wp_i18n_namespaceObject.__)('Template'),
- [TEMPLATE_PART_POST_TYPE]: (0,external_wp_i18n_namespaceObject.__)('Template part'),
- [PATTERN_TYPES.user]: (0,external_wp_i18n_namespaceObject.__)('Pattern'),
- [NAVIGATION_POST_TYPE]: (0,external_wp_i18n_namespaceObject.__)('Navigation')
-};
-
-// DataViews constants
-const LAYOUT_GRID = 'grid';
-const LAYOUT_TABLE = 'table';
-const LAYOUT_LIST = 'list';
-const ENUMERATION_TYPE = 'enumeration';
-const OPERATOR_IN = 'in';
-const OPERATOR_NOT_IN = 'notIn';
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/hooks/template-part-edit.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-const {
- useLocation
-} = unlock(external_wp_router_namespaceObject.privateApis);
-function EditTemplatePartMenuItem({
- attributes
-}) {
- const {
- theme,
- slug
- } = attributes;
- const {
- params
- } = useLocation();
- const templatePart = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getCurrentTheme,
- getEntityRecord
- } = select(external_wp_coreData_namespaceObject.store);
- return getEntityRecord('postType', TEMPLATE_PART_POST_TYPE,
- // Ideally this should be an official public API.
- `${theme || getCurrentTheme()?.stylesheet}//${slug}`);
- }, [theme, slug]);
- const linkProps = useLink({
- postId: templatePart?.id,
- postType: templatePart?.type,
- canvas: 'edit'
- }, {
- fromTemplateId: params.postId || templatePart?.id
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorAdvancedControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PushChangesToGlobalStylesControl, {
+ ...props
+ })
});
- if (!templatePart) {
- return null;
- }
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- ...linkProps,
- onClick: event => {
- linkProps.onClick(event);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Edit'));
}
-const withEditBlockControls = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockEdit => props => {
- const {
- attributes,
- name
- } = props;
- const isDisplayed = name === 'core/template-part' && attributes.slug;
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(BlockEdit, {
- key: "edit",
+const withPushChangesToGlobalStyles = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockEdit => props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockEdit, {
...props
- }), isDisplayed && (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "other"
- }, (0,external_React_.createElement)(EditTemplatePartMenuItem, {
- attributes: attributes
- })));
-}, 'withEditBlockControls');
-(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/edit-site/template-part-edit-button', withEditBlockControls);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/hooks/navigation-menu-edit.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-const {
- useLocation: navigation_menu_edit_useLocation
-} = unlock(external_wp_router_namespaceObject.privateApis);
-function NavigationMenuEdit({
- attributes
-}) {
- const {
- ref
- } = attributes;
- const {
- params
- } = navigation_menu_edit_useLocation();
- const blockEditingMode = (0,external_wp_blockEditor_namespaceObject.useBlockEditingMode)();
- const navigationMenu = (0,external_wp_data_namespaceObject.useSelect)(select => {
- return select(external_wp_coreData_namespaceObject.store).getEntityRecord('postType', NAVIGATION_POST_TYPE,
- // Ideally this should be an official public API.
- ref);
- }, [ref]);
- const linkProps = useLink({
- postId: navigationMenu?.id,
- postType: navigationMenu?.type,
- canvas: 'edit'
- }, {
- // this applies to Navigation Menus as well.
- fromTemplateId: params.postId || navigationMenu?.id
- });
-
- // A non-default setting for block editing mode indicates that the
- // editor should restrict "editing" actions. Therefore the `Edit` button
- // should not be displayed.
- if (!navigationMenu || blockEditingMode !== 'default') {
- return null;
- }
- return (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "other"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- ...linkProps,
- onClick: event => {
- linkProps.onClick(event);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Edit')));
-}
-const navigation_menu_edit_withEditBlockControls = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockEdit => props => {
- const {
- attributes,
- name
- } = props;
- const isDisplayed = name === 'core/navigation' && attributes.ref;
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(BlockEdit, {
+ }), props.isSelected && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PushChangesToGlobalStyles, {
...props
- }), isDisplayed && (0,external_React_.createElement)(NavigationMenuEdit, {
- attributes: attributes
- }));
-}, 'withEditBlockControls');
-(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/edit-site/navigation-edit-button', navigation_menu_edit_withEditBlockControls);
+ })]
+}));
+(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/edit-site/push-changes-to-global-styles', withPushChangesToGlobalStyles);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/hooks/index.js
/**
@@ -10307,9 +8149,6 @@ const navigation_menu_edit_withEditBlockControls = (0,external_wp_compose_namesp
*/
-
-
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/store/reducer.js
/**
* WordPress dependencies
@@ -10406,7 +8245,7 @@ function editorCanvasContainerView(state = undefined, action) {
}
return state;
}
-/* harmony default export */ const store_reducer = ((0,external_wp_data_namespaceObject.combineReducers)({
+/* harmony default export */ const reducer = ((0,external_wp_data_namespaceObject.combineReducers)({
settings,
editedPost,
saveViewPanel,
@@ -10414,173 +8253,61 @@ function editorCanvasContainerView(state = undefined, action) {
editorCanvasContainerView
}));
-;// CONCATENATED MODULE: external ["wp","apiFetch"]
-const external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
-var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
-;// CONCATENATED MODULE: external ["wp","a11y"]
-const external_wp_a11y_namespaceObject = window["wp"]["a11y"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/store/constants.js
-/**
- * The identifier for the data store.
- *
- * @type {string}
- */
-const constants_STORE_NAME = 'core/edit-site';
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/utils/is-template-revertable.js
-/**
- * Internal dependencies
- */
-
-
-/**
- * Check if a template is revertable to its original theme-provided template file.
- *
- * @param {Object} template The template entity to check.
- * @return {boolean} Whether the template is revertable.
- */
-function isTemplateRevertable(template) {
- if (!template) {
- return false;
- }
- /* eslint-disable camelcase */
- return template?.source === TEMPLATE_ORIGINS.custom && template?.has_theme_file;
- /* eslint-enable camelcase */
-}
-
-;// CONCATENATED MODULE: external ["wp","htmlEntities"]
-const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/store/private-actions.js
+;// CONCATENATED MODULE: external ["wp","patterns"]
+const external_wp_patterns_namespaceObject = window["wp"]["patterns"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/utils/constants.js
/**
* WordPress dependencies
*/
-
-
-
-
-
/**
* Internal dependencies
*/
-/**
- * Action that switches the canvas mode.
- *
- * @param {?string} mode Canvas mode.
- */
-const setCanvasMode = mode => ({
- registry,
- dispatch
-}) => {
- const isMediumOrBigger = window.matchMedia('(min-width: 782px)').matches;
- registry.dispatch(external_wp_blockEditor_namespaceObject.store).__unstableSetEditorMode('edit');
- dispatch({
- type: 'SET_CANVAS_MODE',
- mode
- });
- // Check if the block list view should be open by default.
- // If `distractionFree` mode is enabled, the block list view should not be open.
- // This behavior is disabled for small viewports.
- if (isMediumOrBigger && mode === 'edit' && registry.select(external_wp_preferences_namespaceObject.store).get('core', 'showListViewByDefault') && !registry.select(external_wp_preferences_namespaceObject.store).get('core', 'distractionFree')) {
- registry.dispatch(external_wp_editor_namespaceObject.store).setIsListViewOpened(true);
- } else {
- registry.dispatch(external_wp_editor_namespaceObject.store).setIsListViewOpened(false);
- }
- registry.dispatch(external_wp_editor_namespaceObject.store).setIsInserterOpened(false);
-};
+// Navigation
+const NAVIGATION_POST_TYPE = 'wp_navigation';
-/**
- * Action that switches the editor canvas container view.
- *
- * @param {?string} view Editor canvas container view.
- */
-const setEditorCanvasContainerView = view => ({
- dispatch
-}) => {
- dispatch({
- type: 'SET_EDITOR_CANVAS_CONTAINER_VIEW',
- view
- });
+// Templates.
+const TEMPLATE_POST_TYPE = 'wp_template';
+const TEMPLATE_PART_POST_TYPE = 'wp_template_part';
+const TEMPLATE_ORIGINS = {
+ custom: 'custom',
+ theme: 'theme',
+ plugin: 'plugin'
};
+const TEMPLATE_PART_AREA_DEFAULT_CATEGORY = 'uncategorized';
+const TEMPLATE_PART_ALL_AREAS_CATEGORY = 'all-parts';
-/**
- * Action that removes an array of templates.
- *
- * @param {Array} items An array of template or template part objects to remove.
- */
-const removeTemplates = items => async ({
- registry
-}) => {
- const isTemplate = items[0].type === constants_TEMPLATE_POST_TYPE;
- const promiseResult = await Promise.allSettled(items.map(item => {
- return registry.dispatch(external_wp_coreData_namespaceObject.store).deleteEntityRecord('postType', item.type, item.id, {
- force: true
- }, {
- throwOnError: true
- });
- }));
+// Patterns.
+const {
+ PATTERN_TYPES,
+ PATTERN_DEFAULT_CATEGORY,
+ PATTERN_USER_CATEGORY,
+ EXCLUDED_PATTERN_SOURCES,
+ PATTERN_SYNC_TYPES
+} = lock_unlock_unlock(external_wp_patterns_namespaceObject.privateApis);
- // If all the promises were fulfilled with sucess.
- if (promiseResult.every(({
- status
- }) => status === 'fulfilled')) {
- let successMessage;
- if (items.length === 1) {
- // Depending on how the entity was retrieved its title might be
- // an object or simple string.
- const title = typeof items[0].title === 'string' ? items[0].title : items[0].title?.rendered;
- successMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The template/part's name. */
- (0,external_wp_i18n_namespaceObject.__)('"%s" deleted.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title));
- } else {
- successMessage = isTemplate ? (0,external_wp_i18n_namespaceObject.__)('Templates deleted.') : (0,external_wp_i18n_namespaceObject.__)('Template parts deleted.');
- }
- registry.dispatch(external_wp_notices_namespaceObject.store).createSuccessNotice(successMessage, {
- type: 'snackbar',
- id: 'site-editor-template-deleted-success'
- });
- } else {
- // If there was at lease one failure.
- let errorMessage;
- // If we were trying to delete a single template.
- if (promiseResult.length === 1) {
- if (promiseResult[0].reason?.message) {
- errorMessage = promiseResult[0].reason.message;
- } else {
- errorMessage = isTemplate ? (0,external_wp_i18n_namespaceObject.__)('An error occurred while deleting the template.') : (0,external_wp_i18n_namespaceObject.__)('An error occurred while deleting the template part.');
- }
- // If we were trying to delete a multiple templates
- } else {
- const errorMessages = new Set();
- const failedPromises = promiseResult.filter(({
- status
- }) => status === 'rejected');
- for (const failedPromise of failedPromises) {
- if (failedPromise.reason?.message) {
- errorMessages.add(failedPromise.reason.message);
- }
- }
- if (errorMessages.size === 0) {
- errorMessage = isTemplate ? (0,external_wp_i18n_namespaceObject.__)('An error occurred while deleting the templates.') : (0,external_wp_i18n_namespaceObject.__)('An error occurred while deleting the template parts.');
- } else if (errorMessages.size === 1) {
- errorMessage = isTemplate ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: an error message */
- (0,external_wp_i18n_namespaceObject.__)('An error occurred while deleting the templates: %s'), [...errorMessages][0]) : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: an error message */
- (0,external_wp_i18n_namespaceObject.__)('An error occurred while deleting the template parts: %s'), [...errorMessages][0]);
- } else {
- errorMessage = isTemplate ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: a list of comma separated error messages */
- (0,external_wp_i18n_namespaceObject.__)('Some errors occurred while deleting the templates: %s'), [...errorMessages].join(',')) : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: a list of comma separated error messages */
- (0,external_wp_i18n_namespaceObject.__)('Some errors occurred while deleting the template parts: %s'), [...errorMessages].join(','));
- }
- }
- registry.dispatch(external_wp_notices_namespaceObject.store).createErrorNotice(errorMessage, {
- type: 'snackbar'
- });
- }
+// Entities that are editable in focus mode.
+const FOCUSABLE_ENTITIES = [TEMPLATE_PART_POST_TYPE, NAVIGATION_POST_TYPE, PATTERN_TYPES.user];
+const POST_TYPE_LABELS = {
+ [TEMPLATE_POST_TYPE]: (0,external_wp_i18n_namespaceObject.__)('Template'),
+ [TEMPLATE_PART_POST_TYPE]: (0,external_wp_i18n_namespaceObject.__)('Template part'),
+ [PATTERN_TYPES.user]: (0,external_wp_i18n_namespaceObject.__)('Pattern'),
+ [NAVIGATION_POST_TYPE]: (0,external_wp_i18n_namespaceObject.__)('Navigation')
};
+// DataViews constants
+const LAYOUT_GRID = 'grid';
+const LAYOUT_TABLE = 'table';
+const LAYOUT_LIST = 'list';
+const OPERATOR_IS = 'is';
+const OPERATOR_IS_NOT = 'isNot';
+const OPERATOR_IS_ANY = 'isAny';
+const OPERATOR_IS_NONE = 'isNone';
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/store/actions.js
/**
* WordPress dependencies
@@ -10592,26 +8319,21 @@ const removeTemplates = items => async ({
-
-
-
-
-
-
/**
* Internal dependencies
*/
-
-
+const {
+ interfaceStore
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
/**
* Dispatches an action that toggles a feature flag.
*
* @param {string} featureName Feature name.
*/
-function actions_toggleFeature(featureName) {
+function toggleFeature(featureName) {
return function ({
registry
}) {
@@ -10677,9 +8399,9 @@ const addTemplate = template => async ({
version: '6.8',
hint: 'use saveEntityRecord directly'
});
- const newTemplate = await registry.dispatch(external_wp_coreData_namespaceObject.store).saveEntityRecord('postType', constants_TEMPLATE_POST_TYPE, template);
+ const newTemplate = await registry.dispatch(external_wp_coreData_namespaceObject.store).saveEntityRecord('postType', TEMPLATE_POST_TYPE, template);
if (template.content) {
- registry.dispatch(external_wp_coreData_namespaceObject.store).editEntityRecord('postType', constants_TEMPLATE_POST_TYPE, newTemplate.id, {
+ registry.dispatch(external_wp_coreData_namespaceObject.store).editEntityRecord('postType', TEMPLATE_POST_TYPE, newTemplate.id, {
blocks: (0,external_wp_blocks_namespaceObject.parse)(template.content)
}, {
undoIgnore: true
@@ -10687,7 +8409,7 @@ const addTemplate = template => async ({
}
dispatch({
type: 'SET_EDITED_POST',
- postType: constants_TEMPLATE_POST_TYPE,
+ postType: TEMPLATE_POST_TYPE,
id: newTemplate.id
});
};
@@ -10697,8 +8419,10 @@ const addTemplate = template => async ({
*
* @param {Object} template The template object.
*/
-const removeTemplate = template => {
- return removeTemplates([template]);
+const removeTemplate = template => ({
+ registry
+}) => {
+ return lock_unlock_unlock(registry.dispatch(external_wp_editor_namespaceObject.store)).removeTemplates([template]);
};
/**
@@ -10782,7 +8506,7 @@ function setEditedPostContext(context) {
*
* @deprecated
*
- * @return {number} The resolved template ID for the page route.
+ * @return {Object} Action object.
*/
function setPage() {
external_wp_deprecated_default()("dispatch( 'core/edit-site' ).setPage", {
@@ -10911,100 +8635,21 @@ function setIsSaveViewOpened(isOpen) {
* @param {boolean} [options.allowUndo] Whether to allow the user to undo
* reverting the template. Default true.
*/
-const revertTemplate = (template, {
- allowUndo = true
-} = {}) => async ({
+const revertTemplate = (template, options) => ({
registry
}) => {
- const noticeId = 'edit-site-template-reverted';
- registry.dispatch(external_wp_notices_namespaceObject.store).removeNotice(noticeId);
- if (!isTemplateRevertable(template)) {
- registry.dispatch(external_wp_notices_namespaceObject.store).createErrorNotice((0,external_wp_i18n_namespaceObject.__)('This template is not revertable.'), {
- type: 'snackbar'
- });
- return;
- }
- try {
- const templateEntityConfig = registry.select(external_wp_coreData_namespaceObject.store).getEntityConfig('postType', template.type);
- if (!templateEntityConfig) {
- registry.dispatch(external_wp_notices_namespaceObject.store).createErrorNotice((0,external_wp_i18n_namespaceObject.__)('The editor has encountered an unexpected error. Please reload.'), {
- type: 'snackbar'
- });
- return;
- }
- const fileTemplatePath = (0,external_wp_url_namespaceObject.addQueryArgs)(`${templateEntityConfig.baseURL}/${template.id}`, {
- context: 'edit',
- source: 'theme'
- });
- const fileTemplate = await external_wp_apiFetch_default()({
- path: fileTemplatePath
- });
- if (!fileTemplate) {
- registry.dispatch(external_wp_notices_namespaceObject.store).createErrorNotice((0,external_wp_i18n_namespaceObject.__)('The editor has encountered an unexpected error. Please reload.'), {
- type: 'snackbar'
- });
- return;
- }
- const serializeBlocks = ({
- blocks: blocksForSerialization = []
- }) => (0,external_wp_blocks_namespaceObject.__unstableSerializeAndClean)(blocksForSerialization);
- const edited = registry.select(external_wp_coreData_namespaceObject.store).getEditedEntityRecord('postType', template.type, template.id);
-
- // We are fixing up the undo level here to make sure we can undo
- // the revert in the header toolbar correctly.
- registry.dispatch(external_wp_coreData_namespaceObject.store).editEntityRecord('postType', template.type, template.id, {
- content: serializeBlocks,
- // Required to make the `undo` behave correctly.
- blocks: edited.blocks,
- // Required to revert the blocks in the editor.
- source: 'custom' // required to avoid turning the editor into a dirty state
- }, {
- undoIgnore: true // Required to merge this edit with the last undo level.
- });
- const blocks = (0,external_wp_blocks_namespaceObject.parse)(fileTemplate?.content?.raw);
- registry.dispatch(external_wp_coreData_namespaceObject.store).editEntityRecord('postType', template.type, fileTemplate.id, {
- content: serializeBlocks,
- blocks,
- source: 'theme'
- });
- if (allowUndo) {
- const undoRevert = () => {
- registry.dispatch(external_wp_coreData_namespaceObject.store).editEntityRecord('postType', template.type, edited.id, {
- content: serializeBlocks,
- blocks: edited.blocks,
- source: 'custom'
- });
- };
- registry.dispatch(external_wp_notices_namespaceObject.store).createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Template reverted.'), {
- type: 'snackbar',
- id: noticeId,
- actions: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Undo'),
- onClick: undoRevert
- }]
- });
- }
- } catch (error) {
- const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : (0,external_wp_i18n_namespaceObject.__)('Template revert failed. Please reload.');
- registry.dispatch(external_wp_notices_namespaceObject.store).createErrorNotice(errorMessage, {
- type: 'snackbar'
- });
- }
+ return lock_unlock_unlock(registry.dispatch(external_wp_editor_namespaceObject.store)).revertTemplate(template, options);
};
+
/**
* Action that opens an editor sidebar.
*
* @param {?string} name Sidebar name to be opened.
*/
const openGeneralSidebar = name => ({
- dispatch,
registry
}) => {
- const isDistractionFree = registry.select(external_wp_preferences_namespaceObject.store).get('core', 'distractionFree');
- if (isDistractionFree) {
- dispatch.toggleDistractionFree();
- }
- registry.dispatch(store).enableComplementaryArea(constants_STORE_NAME, name);
+ registry.dispatch(interfaceStore).enableComplementaryArea('core', name);
};
/**
@@ -11013,27 +8658,24 @@ const openGeneralSidebar = name => ({
const closeGeneralSidebar = () => ({
registry
}) => {
- registry.dispatch(store).disableComplementaryArea(constants_STORE_NAME);
+ registry.dispatch(interfaceStore).disableComplementaryArea('core');
};
+
+/**
+ * Triggers an action used to switch editor mode.
+ *
+ * @deprecated
+ *
+ * @param {string} mode The editor mode.
+ */
const switchEditorMode = mode => ({
- dispatch,
registry
}) => {
- registry.dispatch('core/preferences').set('core', 'editorMode', mode);
-
- // Unselect blocks when we switch to a non visual mode.
- if (mode !== 'visual') {
- registry.dispatch(external_wp_blockEditor_namespaceObject.store).clearSelectedBlock();
- }
- if (mode === 'visual') {
- (0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.__)('Visual editor selected'), 'assertive');
- } else if (mode === 'text') {
- const isDistractionFree = registry.select(external_wp_preferences_namespaceObject.store).get('core', 'distractionFree');
- if (isDistractionFree) {
- dispatch.toggleDistractionFree();
- }
- (0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.__)('Code editor selected'), 'assertive');
- }
+ external_wp_deprecated_default()("dispatch( 'core/edit-site' ).switchEditorMode", {
+ since: '6.6',
+ alternative: "dispatch( 'core/editor').switchEditorMode"
+ });
+ registry.dispatch(external_wp_editor_namespaceObject.store).switchEditorMode(mode);
};
/**
@@ -11063,267 +8705,92 @@ const setHasPageContentFocus = hasPageContentFocus => ({
* Action that toggles Distraction free mode.
* Distraction free mode expects there are no sidebars, as due to the
* z-index values set, you can't close sidebars.
+ *
+ * @deprecated
*/
const toggleDistractionFree = () => ({
- dispatch,
registry
}) => {
- const isDistractionFree = registry.select(external_wp_preferences_namespaceObject.store).get('core', 'distractionFree');
- if (isDistractionFree) {
- registry.dispatch(external_wp_preferences_namespaceObject.store).set('core', 'fixedToolbar', false);
- }
- if (!isDistractionFree) {
- registry.batch(() => {
- registry.dispatch(external_wp_preferences_namespaceObject.store).set('core', 'fixedToolbar', true);
- registry.dispatch(external_wp_editor_namespaceObject.store).setIsInserterOpened(false);
- registry.dispatch(external_wp_editor_namespaceObject.store).setIsListViewOpened(false);
- dispatch.closeGeneralSidebar();
- });
- }
- registry.batch(() => {
- registry.dispatch(external_wp_preferences_namespaceObject.store).set('core', 'distractionFree', !isDistractionFree);
- registry.dispatch(external_wp_notices_namespaceObject.store).createInfoNotice(isDistractionFree ? (0,external_wp_i18n_namespaceObject.__)('Distraction free off.') : (0,external_wp_i18n_namespaceObject.__)('Distraction free on.'), {
- id: 'core/edit-site/distraction-free-mode/notice',
- type: 'snackbar',
- actions: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Undo'),
- onClick: () => {
- registry.batch(() => {
- registry.dispatch(external_wp_preferences_namespaceObject.store).set('core', 'fixedToolbar', isDistractionFree ? true : false);
- registry.dispatch(external_wp_preferences_namespaceObject.store).toggle('core', 'distractionFree');
- });
- }
- }]
- });
+ external_wp_deprecated_default()("dispatch( 'core/edit-site' ).toggleDistractionFree", {
+ since: '6.6',
+ alternative: "dispatch( 'core/editor').toggleDistractionFree"
});
+ registry.dispatch(external_wp_editor_namespaceObject.store).toggleDistractionFree();
};
-;// CONCATENATED MODULE: ./node_modules/memize/dist/index.js
-/**
- * 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.
- */
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/store/private-actions.js
/**
- * Accepts a function to be memoized, and returns a new memoized function, with
- * optional options.
- *
- * @template {(...args: any[]) => any} F
- *
- * @param {F} fn Function to memoize.
- * @param {MemizeOptions} [options] Options object.
- *
- * @return {((...args: Parameters<F>) => ReturnType<F>) & MemizeMemoizedFunction} Memoized function.
+ * WordPress dependencies
*/
-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;
- };
-
- // 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;
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/store/utils.js
/**
- * External dependencies
+ * Action that switches the canvas mode.
+ *
+ * @param {?string} mode Canvas mode.
*/
+const setCanvasMode = mode => ({
+ registry,
+ dispatch
+}) => {
+ const isMediumOrBigger = window.matchMedia('(min-width: 782px)').matches;
+ const switchCanvasMode = () => {
+ registry.batch(() => {
+ registry.dispatch(external_wp_blockEditor_namespaceObject.store).clearSelectedBlock();
+ registry.dispatch(external_wp_editor_namespaceObject.store).setDeviceType('Desktop');
+ registry.dispatch(external_wp_blockEditor_namespaceObject.store).__unstableSetEditorMode('edit');
+ const isPublishSidebarOpened = registry.select(external_wp_editor_namespaceObject.store).isPublishSidebarOpened();
+ dispatch({
+ type: 'SET_CANVAS_MODE',
+ mode
+ });
+ const isEditMode = mode === 'edit';
+ if (isPublishSidebarOpened && !isEditMode) {
+ registry.dispatch(external_wp_editor_namespaceObject.store).closePublishSidebar();
+ }
+ // Check if the block list view should be open by default.
+ // If `distractionFree` mode is enabled, the block list view should not be open.
+ // This behavior is disabled for small viewports.
+ if (isMediumOrBigger && isEditMode && registry.select(external_wp_preferences_namespaceObject.store).get('core', 'showListViewByDefault') && !registry.select(external_wp_preferences_namespaceObject.store).get('core', 'distractionFree')) {
+ registry.dispatch(external_wp_editor_namespaceObject.store).setIsListViewOpened(true);
+ } else {
+ registry.dispatch(external_wp_editor_namespaceObject.store).setIsListViewOpened(false);
+ }
+ registry.dispatch(external_wp_editor_namespaceObject.store).setIsInserterOpened(false);
+ });
+ };
-/**
- * WordPress dependencies
- */
-
-const EMPTY_ARRAY = [];
+ /*
+ * Skip transition in mobile, otherwise it crashes the browser.
+ * See: https://github.com/WordPress/gutenberg/pull/63002.
+ */
+ if (!isMediumOrBigger || !document.startViewTransition) {
+ switchCanvasMode();
+ } else {
+ document.documentElement.classList.add(`canvas-mode-${mode}-transition`);
+ const transition = document.startViewTransition(() => switchCanvasMode());
+ transition.finished.finally(() => {
+ document.documentElement.classList.remove(`canvas-mode-${mode}-transition`);
+ });
+ }
+};
/**
- * Get a flattened and filtered list of template parts and the matching block for that template part.
- *
- * Takes a list of blocks defined within a template, and a list of template parts, and returns a
- * flattened list of template parts and the matching block for that template part.
+ * Action that switches the editor canvas container view.
*
- * @param {Array} blocks Blocks to flatten.
- * @param {?Array} templateParts Available template parts.
- * @return {Array} An array of template parts and their blocks.
- */
-function getFilteredTemplatePartBlocks(blocks = EMPTY_ARRAY, templateParts) {
- const templatePartsById = templateParts ?
- // Key template parts by their ID.
- templateParts.reduce((newTemplateParts, part) => ({
- ...newTemplateParts,
- [part.id]: part
- }), {}) : {};
- const result = [];
-
- // Iterate over all blocks, recursing into inner blocks.
- // Output will be based on a depth-first traversal.
- const stack = [...blocks];
- while (stack.length) {
- const {
- innerBlocks,
- ...block
- } = stack.shift();
- // Place inner blocks at the beginning of the stack to preserve order.
- stack.unshift(...innerBlocks);
- if ((0,external_wp_blocks_namespaceObject.isTemplatePart)(block)) {
- const {
- attributes: {
- theme,
- slug
- }
- } = block;
- const templatePartId = `${theme}//${slug}`;
- const templatePart = templatePartsById[templatePartId];
-
- // Only add to output if the found template part block is in the list of available template parts.
- if (templatePart) {
- result.push({
- templatePart,
- block
- });
- }
- }
- }
- return result;
-}
-const memoizedGetFilteredTemplatePartBlocks = memize(getFilteredTemplatePartBlocks);
-
+ * @param {?string} view Editor canvas container view.
+ */
+const setEditorCanvasContainerView = view => ({
+ dispatch
+}) => {
+ dispatch({
+ type: 'SET_EDITOR_CANVAS_CONTAINER_VIEW',
+ view
+ });
+};
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/store/selectors.js
/**
@@ -11336,14 +8803,11 @@ const memoizedGetFilteredTemplatePartBlocks = memize(getFilteredTemplatePartBloc
-
/**
* Internal dependencies
*/
-
-
/**
* @typedef {'template'|'template_type'} TemplateType Template type.
*/
@@ -11357,7 +8821,7 @@ const memoizedGetFilteredTemplatePartBlocks = memize(getFilteredTemplatePartBloc
*
* @return {boolean} Is active.
*/
-const selectors_isFeatureActive = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (_, featureName) => {
+const isFeatureActive = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (_, featureName) => {
external_wp_deprecated_default()(`select( 'core/edit-site' ).isFeatureActive`, {
since: '6.0',
alternative: `select( 'core/preferences' ).get`
@@ -11439,7 +8903,7 @@ function getHomeTemplateId() {
*
* @param {Object} state Global application state.
*
- * @return {TemplateType?} Template type.
+ * @return {?TemplateType} Template type.
*/
function getEditedPostType(state) {
return state.editedPost.postType;
@@ -11450,7 +8914,7 @@ function getEditedPostType(state) {
*
* @param {Object} state Global application state.
*
- * @return {string?} Post ID.
+ * @return {?string} Post ID.
*/
function getEditedPostId(state) {
return state.editedPost.id;
@@ -11513,7 +8977,7 @@ const __experimentalGetInsertionPoint = (0,external_wp_data_namespaceObject.crea
since: '6.5',
version: '6.7'
});
- return unlock(select(external_wp_editor_namespaceObject.store)).getInsertionPoint();
+ return lock_unlock_unlock(select(external_wp_editor_namespaceObject.store)).getInsertionPoint();
});
/**
@@ -11549,12 +9013,7 @@ function isSaveViewOpened(state) {
* @return {Array} Template parts and their blocks in an array.
*/
const getCurrentTemplateTemplateParts = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => () => {
- const templateParts = select(external_wp_coreData_namespaceObject.store).getEntityRecords('postType', TEMPLATE_PART_POST_TYPE, {
- per_page: -1
- });
- const clientIds = select(external_wp_blockEditor_namespaceObject.store).getBlocksByName('core/template-part');
- const blocks = select(external_wp_blockEditor_namespaceObject.store).getBlocksByClientId(clientIds);
- return memoizedGetFilteredTemplatePartBlocks(blocks, templateParts);
+ return lock_unlock_unlock(select(external_wp_editor_namespaceObject.store)).getCurrentTemplateTemplateParts();
});
/**
@@ -11648,6 +9107,14 @@ function getEditorCanvasContainerView(state) {
return state.editorCanvasContainerView;
}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/store/constants.js
+/**
+ * The identifier for the data store.
+ *
+ * @type {string}
+ */
+const STORE_NAME = 'core/edit-site';
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/store/index.js
/**
* WordPress dependencies
@@ -11665,3591 +9132,28 @@ function getEditorCanvasContainerView(state) {
const storeConfig = {
- reducer: store_reducer,
- actions: store_actions_namespaceObject,
- selectors: store_selectors_namespaceObject
+ reducer: reducer,
+ actions: actions_namespaceObject,
+ selectors: selectors_namespaceObject
};
-const store_store = (0,external_wp_data_namespaceObject.createReduxStore)(constants_STORE_NAME, storeConfig);
-(0,external_wp_data_namespaceObject.register)(store_store);
-unlock(store_store).registerPrivateSelectors(private_selectors_namespaceObject);
-unlock(store_store).registerPrivateActions(private_actions_namespaceObject);
+const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME, storeConfig);
+(0,external_wp_data_namespaceObject.register)(store);
+lock_unlock_unlock(store).registerPrivateSelectors(private_selectors_namespaceObject);
+lock_unlock_unlock(store).registerPrivateActions(private_actions_namespaceObject);
+;// CONCATENATED MODULE: external ["wp","plugins"]
+const external_wp_plugins_namespaceObject = window["wp"]["plugins"];
+;// CONCATENATED MODULE: external ["wp","router"]
+const external_wp_router_namespaceObject = window["wp"]["router"];
+;// CONCATENATED MODULE: ./node_modules/clsx/dist/clsx.mjs
+function clsx_r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=clsx_r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=clsx_r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
;// CONCATENATED MODULE: external ["wp","keyboardShortcuts"]
const external_wp_keyboardShortcuts_namespaceObject = window["wp"]["keyboardShortcuts"];
;// CONCATENATED MODULE: external ["wp","commands"]
const external_wp_commands_namespaceObject = window["wp"]["commands"];
;// CONCATENATED MODULE: external ["wp","coreCommands"]
const external_wp_coreCommands_namespaceObject = window["wp"]["coreCommands"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/navigation.js
-
-/**
- * WordPress dependencies
- */
-
-const navigation = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"
-}));
-/* harmony default export */ const library_navigation = (navigation);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/styles.js
-
-/**
- * WordPress dependencies
- */
-
-const styles = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"
-}));
-/* harmony default export */ const library_styles = (styles);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/page.js
-
-/**
- * WordPress dependencies
- */
-
-const page = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"
-}));
-/* harmony default export */ const library_page = (page);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/layout.js
-
-/**
- * WordPress dependencies
- */
-
-const layout = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
-}));
-/* harmony default export */ const library_layout = (layout);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/symbol.js
-
-/**
- * WordPress dependencies
- */
-
-const symbol = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
-}));
-/* harmony default export */ const library_symbol = (symbol);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js
-
-/**
- * WordPress dependencies
- */
-
-const chevronRight = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
-}));
-/* harmony default export */ const chevron_right = (chevronRight);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js
-
-/**
- * WordPress dependencies
- */
-
-const chevronLeft = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
-}));
-/* harmony default export */ const chevron_left = (chevronLeft);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-button/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-function SidebarButton(props) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- ...props,
- className: classnames_default()('edit-site-sidebar-button', props.className)
- });
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-const {
- useLocation: sidebar_navigation_screen_useLocation
-} = unlock(external_wp_router_namespaceObject.privateApis);
-function SidebarNavigationScreen({
- isRoot,
- title,
- actions,
- meta,
- content,
- footer,
- description,
- backPath: backPathProp
-}) {
- const {
- dashboardLink,
- dashboardLinkText,
- previewingThemeName
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getSettings
- } = unlock(select(store_store));
- const currentlyPreviewingThemeId = currentlyPreviewingTheme();
- return {
- dashboardLink: getSettings().__experimentalDashboardLink,
- dashboardLinkText: getSettings().__experimentalDashboardLinkText,
- // Do not call `getTheme` with null, it will cause a request to
- // the server.
- previewingThemeName: currentlyPreviewingThemeId ? select(external_wp_coreData_namespaceObject.store).getTheme(currentlyPreviewingThemeId)?.name?.rendered : undefined
- };
- }, []);
- const location = sidebar_navigation_screen_useLocation();
- const navigator = (0,external_wp_components_namespaceObject.__experimentalUseNavigator)();
- const icon = (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_right : chevron_left;
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- className: classnames_default()('edit-site-sidebar-navigation-screen__main', {
- 'has-footer': !!footer
- }),
- spacing: 0,
- justify: "flex-start"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- spacing: 4,
- alignment: "flex-start",
- className: "edit-site-sidebar-navigation-screen__title-icon"
- }, !isRoot && (0,external_React_.createElement)(SidebarButton, {
- onClick: () => {
- const backPath = backPathProp !== null && backPathProp !== void 0 ? backPathProp : location.state?.backPath;
- if (backPath) {
- navigator.goTo(backPath, {
- isBack: true
- });
- } else {
- navigator.goToParent();
- }
- },
- icon: icon,
- label: (0,external_wp_i18n_namespaceObject.__)('Back'),
- showTooltip: false
- }), isRoot && (0,external_React_.createElement)(SidebarButton, {
- icon: icon,
- label: dashboardLinkText || (0,external_wp_i18n_namespaceObject.__)('Go to the Dashboard'),
- href: dashboardLink || 'index.php'
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
- className: "edit-site-sidebar-navigation-screen__title",
- color: '#e0e0e0' /* $gray-200 */,
- level: 1,
- size: 20
- }, !isPreviewingTheme() ? title : (0,external_wp_i18n_namespaceObject.sprintf)('Previewing %1$s: %2$s', previewingThemeName, title)), actions && (0,external_React_.createElement)("div", {
- className: "edit-site-sidebar-navigation-screen__actions"
- }, actions)), meta && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("div", {
- className: "edit-site-sidebar-navigation-screen__meta"
- }, meta)), (0,external_React_.createElement)("div", {
- className: "edit-site-sidebar-navigation-screen__content"
- }, description && (0,external_React_.createElement)("p", {
- className: "edit-site-sidebar-navigation-screen__description"
- }, description), content)), footer && (0,external_React_.createElement)("footer", {
- className: "edit-site-sidebar-navigation-screen__footer"
- }, footer));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js
-/**
- * WordPress dependencies
- */
-
-
-/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */
-
-/**
- * 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
- * @param {import('react').ForwardedRef<HTMLElement>} ref The forwarded ref to the SVG element.
- *
- * @return {JSX.Element} Icon component
- */
-function icon_Icon({
- icon,
- size = 24,
- ...props
-}, ref) {
- return (0,external_wp_element_namespaceObject.cloneElement)(icon, {
- width: size,
- height: size,
- ...props,
- ref
- });
-}
-/* harmony default export */ const build_module_icon = ((0,external_wp_element_namespaceObject.forwardRef)(icon_Icon));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left-small.js
-
-/**
- * WordPress dependencies
- */
-
-const chevronLeftSmall = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"
-}));
-/* harmony default export */ const chevron_left_small = (chevronLeftSmall);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right-small.js
-
-/**
- * WordPress dependencies
- */
-
-const chevronRightSmall = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"
-}));
-/* harmony default export */ const chevron_right_small = (chevronRightSmall);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-item/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-function SidebarNavigationItem({
- className,
- icon,
- withChevron = false,
- suffix,
- children,
- ...props
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItem, {
- className: classnames_default()('edit-site-sidebar-navigation-item', {
- 'with-suffix': !withChevron && suffix
- }, className),
- ...props
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "flex-start"
- }, icon && (0,external_React_.createElement)(build_module_icon, {
- style: {
- fill: 'currentcolor'
- },
- icon: icon,
- size: 24
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexBlock, null, children), withChevron && (0,external_React_.createElement)(build_module_icon, {
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left_small : chevron_right_small,
- className: "edit-site-sidebar-navigation-item__drilldown-indicator",
- size: 24
- }), !withChevron && suffix));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/seen.js
-
-/**
- * WordPress dependencies
- */
-
-const seen = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"
-}));
-/* harmony default export */ const library_seen = (seen);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js
-
-/**
- * WordPress dependencies
- */
-
-const pencil = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"
-}));
-/* harmony default export */ const library_pencil = (pencil);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js
-/**
- * Internal dependencies
- */
-
-
-/* harmony default export */ const edit = (library_pencil);
-
-;// CONCATENATED MODULE: external ["wp","keycodes"]
-const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
-// EXTERNAL MODULE: ./node_modules/deepmerge/dist/cjs.js
-var cjs = __webpack_require__(66);
-var cjs_default = /*#__PURE__*/__webpack_require__.n(cjs);
-;// CONCATENATED MODULE: ./node_modules/is-plain-object/dist/is-plain-object.mjs
-/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */
-
-function isObject(o) {
- return Object.prototype.toString.call(o) === '[object Object]';
-}
-
-function isPlainObject(o) {
- var ctor,prot;
-
- if (isObject(o) === false) return false;
-
- // If has modified constructor
- ctor = o.constructor;
- if (ctor === undefined) return true;
-
- // If has modified prototype
- prot = ctor.prototype;
- if (isObject(prot) === false) return false;
-
- // If constructor does not have an Object-specific method
- if (prot.hasOwnProperty('isPrototypeOf') === false) {
- return false;
- }
-
- // Most likely a plain Object
- return true;
-}
-
-
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/global-styles-provider.js
-
-/**
- * External dependencies
- */
-
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-const {
- GlobalStylesContext: global_styles_provider_GlobalStylesContext,
- cleanEmptyObject: global_styles_provider_cleanEmptyObject
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
-function mergeBaseAndUserConfigs(base, user) {
- return cjs_default()(base, user, {
- // We only pass as arrays the presets,
- // in which case we want the new array of values
- // to override the old array (no merging).
- isMergeableObject: isPlainObject
- });
-}
-function useGlobalStylesUserConfig() {
- const {
- globalStylesId,
- isReady,
- settings,
- styles
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEditedEntityRecord,
- hasFinishedResolution
- } = select(external_wp_coreData_namespaceObject.store);
- const _globalStylesId = select(external_wp_coreData_namespaceObject.store).__experimentalGetCurrentGlobalStylesId();
- const record = _globalStylesId ? getEditedEntityRecord('root', 'globalStyles', _globalStylesId) : undefined;
- let hasResolved = false;
- if (hasFinishedResolution('__experimentalGetCurrentGlobalStylesId')) {
- hasResolved = _globalStylesId ? hasFinishedResolution('getEditedEntityRecord', ['root', 'globalStyles', _globalStylesId]) : true;
- }
- return {
- globalStylesId: _globalStylesId,
- isReady: hasResolved,
- settings: record?.settings,
- styles: record?.styles
- };
- }, []);
- const {
- getEditedEntityRecord
- } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_coreData_namespaceObject.store);
- const {
- editEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const config = (0,external_wp_element_namespaceObject.useMemo)(() => {
- return {
- settings: settings !== null && settings !== void 0 ? settings : {},
- styles: styles !== null && styles !== void 0 ? styles : {}
- };
- }, [settings, styles]);
- const setConfig = (0,external_wp_element_namespaceObject.useCallback)((callback, options = {}) => {
- var _record$styles, _record$settings;
- const record = getEditedEntityRecord('root', 'globalStyles', globalStylesId);
- const currentConfig = {
- styles: (_record$styles = record?.styles) !== null && _record$styles !== void 0 ? _record$styles : {},
- settings: (_record$settings = record?.settings) !== null && _record$settings !== void 0 ? _record$settings : {}
- };
- const updatedConfig = callback(currentConfig);
- editEntityRecord('root', 'globalStyles', globalStylesId, {
- styles: global_styles_provider_cleanEmptyObject(updatedConfig.styles) || {},
- settings: global_styles_provider_cleanEmptyObject(updatedConfig.settings) || {}
- }, options);
- }, [globalStylesId]);
- return [isReady, config, setConfig];
-}
-function useGlobalStylesBaseConfig() {
- const baseConfig = (0,external_wp_data_namespaceObject.useSelect)(select => {
- return select(external_wp_coreData_namespaceObject.store).__experimentalGetCurrentThemeBaseGlobalStyles();
- }, []);
- return [!!baseConfig, baseConfig];
-}
-function useGlobalStylesContext() {
- const [isUserConfigReady, userConfig, setUserConfig] = useGlobalStylesUserConfig();
- const [isBaseConfigReady, baseConfig] = useGlobalStylesBaseConfig();
- const mergedConfig = (0,external_wp_element_namespaceObject.useMemo)(() => {
- if (!baseConfig || !userConfig) {
- return {};
- }
- return mergeBaseAndUserConfigs(baseConfig, userConfig);
- }, [userConfig, baseConfig]);
- const context = (0,external_wp_element_namespaceObject.useMemo)(() => {
- return {
- isReady: isUserConfigReady && isBaseConfigReady,
- user: userConfig,
- base: baseConfig,
- merged: mergedConfig,
- setUserConfig
- };
- }, [mergedConfig, userConfig, baseConfig, setUserConfig, isUserConfigReady, isBaseConfigReady]);
- return context;
-}
-function GlobalStylesProvider({
- children
-}) {
- const context = useGlobalStylesContext();
- if (!context.isReady) {
- return null;
- }
- return (0,external_React_.createElement)(global_styles_provider_GlobalStylesContext.Provider, {
- value: context
- }, children);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/preview.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-const {
- useGlobalStyle: preview_useGlobalStyle,
- useGlobalStylesOutput
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
-const firstFrame = {
- start: {
- scale: 1,
- opacity: 1
- },
- hover: {
- scale: 0,
- opacity: 0
- }
-};
-const midFrame = {
- hover: {
- opacity: 1
- },
- start: {
- opacity: 0.5
- }
-};
-const secondFrame = {
- hover: {
- scale: 1,
- opacity: 1
- },
- start: {
- scale: 0,
- opacity: 0
- }
-};
-const normalizedWidth = 248;
-const normalizedHeight = 152;
-const normalizedColorSwatchSize = 32;
-
-// Throttle options for useThrottle. Must be defined outside of the component,
-// so that the object reference is the same on each render.
-const THROTTLE_OPTIONS = {
- leading: true,
- trailing: true
-};
-const StylesPreview = ({
- label,
- isFocused,
- withHoverView
-}) => {
- const [fontWeight] = preview_useGlobalStyle('typography.fontWeight');
- const [fontFamily = 'serif'] = preview_useGlobalStyle('typography.fontFamily');
- const [headingFontFamily = fontFamily] = preview_useGlobalStyle('elements.h1.typography.fontFamily');
- const [headingFontWeight = fontWeight] = preview_useGlobalStyle('elements.h1.typography.fontWeight');
- const [textColor = 'black'] = preview_useGlobalStyle('color.text');
- const [headingColor = textColor] = preview_useGlobalStyle('elements.h1.color.text');
- const [backgroundColor = 'white'] = preview_useGlobalStyle('color.background');
- const [gradientValue] = preview_useGlobalStyle('color.gradient');
- const [styles] = useGlobalStylesOutput();
- const disableMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
- const [isHovered, setIsHovered] = (0,external_wp_element_namespaceObject.useState)(false);
- const [containerResizeListener, {
- width
- }] = (0,external_wp_compose_namespaceObject.useResizeObserver)();
- const [throttledWidth, setThrottledWidthState] = (0,external_wp_element_namespaceObject.useState)(width);
- const [ratioState, setRatioState] = (0,external_wp_element_namespaceObject.useState)();
- const setThrottledWidth = (0,external_wp_compose_namespaceObject.useThrottle)(setThrottledWidthState, 250, THROTTLE_OPTIONS);
-
- // Must use useLayoutEffect to avoid a flash of the iframe at the wrong
- // size before the width is set.
- (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
- if (width) {
- setThrottledWidth(width);
- }
- }, [width, setThrottledWidth]);
-
- // Must use useLayoutEffect to avoid a flash of the iframe at the wrong
- // size before the width is set.
- (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
- const newRatio = throttledWidth ? throttledWidth / normalizedWidth : 1;
- const ratioDiff = newRatio - (ratioState || 0);
-
- // Only update the ratio state if the difference is big enough
- // or if the ratio state is not yet set. This is to avoid an
- // endless loop of updates at particular viewport heights when the
- // presence of a scrollbar causes the width to change slightly.
- const isRatioDiffBigEnough = Math.abs(ratioDiff) > 0.1;
- if (isRatioDiffBigEnough || !ratioState) {
- setRatioState(newRatio);
- }
- }, [throttledWidth, ratioState]);
-
- // Set a fallbackRatio to use before the throttled ratio has been set.
- const fallbackRatio = width ? width / normalizedWidth : 1;
- // Use the throttled ratio if it has been calculated, otherwise
- // use the fallback ratio. The throttled ratio is used to avoid
- // an endless loop of updates at particular viewport heights.
- // See: https://github.com/WordPress/gutenberg/issues/55112
- const ratio = ratioState ? ratioState : fallbackRatio;
- const {
- paletteColors,
- highlightedColors
- } = useStylesPreviewColors();
-
- // Reset leaked styles from WP common.css and remove main content layout padding and border.
- const editorStyles = (0,external_wp_element_namespaceObject.useMemo)(() => {
- if (styles) {
- return [...styles, {
- css: 'html{overflow:hidden}body{min-width: 0;padding: 0;border: none;}',
- isGlobalStyles: true
- }];
- }
- return styles;
- }, [styles]);
- const isReady = !!width;
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("div", {
- style: {
- position: 'relative'
- }
- }, containerResizeListener), isReady && (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.__unstableIframe, {
- className: "edit-site-global-styles-preview__iframe",
- style: {
- width: '100%',
- height: normalizedHeight * ratio
- },
- onMouseEnter: () => setIsHovered(true),
- onMouseLeave: () => setIsHovered(false),
- tabIndex: -1
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.__unstableEditorStyles, {
- styles: editorStyles
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- style: {
- height: normalizedHeight * ratio,
- width: '100%',
- background: gradientValue !== null && gradientValue !== void 0 ? gradientValue : backgroundColor,
- cursor: withHoverView ? 'pointer' : undefined
- },
- initial: "start",
- animate: (isHovered || isFocused) && !disableMotion && label ? 'hover' : 'start'
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- variants: firstFrame,
- style: {
- height: '100%',
- overflow: 'hidden'
- }
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- spacing: 10 * ratio,
- justify: "center",
- style: {
- height: '100%',
- overflow: 'hidden'
- }
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- style: {
- fontFamily: headingFontFamily,
- fontSize: 65 * ratio,
- color: headingColor,
- fontWeight: headingFontWeight
- },
- animate: {
- scale: 1,
- opacity: 1
- },
- initial: {
- scale: 0.1,
- opacity: 0
- },
- transition: {
- delay: 0.3,
- type: 'tween'
- }
- }, "Aa"), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 4 * ratio
- }, highlightedColors.map(({
- slug,
- color
- }, index) => (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- key: slug,
- style: {
- height: normalizedColorSwatchSize * ratio,
- width: normalizedColorSwatchSize * ratio,
- background: color,
- borderRadius: normalizedColorSwatchSize * ratio / 2
- },
- animate: {
- scale: 1,
- opacity: 1
- },
- initial: {
- scale: 0.1,
- opacity: 0
- },
- transition: {
- delay: index === 1 ? 0.2 : 0.1
- }
- }))))), (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- variants: withHoverView && midFrame,
- style: {
- height: '100%',
- width: '100%',
- position: 'absolute',
- top: 0,
- overflow: 'hidden',
- filter: 'blur(60px)',
- opacity: 0.1
- }
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- spacing: 0,
- justify: "flex-start",
- style: {
- height: '100%',
- overflow: 'hidden'
- }
- }, paletteColors.slice(0, 4).map(({
- color
- }, index) => (0,external_React_.createElement)("div", {
- key: index,
- style: {
- height: '100%',
- background: color,
- flexGrow: 1
- }
- })))), (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- variants: secondFrame,
- style: {
- height: '100%',
- width: '100%',
- overflow: 'hidden',
- position: 'absolute',
- top: 0
- }
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 3 * ratio,
- justify: "center",
- style: {
- height: '100%',
- overflow: 'hidden',
- padding: 10 * ratio,
- boxSizing: 'border-box'
- }
- }, label && (0,external_React_.createElement)("div", {
- style: {
- fontSize: 40 * ratio,
- fontFamily: headingFontFamily,
- color: headingColor,
- fontWeight: headingFontWeight,
- lineHeight: '1em',
- textAlign: 'center'
- }
- }, label))))));
-};
-/* harmony default export */ const preview = (StylesPreview);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/style-variations-container.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-const {
- GlobalStylesContext: style_variations_container_GlobalStylesContext,
- areGlobalStyleConfigsEqual
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
-function Variation({
- variation
-}) {
- const [isFocused, setIsFocused] = (0,external_wp_element_namespaceObject.useState)(false);
- const {
- base,
- user,
- setUserConfig
- } = (0,external_wp_element_namespaceObject.useContext)(style_variations_container_GlobalStylesContext);
- const context = (0,external_wp_element_namespaceObject.useMemo)(() => {
- var _variation$settings, _variation$styles;
- return {
- user: {
- settings: (_variation$settings = variation.settings) !== null && _variation$settings !== void 0 ? _variation$settings : {},
- styles: (_variation$styles = variation.styles) !== null && _variation$styles !== void 0 ? _variation$styles : {}
- },
- base,
- merged: mergeBaseAndUserConfigs(base, variation),
- setUserConfig: () => {}
- };
- }, [variation, base]);
- const selectVariation = () => {
- setUserConfig(() => {
- return {
- settings: variation.settings,
- styles: variation.styles
- };
- });
- };
- const selectOnEnter = event => {
- if (event.keyCode === external_wp_keycodes_namespaceObject.ENTER) {
- event.preventDefault();
- selectVariation();
- }
- };
- const isActive = (0,external_wp_element_namespaceObject.useMemo)(() => {
- return areGlobalStyleConfigsEqual(user, variation);
- }, [user, variation]);
- let label = variation?.title;
- if (variation?.description) {
- label = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %1$s: variation title. %2$s variation description. */
- (0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), variation?.title, variation?.description);
- }
- return (0,external_React_.createElement)(style_variations_container_GlobalStylesContext.Provider, {
- value: context
- }, (0,external_React_.createElement)("div", {
- className: classnames_default()('edit-site-global-styles-variations_item', {
- 'is-active': isActive
- }),
- role: "button",
- onClick: selectVariation,
- onKeyDown: selectOnEnter,
- tabIndex: "0",
- "aria-label": label,
- "aria-current": isActive,
- onFocus: () => setIsFocused(true),
- onBlur: () => setIsFocused(false)
- }, (0,external_React_.createElement)("div", {
- className: "edit-site-global-styles-variations_item-preview"
- }, (0,external_React_.createElement)(preview, {
- label: variation?.title,
- isFocused: isFocused,
- withHoverView: true
- }))));
-}
-function StyleVariationsContainer() {
- const variations = (0,external_wp_data_namespaceObject.useSelect)(select => {
- return select(external_wp_coreData_namespaceObject.store).__experimentalGetCurrentThemeGlobalStylesVariations();
- }, []);
- const withEmptyVariation = (0,external_wp_element_namespaceObject.useMemo)(() => {
- return [{
- title: (0,external_wp_i18n_namespaceObject.__)('Default'),
- settings: {},
- styles: {}
- }, ...(variations !== null && variations !== void 0 ? variations : []).map(variation => {
- var _variation$settings2, _variation$styles2;
- return {
- ...variation,
- settings: (_variation$settings2 = variation.settings) !== null && _variation$settings2 !== void 0 ? _variation$settings2 : {},
- styles: (_variation$styles2 = variation.styles) !== null && _variation$styles2 !== void 0 ? _variation$styles2 : {}
- };
- })];
- }, [variations]);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalGrid, {
- columns: 2,
- className: "edit-site-global-styles-style-variations-container"
- }, withEmptyVariation.map((variation, index) => (0,external_React_.createElement)(Variation, {
- key: index,
- variation: variation
- })));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/block-editor/resize-handle.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-const DELTA_DISTANCE = 20; // The distance to resize per keydown in pixels.
-
-function ResizeHandle({
- variation = 'default',
- direction,
- resizeWidthBy
-}) {
- function handleKeyDown(event) {
- const {
- keyCode
- } = event;
- if (direction === 'left' && keyCode === external_wp_keycodes_namespaceObject.LEFT || direction === 'right' && keyCode === external_wp_keycodes_namespaceObject.RIGHT) {
- resizeWidthBy(DELTA_DISTANCE);
- } else if (direction === 'left' && keyCode === external_wp_keycodes_namespaceObject.RIGHT || direction === 'right' && keyCode === external_wp_keycodes_namespaceObject.LEFT) {
- resizeWidthBy(-DELTA_DISTANCE);
- }
- }
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("button", {
- className: `resizable-editor__drag-handle is-${direction} is-variation-${variation}`,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Drag to resize'),
- "aria-describedby": `resizable-editor__resize-help-${direction}`,
- onKeyDown: handleKeyDown,
- type: "button"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- id: `resizable-editor__resize-help-${direction}`
- }, (0,external_wp_i18n_namespaceObject.__)('Use left and right arrow keys to resize the canvas.')));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/block-editor/resizable-editor.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-
-// Removes the inline styles in the drag handles.
-const HANDLE_STYLES_OVERRIDE = {
- position: undefined,
- userSelect: undefined,
- cursor: undefined,
- width: undefined,
- height: undefined,
- top: undefined,
- right: undefined,
- bottom: undefined,
- left: undefined
-};
-function ResizableEditor({
- enableResizing,
- height,
- children
-}) {
- const [width, setWidth] = (0,external_wp_element_namespaceObject.useState)('100%');
- const resizableRef = (0,external_wp_element_namespaceObject.useRef)();
- const resizeWidthBy = (0,external_wp_element_namespaceObject.useCallback)(deltaPixels => {
- if (resizableRef.current) {
- setWidth(resizableRef.current.offsetWidth + deltaPixels);
- }
- }, []);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ResizableBox, {
- ref: api => {
- resizableRef.current = api?.resizable;
- },
- size: {
- width: enableResizing ? width : '100%',
- height: enableResizing && height ? height : '100%'
- },
- onResizeStop: (event, direction, element) => {
- setWidth(element.style.width);
- },
- minWidth: 300,
- maxWidth: "100%",
- maxHeight: "100%",
- enable: {
- left: enableResizing,
- right: enableResizing
- },
- showHandle: enableResizing
- // The editor is centered horizontally, resizing it only
- // moves half the distance. Hence double the ratio to correctly
- // align the cursor to the resizer handle.
- ,
- resizeRatio: 2,
- handleComponent: {
- left: (0,external_React_.createElement)(ResizeHandle, {
- direction: "left",
- resizeWidthBy: resizeWidthBy
- }),
- right: (0,external_React_.createElement)(ResizeHandle, {
- direction: "right",
- resizeWidthBy: resizeWidthBy
- })
- },
- handleClasses: undefined,
- handleStyles: {
- left: HANDLE_STYLES_OVERRIDE,
- right: HANDLE_STYLES_OVERRIDE
- }
- }, children);
-}
-/* harmony default export */ const resizable_editor = (ResizableEditor);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/editor-canvas-container/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-/**
- * Returns a translated string for the title of the editor canvas container.
- *
- * @param {string} view Editor canvas container view.
- *
- * @return {string} Translated string corresponding to value of view. Default is ''.
- */
-function getEditorCanvasContainerTitle(view) {
- switch (view) {
- case 'style-book':
- return (0,external_wp_i18n_namespaceObject.__)('Style Book');
- case 'global-styles-revisions':
- case 'global-styles-revisions:style-book':
- return (0,external_wp_i18n_namespaceObject.__)('Style Revisions');
- default:
- return '';
- }
-}
-
-// Creates a private slot fill.
-const {
- createPrivateSlotFill
-} = unlock(external_wp_components_namespaceObject.privateApis);
-const SLOT_FILL_NAME = 'EditSiteEditorCanvasContainerSlot';
-const {
- privateKey,
- Slot: EditorCanvasContainerSlot,
- Fill: EditorCanvasContainerFill
-} = createPrivateSlotFill(SLOT_FILL_NAME);
-function EditorCanvasContainer({
- children,
- closeButtonLabel,
- onClose,
- enableResizing = false
-}) {
- const {
- editorCanvasContainerView,
- showListViewByDefault
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const _editorCanvasContainerView = unlock(select(store_store)).getEditorCanvasContainerView();
- const _showListViewByDefault = select(external_wp_preferences_namespaceObject.store).get('core', 'showListViewByDefault');
- return {
- editorCanvasContainerView: _editorCanvasContainerView,
- showListViewByDefault: _showListViewByDefault
- };
- }, []);
- const [isClosed, setIsClosed] = (0,external_wp_element_namespaceObject.useState)(false);
- const {
- setEditorCanvasContainerView
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
- const {
- setIsListViewOpened
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_editor_namespaceObject.store);
- const focusOnMountRef = (0,external_wp_compose_namespaceObject.useFocusOnMount)('firstElement');
- const sectionFocusReturnRef = (0,external_wp_compose_namespaceObject.useFocusReturn)();
- const title = (0,external_wp_element_namespaceObject.useMemo)(() => getEditorCanvasContainerTitle(editorCanvasContainerView), [editorCanvasContainerView]);
- function onCloseContainer() {
- setIsListViewOpened(showListViewByDefault);
- setEditorCanvasContainerView(undefined);
- setIsClosed(true);
- if (typeof onClose === 'function') {
- onClose();
- }
- }
- function closeOnEscape(event) {
- if (event.keyCode === external_wp_keycodes_namespaceObject.ESCAPE && !event.defaultPrevented) {
- event.preventDefault();
- onCloseContainer();
- }
- }
- const childrenWithProps = Array.isArray(children) ? external_wp_element_namespaceObject.Children.map(children, (child, index) => index === 0 ? (0,external_wp_element_namespaceObject.cloneElement)(child, {
- ref: sectionFocusReturnRef
- }) : child) : (0,external_wp_element_namespaceObject.cloneElement)(children, {
- ref: sectionFocusReturnRef
- });
- if (isClosed) {
- return null;
- }
- const shouldShowCloseButton = onClose || closeButtonLabel;
- return (0,external_React_.createElement)(EditorCanvasContainerFill, null, (0,external_React_.createElement)(resizable_editor, {
- enableResizing: enableResizing
- }, (0,external_React_.createElement)("section", {
- className: "edit-site-editor-canvas-container",
- ref: shouldShowCloseButton ? focusOnMountRef : null,
- onKeyDown: closeOnEscape,
- "aria-label": title
- }, shouldShowCloseButton && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "edit-site-editor-canvas-container__close-button",
- icon: close_small,
- label: closeButtonLabel || (0,external_wp_i18n_namespaceObject.__)('Close'),
- onClick: onCloseContainer,
- showTooltip: false
- }), childrenWithProps)));
-}
-function useHasEditorCanvasContainer() {
- const fills = (0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(privateKey);
- return !!fills?.length;
-}
-EditorCanvasContainer.Slot = EditorCanvasContainerSlot;
-/* harmony default export */ const editor_canvas_container = (EditorCanvasContainer);
-
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/style-book/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-const {
- ExperimentalBlockEditorProvider,
- useGlobalStyle: style_book_useGlobalStyle,
- GlobalStylesContext: style_book_GlobalStylesContext,
- useGlobalStylesOutputWithConfig
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
-const {
- CompositeV2: Composite,
- CompositeItemV2: CompositeItem,
- useCompositeStoreV2: useCompositeStore,
- Tabs
-} = unlock(external_wp_components_namespaceObject.privateApis);
-
-// The content area of the Style Book is rendered within an iframe so that global styles
-// are applied to elements within the entire content area. To support elements that are
-// not part of the block previews, such as headings and layout for the block previews,
-// additional CSS rules need to be passed into the iframe. These are hard-coded below.
-// Note that button styles are unset, and then focus rules from the `Button` component are
-// applied to the `button` element, targeted via `.edit-site-style-book__example`.
-// This is to ensure that browser default styles for buttons are not applied to the previews.
-const STYLE_BOOK_IFRAME_STYLES = `
- .edit-site-style-book__examples {
- max-width: 900px;
- margin: 0 auto;
- }
-
- .edit-site-style-book__example {
- border-radius: 2px;
- cursor: pointer;
- display: flex;
- flex-direction: column;
- gap: 40px;
- margin-bottom: 40px;
- padding: 16px;
- width: 100%;
- box-sizing: border-box;
- scroll-margin-top: 32px;
- scroll-margin-bottom: 32px;
- }
-
- .edit-site-style-book__example.is-selected {
- box-shadow: 0 0 0 1px var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
- }
-
- .edit-site-style-book__example:focus:not(:disabled) {
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
- outline: 3px solid transparent;
- }
-
- .edit-site-style-book__examples.is-wide .edit-site-style-book__example {
- flex-direction: row;
- }
-
- .edit-site-style-book__example-title {
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
- font-size: 11px;
- font-weight: 500;
- line-height: normal;
- margin: 0;
- text-align: left;
- text-transform: uppercase;
- }
-
- .edit-site-style-book__examples.is-wide .edit-site-style-book__example-title {
- text-align: right;
- width: 120px;
- }
-
- .edit-site-style-book__example-preview {
- width: 100%;
- }
-
- .edit-site-style-book__example-preview .block-editor-block-list__insertion-point,
- .edit-site-style-book__example-preview .block-list-appender {
- display: none;
- }
-
- .edit-site-style-book__example-preview .is-root-container > .wp-block:first-child {
- margin-top: 0;
- }
- .edit-site-style-book__example-preview .is-root-container > .wp-block:last-child {
- margin-bottom: 0;
- }
-`;
-function isObjectEmpty(object) {
- return !object || Object.keys(object).length === 0;
-}
-function getExamples() {
- // Use our own example for the Heading block so that we can show multiple
- // heading levels.
- const headingsExample = {
- name: 'core/heading',
- title: (0,external_wp_i18n_namespaceObject.__)('Headings'),
- category: 'text',
- blocks: [(0,external_wp_blocks_namespaceObject.createBlock)('core/heading', {
- content: (0,external_wp_i18n_namespaceObject.__)('Code Is Poetry'),
- level: 1
- }), (0,external_wp_blocks_namespaceObject.createBlock)('core/heading', {
- content: (0,external_wp_i18n_namespaceObject.__)('Code Is Poetry'),
- level: 2
- }), (0,external_wp_blocks_namespaceObject.createBlock)('core/heading', {
- content: (0,external_wp_i18n_namespaceObject.__)('Code Is Poetry'),
- level: 3
- }), (0,external_wp_blocks_namespaceObject.createBlock)('core/heading', {
- content: (0,external_wp_i18n_namespaceObject.__)('Code Is Poetry'),
- level: 4
- }), (0,external_wp_blocks_namespaceObject.createBlock)('core/heading', {
- content: (0,external_wp_i18n_namespaceObject.__)('Code Is Poetry'),
- level: 5
- })]
- };
- const otherExamples = (0,external_wp_blocks_namespaceObject.getBlockTypes)().filter(blockType => {
- const {
- name,
- example,
- supports
- } = blockType;
- return name !== 'core/heading' && !!example && supports.inserter !== false;
- }).map(blockType => ({
- name: blockType.name,
- title: blockType.title,
- category: blockType.category,
- blocks: (0,external_wp_blocks_namespaceObject.getBlockFromExample)(blockType.name, blockType.example)
- }));
- return [headingsExample, ...otherExamples];
-}
-function StyleBook({
- enableResizing = true,
- isSelected,
- onClick,
- onSelect,
- showCloseButton = true,
- onClose,
- showTabs = true,
- userConfig = {}
-}) {
- const [resizeObserver, sizes] = (0,external_wp_compose_namespaceObject.useResizeObserver)();
- const [textColor] = style_book_useGlobalStyle('color.text');
- const [backgroundColor] = style_book_useGlobalStyle('color.background');
- const examples = (0,external_wp_element_namespaceObject.useMemo)(getExamples, []);
- const tabs = (0,external_wp_element_namespaceObject.useMemo)(() => (0,external_wp_blocks_namespaceObject.getCategories)().filter(category => examples.some(example => example.category === category.slug)).map(category => ({
- name: category.slug,
- title: category.title,
- icon: category.icon
- })), [examples]);
- const {
- base: baseConfig
- } = (0,external_wp_element_namespaceObject.useContext)(style_book_GlobalStylesContext);
- const mergedConfig = (0,external_wp_element_namespaceObject.useMemo)(() => {
- if (!isObjectEmpty(userConfig) && !isObjectEmpty(baseConfig)) {
- return mergeBaseAndUserConfigs(baseConfig, userConfig);
- }
- return {};
- }, [baseConfig, userConfig]);
-
- // Copied from packages/edit-site/src/components/revisions/index.js
- // could we create a shared hook?
- const originalSettings = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).getSettings(), []);
- const settings = (0,external_wp_element_namespaceObject.useMemo)(() => ({
- ...originalSettings,
- __unstableIsPreviewMode: true
- }), [originalSettings]);
- const [globalStyles] = useGlobalStylesOutputWithConfig(mergedConfig);
- settings.styles = !isObjectEmpty(globalStyles) && !isObjectEmpty(userConfig) ? globalStyles : settings.styles;
- return (0,external_React_.createElement)(editor_canvas_container, {
- onClose: onClose,
- enableResizing: enableResizing,
- closeButtonLabel: showCloseButton ? (0,external_wp_i18n_namespaceObject.__)('Close Style Book') : null
- }, (0,external_React_.createElement)("div", {
- className: classnames_default()('edit-site-style-book', {
- 'is-wide': sizes.width > 600,
- 'is-button': !!onClick
- }),
- style: {
- color: textColor,
- background: backgroundColor
- }
- }, resizeObserver, showTabs ? (0,external_React_.createElement)("div", {
- className: "edit-site-style-book__tabs"
- }, (0,external_React_.createElement)(Tabs, null, (0,external_React_.createElement)(Tabs.TabList, null, tabs.map(tab => (0,external_React_.createElement)(Tabs.Tab, {
- tabId: tab.name,
- key: tab.name
- }, tab.title))), tabs.map(tab => (0,external_React_.createElement)(Tabs.TabPanel, {
- key: tab.name,
- tabId: tab.name,
- focusable: false
- }, (0,external_React_.createElement)(StyleBookBody, {
- category: tab.name,
- examples: examples,
- isSelected: isSelected,
- onSelect: onSelect,
- settings: settings,
- sizes: sizes,
- title: tab.title
- }))))) : (0,external_React_.createElement)(StyleBookBody, {
- examples: examples,
- isSelected: isSelected,
- onClick: onClick,
- onSelect: onSelect,
- settings: settings,
- sizes: sizes
- })));
-}
-const StyleBookBody = ({
- category,
- examples,
- isSelected,
- onClick,
- onSelect,
- settings,
- sizes,
- title
-}) => {
- const [isFocused, setIsFocused] = (0,external_wp_element_namespaceObject.useState)(false);
-
- // The presence of an `onClick` prop indicates that the Style Book is being used as a button.
- // In this case, add additional props to the iframe to make it behave like a button.
- const buttonModeProps = {
- role: 'button',
- onFocus: () => setIsFocused(true),
- onBlur: () => setIsFocused(false),
- onKeyDown: event => {
- if (event.defaultPrevented) {
- return;
- }
- const {
- keyCode
- } = event;
- if (onClick && (keyCode === external_wp_keycodes_namespaceObject.ENTER || keyCode === external_wp_keycodes_namespaceObject.SPACE)) {
- event.preventDefault();
- onClick(event);
- }
- },
- onClick: event => {
- if (event.defaultPrevented) {
- return;
- }
- if (onClick) {
- event.preventDefault();
- onClick(event);
- }
- },
- readonly: true
- };
- const buttonModeStyles = onClick ? 'body { cursor: pointer; } body * { pointer-events: none; }' : '';
- return (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.__unstableIframe, {
- className: classnames_default()('edit-site-style-book__iframe', {
- 'is-focused': isFocused && !!onClick,
- 'is-button': !!onClick
- }),
- name: "style-book-canvas",
- tabIndex: 0,
- ...(onClick ? buttonModeProps : {})
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.__unstableEditorStyles, {
- styles: settings.styles
- }), (0,external_React_.createElement)("style", null,
- // Forming a "block formatting context" to prevent margin collapsing.
- // @see https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Block_formatting_context
- `.is-root-container { display: flow-root; }
- body { position: relative; padding: 32px !important; }` + STYLE_BOOK_IFRAME_STYLES + buttonModeStyles), (0,external_React_.createElement)(Examples, {
- className: classnames_default()('edit-site-style-book__examples', {
- 'is-wide': sizes.width > 600
- }),
- examples: examples,
- category: category,
- label: title ? (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Category of blocks, e.g. Text.
- (0,external_wp_i18n_namespaceObject.__)('Examples of blocks in the %s category'), title) : (0,external_wp_i18n_namespaceObject.__)('Examples of blocks'),
- isSelected: isSelected,
- onSelect: onSelect,
- key: category
- }));
-};
-const Examples = (0,external_wp_element_namespaceObject.memo)(({
- className,
- examples,
- category,
- label,
- isSelected,
- onSelect
-}) => {
- const compositeStore = useCompositeStore({
- orientation: 'vertical'
- });
- return (0,external_React_.createElement)(Composite, {
- store: compositeStore,
- className: className,
- "aria-label": label,
- role: "grid"
- }, examples.filter(example => category ? example.category === category : true).map(example => (0,external_React_.createElement)(Example, {
- key: example.name,
- id: `example-${example.name}`,
- title: example.title,
- blocks: example.blocks,
- isSelected: isSelected(example.name),
- onClick: () => {
- onSelect?.(example.name);
- }
- })));
-});
-const Example = ({
- id,
- title,
- blocks,
- isSelected,
- onClick
-}) => {
- const originalSettings = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).getSettings(), []);
- const settings = (0,external_wp_element_namespaceObject.useMemo)(() => ({
- ...originalSettings,
- focusMode: false,
- // Disable "Spotlight mode".
- __unstableIsPreviewMode: true
- }), [originalSettings]);
-
- // Cache the list of blocks to avoid additional processing when the component is re-rendered.
- const renderedBlocks = (0,external_wp_element_namespaceObject.useMemo)(() => Array.isArray(blocks) ? blocks : [blocks], [blocks]);
- return (0,external_React_.createElement)("div", {
- role: "row"
- }, (0,external_React_.createElement)("div", {
- role: "gridcell"
- }, (0,external_React_.createElement)(CompositeItem, {
- className: classnames_default()('edit-site-style-book__example', {
- 'is-selected': isSelected
- }),
- id: id,
- "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Title of a block, e.g. Heading.
- (0,external_wp_i18n_namespaceObject.__)('Open %s styles in Styles panel'), title),
- render: (0,external_React_.createElement)("div", null),
- role: "button",
- onClick: onClick
- }, (0,external_React_.createElement)("span", {
- className: "edit-site-style-book__example-title"
- }, title), (0,external_React_.createElement)("div", {
- className: "edit-site-style-book__example-preview",
- "aria-hidden": true
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Disabled, {
- className: "edit-site-style-book__example-preview__content"
- }, (0,external_React_.createElement)(ExperimentalBlockEditorProvider, {
- value: renderedBlocks,
- settings: settings
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockList, {
- renderAppender: false
- })))))));
-};
-/* harmony default export */ const style_book = (StyleBook);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-revisions/use-global-styles-revisions.js
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-const SITE_EDITOR_AUTHORS_QUERY = {
- per_page: -1,
- _fields: 'id,name,avatar_urls',
- context: 'view',
- capabilities: ['edit_theme_options']
-};
-const DEFAULT_QUERY = {
- per_page: 100,
- page: 1
-};
-const use_global_styles_revisions_EMPTY_ARRAY = [];
-const {
- GlobalStylesContext: use_global_styles_revisions_GlobalStylesContext
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
-function useGlobalStylesRevisions({
- query
-} = {}) {
- const {
- user: userConfig
- } = (0,external_wp_element_namespaceObject.useContext)(use_global_styles_revisions_GlobalStylesContext);
- const _query = {
- ...DEFAULT_QUERY,
- ...query
- };
- const {
- authors,
- currentUser,
- isDirty,
- revisions,
- isLoadingGlobalStylesRevisions,
- revisionsCount
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- var _globalStyles$_links$;
- const {
- __experimentalGetDirtyEntityRecords,
- getCurrentUser,
- getUsers,
- getRevisions,
- __experimentalGetCurrentGlobalStylesId,
- getEntityRecord,
- isResolving
- } = select(external_wp_coreData_namespaceObject.store);
- const dirtyEntityRecords = __experimentalGetDirtyEntityRecords();
- const _currentUser = getCurrentUser();
- const _isDirty = dirtyEntityRecords.length > 0;
- const globalStylesId = __experimentalGetCurrentGlobalStylesId();
- const globalStyles = globalStylesId ? getEntityRecord('root', 'globalStyles', globalStylesId) : undefined;
- const _revisionsCount = (_globalStyles$_links$ = globalStyles?._links?.['version-history']?.[0]?.count) !== null && _globalStyles$_links$ !== void 0 ? _globalStyles$_links$ : 0;
- const globalStylesRevisions = getRevisions('root', 'globalStyles', globalStylesId, _query) || use_global_styles_revisions_EMPTY_ARRAY;
- const _authors = getUsers(SITE_EDITOR_AUTHORS_QUERY) || use_global_styles_revisions_EMPTY_ARRAY;
- const _isResolving = isResolving('getRevisions', ['root', 'globalStyles', globalStylesId, _query]);
- return {
- authors: _authors,
- currentUser: _currentUser,
- isDirty: _isDirty,
- revisions: globalStylesRevisions,
- isLoadingGlobalStylesRevisions: _isResolving,
- revisionsCount: _revisionsCount
- };
- }, [query]);
- return (0,external_wp_element_namespaceObject.useMemo)(() => {
- if (!authors.length || isLoadingGlobalStylesRevisions) {
- return {
- revisions: use_global_styles_revisions_EMPTY_ARRAY,
- hasUnsavedChanges: isDirty,
- isLoading: true,
- revisionsCount
- };
- }
-
- // Adds author details to each revision.
- const _modifiedRevisions = revisions.map(revision => {
- return {
- ...revision,
- author: authors.find(author => author.id === revision.author)
- };
- });
- const fetchedRevisionsCount = revisions.length;
- if (fetchedRevisionsCount) {
- // Flags the most current saved revision.
- if (_modifiedRevisions[0].id !== 'unsaved' && _query.page === 1) {
- _modifiedRevisions[0].isLatest = true;
- }
-
- // Adds an item for unsaved changes.
- if (isDirty && userConfig && Object.keys(userConfig).length > 0 && currentUser && _query.page === 1) {
- const unsavedRevision = {
- id: 'unsaved',
- styles: userConfig?.styles,
- settings: userConfig?.settings,
- author: {
- name: currentUser?.name,
- avatar_urls: currentUser?.avatar_urls
- },
- modified: new Date()
- };
- _modifiedRevisions.unshift(unsavedRevision);
- }
- if (_query.page === Math.ceil(revisionsCount / _query.per_page)) {
- // Adds an item for the default theme styles.
- _modifiedRevisions.push({
- id: 'parent',
- styles: {},
- settings: {}
- });
- }
- }
- return {
- revisions: _modifiedRevisions,
- hasUnsavedChanges: isDirty,
- isLoading: false,
- revisionsCount
- };
- }, [isDirty, revisions, currentUser, authors, userConfig, isLoadingGlobalStylesRevisions]);
-}
-
-;// CONCATENATED MODULE: external ["wp","date"]
-const external_wp_date_namespaceObject = window["wp"]["date"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/backup.js
-
-/**
- * WordPress dependencies
- */
-
-const backup = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"
-}));
-/* harmony default export */ const library_backup = (backup);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js
-
-/**
- * WordPress dependencies
- */
-
-function SidebarNavigationScreenDetailsPanelLabel({
- children
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- className: "edit-site-sidebar-navigation-details-screen-panel__label"
- }, children);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-function SidebarNavigationScreenDetailsPanelRow({
- label,
- children,
- className,
- ...extraProps
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- key: label,
- spacing: 5,
- alignment: "left",
- className: classnames_default()('edit-site-sidebar-navigation-details-screen-panel__row', className),
- ...extraProps
- }, children);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js
-
-/**
- * WordPress dependencies
- */
-
-function SidebarNavigationScreenDetailsPanelValue({
- children
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- className: "edit-site-sidebar-navigation-details-screen-panel__value"
- }, children);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-details-panel/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-/**
- * Internal dependencies
- */
-
-
-
-function SidebarNavigationScreenDetailsPanel({
- title,
- children,
- spacing
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- className: "edit-site-sidebar-navigation-details-screen-panel",
- spacing: spacing
- }, title && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
- className: "edit-site-sidebar-navigation-details-screen-panel__heading",
- level: 2
- }, title), children);
-}
-
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-details-footer/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-function SidebarNavigationScreenDetailsFooter({
- record,
- ...otherProps
-}) {
- /*
- * There might be other items in the future,
- * but for now it's just modified date.
- * Later we might render a list of items and isolate
- * the following logic.
- */
- const hrefProps = {};
- if (record?._links?.['predecessor-version']?.[0]?.id) {
- hrefProps.href = (0,external_wp_url_namespaceObject.addQueryArgs)('revision.php', {
- revision: record?._links['predecessor-version'][0].id
- });
- hrefProps.as = 'a';
- }
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, {
- className: "edit-site-sidebar-navigation-screen-details-footer"
- }, (0,external_React_.createElement)(SidebarNavigationItem, {
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Revisions'),
- ...hrefProps,
- ...otherProps
- }, (0,external_React_.createElement)(SidebarNavigationScreenDetailsPanelRow, {
- justify: "space-between"
- }, (0,external_React_.createElement)(SidebarNavigationScreenDetailsPanelLabel, null, (0,external_wp_i18n_namespaceObject.__)('Last modified')), (0,external_React_.createElement)(SidebarNavigationScreenDetailsPanelValue, null, (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: is the relative time when the post was last modified. */
- (0,external_wp_i18n_namespaceObject.__)('<time>%s</time>'), (0,external_wp_date_namespaceObject.humanTimeDiff)(record.modified)), {
- time: (0,external_React_.createElement)("time", {
- dateTime: record.modified
- })
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- className: "edit-site-sidebar-navigation-screen-details-footer__icon",
- icon: library_backup
- }))));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-global-styles/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-
-
-
-const sidebar_navigation_screen_global_styles_noop = () => {};
-function SidebarNavigationItemGlobalStyles(props) {
- const {
- openGeneralSidebar
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const {
- setCanvasMode
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
- const hasGlobalStyleVariations = (0,external_wp_data_namespaceObject.useSelect)(select => !!select(external_wp_coreData_namespaceObject.store).__experimentalGetCurrentThemeGlobalStylesVariations()?.length, []);
- if (hasGlobalStyleVariations) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorButton, {
- ...props,
- as: SidebarNavigationItem,
- path: "/wp_global_styles"
- });
- }
- return (0,external_React_.createElement)(SidebarNavigationItem, {
- ...props,
- onClick: () => {
- // Switch to edit mode.
- setCanvasMode('edit');
- // Open global styles sidebar.
- openGeneralSidebar('edit-site/global-styles');
- }
- });
-}
-function SidebarNavigationScreenGlobalStylesContent() {
- const {
- storedSettings
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getSettings
- } = unlock(select(store_store));
- return {
- storedSettings: getSettings()
- };
- }, []);
-
- // Wrap in a BlockEditorProvider to ensure that the Iframe's dependencies are
- // loaded. This is necessary because the Iframe component waits until
- // the block editor store's `__internalIsInitialized` is true before
- // rendering the iframe. Without this, the iframe previews will not render
- // in mobile viewport sizes, where the editor canvas is hidden.
- return (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockEditorProvider, {
- settings: storedSettings,
- onChange: sidebar_navigation_screen_global_styles_noop,
- onInput: sidebar_navigation_screen_global_styles_noop
- }, (0,external_React_.createElement)(StyleVariationsContainer, null));
-}
-function SidebarNavigationScreenGlobalStyles() {
- const {
- revisions,
- isLoading: isLoadingRevisions
- } = useGlobalStylesRevisions();
- const {
- openGeneralSidebar
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const {
- setIsListViewOpened
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_editor_namespaceObject.store);
- const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
- const {
- setCanvasMode,
- setEditorCanvasContainerView
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
- const {
- isViewMode,
- isStyleBookOpened,
- revisionsCount
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- var _globalStyles$_links$;
- const {
- getCanvasMode,
- getEditorCanvasContainerView
- } = unlock(select(store_store));
- const {
- getEntityRecord,
- __experimentalGetCurrentGlobalStylesId
- } = select(external_wp_coreData_namespaceObject.store);
- const globalStylesId = __experimentalGetCurrentGlobalStylesId();
- const globalStyles = globalStylesId ? getEntityRecord('root', 'globalStyles', globalStylesId) : undefined;
- return {
- isViewMode: 'view' === getCanvasMode(),
- isStyleBookOpened: 'style-book' === getEditorCanvasContainerView(),
- revisionsCount: (_globalStyles$_links$ = globalStyles?._links?.['version-history']?.[0]?.count) !== null && _globalStyles$_links$ !== void 0 ? _globalStyles$_links$ : 0
- };
- }, []);
- const openGlobalStyles = (0,external_wp_element_namespaceObject.useCallback)(async () => {
- return Promise.all([setCanvasMode('edit'), openGeneralSidebar('edit-site/global-styles')]);
- }, [setCanvasMode, openGeneralSidebar]);
- const openStyleBook = (0,external_wp_element_namespaceObject.useCallback)(async () => {
- await openGlobalStyles();
- // Open the Style Book once the canvas mode is set to edit,
- // and the global styles sidebar is open. This ensures that
- // the Style Book is not prematurely closed.
- setEditorCanvasContainerView('style-book');
- setIsListViewOpened(false);
- }, [openGlobalStyles, setEditorCanvasContainerView, setIsListViewOpened]);
- const openRevisions = (0,external_wp_element_namespaceObject.useCallback)(async () => {
- await openGlobalStyles();
- // Open the global styles revisions once the canvas mode is set to edit,
- // and the global styles sidebar is open. The global styles UI is responsible
- // for redirecting to the revisions screen once the editor canvas container
- // has been set to 'global-styles-revisions'.
- setEditorCanvasContainerView('global-styles-revisions');
- }, [openGlobalStyles, setEditorCanvasContainerView]);
-
- // If there are no revisions, do not render a footer.
- const hasRevisions = revisionsCount > 0;
- const modifiedDateTime = revisions?.[0]?.modified;
- const shouldShowGlobalStylesFooter = hasRevisions && !isLoadingRevisions && modifiedDateTime;
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(SidebarNavigationScreen, {
- title: (0,external_wp_i18n_namespaceObject.__)('Styles'),
- description: (0,external_wp_i18n_namespaceObject.__)('Choose a different style combination for the theme styles.'),
- content: (0,external_React_.createElement)(SidebarNavigationScreenGlobalStylesContent, null),
- footer: shouldShowGlobalStylesFooter && (0,external_React_.createElement)(SidebarNavigationScreenDetailsFooter, {
- record: revisions?.[0],
- onClick: openRevisions
- }),
- actions: (0,external_React_.createElement)(external_React_.Fragment, null, !isMobileViewport && (0,external_React_.createElement)(SidebarButton, {
- icon: library_seen,
- label: (0,external_wp_i18n_namespaceObject.__)('Style Book'),
- onClick: () => setEditorCanvasContainerView(!isStyleBookOpened ? 'style-book' : undefined),
- isPressed: isStyleBookOpened
- }), (0,external_React_.createElement)(SidebarButton, {
- icon: edit,
- label: (0,external_wp_i18n_namespaceObject.__)('Edit styles'),
- onClick: async () => await openGlobalStyles()
- }))
- }), isStyleBookOpened && !isMobileViewport && isViewMode && (0,external_React_.createElement)(style_book, {
- enableResizing: false,
- isSelected: () => false,
- onClick: openStyleBook,
- onSelect: openStyleBook,
- showCloseButton: false,
- showTabs: false
- }));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-main/template-part-hint.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-const PREFERENCE_NAME = 'isTemplatePartMoveHintVisible';
-function TemplatePartHint() {
- const showTemplatePartHint = (0,external_wp_data_namespaceObject.useSelect)(select => {
- var _select$get;
- return (_select$get = select(external_wp_preferences_namespaceObject.store).get('core', PREFERENCE_NAME)) !== null && _select$get !== void 0 ? _select$get : true;
- }, []);
- const {
- set: setPreference
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
- if (!showTemplatePartHint) {
- return null;
- }
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Notice, {
- politeness: "polite",
- className: "edit-site-sidebar__notice",
- onRemove: () => {
- setPreference('core', PREFERENCE_NAME, false);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Looking for template parts? Find them in "Patterns".'));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-main/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-function SidebarNavigationScreenMain() {
- const {
- location
- } = (0,external_wp_components_namespaceObject.__experimentalUseNavigator)();
- const {
- setEditorCanvasContainerView
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
-
- // Clear the editor canvas container view when accessing the main navigation screen.
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (location?.path === '/') {
- setEditorCanvasContainerView(undefined);
- }
- }, [setEditorCanvasContainerView, location?.path]);
- return (0,external_React_.createElement)(SidebarNavigationScreen, {
- isRoot: true,
- title: (0,external_wp_i18n_namespaceObject.__)('Design'),
- description: (0,external_wp_i18n_namespaceObject.__)('Customize the appearance of your website using the block editor.'),
- content: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorButton, {
- as: SidebarNavigationItem,
- path: "/navigation",
- withChevron: true,
- icon: library_navigation
- }, (0,external_wp_i18n_namespaceObject.__)('Navigation')), (0,external_React_.createElement)(SidebarNavigationItemGlobalStyles, {
- withChevron: true,
- icon: library_styles
- }, (0,external_wp_i18n_namespaceObject.__)('Styles')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorButton, {
- as: SidebarNavigationItem,
- path: "/page",
- withChevron: true,
- icon: library_page
- }, (0,external_wp_i18n_namespaceObject.__)('Pages')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorButton, {
- as: SidebarNavigationItem,
- path: "/wp_template",
- withChevron: true,
- icon: library_layout
- }, (0,external_wp_i18n_namespaceObject.__)('Templates')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorButton, {
- as: SidebarNavigationItem,
- path: "/patterns",
- withChevron: true,
- icon: library_symbol
- }, (0,external_wp_i18n_namespaceObject.__)('Patterns'))), (0,external_React_.createElement)(TemplatePartHint, null))
- });
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/home.js
-
-/**
- * WordPress dependencies
- */
-
-const home = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"
-}));
-/* harmony default export */ const library_home = (home);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/verse.js
-
-/**
- * WordPress dependencies
- */
-
-const verse = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.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"
-}));
-/* harmony default export */ const library_verse = (verse);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pin.js
-
-/**
- * WordPress dependencies
- */
-
-const pin = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"
-}));
-/* harmony default export */ const library_pin = (pin);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/archive.js
-
-/**
- * WordPress dependencies
- */
-
-const archive = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"
-}));
-/* harmony default export */ const library_archive = (archive);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/search.js
-
-/**
- * WordPress dependencies
- */
-
-const search = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"
-}));
-/* harmony default export */ const library_search = (search);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/not-found.js
-
-/**
- * WordPress dependencies
- */
-
-const notFound = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v10zm-11-7.6h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-.9 3.5H6.3l1.2-1.7v1.7zm5.6-3.2c-.4-.2-.8-.4-1.2-.4-.5 0-.9.1-1.2.4-.4.2-.6.6-.8 1-.2.4-.3.9-.3 1.5s.1 1.1.3 1.6c.2.4.5.8.8 1 .4.2.8.4 1.2.4.5 0 .9-.1 1.2-.4.4-.2.6-.6.8-1 .2-.4.3-1 .3-1.6 0-.6-.1-1.1-.3-1.5-.1-.5-.4-.8-.8-1zm0 3.6c-.1.3-.3.5-.5.7-.2.1-.4.2-.7.2-.3 0-.5-.1-.7-.2-.2-.1-.4-.4-.5-.7-.1-.3-.2-.7-.2-1.2 0-.7.1-1.2.4-1.5.3-.3.6-.5 1-.5s.7.2 1 .5c.3.3.4.8.4 1.5-.1.5-.1.9-.2 1.2zm5-3.9h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-1 3.5H16l1.2-1.7v1.7z"
-}));
-/* harmony default export */ const not_found = (notFound);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/list.js
-
-/**
- * WordPress dependencies
- */
-
-const list = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.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 */ const library_list = (list);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/category.js
-
-/**
- * WordPress dependencies
- */
-
-const category = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",
- fillRule: "evenodd",
- clipRule: "evenodd"
-}));
-/* harmony default export */ const library_category = (category);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/comment-author-avatar.js
-
-/**
- * WordPress dependencies
- */
-
-const commentAuthorAvatar = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- d: "M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",
- clipRule: "evenodd"
-}));
-/* harmony default export */ const comment_author_avatar = (commentAuthorAvatar);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/block-meta.js
-
-/**
- * WordPress dependencies
- */
-
-const blockMeta = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- d: "M8.95 11.25H4v1.5h4.95v4.5H13V18c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75h-2.55v-7.5H13V9c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75H8.95v4.5ZM14.5 15v3c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5v-3c0-.3-.2-.5-.5-.5h-3c-.3 0-.5.2-.5.5Zm0-6V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5Z",
- clipRule: "evenodd"
-}));
-/* harmony default export */ const block_meta = (blockMeta);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/calendar.js
-
-/**
- * WordPress dependencies
- */
-
-const calendar = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"
-}));
-/* harmony default export */ const library_calendar = (calendar);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/tag.js
-
-/**
- * WordPress dependencies
- */
-
-const tag = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"
-}));
-/* harmony default export */ const library_tag = (tag);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/media.js
-
-/**
- * WordPress dependencies
- */
-
-const media = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m7 6.5 4 2.5-4 2.5z"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"
-}));
-/* harmony default export */ const library_media = (media);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js
-
-/**
- * WordPress dependencies
- */
-
-const plus = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
-}));
-/* harmony default export */ const library_plus = (plus);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post.js
-
-/**
- * WordPress dependencies
- */
-
-const post = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"
-}));
-/* harmony default export */ const library_post = (post);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/add-new-template/utils.js
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-/**
- * @typedef IHasNameAndId
- * @property {string|number} id The entity's id.
- * @property {string} name The entity's name.
- */
-
-const utils_getValueFromObjectPath = (object, path) => {
- let value = object;
- path.split('.').forEach(fieldName => {
- value = value?.[fieldName];
- });
- return value;
-};
-
-/**
- * Helper util to map records to add a `name` prop from a
- * provided path, in order to handle all entities in the same
- * fashion(implementing`IHasNameAndId` interface).
- *
- * @param {Object[]} entities The array of entities.
- * @param {string} path The path to map a `name` property from the entity.
- * @return {IHasNameAndId[]} An array of enitities that now implement the `IHasNameAndId` interface.
- */
-const mapToIHasNameAndId = (entities, path) => {
- return (entities || []).map(entity => ({
- ...entity,
- name: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(utils_getValueFromObjectPath(entity, path))
- }));
-};
-
-/**
- * @typedef {Object} EntitiesInfo
- * @property {boolean} hasEntities If an entity has available records(posts, terms, etc..).
- * @property {number[]} existingEntitiesIds An array of the existing entities ids.
- */
-
-const useExistingTemplates = () => {
- return (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getEntityRecords('postType', constants_TEMPLATE_POST_TYPE, {
- per_page: -1
- }), []);
-};
-const useDefaultTemplateTypes = () => {
- return (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_editor_namespaceObject.store).__experimentalGetDefaultTemplateTypes(), []);
-};
-const usePublicPostTypes = () => {
- const postTypes = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getPostTypes({
- per_page: -1
- }), []);
- return (0,external_wp_element_namespaceObject.useMemo)(() => {
- const excludedPostTypes = ['attachment'];
- return postTypes?.filter(({
- viewable,
- slug
- }) => viewable && !excludedPostTypes.includes(slug));
- }, [postTypes]);
-};
-const usePublicTaxonomies = () => {
- const taxonomies = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getTaxonomies({
- per_page: -1
- }), []);
- return (0,external_wp_element_namespaceObject.useMemo)(() => {
- return taxonomies?.filter(({
- visibility
- }) => visibility?.publicly_queryable);
- }, [taxonomies]);
-};
-function usePostTypeNeedsUniqueIdentifier(publicPostTypes) {
- const postTypeLabels = (0,external_wp_element_namespaceObject.useMemo)(() => publicPostTypes?.reduce((accumulator, {
- labels
- }) => {
- const singularName = labels.singular_name.toLowerCase();
- accumulator[singularName] = (accumulator[singularName] || 0) + 1;
- return accumulator;
- }, {}));
- return (0,external_wp_element_namespaceObject.useCallback)(({
- labels,
- slug
- }) => {
- const singularName = labels.singular_name.toLowerCase();
- return postTypeLabels[singularName] > 1 && singularName !== slug;
- }, [postTypeLabels]);
-}
-function usePostTypeArchiveMenuItems() {
- const publicPostTypes = usePublicPostTypes();
- const postTypesWithArchives = (0,external_wp_element_namespaceObject.useMemo)(() => publicPostTypes?.filter(postType => postType.has_archive), [publicPostTypes]);
- const existingTemplates = useExistingTemplates();
- const needsUniqueIdentifier = usePostTypeNeedsUniqueIdentifier(postTypesWithArchives);
- return (0,external_wp_element_namespaceObject.useMemo)(() => postTypesWithArchives?.filter(postType => !(existingTemplates || []).some(existingTemplate => existingTemplate.slug === 'archive-' + postType.slug)).map(postType => {
- let title;
- if (needsUniqueIdentifier(postType)) {
- title = (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %1s: Name of the post type e.g: "Post"; %2s: Slug of the post type e.g: "book".
- (0,external_wp_i18n_namespaceObject.__)('Archive: %1$s (%2$s)'), postType.labels.singular_name, postType.slug);
- } else {
- title = (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Name of the post type e.g: "Post".
- (0,external_wp_i18n_namespaceObject.__)('Archive: %s'), postType.labels.singular_name);
- }
- return {
- slug: 'archive-' + postType.slug,
- description: (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Name of the post type e.g: "Post".
- (0,external_wp_i18n_namespaceObject.__)('Displays an archive with the latest posts of type: %s.'), postType.labels.singular_name),
- title,
- // `icon` is the `menu_icon` property of a post type. We
- // only handle `dashicons` for now, even if the `menu_icon`
- // also supports urls and svg as values.
- icon: postType.icon?.startsWith('dashicons-') ? postType.icon.slice(10) : library_archive,
- templatePrefix: 'archive'
- };
- }) || [], [postTypesWithArchives, existingTemplates, needsUniqueIdentifier]);
-}
-const usePostTypeMenuItems = onClickMenuItem => {
- const publicPostTypes = usePublicPostTypes();
- const existingTemplates = useExistingTemplates();
- const defaultTemplateTypes = useDefaultTemplateTypes();
- const needsUniqueIdentifier = usePostTypeNeedsUniqueIdentifier(publicPostTypes);
- // `page`is a special case in template hierarchy.
- const templatePrefixes = (0,external_wp_element_namespaceObject.useMemo)(() => publicPostTypes?.reduce((accumulator, {
- slug
- }) => {
- let suffix = slug;
- if (slug !== 'page') {
- suffix = `single-${suffix}`;
- }
- accumulator[slug] = suffix;
- return accumulator;
- }, {}), [publicPostTypes]);
- const postTypesInfo = useEntitiesInfo('postType', templatePrefixes);
- const existingTemplateSlugs = (existingTemplates || []).map(({
- slug
- }) => slug);
- const menuItems = (publicPostTypes || []).reduce((accumulator, postType) => {
- const {
- slug,
- labels,
- icon
- } = postType;
- // We need to check if the general template is part of the
- // defaultTemplateTypes. If it is, just use that info and
- // augment it with the specific template functionality.
- const generalTemplateSlug = templatePrefixes[slug];
- const defaultTemplateType = defaultTemplateTypes?.find(({
- slug: _slug
- }) => _slug === generalTemplateSlug);
- const hasGeneralTemplate = existingTemplateSlugs?.includes(generalTemplateSlug);
- const _needsUniqueIdentifier = needsUniqueIdentifier(postType);
- let menuItemTitle = (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Name of the post type e.g: "Post".
- (0,external_wp_i18n_namespaceObject.__)('Single item: %s'), labels.singular_name);
- if (_needsUniqueIdentifier) {
- menuItemTitle = (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %1s: Name of the post type e.g: "Post"; %2s: Slug of the post type e.g: "book".
- (0,external_wp_i18n_namespaceObject.__)('Single item: %1$s (%2$s)'), labels.singular_name, slug);
- }
- const menuItem = defaultTemplateType ? {
- ...defaultTemplateType,
- templatePrefix: templatePrefixes[slug]
- } : {
- slug: generalTemplateSlug,
- title: menuItemTitle,
- description: (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Name of the post type e.g: "Post".
- (0,external_wp_i18n_namespaceObject.__)('Displays a single item: %s.'), labels.singular_name),
- // `icon` is the `menu_icon` property of a post type. We
- // only handle `dashicons` for now, even if the `menu_icon`
- // also supports urls and svg as values.
- icon: icon?.startsWith('dashicons-') ? icon.slice(10) : library_post,
- templatePrefix: templatePrefixes[slug]
- };
- const hasEntities = postTypesInfo?.[slug]?.hasEntities;
- // We have a different template creation flow only if they have entities.
- if (hasEntities) {
- menuItem.onClick = template => {
- onClickMenuItem({
- type: 'postType',
- slug,
- config: {
- recordNamePath: 'title.rendered',
- queryArgs: ({
- search
- }) => {
- return {
- _fields: 'id,title,slug,link',
- orderBy: search ? 'relevance' : 'modified',
- exclude: postTypesInfo[slug].existingEntitiesIds
- };
- },
- getSpecificTemplate: suggestion => {
- const templateSlug = `${templatePrefixes[slug]}-${suggestion.slug}`;
- return {
- title: templateSlug,
- slug: templateSlug,
- templatePrefix: templatePrefixes[slug]
- };
- }
- },
- labels,
- hasGeneralTemplate,
- template
- });
- };
- }
- // We don't need to add the menu item if there are no
- // entities and the general template exists.
- if (!hasGeneralTemplate || hasEntities) {
- accumulator.push(menuItem);
- }
- return accumulator;
- }, []);
- // Split menu items into two groups: one for the default post types
- // and one for the rest.
- const postTypesMenuItems = (0,external_wp_element_namespaceObject.useMemo)(() => menuItems.reduce((accumulator, postType) => {
- const {
- slug
- } = postType;
- let key = 'postTypesMenuItems';
- if (slug === 'page') {
- key = 'defaultPostTypesMenuItems';
- }
- accumulator[key].push(postType);
- return accumulator;
- }, {
- defaultPostTypesMenuItems: [],
- postTypesMenuItems: []
- }), [menuItems]);
- return postTypesMenuItems;
-};
-const useTaxonomiesMenuItems = onClickMenuItem => {
- const publicTaxonomies = usePublicTaxonomies();
- const existingTemplates = useExistingTemplates();
- const defaultTemplateTypes = useDefaultTemplateTypes();
- // `category` and `post_tag` are special cases in template hierarchy.
- const templatePrefixes = (0,external_wp_element_namespaceObject.useMemo)(() => publicTaxonomies?.reduce((accumulator, {
- slug
- }) => {
- let suffix = slug;
- if (!['category', 'post_tag'].includes(slug)) {
- suffix = `taxonomy-${suffix}`;
- }
- if (slug === 'post_tag') {
- suffix = `tag`;
- }
- accumulator[slug] = suffix;
- return accumulator;
- }, {}), [publicTaxonomies]);
- // We need to keep track of naming conflicts. If a conflict
- // occurs, we need to add slug.
- const taxonomyLabels = publicTaxonomies?.reduce((accumulator, {
- labels
- }) => {
- const singularName = labels.singular_name.toLowerCase();
- accumulator[singularName] = (accumulator[singularName] || 0) + 1;
- return accumulator;
- }, {});
- const needsUniqueIdentifier = (labels, slug) => {
- if (['category', 'post_tag'].includes(slug)) {
- return false;
- }
- const singularName = labels.singular_name.toLowerCase();
- return taxonomyLabels[singularName] > 1 && singularName !== slug;
- };
- const taxonomiesInfo = useEntitiesInfo('taxonomy', templatePrefixes);
- const existingTemplateSlugs = (existingTemplates || []).map(({
- slug
- }) => slug);
- const menuItems = (publicTaxonomies || []).reduce((accumulator, taxonomy) => {
- const {
- slug,
- labels
- } = taxonomy;
- // We need to check if the general template is part of the
- // defaultTemplateTypes. If it is, just use that info and
- // augment it with the specific template functionality.
- const generalTemplateSlug = templatePrefixes[slug];
- const defaultTemplateType = defaultTemplateTypes?.find(({
- slug: _slug
- }) => _slug === generalTemplateSlug);
- const hasGeneralTemplate = existingTemplateSlugs?.includes(generalTemplateSlug);
- const _needsUniqueIdentifier = needsUniqueIdentifier(labels, slug);
- let menuItemTitle = labels.singular_name;
- if (_needsUniqueIdentifier) {
- menuItemTitle = (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %1s: Name of the taxonomy e.g: "Category"; %2s: Slug of the taxonomy e.g: "product_cat".
- (0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), labels.singular_name, slug);
- }
- const menuItem = defaultTemplateType ? {
- ...defaultTemplateType,
- templatePrefix: templatePrefixes[slug]
- } : {
- slug: generalTemplateSlug,
- title: menuItemTitle,
- description: (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Name of the taxonomy e.g: "Product Categories".
- (0,external_wp_i18n_namespaceObject.__)('Displays taxonomy: %s.'), labels.singular_name),
- icon: block_meta,
- templatePrefix: templatePrefixes[slug]
- };
- const hasEntities = taxonomiesInfo?.[slug]?.hasEntities;
- // We have a different template creation flow only if they have entities.
- if (hasEntities) {
- menuItem.onClick = template => {
- onClickMenuItem({
- type: 'taxonomy',
- slug,
- config: {
- queryArgs: ({
- search
- }) => {
- return {
- _fields: 'id,name,slug,link',
- orderBy: search ? 'name' : 'count',
- exclude: taxonomiesInfo[slug].existingEntitiesIds
- };
- },
- getSpecificTemplate: suggestion => {
- const templateSlug = `${templatePrefixes[slug]}-${suggestion.slug}`;
- return {
- title: templateSlug,
- slug: templateSlug,
- templatePrefix: templatePrefixes[slug]
- };
- }
- },
- labels,
- hasGeneralTemplate,
- template
- });
- };
- }
- // We don't need to add the menu item if there are no
- // entities and the general template exists.
- if (!hasGeneralTemplate || hasEntities) {
- accumulator.push(menuItem);
- }
- return accumulator;
- }, []);
- // Split menu items into two groups: one for the default taxonomies
- // and one for the rest.
- const taxonomiesMenuItems = (0,external_wp_element_namespaceObject.useMemo)(() => menuItems.reduce((accumulator, taxonomy) => {
- const {
- slug
- } = taxonomy;
- let key = 'taxonomiesMenuItems';
- if (['category', 'tag'].includes(slug)) {
- key = 'defaultTaxonomiesMenuItems';
- }
- accumulator[key].push(taxonomy);
- return accumulator;
- }, {
- defaultTaxonomiesMenuItems: [],
- taxonomiesMenuItems: []
- }), [menuItems]);
- return taxonomiesMenuItems;
-};
-const USE_AUTHOR_MENU_ITEM_TEMPLATE_PREFIX = {
- user: 'author'
-};
-const USE_AUTHOR_MENU_ITEM_QUERY_PARAMETERS = {
- user: {
- who: 'authors'
- }
-};
-function useAuthorMenuItem(onClickMenuItem) {
- const existingTemplates = useExistingTemplates();
- const defaultTemplateTypes = useDefaultTemplateTypes();
- const authorInfo = useEntitiesInfo('root', USE_AUTHOR_MENU_ITEM_TEMPLATE_PREFIX, USE_AUTHOR_MENU_ITEM_QUERY_PARAMETERS);
- let authorMenuItem = defaultTemplateTypes?.find(({
- slug
- }) => slug === 'author');
- if (!authorMenuItem) {
- authorMenuItem = {
- description: (0,external_wp_i18n_namespaceObject.__)('Displays latest posts written by a single author.'),
- slug: 'author',
- title: 'Author'
- };
- }
- const hasGeneralTemplate = !!existingTemplates?.find(({
- slug
- }) => slug === 'author');
- if (authorInfo.user?.hasEntities) {
- authorMenuItem = {
- ...authorMenuItem,
- templatePrefix: 'author'
- };
- authorMenuItem.onClick = template => {
- onClickMenuItem({
- type: 'root',
- slug: 'user',
- config: {
- queryArgs: ({
- search
- }) => {
- return {
- _fields: 'id,name,slug,link',
- orderBy: search ? 'name' : 'registered_date',
- exclude: authorInfo.user.existingEntitiesIds,
- who: 'authors'
- };
- },
- getSpecificTemplate: suggestion => {
- const templateSlug = `author-${suggestion.slug}`;
- return {
- title: templateSlug,
- slug: templateSlug,
- templatePrefix: 'author'
- };
- }
- },
- labels: {
- singular_name: (0,external_wp_i18n_namespaceObject.__)('Author'),
- search_items: (0,external_wp_i18n_namespaceObject.__)('Search Authors'),
- not_found: (0,external_wp_i18n_namespaceObject.__)('No authors found.'),
- all_items: (0,external_wp_i18n_namespaceObject.__)('All Authors')
- },
- hasGeneralTemplate,
- template
- });
- };
- }
- if (!hasGeneralTemplate || authorInfo.user?.hasEntities) {
- return authorMenuItem;
- }
-}
-
-/**
- * Helper hook that filters all the existing templates by the given
- * object with the entity's slug as key and the template prefix as value.
- *
- * Example:
- * `existingTemplates` is: [ { slug: 'tag-apple' }, { slug: 'page-about' }, { slug: 'tag' } ]
- * `templatePrefixes` is: { post_tag: 'tag' }
- * It will return: { post_tag: ['apple'] }
- *
- * Note: We append the `-` to the given template prefix in this function for our checks.
- *
- * @param {Record<string,string>} templatePrefixes An object with the entity's slug as key and the template prefix as value.
- * @return {Record<string,string[]>} An object with the entity's slug as key and an array with the existing template slugs as value.
- */
-const useExistingTemplateSlugs = templatePrefixes => {
- const existingTemplates = useExistingTemplates();
- const existingSlugs = (0,external_wp_element_namespaceObject.useMemo)(() => {
- return Object.entries(templatePrefixes || {}).reduce((accumulator, [slug, prefix]) => {
- const slugsWithTemplates = (existingTemplates || []).reduce((_accumulator, existingTemplate) => {
- const _prefix = `${prefix}-`;
- if (existingTemplate.slug.startsWith(_prefix)) {
- _accumulator.push(existingTemplate.slug.substring(_prefix.length));
- }
- return _accumulator;
- }, []);
- if (slugsWithTemplates.length) {
- accumulator[slug] = slugsWithTemplates;
- }
- return accumulator;
- }, {});
- }, [templatePrefixes, existingTemplates]);
- return existingSlugs;
-};
-
-/**
- * Helper hook that finds the existing records with an associated template,
- * as they need to be excluded from the template suggestions.
- *
- * @param {string} entityName The entity's name.
- * @param {Record<string,string>} templatePrefixes An object with the entity's slug as key and the template prefix as value.
- * @param {Record<string,Object>} additionalQueryParameters An object with the entity's slug as key and additional query parameters as value.
- * @return {Record<string,EntitiesInfo>} An object with the entity's slug as key and the existing records as value.
- */
-const useTemplatesToExclude = (entityName, templatePrefixes, additionalQueryParameters = {}) => {
- const slugsToExcludePerEntity = useExistingTemplateSlugs(templatePrefixes);
- const recordsToExcludePerEntity = (0,external_wp_data_namespaceObject.useSelect)(select => {
- return Object.entries(slugsToExcludePerEntity || {}).reduce((accumulator, [slug, slugsWithTemplates]) => {
- const entitiesWithTemplates = select(external_wp_coreData_namespaceObject.store).getEntityRecords(entityName, slug, {
- _fields: 'id',
- context: 'view',
- slug: slugsWithTemplates,
- ...additionalQueryParameters[slug]
- });
- if (entitiesWithTemplates?.length) {
- accumulator[slug] = entitiesWithTemplates;
- }
- return accumulator;
- }, {});
- }, [slugsToExcludePerEntity]);
- return recordsToExcludePerEntity;
-};
-
-/**
- * Helper hook that returns information about an entity having
- * records that we can create a specific template for.
- *
- * For example we can search for `terms` in `taxonomy` entity or
- * `posts` in `postType` entity.
- *
- * First we need to find the existing records with an associated template,
- * to query afterwards for any remaining record, by excluding them.
- *
- * @param {string} entityName The entity's name.
- * @param {Record<string,string>} templatePrefixes An object with the entity's slug as key and the template prefix as value.
- * @param {Record<string,Object>} additionalQueryParameters An object with the entity's slug as key and additional query parameters as value.
- * @return {Record<string,EntitiesInfo>} An object with the entity's slug as key and the EntitiesInfo as value.
- */
-const useEntitiesInfo = (entityName, templatePrefixes, additionalQueryParameters = {}) => {
- const recordsToExcludePerEntity = useTemplatesToExclude(entityName, templatePrefixes, additionalQueryParameters);
- const entitiesInfo = (0,external_wp_data_namespaceObject.useSelect)(select => {
- return Object.keys(templatePrefixes || {}).reduce((accumulator, slug) => {
- const existingEntitiesIds = recordsToExcludePerEntity?.[slug]?.map(({
- id
- }) => id) || [];
- accumulator[slug] = {
- hasEntities: !!select(external_wp_coreData_namespaceObject.store).getEntityRecords(entityName, slug, {
- per_page: 1,
- _fields: 'id',
- context: 'view',
- exclude: existingEntitiesIds,
- ...additionalQueryParameters[slug]
- })?.length,
- existingEntitiesIds
- };
- return accumulator;
- }, {});
- }, [templatePrefixes, recordsToExcludePerEntity]);
- return entitiesInfo;
-};
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/add-new-template/add-custom-template-modal-content.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-const {
- CompositeV2: add_custom_template_modal_content_Composite,
- CompositeItemV2: add_custom_template_modal_content_CompositeItem,
- useCompositeStoreV2: add_custom_template_modal_content_useCompositeStore
-} = unlock(external_wp_components_namespaceObject.privateApis);
-const add_custom_template_modal_content_EMPTY_ARRAY = [];
-function SuggestionListItem({
- suggestion,
- search,
- onSelect,
- entityForSuggestions
-}) {
- const baseCssClass = 'edit-site-custom-template-modal__suggestions_list__list-item';
- return (0,external_React_.createElement)(add_custom_template_modal_content_CompositeItem, {
- render: (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- role: "option",
- className: baseCssClass,
- onClick: () => onSelect(entityForSuggestions.config.getSpecificTemplate(suggestion))
- })
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- size: "body",
- lineHeight: 1.53846153846 // 20px
- ,
- weight: 500,
- className: `${baseCssClass}__title`
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextHighlight, {
- text: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(suggestion.name),
- highlight: search
- })), suggestion.link && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- size: "body",
- lineHeight: 1.53846153846 // 20px
- ,
- className: `${baseCssClass}__info`
- }, suggestion.link));
-}
-function useSearchSuggestions(entityForSuggestions, search) {
- const {
- config
- } = entityForSuggestions;
- const query = (0,external_wp_element_namespaceObject.useMemo)(() => ({
- order: 'asc',
- context: 'view',
- search,
- per_page: search ? 20 : 10,
- ...config.queryArgs(search)
- }), [search, config]);
- const {
- records: searchResults,
- hasResolved: searchHasResolved
- } = (0,external_wp_coreData_namespaceObject.useEntityRecords)(entityForSuggestions.type, entityForSuggestions.slug, query);
- const [suggestions, setSuggestions] = (0,external_wp_element_namespaceObject.useState)(add_custom_template_modal_content_EMPTY_ARRAY);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!searchHasResolved) return;
- let newSuggestions = add_custom_template_modal_content_EMPTY_ARRAY;
- if (searchResults?.length) {
- newSuggestions = searchResults;
- if (config.recordNamePath) {
- newSuggestions = mapToIHasNameAndId(newSuggestions, config.recordNamePath);
- }
- }
- // Update suggestions only when the query has resolved, so as to keep
- // the previous results in the UI.
- setSuggestions(newSuggestions);
- }, [searchResults, searchHasResolved]);
- return suggestions;
-}
-function SuggestionList({
- entityForSuggestions,
- onSelect
-}) {
- const composite = add_custom_template_modal_content_useCompositeStore({
- orientation: 'vertical'
- });
- const [search, setSearch, debouncedSearch] = (0,external_wp_compose_namespaceObject.useDebouncedInput)();
- const suggestions = useSearchSuggestions(entityForSuggestions, debouncedSearch);
- const {
- labels
- } = entityForSuggestions;
- const [showSearchControl, setShowSearchControl] = (0,external_wp_element_namespaceObject.useState)(false);
- if (!showSearchControl && suggestions?.length > 9) {
- setShowSearchControl(true);
- }
- return (0,external_React_.createElement)(external_React_.Fragment, null, showSearchControl && (0,external_React_.createElement)(external_wp_components_namespaceObject.SearchControl, {
- __nextHasNoMarginBottom: true,
- onChange: setSearch,
- value: search,
- label: labels.search_items,
- placeholder: labels.search_items
- }), !!suggestions?.length && (0,external_React_.createElement)(add_custom_template_modal_content_Composite, {
- store: composite,
- role: "listbox",
- className: "edit-site-custom-template-modal__suggestions_list",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Suggestions list')
- }, suggestions.map(suggestion => (0,external_React_.createElement)(SuggestionListItem, {
- key: suggestion.slug,
- suggestion: suggestion,
- search: debouncedSearch,
- onSelect: onSelect,
- entityForSuggestions: entityForSuggestions
- }))), debouncedSearch && !suggestions?.length && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- as: "p",
- className: "edit-site-custom-template-modal__no-results"
- }, labels.not_found));
-}
-function AddCustomTemplateModalContent({
- onSelect,
- entityForSuggestions
-}) {
- const [showSearchEntities, setShowSearchEntities] = (0,external_wp_element_namespaceObject.useState)(entityForSuggestions.hasGeneralTemplate);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 4,
- className: "edit-site-custom-template-modal__contents-wrapper",
- alignment: "left"
- }, !showSearchEntities && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- as: "p"
- }, (0,external_wp_i18n_namespaceObject.__)('Select whether to create a single template for all items or a specific one.')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- className: "edit-site-custom-template-modal__contents",
- gap: "4",
- align: "initial"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- isBlock: true,
- as: external_wp_components_namespaceObject.Button,
- onClick: () => {
- const {
- slug,
- title,
- description,
- templatePrefix
- } = entityForSuggestions.template;
- onSelect({
- slug,
- title,
- description,
- templatePrefix
- });
- }
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- as: "span",
- weight: 500,
- lineHeight: 1.53846153846 // 20px
- }, entityForSuggestions.labels.all_items), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- as: "span",
- lineHeight: 1.53846153846 // 20px
- },
- // translators: The user is given the choice to set up a template for all items of a post type or taxonomy, or just a specific one.
- (0,external_wp_i18n_namespaceObject.__)('For all items'))), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- isBlock: true,
- as: external_wp_components_namespaceObject.Button,
- onClick: () => {
- setShowSearchEntities(true);
- }
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- as: "span",
- weight: 500,
- lineHeight: 1.53846153846 // 20px
- }, entityForSuggestions.labels.singular_name), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- as: "span",
- lineHeight: 1.53846153846 // 20px
- },
- // translators: The user is given the choice to set up a template for all items of a post type or taxonomy, or just a specific one.
- (0,external_wp_i18n_namespaceObject.__)('For a specific item'))))), showSearchEntities && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- as: "p"
- }, (0,external_wp_i18n_namespaceObject.__)('This template will be used only for the specific item chosen.')), (0,external_React_.createElement)(SuggestionList, {
- entityForSuggestions: entityForSuggestions,
- onSelect: onSelect
- })));
-}
-/* harmony default export */ const add_custom_template_modal_content = (AddCustomTemplateModalContent);
-
-;// CONCATENATED MODULE: ./node_modules/tslib/tslib.es6.mjs
-/******************************************************************************
-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, SuppressedError, Symbol */
-
-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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
-};
-
-function __extends(d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- 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 __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
- function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
- var _, done = false;
- for (var i = decorators.length - 1; i >= 0; i--) {
- var context = {};
- for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
- for (var p in contextIn.access) context.access[p] = contextIn.access[p];
- context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
- if (kind === "accessor") {
- if (result === void 0) continue;
- if (result === null || typeof result !== "object") throw new TypeError("Object expected");
- if (_ = accept(result.get)) descriptor.get = _;
- if (_ = accept(result.set)) descriptor.set = _;
- if (_ = accept(result.init)) initializers.unshift(_);
- }
- else if (_ = accept(result)) {
- if (kind === "field") initializers.unshift(_);
- else descriptor[key] = _;
- }
- }
- if (target) Object.defineProperty(target, contextIn.name, descriptor);
- done = true;
-};
-
-function __runInitializers(thisArg, initializers, value) {
- var useValue = arguments.length > 2;
- for (var i = 0; i < initializers.length; i++) {
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
- }
- return useValue ? value : void 0;
-};
-
-function __propKey(x) {
- return typeof x === "symbol" ? x : "".concat(x);
-};
-
-function __setFunctionName(f, name, prefix) {
- if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
-};
-
-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 (g && (g = 0, op[0] && (_ = 0)), _) 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 };
- }
-}
-
-var __createBinding = Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-});
-
-function __exportStar(m, o) {
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, 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;
-}
-
-/** @deprecated */
-function __spread() {
- for (var ar = [], i = 0; i < arguments.length; i++)
- ar = ar.concat(__read(arguments[i]));
- return ar;
-}
-
-/** @deprecated */
-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 __spreadArray(to, from, pack) {
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
- if (ar || !(i in from)) {
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
- ar[i] = from[i];
- }
- }
- return to.concat(ar || Array.prototype.slice.call(from));
-}
-
-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: false } : 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;
-};
-
-var __setModuleDefault = Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-};
-
-function __importStar(mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
- __setModuleDefault(result, mod);
- return result;
-}
-
-function __importDefault(mod) {
- return (mod && mod.__esModule) ? mod : { default: mod };
-}
-
-function __classPrivateFieldGet(receiver, state, kind, f) {
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
-}
-
-function __classPrivateFieldSet(receiver, state, value, kind, f) {
- if (kind === "m") throw new TypeError("Private method is not writable");
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
-}
-
-function __classPrivateFieldIn(state, receiver) {
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
- return typeof state === "function" ? receiver === state : state.has(receiver);
-}
-
-function __addDisposableResource(env, value, async) {
- if (value !== null && value !== void 0) {
- if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
- var dispose;
- if (async) {
- if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
- dispose = value[Symbol.asyncDispose];
- }
- if (dispose === void 0) {
- if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
- dispose = value[Symbol.dispose];
- }
- if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
- env.stack.push({ value: value, dispose: dispose, async: async });
- }
- else if (async) {
- env.stack.push({ async: true });
- }
- return value;
-}
-
-var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
- var e = new Error(message);
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
-};
-
-function __disposeResources(env) {
- function fail(e) {
- env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
- env.hasError = true;
- }
- function next() {
- while (env.stack.length) {
- var rec = env.stack.pop();
- try {
- var result = rec.dispose && rec.dispose.call(rec.value);
- if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
- }
- catch (e) {
- fail(e);
- }
- }
- if (env.hasError) throw env.error;
- }
- return next();
-}
-
-/* harmony default export */ const tslib_es6 = ({
- __extends,
- __assign,
- __rest,
- __decorate,
- __param,
- __metadata,
- __awaiter,
- __generator,
- __createBinding,
- __exportStar,
- __values,
- __read,
- __spread,
- __spreadArrays,
- __spreadArray,
- __await,
- __asyncGenerator,
- __asyncDelegator,
- __asyncValues,
- __makeTemplateObject,
- __importStar,
- __importDefault,
- __classPrivateFieldGet,
- __classPrivateFieldSet,
- __classPrivateFieldIn,
- __addDisposableResource,
- __disposeResources,
-});
-
-;// CONCATENATED MODULE: ./node_modules/lower-case/dist.es2015/index.js
-/**
- * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt
- */
-var SUPPORTED_LOCALE = {
- tr: {
- regexp: /\u0130|\u0049|\u0049\u0307/g,
- map: {
- İ: "\u0069",
- I: "\u0131",
- İ: "\u0069",
- },
- },
- az: {
- regexp: /\u0130/g,
- map: {
- İ: "\u0069",
- I: "\u0131",
- İ: "\u0069",
- },
- },
- lt: {
- regexp: /\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g,
- map: {
- I: "\u0069\u0307",
- J: "\u006A\u0307",
- Į: "\u012F\u0307",
- Ì: "\u0069\u0307\u0300",
- Í: "\u0069\u0307\u0301",
- Ĩ: "\u0069\u0307\u0303",
- },
- },
-};
-/**
- * Localized lower case.
- */
-function localeLowerCase(str, locale) {
- var lang = SUPPORTED_LOCALE[locale.toLowerCase()];
- if (lang)
- return lowerCase(str.replace(lang.regexp, function (m) { return lang.map[m]; }));
- return lowerCase(str);
-}
-/**
- * Lower case as a function.
- */
-function lowerCase(str) {
- return str.toLowerCase();
-}
-
-;// CONCATENATED MODULE: ./node_modules/no-case/dist.es2015/index.js
-
-// Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case").
-var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
-// Remove all non-word characters.
-var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
-/**
- * Normalize the string into something other libraries can manipulate easier.
- */
-function noCase(input, options) {
- if (options === void 0) { options = {}; }
- var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d;
- var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
- var start = 0;
- var end = result.length;
- // Trim the delimiter from around the output string.
- while (result.charAt(start) === "\0")
- start++;
- while (result.charAt(end - 1) === "\0")
- end--;
- // Transform each token independently.
- return result.slice(start, end).split("\0").map(transform).join(delimiter);
-}
-/**
- * Replace `re` in the input string with the replacement value.
- */
-function replace(input, re, value) {
- if (re instanceof RegExp)
- return input.replace(re, value);
- return re.reduce(function (input, re) { return input.replace(re, value); }, input);
-}
-
-;// CONCATENATED MODULE: ./node_modules/dot-case/dist.es2015/index.js
-
-
-function dotCase(input, options) {
- if (options === void 0) { options = {}; }
- return noCase(input, __assign({ delimiter: "." }, options));
-}
-
-;// CONCATENATED MODULE: ./node_modules/param-case/dist.es2015/index.js
-
-
-function paramCase(input, options) {
- if (options === void 0) { options = {}; }
- return dotCase(input, __assign({ delimiter: "-" }, options));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/add-new-template/add-custom-generic-template-modal-content.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-function AddCustomGenericTemplateModalContent({
- onClose,
- createTemplate
-}) {
- const [title, setTitle] = (0,external_wp_element_namespaceObject.useState)('');
- const defaultTitle = (0,external_wp_i18n_namespaceObject.__)('Custom Template');
- const [isBusy, setIsBusy] = (0,external_wp_element_namespaceObject.useState)(false);
- async function onCreateTemplate(event) {
- event.preventDefault();
- if (isBusy) {
- return;
- }
- setIsBusy(true);
- try {
- await createTemplate({
- slug: 'wp-custom-template-' + paramCase(title || defaultTitle),
- title: title || defaultTitle
- }, false);
- } finally {
- setIsBusy(false);
- }
- }
- return (0,external_React_.createElement)("form", {
- onSubmit: onCreateTemplate
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 6
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Name'),
- value: title,
- onChange: setTitle,
- placeholder: defaultTitle,
- disabled: isBusy,
- help: (0,external_wp_i18n_namespaceObject.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- className: "edit-site-custom-generic-template__modal-actions",
- justify: "right"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: () => {
- onClose();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- type: "submit",
- isBusy: isBusy,
- "aria-disabled": isBusy
- }, (0,external_wp_i18n_namespaceObject.__)('Create')))));
-}
-/* harmony default export */ const add_custom_generic_template_modal_content = (AddCustomGenericTemplateModalContent);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/add-new-template/template-actions-loading-screen.js
-
-/**
- * WordPress dependencies
- */
-
-function TemplateActionsLoadingScreen() {
- const baseCssClass = 'edit-site-template-actions-loading-screen-modal';
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
- isFullScreen: true,
- isDismissible: false,
- shouldCloseOnClickOutside: false,
- shouldCloseOnEsc: false,
- onRequestClose: () => {},
- __experimentalHideHeader: true,
- className: baseCssClass
- }, (0,external_React_.createElement)("div", {
- className: `${baseCssClass}__content`
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Spinner, null)));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/add-new-template/new-template.js
-
-/**
- * External dependencies
- */
-
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/error-boundary/warning.js
/**
* WordPress dependencies
*/
@@ -15258,439 +9162,33 @@ function TemplateActionsLoadingScreen() {
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-const {
- useHistory: new_template_useHistory
-} = unlock(external_wp_router_namespaceObject.privateApis);
-const DEFAULT_TEMPLATE_SLUGS = ['front-page', 'home', 'single', 'page', 'index', 'archive', 'author', 'category', 'date', 'tag', 'search', '404'];
-const TEMPLATE_ICONS = {
- 'front-page': library_home,
- home: library_verse,
- single: library_pin,
- page: library_page,
- archive: library_archive,
- search: library_search,
- 404: not_found,
- index: library_list,
- category: library_category,
- author: comment_author_avatar,
- taxonomy: block_meta,
- date: library_calendar,
- tag: library_tag,
- attachment: library_media
-};
-function TemplateListItem({
- title,
- direction,
- className,
- description,
- icon,
- onClick,
+function CopyButton({
+ text,
children
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: className,
- onClick: onClick,
- label: description,
- showTooltip: !!description
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- as: "span",
- spacing: 2,
- align: "center",
- justify: "center",
- style: {
- width: '100%'
- },
- direction: direction
- }, (0,external_React_.createElement)("div", {
- className: "edit-site-add-new-template__template-icon"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- icon: icon
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- className: "edit-site-add-new-template__template-name",
- alignment: "center",
- spacing: 0
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- weight: 500,
- lineHeight: 1.53846153846 // 20px
- }, title), children)));
-}
-const modalContentMap = {
- templatesList: 1,
- customTemplate: 2,
- customGenericTemplate: 3
-};
-function NewTemplate({
- postType,
- toggleProps,
- showIcon = true
-}) {
- const [showModal, setShowModal] = (0,external_wp_element_namespaceObject.useState)(false);
- const [modalContent, setModalContent] = (0,external_wp_element_namespaceObject.useState)(modalContentMap.templatesList);
- const [entityForSuggestions, setEntityForSuggestions] = (0,external_wp_element_namespaceObject.useState)({});
- const [isCreatingTemplate, setIsCreatingTemplate] = (0,external_wp_element_namespaceObject.useState)(false);
- const history = new_template_useHistory();
- const {
- saveEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const {
- createErrorNotice,
- createSuccessNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- const {
- homeUrl
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getUnstableBase // Site index.
- } = select(external_wp_coreData_namespaceObject.store);
- return {
- homeUrl: getUnstableBase()?.home
- };
- }, []);
- const TEMPLATE_SHORT_DESCRIPTIONS = {
- 'front-page': homeUrl,
- date: (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: The homepage url.
- (0,external_wp_i18n_namespaceObject.__)('E.g. %s'), homeUrl + '/' + new Date().getFullYear())
- };
- async function createTemplate(template, isWPSuggestion = true) {
- if (isCreatingTemplate) {
- return;
- }
- setIsCreatingTemplate(true);
- try {
- const {
- title,
- description,
- slug
- } = template;
- const newTemplate = await saveEntityRecord('postType', constants_TEMPLATE_POST_TYPE, {
- description,
- // Slugs need to be strings, so this is for template `404`
- slug: slug.toString(),
- status: 'publish',
- title,
- // This adds a post meta field in template that is part of `is_custom` value calculation.
- is_wp_suggestion: isWPSuggestion
- }, {
- throwOnError: true
- });
-
- // Navigate to the created template editor.
- history.push({
- postId: newTemplate.id,
- postType: newTemplate.type,
- canvas: 'edit'
- });
- createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Title of the created template e.g: "Category".
- (0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(newTemplate.title?.rendered || title)), {
- type: 'snackbar'
- });
- } catch (error) {
- const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : (0,external_wp_i18n_namespaceObject.__)('An error occurred while creating the template.');
- createErrorNotice(errorMessage, {
- type: 'snackbar'
- });
- } finally {
- setIsCreatingTemplate(false);
- }
- }
- const onModalClose = () => {
- setShowModal(false);
- setModalContent(modalContentMap.templatesList);
- };
- const missingTemplates = useMissingTemplates(setEntityForSuggestions, () => setModalContent(modalContentMap.customTemplate));
- if (!missingTemplates.length) {
- return null;
- }
- const {
- as: Toggle = external_wp_components_namespaceObject.Button,
- ...restToggleProps
- } = toggleProps !== null && toggleProps !== void 0 ? toggleProps : {};
- let modalTitle = (0,external_wp_i18n_namespaceObject.__)('Add template');
- if (modalContent === modalContentMap.customTemplate) {
- modalTitle = (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Name of the post type e.g: "Post".
- (0,external_wp_i18n_namespaceObject.__)('Add template: %s'), entityForSuggestions.labels.singular_name);
- } else if (modalContent === modalContentMap.customGenericTemplate) {
- modalTitle = (0,external_wp_i18n_namespaceObject.__)('Create custom template');
- }
- return (0,external_React_.createElement)(external_React_.Fragment, null, isCreatingTemplate && (0,external_React_.createElement)(TemplateActionsLoadingScreen, null), (0,external_React_.createElement)(Toggle, {
- ...restToggleProps,
- onClick: () => setShowModal(true),
- icon: showIcon ? library_plus : null,
- label: postType.labels.add_new_item
- }, showIcon ? null : postType.labels.add_new_item), showModal && (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
- title: modalTitle,
- className: classnames_default()('edit-site-add-new-template__modal', {
- 'edit-site-add-new-template__modal_template_list': modalContent === modalContentMap.templatesList,
- 'edit-site-custom-template-modal': modalContent === modalContentMap.customTemplate
- }),
- onRequestClose: onModalClose,
- overlayClassName: modalContent === modalContentMap.customGenericTemplate ? 'edit-site-custom-generic-template__modal' : undefined
- }, modalContent === modalContentMap.templatesList && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalGrid, {
- columns: 3,
- gap: 4,
- align: "flex-start",
- justify: "center",
- className: "edit-site-add-new-template__template-list__contents"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- className: "edit-site-add-new-template__template-list__prompt"
- }, (0,external_wp_i18n_namespaceObject.__)('Select what the new template should apply to:')), missingTemplates.map(template => {
- const {
- title,
- slug,
- onClick
- } = template;
- return (0,external_React_.createElement)(TemplateListItem, {
- key: slug,
- title: title,
- direction: "column",
- className: "edit-site-add-new-template__template-button",
- description: TEMPLATE_SHORT_DESCRIPTIONS[slug],
- icon: TEMPLATE_ICONS[slug] || library_layout,
- onClick: () => onClick ? onClick(template) : createTemplate(template)
- });
- }), (0,external_React_.createElement)(TemplateListItem, {
- title: (0,external_wp_i18n_namespaceObject.__)('Custom template'),
- direction: "row",
- className: "edit-site-add-new-template__custom-template-button",
- icon: edit,
- onClick: () => setModalContent(modalContentMap.customGenericTemplate)
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- lineHeight: 1.53846153846 // 20px
- }, (0,external_wp_i18n_namespaceObject.__)('A custom template can be manually applied to any post or page.')))), modalContent === modalContentMap.customTemplate && (0,external_React_.createElement)(add_custom_template_modal_content, {
- onSelect: createTemplate,
- entityForSuggestions: entityForSuggestions
- }), modalContent === modalContentMap.customGenericTemplate && (0,external_React_.createElement)(add_custom_generic_template_modal_content, {
- onClose: onModalClose,
- createTemplate: createTemplate
- })));
-}
-function useMissingTemplates(setEntityForSuggestions, onClick) {
- const existingTemplates = useExistingTemplates();
- const defaultTemplateTypes = useDefaultTemplateTypes();
- const existingTemplateSlugs = (existingTemplates || []).map(({
- slug
- }) => slug);
- const missingDefaultTemplates = (defaultTemplateTypes || []).filter(template => DEFAULT_TEMPLATE_SLUGS.includes(template.slug) && !existingTemplateSlugs.includes(template.slug));
- const onClickMenuItem = _entityForSuggestions => {
- onClick?.();
- setEntityForSuggestions(_entityForSuggestions);
- };
- // We need to replace existing default template types with
- // the create specific template functionality. The original
- // info (title, description, etc.) is preserved in the
- // used hooks.
- const enhancedMissingDefaultTemplateTypes = [...missingDefaultTemplates];
- const {
- defaultTaxonomiesMenuItems,
- taxonomiesMenuItems
- } = useTaxonomiesMenuItems(onClickMenuItem);
- const {
- defaultPostTypesMenuItems,
- postTypesMenuItems
- } = usePostTypeMenuItems(onClickMenuItem);
- const authorMenuItem = useAuthorMenuItem(onClickMenuItem);
- [...defaultTaxonomiesMenuItems, ...defaultPostTypesMenuItems, authorMenuItem].forEach(menuItem => {
- if (!menuItem) {
- return;
- }
- const matchIndex = enhancedMissingDefaultTemplateTypes.findIndex(template => template.slug === menuItem.slug);
- // Some default template types might have been filtered above from
- // `missingDefaultTemplates` because they only check for the general
- // template. So here we either replace or append the item, augmented
- // with the check if it has available specific item to create a
- // template for.
- if (matchIndex > -1) {
- enhancedMissingDefaultTemplateTypes[matchIndex] = menuItem;
- } else {
- enhancedMissingDefaultTemplateTypes.push(menuItem);
- }
- });
- // Update the sort order to match the DEFAULT_TEMPLATE_SLUGS order.
- enhancedMissingDefaultTemplateTypes?.sort((template1, template2) => {
- return DEFAULT_TEMPLATE_SLUGS.indexOf(template1.slug) - DEFAULT_TEMPLATE_SLUGS.indexOf(template2.slug);
+ const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(text);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "secondary",
+ ref: ref,
+ children: children
});
- const missingTemplates = [...enhancedMissingDefaultTemplateTypes, ...usePostTypeArchiveMenuItems(), ...postTypesMenuItems, ...taxonomiesMenuItems];
- return missingTemplates;
}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/add-new-template/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-
-function AddNewTemplate({
- templateType = constants_TEMPLATE_POST_TYPE,
- ...props
+function ErrorBoundaryWarning({
+ message,
+ error
}) {
- const postType = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getPostType(templateType), [templateType]);
- if (!postType) {
- return null;
- }
- if (templateType === constants_TEMPLATE_POST_TYPE) {
- return (0,external_React_.createElement)(NewTemplate, {
- ...props,
- postType: postType
- });
- }
- return null;
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-templates/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-const TemplateItem = ({
- postType,
- postId,
- ...props
-}) => {
- const linkInfo = useLink({
- postType,
- postId
- });
- return (0,external_React_.createElement)(SidebarNavigationItem, {
- ...linkInfo,
- ...props
- });
-};
-function SidebarNavigationScreenTemplates() {
- const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
- const {
- records: templates,
- isResolving: isLoading
- } = (0,external_wp_coreData_namespaceObject.useEntityRecords)('postType', constants_TEMPLATE_POST_TYPE, {
- per_page: -1
- });
- const browseAllLink = useLink({
- path: '/wp_template/all'
- });
- const canCreate = !isMobileViewport;
- return (0,external_React_.createElement)(SidebarNavigationScreen, {
- title: (0,external_wp_i18n_namespaceObject.__)('Templates'),
- description: (0,external_wp_i18n_namespaceObject.__)('Express the layout of your site with templates.'),
- actions: canCreate && (0,external_React_.createElement)(AddNewTemplate, {
- templateType: constants_TEMPLATE_POST_TYPE,
- toggleProps: {
- as: SidebarButton
- }
- }),
- content: (0,external_React_.createElement)(external_React_.Fragment, null, isLoading && (0,external_wp_i18n_namespaceObject.__)('Loading templates…'), !isLoading && (0,external_React_.createElement)(SidebarTemplatesList, {
- templates: templates
- })),
- footer: !isMobileViewport && (0,external_React_.createElement)(SidebarNavigationItem, {
- withChevron: true,
- ...browseAllLink
- }, (0,external_wp_i18n_namespaceObject.__)('Manage all templates'))
+ const actions = [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CopyButton, {
+ text: error.stack,
+ children: (0,external_wp_i18n_namespaceObject.__)('Copy Error')
+ }, "copy-error")];
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
+ className: "editor-error-boundary",
+ actions: actions,
+ children: message
});
}
-function TemplatesGroup({
- title,
- templates
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, null, !!title && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItem, {
- className: "edit-site-sidebar-navigation-screen-templates__templates-group-title"
- }, title), templates.map(template => (0,external_React_.createElement)(TemplateItem, {
- postType: constants_TEMPLATE_POST_TYPE,
- postId: template.id,
- key: template.id,
- withChevron: true
- }, (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(template.title?.rendered || template.slug))));
-}
-function SidebarTemplatesList({
- templates
-}) {
- if (!templates?.length) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItem, null, (0,external_wp_i18n_namespaceObject.__)('No templates found')));
- }
- const sortedTemplates = templates ? [...templates] : [];
- sortedTemplates.sort((a, b) => a.title.rendered.localeCompare(b.title.rendered));
- const {
- hierarchyTemplates,
- customTemplates,
- ...plugins
- } = sortedTemplates.reduce((accumulator, template) => {
- const {
- original_source: originalSource,
- author_text: authorText
- } = template;
- if (originalSource === 'plugin') {
- if (!accumulator[authorText]) {
- accumulator[authorText] = [];
- }
- accumulator[authorText].push(template);
- } else if (template.is_custom) {
- accumulator.customTemplates.push(template);
- } else {
- accumulator.hierarchyTemplates.push(template);
- }
- return accumulator;
- }, {
- hierarchyTemplates: [],
- customTemplates: []
- });
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 3
- }, !!hierarchyTemplates.length && (0,external_React_.createElement)(TemplatesGroup, {
- templates: hierarchyTemplates
- }), !!customTemplates.length && (0,external_React_.createElement)(TemplatesGroup, {
- title: (0,external_wp_i18n_namespaceObject.__)('Custom'),
- templates: customTemplates
- }), Object.entries(plugins).map(([plugin, pluginTemplates]) => {
- return (0,external_React_.createElement)(TemplatesGroup, {
- key: plugin,
- title: plugin,
- templates: pluginTemplates
- });
- }));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-template/template-areas.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/error-boundary/index.js
/**
* WordPress dependencies
*/
@@ -15698,2198 +9196,35 @@ function SidebarTemplatesList({
-
-
-
/**
* Internal dependencies
*/
-
-
-
-
-function TemplateAreaButton({
- postId,
- area,
- title
-}) {
- const templatePartArea = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const defaultAreas = select(external_wp_editor_namespaceObject.store).__experimentalGetDefaultTemplatePartAreas();
- return defaultAreas.find(defaultArea => defaultArea.area === area);
- }, [area]);
- const linkInfo = useLink({
- postType: TEMPLATE_PART_POST_TYPE,
- postId
- });
- return (0,external_React_.createElement)(SidebarNavigationItem, {
- className: "edit-site-sidebar-navigation-screen-template__template-area-button",
- ...linkInfo,
- icon: templatePartArea?.icon,
- withChevron: true
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, {
- limit: 20,
- ellipsizeMode: "tail",
- numberOfLines: 1,
- className: "edit-site-sidebar-navigation-screen-template__template-area-label-text"
- }, (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title)));
-}
-function TemplateAreas() {
- const {
- templatePartAreas,
- currentTemplateParts
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getSettings,
- getCurrentTemplateTemplateParts
- } = unlock(select(store_store));
- return {
- templatePartAreas: getSettings()?.defaultTemplatePartAreas,
- currentTemplateParts: getCurrentTemplateTemplateParts()
- };
- }, []);
-
- /*
- * Merge data in currentTemplateParts with templatePartAreas,
- * which contains the template icon and fallback labels
- */
- const templateAreas = (0,external_wp_element_namespaceObject.useMemo)(() => {
- // Keep track of template part IDs that have already been added to the array.
- const templatePartIds = new Set();
- const filterOutDuplicateTemplateParts = currentTemplatePart => {
- // If the template part has already been added to the array, skip it.
- if (templatePartIds.has(currentTemplatePart.templatePart.id)) {
- return;
- }
- // Add to the array of template part IDs.
- templatePartIds.add(currentTemplatePart.templatePart.id);
- return currentTemplatePart;
- };
- return currentTemplateParts.length && templatePartAreas ? currentTemplateParts.filter(filterOutDuplicateTemplateParts).map(({
- templatePart,
- block
- }) => ({
- ...templatePartAreas?.find(({
- area
- }) => area === templatePart?.area),
- ...templatePart,
- clientId: block.clientId
- })) : [];
- }, [currentTemplateParts, templatePartAreas]);
- if (!templateAreas.length) {
- return null;
- }
- return (0,external_React_.createElement)(SidebarNavigationScreenDetailsPanel, {
- title: (0,external_wp_i18n_namespaceObject.__)('Areas'),
- spacing: 3
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, null, templateAreas.map(({
- clientId,
- label,
- area,
- theme,
- slug,
- title
- }) => (0,external_React_.createElement)(SidebarNavigationScreenDetailsPanelRow, {
- key: clientId
- }, (0,external_React_.createElement)(TemplateAreaButton, {
- postId: `${theme}//${slug}`,
- title: title?.rendered || label,
- area: area
- })))));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/use-edited-entity-record/index.js
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-function useEditedEntityRecord(postType, postId) {
- const {
- record,
- title,
- description,
- isLoaded,
- icon
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEditedPostType,
- getEditedPostId
- } = select(store_store);
- const {
- getEditedEntityRecord,
- hasFinishedResolution
- } = select(external_wp_coreData_namespaceObject.store);
- const {
- __experimentalGetTemplateInfo: getTemplateInfo
- } = select(external_wp_editor_namespaceObject.store);
- const usedPostType = postType !== null && postType !== void 0 ? postType : getEditedPostType();
- const usedPostId = postId !== null && postId !== void 0 ? postId : getEditedPostId();
- const _record = getEditedEntityRecord('postType', usedPostType, usedPostId);
- const _isLoaded = usedPostId && hasFinishedResolution('getEditedEntityRecord', ['postType', usedPostType, usedPostId]);
- const templateInfo = getTemplateInfo(_record);
- return {
- record: _record,
- title: templateInfo.title,
- description: templateInfo.description,
- isLoaded: _isLoaded,
- icon: templateInfo.icon
+class ErrorBoundary extends external_wp_element_namespaceObject.Component {
+ constructor() {
+ super(...arguments);
+ this.state = {
+ error: null
};
- }, [postType, postId]);
- return {
- isLoaded,
- icon,
- record,
- getTitle: () => title ? (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title) : null,
- getDescription: () => description ? (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(description) : null
- };
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plugins.js
-
-/**
- * WordPress dependencies
- */
-
-const plugins = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"
-}));
-/* harmony default export */ const library_plugins = (plugins);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/globe.js
-
-/**
- * WordPress dependencies
- */
-
-const globe = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"
-}));
-/* harmony default export */ const library_globe = (globe);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/list/added-by.js
-
-// @ts-check
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-/** @typedef {'wp_template'|'wp_template_part'} TemplateType */
-
-/**
- * @typedef {'theme'|'plugin'|'site'|'user'} AddedByType
- *
- * @typedef AddedByData
- * @type {Object}
- * @property {AddedByType} type The type of the data.
- * @property {JSX.Element} icon The icon to display.
- * @property {string} [imageUrl] The optional image URL to display.
- * @property {string} [text] The text to display.
- * @property {boolean} isCustomized Whether the template has been customized.
- *
- * @param {TemplateType} postType The template post type.
- * @param {number} postId The template post id.
- * @return {AddedByData} The added by object or null.
- */
-function useAddedBy(postType, postId) {
- return (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEntityRecord,
- getMedia,
- getUser,
- getEditedEntityRecord
- } = select(external_wp_coreData_namespaceObject.store);
- const template = getEditedEntityRecord('postType', postType, postId);
- const originalSource = template?.original_source;
- const authorText = template?.author_text;
- switch (originalSource) {
- case 'theme':
- {
- return {
- type: originalSource,
- icon: library_layout,
- text: authorText,
- isCustomized: template.source === TEMPLATE_ORIGINS.custom
- };
- }
- case 'plugin':
- {
- return {
- type: originalSource,
- icon: library_plugins,
- text: authorText,
- isCustomized: template.source === TEMPLATE_ORIGINS.custom
- };
- }
- case 'site':
- {
- const siteData = getEntityRecord('root', '__unstableBase');
- return {
- type: originalSource,
- icon: library_globe,
- imageUrl: siteData?.site_logo ? getMedia(siteData.site_logo)?.source_url : undefined,
- text: authorText,
- isCustomized: false
- };
- }
- default:
- {
- const user = getUser(template.author);
- return {
- type: 'user',
- icon: comment_author_avatar,
- imageUrl: user?.avatar_urls?.[48],
- text: authorText,
- isCustomized: false
- };
- }
- }
- }, [postType, postId]);
-}
-
-/**
- * @param {Object} props
- * @param {string} props.imageUrl
- */
-function AvatarImage({
- imageUrl
-}) {
- const [isImageLoaded, setIsImageLoaded] = (0,external_wp_element_namespaceObject.useState)(false);
- return (0,external_React_.createElement)("div", {
- className: classnames_default()('edit-site-list-added-by__avatar', {
- 'is-loaded': isImageLoaded
- })
- }, (0,external_React_.createElement)("img", {
- onLoad: () => setIsImageLoaded(true),
- alt: "",
- src: imageUrl
- }));
-}
-
-/**
- * @param {Object} props
- * @param {TemplateType} props.postType The template post type.
- * @param {number} props.postId The template post id.
- */
-function AddedBy({
- postType,
- postId
-}) {
- const {
- text,
- icon,
- imageUrl,
- isCustomized
- } = useAddedBy(postType, postId);
- return createElement(HStack, {
- alignment: "left"
- }, imageUrl ? createElement(AvatarImage, {
- imageUrl: imageUrl
- }) : createElement("div", {
- className: "edit-site-list-added-by__icon"
- }, createElement(Icon, {
- icon: icon
- })), createElement("span", null, text, isCustomized && createElement("span", {
- className: "edit-site-list-added-by__customized-info"
- }, postType === TEMPLATE_POST_TYPE ? _x('Customized', 'template') : _x('Customized', 'template part'))));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/utils/is-template-removable.js
-/**
- * Internal dependencies
- */
-
-
-/**
- * Check if a template is removable.
- *
- * @param {Object} template The template entity to check.
- * @return {boolean} Whether the template is revertable.
- */
-function isTemplateRemovable(template) {
- if (!template) {
- return false;
- }
- return template.source === TEMPLATE_ORIGINS.custom && !template.has_theme_file;
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/template-actions/rename-menu-item.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-function RenameMenuItem({
- template,
- onClose
-}) {
- const title = (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(template.title.rendered);
- const [editedTitle, setEditedTitle] = (0,external_wp_element_namespaceObject.useState)(title);
- const [isModalOpen, setIsModalOpen] = (0,external_wp_element_namespaceObject.useState)(false);
- const {
- editEntityRecord,
- __experimentalSaveSpecifiedEntityEdits: saveSpecifiedEntityEdits
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const {
- createSuccessNotice,
- createErrorNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- if (template.type === constants_TEMPLATE_POST_TYPE && !template.is_custom) {
- return null;
}
- async function onTemplateRename(event) {
- event.preventDefault();
- try {
- await editEntityRecord('postType', template.type, template.id, {
- title: editedTitle
- });
-
- // Update state before saving rerenders the list.
- setEditedTitle('');
- setIsModalOpen(false);
- onClose();
-
- // Persist edited entity.
- await saveSpecifiedEntityEdits('postType', template.type, template.id, ['title'],
- // Only save title to avoid persisting other edits.
- {
- throwOnError: true
- });
- createSuccessNotice(template.type === constants_TEMPLATE_POST_TYPE ? (0,external_wp_i18n_namespaceObject.__)('Template renamed.') : (0,external_wp_i18n_namespaceObject.__)('Template part renamed.'), {
- type: 'snackbar'
- });
- } catch (error) {
- const fallbackErrorMessage = template.type === constants_TEMPLATE_POST_TYPE ? (0,external_wp_i18n_namespaceObject.__)('An error occurred while renaming the template.') : (0,external_wp_i18n_namespaceObject.__)('An error occurred while renaming the template part.');
- const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : fallbackErrorMessage;
- createErrorNotice(errorMessage, {
- type: 'snackbar'
- });
- }
- }
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- setIsModalOpen(true);
- setEditedTitle(title);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Rename')), isModalOpen && (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
- title: (0,external_wp_i18n_namespaceObject.__)('Rename'),
- onRequestClose: () => {
- setIsModalOpen(false);
- },
- overlayClassName: "edit-site-list__rename-modal"
- }, (0,external_React_.createElement)("form", {
- onSubmit: onTemplateRename
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "5"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Name'),
- value: editedTitle,
- onChange: setEditedTitle,
- required: true
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- variant: "tertiary",
- onClick: () => {
- setIsModalOpen(false);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- variant: "primary",
- type: "submit"
- }, (0,external_wp_i18n_namespaceObject.__)('Save')))))));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/template-actions/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-function TemplateActions({
- postType,
- postId,
- className,
- toggleProps,
- onRemove
-}) {
- const template = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getEntityRecord('postType', postType, postId), [postType, postId]);
- const {
- removeTemplate,
- revertTemplate
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const {
- saveEditedEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const {
- createSuccessNotice,
- createErrorNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- const isRemovable = isTemplateRemovable(template);
- const isRevertable = isTemplateRevertable(template);
- if (!isRemovable && !isRevertable) {
- return null;
- }
- async function revertAndSaveTemplate() {
- try {
- await revertTemplate(template, {
- allowUndo: false
- });
- await saveEditedEntityRecord('postType', template.type, template.id);
- createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The template/part's name. */
- (0,external_wp_i18n_namespaceObject.__)('"%s" reverted.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(template.title.rendered)), {
- type: 'snackbar',
- id: 'edit-site-template-reverted'
- });
- } catch (error) {
- const fallbackErrorMessage = template.type === constants_TEMPLATE_POST_TYPE ? (0,external_wp_i18n_namespaceObject.__)('An error occurred while reverting the template.') : (0,external_wp_i18n_namespaceObject.__)('An error occurred while reverting the template part.');
- const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : fallbackErrorMessage;
- createErrorNotice(errorMessage, {
- type: 'snackbar'
- });
- }
+ componentDidCatch(error) {
+ (0,external_wp_hooks_namespaceObject.doAction)('editor.ErrorBoundary.errorLogged', error);
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
- icon: more_vertical,
- label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
- className: className,
- toggleProps: toggleProps
- }, ({
- onClose
- }) => (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, isRemovable && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(RenameMenuItem, {
- template: template,
- onClose: onClose
- }), (0,external_React_.createElement)(DeleteMenuItem, {
- onRemove: () => {
- removeTemplate(template);
- onRemove?.();
- onClose();
- },
- title: template.title.rendered
- })), isRevertable && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- info: (0,external_wp_i18n_namespaceObject.__)('Use the template as supplied by the theme.'),
- onClick: () => {
- revertAndSaveTemplate();
- onClose();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Clear customizations'))));
-}
-function DeleteMenuItem({
- onRemove,
- title
-}) {
- const [isModalOpen, setIsModalOpen] = (0,external_wp_element_namespaceObject.useState)(false);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- isDestructive: true,
- onClick: () => setIsModalOpen(true)
- }, (0,external_wp_i18n_namespaceObject.__)('Delete')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
- isOpen: isModalOpen,
- onConfirm: onRemove,
- onCancel: () => setIsModalOpen(false),
- confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Delete')
- }, (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: The template or template part's title.
- (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to delete "%s"?'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title))));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-template/home-template-details.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-const EMPTY_OBJECT = {};
-function HomeTemplateDetails() {
- const {
- editEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const {
- allowCommentsOnNewPosts,
- postsPerPage,
- postsPageTitle,
- postsPageId
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEntityRecord
- } = select(external_wp_coreData_namespaceObject.store);
- const siteSettings = getEntityRecord('root', 'site');
- const _postsPageRecord = siteSettings?.page_for_posts ? getEntityRecord('postType', 'page', siteSettings?.page_for_posts) : EMPTY_OBJECT;
+ static getDerivedStateFromError(error) {
return {
- allowCommentsOnNewPosts: siteSettings?.default_comment_status === 'open',
- postsPageTitle: _postsPageRecord?.title?.rendered,
- postsPageId: _postsPageRecord?.id,
- postsPerPage: siteSettings?.posts_per_page
+ error
};
- }, []);
- const [commentsOnNewPostsValue, setCommentsOnNewPostsValue] = (0,external_wp_element_namespaceObject.useState)('');
- const [postsCountValue, setPostsCountValue] = (0,external_wp_element_namespaceObject.useState)(1);
- const [postsPageTitleValue, setPostsPageTitleValue] = (0,external_wp_element_namespaceObject.useState)('');
-
- /*
- * This hook serves to set the server-retrieved values,
- * postsPageTitle, allowCommentsOnNewPosts, postsPerPage,
- * to local state.
- */
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- setCommentsOnNewPostsValue(allowCommentsOnNewPosts);
- setPostsPageTitleValue(postsPageTitle);
- setPostsCountValue(postsPerPage);
- }, [postsPageTitle, allowCommentsOnNewPosts, postsPerPage]);
- const setAllowCommentsOnNewPosts = newValue => {
- setCommentsOnNewPostsValue(newValue);
- editEntityRecord('root', 'site', undefined, {
- default_comment_status: newValue ? 'open' : null
- });
- };
- const setPostsPageTitle = newValue => {
- setPostsPageTitleValue(newValue);
- editEntityRecord('postType', 'page', postsPageId, {
- title: newValue
- });
- };
- const setPostsPerPage = newValue => {
- setPostsCountValue(newValue);
- editEntityRecord('root', 'site', undefined, {
- posts_per_page: newValue
- });
- };
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(SidebarNavigationScreenDetailsPanel, {
- spacing: 6
- }, postsPageId && (0,external_React_.createElement)(SidebarNavigationScreenDetailsPanelRow, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalInputControl, {
- className: "edit-site-sidebar-navigation-screen__input-control",
- placeholder: (0,external_wp_i18n_namespaceObject.__)('No Title'),
- size: '__unstable-large',
- value: postsPageTitleValue,
- onChange: (0,external_wp_compose_namespaceObject.debounce)(setPostsPageTitle, 300),
- label: (0,external_wp_i18n_namespaceObject.__)('Blog title'),
- help: (0,external_wp_i18n_namespaceObject.__)('Set the Posts Page title. Appears in search results, and when the page is shared on social media.')
- })), (0,external_React_.createElement)(SidebarNavigationScreenDetailsPanelRow, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNumberControl, {
- className: "edit-site-sidebar-navigation-screen__input-control",
- placeholder: 0,
- value: postsCountValue,
- size: '__unstable-large',
- spinControls: "custom",
- step: "1",
- min: "1",
- onChange: setPostsPerPage,
- label: (0,external_wp_i18n_namespaceObject.__)('Posts per page'),
- help: (0,external_wp_i18n_namespaceObject.__)('Set the default number of posts to display on blog pages, including categories and tags. Some templates may override this setting.')
- }))), (0,external_React_.createElement)(SidebarNavigationScreenDetailsPanel, {
- title: (0,external_wp_i18n_namespaceObject.__)('Discussion'),
- spacing: 3
- }, (0,external_React_.createElement)(SidebarNavigationScreenDetailsPanelRow, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- className: "edit-site-sidebar-navigation-screen__input-control",
- label: (0,external_wp_i18n_namespaceObject.__)('Allow comments on new posts'),
- help: (0,external_wp_i18n_namespaceObject.__)('Changes will apply to new posts only. Individual posts may override these settings.'),
- checked: commentsOnNewPostsValue,
- onChange: setAllowCommentsOnNewPosts
- }))));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-template/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-
-
-
-
-function useTemplateDetails(postType, postId) {
- const {
- getDescription,
- getTitle,
- record
- } = useEditedEntityRecord(postType, postId);
- const currentTheme = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getCurrentTheme(), []);
- const addedBy = useAddedBy(postType, postId);
- const isAddedByActiveTheme = addedBy.type === 'theme' && record.theme === currentTheme?.stylesheet;
- const title = getTitle();
- let descriptionText = getDescription();
- if (!descriptionText && addedBy.text) {
- descriptionText = (0,external_wp_i18n_namespaceObject.__)('This is a custom template that can be applied manually to any Post or Page.');
- }
- const content = record?.slug === 'home' || record?.slug === 'index' ? (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(HomeTemplateDetails, null), (0,external_React_.createElement)(TemplateAreas, null)) : (0,external_React_.createElement)(TemplateAreas, null);
- const footer = record?.modified ? (0,external_React_.createElement)(SidebarNavigationScreenDetailsFooter, {
- record: record
- }) : null;
- const description = (0,external_React_.createElement)(external_React_.Fragment, null, descriptionText, addedBy.text && !isAddedByActiveTheme && (0,external_React_.createElement)("span", {
- className: "edit-site-sidebar-navigation-screen-template__added-by-description"
- }, (0,external_React_.createElement)("span", {
- className: "edit-site-sidebar-navigation-screen-template__added-by-description-author"
- }, (0,external_React_.createElement)("span", {
- className: "edit-site-sidebar-navigation-screen-template__added-by-description-author-icon"
- }, addedBy.imageUrl ? (0,external_React_.createElement)("img", {
- src: addedBy.imageUrl,
- alt: "",
- width: "24",
- height: "24"
- }) : (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- icon: addedBy.icon
- })), addedBy.text), addedBy.isCustomized && (0,external_React_.createElement)("span", {
- className: "edit-site-sidebar-navigation-screen-template__added-by-description-customized"
- }, (0,external_wp_i18n_namespaceObject._x)('(Customized)', 'template'))));
- return {
- title,
- description,
- content,
- footer
- };
-}
-function SidebarNavigationScreenTemplate() {
- const navigator = (0,external_wp_components_namespaceObject.__experimentalUseNavigator)();
- const {
- params: {
- postType,
- postId
- }
- } = navigator;
- const {
- setCanvasMode
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
- const {
- title,
- content,
- description,
- footer
- } = useTemplateDetails(postType, postId);
- return (0,external_React_.createElement)(SidebarNavigationScreen, {
- title: title,
- actions: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(TemplateActions, {
- postType: postType,
- postId: postId,
- toggleProps: {
- as: SidebarButton
- },
- onRemove: () => {
- navigator.goTo(`/${postType}/all`);
- }
- }), (0,external_React_.createElement)(SidebarButton, {
- onClick: () => setCanvasMode('edit'),
- label: (0,external_wp_i18n_namespaceObject.__)('Edit'),
- icon: library_pencil
- })),
- description: description,
- content: content,
- footer: footer
- });
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/file.js
-
-/**
- * WordPress dependencies
- */
-
-const file = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"
-}));
-/* harmony default export */ const library_file = (file);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/symbol-filled.js
-
-/**
- * WordPress dependencies
- */
-
-const symbolFilled = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
-}));
-/* harmony default export */ const symbol_filled = (symbolFilled);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/upload.js
-
-/**
- * WordPress dependencies
- */
-
-const upload = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"
-}));
-/* harmony default export */ const library_upload = (upload);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/utils/template-part-create.js
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-const useExistingTemplateParts = () => {
- return (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getEntityRecords('postType', TEMPLATE_PART_POST_TYPE, {
- per_page: -1
- }), []);
-};
-
-/**
- * Return a unique template part title based on
- * the given title and existing template parts.
- *
- * @param {string} title The original template part title.
- * @param {Object} templateParts The array of template part entities.
- * @return {string} A unique template part title.
- */
-const getUniqueTemplatePartTitle = (title, templateParts) => {
- const lowercaseTitle = title.toLowerCase();
- const existingTitles = templateParts.map(templatePart => templatePart.title.rendered.toLowerCase());
- if (!existingTitles.includes(lowercaseTitle)) {
- return title;
- }
- let suffix = 2;
- while (existingTitles.includes(`${lowercaseTitle} ${suffix}`)) {
- suffix++;
- }
- return `${title} ${suffix}`;
-};
-
-/**
- * Get a valid slug for a template part.
- * Currently template parts only allow latin chars.
- * The fallback slug will receive suffix by default.
- *
- * @param {string} title The template part title.
- * @return {string} A valid template part slug.
- */
-const getCleanTemplatePartSlug = title => {
- return paramCase(title).replace(/[^\w-]+/g, '') || 'wp-custom-part';
-};
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/create-template-part-modal/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-function CreateTemplatePartModal({
- modalTitle = (0,external_wp_i18n_namespaceObject.__)('Create template part'),
- ...restProps
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
- title: modalTitle,
- onRequestClose: restProps.closeModal,
- overlayClassName: "edit-site-create-template-part-modal"
- }, (0,external_React_.createElement)(CreateTemplatePartModalContents, {
- ...restProps
- }));
-}
-function CreateTemplatePartModalContents({
- defaultArea = TEMPLATE_PART_AREA_DEFAULT_CATEGORY,
- blocks = [],
- confirmLabel = (0,external_wp_i18n_namespaceObject.__)('Create'),
- closeModal,
- onCreate,
- onError,
- defaultTitle = ''
-}) {
- const {
- createErrorNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- const {
- saveEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const existingTemplateParts = useExistingTemplateParts();
- const [title, setTitle] = (0,external_wp_element_namespaceObject.useState)(defaultTitle);
- const [area, setArea] = (0,external_wp_element_namespaceObject.useState)(defaultArea);
- const [isSubmitting, setIsSubmitting] = (0,external_wp_element_namespaceObject.useState)(false);
- const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(CreateTemplatePartModal);
- const templatePartAreas = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_editor_namespaceObject.store).__experimentalGetDefaultTemplatePartAreas(), []);
- async function createTemplatePart() {
- if (!title || isSubmitting) {
- return;
- }
- try {
- setIsSubmitting(true);
- const uniqueTitle = getUniqueTemplatePartTitle(title, existingTemplateParts);
- const cleanSlug = getCleanTemplatePartSlug(uniqueTitle);
- const templatePart = await saveEntityRecord('postType', TEMPLATE_PART_POST_TYPE, {
- slug: cleanSlug,
- title: uniqueTitle,
- content: (0,external_wp_blocks_namespaceObject.serialize)(blocks),
- area
- }, {
- throwOnError: true
- });
- await onCreate(templatePart);
-
- // TODO: Add a success notice?
- } catch (error) {
- const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : (0,external_wp_i18n_namespaceObject.__)('An error occurred while creating the template part.');
- createErrorNotice(errorMessage, {
- type: 'snackbar'
- });
- onError?.();
- } finally {
- setIsSubmitting(false);
- }
- }
- return (0,external_React_.createElement)("form", {
- onSubmit: async event => {
- event.preventDefault();
- await createTemplatePart();
- }
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "4"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Name'),
- value: title,
- onChange: setTitle,
- required: true
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.BaseControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Area'),
- id: `edit-site-create-template-part-modal__area-selection-${instanceId}`,
- className: "edit-site-create-template-part-modal__area-base-control"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalRadioGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Area'),
- className: "edit-site-create-template-part-modal__area-radio-group",
- id: `edit-site-create-template-part-modal__area-selection-${instanceId}`,
- onChange: setArea,
- checked: area
- }, templatePartAreas.map(({
- icon,
- label,
- area: value,
- description
- }) => (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalRadio, {
- key: label,
- value: value,
- className: "edit-site-create-template-part-modal__area-radio"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- align: "start",
- justify: "start"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- icon: icon
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexBlock, {
- className: "edit-site-create-template-part-modal__option-label"
- }, label, (0,external_React_.createElement)("div", null, description)), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- className: "edit-site-create-template-part-modal__checkbox"
- }, area === value && (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- icon: library_check
- }))))))), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: () => {
- closeModal();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- type: "submit",
- "aria-disabled": !title || isSubmitting,
- isBusy: isSubmitting
- }, confirmLabel))));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/add-new-pattern/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-const {
- useHistory: add_new_pattern_useHistory,
- useLocation: add_new_pattern_useLocation
-} = unlock(external_wp_router_namespaceObject.privateApis);
-const {
- CreatePatternModal,
- useAddPatternCategory
-} = unlock(external_wp_patterns_namespaceObject.privateApis);
-function AddNewPattern() {
- const history = add_new_pattern_useHistory();
- const {
- params
- } = add_new_pattern_useLocation();
- const [showPatternModal, setShowPatternModal] = (0,external_wp_element_namespaceObject.useState)(false);
- const [showTemplatePartModal, setShowTemplatePartModal] = (0,external_wp_element_namespaceObject.useState)(false);
- const isBlockBasedTheme = (0,external_wp_data_namespaceObject.useSelect)(select => {
- return select(external_wp_coreData_namespaceObject.store).getCurrentTheme()?.is_block_theme;
- }, []);
- const {
- createPatternFromFile
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(external_wp_patterns_namespaceObject.store));
- const {
- createSuccessNotice,
- createErrorNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- const patternUploadInputRef = (0,external_wp_element_namespaceObject.useRef)();
- function handleCreatePattern({
- pattern,
- categoryId
- }) {
- setShowPatternModal(false);
- history.push({
- postId: pattern.id,
- postType: PATTERN_TYPES.user,
- categoryType: PATTERN_TYPES.theme,
- categoryId,
- canvas: 'edit'
- });
- }
- function handleCreateTemplatePart(templatePart) {
- setShowTemplatePartModal(false);
-
- // Navigate to the created template part editor.
- history.push({
- postId: templatePart.id,
- postType: TEMPLATE_PART_POST_TYPE,
- canvas: 'edit'
- });
- }
- function handleError() {
- setShowPatternModal(false);
- setShowTemplatePartModal(false);
- }
- const controls = [{
- icon: library_symbol,
- onClick: () => setShowPatternModal(true),
- title: (0,external_wp_i18n_namespaceObject.__)('Create pattern')
- }];
- if (isBlockBasedTheme) {
- controls.push({
- icon: symbol_filled,
- onClick: () => setShowTemplatePartModal(true),
- title: (0,external_wp_i18n_namespaceObject.__)('Create template part')
- });
- }
- controls.push({
- icon: library_upload,
- onClick: () => {
- patternUploadInputRef.current.click();
- },
- title: (0,external_wp_i18n_namespaceObject.__)('Import pattern from JSON')
- });
- const {
- categoryMap,
- findOrCreateTerm
- } = useAddPatternCategory();
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
- controls: controls,
- toggleProps: {
- as: SidebarButton
- },
- icon: library_plus,
- label: (0,external_wp_i18n_namespaceObject.__)('Create pattern')
- }), showPatternModal && (0,external_React_.createElement)(CreatePatternModal, {
- onClose: () => setShowPatternModal(false),
- onSuccess: handleCreatePattern,
- onError: handleError
- }), showTemplatePartModal && (0,external_React_.createElement)(CreateTemplatePartModal, {
- closeModal: () => setShowTemplatePartModal(false),
- blocks: [],
- onCreate: handleCreateTemplatePart,
- onError: handleError
- }), (0,external_React_.createElement)("input", {
- type: "file",
- accept: ".json",
- hidden: true,
- ref: patternUploadInputRef,
- onChange: async event => {
- const file = event.target.files?.[0];
- if (!file) return;
- try {
- let currentCategoryId;
- // When we're not handling template parts, we should
- // add or create the proper pattern category.
- if (params.categoryType !== TEMPLATE_PART_POST_TYPE) {
- const currentCategory = categoryMap.values().find(term => term.name === params.categoryId);
- if (!!currentCategory) {
- currentCategoryId = currentCategory.id || (await findOrCreateTerm(currentCategory.label));
- }
- }
- const pattern = await createPatternFromFile(file, currentCategoryId ? [currentCategoryId] : undefined);
-
- // Navigate to the All patterns category for the newly created pattern
- // if we're not on that page already and if we're not in the `my-patterns`
- // category.
- if (!currentCategoryId && params.categoryId !== 'my-patterns') {
- history.push({
- path: `/patterns`,
- categoryType: PATTERN_TYPES.theme,
- categoryId: PATTERN_DEFAULT_CATEGORY
- });
- }
- createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: The imported pattern's title.
- (0,external_wp_i18n_namespaceObject.__)('Imported "%s" from JSON.'), pattern.title.raw), {
- type: 'snackbar',
- id: 'import-pattern-success'
- });
- } catch (err) {
- createErrorNotice(err.message, {
- type: 'snackbar',
- id: 'import-pattern-error'
- });
- } finally {
- event.target.value = '';
- }
- }
- }));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-patterns/category-item.js
-
-/**
- * Internal dependencies
- */
-
-
-function CategoryItem({
- count,
- icon,
- id,
- isActive,
- label,
- type
-}) {
- const linkInfo = useLink({
- path: '/patterns',
- categoryType: type,
- categoryId: id
- });
- if (!count) {
- return;
- }
- return (0,external_React_.createElement)(SidebarNavigationItem, {
- ...linkInfo,
- icon: icon,
- suffix: (0,external_React_.createElement)("span", null, count),
- "aria-current": isActive ? 'true' : undefined
- }, label);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.js
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-
-function useDefaultPatternCategories() {
- const blockPatternCategories = (0,external_wp_data_namespaceObject.useSelect)(select => {
- var _settings$__experimen;
- const {
- getSettings
- } = unlock(select(store_store));
- const settings = getSettings();
- return (_settings$__experimen = settings.__experimentalAdditionalBlockPatternCategories) !== null && _settings$__experimen !== void 0 ? _settings$__experimen : settings.__experimentalBlockPatternCategories;
- });
- const restBlockPatternCategories = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getBlockPatternCategories());
- return [...(blockPatternCategories || []), ...(restBlockPatternCategories || [])];
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-patterns/utils.js
-const filterOutDuplicatesByName = (currentItem, index, items) => index === items.findIndex(item => currentItem.name === item.name);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-patterns/use-theme-patterns.js
-/**
- * WordPress dependencies
- */
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-function useThemePatterns() {
- const blockPatterns = (0,external_wp_data_namespaceObject.useSelect)(select => {
- var _getSettings$__experi;
- const {
- getSettings
- } = unlock(select(store_store));
- return (_getSettings$__experi = getSettings().__experimentalAdditionalBlockPatterns) !== null && _getSettings$__experi !== void 0 ? _getSettings$__experi : getSettings().__experimentalBlockPatterns;
- });
- const restBlockPatterns = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getBlockPatterns());
- const patterns = (0,external_wp_element_namespaceObject.useMemo)(() => [...(blockPatterns || []), ...(restBlockPatterns || [])].filter(pattern => !EXCLUDED_PATTERN_SOURCES.includes(pattern.source)).filter(filterOutDuplicatesByName).filter(pattern => pattern.inserter !== false), [blockPatterns, restBlockPatterns]);
- return patterns;
-}
-
-;// CONCATENATED MODULE: ./node_modules/rememo/rememo.js
-
-
-/** @typedef {(...args: any[]) => *[]} GetDependants */
-
-/** @typedef {() => void} Clear */
-
-/**
- * @typedef {{
- * getDependants: GetDependants,
- * clear: Clear
- * }} EnhancedSelector
- */
-
-/**
- * Internal cache entry.
- *
- * @typedef CacheNode
- *
- * @property {?CacheNode|undefined} [prev] Previous node.
- * @property {?CacheNode|undefined} [next] Next node.
- * @property {*[]} args Function arguments for cache entry.
- * @property {*} val Function result.
- */
-
-/**
- * @typedef Cache
- *
- * @property {Clear} clear Function to clear cache.
- * @property {boolean} [isUniqueByDependants] Whether dependants are valid in
- * considering cache uniqueness. A cache is unique if dependents are all arrays
- * or objects.
- * @property {CacheNode?} [head] Cache head.
- * @property {*[]} [lastDependants] Dependants from previous invocation.
- */
-
-/**
- * Arbitrary value used as key for referencing cache object in WeakMap tree.
- *
- * @type {{}}
- */
-var LEAF_KEY = {};
-
-/**
- * Returns the first argument as the sole entry in an array.
- *
- * @template T
- *
- * @param {T} value Value to return.
- *
- * @return {[T]} 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 {Cache} Cache object.
- */
-function createCache() {
- /** @type {Cache} */
- 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 {*[]} a First array.
- * @param {*[]} 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.
- *
- * @template {(...args: *[]) => *} S
- *
- * @param {S} selector Selector function.
- * @param {GetDependants=} getDependants Dependant getter returning an array of
- * references used in cache bust consideration.
- */
-/* harmony default export */ function rememo(selector, getDependants) {
- /** @type {WeakMap<*,*>} */
- var rootCache;
-
- /** @type {GetDependants} */
- var normalizedGetDependants = getDependants ? getDependants : arrayOf;
-
- /**
- * 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 {*[]} dependants Selector dependants.
- *
- * @return {Cache} Cache object.
- */
- function getCache(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);
- }
-
- /**
- * Resets root memoization cache.
- */
- function clear() {
- rootCache = new WeakMap();
- }
-
- /* eslint-disable jsdoc/check-param-names */
- /**
- * The augmented selector call, considering first whether dependants have
- * changed before passing it to underlying memoize function.
- *
- * @param {*} source Source object for derivation.
- * @param {...*} extraArgs Additional arguments to pass to selector.
- *
- * @return {*} Selector result.
- */
- /* eslint-enable jsdoc/check-param-names */
- 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 = normalizedGetDependants.apply(null, args);
- cache = getCache(dependants);
-
- // If not guaranteed uniqueness by dependants (primitive type), 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.
- /** @type {CacheNode} */ (node.prev).next = node.next;
- if (node.next) {
- node.next.prev = node.prev;
- }
-
- node.next = cache.head;
- node.prev = null;
- /** @type {CacheNode} */ (cache.head).prev = node;
- cache.head = node;
- }
-
- // Return immediately
- return node.val;
- }
-
- // No cached value found. Continue to insertion phase:
-
- node = /** @type {CacheNode} */ ({
- // 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 = normalizedGetDependants;
- callSelector.clear = clear;
- clear();
-
- return /** @type {S & EnhancedSelector} */ (callSelector);
-}
-
-// EXTERNAL MODULE: ./node_modules/remove-accents/index.js
-var remove_accents = __webpack_require__(9681);
-var remove_accents_default = /*#__PURE__*/__webpack_require__.n(remove_accents);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-patterns/search-items.js
-/**
- * External dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-
-// Default search helpers.
-const defaultGetName = item => item.name || '';
-const defaultGetTitle = item => item.title;
-const defaultGetDescription = item => item.description || '';
-const defaultGetKeywords = item => item.keywords || [];
-const defaultHasCategory = () => false;
-
-/**
- * Extracts words from an input string.
- *
- * @param {string} input The input string.
- *
- * @return {Array} Words, extracted from the input string.
- */
-function extractWords(input = '') {
- return noCase(input, {
- splitRegexp: [/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,
- // One lowercase or digit, followed by one uppercase.
- /([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu // One uppercase followed by one uppercase and one lowercase.
- ],
- stripRegexp: /(\p{C}|\p{P}|\p{S})+/giu // Anything that's not a punctuation, symbol or control/format character.
- }).split(' ').filter(Boolean);
-}
-
-/**
- * Sanitizes the search input string.
- *
- * @param {string} input The search input to normalize.
- *
- * @return {string} The normalized search input.
- */
-function normalizeSearchInput(input = '') {
- // Disregard diacritics.
- // Input: "média"
- input = remove_accents_default()(input);
-
- // Accommodate leading slash, matching autocomplete expectations.
- // Input: "/media"
- input = input.replace(/^\//, '');
-
- // Lowercase.
- // Input: "MEDIA"
- input = input.toLowerCase();
- return input;
-}
-
-/**
- * Converts the search term into a list of normalized terms.
- *
- * @param {string} input The search term to normalize.
- *
- * @return {string[]} The normalized list of search terms.
- */
-const getNormalizedSearchTerms = (input = '') => {
- return extractWords(normalizeSearchInput(input));
-};
-const removeMatchingTerms = (unmatchedTerms, unprocessedTerms) => {
- return unmatchedTerms.filter(term => !getNormalizedSearchTerms(unprocessedTerms).some(unprocessedTerm => unprocessedTerm.includes(term)));
-};
-
-/**
- * Filters an item list given a search term.
- *
- * @param {Array} items Item list
- * @param {string} searchInput Search input.
- * @param {Object} config Search Config.
- *
- * @return {Array} Filtered item list.
- */
-const searchItems = (items = [], searchInput = '', config = {}) => {
- const normalizedSearchTerms = getNormalizedSearchTerms(searchInput);
- // Filter patterns by category: the default category indicates that all patterns will be shown.
- const onlyFilterByCategory = config.categoryId !== PATTERN_DEFAULT_CATEGORY && !normalizedSearchTerms.length;
- const searchRankConfig = {
- ...config,
- onlyFilterByCategory
- };
-
- // If we aren't filtering on search terms, matching on category is satisfactory.
- // If we are, then we need more than a category match.
- const threshold = onlyFilterByCategory ? 0 : 1;
- const rankedItems = items.map(item => {
- return [item, getItemSearchRank(item, searchInput, searchRankConfig)];
- }).filter(([, rank]) => rank > threshold);
-
- // If we didn't have terms to search on, there's no point sorting.
- if (normalizedSearchTerms.length === 0) {
- return rankedItems.map(([item]) => item);
}
- rankedItems.sort(([, rank1], [, rank2]) => rank2 - rank1);
- return rankedItems.map(([item]) => item);
-};
-
-/**
- * Get the search rank for a given item and a specific search term.
- * The better the match, the higher the rank.
- * If the rank equals 0, it should be excluded from the results.
- *
- * @param {Object} item Item to filter.
- * @param {string} searchTerm Search term.
- * @param {Object} config Search Config.
- *
- * @return {number} Search Rank.
- */
-function getItemSearchRank(item, searchTerm, config) {
- const {
- categoryId,
- getName = defaultGetName,
- getTitle = defaultGetTitle,
- getDescription = defaultGetDescription,
- getKeywords = defaultGetKeywords,
- hasCategory = defaultHasCategory,
- onlyFilterByCategory
- } = config;
- let rank = categoryId === PATTERN_DEFAULT_CATEGORY || categoryId === PATTERN_USER_CATEGORY && item.type === PATTERN_TYPES.user || hasCategory(item, categoryId) ? 1 : 0;
-
- // If an item doesn't belong to the current category or we don't have
- // search terms to filter by, return the initial rank value.
- if (!rank || onlyFilterByCategory) {
- return rank;
- }
- const name = getName(item);
- const title = getTitle(item);
- const description = getDescription(item);
- const keywords = getKeywords(item);
- const normalizedSearchInput = normalizeSearchInput(searchTerm);
- const normalizedTitle = normalizeSearchInput(title);
-
- // Prefers exact matches
- // Then prefers if the beginning of the title matches the search term
- // name, keywords, description matches come later.
- if (normalizedSearchInput === normalizedTitle) {
- rank += 30;
- } else if (normalizedTitle.startsWith(normalizedSearchInput)) {
- rank += 20;
- } else {
- const terms = [name, title, description, ...keywords].join(' ');
- const normalizedSearchTerms = extractWords(normalizedSearchInput);
- const unmatchedTerms = removeMatchingTerms(normalizedSearchTerms, terms);
- if (unmatchedTerms.length === 0) {
- rank += 10;
- }
- }
- return rank;
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-patterns/use-patterns.js
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-const EMPTY_PATTERN_LIST = [];
-const createTemplatePartId = (theme, slug) => theme && slug ? theme + '//' + slug : null;
-const templatePartToPattern = templatePart => ({
- blocks: (0,external_wp_blocks_namespaceObject.parse)(templatePart.content.raw, {
- __unstableSkipMigrationLogs: true
- }),
- categories: [templatePart.area],
- description: templatePart.description || '',
- isCustom: templatePart.source === TEMPLATE_ORIGINS.custom,
- keywords: templatePart.keywords || [],
- id: createTemplatePartId(templatePart.theme, templatePart.slug),
- name: createTemplatePartId(templatePart.theme, templatePart.slug),
- title: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(templatePart.title.rendered),
- type: templatePart.type,
- templatePart
-});
-const selectTemplatePartsAsPatterns = rememo((select, categoryId, search = '') => {
- var _getEntityRecords;
- const {
- getEntityRecords,
- getIsResolving
- } = select(external_wp_coreData_namespaceObject.store);
- const {
- __experimentalGetDefaultTemplatePartAreas
- } = select(external_wp_editor_namespaceObject.store);
- const query = {
- per_page: -1
- };
- const rawTemplateParts = (_getEntityRecords = getEntityRecords('postType', TEMPLATE_PART_POST_TYPE, query)) !== null && _getEntityRecords !== void 0 ? _getEntityRecords : EMPTY_PATTERN_LIST;
- const templateParts = rawTemplateParts.map(templatePart => templatePartToPattern(templatePart));
-
- // In the case where a custom template part area has been removed we need
- // the current list of areas to cross check against so orphaned template
- // parts can be treated as uncategorized.
- const knownAreas = __experimentalGetDefaultTemplatePartAreas() || [];
- const templatePartAreas = knownAreas.map(area => area.area);
- const templatePartHasCategory = (item, category) => {
- if (category !== TEMPLATE_PART_AREA_DEFAULT_CATEGORY) {
- return item.templatePart.area === category;
+ render() {
+ if (!this.state.error) {
+ return this.props.children;
}
- return item.templatePart.area === category || !templatePartAreas.includes(item.templatePart.area);
- };
- const isResolving = getIsResolving('getEntityRecords', ['postType', TEMPLATE_PART_POST_TYPE, query]);
- const patterns = searchItems(templateParts, search, {
- categoryId,
- hasCategory: templatePartHasCategory
- });
- return {
- patterns,
- isResolving
- };
-}, select => [select(external_wp_coreData_namespaceObject.store).getEntityRecords('postType', TEMPLATE_PART_POST_TYPE, {
- per_page: -1
-}), select(external_wp_coreData_namespaceObject.store).getIsResolving('getEntityRecords', ['postType', TEMPLATE_PART_POST_TYPE, {
- per_page: -1
-}]), select(external_wp_editor_namespaceObject.store).__experimentalGetDefaultTemplatePartAreas()]);
-const selectThemePatterns = rememo(select => {
- var _settings$__experimen;
- const {
- getSettings
- } = unlock(select(store_store));
- const {
- getIsResolving
- } = select(external_wp_coreData_namespaceObject.store);
- const settings = getSettings();
- const blockPatterns = (_settings$__experimen = settings.__experimentalAdditionalBlockPatterns) !== null && _settings$__experimen !== void 0 ? _settings$__experimen : settings.__experimentalBlockPatterns;
- const restBlockPatterns = select(external_wp_coreData_namespaceObject.store).getBlockPatterns();
- const patterns = [...(blockPatterns || []), ...(restBlockPatterns || [])].filter(pattern => !EXCLUDED_PATTERN_SOURCES.includes(pattern.source)).filter(filterOutDuplicatesByName).filter(pattern => pattern.inserter !== false).map(pattern => ({
- ...pattern,
- keywords: pattern.keywords || [],
- type: PATTERN_TYPES.theme,
- blocks: (0,external_wp_blocks_namespaceObject.parse)(pattern.content, {
- __unstableSkipMigrationLogs: true
- })
- }));
- return {
- patterns,
- isResolving: getIsResolving('getBlockPatterns')
- };
-}, select => [select(external_wp_coreData_namespaceObject.store).getBlockPatterns(), select(external_wp_coreData_namespaceObject.store).getIsResolving('getBlockPatterns'), unlock(select(store_store)).getSettings()]);
-const selectPatterns = rememo((select, categoryId, syncStatus, search = '') => {
- const {
- patterns: themePatterns,
- isResolving: isResolvingThemePatterns
- } = selectThemePatterns(select);
- const {
- patterns: userPatterns,
- isResolving: isResolvingUserPatterns
- } = selectUserPatterns(select);
- let patterns = [...(themePatterns || []), ...(userPatterns || [])];
- if (syncStatus) {
- // User patterns can have their sync statuses checked directly
- // Non-user patterns are all unsynced for the time being.
- patterns = patterns.filter(pattern => {
- return pattern.type === PATTERN_TYPES.user ? pattern.syncStatus === syncStatus : syncStatus === PATTERN_SYNC_TYPES.unsynced;
- });
- }
- if (categoryId) {
- patterns = searchItems(patterns, search, {
- categoryId,
- hasCategory: (item, currentCategory) => item.categories?.includes(currentCategory)
- });
- } else {
- patterns = searchItems(patterns, search, {
- hasCategory: item => !item.hasOwnProperty('categories')
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ErrorBoundaryWarning, {
+ message: (0,external_wp_i18n_namespaceObject.__)('The editor has encountered an unexpected error.'),
+ error: this.state.error
});
}
- return {
- patterns,
- isResolving: isResolvingThemePatterns || isResolvingUserPatterns
- };
-}, select => [selectThemePatterns(select), selectUserPatterns(select)]);
-
-/**
- * Converts a post of type `wp_block` to a 'pattern item' that more closely
- * matches the structure of theme provided patterns.
- *
- * @param {Object} patternPost The `wp_block` record being normalized.
- * @param {Map} categories A Map of user created categories.
- *
- * @return {Object} The normalized item.
- */
-const convertPatternPostToItem = (patternPost, categories) => ({
- blocks: (0,external_wp_blocks_namespaceObject.parse)(patternPost.content.raw, {
- __unstableSkipMigrationLogs: true
- }),
- ...(patternPost.wp_pattern_category.length > 0 && {
- categories: patternPost.wp_pattern_category.map(patternCategoryId => categories && categories.get(patternCategoryId) ? categories.get(patternCategoryId).slug : patternCategoryId)
- }),
- termLabels: patternPost.wp_pattern_category.map(patternCategoryId => categories?.get(patternCategoryId) ? categories.get(patternCategoryId).label : patternCategoryId),
- id: patternPost.id,
- name: patternPost.slug,
- syncStatus: patternPost.wp_pattern_sync_status || PATTERN_SYNC_TYPES.full,
- title: patternPost.title.raw,
- type: patternPost.type,
- patternPost
-});
-const selectUserPatterns = rememo((select, syncStatus, search = '') => {
- const {
- getEntityRecords,
- getIsResolving,
- getUserPatternCategories
- } = select(external_wp_coreData_namespaceObject.store);
- const query = {
- per_page: -1
- };
- const patternPosts = getEntityRecords('postType', PATTERN_TYPES.user, query);
- const userPatternCategories = getUserPatternCategories();
- const categories = new Map();
- userPatternCategories.forEach(userCategory => categories.set(userCategory.id, userCategory));
- let patterns = patternPosts ? patternPosts.map(record => convertPatternPostToItem(record, categories)) : EMPTY_PATTERN_LIST;
- const isResolving = getIsResolving('getEntityRecords', ['postType', PATTERN_TYPES.user, query]);
- if (syncStatus) {
- patterns = patterns.filter(pattern => pattern.syncStatus === syncStatus);
- }
- patterns = searchItems(patterns, search, {
- // We exit user pattern retrieval early if we aren't in the
- // catch-all category for user created patterns, so it has
- // to be in the category.
- hasCategory: () => true
- });
- return {
- patterns,
- isResolving,
- categories: userPatternCategories
- };
-}, select => [select(external_wp_coreData_namespaceObject.store).getEntityRecords('postType', PATTERN_TYPES.user, {
- per_page: -1
-}), select(external_wp_coreData_namespaceObject.store).getIsResolving('getEntityRecords', ['postType', PATTERN_TYPES.user, {
- per_page: -1
-}]), select(external_wp_coreData_namespaceObject.store).getUserPatternCategories()]);
-const usePatterns = (categoryType, categoryId, {
- search = '',
- syncStatus
-} = {}) => {
- return (0,external_wp_data_namespaceObject.useSelect)(select => {
- if (categoryType === TEMPLATE_PART_POST_TYPE) {
- return selectTemplatePartsAsPatterns(select, categoryId, search);
- } else if (categoryType === PATTERN_TYPES.theme) {
- return selectPatterns(select, categoryId, syncStatus, search);
- } else if (categoryType === PATTERN_TYPES.user) {
- return selectUserPatterns(select, syncStatus, search);
- }
- return {
- patterns: EMPTY_PATTERN_LIST,
- isResolving: false
- };
- }, [categoryId, categoryType, search, syncStatus]);
-};
-/* harmony default export */ const use_patterns = (usePatterns);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-patterns/use-pattern-categories.js
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-function usePatternCategories() {
- const defaultCategories = useDefaultPatternCategories();
- defaultCategories.push({
- name: TEMPLATE_PART_AREA_DEFAULT_CATEGORY,
- label: (0,external_wp_i18n_namespaceObject.__)('Uncategorized')
- });
- const themePatterns = useThemePatterns();
- const {
- patterns: userPatterns,
- categories: userPatternCategories
- } = use_patterns(PATTERN_TYPES.user);
- const patternCategories = (0,external_wp_element_namespaceObject.useMemo)(() => {
- const categoryMap = {};
- const categoriesWithCounts = [];
-
- // Create a map for easier counting of patterns in categories.
- defaultCategories.forEach(category => {
- if (!categoryMap[category.name]) {
- categoryMap[category.name] = {
- ...category,
- count: 0
- };
- }
- });
- userPatternCategories.forEach(category => {
- if (!categoryMap[category.name]) {
- categoryMap[category.name] = {
- ...category,
- count: 0
- };
- }
- });
-
- // Update the category counts to reflect theme registered patterns.
- themePatterns.forEach(pattern => {
- pattern.categories?.forEach(category => {
- if (categoryMap[category]) {
- categoryMap[category].count += 1;
- }
- });
- // If the pattern has no categories, add it to uncategorized.
- if (!pattern.categories?.length) {
- categoryMap.uncategorized.count += 1;
- }
- });
-
- // Update the category counts to reflect user registered patterns.
- userPatterns.forEach(pattern => {
- pattern.categories?.forEach(category => {
- if (categoryMap[category]) {
- categoryMap[category].count += 1;
- }
- });
- // If the pattern has no categories, add it to uncategorized.
- if (!pattern.categories?.length) {
- categoryMap.uncategorized.count += 1;
- }
- });
-
- // Filter categories so we only have those containing patterns.
- [...defaultCategories, ...userPatternCategories].forEach(category => {
- if (categoryMap[category.name].count && !categoriesWithCounts.find(cat => cat.name === category.name)) {
- categoriesWithCounts.push(categoryMap[category.name]);
- }
- });
- const sortedCategories = categoriesWithCounts.sort((a, b) => a.label.localeCompare(b.label));
- sortedCategories.unshift({
- name: PATTERN_USER_CATEGORY,
- label: (0,external_wp_i18n_namespaceObject.__)('My patterns'),
- count: userPatterns.length
- });
- sortedCategories.unshift({
- name: PATTERN_DEFAULT_CATEGORY,
- label: (0,external_wp_i18n_namespaceObject.__)('All patterns'),
- description: (0,external_wp_i18n_namespaceObject.__)('A list of all patterns from all sources.'),
- count: themePatterns.length + userPatterns.length
- });
- return sortedCategories;
- }, [defaultCategories, themePatterns, userPatternCategories, userPatterns]);
- return {
- patternCategories,
- hasPatterns: !!patternCategories.length
- };
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-patterns/use-template-part-areas.js
-/**
- * WordPress dependencies
- */
-
-
-
-
-/**
- * Internal dependencies
- */
-
-const useTemplatePartsGroupedByArea = items => {
- const allItems = items || [];
- const templatePartAreas = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_editor_namespaceObject.store).__experimentalGetDefaultTemplatePartAreas(), []);
-
- // Create map of template areas ensuring that default areas are displayed before
- // any custom registered template part areas.
- const knownAreas = {
- header: {},
- footer: {},
- sidebar: {},
- uncategorized: {}
- };
- templatePartAreas.forEach(templatePartArea => knownAreas[templatePartArea.area] = {
- ...templatePartArea,
- templateParts: []
- });
- const groupedByArea = allItems.reduce((accumulator, item) => {
- const key = accumulator[item.area] ? item.area : TEMPLATE_PART_AREA_DEFAULT_CATEGORY;
- accumulator[key].templateParts.push(item);
- return accumulator;
- }, knownAreas);
- return groupedByArea;
-};
-function useTemplatePartAreas() {
- const {
- records: templateParts,
- isResolving: isLoading
- } = (0,external_wp_coreData_namespaceObject.useEntityRecords)('postType', TEMPLATE_PART_POST_TYPE, {
- per_page: -1
- });
- return {
- hasTemplateParts: templateParts ? !!templateParts.length : false,
- isLoading,
- templatePartAreas: useTemplatePartsGroupedByArea(templateParts)
- };
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-patterns/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-
-
-
-function TemplatePartGroup({
- areas,
- currentArea,
- currentType
-}) {
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("div", {
- className: "edit-site-sidebar-navigation-screen-patterns__group-header"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
- level: 2
- }, (0,external_wp_i18n_namespaceObject.__)('Template parts'))), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, {
- className: "edit-site-sidebar-navigation-screen-patterns__group"
- }, Object.entries(areas).map(([area, {
- label,
- templateParts
- }]) => (0,external_React_.createElement)(CategoryItem, {
- key: area,
- count: templateParts?.length,
- icon: (0,external_wp_editor_namespaceObject.getTemplatePartIcon)(area),
- label: label,
- id: area,
- type: TEMPLATE_PART_POST_TYPE,
- isActive: currentArea === area && currentType === TEMPLATE_PART_POST_TYPE
- }))));
-}
-function PatternCategoriesGroup({
- categories,
- currentCategory,
- currentType
-}) {
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, {
- className: "edit-site-sidebar-navigation-screen-patterns__group"
- }, categories.map(category => (0,external_React_.createElement)(CategoryItem, {
- key: category.name,
- count: category.count,
- label: category.label,
- icon: library_file,
- id: category.name,
- type: "pattern",
- isActive: currentCategory === `${category.name}` && (currentType === PATTERN_TYPES.theme || currentType === PATTERN_TYPES.user)
- }))));
-}
-function SidebarNavigationScreenPatterns() {
- const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
- const {
- categoryType,
- categoryId
- } = (0,external_wp_url_namespaceObject.getQueryArgs)(window.location.href);
- const currentCategory = categoryId || PATTERN_DEFAULT_CATEGORY;
- const currentType = categoryType || PATTERN_TYPES.theme;
- const {
- templatePartAreas,
- hasTemplateParts,
- isLoading
- } = useTemplatePartAreas();
- const {
- patternCategories,
- hasPatterns
- } = usePatternCategories();
- const isBlockBasedTheme = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getCurrentTheme()?.is_block_theme, []);
- const isTemplatePartsMode = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const settings = select(store_store).getSettings();
- return !!settings.supportsTemplatePartsMode;
- }, []);
- const templatePartsLink = useLink({
- path: '/wp_template_part/all',
- // If a classic theme that supports template parts accessed
- // the Patterns page directly, preserve that state in the URL.
- didAccessPatternsPage: !isBlockBasedTheme && isTemplatePartsMode ? 1 : undefined
- });
- const footer = !isMobileViewport ? (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, null, (0,external_React_.createElement)(SidebarNavigationItem, {
- as: "a",
- href: "edit.php?post_type=wp_block",
- withChevron: true
- }, (0,external_wp_i18n_namespaceObject.__)('Manage all of my patterns')), (isBlockBasedTheme || isTemplatePartsMode) && (0,external_React_.createElement)(SidebarNavigationItem, {
- withChevron: true,
- ...templatePartsLink
- }, (0,external_wp_i18n_namespaceObject.__)('Manage all template parts'))) : undefined;
- return (0,external_React_.createElement)(SidebarNavigationScreen, {
- isRoot: !isBlockBasedTheme,
- title: (0,external_wp_i18n_namespaceObject.__)('Patterns'),
- description: (0,external_wp_i18n_namespaceObject.__)('Manage what patterns are available when editing the site.'),
- actions: (0,external_React_.createElement)(AddNewPattern, null),
- footer: footer,
- content: (0,external_React_.createElement)(external_React_.Fragment, null, isLoading && (0,external_wp_i18n_namespaceObject.__)('Loading patterns…'), !isLoading && (0,external_React_.createElement)(external_React_.Fragment, null, !hasTemplateParts && !hasPatterns && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, {
- className: "edit-site-sidebar-navigation-screen-patterns__group"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItem, null, (0,external_wp_i18n_namespaceObject.__)('No template parts or patterns found'))), hasPatterns && (0,external_React_.createElement)(PatternCategoriesGroup, {
- categories: patternCategories,
- currentCategory: currentCategory,
- currentType: currentType
- }), hasTemplateParts && (0,external_React_.createElement)(TemplatePartGroup, {
- areas: templatePartAreas,
- currentArea: currentCategory,
- currentType: currentType
- })))
- });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js
@@ -17908,11 +9243,11 @@ function SidebarNavigationScreenPatterns() {
const {
- useLocation: use_init_edited_entity_from_url_useLocation
-} = unlock(external_wp_router_namespaceObject.privateApis);
-const postTypesWithoutParentTemplate = [constants_TEMPLATE_POST_TYPE, TEMPLATE_PART_POST_TYPE, NAVIGATION_POST_TYPE, PATTERN_TYPES.user];
+ useLocation
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+const postTypesWithoutParentTemplate = [TEMPLATE_POST_TYPE, TEMPLATE_PART_POST_TYPE, NAVIGATION_POST_TYPE, PATTERN_TYPES.user];
+const authorizedPostTypes = ['page'];
function useResolveEditedEntityAndContext({
- path,
postId,
postType
}) {
@@ -17930,7 +9265,7 @@ function useResolveEditedEntityAndContext({
} = select(external_wp_coreData_namespaceObject.store);
const siteData = getSite();
const base = getUnstableBase();
- const templates = getEntityRecords('postType', constants_TEMPLATE_POST_TYPE, {
+ const templates = getEntityRecords('postType', TEMPLATE_POST_TYPE, {
per_page: -1
});
const _homepageId = siteData?.show_on_front === 'page' && ['number', 'string'].includes(typeof siteData.page_on_front) && !!+siteData.page_on_front // We also need to check if it's not zero(`0`).
@@ -17959,7 +9294,7 @@ function useResolveEditedEntityAndContext({
const resolvedTemplateId = (0,external_wp_data_namespaceObject.useSelect)(select => {
// If we're rendering a post type that doesn't have a template
// no need to resolve its template.
- if (postTypesWithoutParentTemplate.includes(postType)) {
+ if (postTypesWithoutParentTemplate.includes(postType) && postId) {
return undefined;
}
const {
@@ -17991,7 +9326,7 @@ function useResolveEditedEntityAndContext({
// First see if the post/page has an assigned template and fetch it.
const currentTemplateSlug = editedEntity.template;
if (currentTemplateSlug) {
- const currentTemplate = getEntityRecords('postType', constants_TEMPLATE_POST_TYPE, {
+ const currentTemplate = getEntityRecords('postType', TEMPLATE_POST_TYPE, {
per_page: -1
})?.find(({
slug
@@ -18019,16 +9354,12 @@ function useResolveEditedEntityAndContext({
return undefined;
}
- // If we're rendering a specific page, post... we need to resolve its template.
- if (postType && postId) {
+ // If we're rendering a specific page, we need to resolve its template.
+ // The site editor only supports pages for now, not other CPTs.
+ if (postType && postId && authorizedPostTypes.includes(postType)) {
return resolveTemplateForPostTypeAndId(postType, postId);
}
- // Some URLs in list views are different
- if (path === '/pages' && postId) {
- return resolveTemplateForPostTypeAndId('page', postId);
- }
-
// If we're rendering the home page, and we have a static home page, resolve its template.
if (homepageId) {
return resolveTemplateForPostTypeAndId('page', homepageId);
@@ -18039,25 +9370,17 @@ function useResolveEditedEntityAndContext({
const template = __experimentalGetTemplateForLink(url);
return template?.id;
}
- }, [homepageId, postsPageId, hasLoadedAllDependencies, url, postId, postType, path, frontPageTemplateId]);
+ }, [homepageId, postsPageId, hasLoadedAllDependencies, url, postId, postType, frontPageTemplateId]);
const context = (0,external_wp_element_namespaceObject.useMemo)(() => {
- if (postTypesWithoutParentTemplate.includes(postType)) {
+ if (postTypesWithoutParentTemplate.includes(postType) && postId) {
return {};
}
- if (postType && postId) {
+ if (postType && postId && authorizedPostTypes.includes(postType)) {
return {
postType,
postId
};
}
-
- // Some URLs in list views are different
- if (path === '/pages' && postId) {
- return {
- postType: 'page',
- postId
- };
- }
if (homepageId) {
return {
postType: 'page',
@@ -18065,24 +9388,8 @@ function useResolveEditedEntityAndContext({
};
}
return {};
- }, [homepageId, postType, postId, path]);
- if (path === '/wp_template/all' && postId) {
- return {
- isReady: true,
- postType: 'wp_template',
- postId,
- context
- };
- }
- if (path === '/wp_template_part/all' && postId) {
- return {
- isReady: true,
- postType: 'wp_template_part',
- postId,
- context
- };
- }
- if (postTypesWithoutParentTemplate.includes(postType)) {
+ }, [homepageId, postType, postId]);
+ if (postTypesWithoutParentTemplate.includes(postType) && postId) {
return {
isReady: true,
postType,
@@ -18093,7 +9400,7 @@ function useResolveEditedEntityAndContext({
if (hasLoadedAllDependencies) {
return {
isReady: resolvedTemplateId !== undefined,
- postType: constants_TEMPLATE_POST_TYPE,
+ postType: TEMPLATE_POST_TYPE,
postId: resolvedTemplateId,
context
};
@@ -18105,7 +9412,7 @@ function useResolveEditedEntityAndContext({
function useInitEditedEntityFromURL() {
const {
params = {}
- } = use_init_edited_entity_from_url_useLocation();
+ } = useLocation();
const {
postType,
postId,
@@ -18114,7 +9421,7 @@ function useInitEditedEntityFromURL() {
} = useResolveEditedEntityAndContext(params);
const {
setEditedEntity
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
(0,external_wp_element_namespaceObject.useEffect)(() => {
if (isReady) {
setEditedEntity(postType, postId, context);
@@ -18122,669 +9429,45 @@ function useInitEditedEntityFromURL() {
}, [isReady, postType, postId, context, setEditedEntity]);
}
-;// CONCATENATED MODULE: ./node_modules/upper-case-first/dist.es2015/index.js
-/**
- * Upper case the first character of an input string.
- */
-function upperCaseFirst(input) {
- return input.charAt(0).toUpperCase() + input.substr(1);
-}
-
-;// CONCATENATED MODULE: ./node_modules/sentence-case/dist.es2015/index.js
-
-
-
-function sentenceCaseTransform(input, index) {
- var result = input.toLowerCase();
- if (index === 0)
- return upperCaseFirst(result);
- return result;
-}
-function sentenceCase(input, options) {
- if (options === void 0) { options = {}; }
- return noCase(input, __assign({ delimiter: " ", transform: sentenceCaseTransform }, options));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-up.js
-
+;// CONCATENATED MODULE: external ["wp","htmlEntities"]
+const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
+;// CONCATENATED MODULE: external ["wp","primitives"]
+const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/search.js
/**
* WordPress dependencies
*/
-const chevronUp = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"
-}));
-/* harmony default export */ const chevron_up = (chevronUp);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-down.js
-
-/**
- * WordPress dependencies
- */
-const chevronDown = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+const search = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"
-}));
-/* harmony default export */ const chevron_down = (chevronDown);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sync-state-with-url/use-sync-path-with-url.js
-/**
- * WordPress dependencies
- */
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-const {
- useLocation: use_sync_path_with_url_useLocation,
- useHistory: use_sync_path_with_url_useHistory
-} = unlock(external_wp_router_namespaceObject.privateApis);
-function getPathFromURL(urlParams) {
- var _urlParams$path;
- let path = (_urlParams$path = urlParams?.path) !== null && _urlParams$path !== void 0 ? _urlParams$path : '/';
-
- // Compute the navigator path based on the URL params.
- if (urlParams?.postType && urlParams?.postId) {
- switch (urlParams.postType) {
- case PATTERN_TYPES.user:
- case constants_TEMPLATE_POST_TYPE:
- case TEMPLATE_PART_POST_TYPE:
- case 'page':
- path = `/${encodeURIComponent(urlParams.postType)}/${encodeURIComponent(urlParams.postId)}`;
- break;
- default:
- path = `/navigation/${encodeURIComponent(urlParams.postType)}/${encodeURIComponent(urlParams.postId)}`;
- }
- }
- return path;
-}
-function isSubset(subset, superset) {
- return Object.entries(subset).every(([key, value]) => {
- return superset[key] === value;
- });
-}
-function useSyncPathWithURL() {
- const history = use_sync_path_with_url_useHistory();
- const {
- params: urlParams
- } = use_sync_path_with_url_useLocation();
- const {
- location: navigatorLocation,
- params: navigatorParams,
- goTo
- } = (0,external_wp_components_namespaceObject.__experimentalUseNavigator)();
- const isMounting = (0,external_wp_element_namespaceObject.useRef)(true);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- // The navigatorParams are only initially filled properly when the
- // navigator screens mount. so we ignore the first synchronisation.
- if (isMounting.current) {
- isMounting.current = false;
- return;
- }
- function updateUrlParams(newUrlParams) {
- if (isSubset(newUrlParams, urlParams)) {
- return;
- }
- const updatedParams = {
- ...urlParams,
- ...newUrlParams
- };
- history.push(updatedParams);
- }
- if (navigatorParams?.postType && navigatorParams?.postId) {
- updateUrlParams({
- postType: navigatorParams?.postType,
- postId: navigatorParams?.postId,
- path: undefined,
- layout: undefined
- });
- } else if (navigatorLocation.path.startsWith('/page/') && navigatorParams?.postId) {
- updateUrlParams({
- postType: 'page',
- postId: navigatorParams?.postId,
- path: undefined,
- layout: undefined
- });
- } else if (navigatorLocation.path === '/patterns') {
- updateUrlParams({
- postType: undefined,
- postId: undefined,
- canvas: undefined,
- path: navigatorLocation.path
- });
- } else if (navigatorLocation.path === '/wp_template/all' && !window?.__experimentalAdminViews) {
- // When the experiment is disabled, we only support table layout.
- // Clear it out from the URL, so layouts other than table cannot be accessed.
- updateUrlParams({
- postType: undefined,
- categoryType: undefined,
- categoryId: undefined,
- path: navigatorLocation.path,
- layout: undefined
- });
- } else if (
- // These sidebar paths are special in the sense that the url in these pages may or may not have a postId and we need to retain it if it has.
- // The "type" property should be kept as well.
- navigatorLocation.path === '/pages' && window?.__experimentalAdminViews || navigatorLocation.path === '/wp_template/all' && window?.__experimentalAdminViews || navigatorLocation.path === '/wp_template_part/all' && window?.__experimentalAdminViews) {
- updateUrlParams({
- postType: undefined,
- categoryType: undefined,
- categoryId: undefined,
- path: navigatorLocation.path
- });
- } else {
- updateUrlParams({
- postType: undefined,
- postId: undefined,
- categoryType: undefined,
- categoryId: undefined,
- layout: undefined,
- path: navigatorLocation.path === '/' ? undefined : navigatorLocation.path
- });
- }
- },
- // Trigger only when navigator changes to prevent infinite loops.
- // eslint-disable-next-line react-hooks/exhaustive-deps
- [navigatorLocation?.path, navigatorParams]);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- const path = getPathFromURL(urlParams);
- if (navigatorLocation.path !== path) {
- goTo(path);
- }
- },
- // Trigger only when URL changes to prevent infinite loops.
- // eslint-disable-next-line react-hooks/exhaustive-deps
- [urlParams]);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-const POPOVER_PROPS = {
- className: 'block-editor-block-settings-menu__popover',
- placement: 'bottom-start'
-};
-
-/**
- * Internal dependencies
- */
-
-
-
-const {
- useLocation: leaf_more_menu_useLocation,
- useHistory: leaf_more_menu_useHistory
-} = unlock(external_wp_router_namespaceObject.privateApis);
-function LeafMoreMenu(props) {
- const location = leaf_more_menu_useLocation();
- const history = leaf_more_menu_useHistory();
- const {
- block
- } = props;
- const {
- clientId
- } = block;
- const {
- moveBlocksDown,
- moveBlocksUp,
- removeBlocks
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- const removeLabel = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: block name */
- (0,external_wp_i18n_namespaceObject.__)('Remove %s'), (0,external_wp_blockEditor_namespaceObject.BlockTitle)({
- clientId,
- maximumLength: 25
- }));
- const goToLabel = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: block name */
- (0,external_wp_i18n_namespaceObject.__)('Go to %s'), (0,external_wp_blockEditor_namespaceObject.BlockTitle)({
- clientId,
- maximumLength: 25
- }));
- const rootClientId = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getBlockRootClientId
- } = select(external_wp_blockEditor_namespaceObject.store);
- return getBlockRootClientId(clientId);
- }, [clientId]);
- const onGoToPage = (0,external_wp_element_namespaceObject.useCallback)(selectedBlock => {
- const {
- attributes,
- name
- } = selectedBlock;
- if (attributes.kind === 'post-type' && attributes.id && attributes.type && history) {
- history.push({
- postType: attributes.type,
- postId: attributes.id,
- ...(isPreviewingTheme() && {
- wp_theme_preview: currentlyPreviewingTheme()
- })
- }, {
- backPath: getPathFromURL(location.params)
- });
- }
- if (name === 'core/page-list-item' && attributes.id && history) {
- history.push({
- postType: 'page',
- postId: attributes.id,
- ...(isPreviewingTheme() && {
- wp_theme_preview: currentlyPreviewingTheme()
- })
- }, {
- backPath: getPathFromURL(location.params)
- });
- }
- }, [history]);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
- icon: more_vertical,
- label: (0,external_wp_i18n_namespaceObject.__)('Options'),
- className: "block-editor-block-settings-menu",
- popoverProps: POPOVER_PROPS,
- noIcons: true,
- ...props
- }, ({
- onClose
- }) => (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- icon: chevron_up,
- onClick: () => {
- moveBlocksUp([clientId], rootClientId);
- onClose();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Move up')), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- icon: chevron_down,
- onClick: () => {
- moveBlocksDown([clientId], rootClientId);
- onClose();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Move down')), block.attributes?.type === 'page' && block.attributes?.id && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- onGoToPage(block);
- onClose();
- }
- }, goToLabel)), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- removeBlocks([clientId], false);
- onClose();
- }
- }, removeLabel))));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-const {
- PrivateListView
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
-
-// Needs to be kept in sync with the query used at packages/block-library/src/page-list/edit.js.
-const MAX_PAGE_COUNT = 100;
-const PAGES_QUERY = ['postType', 'page', {
- per_page: MAX_PAGE_COUNT,
- _fields: ['id', 'link', 'menu_order', 'parent', 'title', 'type'],
- // TODO: When https://core.trac.wordpress.org/ticket/39037 REST API support for multiple orderby
- // values is resolved, update 'orderby' to [ 'menu_order', 'post_title' ] to provide a consistent
- // sort.
- orderby: 'menu_order',
- order: 'asc'
-}];
-function NavigationMenuContent({
- rootClientId
-}) {
- const {
- listViewRootClientId,
- isLoading
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- areInnerBlocksControlled,
- getBlockName,
- getBlockCount,
- getBlockOrder
- } = select(external_wp_blockEditor_namespaceObject.store);
- const {
- isResolving
- } = select(external_wp_coreData_namespaceObject.store);
- const blockClientIds = getBlockOrder(rootClientId);
- const hasOnlyPageListBlock = blockClientIds.length === 1 && getBlockName(blockClientIds[0]) === 'core/page-list';
- const pageListHasBlocks = hasOnlyPageListBlock && getBlockCount(blockClientIds[0]) > 0;
- const isLoadingPages = isResolving('getEntityRecords', PAGES_QUERY);
- return {
- listViewRootClientId: pageListHasBlocks ? blockClientIds[0] : rootClientId,
- // This is a small hack to wait for the navigation block
- // to actually load its inner blocks.
- isLoading: !areInnerBlocksControlled(rootClientId) || isLoadingPages
- };
- }, [rootClientId]);
- const {
- replaceBlock,
- __unstableMarkNextChangeAsNotPersistent
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- const offCanvasOnselect = (0,external_wp_element_namespaceObject.useCallback)(block => {
- if (block.name === 'core/navigation-link' && !block.attributes.url) {
- __unstableMarkNextChangeAsNotPersistent();
- replaceBlock(block.clientId, (0,external_wp_blocks_namespaceObject.createBlock)('core/navigation-link', block.attributes));
- }
- }, [__unstableMarkNextChangeAsNotPersistent, replaceBlock]);
-
- // The hidden block is needed because it makes block edit side effects trigger.
- // For example a navigation page list load its items has an effect on edit to load its items.
- return (0,external_React_.createElement)(external_React_.Fragment, null, !isLoading && (0,external_React_.createElement)(PrivateListView, {
- rootClientId: listViewRootClientId,
- onSelect: offCanvasOnselect,
- blockSettingsMenu: LeafMoreMenu,
- showAppender: false
- }), (0,external_React_.createElement)("div", {
- className: "edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor"
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockList, null)));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-const navigation_menu_editor_noop = () => {};
-function NavigationMenuEditor({
- navigationMenuId
-}) {
- const {
- storedSettings
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getSettings
- } = unlock(select(store_store));
- return {
- storedSettings: getSettings()
- };
- }, []);
- const blocks = (0,external_wp_element_namespaceObject.useMemo)(() => {
- if (!navigationMenuId) {
- return [];
- }
- return [(0,external_wp_blocks_namespaceObject.createBlock)('core/navigation', {
- ref: navigationMenuId
- })];
- }, [navigationMenuId]);
- if (!navigationMenuId || !blocks?.length) {
- return null;
- }
- return (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockEditorProvider, {
- settings: storedSettings,
- value: blocks,
- onChange: navigation_menu_editor_noop,
- onInput: navigation_menu_editor_noop
- }, (0,external_React_.createElement)("div", {
- className: "edit-site-sidebar-navigation-screen-navigation-menus__content"
- }, (0,external_React_.createElement)(NavigationMenuContent, {
- rootClientId: blocks[0].clientId
- })));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-pattern/use-navigation-menu-title.js
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-function useNavigationMenuTitle(id) {
- return (0,external_wp_data_namespaceObject.useSelect)(select => {
- if (!id) {
- return undefined;
- }
- const editedRecord = select(external_wp_coreData_namespaceObject.store).getEditedEntityRecord('postType', NAVIGATION_POST_TYPE, id);
-
- // Do not display a 'trashed' navigation menu.
- return editedRecord.status === 'trash' ? undefined : editedRecord.title;
- }, [id]);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-
-function TemplatePartNavigationMenu({
- id
-}) {
- const title = useNavigationMenuTitle(id);
- if (!id || title === undefined) {
- return null;
- }
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
- className: "edit-site-sidebar-navigation-screen-template-part-navigation-menu__title",
- size: "11",
- upperCase: true,
- weight: 500
- }, title || (0,external_wp_i18n_namespaceObject.__)('Navigation')), (0,external_React_.createElement)(NavigationMenuEditor, {
- navigationMenuId: id
- }));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list-item.js
-
-/**
- * WordPress dependencies
- */
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-function TemplatePartNavigationMenuListItem({
- id
-}) {
- const title = useNavigationMenuTitle(id);
- const linkInfo = useLink({
- postId: id,
- postType: NAVIGATION_POST_TYPE
- });
- if (!id || title === undefined) {
- return null;
- }
- return (0,external_React_.createElement)(SidebarNavigationItem, {
- withChevron: true,
- ...linkInfo
- }, title || (0,external_wp_i18n_namespaceObject.__)('(no title)'));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list.js
-
-/**
- * WordPress dependencies
- */
-
-/**
- * Internal dependencies
- */
-
-function TemplatePartNavigationMenuList({
- menus
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, {
- className: "edit-site-sidebar-navigation-screen-template-part-navigation-menu-list"
- }, menus.map(menuId => (0,external_React_.createElement)(TemplatePartNavigationMenuListItem, {
- key: menuId,
- id: menuId
- })));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js
-
-/**
- * WordPress dependencies
- */
-
-
-/**
- * Internal dependencies
- */
-
-
-function TemplatePartNavigationMenus({
- menus
-}) {
- if (!menus.length) return null;
-
- // if there is a single menu then render TemplatePartNavigationMenu
- if (menus.length === 1) {
- return (0,external_React_.createElement)(TemplatePartNavigationMenu, {
- id: menus[0]
- });
- }
-
- // if there are multiple menus then render TemplatePartNavigationMenuList
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
- className: "edit-site-sidebar-navigation-screen-template-part-navigation-menu__title",
- size: "11",
- upperCase: true,
- weight: 500
- }, (0,external_wp_i18n_namespaceObject.__)('Navigation')), (0,external_React_.createElement)(TemplatePartNavigationMenuList, {
- menus: menus
- }));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"
+ })
+});
+/* harmony default export */ const library_search = (search);
+;// CONCATENATED MODULE: external ["wp","keycodes"]
+const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
+;// CONCATENATED MODULE: external ["wp","url"]
+const external_wp_url_namespaceObject = window["wp"]["url"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/wordpress.js
/**
* WordPress dependencies
*/
-/**
- * Internal dependencies
- */
-
-
-
-function getBlocksFromRecord(record) {
- if (record?.blocks) {
- return record?.blocks;
- }
- return record?.content && typeof record.content !== 'function' ? (0,external_wp_blocks_namespaceObject.parse)(record.content) : [];
-}
-
-/**
- * Retrieves a list of specific blocks from a given tree of blocks.
- *
- * @param {string} targetBlockType The name of the block type to find.
- * @param {Array} blocks A list of blocks from a template part entity.
- *
- * @return {Array} A list of any navigation blocks found in the blocks.
- */
-function getBlocksOfTypeFromBlocks(targetBlockType, blocks) {
- if (!targetBlockType || !blocks?.length) {
- return [];
- }
- const findInBlocks = _blocks => {
- if (!_blocks) {
- return [];
- }
- const navigationBlocks = [];
- for (const block of _blocks) {
- if (block.name === targetBlockType) {
- navigationBlocks.push(block);
- }
- if (block?.innerBlocks) {
- const innerNavigationBlocks = findInBlocks(block.innerBlocks);
- if (innerNavigationBlocks.length) {
- navigationBlocks.push(...innerNavigationBlocks);
- }
- }
- }
- return navigationBlocks;
- };
- return findInBlocks(blocks);
-}
-function useNavigationMenuContent(postType, postId) {
- const {
- record
- } = useEditedEntityRecord(postType, postId);
-
- // Only managing navigation menus in template parts is supported
- // to match previous behaviour. This could potentially be expanded
- // to patterns as well.
- if (postType !== TEMPLATE_PART_POST_TYPE) {
- return;
- }
- const blocks = getBlocksFromRecord(record);
- const navigationBlocks = getBlocksOfTypeFromBlocks('core/navigation', blocks);
- if (!navigationBlocks.length) {
- return;
- }
- const navigationMenuIds = navigationBlocks?.map(block => block.attributes.ref);
-
- // Dedupe the Navigation blocks, as you can have multiple navigation blocks in the template.
- // Also, filter out undefined values, as blocks don't have an id when initially added.
- const uniqueNavigationMenuIds = [...new Set(navigationMenuIds)].filter(menuId => menuId);
- if (!uniqueNavigationMenuIds?.length) {
- return;
- }
- return (0,external_React_.createElement)(TemplatePartNavigationMenus, {
- menus: uniqueNavigationMenuIds
- });
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-pattern/use-pattern-details.js
+const wordpress = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "-2 -2 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"
+ })
+});
+/* harmony default export */ const library_wordpress = (wordpress);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/site-icon/index.js
/**
* External dependencies
*/
@@ -18798,2016 +9481,134 @@ function useNavigationMenuContent(postType, postId) {
-/**
- * Internal dependencies
- */
-
-
-
-
-
-function usePatternDetails(postType, postId) {
- const {
- getDescription,
- getTitle,
- record
- } = useEditedEntityRecord(postType, postId);
- const templatePartAreas = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_editor_namespaceObject.store).__experimentalGetDefaultTemplatePartAreas(), []);
+function SiteIcon({
+ className
+}) {
const {
- currentTheme,
- userPatternCategories
+ isRequestingSite,
+ siteIconUrl
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
- getCurrentTheme,
- getUserPatternCategories
+ getEntityRecord
} = select(external_wp_coreData_namespaceObject.store);
+ const siteData = getEntityRecord('root', '__unstableBase', undefined);
return {
- currentTheme: getCurrentTheme(),
- userPatternCategories: getUserPatternCategories()
+ isRequestingSite: !siteData,
+ siteIconUrl: siteData?.site_icon_url
};
}, []);
- const addedBy = useAddedBy(postType, postId);
- const isAddedByActiveTheme = addedBy.type === 'theme' && record.theme === currentTheme?.stylesheet;
- const title = getTitle();
- let description = getDescription();
- if (!description && addedBy.text) {
- description = postType === PATTERN_TYPES.user ? (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: pattern title e.g: "Header".
- (0,external_wp_i18n_namespaceObject.__)('This is the %s pattern.'), getTitle()) : (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: template part title e.g: "Header".
- (0,external_wp_i18n_namespaceObject.__)('This is the %s template part.'), getTitle());
- }
- if (!description && postType === PATTERN_TYPES.user && record?.title) {
- description = (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: user created pattern title e.g. "Footer".
- (0,external_wp_i18n_namespaceObject.__)('This is the %s pattern.'), record.title);
- }
- const footer = record?.modified ? (0,external_React_.createElement)(SidebarNavigationScreenDetailsFooter, {
- record: record
- }) : null;
- const details = [];
- if (postType === PATTERN_TYPES.user || postType === TEMPLATE_PART_POST_TYPE) {
- details.push({
- label: (0,external_wp_i18n_namespaceObject.__)('Syncing'),
- value: record.wp_pattern_sync_status === PATTERN_SYNC_TYPES.unsynced ? (0,external_wp_i18n_namespaceObject._x)('Not synced', 'Text that indicates that the pattern is not synchronized') : (0,external_wp_i18n_namespaceObject._x)('Synced', 'Text that indicates that the pattern is synchronized')
- });
- if (record.wp_pattern_category?.length === 0) {
- details.push({
- label: (0,external_wp_i18n_namespaceObject.__)('Categories'),
- value: (0,external_wp_i18n_namespaceObject.__)('Uncategorized')
- });
- }
- if (record.wp_pattern_category?.length > 0) {
- const patternCategories = new Map();
- userPatternCategories.forEach(userCategory => patternCategories.set(userCategory.id, userCategory));
- const categories = record.wp_pattern_category.filter(category => patternCategories.get(category)).map(category => patternCategories.get(category).label);
- details.push({
- label: (0,external_wp_i18n_namespaceObject.__)('Categories'),
- value: categories.length > 0 ? categories.join(', ') : ''
- });
- }
- }
- if (postType === TEMPLATE_PART_POST_TYPE) {
- const templatePartArea = templatePartAreas.find(area => area.area === record.area);
- let areaDetailValue = templatePartArea?.label;
- if (!areaDetailValue) {
- areaDetailValue = record.area ? (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Sentenced cased template part area e.g: "My custom area".
- (0,external_wp_i18n_namespaceObject.__)('%s (removed)'), sentenceCase(record.area)) : (0,external_wp_i18n_namespaceObject.__)('None');
- }
- details.push({
- label: (0,external_wp_i18n_namespaceObject.__)('Area'),
- value: areaDetailValue
- });
- }
- if (postType === TEMPLATE_PART_POST_TYPE && addedBy.text && !isAddedByActiveTheme) {
- details.push({
- label: (0,external_wp_i18n_namespaceObject.__)('Added by'),
- value: (0,external_React_.createElement)("span", {
- className: "edit-site-sidebar-navigation-screen-pattern__added-by-description-author"
- }, addedBy.text)
- });
- }
- if (postType === TEMPLATE_PART_POST_TYPE && addedBy.text && (record.origin === TEMPLATE_ORIGINS.plugin || record.has_theme_file === true)) {
- details.push({
- label: (0,external_wp_i18n_namespaceObject.__)('Customized'),
- value: (0,external_React_.createElement)("span", {
- className: "edit-site-sidebar-navigation-screen-pattern__added-by-description-customized"
- }, addedBy.isCustomized ? (0,external_wp_i18n_namespaceObject.__)('Yes') : (0,external_wp_i18n_namespaceObject.__)('No'))
+ if (isRequestingSite && !siteIconUrl) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-site-icon__image"
});
}
- const content = (0,external_React_.createElement)(external_React_.Fragment, null, useNavigationMenuContent(postType, postId), !!details.length && (0,external_React_.createElement)(SidebarNavigationScreenDetailsPanel, {
- spacing: 5,
- title: (0,external_wp_i18n_namespaceObject.__)('Details')
- }, details.map(({
- label,
- value
- }) => (0,external_React_.createElement)(SidebarNavigationScreenDetailsPanelRow, {
- key: label
- }, (0,external_React_.createElement)(SidebarNavigationScreenDetailsPanelLabel, null, label), (0,external_React_.createElement)(SidebarNavigationScreenDetailsPanelValue, null, value)))));
- return {
- title,
- description,
- content,
- footer
- };
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-pattern/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-
-
-function SidebarNavigationScreenPattern() {
- const navigator = (0,external_wp_components_namespaceObject.__experimentalUseNavigator)();
- const {
- params: {
- postType,
- postId
- }
- } = navigator;
- const {
- categoryType
- } = (0,external_wp_url_namespaceObject.getQueryArgs)(window.location.href);
- const {
- setCanvasMode
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
- useInitEditedEntityFromURL();
- const patternDetails = usePatternDetails(postType, postId);
-
- // The absence of a category type in the query params for template parts
- // indicates the user has arrived at the template part via the "manage all"
- // page and the back button should return them to that list page.
- const backPath = !categoryType && postType === TEMPLATE_PART_POST_TYPE ? '/wp_template_part/all' : '/patterns';
- return (0,external_React_.createElement)(SidebarNavigationScreen, {
- actions: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(TemplateActions, {
- postType: postType,
- postId: postId,
- toggleProps: {
- as: SidebarButton
- },
- onRemove: () => {
- navigator.goTo(backPath);
- }
- }), (0,external_React_.createElement)(SidebarButton, {
- onClick: () => setCanvasMode('edit'),
- label: (0,external_wp_i18n_namespaceObject.__)('Edit'),
- icon: library_pencil
- })),
- backPath: backPath,
- ...patternDetails
- });
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menus/constants.js
-// This requested is preloaded in `gutenberg_preload_navigation_posts`.
-// As unbounded queries are limited to 100 by `fetchAllMiddleware`
-// on apiFetch this query is limited to 100.
-// These parameters must be kept aligned with those in
-// lib/compat/wordpress-6.3/navigation-block-preloading.php
-// and
-// block-library/src/navigation/constants.js
-const PRELOADED_NAVIGATION_MENUS_QUERY = {
- per_page: 100,
- status: ['publish', 'draft'],
- order: 'desc',
- orderby: 'date'
-};
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-const notEmptyString = testString => testString?.trim()?.length > 0;
-function RenameModal({
- menuTitle,
- onClose,
- onSave
-}) {
- const [editedMenuTitle, setEditedMenuTitle] = (0,external_wp_element_namespaceObject.useState)(menuTitle);
- const titleHasChanged = editedMenuTitle !== menuTitle;
- const isEditedMenuTitleValid = titleHasChanged && notEmptyString(editedMenuTitle);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
- title: (0,external_wp_i18n_namespaceObject.__)('Rename'),
- onRequestClose: onClose
- }, (0,external_React_.createElement)("form", {
- className: "sidebar-navigation__rename-modal-form"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "3"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- value: editedMenuTitle,
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Navigation title'),
- onChange: setEditedMenuTitle
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- variant: "tertiary",
- onClick: onClose
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- disabled: !isEditedMenuTitleValid,
- variant: "primary",
- type: "submit",
- onClick: e => {
- e.preventDefault();
- if (!isEditedMenuTitleValid) {
- return;
- }
- onSave({
- title: editedMenuTitle
- });
-
- // Immediate close avoids ability to hit save multiple times.
- onClose();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Save'))))));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menu/delete-modal.js
-
-/**
- * WordPress dependencies
- */
-
-
-function delete_modal_RenameModal({
- onClose,
- onConfirm
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
- isOpen: true,
- onConfirm: e => {
- e.preventDefault();
- onConfirm();
-
- // Immediate close avoids ability to hit delete multiple times.
- onClose();
- },
- onCancel: onClose,
- confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Delete')
- }, (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to delete this Navigation menu?'));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-const more_menu_POPOVER_PROPS = {
- position: 'bottom right'
-};
-function ScreenNavigationMoreMenu(props) {
- const {
- onDelete,
- onSave,
- onDuplicate,
- menuTitle
- } = props;
- const [renameModalOpen, setRenameModalOpen] = (0,external_wp_element_namespaceObject.useState)(false);
- const [deleteModalOpen, setDeleteModalOpen] = (0,external_wp_element_namespaceObject.useState)(false);
- const closeModals = () => {
- setRenameModalOpen(false);
- setDeleteModalOpen(false);
- };
- const openRenameModal = () => setRenameModalOpen(true);
- const openDeleteModal = () => setDeleteModalOpen(true);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
- className: "sidebar-navigation__more-menu",
- label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
- icon: more_vertical,
- popoverProps: more_menu_POPOVER_PROPS
- }, ({
- onClose
- }) => (0,external_React_.createElement)("div", null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- openRenameModal();
- // Close the dropdown after opening the modal.
- onClose();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Rename')), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- onDuplicate();
- onClose();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Duplicate')), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- isDestructive: true,
- onClick: () => {
- openDeleteModal();
-
- // Close the dropdown after opening the modal.
- onClose();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Delete'))))), deleteModalOpen && (0,external_React_.createElement)(delete_modal_RenameModal, {
- onClose: closeModals,
- onConfirm: onDelete
- }), renameModalOpen && (0,external_React_.createElement)(RenameModal, {
- onClose: closeModals,
- menuTitle: menuTitle,
- onSave: onSave
- }));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.js
-/**
- * WordPress dependencies
- */
-
-
-
-// Copied from packages/block-library/src/navigation/edit/navigation-menu-selector.js.
-function buildNavigationLabel(title, id, status) {
- if (!title?.rendered) {
- /* translators: %s is the index of the menu in the list of menus. */
- return (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('(no title %s)'), id);
- }
- if (status === 'publish') {
- return (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title?.rendered);
- }
- return (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %1s: title of the menu; %2s: status of the menu (draft, pending, etc.).
- (0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title?.rendered), status);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menu/edit-button.js
-
-/**
- * WordPress dependencies
- */
-
-
-/**
- * Internal dependencies
- */
-
-
-
-function EditButton({
- postId
-}) {
- const linkInfo = useLink({
- postId,
- postType: NAVIGATION_POST_TYPE,
- canvas: 'edit'
+ const icon = siteIconUrl ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ className: "edit-site-site-icon__image",
+ alt: (0,external_wp_i18n_namespaceObject.__)('Site Icon'),
+ src: siteIconUrl
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ className: "edit-site-site-icon__icon",
+ icon: library_wordpress,
+ size: 48
});
- return (0,external_React_.createElement)(SidebarButton, {
- ...linkInfo,
- label: (0,external_wp_i18n_namespaceObject.__)('Edit'),
- icon: library_pencil
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx(className, 'edit-site-site-icon'),
+ children: icon
});
}
+/* harmony default export */ const site_icon = (SiteIcon);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js
-
+;// CONCATENATED MODULE: external ["wp","dom"]
+const external_wp_dom_namespaceObject = window["wp"]["dom"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar/index.js
/**
- * WordPress dependencies
+ * External dependencies
*/
/**
- * Internal dependencies
- */
-
-
-
-
-
-function SingleNavigationMenu({
- navigationMenu,
- handleDelete,
- handleDuplicate,
- handleSave
-}) {
- const menuTitle = navigationMenu?.title?.rendered;
- return (0,external_React_.createElement)(SidebarNavigationScreenWrapper, {
- actions: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(ScreenNavigationMoreMenu, {
- menuTitle: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(menuTitle),
- onDelete: handleDelete,
- onSave: handleSave,
- onDuplicate: handleDuplicate
- }), (0,external_React_.createElement)(EditButton, {
- postId: navigationMenu?.id
- })),
- title: buildNavigationLabel(navigationMenu?.title, navigationMenu?.id, navigationMenu?.status),
- description: (0,external_wp_i18n_namespaceObject.__)('Navigation menus are a curated collection of blocks that allow visitors to get around your site.')
- }, (0,external_React_.createElement)(NavigationMenuEditor, {
- navigationMenuId: navigationMenu?.id
- }));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menu/index.js
-
-/**
* WordPress dependencies
*/
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-const postType = `wp_navigation`;
-function SidebarNavigationScreenNavigationMenu() {
- const {
- params: {
- postId
- }
- } = (0,external_wp_components_namespaceObject.__experimentalUseNavigator)();
- const {
- record: navigationMenu,
- isResolving
- } = (0,external_wp_coreData_namespaceObject.useEntityRecord)('postType', postType, postId);
- const {
- isSaving,
- isDeleting
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- isSavingEntityRecord,
- isDeletingEntityRecord
- } = select(external_wp_coreData_namespaceObject.store);
- return {
- isSaving: isSavingEntityRecord('postType', postType, postId),
- isDeleting: isDeletingEntityRecord('postType', postType, postId)
- };
- }, [postId]);
- const isLoading = isResolving || isSaving || isDeleting;
- const menuTitle = navigationMenu?.title?.rendered || navigationMenu?.slug;
- const {
- handleSave,
- handleDelete,
- handleDuplicate
- } = useNavigationMenuHandlers();
- const _handleDelete = () => handleDelete(navigationMenu);
- const _handleSave = edits => handleSave(navigationMenu, edits);
- const _handleDuplicate = () => handleDuplicate(navigationMenu);
- if (isLoading) {
- return (0,external_React_.createElement)(SidebarNavigationScreenWrapper, {
- description: (0,external_wp_i18n_namespaceObject.__)('Navigation menus are a curated collection of blocks that allow visitors to get around your site.')
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Spinner, {
- className: "edit-site-sidebar-navigation-screen-navigation-menus__loading"
- }));
- }
- if (!isLoading && !navigationMenu) {
- return (0,external_React_.createElement)(SidebarNavigationScreenWrapper, {
- description: (0,external_wp_i18n_namespaceObject.__)('Navigation Menu missing.')
- });
+const SidebarNavigationContext = (0,external_wp_element_namespaceObject.createContext)(() => {});
+// Focus a sidebar element after a navigation. The element to focus is either
+// specified by `focusSelector` (when navigating back) or it is the first
+// tabbable element (usually the "Back" button).
+function focusSidebarElement(el, direction, focusSelector) {
+ let elementToFocus;
+ if (direction === 'back' && focusSelector) {
+ elementToFocus = el.querySelector(focusSelector);
}
- if (!navigationMenu?.content?.raw) {
- return (0,external_React_.createElement)(SidebarNavigationScreenWrapper, {
- actions: (0,external_React_.createElement)(ScreenNavigationMoreMenu, {
- menuTitle: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(menuTitle),
- onDelete: _handleDelete,
- onSave: _handleSave,
- onDuplicate: _handleDuplicate
- }),
- title: buildNavigationLabel(navigationMenu?.title, navigationMenu?.id, navigationMenu?.status),
- description: (0,external_wp_i18n_namespaceObject.__)('This Navigation Menu is empty.')
- });
+ if (direction !== null && !elementToFocus) {
+ const [firstTabbable] = external_wp_dom_namespaceObject.focus.tabbable.find(el);
+ elementToFocus = firstTabbable !== null && firstTabbable !== void 0 ? firstTabbable : el;
}
- return (0,external_React_.createElement)(SingleNavigationMenu, {
- navigationMenu: navigationMenu,
- handleDelete: _handleDelete,
- handleSave: _handleSave,
- handleDuplicate: _handleDuplicate
- });
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-function useDeleteNavigationMenu() {
- const {
- goTo
- } = (0,external_wp_components_namespaceObject.__experimentalUseNavigator)();
- const {
- deleteEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const {
- createSuccessNotice,
- createErrorNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- const handleDelete = async navigationMenu => {
- const postId = navigationMenu?.id;
- try {
- await deleteEntityRecord('postType', postType, postId, {
- force: true
- }, {
- throwOnError: true
- });
- createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Deleted Navigation menu'), {
- type: 'snackbar'
- });
- goTo('/navigation');
- } catch (error) {
- createErrorNotice((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: error message describing why the navigation menu could not be deleted. */
- (0,external_wp_i18n_namespaceObject.__)(`Unable to delete Navigation menu (%s).`), error?.message), {
- type: 'snackbar'
- });
- }
- };
- return handleDelete;
+ elementToFocus?.focus();
}
-function useSaveNavigationMenu() {
- const {
- getEditedEntityRecord
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEditedEntityRecord: getEditedEntityRecordSelector
- } = select(external_wp_coreData_namespaceObject.store);
- return {
- getEditedEntityRecord: getEditedEntityRecordSelector
- };
- }, []);
- const {
- editEntityRecord,
- __experimentalSaveSpecifiedEntityEdits: saveSpecifiedEntityEdits
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const {
- createSuccessNotice,
- createErrorNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- const handleSave = async (navigationMenu, edits) => {
- if (!edits) {
- return;
- }
- const postId = navigationMenu?.id;
- // Prepare for revert in case of error.
- const originalRecord = getEditedEntityRecord('postType', NAVIGATION_POST_TYPE, postId);
-
- // Apply the edits.
- editEntityRecord('postType', postType, postId, edits);
- const recordPropertiesToSave = Object.keys(edits);
- // Attempt to persist.
- try {
- await saveSpecifiedEntityEdits('postType', postType, postId, recordPropertiesToSave, {
- throwOnError: true
- });
- createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Renamed Navigation menu'), {
- type: 'snackbar'
- });
- } catch (error) {
- // Revert to original in case of error.
- editEntityRecord('postType', postType, postId, originalRecord);
- createErrorNotice((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: error message describing why the navigation menu could not be renamed. */
- (0,external_wp_i18n_namespaceObject.__)(`Unable to rename Navigation menu (%s).`), error?.message), {
- type: 'snackbar'
- });
- }
- };
- return handleSave;
-}
-function useDuplicateNavigationMenu() {
- const {
- goTo
- } = (0,external_wp_components_namespaceObject.__experimentalUseNavigator)();
- const {
- saveEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const {
- createSuccessNotice,
- createErrorNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- const handleDuplicate = async navigationMenu => {
- const menuTitle = navigationMenu?.title?.rendered || navigationMenu?.slug;
- try {
- const savedRecord = await saveEntityRecord('postType', postType, {
- title: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Navigation menu title */
- (0,external_wp_i18n_namespaceObject.__)('%s (Copy)'), menuTitle),
- content: navigationMenu?.content?.raw,
- status: 'publish'
- }, {
- throwOnError: true
- });
- if (savedRecord) {
- createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Duplicated Navigation menu'), {
- type: 'snackbar'
- });
- goTo(`/navigation/${postType}/${savedRecord.id}`);
- }
- } catch (error) {
- createErrorNotice((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: error message describing why the navigation menu could not be deleted. */
- (0,external_wp_i18n_namespaceObject.__)(`Unable to duplicate Navigation menu (%s).`), error?.message), {
- type: 'snackbar'
- });
- }
+// Navigation state that is updated when navigating back or forward. Helps us
+// manage the animations and also focus.
+function createNavState() {
+ let state = {
+ direction: null,
+ focusSelector: null
};
- return handleDuplicate;
-}
-function useNavigationMenuHandlers() {
return {
- handleDelete: useDeleteNavigationMenu(),
- handleSave: useSaveNavigationMenu(),
- handleDuplicate: useDuplicateNavigationMenu()
- };
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menus/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-
-
-
-// Copied from packages/block-library/src/navigation/edit/navigation-menu-selector.js.
-function buildMenuLabel(title, id, status) {
- if (!title) {
- /* translators: %s is the index of the menu in the list of menus. */
- return (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('(no title %s)'), id);
- }
- if (status === 'publish') {
- return (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title);
- }
- return (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %1s: title of the menu; %2s: status of the menu (draft, pending, etc.).
- (0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title), status);
-}
-
-// Save a boolean to prevent us creating a fallback more than once per session.
-let hasCreatedFallback = false;
-function SidebarNavigationScreenNavigationMenus() {
- const {
- records: navigationMenus,
- isResolving: isResolvingNavigationMenus,
- hasResolved: hasResolvedNavigationMenus
- } = (0,external_wp_coreData_namespaceObject.useEntityRecords)('postType', NAVIGATION_POST_TYPE, PRELOADED_NAVIGATION_MENUS_QUERY);
- const isLoading = isResolvingNavigationMenus && !hasResolvedNavigationMenus;
- const {
- getNavigationFallbackId
- } = unlock((0,external_wp_data_namespaceObject.useSelect)(external_wp_coreData_namespaceObject.store));
- const firstNavigationMenu = navigationMenus?.[0];
-
- // Save a boolean to prevent us creating a fallback more than once per session.
- if (firstNavigationMenu) {
- hasCreatedFallback = true;
- }
-
- // If there is no navigation menu found
- // then trigger fallback algorithm to create one.
- if (!firstNavigationMenu && !isResolvingNavigationMenus && hasResolvedNavigationMenus && !hasCreatedFallback) {
- getNavigationFallbackId();
- }
- const {
- handleSave,
- handleDelete,
- handleDuplicate
- } = useNavigationMenuHandlers();
- const hasNavigationMenus = !!navigationMenus?.length;
- if (isLoading) {
- return (0,external_React_.createElement)(SidebarNavigationScreenWrapper, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Spinner, {
- className: "edit-site-sidebar-navigation-screen-navigation-menus__loading"
- }));
- }
- if (!isLoading && !hasNavigationMenus) {
- return (0,external_React_.createElement)(SidebarNavigationScreenWrapper, {
- description: (0,external_wp_i18n_namespaceObject.__)('No Navigation Menus found.')
- });
- }
-
- // if single menu then render it
- if (navigationMenus?.length === 1) {
- return (0,external_React_.createElement)(SingleNavigationMenu, {
- navigationMenu: firstNavigationMenu,
- handleDelete: () => handleDelete(firstNavigationMenu),
- handleDuplicate: () => handleDuplicate(firstNavigationMenu),
- handleSave: edits => handleSave(firstNavigationMenu, edits)
- });
- }
- return (0,external_React_.createElement)(SidebarNavigationScreenWrapper, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, null, navigationMenus?.map(({
- id,
- title,
- status
- }, index) => (0,external_React_.createElement)(NavMenuItem, {
- postId: id,
- key: id,
- withChevron: true,
- icon: library_navigation
- }, buildMenuLabel(title?.rendered, index + 1, status)))));
-}
-function SidebarNavigationScreenWrapper({
- children,
- actions,
- title,
- description
-}) {
- return (0,external_React_.createElement)(SidebarNavigationScreen, {
- title: title || (0,external_wp_i18n_namespaceObject.__)('Navigation'),
- actions: actions,
- description: description || (0,external_wp_i18n_namespaceObject.__)('Manage your Navigation menus.'),
- content: children
- });
-}
-const NavMenuItem = ({
- postId,
- ...props
-}) => {
- const linkInfo = useLink({
- postId,
- postType: NAVIGATION_POST_TYPE
- });
- return (0,external_React_.createElement)(SidebarNavigationItem, {
- ...linkInfo,
- ...props
- });
-};
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/block-table.js
-
-/**
- * WordPress dependencies
- */
-
-const blockTable = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.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"
-}));
-/* harmony default export */ const block_table = (blockTable);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-list-bullets-rtl.js
-
-/**
- * WordPress dependencies
- */
-
-const formatListBulletsRTL = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.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"
-}));
-/* harmony default export */ const format_list_bullets_rtl = (formatListBulletsRTL);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-list-bullets.js
-
-/**
- * WordPress dependencies
- */
-
-const formatListBullets = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.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 */ const format_list_bullets = (formatListBullets);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/funnel.js
-
-/**
- * WordPress dependencies
- */
-
-const funnel = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z"
-}));
-/* harmony default export */ const library_funnel = (funnel);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/unseen.js
-
-/**
- * WordPress dependencies
- */
-
-const unseen = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4.67 10.664s-2.09 1.11-2.917 1.582l.494.87 1.608-.914.002.002c.343.502.86 1.17 1.563 1.84.348.33.742.663 1.185.976L5.57 16.744l.858.515 1.02-1.701a9.1 9.1 0 0 0 4.051 1.18V19h1v-2.263a9.1 9.1 0 0 0 4.05-1.18l1.021 1.7.858-.514-1.034-1.723c.442-.313.837-.646 1.184-.977.703-.669 1.22-1.337 1.563-1.839l.002-.003 1.61.914.493-.87c-1.75-.994-2.918-1.58-2.918-1.58l-.003.005a8.29 8.29 0 0 1-.422.689 10.097 10.097 0 0 1-1.36 1.598c-1.218 1.16-3.042 2.293-5.544 2.293-2.503 0-4.327-1.132-5.546-2.293a10.099 10.099 0 0 1-1.359-1.599 8.267 8.267 0 0 1-.422-.689l-.003-.005Z"
-}));
-/* harmony default export */ const library_unseen = (unseen);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/single-selection-checkbox.js
-
-/**
- * WordPress dependencies
- */
-
-
-function SingleSelectionCheckbox({
- selection,
- onSelectionChange,
- item,
- data,
- getItemId,
- primaryField,
- disabled
-}) {
- const id = getItemId(item);
- const isSelected = selection.includes(id);
- let selectionLabel;
- if (primaryField?.getValue && item) {
- // eslint-disable-next-line @wordpress/valid-sprintf
- selectionLabel = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: item title. */
- isSelected ? (0,external_wp_i18n_namespaceObject.__)('Deselect item: %s') : (0,external_wp_i18n_namespaceObject.__)('Select item: %s'), primaryField.getValue({
- item
- }));
- } else {
- selectionLabel = isSelected ? (0,external_wp_i18n_namespaceObject.__)('Select a new item') : (0,external_wp_i18n_namespaceObject.__)('Deselect item');
- }
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- className: "dataviews-view-table-selection-checkbox",
- __nextHasNoMarginBottom: true,
- label: selectionLabel,
- "aria-disabled": disabled,
- checked: isSelected,
- onChange: () => {
- if (disabled) {
- return;
- }
- if (!isSelected) {
- onSelectionChange(data.filter(_item => {
- const itemId = getItemId?.(_item);
- return itemId === id || selection.includes(itemId);
- }));
- } else {
- onSelectionChange(data.filter(_item => {
- const itemId = getItemId?.(_item);
- return itemId !== id && selection.includes(itemId);
- }));
- }
- }
- });
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/lock-unlock.js
-/**
- * WordPress dependencies
- */
-
-const {
- lock: lock_unlock_lock,
- unlock: lock_unlock_unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/dataviews');
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/item-actions.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-const {
- DropdownMenuV2: DropdownMenu,
- DropdownMenuGroupV2: DropdownMenuGroup,
- DropdownMenuItemV2: DropdownMenuItem,
- DropdownMenuItemLabelV2: DropdownMenuItemLabel,
- kebabCase
-} = lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
-function ButtonTrigger({
- action,
- onClick
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- label: action.label,
- icon: action.icon,
- isDestructive: action.isDestructive,
- size: "compact",
- onClick: onClick
- });
-}
-function DropdownMenuItemTrigger({
- action,
- onClick
-}) {
- return (0,external_React_.createElement)(DropdownMenuItem, {
- onClick: onClick,
- hideOnClick: !action.RenderModal
- }, (0,external_React_.createElement)(DropdownMenuItemLabel, null, action.label));
-}
-function ActionWithModal({
- action,
- item,
- ActionTrigger
-}) {
- const [isModalOpen, setIsModalOpen] = (0,external_wp_element_namespaceObject.useState)(false);
- const actionTriggerProps = {
- action,
- onClick: () => setIsModalOpen(true)
- };
- const {
- RenderModal,
- hideModalHeader
- } = action;
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(ActionTrigger, {
- ...actionTriggerProps
- }), isModalOpen && (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
- title: action.modalHeader || action.label,
- __experimentalHideHeader: !!hideModalHeader,
- onRequestClose: () => {
- setIsModalOpen(false);
+ get() {
+ return state;
},
- overlayClassName: `dataviews-action-modal dataviews-action-modal__${kebabCase(action.id)}`
- }, (0,external_React_.createElement)(RenderModal, {
- items: [item],
- closeModal: () => setIsModalOpen(false)
- })));
-}
-function ActionsDropdownMenuGroup({
- actions,
- item
-}) {
- return (0,external_React_.createElement)(DropdownMenuGroup, null, actions.map(action => {
- if (!!action.RenderModal) {
- return (0,external_React_.createElement)(ActionWithModal, {
- key: action.id,
- action: action,
- item: item,
- ActionTrigger: DropdownMenuItemTrigger
- });
- }
- return (0,external_React_.createElement)(DropdownMenuItemTrigger, {
- key: action.id,
- action: action,
- onClick: () => action.callback([item])
- });
- }));
-}
-function ItemActions({
- item,
- actions,
- isCompact
-}) {
- const {
- primaryActions,
- secondaryActions
- } = (0,external_wp_element_namespaceObject.useMemo)(() => {
- return actions.reduce((accumulator, action) => {
- // If an action is eligible for all items, doesn't need
- // to provide the `isEligible` function.
- if (action.isEligible && !action.isEligible(item)) {
- return accumulator;
- }
- if (action.isPrimary && !!action.icon) {
- accumulator.primaryActions.push(action);
- } else {
- accumulator.secondaryActions.push(action);
- }
- return accumulator;
- }, {
- primaryActions: [],
- secondaryActions: []
- });
- }, [actions, item]);
- if (isCompact) {
- return (0,external_React_.createElement)(CompactItemActions, {
- item: item,
- primaryActions: primaryActions,
- secondaryActions: secondaryActions
- });
- }
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- spacing: 1,
- justify: "flex-end",
- style: {
- flexShrink: '0',
- width: 'auto'
- }
- }, !!primaryActions.length && primaryActions.map(action => {
- if (!!action.RenderModal) {
- return (0,external_React_.createElement)(ActionWithModal, {
- key: action.id,
- action: action,
- item: item,
- ActionTrigger: ButtonTrigger
- });
- }
- return (0,external_React_.createElement)(ButtonTrigger, {
- key: action.id,
- action: action,
- onClick: () => action.callback([item])
- });
- }), (0,external_React_.createElement)(DropdownMenu, {
- trigger: (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- size: "compact",
- icon: more_vertical,
- label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
- disabled: !secondaryActions.length
- }),
- placement: "bottom-end"
- }, (0,external_React_.createElement)(ActionsDropdownMenuGroup, {
- actions: secondaryActions,
- item: item
- })));
-}
-function CompactItemActions({
- item,
- primaryActions,
- secondaryActions
-}) {
- return (0,external_React_.createElement)(DropdownMenu, {
- trigger: (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- size: "compact",
- icon: more_vertical,
- label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
- disabled: !primaryActions.length && !secondaryActions.length
- }),
- placement: "bottom-end"
- }, !!primaryActions.length && (0,external_React_.createElement)(ActionsDropdownMenuGroup, {
- actions: primaryActions,
- item: item
- }), !!secondaryActions.length && (0,external_React_.createElement)(ActionsDropdownMenuGroup, {
- actions: secondaryActions,
- item: item
- }));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/utils.js
-/**
- * Internal dependencies
- */
-
-
-/**
- * Helper util to sort data by text fields, when sorting is done client side.
- *
- * @param {Object} params Function params.
- * @param {Object[]} params.data Data to sort.
- * @param {Object} params.view Current view object.
- * @param {Object[]} params.fields Array of available fields.
- * @param {string[]} params.textFields Array of the field ids to sort.
- *
- * @return {Object[]} Sorted data.
- */
-const sortByTextFields = ({
- data,
- view,
- fields,
- textFields
-}) => {
- const sortedData = [...data];
- const fieldId = view.sort.field;
- if (textFields.includes(fieldId)) {
- const fieldToSort = fields.find(field => {
- return field.id === fieldId;
- });
- sortedData.sort((a, b) => {
- var _fieldToSort$getValue, _fieldToSort$getValue2;
- const valueA = (_fieldToSort$getValue = fieldToSort.getValue({
- item: a
- })) !== null && _fieldToSort$getValue !== void 0 ? _fieldToSort$getValue : '';
- const valueB = (_fieldToSort$getValue2 = fieldToSort.getValue({
- item: b
- })) !== null && _fieldToSort$getValue2 !== void 0 ? _fieldToSort$getValue2 : '';
- return view.sort.direction === 'asc' ? valueA.localeCompare(valueB) : valueB.localeCompare(valueA);
- });
- }
- return sortedData;
-};
-
-/**
- * Helper util to get the paginated data and the paginateInfo needed,
- * when pagination is done client side.
- *
- * @param {Object} params Function params.
- * @param {Object[]} params.data Available data.
- * @param {Object} params.view Current view object.
- *
- * @return {Object} Paginated data and paginationInfo.
- */
-function getPaginationResults({
- data,
- view
-}) {
- const start = (view.page - 1) * view.perPage;
- const totalItems = data?.length || 0;
- data = data?.slice(start, start + view.perPage);
- return {
- data,
- paginationInfo: {
- totalItems,
- totalPages: Math.ceil(totalItems / view.perPage)
+ navigate(direction, focusSelector = null) {
+ state = {
+ direction,
+ focusSelector: direction === 'forward' && focusSelector ? focusSelector : state.focusSelector
+ };
}
};
}
-const sanitizeOperators = field => {
- let operators = field.filterBy?.operators;
- if (!operators || !Array.isArray(operators)) {
- operators = Object.keys(OPERATORS);
- }
- return operators.filter(operator => Object.keys(OPERATORS).includes(operator));
-};
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/bulk-actions.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-/**
- * Internal dependencies
- */
-
-const {
- DropdownMenuV2: bulk_actions_DropdownMenu,
- DropdownMenuGroupV2: bulk_actions_DropdownMenuGroup,
- DropdownMenuItemV2: bulk_actions_DropdownMenuItem,
- DropdownMenuSeparatorV2: DropdownMenuSeparator
-} = lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
-function useHasAPossibleBulkAction(actions, item) {
- return (0,external_wp_element_namespaceObject.useMemo)(() => {
- return actions.some(action => {
- return action.supportsBulk && action.isEligible(item);
- });
- }, [actions, item]);
-}
-function useSomeItemHasAPossibleBulkAction(actions, data) {
- return (0,external_wp_element_namespaceObject.useMemo)(() => {
- return data.some(item => {
- return actions.some(action => {
- return action.supportsBulk && action.isEligible(item);
- });
- });
- }, [actions, data]);
-}
-function bulk_actions_ActionWithModal({
- action,
- selectedItems,
- setActionWithModal,
- onMenuOpenChange
-}) {
- const eligibleItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
- return selectedItems.filter(item => action.isEligible(item));
- }, [action, selectedItems]);
- const {
- RenderModal,
- hideModalHeader
- } = action;
- const onCloseModal = (0,external_wp_element_namespaceObject.useCallback)(() => {
- setActionWithModal(undefined);
- }, [setActionWithModal]);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
- title: !hideModalHeader && action.label,
- __experimentalHideHeader: !!hideModalHeader,
- onRequestClose: onCloseModal,
- overlayClassName: "dataviews-action-modal"
- }, (0,external_React_.createElement)(RenderModal, {
- items: eligibleItems,
- closeModal: onCloseModal,
- onPerform: () => onMenuOpenChange(false)
- }));
-}
-function BulkActionItem({
- action,
- selectedItems,
- setActionWithModal
-}) {
- const eligibleItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
- return selectedItems.filter(item => action.isEligible(item));
- }, [action, selectedItems]);
- const shouldShowModal = !!action.RenderModal;
- return (0,external_React_.createElement)(bulk_actions_DropdownMenuItem, {
- key: action.id,
- disabled: eligibleItems.length === 0,
- hideOnClick: !shouldShowModal,
- onClick: async () => {
- if (shouldShowModal) {
- setActionWithModal(action);
- } else {
- await action.callback(eligibleItems);
- }
- },
- suffix: eligibleItems.length > 0 ? eligibleItems.length : undefined
- }, action.label);
-}
-function ActionsMenuGroup({
- actions,
- selectedItems,
- setActionWithModal
-}) {
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(bulk_actions_DropdownMenuGroup, null, actions.map(action => (0,external_React_.createElement)(BulkActionItem, {
- key: action.id,
- action: action,
- selectedItems: selectedItems,
- setActionWithModal: setActionWithModal
- }))), (0,external_React_.createElement)(DropdownMenuSeparator, null));
-}
-function BulkActions({
- data,
- actions,
- selection,
- onSelectionChange,
- getItemId
-}) {
- const bulkActions = (0,external_wp_element_namespaceObject.useMemo)(() => actions.filter(action => action.supportsBulk), [actions]);
- const [isMenuOpen, onMenuOpenChange] = (0,external_wp_element_namespaceObject.useState)(false);
- const [actionWithModal, setActionWithModal] = (0,external_wp_element_namespaceObject.useState)();
- const selectableItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
- return data.filter(item => {
- return bulkActions.some(action => action.isEligible(item));
- });
- }, [data, bulkActions]);
- const numberSelectableItems = selectableItems.length;
- const areAllSelected = selection && selection.length === numberSelectableItems;
- const selectedItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
- return data.filter(item => selection.includes(getItemId(item)));
- }, [selection, data, getItemId]);
- const hasNonSelectableItemSelected = (0,external_wp_element_namespaceObject.useMemo)(() => {
- return selectedItems.some(item => {
- return !selectableItems.includes(item);
- });
- }, [selectedItems, selectableItems]);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (hasNonSelectableItemSelected) {
- onSelectionChange(selectedItems.filter(selectedItem => {
- return selectableItems.some(item => {
- return getItemId(selectedItem) === getItemId(item);
- });
- }));
- }
- }, [hasNonSelectableItemSelected, selectedItems, selectableItems, getItemId, onSelectionChange]);
- if (bulkActions.length === 0) {
- return null;
- }
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(bulk_actions_DropdownMenu, {
- open: isMenuOpen,
- onOpenChange: onMenuOpenChange,
- label: (0,external_wp_i18n_namespaceObject.__)('Bulk actions'),
- style: {
- minWidth: '240px'
- },
- trigger: (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "dataviews-bulk-edit-button",
- __next40pxDefaultSize: true,
- variant: "tertiary",
- size: "compact"
- }, selection.length ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: Number of items. */
- (0,external_wp_i18n_namespaceObject._n)('Edit %d item', 'Edit %d items', selection.length), selection.length) : (0,external_wp_i18n_namespaceObject.__)('Bulk edit'))
- }, (0,external_React_.createElement)(ActionsMenuGroup, {
- actions: bulkActions,
- setActionWithModal: setActionWithModal,
- selectedItems: selectedItems
- }), (0,external_React_.createElement)(bulk_actions_DropdownMenuGroup, null, (0,external_React_.createElement)(bulk_actions_DropdownMenuItem, {
- disabled: areAllSelected,
- hideOnClick: false,
- onClick: () => {
- onSelectionChange(selectableItems);
- },
- suffix: numberSelectableItems
- }, (0,external_wp_i18n_namespaceObject.__)('Select all')), (0,external_React_.createElement)(bulk_actions_DropdownMenuItem, {
- disabled: selection.length === 0,
- hideOnClick: false,
- onClick: () => {
- onSelectionChange([]);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Deselect')))), actionWithModal && (0,external_React_.createElement)(bulk_actions_ActionWithModal, {
- action: actionWithModal,
- selectedItems: selectedItems,
- setActionWithModal: setActionWithModal,
- onMenuOpenChange: onMenuOpenChange
- }));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/view-table.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-const {
- DropdownMenuV2: view_table_DropdownMenu,
- DropdownMenuGroupV2: view_table_DropdownMenuGroup,
- DropdownMenuItemV2: view_table_DropdownMenuItem,
- DropdownMenuRadioItemV2: DropdownMenuRadioItem,
- DropdownMenuItemLabelV2: view_table_DropdownMenuItemLabel,
- DropdownMenuSeparatorV2: view_table_DropdownMenuSeparator
-} = lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
-function WithSeparators({
+function SidebarContentWrapper({
children
}) {
- return external_wp_element_namespaceObject.Children.toArray(children).filter(Boolean).map((child, i) => (0,external_React_.createElement)(external_wp_element_namespaceObject.Fragment, {
- key: i
- }, i > 0 && (0,external_React_.createElement)(view_table_DropdownMenuSeparator, null), child));
-}
-const sortArrows = {
- asc: '↑',
- desc: '↓'
-};
-const HeaderMenu = (0,external_wp_element_namespaceObject.forwardRef)(function HeaderMenu({
- field,
- view,
- onChangeView,
- onHide,
- setOpenedFilter
-}, ref) {
- const isHidable = field.enableHiding !== false;
- const isSortable = field.enableSorting !== false;
- const isSorted = view.sort?.field === field.id;
- const operators = sanitizeOperators(field);
- // Filter can be added:
- // 1. If the field is not already part of a view's filters.
- // 2. If the field meets the type and operator requirements.
- // 3. If it's not primary. If it is, it should be already visible.
- const canAddFilter = !view.filters?.some(_filter => field.id === _filter.field) && field.type === constants_ENUMERATION_TYPE && !!operators.length && !field.filterBy?.isPrimary;
- if (!isSortable && !isHidable && !canAddFilter) {
- return field.header;
- }
- return (0,external_React_.createElement)(view_table_DropdownMenu, {
- align: "start",
- trigger: (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- size: "compact",
- className: "dataviews-view-table-header-button",
- ref: ref,
- variant: "tertiary"
- }, field.header, isSorted && (0,external_React_.createElement)("span", {
- "aria-hidden": "true"
- }, isSorted && sortArrows[view.sort.direction])),
- style: {
- minWidth: '240px'
- }
- }, (0,external_React_.createElement)(WithSeparators, null, isSortable && (0,external_React_.createElement)(view_table_DropdownMenuGroup, null, Object.entries(SORTING_DIRECTIONS).map(([direction, info]) => {
- const isChecked = isSorted && view.sort.direction === direction;
- const value = `${field.id}-${direction}`;
- return (0,external_React_.createElement)(DropdownMenuRadioItem, {
- key: value
- // All sorting radio items share the same name, so that
- // selecting a sorting option automatically deselects the
- // previously selected one, even if it is displayed in
- // another submenu. The field and direction are passed via
- // the `value` prop.
- ,
- name: "view-table-sorting",
- value: value,
- checked: isChecked,
- onChange: () => {
- onChangeView({
- ...view,
- sort: {
- field: field.id,
- direction
- }
- });
- }
- }, (0,external_React_.createElement)(view_table_DropdownMenuItemLabel, null, info.label));
- })), canAddFilter && (0,external_React_.createElement)(view_table_DropdownMenuGroup, null, (0,external_React_.createElement)(view_table_DropdownMenuItem, {
- prefix: (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- icon: library_funnel
- }),
- onClick: () => {
- setOpenedFilter(field.id);
- onChangeView({
- ...view,
- page: 1,
- filters: [...(view.filters || []), {
- field: field.id,
- value: undefined,
- operator: operators[0]
- }]
- });
- }
- }, (0,external_React_.createElement)(view_table_DropdownMenuItemLabel, null, (0,external_wp_i18n_namespaceObject.__)('Add filter')))), isHidable && (0,external_React_.createElement)(view_table_DropdownMenuItem, {
- prefix: (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- icon: library_unseen
- }),
- onClick: () => {
- onHide(field);
- onChangeView({
- ...view,
- hiddenFields: view.hiddenFields.concat(field.id)
- });
- }
- }, (0,external_React_.createElement)(view_table_DropdownMenuItemLabel, null, (0,external_wp_i18n_namespaceObject.__)('Hide')))));
-});
-function BulkSelectionCheckbox({
- selection,
- onSelectionChange,
- data,
- actions
-}) {
- const selectableItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
- return data.filter(item => {
- return actions.some(action => action.supportsBulk && action.isEligible(item));
- });
- }, [data, actions]);
- const areAllSelected = selection.length === selectableItems.length;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- className: "dataviews-view-table-selection-checkbox",
- __nextHasNoMarginBottom: true,
- checked: areAllSelected,
- indeterminate: !areAllSelected && selection.length,
- onChange: () => {
- if (areAllSelected) {
- onSelectionChange([]);
- } else {
- onSelectionChange(selectableItems);
- }
- },
- label: areAllSelected ? (0,external_wp_i18n_namespaceObject.__)('Deselect all') : (0,external_wp_i18n_namespaceObject.__)('Select all')
+ const navState = (0,external_wp_element_namespaceObject.useContext)(SidebarNavigationContext);
+ const wrapperRef = (0,external_wp_element_namespaceObject.useRef)();
+ const [navAnimation, setNavAnimation] = (0,external_wp_element_namespaceObject.useState)(null);
+ (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
+ const {
+ direction,
+ focusSelector
+ } = navState.get();
+ focusSidebarElement(wrapperRef.current, direction, focusSelector);
+ setNavAnimation(direction);
+ }, [navState]);
+ const wrapperCls = dist_clsx('edit-site-sidebar__screen-wrapper', {
+ 'slide-from-left': navAnimation === 'back',
+ 'slide-from-right': navAnimation === 'forward'
});
-}
-function TableRow({
- hasBulkActions,
- item,
- actions,
- id,
- visibleFields,
- primaryField,
- selection,
- getItemId,
- onSelectionChange,
- data
-}) {
- const hasPossibleBulkAction = useHasAPossibleBulkAction(actions, item);
- return (0,external_React_.createElement)("tr", {
- className: classnames_default()('dataviews-view-table__row', {
- 'is-selected': hasPossibleBulkAction && selection.includes(id)
- })
- }, hasBulkActions && (0,external_React_.createElement)("td", {
- className: "dataviews-view-table__checkbox-column",
- style: {
- width: 20,
- minWidth: 20
- }
- }, (0,external_React_.createElement)("div", {
- className: "dataviews-view-table__cell-content-wrapper"
- }, (0,external_React_.createElement)(SingleSelectionCheckbox, {
- id: id,
- item: item,
- selection: selection,
- onSelectionChange: onSelectionChange,
- getItemId: getItemId,
- data: data,
- primaryField: primaryField,
- disabled: !hasPossibleBulkAction
- }))), visibleFields.map(field => (0,external_React_.createElement)("td", {
- key: field.id,
- style: {
- width: field.width || undefined,
- minWidth: field.minWidth || undefined,
- maxWidth: field.maxWidth || undefined
- }
- }, (0,external_React_.createElement)("div", {
- className: classnames_default()('dataviews-view-table__cell-content-wrapper', {
- 'dataviews-view-table__primary-field': primaryField?.id === field.id
- })
- }, field.render({
- item
- })))), !!actions?.length && (0,external_React_.createElement)("td", {
- className: "dataviews-view-table__actions-column"
- }, (0,external_React_.createElement)(ItemActions, {
- item: item,
- actions: actions
- })));
-}
-function ViewTable({
- view,
- onChangeView,
- fields,
- actions,
- data,
- getItemId,
- isLoading = false,
- deferredRendering,
- selection,
- onSelectionChange,
- setOpenedFilter
-}) {
- const headerMenuRefs = (0,external_wp_element_namespaceObject.useRef)(new Map());
- const headerMenuToFocusRef = (0,external_wp_element_namespaceObject.useRef)();
- const [nextHeaderMenuToFocus, setNextHeaderMenuToFocus] = (0,external_wp_element_namespaceObject.useState)();
- const hasBulkActions = useSomeItemHasAPossibleBulkAction(actions, data);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (headerMenuToFocusRef.current) {
- headerMenuToFocusRef.current.focus();
- headerMenuToFocusRef.current = undefined;
- }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ref: wrapperRef,
+ className: wrapperCls,
+ children: children
});
- const asyncData = (0,external_wp_compose_namespaceObject.useAsyncList)(data);
- const tableNoticeId = (0,external_wp_element_namespaceObject.useId)();
- if (nextHeaderMenuToFocus) {
- // If we need to force focus, we short-circuit rendering here
- // to prevent any additional work while we handle that.
- // Clearing out the focus directive is necessary to make sure
- // future renders don't cause unexpected focus jumps.
- headerMenuToFocusRef.current = nextHeaderMenuToFocus;
- setNextHeaderMenuToFocus();
- return;
- }
- const onHide = field => {
- const hidden = headerMenuRefs.current.get(field.id);
- const fallback = headerMenuRefs.current.get(hidden.fallback);
- setNextHeaderMenuToFocus(fallback?.node);
- };
- const visibleFields = fields.filter(field => !view.hiddenFields.includes(field.id) && ![view.layout.mediaField].includes(field.id));
- const usedData = deferredRendering ? asyncData : data;
- const hasData = !!usedData?.length;
- const sortValues = {
- asc: 'ascending',
- desc: 'descending'
- };
- const primaryField = fields.find(field => field.id === view.layout.primaryField);
- return (0,external_React_.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_React_.createElement)("table", {
- className: "dataviews-view-table",
- "aria-busy": isLoading,
- "aria-describedby": tableNoticeId
- }, (0,external_React_.createElement)("thead", null, (0,external_React_.createElement)("tr", {
- className: "dataviews-view-table__row"
- }, hasBulkActions && (0,external_React_.createElement)("th", {
- className: "dataviews-view-table__checkbox-column",
- style: {
- width: 20,
- minWidth: 20
- },
- "data-field-id": "selection",
- scope: "col"
- }, (0,external_React_.createElement)(BulkSelectionCheckbox, {
- selection: selection,
- onSelectionChange: onSelectionChange,
- data: data,
- actions: actions
- })), visibleFields.map((field, index) => (0,external_React_.createElement)("th", {
- key: field.id,
- style: {
- width: field.width || undefined,
- minWidth: field.minWidth || undefined,
- maxWidth: field.maxWidth || undefined
- },
- "data-field-id": field.id,
- "aria-sort": view.sort?.field === field.id && sortValues[view.sort.direction],
- scope: "col"
- }, (0,external_React_.createElement)(HeaderMenu, {
- ref: node => {
- if (node) {
- headerMenuRefs.current.set(field.id, {
- node,
- fallback: visibleFields[index > 0 ? index - 1 : 1]?.id
- });
- } else {
- headerMenuRefs.current.delete(field.id);
- }
- },
- field: field,
- view: view,
- onChangeView: onChangeView,
- onHide: onHide,
- setOpenedFilter: setOpenedFilter
- }))), !!actions?.length && (0,external_React_.createElement)("th", {
- "data-field-id": "actions",
- className: "dataviews-view-table__actions-column"
- }, (0,external_React_.createElement)("span", {
- className: "dataviews-view-table-header"
- }, (0,external_wp_i18n_namespaceObject.__)('Actions'))))), (0,external_React_.createElement)("tbody", null, hasData && usedData.map((item, index) => (0,external_React_.createElement)(TableRow, {
- key: getItemId(item),
- item: item,
- hasBulkActions: hasBulkActions,
- actions: actions,
- id: getItemId(item) || index,
- visibleFields: visibleFields,
- primaryField: primaryField,
- selection: selection,
- getItemId: getItemId,
- onSelectionChange: onSelectionChange,
- data: data
- })))), (0,external_React_.createElement)("div", {
- className: classnames_default()({
- 'dataviews-loading': isLoading,
- 'dataviews-no-results': !hasData && !isLoading
- }),
- id: tableNoticeId
- }, !hasData && (0,external_React_.createElement)("p", null, isLoading ? (0,external_wp_i18n_namespaceObject.__)('Loading…') : (0,external_wp_i18n_namespaceObject.__)('No results'))));
}
-/* harmony default export */ const view_table = (ViewTable);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/view-grid.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-function GridItem({
- selection,
- data,
- onSelectionChange,
- getItemId,
- item,
- actions,
- mediaField,
- primaryField,
- visibleFields
-}) {
- const [hasNoPointerEvents, setHasNoPointerEvents] = (0,external_wp_element_namespaceObject.useState)(false);
- const hasBulkAction = useHasAPossibleBulkAction(actions, item);
- const id = getItemId(item);
- const isSelected = selection.includes(id);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 0,
- key: id,
- className: classnames_default()('dataviews-view-grid__card', {
- 'is-selected': hasBulkAction && isSelected,
- 'has-no-pointer-events': hasNoPointerEvents
- }),
- onMouseDown: event => {
- if (hasBulkAction && (event.ctrlKey || event.metaKey)) {
- setHasNoPointerEvents(true);
- if (!isSelected) {
- onSelectionChange(data.filter(_item => {
- const itemId = getItemId?.(_item);
- return itemId === id || selection.includes(itemId);
- }));
- } else {
- onSelectionChange(data.filter(_item => {
- const itemId = getItemId?.(_item);
- return itemId !== id && selection.includes(itemId);
- }));
- }
- }
- },
- onClick: () => {
- if (hasNoPointerEvents) {
- setHasNoPointerEvents(false);
- }
- }
- }, (0,external_React_.createElement)("div", {
- className: "dataviews-view-grid__media"
- }, mediaField?.render({
- item
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "space-between",
- className: "dataviews-view-grid__title-actions"
- }, (0,external_React_.createElement)(SingleSelectionCheckbox, {
- id: id,
- item: item,
- selection: selection,
- onSelectionChange: onSelectionChange,
- getItemId: getItemId,
- data: data,
- primaryField: primaryField,
- disabled: !hasBulkAction
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- className: "dataviews-view-grid__primary-field"
- }, primaryField?.render({
- item
- })), (0,external_React_.createElement)(ItemActions, {
- item: item,
- actions: actions,
- isCompact: true
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- className: "dataviews-view-grid__fields",
- spacing: 3
- }, visibleFields.map(field => {
- const renderedValue = field.render({
- item
- });
- if (!renderedValue) {
- return null;
- }
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- className: "dataviews-view-grid__field",
- key: field.id,
- spacing: 1
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Tooltip, {
- text: field.header,
- placement: "left"
- }, (0,external_React_.createElement)("div", {
- className: "dataviews-view-grid__field-value"
- }, renderedValue)));
- })));
-}
-function ViewGrid({
- data,
- fields,
- view,
- actions,
- isLoading,
- getItemId,
- deferredRendering,
- selection,
- onSelectionChange
+function SidebarContent({
+ routeKey,
+ children
}) {
- const mediaField = fields.find(field => field.id === view.layout.mediaField);
- const primaryField = fields.find(field => field.id === view.layout.primaryField);
- const visibleFields = fields.filter(field => !view.hiddenFields.includes(field.id) && ![view.layout.mediaField, view.layout.primaryField].includes(field.id));
- const shownData = (0,external_wp_compose_namespaceObject.useAsyncList)(data, {
- step: 3
- });
- const usedData = deferredRendering ? shownData : data;
- const hasData = !!usedData?.length;
- return (0,external_React_.createElement)(external_React_.Fragment, null, hasData && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalGrid, {
- gap: 6,
- columns: 2,
- alignment: "top",
- className: "dataviews-view-grid",
- "aria-busy": isLoading
- }, usedData.map(item => {
- return (0,external_React_.createElement)(GridItem, {
- key: getItemId(item),
- selection: selection,
- data: data,
- onSelectionChange: onSelectionChange,
- getItemId: getItemId,
- item: item,
- actions: actions,
- mediaField: mediaField,
- primaryField: primaryField,
- visibleFields: visibleFields
- });
- })), !hasData && (0,external_React_.createElement)("div", {
- className: classnames_default()({
- 'dataviews-loading': isLoading,
- 'dataviews-no-results': !isLoading
+ const [navState] = (0,external_wp_element_namespaceObject.useState)(createNavState);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationContext.Provider, {
+ value: navState,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-sidebar__content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarContentWrapper, {
+ children: children
+ }, routeKey)
})
- }, (0,external_React_.createElement)("p", null, isLoading ? (0,external_wp_i18n_namespaceObject.__)('Loading…') : (0,external_wp_i18n_namespaceObject.__)('No results'))));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/info.js
-
-/**
- * WordPress dependencies
- */
-
-const info = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"
-}));
-/* harmony default export */ const library_info = (info);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/view-list.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-function ViewList({
- view,
- fields,
- data,
- isLoading,
- getItemId,
- onSelectionChange,
- onDetailsChange,
- selection,
- deferredRendering
-}) {
- const shownData = (0,external_wp_compose_namespaceObject.useAsyncList)(data, {
- step: 3
});
- const usedData = deferredRendering ? shownData : data;
- const mediaField = fields.find(field => field.id === view.layout.mediaField);
- const primaryField = fields.find(field => field.id === view.layout.primaryField);
- const visibleFields = fields.filter(field => !view.hiddenFields.includes(field.id) && ![view.layout.primaryField, view.layout.mediaField].includes(field.id));
- const onEnter = item => event => {
- const {
- keyCode
- } = event;
- if ([external_wp_keycodes_namespaceObject.ENTER, external_wp_keycodes_namespaceObject.SPACE].includes(keyCode)) {
- onSelectionChange([item]);
- }
- };
- const hasData = usedData?.length;
- if (!hasData) {
- return (0,external_React_.createElement)("div", {
- className: classnames_default()({
- 'dataviews-loading': isLoading,
- 'dataviews-no-results': !hasData && !isLoading
- })
- }, !hasData && (0,external_React_.createElement)("p", null, isLoading ? (0,external_wp_i18n_namespaceObject.__)('Loading…') : (0,external_wp_i18n_namespaceObject.__)('No results')));
- }
- return (0,external_React_.createElement)("ul", {
- className: "dataviews-view-list"
- }, usedData.map(item => {
- return (0,external_React_.createElement)("li", {
- key: getItemId(item),
- className: classnames_default()({
- 'is-selected': selection.includes(item.id)
- })
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- className: "dataviews-view-list__item-wrapper"
- }, (0,external_React_.createElement)("div", {
- role: "button",
- tabIndex: 0,
- "aria-pressed": selection.includes(item.id),
- onKeyDown: onEnter(item),
- className: "dataviews-view-list__item",
- onClick: () => onSelectionChange([item])
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- spacing: 3,
- justify: "start",
- alignment: "flex-start"
- }, (0,external_React_.createElement)("div", {
- className: "dataviews-view-list__media-wrapper"
- }, mediaField?.render({
- item
- }) || (0,external_React_.createElement)("div", {
- className: "dataviews-view-list__media-placeholder"
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 1
- }, (0,external_React_.createElement)("span", {
- className: "dataviews-view-list__primary-field"
- }, primaryField?.render({
- item
- })), (0,external_React_.createElement)("div", {
- className: "dataviews-view-list__fields"
- }, visibleFields.map(field => {
- return (0,external_React_.createElement)("span", {
- key: field.id,
- className: "dataviews-view-list__field"
- }, field.render({
- item
- }));
- }))))), onDetailsChange && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "dataviews-view-list__details-button",
- onClick: () => onDetailsChange([item]),
- icon: library_info,
- label: (0,external_wp_i18n_namespaceObject.__)('View details'),
- size: "compact"
- })));
- }));
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/constants.js
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-// Field types.
-const constants_ENUMERATION_TYPE = 'enumeration';
-
-// Filter operators.
-const constants_OPERATOR_IN = 'in';
-const constants_OPERATOR_NOT_IN = 'notIn';
-const OPERATORS = {
- [constants_OPERATOR_IN]: {
- key: 'in-filter',
- label: (0,external_wp_i18n_namespaceObject.__)('Is')
- },
- [constants_OPERATOR_NOT_IN]: {
- key: 'not-in-filter',
- label: (0,external_wp_i18n_namespaceObject.__)('Is not')
- }
-};
-
-// Sorting
-const SORTING_DIRECTIONS = {
- asc: {
- label: (0,external_wp_i18n_namespaceObject.__)('Sort ascending')
- },
- desc: {
- label: (0,external_wp_i18n_namespaceObject.__)('Sort descending')
- }
-};
-
-// View layouts.
-const constants_LAYOUT_TABLE = 'table';
-const constants_LAYOUT_GRID = 'grid';
-const constants_LAYOUT_LIST = 'list';
-const VIEW_LAYOUTS = [{
- type: constants_LAYOUT_TABLE,
- label: (0,external_wp_i18n_namespaceObject.__)('Table'),
- component: view_table,
- icon: block_table
-}, {
- type: constants_LAYOUT_GRID,
- label: (0,external_wp_i18n_namespaceObject.__)('Grid'),
- component: ViewGrid,
- icon: library_category
-}, {
- type: constants_LAYOUT_LIST,
- label: (0,external_wp_i18n_namespaceObject.__)('List'),
- component: ViewList,
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? format_list_bullets_rtl : format_list_bullets
-}];
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-dataviews/dataview-item.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/site-hub/index.js
/**
* External dependencies
*/
@@ -20820,55 +9621,10 @@ const VIEW_LAYOUTS = [{
-/**
- * Internal dependencies
- */
-const {
- useLocation: dataview_item_useLocation
-} = unlock(external_wp_router_namespaceObject.privateApis);
-function DataViewItem({
- title,
- slug,
- customViewId,
- type,
- icon,
- isActive,
- isCustom,
- suffix
-}) {
- const {
- params: {
- path,
- layout
- }
- } = dataview_item_useLocation();
- const iconToUse = icon || VIEW_LAYOUTS.find(v => v.type === type).icon;
- const linkInfo = useLink({
- path,
- layout,
- activeView: isCustom === 'true' ? customViewId : slug,
- isCustom
- });
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "flex-start",
- className: classnames_default()('edit-site-sidebar-dataviews-dataview-item', {
- 'is-selected': isActive
- })
- }, (0,external_React_.createElement)(SidebarNavigationItem, {
- icon: iconToUse,
- ...linkInfo,
- "aria-current": isActive ? 'true' : undefined
- }, title), suffix);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-templates-browse/content.js
-/**
- * WordPress dependencies
- */
@@ -20879,2776 +9635,163 @@ function DataViewItem({
-const content_EMPTY_ARRAY = [];
-function TemplateDataviewItem({
- template,
- isActive
-}) {
- const {
- text,
- icon
- } = useAddedBy(template.type, template.id);
- return (0,external_React_.createElement)(DataViewItem, {
- key: text,
- slug: text,
- title: text,
- icon: icon,
- isActive: isActive,
- isCustom: "false"
- });
-}
-function DataviewsTemplatesSidebarContent({
- activeView,
- postType,
- title
-}) {
- const {
- records
- } = (0,external_wp_coreData_namespaceObject.useEntityRecords)('postType', postType, {
- per_page: -1
- });
- const firstItemPerAuthorText = (0,external_wp_element_namespaceObject.useMemo)(() => {
- var _ref;
- const firstItemPerAuthor = records?.reduce((acc, template) => {
- const author = template.author_text;
- if (author && !acc[author]) {
- acc[author] = template;
- }
- return acc;
- }, {});
- return (_ref = firstItemPerAuthor && Object.values(firstItemPerAuthor)) !== null && _ref !== void 0 ? _ref : content_EMPTY_ARRAY;
- }, [records]);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, null, (0,external_React_.createElement)(DataViewItem, {
- slug: 'all',
- title: title,
- icon: library_layout,
- isActive: activeView === 'all',
- isCustom: "false"
- }), firstItemPerAuthorText.map(template => {
- return (0,external_React_.createElement)(TemplateDataviewItem, {
- key: template.author_text,
- template: template,
- isActive: activeView === template.author_text
- });
- }));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-templates-browse/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-const config = {
- [constants_TEMPLATE_POST_TYPE]: {
- title: (0,external_wp_i18n_namespaceObject.__)('Manage templates'),
- description: (0,external_wp_i18n_namespaceObject.__)('Create new templates, or reset any customizations made to the templates supplied by your theme.'),
- contentTitle: (0,external_wp_i18n_namespaceObject.__)('All templates')
- },
- [TEMPLATE_PART_POST_TYPE]: {
- title: (0,external_wp_i18n_namespaceObject.__)('Manage template parts'),
- description: (0,external_wp_i18n_namespaceObject.__)('Create new template parts, or reset any customizations made to the template parts supplied by your theme.'),
- backPath: '/patterns',
- contentTitle: (0,external_wp_i18n_namespaceObject.__)('All template parts')
- }
-};
const {
- useLocation: sidebar_navigation_screen_templates_browse_useLocation
-} = unlock(external_wp_router_namespaceObject.privateApis);
-function SidebarNavigationScreenTemplatesBrowse() {
- const {
- params: {
- postType
- }
- } = (0,external_wp_components_namespaceObject.__experimentalUseNavigator)();
- const {
- params: {
- didAccessPatternsPage,
- activeView = 'all'
- }
- } = sidebar_navigation_screen_templates_browse_useLocation();
- const isTemplatePartsMode = (0,external_wp_data_namespaceObject.useSelect)(select => {
- return !!select(store_store).getSettings().supportsTemplatePartsMode;
- }, []);
- return (0,external_React_.createElement)(SidebarNavigationScreen
- // If a classic theme that supports template parts has never
- // accessed the Patterns page, return to the dashboard.
- , {
- isRoot: isTemplatePartsMode && !didAccessPatternsPage,
- title: config[postType].title,
- description: config[postType].description,
- backPath: config[postType].backPath,
- content: (0,external_React_.createElement)(DataviewsTemplatesSidebarContent, {
- activeView: activeView,
- postType: postType,
- title: config[postType].contentTitle
- })
- });
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/save-button/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-function SaveButton({
- className = 'edit-site-save-button__button',
- variant = 'primary',
- showTooltip = true,
- defaultLabel,
- icon,
- __next40pxDefaultSize = false
-}) {
- const {
- isDirty,
- isSaving,
- isSaveViewOpen,
- previewingThemeName
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- __experimentalGetDirtyEntityRecords,
- isSavingEntityRecord,
- isResolving
- } = select(external_wp_coreData_namespaceObject.store);
- const dirtyEntityRecords = __experimentalGetDirtyEntityRecords();
- const {
- isSaveViewOpened
- } = select(store_store);
- const isActivatingTheme = isResolving('activateTheme');
- const currentlyPreviewingThemeId = currentlyPreviewingTheme();
- return {
- isDirty: dirtyEntityRecords.length > 0,
- isSaving: dirtyEntityRecords.some(record => isSavingEntityRecord(record.kind, record.name, record.key)) || isActivatingTheme,
- isSaveViewOpen: isSaveViewOpened(),
- // Do not call `getTheme` with null, it will cause a request to
- // the server.
- previewingThemeName: currentlyPreviewingThemeId ? select(external_wp_coreData_namespaceObject.store).getTheme(currentlyPreviewingThemeId)?.name?.rendered : undefined
- };
- }, []);
- const {
- setIsSaveViewOpened
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const activateSaveEnabled = isPreviewingTheme() || isDirty;
- const disabled = isSaving || !activateSaveEnabled;
- const getLabel = () => {
- if (isPreviewingTheme()) {
- if (isSaving) {
- return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: The name of theme to be activated. */
- (0,external_wp_i18n_namespaceObject.__)('Activating %s'), previewingThemeName);
- } else if (disabled) {
- return (0,external_wp_i18n_namespaceObject.__)('Saved');
- } else if (isDirty) {
- return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: The name of theme to be activated. */
- (0,external_wp_i18n_namespaceObject.__)('Activate %s & Save'), previewingThemeName);
- }
- return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: The name of theme to be activated. */
- (0,external_wp_i18n_namespaceObject.__)('Activate %s'), previewingThemeName);
- }
- if (isSaving) {
- return (0,external_wp_i18n_namespaceObject.__)('Saving');
- } else if (disabled) {
- return (0,external_wp_i18n_namespaceObject.__)('Saved');
- } else if (defaultLabel) {
- return defaultLabel;
- }
- return (0,external_wp_i18n_namespaceObject.__)('Save');
- };
- const label = getLabel();
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: variant,
- className: className,
- "aria-disabled": disabled,
- "aria-expanded": isSaveViewOpen,
- isBusy: isSaving,
- onClick: disabled ? undefined : () => setIsSaveViewOpened(true),
- label: label
- /*
- * We want the tooltip to show the keyboard shortcut only when the
- * button does something, i.e. when it's not disabled.
- */,
- shortcut: disabled ? undefined : external_wp_keycodes_namespaceObject.displayShortcut.primary('s')
- /*
- * Displaying the keyboard shortcut conditionally makes the tooltip
- * itself show conditionally. This would trigger a full-rerendering
- * of the button that we want to avoid. By setting `showTooltip`,
- * the tooltip is always rendered even when there's no keyboard shortcut.
- */,
- showTooltip: showTooltip,
- icon: icon,
- __next40pxDefaultSize: __next40pxDefaultSize,
- size: "compact"
- }, label);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/save-hub/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
+ useHistory
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
-const {
- useLocation: save_hub_useLocation
-} = unlock(external_wp_router_namespaceObject.privateApis);
-const PUBLISH_ON_SAVE_ENTITIES = [{
- kind: 'postType',
- name: NAVIGATION_POST_TYPE
-}];
-function SaveHub() {
- const saveNoticeId = 'site-edit-save-notice';
+const SiteHub = (0,external_wp_element_namespaceObject.memo)((0,external_wp_element_namespaceObject.forwardRef)(({
+ isTransparent
+}, ref) => {
const {
- params
- } = save_hub_useLocation();
- const {
- __unstableMarkLastChangeAsPersistent
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- const {
- createSuccessNotice,
- createErrorNotice,
- removeNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- const {
- dirtyCurrentEntity,
- countUnsavedChanges,
- isDirty,
- isSaving
+ dashboardLink,
+ homeUrl,
+ siteTitle
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
- __experimentalGetDirtyEntityRecords,
- isSavingEntityRecord
- } = select(external_wp_coreData_namespaceObject.store);
- const dirtyEntityRecords = __experimentalGetDirtyEntityRecords();
- let calcDirtyCurrentEntity = null;
- if (dirtyEntityRecords.length === 1) {
- // if we are on global styles
- if (params.path?.includes('wp_global_styles')) {
- calcDirtyCurrentEntity = dirtyEntityRecords.find(record => record.name === 'globalStyles');
- }
- // if we are on pages
- else if (params.postId) {
- calcDirtyCurrentEntity = dirtyEntityRecords.find(record => record.name === params.postType && String(record.key) === params.postId);
- }
- }
- return {
- dirtyCurrentEntity: calcDirtyCurrentEntity,
- isDirty: dirtyEntityRecords.length > 0,
- isSaving: dirtyEntityRecords.some(record => isSavingEntityRecord(record.kind, record.name, record.key)),
- countUnsavedChanges: dirtyEntityRecords.length
- };
- }, [params.path, params.postType, params.postId]);
- const {
- editEntityRecord,
- saveEditedEntityRecord,
- __experimentalSaveSpecifiedEntityEdits: saveSpecifiedEntityEdits
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const disabled = isSaving || !isDirty && !isPreviewingTheme();
-
- // if we have only one unsaved change and it matches current context, we can show a more specific label
- let label = dirtyCurrentEntity ? (0,external_wp_i18n_namespaceObject.__)('Save') : (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %d: number of unsaved changes (number).
- (0,external_wp_i18n_namespaceObject._n)('Review %d change…', 'Review %d changes…', countUnsavedChanges), countUnsavedChanges);
- if (isSaving) {
- label = (0,external_wp_i18n_namespaceObject.__)('Saving');
- }
- const {
- homeUrl
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ getSettings
+ } = lock_unlock_unlock(select(store));
const {
+ getSite,
getUnstableBase // Site index.
} = select(external_wp_coreData_namespaceObject.store);
+ const _site = getSite();
return {
- homeUrl: getUnstableBase()?.home
- };
- }, []);
- const saveCurrentEntity = async () => {
- if (!dirtyCurrentEntity) return;
- removeNotice(saveNoticeId);
- const {
- kind,
- name,
- key,
- property
- } = dirtyCurrentEntity;
- try {
- if ('root' === dirtyCurrentEntity.kind && 'site' === name) {
- await saveSpecifiedEntityEdits('root', 'site', undefined, [property]);
- } else {
- if (PUBLISH_ON_SAVE_ENTITIES.some(typeToPublish => typeToPublish.kind === kind && typeToPublish.name === name)) {
- editEntityRecord(kind, name, key, {
- status: 'publish'
- });
- }
- await saveEditedEntityRecord(kind, name, key);
- }
- __unstableMarkLastChangeAsPersistent();
- createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Site updated.'), {
- type: 'snackbar',
- actions: [{
- label: (0,external_wp_i18n_namespaceObject.__)('View site'),
- url: homeUrl
- }],
- id: saveNoticeId
- });
- } catch (error) {
- createErrorNotice(`${(0,external_wp_i18n_namespaceObject.__)('Saving failed.')} ${error}`);
- }
- };
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- className: "edit-site-save-hub",
- alignment: "right",
- spacing: 4
- }, dirtyCurrentEntity ? (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: saveCurrentEntity,
- isBusy: isSaving,
- disabled: isSaving,
- "aria-disabled": isSaving,
- className: "edit-site-save-hub__button",
- __next40pxDefaultSize: true
- }, label) : (0,external_React_.createElement)(SaveButton, {
- className: "edit-site-save-hub__button",
- variant: disabled ? null : 'primary',
- showTooltip: false,
- icon: disabled && !isSaving ? library_check : null,
- defaultLabel: label,
- __next40pxDefaultSize: true
- }));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/add-new-page/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-function AddNewPageModal({
- onSave,
- onClose
-}) {
- const [isCreatingPage, setIsCreatingPage] = (0,external_wp_element_namespaceObject.useState)(false);
- const [title, setTitle] = (0,external_wp_element_namespaceObject.useState)('');
- const {
- saveEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const {
- createErrorNotice,
- createSuccessNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- async function createPage(event) {
- event.preventDefault();
- if (isCreatingPage) {
- return;
- }
- setIsCreatingPage(true);
- try {
- const newPage = await saveEntityRecord('postType', 'page', {
- status: 'draft',
- title,
- slug: title || (0,external_wp_i18n_namespaceObject.__)('No title')
- }, {
- throwOnError: true
- });
- onSave(newPage);
- createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Title of the created template e.g: "Category".
- (0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), newPage.title?.rendered || title), {
- type: 'snackbar'
- });
- } catch (error) {
- const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : (0,external_wp_i18n_namespaceObject.__)('An error occurred while creating the page.');
- createErrorNotice(errorMessage, {
- type: 'snackbar'
- });
- } finally {
- setIsCreatingPage(false);
- }
- }
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
- title: (0,external_wp_i18n_namespaceObject.__)('Draft a new page'),
- onRequestClose: onClose
- }, (0,external_React_.createElement)("form", {
- onSubmit: createPage
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 3
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Page title'),
- onChange: setTitle,
- placeholder: (0,external_wp_i18n_namespaceObject.__)('No title'),
- value: title
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- spacing: 2,
- justify: "end"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: onClose
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- type: "submit",
- isBusy: isCreatingPage,
- "aria-disabled": isCreatingPage
- }, (0,external_wp_i18n_namespaceObject.__)('Create draft'))))));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-pages/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-
-const {
- useHistory: sidebar_navigation_screen_pages_useHistory
-} = unlock(external_wp_router_namespaceObject.privateApis);
-const PageItem = ({
- postType = 'page',
- postId,
- ...props
-}) => {
- const linkInfo = useLink({
- postType,
- postId
- }, {
- backPath: '/page'
- });
- return (0,external_React_.createElement)(SidebarNavigationItem, {
- ...linkInfo,
- ...props
- });
-};
-function SidebarNavigationScreenPages() {
- const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
- const {
- records: pages,
- isResolving: isLoadingPages
- } = (0,external_wp_coreData_namespaceObject.useEntityRecords)('postType', 'page', {
- status: 'any',
- per_page: -1
- });
- const {
- records: templates,
- isResolving: isLoadingTemplates
- } = (0,external_wp_coreData_namespaceObject.useEntityRecords)('postType', constants_TEMPLATE_POST_TYPE, {
- per_page: -1
- });
- const dynamicPageTemplates = templates?.filter(({
- slug
- }) => ['404', 'search'].includes(slug));
- const homeTemplate = templates?.find(template => template.slug === 'front-page') || templates?.find(template => template.slug === 'home') || templates?.find(template => template.slug === 'index');
- const getPostsPageTemplate = () => templates?.find(template => template.slug === 'home') || templates?.find(template => template.slug === 'index');
- const pagesAndTemplates = pages?.concat(dynamicPageTemplates, [homeTemplate]);
- const {
- frontPage,
- postsPage
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEntityRecord
- } = select(external_wp_coreData_namespaceObject.store);
- const siteSettings = getEntityRecord('root', 'site');
- return {
- frontPage: siteSettings?.page_on_front,
- postsPage: siteSettings?.page_for_posts
+ dashboardLink: getSettings().__experimentalDashboardLink || 'index.php',
+ homeUrl: getUnstableBase()?.home,
+ siteTitle: !_site?.title && !!_site?.url ? (0,external_wp_url_namespaceObject.filterURLForDisplay)(_site?.url) : _site?.title
};
}, []);
- const isHomePageBlog = frontPage === postsPage;
- const reorderedPages = pages && [...pages];
- if (!isHomePageBlog && reorderedPages?.length) {
- const homePageIndex = reorderedPages.findIndex(item => item.id === frontPage);
- const homePage = reorderedPages.splice(homePageIndex, 1);
- reorderedPages?.splice(0, 0, ...homePage);
- const postsPageIndex = reorderedPages.findIndex(item => item.id === postsPage);
- const blogPage = reorderedPages.splice(postsPageIndex, 1);
- reorderedPages.splice(1, 0, ...blogPage);
- }
- const [showAddPage, setShowAddPage] = (0,external_wp_element_namespaceObject.useState)(false);
- const history = sidebar_navigation_screen_pages_useHistory();
- const handleNewPage = ({
- type,
- id
- }) => {
- // Navigate to the created template editor.
- history.push({
- postId: id,
- postType: type,
- canvas: 'edit'
- });
- setShowAddPage(false);
- };
- const getPageProps = id => {
- let itemIcon = library_page;
- const postsPageTemplateId = postsPage && postsPage === id ? getPostsPageTemplate()?.id : null;
- switch (id) {
- case frontPage:
- itemIcon = library_home;
- break;
- case postsPage:
- itemIcon = library_verse;
- break;
- }
- return {
- icon: itemIcon,
- postType: postsPageTemplateId ? constants_TEMPLATE_POST_TYPE : 'page',
- postId: postsPageTemplateId || id
- };
- };
- const pagesLink = useLink({
- path: '/pages'
- });
- return (0,external_React_.createElement)(external_React_.Fragment, null, showAddPage && (0,external_React_.createElement)(AddNewPageModal, {
- onSave: handleNewPage,
- onClose: () => setShowAddPage(false)
- }), (0,external_React_.createElement)(SidebarNavigationScreen, {
- title: (0,external_wp_i18n_namespaceObject.__)('Pages'),
- description: (0,external_wp_i18n_namespaceObject.__)('Browse and manage pages.'),
- actions: (0,external_React_.createElement)(SidebarButton, {
- icon: library_plus,
- label: (0,external_wp_i18n_namespaceObject.__)('Draft a new page'),
- onClick: () => setShowAddPage(true)
- }),
- content: (0,external_React_.createElement)(external_React_.Fragment, null, (isLoadingPages || isLoadingTemplates) && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItem, null, (0,external_wp_i18n_namespaceObject.__)('Loading pages…'))), !(isLoadingPages || isLoadingTemplates) && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, null, !pagesAndTemplates?.length && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItem, null, (0,external_wp_i18n_namespaceObject.__)('No page found')), isHomePageBlog && homeTemplate && (0,external_React_.createElement)(PageItem, {
- postType: constants_TEMPLATE_POST_TYPE,
- postId: homeTemplate.id,
- key: homeTemplate.id,
- icon: library_home,
- withChevron: true
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, {
- numberOfLines: 1
- }, (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(homeTemplate.title?.rendered || (0,external_wp_i18n_namespaceObject.__)('(no title)')))), reorderedPages?.map(({
- id,
- title
- }) => (0,external_React_.createElement)(PageItem, {
- ...getPageProps(id),
- key: id,
- withChevron: true
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, {
- numberOfLines: 1
- }, (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title?.rendered || (0,external_wp_i18n_namespaceObject.__)('(no title)'))))))),
- footer: (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 0
- }, dynamicPageTemplates?.map(item => (0,external_React_.createElement)(PageItem, {
- postType: constants_TEMPLATE_POST_TYPE,
- postId: item.id,
- key: item.id,
- icon: library_layout,
- withChevron: true
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, {
- numberOfLines: 1
- }, (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(item.title?.rendered || (0,external_wp_i18n_namespaceObject.__)('(no title)'))))), !isMobileViewport && (0,external_React_.createElement)(SidebarNavigationItem, {
- className: "edit-site-sidebar-navigation-screen-pages__see-all",
- ...pagesLink
- }, (0,external_wp_i18n_namespaceObject.__)('Manage all pages')))
- }));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pages.js
-
-/**
- * WordPress dependencies
- */
-
-const pages = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"
-}));
-/* harmony default export */ const library_pages = (pages);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/drafts.js
-
-/**
- * WordPress dependencies
- */
-
-const drafts = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M8 2H6a2 2 0 0 0-2 2v2.4h1.5V4a.5.5 0 0 1 .5-.5h2V2ZM4 13.6V16a2 2 0 0 0 2 2h2v-1.5H6a.5.5 0 0 1-.5-.5v-2.4H4Zm0-1.2h1.5V7.6H4v4.8ZM9 2v1.5h4V2H9Zm5 0v1.5h2a.5.5 0 0 1 .5.5v2.4H18V4a2 2 0 0 0-2-2h-2Zm4 5.6h-1.5v4.8H18V7.6Zm0 6h-1.5V16a.5.5 0 0 1-.5.5h-2V18h2a2 2 0 0 0 2-2v-2.4ZM13 18v-1.5H9V18h4ZM7 7.25h8v-1.5H7v1.5Zm0 3.25h6V9H7v1.5ZM21.75 19V6h-1.5v13c0 .69-.56 1.25-1.25 1.25H8v1.5h11A2.75 2.75 0 0 0 21.75 19Z"
-}));
-/* harmony default export */ const library_drafts = (drafts);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/trash.js
-
-/**
- * WordPress dependencies
- */
-
-const trash = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"
-}));
-/* harmony default export */ const library_trash = (trash);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-dataviews/default-views.js
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-const DEFAULT_CONFIG_PER_VIEW_TYPE = {
- [LAYOUT_TABLE]: {
- primaryField: 'title'
- },
- [LAYOUT_GRID]: {
- mediaField: 'featured-image',
- primaryField: 'title'
- },
- [LAYOUT_LIST]: {
- primaryField: 'title',
- mediaField: 'featured-image'
- }
-};
-const DEFAULT_PAGE_BASE = {
- type: LAYOUT_TABLE,
- search: '',
- filters: [],
- page: 1,
- perPage: 20,
- sort: {
- field: 'date',
- direction: 'desc'
- },
- // All fields are visible by default, so it's
- // better to keep track of the hidden ones.
- hiddenFields: ['date', 'featured-image'],
- layout: {
- ...DEFAULT_CONFIG_PER_VIEW_TYPE[LAYOUT_TABLE]
- }
-};
-const DEFAULT_VIEWS = {
- page: [{
- title: (0,external_wp_i18n_namespaceObject.__)('All pages'),
- slug: 'all',
- icon: library_pages,
- view: DEFAULT_PAGE_BASE
- }, {
- title: (0,external_wp_i18n_namespaceObject.__)('Drafts'),
- slug: 'drafts',
- icon: library_drafts,
- view: {
- ...DEFAULT_PAGE_BASE,
- filters: [{
- field: 'status',
- operator: OPERATOR_IN,
- value: 'draft'
- }]
- }
- }, {
- title: (0,external_wp_i18n_namespaceObject.__)('Trash'),
- slug: 'trash',
- icon: library_trash,
- view: {
- ...DEFAULT_PAGE_BASE,
- filters: [{
- field: 'status',
- operator: OPERATOR_IN,
- value: 'trash'
- }]
- }
- }]
-};
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-dataviews/add-new-view.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-const {
- useHistory: add_new_view_useHistory,
- useLocation: add_new_view_useLocation
-} = unlock(external_wp_router_namespaceObject.privateApis);
-function AddNewItemModalContent({
- type,
- setIsAdding
-}) {
- const {
- params: {
- path
- }
- } = add_new_view_useLocation();
- const history = add_new_view_useHistory();
- const {
- saveEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const [title, setTitle] = (0,external_wp_element_namespaceObject.useState)('');
- const [isSaving, setIsSaving] = (0,external_wp_element_namespaceObject.useState)(false);
- return (0,external_React_.createElement)("form", {
- onSubmit: async event => {
- event.preventDefault();
- setIsSaving(true);
- const {
- getEntityRecords
- } = (0,external_wp_data_namespaceObject.resolveSelect)(external_wp_coreData_namespaceObject.store);
- let dataViewTaxonomyId;
- const dataViewTypeRecords = await getEntityRecords('taxonomy', 'wp_dataviews_type', {
- slug: type
- });
- if (dataViewTypeRecords && dataViewTypeRecords.length > 0) {
- dataViewTaxonomyId = dataViewTypeRecords[0].id;
- } else {
- const record = await saveEntityRecord('taxonomy', 'wp_dataviews_type', {
- name: type
- });
- if (record && record.id) {
- dataViewTaxonomyId = record.id;
- }
- }
- const savedRecord = await saveEntityRecord('postType', 'wp_dataviews', {
- title,
- status: 'publish',
- wp_dataviews_type: dataViewTaxonomyId,
- content: JSON.stringify(DEFAULT_VIEWS[type][0].view)
- });
- history.push({
- path,
- activeView: savedRecord.id,
- isCustom: 'true'
- });
- setIsSaving(false);
- setIsAdding(false);
- }
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "5"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Name'),
- value: title,
- onChange: setTitle,
- placeholder: (0,external_wp_i18n_namespaceObject.__)('My view'),
- className: "patterns-create-modal__name-input"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: () => {
- setIsAdding(false);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- type: "submit",
- "aria-disabled": !title || isSaving,
- isBusy: isSaving
- }, (0,external_wp_i18n_namespaceObject.__)('Create')))));
-}
-function AddNewItem({
- type
-}) {
- const [isAdding, setIsAdding] = (0,external_wp_element_namespaceObject.useState)(false);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(SidebarNavigationItem, {
- icon: library_plus,
- onClick: () => {
- setIsAdding(true);
- },
- className: "dataviews__siderbar-content-add-new-item"
- }, (0,external_wp_i18n_namespaceObject.__)('New view')), isAdding && (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
- title: (0,external_wp_i18n_namespaceObject.__)('Add new view'),
- onRequestClose: () => {
- setIsAdding(false);
- }
- }, (0,external_React_.createElement)(AddNewItemModalContent, {
- type: type,
- setIsAdding: setIsAdding
- })));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-dataviews/custom-dataviews-list.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-const {
- useHistory: custom_dataviews_list_useHistory,
- useLocation: custom_dataviews_list_useLocation
-} = unlock(external_wp_router_namespaceObject.privateApis);
-const custom_dataviews_list_EMPTY_ARRAY = [];
-function RenameItemModalContent({
- dataviewId,
- currentTitle,
- setIsRenaming
-}) {
- const {
- editEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const [title, setTitle] = (0,external_wp_element_namespaceObject.useState)(currentTitle);
- return (0,external_React_.createElement)("form", {
- onSubmit: async event => {
- event.preventDefault();
- await editEntityRecord('postType', 'wp_dataviews', dataviewId, {
- title
- });
- setIsRenaming(false);
- }
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "5"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Name'),
- value: title,
- onChange: setTitle,
- placeholder: (0,external_wp_i18n_namespaceObject.__)('My view'),
- className: "patterns-create-modal__name-input"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: () => {
- setIsRenaming(false);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- type: "submit",
- "aria-disabled": !title
- }, (0,external_wp_i18n_namespaceObject.__)('Rename')))));
-}
-function CustomDataViewItem({
- dataviewId,
- isActive
-}) {
- const {
- params: {
- path
- }
- } = custom_dataviews_list_useLocation();
- const history = custom_dataviews_list_useHistory();
const {
- dataview
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEditedEntityRecord
- } = select(external_wp_coreData_namespaceObject.store);
- return {
- dataview: getEditedEntityRecord('postType', 'wp_dataviews', dataviewId)
- };
- }, [dataviewId]);
- const {
- deleteEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const type = (0,external_wp_element_namespaceObject.useMemo)(() => {
- const viewContent = JSON.parse(dataview.content);
- return viewContent.type;
- }, [dataview.content]);
- const [isRenaming, setIsRenaming] = (0,external_wp_element_namespaceObject.useState)(false);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(DataViewItem, {
- title: dataview.title,
- type: type,
- isActive: isActive,
- isCustom: "true",
- customViewId: dataviewId,
- suffix: (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
- icon: more_vertical,
- label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
- className: "edit-site-sidebar-dataviews-dataview-item__dropdown-menu",
- toggleProps: {
- style: {
- color: 'inherit'
- },
- size: 'small'
- }
- }, ({
- onClose
- }) => (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- setIsRenaming(true);
- onClose();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Rename')), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: async () => {
- await deleteEntityRecord('postType', 'wp_dataviews', dataview.id, {
- force: true
- });
- if (isActive) {
- history.replace({
- path
- });
- }
- onClose();
- },
- isDestructive: true
- }, (0,external_wp_i18n_namespaceObject.__)('Delete'))))
- }), isRenaming && (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
- title: (0,external_wp_i18n_namespaceObject.__)('Rename view'),
- onRequestClose: () => {
- setIsRenaming(false);
- }
- }, (0,external_React_.createElement)(RenameItemModalContent, {
- dataviewId: dataviewId,
- setIsRenaming: setIsRenaming,
- currentTitle: dataview.title
- })));
-}
-function useCustomDataViews(type) {
- const customDataViews = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEntityRecords
- } = select(external_wp_coreData_namespaceObject.store);
- const dataViewTypeRecords = getEntityRecords('taxonomy', 'wp_dataviews_type', {
- slug: type
- });
- if (!dataViewTypeRecords || dataViewTypeRecords.length === 0) {
- return custom_dataviews_list_EMPTY_ARRAY;
- }
- const dataViews = getEntityRecords('postType', 'wp_dataviews', {
- wp_dataviews_type: dataViewTypeRecords[0].id,
- orderby: 'date',
- order: 'asc'
- });
- if (!dataViews) {
- return custom_dataviews_list_EMPTY_ARRAY;
- }
- return dataViews;
- });
- return customDataViews;
-}
-function CustomDataViewsList({
- type,
- activeView,
- isCustom
-}) {
- const customDataViews = useCustomDataViews(type);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("div", {
- className: "edit-site-sidebar-navigation-screen-dataviews__group-header"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
- level: 2
- }, (0,external_wp_i18n_namespaceObject.__)('Custom Views'))), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, null, customDataViews.map(customViewRecord => {
- return (0,external_React_.createElement)(CustomDataViewItem, {
- key: customViewRecord.id,
- dataviewId: customViewRecord.id,
- isActive: isCustom === 'true' && Number(activeView) === customViewRecord.id
- });
- }), (0,external_React_.createElement)(AddNewItem, {
- type: type
- })));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-dataviews/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-/**
- * Internal dependencies
- */
-
-
-
-const {
- useLocation: sidebar_dataviews_useLocation
-} = unlock(external_wp_router_namespaceObject.privateApis);
-
-
-const PATH_TO_TYPE = {
- '/pages': 'page'
-};
-function DataViewsSidebarContent() {
- const {
- params: {
- path,
- activeView = 'all',
- isCustom = 'false'
- }
- } = sidebar_dataviews_useLocation();
- if (!path || !PATH_TO_TYPE[path]) {
- return null;
- }
- const type = PATH_TO_TYPE[path];
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, null, DEFAULT_VIEWS[type].map(dataview => {
- return (0,external_React_.createElement)(DataViewItem, {
- key: dataview.slug,
- slug: dataview.slug,
- title: dataview.title,
- icon: dataview.icon,
- type: dataview.view.type,
- isActive: isCustom === 'false' && dataview.slug === activeView,
- isCustom: "false"
- });
- })), window?.__experimentalAdminViews && (0,external_React_.createElement)(CustomDataViewsList, {
- activeView: activeView,
- type: type,
- isCustom: "true"
- }));
-}
-
-;// CONCATENATED MODULE: external ["wp","dom"]
-const external_wp_dom_namespaceObject = window["wp"]["dom"];
-;// CONCATENATED MODULE: external ["wp","escapeHtml"]
-const external_wp_escapeHtml_namespaceObject = window["wp"]["escapeHtml"];
-;// CONCATENATED MODULE: external ["wp","wordcount"]
-const external_wp_wordcount_namespaceObject = window["wp"]["wordcount"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-page/status-label.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-function StatusLabel({
- status,
- date,
- short
-}) {
- const relateToNow = (0,external_wp_date_namespaceObject.humanTimeDiff)(date);
- let statusLabel = status;
- switch (status) {
- case 'publish':
- statusLabel = date ? (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: is the relative time when the post was published. */
- (0,external_wp_i18n_namespaceObject.__)('Published <time>%s</time>'), relateToNow), {
- time: (0,external_React_.createElement)("time", {
- dateTime: date
- })
- }) : (0,external_wp_i18n_namespaceObject.__)('Published');
- break;
- case 'future':
- const formattedDate = (0,external_wp_date_namespaceObject.dateI18n)(short ? 'M j' : 'F j', (0,external_wp_date_namespaceObject.getDate)(date));
- statusLabel = date ? (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: is the formatted date and time on which the post is scheduled to be published. */
- (0,external_wp_i18n_namespaceObject.__)('Scheduled: <time>%s</time>'), formattedDate), {
- time: (0,external_React_.createElement)("time", {
- dateTime: date
+ open: openCommandCenter
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_commands_namespaceObject.store);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-site-hub",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "flex-start",
+ spacing: "0",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('edit-site-site-hub__view-mode-toggle-container', {
+ 'has-transparent-background': isTransparent
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ ref: ref,
+ href: dashboardLink,
+ label: (0,external_wp_i18n_namespaceObject.__)('Go to the Dashboard'),
+ className: "edit-site-layout__view-mode-toggle",
+ style: {
+ transform: 'scale(0.5)',
+ borderRadius: 4
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(site_icon, {
+ className: "edit-site-layout__view-mode-toggle-icon"
+ })
})
- }) : (0,external_wp_i18n_namespaceObject.__)('Scheduled');
- break;
- case 'draft':
- statusLabel = (0,external_wp_i18n_namespaceObject.__)('Draft');
- break;
- case 'pending':
- statusLabel = (0,external_wp_i18n_namespaceObject.__)('Pending');
- break;
- case 'private':
- statusLabel = (0,external_wp_i18n_namespaceObject.__)('Private');
- break;
- case 'protected':
- statusLabel = (0,external_wp_i18n_namespaceObject.__)('Password protected');
- break;
- }
- return (0,external_React_.createElement)("div", {
- className: classnames_default()('edit-site-sidebar-navigation-screen-page__status', {
- [`has-status has-${status}-status`]: !!status
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-site-hub__title",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "link",
+ href: homeUrl,
+ target: "_blank",
+ label: (0,external_wp_i18n_namespaceObject.__)('View site (opens in a new tab)'),
+ children: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(siteTitle)
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
+ spacing: 0,
+ expanded: false,
+ className: "edit-site-site-hub__actions",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "edit-site-site-hub_toggle-command-center",
+ icon: library_search,
+ onClick: () => openCommandCenter(),
+ label: (0,external_wp_i18n_namespaceObject.__)('Open command palette'),
+ shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('k')
+ })
+ })]
+ })]
})
- }, statusLabel);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-page/page-details.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-// Taken from packages/editor/src/components/time-to-read/index.js.
-const AVERAGE_READING_RATE = 189;
-function getPageDetails(page) {
- if (!page) {
- return [];
- }
- const details = [{
- label: (0,external_wp_i18n_namespaceObject.__)('Status'),
- value: (0,external_React_.createElement)(StatusLabel, {
- status: page?.password ? 'protected' : page.status,
- date: page?.date,
- short: true
- })
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('Slug'),
- value: (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, {
- numberOfLines: 1
- }, (0,external_wp_url_namespaceObject.safeDecodeURIComponent)(page.slug || page.generated_slug))
- }];
- if (page?.templateTitle) {
- details.push({
- label: (0,external_wp_i18n_namespaceObject.__)('Template'),
- value: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(page.templateTitle)
- });
- }
- if (page?.parentTitle) {
- details.push({
- label: (0,external_wp_i18n_namespaceObject.__)('Parent'),
- value: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(page.parentTitle || (0,external_wp_i18n_namespaceObject.__)('(no title)'))
- });
- }
-
- /*
- * translators: If your word count is based on single characters (e.g. East Asian characters),
- * enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'.
- * Do not translate into your own language.
- */
- const wordCountType = (0,external_wp_i18n_namespaceObject._x)('words', 'Word count type. Do not translate!');
- const wordsCounted = page?.content?.rendered ? (0,external_wp_wordcount_namespaceObject.count)(page.content.rendered, wordCountType) : 0;
- const readingTime = Math.round(wordsCounted / AVERAGE_READING_RATE);
- if (wordsCounted && !page?.isPostsPage) {
- details.push({
- label: (0,external_wp_i18n_namespaceObject.__)('Words'),
- value: wordsCounted.toLocaleString() || (0,external_wp_i18n_namespaceObject.__)('Unknown')
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('Time to read'),
- value: readingTime > 1 ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: is the number of minutes. */
- (0,external_wp_i18n_namespaceObject.__)('%s mins'), readingTime.toLocaleString()) : (0,external_wp_i18n_namespaceObject.__)('< 1 min')
- });
- }
- return details;
-}
-function PageDetails({
- id
-}) {
- const {
- record
- } = (0,external_wp_coreData_namespaceObject.useEntityRecord)('postType', 'page', id);
- const {
- parentTitle,
- templateTitle,
- isPostsPage
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEditedPostId
- } = unlock(select(store_store));
- const template = select(external_wp_coreData_namespaceObject.store).getEntityRecord('postType', constants_TEMPLATE_POST_TYPE, getEditedPostId());
- const _templateTitle = template?.title?.rendered;
-
- // Parent page title.
- const _parentTitle = record?.parent ? select(external_wp_coreData_namespaceObject.store).getEntityRecord('postType', 'page', record.parent, {
- _fields: ['title']
- })?.title?.rendered : null;
- const {
- getEntityRecord
- } = select(external_wp_coreData_namespaceObject.store);
- const siteSettings = getEntityRecord('root', 'site');
- return {
- parentTitle: _parentTitle,
- templateTitle: _templateTitle,
- isPostsPage: record?.id === siteSettings?.page_for_posts
- };
- }, [record?.parent, record?.id]);
- return (0,external_React_.createElement)(SidebarNavigationScreenDetailsPanel, {
- spacing: 5,
- title: (0,external_wp_i18n_namespaceObject.__)('Details')
- }, getPageDetails({
- parentTitle,
- templateTitle,
- isPostsPage,
- ...record
- }).map(({
- label,
- value
- }) => (0,external_React_.createElement)(SidebarNavigationScreenDetailsPanelRow, {
- key: label
- }, (0,external_React_.createElement)(SidebarNavigationScreenDetailsPanelLabel, null, label), (0,external_React_.createElement)(SidebarNavigationScreenDetailsPanelValue, null, value))));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-actions/trash-page-menu-item.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-function TrashPageMenuItem({
- postId,
- onRemove
-}) {
- const {
- createSuccessNotice,
- createErrorNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- const {
- deleteEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const page = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getEntityRecord('postType', 'page', postId), [postId]);
- async function removePage() {
- try {
- await deleteEntityRecord('postType', 'page', postId, {}, {
- throwOnError: true
- });
- createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The page's title. */
- (0,external_wp_i18n_namespaceObject.__)('"%s" moved to the Trash.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(page.title.rendered)), {
- type: 'snackbar',
- id: 'edit-site-page-trashed'
- });
- onRemove?.();
- } catch (error) {
- const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : (0,external_wp_i18n_namespaceObject.__)('An error occurred while moving the page to the trash.');
- createErrorNotice(errorMessage, {
- type: 'snackbar'
- });
- }
- }
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => removePage(),
- isDestructive: true,
- variant: "secondary"
- }, (0,external_wp_i18n_namespaceObject.__)('Move to Trash')));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-actions/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-/**
- * Internal dependencies
- */
-
-function PageActions({
- postId,
- toggleProps,
- onRemove
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
- icon: more_vertical,
- label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
- toggleProps: toggleProps
- }, () => (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(TrashPageMenuItem, {
- postId: postId,
- onRemove: onRemove
- })));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-page/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-
-const {
- useHistory: sidebar_navigation_screen_page_useHistory
-} = unlock(external_wp_router_namespaceObject.privateApis);
-function SidebarNavigationScreenPage({
- backPath
-}) {
- const {
- setCanvasMode
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
- const history = sidebar_navigation_screen_page_useHistory();
- const {
- params: {
- postId
- },
- goTo
- } = (0,external_wp_components_namespaceObject.__experimentalUseNavigator)();
- const {
- record,
- hasResolved
- } = (0,external_wp_coreData_namespaceObject.useEntityRecord)('postType', 'page', postId);
- const {
- featuredMediaAltText,
- featuredMediaSourceUrl
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEntityRecord
- } = select(external_wp_coreData_namespaceObject.store);
- // Featured image.
- const attachedMedia = record?.featured_media ? getEntityRecord('postType', 'attachment', record?.featured_media) : null;
- return {
- featuredMediaSourceUrl: attachedMedia?.media_details.sizes?.medium?.source_url || attachedMedia?.source_url,
- featuredMediaAltText: (0,external_wp_escapeHtml_namespaceObject.escapeAttribute)(attachedMedia?.alt_text || attachedMedia?.description?.raw || '')
- };
- }, [record]);
-
- // Redirect to the main pages navigation screen if the page is not found or has been deleted.
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (hasResolved && !record) {
- history.push({
- path: '/page',
- postId: undefined,
- postType: undefined,
- canvas: 'view'
- });
- }
- }, [hasResolved, history]);
- const featureImageAltText = featuredMediaAltText ? (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(featuredMediaAltText) : (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(record?.title?.rendered || (0,external_wp_i18n_namespaceObject.__)('Featured image'));
- return record ? (0,external_React_.createElement)(SidebarNavigationScreen, {
- backPath: backPath,
- title: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(record?.title?.rendered || (0,external_wp_i18n_namespaceObject.__)('(no title)')),
- actions: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(PageActions, {
- postId: postId,
- toggleProps: {
- as: SidebarButton
- },
- onRemove: () => {
- goTo('/page');
- }
- }), (0,external_React_.createElement)(SidebarButton, {
- onClick: () => setCanvasMode('edit'),
- label: (0,external_wp_i18n_namespaceObject.__)('Edit'),
- icon: library_pencil
- })),
- meta: (0,external_React_.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- className: "edit-site-sidebar-navigation-screen__page-link",
- href: record.link
- }, (0,external_wp_url_namespaceObject.filterURLForDisplay)((0,external_wp_url_namespaceObject.safeDecodeURIComponent)(record.link))),
- content: (0,external_React_.createElement)(external_React_.Fragment, null, !!featuredMediaSourceUrl && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- className: "edit-site-sidebar-navigation-screen-page__featured-image-wrapper",
- alignment: "left",
- spacing: 2
- }, (0,external_React_.createElement)("div", {
- className: "edit-site-sidebar-navigation-screen-page__featured-image has-image"
- }, (0,external_React_.createElement)("img", {
- alt: featureImageAltText,
- src: featuredMediaSourceUrl
- }))), !!record?.excerpt?.rendered && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, {
- className: "edit-site-sidebar-navigation-screen-page__excerpt",
- numberOfLines: 3
- }, (0,external_wp_dom_namespaceObject.__unstableStripHTML)(record.excerpt.rendered)), (0,external_React_.createElement)(PageDetails, {
- id: postId
- })),
- footer: record?.modified ? (0,external_React_.createElement)(SidebarNavigationScreenDetailsFooter, {
- record: record
- }) : null
- }) : null;
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-const {
- useLocation: sidebar_useLocation
-} = unlock(external_wp_router_namespaceObject.privateApis);
-function SidebarScreenWrapper({
- className,
- ...props
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
- className: classnames_default()('edit-site-sidebar__screen-wrapper', className),
- ...props
- });
-}
-function SidebarScreens() {
- useSyncPathWithURL();
- const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(SidebarScreenWrapper, {
- path: "/"
- }, (0,external_React_.createElement)(SidebarNavigationScreenMain, null)), (0,external_React_.createElement)(SidebarScreenWrapper, {
- path: "/navigation"
- }, (0,external_React_.createElement)(SidebarNavigationScreenNavigationMenus, null)), (0,external_React_.createElement)(SidebarScreenWrapper, {
- path: "/navigation/:postType/:postId"
- }, (0,external_React_.createElement)(SidebarNavigationScreenNavigationMenu, null)), (0,external_React_.createElement)(SidebarScreenWrapper, {
- path: "/wp_global_styles"
- }, (0,external_React_.createElement)(SidebarNavigationScreenGlobalStyles, null)), (0,external_React_.createElement)(SidebarScreenWrapper, {
- path: "/page"
- }, (0,external_React_.createElement)(SidebarNavigationScreenPages, null)), (0,external_React_.createElement)(SidebarScreenWrapper, {
- path: "/pages"
- }, (0,external_React_.createElement)(SidebarNavigationScreen, {
- title: (0,external_wp_i18n_namespaceObject.__)('Manage pages'),
- content: (0,external_React_.createElement)(DataViewsSidebarContent, null),
- backPath: "/page"
- })), (0,external_React_.createElement)(SidebarScreenWrapper, {
- path: "/page/:postId"
- }, (0,external_React_.createElement)(SidebarNavigationScreenPage, null)), (0,external_React_.createElement)(SidebarScreenWrapper, {
- path: "/:postType(wp_template)"
- }, (0,external_React_.createElement)(SidebarNavigationScreenTemplates, null)), !isMobileViewport && (0,external_React_.createElement)(SidebarScreenWrapper, {
- path: "/patterns"
- }, (0,external_React_.createElement)(SidebarNavigationScreenPatterns, null)), (0,external_React_.createElement)(SidebarScreenWrapper, {
- path: "/:postType(wp_template|wp_template_part)/all"
- }, (0,external_React_.createElement)(SidebarNavigationScreenTemplatesBrowse, null)), (0,external_React_.createElement)(SidebarScreenWrapper, {
- path: "/:postType(wp_template_part|wp_block)/:postId"
- }, (0,external_React_.createElement)(SidebarNavigationScreenPattern, null)), (0,external_React_.createElement)(SidebarScreenWrapper, {
- path: "/:postType(wp_template)/:postId"
- }, (0,external_React_.createElement)(SidebarNavigationScreenTemplate, null)));
-}
-function Sidebar() {
- const {
- params: urlParams
- } = sidebar_useLocation();
- const initialPath = (0,external_wp_element_namespaceObject.useRef)(getPathFromURL(urlParams));
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorProvider, {
- className: "edit-site-sidebar__content",
- initialPath: initialPath.current
- }, (0,external_React_.createElement)(SidebarScreens, null)), (0,external_React_.createElement)(SaveHub, null));
-}
-/* harmony default export */ const sidebar = ((0,external_wp_element_namespaceObject.memo)(Sidebar));
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/error-boundary/warning.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-function CopyButton({
- text,
- children
-}) {
- const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(text);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "secondary",
- ref: ref
- }, children);
-}
-function ErrorBoundaryWarning({
- message,
- error
-}) {
- const actions = [(0,external_React_.createElement)(CopyButton, {
- key: "copy-error",
- text: error.stack
- }, (0,external_wp_i18n_namespaceObject.__)('Copy Error'))];
- return (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.Warning, {
- className: "editor-error-boundary",
- actions: actions
- }, message);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/error-boundary/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-/**
- * Internal dependencies
- */
-
-class ErrorBoundary extends external_wp_element_namespaceObject.Component {
- constructor() {
- super(...arguments);
- this.state = {
- error: null
- };
- }
- componentDidCatch(error) {
- (0,external_wp_hooks_namespaceObject.doAction)('editor.ErrorBoundary.errorLogged', error);
- }
- static getDerivedStateFromError(error) {
- return {
- error
- };
- }
- render() {
- if (!this.state.error) {
- return this.props.children;
- }
- return (0,external_React_.createElement)(ErrorBoundaryWarning, {
- message: (0,external_wp_i18n_namespaceObject.__)('The editor has encountered an unexpected error.'),
- error: this.state.error
- });
- }
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/next.js
-
-/**
- * WordPress dependencies
- */
-
-const next = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"
-}));
-/* harmony default export */ const library_next = (next);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/previous.js
-
-/**
- * WordPress dependencies
- */
-
-const previous = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"
-}));
-/* harmony default export */ const library_previous = (previous);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
-
-/**
- * WordPress dependencies
- */
-
-const external = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"
-}));
-/* harmony default export */ const library_external = (external);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/keyboard-shortcut-help-modal/config.js
-/**
- * WordPress dependencies
- */
-
-const textFormattingShortcuts = [{
- keyCombination: {
- modifier: 'primary',
- character: 'b'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Make the selected text bold.')
-}, {
- keyCombination: {
- modifier: 'primary',
- character: 'i'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Make the selected text italic.')
-}, {
- keyCombination: {
- modifier: 'primary',
- character: 'k'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Convert the selected text into a link.')
-}, {
- keyCombination: {
- modifier: 'primaryShift',
- character: 'k'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Remove a link.')
-}, {
- keyCombination: {
- character: '[['
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Insert a link to a post or page.')
-}, {
- keyCombination: {
- modifier: 'primary',
- character: 'u'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Underline the selected text.')
-}, {
- keyCombination: {
- modifier: 'access',
- character: 'd'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Strikethrough the selected text.')
-}, {
- keyCombination: {
- modifier: 'access',
- character: 'x'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Make the selected text inline code.')
-}, {
- keyCombination: {
- modifier: 'access',
- character: '0'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Convert the current heading to a paragraph.')
-}, {
- keyCombination: {
- modifier: 'access',
- character: '1-6'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Convert the current paragraph or heading to a heading of level 1 to 6.')
-}];
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/keyboard-shortcut-help-modal/shortcut.js
-
-/**
- * WordPress dependencies
- */
-
-
-function KeyCombination({
- keyCombination,
- forceAriaLabel
-}) {
- const shortcut = keyCombination.modifier ? external_wp_keycodes_namespaceObject.displayShortcutList[keyCombination.modifier](keyCombination.character) : keyCombination.character;
- const ariaLabel = keyCombination.modifier ? external_wp_keycodes_namespaceObject.shortcutAriaLabel[keyCombination.modifier](keyCombination.character) : keyCombination.character;
- return (0,external_React_.createElement)("kbd", {
- className: "edit-site-keyboard-shortcut-help-modal__shortcut-key-combination",
- "aria-label": forceAriaLabel || ariaLabel
- }, (Array.isArray(shortcut) ? shortcut : [shortcut]).map((character, index) => {
- if (character === '+') {
- return (0,external_React_.createElement)(external_wp_element_namespaceObject.Fragment, {
- key: index
- }, character);
- }
- return (0,external_React_.createElement)("kbd", {
- key: index,
- className: "edit-site-keyboard-shortcut-help-modal__shortcut-key"
- }, character);
- }));
-}
-function Shortcut({
- description,
- keyCombination,
- aliases = [],
- ariaLabel
-}) {
- return (0,external_React_.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_React_.createElement)("div", {
- className: "edit-site-keyboard-shortcut-help-modal__shortcut-description"
- }, description), (0,external_React_.createElement)("div", {
- className: "edit-site-keyboard-shortcut-help-modal__shortcut-term"
- }, (0,external_React_.createElement)(KeyCombination, {
- keyCombination: keyCombination,
- forceAriaLabel: ariaLabel
- }), aliases.map((alias, index) => (0,external_React_.createElement)(KeyCombination, {
- keyCombination: alias,
- forceAriaLabel: ariaLabel,
- key: index
- }))));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-/**
- * Internal dependencies
- */
-
-function DynamicShortcut({
- name
-}) {
- const {
- keyCombination,
- description,
- aliases
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getShortcutKeyCombination,
- getShortcutDescription,
- getShortcutAliases
- } = select(external_wp_keyboardShortcuts_namespaceObject.store);
- return {
- keyCombination: getShortcutKeyCombination(name),
- aliases: getShortcutAliases(name),
- description: getShortcutDescription(name)
- };
- }, [name]);
- if (!keyCombination) {
- return null;
- }
- return (0,external_React_.createElement)(Shortcut, {
- keyCombination: keyCombination,
- description: description,
- aliases: aliases
- });
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/keyboard-shortcut-help-modal/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-const KEYBOARD_SHORTCUT_HELP_MODAL_NAME = 'edit-site/keyboard-shortcut-help';
-const ShortcutList = ({
- shortcuts
-}) =>
-/*
- * Disable reason: The `list` ARIA role is redundant but
- * Safari+VoiceOver won't announce the list otherwise.
- */
-/* eslint-disable jsx-a11y/no-redundant-roles */
-(0,external_React_.createElement)("ul", {
- className: "edit-site-keyboard-shortcut-help-modal__shortcut-list",
- role: "list"
-}, shortcuts.map((shortcut, index) => (0,external_React_.createElement)("li", {
- className: "edit-site-keyboard-shortcut-help-modal__shortcut",
- key: index
-}, typeof shortcut === 'string' ? (0,external_React_.createElement)(DynamicShortcut, {
- name: shortcut
-}) : (0,external_React_.createElement)(Shortcut, {
- ...shortcut
-}))))
-/* eslint-enable jsx-a11y/no-redundant-roles */;
-const ShortcutSection = ({
- title,
- shortcuts,
- className
-}) => (0,external_React_.createElement)("section", {
- className: classnames_default()('edit-site-keyboard-shortcut-help-modal__section', className)
-}, !!title && (0,external_React_.createElement)("h2", {
- className: "edit-site-keyboard-shortcut-help-modal__section-title"
-}, title), (0,external_React_.createElement)(ShortcutList, {
- shortcuts: shortcuts
-}));
-const ShortcutCategorySection = ({
- title,
- categoryName,
- additionalShortcuts = []
-}) => {
- const categoryShortcuts = (0,external_wp_data_namespaceObject.useSelect)(select => {
- return select(external_wp_keyboardShortcuts_namespaceObject.store).getCategoryShortcuts(categoryName);
- }, [categoryName]);
- return (0,external_React_.createElement)(ShortcutSection, {
- title: title,
- shortcuts: categoryShortcuts.concat(additionalShortcuts)
- });
-};
-function KeyboardShortcutHelpModal() {
- const isModalActive = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).isModalActive(KEYBOARD_SHORTCUT_HELP_MODAL_NAME));
- const {
- closeModal,
- openModal
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- const toggleModal = () => isModalActive ? closeModal() : openModal(KEYBOARD_SHORTCUT_HELP_MODAL_NAME);
- (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-site/keyboard-shortcuts', toggleModal);
- if (!isModalActive) {
- return null;
- }
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
- className: "edit-site-keyboard-shortcut-help-modal",
- title: (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts'),
- onRequestClose: toggleModal
- }, (0,external_React_.createElement)(ShortcutSection, {
- className: "edit-site-keyboard-shortcut-help-modal__main-shortcuts",
- shortcuts: ['core/edit-site/keyboard-shortcuts']
- }), (0,external_React_.createElement)(ShortcutCategorySection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Global shortcuts'),
- categoryName: "global"
- }), (0,external_React_.createElement)(ShortcutCategorySection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Selection shortcuts'),
- categoryName: "selection"
- }), (0,external_React_.createElement)(ShortcutCategorySection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Block shortcuts'),
- categoryName: "block",
- additionalShortcuts: [{
- keyCombination: {
- character: '/'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Change the block type after adding a new paragraph.'),
- /* translators: The forward-slash character. e.g. '/'. */
- ariaLabel: (0,external_wp_i18n_namespaceObject.__)('Forward-slash')
- }]
- }), (0,external_React_.createElement)(ShortcutSection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Text formatting'),
- shortcuts: textFormattingShortcuts
- }));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/preferences-modal/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-/**
- * Internal dependencies
- */
-
-const {
- PreferencesModal
-} = unlock(external_wp_editor_namespaceObject.privateApis);
-const PREFERENCES_MODAL_NAME = 'edit-site/preferences';
-function EditSitePreferencesModal() {
- const isModalActive = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).isModalActive(PREFERENCES_MODAL_NAME));
- const {
- closeModal
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- if (!isModalActive) {
- return null;
- }
- return (0,external_React_.createElement)(PreferencesModal, {
- isActive: isModalActive,
- onClose: closeModal
- });
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/header-edit-mode/tools-more-menu-group/index.js
-
-/**
- * WordPress dependencies
- */
-
-const {
- Fill: ToolsMoreMenuGroup,
- Slot
-} = (0,external_wp_components_namespaceObject.createSlotFill)('EditSiteToolsMoreMenuGroup');
-ToolsMoreMenuGroup.Slot = ({
- fillProps
-}) => (0,external_React_.createElement)(Slot, {
- fillProps: fillProps
-}, fills => fills && fills.length > 0);
-/* harmony default export */ const tools_more_menu_group = (ToolsMoreMenuGroup);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/download.js
-
-/**
- * WordPress dependencies
- */
-
-const download = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"
-}));
-/* harmony default export */ const library_download = (download);
-
-;// CONCATENATED MODULE: external ["wp","blob"]
-const external_wp_blob_namespaceObject = window["wp"]["blob"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/header-edit-mode/more-menu/site-export.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-function SiteExport() {
- const {
- createErrorNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- async function handleExport() {
- try {
- const response = await external_wp_apiFetch_default()({
- path: '/wp-block-editor/v1/export',
- parse: false,
- headers: {
- Accept: 'application/zip'
- }
- });
- const blob = await response.blob();
- const contentDisposition = response.headers.get('content-disposition');
- const contentDispositionMatches = contentDisposition.match(/=(.+)\.zip/);
- const fileName = contentDispositionMatches[1] ? contentDispositionMatches[1] : 'edit-site-export';
- (0,external_wp_blob_namespaceObject.downloadBlob)(fileName + '.zip', blob, 'application/zip');
- } catch (errorResponse) {
- let error = {};
- try {
- error = await errorResponse.json();
- } catch (e) {}
- const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : (0,external_wp_i18n_namespaceObject.__)('An error occurred while creating the site export.');
- createErrorNotice(errorMessage, {
- type: 'snackbar'
- });
- }
- }
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- role: "menuitem",
- icon: library_download,
- onClick: handleExport,
- info: (0,external_wp_i18n_namespaceObject.__)('Download your theme with updated templates and styles.')
- }, (0,external_wp_i18n_namespaceObject._x)('Export', 'site exporter menu item'));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/header-edit-mode/more-menu/welcome-guide-menu-item.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-function WelcomeGuideMenuItem() {
- const {
- toggle
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => toggle('core/edit-site', 'welcomeGuide')
- }, (0,external_wp_i18n_namespaceObject.__)('Welcome Guide'));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/header-edit-mode/more-menu/copy-content-menu-item.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-function CopyContentMenuItem() {
- const {
- createNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- const {
- getEditedPostId,
- getEditedPostType
- } = (0,external_wp_data_namespaceObject.useSelect)(store_store);
- const {
- getEditedEntityRecord
- } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_coreData_namespaceObject.store);
- function getText() {
- const record = getEditedEntityRecord('postType', getEditedPostType(), getEditedPostId());
- if (!record) {
- return '';
- }
- if (typeof record.content === 'function') {
- return record.content(record);
- } else if (record.blocks) {
- return (0,external_wp_blocks_namespaceObject.__unstableSerializeAndClean)(record.blocks);
- } else if (record.content) {
- return record.content;
- }
- }
- function onSuccess() {
- createNotice('info', (0,external_wp_i18n_namespaceObject.__)('All content copied.'), {
- isDismissible: true,
- type: 'snackbar'
- });
- }
- const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(getText, onSuccess);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- ref: ref
- }, (0,external_wp_i18n_namespaceObject.__)('Copy all blocks'));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/header-edit-mode/mode-switcher/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-/**
- * Set of available mode options.
- *
- * @type {Array}
- */
-const MODES = [{
- value: 'visual',
- label: (0,external_wp_i18n_namespaceObject.__)('Visual editor')
-}, {
- value: 'text',
- label: (0,external_wp_i18n_namespaceObject.__)('Code editor')
-}];
-function ModeSwitcher() {
- const {
- shortcut,
- mode
- } = (0,external_wp_data_namespaceObject.useSelect)(select => ({
- shortcut: select(external_wp_keyboardShortcuts_namespaceObject.store).getShortcutRepresentation('core/edit-site/toggle-mode'),
- mode: select(store_store).getEditorMode()
- }), []);
- const {
- switchEditorMode
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const choices = MODES.map(choice => {
- if (choice.value !== mode) {
- return {
- ...choice,
- shortcut
- };
- }
- return choice;
});
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Editor')
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItemsChoice, {
- choices: choices,
- value: mode,
- onSelect: switchEditorMode
- }));
-}
-/* harmony default export */ const mode_switcher = (ModeSwitcher);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/header-edit-mode/more-menu/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-
-
-function MoreMenu({
- showIconLabels
-}) {
- const {
- openModal
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- const {
- set: setPreference
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
- const isBlockBasedTheme = (0,external_wp_data_namespaceObject.useSelect)(select => {
- return select(external_wp_coreData_namespaceObject.store).getCurrentTheme().is_block_theme;
- }, []);
- const {
- toggleDistractionFree
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const turnOffDistractionFree = () => {
- setPreference('core', 'distractionFree', false);
- };
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(MoreMenuDropdown, {
- toggleProps: {
- showTooltip: !showIconLabels,
- ...(showIconLabels && {
- variant: 'tertiary'
- })
- }
- }, ({
- onClose
- }) => (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject._x)('View', 'noun')
- }, (0,external_React_.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
- scope: "core",
- name: "fixedToolbar",
- onToggle: turnOffDistractionFree,
- label: (0,external_wp_i18n_namespaceObject.__)('Top toolbar'),
- info: (0,external_wp_i18n_namespaceObject.__)('Access all block and document tools in a single place'),
- messageActivated: (0,external_wp_i18n_namespaceObject.__)('Top toolbar activated'),
- messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Top toolbar deactivated')
- }), (0,external_React_.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
- scope: "core",
- name: "distractionFree",
- label: (0,external_wp_i18n_namespaceObject.__)('Distraction free'),
- info: (0,external_wp_i18n_namespaceObject.__)('Write with calmness'),
- handleToggling: false,
- onToggle: toggleDistractionFree,
- messageActivated: (0,external_wp_i18n_namespaceObject.__)('Distraction free mode activated'),
- messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Distraction free mode deactivated'),
- shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primaryShift('\\')
- }), (0,external_React_.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
- scope: "core",
- name: "focusMode",
- label: (0,external_wp_i18n_namespaceObject.__)('Spotlight mode'),
- info: (0,external_wp_i18n_namespaceObject.__)('Focus on one block at a time'),
- messageActivated: (0,external_wp_i18n_namespaceObject.__)('Spotlight mode activated'),
- messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Spotlight mode deactivated')
- })), (0,external_React_.createElement)(mode_switcher, null), (0,external_React_.createElement)(action_item.Slot, {
- name: "core/edit-site/plugin-more-menu",
- label: (0,external_wp_i18n_namespaceObject.__)('Plugins'),
- as: external_wp_components_namespaceObject.MenuGroup,
- fillProps: {
- onClick: onClose
- }
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Tools')
- }, isBlockBasedTheme && (0,external_React_.createElement)(SiteExport, null), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => openModal(KEYBOARD_SHORTCUT_HELP_MODAL_NAME),
- shortcut: external_wp_keycodes_namespaceObject.displayShortcut.access('h')
- }, (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts')), (0,external_React_.createElement)(WelcomeGuideMenuItem, null), (0,external_React_.createElement)(CopyContentMenuItem, null), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- icon: library_external,
- role: "menuitem",
- href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/site-editor/'),
- target: "_blank",
- rel: "noopener noreferrer"
- }, (0,external_wp_i18n_namespaceObject.__)('Help'), (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "span"
- }, /* translators: accessibility text */
- (0,external_wp_i18n_namespaceObject.__)('(opens in a new tab)'))), (0,external_React_.createElement)(tools_more_menu_group.Slot, {
- fillProps: {
- onClose
- }
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => openModal(PREFERENCES_MODAL_NAME)
- }, (0,external_wp_i18n_namespaceObject.__)('Preferences'))))), (0,external_React_.createElement)(KeyboardShortcutHelpModal, null), (0,external_React_.createElement)(EditSitePreferencesModal, null));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-up-down.js
-
-/**
- * WordPress dependencies
- */
-
-const chevronUpDown = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m12 20-4.5-3.6-.9 1.2L12 22l5.5-4.4-.9-1.2L12 20zm0-16 4.5 3.6.9-1.2L12 2 6.5 6.4l.9 1.2L12 4z"
}));
-/* harmony default export */ const chevron_up_down = (chevronUpDown);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/header-edit-mode/document-tools/index.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-const {
- DocumentTools: EditorDocumentTools
-} = unlock(external_wp_editor_namespaceObject.privateApis);
-function DocumentTools({
- blockEditorMode,
- hasFixedToolbar,
- isDistractionFree
-}) {
- const {
- isVisualMode
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEditorMode
- } = select(store_store);
- return {
- isVisualMode: getEditorMode() === 'visual'
- };
- }, []);
- const {
- __unstableSetEditorMode
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- const {
- setDeviceType
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_editor_namespaceObject.store);
- const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
- const isZoomedOutViewExperimentEnabled = window?.__experimentalEnableZoomedOutView && isVisualMode;
- const isZoomedOutView = blockEditorMode === 'zoom-out';
- return (0,external_React_.createElement)(EditorDocumentTools, {
- disableBlockTools: !isVisualMode,
- listViewLabel: (0,external_wp_i18n_namespaceObject.__)('List View')
- }, isZoomedOutViewExperimentEnabled && isLargeViewport && !isDistractionFree && !hasFixedToolbar && (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarItem, {
- as: external_wp_components_namespaceObject.Button,
- className: "edit-site-header-edit-mode__zoom-out-view-toggle",
- icon: chevron_up_down,
- isPressed: isZoomedOutView
- /* translators: button label text should, if possible, be under 16 characters. */,
- label: (0,external_wp_i18n_namespaceObject.__)('Zoom-out View'),
- onClick: () => {
- setDeviceType('Desktop');
- __unstableSetEditorMode(isZoomedOutView ? 'edit' : 'zoom-out');
- },
- size: "compact"
- }));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/header-edit-mode/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-
-
-const {
- PostViewLink,
- PreviewDropdown
-} = unlock(external_wp_editor_namespaceObject.privateApis);
-function HeaderEditMode() {
- const {
- templateType,
- isDistractionFree,
- blockEditorMode,
- blockSelectionStart,
- showIconLabels,
- editorCanvasView,
- hasFixedToolbar,
- isZoomOutMode
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEditedPostType
- } = select(store_store);
- const {
- getBlockSelectionStart,
- __unstableGetEditorMode
- } = select(external_wp_blockEditor_namespaceObject.store);
- const {
- get: getPreference
- } = select(external_wp_preferences_namespaceObject.store);
- const {
- getDeviceType
- } = select(external_wp_editor_namespaceObject.store);
- return {
- deviceType: getDeviceType(),
- templateType: getEditedPostType(),
- blockEditorMode: __unstableGetEditorMode(),
- blockSelectionStart: getBlockSelectionStart(),
- showIconLabels: getPreference('core', 'showIconLabels'),
- editorCanvasView: unlock(select(store_store)).getEditorCanvasContainerView(),
- hasFixedToolbar: getPreference('core', 'fixedToolbar'),
- isDistractionFree: getPreference('core', 'distractionFree'),
- isZoomOutMode: __unstableGetEditorMode() === 'zoom-out'
- };
- }, []);
- const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
- const isTopToolbar = !isZoomOutMode && hasFixedToolbar && isLargeViewport;
- const blockToolbarRef = (0,external_wp_element_namespaceObject.useRef)();
- const disableMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
- const hasDefaultEditorCanvasView = !useHasEditorCanvasContainer();
- const isFocusMode = FOCUSABLE_ENTITIES.includes(templateType);
- const isZoomedOutView = blockEditorMode === 'zoom-out';
- const [isBlockToolsCollapsed, setIsBlockToolsCollapsed] = (0,external_wp_element_namespaceObject.useState)(true);
- const hasBlockSelected = !!blockSelectionStart;
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- // If we have a new block selection, show the block tools
- if (blockSelectionStart) {
- setIsBlockToolsCollapsed(false);
- }
- }, [blockSelectionStart]);
- const toolbarVariants = {
- isDistractionFree: {
- y: '-50px'
- },
- isDistractionFreeHovering: {
- y: 0
- },
- view: {
- y: 0
- },
- edit: {
- y: 0
- }
- };
- const toolbarTransition = {
- type: 'tween',
- duration: disableMotion ? 0 : 0.2,
- ease: 'easeOut'
- };
- return (0,external_React_.createElement)("div", {
- className: classnames_default()('edit-site-header-edit-mode', {
- 'show-icon-labels': showIconLabels
- })
- }, hasDefaultEditorCanvasView && (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- className: "edit-site-header-edit-mode__start",
- variants: toolbarVariants,
- transition: toolbarTransition
- }, (0,external_React_.createElement)(DocumentTools, {
- blockEditorMode: blockEditorMode,
- isDistractionFree: isDistractionFree
- }), isTopToolbar && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("div", {
- className: classnames_default()('selected-block-tools-wrapper', {
- 'is-collapsed': isBlockToolsCollapsed || !hasBlockSelected
- })
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockToolbar, {
- hideDragHandle: true
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.Popover.Slot, {
- ref: blockToolbarRef,
- name: "block-toolbar"
- }), hasBlockSelected && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "edit-site-header-edit-mode__block-tools-toggle",
- icon: isBlockToolsCollapsed ? library_next : library_previous,
- onClick: () => {
- setIsBlockToolsCollapsed(collapsed => !collapsed);
- },
- label: isBlockToolsCollapsed ? (0,external_wp_i18n_namespaceObject.__)('Show block tools') : (0,external_wp_i18n_namespaceObject.__)('Hide block tools')
- }))), !isDistractionFree && (0,external_React_.createElement)("div", {
- className: classnames_default()('edit-site-header-edit-mode__center', {
- 'is-collapsed': !isBlockToolsCollapsed && isLargeViewport
- })
- }, !hasDefaultEditorCanvasView ? getEditorCanvasContainerTitle(editorCanvasView) : (0,external_React_.createElement)(external_wp_editor_namespaceObject.DocumentBar, null)), (0,external_React_.createElement)("div", {
- className: "edit-site-header-edit-mode__end"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- className: "edit-site-header-edit-mode__actions",
- variants: toolbarVariants,
- transition: toolbarTransition
- }, isLargeViewport && (0,external_React_.createElement)("div", {
- className: classnames_default()('edit-site-header-edit-mode__preview-options', {
- 'is-zoomed-out': isZoomedOutView
- })
- }, (0,external_React_.createElement)(PreviewDropdown, {
- disabled: isFocusMode || !hasDefaultEditorCanvasView
- })), (0,external_React_.createElement)(PostViewLink, null), (0,external_React_.createElement)(SaveButton, null), !isDistractionFree && (0,external_React_.createElement)(pinned_items.Slot, {
- scope: "core/edit-site"
- }), (0,external_React_.createElement)(MoreMenu, {
- showIconLabels: showIconLabels
- }))));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/wordpress.js
-
-/**
- * WordPress dependencies
- */
-
-const wordpress = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "-2 -2 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"
-}));
-/* harmony default export */ const library_wordpress = (wordpress);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/site-icon/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-function SiteIcon({
- className
-}) {
+/* harmony default export */ const site_hub = (SiteHub);
+const SiteHubMobile = (0,external_wp_element_namespaceObject.memo)((0,external_wp_element_namespaceObject.forwardRef)(({
+ isTransparent
+}, ref) => {
+ const history = useHistory();
const {
- isRequestingSite,
- siteIconUrl
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEntityRecord
- } = select(external_wp_coreData_namespaceObject.store);
- const siteData = getEntityRecord('root', '__unstableBase', undefined);
- return {
- isRequestingSite: !siteData,
- siteIconUrl: siteData?.site_icon_url
- };
- }, []);
- if (isRequestingSite && !siteIconUrl) {
- return (0,external_React_.createElement)("div", {
- className: "edit-site-site-icon__image"
- });
- }
- const icon = siteIconUrl ? (0,external_React_.createElement)("img", {
- className: "edit-site-site-icon__image",
- alt: (0,external_wp_i18n_namespaceObject.__)('Site Icon'),
- src: siteIconUrl
- }) : (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- className: "edit-site-site-icon__icon",
- icon: library_wordpress,
- size: 48
- });
- return (0,external_React_.createElement)("div", {
- className: classnames_default()(className, 'edit-site-site-icon')
- }, icon);
-}
-/* harmony default export */ const site_icon = (SiteIcon);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/site-hub/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-const HUB_ANIMATION_DURATION = 0.3;
-const SiteHub = (0,external_wp_element_namespaceObject.memo)(({
- isTransparent,
- className
-}) => {
+ navigate
+ } = (0,external_wp_element_namespaceObject.useContext)(SidebarNavigationContext);
const {
- canvasMode,
- dashboardLink,
homeUrl,
siteTitle
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
- getCanvasMode,
- getSettings
- } = unlock(select(store_store));
- const {
getSite,
getUnstableBase // Site index.
} = select(external_wp_coreData_namespaceObject.store);
+ const _site = getSite();
return {
- canvasMode: getCanvasMode(),
- dashboardLink: getSettings().__experimentalDashboardLink || 'index.php',
homeUrl: getUnstableBase()?.home,
- siteTitle: getSite()?.title
+ siteTitle: !_site?.title && !!_site?.url ? (0,external_wp_url_namespaceObject.filterURLForDisplay)(_site?.url) : _site?.title
};
}, []);
const {
open: openCommandCenter
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_commands_namespaceObject.store);
- const disableMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
- const {
- setCanvasMode
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
- const {
- clearSelectedBlock
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- const {
- setDeviceType
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_editor_namespaceObject.store);
- const isBackToDashboardButton = canvasMode === 'view';
- const siteIconButtonProps = isBackToDashboardButton ? {
- href: dashboardLink,
- label: (0,external_wp_i18n_namespaceObject.__)('Go to the Dashboard')
- } : {
- href: dashboardLink,
- // We need to keep the `href` here so the component doesn't remount as a `<button>` and break the animation.
- role: 'button',
- label: (0,external_wp_i18n_namespaceObject.__)('Open Navigation'),
- onClick: event => {
- event.preventDefault();
- if (canvasMode === 'edit') {
- clearSelectedBlock();
- setDeviceType('Desktop');
- setCanvasMode('view');
- }
- }
- };
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- className: classnames_default()('edit-site-site-hub', className),
- variants: {
- isDistractionFree: {
- x: '-100%'
- },
- isDistractionFreeHovering: {
- x: 0
- },
- view: {
- x: 0
- },
- edit: {
- x: 0
- }
- },
- initial: false,
- transition: {
- type: 'tween',
- duration: disableMotion ? 0 : HUB_ANIMATION_DURATION,
- ease: 'easeOut'
- }
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "space-between",
- alignment: "center",
- className: "edit-site-site-hub__container"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "flex-start",
- className: "edit-site-site-hub__text-content",
- spacing: "0"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- className: classnames_default()('edit-site-site-hub__view-mode-toggle-container', {
- 'has-transparent-background': isTransparent
- }),
- layout: true,
- transition: {
- type: 'tween',
- duration: disableMotion ? 0 : HUB_ANIMATION_DURATION,
- ease: 'easeOut'
- }
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- ...siteIconButtonProps,
- className: "edit-site-layout__view-mode-toggle"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- initial: false,
- animate: {
- scale: canvasMode === 'view' ? 0.5 : 1
- },
- whileHover: {
- scale: canvasMode === 'view' ? 0.5 : 0.96
- },
- transition: {
- type: 'tween',
- duration: disableMotion ? 0 : HUB_ANIMATION_DURATION,
- ease: 'easeOut'
- }
- }, (0,external_React_.createElement)(site_icon, {
- className: "edit-site-layout__view-mode-toggle-icon"
- })))), (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableAnimatePresence, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- layout: canvasMode === 'edit',
- animate: {
- opacity: canvasMode === 'view' ? 1 : 0
- },
- exit: {
- opacity: 0
- },
- className: classnames_default()('edit-site-site-hub__site-title', {
- 'is-transparent': isTransparent
- }),
- transition: {
- type: 'tween',
- duration: disableMotion ? 0 : 0.2,
- ease: 'easeOut',
- delay: canvasMode === 'view' ? 0.1 : 0
- }
- }, (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(siteTitle))), canvasMode === 'view' && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- href: homeUrl,
- target: "_blank",
- label: (0,external_wp_i18n_namespaceObject.__)('View site (opens in a new tab)'),
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('View site (opens in a new tab)'),
- icon: library_external,
- className: classnames_default()('edit-site-site-hub__site-view-link', {
- 'is-transparent': isTransparent
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-site-hub",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "flex-start",
+ spacing: "0",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('edit-site-site-hub__view-mode-toggle-container', {
+ 'has-transparent-background': isTransparent
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ ref: ref,
+ label: (0,external_wp_i18n_namespaceObject.__)('Go to Site Editor'),
+ className: "edit-site-layout__view-mode-toggle",
+ style: {
+ transform: 'scale(0.5)',
+ borderRadius: 4
+ },
+ onClick: () => {
+ history.push({});
+ navigate('back');
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(site_icon, {
+ className: "edit-site-layout__view-mode-toggle-icon"
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-site-hub__title",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "link",
+ href: homeUrl,
+ target: "_blank",
+ label: (0,external_wp_i18n_namespaceObject.__)('View site (opens in a new tab)'),
+ children: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(siteTitle)
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
+ spacing: 0,
+ expanded: false,
+ className: "edit-site-site-hub__actions",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "edit-site-site-hub_toggle-command-center",
+ icon: library_search,
+ onClick: () => openCommandCenter(),
+ label: (0,external_wp_i18n_namespaceObject.__)('Open command palette'),
+ shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('k')
+ })
+ })]
+ })]
})
- })), canvasMode === 'view' && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: classnames_default()('edit-site-site-hub_toggle-command-center', {
- 'is-transparent': isTransparent
- }),
- icon: library_search,
- onClick: () => openCommandCenter(),
- label: (0,external_wp_i18n_namespaceObject.__)('Open command palette'),
- shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('k')
- })));
-});
-/* harmony default export */ const site_hub = (SiteHub);
+ });
+}));
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/resizable-frame/index.js
-
/**
* External dependencies
*/
@@ -23670,7 +9813,10 @@ const SiteHub = (0,external_wp_element_namespaceObject.memo)(({
// Removes the inline styles in the drag handles.
-const resizable_frame_HANDLE_STYLES_OVERRIDE = {
+
+
+
+const HANDLE_STYLES_OVERRIDE = {
position: undefined,
userSelect: undefined,
cursor: undefined,
@@ -23720,16 +9866,17 @@ function ResizableFrame({
defaultSize,
innerContentStyle
}) {
+ const disableMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
const [frameSize, setFrameSize] = (0,external_wp_element_namespaceObject.useState)(INITIAL_FRAME_SIZE);
// The width of the resizable frame when a new resize gesture starts.
const [startingWidth, setStartingWidth] = (0,external_wp_element_namespaceObject.useState)();
const [isResizing, setIsResizing] = (0,external_wp_element_namespaceObject.useState)(false);
const [shouldShowHandle, setShouldShowHandle] = (0,external_wp_element_namespaceObject.useState)(false);
const [resizeRatio, setResizeRatio] = (0,external_wp_element_namespaceObject.useState)(1);
- const canvasMode = (0,external_wp_data_namespaceObject.useSelect)(select => unlock(select(store_store)).getCanvasMode(), []);
+ const canvasMode = (0,external_wp_data_namespaceObject.useSelect)(select => lock_unlock_unlock(select(store)).getCanvasMode(), []);
const {
setCanvasMode
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
const FRAME_TRANSITION = {
type: 'tween',
duration: isResizing ? 0 : 0.5
@@ -23811,11 +9958,12 @@ function ResizableFrame({
},
visible: {
opacity: 1,
- left: -16
+ left: -14 // Account for the handle's width.
},
active: {
opacity: 1,
- left: -16,
+ left: -14,
+ // Account for the handle's width.
scaleY: 1.3
}
};
@@ -23825,18 +9973,27 @@ function ResizableFrame({
}
return shouldShowHandle ? 'visible' : 'hidden';
})();
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ResizableBox, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ResizableBox, {
as: external_wp_components_namespaceObject.__unstableMotion.div,
ref: frameRef,
initial: false,
variants: frameAnimationVariants,
animate: isFullWidth ? 'fullWidth' : 'default',
onAnimationComplete: definition => {
- if (definition === 'fullWidth') setFrameSize({
- width: '100%',
- height: '100%'
- });
+ if (definition === 'fullWidth') {
+ setFrameSize({
+ width: '100%',
+ height: '100%'
+ });
+ }
},
+ whileHover: canvasMode === 'view' ? {
+ scale: 1.005,
+ transition: {
+ duration: disableMotion ? 0 : 0.5,
+ ease: 'easeOut'
+ }
+ } : {},
transition: FRAME_TRANSITION,
size: frameSize,
enable: {
@@ -23853,58 +10010,60 @@ function ResizableFrame({
resizeRatio: resizeRatio,
handleClasses: undefined,
handleStyles: {
- left: resizable_frame_HANDLE_STYLES_OVERRIDE,
- right: resizable_frame_HANDLE_STYLES_OVERRIDE
+ left: HANDLE_STYLES_OVERRIDE,
+ right: HANDLE_STYLES_OVERRIDE
},
minWidth: FRAME_MIN_WIDTH,
maxWidth: isFullWidth ? '100%' : '150%',
- maxHeight: '100%',
+ maxHeight: "100%",
onFocus: () => setShouldShowHandle(true),
onBlur: () => setShouldShowHandle(false),
onMouseOver: () => setShouldShowHandle(true),
onMouseOut: () => setShouldShowHandle(false),
handleComponent: {
- left: canvasMode === 'view' && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Tooltip, {
- text: (0,external_wp_i18n_namespaceObject.__)('Drag to resize')
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.button, {
- key: "handle",
- role: "separator",
- "aria-orientation": "vertical",
- className: classnames_default()('edit-site-resizable-frame__handle', {
- 'is-resizing': isResizing
- }),
- variants: resizeHandleVariants,
- animate: currentResizeHandleVariant,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Drag to resize'),
- "aria-describedby": resizableHandleHelpId,
- "aria-valuenow": frameRef.current?.resizable?.offsetWidth || undefined,
- "aria-valuemin": FRAME_MIN_WIDTH,
- "aria-valuemax": defaultSize.width,
- onKeyDown: handleResizableHandleKeyDown,
- initial: "hidden",
- exit: "hidden",
- whileFocus: "active",
- whileHover: "active"
- })), (0,external_React_.createElement)("div", {
- hidden: true,
- id: resizableHandleHelpId
- }, (0,external_wp_i18n_namespaceObject.__)('Use left and right arrow keys to resize the canvas. Hold shift to resize in larger increments.')))
+ left: canvasMode === 'view' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Tooltip, {
+ text: (0,external_wp_i18n_namespaceObject.__)('Drag to resize'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.button, {
+ role: "separator",
+ "aria-orientation": "vertical",
+ className: dist_clsx('edit-site-resizable-frame__handle', {
+ 'is-resizing': isResizing
+ }),
+ variants: resizeHandleVariants,
+ animate: currentResizeHandleVariant,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Drag to resize'),
+ "aria-describedby": resizableHandleHelpId,
+ "aria-valuenow": frameRef.current?.resizable?.offsetWidth || undefined,
+ "aria-valuemin": FRAME_MIN_WIDTH,
+ "aria-valuemax": defaultSize.width,
+ onKeyDown: handleResizableHandleKeyDown,
+ initial: "hidden",
+ exit: "hidden",
+ whileFocus: "active",
+ whileHover: "active"
+ }, "handle")
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ hidden: true,
+ id: resizableHandleHelpId,
+ children: (0,external_wp_i18n_namespaceObject.__)('Use left and right arrow keys to resize the canvas. Hold shift to resize in larger increments.')
+ })]
+ })
},
onResizeStart: handleResizeStart,
onResize: handleResize,
onResizeStop: handleResizeStop,
- className: classnames_default()('edit-site-resizable-frame__inner', {
+ className: dist_clsx('edit-site-resizable-frame__inner', {
'is-resizing': isResizing
}),
showHandle: false // Do not show the default handle, as we're using a custom one.
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- className: "edit-site-resizable-frame__inner-content",
- animate: {
- borderRadius: isFullWidth ? 0 : 8
- },
- transition: FRAME_TRANSITION,
- style: innerContentStyle
- }, children));
+ ,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-resizable-frame__inner-content",
+ style: innerContentStyle,
+ children: children
+ })
+ });
}
/* harmony default export */ const resizable_frame = (ResizableFrame);
@@ -23924,16 +10083,16 @@ function ResizableFrame({
const {
useLocation: use_sync_canvas_mode_with_url_useLocation,
useHistory: use_sync_canvas_mode_with_url_useHistory
-} = unlock(external_wp_router_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
function useSyncCanvasModeWithURL() {
const history = use_sync_canvas_mode_with_url_useHistory();
const {
params
} = use_sync_canvas_mode_with_url_useLocation();
- const canvasMode = (0,external_wp_data_namespaceObject.useSelect)(select => unlock(select(store_store)).getCanvasMode(), []);
+ const canvasMode = (0,external_wp_data_namespaceObject.useSelect)(select => lock_unlock_unlock(select(store)).getCanvasMode(), []);
const {
setCanvasMode
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
const currentCanvasMode = (0,external_wp_element_namespaceObject.useRef)(canvasMode);
const {
canvas: canvasInUrl
@@ -23971,193 +10130,6 @@ function useSyncCanvasModeWithURL() {
}, [canvasInUrl, setCanvasMode]);
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/utils/use-activate-theme.js
-/**
- * WordPress dependencies
- */
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-const {
- useHistory: use_activate_theme_useHistory,
- useLocation: use_activate_theme_useLocation
-} = unlock(external_wp_router_namespaceObject.privateApis);
-
-/**
- * This should be refactored to use the REST API, once the REST API can activate themes.
- *
- * @return {Function} A function that activates the theme.
- */
-function useActivateTheme() {
- const history = use_activate_theme_useHistory();
- const location = use_activate_theme_useLocation();
- const {
- startResolution,
- finishResolution
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- return async () => {
- if (isPreviewingTheme()) {
- const activationURL = 'themes.php?action=activate&stylesheet=' + currentlyPreviewingTheme() + '&_wpnonce=' + window.WP_BLOCK_THEME_ACTIVATE_NONCE;
- startResolution('activateTheme');
- await window.fetch(activationURL);
- finishResolution('activateTheme');
- const {
- wp_theme_preview: themePreview,
- ...params
- } = location.params;
- history.replace(params);
- }
- };
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/utils/use-actual-current-theme.js
-/**
- * WordPress dependencies
- */
-
-
-
-const ACTIVE_THEMES_URL = '/wp/v2/themes?status=active';
-function useActualCurrentTheme() {
- const [currentTheme, setCurrentTheme] = (0,external_wp_element_namespaceObject.useState)();
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- // Set the `wp_theme_preview` to empty string to bypass the createThemePreviewMiddleware.
- const path = (0,external_wp_url_namespaceObject.addQueryArgs)(ACTIVE_THEMES_URL, {
- context: 'edit',
- wp_theme_preview: ''
- });
- external_wp_apiFetch_default()({
- path
- }).then(activeThemes => setCurrentTheme(activeThemes[0]))
- // Do nothing
- .catch(() => {});
- }, []);
- return currentTheme;
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/save-panel/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-/**
- * Internal dependencies
- */
-
-
-
-
-
-const {
- EntitiesSavedStatesExtensible
-} = unlock(external_wp_editor_namespaceObject.privateApis);
-const EntitiesSavedStatesForPreview = ({
- onClose
-}) => {
- var _currentTheme$name$re, _previewingTheme$name;
- const isDirtyProps = (0,external_wp_editor_namespaceObject.useEntitiesSavedStatesIsDirty)();
- let activateSaveLabel;
- if (isDirtyProps.isDirty) {
- activateSaveLabel = (0,external_wp_i18n_namespaceObject.__)('Activate & Save');
- } else {
- activateSaveLabel = (0,external_wp_i18n_namespaceObject.__)('Activate');
- }
- const currentTheme = useActualCurrentTheme();
- const previewingTheme = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getCurrentTheme(), []);
- const additionalPrompt = (0,external_React_.createElement)("p", null, (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %1$s: The name of active theme, %2$s: The name of theme to be activated. */
- (0,external_wp_i18n_namespaceObject.__)('Saving your changes will change your active theme from %1$s to %2$s.'), (_currentTheme$name$re = currentTheme?.name?.rendered) !== null && _currentTheme$name$re !== void 0 ? _currentTheme$name$re : '...', (_previewingTheme$name = previewingTheme?.name?.rendered) !== null && _previewingTheme$name !== void 0 ? _previewingTheme$name : '...'));
- const activateTheme = useActivateTheme();
- const onSave = async values => {
- await activateTheme();
- return values;
- };
- return (0,external_React_.createElement)(EntitiesSavedStatesExtensible, {
- ...isDirtyProps,
- additionalPrompt,
- close: onClose,
- onSave,
- saveEnabled: true,
- saveLabel: activateSaveLabel
- });
-};
-const _EntitiesSavedStates = ({
- onClose
-}) => {
- if (isPreviewingTheme()) {
- return (0,external_React_.createElement)(EntitiesSavedStatesForPreview, {
- onClose: onClose
- });
- }
- return (0,external_React_.createElement)(external_wp_editor_namespaceObject.EntitiesSavedStates, {
- close: onClose
- });
-};
-function SavePanel() {
- const {
- isSaveViewOpen,
- canvasMode
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- isSaveViewOpened,
- getCanvasMode
- } = unlock(select(store_store));
-
- // The currently selected entity to display.
- // Typically template or template part in the site editor.
- return {
- isSaveViewOpen: isSaveViewOpened(),
- canvasMode: getCanvasMode()
- };
- }, []);
- const {
- setIsSaveViewOpened
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const onClose = () => setIsSaveViewOpened(false);
- if (canvasMode === 'view') {
- return isSaveViewOpen ? (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
- className: "edit-site-save-panel__modal",
- onRequestClose: onClose,
- __experimentalHideHeader: true,
- contentLabel: (0,external_wp_i18n_namespaceObject.__)('Save site, content, and template changes')
- }, (0,external_React_.createElement)(_EntitiesSavedStates, {
- onClose: onClose
- })) : null;
- }
- return (0,external_React_.createElement)(NavigableRegion, {
- className: classnames_default()('edit-site-layout__actions', {
- 'is-entity-save-view-open': isSaveViewOpen
- }),
- ariaLabel: (0,external_wp_i18n_namespaceObject.__)('Save panel')
- }, isSaveViewOpen ? (0,external_React_.createElement)(_EntitiesSavedStates, {
- onClose: onClose
- }) : (0,external_React_.createElement)("div", {
- className: "edit-site-editor__toggle-save-panel"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "secondary",
- className: "edit-site-editor__toggle-save-panel-button",
- onClick: () => setIsSaveViewOpened(true),
- "aria-expanded": false
- }, (0,external_wp_i18n_namespaceObject.__)('Open save panel'))));
-}
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/keyboard-shortcuts/register.js
/**
* WordPress dependencies
@@ -24181,91 +10153,6 @@ function KeyboardShortcutsRegister() {
character: 's'
}
});
- registerShortcut({
- name: 'core/edit-site/toggle-block-settings-sidebar',
- category: 'global',
- description: (0,external_wp_i18n_namespaceObject.__)('Show or hide the Settings sidebar.'),
- keyCombination: {
- modifier: 'primaryShift',
- character: ','
- }
- });
- registerShortcut({
- name: 'core/edit-site/keyboard-shortcuts',
- category: 'main',
- description: (0,external_wp_i18n_namespaceObject.__)('Display these keyboard shortcuts.'),
- keyCombination: {
- modifier: 'access',
- character: 'h'
- }
- });
- registerShortcut({
- name: 'core/edit-site/next-region',
- category: 'global',
- description: (0,external_wp_i18n_namespaceObject.__)('Navigate to the next part of the editor.'),
- keyCombination: {
- modifier: 'ctrl',
- character: '`'
- },
- aliases: [{
- modifier: 'access',
- character: 'n'
- }]
- });
- registerShortcut({
- name: 'core/edit-site/previous-region',
- category: 'global',
- description: (0,external_wp_i18n_namespaceObject.__)('Navigate to the previous part of the editor.'),
- keyCombination: {
- modifier: 'ctrlShift',
- character: '`'
- },
- aliases: [{
- modifier: 'access',
- character: 'p'
- }, {
- modifier: 'ctrlShift',
- character: '~'
- }]
- });
- registerShortcut({
- name: 'core/edit-site/toggle-mode',
- category: 'global',
- description: (0,external_wp_i18n_namespaceObject.__)('Switch between visual editor and code editor.'),
- keyCombination: {
- modifier: 'secondary',
- character: 'm'
- }
- });
- registerShortcut({
- name: 'core/edit-site/transform-heading-to-paragraph',
- category: 'block-library',
- description: (0,external_wp_i18n_namespaceObject.__)('Transform heading to paragraph.'),
- keyCombination: {
- modifier: 'access',
- character: `0`
- }
- });
- [1, 2, 3, 4, 5, 6].forEach(level => {
- registerShortcut({
- name: `core/edit-site/transform-paragraph-to-heading-${level}`,
- category: 'block-library',
- description: (0,external_wp_i18n_namespaceObject.__)('Transform paragraph to heading.'),
- keyCombination: {
- modifier: 'access',
- character: `${level}`
- }
- });
- });
- registerShortcut({
- name: 'core/edit-site/toggle-distraction-free',
- category: 'global',
- description: (0,external_wp_i18n_namespaceObject.__)('Toggle distraction free mode.'),
- keyCombination: {
- modifier: 'primaryShift',
- character: '\\'
- }
- });
}, [registerShortcut]);
return null;
}
@@ -24295,10 +10182,10 @@ function KeyboardShortcutsGlobal() {
} = (0,external_wp_data_namespaceObject.useSelect)(external_wp_editor_namespaceObject.store);
const {
getCanvasMode
- } = unlock((0,external_wp_data_namespaceObject.useSelect)(store_store));
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useSelect)(store));
const {
setIsSaveViewOpened
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
(0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-site/save', event => {
event.preventDefault();
const dirtyEntityRecords = __experimentalGetDirtyEntityRecords();
@@ -24318,91 +10205,116 @@ function KeyboardShortcutsGlobal() {
}
/* harmony default export */ const global = (KeyboardShortcutsGlobal);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/help.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/styles.js
+/**
+ * WordPress dependencies
+ */
+
+const styles = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"
+ })
+});
+/* harmony default export */ const library_styles = (styles);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/help.js
/**
* WordPress dependencies
*/
-const help = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const help = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"
+ })
+});
/* harmony default export */ const library_help = (help);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/rotate-right.js
-
/**
* WordPress dependencies
*/
-const rotateRight = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const rotateRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const rotate_right = (rotateRight);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/rotate-left.js
-
/**
* WordPress dependencies
*/
-const rotateLeft = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const rotateLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 4V2.2L9 4.8l3 2.5V5.5c3.6 0 6.5 2.9 6.5 6.5 0 2.9-1.9 5.3-4.5 6.2v.2l-.1-.2c-.4.1-.7.2-1.1.2l.2 1.5c.3 0 .6-.1 1-.2 3.5-.9 6-4 6-7.7 0-4.4-3.6-8-8-8zm-7.9 7l1.5.2c.1-1.2.5-2.3 1.2-3.2l-1.1-.9C4.8 8.2 4.3 9.6 4.1 11zm1.5 1.8l-1.5.2c.1.7.3 1.4.5 2 .3.7.6 1.3 1 1.8l1.2-.8c-.3-.5-.6-1-.8-1.5s-.4-1.1-.4-1.7zm1.5 5.5c1.1.9 2.4 1.4 3.8 1.6l.2-1.5c-1.1-.1-2.2-.5-3.1-1.2l-.9 1.1z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 4V2.2L9 4.8l3 2.5V5.5c3.6 0 6.5 2.9 6.5 6.5 0 2.9-1.9 5.3-4.5 6.2v.2l-.1-.2c-.4.1-.7.2-1.1.2l.2 1.5c.3 0 .6-.1 1-.2 3.5-.9 6-4 6-7.7 0-4.4-3.6-8-8-8zm-7.9 7l1.5.2c.1-1.2.5-2.3 1.2-3.2l-1.1-.9C4.8 8.2 4.3 9.6 4.1 11zm1.5 1.8l-1.5.2c.1.7.3 1.4.5 2 .3.7.6 1.3 1 1.8l1.2-.8c-.3-.5-.6-1-.8-1.5s-.4-1.1-.4-1.7zm1.5 5.5c1.1.9 2.4 1.4 3.8 1.6l.2-1.5c-1.1-.1-2.2-.5-3.1-1.2l-.9 1.1z"
+ })
+});
/* harmony default export */ const rotate_left = (rotateLeft);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/brush.js
-
/**
* WordPress dependencies
*/
-const brush = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const brush = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"
+ })
+});
/* harmony default export */ const library_brush = (brush);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/utils/get-is-list-page.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/backup.js
/**
- * Returns if the params match the list page route.
- *
- * @param {Object} params The url params.
- * @param {string} params.path The current path.
- * @param {string} [params.categoryType] The current category type.
- * @param {string} [params.categoryId] The current category id.
- * @param {boolean} isMobileViewport Is mobile viewport.
- *
- * @return {boolean} Is list page or not.
+ * WordPress dependencies
*/
-function getIsListPage({
- path,
- categoryType,
- categoryId
-}, isMobileViewport) {
- return ['/wp_template/all', '/wp_template_part/all', '/pages'].includes(path) || path === '/patterns' && (
- // Don't treat "/patterns" without categoryType and categoryId as a
- // list page in mobile because the sidebar covers the whole page.
- !isMobileViewport || !!categoryType && !!categoryId);
-}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/hooks/commands/use-common-commands.js
+
+const backup = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"
+ })
+});
+/* harmony default export */ const library_backup = (backup);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
/**
* WordPress dependencies
*/
+const external = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"
+ })
+});
+/* harmony default export */ const library_external = (external);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/hooks/commands/use-common-commands.js
+/**
+ * WordPress dependencies
+ */
+
@@ -24417,27 +10329,24 @@ function getIsListPage({
*/
-
const {
useGlobalStylesReset
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
const {
useHistory: use_common_commands_useHistory,
useLocation: use_common_commands_useLocation
-} = unlock(external_wp_router_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
function useGlobalStylesOpenStylesCommands() {
const {
openGeneralSidebar,
setCanvasMode
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
const {
params
} = use_common_commands_useLocation();
- const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
- const isEditorPage = !getIsListPage(params, isMobileViewport);
const {
getCanvasMode
- } = unlock((0,external_wp_data_namespaceObject.useSelect)(store_store));
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useSelect)(store));
const history = use_common_commands_useHistory();
const isBlockBasedTheme = (0,external_wp_data_namespaceObject.useSelect)(select => {
return select(external_wp_coreData_namespaceObject.store).getCurrentTheme().is_block_theme;
@@ -24453,20 +10362,20 @@ function useGlobalStylesOpenStylesCommands() {
close
}) => {
close();
- if (!isEditorPage) {
+ if (!params.postId) {
history.push({
path: '/wp_global_styles',
canvas: 'edit'
});
}
- if (isEditorPage && getCanvasMode() !== 'edit') {
+ if (params.postId && getCanvasMode() !== 'edit') {
setCanvasMode('edit');
}
openGeneralSidebar('edit-site/global-styles');
},
icon: library_styles
}];
- }, [history, openGeneralSidebar, setCanvasMode, isEditorPage, getCanvasMode, isBlockBasedTheme]);
+ }, [history, openGeneralSidebar, setCanvasMode, getCanvasMode, isBlockBasedTheme, params.postId]);
return {
isLoading: false,
commands
@@ -24476,15 +10385,13 @@ function useGlobalStylesToggleWelcomeGuideCommands() {
const {
openGeneralSidebar,
setCanvasMode
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
const {
params
} = use_common_commands_useLocation();
- const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
- const isEditorPage = !getIsListPage(params, isMobileViewport);
const {
getCanvasMode
- } = unlock((0,external_wp_data_namespaceObject.useSelect)(store_store));
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useSelect)(store));
const {
set
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
@@ -24503,13 +10410,13 @@ function useGlobalStylesToggleWelcomeGuideCommands() {
close
}) => {
close();
- if (!isEditorPage) {
+ if (!params.postId) {
history.push({
path: '/wp_global_styles',
canvas: 'edit'
});
}
- if (isEditorPage && getCanvasMode() !== 'edit') {
+ if (params.postId && getCanvasMode() !== 'edit') {
setCanvasMode('edit');
}
openGeneralSidebar('edit-site/global-styles');
@@ -24522,7 +10429,7 @@ function useGlobalStylesToggleWelcomeGuideCommands() {
},
icon: library_help
}];
- }, [history, openGeneralSidebar, setCanvasMode, isEditorPage, getCanvasMode, isBlockBasedTheme, set]);
+ }, [history, openGeneralSidebar, setCanvasMode, getCanvasMode, isBlockBasedTheme, set, params.postId]);
return {
isLoading: false,
commands
@@ -24556,13 +10463,10 @@ function useGlobalStylesOpenCssCommands() {
openGeneralSidebar,
setEditorCanvasContainerView,
setCanvasMode
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
const {
params
} = use_common_commands_useLocation();
- const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
- const isListPage = getIsListPage(params, isMobileViewport);
- const isEditorPage = !isListPage;
const history = use_common_commands_useHistory();
const {
canEditCSS
@@ -24579,7 +10483,7 @@ function useGlobalStylesOpenCssCommands() {
}, []);
const {
getCanvasMode
- } = unlock((0,external_wp_data_namespaceObject.useSelect)(store_store));
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useSelect)(store));
const commands = (0,external_wp_element_namespaceObject.useMemo)(() => {
if (!canEditCSS) {
return [];
@@ -24592,20 +10496,20 @@ function useGlobalStylesOpenCssCommands() {
close
}) => {
close();
- if (!isEditorPage) {
+ if (!params.postId) {
history.push({
path: '/wp_global_styles',
canvas: 'edit'
});
}
- if (isEditorPage && getCanvasMode() !== 'edit') {
+ if (params.postId && getCanvasMode() !== 'edit') {
setCanvasMode('edit');
}
openGeneralSidebar('edit-site/global-styles');
setEditorCanvasContainerView('global-styles-css');
}
}];
- }, [history, openGeneralSidebar, setEditorCanvasContainerView, canEditCSS, isEditorPage, getCanvasMode, setCanvasMode]);
+ }, [history, openGeneralSidebar, setEditorCanvasContainerView, canEditCSS, getCanvasMode, setCanvasMode, params.postId]);
return {
isLoading: false,
commands
@@ -24616,15 +10520,13 @@ function useGlobalStylesOpenRevisionsCommands() {
openGeneralSidebar,
setEditorCanvasContainerView,
setCanvasMode
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
const {
getCanvasMode
- } = unlock((0,external_wp_data_namespaceObject.useSelect)(store_store));
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useSelect)(store));
const {
params
} = use_common_commands_useLocation();
- const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
- const isEditorPage = !getIsListPage(params, isMobileViewport);
const history = use_common_commands_useHistory();
const hasRevisions = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
@@ -24647,20 +10549,20 @@ function useGlobalStylesOpenRevisionsCommands() {
close
}) => {
close();
- if (!isEditorPage) {
+ if (!params.postId) {
history.push({
path: '/wp_global_styles',
canvas: 'edit'
});
}
- if (isEditorPage && getCanvasMode() !== 'edit') {
+ if (params.postId && getCanvasMode() !== 'edit') {
setCanvasMode('edit');
}
openGeneralSidebar('edit-site/global-styles');
setEditorCanvasContainerView('global-styles-revisions');
}
}];
- }, [hasRevisions, history, openGeneralSidebar, setEditorCanvasContainerView, isEditorPage, getCanvasMode, setCanvasMode]);
+ }, [hasRevisions, history, openGeneralSidebar, setEditorCanvasContainerView, getCanvasMode, setCanvasMode, params.postId]);
return {
isLoading: false,
commands
@@ -24706,143 +10608,169 @@ function useCommonCommands() {
});
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/code.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/layout.js
/**
* WordPress dependencies
*/
-const code = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"
-}));
-/* harmony default export */ const library_code = (code);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/drawer-left.js
+const layout = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
+ })
+});
+/* harmony default export */ const library_layout = (layout);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/page.js
/**
* WordPress dependencies
*/
-const drawerLeft = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- width: "24",
- height: "24",
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"
-}));
-/* harmony default export */ const drawer_left = (drawerLeft);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/drawer-right.js
-/**
- * WordPress dependencies
- */
-const drawerRight = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- width: "24",
- height: "24",
+const page = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"
-}));
-/* harmony default export */ const drawer_right = (drawerRight);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"
+ })]
+});
+/* harmony default export */ const library_page = (page);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/trash.js
/**
* WordPress dependencies
*/
-const blockDefault = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.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 */ const block_default = (blockDefault);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard.js
+const trash = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"
+ })
+});
+/* harmony default export */ const library_trash = (trash);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/use-edited-entity-record/index.js
/**
* WordPress dependencies
*/
-const keyboard = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m16 15.5h-8v-1.5h8zm-7.5-2.5h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm-9-3h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2z"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m18.5 6.5h-13a.5.5 0 0 0 -.5.5v9.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9.5a.5.5 0 0 0 -.5-.5zm-13-1.5h13a2 2 0 0 1 2 2v9.5a2 2 0 0 1 -2 2h-13a2 2 0 0 1 -2-2v-9.5a2 2 0 0 1 2-2z"
-}));
-/* harmony default export */ const library_keyboard = (keyboard);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/list-view.js
+
+
/**
- * WordPress dependencies
+ * Internal dependencies
*/
-const listView = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"
-}));
-/* harmony default export */ const list_view = (listView);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/pattern-modal/rename.js
+function useEditedEntityRecord(postType, postId) {
+ const {
+ record,
+ title,
+ description,
+ isLoaded,
+ icon
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getEditedPostType,
+ getEditedPostId
+ } = select(store);
+ const {
+ getEditedEntityRecord,
+ hasFinishedResolution
+ } = select(external_wp_coreData_namespaceObject.store);
+ const {
+ __experimentalGetTemplateInfo: getTemplateInfo
+ } = select(external_wp_editor_namespaceObject.store);
+ const usedPostType = postType !== null && postType !== void 0 ? postType : getEditedPostType();
+ const usedPostId = postId !== null && postId !== void 0 ? postId : getEditedPostId();
+ const _record = getEditedEntityRecord('postType', usedPostType, usedPostId);
+ const _isLoaded = usedPostId && hasFinishedResolution('getEditedEntityRecord', ['postType', usedPostType, usedPostId]);
+ const templateInfo = getTemplateInfo(_record);
+ return {
+ record: _record,
+ title: templateInfo.title,
+ description: templateInfo.description,
+ isLoaded: _isLoaded,
+ icon: templateInfo.icon
+ };
+ }, [postType, postId]);
+ return {
+ isLoaded,
+ icon,
+ record,
+ getTitle: () => title ? (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title) : null,
+ getDescription: () => description ? (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(description) : null
+ };
+}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/utils/is-template-removable.js
/**
- * WordPress dependencies
+ * Internal dependencies
*/
+/**
+ * Check if a template is removable.
+ *
+ * @param {Object} template The template entity to check.
+ * @return {boolean} Whether the template is revertable.
+ */
+function isTemplateRemovable(template) {
+ if (!template) {
+ return false;
+ }
+ return template.source === TEMPLATE_ORIGINS.custom && !template.has_theme_file;
+}
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/utils/is-template-revertable.js
/**
* Internal dependencies
*/
-
-const {
- RenamePatternModal
-} = unlock(external_wp_patterns_namespaceObject.privateApis);
-function PatternRenameModal() {
- const {
- record: pattern
- } = useEditedEntityRecord();
- const {
- closeModal
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- const isActive = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).isModalActive(PATTERN_MODALS.rename));
- if (!isActive) {
- return null;
+/**
+ * Check if a template is revertable to its original theme-provided template file.
+ *
+ * @param {Object} template The template entity to check.
+ * @return {boolean} Whether the template is revertable.
+ */
+function isTemplateRevertable(template) {
+ if (!template) {
+ return false;
}
- return (0,external_React_.createElement)(RenamePatternModal, {
- onClose: closeModal,
- pattern: pattern
- });
+ /* eslint-disable camelcase */
+ return template?.source === TEMPLATE_ORIGINS.custom && template?.has_theme_file;
+ /* eslint-enable camelcase */
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/pattern-modal/duplicate.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/utils/is-previewing-theme.js
/**
* WordPress dependencies
*/
+function isPreviewingTheme() {
+ return (0,external_wp_url_namespaceObject.getQueryArg)(window.location.href, 'wp_theme_preview') !== undefined;
+}
+function currentlyPreviewingTheme() {
+ if (isPreviewingTheme()) {
+ return (0,external_wp_url_namespaceObject.getQueryArg)(window.location.href, 'wp_theme_preview');
+ }
+ return null;
+}
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/routes/link.js
+/**
+ * WordPress dependencies
+ */
@@ -24852,60 +10780,50 @@ function PatternRenameModal() {
-
const {
- DuplicatePatternModal
-} = unlock(external_wp_patterns_namespaceObject.privateApis);
-const {
- useHistory: duplicate_useHistory
-} = unlock(external_wp_router_namespaceObject.privateApis);
-function PatternDuplicateModal() {
- const {
- record
- } = useEditedEntityRecord();
- const {
- categoryType,
- categoryId
- } = (0,external_wp_url_namespaceObject.getQueryArgs)(window.location.href);
- const {
- closeModal
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- const history = duplicate_useHistory();
- const isActive = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).isModalActive(PATTERN_MODALS.duplicate));
- if (!isActive) {
- return null;
+ useHistory: link_useHistory
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+function useLink(params, state, shouldReplace = false) {
+ const history = link_useHistory();
+ function onClick(event) {
+ event?.preventDefault();
+ if (shouldReplace) {
+ history.replace(params, state);
+ } else {
+ history.push(params, state);
+ }
}
- function onSuccess({
- pattern: newPattern
- }) {
- history.push({
- categoryType,
- categoryId,
- postType: PATTERN_TYPES.user,
- postId: newPattern.id
- });
- closeModal();
+ const currentArgs = (0,external_wp_url_namespaceObject.getQueryArgs)(window.location.href);
+ const currentUrlWithoutArgs = (0,external_wp_url_namespaceObject.removeQueryArgs)(window.location.href, ...Object.keys(currentArgs));
+ if (isPreviewingTheme()) {
+ params = {
+ ...params,
+ wp_theme_preview: currentlyPreviewingTheme()
+ };
}
- return (0,external_React_.createElement)(DuplicatePatternModal, {
- onClose: closeModal,
- onSuccess: onSuccess,
- pattern: record
- });
+ const newUrl = (0,external_wp_url_namespaceObject.addQueryArgs)(currentUrlWithoutArgs, params);
+ return {
+ href: newUrl,
+ onClick
+ };
}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/pattern-modal/index.js
-
-/**
- * Internal dependencies
- */
-
-
-const PATTERN_MODALS = {
- rename: 'edit-site/pattern-rename',
- duplicate: 'edit-site/pattern-duplicate'
-};
-function PatternModal() {
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(PatternDuplicateModal, null), (0,external_React_.createElement)(PatternRenameModal, null));
+function Link({
+ params = {},
+ state,
+ replace: shouldReplace = false,
+ children,
+ ...props
+}) {
+ const {
+ href,
+ onClick
+ } = useLink(params, state, shouldReplace);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ href: href,
+ onClick: onClick,
+ ...props,
+ children: children
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/hooks/commands/use-edit-mode-commands.js
@@ -24920,9 +10838,6 @@ function PatternModal() {
-
-
-
/**
* Internal dependencies
*/
@@ -24933,12 +10848,9 @@ function PatternModal() {
-
-
-
const {
useHistory: use_edit_mode_commands_useHistory
-} = unlock(external_wp_router_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
function usePageContentFocusCommands() {
const {
record: template
@@ -24952,7 +10864,7 @@ function usePageContentFocusCommands() {
const {
isPage: _isPage,
getCanvasMode
- } = unlock(select(store_store));
+ } = lock_unlock_unlock(select(store));
const {
getCurrentPostType,
getCurrentTemplateId
@@ -25011,42 +10923,6 @@ function usePageContentFocusCommands() {
commands
};
}
-function useEditorModeCommands() {
- const {
- switchEditorMode
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const {
- canvasMode,
- editorMode
- } = (0,external_wp_data_namespaceObject.useSelect)(select => ({
- canvasMode: unlock(select(store_store)).getCanvasMode(),
- editorMode: select(store_store).getEditorMode()
- }), []);
- if (canvasMode !== 'edit' || editorMode !== 'text') {
- return {
- isLoading: false,
- commands: []
- };
- }
- const commands = [];
- if (editorMode === 'text') {
- commands.push({
- name: 'core/exit-code-editor',
- label: (0,external_wp_i18n_namespaceObject.__)('Exit code editor'),
- icon: library_code,
- callback: ({
- close
- }) => {
- switchEditorMode('visual');
- close();
- }
- });
- }
- return {
- isLoading: false,
- commands
- };
-}
function useManipulateDocumentCommands() {
const {
isLoaded,
@@ -25055,9 +10931,9 @@ function useManipulateDocumentCommands() {
const {
removeTemplate,
revertTemplate
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
const history = use_edit_mode_commands_useHistory();
- const isEditingPage = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).isPage() && select(external_wp_editor_namespaceObject.store).getCurrentPostType() !== 'wp_template', []);
+ const isEditingPage = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).isPage() && select(external_wp_editor_namespaceObject.store).getCurrentPostType() !== 'wp_template', []);
if (!isLoaded) {
return {
isLoading: true,
@@ -25066,7 +10942,7 @@ function useManipulateDocumentCommands() {
}
const commands = [];
if (isTemplateRevertable(template) && !isEditingPage) {
- const label = template.type === constants_TEMPLATE_POST_TYPE ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: template title */
+ const label = template.type === TEMPLATE_POST_TYPE ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: template title */
(0,external_wp_i18n_namespaceObject.__)('Reset template: %s'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(template.title)) : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: template part title */
(0,external_wp_i18n_namespaceObject.__)('Reset template part: %s'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(template.title));
commands.push({
@@ -25082,10 +10958,9 @@ function useManipulateDocumentCommands() {
});
}
if (isTemplateRemovable(template) && !isEditingPage) {
- const label = template.type === constants_TEMPLATE_POST_TYPE ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: template title */
+ const label = template.type === TEMPLATE_POST_TYPE ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: template title */
(0,external_wp_i18n_namespaceObject.__)('Delete template: %s'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(template.title)) : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: template part title */
(0,external_wp_i18n_namespaceObject.__)('Delete template part: %s'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(template.title));
- const path = template.type === constants_TEMPLATE_POST_TYPE ? '/wp_template' : '/wp_template_part/all';
commands.push({
name: 'core/remove-template',
label,
@@ -25096,7 +10971,7 @@ function useManipulateDocumentCommands() {
removeTemplate(template);
// Navigate to the template list
history.push({
- path
+ postType: template.type
});
close();
}
@@ -25107,273 +10982,16 @@ function useManipulateDocumentCommands() {
commands
};
}
-function useEditUICommands() {
- const {
- openGeneralSidebar,
- closeGeneralSidebar,
- toggleDistractionFree,
- setIsListViewOpened,
- switchEditorMode
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const {
- canvasMode,
- editorMode,
- activeSidebar,
- showBlockBreadcrumbs,
- isListViewOpen,
- isDistractionFree,
- isTopToolbar,
- isFocusMode
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- get
- } = select(external_wp_preferences_namespaceObject.store);
- const {
- getEditorMode
- } = select(store_store);
- const {
- isListViewOpened
- } = select(external_wp_editor_namespaceObject.store);
- return {
- canvasMode: unlock(select(store_store)).getCanvasMode(),
- editorMode: getEditorMode(),
- activeSidebar: select(store).getActiveComplementaryArea(store_store.name),
- showBlockBreadcrumbs: get('core', 'showBlockBreadcrumbs'),
- isListViewOpen: isListViewOpened(),
- isDistractionFree: get('core', 'distractionFree'),
- isFocusMode: get('core', 'focusMode'),
- isTopToolbar: get('core', 'fixedToolbar')
- };
- }, []);
- const {
- openModal
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- const {
- toggle
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
- const {
- createInfoNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- if (canvasMode !== 'edit') {
- return {
- isLoading: false,
- commands: []
- };
- }
- const commands = [];
- commands.push({
- name: 'core/open-settings-sidebar',
- label: (0,external_wp_i18n_namespaceObject.__)('Toggle settings sidebar'),
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? drawer_left : drawer_right,
- callback: ({
- close
- }) => {
- close();
- if (activeSidebar === 'edit-site/template') {
- closeGeneralSidebar();
- } else {
- openGeneralSidebar('edit-site/template');
- }
- }
- });
- commands.push({
- name: 'core/open-block-inspector',
- label: (0,external_wp_i18n_namespaceObject.__)('Toggle block inspector'),
- icon: block_default,
- callback: ({
- close
- }) => {
- close();
- if (activeSidebar === 'edit-site/block-inspector') {
- closeGeneralSidebar();
- } else {
- openGeneralSidebar('edit-site/block-inspector');
- }
- }
- });
- commands.push({
- name: 'core/toggle-spotlight-mode',
- label: (0,external_wp_i18n_namespaceObject.__)('Toggle spotlight'),
- callback: ({
- close
- }) => {
- toggle('core', 'focusMode');
- close();
- createInfoNotice(isFocusMode ? (0,external_wp_i18n_namespaceObject.__)('Spotlight off.') : (0,external_wp_i18n_namespaceObject.__)('Spotlight on.'), {
- id: 'core/edit-site/toggle-spotlight-mode/notice',
- type: 'snackbar',
- actions: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Undo'),
- onClick: () => {
- toggle('core', 'focusMode');
- }
- }]
- });
- }
- });
- commands.push({
- name: 'core/toggle-distraction-free',
- label: isDistractionFree ? (0,external_wp_i18n_namespaceObject.__)('Exit Distraction Free') : (0,external_wp_i18n_namespaceObject.__)('Enter Distraction Free '),
- callback: ({
- close
- }) => {
- toggleDistractionFree();
- close();
- }
- });
- commands.push({
- name: 'core/toggle-top-toolbar',
- label: (0,external_wp_i18n_namespaceObject.__)('Toggle top toolbar'),
- callback: ({
- close
- }) => {
- toggle('core', 'fixedToolbar');
- if (isDistractionFree) {
- toggleDistractionFree();
- }
- close();
- createInfoNotice(isTopToolbar ? (0,external_wp_i18n_namespaceObject.__)('Top toolbar off.') : (0,external_wp_i18n_namespaceObject.__)('Top toolbar on.'), {
- id: 'core/edit-site/toggle-top-toolbar/notice',
- type: 'snackbar',
- actions: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Undo'),
- onClick: () => {
- toggle('core', 'fixedToolbar');
- }
- }]
- });
- }
- });
- if (editorMode === 'visual') {
- commands.push({
- name: 'core/toggle-code-editor',
- label: (0,external_wp_i18n_namespaceObject.__)('Open code editor'),
- icon: library_code,
- callback: ({
- close
- }) => {
- switchEditorMode('text');
- close();
- }
- });
- }
- commands.push({
- name: 'core/open-preferences',
- label: (0,external_wp_i18n_namespaceObject.__)('Editor preferences'),
- callback: () => {
- openModal(PREFERENCES_MODAL_NAME);
- }
- });
- commands.push({
- name: 'core/open-shortcut-help',
- label: (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts'),
- icon: library_keyboard,
- callback: () => {
- openModal(KEYBOARD_SHORTCUT_HELP_MODAL_NAME);
- }
- });
- commands.push({
- name: 'core/toggle-breadcrumbs',
- label: showBlockBreadcrumbs ? (0,external_wp_i18n_namespaceObject.__)('Hide block breadcrumbs') : (0,external_wp_i18n_namespaceObject.__)('Show block breadcrumbs'),
- callback: ({
- close
- }) => {
- toggle('core', 'showBlockBreadcrumbs');
- close();
- createInfoNotice(showBlockBreadcrumbs ? (0,external_wp_i18n_namespaceObject.__)('Breadcrumbs hidden.') : (0,external_wp_i18n_namespaceObject.__)('Breadcrumbs visible.'), {
- id: 'core/edit-site/toggle-breadcrumbs/notice',
- type: 'snackbar'
- });
- }
- });
- commands.push({
- name: 'core/toggle-list-view',
- label: isListViewOpen ? (0,external_wp_i18n_namespaceObject.__)('Close List View') : (0,external_wp_i18n_namespaceObject.__)('Open List View'),
- icon: list_view,
- callback: ({
- close
- }) => {
- setIsListViewOpened(!isListViewOpen);
- close();
- createInfoNotice(isListViewOpen ? (0,external_wp_i18n_namespaceObject.__)('List View off.') : (0,external_wp_i18n_namespaceObject.__)('List View on.'), {
- id: 'core/edit-site/toggle-list-view/notice',
- type: 'snackbar'
- });
- }
- });
- return {
- isLoading: false,
- commands
- };
-}
-function usePatternCommands() {
- const {
- isLoaded,
- record: pattern
- } = useEditedEntityRecord();
- const {
- openModal
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- if (!isLoaded) {
- return {
- isLoading: true,
- commands: []
- };
- }
- const commands = [];
- if (pattern?.type === 'wp_block') {
- commands.push({
- name: 'core/rename-pattern',
- label: (0,external_wp_i18n_namespaceObject.__)('Rename pattern'),
- icon: edit,
- callback: ({
- close
- }) => {
- openModal(PATTERN_MODALS.rename);
- close();
- }
- });
- commands.push({
- name: 'core/duplicate-pattern',
- label: (0,external_wp_i18n_namespaceObject.__)('Duplicate pattern'),
- icon: library_symbol,
- callback: ({
- close
- }) => {
- openModal(PATTERN_MODALS.duplicate);
- close();
- }
- });
- }
- return {
- isLoading: false,
- commands
- };
-}
function useEditModeCommands() {
(0,external_wp_commands_namespaceObject.useCommandLoader)({
- name: 'core/exit-code-editor',
- hook: useEditorModeCommands,
- context: 'site-editor-edit'
- });
- (0,external_wp_commands_namespaceObject.useCommandLoader)({
name: 'core/edit-site/page-content-focus',
hook: usePageContentFocusCommands,
- context: 'site-editor-edit'
+ context: 'entity-edit'
});
(0,external_wp_commands_namespaceObject.useCommandLoader)({
name: 'core/edit-site/manipulate-document',
hook: useManipulateDocumentCommands
});
- (0,external_wp_commands_namespaceObject.useCommandLoader)({
- name: 'core/edit-site/patterns',
- hook: usePatternCommands,
- context: 'site-editor-edit'
- });
- (0,external_wp_commands_namespaceObject.useCommandLoader)({
- name: 'core/edit-site/edit-ui',
- hook: useEditUICommands
- });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/layout/hooks.js
@@ -25438,44 +11056,959 @@ function useIsSiteEditorLoading() {
return !loaded || !hasLoadedPost;
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-edit-mode/default-sidebar.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/welcome-guide/image.js
+
+function WelcomeGuideImage({
+ nonAnimatedSrc,
+ animatedSrc
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("picture", {
+ className: "edit-site-welcome-guide__image",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("source", {
+ srcSet: nonAnimatedSrc,
+ media: "(prefers-reduced-motion: reduce)"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: animatedSrc,
+ width: "312",
+ height: "240",
+ alt: ""
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/welcome-guide/editor.js
/**
* WordPress dependencies
*/
-function DefaultSidebar({
- className,
- identifier,
- title,
- icon,
- children,
- closeLabel,
- header,
- headerClassName,
- panelClassName
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+function WelcomeGuideEditor() {
+ const {
+ toggle
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
+ const {
+ isActive,
+ isBlockBasedTheme
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ return {
+ isActive: !!select(external_wp_preferences_namespaceObject.store).get('core/edit-site', 'welcomeGuide'),
+ isBlockBasedTheme: select(external_wp_coreData_namespaceObject.store).getCurrentTheme()?.is_block_theme
+ };
+ }, []);
+ if (!isActive || !isBlockBasedTheme) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Guide, {
+ className: "edit-site-welcome-guide guide-editor",
+ contentLabel: (0,external_wp_i18n_namespaceObject.__)('Welcome to the site editor'),
+ finishButtonText: (0,external_wp_i18n_namespaceObject.__)('Get started'),
+ onFinish: () => toggle('core/edit-site', 'welcomeGuide'),
+ pages: [{
+ image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideImage, {
+ nonAnimatedSrc: "https://s.w.org/images/block-editor/edit-your-site.svg?1",
+ animatedSrc: "https://s.w.org/images/block-editor/edit-your-site.gif?1"
+ }),
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ className: "edit-site-welcome-guide__heading",
+ children: (0,external_wp_i18n_namespaceObject.__)('Edit your site')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-site-welcome-guide__text",
+ children: (0,external_wp_i18n_namespaceObject.__)('Design everything on your site — from the header right down to the footer — using blocks.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-site-welcome-guide__text",
+ children: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('Click <StylesIconImage /> to start designing your blocks, and choose your typography, layout, and colors.'), {
+ StylesIconImage: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ alt: (0,external_wp_i18n_namespaceObject.__)('styles'),
+ src: "data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z' fill='%231E1E1E'/%3E%3C/svg%3E%0A"
+ })
+ })
+ })]
+ })
+ }]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/welcome-guide/styles.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+const {
+ interfaceStore: styles_interfaceStore
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
+function WelcomeGuideStyles() {
+ const {
+ toggle
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
+ const {
+ isActive,
+ isStylesOpen
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const sidebar = select(styles_interfaceStore).getActiveComplementaryArea('core');
+ return {
+ isActive: !!select(external_wp_preferences_namespaceObject.store).get('core/edit-site', 'welcomeGuideStyles'),
+ isStylesOpen: sidebar === 'edit-site/global-styles'
+ };
+ }, []);
+ if (!isActive || !isStylesOpen) {
+ return null;
+ }
+ const welcomeLabel = (0,external_wp_i18n_namespaceObject.__)('Welcome to Styles');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Guide, {
+ className: "edit-site-welcome-guide guide-styles",
+ contentLabel: welcomeLabel,
+ finishButtonText: (0,external_wp_i18n_namespaceObject.__)('Get started'),
+ onFinish: () => toggle('core/edit-site', 'welcomeGuideStyles'),
+ pages: [{
+ image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideImage, {
+ nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-to-styles.svg?1",
+ animatedSrc: "https://s.w.org/images/block-editor/welcome-to-styles.gif?1"
+ }),
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ className: "edit-site-welcome-guide__heading",
+ children: welcomeLabel
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-site-welcome-guide__text",
+ children: (0,external_wp_i18n_namespaceObject.__)('Tweak your site, or give it a whole new look! Get creative — how about a new color palette for your buttons, or choosing a new font? Take a look at what you can do here.')
+ })]
+ })
+ }, {
+ image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideImage, {
+ nonAnimatedSrc: "https://s.w.org/images/block-editor/set-the-design.svg?1",
+ animatedSrc: "https://s.w.org/images/block-editor/set-the-design.gif?1"
+ }),
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ className: "edit-site-welcome-guide__heading",
+ children: (0,external_wp_i18n_namespaceObject.__)('Set the design')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-site-welcome-guide__text",
+ children: (0,external_wp_i18n_namespaceObject.__)('You can customize your site as much as you like with different colors, typography, and layouts. Or if you prefer, just leave it up to your theme to handle!')
+ })]
+ })
+ }, {
+ image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideImage, {
+ nonAnimatedSrc: "https://s.w.org/images/block-editor/personalize-blocks.svg?1",
+ animatedSrc: "https://s.w.org/images/block-editor/personalize-blocks.gif?1"
+ }),
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ className: "edit-site-welcome-guide__heading",
+ children: (0,external_wp_i18n_namespaceObject.__)('Personalize blocks')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-site-welcome-guide__text",
+ children: (0,external_wp_i18n_namespaceObject.__)('You can adjust your blocks to ensure a cohesive experience across your site — add your unique colors to a branded Button block, or adjust the Heading block to your preferred size.')
+ })]
+ })
+ }, {
+ image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideImage, {
+ nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-documentation.svg",
+ animatedSrc: "https://s.w.org/images/block-editor/welcome-documentation.gif"
+ }),
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ className: "edit-site-welcome-guide__heading",
+ children: (0,external_wp_i18n_namespaceObject.__)('Learn more')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("p", {
+ className: "edit-site-welcome-guide__text",
+ children: [(0,external_wp_i18n_namespaceObject.__)('New to block themes and styling your site?'), ' ', /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/styles-overview/'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Here’s a detailed guide to learn how to make the most of it.')
+ })]
+ })]
+ })
+ }]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/welcome-guide/page.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+function WelcomeGuidePage() {
+ const {
+ toggle
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
+ const isVisible = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const isPageActive = !!select(external_wp_preferences_namespaceObject.store).get('core/edit-site', 'welcomeGuidePage');
+ const isEditorActive = !!select(external_wp_preferences_namespaceObject.store).get('core/edit-site', 'welcomeGuide');
+ const {
+ isPage
+ } = select(store);
+ return isPageActive && !isEditorActive && isPage();
+ }, []);
+ if (!isVisible) {
+ return null;
+ }
+ const heading = (0,external_wp_i18n_namespaceObject.__)('Editing a page');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Guide, {
+ className: "edit-site-welcome-guide guide-page",
+ contentLabel: heading,
+ finishButtonText: (0,external_wp_i18n_namespaceObject.__)('Continue'),
+ onFinish: () => toggle('core/edit-site', 'welcomeGuidePage'),
+ pages: [{
+ image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
+ className: "edit-site-welcome-guide__video",
+ autoPlay: true,
+ loop: true,
+ muted: true,
+ width: "312",
+ height: "240",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("source", {
+ src: "https://s.w.org/images/block-editor/editing-your-page.mp4",
+ type: "video/mp4"
+ })
+ }),
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ className: "edit-site-welcome-guide__heading",
+ children: heading
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-site-welcome-guide__text",
+ children: (0,external_wp_i18n_namespaceObject.__)('It’s now possible to edit page content in the site editor. To customise other parts of the page like the header and footer switch to editing the template using the settings sidebar.')
+ })]
+ })
+ }]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/welcome-guide/template.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+function WelcomeGuideTemplate() {
+ const {
+ toggle
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
+ const isVisible = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const isTemplateActive = !!select(external_wp_preferences_namespaceObject.store).get('core/edit-site', 'welcomeGuideTemplate');
+ const isEditorActive = !!select(external_wp_preferences_namespaceObject.store).get('core/edit-site', 'welcomeGuide');
+ const {
+ isPage
+ } = select(store);
+ const {
+ getCurrentPostType
+ } = select(external_wp_editor_namespaceObject.store);
+ return isTemplateActive && !isEditorActive && isPage() && getCurrentPostType() === 'wp_template';
+ }, []);
+ if (!isVisible) {
+ return null;
+ }
+ const heading = (0,external_wp_i18n_namespaceObject.__)('Editing a template');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Guide, {
+ className: "edit-site-welcome-guide guide-template",
+ contentLabel: heading,
+ finishButtonText: (0,external_wp_i18n_namespaceObject.__)('Continue'),
+ onFinish: () => toggle('core/edit-site', 'welcomeGuideTemplate'),
+ pages: [{
+ image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("video", {
+ className: "edit-site-welcome-guide__video",
+ autoPlay: true,
+ loop: true,
+ muted: true,
+ width: "312",
+ height: "240",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("source", {
+ src: "https://s.w.org/images/block-editor/editing-your-template.mp4",
+ type: "video/mp4"
+ })
+ }),
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ className: "edit-site-welcome-guide__heading",
+ children: heading
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-site-welcome-guide__text",
+ children: (0,external_wp_i18n_namespaceObject.__)('Note that the same template can be used by multiple pages, so any changes made here may affect other pages on the site. To switch back to editing the page content click the ‘Back’ button in the toolbar.')
+ })]
+ })
+ }]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/welcome-guide/index.js
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+function WelcomeGuide() {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideEditor, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideStyles, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuidePage, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideTemplate, {})]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles-renderer/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+const {
+ useGlobalStylesOutput
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+function useGlobalStylesRenderer() {
+ const postType = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ return select(store).getEditedPostType();
+ });
+ const [styles, settings] = useGlobalStylesOutput(postType !== TEMPLATE_POST_TYPE);
+ const {
+ getSettings
+ } = (0,external_wp_data_namespaceObject.useSelect)(store);
+ const {
+ updateSettings
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ var _currentStoreSettings;
+ if (!styles || !settings) {
+ return;
+ }
+ const currentStoreSettings = getSettings();
+ const nonGlobalStyles = Object.values((_currentStoreSettings = currentStoreSettings.styles) !== null && _currentStoreSettings !== void 0 ? _currentStoreSettings : []).filter(style => !style.isGlobalStyles);
+ updateSettings({
+ ...currentStoreSettings,
+ styles: [...nonGlobalStyles, ...styles],
+ __experimentalFeatures: settings
+ });
+ }, [styles, settings, updateSettings, getSettings]);
+}
+function GlobalStylesRenderer() {
+ useGlobalStylesRenderer();
+ return null;
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/canvas-loader/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+const {
+ Theme
+} = lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
+const {
+ useGlobalStyle: canvas_loader_useGlobalStyle
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+function CanvasLoader({
+ id
}) {
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(complementary_area, {
- className: className,
- scope: "core/edit-site",
- identifier: identifier,
- title: title,
- smallScreenTitle: title,
- icon: icon,
- closeLabel: closeLabel,
- header: header,
- headerClassName: headerClassName,
- panelClassName: panelClassName
- }, children), (0,external_React_.createElement)(ComplementaryAreaMoreMenuItem, {
- scope: "core/edit-site",
- identifier: identifier,
- icon: icon
- }, title));
+ var _highlightedColors$0$;
+ const [fallbackIndicatorColor] = canvas_loader_useGlobalStyle('color.text');
+ const [backgroundColor] = canvas_loader_useGlobalStyle('color.background');
+ const {
+ highlightedColors
+ } = useStylesPreviewColors();
+ const indicatorColor = (_highlightedColors$0$ = highlightedColors[0]?.color) !== null && _highlightedColors$0$ !== void 0 ? _highlightedColors$0$ : fallbackIndicatorColor;
+ const {
+ elapsed,
+ total
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ var _selectorsByStatus$re, _selectorsByStatus$fi;
+ const selectorsByStatus = select(external_wp_coreData_namespaceObject.store).countSelectorsByStatus();
+ const resolving = (_selectorsByStatus$re = selectorsByStatus.resolving) !== null && _selectorsByStatus$re !== void 0 ? _selectorsByStatus$re : 0;
+ const finished = (_selectorsByStatus$fi = selectorsByStatus.finished) !== null && _selectorsByStatus$fi !== void 0 ? _selectorsByStatus$fi : 0;
+ return {
+ elapsed: finished,
+ total: finished + resolving
+ };
+ }, []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-canvas-loader",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Theme, {
+ accent: indicatorColor,
+ background: backgroundColor,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ProgressBar, {
+ id: id,
+ max: total,
+ value: elapsed
+ })
+ })
+ });
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/icon-with-current-color.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/template-part-converter/convert-to-regular.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+function ConvertToRegularBlocks({
+ clientId,
+ onClose
+}) {
+ const {
+ getBlocks
+ } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
+ const {
+ replaceBlocks
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
+ const canRemove = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).canRemoveBlock(clientId), [clientId]);
+ if (!canRemove) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ replaceBlocks(clientId, getBlocks(clientId));
+ onClose();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Detach')
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/symbol-filled.js
+/**
+ * WordPress dependencies
+ */
+
+
+const symbolFilled = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
+ })
+});
+/* harmony default export */ const symbol_filled = (symbolFilled);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/template-part-converter/convert-to-template-part.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+
/**
+ * Internal dependencies
+ */
+
+
+
+
+
+const {
+ CreateTemplatePartModal
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
+function ConvertToTemplatePart({
+ clientIds,
+ blocks
+}) {
+ const [isModalOpen, setIsModalOpen] = (0,external_wp_element_namespaceObject.useState)(false);
+ const {
+ replaceBlocks
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
+ const {
+ createSuccessNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ const {
+ canCreate
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ supportsTemplatePartsMode
+ } = select(store).getSettings();
+ return {
+ canCreate: !supportsTemplatePartsMode
+ };
+ }, []);
+ if (!canCreate) {
+ return null;
+ }
+ const onConvert = async templatePart => {
+ replaceBlocks(clientIds, (0,external_wp_blocks_namespaceObject.createBlock)('core/template-part', {
+ slug: templatePart.slug,
+ theme: templatePart.theme
+ }));
+ createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Template part created.'), {
+ type: 'snackbar'
+ });
+
+ // The modal and this component will be unmounted because of `replaceBlocks` above,
+ // so no need to call `closeModal` or `onClose`.
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: symbol_filled,
+ onClick: () => {
+ setIsModalOpen(true);
+ },
+ "aria-expanded": isModalOpen,
+ "aria-haspopup": "dialog",
+ children: (0,external_wp_i18n_namespaceObject.__)('Create template part')
+ }), isModalOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CreateTemplatePartModal, {
+ closeModal: () => {
+ setIsModalOpen(false);
+ },
+ blocks: blocks,
+ onCreate: onConvert
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/template-part-converter/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+function TemplatePartConverter() {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockSettingsMenuControls, {
+ children: ({
+ selectedClientIds,
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplatePartConverterMenuItem, {
+ clientIds: selectedClientIds,
+ onClose: onClose
+ })
+ });
+}
+function TemplatePartConverterMenuItem({
+ clientIds,
+ onClose
+}) {
+ const {
+ isContentOnly,
+ blocks
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getBlocksByClientId,
+ getBlockEditingMode
+ } = select(external_wp_blockEditor_namespaceObject.store);
+ return {
+ blocks: getBlocksByClientId(clientIds),
+ isContentOnly: clientIds.length === 1 && getBlockEditingMode(clientIds[0]) === 'contentOnly'
+ };
+ }, [clientIds]);
+
+ // Do not show the convert button if the block is in content-only mode.
+ if (isContentOnly) {
+ return null;
+ }
+
+ // Allow converting a single template part to standard blocks.
+ if (blocks.length === 1 && blocks[0]?.name === 'core/template-part') {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ConvertToRegularBlocks, {
+ clientId: clientIds[0],
+ onClose: onClose
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ConvertToTemplatePart, {
+ clientIds: clientIds,
+ blocks: blocks
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/block-editor/use-navigate-to-entity-record.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+const {
+ useHistory: use_navigate_to_entity_record_useHistory
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+function useNavigateToEntityRecord() {
+ const history = use_navigate_to_entity_record_useHistory();
+ const onNavigateToEntityRecord = (0,external_wp_element_namespaceObject.useCallback)(params => {
+ history.push({
+ ...params,
+ focusMode: true,
+ canvas: 'edit'
+ });
+ }, [history]);
+ return onNavigateToEntityRecord;
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/block-editor/use-site-editor-settings.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+const {
+ useBlockEditorSettings
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
+const {
+ useLocation: use_site_editor_settings_useLocation,
+ useHistory: use_site_editor_settings_useHistory
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+function useArchiveLabel(templateSlug) {
+ const taxonomyMatches = templateSlug?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/);
+ let taxonomy;
+ let term;
+ let isAuthor = false;
+ let authorSlug;
+ if (taxonomyMatches) {
+ // If is for a all taxonomies of a type
+ if (taxonomyMatches[1]) {
+ taxonomy = taxonomyMatches[2] ? taxonomyMatches[2] : taxonomyMatches[1];
+ }
+ // If is for a all taxonomies of a type
+ else if (taxonomyMatches[3]) {
+ taxonomy = taxonomyMatches[6] ? taxonomyMatches[6] : taxonomyMatches[4];
+ term = taxonomyMatches[7];
+ }
+ taxonomy = taxonomy === 'tag' ? 'post_tag' : taxonomy;
+
+ //getTaxonomy( 'category' );
+ //wp.data.select('core').getEntityRecords( 'taxonomy', 'category', {slug: 'newcat'} );
+ } else {
+ const authorMatches = templateSlug?.match(/^(author)$|^author-(.+)$/);
+ if (authorMatches) {
+ isAuthor = true;
+ if (authorMatches[2]) {
+ authorSlug = authorMatches[2];
+ }
+ }
+ }
+ return (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getEntityRecords,
+ getTaxonomy,
+ getAuthors
+ } = select(external_wp_coreData_namespaceObject.store);
+ let archiveTypeLabel;
+ let archiveNameLabel;
+ if (taxonomy) {
+ archiveTypeLabel = getTaxonomy(taxonomy)?.labels?.singular_name;
+ }
+ if (term) {
+ const records = getEntityRecords('taxonomy', taxonomy, {
+ slug: term,
+ per_page: 1
+ });
+ if (records && records[0]) {
+ archiveNameLabel = records[0].name;
+ }
+ }
+ if (isAuthor) {
+ archiveTypeLabel = 'Author';
+ if (authorSlug) {
+ const authorRecords = getAuthors({
+ slug: authorSlug
+ });
+ if (authorRecords && authorRecords[0]) {
+ archiveNameLabel = authorRecords[0].name;
+ }
+ }
+ }
+ return {
+ archiveTypeLabel,
+ archiveNameLabel
+ };
+ }, [authorSlug, isAuthor, taxonomy, term]);
+}
+function useNavigateToPreviousEntityRecord() {
+ const location = use_site_editor_settings_useLocation();
+ const previousLocation = (0,external_wp_compose_namespaceObject.usePrevious)(location);
+ const history = use_site_editor_settings_useHistory();
+ const goBack = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ const isFocusMode = location.params.focusMode || location.params.postId && FOCUSABLE_ENTITIES.includes(location.params.postType);
+ const didComeFromEditorCanvas = previousLocation?.params.canvas === 'edit';
+ const showBackButton = isFocusMode && didComeFromEditorCanvas;
+ return showBackButton ? () => history.back() : undefined;
+ // Disable reason: previousLocation changes when the component updates for any reason, not
+ // just when location changes. Until this is fixed we can't add it to deps. See
+ // https://github.com/WordPress/gutenberg/pull/58710#discussion_r1479219465.
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [location, history]);
+ return goBack;
+}
+function useSpecificEditorSettings() {
+ const onNavigateToEntityRecord = useNavigateToEntityRecord();
+ const {
+ templateSlug,
+ canvasMode,
+ settings,
+ postWithTemplate
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getEditedPostType,
+ getEditedPostId,
+ getEditedPostContext,
+ getCanvasMode,
+ getSettings
+ } = lock_unlock_unlock(select(store));
+ const {
+ getEditedEntityRecord
+ } = select(external_wp_coreData_namespaceObject.store);
+ const usedPostType = getEditedPostType();
+ const usedPostId = getEditedPostId();
+ const _record = getEditedEntityRecord('postType', usedPostType, usedPostId);
+ const _context = getEditedPostContext();
+ return {
+ templateSlug: _record.slug,
+ canvasMode: getCanvasMode(),
+ settings: getSettings(),
+ postWithTemplate: _context?.postId
+ };
+ }, []);
+ const archiveLabels = useArchiveLabel(templateSlug);
+ const defaultRenderingMode = postWithTemplate ? 'template-locked' : 'post-only';
+ const onNavigateToPreviousEntityRecord = useNavigateToPreviousEntityRecord();
+ const defaultEditorSettings = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return {
+ ...settings,
+ richEditingEnabled: true,
+ supportsTemplateMode: true,
+ focusMode: canvasMode !== 'view',
+ defaultRenderingMode,
+ onNavigateToEntityRecord,
+ onNavigateToPreviousEntityRecord,
+ // I wonder if they should be set in the post editor too
+ __experimentalArchiveTitleTypeLabel: archiveLabels.archiveTypeLabel,
+ __experimentalArchiveTitleNameLabel: archiveLabels.archiveNameLabel,
+ __unstableIsPreviewMode: canvasMode === 'view'
+ };
+ }, [settings, canvasMode, defaultRenderingMode, onNavigateToEntityRecord, onNavigateToPreviousEntityRecord, archiveLabels.archiveTypeLabel, archiveLabels.archiveNameLabel]);
+ return defaultEditorSettings;
+}
+function useSiteEditorSettings() {
+ const defaultEditorSettings = useSpecificEditorSettings();
+ const {
+ postType,
+ postId
+ } = useSelect(select => {
+ const {
+ getEditedPostType,
+ getEditedPostId
+ } = unlock(select(editSiteStore));
+ const usedPostType = getEditedPostType();
+ const usedPostId = getEditedPostId();
+ return {
+ postType: usedPostType,
+ postId: usedPostId
+ };
+ }, []);
+ return useBlockEditorSettings(defaultEditorSettings, postType, postId);
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/plugin-template-setting-panel/index.js
+/**
+ * Defines an extensibility slot for the Template sidebar.
+ */
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+const {
+ Fill,
+ Slot
+} = (0,external_wp_components_namespaceObject.createSlotFill)('PluginTemplateSettingPanel');
+const PluginTemplateSettingPanel = ({
+ children
+}) => {
+ external_wp_deprecated_default()('wp.editSite.PluginTemplateSettingPanel', {
+ since: '6.6',
+ version: '6.8',
+ alternative: 'wp.editor.PluginDocumentSettingPanel'
+ });
+ const isCurrentEntityTemplate = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_editor_namespaceObject.store).getCurrentPostType() === 'wp_template', []);
+ if (!isCurrentEntityTemplate) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Fill, {
+ children: children
+ });
+};
+PluginTemplateSettingPanel.Slot = Slot;
+
+/**
+ * Renders items in the Template Sidebar below the main information
+ * like the Template Card.
+ *
+ * @deprecated since 6.6. Use `wp.editor.PluginDocumentSettingPanel` instead.
+ *
+ * @example
+ * ```jsx
+ * // Using ESNext syntax
+ * import { PluginTemplateSettingPanel } from '@wordpress/edit-site';
+ *
+ * const MyTemplateSettingTest = () => (
+ * <PluginTemplateSettingPanel>
+ * <p>Hello, World!</p>
+ * </PluginTemplateSettingPanel>
+ * );
+ * ```
+ *
+ * @return {Component} The component to be rendered.
+ */
+/* harmony default export */ const plugin_template_setting_panel = (PluginTemplateSettingPanel);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/seen.js
+/**
+ * WordPress dependencies
+ */
+
+
+const seen = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"
+ })
+});
+/* harmony default export */ const library_seen = (seen);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
+/**
+ * WordPress dependencies
+ */
+
+
+const moreVertical = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
+ })
+});
+/* harmony default export */ const more_vertical = (moreVertical);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js
+/**
+ * WordPress dependencies
+ */
+
+
+const chevronLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
+ })
+});
+/* harmony default export */ const chevron_left = (chevronLeft);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js
+/**
+ * WordPress dependencies
+ */
+
+
+const chevronRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
+ })
+});
+/* harmony default export */ const chevron_right = (chevronRight);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/icon-with-current-color.js
+/**
* External dependencies
*/
@@ -25484,18 +12017,18 @@ function DefaultSidebar({
* WordPress dependencies
*/
+
function IconWithCurrentColor({
className,
...props
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- className: classnames_default()(className, 'edit-site-global-styles-icon-with-current-color'),
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ className: dist_clsx(className, 'edit-site-global-styles-icon-with-current-color'),
...props
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/navigation-button.js
-
/**
* WordPress dependencies
*/
@@ -25505,28 +12038,34 @@ function IconWithCurrentColor({
* Internal dependencies
*/
+
+
function GenericNavigationButton({
icon,
children,
...props
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItem, {
- ...props
- }, icon && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "flex-start"
- }, (0,external_React_.createElement)(IconWithCurrentColor, {
- icon: icon,
- size: 24
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, children)), !icon && children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalItem, {
+ ...props,
+ children: [icon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(IconWithCurrentColor, {
+ icon: icon,
+ size: 24
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: children
+ })]
+ }), !icon && children]
+ });
}
function NavigationButtonAsItem(props) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorButton, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNavigatorButton, {
as: GenericNavigationButton,
...props
});
}
function NavigationBackButtonAsItem(props) {
- return createElement(NavigatorToParentButton, {
+ return /*#__PURE__*/_jsx(NavigatorToParentButton, {
as: GenericNavigationButton,
...props
});
@@ -25534,35 +12073,51 @@ function NavigationBackButtonAsItem(props) {
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/typography.js
-
/**
* WordPress dependencies
*/
-const typography = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const typography = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"
+ })
+});
/* harmony default export */ const library_typography = (typography);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/color.js
-
/**
* WordPress dependencies
*/
-const color = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const color = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"
+ })
+});
/* harmony default export */ const library_color = (color);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/root-menu.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/shadow.js
+/**
+ * WordPress dependencies
+ */
+
+const shadow = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"
+ })
+});
+/* harmony default export */ const library_shadow = (shadow);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/root-menu.js
/**
* WordPress dependencies
*/
@@ -25576,38 +12131,647 @@ const color = (0,external_React_.createElement)(external_wp_primitives_namespace
*/
+
+
+
const {
useHasDimensionsPanel,
useHasTypographyPanel,
useHasColorPanel,
useGlobalSetting: root_menu_useGlobalSetting,
useSettingsForBlockElement
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
function RootMenu() {
const [rawSettings] = root_menu_useGlobalSetting('');
const settings = useSettingsForBlockElement(rawSettings);
const hasTypographyPanel = useHasTypographyPanel(settings);
const hasColorPanel = useHasColorPanel(settings);
+ const hasShadowPanel = true; // useHasShadowPanel( settings );
const hasDimensionsPanel = useHasDimensionsPanel(settings);
const hasLayoutPanel = hasDimensionsPanel;
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, null, hasTypographyPanel && (0,external_React_.createElement)(NavigationButtonAsItem, {
- icon: library_typography,
- path: "/typography",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Typography styles')
- }, (0,external_wp_i18n_namespaceObject.__)('Typography')), hasColorPanel && (0,external_React_.createElement)(NavigationButtonAsItem, {
- icon: library_color,
- path: "/colors",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Colors styles')
- }, (0,external_wp_i18n_namespaceObject.__)('Colors')), hasLayoutPanel && (0,external_React_.createElement)(NavigationButtonAsItem, {
- icon: library_layout,
- path: "/layout",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Layout styles')
- }, (0,external_wp_i18n_namespaceObject.__)('Layout'))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ children: [hasTypographyPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationButtonAsItem, {
+ icon: library_typography,
+ path: "/typography",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Typography styles'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Typography')
+ }), hasColorPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationButtonAsItem, {
+ icon: library_color,
+ path: "/colors",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Colors styles'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Colors')
+ }), hasShadowPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationButtonAsItem, {
+ icon: library_shadow,
+ path: "/shadows",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Shadow styles'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Shadows')
+ }), hasLayoutPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationButtonAsItem, {
+ icon: library_layout,
+ path: "/layout",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Layout styles'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Layout')
+ })]
+ })
+ });
}
/* harmony default export */ const root_menu = (RootMenu);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-root.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/font-library-modal/utils/preview-styles.js
+function findNearest(input, numbers) {
+ // If the numbers array is empty, return null
+ if (numbers.length === 0) {
+ return null;
+ }
+ // Sort the array based on the absolute difference with the input
+ numbers.sort((a, b) => Math.abs(input - a) - Math.abs(input - b));
+ // Return the first element (which will be the nearest) from the sorted array
+ return numbers[0];
+}
+function extractFontWeights(fontFaces) {
+ const result = [];
+ fontFaces.forEach(face => {
+ const weights = String(face.fontWeight).split(' ');
+ if (weights.length === 2) {
+ const start = parseInt(weights[0]);
+ const end = parseInt(weights[1]);
+ for (let i = start; i <= end; i += 100) {
+ result.push(i);
+ }
+ } else if (weights.length === 1) {
+ result.push(parseInt(weights[0]));
+ }
+ });
+ return result;
+}
+
+/*
+ * Format the font family to use in the CSS font-family property of a CSS rule.
+ *
+ * The input can be a string with the font family name or a string with multiple font family names separated by commas.
+ * It follows the recommendations from the CSS Fonts Module Level 4.
+ * https://www.w3.org/TR/css-fonts-4/#font-family-prop
+ *
+ * @param {string} input - The font family.
+ * @return {string} The formatted font family.
+ *
+ * Example:
+ * formatFontFamily( "Open Sans, Font+Name, sans-serif" ) => '"Open Sans", "Font+Name", sans-serif'
+ * formatFontFamily( "'Open Sans', generic(kai), sans-serif" ) => '"Open Sans", sans-serif'
+ * formatFontFamily( "DotGothic16, Slabo 27px, serif" ) => '"DotGothic16","Slabo 27px",serif'
+ * formatFontFamily( "Mine's, Moe's Typography" ) => `"mine's","Moe's Typography"`
+ */
+function formatFontFamily(input) {
+ // Matches strings that are not exclusively alphabetic characters or hyphens, and do not exactly follow the pattern generic(alphabetic characters or hyphens).
+ const regex = /^(?!generic\([ a-zA-Z\-]+\)$)(?!^[a-zA-Z\-]+$).+/;
+ const output = input.trim();
+ const formatItem = item => {
+ item = item.trim();
+ if (item.match(regex)) {
+ // removes leading and trailing quotes.
+ item = item.replace(/^["']|["']$/g, '');
+ return `"${item}"`;
+ }
+ return item;
+ };
+ if (output.includes(',')) {
+ return output.split(',').map(formatItem).filter(item => item !== '').join(', ');
+ }
+ return formatItem(output);
+}
+
+/*
+ * Format the font face name to use in the font-family property of a font face.
+ *
+ * The input can be a string with the font face name or a string with multiple font face names separated by commas.
+ * It removes the leading and trailing quotes from the font face name.
+ *
+ * @param {string} input - The font face name.
+ * @return {string} The formatted font face name.
+ *
+ * Example:
+ * formatFontFaceName("Open Sans") => "Open Sans"
+ * formatFontFaceName("'Open Sans', sans-serif") => "Open Sans"
+ * formatFontFaceName(", 'Open Sans', 'Helvetica Neue', sans-serif") => "Open Sans"
+ */
+function formatFontFaceName(input) {
+ if (!input) {
+ return '';
+ }
+ let output = input.trim();
+ if (output.includes(',')) {
+ output = output.split(',')
+ // finds the first item that is not an empty string.
+ .find(item => item.trim() !== '').trim();
+ }
+ // removes leading and trailing quotes.
+ output = output.replace(/^["']|["']$/g, '');
+
+ // Firefox needs the font name to be wrapped in double quotes meanwhile other browsers don't.
+ if (window.navigator.userAgent.toLowerCase().includes('firefox')) {
+ output = `"${output}"`;
+ }
+ return output;
+}
+function getFamilyPreviewStyle(family) {
+ const style = {
+ fontFamily: formatFontFamily(family.fontFamily)
+ };
+ if (!Array.isArray(family.fontFace)) {
+ style.fontWeight = '400';
+ style.fontStyle = 'normal';
+ return style;
+ }
+ if (family.fontFace) {
+ //get all the font faces with normal style
+ const normalFaces = family.fontFace.filter(face => face?.fontStyle && face.fontStyle.toLowerCase() === 'normal');
+ if (normalFaces.length > 0) {
+ style.fontStyle = 'normal';
+ const normalWeights = extractFontWeights(normalFaces);
+ const nearestWeight = findNearest(400, normalWeights);
+ style.fontWeight = String(nearestWeight) || '400';
+ } else {
+ style.fontStyle = family.fontFace.length && family.fontFace[0].fontStyle || 'normal';
+ style.fontWeight = family.fontFace.length && String(family.fontFace[0].fontWeight) || '400';
+ }
+ }
+ return style;
+}
+function getFacePreviewStyle(face) {
+ return {
+ fontFamily: formatFontFamily(face.fontFamily),
+ fontStyle: face.fontStyle || 'normal',
+ fontWeight: face.fontWeight || '400'
+ };
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/utils.js
+/**
+ *
+ * @param {string} variation The variation name.
+ *
+ * @return {string} The variation class name.
+ */
+function getVariationClassName(variation) {
+ if (!variation) {
+ return '';
+ }
+ return `is-style-${variation}`;
+}
+
+/**
+ * Iterates through the presets array and searches for slugs that start with the specified
+ * slugPrefix followed by a numerical suffix. It identifies the highest numerical suffix found
+ * and returns one greater than the highest found suffix, ensuring that the new index is unique.
+ *
+ * @param {Array} presets The array of preset objects, each potentially containing a slug property.
+ * @param {string} slugPrefix The prefix to look for in the preset slugs.
+ *
+ * @return {number} The next available index for a preset with the specified slug prefix, or 1 if no matching slugs are found.
+ */
+function getNewIndexFromPresets(presets, slugPrefix) {
+ const nameRegex = new RegExp(`^${slugPrefix}([\\d]+)$`);
+ const highestPresetValue = presets.reduce((currentHighest, preset) => {
+ if (typeof preset?.slug === 'string') {
+ const matches = preset?.slug.match(nameRegex);
+ if (matches) {
+ const id = parseInt(matches[1], 10);
+ if (id > currentHighest) {
+ return id;
+ }
+ }
+ }
+ return currentHighest;
+ }, 0);
+ return highestPresetValue + 1;
+}
+function getFontFamilyFromSetting(fontFamilies, setting) {
+ if (!Array.isArray(fontFamilies) || !setting) {
+ return null;
+ }
+ const fontFamilyVariable = setting.replace('var(', '').replace(')', '');
+ const fontFamilySlug = fontFamilyVariable?.split('--').slice(-1)[0];
+ return fontFamilies.find(fontFamily => fontFamily.slug === fontFamilySlug);
+}
+function getFontFamilies(themeJson) {
+ const fontFamilies = themeJson?.settings?.typography?.fontFamilies?.theme; // TODO this could not be under theme.
+ const bodyFontFamilySetting = themeJson?.styles?.typography?.fontFamily;
+ const bodyFontFamily = getFontFamilyFromSetting(fontFamilies, bodyFontFamilySetting);
+ const headingFontFamilySetting = themeJson?.styles?.elements?.heading?.typography?.fontFamily;
+ let headingFontFamily;
+ if (!headingFontFamilySetting) {
+ headingFontFamily = bodyFontFamily;
+ } else {
+ headingFontFamily = getFontFamilyFromSetting(fontFamilies, themeJson?.styles?.elements?.heading?.typography?.fontFamily);
+ }
+ return [bodyFontFamily, headingFontFamily];
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/typography-example.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+const {
+ GlobalStylesContext: typography_example_GlobalStylesContext
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+const {
+ mergeBaseAndUserConfigs: typography_example_mergeBaseAndUserConfigs
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
+function PreviewTypography({
+ fontSize,
+ variation
+}) {
+ const {
+ base
+ } = (0,external_wp_element_namespaceObject.useContext)(typography_example_GlobalStylesContext);
+ let config = base;
+ if (variation) {
+ config = typography_example_mergeBaseAndUserConfigs(base, variation);
+ }
+ const [bodyFontFamilies, headingFontFamilies] = getFontFamilies(config);
+ const bodyPreviewStyle = bodyFontFamilies ? getFamilyPreviewStyle(bodyFontFamilies) : {};
+ const headingPreviewStyle = headingFontFamilies ? getFamilyPreviewStyle(headingFontFamilies) : {};
+ if (fontSize) {
+ bodyPreviewStyle.fontSize = fontSize;
+ headingPreviewStyle.fontSize = fontSize;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ animate: {
+ scale: 1,
+ opacity: 1
+ },
+ initial: {
+ scale: 0.1,
+ opacity: 0
+ },
+ transition: {
+ delay: 0.3,
+ type: 'tween'
+ },
+ style: {
+ textAlign: 'center'
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ style: headingPreviewStyle,
+ children: (0,external_wp_i18n_namespaceObject._x)('A', 'Uppercase letter A')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ style: bodyPreviewStyle,
+ children: (0,external_wp_i18n_namespaceObject._x)('a', 'Lowercase letter A')
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/highlighted-colors.js
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Internal dependencies
+ */
+
+
+function HighlightedColors({
+ normalizedColorSwatchSize,
+ ratio
+}) {
+ const {
+ highlightedColors
+ } = useStylesPreviewColors();
+ const scaledSwatchSize = normalizedColorSwatchSize * ratio;
+ return highlightedColors.map(({
+ slug,
+ color
+ }, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ style: {
+ height: scaledSwatchSize,
+ width: scaledSwatchSize,
+ background: color,
+ borderRadius: scaledSwatchSize / 2
+ },
+ animate: {
+ scale: 1,
+ opacity: 1
+ },
+ initial: {
+ scale: 0.1,
+ opacity: 0
+ },
+ transition: {
+ delay: index === 1 ? 0.2 : 0.1
+ }
+ }, `${slug}-${index}`));
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/preview-iframe.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+const {
+ useGlobalStyle: preview_iframe_useGlobalStyle,
+ useGlobalStylesOutput: preview_iframe_useGlobalStylesOutput
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+const normalizedWidth = 248;
+const normalizedHeight = 152;
+
+// Throttle options for useThrottle. Must be defined outside of the component,
+// so that the object reference is the same on each render.
+const THROTTLE_OPTIONS = {
+ leading: true,
+ trailing: true
+};
+function PreviewIframe({
+ children,
+ label,
+ isFocused,
+ withHoverView
+}) {
+ const [backgroundColor = 'white'] = preview_iframe_useGlobalStyle('color.background');
+ const [gradientValue] = preview_iframe_useGlobalStyle('color.gradient');
+ const [styles] = preview_iframe_useGlobalStylesOutput();
+ const disableMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
+ const [isHovered, setIsHovered] = (0,external_wp_element_namespaceObject.useState)(false);
+ const [containerResizeListener, {
+ width
+ }] = (0,external_wp_compose_namespaceObject.useResizeObserver)();
+ const [throttledWidth, setThrottledWidthState] = (0,external_wp_element_namespaceObject.useState)(width);
+ const [ratioState, setRatioState] = (0,external_wp_element_namespaceObject.useState)();
+ const setThrottledWidth = (0,external_wp_compose_namespaceObject.useThrottle)(setThrottledWidthState, 250, THROTTLE_OPTIONS);
+ // Must use useLayoutEffect to avoid a flash of the iframe at the wrong
+ // size before the width is set.
+ (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
+ if (width) {
+ setThrottledWidth(width);
+ }
+ }, [width, setThrottledWidth]);
+
+ // Must use useLayoutEffect to avoid a flash of the iframe at the wrong
+ // size before the width is set.
+ (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
+ const newRatio = throttledWidth ? throttledWidth / normalizedWidth : 1;
+ const ratioDiff = newRatio - (ratioState || 0);
+
+ // Only update the ratio state if the difference is big enough
+ // or if the ratio state is not yet set. This is to avoid an
+ // endless loop of updates at particular viewport heights when the
+ // presence of a scrollbar causes the width to change slightly.
+ const isRatioDiffBigEnough = Math.abs(ratioDiff) > 0.1;
+ if (isRatioDiffBigEnough || !ratioState) {
+ setRatioState(newRatio);
+ }
+ }, [throttledWidth, ratioState]);
+
+ // Set a fallbackRatio to use before the throttled ratio has been set.
+ const fallbackRatio = width ? width / normalizedWidth : 1;
+ /*
+ * Use the throttled ratio if it has been calculated, otherwise
+ * use the fallback ratio. The throttled ratio is used to avoid
+ * an endless loop of updates at particular viewport heights.
+ * See: https://github.com/WordPress/gutenberg/issues/55112
+ */
+ const ratio = ratioState ? ratioState : fallbackRatio;
+
+ /*
+ * Reset leaked styles from WP common.css and remove main content layout padding and border.
+ * Add pointer cursor to the body to indicate the iframe is interactive,
+ * similar to Typography variation previews.
+ */
+ const editorStyles = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ if (styles) {
+ return [...styles, {
+ css: 'html{overflow:hidden}body{min-width: 0;padding: 0;border: none;cursor: pointer;}',
+ isGlobalStyles: true
+ }];
+ }
+ return styles;
+ }, [styles]);
+ const isReady = !!width;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ style: {
+ position: 'relative'
+ },
+ children: containerResizeListener
+ }), isReady && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.__unstableIframe, {
+ className: "edit-site-global-styles-preview__iframe",
+ style: {
+ height: normalizedHeight * ratio
+ },
+ onMouseEnter: () => setIsHovered(true),
+ onMouseLeave: () => setIsHovered(false),
+ tabIndex: -1,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__unstableEditorStyles, {
+ styles: editorStyles
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ style: {
+ height: normalizedHeight * ratio,
+ width: '100%',
+ background: gradientValue !== null && gradientValue !== void 0 ? gradientValue : backgroundColor,
+ cursor: withHoverView ? 'pointer' : undefined
+ },
+ initial: "start",
+ animate: (isHovered || isFocused) && !disableMotion && label ? 'hover' : 'start',
+ children: [].concat(children) // This makes sure children is always an array.
+ .map((child, key) => child({
+ ratio,
+ key
+ }))
+ })]
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/preview-styles.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+const {
+ useGlobalStyle: preview_styles_useGlobalStyle
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+const firstFrameVariants = {
+ start: {
+ scale: 1,
+ opacity: 1
+ },
+ hover: {
+ scale: 0,
+ opacity: 0
+ }
+};
+const midFrameVariants = {
+ hover: {
+ opacity: 1
+ },
+ start: {
+ opacity: 0.5
+ }
+};
+const secondFrameVariants = {
+ hover: {
+ scale: 1,
+ opacity: 1
+ },
+ start: {
+ scale: 0,
+ opacity: 0
+ }
+};
+const PreviewStyles = ({
+ label,
+ isFocused,
+ withHoverView,
+ variation
+}) => {
+ const [fontWeight] = preview_styles_useGlobalStyle('typography.fontWeight');
+ const [fontFamily = 'serif'] = preview_styles_useGlobalStyle('typography.fontFamily');
+ const [headingFontFamily = fontFamily] = preview_styles_useGlobalStyle('elements.h1.typography.fontFamily');
+ const [headingFontWeight = fontWeight] = preview_styles_useGlobalStyle('elements.h1.typography.fontWeight');
+ const [textColor = 'black'] = preview_styles_useGlobalStyle('color.text');
+ const [headingColor = textColor] = preview_styles_useGlobalStyle('elements.h1.color.text');
+ const {
+ paletteColors
+ } = useStylesPreviewColors();
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(PreviewIframe, {
+ label: label,
+ isFocused: isFocused,
+ withHoverView: withHoverView,
+ children: [({
+ ratio,
+ key
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ variants: firstFrameVariants,
+ style: {
+ height: '100%',
+ overflow: 'hidden'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ spacing: 10 * ratio,
+ justify: "center",
+ style: {
+ height: '100%',
+ overflow: 'hidden'
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreviewTypography, {
+ fontSize: 65 * ratio,
+ variation: variation
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 4 * ratio,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HighlightedColors, {
+ normalizedColorSwatchSize: 32,
+ ratio: ratio
+ })
+ })]
+ })
+ }, key), ({
+ key
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ variants: withHoverView && midFrameVariants,
+ style: {
+ height: '100%',
+ width: '100%',
+ position: 'absolute',
+ top: 0,
+ overflow: 'hidden',
+ filter: 'blur(60px)',
+ opacity: 0.1
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
+ spacing: 0,
+ justify: "flex-start",
+ style: {
+ height: '100%',
+ overflow: 'hidden'
+ },
+ children: paletteColors.slice(0, 4).map(({
+ color
+ }, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ style: {
+ height: '100%',
+ background: color,
+ flexGrow: 1
+ }
+ }, index))
+ })
+ }, key), ({
+ ratio,
+ key
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ variants: secondFrameVariants,
+ style: {
+ height: '100%',
+ width: '100%',
+ overflow: 'hidden',
+ position: 'absolute',
+ top: 0
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 3 * ratio,
+ justify: "center",
+ style: {
+ height: '100%',
+ overflow: 'hidden',
+ padding: 10 * ratio,
+ boxSizing: 'border-box'
+ },
+ children: label && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ style: {
+ fontSize: 40 * ratio,
+ fontFamily: headingFontFamily,
+ color: headingColor,
+ fontWeight: headingFontWeight,
+ lineHeight: '1em',
+ textAlign: 'center'
+ },
+ children: label
+ })
+ })
+ }, key)]
+ });
+};
+/* harmony default export */ const preview_styles = (PreviewStyles);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-root.js
/**
* WordPress dependencies
*/
@@ -25626,9 +12790,12 @@ function RootMenu() {
+
+
+
const {
useGlobalStyle: screen_root_useGlobalStyle
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
function ScreenRoot() {
const [customCSS] = screen_root_useGlobalStyle('css');
const {
@@ -25647,66 +12814,110 @@ function ScreenRoot() {
canEditCSS: !!globalStyles?._links?.['wp:action-edit-css']
};
}, []);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Card, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Card, {
size: "small",
- className: "edit-site-global-styles-screen-root"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.CardBody, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 4
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Card, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.CardMedia, null, (0,external_React_.createElement)(preview, null))), hasVariations && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, null, (0,external_React_.createElement)(NavigationButtonAsItem, {
- path: "/variations",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Browse styles')
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "space-between"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_wp_i18n_namespaceObject.__)('Browse styles')), (0,external_React_.createElement)(IconWithCurrentColor, {
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left : chevron_right
- })))), (0,external_React_.createElement)(root_menu, null))), (0,external_React_.createElement)(external_wp_components_namespaceObject.CardDivider, null), (0,external_React_.createElement)(external_wp_components_namespaceObject.CardBody, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- as: "p",
- paddingTop: 2
- /*
- * 13px matches the text inset of the NavigationButton (12px padding, plus the width of the button's border).
- * This is an ad hoc override for this instance and the Addtional CSS option below. Other options for matching the
- * the nav button inset should be looked at before reusing further.
- */,
- paddingX: "13px",
- marginBottom: 4
- }, (0,external_wp_i18n_namespaceObject.__)('Customize the appearance of specific blocks for the whole site.')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, null, (0,external_React_.createElement)(NavigationButtonAsItem, {
- path: "/blocks",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Blocks styles')
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "space-between"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_wp_i18n_namespaceObject.__)('Blocks')), (0,external_React_.createElement)(IconWithCurrentColor, {
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left : chevron_right
- }))))), canEditCSS && !!customCSS && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.CardDivider, null), (0,external_React_.createElement)(external_wp_components_namespaceObject.CardBody, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- as: "p",
- paddingTop: 2,
- paddingX: "13px",
- marginBottom: 4
- }, (0,external_wp_i18n_namespaceObject.__)('Add your own CSS to customize the appearance and layout of your site.')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, null, (0,external_React_.createElement)(NavigationButtonAsItem, {
- path: "/css",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Additional CSS')
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "space-between"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_wp_i18n_namespaceObject.__)('Additional CSS')), (0,external_React_.createElement)(IconWithCurrentColor, {
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left : chevron_right
- })))))));
+ className: "edit-site-global-styles-screen-root",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CardBody, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 4,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Card, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CardMedia, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(preview_styles, {})
+ })
+ }), hasVariations && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationButtonAsItem, {
+ path: "/variations",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Browse styles'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "space-between",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Browse styles')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(IconWithCurrentColor, {
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left : chevron_right
+ })]
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(root_menu, {})]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CardDivider, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.CardBody, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ as: "p",
+ paddingTop: 2
+ /*
+ * 13px matches the text inset of the NavigationButton (12px padding, plus the width of the button's border).
+ * This is an ad hoc override for this instance and the Addtional CSS option below. Other options for matching the
+ * the nav button inset should be looked at before reusing further.
+ */,
+ paddingX: "13px",
+ marginBottom: 4,
+ children: (0,external_wp_i18n_namespaceObject.__)('Customize the appearance of specific blocks for the whole site.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationButtonAsItem, {
+ path: "/blocks",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Blocks styles'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "space-between",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Blocks')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(IconWithCurrentColor, {
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left : chevron_right
+ })]
+ })
+ })
+ })]
+ }), canEditCSS && !!customCSS && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CardDivider, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.CardBody, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ as: "p",
+ paddingTop: 2,
+ paddingX: "13px",
+ marginBottom: 4,
+ children: (0,external_wp_i18n_namespaceObject.__)('Add your own CSS to customize the appearance and layout of your site.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationButtonAsItem, {
+ path: "/css",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Additional CSS'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "space-between",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Additional CSS')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(IconWithCurrentColor, {
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left : chevron_right
+ })]
+ })
+ })
+ })]
+ })]
+ })]
+ });
}
/* harmony default export */ const screen_root = (ScreenRoot);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/variations-panel.js
-
+;// CONCATENATED MODULE: external ["wp","a11y"]
+const external_wp_a11y_namespaceObject = window["wp"]["a11y"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/variations/variations-panel.js
/**
* WordPress dependencies
*/
+
+
/**
* Internal dependencies
*/
-function getCoreBlockStyles(blockStyles) {
- return blockStyles?.filter(style => style.source === 'block');
+
+const {
+ useGlobalStyle: variations_panel_useGlobalStyle
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+
+// Only core block styles (source === block) or block styles with a matching
+// theme.json style variation will be configurable via Global Styles.
+function getFilteredBlockStyles(blockStyles, variations) {
+ return blockStyles?.filter(style => style.source === 'block' || variations.includes(style.name));
}
function useBlockVariations(name) {
const blockStyles = (0,external_wp_data_namespaceObject.useSelect)(select => {
@@ -25715,73 +12926,84 @@ function useBlockVariations(name) {
} = select(external_wp_blocks_namespaceObject.store);
return getBlockStyles(name);
}, [name]);
- const coreBlockStyles = getCoreBlockStyles(blockStyles);
- return coreBlockStyles;
+ const [variations] = variations_panel_useGlobalStyle('variations', name);
+ const variationNames = Object.keys(variations !== null && variations !== void 0 ? variations : {});
+ return getFilteredBlockStyles(blockStyles, variationNames);
}
function VariationsPanel({
name
}) {
const coreBlockStyles = useBlockVariations(name);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
isBordered: true,
- isSeparated: true
- }, coreBlockStyles.map((style, index) => {
- if (style?.isDefault) {
- return null;
- }
- return (0,external_React_.createElement)(NavigationButtonAsItem, {
- key: index,
- path: '/blocks/' + encodeURIComponent(name) + '/variations/' + encodeURIComponent(style.name),
- "aria-label": style.label
- }, style.label);
- }));
+ isSeparated: true,
+ children: coreBlockStyles.map((style, index) => {
+ if (style?.isDefault) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationButtonAsItem, {
+ path: '/blocks/' + encodeURIComponent(name) + '/variations/' + encodeURIComponent(style.name),
+ "aria-label": style.label,
+ children: style.label
+ }, index);
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/header.js
-
/**
* WordPress dependencies
*/
+
+
function ScreenHeader({
title,
description,
onBack
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 0
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalView, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- marginBottom: 0,
- paddingX: 4,
- paddingY: 3
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- spacing: 2
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorToParentButton, {
- style:
- // TODO: This style override is also used in ToolsPanelHeader.
- // It should be supported out-of-the-box by Button.
- {
- minWidth: 24,
- padding: 0
- },
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_right : chevron_left,
- isSmall: true,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Navigate to the previous view'),
- onClick: onBack
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
- className: "edit-site-global-styles-header",
- level: 2,
- size: 13
- }, title))))), description && (0,external_React_.createElement)("p", {
- className: "edit-site-global-styles-header__description"
- }, description));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 0,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalView, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ marginBottom: 0,
+ paddingX: 4,
+ paddingY: 3,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ spacing: 2,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNavigatorToParentButton, {
+ style:
+ // TODO: This style override is also used in ToolsPanelHeader.
+ // It should be supported out-of-the-box by Button.
+ {
+ minWidth: 24,
+ padding: 0
+ },
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_right : chevron_left,
+ size: "small",
+ label: (0,external_wp_i18n_namespaceObject.__)('Back'),
+ onClick: onBack
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
+ className: "edit-site-global-styles-header",
+ level: 2,
+ size: 13,
+ children: title
+ })
+ })]
+ })
+ })
+ }), description && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-site-global-styles-header__description",
+ children: description
+ })]
+ });
}
/* harmony default export */ const header = (ScreenHeader);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-block-list.js
-
/**
* WordPress dependencies
*/
@@ -25801,6 +13023,9 @@ function ScreenHeader({
+
+
+
const {
useHasDimensionsPanel: screen_block_list_useHasDimensionsPanel,
useHasTypographyPanel: screen_block_list_useHasTypographyPanel,
@@ -25808,7 +13033,7 @@ const {
useGlobalSetting: screen_block_list_useGlobalSetting,
useSettingsForBlockElement: screen_block_list_useSettingsForBlockElement,
useHasColorPanel: screen_block_list_useHasColorPanel
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
function useSortedBlockTypes() {
const blockItems = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blocks_namespaceObject.store).getBlockTypes(), []);
// Ensure core blocks are prioritized in the returned results,
@@ -25856,14 +13081,18 @@ function BlockMenuItem({
const navigationButtonLabel = (0,external_wp_i18n_namespaceObject.sprintf)(
// translators: %s: is the name of a block e.g., 'Image' or 'Table'.
(0,external_wp_i18n_namespaceObject.__)('%s block styles'), block.title);
- return (0,external_React_.createElement)(NavigationButtonAsItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationButtonAsItem, {
path: '/blocks/' + encodeURIComponent(block.name),
- "aria-label": navigationButtonLabel
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "flex-start"
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
- icon: block.icon
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, block.title)));
+ "aria-label": navigationButtonLabel,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ icon: block.icon
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: block.title
+ })]
+ })
+ });
}
function BlockList({
filterValue
@@ -25894,36 +13123,37 @@ function BlockList({
(0,external_wp_i18n_namespaceObject._n)('%d result found.', '%d results found.', count), count);
debouncedSpeak(resultsFoundMessage, count);
}, [filterValue, debouncedSpeak]);
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
ref: blockTypesListRef,
- className: "edit-site-block-types-item-list"
- }, filteredBlockTypes.map(block => (0,external_React_.createElement)(BlockMenuItem, {
- block: block,
- key: 'menu-itemblock-' + block.name
- })));
+ className: "edit-site-block-types-item-list",
+ children: filteredBlockTypes.map(block => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockMenuItem, {
+ block: block
+ }, 'menu-itemblock-' + block.name))
+ });
}
const MemoizedBlockList = (0,external_wp_element_namespaceObject.memo)(BlockList);
function ScreenBlockList() {
const [filterValue, setFilterValue] = (0,external_wp_element_namespaceObject.useState)('');
const deferredFilterValue = (0,external_wp_element_namespaceObject.useDeferredValue)(filterValue);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(header, {
- title: (0,external_wp_i18n_namespaceObject.__)('Blocks'),
- description: (0,external_wp_i18n_namespaceObject.__)('Customize the appearance of specific blocks and for the whole site.')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.SearchControl, {
- __nextHasNoMarginBottom: true,
- className: "edit-site-block-types-search",
- onChange: setFilterValue,
- value: filterValue,
- label: (0,external_wp_i18n_namespaceObject.__)('Search for blocks'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Search')
- }), (0,external_React_.createElement)(MemoizedBlockList, {
- filterValue: deferredFilterValue
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(header, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Blocks'),
+ description: (0,external_wp_i18n_namespaceObject.__)('Customize the appearance of specific blocks and for the whole site.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SearchControl, {
+ __nextHasNoMarginBottom: true,
+ className: "edit-site-block-types-search",
+ onChange: setFilterValue,
+ value: filterValue,
+ label: (0,external_wp_i18n_namespaceObject.__)('Search for blocks'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Search')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MemoizedBlockList, {
+ filterValue: deferredFilterValue
+ })]
+ });
}
/* harmony default export */ const screen_block_list = (ScreenBlockList);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/block-preview-panel.js
-
/**
* WordPress dependencies
*/
@@ -25931,6 +13161,12 @@ function ScreenBlockList() {
+
+/**
+ * Internal dependencies
+ */
+
+
const BlockPreviewPanel = ({
name,
variation = ''
@@ -25947,7 +13183,7 @@ const BlockPreviewPanel = ({
...example,
attributes: {
...example.attributes,
- className: 'is-style-' + variation
+ className: getVariationClassName(variation)
}
};
}
@@ -25958,50 +13194,52 @@ const BlockPreviewPanel = ({
if (!blockExample) {
return null;
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
marginX: 4,
- marginBottom: 4
- }, (0,external_React_.createElement)("div", {
- className: "edit-site-global-styles__block-preview-panel",
- style: {
- maxHeight: previewHeight,
- boxSizing: 'initial'
- }
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockPreview, {
- blocks: blocks,
- viewportWidth: viewportWidth,
- minHeight: previewHeight,
- additionalStyles: [{
- css: `
+ marginBottom: 4,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-global-styles__block-preview-panel",
+ style: {
+ maxHeight: previewHeight,
+ boxSizing: 'initial'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockPreview, {
+ blocks: blocks,
+ viewportWidth: viewportWidth,
+ minHeight: previewHeight,
+ additionalStyles: [{
+ css: `
body{
min-height:${previewHeight}px;
display:flex;align-items:center;justify-content:center;
}
`
- }]
- })));
+ }]
+ })
+ })
+ });
};
/* harmony default export */ const block_preview_panel = (BlockPreviewPanel);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/subtitle.js
-
/**
* WordPress dependencies
*/
+
function Subtitle({
children,
level
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
className: "edit-site-global-styles-subtitle",
- level: level !== null && level !== void 0 ? level : 2
- }, children);
+ level: level !== null && level !== void 0 ? level : 2,
+ children: children
+ });
}
/* harmony default export */ const subtitle = (Subtitle);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-block.js
-
/**
* WordPress dependencies
*/
@@ -26021,6 +13259,9 @@ function Subtitle({
+
+
+
function applyFallbackStyle(border) {
if (!border) {
return border;
@@ -26068,7 +13309,7 @@ const {
FiltersPanel: StylesFiltersPanel,
ImageSettingsPanel,
AdvancedPanel: StylesAdvancedPanel
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
function ScreenBlock({
name,
variation
@@ -26215,63 +13456,71 @@ function ScreenBlock({
}
});
};
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(header, {
- title: variation ? currentBlockStyle.label : blockType.title
- }), (0,external_React_.createElement)(block_preview_panel, {
- name: name,
- variation: variation
- }), hasVariationsPanel && (0,external_React_.createElement)("div", {
- className: "edit-site-global-styles-screen-variations"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 3
- }, (0,external_React_.createElement)(subtitle, null, (0,external_wp_i18n_namespaceObject.__)('Style Variations')), (0,external_React_.createElement)(VariationsPanel, {
- name: name
- }))), hasColorPanel && (0,external_React_.createElement)(StylesColorPanel, {
- inheritedValue: inheritedStyle,
- value: style,
- onChange: setStyle,
- settings: settings
- }), hasTypographyPanel && (0,external_React_.createElement)(StylesTypographyPanel, {
- inheritedValue: inheritedStyle,
- value: style,
- onChange: setStyle,
- settings: settings
- }), hasDimensionsPanel && (0,external_React_.createElement)(StylesDimensionsPanel, {
- inheritedValue: inheritedStyleWithLayout,
- value: styleWithLayout,
- onChange: onChangeDimensions,
- settings: settings,
- includeLayoutControls: true
- }), hasBorderPanel && (0,external_React_.createElement)(StylesBorderPanel, {
- inheritedValue: inheritedStyle,
- value: style,
- onChange: onChangeBorders,
- settings: settings
- }), hasFiltersPanel && (0,external_React_.createElement)(StylesFiltersPanel, {
- inheritedValue: inheritedStyleWithLayout,
- value: styleWithLayout,
- onChange: setStyle,
- settings: settings,
- includeLayoutControls: true
- }), hasImageSettingsPanel && (0,external_React_.createElement)(ImageSettingsPanel, {
- onChange: onChangeLightbox,
- value: userSettings,
- inheritedValue: settings
- }), canEditCSS && (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Advanced'),
- initialOpen: false
- }, (0,external_React_.createElement)("p", null, (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: is the name of a block e.g., 'Image' or 'Table'.
- (0,external_wp_i18n_namespaceObject.__)('Add your own CSS to customize the appearance of the %s block. You do not need to include a CSS selector, just add the property and value.'), blockType?.title)), (0,external_React_.createElement)(StylesAdvancedPanel, {
- value: style,
- onChange: setStyle,
- inheritedValue: inheritedStyle
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(header, {
+ title: variation ? currentBlockStyle?.label : blockType.title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_preview_panel, {
+ name: name,
+ variation: variation
+ }), hasVariationsPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-global-styles-screen-variations",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 3,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(subtitle, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Style Variations')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(VariationsPanel, {
+ name: name
+ })]
+ })
+ }), hasColorPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StylesColorPanel, {
+ inheritedValue: inheritedStyle,
+ value: style,
+ onChange: setStyle,
+ settings: settings
+ }), hasTypographyPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StylesTypographyPanel, {
+ inheritedValue: inheritedStyle,
+ value: style,
+ onChange: setStyle,
+ settings: settings
+ }), hasDimensionsPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StylesDimensionsPanel, {
+ inheritedValue: inheritedStyleWithLayout,
+ value: styleWithLayout,
+ onChange: onChangeDimensions,
+ settings: settings,
+ includeLayoutControls: true
+ }), hasBorderPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StylesBorderPanel, {
+ inheritedValue: inheritedStyle,
+ value: style,
+ onChange: onChangeBorders,
+ settings: settings
+ }), hasFiltersPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StylesFiltersPanel, {
+ inheritedValue: inheritedStyleWithLayout,
+ value: styleWithLayout,
+ onChange: setStyle,
+ settings: settings,
+ includeLayoutControls: true
+ }), hasImageSettingsPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ImageSettingsPanel, {
+ onChange: onChangeLightbox,
+ value: userSettings,
+ inheritedValue: settings
+ }), canEditCSS && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Advanced'),
+ initialOpen: false,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: is the name of a block e.g., 'Image' or 'Table'.
+ (0,external_wp_i18n_namespaceObject.__)('Add your own CSS to customize the appearance of the %s block. You do not need to include a CSS selector, just add the property and value.'), blockType?.title)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StylesAdvancedPanel, {
+ value: style,
+ onChange: setStyle,
+ inheritedValue: inheritedStyle
+ })]
+ })]
+ });
}
/* harmony default export */ const screen_block = (ScreenBlock);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/typogrphy-elements.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/typography-elements.js
/**
* WordPress dependencies
*/
@@ -26285,95 +13534,263 @@ function ScreenBlock({
+
+
const {
- useGlobalStyle: typogrphy_elements_useGlobalStyle
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+ useGlobalStyle: typography_elements_useGlobalStyle
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
function ElementItem({
parentMenu,
element,
label
}) {
+ var _ref;
const prefix = element === 'text' || !element ? '' : `elements.${element}.`;
const extraStyles = element === 'link' ? {
textDecoration: 'underline'
} : {};
- const [fontFamily] = typogrphy_elements_useGlobalStyle(prefix + 'typography.fontFamily');
- const [fontStyle] = typogrphy_elements_useGlobalStyle(prefix + 'typography.fontStyle');
- const [fontWeight] = typogrphy_elements_useGlobalStyle(prefix + 'typography.fontWeight');
- const [letterSpacing] = typogrphy_elements_useGlobalStyle(prefix + 'typography.letterSpacing');
- const [backgroundColor] = typogrphy_elements_useGlobalStyle(prefix + 'color.background');
- const [gradientValue] = typogrphy_elements_useGlobalStyle(prefix + 'color.gradient');
- const [color] = typogrphy_elements_useGlobalStyle(prefix + 'color.text');
+ const [fontFamily] = typography_elements_useGlobalStyle(prefix + 'typography.fontFamily');
+ const [fontStyle] = typography_elements_useGlobalStyle(prefix + 'typography.fontStyle');
+ const [fontWeight] = typography_elements_useGlobalStyle(prefix + 'typography.fontWeight');
+ const [letterSpacing] = typography_elements_useGlobalStyle(prefix + 'typography.letterSpacing');
+ const [backgroundColor] = typography_elements_useGlobalStyle(prefix + 'color.background');
+ const [fallbackBackgroundColor] = typography_elements_useGlobalStyle('color.background');
+ const [gradientValue] = typography_elements_useGlobalStyle(prefix + 'color.gradient');
+ const [color] = typography_elements_useGlobalStyle(prefix + 'color.text');
const navigationButtonLabel = (0,external_wp_i18n_namespaceObject.sprintf)(
// translators: %s: is a subset of Typography, e.g., 'text' or 'links'.
(0,external_wp_i18n_namespaceObject.__)('Typography %s styles'), label);
- return (0,external_React_.createElement)(NavigationButtonAsItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationButtonAsItem, {
path: parentMenu + '/typography/' + element,
- "aria-label": navigationButtonLabel
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "flex-start"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- className: "edit-site-global-styles-screen-typography__indicator",
- style: {
- fontFamily: fontFamily !== null && fontFamily !== void 0 ? fontFamily : 'serif',
- background: gradientValue !== null && gradientValue !== void 0 ? gradientValue : backgroundColor,
- color,
- fontStyle,
- fontWeight,
- letterSpacing,
- ...extraStyles
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Aa')), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, label)));
+ "aria-label": navigationButtonLabel,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ className: "edit-site-global-styles-screen-typography__indicator",
+ style: {
+ fontFamily: fontFamily !== null && fontFamily !== void 0 ? fontFamily : 'serif',
+ background: (_ref = gradientValue !== null && gradientValue !== void 0 ? gradientValue : backgroundColor) !== null && _ref !== void 0 ? _ref : fallbackBackgroundColor,
+ color,
+ fontStyle,
+ fontWeight,
+ letterSpacing,
+ ...extraStyles
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Aa')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: label
+ })]
+ })
+ });
}
function TypographyElements() {
const parentMenu = '';
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 3
- }, (0,external_React_.createElement)(subtitle, {
- level: 3
- }, (0,external_wp_i18n_namespaceObject.__)('Elements')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, {
- isBordered: true,
- isSeparated: true
- }, (0,external_React_.createElement)(ElementItem, {
- parentMenu: parentMenu,
- element: "text",
- label: (0,external_wp_i18n_namespaceObject.__)('Text')
- }), (0,external_React_.createElement)(ElementItem, {
- parentMenu: parentMenu,
- element: "link",
- label: (0,external_wp_i18n_namespaceObject.__)('Links')
- }), (0,external_React_.createElement)(ElementItem, {
- parentMenu: parentMenu,
- element: "heading",
- label: (0,external_wp_i18n_namespaceObject.__)('Headings')
- }), (0,external_React_.createElement)(ElementItem, {
- parentMenu: parentMenu,
- element: "caption",
- label: (0,external_wp_i18n_namespaceObject.__)('Captions')
- }), (0,external_React_.createElement)(ElementItem, {
- parentMenu: parentMenu,
- element: "button",
- label: (0,external_wp_i18n_namespaceObject.__)('Buttons')
- })));
-}
-/* harmony default export */ const typogrphy_elements = (TypographyElements);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 3,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(subtitle, {
+ level: 3,
+ children: (0,external_wp_i18n_namespaceObject.__)('Elements')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ isBordered: true,
+ isSeparated: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ElementItem, {
+ parentMenu: parentMenu,
+ element: "text",
+ label: (0,external_wp_i18n_namespaceObject.__)('Text')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ElementItem, {
+ parentMenu: parentMenu,
+ element: "link",
+ label: (0,external_wp_i18n_namespaceObject.__)('Links')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ElementItem, {
+ parentMenu: parentMenu,
+ element: "heading",
+ label: (0,external_wp_i18n_namespaceObject.__)('Headings')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ElementItem, {
+ parentMenu: parentMenu,
+ element: "caption",
+ label: (0,external_wp_i18n_namespaceObject.__)('Captions')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ElementItem, {
+ parentMenu: parentMenu,
+ element: "button",
+ label: (0,external_wp_i18n_namespaceObject.__)('Buttons')
+ })]
+ })]
+ });
+}
+/* harmony default export */ const typography_elements = (TypographyElements);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/settings.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/variations/variation.js
+/**
+ * External dependencies
+ */
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+const {
+ mergeBaseAndUserConfigs: variation_mergeBaseAndUserConfigs
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
+const {
+ GlobalStylesContext: variation_GlobalStylesContext,
+ areGlobalStyleConfigsEqual
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+function Variation({
+ variation,
+ children,
+ isPill,
+ property
+}) {
+ const [isFocused, setIsFocused] = (0,external_wp_element_namespaceObject.useState)(false);
+ const {
+ base,
+ user,
+ setUserConfig
+ } = (0,external_wp_element_namespaceObject.useContext)(variation_GlobalStylesContext);
+ const context = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ let merged = variation_mergeBaseAndUserConfigs(base, variation);
+ if (property) {
+ merged = filterObjectByProperty(merged, property);
+ }
+ return {
+ user: variation,
+ base,
+ merged,
+ setUserConfig: () => {}
+ };
+ }, [variation, base, property]);
+ const selectVariation = () => setUserConfig(variation);
+ const selectOnEnter = event => {
+ if (event.keyCode === external_wp_keycodes_namespaceObject.ENTER) {
+ event.preventDefault();
+ selectVariation();
+ }
+ };
+ const isActive = (0,external_wp_element_namespaceObject.useMemo)(() => areGlobalStyleConfigsEqual(user, variation), [user, variation]);
+ let label = variation?.title;
+ if (variation?.description) {
+ label = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %1$s: variation title. %2$s variation description. */
+ (0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), variation?.title, variation?.description);
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(variation_GlobalStylesContext.Provider, {
+ value: context,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('edit-site-global-styles-variations_item', {
+ 'is-active': isActive
+ }),
+ role: "button",
+ onClick: selectVariation,
+ onKeyDown: selectOnEnter,
+ tabIndex: "0",
+ "aria-label": label,
+ "aria-current": isActive,
+ onFocus: () => setIsFocused(true),
+ onBlur: () => setIsFocused(false),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('edit-site-global-styles-variations_item-preview', {
+ 'is-pill': isPill
+ }),
+ children: children(isFocused)
+ })
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/variations/variations-typography.js
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+function TypographyVariations({
+ title,
+ gap = 2
+}) {
+ const typographyVariations = useTypographyVariations();
+
+ // Return null if there is only one variation (the default).
+ if (typographyVariations?.length <= 1) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 3,
+ children: [title && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(subtitle, {
+ level: 3,
+ children: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalGrid, {
+ columns: 3,
+ gap: gap,
+ className: "edit-site-global-styles-style-variations-container",
+ children: typographyVariations && typographyVariations.length && typographyVariations.map((variation, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Variation, {
+ variation: variation,
+ property: "typography",
+ children: isFocused => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreviewIframe, {
+ label: variation?.title,
+ isFocused: isFocused,
+ children: ({
+ ratio,
+ key
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 10 * ratio,
+ justify: "center",
+ style: {
+ height: '100%',
+ overflow: 'hidden'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreviewTypography, {
+ variation: variation,
+ fontSize: 85 * ratio
+ })
+ }, key)
+ })
+ }, index))
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/settings.js
/**
* WordPress dependencies
*/
-const settings_settings = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+
+const settings_settings = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"
-}));
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"
+ })]
+});
/* harmony default export */ const library_settings = (settings_settings);
+;// CONCATENATED MODULE: external ["wp","apiFetch"]
+const external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
+var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/font-library-modal/resolvers.js
/**
* WordPress dependencies
@@ -26466,134 +13883,6 @@ const FONT_STYLES = {
italic: (0,external_wp_i18n_namespaceObject._x)('Italic', 'font style')
};
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/font-library-modal/utils/preview-styles.js
-function findNearest(input, numbers) {
- // If the numbers array is empty, return null
- if (numbers.length === 0) {
- return null;
- }
- // Sort the array based on the absolute difference with the input
- numbers.sort((a, b) => Math.abs(input - a) - Math.abs(input - b));
- // Return the first element (which will be the nearest) from the sorted array
- return numbers[0];
-}
-function extractFontWeights(fontFaces) {
- const result = [];
- fontFaces.forEach(face => {
- const weights = String(face.fontWeight).split(' ');
- if (weights.length === 2) {
- const start = parseInt(weights[0]);
- const end = parseInt(weights[1]);
- for (let i = start; i <= end; i += 100) {
- result.push(i);
- }
- } else if (weights.length === 1) {
- result.push(parseInt(weights[0]));
- }
- });
- return result;
-}
-
-/*
- * Format the font family to use in the CSS font-family property of a CSS rule.
- *
- * The input can be a string with the font family name or a string with multiple font family names separated by commas.
- * It follows the recommendations from the CSS Fonts Module Level 4.
- * https://www.w3.org/TR/css-fonts-4/#font-family-prop
- *
- * @param {string} input - The font family.
- * @return {string} The formatted font family.
- *
- * Example:
- * formatFontFamily( "Open Sans, Font+Name, sans-serif" ) => '"Open Sans", "Font+Name", sans-serif'
- * formatFontFamily( "'Open Sans', generic(kai), sans-serif" ) => '"Open Sans", sans-serif'
- * formatFontFamily( "DotGothic16, Slabo 27px, serif" ) => '"DotGothic16","Slabo 27px",serif'
- * formatFontFamily( "Mine's, Moe's Typography" ) => `"mine's","Moe's Typography"`
- */
-function formatFontFamily(input) {
- // Matches strings that are not exclusively alphabetic characters or hyphens, and do not exactly follow the pattern generic(alphabetic characters or hyphens).
- const regex = /^(?!generic\([ a-zA-Z\-]+\)$)(?!^[a-zA-Z\-]+$).+/;
- const output = input.trim();
- const formatItem = item => {
- item = item.trim();
- if (item.match(regex)) {
- // removes leading and trailing quotes.
- item = item.replace(/^["']|["']$/g, '');
- return `"${item}"`;
- }
- return item;
- };
- if (output.includes(',')) {
- return output.split(',').map(formatItem).filter(item => item !== '').join(', ');
- }
- return formatItem(output);
-}
-
-/*
- * Format the font face name to use in the font-family property of a font face.
- *
- * The input can be a string with the font face name or a string with multiple font face names separated by commas.
- * It removes the leading and trailing quotes from the font face name.
- *
- * @param {string} input - The font face name.
- * @return {string} The formatted font face name.
- *
- * Example:
- * formatFontFaceName("Open Sans") => "Open Sans"
- * formatFontFaceName("'Open Sans', sans-serif") => "Open Sans"
- * formatFontFaceName(", 'Open Sans', 'Helvetica Neue', sans-serif") => "Open Sans"
- */
-function formatFontFaceName(input) {
- if (!input) {
- return '';
- }
- let output = input.trim();
- if (output.includes(',')) {
- output = output.split(',')
- // finds the first item that is not an empty string.
- .find(item => item.trim() !== '').trim();
- }
- // removes leading and trailing quotes.
- output = output.replace(/^["']|["']$/g, '');
-
- // Firefox needs the font name to be wrapped in double quotes meanwhile other browsers don't.
- if (window.navigator.userAgent.toLowerCase().includes('firefox')) {
- output = `"${output}"`;
- }
- return output;
-}
-function getFamilyPreviewStyle(family) {
- const style = {
- fontFamily: formatFontFamily(family.fontFamily)
- };
- if (!Array.isArray(family.fontFace)) {
- style.fontWeight = '400';
- style.fontStyle = 'normal';
- return style;
- }
- if (family.fontFace) {
- //get all the font faces with normal style
- const normalFaces = family.fontFace.filter(face => face.fontStyle.toLowerCase() === 'normal');
- if (normalFaces.length > 0) {
- style.fontStyle = 'normal';
- const normalWeights = extractFontWeights(normalFaces);
- const nearestWeight = findNearest(400, normalWeights);
- style.fontWeight = String(nearestWeight) || '400';
- } else {
- style.fontStyle = family.fontFace.length && family.fontFace[0].fontStyle || 'normal';
- style.fontWeight = family.fontFace.length && String(family.fontFace[0].fontWeight) || '400';
- }
- }
- return style;
-}
-function getFacePreviewStyle(face) {
- return {
- fontFamily: formatFontFamily(face.fontFamily),
- fontStyle: face.fontStyle || 'normal',
- fontWeight: face.fontWeight || '400'
- };
-}
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/font-library-modal/utils/index.js
/**
* WordPress dependencies
@@ -26614,6 +13903,9 @@ function getFacePreviewStyle(face) {
const {
File
} = window;
+const {
+ kebabCase
+} = lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
function setUIValuesNeeded(font, extraValues = {}) {
if (!font.name && (font.fontFamily || font.slug)) {
font.name = font.fontFamily || font.slug;
@@ -26759,9 +14051,6 @@ function getDisplaySrcFromFontFace(input) {
function makeFontFamilyFormData(fontFamily) {
const formData = new FormData();
const {
- kebabCase
- } = unlock(external_wp_components_namespaceObject.privateApis);
- const {
fontFace,
category,
...familyWithValidParameters
@@ -26976,7 +14265,6 @@ function toggleFont(font, face, initialfonts) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/font-library-modal/context.js
-
/**
* WordPress dependencies
*/
@@ -26993,7 +14281,8 @@ function toggleFont(font, face, initialfonts) {
const {
useGlobalSetting: context_useGlobalSetting
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+
@@ -27015,7 +14304,6 @@ function FontLibraryProvider({
};
});
const globalStyles = (0,external_wp_coreData_namespaceObject.useEntityRecord)('root', 'globalStyles', globalStylesId);
- const fontFamiliesHasChanges = !!globalStyles?.edits?.settings?.typography?.fontFamilies;
const [isInstalling, setIsInstalling] = (0,external_wp_element_namespaceObject.useState)(false);
const [refreshKey, setRefreshKey] = (0,external_wp_element_namespaceObject.useState)(0);
const [notice, setNotice] = (0,external_wp_element_namespaceObject.useState)(null);
@@ -27024,8 +14312,7 @@ function FontLibraryProvider({
};
const {
records: libraryPosts = [],
- isResolving: isResolvingLibrary,
- hasResolved: hasResolvedLibrary
+ isResolving: isResolvingLibrary
} = (0,external_wp_coreData_namespaceObject.useEntityRecords)('postType', 'wp_font_family', {
refreshKey,
_embed: true
@@ -27040,17 +14327,15 @@ function FontLibraryProvider({
// Global Styles (settings) font families
const [fontFamilies, setFontFamilies] = context_useGlobalSetting('typography.fontFamilies');
- // theme.json file font families
- const [baseFontFamilies] = context_useGlobalSetting('typography.fontFamilies', undefined, 'base');
/*
* Save the font families to the database.
* This function is called when the user activates or deactivates a font family.
* It only updates the global styles post content in the database for new font families.
* This avoids saving other styles/settings changed by the user using other parts of the editor.
- *
+ *
* It uses the font families from the param to avoid using the font families from an outdated state.
- *
+ *
* @param {Array} fonts - The font families that will be saved to the database.
*/
const saveFontFamilies = async fonts => {
@@ -27072,18 +14357,6 @@ function FontLibraryProvider({
const themeFonts = fontFamilies?.theme ? fontFamilies.theme.map(f => setUIValuesNeeded(f, {
source: 'theme'
})).sort((a, b) => a.name.localeCompare(b.name)) : [];
- const themeFontsSlugs = new Set(themeFonts.map(f => f.slug));
-
- /*
- * Base Theme Fonts are the fonts defined in the theme.json *file*.
- *
- * Uses the fonts from global styles + the ones from the theme.json file that hasn't repeated slugs.
- * Avoids incosistencies with the fonts listed in the font library modal as base (unactivated).
- * These inconsistencies can happen when the active theme fonts in global styles aren't defined in theme.json file as when a theme style variation is applied.
- */
- const baseThemeFonts = baseFontFamilies?.theme ? themeFonts.concat(baseFontFamilies.theme.filter(f => !themeFontsSlugs.has(f.slug)).map(f => setUIValuesNeeded(f, {
- source: 'theme'
- })).sort((a, b) => a.name.localeCompare(b.name))) : [];
const customFonts = fontFamilies?.custom ? fontFamilies.custom.map(f => setUIValuesNeeded(f, {
source: 'custom'
})).sort((a, b) => a.name.localeCompare(b.name)) : [];
@@ -27113,9 +14386,6 @@ function FontLibraryProvider({
source: font.source
});
};
- const toggleModal = tabName => {
- setModalTabOpen(tabName || null);
- };
// Demo
const [loadedFontUrls] = (0,external_wp_element_namespaceObject.useState)(new Set());
@@ -27173,20 +14443,20 @@ function FontLibraryProvider({
}
// Install the fonts (upload the font files to the server and create the post in the database).
- let sucessfullyInstalledFontFaces = [];
- let unsucessfullyInstalledFontFaces = [];
+ let successfullyInstalledFontFaces = [];
+ let unsuccessfullyInstalledFontFaces = [];
if (fontFamilyToInstall?.fontFace?.length > 0) {
const response = await batchInstallFontFaces(installedFontFamily.id, makeFontFacesFormData(fontFamilyToInstall));
- sucessfullyInstalledFontFaces = response?.successes;
- unsucessfullyInstalledFontFaces = response?.errors;
+ successfullyInstalledFontFaces = response?.successes;
+ unsuccessfullyInstalledFontFaces = response?.errors;
}
- // Use the sucessfully installed font faces
+ // Use the successfully installed font faces
// As well as any font faces that were already installed (those will be activated)
- if (sucessfullyInstalledFontFaces?.length > 0 || alreadyInstalledFontFaces?.length > 0) {
+ if (successfullyInstalledFontFaces?.length > 0 || alreadyInstalledFontFaces?.length > 0) {
// Use font data from REST API not from client to ensure
// correct font information is used.
- installedFontFamily.fontFace = [...sucessfullyInstalledFontFaces];
+ installedFontFamily.fontFace = [...successfullyInstalledFontFaces];
fontFamiliesToActivate.push(installedFontFamily);
}
@@ -27196,10 +14466,10 @@ function FontLibraryProvider({
}
// If the font family is new and is not a system font, delete it to avoid having font families without font faces.
- if (isANewFontFamily && fontFamilyToInstall?.fontFace?.length > 0 && sucessfullyInstalledFontFaces?.length === 0) {
+ if (isANewFontFamily && fontFamilyToInstall?.fontFace?.length > 0 && successfullyInstalledFontFaces?.length === 0) {
await fetchUninstallFontFamily(installedFontFamily.id);
}
- installationErrors = installationErrors.concat(unsucessfullyInstalledFontFaces);
+ installationErrors = installationErrors.concat(unsuccessfullyInstalledFontFaces);
}
installationErrors = installationErrors.reduce((unique, item) => unique.includes(item.message) ? unique : [...unique, item.message], []);
if (fontFamiliesToActivate.length > 0) {
@@ -27321,11 +14591,15 @@ function FontLibraryProvider({
};
const loadFontFaceAsset = async fontFace => {
// If the font doesn't have a src, don't load it.
- if (!fontFace.src) return;
+ if (!fontFace.src) {
+ return;
+ }
// Get the src of the font.
const src = getDisplaySrcFromFontFace(fontFace.src);
// If the font is already loaded, don't load it again.
- if (!src || loadedFontUrls.has(src)) return;
+ if (!src || loadedFontUrls.has(src)) {
+ return;
+ }
// Load the font in the browser.
loadFontFaceInBrowser(fontFace, src, 'document');
// Add the font to the loaded fonts list.
@@ -27341,7 +14615,9 @@ function FontLibraryProvider({
const getFontCollection = async slug => {
try {
const hasData = !!collections.find(collection => collection.slug === slug)?.font_families;
- if (hasData) return;
+ if (hasData) {
+ return;
+ }
const response = await fetchFontCollection(slug);
const updatedCollections = collections.map(collection => collection.slug === slug ? {
...collection,
@@ -27357,14 +14633,11 @@ function FontLibraryProvider({
(0,external_wp_element_namespaceObject.useEffect)(() => {
getFontCollections();
}, []);
- return (0,external_React_.createElement)(FontLibraryContext.Provider, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FontLibraryContext.Provider, {
value: {
libraryFontSelected,
handleSetLibraryFontSelected,
fontFamilies,
- themeFonts,
- baseThemeFonts,
- customFonts,
baseCustomFonts,
isFontActivated,
getFontFacesActivated,
@@ -27374,24 +14647,22 @@ function FontLibraryProvider({
toggleActivateFont,
getAvailableFontsOutline,
modalTabOpen,
- toggleModal,
+ setModalTabOpen,
refreshLibrary,
notice,
setNotice,
saveFontFamilies,
- fontFamiliesHasChanges,
isResolvingLibrary,
- hasResolvedLibrary,
isInstalling,
collections,
getFontCollection
- }
- }, children);
+ },
+ children: children
+ });
}
/* harmony default export */ const context = (FontLibraryProvider);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/font-library-modal/font-demo.js
-
/**
* WordPress dependencies
*/
@@ -27403,6 +14674,7 @@ function FontLibraryProvider({
*/
+
function getPreviewUrl(fontFace) {
if (fontFace.preview) {
return fontFace.preview;
@@ -27472,22 +14744,23 @@ function FontDemo({
};
loadAsset();
}, [fontFace, isIntersecting, loadFontFaceAsset, isPreviewImage]);
- return (0,external_React_.createElement)("div", {
- ref: ref
- }, isPreviewImage ? (0,external_React_.createElement)("img", {
- src: previewUrl,
- loading: "lazy",
- alt: text,
- className: "font-library-modal__font-variant_demo-image"
- }) : (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- style: textDemoStyle,
- className: "font-library-modal__font-variant_demo-text"
- }, text));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ref: ref,
+ children: isPreviewImage ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: previewUrl,
+ loading: "lazy",
+ alt: text,
+ className: "font-library-modal__font-variant_demo-image"
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ style: textDemoStyle,
+ className: "font-library-modal__font-variant_demo-text",
+ children: text
+ })
+ });
}
/* harmony default export */ const font_demo = (FontDemo);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/font-library-modal/font-card.js
-
/**
* WordPress dependencies
*/
@@ -27499,6 +14772,8 @@ function FontDemo({
*/
+
+
function FontCard({
font,
onClick,
@@ -27510,7 +14785,7 @@ function FontCard({
cursor: !!onClick ? 'pointer' : 'default'
};
const navigator = (0,external_wp_components_namespaceObject.__experimentalUseNavigator)();
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
onClick: () => {
onClick();
if (navigatorPath) {
@@ -27518,25 +14793,32 @@ function FontCard({
}
},
style: style,
- className: "font-library-modal__font-card"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- justify: "space-between",
- wrap: false
- }, (0,external_React_.createElement)(font_demo, {
- font: font
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- justify: "flex-end"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- className: "font-library-modal__font-card__count"
- }, variantsText || (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: Number of font variants. */
- (0,external_wp_i18n_namespaceObject._n)('%d variant', '%d variants', variantsCount), variantsCount))), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- icon: chevron_right
- })))));
+ className: "font-library-modal__font-card",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ justify: "space-between",
+ wrap: false,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(font_demo, {
+ font: font
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ justify: "flex-end",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ className: "font-library-modal__font-card__count",
+ children: variantsText || (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: Number of font variants. */
+ (0,external_wp_i18n_namespaceObject._n)('%d variant', '%d variants', variantsCount), variantsCount)
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ icon: chevron_right
+ })
+ })]
+ })]
+ })
+ });
}
/* harmony default export */ const font_card = (FontCard);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/font-library-modal/library-font-variant.js
-
/**
* WordPress dependencies
*/
@@ -27550,6 +14832,11 @@ function FontCard({
+
+
+const {
+ kebabCase: library_font_variant_kebabCase
+} = lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
function LibraryFontVariant({
face,
font
@@ -27567,28 +14854,28 @@ function LibraryFontVariant({
toggleActivateFont(font);
};
const displayName = font.name + ' ' + getFontFaceVariantName(face);
- const {
- kebabCase
- } = unlock(external_wp_components_namespaceObject.privateApis);
- const checkboxId = kebabCase(`${font.slug}-${getFontFaceVariantName(face)}`);
- return (0,external_React_.createElement)("div", {
- className: "font-library-modal__font-card"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- justify: "flex-start",
- align: "center",
- gap: "1rem"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- checked: isInstalled,
- onChange: handleToggleActivation,
- __nextHasNoMarginBottom: true,
- id: checkboxId
- }), (0,external_React_.createElement)("label", {
- htmlFor: checkboxId
- }, (0,external_React_.createElement)(font_demo, {
- font: face,
- text: displayName,
- onClick: handleToggleActivation
- }))));
+ const checkboxId = library_font_variant_kebabCase(`${font.slug}-${getFontFaceVariantName(face)}`);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "font-library-modal__font-card",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ justify: "flex-start",
+ align: "center",
+ gap: "1rem",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
+ checked: isInstalled,
+ onChange: handleToggleActivation,
+ __nextHasNoMarginBottom: true,
+ id: checkboxId
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("label", {
+ htmlFor: checkboxId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(font_demo, {
+ font: face,
+ text: displayName,
+ onClick: handleToggleActivation
+ })
+ })]
+ })
+ });
}
/* harmony default export */ const library_font_variant = (LibraryFontVariant);
@@ -27610,8 +14897,12 @@ function getNumericFontWeight(value) {
function sortFontFaces(faces) {
return faces.sort((a, b) => {
// Ensure 'normal' fontStyle is always first
- if (a.fontStyle === 'normal' && b.fontStyle !== 'normal') return -1;
- if (b.fontStyle === 'normal' && a.fontStyle !== 'normal') return 1;
+ if (a.fontStyle === 'normal' && b.fontStyle !== 'normal') {
+ return -1;
+ }
+ if (b.fontStyle === 'normal' && a.fontStyle !== 'normal') {
+ return 1;
+ }
// If both fontStyles are the same, sort by fontWeight
if (a.fontStyle === b.fontStyle) {
@@ -27624,7 +14915,6 @@ function sortFontFaces(faces) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/font-library-modal/installed-fonts.js
-
/**
* WordPress dependencies
*/
@@ -27635,6 +14925,7 @@ function sortFontFaces(faces) {
+
/**
* Internal dependencies
*/
@@ -27643,14 +14934,17 @@ function sortFontFaces(faces) {
+
+
+
+
const {
- ProgressBar
-} = unlock(external_wp_components_namespaceObject.privateApis);
+ useGlobalSetting: installed_fonts_useGlobalSetting
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
function InstalledFonts() {
const {
baseCustomFonts,
libraryFontSelected,
- baseThemeFonts,
handleSetLibraryFontSelected,
refreshLibrary,
uninstallFontFamily,
@@ -27658,12 +14952,27 @@ function InstalledFonts() {
isInstalling,
saveFontFamilies,
getFontFacesActivated,
- fontFamiliesHasChanges,
notice,
setNotice,
fontFamilies
} = (0,external_wp_element_namespaceObject.useContext)(FontLibraryContext);
const [isConfirmDeleteOpen, setIsConfirmDeleteOpen] = (0,external_wp_element_namespaceObject.useState)(false);
+ const [baseFontFamilies] = installed_fonts_useGlobalSetting('typography.fontFamilies', undefined, 'base');
+ const globalStylesId = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ __experimentalGetCurrentGlobalStylesId
+ } = select(external_wp_coreData_namespaceObject.store);
+ return __experimentalGetCurrentGlobalStylesId();
+ });
+ const globalStyles = (0,external_wp_coreData_namespaceObject.useEntityRecord)('root', 'globalStyles', globalStylesId);
+ const fontFamiliesHasChanges = !!globalStyles?.edits?.settings?.typography?.fontFamilies;
+ const themeFonts = fontFamilies?.theme ? fontFamilies.theme.map(f => setUIValuesNeeded(f, {
+ source: 'theme'
+ })).sort((a, b) => a.name.localeCompare(b.name)) : [];
+ const themeFontsSlugs = new Set(themeFonts.map(f => f.slug));
+ const baseThemeFonts = baseFontFamilies?.theme ? themeFonts.concat(baseFontFamilies.theme.filter(f => !themeFontsSlugs.has(f.slug)).map(f => setUIValuesNeeded(f, {
+ source: 'theme'
+ })).sort((a, b) => a.name.localeCompare(b.name))) : [];
const customFontFamilyId = libraryFontSelected?.source === 'custom' && libraryFontSelected?.id;
const canUserDelete = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
@@ -27698,103 +15007,132 @@ function InstalledFonts() {
handleSetLibraryFontSelected(libraryFontSelected);
refreshLibrary();
}, []);
- return (0,external_React_.createElement)("div", {
- className: "font-library-modal__tabpanel-layout"
- }, isResolvingLibrary && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- align: "center"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, null), (0,external_React_.createElement)(external_wp_components_namespaceObject.Spinner, null), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, null)), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorProvider, {
- initialPath: libraryFontSelected ? '/fontFamily' : '/'
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
- path: "/"
- }, notice && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 1
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Notice, {
- status: notice.type,
- onRemove: () => setNotice(null)
- }, notice.message), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 1
- })), baseCustomFonts.length > 0 && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- className: "font-library-modal__subtitle"
- }, (0,external_wp_i18n_namespaceObject.__)('Installed Fonts')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 2
- }), baseCustomFonts.map(font => (0,external_React_.createElement)(font_card, {
- font: font,
- key: font.slug,
- navigatorPath: '/fontFamily',
- variantsText: getFontCardVariantsText(font),
- onClick: () => {
- handleSetLibraryFontSelected(font);
- }
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 8
- })), baseThemeFonts.length > 0 && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- className: "font-library-modal__subtitle"
- }, (0,external_wp_i18n_namespaceObject.__)('Theme Fonts')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 2
- }), baseThemeFonts.map(font => (0,external_React_.createElement)(font_card, {
- font: font,
- key: font.slug,
- navigatorPath: '/fontFamily',
- variantsText: getFontCardVariantsText(font),
- onClick: () => {
- handleSetLibraryFontSelected(font);
- }
- })))), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
- path: "/fontFamily"
- }, (0,external_React_.createElement)(ConfirmDeleteDialog, {
- font: libraryFontSelected,
- isOpen: isConfirmDeleteOpen,
- setIsOpen: setIsConfirmDeleteOpen,
- setNotice: setNotice,
- uninstallFontFamily: uninstallFontFamily,
- handleSetLibraryFontSelected: handleSetLibraryFontSelected
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- justify: "flex-start"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorToParentButton, {
- icon: chevron_left,
- isSmall: true,
- onClick: () => {
- handleSetLibraryFontSelected(null);
- },
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Navigate to the previous view')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
- level: 2,
- size: 13,
- className: "edit-site-global-styles-header"
- }, libraryFontSelected?.name)), notice && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 1
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Notice, {
- status: notice.type,
- onRemove: () => setNotice(null)
- }, notice.message), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 1
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 4
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, null, (0,external_wp_i18n_namespaceObject.__)('Choose font variants. Keep in mind that too many variants could make your site slower.')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 4
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 0
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 8
- }), getFontFacesToDisplay(libraryFontSelected).map((face, i) => (0,external_React_.createElement)(library_font_variant, {
- font: libraryFontSelected,
- face: face,
- key: `face${i}`
- }))))), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "flex-end",
- className: "font-library-modal__tabpanel-layout__footer"
- }, isInstalling && (0,external_React_.createElement)(ProgressBar, null), shouldDisplayDeleteButton && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- isDestructive: true,
- variant: "tertiary",
- onClick: handleUninstallClick
- }, (0,external_wp_i18n_namespaceObject.__)('Delete')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: () => {
- saveFontFamilies(fontFamilies);
- },
- disabled: !fontFamiliesHasChanges,
- __experimentalIsFocusable: true
- }, (0,external_wp_i18n_namespaceObject.__)('Update'))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "font-library-modal__tabpanel-layout",
+ children: [isResolvingLibrary && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "font-library-modal__loading",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ProgressBar, {})
+ }), !isResolvingLibrary && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalNavigatorProvider, {
+ initialPath: libraryFontSelected ? '/fontFamily' : '/',
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
+ path: "/",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "8",
+ children: [notice && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
+ status: notice.type,
+ onRemove: () => setNotice(null),
+ children: notice.message
+ }), baseCustomFonts.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ className: "font-library-modal__fonts-title",
+ children: (0,external_wp_i18n_namespaceObject.__)('Installed Fonts')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ role: "list",
+ className: "font-library-modal__fonts-list",
+ children: baseCustomFonts.map(font => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ className: "font-library-modal__fonts-list-item",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(font_card, {
+ font: font,
+ navigatorPath: "/fontFamily",
+ variantsText: getFontCardVariantsText(font),
+ onClick: () => {
+ handleSetLibraryFontSelected(font);
+ }
+ })
+ }, font.slug))
+ })]
+ }), baseThemeFonts.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ className: "font-library-modal__fonts-title",
+ children: (0,external_wp_i18n_namespaceObject.__)('Theme Fonts')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ role: "list",
+ className: "font-library-modal__fonts-list",
+ children: baseThemeFonts.map(font => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ className: "font-library-modal__fonts-list-item",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(font_card, {
+ font: font,
+ navigatorPath: "/fontFamily",
+ variantsText: getFontCardVariantsText(font),
+ onClick: () => {
+ handleSetLibraryFontSelected(font);
+ }
+ })
+ }, font.slug))
+ })]
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
+ path: "/fontFamily",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ConfirmDeleteDialog, {
+ font: libraryFontSelected,
+ isOpen: isConfirmDeleteOpen,
+ setIsOpen: setIsConfirmDeleteOpen,
+ setNotice: setNotice,
+ uninstallFontFamily: uninstallFontFamily,
+ handleSetLibraryFontSelected: handleSetLibraryFontSelected
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ justify: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNavigatorToParentButton, {
+ icon: chevron_left,
+ size: "small",
+ onClick: () => {
+ handleSetLibraryFontSelected(null);
+ },
+ label: (0,external_wp_i18n_namespaceObject.__)('Back')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
+ level: 2,
+ size: 13,
+ className: "edit-site-global-styles-header",
+ children: libraryFontSelected?.name
+ })]
+ }), notice && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ margin: 1
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
+ status: notice.type,
+ onRemove: () => setNotice(null),
+ children: notice.message
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ margin: 1
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ margin: 4
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Choose font variants. Keep in mind that too many variants could make your site slower.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ margin: 4
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 0,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ margin: 8
+ }), getFontFacesToDisplay(libraryFontSelected).map((face, i) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(library_font_variant, {
+ font: libraryFontSelected,
+ face: face
+ }, `face${i}`))]
+ })]
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "flex-end",
+ className: "font-library-modal__tabpanel-layout__footer",
+ children: [isInstalling && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ProgressBar, {}), shouldDisplayDeleteButton && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ isDestructive: true,
+ variant: "tertiary",
+ onClick: handleUninstallClick,
+ children: (0,external_wp_i18n_namespaceObject.__)('Delete')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ onClick: () => {
+ saveFontFamilies(fontFamilies);
+ },
+ disabled: !fontFamiliesHasChanges,
+ __experimentalIsFocusable: true,
+ children: (0,external_wp_i18n_namespaceObject.__)('Update')
+ })]
+ })]
+ })]
+ });
}
function ConfirmDeleteDialog({
font,
@@ -27826,14 +15164,16 @@ function ConfirmDeleteDialog({
const handleCancelUninstall = () => {
setIsOpen(false);
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
isOpen: isOpen,
cancelButtonText: (0,external_wp_i18n_namespaceObject.__)('Cancel'),
confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Delete'),
onCancel: handleCancelUninstall,
- onConfirm: handleConfirmUninstall
- }, font && (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Name of the font. */
- (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to delete "%s" font and all its variants and assets?'), font.name));
+ onConfirm: handleConfirmUninstall,
+ size: "medium",
+ children: font && (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Name of the font. */
+ (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to delete "%s" font and all its variants and assets?'), font.name)
+ });
}
/* harmony default export */ const installed_fonts = (InstalledFonts);
@@ -27886,41 +15226,51 @@ function isFontFontFaceInOutline(slug, face, outline) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js
-
/**
* WordPress dependencies
*/
+
+
function GoogleFontsConfirmDialog() {
const handleConfirm = () => {
// eslint-disable-next-line no-undef
window.localStorage.setItem('wp-font-library-google-fonts-permission', 'true');
window.dispatchEvent(new Event('storage'));
};
- return (0,external_React_.createElement)("div", {
- className: "font-library__google-fonts-confirm"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Card, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.CardBody, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- as: "h3"
- }, (0,external_wp_i18n_namespaceObject.__)('Connect to Google Fonts')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 6
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- as: "p"
- }, (0,external_wp_i18n_namespaceObject.__)('To install fonts from Google you must give permission to connect directly to Google servers. The fonts you install will be downloaded from Google and stored on your site. Your site will then use these locally-hosted fonts.')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 3
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- as: "p"
- }, (0,external_wp_i18n_namespaceObject.__)('You can alternatively upload files directly on the Upload tab.')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 6
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: handleConfirm
- }, (0,external_wp_i18n_namespaceObject.__)('Allow access to Google Fonts')))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "font-library__google-fonts-confirm",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Card, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.CardBody, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
+ level: 2,
+ children: (0,external_wp_i18n_namespaceObject.__)('Connect to Google Fonts')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ margin: 6
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ as: "p",
+ children: (0,external_wp_i18n_namespaceObject.__)('To install fonts from Google you must give permission to connect directly to Google servers. The fonts you install will be downloaded from Google and stored on your site. Your site will then use these locally-hosted fonts.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ margin: 3
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ as: "p",
+ children: (0,external_wp_i18n_namespaceObject.__)('You can alternatively upload files directly on the Upload tab.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ margin: 6
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "primary",
+ onClick: handleConfirm,
+ children: (0,external_wp_i18n_namespaceObject.__)('Allow access to Google Fonts')
+ })]
+ })
+ })
+ });
}
/* harmony default export */ const google_fonts_confirm_dialog = (GoogleFontsConfirmDialog);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/font-library-modal/collection-font-variant.js
-
/**
* WordPress dependencies
*/
@@ -27932,6 +15282,11 @@ function GoogleFontsConfirmDialog() {
+
+
+const {
+ kebabCase: collection_font_variant_kebabCase
+} = lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
function CollectionFontVariant({
face,
font,
@@ -27946,33 +15301,32 @@ function CollectionFontVariant({
handleToggleVariant(font);
};
const displayName = font.name + ' ' + getFontFaceVariantName(face);
- const {
- kebabCase
- } = unlock(external_wp_components_namespaceObject.privateApis);
- const checkboxId = kebabCase(`${font.slug}-${getFontFaceVariantName(face)}`);
- return (0,external_React_.createElement)("div", {
- className: "font-library-modal__font-card"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- justify: "flex-start",
- align: "center",
- gap: "1rem"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- checked: selected,
- onChange: handleToggleActivation,
- __nextHasNoMarginBottom: true,
- id: checkboxId
- }), (0,external_React_.createElement)("label", {
- htmlFor: checkboxId
- }, (0,external_React_.createElement)(font_demo, {
- font: face,
- text: displayName,
- onClick: handleToggleActivation
- }))));
+ const checkboxId = collection_font_variant_kebabCase(`${font.slug}-${getFontFaceVariantName(face)}`);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "font-library-modal__font-card",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ justify: "flex-start",
+ align: "center",
+ gap: "1rem",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
+ checked: selected,
+ onChange: handleToggleActivation,
+ __nextHasNoMarginBottom: true,
+ id: checkboxId
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("label", {
+ htmlFor: checkboxId,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(font_demo, {
+ font: face,
+ text: displayName,
+ onClick: handleToggleActivation
+ })
+ })]
+ })
+ });
}
/* harmony default export */ const collection_font_variant = (CollectionFontVariant);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/font-library-modal/font-collection.js
-
/**
* WordPress dependencies
*/
@@ -27994,6 +15348,9 @@ function CollectionFontVariant({
+
+
+
const DEFAULT_CATEGORY = {
slug: 'all',
name: (0,external_wp_i18n_namespaceObject._x)('All', 'font categories')
@@ -28065,6 +15422,7 @@ function FontCollection({
const collectionCategories = (_selectedCollection$c = selectedCollection?.categories) !== null && _selectedCollection$c !== void 0 ? _selectedCollection$c : [];
const categories = [DEFAULT_CATEGORY, ...collectionCategories];
const fonts = (0,external_wp_element_namespaceObject.useMemo)(() => filterFonts(collectionFonts, filters), [collectionFonts, filters]);
+ const isLoading = !selectedCollection?.font_families && !notice;
// NOTE: The height of the font library modal unavailable to use for rendering font family items is roughly 417px
// The height of each font family item is 61px.
@@ -28093,13 +15451,6 @@ function FontCollection({
setFilters({});
setPage(1);
};
- const resetSearch = () => {
- setFilters({
- ...filters,
- search: ''
- });
- setPage(1);
- };
const handleToggleVariant = (font, face) => {
const newFontsToInstall = toggleFont(font, face, fontsToInstall);
setFontsToInstall(newFontsToInstall);
@@ -28156,13 +15507,13 @@ function FontCollection({
return sortFontFaces(fontFamily.fontFace);
};
if (renderConfirmDialog) {
- return (0,external_React_.createElement)(google_fonts_confirm_dialog, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(google_fonts_confirm_dialog, {});
}
const ActionsComponent = () => {
if (slug !== 'google-fonts' || renderConfirmDialog || selectedFont) {
return null;
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
icon: more_vertical,
label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
popoverProps: {
@@ -28174,148 +15525,198 @@ function FontCollection({
}]
});
};
- return (0,external_React_.createElement)("div", {
- className: "font-library-modal__tabpanel-layout"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorProvider, {
- initialPath: "/",
- className: "font-library-modal__tabpanel-layout"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
- path: "/"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "space-between"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
- level: 2,
- size: 13
- }, selectedCollection.name), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, null, selectedCollection.description)), (0,external_React_.createElement)(ActionsComponent, null)), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 4
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalInputControl, {
- value: filters.search,
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Font name…'),
- label: (0,external_wp_i18n_namespaceObject.__)('Search'),
- onChange: debouncedUpdateSearchInput,
- prefix: (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- icon: library_search
- }),
- suffix: filters?.search ? (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- icon: close_small,
- onClick: resetSearch
- }) : null
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.SelectControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Category'),
- value: filters.category,
- onChange: handleCategoryFilter
- }, categories && categories.map(category => (0,external_React_.createElement)("option", {
- value: category.slug,
- key: category.slug
- }, category.name))))), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 4
- }), !selectedCollection?.font_families && !notice && (0,external_React_.createElement)(external_wp_components_namespaceObject.Spinner, null), !!selectedCollection?.font_families?.length && !fonts.length && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, null, (0,external_wp_i18n_namespaceObject.__)('No fonts found. Try with a different search term')), (0,external_React_.createElement)("div", {
- className: "font-library-modal__fonts-grid__main"
- }, items.map(font => (0,external_React_.createElement)(font_card, {
- key: font.font_family_settings.slug,
- font: font.font_family_settings,
- navigatorPath: '/fontFamily',
- onClick: () => {
- setSelectedFont(font.font_family_settings);
- }
- })))), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
- path: "/fontFamily"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- justify: "flex-start"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorToParentButton, {
- icon: chevron_left,
- isSmall: true,
- onClick: () => {
- setSelectedFont(null);
- setNotice(null);
- },
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Navigate to the previous view')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
- level: 2,
- size: 13,
- className: "edit-site-global-styles-header"
- }, selectedFont?.name)), notice && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 1
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Notice, {
- status: notice.type,
- onRemove: () => setNotice(null)
- }, notice.message), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 1
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 4
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, null, " ", (0,external_wp_i18n_namespaceObject.__)('Select font variants to install.'), " "), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 4
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 0
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 8
- }), getSortedFontFaces(selectedFont).map((face, i) => (0,external_React_.createElement)(collection_font_variant, {
- font: selectedFont,
- face: face,
- key: `face${i}`,
- handleToggleVariant: handleToggleVariant,
- selected: isFontFontFaceInOutline(selectedFont.slug, selectedFont.fontFace ? face : null,
- // If the font has no fontFace, we want to check if the font is in the outline
- fontToInstallOutline)
- }))), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 16
- }))), selectedFont && (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- justify: "flex-end",
- className: "font-library-modal__tabpanel-layout__footer"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: handleInstall,
- isBusy: isInstalling,
- disabled: fontsToInstall.length === 0 || isInstalling,
- __experimentalIsFocusable: true
- }, (0,external_wp_i18n_namespaceObject.__)('Install'))), !selectedFont && (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- justify: "center",
- className: "font-library-modal__tabpanel-layout__footer"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- label: (0,external_wp_i18n_namespaceObject.__)('First page'),
- size: "compact",
- onClick: () => setPage(1),
- disabled: page === 1,
- __experimentalIsFocusable: true
- }, (0,external_React_.createElement)("span", null, "\xAB")), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- label: (0,external_wp_i18n_namespaceObject.__)('Previous page'),
- size: "compact",
- onClick: () => setPage(page - 1),
- disabled: page === 1,
- __experimentalIsFocusable: true
- }, (0,external_React_.createElement)("span", null, "\u2039")), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "flex-start",
- expanded: false,
- spacing: 2
- }, (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Total number of pages.
- (0,external_wp_i18n_namespaceObject._x)('Page <CurrentPageControl /> of %s', 'paging'), totalPages), {
- CurrentPageControl: (0,external_React_.createElement)(external_wp_components_namespaceObject.SelectControl, {
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Current page'),
- value: page,
- options: [...Array(totalPages)].map((e, i) => {
- return {
- label: i + 1,
- value: i + 1
- };
- }),
- onChange: newPage => setPage(parseInt(newPage)),
- size: 'compact',
- __nextHasNoMarginBottom: true
- })
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- label: (0,external_wp_i18n_namespaceObject.__)('Next page'),
- size: "compact",
- onClick: () => setPage(page + 1),
- disabled: page === totalPages,
- __experimentalIsFocusable: true
- }, (0,external_React_.createElement)("span", null, "\u203A")), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- label: (0,external_wp_i18n_namespaceObject.__)('Last page'),
- size: "compact",
- onClick: () => setPage(totalPages),
- disabled: page === totalPages,
- __experimentalIsFocusable: true
- }, (0,external_React_.createElement)("span", null, "\xBB"))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "font-library-modal__tabpanel-layout",
+ children: [isLoading && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "font-library-modal__loading",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ProgressBar, {})
+ }), !isLoading && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalNavigatorProvider, {
+ initialPath: "/",
+ className: "font-library-modal__tabpanel-layout",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
+ path: "/",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "space-between",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
+ level: 2,
+ size: 13,
+ children: selectedCollection.name
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ children: selectedCollection.description
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionsComponent, {})]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ margin: 4
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SearchControl, {
+ className: "font-library-modal__search",
+ value: filters.search,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Font name…'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Search'),
+ onChange: debouncedUpdateSearchInput,
+ __nextHasNoMarginBottom: true,
+ hideLabelFromVision: false
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Category'),
+ value: filters.category,
+ onChange: handleCategoryFilter,
+ children: categories && categories.map(category => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("option", {
+ value: category.slug,
+ children: category.name
+ }, category.slug))
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ margin: 4
+ }), !!selectedCollection?.font_families?.length && !fonts.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ children: (0,external_wp_i18n_namespaceObject.__)('No fonts found. Try with a different search term')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "font-library-modal__fonts-grid__main",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ role: "list",
+ className: "font-library-modal__fonts-list",
+ children: items.map(font => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ className: "font-library-modal__fonts-list-item",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(font_card, {
+ font: font.font_family_settings,
+ navigatorPath: "/fontFamily",
+ onClick: () => {
+ setSelectedFont(font.font_family_settings);
+ }
+ })
+ }, font.font_family_settings.slug))
+ }), ' ']
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
+ path: "/fontFamily",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ justify: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNavigatorToParentButton, {
+ icon: chevron_left,
+ size: "small",
+ onClick: () => {
+ setSelectedFont(null);
+ setNotice(null);
+ },
+ label: (0,external_wp_i18n_namespaceObject.__)('Back')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
+ level: 2,
+ size: 13,
+ className: "edit-site-global-styles-header",
+ children: selectedFont?.name
+ })]
+ }), notice && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ margin: 1
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
+ status: notice.type,
+ onRemove: () => setNotice(null),
+ children: notice.message
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ margin: 1
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ margin: 4
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Select font variants to install.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ margin: 4
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 0,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ margin: 8
+ }), getSortedFontFaces(selectedFont).map((face, i) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(collection_font_variant, {
+ font: selectedFont,
+ face: face,
+ handleToggleVariant: handleToggleVariant,
+ selected: isFontFontFaceInOutline(selectedFont.slug, selectedFont.fontFace ? face : null,
+ // If the font has no fontFace, we want to check if the font is in the outline
+ fontToInstallOutline)
+ }, `face${i}`))]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ margin: 16
+ })]
+ })]
+ }), selectedFont && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Flex, {
+ justify: "flex-end",
+ className: "font-library-modal__tabpanel-layout__footer",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ onClick: handleInstall,
+ isBusy: isInstalling,
+ disabled: fontsToInstall.length === 0 || isInstalling,
+ __experimentalIsFocusable: true,
+ children: (0,external_wp_i18n_namespaceObject.__)('Install')
+ })
+ }), !selectedFont && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ justify: "center",
+ className: "font-library-modal__tabpanel-layout__footer",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ label: (0,external_wp_i18n_namespaceObject.__)('First page'),
+ size: "compact",
+ onClick: () => setPage(1),
+ disabled: page === 1,
+ __experimentalIsFocusable: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: "\xAB"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Previous page'),
+ size: "compact",
+ onClick: () => setPage(page - 1),
+ disabled: page === 1,
+ __experimentalIsFocusable: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: "\u2039"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "flex-start",
+ expanded: false,
+ spacing: 2,
+ children: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Total number of pages.
+ (0,external_wp_i18n_namespaceObject._x)('Page <CurrentPageControl /> of %s', 'paging'), totalPages), {
+ CurrentPageControl: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Current page'),
+ value: page,
+ options: [...Array(totalPages)].map((e, i) => {
+ return {
+ label: i + 1,
+ value: i + 1
+ };
+ }),
+ onChange: newPage => setPage(parseInt(newPage)),
+ size: "compact",
+ __nextHasNoMarginBottom: true
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Next page'),
+ size: "compact",
+ onClick: () => setPage(page + 1),
+ disabled: page === totalPages,
+ __experimentalIsFocusable: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: "\u203A"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Last page'),
+ size: "compact",
+ onClick: () => setPage(totalPages),
+ disabled: page === totalPages,
+ __experimentalIsFocusable: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: "\xBB"
+ })
+ })]
+ })]
+ })]
+ });
}
/* harmony default export */ const font_collection = (FontCollection);
@@ -29968,7 +17369,7 @@ class OS2 extends SimpleTable {
}
}
var OS2$1 = Object.freeze( { __proto__: null, OS2: OS2 } );
-class lib_font_browser_post extends SimpleTable {
+class post extends SimpleTable {
constructor( dict, dataview ) {
const { p: p } = super( dict, dataview );
this.version = p.legacyFixed;
@@ -30290,7 +17691,7 @@ const macStrings = [
`ccaron`,
`dcroat`,
];
-var post$1 = Object.freeze( { __proto__: null, post: lib_font_browser_post } );
+var post$1 = Object.freeze( { __proto__: null, post: post } );
class BASE extends SimpleTable {
constructor( dict, dataview ) {
const { p: p } = super( dict, dataview );
@@ -32170,7 +19571,7 @@ var vmtx$1 = Object.freeze( { __proto__: null, vmtx: vmtx } );
const {
kebabCase: make_families_from_faces_kebabCase
-} = unlock(external_wp_components_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
function makeFamiliesFromFaces(fontFaces) {
const fontFamiliesObject = fontFaces.reduce((acc, item) => {
if (!acc[item.fontFamily]) {
@@ -32188,7 +19589,6 @@ function makeFamiliesFromFaces(fontFaces) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/font-library-modal/upload-fonts.js
-
/**
* WordPress dependencies
*/
@@ -32205,9 +19605,7 @@ function makeFamiliesFromFaces(fontFaces) {
-const {
- ProgressBar: upload_fonts_ProgressBar
-} = unlock(external_wp_components_namespaceObject.privateApis);
+
function UploadFonts() {
const {
installFonts,
@@ -32359,40 +19757,49 @@ function UploadFonts() {
}
setIsUploading(false);
};
- return (0,external_React_.createElement)("div", {
- className: "font-library-modal__tabpanel-layout"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.DropZone, {
- onFilesDrop: handleDropZone
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- className: "font-library-modal__local-fonts"
- }, notice && (0,external_React_.createElement)(external_wp_components_namespaceObject.Notice, {
- status: notice.type,
- __unstableHTML: true,
- onRemove: () => setNotice(null)
- }, notice.message, notice.errors && (0,external_React_.createElement)("ul", null, notice.errors.map((error, index) => (0,external_React_.createElement)("li", {
- key: index
- }, error)))), isUploading && (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)("div", {
- className: "font-library-modal__upload-area"
- }, (0,external_React_.createElement)(upload_fonts_ProgressBar, null))), !isUploading && (0,external_React_.createElement)(external_wp_components_namespaceObject.FormFileUpload, {
- accept: ALLOWED_FILE_EXTENSIONS.map(ext => `.${ext}`).join(','),
- multiple: true,
- onChange: onFilesUpload,
- render: ({
- openFileDialog
- }) => (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "font-library-modal__upload-area",
- onClick: openFileDialog
- }, (0,external_wp_i18n_namespaceObject.__)('Upload font'))
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 2
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- className: "font-library-modal__upload-area__text"
- }, (0,external_wp_i18n_namespaceObject.__)('Uploaded fonts appear in your library and can be used in your theme. Supported formats: .ttf, .otf, .woff, and .woff2.'))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "font-library-modal__tabpanel-layout",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropZone, {
+ onFilesDrop: handleDropZone
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ className: "font-library-modal__local-fonts",
+ children: [notice && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Notice, {
+ status: notice.type,
+ __unstableHTML: true,
+ onRemove: () => setNotice(null),
+ children: [notice.message, notice.errors && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ children: notice.errors.map((error, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ children: error
+ }, index))
+ })]
+ }), isUploading && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "font-library-modal__upload-area",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ProgressBar, {})
+ })
+ }), !isUploading && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FormFileUpload, {
+ accept: ALLOWED_FILE_EXTENSIONS.map(ext => `.${ext}`).join(','),
+ multiple: true,
+ onChange: onFilesUpload,
+ render: ({
+ openFileDialog
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "font-library-modal__upload-area",
+ onClick: openFileDialog,
+ children: (0,external_wp_i18n_namespaceObject.__)('Upload font')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ margin: 2
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ className: "font-library-modal__upload-area__text",
+ children: (0,external_wp_i18n_namespaceObject.__)('Uploaded fonts appear in your library and can be used in your theme. Supported formats: .ttf, .otf, .woff, and .woff2.')
+ })]
+ })]
+ });
}
/* harmony default export */ const upload_fonts = (UploadFonts);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/font-library-modal/index.js
-
/**
* WordPress dependencies
*/
@@ -32410,9 +19817,11 @@ function UploadFonts() {
+
+
const {
- Tabs: font_library_modal_Tabs
-} = unlock(external_wp_components_namespaceObject.privateApis);
+ Tabs
+} = lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
const DEFAULT_TAB = {
id: 'installed-fonts',
title: (0,external_wp_i18n_namespaceObject._x)('Library', 'Font library')
@@ -32430,7 +19839,7 @@ const tabsFromCollections = collections => collections.map(({
}));
function FontLibraryModal({
onRequestClose,
- initialTabId = 'installed-fonts'
+ defaultTabId = 'installed-fonts'
}) {
const {
collections,
@@ -32452,49 +19861,53 @@ function FontLibraryModal({
const onSelect = () => {
setNotice(null);
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
title: (0,external_wp_i18n_namespaceObject.__)('Fonts'),
onRequestClose: onRequestClose,
isFullScreen: true,
- className: "font-library-modal"
- }, (0,external_React_.createElement)("div", {
- className: "font-library-modal__tabs"
- }, (0,external_React_.createElement)(font_library_modal_Tabs, {
- initialTabId: initialTabId,
- onSelect: onSelect
- }, (0,external_React_.createElement)(font_library_modal_Tabs.TabList, null, tabs.map(({
- id,
- title
- }) => (0,external_React_.createElement)(font_library_modal_Tabs.Tab, {
- key: id,
- tabId: id
- }, title))), tabs.map(({
- id
- }) => {
- let contents;
- switch (id) {
- case 'upload-fonts':
- contents = (0,external_React_.createElement)(upload_fonts, null);
- break;
- case 'installed-fonts':
- contents = (0,external_React_.createElement)(installed_fonts, null);
- break;
- default:
- contents = (0,external_React_.createElement)(font_collection, {
- slug: id
- });
- }
- return (0,external_React_.createElement)(font_library_modal_Tabs.TabPanel, {
- key: id,
- tabId: id,
- focusable: false
- }, contents);
- }))));
+ className: "font-library-modal",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "font-library-modal__tabs",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tabs, {
+ defaultTabId: defaultTabId,
+ onSelect: onSelect,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.TabList, {
+ children: tabs.map(({
+ id,
+ title
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.Tab, {
+ tabId: id,
+ children: title
+ }, id))
+ }), tabs.map(({
+ id
+ }) => {
+ let contents;
+ switch (id) {
+ case 'upload-fonts':
+ contents = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(upload_fonts, {});
+ break;
+ case 'installed-fonts':
+ contents = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(installed_fonts, {});
+ break;
+ default:
+ contents = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(font_collection, {
+ slug: id
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.TabPanel, {
+ tabId: id,
+ focusable: false,
+ children: contents
+ }, id);
+ })]
+ })
+ })
+ });
}
/* harmony default export */ const font_library_modal = (FontLibraryModal);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/font-family-item.js
-
/**
* WordPress dependencies
*/
@@ -32507,34 +19920,39 @@ function FontLibraryModal({
*/
+
+
function FontFamilyItem({
font
}) {
const {
handleSetLibraryFontSelected,
- toggleModal
+ setModalTabOpen
} = (0,external_wp_element_namespaceObject.useContext)(FontLibraryContext);
const variantsCount = font?.fontFace?.length || 1;
const handleClick = () => {
handleSetLibraryFontSelected(font);
- toggleModal('installed-fonts');
+ setModalTabOpen('installed-fonts');
};
const previewStyle = getFamilyPreviewStyle(font);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItem, {
- onClick: handleClick
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "space-between"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- style: previewStyle
- }, font.name), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- className: "edit-site-global-styles-screen-typography__font-variants-count"
- }, (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: Number of font variants. */
- (0,external_wp_i18n_namespaceObject._n)('%d variant', '%d variants', variantsCount), variantsCount))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItem, {
+ onClick: handleClick,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "space-between",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ style: previewStyle,
+ children: font.name
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ className: "edit-site-global-styles-screen-typography__font-variants-count",
+ children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: Number of font variants. */
+ (0,external_wp_i18n_namespaceObject._n)('%d variant', '%d variants', variantsCount), variantsCount)
+ })]
+ })
+ });
}
/* harmony default export */ const font_family_item = (FontFamilyItem);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/font-families.js
-
/**
* WordPress dependencies
*/
@@ -32543,6 +19961,7 @@ function FontFamilyItem({
+
/**
* Internal dependencies
*/
@@ -32550,55 +19969,72 @@ function FontFamilyItem({
+
+
+
+
+
+const {
+ useGlobalSetting: font_families_useGlobalSetting
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
function FontFamilies() {
const {
modalTabOpen,
- toggleModal,
- themeFonts,
- customFonts
+ setModalTabOpen
} = (0,external_wp_element_namespaceObject.useContext)(FontLibraryContext);
+ const [fontFamilies] = font_families_useGlobalSetting('typography.fontFamilies');
+ const themeFonts = fontFamilies?.theme ? fontFamilies.theme.map(f => setUIValuesNeeded(f, {
+ source: 'theme'
+ })).sort((a, b) => a.name.localeCompare(b.name)) : [];
+ const customFonts = fontFamilies?.custom ? fontFamilies.custom.map(f => setUIValuesNeeded(f, {
+ source: 'custom'
+ })).sort((a, b) => a.name.localeCompare(b.name)) : [];
const hasFonts = 0 < customFonts.length || 0 < themeFonts.length;
- return (0,external_React_.createElement)(external_React_.Fragment, null, !!modalTabOpen && (0,external_React_.createElement)(font_library_modal, {
- onRequestClose: () => toggleModal(),
- initialTabId: modalTabOpen
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 3
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "space-between"
- }, (0,external_React_.createElement)(subtitle, {
- level: 3
- }, (0,external_wp_i18n_namespaceObject.__)('Fonts')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "flex-end"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Tooltip, {
- text: (0,external_wp_i18n_namespaceObject.__)('Manage fonts')
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- onClick: () => toggleModal('installed-fonts'),
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Manage fonts'),
- icon: library_settings,
- size: 'small'
- })))), hasFonts ? (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, {
- isBordered: true,
- isSeparated: true
- }, customFonts.map(font => (0,external_React_.createElement)(font_family_item, {
- key: font.slug,
- font: font
- })), themeFonts.map(font => (0,external_React_.createElement)(font_family_item, {
- key: font.slug,
- font: font
- }))) : (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('No fonts installed.'), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "edit-site-global-styles-font-families__add-fonts",
- variant: "secondary",
- onClick: () => toggleModal('upload-fonts')
- }, (0,external_wp_i18n_namespaceObject.__)('Add fonts')))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [!!modalTabOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(font_library_modal, {
+ onRequestClose: () => setModalTabOpen(null),
+ defaultTabId: modalTabOpen
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 2,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "space-between",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(subtitle, {
+ level: 3,
+ children: (0,external_wp_i18n_namespaceObject.__)('Fonts')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ onClick: () => setModalTabOpen('installed-fonts'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Manage fonts'),
+ icon: library_settings,
+ size: "small"
+ })]
+ }), hasFonts ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ isBordered: true,
+ isSeparated: true,
+ children: [customFonts.map(font => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(font_family_item, {
+ font: font
+ }, font.slug)), themeFonts.map(font => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(font_family_item, {
+ font: font
+ }, font.slug))]
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [(0,external_wp_i18n_namespaceObject.__)('No fonts installed.'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "edit-site-global-styles-font-families__add-fonts",
+ variant: "secondary",
+ onClick: () => setModalTabOpen('upload-fonts'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Add fonts')
+ })]
+ })]
+ })]
+ });
}
/* harmony default export */ const font_families = (({
...props
-}) => (0,external_React_.createElement)(context, null, (0,external_React_.createElement)(FontFamilies, {
- ...props
-})));
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(context, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FontFamilies, {
+ ...props
+ })
+}));
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-typography.js
-
/**
* WordPress dependencies
*/
@@ -32613,21 +20049,30 @@ function FontFamilies() {
+
+
+
+
function ScreenTypography() {
const fontLibraryEnabled = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_editor_namespaceObject.store).getEditorSettings().fontLibraryEnabled, []);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(header, {
- title: (0,external_wp_i18n_namespaceObject.__)('Typography'),
- description: (0,external_wp_i18n_namespaceObject.__)('Manage the typography settings for different elements.')
- }), (0,external_React_.createElement)("div", {
- className: "edit-site-global-styles-screen-typography"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 6
- }, fontLibraryEnabled && (0,external_React_.createElement)(font_families, null), (0,external_React_.createElement)(typogrphy_elements, null))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(header, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Typography'),
+ description: (0,external_wp_i18n_namespaceObject.__)('Typography styles and the application of those styles on site elements.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-global-styles-screen",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 7,
+ children: [!window.__experimentalDisableFontLibrary && fontLibraryEnabled && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(font_families, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(typography_elements, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TypographyVariations, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Presets')
+ })]
+ })
+ })]
+ });
}
/* harmony default export */ const screen_typography = (ScreenTypography);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/typography-panel.js
-
/**
* WordPress dependencies
*/
@@ -32637,12 +20082,13 @@ function ScreenTypography() {
* Internal dependencies
*/
+
const {
useGlobalStyle: typography_panel_useGlobalStyle,
useGlobalSetting: typography_panel_useGlobalSetting,
useSettingsForBlockElement: typography_panel_useSettingsForBlockElement,
TypographyPanel: typography_panel_StylesTypographyPanel
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
function TypographyPanel({
element,
headingLevel
@@ -32663,7 +20109,7 @@ function TypographyPanel({
const [rawSettings] = typography_panel_useGlobalSetting('');
const usedElement = element === 'heading' ? headingLevel : element;
const settings = typography_panel_useSettingsForBlockElement(rawSettings, undefined, usedElement);
- return (0,external_React_.createElement)(typography_panel_StylesTypographyPanel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(typography_panel_StylesTypographyPanel, {
inheritedValue: inheritedStyle,
value: style,
onChange: setStyle,
@@ -32672,7 +20118,6 @@ function TypographyPanel({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/typography-preview.js
-
/**
* WordPress dependencies
*/
@@ -32682,14 +20127,16 @@ function TypographyPanel({
* Internal dependencies
*/
+
const {
useGlobalStyle: typography_preview_useGlobalStyle
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
function TypographyPreview({
name,
element,
headingLevel
}) {
+ var _ref;
let prefix = '';
if (element === 'heading') {
prefix = `elements.${headingLevel}.`;
@@ -32699,6 +20146,7 @@ function TypographyPreview({
const [fontFamily] = typography_preview_useGlobalStyle(prefix + 'typography.fontFamily', name);
const [gradientValue] = typography_preview_useGlobalStyle(prefix + 'color.gradient', name);
const [backgroundColor] = typography_preview_useGlobalStyle(prefix + 'color.background', name);
+ const [fallbackBackgroundColor] = typography_preview_useGlobalStyle('color.background');
const [color] = typography_preview_useGlobalStyle(prefix + 'color.text', name);
const [fontSize] = typography_preview_useGlobalStyle(prefix + 'typography.fontSize', name);
const [fontStyle] = typography_preview_useGlobalStyle(prefix + 'typography.fontStyle', name);
@@ -32707,23 +20155,23 @@ function TypographyPreview({
const extraStyles = element === 'link' ? {
textDecoration: 'underline'
} : {};
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
className: "edit-site-typography-preview",
style: {
fontFamily: fontFamily !== null && fontFamily !== void 0 ? fontFamily : 'serif',
- background: gradientValue !== null && gradientValue !== void 0 ? gradientValue : backgroundColor,
+ background: (_ref = gradientValue !== null && gradientValue !== void 0 ? gradientValue : backgroundColor) !== null && _ref !== void 0 ? _ref : fallbackBackgroundColor,
color,
fontSize,
fontStyle,
fontWeight,
letterSpacing,
...extraStyles
- }
- }, "Aa");
+ },
+ children: "Aa"
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-typography-element.js
-
/**
* WordPress dependencies
*/
@@ -32737,6 +20185,9 @@ function TypographyPreview({
+
+
+
const screen_typography_element_elements = {
text: {
description: (0,external_wp_i18n_namespaceObject.__)('Manage the fonts used on the site.'),
@@ -32763,69 +20214,106 @@ function ScreenTypographyElement({
element
}) {
const [headingLevel, setHeadingLevel] = (0,external_wp_element_namespaceObject.useState)('heading');
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(header, {
- title: screen_typography_element_elements[element].title,
- description: screen_typography_element_elements[element].description
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- marginX: 4
- }, (0,external_React_.createElement)(TypographyPreview, {
- element: element,
- headingLevel: headingLevel
- })), element === 'heading' && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- marginX: 4,
- marginBottom: "1em"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Select heading level'),
- hideLabelFromVision: true,
- value: headingLevel,
- onChange: setHeadingLevel,
- isBlock: true,
- size: "__unstable-large",
- __nextHasNoMarginBottom: true
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "heading",
- label: (0,external_wp_i18n_namespaceObject._x)('All', 'heading levels')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "h1",
- label: (0,external_wp_i18n_namespaceObject.__)('H1')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "h2",
- label: (0,external_wp_i18n_namespaceObject.__)('H2')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "h3",
- label: (0,external_wp_i18n_namespaceObject.__)('H3')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "h4",
- label: (0,external_wp_i18n_namespaceObject.__)('H4')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "h5",
- label: (0,external_wp_i18n_namespaceObject.__)('H5')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
- value: "h6",
- label: (0,external_wp_i18n_namespaceObject.__)('H6')
- }))), (0,external_React_.createElement)(TypographyPanel, {
- element: element,
- headingLevel: headingLevel
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(header, {
+ title: screen_typography_element_elements[element].title,
+ description: screen_typography_element_elements[element].description
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ marginX: 4,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TypographyPreview, {
+ element: element,
+ headingLevel: headingLevel
+ })
+ }), element === 'heading' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ marginX: 4,
+ marginBottom: "1em",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Select heading level'),
+ hideLabelFromVision: true,
+ value: headingLevel,
+ onChange: setHeadingLevel,
+ isBlock: true,
+ size: "__unstable-large",
+ __nextHasNoMarginBottom: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "heading",
+ label: (0,external_wp_i18n_namespaceObject._x)('All', 'heading levels')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "h1",
+ label: (0,external_wp_i18n_namespaceObject.__)('H1')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "h2",
+ label: (0,external_wp_i18n_namespaceObject.__)('H2')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "h3",
+ label: (0,external_wp_i18n_namespaceObject.__)('H3')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "h4",
+ label: (0,external_wp_i18n_namespaceObject.__)('H4')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "h5",
+ label: (0,external_wp_i18n_namespaceObject.__)('H5')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "h6",
+ label: (0,external_wp_i18n_namespaceObject.__)('H6')
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TypographyPanel, {
+ element: element,
+ headingLevel: headingLevel
+ })]
+ });
}
/* harmony default export */ const screen_typography_element = (ScreenTypographyElement);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/shuffle.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */
/**
+ * 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
+ * @param {import('react').ForwardedRef<HTMLElement>} ref The forwarded ref to the SVG element.
+ *
+ * @return {JSX.Element} Icon component
+ */
+function Icon({
+ icon,
+ size = 24,
+ ...props
+}, ref) {
+ return (0,external_wp_element_namespaceObject.cloneElement)(icon, {
+ width: size,
+ height: size,
+ ...props,
+ ref
+ });
+}
+/* harmony default export */ const build_module_icon = ((0,external_wp_element_namespaceObject.forwardRef)(Icon));
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/shuffle.js
+/**
* WordPress dependencies
*/
-const shuffle = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const shuffle = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/SVG"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z"
-}));
+ xmlns: "http://www.w3.org/2000/SVG",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z"
+ })
+});
/* harmony default export */ const library_shuffle = (shuffle);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/color-indicator-wrapper.js
-
/**
* External dependencies
*/
@@ -32835,19 +20323,19 @@ const shuffle = (0,external_React_.createElement)(external_wp_primitives_namespa
* WordPress dependencies
*/
+
function ColorIndicatorWrapper({
className,
...props
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- className: classnames_default()('edit-site-global-styles__color-indicator-wrapper', className),
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Flex, {
+ className: dist_clsx('edit-site-global-styles__color-indicator-wrapper', className),
...props
});
}
/* harmony default export */ const color_indicator_wrapper = (ColorIndicatorWrapper);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/palette.js
-
/**
* WordPress dependencies
*/
@@ -32865,9 +20353,11 @@ function ColorIndicatorWrapper({
+
+
const {
useGlobalSetting: palette_useGlobalSetting
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
const EMPTY_COLORS = [];
function Palette({
name
@@ -32879,40 +20369,48 @@ function Palette({
const [randomizeThemeColors] = useColorRandomizer();
const colors = (0,external_wp_element_namespaceObject.useMemo)(() => [...(customColors || EMPTY_COLORS), ...(themeColors || EMPTY_COLORS), ...(defaultColors && defaultPaletteEnabled ? defaultColors : EMPTY_COLORS)], [customColors, themeColors, defaultColors, defaultPaletteEnabled]);
const screenPath = !name ? '/colors/palette' : '/blocks/' + encodeURIComponent(name) + '/colors/palette';
- const paletteButtonText = colors.length > 0 ? (0,external_wp_i18n_namespaceObject.sprintf)(
- // Translators: %d: Number of palette colors.
- (0,external_wp_i18n_namespaceObject._n)('%d color', '%d colors', colors.length), colors.length) : (0,external_wp_i18n_namespaceObject.__)('Add custom colors');
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 3
- }, (0,external_React_.createElement)(subtitle, {
- level: 3
- }, (0,external_wp_i18n_namespaceObject.__)('Palette')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, {
- isBordered: true,
- isSeparated: true
- }, (0,external_React_.createElement)(NavigationButtonAsItem, {
- path: screenPath,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Color palettes')
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- direction: colors.length === 0 ? 'row-reverse' : 'row'
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalZStack, {
- isLayered: false,
- offset: -8
- }, colors.slice(0, 5).map(({
- color
- }, index) => (0,external_React_.createElement)(color_indicator_wrapper, {
- key: `${color}-${index}`
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.ColorIndicator, {
- colorValue: color
- })))), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, paletteButtonText)))), window.__experimentalEnableColorRandomizer && themeColors?.length > 0 && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "secondary",
- icon: library_shuffle,
- onClick: randomizeThemeColors
- }, (0,external_wp_i18n_namespaceObject.__)('Randomize colors')));
+ const paletteButtonText = colors.length > 0 ? (0,external_wp_i18n_namespaceObject.__)('Edit palette') : (0,external_wp_i18n_namespaceObject.__)('Add colors');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 3,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(subtitle, {
+ level: 3,
+ children: (0,external_wp_i18n_namespaceObject.__)('Palette')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ isBordered: true,
+ isSeparated: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationButtonAsItem, {
+ path: screenPath,
+ "aria-label": paletteButtonText,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ direction: "row",
+ children: [colors.length <= 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Add colors')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalZStack, {
+ isLayered: false,
+ offset: -8,
+ children: colors.slice(0, 5).map(({
+ color
+ }, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_indicator_wrapper, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ColorIndicator, {
+ colorValue: color
+ })
+ }, `${color}-${index}`))
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left : chevron_right
+ })]
+ })
+ })
+ }), window.__experimentalEnableColorRandomizer && themeColors?.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "secondary",
+ icon: library_shuffle,
+ onClick: randomizeThemeColors,
+ children: (0,external_wp_i18n_namespaceObject.__)('Randomize colors')
+ })]
+ });
}
/* harmony default export */ const palette = (Palette);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-colors.js
-
/**
* WordPress dependencies
*/
@@ -32926,12 +20424,15 @@ function Palette({
+
+
+
const {
useGlobalStyle: screen_colors_useGlobalStyle,
useGlobalSetting: screen_colors_useGlobalSetting,
useSettingsForBlockElement: screen_colors_useSettingsForBlockElement,
ColorPanel: screen_colors_StylesColorPanel
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
function ScreenColors() {
const [style] = screen_colors_useGlobalStyle('', undefined, 'user', {
shouldDecodeEncode: false
@@ -32941,24 +20442,144 @@ function ScreenColors() {
});
const [rawSettings] = screen_colors_useGlobalSetting('');
const settings = screen_colors_useSettingsForBlockElement(rawSettings);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(header, {
- title: (0,external_wp_i18n_namespaceObject.__)('Colors'),
- description: (0,external_wp_i18n_namespaceObject.__)('Manage palettes and the default color of different global elements on the site.')
- }), (0,external_React_.createElement)("div", {
- className: "edit-site-global-styles-screen-colors"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 10
- }, (0,external_React_.createElement)(palette, null), (0,external_React_.createElement)(screen_colors_StylesColorPanel, {
- inheritedValue: inheritedStyle,
- value: style,
- onChange: setStyle,
- settings: settings
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(header, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Colors'),
+ description: (0,external_wp_i18n_namespaceObject.__)('Palette colors and the application of those colors on site elements.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-global-styles-screen",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 7,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(palette, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_colors_StylesColorPanel, {
+ inheritedValue: inheritedStyle,
+ value: style,
+ onChange: setStyle,
+ settings: settings
+ })]
+ })
+ })]
+ });
}
/* harmony default export */ const screen_colors = (ScreenColors);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/color-palette-panel.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/preset-colors.js
+/**
+ * Internal dependencies
+ */
+
+
+function PresetColors() {
+ const {
+ paletteColors
+ } = useStylesPreviewColors();
+ return paletteColors.slice(0, 5).map(({
+ slug,
+ color
+ }, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ style: {
+ flexGrow: 1,
+ height: '100%',
+ background: color
+ }
+ }, `${slug}-${index}`));
+}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/preview-colors.js
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+const preview_colors_firstFrameVariants = {
+ start: {
+ scale: 1,
+ opacity: 1
+ },
+ hover: {
+ scale: 0,
+ opacity: 0
+ }
+};
+const StylesPreviewColors = ({
+ label,
+ isFocused,
+ withHoverView
+}) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreviewIframe, {
+ label: label,
+ isFocused: isFocused,
+ withHoverView: withHoverView,
+ children: ({
+ key
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ variants: preview_colors_firstFrameVariants,
+ style: {
+ height: '100%',
+ overflow: 'hidden'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
+ spacing: 0,
+ justify: "center",
+ style: {
+ height: '100%',
+ overflow: 'hidden'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PresetColors, {})
+ })
+ }, key)
+ });
+};
+/* harmony default export */ const preview_colors = (StylesPreviewColors);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/variations/variations-color.js
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+function ColorVariations({
+ title,
+ gap = 2
+}) {
+ const colorVariations = useColorVariations();
+
+ // Return null if there is only one variation (the default).
+ if (colorVariations?.length <= 1) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 3,
+ children: [title && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(subtitle, {
+ level: 3,
+ children: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalGrid, {
+ spacing: gap,
+ children: colorVariations.map((variation, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Variation, {
+ variation: variation,
+ isPill: true,
+ property: "color",
+ children: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(preview_colors, {})
+ }, index))
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/color-palette-panel.js
/**
* WordPress dependencies
*/
@@ -32971,9 +20592,12 @@ function ScreenColors() {
* Internal dependencies
*/
+
+
+
const {
useGlobalSetting: color_palette_panel_useGlobalSetting
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
const mobilePopoverProps = {
placement: 'bottom-start',
offset: 8
@@ -32989,38 +20613,39 @@ function ColorPalettePanel({
const [defaultPaletteEnabled] = color_palette_panel_useGlobalSetting('color.defaultPalette', name);
const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('small', '<');
const popoverProps = isMobileViewport ? mobilePopoverProps : undefined;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
className: "edit-site-global-styles-color-palette-panel",
- spacing: 10
- }, !!themeColors && !!themeColors.length && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalPaletteEdit, {
- canReset: themeColors !== baseThemeColors,
- canOnlyChangeValues: true,
- colors: themeColors,
- onChange: setThemeColors,
- paletteLabel: (0,external_wp_i18n_namespaceObject.__)('Theme'),
- paletteLabelHeadingLevel: 3,
- popoverProps: popoverProps
- }), !!defaultColors && !!defaultColors.length && !!defaultPaletteEnabled && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalPaletteEdit, {
- canReset: defaultColors !== baseDefaultColors,
- canOnlyChangeValues: true,
- colors: defaultColors,
- onChange: setDefaultColors,
- paletteLabel: (0,external_wp_i18n_namespaceObject.__)('Default'),
- paletteLabelHeadingLevel: 3,
- popoverProps: popoverProps
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalPaletteEdit, {
- colors: customColors,
- onChange: setCustomColors,
- paletteLabel: (0,external_wp_i18n_namespaceObject.__)('Custom'),
- paletteLabelHeadingLevel: 3,
- emptyMessage: (0,external_wp_i18n_namespaceObject.__)('Custom colors are empty! Add some colors to create your own color palette.'),
- slugPrefix: "custom-",
- popoverProps: popoverProps
- }));
+ spacing: 8,
+ children: [!!themeColors && !!themeColors.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalPaletteEdit, {
+ canReset: themeColors !== baseThemeColors,
+ canOnlyChangeValues: true,
+ colors: themeColors,
+ onChange: setThemeColors,
+ paletteLabel: (0,external_wp_i18n_namespaceObject.__)('Theme'),
+ paletteLabelHeadingLevel: 3,
+ popoverProps: popoverProps
+ }), !!defaultColors && !!defaultColors.length && !!defaultPaletteEnabled && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalPaletteEdit, {
+ canReset: defaultColors !== baseDefaultColors,
+ canOnlyChangeValues: true,
+ colors: defaultColors,
+ onChange: setDefaultColors,
+ paletteLabel: (0,external_wp_i18n_namespaceObject.__)('Default'),
+ paletteLabelHeadingLevel: 3,
+ popoverProps: popoverProps
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalPaletteEdit, {
+ colors: customColors,
+ onChange: setCustomColors,
+ paletteLabel: (0,external_wp_i18n_namespaceObject.__)('Custom'),
+ paletteLabelHeadingLevel: 3,
+ slugPrefix: "custom-",
+ popoverProps: popoverProps
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorVariations, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Palettes')
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/gradients-palette-panel.js
-
/**
* WordPress dependencies
*/
@@ -33034,14 +20659,16 @@ function ColorPalettePanel({
*/
+
+
const {
useGlobalSetting: gradients_palette_panel_useGlobalSetting
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
const gradients_palette_panel_mobilePopoverProps = {
placement: 'bottom-start',
offset: 8
};
-const gradients_palette_panel_noop = () => {};
+const noop = () => {};
function GradientPalettePanel({
name
}) {
@@ -33058,48 +20685,50 @@ function GradientPalettePanel({
const duotonePalette = [...(customDuotone || []), ...(themeDuotone || []), ...(defaultDuotone && defaultDuotoneEnabled ? defaultDuotone : [])];
const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('small', '<');
const popoverProps = isMobileViewport ? gradients_palette_panel_mobilePopoverProps : undefined;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
className: "edit-site-global-styles-gradient-palette-panel",
- spacing: 10
- }, !!themeGradients && !!themeGradients.length && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalPaletteEdit, {
- canReset: themeGradients !== baseThemeGradients,
- canOnlyChangeValues: true,
- gradients: themeGradients,
- onChange: setThemeGradients,
- paletteLabel: (0,external_wp_i18n_namespaceObject.__)('Theme'),
- paletteLabelHeadingLevel: 3,
- popoverProps: popoverProps
- }), !!defaultGradients && !!defaultGradients.length && !!defaultPaletteEnabled && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalPaletteEdit, {
- canReset: defaultGradients !== baseDefaultGradients,
- canOnlyChangeValues: true,
- gradients: defaultGradients,
- onChange: setDefaultGradients,
- paletteLabel: (0,external_wp_i18n_namespaceObject.__)('Default'),
- paletteLabelLevel: 3,
- popoverProps: popoverProps
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalPaletteEdit, {
- gradients: customGradients,
- onChange: setCustomGradients,
- paletteLabel: (0,external_wp_i18n_namespaceObject.__)('Custom'),
- paletteLabelLevel: 3,
- emptyMessage: (0,external_wp_i18n_namespaceObject.__)('Custom gradients are empty! Add some gradients to create your own palette.'),
- slugPrefix: "custom-",
- popoverProps: popoverProps
- }), !!duotonePalette && !!duotonePalette.length && (0,external_React_.createElement)("div", null, (0,external_React_.createElement)(subtitle, {
- level: 3
- }, (0,external_wp_i18n_namespaceObject.__)('Duotone')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
- margin: 3
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.DuotonePicker, {
- duotonePalette: duotonePalette,
- disableCustomDuotone: true,
- disableCustomColors: true,
- clearable: false,
- onChange: gradients_palette_panel_noop
- })));
+ spacing: 8,
+ children: [!!themeGradients && !!themeGradients.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalPaletteEdit, {
+ canReset: themeGradients !== baseThemeGradients,
+ canOnlyChangeValues: true,
+ gradients: themeGradients,
+ onChange: setThemeGradients,
+ paletteLabel: (0,external_wp_i18n_namespaceObject.__)('Theme'),
+ paletteLabelHeadingLevel: 3,
+ popoverProps: popoverProps
+ }), !!defaultGradients && !!defaultGradients.length && !!defaultPaletteEnabled && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalPaletteEdit, {
+ canReset: defaultGradients !== baseDefaultGradients,
+ canOnlyChangeValues: true,
+ gradients: defaultGradients,
+ onChange: setDefaultGradients,
+ paletteLabel: (0,external_wp_i18n_namespaceObject.__)('Default'),
+ paletteLabelLevel: 3,
+ popoverProps: popoverProps
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalPaletteEdit, {
+ gradients: customGradients,
+ onChange: setCustomGradients,
+ paletteLabel: (0,external_wp_i18n_namespaceObject.__)('Custom'),
+ paletteLabelLevel: 3,
+ slugPrefix: "custom-",
+ popoverProps: popoverProps
+ }), !!duotonePalette && !!duotonePalette.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(subtitle, {
+ level: 3,
+ children: (0,external_wp_i18n_namespaceObject.__)('Duotone')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ margin: 3
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DuotonePicker, {
+ duotonePalette: duotonePalette,
+ disableCustomDuotone: true,
+ disableCustomColors: true,
+ clearable: false,
+ onChange: noop
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-color-palette.js
-
/**
* WordPress dependencies
*/
@@ -33113,51 +20742,905 @@ function GradientPalettePanel({
+
+
+
const {
Tabs: screen_color_palette_Tabs
-} = unlock(external_wp_components_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
function ScreenColorPalette({
name
}) {
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(header, {
- title: (0,external_wp_i18n_namespaceObject.__)('Palette'),
- description: (0,external_wp_i18n_namespaceObject.__)('Palettes are used to provide default color options for blocks and various design tools. Here you can edit the colors with their labels.')
- }), (0,external_React_.createElement)(screen_color_palette_Tabs, null, (0,external_React_.createElement)(screen_color_palette_Tabs.TabList, null, (0,external_React_.createElement)(screen_color_palette_Tabs.Tab, {
- tabId: "solid"
- }, "Solid"), (0,external_React_.createElement)(screen_color_palette_Tabs.Tab, {
- tabId: "gradient"
- }, "Gradient")), (0,external_React_.createElement)(screen_color_palette_Tabs.TabPanel, {
- tabId: "solid",
- focusable: false
- }, (0,external_React_.createElement)(ColorPalettePanel, {
- name: name
- })), (0,external_React_.createElement)(screen_color_palette_Tabs.TabPanel, {
- tabId: "gradient",
- focusable: false
- }, (0,external_React_.createElement)(GradientPalettePanel, {
- name: name
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(header, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Edit palette'),
+ description: (0,external_wp_i18n_namespaceObject.__)('The combination of colors used across the site and in color pickers.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(screen_color_palette_Tabs, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(screen_color_palette_Tabs.TabList, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_color_palette_Tabs.Tab, {
+ tabId: "color",
+ children: (0,external_wp_i18n_namespaceObject.__)('Color')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_color_palette_Tabs.Tab, {
+ tabId: "gradient",
+ children: (0,external_wp_i18n_namespaceObject.__)('Gradient')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_color_palette_Tabs.TabPanel, {
+ tabId: "color",
+ focusable: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorPalettePanel, {
+ name: name
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_color_palette_Tabs.TabPanel, {
+ tabId: "gradient",
+ focusable: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GradientPalettePanel, {
+ name: name
+ })
+ })]
+ })]
+ });
}
/* harmony default export */ const screen_color_palette = (ScreenColorPalette);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/dimensions-panel.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js
+/**
+ * WordPress dependencies
+ */
+
+const plus = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
+ })
+});
+/* harmony default export */ const library_plus = (plus);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/shadows-panel.js
/**
* WordPress dependencies
*/
+
+
/**
* Internal dependencies
*/
+
+
+
+
+
+
+
+const {
+ useGlobalSetting: shadows_panel_useGlobalSetting
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+const defaultShadow = '6px 6px 9px rgba(0, 0, 0, 0.2)';
+function ShadowsPanel() {
+ const [defaultShadows] = shadows_panel_useGlobalSetting('shadow.presets.default');
+ const [defaultShadowsEnabled] = shadows_panel_useGlobalSetting('shadow.defaultPresets');
+ const [themeShadows] = shadows_panel_useGlobalSetting('shadow.presets.theme');
+ const [customShadows, setCustomShadows] = shadows_panel_useGlobalSetting('shadow.presets.custom');
+ const onCreateShadow = shadow => {
+ setCustomShadows([...(customShadows || []), shadow]);
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(header, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Shadows'),
+ description: (0,external_wp_i18n_namespaceObject.__)('Manage and create shadow styles for use across the site.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-global-styles-screen",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ className: "edit-site-global-styles__shadows-panel",
+ spacing: 7,
+ children: [defaultShadowsEnabled && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShadowList, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Default'),
+ shadows: defaultShadows || [],
+ category: "default"
+ }), themeShadows && themeShadows.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShadowList, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Theme'),
+ shadows: themeShadows || [],
+ category: "theme"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShadowList, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Custom'),
+ shadows: customShadows || [],
+ category: "custom",
+ canCreate: true,
+ onCreate: onCreateShadow
+ })]
+ })
+ })]
+ });
+}
+function ShadowList({
+ label,
+ shadows,
+ category,
+ canCreate,
+ onCreate
+}) {
+ const handleAddShadow = () => {
+ const newIndex = getNewIndexFromPresets(shadows, 'shadow-');
+ onCreate({
+ name: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: is an index for a preset */
+ (0,external_wp_i18n_namespaceObject.__)('Shadow %s'), newIndex),
+ shadow: defaultShadow,
+ slug: `shadow-${newIndex}`
+ });
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 2,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "space-between",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Flex, {
+ align: "center",
+ className: "edit-site-global-styles__shadows-panel__title",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(subtitle, {
+ level: 3,
+ children: label
+ })
+ }), canCreate && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ className: "edit-site-global-styles__shadows-panel__options-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "small",
+ icon: library_plus,
+ label: (0,external_wp_i18n_namespaceObject.__)('Add shadow'),
+ onClick: () => {
+ handleAddShadow();
+ }
+ })
+ })]
+ }), shadows.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ isBordered: true,
+ isSeparated: true,
+ children: shadows.map(shadow => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShadowItem, {
+ shadow: shadow,
+ category: category
+ }, shadow.slug))
+ })]
+ });
+}
+function ShadowItem({
+ shadow,
+ category
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationButtonAsItem, {
+ path: `/shadows/edit/${category}/${shadow.slug}`,
+ "aria-label":
+ // translators: %s: name of the shadow
+ (0,external_wp_i18n_namespaceObject.sprintf)('Edit shadow %s', shadow.name),
+ icon: library_shadow,
+ children: shadow.name
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/reset.js
+/**
+ * WordPress dependencies
+ */
+
+
+const reset_reset = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M7 11.5h10V13H7z"
+ })
+});
+/* harmony default export */ const library_reset = (reset_reset);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/shadow-utils.js
+const CUSTOM_VALUE_SETTINGS = {
+ px: {
+ max: 20,
+ step: 1
+ },
+ '%': {
+ max: 100,
+ step: 1
+ },
+ vw: {
+ max: 100,
+ step: 1
+ },
+ vh: {
+ max: 100,
+ step: 1
+ },
+ em: {
+ max: 10,
+ step: 0.1
+ },
+ rm: {
+ max: 10,
+ step: 0.1
+ },
+ svw: {
+ max: 100,
+ step: 1
+ },
+ lvw: {
+ max: 100,
+ step: 1
+ },
+ dvw: {
+ max: 100,
+ step: 1
+ },
+ svh: {
+ max: 100,
+ step: 1
+ },
+ lvh: {
+ max: 100,
+ step: 1
+ },
+ dvh: {
+ max: 100,
+ step: 1
+ },
+ vi: {
+ max: 100,
+ step: 1
+ },
+ svi: {
+ max: 100,
+ step: 1
+ },
+ lvi: {
+ max: 100,
+ step: 1
+ },
+ dvi: {
+ max: 100,
+ step: 1
+ },
+ vb: {
+ max: 100,
+ step: 1
+ },
+ svb: {
+ max: 100,
+ step: 1
+ },
+ lvb: {
+ max: 100,
+ step: 1
+ },
+ dvb: {
+ max: 100,
+ step: 1
+ },
+ vmin: {
+ max: 100,
+ step: 1
+ },
+ svmin: {
+ max: 100,
+ step: 1
+ },
+ lvmin: {
+ max: 100,
+ step: 1
+ },
+ dvmin: {
+ max: 100,
+ step: 1
+ },
+ vmax: {
+ max: 100,
+ step: 1
+ },
+ svmax: {
+ max: 100,
+ step: 1
+ },
+ lvmax: {
+ max: 100,
+ step: 1
+ },
+ dvmax: {
+ max: 100,
+ step: 1
+ }
+};
+function getShadowParts(shadow) {
+ const shadowValues = shadow.match(/(?:[^,(]|\([^)]*\))+/g) || [];
+ return shadowValues.map(value => value.trim());
+}
+function shadowStringToObject(shadowValue) {
+ /*
+ * Shadow spec: https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
+ * Shadow string format: <offset-x> <offset-y> <blur-radius> <spread-radius> <color> [inset]
+ *
+ * A shadow to be valid it must satisfy the following.
+ *
+ * 1. Should not contain "none" keyword.
+ * 2. Values x, y, blur, spread should be in the order. Color and inset can be anywhere in the string except in between x, y, blur, spread values.
+ * 3. Should not contain more than one set of x, y, blur, spread values.
+ * 4. Should contain at least x and y values. Others are optional.
+ * 5. Should not contain more than one "inset" (case insensitive) keyword.
+ * 6. Should not contain more than one color value.
+ */
+
+ const defaultShadow = {
+ x: '0',
+ y: '0',
+ blur: '0',
+ spread: '0',
+ color: '#000',
+ inset: false
+ };
+ if (!shadowValue) {
+ return defaultShadow;
+ }
+
+ // Rule 1: Should not contain "none" keyword.
+ // if the shadow has "none" keyword, it is not a valid shadow string
+ if (shadowValue.includes('none')) {
+ return defaultShadow;
+ }
+
+ // Rule 2: Values x, y, blur, spread should be in the order.
+ // Color and inset can be anywhere in the string except in between x, y, blur, spread values.
+ // Extract length values (x, y, blur, spread) from shadow string
+ // Regex match groups of 1 to 4 length values.
+ const lengthsRegex = /((?:^|\s+)(-?\d*\.?\d+(?:px|%|in|cm|mm|em|rem|ex|pt|pc|vh|vw|vmin|vmax|ch|lh)?)(?=\s|$)(?![^(]*\))){1,4}/g;
+ const matches = shadowValue.match(lengthsRegex) || [];
+
+ // Rule 3: Should not contain more than one set of x, y, blur, spread values.
+ // if the string doesn't contain exactly 1 set of x, y, blur, spread values,
+ // it is not a valid shadow string
+ if (matches.length !== 1) {
+ return defaultShadow;
+ }
+
+ // Extract length values (x, y, blur, spread) from shadow string
+ const lengths = matches[0].split(' ').map(value => value.trim()).filter(value => value);
+
+ // Rule 4: Should contain at least x and y values. Others are optional.
+ if (lengths.length < 2) {
+ return defaultShadow;
+ }
+
+ // Rule 5: Should not contain more than one "inset" (case insensitive) keyword.
+ // check if the shadow string contains "inset" keyword
+ const insets = shadowValue.match(/inset/gi) || [];
+ if (insets.length > 1) {
+ return defaultShadow;
+ }
+
+ // Strip lengths and inset from shadow string, leaving just color.
+ const hasInset = insets.length === 1;
+ let colorString = shadowValue.replace(lengthsRegex, '').trim();
+ if (hasInset) {
+ colorString = colorString.replace('inset', '').replace('INSET', '').trim();
+ }
+
+ // Rule 6: Should not contain more than one color value.
+ // validate color string with regular expression
+ // check if color has matching hex, rgb or hsl values
+ const colorRegex = /^#([0-9a-f]{3}){1,2}$|^#([0-9a-f]{4}){1,2}$|^(?:rgb|hsl)a?\(?[\d*\.?\d+%?,?\/?\s]*\)$/gi;
+ let colorMatches = (colorString.match(colorRegex) || []).map(value => value?.trim()).filter(value => value);
+
+ // If color string has more than one color values, it is not a valid
+ if (colorMatches.length > 1) {
+ return defaultShadow;
+ } else if (colorMatches.length === 0) {
+ // check if color string has multiple named color values separated by space
+ colorMatches = colorString.trim().split(' ').filter(value => value);
+ // If color string has more than one color values, it is not a valid
+ if (colorMatches.length > 1) {
+ return defaultShadow;
+ }
+ }
+
+ // Return parsed shadow object.
+ const [x, y, blur, spread] = lengths;
+ return {
+ x,
+ y,
+ blur: blur || defaultShadow.blur,
+ spread: spread || defaultShadow.spread,
+ inset: hasInset,
+ color: colorString || defaultShadow.color
+ };
+}
+function shadowObjectToString(shadowObj) {
+ const shadowString = `${shadowObj.x || '0px'} ${shadowObj.y || '0px'} ${shadowObj.blur || '0px'} ${shadowObj.spread || '0px'}`;
+ return `${shadowObj.inset ? 'inset' : ''} ${shadowString} ${shadowObj.color || ''}`.trim();
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/shadows-edit-panel.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+
+const {
+ useGlobalSetting: shadows_edit_panel_useGlobalSetting
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+const {
+ DropdownMenuV2: DropdownMenu,
+ DropdownMenuItemV2: DropdownMenuItem,
+ DropdownMenuItemLabelV2: DropdownMenuItemLabel
+} = lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
+const customShadowMenuItems = [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Rename'),
+ action: 'rename'
+}, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Delete'),
+ action: 'delete'
+}];
+const presetShadowMenuItems = [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Reset'),
+ action: 'reset'
+}];
+function ShadowsEditPanel() {
+ const {
+ params: {
+ category,
+ slug
+ },
+ goTo
+ } = (0,external_wp_components_namespaceObject.__experimentalUseNavigator)();
+ const [shadows, setShadows] = shadows_edit_panel_useGlobalSetting(`shadow.presets.${category}`);
+ const [baseShadows] = shadows_edit_panel_useGlobalSetting(`shadow.presets.${category}`, undefined, 'base');
+ const [selectedShadow, setSelectedShadow] = (0,external_wp_element_namespaceObject.useState)(() => (shadows || []).find(shadow => shadow.slug === slug));
+ const baseSelectedShadow = (0,external_wp_element_namespaceObject.useMemo)(() => (baseShadows || []).find(b => b.slug === slug), [baseShadows, slug]);
+ const [isConfirmDialogVisible, setIsConfirmDialogVisible] = (0,external_wp_element_namespaceObject.useState)(false);
+ const [isRenameModalVisible, setIsRenameModalVisible] = (0,external_wp_element_namespaceObject.useState)(false);
+ const [shadowName, setShadowName] = (0,external_wp_element_namespaceObject.useState)(selectedShadow.name);
+ const onShadowChange = shadow => {
+ setSelectedShadow({
+ ...selectedShadow,
+ shadow
+ });
+ const updatedShadows = shadows.map(s => s.slug === slug ? {
+ ...selectedShadow,
+ shadow
+ } : s);
+ setShadows(updatedShadows);
+ };
+ const onMenuClick = action => {
+ if (action === 'reset') {
+ const updatedShadows = shadows.map(s => s.slug === slug ? baseSelectedShadow : s);
+ setSelectedShadow(baseSelectedShadow);
+ setShadows(updatedShadows);
+ } else if (action === 'delete') {
+ setIsConfirmDialogVisible(true);
+ } else if (action === 'rename') {
+ setIsRenameModalVisible(true);
+ }
+ };
+ const handleShadowDelete = () => {
+ const updatedShadows = shadows.filter(s => s.slug !== slug);
+ setShadows(updatedShadows);
+ goTo(`/shadows`);
+ };
+ const handleShadowRename = newName => {
+ if (!newName) {
+ return;
+ }
+ const updatedShadows = shadows.map(s => s.slug === slug ? {
+ ...selectedShadow,
+ name: newName
+ } : s);
+ setSelectedShadow({
+ ...selectedShadow,
+ name: newName
+ });
+ setShadows(updatedShadows);
+ };
+ return !selectedShadow ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(header, {
+ title: ""
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "space-between",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(header, {
+ title: selectedShadow.name
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ marginTop: 2,
+ marginBottom: 0,
+ paddingX: 4,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenu, {
+ trigger: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "small",
+ icon: more_vertical,
+ label: (0,external_wp_i18n_namespaceObject.__)('Menu')
+ }),
+ children: (category === 'custom' ? customShadowMenuItems : presetShadowMenuItems).map(item => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuItem, {
+ onClick: () => onMenuClick(item.action),
+ disabled: item.action === 'reset' && selectedShadow.shadow === baseSelectedShadow.shadow,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuItemLabel, {
+ children: item.label
+ })
+ }, item.action))
+ })
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "edit-site-global-styles-screen",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShadowsPreview, {
+ shadow: selectedShadow.shadow
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShadowEditor, {
+ shadow: selectedShadow.shadow,
+ onChange: onShadowChange
+ })]
+ }), isConfirmDialogVisible && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
+ isOpen: true,
+ onConfirm: () => {
+ handleShadowDelete();
+ setIsConfirmDialogVisible(false);
+ },
+ onCancel: () => {
+ setIsConfirmDialogVisible(false);
+ },
+ confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Delete'),
+ size: "medium",
+ children: (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: name of the shadow
+ 'Are you sure you want to delete "%s"?', selectedShadow.name)
+ }), isRenameModalVisible && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Rename'),
+ onRequestClose: () => setIsRenameModalVisible(false),
+ size: "small",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("form", {
+ onSubmit: event => {
+ event.preventDefault();
+ handleShadowRename(shadowName);
+ setIsRenameModalVisible(false);
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalInputControl, {
+ autoComplete: "off",
+ label: (0,external_wp_i18n_namespaceObject.__)('Name'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Shadow name'),
+ value: shadowName,
+ onChange: value => setShadowName(value)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ marginBottom: 6
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ className: "block-editor-shadow-edit-modal__actions",
+ justify: "flex-end",
+ expanded: false,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: () => setIsRenameModalVisible(false),
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ type: "submit",
+ children: (0,external_wp_i18n_namespaceObject.__)('Save')
+ })
+ })]
+ })]
+ })
+ })]
+ });
+}
+function ShadowsPreview({
+ shadow
+}) {
+ const shadowStyle = {
+ boxShadow: shadow
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {
+ marginBottom: 4,
+ marginTop: -2,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
+ align: "center",
+ justify: "center",
+ className: "edit-site-global-styles__shadow-preview-panel",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-global-styles__shadow-preview-block",
+ style: shadowStyle
+ })
+ })
+ });
+}
+function ShadowEditor({
+ shadow,
+ onChange
+}) {
+ const shadowParts = (0,external_wp_element_namespaceObject.useMemo)(() => getShadowParts(shadow), [shadow]);
+ const onChangeShadowPart = (index, part) => {
+ shadowParts[index] = part;
+ onChange(shadowParts.join(', '));
+ };
+ const onAddShadowPart = () => {
+ shadowParts.push(defaultShadow);
+ onChange(shadowParts.join(', '));
+ };
+ const onRemoveShadowPart = index => {
+ shadowParts.splice(index, 1);
+ onChange(shadowParts.join(', '));
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 2,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "space-between",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Flex, {
+ align: "center",
+ className: "edit-site-global-styles__shadows-panel__title",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(subtitle, {
+ level: 3,
+ children: (0,external_wp_i18n_namespaceObject.__)('Shadows')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ className: "edit-site-global-styles__shadows-panel__options-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "small",
+ icon: library_plus,
+ label: (0,external_wp_i18n_namespaceObject.__)('Add shadow'),
+ onClick: () => {
+ onAddShadowPart();
+ }
+ })
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ isBordered: true,
+ isSeparated: true,
+ children: shadowParts.map((part, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(shadows_edit_panel_ShadowItem, {
+ shadow: part,
+ onChange: value => onChangeShadowPart(index, value),
+ canRemove: shadowParts.length > 1,
+ onRemove: () => onRemoveShadowPart(index)
+ }, index))
+ })]
+ });
+}
+function shadows_edit_panel_ShadowItem({
+ shadow,
+ onChange,
+ canRemove,
+ onRemove
+}) {
+ const popoverProps = {
+ placement: 'left-start',
+ offset: 36,
+ shift: true
+ };
+ const shadowObj = (0,external_wp_element_namespaceObject.useMemo)(() => shadowStringToObject(shadow), [shadow]);
+ const onShadowChange = newShadow => {
+ onChange(shadowObjectToString(newShadow));
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ popoverProps: popoverProps,
+ className: "edit-site-global-styles__shadow-editor__dropdown",
+ renderToggle: ({
+ onToggle,
+ isOpen
+ }) => {
+ const toggleProps = {
+ onClick: onToggle,
+ className: dist_clsx('edit-site-global-styles__shadow-editor__dropdown-toggle', {
+ 'is-open': isOpen
+ }),
+ 'aria-expanded': isOpen
+ };
+ const removeButtonProps = {
+ onClick: onRemove,
+ className: dist_clsx('edit-site-global-styles__shadow-editor__remove-button', {
+ 'is-open': isOpen
+ }),
+ label: (0,external_wp_i18n_namespaceObject.__)('Remove shadow')
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ align: "center",
+ justify: "flex-start",
+ spacing: 0,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ style: {
+ flexGrow: 1
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: library_shadow,
+ ...toggleProps,
+ children: shadowObj.inset ? (0,external_wp_i18n_namespaceObject.__)('Inner shadow') : (0,external_wp_i18n_namespaceObject.__)('Drop shadow')
+ })
+ }), canRemove && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: library_reset,
+ ...removeButtonProps
+ })
+ })]
+ });
+ },
+ renderContent: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalDropdownContentWrapper, {
+ paddingSize: "none",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-global-styles__shadow-editor__dropdown-content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShadowPopover, {
+ shadowObj: shadowObj,
+ onChange: onShadowChange
+ })
+ })
+ })
+ });
+}
+function ShadowPopover({
+ shadowObj,
+ onChange
+}) {
+ const __experimentalIsRenderedInSidebar = true;
+ const enableAlpha = true;
+ const onShadowChange = (key, value) => {
+ const newShadow = {
+ ...shadowObj,
+ [key]: value
+ };
+ onChange(newShadow);
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-global-styles__shadow-editor-panel",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 2,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
+ level: 5,
+ children: (0,external_wp_i18n_namespaceObject.__)('Shadow')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-global-styles__shadow-editor-color-palette",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ColorPalette, {
+ clearable: false,
+ enableAlpha: enableAlpha,
+ __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
+ value: shadowObj.color,
+ onChange: value => onShadowChange('color', value)
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
+ value: shadowObj.inset ? 'inset' : 'outset',
+ isBlock: true,
+ onChange: value => onShadowChange('inset', value === 'inset'),
+ hideLabelFromVision: true,
+ __next40pxDefaultSize: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "outset",
+ label: (0,external_wp_i18n_namespaceObject.__)('Outset')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
+ value: "inset",
+ label: (0,external_wp_i18n_namespaceObject.__)('Inset')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalGrid, {
+ columns: 2,
+ gap: 4,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShadowInputControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('X Position'),
+ value: shadowObj.x,
+ hasNegativeRange: true,
+ onChange: value => onShadowChange('x', value)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShadowInputControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Y Position'),
+ value: shadowObj.y,
+ hasNegativeRange: true,
+ onChange: value => onShadowChange('y', value)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShadowInputControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Blur'),
+ value: shadowObj.blur,
+ onChange: value => onShadowChange('blur', value)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShadowInputControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Spread'),
+ value: shadowObj.spread,
+ hasNegativeRange: true,
+ onChange: value => onShadowChange('spread', value)
+ })]
+ })]
+ })
+ });
+}
+function ShadowInputControl({
+ label,
+ value,
+ onChange,
+ hasNegativeRange
+}) {
+ var _CUSTOM_VALUE_SETTING, _CUSTOM_VALUE_SETTING2, _CUSTOM_VALUE_SETTING3;
+ const [isCustomInput, setIsCustomInput] = (0,external_wp_element_namespaceObject.useState)(false);
+ const [parsedQuantity, parsedUnit] = (0,external_wp_components_namespaceObject.__experimentalParseQuantityAndUnitFromRawValue)(value);
+ const sliderOnChange = next => {
+ onChange(next !== undefined ? [next, parsedUnit || 'px'].join('') : '0px');
+ };
+ const onValueChange = next => {
+ const isNumeric = next !== undefined && !isNaN(parseFloat(next));
+ const nextValue = isNumeric ? next : '0px';
+ onChange(nextValue);
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ justify: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "space-between",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(subtitle, {
+ children: label
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Use custom size'),
+ icon: library_settings,
+ onClick: () => {
+ setIsCustomInput(!isCustomInput);
+ },
+ isPressed: isCustomInput,
+ size: "small"
+ })]
+ }), isCustomInput ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
+ label: label,
+ hideLabelFromVision: true,
+ __next40pxDefaultSize: true,
+ value: value,
+ onChange: onValueChange
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RangeControl, {
+ value: parsedQuantity !== null && parsedQuantity !== void 0 ? parsedQuantity : 0,
+ onChange: sliderOnChange,
+ withInputField: false,
+ __next40pxDefaultSize: true,
+ __nextHasNoMarginBottom: true,
+ min: hasNegativeRange ? -((_CUSTOM_VALUE_SETTING = CUSTOM_VALUE_SETTINGS[parsedUnit !== null && parsedUnit !== void 0 ? parsedUnit : 'px']?.max) !== null && _CUSTOM_VALUE_SETTING !== void 0 ? _CUSTOM_VALUE_SETTING : 10) : 0,
+ max: (_CUSTOM_VALUE_SETTING2 = CUSTOM_VALUE_SETTINGS[parsedUnit !== null && parsedUnit !== void 0 ? parsedUnit : 'px']?.max) !== null && _CUSTOM_VALUE_SETTING2 !== void 0 ? _CUSTOM_VALUE_SETTING2 : 10,
+ step: (_CUSTOM_VALUE_SETTING3 = CUSTOM_VALUE_SETTINGS[parsedUnit !== null && parsedUnit !== void 0 ? parsedUnit : 'px']?.step) !== null && _CUSTOM_VALUE_SETTING3 !== void 0 ? _CUSTOM_VALUE_SETTING3 : 0.1
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-shadows.js
+/**
+ * Internal dependencies
+ */
+
+
+
+function ScreenShadows() {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShadowsPanel, {});
+}
+function ScreenShadowsEdit() {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShadowsEditPanel, {});
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/dimensions-panel.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
const {
useGlobalStyle: dimensions_panel_useGlobalStyle,
useGlobalSetting: dimensions_panel_useGlobalSetting,
useSettingsForBlockElement: dimensions_panel_useSettingsForBlockElement,
DimensionsPanel: dimensions_panel_StylesDimensionsPanel
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
const DEFAULT_CONTROLS = {
contentSize: true,
wideSize: true,
@@ -33211,7 +21694,7 @@ function DimensionsPanel() {
setSettings(updatedSettings);
}
};
- return (0,external_React_.createElement)(dimensions_panel_StylesDimensionsPanel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dimensions_panel_StylesDimensionsPanel, {
inheritedValue: inheritedStyleWithLayout,
value: styleWithLayout,
onChange: onChange,
@@ -33221,8 +21704,64 @@ function DimensionsPanel() {
});
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-layout.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/background-panel.js
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Internal dependencies
+ */
+
+
+// Initial control values where no block style is set.
+
+const BACKGROUND_DEFAULT_VALUES = {
+ backgroundSize: 'auto'
+};
+const {
+ useGlobalStyle: background_panel_useGlobalStyle,
+ useGlobalSetting: background_panel_useGlobalSetting,
+ useGlobalStyleLinks,
+ BackgroundPanel: StylesBackgroundPanel
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+
+/**
+ * Checks if there is a current value in the background image block support
+ * attributes.
+ *
+ * @param {Object} style Style attribute.
+ * @return {boolean} Whether the block has a background image value set.
+ */
+function hasBackgroundImageValue(style) {
+ return !!style?.background?.backgroundImage?.id || !!style?.background?.backgroundImage?.url || typeof style?.background?.backgroundImage === 'string';
+}
+function BackgroundPanel() {
+ const [style] = background_panel_useGlobalStyle('', undefined, 'user', {
+ shouldDecodeEncode: false
+ });
+ const [inheritedStyle, setStyle] = background_panel_useGlobalStyle('', undefined, 'all', {
+ shouldDecodeEncode: false
+ });
+ const _links = useGlobalStyleLinks();
+ const [settings] = background_panel_useGlobalSetting('');
+ const defaultControls = {
+ backgroundImage: true,
+ backgroundSize: hasBackgroundImageValue(style) || hasBackgroundImageValue(inheritedStyle)
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StylesBackgroundPanel, {
+ inheritedValue: inheritedStyle,
+ value: style,
+ onChange: setStyle,
+ settings: settings,
+ defaultValues: BACKGROUND_DEFAULT_VALUES,
+ defaultControls: defaultControls,
+ themeFileURIs: _links?.['wp:theme-file']
+ });
+}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-layout.js
/**
* WordPress dependencies
*/
@@ -33235,23 +21774,187 @@ function DimensionsPanel() {
+
+
+
+
const {
+ useHasBackgroundPanel,
useHasDimensionsPanel: screen_layout_useHasDimensionsPanel,
useGlobalSetting: screen_layout_useGlobalSetting,
useSettingsForBlockElement: screen_layout_useSettingsForBlockElement
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
function ScreenLayout() {
const [rawSettings] = screen_layout_useGlobalSetting('');
const settings = screen_layout_useSettingsForBlockElement(rawSettings);
const hasDimensionsPanel = screen_layout_useHasDimensionsPanel(settings);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(header, {
- title: (0,external_wp_i18n_namespaceObject.__)('Layout')
- }), hasDimensionsPanel && (0,external_React_.createElement)(DimensionsPanel, null));
+ const hasBackgroundPanel = useHasBackgroundPanel(settings);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(header, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Layout')
+ }), hasDimensionsPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DimensionsPanel, {}), hasBackgroundPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BackgroundPanel, {})]
+ });
}
/* harmony default export */ const screen_layout = (ScreenLayout);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/style-variations-container.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+const {
+ GlobalStylesContext: style_variations_container_GlobalStylesContext
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+function StyleVariationsContainer({
+ gap = 2
+}) {
+ const {
+ user
+ } = (0,external_wp_element_namespaceObject.useContext)(style_variations_container_GlobalStylesContext);
+ const [currentUserStyles, setCurrentUserStyles] = (0,external_wp_element_namespaceObject.useState)(user);
+ const userStyles = currentUserStyles?.styles;
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ setCurrentUserStyles(user);
+ }, [user]);
+ const variations = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ return select(external_wp_coreData_namespaceObject.store).__experimentalGetCurrentThemeGlobalStylesVariations();
+ }, []);
+
+ // Filter out variations that are of single property type, i.e. color or typography variations.
+ const multiplePropertyVariations = variations?.filter(variation => {
+ return !isVariationWithSingleProperty(variation, 'color') && !isVariationWithSingleProperty(variation, 'typography');
+ });
+ const themeVariations = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ const withEmptyVariation = [{
+ title: (0,external_wp_i18n_namespaceObject.__)('Default'),
+ settings: {},
+ styles: {}
+ }, ...(multiplePropertyVariations !== null && multiplePropertyVariations !== void 0 ? multiplePropertyVariations : [])];
+ return [...withEmptyVariation.map(variation => {
+ var _variation$settings;
+ const blockStyles = {
+ ...variation?.styles?.blocks
+ } || {};
+
+ // We need to copy any user custom CSS to the variation to prevent it being lost
+ // when switching variations.
+ if (userStyles?.blocks) {
+ Object.keys(userStyles.blocks).forEach(blockName => {
+ // First get any block specific custom CSS from the current user styles and merge with any custom CSS for
+ // that block in the variation.
+ if (userStyles.blocks[blockName].css) {
+ const variationBlockStyles = blockStyles[blockName] || {};
+ const customCSS = {
+ css: `${blockStyles[blockName]?.css || ''} ${userStyles.blocks[blockName].css.trim() || ''}`
+ };
+ blockStyles[blockName] = {
+ ...variationBlockStyles,
+ ...customCSS
+ };
+ }
+ });
+ }
+ // Now merge any global custom CSS from current user styles with global custom CSS in the variation.
+ const css = userStyles?.css || variation.styles?.css ? {
+ css: `${variation.styles?.css || ''} ${userStyles?.css || ''}`
+ } : {};
+ const blocks = Object.keys(blockStyles).length > 0 ? {
+ blocks: blockStyles
+ } : {};
+ const styles = {
+ ...variation.styles,
+ ...css,
+ ...blocks
+ };
+ return {
+ ...variation,
+ settings: (_variation$settings = variation.settings) !== null && _variation$settings !== void 0 ? _variation$settings : {},
+ styles
+ };
+ })];
+ }, [multiplePropertyVariations, userStyles?.blocks, userStyles?.css]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalGrid, {
+ columns: 2,
+ className: "edit-site-global-styles-style-variations-container",
+ gap: gap,
+ children: themeVariations.map((variation, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Variation, {
+ variation: variation,
+ children: isFocused => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(preview_styles, {
+ label: variation?.title,
+ withHoverView: true,
+ isFocused: isFocused,
+ variation: variation
+ })
+ }, index))
+ });
+}
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-style-variations.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+function ScreenStyleVariations() {
+ // Move to zoom out mode when this component is mounted
+ // and back to the previous mode when unmounted.
+ (0,external_wp_blockEditor_namespaceObject.useZoomOut)();
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(header, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Browse styles'),
+ description: (0,external_wp_i18n_namespaceObject.__)('Choose a variation to change the look of the site.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Card, {
+ size: "small",
+ isBorderless: true,
+ className: "edit-site-global-styles-screen-style-variations",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CardBody, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyleVariationsContainer, {})
+ })
+ })]
+ });
+}
+/* harmony default export */ const screen_style_variations = (ScreenStyleVariations);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
+/**
+ * WordPress dependencies
+ */
+
+
+const closeSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
+ })
+});
+/* harmony default export */ const close_small = (closeSmall);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/editor-canvas-container/index.js
/**
* WordPress dependencies
*/
@@ -33261,60 +21964,512 @@ function ScreenLayout() {
+
+
+
+
/**
* Internal dependencies
*/
-function ScreenStyleVariations() {
+
+
+const {
+ EditorContentSlotFill,
+ ResizableEditor
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
+
+/**
+ * Returns a translated string for the title of the editor canvas container.
+ *
+ * @param {string} view Editor canvas container view.
+ *
+ * @return {string} Translated string corresponding to value of view. Default is ''.
+ */
+function getEditorCanvasContainerTitle(view) {
+ switch (view) {
+ case 'style-book':
+ return (0,external_wp_i18n_namespaceObject.__)('Style Book');
+ case 'global-styles-revisions':
+ case 'global-styles-revisions:style-book':
+ return (0,external_wp_i18n_namespaceObject.__)('Style Revisions');
+ default:
+ return '';
+ }
+}
+function EditorCanvasContainer({
+ children,
+ closeButtonLabel,
+ onClose,
+ enableResizing = false
+}) {
const {
- mode
+ editorCanvasContainerView,
+ showListViewByDefault
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const _editorCanvasContainerView = lock_unlock_unlock(select(store)).getEditorCanvasContainerView();
+ const _showListViewByDefault = select(external_wp_preferences_namespaceObject.store).get('core', 'showListViewByDefault');
return {
- mode: select(external_wp_blockEditor_namespaceObject.store).__unstableGetEditorMode()
+ editorCanvasContainerView: _editorCanvasContainerView,
+ showListViewByDefault: _showListViewByDefault
};
}, []);
- const shouldRevertInitialMode = (0,external_wp_element_namespaceObject.useRef)(null);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- // ignore changes to zoom-out mode as we explictily change to it on mount.
- if (mode !== 'zoom-out') {
- shouldRevertInitialMode.current = false;
+ const [isClosed, setIsClosed] = (0,external_wp_element_namespaceObject.useState)(false);
+ const {
+ setEditorCanvasContainerView
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
+ const {
+ setIsListViewOpened
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_editor_namespaceObject.store);
+ const focusOnMountRef = (0,external_wp_compose_namespaceObject.useFocusOnMount)('firstElement');
+ const sectionFocusReturnRef = (0,external_wp_compose_namespaceObject.useFocusReturn)();
+ function onCloseContainer() {
+ setIsListViewOpened(showListViewByDefault);
+ setEditorCanvasContainerView(undefined);
+ setIsClosed(true);
+ if (typeof onClose === 'function') {
+ onClose();
}
- }, [mode]);
-
- // Intentionality left without any dependency.
- // This effect should only run the first time the component is rendered.
- // The effect opens the zoom-out view if it is not open before when applying a style variation.
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (mode !== 'zoom-out') {
- __unstableSetEditorMode('zoom-out');
- shouldRevertInitialMode.current = true;
- return () => {
- // if there were not mode changes revert to the initial mode when unmounting.
- if (shouldRevertInitialMode.current) {
- __unstableSetEditorMode(mode);
- }
- };
+ }
+ function closeOnEscape(event) {
+ if (event.keyCode === external_wp_keycodes_namespaceObject.ESCAPE && !event.defaultPrevented) {
+ event.preventDefault();
+ onCloseContainer();
}
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, []);
+ }
+ const childrenWithProps = Array.isArray(children) ? external_wp_element_namespaceObject.Children.map(children, (child, index) => index === 0 ? (0,external_wp_element_namespaceObject.cloneElement)(child, {
+ ref: sectionFocusReturnRef
+ }) : child) : (0,external_wp_element_namespaceObject.cloneElement)(children, {
+ ref: sectionFocusReturnRef
+ });
+ if (isClosed) {
+ return null;
+ }
+ const title = getEditorCanvasContainerTitle(editorCanvasContainerView);
+ const shouldShowCloseButton = onClose || closeButtonLabel;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditorContentSlotFill.Fill, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-editor-canvas-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResizableEditor, {
+ enableResizing: enableResizing,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("section", {
+ className: "edit-site-editor-canvas-container__section",
+ ref: shouldShowCloseButton ? focusOnMountRef : null,
+ onKeyDown: closeOnEscape,
+ "aria-label": title,
+ children: [shouldShowCloseButton && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "edit-site-editor-canvas-container__close-button",
+ icon: close_small,
+ label: closeButtonLabel || (0,external_wp_i18n_namespaceObject.__)('Close'),
+ onClick: onCloseContainer
+ }), childrenWithProps]
+ })
+ })
+ })
+ });
+}
+function useHasEditorCanvasContainer() {
+ const fills = (0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(EditorContentSlotFill.privateKey);
+ return !!fills?.length;
+}
+/* harmony default export */ const editor_canvas_container = (EditorCanvasContainer);
+
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/style-book/index.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+const {
+ ExperimentalBlockEditorProvider,
+ useGlobalStyle: style_book_useGlobalStyle,
+ GlobalStylesContext: style_book_GlobalStylesContext,
+ useGlobalStylesOutputWithConfig
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+const {
+ mergeBaseAndUserConfigs: style_book_mergeBaseAndUserConfigs
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
+const {
+ CompositeV2: Composite,
+ CompositeItemV2: CompositeItem,
+ useCompositeStoreV2: useCompositeStore,
+ Tabs: style_book_Tabs
+} = lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
+
+// The content area of the Style Book is rendered within an iframe so that global styles
+// are applied to elements within the entire content area. To support elements that are
+// not part of the block previews, such as headings and layout for the block previews,
+// additional CSS rules need to be passed into the iframe. These are hard-coded below.
+// Note that button styles are unset, and then focus rules from the `Button` component are
+// applied to the `button` element, targeted via `.edit-site-style-book__example`.
+// This is to ensure that browser default styles for buttons are not applied to the previews.
+const STYLE_BOOK_IFRAME_STYLES = `
+ .edit-site-style-book__examples {
+ max-width: 900px;
+ margin: 0 auto;
+ }
+
+ .edit-site-style-book__example {
+ border-radius: 2px;
+ cursor: pointer;
+ display: flex;
+ flex-direction: column;
+ gap: 40px;
+ margin-bottom: 40px;
+ padding: 16px;
+ width: 100%;
+ box-sizing: border-box;
+ scroll-margin-top: 32px;
+ scroll-margin-bottom: 32px;
+ }
+
+ .edit-site-style-book__example.is-selected {
+ box-shadow: 0 0 0 1px var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
+ }
+
+ .edit-site-style-book__example:focus:not(:disabled) {
+ box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
+ outline: 3px solid transparent;
+ }
+
+ .edit-site-style-book__examples.is-wide .edit-site-style-book__example {
+ flex-direction: row;
+ }
+
+ .edit-site-style-book__example-title {
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
+ font-size: 11px;
+ font-weight: 500;
+ line-height: normal;
+ margin: 0;
+ text-align: left;
+ text-transform: uppercase;
+ }
+
+ .edit-site-style-book__examples.is-wide .edit-site-style-book__example-title {
+ text-align: right;
+ width: 120px;
+ }
+
+ .edit-site-style-book__example-preview {
+ width: 100%;
+ }
+
+ .edit-site-style-book__example-preview .block-editor-block-list__insertion-point,
+ .edit-site-style-book__example-preview .block-list-appender {
+ display: none;
+ }
+
+ .edit-site-style-book__example-preview .is-root-container > .wp-block:first-child {
+ margin-top: 0;
+ }
+ .edit-site-style-book__example-preview .is-root-container > .wp-block:last-child {
+ margin-bottom: 0;
+ }
+`;
+function isObjectEmpty(object) {
+ return !object || Object.keys(object).length === 0;
+}
+function getExamples() {
+ // Use our own example for the Heading block so that we can show multiple
+ // heading levels.
+ const headingsExample = {
+ name: 'core/heading',
+ title: (0,external_wp_i18n_namespaceObject.__)('Headings'),
+ category: 'text',
+ blocks: [(0,external_wp_blocks_namespaceObject.createBlock)('core/heading', {
+ content: (0,external_wp_i18n_namespaceObject.__)('Code Is Poetry'),
+ level: 1
+ }), (0,external_wp_blocks_namespaceObject.createBlock)('core/heading', {
+ content: (0,external_wp_i18n_namespaceObject.__)('Code Is Poetry'),
+ level: 2
+ }), (0,external_wp_blocks_namespaceObject.createBlock)('core/heading', {
+ content: (0,external_wp_i18n_namespaceObject.__)('Code Is Poetry'),
+ level: 3
+ }), (0,external_wp_blocks_namespaceObject.createBlock)('core/heading', {
+ content: (0,external_wp_i18n_namespaceObject.__)('Code Is Poetry'),
+ level: 4
+ }), (0,external_wp_blocks_namespaceObject.createBlock)('core/heading', {
+ content: (0,external_wp_i18n_namespaceObject.__)('Code Is Poetry'),
+ level: 5
+ })]
+ };
+ const otherExamples = (0,external_wp_blocks_namespaceObject.getBlockTypes)().filter(blockType => {
+ const {
+ name,
+ example,
+ supports
+ } = blockType;
+ return name !== 'core/heading' && !!example && supports.inserter !== false;
+ }).map(blockType => ({
+ name: blockType.name,
+ title: blockType.title,
+ category: blockType.category,
+ blocks: (0,external_wp_blocks_namespaceObject.getBlockFromExample)(blockType.name, blockType.example)
+ }));
+ return [headingsExample, ...otherExamples];
+}
+function StyleBook({
+ enableResizing = true,
+ isSelected,
+ onClick,
+ onSelect,
+ showCloseButton = true,
+ onClose,
+ showTabs = true,
+ userConfig = {}
+}) {
+ const [resizeObserver, sizes] = (0,external_wp_compose_namespaceObject.useResizeObserver)();
+ const [textColor] = style_book_useGlobalStyle('color.text');
+ const [backgroundColor] = style_book_useGlobalStyle('color.background');
+ const [examples] = (0,external_wp_element_namespaceObject.useState)(getExamples);
+ const tabs = (0,external_wp_element_namespaceObject.useMemo)(() => (0,external_wp_blocks_namespaceObject.getCategories)().filter(category => examples.some(example => example.category === category.slug)).map(category => ({
+ name: category.slug,
+ title: category.title,
+ icon: category.icon
+ })), [examples]);
const {
- __unstableSetEditorMode
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(header, {
- back: "/",
- title: (0,external_wp_i18n_namespaceObject.__)('Browse styles'),
- description: (0,external_wp_i18n_namespaceObject.__)('Choose a variation to change the look of the site.')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Card, {
- size: "small",
- isBorderless: true,
- className: "edit-site-global-styles-screen-style-variations"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.CardBody, null, (0,external_React_.createElement)(StyleVariationsContainer, null))));
+ base: baseConfig
+ } = (0,external_wp_element_namespaceObject.useContext)(style_book_GlobalStylesContext);
+ const mergedConfig = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ if (!isObjectEmpty(userConfig) && !isObjectEmpty(baseConfig)) {
+ return style_book_mergeBaseAndUserConfigs(baseConfig, userConfig);
+ }
+ return {};
+ }, [baseConfig, userConfig]);
+
+ // Copied from packages/edit-site/src/components/revisions/index.js
+ // could we create a shared hook?
+ const originalSettings = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).getSettings(), []);
+ const settings = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ ...originalSettings,
+ __unstableIsPreviewMode: true
+ }), [originalSettings]);
+ const [globalStyles] = useGlobalStylesOutputWithConfig(mergedConfig);
+ settings.styles = !isObjectEmpty(globalStyles) && !isObjectEmpty(userConfig) ? globalStyles : settings.styles;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(editor_canvas_container, {
+ onClose: onClose,
+ enableResizing: enableResizing,
+ closeButtonLabel: showCloseButton ? (0,external_wp_i18n_namespaceObject.__)('Close') : null,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: dist_clsx('edit-site-style-book', {
+ 'is-wide': sizes.width > 600,
+ 'is-button': !!onClick
+ }),
+ style: {
+ color: textColor,
+ background: backgroundColor
+ },
+ children: [resizeObserver, showTabs ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-style-book__tabs",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(style_book_Tabs, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(style_book_Tabs.TabList, {
+ children: tabs.map(tab => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(style_book_Tabs.Tab, {
+ tabId: tab.name,
+ children: tab.title
+ }, tab.name))
+ }), tabs.map(tab => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(style_book_Tabs.TabPanel, {
+ tabId: tab.name,
+ focusable: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyleBookBody, {
+ category: tab.name,
+ examples: examples,
+ isSelected: isSelected,
+ onSelect: onSelect,
+ settings: settings,
+ sizes: sizes,
+ title: tab.title
+ })
+ }, tab.name))]
+ })
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyleBookBody, {
+ examples: examples,
+ isSelected: isSelected,
+ onClick: onClick,
+ onSelect: onSelect,
+ settings: settings,
+ sizes: sizes
+ })]
+ })
+ });
}
-/* harmony default export */ const screen_style_variations = (ScreenStyleVariations);
+const StyleBookBody = ({
+ category,
+ examples,
+ isSelected,
+ onClick,
+ onSelect,
+ settings,
+ sizes,
+ title
+}) => {
+ const [isFocused, setIsFocused] = (0,external_wp_element_namespaceObject.useState)(false);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-css.js
+ // The presence of an `onClick` prop indicates that the Style Book is being used as a button.
+ // In this case, add additional props to the iframe to make it behave like a button.
+ const buttonModeProps = {
+ role: 'button',
+ onFocus: () => setIsFocused(true),
+ onBlur: () => setIsFocused(false),
+ onKeyDown: event => {
+ if (event.defaultPrevented) {
+ return;
+ }
+ const {
+ keyCode
+ } = event;
+ if (onClick && (keyCode === external_wp_keycodes_namespaceObject.ENTER || keyCode === external_wp_keycodes_namespaceObject.SPACE)) {
+ event.preventDefault();
+ onClick(event);
+ }
+ },
+ onClick: event => {
+ if (event.defaultPrevented) {
+ return;
+ }
+ if (onClick) {
+ event.preventDefault();
+ onClick(event);
+ }
+ },
+ readonly: true
+ };
+ const buttonModeStyles = onClick ? 'body { cursor: pointer; } body * { pointer-events: none; }' : '';
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.__unstableIframe, {
+ className: dist_clsx('edit-site-style-book__iframe', {
+ 'is-focused': isFocused && !!onClick,
+ 'is-button': !!onClick
+ }),
+ name: "style-book-canvas",
+ tabIndex: 0,
+ ...(onClick ? buttonModeProps : {}),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__unstableEditorStyles, {
+ styles: settings.styles
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("style", {
+ children:
+ // Forming a "block formatting context" to prevent margin collapsing.
+ // @see https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Block_formatting_context
+ `.is-root-container { display: flow-root; }
+ body { position: relative; padding: 32px !important; }` + STYLE_BOOK_IFRAME_STYLES + buttonModeStyles
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Examples, {
+ className: dist_clsx('edit-site-style-book__examples', {
+ 'is-wide': sizes.width > 600
+ }),
+ examples: examples,
+ category: category,
+ label: title ? (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Category of blocks, e.g. Text.
+ (0,external_wp_i18n_namespaceObject.__)('Examples of blocks in the %s category'), title) : (0,external_wp_i18n_namespaceObject.__)('Examples of blocks'),
+ isSelected: isSelected,
+ onSelect: onSelect
+ }, category)]
+ });
+};
+const Examples = (0,external_wp_element_namespaceObject.memo)(({
+ className,
+ examples,
+ category,
+ label,
+ isSelected,
+ onSelect
+}) => {
+ const compositeStore = useCompositeStore({
+ orientation: 'vertical'
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Composite, {
+ store: compositeStore,
+ className: className,
+ "aria-label": label,
+ role: "grid",
+ children: examples.filter(example => category ? example.category === category : true).map(example => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Example, {
+ id: `example-${example.name}`,
+ title: example.title,
+ blocks: example.blocks,
+ isSelected: isSelected(example.name),
+ onClick: () => {
+ onSelect?.(example.name);
+ }
+ }, example.name))
+ });
+});
+const Example = ({
+ id,
+ title,
+ blocks,
+ isSelected,
+ onClick
+}) => {
+ const originalSettings = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).getSettings(), []);
+ const settings = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ ...originalSettings,
+ focusMode: false,
+ // Disable "Spotlight mode".
+ __unstableIsPreviewMode: true
+ }), [originalSettings]);
+ // Cache the list of blocks to avoid additional processing when the component is re-rendered.
+ const renderedBlocks = (0,external_wp_element_namespaceObject.useMemo)(() => Array.isArray(blocks) ? blocks : [blocks], [blocks]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ role: "row",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ role: "gridcell",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(CompositeItem, {
+ className: dist_clsx('edit-site-style-book__example', {
+ 'is-selected': isSelected
+ }),
+ id: id,
+ "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Title of a block, e.g. Heading.
+ (0,external_wp_i18n_namespaceObject.__)('Open %s styles in Styles panel'), title),
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {}),
+ role: "button",
+ onClick: onClick,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "edit-site-style-book__example-title",
+ children: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-style-book__example-preview",
+ "aria-hidden": true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Disabled, {
+ className: "edit-site-style-book__example-preview__content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ExperimentalBlockEditorProvider, {
+ value: renderedBlocks,
+ settings: settings,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockList, {
+ renderAppender: false
+ })
+ })
+ })
+ })]
+ })
+ })
+ });
+};
+/* harmony default export */ const style_book = (StyleBook);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-css.js
/**
* WordPress dependencies
*/
@@ -33327,10 +22482,13 @@ function ScreenStyleVariations() {
*/
+
+
+
const {
useGlobalStyle: screen_css_useGlobalStyle,
AdvancedPanel: screen_css_StylesAdvancedPanel
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
function ScreenCSS() {
const description = (0,external_wp_i18n_namespaceObject.__)('Add your own CSS to customize the appearance and layout of your site.');
const [style] = screen_css_useGlobalStyle('', undefined, 'user', {
@@ -33339,24 +22497,29 @@ function ScreenCSS() {
const [inheritedStyle, setStyle] = screen_css_useGlobalStyle('', undefined, 'all', {
shouldDecodeEncode: false
});
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(header, {
- title: (0,external_wp_i18n_namespaceObject.__)('CSS'),
- description: (0,external_React_.createElement)(external_React_.Fragment, null, description, (0,external_React_.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: "https://wordpress.org/documentation/article/css/",
- className: "edit-site-global-styles-screen-css-help-link"
- }, (0,external_wp_i18n_namespaceObject.__)('Learn more about CSS')))
- }), (0,external_React_.createElement)("div", {
- className: "edit-site-global-styles-screen-css"
- }, (0,external_React_.createElement)(screen_css_StylesAdvancedPanel, {
- value: style,
- onChange: setStyle,
- inheritedValue: inheritedStyle
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(header, {
+ title: (0,external_wp_i18n_namespaceObject.__)('CSS'),
+ description: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [description, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: "https://developer.wordpress.org/advanced-administration/wordpress/css/",
+ className: "edit-site-global-styles-screen-css-help-link",
+ children: (0,external_wp_i18n_namespaceObject.__)('Learn more about CSS')
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-global-styles-screen-css",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_css_StylesAdvancedPanel, {
+ value: style,
+ onChange: setStyle,
+ inheritedValue: inheritedStyle
+ })
+ })]
+ });
}
/* harmony default export */ const screen_css = (ScreenCSS);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/revisions/index.js
-
/**
* WordPress dependencies
*/
@@ -33366,6 +22529,7 @@ function ScreenCSS() {
+
/**
* Internal dependencies
*/
@@ -33373,11 +22537,16 @@ function ScreenCSS() {
+
const {
ExperimentalBlockEditorProvider: revisions_ExperimentalBlockEditorProvider,
GlobalStylesContext: revisions_GlobalStylesContext,
- useGlobalStylesOutputWithConfig: revisions_useGlobalStylesOutputWithConfig
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+ useGlobalStylesOutputWithConfig: revisions_useGlobalStylesOutputWithConfig,
+ __unstableBlockStyleVariationOverridesWithConfig
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+const {
+ mergeBaseAndUserConfigs: revisions_mergeBaseAndUserConfigs
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
function revisions_isObjectEmpty(object) {
return !object || Object.keys(object).length === 0;
}
@@ -33390,7 +22559,7 @@ function Revisions({
} = (0,external_wp_element_namespaceObject.useContext)(revisions_GlobalStylesContext);
const mergedConfig = (0,external_wp_element_namespaceObject.useMemo)(() => {
if (!revisions_isObjectEmpty(userConfig) && !revisions_isObjectEmpty(baseConfig)) {
- return mergeBaseAndUserConfigs(baseConfig, userConfig);
+ return revisions_mergeBaseAndUserConfigs(baseConfig, userConfig);
}
return {};
}, [baseConfig, userConfig]);
@@ -33402,33 +22571,172 @@ function Revisions({
}), [originalSettings]);
const [globalStyles] = revisions_useGlobalStylesOutputWithConfig(mergedConfig);
const editorStyles = !revisions_isObjectEmpty(globalStyles) && !revisions_isObjectEmpty(userConfig) ? globalStyles : settings.styles;
- return (0,external_React_.createElement)(editor_canvas_container, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(editor_canvas_container, {
title: (0,external_wp_i18n_namespaceObject.__)('Revisions'),
closeButtonLabel: (0,external_wp_i18n_namespaceObject.__)('Close revisions'),
- enableResizing: true
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.__unstableIframe, {
- className: "edit-site-revisions__iframe",
- name: "revisions",
- tabIndex: 0
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.__unstableEditorStyles, {
- styles: editorStyles
- }), (0,external_React_.createElement)("style", null,
- // Forming a "block formatting context" to prevent margin collapsing.
- // @see https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Block_formatting_context
- `.is-root-container { display: flow-root; }`), (0,external_React_.createElement)(external_wp_components_namespaceObject.Disabled, {
- className: "edit-site-revisions__example-preview__content"
- }, (0,external_React_.createElement)(revisions_ExperimentalBlockEditorProvider, {
- value: renderedBlocksArray,
- settings: settings
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockList, {
- renderAppender: false
- })))));
+ enableResizing: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.__unstableIframe, {
+ className: "edit-site-revisions__iframe",
+ name: "revisions",
+ tabIndex: 0,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("style", {
+ children:
+ // Forming a "block formatting context" to prevent margin collapsing.
+ // @see https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Block_formatting_context
+ `.is-root-container { display: flow-root; }`
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Disabled, {
+ className: "edit-site-revisions__example-preview__content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(revisions_ExperimentalBlockEditorProvider, {
+ value: renderedBlocksArray,
+ settings: settings,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockList, {
+ renderAppender: false
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__unstableEditorStyles, {
+ styles: editorStyles
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(__unstableBlockStyleVariationOverridesWithConfig, {
+ config: mergedConfig
+ })]
+ })
+ })]
+ })
+ });
}
/* harmony default export */ const components_revisions = (Revisions);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-revisions/revisions-buttons.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-revisions/use-global-styles-revisions.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
/**
+ * Internal dependencies
+ */
+
+const SITE_EDITOR_AUTHORS_QUERY = {
+ per_page: -1,
+ _fields: 'id,name,avatar_urls',
+ context: 'view',
+ capabilities: ['edit_theme_options']
+};
+const DEFAULT_QUERY = {
+ per_page: 100,
+ page: 1
+};
+const EMPTY_ARRAY = [];
+const {
+ GlobalStylesContext: use_global_styles_revisions_GlobalStylesContext
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+function useGlobalStylesRevisions({
+ query
+} = {}) {
+ const {
+ user: userConfig
+ } = (0,external_wp_element_namespaceObject.useContext)(use_global_styles_revisions_GlobalStylesContext);
+ const _query = {
+ ...DEFAULT_QUERY,
+ ...query
+ };
+ const {
+ authors,
+ currentUser,
+ isDirty,
+ revisions,
+ isLoadingGlobalStylesRevisions,
+ revisionsCount
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ var _globalStyles$_links$;
+ const {
+ __experimentalGetDirtyEntityRecords,
+ getCurrentUser,
+ getUsers,
+ getRevisions,
+ __experimentalGetCurrentGlobalStylesId,
+ getEntityRecord,
+ isResolving
+ } = select(external_wp_coreData_namespaceObject.store);
+ const dirtyEntityRecords = __experimentalGetDirtyEntityRecords();
+ const _currentUser = getCurrentUser();
+ const _isDirty = dirtyEntityRecords.length > 0;
+ const globalStylesId = __experimentalGetCurrentGlobalStylesId();
+ const globalStyles = globalStylesId ? getEntityRecord('root', 'globalStyles', globalStylesId) : undefined;
+ const _revisionsCount = (_globalStyles$_links$ = globalStyles?._links?.['version-history']?.[0]?.count) !== null && _globalStyles$_links$ !== void 0 ? _globalStyles$_links$ : 0;
+ const globalStylesRevisions = getRevisions('root', 'globalStyles', globalStylesId, _query) || EMPTY_ARRAY;
+ const _authors = getUsers(SITE_EDITOR_AUTHORS_QUERY) || EMPTY_ARRAY;
+ const _isResolving = isResolving('getRevisions', ['root', 'globalStyles', globalStylesId, _query]);
+ return {
+ authors: _authors,
+ currentUser: _currentUser,
+ isDirty: _isDirty,
+ revisions: globalStylesRevisions,
+ isLoadingGlobalStylesRevisions: _isResolving,
+ revisionsCount: _revisionsCount
+ };
+ }, [query]);
+ return (0,external_wp_element_namespaceObject.useMemo)(() => {
+ if (!authors.length || isLoadingGlobalStylesRevisions) {
+ return {
+ revisions: EMPTY_ARRAY,
+ hasUnsavedChanges: isDirty,
+ isLoading: true,
+ revisionsCount
+ };
+ }
+
+ // Adds author details to each revision.
+ const _modifiedRevisions = revisions.map(revision => {
+ return {
+ ...revision,
+ author: authors.find(author => author.id === revision.author)
+ };
+ });
+ const fetchedRevisionsCount = revisions.length;
+ if (fetchedRevisionsCount) {
+ // Flags the most current saved revision.
+ if (_modifiedRevisions[0].id !== 'unsaved' && _query.page === 1) {
+ _modifiedRevisions[0].isLatest = true;
+ }
+
+ // Adds an item for unsaved changes.
+ if (isDirty && userConfig && Object.keys(userConfig).length > 0 && currentUser && _query.page === 1) {
+ const unsavedRevision = {
+ id: 'unsaved',
+ styles: userConfig?.styles,
+ settings: userConfig?.settings,
+ _links: userConfig?._links,
+ author: {
+ name: currentUser?.name,
+ avatar_urls: currentUser?.avatar_urls
+ },
+ modified: new Date()
+ };
+ _modifiedRevisions.unshift(unsavedRevision);
+ }
+ if (_query.page === Math.ceil(revisionsCount / _query.per_page)) {
+ // Adds an item for the default theme styles.
+ _modifiedRevisions.push({
+ id: 'parent',
+ styles: {},
+ settings: {}
+ });
+ }
+ }
+ return {
+ revisions: _modifiedRevisions,
+ hasUnsavedChanges: isDirty,
+ isLoading: false,
+ revisionsCount
+ };
+ }, [isDirty, revisions, currentUser, authors, userConfig, isLoadingGlobalStylesRevisions]);
+}
+
+;// CONCATENATED MODULE: external ["wp","date"]
+const external_wp_date_namespaceObject = window["wp"]["date"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-revisions/revisions-buttons.js
+/**
* External dependencies
*/
@@ -33447,10 +22755,12 @@ function Revisions({
* Internal dependencies
*/
+
+
const DAY_IN_MILLISECONDS = 60 * 60 * 1000 * 24;
const {
getGlobalStylesChanges
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
function ChangesSummary({
revision,
previousRevision
@@ -33461,12 +22771,13 @@ function ChangesSummary({
if (!changes.length) {
return null;
}
- return (0,external_React_.createElement)("ul", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
"data-testid": "global-styles-revision-changes",
- className: "edit-site-global-styles-screen-revisions__changes"
- }, changes.map(change => (0,external_React_.createElement)("li", {
- key: change
- }, change)));
+ className: "edit-site-global-styles-screen-revisions__changes",
+ children: changes.map(change => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ children: change
+ }, change))
+ });
}
/**
@@ -33529,77 +22840,116 @@ function RevisionsButtons({
const {
datetimeAbbreviated
} = (0,external_wp_date_namespaceObject.getSettings)().formats;
- return (0,external_React_.createElement)("ol", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ol", {
className: "edit-site-global-styles-screen-revisions__revisions-list",
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Global styles revisions list'),
- role: "group"
- }, userRevisions.map((revision, index) => {
- const {
- id,
- author,
- modified
- } = revision;
- const isUnsaved = 'unsaved' === id;
- // Unsaved changes are created by the current user.
- const revisionAuthor = isUnsaved ? currentUser : author;
- const authorDisplayName = revisionAuthor?.name || (0,external_wp_i18n_namespaceObject.__)('User');
- const authorAvatar = revisionAuthor?.avatar_urls?.['48'];
- const isFirstItem = index === 0;
- const isSelected = selectedRevisionId ? selectedRevisionId === id : isFirstItem;
- const areStylesEqual = !canApplyRevision && isSelected;
- const isReset = 'parent' === id;
- const modifiedDate = (0,external_wp_date_namespaceObject.getDate)(modified);
- const displayDate = modified && dateNowInMs - modifiedDate.getTime() > DAY_IN_MILLISECONDS ? (0,external_wp_date_namespaceObject.dateI18n)(datetimeAbbreviated, modifiedDate) : (0,external_wp_date_namespaceObject.humanTimeDiff)(modified);
- const revisionLabel = getRevisionLabel(id, authorDisplayName, (0,external_wp_date_namespaceObject.dateI18n)(datetimeAbbreviated, modifiedDate), areStylesEqual);
- return (0,external_React_.createElement)("li", {
- className: classnames_default()('edit-site-global-styles-screen-revisions__revision-item', {
- 'is-selected': isSelected,
- 'is-active': areStylesEqual,
- 'is-reset': isReset
- }),
- key: id,
- "aria-current": isSelected
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "edit-site-global-styles-screen-revisions__revision-button",
- disabled: isSelected,
- onClick: () => {
- onChange(revision);
- },
- "aria-label": revisionLabel
- }, isReset ? (0,external_React_.createElement)("span", {
- className: "edit-site-global-styles-screen-revisions__description"
- }, (0,external_wp_i18n_namespaceObject.__)('Default styles'), (0,external_React_.createElement)("span", {
- className: "edit-site-global-styles-screen-revisions__meta"
- }, currentThemeName)) : (0,external_React_.createElement)("span", {
- className: "edit-site-global-styles-screen-revisions__description"
- }, isUnsaved ? (0,external_React_.createElement)("span", {
- className: "edit-site-global-styles-screen-revisions__date"
- }, (0,external_wp_i18n_namespaceObject.__)('(Unsaved)')) : (0,external_React_.createElement)("time", {
- className: "edit-site-global-styles-screen-revisions__date",
- dateTime: modified
- }, displayDate), (0,external_React_.createElement)("span", {
- className: "edit-site-global-styles-screen-revisions__meta"
- }, (0,external_React_.createElement)("img", {
- alt: authorDisplayName,
- src: authorAvatar
- }), authorDisplayName), isSelected && (0,external_React_.createElement)(ChangesSummary, {
- revision: revision,
- previousRevision: index < userRevisions.length ? userRevisions[index + 1] : {}
- }))), isSelected && (areStylesEqual ? (0,external_React_.createElement)("p", {
- className: "edit-site-global-styles-screen-revisions__applied-text"
- }, (0,external_wp_i18n_namespaceObject.__)('These styles are already applied to your site.')) : (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- disabled: areStylesEqual,
- size: "compact",
- variant: "primary",
- className: "edit-site-global-styles-screen-revisions__apply-button",
- onClick: onApplyRevision
- }, isReset ? (0,external_wp_i18n_namespaceObject.__)('Reset to defaults') : (0,external_wp_i18n_namespaceObject.__)('Apply'))));
- }));
+ role: "group",
+ children: userRevisions.map((revision, index) => {
+ const {
+ id,
+ author,
+ modified
+ } = revision;
+ const isUnsaved = 'unsaved' === id;
+ // Unsaved changes are created by the current user.
+ const revisionAuthor = isUnsaved ? currentUser : author;
+ const authorDisplayName = revisionAuthor?.name || (0,external_wp_i18n_namespaceObject.__)('User');
+ const authorAvatar = revisionAuthor?.avatar_urls?.['48'];
+ const isFirstItem = index === 0;
+ const isSelected = selectedRevisionId ? selectedRevisionId === id : isFirstItem;
+ const areStylesEqual = !canApplyRevision && isSelected;
+ const isReset = 'parent' === id;
+ const modifiedDate = (0,external_wp_date_namespaceObject.getDate)(modified);
+ const displayDate = modified && dateNowInMs - modifiedDate.getTime() > DAY_IN_MILLISECONDS ? (0,external_wp_date_namespaceObject.dateI18n)(datetimeAbbreviated, modifiedDate) : (0,external_wp_date_namespaceObject.humanTimeDiff)(modified);
+ const revisionLabel = getRevisionLabel(id, authorDisplayName, (0,external_wp_date_namespaceObject.dateI18n)(datetimeAbbreviated, modifiedDate), areStylesEqual);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ className: dist_clsx('edit-site-global-styles-screen-revisions__revision-item', {
+ 'is-selected': isSelected,
+ 'is-active': areStylesEqual,
+ 'is-reset': isReset
+ }),
+ "aria-current": isSelected,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "edit-site-global-styles-screen-revisions__revision-button",
+ __experimentalIsFocusable: true,
+ disabled: isSelected,
+ onClick: () => {
+ onChange(revision);
+ },
+ "aria-label": revisionLabel,
+ children: isReset ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
+ className: "edit-site-global-styles-screen-revisions__description",
+ children: [(0,external_wp_i18n_namespaceObject.__)('Default styles'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "edit-site-global-styles-screen-revisions__meta",
+ children: currentThemeName
+ })]
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
+ className: "edit-site-global-styles-screen-revisions__description",
+ children: [isUnsaved ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "edit-site-global-styles-screen-revisions__date",
+ children: (0,external_wp_i18n_namespaceObject.__)('(Unsaved)')
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("time", {
+ className: "edit-site-global-styles-screen-revisions__date",
+ dateTime: modified,
+ children: displayDate
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
+ className: "edit-site-global-styles-screen-revisions__meta",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ alt: authorDisplayName,
+ src: authorAvatar
+ }), authorDisplayName]
+ }), isSelected && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ChangesSummary, {
+ revision: revision,
+ previousRevision: index < userRevisions.length ? userRevisions[index + 1] : {}
+ })]
+ })
+ }), isSelected && (areStylesEqual ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-site-global-styles-screen-revisions__applied-text",
+ children: (0,external_wp_i18n_namespaceObject.__)('These styles are already applied to your site.')
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "compact",
+ variant: "primary",
+ className: "edit-site-global-styles-screen-revisions__apply-button",
+ onClick: onApplyRevision,
+ children: isReset ? (0,external_wp_i18n_namespaceObject.__)('Reset to defaults') : (0,external_wp_i18n_namespaceObject.__)('Apply')
+ }))]
+ }, id);
+ })
+ });
}
/* harmony default export */ const revisions_buttons = (RevisionsButtons);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/pagination/index.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/previous.js
+/**
+ * WordPress dependencies
+ */
+
+
+const previous = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"
+ })
+});
+/* harmony default export */ const library_previous = (previous);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/next.js
+/**
+ * WordPress dependencies
+ */
+
+const next = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"
+ })
+});
+/* harmony default export */ const library_next = (next);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/pagination/index.js
/**
* External dependencies
*/
@@ -33610,6 +22960,9 @@ function RevisionsButtons({
*/
+
+
+
function Pagination({
currentPage,
numPages,
@@ -33620,55 +22973,71 @@ function Pagination({
buttonVariant = 'tertiary',
label = (0,external_wp_i18n_namespaceObject.__)('Pagination Navigation')
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
expanded: false,
as: "nav",
"aria-label": label,
spacing: 3,
justify: "flex-start",
- className: classnames_default()('edit-site-pagination', className)
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- variant: "muted",
- className: "edit-site-pagination__total"
- },
- // translators: %s: Total number of patterns.
- (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Total number of patterns.
- (0,external_wp_i18n_namespaceObject._n)('%s item', '%s items', totalItems), totalItems)), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- expanded: false,
- spacing: 1
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: buttonVariant,
- onClick: () => changePage(1),
- disabled: disabled || currentPage === 1,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('First page')
- }, "\xAB"), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: buttonVariant,
- onClick: () => changePage(currentPage - 1),
- disabled: disabled || currentPage === 1,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Previous page')
- }, "\u2039")), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- variant: "muted"
- }, (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %1$s: Current page number, %2$s: Total number of pages.
- (0,external_wp_i18n_namespaceObject._x)('%1$s of %2$s', 'paging'), currentPage, numPages)), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- expanded: false,
- spacing: 1
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: buttonVariant,
- onClick: () => changePage(currentPage + 1),
- disabled: disabled || currentPage === numPages,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Next page')
- }, "\u203A"), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: buttonVariant,
- onClick: () => changePage(numPages),
- disabled: disabled || currentPage === numPages,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Last page')
- }, "\xBB")));
+ className: dist_clsx('edit-site-pagination', className),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ className: "edit-site-pagination__total",
+ children:
+ // translators: %s: Total number of patterns.
+ (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Total number of patterns.
+ (0,external_wp_i18n_namespaceObject._n)('%s item', '%s items', totalItems), totalItems)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ expanded: false,
+ spacing: 1,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: buttonVariant,
+ onClick: () => changePage(1),
+ __experimentalIsFocusable: true,
+ disabled: disabled || currentPage === 1,
+ label: (0,external_wp_i18n_namespaceObject.__)('First page'),
+ icon: library_previous,
+ size: "compact"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: buttonVariant,
+ onClick: () => changePage(currentPage - 1),
+ __experimentalIsFocusable: true,
+ disabled: disabled || currentPage === 1,
+ label: (0,external_wp_i18n_namespaceObject.__)('Previous page'),
+ icon: chevron_left,
+ size: "compact"
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ children: (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %1$s: Current page number, %2$s: Total number of pages.
+ (0,external_wp_i18n_namespaceObject._x)('%1$s of %2$s', 'paging'), currentPage, numPages)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ expanded: false,
+ spacing: 1,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: buttonVariant,
+ onClick: () => changePage(currentPage + 1),
+ __experimentalIsFocusable: true,
+ disabled: disabled || currentPage === numPages,
+ label: (0,external_wp_i18n_namespaceObject.__)('Next page'),
+ icon: chevron_right,
+ size: "compact"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: buttonVariant,
+ onClick: () => changePage(numPages),
+ __experimentalIsFocusable: true,
+ disabled: disabled || currentPage === numPages,
+ label: (0,external_wp_i18n_namespaceObject.__)('Last page'),
+ icon: library_next,
+ size: "compact"
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-revisions/index.js
-
/**
* WordPress dependencies
*/
@@ -33689,10 +23058,13 @@ function Pagination({
+
+
+
const {
GlobalStylesContext: screen_revisions_GlobalStylesContext,
areGlobalStyleConfigsEqual: screen_revisions_areGlobalStyleConfigsEqual
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
const PAGE_SIZE = 10;
function ScreenRevisions() {
const {
@@ -33706,7 +23078,7 @@ function ScreenRevisions() {
blocks,
editorCanvasContainerView
} = (0,external_wp_data_namespaceObject.useSelect)(select => ({
- editorCanvasContainerView: unlock(select(store_store)).getEditorCanvasContainerView(),
+ editorCanvasContainerView: lock_unlock_unlock(select(store)).getEditorCanvasContainerView(),
blocks: select(external_wp_blockEditor_namespaceObject.store).getBlocks()
}), []);
const [currentPage, setCurrentPage] = (0,external_wp_element_namespaceObject.useState)(1);
@@ -33727,7 +23099,7 @@ function ScreenRevisions() {
const [isLoadingRevisionWithUnsavedChanges, setIsLoadingRevisionWithUnsavedChanges] = (0,external_wp_element_namespaceObject.useState)(false);
const {
setEditorCanvasContainerView
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
const selectedRevisionMatchesEditorStyles = screen_revisions_areGlobalStyleConfigsEqual(currentlySelectedRevision, currentEditorGlobalStyles);
const onCloseRevisions = () => {
goTo('/'); // Return to global styles main panel.
@@ -33735,20 +23107,10 @@ function ScreenRevisions() {
setEditorCanvasContainerView(canvasContainerView);
};
const restoreRevision = revision => {
- setUserConfig(() => ({
- styles: revision?.styles,
- settings: revision?.settings
- }));
+ setUserConfig(() => revision);
setIsLoadingRevisionWithUnsavedChanges(false);
onCloseRevisions();
};
- const selectRevision = revision => {
- setCurrentlySelectedRevision({
- styles: revision?.styles || {},
- settings: revision?.settings || {},
- id: revision?.id
- });
- };
(0,external_wp_element_namespaceObject.useEffect)(() => {
if (!editorCanvasContainerView || !editorCanvasContainerView.startsWith('global-styles-revisions')) {
goTo('/'); // Return to global styles main panel.
@@ -33771,11 +23133,7 @@ function ScreenRevisions() {
* See: https://github.com/WordPress/gutenberg/issues/55866
*/
if (shouldSelectFirstItem) {
- setCurrentlySelectedRevision({
- styles: firstRevision?.styles || {},
- settings: firstRevision?.settings || {},
- id: firstRevision?.id
- });
+ setCurrentlySelectedRevision(firstRevision);
}
}, [shouldSelectFirstItem, firstRevision]);
@@ -33783,51 +23141,55 @@ function ScreenRevisions() {
// and it is different from the current editor styles.
const isLoadButtonEnabled = !!currentlySelectedRevisionId && currentlySelectedRevisionId !== 'unsaved' && !selectedRevisionMatchesEditorStyles;
const hasRevisions = !!currentRevisions.length;
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(header, {
- title: revisionsCount &&
- // translators: %s: number of revisions.
- (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Revisions (%s)'), revisionsCount),
- description: (0,external_wp_i18n_namespaceObject.__)('Click on previously saved styles to preview them. To restore a selected version to the editor, hit "Apply." When you\'re ready, use the Save button to save your changes.'),
- onBack: onCloseRevisions
- }), !hasRevisions && (0,external_React_.createElement)(external_wp_components_namespaceObject.Spinner, {
- className: "edit-site-global-styles-screen-revisions__loading"
- }), hasRevisions && (editorCanvasContainerView === 'global-styles-revisions:style-book' ? (0,external_React_.createElement)(style_book, {
- userConfig: currentlySelectedRevision,
- isSelected: () => {},
- onClose: () => {
- setEditorCanvasContainerView('global-styles-revisions');
- }
- }) : (0,external_React_.createElement)(components_revisions, {
- blocks: blocks,
- userConfig: currentlySelectedRevision,
- closeButtonLabel: (0,external_wp_i18n_namespaceObject.__)('Close revisions')
- })), (0,external_React_.createElement)(revisions_buttons, {
- onChange: selectRevision,
- selectedRevisionId: currentlySelectedRevisionId,
- userRevisions: currentRevisions,
- canApplyRevision: isLoadButtonEnabled,
- onApplyRevision: () => hasUnsavedChanges ? setIsLoadingRevisionWithUnsavedChanges(true) : restoreRevision(currentlySelectedRevision)
- }), numPages > 1 && (0,external_React_.createElement)("div", {
- className: "edit-site-global-styles-screen-revisions__footer"
- }, (0,external_React_.createElement)(Pagination, {
- className: "edit-site-global-styles-screen-revisions__pagination",
- currentPage: currentPage,
- numPages: numPages,
- changePage: setCurrentPage,
- totalItems: revisionsCount,
- disabled: isLoading,
- label: (0,external_wp_i18n_namespaceObject.__)('Global Styles pagination navigation')
- })), isLoadingRevisionWithUnsavedChanges && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
- isOpen: isLoadingRevisionWithUnsavedChanges,
- confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Apply'),
- onConfirm: () => restoreRevision(currentlySelectedRevision),
- onCancel: () => setIsLoadingRevisionWithUnsavedChanges(false)
- }, (0,external_wp_i18n_namespaceObject.__)('Any unsaved changes will be lost when you apply this revision.')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(header, {
+ title: revisionsCount &&
+ // translators: %s: number of revisions.
+ (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Revisions (%s)'), revisionsCount),
+ description: (0,external_wp_i18n_namespaceObject.__)('Click on previously saved styles to preview them. To restore a selected version to the editor, hit "Apply." When you\'re ready, use the Save button to save your changes.'),
+ onBack: onCloseRevisions
+ }), !hasRevisions && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {
+ className: "edit-site-global-styles-screen-revisions__loading"
+ }), hasRevisions && (editorCanvasContainerView === 'global-styles-revisions:style-book' ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(style_book, {
+ userConfig: currentlySelectedRevision,
+ isSelected: () => {},
+ onClose: () => {
+ setEditorCanvasContainerView('global-styles-revisions');
+ }
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(components_revisions, {
+ blocks: blocks,
+ userConfig: currentlySelectedRevision,
+ closeButtonLabel: (0,external_wp_i18n_namespaceObject.__)('Close revisions')
+ })), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(revisions_buttons, {
+ onChange: setCurrentlySelectedRevision,
+ selectedRevisionId: currentlySelectedRevisionId,
+ userRevisions: currentRevisions,
+ canApplyRevision: isLoadButtonEnabled,
+ onApplyRevision: () => hasUnsavedChanges ? setIsLoadingRevisionWithUnsavedChanges(true) : restoreRevision(currentlySelectedRevision)
+ }), numPages > 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-global-styles-screen-revisions__footer",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Pagination, {
+ className: "edit-site-global-styles-screen-revisions__pagination",
+ currentPage: currentPage,
+ numPages: numPages,
+ changePage: setCurrentPage,
+ totalItems: revisionsCount,
+ disabled: isLoading,
+ label: (0,external_wp_i18n_namespaceObject.__)('Global Styles pagination navigation')
+ })
+ }), isLoadingRevisionWithUnsavedChanges && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
+ isOpen: isLoadingRevisionWithUnsavedChanges,
+ confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Apply'),
+ onConfirm: () => restoreRevision(currentlySelectedRevision),
+ onCancel: () => setIsLoadingRevisionWithUnsavedChanges(false),
+ size: "medium",
+ children: (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to apply this revision? Any unsaved changes will be lost.')
+ })]
+ });
}
/* harmony default export */ const screen_revisions = (ScreenRevisions);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/ui.js
-
/**
* WordPress dependencies
*/
@@ -33858,14 +23220,18 @@ function ScreenRevisions() {
-const ui_SLOT_FILL_NAME = 'GlobalStylesMenu';
+
+
+
+
+const SLOT_FILL_NAME = 'GlobalStylesMenu';
const {
useGlobalStylesReset: ui_useGlobalStylesReset
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
const {
Slot: GlobalStylesMenuSlot,
Fill: GlobalStylesMenuFill
-} = (0,external_wp_components_namespaceObject.createSlotFill)(ui_SLOT_FILL_NAME);
+} = (0,external_wp_components_namespaceObject.createSlotFill)(SLOT_FILL_NAME);
function GlobalStylesActionMenu() {
const [canReset, onReset] = ui_useGlobalStylesReset();
const {
@@ -33886,7 +23252,7 @@ function GlobalStylesActionMenu() {
}, []);
const {
setEditorCanvasContainerView
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
const {
goTo
} = (0,external_wp_components_namespaceObject.__experimentalUseNavigator)();
@@ -33894,31 +23260,46 @@ function GlobalStylesActionMenu() {
setEditorCanvasContainerView('global-styles-css');
goTo('/css');
};
- return (0,external_React_.createElement)(GlobalStylesMenuFill, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
- icon: more_vertical,
- label: (0,external_wp_i18n_namespaceObject.__)('More')
- }, ({
- onClose
- }) => (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, canEditCSS && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: loadCustomCSS
- }, (0,external_wp_i18n_namespaceObject.__)('Additional CSS')), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- toggle('core/edit-site', 'welcomeGuideStyles');
- onClose();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Welcome Guide'))), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- onReset();
- onClose();
- },
- disabled: !canReset
- }, (0,external_wp_i18n_namespaceObject.__)('Reset styles'))))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesMenuFill, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
+ icon: more_vertical,
+ label: (0,external_wp_i18n_namespaceObject.__)('More'),
+ toggleProps: {
+ size: 'compact'
+ },
+ children: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ children: [canEditCSS && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: loadCustomCSS,
+ children: (0,external_wp_i18n_namespaceObject.__)('Additional CSS')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ toggle('core/edit-site', 'welcomeGuideStyles');
+ onClose();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Welcome Guide')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ onReset();
+ onClose();
+ },
+ disabled: !canReset,
+ children: (0,external_wp_i18n_namespaceObject.__)('Reset styles')
+ })
+ })]
+ })
+ })
+ });
}
function GlobalStylesNavigationScreen({
className,
...props
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
className: ['edit-site-global-styles-sidebar__navigator-screen', className].filter(Boolean).join(' '),
...props
});
@@ -33928,13 +23309,13 @@ function BlockStylesNavigationScreens({
blockStyles,
blockName
}) {
- return blockStyles.map((style, index) => (0,external_React_.createElement)(GlobalStylesNavigationScreen, {
- key: index,
- path: parentMenu + '/variations/' + style.name
- }, (0,external_React_.createElement)(screen_block, {
- name: blockName,
- variation: style.name
- })));
+ return blockStyles.map((style, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesNavigationScreen, {
+ path: parentMenu + '/variations/' + style.name,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_block, {
+ name: blockName,
+ variation: style.name
+ })
+ }, index));
}
function ContextScreens({
name,
@@ -33946,22 +23327,25 @@ function ContextScreens({
} = select(external_wp_blocks_namespaceObject.store);
return getBlockStyles(name);
}, [name]);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(GlobalStylesNavigationScreen, {
- path: parentMenu + '/colors/palette'
- }, (0,external_React_.createElement)(screen_color_palette, {
- name: name
- })), !!blockStyleVariations?.length && (0,external_React_.createElement)(BlockStylesNavigationScreens, {
- parentMenu: parentMenu,
- blockStyles: blockStyleVariations,
- blockName: name
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesNavigationScreen, {
+ path: parentMenu + '/colors/palette',
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_color_palette, {
+ name: name
+ })
+ }), !!blockStyleVariations?.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockStylesNavigationScreens, {
+ parentMenu: parentMenu,
+ blockStyles: blockStyleVariations,
+ blockName: name
+ })]
+ });
}
function GlobalStylesStyleBook() {
const navigator = (0,external_wp_components_namespaceObject.__experimentalUseNavigator)();
const {
path
} = navigator.location;
- return (0,external_React_.createElement)(style_book, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(style_book, {
isSelected: blockName =>
// Match '/blocks/core%2Fbutton' and
// '/blocks/core%2Fbutton/typography', but not
@@ -34014,7 +23398,7 @@ function GlobalStylesEditorCanvasContainerLink() {
goTo,
location
} = (0,external_wp_components_namespaceObject.__experimentalUseNavigator)();
- const editorCanvasContainerView = (0,external_wp_data_namespaceObject.useSelect)(select => unlock(select(store_store)).getEditorCanvasContainerView(), []);
+ const editorCanvasContainerView = (0,external_wp_data_namespaceObject.useSelect)(select => lock_unlock_unlock(select(store)).getEditorCanvasContainerView(), []);
const path = location?.path;
const isRevisionsOpen = path === '/revisions';
@@ -34060,56 +23444,75 @@ function GlobalStylesEditorCanvasContainerLink() {
}
function GlobalStylesUI() {
const blocks = (0,external_wp_blocks_namespaceObject.getBlockTypes)();
- const editorCanvasContainerView = (0,external_wp_data_namespaceObject.useSelect)(select => unlock(select(store_store)).getEditorCanvasContainerView(), []);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorProvider, {
+ const editorCanvasContainerView = (0,external_wp_data_namespaceObject.useSelect)(select => lock_unlock_unlock(select(store)).getEditorCanvasContainerView(), []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalNavigatorProvider, {
className: "edit-site-global-styles-sidebar__navigator-provider",
- initialPath: "/"
- }, (0,external_React_.createElement)(GlobalStylesNavigationScreen, {
- path: "/"
- }, (0,external_React_.createElement)(screen_root, null)), (0,external_React_.createElement)(GlobalStylesNavigationScreen, {
- path: "/variations"
- }, (0,external_React_.createElement)(screen_style_variations, null)), (0,external_React_.createElement)(GlobalStylesNavigationScreen, {
- path: "/blocks"
- }, (0,external_React_.createElement)(screen_block_list, null)), (0,external_React_.createElement)(GlobalStylesNavigationScreen, {
- path: "/typography"
- }, (0,external_React_.createElement)(screen_typography, null)), (0,external_React_.createElement)(GlobalStylesNavigationScreen, {
- path: "/typography/text"
- }, (0,external_React_.createElement)(screen_typography_element, {
- element: "text"
- })), (0,external_React_.createElement)(GlobalStylesNavigationScreen, {
- path: "/typography/link"
- }, (0,external_React_.createElement)(screen_typography_element, {
- element: "link"
- })), (0,external_React_.createElement)(GlobalStylesNavigationScreen, {
- path: "/typography/heading"
- }, (0,external_React_.createElement)(screen_typography_element, {
- element: "heading"
- })), (0,external_React_.createElement)(GlobalStylesNavigationScreen, {
- path: "/typography/caption"
- }, (0,external_React_.createElement)(screen_typography_element, {
- element: "caption"
- })), (0,external_React_.createElement)(GlobalStylesNavigationScreen, {
- path: "/typography/button"
- }, (0,external_React_.createElement)(screen_typography_element, {
- element: "button"
- })), (0,external_React_.createElement)(GlobalStylesNavigationScreen, {
- path: "/colors"
- }, (0,external_React_.createElement)(screen_colors, null)), (0,external_React_.createElement)(GlobalStylesNavigationScreen, {
- path: "/layout"
- }, (0,external_React_.createElement)(screen_layout, null)), (0,external_React_.createElement)(GlobalStylesNavigationScreen, {
- path: "/css"
- }, (0,external_React_.createElement)(screen_css, null)), (0,external_React_.createElement)(GlobalStylesNavigationScreen, {
- path: '/revisions'
- }, (0,external_React_.createElement)(screen_revisions, null)), blocks.map(block => (0,external_React_.createElement)(GlobalStylesNavigationScreen, {
- key: 'menu-block-' + block.name,
- path: '/blocks/' + encodeURIComponent(block.name)
- }, (0,external_React_.createElement)(screen_block, {
- name: block.name
- }))), (0,external_React_.createElement)(ContextScreens, null), blocks.map(block => (0,external_React_.createElement)(ContextScreens, {
- key: 'screens-block-' + block.name,
- name: block.name,
- parentMenu: '/blocks/' + encodeURIComponent(block.name)
- })), 'style-book' === editorCanvasContainerView && (0,external_React_.createElement)(GlobalStylesStyleBook, null), (0,external_React_.createElement)(GlobalStylesActionMenu, null), (0,external_React_.createElement)(GlobalStylesBlockLink, null), (0,external_React_.createElement)(GlobalStylesEditorCanvasContainerLink, null));
+ initialPath: "/",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesNavigationScreen, {
+ path: "/",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_root, {})
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesNavigationScreen, {
+ path: "/variations",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_style_variations, {})
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesNavigationScreen, {
+ path: "/blocks",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_block_list, {})
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesNavigationScreen, {
+ path: "/typography",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_typography, {})
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesNavigationScreen, {
+ path: "/typography/text",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_typography_element, {
+ element: "text"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesNavigationScreen, {
+ path: "/typography/link",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_typography_element, {
+ element: "link"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesNavigationScreen, {
+ path: "/typography/heading",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_typography_element, {
+ element: "heading"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesNavigationScreen, {
+ path: "/typography/caption",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_typography_element, {
+ element: "caption"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesNavigationScreen, {
+ path: "/typography/button",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_typography_element, {
+ element: "button"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesNavigationScreen, {
+ path: "/colors",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_colors, {})
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesNavigationScreen, {
+ path: "/shadows",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ScreenShadows, {})
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesNavigationScreen, {
+ path: "/shadows/edit/:category/:slug",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ScreenShadowsEdit, {})
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesNavigationScreen, {
+ path: "/layout",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_layout, {})
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesNavigationScreen, {
+ path: "/css",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_css, {})
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesNavigationScreen, {
+ path: "/revisions",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_revisions, {})
+ }), blocks.map(block => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesNavigationScreen, {
+ path: '/blocks/' + encodeURIComponent(block.name),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(screen_block, {
+ name: block.name
+ })
+ }, 'menu-block-' + block.name)), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ContextScreens, {}), blocks.map(block => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ContextScreens, {
+ name: block.name,
+ parentMenu: '/blocks/' + encodeURIComponent(block.name)
+ }, 'screens-block-' + block.name)), 'style-book' === editorCanvasContainerView && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesStyleBook, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesActionMenu, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesBlockLink, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesEditorCanvasContainerLink, {})]
+ });
}
/* harmony default export */ const ui = (GlobalStylesUI);
@@ -34117,13 +23520,63 @@ function GlobalStylesUI() {
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/index.js
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-edit-mode/global-styles-sidebar.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles-sidebar/default-sidebar.js
/**
* WordPress dependencies
*/
+/**
+ * Internal dependencies
+ */
+
+
+
+
+const {
+ ComplementaryArea,
+ ComplementaryAreaMoreMenuItem
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
+function DefaultSidebar({
+ className,
+ identifier,
+ title,
+ icon,
+ children,
+ closeLabel,
+ header,
+ headerClassName,
+ panelClassName,
+ isActiveByDefault
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ComplementaryArea, {
+ className: className,
+ scope: "core",
+ identifier: identifier,
+ title: title,
+ smallScreenTitle: title,
+ icon: icon,
+ closeLabel: closeLabel,
+ header: header,
+ headerClassName: headerClassName,
+ panelClassName: panelClassName,
+ isActiveByDefault: isActiveByDefault,
+ children: children
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ComplementaryAreaMoreMenuItem, {
+ scope: "core",
+ identifier: identifier,
+ icon: icon,
+ children: title
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles-sidebar/index.js
+/**
+ * WordPress dependencies
+ */
+
@@ -34140,6 +23593,11 @@ function GlobalStylesUI() {
+
+
+const {
+ interfaceStore: global_styles_sidebar_interfaceStore
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
function GlobalStylesSidebar() {
const {
shouldClearCanvasContainerView,
@@ -34151,13 +23609,13 @@ function GlobalStylesSidebar() {
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getActiveComplementaryArea
- } = select(store);
+ } = select(global_styles_sidebar_interfaceStore);
const {
getEditorCanvasContainerView,
getCanvasMode
- } = unlock(select(store_store));
+ } = lock_unlock_unlock(select(store));
const canvasContainerView = getEditorCanvasContainerView();
- const _isVisualEditorMode = 'visual' === select(store_store).getEditorMode();
+ const _isVisualEditorMode = 'visual' === select(external_wp_editor_namespaceObject.store).getEditorMode();
const _isEditCanvasMode = 'edit' === getCanvasMode();
const _showListViewByDefault = select(external_wp_preferences_namespaceObject.store).get('core', 'showListViewByDefault');
const {
@@ -34168,7 +23626,7 @@ function GlobalStylesSidebar() {
const globalStyles = globalStylesId ? getEntityRecord('root', 'globalStyles', globalStylesId) : undefined;
return {
isStyleBookOpened: 'style-book' === canvasContainerView,
- shouldClearCanvasContainerView: 'edit-site/global-styles' !== getActiveComplementaryArea('core/edit-site') || !_isVisualEditorMode || !_isEditCanvasMode,
+ shouldClearCanvasContainerView: 'edit-site/global-styles' !== getActiveComplementaryArea('core') || !_isVisualEditorMode || !_isEditCanvasMode,
showListViewByDefault: _showListViewByDefault,
hasRevisions: !!globalStyles?._links?.['version-history']?.[0]?.count,
isRevisionsStyleBookOpened: 'global-styles-revisions:style-book' === canvasContainerView,
@@ -34177,7 +23635,7 @@ function GlobalStylesSidebar() {
}, []);
const {
setEditorCanvasContainerView
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
(0,external_wp_element_namespaceObject.useEffect)(() => {
if (shouldClearCanvasContainerView) {
setEditorCanvasContainerView(undefined);
@@ -34220,43 +23678,51 @@ function GlobalStylesSidebar() {
setIsListViewOpened(isStyleBookOpened && showListViewByDefault);
setEditorCanvasContainerView(isStyleBookOpened ? undefined : 'style-book');
};
- return (0,external_React_.createElement)(DefaultSidebar, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DefaultSidebar, {
className: "edit-site-global-styles-sidebar",
identifier: "edit-site/global-styles",
title: (0,external_wp_i18n_namespaceObject.__)('Styles'),
icon: library_styles,
closeLabel: (0,external_wp_i18n_namespaceObject.__)('Close Styles'),
panelClassName: "edit-site-global-styles-sidebar__panel",
- header: (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
+ header: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
className: "edit-site-global-styles-sidebar__header",
- role: "menubar",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Styles actions')
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexBlock, {
- style: {
- minWidth: 'min-content'
- }
- }, (0,external_React_.createElement)("strong", null, (0,external_wp_i18n_namespaceObject.__)('Styles'))), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: library_seen,
- label: (0,external_wp_i18n_namespaceObject.__)('Style Book'),
- isPressed: isStyleBookOpened || isRevisionsStyleBookOpened,
- disabled: shouldClearCanvasContainerView,
- onClick: toggleStyleBook
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- label: (0,external_wp_i18n_namespaceObject.__)('Revisions'),
- icon: library_backup,
- onClick: toggleRevisions,
- disabled: !hasRevisions,
- isPressed: isRevisionsOpened || isRevisionsStyleBookOpened
- })), (0,external_React_.createElement)(GlobalStylesMenuSlot, null))
- }, (0,external_React_.createElement)(ui, null));
+ gap: 1,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexBlock, {
+ style: {
+ minWidth: 'min-content'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ className: "edit-site-global-styles-sidebar__header-title",
+ children: (0,external_wp_i18n_namespaceObject.__)('Styles')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: library_seen,
+ label: (0,external_wp_i18n_namespaceObject.__)('Style Book'),
+ isPressed: isStyleBookOpened || isRevisionsStyleBookOpened,
+ __experimentalIsFocusable: true,
+ disabled: shouldClearCanvasContainerView,
+ onClick: toggleStyleBook,
+ size: "compact"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Revisions'),
+ icon: library_backup,
+ onClick: toggleRevisions,
+ __experimentalIsFocusable: true,
+ disabled: !hasRevisions,
+ isPressed: isRevisionsOpened || isRevisionsStyleBookOpened,
+ size: "compact"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesMenuSlot, {})]
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ui, {})
+ });
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-edit-mode/constants.js
-const SIDEBAR_TEMPLATE = 'edit-site/template';
-const SIDEBAR_BLOCK = 'edit-site/block-inspector';
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-edit-mode/settings-header/index.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/save-button/index.js
/**
* WordPress dependencies
*/
@@ -34266,69 +23732,133 @@ const SIDEBAR_BLOCK = 'edit-site/block-inspector';
-/**
- * Internal dependencies
- */
-
-
-const {
- Tabs: settings_header_Tabs
-} = unlock(external_wp_components_namespaceObject.privateApis);
-const SettingsHeader = (_, ref) => {
- const postTypeLabel = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_editor_namespaceObject.store).getPostTypeLabel(), []);
- return (0,external_React_.createElement)(settings_header_Tabs.TabList, {
- ref: ref
- }, (0,external_React_.createElement)(settings_header_Tabs.Tab, {
- tabId: SIDEBAR_TEMPLATE
- // Used for focus management in the SettingsSidebar component.
- ,
- "data-tab-id": SIDEBAR_TEMPLATE
- }, postTypeLabel), (0,external_React_.createElement)(settings_header_Tabs.Tab, {
- tabId: SIDEBAR_BLOCK
- // Used for focus management in the SettingsSidebar component.
- ,
- "data-tab-id": SIDEBAR_BLOCK
- }, (0,external_wp_i18n_namespaceObject.__)('Block')));
-};
-/* harmony default export */ const settings_header = ((0,external_wp_element_namespaceObject.forwardRef)(SettingsHeader));
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-edit-mode/sidebar-card/index.js
/**
- * External dependencies
+ * Internal dependencies
*/
-/**
- * WordPress dependencies
- */
-function SidebarCard({
- className,
- title,
+
+const {
+ useLocation: save_button_useLocation
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+function SaveButton({
+ className = 'edit-site-save-button__button',
+ variant = 'primary',
+ showTooltip = true,
+ showReviewMessage,
icon,
- description,
- actions,
- children
+ size,
+ __next40pxDefaultSize = false
}) {
- return (0,external_React_.createElement)("div", {
- className: classnames_default()('edit-site-sidebar-card', className)
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- className: "edit-site-sidebar-card__icon",
- icon: icon
- }), (0,external_React_.createElement)("div", {
- className: "edit-site-sidebar-card__content"
- }, (0,external_React_.createElement)("div", {
- className: "edit-site-sidebar-card__header"
- }, (0,external_React_.createElement)("h2", {
- className: "edit-site-sidebar-card__title"
- }, title), actions), (0,external_React_.createElement)("div", {
- className: "edit-site-sidebar-card__description"
- }, description), children));
+ const {
+ params
+ } = save_button_useLocation();
+ const {
+ setIsSaveViewOpened
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const {
+ saveDirtyEntities
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(external_wp_editor_namespaceObject.store));
+ const {
+ dirtyEntityRecords
+ } = (0,external_wp_editor_namespaceObject.useEntitiesSavedStatesIsDirty)();
+ const {
+ isSaving,
+ isSaveViewOpen,
+ previewingThemeName
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ isSavingEntityRecord,
+ isResolving
+ } = select(external_wp_coreData_namespaceObject.store);
+ const {
+ isSaveViewOpened
+ } = select(store);
+ const isActivatingTheme = isResolving('activateTheme');
+ const currentlyPreviewingThemeId = currentlyPreviewingTheme();
+ return {
+ isSaving: dirtyEntityRecords.some(record => isSavingEntityRecord(record.kind, record.name, record.key)) || isActivatingTheme,
+ isSaveViewOpen: isSaveViewOpened(),
+ // Do not call `getTheme` with null, it will cause a request to
+ // the server.
+ previewingThemeName: currentlyPreviewingThemeId ? select(external_wp_coreData_namespaceObject.store).getTheme(currentlyPreviewingThemeId)?.name?.rendered : undefined
+ };
+ }, [dirtyEntityRecords]);
+ const hasDirtyEntities = !!dirtyEntityRecords.length;
+ let isOnlyCurrentEntityDirty;
+ // Check if the current entity is the only entity with changes.
+ // We have some extra logic for `wp_global_styles` for now, that
+ // is used in navigation sidebar.
+ if (dirtyEntityRecords.length === 1) {
+ if (params.postId) {
+ isOnlyCurrentEntityDirty = `${dirtyEntityRecords[0].key}` === params.postId && dirtyEntityRecords[0].name === params.postType;
+ } else if (params.path?.includes('wp_global_styles')) {
+ isOnlyCurrentEntityDirty = dirtyEntityRecords[0].name === 'globalStyles';
+ }
+ }
+ const disabled = isSaving || !hasDirtyEntities && !isPreviewingTheme();
+ const getLabel = () => {
+ if (isPreviewingTheme()) {
+ if (isSaving) {
+ return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: The name of theme to be activated. */
+ (0,external_wp_i18n_namespaceObject.__)('Activating %s'), previewingThemeName);
+ } else if (disabled) {
+ return (0,external_wp_i18n_namespaceObject.__)('Saved');
+ } else if (hasDirtyEntities) {
+ return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: The name of theme to be activated. */
+ (0,external_wp_i18n_namespaceObject.__)('Activate %s & Save'), previewingThemeName);
+ }
+ return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: The name of theme to be activated. */
+ (0,external_wp_i18n_namespaceObject.__)('Activate %s'), previewingThemeName);
+ }
+ if (isSaving) {
+ return (0,external_wp_i18n_namespaceObject.__)('Saving');
+ }
+ if (disabled) {
+ return (0,external_wp_i18n_namespaceObject.__)('Saved');
+ }
+ if (!isOnlyCurrentEntityDirty && showReviewMessage) {
+ return (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %d: number of unsaved changes (number).
+ (0,external_wp_i18n_namespaceObject._n)('Review %d change…', 'Review %d changes…', dirtyEntityRecords.length), dirtyEntityRecords.length);
+ }
+ return (0,external_wp_i18n_namespaceObject.__)('Save');
+ };
+ const label = getLabel();
+ const onClick = isOnlyCurrentEntityDirty ? () => saveDirtyEntities({
+ dirtyEntityRecords
+ }) : () => setIsSaveViewOpened(true);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: variant,
+ className: className,
+ "aria-disabled": disabled,
+ "aria-expanded": isSaveViewOpen,
+ isBusy: isSaving,
+ onClick: disabled ? undefined : onClick,
+ label: label
+ /*
+ * We want the tooltip to show the keyboard shortcut only when the
+ * button does something, i.e. when it's not disabled.
+ */,
+ shortcut: disabled ? undefined : external_wp_keycodes_namespaceObject.displayShortcut.primary('s')
+ /*
+ * Displaying the keyboard shortcut conditionally makes the tooltip
+ * itself show conditionally. This would trigger a full-rerendering
+ * of the button that we want to avoid. By setting `showTooltip`,
+ * the tooltip is always rendered even when there's no keyboard shortcut.
+ */,
+ showTooltip: showTooltip,
+ icon: icon,
+ __next40pxDefaultSize: __next40pxDefaultSize,
+ size: size,
+ children: label
+ });
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-edit-mode/page-panels/page-content.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/utils/use-activate-theme.js
/**
* WordPress dependencies
*/
@@ -34340,231 +23870,71 @@ function SidebarCard({
* Internal dependencies
*/
-const {
- BlockQuickNavigation
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
-function PageContent() {
- const clientIdsTree = (0,external_wp_data_namespaceObject.useSelect)(select => unlock(select(external_wp_blockEditor_namespaceObject.store)).getEnabledClientIdsTree(), []);
- const clientIds = (0,external_wp_element_namespaceObject.useMemo)(() => clientIdsTree.map(({
- clientId
- }) => clientId), [clientIdsTree]);
- return (0,external_React_.createElement)(BlockQuickNavigation, {
- clientIds: clientIds
- });
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-edit-mode/page-panels/page-status.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-
-
-
+const {
+ useHistory: use_activate_theme_useHistory
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
/**
- * Internal dependencies
+ * This should be refactored to use the REST API, once the REST API can activate themes.
+ *
+ * @return {Function} A function that activates the theme.
*/
-
-
-const {
- PostPanelRow
-} = unlock(external_wp_editor_namespaceObject.privateApis);
-const STATUS_OPTIONS = [{
- label: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('Draft'), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- variant: "muted"
- }, (0,external_wp_i18n_namespaceObject.__)('Not ready to publish.'))),
- value: 'draft'
-}, {
- label: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('Pending'), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- variant: "muted"
- }, (0,external_wp_i18n_namespaceObject.__)('Waiting for review before publishing.'))),
- value: 'pending'
-}, {
- label: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('Private'), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- variant: "muted"
- }, (0,external_wp_i18n_namespaceObject.__)('Only visible to site admins and editors.'))),
- value: 'private'
-}, {
- label: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('Scheduled'), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- variant: "muted"
- }, (0,external_wp_i18n_namespaceObject.__)('Publish automatically on a chosen date.'))),
- value: 'future'
-}, {
- label: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('Published'), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- variant: "muted"
- }, (0,external_wp_i18n_namespaceObject.__)('Visible to everyone.'))),
- value: 'publish'
-}];
-function PageStatus({
- postType,
- postId,
- status,
- password,
- date
-}) {
- const [showPassword, setShowPassword] = (0,external_wp_element_namespaceObject.useState)(!!password);
- const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(PageStatus);
+function useActivateTheme() {
+ const history = use_activate_theme_useHistory();
const {
- editEntityRecord
+ startResolution,
+ finishResolution
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const {
- createErrorNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
- // Memoize popoverProps to avoid returning a new object every time.
- const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
- // Anchor the popover to the middle of the entire row so that it doesn't
- // move around when the label changes.
- anchor: popoverAnchor,
- 'aria-label': (0,external_wp_i18n_namespaceObject.__)('Change status'),
- placement: 'bottom-end'
- }), [popoverAnchor]);
- const saveStatus = async ({
- status: newStatus = status,
- password: newPassword = password,
- date: newDate = date
- }) => {
- try {
- await editEntityRecord('postType', postType, postId, {
- status: newStatus,
- date: newDate,
- password: newPassword
- });
- } catch (error) {
- const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : (0,external_wp_i18n_namespaceObject.__)('An error occurred while updating the status');
- createErrorNotice(errorMessage, {
- type: 'snackbar'
- });
- }
- };
- const handleTogglePassword = value => {
- setShowPassword(value);
- if (!value) {
- saveStatus({
- password: ''
+ return async () => {
+ if (isPreviewingTheme()) {
+ const activationURL = 'themes.php?action=activate&stylesheet=' + currentlyPreviewingTheme() + '&_wpnonce=' + window.WP_BLOCK_THEME_ACTIVATE_NONCE;
+ startResolution('activateTheme');
+ await window.fetch(activationURL);
+ finishResolution('activateTheme');
+ // Remove the wp_theme_preview query param: we've finished activating
+ // the queue and are switching to normal Site Editor.
+ const {
+ params
+ } = history.getLocationWithParams();
+ history.replace({
+ ...params,
+ wp_theme_preview: undefined
});
}
};
- const handleStatus = value => {
- let newDate = date;
- let newPassword = password;
- if (value === 'publish') {
- if (new Date(date) > new Date()) {
- newDate = null;
- }
- } else if (value === 'future') {
- if (!date || new Date(date) < new Date()) {
- newDate = new Date();
- newDate.setDate(newDate.getDate() + 7);
- }
- } else if (value === 'private' && password) {
- setShowPassword(false);
- newPassword = '';
- }
- saveStatus({
- status: value,
- date: newDate,
- password: newPassword
- });
- };
- return (0,external_React_.createElement)(PostPanelRow, {
- label: (0,external_wp_i18n_namespaceObject.__)('Status')
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Dropdown, {
- contentClassName: "edit-site-change-status__content",
- popoverProps: popoverProps,
- focusOnMount: true,
- ref: setPopoverAnchor,
- renderToggle: ({
- onToggle
- }) => (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "edit-site-summary-field__trigger",
- variant: "tertiary",
- onClick: onToggle
- }, (0,external_React_.createElement)(StatusLabel, {
- status: password ? 'protected' : status
- })),
- renderContent: ({
- onClose
- }) => (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
- title: (0,external_wp_i18n_namespaceObject.__)('Status'),
- onClose: onClose
- }), (0,external_React_.createElement)("form", null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 5
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.RadioControl, {
- className: "edit-site-change-status__options",
- hideLabelFromVision: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Status'),
- options: STATUS_OPTIONS,
- onChange: handleStatus,
- selected: status
- }), status !== 'private' && (0,external_React_.createElement)("fieldset", {
- className: "edit-site-change-status__password-fieldset"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- as: "legend",
- className: "edit-site-change-status__password-legend",
- size: "11",
- lineHeight: 1.4,
- weight: 500,
- upperCase: true
- }, (0,external_wp_i18n_namespaceObject.__)('Password')), (0,external_React_.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Hide this page behind a password'),
- checked: showPassword,
- onChange: handleTogglePassword
- }), showPassword && (0,external_React_.createElement)("div", {
- className: "edit-site-change-status__password-input"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "label",
- htmlFor: `edit-site-change-status__password-input-${instanceId}`
- }, (0,external_wp_i18n_namespaceObject.__)('Create password')), (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- onChange: value => saveStatus({
- password: value
- }),
- value: password,
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Use a secure password'),
- type: "text",
- id: `edit-site-change-status__password-input-${instanceId}`
- }))))))
- }));
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-edit-mode/page-panels/page-summary.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/utils/use-actual-current-theme.js
/**
* WordPress dependencies
*/
+const ACTIVE_THEMES_URL = '/wp/v2/themes?status=active';
+function useActualCurrentTheme() {
+ const [currentTheme, setCurrentTheme] = (0,external_wp_element_namespaceObject.useState)();
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ // Set the `wp_theme_preview` to empty string to bypass the createThemePreviewMiddleware.
+ const path = (0,external_wp_url_namespaceObject.addQueryArgs)(ACTIVE_THEMES_URL, {
+ context: 'edit',
+ wp_theme_preview: ''
+ });
+ external_wp_apiFetch_default()({
+ path
+ }).then(activeThemes => setCurrentTheme(activeThemes[0]))
+ // Do nothing
+ .catch(() => {});
+ }, []);
+ return currentTheme;
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/save-panel/index.js
/**
- * Internal dependencies
+ * External dependencies
*/
-function PageSummary({
- status,
- date,
- password,
- postId,
- postType
-}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: 0
- }, (0,external_React_.createElement)(PageStatus, {
- status: status,
- date: date,
- password: password,
- postId: postId,
- postType: postType
- }), (0,external_React_.createElement)(external_wp_editor_namespaceObject.PostSchedulePanel, null), (0,external_React_.createElement)(external_wp_editor_namespaceObject.PostTemplatePanel, null), (0,external_React_.createElement)(external_wp_editor_namespaceObject.PostURLPanel, null), (0,external_React_.createElement)(external_wp_editor_namespaceObject.PostAuthorPanel, null));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-edit-mode/page-panels/index.js
/**
* WordPress dependencies
@@ -34575,9 +23945,6 @@ function PageSummary({
-
-
-
/**
* Internal dependencies
*/
@@ -34585,72 +23952,149 @@ function PageSummary({
-function PagePanels() {
+
+
+
+const {
+ EntitiesSavedStatesExtensible,
+ NavigableRegion
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
+const EntitiesSavedStatesForPreview = ({
+ onClose
+}) => {
+ var _currentTheme$name$re, _previewingTheme$name;
+ const isDirtyProps = (0,external_wp_editor_namespaceObject.useEntitiesSavedStatesIsDirty)();
+ let activateSaveLabel;
+ if (isDirtyProps.isDirty) {
+ activateSaveLabel = (0,external_wp_i18n_namespaceObject.__)('Activate & Save');
+ } else {
+ activateSaveLabel = (0,external_wp_i18n_namespaceObject.__)('Activate');
+ }
+ const currentTheme = useActualCurrentTheme();
+ const previewingTheme = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getCurrentTheme(), []);
+ const additionalPrompt = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %1$s: The name of active theme, %2$s: The name of theme to be activated. */
+ (0,external_wp_i18n_namespaceObject.__)('Saving your changes will change your active theme from %1$s to %2$s.'), (_currentTheme$name$re = currentTheme?.name?.rendered) !== null && _currentTheme$name$re !== void 0 ? _currentTheme$name$re : '...', (_previewingTheme$name = previewingTheme?.name?.rendered) !== null && _previewingTheme$name !== void 0 ? _previewingTheme$name : '...')
+ });
+ const activateTheme = useActivateTheme();
+ const onSave = async values => {
+ await activateTheme();
+ return values;
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EntitiesSavedStatesExtensible, {
+ ...isDirtyProps,
+ additionalPrompt,
+ close: onClose,
+ onSave,
+ saveEnabled: true,
+ saveLabel: activateSaveLabel
+ });
+};
+const _EntitiesSavedStates = ({
+ onClose,
+ renderDialog = undefined
+}) => {
+ if (isPreviewingTheme()) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EntitiesSavedStatesForPreview, {
+ onClose: onClose
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.EntitiesSavedStates, {
+ close: onClose,
+ renderDialog: renderDialog
+ });
+};
+function SavePanel() {
const {
- id,
- type,
- hasResolved,
- status,
- date,
- password,
- title,
- modified,
- renderingMode
+ isSaveViewOpen,
+ canvasMode,
+ isDirty,
+ isSaving
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
- getEditedPostContext
- } = select(store_store);
- const {
- getEditedEntityRecord,
- hasFinishedResolution
+ __experimentalGetDirtyEntityRecords,
+ isSavingEntityRecord,
+ isResolving
} = select(external_wp_coreData_namespaceObject.store);
+ const dirtyEntityRecords = __experimentalGetDirtyEntityRecords();
+ const isActivatingTheme = isResolving('activateTheme');
const {
- getRenderingMode
- } = select(external_wp_editor_namespaceObject.store);
- const context = getEditedPostContext();
- const queryArgs = ['postType', context.postType, context.postId];
- const page = getEditedEntityRecord(...queryArgs);
+ isSaveViewOpened,
+ getCanvasMode
+ } = lock_unlock_unlock(select(store));
+
+ // The currently selected entity to display.
+ // Typically template or template part in the site editor.
return {
- hasResolved: hasFinishedResolution('getEditedEntityRecord', queryArgs),
- title: page?.title,
- id: page?.id,
- type: page?.type,
- status: page?.status,
- date: page?.date,
- password: page?.password,
- modified: page?.modified,
- renderingMode: getRenderingMode()
+ isSaveViewOpen: isSaveViewOpened(),
+ canvasMode: getCanvasMode(),
+ isDirty: dirtyEntityRecords.length > 0,
+ isSaving: dirtyEntityRecords.some(record => isSavingEntityRecord(record.kind, record.name, record.key)) || isActivatingTheme
};
}, []);
- if (!hasResolved) {
- return null;
+ const {
+ setIsSaveViewOpened
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const onClose = () => setIsSaveViewOpened(false);
+ if (canvasMode === 'view') {
+ return isSaveViewOpen ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ className: "edit-site-save-panel__modal",
+ onRequestClose: onClose,
+ __experimentalHideHeader: true,
+ contentLabel: (0,external_wp_i18n_namespaceObject.__)('Save site, content, and template changes'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(_EntitiesSavedStates, {
+ onClose: onClose
+ })
+ }) : null;
}
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, null, (0,external_React_.createElement)(SidebarCard, {
- title: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title),
- icon: library_page,
- description: (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, null, (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Human-readable time difference, e.g. "2 days ago".
- (0,external_wp_i18n_namespaceObject.__)('Last edited %s'), (0,external_wp_date_namespaceObject.humanTimeDiff)(modified))))
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Summary')
- }, (0,external_React_.createElement)(PageSummary, {
- status: status,
- date: date,
- password: password,
- postId: id,
- postType: type
- })), renderingMode !== 'post-only' && (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Content')
- }, (0,external_React_.createElement)(PageContent, null)), (0,external_React_.createElement)(external_wp_editor_namespaceObject.PostLastRevisionPanel, null), (0,external_React_.createElement)(external_wp_editor_namespaceObject.PostTaxonomiesPanel, null), (0,external_React_.createElement)(external_wp_editor_namespaceObject.PostFeaturedImagePanel, null), (0,external_React_.createElement)(external_wp_editor_namespaceObject.PostExcerptPanel, null), (0,external_React_.createElement)(external_wp_editor_namespaceObject.PostDiscussionPanel, null), (0,external_React_.createElement)(external_wp_editor_namespaceObject.PageAttributesPanel, null));
+ const activateSaveEnabled = isPreviewingTheme() || isDirty;
+ const disabled = isSaving || !activateSaveEnabled;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(NavigableRegion, {
+ className: dist_clsx('edit-site-layout__actions', {
+ 'is-entity-save-view-open': isSaveViewOpen
+ }),
+ ariaLabel: (0,external_wp_i18n_namespaceObject.__)('Save panel'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('edit-site-editor__toggle-save-panel', {
+ 'screen-reader-text': isSaveViewOpen
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "secondary",
+ className: "edit-site-editor__toggle-save-panel-button",
+ onClick: () => setIsSaveViewOpened(true),
+ "aria-haspopup": "dialog",
+ disabled: disabled,
+ __experimentalIsFocusable: true,
+ children: (0,external_wp_i18n_namespaceObject.__)('Open save panel')
+ })
+ }), isSaveViewOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(_EntitiesSavedStates, {
+ onClose: onClose,
+ renderDialog: true
+ })]
+ });
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-edit-mode/template-panel/replace-template-button.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/download.js
/**
* WordPress dependencies
*/
+const download = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"
+ })
+});
+/* harmony default export */ const library_download = (download);
+
+;// CONCATENATED MODULE: external ["wp","blob"]
+const external_wp_blob_namespaceObject = window["wp"]["blob"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/more-menu/site-export.js
+/**
+ * WordPress dependencies
+ */
@@ -34658,70 +24102,46 @@ function PagePanels() {
-/**
- * Internal dependencies
- */
-function ReplaceTemplateButton({
- onClick,
- availableTemplates
-}) {
- const {
- editEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const [showModal, setShowModal] = (0,external_wp_element_namespaceObject.useState)(false);
- const onClose = () => {
- setShowModal(false);
- };
+function SiteExport() {
const {
- postId,
- postType
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- return {
- postId: select(store_store).getEditedPostId(),
- postType: select(store_store).getEditedPostType()
- };
- }, []);
- const onTemplateSelect = async selectedTemplate => {
- onClose(); // Close the template suggestions modal first.
- onClick();
- await editEntityRecord('postType', postType, postId, {
- blocks: selectedTemplate.blocks,
- content: (0,external_wp_blocks_namespaceObject.serialize)(selectedTemplate.blocks)
- });
- };
- if (!availableTemplates.length || availableTemplates.length < 1) {
- return null;
+ createErrorNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ async function handleExport() {
+ try {
+ const response = await external_wp_apiFetch_default()({
+ path: '/wp-block-editor/v1/export',
+ parse: false,
+ headers: {
+ Accept: 'application/zip'
+ }
+ });
+ const blob = await response.blob();
+ const contentDisposition = response.headers.get('content-disposition');
+ const contentDispositionMatches = contentDisposition.match(/=(.+)\.zip/);
+ const fileName = contentDispositionMatches[1] ? contentDispositionMatches[1] : 'edit-site-export';
+ (0,external_wp_blob_namespaceObject.downloadBlob)(fileName + '.zip', blob, 'application/zip');
+ } catch (errorResponse) {
+ let error = {};
+ try {
+ error = await errorResponse.json();
+ } catch (e) {}
+ const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : (0,external_wp_i18n_namespaceObject.__)('An error occurred while creating the site export.');
+ createErrorNotice(errorMessage, {
+ type: 'snackbar'
+ });
+ }
}
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- info: (0,external_wp_i18n_namespaceObject.__)('Replace the contents of this template with another.'),
- onClick: () => setShowModal(true)
- }, (0,external_wp_i18n_namespaceObject.__)('Replace template')), showModal && (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
- title: (0,external_wp_i18n_namespaceObject.__)('Choose a template'),
- onRequestClose: onClose,
- overlayClassName: "edit-site-template-panel__replace-template-modal",
- isFullScreen: true
- }, (0,external_React_.createElement)("div", {
- className: "edit-site-template-panel__replace-template-modal__content"
- }, (0,external_React_.createElement)(TemplatesList, {
- availableTemplates: availableTemplates,
- onSelect: onTemplateSelect
- }))));
-}
-function TemplatesList({
- availableTemplates,
- onSelect
-}) {
- const shownTemplates = (0,external_wp_compose_namespaceObject.useAsyncList)(availableTemplates);
- return (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.__experimentalBlockPatternsList, {
- label: (0,external_wp_i18n_namespaceObject.__)('Templates'),
- blockPatterns: availableTemplates,
- shownPatterns: shownTemplates,
- onClickPattern: onSelect
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ role: "menuitem",
+ icon: library_download,
+ onClick: handleExport,
+ info: (0,external_wp_i18n_namespaceObject.__)('Download your theme with updated templates and styles.'),
+ children: (0,external_wp_i18n_namespaceObject._x)('Export', 'site exporter menu item')
});
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-edit-mode/template-panel/hooks.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/more-menu/welcome-guide-menu-item.js
/**
* WordPress dependencies
*/
@@ -34730,64 +24150,17 @@ function TemplatesList({
-/**
- * Internal dependencies
- */
-
-
-
-function injectThemeAttributeInBlockTemplateContent(block, currentThemeStylesheet) {
- block.innerBlocks = block.innerBlocks.map(innerBlock => {
- return injectThemeAttributeInBlockTemplateContent(innerBlock, currentThemeStylesheet);
- });
- if (block.name === 'core/template-part' && block.attributes.theme === undefined) {
- block.attributes.theme = currentThemeStylesheet;
- }
- return block;
-}
-function preparePatterns(patterns, template, currentThemeStylesheet) {
- // Filter out duplicates.
- const filterOutDuplicatesByName = (currentItem, index, items) => index === items.findIndex(item => currentItem.name === item.name);
-
- // Filter out core/directory patterns not included in theme.json.
- const filterOutExcludedPatternSources = pattern => !EXCLUDED_PATTERN_SOURCES.includes(pattern.source);
-
- // Filter only the patterns that are compatible with the current template.
- const filterCompatiblePatterns = pattern => pattern.templateTypes?.includes(template.slug);
- return patterns.filter((pattern, index, items) => filterOutExcludedPatternSources(pattern) && filterOutDuplicatesByName(pattern, index, items) && filterCompatiblePatterns(pattern)).map(pattern => ({
- ...pattern,
- keywords: pattern.keywords || [],
- type: PATTERN_TYPES.theme,
- blocks: (0,external_wp_blocks_namespaceObject.parse)(pattern.content, {
- __unstableSkipMigrationLogs: true
- }).map(block => injectThemeAttributeInBlockTemplateContent(block, currentThemeStylesheet))
- }));
-}
-function useAvailablePatterns(template) {
+function WelcomeGuideMenuItem() {
const {
- blockPatterns,
- restBlockPatterns,
- currentThemeStylesheet
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- var _settings$__experimen;
- const {
- getSettings
- } = unlock(select(store_store));
- const settings = getSettings();
- return {
- blockPatterns: (_settings$__experimen = settings.__experimentalAdditionalBlockPatterns) !== null && _settings$__experimen !== void 0 ? _settings$__experimen : settings.__experimentalBlockPatterns,
- restBlockPatterns: select(external_wp_coreData_namespaceObject.store).getBlockPatterns(),
- currentThemeStylesheet: select(external_wp_coreData_namespaceObject.store).getCurrentTheme().stylesheet
- };
- }, []);
- return (0,external_wp_element_namespaceObject.useMemo)(() => {
- const mergedPatterns = [...(blockPatterns || []), ...(restBlockPatterns || [])];
- return preparePatterns(mergedPatterns, template, currentThemeStylesheet);
- }, [blockPatterns, restBlockPatterns, template, currentThemeStylesheet]);
+ toggle
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => toggle('core/edit-site', 'welcomeGuide'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Welcome Guide')
+ });
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-edit-mode/template-panel/template-actions.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/more-menu/index.js
/**
* WordPress dependencies
*/
@@ -34795,7 +24168,6 @@ function useAvailablePatterns(template) {
-
/**
* Internal dependencies
*/
@@ -34803,104 +24175,28 @@ function useAvailablePatterns(template) {
-function Actions({
- template
-}) {
- const availablePatterns = useAvailablePatterns(template);
- const {
- revertTemplate
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const isRevertable = isTemplateRevertable(template);
- if (!isRevertable && (!availablePatterns.length || availablePatterns.length < 1)) {
- return null;
- }
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
- icon: more_vertical,
- label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
- className: "edit-site-template-card__actions",
- toggleProps: {
- isSmall: true
- }
- }, ({
- onClose
- }) => (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, isRevertable && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- info: (0,external_wp_i18n_namespaceObject.__)('Use the template as supplied by the theme.'),
- onClick: () => {
- revertTemplate(template);
- onClose();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Clear customizations')), (0,external_React_.createElement)(ReplaceTemplateButton, {
- availableTemplates: availablePatterns,
- template: template,
- onClick: onClose
- })));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-edit-mode/template-panel/template-areas.js
-
-/**
- * WordPress dependencies
- */
-
-
-
+const {
+ ToolsMoreMenuGroup,
+ PreferencesModal
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
+function MoreMenu() {
+ const isBlockBasedTheme = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ return select(external_wp_coreData_namespaceObject.store).getCurrentTheme().is_block_theme;
+ }, []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ToolsMoreMenuGroup, {
+ children: [isBlockBasedTheme && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SiteExport, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideMenuItem, {})]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferencesModal, {})]
+ });
+}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/block-editor/use-editor-iframe-props.js
/**
- * Internal dependencies
+ * External dependencies
*/
-function TemplateAreaItem({
- area,
- clientId
-}) {
- const {
- selectBlock,
- toggleBlockHighlight
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- const templatePartArea = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const defaultAreas = select(external_wp_editor_namespaceObject.store).__experimentalGetDefaultTemplatePartAreas();
- return defaultAreas.find(defaultArea => defaultArea.area === area);
- }, [area]);
- const highlightBlock = () => toggleBlockHighlight(clientId, true);
- const cancelHighlightBlock = () => toggleBlockHighlight(clientId, false);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "edit-site-template-card__template-areas-item",
- icon: templatePartArea?.icon,
- onMouseOver: highlightBlock,
- onMouseLeave: cancelHighlightBlock,
- onFocus: highlightBlock,
- onBlur: cancelHighlightBlock,
- onClick: () => {
- selectBlock(clientId);
- }
- }, templatePartArea?.label);
-}
-function template_areas_TemplateAreas() {
- const templateParts = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getCurrentTemplateTemplateParts(), []);
- if (!templateParts.length) {
- return null;
- }
- return (0,external_React_.createElement)("section", {
- className: "edit-site-template-card__template-areas"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
- level: 3,
- className: "edit-site-template-card__template-areas-title"
- }, (0,external_wp_i18n_namespaceObject.__)('Areas')), (0,external_React_.createElement)("ul", {
- className: "edit-site-template-card__template-areas-list"
- }, templateParts.map(({
- templatePart,
- block
- }) => (0,external_React_.createElement)("li", {
- key: block.clientId
- }, (0,external_React_.createElement)(TemplateAreaItem, {
- area: templatePart.area,
- clientId: block.clientId
- })))));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-edit-mode/template-panel/index.js
/**
* WordPress dependencies
@@ -34911,99 +24207,73 @@ function template_areas_TemplateAreas() {
-
/**
* Internal dependencies
*/
-
-
-const CARD_ICONS = {
- wp_block: library_symbol,
- wp_navigation: library_navigation
-};
-function TemplatePanel() {
- var _CARD_ICONS$record$ty;
+function useEditorIframeProps() {
const {
- title,
- description,
- icon,
- record
+ canvasMode,
+ currentPostIsTrashed
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
- getEditedPostType,
- getEditedPostId
- } = select(store_store);
- const {
- getEditedEntityRecord
- } = select(external_wp_coreData_namespaceObject.store);
- const {
- __experimentalGetTemplateInfo: getTemplateInfo
- } = select(external_wp_editor_namespaceObject.store);
- const type = getEditedPostType();
- const postId = getEditedPostId();
- const _record = getEditedEntityRecord('postType', type, postId);
- const info = getTemplateInfo(_record);
+ getCanvasMode
+ } = lock_unlock_unlock(select(store));
return {
- title: info.title,
- description: info.description,
- icon: info.icon,
- record: _record
+ canvasMode: getCanvasMode(),
+ currentPostIsTrashed: select(external_wp_editor_namespaceObject.store).getCurrentPostAttribute('status') === 'trash'
};
}, []);
- if (!title && !description) {
- return null;
- }
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, null, (0,external_React_.createElement)(SidebarCard, {
- className: "edit-site-template-card",
- title: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title),
- icon: (_CARD_ICONS$record$ty = CARD_ICONS[record?.type]) !== null && _CARD_ICONS$record$ty !== void 0 ? _CARD_ICONS$record$ty : icon,
- description: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(description),
- actions: (0,external_React_.createElement)(Actions, {
- template: record
- })
- }, (0,external_React_.createElement)(template_areas_TemplateAreas, null))), (0,external_React_.createElement)(external_wp_editor_namespaceObject.PostLastRevisionPanel, null), (0,external_React_.createElement)(external_wp_editor_namespaceObject.PostTaxonomiesPanel, null), (0,external_React_.createElement)(external_wp_editor_namespaceObject.PostFeaturedImagePanel, null), (0,external_React_.createElement)(external_wp_editor_namespaceObject.PostExcerptPanel, null), (0,external_React_.createElement)(external_wp_editor_namespaceObject.PostDiscussionPanel, null), (0,external_React_.createElement)(external_wp_editor_namespaceObject.PageAttributesPanel, null));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/plugin-template-setting-panel/index.js
-/**
- * Defines an extensibility slot for the Template sidebar.
- */
-
-/**
- * WordPress dependencies
- */
-
-const {
- Fill,
- Slot: plugin_template_setting_panel_Slot
-} = (0,external_wp_components_namespaceObject.createSlotFill)('PluginTemplateSettingPanel');
-const PluginTemplateSettingPanel = Fill;
-PluginTemplateSettingPanel.Slot = plugin_template_setting_panel_Slot;
-
-/**
- * Renders items in the Template Sidebar below the main information
- * like the Template Card.
- *
- * @example
- * ```jsx
- * // Using ESNext syntax
- * import { PluginTemplateSettingPanel } from '@wordpress/edit-site';
- *
- * const MyTemplateSettingTest = () => (
- * <PluginTemplateSettingPanel>
- * <p>Hello, World!</p>
- * </PluginTemplateSettingPanel>
- * );
- * ```
- *
- * @return {Component} The component to be rendered.
- */
-/* harmony default export */ const plugin_template_setting_panel = (PluginTemplateSettingPanel);
+ const {
+ setCanvasMode
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
+ const [isFocused, setIsFocused] = (0,external_wp_element_namespaceObject.useState)(false);
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (canvasMode === 'edit') {
+ setIsFocused(false);
+ }
+ }, [canvasMode]);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-edit-mode/index.js
+ // In view mode, make the canvas iframe be perceived and behave as a button
+ // to switch to edit mode, with a meaningful label and no title attribute.
+ const viewModeIframeProps = {
+ 'aria-label': (0,external_wp_i18n_namespaceObject.__)('Edit'),
+ 'aria-disabled': currentPostIsTrashed,
+ title: null,
+ role: 'button',
+ tabIndex: 0,
+ onFocus: () => setIsFocused(true),
+ onBlur: () => setIsFocused(false),
+ onKeyDown: event => {
+ const {
+ keyCode
+ } = event;
+ if ((keyCode === external_wp_keycodes_namespaceObject.ENTER || keyCode === external_wp_keycodes_namespaceObject.SPACE) && !currentPostIsTrashed) {
+ event.preventDefault();
+ setCanvasMode('edit');
+ }
+ },
+ onClick: () => {
+ setCanvasMode('edit');
+ },
+ onClickCapture: event => {
+ if (currentPostIsTrashed) {
+ event.preventDefault();
+ event.stopPropagation();
+ }
+ },
+ readonly: true
+ };
+ return {
+ className: dist_clsx('edit-site-visual-editor__editor-canvas', {
+ 'is-focused': isFocused && canvasMode === 'view'
+ }),
+ ...(canvasMode === 'view' ? viewModeIframeProps : {})
+ };
+}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/routes/use-title.js
/**
* WordPress dependencies
*/
@@ -35015,263 +24285,75 @@ PluginTemplateSettingPanel.Slot = plugin_template_setting_panel_Slot;
-
/**
* Internal dependencies
*/
-
-
-
-
-
-
-
-
-
-const {
- Tabs: sidebar_edit_mode_Tabs
-} = unlock(external_wp_components_namespaceObject.privateApis);
const {
- Slot: InspectorSlot,
- Fill: InspectorFill
-} = (0,external_wp_components_namespaceObject.createSlotFill)('EditSiteSidebarInspector');
-const SidebarInspectorFill = InspectorFill;
-const FillContents = ({
- sidebarName,
- isEditingPage,
- supportsGlobalStyles
-}) => {
- const tabListRef = (0,external_wp_element_namespaceObject.useRef)(null);
- // Because `DefaultSidebar` renders a `ComplementaryArea`, we
- // need to forward the `Tabs` context so it can be passed through the
- // underlying slot/fill.
- const tabsContextValue = (0,external_wp_element_namespaceObject.useContext)(sidebar_edit_mode_Tabs.Context);
-
- // This effect addresses a race condition caused by tabbing from the last
- // block in the editor into the settings sidebar. Without this effect, the
- // selected tab and browser focus can become separated in an unexpected way.
- // (e.g the "block" tab is focused, but the "post" tab is selected).
+ useLocation: use_title_useLocation
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+function useTitle(title) {
+ const location = use_title_useLocation();
+ const siteTitle = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getEntityRecord('root', 'site')?.title, []);
+ const isInitialLocationRef = (0,external_wp_element_namespaceObject.useRef)(true);
(0,external_wp_element_namespaceObject.useEffect)(() => {
- const tabsElements = Array.from(tabListRef.current?.querySelectorAll('[role="tab"]') || []);
- const selectedTabElement = tabsElements.find(
- // We are purposefully using a custom `data-tab-id` attribute here
- // because we don't want rely on any assumptions about `Tabs`
- // component internals.
- element => element.getAttribute('data-tab-id') === sidebarName);
- const activeElement = selectedTabElement?.ownerDocument.activeElement;
- const tabsHasFocus = tabsElements.some(element => {
- return activeElement && activeElement.id === element.id;
- });
- if (tabsHasFocus && selectedTabElement && selectedTabElement.id !== activeElement?.id) {
- selectedTabElement?.focus();
- }
- }, [sidebarName]);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(DefaultSidebar, {
- identifier: sidebarName,
- title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? drawer_left : drawer_right,
- closeLabel: (0,external_wp_i18n_namespaceObject.__)('Close Settings'),
- header: (0,external_React_.createElement)(sidebar_edit_mode_Tabs.Context.Provider, {
- value: tabsContextValue
- }, (0,external_React_.createElement)(settings_header, {
- ref: tabListRef
- })),
- headerClassName: "edit-site-sidebar-edit-mode__panel-tabs"
- // This classname is added so we can apply a corrective negative
- // margin to the panel.
- // see https://github.com/WordPress/gutenberg/pull/55360#pullrequestreview-1737671049
- ,
- className: "edit-site-sidebar__panel"
- }, (0,external_React_.createElement)(sidebar_edit_mode_Tabs.Context.Provider, {
- value: tabsContextValue
- }, (0,external_React_.createElement)(sidebar_edit_mode_Tabs.TabPanel, {
- tabId: SIDEBAR_TEMPLATE,
- focusable: false
- }, isEditingPage ? (0,external_React_.createElement)(PagePanels, null) : (0,external_React_.createElement)(TemplatePanel, null), (0,external_React_.createElement)(plugin_template_setting_panel.Slot, null)), (0,external_React_.createElement)(sidebar_edit_mode_Tabs.TabPanel, {
- tabId: SIDEBAR_BLOCK,
- focusable: false
- }, (0,external_React_.createElement)(InspectorSlot, {
- bubblesVirtually: true
- })))), supportsGlobalStyles && (0,external_React_.createElement)(GlobalStylesSidebar, null));
-};
-function SidebarComplementaryAreaFills() {
- const {
- sidebar,
- isEditorSidebarOpened,
- hasBlockSelection,
- supportsGlobalStyles,
- isEditingPage,
- isEditorOpen
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const _sidebar = select(store).getActiveComplementaryArea(constants_STORE_NAME);
- const _isEditorSidebarOpened = [SIDEBAR_BLOCK, SIDEBAR_TEMPLATE].includes(_sidebar);
- const {
- getCanvasMode
- } = unlock(select(store_store));
- return {
- sidebar: _sidebar,
- isEditorSidebarOpened: _isEditorSidebarOpened,
- hasBlockSelection: !!select(external_wp_blockEditor_namespaceObject.store).getBlockSelectionStart(),
- supportsGlobalStyles: select(external_wp_coreData_namespaceObject.store).getCurrentTheme()?.is_block_theme,
- isEditingPage: select(store_store).isPage(),
- isEditorOpen: getCanvasMode() === 'edit'
- };
- }, []);
- const {
- enableComplementaryArea
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ isInitialLocationRef.current = false;
+ }, [location]);
(0,external_wp_element_namespaceObject.useEffect)(() => {
- // Don't automatically switch tab when the sidebar is closed or when we
- // are focused on page content.
- if (!isEditorSidebarOpened) {
+ // Don't update or announce the title for initial page load.
+ if (isInitialLocationRef.current) {
return;
}
- if (hasBlockSelection) {
- if (!isEditingPage) {
- enableComplementaryArea(constants_STORE_NAME, SIDEBAR_BLOCK);
- }
- } else {
- enableComplementaryArea(constants_STORE_NAME, SIDEBAR_TEMPLATE);
- }
- }, [hasBlockSelection, isEditorSidebarOpened, isEditingPage, enableComplementaryArea]);
- let sidebarName = sidebar;
- if (!isEditorSidebarOpened) {
- sidebarName = hasBlockSelection ? SIDEBAR_BLOCK : SIDEBAR_TEMPLATE;
- }
-
- // `newSelectedTabId` could technically be falsey if no tab is selected (i.e.
- // the initial render) or when we don't want a tab displayed (i.e. the
- // sidebar is closed). These cases should both be covered by the `!!` check
- // below, so we shouldn't need any additional falsey handling.
- const onTabSelect = (0,external_wp_element_namespaceObject.useCallback)(newSelectedTabId => {
- if (!!newSelectedTabId) {
- enableComplementaryArea(constants_STORE_NAME, newSelectedTabId);
- }
- }, [enableComplementaryArea]);
- return (0,external_React_.createElement)(sidebar_edit_mode_Tabs
- // Due to how this component is controlled (via a value from the
- // edit-site store), when the sidebar closes the currently selected
- // tab can't be found. This causes the component to continuously reset
- // the selection to `null` in an infinite loop. Proactively setting
- // the selected tab to `null` avoids that.
- , {
- selectedTabId: isEditorOpen && isEditorSidebarOpened ? sidebarName : null,
- onSelect: onTabSelect,
- selectOnMove: false
- }, (0,external_React_.createElement)(FillContents, {
- sidebarName: sidebarName,
- isEditingPage: isEditingPage,
- supportsGlobalStyles: supportsGlobalStyles
- }));
-}
+ if (title && siteTitle) {
+ // @see https://github.com/WordPress/wordpress-develop/blob/94849898192d271d533e09756007e176feb80697/src/wp-admin/admin-header.php#L67-L68
+ const formattedTitle = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: Admin document title. 1: Admin screen name, 2: Network or site name. */
+ (0,external_wp_i18n_namespaceObject.__)('%1$s ‹ %2$s ‹ Editor — WordPress'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(siteTitle));
+ document.title = formattedTitle;
-// EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js
-var lib = __webpack_require__(4132);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/code-editor/index.js
+ // Announce title on route change for screen readers.
+ (0,external_wp_a11y_namespaceObject.speak)(title, 'assertive');
+ }
+ }, [title, siteTitle, location]);
+}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/editor/use-editor-title.js
/**
- * External dependencies
+ * WordPress dependencies
*/
/**
- * WordPress dependencies
+ * Internal dependencies
*/
+function useEditorTitle() {
+ const {
+ record: editedPost,
+ getTitle,
+ isLoaded: hasLoadedPost
+ } = useEditedEntityRecord();
+ let title;
+ if (hasLoadedPost) {
+ var _POST_TYPE_LABELS$edi;
+ title = (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: A breadcrumb trail for the Admin document title. %1$s: title of template being edited, %2$s: type of template (Template or Template Part).
+ (0,external_wp_i18n_namespaceObject.__)('%1$s ‹ %2$s'), getTitle(), (_POST_TYPE_LABELS$edi = POST_TYPE_LABELS[editedPost.type]) !== null && _POST_TYPE_LABELS$edi !== void 0 ? _POST_TYPE_LABELS$edi : POST_TYPE_LABELS[TEMPLATE_POST_TYPE]);
+ }
+ // Only announce the title once the editor is ready to prevent "Replace"
+ // action in <URLQueryController> from double-announcing.
+ useTitle(hasLoadedPost && title);
+}
+/* harmony default export */ const use_editor_title = (useEditorTitle);
-
-
-
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/editor/index.js
/**
- * Internal dependencies
+ * External dependencies
*/
-function CodeEditor() {
- const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(CodeEditor);
- const {
- shortcut,
- content,
- blocks,
- type,
- id
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEditedEntityRecord
- } = select(external_wp_coreData_namespaceObject.store);
- const {
- getEditedPostType,
- getEditedPostId
- } = select(store_store);
- const {
- getShortcutRepresentation
- } = select(external_wp_keyboardShortcuts_namespaceObject.store);
- const _type = getEditedPostType();
- const _id = getEditedPostId();
- const editedRecord = getEditedEntityRecord('postType', _type, _id);
- return {
- shortcut: getShortcutRepresentation('core/edit-site/toggle-mode'),
- content: editedRecord?.content,
- blocks: editedRecord?.blocks,
- type: _type,
- id: _id
- };
- }, []);
- const {
- editEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- // Replicates the logic found in getEditedPostContent().
- const realContent = (0,external_wp_element_namespaceObject.useMemo)(() => {
- if (content instanceof Function) {
- return content({
- blocks
- });
- } else if (blocks) {
- // If we have parsed blocks already, they should be our source of truth.
- // Parsing applies block deprecations and legacy block conversions that
- // unparsed content will not have.
- return (0,external_wp_blocks_namespaceObject.__unstableSerializeAndClean)(blocks);
- }
- return content;
- }, [content, blocks]);
- const {
- switchEditorMode
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- return (0,external_React_.createElement)("div", {
- className: "edit-site-code-editor"
- }, (0,external_React_.createElement)("div", {
- className: "edit-site-code-editor__toolbar"
- }, (0,external_React_.createElement)("h2", null, (0,external_wp_i18n_namespaceObject.__)('Editing code')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: () => switchEditorMode('visual'),
- shortcut: shortcut
- }, (0,external_wp_i18n_namespaceObject.__)('Exit code editor'))), (0,external_React_.createElement)("div", {
- className: "edit-site-code-editor__body"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "label",
- htmlFor: `code-editor-text-area-${instanceId}`
- }, (0,external_wp_i18n_namespaceObject.__)('Type text or HTML')), (0,external_React_.createElement)(lib/* default */.A, {
- autoComplete: "off",
- dir: "auto",
- value: realContent,
- onChange: event => {
- editEntityRecord('postType', type, id, {
- content: event.target.value,
- blocks: undefined,
- selection: undefined
- });
- },
- className: "edit-site-code-editor-text-area",
- id: `code-editor-text-area-${instanceId}`,
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Start writing with text or HTML')
- })));
-}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/keyboard-shortcuts/edit-mode.js
/**
* WordPress dependencies
*/
@@ -35281,105 +24363,15 @@ function CodeEditor() {
-/**
- * Internal dependencies
- */
-function KeyboardShortcutsEditMode() {
- const {
- getEditorMode
- } = (0,external_wp_data_namespaceObject.useSelect)(store_store);
- const isBlockInspectorOpen = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getActiveComplementaryArea(store_store.name) === SIDEBAR_BLOCK, []);
- const {
- switchEditorMode,
- toggleDistractionFree
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const {
- enableComplementaryArea,
- disableComplementaryArea
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
- const {
- replaceBlocks
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- const {
- getBlockName,
- getSelectedBlockClientId,
- getBlockAttributes
- } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
- const handleTextLevelShortcut = (event, level) => {
- event.preventDefault();
- const destinationBlockName = level === 0 ? 'core/paragraph' : 'core/heading';
- const currentClientId = getSelectedBlockClientId();
- if (currentClientId === null) {
- return;
- }
- const blockName = getBlockName(currentClientId);
- if (blockName !== 'core/paragraph' && blockName !== 'core/heading') {
- return;
- }
- const attributes = getBlockAttributes(currentClientId);
- const textAlign = blockName === 'core/paragraph' ? 'align' : 'textAlign';
- const destinationTextAlign = destinationBlockName === 'core/paragraph' ? 'align' : 'textAlign';
- replaceBlocks(currentClientId, (0,external_wp_blocks_namespaceObject.createBlock)(destinationBlockName, {
- level,
- content: attributes.content,
- ...{
- [destinationTextAlign]: attributes[textAlign]
- }
- }));
- };
- (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-site/toggle-block-settings-sidebar', event => {
- // This shortcut has no known clashes, but use preventDefault to prevent any
- // obscure shortcuts from triggering.
- event.preventDefault();
- if (isBlockInspectorOpen) {
- disableComplementaryArea(constants_STORE_NAME);
- } else {
- enableComplementaryArea(constants_STORE_NAME, SIDEBAR_BLOCK);
- }
- });
- (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-site/toggle-mode', () => {
- switchEditorMode(getEditorMode() === 'visual' ? 'text' : 'visual');
- });
- (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-site/transform-heading-to-paragraph', event => handleTextLevelShortcut(event, 0));
- [1, 2, 3, 4, 5, 6].forEach(level => {
- //the loop is based off on a constant therefore
- //the hook will execute the same way every time
- //eslint-disable-next-line react-hooks/rules-of-hooks
- (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)(`core/edit-site/transform-paragraph-to-heading-${level}`, event => handleTextLevelShortcut(event, level));
- });
- (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-site/toggle-distraction-free', () => {
- toggleDistractionFree();
- });
- return null;
-}
-/* harmony default export */ const edit_mode = (KeyboardShortcutsEditMode);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/welcome-guide/image.js
-function WelcomeGuideImage({
- nonAnimatedSrc,
- animatedSrc
-}) {
- return (0,external_React_.createElement)("picture", {
- className: "edit-site-welcome-guide__image"
- }, (0,external_React_.createElement)("source", {
- srcSet: nonAnimatedSrc,
- media: "(prefers-reduced-motion: reduce)"
- }), (0,external_React_.createElement)("img", {
- src: animatedSrc,
- width: "312",
- height: "240",
- alt: ""
- }));
-}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/welcome-guide/editor.js
/**
- * WordPress dependencies
+ * Internal dependencies
*/
@@ -35387,131 +24379,177 @@ function WelcomeGuideImage({
-/**
- * Internal dependencies
- */
-function WelcomeGuideEditor() {
- const {
- toggle
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
- const isActive = (0,external_wp_data_namespaceObject.useSelect)(select => !!select(external_wp_preferences_namespaceObject.store).get('core/edit-site', 'welcomeGuide'), []);
- if (!isActive) {
- return null;
- }
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Guide, {
- className: "edit-site-welcome-guide guide-editor",
- contentLabel: (0,external_wp_i18n_namespaceObject.__)('Welcome to the site editor'),
- finishButtonText: (0,external_wp_i18n_namespaceObject.__)('Get started'),
- onFinish: () => toggle('core/edit-site', 'welcomeGuide'),
- pages: [{
- image: (0,external_React_.createElement)(WelcomeGuideImage, {
- nonAnimatedSrc: "https://s.w.org/images/block-editor/edit-your-site.svg?1",
- animatedSrc: "https://s.w.org/images/block-editor/edit-your-site.gif?1"
- }),
- content: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("h1", {
- className: "edit-site-welcome-guide__heading"
- }, (0,external_wp_i18n_namespaceObject.__)('Edit your site')), (0,external_React_.createElement)("p", {
- className: "edit-site-welcome-guide__text"
- }, (0,external_wp_i18n_namespaceObject.__)('Design everything on your site — from the header right down to the footer — using blocks.')), (0,external_React_.createElement)("p", {
- className: "edit-site-welcome-guide__text"
- }, (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('Click <StylesIconImage /> to start designing your blocks, and choose your typography, layout, and colors.'), {
- StylesIconImage: (0,external_React_.createElement)("img", {
- alt: (0,external_wp_i18n_namespaceObject.__)('styles'),
- src: "data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z' fill='%231E1E1E'/%3E%3C/svg%3E%0A"
- })
- })))
- }]
- });
-}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/welcome-guide/styles.js
-/**
- * WordPress dependencies
- */
-/**
- * Internal dependencies
- */
-function WelcomeGuideStyles() {
- const {
- toggle
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
+
+
+
+const {
+ Editor,
+ BackButton
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
+const {
+ useHistory: editor_useHistory
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+const {
+ BlockKeyboardShortcuts
+} = lock_unlock_unlock(external_wp_blockLibrary_namespaceObject.privateApis);
+function EditSiteEditor({
+ isLoading
+}) {
const {
- isActive,
- isStylesOpen
+ editedPostType,
+ editedPostId,
+ contextPostType,
+ contextPostId,
+ editorMode,
+ canvasMode,
+ isEditingPage,
+ supportsGlobalStyles,
+ showIconLabels,
+ editorCanvasView,
+ currentPostIsTrashed
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const sidebar = select(store).getActiveComplementaryArea(store_store.name);
+ const {
+ getEditedPostContext,
+ getCanvasMode,
+ isPage,
+ getEditedPostType,
+ getEditedPostId
+ } = lock_unlock_unlock(select(store));
+ const {
+ get
+ } = select(external_wp_preferences_namespaceObject.store);
+ const {
+ getCurrentTheme
+ } = select(external_wp_coreData_namespaceObject.store);
+ const {
+ getEditorMode
+ } = select(external_wp_editor_namespaceObject.store);
+ const _context = getEditedPostContext();
+
+ // The currently selected entity to display.
+ // Typically template or template part in the site editor.
return {
- isActive: !!select(external_wp_preferences_namespaceObject.store).get('core/edit-site', 'welcomeGuideStyles'),
- isStylesOpen: sidebar === 'edit-site/global-styles'
+ editedPostType: getEditedPostType(),
+ editedPostId: getEditedPostId(),
+ contextPostType: _context?.postId ? _context.postType : undefined,
+ contextPostId: _context?.postId ? _context.postId : undefined,
+ editorMode: getEditorMode(),
+ canvasMode: getCanvasMode(),
+ isEditingPage: isPage(),
+ supportsGlobalStyles: getCurrentTheme()?.is_block_theme,
+ showIconLabels: get('core', 'showIconLabels'),
+ editorCanvasView: lock_unlock_unlock(select(store)).getEditorCanvasContainerView(),
+ currentPostIsTrashed: select(external_wp_editor_namespaceObject.store).getCurrentPostAttribute('status') === 'trash'
};
}, []);
- if (!isActive || !isStylesOpen) {
- return null;
- }
- const welcomeLabel = (0,external_wp_i18n_namespaceObject.__)('Welcome to Styles');
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Guide, {
- className: "edit-site-welcome-guide guide-styles",
- contentLabel: welcomeLabel,
- finishButtonText: (0,external_wp_i18n_namespaceObject.__)('Get started'),
- onFinish: () => toggle('core/edit-site', 'welcomeGuideStyles'),
- pages: [{
- image: (0,external_React_.createElement)(WelcomeGuideImage, {
- nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-to-styles.svg?1",
- animatedSrc: "https://s.w.org/images/block-editor/welcome-to-styles.gif?1"
- }),
- content: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("h1", {
- className: "edit-site-welcome-guide__heading"
- }, welcomeLabel), (0,external_React_.createElement)("p", {
- className: "edit-site-welcome-guide__text"
- }, (0,external_wp_i18n_namespaceObject.__)('Tweak your site, or give it a whole new look! Get creative — how about a new color palette for your buttons, or choosing a new font? Take a look at what you can do here.')))
- }, {
- image: (0,external_React_.createElement)(WelcomeGuideImage, {
- nonAnimatedSrc: "https://s.w.org/images/block-editor/set-the-design.svg?1",
- animatedSrc: "https://s.w.org/images/block-editor/set-the-design.gif?1"
- }),
- content: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("h1", {
- className: "edit-site-welcome-guide__heading"
- }, (0,external_wp_i18n_namespaceObject.__)('Set the design')), (0,external_React_.createElement)("p", {
- className: "edit-site-welcome-guide__text"
- }, (0,external_wp_i18n_namespaceObject.__)('You can customize your site as much as you like with different colors, typography, and layouts. Or if you prefer, just leave it up to your theme to handle!')))
- }, {
- image: (0,external_React_.createElement)(WelcomeGuideImage, {
- nonAnimatedSrc: "https://s.w.org/images/block-editor/personalize-blocks.svg?1",
- animatedSrc: "https://s.w.org/images/block-editor/personalize-blocks.gif?1"
+ use_editor_title();
+ const _isPreviewingTheme = isPreviewingTheme();
+ const hasDefaultEditorCanvasView = !useHasEditorCanvasContainer();
+ const iframeProps = useEditorIframeProps();
+ const isViewMode = canvasMode === 'view';
+ const isEditMode = canvasMode === 'edit';
+ const showVisualEditor = isViewMode || editorMode === 'visual';
+ const postWithTemplate = !!contextPostId;
+ const loadingProgressId = (0,external_wp_compose_namespaceObject.useInstanceId)(CanvasLoader, 'edit-site-editor__loading-progress');
+ const settings = useSpecificEditorSettings();
+ const styles = (0,external_wp_element_namespaceObject.useMemo)(() => [...settings.styles, {
+ // Forming a "block formatting context" to prevent margin collapsing.
+ // @see https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Block_formatting_context
+
+ css: `body{${canvasMode === 'view' ? `min-height: 100vh; ${currentPostIsTrashed ? '' : 'cursor: pointer;'}` : ''}}}`
+ }], [settings.styles, canvasMode, currentPostIsTrashed]);
+ const {
+ setCanvasMode
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
+ const {
+ createSuccessNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ const history = editor_useHistory();
+ const onActionPerformed = (0,external_wp_element_namespaceObject.useCallback)((actionId, items) => {
+ switch (actionId) {
+ case 'move-to-trash':
+ case 'delete-post':
+ {
+ history.push({
+ postType: items[0].type
+ });
+ }
+ break;
+ case 'duplicate-post':
+ {
+ const newItem = items[0];
+ const _title = typeof newItem.title === 'string' ? newItem.title : newItem.title?.rendered;
+ createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Title of the created post e.g: "Post 1".
+ (0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(_title)), {
+ type: 'snackbar',
+ id: 'duplicate-post-action',
+ actions: [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Edit'),
+ onClick: () => {
+ history.push({
+ postId: newItem.id,
+ postType: newItem.type,
+ canvas: 'edit'
+ });
+ }
+ }]
+ });
+ }
+ break;
+ }
+ }, [history, createSuccessNotice]);
+ const isReady = !isLoading;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesRenderer, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.EditorKeyboardShortcutsRegister, {}), isEditMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockKeyboardShortcuts, {}), showVisualEditor && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplatePartConverter, {}), !isReady ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CanvasLoader, {
+ id: loadingProgressId
+ }) : null, isEditMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuide, {}), isReady && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Editor, {
+ postType: postWithTemplate ? contextPostType : editedPostType,
+ postId: postWithTemplate ? contextPostId : editedPostId,
+ templateId: postWithTemplate ? editedPostId : undefined,
+ settings: settings,
+ className: dist_clsx('edit-site-editor__editor-interface', {
+ 'show-icon-labels': showIconLabels
}),
- content: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("h1", {
- className: "edit-site-welcome-guide__heading"
- }, (0,external_wp_i18n_namespaceObject.__)('Personalize blocks')), (0,external_React_.createElement)("p", {
- className: "edit-site-welcome-guide__text"
- }, (0,external_wp_i18n_namespaceObject.__)('You can adjust your blocks to ensure a cohesive experience across your site — add your unique colors to a branded Button block, or adjust the Heading block to your preferred size.')))
- }, {
- image: (0,external_React_.createElement)(WelcomeGuideImage, {
- nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-documentation.svg",
- animatedSrc: "https://s.w.org/images/block-editor/welcome-documentation.gif"
+ styles: styles,
+ enableRegionNavigation: false,
+ customSaveButton: _isPreviewingTheme && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SaveButton, {
+ size: "compact"
}),
- content: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("h1", {
- className: "edit-site-welcome-guide__heading"
- }, (0,external_wp_i18n_namespaceObject.__)('Learn more')), (0,external_React_.createElement)("p", {
- className: "edit-site-welcome-guide__text"
- }, (0,external_wp_i18n_namespaceObject.__)('New to block themes and styling your site?'), ' ', (0,external_React_.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/styles-overview/')
- }, (0,external_wp_i18n_namespaceObject.__)('Here’s a detailed guide to learn how to make the most of it.'))))
- }]
+ customSavePanel: _isPreviewingTheme && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SavePanel, {}),
+ forceDisableBlockTools: !hasDefaultEditorCanvasView,
+ title: !hasDefaultEditorCanvasView ? getEditorCanvasContainerTitle(editorCanvasView) : undefined,
+ iframeProps: iframeProps,
+ onActionPerformed: onActionPerformed,
+ extraSidebarPanels: !isEditingPage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(plugin_template_setting_panel.Slot, {}),
+ children: [isEditMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BackButton, {
+ children: ({
+ length
+ }) => length <= 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Open Navigation'),
+ className: "edit-site-layout__view-mode-toggle",
+ onClick: () => setCanvasMode('view'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(site_icon, {
+ className: "edit-site-layout__view-mode-toggle-icon"
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MoreMenu, {}), supportsGlobalStyles && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesSidebar, {})]
+ })]
});
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/welcome-guide/page.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/pagination.js
/**
* WordPress dependencies
*/
@@ -35524,456 +24562,313 @@ function WelcomeGuideStyles() {
* Internal dependencies
*/
-function WelcomeGuidePage() {
- const {
- toggle
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
- const isVisible = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const isPageActive = !!select(external_wp_preferences_namespaceObject.store).get('core/edit-site', 'welcomeGuidePage');
- const isEditorActive = !!select(external_wp_preferences_namespaceObject.store).get('core/edit-site', 'welcomeGuide');
- const {
- isPage
- } = select(store_store);
- return isPageActive && !isEditorActive && isPage();
- }, []);
- if (!isVisible) {
+
+const pagination_Pagination = (0,external_wp_element_namespaceObject.memo)(function Pagination({
+ view,
+ onChangeView,
+ paginationInfo: {
+ totalItems = 0,
+ totalPages
+ }
+}) {
+ var _view$page;
+ if (!totalItems || !totalPages) {
return null;
}
- const heading = (0,external_wp_i18n_namespaceObject.__)('Editing a page');
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Guide, {
- className: "edit-site-welcome-guide guide-page",
- contentLabel: heading,
- finishButtonText: (0,external_wp_i18n_namespaceObject.__)('Continue'),
- onFinish: () => toggle('core/edit-site', 'welcomeGuidePage'),
- pages: [{
- image: (0,external_React_.createElement)("video", {
- className: "edit-site-welcome-guide__video",
- autoPlay: true,
- loop: true,
- muted: true,
- width: "312",
- height: "240"
- }, (0,external_React_.createElement)("source", {
- src: "https://s.w.org/images/block-editor/editing-your-page.mp4",
- type: "video/mp4"
- })),
- content: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("h1", {
- className: "edit-site-welcome-guide__heading"
- }, heading), (0,external_React_.createElement)("p", {
- className: "edit-site-welcome-guide__text"
- }, (0,external_wp_i18n_namespaceObject.__)('It’s now possible to edit page content in the site editor. To customise other parts of the page like the header and footer switch to editing the template using the settings sidebar.')))
- }]
+ const currentPage = (_view$page = view.page) !== null && _view$page !== void 0 ? _view$page : 1;
+ return !!totalItems && totalPages !== 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ expanded: false,
+ spacing: 6,
+ justify: "end",
+ className: "dataviews-pagination",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "flex-start",
+ expanded: false,
+ spacing: 2,
+ className: "dataviews-pagination__page-selection",
+ children: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Total number of pages.
+ (0,external_wp_i18n_namespaceObject._x)('Page <CurrentPageControl /> of %s', 'paging'), totalPages), {
+ CurrentPageControl: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Current page'),
+ value: view.page?.toString(),
+ options: Array.from(Array(totalPages)).map((_, i) => {
+ const page = i + 1;
+ return {
+ value: page.toString(),
+ label: page.toString()
+ };
+ }),
+ onChange: newValue => {
+ onChangeView({
+ ...view,
+ page: +newValue
+ });
+ },
+ size: "compact",
+ __nextHasNoMarginBottom: true
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ expanded: false,
+ spacing: 1,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ onClick: () => onChangeView({
+ ...view,
+ page: currentPage - 1
+ }),
+ disabled: currentPage === 1,
+ __experimentalIsFocusable: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Previous page'),
+ icon: chevron_left,
+ showTooltip: true,
+ size: "compact",
+ tooltipPosition: "top"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ onClick: () => onChangeView({
+ ...view,
+ page: currentPage + 1
+ }),
+ disabled: currentPage >= totalPages,
+ __experimentalIsFocusable: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Next page'),
+ icon: chevron_right,
+ showTooltip: true,
+ size: "compact",
+ tooltipPosition: "top"
+ })]
+ })]
});
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/welcome-guide/template.js
+});
+/* harmony default export */ const pagination = (pagination_Pagination);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/lock-unlock.js
/**
* WordPress dependencies
*/
+const {
+ lock: lock_unlock_lock,
+ unlock: build_module_lock_unlock_unlock
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/dataviews');
-
-
-
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/constants.js
/**
- * Internal dependencies
+ * WordPress dependencies
*/
-function WelcomeGuideTemplate() {
- const {
- toggle
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
- const isVisible = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const isTemplateActive = !!select(external_wp_preferences_namespaceObject.store).get('core/edit-site', 'welcomeGuideTemplate');
- const isEditorActive = !!select(external_wp_preferences_namespaceObject.store).get('core/edit-site', 'welcomeGuide');
- const {
- isPage
- } = select(store_store);
- const {
- getCurrentPostType
- } = select(external_wp_editor_namespaceObject.store);
- return isTemplateActive && !isEditorActive && isPage() && getCurrentPostType() === 'wp_template';
- }, []);
- if (!isVisible) {
- return null;
- }
- const heading = (0,external_wp_i18n_namespaceObject.__)('Editing a template');
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Guide, {
- className: "edit-site-welcome-guide guide-template",
- contentLabel: heading,
- finishButtonText: (0,external_wp_i18n_namespaceObject.__)('Continue'),
- onFinish: () => toggle('core/edit-site', 'welcomeGuideTemplate'),
- pages: [{
- image: (0,external_React_.createElement)("video", {
- className: "edit-site-welcome-guide__video",
- autoPlay: true,
- loop: true,
- muted: true,
- width: "312",
- height: "240"
- }, (0,external_React_.createElement)("source", {
- src: "https://s.w.org/images/block-editor/editing-your-template.mp4",
- type: "video/mp4"
- })),
- content: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("h1", {
- className: "edit-site-welcome-guide__heading"
- }, heading), (0,external_React_.createElement)("p", {
- className: "edit-site-welcome-guide__text"
- }, (0,external_wp_i18n_namespaceObject.__)('Note that the same template can be used by multiple pages, so any changes made here may affect other pages on the site. To switch back to editing the page content click the ‘Back’ button in the toolbar.')))
- }]
- });
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/welcome-guide/index.js
/**
* Internal dependencies
*/
+// Filter operators.
+const constants_OPERATOR_IS = 'is';
+const constants_OPERATOR_IS_NOT = 'isNot';
+const constants_OPERATOR_IS_ANY = 'isAny';
+const constants_OPERATOR_IS_NONE = 'isNone';
+const OPERATOR_IS_ALL = 'isAll';
+const OPERATOR_IS_NOT_ALL = 'isNotAll';
+const ALL_OPERATORS = [constants_OPERATOR_IS, constants_OPERATOR_IS_NOT, constants_OPERATOR_IS_ANY, constants_OPERATOR_IS_NONE, OPERATOR_IS_ALL, OPERATOR_IS_NOT_ALL];
+const OPERATORS = {
+ [constants_OPERATOR_IS]: {
+ key: 'is-filter',
+ label: (0,external_wp_i18n_namespaceObject.__)('Is')
+ },
+ [constants_OPERATOR_IS_NOT]: {
+ key: 'is-not-filter',
+ label: (0,external_wp_i18n_namespaceObject.__)('Is not')
+ },
+ [constants_OPERATOR_IS_ANY]: {
+ key: 'is-any-filter',
+ label: (0,external_wp_i18n_namespaceObject.__)('Is any')
+ },
+ [constants_OPERATOR_IS_NONE]: {
+ key: 'is-none-filter',
+ label: (0,external_wp_i18n_namespaceObject.__)('Is none')
+ },
+ [OPERATOR_IS_ALL]: {
+ key: 'is-all-filter',
+ label: (0,external_wp_i18n_namespaceObject.__)('Is all')
+ },
+ [OPERATOR_IS_NOT_ALL]: {
+ key: 'is-not-all-filter',
+ label: (0,external_wp_i18n_namespaceObject.__)('Is not all')
+ }
+};
+const SORTING_DIRECTIONS = ['asc', 'desc'];
+const sortArrows = {
+ asc: '↑',
+ desc: '↓'
+};
+const sortValues = {
+ asc: 'ascending',
+ desc: 'descending'
+};
+const sortLabels = {
+ asc: (0,external_wp_i18n_namespaceObject.__)('Sort ascending'),
+ desc: (0,external_wp_i18n_namespaceObject.__)('Sort descending')
+};
+// View layouts.
+const constants_LAYOUT_TABLE = 'table';
+const constants_LAYOUT_GRID = 'grid';
+const constants_LAYOUT_LIST = 'list';
-
-function WelcomeGuide() {
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(WelcomeGuideEditor, null), (0,external_React_.createElement)(WelcomeGuideStyles, null), (0,external_React_.createElement)(WelcomeGuidePage, null), (0,external_React_.createElement)(WelcomeGuideTemplate, null));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/start-template-options/index.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/block-table.js
/**
* WordPress dependencies
*/
+const blockTable = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
+/* harmony default export */ const block_table = (blockTable);
-
-
-
-
-
-
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/category.js
/**
- * Internal dependencies
+ * WordPress dependencies
*/
-function useFallbackTemplateContent(slug, isCustom = false) {
- return (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEntityRecord,
- getDefaultTemplateId
- } = select(external_wp_coreData_namespaceObject.store);
- const templateId = getDefaultTemplateId({
- slug,
- is_custom: isCustom,
- ignore_empty: true
- });
- return templateId ? getEntityRecord('postType', constants_TEMPLATE_POST_TYPE, templateId)?.content?.raw : undefined;
- }, [slug, isCustom]);
-}
-function useStartPatterns(fallbackContent) {
- const {
- slug,
- patterns
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEditedPostType,
- getEditedPostId
- } = select(store_store);
- const {
- getEntityRecord,
- getBlockPatterns
- } = select(external_wp_coreData_namespaceObject.store);
- const postId = getEditedPostId();
- const postType = getEditedPostType();
- const record = getEntityRecord('postType', postType, postId);
- return {
- slug: record.slug,
- patterns: getBlockPatterns()
- };
- }, []);
- const currentThemeStylesheet = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getCurrentTheme().stylesheet);
-
- // Duplicated from packages/block-library/src/pattern/edit.js.
- function injectThemeAttributeInBlockTemplateContent(block) {
- if (block.innerBlocks.find(innerBlock => innerBlock.name === 'core/template-part')) {
- block.innerBlocks = block.innerBlocks.map(innerBlock => {
- if (innerBlock.name === 'core/template-part' && innerBlock.attributes.theme === undefined) {
- innerBlock.attributes.theme = currentThemeStylesheet;
- }
- return innerBlock;
- });
- }
- if (block.name === 'core/template-part' && block.attributes.theme === undefined) {
- block.attributes.theme = currentThemeStylesheet;
- }
- return block;
- }
- return (0,external_wp_element_namespaceObject.useMemo)(() => {
- // filter patterns that are supposed to be used in the current template being edited.
- return [{
- name: 'fallback',
- blocks: (0,external_wp_blocks_namespaceObject.parse)(fallbackContent),
- title: (0,external_wp_i18n_namespaceObject.__)('Fallback content')
- }, ...patterns.filter(pattern => {
- return Array.isArray(pattern.templateTypes) && pattern.templateTypes.some(templateType => slug.startsWith(templateType));
- }).map(pattern => {
- return {
- ...pattern,
- blocks: (0,external_wp_blocks_namespaceObject.parse)(pattern.content).map(block => injectThemeAttributeInBlockTemplateContent(block))
- };
- })];
- }, [fallbackContent, slug, patterns]);
-}
-function PatternSelection({
- fallbackContent,
- onChoosePattern,
- postType
-}) {
- const [,, onChange] = (0,external_wp_coreData_namespaceObject.useEntityBlockEditor)('postType', postType);
- const blockPatterns = useStartPatterns(fallbackContent);
- const shownBlockPatterns = (0,external_wp_compose_namespaceObject.useAsyncList)(blockPatterns);
- return (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.__experimentalBlockPatternsList, {
- blockPatterns: blockPatterns,
- shownPatterns: shownBlockPatterns,
- onClickPattern: (pattern, blocks) => {
- onChange(blocks, {
- selection: undefined
- });
- onChoosePattern();
- }
- });
-}
-function StartModal({
- slug,
- isCustom,
- onClose,
- postType
-}) {
- const fallbackContent = useFallbackTemplateContent(slug, isCustom);
- if (!fallbackContent) {
- return null;
- }
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
- className: "edit-site-start-template-options__modal",
- title: (0,external_wp_i18n_namespaceObject.__)('Choose a pattern'),
- closeLabel: (0,external_wp_i18n_namespaceObject.__)('Cancel'),
- focusOnMount: "firstElement",
- onRequestClose: onClose,
- isFullScreen: true
- }, (0,external_React_.createElement)("div", {
- className: "edit-site-start-template-options__modal-content"
- }, (0,external_React_.createElement)(PatternSelection, {
- fallbackContent: fallbackContent,
- slug: slug,
- isCustom: isCustom,
- postType: postType,
- onChoosePattern: () => {
- onClose();
- }
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- className: "edit-site-start-template-options__modal__actions",
- justify: "flex-end",
- expanded: false
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: onClose
- }, (0,external_wp_i18n_namespaceObject.__)('Skip')))));
-}
-const START_TEMPLATE_MODAL_STATES = {
- INITIAL: 'INITIAL',
- CLOSED: 'CLOSED'
-};
-function StartTemplateOptions() {
- const [modalState, setModalState] = (0,external_wp_element_namespaceObject.useState)(START_TEMPLATE_MODAL_STATES.INITIAL);
- const {
- shouldOpenModal,
- slug,
- isCustom,
- postType
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEditedPostType,
- getEditedPostId
- } = select(store_store);
- const _postType = getEditedPostType();
- const postId = getEditedPostId();
- const {
- getEditedEntityRecord,
- hasEditsForEntityRecord
- } = select(external_wp_coreData_namespaceObject.store);
- const templateRecord = getEditedEntityRecord('postType', _postType, postId);
- const hasEdits = hasEditsForEntityRecord('postType', _postType, postId);
- return {
- shouldOpenModal: !hasEdits && '' === templateRecord.content && constants_TEMPLATE_POST_TYPE === _postType && !select(external_wp_preferences_namespaceObject.store).get('core/edit-site', 'welcomeGuide'),
- slug: templateRecord.slug,
- isCustom: templateRecord.is_custom,
- postType: _postType
- };
- }, []);
- if (modalState === START_TEMPLATE_MODAL_STATES.INITIAL && !shouldOpenModal || modalState === START_TEMPLATE_MODAL_STATES.CLOSED) {
- return null;
- }
- return (0,external_React_.createElement)(StartModal, {
- slug: slug,
- isCustom: isCustom,
- postType: postType,
- onClose: () => setModalState(START_TEMPLATE_MODAL_STATES.CLOSED)
- });
-}
+const category = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",
+ fillRule: "evenodd",
+ clipRule: "evenodd"
+ })
+});
+/* harmony default export */ const library_category = (category);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles-renderer/index.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-list-bullets-rtl.js
/**
* WordPress dependencies
*/
+const formatListBulletsRTL = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
+/* harmony default export */ const format_list_bullets_rtl = (formatListBulletsRTL);
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-list-bullets.js
/**
- * Internal dependencies
+ * WordPress dependencies
*/
-const {
- useGlobalStylesOutput: global_styles_renderer_useGlobalStylesOutput
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
-function useGlobalStylesRenderer() {
- const [styles, settings] = global_styles_renderer_useGlobalStylesOutput();
- const {
- getSettings
- } = (0,external_wp_data_namespaceObject.useSelect)(store_store);
- const {
- updateSettings
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- var _currentStoreSettings;
- if (!styles || !settings) {
- return;
- }
- const currentStoreSettings = getSettings();
- const nonGlobalStyles = Object.values((_currentStoreSettings = currentStoreSettings.styles) !== null && _currentStoreSettings !== void 0 ? _currentStoreSettings : []).filter(style => !style.isGlobalStyles);
- updateSettings({
- ...currentStoreSettings,
- styles: [...nonGlobalStyles, ...styles],
- __experimentalFeatures: settings
- });
- }, [styles, settings, updateSettings, getSettings]);
-}
-function GlobalStylesRenderer() {
- useGlobalStylesRenderer();
- return null;
-}
+const formatListBullets = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const format_list_bullets = (formatListBullets);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/routes/use-title.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/funnel.js
/**
* WordPress dependencies
*/
+const funnel = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z"
+ })
+});
+/* harmony default export */ const library_funnel = (funnel);
-
-
-
-
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/unseen.js
/**
- * Internal dependencies
+ * WordPress dependencies
*/
-const {
- useLocation: use_title_useLocation
-} = unlock(external_wp_router_namespaceObject.privateApis);
-function useTitle(title) {
- const location = use_title_useLocation();
- const siteTitle = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getEntityRecord('root', 'site')?.title, []);
- const isInitialLocationRef = (0,external_wp_element_namespaceObject.useRef)(true);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- isInitialLocationRef.current = false;
- }, [location]);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- // Don't update or announce the title for initial page load.
- if (isInitialLocationRef.current) {
- return;
- }
- if (title && siteTitle) {
- // @see https://github.com/WordPress/wordpress-develop/blob/94849898192d271d533e09756007e176feb80697/src/wp-admin/admin-header.php#L67-L68
- const formattedTitle = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: Admin document title. 1: Admin screen name, 2: Network or site name. */
- (0,external_wp_i18n_namespaceObject.__)('%1$s ‹ %2$s ‹ Editor — WordPress'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(siteTitle));
- document.title = formattedTitle;
- // Announce title on route change for screen readers.
- (0,external_wp_a11y_namespaceObject.speak)(title, 'assertive');
- }
- }, [title, siteTitle, location]);
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/canvas-loader/index.js
+const unseen = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4.67 10.664s-2.09 1.11-2.917 1.582l.494.87 1.608-.914.002.002c.343.502.86 1.17 1.563 1.84.348.33.742.663 1.185.976L5.57 16.744l.858.515 1.02-1.701a9.1 9.1 0 0 0 4.051 1.18V19h1v-2.263a9.1 9.1 0 0 0 4.05-1.18l1.021 1.7.858-.514-1.034-1.723c.442-.313.837-.646 1.184-.977.703-.669 1.22-1.337 1.563-1.839l.002-.003 1.61.914.493-.87c-1.75-.994-2.918-1.58-2.918-1.58l-.003.005a8.29 8.29 0 0 1-.422.689 10.097 10.097 0 0 1-1.36 1.598c-1.218 1.16-3.042 2.293-5.544 2.293-2.503 0-4.327-1.132-5.546-2.293a10.099 10.099 0 0 1-1.359-1.599 8.267 8.267 0 0 1-.422-.689l-.003-.005Z"
+ })
+});
+/* harmony default export */ const library_unseen = (unseen);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/single-selection-checkbox.js
/**
* WordPress dependencies
*/
-
-
/**
* Internal dependencies
*/
-
-const {
- ProgressBar: canvas_loader_ProgressBar,
- Theme
-} = unlock(external_wp_components_namespaceObject.privateApis);
-const {
- useGlobalStyle: canvas_loader_useGlobalStyle
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
-function CanvasLoader({
- id
+function SingleSelectionCheckbox({
+ selection,
+ onSelectionChange,
+ item,
+ data,
+ getItemId,
+ primaryField,
+ disabled
}) {
- var _highlightedColors$0$;
- const [fallbackIndicatorColor] = canvas_loader_useGlobalStyle('color.text');
- const [backgroundColor] = canvas_loader_useGlobalStyle('color.background');
- const {
- highlightedColors
- } = useStylesPreviewColors();
- const indicatorColor = (_highlightedColors$0$ = highlightedColors[0]?.color) !== null && _highlightedColors$0$ !== void 0 ? _highlightedColors$0$ : fallbackIndicatorColor;
- const {
- elapsed,
- total
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- var _selectorsByStatus$re, _selectorsByStatus$fi;
- const selectorsByStatus = select(external_wp_coreData_namespaceObject.store).countSelectorsByStatus();
- const resolving = (_selectorsByStatus$re = selectorsByStatus.resolving) !== null && _selectorsByStatus$re !== void 0 ? _selectorsByStatus$re : 0;
- const finished = (_selectorsByStatus$fi = selectorsByStatus.finished) !== null && _selectorsByStatus$fi !== void 0 ? _selectorsByStatus$fi : 0;
- return {
- elapsed: finished,
- total: finished + resolving
- };
- }, []);
- return (0,external_React_.createElement)("div", {
- className: "edit-site-canvas-loader"
- }, (0,external_React_.createElement)(Theme, {
- accent: indicatorColor,
- background: backgroundColor
- }, (0,external_React_.createElement)(canvas_loader_ProgressBar, {
- id: id,
- max: total,
- value: elapsed
- })));
+ const id = getItemId(item);
+ const isSelected = !disabled && selection.includes(id);
+ let selectionLabel;
+ if (primaryField?.getValue && item) {
+ // eslint-disable-next-line @wordpress/valid-sprintf
+ selectionLabel = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: item title. */
+ isSelected ? (0,external_wp_i18n_namespaceObject.__)('Deselect item: %s') : (0,external_wp_i18n_namespaceObject.__)('Select item: %s'), primaryField.getValue({
+ item
+ }));
+ } else {
+ selectionLabel = isSelected ? (0,external_wp_i18n_namespaceObject.__)('Select a new item') : (0,external_wp_i18n_namespaceObject.__)('Deselect item');
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
+ className: "dataviews-view-table-selection-checkbox",
+ __nextHasNoMarginBottom: true,
+ "aria-label": selectionLabel,
+ "aria-disabled": disabled,
+ checked: isSelected,
+ onChange: () => {
+ if (disabled) {
+ return;
+ }
+ if (!isSelected) {
+ onSelectionChange(data.filter(_item => {
+ const itemId = getItemId?.(_item);
+ return itemId === id || selection.includes(itemId);
+ }));
+ } else {
+ onSelectionChange(data.filter(_item => {
+ const itemId = getItemId?.(_item);
+ return itemId !== id && selection.includes(itemId);
+ }));
+ }
+ }
+ });
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/block-editor/editor-canvas.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/item-actions.js
/**
* External dependencies
*/
-
/**
* WordPress dependencies
*/
@@ -35982,136 +24877,210 @@ function CanvasLoader({
-
-
/**
* Internal dependencies
*/
+
const {
- EditorCanvas: EditorCanvasRoot
-} = unlock(external_wp_editor_namespaceObject.privateApis);
-function EditorCanvas({
- enableResizing,
- settings,
- children,
- ...props
+ DropdownMenuV2: item_actions_DropdownMenu,
+ DropdownMenuGroupV2: DropdownMenuGroup,
+ DropdownMenuItemV2: item_actions_DropdownMenuItem,
+ DropdownMenuItemLabelV2: item_actions_DropdownMenuItemLabel,
+ kebabCase: item_actions_kebabCase
+} = build_module_lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
+function ButtonTrigger({
+ action,
+ onClick,
+ items
+}) {
+ const label = typeof action.label === 'string' ? action.label : action.label(items);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ label: label,
+ icon: action.icon,
+ isDestructive: action.isDestructive,
+ size: "compact",
+ onClick: onClick
+ });
+}
+function DropdownMenuItemTrigger({
+ action,
+ onClick,
+ items
+}) {
+ const label = typeof action.label === 'string' ? action.label : action.label(items);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(item_actions_DropdownMenuItem, {
+ onClick: onClick,
+ hideOnClick: !('RenderModal' in action),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(item_actions_DropdownMenuItemLabel, {
+ children: label
+ })
+ });
+}
+function ActionModal({
+ action,
+ items,
+ closeModal
+}) {
+ const label = typeof action.label === 'string' ? action.label : action.label(items);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ title: action.modalHeader || label,
+ __experimentalHideHeader: !!action.hideModalHeader,
+ onRequestClose: closeModal !== null && closeModal !== void 0 ? closeModal : () => {},
+ overlayClassName: `dataviews-action-modal dataviews-action-modal__${item_actions_kebabCase(action.id)}`,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(action.RenderModal, {
+ items: items,
+ closeModal: closeModal,
+ onActionStart: action.onActionStart,
+ onActionPerformed: action.onActionPerformed
+ })
+ });
+}
+function ActionWithModal({
+ action,
+ items,
+ ActionTrigger,
+ isBusy
+}) {
+ const [isModalOpen, setIsModalOpen] = (0,external_wp_element_namespaceObject.useState)(false);
+ const actionTriggerProps = {
+ action,
+ onClick: () => {
+ setIsModalOpen(true);
+ },
+ items,
+ isBusy
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionTrigger, {
+ ...actionTriggerProps
+ }), isModalOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionModal, {
+ action: action,
+ items: items,
+ closeModal: () => setIsModalOpen(false)
+ })]
+ });
+}
+function ActionsDropdownMenuGroup({
+ actions,
+ item
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuGroup, {
+ children: actions.map(action => {
+ if ('RenderModal' in action) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionWithModal, {
+ action: action,
+ items: [item],
+ ActionTrigger: DropdownMenuItemTrigger
+ }, action.id);
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuItemTrigger, {
+ action: action,
+ onClick: () => action.callback([item]),
+ items: [item]
+ }, action.id);
+ })
+ });
+}
+function ItemActions({
+ item,
+ actions,
+ isCompact
}) {
const {
- hasBlocks,
- isFocusMode,
- templateType,
- canvasMode,
- isZoomOutMode
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getBlockCount,
- __unstableGetEditorMode
- } = select(external_wp_blockEditor_namespaceObject.store);
- const {
- getEditedPostType,
- getCanvasMode
- } = unlock(select(store_store));
- const _templateType = getEditedPostType();
+ primaryActions,
+ eligibleActions
+ } = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ // If an action is eligible for all items, doesn't need
+ // to provide the `isEligible` function.
+ const _eligibleActions = actions.filter(action => !action.isEligible || action.isEligible(item));
+ const _primaryActions = _eligibleActions.filter(action => action.isPrimary && !!action.icon);
return {
- templateType: _templateType,
- isFocusMode: FOCUSABLE_ENTITIES.includes(_templateType),
- isZoomOutMode: __unstableGetEditorMode() === 'zoom-out',
- canvasMode: getCanvasMode(),
- hasBlocks: !!getBlockCount()
+ primaryActions: _primaryActions,
+ eligibleActions: _eligibleActions
};
- }, []);
- const {
- setCanvasMode
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
- const [isFocused, setIsFocused] = (0,external_wp_element_namespaceObject.useState)(false);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (canvasMode === 'edit') {
- setIsFocused(false);
- }
- }, [canvasMode]);
- const viewModeProps = {
- 'aria-label': (0,external_wp_i18n_namespaceObject.__)('Editor Canvas'),
- role: 'button',
- tabIndex: 0,
- onFocus: () => setIsFocused(true),
- onBlur: () => setIsFocused(false),
- onKeyDown: event => {
- const {
- keyCode
- } = event;
- if (keyCode === external_wp_keycodes_namespaceObject.ENTER || keyCode === external_wp_keycodes_namespaceObject.SPACE) {
- event.preventDefault();
- setCanvasMode('edit');
- }
+ }, [actions, item]);
+ if (isCompact) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CompactItemActions, {
+ item: item,
+ actions: eligibleActions
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ spacing: 1,
+ justify: "flex-end",
+ className: "dataviews-item-actions",
+ style: {
+ flexShrink: '0',
+ width: 'auto'
},
- onClick: () => setCanvasMode('edit'),
- readonly: true
- };
- const isTemplateTypeNavigation = templateType === NAVIGATION_POST_TYPE;
- const isNavigationFocusMode = isTemplateTypeNavigation && isFocusMode;
- // Hide the appender when:
- // - In navigation focus mode (should only allow the root Nav block).
- // - In view mode (i.e. not editing).
- const showBlockAppender = isNavigationFocusMode && hasBlocks || canvasMode === 'view' ? false : undefined;
- const styles = (0,external_wp_element_namespaceObject.useMemo)(() => [...settings.styles, {
- // Forming a "block formatting context" to prevent margin collapsing.
- // @see https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Block_formatting_context
-
- css: `.is-root-container{display:flow-root;${
- // Some themes will have `min-height: 100vh` for the root container,
- // which isn't a requirement in auto resize mode.
- enableResizing ? 'min-height:0!important;' : ''}}body{position:relative; ${canvasMode === 'view' ? 'cursor: pointer; min-height: 100vh;' : ''}}}`
- }], [settings.styles, enableResizing, canvasMode]);
- return (0,external_React_.createElement)(EditorCanvasRoot, {
- className: classnames_default()('edit-site-editor-canvas__block-list', {
- 'is-navigation-block': isTemplateTypeNavigation
+ children: [!!primaryActions.length && primaryActions.map(action => {
+ if ('RenderModal' in action) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionWithModal, {
+ action: action,
+ items: [item],
+ ActionTrigger: ButtonTrigger
+ }, action.id);
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ButtonTrigger, {
+ action: action,
+ onClick: () => action.callback([item]),
+ items: [item]
+ }, action.id);
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CompactItemActions, {
+ item: item,
+ actions: eligibleActions
+ })]
+ });
+}
+function CompactItemActions({
+ item,
+ actions
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(item_actions_DropdownMenu, {
+ trigger: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "compact",
+ icon: more_vertical,
+ label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
+ __experimentalIsFocusable: true,
+ disabled: !actions.length,
+ className: "dataviews-all-actions-button"
}),
- renderAppender: showBlockAppender,
- styles: styles,
- iframeProps: {
- expand: isZoomOutMode,
- scale: isZoomOutMode ? 0.45 : undefined,
- frameSize: isZoomOutMode ? 100 : undefined,
- className: classnames_default()('edit-site-visual-editor__editor-canvas', {
- 'is-focused': isFocused && canvasMode === 'view'
- }),
- ...props,
- ...(canvasMode === 'view' ? viewModeProps : {})
- }
- }, children);
+ placement: "bottom-end",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionsDropdownMenuGroup, {
+ actions: actions,
+ item: item
+ })
+ });
}
-/* harmony default export */ const editor_canvas = (EditorCanvas);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/block-editor/use-navigate-to-entity-record.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/utils.js
/**
- * WordPress dependencies
+ * Internal dependencies
*/
+function sanitizeOperators(field) {
+ let operators = field.filterBy?.operators;
+ // Assign default values.
+ if (!operators || !Array.isArray(operators)) {
+ operators = [constants_OPERATOR_IS_ANY, constants_OPERATOR_IS_NONE];
+ }
-/**
- * Internal dependencies
- */
+ // Make sure only valid operators are used.
+ operators = operators.filter(operator => ALL_OPERATORS.includes(operator));
-const {
- useHistory: use_navigate_to_entity_record_useHistory
-} = unlock(external_wp_router_namespaceObject.privateApis);
-function useNavigateToEntityRecord() {
- const history = use_navigate_to_entity_record_useHistory();
- const onNavigateToEntityRecord = (0,external_wp_element_namespaceObject.useCallback)(params => {
- history.push({
- ...params,
- focusMode: true,
- canvas: 'edit'
- });
- }, [history]);
- return onNavigateToEntityRecord;
+ // Do not allow mixing single & multiselection operators.
+ // Remove multiselection operators if any of the single selection ones is present.
+ if (operators.includes(constants_OPERATOR_IS) || operators.includes(constants_OPERATOR_IS_NOT)) {
+ operators = operators.filter(operator => [constants_OPERATOR_IS, constants_OPERATOR_IS_NOT].includes(operator));
+ }
+ return operators;
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/block-editor/use-site-editor-settings.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/bulk-actions.js
/**
* WordPress dependencies
*/
@@ -36119,9 +25088,6 @@ function useNavigateToEntityRecord() {
-
-
-
/**
* Internal dependencies
*/
@@ -36130,164 +25096,165 @@ function useNavigateToEntityRecord() {
const {
- useBlockEditorSettings
-} = unlock(external_wp_editor_namespaceObject.privateApis);
-const {
- useLocation: use_site_editor_settings_useLocation,
- useHistory: use_site_editor_settings_useHistory
-} = unlock(external_wp_router_namespaceObject.privateApis);
-function useArchiveLabel(templateSlug) {
- const taxonomyMatches = templateSlug?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/);
- let taxonomy;
- let term;
- let isAuthor = false;
- let authorSlug;
- if (taxonomyMatches) {
- // If is for a all taxonomies of a type
- if (taxonomyMatches[1]) {
- taxonomy = taxonomyMatches[2] ? taxonomyMatches[2] : taxonomyMatches[1];
- }
- // If is for a all taxonomies of a type
- else if (taxonomyMatches[3]) {
- taxonomy = taxonomyMatches[6] ? taxonomyMatches[6] : taxonomyMatches[4];
- term = taxonomyMatches[7];
- }
- taxonomy = taxonomy === 'tag' ? 'post_tag' : taxonomy;
-
- //getTaxonomy( 'category' );
- //wp.data.select('core').getEntityRecords( 'taxonomy', 'category', {slug: 'newcat'} );
- } else {
- const authorMatches = templateSlug?.match(/^(author)$|^author-(.+)$/);
- if (authorMatches) {
- isAuthor = true;
- if (authorMatches[2]) {
- authorSlug = authorMatches[2];
- }
- }
- }
- return (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEntityRecords,
- getTaxonomy,
- getAuthors
- } = select(external_wp_coreData_namespaceObject.store);
- let archiveTypeLabel;
- let archiveNameLabel;
- if (taxonomy) {
- archiveTypeLabel = getTaxonomy(taxonomy)?.labels?.singular_name;
- }
- if (term) {
- const records = getEntityRecords('taxonomy', taxonomy, {
- slug: term,
- per_page: 1
- });
- if (records && records[0]) {
- archiveNameLabel = records[0].name;
- }
- }
- if (isAuthor) {
- archiveTypeLabel = 'Author';
- if (authorSlug) {
- const authorRecords = getAuthors({
- slug: authorSlug
- });
- if (authorRecords && authorRecords[0]) {
- archiveNameLabel = authorRecords[0].name;
- }
- }
- }
- return {
- archiveTypeLabel,
- archiveNameLabel
- };
- }, [authorSlug, isAuthor, taxonomy, term]);
+ DropdownMenuV2: bulk_actions_DropdownMenu,
+ DropdownMenuGroupV2: bulk_actions_DropdownMenuGroup,
+ DropdownMenuItemV2: bulk_actions_DropdownMenuItem,
+ DropdownMenuSeparatorV2: DropdownMenuSeparator
+} = build_module_lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
+function useHasAPossibleBulkAction(actions, item) {
+ return (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return actions.some(action => {
+ return action.supportsBulk && (!action.isEligible || action.isEligible(item));
+ });
+ }, [actions, item]);
}
-function useNavigateToPreviousEntityRecord() {
- const location = use_site_editor_settings_useLocation();
- const previousLocation = (0,external_wp_compose_namespaceObject.usePrevious)(location);
- const history = use_site_editor_settings_useHistory();
- const goBack = (0,external_wp_element_namespaceObject.useMemo)(() => {
- const isFocusMode = location.params.focusMode || location.params.postId && FOCUSABLE_ENTITIES.includes(location.params.postType);
- const didComeFromEditorCanvas = previousLocation?.params.canvas === 'edit';
- const showBackButton = isFocusMode && didComeFromEditorCanvas;
- return showBackButton ? () => history.back() : undefined;
- // Disable reason: previousLocation changes when the component updates for any reason, not
- // just when location changes. Until this is fixed we can't add it to deps. See
- // https://github.com/WordPress/gutenberg/pull/58710#discussion_r1479219465.
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [location, history]);
- return goBack;
+function useSomeItemHasAPossibleBulkAction(actions, data) {
+ return (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return data.some(item => {
+ return actions.some(action => {
+ return action.supportsBulk && (!action.isEligible || action.isEligible(item));
+ });
+ });
+ }, [actions, data]);
}
-function useSpecificEditorSettings() {
- const onNavigateToEntityRecord = useNavigateToEntityRecord();
+function bulk_actions_ActionWithModal({
+ action,
+ selectedItems,
+ setActionWithModal,
+ onMenuOpenChange
+}) {
+ const eligibleItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return selectedItems.filter(item => !action.isEligible || action.isEligible(item));
+ }, [action, selectedItems]);
const {
- templateSlug,
- canvasMode,
- settings,
- postWithTemplate
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEditedPostType,
- getEditedPostId,
- getEditedPostContext,
- getCanvasMode,
- getSettings
- } = unlock(select(store_store));
- const {
- getEditedEntityRecord
- } = select(external_wp_coreData_namespaceObject.store);
- const usedPostType = getEditedPostType();
- const usedPostId = getEditedPostId();
- const _record = getEditedEntityRecord('postType', usedPostType, usedPostId);
- const _context = getEditedPostContext();
- return {
- templateSlug: _record.slug,
- canvasMode: getCanvasMode(),
- settings: getSettings(),
- postWithTemplate: _context?.postId
- };
- }, []);
- const archiveLabels = useArchiveLabel(templateSlug);
- const defaultRenderingMode = postWithTemplate ? 'template-locked' : 'post-only';
- const onNavigateToPreviousEntityRecord = useNavigateToPreviousEntityRecord();
- const defaultEditorSettings = (0,external_wp_element_namespaceObject.useMemo)(() => {
- return {
- ...settings,
- richEditingEnabled: true,
- supportsTemplateMode: true,
- focusMode: canvasMode !== 'view',
- defaultRenderingMode,
- onNavigateToEntityRecord,
- onNavigateToPreviousEntityRecord,
- // I wonder if they should be set in the post editor too
- __experimentalArchiveTitleTypeLabel: archiveLabels.archiveTypeLabel,
- __experimentalArchiveTitleNameLabel: archiveLabels.archiveNameLabel
- };
- }, [settings, canvasMode, defaultRenderingMode, onNavigateToEntityRecord, onNavigateToPreviousEntityRecord, archiveLabels.archiveTypeLabel, archiveLabels.archiveNameLabel]);
- return defaultEditorSettings;
+ RenderModal,
+ hideModalHeader
+ } = action;
+ const onCloseModal = (0,external_wp_element_namespaceObject.useCallback)(() => {
+ setActionWithModal(undefined);
+ }, [setActionWithModal]);
+ const label = typeof action.label === 'string' ? action.label : action.label(selectedItems);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ title: !hideModalHeader ? label : undefined,
+ __experimentalHideHeader: !!hideModalHeader,
+ onRequestClose: onCloseModal,
+ overlayClassName: "dataviews-action-modal",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RenderModal, {
+ items: eligibleItems,
+ closeModal: onCloseModal,
+ onActionPerformed: () => onMenuOpenChange(false)
+ })
+ });
}
-function useSiteEditorSettings() {
- const defaultEditorSettings = useSpecificEditorSettings();
- const {
- postType,
- postId
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEditedPostType,
- getEditedPostId
- } = unlock(select(store_store));
- const usedPostType = getEditedPostType();
- const usedPostId = getEditedPostId();
- return {
- postType: usedPostType,
- postId: usedPostId
- };
- }, []);
- return useBlockEditorSettings(defaultEditorSettings, postType, postId);
+function BulkActionItem({
+ action,
+ selectedItems,
+ setActionWithModal
+}) {
+ const eligibleItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return selectedItems.filter(item => !action.isEligible || action.isEligible(item));
+ }, [action, selectedItems]);
+ const shouldShowModal = ('RenderModal' in action);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(bulk_actions_DropdownMenuItem, {
+ disabled: eligibleItems.length === 0,
+ hideOnClick: !shouldShowModal,
+ onClick: async () => {
+ if (shouldShowModal) {
+ setActionWithModal(action);
+ } else {
+ await action.callback(eligibleItems);
+ }
+ },
+ suffix: eligibleItems.length > 0 ? eligibleItems.length : undefined,
+ children: action.label
+ }, action.id);
+}
+function ActionsMenuGroup({
+ actions,
+ selectedItems,
+ setActionWithModal
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(bulk_actions_DropdownMenuGroup, {
+ children: actions.map(action => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BulkActionItem, {
+ action: action,
+ selectedItems: selectedItems,
+ setActionWithModal: setActionWithModal
+ }, action.id))
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuSeparator, {})]
+ });
+}
+function BulkActions({
+ data,
+ actions,
+ selection,
+ onSelectionChange,
+ getItemId
+}) {
+ const bulkActions = (0,external_wp_element_namespaceObject.useMemo)(() => actions.filter(action => action.supportsBulk), [actions]);
+ const [isMenuOpen, onMenuOpenChange] = (0,external_wp_element_namespaceObject.useState)(false);
+ const [actionWithModal, setActionWithModal] = (0,external_wp_element_namespaceObject.useState)();
+ const selectableItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return data.filter(item => {
+ return bulkActions.some(action => !action.isEligible || action.isEligible(item));
+ });
+ }, [data, bulkActions]);
+ const numberSelectableItems = selectableItems.length;
+ const selectedItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return data.filter(item => selection.includes(getItemId(item)) && selectableItems.includes(item));
+ }, [selection, data, getItemId, selectableItems]);
+ const areAllSelected = selectedItems.length === numberSelectableItems;
+ if (bulkActions.length === 0) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(bulk_actions_DropdownMenu, {
+ open: isMenuOpen,
+ onOpenChange: onMenuOpenChange,
+ label: (0,external_wp_i18n_namespaceObject.__)('Bulk actions'),
+ style: {
+ minWidth: '240px'
+ },
+ trigger: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "dataviews-bulk-edit-button",
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ size: "compact",
+ children: selectedItems.length ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: Number of items. */
+ (0,external_wp_i18n_namespaceObject._n)('Edit %d item', 'Edit %d items', selectedItems.length), selectedItems.length) : (0,external_wp_i18n_namespaceObject.__)('Bulk edit')
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionsMenuGroup, {
+ actions: bulkActions,
+ setActionWithModal: setActionWithModal,
+ selectedItems: selectedItems
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(bulk_actions_DropdownMenuGroup, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(bulk_actions_DropdownMenuItem, {
+ disabled: areAllSelected,
+ hideOnClick: false,
+ onClick: () => {
+ onSelectionChange(selectableItems);
+ },
+ suffix: numberSelectableItems,
+ children: (0,external_wp_i18n_namespaceObject.__)('Select all')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(bulk_actions_DropdownMenuItem, {
+ disabled: selection.length === 0,
+ hideOnClick: false,
+ onClick: () => {
+ onSelectionChange([]);
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Deselect')
+ })]
+ })]
+ }), actionWithModal && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(bulk_actions_ActionWithModal, {
+ action: actionWithModal,
+ selectedItems: selectedItems,
+ setActionWithModal: setActionWithModal,
+ onMenuOpenChange: onMenuOpenChange
+ })]
+ });
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/block-editor/site-editor-canvas.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/view-table.js
/**
* External dependencies
*/
@@ -36298,6 +25265,8 @@ function useSiteEditorSettings() {
+
+
/**
* Internal dependencies
*/
@@ -36309,204 +25278,597 @@ function useSiteEditorSettings() {
+
const {
- useLocation: site_editor_canvas_useLocation
-} = unlock(external_wp_router_namespaceObject.privateApis);
-function SiteEditorCanvas() {
- const location = site_editor_canvas_useLocation();
- const {
- templateType,
- isFocusableEntity,
- isViewMode
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEditedPostType,
- getCanvasMode
- } = unlock(select(store_store));
- const _templateType = getEditedPostType();
- return {
- templateType: _templateType,
- isFocusableEntity: FOCUSABLE_ENTITIES.includes(_templateType),
- isViewMode: getCanvasMode() === 'view'
- };
- }, []);
- const isFocusMode = location.params.focusMode || isFocusableEntity;
- const [resizeObserver, sizes] = (0,external_wp_compose_namespaceObject.useResizeObserver)();
- const settings = useSiteEditorSettings();
- const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('small', '<');
- const enableResizing = isFocusMode && !isViewMode &&
- // Disable resizing in mobile viewport.
- !isMobileViewport &&
- // Disable resizing when editing a template in focus mode.
- templateType !== constants_TEMPLATE_POST_TYPE;
- const isTemplateTypeNavigation = templateType === NAVIGATION_POST_TYPE;
- const isNavigationFocusMode = isTemplateTypeNavigation && isFocusMode;
- const forceFullHeight = isNavigationFocusMode;
- return (0,external_React_.createElement)(editor_canvas_container.Slot, null, ([editorCanvasView]) => editorCanvasView ? (0,external_React_.createElement)("div", {
- className: "edit-site-visual-editor is-focus-mode"
- }, editorCanvasView) : (0,external_React_.createElement)("div", {
- className: classnames_default()('edit-site-visual-editor', {
- 'is-focus-mode': isFocusMode || !!editorCanvasView,
- 'is-view-mode': isViewMode
- })
- }, (0,external_React_.createElement)(resizable_editor, {
- enableResizing: enableResizing,
- height: sizes.height && !forceFullHeight ? sizes.height : '100%'
- }, (0,external_React_.createElement)(editor_canvas, {
- enableResizing: enableResizing,
- settings: settings
- }, resizeObserver))));
+ DropdownMenuV2: view_table_DropdownMenu,
+ DropdownMenuGroupV2: view_table_DropdownMenuGroup,
+ DropdownMenuItemV2: view_table_DropdownMenuItem,
+ DropdownMenuRadioItemV2: DropdownMenuRadioItem,
+ DropdownMenuItemLabelV2: view_table_DropdownMenuItemLabel,
+ DropdownMenuSeparatorV2: view_table_DropdownMenuSeparator
+} = build_module_lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
+function WithDropDownMenuSeparators({
+ children
+}) {
+ return external_wp_element_namespaceObject.Children.toArray(children).filter(Boolean).map((child, i) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_element_namespaceObject.Fragment, {
+ children: [i > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_table_DropdownMenuSeparator, {}), child]
+ }, i));
}
+const _HeaderMenu = (0,external_wp_element_namespaceObject.forwardRef)(function HeaderMenu({
+ field,
+ view,
+ onChangeView,
+ onHide,
+ setOpenedFilter
+}, ref) {
+ const isHidable = field.enableHiding !== false;
+ const isSortable = field.enableSorting !== false;
+ const isSorted = view.sort?.field === field.id;
+ const operators = sanitizeOperators(field);
+ // Filter can be added:
+ // 1. If the field is not already part of a view's filters.
+ // 2. If the field meets the type and operator requirements.
+ // 3. If it's not primary. If it is, it should be already visible.
+ const canAddFilter = !view.filters?.some(_filter => field.id === _filter.field) && !!field.elements?.length && !!operators.length && !field.filterBy?.isPrimary;
+ if (!isSortable && !isHidable && !canAddFilter) {
+ return field.header;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_table_DropdownMenu, {
+ align: "start",
+ trigger: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Button, {
+ size: "compact",
+ className: "dataviews-view-table-header-button",
+ ref: ref,
+ variant: "tertiary",
+ children: [field.header, view.sort && isSorted && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-hidden": "true",
+ children: sortArrows[view.sort.direction]
+ })]
+ }),
+ style: {
+ minWidth: '240px'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(WithDropDownMenuSeparators, {
+ children: [isSortable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_table_DropdownMenuGroup, {
+ children: SORTING_DIRECTIONS.map(direction => {
+ const isChecked = view.sort && isSorted && view.sort.direction === direction;
+ const value = `${field.id}-${direction}`;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuRadioItem, {
+ // All sorting radio items share the same name, so that
+ // selecting a sorting option automatically deselects the
+ // previously selected one, even if it is displayed in
+ // another submenu. The field and direction are passed via
+ // the `value` prop.
+ name: "view-table-sorting",
+ value: value,
+ checked: isChecked,
+ onChange: () => {
+ onChangeView({
+ ...view,
+ sort: {
+ field: field.id,
+ direction
+ }
+ });
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_table_DropdownMenuItemLabel, {
+ children: sortLabels[direction]
+ })
+ }, value);
+ })
+ }), canAddFilter && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_table_DropdownMenuGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_table_DropdownMenuItem, {
+ prefix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ icon: library_funnel
+ }),
+ onClick: () => {
+ setOpenedFilter(field.id);
+ onChangeView({
+ ...view,
+ page: 1,
+ filters: [...(view.filters || []), {
+ field: field.id,
+ value: undefined,
+ operator: operators[0]
+ }]
+ });
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_table_DropdownMenuItemLabel, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Add filter')
+ })
+ })
+ }), isHidable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_table_DropdownMenuItem, {
+ prefix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ icon: library_unseen
+ }),
+ onClick: () => {
+ onHide(field);
+ onChangeView({
+ ...view,
+ hiddenFields: view.hiddenFields.concat(field.id)
+ });
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_table_DropdownMenuItemLabel, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Hide')
+ })
+ })]
+ })
+ });
+});
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/template-part-converter/convert-to-regular.js
-
-/**
- * WordPress dependencies
- */
-
-
-
-
-function ConvertToRegularBlocks({
- clientId,
- onClose
+// @ts-expect-error Lift the `Item` type argument through the forwardRef.
+const HeaderMenu = _HeaderMenu;
+function BulkSelectionCheckbox({
+ selection,
+ onSelectionChange,
+ data,
+ actions,
+ getItemId
}) {
- const {
- getBlocks
- } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
- const {
- replaceBlocks
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- const canRemove = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).canRemoveBlock(clientId), [clientId]);
- if (!canRemove) {
- return null;
- }
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
+ const selectableItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return data.filter(item => {
+ return actions.some(action => action.supportsBulk && (!action.isEligible || action.isEligible(item)));
+ });
+ }, [data, actions]);
+ const selectedItems = data.filter(item => selection.includes(getItemId(item)) && selectableItems.includes(item));
+ const areAllSelected = selectedItems.length === selectableItems.length;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
+ className: "dataviews-view-table-selection-checkbox",
+ __nextHasNoMarginBottom: true,
+ checked: areAllSelected,
+ indeterminate: !areAllSelected && !!selectedItems.length,
+ onChange: () => {
+ if (areAllSelected) {
+ onSelectionChange([]);
+ } else {
+ onSelectionChange(selectableItems);
+ }
+ },
+ "aria-label": areAllSelected ? (0,external_wp_i18n_namespaceObject.__)('Deselect all') : (0,external_wp_i18n_namespaceObject.__)('Select all')
+ });
+}
+function TableRow({
+ hasBulkActions,
+ item,
+ actions,
+ id,
+ visibleFields,
+ primaryField,
+ selection,
+ getItemId,
+ onSelectionChange,
+ data
+}) {
+ const hasPossibleBulkAction = useHasAPossibleBulkAction(actions, item);
+ const isSelected = hasPossibleBulkAction && selection.includes(id);
+ const [isHovered, setIsHovered] = (0,external_wp_element_namespaceObject.useState)(false);
+ const handleMouseEnter = () => {
+ setIsHovered(true);
+ };
+ const handleMouseLeave = () => {
+ setIsHovered(false);
+ };
+
+ // Will be set to true if `onTouchStart` fires. This happens before
+ // `onClick` and can be used to exclude touchscreen devices from certain
+ // behaviours.
+ const isTouchDevice = (0,external_wp_element_namespaceObject.useRef)(false);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("tr", {
+ className: dist_clsx('dataviews-view-table__row', {
+ 'is-selected': hasPossibleBulkAction && isSelected,
+ 'is-hovered': isHovered,
+ 'has-bulk-actions': hasPossibleBulkAction
+ }),
+ onMouseEnter: handleMouseEnter,
+ onMouseLeave: handleMouseLeave,
+ onTouchStart: () => {
+ isTouchDevice.current = true;
+ },
onClick: () => {
- replaceBlocks(clientId, getBlocks(clientId));
- onClose();
+ if (!hasPossibleBulkAction) {
+ return;
+ }
+ if (!isTouchDevice.current && document.getSelection()?.type !== 'Range') {
+ if (!isSelected) {
+ onSelectionChange(data.filter(_item => {
+ const itemId = getItemId?.(_item);
+ return itemId === id || selection.includes(itemId);
+ }));
+ } else {
+ onSelectionChange(data.filter(_item => {
+ const itemId = getItemId?.(_item);
+ return itemId !== id && selection.includes(itemId);
+ }));
+ }
+ }
+ },
+ children: [hasBulkActions && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("td", {
+ className: "dataviews-view-table__checkbox-column",
+ style: {
+ width: '1%'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "dataviews-view-table__cell-content-wrapper",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SingleSelectionCheckbox, {
+ item: item,
+ selection: selection,
+ onSelectionChange: onSelectionChange,
+ getItemId: getItemId,
+ data: data,
+ primaryField: primaryField,
+ disabled: !hasPossibleBulkAction
+ })
+ })
+ }), visibleFields.map(field => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("td", {
+ style: {
+ width: field.width || undefined,
+ minWidth: field.minWidth || undefined,
+ maxWidth: field.maxWidth || undefined
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('dataviews-view-table__cell-content-wrapper', {
+ 'dataviews-view-table__primary-field': primaryField?.id === field.id
+ }),
+ children: field.render({
+ item
+ })
+ })
+ }, field.id)), !!actions?.length &&
+ /*#__PURE__*/
+ // Disable reason: we are not making the element interactive,
+ // but preventing any click events from bubbling up to the
+ // table row. This allows us to add a click handler to the row
+ // itself (to toggle row selection) without erroneously
+ // intercepting click events from ItemActions.
+ /* eslint-disable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events */
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)("td", {
+ className: "dataviews-view-table__actions-column",
+ onClick: e => e.stopPropagation(),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemActions, {
+ item: item,
+ actions: actions
+ })
+ })
+ /* eslint-enable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events */]
+ });
+}
+function ViewTable({
+ actions,
+ data,
+ fields,
+ getItemId,
+ isLoading = false,
+ onChangeView,
+ onSelectionChange,
+ selection,
+ setOpenedFilter,
+ view
+}) {
+ const headerMenuRefs = (0,external_wp_element_namespaceObject.useRef)(new Map());
+ const headerMenuToFocusRef = (0,external_wp_element_namespaceObject.useRef)();
+ const [nextHeaderMenuToFocus, setNextHeaderMenuToFocus] = (0,external_wp_element_namespaceObject.useState)();
+ const hasBulkActions = useSomeItemHasAPossibleBulkAction(actions, data);
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (headerMenuToFocusRef.current) {
+ headerMenuToFocusRef.current.focus();
+ headerMenuToFocusRef.current = undefined;
}
- }, (0,external_wp_i18n_namespaceObject.__)('Detach'));
+ });
+ const tableNoticeId = (0,external_wp_element_namespaceObject.useId)();
+ if (nextHeaderMenuToFocus) {
+ // If we need to force focus, we short-circuit rendering here
+ // to prevent any additional work while we handle that.
+ // Clearing out the focus directive is necessary to make sure
+ // future renders don't cause unexpected focus jumps.
+ headerMenuToFocusRef.current = nextHeaderMenuToFocus;
+ setNextHeaderMenuToFocus(undefined);
+ return;
+ }
+ const onHide = field => {
+ const hidden = headerMenuRefs.current.get(field.id);
+ const fallback = hidden ? headerMenuRefs.current.get(hidden.fallback) : undefined;
+ setNextHeaderMenuToFocus(fallback?.node);
+ };
+ const visibleFields = fields.filter(field => !view.hiddenFields.includes(field.id) && ![view.layout.mediaField].includes(field.id));
+ const hasData = !!data?.length;
+ const primaryField = fields.find(field => field.id === view.layout.primaryField);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("table", {
+ className: "dataviews-view-table",
+ "aria-busy": isLoading,
+ "aria-describedby": tableNoticeId,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("thead", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("tr", {
+ className: "dataviews-view-table__row",
+ children: [hasBulkActions && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("th", {
+ className: "dataviews-view-table__checkbox-column",
+ style: {
+ width: '1%'
+ },
+ "data-field-id": "selection",
+ scope: "col",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BulkSelectionCheckbox, {
+ selection: selection,
+ onSelectionChange: onSelectionChange,
+ data: data,
+ actions: actions,
+ getItemId: getItemId
+ })
+ }), visibleFields.map((field, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("th", {
+ style: {
+ width: field.width || undefined,
+ minWidth: field.minWidth || undefined,
+ maxWidth: field.maxWidth || undefined
+ },
+ "data-field-id": field.id,
+ "aria-sort": view.sort?.field === field.id ? sortValues[view.sort.direction] : undefined,
+ scope: "col",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HeaderMenu, {
+ ref: node => {
+ if (node) {
+ headerMenuRefs.current.set(field.id, {
+ node,
+ fallback: visibleFields[index > 0 ? index - 1 : 1]?.id
+ });
+ } else {
+ headerMenuRefs.current.delete(field.id);
+ }
+ },
+ field: field,
+ view: view,
+ onChangeView: onChangeView,
+ onHide: onHide,
+ setOpenedFilter: setOpenedFilter
+ })
+ }, field.id)), !!actions?.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("th", {
+ "data-field-id": "actions",
+ className: "dataviews-view-table__actions-column",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "dataviews-view-table-header",
+ children: (0,external_wp_i18n_namespaceObject.__)('Actions')
+ })
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("tbody", {
+ children: hasData && data.map((item, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TableRow, {
+ item: item,
+ hasBulkActions: hasBulkActions,
+ actions: actions,
+ id: getItemId(item) || index.toString(),
+ visibleFields: visibleFields,
+ primaryField: primaryField,
+ selection: selection,
+ getItemId: getItemId,
+ onSelectionChange: onSelectionChange,
+ data: data
+ }, getItemId(item)))
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx({
+ 'dataviews-loading': isLoading,
+ 'dataviews-no-results': !hasData && !isLoading
+ }),
+ id: tableNoticeId,
+ children: !hasData && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: isLoading ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}) : (0,external_wp_i18n_namespaceObject.__)('No results')
+ })
+ })]
+ });
}
+/* harmony default export */ const view_table = (ViewTable);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/template-part-converter/convert-to-template-part.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/view-grid.js
/**
- * WordPress dependencies
+ * External dependencies
*/
-
-
-
-
-
-
-
/**
- * Internal dependencies
+ * WordPress dependencies
*/
-function ConvertToTemplatePart({
- clientIds,
- blocks
-}) {
- const [isModalOpen, setIsModalOpen] = (0,external_wp_element_namespaceObject.useState)(false);
- const {
- replaceBlocks
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- const {
- createSuccessNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- const {
- canCreate
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- supportsTemplatePartsMode
- } = select(store_store).getSettings();
- return {
- canCreate: !supportsTemplatePartsMode
- };
- }, []);
- if (!canCreate) {
- return null;
- }
- const onConvert = async templatePart => {
- replaceBlocks(clientIds, (0,external_wp_blocks_namespaceObject.createBlock)('core/template-part', {
- slug: templatePart.slug,
- theme: templatePart.theme
- }));
- createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Template part created.'), {
- type: 'snackbar'
- });
-
- // The modal and this component will be unmounted because of `replaceBlocks` above,
- // so no need to call `closeModal` or `onClose`.
- };
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- icon: symbol_filled,
- onClick: () => {
- setIsModalOpen(true);
- },
- "aria-expanded": isModalOpen,
- "aria-haspopup": "dialog"
- }, (0,external_wp_i18n_namespaceObject.__)('Create template part')), isModalOpen && (0,external_React_.createElement)(CreateTemplatePartModal, {
- closeModal: () => {
- setIsModalOpen(false);
- },
- blocks: blocks,
- onCreate: onConvert
- }));
-}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/template-part-converter/index.js
/**
- * WordPress dependencies
+ * Internal dependencies
*/
-/**
- * Internal dependencies
- */
-function TemplatePartConverter() {
- return (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockSettingsMenuControls, null, ({
- selectedClientIds,
- onClose
- }) => (0,external_React_.createElement)(TemplatePartConverterMenuItem, {
- clientIds: selectedClientIds,
- onClose: onClose
- }));
+
+function GridItem({
+ selection,
+ data,
+ onSelectionChange,
+ getItemId,
+ item,
+ actions,
+ mediaField,
+ primaryField,
+ visibleFields,
+ badgeFields,
+ columnFields
+}) {
+ const hasBulkAction = useHasAPossibleBulkAction(actions, item);
+ const id = getItemId(item);
+ const isSelected = selection.includes(id);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 0,
+ className: dist_clsx('dataviews-view-grid__card', {
+ 'is-selected': hasBulkAction && isSelected
+ }),
+ onClickCapture: event => {
+ if (event.ctrlKey || event.metaKey) {
+ event.stopPropagation();
+ event.preventDefault();
+ if (!hasBulkAction) {
+ return;
+ }
+ if (!isSelected) {
+ onSelectionChange(data.filter(_item => {
+ const itemId = getItemId?.(_item);
+ return itemId === id || selection.includes(itemId);
+ }));
+ } else {
+ onSelectionChange(data.filter(_item => {
+ const itemId = getItemId?.(_item);
+ return itemId !== id && selection.includes(itemId);
+ }));
+ }
+ }
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "dataviews-view-grid__media",
+ children: mediaField?.render({
+ item
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "space-between",
+ className: "dataviews-view-grid__title-actions",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SingleSelectionCheckbox, {
+ item: item,
+ selection: selection,
+ onSelectionChange: onSelectionChange,
+ getItemId: getItemId,
+ data: data,
+ primaryField: primaryField,
+ disabled: !hasBulkAction
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
+ className: "dataviews-view-grid__primary-field",
+ children: primaryField?.render({
+ item
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemActions, {
+ item: item,
+ actions: actions,
+ isCompact: true
+ })]
+ }), !!badgeFields?.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
+ className: "dataviews-view-grid__badge-fields",
+ spacing: 2,
+ wrap: true,
+ alignment: "top",
+ justify: "flex-start",
+ children: badgeFields.map(field => {
+ const renderedValue = field.render({
+ item
+ });
+ if (!renderedValue) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ className: "dataviews-view-grid__field-value",
+ children: renderedValue
+ }, field.id);
+ })
+ }), !!visibleFields?.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalVStack, {
+ className: "dataviews-view-grid__fields",
+ spacing: 3,
+ children: visibleFields.map(field => {
+ const renderedValue = field.render({
+ item
+ });
+ if (!renderedValue) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Flex, {
+ className: dist_clsx('dataviews-view-grid__field', columnFields?.includes(field.id) ? 'is-column' : 'is-row'),
+ gap: 1,
+ justify: "flex-start",
+ expanded: true,
+ style: {
+ height: 'auto'
+ },
+ direction: columnFields?.includes(field.id) ? 'column' : 'row',
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ className: "dataviews-view-grid__field-name",
+ children: field.header
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ className: "dataviews-view-grid__field-value",
+ style: {
+ maxHeight: 'none'
+ },
+ children: renderedValue
+ })]
+ })
+ }, field.id);
+ })
+ })]
+ }, id);
}
-function TemplatePartConverterMenuItem({
- clientIds,
- onClose
+function ViewGrid({
+ actions,
+ data,
+ fields,
+ getItemId,
+ isLoading,
+ onSelectionChange,
+ selection,
+ view
}) {
- const blocks = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).getBlocksByClientId(clientIds), [clientIds]);
-
- // Allow converting a single template part to standard blocks.
- if (blocks.length === 1 && blocks[0]?.name === 'core/template-part') {
- return (0,external_React_.createElement)(ConvertToRegularBlocks, {
- clientId: clientIds[0],
- onClose: onClose
- });
- }
- return (0,external_React_.createElement)(ConvertToTemplatePart, {
- clientIds: clientIds,
- blocks: blocks
+ const mediaField = fields.find(field => field.id === view.layout.mediaField);
+ const primaryField = fields.find(field => field.id === view.layout.primaryField);
+ const {
+ visibleFields,
+ badgeFields
+ } = fields.reduce((accumulator, field) => {
+ if (view.hiddenFields.includes(field.id) || [view.layout.mediaField, view.layout.primaryField].includes(field.id)) {
+ return accumulator;
+ }
+ // If the field is a badge field, add it to the badgeFields array
+ // otherwise add it to the rest visibleFields array.
+ const key = view.layout.badgeFields?.includes(field.id) ? 'badgeFields' : 'visibleFields';
+ accumulator[key].push(field);
+ return accumulator;
+ }, {
+ visibleFields: [],
+ badgeFields: []
+ });
+ const hasData = !!data?.length;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [hasData && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalGrid, {
+ gap: 8,
+ columns: 2,
+ alignment: "top",
+ className: "dataviews-view-grid",
+ "aria-busy": isLoading,
+ children: data.map(item => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GridItem, {
+ selection: selection,
+ data: data,
+ onSelectionChange: onSelectionChange,
+ getItemId: getItemId,
+ item: item,
+ actions: actions,
+ mediaField: mediaField,
+ primaryField: primaryField,
+ visibleFields: visibleFields,
+ badgeFields: badgeFields,
+ columnFields: view.layout.columnFields
+ }, getItemId(item));
+ })
+ }), !hasData && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx({
+ 'dataviews-loading': isLoading,
+ 'dataviews-no-results': !isLoading
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: isLoading ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}) : (0,external_wp_i18n_namespaceObject.__)('No results')
+ })
+ })]
});
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/editor/index.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/view-list.js
/**
* External dependencies
*/
+// Import CompositeStore type, which is not exported from @wordpress/components.
+// eslint-disable-next-line no-restricted-imports
/**
* WordPress dependencies
@@ -36517,10 +25879,6 @@ function TemplatePartConverterMenuItem({
-
-
-
-
/**
* Internal dependencies
*/
@@ -36528,254 +25886,300 @@ function TemplatePartConverterMenuItem({
-
-
-
-
-
-
-
-
-
-
-
-
const {
- BlockRemovalWarningModal
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
-const {
- ExperimentalEditorProvider: EditorProvider,
- InserterSidebar,
- ListViewSidebar
-} = unlock(external_wp_editor_namespaceObject.privateApis);
-const interfaceLabels = {
- /* translators: accessibility text for the editor content landmark region. */
- body: (0,external_wp_i18n_namespaceObject.__)('Editor content'),
- /* translators: accessibility text for the editor settings landmark region. */
- sidebar: (0,external_wp_i18n_namespaceObject.__)('Editor settings'),
- /* translators: accessibility text for the editor publish landmark region. */
- actions: (0,external_wp_i18n_namespaceObject.__)('Editor publish'),
- /* translators: accessibility text for the editor footer landmark region. */
- footer: (0,external_wp_i18n_namespaceObject.__)('Editor footer')
-};
-
-// Prevent accidental removal of certain blocks, asking the user for
-// confirmation.
-const blockRemovalRules = {
- 'core/query': (0,external_wp_i18n_namespaceObject.__)('Query Loop displays a list of posts or pages.'),
- 'core/post-content': (0,external_wp_i18n_namespaceObject.__)('Post Content displays the content of a post or page.'),
- 'core/post-template': (0,external_wp_i18n_namespaceObject.__)('Post Template displays each post or page in a Query Loop.'),
- 'bindings/core/pattern-overrides': (0,external_wp_i18n_namespaceObject.__)('Blocks from synced patterns that can have overriden content.')
-};
-function Editor({
- isLoading
+ useCompositeStoreV2: view_list_useCompositeStore,
+ CompositeV2: view_list_Composite,
+ CompositeItemV2: view_list_CompositeItem,
+ CompositeRowV2: CompositeRow,
+ DropdownMenuV2: view_list_DropdownMenu
+} = build_module_lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
+function ListItem({
+ actions,
+ id,
+ isSelected,
+ item,
+ mediaField,
+ onSelect,
+ primaryField,
+ store,
+ visibleFields
}) {
+ const itemRef = (0,external_wp_element_namespaceObject.useRef)(null);
+ const labelId = `${id}-label`;
+ const descriptionId = `${id}-description`;
+ const [isHovered, setIsHovered] = (0,external_wp_element_namespaceObject.useState)(false);
+ const handleMouseEnter = () => {
+ setIsHovered(true);
+ };
+ const handleMouseLeave = () => {
+ setIsHovered(false);
+ };
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (isSelected) {
+ itemRef.current?.scrollIntoView({
+ behavior: 'auto',
+ block: 'nearest',
+ inline: 'nearest'
+ });
+ }
+ }, [isSelected]);
const {
- record: editedPost,
- getTitle,
- isLoaded: hasLoadedPost
- } = useEditedEntityRecord();
- const {
- type: editedPostType
- } = editedPost;
- const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
- const {
- context,
- contextPost,
- editorMode,
- canvasMode,
- blockEditorMode,
- isRightSidebarOpen,
- isInserterOpen,
- isListViewOpen,
- isDistractionFree,
- showIconLabels,
- showBlockBreadcrumbs,
- postTypeLabel
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- get
- } = select(external_wp_preferences_namespaceObject.store);
- const {
- getEditedPostContext,
- getEditorMode,
- getCanvasMode
- } = unlock(select(store_store));
- const {
- __unstableGetEditorMode
- } = select(external_wp_blockEditor_namespaceObject.store);
- const {
- getActiveComplementaryArea
- } = select(store);
- const {
- getEntityRecord
- } = select(external_wp_coreData_namespaceObject.store);
- const {
- isInserterOpened,
- isListViewOpened,
- getPostTypeLabel
- } = select(external_wp_editor_namespaceObject.store);
- const _context = getEditedPostContext();
-
- // The currently selected entity to display.
- // Typically template or template part in the site editor.
+ primaryAction,
+ eligibleActions
+ } = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ // If an action is eligible for all items, doesn't need
+ // to provide the `isEligible` function.
+ const _eligibleActions = actions.filter(action => !action.isEligible || action.isEligible(item));
+ const _primaryActions = _eligibleActions.filter(action => action.isPrimary && !!action.icon);
return {
- context: _context,
- contextPost: _context?.postId ? getEntityRecord('postType', _context.postType, _context.postId) : undefined,
- editorMode: getEditorMode(),
- canvasMode: getCanvasMode(),
- blockEditorMode: __unstableGetEditorMode(),
- isInserterOpen: isInserterOpened(),
- isListViewOpen: isListViewOpened(),
- isRightSidebarOpen: getActiveComplementaryArea(store_store.name),
- isDistractionFree: get('core', 'distractionFree'),
- showBlockBreadcrumbs: get('core', 'showBlockBreadcrumbs'),
- showIconLabels: get('core', 'showIconLabels'),
- postTypeLabel: getPostTypeLabel()
+ primaryAction: _primaryActions?.[0],
+ eligibleActions: _eligibleActions
};
- }, []);
- const isViewMode = canvasMode === 'view';
- const isEditMode = canvasMode === 'edit';
- const showVisualEditor = isViewMode || editorMode === 'visual';
- const shouldShowBlockBreadcrumbs = !isDistractionFree && showBlockBreadcrumbs && isEditMode && showVisualEditor && blockEditorMode !== 'zoom-out';
- const shouldShowInserter = isEditMode && showVisualEditor && isInserterOpen;
- const shouldShowListView = isEditMode && showVisualEditor && isListViewOpen;
- const secondarySidebarLabel = isListViewOpen ? (0,external_wp_i18n_namespaceObject.__)('List View') : (0,external_wp_i18n_namespaceObject.__)('Block Library');
- const postWithTemplate = !!context?.postId;
- let title;
- if (hasLoadedPost) {
- var _POST_TYPE_LABELS$edi;
- title = (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: A breadcrumb trail for the Admin document title. %1$s: title of template being edited, %2$s: type of template (Template or Template Part).
- (0,external_wp_i18n_namespaceObject.__)('%1$s ‹ %2$s'), getTitle(), (_POST_TYPE_LABELS$edi = POST_TYPE_LABELS[editedPostType]) !== null && _POST_TYPE_LABELS$edi !== void 0 ? _POST_TYPE_LABELS$edi : POST_TYPE_LABELS[constants_TEMPLATE_POST_TYPE]);
- }
-
- // Only announce the title once the editor is ready to prevent "Replace"
- // action in <URLQueryController> from double-announcing.
- useTitle(hasLoadedPost && title);
- const loadingProgressId = (0,external_wp_compose_namespaceObject.useInstanceId)(CanvasLoader, 'edit-site-editor__loading-progress');
- const settings = useSpecificEditorSettings();
- const isReady = !isLoading && (postWithTemplate && !!contextPost && !!editedPost || !postWithTemplate && !!editedPost);
- return (0,external_React_.createElement)(external_React_.Fragment, null, !isReady ? (0,external_React_.createElement)(CanvasLoader, {
- id: loadingProgressId
- }) : null, isEditMode && (0,external_React_.createElement)(WelcomeGuide, null), hasLoadedPost && !editedPost && (0,external_React_.createElement)(external_wp_components_namespaceObject.Notice, {
- status: "warning",
- isDismissible: false
- }, (0,external_wp_i18n_namespaceObject.__)("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")), isReady && (0,external_React_.createElement)(EditorProvider, {
- post: postWithTemplate ? contextPost : editedPost,
- __unstableTemplate: postWithTemplate ? editedPost : undefined,
- settings: settings,
- useSubRegistry: false
- }, (0,external_React_.createElement)(SidebarComplementaryAreaFills, null), isEditMode && (0,external_React_.createElement)(StartTemplateOptions, null), (0,external_React_.createElement)(interface_skeleton, {
- isDistractionFree: isDistractionFree,
- enableRegionNavigation: false,
- className: classnames_default()('edit-site-editor__interface-skeleton', {
- 'show-icon-labels': showIconLabels
- }),
- notices: (0,external_React_.createElement)(external_wp_editor_namespaceObject.EditorSnackbars, null),
- content: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(GlobalStylesRenderer, null), isEditMode && (0,external_React_.createElement)(external_wp_editor_namespaceObject.EditorNotices, null), showVisualEditor && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(TemplatePartConverter, null), (0,external_React_.createElement)(SidebarInspectorFill, null, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockInspector, null)), !isLargeViewport && (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockToolbar, {
- hideDragHandle: true
- }), (0,external_React_.createElement)(SiteEditorCanvas, null), (0,external_React_.createElement)(BlockRemovalWarningModal, {
- rules: blockRemovalRules
- }), (0,external_React_.createElement)(PatternModal, null)), editorMode === 'text' && isEditMode && (0,external_React_.createElement)(CodeEditor, null), isEditMode && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(edit_mode, null), (0,external_React_.createElement)(external_wp_editor_namespaceObject.EditorKeyboardShortcutsRegister, null), (0,external_React_.createElement)(external_wp_editor_namespaceObject.EditorKeyboardShortcuts, null))),
- secondarySidebar: isEditMode && (shouldShowInserter && (0,external_React_.createElement)(InserterSidebar, null) || shouldShowListView && (0,external_React_.createElement)(ListViewSidebar, null)),
- sidebar: !isDistractionFree && isEditMode && isRightSidebarOpen && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(complementary_area.Slot, {
- scope: "core/edit-site"
- })),
- footer: shouldShowBlockBreadcrumbs && (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockBreadcrumb, {
- rootLabelText: postTypeLabel
+ }, [actions, item]);
+ const [isModalOpen, setIsModalOpen] = (0,external_wp_element_namespaceObject.useState)(false);
+ const primaryActionLabel = primaryAction && (typeof primaryAction.label === 'string' ? primaryAction.label : primaryAction.label([item]));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeRow, {
+ ref: itemRef,
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {}),
+ role: "row",
+ className: dist_clsx({
+ 'is-selected': isSelected,
+ 'is-hovered': isHovered
}),
- labels: {
- ...interfaceLabels,
- secondarySidebar: secondarySidebarLabel
- }
- })));
+ onMouseEnter: handleMouseEnter,
+ onMouseLeave: handleMouseLeave,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ className: "dataviews-view-list__item-wrapper",
+ alignment: "center",
+ spacing: 0,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ role: "gridcell",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_list_CompositeItem, {
+ store: store,
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {}),
+ role: "button",
+ id: id,
+ "aria-pressed": isSelected,
+ "aria-labelledby": labelId,
+ "aria-describedby": descriptionId,
+ className: "dataviews-view-list__item",
+ onClick: () => onSelect(item),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ spacing: 3,
+ justify: "start",
+ alignment: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "dataviews-view-list__media-wrapper",
+ children: mediaField?.render({
+ item
+ }) || /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "dataviews-view-list__media-placeholder"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 0,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "dataviews-view-list__primary-field",
+ id: labelId,
+ children: primaryField?.render({
+ item
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "dataviews-view-list__fields",
+ id: descriptionId,
+ children: visibleFields.map(field => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "dataviews-view-list__field",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ as: "span",
+ className: "dataviews-view-list__field-label",
+ children: field.header
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "dataviews-view-list__field-value",
+ children: field.render({
+ item
+ })
+ })]
+ }, field.id))
+ })]
+ })]
+ })
+ })
+ }), eligibleActions?.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ spacing: 1,
+ justify: "flex-end",
+ className: "dataviews-view-list__item-actions",
+ style: {
+ flexShrink: '0',
+ width: 'auto'
+ },
+ children: [primaryAction && 'RenderModal' in primaryAction && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ role: "gridcell",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_list_CompositeItem, {
+ store: store,
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ label: primaryActionLabel,
+ icon: primaryAction.icon,
+ isDestructive: primaryAction.isDestructive,
+ size: "compact",
+ onClick: () => setIsModalOpen(true)
+ }),
+ children: isModalOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionModal, {
+ action: primaryAction,
+ items: [item],
+ closeModal: () => setIsModalOpen(false)
+ })
+ })
+ }), primaryAction && !('RenderModal' in primaryAction) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ role: "gridcell",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_list_CompositeItem, {
+ store: store,
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ label: primaryActionLabel,
+ icon: primaryAction.icon,
+ isDestructive: primaryAction.isDestructive,
+ size: "compact",
+ onClick: () => primaryAction.callback([item])
+ })
+ })
+ }, primaryAction.id), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ role: "gridcell",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_list_DropdownMenu, {
+ trigger: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_list_CompositeItem, {
+ store: store,
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "compact",
+ icon: more_vertical,
+ label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
+ __experimentalIsFocusable: true,
+ disabled: !actions.length,
+ onKeyDown: event => {
+ if (event.key === 'ArrowDown') {
+ // Prevent the default behaviour (open dropdown menu) and go down.
+ event.preventDefault();
+ store.move(store.down());
+ }
+ if (event.key === 'ArrowUp') {
+ // Prevent the default behavior (open dropdown menu) and go up.
+ event.preventDefault();
+ store.move(store.up());
+ }
+ }
+ })
+ }),
+ placement: "bottom-end",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionsDropdownMenuGroup, {
+ actions: eligibleActions,
+ item: item
+ })
+ })
+ })]
+ })]
+ })
+ });
}
+function ViewList(props) {
+ const {
+ actions,
+ data,
+ fields,
+ getItemId,
+ isLoading,
+ onSelectionChange,
+ selection,
+ view
+ } = props;
+ const baseId = (0,external_wp_compose_namespaceObject.useInstanceId)(ViewList, 'view-list');
+ const selectedItem = data?.findLast(item => selection.includes(getItemId(item)));
+ const mediaField = fields.find(field => field.id === view.layout.mediaField);
+ const primaryField = fields.find(field => field.id === view.layout.primaryField);
+ const visibleFields = fields.filter(field => !view.hiddenFields.includes(field.id) && ![view.layout.primaryField, view.layout.mediaField].includes(field.id));
+ const onSelect = (0,external_wp_element_namespaceObject.useCallback)(item => onSelectionChange([item]), [onSelectionChange]);
+ const getItemDomId = (0,external_wp_element_namespaceObject.useCallback)(item => item ? `${baseId}-${getItemId(item)}` : undefined, [baseId, getItemId]);
+ const store = view_list_useCompositeStore({
+ defaultActiveId: getItemDomId(selectedItem)
+ });
-;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/pagination.js
+ // Manage focused item, when the active one is removed from the list.
+ const isActiveIdInList = store.useState(state => state.items.some(item => item.id === state.activeId));
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (!isActiveIdInList) {
+ // Prefer going down, except if there is no item below (last item), then go up (last item in list).
+ if (store.down()) {
+ store.move(store.down());
+ } else if (store.up()) {
+ store.move(store.up());
+ }
+ }
+ }, [isActiveIdInList]);
+ const hasData = data?.length;
+ if (!hasData) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx({
+ 'dataviews-loading': isLoading,
+ 'dataviews-no-results': !hasData && !isLoading
+ }),
+ children: !hasData && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: isLoading ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}) : (0,external_wp_i18n_namespaceObject.__)('No results')
+ })
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_list_Composite, {
+ id: baseId,
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {}),
+ className: "dataviews-view-list",
+ role: "grid",
+ store: store,
+ children: data.map(item => {
+ const id = getItemDomId(item);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ListItem, {
+ id: id,
+ actions: actions,
+ item: item,
+ isSelected: item === selectedItem,
+ onSelect: onSelect,
+ mediaField: mediaField,
+ primaryField: primaryField,
+ store: store,
+ visibleFields: visibleFields
+ }, id);
+ })
+ });
+}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/layouts.js
/**
* WordPress dependencies
*/
+/**
+ * Internal dependencies
+ */
-const pagination_Pagination = (0,external_wp_element_namespaceObject.memo)(function Pagination({
- view,
- onChangeView,
- paginationInfo: {
- totalItems = 0,
- totalPages
- }
-}) {
- if (!totalItems || !totalPages) {
- return null;
- }
- return !!totalItems && totalPages !== 1 && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- expanded: false,
- spacing: 6,
- justify: "end",
- className: "dataviews-pagination"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "flex-start",
- expanded: false,
- spacing: 2,
- className: "dataviews-pagination__page-selection"
- }, (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Total number of pages.
- (0,external_wp_i18n_namespaceObject._x)('Page <CurrentPageControl /> of %s', 'paging'), totalPages), {
- CurrentPageControl: (0,external_React_.createElement)(external_wp_components_namespaceObject.SelectControl, {
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Current page'),
- value: view.page,
- options: Array.from(Array(totalPages)).map((_, i) => {
- const page = i + 1;
- return {
- value: page,
- label: page
- };
- }),
- onChange: newValue => {
- onChangeView({
- ...view,
- page: +newValue
- });
- },
- size: 'compact',
- __nextHasNoMarginBottom: true
- })
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- expanded: false,
- spacing: 1
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- onClick: () => onChangeView({
- ...view,
- page: view.page - 1
- }),
- disabled: view.page === 1,
- __experimentalIsFocusable: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Previous page'),
- icon: chevron_left,
- showTooltip: true,
- size: "compact",
- tooltipPosition: "top"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- onClick: () => onChangeView({
- ...view,
- page: view.page + 1
- }),
- disabled: view.page >= totalPages,
- __experimentalIsFocusable: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Next page'),
- icon: chevron_right,
- showTooltip: true,
- size: "compact",
- tooltipPosition: "top"
- })));
-});
-/* harmony default export */ const pagination = (pagination_Pagination);
+
+
+
+const VIEW_LAYOUTS = [{
+ type: constants_LAYOUT_TABLE,
+ label: (0,external_wp_i18n_namespaceObject.__)('Table'),
+ component: view_table,
+ icon: block_table
+}, {
+ type: constants_LAYOUT_GRID,
+ label: (0,external_wp_i18n_namespaceObject.__)('Grid'),
+ component: ViewGrid,
+ icon: library_category
+}, {
+ type: constants_LAYOUT_LIST,
+ label: (0,external_wp_i18n_namespaceObject.__)('List'),
+ component: ViewList,
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? format_list_bullets_rtl : format_list_bullets
+}];
;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/view-actions.js
+/**
+ * External dependencies
+ */
/**
* WordPress dependencies
@@ -36790,6 +26194,9 @@ const pagination_Pagination = (0,external_wp_element_namespaceObject.memo)(funct
*/
+
+
+
const {
DropdownMenuV2: view_actions_DropdownMenu,
DropdownMenuGroupV2: view_actions_DropdownMenuGroup,
@@ -36797,7 +26204,7 @@ const {
DropdownMenuRadioItemV2: view_actions_DropdownMenuRadioItem,
DropdownMenuCheckboxItemV2: DropdownMenuCheckboxItem,
DropdownMenuItemLabelV2: view_actions_DropdownMenuItemLabel
-} = lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
+} = build_module_lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
function ViewTypeMenu({
view,
onChangeView,
@@ -36811,56 +26218,77 @@ function ViewTypeMenu({
return null;
}
const activeView = _availableViews.find(v => view.type === v.type);
- return (0,external_React_.createElement)(view_actions_DropdownMenu, {
- trigger: (0,external_React_.createElement)(view_actions_DropdownMenuItem, {
- suffix: (0,external_React_.createElement)("span", {
- "aria-hidden": "true"
- }, activeView.label)
- }, (0,external_React_.createElement)(view_actions_DropdownMenuItemLabel, null, (0,external_wp_i18n_namespaceObject.__)('Layout')))
- }, _availableViews.map(availableView => {
- return (0,external_React_.createElement)(view_actions_DropdownMenuRadioItem, {
- key: availableView.type,
- value: availableView.type,
- name: "view-actions-available-view",
- checked: availableView.type === view.type,
- hideOnClick: true,
- onChange: e => {
- onChangeView({
- ...view,
- type: e.target.value
- });
- }
- }, (0,external_React_.createElement)(view_actions_DropdownMenuItemLabel, null, availableView.label));
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenu, {
+ trigger: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenuItem, {
+ suffix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-hidden": "true",
+ children: activeView?.label
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenuItemLabel, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Layout')
+ })
+ }),
+ children: _availableViews.map(availableView => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenuRadioItem, {
+ value: availableView.type,
+ name: "view-actions-available-view",
+ checked: availableView.type === view.type,
+ hideOnClick: true,
+ onChange: e => {
+ switch (e.target.value) {
+ case 'list':
+ case 'grid':
+ case 'table':
+ return onChangeView({
+ ...view,
+ type: e.target.value,
+ layout: {}
+ });
+ }
+ throw new Error('Invalid dataview');
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenuItemLabel, {
+ children: availableView.label
+ })
+ }, availableView.type);
+ })
+ });
}
const PAGE_SIZE_VALUES = [10, 20, 50, 100];
function PageSizeMenu({
view,
onChangeView
}) {
- return (0,external_React_.createElement)(view_actions_DropdownMenu, {
- trigger: (0,external_React_.createElement)(view_actions_DropdownMenuItem, {
- suffix: (0,external_React_.createElement)("span", {
- "aria-hidden": "true"
- }, view.perPage)
- }, (0,external_React_.createElement)(view_actions_DropdownMenuItemLabel, null, (0,external_wp_i18n_namespaceObject.__)('Items per page')))
- }, PAGE_SIZE_VALUES.map(size => {
- return (0,external_React_.createElement)(view_actions_DropdownMenuRadioItem, {
- key: size,
- value: size,
- name: "view-actions-page-size",
- checked: view.perPage === size,
- onChange: () => {
- onChangeView({
- ...view,
- // `e.target.value` holds the same value as `size` but as a string,
- // so we use `size` directly to avoid parsing to int.
- perPage: size,
- page: 1
- });
- }
- }, (0,external_React_.createElement)(view_actions_DropdownMenuItemLabel, null, size));
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenu, {
+ trigger: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenuItem, {
+ suffix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-hidden": "true",
+ children: view.perPage
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenuItemLabel, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Items per page')
+ })
+ }),
+ children: PAGE_SIZE_VALUES.map(size => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenuRadioItem, {
+ value: size,
+ name: "view-actions-page-size",
+ checked: view.perPage === size,
+ onChange: () => {
+ onChangeView({
+ ...view,
+ // `e.target.value` holds the same value as `size` but as a string,
+ // so we use `size` directly to avoid parsing to int.
+ perPage: size,
+ page: 1
+ });
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenuItemLabel, {
+ children: size
+ })
+ }, size);
+ })
+ });
}
function FieldsVisibilityMenu({
view,
@@ -36871,21 +26299,28 @@ function FieldsVisibilityMenu({
if (!hidableFields?.length) {
return null;
}
- return (0,external_React_.createElement)(view_actions_DropdownMenu, {
- trigger: (0,external_React_.createElement)(view_actions_DropdownMenuItem, null, (0,external_React_.createElement)(view_actions_DropdownMenuItemLabel, null, (0,external_wp_i18n_namespaceObject.__)('Fields')))
- }, hidableFields?.map(field => {
- return (0,external_React_.createElement)(DropdownMenuCheckboxItem, {
- key: field.id,
- value: field.id,
- checked: !view.hiddenFields?.includes(field.id),
- onChange: () => {
- onChangeView({
- ...view,
- hiddenFields: view.hiddenFields?.includes(field.id) ? view.hiddenFields.filter(id => id !== field.id) : [...(view.hiddenFields || []), field.id]
- });
- }
- }, (0,external_React_.createElement)(view_actions_DropdownMenuItemLabel, null, field.header));
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenu, {
+ trigger: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenuItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenuItemLabel, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Fields')
+ })
+ }),
+ children: hidableFields?.map(field => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuCheckboxItem, {
+ value: field.id,
+ checked: !view.hiddenFields?.includes(field.id),
+ onChange: () => {
+ onChangeView({
+ ...view,
+ hiddenFields: view.hiddenFields?.includes(field.id) ? view.hiddenFields.filter(id => id !== field.id) : [...(view.hiddenFields || []), field.id]
+ });
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenuItemLabel, {
+ children: field.header
+ })
+ }, field.id);
+ })
+ });
}
function SortMenu({
fields,
@@ -36897,78 +26332,175 @@ function SortMenu({
return null;
}
const currentSortedField = fields.find(field => field.id === view.sort?.field);
- return (0,external_React_.createElement)(view_actions_DropdownMenu, {
- trigger: (0,external_React_.createElement)(view_actions_DropdownMenuItem, {
- suffix: (0,external_React_.createElement)("span", {
- "aria-hidden": "true"
- }, currentSortedField?.header)
- }, (0,external_React_.createElement)(view_actions_DropdownMenuItemLabel, null, (0,external_wp_i18n_namespaceObject.__)('Sort by')))
- }, sortableFields?.map(field => {
- const sortedDirection = view.sort?.direction;
- return (0,external_React_.createElement)(view_actions_DropdownMenu, {
- key: field.id,
- trigger: (0,external_React_.createElement)(view_actions_DropdownMenuItem, null, (0,external_React_.createElement)(view_actions_DropdownMenuItemLabel, null, field.header)),
- style: {
- minWidth: '220px'
- }
- }, Object.entries(SORTING_DIRECTIONS).map(([direction, info]) => {
- const isChecked = currentSortedField !== undefined && sortedDirection === direction && field.id === currentSortedField.id;
- const value = `${field.id}-${direction}`;
- return (0,external_React_.createElement)(view_actions_DropdownMenuRadioItem, {
- key: value
- // All sorting radio items share the same name, so that
- // selecting a sorting option automatically deselects the
- // previously selected one, even if it is displayed in
- // another submenu. The field and direction are passed via
- // the `value` prop.
- ,
- name: "view-actions-sorting",
- value: value,
- checked: isChecked,
- onChange: () => {
- onChangeView({
- ...view,
- sort: {
- field: field.id,
- direction
- }
- });
- }
- }, (0,external_React_.createElement)(view_actions_DropdownMenuItemLabel, null, info.label));
- }));
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenu, {
+ trigger: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenuItem, {
+ suffix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ "aria-hidden": "true",
+ children: currentSortedField?.header
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenuItemLabel, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Sort by')
+ })
+ }),
+ children: sortableFields?.map(field => {
+ const sortedDirection = view.sort?.direction;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenu, {
+ trigger: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenuItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenuItemLabel, {
+ children: field.header
+ })
+ }),
+ style: {
+ minWidth: '220px'
+ },
+ children: SORTING_DIRECTIONS.map(direction => {
+ const isChecked = currentSortedField !== undefined && sortedDirection === direction && field.id === currentSortedField.id;
+ const value = `${field.id}-${direction}`;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenuRadioItem, {
+ // All sorting radio items share the same name, so that
+ // selecting a sorting option automatically deselects the
+ // previously selected one, even if it is displayed in
+ // another submenu. The field and direction are passed via
+ // the `value` prop.
+ name: "view-actions-sorting",
+ value: value,
+ checked: isChecked,
+ onChange: () => {
+ onChangeView({
+ ...view,
+ sort: {
+ field: field.id,
+ direction
+ }
+ });
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenuItemLabel, {
+ children: sortLabels[direction]
+ })
+ }, value);
+ })
+ }, field.id);
+ })
+ });
}
-const ViewActions = (0,external_wp_element_namespaceObject.memo)(function ViewActions({
+function _ViewActions({
fields,
view,
onChangeView,
supportedLayouts
}) {
- return (0,external_React_.createElement)(view_actions_DropdownMenu, {
- trigger: (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions_DropdownMenu, {
+ trigger: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
size: "compact",
icon: library_settings,
label: (0,external_wp_i18n_namespaceObject.__)('View options')
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(view_actions_DropdownMenuGroup, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ViewTypeMenu, {
+ view: view,
+ onChangeView: onChangeView,
+ supportedLayouts: supportedLayouts
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SortMenu, {
+ fields: fields,
+ view: view,
+ onChangeView: onChangeView
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FieldsVisibilityMenu, {
+ fields: fields,
+ view: view,
+ onChangeView: onChangeView
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PageSizeMenu, {
+ view: view,
+ onChangeView: onChangeView
+ })]
})
- }, (0,external_React_.createElement)(view_actions_DropdownMenuGroup, null, (0,external_React_.createElement)(ViewTypeMenu, {
- view: view,
- onChangeView: onChangeView,
- supportedLayouts: supportedLayouts
- }), (0,external_React_.createElement)(SortMenu, {
- fields: fields,
- view: view,
- onChangeView: onChangeView
- }), (0,external_React_.createElement)(FieldsVisibilityMenu, {
- fields: fields,
- view: view,
- onChangeView: onChangeView
- }), (0,external_React_.createElement)(PageSizeMenu, {
- view: view,
- onChangeView: onChangeView
- })));
-});
+ });
+}
+
+// A type assertion is used here to keep the type argument.
+const ViewActions = (0,external_wp_element_namespaceObject.memo)(_ViewActions);
/* harmony default export */ const view_actions = (ViewActions);
+;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/3IEDWLST.js
+"use client";
+
+// src/composite/utils.ts
+
+var NULL_ITEM = { id: null };
+function flipItems(items, activeId, shouldInsertNullItem = false) {
+ const index = items.findIndex((item) => item.id === activeId);
+ return [
+ ...items.slice(index + 1),
+ ...shouldInsertNullItem ? [NULL_ITEM] : [],
+ ...items.slice(0, index)
+ ];
+}
+function findFirstEnabledItem(items, excludeId) {
+ return items.find((item) => {
+ if (excludeId) {
+ return !item.disabled && item.id !== excludeId;
+ }
+ return !item.disabled;
+ });
+}
+function getEnabledItem(store, id) {
+ if (!id)
+ return null;
+ return store.item(id) || null;
+}
+function groupItemsByRows(items) {
+ const rows = [];
+ for (const item of items) {
+ const row = rows.find((currentRow) => {
+ var _a;
+ return ((_a = currentRow[0]) == null ? void 0 : _a.rowId) === item.rowId;
+ });
+ if (row) {
+ row.push(item);
+ } else {
+ rows.push([item]);
+ }
+ }
+ return rows;
+}
+function selectTextField(element, collapseToEnd = false) {
+ if (isTextField(element)) {
+ element.setSelectionRange(
+ collapseToEnd ? element.value.length : 0,
+ element.value.length
+ );
+ } else if (element.isContentEditable) {
+ const selection = getDocument(element).getSelection();
+ selection == null ? void 0 : selection.selectAllChildren(element);
+ if (collapseToEnd) {
+ selection == null ? void 0 : selection.collapseToEnd();
+ }
+ }
+}
+var FOCUS_SILENTLY = Symbol("FOCUS_SILENTLY");
+function focusSilently(element) {
+ element[FOCUS_SILENTLY] = true;
+ element.focus({ preventScroll: true });
+}
+function silentlyFocused(element) {
+ const isSilentlyFocused = element[FOCUS_SILENTLY];
+ delete element[FOCUS_SILENTLY];
+ return isSilentlyFocused;
+}
+function isItem(store, element, exclude) {
+ if (!element)
+ return false;
+ if (element === exclude)
+ return false;
+ const item = store.item(element.id);
+ if (!item)
+ return false;
+ if (exclude && item.element === exclude)
+ return false;
+ return true;
+}
+
+
+
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/4R3V3JGP.js
"use client";
var __defProp = Object.defineProperty;
@@ -37005,6 +26537,9 @@ var __objRest = (source, exclude) => {
+// EXTERNAL MODULE: external "React"
+var external_React_ = __webpack_require__(1609);
+var external_React_namespaceObject = /*#__PURE__*/__webpack_require__.t(external_React_, 2);
;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/4R3V3JGP.js
"use client";
var _4R3V3JGP_defProp = Object.defineProperty;
@@ -37084,13 +26619,13 @@ function isUpdater(argument) {
function isLazyValue(value) {
return typeof value === "function";
}
-function Y3OOHFCN_isObject(arg) {
+function isObject(arg) {
return typeof arg === "object" && arg != null;
}
function isEmpty(arg) {
if (Array.isArray(arg))
return !arg.length;
- if (Y3OOHFCN_isObject(arg))
+ if (isObject(arg))
return !Object.keys(arg).length;
if (arg == null)
return true;
@@ -37819,6 +27354,623 @@ function resetMouseMoving() {
+;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/3ORBWXWF.js
+"use client";
+
+
+
+
+// src/utils/system.tsx
+
+
+
+function isRenderProp(children) {
+ return typeof children === "function";
+}
+function forwardRef2(render) {
+ const Role = React.forwardRef((props, ref) => render(__spreadProps(__spreadValues({}, props), { ref })));
+ Role.displayName = render.displayName || render.name;
+ return Role;
+}
+function memo2(Component, propsAreEqual) {
+ const Role = React.memo(Component, propsAreEqual);
+ Role.displayName = Component.displayName || Component.name;
+ return Role;
+}
+function createComponent(render) {
+ const Role = (props, ref) => render(_4R3V3JGP_spreadValues({ ref }, props));
+ return external_React_.forwardRef(Role);
+}
+function createMemoComponent(render) {
+ const Role = createComponent(render);
+ return external_React_.memo(Role);
+}
+function createElement(Type, props) {
+ const _a = props, { as: As, wrapElement, render } = _a, rest = __objRest(_a, ["as", "wrapElement", "render"]);
+ let element;
+ const mergedRef = useMergeRefs(props.ref, getRefProperty(render));
+ if (false) {}
+ if (As && typeof As !== "string") {
+ element = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(As, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, rest), { render }));
+ } else if (external_React_.isValidElement(render)) {
+ const renderProps = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, render.props), { ref: mergedRef });
+ element = external_React_.cloneElement(render, mergeProps(rest, renderProps));
+ } else if (render) {
+ element = render(rest);
+ } else if (isRenderProp(props.children)) {
+ if (false) {}
+ const _b = rest, { children } = _b, otherProps = __objRest(_b, ["children"]);
+ element = props.children(otherProps);
+ } else if (As) {
+ element = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(As, _4R3V3JGP_spreadValues({}, rest));
+ } else {
+ element = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Type, _4R3V3JGP_spreadValues({}, rest));
+ }
+ if (wrapElement) {
+ return wrapElement(element);
+ }
+ return element;
+}
+function createHook(useProps) {
+ const useRole = (props = {}) => {
+ const htmlProps = useProps(props);
+ const copy = {};
+ for (const prop in htmlProps) {
+ if (Y3OOHFCN_hasOwnProperty(htmlProps, prop) && htmlProps[prop] !== void 0) {
+ copy[prop] = htmlProps[prop];
+ }
+ }
+ return copy;
+ };
+ return useRole;
+}
+function createStoreContext(providers = [], scopedProviders = []) {
+ const context = external_React_.createContext(void 0);
+ const scopedContext = external_React_.createContext(void 0);
+ const useContext2 = () => external_React_.useContext(context);
+ const useScopedContext = (onlyScoped = false) => {
+ const scoped = external_React_.useContext(scopedContext);
+ const store = useContext2();
+ if (onlyScoped)
+ return scoped;
+ return scoped || store;
+ };
+ const useProviderContext = () => {
+ const scoped = external_React_.useContext(scopedContext);
+ const store = useContext2();
+ if (scoped && scoped === store)
+ return;
+ return store;
+ };
+ const ContextProvider = (props) => {
+ return providers.reduceRight(
+ (children, Provider) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Provider, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { children })),
+ /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(context.Provider, _4R3V3JGP_spreadValues({}, props))
+ );
+ };
+ const ScopedContextProvider = (props) => {
+ return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(ContextProvider, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { children: scopedProviders.reduceRight(
+ (children, Provider) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Provider, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { children })),
+ /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(scopedContext.Provider, _4R3V3JGP_spreadValues({}, props))
+ ) }));
+ };
+ return {
+ context,
+ scopedContext,
+ useContext: useContext2,
+ useScopedContext,
+ useProviderContext,
+ ContextProvider,
+ ScopedContextProvider
+ };
+}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/4UUKJZ4V.js
+"use client";
+
+
+// src/collection/collection-context.tsx
+var ctx = createStoreContext();
+var useCollectionContext = ctx.useContext;
+var useCollectionScopedContext = ctx.useScopedContext;
+var useCollectionProviderContext = ctx.useProviderContext;
+var CollectionContextProvider = ctx.ContextProvider;
+var CollectionScopedContextProvider = ctx.ScopedContextProvider;
+
+
+
+;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/IB7YUKH5.js
+"use client";
+
+
+
+// src/composite/composite-context.tsx
+
+var IB7YUKH5_ctx = createStoreContext(
+ [CollectionContextProvider],
+ [CollectionScopedContextProvider]
+);
+var useCompositeContext = IB7YUKH5_ctx.useContext;
+var useCompositeScopedContext = IB7YUKH5_ctx.useScopedContext;
+var useCompositeProviderContext = IB7YUKH5_ctx.useProviderContext;
+var CompositeContextProvider = IB7YUKH5_ctx.ContextProvider;
+var CompositeScopedContextProvider = IB7YUKH5_ctx.ScopedContextProvider;
+var CompositeItemContext = (0,external_React_.createContext)(
+ void 0
+);
+var CompositeRowContext = (0,external_React_.createContext)(
+ void 0
+);
+
+
+
+;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/346FK57L.js
+"use client";
+
+
+
+
+
+
+// src/composite/composite-typeahead.ts
+
+
+
+
+var chars = "";
+function clearChars() {
+ chars = "";
+}
+function isValidTypeaheadEvent(event) {
+ const target = event.target;
+ if (target && DLOEKDPY_isTextField(target))
+ return false;
+ if (event.key === " " && chars.length)
+ return true;
+ return event.key.length === 1 && !event.ctrlKey && !event.altKey && !event.metaKey && /^[\p{Letter}\p{Number}]$/u.test(event.key);
+}
+function isSelfTargetOrItem(event, items) {
+ if (isSelfTarget(event))
+ return true;
+ const target = event.target;
+ if (!target)
+ return false;
+ const isItem = items.some((item) => item.element === target);
+ return isItem;
+}
+function getEnabledItems(items) {
+ return items.filter((item) => !item.disabled);
+}
+function itemTextStartsWith(item, text) {
+ var _a;
+ const itemText = ((_a = item.element) == null ? void 0 : _a.textContent) || item.children;
+ if (!itemText)
+ return false;
+ return normalizeString(itemText).trim().toLowerCase().startsWith(text.toLowerCase());
+}
+function getSameInitialItems(items, char, activeId) {
+ if (!activeId)
+ return items;
+ const activeItem = items.find((item) => item.id === activeId);
+ if (!activeItem)
+ return items;
+ if (!itemTextStartsWith(activeItem, char))
+ return items;
+ if (chars !== char && itemTextStartsWith(activeItem, chars))
+ return items;
+ chars = char;
+ return flipItems(
+ items.filter((item) => itemTextStartsWith(item, chars)),
+ activeId
+ ).filter((item) => item.id !== activeId);
+}
+var useCompositeTypeahead = createHook(
+ (_a) => {
+ var _b = _a, { store, typeahead = true } = _b, props = __objRest(_b, ["store", "typeahead"]);
+ const context = useCompositeContext();
+ store = store || context;
+ invariant(
+ store,
+ false && 0
+ );
+ const onKeyDownCaptureProp = props.onKeyDownCapture;
+ const cleanupTimeoutRef = (0,external_React_.useRef)(0);
+ const onKeyDownCapture = useEvent(
+ (event) => {
+ onKeyDownCaptureProp == null ? void 0 : onKeyDownCaptureProp(event);
+ if (event.defaultPrevented)
+ return;
+ if (!typeahead)
+ return;
+ if (!store)
+ return;
+ const { items, activeId } = store.getState();
+ if (!isValidTypeaheadEvent(event))
+ return clearChars();
+ let enabledItems = getEnabledItems(items);
+ if (!isSelfTargetOrItem(event, enabledItems))
+ return clearChars();
+ event.preventDefault();
+ window.clearTimeout(cleanupTimeoutRef.current);
+ cleanupTimeoutRef.current = window.setTimeout(() => {
+ chars = "";
+ }, 500);
+ const char = event.key.toLowerCase();
+ chars += char;
+ enabledItems = getSameInitialItems(enabledItems, char, activeId);
+ const item = enabledItems.find(
+ (item2) => itemTextStartsWith(item2, chars)
+ );
+ if (item) {
+ store.move(item.id);
+ } else {
+ clearChars();
+ }
+ }
+ );
+ props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
+ onKeyDownCapture
+ });
+ return props;
+ }
+);
+var CompositeTypeahead = createComponent(
+ (props) => {
+ const htmlProps = useCompositeTypeahead(props);
+ return createElement("div", htmlProps);
+ }
+);
+if (false) {}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/utils/focus.js
+"use client";
+
+
+
+// src/utils/focus.ts
+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 hasNegativeTabIndex(element) {
+ const tabIndex = parseInt(element.getAttribute("tabindex") || "0", 10);
+ return tabIndex < 0;
+}
+function isFocusable(element) {
+ if (!matches(element, selector))
+ return false;
+ if (!isVisible(element))
+ return false;
+ if (DLOEKDPY_closest(element, "[inert]"))
+ return false;
+ return true;
+}
+function isTabbable(element) {
+ if (!isFocusable(element))
+ return false;
+ if (hasNegativeTabIndex(element))
+ return false;
+ if (!("form" in element))
+ return true;
+ if (!element.form)
+ return true;
+ if (element.checked)
+ return true;
+ if (element.type !== "radio")
+ return true;
+ const radioGroup = element.form.elements.namedItem(element.name);
+ if (!radioGroup)
+ return true;
+ if (!("length" in radioGroup))
+ return true;
+ const activeElement = getActiveElement(element);
+ if (!activeElement)
+ return true;
+ if (activeElement === element)
+ return true;
+ if (!("form" in activeElement))
+ return true;
+ if (activeElement.form !== element.form)
+ return true;
+ if (activeElement.name !== element.name)
+ return true;
+ return false;
+}
+function getAllFocusableIn(container, includeContainer) {
+ const elements = Array.from(
+ container.querySelectorAll(selector)
+ );
+ if (includeContainer) {
+ elements.unshift(container);
+ }
+ const focusableElements = elements.filter(isFocusable);
+ focusableElements.forEach((element, i) => {
+ if (isFrame(element) && element.contentDocument) {
+ const frameBody = element.contentDocument.body;
+ focusableElements.splice(i, 1, ...getAllFocusableIn(frameBody));
+ }
+ });
+ return focusableElements;
+}
+function getAllFocusable(includeBody) {
+ return getAllFocusableIn(document.body, includeBody);
+}
+function getFirstFocusableIn(container, includeContainer) {
+ const [first] = getAllFocusableIn(container, includeContainer);
+ return first || null;
+}
+function getFirstFocusable(includeBody) {
+ return getFirstFocusableIn(document.body, includeBody);
+}
+function getAllTabbableIn(container, includeContainer, fallbackToFocusable) {
+ const elements = Array.from(
+ container.querySelectorAll(selector)
+ );
+ const tabbableElements = elements.filter(isTabbable);
+ if (includeContainer && isTabbable(container)) {
+ tabbableElements.unshift(container);
+ }
+ tabbableElements.forEach((element, i) => {
+ if (isFrame(element) && element.contentDocument) {
+ const frameBody = element.contentDocument.body;
+ const allFrameTabbable = getAllTabbableIn(
+ frameBody,
+ false,
+ fallbackToFocusable
+ );
+ tabbableElements.splice(i, 1, ...allFrameTabbable);
+ }
+ });
+ if (!tabbableElements.length && fallbackToFocusable) {
+ return elements;
+ }
+ return tabbableElements;
+}
+function getAllTabbable(fallbackToFocusable) {
+ return getAllTabbableIn(document.body, false, fallbackToFocusable);
+}
+function getFirstTabbableIn(container, includeContainer, fallbackToFocusable) {
+ const [first] = getAllTabbableIn(
+ container,
+ includeContainer,
+ fallbackToFocusable
+ );
+ return first || null;
+}
+function getFirstTabbable(fallbackToFocusable) {
+ return getFirstTabbableIn(document.body, false, fallbackToFocusable);
+}
+function getLastTabbableIn(container, includeContainer, fallbackToFocusable) {
+ const allTabbable = getAllTabbableIn(
+ container,
+ includeContainer,
+ fallbackToFocusable
+ );
+ return allTabbable[allTabbable.length - 1] || null;
+}
+function getLastTabbable(fallbackToFocusable) {
+ return getLastTabbableIn(document.body, false, fallbackToFocusable);
+}
+function getNextTabbableIn(container, includeContainer, fallbackToFirst, fallbackToFocusable) {
+ const activeElement = getActiveElement(container);
+ const allFocusable = getAllFocusableIn(container, includeContainer);
+ const activeIndex = allFocusable.indexOf(activeElement);
+ const nextFocusableElements = allFocusable.slice(activeIndex + 1);
+ return nextFocusableElements.find(isTabbable) || (fallbackToFirst ? allFocusable.find(isTabbable) : null) || (fallbackToFocusable ? nextFocusableElements[0] : null) || null;
+}
+function getNextTabbable(fallbackToFirst, fallbackToFocusable) {
+ return getNextTabbableIn(
+ document.body,
+ false,
+ fallbackToFirst,
+ fallbackToFocusable
+ );
+}
+function getPreviousTabbableIn(container, includeContainer, fallbackToLast, fallbackToFocusable) {
+ const activeElement = getActiveElement(container);
+ const allFocusable = getAllFocusableIn(container, includeContainer).reverse();
+ const activeIndex = allFocusable.indexOf(activeElement);
+ const previousFocusableElements = allFocusable.slice(activeIndex + 1);
+ return previousFocusableElements.find(isTabbable) || (fallbackToLast ? allFocusable.find(isTabbable) : null) || (fallbackToFocusable ? previousFocusableElements[0] : null) || null;
+}
+function getPreviousTabbable(fallbackToFirst, fallbackToFocusable) {
+ return getPreviousTabbableIn(
+ document.body,
+ false,
+ fallbackToFirst,
+ fallbackToFocusable
+ );
+}
+function getClosestFocusable(element) {
+ while (element && !isFocusable(element)) {
+ element = closest(element, selector);
+ }
+ return element || null;
+}
+function hasFocus(element) {
+ const activeElement = DLOEKDPY_getActiveElement(element);
+ if (!activeElement)
+ return false;
+ if (activeElement === element)
+ return true;
+ const activeDescendant = activeElement.getAttribute("aria-activedescendant");
+ if (!activeDescendant)
+ return false;
+ return activeDescendant === element.id;
+}
+function hasFocusWithin(element) {
+ const activeElement = DLOEKDPY_getActiveElement(element);
+ if (!activeElement)
+ return false;
+ if (contains(element, activeElement))
+ return true;
+ const activeDescendant = activeElement.getAttribute("aria-activedescendant");
+ if (!activeDescendant)
+ return false;
+ if (!("id" in element))
+ return false;
+ if (activeDescendant === element.id)
+ return true;
+ return !!element.querySelector(`#${CSS.escape(activeDescendant)}`);
+}
+function focusIfNeeded(element) {
+ if (!hasFocusWithin(element) && isFocusable(element)) {
+ element.focus();
+ }
+}
+function disableFocus(element) {
+ var _a;
+ const currentTabindex = (_a = element.getAttribute("tabindex")) != null ? _a : "";
+ element.setAttribute("data-tabindex", currentTabindex);
+ element.setAttribute("tabindex", "-1");
+}
+function disableFocusIn(container, includeContainer) {
+ const tabbableElements = getAllTabbableIn(container, includeContainer);
+ tabbableElements.forEach(disableFocus);
+}
+function restoreFocusIn(container) {
+ const elements = container.querySelectorAll("[data-tabindex]");
+ const restoreTabIndex = (element) => {
+ const tabindex = element.getAttribute("data-tabindex");
+ element.removeAttribute("data-tabindex");
+ if (tabindex) {
+ element.setAttribute("tabindex", tabindex);
+ } else {
+ element.removeAttribute("tabindex");
+ }
+ };
+ if (container.hasAttribute("data-tabindex")) {
+ restoreTabIndex(container);
+ }
+ elements.forEach(restoreTabIndex);
+}
+function focusIntoView(element, options) {
+ if (!("scrollIntoView" in element)) {
+ element.focus();
+ } else {
+ element.focus({ preventScroll: true });
+ element.scrollIntoView(_chunks_4R3V3JGP_spreadValues({ block: "nearest", inline: "nearest" }, options));
+ }
+}
+
+
+;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/G6ONQ5EH.js
+"use client";
+
+
+
+
+
+// src/composite/composite-hover.ts
+
+
+
+
+function getMouseDestination(event) {
+ const relatedTarget = event.relatedTarget;
+ if ((relatedTarget == null ? void 0 : relatedTarget.nodeType) === Node.ELEMENT_NODE) {
+ return relatedTarget;
+ }
+ return null;
+}
+function hoveringInside(event) {
+ const nextElement = getMouseDestination(event);
+ if (!nextElement)
+ return false;
+ return contains(event.currentTarget, nextElement);
+}
+var symbol = Symbol("composite-hover");
+function movingToAnotherItem(event) {
+ let dest = getMouseDestination(event);
+ if (!dest)
+ return false;
+ do {
+ if (Y3OOHFCN_hasOwnProperty(dest, symbol) && dest[symbol])
+ return true;
+ dest = dest.parentElement;
+ } while (dest);
+ return false;
+}
+var useCompositeHover = createHook(
+ (_a) => {
+ var _b = _a, {
+ store,
+ focusOnHover = true,
+ blurOnHoverEnd = !!focusOnHover
+ } = _b, props = __objRest(_b, [
+ "store",
+ "focusOnHover",
+ "blurOnHoverEnd"
+ ]);
+ const context = useCompositeContext();
+ store = store || context;
+ invariant(
+ store,
+ false && 0
+ );
+ const isMouseMoving = useIsMouseMoving();
+ const onMouseMoveProp = props.onMouseMove;
+ const focusOnHoverProp = useBooleanEvent(focusOnHover);
+ const onMouseMove = useEvent((event) => {
+ onMouseMoveProp == null ? void 0 : onMouseMoveProp(event);
+ if (event.defaultPrevented)
+ return;
+ if (!isMouseMoving())
+ return;
+ if (!focusOnHoverProp(event))
+ return;
+ if (!hasFocusWithin(event.currentTarget)) {
+ const baseElement = store == null ? void 0 : store.getState().baseElement;
+ if (baseElement && !hasFocus(baseElement)) {
+ baseElement.focus();
+ }
+ }
+ store == null ? void 0 : store.setActiveId(event.currentTarget.id);
+ });
+ const onMouseLeaveProp = props.onMouseLeave;
+ const blurOnHoverEndProp = useBooleanEvent(blurOnHoverEnd);
+ const onMouseLeave = useEvent((event) => {
+ var _a2;
+ onMouseLeaveProp == null ? void 0 : onMouseLeaveProp(event);
+ if (event.defaultPrevented)
+ return;
+ if (!isMouseMoving())
+ return;
+ if (hoveringInside(event))
+ return;
+ if (movingToAnotherItem(event))
+ return;
+ if (!focusOnHoverProp(event))
+ return;
+ if (!blurOnHoverEndProp(event))
+ return;
+ store == null ? void 0 : store.setActiveId(null);
+ (_a2 = store == null ? void 0 : store.getState().baseElement) == null ? void 0 : _a2.focus();
+ });
+ const ref = (0,external_React_.useCallback)((element) => {
+ if (!element)
+ return;
+ element[symbol] = true;
+ }, []);
+ props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
+ ref: useMergeRefs(ref, props.ref),
+ onMouseMove,
+ onMouseLeave
+ });
+ return props;
+ }
+);
+var CompositeHover = createMemoComponent(
+ (props) => {
+ const htmlProps = useCompositeHover(props);
+ return createElement("div", htmlProps);
+ }
+);
+if (false) {}
+
+
+
;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/EAHJFCU4.js
"use client";
@@ -38593,8 +28745,8 @@ function reverseArray(array) {
// src/composite/composite-store.ts
-var NULL_ITEM = { id: null };
-function findFirstEnabledItem(items, excludeId) {
+var IERTEJ3A_NULL_ITEM = { id: null };
+function IERTEJ3A_findFirstEnabledItem(items, excludeId) {
return items.find((item) => {
if (excludeId) {
return !item.disabled && item.id !== excludeId;
@@ -38602,7 +28754,7 @@ function findFirstEnabledItem(items, excludeId) {
return !item.disabled;
});
}
-function getEnabledItems(items, excludeId) {
+function IERTEJ3A_getEnabledItems(items, excludeId) {
return items.filter((item) => {
if (excludeId) {
return !item.disabled && item.id !== excludeId;
@@ -38620,15 +28772,15 @@ function getOppositeOrientation(orientation) {
function getItemsInRow(items, rowId) {
return items.filter((item) => item.rowId === rowId);
}
-function flipItems(items, activeId, shouldInsertNullItem = false) {
+function IERTEJ3A_flipItems(items, activeId, shouldInsertNullItem = false) {
const index = items.findIndex((item) => item.id === activeId);
return [
...items.slice(index + 1),
- ...shouldInsertNullItem ? [NULL_ITEM] : [],
+ ...shouldInsertNullItem ? [IERTEJ3A_NULL_ITEM] : [],
...items.slice(0, index)
];
}
-function groupItemsByRows(items) {
+function IERTEJ3A_groupItemsByRows(items) {
const rows = [];
for (const item of items) {
const row = rows.find((currentRow) => {
@@ -38666,7 +28818,7 @@ function normalizeRows(rows, activeId, focusShift) {
const item = row[i];
if (!item || focusShift && item.disabled) {
const isFirst = i === 0;
- const previousItem = isFirst && focusShift ? findFirstEnabledItem(row) : row[i - 1];
+ const previousItem = isFirst && focusShift ? IERTEJ3A_findFirstEnabledItem(row) : row[i - 1];
row[i] = previousItem && activeId !== previousItem.id && focusShift ? previousItem : createEmptyItem(previousItem == null ? void 0 : previousItem.rowId);
}
}
@@ -38674,7 +28826,7 @@ function normalizeRows(rows, activeId, focusShift) {
return rows;
}
function verticalizeItems(items) {
- const rows = groupItemsByRows(items);
+ const rows = IERTEJ3A_groupItemsByRows(items);
const maxLength = getMaxRowLength(rows);
const verticalized = [];
for (let i = 0; i < maxLength; i += 1) {
@@ -38735,7 +28887,7 @@ function createCompositeStore(props = {}) {
var _a2;
if (activeId2 !== void 0)
return activeId2;
- return (_a2 = findFirstEnabledItem(state.renderedItems)) == null ? void 0 : _a2.id;
+ return (_a2 = IERTEJ3A_findFirstEnabledItem(state.renderedItems)) == null ? void 0 : _a2.id;
});
})
);
@@ -38746,18 +28898,18 @@ function createCompositeStore(props = {}) {
const isRTL = rtl && isHorizontal;
const allItems = isRTL ? reverseArray(items) : items;
if (activeId2 == null) {
- return (_a2 = findFirstEnabledItem(allItems)) == null ? void 0 : _a2.id;
+ return (_a2 = IERTEJ3A_findFirstEnabledItem(allItems)) == null ? void 0 : _a2.id;
}
const activeItem = allItems.find((item) => item.id === activeId2);
if (!activeItem) {
- return (_b = findFirstEnabledItem(allItems)) == null ? void 0 : _b.id;
+ return (_b = IERTEJ3A_findFirstEnabledItem(allItems)) == null ? void 0 : _b.id;
}
const isGrid = !!activeItem.rowId;
const activeIndex = allItems.indexOf(activeItem);
const nextItems = allItems.slice(activeIndex + 1);
const nextItemsInRow = getItemsInRow(nextItems, activeItem.rowId);
if (skip !== void 0) {
- const nextEnabledItemsInRow = getEnabledItems(nextItemsInRow, activeId2);
+ const nextEnabledItemsInRow = IERTEJ3A_getEnabledItems(nextItemsInRow, activeId2);
const nextItem2 = nextEnabledItemsInRow.slice(skip)[0] || // If we can't find an item, just return the last one.
nextEnabledItemsInRow[nextEnabledItemsInRow.length - 1];
return nextItem2 == null ? void 0 : nextItem2.id;
@@ -38773,12 +28925,12 @@ function createCompositeStore(props = {}) {
hasNullItem = hasNullItem || !isGrid && canLoop && includesBaseElement;
if (canLoop) {
const loopItems = canWrap && !hasNullItem ? allItems : getItemsInRow(allItems, activeItem.rowId);
- const sortedItems = flipItems(loopItems, activeId2, hasNullItem);
- const nextItem2 = findFirstEnabledItem(sortedItems, activeId2);
+ const sortedItems = IERTEJ3A_flipItems(loopItems, activeId2, hasNullItem);
+ const nextItem2 = IERTEJ3A_findFirstEnabledItem(sortedItems, activeId2);
return nextItem2 == null ? void 0 : nextItem2.id;
}
if (canWrap) {
- const nextItem2 = findFirstEnabledItem(
+ const nextItem2 = IERTEJ3A_findFirstEnabledItem(
// We can use nextItems, which contains all the next items, including
// items from other rows, to wrap between rows. However, if there is a
// null item (the composite container), we'll only use the next items in
@@ -38791,7 +28943,7 @@ function createCompositeStore(props = {}) {
const nextId = hasNullItem ? (nextItem2 == null ? void 0 : nextItem2.id) || null : nextItem2 == null ? void 0 : nextItem2.id;
return nextId;
}
- const nextItem = findFirstEnabledItem(nextItemsInRow, activeId2);
+ const nextItem = IERTEJ3A_findFirstEnabledItem(nextItemsInRow, activeId2);
if (!nextItem && hasNullItem) {
return null;
}
@@ -38808,11 +28960,11 @@ function createCompositeStore(props = {}) {
},
first: () => {
var _a2;
- return (_a2 = findFirstEnabledItem(composite.getState().renderedItems)) == null ? void 0 : _a2.id;
+ return (_a2 = IERTEJ3A_findFirstEnabledItem(composite.getState().renderedItems)) == null ? void 0 : _a2.id;
},
last: () => {
var _a2;
- return (_a2 = findFirstEnabledItem(reverseArray(composite.getState().renderedItems))) == null ? void 0 : _a2.id;
+ return (_a2 = IERTEJ3A_findFirstEnabledItem(reverseArray(composite.getState().renderedItems))) == null ? void 0 : _a2.id;
},
next: (skip) => {
const { renderedItems, orientation } = composite.getState();
@@ -38821,7 +28973,7 @@ function createCompositeStore(props = {}) {
previous: (skip) => {
var _a2;
const { renderedItems, orientation, includesBaseElement } = composite.getState();
- const isGrid = !!((_a2 = findFirstEnabledItem(renderedItems)) == null ? void 0 : _a2.rowId);
+ const isGrid = !!((_a2 = IERTEJ3A_findFirstEnabledItem(renderedItems)) == null ? void 0 : _a2.rowId);
const hasNullItem = !isGrid && includesBaseElement;
return getNextId(
reverseArray(renderedItems),
@@ -38841,7 +28993,7 @@ function createCompositeStore(props = {}) {
const shouldShift = focusShift && !skip;
const verticalItems = verticalizeItems(
flatten2DArray(
- normalizeRows(groupItemsByRows(renderedItems), activeId2, shouldShift)
+ normalizeRows(IERTEJ3A_groupItemsByRows(renderedItems), activeId2, shouldShift)
)
);
const canLoop = focusLoop && focusLoop !== "horizontal";
@@ -38855,7 +29007,7 @@ function createCompositeStore(props = {}) {
reverseArray(
flatten2DArray(
normalizeRows(
- groupItemsByRows(renderedItems),
+ IERTEJ3A_groupItemsByRows(renderedItems),
activeId2,
shouldShift
)
@@ -39028,160 +29180,6 @@ function useComboboxStore(props = {}) {
-// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
-var jsx_runtime = __webpack_require__(4922);
-;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/3ORBWXWF.js
-"use client";
-
-
-
-
-// src/utils/system.tsx
-
-
-
-function isRenderProp(children) {
- return typeof children === "function";
-}
-function forwardRef2(render) {
- const Role = React.forwardRef((props, ref) => render(__spreadProps(__spreadValues({}, props), { ref })));
- Role.displayName = render.displayName || render.name;
- return Role;
-}
-function memo2(Component, propsAreEqual) {
- const Role = React.memo(Component, propsAreEqual);
- Role.displayName = Component.displayName || Component.name;
- return Role;
-}
-function createComponent(render) {
- const Role = (props, ref) => render(_4R3V3JGP_spreadValues({ ref }, props));
- return external_React_.forwardRef(Role);
-}
-function createMemoComponent(render) {
- const Role = createComponent(render);
- return external_React_.memo(Role);
-}
-function _3ORBWXWF_createElement(Type, props) {
- const _a = props, { as: As, wrapElement, render } = _a, rest = __objRest(_a, ["as", "wrapElement", "render"]);
- let element;
- const mergedRef = useMergeRefs(props.ref, getRefProperty(render));
- if (false) {}
- if (As && typeof As !== "string") {
- element = /* @__PURE__ */ (0,jsx_runtime.jsx)(As, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, rest), { render }));
- } else if (external_React_.isValidElement(render)) {
- const renderProps = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, render.props), { ref: mergedRef });
- element = external_React_.cloneElement(render, mergeProps(rest, renderProps));
- } else if (render) {
- element = render(rest);
- } else if (isRenderProp(props.children)) {
- if (false) {}
- const _b = rest, { children } = _b, otherProps = __objRest(_b, ["children"]);
- element = props.children(otherProps);
- } else if (As) {
- element = /* @__PURE__ */ (0,jsx_runtime.jsx)(As, _4R3V3JGP_spreadValues({}, rest));
- } else {
- element = /* @__PURE__ */ (0,jsx_runtime.jsx)(Type, _4R3V3JGP_spreadValues({}, rest));
- }
- if (wrapElement) {
- return wrapElement(element);
- }
- return element;
-}
-function createHook(useProps) {
- const useRole = (props = {}) => {
- const htmlProps = useProps(props);
- const copy = {};
- for (const prop in htmlProps) {
- if (Y3OOHFCN_hasOwnProperty(htmlProps, prop) && htmlProps[prop] !== void 0) {
- copy[prop] = htmlProps[prop];
- }
- }
- return copy;
- };
- return useRole;
-}
-function createStoreContext(providers = [], scopedProviders = []) {
- const context = external_React_.createContext(void 0);
- const scopedContext = external_React_.createContext(void 0);
- const useContext2 = () => external_React_.useContext(context);
- const useScopedContext = (onlyScoped = false) => {
- const scoped = external_React_.useContext(scopedContext);
- const store = useContext2();
- if (onlyScoped)
- return scoped;
- return scoped || store;
- };
- const useProviderContext = () => {
- const scoped = external_React_.useContext(scopedContext);
- const store = useContext2();
- if (scoped && scoped === store)
- return;
- return store;
- };
- const ContextProvider = (props) => {
- return providers.reduceRight(
- (children, Provider) => /* @__PURE__ */ (0,jsx_runtime.jsx)(Provider, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { children })),
- /* @__PURE__ */ (0,jsx_runtime.jsx)(context.Provider, _4R3V3JGP_spreadValues({}, props))
- );
- };
- const ScopedContextProvider = (props) => {
- return /* @__PURE__ */ (0,jsx_runtime.jsx)(ContextProvider, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { children: scopedProviders.reduceRight(
- (children, Provider) => /* @__PURE__ */ (0,jsx_runtime.jsx)(Provider, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { children })),
- /* @__PURE__ */ (0,jsx_runtime.jsx)(scopedContext.Provider, _4R3V3JGP_spreadValues({}, props))
- ) }));
- };
- return {
- context,
- scopedContext,
- useContext: useContext2,
- useScopedContext,
- useProviderContext,
- ContextProvider,
- ScopedContextProvider
- };
-}
-
-
-
-;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/4UUKJZ4V.js
-"use client";
-
-
-// src/collection/collection-context.tsx
-var ctx = createStoreContext();
-var useCollectionContext = ctx.useContext;
-var useCollectionScopedContext = ctx.useScopedContext;
-var useCollectionProviderContext = ctx.useProviderContext;
-var CollectionContextProvider = ctx.ContextProvider;
-var CollectionScopedContextProvider = ctx.ScopedContextProvider;
-
-
-
-;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/IB7YUKH5.js
-"use client";
-
-
-
-// src/composite/composite-context.tsx
-
-var IB7YUKH5_ctx = createStoreContext(
- [CollectionContextProvider],
- [CollectionScopedContextProvider]
-);
-var useCompositeContext = IB7YUKH5_ctx.useContext;
-var useCompositeScopedContext = IB7YUKH5_ctx.useScopedContext;
-var useCompositeProviderContext = IB7YUKH5_ctx.useProviderContext;
-var CompositeContextProvider = IB7YUKH5_ctx.ContextProvider;
-var CompositeScopedContextProvider = IB7YUKH5_ctx.ScopedContextProvider;
-var CompositeItemContext = (0,external_React_.createContext)(
- void 0
-);
-var CompositeRowContext = (0,external_React_.createContext)(
- void 0
-);
-
-
-
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/OAYFXAQ2.js
"use client";
@@ -39283,7 +29281,7 @@ var ComboboxItemCheckedContext = (0,external_React_.createContext)(false);
function ComboboxProvider(props = {}) {
const store = useComboboxStore(props);
- return /* @__PURE__ */ (0,jsx_runtime.jsx)(ComboboxContextProvider, { value: store, children: props.children });
+ return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(ComboboxContextProvider, { value: store, children: props.children });
}
@@ -39324,7 +29322,7 @@ var useComboboxLabel = createHook(
var ComboboxLabel = createMemoComponent(
(props) => {
const htmlProps = useComboboxLabel(props);
- return _3ORBWXWF_createElement("label", htmlProps);
+ return createElement("label", htmlProps);
}
);
if (false) {}
@@ -39351,93 +29349,12 @@ var usePopoverAnchor = createHook(
);
var PopoverAnchor = createComponent((props) => {
const htmlProps = usePopoverAnchor(props);
- return _3ORBWXWF_createElement("div", htmlProps);
+ return createElement("div", htmlProps);
});
if (false) {}
-;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/3IEDWLST.js
-"use client";
-
-// src/composite/utils.ts
-
-var _3IEDWLST_NULL_ITEM = { id: null };
-function _3IEDWLST_flipItems(items, activeId, shouldInsertNullItem = false) {
- const index = items.findIndex((item) => item.id === activeId);
- return [
- ...items.slice(index + 1),
- ...shouldInsertNullItem ? [_3IEDWLST_NULL_ITEM] : [],
- ...items.slice(0, index)
- ];
-}
-function _3IEDWLST_findFirstEnabledItem(items, excludeId) {
- return items.find((item) => {
- if (excludeId) {
- return !item.disabled && item.id !== excludeId;
- }
- return !item.disabled;
- });
-}
-function getEnabledItem(store, id) {
- if (!id)
- return null;
- return store.item(id) || null;
-}
-function _3IEDWLST_groupItemsByRows(items) {
- const rows = [];
- for (const item of items) {
- const row = rows.find((currentRow) => {
- var _a;
- return ((_a = currentRow[0]) == null ? void 0 : _a.rowId) === item.rowId;
- });
- if (row) {
- row.push(item);
- } else {
- rows.push([item]);
- }
- }
- return rows;
-}
-function selectTextField(element, collapseToEnd = false) {
- if (isTextField(element)) {
- element.setSelectionRange(
- collapseToEnd ? element.value.length : 0,
- element.value.length
- );
- } else if (element.isContentEditable) {
- const selection = getDocument(element).getSelection();
- selection == null ? void 0 : selection.selectAllChildren(element);
- if (collapseToEnd) {
- selection == null ? void 0 : selection.collapseToEnd();
- }
- }
-}
-var FOCUS_SILENTLY = Symbol("FOCUS_SILENTLY");
-function focusSilently(element) {
- element[FOCUS_SILENTLY] = true;
- element.focus({ preventScroll: true });
-}
-function silentlyFocused(element) {
- const isSilentlyFocused = element[FOCUS_SILENTLY];
- delete element[FOCUS_SILENTLY];
- return isSilentlyFocused;
-}
-function isItem(store, element, exclude) {
- if (!element)
- return false;
- if (element === exclude)
- return false;
- const item = store.item(element.id);
- if (!item)
- return false;
- if (exclude && item.element === exclude)
- return false;
- return true;
-}
-
-
-
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/SHA3WOPI.js
"use client";
@@ -39447,235 +29364,6 @@ var FocusableContext = (0,external_React_.createContext)(true);
-;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/utils/focus.js
-"use client";
-
-
-
-// src/utils/focus.ts
-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 hasNegativeTabIndex(element) {
- const tabIndex = parseInt(element.getAttribute("tabindex") || "0", 10);
- return tabIndex < 0;
-}
-function isFocusable(element) {
- if (!matches(element, selector))
- return false;
- if (!isVisible(element))
- return false;
- if (DLOEKDPY_closest(element, "[inert]"))
- return false;
- return true;
-}
-function isTabbable(element) {
- if (!isFocusable(element))
- return false;
- if (hasNegativeTabIndex(element))
- return false;
- if (!("form" in element))
- return true;
- if (!element.form)
- return true;
- if (element.checked)
- return true;
- if (element.type !== "radio")
- return true;
- const radioGroup = element.form.elements.namedItem(element.name);
- if (!radioGroup)
- return true;
- if (!("length" in radioGroup))
- return true;
- const activeElement = getActiveElement(element);
- if (!activeElement)
- return true;
- if (activeElement === element)
- return true;
- if (!("form" in activeElement))
- return true;
- if (activeElement.form !== element.form)
- return true;
- if (activeElement.name !== element.name)
- return true;
- return false;
-}
-function getAllFocusableIn(container, includeContainer) {
- const elements = Array.from(
- container.querySelectorAll(selector)
- );
- if (includeContainer) {
- elements.unshift(container);
- }
- const focusableElements = elements.filter(isFocusable);
- focusableElements.forEach((element, i) => {
- if (isFrame(element) && element.contentDocument) {
- const frameBody = element.contentDocument.body;
- focusableElements.splice(i, 1, ...getAllFocusableIn(frameBody));
- }
- });
- return focusableElements;
-}
-function getAllFocusable(includeBody) {
- return getAllFocusableIn(document.body, includeBody);
-}
-function getFirstFocusableIn(container, includeContainer) {
- const [first] = getAllFocusableIn(container, includeContainer);
- return first || null;
-}
-function getFirstFocusable(includeBody) {
- return getFirstFocusableIn(document.body, includeBody);
-}
-function getAllTabbableIn(container, includeContainer, fallbackToFocusable) {
- const elements = Array.from(
- container.querySelectorAll(selector)
- );
- const tabbableElements = elements.filter(isTabbable);
- if (includeContainer && isTabbable(container)) {
- tabbableElements.unshift(container);
- }
- tabbableElements.forEach((element, i) => {
- if (isFrame(element) && element.contentDocument) {
- const frameBody = element.contentDocument.body;
- const allFrameTabbable = getAllTabbableIn(
- frameBody,
- false,
- fallbackToFocusable
- );
- tabbableElements.splice(i, 1, ...allFrameTabbable);
- }
- });
- if (!tabbableElements.length && fallbackToFocusable) {
- return elements;
- }
- return tabbableElements;
-}
-function getAllTabbable(fallbackToFocusable) {
- return getAllTabbableIn(document.body, false, fallbackToFocusable);
-}
-function getFirstTabbableIn(container, includeContainer, fallbackToFocusable) {
- const [first] = getAllTabbableIn(
- container,
- includeContainer,
- fallbackToFocusable
- );
- return first || null;
-}
-function getFirstTabbable(fallbackToFocusable) {
- return getFirstTabbableIn(document.body, false, fallbackToFocusable);
-}
-function getLastTabbableIn(container, includeContainer, fallbackToFocusable) {
- const allTabbable = getAllTabbableIn(
- container,
- includeContainer,
- fallbackToFocusable
- );
- return allTabbable[allTabbable.length - 1] || null;
-}
-function getLastTabbable(fallbackToFocusable) {
- return getLastTabbableIn(document.body, false, fallbackToFocusable);
-}
-function getNextTabbableIn(container, includeContainer, fallbackToFirst, fallbackToFocusable) {
- const activeElement = getActiveElement(container);
- const allFocusable = getAllFocusableIn(container, includeContainer);
- const activeIndex = allFocusable.indexOf(activeElement);
- const nextFocusableElements = allFocusable.slice(activeIndex + 1);
- return nextFocusableElements.find(isTabbable) || (fallbackToFirst ? allFocusable.find(isTabbable) : null) || (fallbackToFocusable ? nextFocusableElements[0] : null) || null;
-}
-function getNextTabbable(fallbackToFirst, fallbackToFocusable) {
- return getNextTabbableIn(
- document.body,
- false,
- fallbackToFirst,
- fallbackToFocusable
- );
-}
-function getPreviousTabbableIn(container, includeContainer, fallbackToLast, fallbackToFocusable) {
- const activeElement = getActiveElement(container);
- const allFocusable = getAllFocusableIn(container, includeContainer).reverse();
- const activeIndex = allFocusable.indexOf(activeElement);
- const previousFocusableElements = allFocusable.slice(activeIndex + 1);
- return previousFocusableElements.find(isTabbable) || (fallbackToLast ? allFocusable.find(isTabbable) : null) || (fallbackToFocusable ? previousFocusableElements[0] : null) || null;
-}
-function getPreviousTabbable(fallbackToFirst, fallbackToFocusable) {
- return getPreviousTabbableIn(
- document.body,
- false,
- fallbackToFirst,
- fallbackToFocusable
- );
-}
-function getClosestFocusable(element) {
- while (element && !isFocusable(element)) {
- element = closest(element, selector);
- }
- return element || null;
-}
-function hasFocus(element) {
- const activeElement = DLOEKDPY_getActiveElement(element);
- if (!activeElement)
- return false;
- if (activeElement === element)
- return true;
- const activeDescendant = activeElement.getAttribute("aria-activedescendant");
- if (!activeDescendant)
- return false;
- return activeDescendant === element.id;
-}
-function hasFocusWithin(element) {
- const activeElement = DLOEKDPY_getActiveElement(element);
- if (!activeElement)
- return false;
- if (contains(element, activeElement))
- return true;
- const activeDescendant = activeElement.getAttribute("aria-activedescendant");
- if (!activeDescendant)
- return false;
- if (!("id" in element))
- return false;
- if (activeDescendant === element.id)
- return true;
- return !!element.querySelector(`#${CSS.escape(activeDescendant)}`);
-}
-function focusIfNeeded(element) {
- if (!hasFocusWithin(element) && isFocusable(element)) {
- element.focus();
- }
-}
-function disableFocus(element) {
- var _a;
- const currentTabindex = (_a = element.getAttribute("tabindex")) != null ? _a : "";
- element.setAttribute("data-tabindex", currentTabindex);
- element.setAttribute("tabindex", "-1");
-}
-function disableFocusIn(container, includeContainer) {
- const tabbableElements = getAllTabbableIn(container, includeContainer);
- tabbableElements.forEach(disableFocus);
-}
-function restoreFocusIn(container) {
- const elements = container.querySelectorAll("[data-tabindex]");
- const restoreTabIndex = (element) => {
- const tabindex = element.getAttribute("data-tabindex");
- element.removeAttribute("data-tabindex");
- if (tabindex) {
- element.setAttribute("tabindex", tabindex);
- } else {
- element.removeAttribute("tabindex");
- }
- };
- if (container.hasAttribute("data-tabindex")) {
- restoreTabIndex(container);
- }
- elements.forEach(restoreTabIndex);
-}
-function focusIntoView(element, options) {
- if (!("scrollIntoView" in element)) {
- element.focus();
- } else {
- element.focus({ preventScroll: true });
- element.scrollIntoView(_chunks_4R3V3JGP_spreadValues({ block: "nearest", inline: "nearest" }, options));
- }
-}
-
-
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/KK7H3W2B.js
"use client";
@@ -40017,7 +29705,7 @@ var useFocusable = createHook(
);
var Focusable = createComponent((props) => {
props = useFocusable(props);
- return _3ORBWXWF_createElement("div", props);
+ return createElement("div", props);
});
if (false) {}
@@ -40084,8 +29772,8 @@ function useKeyboardEventProxy(store, onKeyboardEvent, previousElementRef) {
});
}
function findFirstEnabledItemInTheLastRow(items) {
- return _3IEDWLST_findFirstEnabledItem(
- flatten2DArray(reverseArray(_3IEDWLST_groupItemsByRows(items)))
+ return findFirstEnabledItem(
+ flatten2DArray(reverseArray(groupItemsByRows(items)))
);
}
function useScheduleFocus(store) {
@@ -40316,7 +30004,7 @@ var useComposite = createHook(
});
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(CompositeContextProvider, { value: store, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeContextProvider, { value: store, children: element }),
[store]
);
const activeDescendant = store.useState((state) => {
@@ -40349,7 +30037,7 @@ var useComposite = createHook(
);
var _7QTPYGNZ_Composite = createComponent((props) => {
const htmlProps = useComposite(props);
- return _3ORBWXWF_createElement("div", htmlProps);
+ return createElement("div", htmlProps);
});
if (false) {}
@@ -40771,7 +30459,7 @@ var useCombobox = createHook(
);
var Combobox = createComponent((props) => {
const htmlProps = useCombobox(props);
- return _3ORBWXWF_createElement("input", htmlProps);
+ return createElement("input", htmlProps);
});
if (false) {}
@@ -40868,7 +30556,7 @@ var useDisclosureContent = createHook(
}, [store, animated, contentElement, open, transition]);
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(DialogScopedContextProvider, { value: store, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DialogScopedContextProvider, { value: store, children: element }),
[store]
);
const hidden = isHidden(mounted, props.hidden, alwaysVisible);
@@ -40888,7 +30576,7 @@ var useDisclosureContent = createHook(
var DisclosureContentImpl = createComponent(
(props) => {
const htmlProps = useDisclosureContent(props);
- return _3ORBWXWF_createElement("div", htmlProps);
+ return createElement("div", htmlProps);
}
);
var DisclosureContent = createComponent(
@@ -40902,7 +30590,7 @@ var DisclosureContent = createComponent(
);
if (mounted === false)
return null;
- return /* @__PURE__ */ (0,jsx_runtime.jsx)(DisclosureContentImpl, _4R3V3JGP_spreadValues({}, props));
+ return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DisclosureContentImpl, _4R3V3JGP_spreadValues({}, props));
}
);
if (false) {}
@@ -40976,7 +30664,7 @@ var useComboboxList = createHook(
});
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(ComboboxScopedContextProvider, { value: store, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(ComboboxScopedContextProvider, { value: store, children: element }),
[store]
);
const mounted = store.useState("mounted");
@@ -41007,128 +30695,12 @@ var useComboboxList = createHook(
);
var ComboboxList = createComponent((props) => {
const htmlProps = useComboboxList(props);
- return _3ORBWXWF_createElement("div", htmlProps);
+ return createElement("div", htmlProps);
});
if (false) {}
-;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/G6ONQ5EH.js
-"use client";
-
-
-
-
-
-// src/composite/composite-hover.ts
-
-
-
-
-function getMouseDestination(event) {
- const relatedTarget = event.relatedTarget;
- if ((relatedTarget == null ? void 0 : relatedTarget.nodeType) === Node.ELEMENT_NODE) {
- return relatedTarget;
- }
- return null;
-}
-function hoveringInside(event) {
- const nextElement = getMouseDestination(event);
- if (!nextElement)
- return false;
- return contains(event.currentTarget, nextElement);
-}
-var G6ONQ5EH_symbol = Symbol("composite-hover");
-function movingToAnotherItem(event) {
- let dest = getMouseDestination(event);
- if (!dest)
- return false;
- do {
- if (Y3OOHFCN_hasOwnProperty(dest, G6ONQ5EH_symbol) && dest[G6ONQ5EH_symbol])
- return true;
- dest = dest.parentElement;
- } while (dest);
- return false;
-}
-var useCompositeHover = createHook(
- (_a) => {
- var _b = _a, {
- store,
- focusOnHover = true,
- blurOnHoverEnd = !!focusOnHover
- } = _b, props = __objRest(_b, [
- "store",
- "focusOnHover",
- "blurOnHoverEnd"
- ]);
- const context = useCompositeContext();
- store = store || context;
- invariant(
- store,
- false && 0
- );
- const isMouseMoving = useIsMouseMoving();
- const onMouseMoveProp = props.onMouseMove;
- const focusOnHoverProp = useBooleanEvent(focusOnHover);
- const onMouseMove = useEvent((event) => {
- onMouseMoveProp == null ? void 0 : onMouseMoveProp(event);
- if (event.defaultPrevented)
- return;
- if (!isMouseMoving())
- return;
- if (!focusOnHoverProp(event))
- return;
- if (!hasFocusWithin(event.currentTarget)) {
- const baseElement = store == null ? void 0 : store.getState().baseElement;
- if (baseElement && !hasFocus(baseElement)) {
- baseElement.focus();
- }
- }
- store == null ? void 0 : store.setActiveId(event.currentTarget.id);
- });
- const onMouseLeaveProp = props.onMouseLeave;
- const blurOnHoverEndProp = useBooleanEvent(blurOnHoverEnd);
- const onMouseLeave = useEvent((event) => {
- var _a2;
- onMouseLeaveProp == null ? void 0 : onMouseLeaveProp(event);
- if (event.defaultPrevented)
- return;
- if (!isMouseMoving())
- return;
- if (hoveringInside(event))
- return;
- if (movingToAnotherItem(event))
- return;
- if (!focusOnHoverProp(event))
- return;
- if (!blurOnHoverEndProp(event))
- return;
- store == null ? void 0 : store.setActiveId(null);
- (_a2 = store == null ? void 0 : store.getState().baseElement) == null ? void 0 : _a2.focus();
- });
- const ref = (0,external_React_.useCallback)((element) => {
- if (!element)
- return;
- element[G6ONQ5EH_symbol] = true;
- }, []);
- props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
- ref: useMergeRefs(ref, props.ref),
- onMouseMove,
- onMouseLeave
- });
- return props;
- }
-);
-var CompositeHover = createMemoComponent(
- (props) => {
- const htmlProps = useCompositeHover(props);
- return _3ORBWXWF_createElement("div", htmlProps);
- }
-);
-if (false) {}
-
-
-
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/NWCBQ4CV.js
"use client";
@@ -41256,7 +30828,7 @@ var useCommand = createHook(
);
var Command = createComponent((props) => {
props = useCommand(props);
- return _3ORBWXWF_createElement("button", props);
+ return createElement("button", props);
});
if (false) {}
@@ -41310,7 +30882,7 @@ var useCollectionItem = createHook(
var CollectionItem = createComponent(
(props) => {
const htmlProps = useCollectionItem(props);
- return _3ORBWXWF_createElement("div", htmlProps);
+ return createElement("div", htmlProps);
}
);
if (false) {}
@@ -41606,7 +31178,7 @@ var useCompositeItem = createHook(
);
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(CompositeItemContext.Provider, { value: providerValue, children: element }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeItemContext.Provider, { value: providerValue, children: element }),
[providerValue]
);
const isActiveItem = useStoreState(
@@ -41684,7 +31256,7 @@ var useCompositeItem = createHook(
var QZLXIDNP_CompositeItem = createMemoComponent(
(props) => {
const htmlProps = useCompositeItem(props);
- return _3ORBWXWF_createElement("button", htmlProps);
+ return createElement("button", htmlProps);
}
);
if (false) {}
@@ -41831,7 +31403,7 @@ var useComboboxItem = createHook(
}
props = useWrapElement(
props,
- (element) => /* @__PURE__ */ (0,jsx_runtime.jsx)(ComboboxItemValueContext.Provider, { value, children: /* @__PURE__ */ (0,jsx_runtime.jsx)(ComboboxItemCheckedContext.Provider, { value: selected != null ? selected : false, children: element }) }),
+ (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(ComboboxItemValueContext.Provider, { value, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(ComboboxItemCheckedContext.Provider, { value: selected != null ? selected : false, children: element }) }),
[value, selected]
);
const contentElement = store.useState("contentElement");
@@ -41866,7 +31438,7 @@ var useComboboxItem = createHook(
var ComboboxItem = createMemoComponent(
(props) => {
const htmlProps = useComboboxItem(props);
- return _3ORBWXWF_createElement("div", htmlProps);
+ return createElement("div", htmlProps);
}
);
if (false) {}
@@ -41899,18 +31471,18 @@ function splitValue(itemValue, userValue) {
while (index !== -1) {
if (index !== 0) {
parts.push(
- /* @__PURE__ */ (0,jsx_runtime.jsx)("span", { "data-autocomplete-value": "", children: itemValue.substr(0, index) }, parts.length)
+ /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("span", { "data-autocomplete-value": "", children: itemValue.substr(0, index) }, parts.length)
);
}
parts.push(
- /* @__PURE__ */ (0,jsx_runtime.jsx)("span", { "data-user-value": "", children: itemValue.substr(index, userValue.length) }, parts.length)
+ /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("span", { "data-user-value": "", children: itemValue.substr(index, userValue.length) }, parts.length)
);
itemValue = itemValue.substr(index + userValue.length);
index = normalizeValue(itemValue).indexOf(userValue);
}
if (itemValue) {
parts.push(
- /* @__PURE__ */ (0,jsx_runtime.jsx)("span", { "data-autocomplete-value": "", children: itemValue }, parts.length)
+ /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("span", { "data-autocomplete-value": "", children: itemValue }, parts.length)
);
}
return parts;
@@ -41942,14 +31514,31 @@ var useComboboxItemValue = createHook(
var ComboboxItemValue = createComponent(
(props) => {
const htmlProps = useComboboxItemValue(props);
- return _3ORBWXWF_createElement("span", htmlProps);
+ return createElement("span", htmlProps);
}
);
if (false) {}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/search-widget.js
+// EXTERNAL MODULE: ./node_modules/remove-accents/index.js
+var remove_accents = __webpack_require__(9681);
+var remove_accents_default = /*#__PURE__*/__webpack_require__.n(remove_accents);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
+/**
+ * WordPress dependencies
+ */
+
+const check = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
+ })
+});
+/* harmony default export */ const library_check = (check);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/search-widget.js
/**
* External dependencies
*/
@@ -41965,34 +31554,144 @@ if (false) {}
-const radioCheck = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+/**
+ * Internal dependencies
+ */
+
+
+
+const {
+ CompositeV2: search_widget_Composite,
+ CompositeItemV2: search_widget_CompositeItem,
+ useCompositeStoreV2: search_widget_useCompositeStore
+} = build_module_lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
+const radioCheck = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Circle, {
- cx: 12,
- cy: 12,
- r: 3
-}));
-function search_widget_normalizeSearchInput(input = '') {
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Circle, {
+ cx: 12,
+ cy: 12,
+ r: 3
+ })
+});
+function normalizeSearchInput(input = '') {
return remove_accents_default()(input.trim().toLowerCase());
}
-function SearchWidget({
+const search_widget_EMPTY_ARRAY = [];
+const getCurrentValue = (filterDefinition, currentFilter) => {
+ if (filterDefinition.singleSelection) {
+ return currentFilter?.value;
+ }
+ if (Array.isArray(currentFilter?.value)) {
+ return currentFilter.value;
+ }
+ if (!Array.isArray(currentFilter?.value) && !!currentFilter?.value) {
+ return [currentFilter.value];
+ }
+ return search_widget_EMPTY_ARRAY;
+};
+const getNewValue = (filterDefinition, currentFilter, value) => {
+ if (filterDefinition.singleSelection) {
+ return value;
+ }
+ if (Array.isArray(currentFilter?.value)) {
+ return currentFilter.value.includes(value) ? currentFilter.value.filter(v => v !== value) : [...currentFilter.value, value];
+ }
+ return [value];
+};
+function ListBox({
+ view,
filter,
+ onChangeView
+}) {
+ const compositeStore = search_widget_useCompositeStore({
+ virtualFocus: true,
+ focusLoop: true,
+ // When we have no or just one operator, we can set the first item as active.
+ // We do that by passing `undefined` to `defaultActiveId`. Otherwise, we set it to `null`,
+ // so the first item is not selected, since the focus is on the operators control.
+ defaultActiveId: filter.operators?.length === 1 ? undefined : null
+ });
+ const currentFilter = view.filters.find(f => f.field === filter.field);
+ const currentValue = getCurrentValue(filter, currentFilter);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(search_widget_Composite, {
+ store: compositeStore,
+ role: "listbox",
+ className: "dataviews-search-widget-listbox",
+ "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: List of items for a filter. 1: Filter name. e.g.: "List of: Author". */
+ (0,external_wp_i18n_namespaceObject.__)('List of: %1$s'), filter.name),
+ onFocusVisible: () => {
+ if (!compositeStore.getState().activeId) {
+ compositeStore.move(compositeStore.first());
+ }
+ },
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeTypeahead, {
+ store: compositeStore
+ }),
+ children: filter.elements.map(element => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(CompositeHover, {
+ store: compositeStore,
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(search_widget_CompositeItem, {
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ "aria-label": element.label,
+ role: "option",
+ className: "dataviews-search-widget-listitem"
+ }),
+ onClick: () => {
+ const newFilters = currentFilter ? [...view.filters.map(_filter => {
+ if (_filter.field === filter.field) {
+ return {
+ ..._filter,
+ operator: currentFilter.operator || filter.operators[0],
+ value: getNewValue(filter, currentFilter, element.value)
+ };
+ }
+ return _filter;
+ })] : [...view.filters, {
+ field: filter.field,
+ operator: filter.operators[0],
+ value: getNewValue(filter, currentFilter, element.value)
+ }];
+ onChangeView({
+ ...view,
+ page: 1,
+ filters: newFilters
+ });
+ }
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
+ className: "dataviews-search-widget-listitem-check",
+ children: [filter.singleSelection && currentValue === element.value && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ icon: radioCheck
+ }), !filter.singleSelection && currentValue.includes(element.value) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ icon: library_check
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
+ children: [element.label, !!element.description && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "dataviews-search-widget-listitem-description",
+ children: element.description
+ })]
+ })]
+ }, element.value))
+ });
+}
+function search_widget_ComboboxList({
view,
+ filter,
onChangeView
}) {
const [searchValue, setSearchValue] = (0,external_wp_element_namespaceObject.useState)('');
const deferredSearchValue = (0,external_wp_element_namespaceObject.useDeferredValue)(searchValue);
- const selectedFilter = view.filters.find(_filter => _filter.field === filter.field);
- const selectedValues = selectedFilter?.value;
+ const currentFilter = view.filters.find(_filter => _filter.field === filter.field);
+ const currentValue = getCurrentValue(filter, currentFilter);
const matches = (0,external_wp_element_namespaceObject.useMemo)(() => {
- const normalizedSearch = search_widget_normalizeSearchInput(deferredSearchValue);
- return filter.elements.filter(item => search_widget_normalizeSearchInput(item.label).includes(normalizedSearch));
+ const normalizedSearch = normalizeSearchInput(deferredSearchValue);
+ return filter.elements.filter(item => normalizeSearchInput(item.label).includes(normalizedSearch));
}, [filter.elements, deferredSearchValue]);
- return (0,external_React_.createElement)(ComboboxProvider, {
- value: searchValue,
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ComboboxProvider, {
+ resetValueOnSelect: false,
+ selectedValue: currentValue,
setSelectedValue: value => {
- const currentFilter = view.filters.find(_filter => _filter.field === filter.field);
const newFilters = currentFilter ? [...view.filters.map(_filter => {
if (_filter.field === filter.field) {
return {
@@ -42013,50 +31712,69 @@ function SearchWidget({
filters: newFilters
});
},
- setValue: setSearchValue
- }, (0,external_React_.createElement)("div", {
- className: "dataviews-search-widget-filter-combobox__wrapper"
- }, (0,external_React_.createElement)(ComboboxLabel, {
- render: (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, null)
- }, (0,external_wp_i18n_namespaceObject.__)('Search items')), (0,external_React_.createElement)(Combobox, {
- autoSelect: "always",
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Search'),
- className: "dataviews-search-widget-filter-combobox__input"
- }), (0,external_React_.createElement)("div", {
- className: "dataviews-search-widget-filter-combobox__icon"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- icon: library_search
- }))), (0,external_React_.createElement)(ComboboxList, {
- className: "dataviews-search-widget-filter-combobox-list",
- alwaysVisible: true
- }, matches.map(element => {
- return (0,external_React_.createElement)(ComboboxItem, {
- key: element.value,
- value: element.value,
- className: "dataviews-search-widget-filter-combobox-item",
- hideOnClick: false,
- setValueOnClick: false,
- focusOnHover: true
- }, (0,external_React_.createElement)("span", {
- className: "dataviews-search-widget-filter-combobox-item-check"
- }, selectedValues === element.value && (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- icon: radioCheck
- })), (0,external_React_.createElement)("span", null, (0,external_React_.createElement)(ComboboxItemValue, {
- className: "dataviews-search-widget-filter-combobox-item-value",
- value: element.label
- }), !!element.description && (0,external_React_.createElement)("span", {
- className: "dataviews-search-widget-filter-combobox-item-description"
- }, element.description)));
- }), !matches.length && (0,external_React_.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('No results found'))));
+ setValue: setSearchValue,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "dataviews-search-widget-filter-combobox__wrapper",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ComboboxLabel, {
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Search items')
+ }),
+ children: (0,external_wp_i18n_namespaceObject.__)('Search items')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Combobox, {
+ autoSelect: "always",
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Search'),
+ className: "dataviews-search-widget-filter-combobox__input"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "dataviews-search-widget-filter-combobox__icon",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ icon: library_search
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ComboboxList, {
+ className: "dataviews-search-widget-filter-combobox-list",
+ alwaysVisible: true,
+ children: [matches.map(element => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ComboboxItem, {
+ value: element.value,
+ className: "dataviews-search-widget-listitem",
+ hideOnClick: false,
+ setValueOnClick: false,
+ focusOnHover: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
+ className: "dataviews-search-widget-listitem-check",
+ children: [filter.singleSelection && currentValue === element.value && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ icon: radioCheck
+ }), !filter.singleSelection && currentValue.includes(element.value) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ icon: library_check
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ComboboxItemValue, {
+ className: "dataviews-search-widget-filter-combobox-item-value",
+ value: element.label
+ }), !!element.description && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "dataviews-search-widget-listitem-description",
+ children: element.description
+ })]
+ })]
+ }, element.value);
+ }), !matches.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('No results found')
+ })]
+ })]
+ });
+}
+function SearchWidget(props) {
+ const Widget = props.filter.elements.length > 10 ? search_widget_ComboboxList : ListBox;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Widget, {
+ ...props
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/filter-summary.js
-
/**
* External dependencies
*/
-
/**
* WordPress dependencies
*/
@@ -42064,36 +31782,55 @@ function SearchWidget({
-
+const ENTER = 'Enter';
+const SPACE = ' ';
/**
* Internal dependencies
*/
+
+
const FilterText = ({
- activeElement,
+ activeElements,
filterInView,
filter
}) => {
- if (activeElement === undefined) {
+ if (activeElements === undefined || activeElements.length === 0) {
return filter.name;
}
const filterTextWrappers = {
- Span1: (0,external_React_.createElement)("span", {
+ Name: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
className: "dataviews-filter-summary__filter-text-name"
}),
- Span2: (0,external_React_.createElement)("span", {
+ Value: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
className: "dataviews-filter-summary__filter-text-value"
})
};
- if (activeElement !== undefined && filterInView?.operator === constants_OPERATOR_IN) {
- return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Filter name. 2: Filter value. e.g.: "Author is Admin". */
- (0,external_wp_i18n_namespaceObject.__)('<Span1>%1$s </Span1><Span2>is %2$s</Span2>'), filter.name, activeElement.label), filterTextWrappers);
+ if (filterInView?.operator === constants_OPERATOR_IS_ANY) {
+ return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Filter name. 3: Filter value. e.g.: "Author is any: Admin, Editor". */
+ (0,external_wp_i18n_namespaceObject.__)('<Name>%1$s is any: </Name><Value>%2$s</Value>'), filter.name, activeElements.map(element => element.label).join(', ')), filterTextWrappers);
+ }
+ if (filterInView?.operator === constants_OPERATOR_IS_NONE) {
+ return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Filter name. 3: Filter value. e.g.: "Author is none: Admin, Editor". */
+ (0,external_wp_i18n_namespaceObject.__)('<Name>%1$s is none: </Name><Value>%2$s</Value>'), filter.name, activeElements.map(element => element.label).join(', ')), filterTextWrappers);
+ }
+ if (filterInView?.operator === OPERATOR_IS_ALL) {
+ return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Filter name. 3: Filter value. e.g.: "Author is all: Admin, Editor". */
+ (0,external_wp_i18n_namespaceObject.__)('<Name>%1$s is all: </Name><Value>%2$s</Value>'), filter.name, activeElements.map(element => element.label).join(', ')), filterTextWrappers);
}
- if (activeElement !== undefined && filterInView?.operator === constants_OPERATOR_NOT_IN) {
- return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Filter name. 2: Filter value. e.g.: "Author is not Admin". */
- (0,external_wp_i18n_namespaceObject.__)('<Span1>%1$s </Span1><Span2>is not %2$s</Span2>'), filter.name, activeElement.label), filterTextWrappers);
+ if (filterInView?.operator === OPERATOR_IS_NOT_ALL) {
+ return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Filter name. 3: Filter value. e.g.: "Author is not all: Admin, Editor". */
+ (0,external_wp_i18n_namespaceObject.__)('<Name>%1$s is not all: </Name><Value>%2$s</Value>'), filter.name, activeElements.map(element => element.label).join(', ')), filterTextWrappers);
+ }
+ if (filterInView?.operator === constants_OPERATOR_IS) {
+ return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Filter name. 3: Filter value. e.g.: "Author is: Admin". */
+ (0,external_wp_i18n_namespaceObject.__)('<Name>%1$s is: </Name><Value>%2$s</Value>'), filter.name, activeElements[0].label), filterTextWrappers);
+ }
+ if (filterInView?.operator === constants_OPERATOR_IS_NOT) {
+ return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Filter name. 3: Filter value. e.g.: "Author is not: Admin". */
+ (0,external_wp_i18n_namespaceObject.__)('<Name>%1$s is not: </Name><Value>%2$s</Value>'), filter.name, activeElements[0].label), filterTextWrappers);
}
return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Filter name e.g.: "Unknown status for Author". */
(0,external_wp_i18n_namespaceObject.__)('Unknown status for %1$s'), filter.name);
@@ -42109,57 +31846,66 @@ function OperatorSelector({
}));
const currentFilter = view.filters.find(_filter => _filter.field === filter.field);
const value = currentFilter?.operator || filter.operators[0];
- return operatorOptions.length > 1 && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
+ return operatorOptions.length > 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
spacing: 2,
justify: "flex-start",
- className: "dataviews-filter-summary__operators-container"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- className: "dataviews-filter-summary__operators-filter-name"
- }, filter.name), (0,external_React_.createElement)(external_wp_components_namespaceObject.SelectControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Conditions'),
- value: value,
- options: operatorOptions,
- onChange: newValue => {
- const newFilters = currentFilter ? [...view.filters.map(_filter => {
- if (_filter.field === filter.field) {
- return {
- ..._filter,
- operator: newValue
- };
- }
- return _filter;
- })] : [...view.filters, {
- field: filter.field,
- operator: newValue
- }];
- onChangeView({
- ...view,
- page: 1,
- filters: newFilters
- });
- },
- size: "small",
- __nextHasNoMarginBottom: true,
- hideLabelFromVision: true
- }));
+ className: "dataviews-filter-summary__operators-container",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ className: "dataviews-filter-summary__operators-filter-name",
+ children: filter.name
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Conditions'),
+ value: value,
+ options: operatorOptions,
+ onChange: newValue => {
+ const operator = newValue;
+ const newFilters = currentFilter ? [...view.filters.map(_filter => {
+ if (_filter.field === filter.field) {
+ return {
+ ..._filter,
+ operator
+ };
+ }
+ return _filter;
+ })] : [...view.filters, {
+ field: filter.field,
+ operator,
+ value: undefined
+ }];
+ onChangeView({
+ ...view,
+ page: 1,
+ filters: newFilters
+ });
+ },
+ size: "small",
+ __nextHasNoMarginBottom: true,
+ hideLabelFromVision: true
+ })]
+ });
}
function FilterSummary({
addFilterRef,
openedFilter,
...commonProps
}) {
- const toggleRef = (0,external_wp_element_namespaceObject.useRef)();
+ const toggleRef = (0,external_wp_element_namespaceObject.useRef)(null);
const {
filter,
view,
onChangeView
} = commonProps;
const filterInView = view.filters.find(f => f.field === filter.field);
- const activeElement = filter.elements.find(element => element.value === filterInView?.value);
+ const activeElements = filter.elements.filter(element => {
+ if (filter.singleSelection) {
+ return element.value === filterInView?.value;
+ }
+ return filterInView?.value?.includes(element.value);
+ });
const isPrimary = filter.isPrimary;
const hasValues = filterInView?.value !== undefined;
const canResetOrRemove = !isPrimary || hasValues;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Dropdown, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
defaultOpen: openedFilter === filter.field,
contentClassName: "dataviews-filter-summary__popover",
popoverProps: {
@@ -42172,72 +31918,81 @@ function FilterSummary({
renderToggle: ({
isOpen,
onToggle
- }) => (0,external_React_.createElement)("div", {
- className: "dataviews-filter-summary__chip-container"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Tooltip, {
- text: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Filter name. */
- (0,external_wp_i18n_namespaceObject.__)('Filter by: %1$s'), filter.name.toLowerCase()),
- placement: "top"
- }, (0,external_React_.createElement)("div", {
- className: classnames_default()('dataviews-filter-summary__chip', {
- 'has-reset': canResetOrRemove,
- 'has-values': hasValues
- }),
- role: "button",
- tabIndex: 0,
- onClick: onToggle,
- onKeyDown: event => {
- if ([external_wp_keycodes_namespaceObject.ENTER, external_wp_keycodes_namespaceObject.SPACE].includes(event.keyCode)) {
- onToggle();
- event.preventDefault();
- }
- },
- "aria-pressed": isOpen,
- "aria-expanded": isOpen,
- ref: toggleRef
- }, (0,external_React_.createElement)(FilterText, {
- activeElement: activeElement,
- filterInView: filterInView,
- filter: filter
- }))), canResetOrRemove && (0,external_React_.createElement)(external_wp_components_namespaceObject.Tooltip, {
- text: isPrimary ? (0,external_wp_i18n_namespaceObject.__)('Reset') : (0,external_wp_i18n_namespaceObject.__)('Remove'),
- placement: "top"
- }, (0,external_React_.createElement)("button", {
- className: classnames_default()('dataviews-filter-summary__chip-remove', {
- 'has-values': hasValues
- }),
- onClick: () => {
- onChangeView({
- ...view,
- page: 1,
- filters: view.filters.filter(_filter => _filter.field !== filter.field)
- });
- // If the filter is not primary and can be removed, it will be added
- // back to the available filters from `Add filter` component.
- if (!isPrimary) {
- addFilterRef.current?.focus();
- } else {
- // If is primary, focus the toggle button.
- toggleRef.current?.focus();
- }
- }
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- icon: close_small
- })))),
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "dataviews-filter-summary__chip-container",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Tooltip, {
+ text: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Filter name. */
+ (0,external_wp_i18n_namespaceObject.__)('Filter by: %1$s'), filter.name.toLowerCase()),
+ placement: "top",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('dataviews-filter-summary__chip', {
+ 'has-reset': canResetOrRemove,
+ 'has-values': hasValues
+ }),
+ role: "button",
+ tabIndex: 0,
+ onClick: onToggle,
+ onKeyDown: event => {
+ if ([ENTER, SPACE].includes(event.key)) {
+ onToggle();
+ event.preventDefault();
+ }
+ },
+ "aria-pressed": isOpen,
+ "aria-expanded": isOpen,
+ ref: toggleRef,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FilterText, {
+ activeElements: activeElements,
+ filterInView: filterInView,
+ filter: filter
+ })
+ })
+ }), canResetOrRemove && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Tooltip, {
+ text: isPrimary ? (0,external_wp_i18n_namespaceObject.__)('Reset') : (0,external_wp_i18n_namespaceObject.__)('Remove'),
+ placement: "top",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("button", {
+ className: dist_clsx('dataviews-filter-summary__chip-remove', {
+ 'has-values': hasValues
+ }),
+ onClick: () => {
+ onChangeView({
+ ...view,
+ page: 1,
+ filters: view.filters.filter(_filter => _filter.field !== filter.field)
+ });
+ // If the filter is not primary and can be removed, it will be added
+ // back to the available filters from `Add filter` component.
+ if (!isPrimary) {
+ addFilterRef.current?.focus();
+ } else {
+ // If is primary, focus the toggle button.
+ toggleRef.current?.focus();
+ }
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ icon: close_small
+ })
+ })
+ })]
+ }),
renderContent: () => {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
spacing: 0,
- justify: "flex-start"
- }, (0,external_React_.createElement)(OperatorSelector, {
- ...commonProps
- }), (0,external_React_.createElement)(SearchWidget, {
- ...commonProps
- }));
+ justify: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OperatorSelector, {
+ ...commonProps
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SearchWidget, {
+ ...commonProps
+ })]
+ });
}
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/add-filter.js
+/**
+ * External dependencies
+ */
/**
* WordPress dependencies
@@ -42246,16 +32001,16 @@ function FilterSummary({
-
/**
* Internal dependencies
*/
+
const {
DropdownMenuV2: add_filter_DropdownMenu,
DropdownMenuItemV2: add_filter_DropdownMenuItem,
DropdownMenuItemLabelV2: add_filter_DropdownMenuItemLabel
-} = lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
+} = build_module_lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
function AddFilter({
filters,
view,
@@ -42268,43 +32023,50 @@ function AddFilter({
return null;
}
const inactiveFilters = filters.filter(filter => !filter.isVisible);
- return (0,external_React_.createElement)(add_filter_DropdownMenu, {
- trigger: (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(add_filter_DropdownMenu, {
+ trigger: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
__experimentalIsFocusable: true,
size: "compact",
- icon: library_plus,
className: "dataviews-filters-button",
variant: "tertiary",
disabled: !inactiveFilters.length,
- ref: ref
- }, (0,external_wp_i18n_namespaceObject.__)('Add filter'))
- }, inactiveFilters.map(filter => {
- return (0,external_React_.createElement)(add_filter_DropdownMenuItem, {
- key: filter.field,
- onClick: () => {
- setOpenedFilter(filter.field);
- onChangeView({
- ...view,
- page: 1,
- filters: [...(view.filters || []), {
- field: filter.field,
- value: undefined,
- operator: filter.operators[0]
- }]
- });
- }
- }, (0,external_React_.createElement)(add_filter_DropdownMenuItemLabel, null, filter.name));
- }));
+ ref: ref,
+ children: (0,external_wp_i18n_namespaceObject.__)('Add filter')
+ }),
+ children: inactiveFilters.map(filter => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(add_filter_DropdownMenuItem, {
+ onClick: () => {
+ setOpenedFilter(filter.field);
+ onChangeView({
+ ...view,
+ page: 1,
+ filters: [...(view.filters || []), {
+ field: filter.field,
+ value: undefined,
+ operator: filter.operators[0]
+ }]
+ });
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(add_filter_DropdownMenuItemLabel, {
+ children: filter.name
+ })
+ }, filter.field);
+ })
+ });
}
/* harmony default export */ const add_filter = ((0,external_wp_element_namespaceObject.forwardRef)(AddFilter));
;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/reset-filters.js
-
/**
* WordPress dependencies
*/
+
+/**
+ * Internal dependencies
+ */
+
function ResetFilter({
filters,
view,
@@ -42312,11 +32074,12 @@ function ResetFilter({
}) {
const isPrimary = field => filters.some(_filter => _filter.field === field && _filter.isPrimary);
const isDisabled = !view.search && !view.filters?.some(_filter => _filter.value !== undefined || !isPrimary(_filter.field));
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
disabled: isDisabled,
__experimentalIsFocusable: true,
size: "compact",
variant: "tertiary",
+ className: "dataviews-filters__reset-button",
onClick: () => {
onChangeView({
...view,
@@ -42324,17 +32087,18 @@ function ResetFilter({
search: '',
filters: []
});
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Reset filters'));
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Reset')
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/filters.js
-
/**
* WordPress dependencies
*/
+
/**
* Internal dependencies
*/
@@ -42344,38 +32108,33 @@ function ResetFilter({
-const Filters = (0,external_wp_element_namespaceObject.memo)(function Filters({
+function _Filters({
fields,
view,
onChangeView,
openedFilter,
setOpenedFilter
}) {
- const addFilterRef = (0,external_wp_element_namespaceObject.useRef)();
+ const addFilterRef = (0,external_wp_element_namespaceObject.useRef)(null);
const filters = [];
fields.forEach(field => {
- if (!field.type) {
+ if (!field.elements?.length) {
return;
}
const operators = sanitizeOperators(field);
if (operators.length === 0) {
return;
}
- switch (field.type) {
- case constants_ENUMERATION_TYPE:
- if (!field.elements?.length) {
- return;
- }
- const isPrimary = !!field.filterBy?.isPrimary;
- filters.push({
- field: field.id,
- name: field.header,
- elements: field.elements,
- operators,
- isVisible: isPrimary || view.filters.some(f => f.field === field.id && [constants_OPERATOR_IN, constants_OPERATOR_NOT_IN].includes(f.operator)),
- isPrimary
- });
- }
+ const isPrimary = !!field.filterBy?.isPrimary;
+ filters.push({
+ field: field.id,
+ name: field.header,
+ elements: field.elements,
+ singleSelection: operators.some(op => [constants_OPERATOR_IS, constants_OPERATOR_IS_NOT].includes(op)),
+ operators,
+ isVisible: isPrimary || view.filters.some(f => f.field === field.id && ALL_OPERATORS.includes(f.operator)),
+ isPrimary
+ });
});
// Sort filters by primary property. We need the primary filters to be first.
// Then we sort by name.
@@ -42388,47 +32147,47 @@ const Filters = (0,external_wp_element_namespaceObject.memo)(function Filters({
}
return a.name.localeCompare(b.name);
});
- const addFilter = (0,external_React_.createElement)(add_filter, {
- key: "add-filter",
+ const addFilter = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(add_filter, {
filters: filters,
view: view,
onChangeView: onChangeView,
ref: addFilterRef,
setOpenedFilter: setOpenedFilter
- });
+ }, "add-filter");
const filterComponents = [...filters.map(filter => {
if (!filter.isVisible) {
return null;
}
- return (0,external_React_.createElement)(FilterSummary, {
- key: filter.field,
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FilterSummary, {
filter: filter,
view: view,
onChangeView: onChangeView,
addFilterRef: addFilterRef,
openedFilter: openedFilter
- });
+ }, filter.field);
}), addFilter];
if (filterComponents.length > 1) {
- filterComponents.push((0,external_React_.createElement)(ResetFilter, {
- key: "reset-filters",
+ filterComponents.push( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResetFilter, {
filters: filters,
view: view,
onChangeView: onChangeView
- }));
+ }, "reset-filters"));
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
justify: "flex-start",
style: {
width: 'fit-content'
},
- wrap: true
- }, filterComponents);
-});
+ wrap: true,
+ children: filterComponents
+ });
+}
+
+// A type assertion is used here to keep the type argument.
+const Filters = (0,external_wp_element_namespaceObject.memo)(_Filters);
/* harmony default export */ const filters = (Filters);
;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/search.js
-
/**
* WordPress dependencies
*/
@@ -42436,6 +32195,11 @@ const Filters = (0,external_wp_element_namespaceObject.memo)(function Filters({
+
+/**
+ * Internal dependencies
+ */
+
const Search = (0,external_wp_element_namespaceObject.memo)(function Search({
label,
view,
@@ -42443,21 +32207,24 @@ const Search = (0,external_wp_element_namespaceObject.memo)(function Search({
}) {
const [search, setSearch, debouncedSearch] = (0,external_wp_compose_namespaceObject.useDebouncedInput)(view.search);
(0,external_wp_element_namespaceObject.useEffect)(() => {
- setSearch(view.search);
- }, [view]);
+ var _view$search;
+ setSearch((_view$search = view.search) !== null && _view$search !== void 0 ? _view$search : '');
+ }, [view.search, setSearch]);
const onChangeViewRef = (0,external_wp_element_namespaceObject.useRef)(onChangeView);
+ const viewRef = (0,external_wp_element_namespaceObject.useRef)(view);
(0,external_wp_element_namespaceObject.useEffect)(() => {
onChangeViewRef.current = onChangeView;
- }, [onChangeView]);
+ viewRef.current = view;
+ }, [onChangeView, view]);
(0,external_wp_element_namespaceObject.useEffect)(() => {
onChangeViewRef.current({
- ...view,
+ ...viewRef.current,
page: 1,
search: debouncedSearch
});
}, [debouncedSearch]);
const searchLabel = label || (0,external_wp_i18n_namespaceObject.__)('Search');
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.SearchControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SearchControl, {
__nextHasNoMarginBottom: true,
onChange: setSearch,
value: search,
@@ -42468,7 +32235,218 @@ const Search = (0,external_wp_element_namespaceObject.memo)(function Search({
});
/* harmony default export */ const build_module_search = (Search);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/normalize-fields.js
+/**
+ * Internal dependencies
+ */
+
+/**
+ * Apply default values and normalize the fields config.
+ *
+ * @param fields Fields config.
+ * @return Normalized fields config.
+ */
+function normalizeFields(fields) {
+ return fields.map(field => {
+ const getValue = field.getValue || (({
+ item
+ }) => item[field.id]);
+ return {
+ ...field,
+ header: field.header || field.id,
+ getValue,
+ render: field.render || getValue
+ };
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/bulk-actions-toolbar.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+const SNACKBAR_VARIANTS = {
+ init: {
+ bottom: -48
+ },
+ open: {
+ bottom: 24,
+ transition: {
+ bottom: {
+ type: 'tween',
+ duration: 0.2,
+ ease: [0, 0, 0.2, 1]
+ }
+ }
+ },
+ exit: {
+ opacity: 0,
+ bottom: 24,
+ transition: {
+ opacity: {
+ type: 'tween',
+ duration: 0.2,
+ ease: [0, 0, 0.2, 1]
+ }
+ }
+ }
+};
+function ActionTrigger({
+ action,
+ onClick,
+ isBusy,
+ items
+}) {
+ const label = typeof action.label === 'string' ? action.label : action.label(items);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ disabled: isBusy,
+ label: label,
+ icon: action.icon,
+ isDestructive: action.isDestructive,
+ size: "compact",
+ onClick: onClick,
+ isBusy: isBusy,
+ __experimentalIsFocusable: true,
+ tooltipPosition: "top"
+ });
+}
+const bulk_actions_toolbar_EMPTY_ARRAY = [];
+function ActionButton({
+ action,
+ selectedItems,
+ actionInProgress,
+ setActionInProgress
+}) {
+ const selectedEligibleItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return selectedItems.filter(item => {
+ return !action.isEligible || action.isEligible(item);
+ });
+ }, [action, selectedItems]);
+ if ('RenderModal' in action) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionWithModal, {
+ action: action,
+ items: selectedEligibleItems,
+ ActionTrigger: ActionTrigger
+ }, action.id);
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionTrigger, {
+ action: action,
+ onClick: () => {
+ setActionInProgress(action.id);
+ action.callback(selectedItems);
+ },
+ items: selectedEligibleItems,
+ isBusy: actionInProgress === action.id
+ }, action.id);
+}
+function renderToolbarContent(selection, actionsToShow, selectedItems, actionInProgress, setActionInProgress, onSelectionChange) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "dataviews-bulk-actions__selection-count",
+ children: selection.length === 1 ? (0,external_wp_i18n_namespaceObject.__)('1 item selected') : (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Total number of selected items.
+ (0,external_wp_i18n_namespaceObject._n)('%s item selected', '%s items selected', selection.length), selection.length)
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: actionsToShow.map(action => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionButton, {
+ action: action,
+ selectedItems: selectedItems,
+ actionInProgress: actionInProgress,
+ setActionInProgress: setActionInProgress
+ }, action.id);
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ icon: close_small,
+ showTooltip: true,
+ tooltipPosition: "top",
+ label: (0,external_wp_i18n_namespaceObject.__)('Cancel'),
+ disabled: !!actionInProgress,
+ onClick: () => {
+ onSelectionChange(bulk_actions_toolbar_EMPTY_ARRAY);
+ }
+ })
+ })]
+ });
+}
+function ToolbarContent({
+ selection,
+ actionsToShow,
+ selectedItems,
+ onSelectionChange
+}) {
+ const [actionInProgress, setActionInProgress] = (0,external_wp_element_namespaceObject.useState)(null);
+ const buttons = (0,external_wp_element_namespaceObject.useRef)(null);
+ if (!actionInProgress) {
+ if (buttons.current) {
+ buttons.current = null;
+ }
+ return renderToolbarContent(selection, actionsToShow, selectedItems, actionInProgress, setActionInProgress, onSelectionChange);
+ } else if (!buttons.current) {
+ buttons.current = renderToolbarContent(selection, actionsToShow, selectedItems, actionInProgress, setActionInProgress, onSelectionChange);
+ }
+ return buttons.current;
+}
+function BulkActionsToolbar({
+ data,
+ selection,
+ actions = bulk_actions_toolbar_EMPTY_ARRAY,
+ onSelectionChange,
+ getItemId
+}) {
+ const isReducedMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
+ const selectedItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return data.filter(item => selection.includes(getItemId(item)));
+ }, [selection, data, getItemId]);
+ const actionsToShow = (0,external_wp_element_namespaceObject.useMemo)(() => actions.filter(action => {
+ return action.supportsBulk && action.icon && selectedItems.some(item => !action.isEligible || action.isEligible(item));
+ }), [actions, selectedItems]);
+ if (selection && selection.length === 0 || actionsToShow.length === 0) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableAnimatePresence, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ layout: !isReducedMotion // See https://www.framer.com/docs/animation/#layout-animations
+ ,
+ initial: "init",
+ animate: "open",
+ exit: "exit",
+ variants: isReducedMotion ? undefined : SNACKBAR_VARIANTS,
+ className: "dataviews-bulk-actions",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Toolbar, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Bulk actions'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "dataviews-bulk-actions-toolbar-wrapper",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ToolbarContent, {
+ selection: selection,
+ actionsToShow: actionsToShow,
+ selectedItems: selectedItems,
+ onSelectionChange: onSelectionChange
+ })
+ })
+ })
+ })
+ });
+}
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/dataviews.js
+/**
+ * External dependencies
+ */
/**
* WordPress dependencies
@@ -42485,13 +32463,18 @@ const Search = (0,external_wp_element_namespaceObject.memo)(function Search({
+
+
+
+
+
const defaultGetItemId = item => item.id;
const defaultOnSelectionChange = () => {};
function dataviews_useSomeItemHasAPossibleBulkAction(actions, data) {
return (0,external_wp_element_namespaceObject.useMemo)(() => {
return data.some(item => {
return actions.some(action => {
- return action.supportsBulk && action.isEligible(item);
+ return action.supportsBulk && (!action.isEligible || action.isEligible(item));
});
});
}, [actions, data]);
@@ -42502,90 +32485,95 @@ function DataViews({
fields,
search = true,
searchLabel = undefined,
- actions,
+ actions = [],
data,
getItemId = defaultGetItemId,
isLoading = false,
paginationInfo,
supportedLayouts,
- onSelectionChange = defaultOnSelectionChange,
- onDetailsChange = null,
- deferredRendering = false
+ selection: selectionProperty,
+ setSelection: setSelectionProperty,
+ onSelectionChange = defaultOnSelectionChange
}) {
- const [selection, setSelection] = (0,external_wp_element_namespaceObject.useState)([]);
+ const [selectionState, setSelectionState] = (0,external_wp_element_namespaceObject.useState)([]);
+ let selection, setSelection;
+ if (selectionProperty !== undefined && setSelectionProperty !== undefined) {
+ selection = selectionProperty;
+ setSelection = setSelectionProperty;
+ } else {
+ selection = selectionState;
+ setSelection = setSelectionState;
+ }
const [openedFilter, setOpenedFilter] = (0,external_wp_element_namespaceObject.useState)(null);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (selection.length > 0 && selection.some(id => !data.some(item => getItemId(item) === id))) {
- const newSelection = selection.filter(id => data.some(item => getItemId(item) === id));
- setSelection(newSelection);
- onSelectionChange(data.filter(item => newSelection.includes(getItemId(item))));
- }
- }, [selection, data, getItemId, onSelectionChange]);
const onSetSelection = (0,external_wp_element_namespaceObject.useCallback)(items => {
setSelection(items.map(item => getItemId(item)));
onSelectionChange(items);
}, [setSelection, getItemId, onSelectionChange]);
- const ViewComponent = VIEW_LAYOUTS.find(v => v.type === view.type).component;
- const _fields = (0,external_wp_element_namespaceObject.useMemo)(() => {
- return fields.map(field => ({
- ...field,
- render: field.render || field.getValue
- }));
- }, [fields]);
+ const ViewComponent = VIEW_LAYOUTS.find(v => v.type === view.type)?.component;
+ const _fields = (0,external_wp_element_namespaceObject.useMemo)(() => normalizeFields(fields), [fields]);
const hasPossibleBulkAction = dataviews_useSomeItemHasAPossibleBulkAction(actions, data);
- return (0,external_React_.createElement)("div", {
- className: "dataviews-wrapper"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- alignment: "top",
- justify: "start",
- className: "dataviews-filters__view-actions"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "start",
- className: "dataviews-filters__container",
- wrap: true
- }, search && (0,external_React_.createElement)(build_module_search, {
- label: searchLabel,
- view: view,
- onChangeView: onChangeView
- }), (0,external_React_.createElement)(filters, {
- fields: _fields,
- view: view,
- onChangeView: onChangeView,
- openedFilter: openedFilter,
- setOpenedFilter: setOpenedFilter
- })), [constants_LAYOUT_TABLE, constants_LAYOUT_GRID].includes(view.type) && hasPossibleBulkAction && (0,external_React_.createElement)(BulkActions, {
- actions: actions,
- data: data,
- onSelectionChange: onSetSelection,
- selection: selection,
- getItemId: getItemId
- }), (0,external_React_.createElement)(view_actions, {
- fields: _fields,
- view: view,
- onChangeView: onChangeView,
- supportedLayouts: supportedLayouts
- })), (0,external_React_.createElement)(ViewComponent, {
- fields: _fields,
- view: view,
- onChangeView: onChangeView,
- actions: actions,
- data: data,
- getItemId: getItemId,
- isLoading: isLoading,
- onSelectionChange: onSetSelection,
- onDetailsChange: onDetailsChange,
- selection: selection,
- deferredRendering: deferredRendering,
- setOpenedFilter: setOpenedFilter
- }), (0,external_React_.createElement)(pagination, {
- view: view,
- onChangeView: onChangeView,
- paginationInfo: paginationInfo
- }));
+ const _selection = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return selection.filter(id => data.some(item => getItemId(item) === id));
+ }, [selection, data, getItemId]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "dataviews-wrapper",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ alignment: "top",
+ justify: "start",
+ className: "dataviews-filters__view-actions",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "start",
+ className: "dataviews-filters__container",
+ wrap: true,
+ children: [search && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_search, {
+ label: searchLabel,
+ view: view,
+ onChangeView: onChangeView
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(filters, {
+ fields: _fields,
+ view: view,
+ onChangeView: onChangeView,
+ openedFilter: openedFilter,
+ setOpenedFilter: setOpenedFilter
+ })]
+ }), [constants_LAYOUT_TABLE, constants_LAYOUT_GRID].includes(view.type) && hasPossibleBulkAction && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BulkActions, {
+ actions: actions,
+ data: data,
+ onSelectionChange: onSetSelection,
+ selection: _selection,
+ getItemId: getItemId
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions, {
+ fields: _fields,
+ view: view,
+ onChangeView: onChangeView,
+ supportedLayouts: supportedLayouts
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ViewComponent, {
+ actions: actions,
+ data: data,
+ fields: _fields,
+ getItemId: getItemId,
+ isLoading: isLoading,
+ onChangeView: onChangeView,
+ onSelectionChange: onSetSelection,
+ selection: _selection,
+ setOpenedFilter: setOpenedFilter,
+ view: view
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(pagination, {
+ view: view,
+ onChangeView: onChangeView,
+ paginationInfo: paginationInfo
+ }), [constants_LAYOUT_TABLE, constants_LAYOUT_GRID].includes(view.type) && hasPossibleBulkAction && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BulkActionsToolbar, {
+ data: data,
+ actions: actions,
+ selection: _selection,
+ onSelectionChange: onSetSelection,
+ getItemId: getItemId
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page/header.js
-
/**
* WordPress dependencies
*/
@@ -42595,32 +32583,38 @@ function DataViews({
* Internal dependencies
*/
+
function Header({
title,
subTitle,
actions
}) {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ className: "edit-site-page-header",
as: "header",
- alignment: "left",
- className: "edit-site-page-header"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexBlock, {
- className: "edit-site-page-header__page-title"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
- as: "h2",
- level: 3,
- weight: 500,
- className: "edit-site-page-header__title"
- }, title), subTitle && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- as: "p",
- className: "edit-site-page-header__sub-title"
- }, subTitle)), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- className: "edit-site-page-header__actions"
- }, actions));
+ spacing: 0,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ className: "edit-site-page-header__page-title",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
+ as: "h2",
+ level: 3,
+ weight: 500,
+ className: "edit-site-page-header__title",
+ children: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ className: "edit-site-page-header__actions",
+ children: actions
+ })]
+ }), subTitle && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ as: "p",
+ className: "edit-site-page-header__sub-title",
+ children: subTitle
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page/index.js
-
/**
* External dependencies
*/
@@ -42631,11 +32625,16 @@ function Header({
*/
-
/**
* Internal dependencies
*/
+
+
+
+const {
+ NavigableRegion: page_NavigableRegion
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
function Page({
title,
subTitle,
@@ -42644,32 +32643,130 @@ function Page({
className,
hideTitleFromUI = false
}) {
- const classes = classnames_default()('edit-site-page', className);
- return (0,external_React_.createElement)(NavigableRegion, {
+ const classes = dist_clsx('edit-site-page', className);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(page_NavigableRegion, {
className: classes,
- ariaLabel: title
- }, (0,external_React_.createElement)("div", {
- className: "edit-site-page-content"
- }, !hideTitleFromUI && title && (0,external_React_.createElement)(Header, {
- title: title,
- subTitle: subTitle,
- actions: actions
- }), children), (0,external_React_.createElement)(external_wp_editor_namespaceObject.EditorSnackbars, null));
+ ariaLabel: title,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "edit-site-page-content",
+ children: [!hideTitleFromUI && title && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Header, {
+ title: title,
+ subTitle: subTitle,
+ actions: actions
+ }), children]
+ })
+ });
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/actions/index.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pages.js
+/**
+ * WordPress dependencies
+ */
+
+
+const pages = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"
+ })]
+});
+/* harmony default export */ const library_pages = (pages);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/published.js
/**
* WordPress dependencies
*/
+const published = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"
+ })
+});
+/* harmony default export */ const library_published = (published);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/scheduled.js
+/**
+ * WordPress dependencies
+ */
+const scheduled = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm9 1V8h-1.5v3.5h-2V13H13Z"
+ })
+});
+/* harmony default export */ const library_scheduled = (scheduled);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/drafts.js
+/**
+ * WordPress dependencies
+ */
+const drafts = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 0 4-4H8a4 4 0 0 0 4 4Z"
+ })
+});
+/* harmony default export */ const library_drafts = (drafts);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pending.js
+/**
+ * WordPress dependencies
+ */
+
+
+const pending = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 1-4-4h4V8a4 4 0 0 1 0 8Z"
+ })
+});
+/* harmony default export */ const library_pending = (pending);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/not-allowed.js
+/**
+ * WordPress dependencies
+ */
+
+
+const notAllowed = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M12 18.5A6.5 6.5 0 0 1 6.93 7.931l9.139 9.138A6.473 6.473 0 0 1 12 18.5Zm5.123-2.498a6.5 6.5 0 0 0-9.124-9.124l9.124 9.124ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"
+ })
+});
+/* harmony default export */ const not_allowed = (notAllowed);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-dataviews/default-views.js
+/**
+ * WordPress dependencies
+ */
@@ -42677,303 +32774,219 @@ function Page({
* Internal dependencies
*/
-const {
- useHistory: actions_useHistory
-} = unlock(external_wp_router_namespaceObject.privateApis);
-const trashPostAction = {
- id: 'move-to-trash',
- label: (0,external_wp_i18n_namespaceObject.__)('Move to Trash'),
- isPrimary: true,
- icon: library_trash,
- isEligible({
- status
- }) {
- return status !== 'trash';
+const DEFAULT_CONFIG_PER_VIEW_TYPE = {
+ [LAYOUT_TABLE]: {
+ primaryField: 'title'
},
- supportsBulk: true,
- hideModalHeader: true,
- RenderModal: ({
- items: posts,
- closeModal,
- onPerform
- }) => {
- const {
- createSuccessNotice,
- createErrorNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- const {
- deleteEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "5"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, null, posts.length === 1 ? (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: The page's title.
- (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to delete "%s"?'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(posts[0].title.rendered)) : (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %d: The number of pages (2 or more).
- (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to delete %d pages?'), posts.length)), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: closeModal
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: async () => {
- const promiseResult = await Promise.allSettled(posts.map(post => {
- return deleteEntityRecord('postType', post.type, post.id, {}, {
- throwOnError: true
- });
- }));
- // If all the promises were fulfilled with success.
- if (promiseResult.every(({
- status
- }) => status === 'fulfilled')) {
- let successMessage;
- if (promiseResult.length === 1) {
- successMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The posts's title. */
- (0,external_wp_i18n_namespaceObject.__)('"%s" moved to the Trash.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(posts[0].title.rendered));
- } else {
- successMessage = (0,external_wp_i18n_namespaceObject.__)('Pages moved to the Trash.');
- }
- createSuccessNotice(successMessage, {
- type: 'snackbar',
- id: 'edit-site-page-trashed'
- });
- } else {
- // If there was at lease one failure.
- let errorMessage;
- // If we were trying to move a single post to the trash.
- if (promiseResult.length === 1) {
- if (promiseResult[0].reason?.message) {
- errorMessage = promiseResult[0].reason.message;
- } else {
- errorMessage = (0,external_wp_i18n_namespaceObject.__)('An error occurred while moving the post to the trash.');
- }
- // If we were trying to move multiple posts to the trash
- } else {
- const errorMessages = new Set();
- const failedPromises = promiseResult.filter(({
- status
- }) => status === 'rejected');
- for (const failedPromise of failedPromises) {
- if (failedPromise.reason?.message) {
- errorMessages.add(failedPromise.reason.message);
- }
- }
- if (errorMessages.size === 0) {
- errorMessage = (0,external_wp_i18n_namespaceObject.__)('An error occurred while moving the posts to the trash.');
- } else if (errorMessages.size === 1) {
- errorMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: an error message */
- (0,external_wp_i18n_namespaceObject.__)('An error occurred while moving the posts to the trash: %s'), [...errorMessages][0]);
- } else {
- errorMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: a list of comma separated error messages */
- (0,external_wp_i18n_namespaceObject.__)('Some errors occurred while moving the pages to the trash: %s'), [...errorMessages].join(','));
- }
- createErrorNotice(errorMessage, {
- type: 'snackbar'
- });
- }
- }
- if (onPerform) {
- onPerform();
- }
- closeModal();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Delete'))));
+ [LAYOUT_GRID]: {
+ mediaField: 'featured-image',
+ primaryField: 'title'
+ },
+ [LAYOUT_LIST]: {
+ primaryField: 'title',
+ mediaField: 'featured-image'
}
};
-function usePermanentlyDeletePostAction() {
- const {
- createSuccessNotice,
- createErrorNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- const {
- deleteEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- return (0,external_wp_element_namespaceObject.useMemo)(() => ({
- id: 'permanently-delete',
- label: (0,external_wp_i18n_namespaceObject.__)('Permanently delete'),
- isPrimary: true,
+const DEFAULT_PAGE_BASE = {
+ type: LAYOUT_LIST,
+ search: '',
+ filters: [],
+ page: 1,
+ perPage: 20,
+ sort: {
+ field: 'date',
+ direction: 'desc'
+ },
+ // All fields are visible by default, so it's
+ // better to keep track of the hidden ones.
+ hiddenFields: ['date', 'featured-image'],
+ layout: {
+ ...DEFAULT_CONFIG_PER_VIEW_TYPE[LAYOUT_LIST]
+ }
+};
+const DEFAULT_VIEWS = {
+ page: [{
+ title: (0,external_wp_i18n_namespaceObject.__)('All pages'),
+ slug: 'all',
+ icon: library_pages,
+ view: DEFAULT_PAGE_BASE
+ }, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Published'),
+ slug: 'published',
+ icon: library_published,
+ view: {
+ ...DEFAULT_PAGE_BASE,
+ filters: [{
+ field: 'status',
+ operator: OPERATOR_IS_ANY,
+ value: 'publish'
+ }]
+ }
+ }, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Scheduled'),
+ slug: 'future',
+ icon: library_scheduled,
+ view: {
+ ...DEFAULT_PAGE_BASE,
+ filters: [{
+ field: 'status',
+ operator: OPERATOR_IS_ANY,
+ value: 'future'
+ }]
+ }
+ }, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Drafts'),
+ slug: 'drafts',
+ icon: library_drafts,
+ view: {
+ ...DEFAULT_PAGE_BASE,
+ filters: [{
+ field: 'status',
+ operator: OPERATOR_IS_ANY,
+ value: 'draft'
+ }]
+ }
+ }, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Pending'),
+ slug: 'pending',
+ icon: library_pending,
+ view: {
+ ...DEFAULT_PAGE_BASE,
+ filters: [{
+ field: 'status',
+ operator: OPERATOR_IS_ANY,
+ value: 'pending'
+ }]
+ }
+ }, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Private'),
+ slug: 'private',
+ icon: not_allowed,
+ view: {
+ ...DEFAULT_PAGE_BASE,
+ filters: [{
+ field: 'status',
+ operator: OPERATOR_IS_ANY,
+ value: 'private'
+ }]
+ }
+ }, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Trash'),
+ slug: 'trash',
icon: library_trash,
- supportsBulk: true,
- isEligible({
- status
- }) {
- return status === 'trash';
- },
- async callback(posts) {
- const promiseResult = await Promise.allSettled(posts.map(post => {
- return deleteEntityRecord('postType', post.type, post.id, {
- force: true
- }, {
- throwOnError: true
- });
- }));
- // If all the promises were fulfilled with success.
- if (promiseResult.every(({
- status
- }) => status === 'fulfilled')) {
- let successMessage;
- if (promiseResult.length === 1) {
- successMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The posts's title. */
- (0,external_wp_i18n_namespaceObject.__)('"%s" permanently deleted.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(posts[0].title.rendered));
- } else {
- successMessage = (0,external_wp_i18n_namespaceObject.__)('The posts were permanently deleted.');
- }
- createSuccessNotice(successMessage, {
- type: 'snackbar',
- id: 'edit-site-post-permanently-deleted'
- });
- } else {
- // If there was at lease one failure.
- let errorMessage;
- // If we were trying to permanently delete a single post.
- if (promiseResult.length === 1) {
- if (promiseResult[0].reason?.message) {
- errorMessage = promiseResult[0].reason.message;
- } else {
- errorMessage = (0,external_wp_i18n_namespaceObject.__)('An error occurred while permanently deleting the post.');
- }
- // If we were trying to permanently delete multiple posts
- } else {
- const errorMessages = new Set();
- const failedPromises = promiseResult.filter(({
- status
- }) => status === 'rejected');
- for (const failedPromise of failedPromises) {
- if (failedPromise.reason?.message) {
- errorMessages.add(failedPromise.reason.message);
- }
- }
- if (errorMessages.size === 0) {
- errorMessage = (0,external_wp_i18n_namespaceObject.__)('An error occurred while permanently deleting the posts.');
- } else if (errorMessages.size === 1) {
- errorMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: an error message */
- (0,external_wp_i18n_namespaceObject.__)('An error occurred while permanently deleting the posts: %s'), [...errorMessages][0]);
- } else {
- errorMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: a list of comma separated error messages */
- (0,external_wp_i18n_namespaceObject.__)('Some errors occurred while permanently deleting the posts: %s'), [...errorMessages].join(','));
- }
- createErrorNotice(errorMessage, {
- type: 'snackbar'
- });
- }
- }
+ view: {
+ ...DEFAULT_PAGE_BASE,
+ filters: [{
+ field: 'status',
+ operator: OPERATOR_IS_ANY,
+ value: 'trash'
+ }]
}
- }), [createSuccessNotice, createErrorNotice, deleteEntityRecord]);
-}
-function useRestorePostAction() {
+ }]
+};
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/add-new-page/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+
+
+function AddNewPageModal({
+ onSave,
+ onClose
+}) {
+ const [isCreatingPage, setIsCreatingPage] = (0,external_wp_element_namespaceObject.useState)(false);
+ const [title, setTitle] = (0,external_wp_element_namespaceObject.useState)('');
const {
- createSuccessNotice,
- createErrorNotice
+ saveEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const {
+ createErrorNotice,
+ createSuccessNotice
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
const {
- editEntityRecord,
- saveEditedEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- return (0,external_wp_element_namespaceObject.useMemo)(() => ({
- id: 'restore',
- label: (0,external_wp_i18n_namespaceObject.__)('Restore'),
- isPrimary: true,
- icon: library_backup,
- supportsBulk: true,
- isEligible({
- status
- }) {
- return status === 'trash';
- },
- async callback(posts) {
- try {
- for (const post of posts) {
- await editEntityRecord('postType', post.type, post.id, {
- status: 'draft'
- });
- await saveEditedEntityRecord('postType', post.type, post.id, {
- throwOnError: true
- });
- }
- createSuccessNotice(posts.length > 1 ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The number of posts. */
- (0,external_wp_i18n_namespaceObject.__)('%d posts have been restored.'), posts.length) : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The number of posts. */
- (0,external_wp_i18n_namespaceObject.__)('"%s" has been restored.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(posts[0].title.rendered)), {
- type: 'snackbar',
- id: 'edit-site-post-restored'
- });
- } catch (error) {
- let errorMessage;
- if (error.message && error.code !== 'unknown_error' && error.message) {
- errorMessage = error.message;
- } else if (posts.length > 1) {
- errorMessage = (0,external_wp_i18n_namespaceObject.__)('An error occurred while restoring the posts.');
- } else {
- errorMessage = (0,external_wp_i18n_namespaceObject.__)('An error occurred while restoring the post.');
- }
- createErrorNotice(errorMessage, {
- type: 'snackbar'
- });
- }
+ resolveSelect
+ } = (0,external_wp_data_namespaceObject.useRegistry)();
+ async function createPage(event) {
+ event.preventDefault();
+ if (isCreatingPage) {
+ return;
}
- }), [createSuccessNotice, createErrorNotice, editEntityRecord, saveEditedEntityRecord]);
-}
-const viewPostAction = {
- id: 'view-post',
- label: (0,external_wp_i18n_namespaceObject.__)('View'),
- isPrimary: true,
- icon: library_external,
- isEligible(post) {
- return post.status !== 'trash';
- },
- callback(posts) {
- const post = posts[0];
- document.location.href = post.link;
- }
-};
-function useEditPostAction() {
- const history = actions_useHistory();
- return (0,external_wp_element_namespaceObject.useMemo)(() => ({
- id: 'edit-post',
- label: (0,external_wp_i18n_namespaceObject.__)('Edit'),
- isEligible({
- status
- }) {
- return status !== 'trash';
- },
- callback(posts) {
- const post = posts[0];
- history.push({
- postId: post.id,
- postType: post.type,
- canvas: 'edit'
+ setIsCreatingPage(true);
+ try {
+ const pagePostType = await resolveSelect(external_wp_coreData_namespaceObject.store).getPostType('page');
+ const newPage = await saveEntityRecord('postType', 'page', {
+ status: 'draft',
+ title,
+ slug: title || (0,external_wp_i18n_namespaceObject.__)('No title'),
+ content: !!pagePostType.template && pagePostType.template.length ? (0,external_wp_blocks_namespaceObject.serialize)((0,external_wp_blocks_namespaceObject.synchronizeBlocksWithTemplate)([], pagePostType.template)) : undefined
+ }, {
+ throwOnError: true
});
+ onSave(newPage);
+ createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Title of the created template e.g: "Category".
+ (0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(newPage.title?.rendered || title)), {
+ type: 'snackbar'
+ });
+ } catch (error) {
+ const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : (0,external_wp_i18n_namespaceObject.__)('An error occurred while creating the page.');
+ createErrorNotice(errorMessage, {
+ type: 'snackbar'
+ });
+ } finally {
+ setIsCreatingPage(false);
}
- }), [history]);
-}
-const postRevisionsAction = {
- id: 'view-post-revisions',
- label: (0,external_wp_i18n_namespaceObject.__)('View revisions'),
- isPrimary: false,
- isEligible: post => {
- var _post$_links$predeces, _post$_links$version;
- if (post.status === 'trash') {
- return false;
- }
- const lastRevisionId = (_post$_links$predeces = post?._links?.['predecessor-version']?.[0]?.id) !== null && _post$_links$predeces !== void 0 ? _post$_links$predeces : null;
- const revisionsCount = (_post$_links$version = post?._links?.['version-history']?.[0]?.count) !== null && _post$_links$version !== void 0 ? _post$_links$version : 0;
- return lastRevisionId && revisionsCount > 1;
- },
- callback(posts) {
- const post = posts[0];
- const href = (0,external_wp_url_namespaceObject.addQueryArgs)('revision.php', {
- revision: post?._links?.['predecessor-version']?.[0]?.id
- });
- document.location.href = href;
}
-};
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Draft a new page'),
+ onRequestClose: onClose,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ onSubmit: createPage,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 3,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Page title'),
+ onChange: setTitle,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('No title'),
+ value: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ spacing: 2,
+ justify: "end",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ onClick: onClose,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "primary",
+ type: "submit",
+ isBusy: isCreatingPage,
+ "aria-disabled": isCreatingPage,
+ children: (0,external_wp_i18n_namespaceObject.__)('Create draft')
+ })]
+ })]
+ })
+ })
+ });
+}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/media/index.js
-
/**
* WordPress dependencies
*/
+
function Media({
id,
size = ['large', 'medium', 'thumbnail'],
@@ -42987,7 +33000,7 @@ function Media({
if (!mediaUrl) {
return null;
}
- return (0,external_React_.createElement)("img", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
...props,
src: mediaUrl,
alt: media.alt_text
@@ -42995,13 +33008,72 @@ function Media({
}
/* harmony default export */ const components_media = (Media);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-pages/index.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js
+/**
+ * WordPress dependencies
+ */
+
+const pencil = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"
+ })
+});
+/* harmony default export */ const library_pencil = (pencil);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js
/**
- * External dependencies
+ * Internal dependencies
+ */
+
+
+/* harmony default export */ const edit = (library_pencil);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/dataviews-actions/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
*/
+const {
+ useHistory: dataviews_actions_useHistory
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+const useEditPostAction = () => {
+ const history = dataviews_actions_useHistory();
+ return (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ id: 'edit-post',
+ label: (0,external_wp_i18n_namespaceObject.__)('Edit'),
+ isPrimary: true,
+ icon: edit,
+ isEligible(post) {
+ if (post.status === 'trash') {
+ return false;
+ }
+ // It's eligible for all post types except theme patterns.
+ return post.type !== PATTERN_TYPES.theme;
+ },
+ callback(items) {
+ const post = items[0];
+ history.push({
+ postId: post.id,
+ postType: post.type,
+ canvas: 'edit'
+ });
+ }
+ }), [history]);
+};
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-pages/index.js
/**
* WordPress dependencies
*/
@@ -43015,6 +33087,7 @@ function Media({
+
/**
* Internal dependencies
*/
@@ -43026,21 +33099,27 @@ function Media({
+
+
+
+
+const {
+ usePostActions
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
const {
useLocation: page_pages_useLocation,
useHistory: page_pages_useHistory
-} = unlock(external_wp_router_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
const page_pages_EMPTY_ARRAY = [];
-const SUPPORTED_LAYOUTS = window?.__experimentalAdminViews ? [LAYOUT_GRID, LAYOUT_TABLE, LAYOUT_LIST] : [LAYOUT_GRID, LAYOUT_TABLE];
+const getFormattedDate = dateToDisplay => (0,external_wp_date_namespaceObject.dateI18n)((0,external_wp_date_namespaceObject.getSettings)().formats.datetimeAbbreviated, (0,external_wp_date_namespaceObject.getDate)(dateToDisplay));
function useView(postType) {
const {
- params
+ params: {
+ activeView = 'all',
+ isCustom = 'false',
+ layout
+ }
} = page_pages_useLocation();
- const {
- activeView = 'all',
- isCustom = 'false',
- layout
- } = params;
const history = page_pages_useHistory();
const selectedDefaultView = (0,external_wp_element_namespaceObject.useMemo)(() => {
const defaultView = isCustom === 'false' && DEFAULT_VIEWS[postType].find(({
@@ -43095,13 +33174,16 @@ function useView(postType) {
}, [editEntityRecord, editedViewRecord?.id]);
const setDefaultViewAndUpdateUrl = (0,external_wp_element_namespaceObject.useCallback)(viewToSet => {
if (viewToSet.type !== view?.type) {
+ const {
+ params
+ } = history.getLocationWithParams();
history.push({
...params,
layout: viewToSet.type
});
}
setView(viewToSet);
- }, [params, view?.type, history]);
+ }, [history, view?.type]);
if (isCustom === 'false') {
return [view, setDefaultViewAndUpdateUrl];
} else if (isCustom === 'true' && customView) {
@@ -43138,6 +33220,7 @@ function FeaturedImage({
item,
viewType
}) {
+ const isDisabled = item.status === 'trash';
const {
onClick
} = useLink({
@@ -43147,50 +33230,58 @@ function FeaturedImage({
});
const hasMedia = !!item.featured_media;
const size = viewType === LAYOUT_GRID ? ['large', 'full', 'medium', 'thumbnail'] : ['thumbnail', 'medium', 'large', 'full'];
- const media = hasMedia ? (0,external_React_.createElement)(components_media, {
+ const media = hasMedia ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(components_media, {
className: "edit-site-page-pages__featured-image",
id: item.featured_media,
size: size
}) : null;
- if (viewType === LAYOUT_LIST) {
- return media;
- }
- return (0,external_React_.createElement)("button", {
- className: classnames_default()('page-pages-preview-field__button', {
- 'edit-site-page-pages__media-wrapper': viewType === LAYOUT_TABLE
- }),
- type: "button",
- onClick: onClick,
- "aria-label": item.title?.rendered || (0,external_wp_i18n_namespaceObject.__)('(no title)')
- }, media);
+ const renderButton = viewType !== LAYOUT_LIST && !isDisabled;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: `edit-site-page-pages__featured-image-wrapper is-layout-${viewType}`,
+ children: renderButton ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("button", {
+ className: "page-pages-preview-field__button",
+ type: "button",
+ onClick: onClick,
+ "aria-label": item.title?.rendered || (0,external_wp_i18n_namespaceObject.__)('(no title)'),
+ children: media
+ }) : media
+ });
+}
+function getItemId(item) {
+ return item.id.toString();
}
function PagePages() {
+ var _pages$map, _usePrevious;
const postType = 'page';
const [view, setView] = useView(postType);
const history = page_pages_useHistory();
const {
- params
+ params: {
+ postId
+ }
} = page_pages_useLocation();
- const {
- isCustom = 'false'
- } = params;
+ const [selection, setSelection] = (0,external_wp_element_namespaceObject.useState)([postId]);
const onSelectionChange = (0,external_wp_element_namespaceObject.useCallback)(items => {
- if (isCustom === 'false' && view?.type === LAYOUT_LIST) {
+ var _params$isCustom;
+ const {
+ params
+ } = history.getLocationWithParams();
+ if (((_params$isCustom = params.isCustom) !== null && _params$isCustom !== void 0 ? _params$isCustom : 'false') === 'false' && view?.type === LAYOUT_LIST) {
history.push({
...params,
postId: items.length === 1 ? items[0].id : undefined
});
}
- }, [history, params, view?.type, isCustom]);
+ }, [history, view?.type]);
const queryArgs = (0,external_wp_element_namespaceObject.useMemo)(() => {
const filters = {};
view.filters.forEach(filter => {
- if (filter.field === 'status' && filter.operator === OPERATOR_IN) {
+ if (filter.field === 'status' && filter.operator === OPERATOR_IS_ANY) {
filters.status = filter.value;
}
- if (filter.field === 'author' && filter.operator === OPERATOR_IN) {
+ if (filter.field === 'author' && filter.operator === OPERATOR_IS_ANY) {
filters.author = filter.value;
- } else if (filter.field === 'author' && filter.operator === OPERATOR_NOT_IN) {
+ } else if (filter.field === 'author' && filter.operator === OPERATOR_IS_NONE) {
filters.author_exclude = filter.value;
}
});
@@ -43215,14 +33306,47 @@ function PagePages() {
totalItems,
totalPages
} = (0,external_wp_coreData_namespaceObject.useEntityRecords)('postType', postType, queryArgs);
+ const ids = (_pages$map = pages?.map(page => getItemId(page))) !== null && _pages$map !== void 0 ? _pages$map : [];
+ const prevIds = (_usePrevious = (0,external_wp_compose_namespaceObject.usePrevious)(ids)) !== null && _usePrevious !== void 0 ? _usePrevious : [];
+ const deletedIds = prevIds.filter(id => !ids.includes(id));
+ const postIdWasDeleted = deletedIds.includes(postId);
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (postIdWasDeleted) {
+ history.push({
+ ...history.getLocationWithParams().params,
+ postId: undefined
+ });
+ }
+ }, [postIdWasDeleted, history]);
const {
records: authors,
isResolving: isLoadingAuthors
- } = (0,external_wp_coreData_namespaceObject.useEntityRecords)('root', 'user');
+ } = (0,external_wp_coreData_namespaceObject.useEntityRecords)('root', 'user', {
+ per_page: -1
+ });
const paginationInfo = (0,external_wp_element_namespaceObject.useMemo)(() => ({
totalItems,
totalPages
}), [totalItems, totalPages]);
+ const {
+ frontPageId,
+ postsPageId,
+ addNewLabel,
+ canCreatePage
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getEntityRecord,
+ getPostType,
+ canUser
+ } = select(external_wp_coreData_namespaceObject.store);
+ const siteSettings = getEntityRecord('root', 'site');
+ return {
+ frontPageId: siteSettings?.page_on_front,
+ postsPageId: siteSettings?.page_for_posts,
+ addNewLabel: getPostType('page')?.labels?.add_new_item,
+ canCreatePage: canUser('create', 'pages')
+ };
+ });
const fields = (0,external_wp_element_namespaceObject.useMemo)(() => [{
id: 'featured-image',
header: (0,external_wp_i18n_namespaceObject.__)('Featured Image'),
@@ -43231,7 +33355,7 @@ function PagePages() {
}) => item.featured_media,
render: ({
item
- }) => (0,external_React_.createElement)(FeaturedImage, {
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FeaturedImage, {
item: item,
viewType: view.type
}),
@@ -43246,13 +33370,35 @@ function PagePages() {
render: ({
item
}) => {
- return [LAYOUT_TABLE, LAYOUT_GRID].includes(view.type) ? (0,external_React_.createElement)(Link, {
+ const addLink = [LAYOUT_TABLE, LAYOUT_GRID].includes(view.type) && item.status !== 'trash';
+ const title = addLink ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Link, {
params: {
postId: item.id,
postType: item.type,
canvas: 'edit'
- }
- }, (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(item.title?.rendered) || (0,external_wp_i18n_namespaceObject.__)('(no title)')) : (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(item.title?.rendered) || (0,external_wp_i18n_namespaceObject.__)('(no title)');
+ },
+ children: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(item.title?.rendered) || (0,external_wp_i18n_namespaceObject.__)('(no title)')
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(item.title?.rendered) || (0,external_wp_i18n_namespaceObject.__)('(no title)')
+ });
+ let suffix = '';
+ if (item.id === frontPageId) {
+ suffix = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "edit-site-page-pages__title-badge",
+ children: (0,external_wp_i18n_namespaceObject.__)('Front Page')
+ });
+ } else if (item.id === postsPageId) {
+ suffix = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "edit-site-page-pages__title-badge",
+ children: (0,external_wp_i18n_namespaceObject.__)('Posts Page')
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ className: "edit-site-page-pages-title",
+ alignment: "center",
+ justify: "flex-start",
+ children: [title, suffix]
+ });
},
maxWidth: 300,
enableHiding: false
@@ -43262,7 +33408,6 @@ function PagePages() {
getValue: ({
item
}) => item._embedded?.author[0]?.name,
- type: ENUMERATION_TYPE,
elements: authors?.map(({
id,
name
@@ -43281,29 +33426,65 @@ function PagePages() {
value
}) => value === item.status)?.label) !== null && _STATUSES$find$label !== void 0 ? _STATUSES$find$label : item.status;
},
- type: ENUMERATION_TYPE,
elements: STATUSES,
enableSorting: false,
filterBy: {
- operators: [OPERATOR_IN]
+ operators: [OPERATOR_IS_ANY]
}
}, {
header: (0,external_wp_i18n_namespaceObject.__)('Date'),
id: 'date',
- getValue: ({
- item
- }) => item.date,
render: ({
item
}) => {
- const formattedDate = (0,external_wp_date_namespaceObject.dateI18n)((0,external_wp_date_namespaceObject.getSettings)().formats.datetimeAbbreviated, (0,external_wp_date_namespaceObject.getDate)(item.date));
- return (0,external_React_.createElement)("time", null, formattedDate);
+ const isDraftOrPrivate = ['draft', 'private'].includes(item.status);
+ if (isDraftOrPrivate) {
+ return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: page creation date */
+ (0,external_wp_i18n_namespaceObject.__)('<span>Modified: <time>%s</time></span>'), getFormattedDate(item.date)), {
+ span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {}),
+ time: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("time", {})
+ });
+ }
+ const isScheduled = item.status === 'future';
+ if (isScheduled) {
+ return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: page creation date */
+ (0,external_wp_i18n_namespaceObject.__)('<span>Scheduled: <time>%s</time></span>'), getFormattedDate(item.date)), {
+ span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {}),
+ time: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("time", {})
+ });
+ }
+
+ // Pending & Published posts show the modified date if it's newer.
+ const dateToDisplay = (0,external_wp_date_namespaceObject.getDate)(item.modified) > (0,external_wp_date_namespaceObject.getDate)(item.date) ? item.modified : item.date;
+ const isPending = item.status === 'pending';
+ if (isPending) {
+ return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: the newest of created or modified date for the page */
+ (0,external_wp_i18n_namespaceObject.__)('<span>Modified: <time>%s</time></span>'), getFormattedDate(dateToDisplay)), {
+ span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {}),
+ time: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("time", {})
+ });
+ }
+ const isPublished = item.status === 'publish';
+ if (isPublished) {
+ return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: the newest of created or modified date for the page */
+ (0,external_wp_i18n_namespaceObject.__)('<span>Published: <time>%s</time></span>'), getFormattedDate(dateToDisplay)), {
+ span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {}),
+ time: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("time", {})
+ });
+ }
+
+ // Unknow status.
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("time", {
+ children: getFormattedDate(item.date)
+ });
}
- }], [authors, view.type]);
- const permanentlyDeletePostAction = usePermanentlyDeletePostAction();
- const restorePostAction = useRestorePostAction();
- const editPostAction = useEditPostAction();
- const actions = (0,external_wp_element_namespaceObject.useMemo)(() => [viewPostAction, trashPostAction, restorePostAction, permanentlyDeletePostAction, editPostAction, postRevisionsAction], [permanentlyDeletePostAction, restorePostAction, editPostAction]);
+ }], [authors, view.type, frontPageId, postsPageId]);
+ const postTypeActions = usePostActions({
+ postType: 'page',
+ context: 'list'
+ });
+ const editAction = useEditPostAction();
+ const actions = (0,external_wp_element_namespaceObject.useMemo)(() => [editAction, ...postTypeActions], [postTypeActions, editAction]);
const onChangeView = (0,external_wp_element_namespaceObject.useCallback)(newView => {
if (newView.type !== view.type) {
newView = {
@@ -43316,17 +33497,9 @@ function PagePages() {
setView(newView);
}, [view.type, setView]);
const [showAddPageModal, setShowAddPageModal] = (0,external_wp_element_namespaceObject.useState)(false);
- const openModal = (0,external_wp_element_namespaceObject.useCallback)(() => {
- if (!showAddPageModal) {
- setShowAddPageModal(true);
- }
- }, [showAddPageModal]);
- const closeModal = (0,external_wp_element_namespaceObject.useCallback)(() => {
- if (showAddPageModal) {
- setShowAddPageModal(false);
- }
- }, [showAddPageModal]);
- const handleNewPage = (0,external_wp_element_namespaceObject.useCallback)(({
+ const openModal = () => setShowAddPageModal(true);
+ const closeModal = () => setShowAddPageModal(false);
+ const handleNewPage = ({
type,
id
}) => {
@@ -43336,85 +33509,411 @@ function PagePages() {
canvas: 'edit'
});
closeModal();
- }, [history]);
-
- // TODO: we need to handle properly `data={ data || EMPTY_ARRAY }` for when `isLoading`.
- return (0,external_React_.createElement)(Page, {
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Page, {
title: (0,external_wp_i18n_namespaceObject.__)('Pages'),
- actions: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: openModal
- }, (0,external_wp_i18n_namespaceObject.__)('Add new page')), showAddPageModal && (0,external_React_.createElement)(AddNewPageModal, {
- onSave: handleNewPage,
- onClose: closeModal
- }))
- }, (0,external_React_.createElement)(DataViews, {
- paginationInfo: paginationInfo,
- fields: fields,
- actions: actions,
- data: pages || page_pages_EMPTY_ARRAY,
- isLoading: isLoadingPages || isLoadingAuthors,
- view: view,
- onChangeView: onChangeView,
- onSelectionChange: onSelectionChange,
- supportedLayouts: SUPPORTED_LAYOUTS
- }));
+ actions: addNewLabel && canCreatePage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ onClick: openModal,
+ __next40pxDefaultSize: true,
+ children: addNewLabel
+ }), showAddPageModal && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AddNewPageModal, {
+ onSave: handleNewPage,
+ onClose: closeModal
+ })]
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DataViews, {
+ paginationInfo: paginationInfo,
+ fields: fields,
+ actions: actions,
+ data: pages || page_pages_EMPTY_ARRAY,
+ isLoading: isLoadingPages || isLoadingAuthors,
+ view: view,
+ onChangeView: onChangeView,
+ selection: selection,
+ setSelection: setSelection,
+ onSelectionChange: onSelectionChange,
+ getItemId: getItemId
+ })
+ });
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/header.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/dataviews/build-module/filter-and-sort-data-view.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * Internal dependencies
+ */
+
+
+function filter_and_sort_data_view_normalizeSearchInput(input = '') {
+ return remove_accents_default()(input.trim().toLowerCase());
+}
+const filter_and_sort_data_view_EMPTY_ARRAY = [];
/**
+ * Applies the filtering, sorting and pagination to the raw data based on the view configuration.
+ *
+ * @param data Raw data.
+ * @param view View config.
+ * @param fields Fields config.
+ *
+ * @return Filtered, sorted and paginated data.
+ */
+function filterSortAndPaginate(data, view, fields) {
+ if (!data) {
+ return {
+ data: filter_and_sort_data_view_EMPTY_ARRAY,
+ paginationInfo: {
+ totalItems: 0,
+ totalPages: 0
+ }
+ };
+ }
+ const _fields = normalizeFields(fields);
+ let filteredData = [...data];
+ // Handle global search.
+ if (view.search) {
+ const normalizedSearch = filter_and_sort_data_view_normalizeSearchInput(view.search);
+ filteredData = filteredData.filter(item => {
+ return _fields.filter(field => field.enableGlobalSearch).map(field => {
+ return filter_and_sort_data_view_normalizeSearchInput(field.getValue({
+ item
+ }));
+ }).some(field => field.includes(normalizedSearch));
+ });
+ }
+ if (view.filters.length > 0) {
+ view.filters.forEach(filter => {
+ const field = _fields.find(_field => _field.id === filter.field);
+ if (field) {
+ if (filter.operator === constants_OPERATOR_IS_ANY && filter?.value?.length > 0) {
+ filteredData = filteredData.filter(item => {
+ const fieldValue = field.getValue({
+ item
+ });
+ if (Array.isArray(fieldValue)) {
+ return filter.value.some(filterValue => fieldValue.includes(filterValue));
+ } else if (typeof fieldValue === 'string') {
+ return filter.value.includes(fieldValue);
+ }
+ return false;
+ });
+ } else if (filter.operator === constants_OPERATOR_IS_NONE && filter?.value?.length > 0) {
+ filteredData = filteredData.filter(item => {
+ const fieldValue = field.getValue({
+ item
+ });
+ if (Array.isArray(fieldValue)) {
+ return !filter.value.some(filterValue => fieldValue.includes(filterValue));
+ } else if (typeof fieldValue === 'string') {
+ return !filter.value.includes(fieldValue);
+ }
+ return false;
+ });
+ } else if (filter.operator === OPERATOR_IS_ALL && filter?.value?.length > 0) {
+ filteredData = filteredData.filter(item => {
+ return filter.value.every(value => {
+ return field.getValue({
+ item
+ })?.includes(value);
+ });
+ });
+ } else if (filter.operator === OPERATOR_IS_NOT_ALL && filter?.value?.length > 0) {
+ filteredData = filteredData.filter(item => {
+ return filter.value.every(value => {
+ return !field.getValue({
+ item
+ })?.includes(value);
+ });
+ });
+ } else if (filter.operator === constants_OPERATOR_IS) {
+ filteredData = filteredData.filter(item => {
+ return filter.value === field.getValue({
+ item
+ });
+ });
+ } else if (filter.operator === constants_OPERATOR_IS_NOT) {
+ filteredData = filteredData.filter(item => {
+ return filter.value !== field.getValue({
+ item
+ });
+ });
+ }
+ }
+ });
+ }
+
+ // Handle sorting.
+ if (view.sort) {
+ const fieldId = view.sort.field;
+ const fieldToSort = _fields.find(field => {
+ return field.id === fieldId;
+ });
+ if (fieldToSort) {
+ filteredData.sort((a, b) => {
+ var _fieldToSort$getValue, _fieldToSort$getValue2;
+ const valueA = (_fieldToSort$getValue = fieldToSort.getValue({
+ item: a
+ })) !== null && _fieldToSort$getValue !== void 0 ? _fieldToSort$getValue : '';
+ const valueB = (_fieldToSort$getValue2 = fieldToSort.getValue({
+ item: b
+ })) !== null && _fieldToSort$getValue2 !== void 0 ? _fieldToSort$getValue2 : '';
+ return view.sort?.direction === 'asc' ? valueA.localeCompare(valueB) : valueB.localeCompare(valueA);
+ });
+ }
+ }
+
+ // Handle pagination.
+ let totalItems = filteredData.length;
+ let totalPages = 1;
+ if (view.page !== undefined && view.perPage !== undefined) {
+ const start = (view.page - 1) * view.perPage;
+ totalItems = filteredData?.length || 0;
+ totalPages = Math.ceil(totalItems / view.perPage);
+ filteredData = filteredData?.slice(start, start + view.perPage);
+ }
+ return {
+ data: filteredData,
+ paginationInfo: {
+ totalItems,
+ totalPages
+ }
+ };
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/lock-small.js
+/**
* WordPress dependencies
*/
-const header_header = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const lockSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
-}));
-/* harmony default export */ const library_header = (header_header);
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"
+ })
+});
+/* harmony default export */ const lock_small = (lockSmall);
+
+;// CONCATENATED MODULE: external ["wp","priorityQueue"]
+const external_wp_priorityQueue_namespaceObject = window["wp"]["priorityQueue"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/async/index.js
+/**
+ * WordPress dependencies
+ */
+
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/footer.js
+const blockPreviewQueue = (0,external_wp_priorityQueue_namespaceObject.createQueue)();
/**
+ * Renders a component at the next idle time.
+ * @param {*} props
+ */
+function Async({
+ children,
+ placeholder
+}) {
+ const [shouldRender, setShouldRender] = (0,external_wp_element_namespaceObject.useState)(false);
+
+ // In the future, we could try to use startTransition here, but currently
+ // react will batch all transitions, which means all previews will be
+ // rendered at the same time.
+ // https://react.dev/reference/react/startTransition#caveats
+ // > If there are multiple ongoing Transitions, React currently batches them
+ // > together. This is a limitation that will likely be removed in a future
+ // > release.
+
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ const context = {};
+ blockPreviewQueue.add(context, () => {
+ // Synchronously run all renders so it consumes timeRemaining.
+ // See https://github.com/WordPress/gutenberg/pull/48238
+ (0,external_wp_element_namespaceObject.flushSync)(() => {
+ setShouldRender(true);
+ });
+ });
+ return () => {
+ blockPreviewQueue.cancel(context);
+ };
+ }, []);
+ if (!shouldRender) {
+ return placeholder;
+ }
+ return children;
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-patterns/utils.js
+const filterOutDuplicatesByName = (currentItem, index, items) => index === items.findIndex(item => currentItem.name === item.name);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-patterns/use-pattern-settings.js
+/**
* WordPress dependencies
*/
-const footer = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- d: "M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
-}));
-/* harmony default export */ const library_footer = (footer);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/lock-small.js
+
+/**
+ * Internal dependencies
+ */
+
+
+
+function usePatternSettings() {
+ var _storedSettings$__exp;
+ const storedSettings = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getSettings
+ } = lock_unlock_unlock(select(store));
+ return getSettings();
+ }, []);
+ const settingsBlockPatterns = (_storedSettings$__exp = storedSettings.__experimentalAdditionalBlockPatterns) !== null && _storedSettings$__exp !== void 0 ? _storedSettings$__exp :
+ // WP 6.0
+ storedSettings.__experimentalBlockPatterns; // WP 5.9
+
+ const restBlockPatterns = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getBlockPatterns(), []);
+ const blockPatterns = (0,external_wp_element_namespaceObject.useMemo)(() => [...(settingsBlockPatterns || []), ...(restBlockPatterns || [])].filter(filterOutDuplicatesByName), [settingsBlockPatterns, restBlockPatterns]);
+ const settings = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ const {
+ __experimentalAdditionalBlockPatterns,
+ ...restStoredSettings
+ } = storedSettings;
+ return {
+ ...restStoredSettings,
+ __experimentalBlockPatterns: blockPatterns,
+ __unstableIsPreviewMode: true
+ };
+ }, [storedSettings, blockPatterns]);
+ return settings;
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-patterns/search-items.js
/**
* WordPress dependencies
*/
-const lockSmall = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"
-}));
-/* harmony default export */ const lock_small = (lockSmall);
-;// CONCATENATED MODULE: external ["wp","reusableBlocks"]
-const external_wp_reusableBlocks_namespaceObject = window["wp"]["reusableBlocks"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-patterns/dataviews-pattern-actions.js
+/**
+ * Internal dependencies
+ */
+
+const {
+ extractWords,
+ getNormalizedSearchTerms,
+ normalizeString: search_items_normalizeString
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
/**
- * External dependencies
+ * Internal dependencies
*/
+// Default search helpers.
+const defaultGetName = item => item.name || '';
+const defaultGetTitle = item => item.title;
+const defaultGetDescription = item => item.description || '';
+const defaultGetKeywords = item => item.keywords || [];
+const defaultHasCategory = () => false;
+const removeMatchingTerms = (unmatchedTerms, unprocessedTerms) => {
+ return unmatchedTerms.filter(term => !getNormalizedSearchTerms(unprocessedTerms).some(unprocessedTerm => unprocessedTerm.includes(term)));
+};
+
+/**
+ * Filters an item list given a search term.
+ *
+ * @param {Array} items Item list
+ * @param {string} searchInput Search input.
+ * @param {Object} config Search Config.
+ *
+ * @return {Array} Filtered item list.
+ */
+const searchItems = (items = [], searchInput = '', config = {}) => {
+ const normalizedSearchTerms = getNormalizedSearchTerms(searchInput);
+
+ // Filter patterns by category: the default category indicates that all patterns will be shown.
+ const onlyFilterByCategory = config.categoryId !== PATTERN_DEFAULT_CATEGORY && !normalizedSearchTerms.length;
+ const searchRankConfig = {
+ ...config,
+ onlyFilterByCategory
+ };
+
+ // If we aren't filtering on search terms, matching on category is satisfactory.
+ // If we are, then we need more than a category match.
+ const threshold = onlyFilterByCategory ? 0 : 1;
+ const rankedItems = items.map(item => {
+ return [item, getItemSearchRank(item, searchInput, searchRankConfig)];
+ }).filter(([, rank]) => rank > threshold);
+
+ // If we didn't have terms to search on, there's no point sorting.
+ if (normalizedSearchTerms.length === 0) {
+ return rankedItems.map(([item]) => item);
+ }
+ rankedItems.sort(([, rank1], [, rank2]) => rank2 - rank1);
+ return rankedItems.map(([item]) => item);
+};
+
+/**
+ * Get the search rank for a given item and a specific search term.
+ * The better the match, the higher the rank.
+ * If the rank equals 0, it should be excluded from the results.
+ *
+ * @param {Object} item Item to filter.
+ * @param {string} searchTerm Search term.
+ * @param {Object} config Search Config.
+ *
+ * @return {number} Search Rank.
+ */
+function getItemSearchRank(item, searchTerm, config) {
+ const {
+ categoryId,
+ getName = defaultGetName,
+ getTitle = defaultGetTitle,
+ getDescription = defaultGetDescription,
+ getKeywords = defaultGetKeywords,
+ hasCategory = defaultHasCategory,
+ onlyFilterByCategory
+ } = config;
+ let rank = categoryId === PATTERN_DEFAULT_CATEGORY || categoryId === TEMPLATE_PART_ALL_AREAS_CATEGORY || categoryId === PATTERN_USER_CATEGORY && item.type === PATTERN_TYPES.user || hasCategory(item, categoryId) ? 1 : 0;
+
+ // If an item doesn't belong to the current category or we don't have
+ // search terms to filter by, return the initial rank value.
+ if (!rank || onlyFilterByCategory) {
+ return rank;
+ }
+ const name = getName(item);
+ const title = getTitle(item);
+ const description = getDescription(item);
+ const keywords = getKeywords(item);
+ const normalizedSearchInput = search_items_normalizeString(searchTerm);
+ const normalizedTitle = search_items_normalizeString(title);
+
+ // Prefers exact matches
+ // Then prefers if the beginning of the title matches the search term
+ // name, keywords, description matches come later.
+ if (normalizedSearchInput === normalizedTitle) {
+ rank += 30;
+ } else if (normalizedTitle.startsWith(normalizedSearchInput)) {
+ rank += 20;
+ } else {
+ const terms = [name, title, description, ...keywords].join(' ');
+ const normalizedSearchTerms = extractWords(normalizedSearchInput);
+ const unmatchedTerms = removeMatchingTerms(normalizedSearchTerms, terms);
+ if (unmatchedTerms.length === 0) {
+ rank += 10;
+ }
+ }
+ return rank;
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-patterns/use-patterns.js
/**
* WordPress dependencies
*/
@@ -43424,6 +33923,246 @@ const external_wp_reusableBlocks_namespaceObject = window["wp"]["reusableBlocks"
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+const EMPTY_PATTERN_LIST = [];
+const createTemplatePartId = (theme, slug) => theme && slug ? theme + '//' + slug : null;
+const templatePartToPattern = templatePart => ({
+ blocks: (0,external_wp_blocks_namespaceObject.parse)(templatePart.content.raw, {
+ __unstableSkipMigrationLogs: true
+ }),
+ categories: [templatePart.area],
+ description: templatePart.description || '',
+ isCustom: templatePart.source === TEMPLATE_ORIGINS.custom,
+ keywords: templatePart.keywords || [],
+ id: createTemplatePartId(templatePart.theme, templatePart.slug),
+ name: createTemplatePartId(templatePart.theme, templatePart.slug),
+ title: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(templatePart.title.rendered),
+ type: templatePart.type,
+ _links: templatePart._links,
+ templatePart
+});
+const selectTemplatePartsAsPatterns = (0,external_wp_data_namespaceObject.createSelector)((select, categoryId, search = '') => {
+ var _getEntityRecords;
+ const {
+ getEntityRecords,
+ isResolving: isResolvingSelector
+ } = select(external_wp_coreData_namespaceObject.store);
+ const {
+ __experimentalGetDefaultTemplatePartAreas
+ } = select(external_wp_editor_namespaceObject.store);
+ const query = {
+ per_page: -1
+ };
+ const rawTemplateParts = (_getEntityRecords = getEntityRecords('postType', TEMPLATE_PART_POST_TYPE, query)) !== null && _getEntityRecords !== void 0 ? _getEntityRecords : EMPTY_PATTERN_LIST;
+ const templateParts = rawTemplateParts.map(templatePart => templatePartToPattern(templatePart));
+
+ // In the case where a custom template part area has been removed we need
+ // the current list of areas to cross check against so orphaned template
+ // parts can be treated as uncategorized.
+ const knownAreas = __experimentalGetDefaultTemplatePartAreas() || [];
+ const templatePartAreas = knownAreas.map(area => area.area);
+ const templatePartHasCategory = (item, category) => {
+ if (category !== TEMPLATE_PART_AREA_DEFAULT_CATEGORY) {
+ return item.templatePart.area === category;
+ }
+ return item.templatePart.area === category || !templatePartAreas.includes(item.templatePart.area);
+ };
+ const isResolving = isResolvingSelector('getEntityRecords', ['postType', TEMPLATE_PART_POST_TYPE, query]);
+ const patterns = searchItems(templateParts, search, {
+ categoryId,
+ hasCategory: templatePartHasCategory
+ });
+ return {
+ patterns,
+ isResolving
+ };
+}, select => [select(external_wp_coreData_namespaceObject.store).getEntityRecords('postType', TEMPLATE_PART_POST_TYPE, {
+ per_page: -1
+}), select(external_wp_coreData_namespaceObject.store).isResolving('getEntityRecords', ['postType', TEMPLATE_PART_POST_TYPE, {
+ per_page: -1
+}]), select(external_wp_editor_namespaceObject.store).__experimentalGetDefaultTemplatePartAreas()]);
+const selectThemePatterns = (0,external_wp_data_namespaceObject.createSelector)(select => {
+ var _settings$__experimen;
+ const {
+ getSettings
+ } = lock_unlock_unlock(select(store));
+ const {
+ isResolving: isResolvingSelector
+ } = select(external_wp_coreData_namespaceObject.store);
+ const settings = getSettings();
+ const blockPatterns = (_settings$__experimen = settings.__experimentalAdditionalBlockPatterns) !== null && _settings$__experimen !== void 0 ? _settings$__experimen : settings.__experimentalBlockPatterns;
+ const restBlockPatterns = select(external_wp_coreData_namespaceObject.store).getBlockPatterns();
+ const patterns = [...(blockPatterns || []), ...(restBlockPatterns || [])].filter(pattern => !EXCLUDED_PATTERN_SOURCES.includes(pattern.source)).filter(filterOutDuplicatesByName).filter(pattern => pattern.inserter !== false).map(pattern => ({
+ ...pattern,
+ keywords: pattern.keywords || [],
+ type: PATTERN_TYPES.theme,
+ blocks: (0,external_wp_blocks_namespaceObject.parse)(pattern.content, {
+ __unstableSkipMigrationLogs: true
+ })
+ }));
+ return {
+ patterns,
+ isResolving: isResolvingSelector('getBlockPatterns')
+ };
+}, select => [select(external_wp_coreData_namespaceObject.store).getBlockPatterns(), select(external_wp_coreData_namespaceObject.store).isResolving('getBlockPatterns'), lock_unlock_unlock(select(store)).getSettings()]);
+const selectPatterns = (0,external_wp_data_namespaceObject.createSelector)((select, categoryId, syncStatus, search = '') => {
+ const {
+ patterns: themePatterns,
+ isResolving: isResolvingThemePatterns
+ } = selectThemePatterns(select);
+ const {
+ patterns: userPatterns,
+ isResolving: isResolvingUserPatterns
+ } = selectUserPatterns(select);
+ let patterns = [...(themePatterns || []), ...(userPatterns || [])];
+ if (syncStatus) {
+ // User patterns can have their sync statuses checked directly
+ // Non-user patterns are all unsynced for the time being.
+ patterns = patterns.filter(pattern => {
+ return pattern.type === PATTERN_TYPES.user ? pattern.syncStatus === syncStatus : syncStatus === PATTERN_SYNC_TYPES.unsynced;
+ });
+ }
+ if (categoryId) {
+ patterns = searchItems(patterns, search, {
+ categoryId,
+ hasCategory: (item, currentCategory) => item.categories?.includes(currentCategory)
+ });
+ } else {
+ patterns = searchItems(patterns, search, {
+ hasCategory: item => !item.hasOwnProperty('categories')
+ });
+ }
+ return {
+ patterns,
+ isResolving: isResolvingThemePatterns || isResolvingUserPatterns
+ };
+}, select => [selectThemePatterns(select), selectUserPatterns(select)]);
+
+/**
+ * Converts a post of type `wp_block` to a 'pattern item' that more closely
+ * matches the structure of theme provided patterns.
+ *
+ * @param {Object} patternPost The `wp_block` record being normalized.
+ * @param {Map} categories A Map of user created categories.
+ *
+ * @return {Object} The normalized item.
+ */
+const convertPatternPostToItem = (patternPost, categories) => ({
+ blocks: (0,external_wp_blocks_namespaceObject.parse)(patternPost.content.raw, {
+ __unstableSkipMigrationLogs: true
+ }),
+ ...(patternPost.wp_pattern_category.length > 0 && {
+ categories: patternPost.wp_pattern_category.map(patternCategoryId => categories && categories.get(patternCategoryId) ? categories.get(patternCategoryId).slug : patternCategoryId)
+ }),
+ termLabels: patternPost.wp_pattern_category.map(patternCategoryId => categories?.get(patternCategoryId) ? categories.get(patternCategoryId).label : patternCategoryId),
+ id: patternPost.id,
+ name: patternPost.slug,
+ syncStatus: patternPost.wp_pattern_sync_status || PATTERN_SYNC_TYPES.full,
+ title: patternPost.title.raw,
+ type: patternPost.type,
+ description: patternPost.excerpt.raw,
+ patternPost
+});
+const selectUserPatterns = (0,external_wp_data_namespaceObject.createSelector)((select, syncStatus, search = '') => {
+ const {
+ getEntityRecords,
+ isResolving: isResolvingSelector,
+ getUserPatternCategories
+ } = select(external_wp_coreData_namespaceObject.store);
+ const query = {
+ per_page: -1
+ };
+ const patternPosts = getEntityRecords('postType', PATTERN_TYPES.user, query);
+ const userPatternCategories = getUserPatternCategories();
+ const categories = new Map();
+ userPatternCategories.forEach(userCategory => categories.set(userCategory.id, userCategory));
+ let patterns = patternPosts ? patternPosts.map(record => convertPatternPostToItem(record, categories)) : EMPTY_PATTERN_LIST;
+ const isResolving = isResolvingSelector('getEntityRecords', ['postType', PATTERN_TYPES.user, query]);
+ if (syncStatus) {
+ patterns = patterns.filter(pattern => pattern.syncStatus === syncStatus);
+ }
+ patterns = searchItems(patterns, search, {
+ // We exit user pattern retrieval early if we aren't in the
+ // catch-all category for user created patterns, so it has
+ // to be in the category.
+ hasCategory: () => true
+ });
+ return {
+ patterns,
+ isResolving,
+ categories: userPatternCategories
+ };
+}, select => [select(external_wp_coreData_namespaceObject.store).getEntityRecords('postType', PATTERN_TYPES.user, {
+ per_page: -1
+}), select(external_wp_coreData_namespaceObject.store).isResolving('getEntityRecords', ['postType', PATTERN_TYPES.user, {
+ per_page: -1
+}]), select(external_wp_coreData_namespaceObject.store).getUserPatternCategories()]);
+const usePatterns = (postType, categoryId, {
+ search = '',
+ syncStatus
+} = {}) => {
+ return (0,external_wp_data_namespaceObject.useSelect)(select => {
+ if (postType === TEMPLATE_PART_POST_TYPE) {
+ return selectTemplatePartsAsPatterns(select, categoryId, search);
+ } else if (postType === PATTERN_TYPES.user && !!categoryId) {
+ const appliedCategory = categoryId === 'uncategorized' ? '' : categoryId;
+ return selectPatterns(select, appliedCategory, syncStatus, search);
+ } else if (postType === PATTERN_TYPES.user) {
+ return selectUserPatterns(select, syncStatus, search);
+ }
+ return {
+ patterns: EMPTY_PATTERN_LIST,
+ isResolving: false
+ };
+ }, [categoryId, postType, search, syncStatus]);
+};
+/* harmony default export */ const use_patterns = (usePatterns);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/symbol.js
+/**
+ * WordPress dependencies
+ */
+
+
+const symbol_symbol = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
+ })
+});
+/* harmony default export */ const library_symbol = (symbol_symbol);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/upload.js
+/**
+ * WordPress dependencies
+ */
+
+
+const upload = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"
+ })
+});
+/* harmony default export */ const library_upload = (upload);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/add-new-pattern/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
@@ -43438,336 +34177,207 @@ const external_wp_reusableBlocks_namespaceObject = window["wp"]["reusableBlocks"
+
const {
- useHistory: dataviews_pattern_actions_useHistory
-} = unlock(external_wp_router_namespaceObject.privateApis);
+ useHistory: add_new_pattern_useHistory
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+const {
+ CreatePatternModal,
+ useAddPatternCategory
+} = lock_unlock_unlock(external_wp_patterns_namespaceObject.privateApis);
const {
- CreatePatternModalContents,
- useDuplicatePatternProps
-} = unlock(external_wp_patterns_namespaceObject.privateApis);
-const exportJSONaction = {
- id: 'export-pattern',
- label: (0,external_wp_i18n_namespaceObject.__)('Export as JSON'),
- isEligible: item => item.type === PATTERN_TYPES.user,
- callback: ([item]) => {
- const json = {
- __file: item.type,
- title: item.title || item.name,
- content: item.patternPost.content.raw,
- syncStatus: item.patternPost.wp_pattern_sync_status
+ CreateTemplatePartModal: add_new_pattern_CreateTemplatePartModal
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
+function AddNewPattern() {
+ const history = add_new_pattern_useHistory();
+ const [showPatternModal, setShowPatternModal] = (0,external_wp_element_namespaceObject.useState)(false);
+ const [showTemplatePartModal, setShowTemplatePartModal] = (0,external_wp_element_namespaceObject.useState)(false);
+ // eslint-disable-next-line @wordpress/no-unused-vars-before-return
+ const {
+ createPatternFromFile
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(external_wp_patterns_namespaceObject.store));
+ const {
+ createSuccessNotice,
+ createErrorNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ const patternUploadInputRef = (0,external_wp_element_namespaceObject.useRef)();
+ const {
+ isBlockBasedTheme,
+ addNewPatternLabel,
+ addNewTemplatePartLabel,
+ canCreatePattern,
+ canCreateTemplatePart
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getCurrentTheme,
+ getPostType,
+ canUser
+ } = select(external_wp_coreData_namespaceObject.store);
+ return {
+ isBlockBasedTheme: getCurrentTheme()?.is_block_theme,
+ addNewPatternLabel: getPostType(PATTERN_TYPES.user)?.labels?.add_new_item,
+ addNewTemplatePartLabel: getPostType(TEMPLATE_PART_POST_TYPE)?.labels?.add_new_item,
+ canCreatePattern: canUser('create', 'blocks'),
+ canCreateTemplatePart: canUser('create', 'template-parts')
};
- return (0,external_wp_blob_namespaceObject.downloadBlob)(`${paramCase(item.title || item.name)}.json`, JSON.stringify(json, null, 2), 'application/json');
+ }, []);
+ function handleCreatePattern({
+ pattern
+ }) {
+ setShowPatternModal(false);
+ history.push({
+ postId: pattern.id,
+ postType: PATTERN_TYPES.user,
+ canvas: 'edit'
+ });
}
-};
-const renameAction = {
- id: 'rename-pattern',
- label: (0,external_wp_i18n_namespaceObject.__)('Rename'),
- isEligible: item => {
- const isTemplatePart = item.type === TEMPLATE_PART_POST_TYPE;
- const isUserPattern = item.type === PATTERN_TYPES.user;
- const isCustomPattern = isUserPattern || isTemplatePart && item.isCustom;
- const hasThemeFile = isTemplatePart && item.templatePart.has_theme_file;
- return isCustomPattern && !hasThemeFile;
- },
- RenderModal: ({
- items,
- closeModal
- }) => {
- const [item] = items;
- const [title, setTitle] = (0,external_wp_element_namespaceObject.useState)(() => item.title);
- const {
- editEntityRecord,
- saveEditedEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const {
- createSuccessNotice,
- createErrorNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- async function onRename(event) {
- event.preventDefault();
- try {
- await editEntityRecord('postType', item.type, item.id, {
- title
- });
- // Update state before saving rerenders the list.
- setTitle('');
- closeModal();
- // Persist edited entity.
- await saveEditedEntityRecord('postType', item.type, item.id, {
- throwOnError: true
- });
- createSuccessNotice(item.type === TEMPLATE_PART_POST_TYPE ? (0,external_wp_i18n_namespaceObject.__)('Template part renamed.') : (0,external_wp_i18n_namespaceObject.__)('Pattern renamed.'), {
- type: 'snackbar'
- });
- } catch (error) {
- const fallbackErrorMessage = item.type === TEMPLATE_PART_POST_TYPE ? (0,external_wp_i18n_namespaceObject.__)('An error occurred while renaming the template part.') : (0,external_wp_i18n_namespaceObject.__)('An error occurred while renaming the pattern.');
- const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : fallbackErrorMessage;
- createErrorNotice(errorMessage, {
- type: 'snackbar'
- });
- }
- }
- return (0,external_React_.createElement)("form", {
- onSubmit: onRename
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "5"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Name'),
- value: title,
- onChange: setTitle,
- required: true
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- variant: "tertiary",
+ function handleCreateTemplatePart(templatePart) {
+ setShowTemplatePartModal(false);
+
+ // Navigate to the created template part editor.
+ history.push({
+ postId: templatePart.id,
+ postType: TEMPLATE_PART_POST_TYPE,
+ canvas: 'edit'
+ });
+ }
+ function handleError() {
+ setShowPatternModal(false);
+ setShowTemplatePartModal(false);
+ }
+ const controls = [];
+ if (canCreatePattern) {
+ controls.push({
+ icon: library_symbol,
+ onClick: () => setShowPatternModal(true),
+ title: addNewPatternLabel
+ });
+ }
+ if (isBlockBasedTheme && canCreateTemplatePart) {
+ controls.push({
+ icon: symbol_filled,
+ onClick: () => setShowTemplatePartModal(true),
+ title: addNewTemplatePartLabel
+ });
+ }
+ if (canCreatePattern) {
+ controls.push({
+ icon: library_upload,
onClick: () => {
- closeModal();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- variant: "primary",
- type: "submit"
- }, (0,external_wp_i18n_namespaceObject.__)('Save')))));
+ patternUploadInputRef.current.click();
+ },
+ title: (0,external_wp_i18n_namespaceObject.__)('Import pattern from JSON')
+ });
}
-};
-const canDeleteOrReset = item => {
- const isTemplatePart = item.type === TEMPLATE_PART_POST_TYPE;
- const isUserPattern = item.type === PATTERN_TYPES.user;
- return isUserPattern || isTemplatePart && item.isCustom;
-};
-const deleteAction = {
- id: 'delete-pattern',
- label: (0,external_wp_i18n_namespaceObject.__)('Delete'),
- isEligible: item => {
- const isTemplatePart = item.type === TEMPLATE_PART_POST_TYPE;
- const hasThemeFile = isTemplatePart && item.templatePart.has_theme_file;
- return canDeleteOrReset(item) && !hasThemeFile;
- },
- hideModalHeader: true,
- supportsBulk: true,
- RenderModal: ({
- items,
- closeModal,
- onPerform
- }) => {
- const {
- __experimentalDeleteReusableBlock
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_reusableBlocks_namespaceObject.store);
- const {
- createErrorNotice,
- createSuccessNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- const {
- removeTemplates
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
- const deletePattern = async () => {
- const promiseResult = await Promise.allSettled(items.map(item => {
- return __experimentalDeleteReusableBlock(item.id);
- }));
- // If all the promises were fulfilled with success.
- if (promiseResult.every(({
- status
- }) => status === 'fulfilled')) {
- let successMessage;
- if (promiseResult.length === 1) {
- successMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The posts's title. */
- (0,external_wp_i18n_namespaceObject.__)('"%s" deleted.'), items[0].title);
- } else {
- successMessage = (0,external_wp_i18n_namespaceObject.__)('The patterns were deleted.');
+ const {
+ categoryMap,
+ findOrCreateTerm
+ } = useAddPatternCategory();
+ if (controls.length === 0) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [addNewPatternLabel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
+ controls: controls,
+ icon: null,
+ toggleProps: {
+ variant: 'primary',
+ showTooltip: false,
+ __next40pxDefaultSize: true
+ },
+ text: addNewPatternLabel,
+ label: addNewPatternLabel
+ }), showPatternModal && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CreatePatternModal, {
+ onClose: () => setShowPatternModal(false),
+ onSuccess: handleCreatePattern,
+ onError: handleError
+ }), showTemplatePartModal && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(add_new_pattern_CreateTemplatePartModal, {
+ closeModal: () => setShowTemplatePartModal(false),
+ blocks: [],
+ onCreate: handleCreateTemplatePart,
+ onError: handleError
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
+ type: "file",
+ accept: ".json",
+ hidden: true,
+ ref: patternUploadInputRef,
+ onChange: async event => {
+ const file = event.target.files?.[0];
+ if (!file) {
+ return;
}
- createSuccessNotice(successMessage, {
- type: 'snackbar',
- id: 'edit-site-page-trashed'
- });
- } else {
- // If there was at lease one failure.
- let errorMessage;
- // If we were trying to delete a single pattern.
- if (promiseResult.length === 1) {
- if (promiseResult[0].reason?.message) {
- errorMessage = promiseResult[0].reason.message;
- } else {
- errorMessage = (0,external_wp_i18n_namespaceObject.__)('An error occurred while deleting the pattern.');
- }
- // If we were trying to delete multiple patterns.
- } else {
- const errorMessages = new Set();
- const failedPromises = promiseResult.filter(({
- status
- }) => status === 'rejected');
- for (const failedPromise of failedPromises) {
- if (failedPromise.reason?.message) {
- errorMessages.add(failedPromise.reason.message);
+ try {
+ const {
+ params: {
+ postType,
+ categoryId
+ }
+ } = history.getLocationWithParams();
+ let currentCategoryId;
+ // When we're not handling template parts, we should
+ // add or create the proper pattern category.
+ if (postType !== TEMPLATE_PART_POST_TYPE) {
+ const currentCategory = categoryMap.values().find(term => term.name === categoryId);
+ if (currentCategory) {
+ currentCategoryId = currentCategory.id || (await findOrCreateTerm(currentCategory.label));
}
}
- if (errorMessages.size === 0) {
- errorMessage = (0,external_wp_i18n_namespaceObject.__)('An error occurred while deleting the patterns.');
- } else if (errorMessages.size === 1) {
- errorMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: an error message */
- (0,external_wp_i18n_namespaceObject.__)('An error occurred while deleting the patterns: %s'), [...errorMessages][0]);
- } else {
- errorMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: a list of comma separated error messages */
- (0,external_wp_i18n_namespaceObject.__)('Some errors occurred while deleting the patterns: %s'), [...errorMessages].join(','));
+ const pattern = await createPatternFromFile(file, currentCategoryId ? [currentCategoryId] : undefined);
+
+ // Navigate to the All patterns category for the newly created pattern
+ // if we're not on that page already and if we're not in the `my-patterns`
+ // category.
+ if (!currentCategoryId && categoryId !== 'my-patterns') {
+ history.push({
+ postType: PATTERN_TYPES.user,
+ categoryId: PATTERN_DEFAULT_CATEGORY
+ });
}
- createErrorNotice(errorMessage, {
- type: 'snackbar'
+ createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: The imported pattern's title.
+ (0,external_wp_i18n_namespaceObject.__)('Imported "%s" from JSON.'), pattern.title.raw), {
+ type: 'snackbar',
+ id: 'import-pattern-success'
});
+ } catch (err) {
+ createErrorNotice(err.message, {
+ type: 'snackbar',
+ id: 'import-pattern-error'
+ });
+ } finally {
+ event.target.value = '';
}
}
- };
- const deleteItem = () => {
- if (items[0].type === TEMPLATE_PART_POST_TYPE) {
- removeTemplates(items);
- } else {
- deletePattern();
- }
- if (onPerform) {
- onPerform();
- }
- closeModal();
- };
- let questionMessage;
- if (items.length === 1) {
- questionMessage = (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: The page's title.
- (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to delete "%s"?'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(items[0].title || items[0].name));
- } else if (items.length > 1 && items[0].type === TEMPLATE_PART_POST_TYPE) {
- questionMessage = (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %d: The number of template parts (2 or more).
- (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to delete %d template parts?'), items.length);
- } else {
- questionMessage = (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %d: The number of patterns (2 or more).
- (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to delete %d patterns?'), items.length);
- }
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "5"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, null, questionMessage), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: closeModal
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: deleteItem
- }, (0,external_wp_i18n_namespaceObject.__)('Delete'))));
- }
-};
-const resetAction = {
- id: 'reset-action',
- label: (0,external_wp_i18n_namespaceObject.__)('Clear customizations'),
- isEligible: item => {
- const isTemplatePart = item.type === TEMPLATE_PART_POST_TYPE;
- const hasThemeFile = isTemplatePart && item.templatePart.has_theme_file;
- return canDeleteOrReset(item) && hasThemeFile;
- },
- hideModalHeader: true,
- RenderModal: ({
- items,
- closeModal
- }) => {
- const [item] = items;
- const {
- removeTemplate
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "5"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, null, (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to clear these customizations?')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: closeModal
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: () => removeTemplate(item)
- }, (0,external_wp_i18n_namespaceObject.__)('Clear'))));
- }
-};
-const duplicatePatternAction = {
- id: 'duplicate-pattern',
- label: (0,external_wp_i18n_namespaceObject._x)('Duplicate', 'action label'),
- isEligible: item => item.type !== TEMPLATE_PART_POST_TYPE,
- modalHeader: (0,external_wp_i18n_namespaceObject._x)('Duplicate pattern', 'action label'),
- RenderModal: ({
- items,
- closeModal
- }) => {
- const [item] = items;
- const {
- categoryId = PATTERN_DEFAULT_CATEGORY
- } = (0,external_wp_url_namespaceObject.getQueryArgs)(window.location.href);
- const isThemePattern = item.type === PATTERN_TYPES.theme;
- const history = dataviews_pattern_actions_useHistory();
- function onPatternSuccess({
- pattern
- }) {
- history.push({
- categoryType: PATTERN_TYPES.theme,
- categoryId,
- postType: PATTERN_TYPES.user,
- postId: pattern.id
- });
- closeModal();
- }
- const duplicatedProps = useDuplicatePatternProps({
- pattern: isThemePattern ? item : item.patternPost,
- onSuccess: onPatternSuccess
- });
- return (0,external_React_.createElement)(CreatePatternModalContents, {
- onClose: closeModal,
- confirmLabel: (0,external_wp_i18n_namespaceObject._x)('Duplicate', 'action label'),
- ...duplicatedProps
- });
- }
-};
-const duplicateTemplatePartAction = {
- id: 'duplicate-template-part',
- label: (0,external_wp_i18n_namespaceObject._x)('Duplicate', 'action label'),
- isEligible: item => item.type === TEMPLATE_PART_POST_TYPE,
- modalHeader: (0,external_wp_i18n_namespaceObject._x)('Duplicate template part', 'action label'),
- RenderModal: ({
- items,
- closeModal
- }) => {
- const [item] = items;
- const {
- createSuccessNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+function useDefaultPatternCategories() {
+ const blockPatternCategories = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ var _settings$__experimen;
const {
- categoryId = PATTERN_DEFAULT_CATEGORY
- } = (0,external_wp_url_namespaceObject.getQueryArgs)(window.location.href);
- const history = dataviews_pattern_actions_useHistory();
- async function onTemplatePartSuccess(templatePart) {
- createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: The new template part's title e.g. 'Call to action (copy)'.
- (0,external_wp_i18n_namespaceObject.__)('"%s" duplicated.'), item.title), {
- type: 'snackbar',
- id: 'edit-site-patterns-success'
- });
- history.push({
- postType: TEMPLATE_PART_POST_TYPE,
- postId: templatePart?.id,
- categoryType: TEMPLATE_PART_POST_TYPE,
- categoryId
- });
- closeModal();
- }
- return (0,external_React_.createElement)(CreateTemplatePartModalContents, {
- blocks: item.blocks,
- defaultArea: item.templatePart.area,
- defaultTitle: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Existing template part title */
- (0,external_wp_i18n_namespaceObject.__)('%s (Copy)'), item.title),
- onCreate: onTemplatePartSuccess,
- onError: closeModal,
- confirmLabel: (0,external_wp_i18n_namespaceObject._x)('Duplicate', 'action label')
- });
- }
-};
+ getSettings
+ } = lock_unlock_unlock(select(store));
+ const settings = getSettings();
+ return (_settings$__experimen = settings.__experimentalAdditionalBlockPatternCategories) !== null && _settings$__experimen !== void 0 ? _settings$__experimen : settings.__experimentalBlockPatternCategories;
+ });
+ const restBlockPatternCategories = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getBlockPatternCategories());
+ return [...(blockPatternCategories || []), ...(restBlockPatternCategories || [])];
+}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-patterns/use-pattern-settings.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-patterns/use-theme-patterns.js
/**
* WordPress dependencies
*/
@@ -43781,36 +34391,120 @@ const duplicateTemplatePartAction = {
-function usePatternSettings() {
- var _storedSettings$__exp;
- const storedSettings = (0,external_wp_data_namespaceObject.useSelect)(select => {
+
+function useThemePatterns() {
+ const blockPatterns = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ var _getSettings$__experi;
const {
getSettings
- } = unlock(select(store_store));
- return getSettings();
- }, []);
- const settingsBlockPatterns = (_storedSettings$__exp = storedSettings.__experimentalAdditionalBlockPatterns) !== null && _storedSettings$__exp !== void 0 ? _storedSettings$__exp :
- // WP 6.0
- storedSettings.__experimentalBlockPatterns; // WP 5.9
+ } = lock_unlock_unlock(select(store));
+ return (_getSettings$__experi = getSettings().__experimentalAdditionalBlockPatterns) !== null && _getSettings$__experi !== void 0 ? _getSettings$__experi : getSettings().__experimentalBlockPatterns;
+ });
+ const restBlockPatterns = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getBlockPatterns());
+ const patterns = (0,external_wp_element_namespaceObject.useMemo)(() => [...(blockPatterns || []), ...(restBlockPatterns || [])].filter(pattern => !EXCLUDED_PATTERN_SOURCES.includes(pattern.source)).filter(filterOutDuplicatesByName).filter(pattern => pattern.inserter !== false), [blockPatterns, restBlockPatterns]);
+ return patterns;
+}
- const restBlockPatterns = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getBlockPatterns(), []);
- const blockPatterns = (0,external_wp_element_namespaceObject.useMemo)(() => [...(settingsBlockPatterns || []), ...(restBlockPatterns || [])].filter(filterOutDuplicatesByName), [settingsBlockPatterns, restBlockPatterns]);
- const settings = (0,external_wp_element_namespaceObject.useMemo)(() => {
- const {
- __experimentalAdditionalBlockPatterns,
- ...restStoredSettings
- } = storedSettings;
- return {
- ...restStoredSettings,
- __experimentalBlockPatterns: blockPatterns,
- __unstableIsPreviewMode: true
- };
- }, [storedSettings, blockPatterns]);
- return settings;
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-patterns/use-pattern-categories.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+function usePatternCategories() {
+ const defaultCategories = useDefaultPatternCategories();
+ defaultCategories.push({
+ name: TEMPLATE_PART_AREA_DEFAULT_CATEGORY,
+ label: (0,external_wp_i18n_namespaceObject.__)('Uncategorized')
+ });
+ const themePatterns = useThemePatterns();
+ const {
+ patterns: userPatterns,
+ categories: userPatternCategories
+ } = use_patterns(PATTERN_TYPES.user);
+ const patternCategories = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ const categoryMap = {};
+ const categoriesWithCounts = [];
+
+ // Create a map for easier counting of patterns in categories.
+ defaultCategories.forEach(category => {
+ if (!categoryMap[category.name]) {
+ categoryMap[category.name] = {
+ ...category,
+ count: 0
+ };
+ }
+ });
+ userPatternCategories.forEach(category => {
+ if (!categoryMap[category.name]) {
+ categoryMap[category.name] = {
+ ...category,
+ count: 0
+ };
+ }
+ });
+
+ // Update the category counts to reflect theme registered patterns.
+ themePatterns.forEach(pattern => {
+ pattern.categories?.forEach(category => {
+ if (categoryMap[category]) {
+ categoryMap[category].count += 1;
+ }
+ });
+ // If the pattern has no categories, add it to uncategorized.
+ if (!pattern.categories?.length) {
+ categoryMap.uncategorized.count += 1;
+ }
+ });
+
+ // Update the category counts to reflect user registered patterns.
+ userPatterns.forEach(pattern => {
+ pattern.categories?.forEach(category => {
+ if (categoryMap[category]) {
+ categoryMap[category].count += 1;
+ }
+ });
+ // If the pattern has no categories, add it to uncategorized.
+ if (!pattern.categories?.length) {
+ categoryMap.uncategorized.count += 1;
+ }
+ });
+
+ // Filter categories so we only have those containing patterns.
+ [...defaultCategories, ...userPatternCategories].forEach(category => {
+ if (categoryMap[category.name].count && !categoriesWithCounts.find(cat => cat.name === category.name)) {
+ categoriesWithCounts.push(categoryMap[category.name]);
+ }
+ });
+ const sortedCategories = categoriesWithCounts.sort((a, b) => a.label.localeCompare(b.label));
+ sortedCategories.unshift({
+ name: PATTERN_USER_CATEGORY,
+ label: (0,external_wp_i18n_namespaceObject.__)('My patterns'),
+ count: userPatterns.length
+ });
+ sortedCategories.unshift({
+ name: PATTERN_DEFAULT_CATEGORY,
+ label: (0,external_wp_i18n_namespaceObject.__)('All patterns'),
+ description: (0,external_wp_i18n_namespaceObject.__)('A list of all patterns from all sources.'),
+ count: themePatterns.length + userPatterns.length
+ });
+ return sortedCategories;
+ }, [defaultCategories, themePatterns, userPatternCategories, userPatterns]);
+ return {
+ patternCategories,
+ hasPatterns: !!patternCategories.length
+ };
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-patterns/rename-category-menu-item.js
-
/**
* WordPress dependencies
*/
@@ -43827,25 +34521,31 @@ function usePatternSettings() {
* Internal dependencies
*/
+
+
+
const {
RenamePatternCategoryModal
-} = unlock(external_wp_patterns_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_patterns_namespaceObject.privateApis);
function RenameCategoryMenuItem({
category,
onClose
}) {
const [isModalOpen, setIsModalOpen] = (0,external_wp_element_namespaceObject.useState)(false);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => setIsModalOpen(true)
- }, (0,external_wp_i18n_namespaceObject.__)('Rename')), isModalOpen && (0,external_React_.createElement)(rename_category_menu_item_RenameModal, {
- category: category,
- onClose: () => {
- setIsModalOpen(false);
- onClose();
- }
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => setIsModalOpen(true),
+ children: (0,external_wp_i18n_namespaceObject.__)('Rename')
+ }), isModalOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RenameModal, {
+ category: category,
+ onClose: () => {
+ setIsModalOpen(false);
+ onClose();
+ }
+ })]
+ });
}
-function rename_category_menu_item_RenameModal({
+function RenameModal({
category,
onClose
}) {
@@ -43860,7 +34560,7 @@ function rename_category_menu_item_RenameModal({
// Optimization - only use pattern categories when the modal is open.
const existingCategories = usePatternCategories();
- return (0,external_React_.createElement)(RenamePatternCategoryModal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RenamePatternCategoryModal, {
category: normalizedCategory,
existingCategories: existingCategories,
onClose: onClose,
@@ -43869,7 +34569,6 @@ function rename_category_menu_item_RenameModal({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-patterns/delete-category-menu-item.js
-
/**
* WordPress dependencies
*/
@@ -43887,9 +34586,12 @@ function rename_category_menu_item_RenameModal({
*/
+
+
+
const {
useHistory: delete_category_menu_item_useHistory
-} = unlock(external_wp_router_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
function DeleteCategoryMenuItem({
category,
onClose
@@ -43925,8 +34627,7 @@ function DeleteCategoryMenuItem({
});
onClose?.();
history.push({
- path: `/patterns`,
- categoryType: PATTERN_TYPES.theme,
+ postType: PATTERN_TYPES.user,
categoryId: PATTERN_DEFAULT_CATEGORY
});
} catch (error) {
@@ -43937,22 +34638,30 @@ function DeleteCategoryMenuItem({
});
}
};
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- isDestructive: true,
- onClick: () => setIsModalOpen(true)
- }, (0,external_wp_i18n_namespaceObject.__)('Delete')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
- isOpen: isModalOpen,
- onConfirm: onDelete,
- onCancel: () => setIsModalOpen(false),
- confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Delete'),
- className: "edit-site-patterns__delete-modal"
- }, (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: The pattern category's name.
- (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to delete the category "%s"? The patterns will not be deleted.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(category.label))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ isDestructive: true,
+ onClick: () => setIsModalOpen(true),
+ children: (0,external_wp_i18n_namespaceObject.__)('Delete')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
+ isOpen: isModalOpen,
+ onConfirm: onDelete,
+ onCancel: () => setIsModalOpen(false),
+ confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Delete'),
+ className: "edit-site-patterns__delete-modal",
+ title: (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: The pattern category's name.
+ (0,external_wp_i18n_namespaceObject.__)('Delete "%s"?'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(category.label)),
+ size: "medium",
+ __experimentalHideHeader: false,
+ children: (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: The pattern category's name.
+ (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to delete the category "%s"? The patterns will not be deleted.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(category.label))
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-patterns/header.js
-
/**
* WordPress dependencies
*/
@@ -43969,6 +34678,9 @@ function DeleteCategoryMenuItem({
+
+
+
function PatternsHeader({
categoryId,
type,
@@ -43982,46 +34694,200 @@ function PatternsHeader({
let title, description, patternCategory;
if (type === TEMPLATE_PART_POST_TYPE) {
const templatePartArea = templatePartAreas.find(area => area.area === categoryId);
- title = templatePartArea?.label;
- description = templatePartArea?.description;
- } else if (type === PATTERN_TYPES.theme) {
+ title = templatePartArea?.label || (0,external_wp_i18n_namespaceObject.__)('All Template Parts');
+ description = templatePartArea?.description || (0,external_wp_i18n_namespaceObject.__)('Includes every template part defined for any area.');
+ } else if (type === PATTERN_TYPES.user && !!categoryId) {
patternCategory = patternCategories.find(category => category.name === categoryId);
title = patternCategory?.label;
description = patternCategory?.description;
}
- if (!title) return null;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- className: "edit-site-patterns__section-header"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "space-between"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHeading, {
- as: "h2",
- level: 4,
- id: titleId
- }, title), !!patternCategory?.id && (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
- icon: more_vertical,
- label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
- toggleProps: {
- className: 'edit-site-patterns__button',
- describedBy: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: pattern category name */
- (0,external_wp_i18n_namespaceObject.__)('Action menu for %s pattern category'), title)
- }
- }, ({
- onClose
- }) => (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(RenameCategoryMenuItem, {
- category: patternCategory,
- onClose: onClose
- }), (0,external_React_.createElement)(DeleteCategoryMenuItem, {
- category: patternCategory,
- onClose: onClose
- })))), description ? (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- variant: "muted",
- as: "p",
- id: descriptionId
- }, description) : null);
+ if (!title) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ className: "edit-site-patterns__section-header",
+ spacing: 0,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "space-between",
+ className: "edit-site-patterns__title",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
+ as: "h2",
+ level: 3,
+ id: titleId,
+ weight: 500,
+ children: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ expanded: false,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AddNewPattern, {}), !!patternCategory?.id && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
+ icon: more_vertical,
+ label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
+ toggleProps: {
+ className: 'edit-site-patterns__button',
+ describedBy: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: pattern category name */
+ (0,external_wp_i18n_namespaceObject.__)('Action menu for %s pattern category'), title),
+ size: 'compact'
+ },
+ children: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RenameCategoryMenuItem, {
+ category: patternCategory,
+ onClose: onClose
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DeleteCategoryMenuItem, {
+ category: patternCategory,
+ onClose: onClose
+ })]
+ })
+ })]
+ })]
+ }), description ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ as: "p",
+ id: descriptionId,
+ className: "edit-site-patterns__sub-title",
+ children: description
+ }) : null]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plugins.js
+/**
+ * WordPress dependencies
+ */
+
+
+const plugins = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"
+ })
+});
+/* harmony default export */ const library_plugins = (plugins);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/globe.js
+/**
+ * WordPress dependencies
+ */
+
+
+const globe = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"
+ })
+});
+/* harmony default export */ const library_globe = (globe);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/comment-author-avatar.js
+/**
+ * WordPress dependencies
+ */
+
+
+const commentAuthorAvatar = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ d: "M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",
+ clipRule: "evenodd"
+ })
+});
+/* harmony default export */ const comment_author_avatar = (commentAuthorAvatar);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-templates/hooks.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+/** @typedef {'wp_template'|'wp_template_part'} TemplateType */
+
+/**
+ * @typedef {'theme'|'plugin'|'site'|'user'} AddedByType
+ *
+ * @typedef AddedByData
+ * @type {Object}
+ * @property {AddedByType} type The type of the data.
+ * @property {JSX.Element} icon The icon to display.
+ * @property {string} [imageUrl] The optional image URL to display.
+ * @property {string} [text] The text to display.
+ * @property {boolean} isCustomized Whether the template has been customized.
+ *
+ * @param {TemplateType} postType The template post type.
+ * @param {number} postId The template post id.
+ * @return {AddedByData} The added by object or null.
+ */
+function useAddedBy(postType, postId) {
+ return (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getEntityRecord,
+ getMedia,
+ getUser,
+ getEditedEntityRecord
+ } = select(external_wp_coreData_namespaceObject.store);
+ const template = getEditedEntityRecord('postType', postType, postId);
+ const originalSource = template?.original_source;
+ const authorText = template?.author_text;
+ switch (originalSource) {
+ case 'theme':
+ {
+ return {
+ type: originalSource,
+ icon: library_layout,
+ text: authorText,
+ isCustomized: template.source === TEMPLATE_ORIGINS.custom
+ };
+ }
+ case 'plugin':
+ {
+ return {
+ type: originalSource,
+ icon: library_plugins,
+ text: authorText,
+ isCustomized: template.source === TEMPLATE_ORIGINS.custom
+ };
+ }
+ case 'site':
+ {
+ const siteData = getEntityRecord('root', '__unstableBase');
+ return {
+ type: originalSource,
+ icon: library_globe,
+ imageUrl: siteData?.site_logo ? getMedia(siteData.site_logo)?.source_url : undefined,
+ text: authorText,
+ isCustomized: false
+ };
+ }
+ default:
+ {
+ const user = getUser(template.author);
+ return {
+ type: 'user',
+ icon: comment_author_avatar,
+ imageUrl: user?.avatar_urls?.[48],
+ text: authorText,
+ isCustomized: false
+ };
+ }
+ }
+ }, [postType, postId]);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-patterns/index.js
+/**
+ * External dependencies
+ */
+
/**
* WordPress dependencies
@@ -44035,6 +34901,8 @@ function PatternsHeader({
+
+
/**
* Internal dependencies
*/
@@ -44046,20 +34914,29 @@ function PatternsHeader({
+
+
+
+
const {
ExperimentalBlockEditorProvider: page_patterns_ExperimentalBlockEditorProvider,
useGlobalStyle: page_patterns_useGlobalStyle
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
-const templatePartIcons = {
- header: library_header,
- footer: library_footer,
- uncategorized: symbol_filled
-};
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+const {
+ usePostActions: page_patterns_usePostActions
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
+const {
+ useLocation: page_patterns_useLocation
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
const page_patterns_EMPTY_ARRAY = [];
const defaultConfigPerViewType = {
+ [LAYOUT_TABLE]: {
+ primaryField: 'title'
+ },
[LAYOUT_GRID]: {
mediaField: 'preview',
- primaryField: 'title'
+ primaryField: 'title',
+ badgeFields: ['sync-status']
}
};
const DEFAULT_VIEW = {
@@ -44067,7 +34944,7 @@ const DEFAULT_VIEW = {
search: '',
page: 1,
perPage: 20,
- hiddenFields: ['sync-status'],
+ hiddenFields: [],
layout: {
...defaultConfigPerViewType[LAYOUT_GRID]
},
@@ -44075,11 +34952,11 @@ const DEFAULT_VIEW = {
};
const SYNC_FILTERS = [{
value: PATTERN_SYNC_TYPES.full,
- label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'Option that shows all synchronized patterns'),
+ label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'pattern (singular)'),
description: (0,external_wp_i18n_namespaceObject.__)('Patterns that are kept in sync across the site.')
}, {
value: PATTERN_SYNC_TYPES.unsynced,
- label: (0,external_wp_i18n_namespaceObject._x)('Not synced', 'Option that shows all patterns that are not synchronized'),
+ label: (0,external_wp_i18n_namespaceObject._x)('Not synced', 'pattern (singular)'),
description: (0,external_wp_i18n_namespaceObject.__)('Patterns that can be changed freely without affecting the site.')
}];
function PreviewWrapper({
@@ -44088,125 +34965,138 @@ function PreviewWrapper({
ariaDescribedBy,
children
}) {
- if (item.type === PATTERN_TYPES.theme) {
- return children;
- }
- return (0,external_React_.createElement)("button", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("button", {
className: "page-patterns-preview-field__button",
type: "button",
- onClick: onClick,
+ onClick: item.type !== PATTERN_TYPES.theme ? onClick : undefined,
"aria-label": item.title,
- "aria-describedby": ariaDescribedBy
- }, children);
+ "aria-describedby": ariaDescribedBy,
+ "aria-disabled": item.type === PATTERN_TYPES.theme,
+ children: children
+ });
}
function Preview({
item,
- categoryId,
viewType
}) {
const descriptionId = (0,external_wp_element_namespaceObject.useId)();
const isUserPattern = item.type === PATTERN_TYPES.user;
- const isNonUserPattern = item.type === PATTERN_TYPES.theme;
const isTemplatePart = item.type === TEMPLATE_PART_POST_TYPE;
const isEmpty = !item.blocks?.length;
- // Only custom patterns or custom template parts can be renamed or deleted.
- const isCustomPattern = isUserPattern || isTemplatePart && item.isCustom;
- const ariaDescriptions = [];
- if (isCustomPattern) {
- // User patterns don't have descriptions, but can be edited and deleted, so include some help text.
- ariaDescriptions.push((0,external_wp_i18n_namespaceObject.__)('Press Enter to edit, or Delete to delete the pattern.'));
- } else if (item.description) {
- ariaDescriptions.push(item.description);
- }
- if (isNonUserPattern) {
- ariaDescriptions.push((0,external_wp_i18n_namespaceObject.__)('Theme & plugin patterns cannot be edited.'));
- }
const [backgroundColor] = page_patterns_useGlobalStyle('color.background');
const {
onClick
} = useLink({
postType: item.type,
postId: isUserPattern ? item.id : item.name,
- categoryId,
- categoryType: isTemplatePart ? item.type : PATTERN_TYPES.theme
+ canvas: 'edit'
});
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: `page-patterns-preview-field is-viewtype-${viewType}`,
style: {
backgroundColor
- }
- }, (0,external_React_.createElement)(PreviewWrapper, {
- item: item,
- onClick: onClick,
- ariaDescribedBy: ariaDescriptions.length ? ariaDescriptions.map((_, index) => `${descriptionId}-${index}`).join(' ') : undefined
- }, isEmpty && isTemplatePart && (0,external_wp_i18n_namespaceObject.__)('Empty template part'), isEmpty && !isTemplatePart && (0,external_wp_i18n_namespaceObject.__)('Empty pattern'), !isEmpty && (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockPreview, {
- blocks: item.blocks
- }))), ariaDescriptions.map((ariaDescription, index) => (0,external_React_.createElement)("div", {
- key: index,
- hidden: true,
- id: `${descriptionId}-${index}`
- }, ariaDescription)));
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(PreviewWrapper, {
+ item: item,
+ onClick: onClick,
+ ariaDescribedBy: item.description ? descriptionId : undefined,
+ children: [isEmpty && isTemplatePart && (0,external_wp_i18n_namespaceObject.__)('Empty template part'), isEmpty && !isTemplatePart && (0,external_wp_i18n_namespaceObject.__)('Empty pattern'), !isEmpty && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Async, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockPreview, {
+ blocks: item.blocks,
+ viewportWidth: item.viewportWidth
+ })
+ })]
+ }), item.description && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ hidden: true,
+ id: descriptionId,
+ children: item.description
+ })]
+ });
}
-function Title({
+function Author({
item,
- categoryId
+ viewType
+}) {
+ const [isImageLoaded, setIsImageLoaded] = (0,external_wp_element_namespaceObject.useState)(false);
+ const {
+ text,
+ icon,
+ imageUrl
+ } = useAddedBy(item.type, item.id);
+ const withIcon = viewType !== LAYOUT_LIST;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ alignment: "left",
+ spacing: 1,
+ children: [withIcon && imageUrl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('page-templates-author-field__avatar', {
+ 'is-loaded': isImageLoaded
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ onLoad: () => setIsImageLoaded(true),
+ alt: "",
+ src: imageUrl
+ })
+ }), withIcon && !imageUrl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "page-templates-author-field__icon",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: icon
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "page-templates-author-field__name",
+ children: text
+ })]
+ });
+}
+function Title({
+ item
}) {
const isUserPattern = item.type === PATTERN_TYPES.user;
- const isNonUserPattern = item.type === PATTERN_TYPES.theme;
- const isTemplatePart = item.type === TEMPLATE_PART_POST_TYPE;
- let itemIcon;
const {
onClick
} = useLink({
postType: item.type,
postId: isUserPattern ? item.id : item.name,
- categoryId,
- categoryType: isTemplatePart ? item.type : PATTERN_TYPES.theme
+ canvas: 'edit'
});
- if (!isUserPattern && templatePartIcons[categoryId]) {
- itemIcon = templatePartIcons[categoryId];
- } else {
- itemIcon = item.syncStatus === PATTERN_SYNC_TYPES.full ? library_symbol : undefined;
- }
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
alignment: "center",
justify: "flex-start",
- spacing: 2
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- as: "div",
- gap: 0,
- justify: "left",
- className: "edit-site-patterns__pattern-title"
- }, item.type === PATTERN_TYPES.theme ? item.title : (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "link",
- onClick: onClick
- // Required for the grid's roving tab index system.
- // See https://github.com/WordPress/gutenberg/pull/51898#discussion_r1243399243.
- ,
- tabIndex: "-1"
- }, item.title || item.name)), itemIcon && !isNonUserPattern && (0,external_React_.createElement)(external_wp_components_namespaceObject.Tooltip, {
- placement: "top",
- text: (0,external_wp_i18n_namespaceObject.__)('Editing this pattern will also update anywhere it is used')
- }, (0,external_React_.createElement)(build_module_icon, {
- className: "edit-site-patterns__pattern-icon",
- icon: itemIcon
- })), item.type === PATTERN_TYPES.theme && (0,external_React_.createElement)(external_wp_components_namespaceObject.Tooltip, {
- placement: "top",
- text: (0,external_wp_i18n_namespaceObject.__)('This pattern cannot be edited.')
- }, (0,external_React_.createElement)(build_module_icon, {
- className: "edit-site-patterns__pattern-lock-icon",
- icon: lock_small,
- size: 24
- })));
+ spacing: 2,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Flex, {
+ as: "div",
+ gap: 0,
+ justify: "left",
+ className: "edit-site-patterns__pattern-title",
+ children: item.type === PATTERN_TYPES.theme ? item.title : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "link",
+ onClick: onClick
+ // Required for the grid's roving tab index system.
+ // See https://github.com/WordPress/gutenberg/pull/51898#discussion_r1243399243.
+ ,
+ tabIndex: "-1",
+ children: item.title || item.name
+ })
+ }), item.type === PATTERN_TYPES.theme && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Tooltip, {
+ placement: "top",
+ text: (0,external_wp_i18n_namespaceObject.__)('This pattern cannot be edited.'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ className: "edit-site-patterns__pattern-lock-icon",
+ icon: lock_small,
+ size: 24
+ })
+ })]
+ });
}
function DataviewsPatterns() {
const {
- categoryType,
- categoryId = PATTERN_DEFAULT_CATEGORY
- } = (0,external_wp_url_namespaceObject.getQueryArgs)(window.location.href);
- const type = categoryType || PATTERN_TYPES.theme;
+ params: {
+ postType,
+ categoryId: categoryIdFromURL
+ }
+ } = page_patterns_useLocation();
+ const type = postType || PATTERN_TYPES.user;
+ const categoryId = categoryIdFromURL || PATTERN_DEFAULT_CATEGORY;
const [view, setView] = (0,external_wp_element_namespaceObject.useState)(DEFAULT_VIEW);
- const isUncategorizedThemePatterns = type === PATTERN_TYPES.theme && categoryId === 'uncategorized';
const previousCategoryId = (0,external_wp_compose_namespaceObject.usePrevious)(categoryId);
const viewSyncStatus = view.filters?.find(({
field
@@ -44214,63 +35104,101 @@ function DataviewsPatterns() {
const {
patterns,
isResolving
- } = use_patterns(type, isUncategorizedThemePatterns ? '' : categoryId, {
+ } = use_patterns(type, categoryId, {
search: view.search,
syncStatus: viewSyncStatus
});
+ const {
+ records
+ } = (0,external_wp_coreData_namespaceObject.useEntityRecords)('postType', TEMPLATE_PART_POST_TYPE, {
+ per_page: -1
+ });
+ const authors = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ if (!records) {
+ return page_patterns_EMPTY_ARRAY;
+ }
+ const authorsSet = new Set();
+ records.forEach(template => {
+ authorsSet.add(template.author_text);
+ });
+ return Array.from(authorsSet).map(author => ({
+ value: author,
+ label: author
+ }));
+ }, [records]);
const fields = (0,external_wp_element_namespaceObject.useMemo)(() => {
const _fields = [{
header: (0,external_wp_i18n_namespaceObject.__)('Preview'),
id: 'preview',
render: ({
item
- }) => (0,external_React_.createElement)(Preview, {
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Preview, {
item: item,
- categoryId: categoryId,
viewType: view.type
}),
enableSorting: false,
- enableHiding: false
+ enableHiding: false,
+ width: '1%'
}, {
header: (0,external_wp_i18n_namespaceObject.__)('Title'),
id: 'title',
- getValue: ({
- item
- }) => item.title,
render: ({
item
- }) => (0,external_React_.createElement)(Title, {
- item: item,
- categoryId: categoryId
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Title, {
+ item: item
}),
enableHiding: false
}];
- if (type === PATTERN_TYPES.theme) {
+ if (type === PATTERN_TYPES.user) {
_fields.push({
- header: (0,external_wp_i18n_namespaceObject.__)('Sync Status'),
+ header: (0,external_wp_i18n_namespaceObject.__)('Sync status'),
id: 'sync-status',
render: ({
item
}) => {
// User patterns can have their sync statuses checked directly.
// Non-user patterns are all unsynced for the time being.
- return SYNC_FILTERS.find(({
- value
- }) => value === item.syncStatus)?.label || SYNC_FILTERS.find(({
- value
- }) => value === PATTERN_SYNC_TYPES.unsynced).label;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: `edit-site-patterns__field-sync-status-${item.syncStatus}`,
+ children: (SYNC_FILTERS.find(({
+ value
+ }) => value === item.syncStatus) || SYNC_FILTERS.find(({
+ value
+ }) => value === PATTERN_SYNC_TYPES.unsynced)).label
+ });
},
- type: ENUMERATION_TYPE,
elements: SYNC_FILTERS,
filterBy: {
- operators: [OPERATOR_IN],
+ operators: [OPERATOR_IS],
isPrimary: true
},
enableSorting: false
});
+ } else if (type === TEMPLATE_PART_POST_TYPE) {
+ _fields.push({
+ header: (0,external_wp_i18n_namespaceObject.__)('Author'),
+ id: 'author',
+ getValue: ({
+ item
+ }) => item.templatePart.author_text,
+ render: ({
+ item
+ }) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Author, {
+ viewType: view.type,
+ item: item
+ });
+ },
+ elements: authors,
+ filterBy: {
+ isPrimary: true
+ },
+ width: '1%'
+ });
}
return _fields;
- }, [view.type, categoryId, type]);
+ }, [view.type, type, authors]);
+
// Reset the page number when the category changes.
(0,external_wp_element_namespaceObject.useEffect)(() => {
if (previousCategoryId !== categoryId) {
@@ -44281,32 +35209,32 @@ function DataviewsPatterns() {
data,
paginationInfo
} = (0,external_wp_element_namespaceObject.useMemo)(() => {
- if (!patterns) {
- return {
- data: page_patterns_EMPTY_ARRAY,
- paginationInfo: {
- totalItems: 0,
- totalPages: 0
- }
- };
+ // Search is managed server-side as well as filters for patterns.
+ // However, the author filter in template parts is done client-side.
+ const viewWithoutFilters = {
+ ...view
+ };
+ delete viewWithoutFilters.search;
+ if (type !== TEMPLATE_PART_POST_TYPE) {
+ viewWithoutFilters.filters = [];
}
- let filteredData = [...patterns];
- // Handle sorting.
- if (view.sort) {
- filteredData = sortByTextFields({
- data: filteredData,
- view,
- fields,
- textFields: ['title', 'author']
- });
+ return filterSortAndPaginate(patterns, viewWithoutFilters, fields);
+ }, [patterns, view, fields, type]);
+ const templatePartActions = page_patterns_usePostActions({
+ postType: TEMPLATE_PART_POST_TYPE,
+ context: 'list'
+ });
+ const patternActions = page_patterns_usePostActions({
+ postType: PATTERN_TYPES.user,
+ context: 'list'
+ });
+ const editAction = useEditPostAction();
+ const actions = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ if (type === TEMPLATE_PART_POST_TYPE) {
+ return [editAction, ...templatePartActions].filter(Boolean);
}
- // Handle pagination.
- return getPaginationResults({
- data: filteredData,
- view
- });
- }, [patterns, view, fields]);
- const actions = (0,external_wp_element_namespaceObject.useMemo)(() => [renameAction, duplicatePatternAction, duplicateTemplatePartAction, exportJSONaction, resetAction, deleteAction], []);
+ return [editAction, ...patternActions].filter(Boolean);
+ }, [editAction, type, templatePartActions, patternActions]);
const onChangeView = (0,external_wp_element_namespaceObject.useCallback)(newView => {
if (newView.type !== view.type) {
newView = {
@@ -44323,39 +35251,211 @@ function DataviewsPatterns() {
// Wrap everything in a block editor provider.
// This ensures 'styles' that are needed for the previews are synced
// from the site editor store to the block editor store.
- // TODO: check if I add the provider in every preview like in templates...
- return (0,external_React_.createElement)(page_patterns_ExperimentalBlockEditorProvider, {
- settings: settings
- }, (0,external_React_.createElement)(Page, {
- title: (0,external_wp_i18n_namespaceObject.__)('Patterns content'),
- className: "edit-site-page-patterns-dataviews",
- hideTitleFromUI: true
- }, (0,external_React_.createElement)(PatternsHeader, {
- categoryId: categoryId,
- type: type,
- titleId: `${id}-title`,
- descriptionId: `${id}-description`
- }), (0,external_React_.createElement)(DataViews, {
- paginationInfo: paginationInfo,
- fields: fields,
- actions: actions,
- data: data || page_patterns_EMPTY_ARRAY,
- getItemId: item => item.name,
- isLoading: isResolving,
- view: view,
- onChangeView: onChangeView,
- deferredRendering: true,
- supportedLayouts: [LAYOUT_GRID]
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(page_patterns_ExperimentalBlockEditorProvider, {
+ settings: settings,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Page, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Patterns content'),
+ className: "edit-site-page-patterns-dataviews",
+ hideTitleFromUI: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternsHeader, {
+ categoryId: categoryId,
+ type: type,
+ titleId: `${id}-title`,
+ descriptionId: `${id}-description`
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DataViews, {
+ paginationInfo: paginationInfo,
+ fields: fields,
+ actions: actions,
+ data: data || page_patterns_EMPTY_ARRAY,
+ getItemId: item => item.name,
+ isLoading: isResolving,
+ view: view,
+ onChangeView: onChangeView,
+ supportedLayouts: [LAYOUT_GRID, LAYOUT_TABLE]
+ })]
+ })
+ });
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-templates-template-parts/actions.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/home.js
+/**
+ * WordPress dependencies
+ */
+
+const home = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"
+ })
+});
+/* harmony default export */ const library_home = (home);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/verse.js
/**
* WordPress dependencies
*/
+const verse = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
+/* harmony default export */ const library_verse = (verse);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pin.js
+/**
+ * WordPress dependencies
+ */
+
+
+const pin = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"
+ })
+});
+/* harmony default export */ const library_pin = (pin);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/archive.js
+/**
+ * WordPress dependencies
+ */
+
+
+const archive = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"
+ })
+});
+/* harmony default export */ const library_archive = (archive);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/not-found.js
+/**
+ * WordPress dependencies
+ */
+
+
+const notFound = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v10zm-11-7.6h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-.9 3.5H6.3l1.2-1.7v1.7zm5.6-3.2c-.4-.2-.8-.4-1.2-.4-.5 0-.9.1-1.2.4-.4.2-.6.6-.8 1-.2.4-.3.9-.3 1.5s.1 1.1.3 1.6c.2.4.5.8.8 1 .4.2.8.4 1.2.4.5 0 .9-.1 1.2-.4.4-.2.6-.6.8-1 .2-.4.3-1 .3-1.6 0-.6-.1-1.1-.3-1.5-.1-.5-.4-.8-.8-1zm0 3.6c-.1.3-.3.5-.5.7-.2.1-.4.2-.7.2-.3 0-.5-.1-.7-.2-.2-.1-.4-.4-.5-.7-.1-.3-.2-.7-.2-1.2 0-.7.1-1.2.4-1.5.3-.3.6-.5 1-.5s.7.2 1 .5c.3.3.4.8.4 1.5-.1.5-.1.9-.2 1.2zm5-3.9h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-1 3.5H16l1.2-1.7v1.7z"
+ })
+});
+/* harmony default export */ const not_found = (notFound);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/list.js
+/**
+ * WordPress dependencies
+ */
+
+
+const list = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const library_list = (list);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/block-meta.js
+/**
+ * WordPress dependencies
+ */
+
+
+const blockMeta = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ d: "M8.95 11.25H4v1.5h4.95v4.5H13V18c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75h-2.55v-7.5H13V9c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75H8.95v4.5ZM14.5 15v3c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5v-3c0-.3-.2-.5-.5-.5h-3c-.3 0-.5.2-.5.5Zm0-6V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5Z",
+ clipRule: "evenodd"
+ })
+});
+/* harmony default export */ const block_meta = (blockMeta);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/calendar.js
+/**
+ * WordPress dependencies
+ */
+
+
+const calendar = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"
+ })
+});
+/* harmony default export */ const library_calendar = (calendar);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/tag.js
+/**
+ * WordPress dependencies
+ */
+
+
+const tag = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"
+ })
+});
+/* harmony default export */ const library_tag = (tag);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/media.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+const media = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m7 6.5 4 2.5-4 2.5z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"
+ })]
+});
+/* harmony default export */ const library_media = (media);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post.js
+/**
+ * WordPress dependencies
+ */
+
+
+const post_post = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"
+ })
+});
+/* harmony default export */ const library_post = (post_post);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/add-new-template/utils.js
+/**
+ * WordPress dependencies
+ */
+
@@ -44367,175 +35467,1249 @@ function DataviewsPatterns() {
* Internal dependencies
*/
+const EMPTY_OBJECT = {};
+
+/**
+ * @typedef IHasNameAndId
+ * @property {string|number} id The entity's id.
+ * @property {string} name The entity's name.
+ */
+const utils_getValueFromObjectPath = (object, path) => {
+ let value = object;
+ path.split('.').forEach(fieldName => {
+ value = value?.[fieldName];
+ });
+ return value;
+};
+/**
+ * Helper util to map records to add a `name` prop from a
+ * provided path, in order to handle all entities in the same
+ * fashion(implementing`IHasNameAndId` interface).
+ *
+ * @param {Object[]} entities The array of entities.
+ * @param {string} path The path to map a `name` property from the entity.
+ * @return {IHasNameAndId[]} An array of enitities that now implement the `IHasNameAndId` interface.
+ */
+const mapToIHasNameAndId = (entities, path) => {
+ return (entities || []).map(entity => ({
+ ...entity,
+ name: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(utils_getValueFromObjectPath(entity, path))
+ }));
+};
+/**
+ * @typedef {Object} EntitiesInfo
+ * @property {boolean} hasEntities If an entity has available records(posts, terms, etc..).
+ * @property {number[]} existingEntitiesIds An array of the existing entities ids.
+ */
-function useResetTemplateAction() {
- const {
- revertTemplate
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const {
- saveEditedEntityRecord
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const {
- createSuccessNotice,
- createErrorNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- return (0,external_wp_element_namespaceObject.useMemo)(() => ({
- id: 'reset-template',
- label: (0,external_wp_i18n_namespaceObject.__)('Reset'),
- isPrimary: true,
- icon: library_backup,
- isEligible: isTemplateRevertable,
- supportsBulk: true,
- async callback(templates) {
- try {
- for (const template of templates) {
- await revertTemplate(template, {
- allowUndo: false
- });
- await saveEditedEntityRecord('postType', template.type, template.id);
- }
- createSuccessNotice(templates.length > 1 ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The number of items. */
- (0,external_wp_i18n_namespaceObject.__)('%s items reverted.'), templates.length) : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The template/part's name. */
- (0,external_wp_i18n_namespaceObject.__)('"%s" reverted.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(templates[0].title.rendered)), {
- type: 'snackbar',
- id: 'edit-site-template-reverted'
- });
- } catch (error) {
- let fallbackErrorMessage;
- if (templates[0].type === constants_TEMPLATE_POST_TYPE) {
- fallbackErrorMessage = templates.length === 1 ? (0,external_wp_i18n_namespaceObject.__)('An error occurred while reverting the template.') : (0,external_wp_i18n_namespaceObject.__)('An error occurred while reverting the templates.');
- } else {
- fallbackErrorMessage = templates.length === 1 ? (0,external_wp_i18n_namespaceObject.__)('An error occurred while reverting the template part.') : (0,external_wp_i18n_namespaceObject.__)('An error occurred while reverting the template parts.');
- }
- const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : fallbackErrorMessage;
- createErrorNotice(errorMessage, {
- type: 'snackbar'
- });
- }
+const useExistingTemplates = () => {
+ return (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getEntityRecords('postType', TEMPLATE_POST_TYPE, {
+ per_page: -1
+ }), []);
+};
+const useDefaultTemplateTypes = () => {
+ return (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_editor_namespaceObject.store).__experimentalGetDefaultTemplateTypes(), []);
+};
+const usePublicPostTypes = () => {
+ const postTypes = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getPostTypes({
+ per_page: -1
+ }), []);
+ return (0,external_wp_element_namespaceObject.useMemo)(() => {
+ const excludedPostTypes = ['attachment'];
+ return postTypes?.filter(({
+ viewable,
+ slug
+ }) => viewable && !excludedPostTypes.includes(slug));
+ }, [postTypes]);
+};
+const usePublicTaxonomies = () => {
+ const taxonomies = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getTaxonomies({
+ per_page: -1
+ }), []);
+ return (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return taxonomies?.filter(({
+ visibility
+ }) => visibility?.publicly_queryable);
+ }, [taxonomies]);
+};
+function usePostTypeArchiveMenuItems() {
+ const publicPostTypes = usePublicPostTypes();
+ const postTypesWithArchives = (0,external_wp_element_namespaceObject.useMemo)(() => publicPostTypes?.filter(postType => postType.has_archive), [publicPostTypes]);
+ const existingTemplates = useExistingTemplates();
+ // We need to keep track of naming conflicts. If a conflict
+ // occurs, we need to add slug.
+ const postTypeLabels = (0,external_wp_element_namespaceObject.useMemo)(() => publicPostTypes?.reduce((accumulator, {
+ labels
+ }) => {
+ const singularName = labels.singular_name.toLowerCase();
+ accumulator[singularName] = (accumulator[singularName] || 0) + 1;
+ return accumulator;
+ }, {}), [publicPostTypes]);
+ const needsUniqueIdentifier = (0,external_wp_element_namespaceObject.useCallback)(({
+ labels,
+ slug
+ }) => {
+ const singularName = labels.singular_name.toLowerCase();
+ return postTypeLabels[singularName] > 1 && singularName !== slug;
+ }, [postTypeLabels]);
+ return (0,external_wp_element_namespaceObject.useMemo)(() => postTypesWithArchives?.filter(postType => !(existingTemplates || []).some(existingTemplate => existingTemplate.slug === 'archive-' + postType.slug)).map(postType => {
+ let title;
+ if (needsUniqueIdentifier(postType)) {
+ title = (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %1s: Name of the post type e.g: "Post"; %2s: Slug of the post type e.g: "book".
+ (0,external_wp_i18n_namespaceObject.__)('Archive: %1$s (%2$s)'), postType.labels.singular_name, postType.slug);
+ } else {
+ title = (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Name of the post type e.g: "Post".
+ (0,external_wp_i18n_namespaceObject.__)('Archive: %s'), postType.labels.singular_name);
}
- }), [createErrorNotice, createSuccessNotice, revertTemplate, saveEditedEntityRecord]);
+ return {
+ slug: 'archive-' + postType.slug,
+ description: (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Name of the post type e.g: "Post".
+ (0,external_wp_i18n_namespaceObject.__)('Displays an archive with the latest posts of type: %s.'), postType.labels.singular_name),
+ title,
+ // `icon` is the `menu_icon` property of a post type. We
+ // only handle `dashicons` for now, even if the `menu_icon`
+ // also supports urls and svg as values.
+ icon: postType.icon?.startsWith('dashicons-') ? postType.icon.slice(10) : library_archive,
+ templatePrefix: 'archive'
+ };
+ }) || [], [postTypesWithArchives, existingTemplates, needsUniqueIdentifier]);
}
-const deleteTemplateAction = {
- id: 'delete-template',
- label: (0,external_wp_i18n_namespaceObject.__)('Delete'),
- isPrimary: true,
- icon: library_trash,
- isEligible: isTemplateRemovable,
- supportsBulk: true,
- hideModalHeader: true,
- RenderModal: ({
- items: templates,
- closeModal,
- onPerform
+const usePostTypeMenuItems = onClickMenuItem => {
+ const publicPostTypes = usePublicPostTypes();
+ const existingTemplates = useExistingTemplates();
+ const defaultTemplateTypes = useDefaultTemplateTypes();
+ // We need to keep track of naming conflicts. If a conflict
+ // occurs, we need to add slug.
+ const templateLabels = (0,external_wp_element_namespaceObject.useMemo)(() => publicPostTypes?.reduce((accumulator, {
+ labels
}) => {
+ const templateName = (labels.template_name || labels.singular_name).toLowerCase();
+ accumulator[templateName] = (accumulator[templateName] || 0) + 1;
+ return accumulator;
+ }, {}), [publicPostTypes]);
+ const needsUniqueIdentifier = (0,external_wp_element_namespaceObject.useCallback)(({
+ labels,
+ slug
+ }) => {
+ const templateName = (labels.template_name || labels.singular_name).toLowerCase();
+ return templateLabels[templateName] > 1 && templateName !== slug;
+ }, [templateLabels]);
+
+ // `page`is a special case in template hierarchy.
+ const templatePrefixes = (0,external_wp_element_namespaceObject.useMemo)(() => publicPostTypes?.reduce((accumulator, {
+ slug
+ }) => {
+ let suffix = slug;
+ if (slug !== 'page') {
+ suffix = `single-${suffix}`;
+ }
+ accumulator[slug] = suffix;
+ return accumulator;
+ }, {}), [publicPostTypes]);
+ const postTypesInfo = useEntitiesInfo('postType', templatePrefixes);
+ const existingTemplateSlugs = (existingTemplates || []).map(({
+ slug
+ }) => slug);
+ const menuItems = (publicPostTypes || []).reduce((accumulator, postType) => {
const {
- removeTemplates
- } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "5"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, null, templates.length > 1 ? (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %d: number of items to delete.
- (0,external_wp_i18n_namespaceObject._n)('Delete %d item?', 'Delete %d items?', templates.length), templates.length) : (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: The template or template part's titles
- (0,external_wp_i18n_namespaceObject.__)('Delete "%s"?'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(templates?.[0]?.title?.rendered))), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: closeModal
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: async () => {
- await removeTemplates(templates, {
- allowUndo: false
+ slug,
+ labels,
+ icon
+ } = postType;
+ // We need to check if the general template is part of the
+ // defaultTemplateTypes. If it is, just use that info and
+ // augment it with the specific template functionality.
+ const generalTemplateSlug = templatePrefixes[slug];
+ const defaultTemplateType = defaultTemplateTypes?.find(({
+ slug: _slug
+ }) => _slug === generalTemplateSlug);
+ const hasGeneralTemplate = existingTemplateSlugs?.includes(generalTemplateSlug);
+ const _needsUniqueIdentifier = needsUniqueIdentifier(postType);
+ let menuItemTitle = labels.template_name || (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Name of the post type e.g: "Post".
+ (0,external_wp_i18n_namespaceObject.__)('Single item: %s'), labels.singular_name);
+ if (_needsUniqueIdentifier) {
+ menuItemTitle = labels.template_name ? (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %1s: Name of the template e.g: "Single Item: Post"; %2s: Slug of the post type e.g: "book".
+ (0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), labels.template_name, slug) : (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %1s: Name of the post type e.g: "Post"; %2s: Slug of the post type e.g: "book".
+ (0,external_wp_i18n_namespaceObject.__)('Single item: %1$s (%2$s)'), labels.singular_name, slug);
+ }
+ const menuItem = defaultTemplateType ? {
+ ...defaultTemplateType,
+ templatePrefix: templatePrefixes[slug]
+ } : {
+ slug: generalTemplateSlug,
+ title: menuItemTitle,
+ description: (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Name of the post type e.g: "Post".
+ (0,external_wp_i18n_namespaceObject.__)('Displays a single item: %s.'), labels.singular_name),
+ // `icon` is the `menu_icon` property of a post type. We
+ // only handle `dashicons` for now, even if the `menu_icon`
+ // also supports urls and svg as values.
+ icon: icon?.startsWith('dashicons-') ? icon.slice(10) : library_post,
+ templatePrefix: templatePrefixes[slug]
+ };
+ const hasEntities = postTypesInfo?.[slug]?.hasEntities;
+ // We have a different template creation flow only if they have entities.
+ if (hasEntities) {
+ menuItem.onClick = template => {
+ onClickMenuItem({
+ type: 'postType',
+ slug,
+ config: {
+ recordNamePath: 'title.rendered',
+ queryArgs: ({
+ search
+ }) => {
+ return {
+ _fields: 'id,title,slug,link',
+ orderBy: search ? 'relevance' : 'modified',
+ exclude: postTypesInfo[slug].existingEntitiesIds
+ };
+ },
+ getSpecificTemplate: suggestion => {
+ const templateSlug = `${templatePrefixes[slug]}-${suggestion.slug}`;
+ return {
+ title: templateSlug,
+ slug: templateSlug,
+ templatePrefix: templatePrefixes[slug]
+ };
+ }
+ },
+ labels,
+ hasGeneralTemplate,
+ template
});
- if (onPerform) {
- onPerform();
- }
- closeModal();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Delete'))));
- }
+ };
+ }
+ // We don't need to add the menu item if there are no
+ // entities and the general template exists.
+ if (!hasGeneralTemplate || hasEntities) {
+ accumulator.push(menuItem);
+ }
+ return accumulator;
+ }, []);
+ // Split menu items into two groups: one for the default post types
+ // and one for the rest.
+ const postTypesMenuItems = (0,external_wp_element_namespaceObject.useMemo)(() => menuItems.reduce((accumulator, postType) => {
+ const {
+ slug
+ } = postType;
+ let key = 'postTypesMenuItems';
+ if (slug === 'page') {
+ key = 'defaultPostTypesMenuItems';
+ }
+ accumulator[key].push(postType);
+ return accumulator;
+ }, {
+ defaultPostTypesMenuItems: [],
+ postTypesMenuItems: []
+ }), [menuItems]);
+ return postTypesMenuItems;
};
-const renameTemplateAction = {
- id: 'rename-template',
- label: (0,external_wp_i18n_namespaceObject.__)('Rename'),
- isEligible: template => {
- // We can only remove templates or template parts that can be removed.
- // Additionally in the case of templates, we can only remove custom templates.
- if (!isTemplateRemovable(template) || template.type === constants_TEMPLATE_POST_TYPE && !template.is_custom) {
- return false;
+const useTaxonomiesMenuItems = onClickMenuItem => {
+ const publicTaxonomies = usePublicTaxonomies();
+ const existingTemplates = useExistingTemplates();
+ const defaultTemplateTypes = useDefaultTemplateTypes();
+ // `category` and `post_tag` are special cases in template hierarchy.
+ const templatePrefixes = (0,external_wp_element_namespaceObject.useMemo)(() => publicTaxonomies?.reduce((accumulator, {
+ slug
+ }) => {
+ let suffix = slug;
+ if (!['category', 'post_tag'].includes(slug)) {
+ suffix = `taxonomy-${suffix}`;
}
- return true;
- },
- RenderModal: ({
- items: templates,
- closeModal
+ if (slug === 'post_tag') {
+ suffix = `tag`;
+ }
+ accumulator[slug] = suffix;
+ return accumulator;
+ }, {}), [publicTaxonomies]);
+ // We need to keep track of naming conflicts. If a conflict
+ // occurs, we need to add slug.
+ const taxonomyLabels = publicTaxonomies?.reduce((accumulator, {
+ labels
}) => {
- const template = templates[0];
- const title = (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(template.title.rendered);
- const [editedTitle, setEditedTitle] = (0,external_wp_element_namespaceObject.useState)(title);
- const {
- editEntityRecord,
- __experimentalSaveSpecifiedEntityEdits: saveSpecifiedEntityEdits
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const templateName = (labels.template_name || labels.singular_name).toLowerCase();
+ accumulator[templateName] = (accumulator[templateName] || 0) + 1;
+ return accumulator;
+ }, {});
+ const needsUniqueIdentifier = (labels, slug) => {
+ if (['category', 'post_tag'].includes(slug)) {
+ return false;
+ }
+ const templateName = (labels.template_name || labels.singular_name).toLowerCase();
+ return taxonomyLabels[templateName] > 1 && templateName !== slug;
+ };
+ const taxonomiesInfo = useEntitiesInfo('taxonomy', templatePrefixes);
+ const existingTemplateSlugs = (existingTemplates || []).map(({
+ slug
+ }) => slug);
+ const menuItems = (publicTaxonomies || []).reduce((accumulator, taxonomy) => {
const {
- createSuccessNotice,
- createErrorNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
- async function onTemplateRename(event) {
- event.preventDefault();
- try {
- await editEntityRecord('postType', template.type, template.id, {
- title: editedTitle
- });
- // Update state before saving rerenders the list.
- setEditedTitle('');
- closeModal();
- // Persist edited entity.
- await saveSpecifiedEntityEdits('postType', template.type, template.id, ['title'],
- // Only save title to avoid persisting other edits.
- {
- throwOnError: true
- });
- // TODO: this action will be reused in template parts list, so
- // let's keep this for a bit, even it's always a `template` now.
- createSuccessNotice(template.type === constants_TEMPLATE_POST_TYPE ? (0,external_wp_i18n_namespaceObject.__)('Template renamed.') : (0,external_wp_i18n_namespaceObject.__)('Template part renamed.'), {
- type: 'snackbar'
- });
- } catch (error) {
- const fallbackErrorMessage = template.type === constants_TEMPLATE_POST_TYPE ? (0,external_wp_i18n_namespaceObject.__)('An error occurred while renaming the template.') : (0,external_wp_i18n_namespaceObject.__)('An error occurred while renaming the template part.');
- const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : fallbackErrorMessage;
- createErrorNotice(errorMessage, {
- type: 'snackbar'
+ slug,
+ labels
+ } = taxonomy;
+ // We need to check if the general template is part of the
+ // defaultTemplateTypes. If it is, just use that info and
+ // augment it with the specific template functionality.
+ const generalTemplateSlug = templatePrefixes[slug];
+ const defaultTemplateType = defaultTemplateTypes?.find(({
+ slug: _slug
+ }) => _slug === generalTemplateSlug);
+ const hasGeneralTemplate = existingTemplateSlugs?.includes(generalTemplateSlug);
+ const _needsUniqueIdentifier = needsUniqueIdentifier(labels, slug);
+ let menuItemTitle = labels.template_name || labels.singular_name;
+ if (_needsUniqueIdentifier) {
+ menuItemTitle = labels.template_name ? (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %1s: Name of the template e.g: "Products by Category"; %2s: Slug of the taxonomy e.g: "product_cat".
+ (0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), labels.template_name, slug) : (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %1s: Name of the taxonomy e.g: "Category"; %2s: Slug of the taxonomy e.g: "product_cat".
+ (0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), labels.singular_name, slug);
+ }
+ const menuItem = defaultTemplateType ? {
+ ...defaultTemplateType,
+ templatePrefix: templatePrefixes[slug]
+ } : {
+ slug: generalTemplateSlug,
+ title: menuItemTitle,
+ description: (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Name of the taxonomy e.g: "Product Categories".
+ (0,external_wp_i18n_namespaceObject.__)('Displays taxonomy: %s.'), labels.singular_name),
+ icon: block_meta,
+ templatePrefix: templatePrefixes[slug]
+ };
+ const hasEntities = taxonomiesInfo?.[slug]?.hasEntities;
+ // We have a different template creation flow only if they have entities.
+ if (hasEntities) {
+ menuItem.onClick = template => {
+ onClickMenuItem({
+ type: 'taxonomy',
+ slug,
+ config: {
+ queryArgs: ({
+ search
+ }) => {
+ return {
+ _fields: 'id,name,slug,link',
+ orderBy: search ? 'name' : 'count',
+ exclude: taxonomiesInfo[slug].existingEntitiesIds
+ };
+ },
+ getSpecificTemplate: suggestion => {
+ const templateSlug = `${templatePrefixes[slug]}-${suggestion.slug}`;
+ return {
+ title: templateSlug,
+ slug: templateSlug,
+ templatePrefix: templatePrefixes[slug]
+ };
+ }
+ },
+ labels,
+ hasGeneralTemplate,
+ template
});
+ };
+ }
+ // We don't need to add the menu item if there are no
+ // entities and the general template exists.
+ if (!hasGeneralTemplate || hasEntities) {
+ accumulator.push(menuItem);
+ }
+ return accumulator;
+ }, []);
+ // Split menu items into two groups: one for the default taxonomies
+ // and one for the rest.
+ const taxonomiesMenuItems = (0,external_wp_element_namespaceObject.useMemo)(() => menuItems.reduce((accumulator, taxonomy) => {
+ const {
+ slug
+ } = taxonomy;
+ let key = 'taxonomiesMenuItems';
+ if (['category', 'tag'].includes(slug)) {
+ key = 'defaultTaxonomiesMenuItems';
+ }
+ accumulator[key].push(taxonomy);
+ return accumulator;
+ }, {
+ defaultTaxonomiesMenuItems: [],
+ taxonomiesMenuItems: []
+ }), [menuItems]);
+ return taxonomiesMenuItems;
+};
+const USE_AUTHOR_MENU_ITEM_TEMPLATE_PREFIX = {
+ user: 'author'
+};
+const USE_AUTHOR_MENU_ITEM_QUERY_PARAMETERS = {
+ user: {
+ who: 'authors'
+ }
+};
+function useAuthorMenuItem(onClickMenuItem) {
+ const existingTemplates = useExistingTemplates();
+ const defaultTemplateTypes = useDefaultTemplateTypes();
+ const authorInfo = useEntitiesInfo('root', USE_AUTHOR_MENU_ITEM_TEMPLATE_PREFIX, USE_AUTHOR_MENU_ITEM_QUERY_PARAMETERS);
+ let authorMenuItem = defaultTemplateTypes?.find(({
+ slug
+ }) => slug === 'author');
+ if (!authorMenuItem) {
+ authorMenuItem = {
+ description: (0,external_wp_i18n_namespaceObject.__)('Displays latest posts written by a single author.'),
+ slug: 'author',
+ title: 'Author'
+ };
+ }
+ const hasGeneralTemplate = !!existingTemplates?.find(({
+ slug
+ }) => slug === 'author');
+ if (authorInfo.user?.hasEntities) {
+ authorMenuItem = {
+ ...authorMenuItem,
+ templatePrefix: 'author'
+ };
+ authorMenuItem.onClick = template => {
+ onClickMenuItem({
+ type: 'root',
+ slug: 'user',
+ config: {
+ queryArgs: ({
+ search
+ }) => {
+ return {
+ _fields: 'id,name,slug,link',
+ orderBy: search ? 'name' : 'registered_date',
+ exclude: authorInfo.user.existingEntitiesIds,
+ who: 'authors'
+ };
+ },
+ getSpecificTemplate: suggestion => {
+ const templateSlug = `author-${suggestion.slug}`;
+ return {
+ title: templateSlug,
+ slug: templateSlug,
+ templatePrefix: 'author'
+ };
+ }
+ },
+ labels: {
+ singular_name: (0,external_wp_i18n_namespaceObject.__)('Author'),
+ search_items: (0,external_wp_i18n_namespaceObject.__)('Search Authors'),
+ not_found: (0,external_wp_i18n_namespaceObject.__)('No authors found.'),
+ all_items: (0,external_wp_i18n_namespaceObject.__)('All Authors')
+ },
+ hasGeneralTemplate,
+ template
+ });
+ };
+ }
+ if (!hasGeneralTemplate || authorInfo.user?.hasEntities) {
+ return authorMenuItem;
+ }
+}
+
+/**
+ * Helper hook that filters all the existing templates by the given
+ * object with the entity's slug as key and the template prefix as value.
+ *
+ * Example:
+ * `existingTemplates` is: [ { slug: 'tag-apple' }, { slug: 'page-about' }, { slug: 'tag' } ]
+ * `templatePrefixes` is: { post_tag: 'tag' }
+ * It will return: { post_tag: ['apple'] }
+ *
+ * Note: We append the `-` to the given template prefix in this function for our checks.
+ *
+ * @param {Record<string,string>} templatePrefixes An object with the entity's slug as key and the template prefix as value.
+ * @return {Record<string,string[]>} An object with the entity's slug as key and an array with the existing template slugs as value.
+ */
+const useExistingTemplateSlugs = templatePrefixes => {
+ const existingTemplates = useExistingTemplates();
+ const existingSlugs = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return Object.entries(templatePrefixes || {}).reduce((accumulator, [slug, prefix]) => {
+ const slugsWithTemplates = (existingTemplates || []).reduce((_accumulator, existingTemplate) => {
+ const _prefix = `${prefix}-`;
+ if (existingTemplate.slug.startsWith(_prefix)) {
+ _accumulator.push(existingTemplate.slug.substring(_prefix.length));
+ }
+ return _accumulator;
+ }, []);
+ if (slugsWithTemplates.length) {
+ accumulator[slug] = slugsWithTemplates;
+ }
+ return accumulator;
+ }, {});
+ }, [templatePrefixes, existingTemplates]);
+ return existingSlugs;
+};
+
+/**
+ * Helper hook that finds the existing records with an associated template,
+ * as they need to be excluded from the template suggestions.
+ *
+ * @param {string} entityName The entity's name.
+ * @param {Record<string,string>} templatePrefixes An object with the entity's slug as key and the template prefix as value.
+ * @param {Record<string,Object>} additionalQueryParameters An object with the entity's slug as key and additional query parameters as value.
+ * @return {Record<string,EntitiesInfo>} An object with the entity's slug as key and the existing records as value.
+ */
+const useTemplatesToExclude = (entityName, templatePrefixes, additionalQueryParameters = {}) => {
+ const slugsToExcludePerEntity = useExistingTemplateSlugs(templatePrefixes);
+ const recordsToExcludePerEntity = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ return Object.entries(slugsToExcludePerEntity || {}).reduce((accumulator, [slug, slugsWithTemplates]) => {
+ const entitiesWithTemplates = select(external_wp_coreData_namespaceObject.store).getEntityRecords(entityName, slug, {
+ _fields: 'id',
+ context: 'view',
+ slug: slugsWithTemplates,
+ ...additionalQueryParameters[slug]
+ });
+ if (entitiesWithTemplates?.length) {
+ accumulator[slug] = entitiesWithTemplates;
+ }
+ return accumulator;
+ }, {});
+ }, [slugsToExcludePerEntity]);
+ return recordsToExcludePerEntity;
+};
+
+/**
+ * Helper hook that returns information about an entity having
+ * records that we can create a specific template for.
+ *
+ * For example we can search for `terms` in `taxonomy` entity or
+ * `posts` in `postType` entity.
+ *
+ * First we need to find the existing records with an associated template,
+ * to query afterwards for any remaining record, by excluding them.
+ *
+ * @param {string} entityName The entity's name.
+ * @param {Record<string,string>} templatePrefixes An object with the entity's slug as key and the template prefix as value.
+ * @param {Record<string,Object>} additionalQueryParameters An object with the entity's slug as key and additional query parameters as value.
+ * @return {Record<string,EntitiesInfo>} An object with the entity's slug as key and the EntitiesInfo as value.
+ */
+const useEntitiesInfo = (entityName, templatePrefixes, additionalQueryParameters = EMPTY_OBJECT) => {
+ const recordsToExcludePerEntity = useTemplatesToExclude(entityName, templatePrefixes, additionalQueryParameters);
+ const entitiesHasRecords = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ return Object.keys(templatePrefixes || {}).reduce((accumulator, slug) => {
+ const existingEntitiesIds = recordsToExcludePerEntity?.[slug]?.map(({
+ id
+ }) => id) || [];
+ accumulator[slug] = !!select(external_wp_coreData_namespaceObject.store).getEntityRecords(entityName, slug, {
+ per_page: 1,
+ _fields: 'id',
+ context: 'view',
+ exclude: existingEntitiesIds,
+ ...additionalQueryParameters[slug]
+ })?.length;
+ return accumulator;
+ }, {});
+ }, [templatePrefixes, recordsToExcludePerEntity, entityName, additionalQueryParameters]);
+ const entitiesInfo = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return Object.keys(templatePrefixes || {}).reduce((accumulator, slug) => {
+ const existingEntitiesIds = recordsToExcludePerEntity?.[slug]?.map(({
+ id
+ }) => id) || [];
+ accumulator[slug] = {
+ hasEntities: entitiesHasRecords[slug],
+ existingEntitiesIds
+ };
+ return accumulator;
+ }, {});
+ }, [templatePrefixes, recordsToExcludePerEntity, entitiesHasRecords]);
+ return entitiesInfo;
+};
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/add-new-template/add-custom-template-modal-content.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+const {
+ CompositeV2: add_custom_template_modal_content_Composite,
+ CompositeItemV2: add_custom_template_modal_content_CompositeItem,
+ useCompositeStoreV2: add_custom_template_modal_content_useCompositeStore
+} = lock_unlock_unlock(external_wp_components_namespaceObject.privateApis);
+const add_custom_template_modal_content_EMPTY_ARRAY = [];
+function SuggestionListItem({
+ suggestion,
+ search,
+ onSelect,
+ entityForSuggestions
+}) {
+ const baseCssClass = 'edit-site-custom-template-modal__suggestions_list__list-item';
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(add_custom_template_modal_content_CompositeItem, {
+ render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ role: "option",
+ className: baseCssClass,
+ onClick: () => onSelect(entityForSuggestions.config.getSpecificTemplate(suggestion))
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ size: "body",
+ lineHeight: 1.53846153846 // 20px
+ ,
+ weight: 500,
+ className: `${baseCssClass}__title`,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextHighlight, {
+ text: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(suggestion.name),
+ highlight: search
+ })
+ }), suggestion.link && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ size: "body",
+ lineHeight: 1.53846153846 // 20px
+ ,
+ className: `${baseCssClass}__info`,
+ children: suggestion.link
+ })]
+ });
+}
+function useSearchSuggestions(entityForSuggestions, search) {
+ const {
+ config
+ } = entityForSuggestions;
+ const query = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ order: 'asc',
+ context: 'view',
+ search,
+ per_page: search ? 20 : 10,
+ ...config.queryArgs(search)
+ }), [search, config]);
+ const {
+ records: searchResults,
+ hasResolved: searchHasResolved
+ } = (0,external_wp_coreData_namespaceObject.useEntityRecords)(entityForSuggestions.type, entityForSuggestions.slug, query);
+ const [suggestions, setSuggestions] = (0,external_wp_element_namespaceObject.useState)(add_custom_template_modal_content_EMPTY_ARRAY);
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (!searchHasResolved) {
+ return;
+ }
+ let newSuggestions = add_custom_template_modal_content_EMPTY_ARRAY;
+ if (searchResults?.length) {
+ newSuggestions = searchResults;
+ if (config.recordNamePath) {
+ newSuggestions = mapToIHasNameAndId(newSuggestions, config.recordNamePath);
}
}
- return (0,external_React_.createElement)("form", {
- onSubmit: onTemplateRename
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "5"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
+ // Update suggestions only when the query has resolved, so as to keep
+ // the previous results in the UI.
+ setSuggestions(newSuggestions);
+ }, [searchResults, searchHasResolved]);
+ return suggestions;
+}
+function SuggestionList({
+ entityForSuggestions,
+ onSelect
+}) {
+ const composite = add_custom_template_modal_content_useCompositeStore({
+ orientation: 'vertical'
+ });
+ const [search, setSearch, debouncedSearch] = (0,external_wp_compose_namespaceObject.useDebouncedInput)();
+ const suggestions = useSearchSuggestions(entityForSuggestions, debouncedSearch);
+ const {
+ labels
+ } = entityForSuggestions;
+ const [showSearchControl, setShowSearchControl] = (0,external_wp_element_namespaceObject.useState)(false);
+ if (!showSearchControl && suggestions?.length > 9) {
+ setShowSearchControl(true);
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [showSearchControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SearchControl, {
__nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Name'),
- value: editedTitle,
- onChange: setEditedTitle,
- required: true
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: closeModal
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- type: "submit"
- }, (0,external_wp_i18n_namespaceObject.__)('Save')))));
+ onChange: setSearch,
+ value: search,
+ label: labels.search_items,
+ placeholder: labels.search_items
+ }), !!suggestions?.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(add_custom_template_modal_content_Composite, {
+ store: composite,
+ role: "listbox",
+ className: "edit-site-custom-template-modal__suggestions_list",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Suggestions list'),
+ children: suggestions.map(suggestion => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SuggestionListItem, {
+ suggestion: suggestion,
+ search: debouncedSearch,
+ onSelect: onSelect,
+ entityForSuggestions: entityForSuggestions
+ }, suggestion.slug))
+ }), debouncedSearch && !suggestions?.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ as: "p",
+ className: "edit-site-custom-template-modal__no-results",
+ children: labels.not_found
+ })]
+ });
+}
+function AddCustomTemplateModalContent({
+ onSelect,
+ entityForSuggestions
+}) {
+ const [showSearchEntities, setShowSearchEntities] = (0,external_wp_element_namespaceObject.useState)(entityForSuggestions.hasGeneralTemplate);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 4,
+ className: "edit-site-custom-template-modal__contents-wrapper",
+ alignment: "left",
+ children: [!showSearchEntities && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ as: "p",
+ children: (0,external_wp_i18n_namespaceObject.__)('Select whether to create a single template for all items or a specific one.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ className: "edit-site-custom-template-modal__contents",
+ gap: "4",
+ align: "initial",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.FlexItem, {
+ isBlock: true,
+ as: external_wp_components_namespaceObject.Button,
+ onClick: () => {
+ const {
+ slug,
+ title,
+ description,
+ templatePrefix
+ } = entityForSuggestions.template;
+ onSelect({
+ slug,
+ title,
+ description,
+ templatePrefix
+ });
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ as: "span",
+ weight: 500,
+ lineHeight: 1.53846153846 // 20px
+ ,
+ children: entityForSuggestions.labels.all_items
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ as: "span",
+ lineHeight: 1.53846153846 // 20px
+ ,
+ children:
+ // translators: The user is given the choice to set up a template for all items of a post type or taxonomy, or just a specific one.
+ (0,external_wp_i18n_namespaceObject.__)('For all items')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.FlexItem, {
+ isBlock: true,
+ as: external_wp_components_namespaceObject.Button,
+ onClick: () => {
+ setShowSearchEntities(true);
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ as: "span",
+ weight: 500,
+ lineHeight: 1.53846153846 // 20px
+ ,
+ children: entityForSuggestions.labels.singular_name
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ as: "span",
+ lineHeight: 1.53846153846 // 20px
+ ,
+ children:
+ // translators: The user is given the choice to set up a template for all items of a post type or taxonomy, or just a specific one.
+ (0,external_wp_i18n_namespaceObject.__)('For a specific item')
+ })]
+ })]
+ })]
+ }), showSearchEntities && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ as: "p",
+ children: (0,external_wp_i18n_namespaceObject.__)('This template will be used only for the specific item chosen.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SuggestionList, {
+ entityForSuggestions: entityForSuggestions,
+ onSelect: onSelect
+ })]
+ })]
+ });
+}
+/* harmony default export */ const add_custom_template_modal_content = (AddCustomTemplateModalContent);
+
+;// CONCATENATED MODULE: ./node_modules/tslib/tslib.es6.mjs
+/******************************************************************************
+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, SuppressedError, Symbol */
+
+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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+ return extendStatics(d, b);
+};
+
+function __extends(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ 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 __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
+ var _, done = false;
+ for (var i = decorators.length - 1; i >= 0; i--) {
+ var context = {};
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
+ if (kind === "accessor") {
+ if (result === void 0) continue;
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
+ if (_ = accept(result.get)) descriptor.get = _;
+ if (_ = accept(result.set)) descriptor.set = _;
+ if (_ = accept(result.init)) initializers.unshift(_);
+ }
+ else if (_ = accept(result)) {
+ if (kind === "field") initializers.unshift(_);
+ else descriptor[key] = _;
+ }
+ }
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
+ done = true;
+};
+
+function __runInitializers(thisArg, initializers, value) {
+ var useValue = arguments.length > 2;
+ for (var i = 0; i < initializers.length; i++) {
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
+ }
+ return useValue ? value : void 0;
+};
+
+function __propKey(x) {
+ return typeof x === "symbol" ? x : "".concat(x);
+};
+
+function __setFunctionName(f, name, prefix) {
+ if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
+};
+
+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 (g && (g = 0, op[0] && (_ = 0)), _) 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 };
+ }
+}
+
+var __createBinding = Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+});
+
+function __exportStar(m, o) {
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, 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;
+}
+
+/** @deprecated */
+function __spread() {
+ for (var ar = [], i = 0; i < arguments.length; i++)
+ ar = ar.concat(__read(arguments[i]));
+ return ar;
+}
+
+/** @deprecated */
+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 __spreadArray(to, from, pack) {
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
+ if (ar || !(i in from)) {
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
+ ar[i] = from[i];
+ }
+ }
+ return to.concat(ar || Array.prototype.slice.call(from));
+}
+
+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: false } : 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;
+};
+
+var __setModuleDefault = Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+};
+
+function __importStar(mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+}
+
+function __importDefault(mod) {
+ return (mod && mod.__esModule) ? mod : { default: mod };
+}
+
+function __classPrivateFieldGet(receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+}
+
+function __classPrivateFieldSet(receiver, state, value, kind, f) {
+ if (kind === "m") throw new TypeError("Private method is not writable");
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
+}
+
+function __classPrivateFieldIn(state, receiver) {
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
+ return typeof state === "function" ? receiver === state : state.has(receiver);
+}
+
+function __addDisposableResource(env, value, async) {
+ if (value !== null && value !== void 0) {
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
+ var dispose;
+ if (async) {
+ if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
+ dispose = value[Symbol.asyncDispose];
+ }
+ if (dispose === void 0) {
+ if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
+ dispose = value[Symbol.dispose];
+ }
+ if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
+ env.stack.push({ value: value, dispose: dispose, async: async });
+ }
+ else if (async) {
+ env.stack.push({ async: true });
+ }
+ return value;
+}
+
+var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
+ var e = new Error(message);
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
+};
+
+function __disposeResources(env) {
+ function fail(e) {
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
+ env.hasError = true;
+ }
+ function next() {
+ while (env.stack.length) {
+ var rec = env.stack.pop();
+ try {
+ var result = rec.dispose && rec.dispose.call(rec.value);
+ if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
+ }
+ catch (e) {
+ fail(e);
+ }
+ }
+ if (env.hasError) throw env.error;
}
+ return next();
+}
+
+/* harmony default export */ const tslib_es6 = ({
+ __extends,
+ __assign,
+ __rest,
+ __decorate,
+ __param,
+ __metadata,
+ __awaiter,
+ __generator,
+ __createBinding,
+ __exportStar,
+ __values,
+ __read,
+ __spread,
+ __spreadArrays,
+ __spreadArray,
+ __await,
+ __asyncGenerator,
+ __asyncDelegator,
+ __asyncValues,
+ __makeTemplateObject,
+ __importStar,
+ __importDefault,
+ __classPrivateFieldGet,
+ __classPrivateFieldSet,
+ __classPrivateFieldIn,
+ __addDisposableResource,
+ __disposeResources,
+});
+
+;// CONCATENATED MODULE: ./node_modules/lower-case/dist.es2015/index.js
+/**
+ * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt
+ */
+var SUPPORTED_LOCALE = {
+ tr: {
+ regexp: /\u0130|\u0049|\u0049\u0307/g,
+ map: {
+ İ: "\u0069",
+ I: "\u0131",
+ İ: "\u0069",
+ },
+ },
+ az: {
+ regexp: /\u0130/g,
+ map: {
+ İ: "\u0069",
+ I: "\u0131",
+ İ: "\u0069",
+ },
+ },
+ lt: {
+ regexp: /\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g,
+ map: {
+ I: "\u0069\u0307",
+ J: "\u006A\u0307",
+ Į: "\u012F\u0307",
+ Ì: "\u0069\u0307\u0300",
+ Í: "\u0069\u0307\u0301",
+ Ĩ: "\u0069\u0307\u0303",
+ },
+ },
};
+/**
+ * Localized lower case.
+ */
+function localeLowerCase(str, locale) {
+ var lang = SUPPORTED_LOCALE[locale.toLowerCase()];
+ if (lang)
+ return lowerCase(str.replace(lang.regexp, function (m) { return lang.map[m]; }));
+ return lowerCase(str);
+}
+/**
+ * Lower case as a function.
+ */
+function lowerCase(str) {
+ return str.toLowerCase();
+}
+
+;// CONCATENATED MODULE: ./node_modules/no-case/dist.es2015/index.js
+
+// Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case").
+var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
+// Remove all non-word characters.
+var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
+/**
+ * Normalize the string into something other libraries can manipulate easier.
+ */
+function noCase(input, options) {
+ if (options === void 0) { options = {}; }
+ var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d;
+ var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
+ var start = 0;
+ var end = result.length;
+ // Trim the delimiter from around the output string.
+ while (result.charAt(start) === "\0")
+ start++;
+ while (result.charAt(end - 1) === "\0")
+ end--;
+ // Transform each token independently.
+ return result.slice(start, end).split("\0").map(transform).join(delimiter);
+}
+/**
+ * Replace `re` in the input string with the replacement value.
+ */
+function replace(input, re, value) {
+ if (re instanceof RegExp)
+ return input.replace(re, value);
+ return re.reduce(function (input, re) { return input.replace(re, value); }, input);
+}
+
+;// CONCATENATED MODULE: ./node_modules/dot-case/dist.es2015/index.js
+
+
+function dotCase(input, options) {
+ if (options === void 0) { options = {}; }
+ return noCase(input, __assign({ delimiter: "." }, options));
+}
+
+;// CONCATENATED MODULE: ./node_modules/param-case/dist.es2015/index.js
+
+
+function paramCase(input, options) {
+ if (options === void 0) { options = {}; }
+ return dotCase(input, __assign({ delimiter: "-" }, options));
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/add-new-template/add-custom-generic-template-modal-content.js
+/**
+ * External dependencies
+ */
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-templates-template-parts/add-new-template-part.js
/**
* WordPress dependencies
@@ -44545,6 +36719,88 @@ const renameTemplateAction = {
+function AddCustomGenericTemplateModalContent({
+ onClose,
+ createTemplate
+}) {
+ const [title, setTitle] = (0,external_wp_element_namespaceObject.useState)('');
+ const defaultTitle = (0,external_wp_i18n_namespaceObject.__)('Custom Template');
+ const [isBusy, setIsBusy] = (0,external_wp_element_namespaceObject.useState)(false);
+ async function onCreateTemplate(event) {
+ event.preventDefault();
+ if (isBusy) {
+ return;
+ }
+ setIsBusy(true);
+ try {
+ await createTemplate({
+ slug: 'wp-custom-template-' + paramCase(title || defaultTitle),
+ title: title || defaultTitle
+ }, false);
+ } finally {
+ setIsBusy(false);
+ }
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ onSubmit: onCreateTemplate,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 6,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __next40pxDefaultSize: true,
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Name'),
+ value: title,
+ onChange: setTitle,
+ placeholder: defaultTitle,
+ disabled: isBusy,
+ help: (0,external_wp_i18n_namespaceObject.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ className: "edit-site-custom-generic-template__modal-actions",
+ justify: "right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ onClick: () => {
+ onClose();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "primary",
+ type: "submit",
+ isBusy: isBusy,
+ "aria-disabled": isBusy,
+ children: (0,external_wp_i18n_namespaceObject.__)('Create')
+ })]
+ })]
+ })
+ });
+}
+/* harmony default export */ const add_custom_generic_template_modal_content = (AddCustomGenericTemplateModalContent);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/add-new-template/index.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
/**
* Internal dependencies
@@ -44553,47 +36809,293 @@ const renameTemplateAction = {
+
+
+
const {
- useHistory: add_new_template_part_useHistory
-} = unlock(external_wp_router_namespaceObject.privateApis);
-function AddNewTemplatePart() {
+ useHistory: add_new_template_useHistory
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+const DEFAULT_TEMPLATE_SLUGS = ['front-page', 'home', 'single', 'page', 'index', 'archive', 'author', 'category', 'date', 'tag', 'search', '404'];
+const TEMPLATE_ICONS = {
+ 'front-page': library_home,
+ home: library_verse,
+ single: library_pin,
+ page: library_page,
+ archive: library_archive,
+ search: library_search,
+ 404: not_found,
+ index: library_list,
+ category: library_category,
+ author: comment_author_avatar,
+ taxonomy: block_meta,
+ date: library_calendar,
+ tag: library_tag,
+ attachment: library_media
+};
+function TemplateListItem({
+ title,
+ direction,
+ className,
+ description,
+ icon,
+ onClick,
+ children
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: className,
+ onClick: onClick,
+ label: description,
+ showTooltip: !!description,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ as: "span",
+ spacing: 2,
+ align: "center",
+ justify: "center",
+ style: {
+ width: '100%'
+ },
+ direction: direction,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-add-new-template__template-icon",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ icon: icon
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ className: "edit-site-add-new-template__template-name",
+ alignment: "center",
+ spacing: 0,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ align: "center",
+ weight: 500,
+ lineHeight: 1.53846153846 // 20px
+ ,
+ children: title
+ }), children]
+ })]
+ })
+ });
+}
+const modalContentMap = {
+ templatesList: 1,
+ customTemplate: 2,
+ customGenericTemplate: 3
+};
+function NewTemplateModal({
+ onClose
+}) {
+ const [modalContent, setModalContent] = (0,external_wp_element_namespaceObject.useState)(modalContentMap.templatesList);
+ const [entityForSuggestions, setEntityForSuggestions] = (0,external_wp_element_namespaceObject.useState)({});
+ const [isSubmitting, setIsSubmitting] = (0,external_wp_element_namespaceObject.useState)(false);
+ const missingTemplates = useMissingTemplates(setEntityForSuggestions, () => setModalContent(modalContentMap.customTemplate));
+ const history = add_new_template_useHistory();
const {
- canCreate,
- postType
+ saveEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const {
+ createErrorNotice,
+ createSuccessNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ const {
+ homeUrl
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
- supportsTemplatePartsMode
- } = select(store_store).getSettings();
+ getUnstableBase // Site index.
+ } = select(external_wp_coreData_namespaceObject.store);
return {
- canCreate: !supportsTemplatePartsMode,
- postType: select(external_wp_coreData_namespaceObject.store).getPostType(TEMPLATE_PART_POST_TYPE)
+ homeUrl: getUnstableBase()?.home
};
}, []);
- const [isModalOpen, setIsModalOpen] = (0,external_wp_element_namespaceObject.useState)(false);
- const history = add_new_template_part_useHistory();
- if (!canCreate || !postType) {
- return null;
- }
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: () => setIsModalOpen(true)
- }, postType.labels.add_new_item), isModalOpen && (0,external_React_.createElement)(CreateTemplatePartModal, {
- closeModal: () => setIsModalOpen(false),
- blocks: [],
- onCreate: templatePart => {
- setIsModalOpen(false);
+ const TEMPLATE_SHORT_DESCRIPTIONS = {
+ 'front-page': homeUrl,
+ date: (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: The homepage url.
+ (0,external_wp_i18n_namespaceObject.__)('E.g. %s'), homeUrl + '/' + new Date().getFullYear())
+ };
+ async function createTemplate(template, isWPSuggestion = true) {
+ if (isSubmitting) {
+ return;
+ }
+ setIsSubmitting(true);
+ try {
+ const {
+ title,
+ description,
+ slug
+ } = template;
+ const newTemplate = await saveEntityRecord('postType', TEMPLATE_POST_TYPE, {
+ description,
+ // Slugs need to be strings, so this is for template `404`
+ slug: slug.toString(),
+ status: 'publish',
+ title,
+ // This adds a post meta field in template that is part of `is_custom` value calculation.
+ is_wp_suggestion: isWPSuggestion
+ }, {
+ throwOnError: true
+ });
+
+ // Navigate to the created template editor.
history.push({
- postId: templatePart.id,
- postType: TEMPLATE_PART_POST_TYPE,
+ postId: newTemplate.id,
+ postType: TEMPLATE_POST_TYPE,
canvas: 'edit'
});
- },
- onError: () => setIsModalOpen(false)
- }));
+ createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Title of the created template e.g: "Category".
+ (0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(newTemplate.title?.rendered || title)), {
+ type: 'snackbar'
+ });
+ } catch (error) {
+ const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : (0,external_wp_i18n_namespaceObject.__)('An error occurred while creating the template.');
+ createErrorNotice(errorMessage, {
+ type: 'snackbar'
+ });
+ } finally {
+ setIsSubmitting(false);
+ }
+ }
+ const onModalClose = () => {
+ onClose();
+ setModalContent(modalContentMap.templatesList);
+ };
+ let modalTitle = (0,external_wp_i18n_namespaceObject.__)('Add template');
+ if (modalContent === modalContentMap.customTemplate) {
+ modalTitle = (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Name of the post type e.g: "Post".
+ (0,external_wp_i18n_namespaceObject.__)('Add template: %s'), entityForSuggestions.labels.singular_name);
+ } else if (modalContent === modalContentMap.customGenericTemplate) {
+ modalTitle = (0,external_wp_i18n_namespaceObject.__)('Create custom template');
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Modal, {
+ title: modalTitle,
+ className: dist_clsx('edit-site-add-new-template__modal', {
+ 'edit-site-add-new-template__modal_template_list': modalContent === modalContentMap.templatesList,
+ 'edit-site-custom-template-modal': modalContent === modalContentMap.customTemplate
+ }),
+ onRequestClose: onModalClose,
+ overlayClassName: modalContent === modalContentMap.customGenericTemplate ? 'edit-site-custom-generic-template__modal' : undefined,
+ children: [modalContent === modalContentMap.templatesList && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalGrid, {
+ columns: 3,
+ gap: 4,
+ align: "flex-start",
+ justify: "center",
+ className: "edit-site-add-new-template__template-list__contents",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Flex, {
+ className: "edit-site-add-new-template__template-list__prompt",
+ children: (0,external_wp_i18n_namespaceObject.__)('Select what the new template should apply to:')
+ }), missingTemplates.map(template => {
+ const {
+ title,
+ slug,
+ onClick
+ } = template;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplateListItem, {
+ title: title,
+ direction: "column",
+ className: "edit-site-add-new-template__template-button",
+ description: TEMPLATE_SHORT_DESCRIPTIONS[slug],
+ icon: TEMPLATE_ICONS[slug] || library_layout,
+ onClick: () => onClick ? onClick(template) : createTemplate(template)
+ }, slug);
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplateListItem, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Custom template'),
+ direction: "row",
+ className: "edit-site-add-new-template__custom-template-button",
+ icon: edit,
+ onClick: () => setModalContent(modalContentMap.customGenericTemplate),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ lineHeight: 1.53846153846 // 20px
+ ,
+ children: (0,external_wp_i18n_namespaceObject.__)('A custom template can be manually applied to any post or page.')
+ })
+ })]
+ }), modalContent === modalContentMap.customTemplate && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(add_custom_template_modal_content, {
+ onSelect: createTemplate,
+ entityForSuggestions: entityForSuggestions
+ }), modalContent === modalContentMap.customGenericTemplate && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(add_custom_generic_template_modal_content, {
+ onClose: onModalClose,
+ createTemplate: createTemplate
+ })]
+ });
}
+function NewTemplate() {
+ const [showModal, setShowModal] = (0,external_wp_element_namespaceObject.useState)(false);
+ const {
+ postType
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getPostType
+ } = select(external_wp_coreData_namespaceObject.store);
+ return {
+ postType: getPostType(TEMPLATE_POST_TYPE)
+ };
+ }, []);
+ if (!postType) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ onClick: () => setShowModal(true),
+ label: postType.labels.add_new_item,
+ __next40pxDefaultSize: true,
+ children: postType.labels.add_new_item
+ }), showModal && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NewTemplateModal, {
+ onClose: () => setShowModal(false)
+ })]
+ });
+}
+function useMissingTemplates(setEntityForSuggestions, onClick) {
+ const existingTemplates = useExistingTemplates();
+ const defaultTemplateTypes = useDefaultTemplateTypes();
+ const existingTemplateSlugs = (existingTemplates || []).map(({
+ slug
+ }) => slug);
+ const missingDefaultTemplates = (defaultTemplateTypes || []).filter(template => DEFAULT_TEMPLATE_SLUGS.includes(template.slug) && !existingTemplateSlugs.includes(template.slug));
+ const onClickMenuItem = _entityForSuggestions => {
+ onClick?.();
+ setEntityForSuggestions(_entityForSuggestions);
+ };
+ // We need to replace existing default template types with
+ // the create specific template functionality. The original
+ // info (title, description, etc.) is preserved in the
+ // used hooks.
+ const enhancedMissingDefaultTemplateTypes = [...missingDefaultTemplates];
+ const {
+ defaultTaxonomiesMenuItems,
+ taxonomiesMenuItems
+ } = useTaxonomiesMenuItems(onClickMenuItem);
+ const {
+ defaultPostTypesMenuItems,
+ postTypesMenuItems
+ } = usePostTypeMenuItems(onClickMenuItem);
+ const authorMenuItem = useAuthorMenuItem(onClickMenuItem);
+ [...defaultTaxonomiesMenuItems, ...defaultPostTypesMenuItems, authorMenuItem].forEach(menuItem => {
+ if (!menuItem) {
+ return;
+ }
+ const matchIndex = enhancedMissingDefaultTemplateTypes.findIndex(template => template.slug === menuItem.slug);
+ // Some default template types might have been filtered above from
+ // `missingDefaultTemplates` because they only check for the general
+ // template. So here we either replace or append the item, augmented
+ // with the check if it has available specific item to create a
+ // template for.
+ if (matchIndex > -1) {
+ enhancedMissingDefaultTemplateTypes[matchIndex] = menuItem;
+ } else {
+ enhancedMissingDefaultTemplateTypes.push(menuItem);
+ }
+ });
+ // Update the sort order to match the DEFAULT_TEMPLATE_SLUGS order.
+ enhancedMissingDefaultTemplateTypes?.sort((template1, template2) => {
+ return DEFAULT_TEMPLATE_SLUGS.indexOf(template1.slug) - DEFAULT_TEMPLATE_SLUGS.indexOf(template2.slug);
+ });
+ const missingTemplates = [...enhancedMissingDefaultTemplateTypes, ...usePostTypeArchiveMenuItems(), ...postTypesMenuItems, ...taxonomiesMenuItems];
+ return missingTemplates;
+}
+/* harmony default export */ const add_new_template = ((0,external_wp_element_namespaceObject.memo)(NewTemplate));
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-templates-template-parts/index.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-templates/index.js
/**
* External dependencies
*/
@@ -44612,6 +37114,7 @@ function AddNewTemplatePart() {
+
/**
* Internal dependencies
*/
@@ -44625,31 +37128,36 @@ function AddNewTemplatePart() {
+
+
const {
- ExperimentalBlockEditorProvider: page_templates_template_parts_ExperimentalBlockEditorProvider,
- useGlobalStyle: page_templates_template_parts_useGlobalStyle
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+ usePostActions: page_templates_usePostActions
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
const {
- useHistory: page_templates_template_parts_useHistory,
- useLocation: page_templates_template_parts_useLocation
-} = unlock(external_wp_router_namespaceObject.privateApis);
-const page_templates_template_parts_EMPTY_ARRAY = [];
-const page_templates_template_parts_SUPPORTED_LAYOUTS = window?.__experimentalAdminViews ? [LAYOUT_TABLE, LAYOUT_GRID, LAYOUT_LIST] : [LAYOUT_TABLE, LAYOUT_GRID];
-const page_templates_template_parts_defaultConfigPerViewType = {
+ ExperimentalBlockEditorProvider: page_templates_ExperimentalBlockEditorProvider,
+ useGlobalStyle: page_templates_useGlobalStyle
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+const {
+ useHistory: page_templates_useHistory,
+ useLocation: page_templates_useLocation
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+const page_templates_EMPTY_ARRAY = [];
+const page_templates_defaultConfigPerViewType = {
[LAYOUT_TABLE]: {
primaryField: 'title'
},
[LAYOUT_GRID]: {
mediaField: 'preview',
- primaryField: 'title'
+ primaryField: 'title',
+ columnFields: ['description']
},
[LAYOUT_LIST]: {
primaryField: 'title',
mediaField: 'preview'
}
};
-const page_templates_template_parts_DEFAULT_VIEW = {
- type: LAYOUT_TABLE,
+const page_templates_DEFAULT_VIEW = {
+ type: LAYOUT_GRID,
search: '',
page: 1,
perPage: 20,
@@ -44660,13 +37168,10 @@ const page_templates_template_parts_DEFAULT_VIEW = {
// All fields are visible by default, so it's
// better to keep track of the hidden ones.
hiddenFields: ['preview'],
- layout: page_templates_template_parts_defaultConfigPerViewType[LAYOUT_TABLE],
+ layout: page_templates_defaultConfigPerViewType[LAYOUT_GRID],
filters: []
};
-function page_templates_template_parts_normalizeSearchInput(input = '') {
- return remove_accents_default()(input.trim().toLowerCase());
-}
-function page_templates_template_parts_Title({
+function page_templates_Title({
item,
viewType
}) {
@@ -44680,42 +37185,51 @@ function page_templates_template_parts_Title({
canvas: 'edit'
}
};
- if (item.type === TEMPLATE_PART_POST_TYPE) {
- linkProps.state = {
- backPath: '/wp_template_part/all'
- };
- }
- return (0,external_React_.createElement)(Link, {
- ...linkProps
- }, (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(item.title?.rendered) || (0,external_wp_i18n_namespaceObject.__)('(no title)'));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Link, {
+ ...linkProps,
+ children: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(item.title?.rendered) || (0,external_wp_i18n_namespaceObject.__)('(no title)')
+ });
}
function AuthorField({
item,
viewType
}) {
+ const [isImageLoaded, setIsImageLoaded] = (0,external_wp_element_namespaceObject.useState)(false);
const {
text,
icon,
imageUrl
} = useAddedBy(item.type, item.id);
const withIcon = viewType !== LAYOUT_LIST;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
alignment: "left",
- spacing: 1
- }, withIcon && imageUrl && (0,external_React_.createElement)(AvatarImage, {
- imageUrl: imageUrl
- }), withIcon && !imageUrl && (0,external_React_.createElement)("div", {
- className: "edit-site-list-added-by__icon"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- icon: icon
- })), (0,external_React_.createElement)("span", null, text));
-}
-function page_templates_template_parts_Preview({
+ spacing: 1,
+ children: [withIcon && imageUrl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('page-templates-author-field__avatar', {
+ 'is-loaded': isImageLoaded
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ onLoad: () => setIsImageLoaded(true),
+ alt: "",
+ src: imageUrl
+ })
+ }), withIcon && !imageUrl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "page-templates-author-field__icon",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ icon: icon
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "page-templates-author-field__name",
+ children: text
+ })]
+ });
+}
+function page_templates_Preview({
item,
viewType
}) {
const settings = usePatternSettings();
- const [backgroundColor = 'white'] = page_templates_template_parts_useGlobalStyle('color.background');
+ const [backgroundColor = 'white'] = page_templates_useGlobalStyle('color.background');
const blocks = (0,external_wp_element_namespaceObject.useMemo)(() => {
return (0,external_wp_blocks_namespaceObject.parse)(item.content.raw);
}, [item.content.raw]);
@@ -44734,44 +37248,51 @@ function page_templates_template_parts_Preview({
// TODO: Same approach is used in the patterns list and it becomes obvious that some of
// the block editor settings are needed in context where we don't have the block editor.
// Explore how we can solve this in a better way.
- return (0,external_React_.createElement)(page_templates_template_parts_ExperimentalBlockEditorProvider, {
- settings: settings
- }, (0,external_React_.createElement)("div", {
- className: `page-templates-preview-field is-viewtype-${viewType}`,
- style: {
- backgroundColor
- }
- }, viewType === LAYOUT_LIST && !isEmpty && (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockPreview, {
- blocks: blocks
- }), viewType !== LAYOUT_LIST && (0,external_React_.createElement)("button", {
- className: "page-templates-preview-field__button",
- type: "button",
- onClick: onClick,
- "aria-label": item.title?.rendered || item.title
- }, isEmpty && (item.type === constants_TEMPLATE_POST_TYPE ? (0,external_wp_i18n_namespaceObject.__)('Empty template') : (0,external_wp_i18n_namespaceObject.__)('Empty template part')), !isEmpty && (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockPreview, {
- blocks: blocks
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(page_templates_ExperimentalBlockEditorProvider, {
+ settings: settings,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: `page-templates-preview-field is-viewtype-${viewType}`,
+ style: {
+ backgroundColor
+ },
+ children: [viewType === LAYOUT_LIST && !isEmpty && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Async, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockPreview, {
+ blocks: blocks
+ })
+ }), viewType !== LAYOUT_LIST && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("button", {
+ className: "page-templates-preview-field__button",
+ type: "button",
+ onClick: onClick,
+ "aria-label": item.title?.rendered || item.title,
+ children: [isEmpty && (0,external_wp_i18n_namespaceObject.__)('Empty template'), !isEmpty && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Async, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockPreview, {
+ blocks: blocks
+ })
+ })]
+ })]
+ })
+ });
}
-function PageTemplatesTemplateParts({
- postType
-}) {
+function PageTemplates() {
const {
params
- } = page_templates_template_parts_useLocation();
+ } = page_templates_useLocation();
const {
activeView = 'all',
- layout
+ layout,
+ postId
} = params;
+ const [selection, setSelection] = (0,external_wp_element_namespaceObject.useState)([postId]);
const defaultView = (0,external_wp_element_namespaceObject.useMemo)(() => {
- const usedType = window?.__experimentalAdminViews ? layout !== null && layout !== void 0 ? layout : page_templates_template_parts_DEFAULT_VIEW.type : page_templates_template_parts_DEFAULT_VIEW.type;
+ const usedType = layout !== null && layout !== void 0 ? layout : page_templates_DEFAULT_VIEW.type;
return {
- ...page_templates_template_parts_DEFAULT_VIEW,
+ ...page_templates_DEFAULT_VIEW,
type: usedType,
- layout: page_templates_template_parts_defaultConfigPerViewType[usedType],
+ layout: page_templates_defaultConfigPerViewType[usedType],
filters: activeView !== 'all' ? [{
field: 'author',
- operator: 'in',
- value: activeView
+ operator: 'isAny',
+ value: [activeView]
}] : []
};
}, [layout, activeView]);
@@ -44781,18 +37302,18 @@ function PageTemplatesTemplateParts({
...currentView,
filters: activeView !== 'all' ? [{
field: 'author',
- operator: 'in',
- value: activeView
+ operator: OPERATOR_IS_ANY,
+ value: [activeView]
}] : []
}));
}, [activeView]);
const {
records,
isResolving: isLoadingData
- } = (0,external_wp_coreData_namespaceObject.useEntityRecords)('postType', postType, {
+ } = (0,external_wp_coreData_namespaceObject.useEntityRecords)('postType', TEMPLATE_POST_TYPE, {
per_page: -1
});
- const history = page_templates_template_parts_useHistory();
+ const history = page_templates_useHistory();
const onSelectionChange = (0,external_wp_element_namespaceObject.useCallback)(items => {
if (view?.type === LAYOUT_LIST) {
history.push({
@@ -44803,7 +37324,7 @@ function PageTemplatesTemplateParts({
}, [history, params, view?.type]);
const authors = (0,external_wp_element_namespaceObject.useMemo)(() => {
if (!records) {
- return page_templates_template_parts_EMPTY_ARRAY;
+ return page_templates_EMPTY_ARRAY;
}
const authorsSet = new Set();
records.forEach(template => {
@@ -44814,141 +37335,93 @@ function PageTemplatesTemplateParts({
label: author
}));
}, [records]);
- const fields = (0,external_wp_element_namespaceObject.useMemo)(() => {
- const _fields = [{
- header: (0,external_wp_i18n_namespaceObject.__)('Preview'),
- id: 'preview',
- render: ({
- item
- }) => {
- return (0,external_React_.createElement)(page_templates_template_parts_Preview, {
- item: item,
- viewType: view.type
- });
- },
- minWidth: 120,
- maxWidth: 120,
- enableSorting: false
- }, {
- header: postType === constants_TEMPLATE_POST_TYPE ? (0,external_wp_i18n_namespaceObject.__)('Template') : (0,external_wp_i18n_namespaceObject.__)('Template Part'),
- id: 'title',
- getValue: ({
- item
- }) => item.title?.rendered,
- render: ({
- item
- }) => (0,external_React_.createElement)(page_templates_template_parts_Title, {
+ const fields = (0,external_wp_element_namespaceObject.useMemo)(() => [{
+ header: (0,external_wp_i18n_namespaceObject.__)('Preview'),
+ id: 'preview',
+ render: ({
+ item
+ }) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(page_templates_Preview, {
item: item,
viewType: view.type
- }),
- maxWidth: 400,
- enableHiding: false
- }];
- if (postType === constants_TEMPLATE_POST_TYPE) {
- _fields.push({
- header: (0,external_wp_i18n_namespaceObject.__)('Description'),
- id: 'description',
- getValue: ({
- item
- }) => item.description,
- render: ({
- item
- }) => {
- return item.description ? (0,external_React_.createElement)("span", {
- className: "page-templates-description"
- }, (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(item.description)) : view.type === LAYOUT_TABLE && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- variant: "muted",
- "aria-hidden": "true"
- }, "\u2014"), (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, null, (0,external_wp_i18n_namespaceObject.__)('No description.')));
- },
- maxWidth: 400,
- minWidth: 320,
- enableSorting: false
});
- }
- // TODO: The plan is to support fields reordering, which would require an API like `order` or something
- // similar. With the aforementioned API we wouldn't need to construct the fields array like this.
- _fields.push({
- header: (0,external_wp_i18n_namespaceObject.__)('Author'),
- id: 'author',
- getValue: ({
- item
- }) => item.author_text,
- render: ({
- item
- }) => {
- return (0,external_React_.createElement)(AuthorField, {
- viewType: view.type,
- item: item
- });
- },
- type: ENUMERATION_TYPE,
- elements: authors,
- width: '1%'
- });
- return _fields;
- }, [postType, authors, view.type]);
+ },
+ minWidth: 120,
+ maxWidth: 120,
+ enableSorting: false
+ }, {
+ header: (0,external_wp_i18n_namespaceObject.__)('Template'),
+ id: 'title',
+ getValue: ({
+ item
+ }) => item.title?.rendered,
+ render: ({
+ item
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(page_templates_Title, {
+ item: item,
+ viewType: view.type
+ }),
+ maxWidth: 400,
+ enableHiding: false,
+ enableGlobalSearch: true
+ }, {
+ header: (0,external_wp_i18n_namespaceObject.__)('Description'),
+ id: 'description',
+ render: ({
+ item
+ }) => {
+ return item.description ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "page-templates-description",
+ children: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(item.description)
+ }) : view.type === LAYOUT_TABLE && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ "aria-hidden": "true",
+ children: "\u2014"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ children: (0,external_wp_i18n_namespaceObject.__)('No description.')
+ })]
+ });
+ },
+ maxWidth: 400,
+ minWidth: 320,
+ enableSorting: false,
+ enableGlobalSearch: true
+ }, {
+ header: (0,external_wp_i18n_namespaceObject.__)('Author'),
+ id: 'author',
+ getValue: ({
+ item
+ }) => item.author_text,
+ render: ({
+ item
+ }) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AuthorField, {
+ viewType: view.type,
+ item: item
+ });
+ },
+ elements: authors,
+ width: '1%'
+ }], [authors, view.type]);
const {
data,
paginationInfo
} = (0,external_wp_element_namespaceObject.useMemo)(() => {
- if (!records) {
- return {
- data: page_templates_template_parts_EMPTY_ARRAY,
- paginationInfo: {
- totalItems: 0,
- totalPages: 0
- }
- };
- }
- let filteredData = [...records];
- // Handle global search.
- if (view.search) {
- const normalizedSearch = page_templates_template_parts_normalizeSearchInput(view.search);
- filteredData = filteredData.filter(item => {
- const title = item.title?.rendered || item.slug;
- return page_templates_template_parts_normalizeSearchInput(title).includes(normalizedSearch) || page_templates_template_parts_normalizeSearchInput(item.description).includes(normalizedSearch);
- });
- }
-
- // Handle filters.
- if (view.filters.length > 0) {
- view.filters.forEach(filter => {
- if (filter.field === 'author' && filter.operator === OPERATOR_IN && !!filter.value) {
- filteredData = filteredData.filter(item => {
- return item.author_text === filter.value;
- });
- } else if (filter.field === 'author' && filter.operator === OPERATOR_NOT_IN && !!filter.value) {
- filteredData = filteredData.filter(item => {
- return item.author_text !== filter.value;
- });
- }
- });
- }
-
- // Handle sorting.
- if (view.sort) {
- filteredData = sortByTextFields({
- data: filteredData,
- view,
- fields,
- textFields: ['title', 'author']
- });
- }
- // Handle pagination.
- return getPaginationResults({
- data: filteredData,
- view
- });
+ return filterSortAndPaginate(records, view, fields);
}, [records, view, fields]);
- const resetTemplateAction = useResetTemplateAction();
- const actions = (0,external_wp_element_namespaceObject.useMemo)(() => [resetTemplateAction, deleteTemplateAction, renameTemplateAction, postRevisionsAction], [resetTemplateAction]);
+ const postTypeActions = page_templates_usePostActions({
+ postType: TEMPLATE_POST_TYPE,
+ context: 'list'
+ });
+ const editAction = useEditPostAction();
+ const actions = (0,external_wp_element_namespaceObject.useMemo)(() => [editAction, ...postTypeActions], [postTypeActions, editAction]);
const onChangeView = (0,external_wp_element_namespaceObject.useCallback)(newView => {
if (newView.type !== view.type) {
newView = {
...newView,
layout: {
- ...page_templates_template_parts_defaultConfigPerViewType[newView.type]
+ ...page_templates_defaultConfigPerViewType[newView.type]
}
};
history.push({
@@ -44958,37 +37431,2195 @@ function PageTemplatesTemplateParts({
}
setView(newView);
}, [view.type, setView, history, params]);
- return (0,external_React_.createElement)(Page, {
- className: "edit-site-page-template-template-parts-dataviews",
- title: postType === constants_TEMPLATE_POST_TYPE ? (0,external_wp_i18n_namespaceObject.__)('Templates') : (0,external_wp_i18n_namespaceObject.__)('Template Parts'),
- actions: postType === constants_TEMPLATE_POST_TYPE ? (0,external_React_.createElement)(AddNewTemplate, {
- templateType: postType,
- showIcon: false,
- toggleProps: {
- variant: 'primary'
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Page, {
+ className: "edit-site-page-templates",
+ title: (0,external_wp_i18n_namespaceObject.__)('Templates'),
+ actions: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(add_new_template, {}),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DataViews, {
+ paginationInfo: paginationInfo,
+ fields: fields,
+ actions: actions,
+ data: data,
+ isLoading: isLoadingData,
+ view: view,
+ onChangeView: onChangeView,
+ onSelectionChange: onSelectionChange,
+ selection: selection,
+ setSelection: setSelection
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-button/index.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+function SidebarButton(props) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ ...props,
+ className: dist_clsx('edit-site-sidebar-button', props.className)
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen/index.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+
+const {
+ useHistory: sidebar_navigation_screen_useHistory,
+ useLocation: sidebar_navigation_screen_useLocation
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+function SidebarNavigationScreen({
+ isRoot,
+ title,
+ actions,
+ meta,
+ content,
+ footer,
+ description,
+ backPath: backPathProp
+}) {
+ const {
+ dashboardLink,
+ dashboardLinkText,
+ previewingThemeName
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getSettings
+ } = lock_unlock_unlock(select(store));
+ const currentlyPreviewingThemeId = currentlyPreviewingTheme();
+ return {
+ dashboardLink: getSettings().__experimentalDashboardLink,
+ dashboardLinkText: getSettings().__experimentalDashboardLinkText,
+ // Do not call `getTheme` with null, it will cause a request to
+ // the server.
+ previewingThemeName: currentlyPreviewingThemeId ? select(external_wp_coreData_namespaceObject.store).getTheme(currentlyPreviewingThemeId)?.name?.rendered : undefined
+ };
+ }, []);
+ const location = sidebar_navigation_screen_useLocation();
+ const history = sidebar_navigation_screen_useHistory();
+ const {
+ navigate
+ } = (0,external_wp_element_namespaceObject.useContext)(SidebarNavigationContext);
+ const backPath = backPathProp !== null && backPathProp !== void 0 ? backPathProp : location.state?.backPath;
+ const icon = (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_right : chevron_left;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ className: dist_clsx('edit-site-sidebar-navigation-screen__main', {
+ 'has-footer': !!footer
+ }),
+ spacing: 0,
+ justify: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ spacing: 3,
+ alignment: "flex-start",
+ className: "edit-site-sidebar-navigation-screen__title-icon",
+ children: [!isRoot && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarButton, {
+ onClick: () => {
+ history.push(backPath);
+ navigate('back');
+ },
+ icon: icon,
+ label: (0,external_wp_i18n_namespaceObject.__)('Back'),
+ showTooltip: false
+ }), isRoot && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarButton, {
+ icon: icon,
+ label: dashboardLinkText || (0,external_wp_i18n_namespaceObject.__)('Go to the Dashboard'),
+ href: dashboardLink || 'index.php'
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
+ className: "edit-site-sidebar-navigation-screen__title",
+ color: '#e0e0e0' /* $gray-200 */,
+ level: 1,
+ size: 20,
+ children: !isPreviewingTheme() ? title : (0,external_wp_i18n_namespaceObject.sprintf)('Previewing %1$s: %2$s', previewingThemeName, title)
+ }), actions && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-sidebar-navigation-screen__actions",
+ children: actions
+ })]
+ }), meta && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-sidebar-navigation-screen__meta",
+ children: meta
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "edit-site-sidebar-navigation-screen__content",
+ children: [description && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-site-sidebar-navigation-screen__description",
+ children: description
+ }), content]
+ })]
+ }), footer && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("footer", {
+ className: "edit-site-sidebar-navigation-screen__footer",
+ children: footer
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left-small.js
+/**
+ * WordPress dependencies
+ */
+
+
+const chevronLeftSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"
+ })
+});
+/* harmony default export */ const chevron_left_small = (chevronLeftSmall);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right-small.js
+/**
+ * WordPress dependencies
+ */
+
+
+const chevronRightSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"
+ })
+});
+/* harmony default export */ const chevron_right_small = (chevronRightSmall);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-item/index.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+const {
+ useHistory: sidebar_navigation_item_useHistory
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+function SidebarNavigationItem({
+ className,
+ icon,
+ withChevron = false,
+ suffix,
+ uid,
+ params,
+ onClick,
+ children,
+ ...props
+}) {
+ const history = sidebar_navigation_item_useHistory();
+ const {
+ navigate
+ } = (0,external_wp_element_namespaceObject.useContext)(SidebarNavigationContext);
+ // If there is no custom click handler, create one that navigates to `params`.
+ function handleClick(e) {
+ if (onClick) {
+ onClick(e);
+ navigate('forward');
+ } else if (params) {
+ e.preventDefault();
+ history.push(params);
+ navigate('forward', `[id="${uid}"]`);
+ }
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItem, {
+ className: dist_clsx('edit-site-sidebar-navigation-item', {
+ 'with-suffix': !withChevron && suffix
+ }, className),
+ onClick: handleClick,
+ id: uid,
+ ...props,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "flex-start",
+ children: [icon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ style: {
+ fill: 'currentcolor'
+ },
+ icon: icon,
+ size: 24
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexBlock, {
+ children: children
+ }), withChevron && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left_small : chevron_right_small,
+ className: "edit-site-sidebar-navigation-item__drilldown-indicator",
+ size: 24
+ }), !withChevron && suffix]
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js
+/**
+ * WordPress dependencies
+ */
+
+
+function SidebarNavigationScreenDetailsPanelLabel({
+ children
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ className: "edit-site-sidebar-navigation-details-screen-panel__label",
+ children: children
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+function SidebarNavigationScreenDetailsPanelRow({
+ label,
+ children,
+ className,
+ ...extraProps
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
+ spacing: 5,
+ alignment: "left",
+ className: dist_clsx('edit-site-sidebar-navigation-details-screen-panel__row', className),
+ ...extraProps,
+ children: children
+ }, label);
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js
+/**
+ * WordPress dependencies
+ */
+
+
+function SidebarNavigationScreenDetailsPanelValue({
+ children
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ className: "edit-site-sidebar-navigation-details-screen-panel__value",
+ children: children
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-details-panel/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+function SidebarNavigationScreenDetailsPanel({
+ title,
+ children,
+ spacing
+}) {
+ return /*#__PURE__*/_jsxs(VStack, {
+ className: "edit-site-sidebar-navigation-details-screen-panel",
+ spacing: spacing,
+ children: [title && /*#__PURE__*/_jsx(Heading, {
+ className: "edit-site-sidebar-navigation-details-screen-panel__heading",
+ level: 2,
+ children: title
+ }), children]
+ });
+}
+
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-details-footer/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+function SidebarNavigationScreenDetailsFooter({
+ record,
+ ...otherProps
+}) {
+ var _record$_links$predec, _record$_links$versio;
+ /*
+ * There might be other items in the future,
+ * but for now it's just modified date.
+ * Later we might render a list of items and isolate
+ * the following logic.
+ */
+ const hrefProps = {};
+ const lastRevisionId = (_record$_links$predec = record?._links?.['predecessor-version']?.[0]?.id) !== null && _record$_links$predec !== void 0 ? _record$_links$predec : null;
+ const revisionsCount = (_record$_links$versio = record?._links?.['version-history']?.[0]?.count) !== null && _record$_links$versio !== void 0 ? _record$_links$versio : 0;
+ // Enable the revisions link if there is a last revision and there are more than one revisions.
+ if (lastRevisionId && revisionsCount > 1) {
+ hrefProps.href = (0,external_wp_url_namespaceObject.addQueryArgs)('revision.php', {
+ revision: record?._links['predecessor-version'][0].id
+ });
+ hrefProps.as = 'a';
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ className: "edit-site-sidebar-navigation-screen-details-footer",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationItem, {
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Revisions'),
+ ...hrefProps,
+ ...otherProps,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(SidebarNavigationScreenDetailsPanelRow, {
+ justify: "space-between",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenDetailsPanelLabel, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Last modified')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenDetailsPanelValue, {
+ children: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: is the relative time when the post was last modified. */
+ (0,external_wp_i18n_namespaceObject.__)('<time>%s</time>'), (0,external_wp_date_namespaceObject.humanTimeDiff)(record.modified)), {
+ time: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("time", {
+ dateTime: record.modified
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ className: "edit-site-sidebar-navigation-screen-details-footer__icon",
+ icon: library_backup
+ })]
+ })
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-global-styles/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+const sidebar_navigation_screen_global_styles_noop = () => {};
+function SidebarNavigationItemGlobalStyles(props) {
+ const {
+ openGeneralSidebar
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const {
+ setCanvasMode
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
+ const hasGlobalStyleVariations = (0,external_wp_data_namespaceObject.useSelect)(select => !!select(external_wp_coreData_namespaceObject.store).__experimentalGetCurrentThemeGlobalStylesVariations()?.length, []);
+ if (hasGlobalStyleVariations) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationItem, {
+ ...props,
+ params: {
+ path: '/wp_global_styles'
+ },
+ uid: "global-styles-navigation-item"
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationItem, {
+ ...props,
+ onClick: () => {
+ // Switch to edit mode.
+ setCanvasMode('edit');
+ // Open global styles sidebar.
+ openGeneralSidebar('edit-site/global-styles');
+ }
+ });
+}
+function SidebarNavigationScreenGlobalStylesContent() {
+ const {
+ storedSettings
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getSettings
+ } = lock_unlock_unlock(select(store));
+ return {
+ storedSettings: getSettings()
+ };
+ }, []);
+ const colorVariations = useColorVariations();
+ const typographyVariations = useTypographyVariations();
+ const gap = 3;
+
+ // Wrap in a BlockEditorProvider to ensure that the Iframe's dependencies are
+ // loaded. This is necessary because the Iframe component waits until
+ // the block editor store's `__internalIsInitialized` is true before
+ // rendering the iframe. Without this, the iframe previews will not render
+ // in mobile viewport sizes, where the editor canvas is hidden.
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockEditorProvider, {
+ settings: storedSettings,
+ onChange: sidebar_navigation_screen_global_styles_noop,
+ onInput: sidebar_navigation_screen_global_styles_noop,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 10,
+ className: "edit-site-global-styles-variation-container",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyleVariationsContainer, {
+ gap: gap
+ }), colorVariations?.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorVariations, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Palettes'),
+ gap: gap
+ }), typographyVariations?.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TypographyVariations, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Typography'),
+ gap: gap
+ })]
+ })
+ });
+}
+function SidebarNavigationScreenGlobalStyles({
+ backPath
+}) {
+ const {
+ revisions,
+ isLoading: isLoadingRevisions
+ } = useGlobalStylesRevisions();
+ const {
+ openGeneralSidebar
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const {
+ setIsListViewOpened
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_editor_namespaceObject.store);
+ const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
+ const {
+ setCanvasMode,
+ setEditorCanvasContainerView
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
+ const {
+ isViewMode,
+ isStyleBookOpened,
+ revisionsCount
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ var _globalStyles$_links$;
+ const {
+ getCanvasMode,
+ getEditorCanvasContainerView
+ } = lock_unlock_unlock(select(store));
+ const {
+ getEntityRecord,
+ __experimentalGetCurrentGlobalStylesId
+ } = select(external_wp_coreData_namespaceObject.store);
+ const globalStylesId = __experimentalGetCurrentGlobalStylesId();
+ const globalStyles = globalStylesId ? getEntityRecord('root', 'globalStyles', globalStylesId) : undefined;
+ return {
+ isViewMode: 'view' === getCanvasMode(),
+ isStyleBookOpened: 'style-book' === getEditorCanvasContainerView(),
+ revisionsCount: (_globalStyles$_links$ = globalStyles?._links?.['version-history']?.[0]?.count) !== null && _globalStyles$_links$ !== void 0 ? _globalStyles$_links$ : 0
+ };
+ }, []);
+ const {
+ set: setPreference
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
+ const openGlobalStyles = (0,external_wp_element_namespaceObject.useCallback)(async () => {
+ return Promise.all([setPreference('core', 'distractionFree', false), setCanvasMode('edit'), openGeneralSidebar('edit-site/global-styles')]);
+ }, [setCanvasMode, openGeneralSidebar, setPreference]);
+ const openStyleBook = (0,external_wp_element_namespaceObject.useCallback)(async () => {
+ await openGlobalStyles();
+ // Open the Style Book once the canvas mode is set to edit,
+ // and the global styles sidebar is open. This ensures that
+ // the Style Book is not prematurely closed.
+ setEditorCanvasContainerView('style-book');
+ setIsListViewOpened(false);
+ }, [openGlobalStyles, setEditorCanvasContainerView, setIsListViewOpened]);
+ const openRevisions = (0,external_wp_element_namespaceObject.useCallback)(async () => {
+ await openGlobalStyles();
+ // Open the global styles revisions once the canvas mode is set to edit,
+ // and the global styles sidebar is open. The global styles UI is responsible
+ // for redirecting to the revisions screen once the editor canvas container
+ // has been set to 'global-styles-revisions'.
+ setEditorCanvasContainerView('global-styles-revisions');
+ }, [openGlobalStyles, setEditorCanvasContainerView]);
+
+ // If there are no revisions, do not render a footer.
+ const hasRevisions = revisionsCount > 0;
+ const modifiedDateTime = revisions?.[0]?.modified;
+ const shouldShowGlobalStylesFooter = hasRevisions && !isLoadingRevisions && modifiedDateTime;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreen, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Styles'),
+ description: (0,external_wp_i18n_namespaceObject.__)('Choose a different style combination for the theme styles.'),
+ backPath: backPath,
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenGlobalStylesContent, {}),
+ footer: shouldShowGlobalStylesFooter && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenDetailsFooter, {
+ record: revisions?.[0],
+ onClick: openRevisions
+ }),
+ actions: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [!isMobileViewport && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarButton, {
+ icon: library_seen,
+ label: (0,external_wp_i18n_namespaceObject.__)('Style Book'),
+ onClick: () => setEditorCanvasContainerView(!isStyleBookOpened ? 'style-book' : undefined),
+ isPressed: isStyleBookOpened
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarButton, {
+ icon: edit,
+ label: (0,external_wp_i18n_namespaceObject.__)('Edit styles'),
+ onClick: async () => await openGlobalStyles()
+ })]
+ })
+ }), isStyleBookOpened && !isMobileViewport && isViewMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(style_book, {
+ enableResizing: false,
+ isSelected: () => false,
+ onClick: openStyleBook,
+ onSelect: openStyleBook,
+ showCloseButton: false,
+ showTabs: false
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/navigation.js
+/**
+ * WordPress dependencies
+ */
+
+
+const navigation = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"
+ })
+});
+/* harmony default export */ const library_navigation = (navigation);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-main/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+
+
+function SidebarNavigationScreenMain() {
+ const {
+ setEditorCanvasContainerView
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
+
+ // Clear the editor canvas container view when accessing the main navigation screen.
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ setEditorCanvasContainerView(undefined);
+ }, [setEditorCanvasContainerView]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreen, {
+ isRoot: true,
+ title: (0,external_wp_i18n_namespaceObject.__)('Design'),
+ description: (0,external_wp_i18n_namespaceObject.__)('Customize the appearance of your website using the block editor.'),
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationItem, {
+ uid: "navigation-navigation-item",
+ params: {
+ postType: NAVIGATION_POST_TYPE
+ },
+ withChevron: true,
+ icon: library_navigation,
+ children: (0,external_wp_i18n_namespaceObject.__)('Navigation')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationItemGlobalStyles, {
+ uid: "styles-navigation-item",
+ withChevron: true,
+ icon: library_styles,
+ children: (0,external_wp_i18n_namespaceObject.__)('Styles')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationItem, {
+ uid: "page-navigation-item",
+ params: {
+ postType: 'page'
+ },
+ withChevron: true,
+ icon: library_page,
+ children: (0,external_wp_i18n_namespaceObject.__)('Pages')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationItem, {
+ uid: "template-navigation-item",
+ params: {
+ postType: TEMPLATE_POST_TYPE
+ },
+ withChevron: true,
+ icon: library_layout,
+ children: (0,external_wp_i18n_namespaceObject.__)('Templates')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationItem, {
+ uid: "patterns-navigation-item",
+ params: {
+ postType: PATTERN_TYPES.user
+ },
+ withChevron: true,
+ icon: library_symbol,
+ children: (0,external_wp_i18n_namespaceObject.__)('Patterns')
+ })]
+ })
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menus/constants.js
+// This requested is preloaded in `gutenberg_preload_navigation_posts`.
+// As unbounded queries are limited to 100 by `fetchAllMiddleware`
+// on apiFetch this query is limited to 100.
+// These parameters must be kept aligned with those in
+// lib/compat/wordpress-6.3/navigation-block-preloading.php
+// and
+// block-library/src/navigation/constants.js
+const PRELOADED_NAVIGATION_MENUS_QUERY = {
+ per_page: 100,
+ status: ['publish', 'draft'],
+ order: 'desc',
+ orderby: 'date'
+};
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+const notEmptyString = testString => testString?.trim()?.length > 0;
+function rename_modal_RenameModal({
+ menuTitle,
+ onClose,
+ onSave
+}) {
+ const [editedMenuTitle, setEditedMenuTitle] = (0,external_wp_element_namespaceObject.useState)(menuTitle);
+ const titleHasChanged = editedMenuTitle !== menuTitle;
+ const isEditedMenuTitleValid = titleHasChanged && notEmptyString(editedMenuTitle);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Rename'),
+ onRequestClose: onClose,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ className: "sidebar-navigation__rename-modal-form",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "3",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ value: editedMenuTitle,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Navigation title'),
+ onChange: setEditedMenuTitle
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ onClick: onClose,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ __experimentalIsFocusable: true,
+ disabled: !isEditedMenuTitleValid,
+ variant: "primary",
+ type: "submit",
+ onClick: e => {
+ e.preventDefault();
+ if (!isEditedMenuTitleValid) {
+ return;
+ }
+ onSave({
+ title: editedMenuTitle
+ });
+
+ // Immediate close avoids ability to hit save multiple times.
+ onClose();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Save')
+ })]
+ })]
+ })
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+function DeleteConfirmDialog({
+ onClose,
+ onConfirm
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
+ isOpen: true,
+ onConfirm: () => {
+ onConfirm();
+
+ // Immediate close avoids ability to hit delete multiple times.
+ onClose();
+ },
+ onCancel: onClose,
+ confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Delete'),
+ size: "medium",
+ children: (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to delete this Navigation Menu?')
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+const {
+ useHistory: more_menu_useHistory
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+const POPOVER_PROPS = {
+ position: 'bottom right'
+};
+function ScreenNavigationMoreMenu(props) {
+ const {
+ onDelete,
+ onSave,
+ onDuplicate,
+ menuTitle,
+ menuId
+ } = props;
+ const [renameModalOpen, setRenameModalOpen] = (0,external_wp_element_namespaceObject.useState)(false);
+ const [deleteConfirmDialogOpen, setDeleteConfirmDialogOpen] = (0,external_wp_element_namespaceObject.useState)(false);
+ const history = more_menu_useHistory();
+ const closeModals = () => {
+ setRenameModalOpen(false);
+ setDeleteConfirmDialogOpen(false);
+ };
+ const openRenameModal = () => setRenameModalOpen(true);
+ const openDeleteConfirmDialog = () => setDeleteConfirmDialogOpen(true);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
+ className: "sidebar-navigation__more-menu",
+ label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
+ icon: more_vertical,
+ popoverProps: POPOVER_PROPS,
+ children: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ openRenameModal();
+ // Close the dropdown after opening the modal.
+ onClose();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Rename')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ history.push({
+ postId: menuId,
+ postType: 'wp_navigation',
+ canvas: 'edit'
+ });
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Edit')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ onDuplicate();
+ onClose();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Duplicate')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ isDestructive: true,
+ onClick: () => {
+ openDeleteConfirmDialog();
+
+ // Close the dropdown after opening the modal.
+ onClose();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Delete')
+ })]
+ })
+ })
+ }), deleteConfirmDialogOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DeleteConfirmDialog, {
+ onClose: closeModals,
+ onConfirm: onDelete
+ }), renameModalOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(rename_modal_RenameModal, {
+ onClose: closeModals,
+ menuTitle: menuTitle,
+ onSave: onSave
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-up.js
+/**
+ * WordPress dependencies
+ */
+
+
+const chevronUp = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"
+ })
+});
+/* harmony default export */ const chevron_up = (chevronUp);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-down.js
+/**
+ * WordPress dependencies
+ */
+
+
+const chevronDown = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"
+ })
+});
+/* harmony default export */ const chevron_down = (chevronDown);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+const leaf_more_menu_POPOVER_PROPS = {
+ className: 'block-editor-block-settings-menu__popover',
+ placement: 'bottom-start'
+};
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+const {
+ useHistory: leaf_more_menu_useHistory
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+function LeafMoreMenu(props) {
+ const history = leaf_more_menu_useHistory();
+ const {
+ block
+ } = props;
+ const {
+ clientId
+ } = block;
+ const {
+ moveBlocksDown,
+ moveBlocksUp,
+ removeBlocks
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
+ const removeLabel = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: block name */
+ (0,external_wp_i18n_namespaceObject.__)('Remove %s'), (0,external_wp_blockEditor_namespaceObject.BlockTitle)({
+ clientId,
+ maximumLength: 25
+ }));
+ const goToLabel = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: block name */
+ (0,external_wp_i18n_namespaceObject.__)('Go to %s'), (0,external_wp_blockEditor_namespaceObject.BlockTitle)({
+ clientId,
+ maximumLength: 25
+ }));
+ const rootClientId = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getBlockRootClientId
+ } = select(external_wp_blockEditor_namespaceObject.store);
+ return getBlockRootClientId(clientId);
+ }, [clientId]);
+ const onGoToPage = (0,external_wp_element_namespaceObject.useCallback)(selectedBlock => {
+ const {
+ attributes,
+ name
+ } = selectedBlock;
+ if (attributes.kind === 'post-type' && attributes.id && attributes.type && history) {
+ const {
+ params
+ } = history.getLocationWithParams();
+ history.push({
+ postType: attributes.type,
+ postId: attributes.id,
+ canvas: 'edit'
+ }, {
+ backPath: params
+ });
+ }
+ if (name === 'core/page-list-item' && attributes.id && history) {
+ const {
+ params
+ } = history.getLocationWithParams();
+ history.push({
+ postType: 'page',
+ postId: attributes.id,
+ canvas: 'edit'
+ }, {
+ backPath: params
+ });
+ }
+ }, [history]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
+ icon: more_vertical,
+ label: (0,external_wp_i18n_namespaceObject.__)('Options'),
+ className: "block-editor-block-settings-menu",
+ popoverProps: leaf_more_menu_POPOVER_PROPS,
+ noIcons: true,
+ ...props,
+ children: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: chevron_up,
+ onClick: () => {
+ moveBlocksUp([clientId], rootClientId);
+ onClose();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Move up')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: chevron_down,
+ onClick: () => {
+ moveBlocksDown([clientId], rootClientId);
+ onClose();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Move down')
+ }), block.attributes?.type === 'page' && block.attributes?.id && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ onGoToPage(block);
+ onClose();
+ },
+ children: goToLabel
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ removeBlocks([clientId], false);
+ onClose();
+ },
+ children: removeLabel
+ })
+ })]
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+const {
+ PrivateListView
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+
+// Needs to be kept in sync with the query used at packages/block-library/src/page-list/edit.js.
+const MAX_PAGE_COUNT = 100;
+const PAGES_QUERY = ['postType', 'page', {
+ per_page: MAX_PAGE_COUNT,
+ _fields: ['id', 'link', 'menu_order', 'parent', 'title', 'type'],
+ // TODO: When https://core.trac.wordpress.org/ticket/39037 REST API support for multiple orderby
+ // values is resolved, update 'orderby' to [ 'menu_order', 'post_title' ] to provide a consistent
+ // sort.
+ orderby: 'menu_order',
+ order: 'asc'
+}];
+function NavigationMenuContent({
+ rootClientId
+}) {
+ const {
+ listViewRootClientId,
+ isLoading
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ areInnerBlocksControlled,
+ getBlockName,
+ getBlockCount,
+ getBlockOrder
+ } = select(external_wp_blockEditor_namespaceObject.store);
+ const {
+ isResolving
+ } = select(external_wp_coreData_namespaceObject.store);
+ const blockClientIds = getBlockOrder(rootClientId);
+ const hasOnlyPageListBlock = blockClientIds.length === 1 && getBlockName(blockClientIds[0]) === 'core/page-list';
+ const pageListHasBlocks = hasOnlyPageListBlock && getBlockCount(blockClientIds[0]) > 0;
+ const isLoadingPages = isResolving('getEntityRecords', PAGES_QUERY);
+ return {
+ listViewRootClientId: pageListHasBlocks ? blockClientIds[0] : rootClientId,
+ // This is a small hack to wait for the navigation block
+ // to actually load its inner blocks.
+ isLoading: !areInnerBlocksControlled(rootClientId) || isLoadingPages
+ };
+ }, [rootClientId]);
+ const {
+ replaceBlock,
+ __unstableMarkNextChangeAsNotPersistent
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
+ const offCanvasOnselect = (0,external_wp_element_namespaceObject.useCallback)(block => {
+ if (block.name === 'core/navigation-link' && !block.attributes.url) {
+ __unstableMarkNextChangeAsNotPersistent();
+ replaceBlock(block.clientId, (0,external_wp_blocks_namespaceObject.createBlock)('core/navigation-link', block.attributes));
+ }
+ }, [__unstableMarkNextChangeAsNotPersistent, replaceBlock]);
+
+ // The hidden block is needed because it makes block edit side effects trigger.
+ // For example a navigation page list load its items has an effect on edit to load its items.
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [!isLoading && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivateListView, {
+ rootClientId: listViewRootClientId,
+ onSelect: offCanvasOnselect,
+ blockSettingsMenu: LeafMoreMenu,
+ showAppender: false
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockList, {})
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+const navigation_menu_editor_noop = () => {};
+function NavigationMenuEditor({
+ navigationMenuId
+}) {
+ const {
+ storedSettings
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getSettings
+ } = lock_unlock_unlock(select(store));
+ return {
+ storedSettings: getSettings()
+ };
+ }, []);
+ const blocks = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ if (!navigationMenuId) {
+ return [];
+ }
+ return [(0,external_wp_blocks_namespaceObject.createBlock)('core/navigation', {
+ ref: navigationMenuId
+ })];
+ }, [navigationMenuId]);
+ if (!navigationMenuId || !blocks?.length) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockEditorProvider, {
+ settings: storedSettings,
+ value: blocks,
+ onChange: navigation_menu_editor_noop,
+ onInput: navigation_menu_editor_noop,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-sidebar-navigation-screen-navigation-menus__content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationMenuContent, {
+ rootClientId: blocks[0].clientId
+ })
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+// Copied from packages/block-library/src/navigation/edit/navigation-menu-selector.js.
+function buildNavigationLabel(title, id, status) {
+ if (!title?.rendered) {
+ /* translators: %s is the index of the menu in the list of menus. */
+ return (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('(no title %s)'), id);
+ }
+ if (status === 'publish') {
+ return (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title?.rendered);
+ }
+ return (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %1s: title of the menu; %2s: status of the menu (draft, pending, etc.).
+ (0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title?.rendered), status);
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+function SingleNavigationMenu({
+ navigationMenu,
+ backPath,
+ handleDelete,
+ handleDuplicate,
+ handleSave
+}) {
+ const menuTitle = navigationMenu?.title?.rendered;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenWrapper, {
+ actions: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ScreenNavigationMoreMenu, {
+ menuId: navigationMenu?.id,
+ menuTitle: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(menuTitle),
+ onDelete: handleDelete,
+ onSave: handleSave,
+ onDuplicate: handleDuplicate
+ })
+ }),
+ backPath: backPath,
+ title: buildNavigationLabel(navigationMenu?.title, navigationMenu?.id, navigationMenu?.status),
+ description: (0,external_wp_i18n_namespaceObject.__)('Navigation Menus are a curated collection of blocks that allow visitors to get around your site.'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationMenuEditor, {
+ navigationMenuId: navigationMenu?.id
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menu/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+const {
+ useLocation: sidebar_navigation_screen_navigation_menu_useLocation
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+const postType = `wp_navigation`;
+function SidebarNavigationScreenNavigationMenu({
+ backPath
+}) {
+ const {
+ params: {
+ postId
+ }
+ } = sidebar_navigation_screen_navigation_menu_useLocation();
+ const {
+ record: navigationMenu,
+ isResolving
+ } = (0,external_wp_coreData_namespaceObject.useEntityRecord)('postType', postType, postId);
+ const {
+ isSaving,
+ isDeleting
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ isSavingEntityRecord,
+ isDeletingEntityRecord
+ } = select(external_wp_coreData_namespaceObject.store);
+ return {
+ isSaving: isSavingEntityRecord('postType', postType, postId),
+ isDeleting: isDeletingEntityRecord('postType', postType, postId)
+ };
+ }, [postId]);
+ const isLoading = isResolving || isSaving || isDeleting;
+ const menuTitle = navigationMenu?.title?.rendered || navigationMenu?.slug;
+ const {
+ handleSave,
+ handleDelete,
+ handleDuplicate
+ } = useNavigationMenuHandlers();
+ const _handleDelete = () => handleDelete(navigationMenu);
+ const _handleSave = edits => handleSave(navigationMenu, edits);
+ const _handleDuplicate = () => handleDuplicate(navigationMenu);
+ if (isLoading) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenWrapper, {
+ description: (0,external_wp_i18n_namespaceObject.__)('Navigation Menus are a curated collection of blocks that allow visitors to get around your site.'),
+ backPath: backPath,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {
+ className: "edit-site-sidebar-navigation-screen-navigation-menus__loading"
+ })
+ });
+ }
+ if (!isLoading && !navigationMenu) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenWrapper, {
+ description: (0,external_wp_i18n_namespaceObject.__)('Navigation Menu missing.'),
+ backPath: backPath
+ });
+ }
+ if (!navigationMenu?.content?.raw) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenWrapper, {
+ actions: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ScreenNavigationMoreMenu, {
+ menuId: navigationMenu?.id,
+ menuTitle: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(menuTitle),
+ onDelete: _handleDelete,
+ onSave: _handleSave,
+ onDuplicate: _handleDuplicate
+ }),
+ backPath: backPath,
+ title: buildNavigationLabel(navigationMenu?.title, navigationMenu?.id, navigationMenu?.status),
+ description: (0,external_wp_i18n_namespaceObject.__)('This Navigation Menu is empty.')
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SingleNavigationMenu, {
+ navigationMenu: navigationMenu,
+ backPath: backPath,
+ handleDelete: _handleDelete,
+ handleSave: _handleSave,
+ handleDuplicate: _handleDuplicate
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+const {
+ useHistory: use_navigation_menu_handlers_useHistory
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+function useDeleteNavigationMenu() {
+ const {
+ deleteEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const {
+ createSuccessNotice,
+ createErrorNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ const history = use_navigation_menu_handlers_useHistory();
+ const handleDelete = async navigationMenu => {
+ const postId = navigationMenu?.id;
+ try {
+ await deleteEntityRecord('postType', postType, postId, {
+ force: true
+ }, {
+ throwOnError: true
+ });
+ createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Navigation Menu successfully deleted.'), {
+ type: 'snackbar'
+ });
+ history.push({
+ postType: 'wp_navigation'
+ });
+ } catch (error) {
+ createErrorNotice((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: error message describing why the navigation menu could not be deleted. */
+ (0,external_wp_i18n_namespaceObject.__)(`Unable to delete Navigation Menu (%s).`), error?.message), {
+ type: 'snackbar'
+ });
+ }
+ };
+ return handleDelete;
+}
+function useSaveNavigationMenu() {
+ const {
+ getEditedEntityRecord
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getEditedEntityRecord: getEditedEntityRecordSelector
+ } = select(external_wp_coreData_namespaceObject.store);
+ return {
+ getEditedEntityRecord: getEditedEntityRecordSelector
+ };
+ }, []);
+ const {
+ editEntityRecord,
+ __experimentalSaveSpecifiedEntityEdits: saveSpecifiedEntityEdits
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const {
+ createSuccessNotice,
+ createErrorNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ const handleSave = async (navigationMenu, edits) => {
+ if (!edits) {
+ return;
+ }
+ const postId = navigationMenu?.id;
+ // Prepare for revert in case of error.
+ const originalRecord = getEditedEntityRecord('postType', NAVIGATION_POST_TYPE, postId);
+
+ // Apply the edits.
+ editEntityRecord('postType', postType, postId, edits);
+ const recordPropertiesToSave = Object.keys(edits);
+
+ // Attempt to persist.
+ try {
+ await saveSpecifiedEntityEdits('postType', postType, postId, recordPropertiesToSave, {
+ throwOnError: true
+ });
+ createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Renamed Navigation Menu'), {
+ type: 'snackbar'
+ });
+ } catch (error) {
+ // Revert to original in case of error.
+ editEntityRecord('postType', postType, postId, originalRecord);
+ createErrorNotice((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: error message describing why the navigation menu could not be renamed. */
+ (0,external_wp_i18n_namespaceObject.__)(`Unable to rename Navigation Menu (%s).`), error?.message), {
+ type: 'snackbar'
+ });
+ }
+ };
+ return handleSave;
+}
+function useDuplicateNavigationMenu() {
+ const history = use_navigation_menu_handlers_useHistory();
+ const {
+ saveEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const {
+ createSuccessNotice,
+ createErrorNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ const handleDuplicate = async navigationMenu => {
+ const menuTitle = navigationMenu?.title?.rendered || navigationMenu?.slug;
+ try {
+ const savedRecord = await saveEntityRecord('postType', postType, {
+ title: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Navigation menu title */
+ (0,external_wp_i18n_namespaceObject.__)('%s (Copy)'), menuTitle),
+ content: navigationMenu?.content?.raw,
+ status: 'publish'
+ }, {
+ throwOnError: true
+ });
+ if (savedRecord) {
+ createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Duplicated Navigation Menu'), {
+ type: 'snackbar'
+ });
+ history.push({
+ postType: postType,
+ postId: savedRecord.id
+ });
}
- }) : (0,external_React_.createElement)(AddNewTemplatePart, null)
- }, (0,external_React_.createElement)(DataViews, {
- paginationInfo: paginationInfo,
- fields: fields,
+ } catch (error) {
+ createErrorNotice((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: error message describing why the navigation menu could not be deleted. */
+ (0,external_wp_i18n_namespaceObject.__)(`Unable to duplicate Navigation Menu (%s).`), error?.message), {
+ type: 'snackbar'
+ });
+ }
+ };
+ return handleDuplicate;
+}
+function useNavigationMenuHandlers() {
+ return {
+ handleDelete: useDeleteNavigationMenu(),
+ handleSave: useSaveNavigationMenu(),
+ handleDuplicate: useDuplicateNavigationMenu()
+ };
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menus/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+
+
+// Copied from packages/block-library/src/navigation/edit/navigation-menu-selector.js.
+
+function buildMenuLabel(title, id, status) {
+ if (!title) {
+ /* translators: %s is the index of the menu in the list of menus. */
+ return (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('(no title %s)'), id);
+ }
+ if (status === 'publish') {
+ return (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title);
+ }
+ return (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %1s: title of the menu; %2s: status of the menu (draft, pending, etc.).
+ (0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title), status);
+}
+
+// Save a boolean to prevent us creating a fallback more than once per session.
+let hasCreatedFallback = false;
+function SidebarNavigationScreenNavigationMenus({
+ backPath
+}) {
+ const {
+ records: navigationMenus,
+ isResolving: isResolvingNavigationMenus,
+ hasResolved: hasResolvedNavigationMenus
+ } = (0,external_wp_coreData_namespaceObject.useEntityRecords)('postType', NAVIGATION_POST_TYPE, PRELOADED_NAVIGATION_MENUS_QUERY);
+ const isLoading = isResolvingNavigationMenus && !hasResolvedNavigationMenus;
+ const {
+ getNavigationFallbackId
+ } = lock_unlock_unlock((0,external_wp_data_namespaceObject.useSelect)(external_wp_coreData_namespaceObject.store));
+ const firstNavigationMenu = navigationMenus?.[0];
+
+ // Save a boolean to prevent us creating a fallback more than once per session.
+ if (firstNavigationMenu) {
+ hasCreatedFallback = true;
+ }
+
+ // If there is no navigation menu found
+ // then trigger fallback algorithm to create one.
+ if (!firstNavigationMenu && !isResolvingNavigationMenus && hasResolvedNavigationMenus && !hasCreatedFallback) {
+ getNavigationFallbackId();
+ }
+ const {
+ handleSave,
+ handleDelete,
+ handleDuplicate
+ } = useNavigationMenuHandlers();
+ const hasNavigationMenus = !!navigationMenus?.length;
+ if (isLoading) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenWrapper, {
+ backPath: backPath,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {
+ className: "edit-site-sidebar-navigation-screen-navigation-menus__loading"
+ })
+ });
+ }
+ if (!isLoading && !hasNavigationMenus) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenWrapper, {
+ description: (0,external_wp_i18n_namespaceObject.__)('No Navigation Menus found.'),
+ backPath: backPath
+ });
+ }
+
+ // if single menu then render it
+ if (navigationMenus?.length === 1) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SingleNavigationMenu, {
+ navigationMenu: firstNavigationMenu,
+ backPath: backPath,
+ handleDelete: () => handleDelete(firstNavigationMenu),
+ handleDuplicate: () => handleDuplicate(firstNavigationMenu),
+ handleSave: edits => handleSave(firstNavigationMenu, edits)
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenWrapper, {
+ backPath: backPath,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ children: navigationMenus?.map(({
+ id,
+ title,
+ status
+ }, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavMenuItem, {
+ postId: id,
+ withChevron: true,
+ icon: library_navigation,
+ children: buildMenuLabel(title?.rendered, index + 1, status)
+ }, id))
+ })
+ });
+}
+function SidebarNavigationScreenWrapper({
+ children,
+ actions,
+ title,
+ description,
+ backPath
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreen, {
+ title: title || (0,external_wp_i18n_namespaceObject.__)('Navigation'),
actions: actions,
- data: data,
- isLoading: isLoadingData,
- view: view,
- onChangeView: onChangeView,
- onSelectionChange: onSelectionChange,
- deferredRendering: !view.hiddenFields?.includes('preview'),
- supportedLayouts: page_templates_template_parts_SUPPORTED_LAYOUTS
- }));
+ description: description || (0,external_wp_i18n_namespaceObject.__)('Manage your Navigation Menus.'),
+ backPath: backPath,
+ content: children
+ });
}
+const NavMenuItem = ({
+ postId,
+ ...props
+}) => {
+ const linkInfo = useLink({
+ postId,
+ postType: 'wp_navigation'
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationItem, {
+ ...linkInfo,
+ ...props
+ });
+};
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/layout/router.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-dataviews/dataview-item.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+const {
+ useLocation: dataview_item_useLocation
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+function DataViewItem({
+ title,
+ slug,
+ customViewId,
+ type,
+ icon,
+ isActive,
+ isCustom,
+ suffix
+}) {
+ const {
+ params: {
+ postType,
+ layout
+ }
+ } = dataview_item_useLocation();
+ const iconToUse = icon || VIEW_LAYOUTS.find(v => v.type === type).icon;
+ let activeView = isCustom ? customViewId : slug;
+ if (activeView === 'all') {
+ activeView = undefined;
+ }
+ const linkInfo = useLink({
+ postType,
+ layout,
+ activeView,
+ isCustom: isCustom ? 'true' : undefined
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "flex-start",
+ className: dist_clsx('edit-site-sidebar-dataviews-dataview-item', {
+ 'is-selected': isActive
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationItem, {
+ icon: iconToUse,
+ ...linkInfo,
+ "aria-current": isActive ? 'true' : undefined,
+ children: title
+ }), suffix]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-templates-browse/content.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+const content_EMPTY_ARRAY = [];
+function TemplateDataviewItem({
+ template,
+ isActive
+}) {
+ const {
+ text,
+ icon
+ } = useAddedBy(template.type, template.id);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DataViewItem, {
+ slug: text,
+ title: text,
+ icon: icon,
+ isActive: isActive,
+ isCustom: false
+ }, text);
+}
+function DataviewsTemplatesSidebarContent({
+ activeView,
+ title
+}) {
+ const {
+ records
+ } = (0,external_wp_coreData_namespaceObject.useEntityRecords)('postType', TEMPLATE_POST_TYPE, {
+ per_page: -1
+ });
+ const firstItemPerAuthorText = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ var _ref;
+ const firstItemPerAuthor = records?.reduce((acc, template) => {
+ const author = template.author_text;
+ if (author && !acc[author]) {
+ acc[author] = template;
+ }
+ return acc;
+ }, {});
+ return (_ref = firstItemPerAuthor && Object.values(firstItemPerAuthor)) !== null && _ref !== void 0 ? _ref : content_EMPTY_ARRAY;
+ }, [records]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DataViewItem, {
+ slug: "all",
+ title: title,
+ icon: library_layout,
+ isActive: activeView === 'all',
+ isCustom: false
+ }), firstItemPerAuthorText.map(template => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplateDataviewItem, {
+ template: template,
+ isActive: activeView === template.author_text
+ }, template.author_text);
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-templates-browse/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+const {
+ useLocation: sidebar_navigation_screen_templates_browse_useLocation
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+function SidebarNavigationScreenTemplatesBrowse({
+ backPath
+}) {
+ const {
+ params: {
+ activeView = 'all'
+ }
+ } = sidebar_navigation_screen_templates_browse_useLocation();
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreen, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Templates'),
+ description: (0,external_wp_i18n_namespaceObject.__)('Create new templates, or reset any customizations made to the templates supplied by your theme.'),
+ backPath: backPath,
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DataviewsTemplatesSidebarContent, {
+ activeView: activeView,
+ title: (0,external_wp_i18n_namespaceObject.__)('All templates')
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/file.js
+/**
+ * WordPress dependencies
+ */
+
+
+const file = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"
+ })
+});
+/* harmony default export */ const library_file = (file);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-patterns/category-item.js
+/**
+ * Internal dependencies
+ */
+
+
+
+
+function CategoryItem({
+ count,
+ icon,
+ id,
+ isActive,
+ label,
+ type
+}) {
+ const linkInfo = useLink({
+ categoryId: id !== TEMPLATE_PART_ALL_AREAS_CATEGORY && id !== PATTERN_DEFAULT_CATEGORY ? id : undefined,
+ postType: type === TEMPLATE_PART_POST_TYPE ? TEMPLATE_PART_POST_TYPE : PATTERN_TYPES.user
+ });
+ if (!count) {
+ return;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationItem, {
+ ...linkInfo,
+ icon: icon,
+ suffix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: count
+ }),
+ "aria-current": isActive ? 'true' : undefined,
+ children: label
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-patterns/use-template-part-areas.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+const useTemplatePartsGroupedByArea = items => {
+ const allItems = items || [];
+ const templatePartAreas = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_editor_namespaceObject.store).__experimentalGetDefaultTemplatePartAreas(), []);
+
+ // Create map of template areas ensuring that default areas are displayed before
+ // any custom registered template part areas.
+ const knownAreas = {
+ header: {},
+ footer: {},
+ sidebar: {},
+ uncategorized: {}
+ };
+ templatePartAreas.forEach(templatePartArea => knownAreas[templatePartArea.area] = {
+ ...templatePartArea,
+ templateParts: []
+ });
+ const groupedByArea = allItems.reduce((accumulator, item) => {
+ const key = accumulator[item.area] ? item.area : TEMPLATE_PART_AREA_DEFAULT_CATEGORY;
+ accumulator[key].templateParts.push(item);
+ return accumulator;
+ }, knownAreas);
+ return groupedByArea;
+};
+function useTemplatePartAreas() {
+ const {
+ records: templateParts,
+ isResolving: isLoading
+ } = (0,external_wp_coreData_namespaceObject.useEntityRecords)('postType', TEMPLATE_PART_POST_TYPE, {
+ per_page: -1
+ });
+ return {
+ hasTemplateParts: templateParts ? !!templateParts.length : false,
+ isLoading,
+ templatePartAreas: useTemplatePartsGroupedByArea(templateParts)
+ };
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-patterns/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+
+
+const {
+ useLocation: sidebar_navigation_screen_patterns_useLocation
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+function CategoriesGroup({
+ templatePartAreas,
+ patternCategories,
+ currentCategory,
+ currentType
+}) {
+ const [allPatterns, ...otherPatterns] = patternCategories;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ className: "edit-site-sidebar-navigation-screen-patterns__group",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CategoryItem, {
+ count: Object.values(templatePartAreas).map(({
+ templateParts
+ }) => templateParts?.length || 0).reduce((acc, val) => acc + val, 0),
+ icon: (0,external_wp_editor_namespaceObject.getTemplatePartIcon)() /* no name, so it provides the fallback icon */,
+ label: (0,external_wp_i18n_namespaceObject.__)('All template parts'),
+ id: TEMPLATE_PART_ALL_AREAS_CATEGORY,
+ type: TEMPLATE_PART_POST_TYPE,
+ isActive: currentCategory === TEMPLATE_PART_ALL_AREAS_CATEGORY && currentType === TEMPLATE_PART_POST_TYPE
+ }, "all"), Object.entries(templatePartAreas).map(([area, {
+ label,
+ templateParts
+ }]) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CategoryItem, {
+ count: templateParts?.length,
+ icon: (0,external_wp_editor_namespaceObject.getTemplatePartIcon)(area),
+ label: label,
+ id: area,
+ type: TEMPLATE_PART_POST_TYPE,
+ isActive: currentCategory === area && currentType === TEMPLATE_PART_POST_TYPE
+ }, area)), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-sidebar-navigation-screen-patterns__divider"
+ }), allPatterns && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CategoryItem, {
+ count: allPatterns.count,
+ label: allPatterns.label,
+ icon: library_file,
+ id: allPatterns.name,
+ type: PATTERN_TYPES.user,
+ isActive: currentCategory === `${allPatterns.name}` && currentType === PATTERN_TYPES.user
+ }, allPatterns.name), otherPatterns.map(category => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CategoryItem, {
+ count: category.count,
+ label: category.label,
+ icon: library_file,
+ id: category.name,
+ type: PATTERN_TYPES.user,
+ isActive: currentCategory === `${category.name}` && currentType === PATTERN_TYPES.user
+ }, category.name))]
+ });
+}
+function SidebarNavigationScreenPatterns({
+ backPath
+}) {
+ const {
+ params: {
+ postType,
+ categoryId
+ }
+ } = sidebar_navigation_screen_patterns_useLocation();
+ const currentType = postType || PATTERN_TYPES.user;
+ const currentCategory = categoryId || (currentType === PATTERN_TYPES.user ? PATTERN_DEFAULT_CATEGORY : TEMPLATE_PART_ALL_AREAS_CATEGORY);
+ const {
+ templatePartAreas,
+ hasTemplateParts,
+ isLoading
+ } = useTemplatePartAreas();
+ const {
+ patternCategories,
+ hasPatterns
+ } = usePatternCategories();
+ const isBlockBasedTheme = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getCurrentTheme()?.is_block_theme, []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreen, {
+ isRoot: !isBlockBasedTheme,
+ title: (0,external_wp_i18n_namespaceObject.__)('Patterns'),
+ description: (0,external_wp_i18n_namespaceObject.__)('Manage what patterns are available when editing the site.'),
+ backPath: backPath,
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [isLoading && (0,external_wp_i18n_namespaceObject.__)('Loading items…'), !isLoading && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [!hasTemplateParts && !hasPatterns && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ className: "edit-site-sidebar-navigation-screen-patterns__group",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItem, {
+ children: (0,external_wp_i18n_namespaceObject.__)('No items found')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CategoriesGroup, {
+ templatePartAreas: templatePartAreas,
+ patternCategories: patternCategories,
+ currentCategory: currentCategory,
+ currentType: currentType
+ })]
+ })]
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-dataviews/add-new-view.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+const {
+ useHistory: add_new_view_useHistory
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+function AddNewItemModalContent({
+ type,
+ setIsAdding
+}) {
+ const history = add_new_view_useHistory();
+ const {
+ saveEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const [title, setTitle] = (0,external_wp_element_namespaceObject.useState)('');
+ const [isSaving, setIsSaving] = (0,external_wp_element_namespaceObject.useState)(false);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ onSubmit: async event => {
+ event.preventDefault();
+ setIsSaving(true);
+ const {
+ getEntityRecords
+ } = (0,external_wp_data_namespaceObject.resolveSelect)(external_wp_coreData_namespaceObject.store);
+ let dataViewTaxonomyId;
+ const dataViewTypeRecords = await getEntityRecords('taxonomy', 'wp_dataviews_type', {
+ slug: type
+ });
+ if (dataViewTypeRecords && dataViewTypeRecords.length > 0) {
+ dataViewTaxonomyId = dataViewTypeRecords[0].id;
+ } else {
+ const record = await saveEntityRecord('taxonomy', 'wp_dataviews_type', {
+ name: type
+ });
+ if (record && record.id) {
+ dataViewTaxonomyId = record.id;
+ }
+ }
+ const savedRecord = await saveEntityRecord('postType', 'wp_dataviews', {
+ title,
+ status: 'publish',
+ wp_dataviews_type: dataViewTaxonomyId,
+ content: JSON.stringify(DEFAULT_VIEWS[type][0].view)
+ });
+ const {
+ params: {
+ postType
+ }
+ } = history.getLocationWithParams();
+ history.push({
+ postType,
+ activeView: savedRecord.id,
+ isCustom: 'true'
+ });
+ setIsSaving(false);
+ setIsAdding(false);
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "5",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Name'),
+ value: title,
+ onChange: setTitle,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('My view'),
+ className: "patterns-create-modal__name-input"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: () => {
+ setIsAdding(false);
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ type: "submit",
+ "aria-disabled": !title || isSaving,
+ isBusy: isSaving,
+ children: (0,external_wp_i18n_namespaceObject.__)('Create')
+ })]
+ })]
+ })
+ });
+}
+function AddNewItem({
+ type
+}) {
+ const [isAdding, setIsAdding] = (0,external_wp_element_namespaceObject.useState)(false);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationItem, {
+ icon: library_plus,
+ onClick: () => {
+ setIsAdding(true);
+ },
+ className: "dataviews__siderbar-content-add-new-item",
+ children: (0,external_wp_i18n_namespaceObject.__)('New view')
+ }), isAdding && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Add new view'),
+ onRequestClose: () => {
+ setIsAdding(false);
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AddNewItemModalContent, {
+ type: type,
+ setIsAdding: setIsAdding
+ })
+ })]
+ });
+}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-dataviews/custom-dataviews-list.js
/**
* WordPress dependencies
*/
+
+
+
+
+
+
/**
* Internal dependencies
*/
@@ -44998,10 +39629,312 @@ function PageTemplatesTemplateParts({
+const {
+ useHistory: custom_dataviews_list_useHistory
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+const custom_dataviews_list_EMPTY_ARRAY = [];
+function RenameItemModalContent({
+ dataviewId,
+ currentTitle,
+ setIsRenaming
+}) {
+ const {
+ editEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const [title, setTitle] = (0,external_wp_element_namespaceObject.useState)(currentTitle);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ onSubmit: async event => {
+ event.preventDefault();
+ await editEntityRecord('postType', 'wp_dataviews', dataviewId, {
+ title
+ });
+ setIsRenaming(false);
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "5",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Name'),
+ value: title,
+ onChange: setTitle,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('My view'),
+ className: "patterns-create-modal__name-input"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: () => {
+ setIsRenaming(false);
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ type: "submit",
+ "aria-disabled": !title,
+ children: (0,external_wp_i18n_namespaceObject.__)('Rename')
+ })]
+ })]
+ })
+ });
+}
+function CustomDataViewItem({
+ dataviewId,
+ isActive
+}) {
+ const history = custom_dataviews_list_useHistory();
+ const {
+ dataview
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getEditedEntityRecord
+ } = select(external_wp_coreData_namespaceObject.store);
+ return {
+ dataview: getEditedEntityRecord('postType', 'wp_dataviews', dataviewId)
+ };
+ }, [dataviewId]);
+ const {
+ deleteEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const type = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ const viewContent = JSON.parse(dataview.content);
+ return viewContent.type;
+ }, [dataview.content]);
+ const [isRenaming, setIsRenaming] = (0,external_wp_element_namespaceObject.useState)(false);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DataViewItem, {
+ title: dataview.title,
+ type: type,
+ isActive: isActive,
+ isCustom: true,
+ customViewId: dataviewId,
+ suffix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
+ icon: more_vertical,
+ label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
+ className: "edit-site-sidebar-dataviews-dataview-item__dropdown-menu",
+ toggleProps: {
+ style: {
+ color: 'inherit'
+ },
+ size: 'small'
+ },
+ children: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ setIsRenaming(true);
+ onClose();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Rename')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: async () => {
+ await deleteEntityRecord('postType', 'wp_dataviews', dataview.id, {
+ force: true
+ });
+ if (isActive) {
+ const {
+ params: {
+ postType
+ }
+ } = history.getLocationWithParams();
+ history.replace({
+ postType
+ });
+ }
+ onClose();
+ },
+ isDestructive: true,
+ children: (0,external_wp_i18n_namespaceObject.__)('Delete')
+ })]
+ })
+ })
+ }), isRenaming && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Rename view'),
+ onRequestClose: () => {
+ setIsRenaming(false);
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RenameItemModalContent, {
+ dataviewId: dataviewId,
+ setIsRenaming: setIsRenaming,
+ currentTitle: dataview.title
+ })
+ })]
+ });
+}
+function useCustomDataViews(type) {
+ const customDataViews = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getEntityRecords
+ } = select(external_wp_coreData_namespaceObject.store);
+ const dataViewTypeRecords = getEntityRecords('taxonomy', 'wp_dataviews_type', {
+ slug: type
+ });
+ if (!dataViewTypeRecords || dataViewTypeRecords.length === 0) {
+ return custom_dataviews_list_EMPTY_ARRAY;
+ }
+ const dataViews = getEntityRecords('postType', 'wp_dataviews', {
+ wp_dataviews_type: dataViewTypeRecords[0].id,
+ orderby: 'date',
+ order: 'asc'
+ });
+ if (!dataViews) {
+ return custom_dataviews_list_EMPTY_ARRAY;
+ }
+ return dataViews;
+ });
+ return customDataViews;
+}
+function CustomDataViewsList({
+ type,
+ activeView,
+ isCustom
+}) {
+ const customDataViews = useCustomDataViews(type);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-sidebar-navigation-screen-dataviews__group-header",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
+ level: 2,
+ children: (0,external_wp_i18n_namespaceObject.__)('Custom Views')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ children: [customDataViews.map(customViewRecord => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomDataViewItem, {
+ dataviewId: customViewRecord.id,
+ isActive: isCustom && Number(activeView) === customViewRecord.id
+ }, customViewRecord.id);
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AddNewItem, {
+ type: type
+ })]
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-dataviews/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Internal dependencies
+ */
+
+
const {
- useLocation: router_useLocation
-} = unlock(external_wp_router_namespaceObject.privateApis);
+ useLocation: sidebar_dataviews_useLocation
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+
+
+
+
+
+function DataViewsSidebarContent() {
+ const {
+ params: {
+ postType,
+ activeView = 'all',
+ isCustom = 'false'
+ }
+ } = sidebar_dataviews_useLocation();
+ if (!postType) {
+ return null;
+ }
+ const isCustomBoolean = isCustom === 'true';
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ children: DEFAULT_VIEWS[postType].map(dataview => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DataViewItem, {
+ slug: dataview.slug,
+ title: dataview.title,
+ icon: dataview.icon,
+ type: dataview.view.type,
+ isActive: !isCustomBoolean && dataview.slug === activeView,
+ isCustom: false
+ }, dataview.slug);
+ })
+ }), window?.__experimentalCustomViews && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomDataViewsList, {
+ activeView: activeView,
+ type: postType,
+ isCustom: true
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/layout/router.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+const {
+ useLocation: router_useLocation,
+ useHistory: router_useHistory
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+function useRedirectOldPaths() {
+ const history = router_useHistory();
+ const {
+ params
+ } = router_useLocation();
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ const {
+ postType,
+ path,
+ categoryType,
+ ...rest
+ } = params;
+ if (path === '/wp_template_part/all') {
+ history.replace({
+ postType: TEMPLATE_PART_POST_TYPE
+ });
+ }
+ if (path === '/page') {
+ history.replace({
+ postType: 'page',
+ ...rest
+ });
+ }
+ if (path === '/wp_template') {
+ history.replace({
+ postType: TEMPLATE_POST_TYPE,
+ ...rest
+ });
+ }
+ if (path === '/patterns') {
+ history.replace({
+ postType: categoryType === TEMPLATE_PART_POST_TYPE ? TEMPLATE_PART_POST_TYPE : PATTERN_TYPES.user,
+ ...rest
+ });
+ }
+ if (path === '/navigation') {
+ history.replace({
+ postType: NAVIGATION_POST_TYPE,
+ ...rest
+ });
+ }
+ }, [history, params]);
+}
function useLayoutAreas() {
const isSiteEditorLoading = useIsSiteEditorLoading();
const {
@@ -45014,39 +39947,51 @@ function useLayoutAreas() {
layout,
isCustom,
canvas
- } = params !== null && params !== void 0 ? params : {};
-
- // Note: Since "sidebar" is not yet supported here,
- // returning undefined from "mobile" means show the sidebar.
+ } = params;
+ const hasEditCanvasMode = canvas === 'edit';
+ useRedirectOldPaths();
- // Regular page
- if (path === '/page') {
+ // Page list
+ if (postType === 'page') {
+ const isListLayout = layout === 'list' || !layout;
return {
+ key: 'pages',
areas: {
- content: undefined,
- preview: (0,external_React_.createElement)(Editor, {
+ sidebar: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreen, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Pages'),
+ backPath: {},
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DataViewsSidebarContent, {})
+ }),
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PagePages, {}),
+ preview: (isListLayout || hasEditCanvasMode) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
isLoading: isSiteEditorLoading
}),
- mobile: canvas === 'edit' ? (0,external_React_.createElement)(Editor, {
+ mobile: hasEditCanvasMode ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
isLoading: isSiteEditorLoading
- }) : undefined
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PagePages, {})
},
widths: {
- content: undefined
+ content: isListLayout ? 380 : undefined
}
};
}
- // List layout is still experimental.
- // Extracted it here out of the conditionals so it doesn't unintentionally becomes stable.
- const isListLayout = isCustom !== 'true' && layout === 'list' && window?.__experimentalAdminViews;
- if (path === '/pages') {
+ // Templates
+ if (postType === TEMPLATE_POST_TYPE) {
+ const isListLayout = isCustom !== 'true' && layout === 'list';
return {
+ key: 'templates',
areas: {
- content: (0,external_React_.createElement)(PagePages, null),
- preview: isListLayout && (0,external_React_.createElement)(Editor, {
+ sidebar: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenTemplatesBrowse, {
+ backPath: {}
+ }),
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PageTemplates, {}),
+ preview: (isListLayout || hasEditCanvasMode) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
isLoading: isSiteEditorLoading
- })
+ }),
+ mobile: hasEditCanvasMode ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
+ isLoading: isSiteEditorLoading
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PageTemplates, {})
},
widths: {
content: isListLayout ? 380 : undefined
@@ -45054,85 +39999,280 @@ function useLayoutAreas() {
};
}
- // Regular other post types
- if (postType && postId) {
+ // Patterns
+ if ([TEMPLATE_PART_POST_TYPE, PATTERN_TYPES.user].includes(postType)) {
return {
+ key: 'patterns',
areas: {
- preview: (0,external_React_.createElement)(Editor, {
- isLoading: isSiteEditorLoading
+ sidebar: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenPatterns, {
+ backPath: {}
}),
- mobile: canvas === 'edit' ? (0,external_React_.createElement)(Editor, {
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DataviewsPatterns, {}),
+ mobile: hasEditCanvasMode ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
+ isLoading: isSiteEditorLoading
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DataviewsPatterns, {}),
+ preview: hasEditCanvasMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
isLoading: isSiteEditorLoading
- }) : undefined
+ })
}
};
}
- // Templates
- if (path === '/wp_template/all') {
+ // Styles
+ if (path === '/wp_global_styles') {
return {
+ key: 'styles',
areas: {
- content: (0,external_React_.createElement)(PageTemplatesTemplateParts, {
- postType: constants_TEMPLATE_POST_TYPE
+ sidebar: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenGlobalStyles, {
+ backPath: {}
}),
- preview: isListLayout && (0,external_React_.createElement)(Editor, {
+ preview: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
isLoading: isSiteEditorLoading
}),
- mobile: (0,external_React_.createElement)(PageTemplatesTemplateParts, {
- postType: constants_TEMPLATE_POST_TYPE
+ mobile: hasEditCanvasMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
+ isLoading: isSiteEditorLoading
})
- },
- widths: {
- content: isListLayout ? 380 : undefined
}
};
}
- // Template parts
- if (path === '/wp_template_part/all') {
+ // Navigation
+ if (postType === NAVIGATION_POST_TYPE) {
+ if (postId) {
+ return {
+ key: 'navigation',
+ areas: {
+ sidebar: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenNavigationMenu, {
+ backPath: {
+ postType: NAVIGATION_POST_TYPE
+ }
+ }),
+ preview: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
+ isLoading: isSiteEditorLoading
+ }),
+ mobile: hasEditCanvasMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
+ isLoading: isSiteEditorLoading
+ })
+ }
+ };
+ }
return {
+ key: 'navigation',
areas: {
- content: (0,external_React_.createElement)(PageTemplatesTemplateParts, {
- postType: TEMPLATE_PART_POST_TYPE
+ sidebar: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenNavigationMenus, {
+ backPath: {}
}),
- preview: isListLayout && (0,external_React_.createElement)(Editor, {
+ preview: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
isLoading: isSiteEditorLoading
}),
- mobile: (0,external_React_.createElement)(PageTemplatesTemplateParts, {
- postType: TEMPLATE_PART_POST_TYPE
+ mobile: hasEditCanvasMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
+ isLoading: isSiteEditorLoading
})
- },
- widths: {
- content: isListLayout ? 380 : undefined
- }
- };
- }
-
- // Patterns
- if (path === '/patterns') {
- return {
- areas: {
- content: (0,external_React_.createElement)(DataviewsPatterns, null),
- mobile: (0,external_React_.createElement)(DataviewsPatterns, null)
}
};
}
// Fallback shows the home page preview
return {
+ key: 'default',
areas: {
- preview: (0,external_React_.createElement)(Editor, {
+ sidebar: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarNavigationScreenMain, {}),
+ preview: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
isLoading: isSiteEditorLoading
}),
- mobile: canvas === 'edit' ? (0,external_React_.createElement)(Editor, {
+ mobile: hasEditCanvasMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditSiteEditor, {
isLoading: isSiteEditorLoading
- }) : undefined
+ })
}
};
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/layout/index.js
+;// CONCATENATED MODULE: ./node_modules/@react-spring/rafz/dist/esm/index.js
+var esm_f=esm_l(),esm_n=e=>esm_c(e,esm_f),esm_m=esm_l();esm_n.write=e=>esm_c(e,esm_m);var esm_d=esm_l();esm_n.onStart=e=>esm_c(e,esm_d);var esm_h=esm_l();esm_n.onFrame=e=>esm_c(e,esm_h);var esm_p=esm_l();esm_n.onFinish=e=>esm_c(e,esm_p);var esm_i=[];esm_n.setTimeout=(e,t)=>{let a=esm_n.now()+t,o=()=>{let F=esm_i.findIndex(z=>z.cancel==o);~F&&esm_i.splice(F,1),esm_u-=~F?1:0},s={time:a,handler:e,cancel:o};return esm_i.splice(esm_w(a),0,s),esm_u+=1,esm_v(),s};var esm_w=e=>~(~esm_i.findIndex(t=>t.time>e)||~esm_i.length);esm_n.cancel=e=>{esm_d.delete(e),esm_h.delete(e),esm_p.delete(e),esm_f.delete(e),esm_m.delete(e)};esm_n.sync=e=>{T=!0,esm_n.batchedUpdates(e),T=!1};esm_n.throttle=e=>{let t;function a(){try{e(...t)}finally{t=null}}function o(...s){t=s,esm_n.onStart(a)}return o.handler=e,o.cancel=()=>{esm_d.delete(a),t=null},o};var esm_y=typeof window<"u"?window.requestAnimationFrame:()=>{};esm_n.use=e=>esm_y=e;esm_n.now=typeof performance<"u"?()=>performance.now():Date.now;esm_n.batchedUpdates=e=>e();esm_n.catch=console.error;esm_n.frameLoop="always";esm_n.advance=()=>{esm_n.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):esm_x()};var esm_r=-1,esm_u=0,T=!1;function esm_c(e,t){T?(t.delete(e),e(0)):(t.add(e),esm_v())}function esm_v(){esm_r<0&&(esm_r=0,esm_n.frameLoop!=="demand"&&esm_y(esm_b))}function esm_R(){esm_r=-1}function esm_b(){~esm_r&&(esm_y(esm_b),esm_n.batchedUpdates(esm_x))}function esm_x(){let e=esm_r;esm_r=esm_n.now();let t=esm_w(esm_r);if(t&&(Q(esm_i.splice(0,t),a=>a.handler()),esm_u-=t),!esm_u){esm_R();return}esm_d.flush(),esm_f.flush(e?Math.min(64,esm_r-e):16.667),esm_h.flush(),esm_m.flush(),esm_p.flush()}function esm_l(){let e=new Set,t=e;return{add(a){esm_u+=t==e&&!e.has(a)?1:0,e.add(a)},delete(a){return esm_u-=t==e&&e.has(a)?1:0,e.delete(a)},flush(a){t.size&&(e=new Set,esm_u-=t.size,Q(t,o=>o(a)&&e.add(o)),esm_u+=e.size,t=e)}}}function Q(e,t){e.forEach(a=>{try{t(a)}catch(o){esm_n.catch(o)}})}var esm_S={count(){return esm_u},isRunning(){return esm_r>=0},clear(){esm_r=-1,esm_i=[],esm_d=esm_l(),esm_f=esm_l(),esm_h=esm_l(),esm_m=esm_l(),esm_p=esm_l(),esm_u=0}};
+;// CONCATENATED MODULE: ./node_modules/@react-spring/shared/dist/esm/index.js
+var ze=Object.defineProperty;var Le=(e,t)=>{for(var r in t)ze(e,r,{get:t[r],enumerable:!0})};var dist_esm_p={};Le(dist_esm_p,{assign:()=>U,colors:()=>dist_esm_c,createStringInterpolator:()=>esm_k,skipAnimation:()=>ee,to:()=>J,willAdvance:()=>dist_esm_S});function Y(){}var mt=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),dist_esm_l={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function bt(e,t){if(dist_esm_l.arr(e)){if(!dist_esm_l.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}var esm_Ve=(e,t)=>e.forEach(t);function xt(e,t,r){if(dist_esm_l.arr(e)){for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);return}for(let n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}var ht=e=>dist_esm_l.und(e)?[]:dist_esm_l.arr(e)?e:[e];function Pe(e,t){if(e.size){let r=Array.from(e);e.clear(),esm_Ve(r,t)}}var yt=(e,...t)=>Pe(e,r=>r(...t)),dist_esm_h=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);var esm_k,J,dist_esm_c=null,ee=!1,dist_esm_S=Y,U=e=>{e.to&&(J=e.to),e.now&&(esm_n.now=e.now),e.colors!==void 0&&(dist_esm_c=e.colors),e.skipAnimation!=null&&(ee=e.skipAnimation),e.createStringInterpolator&&(esm_k=e.createStringInterpolator),e.requestAnimationFrame&&esm_n.use(e.requestAnimationFrame),e.batchedUpdates&&(esm_n.batchedUpdates=e.batchedUpdates),e.willAdvance&&(dist_esm_S=e.willAdvance),e.frameLoop&&(esm_n.frameLoop=e.frameLoop)};var esm_E=new Set,dist_esm_u=[],esm_H=[],A=0,qe={get idle(){return!esm_E.size&&!dist_esm_u.length},start(e){A>e.priority?(esm_E.add(e),esm_n.onStart($e)):(te(e),esm_n(B))},advance:B,sort(e){if(A)esm_n.onFrame(()=>qe.sort(e));else{let t=dist_esm_u.indexOf(e);~t&&(dist_esm_u.splice(t,1),re(e))}},clear(){dist_esm_u=[],esm_E.clear()}};function $e(){esm_E.forEach(te),esm_E.clear(),esm_n(B)}function te(e){dist_esm_u.includes(e)||re(e)}function re(e){dist_esm_u.splice(Ge(dist_esm_u,t=>t.priority>e.priority),0,e)}function B(e){let t=esm_H;for(let r=0;r<dist_esm_u.length;r++){let n=dist_esm_u[r];A=n.priority,n.idle||(dist_esm_S(n),n.advance(e),n.idle||t.push(n))}return A=0,esm_H=dist_esm_u,esm_H.length=0,dist_esm_u=t,dist_esm_u.length>0}function Ge(e,t){let r=e.findIndex(t);return r<0?e.length:r}var ne=(e,t,r)=>Math.min(Math.max(r,e),t);var It={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};var dist_esm_d="[-+]?\\d*\\.?\\d+",esm_M=dist_esm_d+"%";function C(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var oe=new RegExp("rgb"+C(dist_esm_d,dist_esm_d,dist_esm_d)),fe=new RegExp("rgba"+C(dist_esm_d,dist_esm_d,dist_esm_d,dist_esm_d)),ae=new RegExp("hsl"+C(dist_esm_d,esm_M,esm_M)),ie=new RegExp("hsla"+C(dist_esm_d,esm_M,esm_M,dist_esm_d)),se=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ue=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,le=/^#([0-9a-fA-F]{6})$/,esm_ce=/^#([0-9a-fA-F]{8})$/;function be(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=le.exec(e))?parseInt(t[1]+"ff",16)>>>0:dist_esm_c&&dist_esm_c[e]!==void 0?dist_esm_c[e]:(t=oe.exec(e))?(dist_esm_y(t[1])<<24|dist_esm_y(t[2])<<16|dist_esm_y(t[3])<<8|255)>>>0:(t=fe.exec(e))?(dist_esm_y(t[1])<<24|dist_esm_y(t[2])<<16|dist_esm_y(t[3])<<8|me(t[4]))>>>0:(t=se.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=esm_ce.exec(e))?parseInt(t[1],16)>>>0:(t=ue.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ae.exec(e))?(de(esm_pe(t[1]),esm_z(t[2]),esm_z(t[3]))|255)>>>0:(t=ie.exec(e))?(de(esm_pe(t[1]),esm_z(t[2]),esm_z(t[3]))|me(t[4]))>>>0:null}function esm_j(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function de(e,t,r){let n=r<.5?r*(1+t):r+t-r*t,f=2*r-n,o=esm_j(f,n,e+1/3),i=esm_j(f,n,e),s=esm_j(f,n,e-1/3);return Math.round(o*255)<<24|Math.round(i*255)<<16|Math.round(s*255)<<8}function dist_esm_y(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function esm_pe(e){return(parseFloat(e)%360+360)%360/360}function me(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function esm_z(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function D(e){let t=be(e);if(t===null)return e;t=t||0;let r=(t&4278190080)>>>24,n=(t&16711680)>>>16,f=(t&65280)>>>8,o=(t&255)/255;return`rgba(${r}, ${n}, ${f}, ${o})`}var W=(e,t,r)=>{if(dist_esm_l.fun(e))return e;if(dist_esm_l.arr(e))return W({range:e,output:t,extrapolate:r});if(dist_esm_l.str(e.output[0]))return esm_k(e);let n=e,f=n.output,o=n.range||[0,1],i=n.extrapolateLeft||n.extrapolate||"extend",s=n.extrapolateRight||n.extrapolate||"extend",x=n.easing||(a=>a);return a=>{let F=He(a,o);return Ue(a,o[F],o[F+1],f[F],f[F+1],x,i,s,n.map)}};function Ue(e,t,r,n,f,o,i,s,x){let a=x?x(e):e;if(a<t){if(i==="identity")return a;i==="clamp"&&(a=t)}if(a>r){if(s==="identity")return a;s==="clamp"&&(a=r)}return n===f?n:t===r?e<=t?n:f:(t===-1/0?a=-a:r===1/0?a=a-t:a=(a-t)/(r-t),a=o(a),n===-1/0?a=-a:f===1/0?a=a+n:a=a*(f-n)+n,a)}function He(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}var Be=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);let n=r*e,f=t==="end"?Math.floor(n):Math.ceil(n);return ne(0,1,f/e)},P=1.70158,L=P*1.525,xe=P+1,he=2*Math.PI/3,ye=2*Math.PI/4.5,V=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Lt={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>xe*e*e*e-P*e*e,easeOutBack:e=>1+xe*Math.pow(e-1,3)+P*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((L+1)*2*e-L)/2:(Math.pow(2*e-2,2)*((L+1)*(e*2-2)+L)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*he),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*he)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ye))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ye)/2+1,easeInBounce:e=>1-V(1-e),easeOutBounce:V,easeInOutBounce:e=>e<.5?(1-V(1-2*e))/2:(1+V(2*e-1))/2,steps:Be};var esm_g=Symbol.for("FluidValue.get"),dist_esm_m=Symbol.for("FluidValue.observers");var Pt=e=>Boolean(e&&e[esm_g]),ve=e=>e&&e[esm_g]?e[esm_g]():e,esm_qt=e=>e[dist_esm_m]||null;function je(e,t){e.eventObserved?e.eventObserved(t):e(t)}function $t(e,t){let r=e[dist_esm_m];r&&r.forEach(n=>{je(n,t)})}var esm_ge=class{[esm_g];[dist_esm_m];constructor(t){if(!t&&!(t=this.get))throw Error("Unknown getter");De(this,t)}},De=(e,t)=>Ee(e,esm_g,t);function Gt(e,t){if(e[esm_g]){let r=e[dist_esm_m];r||Ee(e,dist_esm_m,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function Qt(e,t){let r=e[dist_esm_m];if(r&&r.has(t)){let n=r.size-1;n?r.delete(t):e[dist_esm_m]=null,e.observerRemoved&&e.observerRemoved(n,t)}}var Ee=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0});var O=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,esm_Oe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,K=new RegExp(`(${O.source})(%|[a-z]+)`,"i"),we=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,dist_esm_b=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;var esm_N=e=>{let[t,r]=We(e);if(!t||dist_esm_h())return e;let n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){let f=window.getComputedStyle(document.documentElement).getPropertyValue(r);return f||e}else{if(r&&dist_esm_b.test(r))return esm_N(r);if(r)return r}return e},We=e=>{let t=dist_esm_b.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]};var _,esm_Ke=(e,t,r,n,f)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${f})`,Xt=e=>{_||(_=dist_esm_c?new RegExp(`(${Object.keys(dist_esm_c).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(o=>ve(o).replace(dist_esm_b,esm_N).replace(esm_Oe,D).replace(_,D)),r=t.map(o=>o.match(O).map(Number)),f=r[0].map((o,i)=>r.map(s=>{if(!(i in s))throw Error('The arity of each "output" value must be equal');return s[i]})).map(o=>W({...e,output:o}));return o=>{let i=!K.test(t[0])&&t.find(x=>K.test(x))?.replace(O,""),s=0;return t[0].replace(O,()=>`${f[s++](o)}${i||""}`).replace(we,esm_Ke)}};var Z="react-spring: ",Te=e=>{let t=e,r=!1;if(typeof t!="function")throw new TypeError(`${Z}once requires a function parameter`);return(...n)=>{r||(t(...n),r=!0)}},Ne=Te(console.warn);function Jt(){Ne(`${Z}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var _e=Te(console.warn);function er(){_e(`${Z}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function esm_or(e){return dist_esm_l.str(e)&&(e[0]=="#"||/\d/.test(e)||!dist_esm_h()&&dist_esm_b.test(e)||e in(dist_esm_c||{}))}var dist_esm_v,q=new WeakMap,Ze=e=>e.forEach(({target:t,contentRect:r})=>q.get(t)?.forEach(n=>n(r)));function Fe(e,t){dist_esm_v||typeof ResizeObserver<"u"&&(dist_esm_v=new ResizeObserver(Ze));let r=q.get(t);return r||(r=new Set,q.set(t,r)),r.add(e),dist_esm_v&&dist_esm_v.observe(t),()=>{let n=q.get(t);!n||(n.delete(e),!n.size&&dist_esm_v&&dist_esm_v.unobserve(t))}}var esm_$=new Set,dist_esm_w,esm_Xe=()=>{let e=()=>{esm_$.forEach(t=>t({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},Ie=e=>(esm_$.add(e),dist_esm_w||(dist_esm_w=esm_Xe()),()=>{esm_$.delete(e),!esm_$.size&&dist_esm_w&&(dist_esm_w(),dist_esm_w=void 0)});var ke=(e,{container:t=document.documentElement}={})=>t===document.documentElement?Ie(e):Fe(e,t);var Se=(e,t,r)=>t-e===0?1:(r-e)/(t-e);var esm_Ye={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},esm_G=class{callback;container;info;constructor(t,r){this.callback=t,this.container=r,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}createAxis=()=>({current:0,progress:0,scrollLength:0});updateAxis=t=>{let r=this.info[t],{length:n,position:f}=esm_Ye[t];r.current=this.container[`scroll${f}`],r.scrollLength=this.container["scroll"+n]-this.container["client"+n],r.progress=Se(0,r.scrollLength,r.current)};update=()=>{this.updateAxis("x"),this.updateAxis("y")};sendEvent=()=>{this.callback(this.info)};advance=()=>{this.update(),this.sendEvent()}};var esm_T=new WeakMap,Ae=new WeakMap,X=new WeakMap,Me=e=>e===document.documentElement?window:e,yr=(e,{container:t=document.documentElement}={})=>{let r=X.get(t);r||(r=new Set,X.set(t,r));let n=new esm_G(e,t);if(r.add(n),!esm_T.has(t)){let o=()=>(r?.forEach(s=>s.advance()),!0);esm_T.set(t,o);let i=Me(t);window.addEventListener("resize",o,{passive:!0}),t!==document.documentElement&&Ae.set(t,ke(o,{container:t})),i.addEventListener("scroll",o,{passive:!0})}let f=esm_T.get(t);return Re(f),()=>{Re.cancel(f);let o=X.get(t);if(!o||(o.delete(n),o.size))return;let i=esm_T.get(t);esm_T.delete(t),i&&(Me(t).removeEventListener("scroll",i),window.removeEventListener("resize",i),Ae.get(t)?.())}};function Er(e){let t=Je(null);return t.current===null&&(t.current=e()),t.current}var esm_Q=dist_esm_h()?external_React_.useEffect:external_React_.useLayoutEffect;var Ce=()=>{let e=(0,external_React_.useRef)(!1);return esm_Q(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Mr(){let e=(0,external_React_.useState)()[1],t=Ce();return()=>{t.current&&e(Math.random())}}function Lr(e,t){let[r]=(0,external_React_.useState)(()=>({inputs:t,result:e()})),n=(0,external_React_.useRef)(),f=n.current,o=f;return o?Boolean(t&&o.inputs&&it(t,o.inputs))||(o={inputs:t,result:e()}):o=r,(0,external_React_.useEffect)(()=>{n.current=o,f==r&&(r.inputs=r.result=void 0)},[o]),o.result}function it(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var $r=e=>(0,external_React_.useEffect)(e,ut),ut=[];function Ur(e){let t=ct();return lt(()=>{t.current=e}),t.current}var Wr=()=>{let[e,t]=dt(null);return esm_Q(()=>{let r=window.matchMedia("(prefers-reduced-motion)"),n=f=>{t(f.matches),U({skipAnimation:f.matches})};return n(r),r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),e};
+
+;// CONCATENATED MODULE: ./node_modules/@react-spring/animated/dist/esm/index.js
+var animated_dist_esm_h=Symbol.for("Animated:node"),animated_dist_esm_v=e=>!!e&&e[animated_dist_esm_h]===e,dist_esm_k=e=>e&&e[animated_dist_esm_h],esm_D=(e,t)=>mt(e,animated_dist_esm_h,t),F=e=>e&&e[animated_dist_esm_h]&&e[animated_dist_esm_h].getPayload(),animated_dist_esm_c=class{payload;constructor(){esm_D(this,this)}getPayload(){return this.payload||[]}};var animated_dist_esm_l=class extends animated_dist_esm_c{constructor(r){super();this._value=r;dist_esm_l.num(this._value)&&(this.lastPosition=this._value)}done=!0;elapsedTime;lastPosition;lastVelocity;v0;durationProgress=0;static create(r){return new animated_dist_esm_l(r)}getPayload(){return[this]}getValue(){return this._value}setValue(r,n){return dist_esm_l.num(r)&&(this.lastPosition=r,n&&(r=Math.round(r/n)*n,this.done&&(this.lastPosition=r))),this._value===r?!1:(this._value=r,!0)}reset(){let{done:r}=this;this.done=!1,dist_esm_l.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,r&&(this.lastVelocity=null),this.v0=null)}};var animated_dist_esm_d=class extends animated_dist_esm_l{_string=null;_toString;constructor(t){super(0),this._toString=W({output:[t,t]})}static create(t){return new animated_dist_esm_d(t)}getValue(){let t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(dist_esm_l.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=W({output:[this.getValue(),t]})),this._value=0,super.reset()}};var dist_esm_f={dependencies:null};var animated_dist_esm_u=class extends animated_dist_esm_c{constructor(r){super();this.source=r;this.setValue(r)}getValue(r){let n={};return xt(this.source,(a,i)=>{animated_dist_esm_v(a)?n[i]=a.getValue(r):Pt(a)?n[i]=ve(a):r||(n[i]=a)}),n}setValue(r){this.source=r,this.payload=this._makePayload(r)}reset(){this.payload&&esm_Ve(this.payload,r=>r.reset())}_makePayload(r){if(r){let n=new Set;return xt(r,this._addToPayload,n),Array.from(n)}}_addToPayload(r){dist_esm_f.dependencies&&Pt(r)&&dist_esm_f.dependencies.add(r);let n=F(r);n&&esm_Ve(n,a=>this.add(a))}};var animated_dist_esm_y=class extends animated_dist_esm_u{constructor(t){super(t)}static create(t){return new animated_dist_esm_y(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){let r=this.getPayload();return t.length==r.length?r.map((n,a)=>n.setValue(t[a])).some(Boolean):(super.setValue(t.map(dist_esm_z)),!0)}};function dist_esm_z(e){return(esm_or(e)?animated_dist_esm_d:animated_dist_esm_l).create(e)}function esm_Le(e){let t=dist_esm_k(e);return t?t.constructor:dist_esm_l.arr(e)?animated_dist_esm_y:esm_or(e)?animated_dist_esm_d:animated_dist_esm_l}var dist_esm_x=(e,t)=>{let r=!dist_esm_l.fun(e)||e.prototype&&e.prototype.isReactComponent;return (0,external_React_.forwardRef)((n,a)=>{let i=(0,external_React_.useRef)(null),o=r&&(0,external_React_.useCallback)(s=>{i.current=esm_ae(a,s)},[a]),[m,T]=esm_ne(n,t),W=Mr(),P=()=>{let s=i.current;if(r&&!s)return;(s?t.applyAnimatedValues(s,m.getValue(!0)):!1)===!1&&W()},_=new animated_dist_esm_b(P,T),p=(0,external_React_.useRef)();esm_Q(()=>(p.current=_,esm_Ve(T,s=>Gt(s,_)),()=>{p.current&&(esm_Ve(p.current.deps,s=>Qt(s,p.current)),esm_n.cancel(p.current.update))})),(0,external_React_.useEffect)(P,[]),$r(()=>()=>{let s=p.current;esm_Ve(s.deps,S=>Qt(S,s))});let $=t.getComponentProps(m.getValue());return external_React_.createElement(e,{...$,ref:o})})},animated_dist_esm_b=class{constructor(t,r){this.update=t;this.deps=r}eventObserved(t){t.type=="change"&&esm_n.write(this.update)}};function esm_ne(e,t){let r=new Set;return dist_esm_f.dependencies=r,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new animated_dist_esm_u(e),dist_esm_f.dependencies=null,[e,r]}function esm_ae(e,t){return e&&(dist_esm_l.fun(e)?e(t):e.current=t),t}var dist_esm_j=Symbol.for("AnimatedComponent"),dist_esm_Ke=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=a=>new animated_dist_esm_u(a),getComponentProps:n=a=>a}={})=>{let a={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},i=o=>{let m=esm_I(o)||"Anonymous";return dist_esm_l.str(o)?o=i[o]||(i[o]=dist_esm_x(o,a)):o=o[dist_esm_j]||(o[dist_esm_j]=dist_esm_x(o,a)),o.displayName=`Animated(${m})`,o};return xt(e,(o,m)=>{dist_esm_l.arr(e)&&(m=esm_I(o)),i[m]=i(o)}),{animated:i}},esm_I=e=>dist_esm_l.str(e)?e:e&&dist_esm_l.str(e.displayName)?e.displayName:dist_esm_l.fun(e)&&e.name||null;
+
+;// CONCATENATED MODULE: ./node_modules/@react-spring/core/dist/esm/index.js
+function dist_esm_I(t,...e){return dist_esm_l.fun(t)?t(...e):t}var esm_te=(t,e)=>t===!0||!!(e&&t&&(dist_esm_l.fun(t)?t(e):ht(t).includes(e))),et=(t,e)=>dist_esm_l.obj(t)?e&&t[e]:t;var esm_ke=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,nn=t=>t,dist_esm_ne=(t,e=nn)=>{let n=rn;t.default&&t.default!==!0&&(t=t.default,n=Object.keys(t));let r={};for(let o of n){let s=e(t[o],o);dist_esm_l.und(s)||(r[o]=s)}return r},rn=["config","onProps","onStart","onChange","onPause","onResume","onRest"],on={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function sn(t){let e={},n=0;if(xt(t,(r,o)=>{on[o]||(e[o]=r,n++)}),n)return e}function esm_de(t){let e=sn(t);if(e){let n={to:e};return xt(t,(r,o)=>o in e||(n[o]=r)),n}return{...t}}function esm_me(t){return t=ve(t),dist_esm_l.arr(t)?t.map(esm_me):esm_or(t)?dist_esm_p.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function esm_Ue(t){for(let e in t)return!0;return!1}function esm_Ee(t){return dist_esm_l.fun(t)||dist_esm_l.arr(t)&&dist_esm_l.obj(t[0])}function esm_xe(t,e){t.ref?.delete(t),e?.delete(t)}function esm_he(t,e){e&&t.ref!==e&&(t.ref?.delete(t),e.add(t),t.ref=e)}function wr(t,e,n=1e3){an(()=>{if(e){let r=0;ge(t,(o,s)=>{let a=o.current;if(a.length){let i=n*e[s];isNaN(i)?i=r:r=i,ge(a,u=>{ge(u.queue,p=>{let f=p.delay;p.delay=d=>i+dist_esm_I(f||0,d)})}),o.start()}})}else{let r=Promise.resolve();ge(t,o=>{let s=o.current;if(s.length){let a=s.map(i=>{let u=i.queue;return i.queue=[],u});r=r.then(()=>(ge(s,(i,u)=>ge(a[u]||[],p=>i.queue.push(p))),Promise.all(o.start())))}})}})}var esm_mt={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}};var tt={...esm_mt.default,mass:1,damping:1,easing:Lt.linear,clamp:!1},esm_we=class{tension;friction;frequency;damping;mass;velocity=0;restVelocity;precision;progress;duration;easing;clamp;bounce;decay;round;constructor(){Object.assign(this,tt)}};function gt(t,e,n){n&&(n={...n},esm_ht(n,e),e={...n,...e}),esm_ht(t,e),Object.assign(t,e);for(let a in tt)t[a]==null&&(t[a]=tt[a]);let{mass:r,frequency:o,damping:s}=t;return dist_esm_l.und(o)||(o<.01&&(o=.01),s<0&&(s=0),t.tension=Math.pow(2*Math.PI/o,2)*r,t.friction=4*Math.PI*s*r/o),t}function esm_ht(t,e){if(!dist_esm_l.und(e.decay))t.duration=void 0;else{let n=!dist_esm_l.und(e.tension)||!dist_esm_l.und(e.friction);(n||!dist_esm_l.und(e.frequency)||!dist_esm_l.und(e.damping)||!dist_esm_l.und(e.mass))&&(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}}var esm_yt=[],dist_esm_Le=class{changed=!1;values=esm_yt;toValues=null;fromValues=esm_yt;to;from;config=new esm_we;immediate=!1};function esm_Me(t,{key:e,props:n,defaultProps:r,state:o,actions:s}){return new Promise((a,i)=>{let u,p,f=esm_te(n.cancel??r?.cancel,e);if(f)b();else{dist_esm_l.und(n.pause)||(o.paused=esm_te(n.pause,e));let c=r?.pause;c!==!0&&(c=o.paused||esm_te(c,e)),u=dist_esm_I(n.delay||0,e),c?(o.resumeQueue.add(m),s.pause()):(s.resume(),m())}function d(){o.resumeQueue.add(m),o.timeouts.delete(p),p.cancel(),u=p.time-esm_n.now()}function m(){u>0&&!dist_esm_p.skipAnimation?(o.delayed=!0,p=esm_n.setTimeout(b,u),o.pauseQueue.add(d),o.timeouts.add(p)):b()}function b(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(p),t<=(o.cancelId||0)&&(f=!0);try{s.start({...n,callId:t,cancel:f},a)}catch(c){i(c)}}})}var esm_be=(t,e)=>e.length==1?e[0]:e.some(n=>n.cancelled)?esm_q(t.get()):e.every(n=>n.noop)?nt(t.get()):dist_esm_E(t.get(),e.every(n=>n.finished)),nt=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),dist_esm_E=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),esm_q=t=>({value:t,cancelled:!0,finished:!1});function esm_De(t,e,n,r){let{callId:o,parentId:s,onRest:a}=e,{asyncTo:i,promise:u}=n;return!s&&t===i&&!e.reset?u:n.promise=(async()=>{n.asyncId=o,n.asyncTo=t;let p=dist_esm_ne(e,(l,h)=>h==="onRest"?void 0:l),f,d,m=new Promise((l,h)=>(f=l,d=h)),b=l=>{let h=o<=(n.cancelId||0)&&esm_q(r)||o!==n.asyncId&&dist_esm_E(r,!1);if(h)throw l.result=h,d(l),l},c=(l,h)=>{let g=new esm_Ae,x=new esm_Ne;return(async()=>{if(dist_esm_p.skipAnimation)throw esm_oe(n),x.result=dist_esm_E(r,!1),d(x),x;b(g);let S=dist_esm_l.obj(l)?{...l}:{...h,to:l};S.parentId=o,xt(p,(V,_)=>{dist_esm_l.und(S[_])&&(S[_]=V)});let A=await r.start(S);return b(g),n.paused&&await new Promise(V=>{n.resumeQueue.add(V)}),A})()},P;if(dist_esm_p.skipAnimation)return esm_oe(n),dist_esm_E(r,!1);try{let l;dist_esm_l.arr(t)?l=(async h=>{for(let g of h)await c(g)})(t):l=Promise.resolve(t(c,r.stop.bind(r))),await Promise.all([l.then(f),m]),P=dist_esm_E(r.get(),!0,!1)}catch(l){if(l instanceof esm_Ae)P=l.result;else if(l instanceof esm_Ne)P=l.result;else throw l}finally{o==n.asyncId&&(n.asyncId=s,n.asyncTo=s?i:void 0,n.promise=s?u:void 0)}return dist_esm_l.fun(a)&&esm_n.batchedUpdates(()=>{a(P,r,r.item)}),P})()}function esm_oe(t,e){Pe(t.timeouts,n=>n.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}var esm_Ae=class extends Error{result;constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},esm_Ne=class extends Error{result;constructor(){super("SkipAnimationSignal")}};var esm_Re=t=>t instanceof esm_X,Sn=1,esm_X=class extends esm_ge{id=Sn++;_priority=0;get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=dist_esm_k(this);return e&&e.getValue()}to(...e){return dist_esm_p.to(this,e)}interpolate(...e){return Jt(),dist_esm_p.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,n=!1){$t(this,{type:"change",parent:this,value:e,idle:n})}_onPriorityChange(e){this.idle||qe.sort(this),$t(this,{type:"priority",parent:this,priority:e})}};var esm_se=Symbol.for("SpringPhase"),esm_bt=1,rt=2,ot=4,esm_qe=t=>(t[esm_se]&esm_bt)>0,dist_esm_Q=t=>(t[esm_se]&rt)>0,esm_ye=t=>(t[esm_se]&ot)>0,st=(t,e)=>e?t[esm_se]|=rt|esm_bt:t[esm_se]&=~rt,esm_it=(t,e)=>e?t[esm_se]|=ot:t[esm_se]&=~ot;var esm_ue=class extends esm_X{key;animation=new dist_esm_Le;queue;defaultProps={};_state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_pendingCalls=new Set;_lastCallId=0;_lastToId=0;_memoizedDuration=0;constructor(e,n){if(super(),!dist_esm_l.und(e)||!dist_esm_l.und(n)){let r=dist_esm_l.obj(e)?{...e}:{...n,from:e};dist_esm_l.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(dist_esm_Q(this)||this._state.asyncTo)||esm_ye(this)}get goal(){return ve(this.animation.to)}get velocity(){let e=dist_esm_k(this);return e instanceof animated_dist_esm_l?e.lastVelocity||0:e.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return esm_qe(this)}get isAnimating(){return dist_esm_Q(this)}get isPaused(){return esm_ye(this)}get isDelayed(){return this._state.delayed}advance(e){let n=!0,r=!1,o=this.animation,{config:s,toValues:a}=o,i=F(o.to);!i&&Pt(o.to)&&(a=ht(ve(o.to))),o.values.forEach((f,d)=>{if(f.done)return;let m=f.constructor==animated_dist_esm_d?1:i?i[d].lastPosition:a[d],b=o.immediate,c=m;if(!b){if(c=f.lastPosition,s.tension<=0){f.done=!0;return}let P=f.elapsedTime+=e,l=o.fromValues[d],h=f.v0!=null?f.v0:f.v0=dist_esm_l.arr(s.velocity)?s.velocity[d]:s.velocity,g,x=s.precision||(l==m?.005:Math.min(1,Math.abs(m-l)*.001));if(dist_esm_l.und(s.duration))if(s.decay){let S=s.decay===!0?.998:s.decay,A=Math.exp(-(1-S)*P);c=l+h/(1-S)*(1-A),b=Math.abs(f.lastPosition-c)<=x,g=h*A}else{g=f.lastVelocity==null?h:f.lastVelocity;let S=s.restVelocity||x/10,A=s.clamp?0:s.bounce,V=!dist_esm_l.und(A),_=l==m?f.v0>0:l<m,v,w=!1,C=1,$=Math.ceil(e/C);for(let L=0;L<$&&(v=Math.abs(g)>S,!(!v&&(b=Math.abs(m-c)<=x,b)));++L){V&&(w=c==m||c>m==_,w&&(g=-g*A,c=m));let N=-s.tension*1e-6*(c-m),y=-s.friction*.001*g,T=(N+y)/s.mass;g=g+T*C,c=c+g*C}}else{let S=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,f.durationProgress>0&&(f.elapsedTime=s.duration*f.durationProgress,P=f.elapsedTime+=e)),S=(s.progress||0)+P/this._memoizedDuration,S=S>1?1:S<0?0:S,f.durationProgress=S),c=l+s.easing(S)*(m-l),g=(c-f.lastPosition)/e,b=S==1}f.lastVelocity=g,Number.isNaN(c)&&(console.warn("Got NaN while animating:",this),b=!0)}i&&!i[d].done&&(b=!1),b?f.done=!0:n=!1,f.setValue(c,s.round)&&(r=!0)});let u=dist_esm_k(this),p=u.getValue();if(n){let f=ve(o.to);(p!==f||r)&&!s.decay?(u.setValue(f),this._onChange(f)):r&&s.decay&&this._onChange(p),this._stop()}else r&&this._onChange(p)}set(e){return esm_n.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(dist_esm_Q(this)){let{to:e,config:n}=this.animation;esm_n.batchedUpdates(()=>{this._onStart(),n.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,n){let r;return dist_esm_l.und(e)?(r=this.queue||[],this.queue=[]):r=[dist_esm_l.obj(e)?e:{...n,to:e}],Promise.all(r.map(o=>this._update(o))).then(o=>esm_be(this,o))}stop(e){let{to:n}=this.animation;return this._focus(this.get()),esm_oe(this._state,e&&this._lastCallId),esm_n.batchedUpdates(()=>this._stop(n,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){let n=this.key||"",{to:r,from:o}=e;r=dist_esm_l.obj(r)?r[n]:r,(r==null||esm_Ee(r))&&(r=void 0),o=dist_esm_l.obj(o)?o[n]:o,o==null&&(o=void 0);let s={to:r,from:o};return esm_qe(this)||(e.reverse&&([r,o]=[o,r]),o=ve(o),dist_esm_l.und(o)?dist_esm_k(this)||this._set(r):this._set(o)),s}_update({...e},n){let{key:r,defaultProps:o}=this;e.default&&Object.assign(o,dist_esm_ne(e,(i,u)=>/^on/.test(u)?et(i,r):i)),_t(this,e,"onProps"),esm_Ie(this,"onProps",e,this);let s=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let a=this._state;return esm_Me(++this._lastCallId,{key:r,props:e,defaultProps:o,state:a,actions:{pause:()=>{esm_ye(this)||(esm_it(this,!0),yt(a.pauseQueue),esm_Ie(this,"onPause",dist_esm_E(this,esm_Ce(this,this.animation.to)),this))},resume:()=>{esm_ye(this)&&(esm_it(this,!1),dist_esm_Q(this)&&this._resume(),yt(a.resumeQueue),esm_Ie(this,"onResume",dist_esm_E(this,esm_Ce(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(i=>{if(e.loop&&i.finished&&!(n&&i.noop)){let u=at(e);if(u)return this._update(u,!0)}return i})}_merge(e,n,r){if(n.cancel)return this.stop(!0),r(esm_q(this));let o=!dist_esm_l.und(e.to),s=!dist_esm_l.und(e.from);if(o||s)if(n.callId>this._lastToId)this._lastToId=n.callId;else return r(esm_q(this));let{key:a,defaultProps:i,animation:u}=this,{to:p,from:f}=u,{to:d=p,from:m=f}=e;s&&!o&&(!n.default||dist_esm_l.und(d))&&(d=m),n.reverse&&([d,m]=[m,d]);let b=!bt(m,f);b&&(u.from=m),m=ve(m);let c=!bt(d,p);c&&this._focus(d);let P=esm_Ee(n.to),{config:l}=u,{decay:h,velocity:g}=l;(o||s)&&(l.velocity=0),n.config&&!P&&gt(l,dist_esm_I(n.config,a),n.config!==i.config?dist_esm_I(i.config,a):void 0);let x=dist_esm_k(this);if(!x||dist_esm_l.und(d))return r(dist_esm_E(this,!0));let S=dist_esm_l.und(n.reset)?s&&!n.default:!dist_esm_l.und(m)&&esm_te(n.reset,a),A=S?m:this.get(),V=esm_me(d),_=dist_esm_l.num(V)||dist_esm_l.arr(V)||esm_or(V),v=!P&&(!_||esm_te(i.immediate||n.immediate,a));if(c){let L=esm_Le(d);if(L!==x.constructor)if(v)x=this._set(V);else throw Error(`Cannot animate between ${x.constructor.name} and ${L.name}, as the "to" prop suggests`)}let w=x.constructor,C=Pt(d),$=!1;if(!C){let L=S||!esm_qe(this)&&b;(c||L)&&($=bt(esm_me(A),V),C=!$),(!bt(u.immediate,v)&&!v||!bt(l.decay,h)||!bt(l.velocity,g))&&(C=!0)}if($&&dist_esm_Q(this)&&(u.changed&&!S?C=!0:C||this._stop(p)),!P&&((C||Pt(p))&&(u.values=x.getPayload(),u.toValues=Pt(d)?null:w==animated_dist_esm_d?[1]:ht(V)),u.immediate!=v&&(u.immediate=v,!v&&!S&&this._set(p)),C)){let{onRest:L}=u;esm_Ve(_n,y=>_t(this,n,y));let N=dist_esm_E(this,esm_Ce(this,p));yt(this._pendingCalls,N),this._pendingCalls.add(r),u.changed&&esm_n.batchedUpdates(()=>{u.changed=!S,L?.(N,this),S?dist_esm_I(i.onRest,N):u.onStart?.(N,this)})}S&&this._set(A),P?r(esm_De(n.to,n,this._state,this)):C?this._start():dist_esm_Q(this)&&!c?this._pendingCalls.add(r):r(nt(A))}_focus(e){let n=this.animation;e!==n.to&&(esm_qt(this)&&this._detach(),n.to=e,esm_qt(this)&&this._attach())}_attach(){let e=0,{to:n}=this.animation;Pt(n)&&(Gt(n,this),esm_Re(n)&&(e=n.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;Pt(e)&&Qt(e,this)}_set(e,n=!0){let r=ve(e);if(!dist_esm_l.und(r)){let o=dist_esm_k(this);if(!o||!bt(r,o.getValue())){let s=esm_Le(r);!o||o.constructor!=s?esm_D(this,s.create(r)):o.setValue(r),o&&esm_n.batchedUpdates(()=>{this._onChange(r,n)})}}return dist_esm_k(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,esm_Ie(this,"onStart",dist_esm_E(this,esm_Ce(this,e.to)),this))}_onChange(e,n){n||(this._onStart(),dist_esm_I(this.animation.onChange,e,this)),dist_esm_I(this.defaultProps.onChange,e,this),super._onChange(e,n)}_start(){let e=this.animation;dist_esm_k(this).reset(ve(e.to)),e.immediate||(e.fromValues=e.values.map(n=>n.lastPosition)),dist_esm_Q(this)||(st(this,!0),esm_ye(this)||this._resume())}_resume(){dist_esm_p.skipAnimation?this.finish():qe.start(this)}_stop(e,n){if(dist_esm_Q(this)){st(this,!1);let r=this.animation;esm_Ve(r.values,s=>{s.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),$t(this,{type:"idle",parent:this});let o=n?esm_q(this.get()):dist_esm_E(this.get(),esm_Ce(this,e??r.to));yt(this._pendingCalls,o),r.changed&&(r.changed=!1,esm_Ie(this,"onRest",o,this))}}};function esm_Ce(t,e){let n=esm_me(e),r=esm_me(t.get());return bt(r,n)}function at(t,e=t.loop,n=t.to){let r=dist_esm_I(e);if(r){let o=r!==!0&&esm_de(r),s=(o||t).reverse,a=!o||o.reset;return esm_Pe({...t,loop:e,default:!1,pause:void 0,to:!s||esm_Ee(n)?n:void 0,from:a?t.from:void 0,reset:a,...o})}}function esm_Pe(t){let{to:e,from:n}=t=esm_de(t),r=new Set;return dist_esm_l.obj(e)&&Vt(e,r),dist_esm_l.obj(n)&&Vt(n,r),t.keys=r.size?Array.from(r):null,t}function Ot(t){let e=esm_Pe(t);return R.und(e.default)&&(e.default=dist_esm_ne(e)),e}function Vt(t,e){xt(t,(n,r)=>n!=null&&e.add(r))}var _n=["onStart","onRest","onChange","onPause","onResume"];function _t(t,e,n){t.animation[n]=e[n]!==esm_ke(e,n)?et(e[n],t.key):void 0}function esm_Ie(t,e,...n){t.animation[e]?.(...n),t.defaultProps[e]?.(...n)}var Fn=["onStart","onChange","onRest"],kn=1,esm_le=class{id=kn++;springs={};queue=[];ref;_flush;_initialProps;_lastAsyncId=0;_active=new Set;_changed=new Set;_started=!1;_item;_state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_events={onStart:new Map,onChange:new Map,onRest:new Map};constructor(e,n){this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((n,r)=>e[r]=n.get()),e}set(e){for(let n in e){let r=e[n];dist_esm_l.und(r)||this.springs[n].set(r)}}update(e){return e&&this.queue.push(esm_Pe(e)),this}start(e){let{queue:n}=this;return e?n=ht(e).map(esm_Pe):this.queue=[],this._flush?this._flush(this,n):(jt(this,n),esm_ze(this,n))}stop(e,n){if(e!==!!e&&(n=e),n){let r=this.springs;esm_Ve(ht(n),o=>r[o].stop(!!e))}else esm_oe(this._state,this._lastAsyncId),this.each(r=>r.stop(!!e));return this}pause(e){if(dist_esm_l.und(e))this.start({pause:!0});else{let n=this.springs;esm_Ve(ht(e),r=>n[r].pause())}return this}resume(e){if(dist_esm_l.und(e))this.start({pause:!1});else{let n=this.springs;esm_Ve(ht(e),r=>n[r].resume())}return this}each(e){xt(this.springs,e)}_onFrame(){let{onStart:e,onChange:n,onRest:r}=this._events,o=this._active.size>0,s=this._changed.size>0;(o&&!this._started||s&&!this._started)&&(this._started=!0,Pe(e,([u,p])=>{p.value=this.get(),u(p,this,this._item)}));let a=!o&&this._started,i=s||a&&r.size?this.get():null;s&&n.size&&Pe(n,([u,p])=>{p.value=i,u(p,this,this._item)}),a&&(this._started=!1,Pe(r,([u,p])=>{p.value=i,u(p,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;esm_n.onFrame(this._onFrame)}};function esm_ze(t,e){return Promise.all(e.map(n=>wt(t,n))).then(n=>esm_be(t,n))}async function wt(t,e,n){let{keys:r,to:o,from:s,loop:a,onRest:i,onResolve:u}=e,p=dist_esm_l.obj(e.default)&&e.default;a&&(e.loop=!1),o===!1&&(e.to=null),s===!1&&(e.from=null);let f=dist_esm_l.arr(o)||dist_esm_l.fun(o)?o:void 0;f?(e.to=void 0,e.onRest=void 0,p&&(p.onRest=void 0)):esm_Ve(Fn,P=>{let l=e[P];if(dist_esm_l.fun(l)){let h=t._events[P];e[P]=({finished:g,cancelled:x})=>{let S=h.get(l);S?(g||(S.finished=!1),x&&(S.cancelled=!0)):h.set(l,{value:null,finished:g||!1,cancelled:x||!1})},p&&(p[P]=e[P])}});let d=t._state;e.pause===!d.paused?(d.paused=e.pause,yt(e.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(e.pause=!0);let m=(r||Object.keys(t.springs)).map(P=>t.springs[P].start(e)),b=e.cancel===!0||esm_ke(e,"cancel")===!0;(f||b&&d.asyncId)&&m.push(esm_Me(++t._lastAsyncId,{props:e,state:d,actions:{pause:Y,resume:Y,start(P,l){b?(esm_oe(d,t._lastAsyncId),l(esm_q(t))):(P.onRest=i,l(esm_De(f,P,d,t)))}}})),d.paused&&await new Promise(P=>{d.resumeQueue.add(P)});let c=esm_be(t,await Promise.all(m));if(a&&c.finished&&!(n&&c.noop)){let P=at(e,a,o);if(P)return jt(t,[P]),wt(t,P,!0)}return u&&esm_n.batchedUpdates(()=>u(c,t,t.item)),c}function esm_e(t,e){let n={...t.springs};return e&&pe(Ve(e),r=>{z.und(r.keys)&&(r=esm_Pe(r)),z.obj(r.to)||(r={...r,to:void 0}),Mt(n,r,o=>esm_Lt(o))}),pt(t,n),n}function pt(t,e){Ut(e,(n,r)=>{t.springs[r]||(t.springs[r]=n,Et(n,t))})}function esm_Lt(t,e){let n=new esm_ue;return n.key=t,e&&Gt(n,e),n}function Mt(t,e,n){e.keys&&esm_Ve(e.keys,r=>{(t[r]||(t[r]=n(r)))._prepareNode(e)})}function jt(t,e){esm_Ve(e,n=>{Mt(t.springs,n,r=>esm_Lt(r,t))})}var dist_esm_H=({children:t,...e})=>{let n=(0,external_React_.useContext)(esm_Ge),r=e.pause||!!n.pause,o=e.immediate||!!n.immediate;e=Lr(()=>({pause:r,immediate:o}),[r,o]);let{Provider:s}=esm_Ge;return external_React_.createElement(s,{value:e},t)},esm_Ge=wn(dist_esm_H,{});dist_esm_H.Provider=esm_Ge.Provider;dist_esm_H.Consumer=esm_Ge.Consumer;function wn(t,e){return Object.assign(t,external_React_.createContext(e)),t.Provider._context=t,t.Consumer._context=t,t}var esm_fe=()=>{let t=[],e=function(r){Ln();let o=[];return ce(t,(s,a)=>{if(Ke.und(r))o.push(s.start());else{let i=n(r,s,a);i&&o.push(s.start(i))}}),o};e.current=t,e.add=function(r){t.includes(r)||t.push(r)},e.delete=function(r){let o=t.indexOf(r);~o&&t.splice(o,1)},e.pause=function(){return ce(t,r=>r.pause(...arguments)),this},e.resume=function(){return ce(t,r=>r.resume(...arguments)),this},e.set=function(r){ce(t,(o,s)=>{let a=Ke.fun(r)?r(s,o):r;a&&o.set(a)})},e.start=function(r){let o=[];return ce(t,(s,a)=>{if(Ke.und(r))o.push(s.start());else{let i=this._getProps(r,s,a);i&&o.push(s.start(i))}}),o},e.stop=function(){return ce(t,r=>r.stop(...arguments)),this},e.update=function(r){return ce(t,(o,s)=>o.update(this._getProps(r,o,s))),this};let n=function(r,o,s){return Ke.fun(r)?r(s,o):r};return e._getProps=n,e};function esm_He(t,e,n){let r=jn.fun(e)&&e;r&&!n&&(n=[]);let o=Xe(()=>r||arguments.length==3?esm_fe():void 0,[]),s=Nt(0),a=Dn(),i=Xe(()=>({ctrls:[],queue:[],flush(h,g){let x=esm_e(h,g);return s.current>0&&!i.queue.length&&!Object.keys(x).some(A=>!h.springs[A])?esm_ze(h,g):new Promise(A=>{pt(h,x),i.queue.push(()=>{A(esm_ze(h,g))}),a()})}}),[]),u=Nt([...i.ctrls]),p=[],f=Dt(t)||0;Xe(()=>{Ye(u.current.slice(t,f),h=>{esm_xe(h,o),h.stop(!0)}),u.current.length=t,d(f,t)},[t]),Xe(()=>{d(0,Math.min(f,t))},n);function d(h,g){for(let x=h;x<g;x++){let S=u.current[x]||(u.current[x]=new esm_le(null,i.flush)),A=r?r(x,S):e[x];A&&(p[x]=Ot(A))}}let m=u.current.map((h,g)=>esm_e(h,p[g])),b=Mn(dist_esm_H),c=Dt(b),P=b!==c&&esm_Ue(b);qn(()=>{s.current++,i.ctrls=u.current;let{queue:h}=i;h.length&&(i.queue=[],Ye(h,g=>g())),Ye(u.current,(g,x)=>{o?.add(g),P&&g.start({default:b});let S=p[x];S&&(esm_he(g,S.ref),g.ref?g.queue.push(S):g.start(S))})}),Nn(()=>()=>{Ye(i.ctrls,h=>h.stop(!0))});let l=m.map(h=>({...h}));return o?[l,o]:l}function esm_J(t,e){let n=Qn.fun(t),[[r],o]=esm_He(1,n?t:[t],n?e||[]:e);return n||arguments.length==2?[r,o]:r}var Gn=()=>esm_fe(),Xo=()=>zn(Gn)[0];var Wo=(t,e)=>{let n=Bn(()=>new esm_ue(t,e));return Kn(()=>()=>{n.stop()}),n};function esm_Qt(t,e,n){let r=qt.fun(e)&&e;r&&!n&&(n=[]);let o=!0,s,a=esm_He(t,(i,u)=>{let p=r?r(i,u):e;return s=p.ref,o=o&&p.reverse,p},n||[{}]);if(Yn(()=>{Xn(a[1].current,(i,u)=>{let p=a[1].current[u+(o?1:-1)];if(esm_he(i,s),i.ref){p&&i.update({to:p.springs});return}p?i.start({to:p.springs}):i.start()})},n),r||arguments.length==3){let i=s??a[1];return i._getProps=(u,p,f)=>{let d=qt.fun(u)?u(f,p):u;if(d){let m=i.current[f+(d.reverse?1:-1)];return m&&(d.to=m.springs),d}},a}return a[0]}function esm_Gt(t,e,n){let r=G.fun(e)&&e,{reset:o,sort:s,trail:a=0,expires:i=!0,exitBeforeEnter:u=!1,onDestroyed:p,ref:f,config:d}=r?r():e,m=Jn(()=>r||arguments.length==3?esm_fe():void 0,[]),b=zt(t),c=[],P=lt(null),l=o?null:P.current;Je(()=>{P.current=c}),$n(()=>(j(c,y=>{m?.add(y.ctrl),y.ctrl.ref=m}),()=>{j(P.current,y=>{y.expired&&clearTimeout(y.expirationId),esm_xe(y.ctrl,m),y.ctrl.stop(!0)})}));let h=tr(b,r?r():e,l),g=o&&P.current||[];Je(()=>j(g,({ctrl:y,item:T,key:F})=>{esm_xe(y,m),dist_esm_I(p,T,F)}));let x=[];if(l&&j(l,(y,T)=>{y.expired?(clearTimeout(y.expirationId),g.push(y)):(T=x[T]=h.indexOf(y.key),~T&&(c[T]=y))}),j(b,(y,T)=>{c[T]||(c[T]={key:h[T],item:y,phase:"mount",ctrl:new esm_le},c[T].ctrl.item=y)}),x.length){let y=-1,{leave:T}=r?r():e;j(x,(F,k)=>{let O=l[k];~F?(y=c.indexOf(O),c[y]={...O,item:b[F]}):T&&c.splice(++y,0,O)})}G.fun(s)&&c.sort((y,T)=>s(y.item,T.item));let S=-a,A=Wn(),V=dist_esm_ne(e),_=new Map,v=lt(new Map),w=lt(!1);j(c,(y,T)=>{let F=y.key,k=y.phase,O=r?r():e,U,D,Jt=dist_esm_I(O.delay||0,F);if(k=="mount")U=O.enter,D="enter";else{let M=h.indexOf(F)<0;if(k!="leave")if(M)U=O.leave,D="leave";else if(U=O.update)D="update";else return;else if(!M)U=O.enter,D="enter";else return}if(U=dist_esm_I(U,y.item,T),U=G.obj(U)?esm_de(U):{to:U},!U.config){let M=d||V.config;U.config=dist_esm_I(M,y.item,T,D)}S+=a;let Z={...V,delay:Jt+S,ref:f,immediate:O.immediate,reset:!1,...U};if(D=="enter"&&G.und(Z.from)){let M=r?r():e,Te=G.und(M.initial)||l?M.from:M.initial;Z.from=dist_esm_I(Te,y.item,T)}let{onResolve:Wt}=Z;Z.onResolve=M=>{dist_esm_I(Wt,M);let Te=P.current,B=Te.find(Fe=>Fe.key===F);if(!!B&&!(M.cancelled&&B.phase!="update")&&B.ctrl.idle){let Fe=Te.every(ee=>ee.ctrl.idle);if(B.phase=="leave"){let ee=dist_esm_I(i,B.item);if(ee!==!1){let Ze=ee===!0?0:ee;if(B.expired=!0,!Fe&&Ze>0){Ze<=2147483647&&(B.expirationId=setTimeout(A,Ze));return}}}Fe&&Te.some(ee=>ee.expired)&&(v.current.delete(B),u&&(w.current=!0),A())}};let ft=esm_e(y.ctrl,Z);D==="leave"&&u?v.current.set(y,{phase:D,springs:ft,payload:Z}):_.set(y,{phase:D,springs:ft,payload:Z})});let C=Hn(dist_esm_H),$=Zn(C),L=C!==$&&esm_Ue(C);Je(()=>{L&&j(c,y=>{y.ctrl.start({default:C})})},[C]),j(_,(y,T)=>{if(v.current.size){let F=c.findIndex(k=>k.key===T.key);c.splice(F,1)}}),Je(()=>{j(v.current.size?v.current:_,({phase:y,payload:T},F)=>{let{ctrl:k}=F;F.phase=y,m?.add(k),L&&y=="enter"&&k.start({default:C}),T&&(esm_he(k,T.ref),(k.ref||m)&&!w.current?k.update(T):(k.start(T),w.current&&(w.current=!1)))})},o?void 0:n);let N=y=>Oe.createElement(Oe.Fragment,null,c.map((T,F)=>{let{springs:k}=_.get(T)||T.ctrl,O=y({...k},T.item,T,F);return O&&O.type?Oe.createElement(O.type,{...O.props,key:G.str(T.key)||G.num(T.key)?T.key:T.ctrl.id,ref:O.ref}):O}));return m?[N,m]:N}var esm_er=1;function tr(t,{key:e,keys:n=e},r){if(n===null){let o=new Set;return t.map(s=>{let a=r&&r.find(i=>i.item===s&&i.phase!=="leave"&&!o.has(i));return a?(o.add(a),a.key):esm_er++})}return G.und(n)?t:G.fun(n)?t.map(n):zt(n)}var hs=({container:t,...e}={})=>{let[n,r]=esm_J(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...e}),[]);return or(()=>{let o=rr(({x:s,y:a})=>{r.start({scrollX:s.current,scrollXProgress:s.progress,scrollY:a.current,scrollYProgress:a.progress})},{container:t?.current||void 0});return()=>{nr(Object.values(n),s=>s.stop()),o()}},[]),n};var Ps=({container:t,...e})=>{let[n,r]=esm_J(()=>({width:0,height:0,...e}),[]);return ar(()=>{let o=sr(({width:s,height:a})=>{r.start({width:s,height:a,immediate:n.width.get()===0||n.height.get()===0})},{container:t?.current||void 0});return()=>{ir(Object.values(n),s=>s.stop()),o()}},[]),n};var cr={any:0,all:1};function Cs(t,e){let[n,r]=pr(!1),o=ur(),s=Bt.fun(t)&&t,a=s?s():{},{to:i={},from:u={},...p}=a,f=s?e:t,[d,m]=esm_J(()=>({from:u,...p}),[]);return lr(()=>{let b=o.current,{root:c,once:P,amount:l="any",...h}=f??{};if(!b||P&&n||typeof IntersectionObserver>"u")return;let g=new WeakMap,x=()=>(i&&m.start(i),r(!0),P?void 0:()=>{u&&m.start(u),r(!1)}),S=V=>{V.forEach(_=>{let v=g.get(_.target);if(_.isIntersecting!==Boolean(v))if(_.isIntersecting){let w=x();Bt.fun(w)?g.set(_.target,w):A.unobserve(_.target)}else v&&(v(),g.delete(_.target))})},A=new IntersectionObserver(S,{root:c&&c.current||void 0,threshold:typeof l=="number"||Array.isArray(l)?l:cr[l],...h});return A.observe(b),()=>A.unobserve(b)},[f]),s?[o,d]:[o,n]}function qs({children:t,...e}){return t(esm_J(e))}function Bs({items:t,children:e,...n}){let r=esm_Qt(t.length,n);return t.map((o,s)=>{let a=e(o,s);return fr.fun(a)?a(r[s]):a})}function Ys({items:t,children:e,...n}){return esm_Gt(t,n)(e)}var esm_W=class extends esm_X{constructor(n,r){super();this.source=n;this.calc=W(...r);let o=this._get(),s=esm_Le(o);esm_D(this,s.create(o))}key;idle=!0;calc;_active=new Set;advance(n){let r=this._get(),o=this.get();bt(r,o)||(dist_esm_k(this).setValue(r),this._onChange(r,this.idle)),!this.idle&&Yt(this._active)&&esm_ct(this)}_get(){let n=dist_esm_l.arr(this.source)?this.source.map(ve):ht(ve(this.source));return this.calc(...n)}_start(){this.idle&&!Yt(this._active)&&(this.idle=!1,esm_Ve(F(this),n=>{n.done=!1}),dist_esm_p.skipAnimation?(esm_n.batchedUpdates(()=>this.advance()),esm_ct(this)):qe.start(this))}_attach(){let n=1;esm_Ve(ht(this.source),r=>{Pt(r)&&Gt(r,this),esm_Re(r)&&(r.idle||this._active.add(r),n=Math.max(n,r.priority+1))}),this.priority=n,this._start()}_detach(){esm_Ve(ht(this.source),n=>{Pt(n)&&Qt(n,this)}),this._active.clear(),esm_ct(this)}eventObserved(n){n.type=="change"?n.idle?this.advance():(this._active.add(n.parent),this._start()):n.type=="idle"?this._active.delete(n.parent):n.type=="priority"&&(this.priority=ht(this.source).reduce((r,o)=>Math.max(r,(esm_Re(o)?o.priority:0)+1),0))}};function vr(t){return t.idle!==!1}function Yt(t){return!t.size||Array.from(t).every(vr)}function esm_ct(t){t.idle||(t.idle=!0,esm_Ve(F(t),e=>{e.done=!0}),$t(t,{type:"idle",parent:t}))}var esm_ui=(t,...e)=>new esm_W(t,e),pi=(t,...e)=>(Cr(),new esm_W(t,e));dist_esm_p.assign({createStringInterpolator:Xt,to:(t,e)=>new esm_W(t,e)});var di=qe.advance;
+
+;// CONCATENATED MODULE: ./node_modules/@react-spring/web/dist/esm/index.js
+var web_dist_esm_k=/^--/;function web_dist_esm_I(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!web_dist_esm_k.test(t)&&!(web_dist_esm_c.hasOwnProperty(t)&&web_dist_esm_c[t])?e+"px":(""+e).trim()}var web_dist_esm_v={};function esm_V(t,e){if(!t.nodeType||!t.setAttribute)return!1;let r=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",{style:i,children:s,scrollTop:u,scrollLeft:l,viewBox:a,...n}=e,d=Object.values(n),m=Object.keys(n).map(o=>r||t.hasAttribute(o)?o:web_dist_esm_v[o]||(web_dist_esm_v[o]=o.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));s!==void 0&&(t.textContent=s);for(let o in i)if(i.hasOwnProperty(o)){let p=web_dist_esm_I(o,i[o]);web_dist_esm_k.test(o)?t.style.setProperty(o,p):t.style[o]=p}m.forEach((o,p)=>{t.setAttribute(o,d[p])}),u!==void 0&&(t.scrollTop=u),l!==void 0&&(t.scrollLeft=l),a!==void 0&&t.setAttribute("viewBox",a)}var web_dist_esm_c={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},esm_F=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),esm_L=["Webkit","Ms","Moz","O"];web_dist_esm_c=Object.keys(web_dist_esm_c).reduce((t,e)=>(esm_L.forEach(r=>t[esm_F(r,e)]=t[e]),t),web_dist_esm_c);var esm_=/^(matrix|translate|scale|rotate|skew)/,dist_esm_$=/^(translate)/,dist_esm_G=/^(rotate|skew)/,web_dist_esm_y=(t,e)=>dist_esm_l.num(t)&&t!==0?t+e:t,web_dist_esm_h=(t,e)=>dist_esm_l.arr(t)?t.every(r=>web_dist_esm_h(r,e)):dist_esm_l.num(t)?t===e:parseFloat(t)===e,dist_esm_g=class extends animated_dist_esm_u{constructor({x:e,y:r,z:i,...s}){let u=[],l=[];(e||r||i)&&(u.push([e||0,r||0,i||0]),l.push(a=>[`translate3d(${a.map(n=>web_dist_esm_y(n,"px")).join(",")})`,web_dist_esm_h(a,0)])),xt(s,(a,n)=>{if(n==="transform")u.push([a||""]),l.push(d=>[d,d===""]);else if(esm_.test(n)){if(delete s[n],dist_esm_l.und(a))return;let d=dist_esm_$.test(n)?"px":dist_esm_G.test(n)?"deg":"";u.push(ht(a)),l.push(n==="rotate3d"?([m,o,p,O])=>[`rotate3d(${m},${o},${p},${web_dist_esm_y(O,d)})`,web_dist_esm_h(O,0)]:m=>[`${n}(${m.map(o=>web_dist_esm_y(o,d)).join(",")})`,web_dist_esm_h(m,n.startsWith("scale")?1:0)])}}),u.length&&(s.transform=new web_dist_esm_x(u,l)),super(s)}},web_dist_esm_x=class extends esm_ge{constructor(r,i){super();this.inputs=r;this.transforms=i}_value=null;get(){return this._value||(this._value=this._get())}_get(){let r="",i=!0;return esm_Ve(this.inputs,(s,u)=>{let l=ve(s[0]),[a,n]=this.transforms[u](dist_esm_l.arr(l)?l:s.map(ve));r+=" "+a,i=i&&n}),i?"none":r}observerAdded(r){r==1&&esm_Ve(this.inputs,i=>esm_Ve(i,s=>Pt(s)&&Gt(s,this)))}observerRemoved(r){r==0&&esm_Ve(this.inputs,i=>esm_Ve(i,s=>Pt(s)&&Qt(s,this)))}eventObserved(r){r.type=="change"&&(this._value=null),$t(this,r)}};var esm_C=["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"];dist_esm_p.assign({batchedUpdates:external_ReactDOM_namespaceObject.unstable_batchedUpdates,createStringInterpolator:Xt,colors:It});var dist_esm_q=dist_esm_Ke(esm_C,{applyAnimatedValues:esm_V,createAnimatedStyle:t=>new dist_esm_g(t),getComponentProps:({scrollTop:t,scrollLeft:e,...r})=>r}),dist_esm_it=dist_esm_q.animated;
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/layout/animation.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+function getAbsolutePosition(element) {
+ return {
+ top: element.offsetTop,
+ left: element.offsetLeft
+ };
+}
+const ANIMATION_DURATION = 400;
+
+/**
+ * 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} $1 Options
+ * @param {*} $1.triggerAnimationOnChange Variable used to trigger the animation if it changes.
+ */
+function useMovingAnimation({
+ triggerAnimationOnChange
+}) {
+ const ref = (0,external_wp_element_namespaceObject.useRef)();
+
+ // Whenever the trigger changes, we need to take a snapshot of the current
+ // position of the block to use it as a destination point for the animation.
+ const {
+ previous,
+ prevRect
+ } = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ previous: ref.current && getAbsolutePosition(ref.current),
+ prevRect: ref.current && ref.current.getBoundingClientRect()
+ }),
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ [triggerAnimationOnChange]);
+ (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
+ if (!previous || !ref.current) {
+ return;
+ }
+
+ // We disable the animation if the user has a preference for reduced
+ // motion.
+ const disableAnimation = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
+ if (disableAnimation) {
+ return;
+ }
+ const controller = new esm_le({
+ x: 0,
+ y: 0,
+ width: prevRect.width,
+ height: prevRect.height,
+ config: {
+ duration: ANIMATION_DURATION,
+ easing: Lt.easeInOutQuint
+ },
+ onChange({
+ value
+ }) {
+ if (!ref.current) {
+ return;
+ }
+ let {
+ x,
+ y,
+ width,
+ height
+ } = value;
+ x = Math.round(x);
+ y = Math.round(y);
+ width = Math.round(width);
+ height = Math.round(height);
+ const finishedMoving = x === 0 && y === 0;
+ ref.current.style.transformOrigin = 'center center';
+ ref.current.style.transform = finishedMoving ? null // Set to `null` to explicitly remove the transform.
+ : `translate3d(${x}px,${y}px,0)`;
+ ref.current.style.width = finishedMoving ? null : `${width}px`;
+ ref.current.style.height = finishedMoving ? null : `${height}px`;
+ }
+ });
+ ref.current.style.transform = undefined;
+ const destination = ref.current.getBoundingClientRect();
+ const x = Math.round(prevRect.left - destination.left);
+ const y = Math.round(prevRect.top - destination.top);
+ const width = destination.width;
+ const height = destination.height;
+ controller.start({
+ x: 0,
+ y: 0,
+ width,
+ height,
+ from: {
+ x,
+ y,
+ width: prevRect.width,
+ height: prevRect.height
+ }
+ });
+ return () => {
+ controller.stop();
+ controller.set({
+ x: 0,
+ y: 0,
+ width: prevRect.width,
+ height: prevRect.height
+ });
+ };
+ }, [previous, prevRect]);
+ return ref;
+}
+/* harmony default export */ const animation = (useMovingAnimation);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/save-hub/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+function SaveHub() {
+ const {
+ isDisabled,
+ isSaving
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ __experimentalGetDirtyEntityRecords,
+ isSavingEntityRecord
+ } = select(external_wp_coreData_namespaceObject.store);
+ const dirtyEntityRecords = __experimentalGetDirtyEntityRecords();
+ const _isSaving = dirtyEntityRecords.some(record => isSavingEntityRecord(record.kind, record.name, record.key));
+ return {
+ isSaving: _isSaving,
+ isDisabled: _isSaving || !dirtyEntityRecords.length && !isPreviewingTheme()
+ };
+ }, []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
+ className: "edit-site-save-hub",
+ alignment: "right",
+ spacing: 4,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SaveButton, {
+ className: "edit-site-save-hub__button",
+ variant: isDisabled ? null : 'primary',
+ showTooltip: false,
+ icon: isDisabled && !isSaving ? library_check : null,
+ showReviewMessage: true,
+ __next40pxDefaultSize: true
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/layout/index.js
/**
* External dependencies
*/
@@ -45172,16 +40312,23 @@ function useLayoutAreas() {
+
+
+
+
const {
useCommands
-} = unlock(external_wp_coreCommands_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_coreCommands_namespaceObject.privateApis);
const {
useCommandContext
-} = unlock(external_wp_commands_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_commands_namespaceObject.privateApis);
const {
useGlobalStyle: layout_useGlobalStyle
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
-const ANIMATION_DURATION = 0.5;
+} = lock_unlock_unlock(external_wp_blockEditor_namespaceObject.privateApis);
+const {
+ NavigableRegion: layout_NavigableRegion
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
+const layout_ANIMATION_DURATION = 0.3;
function Layout() {
// This ensures the edited entity id and type are initialized properly.
useInitEditedEntityFromURL();
@@ -45189,8 +40336,8 @@ function Layout() {
useCommands();
useEditModeCommands();
useCommonCommands();
- (0,external_wp_blockEditor_namespaceObject.useBlockCommands)();
const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
+ const toggleRef = (0,external_wp_element_namespaceObject.useRef)();
const {
isDistractionFree,
hasFixedToolbar,
@@ -45204,11 +40351,11 @@ function Layout() {
} = select(external_wp_keyboardShortcuts_namespaceObject.store);
const {
getCanvasMode
- } = unlock(select(store_store));
+ } = lock_unlock_unlock(select(store));
return {
canvasMode: getCanvasMode(),
- previousShortcut: getAllShortcutKeyCombinations('core/edit-site/previous-region'),
- nextShortcut: getAllShortcutKeyCombinations('core/edit-site/next-region'),
+ previousShortcut: getAllShortcutKeyCombinations('core/editor/previous-region'),
+ nextShortcut: getAllShortcutKeyCombinations('core/editor/next-region'),
hasFixedToolbar: select(external_wp_preferences_namespaceObject.store).get('core', 'fixedToolbar'),
isDistractionFree: select(external_wp_preferences_namespaceObject.store).get('core', 'distractionFree'),
hasBlockSelected: select(external_wp_blockEditor_namespaceObject.store).getBlockSelectionStart()
@@ -45224,34 +40371,18 @@ function Layout() {
const isEditorLoading = useIsSiteEditorLoading();
const [isResizableFrameOversized, setIsResizableFrameOversized] = (0,external_wp_element_namespaceObject.useState)(false);
const {
+ key: routeKey,
areas,
widths
} = useLayoutAreas();
-
- // This determines which animation variant should apply to the header.
- // There is also a `isDistractionFreeHovering` state that gets priority
- // when hovering the `edit-site-layout__header-container` in distraction
- // free mode. It's set via framer and trickles down to all the children
- // so they can use this variant state too.
- //
- // TODO: The issue with this is we want to have the hover state stick when hovering
- // a popover opened via the header. We'll probably need to lift this state to
- // handle it ourselves. Also, focusWithin the header needs to be handled.
- let headerAnimationState;
- if (canvasMode === 'view') {
- // We need 'view' to always take priority so 'isDistractionFree'
- // doesn't bleed over into the view (sidebar) state
- headerAnimationState = 'view';
- } else if (isDistractionFree) {
- headerAnimationState = 'isDistractionFree';
- } else {
- headerAnimationState = canvasMode; // edit, view, init
- }
+ const animationRef = animation({
+ triggerAnimationOnChange: canvasMode + '__' + routeKey
+ });
// Sets the right context for the command palette
let commandContext = 'site-editor';
if (canvasMode === 'edit') {
- commandContext = 'site-editor-edit';
+ commandContext = 'entity-edit';
}
if (hasBlockSelected) {
commandContext = 'block-selection-edit';
@@ -45259,6 +40390,14 @@ function Layout() {
useCommandContext(commandContext);
const [backgroundColor] = layout_useGlobalStyle('color.background');
const [gradientValue] = layout_useGlobalStyle('color.gradient');
+ const previousCanvaMode = (0,external_wp_compose_namespaceObject.usePrevious)(canvasMode);
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (previousCanvaMode === 'edit') {
+ toggleRef.current?.focus();
+ }
+ // Should not depend on the previous canvas mode value but the next.
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [canvasMode]);
// Synchronizing the URL with the store value of canvasMode happens in an effect
// This condition ensures the component is only rendered after the synchronization happens
@@ -45266,153 +40405,95 @@ function Layout() {
if (canvasMode === 'init') {
return null;
}
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_commands_namespaceObject.CommandMenu, null), (0,external_React_.createElement)(register, null), (0,external_React_.createElement)(global, null), fullResizer, (0,external_React_.createElement)("div", {
- ...navigateRegionsProps,
- ref: navigateRegionsProps.ref,
- className: classnames_default()('edit-site-layout', navigateRegionsProps.className, {
- 'is-distraction-free': isDistractionFree && canvasMode === 'edit',
- 'is-full-canvas': canvasMode === 'edit',
- 'has-fixed-toolbar': hasFixedToolbar,
- 'is-block-toolbar-visible': hasBlockSelected
- })
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- className: "edit-site-layout__header-container",
- variants: {
- isDistractionFree: {
- opacity: 0,
- transition: {
- type: 'tween',
- delay: 0.8,
- delayChildren: 0.8
- } // How long to wait before the header exits
- },
- isDistractionFreeHovering: {
- opacity: 1,
- transition: {
- type: 'tween',
- delay: 0.2,
- delayChildren: 0.2
- } // How long to wait before the header shows
- },
- view: {
- opacity: 1
- },
- edit: {
- opacity: 1
- }
- },
- whileHover: isDistractionFree ? 'isDistractionFreeHovering' : undefined,
- animate: headerAnimationState
- }, (0,external_React_.createElement)(site_hub, {
- isTransparent: isResizableFrameOversized,
- className: "edit-site-layout__hub"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableAnimatePresence, {
- initial: false
- }, canvasMode === 'edit' && (0,external_React_.createElement)(NavigableRegion, {
- key: "header",
- className: "edit-site-layout__header",
- ariaLabel: (0,external_wp_i18n_namespaceObject.__)('Editor top bar'),
- as: external_wp_components_namespaceObject.__unstableMotion.div,
- variants: {
- isDistractionFree: {
- opacity: 0,
- y: 0
- },
- isDistractionFreeHovering: {
- opacity: 1,
- y: 0
- },
- view: {
- opacity: 1,
- y: '-100%'
- },
- edit: {
- opacity: 1,
- y: 0
- }
- },
- exit: {
- y: '-100%'
- },
- initial: {
- opacity: isDistractionFree ? 1 : 0,
- y: isDistractionFree ? 0 : '-100%'
- },
- transition: {
- type: 'tween',
- duration: disableMotion ? 0 : 0.2,
- ease: 'easeOut'
- }
- }, (0,external_React_.createElement)(HeaderEditMode, null)))), (0,external_React_.createElement)("div", {
- className: "edit-site-layout__content"
- }, (!isMobileViewport || isMobileViewport && !areas.mobile) && (0,external_React_.createElement)(NavigableRegion, {
- ariaLabel: (0,external_wp_i18n_namespaceObject.__)('Navigation'),
- className: "edit-site-layout__sidebar-region"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableAnimatePresence, null, canvasMode === 'view' && (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- initial: {
- opacity: 0
- },
- animate: {
- opacity: 1
- },
- exit: {
- opacity: 0
- },
- transition: {
- type: 'tween',
- duration:
- // Disable transition in mobile to emulate a full page transition.
- disableMotion || isMobileViewport ? 0 : ANIMATION_DURATION,
- ease: 'easeOut'
- },
- className: "edit-site-layout__sidebar"
- }, (0,external_React_.createElement)(sidebar, null)))), (0,external_React_.createElement)(SavePanel, null), isMobileViewport && areas.mobile && (0,external_React_.createElement)("div", {
- className: "edit-site-layout__mobile",
- style: {
- maxWidth: widths?.content
- }
- }, areas.mobile), !isMobileViewport && areas.content && canvasMode !== 'edit' && (0,external_React_.createElement)("div", {
- className: "edit-site-layout__area",
- style: {
- maxWidth: widths?.content
- }
- }, areas.content), !isMobileViewport && areas.preview && (0,external_React_.createElement)("div", {
- className: "edit-site-layout__canvas-container"
- }, canvasResizer, !!canvasSize.width && (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
- whileHover: canvasMode === 'view' ? {
- scale: 1.005,
- transition: {
- duration: disableMotion ? 0 : 0.5,
- ease: 'easeOut'
- }
- } : {},
- initial: false,
- layout: "position",
- className: classnames_default()('edit-site-layout__canvas', {
- 'is-right-aligned': isResizableFrameOversized
- }),
- transition: {
- type: 'tween',
- duration: disableMotion ? 0 : ANIMATION_DURATION,
- ease: 'easeOut'
- }
- }, (0,external_React_.createElement)(ErrorBoundary, null, (0,external_React_.createElement)(resizable_frame, {
- isReady: !isEditorLoading,
- isFullWidth: canvasMode === 'edit',
- defaultSize: {
- width: canvasSize.width - 24 /* $canvas-padding */,
- height: canvasSize.height
- },
- isOversized: isResizableFrameOversized,
- setIsOversized: setIsResizableFrameOversized,
- innerContentStyle: {
- background: gradientValue !== null && gradientValue !== void 0 ? gradientValue : backgroundColor
- }
- }, areas.preview)))))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_commands_namespaceObject.CommandMenu, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(register, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(global, {}), fullResizer, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...navigateRegionsProps,
+ ref: navigateRegionsProps.ref,
+ className: dist_clsx('edit-site-layout', navigateRegionsProps.className, {
+ 'is-distraction-free': isDistractionFree && canvasMode === 'edit',
+ 'is-full-canvas': canvasMode === 'edit',
+ 'has-fixed-toolbar': hasFixedToolbar,
+ 'is-block-toolbar-visible': hasBlockSelected
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "edit-site-layout__content",
+ children: [(!isMobileViewport || !areas.mobile) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(layout_NavigableRegion, {
+ ariaLabel: (0,external_wp_i18n_namespaceObject.__)('Navigation'),
+ className: "edit-site-layout__sidebar-region",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableAnimatePresence, {
+ children: canvasMode === 'view' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ initial: {
+ opacity: 0
+ },
+ animate: {
+ opacity: 1
+ },
+ exit: {
+ opacity: 0
+ },
+ transition: {
+ type: 'tween',
+ duration:
+ // Disable transition in mobile to emulate a full page transition.
+ disableMotion || isMobileViewport ? 0 : layout_ANIMATION_DURATION,
+ ease: 'easeOut'
+ },
+ className: "edit-site-layout__sidebar",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(site_hub, {
+ ref: toggleRef,
+ isTransparent: isResizableFrameOversized
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarContent, {
+ routeKey: routeKey,
+ children: areas.sidebar
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SaveHub, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SavePanel, {})]
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.EditorSnackbars, {}), isMobileViewport && areas.mobile && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "edit-site-layout__mobile",
+ children: [canvasMode !== 'edit' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarContent, {
+ routeKey: routeKey,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SiteHubMobile, {
+ ref: toggleRef,
+ isTransparent: isResizableFrameOversized
+ })
+ }), areas.mobile]
+ }), !isMobileViewport && areas.content && canvasMode !== 'edit' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-site-layout__area",
+ style: {
+ maxWidth: widths?.content
+ },
+ children: areas.content
+ }), !isMobileViewport && areas.preview && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "edit-site-layout__canvas-container",
+ children: [canvasResizer, !!canvasSize.width && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('edit-site-layout__canvas', {
+ 'is-right-aligned': isResizableFrameOversized
+ }),
+ ref: animationRef,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ErrorBoundary, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(resizable_frame, {
+ isReady: !isEditorLoading,
+ isFullWidth: canvasMode === 'edit',
+ defaultSize: {
+ width: canvasSize.width - 24 /* $canvas-padding */,
+ height: canvasSize.height
+ },
+ isOversized: isResizableFrameOversized,
+ setIsOversized: setIsResizableFrameOversized,
+ innerContentStyle: {
+ background: gradientValue !== null && gradientValue !== void 0 ? gradientValue : backgroundColor
+ },
+ children: areas.preview
+ })
+ })
+ })]
+ })]
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/app/index.js
-
/**
* WordPress dependencies
*/
@@ -45430,9 +40511,13 @@ function Layout() {
+
const {
RouterProvider
-} = unlock(external_wp_router_namespaceObject.privateApis);
+} = lock_unlock_unlock(external_wp_router_namespaceObject.privateApis);
+const {
+ GlobalStylesProvider
+} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
function App() {
const {
createErrorNotice
@@ -45441,237 +40526,75 @@ function App() {
createErrorNotice((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: plugin name */
(0,external_wp_i18n_namespaceObject.__)('The "%s" plugin has encountered an error and cannot be rendered.'), name));
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.SlotFillProvider, null, (0,external_React_.createElement)(GlobalStylesProvider, null, (0,external_React_.createElement)(external_wp_editor_namespaceObject.UnsavedChangesWarning, null), (0,external_React_.createElement)(RouterProvider, null, (0,external_React_.createElement)(Layout, null), (0,external_React_.createElement)(external_wp_plugins_namespaceObject.PluginArea, {
- onError: onPluginAreaError
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SlotFillProvider, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(GlobalStylesProvider, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.UnsavedChangesWarning, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(RouterProvider, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Layout, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_plugins_namespaceObject.PluginArea, {
+ onError: onPluginAreaError
+ })]
+ })]
+ })
+ });
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-edit-mode/plugin-sidebar/index.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/deprecated.js
/**
* WordPress dependencies
*/
+
+
+const isSiteEditor = (0,external_wp_url_namespaceObject.getPath)(window.location.href)?.includes('site-editor.php');
+const deprecateSlot = name => {
+ external_wp_deprecated_default()(`wp.editPost.${name}`, {
+ since: '6.6',
+ alternative: `wp.editor.${name}`
+ });
+};
+
+/* eslint-disable jsdoc/require-param */
/**
- * Renders a sidebar when activated. The contents within the `PluginSidebar` will appear as content within the sidebar.
- * It also automatically renders a corresponding `PluginSidebarMenuItem` component when `isPinnable` flag is set to `true`.
- * If you wish to display the sidebar, you can with use the `PluginSidebarMoreMenuItem` component or the `wp.data.dispatch` API:
- *
- * ```js
- * wp.data.dispatch( 'core/edit-site' ).openGeneralSidebar( 'plugin-name/sidebar-name' );
- * ```
- *
- * @see PluginSidebarMoreMenuItem
- *
- * @param {Object} props Element props.
- * @param {string} props.name A string identifying the sidebar. Must be unique for every sidebar registered within the scope of your plugin.
- * @param {string} [props.className] An optional class name added to the sidebar body.
- * @param {string} props.title Title displayed at the top of the sidebar.
- * @param {boolean} [props.isPinnable=true] Whether to allow to pin sidebar to the toolbar. When set to `true` it also automatically renders a corresponding menu item.
- * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
- *
- * @example
- * ```js
- * // Using ES5 syntax
- * var __ = wp.i18n.__;
- * var el = wp.element.createElement;
- * var PanelBody = wp.components.PanelBody;
- * var PluginSidebar = wp.editSite.PluginSidebar;
- * var moreIcon = wp.element.createElement( 'svg' ); //... svg element.
- *
- * function MyPluginSidebar() {
- * return el(
- * PluginSidebar,
- * {
- * name: 'my-sidebar',
- * title: 'My sidebar title',
- * icon: moreIcon,
- * },
- * el(
- * PanelBody,
- * {},
- * __( 'My sidebar content' )
- * )
- * );
- * }
- * ```
- *
- * @example
- * ```jsx
- * // Using ESNext syntax
- * import { __ } from '@wordpress/i18n';
- * import { PanelBody } from '@wordpress/components';
- * import { PluginSidebar } from '@wordpress/edit-site';
- * import { more } from '@wordpress/icons';
- *
- * const MyPluginSidebar = () => (
- * <PluginSidebar
- * name="my-sidebar"
- * title="My sidebar title"
- * icon={ more }
- * >
- * <PanelBody>
- * { __( 'My sidebar content' ) }
- * </PanelBody>
- * </PluginSidebar>
- * );
- * ```
+ * @see PluginMoreMenuItem in @wordpress/editor package.
*/
-function PluginSidebarEditSite({
- className,
- ...props
-}) {
- return (0,external_React_.createElement)(complementary_area, {
- panelClassName: className,
- className: "edit-site-sidebar-edit-mode",
- scope: "core/edit-site",
+function PluginMoreMenuItem(props) {
+ if (!isSiteEditor) {
+ return null;
+ }
+ deprecateSlot('PluginMoreMenuItem');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginMoreMenuItem, {
...props
});
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/header-edit-mode/plugin-sidebar-more-menu-item/index.js
-
/**
- * WordPress dependencies
+ * @see PluginSidebar in @wordpress/editor package.
*/
-
+function PluginSidebar(props) {
+ if (!isSiteEditor) {
+ return null;
+ }
+ deprecateSlot('PluginSidebar');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginSidebar, {
+ ...props
+ });
+}
/**
- * Renders a menu item in `Plugins` group in `More Menu` drop down,
- * and can be used to activate the corresponding `PluginSidebar` component.
- * The text within the component appears as the menu item label.
- *
- * @param {Object} props Component props.
- * @param {string} props.target A string identifying the target sidebar you wish to be activated by this menu item. Must be the same as the `name` prop you have given to that sidebar.
- * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered to the left of the menu item label.
- *
- * @example
- * ```js
- * // Using ES5 syntax
- * var __ = wp.i18n.__;
- * var PluginSidebarMoreMenuItem = wp.editSite.PluginSidebarMoreMenuItem;
- * var moreIcon = wp.element.createElement( 'svg' ); //... svg element.
- *
- * function MySidebarMoreMenuItem() {
- * return wp.element.createElement(
- * PluginSidebarMoreMenuItem,
- * {
- * target: 'my-sidebar',
- * icon: moreIcon,
- * },
- * __( 'My sidebar title' )
- * )
- * }
- * ```
- *
- * @example
- * ```jsx
- * // Using ESNext syntax
- * import { __ } from '@wordpress/i18n';
- * import { PluginSidebarMoreMenuItem } from '@wordpress/edit-site';
- * import { more } from '@wordpress/icons';
- *
- * const MySidebarMoreMenuItem = () => (
- * <PluginSidebarMoreMenuItem
- * target="my-sidebar"
- * icon={ more }
- * >
- * { __( 'My sidebar title' ) }
- * </PluginSidebarMoreMenuItem>
- * );
- * ```
- *
- * @return {Component} The component to be rendered.
+ * @see PluginSidebarMoreMenuItem in @wordpress/editor package.
*/
-
function PluginSidebarMoreMenuItem(props) {
- return (0,external_React_.createElement)(ComplementaryAreaMoreMenuItem
- // Menu item is marked with unstable prop for backward compatibility.
- // @see https://github.com/WordPress/gutenberg/issues/14457
- , {
- __unstableExplicitMenuItem: true,
- scope: "core/edit-site",
+ if (!isSiteEditor) {
+ return null;
+ }
+ deprecateSlot('PluginSidebarMoreMenuItem');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_editor_namespaceObject.PluginSidebarMoreMenuItem, {
...props
});
}
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/header-edit-mode/plugin-more-menu-item/index.js
-/**
- * WordPress dependencies
- */
-
-
-
-
-
-/**
- * Renders a menu item in `Plugins` group in `More Menu` drop down, and can be used to as a button or link depending on the props provided.
- * The text within the component appears as the menu item label.
- *
- * @param {Object} props Component properties.
- * @param {string} [props.href] When `href` is provided then the menu item is represented as an anchor rather than button. It corresponds to the `href` attribute of the anchor.
- * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered to the left of the menu item label.
- * @param {Function} [props.onClick=noop] The callback function to be executed when the user clicks the menu item.
- * @param {...*} [props.other] Any additional props are passed through to the underlying [Button](/packages/components/src/button/README.md) component.
- *
- * @example
- * ```js
- * // Using ES5 syntax
- * var __ = wp.i18n.__;
- * var PluginMoreMenuItem = wp.editSite.PluginMoreMenuItem;
- * var moreIcon = wp.element.createElement( 'svg' ); //... svg element.
- *
- * function onButtonClick() {
- * alert( 'Button clicked.' );
- * }
- *
- * function MyButtonMoreMenuItem() {
- * return wp.element.createElement(
- * PluginMoreMenuItem,
- * {
- * icon: moreIcon,
- * onClick: onButtonClick,
- * },
- * __( 'My button title' )
- * );
- * }
- * ```
- *
- * @example
- * ```jsx
- * // Using ESNext syntax
- * import { __ } from '@wordpress/i18n';
- * import { PluginMoreMenuItem } from '@wordpress/edit-site';
- * import { more } from '@wordpress/icons';
- *
- * function onButtonClick() {
- * alert( 'Button clicked.' );
- * }
- *
- * const MyButtonMoreMenuItem = () => (
- * <PluginMoreMenuItem
- * icon={ more }
- * onClick={ onButtonClick }
- * >
- * { __( 'My button title' ) }
- * </PluginMoreMenuItem>
- * );
- * ```
- *
- * @return {Component} The component to be rendered.
- */
-/* harmony default export */ const plugin_more_menu_item = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_plugins_namespaceObject.withPluginContext)((context, ownProps) => {
- var _ownProps$as;
- return {
- as: (_ownProps$as = ownProps.as) !== null && _ownProps$as !== void 0 ? _ownProps$as : external_wp_components_namespaceObject.MenuItem,
- icon: ownProps.icon || context.icon,
- name: 'core/edit-site/plugin-more-menu'
- };
-}))(action_item));
+/* eslint-enable jsdoc/require-param */
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/index.js
-
/**
* WordPress dependencies
*/
@@ -45684,7 +40607,6 @@ function PluginSidebarMoreMenuItem(props) {
-
/**
* Internal dependencies
*/
@@ -45698,6 +40620,7 @@ function PluginSidebarMoreMenuItem(props) {
* @param {string} id ID of the root element to render the screen in.
* @param {Object} settings Editor settings.
*/
+
function initializeEditor(id, settings) {
const target = document.getElementById(id);
const root = (0,external_wp_element_namespaceObject.createRoot)(target);
@@ -45735,8 +40658,7 @@ function initializeEditor(id, settings) {
showBlockBreadcrumbs: true,
showListViewByDefault: false
});
- (0,external_wp_data_namespaceObject.dispatch)(store).setDefaultComplementaryArea('core/edit-site', 'edit-site/template');
- (0,external_wp_data_namespaceObject.dispatch)(store_store).updateSettings(settings);
+ (0,external_wp_data_namespaceObject.dispatch)(store).updateSettings(settings);
// Keep the defaultTemplateTypes in the core/editor settings too,
// so that they can be selected with core/editor selectors in any editor.
@@ -45750,7 +40672,7 @@ function initializeEditor(id, settings) {
// Prevent the default browser action for files dropped outside of dropzones.
window.addEventListener('dragover', e => e.preventDefault(), false);
window.addEventListener('drop', e => e.preventDefault(), false);
- root.render((0,external_React_.createElement)(App, null));
+ root.render( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(App, {}));
return root;
}
function reinitializeEditor() {
@@ -45763,8 +40685,6 @@ function reinitializeEditor() {
-
-
})();
(window.wp = window.wp || {}).editSite = __webpack_exports__;
diff --git a/wp-includes/js/dist/edit-site.min.js b/wp-includes/js/dist/edit-site.min.js
index 9941167..2a02c93 100644
--- a/wp-includes/js/dist/edit-site.min.js
+++ b/wp-includes/js/dist/edit-site.min.js
@@ -1,24 +1,5 @@
/*! This file is auto-generated */
-(()=>{var e,t,n={4660:e=>{e.exports=function(){function e(t,n,r){function a(i,o){if(!n[i]){if(!t[i]){if(s)return s(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[i]={exports:{}};t[i][0].call(c.exports,(function(e){return a(t[i][1][e]||e)}),c,c.exports,e,t,n,r)}return n[i].exports}for(var s=void 0,i=0;i<r.length;i++)a(r[i]);return a}return e}()({1:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)a(n,r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var s={arraySet:function(e,t,n,r,a){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),a);else for(var s=0;s<r;s++)e[a+s]=t[n+s]},flattenChunks:function(e){var t,n,r,a,s,i;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(i=new Uint8Array(r),a=0,t=0,n=e.length;t<n;t++)s=e[t],i.set(s,a),a+=s.length;return i}},i={arraySet:function(e,t,n,r,a){for(var s=0;s<r;s++)e[a+s]=t[n+s]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,s)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,i))},n.setTyped(r)},{}],2:[function(e,t,n){"use strict";var r=e("./common"),a=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(e){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){s=!1}for(var i=new r.Buf8(256),o=0;o<256;o++)i[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;function l(e,t){if(t<65534&&(e.subarray&&s||!e.subarray&&a))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",i=0;i<t;i++)n+=String.fromCharCode(e[i]);return n}i[254]=i[254]=1,n.string2buf=function(e){var t,n,a,s,i,o=e.length,l=0;for(s=0;s<o;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<o&&56320==(64512&(a=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(a-56320),s++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),i=0,s=0;i<l;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<o&&56320==(64512&(a=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(a-56320),s++),n<128?t[i++]=n:n<2048?(t[i++]=192|n>>>6,t[i++]=128|63&n):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|63&n):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,a=t.length;n<a;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,a,s,o=t||e.length,c=new Array(2*o);for(r=0,n=0;n<o;)if((a=e[n++])<128)c[r++]=a;else if((s=i[a])>4)c[r++]=65533,n+=s-1;else{for(a&=2===s?31:3===s?15:7;s>1&&n<o;)a=a<<6|63&e[n++],s--;s>1?c[r++]=65533:a<65536?c[r++]=a:(a-=65536,c[r++]=55296|a>>10&1023,c[r++]=56320|1023&a)}return l(c,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+i[e[n]]>t?n:t}},{"./common":1}],3:[function(e,t,n){"use strict";function r(e,t,n,r){for(var a=65535&e|0,s=e>>>16&65535|0,i=0;0!==n;){n-=i=n>2e3?2e3:n;do{s=s+(a=a+t[r++]|0)|0}while(--i);a%=65521,s%=65521}return a|s<<16|0}t.exports=r},{}],4:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],5:[function(e,t,n){"use strict";function r(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}var a=r();function s(e,t,n,r){var s=a,i=r+n;e^=-1;for(var o=r;o<i;o++)e=e>>>8^s[255&(e^t[o])];return-1^e}t.exports=s},{}],6:[function(e,t,n){"use strict";function r(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}t.exports=r},{}],7:[function(e,t,n){"use strict";var r=30,a=12;t.exports=function(e,t){var n,s,i,o,l,c,u,d,m,p,h,f,g,y,v,_,b,E,w,S,x,C,k,T,P;n=e.state,s=e.next_in,T=e.input,i=s+(e.avail_in-5),o=e.next_out,P=e.output,l=o-(t-e.avail_out),c=o+(e.avail_out-257),u=n.dmax,d=n.wsize,m=n.whave,p=n.wnext,h=n.window,f=n.hold,g=n.bits,y=n.lencode,v=n.distcode,_=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{g<15&&(f+=T[s++]<<g,g+=8,f+=T[s++]<<g,g+=8),E=y[f&_];t:for(;;){if(f>>>=w=E>>>24,g-=w,0==(w=E>>>16&255))P[o++]=65535&E;else{if(!(16&w)){if(0==(64&w)){E=y[(65535&E)+(f&(1<<w)-1)];continue t}if(32&w){n.mode=a;break e}e.msg="invalid literal/length code",n.mode=r;break e}S=65535&E,(w&=15)&&(g<w&&(f+=T[s++]<<g,g+=8),S+=f&(1<<w)-1,f>>>=w,g-=w),g<15&&(f+=T[s++]<<g,g+=8,f+=T[s++]<<g,g+=8),E=v[f&b];n:for(;;){if(f>>>=w=E>>>24,g-=w,!(16&(w=E>>>16&255))){if(0==(64&w)){E=v[(65535&E)+(f&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=r;break e}if(x=65535&E,g<(w&=15)&&(f+=T[s++]<<g,(g+=8)<w&&(f+=T[s++]<<g,g+=8)),(x+=f&(1<<w)-1)>u){e.msg="invalid distance too far back",n.mode=r;break e}if(f>>>=w,g-=w,x>(w=o-l)){if((w=x-w)>m&&n.sane){e.msg="invalid distance too far back",n.mode=r;break e}if(C=0,k=h,0===p){if(C+=d-w,w<S){S-=w;do{P[o++]=h[C++]}while(--w);C=o-x,k=P}}else if(p<w){if(C+=d+p-w,(w-=p)<S){S-=w;do{P[o++]=h[C++]}while(--w);if(C=0,p<S){S-=w=p;do{P[o++]=h[C++]}while(--w);C=o-x,k=P}}}else if(C+=p-w,w<S){S-=w;do{P[o++]=h[C++]}while(--w);C=o-x,k=P}for(;S>2;)P[o++]=k[C++],P[o++]=k[C++],P[o++]=k[C++],S-=3;S&&(P[o++]=k[C++],S>1&&(P[o++]=k[C++]))}else{C=o-x;do{P[o++]=P[C++],P[o++]=P[C++],P[o++]=P[C++],S-=3}while(S>2);S&&(P[o++]=P[C++],S>1&&(P[o++]=P[C++]))}break}}break}}while(s<i&&o<c);s-=S=g>>3,f&=(1<<(g-=S<<3))-1,e.next_in=s,e.next_out=o,e.avail_in=s<i?i-s+5:5-(s-i),e.avail_out=o<c?c-o+257:257-(o-c),n.hold=f,n.bits=g}},{}],8:[function(e,t,n){"use strict";var r=e("../utils/common"),a=e("./adler32"),s=e("./crc32"),i=e("./inffast"),o=e("./inftrees"),l=0,c=1,u=2,d=4,m=5,p=6,h=0,f=1,g=2,y=-2,v=-3,_=-4,b=-5,E=8,w=1,S=2,x=3,C=4,k=5,T=6,P=7,I=8,M=9,A=10,O=11,N=12,F=13,R=14,D=15,V=16,L=17,B=18,z=19,H=20,G=21,U=22,W=23,j=24,Z=25,q=26,Y=27,K=28,X=29,J=30,Q=31,$=852,ee=592,te=15;function ne(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function re(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ae(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=w,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32($),t.distcode=t.distdyn=new r.Buf32(ee),t.sane=1,t.back=-1,h):y}function se(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,ae(e)):y}function ie(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?y:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,se(e))):y}function oe(e,t){var n,r;return e?(r=new re,e.state=r,r.window=null,(n=ie(e,t))!==h&&(e.state=null),n):y}function le(e){return oe(e,te)}var ce,ue,de=!0;function me(e){if(de){var t;for(ce=new r.Buf32(512),ue=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(o(c,e.lens,0,288,ce,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;o(u,e.lens,0,32,ue,0,e.work,{bits:5}),de=!1}e.lencode=ce,e.lenbits=9,e.distcode=ue,e.distbits=5}function pe(e,t,n,a){var s,i=e.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new r.Buf8(i.wsize)),a>=i.wsize?(r.arraySet(i.window,t,n-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):((s=i.wsize-i.wnext)>a&&(s=a),r.arraySet(i.window,t,n-a,s,i.wnext),(a-=s)?(r.arraySet(i.window,t,n-a,a,0),i.wnext=a,i.whave=i.wsize):(i.wnext+=s,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=s))),0}function he(e,t){var n,$,ee,te,re,ae,se,ie,oe,le,ce,ue,de,he,fe,ge,ye,ve,_e,be,Ee,we,Se,xe,Ce=0,ke=new r.Buf8(4),Te=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return y;(n=e.state).mode===N&&(n.mode=F),re=e.next_out,ee=e.output,se=e.avail_out,te=e.next_in,$=e.input,ae=e.avail_in,ie=n.hold,oe=n.bits,le=ae,ce=se,we=h;e:for(;;)switch(n.mode){case w:if(0===n.wrap){n.mode=F;break}for(;oe<16;){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}if(2&n.wrap&&35615===ie){n.check=0,ke[0]=255&ie,ke[1]=ie>>>8&255,n.check=s(n.check,ke,2,0),ie=0,oe=0,n.mode=S;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&ie)<<8)+(ie>>8))%31){e.msg="incorrect header check",n.mode=J;break}if((15&ie)!==E){e.msg="unknown compression method",n.mode=J;break}if(oe-=4,Ee=8+(15&(ie>>>=4)),0===n.wbits)n.wbits=Ee;else if(Ee>n.wbits){e.msg="invalid window size",n.mode=J;break}n.dmax=1<<Ee,e.adler=n.check=1,n.mode=512&ie?A:N,ie=0,oe=0;break;case S:for(;oe<16;){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}if(n.flags=ie,(255&n.flags)!==E){e.msg="unknown compression method",n.mode=J;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=J;break}n.head&&(n.head.text=ie>>8&1),512&n.flags&&(ke[0]=255&ie,ke[1]=ie>>>8&255,n.check=s(n.check,ke,2,0)),ie=0,oe=0,n.mode=x;case x:for(;oe<32;){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}n.head&&(n.head.time=ie),512&n.flags&&(ke[0]=255&ie,ke[1]=ie>>>8&255,ke[2]=ie>>>16&255,ke[3]=ie>>>24&255,n.check=s(n.check,ke,4,0)),ie=0,oe=0,n.mode=C;case C:for(;oe<16;){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}n.head&&(n.head.xflags=255&ie,n.head.os=ie>>8),512&n.flags&&(ke[0]=255&ie,ke[1]=ie>>>8&255,n.check=s(n.check,ke,2,0)),ie=0,oe=0,n.mode=k;case k:if(1024&n.flags){for(;oe<16;){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}n.length=ie,n.head&&(n.head.extra_len=ie),512&n.flags&&(ke[0]=255&ie,ke[1]=ie>>>8&255,n.check=s(n.check,ke,2,0)),ie=0,oe=0}else n.head&&(n.head.extra=null);n.mode=T;case T:if(1024&n.flags&&((ue=n.length)>ae&&(ue=ae),ue&&(n.head&&(Ee=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,$,te,ue,Ee)),512&n.flags&&(n.check=s(n.check,$,ue,te)),ae-=ue,te+=ue,n.length-=ue),n.length))break e;n.length=0,n.mode=P;case P:if(2048&n.flags){if(0===ae)break e;ue=0;do{Ee=$[te+ue++],n.head&&Ee&&n.length<65536&&(n.head.name+=String.fromCharCode(Ee))}while(Ee&&ue<ae);if(512&n.flags&&(n.check=s(n.check,$,ue,te)),ae-=ue,te+=ue,Ee)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=I;case I:if(4096&n.flags){if(0===ae)break e;ue=0;do{Ee=$[te+ue++],n.head&&Ee&&n.length<65536&&(n.head.comment+=String.fromCharCode(Ee))}while(Ee&&ue<ae);if(512&n.flags&&(n.check=s(n.check,$,ue,te)),ae-=ue,te+=ue,Ee)break e}else n.head&&(n.head.comment=null);n.mode=M;case M:if(512&n.flags){for(;oe<16;){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}if(ie!==(65535&n.check)){e.msg="header crc mismatch",n.mode=J;break}ie=0,oe=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=N;break;case A:for(;oe<32;){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}e.adler=n.check=ne(ie),ie=0,oe=0,n.mode=O;case O:if(0===n.havedict)return e.next_out=re,e.avail_out=se,e.next_in=te,e.avail_in=ae,n.hold=ie,n.bits=oe,g;e.adler=n.check=1,n.mode=N;case N:if(t===m||t===p)break e;case F:if(n.last){ie>>>=7&oe,oe-=7&oe,n.mode=Y;break}for(;oe<3;){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}switch(n.last=1&ie,oe-=1,3&(ie>>>=1)){case 0:n.mode=R;break;case 1:if(me(n),n.mode=H,t===p){ie>>>=2,oe-=2;break e}break;case 2:n.mode=L;break;case 3:e.msg="invalid block type",n.mode=J}ie>>>=2,oe-=2;break;case R:for(ie>>>=7&oe,oe-=7&oe;oe<32;){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}if((65535&ie)!=(ie>>>16^65535)){e.msg="invalid stored block lengths",n.mode=J;break}if(n.length=65535&ie,ie=0,oe=0,n.mode=D,t===p)break e;case D:n.mode=V;case V:if(ue=n.length){if(ue>ae&&(ue=ae),ue>se&&(ue=se),0===ue)break e;r.arraySet(ee,$,te,ue,re),ae-=ue,te+=ue,se-=ue,re+=ue,n.length-=ue;break}n.mode=N;break;case L:for(;oe<14;){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}if(n.nlen=257+(31&ie),ie>>>=5,oe-=5,n.ndist=1+(31&ie),ie>>>=5,oe-=5,n.ncode=4+(15&ie),ie>>>=4,oe-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=J;break}n.have=0,n.mode=B;case B:for(;n.have<n.ncode;){for(;oe<3;){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}n.lens[Te[n.have++]]=7&ie,ie>>>=3,oe-=3}for(;n.have<19;)n.lens[Te[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Se={bits:n.lenbits},we=o(l,n.lens,0,19,n.lencode,0,n.work,Se),n.lenbits=Se.bits,we){e.msg="invalid code lengths set",n.mode=J;break}n.have=0,n.mode=z;case z:for(;n.have<n.nlen+n.ndist;){for(;ge=(Ce=n.lencode[ie&(1<<n.lenbits)-1])>>>16&255,ye=65535&Ce,!((fe=Ce>>>24)<=oe);){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}if(ye<16)ie>>>=fe,oe-=fe,n.lens[n.have++]=ye;else{if(16===ye){for(xe=fe+2;oe<xe;){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}if(ie>>>=fe,oe-=fe,0===n.have){e.msg="invalid bit length repeat",n.mode=J;break}Ee=n.lens[n.have-1],ue=3+(3&ie),ie>>>=2,oe-=2}else if(17===ye){for(xe=fe+3;oe<xe;){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}oe-=fe,Ee=0,ue=3+(7&(ie>>>=fe)),ie>>>=3,oe-=3}else{for(xe=fe+7;oe<xe;){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}oe-=fe,Ee=0,ue=11+(127&(ie>>>=fe)),ie>>>=7,oe-=7}if(n.have+ue>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=J;break}for(;ue--;)n.lens[n.have++]=Ee}}if(n.mode===J)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=J;break}if(n.lenbits=9,Se={bits:n.lenbits},we=o(c,n.lens,0,n.nlen,n.lencode,0,n.work,Se),n.lenbits=Se.bits,we){e.msg="invalid literal/lengths set",n.mode=J;break}if(n.distbits=6,n.distcode=n.distdyn,Se={bits:n.distbits},we=o(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Se),n.distbits=Se.bits,we){e.msg="invalid distances set",n.mode=J;break}if(n.mode=H,t===p)break e;case H:n.mode=G;case G:if(ae>=6&&se>=258){e.next_out=re,e.avail_out=se,e.next_in=te,e.avail_in=ae,n.hold=ie,n.bits=oe,i(e,ce),re=e.next_out,ee=e.output,se=e.avail_out,te=e.next_in,$=e.input,ae=e.avail_in,ie=n.hold,oe=n.bits,n.mode===N&&(n.back=-1);break}for(n.back=0;ge=(Ce=n.lencode[ie&(1<<n.lenbits)-1])>>>16&255,ye=65535&Ce,!((fe=Ce>>>24)<=oe);){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}if(ge&&0==(240&ge)){for(ve=fe,_e=ge,be=ye;ge=(Ce=n.lencode[be+((ie&(1<<ve+_e)-1)>>ve)])>>>16&255,ye=65535&Ce,!(ve+(fe=Ce>>>24)<=oe);){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}ie>>>=ve,oe-=ve,n.back+=ve}if(ie>>>=fe,oe-=fe,n.back+=fe,n.length=ye,0===ge){n.mode=q;break}if(32&ge){n.back=-1,n.mode=N;break}if(64&ge){e.msg="invalid literal/length code",n.mode=J;break}n.extra=15&ge,n.mode=U;case U:if(n.extra){for(xe=n.extra;oe<xe;){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}n.length+=ie&(1<<n.extra)-1,ie>>>=n.extra,oe-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=W;case W:for(;ge=(Ce=n.distcode[ie&(1<<n.distbits)-1])>>>16&255,ye=65535&Ce,!((fe=Ce>>>24)<=oe);){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}if(0==(240&ge)){for(ve=fe,_e=ge,be=ye;ge=(Ce=n.distcode[be+((ie&(1<<ve+_e)-1)>>ve)])>>>16&255,ye=65535&Ce,!(ve+(fe=Ce>>>24)<=oe);){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}ie>>>=ve,oe-=ve,n.back+=ve}if(ie>>>=fe,oe-=fe,n.back+=fe,64&ge){e.msg="invalid distance code",n.mode=J;break}n.offset=ye,n.extra=15&ge,n.mode=j;case j:if(n.extra){for(xe=n.extra;oe<xe;){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}n.offset+=ie&(1<<n.extra)-1,ie>>>=n.extra,oe-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=J;break}n.mode=Z;case Z:if(0===se)break e;if(ue=ce-se,n.offset>ue){if((ue=n.offset-ue)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=J;break}ue>n.wnext?(ue-=n.wnext,de=n.wsize-ue):de=n.wnext-ue,ue>n.length&&(ue=n.length),he=n.window}else he=ee,de=re-n.offset,ue=n.length;ue>se&&(ue=se),se-=ue,n.length-=ue;do{ee[re++]=he[de++]}while(--ue);0===n.length&&(n.mode=G);break;case q:if(0===se)break e;ee[re++]=n.length,se--,n.mode=G;break;case Y:if(n.wrap){for(;oe<32;){if(0===ae)break e;ae--,ie|=$[te++]<<oe,oe+=8}if(ce-=se,e.total_out+=ce,n.total+=ce,ce&&(e.adler=n.check=n.flags?s(n.check,ee,ce,re-ce):a(n.check,ee,ce,re-ce)),ce=se,(n.flags?ie:ne(ie))!==n.check){e.msg="incorrect data check",n.mode=J;break}ie=0,oe=0}n.mode=K;case K:if(n.wrap&&n.flags){for(;oe<32;){if(0===ae)break e;ae--,ie+=$[te++]<<oe,oe+=8}if(ie!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=J;break}ie=0,oe=0}n.mode=X;case X:we=f;break e;case J:we=v;break e;case Q:return _;default:return y}return e.next_out=re,e.avail_out=se,e.next_in=te,e.avail_in=ae,n.hold=ie,n.bits=oe,(n.wsize||ce!==e.avail_out&&n.mode<J&&(n.mode<Y||t!==d))&&pe(e,e.output,e.next_out,ce-e.avail_out)?(n.mode=Q,_):(le-=e.avail_in,ce-=e.avail_out,e.total_in+=le,e.total_out+=ce,n.total+=ce,n.wrap&&ce&&(e.adler=n.check=n.flags?s(n.check,ee,ce,e.next_out-ce):a(n.check,ee,ce,e.next_out-ce)),e.data_type=n.bits+(n.last?64:0)+(n.mode===N?128:0)+(n.mode===H||n.mode===D?256:0),(0===le&&0===ce||t===d)&&we===h&&(we=b),we)}function fe(e){if(!e||!e.state)return y;var t=e.state;return t.window&&(t.window=null),e.state=null,h}function ge(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?y:(n.head=t,t.done=!1,h):y}function ye(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&n.mode!==O?y:n.mode===O&&a(1,t,r,0)!==n.check?v:pe(e,t,r,r)?(n.mode=Q,_):(n.havedict=1,h):y}n.inflateReset=se,n.inflateReset2=ie,n.inflateResetKeep=ae,n.inflateInit=le,n.inflateInit2=oe,n.inflate=he,n.inflateEnd=fe,n.inflateGetHeader=ge,n.inflateSetDictionary=ye,n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":5,"./inffast":7,"./inftrees":9}],9:[function(e,t,n){"use strict";var r=e("../utils/common"),a=15,s=852,i=592,o=0,l=1,c=2,u=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],d=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],m=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],p=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,h,f,g,y,v){var _,b,E,w,S,x,C,k,T,P=v.bits,I=0,M=0,A=0,O=0,N=0,F=0,R=0,D=0,V=0,L=0,B=null,z=0,H=new r.Buf16(a+1),G=new r.Buf16(a+1),U=null,W=0;for(I=0;I<=a;I++)H[I]=0;for(M=0;M<h;M++)H[t[n+M]]++;for(N=P,O=a;O>=1&&0===H[O];O--);if(N>O&&(N=O),0===O)return f[g++]=20971520,f[g++]=20971520,v.bits=1,0;for(A=1;A<O&&0===H[A];A++);for(N<A&&(N=A),D=1,I=1;I<=a;I++)if(D<<=1,(D-=H[I])<0)return-1;if(D>0&&(e===o||1!==O))return-1;for(G[1]=0,I=1;I<a;I++)G[I+1]=G[I]+H[I];for(M=0;M<h;M++)0!==t[n+M]&&(y[G[t[n+M]]++]=M);if(e===o?(B=U=y,x=19):e===l?(B=u,z-=257,U=d,W-=257,x=256):(B=m,U=p,x=-1),L=0,M=0,I=A,S=g,F=N,R=0,E=-1,w=(V=1<<N)-1,e===l&&V>s||e===c&&V>i)return 1;for(;;){C=I-R,y[M]<x?(k=0,T=y[M]):y[M]>x?(k=U[W+y[M]],T=B[z+y[M]]):(k=96,T=0),_=1<<I-R,A=b=1<<F;do{f[S+(L>>R)+(b-=_)]=C<<24|k<<16|T|0}while(0!==b);for(_=1<<I-1;L&_;)_>>=1;if(0!==_?(L&=_-1,L+=_):L=0,M++,0==--H[I]){if(I===O)break;I=t[n+y[M]]}if(I>N&&(L&w)!==E){for(0===R&&(R=N),S+=A,D=1<<(F=I-R);F+R<O&&!((D-=H[F+R])<=0);)F++,D<<=1;if(V+=1<<F,e===l&&V>s||e===c&&V>i)return 1;f[E=L&w]=N<<24|F<<16|S-g|0}}return 0!==L&&(f[S+L]=I-R<<24|64<<16|0),v.bits=N,0}},{"../utils/common":1}],10:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],11:[function(e,t,n){"use strict";function r(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}t.exports=r},{}],"/lib/inflate.js":[function(e,t,n){"use strict";var r=e("./zlib/inflate"),a=e("./utils/common"),s=e("./utils/strings"),i=e("./zlib/constants"),o=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==i.Z_OK)throw new Error(o[n]);if(this.header=new c,r.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=s.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=r.inflateSetDictionary(this.strm,t.dictionary))!==i.Z_OK))throw new Error(o[n])}function m(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}function p(e,t){return(t=t||{}).raw=!0,m(e,t)}d.prototype.push=function(e,t){var n,o,l,c,d,m=this.strm,p=this.options.chunkSize,h=this.options.dictionary,f=!1;if(this.ended)return!1;o=t===~~t?t:!0===t?i.Z_FINISH:i.Z_NO_FLUSH,"string"==typeof e?m.input=s.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?m.input=new Uint8Array(e):m.input=e,m.next_in=0,m.avail_in=m.input.length;do{if(0===m.avail_out&&(m.output=new a.Buf8(p),m.next_out=0,m.avail_out=p),(n=r.inflate(m,i.Z_NO_FLUSH))===i.Z_NEED_DICT&&h&&(n=r.inflateSetDictionary(this.strm,h)),n===i.Z_BUF_ERROR&&!0===f&&(n=i.Z_OK,f=!1),n!==i.Z_STREAM_END&&n!==i.Z_OK)return this.onEnd(n),this.ended=!0,!1;m.next_out&&(0!==m.avail_out&&n!==i.Z_STREAM_END&&(0!==m.avail_in||o!==i.Z_FINISH&&o!==i.Z_SYNC_FLUSH)||("string"===this.options.to?(l=s.utf8border(m.output,m.next_out),c=m.next_out-l,d=s.buf2string(m.output,l),m.next_out=c,m.avail_out=p-c,c&&a.arraySet(m.output,m.output,l,c,0),this.onData(d)):this.onData(a.shrinkBuf(m.output,m.next_out)))),0===m.avail_in&&0===m.avail_out&&(f=!0)}while((m.avail_in>0||0===m.avail_out)&&n!==i.Z_STREAM_END);return n===i.Z_STREAM_END&&(o=i.Z_FINISH),o===i.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===i.Z_OK):o!==i.Z_SYNC_FLUSH||(this.onEnd(i.Z_OK),m.avail_out=0,!0)},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===i.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=m,n.inflateRaw=p,n.ungzip=m},{"./utils/common":1,"./utils/strings":2,"./zlib/constants":4,"./zlib/gzheader":6,"./zlib/inflate":8,"./zlib/messages":10,"./zlib/zstream":11}]},{},[])("/lib/inflate.js")},8572:e=>{e.exports=function(){function e(t,n,r){function a(i,o){if(!n[i]){if(!t[i]){if(s)return s(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[i]={exports:{}};t[i][0].call(c.exports,(function(e){return a(t[i][1][e]||e)}),c,c.exports,e,t,n,r)}return n[i].exports}for(var s=void 0,i=0;i<r.length;i++)a(r[i]);return a}return e}()({1:[function(e,t,n){var r=4096,a=2*r+32,s=2*r-1,i=new Uint32Array([0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215]);function o(e){this.buf_=new Uint8Array(a),this.input_=e,this.reset()}o.READ_SIZE=r,o.IBUF_MASK=s,o.prototype.reset=function(){this.buf_ptr_=0,this.val_=0,this.pos_=0,this.bit_pos_=0,this.bit_end_pos_=0,this.eos_=0,this.readMoreInput();for(var e=0;e<4;e++)this.val_|=this.buf_[this.pos_]<<8*e,++this.pos_;return this.bit_end_pos_>0},o.prototype.readMoreInput=function(){if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{var e=this.buf_ptr_,t=this.input_.read(this.buf_,e,r);if(t<0)throw new Error("Unexpected end of input");if(t<r){this.eos_=1;for(var n=0;n<32;n++)this.buf_[e+t+n]=0}if(0===e){for(n=0;n<32;n++)this.buf_[(r<<1)+n]=this.buf_[n];this.buf_ptr_=r}else this.buf_ptr_=0;this.bit_end_pos_+=t<<3}},o.prototype.fillBitWindow=function(){for(;this.bit_pos_>=8;)this.val_>>>=8,this.val_|=this.buf_[this.pos_&s]<<24,++this.pos_,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0},o.prototype.readBits=function(e){32-this.bit_pos_<e&&this.fillBitWindow();var t=this.val_>>>this.bit_pos_&i[e];return this.bit_pos_+=e,t},t.exports=o},{}],2:[function(e,t,n){n.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),n.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},{}],3:[function(e,t,n){var r=e("./streams").BrotliInput,a=e("./streams").BrotliOutput,s=e("./bit_reader"),i=e("./dictionary"),o=e("./huffman").HuffmanCode,l=e("./huffman").BrotliBuildHuffmanTable,c=e("./context"),u=e("./prefix"),d=e("./transform"),m=8,p=16,h=256,f=704,g=26,y=6,v=2,_=8,b=255,E=1080,w=18,S=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),x=16,C=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),k=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),T=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function P(e){var t;return 0===e.readBits(1)?16:(t=e.readBits(3))>0?17+t:(t=e.readBits(3))>0?8+t:17}function I(e){if(e.readBits(1)){var t=e.readBits(3);return 0===t?1:e.readBits(t)+(1<<t)}return 0}function M(){this.meta_block_length=0,this.input_end=0,this.is_uncompressed=0,this.is_metadata=!1}function A(e){var t,n,r,a=new M;if(a.input_end=e.readBits(1),a.input_end&&e.readBits(1))return a;if(7===(t=e.readBits(2)+4)){if(a.is_metadata=!0,0!==e.readBits(1))throw new Error("Invalid reserved bit");if(0===(n=e.readBits(2)))return a;for(r=0;r<n;r++){var s=e.readBits(8);if(r+1===n&&n>1&&0===s)throw new Error("Invalid size byte");a.meta_block_length|=s<<8*r}}else for(r=0;r<t;++r){var i=e.readBits(4);if(r+1===t&&t>4&&0===i)throw new Error("Invalid size nibble");a.meta_block_length|=i<<4*r}return++a.meta_block_length,a.input_end||a.is_metadata||(a.is_uncompressed=e.readBits(1)),a}function O(e,t,n){var r;return n.fillBitWindow(),(r=e[t+=n.val_>>>n.bit_pos_&b].bits-_)>0&&(n.bit_pos_+=_,t+=e[t].value,t+=n.val_>>>n.bit_pos_&(1<<r)-1),n.bit_pos_+=e[t].bits,e[t].value}function N(e,t,n,r){for(var a=0,s=m,i=0,c=0,u=32768,d=[],h=0;h<32;h++)d.push(new o(0,0));for(l(d,0,5,e,w);a<t&&u>0;){var f,g=0;if(r.readMoreInput(),r.fillBitWindow(),g+=r.val_>>>r.bit_pos_&31,r.bit_pos_+=d[g].bits,(f=255&d[g].value)<p)i=0,n[a++]=f,0!==f&&(s=f,u-=32768>>f);else{var y,v,_=f-14,b=0;if(f===p&&(b=s),c!==b&&(i=0,c=b),y=i,i>0&&(i-=2,i<<=_),a+(v=(i+=r.readBits(_)+3)-y)>t)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var E=0;E<v;E++)n[a+E]=c;a+=v,0!==c&&(u-=v<<15-c)}}if(0!==u)throw new Error("[ReadHuffmanCodeLengths] space = "+u);for(;a<t;a++)n[a]=0}function F(e,t,n,r){var a,s=0,i=new Uint8Array(e);if(r.readMoreInput(),1===(a=r.readBits(2))){for(var c=e-1,u=0,d=new Int32Array(4),m=r.readBits(2)+1;c;)c>>=1,++u;for(p=0;p<m;++p)d[p]=r.readBits(u)%e,i[d[p]]=2;switch(i[d[0]]=1,m){case 1:break;case 3:if(d[0]===d[1]||d[0]===d[2]||d[1]===d[2])throw new Error("[ReadHuffmanCode] invalid symbols");break;case 2:if(d[0]===d[1])throw new Error("[ReadHuffmanCode] invalid symbols");i[d[1]]=1;break;case 4:if(d[0]===d[1]||d[0]===d[2]||d[0]===d[3]||d[1]===d[2]||d[1]===d[3]||d[2]===d[3])throw new Error("[ReadHuffmanCode] invalid symbols");r.readBits(1)?(i[d[2]]=3,i[d[3]]=3):i[d[0]]=2}}else{var p,h=new Uint8Array(w),f=32,g=0,y=[new o(2,0),new o(2,4),new o(2,3),new o(3,2),new o(2,0),new o(2,4),new o(2,3),new o(4,1),new o(2,0),new o(2,4),new o(2,3),new o(3,2),new o(2,0),new o(2,4),new o(2,3),new o(4,5)];for(p=a;p<w&&f>0;++p){var v,b=S[p],E=0;r.fillBitWindow(),E+=r.val_>>>r.bit_pos_&15,r.bit_pos_+=y[E].bits,v=y[E].value,h[b]=v,0!==v&&(f-=32>>v,++g)}if(1!==g&&0!==f)throw new Error("[ReadHuffmanCode] invalid num_codes or space");N(h,e,i,r)}if(0===(s=l(t,n,_,i,e)))throw new Error("[ReadHuffmanCode] BuildHuffmanTable failed: ");return s}function R(e,t,n){var r,a;return r=O(e,t,n),a=u.kBlockLengthPrefixCode[r].nbits,u.kBlockLengthPrefixCode[r].offset+n.readBits(a)}function D(e,t,n){var r;return e<x?(n+=C[e],r=t[n&=3]+k[e]):r=e-x+1,r}function V(e,t){for(var n=e[t],r=t;r;--r)e[r]=e[r-1];e[0]=n}function L(e,t){var n,r=new Uint8Array(256);for(n=0;n<256;++n)r[n]=n;for(n=0;n<t;++n){var a=e[n];e[n]=r[a],a&&V(r,a)}}function B(e,t){this.alphabet_size=e,this.num_htrees=t,this.codes=new Array(t+t*T[e+31>>>5]),this.htrees=new Uint32Array(t)}function z(e,t){var n,r,a={num_htrees:null,context_map:null},s=0;t.readMoreInput();var i=a.num_htrees=I(t)+1,l=a.context_map=new Uint8Array(e);if(i<=1)return a;for(t.readBits(1)&&(s=t.readBits(4)+1),n=[],r=0;r<E;r++)n[r]=new o(0,0);for(F(i+s,n,0,t),r=0;r<e;){var c;if(t.readMoreInput(),0===(c=O(n,0,t)))l[r]=0,++r;else if(c<=s)for(var u=1+(1<<c)+t.readBits(c);--u;){if(r>=e)throw new Error("[DecodeContextMap] i >= context_map_size");l[r]=0,++r}else l[r]=c-s,++r}return t.readBits(1)&&L(l,e),a}function H(e,t,n,r,a,s,i){var o,l=2*n,c=n,u=O(t,n*E,i);(o=0===u?a[l+(1&s[c])]:1===u?a[l+(s[c]-1&1)]+1:u-2)>=e&&(o-=e),r[n]=o,a[l+(1&s[c])]=o,++s[c]}function G(e,t,n,r,a,i){var o,l=a+1,c=n&a,u=i.pos_&s.IBUF_MASK;if(t<8||i.bit_pos_+(t<<3)<i.bit_end_pos_)for(;t-- >0;)i.readMoreInput(),r[c++]=i.readBits(8),c===l&&(e.write(r,l),c=0);else{if(i.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;i.bit_pos_<32;)r[c]=i.val_>>>i.bit_pos_,i.bit_pos_+=8,++c,--t;if(u+(o=i.bit_end_pos_-i.bit_pos_>>3)>s.IBUF_MASK){for(var d=s.IBUF_MASK+1-u,m=0;m<d;m++)r[c+m]=i.buf_[u+m];o-=d,c+=d,t-=d,u=0}for(m=0;m<o;m++)r[c+m]=i.buf_[u+m];if(t-=o,(c+=o)>=l)for(e.write(r,l),c-=l,m=0;m<c;m++)r[m]=r[l+m];for(;c+t>=l;){if(o=l-c,i.input_.read(r,c,o)<o)throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");e.write(r,l),t-=o,c=0}if(i.input_.read(r,c,t)<t)throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");i.reset()}}function U(e){var t=e.bit_pos_+7&-8;return 0==e.readBits(t-e.bit_pos_)}function W(e){var t=new r(e),n=new s(t);return P(n),A(n).meta_block_length}function j(e,t){var n=new r(e);null==t&&(t=W(e));var s=new Uint8Array(t),i=new a(s);return Z(n,i),i.pos<i.buffer.length&&(i.buffer=i.buffer.subarray(0,i.pos)),i.buffer}function Z(e,t){var n,r,a,l,m,p,_,b,w,S=0,C=0,k=0,T=0,M=[16,15,11,4],N=0,V=0,L=0,W=[new B(0,0),new B(0,0),new B(0,0)],j=128+s.READ_SIZE;r=(1<<(k=P(w=new s(e))))-16,l=(a=1<<k)-1,m=new Uint8Array(a+j+i.maxDictionaryWordLength),p=a,_=[],b=[];for(var Z=0;Z<3*E;Z++)_[Z]=new o(0,0),b[Z]=new o(0,0);for(;!C;){var q,Y,K,X,J,Q,$,ee,te,ne=0,re=[1<<28,1<<28,1<<28],ae=[0],se=[1,1,1],ie=[0,1,0,1,0,1],oe=[0],le=null,ce=null,ue=null,de=null,me=0,pe=null,he=0,fe=0,ge=0;for(n=0;n<3;++n)W[n].codes=null,W[n].htrees=null;w.readMoreInput();var ye=A(w);if(S+(ne=ye.meta_block_length)>t.buffer.length){var ve=new Uint8Array(S+ne);ve.set(t.buffer),t.buffer=ve}if(C=ye.input_end,q=ye.is_uncompressed,ye.is_metadata)for(U(w);ne>0;--ne)w.readMoreInput(),w.readBits(8);else if(0!==ne)if(q)w.bit_pos_=w.bit_pos_+7&-8,G(t,ne,S,m,l,w),S+=ne;else{for(n=0;n<3;++n)se[n]=I(w)+1,se[n]>=2&&(F(se[n]+2,_,n*E,w),F(g,b,n*E,w),re[n]=R(b,n*E,w),oe[n]=1);for(w.readMoreInput(),X=(1<<(Y=w.readBits(2)))-1,J=(K=x+(w.readBits(4)<<Y))+(48<<Y),ce=new Uint8Array(se[0]),n=0;n<se[0];++n)w.readMoreInput(),ce[n]=w.readBits(2)<<1;var _e=z(se[0]<<y,w);Q=_e.num_htrees,le=_e.context_map;var be=z(se[2]<<v,w);for($=be.num_htrees,ue=be.context_map,W[0]=new B(h,Q),W[1]=new B(f,se[1]),W[2]=new B(J,$),n=0;n<3;++n)W[n].decode(w);for(de=0,pe=0,ee=ce[ae[0]],fe=c.lookupOffsets[ee],ge=c.lookupOffsets[ee+1],te=W[1].htrees[0];ne>0;){var Ee,we,Se,xe,Ce,ke,Te,Pe,Ie,Me,Ae,Oe;for(w.readMoreInput(),0===re[1]&&(H(se[1],_,1,ae,ie,oe,w),re[1]=R(b,E,w),te=W[1].htrees[ae[1]]),--re[1],(we=(Ee=O(W[1].codes,te,w))>>6)>=2?(we-=2,Te=-1):Te=0,Se=u.kInsertRangeLut[we]+(Ee>>3&7),xe=u.kCopyRangeLut[we]+(7&Ee),Ce=u.kInsertLengthPrefixCode[Se].offset+w.readBits(u.kInsertLengthPrefixCode[Se].nbits),ke=u.kCopyLengthPrefixCode[xe].offset+w.readBits(u.kCopyLengthPrefixCode[xe].nbits),V=m[S-1&l],L=m[S-2&l],Ie=0;Ie<Ce;++Ie)w.readMoreInput(),0===re[0]&&(H(se[0],_,0,ae,ie,oe,w),re[0]=R(b,0,w),de=ae[0]<<y,ee=ce[ae[0]],fe=c.lookupOffsets[ee],ge=c.lookupOffsets[ee+1]),me=le[de+(c.lookup[fe+V]|c.lookup[ge+L])],--re[0],L=V,V=O(W[0].codes,W[0].htrees[me],w),m[S&l]=V,(S&l)===l&&t.write(m,a),++S;if((ne-=Ce)<=0)break;if(Te<0&&(w.readMoreInput(),0===re[2]&&(H(se[2],_,2,ae,ie,oe,w),re[2]=R(b,2*E,w),pe=ae[2]<<v),--re[2],he=ue[pe+(255&(ke>4?3:ke-2))],(Te=O(W[2].codes,W[2].htrees[he],w))>=K&&(Oe=(Te-=K)&X,Te=K+((Ne=(2+(1&(Te>>=Y))<<(Ae=1+(Te>>1)))-4)+w.readBits(Ae)<<Y)+Oe)),(Pe=D(Te,M,N))<0)throw new Error("[BrotliDecompress] invalid distance");if(Me=S&l,Pe>(T=S<r&&T!==r?S:r)){if(!(ke>=i.minDictionaryWordLength&&ke<=i.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+S+" distance: "+Pe+" len: "+ke+" bytes left: "+ne);var Ne=i.offsetsByLength[ke],Fe=Pe-T-1,Re=i.sizeBitsByLength[ke],De=Fe>>Re;if(Ne+=(Fe&(1<<Re)-1)*ke,!(De<d.kNumTransforms))throw new Error("Invalid backward reference. pos: "+S+" distance: "+Pe+" len: "+ke+" bytes left: "+ne);var Ve=d.transformDictionaryWord(m,Me,Ne,ke,De);if(S+=Ve,ne-=Ve,(Me+=Ve)>=p){t.write(m,a);for(var Le=0;Le<Me-p;Le++)m[Le]=m[p+Le]}}else{if(Te>0&&(M[3&N]=Pe,++N),ke>ne)throw new Error("Invalid backward reference. pos: "+S+" distance: "+Pe+" len: "+ke+" bytes left: "+ne);for(Ie=0;Ie<ke;++Ie)m[S&l]=m[S-Pe&l],(S&l)===l&&t.write(m,a),++S,--ne}V=m[S-1&l],L=m[S-2&l]}S&=1073741823}}t.write(m,S&l)}B.prototype.decode=function(e){var t,n=0;for(t=0;t<this.num_htrees;++t)this.htrees[t]=n,n+=F(this.alphabet_size,this.codes,n,e)},n.BrotliDecompressedSize=W,n.BrotliDecompressBuffer=j,n.BrotliDecompress=Z,i.init()},{"./bit_reader":1,"./context":2,"./dictionary":6,"./huffman":7,"./prefix":9,"./streams":10,"./transform":11}],4:[function(e,t,n){var r=e("base64-js");n.init=function(){return(0,e("./decode").BrotliDecompressBuffer)(r.toByteArray(e("./dictionary.bin.js")))}},{"./decode":3,"./dictionary.bin.js":5,"base64-js":8}],5:[function(e,t,n){t.exports="W5/fcQLn5gKf2XUbAiQ1XULX+TZz6ADToDsgqk6qVfeC0e4m6OO2wcQ1J76ZBVRV1fRkEsdu//62zQsFEZWSTCnMhcsQKlS2qOhuVYYMGCkV0fXWEoMFbESXrKEZ9wdUEsyw9g4bJlEt1Y6oVMxMRTEVbCIwZzJzboK5j8m4YH02qgXYhv1V+PM435sLVxyHJihaJREEhZGqL03txGFQLm76caGO/ovxKvzCby/3vMTtX/459f0igi7WutnKiMQ6wODSoRh/8Lx1V3Q99MvKtwB6bHdERYRY0hStJoMjNeTsNX7bn+Y7e4EQ3bf8xBc7L0BsyfFPK43dGSXpL6clYC/I328h54/VYrQ5i0648FgbGtl837svJ35L3Mot/+nPlNpWgKx1gGXQYqX6n+bbZ7wuyCHKcUok12Xjqub7NXZGzqBx0SD+uziNf87t7ve42jxSKQoW3nyxVrWIGlFShhCKxjpZZ5MeGna0+lBkk+kaN8F9qFBAFgEogyMBdcX/T1W/WnMOi/7ycWUQloEBKGeC48MkiwqJkJO+12eQiOFHMmck6q/IjWW3RZlany23TBm+cNr/84/oi5GGmGBZWrZ6j+zykVozz5fT/QH/Da6WTbZYYPynVNO7kxzuNN2kxKKWche5WveitPKAecB8YcAHz/+zXLjcLzkdDSktNIDwZE9J9X+tto43oJy65wApM3mDzYtCwX9lM+N5VR3kXYo0Z3t0TtXfgBFg7gU8oN0Dgl7fZlUbhNll+0uuohRVKjrEd8egrSndy5/Tgd2gqjA4CAVuC7ESUmL3DZoGnfhQV8uwnpi8EGvAVVsowNRxPudck7+oqAUDkwZopWqFnW1riss0t1z6iCISVKreYGNvQcXv+1L9+jbP8cd/dPUiqBso2q+7ZyFBvENCkkVr44iyPbtOoOoCecWsiuqMSML5lv+vN5MzUr+Dnh73G7Q1YnRYJVYXHRJaNAOByiaK6CusgFdBPE40r0rvqXV7tksKO2DrHYXBTv8P5ysqxEx8VDXUDDqkPH6NNOV/a2WH8zlkXRELSa8P+heNyJBBP7PgsG1EtWtNef6/i+lcayzQwQCsduidpbKfhWUDgAEmyhGu/zVTacI6RS0zTABrOYueemnVa19u9fT23N/Ta6RvTpof5DWygqreCqrDAgM4LID1+1T/taU6yTFVLqXOv+/MuQOFnaF8vLMKD7tKWDoBdALgxF33zQccCcdHx8fKIVdW69O7qHtXpeGr9jbbpFA+qRMWr5hp0s67FPc7HAiLV0g0/peZlW7hJPYEhZyhpSwahnf93/tZgfqZWXFdmdXBzqxGHLrQKxoAY6fRoBhgCRPmmGueYZ5JexTVDKUIXzkG/fqp/0U3hAgQdJ9zumutK6nqWbaqvm1pgu03IYR+G+8s0jDBBz8cApZFSBeuWasyqo2OMDKAZCozS+GWSvL/HsE9rHxooe17U3s/lTE+VZAk4j3dp6uIGaC0JMiqR5CUsabPyM0dOYDR7Ea7ip4USZlya38YfPtvrX/tBlhHilj55nZ1nfN24AOAi9BVtz/Mbn8AEDJCqJgsVUa6nQnSxv2Fs7l/NlCzpfYEjmPrNyib/+t0ei2eEMjvNhLkHCZlci4WhBe7ePZTmzYqlY9+1pxtS4GB+5lM1BHT9tS270EWUDYFq1I0yY/fNiAk4bk9yBgmef/f2k6AlYQZHsNFnW8wBQxCd68iWv7/35bXfz3JZmfGligWAKRjIs3IpzxQ27vAglHSiOzCYzJ9L9A1CdiyFvyR66ucA4jKifu5ehwER26yV7HjKqn5Mfozo7Coxxt8LWWPT47BeMxX8p0Pjb7hZn+6bw7z3Lw+7653j5sI8CLu5kThpMlj1m4c2ch3jGcP1FsT13vuK3qjecKTZk2kHcOZY40UX+qdaxstZqsqQqgXz+QGF99ZJLqr3VYu4aecl1Ab5GmqS8k/GV5b95zxQ5d4EfXUJ6kTS/CXF/aiqKDOT1T7Jz5z0PwDUcwr9clLN1OJGCiKfqvah+h3XzrBOiLOW8wvn8gW6qE8vPxi+Efv+UH55T7PQFVMh6cZ1pZQlzJpKZ7P7uWvwPGJ6DTlR6wbyj3Iv2HyefnRo/dv7dNx+qaa0N38iBsR++Uil7Wd4afwDNsrzDAK4fXZwvEY/jdKuIKXlfrQd2C39dW7ntnRbIp9OtGy9pPBn/V2ASoi/2UJZfS+xuGLH8bnLuPlzdTNS6zdyk8Dt/h6sfOW5myxh1f+zf3zZ3MX/mO9cQPp5pOx967ZA6/pqHvclNfnUFF+rq+Vd7alKr6KWPcIDhpn6v2K6NlUu6LrKo8b/pYpU/Gazfvtwhn7tEOUuXht5rUJdSf6sLjYf0VTYDgwJ81yaqKTUYej/tbHckSRb/HZicwGJqh1mAHB/IuNs9dc9yuvF3D5Xocm3elWFdq5oEy70dYFit79yaLiNjPj5UUcVmZUVhQEhW5V2Z6Cm4HVH/R8qlamRYwBileuh07CbEce3TXa2JmXWBf+ozt319psboobeZhVnwhMZzOeQJzhpTDbP71Tv8HuZxxUI/+ma3XW6DFDDs4+qmpERwHGBd2edxwUKlODRdUWZ/g0GOezrbzOZauFMai4QU6GVHV6aPNBiBndHSsV4IzpvUiiYyg6OyyrL4Dj5q/Lw3N5kAwftEVl9rNd7Jk5PDij2hTH6wIXnsyXkKePxbmHYgC8A6an5Fob/KH5GtC0l4eFso+VpxedtJHdHpNm+Bvy4C79yVOkrZsLrQ3OHCeB0Ra+kBIRldUGlDCEmq2RwXnfyh6Dz+alk6eftI2n6sastRrGwbwszBeDRS/Fa/KwRJkCzTsLr/JCs5hOPE/MPLYdZ1F1fv7D+VmysX6NpOC8aU9F4Qs6HvDyUy9PvFGDKZ/P5101TYHFl8pjj6wm/qyS75etZhhfg0UEL4OYmHk6m6dO192AzoIyPSV9QedDA4Ml23rRbqxMPMxf7FJnDc5FTElVS/PyqgePzmwVZ26NWhRDQ+oaT7ly7ell4s3DypS1s0g+tOr7XHrrkZj9+x/mJBttrLx98lFIaRZzHz4aC7r52/JQ4VjHahY2/YVXZn/QC2ztQb/sY3uRlyc5vQS8nLPGT/n27495i8HPA152z7Fh5aFpyn1GPJKHuPL8Iw94DuW3KjkURAWZXn4EQy89xiKEHN1mk/tkM4gYDBxwNoYvRfE6LFqsxWJtPrDGbsnLMap3Ka3MUoytW0cvieozOmdERmhcqzG+3HmZv2yZeiIeQTKGdRT4HHNxekm1tY+/n06rGmFleqLscSERzctTKM6G9P0Pc1RmVvrascIxaO1CQCiYPE15bD7c3xSeW7gXxYjgxcrUlcbIvO0r+Yplhx0kTt3qafDOmFyMjgGxXu73rddMHpV1wMubyAGcf/v5dLr5P72Ta9lBF+fzMJrMycwv+9vnU3ANIl1cH9tfW7af8u0/HG0vV47jNFXzFTtaha1xvze/s8KMtCYucXc1nzfd/MQydUXn/b72RBt5wO/3jRcMH9BdhC/yctKBIveRYPrNpDWqBsO8VMmP+WvRaOcA4zRMR1PvSoO92rS7pYEv+fZfEfTMzEdM+6X5tLlyxExhqLRkms5EuLovLfx66de5fL2/yX02H52FPVwahrPqmN/E0oVXnsCKhbi/yRxX83nRbUKWhzYceXOntfuXn51NszJ6MO73pQf5Pl4in3ec4JU8hF7ppV34+mm9r1LY0ee/i1O1wpd8+zfLztE0cqBxggiBi5Bu95v9l3r9r/U5hweLn+TbfxowrWDqdJauKd8+q/dH8sbPkc9ttuyO94f7/XK/nHX46MPFLEb5qQlNPvhJ50/59t9ft3LXu7uVaWaO2bDrDCnRSzZyWvFKxO1+vT8MwwunR3bX0CkfPjqb4K9O19tn5X50PvmYpEwHtiW9WtzuV/s76B1zvLLNkViNd8ySxIl/3orfqP90TyTGaf7/rx8jQzeHJXdmh/N6YDvbvmTBwCdxfEQ1NcL6wNMdSIXNq7b1EUzRy1/Axsyk5p22GMG1b+GxFgbHErZh92wuvco0AuOLXct9hvw2nw/LqIcDRRmJmmZzcgUa7JpM/WV/S9IUfbF56TL2orzqwebdRD8nIYNJ41D/hz37Fo11p2Y21wzPcn713qVGhqtevStYfGH4n69OEJtPvbbLYWvscDqc3Hgnu166+tAyLnxrX0Y5zoYjV++1sI7t5kMr02KT/+uwtkc+rZLOf/qn/s3nYCf13Dg8/sB2diJgjGqjQ+TLhxbzyue2Ob7X6/9lUwW7a+lbznHzOYy8LKW1C/uRPbQY3KW/0gO9LXunHLvPL97afba9bFtc9hmz7GAttjVYlCvQAiOwAk/gC5+hkLEs6tr3AZKxLJtOEwk2dLxTYWsIB/j/ToWtIWzo906FrSG8iaqqqqqqiIiIiAgzMzMzNz+AyK+01/zi8n8S+Y1MjoRaQ80WU/G8MBlO+53VPXANrWm4wzGUVZUjjBJZVdhpcfkjsmcWaO+UEldXi1e+zq+HOsCpknYshuh8pOLISJun7TN0EIGW2xTnlOImeecnoGW4raxe2G1T3HEvfYUYMhG+gAFOAwh5nK8mZhwJMmN7r224QVsNFvZ87Z0qatvknklyPDK3Hy45PgVKXji52Wen4d4PlFVVYGnNap+fSpFbK90rYnhUc6n91Q3AY9E0tJOFrcfZtm/491XbcG/jsViUPPX76qmeuiz+qY1Hk7/1VPM405zWVuoheLUimpWYdVzCmUdKHebMdzgrYrb8mL2eeLSnRWHdonfZa8RsOU9F37w+591l5FLYHiOqWeHtE/lWrBHcRKp3uhtr8yXm8LU/5ms+NM6ZKsqu90cFZ4o58+k4rdrtB97NADFbwmEG7lXqvirhOTOqU14xuUF2myIjURcPHrPOQ4lmM3PeMg7bUuk0nnZi67bXsU6H8lhqIo8TaOrEafCO1ARK9PjC0QOoq2BxmMdgYB9G/lIb9++fqNJ2s7BHGFyBNmZAR8J3KCo012ikaSP8BCrf6VI0X5xdnbhHIO+B5rbOyB54zXkzfObyJ4ecwxfqBJMLFc7m59rNcw7hoHnFZ0b00zee+gTqvjm61Pb4xn0kcDX4jvHM0rBXZypG3DCKnD/Waa/ZtHmtFPgO5eETx+k7RrVg3aSwm2YoNXnCs3XPQDhNn+Fia6IlOOuIG6VJH7TP6ava26ehKHQa2T4N0tcZ9dPCGo3ZdnNltsHQbeYt5vPnJezV/cAeNypdml1vCHI8M81nSRP5Qi2+mI8v/sxiZru9187nRtp3f/42NemcONa+4eVC3PCZzc88aZh851CqSsshe70uPxeN/dmYwlwb3trwMrN1Gq8jbnApcVDx/yDPeYs5/7r62tsQ6lLg+DiFXTEhzR9dHqv0iT4tgj825W+H3XiRUNUZT2kR9Ri0+lp+UM3iQtS8uOE23Ly4KYtvqH13jghUntJRAewuzNLDXp8RxdcaA3cMY6TO2IeSFRXezeWIjCqyhsUdMYuCgYTZSKpBype1zRfq8FshvfBPc6BAQWl7/QxIDp3VGo1J3vn42OEs3qznws+YLRXbymyB19a9XBx6n/owcyxlEYyFWCi+kG9F+EyD/4yn80+agaZ9P7ay2Dny99aK2o91FkfEOY8hBwyfi5uwx2y5SaHmG+oq/zl1FX/8irOf8Y3vAcX/6uLP6A6nvMO24edSGPjQc827Rw2atX+z2bKq0CmW9mOtYnr5/AfDa1ZfPaXnKtlWborup7QYx+Or2uWb+N3N//2+yDcXMqIJdf55xl7/vsj4WoPPlxLxtVrkJ4w/tTe3mLdATOOYwxcq52w5Wxz5MbPdVs5O8/lhfE7dPj0bIiPQ3QV0iqm4m3YX8hRfc6jQ3fWepevMqUDJd86Z4vwM40CWHnn+WphsGHfieF02D3tmZvpWD+kBpNCFcLnZhcmmrhpGzzbdA+sQ1ar18OJD87IOKOFoRNznaHPNHUfUNhvY1iU+uhvEvpKHaUn3qK3exVVyX4joipp3um7FmYJWmA+WbIDshRpbVRx5/nqstCgy87FGbfVB8yDGCqS+2qCsnRwnSAN6zgzxfdB2nBT/vZ4/6uxb6oH8b4VBRxiIB93wLa47hG3w2SL/2Z27yOXJFwZpSJaBYyvajA7vRRYNKqljXKpt/CFD/tSMr18DKKbwB0xggBePatl1nki0yvqW5zchlyZmJ0OTxJ3D+fsYJs/mxYN5+Le5oagtcl+YsVvy8kSjI2YGvGjvmpkRS9W2dtXqWnVuxUhURm1lKtou/hdEq19VBp9OjGvHEQSmrpuf2R24mXGheil8KeiANY8fW1VERUfBImb64j12caBZmRViZHbeVMjCrPDg9A90IXrtnsYCuZtRQ0PyrKDjBNOsPfKsg1pA02gHlVr0OXiFhtp6nJqXVzcbfM0KnzC3ggOENPE9VBdmHKN6LYaijb4wXxJn5A0FSDF5j+h1ooZx885Jt3ZKzO5n7Z5WfNEOtyyPqQEnn7WLv5Fis3PdgMshjF1FRydbNyeBbyKI1oN1TRVrVK7kgsb/zjX4NDPIRMctVeaxVB38Vh1x5KbeJbU138AM5KzmZu3uny0ErygxiJF7GVXUrPzFxrlx1uFdAaZFDN9cvIb74qD9tzBMo7L7WIEYK+sla1DVMHpF0F7b3+Y6S+zjvLeDMCpapmJo1weBWuxKF3rOocih1gun4BoJh1kWnV/Jmiq6uOhK3VfKxEHEkafjLgK3oujaPzY6SXg8phhL4TNR1xvJd1Wa0aYFfPUMLrNBDCh4AuGRTbtKMc6Z1Udj8evY/ZpCuMAUefdo69DZUngoqE1P9A3PJfOf7WixCEj+Y6t7fYeHbbxUAoFV3M89cCKfma3fc1+jKRe7MFWEbQqEfyzO2x/wrO2VYH7iYdQ9BkPyI8/3kXBpLaCpU7eC0Yv/am/tEDu7HZpqg0EvHo0nf/R/gRzUWy33/HXMJQeu1GylKmOkXzlCfGFruAcPPhaGqZOtu19zsJ1SO2Jz4Ztth5cBX6mRQwWmDwryG9FUMlZzNckMdK+IoMJv1rOWnBamS2w2KHiaPMPLC15hCZm4KTpoZyj4E2TqC/P6r7/EhnDMhKicZZ1ZwxuC7DPzDGs53q8gXaI9kFTK+2LTq7bhwsTbrMV8Rsfua5lMS0FwbTitUVnVa1yTb5IX51mmYnUcP9wPr8Ji1tiYJeJV9GZTrQhF7vvdU2OTU42ogJ9FDwhmycI2LIg++03C6scYhUyUuMV5tkw6kGUoL+mjNC38+wMdWNljn6tGPpRES7veqrSn5TRuv+dh6JVL/iDHU1db4c9WK3++OrH3PqziF916UMUKn8G67nN60GfWiHrXYhUG3yVWmyYak59NHj8t1smG4UDiWz2rPHNrKnN4Zo1LBbr2/eF9YZ0n0blx2nG4X+EKFxvS3W28JESD+FWk61VCD3z/URGHiJl++7TdBwkCj6tGOH3qDb0QqcOF9Kzpj0HUb/KyFW3Yhj2VMKJqGZleFBH7vqvf7WqLC3XMuHV8q8a4sTFuxUtkD/6JIBvKaVjv96ndgruKZ1k/BHzqf2K9fLk7HGXANyLDd1vxkK/i055pnzl+zw6zLnwXlVYVtfmacJgEpRP1hbGgrYPVN6v2lG+idQNGmwcKXu/8xEj/P6qe/sB2WmwNp6pp8jaISMkwdleFXYK55NHWLTTbutSUqjBfDGWo/Yg918qQ+8BRZSAHZbfuNZz2O0sov1Ue4CWlVg3rFhM3Kljj9ksGd/NUhk4nH+a5UN2+1i8+NM3vRNp7uQ6sqexSCukEVlVZriHNqFi5rLm9TMWa4qm3idJqppQACol2l4VSuvWLfta4JcXy3bROPNbXOgdOhG47LC0CwW/dMlSx4Jf17aEU3yA1x9p+Yc0jupXgcMuYNku64iYOkGToVDuJvlbEKlJqsmiHbvNrIVZEH+yFdF8DbleZ6iNiWwMqvtMp/mSpwx5KxRrT9p3MAPTHGtMbfvdFhyj9vhaKcn3At8Lc16Ai+vBcSp1ztXi7rCJZx/ql7TXcclq6Q76UeKWDy9boS0WHIjUuWhPG8LBmW5y2rhuTpM5vsLt+HOLh1Yf0DqXa9tsfC+kaKt2htA0ai/L2i7RKoNjEwztkmRU0GfgW1TxUvPFhg0V7DdfWJk5gfrccpYv+MA9M0dkGTLECeYwUixRzjRFdmjG7zdZIl3XKB9YliNKI31lfa7i2JG5C8Ss+rHe0D7Z696/V3DEAOWHnQ9yNahMUl5kENWS6pHKKp2D1BaSrrHdE1w2qNxIztpXgUIrF0bm15YML4b6V1k+GpNysTahKMVrrS85lTVo9OGJ96I47eAy5rYWpRf/mIzeoYU1DKaQCTUVwrhHeyNoDqHel+lLxr9WKzhSYw7vrR6+V5q0pfi2k3L1zqkubY6rrd9ZLvSuWNf0uqnkY+FpTvFzSW9Fp0b9l8JA7THV9eCi/PY/SCZIUYx3BU2alj7Cm3VV6eYpios4b6WuNOJdYXUK3zTqj5CVG2FqYM4Z7CuIU0qO05XR0d71FHM0YhZmJmTRfLlXEumN82BGtzdX0S19t1e+bUieK8zRmqpa4Qc5TSjifmaQsY2ETLjhI36gMR1+7qpjdXXHiceUekfBaucHShAOiFXmv3sNmGQyU5iVgnoocuonQXEPTFwslHtS8R+A47StI9wj0iSrtbi5rMysczFiImsQ+bdFClnFjjpXXwMy6O7qfjOr8Fb0a7ODItisjnn3EQO16+ypd1cwyaAW5Yzxz5QknfMO7643fXW/I9y3U2xH27Oapqr56Z/tEzglj6IbT6HEHjopiXqeRbe5mQQvxtcbDOVverN0ZgMdzqRYRjaXtMRd56Q4cZSmdPvZJdSrhJ1D9zNXPqAEqPIavPdfubt5oke2kmv0dztIszSv2VYuoyf1UuopbsYb+uX9h6WpwjpgtZ6fNNawNJ4q8O3CFoSbioAaOSZMx2GYaPYB+rEb6qjQiNRFQ76TvwNFVKD+BhH9VhcKGsXzmMI7BptU/CNWolM7YzROvpFAntsiWJp6eR2d3GarcYShVYSUqhmYOWj5E96NK2WvmYNTeY7Zs4RUEdv9h9QT4EseKt6LzLrqEOs3hxAY1MaNWpSa6zZx8F3YOVeCYMS88W+CYHDuWe4yoc6YK+djDuEOrBR5lvh0r+Q9uM88lrjx9x9AtgpQVNE8r+3O6Gvw59D+kBF/UMXyhliYUtPjmvXGY6Dk3x+kEOW+GtdMVC4EZTqoS/jmR0P0LS75DOc/w2vnri97M4SdbZ8qeU7gg8DVbERkU5geaMQO3mYrSYyAngeUQqrN0C0/vsFmcgWNXNeidsTAj7/4MncJR0caaBUpbLK1yBCBNRjEv6KvuVSdpPnEMJdsRRtqJ+U8tN1gXA4ePHc6ZT0eviI73UOJF0fEZ8YaneAQqQdGphNvwM4nIqPnXxV0xA0fnCT+oAhJuyw/q8jO0y8CjSteZExwBpIN6SvNp6A5G/abi6egeND/1GTguhuNjaUbbnSbGd4L8937Ezm34Eyi6n1maeOBxh3PI0jzJDf5mh/BsLD7F2GOKvlA/5gtvxI3/eV4sLfKW5Wy+oio+es/u6T8UU+nsofy57Icb/JlZHPFtCgd/x+bwt3ZT+xXTtTtTrGAb4QehC6X9G+8YT+ozcLxDsdCjsuOqwPFnrdLYaFc92Ui0m4fr39lYmlCaqTit7G6O/3kWDkgtXjNH4BiEm/+jegQnihOtfffn33WxsFjhfMd48HT+f6o6X65j7XR8WLSHMFkxbvOYsrRsF1bowDuSQ18Mkxk4qz2zoGPL5fu9h2Hqmt1asl3Q3Yu3szOc+spiCmX4AETBM3pLoTYSp3sVxahyhL8eC4mPN9k2x3o0xkiixIzM3CZFzf5oR4mecQ5+ax2wCah3/crmnHoqR0+KMaOPxRif1oEFRFOO/kTPPmtww+NfMXxEK6gn6iU32U6fFruIz8Q4WgljtnaCVTBgWx7diUdshC9ZEa5yKpRBBeW12r/iNc/+EgNqmhswNB8SBoihHXeDF7rrWDLcmt3V8GYYN7pXRy4DZjj4DJuUBL5iC3DQAaoo4vkftqVTYRGLS3mHZ7gdmdTTqbgNN/PTdTCOTgXolc88MhXAEUMdX0iy1JMuk5wLsgeu0QUYlz2S4skTWwJz6pOm/8ihrmgGfFgri+ZWUK2gAPHgbWa8jaocdSuM4FJYoKicYX/ZSENkg9Q1ZzJfwScfVnR2DegOGwCvmogaWJCLQepv9WNlU6QgsmOwICquU28Mlk3d9W5E81lU/5Ez0LcX6lwKMWDNluNKfBDUy/phJgBcMnfkh9iRxrdOzgs08JdPB85Lwo+GUSb4t3nC+0byqMZtO2fQJ4U2zGIr49t/28qmmGv2RanDD7a3FEcdtutkW8twwwlUSpb8QalodddbBfNHKDQ828BdE7OBgFdiKYohLawFYqpybQoxATZrheLhdI7+0Zlu9Q1myRcd15r9UIm8K2LGJxqTegntqNVMKnf1a8zQiyUR1rxoqjiFxeHxqFcYUTHfDu7rhbWng6qOxOsI+5A1p9mRyEPdVkTlE24vY54W7bWc6jMgZvNXdfC9/9q7408KDsbdL7Utz7QFSDetz2picArzrdpL8OaCHC9V26RroemtDZ5yNM/KGkWMyTmfnInEvwtSD23UcFcjhaE3VKzkoaEMKGBft4XbIO6forTY1lmGQwVmKicBCiArDzE+1oIxE08fWeviIOD5TznqH+OoHadvoOP20drMPe5Irg3XBQziW2XDuHYzjqQQ4wySssjXUs5H+t3FWYMHppUnBHMx/nYIT5d7OmjDbgD9F6na3m4l7KdkeSO3kTEPXafiWinogag7b52taiZhL1TSvBFmEZafFq2H8khQaZXuitCewT5FBgVtPK0j4xUHPfUz3Q28eac1Z139DAP23dgki94EC8vbDPTQC97HPPSWjUNG5tWKMsaxAEMKC0665Xvo1Ntd07wCLNf8Q56mrEPVpCxlIMVlQlWRxM3oAfpgIc+8KC3rEXUog5g06vt7zgXY8grH7hhwVSaeuvC06YYRAwpbyk/Unzj9hLEZNs2oxPQB9yc+GnL6zTgq7rI++KDJwX2SP8Sd6YzTuw5lV/kU6eQxRD12omfQAW6caTR4LikYkBB1CMOrvgRr/VY75+NSB40Cni6bADAtaK+vyxVWpf9NeKJxN2KYQ8Q2xPB3K1s7fuhvWbr2XpgW044VD6DRs0qXoqKf1NFsaGvKJc47leUV3pppP/5VTKFhaGuol4Esfjf5zyCyUHmHthChcYh4hYLQF+AFWsuq4t0wJyWgdwQVOZiV0efRHPoK5+E1vjz9wTJmVkITC9oEstAsyZSgE/dbicwKr89YUxKZI+owD205Tm5lnnmDRuP/JnzxX3gMtlrcX0UesZdxyQqYQuEW4R51vmQ5xOZteUd8SJruMlTUzhtVw/Nq7eUBcqN2/HVotgfngif60yKEtoUx3WYOZlVJuJOh8u59fzSDPFYtQgqDUAGyGhQOAvKroXMcOYY0qjnStJR/G3aP+Jt1sLVlGV8POwr/6OGsqetnyF3TmTqZjENfnXh51oxe9qVUw2M78EzAJ+IM8lZ1MBPQ9ZWSVc4J3mWSrLKrMHReA5qdGoz0ODRsaA+vwxXA2cAM4qlfzBJA6581m4hzxItQw5dxrrBL3Y6kCbUcFxo1S8jyV44q//+7ASNNudZ6xeaNOSIUffqMn4A9lIjFctYn2gpEPAb3f7p3iIBN8H14FUGQ9ct2hPsL+cEsTgUrR47uJVN4n4wt/wgfwwHuOnLd4yobkofy8JvxSQTA7rMpDIc608SlZFJfZYcmbT0tAHpPE8MrtQ42siTUNWxqvWZOmvu9f0JPoQmg+6l7sZWwyfi6PXkxJnwBraUG0MYG4zYHQz3igy/XsFkx5tNQxw43qvI9dU3f0DdhOUlHKjmi1VAr2Kiy0HZwD8VeEbhh0OiDdMYspolQsYdSwjCcjeowIXNZVUPmL2wwIkYhmXKhGozdCJ4lRKbsf4NBh/XnQoS92NJEWOVOFs2YhN8c5QZFeK0pRdAG40hqvLbmoSA8xQmzOOEc7wLcme9JOsjPCEgpCwUs9E2DohMHRhUeyGIN6TFvrbny8nDuilsDpzrH5mS76APoIEJmItS67sQJ+nfwddzmjPxcBEBBCw0kWDwd0EZCkNeOD7NNQhtBm7KHL9mRxj6U1yWU2puzlIDtpYxdH4ZPeXBJkTGAJfUr/oTCz/iypY6uXaR2V1doPxJYlrw2ghH0D5gbrhFcIxzYwi4a/4hqVdf2DdxBp6vGYDjavxMAAoy+1+3aiO6S3W/QAKNVXagDtvsNtx7Ks+HKgo6U21B+QSZgIogV5Bt+BnXisdVfy9VyXV+2P5fMuvdpAjM1o/K9Z+XnE4EOCrue+kcdYHqAQ0/Y/OmNlQ6OI33jH/uD1RalPaHpJAm2av0/xtpqdXVKNDrc9F2izo23Wu7firgbURFDNX9eGGeYBhiypyXZft2j3hTvzE6PMWKsod//rEILDkzBXfi7xh0eFkfb3/1zzPK/PI5Nk3FbZyTl4mq5BfBoVoqiPHO4Q4QKZAlrQ3MdNfi3oxIjvsM3kAFv3fdufurqYR3PSwX/mpGy/GFI/B2MNPiNdOppWVbs/gjF3YH+QA9jMhlAbhvasAHstB0IJew09iAkmXHl1/TEj+jvHOpOGrPRQXbPADM+Ig2/OEcUcpgPTItMtW4DdqgfYVI/+4hAFWYjUGpOP/UwNuB7+BbKOcALbjobdgzeBQfjgNSp2GOpxzGLj70Vvq5cw2AoYENwKLUtJUX8sGRox4dVa/TN4xKwaKcl9XawQR/uNus700Hf17pyNnezrUgaY9e4MADhEDBpsJT6y1gDJs1q6wlwGhuUzGR7C8kgpjPyHWwsvrf3yn1zJEIRa5eSxoLAZOCR9xbuztxFRJW9ZmMYfCFJ0evm9F2fVnuje92Rc4Pl6A8bluN8MZyyJGZ0+sNSb//DvAFxC2BqlEsFwccWeAl6CyBcQV1bx4mQMBP1Jxqk1EUADNLeieS2dUFbQ/c/kvwItbZ7tx0st16viqd53WsRmPTKv2AD8CUnhtPWg5aUegNpsYgasaw2+EVooeNKmrW3MFtj76bYHJm5K9gpAXZXsE5U8DM8XmVOSJ1F1WnLy6nQup+jx52bAb+rCq6y9WXl2B2oZDhfDkW7H3oYfT/4xx5VncBuxMXP2lNfhUVQjSSzSRbuZFE4vFawlzveXxaYKVs8LpvAb8IRYF3ZHiRnm0ADeNPWocwxSzNseG7NrSEVZoHdKWqaGEBz1N8Pt7kFbqh3LYmAbm9i1IChIpLpM5AS6mr6OAPHMwwznVy61YpBYX8xZDN/a+lt7n+x5j4bNOVteZ8lj3hpAHSx1VR8vZHec4AHO9XFCdjZ9eRkSV65ljMmZVzaej2qFn/qt1lvWzNZEfHxK3qOJrHL6crr0CRzMox5f2e8ALBB4UGFZKA3tN6F6IXd32GTJXGQ7DTi9j/dNcLF9jCbDcWGKxoKTYblIwbLDReL00LRcDPMcQuXLMh5YzgtfjkFK1DP1iDzzYYVZz5M/kWYRlRpig1htVRjVCknm+h1M5LiEDXOyHREhvzCGpFZjHS0RsK27o2avgdilrJkalWqPW3D9gmwV37HKmfM3F8YZj2ar+vHFvf3B8CRoH4kDHIK9mrAg+owiEwNjjd9V+FsQKYR8czJrUkf7Qoi2YaW6EVDZp5zYlqiYtuXOTHk4fAcZ7qBbdLDiJq0WNV1l2+Hntk1mMWvxrYmc8kIx8G3rW36J6Ra4lLrTOCgiOihmow+YnzUT19jbV2B3RWqSHyxkhmgsBqMYWvOcUom1jDQ436+fcbu3xf2bbeqU/ca+C4DOKE+e3qvmeMqW3AxejfzBRFVcwVYPq4L0APSWWoJu+5UYX4qg5U6YTioqQGPG9XrnuZ/BkxuYpe6Li87+18EskyQW/uA+uk2rpHpr6hut2TlVbKgWkFpx+AZffweiw2+VittkEyf/ifinS/0ItRL2Jq3tQOcxPaWO2xrG68GdFoUpZgFXaP2wYVtRc6xYCfI1CaBqyWpg4bx8OHBQwsV4XWMibZZ0LYjWEy2IxQ1mZrf1/UNbYCJplWu3nZ4WpodIGVA05d+RWSS+ET9tH3RfGGmNI1cIY7evZZq7o+a0bjjygpmR3mVfalkT/SZGT27Q8QGalwGlDOS9VHCyFAIL0a1Q7JiW3saz9gqY8lqKynFrPCzxkU4SIfLc9VfCI5edgRhDXs0edO992nhTKHriREP1NJC6SROMgQ0xO5kNNZOhMOIT99AUElbxqeZF8A3xrfDJsWtDnUenAHdYWSwAbYjFqQZ+D5gi3hNK8CSxU9i6f6ClL9IGlj1OPMQAsr84YG6ijsJpCaGWj75c3yOZKBB9mNpQNPUKkK0D6wgLH8MGoyRxTX6Y05Q4AnYNXMZwXM4eij/9WpsM/9CoRnFQXGR6MEaY+FXvXEO3RO0JaStk6OXuHVATHJE+1W+TU3bSZ2ksMtqjO0zfSJCdBv7y2d8DMx6TfVme3q0ZpTKMMu4YL/t7ciTNtdDkwPogh3Cnjx7qk08SHwf+dksZ7M2vCOlfsF0hQ6J4ehPCaHTNrM/zBSOqD83dBEBCW/F/LEmeh0nOHd7oVl3/Qo/9GUDkkbj7yz+9cvvu+dDAtx8NzCDTP4iKdZvk9MWiizvtILLepysflSvTLFBZ37RLwiriqyRxYv/zrgFd/9XVHh/OmzBvDX4mitMR/lUavs2Vx6cR94lzAkplm3IRNy4TFfu47tuYs9EQPIPVta4P64tV+sZ7n3ued3cgEx2YK+QL5+xms6osk8qQbTyuKVGdaX9FQqk6qfDnT5ykxk0VK7KZ62b6DNDUfQlqGHxSMKv1P0XN5BqMeKG1P4Wp5QfZDUCEldppoX0U6ss2jIko2XpURKCIhfaOqLPfShdtS37ZrT+jFRSH2xYVV1rmT/MBtRQhxiO4MQ3iAGlaZi+9PWBEIXOVnu9jN1f921lWLZky9bqbM3J2MAAI9jmuAx3gyoEUa6P2ivs0EeNv/OR+AX6q5SW6l5HaoFuS6jr6yg9limu+P0KYKzfMXWcQSfTXzpOzKEKpwI3YGXZpSSy2LTlMgfmFA3CF6R5c9xWEtRuCg2ZPUQ2Nb6dRFTNd4TfGHrnEWSKHPuRyiJSDAZ+KX0VxmSHjGPbQTLVpqixia2uyhQ394gBMt7C3ZAmxn/DJS+l1fBsAo2Eir/C0jG9csd4+/tp12pPc/BVJGaK9mfvr7M/CeztrmCO5qY06Edi4xAGtiEhnWAbzLy2VEyazE1J5nPmgU4RpW4Sa0TnOT6w5lgt3/tMpROigHHmexBGAMY0mdcDbDxWIz41NgdD6oxgHsJRgr5RnT6wZAkTOcStU4NMOQNemSO7gxGahdEsC+NRVGxMUhQmmM0llWRbbmFGHzEqLM4Iw0H7577Kyo+Zf+2cUFIOw93gEY171vQaM0HLwpjpdRR6Jz7V0ckE7XzYJ0TmY9znLdzkva0vNrAGGT5SUZ5uaHDkcGvI0ySpwkasEgZPMseYcu85w8HPdSNi+4T6A83iAwDbxgeFcB1ZM2iGXzFcEOUlYVrEckaOyodfvaYSQ7GuB4ISE0nYJc15X/1ciDTPbPCgYJK55VkEor4LvzL9S2WDy4xj+6FOqVyTAC2ZNowheeeSI5hA/02l8UYkv4nk9iaVn+kCVEUstgk5Hyq+gJm6R9vG3rhuM904he/hFmNQaUIATB1y3vw+OmxP4X5Yi6A5I5jJufHCjF9+AGNwnEllZjUco6XhsO5T5+R3yxz5yLVOnAn0zuS+6zdj0nTJbEZCbXJdtpfYZfCeCOqJHoE2vPPFS6eRLjIJlG69X93nfR0mxSFXzp1Zc0lt/VafDaImhUMtbnqWVb9M4nGNQLN68BHP7AR8Il9dkcxzmBv8PCZlw9guY0lurbBsmNYlwJZsA/B15/HfkbjbwPddaVecls/elmDHNW2r4crAx43feNkfRwsaNq/yyJ0d/p5hZ6AZajz7DBfUok0ZU62gCzz7x8eVfJTKA8IWn45vINLSM1q+HF9CV9qF3zP6Ml21kPPL3CXzkuYUlnSqT+Ij4tI/od5KwIs+tDajDs64owN7tOAd6eucGz+KfO26iNcBFpbWA5732bBNWO4kHNpr9D955L61bvHCF/mwSrz6eQaDjfDEANqGMkFc+NGxpKZzCD2sj/JrHd+zlPQ8Iz7Q+2JVIiVCuCKoK/hlAEHzvk/Piq3mRL1rT/fEh9hoT5GJmeYswg1otiKydizJ/fS2SeKHVu6Z3JEHjiW8NaTQgP5xdBli8nC57XiN9hrquBu99hn9zqwo92+PM2JXtpeVZS0PdqR5mDyDreMMtEws+CpwaRyyzoYtfcvt9PJIW0fJVNNi/FFyRsea7peLvJrL+5b4GOXJ8tAr+ATk9f8KmiIsRhqRy0vFzwRV3Z5dZ3QqIU8JQ/uQpkJbjMUMFj2F9sCFeaBjI4+fL/oN3+LQgjI4zuAfQ+3IPIPFQBccf0clJpsfpnBxD84atwtupkGqKvrH7cGNl/QcWcSi6wcVDML6ljOgYbo+2BOAWNNjlUBPiyitUAwbnhFvLbnqw42kR3Yp2kv2dMeDdcGOX5kT4S6M44KHEB/SpCfl7xgsUvs+JNY9G3O2X/6FEt9FyAn57lrbiu+tl83sCymSvq9eZbe9mchL7MTf/Ta78e80zSf0hYY5eUU7+ff14jv7Xy8qjzfzzzvaJnrIdvFb5BLWKcWGy5/w7+vV2cvIfwHqdTB+RuJK5oj9mbt0Hy94AmjMjjwYNZlNS6uiyxNnwNyt3gdreLb64p/3+08nXkb92LTkkRgFOwk1oGEVllcOj5lv1hfAZywDows0944U8vUFw+A/nuVq/UCygsrmWIBnHyU01d0XJPwriEOvx/ISK6Pk4y2w0gmojZs7lU8TtakBAdne4v/aNxmMpK4VcGMp7si0yqsiolXRuOi1Z1P7SqD3Zmp0CWcyK4Ubmp2SXiXuI5nGLCieFHKHNRIlcY3Pys2dwMTYCaqlyWSITwr2oGXvyU3h1Pf8eQ3w1bnD7ilocVjYDkcXR3Oo1BXgMLTUjNw2xMVwjtp99NhSVc5aIWrDQT5DHPKtCtheBP4zHcw4dz2eRdTMamhlHhtfgqJJHI7NGDUw1XL8vsSeSHyKqDtqoAmrQqsYwvwi7HW3ojWyhIa5oz5xJTaq14NAzFLjVLR12rRNUQ6xohDnrWFb5bG9yf8aCD8d5phoackcNJp+Dw3Due3RM+5Rid7EuIgsnwgpX0rUWh/nqPtByMhMZZ69NpgvRTKZ62ViZ+Q7Dp5r4K0d7EfJuiy06KuIYauRh5Ecrhdt2QpTS1k1AscEHvapNbU3HL1F2TFyR33Wxb5MvH5iZsrn3SDcsxlnnshO8PLwmdGN+paWnQuORtZGX37uhFT64SeuPsx8UOokY6ON85WdQ1dki5zErsJGazcBOddWJEKqNPiJpsMD1GrVLrVY+AOdPWQneTyyP1hRX/lMM4ZogGGOhYuAdr7F/DOiAoc++cn5vlf0zkMUJ40Z1rlgv9BelPqVOpxKeOpzKdF8maK+1Vv23MO9k/8+qpLoxrIGH2EDQlnGmH8CD31G8QqlyQIcpmR5bwmSVw9/Ns6IHgulCRehvZ/+VrM60Cu/r3AontFfrljew74skYe2uyn7JKQtFQBQRJ9ryGic/zQOsbS4scUBctA8cPToQ3x6ZBQu6DPu5m1bnCtP8TllLYA0UTQNVqza5nfew3Mopy1GPUwG5jsl0OVXniPmAcmLqO5HG8Hv3nSLecE9oOjPDXcsTxoCBxYyzBdj4wmnyEV4kvFDunipS8SSkvdaMnTBN9brHUR8xdmmEAp/Pdqk9uextp1t+JrtXwpN/MG2w/qhRMpSNxQ1uhg/kKO30eQ/FyHUDkWHT8V6gGRU4DhDMxZu7xXij9Ui6jlpWmQCqJg3FkOTq3WKneCRYZxBXMNAVLQgHXSCGSqNdjebY94oyIpVjMYehAiFx/tqzBXFHZaL5PeeD74rW5OysFoUXY8sebUZleFTUa/+zBKVTFDopTReXNuZq47QjkWnxjirCommO4L/GrFtVV21EpMyw8wyThL5Y59d88xtlx1g1ttSICDwnof6lt/6zliPzgVUL8jWBjC0o2D6Kg+jNuThkAlaDJsq/AG2aKA//A76avw2KNqtv223P+Wq3StRDDNKFFgtsFukYt1GFDWooFVXitaNhb3RCyJi4cMeNjROiPEDb4k+G3+hD8tsg+5hhmSc/8t2JTSwYoCzAI75doq8QTHe+E/Tw0RQSUDlU+6uBeNN3h6jJGX/mH8oj0i3caCNsjvTnoh73BtyZpsflHLq6AfwJNCDX4S98h4+pCOhGKDhV3rtkKHMa3EG4J9y8zFWI4UsfNzC/Rl5midNn7gwoN9j23HGCQQ+OAZpTTPMdiVow740gIyuEtd0qVxMyNXhHcnuXRKdw5wDUSL358ktjMXmAkvIB73BLa1vfF9BAUZInPYJiwxqFWQQBVk7gQH4ojfUQ/KEjn+A/WR6EEe4CtbpoLe1mzHkajgTIoE0SLDHVauKhrq12zrAXBGbPPWKCt4DGedq3JyGRbmPFW32bE7T20+73BatV/qQhhBWfWBFHfhYWXjALts38FemnoT+9bn1jDBMcUMmYgSc0e7GQjv2MUBwLU8ionCpgV+Qrhg7iUIfUY6JFxR0Y+ZTCPM+rVuq0GNLyJXX6nrUTt8HzFBRY1E/FIm2EeVA9NcXrj7S6YYIChVQCWr/m2fYUjC4j0XLkzZ8GCSLfmkW3PB/xq+nlXsKVBOj7vTvqKCOMq7Ztqr3cQ+N8gBnPaAps+oGwWOkbuxnRYj/x/WjiDclVrs22xMK4qArE1Ztk1456kiJriw6abkNeRHogaPRBgbgF9Z8i/tbzWELN4CvbqtrqV9TtGSnmPS2F9kqOIBaazHYaJ9bi3AoDBvlZasMluxt0BDXfhp02Jn411aVt6S4TUB8ZgFDkI6TP6gwPY85w+oUQSsjIeXVminrwIdK2ZAawb8Se6XOJbOaliQxHSrnAeONDLuCnFejIbp4YDtBcQCwMsYiRZfHefuEJqJcwKTTJ8sx5hjHmJI1sPFHOr6W9AhZ2NAod38mnLQk1gOz2LCAohoQbgMbUK9RMEA3LkiF7Sr9tLZp6lkciIGhE2V546w3Mam53VtVkGbB9w0Yk2XiRnCmbpxmHr2k4eSC0RuNbjNsUfDIfc8DZvRvgUDe1IlKdZTzcT4ZGEb53dp8VtsoZlyXzLHOdAbsp1LPTVaHvLA0GYDFMbAW/WUBfUAdHwqLFAV+3uHvYWrCfhUOR2i89qvCBoOb48usAGdcF2M4aKn79k/43WzBZ+xR1L0uZfia70XP9soQReeuhZiUnXFDG1T8/OXNmssTSnYO+3kVLAgeiY719uDwL9FQycgLPessNihMZbAKG7qwPZyG11G1+ZA3jAX2yddpYfmaKBlmfcK/V0mwIRUDC0nJSOPUl2KB8h13F4dlVZiRhdGY5farwN+f9hEb1cRi41ZcGDn6Xe9MMSTOY81ULJyXIHSWFIQHstVYLiJEiUjktlHiGjntN5/btB8Fu+vp28zl2fZXN+dJDyN6EXhS+0yzqpl/LSJNEUVxmu7BsNdjAY0jVsAhkNuuY0E1G48ej25mSt+00yPbQ4SRCVkIwb6ISvYtmJRPz9Zt5dk76blf+lJwAPH5KDF+vHAmACLoCdG2Adii6dOHnNJnTmZtoOGO8Q1jy1veMw6gbLFToQmfJa7nT7Al89mRbRkZZQxJTKgK5Kc9INzmTJFp0tpAPzNmyL/F08bX3nhCumM/cR/2RPn9emZ3VljokttZD1zVWXlUIqEU7SLk5I0lFRU0AcENXBYazNaVzsVHA/sD3o9hm42wbHIRb/BBQTKzAi8s3+bMtpOOZgLdQzCYPfX3UUxKd1WYVkGH7lh/RBBgMZZwXzU9+GYxdBqlGs0LP+DZ5g2BWNh6FAcR944B+K/JTWI3t9YyVyRhlP4CCoUk/mmF7+r2pilVBjxXBHFaBfBtr9hbVn2zDuI0kEOG3kBx8CGdPOjX1ph1POOZJUO1JEGG0jzUy2tK4X0CgVNYhmkqqQysRNtKuPdCJqK3WW57kaV17vXgiyPrl4KEEWgiGF1euI4QkSFHFf0TDroQiLNKJiLbdhH0YBhriRNCHPxSqJmNNoketaioohqMglh6wLtEGWSM1EZbQg72h0UJAIPVFCAJOThpQGGdKfFovcwEeiBuZHN2Ob4uVM7+gwZLz1D9E7ta4RmMZ24OBBAg7Eh6dLXGofZ4U2TFOCQMKjwhVckjrydRS+YaqCw1kYt6UexuzbNEDyYLTZnrY1PzsHZJT4U+awO2xlqTSYu6n/U29O2wPXgGOEKDMSq+zTUtyc8+6iLp0ivav4FKx+xxVy4FxhIF/pucVDqpsVe2jFOfdZhTzLz2QjtzvsTCvDPU7bzDH2eXVKUV9TZ+qFtaSSxnYgYdXKwVreIgvWhT9eGDB2OvnWyPLfIIIfNnfIxU8nW7MbcH05nhlsYtaW9EZRsxWcKdEqInq1DiZPKCz7iGmAU9/ccnnQud2pNgIGFYOTAWjhIrd63aPDgfj8/sdlD4l+UTlcxTI9jbaMqqN0gQxSHs60IAcW3cH4p3V1aSciTKB29L1tz2eUQhRiTgTvmqc+sGtBNh4ky0mQJGsdycBREP+fAaSs1EREDVo5gvgi5+aCN7NECw30owbCc1mSpjiahyNVwJd1jiGgzSwfTpzf2c5XJvG/g1n0fH88KHNnf+u7ZiRMlXueSIsloJBUtW9ezvsx9grfsX/FNxnbxU1Lvg0hLxixypHKGFAaPu0xCD8oDTeFSyfRT6s8109GMUZL8m2xXp8X2dpPCWWdX84iga4BrTlOfqox4shqEgh/Ht4qRst52cA1xOIUuOxgfUivp6v5f8IVyaryEdpVk72ERAwdT4aoY1usBgmP+0m06Q216H/nubtNYxHaOIYjcach3A8Ez/zc0KcShhel0HCYjFsA0FjYqyJ5ZUH1aZw3+zWC0hLpM6GDfcAdn9fq2orPmZbW6XXrf+Krc9RtvII5jeD3dFoT1KwZJwxfUMvc5KLfn8rROW23Jw89sJ2a5dpB3qWDUBWF2iX8OCuKprHosJ2mflBR+Wqs86VvgI/XMnsqb97+VlKdPVysczPj8Jhzf+WCvGBHijAqYlavbF60soMWlHbvKT+ScvhprgeTln51xX0sF+Eadc/l2s2a5BgkVbHYyz0E85p0LstqH+gEGiR84nBRRFIn8hLSZrGwqjZ3E29cuGi+5Z5bp7EM8MWFa9ssS/vy4VrDfECSv7DSU84DaP0sXI3Ap4lWznQ65nQoTKRWU30gd7Nn8ZowUvGIx4aqyXGwmA/PB4qN8msJUODezUHEl0VP9uo+cZ8vPFodSIB4C7lQYjEFj8yu49C2KIV3qxMFYTevG8KqAr0TPlkbzHHnTpDpvpzziAiNFh8xiT7C/TiyH0EguUw4vxAgpnE27WIypV+uFN2zW7xniF/n75trs9IJ5amB1zXXZ1LFkJ6GbS/dFokzl4cc2mamVwhL4XU0Av5gDWAl+aEWhAP7t2VIwU+EpvfOPDcLASX7H7lZpXA2XQfbSlD4qU18NffNPoAKMNSccBfO9YVVgmlW4RydBqfHAV7+hrZ84WJGho6bNT0YMhxxLdOx/dwGj0oyak9aAkNJ8lRJzUuA8sR+fPyiyTgUHio5+Pp+YaKlHrhR41jY5NESPS3x+zTMe0S2HnLOKCOQPpdxKyviBvdHrCDRqO+l96HhhNBLXWv4yEMuEUYo8kXnYJM8oIgVM4XJ+xXOev4YbWeqsvgq0lmw4/PiYr9sYLt+W5EAuYSFnJEan8CwJwbtASBfLBBpJZiRPor/aCJBZsM+MhvS7ZepyHvU8m5WSmaZnxuLts8ojl6KkS8oSAHkq5GWlCB/NgJ5W3rO2Cj1MK7ahxsCrbTT3a0V/QQH+sErxV4XUWDHx0kkFy25bPmBMBQ6BU3HoHhhYcJB9JhP6NXUWKxnE0raXHB6U9KHpWdQCQI72qevp5fMzcm+AvC85rsynVQhruDA9fp9COe7N56cg1UKGSas89vrN+WlGLYTwi5W+0xYdKEGtGCeNJwXKDU0XqU5uQYnWsMwTENLGtbQMvoGjIFIEMzCRal4rnBAg7D/CSn8MsCvS+FDJJAzoiioJEhZJgAp9n2+1Yznr7H+6eT4YkJ9Mpj60ImcW4i4iHDLn9RydB8dx3QYm3rsX6n4VRrZDsYK6DCGwkwd5n3/INFEpk16fYpP6JtMQpqEMzcOfQGAHXBTEGzuLJ03GYQL9bmV2/7ExDlRf+Uvf1sM2frRtCWmal12pMgtonvSCtR4n1CLUZRdTHDHP1Otwqd+rcdlavnKjUB/OYXQHUJzpNyFoKpQK+2OgrEKpGyIgIBgn2y9QHnTJihZOpEvOKIoHAMGAXHmj21Lym39Mbiow4IF+77xNuewziNVBxr6KD5e+9HzZSBIlUa/AmsDFJFXeyrQakR3FwowTGcADJHcEfhGkXYNGSYo4dh4bxwLM+28xjiqkdn0/3R4UEkvcBrBfn/SzBc1XhKM2VPlJgKSorjDac96V2UnQYXl1/yZPT4DVelgO+soMjexXwYO58VLl5xInQUZI8jc3H2CPnCNb9X05nOxIy4MlecasTqGK6s2az4RjpF2cQP2G28R+7wDPsZDZC/kWtjdoHC7SpdPmqQrUAhMwKVuxCmYTiD9q/O7GHtZvPSN0CAUQN/rymXZNniYLlJDE70bsk6Xxsh4kDOdxe7A2wo7P9F5YvqqRDI6brf79yPCSp4I0jVoO4YnLYtX5nzspR5WB4AKOYtR1ujXbOQpPyYDvfRE3FN5zw0i7reehdi7yV0YDRKRllGCGRk5Yz+Uv1fYl2ZwrnGsqsjgAVo0xEUba8ohjaNMJNwTwZA/wBDWFSCpg1eUH8MYL2zdioxRTqgGQrDZxQyNzyBJPXZF0+oxITJAbj7oNC5JwgDMUJaM5GqlGCWc//KCIrI+aclEe4IA0uzv7cuj6GCdaJONpi13O544vbtIHBF+A+JeDFUQNy61Gki3rtyQ4aUywn6ru314/dkGiP8Iwjo0J/2Txs49ZkwEl4mx+iYUUO55I6pJzU4P+7RRs+DXZkyKUYZqVWrPF4I94m4Wx1tXeE74o9GuX977yvJ/jkdak8+AmoHVjI15V+WwBdARFV2IPirJgVMdsg1Pez2VNHqa7EHWdTkl3XTcyjG9BiueWFvQfXI8aWSkuuRmqi/HUuzqyvLJfNfs0txMqldYYflWB1BS31WkuPJGGwXUCpjiQSktkuBMWwHjSkQxeehqw1Kgz0Trzm7QbtgxiEPDVmWCNCAeCfROTphd1ZNOhzLy6XfJyG6Xgd5MCAZw4xie0Sj5AnY1/akDgNS9YFl3Y06vd6FAsg2gVQJtzG7LVq1OH2frbXNHWH/NY89NNZ4QUSJqL2yEcGADbT38X0bGdukqYlSoliKOcsSTuqhcaemUeYLLoI8+MZor2RxXTRThF1LrHfqf/5LcLAjdl4EERgUysYS2geE+yFdasU91UgUDsc2cSQ1ZoT9+uLOwdgAmifwQqF028INc2IQEDfTmUw3eZxvz7Ud1z3xc1PQfeCvfKsB9jOhRj7rFyb9XcDWLcYj0bByosychMezMLVkFiYcdBBQtvI6K0KRuOZQH2kBsYHJaXTkup8F0eIhO1/GcIwWKpr2mouB7g5TUDJNvORXPXa/mU8bh27TAZYBe2sKx4NSv5OjnHIWD2RuysCzBlUfeNXhDd2jxnHoUlheJ3jBApzURy0fwm2FwwsSU0caQGl0Kv8hopRQE211NnvtLRsmCNrhhpEDoNiZEzD2QdJWKbRRWnaFedXHAELSN0t0bfsCsMf0ktfBoXBoNA+nZN9+pSlmuzspFevmsqqcMllzzvkyXrzoA+Ryo1ePXpdGOoJvhyru+EBRsmOp7MXZ0vNUMUqHLUoKglg1p73sWeZmPc+KAw0pE2zIsFFE5H4192KwDvDxdxEYoDBDNZjbg2bmADTeUKK57IPD4fTYF4c6EnXx/teYMORBDtIhPJneiZny7Nv/zG+YmekIKCoxr6kauE2bZtBLufetNG0BtBY7f+/ImUypMBvdWu/Q7vTMRzw5aQGZWuc1V0HEsItFYMIBnoKGZ0xcarba/TYZq50kCaflFysYjA4EDKHqGdpYWdKYmm+a7TADmW35yfnOYpZYrkpVEtiqF0EujI00aeplNs2k+qyFZNeE3CDPL9P6b4PQ/kataHkVpLSEVGK7EX6rAa7IVNrvZtFvOA6okKvBgMtFDAGZOx88MeBcJ8AR3AgUUeIznAN6tjCUipGDZONm1FjWJp4A3QIzSaIOmZ7DvF/ysYYbM/fFDOV0jntAjRdapxJxL0eThpEhKOjCDDq2ks+3GrwxqIFKLe1WdOzII8XIOPGnwy6LKXVfpSDOTEfaRsGujhpS4hBIsMOqHbl16PJxc4EkaVu9wpEYlF/84NSv5Zum4drMfp9yXbzzAOJqqS4YkI4cBrFrC7bMPiCfgI3nNZAqkk3QOZqR+yyqx+nDQKBBBZ7QKrfGMCL+XpqFaBJU0wpkBdAhbR4hJsmT5aynlvkouoxm/NjD5oe6BzVIO9uktM+/5dEC5P7vZvarmuO/lKXz4sBabVPIATuKTrwbJP8XUkdM6uEctHKXICUJGjaZIWRbZp8czquQYfY6ynBUCfIU+gG6wqSIBmYIm9pZpXdaL121V7q0VjDjmQnXvMe7ysoEZnZL15B0SpxS1jjd83uNIOKZwu5MPzg2NhOx3xMOPYwEn2CUzbSrwAs5OAtrz3GAaUkJOU74XwjaYUmGJdZBS1NJVkGYrToINLKDjxcuIlyfVsKQSG/G4DyiO2SlQvJ0d0Ot1uOG5IFSAkq+PRVMgVMDvOIJMdqjeCFKUGRWBW9wigYvcbU7CQL/7meF2KZAaWl+4y9uhowAX7elogAvItAAxo2+SFxGRsHGEW9BnhlTuWigYxRcnVUBRQHV41LV+Fr5CJYV7sHfeywswx4XMtUx6EkBhR+q8AXXUA8uPJ73Pb49i9KG9fOljvXeyFj9ixgbo6CcbAJ7WHWqKHy/h+YjBwp6VcN7M89FGzQ04qbrQtgrOFybg3gQRTYG5xn73ArkfQWjCJROwy3J38Dx/D7jOa6BBNsitEw1wGq780EEioOeD+ZGp2J66ADiVGMayiHYucMk8nTK2zzT9CnEraAk95kQjy4k0GRElLL5YAKLQErJ5rp1eay9O4Fb6yJGm9U4FaMwPGxtKD6odIIHKoWnhKo1U8KIpFC+MVn59ZXmc7ZTBZfsg6FQ8W10YfTr4u0nYrpHZbZ1jXiLmooF0cOm0+mPnJBXQtepc7n0BqOipNCqI6yyloTeRShNKH04FIo0gcMk0H/xThyN4pPAWjDDkEp3lNNPRNVfpMI44CWRlRgViP64eK0JSRp0WUvCWYumlW/c58Vcz/yMwVcW5oYb9+26TEhwvbxiNg48hl1VI1UXTU//Eta+BMKnGUivctfL5wINDD0giQL1ipt6U7C9cd4+lgqY2lMUZ02Uv6Prs+ZEZer7ZfWBXVghlfOOrClwsoOFKzWEfz6RZu1eCs+K8fLvkts5+BX0gyrFYve0C3qHrn5U/Oh6D/CihmWIrY7HUZRhJaxde+tldu6adYJ+LeXupQw0XExC36RETdNFxcq9glMu4cNQSX9cqR/GQYp+IxUkIcNGWVU7ZtGa6P3XAyodRt0XeS3Tp01AnCh0ZbUh4VrSZeV9RWfSoWyxnY3hzcZ30G/InDq4wxRrEejreBxnhIQbkxenxkaxl+k7eLUQkUR6vKJ2iDFNGX3WmVA1yaOH+mvhBd+sE6vacQzFobwY5BqEAFmejwW5ne7HtVNolOUgJc8CsUxmc/LBi8N5mu9VsIA5HyErnS6zeCz7VLI9+n/hbT6hTokMXTVyXJRKSG2hd2labXTbtmK4fNH3IZBPreSA4FMeVouVN3zG5x9CiGpLw/3pceo4qGqp+rVp+z+7yQ98oEf+nyH4F3+J9IheDBa94Wi63zJbLBCIZm7P0asHGpIJt3PzE3m0S4YIWyXBCVXGikj8MudDPB/6Nm2v4IxJ5gU0ii0guy5SUHqGUYzTP0jIJU5E82RHUXtX4lDdrihBLdP1YaG1AGUC12rQKuIaGvCpMjZC9bWSCYnjDlvpWbkdXMTNeBHLKiuoozMGIvkczmP0aRJSJ8PYnLCVNhKHXBNckH79e8Z8Kc2wUej4sQZoH8qDRGkg86maW/ZQWGNnLcXmq3FlXM6ssR/3P6E/bHMvm6HLrv1yRixit25JsH3/IOr2UV4BWJhxXW5BJ6Xdr07n9kF3ZNAk6/Xpc5MSFmYJ2R7bdL8Kk7q1OU9Elg/tCxJ8giT27wSTySF0GOxg4PbYJdi/Nyia9Nn89CGDulfJemm1aiEr/eleGSN+5MRrVJ4K6lgyTTIW3i9cQ0dAi6FHt0YMbH3wDSAtGLSAccezzxHitt1QdhW36CQgPcA8vIIBh3/JNjf/Obmc2yzpk8edSlS4lVdwgW5vzbYEyFoF4GCBBby1keVNueHAH+evi+H7oOVfS3XuPQSNTXOONAbzJeSb5stwdQHl1ZjrGoE49I8+A9j3t+ahhQj74FCSWpZrj7wRSFJJnnwi1T9HL5qrCFW/JZq6P62XkMWTb+u4lGpKfmmwiJWx178GOG7KbrZGqyWwmuyKWPkNswkZ1q8uptUlviIi+AXh2bOOTOLsrtNkfqbQJeh24reebkINLkjut5r4d9GR/r8CBa9SU0UQhsnZp5cP+RqWCixRm7i4YRFbtZ4EAkhtNa6jHb6gPYQv7MKqkPLRmX3dFsK8XsRLVZ6IEVrCbmNDc8o5mqsogjAQfoC9Bc7R6gfw03m+lQpv6kTfhxscDIX6s0w+fBxtkhjXAXr10UouWCx3C/p/FYwJRS/AXRKkjOb5CLmK4XRe0+xeDDwVkJPZau52bzLEDHCqV0f44pPgKOkYKgTZJ33fmk3Tu8SdxJ02SHM8Fem5SMsWqRyi2F1ynfRJszcFKykdWlNqgDA/L9lKYBmc7Zu/q9ii1FPF47VJkqhirUob53zoiJtVVRVwMR34gV9iqcBaHbRu9kkvqk3yMpfRFG49pKKjIiq7h/VpRwPGTHoY4cg05X5028iHsLvUW/uz+kjPyIEhhcKUwCkJAwbR9pIEGOn8z6svAO8i89sJ3dL5qDWFYbS+HGPRMxYwJItFQN86YESeJQhn2urGiLRffQeLptDl8dAgb+Tp47UQPxWOw17OeChLN1WnzlkPL1T5O+O3Menpn4C3IY5LEepHpnPeZHbvuWfeVtPlkH4LZjPbBrkJT3NoRJzBt86CO0Xq59oQ+8dsm0ymRcmQyn8w71mhmcuEI5byuF+C88VPYly2sEzjlzAQ3vdn/1+Hzguw6qFNNbqenhZGbdiG6RwZaTG7jTA2X9RdXjDN9yj1uQpyO4Lx8KRAcZcbZMafp4wPOd5MdXoFY52V1A8M9hi3sso93+uprE0qYNMjkE22CvK4HuUxqN7oIz5pWuETq1lQAjqlSlqdD2Rnr/ggp/TVkQYjn9lMfYelk2sH5HPdopYo7MHwlV1or9Bxf+QCyLzm92vzG2wjiIjC/ZHEJzeroJl6bdFPTpZho5MV2U86fLQqxNlGIMqCGy+9WYhJ8ob1r0+Whxde9L2PdysETv97O+xVw+VNN1TZSQN5I6l9m5Ip6pLIqLm4a1B1ffH6gHyqT9p82NOjntRWGIofO3bJz5GhkvSWbsXueTAMaJDou99kGLqDlhwBZNEQ4mKPuDvVwSK4WmLluHyhA97pZiVe8g+JxmnJF8IkV/tCs4Jq/HgOoAEGR9tCDsDbDmi3OviUQpG5D8XmKcSAUaFLRXb2lmJTNYdhtYyfjBYZQmN5qT5CNuaD3BVnlkCk7bsMW3AtXkNMMTuW4HjUERSJnVQ0vsBGa1wo3Qh7115XGeTF3NTz8w0440AgU7c3bSXO/KMINaIWXd0oLpoq/0/QJxCQSJ9XnYy1W7TYLBJpHsVWD1ahsA7FjNvRd6mxCiHsm8g6Z0pnzqIpF1dHUtP2ITU5Z1hZHbu+L3BEEStBbL9XYvGfEakv1bmf+bOZGnoiuHEdlBnaChxYKNzB23b8sw8YyT7Ajxfk49eJIAvdbVkdFCe2J0gMefhQ0bIZxhx3fzMIysQNiN8PgOUKxOMur10LduigREDRMZyP4oGWrP1GFY4t6groASsZ421os48wAdnrbovNhLt7ScNULkwZ5AIZJTrbaKYTLjA1oJ3sIuN/aYocm/9uoQHEIlacF1s/TM1fLcPTL38O9fOsjMEIwoPKfvt7opuI9G2Hf/PR4aCLDQ7wNmIdEuXJ/QNL72k5q4NejAldPfe3UVVqzkys8YZ/jYOGOp6c+YzRCrCuq0M11y7TiN6qk7YXRMn/gukxrEimbMQjr3jwRM6dKVZ4RUfWQr8noPXLJq6yh5R3EH1IVOHESst/LItbG2D2vRsZRkAObzvQAAD3mb3/G4NzopI0FAiHfbpq0X72adg6SRj+8OHMShtFxxLZlf/nLgRLbClwl5WmaYSs+yEjkq48tY7Z2bE0N91mJwt+ua0NlRJIDh0HikF4UvSVorFj2YVu9YeS5tfvlVjPSoNu/Zu6dEUfBOT555hahBdN3Sa5Xuj2Rvau1lQNIaC944y0RWj9UiNDskAK1WoL+EfXcC6IbBXFRyVfX/WKXxPAwUyIAGW8ggZ08hcijKTt1YKnUO6QPvcrmDVAb0FCLIXn5id4fD/Jx4tw/gbXs7WF9b2RgXtPhLBG9vF5FEkdHAKrQHZAJC/HWvk7nvzzDzIXZlfFTJoC3JpGgLPBY7SQTjGlUvG577yNutZ1hTfs9/1nkSXK9zzKLRZ3VODeKUovJe0WCq1zVMYxCJMenmNzPIU2S8TA4E7wWmbNkxq9rI2dd6v0VpcAPVMxnDsvWTWFayyqvKZO7Z08a62i/oH2/jxf8rpmfO64in3FLiL1GX8IGtVE9M23yGsIqJbxDTy+LtaMWDaPqkymb5VrQdzOvqldeU0SUi6IirG8UZ3jcpRbwHa1C0Dww9G/SFX3gPvTJQE+kyz+g1BeMILKKO+olcHzctOWgzxYHnOD7dpCRtuZEXACjgqesZMasoPgnuDC4nUviAAxDc5pngjoAITIkvhKwg5d608pdrZcA+qn5TMT6Uo/QzBaOxBCLTJX3Mgk85rMfsnWx86oLxf7p2PX5ONqieTa/qM3tPw4ZXvlAp83NSD8F7+ZgctK1TpoYwtiU2h02HCGioH5tkVCqNVTMH5p00sRy2JU1qyDBP2CII/Dg4WDsIl+zgeX7589srx6YORRQMBfKbodbB743Tl4WLKOEnwWUVBsm94SOlCracU72MSyj068wdpYjyz1FwC2bjQnxnB6Mp/pZ+yyZXtguEaYB+kqhjQ6UUmwSFazOb+rhYjLaoiM+aN9/8KKn0zaCTFpN9eKwWy7/u4EHzO46TdFSNjMfn2iPSJwDPCFHc0I1+vjdAZw5ZjqR/uzi9Zn20oAa5JnLEk/EA3VRWE7J/XrupfFJPtCUuqHPpnlL7ISJtRpSVcB8qsZCm2QEkWoROtCKKxUh3yEcMbWYJwk6DlEBG0bZP6eg06FL3v6RPb7odGuwm7FN8fG4woqtB8e7M5klPpo97GoObNwt+ludTAmxyC5hmcFx+dIvEZKI6igFKHqLH01iY1o7903VzG9QGetyVx5RNmBYUU+zIuSva/yIcECUi4pRmE3VkF2avqulQEUY4yZ/wmNboBzPmAPey3+dSYtBZUjeWWT0pPwCz4Vozxp9xeClIU60qvEFMQCaPvPaA70WlOP9f/ey39macvpGCVa+zfa8gO44wbxpJUlC8GN/pRMTQtzY8Z8/hiNrU+Zq64ZfFGIkdj7m7abcK1EBtws1X4J/hnqvasPvvDSDYWN+QcQVGMqXalkDtTad5rYY0TIR1Eqox3czwPMjKPvF5sFv17Thujr1IZ1Ytl4VX1J0vjXKmLY4lmXipRAro0qVGEcXxEVMMEl54jQMd4J7RjgomU0j1ptjyxY+cLiSyXPfiEcIS2lWDK3ISAy6UZ3Hb5vnPncA94411jcy75ay6B6DSTzK6UTCZR9uDANtPBrvIDgjsfarMiwoax2OlLxaSoYn4iRgkpEGqEkwox5tyI8aKkLlfZ12lO11TxsqRMY89j5JaO55XfPJPDL1LGSnC88Re9Ai+Nu5bZjtwRrvFITUFHPR4ZmxGslQMecgbZO7nHk32qHxYkdvWpup07ojcMCaVrpFAyFZJJbNvBpZfdf39Hdo2kPtT7v0/f8R/B5Nz4f1t9/3zNM/7n6SUHfcWk5dfQFJvcJMgPolGCpOFb/WC0FGWU2asuQyT+rm88ZKZ78Cei/CAh939CH0JYbpZIPtxc2ufXqjS3pHH9lnWK4iJ7OjR/EESpCo2R3MYKyE7rHfhTvWho4cL1QdN4jFTyR6syMwFm124TVDDRXMNveI1Dp/ntwdz8k8kxw7iFSx6+Yx6O+1LzMVrN0BBzziZi9kneZSzgollBnVwBh6oSOPHXrglrOj+QmR/AESrhDpKrWT+8/AiMDxS/5wwRNuGQPLlJ9ovomhJWn8sMLVItQ8N/7IXvtD8kdOoHaw+vBSbFImQsv/OCAIui99E+YSIOMlMvBXkAt+NAZK8wB9Jf8CPtB+TOUOR+z71d/AFXpPBT6+A5FLjxMjLIEoJzrQfquvxEIi+WoUzGR1IzQFNvbYOnxb2PyQ0kGdyXKzW2axQL8lNAXPk6NEjqrRD1oZtKLlFoofrXw0dCNWASHzy+7PSzOUJ3XtaPZsxLDjr+o41fKuKWNmjiZtfkOzItvlV2MDGSheGF0ma04qE3TUEfqJMrXFm7DpK+27DSvCUVf7rbNoljPhha5W7KBqVq0ShUSTbRmuqPtQreVWH4JET5yMhuqMoSd4r/N8sDmeQiQQvi1tcZv7Moc7dT5X5AtCD6kNEGZOzVcNYlpX4AbTsLgSYYliiPyVoniuYYySxsBy5cgb3pD+EK0Gpb0wJg031dPgaL8JZt6sIvzNPEHfVPOjXmaXj4bd4voXzpZ5GApMhILgMbCEWZ2zwgdeQgjNHLbPIt+KqxRwWPLTN6HwZ0Ouijj4UF+Sg0Au8XuIKW0WxlexdrFrDcZJ8Shauat3X0XmHygqgL1nAu2hrJFb4wZXkcS+i36KMyU1yFvYv23bQUJi/3yQpqr/naUOoiEWOxckyq/gq43dFou1DVDaYMZK9tho7+IXXokBCs5GRfOcBK7g3A+jXQ39K4YA8PBRW4m5+yR0ZAxWJncjRVbITvIAPHYRt1EJ3YLiUbqIvoKHtzHKtUy1ddRUQ0AUO41vonZDUOW+mrszw+SW/6Q/IUgNpcXFjkM7F4CSSQ2ExZg85otsMs7kqsQD4OxYeBNDcSpifjMoLb7GEbGWTwasVObmB/bfPcUlq0wYhXCYEDWRW02TP5bBrYsKTGWjnWDDJ1F7zWai0zW/2XsCuvBQjPFcTYaQX3tSXRSm8hsAoDdjArK/OFp6vcWYOE7lizP0Yc+8p16i7/NiXIiiQTp7c7Xus925VEtlKAjUdFhyaiLT7VxDagprMFwix4wZ05u0qj7cDWFd0W9OYHIu3JbJKMXRJ1aYNovugg+QqRN7fNHSi26VSgBpn+JfMuPo3aeqPWik/wI5Rz3BWarPQX4i5+dM0npwVOsX+KsOhC7vDg+OJsz4Q5zlnIeflUWL6QYMbf9WDfLmosLF4Qev3mJiOuHjoor/dMeBpA9iKDkMjYBNbRo414HCxjsHrB4EXNbHzNMDHCLuNBG6Sf+J4MZ/ElVsDSLxjIiGsTPhw8BPjxbfQtskj+dyNMKOOcUYIRBEIqbazz3lmjlRQhplxq673VklMMY6597vu+d89ec/zq7Mi4gQvh87ehYbpOuZEXj5g/Q7S7BFDAAB9DzG35SC853xtWVcnZQoH54jeOqYLR9NDuwxsVthTV7V99n/B7HSbAytbEyVTz/5NhJ8gGIjG0E5j3griULUd5Rg7tQR+90hJgNQKQH2btbSfPcaTOfIexc1db1BxUOhM1vWCpLaYuKr3FdNTt/T3PWCpEUWDKEtzYrjpzlL/wri3MITKsFvtF8QVV/NhVo97aKIBgdliNc10dWdXVDpVtsNn+2UIolrgqdWA4EY8so0YvB4a+aLzMXiMAuOHQrXY0tr+CL10JbvZzgjJJuB1cRkdT7DUqTvnswVUp5kkUSFVtIIFYK05+tQxT6992HHNWVhWxUsD1PkceIrlXuUVRogwmfdhyrf6zzaL8+c0L7GXMZOteAhAVQVwdJh+7nrX7x4LaIIfz2F2v7Dg/uDfz2Fa+4gFm2zHAor8UqimJG3VTJtZEoFXhnDYXvxMJFc6ku2bhbCxzij2z5UNuK0jmp1mnvkVNUfR+SEmj1Lr94Lym75PO7Fs0MIr3GdsWXRXSfgLTVY0FLqba97u1In8NAcY7IC6TjWLigwKEIm43NxTdaVTv9mcKkzuzBkKd8x/xt1p/9BbP7Wyb4bpo1K1gnOpbLvKz58pWl3B55RJ/Z5mRDLPtNQg14jdOEs9+h/V5UVpwrAI8kGbX8KPVPDIMfIqKDjJD9UyDOPhjZ3vFAyecwyq4akUE9mDOtJEK1hpDyi6Ae87sWAClXGTiwPwN7PXWwjxaR79ArHRIPeYKTunVW24sPr/3HPz2IwH8oKH4OlWEmt4BLM6W5g4kMcYbLwj2usodD1088stZA7VOsUSpEVl4w7NMb1EUHMRxAxLF0CIV+0L3iZb+ekB1vSDSFjAZ3hfLJf7gFaXrOKn+mhR+rWw/eTXIcAgl4HvFuBg1LOmOAwJH3eoVEjjwheKA4icbrQCmvAtpQ0mXG0agYp5mj4Rb6mdQ+RV4QBPbxMqh9C7o8nP0Wko2ocnCHeRGhN1XVyT2b9ACsL+6ylUy+yC3QEnaKRIJK91YtaoSrcWZMMwxuM0E9J68Z+YyjA0g8p1PfHAAIROy6Sa04VXOuT6A351FOWhKfTGsFJ3RTJGWYPoLk5FVK4OaYR9hkJvezwF9vQN1126r6isMGXWTqFW+3HL3I/jurlIdDWIVvYY+s6yq7lrFSPAGRdnU7PVwY/SvWbZGpXzy3BQ2LmAJlrONUsZs4oGkly0V267xbD5KMY8woNNsmWG1VVgLCra8aQBBcI4DP2BlNwxhiCtHlaz6OWFoCW0vMR3ErrG7JyMjTSCnvRcsEHgmPnwA6iNpJ2DrFb4gLlhKJyZGaWkA97H6FFdwEcLT6DRQQL++fOkVC4cYGW1TG/3iK5dShRSuiBulmihqgjR45Vi03o2RbQbP3sxt90VxQ6vzdlGfkXmmKmjOi080JSHkLntjvsBJnv7gKscOaTOkEaRQqAnCA4HWtB4XnMtOhpRmH2FH8tTXrIjAGNWEmudQLCkcVlGTQ965Kh0H6ixXbgImQP6b42B49sO5C8pc7iRlgyvSYvcnH9FgQ3azLbQG2cUW96SDojTQStxkOJyOuDGTHAnnWkz29aEwN9FT8EJ4yhXOg+jLTrCPKeEoJ9a7lDXOjEr8AgX4BmnMQ668oW0zYPyQiVMPxKRHtpfnEEyaKhdzNVThlxxDQNdrHeZiUFb6NoY2KwvSb7BnRcpJy+/g/zAYx3fYSN5QEaVD2Y1VsNWxB0BSO12MRsRY8JLfAezRMz5lURuLUnG1ToKk6Q30FughqWN6gBNcFxP/nY/iv+iaUQOa+2Nuym46wtI/DvSfzSp1jEi4SdYBE7YhTiVV5cX9gwboVDMVgZp5YBQlHOQvaDNfcCoCJuYhf5kz5kwiIKPjzgpcRJHPbOhJajeoeRL53cuMahhV8Z7IRr6M4hW0JzT7mzaMUzQpm866zwM7Cs07fJYXuWvjAMkbe5O6V4bu71sOG6JQ4oL8zIeXHheFVavzxmlIyBkgc9IZlEDplMPr8xlcyss4pVUdwK1e7CK2kTsSdq7g5SHRAl3pYUB9Ko4fsh4qleOyJv1z3KFSTSvwEcRO/Ew8ozEDYZSqpfoVW9uhJfYrNAXR0Z3VmeoAD+rVWtwP/13sE/3ICX3HhDG3CMc476dEEC0K3umSAD4j+ZQLVdFOsWL2C1TH5+4KiSWH+lMibo+B55hR3Gq40G1n25sGcN0mEcoU2wN9FCVyQLBhYOu9aHVLWjEKx2JIUZi5ySoHUAI9b8hGzaLMxCZDMLhv8MkcpTqEwz9KFDpCpqQhVmsGQN8m24wyB82FAKNmjgfKRsXRmsSESovAwXjBIoMKSG51p6Um8b3i7GISs7kjTq/PZoioCfJzfKdJTN0Q45kQEQuh9H88M3yEs3DbtRTKALraM0YC8laiMiOOe6ADmTcCiREeAWZelBaEXRaSuj2lx0xHaRYqF65O0Lo5OCFU18A8cMDE4MLYm9w2QSr9NgQAIcRxZsNpA7UJR0e71JL+VU+ISWFk5I97lra8uGg7GlQYhGd4Gc6rxsLFRiIeGO4abP4S4ekQ1fiqDCy87GZHd52fn5aaDGuvOmIofrzpVwMvtbreZ/855OaXTRcNiNE0wzGZSxbjg26v8ko8L537v/XCCWP2MFaArJpvnkep0pA+O86MWjRAZPQRfznZiSIaTppy6m3p6HrNSsY7fDtz7Cl4V/DJAjQDoyiL2uwf1UHVd2AIrzBUSlJaTj4k6NL97a/GqhWKU9RUmjnYKpm2r+JYUcrkCuZKvcYvrg8pDoUKQywY9GDWg03DUFSirlUXBS5SWn/KAntnf0IdHGL/7mwXqDG+LZYjbEdQmqUqq4y54TNmWUP7IgcAw5816YBzwiNIJiE9M4lPCzeI/FGBeYy3p6IAmH4AjXXmvQ4Iy0Y82NTobcAggT2Cdqz6Mx4TdGoq9fn2etrWKUNFyatAHydQTVUQ2S5OWVUlugcNvoUrlA8cJJz9MqOa/W3iVno4zDHfE7zhoY5f5lRTVZDhrQbR8LS4eRLz8iPMyBL6o4PiLlp89FjdokQLaSBmKHUwWp0na5fE3v9zny2YcDXG/jfI9sctulHRbdkI5a4GOPJx4oAJQzVZ/yYAado8KNZUdEFs9ZPiBsausotXMNebEgr0dyopuqfScFJ3ODNPHgclACPdccwv0YJGQdsN2lhoV4HVGBxcEUeUX/alr4nqpcc1CCR3vR7g40zteQg/JvWmFlUE4mAiTpHlYGrB7w+U2KdSwQz2QJKBe/5eiixWipmfP15AFWrK8Sh1GBBYLgzki1wTMhGQmagXqJ2+FuqJ8f0XzXCVJFHQdMAw8xco11HhM347alrAu+wmX3pDFABOvkC+WPX0Uhg1Z5MVHKNROxaR84YV3s12UcM+70cJ460SzEaKLyh472vOMD3XnaK7zxZcXlWqenEvcjmgGNR2OKbI1s8U+iwiW+HotHalp3e1MGDy6BMVIvajnAzkFHbeVsgjmJUkrP9OAwnEHYXVBqYx3q7LvXjoVR0mY8h+ZaOnh053pdsGkmbqhyryN01eVHySr+CkDYkSMeZ1xjPNVM+gVLTDKu2VGsMUJqWO4TwPDP0VOg2/8ITbAUaMGb4LjL7L+Pi11lEVMXTYIlAZ/QHmTENjyx3kDkBdfcvvQt6tKk6jYFM4EG5UXDTaF5+1ZjRz6W7MdJPC+wTkbDUim4p5QQH3b9kGk2Bkilyeur8Bc20wm5uJSBO95GfYDI1EZipoRaH7uVveneqz43tlTZGRQ4a7CNmMHgXyOQQOL6WQkgMUTQDT8vh21aSdz7ERiZT1jK9F+v6wgFvuEmGngSvIUR2CJkc5tx1QygfZnAruONobB1idCLB1FCfO7N1ZdRocT8/Wye+EnDiO9pzqIpnLDl4bkaRKW+ekBVwHn46Shw1X0tclt/0ROijuUB4kIInrVJU4buWf4YITJtjOJ6iKdr1u+flgQeFH70GxKjhdgt/MrwfB4K/sXczQ+9zYcrD4dhY6qZhZ010rrxggWA8JaZyg2pYij8ieYEg1aZJkZK9O1Re7sB0iouf60rK0Gd+AYlp7soqCBCDGwfKeUQhCBn0E0o0GS6PdmjLi0TtCYZeqazqwN+yNINIA8Lk3iPDnWUiIPLGNcHmZDxfeK0iAdxm/T7LnN+gemRL61hHIc0NCAZaiYJR+OHnLWSe8sLrK905B5eEJHNlWq4RmEXIaFTmo49f8w61+NwfEUyuJAwVqZCLFcyHBKAcIVj3sNzfEOXzVKIndxHw+AR93owhbCxUZf6Gs8cz6/1VdrFEPrv330+9s6BtMVPJ3zl/Uf9rUi0Z/opexfdL3ykF76e999GPfVv8fJv/Y/+/5hEMon1tqNFyVRevV9y9/uIvsG3dbB8GRRrgaEXfhx+2xeOFt+cEn3RZanNxdEe2+B6MHpNbrRE53PlDifPvFcp4kO78ILR0T4xyW/WGPyBsqGdoA7zJJCu1TKbGfhnqgnRbxbB2B3UZoeQ2bz2sTVnUwokTcTU21RxN1PYPS3Sar7T0eRIsyCNowr9amwoMU/od9s2APtiKNL6ENOlyKADstAEWKA+sdKDhrJ6BOhRJmZ+QJbAaZ3/5Fq0/lumCgEzGEbu3yi0Y4I4EgVAjqxh4HbuQn0GrRhOWyAfsglQJAVL1y/6yezS2k8RE2MstJLh92NOB3GCYgFXznF4d25qiP4ZCyI4RYGesut6FXK6GwPpKK8WHEkhYui0AyEmr5Ml3uBFtPFdnioI8RiCooa7Z1G1WuyIi3nSNglutc+xY8BkeW3JJXPK6jd2VIMpaSxpVtFq+R+ySK9J6WG5Qvt+C+QH1hyYUOVK7857nFmyDBYgZ/o+AnibzNVqyYCJQvyDXDTK+iXdkA71bY7TL3bvuLxLBQ8kbTvTEY9aqkQ3+MiLWbEgjLzOH+lXgco1ERgzd80rDCymlpaRQbOYnKG/ODoFl46lzT0cjM5FYVvv0qLUbD5lyJtMUaC1pFlTkNONx6lliaX9o0i/1vws5bNKn5OuENQEKmLlcP4o2ZmJjD4zzd3Fk32uQ4uRWkPSUqb4LBe3EXHdORNB2BWsws5daRnMfNVX7isPSb1hMQdAJi1/qmDMfRUlCU74pmnzjbXfL8PVG8NsW6IQM2Ne23iCPIpryJjYbVnm5hCvKpMa7HLViNiNc+xTfDIaKm3jctViD8A1M9YPJNk003VVr4Zo2MuGW8vil8SLaGpPXqG7I4DLdtl8a4Rbx1Lt4w5Huqaa1XzZBtj208EJVGcmKYEuaeN27zT9EE6a09JerXdEbpaNgNqYJdhP1NdqiPKsbDRUi86XvvNC7rME5mrSQtrzAZVndtSjCMqd8BmaeGR4l4YFULGRBeXIV9Y4yxLFdyoUNpiy2IhePSWzBofYPP0eIa2q5JP4j9G8at/AqoSsLAUuRXtvgsqX/zYwsE+of6oSDbUOo4RMJw+DOUTJq+hnqwKim9Yy/napyZNTc2rCq6V9jHtJbxGPDwlzWj/Sk3zF/BHOlT/fSjSq7FqlPI1q6J+ru8Aku008SFINXZfOfnZNOvGPMtEmn2gLPt+H4QLA+/SYe4j398auzhKIp2Pok3mPC5q1IN1HgR+mnEfc4NeeHYwd2/kpszR3cBn7ni9NbIqhtSWFW8xbUJuUPVOeeXu3j0IGZmFNiwaNZ6rH4/zQ2ODz6tFxRLsUYZu1bfd1uIvfQDt4YD/efKYv8VF8bHGDgK22w2Wqwpi43vNCOXFJZCGMqWiPbL8mil6tsmOTXAWCyMCw73e2rADZj2IK6rqksM3EXF2cbLb4vjB14wa/yXK5vwU+05MzERJ5nXsXsW21o7M+gO0js2OyKciP5uF2iXyb2DiptwQeHeqygkrNsqVCSlldxBMpwHi1vfc8RKpP/4L3Lmpq6DZcvhDDfxTCE3splacTcOtXdK2g303dIWBVe2wD/Gvja1cClFQ67gw0t1ZUttsUgQ1Veky8oOpS6ksYEc4bqseCbZy766SvL3FodmnahlWJRgVCNjPxhL/fk2wyvlKhITH/VQCipOI0dNcRa5B1M5HmOBjTLeZQJy237e2mobwmDyJNHePhdDmiknvLKaDbShL+Is1XTCJuLQd2wmdJL7+mKvs294whXQD+vtd88KKk0DXP8B1Xu9J+xo69VOuFgexgTrcvI6SyltuLix9OPuE6/iRJYoBMEXxU4shQMf4Fjqwf1PtnJ/wWSZd29rhZjRmTGgiGTAUQqRz+nCdjeMfYhsBD5Lv60KILWEvNEHfmsDs2L0A252351eUoYxAysVaCJVLdH9QFWAmqJDCODUcdoo12+gd6bW2boY0pBVHWL6LQDK5bYWh1V8vFvi0cRpfwv7cJiMX3AZNJuTddHehTIdU0YQ/sQ1dLoF2xQPcCuHKiuCWOY30DHe1OwcClLAhqAKyqlnIbH/8u9ScJpcS4kgp6HKDUdiOgRaRGSiUCRBjzI5gSksMZKqy7Sd51aeg0tgJ+x0TH9YH2Mgsap9N7ENZdEB0bey2DMTrBA1hn56SErNHf3tKtqyL9b6yXEP97/rc+jgD2N1LNUH6RM9AzP3kSipr06RkKOolR7HO768jjWiH1X92jA7dkg7gcNcjqsZCgfqWw0tPXdLg20cF6vnQypg7gLtkazrHAodyYfENPQZsdfnjMZiNu4nJO97D1/sQE+3vNFzrSDOKw+keLECYf7RJwVHeP/j79833oZ0egonYB2FlFE5qj02B/LVOMJQlsB8uNg3Leg4qtZwntsOSNidR0abbZmAK4sCzvt8Yiuz2yrNCJoH5O8XvX/vLeR/BBYTWj0sOPYM/jyxRd5+/JziKAABaPcw/34UA3aj/gLZxZgRCWN6m4m3demanNgsx0P237/Q+Ew5VYnJPkyCY0cIVHoFn2Ay/e7U4P19APbPFXEHX94N6KhEMPG7iwB3+I+O1jd5n6VSgHegxgaSawO6iQCYFgDsPSMsNOcUj4q3sF6KzGaH/0u5PQoAj/8zq6Uc9MoNrGqhYeb2jQo0WlGlXjxtanZLS24/OIN5Gx/2g684BPDQpwlqnkFcxpmP/osnOXrFuu4PqifouQH0eF5qCkvITQbJw/Zvy5mAHWC9oU+cTiYhJmSfKsCyt1cGVxisKu+NymEQIAyaCgud/V09qT3nk/9s/SWsYtha7yNpzBIMM40rCSGaJ9u6lEkl00vXBiEt7p9P5IBCiavynEOv7FgLqPdeqxRiCwuFVMolSIUBcoyfUC2e2FJSAUgYdVGFf0b0Kn2EZlK97yyxrT2MVgvtRikfdaAW8RwEEfN+B7/eK8bBdp7URpbqn1xcrC6d2UjdsKbzCjBFqkKkoZt7Mrhg6YagE7spkqj0jOrWM+UGQ0MUlG2evP1uE1p2xSv4dMK0dna6ENcNUF+xkaJ7B764NdxLCpuvhblltVRAf7vK5qPttJ/9RYFUUSGcLdibnz6mf7WkPO3MkUUhR2mAOuGv8IWw5XG1ZvoVMnjSAZe6T7WYA99GENxoHkMiKxHlCuK5Gd0INrISImHQrQmv6F4mqU/TTQ8nHMDzCRivKySQ8dqkpQgnUMnwIkaAuc6/FGq1hw3b2Sba398BhUwUZSAIO8XZvnuLdY2n6hOXws+gq9BHUKcKFA6kz6FDnpxLPICa3qGhnc97bo1FT/XJk48LrkHJ2CAtBv0RtN97N21plfpXHvZ8gMJb7Zc4cfI6MbPwsW7AilCSXMFIEUEmir8XLEklA0ztYbGpTTGqttp5hpFTTIqUyaAIqvMT9A/x+Ji5ejA4Bhxb/cl1pUdOD6epd3yilIdO6j297xInoiBPuEDW2/UfslDyhGkQs7Wy253bVnlT+SWg89zYIK/9KXFl5fe+jow2rd5FXv8zDPrmfMXiUPt9QBO/iK4QGbX5j/7Rx1c1vzsY8ONbP3lVIaPrhL4+1QrECTN3nyKavGG0gBBtHvTKhGoBHgMXHStFowN+HKrPriYu+OZ05Frn8okQrPaaxoKP1ULCS/cmKFN3gcH7HQlVjraCeQmtjg1pSQxeuqXiSKgLpxc/1OiZsU4+n4lz4hpahGyWBURLi4642n1gn9qz9bIsaCeEPJ0uJmenMWp2tJmIwLQ6VSgDYErOeBCfSj9P4G/vI7oIF+l/n5fp956QgxGvur77ynawAu3G9MdFbJbu49NZnWnnFcQHjxRuhUYvg1U/e84N4JTecciDAKb/KYIFXzloyuE1eYXf54MmhjTq7B/yBToDzzpx3tJCTo3HCmVPYfmtBRe3mPYEE/6RlTIxbf4fSOcaKFGk4gbaUWe44hVk9SZzhW80yfW5QWBHxmtUzvMhfVQli4gZTktIOZd9mjJ5hsbmzttaHQB29Am3dZkmx3g/qvYocyhZ2PXAWsNQiIaf+Q8W/MWPIK7/TjvCx5q2XRp4lVWydMc2wIQkhadDB0xsnw/kSEyGjLKjI4coVIwtubTF3E7MJ6LS6UOsJKj82XVAVPJJcepfewbzE91ivXZvOvYfsmMevwtPpfMzGmC7WJlyW2j0jh7AF1JLmwEJSKYwIvu6DHc3YnyLH9ZdIBnQ+nOVDRiP+REpqv++typYHIvoJyICGA40d8bR7HR2k7do6UQTHF4oriYeIQbxKe4Th6+/l1BjUtS9hqORh3MbgvYrStXTfSwaBOmAVQZzpYNqsAmQyjY56MUqty3c/xH6GuhNvNaG9vGbG6cPtBM8UA3e8r51D0AR9kozKuGGSMgLz3nAHxDNnc7GTwpLj7/6HeWp1iksDeTjwCLpxejuMtpMnGJgsiku1sOACwQ9ukzESiDRN77YNESxR5LphOlcASXA5uIts1LnBIcn1J7BLWs49DMALSnuz95gdOrTZr0u1SeYHinno/pE58xYoXbVO/S+FEMMs5qyWkMnp8Q3ClyTlZP52Y9nq7b8fITPuVXUk9ohG5EFHw4gAEcjFxfKb3xuAsEjx2z1wxNbSZMcgS9GKyW3R6KwJONgtA64LTyxWm8Bvudp0M1FdJPEGopM4Fvg7G/hsptkhCfHFegv4ENwxPeXmYhxwZy7js+BeM27t9ODBMynVCLJ7RWcBMteZJtvjOYHb5lOnCLYWNEMKC59BA7covu1cANa2PXL05iGdufOzkgFqqHBOrgQVUmLEc+Mkz4Rq8O6WkNr7atNkH4M8d+SD1t/tSzt3oFql+neVs+AwEI5JaBJaxARtY2Z4mKoUqxds4UpZ0sv3zIbNoo0J4fihldQTX3XNcuNcZmcrB5LTWMdzeRuAtBk3cZHYQF6gTi3PNuDJ0nmR+4LPLoHvxQIxRgJ9iNNXqf2SYJhcvCtJiVWo85TsyFOuq7EyBPJrAdhEgE0cTq16FQXhYPJFqSfiVn0IQnPOy0LbU4BeG94QjdYNB0CiQ3QaxQqD2ebSMiNjaVaw8WaM4Z5WnzcVDsr4eGweSLa2DE3BWViaxhZFIcSTjgxNCAfelg+hznVOYoe5VqTYs1g7WtfTm3e4/WduC6p+qqAM8H4ZyrJCGpewThTDPe6H7CzX/zQ8Tm+r65HeZn+MsmxUciEWPlAVaK/VBaQBWfoG/aRL/jSZIQfep/89GjasWmbaWzeEZ2R1FOjvyJT37O9B8046SRSKVEnXWlBqbkb5XCS3qFeuE9xb9+frEknxWB5h1D/hruz2iVDEAS7+qkEz5Ot5agHJc7WCdY94Ws61sURcX5nG8UELGBAHZ3i+3VulAyT0nKNNz4K2LBHBWJcTBX1wzf+//u/j/9+//v87+9/l9Lbh/L/uyNYiTsWV2LwsjaA6MxTuzFMqmxW8Jw/+IppdX8t/Clgi1rI1SN0UC/r6tX/4lUc2VV1OQReSeCsjUpKZchw4XUcjHfw6ryCV3R8s6VXm67vp4n+lcPV9gJwmbKQEsmrJi9c2vkwrm8HFbVYNTaRGq8D91t9n5+U+aD/hNtN3HjC/nC/vUoGFSCkXP+NlRcmLUqLbiUBl4LYf1U/CCvwtd3ryCH8gUmGITAxiH1O5rnGTz7y1LuFjmnFGQ1UWuM7HwfXtWl2fPFKklYwNUpF2IL/TmaRETjQiM5SJacI+3Gv5MBU8lP5Io6gWkawpyzNEVGqOdx4YlO1dCvjbWFZWbCmeiFKPSlMKtKcMFLs/KQxtgAHi7NZNCQ32bBAW2mbHflVZ8wXKi1JKVHkW20bnYnl3dKWJeWJOiX3oKPBD6Zbi0ZvSIuWktUHB8qDR8DMMh1ZfkBL9FS9x5r0hBGLJ8pUCJv3NYH+Ae8p40mZWd5m5fhobFjQeQvqTT4VKWIYfRL0tfaXKiVl75hHReuTJEcqVlug+eOIIc4bdIydtn2K0iNZPsYWQvQio2qbO3OqAlPHDDOB7DfjGEfVF51FqqNacd6QmgFKJpMfLp5DHTv4wXlONKVXF9zTJpDV4m1sYZqJPhotcsliZM8yksKkCkzpiXt+EcRQvSQqmBS9WdWkxMTJXPSw94jqI3varCjQxTazjlMH8jTS8ilaW8014/vwA/LNa+YiFoyyx3s/KswP3O8QW1jtq45yTM/DX9a8M4voTVaO2ebvw1EooDw/yg6Y1faY+WwrdVs5Yt0hQ5EwRfYXSFxray1YvSM+kYmlpLG2/9mm1MfmbKHXr44Ih8nVKb1M537ZANUkCtdsPZ80JVKVKabVHCadaLXg+IV8i5GSwpZti0h6diTaKs9sdpUKEpd7jDUpYmHtiX33SKiO3tuydkaxA7pEc9XIQEOfWJlszj5YpL5bKeQyT7aZSBOamvSHl8xsWvgo26IP/bqk+0EJUz+gkkcvlUlyPp2kdKFtt7y5aCdks9ZJJcFp5ZWeaWKgtnXMN3ORwGLBE0PtkEIek5FY2aVssUZHtsWIvnljMVJtuVIjpZup/5VL1yPOHWWHkOMc6YySWMckczD5jUj2mlLVquFaMU8leGVaqeXis+aRRL8zm4WuBk6cyWfGMxgtr8useQEx7k/PvRoZyd9nde1GUCV84gMX8Ogu/BWezYPSR27llzQnA97oo0pYyxobYUJfsj+ysTm9zJ+S4pk0TGo9VTG0KjqYhTmALfoDZVKla2b5yhv241PxFaLJs3i05K0AAIdcGxCJZmT3ZdT7CliR7q+kur7WdQjygYtOWRL9B8E4s4LI8KpAj7bE0dg7DLOaX+MGeAi0hMMSSWZEz+RudXbZCsGYS0QqiXjH9XQbd8sCB+nIVTq7/T/FDS+zWY9q7Z2fdq1tdLb6v3hKKVDAw5gjj6o9r1wHFROdHc18MJp4SJ2Ucvu+iQ9EgkekW8VCM+psM6y+/2SBy8tNN4a3L1MzP+OLsyvESo5gS7IQOnIqMmviJBVc6zbVG1n8eXiA3j46kmvvtJlewwNDrxk4SbJOtP/TV/lIVK9ueShNbbMHfwnLTLLhbZuO79ec5XvfgRwLFK+w1r5ZWW15rVFZrE+wKqNRv5KqsLNfpGgnoUU6Y71NxEmN7MyqwqAQqoIULOw/LbuUB2+uE75gJt+kq1qY4LoxV+qR/zalupea3D5+WMeaRIn0sAI6DDWDh158fqUb4YhAxhREbUN0qyyJYkBU4V2KARXDT65gW3gRsiv7xSPYEKLwzgriWcWgPr0sbZnv7m1XHNFW6xPdGNZUdxFiUYlmXNjDVWuu7LCkX/nVkrXaJhiYktBISC2xgBXQnNEP+cptWl1eG62a7CPXrnrkTQ5BQASbEqUZWMDiZUisKyHDeLFOaJILUo5f6iDt4ZO8MlqaKLto0AmTHVVbkGuyPa1R/ywZsWRoRDoRdNMMHwYTsklMVnlAd2S0282bgMI8fiJpDh69OSL6K3qbo20KfpNMurnYGQSr/stFqZ7hYsxKlLnKAKhsmB8AIpEQ4bd/NrTLTXefsE6ChRmKWjXKVgpGoPs8GAicgKVw4K0qgDgy1A6hFq1WRat3fHF+FkU+b6H4NWpOU3KXTxrIb2qSHAb+qhm8hiSROi/9ofapjxhyKxxntPpge6KL5Z4+WBMYkAcE6+0Hd3Yh2zBsK2MV3iW0Y6cvOCroXlRb2MMJtdWx+3dkFzGh2Pe3DZ9QpSqpaR/rE1ImOrHqYYyccpiLC22amJIjRWVAherTfpQLmo6/K2pna85GrDuQPlH1Tsar8isAJbXLafSwOof4gg9RkAGm/oYpBQQiPUoyDk2BCQ1k+KILq48ErFo4WSRhHLq/y7mgw3+L85PpP6xWr6cgp9sOjYjKagOrxF148uhuaWtjet953fh1IQiEzgC+d2IgBCcUZqgTAICm2bR8oCjDLBsmg+ThyhfD+zBalsKBY1Ce54Y/t9cwfbLu9SFwEgphfopNA3yNxgyDafUM3mYTovZNgPGdd4ZFFOj1vtfFW3u7N+iHEN1HkeesDMXKPyoCDCGVMo4GCCD6PBhQ3dRZIHy0Y/3MaE5zU9mTCrwwnZojtE+qNpMSkJSpmGe0EzLyFelMJqhfFQ7a50uXxZ8pCc2wxtAKWgHoeamR2O7R+bq7IbPYItO0esdRgoTaY38hZLJ5y02oIVwoPokGIzxAMDuanQ1vn2WDQ00Rh6o5QOaCRu99fwDbQcN0XAuqkFpxT/cfz3slGRVokrNU0iqiMAJFEbKScZdmSkTUznC0U+MfwFOGdLgsewRyPKwBZYSmy6U325iUhBQNxbAC3FLKDV9VSOuQpOOukJ/GAmu/tyEbX9DgEp6dv1zoU0IqzpG6gssSjIYRVPGgU1QAQYRgIT8gEV0EXr1sqeh2I6rXjtmoCYyEDCe/PkFEi/Q48FuT29p557iN+LCwk5CK/CZ2WdAdfQZh2Z9QGrzPLSNRj5igUWzl9Vi0rCqH8G1Kp4QMLkuwMCAypdviDXyOIk0AHTM8HBYKh3b0/F+DxoNj4ZdoZfCpQVdnZarqoMaHWnMLNVcyevytGsrXQEoIbubqWYNo7NRHzdc0zvT21fWVirj7g36iy6pxogfvgHp1xH1Turbz8QyyHnXeBJicpYUctbzApwzZ1HT+FPEXMAgUZetgeGMwt4G+DHiDT2Lu+PT21fjJCAfV16a/Wu1PqOkUHSTKYhWW6PhhHUlNtWzFnA7MbY+r64vkwdpfNB2JfWgWXAvkzd42K4lN9x7Wrg4kIKgXCb4mcW595MCPJ/cTfPAMQMFWwnqwde4w8HZYJFpQwcSMhjVz4B8p6ncSCN1X4klxoIH4BN2J6taBMj6lHkAOs8JJAmXq5xsQtrPIPIIp/HG6i21xMGcFgqDXSRF0xQg14d2uy6HgKE13LSvQe52oShF5Jx1R6avyL4thhXQZHfC94oZzuPUBKFYf1VvDaxIrtV6dNGSx7DO0i1p6CzBkuAmEqyWceQY7F9+U0ObYDzoa1iKao/cOD/v6Q9gHrrr1uCeOk8fST9MG23Ul0KmM3r+Wn6Hi6WAcL7gEeaykicvgjzkjSwFsAXIR81Zx4QJ6oosVyJkCcT+4xAldCcihqvTf94HHUPXYp3REIaR4dhpQF6+FK1H0i9i7Pvh8owu3lO4PT1iuqu+DkL2Bj9+kdfGAg2TXw03iNHyobxofLE2ibjsYDPgeEQlRMR7afXbSGQcnPjI2D+sdtmuQ771dbASUsDndU7t58jrrNGRzISvwioAlHs5FA+cBE5Ccznkd8NMV6BR6ksnKLPZnMUawRDU1MZ/ib3xCdkTblHKu4blNiylH5n213yM0zubEie0o4JhzcfAy3H5qh2l17uLooBNLaO+gzonTH2uF8PQu9EyH+pjGsACTMy4cHzsPdymUSXYJOMP3yTkXqvO/lpvt0cX5ekDEu9PUfBeZODkFuAjXCaGdi6ew4qxJ8PmFfwmPpkgQjQlWqomFY6UkjmcnAtJG75EVR+NpzGpP1Ef5qUUbfowrC3zcSLX3BxgWEgEx/v9cP8H8u1Mvt9/rMDYf6sjwU1xSOPBgzFEeJLMRVFtKo5QHsUYT8ZRLCah27599EuqoC9PYjYO6aoAMHB8X1OHwEAYouHfHB3nyb2B+SnZxM/vw/bCtORjLMSy5aZoEpvgdGvlJfNPFUu/p7Z4VVK1hiI0/UTuB3ZPq4ohEbm7Mntgc1evEtknaosgZSwnDC2BdMmibpeg48X8Ixl+/8+xXdbshQXUPPvx8jT3fkELivHSmqbhblfNFShWAyQnJ3WBU6SMYSIpTDmHjdLVAdlADdz9gCplZw6mTiHqDwIsxbm9ErGusiVpg2w8Q3khKV/R9Oj8PFeF43hmW/nSd99nZzhyjCX3QOZkkB6BsH4H866WGyv9E0hVAzPYah2tkRfQZMmP2rinfOeQalge0ovhduBjJs9a1GBwReerceify49ctOh5/65ATYuMsAkVltmvTLBk4oHpdl6i+p8DoNj4Fb2vhdFYer2JSEilEwPd5n5zNoGBXEjreg/wh2NFnNRaIUHSOXa4eJRwygZoX6vnWnqVdCRT1ARxeFrNBJ+tsdooMwqnYhE7zIxnD8pZH+P0Nu1wWxCPTADfNWmqx626IBJJq6NeapcGeOmbtXvl0TeWG0Y7OGGV4+EHTtNBIT5Wd0Bujl7inXgZgfXTM5efD3qDTJ54O9v3Bkv+tdIRlq1kXcVD0BEMirmFxglNPt5pedb1AnxuCYMChUykwsTIWqT23XDpvTiKEru1cTcEMeniB+HQDehxPXNmkotFdwUPnilB/u4Nx5Xc6l8J9jH1EgKZUUt8t8cyoZleDBEt8oibDmJRAoMKJ5Oe9CSWS5ZMEJvacsGVdXDWjp/Ype5x0p9PXB2PAwt2LRD3d+ftNgpuyvxlP8pB84oB1i73vAVpwyrmXW72hfW6Dzn9Jkj4++0VQ4d0KSx1AsDA4OtXXDo63/w+GD+zC7w5SJaxsmnlYRQ4dgdjA7tTl2KNLnpJ+mvkoDxtt1a4oPaX3EVqj96o9sRKBQqU7ZOiupeAIyLMD+Y3YwHx30XWHB5CQiw7q3mj1EDlP2eBsZbz79ayUMbyHQ7s8gu4Lgip1LiGJj7NQj905/+rgUYKAA5qdrlHKIknWmqfuR+PB8RdBkDg/NgnlT89G72h2NvySnj7UyBwD+mi/IWs1xWbxuVwUIVXun5cMqBtFbrccI+DILjsVQg6eeq0itiRfedn89CvyFtpkxaauEvSANuZmB1p8FGPbU94J9medwsZ9HkUYjmI7OH5HuxendLbxTaYrPuIfE2ffXFKhoNBUp33HsFAXmCV/Vxpq5AYgFoRr5Ay93ZLRlgaIPjhZjXZZChT+aE5iWAXMX0oSFQEtwjiuhQQItTQX5IYrKfKB+queTNplR1Hoflo5/I6aPPmACwQCE2jTOYo5Dz1cs7Sod0KTG/3kEDGk3kUaUCON19xSJCab3kNpWZhSWkO8l+SpW70Wn3g0ciOIJO5JXma6dbos6jyisuxXwUUhj2+1uGhcvuliKtWwsUTw4gi1c/diEEpZHoKoxTBeMDmhPhKTx7TXWRakV8imJR355DcIHkR9IREHxohP4TbyR5LtFU24umRPRmEYHbpe1LghyxPx7YgUHjNbbQFRQhh4KeU1EabXx8FS3JAxp2rwRDoeWkJgWRUSKw6gGP5U2PuO9V4ZuiKXGGzFQuRuf+tkSSsbBtRJKhCi3ENuLlXhPbjTKD4djXVnfXFds6Zb+1XiUrRfyayGxJq1+SYBEfbKlgjiSmk0orgTqzSS+DZ5rTqsJbttiNtp+KMqGE2AHGFw6jQqM5vD6vMptmXV9OAjq49Uf/Lx9Opam+Hn5O9p8qoBBAQixzQZ4eNVkO9sPzJAMyR1y4/RCQQ1s0pV5KAU5sKLw3tkcFbI/JqrjCsK4Mw+W8aod4lioYuawUiCyVWBE/qPaFi5bnkgpfu/ae47174rI1fqQoTbW0HrU6FAejq7ByM0V4zkZTg02/YJK2N7hUQRCeZ4BIgSEqgD8XsjzG6LIsSbuHoIdz/LhFzbNn1clci1NHWJ0/6/O8HJMdIpEZbqi1RrrFfoo/rI/7ufm2MPG5lUI0IYJ4MAiHRTSOFJ2oTverFHYXThkYFIoyFx6rMYFgaOKM4xNWdlOnIcKb/suptptgTOTdVIf4YgdaAjJnIAm4qNNHNQqqAzvi53GkyRCEoseUBrHohZsjUbkR8gfKtc/+Oa72lwxJ8Mq6HDfDATbfbJhzeIuFQJSiw1uZprHlzUf90WgqG76zO0eCB1WdPv1IT6sNxxh91GEL2YpgC97ikFHyoaH92ndwduqZ6IYjkg20DX33MWdoZk7QkcKUCgisIYslOaaLyvIIqRKWQj16jE1DlQWJJaPopWTJjXfixEjRJJo8g4++wuQjbq+WVYjsqCuNIQW3YjnxKe2M5ZKEqq+cX7ZVgnkbsU3RWIyXA1rxv4kGersYJjD//auldXGmcEbcfTeF16Y1708FB1HIfmWv6dSFi6oD4E+RIjCsEZ+kY7dKnwReJJw3xCjKvi3kGN42rvyhUlIz0Bp+fNSV5xwFiuBzG296e5s/oHoFtUyUplmPulIPl+e1CQIQVtjlzLzzzbV+D/OVQtYzo5ixtMi5BmHuG4N/uKfJk5UIREp7+12oZlKtPBomXSzAY0KgtbPzzZoHQxujnREUgBU+O/jKKhgxVhRPtbqyHiUaRwRpHv7pgRPyUrnE7fYkVblGmfTY28tFCvlILC04Tz3ivkNWVazA+OsYrxvRM/hiNn8Fc4bQBeUZABGx5S/xFf9Lbbmk298X7iFg2yeimvsQqqJ+hYbt6uq+Zf9jC+Jcwiccd61NKQtFvGWrgJiHB5lwi6fR8KzYS7EaEHf/ka9EC7H8D+WEa3TEACHBkNSj/cXxFeq4RllC+fUFm2xtstYLL2nos1DfzsC9vqDDdRVcPA3Ho95aEQHvExVThXPqym65llkKlfRXbPTRiDepdylHjmV9YTWAEjlD9DdQnCem7Aj/ml58On366392214B5zrmQz/9ySG2mFqEwjq5sFl5tYJPw5hNz8lyZPUTsr5E0F2C9VMPnZckWP7+mbwp/BiN7f4kf7vtGnZF2JGvjK/sDX1RtcFY5oPQnE4lIAYV49U3C9SP0LCY/9i/WIFK9ORjzM9kG/KGrAuwFmgdEpdLaiqQNpCTGZVuAO65afkY1h33hrqyLjZy92JK3/twdj9pafFcwfXONmPQWldPlMe7jlP24Js0v9m8bIJ9TgS2IuRvE9ZVRaCwSJYOtAfL5H/YS4FfzKWKbek+GFulheyKtDNlBtrdmr+KU+ibHTdalzFUmMfxw3f36x+3cQbJLItSilW9cuvZEMjKw987jykZRlsH/UI+HlKfo2tLwemBEeBFtmxF2xmItA/dAIfQ+rXnm88dqvXa+GapOYVt/2waFimXFx3TC2MUiOi5/Ml+3rj/YU6Ihx2hXgiDXFsUeQkRAD6wF3SCPi2flk7XwKAA4zboqynuELD312EJ88lmDEVOMa1W/K/a8tGylZRMrMoILyoMQzzbDJHNZrhH77L9qSC42HVmKiZ5S0016UTp83gOhCwz9XItK9fgXfK3F5d7nZCBUekoLxrutQaPHa16Rjsa0gTrzyjqTnmcIcrxg6X6dkKiucudc0DD5W4pJPf0vuDW8r5/uw24YfMuxFRpD2ovT2mFX79xH6Jf+MVdv2TYqR6/955QgVPe3JCD/WjAYcLA9tpXgFiEjge2J5ljeI/iUzg91KQuHkII4mmHZxC3XQORLAC6G7uFn5LOmlnXkjFdoO976moNTxElS8HdxWoPAkjjocDR136m2l+f5t6xaaNgdodOvTu0rievnhNAB79WNrVs6EsPgkgfahF9gSFzzAd+rJSraw5Mllit7vUP5YxA843lUpu6/5jAR0RvH4rRXkSg3nE+O5GFyfe+L0s5r3k05FyghSFnKo4TTgs07qj4nTLqOYj6qaW9knJTDkF5OFMYbmCP+8H16Ty482OjvERV6OFyw043L9w3hoJi408sR+SGo1WviXUu8d7qS+ehKjpKwxeCthsm2LBFSFeetx0x4AaKPxtp3CxdWqCsLrB1s/j5TAhc1jNZsXWl6tjo/WDoewxzg8T8NnhZ1niUwL/nhfygLanCnRwaFGDyLw+sfZhyZ1UtYTp8TYB6dE7R3VsKKH95CUxJ8u8N+9u2/9HUNKHW3x3w5GQrfOPafk2w5qZq8MaHT0ebeY3wIsp3rN9lrpIsW9c1ws3VNV+JwNz0Lo9+V7zZr6GD56We6gWVIvtmam5GPPkVAbr74r6SwhuL+TRXtW/0pgyX16VNl4/EAD50TnUPuwrW6OcUO2VlWXS0inq872kk7GUlW6o/ozFKq+Sip6LcTtSDfDrPTcCHhx75H8BeRon+KG2wRwzfDgWhALmiWOMO6h3pm1UCZEPEjScyk7tdLx6WrdA2N1QTPENvNnhCQjW6kl057/qv7IwRryHrZBCwVSbLLnFRiHdTwk8mlYixFt1slEcPD7FVht13HyqVeyD55HOXrh2ElAxJyinGeoFzwKA91zfrdLvDxJSjzmImfvTisreI25EDcVfGsmxLVbfU8PGe/7NmWWKjXcdTJ11jAlVIY/Bv/mcxg/Q10vCHwKG1GW/XbJq5nxDhyLqiorn7Wd7VEVL8UgVzpHMjQ+Z8DUgSukiVwWAKkeTlVVeZ7t1DGnCgJVIdBPZAEK5f8CDyDNo7tK4/5DBjdD5MPV86TaEhGsLVFPQSI68KlBYy84FievdU9gWh6XZrugvtCZmi9vfd6db6V7FmoEcRHnG36VZH8N4aZaldq9zZawt1uBFgxYYx+Gs/qW1jwANeFy+LCoymyM6zgG7j8bGzUyLhvrbJkTYAEdICEb4kMKusKT9V3eIwMLsjdUdgijMc+7iKrr+TxrVWG0U+W95SGrxnxGrE4eaJFfgvAjUM4SAy8UaRwE9j6ZQH5qYAWGtXByvDiLSDfOD0yFA3UCMKSyQ30fyy1mIRg4ZcgZHLNHWl+c9SeijOvbOJxoQy7lTN2r3Y8p6ovxvUY74aOYbuVezryqXA6U+fcp6wSV9X5/OZKP18tB56Ua0gMyxJI7XyNT7IrqN8GsB9rL/kP5KMrjXxgqKLDa+V5OCH6a5hmOWemMUsea9vQl9t5Oce76PrTyTv50ExOqngE3PHPfSL//AItPdB7kGnyTRhVUUFNdJJ2z7RtktZwgmQzhBG/G7QsjZmJfCE7k75EmdIKH7xlnmDrNM/XbTT6FzldcH/rcRGxlPrv4qDScqE7JSmQABJWqRT/TUcJSwoQM+1jvDigvrjjH8oeK2in1S+/yO1j8xAws/T5u0VnIvAPqaE1atNuN0cuRliLcH2j0nTL4JpcR7w9Qya0JoaHgsOiALLCCzRkl1UUESz+ze/gIXHGtDwgYrK6pCFKJ1webSDog4zTlPkgXZqxlQDiYMjhDpwTtBW2WxthWbov9dt2X9XFLFmcF+eEc1UaQ74gqZiZsdj63pH1qcv3Vy8JYciogIVKsJ8Yy3J9w/GhjWVSQAmrS0BPOWK+RKV+0lWqXgYMnIFwpcZVD7zPSp547i9HlflB8gVnSTGmmq1ClO081OW/UH11pEQMfkEdDFzjLC1Cdo/BdL3s7cXb8J++Hzz1rhOUVZFIPehRiZ8VYu6+7Er7j5PSZu9g/GBdmNzJmyCD9wiswj9BZw+T3iBrg81re36ihMLjoVLoWc+62a1U/7qVX5CpvTVF7rocSAKwv4cBVqZm7lLDS/qoXs4fMs/VQi6BtVbNA3uSzKpQfjH1o3x4LrvkOn40zhm6hjduDglzJUwA0POabgdXIndp9fzhOo23Pe+Rk9GSLX0d71Poqry8NQDTzNlsa+JTNG9+UrEf+ngxCjGEsDCc0bz+udVRyHQI1jmEO3S+IOQycEq7XwB6z3wfMfa73m8PVRp+iOgtZfeSBl01xn03vMaQJkyj7vnhGCklsCWVRUl4y+5oNUzQ63B2dbjDF3vikd/3RUMifPYnX5Glfuk2FsV/7RqjI9yKTbE8wJY+74p7qXO8+dIYgjtLD/N8TJtRh04N9tXJA4H59IkMmLElgvr0Q5OCeVfdAt+5hkh4pQgfRMHpL74XatLQpPiOyHRs/OdmHtBf8nOZcxVKzdGclIN16lE7kJ+pVMjspOI+5+TqLRO6m0ZpNXJoZRv9MPDRcAfJUtNZHyig/s2wwReakFgPPJwCQmu1I30/tcBbji+Na53i1W1N+BqoY7Zxo+U/M9XyJ4Ok2SSkBtoOrwuhAY3a03Eu6l8wFdIG1cN+e8hopTkiKF093KuH/BcB39rMiGDLn6XVhGKEaaT/vqb/lufuAdpGExevF1+J9itkFhCfymWr9vGb3BTK4j598zRH7+e+MU9maruZqb0pkGxRDRE1CD4Z8LV4vhgPidk5w2Bq816g3nHw1//j3JStz7NR9HIWELO8TMn3QrP/zZp//+Dv9p429/ogv+GATR+n/UdF+ns9xNkXZQJXY4t9jMkJNUFygAtzndXwjss+yWH9HAnLQQfhAskdZS2l01HLWv7L7us5uTH409pqitvfSOQg/c+Zt7k879P3K9+WV68n7+3cZfuRd/dDPP/03rn+d+/nBvWfgDlt8+LzjqJ/vx3CnNOwiXhho778C96iD+1TBvRZYeP+EH81LE0vVwOOrmCLB3iKzI1x+vJEsrPH4uF0UB4TJ4X3uDfOCo3PYpYe0MF4bouh0DQ/l43fxUF7Y+dpWuvTSffB0yO2UQUETI/LwCZE3BvnevJ7c9zUlY3H58xzke6DNFDQG8n0WtDN4LAYN4nogKav1ezOfK/z+t6tsCTp+dhx4ymjWuCJk1dEUifDP+HyS4iP/Vg9B2jTo9L4NbiBuDS4nuuHW6H+JDQn2JtqRKGkEQPEYE7uzazXIkcxIAqUq1esasZBETlEZY7y7Jo+RoV/IsjY9eIMkUvr42Hc0xqtsavZvhz1OLwSxMOTuqzlhb0WbdOwBH9EYiyBjatz40bUxTHbiWxqJ0uma19qhPruvcWJlbiSSH48OLDDpaHPszvyct41ZfTu10+vjox6kOqK6v0K/gEPphEvMl/vwSv+A4Hhm36JSP9IXTyCZDm4kKsqD5ay8b1Sad/vaiyO5N/sDfEV6Z4q95E+yfjxpqBoBETW2C7xl4pIO2bDODDFurUPwE7EWC2Uplq+AHmBHvir2PSgkR12/Ry65O0aZtQPeXi9mTlF/Wj5GQ+vFkYyhXsLTjrBSP9hwk4GPqDP5rBn5/l8b0mLRAvRSzXHc293bs3s8EsdE3m2exxidWVB4joHR+S+dz5/W+v00K3TqN14CDBth8eWcsTbiwXPsygHdGid0PEdy6HHm2v/IUuV5RVapYmzGsX90mpnIdNGcOOq64Dbc5GUbYpD9M7S+6cLY//QmjxFLP5cuTFRm3vA5rkFZroFnO3bjHF35uU3s8mvL7Tp9nyTc4mymTJ5sLIp7umSnGkO23faehtz3mmTS7fbVx5rP7x3HXIjRNeq/A3xCs9JNB08c9S9BF2O3bOur0ItslFxXgRPdaapBIi4dRpKGxVz7ir69t/bc9qTxjvtOyGOfiLGDhR4fYywHv1WdOplxIV87TpLBy3Wc0QP0P9s4G7FBNOdITS/tep3o3h1TEa5XDDii7fWtqRzUEReP2fbxz7bHWWJdbIOxOUJZtItNZpTFRfj6vm9sYjRxQVO+WTdiOhdPeTJ+8YirPvoeL88l5iLYOHd3b/Imkq+1ZN1El3UikhftuteEYxf1Wujof8Pr4ICTu5ezZyZ4tHQMxlzUHLYO2VMOoNMGL/20S5i2o2obfk+8qqdR7xzbRDbgU0lnuIgz4LelQ5XS7xbLuSQtNS95v3ZUOdaUx/Qd8qxCt6xf2E62yb/HukLO6RyorV8KgYl5YNc75y+KvefrxY+lc/64y9kvWP0a0bDz/rojq+RWjO06WeruWqNFU7r3HPIcLWRql8ICZsz2Ls/qOm/CLn6++X+Qf7mGspYCrZod/lpl6Rw4xN/yuq8gqV4B6aHk1hVE1SfILxWu5gvXqbfARYQpspcxKp1F/c8XOPzkZvmoSw+vEqBLdrq1fr3wAPv5NnM9i8F+jdAuxkP5Z71c6uhK3enlnGymr7UsWZKC12qgUiG8XXGQ9mxnqz4GSIlybF9eXmbqj2sHX+a1jf0gRoONHRdRSrIq03Ty89eQ1GbV/Bk+du4+V15zls+vvERvZ4E7ZbnxWTVjDjb4o/k8jlw44pTIrUGxxuJvBeO+heuhOjpFsO6lVJ/aXnJDa/bM0Ql1cLbXE/Pbv3EZ3vj3iVrB5irjupZTzlnv677NrI9UNYNqbPgp/HZXS+lJmk87wec+7YOxTDo2aw2l3NfDr34VNlvqWJBknuK7oSlZ6/T10zuOoPZOeoIk81N+sL843WJ2Q4Z0fZ3scsqC/JV2fuhWi1jGURSKZV637lf53Xnnx16/vKEXY89aVJ0fv91jGdfG+G4+sniwHes4hS+udOr4RfhFhG/F5gUG35QaU+McuLmclb5ZWmR+sG5V6nf+PxYzlrnFGxpZaK8eqqVo0NfmAWoGfXDiT/FnUbWvzGDOTr8aktOZWg4BYvz5YH12ZbfCcGtNk+dDAZNGWvHov+PIOnY9Prjg8h/wLRrT69suaMVZ5bNuK00lSVpnqSX1NON/81FoP92rYndionwgOiA8WMf4vc8l15KqEEG4yAm2+WAN5Brfu1sq9suWYqgoajgOYt/JCk1gC8wPkK+XKCtRX6TAtgvrnuBgNRmn6I8lVDipOVB9kX6Oxkp4ZKyd1M6Gj8/v2U7k+YQBL95Kb9PQENucJb0JlW3b5tObN7m/Z1j1ev388d7o15zgXsI9CikAGAViR6lkJv7nb4Ak40M2G8TJ447kN+pvfHiOFjSUSP6PM+QfbAywKJCBaxSVxpizHseZUyUBhq59vFwrkyGoRiHbo0apweEZeSLuNiQ+HAekOnarFg00dZNXaPeoHPTRR0FmEyqYExOVaaaO8c0uFUh7U4e/UxdBmthlBDgg257Q33j1hA7HTxSeTTSuVnPZbgW1nodwmG16aKBDKxEetv7D9OjO0JhrbJTnoe+kcGoDJazFSO8/fUN9Jy/g4XK5PUkw2dgPDGpJqBfhe7GA+cjzfE/EGsMM+FV9nj9IAhrSfT/J3QE5TEIYyk5UjsI6ZZcCPr6A8FZUF4g9nnpVmjX90MLSQysIPD0nFzqwCcSJmIb5mYv2Cmk+C1MDFkZQyCBq4c/Yai9LJ6xYkGS/x2s5/frIW2vmG2Wrv0APpCdgCA9snFvfpe8uc0OwdRs4G9973PGEBnQB5qKrCQ6m6X/H7NInZ7y/1674/ZXOVp7OeuCRk8JFS516VHrnH1HkIUIlTIljjHaQtEtkJtosYul77cVwjk3gW1Ajaa6zWeyHGLlpk3VHE2VFzT2yI/EvlGUSz2H9zYE1s4nsKMtMqNyKNtL/59CpFJki5Fou6VXGm8vWATEPwrUVOLvoA8jLuwOzVBCgHB2Cr5V6OwEWtJEKokJkfc87h+sNHTvMb0KVTp5284QTPupoWvQVUwUeogZR3kBMESYo0mfukewRVPKh5+rzLQb7HKjFFIgWhj1w3yN/qCNoPI8XFiUgBNT1hCHBsAz8L7Oyt8wQWUFj92ONn/APyJFg8hzueqoJdNj57ROrFbffuS/XxrSXLTRgj5uxZjpgQYceeMc2wJrahReSKpm3QjHfqExTLAB2ipVumE8pqcZv8LYXQiPHHsgb5BMW8zM5pvQit+mQx8XGaVDcfVbLyMTlY8xcfmm/RSAT/H09UQol5gIz7rESDmnrQ4bURIB4iRXMDQwxgex1GgtDxKp2HayIkR+E/aDmCttNm2C6lytWdfOVzD6X2SpDWjQDlMRvAp1symWv4my1bPCD+E1EmGnMGWhNwmycJnDV2WrQNxO45ukEb08AAffizYKVULp15I4vbNK5DzWwCSUADfmKhfGSUqii1L2UsE8rB7mLuHuUJZOx4+WiizHBJ/hwboaBzhpNOVvgFTf5cJsHef7L1HCI9dOUUbb+YxUJWn6dYOLz+THi91kzY5dtO5c+grX7v0jEbsuoOGnoIreDIg/sFMyG+TyCLIcAWd1IZ1UNFxE8Uie13ucm40U2fcxC0u3WLvLOxwu+F7MWUsHsdtFQZ7W+nlfCASiAKyh8rnP3EyDByvtJb6Kax6/HkLzT9SyEyTMVM1zPtM0MJY14DmsWh4MgD15Ea9Hd00AdkTZ0EiG5NAGuIBzQJJ0JR0na+OB7lQA6UKxMfihIQ7GCCnVz694QvykWXTxpS2soDu+smru1UdIxSvAszBFD1c8c6ZOobA8bJiJIvuycgIXBQIXWwhyTgZDQxJTRXgEwRNAawGSXO0a1DKjdihLVNp/taE/xYhsgwe+VpKEEB4LlraQyE84gEihxCnbfoyOuJIEXy2FIYw+JjRusybKlU2g/vhTSGTydvCvXhYBdtAXtS2v7LkHtmXh/8fly1do8FI/D0f8UbzVb5h+KRhMGSAmR2mhi0YG/uj7wgxcfzCrMvdjitUIpXDX8ae2JcF/36qUWIMwN6JsjaRGNj+jEteGDcFyTUb8X/NHSucKMJp7pduxtD6KuxVlyxxwaeiC1FbGBESO84lbyrAugYxdl+2N8/6AgWpo/IeoAOcsG35IA/b3AuSyoa55L7llBLlaWlEWvuCFd8f8NfcTUgzJv6CbB+6ohWwodlk9nGWFpBAOaz5uEW5xBvmjnHFeDsb0mXwayj3mdYq5gxxNf3H3/tnCgHwjSrpSgVxLmiTtuszdRUFIsn6LiMPjL808vL1uQhDbM7aA43mISXReqjSskynIRcHCJ9qeFopJfx9tqyUoGbSwJex/0aDE3plBPGtNBYgWbdLom3+Q/bjdizR2/AS/c/dH/d3G7pyl1qDXgtOFtEqidwLqxPYtrNEveasWq3vPUUtqTeu8gpov4bdOQRI2kneFvRNMrShyVeEupK1PoLDPMSfWMIJcs267mGB8X9CehQCF0gIyhpP10mbyM7lwW1e6TGvHBV1sg/UyTghHPGRqMyaebC6pbB1WKNCQtlai1GGvmq9zUKaUzLaXsXEBYtHxmFbEZ2kJhR164LhWW2Tlp1dhsGE7ZgIWRBOx3Zcu2DxgH+G83WTPceKG0TgQKKiiNNOlWgvqNEbnrk6fVD+AqRam2OguZb0YWSTX88N+i/ELSxbaUUpPx4vJUzYg/WonSeA8xUK6u7DPHgpqWpEe6D4cXg5uK9FIYVba47V/nb+wyOtk+zG8RrS4EA0ouwa04iByRLSvoJA2FzaobbZtXnq8GdbfqEp5I2dpfpj59TCVif6+E75p665faiX8gS213RqBxTZqfHP46nF6NSenOneuT+vgbLUbdTH2/t0REFXZJOEB6DHvx6N6g9956CYrY/AYcm9gELJXYkrSi+0F0geKDZgOCIYkLU/+GOW5aGj8mvLFgtFH5+XC8hvAE3CvHRfl4ofM/Qwk4x2A+R+nyc9gNu/9Tem7XW4XRnyRymf52z09cTOdr+PG6+P/Vb4QiXlwauc5WB1z3o+IJjlbxI8MyWtSzT+k4sKVbhF3xa+vDts3NxXa87iiu+xRH9cAprnOL2h6vV54iQRXuOAj1s8nLFK8gZ70ThIQcWdF19/2xaJmT0efrkNDkWbpAQPdo92Z8+Hn/aLjbOzB9AI/k12fPs9HhUNDJ1u6ax2VxD3R6PywN7BrLJ26z6s3QoMp76qzzwetrDABKSGkfW5PwS1GvYNUbK6uRqxfyVGNyFB0E+OugMM8kKwmJmupuRWO8XkXXXQECyRVw9UyIrtCtcc4oNqXqr7AURBmKn6Khz3eBN96LwIJrAGP9mr/59uTOSx631suyT+QujDd4beUFpZ0kJEEnjlP+X/Kr2kCKhnENTg4BsMTOmMqlj2WMFLRUlVG0fzdCBgUta9odrJfpVdFomTi6ak0tFjXTcdqqvWBAzjY6hVrH9sbt3Z9gn+AVDpTcQImefbB4edirjzrsNievve4ZT4EUZWV3TxEsIW+9MT/RJoKfZZYSRGfC1CwPG/9rdMOM8qR/LUYvw5f/emUSoD7YSFuOoqchdUg2UePd1eCtFSKgxLSZ764oy4lvRCIH6bowPxZWwxNFctksLeil47pfevcBipkkBIc4ngZG+kxGZ71a72KQ7VaZ6MZOZkQJZXM6kb/Ac0/XkJx8dvyfJcWbI3zONEaEPIW8GbkYjsZcwy+eMoKrYjDmvEEixHzkCSCRPRzhOfJZuLdcbx19EL23MA8rnjTZZ787FGMnkqnpuzB5/90w1gtUSRaWcb0eta8198VEeZMUSfIhyuc4/nywFQ9uqn7jdqXh+5wwv+RK9XouNPbYdoEelNGo34KyySwigsrfCe0v/PlWPvQvQg8R0KgHO18mTVThhQrlbEQ0Kp/JxPdjHyR7E1QPw/ut0r+HDDG7BwZFm9IqEUZRpv2WpzlMkOemeLcAt5CsrzskLGaVOAxyySzZV/D2EY7ydNZMf8e8VhHcKGHAWNszf1EOq8fNstijMY4JXyATwTdncFFqcNDfDo+mWFvxJJpc4sEZtjXyBdoFcxbUmniCoKq5jydUHNjYJxMqN1KzYV62MugcELVhS3Bnd+TLLOh7dws/zSXWzxEb4Nj4aFun5x4kDWLK5TUF/yCXB/cZYvI9kPgVsG2jShtXkxfgT+xzjJofXqPEnIXIQ1lnIdmVzBOM90EXvJUW6a0nZ/7XjJGl8ToO3H/fdxnxmTNKBZxnkpXLVgLXCZywGT3YyS75w/PAH5I/jMuRspej8xZObU9kREbRA+kqjmKRFaKGWAmFQspC+QLbKPf0RaK3OXvBSWqo46p70ws/eZpu6jCtZUgQy6r4tHMPUdAgWGGUYNbuv/1a6K+MVFsd3T183+T8capSo6m0+Sh57fEeG/95dykGJBQMj09DSW2bY0mUonDy9a8trLnnL5B5LW3Nl8rJZNysO8Zb+80zXxqUGFpud3Qzwb7bf+8mq6x0TAnJU9pDQR9YQmZhlna2xuxJt0aCO/f1SU8gblOrbIyMsxTlVUW69VJPzYU2HlRXcqE2lLLxnObZuz2tT9CivfTAUYfmzJlt/lOPgsR6VN64/xQd4Jlk/RV7UKVv2Gx/AWsmTAuCWKhdwC+4HmKEKYZh2Xis4KsUR1BeObs1c13wqFRnocdmuheaTV30gvVXZcouzHKK5zwrN52jXJEuX6dGx3BCpV/++4f3hyaW/cQJLFKqasjsMuO3B3WlMq2gyYfdK1e7L2pO/tRye2mwzwZPfdUMrl5wdLqdd2Kv/wVtnpyWYhd49L6rsOV+8HXPrWH2Kup89l2tz6bf80iYSd+V4LROSOHeamvexR524q4r43rTmtFzQvArpvWfLYFZrbFspBsXNUqqenjxNNsFXatZvlIhk7teUPfK+YL32F8McTnjv0BZNppb+vshoCrtLXjIWq3EJXpVXIlG6ZNL0dh6qEm2WMwDjD3LfOfkGh1/czYc/0qhiD2ozNnH4882MVVt3JbVFkbwowNCO3KL5IoYW5wlVeGCViOuv1svZx7FbzxKzA4zGqBlRRaRWCobXaVq4yYCWbZf8eiJwt3OY+MFiSJengcFP2t0JMfzOiJ7cECvpx7neg1Rc5x+7myPJOXt2FohVRyXtD+/rDoTOyGYInJelZMjolecVHUhUNqvdZWg2J2t0jPmiLFeRD/8fOT4o+NGILb+TufCo9ceBBm3JLVn+MO2675n7qiEX/6W+188cYg3Zn5NSTjgOKfWFSAANa6raCxSoVU851oJLY11WIoYK0du0ec5E4tCnAPoKh71riTsjVIp3gKvBbEYQiNYrmH22oLQWA2AdwMnID6PX9b58dR2QKo4qag1D1Z+L/FwEKTR7osOZPWECPJIHQqPUsM5i/CH5YupVPfFA5pHUBcsesh8eO5YhyWnaVRPZn/BmdXVumZWPxMP5e28zm2uqHgFoT9CymHYNNrzrrjlXZM06HnzDxYNlI5b/QosxLmmrqDFqmogQdqk0WLkUceoAvQxHgkIyvWU69BPFr24VB6+lx75Rna6dGtrmOxDnvBojvi1/4dHjVeg8owofPe1cOnxU1ioh016s/Vudv9mhV9f35At+Sh28h1bpp8xhr09+vf47Elx3Ms6hyp6QvB3t0vnLbOhwo660cp7K0vvepabK7YJfxEWWfrC2YzJfYOjygPwfwd/1amTqa0hZ5ueebhWYVMubRTwIjj+0Oq0ohU3zfRfuL8gt59XsHdwKtxTQQ4Y2qz6gisxnm2UdlmpEkgOsZz7iEk6QOt8BuPwr+NR01LTqXmJo1C76o1N274twJvl+I069TiLpenK/miRxhyY8jvYV6W1WuSwhH9q7kuwnJMtm7IWcqs7HsnyHSqWXLSpYtZGaR1V3t0gauninFPZGtWskF65rtti48UV9uV9KM8kfDYs0pgB00S+TlzTXV6P8mxq15b9En8sz3jWSszcifZa/NuufPNnNTb031pptt0+sRSH/7UG8pzbsgtt3OG3ut7B9JzDMt2mTZuyRNIV8D54TuTrpNcHtgmMlYJeiY9XS83NYJicjRjtJSf9BZLsQv629QdDsKQhTK5CnXhpk7vMNkHzPhm0ExW/VCGApHfPyBagtZQTQmPHx7g5IXXsrQDPzIVhv2LB6Ih138iSDww1JNHrDvzUxvp73MsQBVhW8EbrReaVUcLB1R3PUXyaYG4HpJUcLVxMgDxcPkVRQpL7VTAGabDzbKcvg12t5P8TSGQkrj/gOrpnbiDHwluA73xbXts/L7u468cRWSWRtgTwlQnA47EKg0OiZDgFxAKQQUcsbGomITgeXUAAyKe03eA7Mp4gnyKQmm0LXJtEk6ddksMJCuxDmmHzmVhO+XaN2A54MIh3niw5CF7PwiXFZrnA8wOdeHLvvhdoqIDG9PDI7UnWWHq526T8y6ixJPhkuVKZnoUruOpUgOOp3iIKBjk+yi1vHo5cItHXb1PIKzGaZlRS0g5d3MV2pD8FQdGYLZ73aae/eEIUePMc4NFz8pIUfLCrrF4jVWH5gQneN3S8vANBmUXrEcKGn6hIUN95y1vpsvLwbGpzV9L0ZKTan6TDXM05236uLJcIEMKVAxKNT0K8WljuwNny3BNQRfzovA85beI9zr1AGNYnYCVkR1aGngWURUrgqR+gRrQhxW81l3CHevjvGEPzPMTxdsIfB9dfGRbZU0cg/1mcubtECX4tvaedmNAvTxCJtc2QaoUalGfENCGK7IS/O8CRpdOVca8EWCRwv2sSWE8CJPW5PCugjCXPd3h6U60cPD+bdhtXZuYB6stcoveE7Sm5MM2yvfUHXFSW7KzLmi7/EeEWL0wqcOH9MOSKjhCHHmw+JGLcYE/7SBZQCRggox0ZZTAxrlzNNXYXL5fNIjkdT4YMqVUz6p8YDt049v4OXGdg3qTrtLBUXOZf7ahPlZAY/O+7Sp0bvGSHdyQ8B1LOsplqMb9Se8VAE7gIdSZvxbRSrfl+Lk5Qaqi5QJceqjitdErcHXg/3MryljPSIAMaaloFm1cVwBJ8DNmkDqoGROSHFetrgjQ5CahuKkdH5pRPigMrgTtlFI8ufJPJSUlGgTjbBSvpRc0zypiUn6U5KZqcRoyrtzhmJ7/caeZkmVRwJQeLOG8LY6vP5ChpKhc8Js0El+n6FXqbx9ItdtLtYP92kKfaTLtCi8StLZdENJa9Ex1nOoz1kQ7qxoiZFKRyLf4O4CHRT0T/0W9F8epNKVoeyxUXhy3sQMMsJjQJEyMOjmOhMFgOmmlscV4eFi1CldU92yjwleirEKPW3bPAuEhRZV7JsKV3Lr5cETAiFuX5Nw5UlF7d2HZ96Bh0sgFIL5KGaKSoVYVlvdKpZJVP5+NZ7xDEkQhmDgsDKciazJCXJ6ZN2B3FY2f6VZyGl/t4aunGIAk/BHaS+i+SpdRfnB/OktOvyjinWNfM9Ksr6WwtCa1hCmeRI6icpFM4o8quCLsikU0tMoZI/9EqXRMpKGaWzofl4nQuVQm17d5fU5qXCQeCDqVaL9XJ9qJ08n3G3EFZS28SHEb3cdRBdtO0YcTzil3QknNKEe/smQ1fTb0XbpyNB5xAeuIlf+5KWlEY0DqJbsnzJlQxJPOVyHiKMx5Xu9FcEv1Fbg6Fhm4t+Jyy5JC1W3YO8dYLsO0PXPbxodBgttTbH3rt9Cp1lJIk2r3O1Zqu94eRbnIz2f50lWolYzuKsj4PMok4abHLO8NAC884hiXx5Fy5pWKO0bWL7uEGXaJCtznhP67SlQ4xjWIfgq6EpZ28QMtuZK7JC0RGbl9nA4XtFLug/NLMoH1pGt9IonAJqcEDLyH6TDROcbsmGPaGIxMo41IUAnQVPMPGByp4mOmh9ZQMkBAcksUK55LsZj7E5z5XuZoyWCKu6nHmDq22xI/9Z8YdxJy4kWpD16jLVrpwGLWfyOD0Wd+cBzFBxVaGv7S5k9qwh/5t/LQEXsRqI3Q9Rm3QIoaZW9GlsDaKOUyykyWuhNOprSEi0s1G4rgoiX1V743EELti+pJu5og6X0g6oTynUqlhH9k6ezyRi05NGZHz0nvp3HOJr7ebrAUFrDjbkFBObEvdQWkkUbL0pEvMU46X58vF9j9F3j6kpyetNUBItrEubW9ZvMPM4qNqLlsSBJqOH3XbNwv/cXDXNxN8iFLzUhteisYY+RlHYOuP29/Cb+L+xv+35Rv7xudnZ6ohK4cMPfCG8KI7dNmjNk/H4e84pOxn/sZHK9psfvj8ncA8qJz7O8xqbxESDivGJOZzF7o5PJLQ7g34qAWoyuA+x3btU98LT6ZyGyceIXjrqob2CAVql4VOTQPUQYvHV/g4zAuCZGvYQBtf0wmd5lilrvuEn1BXLny01B4h4SMDlYsnNpm9d7m9h578ufpef9Z4WplqWQvqo52fyUA7J24eZD5av6SyGIV9kpmHNqyvdfzcpEMw97BvknV2fq+MFHun9BT3Lsf8pbzvisWiIQvYkng+8Vxk1V+dli1u56kY50LRjaPdotvT5BwqtwyF+emo/z9J3yVUVGfKrxQtJMOAQWoQii/4dp9wgybSa5mkucmRLtEQZ/pz0tL/NVcgWAd95nEQ3Tg6tNbuyn3Iepz65L3huMUUBntllWuu4DbtOFSMSbpILV4fy6wlM0SOvi6CpLh81c1LreIvKd61uEWBcDw1lUBUW1I0Z+m/PaRlX+PQ/oxg0Ye6KUiIiTF4ADNk59Ydpt5/rkxmq9tV5Kcp/eQLUVVmBzQNVuytQCP6Ezd0G8eLxWyHpmZWJ3bAzkWTtg4lZlw42SQezEmiUPaJUuR/qklVA/87S4ArFCpALdY3QRdUw3G3XbWUp6aq9z0zUizcPa7351p9JXOZyfdZBFnqt90VzQndXB/mwf8LC9STj5kenVpNuqOQQP3mIRJj7eV21FxG8VAxKrEn3c+XfmZ800EPb9/5lIlijscUbB6da0RQaMook0zug1G0tKi/JBC4rw7/D3m4ARzAkzMcVrDcT2SyFtUdWAsFlsPDFqV3N+EjyXaoEePwroaZCiLqEzb8MW+PNE9TmTC01EzWli51PzZvUqkmyuROU+V6ik+Le/9qT6nwzUzf9tP68tYei0YaDGx6kAd7jn1cKqOCuYbiELH9zYqcc4MnRJjkeGiqaGwLImhyeKs+xKJMBlOJ05ow9gGCKZ1VpnMKoSCTbMS+X+23y042zOb5MtcY/6oBeAo1Vy89OTyhpavFP78jXCcFH0t7Gx24hMEOm2gsEfGabVpQgvFqbQKMsknFRRmuPHcZu0Su/WMFphZvB2r/EGbG72rpGGho3h+Msz0uGzJ7hNK2uqQiE1qmn0zgacKYYZBCqsxV+sjbpoVdSilW/b94n2xNb648VmNIoizqEWhBnsen+d0kbCPmRItfWqSBeOd9Wne3c6bcd6uvXOJ6WdiSsuXq0ndhqrQ4QoWUjCjYtZ0EAhnSOP1m44xkf0O7jXghrzSJWxP4a/t72jU29Vu2rvu4n7HfHkkmQOMGSS+NPeLGO5I73mC2B7+lMiBQQZRM9/9liLIfowupUFAbPBbR+lxDM6M8Ptgh1paJq5Rvs7yEuLQv/7d1oU2woFSb3FMPWQOKMuCuJ7pDDjpIclus5TeEoMBy2YdVB4fxmesaCeMNsEgTHKS5WDSGyNUOoEpcC2OFWtIRf0w27ck34/DjxRTVIcc9+kqZE6iMSiVDsiKdP/Xz5XfEhm/sBhO50p1rvJDlkyyxuJ9SPgs7YeUJBjXdeAkE+P9OQJm6SZnn1svcduI78dYmbkE2mtziPrcjVisXG78spLvbZaSFx/Rks9zP4LKn0Cdz/3JsetkT06A8f/yCgMO6Mb1Hme0JJ7b2wZz1qleqTuKBGokhPVUZ0dVu+tnQYNEY1fmkZSz6+EGZ5EzL7657mreZGR3jUfaEk458PDniBzsSmBKhDRzfXameryJv9/D5m6HIqZ0R+ouCE54Dzp4IJuuD1e4Dc5i+PpSORJfG23uVgqixAMDvchMR0nZdH5brclYwRoJRWv/rlxGRI5ffD5NPGmIDt7vDE1434pYdVZIFh89Bs94HGGJbTwrN8T6lh1HZFTOB4lWzWj6EVqxSMvC0/ljWBQ3F2kc/mO2b6tWonT2JEqEwFts8rz2h+oWNds9ceR2cb7zZvJTDppHaEhK5avWqsseWa2Dt5BBhabdWSktS80oMQrL4TvAM9b5HMmyDnO+OkkbMXfUJG7eXqTIG6lqSOEbqVR+qYdP7uWb57WEJqzyh411GAVsDinPs7KvUeXItlcMdOUWzXBH6zscymV1LLVCtc8IePojzXHF9m5b5zGwBRdzcyUJkiu938ApmAayRdJrX1PmVguWUvt2ThQ62czItTyWJMW2An/hdDfMK7SiFQlGIdAbltHz3ycoh7j9V7GxNWBpbtcSdqm4XxRwTawc3cbZ+xfSv9qQfEkDKfZTwCkqWGI/ur250ItXlMlh6vUNWEYIg9A3GzbgmbqvTN8js2YMo87CU5y6nZ4dbJLDQJj9fc7yM7tZzJDZFtqOcU8+mZjYlq4VmifI23iHb1ZoT9E+kT2dolnP1AfiOkt7PQCSykBiXy5mv637IegWSKj9IKrYZf4Lu9+I7ub+mkRdlvYzehh/jaJ9n7HUH5b2IbgeNdkY7wx1yVzxS7pbvky6+nmVUtRllEFfweUQ0/nG017WoUYSxs+j2B4FV/F62EtHlMWZXYrjGHpthnNb1x66LKZ0Qe92INWHdfR/vqp02wMS8r1G4dJqHok8KmQ7947G13a4YXbsGgHcBvRuVu1eAi4/A5+ZixmdSXM73LupB/LH7O9yxLTVXJTyBbI1S49TIROrfVCOb/czZ9pM4JsZx8kUz8dQGv7gUWKxXvTH7QM/3J2OuXXgciUhqY+cgtaOliQQVOYthBLV3xpESZT3rmfEYNZxmpBbb24CRao86prn+i9TNOh8VxRJGXJfXHATJHs1T5txgc/opYrY8XjlGQQbRcoxIBcnVsMjmU1ymmIUL4dviJXndMAJ0Yet+c7O52/p98ytlmAsGBaTAmMhimAnvp1TWNGM9BpuitGj+t810CU2UhorrjPKGtThVC8WaXw04WFnT5fTjqmPyrQ0tN3CkLsctVy2xr0ZWgiWVZ1OrlFjjxJYsOiZv2cAoOvE+7sY0I/TwWcZqMoyIKNOftwP7w++Rfg67ljfovKYa50if3fzE/8aPYVey/Nq35+nH2sLPh/fP5TsylSKGOZ4k69d2PnH43+kq++sRXHQqGArWdwhx+hpwQC6JgT2uxehYU4Zbw7oNb6/HLikPyJROGK2ouyr+vzseESp9G50T4AyFrSqOQ0rroCYP4sMDFBrHn342EyZTMlSyk47rHSq89Y9/nI3zG5lX16Z5lxphguLOcZUndL8wNcrkyjH82jqg8Bo8OYkynrxZvbFno5lUS3OPr8Ko3mX9NoRPdYOKKjD07bvgFgpZ/RF+YzkWvJ/Hs/tUbfeGzGWLxNAjfDzHHMVSDwB5SabQLsIZHiBp43FjGkaienYoDd18hu2BGwOK7U3o70K/WY/kuuKdmdrykIBUdG2mvE91L1JtTbh20mOLbk1vCAamu7utlXeGU2ooVikbU/actcgmsC1FKk2qmj3GWeIWbj4tGIxE7BLcBWUvvcnd/lYxsMV4F917fWeFB/XbINN3qGvIyTpCalz1lVewdIGqeAS/gB8Mi+sA+BqDiX3VGD2eUunTRbSY+AuDy4E3Qx3hAhwnSXX+B0zuj3eQ1miS8Vux2z/l6/BkWtjKGU72aJkOCWhGcSf3+kFkkB15vGOsQrSdFr6qTj0gBYiOlnBO41170gOWHSUoBVRU2JjwppYdhIFDfu7tIRHccSNM5KZOFDPz0TGMAjzzEpeLwTWp+kn201kU6NjbiMQJx83+LX1e1tZ10kuChJZ/XBUQ1dwaBHjTDJDqOympEk8X2M3VtVw21JksChA8w1tTefO3RJ1FMbqZ01bHHkudDB/OhLfe7P5GOHaI28ZXKTMuqo0hLWQ4HabBsGG7NbP1RiXtETz074er6w/OerJWEqjmkq2y51q1BVI+JUudnVa3ogBpzdhFE7fC7kybrAt2Z6RqDjATAUEYeYK45WMupBKQRtQlU+uNsjnzj6ZmGrezA+ASrWxQ6LMkHRXqXwNq7ftv28dUx/ZSJciDXP2SWJsWaN0FjPX9Yko6LobZ7aYW/IdUktI9apTLyHS8DyWPyuoZyxN1TK/vtfxk3HwWh6JczZC8Ftn0bIJay2g+n5wd7lm9rEsKO+svqVmi+c1j88hSCxbzrg4+HEP0Nt1/B6YW1XVm09T1CpAKjc9n18hjqsaFGdfyva1ZG0Xu3ip6N6JGpyTSqY5h4BOlpLPaOnyw45PdXTN+DtAKg7DLrLFTnWusoSBHk3s0d7YouJHq85/R09Tfc37ENXZF48eAYLnq9GLioNcwDZrC6FW6godB8JnqYUPvn0pWLfQz0lM0Yy8Mybgn84Ds3Q9bDP10bLyOV+qzxa4Rd9Dhu7cju8mMaONXK3UqmBQ9qIg7etIwEqM/kECk/Dzja4Bs1xR+Q/tCbc8IKrSGsTdJJ0vge7IG20W687uVmK6icWQ6cD3lwFzgNMGtFvO5qyJeKflGLAAcQZOrkxVwy3cWvqlGpvjmf9Qe6Ap20MPbV92DPV0OhFM4kz8Yr0ffC2zLWSQ1kqY6QdQrttR3kh1YLtQd1kCEv5hVoPIRWl5ERcUTttBIrWp6Xs5Ehh5OUUwI5aEBvuiDmUoENmnVw1FohCrbRp1A1E+XSlWVOTi7ADW+5Ohb9z1vK4qx5R5lPdGCPBJZ00mC+Ssp8VUbgpGAvXWMuWQQRbCqI6Rr2jtxZxtfP7W/8onz+yz0Gs76LaT5HX9ecyiZCB/ZR/gFtMxPsDwohoeCRtiuLxE1GM1vUEUgBv86+eehL58/P56QFGQ/MqOe/vC76L63jzmeax4exd/OKTUvkXg+fOJUHych9xt/9goJMrapSgvXrj8+8vk/N80f22Sewj6cyGqt1B6mztoeklVHHraouhvHJaG/OuBz6DHKMpFmQULU1bRWlyYE0RPXYYkUycIemN7TLtgNCJX6BqdyxDKkegO7nJK5xQ7OVYDZTMf9bVHidtk6DQX9Et+V9M7esgbsYBdEeUpsB0Xvw2kd9+rI7V+m47u+O/tq7mw7262HU1WlS9uFzsV6JxIHNmUCy0QS9e077JGRFbG65z3/dOKB/Zk+yDdKpUmdXjn/aS3N5nv4fK7bMHHmPlHd4E2+iTbV5rpzScRnxk6KARuDTJ8Q1LpK2mP8gj1EbuJ9RIyY+EWK4hCiIDBAS1Tm2IEXAFfgKPgdL9O6mAa06wjCcUAL6EsxPQWO9VNegBPm/0GgkZbDxCynxujX/92vmGcjZRMAY45puak2sFLCLSwXpEsyy5fnF0jGJBhm+fNSHKKUUfy+276A7/feLOFxxUuHRNJI2Osenxyvf8DAGObT60pfTTlhEg9u/KKkhJqm5U1/+BEcSkpFDA5XeCqxwXmPac1jcuZ3JWQ+p0NdWzb/5v1ZvF8GtMTFFEdQjpLO0bwPb0BHNWnip3liDXI2fXf05jjvfJ0NpjLCUgfTh9CMFYVFKEd4Z/OG/2C+N435mnK+9t1gvCiVcaaH7rK4+PjCvpVNiz+t2QyqH1O8x3JKZVl6Q+Lp/XK8wMjVMslOq9FdSw5FtUs/CptXH9PW+wbWHgrV17R5jTVOtGtKFu3nb80T+E0tv9QkzW3J2dbaw/8ddAKZ0pxIaEqLjlPrji3VgJ3GvdFvlqD8075woxh4fVt0JZE0KVFsAvqhe0dqN9b35jtSpnYMXkU+vZq+IAHad3IHc2s/LYrnD1anfG46IFiMIr9oNbZDWvwthqYNqOigaKd/XlLU4XHfk/PXIjPsLy/9/kAtQ+/wKH+hI/IROWj5FPvTZAT9f7j4ZXQyG4M0TujMAFXYkKvEHv1xhySekgXGGqNxWeWKlf8dDAlLuB1cb/qOD+rk7cmwt+1yKpk9cudqBanTi6zTbXRtV8qylNtjyOVKy1HTz0GW9rjt6sSjAZcT5R+KdtyYb0zyqG9pSLuCw5WBwAn7fjBjKLLoxLXMI+52L9cLwIR2B6OllJZLHJ8vDxmWdtF+QJnmt1rsHPIWY20lftk8fYePkAIg6Hgn532QoIpegMxiWgAOfe5/U44APR8Ac0NeZrVh3gEhs12W+tVSiWiUQekf/YBECUy5fdYbA08dd7VzPAP9aiVcIB9k6tY7WdJ1wNV+bHeydNtmC6G5ICtFC1ZwmJU/j8hf0I8TRVKSiz5oYIa93EpUI78X8GYIAZabx47/n8LDAAJ0nNtP1rpROprqKMBRecShca6qXuTSI3jZBLOB3Vp381B5rCGhjSvh/NSVkYp2qIdP/Bg="},{}],6:[function(e,t,n){var r=e("./dictionary-browser");n.init=function(){n.dictionary=r.init()},n.offsetsByLength=new Uint32Array([0,0,0,0,0,4096,9216,21504,35840,44032,53248,63488,74752,87040,93696,100864,104704,106752,108928,113536,115968,118528,119872,121280,122016]),n.sizeBitsByLength=new Uint8Array([0,0,0,0,10,10,11,11,10,10,10,10,10,9,9,8,7,7,8,7,7,6,6,5,5]),n.minDictionaryWordLength=4,n.maxDictionaryWordLength=24},{"./dictionary-browser":4}],7:[function(e,t,n){function r(e,t){this.bits=e,this.value=t}n.HuffmanCode=r;var a=15;function s(e,t){for(var n=1<<t-1;e&n;)n>>=1;return(e&n-1)+n}function i(e,t,n,a,s){do{e[t+(a-=n)]=new r(s.bits,s.value)}while(a>0)}function o(e,t,n){for(var r=1<<t-n;t<a&&!((r-=e[t])<=0);)++t,r<<=1;return t-n}n.BrotliBuildHuffmanTable=function(e,t,n,l,c){var u,d,m,p,h,f,g,y,v,_,b=t,E=new Int32Array(a+1),w=new Int32Array(a+1);for(_=new Int32Array(c),d=0;d<c;d++)E[l[d]]++;for(w[1]=0,u=1;u<a;u++)w[u+1]=w[u]+E[u];for(d=0;d<c;d++)0!==l[d]&&(_[w[l[d]]++]=d);if(v=y=1<<(g=n),1===w[a]){for(m=0;m<v;++m)e[t+m]=new r(0,65535&_[0]);return v}for(m=0,d=0,u=1,p=2;u<=n;++u,p<<=1)for(;E[u]>0;--E[u])i(e,t+m,p,y,new r(255&u,65535&_[d++])),m=s(m,u);for(f=v-1,h=-1,u=n+1,p=2;u<=a;++u,p<<=1)for(;E[u]>0;--E[u])(m&f)!==h&&(t+=y,v+=y=1<<(g=o(E,u,n)),e[b+(h=m&f)]=new r(g+n&255,t-b-h&65535)),i(e,t+(m>>n),p,y,new r(u-n&255,65535&_[d++])),m=s(m,u);return v}},{}],8:[function(e,t,n){"use strict";n.byteLength=u,n.toByteArray=m,n.fromByteArray=f;for(var r=[],a=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=i.length;o<l;++o)r[o]=i[o],a[i.charCodeAt(o)]=o;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function d(e,t,n){return 3*(t+n)/4-n}function m(e){for(var t,n=c(e),r=n[0],i=n[1],o=new s(d(e,r,i)),l=0,u=i>0?r-4:r,m=0;m<u;m+=4)t=a[e.charCodeAt(m)]<<18|a[e.charCodeAt(m+1)]<<12|a[e.charCodeAt(m+2)]<<6|a[e.charCodeAt(m+3)],o[l++]=t>>16&255,o[l++]=t>>8&255,o[l++]=255&t;return 2===i&&(t=a[e.charCodeAt(m)]<<2|a[e.charCodeAt(m+1)]>>4,o[l++]=255&t),1===i&&(t=a[e.charCodeAt(m)]<<10|a[e.charCodeAt(m+1)]<<4|a[e.charCodeAt(m+2)]>>2,o[l++]=t>>8&255,o[l++]=255&t),o}function p(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,n){for(var r,a=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(p(r));return a.join("")}function f(e){for(var t,n=e.length,a=n%3,s=[],i=16383,o=0,l=n-a;o<l;o+=i)s.push(h(e,o,o+i>l?l:o+i));return 1===a?(t=e[n-1],s.push(r[t>>2]+r[t<<4&63]+"==")):2===a&&(t=(e[n-2]<<8)+e[n-1],s.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),s.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},{}],9:[function(e,t,n){function r(e,t){this.offset=e,this.nbits=t}n.kBlockLengthPrefixCode=[new r(1,2),new r(5,2),new r(9,2),new r(13,2),new r(17,3),new r(25,3),new r(33,3),new r(41,3),new r(49,4),new r(65,4),new r(81,4),new r(97,4),new r(113,5),new r(145,5),new r(177,5),new r(209,5),new r(241,6),new r(305,6),new r(369,7),new r(497,8),new r(753,9),new r(1265,10),new r(2289,11),new r(4337,12),new r(8433,13),new r(16625,24)],n.kInsertLengthPrefixCode=[new r(0,0),new r(1,0),new r(2,0),new r(3,0),new r(4,0),new r(5,0),new r(6,1),new r(8,1),new r(10,2),new r(14,2),new r(18,3),new r(26,3),new r(34,4),new r(50,4),new r(66,5),new r(98,5),new r(130,6),new r(194,7),new r(322,8),new r(578,9),new r(1090,10),new r(2114,12),new r(6210,14),new r(22594,24)],n.kCopyLengthPrefixCode=[new r(2,0),new r(3,0),new r(4,0),new r(5,0),new r(6,0),new r(7,0),new r(8,0),new r(9,0),new r(10,1),new r(12,1),new r(14,2),new r(18,2),new r(22,3),new r(30,3),new r(38,4),new r(54,4),new r(70,5),new r(102,5),new r(134,6),new r(198,7),new r(326,8),new r(582,9),new r(1094,10),new r(2118,24)],n.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],n.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},{}],10:[function(e,t,n){function r(e){this.buffer=e,this.pos=0}function a(e){this.buffer=e,this.pos=0}r.prototype.read=function(e,t,n){this.pos+n>this.buffer.length&&(n=this.buffer.length-this.pos);for(var r=0;r<n;r++)e[t+r]=this.buffer[this.pos+r];return this.pos+=n,n},n.BrotliInput=r,a.prototype.write=function(e,t){if(this.pos+t>this.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(e.subarray(0,t),this.pos),this.pos+=t,t},n.BrotliOutput=a},{}],11:[function(e,t,n){var r=e("./dictionary"),a=0,s=1,i=2,o=3,l=4,c=5,u=6,d=7,m=8,p=9,h=10,f=11,g=12,y=13,v=14,_=15,b=16,E=17,w=18,S=20;function x(e,t,n){this.prefix=new Uint8Array(e.length),this.transform=t,this.suffix=new Uint8Array(n.length);for(var r=0;r<e.length;r++)this.prefix[r]=e.charCodeAt(r);for(r=0;r<n.length;r++)this.suffix[r]=n.charCodeAt(r)}var C=[new x("",a,""),new x("",a," "),new x(" ",a," "),new x("",g,""),new x("",h," "),new x("",a," the "),new x(" ",a,""),new x("s ",a," "),new x("",a," of "),new x("",h,""),new x("",a," and "),new x("",y,""),new x("",s,""),new x(", ",a," "),new x("",a,", "),new x(" ",h," "),new x("",a," in "),new x("",a," to "),new x("e ",a," "),new x("",a,'"'),new x("",a,"."),new x("",a,'">'),new x("",a,"\n"),new x("",o,""),new x("",a,"]"),new x("",a," for "),new x("",v,""),new x("",i,""),new x("",a," a "),new x("",a," that "),new x(" ",h,""),new x("",a,". "),new x(".",a,""),new x(" ",a,", "),new x("",_,""),new x("",a," with "),new x("",a,"'"),new x("",a," from "),new x("",a," by "),new x("",b,""),new x("",E,""),new x(" the ",a,""),new x("",l,""),new x("",a,". The "),new x("",f,""),new x("",a," on "),new x("",a," as "),new x("",a," is "),new x("",d,""),new x("",s,"ing "),new x("",a,"\n\t"),new x("",a,":"),new x(" ",a,". "),new x("",a,"ed "),new x("",S,""),new x("",w,""),new x("",u,""),new x("",a,"("),new x("",h,", "),new x("",m,""),new x("",a," at "),new x("",a,"ly "),new x(" the ",a," of "),new x("",c,""),new x("",p,""),new x(" ",h,", "),new x("",h,'"'),new x(".",a,"("),new x("",f," "),new x("",h,'">'),new x("",a,'="'),new x(" ",a,"."),new x(".com/",a,""),new x(" the ",a," of the "),new x("",h,"'"),new x("",a,". This "),new x("",a,","),new x(".",a," "),new x("",h,"("),new x("",h,"."),new x("",a," not "),new x(" ",a,'="'),new x("",a,"er "),new x(" ",f," "),new x("",a,"al "),new x(" ",f,""),new x("",a,"='"),new x("",f,'"'),new x("",h,". "),new x(" ",a,"("),new x("",a,"ful "),new x(" ",h,". "),new x("",a,"ive "),new x("",a,"less "),new x("",f,"'"),new x("",a,"est "),new x(" ",h,"."),new x("",f,'">'),new x(" ",a,"='"),new x("",h,","),new x("",a,"ize "),new x("",f,"."),new x(" ",a,""),new x(" ",a,","),new x("",h,'="'),new x("",f,'="'),new x("",a,"ous "),new x("",f,", "),new x("",h,"='"),new x(" ",h,","),new x(" ",f,'="'),new x(" ",f,", "),new x("",f,","),new x("",f,"("),new x("",f,". "),new x(" ",f,"."),new x("",f,"='"),new x(" ",f,". "),new x(" ",h,'="'),new x(" ",f,"='"),new x(" ",h,"='")];function k(e,t){return e[t]<192?(e[t]>=97&&e[t]<=122&&(e[t]^=32),1):e[t]<224?(e[t+1]^=32,2):(e[t+2]^=5,3)}n.kTransforms=C,n.kNumTransforms=C.length,n.transformDictionaryWord=function(e,t,n,a,s){var i,o=C[s].prefix,l=C[s].suffix,c=C[s].transform,u=c<g?0:c-(g-1),d=0,m=t;u>a&&(u=a);for(var y=0;y<o.length;)e[t++]=o[y++];for(n+=u,a-=u,c<=p&&(a-=c),d=0;d<a;d++)e[t++]=r.dictionary[n+d];if(i=t-a,c===h)k(e,i);else if(c===f)for(;a>0;){var v=k(e,i);i+=v,a-=v}for(var _=0;_<l.length;)e[t++]=l[_++];return t-m}},{"./dictionary":6}],12:[function(e,t,n){t.exports=e("./dec/decode").BrotliDecompressBuffer},{"./dec/decode":3}]},{},[12])(12)},4306:function(e,t){var n,r,a;
-/*!
- autosize 4.0.4
- license: MIT
- http://www.jacklmoore.com/autosize
-*/r=[e,t],n=function(e,t){"use strict";var n,r,a="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-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))}}),s=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){s=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!a.has(e)){var t=null,n=null,r=null,i=function(){e.clientWidth!==n&&m()},o=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",m,!1),e.removeEventListener("keyup",m,!1),e.removeEventListener("autosize:destroy",o,!1),e.removeEventListener("autosize:update",m,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),a.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",o,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",m,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",m,!1),e.addEventListener("autosize:update",m,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",a.set(e,{destroy:o,update:m}),l()}function l(){var n=window.getComputedStyle(e,null);"vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),t="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(t)&&(t=0),m()}function c(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(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}function d(){if(0!==e.scrollHeight){var r=u(e),a=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,r.forEach((function(e){e.node.scrollTop=e.scrollTop})),a&&(document.documentElement.scrollTop=a)}}function m(){d();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),a="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(a<t?"hidden"===n.overflowY&&(c("scroll"),d(),a="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),d(),a="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),r!==a){r=a;var i=s("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}function o(e){var t=a.get(e);t&&t.destroy()}function l(e){var t=a.get(e);t&&t.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return i(e,t)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],o),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=c,e.exports=t.default},void 0===(a="function"==typeof n?n.apply(t,r):n)||(e.exports=a)},5755:(e,t)=>{var n;
-/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var s=typeof n;if("string"===s||"number"===s)e.push(n);else if(Array.isArray(n)){if(n.length){var i=a.apply(null,n);i&&e.push(i)}}else if("object"===s){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var o in n)r.call(n,o)&&n[o]&&e.push(o)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},6109:e=>{e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},66:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function i(e,t){try{return t in e}catch(e){return!1}}function o(e,t,n){var a={};return n.isMergeableObject(e)&&s(e).forEach((function(t){a[t]=r(e[t],n)})),s(t).forEach((function(s){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(i(e,s)&&n.isMergeableObject(t[s])?a[s]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(s,n)(e[s],t[s],n):a[s]=r(t[s],n))})),a}function l(e,n,s){(s=s||{}).arrayMerge=s.arrayMerge||a,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=r;var i=Array.isArray(n);return i===Array.isArray(e)?i?s.arrayMerge(e,n,s):o(e,n,s):r(n,s)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},461:(e,t,n)=>{var r=n(6109);e.exports=function(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var a=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),a?e.style.lineHeight=a:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var s=e.nodeName,i=document.createElement(s);i.innerHTML="&nbsp;","TEXTAREA"===s.toUpperCase()&&i.setAttribute("rows","1");var o=r(e,"font-size");i.style.fontSize=o,i.style.padding="0px",i.style.border="0px";var l=document.body;l.appendChild(i),n=i.offsetHeight,l.removeChild(i)}return n}},628:(e,t,n)=>{"use strict";var r=n(4067);function a(){}function s(){}s.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,s,i){if(i!==r){var o=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 o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bigint: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:s,resetWarningCache:a};return n.PropTypes=n,n}},5826:(e,t,n)=>{e.exports=n(628)()},4067:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4462:function(e,t,n){"use strict";var r,a=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)}),s=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&(n[r[a]]=e[r[a]])}return n};t.__esModule=!0;var o=n(1609),l=n(5826),c=n(4306),u=n(461),d="autosize:resized",m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return a(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,r=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||r?setTimeout((function(){return e.textarea&&c(e.textarea)})):this.textarea&&c(this.textarea),this.textarea&&this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(d,this.onResize),c.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),r=(t.onChange,t.style),a=(t.innerRef,t.children),l=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return o.createElement("textarea",s({},l,{onChange:this.onChange,style:u?s({},r,{maxHeight:u}):r,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),a)},t.prototype.componentDidUpdate=function(){this.textarea&&c.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:l.number,maxRows:l.number,onResize:l.func,innerRef:l.any,async:l.bool},t}(o.Component);t.TextareaAutosize=o.forwardRef((function(e,t){return o.createElement(m,s({},e,{innerRef:t}))}))},4132:(e,t,n)=>{"use strict";var r=n(4462);t.A=r.TextareaAutosize},3394:(e,t,n)=>{"use strict";var r=n(1609),a=Symbol.for("react.element"),s=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};
-/**
- * @license React
- * react-jsx-runtime.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */function c(e,t,n){var r,s={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===s[r]&&(s[r]=t[r]);return{$$typeof:a,type:e,key:c,ref:u,props:s,_owner:o.current}}t.jsx=c},4922:(e,t,n)=>{"use strict";e.exports=n(3394)},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),a=new RegExp(n,"");function s(e){return t[e]}var i=function(e){return e.replace(r,s)};e.exports=i,e.exports.has=function(e){return!!e.match(a)},e.exports.remove=i},8477:(e,t,n)=>{"use strict";
+(()=>{var e,t,s={4660:e=>{e.exports=function(){function e(t,s,n){function i(o,a){if(!s[o]){if(!t[o]){if(r)return r(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=s[o]={exports:{}};t[o][0].call(c.exports,(function(e){return i(t[o][1][e]||e)}),c,c.exports,e,t,s,n)}return s[o].exports}for(var r=void 0,o=0;o<n.length;o++)i(n[o]);return i}return e}()({1:[function(e,t,s){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}s.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var s=t.shift();if(s){if("object"!=typeof s)throw new TypeError(s+"must be non-object");for(var n in s)i(s,n)&&(e[n]=s[n])}}return e},s.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,s,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(s,s+n),i);else for(var r=0;r<n;r++)e[i+r]=t[s+r]},flattenChunks:function(e){var t,s,n,i,r,o;for(n=0,t=0,s=e.length;t<s;t++)n+=e[t].length;for(o=new Uint8Array(n),i=0,t=0,s=e.length;t<s;t++)r=e[t],o.set(r,i),i+=r.length;return o}},o={arraySet:function(e,t,s,n,i){for(var r=0;r<n;r++)e[i+r]=t[s+r]},flattenChunks:function(e){return[].concat.apply([],e)}};s.setTyped=function(e){e?(s.Buf8=Uint8Array,s.Buf16=Uint16Array,s.Buf32=Int32Array,s.assign(s,r)):(s.Buf8=Array,s.Buf16=Array,s.Buf32=Array,s.assign(s,o))},s.setTyped(n)},{}],2:[function(e,t,s){"use strict";var n=e("./common"),i=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){r=!1}for(var o=new n.Buf8(256),a=0;a<256;a++)o[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;function l(e,t){if(t<65534&&(e.subarray&&r||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var s="",o=0;o<t;o++)s+=String.fromCharCode(e[o]);return s}o[254]=o[254]=1,s.string2buf=function(e){var t,s,i,r,o,a=e.length,l=0;for(r=0;r<a;r++)55296==(64512&(s=e.charCodeAt(r)))&&r+1<a&&56320==(64512&(i=e.charCodeAt(r+1)))&&(s=65536+(s-55296<<10)+(i-56320),r++),l+=s<128?1:s<2048?2:s<65536?3:4;for(t=new n.Buf8(l),o=0,r=0;o<l;r++)55296==(64512&(s=e.charCodeAt(r)))&&r+1<a&&56320==(64512&(i=e.charCodeAt(r+1)))&&(s=65536+(s-55296<<10)+(i-56320),r++),s<128?t[o++]=s:s<2048?(t[o++]=192|s>>>6,t[o++]=128|63&s):s<65536?(t[o++]=224|s>>>12,t[o++]=128|s>>>6&63,t[o++]=128|63&s):(t[o++]=240|s>>>18,t[o++]=128|s>>>12&63,t[o++]=128|s>>>6&63,t[o++]=128|63&s);return t},s.buf2binstring=function(e){return l(e,e.length)},s.binstring2buf=function(e){for(var t=new n.Buf8(e.length),s=0,i=t.length;s<i;s++)t[s]=e.charCodeAt(s);return t},s.buf2string=function(e,t){var s,n,i,r,a=t||e.length,c=new Array(2*a);for(n=0,s=0;s<a;)if((i=e[s++])<128)c[n++]=i;else if((r=o[i])>4)c[n++]=65533,s+=r-1;else{for(i&=2===r?31:3===r?15:7;r>1&&s<a;)i=i<<6|63&e[s++],r--;r>1?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return l(c,n)},s.utf8border=function(e,t){var s;for((t=t||e.length)>e.length&&(t=e.length),s=t-1;s>=0&&128==(192&e[s]);)s--;return s<0||0===s?t:s+o[e[s]]>t?s:t}},{"./common":1}],3:[function(e,t,s){"use strict";function n(e,t,s,n){for(var i=65535&e|0,r=e>>>16&65535|0,o=0;0!==s;){s-=o=s>2e3?2e3:s;do{r=r+(i=i+t[n++]|0)|0}while(--o);i%=65521,r%=65521}return i|r<<16|0}t.exports=n},{}],4:[function(e,t,s){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],5:[function(e,t,s){"use strict";function n(){for(var e,t=[],s=0;s<256;s++){e=s;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[s]=e}return t}var i=n();function r(e,t,s,n){var r=i,o=n+s;e^=-1;for(var a=n;a<o;a++)e=e>>>8^r[255&(e^t[a])];return-1^e}t.exports=r},{}],6:[function(e,t,s){"use strict";function n(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}t.exports=n},{}],7:[function(e,t,s){"use strict";var n=30,i=12;t.exports=function(e,t){var s,r,o,a,l,c,u,d,h,p,f,m,g,v,y,x,b,w,_,S,j,C,k,E,P;s=e.state,r=e.next_in,E=e.input,o=r+(e.avail_in-5),a=e.next_out,P=e.output,l=a-(t-e.avail_out),c=a+(e.avail_out-257),u=s.dmax,d=s.wsize,h=s.whave,p=s.wnext,f=s.window,m=s.hold,g=s.bits,v=s.lencode,y=s.distcode,x=(1<<s.lenbits)-1,b=(1<<s.distbits)-1;e:do{g<15&&(m+=E[r++]<<g,g+=8,m+=E[r++]<<g,g+=8),w=v[m&x];t:for(;;){if(m>>>=_=w>>>24,g-=_,0==(_=w>>>16&255))P[a++]=65535&w;else{if(!(16&_)){if(0==(64&_)){w=v[(65535&w)+(m&(1<<_)-1)];continue t}if(32&_){s.mode=i;break e}e.msg="invalid literal/length code",s.mode=n;break e}S=65535&w,(_&=15)&&(g<_&&(m+=E[r++]<<g,g+=8),S+=m&(1<<_)-1,m>>>=_,g-=_),g<15&&(m+=E[r++]<<g,g+=8,m+=E[r++]<<g,g+=8),w=y[m&b];s:for(;;){if(m>>>=_=w>>>24,g-=_,!(16&(_=w>>>16&255))){if(0==(64&_)){w=y[(65535&w)+(m&(1<<_)-1)];continue s}e.msg="invalid distance code",s.mode=n;break e}if(j=65535&w,g<(_&=15)&&(m+=E[r++]<<g,(g+=8)<_&&(m+=E[r++]<<g,g+=8)),(j+=m&(1<<_)-1)>u){e.msg="invalid distance too far back",s.mode=n;break e}if(m>>>=_,g-=_,j>(_=a-l)){if((_=j-_)>h&&s.sane){e.msg="invalid distance too far back",s.mode=n;break e}if(C=0,k=f,0===p){if(C+=d-_,_<S){S-=_;do{P[a++]=f[C++]}while(--_);C=a-j,k=P}}else if(p<_){if(C+=d+p-_,(_-=p)<S){S-=_;do{P[a++]=f[C++]}while(--_);if(C=0,p<S){S-=_=p;do{P[a++]=f[C++]}while(--_);C=a-j,k=P}}}else if(C+=p-_,_<S){S-=_;do{P[a++]=f[C++]}while(--_);C=a-j,k=P}for(;S>2;)P[a++]=k[C++],P[a++]=k[C++],P[a++]=k[C++],S-=3;S&&(P[a++]=k[C++],S>1&&(P[a++]=k[C++]))}else{C=a-j;do{P[a++]=P[C++],P[a++]=P[C++],P[a++]=P[C++],S-=3}while(S>2);S&&(P[a++]=P[C++],S>1&&(P[a++]=P[C++]))}break}}break}}while(r<o&&a<c);r-=S=g>>3,m&=(1<<(g-=S<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<o?o-r+5:5-(r-o),e.avail_out=a<c?c-a+257:257-(a-c),s.hold=m,s.bits=g}},{}],8:[function(e,t,s){"use strict";var n=e("../utils/common"),i=e("./adler32"),r=e("./crc32"),o=e("./inffast"),a=e("./inftrees"),l=0,c=1,u=2,d=4,h=5,p=6,f=0,m=1,g=2,v=-2,y=-3,x=-4,b=-5,w=8,_=1,S=2,j=3,C=4,k=5,E=6,P=7,I=8,T=9,O=10,A=11,M=12,N=13,F=14,V=15,R=16,B=17,D=18,L=19,z=20,G=21,H=22,U=23,W=24,q=25,Z=26,K=27,Y=28,X=29,J=30,Q=31,$=852,ee=592,te=15;function se(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function ne(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ie(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=_,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32($),t.distcode=t.distdyn=new n.Buf32(ee),t.sane=1,t.back=-1,f):v}function re(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,ie(e)):v}function oe(e,t){var s,n;return e&&e.state?(n=e.state,t<0?(s=0,t=-t):(s=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?v:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=s,n.wbits=t,re(e))):v}function ae(e,t){var s,n;return e?(n=new ne,e.state=n,n.window=null,(s=oe(e,t))!==f&&(e.state=null),s):v}function le(e){return ae(e,te)}var ce,ue,de=!0;function he(e){if(de){var t;for(ce=new n.Buf32(512),ue=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(c,e.lens,0,288,ce,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(u,e.lens,0,32,ue,0,e.work,{bits:5}),de=!1}e.lencode=ce,e.lenbits=9,e.distcode=ue,e.distbits=5}function pe(e,t,s,i){var r,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),i>=o.wsize?(n.arraySet(o.window,t,s-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((r=o.wsize-o.wnext)>i&&(r=i),n.arraySet(o.window,t,s-i,r,o.wnext),(i-=r)?(n.arraySet(o.window,t,s-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=r,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=r))),0}function fe(e,t){var s,$,ee,te,ne,ie,re,oe,ae,le,ce,ue,de,fe,me,ge,ve,ye,xe,be,we,_e,Se,je,Ce=0,ke=new n.Buf8(4),Ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return v;(s=e.state).mode===M&&(s.mode=N),ne=e.next_out,ee=e.output,re=e.avail_out,te=e.next_in,$=e.input,ie=e.avail_in,oe=s.hold,ae=s.bits,le=ie,ce=re,_e=f;e:for(;;)switch(s.mode){case _:if(0===s.wrap){s.mode=N;break}for(;ae<16;){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}if(2&s.wrap&&35615===oe){s.check=0,ke[0]=255&oe,ke[1]=oe>>>8&255,s.check=r(s.check,ke,2,0),oe=0,ae=0,s.mode=S;break}if(s.flags=0,s.head&&(s.head.done=!1),!(1&s.wrap)||(((255&oe)<<8)+(oe>>8))%31){e.msg="incorrect header check",s.mode=J;break}if((15&oe)!==w){e.msg="unknown compression method",s.mode=J;break}if(ae-=4,we=8+(15&(oe>>>=4)),0===s.wbits)s.wbits=we;else if(we>s.wbits){e.msg="invalid window size",s.mode=J;break}s.dmax=1<<we,e.adler=s.check=1,s.mode=512&oe?O:M,oe=0,ae=0;break;case S:for(;ae<16;){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}if(s.flags=oe,(255&s.flags)!==w){e.msg="unknown compression method",s.mode=J;break}if(57344&s.flags){e.msg="unknown header flags set",s.mode=J;break}s.head&&(s.head.text=oe>>8&1),512&s.flags&&(ke[0]=255&oe,ke[1]=oe>>>8&255,s.check=r(s.check,ke,2,0)),oe=0,ae=0,s.mode=j;case j:for(;ae<32;){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}s.head&&(s.head.time=oe),512&s.flags&&(ke[0]=255&oe,ke[1]=oe>>>8&255,ke[2]=oe>>>16&255,ke[3]=oe>>>24&255,s.check=r(s.check,ke,4,0)),oe=0,ae=0,s.mode=C;case C:for(;ae<16;){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}s.head&&(s.head.xflags=255&oe,s.head.os=oe>>8),512&s.flags&&(ke[0]=255&oe,ke[1]=oe>>>8&255,s.check=r(s.check,ke,2,0)),oe=0,ae=0,s.mode=k;case k:if(1024&s.flags){for(;ae<16;){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}s.length=oe,s.head&&(s.head.extra_len=oe),512&s.flags&&(ke[0]=255&oe,ke[1]=oe>>>8&255,s.check=r(s.check,ke,2,0)),oe=0,ae=0}else s.head&&(s.head.extra=null);s.mode=E;case E:if(1024&s.flags&&((ue=s.length)>ie&&(ue=ie),ue&&(s.head&&(we=s.head.extra_len-s.length,s.head.extra||(s.head.extra=new Array(s.head.extra_len)),n.arraySet(s.head.extra,$,te,ue,we)),512&s.flags&&(s.check=r(s.check,$,ue,te)),ie-=ue,te+=ue,s.length-=ue),s.length))break e;s.length=0,s.mode=P;case P:if(2048&s.flags){if(0===ie)break e;ue=0;do{we=$[te+ue++],s.head&&we&&s.length<65536&&(s.head.name+=String.fromCharCode(we))}while(we&&ue<ie);if(512&s.flags&&(s.check=r(s.check,$,ue,te)),ie-=ue,te+=ue,we)break e}else s.head&&(s.head.name=null);s.length=0,s.mode=I;case I:if(4096&s.flags){if(0===ie)break e;ue=0;do{we=$[te+ue++],s.head&&we&&s.length<65536&&(s.head.comment+=String.fromCharCode(we))}while(we&&ue<ie);if(512&s.flags&&(s.check=r(s.check,$,ue,te)),ie-=ue,te+=ue,we)break e}else s.head&&(s.head.comment=null);s.mode=T;case T:if(512&s.flags){for(;ae<16;){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}if(oe!==(65535&s.check)){e.msg="header crc mismatch",s.mode=J;break}oe=0,ae=0}s.head&&(s.head.hcrc=s.flags>>9&1,s.head.done=!0),e.adler=s.check=0,s.mode=M;break;case O:for(;ae<32;){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}e.adler=s.check=se(oe),oe=0,ae=0,s.mode=A;case A:if(0===s.havedict)return e.next_out=ne,e.avail_out=re,e.next_in=te,e.avail_in=ie,s.hold=oe,s.bits=ae,g;e.adler=s.check=1,s.mode=M;case M:if(t===h||t===p)break e;case N:if(s.last){oe>>>=7&ae,ae-=7&ae,s.mode=K;break}for(;ae<3;){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}switch(s.last=1&oe,ae-=1,3&(oe>>>=1)){case 0:s.mode=F;break;case 1:if(he(s),s.mode=z,t===p){oe>>>=2,ae-=2;break e}break;case 2:s.mode=B;break;case 3:e.msg="invalid block type",s.mode=J}oe>>>=2,ae-=2;break;case F:for(oe>>>=7&ae,ae-=7&ae;ae<32;){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}if((65535&oe)!=(oe>>>16^65535)){e.msg="invalid stored block lengths",s.mode=J;break}if(s.length=65535&oe,oe=0,ae=0,s.mode=V,t===p)break e;case V:s.mode=R;case R:if(ue=s.length){if(ue>ie&&(ue=ie),ue>re&&(ue=re),0===ue)break e;n.arraySet(ee,$,te,ue,ne),ie-=ue,te+=ue,re-=ue,ne+=ue,s.length-=ue;break}s.mode=M;break;case B:for(;ae<14;){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}if(s.nlen=257+(31&oe),oe>>>=5,ae-=5,s.ndist=1+(31&oe),oe>>>=5,ae-=5,s.ncode=4+(15&oe),oe>>>=4,ae-=4,s.nlen>286||s.ndist>30){e.msg="too many length or distance symbols",s.mode=J;break}s.have=0,s.mode=D;case D:for(;s.have<s.ncode;){for(;ae<3;){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}s.lens[Ee[s.have++]]=7&oe,oe>>>=3,ae-=3}for(;s.have<19;)s.lens[Ee[s.have++]]=0;if(s.lencode=s.lendyn,s.lenbits=7,Se={bits:s.lenbits},_e=a(l,s.lens,0,19,s.lencode,0,s.work,Se),s.lenbits=Se.bits,_e){e.msg="invalid code lengths set",s.mode=J;break}s.have=0,s.mode=L;case L:for(;s.have<s.nlen+s.ndist;){for(;ge=(Ce=s.lencode[oe&(1<<s.lenbits)-1])>>>16&255,ve=65535&Ce,!((me=Ce>>>24)<=ae);){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}if(ve<16)oe>>>=me,ae-=me,s.lens[s.have++]=ve;else{if(16===ve){for(je=me+2;ae<je;){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}if(oe>>>=me,ae-=me,0===s.have){e.msg="invalid bit length repeat",s.mode=J;break}we=s.lens[s.have-1],ue=3+(3&oe),oe>>>=2,ae-=2}else if(17===ve){for(je=me+3;ae<je;){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}ae-=me,we=0,ue=3+(7&(oe>>>=me)),oe>>>=3,ae-=3}else{for(je=me+7;ae<je;){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}ae-=me,we=0,ue=11+(127&(oe>>>=me)),oe>>>=7,ae-=7}if(s.have+ue>s.nlen+s.ndist){e.msg="invalid bit length repeat",s.mode=J;break}for(;ue--;)s.lens[s.have++]=we}}if(s.mode===J)break;if(0===s.lens[256]){e.msg="invalid code -- missing end-of-block",s.mode=J;break}if(s.lenbits=9,Se={bits:s.lenbits},_e=a(c,s.lens,0,s.nlen,s.lencode,0,s.work,Se),s.lenbits=Se.bits,_e){e.msg="invalid literal/lengths set",s.mode=J;break}if(s.distbits=6,s.distcode=s.distdyn,Se={bits:s.distbits},_e=a(u,s.lens,s.nlen,s.ndist,s.distcode,0,s.work,Se),s.distbits=Se.bits,_e){e.msg="invalid distances set",s.mode=J;break}if(s.mode=z,t===p)break e;case z:s.mode=G;case G:if(ie>=6&&re>=258){e.next_out=ne,e.avail_out=re,e.next_in=te,e.avail_in=ie,s.hold=oe,s.bits=ae,o(e,ce),ne=e.next_out,ee=e.output,re=e.avail_out,te=e.next_in,$=e.input,ie=e.avail_in,oe=s.hold,ae=s.bits,s.mode===M&&(s.back=-1);break}for(s.back=0;ge=(Ce=s.lencode[oe&(1<<s.lenbits)-1])>>>16&255,ve=65535&Ce,!((me=Ce>>>24)<=ae);){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}if(ge&&0==(240&ge)){for(ye=me,xe=ge,be=ve;ge=(Ce=s.lencode[be+((oe&(1<<ye+xe)-1)>>ye)])>>>16&255,ve=65535&Ce,!(ye+(me=Ce>>>24)<=ae);){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}oe>>>=ye,ae-=ye,s.back+=ye}if(oe>>>=me,ae-=me,s.back+=me,s.length=ve,0===ge){s.mode=Z;break}if(32&ge){s.back=-1,s.mode=M;break}if(64&ge){e.msg="invalid literal/length code",s.mode=J;break}s.extra=15&ge,s.mode=H;case H:if(s.extra){for(je=s.extra;ae<je;){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}s.length+=oe&(1<<s.extra)-1,oe>>>=s.extra,ae-=s.extra,s.back+=s.extra}s.was=s.length,s.mode=U;case U:for(;ge=(Ce=s.distcode[oe&(1<<s.distbits)-1])>>>16&255,ve=65535&Ce,!((me=Ce>>>24)<=ae);){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}if(0==(240&ge)){for(ye=me,xe=ge,be=ve;ge=(Ce=s.distcode[be+((oe&(1<<ye+xe)-1)>>ye)])>>>16&255,ve=65535&Ce,!(ye+(me=Ce>>>24)<=ae);){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}oe>>>=ye,ae-=ye,s.back+=ye}if(oe>>>=me,ae-=me,s.back+=me,64&ge){e.msg="invalid distance code",s.mode=J;break}s.offset=ve,s.extra=15&ge,s.mode=W;case W:if(s.extra){for(je=s.extra;ae<je;){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}s.offset+=oe&(1<<s.extra)-1,oe>>>=s.extra,ae-=s.extra,s.back+=s.extra}if(s.offset>s.dmax){e.msg="invalid distance too far back",s.mode=J;break}s.mode=q;case q:if(0===re)break e;if(ue=ce-re,s.offset>ue){if((ue=s.offset-ue)>s.whave&&s.sane){e.msg="invalid distance too far back",s.mode=J;break}ue>s.wnext?(ue-=s.wnext,de=s.wsize-ue):de=s.wnext-ue,ue>s.length&&(ue=s.length),fe=s.window}else fe=ee,de=ne-s.offset,ue=s.length;ue>re&&(ue=re),re-=ue,s.length-=ue;do{ee[ne++]=fe[de++]}while(--ue);0===s.length&&(s.mode=G);break;case Z:if(0===re)break e;ee[ne++]=s.length,re--,s.mode=G;break;case K:if(s.wrap){for(;ae<32;){if(0===ie)break e;ie--,oe|=$[te++]<<ae,ae+=8}if(ce-=re,e.total_out+=ce,s.total+=ce,ce&&(e.adler=s.check=s.flags?r(s.check,ee,ce,ne-ce):i(s.check,ee,ce,ne-ce)),ce=re,(s.flags?oe:se(oe))!==s.check){e.msg="incorrect data check",s.mode=J;break}oe=0,ae=0}s.mode=Y;case Y:if(s.wrap&&s.flags){for(;ae<32;){if(0===ie)break e;ie--,oe+=$[te++]<<ae,ae+=8}if(oe!==(4294967295&s.total)){e.msg="incorrect length check",s.mode=J;break}oe=0,ae=0}s.mode=X;case X:_e=m;break e;case J:_e=y;break e;case Q:return x;default:return v}return e.next_out=ne,e.avail_out=re,e.next_in=te,e.avail_in=ie,s.hold=oe,s.bits=ae,(s.wsize||ce!==e.avail_out&&s.mode<J&&(s.mode<K||t!==d))&&pe(e,e.output,e.next_out,ce-e.avail_out)?(s.mode=Q,x):(le-=e.avail_in,ce-=e.avail_out,e.total_in+=le,e.total_out+=ce,s.total+=ce,s.wrap&&ce&&(e.adler=s.check=s.flags?r(s.check,ee,ce,e.next_out-ce):i(s.check,ee,ce,e.next_out-ce)),e.data_type=s.bits+(s.last?64:0)+(s.mode===M?128:0)+(s.mode===z||s.mode===V?256:0),(0===le&&0===ce||t===d)&&_e===f&&(_e=b),_e)}function me(e){if(!e||!e.state)return v;var t=e.state;return t.window&&(t.window=null),e.state=null,f}function ge(e,t){var s;return e&&e.state?0==(2&(s=e.state).wrap)?v:(s.head=t,t.done=!1,f):v}function ve(e,t){var s,n=t.length;return e&&e.state?0!==(s=e.state).wrap&&s.mode!==A?v:s.mode===A&&i(1,t,n,0)!==s.check?y:pe(e,t,n,n)?(s.mode=Q,x):(s.havedict=1,f):v}s.inflateReset=re,s.inflateReset2=oe,s.inflateResetKeep=ie,s.inflateInit=le,s.inflateInit2=ae,s.inflate=fe,s.inflateEnd=me,s.inflateGetHeader=ge,s.inflateSetDictionary=ve,s.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":5,"./inffast":7,"./inftrees":9}],9:[function(e,t,s){"use strict";var n=e("../utils/common"),i=15,r=852,o=592,a=0,l=1,c=2,u=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],d=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],h=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],p=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,s,f,m,g,v,y){var x,b,w,_,S,j,C,k,E,P=y.bits,I=0,T=0,O=0,A=0,M=0,N=0,F=0,V=0,R=0,B=0,D=null,L=0,z=new n.Buf16(i+1),G=new n.Buf16(i+1),H=null,U=0;for(I=0;I<=i;I++)z[I]=0;for(T=0;T<f;T++)z[t[s+T]]++;for(M=P,A=i;A>=1&&0===z[A];A--);if(M>A&&(M=A),0===A)return m[g++]=20971520,m[g++]=20971520,y.bits=1,0;for(O=1;O<A&&0===z[O];O++);for(M<O&&(M=O),V=1,I=1;I<=i;I++)if(V<<=1,(V-=z[I])<0)return-1;if(V>0&&(e===a||1!==A))return-1;for(G[1]=0,I=1;I<i;I++)G[I+1]=G[I]+z[I];for(T=0;T<f;T++)0!==t[s+T]&&(v[G[t[s+T]]++]=T);if(e===a?(D=H=v,j=19):e===l?(D=u,L-=257,H=d,U-=257,j=256):(D=h,H=p,j=-1),B=0,T=0,I=O,S=g,N=M,F=0,w=-1,_=(R=1<<M)-1,e===l&&R>r||e===c&&R>o)return 1;for(;;){C=I-F,v[T]<j?(k=0,E=v[T]):v[T]>j?(k=H[U+v[T]],E=D[L+v[T]]):(k=96,E=0),x=1<<I-F,O=b=1<<N;do{m[S+(B>>F)+(b-=x)]=C<<24|k<<16|E|0}while(0!==b);for(x=1<<I-1;B&x;)x>>=1;if(0!==x?(B&=x-1,B+=x):B=0,T++,0==--z[I]){if(I===A)break;I=t[s+v[T]]}if(I>M&&(B&_)!==w){for(0===F&&(F=M),S+=O,V=1<<(N=I-F);N+F<A&&!((V-=z[N+F])<=0);)N++,V<<=1;if(R+=1<<N,e===l&&R>r||e===c&&R>o)return 1;m[w=B&_]=M<<24|N<<16|S-g|0}}return 0!==B&&(m[S+B]=I-F<<24|64<<16|0),y.bits=M,0}},{"../utils/common":1}],10:[function(e,t,s){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],11:[function(e,t,s){"use strict";function n(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}t.exports=n},{}],"/lib/inflate.js":[function(e,t,s){"use strict";var n=e("./zlib/inflate"),i=e("./utils/common"),r=e("./utils/strings"),o=e("./zlib/constants"),a=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var s=n.inflateInit2(this.strm,t.windowBits);if(s!==o.Z_OK)throw new Error(a[s]);if(this.header=new c,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=r.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(s=n.inflateSetDictionary(this.strm,t.dictionary))!==o.Z_OK))throw new Error(a[s])}function h(e,t){var s=new d(t);if(s.push(e,!0),s.err)throw s.msg||a[s.err];return s.result}function p(e,t){return(t=t||{}).raw=!0,h(e,t)}d.prototype.push=function(e,t){var s,a,l,c,d,h=this.strm,p=this.options.chunkSize,f=this.options.dictionary,m=!1;if(this.ended)return!1;a=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?h.input=r.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(p),h.next_out=0,h.avail_out=p),(s=n.inflate(h,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&f&&(s=n.inflateSetDictionary(this.strm,f)),s===o.Z_BUF_ERROR&&!0===m&&(s=o.Z_OK,m=!1),s!==o.Z_STREAM_END&&s!==o.Z_OK)return this.onEnd(s),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&s!==o.Z_STREAM_END&&(0!==h.avail_in||a!==o.Z_FINISH&&a!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=r.utf8border(h.output,h.next_out),c=h.next_out-l,d=r.buf2string(h.output,l),h.next_out=c,h.avail_out=p-c,c&&i.arraySet(h.output,h.output,l,c,0),this.onData(d)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(m=!0)}while((h.avail_in>0||0===h.avail_out)&&s!==o.Z_STREAM_END);return s===o.Z_STREAM_END&&(a=o.Z_FINISH),a===o.Z_FINISH?(s=n.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===o.Z_OK):a!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),h.avail_out=0,!0)},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},s.Inflate=d,s.inflate=h,s.inflateRaw=p,s.ungzip=h},{"./utils/common":1,"./utils/strings":2,"./zlib/constants":4,"./zlib/gzheader":6,"./zlib/inflate":8,"./zlib/messages":10,"./zlib/zstream":11}]},{},[])("/lib/inflate.js")},8572:e=>{e.exports=function(){function e(t,s,n){function i(o,a){if(!s[o]){if(!t[o]){if(r)return r(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=s[o]={exports:{}};t[o][0].call(c.exports,(function(e){return i(t[o][1][e]||e)}),c,c.exports,e,t,s,n)}return s[o].exports}for(var r=void 0,o=0;o<n.length;o++)i(n[o]);return i}return e}()({1:[function(e,t,s){var n=4096,i=2*n+32,r=2*n-1,o=new Uint32Array([0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215]);function a(e){this.buf_=new Uint8Array(i),this.input_=e,this.reset()}a.READ_SIZE=n,a.IBUF_MASK=r,a.prototype.reset=function(){this.buf_ptr_=0,this.val_=0,this.pos_=0,this.bit_pos_=0,this.bit_end_pos_=0,this.eos_=0,this.readMoreInput();for(var e=0;e<4;e++)this.val_|=this.buf_[this.pos_]<<8*e,++this.pos_;return this.bit_end_pos_>0},a.prototype.readMoreInput=function(){if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{var e=this.buf_ptr_,t=this.input_.read(this.buf_,e,n);if(t<0)throw new Error("Unexpected end of input");if(t<n){this.eos_=1;for(var s=0;s<32;s++)this.buf_[e+t+s]=0}if(0===e){for(s=0;s<32;s++)this.buf_[(n<<1)+s]=this.buf_[s];this.buf_ptr_=n}else this.buf_ptr_=0;this.bit_end_pos_+=t<<3}},a.prototype.fillBitWindow=function(){for(;this.bit_pos_>=8;)this.val_>>>=8,this.val_|=this.buf_[this.pos_&r]<<24,++this.pos_,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0},a.prototype.readBits=function(e){32-this.bit_pos_<e&&this.fillBitWindow();var t=this.val_>>>this.bit_pos_&o[e];return this.bit_pos_+=e,t},t.exports=a},{}],2:[function(e,t,s){s.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),s.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},{}],3:[function(e,t,s){var n=e("./streams").BrotliInput,i=e("./streams").BrotliOutput,r=e("./bit_reader"),o=e("./dictionary"),a=e("./huffman").HuffmanCode,l=e("./huffman").BrotliBuildHuffmanTable,c=e("./context"),u=e("./prefix"),d=e("./transform"),h=8,p=16,f=256,m=704,g=26,v=6,y=2,x=8,b=255,w=1080,_=18,S=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),j=16,C=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),k=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),E=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function P(e){var t;return 0===e.readBits(1)?16:(t=e.readBits(3))>0?17+t:(t=e.readBits(3))>0?8+t:17}function I(e){if(e.readBits(1)){var t=e.readBits(3);return 0===t?1:e.readBits(t)+(1<<t)}return 0}function T(){this.meta_block_length=0,this.input_end=0,this.is_uncompressed=0,this.is_metadata=!1}function O(e){var t,s,n,i=new T;if(i.input_end=e.readBits(1),i.input_end&&e.readBits(1))return i;if(7===(t=e.readBits(2)+4)){if(i.is_metadata=!0,0!==e.readBits(1))throw new Error("Invalid reserved bit");if(0===(s=e.readBits(2)))return i;for(n=0;n<s;n++){var r=e.readBits(8);if(n+1===s&&s>1&&0===r)throw new Error("Invalid size byte");i.meta_block_length|=r<<8*n}}else for(n=0;n<t;++n){var o=e.readBits(4);if(n+1===t&&t>4&&0===o)throw new Error("Invalid size nibble");i.meta_block_length|=o<<4*n}return++i.meta_block_length,i.input_end||i.is_metadata||(i.is_uncompressed=e.readBits(1)),i}function A(e,t,s){var n;return s.fillBitWindow(),(n=e[t+=s.val_>>>s.bit_pos_&b].bits-x)>0&&(s.bit_pos_+=x,t+=e[t].value,t+=s.val_>>>s.bit_pos_&(1<<n)-1),s.bit_pos_+=e[t].bits,e[t].value}function M(e,t,s,n){for(var i=0,r=h,o=0,c=0,u=32768,d=[],f=0;f<32;f++)d.push(new a(0,0));for(l(d,0,5,e,_);i<t&&u>0;){var m,g=0;if(n.readMoreInput(),n.fillBitWindow(),g+=n.val_>>>n.bit_pos_&31,n.bit_pos_+=d[g].bits,(m=255&d[g].value)<p)o=0,s[i++]=m,0!==m&&(r=m,u-=32768>>m);else{var v,y,x=m-14,b=0;if(m===p&&(b=r),c!==b&&(o=0,c=b),v=o,o>0&&(o-=2,o<<=x),i+(y=(o+=n.readBits(x)+3)-v)>t)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var w=0;w<y;w++)s[i+w]=c;i+=y,0!==c&&(u-=y<<15-c)}}if(0!==u)throw new Error("[ReadHuffmanCodeLengths] space = "+u);for(;i<t;i++)s[i]=0}function N(e,t,s,n){var i,r=0,o=new Uint8Array(e);if(n.readMoreInput(),1===(i=n.readBits(2))){for(var c=e-1,u=0,d=new Int32Array(4),h=n.readBits(2)+1;c;)c>>=1,++u;for(p=0;p<h;++p)d[p]=n.readBits(u)%e,o[d[p]]=2;switch(o[d[0]]=1,h){case 1:break;case 3:if(d[0]===d[1]||d[0]===d[2]||d[1]===d[2])throw new Error("[ReadHuffmanCode] invalid symbols");break;case 2:if(d[0]===d[1])throw new Error("[ReadHuffmanCode] invalid symbols");o[d[1]]=1;break;case 4:if(d[0]===d[1]||d[0]===d[2]||d[0]===d[3]||d[1]===d[2]||d[1]===d[3]||d[2]===d[3])throw new Error("[ReadHuffmanCode] invalid symbols");n.readBits(1)?(o[d[2]]=3,o[d[3]]=3):o[d[0]]=2}}else{var p,f=new Uint8Array(_),m=32,g=0,v=[new a(2,0),new a(2,4),new a(2,3),new a(3,2),new a(2,0),new a(2,4),new a(2,3),new a(4,1),new a(2,0),new a(2,4),new a(2,3),new a(3,2),new a(2,0),new a(2,4),new a(2,3),new a(4,5)];for(p=i;p<_&&m>0;++p){var y,b=S[p],w=0;n.fillBitWindow(),w+=n.val_>>>n.bit_pos_&15,n.bit_pos_+=v[w].bits,y=v[w].value,f[b]=y,0!==y&&(m-=32>>y,++g)}if(1!==g&&0!==m)throw new Error("[ReadHuffmanCode] invalid num_codes or space");M(f,e,o,n)}if(0===(r=l(t,s,x,o,e)))throw new Error("[ReadHuffmanCode] BuildHuffmanTable failed: ");return r}function F(e,t,s){var n,i;return n=A(e,t,s),i=u.kBlockLengthPrefixCode[n].nbits,u.kBlockLengthPrefixCode[n].offset+s.readBits(i)}function V(e,t,s){var n;return e<j?(s+=C[e],n=t[s&=3]+k[e]):n=e-j+1,n}function R(e,t){for(var s=e[t],n=t;n;--n)e[n]=e[n-1];e[0]=s}function B(e,t){var s,n=new Uint8Array(256);for(s=0;s<256;++s)n[s]=s;for(s=0;s<t;++s){var i=e[s];e[s]=n[i],i&&R(n,i)}}function D(e,t){this.alphabet_size=e,this.num_htrees=t,this.codes=new Array(t+t*E[e+31>>>5]),this.htrees=new Uint32Array(t)}function L(e,t){var s,n,i={num_htrees:null,context_map:null},r=0;t.readMoreInput();var o=i.num_htrees=I(t)+1,l=i.context_map=new Uint8Array(e);if(o<=1)return i;for(t.readBits(1)&&(r=t.readBits(4)+1),s=[],n=0;n<w;n++)s[n]=new a(0,0);for(N(o+r,s,0,t),n=0;n<e;){var c;if(t.readMoreInput(),0===(c=A(s,0,t)))l[n]=0,++n;else if(c<=r)for(var u=1+(1<<c)+t.readBits(c);--u;){if(n>=e)throw new Error("[DecodeContextMap] i >= context_map_size");l[n]=0,++n}else l[n]=c-r,++n}return t.readBits(1)&&B(l,e),i}function z(e,t,s,n,i,r,o){var a,l=2*s,c=s,u=A(t,s*w,o);(a=0===u?i[l+(1&r[c])]:1===u?i[l+(r[c]-1&1)]+1:u-2)>=e&&(a-=e),n[s]=a,i[l+(1&r[c])]=a,++r[c]}function G(e,t,s,n,i,o){var a,l=i+1,c=s&i,u=o.pos_&r.IBUF_MASK;if(t<8||o.bit_pos_+(t<<3)<o.bit_end_pos_)for(;t-- >0;)o.readMoreInput(),n[c++]=o.readBits(8),c===l&&(e.write(n,l),c=0);else{if(o.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;o.bit_pos_<32;)n[c]=o.val_>>>o.bit_pos_,o.bit_pos_+=8,++c,--t;if(u+(a=o.bit_end_pos_-o.bit_pos_>>3)>r.IBUF_MASK){for(var d=r.IBUF_MASK+1-u,h=0;h<d;h++)n[c+h]=o.buf_[u+h];a-=d,c+=d,t-=d,u=0}for(h=0;h<a;h++)n[c+h]=o.buf_[u+h];if(t-=a,(c+=a)>=l)for(e.write(n,l),c-=l,h=0;h<c;h++)n[h]=n[l+h];for(;c+t>=l;){if(a=l-c,o.input_.read(n,c,a)<a)throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");e.write(n,l),t-=a,c=0}if(o.input_.read(n,c,t)<t)throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");o.reset()}}function H(e){var t=e.bit_pos_+7&-8;return 0==e.readBits(t-e.bit_pos_)}function U(e){var t=new n(e),s=new r(t);return P(s),O(s).meta_block_length}function W(e,t){var s=new n(e);null==t&&(t=U(e));var r=new Uint8Array(t),o=new i(r);return q(s,o),o.pos<o.buffer.length&&(o.buffer=o.buffer.subarray(0,o.pos)),o.buffer}function q(e,t){var s,n,i,l,h,p,x,b,_,S=0,C=0,k=0,E=0,T=[16,15,11,4],M=0,R=0,B=0,U=[new D(0,0),new D(0,0),new D(0,0)],W=128+r.READ_SIZE;n=(1<<(k=P(_=new r(e))))-16,l=(i=1<<k)-1,h=new Uint8Array(i+W+o.maxDictionaryWordLength),p=i,x=[],b=[];for(var q=0;q<3*w;q++)x[q]=new a(0,0),b[q]=new a(0,0);for(;!C;){var Z,K,Y,X,J,Q,$,ee,te,se=0,ne=[1<<28,1<<28,1<<28],ie=[0],re=[1,1,1],oe=[0,1,0,1,0,1],ae=[0],le=null,ce=null,ue=null,de=null,he=0,pe=null,fe=0,me=0,ge=0;for(s=0;s<3;++s)U[s].codes=null,U[s].htrees=null;_.readMoreInput();var ve=O(_);if(S+(se=ve.meta_block_length)>t.buffer.length){var ye=new Uint8Array(S+se);ye.set(t.buffer),t.buffer=ye}if(C=ve.input_end,Z=ve.is_uncompressed,ve.is_metadata)for(H(_);se>0;--se)_.readMoreInput(),_.readBits(8);else if(0!==se)if(Z)_.bit_pos_=_.bit_pos_+7&-8,G(t,se,S,h,l,_),S+=se;else{for(s=0;s<3;++s)re[s]=I(_)+1,re[s]>=2&&(N(re[s]+2,x,s*w,_),N(g,b,s*w,_),ne[s]=F(b,s*w,_),ae[s]=1);for(_.readMoreInput(),X=(1<<(K=_.readBits(2)))-1,J=(Y=j+(_.readBits(4)<<K))+(48<<K),ce=new Uint8Array(re[0]),s=0;s<re[0];++s)_.readMoreInput(),ce[s]=_.readBits(2)<<1;var xe=L(re[0]<<v,_);Q=xe.num_htrees,le=xe.context_map;var be=L(re[2]<<y,_);for($=be.num_htrees,ue=be.context_map,U[0]=new D(f,Q),U[1]=new D(m,re[1]),U[2]=new D(J,$),s=0;s<3;++s)U[s].decode(_);for(de=0,pe=0,ee=ce[ie[0]],me=c.lookupOffsets[ee],ge=c.lookupOffsets[ee+1],te=U[1].htrees[0];se>0;){var we,_e,Se,je,Ce,ke,Ee,Pe,Ie,Te,Oe,Ae;for(_.readMoreInput(),0===ne[1]&&(z(re[1],x,1,ie,oe,ae,_),ne[1]=F(b,w,_),te=U[1].htrees[ie[1]]),--ne[1],(_e=(we=A(U[1].codes,te,_))>>6)>=2?(_e-=2,Ee=-1):Ee=0,Se=u.kInsertRangeLut[_e]+(we>>3&7),je=u.kCopyRangeLut[_e]+(7&we),Ce=u.kInsertLengthPrefixCode[Se].offset+_.readBits(u.kInsertLengthPrefixCode[Se].nbits),ke=u.kCopyLengthPrefixCode[je].offset+_.readBits(u.kCopyLengthPrefixCode[je].nbits),R=h[S-1&l],B=h[S-2&l],Ie=0;Ie<Ce;++Ie)_.readMoreInput(),0===ne[0]&&(z(re[0],x,0,ie,oe,ae,_),ne[0]=F(b,0,_),de=ie[0]<<v,ee=ce[ie[0]],me=c.lookupOffsets[ee],ge=c.lookupOffsets[ee+1]),he=le[de+(c.lookup[me+R]|c.lookup[ge+B])],--ne[0],B=R,R=A(U[0].codes,U[0].htrees[he],_),h[S&l]=R,(S&l)===l&&t.write(h,i),++S;if((se-=Ce)<=0)break;if(Ee<0&&(_.readMoreInput(),0===ne[2]&&(z(re[2],x,2,ie,oe,ae,_),ne[2]=F(b,2*w,_),pe=ie[2]<<y),--ne[2],fe=ue[pe+(255&(ke>4?3:ke-2))],(Ee=A(U[2].codes,U[2].htrees[fe],_))>=Y&&(Ae=(Ee-=Y)&X,Ee=Y+((Me=(2+(1&(Ee>>=K))<<(Oe=1+(Ee>>1)))-4)+_.readBits(Oe)<<K)+Ae)),(Pe=V(Ee,T,M))<0)throw new Error("[BrotliDecompress] invalid distance");if(Te=S&l,Pe>(E=S<n&&E!==n?S:n)){if(!(ke>=o.minDictionaryWordLength&&ke<=o.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+S+" distance: "+Pe+" len: "+ke+" bytes left: "+se);var Me=o.offsetsByLength[ke],Ne=Pe-E-1,Fe=o.sizeBitsByLength[ke],Ve=Ne>>Fe;if(Me+=(Ne&(1<<Fe)-1)*ke,!(Ve<d.kNumTransforms))throw new Error("Invalid backward reference. pos: "+S+" distance: "+Pe+" len: "+ke+" bytes left: "+se);var Re=d.transformDictionaryWord(h,Te,Me,ke,Ve);if(S+=Re,se-=Re,(Te+=Re)>=p){t.write(h,i);for(var Be=0;Be<Te-p;Be++)h[Be]=h[p+Be]}}else{if(Ee>0&&(T[3&M]=Pe,++M),ke>se)throw new Error("Invalid backward reference. pos: "+S+" distance: "+Pe+" len: "+ke+" bytes left: "+se);for(Ie=0;Ie<ke;++Ie)h[S&l]=h[S-Pe&l],(S&l)===l&&t.write(h,i),++S,--se}R=h[S-1&l],B=h[S-2&l]}S&=1073741823}}t.write(h,S&l)}D.prototype.decode=function(e){var t,s=0;for(t=0;t<this.num_htrees;++t)this.htrees[t]=s,s+=N(this.alphabet_size,this.codes,s,e)},s.BrotliDecompressedSize=U,s.BrotliDecompressBuffer=W,s.BrotliDecompress=q,o.init()},{"./bit_reader":1,"./context":2,"./dictionary":6,"./huffman":7,"./prefix":9,"./streams":10,"./transform":11}],4:[function(e,t,s){var n=e("base64-js");s.init=function(){return(0,e("./decode").BrotliDecompressBuffer)(n.toByteArray(e("./dictionary.bin.js")))}},{"./decode":3,"./dictionary.bin.js":5,"base64-js":8}],5:[function(e,t,s){t.exports="W5/fcQLn5gKf2XUbAiQ1XULX+TZz6ADToDsgqk6qVfeC0e4m6OO2wcQ1J76ZBVRV1fRkEsdu//62zQsFEZWSTCnMhcsQKlS2qOhuVYYMGCkV0fXWEoMFbESXrKEZ9wdUEsyw9g4bJlEt1Y6oVMxMRTEVbCIwZzJzboK5j8m4YH02qgXYhv1V+PM435sLVxyHJihaJREEhZGqL03txGFQLm76caGO/ovxKvzCby/3vMTtX/459f0igi7WutnKiMQ6wODSoRh/8Lx1V3Q99MvKtwB6bHdERYRY0hStJoMjNeTsNX7bn+Y7e4EQ3bf8xBc7L0BsyfFPK43dGSXpL6clYC/I328h54/VYrQ5i0648FgbGtl837svJ35L3Mot/+nPlNpWgKx1gGXQYqX6n+bbZ7wuyCHKcUok12Xjqub7NXZGzqBx0SD+uziNf87t7ve42jxSKQoW3nyxVrWIGlFShhCKxjpZZ5MeGna0+lBkk+kaN8F9qFBAFgEogyMBdcX/T1W/WnMOi/7ycWUQloEBKGeC48MkiwqJkJO+12eQiOFHMmck6q/IjWW3RZlany23TBm+cNr/84/oi5GGmGBZWrZ6j+zykVozz5fT/QH/Da6WTbZYYPynVNO7kxzuNN2kxKKWche5WveitPKAecB8YcAHz/+zXLjcLzkdDSktNIDwZE9J9X+tto43oJy65wApM3mDzYtCwX9lM+N5VR3kXYo0Z3t0TtXfgBFg7gU8oN0Dgl7fZlUbhNll+0uuohRVKjrEd8egrSndy5/Tgd2gqjA4CAVuC7ESUmL3DZoGnfhQV8uwnpi8EGvAVVsowNRxPudck7+oqAUDkwZopWqFnW1riss0t1z6iCISVKreYGNvQcXv+1L9+jbP8cd/dPUiqBso2q+7ZyFBvENCkkVr44iyPbtOoOoCecWsiuqMSML5lv+vN5MzUr+Dnh73G7Q1YnRYJVYXHRJaNAOByiaK6CusgFdBPE40r0rvqXV7tksKO2DrHYXBTv8P5ysqxEx8VDXUDDqkPH6NNOV/a2WH8zlkXRELSa8P+heNyJBBP7PgsG1EtWtNef6/i+lcayzQwQCsduidpbKfhWUDgAEmyhGu/zVTacI6RS0zTABrOYueemnVa19u9fT23N/Ta6RvTpof5DWygqreCqrDAgM4LID1+1T/taU6yTFVLqXOv+/MuQOFnaF8vLMKD7tKWDoBdALgxF33zQccCcdHx8fKIVdW69O7qHtXpeGr9jbbpFA+qRMWr5hp0s67FPc7HAiLV0g0/peZlW7hJPYEhZyhpSwahnf93/tZgfqZWXFdmdXBzqxGHLrQKxoAY6fRoBhgCRPmmGueYZ5JexTVDKUIXzkG/fqp/0U3hAgQdJ9zumutK6nqWbaqvm1pgu03IYR+G+8s0jDBBz8cApZFSBeuWasyqo2OMDKAZCozS+GWSvL/HsE9rHxooe17U3s/lTE+VZAk4j3dp6uIGaC0JMiqR5CUsabPyM0dOYDR7Ea7ip4USZlya38YfPtvrX/tBlhHilj55nZ1nfN24AOAi9BVtz/Mbn8AEDJCqJgsVUa6nQnSxv2Fs7l/NlCzpfYEjmPrNyib/+t0ei2eEMjvNhLkHCZlci4WhBe7ePZTmzYqlY9+1pxtS4GB+5lM1BHT9tS270EWUDYFq1I0yY/fNiAk4bk9yBgmef/f2k6AlYQZHsNFnW8wBQxCd68iWv7/35bXfz3JZmfGligWAKRjIs3IpzxQ27vAglHSiOzCYzJ9L9A1CdiyFvyR66ucA4jKifu5ehwER26yV7HjKqn5Mfozo7Coxxt8LWWPT47BeMxX8p0Pjb7hZn+6bw7z3Lw+7653j5sI8CLu5kThpMlj1m4c2ch3jGcP1FsT13vuK3qjecKTZk2kHcOZY40UX+qdaxstZqsqQqgXz+QGF99ZJLqr3VYu4aecl1Ab5GmqS8k/GV5b95zxQ5d4EfXUJ6kTS/CXF/aiqKDOT1T7Jz5z0PwDUcwr9clLN1OJGCiKfqvah+h3XzrBOiLOW8wvn8gW6qE8vPxi+Efv+UH55T7PQFVMh6cZ1pZQlzJpKZ7P7uWvwPGJ6DTlR6wbyj3Iv2HyefnRo/dv7dNx+qaa0N38iBsR++Uil7Wd4afwDNsrzDAK4fXZwvEY/jdKuIKXlfrQd2C39dW7ntnRbIp9OtGy9pPBn/V2ASoi/2UJZfS+xuGLH8bnLuPlzdTNS6zdyk8Dt/h6sfOW5myxh1f+zf3zZ3MX/mO9cQPp5pOx967ZA6/pqHvclNfnUFF+rq+Vd7alKr6KWPcIDhpn6v2K6NlUu6LrKo8b/pYpU/Gazfvtwhn7tEOUuXht5rUJdSf6sLjYf0VTYDgwJ81yaqKTUYej/tbHckSRb/HZicwGJqh1mAHB/IuNs9dc9yuvF3D5Xocm3elWFdq5oEy70dYFit79yaLiNjPj5UUcVmZUVhQEhW5V2Z6Cm4HVH/R8qlamRYwBileuh07CbEce3TXa2JmXWBf+ozt319psboobeZhVnwhMZzOeQJzhpTDbP71Tv8HuZxxUI/+ma3XW6DFDDs4+qmpERwHGBd2edxwUKlODRdUWZ/g0GOezrbzOZauFMai4QU6GVHV6aPNBiBndHSsV4IzpvUiiYyg6OyyrL4Dj5q/Lw3N5kAwftEVl9rNd7Jk5PDij2hTH6wIXnsyXkKePxbmHYgC8A6an5Fob/KH5GtC0l4eFso+VpxedtJHdHpNm+Bvy4C79yVOkrZsLrQ3OHCeB0Ra+kBIRldUGlDCEmq2RwXnfyh6Dz+alk6eftI2n6sastRrGwbwszBeDRS/Fa/KwRJkCzTsLr/JCs5hOPE/MPLYdZ1F1fv7D+VmysX6NpOC8aU9F4Qs6HvDyUy9PvFGDKZ/P5101TYHFl8pjj6wm/qyS75etZhhfg0UEL4OYmHk6m6dO192AzoIyPSV9QedDA4Ml23rRbqxMPMxf7FJnDc5FTElVS/PyqgePzmwVZ26NWhRDQ+oaT7ly7ell4s3DypS1s0g+tOr7XHrrkZj9+x/mJBttrLx98lFIaRZzHz4aC7r52/JQ4VjHahY2/YVXZn/QC2ztQb/sY3uRlyc5vQS8nLPGT/n27495i8HPA152z7Fh5aFpyn1GPJKHuPL8Iw94DuW3KjkURAWZXn4EQy89xiKEHN1mk/tkM4gYDBxwNoYvRfE6LFqsxWJtPrDGbsnLMap3Ka3MUoytW0cvieozOmdERmhcqzG+3HmZv2yZeiIeQTKGdRT4HHNxekm1tY+/n06rGmFleqLscSERzctTKM6G9P0Pc1RmVvrascIxaO1CQCiYPE15bD7c3xSeW7gXxYjgxcrUlcbIvO0r+Yplhx0kTt3qafDOmFyMjgGxXu73rddMHpV1wMubyAGcf/v5dLr5P72Ta9lBF+fzMJrMycwv+9vnU3ANIl1cH9tfW7af8u0/HG0vV47jNFXzFTtaha1xvze/s8KMtCYucXc1nzfd/MQydUXn/b72RBt5wO/3jRcMH9BdhC/yctKBIveRYPrNpDWqBsO8VMmP+WvRaOcA4zRMR1PvSoO92rS7pYEv+fZfEfTMzEdM+6X5tLlyxExhqLRkms5EuLovLfx66de5fL2/yX02H52FPVwahrPqmN/E0oVXnsCKhbi/yRxX83nRbUKWhzYceXOntfuXn51NszJ6MO73pQf5Pl4in3ec4JU8hF7ppV34+mm9r1LY0ee/i1O1wpd8+zfLztE0cqBxggiBi5Bu95v9l3r9r/U5hweLn+TbfxowrWDqdJauKd8+q/dH8sbPkc9ttuyO94f7/XK/nHX46MPFLEb5qQlNPvhJ50/59t9ft3LXu7uVaWaO2bDrDCnRSzZyWvFKxO1+vT8MwwunR3bX0CkfPjqb4K9O19tn5X50PvmYpEwHtiW9WtzuV/s76B1zvLLNkViNd8ySxIl/3orfqP90TyTGaf7/rx8jQzeHJXdmh/N6YDvbvmTBwCdxfEQ1NcL6wNMdSIXNq7b1EUzRy1/Axsyk5p22GMG1b+GxFgbHErZh92wuvco0AuOLXct9hvw2nw/LqIcDRRmJmmZzcgUa7JpM/WV/S9IUfbF56TL2orzqwebdRD8nIYNJ41D/hz37Fo11p2Y21wzPcn713qVGhqtevStYfGH4n69OEJtPvbbLYWvscDqc3Hgnu166+tAyLnxrX0Y5zoYjV++1sI7t5kMr02KT/+uwtkc+rZLOf/qn/s3nYCf13Dg8/sB2diJgjGqjQ+TLhxbzyue2Ob7X6/9lUwW7a+lbznHzOYy8LKW1C/uRPbQY3KW/0gO9LXunHLvPL97afba9bFtc9hmz7GAttjVYlCvQAiOwAk/gC5+hkLEs6tr3AZKxLJtOEwk2dLxTYWsIB/j/ToWtIWzo906FrSG8iaqqqqqqiIiIiAgzMzMzNz+AyK+01/zi8n8S+Y1MjoRaQ80WU/G8MBlO+53VPXANrWm4wzGUVZUjjBJZVdhpcfkjsmcWaO+UEldXi1e+zq+HOsCpknYshuh8pOLISJun7TN0EIGW2xTnlOImeecnoGW4raxe2G1T3HEvfYUYMhG+gAFOAwh5nK8mZhwJMmN7r224QVsNFvZ87Z0qatvknklyPDK3Hy45PgVKXji52Wen4d4PlFVVYGnNap+fSpFbK90rYnhUc6n91Q3AY9E0tJOFrcfZtm/491XbcG/jsViUPPX76qmeuiz+qY1Hk7/1VPM405zWVuoheLUimpWYdVzCmUdKHebMdzgrYrb8mL2eeLSnRWHdonfZa8RsOU9F37w+591l5FLYHiOqWeHtE/lWrBHcRKp3uhtr8yXm8LU/5ms+NM6ZKsqu90cFZ4o58+k4rdrtB97NADFbwmEG7lXqvirhOTOqU14xuUF2myIjURcPHrPOQ4lmM3PeMg7bUuk0nnZi67bXsU6H8lhqIo8TaOrEafCO1ARK9PjC0QOoq2BxmMdgYB9G/lIb9++fqNJ2s7BHGFyBNmZAR8J3KCo012ikaSP8BCrf6VI0X5xdnbhHIO+B5rbOyB54zXkzfObyJ4ecwxfqBJMLFc7m59rNcw7hoHnFZ0b00zee+gTqvjm61Pb4xn0kcDX4jvHM0rBXZypG3DCKnD/Waa/ZtHmtFPgO5eETx+k7RrVg3aSwm2YoNXnCs3XPQDhNn+Fia6IlOOuIG6VJH7TP6ava26ehKHQa2T4N0tcZ9dPCGo3ZdnNltsHQbeYt5vPnJezV/cAeNypdml1vCHI8M81nSRP5Qi2+mI8v/sxiZru9187nRtp3f/42NemcONa+4eVC3PCZzc88aZh851CqSsshe70uPxeN/dmYwlwb3trwMrN1Gq8jbnApcVDx/yDPeYs5/7r62tsQ6lLg+DiFXTEhzR9dHqv0iT4tgj825W+H3XiRUNUZT2kR9Ri0+lp+UM3iQtS8uOE23Ly4KYtvqH13jghUntJRAewuzNLDXp8RxdcaA3cMY6TO2IeSFRXezeWIjCqyhsUdMYuCgYTZSKpBype1zRfq8FshvfBPc6BAQWl7/QxIDp3VGo1J3vn42OEs3qznws+YLRXbymyB19a9XBx6n/owcyxlEYyFWCi+kG9F+EyD/4yn80+agaZ9P7ay2Dny99aK2o91FkfEOY8hBwyfi5uwx2y5SaHmG+oq/zl1FX/8irOf8Y3vAcX/6uLP6A6nvMO24edSGPjQc827Rw2atX+z2bKq0CmW9mOtYnr5/AfDa1ZfPaXnKtlWborup7QYx+Or2uWb+N3N//2+yDcXMqIJdf55xl7/vsj4WoPPlxLxtVrkJ4w/tTe3mLdATOOYwxcq52w5Wxz5MbPdVs5O8/lhfE7dPj0bIiPQ3QV0iqm4m3YX8hRfc6jQ3fWepevMqUDJd86Z4vwM40CWHnn+WphsGHfieF02D3tmZvpWD+kBpNCFcLnZhcmmrhpGzzbdA+sQ1ar18OJD87IOKOFoRNznaHPNHUfUNhvY1iU+uhvEvpKHaUn3qK3exVVyX4joipp3um7FmYJWmA+WbIDshRpbVRx5/nqstCgy87FGbfVB8yDGCqS+2qCsnRwnSAN6zgzxfdB2nBT/vZ4/6uxb6oH8b4VBRxiIB93wLa47hG3w2SL/2Z27yOXJFwZpSJaBYyvajA7vRRYNKqljXKpt/CFD/tSMr18DKKbwB0xggBePatl1nki0yvqW5zchlyZmJ0OTxJ3D+fsYJs/mxYN5+Le5oagtcl+YsVvy8kSjI2YGvGjvmpkRS9W2dtXqWnVuxUhURm1lKtou/hdEq19VBp9OjGvHEQSmrpuf2R24mXGheil8KeiANY8fW1VERUfBImb64j12caBZmRViZHbeVMjCrPDg9A90IXrtnsYCuZtRQ0PyrKDjBNOsPfKsg1pA02gHlVr0OXiFhtp6nJqXVzcbfM0KnzC3ggOENPE9VBdmHKN6LYaijb4wXxJn5A0FSDF5j+h1ooZx885Jt3ZKzO5n7Z5WfNEOtyyPqQEnn7WLv5Fis3PdgMshjF1FRydbNyeBbyKI1oN1TRVrVK7kgsb/zjX4NDPIRMctVeaxVB38Vh1x5KbeJbU138AM5KzmZu3uny0ErygxiJF7GVXUrPzFxrlx1uFdAaZFDN9cvIb74qD9tzBMo7L7WIEYK+sla1DVMHpF0F7b3+Y6S+zjvLeDMCpapmJo1weBWuxKF3rOocih1gun4BoJh1kWnV/Jmiq6uOhK3VfKxEHEkafjLgK3oujaPzY6SXg8phhL4TNR1xvJd1Wa0aYFfPUMLrNBDCh4AuGRTbtKMc6Z1Udj8evY/ZpCuMAUefdo69DZUngoqE1P9A3PJfOf7WixCEj+Y6t7fYeHbbxUAoFV3M89cCKfma3fc1+jKRe7MFWEbQqEfyzO2x/wrO2VYH7iYdQ9BkPyI8/3kXBpLaCpU7eC0Yv/am/tEDu7HZpqg0EvHo0nf/R/gRzUWy33/HXMJQeu1GylKmOkXzlCfGFruAcPPhaGqZOtu19zsJ1SO2Jz4Ztth5cBX6mRQwWmDwryG9FUMlZzNckMdK+IoMJv1rOWnBamS2w2KHiaPMPLC15hCZm4KTpoZyj4E2TqC/P6r7/EhnDMhKicZZ1ZwxuC7DPzDGs53q8gXaI9kFTK+2LTq7bhwsTbrMV8Rsfua5lMS0FwbTitUVnVa1yTb5IX51mmYnUcP9wPr8Ji1tiYJeJV9GZTrQhF7vvdU2OTU42ogJ9FDwhmycI2LIg++03C6scYhUyUuMV5tkw6kGUoL+mjNC38+wMdWNljn6tGPpRES7veqrSn5TRuv+dh6JVL/iDHU1db4c9WK3++OrH3PqziF916UMUKn8G67nN60GfWiHrXYhUG3yVWmyYak59NHj8t1smG4UDiWz2rPHNrKnN4Zo1LBbr2/eF9YZ0n0blx2nG4X+EKFxvS3W28JESD+FWk61VCD3z/URGHiJl++7TdBwkCj6tGOH3qDb0QqcOF9Kzpj0HUb/KyFW3Yhj2VMKJqGZleFBH7vqvf7WqLC3XMuHV8q8a4sTFuxUtkD/6JIBvKaVjv96ndgruKZ1k/BHzqf2K9fLk7HGXANyLDd1vxkK/i055pnzl+zw6zLnwXlVYVtfmacJgEpRP1hbGgrYPVN6v2lG+idQNGmwcKXu/8xEj/P6qe/sB2WmwNp6pp8jaISMkwdleFXYK55NHWLTTbutSUqjBfDGWo/Yg918qQ+8BRZSAHZbfuNZz2O0sov1Ue4CWlVg3rFhM3Kljj9ksGd/NUhk4nH+a5UN2+1i8+NM3vRNp7uQ6sqexSCukEVlVZriHNqFi5rLm9TMWa4qm3idJqppQACol2l4VSuvWLfta4JcXy3bROPNbXOgdOhG47LC0CwW/dMlSx4Jf17aEU3yA1x9p+Yc0jupXgcMuYNku64iYOkGToVDuJvlbEKlJqsmiHbvNrIVZEH+yFdF8DbleZ6iNiWwMqvtMp/mSpwx5KxRrT9p3MAPTHGtMbfvdFhyj9vhaKcn3At8Lc16Ai+vBcSp1ztXi7rCJZx/ql7TXcclq6Q76UeKWDy9boS0WHIjUuWhPG8LBmW5y2rhuTpM5vsLt+HOLh1Yf0DqXa9tsfC+kaKt2htA0ai/L2i7RKoNjEwztkmRU0GfgW1TxUvPFhg0V7DdfWJk5gfrccpYv+MA9M0dkGTLECeYwUixRzjRFdmjG7zdZIl3XKB9YliNKI31lfa7i2JG5C8Ss+rHe0D7Z696/V3DEAOWHnQ9yNahMUl5kENWS6pHKKp2D1BaSrrHdE1w2qNxIztpXgUIrF0bm15YML4b6V1k+GpNysTahKMVrrS85lTVo9OGJ96I47eAy5rYWpRf/mIzeoYU1DKaQCTUVwrhHeyNoDqHel+lLxr9WKzhSYw7vrR6+V5q0pfi2k3L1zqkubY6rrd9ZLvSuWNf0uqnkY+FpTvFzSW9Fp0b9l8JA7THV9eCi/PY/SCZIUYx3BU2alj7Cm3VV6eYpios4b6WuNOJdYXUK3zTqj5CVG2FqYM4Z7CuIU0qO05XR0d71FHM0YhZmJmTRfLlXEumN82BGtzdX0S19t1e+bUieK8zRmqpa4Qc5TSjifmaQsY2ETLjhI36gMR1+7qpjdXXHiceUekfBaucHShAOiFXmv3sNmGQyU5iVgnoocuonQXEPTFwslHtS8R+A47StI9wj0iSrtbi5rMysczFiImsQ+bdFClnFjjpXXwMy6O7qfjOr8Fb0a7ODItisjnn3EQO16+ypd1cwyaAW5Yzxz5QknfMO7643fXW/I9y3U2xH27Oapqr56Z/tEzglj6IbT6HEHjopiXqeRbe5mQQvxtcbDOVverN0ZgMdzqRYRjaXtMRd56Q4cZSmdPvZJdSrhJ1D9zNXPqAEqPIavPdfubt5oke2kmv0dztIszSv2VYuoyf1UuopbsYb+uX9h6WpwjpgtZ6fNNawNJ4q8O3CFoSbioAaOSZMx2GYaPYB+rEb6qjQiNRFQ76TvwNFVKD+BhH9VhcKGsXzmMI7BptU/CNWolM7YzROvpFAntsiWJp6eR2d3GarcYShVYSUqhmYOWj5E96NK2WvmYNTeY7Zs4RUEdv9h9QT4EseKt6LzLrqEOs3hxAY1MaNWpSa6zZx8F3YOVeCYMS88W+CYHDuWe4yoc6YK+djDuEOrBR5lvh0r+Q9uM88lrjx9x9AtgpQVNE8r+3O6Gvw59D+kBF/UMXyhliYUtPjmvXGY6Dk3x+kEOW+GtdMVC4EZTqoS/jmR0P0LS75DOc/w2vnri97M4SdbZ8qeU7gg8DVbERkU5geaMQO3mYrSYyAngeUQqrN0C0/vsFmcgWNXNeidsTAj7/4MncJR0caaBUpbLK1yBCBNRjEv6KvuVSdpPnEMJdsRRtqJ+U8tN1gXA4ePHc6ZT0eviI73UOJF0fEZ8YaneAQqQdGphNvwM4nIqPnXxV0xA0fnCT+oAhJuyw/q8jO0y8CjSteZExwBpIN6SvNp6A5G/abi6egeND/1GTguhuNjaUbbnSbGd4L8937Ezm34Eyi6n1maeOBxh3PI0jzJDf5mh/BsLD7F2GOKvlA/5gtvxI3/eV4sLfKW5Wy+oio+es/u6T8UU+nsofy57Icb/JlZHPFtCgd/x+bwt3ZT+xXTtTtTrGAb4QehC6X9G+8YT+ozcLxDsdCjsuOqwPFnrdLYaFc92Ui0m4fr39lYmlCaqTit7G6O/3kWDkgtXjNH4BiEm/+jegQnihOtfffn33WxsFjhfMd48HT+f6o6X65j7XR8WLSHMFkxbvOYsrRsF1bowDuSQ18Mkxk4qz2zoGPL5fu9h2Hqmt1asl3Q3Yu3szOc+spiCmX4AETBM3pLoTYSp3sVxahyhL8eC4mPN9k2x3o0xkiixIzM3CZFzf5oR4mecQ5+ax2wCah3/crmnHoqR0+KMaOPxRif1oEFRFOO/kTPPmtww+NfMXxEK6gn6iU32U6fFruIz8Q4WgljtnaCVTBgWx7diUdshC9ZEa5yKpRBBeW12r/iNc/+EgNqmhswNB8SBoihHXeDF7rrWDLcmt3V8GYYN7pXRy4DZjj4DJuUBL5iC3DQAaoo4vkftqVTYRGLS3mHZ7gdmdTTqbgNN/PTdTCOTgXolc88MhXAEUMdX0iy1JMuk5wLsgeu0QUYlz2S4skTWwJz6pOm/8ihrmgGfFgri+ZWUK2gAPHgbWa8jaocdSuM4FJYoKicYX/ZSENkg9Q1ZzJfwScfVnR2DegOGwCvmogaWJCLQepv9WNlU6QgsmOwICquU28Mlk3d9W5E81lU/5Ez0LcX6lwKMWDNluNKfBDUy/phJgBcMnfkh9iRxrdOzgs08JdPB85Lwo+GUSb4t3nC+0byqMZtO2fQJ4U2zGIr49t/28qmmGv2RanDD7a3FEcdtutkW8twwwlUSpb8QalodddbBfNHKDQ828BdE7OBgFdiKYohLawFYqpybQoxATZrheLhdI7+0Zlu9Q1myRcd15r9UIm8K2LGJxqTegntqNVMKnf1a8zQiyUR1rxoqjiFxeHxqFcYUTHfDu7rhbWng6qOxOsI+5A1p9mRyEPdVkTlE24vY54W7bWc6jMgZvNXdfC9/9q7408KDsbdL7Utz7QFSDetz2picArzrdpL8OaCHC9V26RroemtDZ5yNM/KGkWMyTmfnInEvwtSD23UcFcjhaE3VKzkoaEMKGBft4XbIO6forTY1lmGQwVmKicBCiArDzE+1oIxE08fWeviIOD5TznqH+OoHadvoOP20drMPe5Irg3XBQziW2XDuHYzjqQQ4wySssjXUs5H+t3FWYMHppUnBHMx/nYIT5d7OmjDbgD9F6na3m4l7KdkeSO3kTEPXafiWinogag7b52taiZhL1TSvBFmEZafFq2H8khQaZXuitCewT5FBgVtPK0j4xUHPfUz3Q28eac1Z139DAP23dgki94EC8vbDPTQC97HPPSWjUNG5tWKMsaxAEMKC0665Xvo1Ntd07wCLNf8Q56mrEPVpCxlIMVlQlWRxM3oAfpgIc+8KC3rEXUog5g06vt7zgXY8grH7hhwVSaeuvC06YYRAwpbyk/Unzj9hLEZNs2oxPQB9yc+GnL6zTgq7rI++KDJwX2SP8Sd6YzTuw5lV/kU6eQxRD12omfQAW6caTR4LikYkBB1CMOrvgRr/VY75+NSB40Cni6bADAtaK+vyxVWpf9NeKJxN2KYQ8Q2xPB3K1s7fuhvWbr2XpgW044VD6DRs0qXoqKf1NFsaGvKJc47leUV3pppP/5VTKFhaGuol4Esfjf5zyCyUHmHthChcYh4hYLQF+AFWsuq4t0wJyWgdwQVOZiV0efRHPoK5+E1vjz9wTJmVkITC9oEstAsyZSgE/dbicwKr89YUxKZI+owD205Tm5lnnmDRuP/JnzxX3gMtlrcX0UesZdxyQqYQuEW4R51vmQ5xOZteUd8SJruMlTUzhtVw/Nq7eUBcqN2/HVotgfngif60yKEtoUx3WYOZlVJuJOh8u59fzSDPFYtQgqDUAGyGhQOAvKroXMcOYY0qjnStJR/G3aP+Jt1sLVlGV8POwr/6OGsqetnyF3TmTqZjENfnXh51oxe9qVUw2M78EzAJ+IM8lZ1MBPQ9ZWSVc4J3mWSrLKrMHReA5qdGoz0ODRsaA+vwxXA2cAM4qlfzBJA6581m4hzxItQw5dxrrBL3Y6kCbUcFxo1S8jyV44q//+7ASNNudZ6xeaNOSIUffqMn4A9lIjFctYn2gpEPAb3f7p3iIBN8H14FUGQ9ct2hPsL+cEsTgUrR47uJVN4n4wt/wgfwwHuOnLd4yobkofy8JvxSQTA7rMpDIc608SlZFJfZYcmbT0tAHpPE8MrtQ42siTUNWxqvWZOmvu9f0JPoQmg+6l7sZWwyfi6PXkxJnwBraUG0MYG4zYHQz3igy/XsFkx5tNQxw43qvI9dU3f0DdhOUlHKjmi1VAr2Kiy0HZwD8VeEbhh0OiDdMYspolQsYdSwjCcjeowIXNZVUPmL2wwIkYhmXKhGozdCJ4lRKbsf4NBh/XnQoS92NJEWOVOFs2YhN8c5QZFeK0pRdAG40hqvLbmoSA8xQmzOOEc7wLcme9JOsjPCEgpCwUs9E2DohMHRhUeyGIN6TFvrbny8nDuilsDpzrH5mS76APoIEJmItS67sQJ+nfwddzmjPxcBEBBCw0kWDwd0EZCkNeOD7NNQhtBm7KHL9mRxj6U1yWU2puzlIDtpYxdH4ZPeXBJkTGAJfUr/oTCz/iypY6uXaR2V1doPxJYlrw2ghH0D5gbrhFcIxzYwi4a/4hqVdf2DdxBp6vGYDjavxMAAoy+1+3aiO6S3W/QAKNVXagDtvsNtx7Ks+HKgo6U21B+QSZgIogV5Bt+BnXisdVfy9VyXV+2P5fMuvdpAjM1o/K9Z+XnE4EOCrue+kcdYHqAQ0/Y/OmNlQ6OI33jH/uD1RalPaHpJAm2av0/xtpqdXVKNDrc9F2izo23Wu7firgbURFDNX9eGGeYBhiypyXZft2j3hTvzE6PMWKsod//rEILDkzBXfi7xh0eFkfb3/1zzPK/PI5Nk3FbZyTl4mq5BfBoVoqiPHO4Q4QKZAlrQ3MdNfi3oxIjvsM3kAFv3fdufurqYR3PSwX/mpGy/GFI/B2MNPiNdOppWVbs/gjF3YH+QA9jMhlAbhvasAHstB0IJew09iAkmXHl1/TEj+jvHOpOGrPRQXbPADM+Ig2/OEcUcpgPTItMtW4DdqgfYVI/+4hAFWYjUGpOP/UwNuB7+BbKOcALbjobdgzeBQfjgNSp2GOpxzGLj70Vvq5cw2AoYENwKLUtJUX8sGRox4dVa/TN4xKwaKcl9XawQR/uNus700Hf17pyNnezrUgaY9e4MADhEDBpsJT6y1gDJs1q6wlwGhuUzGR7C8kgpjPyHWwsvrf3yn1zJEIRa5eSxoLAZOCR9xbuztxFRJW9ZmMYfCFJ0evm9F2fVnuje92Rc4Pl6A8bluN8MZyyJGZ0+sNSb//DvAFxC2BqlEsFwccWeAl6CyBcQV1bx4mQMBP1Jxqk1EUADNLeieS2dUFbQ/c/kvwItbZ7tx0st16viqd53WsRmPTKv2AD8CUnhtPWg5aUegNpsYgasaw2+EVooeNKmrW3MFtj76bYHJm5K9gpAXZXsE5U8DM8XmVOSJ1F1WnLy6nQup+jx52bAb+rCq6y9WXl2B2oZDhfDkW7H3oYfT/4xx5VncBuxMXP2lNfhUVQjSSzSRbuZFE4vFawlzveXxaYKVs8LpvAb8IRYF3ZHiRnm0ADeNPWocwxSzNseG7NrSEVZoHdKWqaGEBz1N8Pt7kFbqh3LYmAbm9i1IChIpLpM5AS6mr6OAPHMwwznVy61YpBYX8xZDN/a+lt7n+x5j4bNOVteZ8lj3hpAHSx1VR8vZHec4AHO9XFCdjZ9eRkSV65ljMmZVzaej2qFn/qt1lvWzNZEfHxK3qOJrHL6crr0CRzMox5f2e8ALBB4UGFZKA3tN6F6IXd32GTJXGQ7DTi9j/dNcLF9jCbDcWGKxoKTYblIwbLDReL00LRcDPMcQuXLMh5YzgtfjkFK1DP1iDzzYYVZz5M/kWYRlRpig1htVRjVCknm+h1M5LiEDXOyHREhvzCGpFZjHS0RsK27o2avgdilrJkalWqPW3D9gmwV37HKmfM3F8YZj2ar+vHFvf3B8CRoH4kDHIK9mrAg+owiEwNjjd9V+FsQKYR8czJrUkf7Qoi2YaW6EVDZp5zYlqiYtuXOTHk4fAcZ7qBbdLDiJq0WNV1l2+Hntk1mMWvxrYmc8kIx8G3rW36J6Ra4lLrTOCgiOihmow+YnzUT19jbV2B3RWqSHyxkhmgsBqMYWvOcUom1jDQ436+fcbu3xf2bbeqU/ca+C4DOKE+e3qvmeMqW3AxejfzBRFVcwVYPq4L0APSWWoJu+5UYX4qg5U6YTioqQGPG9XrnuZ/BkxuYpe6Li87+18EskyQW/uA+uk2rpHpr6hut2TlVbKgWkFpx+AZffweiw2+VittkEyf/ifinS/0ItRL2Jq3tQOcxPaWO2xrG68GdFoUpZgFXaP2wYVtRc6xYCfI1CaBqyWpg4bx8OHBQwsV4XWMibZZ0LYjWEy2IxQ1mZrf1/UNbYCJplWu3nZ4WpodIGVA05d+RWSS+ET9tH3RfGGmNI1cIY7evZZq7o+a0bjjygpmR3mVfalkT/SZGT27Q8QGalwGlDOS9VHCyFAIL0a1Q7JiW3saz9gqY8lqKynFrPCzxkU4SIfLc9VfCI5edgRhDXs0edO992nhTKHriREP1NJC6SROMgQ0xO5kNNZOhMOIT99AUElbxqeZF8A3xrfDJsWtDnUenAHdYWSwAbYjFqQZ+D5gi3hNK8CSxU9i6f6ClL9IGlj1OPMQAsr84YG6ijsJpCaGWj75c3yOZKBB9mNpQNPUKkK0D6wgLH8MGoyRxTX6Y05Q4AnYNXMZwXM4eij/9WpsM/9CoRnFQXGR6MEaY+FXvXEO3RO0JaStk6OXuHVATHJE+1W+TU3bSZ2ksMtqjO0zfSJCdBv7y2d8DMx6TfVme3q0ZpTKMMu4YL/t7ciTNtdDkwPogh3Cnjx7qk08SHwf+dksZ7M2vCOlfsF0hQ6J4ehPCaHTNrM/zBSOqD83dBEBCW/F/LEmeh0nOHd7oVl3/Qo/9GUDkkbj7yz+9cvvu+dDAtx8NzCDTP4iKdZvk9MWiizvtILLepysflSvTLFBZ37RLwiriqyRxYv/zrgFd/9XVHh/OmzBvDX4mitMR/lUavs2Vx6cR94lzAkplm3IRNy4TFfu47tuYs9EQPIPVta4P64tV+sZ7n3ued3cgEx2YK+QL5+xms6osk8qQbTyuKVGdaX9FQqk6qfDnT5ykxk0VK7KZ62b6DNDUfQlqGHxSMKv1P0XN5BqMeKG1P4Wp5QfZDUCEldppoX0U6ss2jIko2XpURKCIhfaOqLPfShdtS37ZrT+jFRSH2xYVV1rmT/MBtRQhxiO4MQ3iAGlaZi+9PWBEIXOVnu9jN1f921lWLZky9bqbM3J2MAAI9jmuAx3gyoEUa6P2ivs0EeNv/OR+AX6q5SW6l5HaoFuS6jr6yg9limu+P0KYKzfMXWcQSfTXzpOzKEKpwI3YGXZpSSy2LTlMgfmFA3CF6R5c9xWEtRuCg2ZPUQ2Nb6dRFTNd4TfGHrnEWSKHPuRyiJSDAZ+KX0VxmSHjGPbQTLVpqixia2uyhQ394gBMt7C3ZAmxn/DJS+l1fBsAo2Eir/C0jG9csd4+/tp12pPc/BVJGaK9mfvr7M/CeztrmCO5qY06Edi4xAGtiEhnWAbzLy2VEyazE1J5nPmgU4RpW4Sa0TnOT6w5lgt3/tMpROigHHmexBGAMY0mdcDbDxWIz41NgdD6oxgHsJRgr5RnT6wZAkTOcStU4NMOQNemSO7gxGahdEsC+NRVGxMUhQmmM0llWRbbmFGHzEqLM4Iw0H7577Kyo+Zf+2cUFIOw93gEY171vQaM0HLwpjpdRR6Jz7V0ckE7XzYJ0TmY9znLdzkva0vNrAGGT5SUZ5uaHDkcGvI0ySpwkasEgZPMseYcu85w8HPdSNi+4T6A83iAwDbxgeFcB1ZM2iGXzFcEOUlYVrEckaOyodfvaYSQ7GuB4ISE0nYJc15X/1ciDTPbPCgYJK55VkEor4LvzL9S2WDy4xj+6FOqVyTAC2ZNowheeeSI5hA/02l8UYkv4nk9iaVn+kCVEUstgk5Hyq+gJm6R9vG3rhuM904he/hFmNQaUIATB1y3vw+OmxP4X5Yi6A5I5jJufHCjF9+AGNwnEllZjUco6XhsO5T5+R3yxz5yLVOnAn0zuS+6zdj0nTJbEZCbXJdtpfYZfCeCOqJHoE2vPPFS6eRLjIJlG69X93nfR0mxSFXzp1Zc0lt/VafDaImhUMtbnqWVb9M4nGNQLN68BHP7AR8Il9dkcxzmBv8PCZlw9guY0lurbBsmNYlwJZsA/B15/HfkbjbwPddaVecls/elmDHNW2r4crAx43feNkfRwsaNq/yyJ0d/p5hZ6AZajz7DBfUok0ZU62gCzz7x8eVfJTKA8IWn45vINLSM1q+HF9CV9qF3zP6Ml21kPPL3CXzkuYUlnSqT+Ij4tI/od5KwIs+tDajDs64owN7tOAd6eucGz+KfO26iNcBFpbWA5732bBNWO4kHNpr9D955L61bvHCF/mwSrz6eQaDjfDEANqGMkFc+NGxpKZzCD2sj/JrHd+zlPQ8Iz7Q+2JVIiVCuCKoK/hlAEHzvk/Piq3mRL1rT/fEh9hoT5GJmeYswg1otiKydizJ/fS2SeKHVu6Z3JEHjiW8NaTQgP5xdBli8nC57XiN9hrquBu99hn9zqwo92+PM2JXtpeVZS0PdqR5mDyDreMMtEws+CpwaRyyzoYtfcvt9PJIW0fJVNNi/FFyRsea7peLvJrL+5b4GOXJ8tAr+ATk9f8KmiIsRhqRy0vFzwRV3Z5dZ3QqIU8JQ/uQpkJbjMUMFj2F9sCFeaBjI4+fL/oN3+LQgjI4zuAfQ+3IPIPFQBccf0clJpsfpnBxD84atwtupkGqKvrH7cGNl/QcWcSi6wcVDML6ljOgYbo+2BOAWNNjlUBPiyitUAwbnhFvLbnqw42kR3Yp2kv2dMeDdcGOX5kT4S6M44KHEB/SpCfl7xgsUvs+JNY9G3O2X/6FEt9FyAn57lrbiu+tl83sCymSvq9eZbe9mchL7MTf/Ta78e80zSf0hYY5eUU7+ff14jv7Xy8qjzfzzzvaJnrIdvFb5BLWKcWGy5/w7+vV2cvIfwHqdTB+RuJK5oj9mbt0Hy94AmjMjjwYNZlNS6uiyxNnwNyt3gdreLb64p/3+08nXkb92LTkkRgFOwk1oGEVllcOj5lv1hfAZywDows0944U8vUFw+A/nuVq/UCygsrmWIBnHyU01d0XJPwriEOvx/ISK6Pk4y2w0gmojZs7lU8TtakBAdne4v/aNxmMpK4VcGMp7si0yqsiolXRuOi1Z1P7SqD3Zmp0CWcyK4Ubmp2SXiXuI5nGLCieFHKHNRIlcY3Pys2dwMTYCaqlyWSITwr2oGXvyU3h1Pf8eQ3w1bnD7ilocVjYDkcXR3Oo1BXgMLTUjNw2xMVwjtp99NhSVc5aIWrDQT5DHPKtCtheBP4zHcw4dz2eRdTMamhlHhtfgqJJHI7NGDUw1XL8vsSeSHyKqDtqoAmrQqsYwvwi7HW3ojWyhIa5oz5xJTaq14NAzFLjVLR12rRNUQ6xohDnrWFb5bG9yf8aCD8d5phoackcNJp+Dw3Due3RM+5Rid7EuIgsnwgpX0rUWh/nqPtByMhMZZ69NpgvRTKZ62ViZ+Q7Dp5r4K0d7EfJuiy06KuIYauRh5Ecrhdt2QpTS1k1AscEHvapNbU3HL1F2TFyR33Wxb5MvH5iZsrn3SDcsxlnnshO8PLwmdGN+paWnQuORtZGX37uhFT64SeuPsx8UOokY6ON85WdQ1dki5zErsJGazcBOddWJEKqNPiJpsMD1GrVLrVY+AOdPWQneTyyP1hRX/lMM4ZogGGOhYuAdr7F/DOiAoc++cn5vlf0zkMUJ40Z1rlgv9BelPqVOpxKeOpzKdF8maK+1Vv23MO9k/8+qpLoxrIGH2EDQlnGmH8CD31G8QqlyQIcpmR5bwmSVw9/Ns6IHgulCRehvZ/+VrM60Cu/r3AontFfrljew74skYe2uyn7JKQtFQBQRJ9ryGic/zQOsbS4scUBctA8cPToQ3x6ZBQu6DPu5m1bnCtP8TllLYA0UTQNVqza5nfew3Mopy1GPUwG5jsl0OVXniPmAcmLqO5HG8Hv3nSLecE9oOjPDXcsTxoCBxYyzBdj4wmnyEV4kvFDunipS8SSkvdaMnTBN9brHUR8xdmmEAp/Pdqk9uextp1t+JrtXwpN/MG2w/qhRMpSNxQ1uhg/kKO30eQ/FyHUDkWHT8V6gGRU4DhDMxZu7xXij9Ui6jlpWmQCqJg3FkOTq3WKneCRYZxBXMNAVLQgHXSCGSqNdjebY94oyIpVjMYehAiFx/tqzBXFHZaL5PeeD74rW5OysFoUXY8sebUZleFTUa/+zBKVTFDopTReXNuZq47QjkWnxjirCommO4L/GrFtVV21EpMyw8wyThL5Y59d88xtlx1g1ttSICDwnof6lt/6zliPzgVUL8jWBjC0o2D6Kg+jNuThkAlaDJsq/AG2aKA//A76avw2KNqtv223P+Wq3StRDDNKFFgtsFukYt1GFDWooFVXitaNhb3RCyJi4cMeNjROiPEDb4k+G3+hD8tsg+5hhmSc/8t2JTSwYoCzAI75doq8QTHe+E/Tw0RQSUDlU+6uBeNN3h6jJGX/mH8oj0i3caCNsjvTnoh73BtyZpsflHLq6AfwJNCDX4S98h4+pCOhGKDhV3rtkKHMa3EG4J9y8zFWI4UsfNzC/Rl5midNn7gwoN9j23HGCQQ+OAZpTTPMdiVow740gIyuEtd0qVxMyNXhHcnuXRKdw5wDUSL358ktjMXmAkvIB73BLa1vfF9BAUZInPYJiwxqFWQQBVk7gQH4ojfUQ/KEjn+A/WR6EEe4CtbpoLe1mzHkajgTIoE0SLDHVauKhrq12zrAXBGbPPWKCt4DGedq3JyGRbmPFW32bE7T20+73BatV/qQhhBWfWBFHfhYWXjALts38FemnoT+9bn1jDBMcUMmYgSc0e7GQjv2MUBwLU8ionCpgV+Qrhg7iUIfUY6JFxR0Y+ZTCPM+rVuq0GNLyJXX6nrUTt8HzFBRY1E/FIm2EeVA9NcXrj7S6YYIChVQCWr/m2fYUjC4j0XLkzZ8GCSLfmkW3PB/xq+nlXsKVBOj7vTvqKCOMq7Ztqr3cQ+N8gBnPaAps+oGwWOkbuxnRYj/x/WjiDclVrs22xMK4qArE1Ztk1456kiJriw6abkNeRHogaPRBgbgF9Z8i/tbzWELN4CvbqtrqV9TtGSnmPS2F9kqOIBaazHYaJ9bi3AoDBvlZasMluxt0BDXfhp02Jn411aVt6S4TUB8ZgFDkI6TP6gwPY85w+oUQSsjIeXVminrwIdK2ZAawb8Se6XOJbOaliQxHSrnAeONDLuCnFejIbp4YDtBcQCwMsYiRZfHefuEJqJcwKTTJ8sx5hjHmJI1sPFHOr6W9AhZ2NAod38mnLQk1gOz2LCAohoQbgMbUK9RMEA3LkiF7Sr9tLZp6lkciIGhE2V546w3Mam53VtVkGbB9w0Yk2XiRnCmbpxmHr2k4eSC0RuNbjNsUfDIfc8DZvRvgUDe1IlKdZTzcT4ZGEb53dp8VtsoZlyXzLHOdAbsp1LPTVaHvLA0GYDFMbAW/WUBfUAdHwqLFAV+3uHvYWrCfhUOR2i89qvCBoOb48usAGdcF2M4aKn79k/43WzBZ+xR1L0uZfia70XP9soQReeuhZiUnXFDG1T8/OXNmssTSnYO+3kVLAgeiY719uDwL9FQycgLPessNihMZbAKG7qwPZyG11G1+ZA3jAX2yddpYfmaKBlmfcK/V0mwIRUDC0nJSOPUl2KB8h13F4dlVZiRhdGY5farwN+f9hEb1cRi41ZcGDn6Xe9MMSTOY81ULJyXIHSWFIQHstVYLiJEiUjktlHiGjntN5/btB8Fu+vp28zl2fZXN+dJDyN6EXhS+0yzqpl/LSJNEUVxmu7BsNdjAY0jVsAhkNuuY0E1G48ej25mSt+00yPbQ4SRCVkIwb6ISvYtmJRPz9Zt5dk76blf+lJwAPH5KDF+vHAmACLoCdG2Adii6dOHnNJnTmZtoOGO8Q1jy1veMw6gbLFToQmfJa7nT7Al89mRbRkZZQxJTKgK5Kc9INzmTJFp0tpAPzNmyL/F08bX3nhCumM/cR/2RPn9emZ3VljokttZD1zVWXlUIqEU7SLk5I0lFRU0AcENXBYazNaVzsVHA/sD3o9hm42wbHIRb/BBQTKzAi8s3+bMtpOOZgLdQzCYPfX3UUxKd1WYVkGH7lh/RBBgMZZwXzU9+GYxdBqlGs0LP+DZ5g2BWNh6FAcR944B+K/JTWI3t9YyVyRhlP4CCoUk/mmF7+r2pilVBjxXBHFaBfBtr9hbVn2zDuI0kEOG3kBx8CGdPOjX1ph1POOZJUO1JEGG0jzUy2tK4X0CgVNYhmkqqQysRNtKuPdCJqK3WW57kaV17vXgiyPrl4KEEWgiGF1euI4QkSFHFf0TDroQiLNKJiLbdhH0YBhriRNCHPxSqJmNNoketaioohqMglh6wLtEGWSM1EZbQg72h0UJAIPVFCAJOThpQGGdKfFovcwEeiBuZHN2Ob4uVM7+gwZLz1D9E7ta4RmMZ24OBBAg7Eh6dLXGofZ4U2TFOCQMKjwhVckjrydRS+YaqCw1kYt6UexuzbNEDyYLTZnrY1PzsHZJT4U+awO2xlqTSYu6n/U29O2wPXgGOEKDMSq+zTUtyc8+6iLp0ivav4FKx+xxVy4FxhIF/pucVDqpsVe2jFOfdZhTzLz2QjtzvsTCvDPU7bzDH2eXVKUV9TZ+qFtaSSxnYgYdXKwVreIgvWhT9eGDB2OvnWyPLfIIIfNnfIxU8nW7MbcH05nhlsYtaW9EZRsxWcKdEqInq1DiZPKCz7iGmAU9/ccnnQud2pNgIGFYOTAWjhIrd63aPDgfj8/sdlD4l+UTlcxTI9jbaMqqN0gQxSHs60IAcW3cH4p3V1aSciTKB29L1tz2eUQhRiTgTvmqc+sGtBNh4ky0mQJGsdycBREP+fAaSs1EREDVo5gvgi5+aCN7NECw30owbCc1mSpjiahyNVwJd1jiGgzSwfTpzf2c5XJvG/g1n0fH88KHNnf+u7ZiRMlXueSIsloJBUtW9ezvsx9grfsX/FNxnbxU1Lvg0hLxixypHKGFAaPu0xCD8oDTeFSyfRT6s8109GMUZL8m2xXp8X2dpPCWWdX84iga4BrTlOfqox4shqEgh/Ht4qRst52cA1xOIUuOxgfUivp6v5f8IVyaryEdpVk72ERAwdT4aoY1usBgmP+0m06Q216H/nubtNYxHaOIYjcach3A8Ez/zc0KcShhel0HCYjFsA0FjYqyJ5ZUH1aZw3+zWC0hLpM6GDfcAdn9fq2orPmZbW6XXrf+Krc9RtvII5jeD3dFoT1KwZJwxfUMvc5KLfn8rROW23Jw89sJ2a5dpB3qWDUBWF2iX8OCuKprHosJ2mflBR+Wqs86VvgI/XMnsqb97+VlKdPVysczPj8Jhzf+WCvGBHijAqYlavbF60soMWlHbvKT+ScvhprgeTln51xX0sF+Eadc/l2s2a5BgkVbHYyz0E85p0LstqH+gEGiR84nBRRFIn8hLSZrGwqjZ3E29cuGi+5Z5bp7EM8MWFa9ssS/vy4VrDfECSv7DSU84DaP0sXI3Ap4lWznQ65nQoTKRWU30gd7Nn8ZowUvGIx4aqyXGwmA/PB4qN8msJUODezUHEl0VP9uo+cZ8vPFodSIB4C7lQYjEFj8yu49C2KIV3qxMFYTevG8KqAr0TPlkbzHHnTpDpvpzziAiNFh8xiT7C/TiyH0EguUw4vxAgpnE27WIypV+uFN2zW7xniF/n75trs9IJ5amB1zXXZ1LFkJ6GbS/dFokzl4cc2mamVwhL4XU0Av5gDWAl+aEWhAP7t2VIwU+EpvfOPDcLASX7H7lZpXA2XQfbSlD4qU18NffNPoAKMNSccBfO9YVVgmlW4RydBqfHAV7+hrZ84WJGho6bNT0YMhxxLdOx/dwGj0oyak9aAkNJ8lRJzUuA8sR+fPyiyTgUHio5+Pp+YaKlHrhR41jY5NESPS3x+zTMe0S2HnLOKCOQPpdxKyviBvdHrCDRqO+l96HhhNBLXWv4yEMuEUYo8kXnYJM8oIgVM4XJ+xXOev4YbWeqsvgq0lmw4/PiYr9sYLt+W5EAuYSFnJEan8CwJwbtASBfLBBpJZiRPor/aCJBZsM+MhvS7ZepyHvU8m5WSmaZnxuLts8ojl6KkS8oSAHkq5GWlCB/NgJ5W3rO2Cj1MK7ahxsCrbTT3a0V/QQH+sErxV4XUWDHx0kkFy25bPmBMBQ6BU3HoHhhYcJB9JhP6NXUWKxnE0raXHB6U9KHpWdQCQI72qevp5fMzcm+AvC85rsynVQhruDA9fp9COe7N56cg1UKGSas89vrN+WlGLYTwi5W+0xYdKEGtGCeNJwXKDU0XqU5uQYnWsMwTENLGtbQMvoGjIFIEMzCRal4rnBAg7D/CSn8MsCvS+FDJJAzoiioJEhZJgAp9n2+1Yznr7H+6eT4YkJ9Mpj60ImcW4i4iHDLn9RydB8dx3QYm3rsX6n4VRrZDsYK6DCGwkwd5n3/INFEpk16fYpP6JtMQpqEMzcOfQGAHXBTEGzuLJ03GYQL9bmV2/7ExDlRf+Uvf1sM2frRtCWmal12pMgtonvSCtR4n1CLUZRdTHDHP1Otwqd+rcdlavnKjUB/OYXQHUJzpNyFoKpQK+2OgrEKpGyIgIBgn2y9QHnTJihZOpEvOKIoHAMGAXHmj21Lym39Mbiow4IF+77xNuewziNVBxr6KD5e+9HzZSBIlUa/AmsDFJFXeyrQakR3FwowTGcADJHcEfhGkXYNGSYo4dh4bxwLM+28xjiqkdn0/3R4UEkvcBrBfn/SzBc1XhKM2VPlJgKSorjDac96V2UnQYXl1/yZPT4DVelgO+soMjexXwYO58VLl5xInQUZI8jc3H2CPnCNb9X05nOxIy4MlecasTqGK6s2az4RjpF2cQP2G28R+7wDPsZDZC/kWtjdoHC7SpdPmqQrUAhMwKVuxCmYTiD9q/O7GHtZvPSN0CAUQN/rymXZNniYLlJDE70bsk6Xxsh4kDOdxe7A2wo7P9F5YvqqRDI6brf79yPCSp4I0jVoO4YnLYtX5nzspR5WB4AKOYtR1ujXbOQpPyYDvfRE3FN5zw0i7reehdi7yV0YDRKRllGCGRk5Yz+Uv1fYl2ZwrnGsqsjgAVo0xEUba8ohjaNMJNwTwZA/wBDWFSCpg1eUH8MYL2zdioxRTqgGQrDZxQyNzyBJPXZF0+oxITJAbj7oNC5JwgDMUJaM5GqlGCWc//KCIrI+aclEe4IA0uzv7cuj6GCdaJONpi13O544vbtIHBF+A+JeDFUQNy61Gki3rtyQ4aUywn6ru314/dkGiP8Iwjo0J/2Txs49ZkwEl4mx+iYUUO55I6pJzU4P+7RRs+DXZkyKUYZqVWrPF4I94m4Wx1tXeE74o9GuX977yvJ/jkdak8+AmoHVjI15V+WwBdARFV2IPirJgVMdsg1Pez2VNHqa7EHWdTkl3XTcyjG9BiueWFvQfXI8aWSkuuRmqi/HUuzqyvLJfNfs0txMqldYYflWB1BS31WkuPJGGwXUCpjiQSktkuBMWwHjSkQxeehqw1Kgz0Trzm7QbtgxiEPDVmWCNCAeCfROTphd1ZNOhzLy6XfJyG6Xgd5MCAZw4xie0Sj5AnY1/akDgNS9YFl3Y06vd6FAsg2gVQJtzG7LVq1OH2frbXNHWH/NY89NNZ4QUSJqL2yEcGADbT38X0bGdukqYlSoliKOcsSTuqhcaemUeYLLoI8+MZor2RxXTRThF1LrHfqf/5LcLAjdl4EERgUysYS2geE+yFdasU91UgUDsc2cSQ1ZoT9+uLOwdgAmifwQqF028INc2IQEDfTmUw3eZxvz7Ud1z3xc1PQfeCvfKsB9jOhRj7rFyb9XcDWLcYj0bByosychMezMLVkFiYcdBBQtvI6K0KRuOZQH2kBsYHJaXTkup8F0eIhO1/GcIwWKpr2mouB7g5TUDJNvORXPXa/mU8bh27TAZYBe2sKx4NSv5OjnHIWD2RuysCzBlUfeNXhDd2jxnHoUlheJ3jBApzURy0fwm2FwwsSU0caQGl0Kv8hopRQE211NnvtLRsmCNrhhpEDoNiZEzD2QdJWKbRRWnaFedXHAELSN0t0bfsCsMf0ktfBoXBoNA+nZN9+pSlmuzspFevmsqqcMllzzvkyXrzoA+Ryo1ePXpdGOoJvhyru+EBRsmOp7MXZ0vNUMUqHLUoKglg1p73sWeZmPc+KAw0pE2zIsFFE5H4192KwDvDxdxEYoDBDNZjbg2bmADTeUKK57IPD4fTYF4c6EnXx/teYMORBDtIhPJneiZny7Nv/zG+YmekIKCoxr6kauE2bZtBLufetNG0BtBY7f+/ImUypMBvdWu/Q7vTMRzw5aQGZWuc1V0HEsItFYMIBnoKGZ0xcarba/TYZq50kCaflFysYjA4EDKHqGdpYWdKYmm+a7TADmW35yfnOYpZYrkpVEtiqF0EujI00aeplNs2k+qyFZNeE3CDPL9P6b4PQ/kataHkVpLSEVGK7EX6rAa7IVNrvZtFvOA6okKvBgMtFDAGZOx88MeBcJ8AR3AgUUeIznAN6tjCUipGDZONm1FjWJp4A3QIzSaIOmZ7DvF/ysYYbM/fFDOV0jntAjRdapxJxL0eThpEhKOjCDDq2ks+3GrwxqIFKLe1WdOzII8XIOPGnwy6LKXVfpSDOTEfaRsGujhpS4hBIsMOqHbl16PJxc4EkaVu9wpEYlF/84NSv5Zum4drMfp9yXbzzAOJqqS4YkI4cBrFrC7bMPiCfgI3nNZAqkk3QOZqR+yyqx+nDQKBBBZ7QKrfGMCL+XpqFaBJU0wpkBdAhbR4hJsmT5aynlvkouoxm/NjD5oe6BzVIO9uktM+/5dEC5P7vZvarmuO/lKXz4sBabVPIATuKTrwbJP8XUkdM6uEctHKXICUJGjaZIWRbZp8czquQYfY6ynBUCfIU+gG6wqSIBmYIm9pZpXdaL121V7q0VjDjmQnXvMe7ysoEZnZL15B0SpxS1jjd83uNIOKZwu5MPzg2NhOx3xMOPYwEn2CUzbSrwAs5OAtrz3GAaUkJOU74XwjaYUmGJdZBS1NJVkGYrToINLKDjxcuIlyfVsKQSG/G4DyiO2SlQvJ0d0Ot1uOG5IFSAkq+PRVMgVMDvOIJMdqjeCFKUGRWBW9wigYvcbU7CQL/7meF2KZAaWl+4y9uhowAX7elogAvItAAxo2+SFxGRsHGEW9BnhlTuWigYxRcnVUBRQHV41LV+Fr5CJYV7sHfeywswx4XMtUx6EkBhR+q8AXXUA8uPJ73Pb49i9KG9fOljvXeyFj9ixgbo6CcbAJ7WHWqKHy/h+YjBwp6VcN7M89FGzQ04qbrQtgrOFybg3gQRTYG5xn73ArkfQWjCJROwy3J38Dx/D7jOa6BBNsitEw1wGq780EEioOeD+ZGp2J66ADiVGMayiHYucMk8nTK2zzT9CnEraAk95kQjy4k0GRElLL5YAKLQErJ5rp1eay9O4Fb6yJGm9U4FaMwPGxtKD6odIIHKoWnhKo1U8KIpFC+MVn59ZXmc7ZTBZfsg6FQ8W10YfTr4u0nYrpHZbZ1jXiLmooF0cOm0+mPnJBXQtepc7n0BqOipNCqI6yyloTeRShNKH04FIo0gcMk0H/xThyN4pPAWjDDkEp3lNNPRNVfpMI44CWRlRgViP64eK0JSRp0WUvCWYumlW/c58Vcz/yMwVcW5oYb9+26TEhwvbxiNg48hl1VI1UXTU//Eta+BMKnGUivctfL5wINDD0giQL1ipt6U7C9cd4+lgqY2lMUZ02Uv6Prs+ZEZer7ZfWBXVghlfOOrClwsoOFKzWEfz6RZu1eCs+K8fLvkts5+BX0gyrFYve0C3qHrn5U/Oh6D/CihmWIrY7HUZRhJaxde+tldu6adYJ+LeXupQw0XExC36RETdNFxcq9glMu4cNQSX9cqR/GQYp+IxUkIcNGWVU7ZtGa6P3XAyodRt0XeS3Tp01AnCh0ZbUh4VrSZeV9RWfSoWyxnY3hzcZ30G/InDq4wxRrEejreBxnhIQbkxenxkaxl+k7eLUQkUR6vKJ2iDFNGX3WmVA1yaOH+mvhBd+sE6vacQzFobwY5BqEAFmejwW5ne7HtVNolOUgJc8CsUxmc/LBi8N5mu9VsIA5HyErnS6zeCz7VLI9+n/hbT6hTokMXTVyXJRKSG2hd2labXTbtmK4fNH3IZBPreSA4FMeVouVN3zG5x9CiGpLw/3pceo4qGqp+rVp+z+7yQ98oEf+nyH4F3+J9IheDBa94Wi63zJbLBCIZm7P0asHGpIJt3PzE3m0S4YIWyXBCVXGikj8MudDPB/6Nm2v4IxJ5gU0ii0guy5SUHqGUYzTP0jIJU5E82RHUXtX4lDdrihBLdP1YaG1AGUC12rQKuIaGvCpMjZC9bWSCYnjDlvpWbkdXMTNeBHLKiuoozMGIvkczmP0aRJSJ8PYnLCVNhKHXBNckH79e8Z8Kc2wUej4sQZoH8qDRGkg86maW/ZQWGNnLcXmq3FlXM6ssR/3P6E/bHMvm6HLrv1yRixit25JsH3/IOr2UV4BWJhxXW5BJ6Xdr07n9kF3ZNAk6/Xpc5MSFmYJ2R7bdL8Kk7q1OU9Elg/tCxJ8giT27wSTySF0GOxg4PbYJdi/Nyia9Nn89CGDulfJemm1aiEr/eleGSN+5MRrVJ4K6lgyTTIW3i9cQ0dAi6FHt0YMbH3wDSAtGLSAccezzxHitt1QdhW36CQgPcA8vIIBh3/JNjf/Obmc2yzpk8edSlS4lVdwgW5vzbYEyFoF4GCBBby1keVNueHAH+evi+H7oOVfS3XuPQSNTXOONAbzJeSb5stwdQHl1ZjrGoE49I8+A9j3t+ahhQj74FCSWpZrj7wRSFJJnnwi1T9HL5qrCFW/JZq6P62XkMWTb+u4lGpKfmmwiJWx178GOG7KbrZGqyWwmuyKWPkNswkZ1q8uptUlviIi+AXh2bOOTOLsrtNkfqbQJeh24reebkINLkjut5r4d9GR/r8CBa9SU0UQhsnZp5cP+RqWCixRm7i4YRFbtZ4EAkhtNa6jHb6gPYQv7MKqkPLRmX3dFsK8XsRLVZ6IEVrCbmNDc8o5mqsogjAQfoC9Bc7R6gfw03m+lQpv6kTfhxscDIX6s0w+fBxtkhjXAXr10UouWCx3C/p/FYwJRS/AXRKkjOb5CLmK4XRe0+xeDDwVkJPZau52bzLEDHCqV0f44pPgKOkYKgTZJ33fmk3Tu8SdxJ02SHM8Fem5SMsWqRyi2F1ynfRJszcFKykdWlNqgDA/L9lKYBmc7Zu/q9ii1FPF47VJkqhirUob53zoiJtVVRVwMR34gV9iqcBaHbRu9kkvqk3yMpfRFG49pKKjIiq7h/VpRwPGTHoY4cg05X5028iHsLvUW/uz+kjPyIEhhcKUwCkJAwbR9pIEGOn8z6svAO8i89sJ3dL5qDWFYbS+HGPRMxYwJItFQN86YESeJQhn2urGiLRffQeLptDl8dAgb+Tp47UQPxWOw17OeChLN1WnzlkPL1T5O+O3Menpn4C3IY5LEepHpnPeZHbvuWfeVtPlkH4LZjPbBrkJT3NoRJzBt86CO0Xq59oQ+8dsm0ymRcmQyn8w71mhmcuEI5byuF+C88VPYly2sEzjlzAQ3vdn/1+Hzguw6qFNNbqenhZGbdiG6RwZaTG7jTA2X9RdXjDN9yj1uQpyO4Lx8KRAcZcbZMafp4wPOd5MdXoFY52V1A8M9hi3sso93+uprE0qYNMjkE22CvK4HuUxqN7oIz5pWuETq1lQAjqlSlqdD2Rnr/ggp/TVkQYjn9lMfYelk2sH5HPdopYo7MHwlV1or9Bxf+QCyLzm92vzG2wjiIjC/ZHEJzeroJl6bdFPTpZho5MV2U86fLQqxNlGIMqCGy+9WYhJ8ob1r0+Whxde9L2PdysETv97O+xVw+VNN1TZSQN5I6l9m5Ip6pLIqLm4a1B1ffH6gHyqT9p82NOjntRWGIofO3bJz5GhkvSWbsXueTAMaJDou99kGLqDlhwBZNEQ4mKPuDvVwSK4WmLluHyhA97pZiVe8g+JxmnJF8IkV/tCs4Jq/HgOoAEGR9tCDsDbDmi3OviUQpG5D8XmKcSAUaFLRXb2lmJTNYdhtYyfjBYZQmN5qT5CNuaD3BVnlkCk7bsMW3AtXkNMMTuW4HjUERSJnVQ0vsBGa1wo3Qh7115XGeTF3NTz8w0440AgU7c3bSXO/KMINaIWXd0oLpoq/0/QJxCQSJ9XnYy1W7TYLBJpHsVWD1ahsA7FjNvRd6mxCiHsm8g6Z0pnzqIpF1dHUtP2ITU5Z1hZHbu+L3BEEStBbL9XYvGfEakv1bmf+bOZGnoiuHEdlBnaChxYKNzB23b8sw8YyT7Ajxfk49eJIAvdbVkdFCe2J0gMefhQ0bIZxhx3fzMIysQNiN8PgOUKxOMur10LduigREDRMZyP4oGWrP1GFY4t6groASsZ421os48wAdnrbovNhLt7ScNULkwZ5AIZJTrbaKYTLjA1oJ3sIuN/aYocm/9uoQHEIlacF1s/TM1fLcPTL38O9fOsjMEIwoPKfvt7opuI9G2Hf/PR4aCLDQ7wNmIdEuXJ/QNL72k5q4NejAldPfe3UVVqzkys8YZ/jYOGOp6c+YzRCrCuq0M11y7TiN6qk7YXRMn/gukxrEimbMQjr3jwRM6dKVZ4RUfWQr8noPXLJq6yh5R3EH1IVOHESst/LItbG2D2vRsZRkAObzvQAAD3mb3/G4NzopI0FAiHfbpq0X72adg6SRj+8OHMShtFxxLZlf/nLgRLbClwl5WmaYSs+yEjkq48tY7Z2bE0N91mJwt+ua0NlRJIDh0HikF4UvSVorFj2YVu9YeS5tfvlVjPSoNu/Zu6dEUfBOT555hahBdN3Sa5Xuj2Rvau1lQNIaC944y0RWj9UiNDskAK1WoL+EfXcC6IbBXFRyVfX/WKXxPAwUyIAGW8ggZ08hcijKTt1YKnUO6QPvcrmDVAb0FCLIXn5id4fD/Jx4tw/gbXs7WF9b2RgXtPhLBG9vF5FEkdHAKrQHZAJC/HWvk7nvzzDzIXZlfFTJoC3JpGgLPBY7SQTjGlUvG577yNutZ1hTfs9/1nkSXK9zzKLRZ3VODeKUovJe0WCq1zVMYxCJMenmNzPIU2S8TA4E7wWmbNkxq9rI2dd6v0VpcAPVMxnDsvWTWFayyqvKZO7Z08a62i/oH2/jxf8rpmfO64in3FLiL1GX8IGtVE9M23yGsIqJbxDTy+LtaMWDaPqkymb5VrQdzOvqldeU0SUi6IirG8UZ3jcpRbwHa1C0Dww9G/SFX3gPvTJQE+kyz+g1BeMILKKO+olcHzctOWgzxYHnOD7dpCRtuZEXACjgqesZMasoPgnuDC4nUviAAxDc5pngjoAITIkvhKwg5d608pdrZcA+qn5TMT6Uo/QzBaOxBCLTJX3Mgk85rMfsnWx86oLxf7p2PX5ONqieTa/qM3tPw4ZXvlAp83NSD8F7+ZgctK1TpoYwtiU2h02HCGioH5tkVCqNVTMH5p00sRy2JU1qyDBP2CII/Dg4WDsIl+zgeX7589srx6YORRQMBfKbodbB743Tl4WLKOEnwWUVBsm94SOlCracU72MSyj068wdpYjyz1FwC2bjQnxnB6Mp/pZ+yyZXtguEaYB+kqhjQ6UUmwSFazOb+rhYjLaoiM+aN9/8KKn0zaCTFpN9eKwWy7/u4EHzO46TdFSNjMfn2iPSJwDPCFHc0I1+vjdAZw5ZjqR/uzi9Zn20oAa5JnLEk/EA3VRWE7J/XrupfFJPtCUuqHPpnlL7ISJtRpSVcB8qsZCm2QEkWoROtCKKxUh3yEcMbWYJwk6DlEBG0bZP6eg06FL3v6RPb7odGuwm7FN8fG4woqtB8e7M5klPpo97GoObNwt+ludTAmxyC5hmcFx+dIvEZKI6igFKHqLH01iY1o7903VzG9QGetyVx5RNmBYUU+zIuSva/yIcECUi4pRmE3VkF2avqulQEUY4yZ/wmNboBzPmAPey3+dSYtBZUjeWWT0pPwCz4Vozxp9xeClIU60qvEFMQCaPvPaA70WlOP9f/ey39macvpGCVa+zfa8gO44wbxpJUlC8GN/pRMTQtzY8Z8/hiNrU+Zq64ZfFGIkdj7m7abcK1EBtws1X4J/hnqvasPvvDSDYWN+QcQVGMqXalkDtTad5rYY0TIR1Eqox3czwPMjKPvF5sFv17Thujr1IZ1Ytl4VX1J0vjXKmLY4lmXipRAro0qVGEcXxEVMMEl54jQMd4J7RjgomU0j1ptjyxY+cLiSyXPfiEcIS2lWDK3ISAy6UZ3Hb5vnPncA94411jcy75ay6B6DSTzK6UTCZR9uDANtPBrvIDgjsfarMiwoax2OlLxaSoYn4iRgkpEGqEkwox5tyI8aKkLlfZ12lO11TxsqRMY89j5JaO55XfPJPDL1LGSnC88Re9Ai+Nu5bZjtwRrvFITUFHPR4ZmxGslQMecgbZO7nHk32qHxYkdvWpup07ojcMCaVrpFAyFZJJbNvBpZfdf39Hdo2kPtT7v0/f8R/B5Nz4f1t9/3zNM/7n6SUHfcWk5dfQFJvcJMgPolGCpOFb/WC0FGWU2asuQyT+rm88ZKZ78Cei/CAh939CH0JYbpZIPtxc2ufXqjS3pHH9lnWK4iJ7OjR/EESpCo2R3MYKyE7rHfhTvWho4cL1QdN4jFTyR6syMwFm124TVDDRXMNveI1Dp/ntwdz8k8kxw7iFSx6+Yx6O+1LzMVrN0BBzziZi9kneZSzgollBnVwBh6oSOPHXrglrOj+QmR/AESrhDpKrWT+8/AiMDxS/5wwRNuGQPLlJ9ovomhJWn8sMLVItQ8N/7IXvtD8kdOoHaw+vBSbFImQsv/OCAIui99E+YSIOMlMvBXkAt+NAZK8wB9Jf8CPtB+TOUOR+z71d/AFXpPBT6+A5FLjxMjLIEoJzrQfquvxEIi+WoUzGR1IzQFNvbYOnxb2PyQ0kGdyXKzW2axQL8lNAXPk6NEjqrRD1oZtKLlFoofrXw0dCNWASHzy+7PSzOUJ3XtaPZsxLDjr+o41fKuKWNmjiZtfkOzItvlV2MDGSheGF0ma04qE3TUEfqJMrXFm7DpK+27DSvCUVf7rbNoljPhha5W7KBqVq0ShUSTbRmuqPtQreVWH4JET5yMhuqMoSd4r/N8sDmeQiQQvi1tcZv7Moc7dT5X5AtCD6kNEGZOzVcNYlpX4AbTsLgSYYliiPyVoniuYYySxsBy5cgb3pD+EK0Gpb0wJg031dPgaL8JZt6sIvzNPEHfVPOjXmaXj4bd4voXzpZ5GApMhILgMbCEWZ2zwgdeQgjNHLbPIt+KqxRwWPLTN6HwZ0Ouijj4UF+Sg0Au8XuIKW0WxlexdrFrDcZJ8Shauat3X0XmHygqgL1nAu2hrJFb4wZXkcS+i36KMyU1yFvYv23bQUJi/3yQpqr/naUOoiEWOxckyq/gq43dFou1DVDaYMZK9tho7+IXXokBCs5GRfOcBK7g3A+jXQ39K4YA8PBRW4m5+yR0ZAxWJncjRVbITvIAPHYRt1EJ3YLiUbqIvoKHtzHKtUy1ddRUQ0AUO41vonZDUOW+mrszw+SW/6Q/IUgNpcXFjkM7F4CSSQ2ExZg85otsMs7kqsQD4OxYeBNDcSpifjMoLb7GEbGWTwasVObmB/bfPcUlq0wYhXCYEDWRW02TP5bBrYsKTGWjnWDDJ1F7zWai0zW/2XsCuvBQjPFcTYaQX3tSXRSm8hsAoDdjArK/OFp6vcWYOE7lizP0Yc+8p16i7/NiXIiiQTp7c7Xus925VEtlKAjUdFhyaiLT7VxDagprMFwix4wZ05u0qj7cDWFd0W9OYHIu3JbJKMXRJ1aYNovugg+QqRN7fNHSi26VSgBpn+JfMuPo3aeqPWik/wI5Rz3BWarPQX4i5+dM0npwVOsX+KsOhC7vDg+OJsz4Q5zlnIeflUWL6QYMbf9WDfLmosLF4Qev3mJiOuHjoor/dMeBpA9iKDkMjYBNbRo414HCxjsHrB4EXNbHzNMDHCLuNBG6Sf+J4MZ/ElVsDSLxjIiGsTPhw8BPjxbfQtskj+dyNMKOOcUYIRBEIqbazz3lmjlRQhplxq673VklMMY6597vu+d89ec/zq7Mi4gQvh87ehYbpOuZEXj5g/Q7S7BFDAAB9DzG35SC853xtWVcnZQoH54jeOqYLR9NDuwxsVthTV7V99n/B7HSbAytbEyVTz/5NhJ8gGIjG0E5j3griULUd5Rg7tQR+90hJgNQKQH2btbSfPcaTOfIexc1db1BxUOhM1vWCpLaYuKr3FdNTt/T3PWCpEUWDKEtzYrjpzlL/wri3MITKsFvtF8QVV/NhVo97aKIBgdliNc10dWdXVDpVtsNn+2UIolrgqdWA4EY8so0YvB4a+aLzMXiMAuOHQrXY0tr+CL10JbvZzgjJJuB1cRkdT7DUqTvnswVUp5kkUSFVtIIFYK05+tQxT6992HHNWVhWxUsD1PkceIrlXuUVRogwmfdhyrf6zzaL8+c0L7GXMZOteAhAVQVwdJh+7nrX7x4LaIIfz2F2v7Dg/uDfz2Fa+4gFm2zHAor8UqimJG3VTJtZEoFXhnDYXvxMJFc6ku2bhbCxzij2z5UNuK0jmp1mnvkVNUfR+SEmj1Lr94Lym75PO7Fs0MIr3GdsWXRXSfgLTVY0FLqba97u1In8NAcY7IC6TjWLigwKEIm43NxTdaVTv9mcKkzuzBkKd8x/xt1p/9BbP7Wyb4bpo1K1gnOpbLvKz58pWl3B55RJ/Z5mRDLPtNQg14jdOEs9+h/V5UVpwrAI8kGbX8KPVPDIMfIqKDjJD9UyDOPhjZ3vFAyecwyq4akUE9mDOtJEK1hpDyi6Ae87sWAClXGTiwPwN7PXWwjxaR79ArHRIPeYKTunVW24sPr/3HPz2IwH8oKH4OlWEmt4BLM6W5g4kMcYbLwj2usodD1088stZA7VOsUSpEVl4w7NMb1EUHMRxAxLF0CIV+0L3iZb+ekB1vSDSFjAZ3hfLJf7gFaXrOKn+mhR+rWw/eTXIcAgl4HvFuBg1LOmOAwJH3eoVEjjwheKA4icbrQCmvAtpQ0mXG0agYp5mj4Rb6mdQ+RV4QBPbxMqh9C7o8nP0Wko2ocnCHeRGhN1XVyT2b9ACsL+6ylUy+yC3QEnaKRIJK91YtaoSrcWZMMwxuM0E9J68Z+YyjA0g8p1PfHAAIROy6Sa04VXOuT6A351FOWhKfTGsFJ3RTJGWYPoLk5FVK4OaYR9hkJvezwF9vQN1126r6isMGXWTqFW+3HL3I/jurlIdDWIVvYY+s6yq7lrFSPAGRdnU7PVwY/SvWbZGpXzy3BQ2LmAJlrONUsZs4oGkly0V267xbD5KMY8woNNsmWG1VVgLCra8aQBBcI4DP2BlNwxhiCtHlaz6OWFoCW0vMR3ErrG7JyMjTSCnvRcsEHgmPnwA6iNpJ2DrFb4gLlhKJyZGaWkA97H6FFdwEcLT6DRQQL++fOkVC4cYGW1TG/3iK5dShRSuiBulmihqgjR45Vi03o2RbQbP3sxt90VxQ6vzdlGfkXmmKmjOi080JSHkLntjvsBJnv7gKscOaTOkEaRQqAnCA4HWtB4XnMtOhpRmH2FH8tTXrIjAGNWEmudQLCkcVlGTQ965Kh0H6ixXbgImQP6b42B49sO5C8pc7iRlgyvSYvcnH9FgQ3azLbQG2cUW96SDojTQStxkOJyOuDGTHAnnWkz29aEwN9FT8EJ4yhXOg+jLTrCPKeEoJ9a7lDXOjEr8AgX4BmnMQ668oW0zYPyQiVMPxKRHtpfnEEyaKhdzNVThlxxDQNdrHeZiUFb6NoY2KwvSb7BnRcpJy+/g/zAYx3fYSN5QEaVD2Y1VsNWxB0BSO12MRsRY8JLfAezRMz5lURuLUnG1ToKk6Q30FughqWN6gBNcFxP/nY/iv+iaUQOa+2Nuym46wtI/DvSfzSp1jEi4SdYBE7YhTiVV5cX9gwboVDMVgZp5YBQlHOQvaDNfcCoCJuYhf5kz5kwiIKPjzgpcRJHPbOhJajeoeRL53cuMahhV8Z7IRr6M4hW0JzT7mzaMUzQpm866zwM7Cs07fJYXuWvjAMkbe5O6V4bu71sOG6JQ4oL8zIeXHheFVavzxmlIyBkgc9IZlEDplMPr8xlcyss4pVUdwK1e7CK2kTsSdq7g5SHRAl3pYUB9Ko4fsh4qleOyJv1z3KFSTSvwEcRO/Ew8ozEDYZSqpfoVW9uhJfYrNAXR0Z3VmeoAD+rVWtwP/13sE/3ICX3HhDG3CMc476dEEC0K3umSAD4j+ZQLVdFOsWL2C1TH5+4KiSWH+lMibo+B55hR3Gq40G1n25sGcN0mEcoU2wN9FCVyQLBhYOu9aHVLWjEKx2JIUZi5ySoHUAI9b8hGzaLMxCZDMLhv8MkcpTqEwz9KFDpCpqQhVmsGQN8m24wyB82FAKNmjgfKRsXRmsSESovAwXjBIoMKSG51p6Um8b3i7GISs7kjTq/PZoioCfJzfKdJTN0Q45kQEQuh9H88M3yEs3DbtRTKALraM0YC8laiMiOOe6ADmTcCiREeAWZelBaEXRaSuj2lx0xHaRYqF65O0Lo5OCFU18A8cMDE4MLYm9w2QSr9NgQAIcRxZsNpA7UJR0e71JL+VU+ISWFk5I97lra8uGg7GlQYhGd4Gc6rxsLFRiIeGO4abP4S4ekQ1fiqDCy87GZHd52fn5aaDGuvOmIofrzpVwMvtbreZ/855OaXTRcNiNE0wzGZSxbjg26v8ko8L537v/XCCWP2MFaArJpvnkep0pA+O86MWjRAZPQRfznZiSIaTppy6m3p6HrNSsY7fDtz7Cl4V/DJAjQDoyiL2uwf1UHVd2AIrzBUSlJaTj4k6NL97a/GqhWKU9RUmjnYKpm2r+JYUcrkCuZKvcYvrg8pDoUKQywY9GDWg03DUFSirlUXBS5SWn/KAntnf0IdHGL/7mwXqDG+LZYjbEdQmqUqq4y54TNmWUP7IgcAw5816YBzwiNIJiE9M4lPCzeI/FGBeYy3p6IAmH4AjXXmvQ4Iy0Y82NTobcAggT2Cdqz6Mx4TdGoq9fn2etrWKUNFyatAHydQTVUQ2S5OWVUlugcNvoUrlA8cJJz9MqOa/W3iVno4zDHfE7zhoY5f5lRTVZDhrQbR8LS4eRLz8iPMyBL6o4PiLlp89FjdokQLaSBmKHUwWp0na5fE3v9zny2YcDXG/jfI9sctulHRbdkI5a4GOPJx4oAJQzVZ/yYAado8KNZUdEFs9ZPiBsausotXMNebEgr0dyopuqfScFJ3ODNPHgclACPdccwv0YJGQdsN2lhoV4HVGBxcEUeUX/alr4nqpcc1CCR3vR7g40zteQg/JvWmFlUE4mAiTpHlYGrB7w+U2KdSwQz2QJKBe/5eiixWipmfP15AFWrK8Sh1GBBYLgzki1wTMhGQmagXqJ2+FuqJ8f0XzXCVJFHQdMAw8xco11HhM347alrAu+wmX3pDFABOvkC+WPX0Uhg1Z5MVHKNROxaR84YV3s12UcM+70cJ460SzEaKLyh472vOMD3XnaK7zxZcXlWqenEvcjmgGNR2OKbI1s8U+iwiW+HotHalp3e1MGDy6BMVIvajnAzkFHbeVsgjmJUkrP9OAwnEHYXVBqYx3q7LvXjoVR0mY8h+ZaOnh053pdsGkmbqhyryN01eVHySr+CkDYkSMeZ1xjPNVM+gVLTDKu2VGsMUJqWO4TwPDP0VOg2/8ITbAUaMGb4LjL7L+Pi11lEVMXTYIlAZ/QHmTENjyx3kDkBdfcvvQt6tKk6jYFM4EG5UXDTaF5+1ZjRz6W7MdJPC+wTkbDUim4p5QQH3b9kGk2Bkilyeur8Bc20wm5uJSBO95GfYDI1EZipoRaH7uVveneqz43tlTZGRQ4a7CNmMHgXyOQQOL6WQkgMUTQDT8vh21aSdz7ERiZT1jK9F+v6wgFvuEmGngSvIUR2CJkc5tx1QygfZnAruONobB1idCLB1FCfO7N1ZdRocT8/Wye+EnDiO9pzqIpnLDl4bkaRKW+ekBVwHn46Shw1X0tclt/0ROijuUB4kIInrVJU4buWf4YITJtjOJ6iKdr1u+flgQeFH70GxKjhdgt/MrwfB4K/sXczQ+9zYcrD4dhY6qZhZ010rrxggWA8JaZyg2pYij8ieYEg1aZJkZK9O1Re7sB0iouf60rK0Gd+AYlp7soqCBCDGwfKeUQhCBn0E0o0GS6PdmjLi0TtCYZeqazqwN+yNINIA8Lk3iPDnWUiIPLGNcHmZDxfeK0iAdxm/T7LnN+gemRL61hHIc0NCAZaiYJR+OHnLWSe8sLrK905B5eEJHNlWq4RmEXIaFTmo49f8w61+NwfEUyuJAwVqZCLFcyHBKAcIVj3sNzfEOXzVKIndxHw+AR93owhbCxUZf6Gs8cz6/1VdrFEPrv330+9s6BtMVPJ3zl/Uf9rUi0Z/opexfdL3ykF76e999GPfVv8fJv/Y/+/5hEMon1tqNFyVRevV9y9/uIvsG3dbB8GRRrgaEXfhx+2xeOFt+cEn3RZanNxdEe2+B6MHpNbrRE53PlDifPvFcp4kO78ILR0T4xyW/WGPyBsqGdoA7zJJCu1TKbGfhnqgnRbxbB2B3UZoeQ2bz2sTVnUwokTcTU21RxN1PYPS3Sar7T0eRIsyCNowr9amwoMU/od9s2APtiKNL6ENOlyKADstAEWKA+sdKDhrJ6BOhRJmZ+QJbAaZ3/5Fq0/lumCgEzGEbu3yi0Y4I4EgVAjqxh4HbuQn0GrRhOWyAfsglQJAVL1y/6yezS2k8RE2MstJLh92NOB3GCYgFXznF4d25qiP4ZCyI4RYGesut6FXK6GwPpKK8WHEkhYui0AyEmr5Ml3uBFtPFdnioI8RiCooa7Z1G1WuyIi3nSNglutc+xY8BkeW3JJXPK6jd2VIMpaSxpVtFq+R+ySK9J6WG5Qvt+C+QH1hyYUOVK7857nFmyDBYgZ/o+AnibzNVqyYCJQvyDXDTK+iXdkA71bY7TL3bvuLxLBQ8kbTvTEY9aqkQ3+MiLWbEgjLzOH+lXgco1ERgzd80rDCymlpaRQbOYnKG/ODoFl46lzT0cjM5FYVvv0qLUbD5lyJtMUaC1pFlTkNONx6lliaX9o0i/1vws5bNKn5OuENQEKmLlcP4o2ZmJjD4zzd3Fk32uQ4uRWkPSUqb4LBe3EXHdORNB2BWsws5daRnMfNVX7isPSb1hMQdAJi1/qmDMfRUlCU74pmnzjbXfL8PVG8NsW6IQM2Ne23iCPIpryJjYbVnm5hCvKpMa7HLViNiNc+xTfDIaKm3jctViD8A1M9YPJNk003VVr4Zo2MuGW8vil8SLaGpPXqG7I4DLdtl8a4Rbx1Lt4w5Huqaa1XzZBtj208EJVGcmKYEuaeN27zT9EE6a09JerXdEbpaNgNqYJdhP1NdqiPKsbDRUi86XvvNC7rME5mrSQtrzAZVndtSjCMqd8BmaeGR4l4YFULGRBeXIV9Y4yxLFdyoUNpiy2IhePSWzBofYPP0eIa2q5JP4j9G8at/AqoSsLAUuRXtvgsqX/zYwsE+of6oSDbUOo4RMJw+DOUTJq+hnqwKim9Yy/napyZNTc2rCq6V9jHtJbxGPDwlzWj/Sk3zF/BHOlT/fSjSq7FqlPI1q6J+ru8Aku008SFINXZfOfnZNOvGPMtEmn2gLPt+H4QLA+/SYe4j398auzhKIp2Pok3mPC5q1IN1HgR+mnEfc4NeeHYwd2/kpszR3cBn7ni9NbIqhtSWFW8xbUJuUPVOeeXu3j0IGZmFNiwaNZ6rH4/zQ2ODz6tFxRLsUYZu1bfd1uIvfQDt4YD/efKYv8VF8bHGDgK22w2Wqwpi43vNCOXFJZCGMqWiPbL8mil6tsmOTXAWCyMCw73e2rADZj2IK6rqksM3EXF2cbLb4vjB14wa/yXK5vwU+05MzERJ5nXsXsW21o7M+gO0js2OyKciP5uF2iXyb2DiptwQeHeqygkrNsqVCSlldxBMpwHi1vfc8RKpP/4L3Lmpq6DZcvhDDfxTCE3splacTcOtXdK2g303dIWBVe2wD/Gvja1cClFQ67gw0t1ZUttsUgQ1Veky8oOpS6ksYEc4bqseCbZy766SvL3FodmnahlWJRgVCNjPxhL/fk2wyvlKhITH/VQCipOI0dNcRa5B1M5HmOBjTLeZQJy237e2mobwmDyJNHePhdDmiknvLKaDbShL+Is1XTCJuLQd2wmdJL7+mKvs294whXQD+vtd88KKk0DXP8B1Xu9J+xo69VOuFgexgTrcvI6SyltuLix9OPuE6/iRJYoBMEXxU4shQMf4Fjqwf1PtnJ/wWSZd29rhZjRmTGgiGTAUQqRz+nCdjeMfYhsBD5Lv60KILWEvNEHfmsDs2L0A252351eUoYxAysVaCJVLdH9QFWAmqJDCODUcdoo12+gd6bW2boY0pBVHWL6LQDK5bYWh1V8vFvi0cRpfwv7cJiMX3AZNJuTddHehTIdU0YQ/sQ1dLoF2xQPcCuHKiuCWOY30DHe1OwcClLAhqAKyqlnIbH/8u9ScJpcS4kgp6HKDUdiOgRaRGSiUCRBjzI5gSksMZKqy7Sd51aeg0tgJ+x0TH9YH2Mgsap9N7ENZdEB0bey2DMTrBA1hn56SErNHf3tKtqyL9b6yXEP97/rc+jgD2N1LNUH6RM9AzP3kSipr06RkKOolR7HO768jjWiH1X92jA7dkg7gcNcjqsZCgfqWw0tPXdLg20cF6vnQypg7gLtkazrHAodyYfENPQZsdfnjMZiNu4nJO97D1/sQE+3vNFzrSDOKw+keLECYf7RJwVHeP/j79833oZ0egonYB2FlFE5qj02B/LVOMJQlsB8uNg3Leg4qtZwntsOSNidR0abbZmAK4sCzvt8Yiuz2yrNCJoH5O8XvX/vLeR/BBYTWj0sOPYM/jyxRd5+/JziKAABaPcw/34UA3aj/gLZxZgRCWN6m4m3demanNgsx0P237/Q+Ew5VYnJPkyCY0cIVHoFn2Ay/e7U4P19APbPFXEHX94N6KhEMPG7iwB3+I+O1jd5n6VSgHegxgaSawO6iQCYFgDsPSMsNOcUj4q3sF6KzGaH/0u5PQoAj/8zq6Uc9MoNrGqhYeb2jQo0WlGlXjxtanZLS24/OIN5Gx/2g684BPDQpwlqnkFcxpmP/osnOXrFuu4PqifouQH0eF5qCkvITQbJw/Zvy5mAHWC9oU+cTiYhJmSfKsCyt1cGVxisKu+NymEQIAyaCgud/V09qT3nk/9s/SWsYtha7yNpzBIMM40rCSGaJ9u6lEkl00vXBiEt7p9P5IBCiavynEOv7FgLqPdeqxRiCwuFVMolSIUBcoyfUC2e2FJSAUgYdVGFf0b0Kn2EZlK97yyxrT2MVgvtRikfdaAW8RwEEfN+B7/eK8bBdp7URpbqn1xcrC6d2UjdsKbzCjBFqkKkoZt7Mrhg6YagE7spkqj0jOrWM+UGQ0MUlG2evP1uE1p2xSv4dMK0dna6ENcNUF+xkaJ7B764NdxLCpuvhblltVRAf7vK5qPttJ/9RYFUUSGcLdibnz6mf7WkPO3MkUUhR2mAOuGv8IWw5XG1ZvoVMnjSAZe6T7WYA99GENxoHkMiKxHlCuK5Gd0INrISImHQrQmv6F4mqU/TTQ8nHMDzCRivKySQ8dqkpQgnUMnwIkaAuc6/FGq1hw3b2Sba398BhUwUZSAIO8XZvnuLdY2n6hOXws+gq9BHUKcKFA6kz6FDnpxLPICa3qGhnc97bo1FT/XJk48LrkHJ2CAtBv0RtN97N21plfpXHvZ8gMJb7Zc4cfI6MbPwsW7AilCSXMFIEUEmir8XLEklA0ztYbGpTTGqttp5hpFTTIqUyaAIqvMT9A/x+Ji5ejA4Bhxb/cl1pUdOD6epd3yilIdO6j297xInoiBPuEDW2/UfslDyhGkQs7Wy253bVnlT+SWg89zYIK/9KXFl5fe+jow2rd5FXv8zDPrmfMXiUPt9QBO/iK4QGbX5j/7Rx1c1vzsY8ONbP3lVIaPrhL4+1QrECTN3nyKavGG0gBBtHvTKhGoBHgMXHStFowN+HKrPriYu+OZ05Frn8okQrPaaxoKP1ULCS/cmKFN3gcH7HQlVjraCeQmtjg1pSQxeuqXiSKgLpxc/1OiZsU4+n4lz4hpahGyWBURLi4642n1gn9qz9bIsaCeEPJ0uJmenMWp2tJmIwLQ6VSgDYErOeBCfSj9P4G/vI7oIF+l/n5fp956QgxGvur77ynawAu3G9MdFbJbu49NZnWnnFcQHjxRuhUYvg1U/e84N4JTecciDAKb/KYIFXzloyuE1eYXf54MmhjTq7B/yBToDzzpx3tJCTo3HCmVPYfmtBRe3mPYEE/6RlTIxbf4fSOcaKFGk4gbaUWe44hVk9SZzhW80yfW5QWBHxmtUzvMhfVQli4gZTktIOZd9mjJ5hsbmzttaHQB29Am3dZkmx3g/qvYocyhZ2PXAWsNQiIaf+Q8W/MWPIK7/TjvCx5q2XRp4lVWydMc2wIQkhadDB0xsnw/kSEyGjLKjI4coVIwtubTF3E7MJ6LS6UOsJKj82XVAVPJJcepfewbzE91ivXZvOvYfsmMevwtPpfMzGmC7WJlyW2j0jh7AF1JLmwEJSKYwIvu6DHc3YnyLH9ZdIBnQ+nOVDRiP+REpqv++typYHIvoJyICGA40d8bR7HR2k7do6UQTHF4oriYeIQbxKe4Th6+/l1BjUtS9hqORh3MbgvYrStXTfSwaBOmAVQZzpYNqsAmQyjY56MUqty3c/xH6GuhNvNaG9vGbG6cPtBM8UA3e8r51D0AR9kozKuGGSMgLz3nAHxDNnc7GTwpLj7/6HeWp1iksDeTjwCLpxejuMtpMnGJgsiku1sOACwQ9ukzESiDRN77YNESxR5LphOlcASXA5uIts1LnBIcn1J7BLWs49DMALSnuz95gdOrTZr0u1SeYHinno/pE58xYoXbVO/S+FEMMs5qyWkMnp8Q3ClyTlZP52Y9nq7b8fITPuVXUk9ohG5EFHw4gAEcjFxfKb3xuAsEjx2z1wxNbSZMcgS9GKyW3R6KwJONgtA64LTyxWm8Bvudp0M1FdJPEGopM4Fvg7G/hsptkhCfHFegv4ENwxPeXmYhxwZy7js+BeM27t9ODBMynVCLJ7RWcBMteZJtvjOYHb5lOnCLYWNEMKC59BA7covu1cANa2PXL05iGdufOzkgFqqHBOrgQVUmLEc+Mkz4Rq8O6WkNr7atNkH4M8d+SD1t/tSzt3oFql+neVs+AwEI5JaBJaxARtY2Z4mKoUqxds4UpZ0sv3zIbNoo0J4fihldQTX3XNcuNcZmcrB5LTWMdzeRuAtBk3cZHYQF6gTi3PNuDJ0nmR+4LPLoHvxQIxRgJ9iNNXqf2SYJhcvCtJiVWo85TsyFOuq7EyBPJrAdhEgE0cTq16FQXhYPJFqSfiVn0IQnPOy0LbU4BeG94QjdYNB0CiQ3QaxQqD2ebSMiNjaVaw8WaM4Z5WnzcVDsr4eGweSLa2DE3BWViaxhZFIcSTjgxNCAfelg+hznVOYoe5VqTYs1g7WtfTm3e4/WduC6p+qqAM8H4ZyrJCGpewThTDPe6H7CzX/zQ8Tm+r65HeZn+MsmxUciEWPlAVaK/VBaQBWfoG/aRL/jSZIQfep/89GjasWmbaWzeEZ2R1FOjvyJT37O9B8046SRSKVEnXWlBqbkb5XCS3qFeuE9xb9+frEknxWB5h1D/hruz2iVDEAS7+qkEz5Ot5agHJc7WCdY94Ws61sURcX5nG8UELGBAHZ3i+3VulAyT0nKNNz4K2LBHBWJcTBX1wzf+//u/j/9+//v87+9/l9Lbh/L/uyNYiTsWV2LwsjaA6MxTuzFMqmxW8Jw/+IppdX8t/Clgi1rI1SN0UC/r6tX/4lUc2VV1OQReSeCsjUpKZchw4XUcjHfw6ryCV3R8s6VXm67vp4n+lcPV9gJwmbKQEsmrJi9c2vkwrm8HFbVYNTaRGq8D91t9n5+U+aD/hNtN3HjC/nC/vUoGFSCkXP+NlRcmLUqLbiUBl4LYf1U/CCvwtd3ryCH8gUmGITAxiH1O5rnGTz7y1LuFjmnFGQ1UWuM7HwfXtWl2fPFKklYwNUpF2IL/TmaRETjQiM5SJacI+3Gv5MBU8lP5Io6gWkawpyzNEVGqOdx4YlO1dCvjbWFZWbCmeiFKPSlMKtKcMFLs/KQxtgAHi7NZNCQ32bBAW2mbHflVZ8wXKi1JKVHkW20bnYnl3dKWJeWJOiX3oKPBD6Zbi0ZvSIuWktUHB8qDR8DMMh1ZfkBL9FS9x5r0hBGLJ8pUCJv3NYH+Ae8p40mZWd5m5fhobFjQeQvqTT4VKWIYfRL0tfaXKiVl75hHReuTJEcqVlug+eOIIc4bdIydtn2K0iNZPsYWQvQio2qbO3OqAlPHDDOB7DfjGEfVF51FqqNacd6QmgFKJpMfLp5DHTv4wXlONKVXF9zTJpDV4m1sYZqJPhotcsliZM8yksKkCkzpiXt+EcRQvSQqmBS9WdWkxMTJXPSw94jqI3varCjQxTazjlMH8jTS8ilaW8014/vwA/LNa+YiFoyyx3s/KswP3O8QW1jtq45yTM/DX9a8M4voTVaO2ebvw1EooDw/yg6Y1faY+WwrdVs5Yt0hQ5EwRfYXSFxray1YvSM+kYmlpLG2/9mm1MfmbKHXr44Ih8nVKb1M537ZANUkCtdsPZ80JVKVKabVHCadaLXg+IV8i5GSwpZti0h6diTaKs9sdpUKEpd7jDUpYmHtiX33SKiO3tuydkaxA7pEc9XIQEOfWJlszj5YpL5bKeQyT7aZSBOamvSHl8xsWvgo26IP/bqk+0EJUz+gkkcvlUlyPp2kdKFtt7y5aCdks9ZJJcFp5ZWeaWKgtnXMN3ORwGLBE0PtkEIek5FY2aVssUZHtsWIvnljMVJtuVIjpZup/5VL1yPOHWWHkOMc6YySWMckczD5jUj2mlLVquFaMU8leGVaqeXis+aRRL8zm4WuBk6cyWfGMxgtr8useQEx7k/PvRoZyd9nde1GUCV84gMX8Ogu/BWezYPSR27llzQnA97oo0pYyxobYUJfsj+ysTm9zJ+S4pk0TGo9VTG0KjqYhTmALfoDZVKla2b5yhv241PxFaLJs3i05K0AAIdcGxCJZmT3ZdT7CliR7q+kur7WdQjygYtOWRL9B8E4s4LI8KpAj7bE0dg7DLOaX+MGeAi0hMMSSWZEz+RudXbZCsGYS0QqiXjH9XQbd8sCB+nIVTq7/T/FDS+zWY9q7Z2fdq1tdLb6v3hKKVDAw5gjj6o9r1wHFROdHc18MJp4SJ2Ucvu+iQ9EgkekW8VCM+psM6y+/2SBy8tNN4a3L1MzP+OLsyvESo5gS7IQOnIqMmviJBVc6zbVG1n8eXiA3j46kmvvtJlewwNDrxk4SbJOtP/TV/lIVK9ueShNbbMHfwnLTLLhbZuO79ec5XvfgRwLFK+w1r5ZWW15rVFZrE+wKqNRv5KqsLNfpGgnoUU6Y71NxEmN7MyqwqAQqoIULOw/LbuUB2+uE75gJt+kq1qY4LoxV+qR/zalupea3D5+WMeaRIn0sAI6DDWDh158fqUb4YhAxhREbUN0qyyJYkBU4V2KARXDT65gW3gRsiv7xSPYEKLwzgriWcWgPr0sbZnv7m1XHNFW6xPdGNZUdxFiUYlmXNjDVWuu7LCkX/nVkrXaJhiYktBISC2xgBXQnNEP+cptWl1eG62a7CPXrnrkTQ5BQASbEqUZWMDiZUisKyHDeLFOaJILUo5f6iDt4ZO8MlqaKLto0AmTHVVbkGuyPa1R/ywZsWRoRDoRdNMMHwYTsklMVnlAd2S0282bgMI8fiJpDh69OSL6K3qbo20KfpNMurnYGQSr/stFqZ7hYsxKlLnKAKhsmB8AIpEQ4bd/NrTLTXefsE6ChRmKWjXKVgpGoPs8GAicgKVw4K0qgDgy1A6hFq1WRat3fHF+FkU+b6H4NWpOU3KXTxrIb2qSHAb+qhm8hiSROi/9ofapjxhyKxxntPpge6KL5Z4+WBMYkAcE6+0Hd3Yh2zBsK2MV3iW0Y6cvOCroXlRb2MMJtdWx+3dkFzGh2Pe3DZ9QpSqpaR/rE1ImOrHqYYyccpiLC22amJIjRWVAherTfpQLmo6/K2pna85GrDuQPlH1Tsar8isAJbXLafSwOof4gg9RkAGm/oYpBQQiPUoyDk2BCQ1k+KILq48ErFo4WSRhHLq/y7mgw3+L85PpP6xWr6cgp9sOjYjKagOrxF148uhuaWtjet953fh1IQiEzgC+d2IgBCcUZqgTAICm2bR8oCjDLBsmg+ThyhfD+zBalsKBY1Ce54Y/t9cwfbLu9SFwEgphfopNA3yNxgyDafUM3mYTovZNgPGdd4ZFFOj1vtfFW3u7N+iHEN1HkeesDMXKPyoCDCGVMo4GCCD6PBhQ3dRZIHy0Y/3MaE5zU9mTCrwwnZojtE+qNpMSkJSpmGe0EzLyFelMJqhfFQ7a50uXxZ8pCc2wxtAKWgHoeamR2O7R+bq7IbPYItO0esdRgoTaY38hZLJ5y02oIVwoPokGIzxAMDuanQ1vn2WDQ00Rh6o5QOaCRu99fwDbQcN0XAuqkFpxT/cfz3slGRVokrNU0iqiMAJFEbKScZdmSkTUznC0U+MfwFOGdLgsewRyPKwBZYSmy6U325iUhBQNxbAC3FLKDV9VSOuQpOOukJ/GAmu/tyEbX9DgEp6dv1zoU0IqzpG6gssSjIYRVPGgU1QAQYRgIT8gEV0EXr1sqeh2I6rXjtmoCYyEDCe/PkFEi/Q48FuT29p557iN+LCwk5CK/CZ2WdAdfQZh2Z9QGrzPLSNRj5igUWzl9Vi0rCqH8G1Kp4QMLkuwMCAypdviDXyOIk0AHTM8HBYKh3b0/F+DxoNj4ZdoZfCpQVdnZarqoMaHWnMLNVcyevytGsrXQEoIbubqWYNo7NRHzdc0zvT21fWVirj7g36iy6pxogfvgHp1xH1Turbz8QyyHnXeBJicpYUctbzApwzZ1HT+FPEXMAgUZetgeGMwt4G+DHiDT2Lu+PT21fjJCAfV16a/Wu1PqOkUHSTKYhWW6PhhHUlNtWzFnA7MbY+r64vkwdpfNB2JfWgWXAvkzd42K4lN9x7Wrg4kIKgXCb4mcW595MCPJ/cTfPAMQMFWwnqwde4w8HZYJFpQwcSMhjVz4B8p6ncSCN1X4klxoIH4BN2J6taBMj6lHkAOs8JJAmXq5xsQtrPIPIIp/HG6i21xMGcFgqDXSRF0xQg14d2uy6HgKE13LSvQe52oShF5Jx1R6avyL4thhXQZHfC94oZzuPUBKFYf1VvDaxIrtV6dNGSx7DO0i1p6CzBkuAmEqyWceQY7F9+U0ObYDzoa1iKao/cOD/v6Q9gHrrr1uCeOk8fST9MG23Ul0KmM3r+Wn6Hi6WAcL7gEeaykicvgjzkjSwFsAXIR81Zx4QJ6oosVyJkCcT+4xAldCcihqvTf94HHUPXYp3REIaR4dhpQF6+FK1H0i9i7Pvh8owu3lO4PT1iuqu+DkL2Bj9+kdfGAg2TXw03iNHyobxofLE2ibjsYDPgeEQlRMR7afXbSGQcnPjI2D+sdtmuQ771dbASUsDndU7t58jrrNGRzISvwioAlHs5FA+cBE5Ccznkd8NMV6BR6ksnKLPZnMUawRDU1MZ/ib3xCdkTblHKu4blNiylH5n213yM0zubEie0o4JhzcfAy3H5qh2l17uLooBNLaO+gzonTH2uF8PQu9EyH+pjGsACTMy4cHzsPdymUSXYJOMP3yTkXqvO/lpvt0cX5ekDEu9PUfBeZODkFuAjXCaGdi6ew4qxJ8PmFfwmPpkgQjQlWqomFY6UkjmcnAtJG75EVR+NpzGpP1Ef5qUUbfowrC3zcSLX3BxgWEgEx/v9cP8H8u1Mvt9/rMDYf6sjwU1xSOPBgzFEeJLMRVFtKo5QHsUYT8ZRLCah27599EuqoC9PYjYO6aoAMHB8X1OHwEAYouHfHB3nyb2B+SnZxM/vw/bCtORjLMSy5aZoEpvgdGvlJfNPFUu/p7Z4VVK1hiI0/UTuB3ZPq4ohEbm7Mntgc1evEtknaosgZSwnDC2BdMmibpeg48X8Ixl+/8+xXdbshQXUPPvx8jT3fkELivHSmqbhblfNFShWAyQnJ3WBU6SMYSIpTDmHjdLVAdlADdz9gCplZw6mTiHqDwIsxbm9ErGusiVpg2w8Q3khKV/R9Oj8PFeF43hmW/nSd99nZzhyjCX3QOZkkB6BsH4H866WGyv9E0hVAzPYah2tkRfQZMmP2rinfOeQalge0ovhduBjJs9a1GBwReerceify49ctOh5/65ATYuMsAkVltmvTLBk4oHpdl6i+p8DoNj4Fb2vhdFYer2JSEilEwPd5n5zNoGBXEjreg/wh2NFnNRaIUHSOXa4eJRwygZoX6vnWnqVdCRT1ARxeFrNBJ+tsdooMwqnYhE7zIxnD8pZH+P0Nu1wWxCPTADfNWmqx626IBJJq6NeapcGeOmbtXvl0TeWG0Y7OGGV4+EHTtNBIT5Wd0Bujl7inXgZgfXTM5efD3qDTJ54O9v3Bkv+tdIRlq1kXcVD0BEMirmFxglNPt5pedb1AnxuCYMChUykwsTIWqT23XDpvTiKEru1cTcEMeniB+HQDehxPXNmkotFdwUPnilB/u4Nx5Xc6l8J9jH1EgKZUUt8t8cyoZleDBEt8oibDmJRAoMKJ5Oe9CSWS5ZMEJvacsGVdXDWjp/Ype5x0p9PXB2PAwt2LRD3d+ftNgpuyvxlP8pB84oB1i73vAVpwyrmXW72hfW6Dzn9Jkj4++0VQ4d0KSx1AsDA4OtXXDo63/w+GD+zC7w5SJaxsmnlYRQ4dgdjA7tTl2KNLnpJ+mvkoDxtt1a4oPaX3EVqj96o9sRKBQqU7ZOiupeAIyLMD+Y3YwHx30XWHB5CQiw7q3mj1EDlP2eBsZbz79ayUMbyHQ7s8gu4Lgip1LiGJj7NQj905/+rgUYKAA5qdrlHKIknWmqfuR+PB8RdBkDg/NgnlT89G72h2NvySnj7UyBwD+mi/IWs1xWbxuVwUIVXun5cMqBtFbrccI+DILjsVQg6eeq0itiRfedn89CvyFtpkxaauEvSANuZmB1p8FGPbU94J9medwsZ9HkUYjmI7OH5HuxendLbxTaYrPuIfE2ffXFKhoNBUp33HsFAXmCV/Vxpq5AYgFoRr5Ay93ZLRlgaIPjhZjXZZChT+aE5iWAXMX0oSFQEtwjiuhQQItTQX5IYrKfKB+queTNplR1Hoflo5/I6aPPmACwQCE2jTOYo5Dz1cs7Sod0KTG/3kEDGk3kUaUCON19xSJCab3kNpWZhSWkO8l+SpW70Wn3g0ciOIJO5JXma6dbos6jyisuxXwUUhj2+1uGhcvuliKtWwsUTw4gi1c/diEEpZHoKoxTBeMDmhPhKTx7TXWRakV8imJR355DcIHkR9IREHxohP4TbyR5LtFU24umRPRmEYHbpe1LghyxPx7YgUHjNbbQFRQhh4KeU1EabXx8FS3JAxp2rwRDoeWkJgWRUSKw6gGP5U2PuO9V4ZuiKXGGzFQuRuf+tkSSsbBtRJKhCi3ENuLlXhPbjTKD4djXVnfXFds6Zb+1XiUrRfyayGxJq1+SYBEfbKlgjiSmk0orgTqzSS+DZ5rTqsJbttiNtp+KMqGE2AHGFw6jQqM5vD6vMptmXV9OAjq49Uf/Lx9Opam+Hn5O9p8qoBBAQixzQZ4eNVkO9sPzJAMyR1y4/RCQQ1s0pV5KAU5sKLw3tkcFbI/JqrjCsK4Mw+W8aod4lioYuawUiCyVWBE/qPaFi5bnkgpfu/ae47174rI1fqQoTbW0HrU6FAejq7ByM0V4zkZTg02/YJK2N7hUQRCeZ4BIgSEqgD8XsjzG6LIsSbuHoIdz/LhFzbNn1clci1NHWJ0/6/O8HJMdIpEZbqi1RrrFfoo/rI/7ufm2MPG5lUI0IYJ4MAiHRTSOFJ2oTverFHYXThkYFIoyFx6rMYFgaOKM4xNWdlOnIcKb/suptptgTOTdVIf4YgdaAjJnIAm4qNNHNQqqAzvi53GkyRCEoseUBrHohZsjUbkR8gfKtc/+Oa72lwxJ8Mq6HDfDATbfbJhzeIuFQJSiw1uZprHlzUf90WgqG76zO0eCB1WdPv1IT6sNxxh91GEL2YpgC97ikFHyoaH92ndwduqZ6IYjkg20DX33MWdoZk7QkcKUCgisIYslOaaLyvIIqRKWQj16jE1DlQWJJaPopWTJjXfixEjRJJo8g4++wuQjbq+WVYjsqCuNIQW3YjnxKe2M5ZKEqq+cX7ZVgnkbsU3RWIyXA1rxv4kGersYJjD//auldXGmcEbcfTeF16Y1708FB1HIfmWv6dSFi6oD4E+RIjCsEZ+kY7dKnwReJJw3xCjKvi3kGN42rvyhUlIz0Bp+fNSV5xwFiuBzG296e5s/oHoFtUyUplmPulIPl+e1CQIQVtjlzLzzzbV+D/OVQtYzo5ixtMi5BmHuG4N/uKfJk5UIREp7+12oZlKtPBomXSzAY0KgtbPzzZoHQxujnREUgBU+O/jKKhgxVhRPtbqyHiUaRwRpHv7pgRPyUrnE7fYkVblGmfTY28tFCvlILC04Tz3ivkNWVazA+OsYrxvRM/hiNn8Fc4bQBeUZABGx5S/xFf9Lbbmk298X7iFg2yeimvsQqqJ+hYbt6uq+Zf9jC+Jcwiccd61NKQtFvGWrgJiHB5lwi6fR8KzYS7EaEHf/ka9EC7H8D+WEa3TEACHBkNSj/cXxFeq4RllC+fUFm2xtstYLL2nos1DfzsC9vqDDdRVcPA3Ho95aEQHvExVThXPqym65llkKlfRXbPTRiDepdylHjmV9YTWAEjlD9DdQnCem7Aj/ml58On366392214B5zrmQz/9ySG2mFqEwjq5sFl5tYJPw5hNz8lyZPUTsr5E0F2C9VMPnZckWP7+mbwp/BiN7f4kf7vtGnZF2JGvjK/sDX1RtcFY5oPQnE4lIAYV49U3C9SP0LCY/9i/WIFK9ORjzM9kG/KGrAuwFmgdEpdLaiqQNpCTGZVuAO65afkY1h33hrqyLjZy92JK3/twdj9pafFcwfXONmPQWldPlMe7jlP24Js0v9m8bIJ9TgS2IuRvE9ZVRaCwSJYOtAfL5H/YS4FfzKWKbek+GFulheyKtDNlBtrdmr+KU+ibHTdalzFUmMfxw3f36x+3cQbJLItSilW9cuvZEMjKw987jykZRlsH/UI+HlKfo2tLwemBEeBFtmxF2xmItA/dAIfQ+rXnm88dqvXa+GapOYVt/2waFimXFx3TC2MUiOi5/Ml+3rj/YU6Ihx2hXgiDXFsUeQkRAD6wF3SCPi2flk7XwKAA4zboqynuELD312EJ88lmDEVOMa1W/K/a8tGylZRMrMoILyoMQzzbDJHNZrhH77L9qSC42HVmKiZ5S0016UTp83gOhCwz9XItK9fgXfK3F5d7nZCBUekoLxrutQaPHa16Rjsa0gTrzyjqTnmcIcrxg6X6dkKiucudc0DD5W4pJPf0vuDW8r5/uw24YfMuxFRpD2ovT2mFX79xH6Jf+MVdv2TYqR6/955QgVPe3JCD/WjAYcLA9tpXgFiEjge2J5ljeI/iUzg91KQuHkII4mmHZxC3XQORLAC6G7uFn5LOmlnXkjFdoO976moNTxElS8HdxWoPAkjjocDR136m2l+f5t6xaaNgdodOvTu0rievnhNAB79WNrVs6EsPgkgfahF9gSFzzAd+rJSraw5Mllit7vUP5YxA843lUpu6/5jAR0RvH4rRXkSg3nE+O5GFyfe+L0s5r3k05FyghSFnKo4TTgs07qj4nTLqOYj6qaW9knJTDkF5OFMYbmCP+8H16Ty482OjvERV6OFyw043L9w3hoJi408sR+SGo1WviXUu8d7qS+ehKjpKwxeCthsm2LBFSFeetx0x4AaKPxtp3CxdWqCsLrB1s/j5TAhc1jNZsXWl6tjo/WDoewxzg8T8NnhZ1niUwL/nhfygLanCnRwaFGDyLw+sfZhyZ1UtYTp8TYB6dE7R3VsKKH95CUxJ8u8N+9u2/9HUNKHW3x3w5GQrfOPafk2w5qZq8MaHT0ebeY3wIsp3rN9lrpIsW9c1ws3VNV+JwNz0Lo9+V7zZr6GD56We6gWVIvtmam5GPPkVAbr74r6SwhuL+TRXtW/0pgyX16VNl4/EAD50TnUPuwrW6OcUO2VlWXS0inq872kk7GUlW6o/ozFKq+Sip6LcTtSDfDrPTcCHhx75H8BeRon+KG2wRwzfDgWhALmiWOMO6h3pm1UCZEPEjScyk7tdLx6WrdA2N1QTPENvNnhCQjW6kl057/qv7IwRryHrZBCwVSbLLnFRiHdTwk8mlYixFt1slEcPD7FVht13HyqVeyD55HOXrh2ElAxJyinGeoFzwKA91zfrdLvDxJSjzmImfvTisreI25EDcVfGsmxLVbfU8PGe/7NmWWKjXcdTJ11jAlVIY/Bv/mcxg/Q10vCHwKG1GW/XbJq5nxDhyLqiorn7Wd7VEVL8UgVzpHMjQ+Z8DUgSukiVwWAKkeTlVVeZ7t1DGnCgJVIdBPZAEK5f8CDyDNo7tK4/5DBjdD5MPV86TaEhGsLVFPQSI68KlBYy84FievdU9gWh6XZrugvtCZmi9vfd6db6V7FmoEcRHnG36VZH8N4aZaldq9zZawt1uBFgxYYx+Gs/qW1jwANeFy+LCoymyM6zgG7j8bGzUyLhvrbJkTYAEdICEb4kMKusKT9V3eIwMLsjdUdgijMc+7iKrr+TxrVWG0U+W95SGrxnxGrE4eaJFfgvAjUM4SAy8UaRwE9j6ZQH5qYAWGtXByvDiLSDfOD0yFA3UCMKSyQ30fyy1mIRg4ZcgZHLNHWl+c9SeijOvbOJxoQy7lTN2r3Y8p6ovxvUY74aOYbuVezryqXA6U+fcp6wSV9X5/OZKP18tB56Ua0gMyxJI7XyNT7IrqN8GsB9rL/kP5KMrjXxgqKLDa+V5OCH6a5hmOWemMUsea9vQl9t5Oce76PrTyTv50ExOqngE3PHPfSL//AItPdB7kGnyTRhVUUFNdJJ2z7RtktZwgmQzhBG/G7QsjZmJfCE7k75EmdIKH7xlnmDrNM/XbTT6FzldcH/rcRGxlPrv4qDScqE7JSmQABJWqRT/TUcJSwoQM+1jvDigvrjjH8oeK2in1S+/yO1j8xAws/T5u0VnIvAPqaE1atNuN0cuRliLcH2j0nTL4JpcR7w9Qya0JoaHgsOiALLCCzRkl1UUESz+ze/gIXHGtDwgYrK6pCFKJ1webSDog4zTlPkgXZqxlQDiYMjhDpwTtBW2WxthWbov9dt2X9XFLFmcF+eEc1UaQ74gqZiZsdj63pH1qcv3Vy8JYciogIVKsJ8Yy3J9w/GhjWVSQAmrS0BPOWK+RKV+0lWqXgYMnIFwpcZVD7zPSp547i9HlflB8gVnSTGmmq1ClO081OW/UH11pEQMfkEdDFzjLC1Cdo/BdL3s7cXb8J++Hzz1rhOUVZFIPehRiZ8VYu6+7Er7j5PSZu9g/GBdmNzJmyCD9wiswj9BZw+T3iBrg81re36ihMLjoVLoWc+62a1U/7qVX5CpvTVF7rocSAKwv4cBVqZm7lLDS/qoXs4fMs/VQi6BtVbNA3uSzKpQfjH1o3x4LrvkOn40zhm6hjduDglzJUwA0POabgdXIndp9fzhOo23Pe+Rk9GSLX0d71Poqry8NQDTzNlsa+JTNG9+UrEf+ngxCjGEsDCc0bz+udVRyHQI1jmEO3S+IOQycEq7XwB6z3wfMfa73m8PVRp+iOgtZfeSBl01xn03vMaQJkyj7vnhGCklsCWVRUl4y+5oNUzQ63B2dbjDF3vikd/3RUMifPYnX5Glfuk2FsV/7RqjI9yKTbE8wJY+74p7qXO8+dIYgjtLD/N8TJtRh04N9tXJA4H59IkMmLElgvr0Q5OCeVfdAt+5hkh4pQgfRMHpL74XatLQpPiOyHRs/OdmHtBf8nOZcxVKzdGclIN16lE7kJ+pVMjspOI+5+TqLRO6m0ZpNXJoZRv9MPDRcAfJUtNZHyig/s2wwReakFgPPJwCQmu1I30/tcBbji+Na53i1W1N+BqoY7Zxo+U/M9XyJ4Ok2SSkBtoOrwuhAY3a03Eu6l8wFdIG1cN+e8hopTkiKF093KuH/BcB39rMiGDLn6XVhGKEaaT/vqb/lufuAdpGExevF1+J9itkFhCfymWr9vGb3BTK4j598zRH7+e+MU9maruZqb0pkGxRDRE1CD4Z8LV4vhgPidk5w2Bq816g3nHw1//j3JStz7NR9HIWELO8TMn3QrP/zZp//+Dv9p429/ogv+GATR+n/UdF+ns9xNkXZQJXY4t9jMkJNUFygAtzndXwjss+yWH9HAnLQQfhAskdZS2l01HLWv7L7us5uTH409pqitvfSOQg/c+Zt7k879P3K9+WV68n7+3cZfuRd/dDPP/03rn+d+/nBvWfgDlt8+LzjqJ/vx3CnNOwiXhho778C96iD+1TBvRZYeP+EH81LE0vVwOOrmCLB3iKzI1x+vJEsrPH4uF0UB4TJ4X3uDfOCo3PYpYe0MF4bouh0DQ/l43fxUF7Y+dpWuvTSffB0yO2UQUETI/LwCZE3BvnevJ7c9zUlY3H58xzke6DNFDQG8n0WtDN4LAYN4nogKav1ezOfK/z+t6tsCTp+dhx4ymjWuCJk1dEUifDP+HyS4iP/Vg9B2jTo9L4NbiBuDS4nuuHW6H+JDQn2JtqRKGkEQPEYE7uzazXIkcxIAqUq1esasZBETlEZY7y7Jo+RoV/IsjY9eIMkUvr42Hc0xqtsavZvhz1OLwSxMOTuqzlhb0WbdOwBH9EYiyBjatz40bUxTHbiWxqJ0uma19qhPruvcWJlbiSSH48OLDDpaHPszvyct41ZfTu10+vjox6kOqK6v0K/gEPphEvMl/vwSv+A4Hhm36JSP9IXTyCZDm4kKsqD5ay8b1Sad/vaiyO5N/sDfEV6Z4q95E+yfjxpqBoBETW2C7xl4pIO2bDODDFurUPwE7EWC2Uplq+AHmBHvir2PSgkR12/Ry65O0aZtQPeXi9mTlF/Wj5GQ+vFkYyhXsLTjrBSP9hwk4GPqDP5rBn5/l8b0mLRAvRSzXHc293bs3s8EsdE3m2exxidWVB4joHR+S+dz5/W+v00K3TqN14CDBth8eWcsTbiwXPsygHdGid0PEdy6HHm2v/IUuV5RVapYmzGsX90mpnIdNGcOOq64Dbc5GUbYpD9M7S+6cLY//QmjxFLP5cuTFRm3vA5rkFZroFnO3bjHF35uU3s8mvL7Tp9nyTc4mymTJ5sLIp7umSnGkO23faehtz3mmTS7fbVx5rP7x3HXIjRNeq/A3xCs9JNB08c9S9BF2O3bOur0ItslFxXgRPdaapBIi4dRpKGxVz7ir69t/bc9qTxjvtOyGOfiLGDhR4fYywHv1WdOplxIV87TpLBy3Wc0QP0P9s4G7FBNOdITS/tep3o3h1TEa5XDDii7fWtqRzUEReP2fbxz7bHWWJdbIOxOUJZtItNZpTFRfj6vm9sYjRxQVO+WTdiOhdPeTJ+8YirPvoeL88l5iLYOHd3b/Imkq+1ZN1El3UikhftuteEYxf1Wujof8Pr4ICTu5ezZyZ4tHQMxlzUHLYO2VMOoNMGL/20S5i2o2obfk+8qqdR7xzbRDbgU0lnuIgz4LelQ5XS7xbLuSQtNS95v3ZUOdaUx/Qd8qxCt6xf2E62yb/HukLO6RyorV8KgYl5YNc75y+KvefrxY+lc/64y9kvWP0a0bDz/rojq+RWjO06WeruWqNFU7r3HPIcLWRql8ICZsz2Ls/qOm/CLn6++X+Qf7mGspYCrZod/lpl6Rw4xN/yuq8gqV4B6aHk1hVE1SfILxWu5gvXqbfARYQpspcxKp1F/c8XOPzkZvmoSw+vEqBLdrq1fr3wAPv5NnM9i8F+jdAuxkP5Z71c6uhK3enlnGymr7UsWZKC12qgUiG8XXGQ9mxnqz4GSIlybF9eXmbqj2sHX+a1jf0gRoONHRdRSrIq03Ty89eQ1GbV/Bk+du4+V15zls+vvERvZ4E7ZbnxWTVjDjb4o/k8jlw44pTIrUGxxuJvBeO+heuhOjpFsO6lVJ/aXnJDa/bM0Ql1cLbXE/Pbv3EZ3vj3iVrB5irjupZTzlnv677NrI9UNYNqbPgp/HZXS+lJmk87wec+7YOxTDo2aw2l3NfDr34VNlvqWJBknuK7oSlZ6/T10zuOoPZOeoIk81N+sL843WJ2Q4Z0fZ3scsqC/JV2fuhWi1jGURSKZV637lf53Xnnx16/vKEXY89aVJ0fv91jGdfG+G4+sniwHes4hS+udOr4RfhFhG/F5gUG35QaU+McuLmclb5ZWmR+sG5V6nf+PxYzlrnFGxpZaK8eqqVo0NfmAWoGfXDiT/FnUbWvzGDOTr8aktOZWg4BYvz5YH12ZbfCcGtNk+dDAZNGWvHov+PIOnY9Prjg8h/wLRrT69suaMVZ5bNuK00lSVpnqSX1NON/81FoP92rYndionwgOiA8WMf4vc8l15KqEEG4yAm2+WAN5Brfu1sq9suWYqgoajgOYt/JCk1gC8wPkK+XKCtRX6TAtgvrnuBgNRmn6I8lVDipOVB9kX6Oxkp4ZKyd1M6Gj8/v2U7k+YQBL95Kb9PQENucJb0JlW3b5tObN7m/Z1j1ev388d7o15zgXsI9CikAGAViR6lkJv7nb4Ak40M2G8TJ447kN+pvfHiOFjSUSP6PM+QfbAywKJCBaxSVxpizHseZUyUBhq59vFwrkyGoRiHbo0apweEZeSLuNiQ+HAekOnarFg00dZNXaPeoHPTRR0FmEyqYExOVaaaO8c0uFUh7U4e/UxdBmthlBDgg257Q33j1hA7HTxSeTTSuVnPZbgW1nodwmG16aKBDKxEetv7D9OjO0JhrbJTnoe+kcGoDJazFSO8/fUN9Jy/g4XK5PUkw2dgPDGpJqBfhe7GA+cjzfE/EGsMM+FV9nj9IAhrSfT/J3QE5TEIYyk5UjsI6ZZcCPr6A8FZUF4g9nnpVmjX90MLSQysIPD0nFzqwCcSJmIb5mYv2Cmk+C1MDFkZQyCBq4c/Yai9LJ6xYkGS/x2s5/frIW2vmG2Wrv0APpCdgCA9snFvfpe8uc0OwdRs4G9973PGEBnQB5qKrCQ6m6X/H7NInZ7y/1674/ZXOVp7OeuCRk8JFS516VHrnH1HkIUIlTIljjHaQtEtkJtosYul77cVwjk3gW1Ajaa6zWeyHGLlpk3VHE2VFzT2yI/EvlGUSz2H9zYE1s4nsKMtMqNyKNtL/59CpFJki5Fou6VXGm8vWATEPwrUVOLvoA8jLuwOzVBCgHB2Cr5V6OwEWtJEKokJkfc87h+sNHTvMb0KVTp5284QTPupoWvQVUwUeogZR3kBMESYo0mfukewRVPKh5+rzLQb7HKjFFIgWhj1w3yN/qCNoPI8XFiUgBNT1hCHBsAz8L7Oyt8wQWUFj92ONn/APyJFg8hzueqoJdNj57ROrFbffuS/XxrSXLTRgj5uxZjpgQYceeMc2wJrahReSKpm3QjHfqExTLAB2ipVumE8pqcZv8LYXQiPHHsgb5BMW8zM5pvQit+mQx8XGaVDcfVbLyMTlY8xcfmm/RSAT/H09UQol5gIz7rESDmnrQ4bURIB4iRXMDQwxgex1GgtDxKp2HayIkR+E/aDmCttNm2C6lytWdfOVzD6X2SpDWjQDlMRvAp1symWv4my1bPCD+E1EmGnMGWhNwmycJnDV2WrQNxO45ukEb08AAffizYKVULp15I4vbNK5DzWwCSUADfmKhfGSUqii1L2UsE8rB7mLuHuUJZOx4+WiizHBJ/hwboaBzhpNOVvgFTf5cJsHef7L1HCI9dOUUbb+YxUJWn6dYOLz+THi91kzY5dtO5c+grX7v0jEbsuoOGnoIreDIg/sFMyG+TyCLIcAWd1IZ1UNFxE8Uie13ucm40U2fcxC0u3WLvLOxwu+F7MWUsHsdtFQZ7W+nlfCASiAKyh8rnP3EyDByvtJb6Kax6/HkLzT9SyEyTMVM1zPtM0MJY14DmsWh4MgD15Ea9Hd00AdkTZ0EiG5NAGuIBzQJJ0JR0na+OB7lQA6UKxMfihIQ7GCCnVz694QvykWXTxpS2soDu+smru1UdIxSvAszBFD1c8c6ZOobA8bJiJIvuycgIXBQIXWwhyTgZDQxJTRXgEwRNAawGSXO0a1DKjdihLVNp/taE/xYhsgwe+VpKEEB4LlraQyE84gEihxCnbfoyOuJIEXy2FIYw+JjRusybKlU2g/vhTSGTydvCvXhYBdtAXtS2v7LkHtmXh/8fly1do8FI/D0f8UbzVb5h+KRhMGSAmR2mhi0YG/uj7wgxcfzCrMvdjitUIpXDX8ae2JcF/36qUWIMwN6JsjaRGNj+jEteGDcFyTUb8X/NHSucKMJp7pduxtD6KuxVlyxxwaeiC1FbGBESO84lbyrAugYxdl+2N8/6AgWpo/IeoAOcsG35IA/b3AuSyoa55L7llBLlaWlEWvuCFd8f8NfcTUgzJv6CbB+6ohWwodlk9nGWFpBAOaz5uEW5xBvmjnHFeDsb0mXwayj3mdYq5gxxNf3H3/tnCgHwjSrpSgVxLmiTtuszdRUFIsn6LiMPjL808vL1uQhDbM7aA43mISXReqjSskynIRcHCJ9qeFopJfx9tqyUoGbSwJex/0aDE3plBPGtNBYgWbdLom3+Q/bjdizR2/AS/c/dH/d3G7pyl1qDXgtOFtEqidwLqxPYtrNEveasWq3vPUUtqTeu8gpov4bdOQRI2kneFvRNMrShyVeEupK1PoLDPMSfWMIJcs267mGB8X9CehQCF0gIyhpP10mbyM7lwW1e6TGvHBV1sg/UyTghHPGRqMyaebC6pbB1WKNCQtlai1GGvmq9zUKaUzLaXsXEBYtHxmFbEZ2kJhR164LhWW2Tlp1dhsGE7ZgIWRBOx3Zcu2DxgH+G83WTPceKG0TgQKKiiNNOlWgvqNEbnrk6fVD+AqRam2OguZb0YWSTX88N+i/ELSxbaUUpPx4vJUzYg/WonSeA8xUK6u7DPHgpqWpEe6D4cXg5uK9FIYVba47V/nb+wyOtk+zG8RrS4EA0ouwa04iByRLSvoJA2FzaobbZtXnq8GdbfqEp5I2dpfpj59TCVif6+E75p665faiX8gS213RqBxTZqfHP46nF6NSenOneuT+vgbLUbdTH2/t0REFXZJOEB6DHvx6N6g9956CYrY/AYcm9gELJXYkrSi+0F0geKDZgOCIYkLU/+GOW5aGj8mvLFgtFH5+XC8hvAE3CvHRfl4ofM/Qwk4x2A+R+nyc9gNu/9Tem7XW4XRnyRymf52z09cTOdr+PG6+P/Vb4QiXlwauc5WB1z3o+IJjlbxI8MyWtSzT+k4sKVbhF3xa+vDts3NxXa87iiu+xRH9cAprnOL2h6vV54iQRXuOAj1s8nLFK8gZ70ThIQcWdF19/2xaJmT0efrkNDkWbpAQPdo92Z8+Hn/aLjbOzB9AI/k12fPs9HhUNDJ1u6ax2VxD3R6PywN7BrLJ26z6s3QoMp76qzzwetrDABKSGkfW5PwS1GvYNUbK6uRqxfyVGNyFB0E+OugMM8kKwmJmupuRWO8XkXXXQECyRVw9UyIrtCtcc4oNqXqr7AURBmKn6Khz3eBN96LwIJrAGP9mr/59uTOSx631suyT+QujDd4beUFpZ0kJEEnjlP+X/Kr2kCKhnENTg4BsMTOmMqlj2WMFLRUlVG0fzdCBgUta9odrJfpVdFomTi6ak0tFjXTcdqqvWBAzjY6hVrH9sbt3Z9gn+AVDpTcQImefbB4edirjzrsNievve4ZT4EUZWV3TxEsIW+9MT/RJoKfZZYSRGfC1CwPG/9rdMOM8qR/LUYvw5f/emUSoD7YSFuOoqchdUg2UePd1eCtFSKgxLSZ764oy4lvRCIH6bowPxZWwxNFctksLeil47pfevcBipkkBIc4ngZG+kxGZ71a72KQ7VaZ6MZOZkQJZXM6kb/Ac0/XkJx8dvyfJcWbI3zONEaEPIW8GbkYjsZcwy+eMoKrYjDmvEEixHzkCSCRPRzhOfJZuLdcbx19EL23MA8rnjTZZ787FGMnkqnpuzB5/90w1gtUSRaWcb0eta8198VEeZMUSfIhyuc4/nywFQ9uqn7jdqXh+5wwv+RK9XouNPbYdoEelNGo34KyySwigsrfCe0v/PlWPvQvQg8R0KgHO18mTVThhQrlbEQ0Kp/JxPdjHyR7E1QPw/ut0r+HDDG7BwZFm9IqEUZRpv2WpzlMkOemeLcAt5CsrzskLGaVOAxyySzZV/D2EY7ydNZMf8e8VhHcKGHAWNszf1EOq8fNstijMY4JXyATwTdncFFqcNDfDo+mWFvxJJpc4sEZtjXyBdoFcxbUmniCoKq5jydUHNjYJxMqN1KzYV62MugcELVhS3Bnd+TLLOh7dws/zSXWzxEb4Nj4aFun5x4kDWLK5TUF/yCXB/cZYvI9kPgVsG2jShtXkxfgT+xzjJofXqPEnIXIQ1lnIdmVzBOM90EXvJUW6a0nZ/7XjJGl8ToO3H/fdxnxmTNKBZxnkpXLVgLXCZywGT3YyS75w/PAH5I/jMuRspej8xZObU9kREbRA+kqjmKRFaKGWAmFQspC+QLbKPf0RaK3OXvBSWqo46p70ws/eZpu6jCtZUgQy6r4tHMPUdAgWGGUYNbuv/1a6K+MVFsd3T183+T8capSo6m0+Sh57fEeG/95dykGJBQMj09DSW2bY0mUonDy9a8trLnnL5B5LW3Nl8rJZNysO8Zb+80zXxqUGFpud3Qzwb7bf+8mq6x0TAnJU9pDQR9YQmZhlna2xuxJt0aCO/f1SU8gblOrbIyMsxTlVUW69VJPzYU2HlRXcqE2lLLxnObZuz2tT9CivfTAUYfmzJlt/lOPgsR6VN64/xQd4Jlk/RV7UKVv2Gx/AWsmTAuCWKhdwC+4HmKEKYZh2Xis4KsUR1BeObs1c13wqFRnocdmuheaTV30gvVXZcouzHKK5zwrN52jXJEuX6dGx3BCpV/++4f3hyaW/cQJLFKqasjsMuO3B3WlMq2gyYfdK1e7L2pO/tRye2mwzwZPfdUMrl5wdLqdd2Kv/wVtnpyWYhd49L6rsOV+8HXPrWH2Kup89l2tz6bf80iYSd+V4LROSOHeamvexR524q4r43rTmtFzQvArpvWfLYFZrbFspBsXNUqqenjxNNsFXatZvlIhk7teUPfK+YL32F8McTnjv0BZNppb+vshoCrtLXjIWq3EJXpVXIlG6ZNL0dh6qEm2WMwDjD3LfOfkGh1/czYc/0qhiD2ozNnH4882MVVt3JbVFkbwowNCO3KL5IoYW5wlVeGCViOuv1svZx7FbzxKzA4zGqBlRRaRWCobXaVq4yYCWbZf8eiJwt3OY+MFiSJengcFP2t0JMfzOiJ7cECvpx7neg1Rc5x+7myPJOXt2FohVRyXtD+/rDoTOyGYInJelZMjolecVHUhUNqvdZWg2J2t0jPmiLFeRD/8fOT4o+NGILb+TufCo9ceBBm3JLVn+MO2675n7qiEX/6W+188cYg3Zn5NSTjgOKfWFSAANa6raCxSoVU851oJLY11WIoYK0du0ec5E4tCnAPoKh71riTsjVIp3gKvBbEYQiNYrmH22oLQWA2AdwMnID6PX9b58dR2QKo4qag1D1Z+L/FwEKTR7osOZPWECPJIHQqPUsM5i/CH5YupVPfFA5pHUBcsesh8eO5YhyWnaVRPZn/BmdXVumZWPxMP5e28zm2uqHgFoT9CymHYNNrzrrjlXZM06HnzDxYNlI5b/QosxLmmrqDFqmogQdqk0WLkUceoAvQxHgkIyvWU69BPFr24VB6+lx75Rna6dGtrmOxDnvBojvi1/4dHjVeg8owofPe1cOnxU1ioh016s/Vudv9mhV9f35At+Sh28h1bpp8xhr09+vf47Elx3Ms6hyp6QvB3t0vnLbOhwo660cp7K0vvepabK7YJfxEWWfrC2YzJfYOjygPwfwd/1amTqa0hZ5ueebhWYVMubRTwIjj+0Oq0ohU3zfRfuL8gt59XsHdwKtxTQQ4Y2qz6gisxnm2UdlmpEkgOsZz7iEk6QOt8BuPwr+NR01LTqXmJo1C76o1N274twJvl+I069TiLpenK/miRxhyY8jvYV6W1WuSwhH9q7kuwnJMtm7IWcqs7HsnyHSqWXLSpYtZGaR1V3t0gauninFPZGtWskF65rtti48UV9uV9KM8kfDYs0pgB00S+TlzTXV6P8mxq15b9En8sz3jWSszcifZa/NuufPNnNTb031pptt0+sRSH/7UG8pzbsgtt3OG3ut7B9JzDMt2mTZuyRNIV8D54TuTrpNcHtgmMlYJeiY9XS83NYJicjRjtJSf9BZLsQv629QdDsKQhTK5CnXhpk7vMNkHzPhm0ExW/VCGApHfPyBagtZQTQmPHx7g5IXXsrQDPzIVhv2LB6Ih138iSDww1JNHrDvzUxvp73MsQBVhW8EbrReaVUcLB1R3PUXyaYG4HpJUcLVxMgDxcPkVRQpL7VTAGabDzbKcvg12t5P8TSGQkrj/gOrpnbiDHwluA73xbXts/L7u468cRWSWRtgTwlQnA47EKg0OiZDgFxAKQQUcsbGomITgeXUAAyKe03eA7Mp4gnyKQmm0LXJtEk6ddksMJCuxDmmHzmVhO+XaN2A54MIh3niw5CF7PwiXFZrnA8wOdeHLvvhdoqIDG9PDI7UnWWHq526T8y6ixJPhkuVKZnoUruOpUgOOp3iIKBjk+yi1vHo5cItHXb1PIKzGaZlRS0g5d3MV2pD8FQdGYLZ73aae/eEIUePMc4NFz8pIUfLCrrF4jVWH5gQneN3S8vANBmUXrEcKGn6hIUN95y1vpsvLwbGpzV9L0ZKTan6TDXM05236uLJcIEMKVAxKNT0K8WljuwNny3BNQRfzovA85beI9zr1AGNYnYCVkR1aGngWURUrgqR+gRrQhxW81l3CHevjvGEPzPMTxdsIfB9dfGRbZU0cg/1mcubtECX4tvaedmNAvTxCJtc2QaoUalGfENCGK7IS/O8CRpdOVca8EWCRwv2sSWE8CJPW5PCugjCXPd3h6U60cPD+bdhtXZuYB6stcoveE7Sm5MM2yvfUHXFSW7KzLmi7/EeEWL0wqcOH9MOSKjhCHHmw+JGLcYE/7SBZQCRggox0ZZTAxrlzNNXYXL5fNIjkdT4YMqVUz6p8YDt049v4OXGdg3qTrtLBUXOZf7ahPlZAY/O+7Sp0bvGSHdyQ8B1LOsplqMb9Se8VAE7gIdSZvxbRSrfl+Lk5Qaqi5QJceqjitdErcHXg/3MryljPSIAMaaloFm1cVwBJ8DNmkDqoGROSHFetrgjQ5CahuKkdH5pRPigMrgTtlFI8ufJPJSUlGgTjbBSvpRc0zypiUn6U5KZqcRoyrtzhmJ7/caeZkmVRwJQeLOG8LY6vP5ChpKhc8Js0El+n6FXqbx9ItdtLtYP92kKfaTLtCi8StLZdENJa9Ex1nOoz1kQ7qxoiZFKRyLf4O4CHRT0T/0W9F8epNKVoeyxUXhy3sQMMsJjQJEyMOjmOhMFgOmmlscV4eFi1CldU92yjwleirEKPW3bPAuEhRZV7JsKV3Lr5cETAiFuX5Nw5UlF7d2HZ96Bh0sgFIL5KGaKSoVYVlvdKpZJVP5+NZ7xDEkQhmDgsDKciazJCXJ6ZN2B3FY2f6VZyGl/t4aunGIAk/BHaS+i+SpdRfnB/OktOvyjinWNfM9Ksr6WwtCa1hCmeRI6icpFM4o8quCLsikU0tMoZI/9EqXRMpKGaWzofl4nQuVQm17d5fU5qXCQeCDqVaL9XJ9qJ08n3G3EFZS28SHEb3cdRBdtO0YcTzil3QknNKEe/smQ1fTb0XbpyNB5xAeuIlf+5KWlEY0DqJbsnzJlQxJPOVyHiKMx5Xu9FcEv1Fbg6Fhm4t+Jyy5JC1W3YO8dYLsO0PXPbxodBgttTbH3rt9Cp1lJIk2r3O1Zqu94eRbnIz2f50lWolYzuKsj4PMok4abHLO8NAC884hiXx5Fy5pWKO0bWL7uEGXaJCtznhP67SlQ4xjWIfgq6EpZ28QMtuZK7JC0RGbl9nA4XtFLug/NLMoH1pGt9IonAJqcEDLyH6TDROcbsmGPaGIxMo41IUAnQVPMPGByp4mOmh9ZQMkBAcksUK55LsZj7E5z5XuZoyWCKu6nHmDq22xI/9Z8YdxJy4kWpD16jLVrpwGLWfyOD0Wd+cBzFBxVaGv7S5k9qwh/5t/LQEXsRqI3Q9Rm3QIoaZW9GlsDaKOUyykyWuhNOprSEi0s1G4rgoiX1V743EELti+pJu5og6X0g6oTynUqlhH9k6ezyRi05NGZHz0nvp3HOJr7ebrAUFrDjbkFBObEvdQWkkUbL0pEvMU46X58vF9j9F3j6kpyetNUBItrEubW9ZvMPM4qNqLlsSBJqOH3XbNwv/cXDXNxN8iFLzUhteisYY+RlHYOuP29/Cb+L+xv+35Rv7xudnZ6ohK4cMPfCG8KI7dNmjNk/H4e84pOxn/sZHK9psfvj8ncA8qJz7O8xqbxESDivGJOZzF7o5PJLQ7g34qAWoyuA+x3btU98LT6ZyGyceIXjrqob2CAVql4VOTQPUQYvHV/g4zAuCZGvYQBtf0wmd5lilrvuEn1BXLny01B4h4SMDlYsnNpm9d7m9h578ufpef9Z4WplqWQvqo52fyUA7J24eZD5av6SyGIV9kpmHNqyvdfzcpEMw97BvknV2fq+MFHun9BT3Lsf8pbzvisWiIQvYkng+8Vxk1V+dli1u56kY50LRjaPdotvT5BwqtwyF+emo/z9J3yVUVGfKrxQtJMOAQWoQii/4dp9wgybSa5mkucmRLtEQZ/pz0tL/NVcgWAd95nEQ3Tg6tNbuyn3Iepz65L3huMUUBntllWuu4DbtOFSMSbpILV4fy6wlM0SOvi6CpLh81c1LreIvKd61uEWBcDw1lUBUW1I0Z+m/PaRlX+PQ/oxg0Ye6KUiIiTF4ADNk59Ydpt5/rkxmq9tV5Kcp/eQLUVVmBzQNVuytQCP6Ezd0G8eLxWyHpmZWJ3bAzkWTtg4lZlw42SQezEmiUPaJUuR/qklVA/87S4ArFCpALdY3QRdUw3G3XbWUp6aq9z0zUizcPa7351p9JXOZyfdZBFnqt90VzQndXB/mwf8LC9STj5kenVpNuqOQQP3mIRJj7eV21FxG8VAxKrEn3c+XfmZ800EPb9/5lIlijscUbB6da0RQaMook0zug1G0tKi/JBC4rw7/D3m4ARzAkzMcVrDcT2SyFtUdWAsFlsPDFqV3N+EjyXaoEePwroaZCiLqEzb8MW+PNE9TmTC01EzWli51PzZvUqkmyuROU+V6ik+Le/9qT6nwzUzf9tP68tYei0YaDGx6kAd7jn1cKqOCuYbiELH9zYqcc4MnRJjkeGiqaGwLImhyeKs+xKJMBlOJ05ow9gGCKZ1VpnMKoSCTbMS+X+23y042zOb5MtcY/6oBeAo1Vy89OTyhpavFP78jXCcFH0t7Gx24hMEOm2gsEfGabVpQgvFqbQKMsknFRRmuPHcZu0Su/WMFphZvB2r/EGbG72rpGGho3h+Msz0uGzJ7hNK2uqQiE1qmn0zgacKYYZBCqsxV+sjbpoVdSilW/b94n2xNb648VmNIoizqEWhBnsen+d0kbCPmRItfWqSBeOd9Wne3c6bcd6uvXOJ6WdiSsuXq0ndhqrQ4QoWUjCjYtZ0EAhnSOP1m44xkf0O7jXghrzSJWxP4a/t72jU29Vu2rvu4n7HfHkkmQOMGSS+NPeLGO5I73mC2B7+lMiBQQZRM9/9liLIfowupUFAbPBbR+lxDM6M8Ptgh1paJq5Rvs7yEuLQv/7d1oU2woFSb3FMPWQOKMuCuJ7pDDjpIclus5TeEoMBy2YdVB4fxmesaCeMNsEgTHKS5WDSGyNUOoEpcC2OFWtIRf0w27ck34/DjxRTVIcc9+kqZE6iMSiVDsiKdP/Xz5XfEhm/sBhO50p1rvJDlkyyxuJ9SPgs7YeUJBjXdeAkE+P9OQJm6SZnn1svcduI78dYmbkE2mtziPrcjVisXG78spLvbZaSFx/Rks9zP4LKn0Cdz/3JsetkT06A8f/yCgMO6Mb1Hme0JJ7b2wZz1qleqTuKBGokhPVUZ0dVu+tnQYNEY1fmkZSz6+EGZ5EzL7657mreZGR3jUfaEk458PDniBzsSmBKhDRzfXameryJv9/D5m6HIqZ0R+ouCE54Dzp4IJuuD1e4Dc5i+PpSORJfG23uVgqixAMDvchMR0nZdH5brclYwRoJRWv/rlxGRI5ffD5NPGmIDt7vDE1434pYdVZIFh89Bs94HGGJbTwrN8T6lh1HZFTOB4lWzWj6EVqxSMvC0/ljWBQ3F2kc/mO2b6tWonT2JEqEwFts8rz2h+oWNds9ceR2cb7zZvJTDppHaEhK5avWqsseWa2Dt5BBhabdWSktS80oMQrL4TvAM9b5HMmyDnO+OkkbMXfUJG7eXqTIG6lqSOEbqVR+qYdP7uWb57WEJqzyh411GAVsDinPs7KvUeXItlcMdOUWzXBH6zscymV1LLVCtc8IePojzXHF9m5b5zGwBRdzcyUJkiu938ApmAayRdJrX1PmVguWUvt2ThQ62czItTyWJMW2An/hdDfMK7SiFQlGIdAbltHz3ycoh7j9V7GxNWBpbtcSdqm4XxRwTawc3cbZ+xfSv9qQfEkDKfZTwCkqWGI/ur250ItXlMlh6vUNWEYIg9A3GzbgmbqvTN8js2YMo87CU5y6nZ4dbJLDQJj9fc7yM7tZzJDZFtqOcU8+mZjYlq4VmifI23iHb1ZoT9E+kT2dolnP1AfiOkt7PQCSykBiXy5mv637IegWSKj9IKrYZf4Lu9+I7ub+mkRdlvYzehh/jaJ9n7HUH5b2IbgeNdkY7wx1yVzxS7pbvky6+nmVUtRllEFfweUQ0/nG017WoUYSxs+j2B4FV/F62EtHlMWZXYrjGHpthnNb1x66LKZ0Qe92INWHdfR/vqp02wMS8r1G4dJqHok8KmQ7947G13a4YXbsGgHcBvRuVu1eAi4/A5+ZixmdSXM73LupB/LH7O9yxLTVXJTyBbI1S49TIROrfVCOb/czZ9pM4JsZx8kUz8dQGv7gUWKxXvTH7QM/3J2OuXXgciUhqY+cgtaOliQQVOYthBLV3xpESZT3rmfEYNZxmpBbb24CRao86prn+i9TNOh8VxRJGXJfXHATJHs1T5txgc/opYrY8XjlGQQbRcoxIBcnVsMjmU1ymmIUL4dviJXndMAJ0Yet+c7O52/p98ytlmAsGBaTAmMhimAnvp1TWNGM9BpuitGj+t810CU2UhorrjPKGtThVC8WaXw04WFnT5fTjqmPyrQ0tN3CkLsctVy2xr0ZWgiWVZ1OrlFjjxJYsOiZv2cAoOvE+7sY0I/TwWcZqMoyIKNOftwP7w++Rfg67ljfovKYa50if3fzE/8aPYVey/Nq35+nH2sLPh/fP5TsylSKGOZ4k69d2PnH43+kq++sRXHQqGArWdwhx+hpwQC6JgT2uxehYU4Zbw7oNb6/HLikPyJROGK2ouyr+vzseESp9G50T4AyFrSqOQ0rroCYP4sMDFBrHn342EyZTMlSyk47rHSq89Y9/nI3zG5lX16Z5lxphguLOcZUndL8wNcrkyjH82jqg8Bo8OYkynrxZvbFno5lUS3OPr8Ko3mX9NoRPdYOKKjD07bvgFgpZ/RF+YzkWvJ/Hs/tUbfeGzGWLxNAjfDzHHMVSDwB5SabQLsIZHiBp43FjGkaienYoDd18hu2BGwOK7U3o70K/WY/kuuKdmdrykIBUdG2mvE91L1JtTbh20mOLbk1vCAamu7utlXeGU2ooVikbU/actcgmsC1FKk2qmj3GWeIWbj4tGIxE7BLcBWUvvcnd/lYxsMV4F917fWeFB/XbINN3qGvIyTpCalz1lVewdIGqeAS/gB8Mi+sA+BqDiX3VGD2eUunTRbSY+AuDy4E3Qx3hAhwnSXX+B0zuj3eQ1miS8Vux2z/l6/BkWtjKGU72aJkOCWhGcSf3+kFkkB15vGOsQrSdFr6qTj0gBYiOlnBO41170gOWHSUoBVRU2JjwppYdhIFDfu7tIRHccSNM5KZOFDPz0TGMAjzzEpeLwTWp+kn201kU6NjbiMQJx83+LX1e1tZ10kuChJZ/XBUQ1dwaBHjTDJDqOympEk8X2M3VtVw21JksChA8w1tTefO3RJ1FMbqZ01bHHkudDB/OhLfe7P5GOHaI28ZXKTMuqo0hLWQ4HabBsGG7NbP1RiXtETz074er6w/OerJWEqjmkq2y51q1BVI+JUudnVa3ogBpzdhFE7fC7kybrAt2Z6RqDjATAUEYeYK45WMupBKQRtQlU+uNsjnzj6ZmGrezA+ASrWxQ6LMkHRXqXwNq7ftv28dUx/ZSJciDXP2SWJsWaN0FjPX9Yko6LobZ7aYW/IdUktI9apTLyHS8DyWPyuoZyxN1TK/vtfxk3HwWh6JczZC8Ftn0bIJay2g+n5wd7lm9rEsKO+svqVmi+c1j88hSCxbzrg4+HEP0Nt1/B6YW1XVm09T1CpAKjc9n18hjqsaFGdfyva1ZG0Xu3ip6N6JGpyTSqY5h4BOlpLPaOnyw45PdXTN+DtAKg7DLrLFTnWusoSBHk3s0d7YouJHq85/R09Tfc37ENXZF48eAYLnq9GLioNcwDZrC6FW6godB8JnqYUPvn0pWLfQz0lM0Yy8Mybgn84Ds3Q9bDP10bLyOV+qzxa4Rd9Dhu7cju8mMaONXK3UqmBQ9qIg7etIwEqM/kECk/Dzja4Bs1xR+Q/tCbc8IKrSGsTdJJ0vge7IG20W687uVmK6icWQ6cD3lwFzgNMGtFvO5qyJeKflGLAAcQZOrkxVwy3cWvqlGpvjmf9Qe6Ap20MPbV92DPV0OhFM4kz8Yr0ffC2zLWSQ1kqY6QdQrttR3kh1YLtQd1kCEv5hVoPIRWl5ERcUTttBIrWp6Xs5Ehh5OUUwI5aEBvuiDmUoENmnVw1FohCrbRp1A1E+XSlWVOTi7ADW+5Ohb9z1vK4qx5R5lPdGCPBJZ00mC+Ssp8VUbgpGAvXWMuWQQRbCqI6Rr2jtxZxtfP7W/8onz+yz0Gs76LaT5HX9ecyiZCB/ZR/gFtMxPsDwohoeCRtiuLxE1GM1vUEUgBv86+eehL58/P56QFGQ/MqOe/vC76L63jzmeax4exd/OKTUvkXg+fOJUHych9xt/9goJMrapSgvXrj8+8vk/N80f22Sewj6cyGqt1B6mztoeklVHHraouhvHJaG/OuBz6DHKMpFmQULU1bRWlyYE0RPXYYkUycIemN7TLtgNCJX6BqdyxDKkegO7nJK5xQ7OVYDZTMf9bVHidtk6DQX9Et+V9M7esgbsYBdEeUpsB0Xvw2kd9+rI7V+m47u+O/tq7mw7262HU1WlS9uFzsV6JxIHNmUCy0QS9e077JGRFbG65z3/dOKB/Zk+yDdKpUmdXjn/aS3N5nv4fK7bMHHmPlHd4E2+iTbV5rpzScRnxk6KARuDTJ8Q1LpK2mP8gj1EbuJ9RIyY+EWK4hCiIDBAS1Tm2IEXAFfgKPgdL9O6mAa06wjCcUAL6EsxPQWO9VNegBPm/0GgkZbDxCynxujX/92vmGcjZRMAY45puak2sFLCLSwXpEsyy5fnF0jGJBhm+fNSHKKUUfy+276A7/feLOFxxUuHRNJI2Osenxyvf8DAGObT60pfTTlhEg9u/KKkhJqm5U1/+BEcSkpFDA5XeCqxwXmPac1jcuZ3JWQ+p0NdWzb/5v1ZvF8GtMTFFEdQjpLO0bwPb0BHNWnip3liDXI2fXf05jjvfJ0NpjLCUgfTh9CMFYVFKEd4Z/OG/2C+N435mnK+9t1gvCiVcaaH7rK4+PjCvpVNiz+t2QyqH1O8x3JKZVl6Q+Lp/XK8wMjVMslOq9FdSw5FtUs/CptXH9PW+wbWHgrV17R5jTVOtGtKFu3nb80T+E0tv9QkzW3J2dbaw/8ddAKZ0pxIaEqLjlPrji3VgJ3GvdFvlqD8075woxh4fVt0JZE0KVFsAvqhe0dqN9b35jtSpnYMXkU+vZq+IAHad3IHc2s/LYrnD1anfG46IFiMIr9oNbZDWvwthqYNqOigaKd/XlLU4XHfk/PXIjPsLy/9/kAtQ+/wKH+hI/IROWj5FPvTZAT9f7j4ZXQyG4M0TujMAFXYkKvEHv1xhySekgXGGqNxWeWKlf8dDAlLuB1cb/qOD+rk7cmwt+1yKpk9cudqBanTi6zTbXRtV8qylNtjyOVKy1HTz0GW9rjt6sSjAZcT5R+KdtyYb0zyqG9pSLuCw5WBwAn7fjBjKLLoxLXMI+52L9cLwIR2B6OllJZLHJ8vDxmWdtF+QJnmt1rsHPIWY20lftk8fYePkAIg6Hgn532QoIpegMxiWgAOfe5/U44APR8Ac0NeZrVh3gEhs12W+tVSiWiUQekf/YBECUy5fdYbA08dd7VzPAP9aiVcIB9k6tY7WdJ1wNV+bHeydNtmC6G5ICtFC1ZwmJU/j8hf0I8TRVKSiz5oYIa93EpUI78X8GYIAZabx47/n8LDAAJ0nNtP1rpROprqKMBRecShca6qXuTSI3jZBLOB3Vp381B5rCGhjSvh/NSVkYp2qIdP/Bg="},{}],6:[function(e,t,s){var n=e("./dictionary-browser");s.init=function(){s.dictionary=n.init()},s.offsetsByLength=new Uint32Array([0,0,0,0,0,4096,9216,21504,35840,44032,53248,63488,74752,87040,93696,100864,104704,106752,108928,113536,115968,118528,119872,121280,122016]),s.sizeBitsByLength=new Uint8Array([0,0,0,0,10,10,11,11,10,10,10,10,10,9,9,8,7,7,8,7,7,6,6,5,5]),s.minDictionaryWordLength=4,s.maxDictionaryWordLength=24},{"./dictionary-browser":4}],7:[function(e,t,s){function n(e,t){this.bits=e,this.value=t}s.HuffmanCode=n;var i=15;function r(e,t){for(var s=1<<t-1;e&s;)s>>=1;return(e&s-1)+s}function o(e,t,s,i,r){do{e[t+(i-=s)]=new n(r.bits,r.value)}while(i>0)}function a(e,t,s){for(var n=1<<t-s;t<i&&!((n-=e[t])<=0);)++t,n<<=1;return t-s}s.BrotliBuildHuffmanTable=function(e,t,s,l,c){var u,d,h,p,f,m,g,v,y,x,b=t,w=new Int32Array(i+1),_=new Int32Array(i+1);for(x=new Int32Array(c),d=0;d<c;d++)w[l[d]]++;for(_[1]=0,u=1;u<i;u++)_[u+1]=_[u]+w[u];for(d=0;d<c;d++)0!==l[d]&&(x[_[l[d]]++]=d);if(y=v=1<<(g=s),1===_[i]){for(h=0;h<y;++h)e[t+h]=new n(0,65535&x[0]);return y}for(h=0,d=0,u=1,p=2;u<=s;++u,p<<=1)for(;w[u]>0;--w[u])o(e,t+h,p,v,new n(255&u,65535&x[d++])),h=r(h,u);for(m=y-1,f=-1,u=s+1,p=2;u<=i;++u,p<<=1)for(;w[u]>0;--w[u])(h&m)!==f&&(t+=v,y+=v=1<<(g=a(w,u,s)),e[b+(f=h&m)]=new n(g+s&255,t-b-f&65535)),o(e,t+(h>>s),p,v,new n(u-s&255,65535&x[d++])),h=r(h,u);return y}},{}],8:[function(e,t,s){"use strict";s.byteLength=u,s.toByteArray=h,s.fromByteArray=m;for(var n=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=o.length;a<l;++a)n[a]=o[a],i[o.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=e.indexOf("=");return-1===s&&(s=t),[s,s===t?0:4-s%4]}function u(e){var t=c(e),s=t[0],n=t[1];return 3*(s+n)/4-n}function d(e,t,s){return 3*(t+s)/4-s}function h(e){for(var t,s=c(e),n=s[0],o=s[1],a=new r(d(e,n,o)),l=0,u=o>0?n-4:n,h=0;h<u;h+=4)t=i[e.charCodeAt(h)]<<18|i[e.charCodeAt(h+1)]<<12|i[e.charCodeAt(h+2)]<<6|i[e.charCodeAt(h+3)],a[l++]=t>>16&255,a[l++]=t>>8&255,a[l++]=255&t;return 2===o&&(t=i[e.charCodeAt(h)]<<2|i[e.charCodeAt(h+1)]>>4,a[l++]=255&t),1===o&&(t=i[e.charCodeAt(h)]<<10|i[e.charCodeAt(h+1)]<<4|i[e.charCodeAt(h+2)]>>2,a[l++]=t>>8&255,a[l++]=255&t),a}function p(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function f(e,t,s){for(var n,i=[],r=t;r<s;r+=3)n=(e[r]<<16&16711680)+(e[r+1]<<8&65280)+(255&e[r+2]),i.push(p(n));return i.join("")}function m(e){for(var t,s=e.length,i=s%3,r=[],o=16383,a=0,l=s-i;a<l;a+=o)r.push(f(e,a,a+o>l?l:a+o));return 1===i?(t=e[s-1],r.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[s-2]<<8)+e[s-1],r.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),r.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],9:[function(e,t,s){function n(e,t){this.offset=e,this.nbits=t}s.kBlockLengthPrefixCode=[new n(1,2),new n(5,2),new n(9,2),new n(13,2),new n(17,3),new n(25,3),new n(33,3),new n(41,3),new n(49,4),new n(65,4),new n(81,4),new n(97,4),new n(113,5),new n(145,5),new n(177,5),new n(209,5),new n(241,6),new n(305,6),new n(369,7),new n(497,8),new n(753,9),new n(1265,10),new n(2289,11),new n(4337,12),new n(8433,13),new n(16625,24)],s.kInsertLengthPrefixCode=[new n(0,0),new n(1,0),new n(2,0),new n(3,0),new n(4,0),new n(5,0),new n(6,1),new n(8,1),new n(10,2),new n(14,2),new n(18,3),new n(26,3),new n(34,4),new n(50,4),new n(66,5),new n(98,5),new n(130,6),new n(194,7),new n(322,8),new n(578,9),new n(1090,10),new n(2114,12),new n(6210,14),new n(22594,24)],s.kCopyLengthPrefixCode=[new n(2,0),new n(3,0),new n(4,0),new n(5,0),new n(6,0),new n(7,0),new n(8,0),new n(9,0),new n(10,1),new n(12,1),new n(14,2),new n(18,2),new n(22,3),new n(30,3),new n(38,4),new n(54,4),new n(70,5),new n(102,5),new n(134,6),new n(198,7),new n(326,8),new n(582,9),new n(1094,10),new n(2118,24)],s.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],s.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},{}],10:[function(e,t,s){function n(e){this.buffer=e,this.pos=0}function i(e){this.buffer=e,this.pos=0}n.prototype.read=function(e,t,s){this.pos+s>this.buffer.length&&(s=this.buffer.length-this.pos);for(var n=0;n<s;n++)e[t+n]=this.buffer[this.pos+n];return this.pos+=s,s},s.BrotliInput=n,i.prototype.write=function(e,t){if(this.pos+t>this.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(e.subarray(0,t),this.pos),this.pos+=t,t},s.BrotliOutput=i},{}],11:[function(e,t,s){var n=e("./dictionary"),i=0,r=1,o=2,a=3,l=4,c=5,u=6,d=7,h=8,p=9,f=10,m=11,g=12,v=13,y=14,x=15,b=16,w=17,_=18,S=20;function j(e,t,s){this.prefix=new Uint8Array(e.length),this.transform=t,this.suffix=new Uint8Array(s.length);for(var n=0;n<e.length;n++)this.prefix[n]=e.charCodeAt(n);for(n=0;n<s.length;n++)this.suffix[n]=s.charCodeAt(n)}var C=[new j("",i,""),new j("",i," "),new j(" ",i," "),new j("",g,""),new j("",f," "),new j("",i," the "),new j(" ",i,""),new j("s ",i," "),new j("",i," of "),new j("",f,""),new j("",i," and "),new j("",v,""),new j("",r,""),new j(", ",i," "),new j("",i,", "),new j(" ",f," "),new j("",i," in "),new j("",i," to "),new j("e ",i," "),new j("",i,'"'),new j("",i,"."),new j("",i,'">'),new j("",i,"\n"),new j("",a,""),new j("",i,"]"),new j("",i," for "),new j("",y,""),new j("",o,""),new j("",i," a "),new j("",i," that "),new j(" ",f,""),new j("",i,". "),new j(".",i,""),new j(" ",i,", "),new j("",x,""),new j("",i," with "),new j("",i,"'"),new j("",i," from "),new j("",i," by "),new j("",b,""),new j("",w,""),new j(" the ",i,""),new j("",l,""),new j("",i,". The "),new j("",m,""),new j("",i," on "),new j("",i," as "),new j("",i," is "),new j("",d,""),new j("",r,"ing "),new j("",i,"\n\t"),new j("",i,":"),new j(" ",i,". "),new j("",i,"ed "),new j("",S,""),new j("",_,""),new j("",u,""),new j("",i,"("),new j("",f,", "),new j("",h,""),new j("",i," at "),new j("",i,"ly "),new j(" the ",i," of "),new j("",c,""),new j("",p,""),new j(" ",f,", "),new j("",f,'"'),new j(".",i,"("),new j("",m," "),new j("",f,'">'),new j("",i,'="'),new j(" ",i,"."),new j(".com/",i,""),new j(" the ",i," of the "),new j("",f,"'"),new j("",i,". This "),new j("",i,","),new j(".",i," "),new j("",f,"("),new j("",f,"."),new j("",i," not "),new j(" ",i,'="'),new j("",i,"er "),new j(" ",m," "),new j("",i,"al "),new j(" ",m,""),new j("",i,"='"),new j("",m,'"'),new j("",f,". "),new j(" ",i,"("),new j("",i,"ful "),new j(" ",f,". "),new j("",i,"ive "),new j("",i,"less "),new j("",m,"'"),new j("",i,"est "),new j(" ",f,"."),new j("",m,'">'),new j(" ",i,"='"),new j("",f,","),new j("",i,"ize "),new j("",m,"."),new j(" ",i,""),new j(" ",i,","),new j("",f,'="'),new j("",m,'="'),new j("",i,"ous "),new j("",m,", "),new j("",f,"='"),new j(" ",f,","),new j(" ",m,'="'),new j(" ",m,", "),new j("",m,","),new j("",m,"("),new j("",m,". "),new j(" ",m,"."),new j("",m,"='"),new j(" ",m,". "),new j(" ",f,'="'),new j(" ",m,"='"),new j(" ",f,"='")];function k(e,t){return e[t]<192?(e[t]>=97&&e[t]<=122&&(e[t]^=32),1):e[t]<224?(e[t+1]^=32,2):(e[t+2]^=5,3)}s.kTransforms=C,s.kNumTransforms=C.length,s.transformDictionaryWord=function(e,t,s,i,r){var o,a=C[r].prefix,l=C[r].suffix,c=C[r].transform,u=c<g?0:c-(g-1),d=0,h=t;u>i&&(u=i);for(var v=0;v<a.length;)e[t++]=a[v++];for(s+=u,i-=u,c<=p&&(i-=c),d=0;d<i;d++)e[t++]=n.dictionary[s+d];if(o=t-i,c===f)k(e,o);else if(c===m)for(;i>0;){var y=k(e,o);o+=y,i-=y}for(var x=0;x<l.length;)e[t++]=l[x++];return t-h}},{"./dictionary":6}],12:[function(e,t,s){t.exports=e("./dec/decode").BrotliDecompressBuffer},{"./dec/decode":3}]},{},[12])(12)},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},s=Object.keys(t).join("|"),n=new RegExp(s,"g"),i=new RegExp(s,"");function r(e){return t[e]}var o=function(e){return e.replace(n,r)};e.exports=o,e.exports.has=function(e){return!!e.match(i)},e.exports.remove=o},8477:(e,t,s)=>{"use strict";
/**
* @license React
* use-sync-external-store-shim.production.min.js
@@ -27,11 +8,4 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var r=n(1609);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=r.useState,i=r.useEffect,o=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=s({inst:{value:n,getSnapshot:t}}),a=r[0].inst,u=r[1];return o((function(){a.value=n,a.getSnapshot=t,c(a)&&u({inst:a})}),[e,n,t]),i((function(){return c(a)&&u({inst:a}),e((function(){c(a)&&u({inst:a})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},422:(e,t,n)=>{"use strict";e.exports=n(8477)},1609:e=>{"use strict";e.exports=window.React}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var s=r[e]={exports:{}};return n[e].call(s.exports,s,s.exports,a),s.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var s=Object.create(null);a.r(s);var i={};e=e||[null,t({}),t([]),t(t)];for(var o=2&r&&n;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,a.d(s,i),s},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};(()=>{"use strict";a.r(s),a.d(s,{PluginMoreMenuItem:()=>Mx,PluginSidebar:()=>Px,PluginSidebarMoreMenuItem:()=>Ix,PluginTemplateSettingPanel:()=>fv,initializeEditor:()=>Ax,reinitializeEditor:()=>Ox,store:()=>tr});var e={};a.r(e),a.d(e,{closeModal:()=>L,disableComplementaryArea:()=>A,enableComplementaryArea:()=>M,openModal:()=>V,pinItem:()=>O,setDefaultComplementaryArea:()=>I,setFeatureDefaults:()=>D,setFeatureValue:()=>R,toggleFeature:()=>F,unpinItem:()=>N});var t={};a.r(t),a.d(t,{getActiveComplementaryArea:()=>B,isComplementaryAreaLoading:()=>z,isFeatureActive:()=>G,isItemPinned:()=>H,isModalActive:()=>U});var n={};a.r(n),a.d(n,{removeTemplates:()=>rn,setCanvasMode:()=>tn,setEditorCanvasContainerView:()=>nn});var r={};a.r(r),a.d(r,{__experimentalSetPreviewDeviceType:()=>sn,addTemplate:()=>ln,closeGeneralSidebar:()=>Cn,openGeneralSidebar:()=>xn,openNavigationPanelToMenu:()=>yn,removeTemplate:()=>cn,revertTemplate:()=>Sn,setEditedEntity:()=>mn,setEditedPostContext:()=>hn,setHasPageContentFocus:()=>Tn,setHomeTemplateId:()=>pn,setIsInserterOpened:()=>_n,setIsListViewOpened:()=>bn,setIsNavigationPanelOpened:()=>vn,setIsSaveViewOpened:()=>wn,setNavigationMenu:()=>dn,setNavigationPanelActiveMenu:()=>gn,setPage:()=>fn,setTemplate:()=>on,setTemplatePart:()=>un,switchEditorMode:()=>kn,toggleDistractionFree:()=>Pn,toggleFeature:()=>an,updateSettings:()=>En});var i={};a.r(i),a.d(i,{__experimentalGetInsertionPoint:()=>Gn,__experimentalGetPreviewDeviceType:()=>On,getCanUserCreateMedia:()=>Nn,getCurrentTemplateNavigationPanelSubMenu:()=>qn,getCurrentTemplateTemplateParts:()=>jn,getEditedPostContext:()=>Bn,getEditedPostId:()=>Ln,getEditedPostType:()=>Vn,getEditorMode:()=>Zn,getHomeTemplateId:()=>Dn,getNavigationPanelActiveMenu:()=>Yn,getPage:()=>zn,getReusableBlocks:()=>Fn,getSettings:()=>Rn,hasPageContentFocus:()=>Jn,isFeatureActive:()=>An,isInserterOpened:()=>Hn,isListViewOpened:()=>Un,isNavigationOpened:()=>Kn,isPage:()=>Xn,isSaveViewOpened:()=>Wn});var o={};a.r(o),a.d(o,{getCanvasMode:()=>Qn,getEditorCanvasContainerView:()=>$n});var l=a(1609),c=a.t(l,2);const u=window.wp.blocks,d=window.wp.blockLibrary,m=window.wp.data,h=window.wp.deprecated;var f=a.n(h);const g=window.wp.element,y=window.wp.editor;var v=a(5755),_=a.n(v);const b=window.wp.components,E=window.wp.i18n,w=window.wp.primitives,S=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),x=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"})),C=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"})),k=window.wp.viewport,T=window.wp.preferences,P=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),I=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),M=(e,t)=>({registry:n,dispatch:r})=>{if(!t)return;n.select(T.store).get(e,"isComplementaryAreaVisible")||n.dispatch(T.store).set(e,"isComplementaryAreaVisible",!0),r({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},A=e=>({registry:t})=>{t.select(T.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(T.store).set(e,"isComplementaryAreaVisible",!1)},O=(e,t)=>({registry:n})=>{if(!t)return;const r=n.select(T.store).get(e,"pinnedItems");!0!==r?.[t]&&n.dispatch(T.store).set(e,"pinnedItems",{...r,[t]:!0})},N=(e,t)=>({registry:n})=>{if(!t)return;const r=n.select(T.store).get(e,"pinnedItems");n.dispatch(T.store).set(e,"pinnedItems",{...r,[t]:!1})};function F(e,t){return function({registry:n}){f()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),n.dispatch(T.store).toggle(e,t)}}function R(e,t,n){return function({registry:r}){f()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),r.dispatch(T.store).set(e,t,!!n)}}function D(e,t){return function({registry:n}){f()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),n.dispatch(T.store).setDefaults(e,t)}}function V(e){return{type:"OPEN_MODAL",name:e}}function L(){return{type:"CLOSE_MODAL"}}const B=(0,m.createRegistrySelector)((e=>(t,n)=>{const r=e(T.store).get(n,"isComplementaryAreaVisible");if(void 0!==r)return!1===r?null:t?.complementaryAreas?.[n]})),z=(0,m.createRegistrySelector)((e=>(t,n)=>{const r=e(T.store).get(n,"isComplementaryAreaVisible"),a=t?.complementaryAreas?.[n];return r&&void 0===a})),H=(0,m.createRegistrySelector)((e=>(t,n,r)=>{var a;const s=e(T.store).get(n,"pinnedItems");return null===(a=s?.[r])||void 0===a||a})),G=(0,m.createRegistrySelector)((e=>(t,n,r)=>(f()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(T.store).get(n,r))));function U(e,t){return e.activeModal===t}const W=(0,m.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:n,area:r}=t;return e[n]?e:{...e,[n]:r}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:n,area:r}=t;return{...e,[n]:r}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}}),j=(0,m.createReduxStore)("core/interface",{reducer:W,actions:e,selectors:t});(0,m.register)(j);const Z=window.wp.plugins,q=(0,Z.withPluginContext)(((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`})));const Y=q((function({as:e=b.Button,scope:t,identifier:n,icon:r,selectedIcon:a,name:s,...i}){const o=e,c=(0,m.useSelect)((e=>e(j).getActiveComplementaryArea(t)===n),[n,t]),{enableComplementaryArea:u,disableComplementaryArea:d}=(0,m.useDispatch)(j);return(0,l.createElement)(o,{icon:a&&c?a:r,"aria-controls":n.replace("/",":"),onClick:()=>{c?d(t):u(t,n)},...i})})),K=({smallScreenTitle:e,children:t,className:n,toggleButtonProps:r})=>{const a=(0,l.createElement)(Y,{icon:P,...r});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},e&&(0,l.createElement)("span",{className:"interface-complementary-area-header__small-title"},e),a),(0,l.createElement)("div",{className:_()("components-panel__header","interface-complementary-area-header",n),tabIndex:-1},t,a))},X=()=>{};function J({name:e,as:t=b.Button,onClick:n,...r}){return(0,l.createElement)(b.Fill,{name:e},(({onClick:e})=>(0,l.createElement)(t,{onClick:n||e?(...t)=>{(n||X)(...t),(e||X)(...t)}:void 0,...r})))}J.Slot=function({name:e,as:t=b.ButtonGroup,fillProps:n={},bubblesVirtually:r,...a}){return(0,l.createElement)(b.Slot,{name:e,bubblesVirtually:r,fillProps:n},(e=>{if(!g.Children.toArray(e).length)return null;const n=[];g.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&n.push(t)}));const r=g.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&n.includes(e.props.__unstableTarget)?null:e));return(0,l.createElement)(t,{...a},r)}))};const Q=J,$=({__unstableExplicitMenuItem:e,__unstableTarget:t,...n})=>(0,l.createElement)(b.MenuItem,{...n});function ee({scope:e,target:t,__unstableExplicitMenuItem:n,...r}){return(0,l.createElement)(Y,{as:r=>(0,l.createElement)(Q,{__unstableExplicitMenuItem:n,__unstableTarget:`${e}/${t}`,as:$,name:`${e}/plugin-more-menu`,...r}),role:"menuitemcheckbox",selectedIcon:S,name:t,scope:e,...r})}function te({scope:e,...t}){return(0,l.createElement)(b.Fill,{name:`PinnedItems/${e}`,...t})}te.Slot=function({scope:e,className:t,...n}){return(0,l.createElement)(b.Slot,{name:`PinnedItems/${e}`,...n},(e=>e?.length>0&&(0,l.createElement)("div",{className:_()(t,"interface-pinned-items")},e)))};const ne=te;function re({scope:e,children:t,className:n,id:r}){return(0,l.createElement)(b.Fill,{name:`ComplementaryArea/${e}`},(0,l.createElement)("div",{id:r,className:n},t))}const ae=q((function({children:e,className:t,closeLabel:n=(0,E.__)("Close plugin"),identifier:r,header:a,headerClassName:s,icon:i,isPinnable:o=!0,panelClassName:c,scope:u,name:d,smallScreenTitle:p,title:h,toggleShortcut:f,isActiveByDefault:y}){const{isLoading:v,isActive:w,isPinned:P,activeArea:I,isSmall:M,isLarge:A,showIconLabels:O}=(0,m.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:n,isItemPinned:a}=e(j),{get:s}=e(T.store),i=t(u);return{isLoading:n(u),isActive:i===r,isPinned:a(u,r),activeArea:i,isSmall:e(k.store).isViewportMatch("< medium"),isLarge:e(k.store).isViewportMatch("large"),showIconLabels:s("core","showIconLabels")}}),[r,u]);!function(e,t,n,r,a){const s=(0,g.useRef)(!1),i=(0,g.useRef)(!1),{enableComplementaryArea:o,disableComplementaryArea:l}=(0,m.useDispatch)(j);(0,g.useEffect)((()=>{r&&a&&!s.current?(l(e),i.current=!0):i.current&&!a&&s.current?(i.current=!1,o(e,t)):i.current&&n&&n!==t&&(i.current=!1),a!==s.current&&(s.current=a)}),[r,a,e,t,n,l,o])}(u,r,I,w,M);const{enableComplementaryArea:N,disableComplementaryArea:F,pinItem:R,unpinItem:D}=(0,m.useDispatch)(j);return(0,g.useEffect)((()=>{y&&void 0===I&&!M?N(u,r):void 0===I&&M&&F(u,r)}),[I,y,u,r,M,N,F]),(0,l.createElement)(l.Fragment,null,o&&(0,l.createElement)(ne,{scope:u},P&&(0,l.createElement)(Y,{scope:u,identifier:r,isPressed:w&&(!O||A),"aria-expanded":w,"aria-disabled":v,label:h,icon:O?S:i,showTooltip:!O,variant:O?"tertiary":void 0,size:"compact"})),d&&o&&(0,l.createElement)(ee,{target:d,scope:u,icon:i},h),w&&(0,l.createElement)(re,{className:_()("interface-complementary-area",t),scope:u,id:r.replace("/",":")},(0,l.createElement)(K,{className:s,closeLabel:n,onClose:()=>F(u),smallScreenTitle:p,toggleButtonProps:{label:n,shortcut:f,scope:u,identifier:r}},a||(0,l.createElement)(l.Fragment,null,(0,l.createElement)("strong",null,h),o&&(0,l.createElement)(b.Button,{className:"interface-complementary-area__pin-unpin-item",icon:P?x:C,label:P?(0,E.__)("Unpin from toolbar"):(0,E.__)("Pin to toolbar"),onClick:()=>(P?D:R)(u,r),isPressed:P,"aria-expanded":P}))),(0,l.createElement)(b.Panel,{className:c},e)))}));ae.Slot=function({scope:e,...t}){return(0,l.createElement)(b.Slot,{name:`ComplementaryArea/${e}`,...t})};const se=ae,ie=window.wp.compose;function oe({children:e,className:t,ariaLabel:n,as:r="div",...a}){return(0,l.createElement)(r,{className:_()("interface-navigable-region",t),"aria-label":n,role:"region",tabIndex:"-1",...a},e)}const le={hidden:{opacity:0},hover:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},distractionFreeInactive:{opacity:1,transition:{delay:0}}};const ce=(0,g.forwardRef)((function({isDistractionFree:e,footer:t,header:n,editorNotices:r,sidebar:a,secondarySidebar:s,notices:i,content:o,actions:c,labels:u,className:d,enableRegionNavigation:m=!0,shortcuts:p},h){const f=(0,b.__unstableUseNavigateRegions)(p);!function(e){(0,g.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("interface-interface-skeleton__html-container");const y={...{header:(0,E._x)("Header","header landmark area"),body:(0,E.__)("Content"),secondarySidebar:(0,E.__)("Block Library"),sidebar:(0,E.__)("Settings"),actions:(0,E.__)("Publish"),footer:(0,E.__)("Footer")},...u};return(0,l.createElement)("div",{...m?f:{},ref:(0,ie.useMergeRefs)([h,m?f.ref:void 0]),className:_()(d,"interface-interface-skeleton",f.className,!!t&&"has-footer")},(0,l.createElement)("div",{className:"interface-interface-skeleton__editor"},!!n&&(0,l.createElement)(oe,{as:b.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":y.header,initial:e?"hidden":"distractionFreeInactive",whileHover:e?"hover":"distractionFreeInactive",animate:e?"hidden":"distractionFreeInactive",variants:le,transition:e?{type:"tween",delay:.8}:void 0},n),e&&(0,l.createElement)("div",{className:"interface-interface-skeleton__header"},r),(0,l.createElement)("div",{className:"interface-interface-skeleton__body"},!!s&&(0,l.createElement)(oe,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:y.secondarySidebar},s),!!i&&(0,l.createElement)("div",{className:"interface-interface-skeleton__notices"},i),(0,l.createElement)(oe,{className:"interface-interface-skeleton__content",ariaLabel:y.body},o),!!a&&(0,l.createElement)(oe,{className:"interface-interface-skeleton__sidebar",ariaLabel:y.sidebar},a),!!c&&(0,l.createElement)(oe,{className:"interface-interface-skeleton__actions",ariaLabel:y.actions},c))),!!t&&(0,l.createElement)(oe,{className:"interface-interface-skeleton__footer",ariaLabel:y.footer},t))})),ue=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function de({as:e=b.DropdownMenu,className:t,label:n=(0,E.__)("Options"),popoverProps:r,toggleProps:a,children:s}){return(0,l.createElement)(e,{className:_()("interface-more-menu-dropdown",t),icon:ue,label:n,popoverProps:{placement:"bottom-end",...r,className:_()("interface-more-menu-dropdown__content",r?.className)},toggleProps:{tooltipPosition:"bottom",...a,size:"compact"}},(e=>s(e)))}const me=window.wp.widgets,pe=window.wp.hooks,he=window.wp.mediaUtils;(0,pe.addFilter)("editor.MediaUpload","core/edit-site/components/media-upload",(()=>he.MediaUpload));const fe=window.wp.blockEditor,ge=window.wp.notices,ye=window.wp.coreData;var ve={grad:.9,turn:360,rad:360/(2*Math.PI)},_e=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},be=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Ee=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},we=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Se=function(e){return{r:Ee(e.r,0,255),g:Ee(e.g,0,255),b:Ee(e.b,0,255),a:Ee(e.a)}},xe=function(e){return{r:be(e.r),g:be(e.g),b:be(e.b),a:be(e.a,3)}},Ce=/^#([0-9a-f]{3,8})$/i,ke=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Te=function(e){var t=e.r,n=e.g,r=e.b,a=e.a,s=Math.max(t,n,r),i=s-Math.min(t,n,r),o=i?s===t?(n-r)/i:s===n?2+(r-t)/i:4+(t-n)/i:0;return{h:60*(o<0?o+6:o),s:s?i/s*100:0,v:s/255*100,a}},Pe=function(e){var t=e.h,n=e.s,r=e.v,a=e.a;t=t/360*6,n/=100,r/=100;var s=Math.floor(t),i=r*(1-n),o=r*(1-(t-s)*n),l=r*(1-(1-t+s)*n),c=s%6;return{r:255*[r,o,i,i,l,r][c],g:255*[l,r,r,o,i,i][c],b:255*[i,i,l,r,r,o][c],a}},Ie=function(e){return{h:we(e.h),s:Ee(e.s,0,100),l:Ee(e.l,0,100),a:Ee(e.a)}},Me=function(e){return{h:be(e.h),s:be(e.s),l:be(e.l),a:be(e.a,3)}},Ae=function(e){return Pe((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},Oe=function(e){return{h:(t=Te(e)).h,s:(a=(200-(n=t.s))*(r=t.v)/100)>0&&a<200?n*r/100/(a<=100?a:200-a)*100:0,l:a/2,a:t.a};var t,n,r,a},Ne=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Fe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Re=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,De=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ve={string:[[function(e){var t=Ce.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?be(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?be(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Re.exec(e)||De.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Se({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Ne.exec(e)||Fe.exec(e);if(!t)return null;var n,r,a=Ie({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(ve[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Ae(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,a=e.a,s=void 0===a?1:a;return _e(t)&&_e(n)&&_e(r)?Se({r:Number(t),g:Number(n),b:Number(r),a:Number(s)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,a=e.a,s=void 0===a?1:a;if(!_e(t)||!_e(n)||!_e(r))return null;var i=Ie({h:Number(t),s:Number(n),l:Number(r),a:Number(s)});return Ae(i)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,a=e.a,s=void 0===a?1:a;if(!_e(t)||!_e(n)||!_e(r))return null;var i=function(e){return{h:we(e.h),s:Ee(e.s,0,100),v:Ee(e.v,0,100),a:Ee(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(s)});return Pe(i)},"hsv"]]},Le=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},Be=function(e){return"string"==typeof e?Le(e.trim(),Ve.string):"object"==typeof e&&null!==e?Le(e,Ve.object):[null,void 0]},ze=function(e,t){var n=Oe(e);return{h:n.h,s:Ee(n.s+100*t,0,100),l:n.l,a:n.a}},He=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Ge=function(e,t){var n=Oe(e);return{h:n.h,s:n.s,l:Ee(n.l+100*t,0,100),a:n.a}},Ue=function(){function e(e){this.parsed=Be(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return be(He(this.rgba),2)},e.prototype.isDark=function(){return He(this.rgba)<.5},e.prototype.isLight=function(){return He(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=xe(this.rgba)).r,n=e.g,r=e.b,s=(a=e.a)<1?ke(be(255*a)):"","#"+ke(t)+ke(n)+ke(r)+s;var e,t,n,r,a,s},e.prototype.toRgb=function(){return xe(this.rgba)},e.prototype.toRgbString=function(){return t=(e=xe(this.rgba)).r,n=e.g,r=e.b,(a=e.a)<1?"rgba("+t+", "+n+", "+r+", "+a+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,a},e.prototype.toHsl=function(){return Me(Oe(this.rgba))},e.prototype.toHslString=function(){return t=(e=Me(Oe(this.rgba))).h,n=e.s,r=e.l,(a=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+a+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,a},e.prototype.toHsv=function(){return e=Te(this.rgba),{h:be(e.h),s:be(e.s),v:be(e.v),a:be(e.a,3)};var e},e.prototype.invert=function(){return We({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),We(ze(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),We(ze(this.rgba,-e))},e.prototype.grayscale=function(){return We(ze(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),We(Ge(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),We(Ge(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?We({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):be(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Oe(this.rgba);return"number"==typeof e?We({h:e,s:t.s,l:t.l,a:t.a}):be(t.h)},e.prototype.isEqual=function(e){return this.toHex()===We(e).toHex()},e}(),We=function(e){return e instanceof Ue?e:new Ue(e)},je=[],Ze=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},qe=function(e){return.2126*Ze(e.r)+.7152*Ze(e.g)+.0722*Ze(e.b)};const Ye=window.wp.privateApis,{lock:Ke,unlock:Xe}=(0,Ye.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/edit-site"),{useGlobalSetting:Je,useGlobalStyle:Qe}=Xe(fe.privateApis);function $e(){const[e="black"]=Qe("color.text"),[t="white"]=Qe("color.background"),[n=e]=Qe("elements.h1.color.text"),[r]=Je("color.palette.core"),[a]=Je("color.palette.theme"),[s]=Je("color.palette.custom"),i=(null!=a?a:[]).concat(null!=s?s:[]).concat(null!=r?r:[]),o=i.filter((({color:e})=>e!==t&&e!==n)).slice(0,2);return{paletteColors:i,highlightedColors:o}}function et(e,t,n){return e&&"object"==typeof e?(t.reduce(((e,r,a)=>(void 0===e[r]&&(Number.isInteger(t[a+1])?e[r]=[]:e[r]={}),a===t.length-1&&(e[r]=n),e[r])),e),e):e}!function(e){e.forEach((function(e){je.indexOf(e)<0&&(e(Ue,Ve),je.push(e))}))}([function(e){e.prototype.luminance=function(){return e=qe(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,r,a,s,i,o,l,c=t instanceof e?t:new e(t);return s=this.rgba,i=c.toRgb(),n=(o=qe(s))>(l=qe(i))?(o+.05)/(l+.05):(l+.05)/(o+.05),void 0===(r=2)&&(r=0),void 0===a&&(a=Math.pow(10,r)),Math.floor(a*n)/a+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(i=void 0===(s=(n=t).size)?"normal":s,"AAA"===(a=void 0===(r=n.level)?"AA":r)&&"normal"===i?7:"AA"===a&&"large"===i?3:4.5);var n,r,a,s,i}}]);const{cleanEmptyObject:tt,GlobalStylesContext:nt}=Xe(fe.privateApis),rt={...u.__EXPERIMENTAL_STYLE_PROPERTY,blockGap:{value:["spacing","blockGap"]}},at={"border.color":"color","color.background":"color","color.text":"color","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.caption.color.text":"color","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient",blockGap:"spacing","typography.fontSize":"font-size","typography.fontFamily":"font-family"},st={"border.color":"borderColor","color.background":"backgroundColor","color.text":"textColor","color.gradient":"gradient","typography.fontSize":"fontSize","typography.fontFamily":"fontFamily"},it=["border","color","spacing","typography"],ot=(e,t)=>{let n=e;return t.forEach((e=>{n=n?.[e]})),n},lt=["borderColor","borderWidth","borderStyle"],ct=["top","right","bottom","left"];function ut(e,t,n){if(!t?.[e]||n?.[e]?.style)return[];const{color:r,style:a,width:s}=t[e];return!(r||s)||a?[]:[{path:["border",e,"style"],value:"solid"}]}function dt(e,t,n){const r=function(e,t){const{supportedPanels:n}=(0,m.useSelect)((n=>({supportedPanels:Xe(n(u.store)).getSupportedStyles(e,t)})),[e,t]);return n}(e),a=n?.styles?.blocks?.[e];return(0,g.useMemo)((()=>{const e=r.flatMap((e=>{if(!rt[e])return[];const{value:n}=rt[e],r=n.join("."),a=t[st[r]],s=a?`var:preset|${at[r]}|${a}`:ot(t.style,n);if("linkColor"===e){const e=s?[{path:n,value:s}]:[],r=["elements","link",":hover","color","text"],a=ot(t.style,r);return a&&e.push({path:r,value:a}),e}if(lt.includes(e)&&s){const e=[{path:n,value:s}];return ct.forEach((t=>{const r=[...n];r.splice(-1,0,t),e.push({path:r,value:s})})),e}return s?[{path:n,value:s}]:[]}));return function(e,t,n){if(!e&&!t)return[];const r=[...ut("top",e,n),...ut("right",e,n),...ut("bottom",e,n),...ut("left",e,n)],{color:a,style:s,width:i}=e||{};return(t||a||i)&&!s&&ct.forEach((e=>{n?.[e]?.style||r.push({path:["border",e,"style"],value:"solid"})})),r}(t.style?.border,t.borderColor,a?.border).forEach((t=>e.push(t))),e}),[r,t,a])}function mt(e){return e?JSON.parse(JSON.stringify(e)):{}}function pt({name:e,attributes:t,setAttributes:n}){const{user:r,setUserConfig:a}=(0,g.useContext)(nt),s=dt(e,t,r),{__unstableMarkNextChangeAsNotPersistent:i}=(0,m.useDispatch)(fe.store),{createSuccessNotice:o}=(0,m.useDispatch)(ge.store),c=(0,g.useCallback)((()=>{if(0!==s.length&&s.length>0){const{style:l}=t,c=mt(l),d=mt(r);for(const{path:t,value:n}of s)et(c,t,void 0),et(d,["styles","blocks",e,...t],n);const m={borderColor:void 0,backgroundColor:void 0,textColor:void 0,gradient:void 0,fontSize:void 0,fontFamily:void 0,style:tt(c)};i(),n(m),a((()=>d),{undoIgnore:!0}),o((0,E.sprintf)((0,E.__)("%s styles applied."),(0,u.getBlockType)(e).title),{type:"snackbar",actions:[{label:(0,E.__)("Undo"),onClick(){i(),n(t),a((()=>r),{undoIgnore:!0})}}]})}}),[i,t,s,o,e,n,a,r]);return(0,l.createElement)(b.BaseControl,{className:"edit-site-push-changes-to-global-styles-control",help:(0,E.sprintf)((0,E.__)("Apply this block’s typography, spacing, dimensions, and color styles to all %s blocks."),(0,u.getBlockType)(e).title)},(0,l.createElement)(b.BaseControl.VisualLabel,null,(0,E.__)("Styles")),(0,l.createElement)(b.Button,{variant:"primary",disabled:0===s.length,onClick:c},(0,E.__)("Apply globally")))}function ht(e){const t=(0,fe.useBlockEditingMode)(),n=(0,m.useSelect)((e=>e(ye.store).getCurrentTheme()?.is_block_theme),[]),r=it.some((t=>(0,u.hasBlockSupport)(e.name,t)));return"default"===t&&r&&n?(0,l.createElement)(fe.InspectorAdvancedControls,null,(0,l.createElement)(pt,{...e})):null}const ft=(0,ie.createHigherOrderComponent)((e=>t=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{...t}),t.isSelected&&(0,l.createElement)(ht,{...t}))));(0,pe.addFilter)("editor.BlockEdit","core/edit-site/push-changes-to-global-styles",ft);const gt=window.wp.router,yt=window.wp.url;function vt(){return void 0!==(0,yt.getQueryArg)(window.location.href,"wp_theme_preview")}function _t(){return vt()?(0,yt.getQueryArg)(window.location.href,"wp_theme_preview"):null}const{useHistory:bt}=Xe(gt.privateApis);function Et(e,t,n=!1){const r=bt();const a=(0,yt.getQueryArgs)(window.location.href),s=(0,yt.removeQueryArgs)(window.location.href,...Object.keys(a));vt()&&(e={...e,wp_theme_preview:_t()});return{href:(0,yt.addQueryArgs)(s,e),onClick:function(a){a?.preventDefault(),n?r.replace(e,t):r.push(e,t)}}}function wt({params:e={},state:t,replace:n=!1,children:r,...a}){const{href:s,onClick:i}=Et(e,t,n);return(0,l.createElement)("a",{href:s,onClick:i,...a},r)}const St=window.wp.patterns,xt="wp_navigation",Ct="wp_template",kt="wp_template_part",Tt={custom:"custom",theme:"theme",plugin:"plugin"},Pt="uncategorized",{PATTERN_TYPES:It,PATTERN_DEFAULT_CATEGORY:Mt,PATTERN_USER_CATEGORY:At,EXCLUDED_PATTERN_SOURCES:Ot,PATTERN_SYNC_TYPES:Nt}=Xe(St.privateApis),Ft=[kt,xt,It.user],Rt={[Ct]:(0,E.__)("Template"),[kt]:(0,E.__)("Template part"),[It.user]:(0,E.__)("Pattern"),[xt]:(0,E.__)("Navigation")},Dt="grid",Vt="table",Lt="list",Bt="enumeration",zt="in",Ht="notIn",{useLocation:Gt}=Xe(gt.privateApis);function Ut({attributes:e}){const{theme:t,slug:n}=e,{params:r}=Gt(),a=(0,m.useSelect)((e=>{const{getCurrentTheme:r,getEntityRecord:a}=e(ye.store);return a("postType",kt,`${t||r()?.stylesheet}//${n}`)}),[t,n]),s=Et({postId:a?.id,postType:a?.type,canvas:"edit"},{fromTemplateId:r.postId||a?.id});return a?(0,l.createElement)(b.ToolbarButton,{...s,onClick:e=>{s.onClick(e)}},(0,E.__)("Edit")):null}const Wt=(0,ie.createHigherOrderComponent)((e=>t=>{const{attributes:n,name:r}=t,a="core/template-part"===r&&n.slug;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{key:"edit",...t}),a&&(0,l.createElement)(fe.BlockControls,{group:"other"},(0,l.createElement)(Ut,{attributes:n})))}),"withEditBlockControls");(0,pe.addFilter)("editor.BlockEdit","core/edit-site/template-part-edit-button",Wt);const{useLocation:jt}=Xe(gt.privateApis);function Zt({attributes:e}){const{ref:t}=e,{params:n}=jt(),r=(0,fe.useBlockEditingMode)(),a=(0,m.useSelect)((e=>e(ye.store).getEntityRecord("postType",xt,t)),[t]),s=Et({postId:a?.id,postType:a?.type,canvas:"edit"},{fromTemplateId:n.postId||a?.id});return a&&"default"===r?(0,l.createElement)(fe.BlockControls,{group:"other"},(0,l.createElement)(b.ToolbarButton,{...s,onClick:e=>{s.onClick(e)}},(0,E.__)("Edit"))):null}const qt=(0,ie.createHigherOrderComponent)((e=>t=>{const{attributes:n,name:r}=t,a="core/navigation"===r&&n.ref;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{...t}),a&&(0,l.createElement)(Zt,{attributes:n}))}),"withEditBlockControls");(0,pe.addFilter)("editor.BlockEdit","core/edit-site/navigation-edit-button",qt);const Yt=(0,m.combineReducers)({settings:function(e={},t){return"UPDATE_SETTINGS"===t.type?{...e,...t.settings}:e},editedPost:function(e={},t){switch(t.type){case"SET_EDITED_POST":return{postType:t.postType,id:t.id,context:t.context};case"SET_EDITED_POST_CONTEXT":return{...e,context:t.context}}return e},saveViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_SAVE_VIEW_OPENED":return t.isOpen;case"SET_CANVAS_MODE":return!1}return e},canvasMode:function(e="init",t){return"SET_CANVAS_MODE"===t.type?t.mode:e},editorCanvasContainerView:function(e=void 0,t){return"SET_EDITOR_CANVAS_CONTAINER_VIEW"===t.type?t.view:e}}),Kt=window.wp.apiFetch;var Xt=a.n(Kt);const Jt=window.wp.a11y,Qt="core/edit-site";function $t(e){return!!e&&(e?.source===Tt.custom&&e?.has_theme_file)}const en=window.wp.htmlEntities,tn=e=>({registry:t,dispatch:n})=>{const r=window.matchMedia("(min-width: 782px)").matches;t.dispatch(fe.store).__unstableSetEditorMode("edit"),n({type:"SET_CANVAS_MODE",mode:e}),r&&"edit"===e&&t.select(T.store).get("core","showListViewByDefault")&&!t.select(T.store).get("core","distractionFree")?t.dispatch(y.store).setIsListViewOpened(!0):t.dispatch(y.store).setIsListViewOpened(!1),t.dispatch(y.store).setIsInserterOpened(!1)},nn=e=>({dispatch:t})=>{t({type:"SET_EDITOR_CANVAS_CONTAINER_VIEW",view:e})},rn=e=>async({registry:t})=>{const n=e[0].type===Ct,r=await Promise.allSettled(e.map((e=>t.dispatch(ye.store).deleteEntityRecord("postType",e.type,e.id,{force:!0},{throwOnError:!0}))));if(r.every((({status:e})=>"fulfilled"===e))){let r;if(1===e.length){const t="string"==typeof e[0].title?e[0].title:e[0].title?.rendered;r=(0,E.sprintf)((0,E.__)('"%s" deleted.'),(0,en.decodeEntities)(t))}else r=n?(0,E.__)("Templates deleted."):(0,E.__)("Template parts deleted.");t.dispatch(ge.store).createSuccessNotice(r,{type:"snackbar",id:"site-editor-template-deleted-success"})}else{let e;if(1===r.length)e=r[0].reason?.message?r[0].reason.message:n?(0,E.__)("An error occurred while deleting the template."):(0,E.__)("An error occurred while deleting the template part.");else{const t=new Set,a=r.filter((({status:e})=>"rejected"===e));for(const e of a)e.reason?.message&&t.add(e.reason.message);e=0===t.size?n?(0,E.__)("An error occurred while deleting the templates."):(0,E.__)("An error occurred while deleting the template parts."):1===t.size?n?(0,E.sprintf)((0,E.__)("An error occurred while deleting the templates: %s"),[...t][0]):(0,E.sprintf)((0,E.__)("An error occurred while deleting the template parts: %s"),[...t][0]):n?(0,E.sprintf)((0,E.__)("Some errors occurred while deleting the templates: %s"),[...t].join(",")):(0,E.sprintf)((0,E.__)("Some errors occurred while deleting the template parts: %s"),[...t].join(","))}t.dispatch(ge.store).createErrorNotice(e,{type:"snackbar"})}};function an(e){return function({registry:t}){f()("dispatch( 'core/edit-site' ).toggleFeature( featureName )",{since:"6.0",alternative:"dispatch( 'core/preferences').toggle( 'core/edit-site', featureName )"}),t.dispatch(T.store).toggle("core/edit-site",e)}}const sn=e=>({registry:t})=>{f()("dispatch( 'core/edit-site' ).__experimentalSetPreviewDeviceType",{since:"6.5",version:"6.7",hint:"registry.dispatch( editorStore ).setDeviceType"}),t.dispatch(y.store).setDeviceType(e)};function on(){return f()("dispatch( 'core/edit-site' ).setTemplate",{since:"6.5",version:"6.8",hint:"The setTemplate is not needed anymore, the correct entity is resolved from the URL automatically."}),{type:"NOTHING"}}const ln=e=>async({dispatch:t,registry:n})=>{f()("dispatch( 'core/edit-site' ).addTemplate",{since:"6.5",version:"6.8",hint:"use saveEntityRecord directly"});const r=await n.dispatch(ye.store).saveEntityRecord("postType",Ct,e);e.content&&n.dispatch(ye.store).editEntityRecord("postType",Ct,r.id,{blocks:(0,u.parse)(e.content)},{undoIgnore:!0}),t({type:"SET_EDITED_POST",postType:Ct,id:r.id})},cn=e=>rn([e]);function un(e){return{type:"SET_EDITED_POST",postType:kt,id:e}}function dn(e){return{type:"SET_EDITED_POST",postType:xt,id:e}}function mn(e,t,n){return{type:"SET_EDITED_POST",postType:e,id:t,context:n}}function pn(){return f()("dispatch( 'core/edit-site' ).setHomeTemplateId",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function hn(e){return{type:"SET_EDITED_POST_CONTEXT",context:e}}function fn(){return f()("dispatch( 'core/edit-site' ).setPage",{since:"6.5",version:"6.8",hint:"The setPage is not needed anymore, the correct entity is resolved from the URL automatically."}),{type:"NOTHING"}}function gn(){return f()("dispatch( 'core/edit-site' ).setNavigationPanelActiveMenu",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function yn(){return f()("dispatch( 'core/edit-site' ).openNavigationPanelToMenu",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function vn(){return f()("dispatch( 'core/edit-site' ).setIsNavigationPanelOpened",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}const _n=e=>({registry:t})=>{f()("dispatch( 'core/edit-site' ).setIsInserterOpened",{since:"6.5",alternative:"dispatch( 'core/editor').setIsInserterOpened"}),t.dispatch(y.store).setIsInserterOpened(e)},bn=e=>({registry:t})=>{f()("dispatch( 'core/edit-site' ).setIsListViewOpened",{since:"6.5",alternative:"dispatch( 'core/editor').setIsListViewOpened"}),t.dispatch(y.store).setIsListViewOpened(e)};function En(e){return{type:"UPDATE_SETTINGS",settings:e}}function wn(e){return{type:"SET_IS_SAVE_VIEW_OPENED",isOpen:e}}const Sn=(e,{allowUndo:t=!0}={})=>async({registry:n})=>{const r="edit-site-template-reverted";if(n.dispatch(ge.store).removeNotice(r),$t(e))try{const a=n.select(ye.store).getEntityConfig("postType",e.type);if(!a)return void n.dispatch(ge.store).createErrorNotice((0,E.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});const s=(0,yt.addQueryArgs)(`${a.baseURL}/${e.id}`,{context:"edit",source:"theme"}),i=await Xt()({path:s});if(!i)return void n.dispatch(ge.store).createErrorNotice((0,E.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});const o=({blocks:e=[]})=>(0,u.__unstableSerializeAndClean)(e),l=n.select(ye.store).getEditedEntityRecord("postType",e.type,e.id);n.dispatch(ye.store).editEntityRecord("postType",e.type,e.id,{content:o,blocks:l.blocks,source:"custom"},{undoIgnore:!0});const c=(0,u.parse)(i?.content?.raw);if(n.dispatch(ye.store).editEntityRecord("postType",e.type,i.id,{content:o,blocks:c,source:"theme"}),t){const t=()=>{n.dispatch(ye.store).editEntityRecord("postType",e.type,l.id,{content:o,blocks:l.blocks,source:"custom"})};n.dispatch(ge.store).createSuccessNotice((0,E.__)("Template reverted."),{type:"snackbar",id:r,actions:[{label:(0,E.__)("Undo"),onClick:t}]})}}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("Template revert failed. Please reload.");n.dispatch(ge.store).createErrorNotice(t,{type:"snackbar"})}else n.dispatch(ge.store).createErrorNotice((0,E.__)("This template is not revertable."),{type:"snackbar"})},xn=e=>({dispatch:t,registry:n})=>{n.select(T.store).get("core","distractionFree")&&t.toggleDistractionFree(),n.dispatch(j).enableComplementaryArea(Qt,e)},Cn=()=>({registry:e})=>{e.dispatch(j).disableComplementaryArea(Qt)},kn=e=>({dispatch:t,registry:n})=>{if(n.dispatch("core/preferences").set("core","editorMode",e),"visual"!==e&&n.dispatch(fe.store).clearSelectedBlock(),"visual"===e)(0,Jt.speak)((0,E.__)("Visual editor selected"),"assertive");else if("text"===e){n.select(T.store).get("core","distractionFree")&&t.toggleDistractionFree(),(0,Jt.speak)((0,E.__)("Code editor selected"),"assertive")}},Tn=e=>({dispatch:t,registry:n})=>{f()("dispatch( 'core/edit-site' ).setHasPageContentFocus",{since:"6.5"}),e&&n.dispatch(fe.store).clearSelectedBlock(),t({type:"SET_HAS_PAGE_CONTENT_FOCUS",hasPageContentFocus:e})},Pn=()=>({dispatch:e,registry:t})=>{const n=t.select(T.store).get("core","distractionFree");n&&t.dispatch(T.store).set("core","fixedToolbar",!1),n||t.batch((()=>{t.dispatch(T.store).set("core","fixedToolbar",!0),t.dispatch(y.store).setIsInserterOpened(!1),t.dispatch(y.store).setIsListViewOpened(!1),e.closeGeneralSidebar()})),t.batch((()=>{t.dispatch(T.store).set("core","distractionFree",!n),t.dispatch(ge.store).createInfoNotice(n?(0,E.__)("Distraction free off."):(0,E.__)("Distraction free on."),{id:"core/edit-site/distraction-free-mode/notice",type:"snackbar",actions:[{label:(0,E.__)("Undo"),onClick:()=>{t.batch((()=>{t.dispatch(T.store).set("core","fixedToolbar",!!n),t.dispatch(T.store).toggle("core","distractionFree")}))}}]})}))};const In=[];const Mn=function(e,t){var n,r,a=0;function s(){var s,i,o=n,l=arguments.length;e:for(;o;){if(o.args.length===arguments.length){for(i=0;i<l;i++)if(o.args[i]!==arguments[i]){o=o.next;continue e}return o!==n&&(o===r&&(r=o.prev),o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=n,o.prev=null,n.prev=o,n=o),o.val}o=o.next}for(s=new Array(l),i=0;i<l;i++)s[i]=arguments[i];return o={args:s,val:e.apply(null,s)},n?(n.prev=o,o.next=n):r=o,a===t.maxSize?(r=r.prev).next=null:a++,n=o,o.val}return t=t||{},s.clear=function(){n=null,r=null,a=0},s}((function(e=In,t){const n=t?t.reduce(((e,t)=>({...e,[t.id]:t})),{}):{},r=[],a=[...e];for(;a.length;){const{innerBlocks:e,...t}=a.shift();if(a.unshift(...e),(0,u.isTemplatePart)(t)){const{attributes:{theme:e,slug:a}}=t,s=n[`${e}//${a}`];s&&r.push({templatePart:s,block:t})}}return r})),An=(0,m.createRegistrySelector)((e=>(t,n)=>(f()("select( 'core/edit-site' ).isFeatureActive",{since:"6.0",alternative:"select( 'core/preferences' ).get"}),!!e(T.store).get("core/edit-site",n)))),On=(0,m.createRegistrySelector)((e=>()=>(f()("select( 'core/edit-site' ).__experimentalGetPreviewDeviceType",{since:"6.5",version:"6.7",alternative:"select( 'core/editor' ).getDeviceType"}),e(y.store).getDeviceType()))),Nn=(0,m.createRegistrySelector)((e=>()=>e(ye.store).canUser("create","media"))),Fn=(0,m.createRegistrySelector)((e=>()=>{f()("select( 'core/core' ).getEntityRecords( 'postType', 'wp_block' )",{since:"6.5",version:"6.8"});return"web"===g.Platform.OS?e(ye.store).getEntityRecords("postType","wp_block",{per_page:-1}):[]}));function Rn(e){return e.settings}function Dn(){f()("select( 'core/edit-site' ).getHomeTemplateId",{since:"6.2",version:"6.4"})}function Vn(e){return e.editedPost.postType}function Ln(e){return e.editedPost.id}function Bn(e){return e.editedPost.context}function zn(e){return{context:e.editedPost.context}}const Hn=(0,m.createRegistrySelector)((e=>()=>(f()("select( 'core/edit-site' ).isInserterOpened",{since:"6.5",alternative:"select( 'core/editor' ).isInserterOpened"}),e(y.store).isInserterOpened()))),Gn=(0,m.createRegistrySelector)((e=>()=>(f()("select( 'core/edit-site' ).__experimentalGetInsertionPoint",{since:"6.5",version:"6.7"}),Xe(e(y.store)).getInsertionPoint()))),Un=(0,m.createRegistrySelector)((e=>()=>(f()("select( 'core/edit-site' ).isListViewOpened",{since:"6.5",alternative:"select( 'core/editor' ).isListViewOpened"}),e(y.store).isListViewOpened())));function Wn(e){return e.saveViewPanel}const jn=(0,m.createRegistrySelector)((e=>()=>{const t=e(ye.store).getEntityRecords("postType",kt,{per_page:-1}),n=e(fe.store).getBlocksByName("core/template-part"),r=e(fe.store).getBlocksByClientId(n);return Mn(r,t)})),Zn=(0,m.createRegistrySelector)((e=>()=>e(T.store).get("core","editorMode")));function qn(){f()("dispatch( 'core/edit-site' ).getCurrentTemplateNavigationPanelSubMenu",{since:"6.2",version:"6.4"})}function Yn(){f()("dispatch( 'core/edit-site' ).getNavigationPanelActiveMenu",{since:"6.2",version:"6.4"})}function Kn(){f()("dispatch( 'core/edit-site' ).isNavigationOpened",{since:"6.2",version:"6.4"})}function Xn(e){return!!e.editedPost.context?.postId}function Jn(){return f()("select( 'core/edit-site' ).hasPageContentFocus",{since:"6.5"}),!1}function Qn(e){return e.canvasMode}function $n(e){return e.editorCanvasContainerView}const er={reducer:Yt,actions:r,selectors:i},tr=(0,m.createReduxStore)(Qt,er);(0,m.register)(tr),Xe(tr).registerPrivateSelectors(o),Xe(tr).registerPrivateActions(n);const nr=window.wp.keyboardShortcuts,rr=window.wp.commands,ar=window.wp.coreCommands,sr=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})),ir=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"})),or=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,l.createElement)(w.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})),lr=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),cr=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),ur=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),dr=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));function mr(e){return(0,l.createElement)(b.Button,{...e,className:_()("edit-site-sidebar-button",e.className)})}const{useLocation:pr}=Xe(gt.privateApis);function hr({isRoot:e,title:t,actions:n,meta:r,content:a,footer:s,description:i,backPath:o}){const{dashboardLink:c,dashboardLinkText:u,previewingThemeName:d}=(0,m.useSelect)((e=>{const{getSettings:t}=Xe(e(tr)),n=_t();return{dashboardLink:t().__experimentalDashboardLink,dashboardLinkText:t().__experimentalDashboardLinkText,previewingThemeName:n?e(ye.store).getTheme(n)?.name?.rendered:void 0}}),[]),p=pr(),h=(0,b.__experimentalUseNavigator)(),f=(0,E.isRTL)()?ur:dr;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.__experimentalVStack,{className:_()("edit-site-sidebar-navigation-screen__main",{"has-footer":!!s}),spacing:0,justify:"flex-start"},(0,l.createElement)(b.__experimentalHStack,{spacing:4,alignment:"flex-start",className:"edit-site-sidebar-navigation-screen__title-icon"},!e&&(0,l.createElement)(mr,{onClick:()=>{const e=null!=o?o:p.state?.backPath;e?h.goTo(e,{isBack:!0}):h.goToParent()},icon:f,label:(0,E.__)("Back"),showTooltip:!1}),e&&(0,l.createElement)(mr,{icon:f,label:u||(0,E.__)("Go to the Dashboard"),href:c||"index.php"}),(0,l.createElement)(b.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen__title",color:"#e0e0e0",level:1,size:20},vt()?(0,E.sprintf)("Previewing %1$s: %2$s",d,t):t),n&&(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen__actions"},n)),r&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen__meta"},r)),(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen__content"},i&&(0,l.createElement)("p",{className:"edit-site-sidebar-navigation-screen__description"},i),a)),s&&(0,l.createElement)("footer",{className:"edit-site-sidebar-navigation-screen__footer"},s))}const fr=(0,g.forwardRef)((function({icon:e,size:t=24,...n},r){return(0,g.cloneElement)(e,{width:t,height:t,...n,ref:r})})),gr=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})),yr=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));function vr({className:e,icon:t,withChevron:n=!1,suffix:r,children:a,...s}){return(0,l.createElement)(b.__experimentalItem,{className:_()("edit-site-sidebar-navigation-item",{"with-suffix":!n&&r},e),...s},(0,l.createElement)(b.__experimentalHStack,{justify:"flex-start"},t&&(0,l.createElement)(fr,{style:{fill:"currentcolor"},icon:t,size:24}),(0,l.createElement)(b.FlexBlock,null,a),n&&(0,l.createElement)(fr,{icon:(0,E.isRTL)()?gr:yr,className:"edit-site-sidebar-navigation-item__drilldown-indicator",size:24}),!n&&r))}const _r=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"})),br=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),Er=br,wr=window.wp.keycodes;var Sr=a(66),xr=a.n(Sr);
-/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */
-function Cr(e){return"[object Object]"===Object.prototype.toString.call(e)}function kr(e){var t,n;return!1!==Cr(e)&&(void 0===(t=e.constructor)||!1!==Cr(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}const{GlobalStylesContext:Tr,cleanEmptyObject:Pr}=Xe(fe.privateApis);function Ir(e,t){return xr()(e,t,{isMergeableObject:kr})}function Mr(){const[e,t,n]=function(){const{globalStylesId:e,isReady:t,settings:n,styles:r}=(0,m.useSelect)((e=>{const{getEditedEntityRecord:t,hasFinishedResolution:n}=e(ye.store),r=e(ye.store).__experimentalGetCurrentGlobalStylesId(),a=r?t("root","globalStyles",r):void 0;let s=!1;return n("__experimentalGetCurrentGlobalStylesId")&&(s=!r||n("getEditedEntityRecord",["root","globalStyles",r])),{globalStylesId:r,isReady:s,settings:a?.settings,styles:a?.styles}}),[]),{getEditedEntityRecord:a}=(0,m.useSelect)(ye.store),{editEntityRecord:s}=(0,m.useDispatch)(ye.store);return[t,(0,g.useMemo)((()=>({settings:null!=n?n:{},styles:null!=r?r:{}})),[n,r]),(0,g.useCallback)(((t,n={})=>{var r,i;const o=a("root","globalStyles",e),l=t({styles:null!==(r=o?.styles)&&void 0!==r?r:{},settings:null!==(i=o?.settings)&&void 0!==i?i:{}});s("root","globalStyles",e,{styles:Pr(l.styles)||{},settings:Pr(l.settings)||{}},n)}),[e])]}(),[r,a]=function(){const e=(0,m.useSelect)((e=>e(ye.store).__experimentalGetCurrentThemeBaseGlobalStyles()),[]);return[!!e,e]}(),s=(0,g.useMemo)((()=>a&&t?Ir(a,t):{}),[t,a]);return(0,g.useMemo)((()=>({isReady:e&&r,user:t,base:a,merged:s,setUserConfig:n})),[s,t,a,n,e,r])}function Ar({children:e}){const t=Mr();return t.isReady?(0,l.createElement)(Tr.Provider,{value:t},e):null}const{useGlobalStyle:Or,useGlobalStylesOutput:Nr}=Xe(fe.privateApis),Fr={start:{scale:1,opacity:1},hover:{scale:0,opacity:0}},Rr={hover:{opacity:1},start:{opacity:.5}},Dr={hover:{scale:1,opacity:1},start:{scale:0,opacity:0}},Vr={leading:!0,trailing:!0},Lr=({label:e,isFocused:t,withHoverView:n})=>{const[r]=Or("typography.fontWeight"),[a="serif"]=Or("typography.fontFamily"),[s=a]=Or("elements.h1.typography.fontFamily"),[i=r]=Or("elements.h1.typography.fontWeight"),[o="black"]=Or("color.text"),[c=o]=Or("elements.h1.color.text"),[u="white"]=Or("color.background"),[d]=Or("color.gradient"),[m]=Nr(),p=(0,ie.useReducedMotion)(),[h,f]=(0,g.useState)(!1),[y,{width:v}]=(0,ie.useResizeObserver)(),[_,E]=(0,g.useState)(v),[w,S]=(0,g.useState)(),x=(0,ie.useThrottle)(E,250,Vr);(0,g.useLayoutEffect)((()=>{v&&x(v)}),[v,x]),(0,g.useLayoutEffect)((()=>{const e=_?_/248:1,t=e-(w||0);!(Math.abs(t)>.1)&&w||S(e)}),[_,w]);const C=w||(v?v/248:1),{paletteColors:k,highlightedColors:T}=$e(),P=(0,g.useMemo)((()=>m?[...m,{css:"html{overflow:hidden}body{min-width: 0;padding: 0;border: none;}",isGlobalStyles:!0}]:m),[m]),I=!!v;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{style:{position:"relative"}},y),I&&(0,l.createElement)(fe.__unstableIframe,{className:"edit-site-global-styles-preview__iframe",style:{width:"100%",height:152*C},onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),tabIndex:-1},(0,l.createElement)(fe.__unstableEditorStyles,{styles:P}),(0,l.createElement)(b.__unstableMotion.div,{style:{height:152*C,width:"100%",background:null!=d?d:u,cursor:n?"pointer":void 0},initial:"start",animate:(h||t)&&!p&&e?"hover":"start"},(0,l.createElement)(b.__unstableMotion.div,{variants:Fr,style:{height:"100%",overflow:"hidden"}},(0,l.createElement)(b.__experimentalHStack,{spacing:10*C,justify:"center",style:{height:"100%",overflow:"hidden"}},(0,l.createElement)(b.__unstableMotion.div,{style:{fontFamily:s,fontSize:65*C,color:c,fontWeight:i},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:.3,type:"tween"}},"Aa"),(0,l.createElement)(b.__experimentalVStack,{spacing:4*C},T.map((({slug:e,color:t},n)=>(0,l.createElement)(b.__unstableMotion.div,{key:e,style:{height:32*C,width:32*C,background:t,borderRadius:32*C/2},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:1===n?.2:.1}})))))),(0,l.createElement)(b.__unstableMotion.div,{variants:n&&Rr,style:{height:"100%",width:"100%",position:"absolute",top:0,overflow:"hidden",filter:"blur(60px)",opacity:.1}},(0,l.createElement)(b.__experimentalHStack,{spacing:0,justify:"flex-start",style:{height:"100%",overflow:"hidden"}},k.slice(0,4).map((({color:e},t)=>(0,l.createElement)("div",{key:t,style:{height:"100%",background:e,flexGrow:1}}))))),(0,l.createElement)(b.__unstableMotion.div,{variants:Dr,style:{height:"100%",width:"100%",overflow:"hidden",position:"absolute",top:0}},(0,l.createElement)(b.__experimentalVStack,{spacing:3*C,justify:"center",style:{height:"100%",overflow:"hidden",padding:10*C,boxSizing:"border-box"}},e&&(0,l.createElement)("div",{style:{fontSize:40*C,fontFamily:s,color:c,fontWeight:i,lineHeight:"1em",textAlign:"center"}},e))))))},{GlobalStylesContext:Br,areGlobalStyleConfigsEqual:zr}=Xe(fe.privateApis);function Hr({variation:e}){const[t,n]=(0,g.useState)(!1),{base:r,user:a,setUserConfig:s}=(0,g.useContext)(Br),i=(0,g.useMemo)((()=>{var t,n;return{user:{settings:null!==(t=e.settings)&&void 0!==t?t:{},styles:null!==(n=e.styles)&&void 0!==n?n:{}},base:r,merged:Ir(r,e),setUserConfig:()=>{}}}),[e,r]),o=()=>{s((()=>({settings:e.settings,styles:e.styles})))},c=(0,g.useMemo)((()=>zr(a,e)),[a,e]);let u=e?.title;return e?.description&&(u=(0,E.sprintf)((0,E.__)("%1$s (%2$s)"),e?.title,e?.description)),(0,l.createElement)(Br.Provider,{value:i},(0,l.createElement)("div",{className:_()("edit-site-global-styles-variations_item",{"is-active":c}),role:"button",onClick:o,onKeyDown:e=>{e.keyCode===wr.ENTER&&(e.preventDefault(),o())},tabIndex:"0","aria-label":u,"aria-current":c,onFocus:()=>n(!0),onBlur:()=>n(!1)},(0,l.createElement)("div",{className:"edit-site-global-styles-variations_item-preview"},(0,l.createElement)(Lr,{label:e?.title,isFocused:t,withHoverView:!0}))))}function Gr(){const e=(0,m.useSelect)((e=>e(ye.store).__experimentalGetCurrentThemeGlobalStylesVariations()),[]),t=(0,g.useMemo)((()=>[{title:(0,E.__)("Default"),settings:{},styles:{}},...(null!=e?e:[]).map((e=>{var t,n;return{...e,settings:null!==(t=e.settings)&&void 0!==t?t:{},styles:null!==(n=e.styles)&&void 0!==n?n:{}}}))]),[e]);return(0,l.createElement)(b.__experimentalGrid,{columns:2,className:"edit-site-global-styles-style-variations-container"},t.map(((e,t)=>(0,l.createElement)(Hr,{key:t,variation:e}))))}const Ur=20;function Wr({variation:e="default",direction:t,resizeWidthBy:n}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("button",{className:`resizable-editor__drag-handle is-${t} is-variation-${e}`,"aria-label":(0,E.__)("Drag to resize"),"aria-describedby":`resizable-editor__resize-help-${t}`,onKeyDown:function(e){const{keyCode:r}=e;"left"===t&&r===wr.LEFT||"right"===t&&r===wr.RIGHT?n(Ur):("left"===t&&r===wr.RIGHT||"right"===t&&r===wr.LEFT)&&n(-Ur)},type:"button"}),(0,l.createElement)(b.VisuallyHidden,{id:`resizable-editor__resize-help-${t}`},(0,E.__)("Use left and right arrow keys to resize the canvas.")))}const jr={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0};const Zr=function({enableResizing:e,height:t,children:n}){const[r,a]=(0,g.useState)("100%"),s=(0,g.useRef)(),i=(0,g.useCallback)((e=>{s.current&&a(s.current.offsetWidth+e)}),[]);return(0,l.createElement)(b.ResizableBox,{ref:e=>{s.current=e?.resizable},size:{width:e?r:"100%",height:e&&t?t:"100%"},onResizeStop:(e,t,n)=>{a(n.style.width)},minWidth:300,maxWidth:"100%",maxHeight:"100%",enable:{left:e,right:e},showHandle:e,resizeRatio:2,handleComponent:{left:(0,l.createElement)(Wr,{direction:"left",resizeWidthBy:i}),right:(0,l.createElement)(Wr,{direction:"right",resizeWidthBy:i})},handleClasses:void 0,handleStyles:{left:jr,right:jr}},n)};function qr(e){switch(e){case"style-book":return(0,E.__)("Style Book");case"global-styles-revisions":case"global-styles-revisions:style-book":return(0,E.__)("Style Revisions");default:return""}}const{createPrivateSlotFill:Yr}=Xe(b.privateApis),{privateKey:Kr,Slot:Xr,Fill:Jr}=Yr("EditSiteEditorCanvasContainerSlot");function Qr({children:e,closeButtonLabel:t,onClose:n,enableResizing:r=!1}){const{editorCanvasContainerView:a,showListViewByDefault:s}=(0,m.useSelect)((e=>({editorCanvasContainerView:Xe(e(tr)).getEditorCanvasContainerView(),showListViewByDefault:e(T.store).get("core","showListViewByDefault")})),[]),[i,o]=(0,g.useState)(!1),{setEditorCanvasContainerView:c}=Xe((0,m.useDispatch)(tr)),{setIsListViewOpened:u}=(0,m.useDispatch)(y.store),d=(0,ie.useFocusOnMount)("firstElement"),p=(0,ie.useFocusReturn)(),h=(0,g.useMemo)((()=>qr(a)),[a]);function f(){u(s),c(void 0),o(!0),"function"==typeof n&&n()}const v=Array.isArray(e)?g.Children.map(e,((e,t)=>0===t?(0,g.cloneElement)(e,{ref:p}):e)):(0,g.cloneElement)(e,{ref:p});if(i)return null;const _=n||t;return(0,l.createElement)(Jr,null,(0,l.createElement)(Zr,{enableResizing:r},(0,l.createElement)("section",{className:"edit-site-editor-canvas-container",ref:_?d:null,onKeyDown:function(e){e.keyCode!==wr.ESCAPE||e.defaultPrevented||(e.preventDefault(),f())},"aria-label":h},_&&(0,l.createElement)(b.Button,{className:"edit-site-editor-canvas-container__close-button",icon:P,label:t||(0,E.__)("Close"),onClick:f,showTooltip:!1}),v)))}Qr.Slot=Xr;const $r=Qr,{ExperimentalBlockEditorProvider:ea,useGlobalStyle:ta,GlobalStylesContext:na,useGlobalStylesOutputWithConfig:ra}=Xe(fe.privateApis),{CompositeV2:aa,CompositeItemV2:sa,useCompositeStoreV2:ia,Tabs:oa}=Xe(b.privateApis);function la(e){return!e||0===Object.keys(e).length}function ca(){return[{name:"core/heading",title:(0,E.__)("Headings"),category:"text",blocks:[(0,u.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:1}),(0,u.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:2}),(0,u.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:3}),(0,u.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:4}),(0,u.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:5})]},...(0,u.getBlockTypes)().filter((e=>{const{name:t,example:n,supports:r}=e;return"core/heading"!==t&&!!n&&!1!==r.inserter})).map((e=>({name:e.name,title:e.title,category:e.category,blocks:(0,u.getBlockFromExample)(e.name,e.example)})))]}const ua=({category:e,examples:t,isSelected:n,onClick:r,onSelect:a,settings:s,sizes:i,title:o})=>{const[c,u]=(0,g.useState)(!1),d={role:"button",onFocus:()=>u(!0),onBlur:()=>u(!1),onKeyDown:e=>{if(e.defaultPrevented)return;const{keyCode:t}=e;!r||t!==wr.ENTER&&t!==wr.SPACE||(e.preventDefault(),r(e))},onClick:e=>{e.defaultPrevented||r&&(e.preventDefault(),r(e))},readonly:!0},m=r?"body { cursor: pointer; } body * { pointer-events: none; }":"";return(0,l.createElement)(fe.__unstableIframe,{className:_()("edit-site-style-book__iframe",{"is-focused":c&&!!r,"is-button":!!r}),name:"style-book-canvas",tabIndex:0,...r?d:{}},(0,l.createElement)(fe.__unstableEditorStyles,{styles:s.styles}),(0,l.createElement)("style",null,'.is-root-container { display: flow-root; }\n\t\t\t\t\t\tbody { position: relative; padding: 32px !important; }\n\t.edit-site-style-book__examples {\n\t\tmax-width: 900px;\n\t\tmargin: 0 auto;\n\t}\n\n\t.edit-site-style-book__example {\n\t\tborder-radius: 2px;\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: 40px;\n\t\tmargin-bottom: 40px;\n\t\tpadding: 16px;\n\t\twidth: 100%;\n\t\tbox-sizing: border-box;\n\t\tscroll-margin-top: 32px;\n\t\tscroll-margin-bottom: 32px;\n\t}\n\n\t.edit-site-style-book__example.is-selected {\n\t\tbox-shadow: 0 0 0 1px var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));\n\t}\n\n\t.edit-site-style-book__example:focus:not(:disabled) {\n\t\tbox-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));\n\t\toutline: 3px solid transparent;\n\t}\n\n\t.edit-site-style-book__examples.is-wide .edit-site-style-book__example {\n\t\tflex-direction: row;\n\t}\n\n\t.edit-site-style-book__example-title {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\t\tfont-size: 11px;\n\t\tfont-weight: 500;\n\t\tline-height: normal;\n\t\tmargin: 0;\n\t\ttext-align: left;\n\t\ttext-transform: uppercase;\n\t}\n\n\t.edit-site-style-book__examples.is-wide .edit-site-style-book__example-title {\n\t\ttext-align: right;\n\t\twidth: 120px;\n\t}\n\n\t.edit-site-style-book__example-preview {\n\t\twidth: 100%;\n\t}\n\n\t.edit-site-style-book__example-preview .block-editor-block-list__insertion-point,\n\t.edit-site-style-book__example-preview .block-list-appender {\n\t\tdisplay: none;\n\t}\n\n\t.edit-site-style-book__example-preview .is-root-container > .wp-block:first-child {\n\t\tmargin-top: 0;\n\t}\n\t.edit-site-style-book__example-preview .is-root-container > .wp-block:last-child {\n\t\tmargin-bottom: 0;\n\t}\n'+m),(0,l.createElement)(da,{className:_()("edit-site-style-book__examples",{"is-wide":i.width>600}),examples:t,category:e,label:o?(0,E.sprintf)((0,E.__)("Examples of blocks in the %s category"),o):(0,E.__)("Examples of blocks"),isSelected:n,onSelect:a,key:e}))},da=(0,g.memo)((({className:e,examples:t,category:n,label:r,isSelected:a,onSelect:s})=>{const i=ia({orientation:"vertical"});return(0,l.createElement)(aa,{store:i,className:e,"aria-label":r,role:"grid"},t.filter((e=>!n||e.category===n)).map((e=>(0,l.createElement)(ma,{key:e.name,id:`example-${e.name}`,title:e.title,blocks:e.blocks,isSelected:a(e.name),onClick:()=>{s?.(e.name)}}))))})),ma=({id:e,title:t,blocks:n,isSelected:r,onClick:a})=>{const s=(0,m.useSelect)((e=>e(fe.store).getSettings()),[]),i=(0,g.useMemo)((()=>({...s,focusMode:!1,__unstableIsPreviewMode:!0})),[s]),o=(0,g.useMemo)((()=>Array.isArray(n)?n:[n]),[n]);return(0,l.createElement)("div",{role:"row"},(0,l.createElement)("div",{role:"gridcell"},(0,l.createElement)(sa,{className:_()("edit-site-style-book__example",{"is-selected":r}),id:e,"aria-label":(0,E.sprintf)((0,E.__)("Open %s styles in Styles panel"),t),render:(0,l.createElement)("div",null),role:"button",onClick:a},(0,l.createElement)("span",{className:"edit-site-style-book__example-title"},t),(0,l.createElement)("div",{className:"edit-site-style-book__example-preview","aria-hidden":!0},(0,l.createElement)(b.Disabled,{className:"edit-site-style-book__example-preview__content"},(0,l.createElement)(ea,{value:o,settings:i},(0,l.createElement)(fe.BlockList,{renderAppender:!1})))))))},pa=function({enableResizing:e=!0,isSelected:t,onClick:n,onSelect:r,showCloseButton:a=!0,onClose:s,showTabs:i=!0,userConfig:o={}}){const[c,d]=(0,ie.useResizeObserver)(),[p]=ta("color.text"),[h]=ta("color.background"),f=(0,g.useMemo)(ca,[]),y=(0,g.useMemo)((()=>(0,u.getCategories)().filter((e=>f.some((t=>t.category===e.slug)))).map((e=>({name:e.slug,title:e.title,icon:e.icon})))),[f]),{base:v}=(0,g.useContext)(na),b=(0,g.useMemo)((()=>la(o)||la(v)?{}:Ir(v,o)),[v,o]),w=(0,m.useSelect)((e=>e(fe.store).getSettings()),[]),S=(0,g.useMemo)((()=>({...w,__unstableIsPreviewMode:!0})),[w]),[x]=ra(b);return S.styles=la(x)||la(o)?S.styles:x,(0,l.createElement)($r,{onClose:s,enableResizing:e,closeButtonLabel:a?(0,E.__)("Close Style Book"):null},(0,l.createElement)("div",{className:_()("edit-site-style-book",{"is-wide":d.width>600,"is-button":!!n}),style:{color:p,background:h}},c,i?(0,l.createElement)("div",{className:"edit-site-style-book__tabs"},(0,l.createElement)(oa,null,(0,l.createElement)(oa.TabList,null,y.map((e=>(0,l.createElement)(oa.Tab,{tabId:e.name,key:e.name},e.title)))),y.map((e=>(0,l.createElement)(oa.TabPanel,{key:e.name,tabId:e.name,focusable:!1},(0,l.createElement)(ua,{category:e.name,examples:f,isSelected:t,onSelect:r,settings:S,sizes:d,title:e.title})))))):(0,l.createElement)(ua,{examples:f,isSelected:t,onClick:n,onSelect:r,settings:S,sizes:d})))},ha={per_page:-1,_fields:"id,name,avatar_urls",context:"view",capabilities:["edit_theme_options"]},fa={per_page:100,page:1},ga=[],{GlobalStylesContext:ya}=Xe(fe.privateApis);function va({query:e}={}){const{user:t}=(0,g.useContext)(ya),n={...fa,...e},{authors:r,currentUser:a,isDirty:s,revisions:i,isLoadingGlobalStylesRevisions:o,revisionsCount:l}=(0,m.useSelect)((e=>{var t;const{__experimentalGetDirtyEntityRecords:r,getCurrentUser:a,getUsers:s,getRevisions:i,__experimentalGetCurrentGlobalStylesId:o,getEntityRecord:l,isResolving:c}=e(ye.store),u=r(),d=a(),m=u.length>0,p=o(),h=p?l("root","globalStyles",p):void 0,f=null!==(t=h?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0,g=i("root","globalStyles",p,n)||ga;return{authors:s(ha)||ga,currentUser:d,isDirty:m,revisions:g,isLoadingGlobalStylesRevisions:c("getRevisions",["root","globalStyles",p,n]),revisionsCount:f}}),[e]);return(0,g.useMemo)((()=>{if(!r.length||o)return{revisions:ga,hasUnsavedChanges:s,isLoading:!0,revisionsCount:l};const e=i.map((e=>({...e,author:r.find((t=>t.id===e.author))})));if(i.length){if("unsaved"!==e[0].id&&1===n.page&&(e[0].isLatest=!0),s&&t&&Object.keys(t).length>0&&a&&1===n.page){const n={id:"unsaved",styles:t?.styles,settings:t?.settings,author:{name:a?.name,avatar_urls:a?.avatar_urls},modified:new Date};e.unshift(n)}n.page===Math.ceil(l/n.per_page)&&e.push({id:"parent",styles:{},settings:{}})}return{revisions:e,hasUnsavedChanges:s,isLoading:!1,revisionsCount:l}}),[s,i,a,r,t,o])}const _a=window.wp.date,ba=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"}));function Ea({children:e}){return(0,l.createElement)(b.__experimentalText,{className:"edit-site-sidebar-navigation-details-screen-panel__label"},e)}function wa({label:e,children:t,className:n,...r}){return(0,l.createElement)(b.__experimentalHStack,{key:e,spacing:5,alignment:"left",className:_()("edit-site-sidebar-navigation-details-screen-panel__row",n),...r},t)}function Sa({children:e}){return(0,l.createElement)(b.__experimentalText,{className:"edit-site-sidebar-navigation-details-screen-panel__value"},e)}function xa({title:e,children:t,spacing:n}){return(0,l.createElement)(b.__experimentalVStack,{className:"edit-site-sidebar-navigation-details-screen-panel",spacing:n},e&&(0,l.createElement)(b.__experimentalHeading,{className:"edit-site-sidebar-navigation-details-screen-panel__heading",level:2},e),t)}function Ca({record:e,...t}){const n={};return e?._links?.["predecessor-version"]?.[0]?.id&&(n.href=(0,yt.addQueryArgs)("revision.php",{revision:e?._links["predecessor-version"][0].id}),n.as="a"),(0,l.createElement)(b.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-details-footer"},(0,l.createElement)(vr,{"aria-label":(0,E.__)("Revisions"),...n,...t},(0,l.createElement)(wa,{justify:"space-between"},(0,l.createElement)(Ea,null,(0,E.__)("Last modified")),(0,l.createElement)(Sa,null,(0,g.createInterpolateElement)((0,E.sprintf)((0,E.__)("<time>%s</time>"),(0,_a.humanTimeDiff)(e.modified)),{time:(0,l.createElement)("time",{dateTime:e.modified})})),(0,l.createElement)(b.Icon,{className:"edit-site-sidebar-navigation-screen-details-footer__icon",icon:ba}))))}const ka=()=>{};function Ta(e){const{openGeneralSidebar:t}=(0,m.useDispatch)(tr),{setCanvasMode:n}=Xe((0,m.useDispatch)(tr));return(0,m.useSelect)((e=>!!e(ye.store).__experimentalGetCurrentThemeGlobalStylesVariations()?.length),[])?(0,l.createElement)(b.__experimentalNavigatorButton,{...e,as:vr,path:"/wp_global_styles"}):(0,l.createElement)(vr,{...e,onClick:()=>{n("edit"),t("edit-site/global-styles")}})}function Pa(){const{storedSettings:e}=(0,m.useSelect)((e=>{const{getSettings:t}=Xe(e(tr));return{storedSettings:t()}}),[]);return(0,l.createElement)(fe.BlockEditorProvider,{settings:e,onChange:ka,onInput:ka},(0,l.createElement)(Gr,null))}function Ia(){const{revisions:e,isLoading:t}=va(),{openGeneralSidebar:n}=(0,m.useDispatch)(tr),{setIsListViewOpened:r}=(0,m.useDispatch)(y.store),a=(0,ie.useViewportMatch)("medium","<"),{setCanvasMode:s,setEditorCanvasContainerView:i}=Xe((0,m.useDispatch)(tr)),{isViewMode:o,isStyleBookOpened:c,revisionsCount:u}=(0,m.useSelect)((e=>{var t;const{getCanvasMode:n,getEditorCanvasContainerView:r}=Xe(e(tr)),{getEntityRecord:a,__experimentalGetCurrentGlobalStylesId:s}=e(ye.store),i=s(),o=i?a("root","globalStyles",i):void 0;return{isViewMode:"view"===n(),isStyleBookOpened:"style-book"===r(),revisionsCount:null!==(t=o?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}}),[]),d=(0,g.useCallback)((async()=>Promise.all([s("edit"),n("edit-site/global-styles")])),[s,n]),p=(0,g.useCallback)((async()=>{await d(),i("style-book"),r(!1)}),[d,i,r]),h=(0,g.useCallback)((async()=>{await d(),i("global-styles-revisions")}),[d,i]),f=u>0,v=e?.[0]?.modified,_=f&&!t&&v;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(hr,{title:(0,E.__)("Styles"),description:(0,E.__)("Choose a different style combination for the theme styles."),content:(0,l.createElement)(Pa,null),footer:_&&(0,l.createElement)(Ca,{record:e?.[0],onClick:h}),actions:(0,l.createElement)(l.Fragment,null,!a&&(0,l.createElement)(mr,{icon:_r,label:(0,E.__)("Style Book"),onClick:()=>i(c?void 0:"style-book"),isPressed:c}),(0,l.createElement)(mr,{icon:Er,label:(0,E.__)("Edit styles"),onClick:async()=>await d()}))}),c&&!a&&o&&(0,l.createElement)(pa,{enableResizing:!1,isSelected:()=>!1,onClick:p,onSelect:p,showCloseButton:!1,showTabs:!1}))}const Ma="isTemplatePartMoveHintVisible";function Aa(){const e=(0,m.useSelect)((e=>{var t;return null===(t=e(T.store).get("core",Ma))||void 0===t||t}),[]),{set:t}=(0,m.useDispatch)(T.store);return e?(0,l.createElement)(b.Notice,{politeness:"polite",className:"edit-site-sidebar__notice",onRemove:()=>{t("core",Ma,!1)}},(0,E.__)('Looking for template parts? Find them in "Patterns".')):null}function Oa(){const{location:e}=(0,b.__experimentalUseNavigator)(),{setEditorCanvasContainerView:t}=Xe((0,m.useDispatch)(tr));return(0,g.useEffect)((()=>{"/"===e?.path&&t(void 0)}),[t,e?.path]),(0,l.createElement)(hr,{isRoot:!0,title:(0,E.__)("Design"),description:(0,E.__)("Customize the appearance of your website using the block editor."),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.__experimentalItemGroup,null,(0,l.createElement)(b.__experimentalNavigatorButton,{as:vr,path:"/navigation",withChevron:!0,icon:sr},(0,E.__)("Navigation")),(0,l.createElement)(Ta,{withChevron:!0,icon:ir},(0,E.__)("Styles")),(0,l.createElement)(b.__experimentalNavigatorButton,{as:vr,path:"/page",withChevron:!0,icon:or},(0,E.__)("Pages")),(0,l.createElement)(b.__experimentalNavigatorButton,{as:vr,path:"/wp_template",withChevron:!0,icon:lr},(0,E.__)("Templates")),(0,l.createElement)(b.__experimentalNavigatorButton,{as:vr,path:"/patterns",withChevron:!0,icon:cr},(0,E.__)("Patterns"))),(0,l.createElement)(Aa,null))})}const Na=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})),Fa=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.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"})),Ra=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})),Da=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"})),Va=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})),La=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v10zm-11-7.6h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-.9 3.5H6.3l1.2-1.7v1.7zm5.6-3.2c-.4-.2-.8-.4-1.2-.4-.5 0-.9.1-1.2.4-.4.2-.6.6-.8 1-.2.4-.3.9-.3 1.5s.1 1.1.3 1.6c.2.4.5.8.8 1 .4.2.8.4 1.2.4.5 0 .9-.1 1.2-.4.4-.2.6-.6.8-1 .2-.4.3-1 .3-1.6 0-.6-.1-1.1-.3-1.5-.1-.5-.4-.8-.8-1zm0 3.6c-.1.3-.3.5-.5.7-.2.1-.4.2-.7.2-.3 0-.5-.1-.7-.2-.2-.1-.4-.4-.5-.7-.1-.3-.2-.7-.2-1.2 0-.7.1-1.2.4-1.5.3-.3.6-.5 1-.5s.7.2 1 .5c.3.3.4.8.4 1.5-.1.5-.1.9-.2 1.2zm5-3.9h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-1 3.5H16l1.2-1.7v1.7z"})),Ba=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.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"})),za=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})),Ha=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})),Ga=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{fillRule:"evenodd",d:"M8.95 11.25H4v1.5h4.95v4.5H13V18c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75h-2.55v-7.5H13V9c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75H8.95v4.5ZM14.5 15v3c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5v-3c0-.3-.2-.5-.5-.5h-3c-.3 0-.5.2-.5.5Zm0-6V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5Z",clipRule:"evenodd"})),Ua=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})),Wa=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})),ja=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,l.createElement)(w.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})),Za=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})),qa=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})),Ya=(e,t)=>{let n=e;return t.split(".").forEach((e=>{n=n?.[e]})),n},Ka=(e,t)=>(e||[]).map((e=>({...e,name:(0,en.decodeEntities)(Ya(e,t))}))),Xa=()=>(0,m.useSelect)((e=>e(ye.store).getEntityRecords("postType",Ct,{per_page:-1})),[]),Ja=()=>(0,m.useSelect)((e=>e(y.store).__experimentalGetDefaultTemplateTypes()),[]),Qa=()=>{const e=(0,m.useSelect)((e=>e(ye.store).getPostTypes({per_page:-1})),[]);return(0,g.useMemo)((()=>{const t=["attachment"];return e?.filter((({viewable:e,slug:n})=>e&&!t.includes(n)))}),[e])};function $a(e){const t=(0,g.useMemo)((()=>e?.reduce(((e,{labels:t})=>{const n=t.singular_name.toLowerCase();return e[n]=(e[n]||0)+1,e}),{})));return(0,g.useCallback)((({labels:e,slug:n})=>{const r=e.singular_name.toLowerCase();return t[r]>1&&r!==n}),[t])}function es(){const e=Qa(),t=(0,g.useMemo)((()=>e?.filter((e=>e.has_archive))),[e]),n=Xa(),r=$a(t);return(0,g.useMemo)((()=>t?.filter((e=>!(n||[]).some((t=>t.slug==="archive-"+e.slug)))).map((e=>{let t;return t=r(e)?(0,E.sprintf)((0,E.__)("Archive: %1$s (%2$s)"),e.labels.singular_name,e.slug):(0,E.sprintf)((0,E.__)("Archive: %s"),e.labels.singular_name),{slug:"archive-"+e.slug,description:(0,E.sprintf)((0,E.__)("Displays an archive with the latest posts of type: %s."),e.labels.singular_name),title:t,icon:e.icon?.startsWith("dashicons-")?e.icon.slice(10):Da,templatePrefix:"archive"}}))||[]),[t,n,r])}const ts=e=>{const t=Qa(),n=Xa(),r=Ja(),a=$a(t),s=(0,g.useMemo)((()=>t?.reduce(((e,{slug:t})=>{let n=t;return"page"!==t&&(n=`single-${n}`),e[t]=n,e}),{})),[t]),i=is("postType",s),o=(n||[]).map((({slug:e})=>e)),l=(t||[]).reduce(((t,n)=>{const{slug:l,labels:c,icon:u}=n,d=s[l],m=r?.find((({slug:e})=>e===d)),p=o?.includes(d),h=a(n);let f=(0,E.sprintf)((0,E.__)("Single item: %s"),c.singular_name);h&&(f=(0,E.sprintf)((0,E.__)("Single item: %1$s (%2$s)"),c.singular_name,l));const g=m?{...m,templatePrefix:s[l]}:{slug:d,title:f,description:(0,E.sprintf)((0,E.__)("Displays a single item: %s."),c.singular_name),icon:u?.startsWith("dashicons-")?u.slice(10):qa,templatePrefix:s[l]},y=i?.[l]?.hasEntities;return y&&(g.onClick=t=>{e({type:"postType",slug:l,config:{recordNamePath:"title.rendered",queryArgs:({search:e})=>({_fields:"id,title,slug,link",orderBy:e?"relevance":"modified",exclude:i[l].existingEntitiesIds}),getSpecificTemplate:e=>{const t=`${s[l]}-${e.slug}`;return{title:t,slug:t,templatePrefix:s[l]}}},labels:c,hasGeneralTemplate:p,template:t})}),p&&!y||t.push(g),t}),[]),c=(0,g.useMemo)((()=>l.reduce(((e,t)=>{const{slug:n}=t;let r="postTypesMenuItems";return"page"===n&&(r="defaultPostTypesMenuItems"),e[r].push(t),e}),{defaultPostTypesMenuItems:[],postTypesMenuItems:[]})),[l]);return c},ns=e=>{const t=(()=>{const e=(0,m.useSelect)((e=>e(ye.store).getTaxonomies({per_page:-1})),[]);return(0,g.useMemo)((()=>e?.filter((({visibility:e})=>e?.publicly_queryable))),[e])})(),n=Xa(),r=Ja(),a=(0,g.useMemo)((()=>t?.reduce(((e,{slug:t})=>{let n=t;return["category","post_tag"].includes(t)||(n=`taxonomy-${n}`),"post_tag"===t&&(n="tag"),e[t]=n,e}),{})),[t]),s=t?.reduce(((e,{labels:t})=>{const n=t.singular_name.toLowerCase();return e[n]=(e[n]||0)+1,e}),{}),i=is("taxonomy",a),o=(n||[]).map((({slug:e})=>e)),l=(t||[]).reduce(((t,n)=>{const{slug:l,labels:c}=n,u=a[l],d=r?.find((({slug:e})=>e===u)),m=o?.includes(u),p=((e,t)=>{if(["category","post_tag"].includes(t))return!1;const n=e.singular_name.toLowerCase();return s[n]>1&&n!==t})(c,l);let h=c.singular_name;p&&(h=(0,E.sprintf)((0,E.__)("%1$s (%2$s)"),c.singular_name,l));const f=d?{...d,templatePrefix:a[l]}:{slug:u,title:h,description:(0,E.sprintf)((0,E.__)("Displays taxonomy: %s."),c.singular_name),icon:Ga,templatePrefix:a[l]},g=i?.[l]?.hasEntities;return g&&(f.onClick=t=>{e({type:"taxonomy",slug:l,config:{queryArgs:({search:e})=>({_fields:"id,name,slug,link",orderBy:e?"name":"count",exclude:i[l].existingEntitiesIds}),getSpecificTemplate:e=>{const t=`${a[l]}-${e.slug}`;return{title:t,slug:t,templatePrefix:a[l]}}},labels:c,hasGeneralTemplate:m,template:t})}),m&&!g||t.push(f),t}),[]);return(0,g.useMemo)((()=>l.reduce(((e,t)=>{const{slug:n}=t;let r="taxonomiesMenuItems";return["category","tag"].includes(n)&&(r="defaultTaxonomiesMenuItems"),e[r].push(t),e}),{defaultTaxonomiesMenuItems:[],taxonomiesMenuItems:[]})),[l])},rs={user:"author"},as={user:{who:"authors"}};const ss=(e,t,n={})=>{const r=(e=>{const t=Xa();return(0,g.useMemo)((()=>Object.entries(e||{}).reduce(((e,[n,r])=>{const a=(t||[]).reduce(((e,t)=>{const n=`${r}-`;return t.slug.startsWith(n)&&e.push(t.slug.substring(n.length)),e}),[]);return a.length&&(e[n]=a),e}),{})),[e,t])})(t);return(0,m.useSelect)((t=>Object.entries(r||{}).reduce(((r,[a,s])=>{const i=t(ye.store).getEntityRecords(e,a,{_fields:"id",context:"view",slug:s,...n[a]});return i?.length&&(r[a]=i),r}),{})),[r])},is=(e,t,n={})=>{const r=ss(e,t,n);return(0,m.useSelect)((a=>Object.keys(t||{}).reduce(((t,s)=>{const i=r?.[s]?.map((({id:e})=>e))||[];return t[s]={hasEntities:!!a(ye.store).getEntityRecords(e,s,{per_page:1,_fields:"id",context:"view",exclude:i,...n[s]})?.length,existingEntitiesIds:i},t}),{})),[t,r])},{CompositeV2:os,CompositeItemV2:ls,useCompositeStoreV2:cs}=Xe(b.privateApis),us=[];function ds({suggestion:e,search:t,onSelect:n,entityForSuggestions:r}){const a="edit-site-custom-template-modal__suggestions_list__list-item";return(0,l.createElement)(ls,{render:(0,l.createElement)(b.Button,{role:"option",className:a,onClick:()=>n(r.config.getSpecificTemplate(e))})},(0,l.createElement)(b.__experimentalText,{size:"body",lineHeight:1.53846153846,weight:500,className:`${a}__title`},(0,l.createElement)(b.TextHighlight,{text:(0,en.decodeEntities)(e.name),highlight:t})),e.link&&(0,l.createElement)(b.__experimentalText,{size:"body",lineHeight:1.53846153846,className:`${a}__info`},e.link))}function ms({entityForSuggestions:e,onSelect:t}){const n=cs({orientation:"vertical"}),[r,a,s]=(0,ie.useDebouncedInput)(),i=function(e,t){const{config:n}=e,r=(0,g.useMemo)((()=>({order:"asc",context:"view",search:t,per_page:t?20:10,...n.queryArgs(t)})),[t,n]),{records:a,hasResolved:s}=(0,ye.useEntityRecords)(e.type,e.slug,r),[i,o]=(0,g.useState)(us);return(0,g.useEffect)((()=>{if(!s)return;let e=us;a?.length&&(e=a,n.recordNamePath&&(e=Ka(e,n.recordNamePath))),o(e)}),[a,s]),i}(e,s),{labels:o}=e,[c,u]=(0,g.useState)(!1);return!c&&i?.length>9&&u(!0),(0,l.createElement)(l.Fragment,null,c&&(0,l.createElement)(b.SearchControl,{__nextHasNoMarginBottom:!0,onChange:a,value:r,label:o.search_items,placeholder:o.search_items}),!!i?.length&&(0,l.createElement)(os,{store:n,role:"listbox",className:"edit-site-custom-template-modal__suggestions_list","aria-label":(0,E.__)("Suggestions list")},i.map((n=>(0,l.createElement)(ds,{key:n.slug,suggestion:n,search:s,onSelect:t,entityForSuggestions:e})))),s&&!i?.length&&(0,l.createElement)(b.__experimentalText,{as:"p",className:"edit-site-custom-template-modal__no-results"},o.not_found))}const ps=function({onSelect:e,entityForSuggestions:t}){const[n,r]=(0,g.useState)(t.hasGeneralTemplate);return(0,l.createElement)(b.__experimentalVStack,{spacing:4,className:"edit-site-custom-template-modal__contents-wrapper",alignment:"left"},!n&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.__experimentalText,{as:"p"},(0,E.__)("Select whether to create a single template for all items or a specific one.")),(0,l.createElement)(b.Flex,{className:"edit-site-custom-template-modal__contents",gap:"4",align:"initial"},(0,l.createElement)(b.FlexItem,{isBlock:!0,as:b.Button,onClick:()=>{const{slug:n,title:r,description:a,templatePrefix:s}=t.template;e({slug:n,title:r,description:a,templatePrefix:s})}},(0,l.createElement)(b.__experimentalText,{as:"span",weight:500,lineHeight:1.53846153846},t.labels.all_items),(0,l.createElement)(b.__experimentalText,{as:"span",lineHeight:1.53846153846},(0,E.__)("For all items"))),(0,l.createElement)(b.FlexItem,{isBlock:!0,as:b.Button,onClick:()=>{r(!0)}},(0,l.createElement)(b.__experimentalText,{as:"span",weight:500,lineHeight:1.53846153846},t.labels.singular_name),(0,l.createElement)(b.__experimentalText,{as:"span",lineHeight:1.53846153846},(0,E.__)("For a specific item"))))),n&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.__experimentalText,{as:"p"},(0,E.__)("This template will be used only for the specific item chosen.")),(0,l.createElement)(ms,{entityForSuggestions:t,onSelect:e})))};var hs=function(){return hs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},hs.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function fs(e){return e.toLowerCase()}var gs=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],ys=/[^A-Z0-9]+/gi;function vs(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?gs:n,a=t.stripRegexp,s=void 0===a?ys:a,i=t.transform,o=void 0===i?fs:i,l=t.delimiter,c=void 0===l?" ":l,u=_s(_s(e,r,"$1\0$2"),s,"\0"),d=0,m=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(m-1);)m--;return u.slice(d,m).split("\0").map(o).join(c)}function _s(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function bs(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),vs(e,hs({delimiter:"."},t))}(e,hs({delimiter:"-"},t))}const Es=function({onClose:e,createTemplate:t}){const[n,r]=(0,g.useState)(""),a=(0,E.__)("Custom Template"),[s,i]=(0,g.useState)(!1);return(0,l.createElement)("form",{onSubmit:async function(e){if(e.preventDefault(),!s){i(!0);try{await t({slug:"wp-custom-template-"+bs(n||a),title:n||a},!1)}finally{i(!1)}}}},(0,l.createElement)(b.__experimentalVStack,{spacing:6},(0,l.createElement)(b.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:n,onChange:r,placeholder:a,disabled:s,help:(0,E.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')}),(0,l.createElement)(b.__experimentalHStack,{className:"edit-site-custom-generic-template__modal-actions",justify:"right"},(0,l.createElement)(b.Button,{variant:"tertiary",onClick:()=>{e()}},(0,E.__)("Cancel")),(0,l.createElement)(b.Button,{variant:"primary",type:"submit",isBusy:s,"aria-disabled":s},(0,E.__)("Create")))))};function ws(){const e="edit-site-template-actions-loading-screen-modal";return(0,l.createElement)(b.Modal,{isFullScreen:!0,isDismissible:!1,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,onRequestClose:()=>{},__experimentalHideHeader:!0,className:e},(0,l.createElement)("div",{className:`${e}__content`},(0,l.createElement)(b.Spinner,null)))}const{useHistory:Ss}=Xe(gt.privateApis),xs=["front-page","home","single","page","index","archive","author","category","date","tag","search","404"],Cs={"front-page":Na,home:Fa,single:Ra,page:or,archive:Da,search:Va,404:La,index:Ba,category:za,author:Ha,taxonomy:Ga,date:Ua,tag:Wa,attachment:ja};function ks({title:e,direction:t,className:n,description:r,icon:a,onClick:s,children:i}){return(0,l.createElement)(b.Button,{className:n,onClick:s,label:r,showTooltip:!!r},(0,l.createElement)(b.Flex,{as:"span",spacing:2,align:"center",justify:"center",style:{width:"100%"},direction:t},(0,l.createElement)("div",{className:"edit-site-add-new-template__template-icon"},(0,l.createElement)(b.Icon,{icon:a})),(0,l.createElement)(b.__experimentalVStack,{className:"edit-site-add-new-template__template-name",alignment:"center",spacing:0},(0,l.createElement)(b.__experimentalText,{weight:500,lineHeight:1.53846153846},e),i)))}const Ts={templatesList:1,customTemplate:2,customGenericTemplate:3};function Ps({postType:e,toggleProps:t,showIcon:n=!0}){const[r,a]=(0,g.useState)(!1),[s,i]=(0,g.useState)(Ts.templatesList),[o,c]=(0,g.useState)({}),[u,d]=(0,g.useState)(!1),p=Ss(),{saveEntityRecord:h}=(0,m.useDispatch)(ye.store),{createErrorNotice:f,createSuccessNotice:y}=(0,m.useDispatch)(ge.store),{homeUrl:v}=(0,m.useSelect)((e=>{const{getUnstableBase:t}=e(ye.store);return{homeUrl:t()?.home}}),[]),w={"front-page":v,date:(0,E.sprintf)((0,E.__)("E.g. %s"),v+"/"+(new Date).getFullYear())};async function S(e,t=!0){if(!u){d(!0);try{const{title:n,description:r,slug:a}=e,s=await h("postType",Ct,{description:r,slug:a.toString(),status:"publish",title:n,is_wp_suggestion:t},{throwOnError:!0});p.push({postId:s.id,postType:s.type,canvas:"edit"}),y((0,E.sprintf)((0,E.__)('"%s" successfully created.'),(0,en.decodeEntities)(s.title?.rendered||n)),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the template.");f(t,{type:"snackbar"})}finally{d(!1)}}}const x=()=>{a(!1),i(Ts.templatesList)},C=function(e,t){const n=Xa(),r=Ja(),a=(n||[]).map((({slug:e})=>e)),s=(r||[]).filter((e=>xs.includes(e.slug)&&!a.includes(e.slug))),i=n=>{t?.(),e(n)},o=[...s],{defaultTaxonomiesMenuItems:l,taxonomiesMenuItems:c}=ns(i),{defaultPostTypesMenuItems:u,postTypesMenuItems:d}=ts(i),m=function(e){const t=Xa(),n=Ja(),r=is("root",rs,as);let a=n?.find((({slug:e})=>"author"===e));a||(a={description:(0,E.__)("Displays latest posts written by a single author."),slug:"author",title:"Author"});const s=!!t?.find((({slug:e})=>"author"===e));if(r.user?.hasEntities&&(a={...a,templatePrefix:"author"},a.onClick=t=>{e({type:"root",slug:"user",config:{queryArgs:({search:e})=>({_fields:"id,name,slug,link",orderBy:e?"name":"registered_date",exclude:r.user.existingEntitiesIds,who:"authors"}),getSpecificTemplate:e=>{const t=`author-${e.slug}`;return{title:t,slug:t,templatePrefix:"author"}}},labels:{singular_name:(0,E.__)("Author"),search_items:(0,E.__)("Search Authors"),not_found:(0,E.__)("No authors found."),all_items:(0,E.__)("All Authors")},hasGeneralTemplate:s,template:t})}),!s||r.user?.hasEntities)return a}(i);[...l,...u,m].forEach((e=>{if(!e)return;const t=o.findIndex((t=>t.slug===e.slug));t>-1?o[t]=e:o.push(e)})),o?.sort(((e,t)=>xs.indexOf(e.slug)-xs.indexOf(t.slug)));const p=[...o,...es(),...d,...c];return p}(c,(()=>i(Ts.customTemplate)));if(!C.length)return null;const{as:k=b.Button,...T}=null!=t?t:{};let P=(0,E.__)("Add template");return s===Ts.customTemplate?P=(0,E.sprintf)((0,E.__)("Add template: %s"),o.labels.singular_name):s===Ts.customGenericTemplate&&(P=(0,E.__)("Create custom template")),(0,l.createElement)(l.Fragment,null,u&&(0,l.createElement)(ws,null),(0,l.createElement)(k,{...T,onClick:()=>a(!0),icon:n?Za:null,label:e.labels.add_new_item},n?null:e.labels.add_new_item),r&&(0,l.createElement)(b.Modal,{title:P,className:_()("edit-site-add-new-template__modal",{"edit-site-add-new-template__modal_template_list":s===Ts.templatesList,"edit-site-custom-template-modal":s===Ts.customTemplate}),onRequestClose:x,overlayClassName:s===Ts.customGenericTemplate?"edit-site-custom-generic-template__modal":void 0},s===Ts.templatesList&&(0,l.createElement)(b.__experimentalGrid,{columns:3,gap:4,align:"flex-start",justify:"center",className:"edit-site-add-new-template__template-list__contents"},(0,l.createElement)(b.Flex,{className:"edit-site-add-new-template__template-list__prompt"},(0,E.__)("Select what the new template should apply to:")),C.map((e=>{const{title:t,slug:n,onClick:r}=e;return(0,l.createElement)(ks,{key:n,title:t,direction:"column",className:"edit-site-add-new-template__template-button",description:w[n],icon:Cs[n]||lr,onClick:()=>r?r(e):S(e)})})),(0,l.createElement)(ks,{title:(0,E.__)("Custom template"),direction:"row",className:"edit-site-add-new-template__custom-template-button",icon:Er,onClick:()=>i(Ts.customGenericTemplate)},(0,l.createElement)(b.__experimentalText,{lineHeight:1.53846153846},(0,E.__)("A custom template can be manually applied to any post or page.")))),s===Ts.customTemplate&&(0,l.createElement)(ps,{onSelect:S,entityForSuggestions:o}),s===Ts.customGenericTemplate&&(0,l.createElement)(Es,{onClose:x,createTemplate:S})))}function Is({templateType:e=Ct,...t}){const n=(0,m.useSelect)((t=>t(ye.store).getPostType(e)),[e]);return n&&e===Ct?(0,l.createElement)(Ps,{...t,postType:n}):null}const Ms=({postType:e,postId:t,...n})=>{const r=Et({postType:e,postId:t});return(0,l.createElement)(vr,{...r,...n})};function As(){const e=(0,ie.useViewportMatch)("medium","<"),{records:t,isResolving:n}=(0,ye.useEntityRecords)("postType",Ct,{per_page:-1}),r=Et({path:"/wp_template/all"}),a=!e;return(0,l.createElement)(hr,{title:(0,E.__)("Templates"),description:(0,E.__)("Express the layout of your site with templates."),actions:a&&(0,l.createElement)(Is,{templateType:Ct,toggleProps:{as:mr}}),content:(0,l.createElement)(l.Fragment,null,n&&(0,E.__)("Loading templates…"),!n&&(0,l.createElement)(Ns,{templates:t})),footer:!e&&(0,l.createElement)(vr,{withChevron:!0,...r},(0,E.__)("Manage all templates"))})}function Os({title:e,templates:t}){return(0,l.createElement)(b.__experimentalItemGroup,null,!!e&&(0,l.createElement)(b.__experimentalItem,{className:"edit-site-sidebar-navigation-screen-templates__templates-group-title"},e),t.map((e=>(0,l.createElement)(Ms,{postType:Ct,postId:e.id,key:e.id,withChevron:!0},(0,en.decodeEntities)(e.title?.rendered||e.slug)))))}function Ns({templates:e}){if(!e?.length)return(0,l.createElement)(b.__experimentalItemGroup,null,(0,l.createElement)(b.__experimentalItem,null,(0,E.__)("No templates found")));const t=e?[...e]:[];t.sort(((e,t)=>e.title.rendered.localeCompare(t.title.rendered)));const{hierarchyTemplates:n,customTemplates:r,...a}=t.reduce(((e,t)=>{const{original_source:n,author_text:r}=t;return"plugin"===n?(e[r]||(e[r]=[]),e[r].push(t)):t.is_custom?e.customTemplates.push(t):e.hierarchyTemplates.push(t),e}),{hierarchyTemplates:[],customTemplates:[]});return(0,l.createElement)(b.__experimentalVStack,{spacing:3},!!n.length&&(0,l.createElement)(Os,{templates:n}),!!r.length&&(0,l.createElement)(Os,{title:(0,E.__)("Custom"),templates:r}),Object.entries(a).map((([e,t])=>(0,l.createElement)(Os,{key:e,title:e,templates:t}))))}function Fs({postId:e,area:t,title:n}){const r=(0,m.useSelect)((e=>e(y.store).__experimentalGetDefaultTemplatePartAreas().find((e=>e.area===t))),[t]),a=Et({postType:kt,postId:e});return(0,l.createElement)(vr,{className:"edit-site-sidebar-navigation-screen-template__template-area-button",...a,icon:r?.icon,withChevron:!0},(0,l.createElement)(b.__experimentalTruncate,{limit:20,ellipsizeMode:"tail",numberOfLines:1,className:"edit-site-sidebar-navigation-screen-template__template-area-label-text"},(0,en.decodeEntities)(n)))}function Rs(){const{templatePartAreas:e,currentTemplateParts:t}=(0,m.useSelect)((e=>{const{getSettings:t,getCurrentTemplateTemplateParts:n}=Xe(e(tr));return{templatePartAreas:t()?.defaultTemplatePartAreas,currentTemplateParts:n()}}),[]),n=(0,g.useMemo)((()=>{const n=new Set;return t.length&&e?t.filter((e=>{if(!n.has(e.templatePart.id))return n.add(e.templatePart.id),e})).map((({templatePart:t,block:n})=>({...e?.find((({area:e})=>e===t?.area)),...t,clientId:n.clientId}))):[]}),[t,e]);return n.length?(0,l.createElement)(xa,{title:(0,E.__)("Areas"),spacing:3},(0,l.createElement)(b.__experimentalItemGroup,null,n.map((({clientId:e,label:t,area:n,theme:r,slug:a,title:s})=>(0,l.createElement)(wa,{key:e},(0,l.createElement)(Fs,{postId:`${r}//${a}`,title:s?.rendered||t,area:n})))))):null}function Ds(e,t){const{record:n,title:r,description:a,isLoaded:s,icon:i}=(0,m.useSelect)((n=>{const{getEditedPostType:r,getEditedPostId:a}=n(tr),{getEditedEntityRecord:s,hasFinishedResolution:i}=n(ye.store),{__experimentalGetTemplateInfo:o}=n(y.store),l=null!=e?e:r(),c=null!=t?t:a(),u=s("postType",l,c),d=c&&i("getEditedEntityRecord",["postType",l,c]),m=o(u);return{record:u,title:m.title,description:m.description,isLoaded:d,icon:m.icon}}),[e,t]);return{isLoaded:s,icon:i,record:n,getTitle:()=>r?(0,en.decodeEntities)(r):null,getDescription:()=>a?(0,en.decodeEntities)(a):null}}const Vs=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})),Ls=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"}));function Bs(e,t){return(0,m.useSelect)((n=>{const{getEntityRecord:r,getMedia:a,getUser:s,getEditedEntityRecord:i}=n(ye.store),o=i("postType",e,t),l=o?.original_source,c=o?.author_text;switch(l){case"theme":return{type:l,icon:lr,text:c,isCustomized:o.source===Tt.custom};case"plugin":return{type:l,icon:Vs,text:c,isCustomized:o.source===Tt.custom};case"site":{const e=r("root","__unstableBase");return{type:l,icon:Ls,imageUrl:e?.site_logo?a(e.site_logo)?.source_url:void 0,text:c,isCustomized:!1}}default:{const e=s(o.author);return{type:"user",icon:Ha,imageUrl:e?.avatar_urls?.[48],text:c,isCustomized:!1}}}}),[e,t])}function zs({imageUrl:e}){const[t,n]=(0,g.useState)(!1);return(0,l.createElement)("div",{className:_()("edit-site-list-added-by__avatar",{"is-loaded":t})},(0,l.createElement)("img",{onLoad:()=>n(!0),alt:"",src:e}))}function Hs(e){return!!e&&(e.source===Tt.custom&&!e.has_theme_file)}function Gs({template:e,onClose:t}){const n=(0,en.decodeEntities)(e.title.rendered),[r,a]=(0,g.useState)(n),[s,i]=(0,g.useState)(!1),{editEntityRecord:o,__experimentalSaveSpecifiedEntityEdits:c}=(0,m.useDispatch)(ye.store),{createSuccessNotice:u,createErrorNotice:d}=(0,m.useDispatch)(ge.store);if(e.type===Ct&&!e.is_custom)return null;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.MenuItem,{onClick:()=>{i(!0),a(n)}},(0,E.__)("Rename")),s&&(0,l.createElement)(b.Modal,{title:(0,E.__)("Rename"),onRequestClose:()=>{i(!1)},overlayClassName:"edit-site-list__rename-modal"},(0,l.createElement)("form",{onSubmit:async function(n){n.preventDefault();try{await o("postType",e.type,e.id,{title:r}),a(""),i(!1),t(),await c("postType",e.type,e.id,["title"],{throwOnError:!0}),u(e.type===Ct?(0,E.__)("Template renamed."):(0,E.__)("Template part renamed."),{type:"snackbar"})}catch(t){const n=e.type===Ct?(0,E.__)("An error occurred while renaming the template."):(0,E.__)("An error occurred while renaming the template part."),r=t.message&&"unknown_error"!==t.code?t.message:n;d(r,{type:"snackbar"})}}},(0,l.createElement)(b.__experimentalVStack,{spacing:"5"},(0,l.createElement)(b.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,E.__)("Name"),value:r,onChange:a,required:!0}),(0,l.createElement)(b.__experimentalHStack,{justify:"right"},(0,l.createElement)(b.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{i(!1)}},(0,E.__)("Cancel")),(0,l.createElement)(b.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit"},(0,E.__)("Save")))))))}function Us({postType:e,postId:t,className:n,toggleProps:r,onRemove:a}){const s=(0,m.useSelect)((n=>n(ye.store).getEntityRecord("postType",e,t)),[e,t]),{removeTemplate:i,revertTemplate:o}=(0,m.useDispatch)(tr),{saveEditedEntityRecord:c}=(0,m.useDispatch)(ye.store),{createSuccessNotice:u,createErrorNotice:d}=(0,m.useDispatch)(ge.store),p=Hs(s),h=$t(s);if(!p&&!h)return null;return(0,l.createElement)(b.DropdownMenu,{icon:ue,label:(0,E.__)("Actions"),className:n,toggleProps:r},(({onClose:e})=>(0,l.createElement)(b.MenuGroup,null,p&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Gs,{template:s,onClose:e}),(0,l.createElement)(Ws,{onRemove:()=>{i(s),a?.(),e()},title:s.title.rendered})),h&&(0,l.createElement)(b.MenuItem,{info:(0,E.__)("Use the template as supplied by the theme."),onClick:()=>{!async function(){try{await o(s,{allowUndo:!1}),await c("postType",s.type,s.id),u((0,E.sprintf)((0,E.__)('"%s" reverted.'),(0,en.decodeEntities)(s.title.rendered)),{type:"snackbar",id:"edit-site-template-reverted"})}catch(e){const t=s.type===Ct?(0,E.__)("An error occurred while reverting the template."):(0,E.__)("An error occurred while reverting the template part."),n=e.message&&"unknown_error"!==e.code?e.message:t;d(n,{type:"snackbar"})}}(),e()}},(0,E.__)("Clear customizations")))))}function Ws({onRemove:e,title:t}){const[n,r]=(0,g.useState)(!1);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.MenuItem,{isDestructive:!0,onClick:()=>r(!0)},(0,E.__)("Delete")),(0,l.createElement)(b.__experimentalConfirmDialog,{isOpen:n,onConfirm:e,onCancel:()=>r(!1),confirmButtonText:(0,E.__)("Delete")},(0,E.sprintf)((0,E.__)('Are you sure you want to delete "%s"?'),(0,en.decodeEntities)(t))))}const js={};function Zs(){const{editEntityRecord:e}=(0,m.useDispatch)(ye.store),{allowCommentsOnNewPosts:t,postsPerPage:n,postsPageTitle:r,postsPageId:a}=(0,m.useSelect)((e=>{const{getEntityRecord:t}=e(ye.store),n=t("root","site"),r=n?.page_for_posts?t("postType","page",n?.page_for_posts):js;return{allowCommentsOnNewPosts:"open"===n?.default_comment_status,postsPageTitle:r?.title?.rendered,postsPageId:r?.id,postsPerPage:n?.posts_per_page}}),[]),[s,i]=(0,g.useState)(""),[o,c]=(0,g.useState)(1),[u,d]=(0,g.useState)("");(0,g.useEffect)((()=>{i(t),d(r),c(n)}),[r,t,n]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(xa,{spacing:6},a&&(0,l.createElement)(wa,null,(0,l.createElement)(b.__experimentalInputControl,{className:"edit-site-sidebar-navigation-screen__input-control",placeholder:(0,E.__)("No Title"),size:"__unstable-large",value:u,onChange:(0,ie.debounce)((t=>{d(t),e("postType","page",a,{title:t})}),300),label:(0,E.__)("Blog title"),help:(0,E.__)("Set the Posts Page title. Appears in search results, and when the page is shared on social media.")})),(0,l.createElement)(wa,null,(0,l.createElement)(b.__experimentalNumberControl,{className:"edit-site-sidebar-navigation-screen__input-control",placeholder:0,value:o,size:"__unstable-large",spinControls:"custom",step:"1",min:"1",onChange:t=>{c(t),e("root","site",void 0,{posts_per_page:t})},label:(0,E.__)("Posts per page"),help:(0,E.__)("Set the default number of posts to display on blog pages, including categories and tags. Some templates may override this setting.")}))),(0,l.createElement)(xa,{title:(0,E.__)("Discussion"),spacing:3},(0,l.createElement)(wa,null,(0,l.createElement)(b.CheckboxControl,{className:"edit-site-sidebar-navigation-screen__input-control",label:(0,E.__)("Allow comments on new posts"),help:(0,E.__)("Changes will apply to new posts only. Individual posts may override these settings."),checked:s,onChange:t=>{i(t),e("root","site",void 0,{default_comment_status:t?"open":null})}}))))}function qs(){const e=(0,b.__experimentalUseNavigator)(),{params:{postType:t,postId:n}}=e,{setCanvasMode:r}=Xe((0,m.useDispatch)(tr)),{title:a,content:s,description:i,footer:o}=function(e,t){const{getDescription:n,getTitle:r,record:a}=Ds(e,t),s=(0,m.useSelect)((e=>e(ye.store).getCurrentTheme()),[]),i=Bs(e,t),o="theme"===i.type&&a.theme===s?.stylesheet,c=r();let u=n();!u&&i.text&&(u=(0,E.__)("This is a custom template that can be applied manually to any Post or Page."));const d="home"===a?.slug||"index"===a?.slug?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Zs,null),(0,l.createElement)(Rs,null)):(0,l.createElement)(Rs,null),p=a?.modified?(0,l.createElement)(Ca,{record:a}):null;return{title:c,description:(0,l.createElement)(l.Fragment,null,u,i.text&&!o&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description-author"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description-author-icon"},i.imageUrl?(0,l.createElement)("img",{src:i.imageUrl,alt:"",width:"24",height:"24"}):(0,l.createElement)(b.Icon,{icon:i.icon})),i.text),i.isCustomized&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description-customized"},(0,E._x)("(Customized)","template")))),content:d,footer:p}}(t,n);return(0,l.createElement)(hr,{title:a,actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Us,{postType:t,postId:n,toggleProps:{as:mr},onRemove:()=>{e.goTo(`/${t}/all`)}}),(0,l.createElement)(mr,{onClick:()=>r("edit"),label:(0,E.__)("Edit"),icon:br})),description:i,content:s,footer:o})}const Ys=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})),Ks=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),Xs=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})),Js=()=>(0,m.useSelect)((e=>e(ye.store).getEntityRecords("postType",kt,{per_page:-1})),[]),Qs=(e,t)=>{const n=e.toLowerCase(),r=t.map((e=>e.title.rendered.toLowerCase()));if(!r.includes(n))return e;let a=2;for(;r.includes(`${n} ${a}`);)a++;return`${e} ${a}`},$s=e=>bs(e).replace(/[^\w-]+/g,"")||"wp-custom-part";function ei({modalTitle:e=(0,E.__)("Create template part"),...t}){return(0,l.createElement)(b.Modal,{title:e,onRequestClose:t.closeModal,overlayClassName:"edit-site-create-template-part-modal"},(0,l.createElement)(ti,{...t}))}function ti({defaultArea:e=Pt,blocks:t=[],confirmLabel:n=(0,E.__)("Create"),closeModal:r,onCreate:a,onError:s,defaultTitle:i=""}){const{createErrorNotice:o}=(0,m.useDispatch)(ge.store),{saveEntityRecord:c}=(0,m.useDispatch)(ye.store),d=Js(),[p,h]=(0,g.useState)(i),[f,v]=(0,g.useState)(e),[_,w]=(0,g.useState)(!1),x=(0,ie.useInstanceId)(ei),C=(0,m.useSelect)((e=>e(y.store).__experimentalGetDefaultTemplatePartAreas()),[]);return(0,l.createElement)("form",{onSubmit:async e=>{e.preventDefault(),await async function(){if(p&&!_)try{w(!0);const e=Qs(p,d),n=$s(e),r=await c("postType",kt,{slug:n,title:e,content:(0,u.serialize)(t),area:f},{throwOnError:!0});await a(r)}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the template part.");o(t,{type:"snackbar"}),s?.()}finally{w(!1)}}()}},(0,l.createElement)(b.__experimentalVStack,{spacing:"4"},(0,l.createElement)(b.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:p,onChange:h,required:!0}),(0,l.createElement)(b.BaseControl,{label:(0,E.__)("Area"),id:`edit-site-create-template-part-modal__area-selection-${x}`,className:"edit-site-create-template-part-modal__area-base-control"},(0,l.createElement)(b.__experimentalRadioGroup,{label:(0,E.__)("Area"),className:"edit-site-create-template-part-modal__area-radio-group",id:`edit-site-create-template-part-modal__area-selection-${x}`,onChange:v,checked:f},C.map((({icon:e,label:t,area:n,description:r})=>(0,l.createElement)(b.__experimentalRadio,{key:t,value:n,className:"edit-site-create-template-part-modal__area-radio"},(0,l.createElement)(b.Flex,{align:"start",justify:"start"},(0,l.createElement)(b.FlexItem,null,(0,l.createElement)(b.Icon,{icon:e})),(0,l.createElement)(b.FlexBlock,{className:"edit-site-create-template-part-modal__option-label"},t,(0,l.createElement)("div",null,r)),(0,l.createElement)(b.FlexItem,{className:"edit-site-create-template-part-modal__checkbox"},f===n&&(0,l.createElement)(b.Icon,{icon:S})))))))),(0,l.createElement)(b.__experimentalHStack,{justify:"right"},(0,l.createElement)(b.Button,{variant:"tertiary",onClick:()=>{r()}},(0,E.__)("Cancel")),(0,l.createElement)(b.Button,{variant:"primary",type:"submit","aria-disabled":!p||_,isBusy:_},n))))}const{useHistory:ni,useLocation:ri}=Xe(gt.privateApis),{CreatePatternModal:ai,useAddPatternCategory:si}=Xe(St.privateApis);function ii(){const e=ni(),{params:t}=ri(),[n,r]=(0,g.useState)(!1),[a,s]=(0,g.useState)(!1),i=(0,m.useSelect)((e=>e(ye.store).getCurrentTheme()?.is_block_theme),[]),{createPatternFromFile:o}=Xe((0,m.useDispatch)(St.store)),{createSuccessNotice:c,createErrorNotice:u}=(0,m.useDispatch)(ge.store),d=(0,g.useRef)();function p(){r(!1),s(!1)}const h=[{icon:cr,onClick:()=>r(!0),title:(0,E.__)("Create pattern")}];i&&h.push({icon:Ks,onClick:()=>s(!0),title:(0,E.__)("Create template part")}),h.push({icon:Xs,onClick:()=>{d.current.click()},title:(0,E.__)("Import pattern from JSON")});const{categoryMap:f,findOrCreateTerm:y}=si();return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.DropdownMenu,{controls:h,toggleProps:{as:mr},icon:Za,label:(0,E.__)("Create pattern")}),n&&(0,l.createElement)(ai,{onClose:()=>r(!1),onSuccess:function({pattern:t,categoryId:n}){r(!1),e.push({postId:t.id,postType:It.user,categoryType:It.theme,categoryId:n,canvas:"edit"})},onError:p}),a&&(0,l.createElement)(ei,{closeModal:()=>s(!1),blocks:[],onCreate:function(t){s(!1),e.push({postId:t.id,postType:kt,canvas:"edit"})},onError:p}),(0,l.createElement)("input",{type:"file",accept:".json",hidden:!0,ref:d,onChange:async n=>{const r=n.target.files?.[0];if(r)try{let n;if(t.categoryType!==kt){const e=f.values().find((e=>e.name===t.categoryId));e&&(n=e.id||await y(e.label))}const a=await o(r,n?[n]:void 0);n||"my-patterns"===t.categoryId||e.push({path:"/patterns",categoryType:It.theme,categoryId:Mt}),c((0,E.sprintf)((0,E.__)('Imported "%s" from JSON.'),a.title.raw),{type:"snackbar",id:"import-pattern-success"})}catch(e){u(e.message,{type:"snackbar",id:"import-pattern-error"})}finally{n.target.value=""}}}))}function oi({count:e,icon:t,id:n,isActive:r,label:a,type:s}){const i=Et({path:"/patterns",categoryType:s,categoryId:n});if(e)return(0,l.createElement)(vr,{...i,icon:t,suffix:(0,l.createElement)("span",null,e),"aria-current":r?"true":void 0},a)}const li=(e,t,n)=>t===n.findIndex((t=>e.name===t.name));var ci={};function ui(e){return[e]}function di(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function mi(e,t){var n,r=t||ui;function a(){n=new WeakMap}function s(){var t,a,s,i,o,l=arguments.length;for(i=new Array(l),s=0;s<l;s++)i[s]=arguments[s];for(t=function(e){var t,r,a,s,i,o=n,l=!0;for(t=0;t<e.length;t++){if(!(i=r=e[t])||"object"!=typeof i){l=!1;break}o.has(r)?o=o.get(r):(a=new WeakMap,o.set(r,a),o=a)}return o.has(ci)||((s=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=l,o.set(ci,s)),o.get(ci)}(o=r.apply(null,i)),t.isUniqueByDependants||(t.lastDependants&&!di(o,t.lastDependants,0)&&t.clear(),t.lastDependants=o),a=t.head;a;){if(di(a.args,i,1))return a!==t.head&&(a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=t.head,a.prev=null,t.head.prev=a,t.head=a),a.val;a=a.next}return a={val:e.apply(null,i)},i[0]=null,a.args=i,t.head&&(t.head.prev=a,a.next=t.head),t.head=a,a.val}return s.getDependants=r,s.clear=a,a(),s}var pi=a(9681),hi=a.n(pi);const fi=e=>e.name||"",gi=e=>e.title,yi=e=>e.description||"",vi=e=>e.keywords||[],_i=()=>!1;function bi(e=""){return vs(e,{splitRegexp:[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],stripRegexp:/(\p{C}|\p{P}|\p{S})+/giu}).split(" ").filter(Boolean)}function Ei(e=""){return e=(e=(e=hi()(e)).replace(/^\//,"")).toLowerCase()}const wi=(e="")=>bi(Ei(e)),Si=(e=[],t="",n={})=>{const r=wi(t),a=n.categoryId!==Mt&&!r.length,s={...n,onlyFilterByCategory:a},i=a?0:1,o=e.map((e=>[e,xi(e,t,s)])).filter((([,e])=>e>i));return 0===r.length||o.sort((([,e],[,t])=>t-e)),o.map((([e])=>e))};function xi(e,t,n){const{categoryId:r,getName:a=fi,getTitle:s=gi,getDescription:i=yi,getKeywords:o=vi,hasCategory:l=_i,onlyFilterByCategory:c}=n;let u=r===Mt||r===At&&e.type===It.user||l(e,r)?1:0;if(!u||c)return u;const d=a(e),m=s(e),p=i(e),h=o(e),f=Ei(t),g=Ei(m);if(f===g)u+=30;else if(g.startsWith(f))u+=20;else{const e=[d,m,p,...h].join(" ");0===((e,t)=>e.filter((e=>!wi(t).some((t=>t.includes(e))))))(bi(f),e).length&&(u+=10)}return u}const Ci=[],ki=(e,t)=>e&&t?e+"//"+t:null,Ti=mi(((e,t,n="")=>{var r;const{getEntityRecords:a,getIsResolving:s}=e(ye.store),{__experimentalGetDefaultTemplatePartAreas:i}=e(y.store),o={per_page:-1},l=(null!==(r=a("postType",kt,o))&&void 0!==r?r:Ci).map((e=>(e=>({blocks:(0,u.parse)(e.content.raw,{__unstableSkipMigrationLogs:!0}),categories:[e.area],description:e.description||"",isCustom:e.source===Tt.custom,keywords:e.keywords||[],id:ki(e.theme,e.slug),name:ki(e.theme,e.slug),title:(0,en.decodeEntities)(e.title.rendered),type:e.type,templatePart:e}))(e))),c=(i()||[]).map((e=>e.area)),d=s("getEntityRecords",["postType",kt,o]),m=Si(l,n,{categoryId:t,hasCategory:(e,t)=>t!==Pt?e.templatePart.area===t:e.templatePart.area===t||!c.includes(e.templatePart.area)});return{patterns:m,isResolving:d}}),(e=>[e(ye.store).getEntityRecords("postType",kt,{per_page:-1}),e(ye.store).getIsResolving("getEntityRecords",["postType",kt,{per_page:-1}]),e(y.store).__experimentalGetDefaultTemplatePartAreas()])),Pi=mi((e=>{var t;const{getSettings:n}=Xe(e(tr)),{getIsResolving:r}=e(ye.store),a=n();return{patterns:[...(null!==(t=a.__experimentalAdditionalBlockPatterns)&&void 0!==t?t:a.__experimentalBlockPatterns)||[],...e(ye.store).getBlockPatterns()||[]].filter((e=>!Ot.includes(e.source))).filter(li).filter((e=>!1!==e.inserter)).map((e=>({...e,keywords:e.keywords||[],type:It.theme,blocks:(0,u.parse)(e.content,{__unstableSkipMigrationLogs:!0})}))),isResolving:r("getBlockPatterns")}}),(e=>[e(ye.store).getBlockPatterns(),e(ye.store).getIsResolving("getBlockPatterns"),Xe(e(tr)).getSettings()])),Ii=mi(((e,t,n,r="")=>{const{patterns:a,isResolving:s}=Pi(e),{patterns:i,isResolving:o}=Mi(e);let l=[...a||[],...i||[]];return n&&(l=l.filter((e=>e.type===It.user?e.syncStatus===n:n===Nt.unsynced))),l=Si(l,r,t?{categoryId:t,hasCategory:(e,t)=>e.categories?.includes(t)}:{hasCategory:e=>!e.hasOwnProperty("categories")}),{patterns:l,isResolving:s||o}}),(e=>[Pi(e),Mi(e)])),Mi=mi(((e,t,n="")=>{const{getEntityRecords:r,getIsResolving:a,getUserPatternCategories:s}=e(ye.store),i={per_page:-1},o=r("postType",It.user,i),l=s(),c=new Map;l.forEach((e=>c.set(e.id,e)));let d=o?o.map((e=>((e,t)=>({blocks:(0,u.parse)(e.content.raw,{__unstableSkipMigrationLogs:!0}),...e.wp_pattern_category.length>0&&{categories:e.wp_pattern_category.map((e=>t&&t.get(e)?t.get(e).slug:e))},termLabels:e.wp_pattern_category.map((e=>t?.get(e)?t.get(e).label:e)),id:e.id,name:e.slug,syncStatus:e.wp_pattern_sync_status||Nt.full,title:e.title.raw,type:e.type,patternPost:e}))(e,c))):Ci;const m=a("getEntityRecords",["postType",It.user,i]);return t&&(d=d.filter((e=>e.syncStatus===t))),d=Si(d,n,{hasCategory:()=>!0}),{patterns:d,isResolving:m,categories:l}}),(e=>[e(ye.store).getEntityRecords("postType",It.user,{per_page:-1}),e(ye.store).getIsResolving("getEntityRecords",["postType",It.user,{per_page:-1}]),e(ye.store).getUserPatternCategories()])),Ai=(e,t,{search:n="",syncStatus:r}={})=>(0,m.useSelect)((a=>e===kt?Ti(a,t,n):e===It.theme?Ii(a,t,r,n):e===It.user?Mi(a,r,n):{patterns:Ci,isResolving:!1}),[t,e,n,r]);function Oi(){const e=function(){const e=(0,m.useSelect)((e=>{var t;const{getSettings:n}=Xe(e(tr)),r=n();return null!==(t=r.__experimentalAdditionalBlockPatternCategories)&&void 0!==t?t:r.__experimentalBlockPatternCategories}));return[...e||[],...(0,m.useSelect)((e=>e(ye.store).getBlockPatternCategories()))||[]]}();e.push({name:Pt,label:(0,E.__)("Uncategorized")});const t=function(){const e=(0,m.useSelect)((e=>{var t;const{getSettings:n}=Xe(e(tr));return null!==(t=n().__experimentalAdditionalBlockPatterns)&&void 0!==t?t:n().__experimentalBlockPatterns})),t=(0,m.useSelect)((e=>e(ye.store).getBlockPatterns()));return(0,g.useMemo)((()=>[...e||[],...t||[]].filter((e=>!Ot.includes(e.source))).filter(li).filter((e=>!1!==e.inserter))),[e,t])}(),{patterns:n,categories:r}=Ai(It.user),a=(0,g.useMemo)((()=>{const a={},s=[];e.forEach((e=>{a[e.name]||(a[e.name]={...e,count:0})})),r.forEach((e=>{a[e.name]||(a[e.name]={...e,count:0})})),t.forEach((e=>{e.categories?.forEach((e=>{a[e]&&(a[e].count+=1)})),e.categories?.length||(a.uncategorized.count+=1)})),n.forEach((e=>{e.categories?.forEach((e=>{a[e]&&(a[e].count+=1)})),e.categories?.length||(a.uncategorized.count+=1)})),[...e,...r].forEach((e=>{a[e.name].count&&!s.find((t=>t.name===e.name))&&s.push(a[e.name])}));const i=s.sort(((e,t)=>e.label.localeCompare(t.label)));return i.unshift({name:At,label:(0,E.__)("My patterns"),count:n.length}),i.unshift({name:Mt,label:(0,E.__)("All patterns"),description:(0,E.__)("A list of all patterns from all sources."),count:t.length+n.length}),i}),[e,t,r,n]);return{patternCategories:a,hasPatterns:!!a.length}}const Ni=e=>{const t=e||[],n=(0,m.useSelect)((e=>e(y.store).__experimentalGetDefaultTemplatePartAreas()),[]),r={header:{},footer:{},sidebar:{},uncategorized:{}};n.forEach((e=>r[e.area]={...e,templateParts:[]}));return t.reduce(((e,t)=>(e[e[t.area]?t.area:Pt].templateParts.push(t),e)),r)};function Fi({areas:e,currentArea:t,currentType:n}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-patterns__group-header"},(0,l.createElement)(b.__experimentalHeading,{level:2},(0,E.__)("Template parts"))),(0,l.createElement)(b.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-patterns__group"},Object.entries(e).map((([e,{label:r,templateParts:a}])=>(0,l.createElement)(oi,{key:e,count:a?.length,icon:(0,y.getTemplatePartIcon)(e),label:r,id:e,type:kt,isActive:t===e&&n===kt})))))}function Ri({categories:e,currentCategory:t,currentType:n}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-patterns__group"},e.map((e=>(0,l.createElement)(oi,{key:e.name,count:e.count,label:e.label,icon:Ys,id:e.name,type:"pattern",isActive:t===`${e.name}`&&(n===It.theme||n===It.user)})))))}function Di(){const e=(0,ie.useViewportMatch)("medium","<"),{categoryType:t,categoryId:n}=(0,yt.getQueryArgs)(window.location.href),r=n||Mt,a=t||It.theme,{templatePartAreas:s,hasTemplateParts:i,isLoading:o}=function(){const{records:e,isResolving:t}=(0,ye.useEntityRecords)("postType",kt,{per_page:-1});return{hasTemplateParts:!!e&&!!e.length,isLoading:t,templatePartAreas:Ni(e)}}(),{patternCategories:c,hasPatterns:u}=Oi(),d=(0,m.useSelect)((e=>e(ye.store).getCurrentTheme()?.is_block_theme),[]),p=(0,m.useSelect)((e=>!!e(tr).getSettings().supportsTemplatePartsMode),[]),h=Et({path:"/wp_template_part/all",didAccessPatternsPage:!d&&p?1:void 0}),f=e?void 0:(0,l.createElement)(b.__experimentalItemGroup,null,(0,l.createElement)(vr,{as:"a",href:"edit.php?post_type=wp_block",withChevron:!0},(0,E.__)("Manage all of my patterns")),(d||p)&&(0,l.createElement)(vr,{withChevron:!0,...h},(0,E.__)("Manage all template parts")));return(0,l.createElement)(hr,{isRoot:!d,title:(0,E.__)("Patterns"),description:(0,E.__)("Manage what patterns are available when editing the site."),actions:(0,l.createElement)(ii,null),footer:f,content:(0,l.createElement)(l.Fragment,null,o&&(0,E.__)("Loading patterns…"),!o&&(0,l.createElement)(l.Fragment,null,!i&&!u&&(0,l.createElement)(b.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-patterns__group"},(0,l.createElement)(b.__experimentalItem,null,(0,E.__)("No template parts or patterns found"))),u&&(0,l.createElement)(Ri,{categories:c,currentCategory:r,currentType:a}),i&&(0,l.createElement)(Fi,{areas:s,currentArea:r,currentType:a})))})}const{useLocation:Vi}=Xe(gt.privateApis),Li=[Ct,kt,xt,It.user];function Bi(){const{params:e={}}=Vi(),{postType:t,postId:n,context:r,isReady:a}=function({path:e,postId:t,postType:n}){const{hasLoadedAllDependencies:r,homepageId:a,postsPageId:s,url:i,frontPageTemplateId:o}=(0,m.useSelect)((e=>{const{getSite:t,getUnstableBase:n,getEntityRecords:r}=e(ye.store),a=t(),s=n(),i=r("postType",Ct,{per_page:-1}),o="page"===a?.show_on_front&&["number","string"].includes(typeof a.page_on_front)&&+a.page_on_front?a.page_on_front.toString():null,l="page"===a?.show_on_front&&["number","string"].includes(typeof a.page_for_posts)?a.page_for_posts.toString():null;let c;if(i){const e=i.find((e=>"front-page"===e.slug));c=!!e&&e.id}return{hasLoadedAllDependencies:!!s&&!!a,homepageId:o,postsPageId:l,url:s?.home,frontPageTemplateId:c}}),[]),l=(0,m.useSelect)((l=>{if(Li.includes(n))return;const{getEditedEntityRecord:c,getEntityRecords:u,getDefaultTemplateId:d,__experimentalGetTemplateForLink:m}=l(ye.store);function p(e,t){if("page"===e&&a===t){if(void 0===o)return;if(o)return o}const n=c("postType",e,t);if(!n)return;if("page"===e&&s===t)return m(n.link)?.id;const r=n.template;if(r){const e=u("postType",Ct,{per_page:-1})?.find((({slug:e})=>e===r));if(e)return e.id}let i;return i=n.slug?"page"===e?`${e}-${n.slug}`:`single-${e}-${n.slug}`:"page"===e?"page":`single-${e}`,d({slug:i})}if(r){if(n&&t)return p(n,t);if("/pages"===e&&t)return p("page",t);if(a)return p("page",a);if(i){const e=m(i);return e?.id}}}),[a,s,r,i,t,n,e,o]),c=(0,g.useMemo)((()=>Li.includes(n)?{}:n&&t?{postType:n,postId:t}:"/pages"===e&&t?{postType:"page",postId:t}:a?{postType:"page",postId:a}:{}),[a,n,t,e]);return"/wp_template/all"===e&&t?{isReady:!0,postType:"wp_template",postId:t,context:c}:"/wp_template_part/all"===e&&t?{isReady:!0,postType:"wp_template_part",postId:t,context:c}:Li.includes(n)?{isReady:!0,postType:n,postId:t,context:c}:r?{isReady:void 0!==l,postType:Ct,postId:l,context:c}:{isReady:!1}}(e),{setEditedEntity:s}=(0,m.useDispatch)(tr);(0,g.useEffect)((()=>{a&&s(t,n,r)}),[a,t,n,r,s])}function zi(e,t){var n=e.toLowerCase();return 0===t?function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(n):n}const Hi=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),Gi=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),{useLocation:Ui,useHistory:Wi}=Xe(gt.privateApis);function ji(e){var t;let n=null!==(t=e?.path)&&void 0!==t?t:"/";if(e?.postType&&e?.postId)switch(e.postType){case It.user:case Ct:case kt:case"page":n=`/${encodeURIComponent(e.postType)}/${encodeURIComponent(e.postId)}`;break;default:n=`/navigation/${encodeURIComponent(e.postType)}/${encodeURIComponent(e.postId)}`}return n}function Zi(){const e=Wi(),{params:t}=Ui(),{location:n,params:r,goTo:a}=(0,b.__experimentalUseNavigator)(),s=(0,g.useRef)(!0);(0,g.useEffect)((()=>{function a(n){if(r=n,a=t,Object.entries(r).every((([e,t])=>a[e]===t)))return;var r,a;const s={...t,...n};e.push(s)}s.current?s.current=!1:r?.postType&&r?.postId?a({postType:r?.postType,postId:r?.postId,path:void 0,layout:void 0}):n.path.startsWith("/page/")&&r?.postId?a({postType:"page",postId:r?.postId,path:void 0,layout:void 0}):"/patterns"===n.path?a({postType:void 0,postId:void 0,canvas:void 0,path:n.path}):"/wp_template/all"!==n.path||window?.__experimentalAdminViews?"/pages"===n.path&&window?.__experimentalAdminViews||"/wp_template/all"===n.path&&window?.__experimentalAdminViews||"/wp_template_part/all"===n.path&&window?.__experimentalAdminViews?a({postType:void 0,categoryType:void 0,categoryId:void 0,path:n.path}):a({postType:void 0,postId:void 0,categoryType:void 0,categoryId:void 0,layout:void 0,path:"/"===n.path?void 0:n.path}):a({postType:void 0,categoryType:void 0,categoryId:void 0,path:n.path,layout:void 0})}),[n?.path,r]),(0,g.useEffect)((()=>{const e=ji(t);n.path!==e&&a(e)}),[t])}const qi={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},{useLocation:Yi,useHistory:Ki}=Xe(gt.privateApis);function Xi(e){const t=Yi(),n=Ki(),{block:r}=e,{clientId:a}=r,{moveBlocksDown:s,moveBlocksUp:i,removeBlocks:o}=(0,m.useDispatch)(fe.store),c=(0,E.sprintf)((0,E.__)("Remove %s"),(0,fe.BlockTitle)({clientId:a,maximumLength:25})),u=(0,E.sprintf)((0,E.__)("Go to %s"),(0,fe.BlockTitle)({clientId:a,maximumLength:25})),d=(0,m.useSelect)((e=>{const{getBlockRootClientId:t}=e(fe.store);return t(a)}),[a]),p=(0,g.useCallback)((e=>{const{attributes:r,name:a}=e;"post-type"===r.kind&&r.id&&r.type&&n&&n.push({postType:r.type,postId:r.id,...vt()&&{wp_theme_preview:_t()}},{backPath:ji(t.params)}),"core/page-list-item"===a&&r.id&&n&&n.push({postType:"page",postId:r.id,...vt()&&{wp_theme_preview:_t()}},{backPath:ji(t.params)})}),[n]);return(0,l.createElement)(b.DropdownMenu,{icon:ue,label:(0,E.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:qi,noIcons:!0,...e},(({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.MenuGroup,null,(0,l.createElement)(b.MenuItem,{icon:Hi,onClick:()=>{i([a],d),e()}},(0,E.__)("Move up")),(0,l.createElement)(b.MenuItem,{icon:Gi,onClick:()=>{s([a],d),e()}},(0,E.__)("Move down")),"page"===r.attributes?.type&&r.attributes?.id&&(0,l.createElement)(b.MenuItem,{onClick:()=>{p(r),e()}},u)),(0,l.createElement)(b.MenuGroup,null,(0,l.createElement)(b.MenuItem,{onClick:()=>{o([a],!1),e()}},c)))))}const{PrivateListView:Ji}=Xe(fe.privateApis),Qi=["postType","page",{per_page:100,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}];function $i({rootClientId:e}){const{listViewRootClientId:t,isLoading:n}=(0,m.useSelect)((t=>{const{areInnerBlocksControlled:n,getBlockName:r,getBlockCount:a,getBlockOrder:s}=t(fe.store),{isResolving:i}=t(ye.store),o=s(e),l=1===o.length&&"core/page-list"===r(o[0])&&a(o[0])>0,c=i("getEntityRecords",Qi);return{listViewRootClientId:l?o[0]:e,isLoading:!n(e)||c}}),[e]),{replaceBlock:r,__unstableMarkNextChangeAsNotPersistent:a}=(0,m.useDispatch)(fe.store),s=(0,g.useCallback)((e=>{"core/navigation-link"!==e.name||e.attributes.url||(a(),r(e.clientId,(0,u.createBlock)("core/navigation-link",e.attributes)))}),[a,r]);return(0,l.createElement)(l.Fragment,null,!n&&(0,l.createElement)(Ji,{rootClientId:t,onSelect:s,blockSettingsMenu:Xi,showAppender:!1}),(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor"},(0,l.createElement)(fe.BlockList,null)))}const eo=()=>{};function to({navigationMenuId:e}){const{storedSettings:t}=(0,m.useSelect)((e=>{const{getSettings:t}=Xe(e(tr));return{storedSettings:t()}}),[]),n=(0,g.useMemo)((()=>e?[(0,u.createBlock)("core/navigation",{ref:e})]:[]),[e]);return e&&n?.length?(0,l.createElement)(fe.BlockEditorProvider,{settings:t,value:n,onChange:eo,onInput:eo},(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-navigation-menus__content"},(0,l.createElement)($i,{rootClientId:n[0].clientId}))):null}function no(e){return(0,m.useSelect)((t=>{if(!e)return;const n=t(ye.store).getEditedEntityRecord("postType",xt,e);return"trash"===n.status?void 0:n.title}),[e])}function ro({id:e}){const t=no(e);return e&&void 0!==t?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen-template-part-navigation-menu__title",size:"11",upperCase:!0,weight:500},t||(0,E.__)("Navigation")),(0,l.createElement)(to,{navigationMenuId:e})):null}function ao({id:e}){const t=no(e),n=Et({postId:e,postType:xt});return e&&void 0!==t?(0,l.createElement)(vr,{withChevron:!0,...n},t||(0,E.__)("(no title)")):null}function so({menus:e}){return(0,l.createElement)(b.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-template-part-navigation-menu-list"},e.map((e=>(0,l.createElement)(ao,{key:e,id:e}))))}function io({menus:e}){return e.length?1===e.length?(0,l.createElement)(ro,{id:e[0]}):(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen-template-part-navigation-menu__title",size:"11",upperCase:!0,weight:500},(0,E.__)("Navigation")),(0,l.createElement)(so,{menus:e})):null}function oo(e,t){const{record:n}=Ds(e,t);if(e!==kt)return;const r=function(e){return e?.blocks?e?.blocks:e?.content&&"function"!=typeof e.content?(0,u.parse)(e.content):[]}(n),a=function(e,t){if(!e||!t?.length)return[];const n=t=>{if(!t)return[];const r=[];for(const a of t)if(a.name===e&&r.push(a),a?.innerBlocks){const e=n(a.innerBlocks);e.length&&r.push(...e)}return r};return n(t)}("core/navigation",r);if(!a.length)return;const s=a?.map((e=>e.attributes.ref)),i=[...new Set(s)].filter((e=>e));return i?.length?(0,l.createElement)(io,{menus:i}):void 0}function lo(e,t){const{getDescription:n,getTitle:r,record:a}=Ds(e,t),s=(0,m.useSelect)((e=>e(y.store).__experimentalGetDefaultTemplatePartAreas()),[]),{currentTheme:i,userPatternCategories:o}=(0,m.useSelect)((e=>{const{getCurrentTheme:t,getUserPatternCategories:n}=e(ye.store);return{currentTheme:t(),userPatternCategories:n()}}),[]),c=Bs(e,t),u="theme"===c.type&&a.theme===i?.stylesheet,d=r();let p=n();!p&&c.text&&(p=e===It.user?(0,E.sprintf)((0,E.__)("This is the %s pattern."),r()):(0,E.sprintf)((0,E.__)("This is the %s template part."),r())),!p&&e===It.user&&a?.title&&(p=(0,E.sprintf)((0,E.__)("This is the %s pattern."),a.title));const h=a?.modified?(0,l.createElement)(Ca,{record:a}):null,f=[];if((e===It.user||e===kt)&&(f.push({label:(0,E.__)("Syncing"),value:a.wp_pattern_sync_status===Nt.unsynced?(0,E._x)("Not synced","Text that indicates that the pattern is not synchronized"):(0,E._x)("Synced","Text that indicates that the pattern is synchronized")}),0===a.wp_pattern_category?.length&&f.push({label:(0,E.__)("Categories"),value:(0,E.__)("Uncategorized")}),a.wp_pattern_category?.length>0)){const e=new Map;o.forEach((t=>e.set(t.id,t)));const t=a.wp_pattern_category.filter((t=>e.get(t))).map((t=>e.get(t).label));f.push({label:(0,E.__)("Categories"),value:t.length>0?t.join(", "):""})}if(e===kt){const e=s.find((e=>e.area===a.area));let t=e?.label;t||(t=a.area?(0,E.sprintf)((0,E.__)("%s (removed)"),(g=a.area,void 0===v&&(v={}),vs(g,hs({delimiter:" ",transform:zi},v)))):(0,E.__)("None")),f.push({label:(0,E.__)("Area"),value:t})}var g,v;e===kt&&c.text&&!u&&f.push({label:(0,E.__)("Added by"),value:(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description-author"},c.text)}),e!==kt||!c.text||a.origin!==Tt.plugin&&!0!==a.has_theme_file||f.push({label:(0,E.__)("Customized"),value:(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description-customized"},c.isCustomized?(0,E.__)("Yes"):(0,E.__)("No"))});return{title:d,description:p,content:(0,l.createElement)(l.Fragment,null,oo(e,t),!!f.length&&(0,l.createElement)(xa,{spacing:5,title:(0,E.__)("Details")},f.map((({label:e,value:t})=>(0,l.createElement)(wa,{key:e},(0,l.createElement)(Ea,null,e),(0,l.createElement)(Sa,null,t)))))),footer:h}}function co(){const e=(0,b.__experimentalUseNavigator)(),{params:{postType:t,postId:n}}=e,{categoryType:r}=(0,yt.getQueryArgs)(window.location.href),{setCanvasMode:a}=Xe((0,m.useDispatch)(tr));Bi();const s=lo(t,n),i=r||t!==kt?"/patterns":"/wp_template_part/all";return(0,l.createElement)(hr,{actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Us,{postType:t,postId:n,toggleProps:{as:mr},onRemove:()=>{e.goTo(i)}}),(0,l.createElement)(mr,{onClick:()=>a("edit"),label:(0,E.__)("Edit"),icon:br})),backPath:i,...s})}const uo={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},mo=e=>e?.trim()?.length>0;function po({menuTitle:e,onClose:t,onSave:n}){const[r,a]=(0,g.useState)(e),s=r!==e&&mo(r);return(0,l.createElement)(b.Modal,{title:(0,E.__)("Rename"),onRequestClose:t},(0,l.createElement)("form",{className:"sidebar-navigation__rename-modal-form"},(0,l.createElement)(b.__experimentalVStack,{spacing:"3"},(0,l.createElement)(b.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:r,placeholder:(0,E.__)("Navigation title"),onChange:a}),(0,l.createElement)(b.__experimentalHStack,{justify:"right"},(0,l.createElement)(b.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t},(0,E.__)("Cancel")),(0,l.createElement)(b.Button,{__next40pxDefaultSize:!0,disabled:!s,variant:"primary",type:"submit",onClick:e=>{e.preventDefault(),s&&(n({title:r}),t())}},(0,E.__)("Save"))))))}function ho({onClose:e,onConfirm:t}){return(0,l.createElement)(b.__experimentalConfirmDialog,{isOpen:!0,onConfirm:n=>{n.preventDefault(),t(),e()},onCancel:e,confirmButtonText:(0,E.__)("Delete")},(0,E.__)("Are you sure you want to delete this Navigation menu?"))}const fo={position:"bottom right"};function go(e){const{onDelete:t,onSave:n,onDuplicate:r,menuTitle:a}=e,[s,i]=(0,g.useState)(!1),[o,c]=(0,g.useState)(!1),u=()=>{i(!1),c(!1)};return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.DropdownMenu,{className:"sidebar-navigation__more-menu",label:(0,E.__)("Actions"),icon:ue,popoverProps:fo},(({onClose:e})=>(0,l.createElement)("div",null,(0,l.createElement)(b.MenuGroup,null,(0,l.createElement)(b.MenuItem,{onClick:()=>{i(!0),e()}},(0,E.__)("Rename")),(0,l.createElement)(b.MenuItem,{onClick:()=>{r(),e()}},(0,E.__)("Duplicate")),(0,l.createElement)(b.MenuItem,{isDestructive:!0,onClick:()=>{c(!0),e()}},(0,E.__)("Delete")))))),o&&(0,l.createElement)(ho,{onClose:u,onConfirm:t}),s&&(0,l.createElement)(po,{onClose:u,menuTitle:a,onSave:n}))}function yo(e,t,n){return e?.rendered?"publish"===n?(0,en.decodeEntities)(e?.rendered):(0,E.sprintf)((0,E.__)("%1$s (%2$s)"),(0,en.decodeEntities)(e?.rendered),n):(0,E.sprintf)((0,E.__)("(no title %s)"),t)}function vo({postId:e}){const t=Et({postId:e,postType:xt,canvas:"edit"});return(0,l.createElement)(mr,{...t,label:(0,E.__)("Edit"),icon:br})}function _o({navigationMenu:e,handleDelete:t,handleDuplicate:n,handleSave:r}){const a=e?.title?.rendered;return(0,l.createElement)(Po,{actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(go,{menuTitle:(0,en.decodeEntities)(a),onDelete:t,onSave:r,onDuplicate:n}),(0,l.createElement)(vo,{postId:e?.id})),title:yo(e?.title,e?.id,e?.status),description:(0,E.__)("Navigation menus are a curated collection of blocks that allow visitors to get around your site.")},(0,l.createElement)(to,{navigationMenuId:e?.id}))}const bo="wp_navigation";function Eo(){const{params:{postId:e}}=(0,b.__experimentalUseNavigator)(),{record:t,isResolving:n}=(0,ye.useEntityRecord)("postType",bo,e),{isSaving:r,isDeleting:a}=(0,m.useSelect)((t=>{const{isSavingEntityRecord:n,isDeletingEntityRecord:r}=t(ye.store);return{isSaving:n("postType",bo,e),isDeleting:r("postType",bo,e)}}),[e]),s=n||r||a,i=t?.title?.rendered||t?.slug,{handleSave:o,handleDelete:c,handleDuplicate:u}=Co(),d=()=>c(t),p=e=>o(t,e),h=()=>u(t);return s?(0,l.createElement)(Po,{description:(0,E.__)("Navigation menus are a curated collection of blocks that allow visitors to get around your site.")},(0,l.createElement)(b.Spinner,{className:"edit-site-sidebar-navigation-screen-navigation-menus__loading"})):s||t?t?.content?.raw?(0,l.createElement)(_o,{navigationMenu:t,handleDelete:d,handleSave:p,handleDuplicate:h}):(0,l.createElement)(Po,{actions:(0,l.createElement)(go,{menuTitle:(0,en.decodeEntities)(i),onDelete:d,onSave:p,onDuplicate:h}),title:yo(t?.title,t?.id,t?.status),description:(0,E.__)("This Navigation Menu is empty.")}):(0,l.createElement)(Po,{description:(0,E.__)("Navigation Menu missing.")})}function wo(){const{goTo:e}=(0,b.__experimentalUseNavigator)(),{deleteEntityRecord:t}=(0,m.useDispatch)(ye.store),{createSuccessNotice:n,createErrorNotice:r}=(0,m.useDispatch)(ge.store);return async a=>{const s=a?.id;try{await t("postType",bo,s,{force:!0},{throwOnError:!0}),n((0,E.__)("Deleted Navigation menu"),{type:"snackbar"}),e("/navigation")}catch(e){r((0,E.sprintf)((0,E.__)("Unable to delete Navigation menu (%s)."),e?.message),{type:"snackbar"})}}}function So(){const{getEditedEntityRecord:e}=(0,m.useSelect)((e=>{const{getEditedEntityRecord:t}=e(ye.store);return{getEditedEntityRecord:t}}),[]),{editEntityRecord:t,__experimentalSaveSpecifiedEntityEdits:n}=(0,m.useDispatch)(ye.store),{createSuccessNotice:r,createErrorNotice:a}=(0,m.useDispatch)(ge.store);return async(s,i)=>{if(!i)return;const o=s?.id,l=e("postType",xt,o);t("postType",bo,o,i);const c=Object.keys(i);try{await n("postType",bo,o,c,{throwOnError:!0}),r((0,E.__)("Renamed Navigation menu"),{type:"snackbar"})}catch(e){t("postType",bo,o,l),a((0,E.sprintf)((0,E.__)("Unable to rename Navigation menu (%s)."),e?.message),{type:"snackbar"})}}}function xo(){const{goTo:e}=(0,b.__experimentalUseNavigator)(),{saveEntityRecord:t}=(0,m.useDispatch)(ye.store),{createSuccessNotice:n,createErrorNotice:r}=(0,m.useDispatch)(ge.store);return async a=>{const s=a?.title?.rendered||a?.slug;try{const r=await t("postType",bo,{title:(0,E.sprintf)((0,E.__)("%s (Copy)"),s),content:a?.content?.raw,status:"publish"},{throwOnError:!0});r&&(n((0,E.__)("Duplicated Navigation menu"),{type:"snackbar"}),e(`/navigation/${bo}/${r.id}`))}catch(e){r((0,E.sprintf)((0,E.__)("Unable to duplicate Navigation menu (%s)."),e?.message),{type:"snackbar"})}}}function Co(){return{handleDelete:wo(),handleSave:So(),handleDuplicate:xo()}}let ko=!1;function To(){const{records:e,isResolving:t,hasResolved:n}=(0,ye.useEntityRecords)("postType",xt,uo),r=t&&!n,{getNavigationFallbackId:a}=Xe((0,m.useSelect)(ye.store)),s=e?.[0];s&&(ko=!0),s||t||!n||ko||a();const{handleSave:i,handleDelete:o,handleDuplicate:c}=Co(),u=!!e?.length;return r?(0,l.createElement)(Po,null,(0,l.createElement)(b.Spinner,{className:"edit-site-sidebar-navigation-screen-navigation-menus__loading"})):r||u?1===e?.length?(0,l.createElement)(_o,{navigationMenu:s,handleDelete:()=>o(s),handleDuplicate:()=>c(s),handleSave:e=>i(s,e)}):(0,l.createElement)(Po,null,(0,l.createElement)(b.__experimentalItemGroup,null,e?.map((({id:e,title:t,status:n},r)=>(0,l.createElement)(Io,{postId:e,key:e,withChevron:!0,icon:sr},function(e,t,n){return e?"publish"===n?(0,en.decodeEntities)(e):(0,E.sprintf)((0,E.__)("%1$s (%2$s)"),(0,en.decodeEntities)(e),n):(0,E.sprintf)((0,E.__)("(no title %s)"),t)}(t?.rendered,r+1,n)))))):(0,l.createElement)(Po,{description:(0,E.__)("No Navigation Menus found.")})}function Po({children:e,actions:t,title:n,description:r}){return(0,l.createElement)(hr,{title:n||(0,E.__)("Navigation"),actions:t,description:r||(0,E.__)("Manage your Navigation menus."),content:e})}const Io=({postId:e,...t})=>{const n=Et({postId:e,postType:xt});return(0,l.createElement)(vr,{...n,...t})},Mo=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.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"})),Ao=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.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"})),Oo=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.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"})),No=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z"})),Fo=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{d:"M4.67 10.664s-2.09 1.11-2.917 1.582l.494.87 1.608-.914.002.002c.343.502.86 1.17 1.563 1.84.348.33.742.663 1.185.976L5.57 16.744l.858.515 1.02-1.701a9.1 9.1 0 0 0 4.051 1.18V19h1v-2.263a9.1 9.1 0 0 0 4.05-1.18l1.021 1.7.858-.514-1.034-1.723c.442-.313.837-.646 1.184-.977.703-.669 1.22-1.337 1.563-1.839l.002-.003 1.61.914.493-.87c-1.75-.994-2.918-1.58-2.918-1.58l-.003.005a8.29 8.29 0 0 1-.422.689 10.097 10.097 0 0 1-1.36 1.598c-1.218 1.16-3.042 2.293-5.544 2.293-2.503 0-4.327-1.132-5.546-2.293a10.099 10.099 0 0 1-1.359-1.599 8.267 8.267 0 0 1-.422-.689l-.003-.005Z"}));function Ro({selection:e,onSelectionChange:t,item:n,data:r,getItemId:a,primaryField:s,disabled:i}){const o=a(n),c=e.includes(o);let u;return u=s?.getValue&&n?(0,E.sprintf)(c?(0,E.__)("Deselect item: %s"):(0,E.__)("Select item: %s"),s.getValue({item:n})):c?(0,E.__)("Select a new item"):(0,E.__)("Deselect item"),(0,l.createElement)(b.CheckboxControl,{className:"dataviews-view-table-selection-checkbox",__nextHasNoMarginBottom:!0,label:u,"aria-disabled":i,checked:c,onChange:()=>{i||t(c?r.filter((t=>{const n=a?.(t);return n!==o&&e.includes(n)})):r.filter((t=>{const n=a?.(t);return n===o||e.includes(n)})))}})}const{lock:Do,unlock:Vo}=(0,Ye.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/dataviews"),{DropdownMenuV2:Lo,DropdownMenuGroupV2:Bo,DropdownMenuItemV2:zo,DropdownMenuItemLabelV2:Ho,kebabCase:Go}=Vo(b.privateApis);function Uo({action:e,onClick:t}){return(0,l.createElement)(b.Button,{label:e.label,icon:e.icon,isDestructive:e.isDestructive,size:"compact",onClick:t})}function Wo({action:e,onClick:t}){return(0,l.createElement)(zo,{onClick:t,hideOnClick:!e.RenderModal},(0,l.createElement)(Ho,null,e.label))}function jo({action:e,item:t,ActionTrigger:n}){const[r,a]=(0,g.useState)(!1),s={action:e,onClick:()=>a(!0)},{RenderModal:i,hideModalHeader:o}=e;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(n,{...s}),r&&(0,l.createElement)(b.Modal,{title:e.modalHeader||e.label,__experimentalHideHeader:!!o,onRequestClose:()=>{a(!1)},overlayClassName:`dataviews-action-modal dataviews-action-modal__${Go(e.id)}`},(0,l.createElement)(i,{items:[t],closeModal:()=>a(!1)})))}function Zo({actions:e,item:t}){return(0,l.createElement)(Bo,null,e.map((e=>e.RenderModal?(0,l.createElement)(jo,{key:e.id,action:e,item:t,ActionTrigger:Wo}):(0,l.createElement)(Wo,{key:e.id,action:e,onClick:()=>e.callback([t])}))))}function qo({item:e,actions:t,isCompact:n}){const{primaryActions:r,secondaryActions:a}=(0,g.useMemo)((()=>t.reduce(((t,n)=>(n.isEligible&&!n.isEligible(e)||(n.isPrimary&&n.icon?t.primaryActions.push(n):t.secondaryActions.push(n)),t)),{primaryActions:[],secondaryActions:[]})),[t,e]);return n?(0,l.createElement)(Yo,{item:e,primaryActions:r,secondaryActions:a}):(0,l.createElement)(b.__experimentalHStack,{spacing:1,justify:"flex-end",style:{flexShrink:"0",width:"auto"}},!!r.length&&r.map((t=>t.RenderModal?(0,l.createElement)(jo,{key:t.id,action:t,item:e,ActionTrigger:Uo}):(0,l.createElement)(Uo,{key:t.id,action:t,onClick:()=>t.callback([e])}))),(0,l.createElement)(Lo,{trigger:(0,l.createElement)(b.Button,{size:"compact",icon:ue,label:(0,E.__)("Actions"),disabled:!a.length}),placement:"bottom-end"},(0,l.createElement)(Zo,{actions:a,item:e})))}function Yo({item:e,primaryActions:t,secondaryActions:n}){return(0,l.createElement)(Lo,{trigger:(0,l.createElement)(b.Button,{size:"compact",icon:ue,label:(0,E.__)("Actions"),disabled:!t.length&&!n.length}),placement:"bottom-end"},!!t.length&&(0,l.createElement)(Zo,{actions:t,item:e}),!!n.length&&(0,l.createElement)(Zo,{actions:n,item:e}))}const Ko=({data:e,view:t,fields:n,textFields:r})=>{const a=[...e],s=t.sort.field;if(r.includes(s)){const e=n.find((e=>e.id===s));a.sort(((n,r)=>{var a,s;const i=null!==(a=e.getValue({item:n}))&&void 0!==a?a:"",o=null!==(s=e.getValue({item:r}))&&void 0!==s?s:"";return"asc"===t.sort.direction?i.localeCompare(o):o.localeCompare(i)}))}return a};function Xo({data:e,view:t}){const n=(t.page-1)*t.perPage,r=e?.length||0;return e=e?.slice(n,n+t.perPage),{data:e,paginationInfo:{totalItems:r,totalPages:Math.ceil(r/t.perPage)}}}const Jo=e=>{let t=e.filterBy?.operators;return t&&Array.isArray(t)||(t=Object.keys(xl)),t.filter((e=>Object.keys(xl).includes(e)))},{DropdownMenuV2:Qo,DropdownMenuGroupV2:$o,DropdownMenuItemV2:el,DropdownMenuSeparatorV2:tl}=Vo(b.privateApis);function nl(e,t){return(0,g.useMemo)((()=>e.some((e=>e.supportsBulk&&e.isEligible(t)))),[e,t])}function rl({action:e,selectedItems:t,setActionWithModal:n,onMenuOpenChange:r}){const a=(0,g.useMemo)((()=>t.filter((t=>e.isEligible(t)))),[e,t]),{RenderModal:s,hideModalHeader:i}=e,o=(0,g.useCallback)((()=>{n(void 0)}),[n]);return(0,l.createElement)(b.Modal,{title:!i&&e.label,__experimentalHideHeader:!!i,onRequestClose:o,overlayClassName:"dataviews-action-modal"},(0,l.createElement)(s,{items:a,closeModal:o,onPerform:()=>r(!1)}))}function al({action:e,selectedItems:t,setActionWithModal:n}){const r=(0,g.useMemo)((()=>t.filter((t=>e.isEligible(t)))),[e,t]),a=!!e.RenderModal;return(0,l.createElement)(el,{key:e.id,disabled:0===r.length,hideOnClick:!a,onClick:async()=>{a?n(e):await e.callback(r)},suffix:r.length>0?r.length:void 0},e.label)}function sl({actions:e,selectedItems:t,setActionWithModal:n}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)($o,null,e.map((e=>(0,l.createElement)(al,{key:e.id,action:e,selectedItems:t,setActionWithModal:n})))),(0,l.createElement)(tl,null))}function il({data:e,actions:t,selection:n,onSelectionChange:r,getItemId:a}){const s=(0,g.useMemo)((()=>t.filter((e=>e.supportsBulk))),[t]),[i,o]=(0,g.useState)(!1),[c,u]=(0,g.useState)(),d=(0,g.useMemo)((()=>e.filter((e=>s.some((t=>t.isEligible(e)))))),[e,s]),m=d.length,p=n&&n.length===m,h=(0,g.useMemo)((()=>e.filter((e=>n.includes(a(e))))),[n,e,a]),f=(0,g.useMemo)((()=>h.some((e=>!d.includes(e)))),[h,d]);return(0,g.useEffect)((()=>{f&&r(h.filter((e=>d.some((t=>a(e)===a(t))))))}),[f,h,d,a,r]),0===s.length?null:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Qo,{open:i,onOpenChange:o,label:(0,E.__)("Bulk actions"),style:{minWidth:"240px"},trigger:(0,l.createElement)(b.Button,{className:"dataviews-bulk-edit-button",__next40pxDefaultSize:!0,variant:"tertiary",size:"compact"},n.length?(0,E.sprintf)((0,E._n)("Edit %d item","Edit %d items",n.length),n.length):(0,E.__)("Bulk edit"))},(0,l.createElement)(sl,{actions:s,setActionWithModal:u,selectedItems:h}),(0,l.createElement)($o,null,(0,l.createElement)(el,{disabled:p,hideOnClick:!1,onClick:()=>{r(d)},suffix:m},(0,E.__)("Select all")),(0,l.createElement)(el,{disabled:0===n.length,hideOnClick:!1,onClick:()=>{r([])}},(0,E.__)("Deselect")))),c&&(0,l.createElement)(rl,{action:c,selectedItems:h,setActionWithModal:u,onMenuOpenChange:o}))}const{DropdownMenuV2:ol,DropdownMenuGroupV2:ll,DropdownMenuItemV2:cl,DropdownMenuRadioItemV2:ul,DropdownMenuItemLabelV2:dl,DropdownMenuSeparatorV2:ml}=Vo(b.privateApis);function pl({children:e}){return g.Children.toArray(e).filter(Boolean).map(((e,t)=>(0,l.createElement)(g.Fragment,{key:t},t>0&&(0,l.createElement)(ml,null),e)))}const hl={asc:"↑",desc:"↓"},fl=(0,g.forwardRef)((function({field:e,view:t,onChangeView:n,onHide:r,setOpenedFilter:a},s){const i=!1!==e.enableHiding,o=!1!==e.enableSorting,c=t.sort?.field===e.id,u=Jo(e),d=!t.filters?.some((t=>e.id===t.field))&&e.type===El&&!!u.length&&!e.filterBy?.isPrimary;return o||i||d?(0,l.createElement)(ol,{align:"start",trigger:(0,l.createElement)(b.Button,{size:"compact",className:"dataviews-view-table-header-button",ref:s,variant:"tertiary"},e.header,c&&(0,l.createElement)("span",{"aria-hidden":"true"},c&&hl[t.sort.direction])),style:{minWidth:"240px"}},(0,l.createElement)(pl,null,o&&(0,l.createElement)(ll,null,Object.entries(Cl).map((([r,a])=>{const s=c&&t.sort.direction===r,i=`${e.id}-${r}`;return(0,l.createElement)(ul,{key:i,name:"view-table-sorting",value:i,checked:s,onChange:()=>{n({...t,sort:{field:e.id,direction:r}})}},(0,l.createElement)(dl,null,a.label))}))),d&&(0,l.createElement)(ll,null,(0,l.createElement)(cl,{prefix:(0,l.createElement)(b.Icon,{icon:No}),onClick:()=>{a(e.id),n({...t,page:1,filters:[...t.filters||[],{field:e.id,value:void 0,operator:u[0]}]})}},(0,l.createElement)(dl,null,(0,E.__)("Add filter")))),i&&(0,l.createElement)(cl,{prefix:(0,l.createElement)(b.Icon,{icon:Fo}),onClick:()=>{r(e),n({...t,hiddenFields:t.hiddenFields.concat(e.id)})}},(0,l.createElement)(dl,null,(0,E.__)("Hide"))))):e.header}));function gl({selection:e,onSelectionChange:t,data:n,actions:r}){const a=(0,g.useMemo)((()=>n.filter((e=>r.some((t=>t.supportsBulk&&t.isEligible(e)))))),[n,r]),s=e.length===a.length;return(0,l.createElement)(b.CheckboxControl,{className:"dataviews-view-table-selection-checkbox",__nextHasNoMarginBottom:!0,checked:s,indeterminate:!s&&e.length,onChange:()=>{t(s?[]:a)},label:s?(0,E.__)("Deselect all"):(0,E.__)("Select all")})}function yl({hasBulkActions:e,item:t,actions:n,id:r,visibleFields:a,primaryField:s,selection:i,getItemId:o,onSelectionChange:c,data:u}){const d=nl(n,t);return(0,l.createElement)("tr",{className:_()("dataviews-view-table__row",{"is-selected":d&&i.includes(r)})},e&&(0,l.createElement)("td",{className:"dataviews-view-table__checkbox-column",style:{width:20,minWidth:20}},(0,l.createElement)("div",{className:"dataviews-view-table__cell-content-wrapper"},(0,l.createElement)(Ro,{id:r,item:t,selection:i,onSelectionChange:c,getItemId:o,data:u,primaryField:s,disabled:!d}))),a.map((e=>(0,l.createElement)("td",{key:e.id,style:{width:e.width||void 0,minWidth:e.minWidth||void 0,maxWidth:e.maxWidth||void 0}},(0,l.createElement)("div",{className:_()("dataviews-view-table__cell-content-wrapper",{"dataviews-view-table__primary-field":s?.id===e.id})},e.render({item:t}))))),!!n?.length&&(0,l.createElement)("td",{className:"dataviews-view-table__actions-column"},(0,l.createElement)(qo,{item:t,actions:n})))}const vl=function({view:e,onChangeView:t,fields:n,actions:r,data:a,getItemId:s,isLoading:i=!1,deferredRendering:o,selection:c,onSelectionChange:u,setOpenedFilter:d}){const m=(0,g.useRef)(new Map),p=(0,g.useRef)(),[h,f]=(0,g.useState)(),y=function(e,t){return(0,g.useMemo)((()=>t.some((t=>e.some((e=>e.supportsBulk&&e.isEligible(t)))))),[e,t])}(r,a);(0,g.useEffect)((()=>{p.current&&(p.current.focus(),p.current=void 0)}));const v=(0,ie.useAsyncList)(a),b=(0,g.useId)();if(h)return p.current=h,void f();const w=e=>{const t=m.current.get(e.id),n=m.current.get(t.fallback);f(n?.node)},S=n.filter((t=>!e.hiddenFields.includes(t.id)&&![e.layout.mediaField].includes(t.id))),x=o?v:a,C=!!x?.length,k={asc:"ascending",desc:"descending"},T=n.find((t=>t.id===e.layout.primaryField));return(0,l.createElement)(g.Fragment,null,(0,l.createElement)("table",{className:"dataviews-view-table","aria-busy":i,"aria-describedby":b},(0,l.createElement)("thead",null,(0,l.createElement)("tr",{className:"dataviews-view-table__row"},y&&(0,l.createElement)("th",{className:"dataviews-view-table__checkbox-column",style:{width:20,minWidth:20},"data-field-id":"selection",scope:"col"},(0,l.createElement)(gl,{selection:c,onSelectionChange:u,data:a,actions:r})),S.map(((n,r)=>(0,l.createElement)("th",{key:n.id,style:{width:n.width||void 0,minWidth:n.minWidth||void 0,maxWidth:n.maxWidth||void 0},"data-field-id":n.id,"aria-sort":e.sort?.field===n.id&&k[e.sort.direction],scope:"col"},(0,l.createElement)(fl,{ref:e=>{e?m.current.set(n.id,{node:e,fallback:S[r>0?r-1:1]?.id}):m.current.delete(n.id)},field:n,view:e,onChangeView:t,onHide:w,setOpenedFilter:d})))),!!r?.length&&(0,l.createElement)("th",{"data-field-id":"actions",className:"dataviews-view-table__actions-column"},(0,l.createElement)("span",{className:"dataviews-view-table-header"},(0,E.__)("Actions"))))),(0,l.createElement)("tbody",null,C&&x.map(((e,t)=>(0,l.createElement)(yl,{key:s(e),item:e,hasBulkActions:y,actions:r,id:s(e)||t,visibleFields:S,primaryField:T,selection:c,getItemId:s,onSelectionChange:u,data:a}))))),(0,l.createElement)("div",{className:_()({"dataviews-loading":i,"dataviews-no-results":!C&&!i}),id:b},!C&&(0,l.createElement)("p",null,i?(0,E.__)("Loading…"):(0,E.__)("No results"))))};function _l({selection:e,data:t,onSelectionChange:n,getItemId:r,item:a,actions:s,mediaField:i,primaryField:o,visibleFields:c}){const[u,d]=(0,g.useState)(!1),m=nl(s,a),p=r(a),h=e.includes(p);return(0,l.createElement)(b.__experimentalVStack,{spacing:0,key:p,className:_()("dataviews-view-grid__card",{"is-selected":m&&h,"has-no-pointer-events":u}),onMouseDown:a=>{m&&(a.ctrlKey||a.metaKey)&&(d(!0),n(h?t.filter((t=>{const n=r?.(t);return n!==p&&e.includes(n)})):t.filter((t=>{const n=r?.(t);return n===p||e.includes(n)}))))},onClick:()=>{u&&d(!1)}},(0,l.createElement)("div",{className:"dataviews-view-grid__media"},i?.render({item:a})),(0,l.createElement)(b.__experimentalHStack,{justify:"space-between",className:"dataviews-view-grid__title-actions"},(0,l.createElement)(Ro,{id:p,item:a,selection:e,onSelectionChange:n,getItemId:r,data:t,primaryField:o,disabled:!m}),(0,l.createElement)(b.__experimentalHStack,{className:"dataviews-view-grid__primary-field"},o?.render({item:a})),(0,l.createElement)(qo,{item:a,actions:s,isCompact:!0})),(0,l.createElement)(b.__experimentalVStack,{className:"dataviews-view-grid__fields",spacing:3},c.map((e=>{const t=e.render({item:a});return t?(0,l.createElement)(b.__experimentalVStack,{className:"dataviews-view-grid__field",key:e.id,spacing:1},(0,l.createElement)(b.Tooltip,{text:e.header,placement:"left"},(0,l.createElement)("div",{className:"dataviews-view-grid__field-value"},t))):null}))))}const bl=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}));const El="enumeration",wl="in",Sl="notIn",xl={[wl]:{key:"in-filter",label:(0,E.__)("Is")},[Sl]:{key:"not-in-filter",label:(0,E.__)("Is not")}},Cl={asc:{label:(0,E.__)("Sort ascending")},desc:{label:(0,E.__)("Sort descending")}},kl="table",Tl="grid",Pl=[{type:kl,label:(0,E.__)("Table"),component:vl,icon:Mo},{type:Tl,label:(0,E.__)("Grid"),component:function({data:e,fields:t,view:n,actions:r,isLoading:a,getItemId:s,deferredRendering:i,selection:o,onSelectionChange:c}){const u=t.find((e=>e.id===n.layout.mediaField)),d=t.find((e=>e.id===n.layout.primaryField)),m=t.filter((e=>!n.hiddenFields.includes(e.id)&&![n.layout.mediaField,n.layout.primaryField].includes(e.id))),p=(0,ie.useAsyncList)(e,{step:3}),h=i?p:e,f=!!h?.length;return(0,l.createElement)(l.Fragment,null,f&&(0,l.createElement)(b.__experimentalGrid,{gap:6,columns:2,alignment:"top",className:"dataviews-view-grid","aria-busy":a},h.map((t=>(0,l.createElement)(_l,{key:s(t),selection:o,data:e,onSelectionChange:c,getItemId:s,item:t,actions:r,mediaField:u,primaryField:d,visibleFields:m})))),!f&&(0,l.createElement)("div",{className:_()({"dataviews-loading":a,"dataviews-no-results":!a})},(0,l.createElement)("p",null,a?(0,E.__)("Loading…"):(0,E.__)("No results"))))},icon:za},{type:"list",label:(0,E.__)("List"),component:function({view:e,fields:t,data:n,isLoading:r,getItemId:a,onSelectionChange:s,onDetailsChange:i,selection:o,deferredRendering:c}){const u=(0,ie.useAsyncList)(n,{step:3}),d=c?u:n,m=t.find((t=>t.id===e.layout.mediaField)),p=t.find((t=>t.id===e.layout.primaryField)),h=t.filter((t=>!e.hiddenFields.includes(t.id)&&![e.layout.primaryField,e.layout.mediaField].includes(t.id))),f=e=>t=>{const{keyCode:n}=t;[wr.ENTER,wr.SPACE].includes(n)&&s([e])},g=d?.length;return g?(0,l.createElement)("ul",{className:"dataviews-view-list"},d.map((e=>(0,l.createElement)("li",{key:a(e),className:_()({"is-selected":o.includes(e.id)})},(0,l.createElement)(b.__experimentalHStack,{className:"dataviews-view-list__item-wrapper"},(0,l.createElement)("div",{role:"button",tabIndex:0,"aria-pressed":o.includes(e.id),onKeyDown:f(e),className:"dataviews-view-list__item",onClick:()=>s([e])},(0,l.createElement)(b.__experimentalHStack,{spacing:3,justify:"start",alignment:"flex-start"},(0,l.createElement)("div",{className:"dataviews-view-list__media-wrapper"},m?.render({item:e})||(0,l.createElement)("div",{className:"dataviews-view-list__media-placeholder"})),(0,l.createElement)(b.__experimentalVStack,{spacing:1},(0,l.createElement)("span",{className:"dataviews-view-list__primary-field"},p?.render({item:e})),(0,l.createElement)("div",{className:"dataviews-view-list__fields"},h.map((t=>(0,l.createElement)("span",{key:t.id,className:"dataviews-view-list__field"},t.render({item:e})))))))),i&&(0,l.createElement)(b.Button,{className:"dataviews-view-list__details-button",onClick:()=>i([e]),icon:bl,label:(0,E.__)("View details"),size:"compact"})))))):(0,l.createElement)("div",{className:_()({"dataviews-loading":r,"dataviews-no-results":!g&&!r})},!g&&(0,l.createElement)("p",null,r?(0,E.__)("Loading…"):(0,E.__)("No results")))},icon:(0,E.isRTL)()?Ao:Oo}],{useLocation:Il}=Xe(gt.privateApis);function Ml({title:e,slug:t,customViewId:n,type:r,icon:a,isActive:s,isCustom:i,suffix:o}){const{params:{path:c,layout:u}}=Il(),d=a||Pl.find((e=>e.type===r)).icon,m=Et({path:c,layout:u,activeView:"true"===i?n:t,isCustom:i});return(0,l.createElement)(b.__experimentalHStack,{justify:"flex-start",className:_()("edit-site-sidebar-dataviews-dataview-item",{"is-selected":s})},(0,l.createElement)(vr,{icon:d,...m,"aria-current":s?"true":void 0},e),o)}const Al=[];function Ol({template:e,isActive:t}){const{text:n,icon:r}=Bs(e.type,e.id);return(0,l.createElement)(Ml,{key:n,slug:n,title:n,icon:r,isActive:t,isCustom:"false"})}function Nl({activeView:e,postType:t,title:n}){const{records:r}=(0,ye.useEntityRecords)("postType",t,{per_page:-1}),a=(0,g.useMemo)((()=>{var e;const t=r?.reduce(((e,t)=>{const n=t.author_text;return n&&!e[n]&&(e[n]=t),e}),{});return null!==(e=t&&Object.values(t))&&void 0!==e?e:Al}),[r]);return(0,l.createElement)(b.__experimentalItemGroup,null,(0,l.createElement)(Ml,{slug:"all",title:n,icon:lr,isActive:"all"===e,isCustom:"false"}),a.map((t=>(0,l.createElement)(Ol,{key:t.author_text,template:t,isActive:e===t.author_text}))))}const Fl={[Ct]:{title:(0,E.__)("Manage templates"),description:(0,E.__)("Create new templates, or reset any customizations made to the templates supplied by your theme."),contentTitle:(0,E.__)("All templates")},[kt]:{title:(0,E.__)("Manage template parts"),description:(0,E.__)("Create new template parts, or reset any customizations made to the template parts supplied by your theme."),backPath:"/patterns",contentTitle:(0,E.__)("All template parts")}},{useLocation:Rl}=Xe(gt.privateApis);function Dl(){const{params:{postType:e}}=(0,b.__experimentalUseNavigator)(),{params:{didAccessPatternsPage:t,activeView:n="all"}}=Rl(),r=(0,m.useSelect)((e=>!!e(tr).getSettings().supportsTemplatePartsMode),[]);return(0,l.createElement)(hr,{isRoot:r&&!t,title:Fl[e].title,description:Fl[e].description,backPath:Fl[e].backPath,content:(0,l.createElement)(Nl,{activeView:n,postType:e,title:Fl[e].contentTitle})})}function Vl({className:e="edit-site-save-button__button",variant:t="primary",showTooltip:n=!0,defaultLabel:r,icon:a,__next40pxDefaultSize:s=!1}){const{isDirty:i,isSaving:o,isSaveViewOpen:c,previewingThemeName:u}=(0,m.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:t,isSavingEntityRecord:n,isResolving:r}=e(ye.store),a=t(),{isSaveViewOpened:s}=e(tr),i=r("activateTheme"),o=_t();return{isDirty:a.length>0,isSaving:a.some((e=>n(e.kind,e.name,e.key)))||i,isSaveViewOpen:s(),previewingThemeName:o?e(ye.store).getTheme(o)?.name?.rendered:void 0}}),[]),{setIsSaveViewOpened:d}=(0,m.useDispatch)(tr),p=vt()||i,h=o||!p,f=vt()?o?(0,E.sprintf)((0,E.__)("Activating %s"),u):h?(0,E.__)("Saved"):i?(0,E.sprintf)((0,E.__)("Activate %s & Save"),u):(0,E.sprintf)((0,E.__)("Activate %s"),u):o?(0,E.__)("Saving"):h?(0,E.__)("Saved"):r||(0,E.__)("Save");return(0,l.createElement)(b.Button,{variant:t,className:e,"aria-disabled":h,"aria-expanded":c,isBusy:o,onClick:h?void 0:()=>d(!0),label:f,shortcut:h?void 0:wr.displayShortcut.primary("s"),showTooltip:n,icon:a,__next40pxDefaultSize:s,size:"compact"},f)}const{useLocation:Ll}=Xe(gt.privateApis),Bl=[{kind:"postType",name:xt}];function zl(){const e="site-edit-save-notice",{params:t}=Ll(),{__unstableMarkLastChangeAsPersistent:n}=(0,m.useDispatch)(fe.store),{createSuccessNotice:r,createErrorNotice:a,removeNotice:s}=(0,m.useDispatch)(ge.store),{dirtyCurrentEntity:i,countUnsavedChanges:o,isDirty:c,isSaving:u}=(0,m.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:n,isSavingEntityRecord:r}=e(ye.store),a=n();let s=null;return 1===a.length&&(t.path?.includes("wp_global_styles")?s=a.find((e=>"globalStyles"===e.name)):t.postId&&(s=a.find((e=>e.name===t.postType&&String(e.key)===t.postId)))),{dirtyCurrentEntity:s,isDirty:a.length>0,isSaving:a.some((e=>r(e.kind,e.name,e.key))),countUnsavedChanges:a.length}}),[t.path,t.postType,t.postId]),{editEntityRecord:d,saveEditedEntityRecord:p,__experimentalSaveSpecifiedEntityEdits:h}=(0,m.useDispatch)(ye.store),f=u||!c&&!vt();let g=i?(0,E.__)("Save"):(0,E.sprintf)((0,E._n)("Review %d change…","Review %d changes…",o),o);u&&(g=(0,E.__)("Saving"));const{homeUrl:y}=(0,m.useSelect)((e=>{const{getUnstableBase:t}=e(ye.store);return{homeUrl:t()?.home}}),[]);return(0,l.createElement)(b.__experimentalHStack,{className:"edit-site-save-hub",alignment:"right",spacing:4},i?(0,l.createElement)(b.Button,{variant:"primary",onClick:async()=>{if(!i)return;s(e);const{kind:t,name:o,key:l,property:c}=i;try{"root"===i.kind&&"site"===o?await h("root","site",void 0,[c]):(Bl.some((e=>e.kind===t&&e.name===o))&&d(t,o,l,{status:"publish"}),await p(t,o,l)),n(),r((0,E.__)("Site updated."),{type:"snackbar",actions:[{label:(0,E.__)("View site"),url:y}],id:e})}catch(e){a(`${(0,E.__)("Saving failed.")} ${e}`)}},isBusy:u,disabled:u,"aria-disabled":u,className:"edit-site-save-hub__button",__next40pxDefaultSize:!0},g):(0,l.createElement)(Vl,{className:"edit-site-save-hub__button",variant:f?null:"primary",showTooltip:!1,icon:f&&!u?S:null,defaultLabel:g,__next40pxDefaultSize:!0}))}function Hl({onSave:e,onClose:t}){const[n,r]=(0,g.useState)(!1),[a,s]=(0,g.useState)(""),{saveEntityRecord:i}=(0,m.useDispatch)(ye.store),{createErrorNotice:o,createSuccessNotice:c}=(0,m.useDispatch)(ge.store);return(0,l.createElement)(b.Modal,{title:(0,E.__)("Draft a new page"),onRequestClose:t},(0,l.createElement)("form",{onSubmit:async function(t){if(t.preventDefault(),!n){r(!0);try{const t=await i("postType","page",{status:"draft",title:a,slug:a||(0,E.__)("No title")},{throwOnError:!0});e(t),c((0,E.sprintf)((0,E.__)('"%s" successfully created.'),t.title?.rendered||a),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the page.");o(t,{type:"snackbar"})}finally{r(!1)}}}},(0,l.createElement)(b.__experimentalVStack,{spacing:3},(0,l.createElement)(b.TextControl,{label:(0,E.__)("Page title"),onChange:s,placeholder:(0,E.__)("No title"),value:a}),(0,l.createElement)(b.__experimentalHStack,{spacing:2,justify:"end"},(0,l.createElement)(b.Button,{variant:"tertiary",onClick:t},(0,E.__)("Cancel")),(0,l.createElement)(b.Button,{variant:"primary",type:"submit",isBusy:n,"aria-disabled":n},(0,E.__)("Create draft"))))))}const{useHistory:Gl}=Xe(gt.privateApis),Ul=({postType:e="page",postId:t,...n})=>{const r=Et({postType:e,postId:t},{backPath:"/page"});return(0,l.createElement)(vr,{...r,...n})};function Wl(){const e=(0,ie.useViewportMatch)("medium","<"),{records:t,isResolving:n}=(0,ye.useEntityRecords)("postType","page",{status:"any",per_page:-1}),{records:r,isResolving:a}=(0,ye.useEntityRecords)("postType",Ct,{per_page:-1}),s=r?.filter((({slug:e})=>["404","search"].includes(e))),i=r?.find((e=>"front-page"===e.slug))||r?.find((e=>"home"===e.slug))||r?.find((e=>"index"===e.slug)),o=t?.concat(s,[i]),{frontPage:c,postsPage:u}=(0,m.useSelect)((e=>{const{getEntityRecord:t}=e(ye.store),n=t("root","site");return{frontPage:n?.page_on_front,postsPage:n?.page_for_posts}}),[]),d=c===u,p=t&&[...t];if(!d&&p?.length){const e=p.findIndex((e=>e.id===c)),t=p.splice(e,1);p?.splice(0,0,...t);const n=p.findIndex((e=>e.id===u)),r=p.splice(n,1);p.splice(1,0,...r)}const[h,f]=(0,g.useState)(!1),y=Gl(),v=e=>{let t=or;const n=u&&u===e?(r?.find((e=>"home"===e.slug))||r?.find((e=>"index"===e.slug)))?.id:null;switch(e){case c:t=Na;break;case u:t=Fa}return{icon:t,postType:n?Ct:"page",postId:n||e}},_=Et({path:"/pages"});return(0,l.createElement)(l.Fragment,null,h&&(0,l.createElement)(Hl,{onSave:({type:e,id:t})=>{y.push({postId:t,postType:e,canvas:"edit"}),f(!1)},onClose:()=>f(!1)}),(0,l.createElement)(hr,{title:(0,E.__)("Pages"),description:(0,E.__)("Browse and manage pages."),actions:(0,l.createElement)(mr,{icon:Za,label:(0,E.__)("Draft a new page"),onClick:()=>f(!0)}),content:(0,l.createElement)(l.Fragment,null,(n||a)&&(0,l.createElement)(b.__experimentalItemGroup,null,(0,l.createElement)(b.__experimentalItem,null,(0,E.__)("Loading pages…"))),!(n||a)&&(0,l.createElement)(b.__experimentalItemGroup,null,!o?.length&&(0,l.createElement)(b.__experimentalItem,null,(0,E.__)("No page found")),d&&i&&(0,l.createElement)(Ul,{postType:Ct,postId:i.id,key:i.id,icon:Na,withChevron:!0},(0,l.createElement)(b.__experimentalTruncate,{numberOfLines:1},(0,en.decodeEntities)(i.title?.rendered||(0,E.__)("(no title)")))),p?.map((({id:e,title:t})=>(0,l.createElement)(Ul,{...v(e),key:e,withChevron:!0},(0,l.createElement)(b.__experimentalTruncate,{numberOfLines:1},(0,en.decodeEntities)(t?.rendered||(0,E.__)("(no title)")))))))),footer:(0,l.createElement)(b.__experimentalVStack,{spacing:0},s?.map((e=>(0,l.createElement)(Ul,{postType:Ct,postId:e.id,key:e.id,icon:lr,withChevron:!0},(0,l.createElement)(b.__experimentalTruncate,{numberOfLines:1},(0,en.decodeEntities)(e.title?.rendered||(0,E.__)("(no title)")))))),!e&&(0,l.createElement)(vr,{className:"edit-site-sidebar-navigation-screen-pages__see-all",..._},(0,E.__)("Manage all pages")))}))}const jl=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,l.createElement)(w.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,l.createElement)(w.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})),Zl=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8 2H6a2 2 0 0 0-2 2v2.4h1.5V4a.5.5 0 0 1 .5-.5h2V2ZM4 13.6V16a2 2 0 0 0 2 2h2v-1.5H6a.5.5 0 0 1-.5-.5v-2.4H4Zm0-1.2h1.5V7.6H4v4.8ZM9 2v1.5h4V2H9Zm5 0v1.5h2a.5.5 0 0 1 .5.5v2.4H18V4a2 2 0 0 0-2-2h-2Zm4 5.6h-1.5v4.8H18V7.6Zm0 6h-1.5V16a.5.5 0 0 1-.5.5h-2V18h2a2 2 0 0 0 2-2v-2.4ZM13 18v-1.5H9V18h4ZM7 7.25h8v-1.5H7v1.5Zm0 3.25h6V9H7v1.5ZM21.75 19V6h-1.5v13c0 .69-.56 1.25-1.25 1.25H8v1.5h11A2.75 2.75 0 0 0 21.75 19Z"})),ql=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})),Yl={[Vt]:{primaryField:"title"},[Dt]:{mediaField:"featured-image",primaryField:"title"},[Lt]:{primaryField:"title",mediaField:"featured-image"}},Kl={type:Vt,search:"",filters:[],page:1,perPage:20,sort:{field:"date",direction:"desc"},hiddenFields:["date","featured-image"],layout:{...Yl[Vt]}},Xl={page:[{title:(0,E.__)("All pages"),slug:"all",icon:jl,view:Kl},{title:(0,E.__)("Drafts"),slug:"drafts",icon:Zl,view:{...Kl,filters:[{field:"status",operator:zt,value:"draft"}]}},{title:(0,E.__)("Trash"),slug:"trash",icon:ql,view:{...Kl,filters:[{field:"status",operator:zt,value:"trash"}]}}]},{useHistory:Jl,useLocation:Ql}=Xe(gt.privateApis);function $l({type:e,setIsAdding:t}){const{params:{path:n}}=Ql(),r=Jl(),{saveEntityRecord:a}=(0,m.useDispatch)(ye.store),[s,i]=(0,g.useState)(""),[o,c]=(0,g.useState)(!1);return(0,l.createElement)("form",{onSubmit:async i=>{i.preventDefault(),c(!0);const{getEntityRecords:o}=(0,m.resolveSelect)(ye.store);let l;const u=await o("taxonomy","wp_dataviews_type",{slug:e});if(u&&u.length>0)l=u[0].id;else{const t=await a("taxonomy","wp_dataviews_type",{name:e});t&&t.id&&(l=t.id)}const d=await a("postType","wp_dataviews",{title:s,status:"publish",wp_dataviews_type:l,content:JSON.stringify(Xl[e][0].view)});r.push({path:n,activeView:d.id,isCustom:"true"}),c(!1),t(!1)}},(0,l.createElement)(b.__experimentalVStack,{spacing:"5"},(0,l.createElement)(b.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:s,onChange:i,placeholder:(0,E.__)("My view"),className:"patterns-create-modal__name-input"}),(0,l.createElement)(b.__experimentalHStack,{justify:"right"},(0,l.createElement)(b.Button,{variant:"tertiary",onClick:()=>{t(!1)}},(0,E.__)("Cancel")),(0,l.createElement)(b.Button,{variant:"primary",type:"submit","aria-disabled":!s||o,isBusy:o},(0,E.__)("Create")))))}function ec({type:e}){const[t,n]=(0,g.useState)(!1);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(vr,{icon:Za,onClick:()=>{n(!0)},className:"dataviews__siderbar-content-add-new-item"},(0,E.__)("New view")),t&&(0,l.createElement)(b.Modal,{title:(0,E.__)("Add new view"),onRequestClose:()=>{n(!1)}},(0,l.createElement)($l,{type:e,setIsAdding:n})))}const{useHistory:tc,useLocation:nc}=Xe(gt.privateApis),rc=[];function ac({dataviewId:e,currentTitle:t,setIsRenaming:n}){const{editEntityRecord:r}=(0,m.useDispatch)(ye.store),[a,s]=(0,g.useState)(t);return(0,l.createElement)("form",{onSubmit:async t=>{t.preventDefault(),await r("postType","wp_dataviews",e,{title:a}),n(!1)}},(0,l.createElement)(b.__experimentalVStack,{spacing:"5"},(0,l.createElement)(b.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:a,onChange:s,placeholder:(0,E.__)("My view"),className:"patterns-create-modal__name-input"}),(0,l.createElement)(b.__experimentalHStack,{justify:"right"},(0,l.createElement)(b.Button,{variant:"tertiary",onClick:()=>{n(!1)}},(0,E.__)("Cancel")),(0,l.createElement)(b.Button,{variant:"primary",type:"submit","aria-disabled":!a},(0,E.__)("Rename")))))}function sc({dataviewId:e,isActive:t}){const{params:{path:n}}=nc(),r=tc(),{dataview:a}=(0,m.useSelect)((t=>{const{getEditedEntityRecord:n}=t(ye.store);return{dataview:n("postType","wp_dataviews",e)}}),[e]),{deleteEntityRecord:s}=(0,m.useDispatch)(ye.store),i=(0,g.useMemo)((()=>JSON.parse(a.content).type),[a.content]),[o,c]=(0,g.useState)(!1);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ml,{title:a.title,type:i,isActive:t,isCustom:"true",customViewId:e,suffix:(0,l.createElement)(b.DropdownMenu,{icon:ue,label:(0,E.__)("Actions"),className:"edit-site-sidebar-dataviews-dataview-item__dropdown-menu",toggleProps:{style:{color:"inherit"},size:"small"}},(({onClose:e})=>(0,l.createElement)(b.MenuGroup,null,(0,l.createElement)(b.MenuItem,{onClick:()=>{c(!0),e()}},(0,E.__)("Rename")),(0,l.createElement)(b.MenuItem,{onClick:async()=>{await s("postType","wp_dataviews",a.id,{force:!0}),t&&r.replace({path:n}),e()},isDestructive:!0},(0,E.__)("Delete")))))}),o&&(0,l.createElement)(b.Modal,{title:(0,E.__)("Rename view"),onRequestClose:()=>{c(!1)}},(0,l.createElement)(ac,{dataviewId:e,setIsRenaming:c,currentTitle:a.title})))}function ic({type:e,activeView:t,isCustom:n}){const r=function(e){return(0,m.useSelect)((t=>{const{getEntityRecords:n}=t(ye.store),r=n("taxonomy","wp_dataviews_type",{slug:e});if(!r||0===r.length)return rc;return n("postType","wp_dataviews",{wp_dataviews_type:r[0].id,orderby:"date",order:"asc"})||rc}))}(e);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-dataviews__group-header"},(0,l.createElement)(b.__experimentalHeading,{level:2},(0,E.__)("Custom Views"))),(0,l.createElement)(b.__experimentalItemGroup,null,r.map((e=>(0,l.createElement)(sc,{key:e.id,dataviewId:e.id,isActive:"true"===n&&Number(t)===e.id}))),(0,l.createElement)(ec,{type:e})))}const{useLocation:oc}=Xe(gt.privateApis),lc={"/pages":"page"};function cc(){const{params:{path:e,activeView:t="all",isCustom:n="false"}}=oc();if(!e||!lc[e])return null;const r=lc[e];return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.__experimentalItemGroup,null,Xl[r].map((e=>(0,l.createElement)(Ml,{key:e.slug,slug:e.slug,title:e.title,icon:e.icon,type:e.view.type,isActive:"false"===n&&e.slug===t,isCustom:"false"})))),window?.__experimentalAdminViews&&(0,l.createElement)(ic,{activeView:t,type:r,isCustom:"true"}))}const uc=window.wp.dom,dc=window.wp.escapeHtml,mc=window.wp.wordcount;function pc({status:e,date:t,short:n}){const r=(0,_a.humanTimeDiff)(t);let a=e;switch(e){case"publish":a=t?(0,g.createInterpolateElement)((0,E.sprintf)((0,E.__)("Published <time>%s</time>"),r),{time:(0,l.createElement)("time",{dateTime:t})}):(0,E.__)("Published");break;case"future":const e=(0,_a.dateI18n)(n?"M j":"F j",(0,_a.getDate)(t));a=t?(0,g.createInterpolateElement)((0,E.sprintf)((0,E.__)("Scheduled: <time>%s</time>"),e),{time:(0,l.createElement)("time",{dateTime:t})}):(0,E.__)("Scheduled");break;case"draft":a=(0,E.__)("Draft");break;case"pending":a=(0,E.__)("Pending");break;case"private":a=(0,E.__)("Private");break;case"protected":a=(0,E.__)("Password protected")}return(0,l.createElement)("div",{className:_()("edit-site-sidebar-navigation-screen-page__status",{[`has-status has-${e}-status`]:!!e})},a)}const hc=189;function fc({id:e}){const{record:t}=(0,ye.useEntityRecord)("postType","page",e),{parentTitle:n,templateTitle:r,isPostsPage:a}=(0,m.useSelect)((e=>{const{getEditedPostId:n}=Xe(e(tr)),r=e(ye.store).getEntityRecord("postType",Ct,n()),a=r?.title?.rendered,s=t?.parent?e(ye.store).getEntityRecord("postType","page",t.parent,{_fields:["title"]})?.title?.rendered:null,{getEntityRecord:i}=e(ye.store),o=i("root","site");return{parentTitle:s,templateTitle:a,isPostsPage:t?.id===o?.page_for_posts}}),[t?.parent,t?.id]);return(0,l.createElement)(xa,{spacing:5,title:(0,E.__)("Details")},function(e){if(!e)return[];const t=[{label:(0,E.__)("Status"),value:(0,l.createElement)(pc,{status:e?.password?"protected":e.status,date:e?.date,short:!0})},{label:(0,E.__)("Slug"),value:(0,l.createElement)(b.__experimentalTruncate,{numberOfLines:1},(0,yt.safeDecodeURIComponent)(e.slug||e.generated_slug))}];e?.templateTitle&&t.push({label:(0,E.__)("Template"),value:(0,en.decodeEntities)(e.templateTitle)}),e?.parentTitle&&t.push({label:(0,E.__)("Parent"),value:(0,en.decodeEntities)(e.parentTitle||(0,E.__)("(no title)"))});const n=(0,E._x)("words","Word count type. Do not translate!"),r=e?.content?.rendered?(0,mc.count)(e.content.rendered,n):0,a=Math.round(r/hc);return r&&!e?.isPostsPage&&t.push({label:(0,E.__)("Words"),value:r.toLocaleString()||(0,E.__)("Unknown")},{label:(0,E.__)("Time to read"),value:a>1?(0,E.sprintf)((0,E.__)("%s mins"),a.toLocaleString()):(0,E.__)("< 1 min")}),t}({parentTitle:n,templateTitle:r,isPostsPage:a,...t}).map((({label:e,value:t})=>(0,l.createElement)(wa,{key:e},(0,l.createElement)(Ea,null,e),(0,l.createElement)(Sa,null,t)))))}function gc({postId:e,onRemove:t}){const{createSuccessNotice:n,createErrorNotice:r}=(0,m.useDispatch)(ge.store),{deleteEntityRecord:a}=(0,m.useDispatch)(ye.store),s=(0,m.useSelect)((t=>t(ye.store).getEntityRecord("postType","page",e)),[e]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.MenuItem,{onClick:()=>async function(){try{await a("postType","page",e,{},{throwOnError:!0}),n((0,E.sprintf)((0,E.__)('"%s" moved to the Trash.'),(0,en.decodeEntities)(s.title.rendered)),{type:"snackbar",id:"edit-site-page-trashed"}),t?.()}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while moving the page to the trash.");r(t,{type:"snackbar"})}}(),isDestructive:!0,variant:"secondary"},(0,E.__)("Move to Trash")))}function yc({postId:e,toggleProps:t,onRemove:n}){return(0,l.createElement)(b.DropdownMenu,{icon:ue,label:(0,E.__)("Actions"),toggleProps:t},(()=>(0,l.createElement)(b.MenuGroup,null,(0,l.createElement)(gc,{postId:e,onRemove:n}))))}const{useHistory:vc}=Xe(gt.privateApis);function _c({backPath:e}){const{setCanvasMode:t}=Xe((0,m.useDispatch)(tr)),n=vc(),{params:{postId:r},goTo:a}=(0,b.__experimentalUseNavigator)(),{record:s,hasResolved:i}=(0,ye.useEntityRecord)("postType","page",r),{featuredMediaAltText:o,featuredMediaSourceUrl:c}=(0,m.useSelect)((e=>{const{getEntityRecord:t}=e(ye.store),n=s?.featured_media?t("postType","attachment",s?.featured_media):null;return{featuredMediaSourceUrl:n?.media_details.sizes?.medium?.source_url||n?.source_url,featuredMediaAltText:(0,dc.escapeAttribute)(n?.alt_text||n?.description?.raw||"")}}),[s]);(0,g.useEffect)((()=>{i&&!s&&n.push({path:"/page",postId:void 0,postType:void 0,canvas:"view"})}),[i,n]);const u=o?(0,en.decodeEntities)(o):(0,en.decodeEntities)(s?.title?.rendered||(0,E.__)("Featured image"));return s?(0,l.createElement)(hr,{backPath:e,title:(0,en.decodeEntities)(s?.title?.rendered||(0,E.__)("(no title)")),actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(yc,{postId:r,toggleProps:{as:mr},onRemove:()=>{a("/page")}}),(0,l.createElement)(mr,{onClick:()=>t("edit"),label:(0,E.__)("Edit"),icon:br})),meta:(0,l.createElement)(b.ExternalLink,{className:"edit-site-sidebar-navigation-screen__page-link",href:s.link},(0,yt.filterURLForDisplay)((0,yt.safeDecodeURIComponent)(s.link))),content:(0,l.createElement)(l.Fragment,null,!!c&&(0,l.createElement)(b.__experimentalVStack,{className:"edit-site-sidebar-navigation-screen-page__featured-image-wrapper",alignment:"left",spacing:2},(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-page__featured-image has-image"},(0,l.createElement)("img",{alt:u,src:c}))),!!s?.excerpt?.rendered&&(0,l.createElement)(b.__experimentalTruncate,{className:"edit-site-sidebar-navigation-screen-page__excerpt",numberOfLines:3},(0,uc.__unstableStripHTML)(s.excerpt.rendered)),(0,l.createElement)(fc,{id:r})),footer:s?.modified?(0,l.createElement)(Ca,{record:s}):null}):null}const{useLocation:bc}=Xe(gt.privateApis);function Ec({className:e,...t}){return(0,l.createElement)(b.__experimentalNavigatorScreen,{className:_()("edit-site-sidebar__screen-wrapper",e),...t})}function wc(){Zi();const e=(0,ie.useViewportMatch)("medium","<");return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ec,{path:"/"},(0,l.createElement)(Oa,null)),(0,l.createElement)(Ec,{path:"/navigation"},(0,l.createElement)(To,null)),(0,l.createElement)(Ec,{path:"/navigation/:postType/:postId"},(0,l.createElement)(Eo,null)),(0,l.createElement)(Ec,{path:"/wp_global_styles"},(0,l.createElement)(Ia,null)),(0,l.createElement)(Ec,{path:"/page"},(0,l.createElement)(Wl,null)),(0,l.createElement)(Ec,{path:"/pages"},(0,l.createElement)(hr,{title:(0,E.__)("Manage pages"),content:(0,l.createElement)(cc,null),backPath:"/page"})),(0,l.createElement)(Ec,{path:"/page/:postId"},(0,l.createElement)(_c,null)),(0,l.createElement)(Ec,{path:"/:postType(wp_template)"},(0,l.createElement)(As,null)),!e&&(0,l.createElement)(Ec,{path:"/patterns"},(0,l.createElement)(Di,null)),(0,l.createElement)(Ec,{path:"/:postType(wp_template|wp_template_part)/all"},(0,l.createElement)(Dl,null)),(0,l.createElement)(Ec,{path:"/:postType(wp_template_part|wp_block)/:postId"},(0,l.createElement)(co,null)),(0,l.createElement)(Ec,{path:"/:postType(wp_template)/:postId"},(0,l.createElement)(qs,null)))}const Sc=(0,g.memo)((function(){const{params:e}=bc(),t=(0,g.useRef)(ji(e));return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.__experimentalNavigatorProvider,{className:"edit-site-sidebar__content",initialPath:t.current},(0,l.createElement)(wc,null)),(0,l.createElement)(zl,null))}));function xc({text:e,children:t}){const n=(0,ie.useCopyToClipboard)(e);return(0,l.createElement)(b.Button,{variant:"secondary",ref:n},t)}function Cc({message:e,error:t}){const n=[(0,l.createElement)(xc,{key:"copy-error",text:t.stack},(0,E.__)("Copy Error"))];return(0,l.createElement)(fe.Warning,{className:"editor-error-boundary",actions:n},e)}class kc extends g.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){(0,pe.doAction)("editor.ErrorBoundary.errorLogged",e)}static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error?(0,l.createElement)(Cc,{message:(0,E.__)("The editor has encountered an unexpected error."),error:this.state.error}):this.props.children}}const Tc=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})),Pc=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})),Ic=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})),Mc=[{keyCombination:{modifier:"primary",character:"b"},description:(0,E.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,E.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,E.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,E.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,E.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,E.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,E.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,E.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},description:(0,E.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,E.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")}];function Ac({keyCombination:e,forceAriaLabel:t}){const n=e.modifier?wr.displayShortcutList[e.modifier](e.character):e.character,r=e.modifier?wr.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,l.createElement)("kbd",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||r},(Array.isArray(n)?n:[n]).map(((e,t)=>"+"===e?(0,l.createElement)(g.Fragment,{key:t},e):(0,l.createElement)("kbd",{key:t,className:"edit-site-keyboard-shortcut-help-modal__shortcut-key"},e))))}function Oc({description:e,keyCombination:t,aliases:n=[],ariaLabel:r}){return(0,l.createElement)(g.Fragment,null,(0,l.createElement)("div",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-description"},e),(0,l.createElement)("div",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-term"},(0,l.createElement)(Ac,{keyCombination:t,forceAriaLabel:r}),n.map(((e,t)=>(0,l.createElement)(Ac,{keyCombination:e,forceAriaLabel:r,key:t})))))}function Nc({name:e}){const{keyCombination:t,description:n,aliases:r}=(0,m.useSelect)((t=>{const{getShortcutKeyCombination:n,getShortcutDescription:r,getShortcutAliases:a}=t(nr.store);return{keyCombination:n(e),aliases:a(e),description:r(e)}}),[e]);return t?(0,l.createElement)(Oc,{keyCombination:t,description:n,aliases:r}):null}const Fc="edit-site/keyboard-shortcut-help",Rc=({shortcuts:e})=>(0,l.createElement)("ul",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map(((e,t)=>(0,l.createElement)("li",{className:"edit-site-keyboard-shortcut-help-modal__shortcut",key:t},"string"==typeof e?(0,l.createElement)(Nc,{name:e}):(0,l.createElement)(Oc,{...e}))))),Dc=({title:e,shortcuts:t,className:n})=>(0,l.createElement)("section",{className:_()("edit-site-keyboard-shortcut-help-modal__section",n)},!!e&&(0,l.createElement)("h2",{className:"edit-site-keyboard-shortcut-help-modal__section-title"},e),(0,l.createElement)(Rc,{shortcuts:t})),Vc=({title:e,categoryName:t,additionalShortcuts:n=[]})=>{const r=(0,m.useSelect)((e=>e(nr.store).getCategoryShortcuts(t)),[t]);return(0,l.createElement)(Dc,{title:e,shortcuts:r.concat(n)})};function Lc(){const e=(0,m.useSelect)((e=>e(j).isModalActive(Fc))),{closeModal:t,openModal:n}=(0,m.useDispatch)(j),r=()=>e?t():n(Fc);return(0,nr.useShortcut)("core/edit-site/keyboard-shortcuts",r),e?(0,l.createElement)(b.Modal,{className:"edit-site-keyboard-shortcut-help-modal",title:(0,E.__)("Keyboard shortcuts"),onRequestClose:r},(0,l.createElement)(Dc,{className:"edit-site-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-site/keyboard-shortcuts"]}),(0,l.createElement)(Vc,{title:(0,E.__)("Global shortcuts"),categoryName:"global"}),(0,l.createElement)(Vc,{title:(0,E.__)("Selection shortcuts"),categoryName:"selection"}),(0,l.createElement)(Vc,{title:(0,E.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,E.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,E.__)("Forward-slash")}]}),(0,l.createElement)(Dc,{title:(0,E.__)("Text formatting"),shortcuts:Mc})):null}const{PreferencesModal:Bc}=Xe(y.privateApis),zc="edit-site/preferences";function Hc(){const e=(0,m.useSelect)((e=>e(j).isModalActive(zc))),{closeModal:t}=(0,m.useDispatch)(j);return e?(0,l.createElement)(Bc,{isActive:e,onClose:t}):null}const{Fill:Gc,Slot:Uc}=(0,b.createSlotFill)("EditSiteToolsMoreMenuGroup");Gc.Slot=({fillProps:e})=>(0,l.createElement)(Uc,{fillProps:e},(e=>e&&e.length>0));const Wc=Gc,jc=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"})),Zc=window.wp.blob;function qc(){const{createErrorNotice:e}=(0,m.useDispatch)(ge.store);return(0,l.createElement)(b.MenuItem,{role:"menuitem",icon:jc,onClick:async function(){try{const e=await Xt()({path:"/wp-block-editor/v1/export",parse:!1,headers:{Accept:"application/zip"}}),t=await e.blob(),n=e.headers.get("content-disposition").match(/=(.+)\.zip/),r=n[1]?n[1]:"edit-site-export";(0,Zc.downloadBlob)(r+".zip",t,"application/zip")}catch(t){let n={};try{n=await t.json()}catch(e){}const r=n.message&&"unknown_error"!==n.code?n.message:(0,E.__)("An error occurred while creating the site export.");e(r,{type:"snackbar"})}},info:(0,E.__)("Download your theme with updated templates and styles.")},(0,E._x)("Export","site exporter menu item"))}function Yc(){const{toggle:e}=(0,m.useDispatch)(T.store);return(0,l.createElement)(b.MenuItem,{onClick:()=>e("core/edit-site","welcomeGuide")},(0,E.__)("Welcome Guide"))}function Kc(){const{createNotice:e}=(0,m.useDispatch)(ge.store),{getEditedPostId:t,getEditedPostType:n}=(0,m.useSelect)(tr),{getEditedEntityRecord:r}=(0,m.useSelect)(ye.store);const a=(0,ie.useCopyToClipboard)((function(){const e=r("postType",n(),t());return e?"function"==typeof e.content?e.content(e):e.blocks?(0,u.__unstableSerializeAndClean)(e.blocks):e.content?e.content:void 0:""}),(function(){e("info",(0,E.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}));return(0,l.createElement)(b.MenuItem,{ref:a},(0,E.__)("Copy all blocks"))}const Xc=[{value:"visual",label:(0,E.__)("Visual editor")},{value:"text",label:(0,E.__)("Code editor")}];const Jc=function(){const{shortcut:e,mode:t}=(0,m.useSelect)((e=>({shortcut:e(nr.store).getShortcutRepresentation("core/edit-site/toggle-mode"),mode:e(tr).getEditorMode()})),[]),{switchEditorMode:n}=(0,m.useDispatch)(tr),r=Xc.map((n=>n.value!==t?{...n,shortcut:e}:n));return(0,l.createElement)(b.MenuGroup,{label:(0,E.__)("Editor")},(0,l.createElement)(b.MenuItemsChoice,{choices:r,value:t,onSelect:n}))};function Qc({showIconLabels:e}){const{openModal:t}=(0,m.useDispatch)(j),{set:n}=(0,m.useDispatch)(T.store),r=(0,m.useSelect)((e=>e(ye.store).getCurrentTheme().is_block_theme),[]),{toggleDistractionFree:a}=(0,m.useDispatch)(tr),s=()=>{n("core","distractionFree",!1)};return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(de,{toggleProps:{showTooltip:!e,...e&&{variant:"tertiary"}}},(({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.MenuGroup,{label:(0,E._x)("View","noun")},(0,l.createElement)(T.PreferenceToggleMenuItem,{scope:"core",name:"fixedToolbar",onToggle:s,label:(0,E.__)("Top toolbar"),info:(0,E.__)("Access all block and document tools in a single place"),messageActivated:(0,E.__)("Top toolbar activated"),messageDeactivated:(0,E.__)("Top toolbar deactivated")}),(0,l.createElement)(T.PreferenceToggleMenuItem,{scope:"core",name:"distractionFree",label:(0,E.__)("Distraction free"),info:(0,E.__)("Write with calmness"),handleToggling:!1,onToggle:a,messageActivated:(0,E.__)("Distraction free mode activated"),messageDeactivated:(0,E.__)("Distraction free mode deactivated"),shortcut:wr.displayShortcut.primaryShift("\\")}),(0,l.createElement)(T.PreferenceToggleMenuItem,{scope:"core",name:"focusMode",label:(0,E.__)("Spotlight mode"),info:(0,E.__)("Focus on one block at a time"),messageActivated:(0,E.__)("Spotlight mode activated"),messageDeactivated:(0,E.__)("Spotlight mode deactivated")})),(0,l.createElement)(Jc,null),(0,l.createElement)(Q.Slot,{name:"core/edit-site/plugin-more-menu",label:(0,E.__)("Plugins"),as:b.MenuGroup,fillProps:{onClick:e}}),(0,l.createElement)(b.MenuGroup,{label:(0,E.__)("Tools")},r&&(0,l.createElement)(qc,null),(0,l.createElement)(b.MenuItem,{onClick:()=>t(Fc),shortcut:wr.displayShortcut.access("h")},(0,E.__)("Keyboard shortcuts")),(0,l.createElement)(Yc,null),(0,l.createElement)(Kc,null),(0,l.createElement)(b.MenuItem,{icon:Ic,role:"menuitem",href:(0,E.__)("https://wordpress.org/documentation/article/site-editor/"),target:"_blank",rel:"noopener noreferrer"},(0,E.__)("Help"),(0,l.createElement)(b.VisuallyHidden,{as:"span"},(0,E.__)("(opens in a new tab)"))),(0,l.createElement)(Wc.Slot,{fillProps:{onClose:e}})),(0,l.createElement)(b.MenuGroup,null,(0,l.createElement)(b.MenuItem,{onClick:()=>t(zc)},(0,E.__)("Preferences")))))),(0,l.createElement)(Lc,null),(0,l.createElement)(Hc,null))}const $c=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"m12 20-4.5-3.6-.9 1.2L12 22l5.5-4.4-.9-1.2L12 20zm0-16 4.5 3.6.9-1.2L12 2 6.5 6.4l.9 1.2L12 4z"})),{DocumentTools:eu}=Xe(y.privateApis);function tu({blockEditorMode:e,hasFixedToolbar:t,isDistractionFree:n}){const{isVisualMode:r}=(0,m.useSelect)((e=>{const{getEditorMode:t}=e(tr);return{isVisualMode:"visual"===t()}}),[]),{__unstableSetEditorMode:a}=(0,m.useDispatch)(fe.store),{setDeviceType:s}=(0,m.useDispatch)(y.store),i=(0,ie.useViewportMatch)("medium"),o=window?.__experimentalEnableZoomedOutView&&r,c="zoom-out"===e;return(0,l.createElement)(eu,{disableBlockTools:!r,listViewLabel:(0,E.__)("List View")},o&&i&&!n&&!t&&(0,l.createElement)(b.ToolbarItem,{as:b.Button,className:"edit-site-header-edit-mode__zoom-out-view-toggle",icon:$c,isPressed:c,label:(0,E.__)("Zoom-out View"),onClick:()=>{s("Desktop"),a(c?"edit":"zoom-out")},size:"compact"}))}const{PostViewLink:nu,PreviewDropdown:ru}=Xe(y.privateApis);function au(){const{templateType:e,isDistractionFree:t,blockEditorMode:n,blockSelectionStart:r,showIconLabels:a,editorCanvasView:s,hasFixedToolbar:i,isZoomOutMode:o}=(0,m.useSelect)((e=>{const{getEditedPostType:t}=e(tr),{getBlockSelectionStart:n,__unstableGetEditorMode:r}=e(fe.store),{get:a}=e(T.store),{getDeviceType:s}=e(y.store);return{deviceType:s(),templateType:t(),blockEditorMode:r(),blockSelectionStart:n(),showIconLabels:a("core","showIconLabels"),editorCanvasView:Xe(e(tr)).getEditorCanvasContainerView(),hasFixedToolbar:a("core","fixedToolbar"),isDistractionFree:a("core","distractionFree"),isZoomOutMode:"zoom-out"===r()}}),[]),c=(0,ie.useViewportMatch)("medium"),u=!o&&i&&c,d=(0,g.useRef)(),p=(0,ie.useReducedMotion)(),h=!function(){const e=(0,b.__experimentalUseSlotFills)(Kr);return!!e?.length}(),f=Ft.includes(e),v="zoom-out"===n,[w,S]=(0,g.useState)(!0),x=!!r;(0,g.useEffect)((()=>{r&&S(!1)}),[r]);const C={isDistractionFree:{y:"-50px"},isDistractionFreeHovering:{y:0},view:{y:0},edit:{y:0}},k={type:"tween",duration:p?0:.2,ease:"easeOut"};return(0,l.createElement)("div",{className:_()("edit-site-header-edit-mode",{"show-icon-labels":a})},h&&(0,l.createElement)(b.__unstableMotion.div,{className:"edit-site-header-edit-mode__start",variants:C,transition:k},(0,l.createElement)(tu,{blockEditorMode:n,isDistractionFree:t}),u&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:_()("selected-block-tools-wrapper",{"is-collapsed":w||!x})},(0,l.createElement)(fe.BlockToolbar,{hideDragHandle:!0})),(0,l.createElement)(b.Popover.Slot,{ref:d,name:"block-toolbar"}),x&&(0,l.createElement)(b.Button,{className:"edit-site-header-edit-mode__block-tools-toggle",icon:w?Tc:Pc,onClick:()=>{S((e=>!e))},label:w?(0,E.__)("Show block tools"):(0,E.__)("Hide block tools")}))),!t&&(0,l.createElement)("div",{className:_()("edit-site-header-edit-mode__center",{"is-collapsed":!w&&c})},h?(0,l.createElement)(y.DocumentBar,null):qr(s)),(0,l.createElement)("div",{className:"edit-site-header-edit-mode__end"},(0,l.createElement)(b.__unstableMotion.div,{className:"edit-site-header-edit-mode__actions",variants:C,transition:k},c&&(0,l.createElement)("div",{className:_()("edit-site-header-edit-mode__preview-options",{"is-zoomed-out":v})},(0,l.createElement)(ru,{disabled:f||!h})),(0,l.createElement)(nu,null),(0,l.createElement)(Vl,null),!t&&(0,l.createElement)(ne.Slot,{scope:"core/edit-site"}),(0,l.createElement)(Qc,{showIconLabels:a}))))}const su=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,l.createElement)(w.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));const iu=function({className:e}){const{isRequestingSite:t,siteIconUrl:n}=(0,m.useSelect)((e=>{const{getEntityRecord:t}=e(ye.store),n=t("root","__unstableBase",void 0);return{isRequestingSite:!n,siteIconUrl:n?.site_icon_url}}),[]);if(t&&!n)return(0,l.createElement)("div",{className:"edit-site-site-icon__image"});const r=n?(0,l.createElement)("img",{className:"edit-site-site-icon__image",alt:(0,E.__)("Site Icon"),src:n}):(0,l.createElement)(b.Icon,{className:"edit-site-site-icon__icon",icon:su,size:48});return(0,l.createElement)("div",{className:_()(e,"edit-site-site-icon")},r)},ou=(0,g.memo)((({isTransparent:e,className:t})=>{const{canvasMode:n,dashboardLink:r,homeUrl:a,siteTitle:s}=(0,m.useSelect)((e=>{const{getCanvasMode:t,getSettings:n}=Xe(e(tr)),{getSite:r,getUnstableBase:a}=e(ye.store);return{canvasMode:t(),dashboardLink:n().__experimentalDashboardLink||"index.php",homeUrl:a()?.home,siteTitle:r()?.title}}),[]),{open:i}=(0,m.useDispatch)(rr.store),o=(0,ie.useReducedMotion)(),{setCanvasMode:c}=Xe((0,m.useDispatch)(tr)),{clearSelectedBlock:u}=(0,m.useDispatch)(fe.store),{setDeviceType:d}=(0,m.useDispatch)(y.store),p="view"===n?{href:r,label:(0,E.__)("Go to the Dashboard")}:{href:r,role:"button",label:(0,E.__)("Open Navigation"),onClick:e=>{e.preventDefault(),"edit"===n&&(u(),d("Desktop"),c("view"))}};return(0,l.createElement)(b.__unstableMotion.div,{className:_()("edit-site-site-hub",t),variants:{isDistractionFree:{x:"-100%"},isDistractionFreeHovering:{x:0},view:{x:0},edit:{x:0}},initial:!1,transition:{type:"tween",duration:o?0:.3,ease:"easeOut"}},(0,l.createElement)(b.__experimentalHStack,{justify:"space-between",alignment:"center",className:"edit-site-site-hub__container"},(0,l.createElement)(b.__experimentalHStack,{justify:"flex-start",className:"edit-site-site-hub__text-content",spacing:"0"},(0,l.createElement)(b.__unstableMotion.div,{className:_()("edit-site-site-hub__view-mode-toggle-container",{"has-transparent-background":e}),layout:!0,transition:{type:"tween",duration:o?0:.3,ease:"easeOut"}},(0,l.createElement)(b.Button,{...p,className:"edit-site-layout__view-mode-toggle"},(0,l.createElement)(b.__unstableMotion.div,{initial:!1,animate:{scale:"view"===n?.5:1},whileHover:{scale:"view"===n?.5:.96},transition:{type:"tween",duration:o?0:.3,ease:"easeOut"}},(0,l.createElement)(iu,{className:"edit-site-layout__view-mode-toggle-icon"})))),(0,l.createElement)(b.__unstableAnimatePresence,null,(0,l.createElement)(b.__unstableMotion.div,{layout:"edit"===n,animate:{opacity:"view"===n?1:0},exit:{opacity:0},className:_()("edit-site-site-hub__site-title",{"is-transparent":e}),transition:{type:"tween",duration:o?0:.2,ease:"easeOut",delay:"view"===n?.1:0}},(0,en.decodeEntities)(s))),"view"===n&&(0,l.createElement)(b.Button,{href:a,target:"_blank",label:(0,E.__)("View site (opens in a new tab)"),"aria-label":(0,E.__)("View site (opens in a new tab)"),icon:Ic,className:_()("edit-site-site-hub__site-view-link",{"is-transparent":e})})),"view"===n&&(0,l.createElement)(b.Button,{className:_()("edit-site-site-hub_toggle-command-center",{"is-transparent":e}),icon:Va,onClick:()=>i(),label:(0,E.__)("Open command palette"),shortcut:wr.displayShortcut.primary("k")})))})),lu=ou,cu={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},uu=320,du=1300,mu=9/19.5,pu={width:"100%",height:"100%"};function hu(e,t){const n=1-Math.max(0,Math.min(1,(e-uu)/(du-uu))),r=((e,t,n)=>e+(t-e)*n)(t,mu,n);return e/r}const fu=function e({isFullWidth:t,isOversized:n,setIsOversized:r,isReady:a,children:s,defaultSize:i,innerContentStyle:o}){const[c,u]=(0,g.useState)(pu),[d,p]=(0,g.useState)(),[h,f]=(0,g.useState)(!1),[y,v]=(0,g.useState)(!1),[w,S]=(0,g.useState)(1),x=(0,m.useSelect)((e=>Xe(e(tr)).getCanvasMode()),[]),{setCanvasMode:C}=Xe((0,m.useDispatch)(tr)),k={type:"tween",duration:h?0:.5},T=(0,g.useRef)(null),P=(0,ie.useInstanceId)(e,"edit-site-resizable-frame-handle-help"),I=i.width/i.height,M={default:{flexGrow:0,height:c.height},fullWidth:{flexGrow:1,height:c.height}},A=h?"active":y?"visible":"hidden";return(0,l.createElement)(b.ResizableBox,{as:b.__unstableMotion.div,ref:T,initial:!1,variants:M,animate:t?"fullWidth":"default",onAnimationComplete:e=>{"fullWidth"===e&&u({width:"100%",height:"100%"})},transition:k,size:c,enable:{top:!1,right:!1,bottom:!1,left:a,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},resizeRatio:w,handleClasses:void 0,handleStyles:{left:cu,right:cu},minWidth:uu,maxWidth:t?"100%":"150%",maxHeight:"100%",onFocus:()=>v(!0),onBlur:()=>v(!1),onMouseOver:()=>v(!0),onMouseOut:()=>v(!1),handleComponent:{left:"view"===x&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.Tooltip,{text:(0,E.__)("Drag to resize")},(0,l.createElement)(b.__unstableMotion.button,{key:"handle",role:"separator","aria-orientation":"vertical",className:_()("edit-site-resizable-frame__handle",{"is-resizing":h}),variants:{hidden:{opacity:0,left:0},visible:{opacity:1,left:-16},active:{opacity:1,left:-16,scaleY:1.3}},animate:A,"aria-label":(0,E.__)("Drag to resize"),"aria-describedby":P,"aria-valuenow":T.current?.resizable?.offsetWidth||void 0,"aria-valuemin":uu,"aria-valuemax":i.width,onKeyDown:e=>{if(!["ArrowLeft","ArrowRight"].includes(e.key))return;e.preventDefault();const t=20*(e.shiftKey?5:1)*("ArrowLeft"===e.key?1:-1),n=Math.min(Math.max(uu,T.current.resizable.offsetWidth+t),i.width);u({width:n,height:hu(n,I)})},initial:"hidden",exit:"hidden",whileFocus:"active",whileHover:"active"})),(0,l.createElement)("div",{hidden:!0,id:P},(0,E.__)("Use left and right arrow keys to resize the canvas. Hold shift to resize in larger increments.")))},onResizeStart:(e,t,n)=>{p(n.offsetWidth),f(!0)},onResize:(e,t,a,s)=>{const o=s.width/w,l=Math.abs(o),c=s.width<0?l:(i.width-d)/2,m=Math.min(l,c),p=0===l?0:m/l;S(1-p+2*p);const h=d+s.width;r(h>i.width),u({height:n?"100%":hu(h,I)})},onResizeStop:(e,t,a)=>{if(f(!1),!n)return;r(!1);a.ownerDocument.documentElement.offsetWidth-a.offsetWidth>200?u(pu):C("edit")},className:_()("edit-site-resizable-frame__inner",{"is-resizing":h}),showHandle:!1},(0,l.createElement)(b.__unstableMotion.div,{className:"edit-site-resizable-frame__inner-content",animate:{borderRadius:t?0:8},transition:k,style:o},s))},{useLocation:gu,useHistory:yu}=Xe(gt.privateApis);const{useHistory:vu,useLocation:_u}=Xe(gt.privateApis);const{EntitiesSavedStatesExtensible:bu}=Xe(y.privateApis),Eu=({onClose:e})=>{var t,n;const r=(0,y.useEntitiesSavedStatesIsDirty)();let a;a=r.isDirty?(0,E.__)("Activate & Save"):(0,E.__)("Activate");const s=function(){const[e,t]=(0,g.useState)();return(0,g.useEffect)((()=>{const e=(0,yt.addQueryArgs)("/wp/v2/themes?status=active",{context:"edit",wp_theme_preview:""});Xt()({path:e}).then((e=>t(e[0]))).catch((()=>{}))}),[]),e}(),i=(0,m.useSelect)((e=>e(ye.store).getCurrentTheme()),[]),o=(0,l.createElement)("p",null,(0,E.sprintf)((0,E.__)("Saving your changes will change your active theme from %1$s to %2$s."),null!==(t=s?.name?.rendered)&&void 0!==t?t:"...",null!==(n=i?.name?.rendered)&&void 0!==n?n:"...")),c=function(){const e=vu(),t=_u(),{startResolution:n,finishResolution:r}=(0,m.useDispatch)(ye.store);return async()=>{if(vt()){const a="themes.php?action=activate&stylesheet="+_t()+"&_wpnonce="+window.WP_BLOCK_THEME_ACTIVATE_NONCE;n("activateTheme"),await window.fetch(a),r("activateTheme");const{wp_theme_preview:s,...i}=t.params;e.replace(i)}}}();return(0,l.createElement)(bu,{...r,additionalPrompt:o,close:e,onSave:async e=>(await c(),e),saveEnabled:!0,saveLabel:a})},wu=({onClose:e})=>vt()?(0,l.createElement)(Eu,{onClose:e}):(0,l.createElement)(y.EntitiesSavedStates,{close:e});function Su(){const{isSaveViewOpen:e,canvasMode:t}=(0,m.useSelect)((e=>{const{isSaveViewOpened:t,getCanvasMode:n}=Xe(e(tr));return{isSaveViewOpen:t(),canvasMode:n()}}),[]),{setIsSaveViewOpened:n}=(0,m.useDispatch)(tr),r=()=>n(!1);return"view"===t?e?(0,l.createElement)(b.Modal,{className:"edit-site-save-panel__modal",onRequestClose:r,__experimentalHideHeader:!0,contentLabel:(0,E.__)("Save site, content, and template changes")},(0,l.createElement)(wu,{onClose:r})):null:(0,l.createElement)(oe,{className:_()("edit-site-layout__actions",{"is-entity-save-view-open":e}),ariaLabel:(0,E.__)("Save panel")},e?(0,l.createElement)(wu,{onClose:r}):(0,l.createElement)("div",{className:"edit-site-editor__toggle-save-panel"},(0,l.createElement)(b.Button,{variant:"secondary",className:"edit-site-editor__toggle-save-panel-button",onClick:()=>n(!0),"aria-expanded":!1},(0,E.__)("Open save panel"))))}const xu=function(){const{registerShortcut:e}=(0,m.useDispatch)(nr.store);return(0,g.useEffect)((()=>{e({name:"core/edit-site/save",category:"global",description:(0,E.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/edit-site/toggle-block-settings-sidebar",category:"global",description:(0,E.__)("Show or hide the Settings sidebar."),keyCombination:{modifier:"primaryShift",character:","}}),e({name:"core/edit-site/keyboard-shortcuts",category:"main",description:(0,E.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),e({name:"core/edit-site/next-region",category:"global",description:(0,E.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/edit-site/previous-region",category:"global",description:(0,E.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]}),e({name:"core/edit-site/toggle-mode",category:"global",description:(0,E.__)("Switch between visual editor and code editor."),keyCombination:{modifier:"secondary",character:"m"}}),e({name:"core/edit-site/transform-heading-to-paragraph",category:"block-library",description:(0,E.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"}}),[1,2,3,4,5,6].forEach((t=>{e({name:`core/edit-site/transform-paragraph-to-heading-${t}`,category:"block-library",description:(0,E.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${t}`}})})),e({name:"core/edit-site/toggle-distraction-free",category:"global",description:(0,E.__)("Toggle distraction free mode."),keyCombination:{modifier:"primaryShift",character:"\\"}})}),[e]),null};const Cu=function(){const{__experimentalGetDirtyEntityRecords:e,isSavingEntityRecord:t}=(0,m.useSelect)(ye.store),{hasNonPostEntityChanges:n}=(0,m.useSelect)(y.store),{getCanvasMode:r}=Xe((0,m.useSelect)(tr)),{setIsSaveViewOpened:a}=(0,m.useDispatch)(tr);return(0,nr.useShortcut)("core/edit-site/save",(s=>{s.preventDefault();const i=e(),o=!!i.length,l=i.some((e=>t(e.kind,e.name,e.key))),c=n(),u="view"===r();(o&&c&&!l||u)&&a(!0)})),null},ku=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"})),Tu=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.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"})),Pu=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M12 4V2.2L9 4.8l3 2.5V5.5c3.6 0 6.5 2.9 6.5 6.5 0 2.9-1.9 5.3-4.5 6.2v.2l-.1-.2c-.4.1-.7.2-1.1.2l.2 1.5c.3 0 .6-.1 1-.2 3.5-.9 6-4 6-7.7 0-4.4-3.6-8-8-8zm-7.9 7l1.5.2c.1-1.2.5-2.3 1.2-3.2l-1.1-.9C4.8 8.2 4.3 9.6 4.1 11zm1.5 1.8l-1.5.2c.1.7.3 1.4.5 2 .3.7.6 1.3 1 1.8l1.2-.8c-.3-.5-.6-1-.8-1.5s-.4-1.1-.4-1.7zm1.5 5.5c1.1.9 2.4 1.4 3.8 1.6l.2-1.5c-1.1-.1-2.2-.5-3.1-1.2l-.9 1.1z"})),Iu=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"}));function Mu({path:e,categoryType:t,categoryId:n},r){return["/wp_template/all","/wp_template_part/all","/pages"].includes(e)||"/patterns"===e&&(!r||!!t&&!!n)}const{useGlobalStylesReset:Au}=Xe(fe.privateApis),{useHistory:Ou,useLocation:Nu}=Xe(gt.privateApis);function Fu(){const{openGeneralSidebar:e,setCanvasMode:t}=Xe((0,m.useDispatch)(tr)),{params:n}=Nu(),r=!Mu(n,(0,ie.useViewportMatch)("medium","<")),{getCanvasMode:a}=Xe((0,m.useSelect)(tr)),s=Ou(),i=(0,m.useSelect)((e=>e(ye.store).getCurrentTheme().is_block_theme),[]);return{isLoading:!1,commands:(0,g.useMemo)((()=>i?[{name:"core/edit-site/open-styles",label:(0,E.__)("Open styles"),callback:({close:n})=>{n(),r||s.push({path:"/wp_global_styles",canvas:"edit"}),r&&"edit"!==a()&&t("edit"),e("edit-site/global-styles")},icon:ir}]:[]),[s,e,t,r,a,i])}}function Ru(){const{openGeneralSidebar:e,setCanvasMode:t}=Xe((0,m.useDispatch)(tr)),{params:n}=Nu(),r=!Mu(n,(0,ie.useViewportMatch)("medium","<")),{getCanvasMode:a}=Xe((0,m.useSelect)(tr)),{set:s}=(0,m.useDispatch)(T.store),i=Ou(),o=(0,m.useSelect)((e=>e(ye.store).getCurrentTheme().is_block_theme),[]);return{isLoading:!1,commands:(0,g.useMemo)((()=>o?[{name:"core/edit-site/toggle-styles-welcome-guide",label:(0,E.__)("Learn about styles"),callback:({close:n})=>{n(),r||i.push({path:"/wp_global_styles",canvas:"edit"}),r&&"edit"!==a()&&t("edit"),e("edit-site/global-styles"),s("core/edit-site","welcomeGuideStyles",!0),setTimeout((()=>{s("core/edit-site","welcomeGuideStyles",!0)}),500)},icon:ku}]:[]),[i,e,t,r,a,o,s])}}function Du(){const[e,t]=Au();return{isLoading:!1,commands:(0,g.useMemo)((()=>e?[{name:"core/edit-site/reset-global-styles",label:(0,E.__)("Reset styles"),icon:(0,E.isRTL)()?Tu:Pu,callback:({close:e})=>{e(),t()}}]:[]),[e,t])}}function Vu(){const{openGeneralSidebar:e,setEditorCanvasContainerView:t,setCanvasMode:n}=Xe((0,m.useDispatch)(tr)),{params:r}=Nu(),a=!Mu(r,(0,ie.useViewportMatch)("medium","<")),s=Ou(),{canEditCSS:i}=(0,m.useSelect)((e=>{const{getEntityRecord:t,__experimentalGetCurrentGlobalStylesId:n}=e(ye.store),r=n(),a=r?t("root","globalStyles",r):void 0;return{canEditCSS:!!a?._links?.["wp:action-edit-css"]}}),[]),{getCanvasMode:o}=Xe((0,m.useSelect)(tr));return{isLoading:!1,commands:(0,g.useMemo)((()=>i?[{name:"core/edit-site/open-styles-css",label:(0,E.__)("Customize CSS"),icon:Iu,callback:({close:r})=>{r(),a||s.push({path:"/wp_global_styles",canvas:"edit"}),a&&"edit"!==o()&&n("edit"),e("edit-site/global-styles"),t("global-styles-css")}}]:[]),[s,e,t,i,a,o,n])}}function Lu(){const{openGeneralSidebar:e,setEditorCanvasContainerView:t,setCanvasMode:n}=Xe((0,m.useDispatch)(tr)),{getCanvasMode:r}=Xe((0,m.useSelect)(tr)),{params:a}=Nu(),s=!Mu(a,(0,ie.useViewportMatch)("medium","<")),i=Ou(),o=(0,m.useSelect)((e=>{const{getEntityRecord:t,__experimentalGetCurrentGlobalStylesId:n}=e(ye.store),r=n(),a=r?t("root","globalStyles",r):void 0;return!!a?._links?.["version-history"]?.[0]?.count}),[]);return{isLoading:!1,commands:(0,g.useMemo)((()=>o?[{name:"core/edit-site/open-global-styles-revisions",label:(0,E.__)("Style revisions"),icon:ba,callback:({close:a})=>{a(),s||i.push({path:"/wp_global_styles",canvas:"edit"}),s&&"edit"!==r()&&n("edit"),e("edit-site/global-styles"),t("global-styles-revisions")}}]:[]),[o,i,e,t,s,r,n])}}const Bu=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})),zu=(0,l.createElement)(w.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"})),Hu=(0,l.createElement)(w.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"})),Gu=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})),Uu=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"m16 15.5h-8v-1.5h8zm-7.5-2.5h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm-9-3h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2z"}),(0,l.createElement)(w.Path,{d:"m18.5 6.5h-13a.5.5 0 0 0 -.5.5v9.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9.5a.5.5 0 0 0 -.5-.5zm-13-1.5h13a2 2 0 0 1 2 2v9.5a2 2 0 0 1 -2 2h-13a2 2 0 0 1 -2-2v-9.5a2 2 0 0 1 2-2z"})),Wu=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})),{RenamePatternModal:ju}=Xe(St.privateApis);function Zu(){const{record:e}=Ds(),{closeModal:t}=(0,m.useDispatch)(j);return(0,m.useSelect)((e=>e(j).isModalActive(Xu.rename)))?(0,l.createElement)(ju,{onClose:t,pattern:e}):null}const{DuplicatePatternModal:qu}=Xe(St.privateApis),{useHistory:Yu}=Xe(gt.privateApis);function Ku(){const{record:e}=Ds(),{categoryType:t,categoryId:n}=(0,yt.getQueryArgs)(window.location.href),{closeModal:r}=(0,m.useDispatch)(j),a=Yu();if(!(0,m.useSelect)((e=>e(j).isModalActive(Xu.duplicate))))return null;return(0,l.createElement)(qu,{onClose:r,onSuccess:function({pattern:e}){a.push({categoryType:t,categoryId:n,postType:It.user,postId:e.id}),r()},pattern:e})}const Xu={rename:"edit-site/pattern-rename",duplicate:"edit-site/pattern-duplicate"};function Ju(){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ku,null),(0,l.createElement)(Zu,null))}const{useHistory:Qu}=Xe(gt.privateApis);function $u(){const{record:e}=Ds(),{isPage:t,canvasMode:n,templateId:r,currentPostType:a}=(0,m.useSelect)((e=>{const{isPage:t,getCanvasMode:n}=Xe(e(tr)),{getCurrentPostType:r,getCurrentTemplateId:a}=e(y.store);return{isPage:t(),canvasMode:n(),templateId:a(),currentPostType:r()}}),[]),{onClick:s}=Et({postType:"wp_template",postId:r}),{setRenderingMode:i}=(0,m.useDispatch)(y.store);if(!t||"edit"!==n)return{isLoading:!1,commands:[]};const o=[];return"wp_template"!==a?o.push({name:"core/switch-to-template-focus",label:(0,E.sprintf)((0,E.__)("Edit template: %s"),(0,en.decodeEntities)(e.title)),icon:lr,callback:({close:e})=>{s(),e()}}):o.push({name:"core/switch-to-page-focus",label:(0,E.__)("Back to page"),icon:or,callback:({close:e})=>{i("template-locked"),e()}}),{isLoading:!1,commands:o}}function ed(){const{switchEditorMode:e}=(0,m.useDispatch)(tr),{canvasMode:t,editorMode:n}=(0,m.useSelect)((e=>({canvasMode:Xe(e(tr)).getCanvasMode(),editorMode:e(tr).getEditorMode()})),[]);if("edit"!==t||"text"!==n)return{isLoading:!1,commands:[]};const r=[];return"text"===n&&r.push({name:"core/exit-code-editor",label:(0,E.__)("Exit code editor"),icon:Bu,callback:({close:t})=>{e("visual"),t()}}),{isLoading:!1,commands:r}}function td(){const{isLoaded:e,record:t}=Ds(),{removeTemplate:n,revertTemplate:r}=(0,m.useDispatch)(tr),a=Qu(),s=(0,m.useSelect)((e=>e(tr).isPage()&&"wp_template"!==e(y.store).getCurrentPostType()),[]);if(!e)return{isLoading:!0,commands:[]};const i=[];if($t(t)&&!s){const e=t.type===Ct?(0,E.sprintf)((0,E.__)("Reset template: %s"),(0,en.decodeEntities)(t.title)):(0,E.sprintf)((0,E.__)("Reset template part: %s"),(0,en.decodeEntities)(t.title));i.push({name:"core/reset-template",label:e,icon:(0,E.isRTL)()?Tu:Pu,callback:({close:e})=>{r(t),e()}})}if(Hs(t)&&!s){const e=t.type===Ct?(0,E.sprintf)((0,E.__)("Delete template: %s"),(0,en.decodeEntities)(t.title)):(0,E.sprintf)((0,E.__)("Delete template part: %s"),(0,en.decodeEntities)(t.title)),r=t.type===Ct?"/wp_template":"/wp_template_part/all";i.push({name:"core/remove-template",label:e,icon:ql,callback:({close:e})=>{n(t),a.push({path:r}),e()}})}return{isLoading:!e,commands:i}}function nd(){const{openGeneralSidebar:e,closeGeneralSidebar:t,toggleDistractionFree:n,setIsListViewOpened:r,switchEditorMode:a}=(0,m.useDispatch)(tr),{canvasMode:s,editorMode:i,activeSidebar:o,showBlockBreadcrumbs:l,isListViewOpen:c,isDistractionFree:u,isTopToolbar:d,isFocusMode:p}=(0,m.useSelect)((e=>{const{get:t}=e(T.store),{getEditorMode:n}=e(tr),{isListViewOpened:r}=e(y.store);return{canvasMode:Xe(e(tr)).getCanvasMode(),editorMode:n(),activeSidebar:e(j).getActiveComplementaryArea(tr.name),showBlockBreadcrumbs:t("core","showBlockBreadcrumbs"),isListViewOpen:r(),isDistractionFree:t("core","distractionFree"),isFocusMode:t("core","focusMode"),isTopToolbar:t("core","fixedToolbar")}}),[]),{openModal:h}=(0,m.useDispatch)(j),{toggle:f}=(0,m.useDispatch)(T.store),{createInfoNotice:g}=(0,m.useDispatch)(ge.store);if("edit"!==s)return{isLoading:!1,commands:[]};const v=[];return v.push({name:"core/open-settings-sidebar",label:(0,E.__)("Toggle settings sidebar"),icon:(0,E.isRTL)()?zu:Hu,callback:({close:n})=>{n(),"edit-site/template"===o?t():e("edit-site/template")}}),v.push({name:"core/open-block-inspector",label:(0,E.__)("Toggle block inspector"),icon:Gu,callback:({close:n})=>{n(),"edit-site/block-inspector"===o?t():e("edit-site/block-inspector")}}),v.push({name:"core/toggle-spotlight-mode",label:(0,E.__)("Toggle spotlight"),callback:({close:e})=>{f("core","focusMode"),e(),g(p?(0,E.__)("Spotlight off."):(0,E.__)("Spotlight on."),{id:"core/edit-site/toggle-spotlight-mode/notice",type:"snackbar",actions:[{label:(0,E.__)("Undo"),onClick:()=>{f("core","focusMode")}}]})}}),v.push({name:"core/toggle-distraction-free",label:u?(0,E.__)("Exit Distraction Free"):(0,E.__)("Enter Distraction Free "),callback:({close:e})=>{n(),e()}}),v.push({name:"core/toggle-top-toolbar",label:(0,E.__)("Toggle top toolbar"),callback:({close:e})=>{f("core","fixedToolbar"),u&&n(),e(),g(d?(0,E.__)("Top toolbar off."):(0,E.__)("Top toolbar on."),{id:"core/edit-site/toggle-top-toolbar/notice",type:"snackbar",actions:[{label:(0,E.__)("Undo"),onClick:()=>{f("core","fixedToolbar")}}]})}}),"visual"===i&&v.push({name:"core/toggle-code-editor",label:(0,E.__)("Open code editor"),icon:Bu,callback:({close:e})=>{a("text"),e()}}),v.push({name:"core/open-preferences",label:(0,E.__)("Editor preferences"),callback:()=>{h(zc)}}),v.push({name:"core/open-shortcut-help",label:(0,E.__)("Keyboard shortcuts"),icon:Uu,callback:()=>{h(Fc)}}),v.push({name:"core/toggle-breadcrumbs",label:l?(0,E.__)("Hide block breadcrumbs"):(0,E.__)("Show block breadcrumbs"),callback:({close:e})=>{f("core","showBlockBreadcrumbs"),e(),g(l?(0,E.__)("Breadcrumbs hidden."):(0,E.__)("Breadcrumbs visible."),{id:"core/edit-site/toggle-breadcrumbs/notice",type:"snackbar"})}}),v.push({name:"core/toggle-list-view",label:c?(0,E.__)("Close List View"):(0,E.__)("Open List View"),icon:Wu,callback:({close:e})=>{r(!c),e(),g(c?(0,E.__)("List View off."):(0,E.__)("List View on."),{id:"core/edit-site/toggle-list-view/notice",type:"snackbar"})}}),{isLoading:!1,commands:v}}function rd(){const{isLoaded:e,record:t}=Ds(),{openModal:n}=(0,m.useDispatch)(j);if(!e)return{isLoading:!0,commands:[]};const r=[];return"wp_block"===t?.type&&(r.push({name:"core/rename-pattern",label:(0,E.__)("Rename pattern"),icon:Er,callback:({close:e})=>{n(Xu.rename),e()}}),r.push({name:"core/duplicate-pattern",label:(0,E.__)("Duplicate pattern"),icon:cr,callback:({close:e})=>{n(Xu.duplicate),e()}})),{isLoading:!1,commands:r}}const ad=1e4;function sd(){const{isLoaded:e}=Ds(),[t,n]=(0,g.useState)(!1),r=(0,m.useSelect)((e=>{const n=e(ye.store).hasResolvingSelectors();return!t&&!n}),[t]);return(0,g.useEffect)((()=>{let e;return t||(e=setTimeout((()=>{n(!0)}),ad)),()=>{clearTimeout(e)}}),[t]),(0,g.useEffect)((()=>{if(r){const e=setTimeout((()=>{n(!0)}),100);return()=>{clearTimeout(e)}}}),[r]),!t||!e}function id({className:e,identifier:t,title:n,icon:r,children:a,closeLabel:s,header:i,headerClassName:o,panelClassName:c}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(se,{className:e,scope:"core/edit-site",identifier:t,title:n,smallScreenTitle:n,icon:r,closeLabel:s,header:i,headerClassName:o,panelClassName:c},a),(0,l.createElement)(ee,{scope:"core/edit-site",identifier:t,icon:r},n))}function od({className:e,...t}){return(0,l.createElement)(b.Icon,{className:_()(e,"edit-site-global-styles-icon-with-current-color"),...t})}function ld({icon:e,children:t,...n}){return(0,l.createElement)(b.__experimentalItem,{...n},e&&(0,l.createElement)(b.__experimentalHStack,{justify:"flex-start"},(0,l.createElement)(od,{icon:e,size:24}),(0,l.createElement)(b.FlexItem,null,t)),!e&&t)}function cd(e){return(0,l.createElement)(b.__experimentalNavigatorButton,{as:ld,...e})}const ud=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"})),dd=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})),{useHasDimensionsPanel:md,useHasTypographyPanel:pd,useHasColorPanel:hd,useGlobalSetting:fd,useSettingsForBlockElement:gd}=Xe(fe.privateApis);const yd=function(){const[e]=fd(""),t=gd(e),n=pd(t),r=hd(t),a=md(t);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.__experimentalItemGroup,null,n&&(0,l.createElement)(cd,{icon:ud,path:"/typography","aria-label":(0,E.__)("Typography styles")},(0,E.__)("Typography")),r&&(0,l.createElement)(cd,{icon:dd,path:"/colors","aria-label":(0,E.__)("Colors styles")},(0,E.__)("Colors")),a&&(0,l.createElement)(cd,{icon:lr,path:"/layout","aria-label":(0,E.__)("Layout styles")},(0,E.__)("Layout"))))},{useGlobalStyle:vd}=Xe(fe.privateApis);const _d=function(){const[e]=vd("css"),{hasVariations:t,canEditCSS:n}=(0,m.useSelect)((e=>{const{getEntityRecord:t,__experimentalGetCurrentGlobalStylesId:n,__experimentalGetCurrentThemeGlobalStylesVariations:r}=e(ye.store),a=n(),s=a?t("root","globalStyles",a):void 0;return{hasVariations:!!r()?.length,canEditCSS:!!s?._links?.["wp:action-edit-css"]}}),[]);return(0,l.createElement)(b.Card,{size:"small",className:"edit-site-global-styles-screen-root"},(0,l.createElement)(b.CardBody,null,(0,l.createElement)(b.__experimentalVStack,{spacing:4},(0,l.createElement)(b.Card,null,(0,l.createElement)(b.CardMedia,null,(0,l.createElement)(Lr,null))),t&&(0,l.createElement)(b.__experimentalItemGroup,null,(0,l.createElement)(cd,{path:"/variations","aria-label":(0,E.__)("Browse styles")},(0,l.createElement)(b.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(b.FlexItem,null,(0,E.__)("Browse styles")),(0,l.createElement)(od,{icon:(0,E.isRTL)()?dr:ur})))),(0,l.createElement)(yd,null))),(0,l.createElement)(b.CardDivider,null),(0,l.createElement)(b.CardBody,null,(0,l.createElement)(b.__experimentalSpacer,{as:"p",paddingTop:2,paddingX:"13px",marginBottom:4},(0,E.__)("Customize the appearance of specific blocks for the whole site.")),(0,l.createElement)(b.__experimentalItemGroup,null,(0,l.createElement)(cd,{path:"/blocks","aria-label":(0,E.__)("Blocks styles")},(0,l.createElement)(b.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(b.FlexItem,null,(0,E.__)("Blocks")),(0,l.createElement)(od,{icon:(0,E.isRTL)()?dr:ur}))))),n&&!!e&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.CardDivider,null),(0,l.createElement)(b.CardBody,null,(0,l.createElement)(b.__experimentalSpacer,{as:"p",paddingTop:2,paddingX:"13px",marginBottom:4},(0,E.__)("Add your own CSS to customize the appearance and layout of your site.")),(0,l.createElement)(b.__experimentalItemGroup,null,(0,l.createElement)(cd,{path:"/css","aria-label":(0,E.__)("Additional CSS")},(0,l.createElement)(b.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(b.FlexItem,null,(0,E.__)("Additional CSS")),(0,l.createElement)(od,{icon:(0,E.isRTL)()?dr:ur})))))))};function bd(e){const t=function(e){return e?.filter((e=>"block"===e.source))}((0,m.useSelect)((t=>{const{getBlockStyles:n}=t(u.store);return n(e)}),[e]));return t}function Ed({name:e}){const t=bd(e);return(0,l.createElement)(b.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},t.map(((t,n)=>t?.isDefault?null:(0,l.createElement)(cd,{key:n,path:"/blocks/"+encodeURIComponent(e)+"/variations/"+encodeURIComponent(t.name),"aria-label":t.label},t.label))))}const wd=function({title:e,description:t,onBack:n}){return(0,l.createElement)(b.__experimentalVStack,{spacing:0},(0,l.createElement)(b.__experimentalView,null,(0,l.createElement)(b.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3},(0,l.createElement)(b.__experimentalHStack,{spacing:2},(0,l.createElement)(b.__experimentalNavigatorToParentButton,{style:{minWidth:24,padding:0},icon:(0,E.isRTL)()?ur:dr,isSmall:!0,"aria-label":(0,E.__)("Navigate to the previous view"),onClick:n}),(0,l.createElement)(b.__experimentalSpacer,null,(0,l.createElement)(b.__experimentalHeading,{className:"edit-site-global-styles-header",level:2,size:13},e))))),t&&(0,l.createElement)("p",{className:"edit-site-global-styles-header__description"},t))},{useHasDimensionsPanel:Sd,useHasTypographyPanel:xd,useHasBorderPanel:Cd,useGlobalSetting:kd,useSettingsForBlockElement:Td,useHasColorPanel:Pd}=Xe(fe.privateApis);function Id(e){const[t]=kd("",e),n=Td(t,e),r=xd(n),a=Pd(n),s=Cd(n),i=Sd(n),o=s||i,l=!!bd(e)?.length;return r||a||o||l}function Md({block:e}){if(!Id(e.name))return null;const t=(0,E.sprintf)((0,E.__)("%s block styles"),e.title);return(0,l.createElement)(cd,{path:"/blocks/"+encodeURIComponent(e.name),"aria-label":t},(0,l.createElement)(b.__experimentalHStack,{justify:"flex-start"},(0,l.createElement)(fe.BlockIcon,{icon:e.icon}),(0,l.createElement)(b.FlexItem,null,e.title)))}const Ad=(0,g.memo)((function({filterValue:e}){const t=function(){const e=(0,m.useSelect)((e=>e(u.store).getBlockTypes()),[]),{core:t,noncore:n}=e.reduce(((e,t)=>{const{core:n,noncore:r}=e;return(t.name.startsWith("core/")?n:r).push(t),e}),{core:[],noncore:[]});return[...t,...n]}(),n=(0,ie.useDebounce)(Jt.speak,500),{isMatchingSearchTerm:r}=(0,m.useSelect)(u.store),a=e?t.filter((t=>r(t,e))):t,s=(0,g.useRef)();return(0,g.useEffect)((()=>{if(!e)return;const t=s.current.childElementCount,r=(0,E.sprintf)((0,E._n)("%d result found.","%d results found.",t),t);n(r,t)}),[e,n]),(0,l.createElement)("div",{ref:s,className:"edit-site-block-types-item-list"},a.map((e=>(0,l.createElement)(Md,{block:e,key:"menu-itemblock-"+e.name}))))}));const Od=function(){const[e,t]=(0,g.useState)(""),n=(0,g.useDeferredValue)(e);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(wd,{title:(0,E.__)("Blocks"),description:(0,E.__)("Customize the appearance of specific blocks and for the whole site.")}),(0,l.createElement)(b.SearchControl,{__nextHasNoMarginBottom:!0,className:"edit-site-block-types-search",onChange:t,value:e,label:(0,E.__)("Search for blocks"),placeholder:(0,E.__)("Search")}),(0,l.createElement)(Ad,{filterValue:n}))},Nd=({name:e,variation:t=""})=>{var n;const r=(0,u.getBlockType)(e)?.example,a=(0,g.useMemo)((()=>{if(!r)return null;let n=r;return t&&(n={...n,attributes:{...n.attributes,className:"is-style-"+t}}),(0,u.getBlockFromExample)(e,n)}),[e,r,t]),s=null!==(n=r?.viewportWidth)&&void 0!==n?n:null;return r?(0,l.createElement)(b.__experimentalSpacer,{marginX:4,marginBottom:4},(0,l.createElement)("div",{className:"edit-site-global-styles__block-preview-panel",style:{maxHeight:150,boxSizing:"initial"}},(0,l.createElement)(fe.BlockPreview,{blocks:a,viewportWidth:s,minHeight:150,additionalStyles:[{css:"\n\t\t\t\t\t\t\t\tbody{\n\t\t\t\t\t\t\t\t\tmin-height:150px;\n\t\t\t\t\t\t\t\t\tdisplay:flex;align-items:center;justify-content:center;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t"}]}))):null};const Fd=function({children:e,level:t}){return(0,l.createElement)(b.__experimentalHeading,{className:"edit-site-global-styles-subtitle",level:null!=t?t:2},e)};function Rd(e){if(!e)return e;const t=e.color||e.width;return!e.style&&t?{...e,style:"solid"}:!e.style||t?e:void 0}const{useHasDimensionsPanel:Dd,useHasTypographyPanel:Vd,useHasBorderPanel:Ld,useGlobalSetting:Bd,useSettingsForBlockElement:zd,useHasColorPanel:Hd,useHasFiltersPanel:Gd,useHasImageSettingsPanel:Ud,useGlobalStyle:Wd,BorderPanel:jd,ColorPanel:Zd,TypographyPanel:qd,DimensionsPanel:Yd,FiltersPanel:Kd,ImageSettingsPanel:Xd,AdvancedPanel:Jd}=Xe(fe.privateApis);const Qd=function({name:e,variation:t}){let n=[];t&&(n=["variations",t].concat(n));const r=n.join("."),[a]=Wd(r,e,"user",{shouldDecodeEncode:!1}),[s,i]=Wd(r,e,"all",{shouldDecodeEncode:!1}),[o]=Bd("",e,"user"),[c,d]=Bd("",e),p=zd(c,e),h=(0,u.getBlockType)(e);p?.spacing?.blockGap&&h?.supports?.spacing?.blockGap&&(!0===h?.supports?.spacing?.__experimentalSkipSerialization||h?.supports?.spacing?.__experimentalSkipSerialization?.some?.((e=>"blockGap"===e)))&&(p.spacing.blockGap=!1),p?.dimensions?.aspectRatio&&"core/group"===e&&(p.dimensions.aspectRatio=!1);const f=bd(e),y=Vd(p),v=Hd(p),_=Ld(p),w=Dd(p),S=Gd(p),x=Ud(e,o,p),C=!!f?.length&&!t,{canEditCSS:k}=(0,m.useSelect)((e=>{const{getEntityRecord:t,__experimentalGetCurrentGlobalStylesId:n}=e(ye.store),r=n(),a=r?t("root","globalStyles",r):void 0;return{canEditCSS:!!a?._links?.["wp:action-edit-css"]}}),[]),T=t?f.find((e=>e.name===t)):null,P=(0,g.useMemo)((()=>({...s,layout:p.layout})),[s,p.layout]),I=(0,g.useMemo)((()=>({...a,layout:o.layout})),[a,o.layout]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(wd,{title:t?T.label:h.title}),(0,l.createElement)(Nd,{name:e,variation:t}),C&&(0,l.createElement)("div",{className:"edit-site-global-styles-screen-variations"},(0,l.createElement)(b.__experimentalVStack,{spacing:3},(0,l.createElement)(Fd,null,(0,E.__)("Style Variations")),(0,l.createElement)(Ed,{name:e}))),v&&(0,l.createElement)(Zd,{inheritedValue:s,value:a,onChange:i,settings:p}),y&&(0,l.createElement)(qd,{inheritedValue:s,value:a,onChange:i,settings:p}),w&&(0,l.createElement)(Yd,{inheritedValue:P,value:I,onChange:e=>{const t={...e};delete t.layout,i(t),e.layout!==o.layout&&d({...o,layout:e.layout})},settings:p,includeLayoutControls:!0}),_&&(0,l.createElement)(jd,{inheritedValue:s,value:a,onChange:e=>{if(!e?.border)return void i(e);const{radius:t,...n}=e.border,r=function(e){return e?(0,b.__experimentalHasSplitBorders)(e)?{top:Rd(e.top),right:Rd(e.right),bottom:Rd(e.bottom),left:Rd(e.left)}:Rd(e):e}(n),a=(0,b.__experimentalHasSplitBorders)(r)?{color:null,style:null,width:null,...r}:{top:r,right:r,bottom:r,left:r};i({...e,border:{...a,radius:t}})},settings:p}),S&&(0,l.createElement)(Kd,{inheritedValue:P,value:I,onChange:i,settings:p,includeLayoutControls:!0}),x&&(0,l.createElement)(Xd,{onChange:e=>{d(void 0===e?{...c,lightbox:void 0}:{...c,lightbox:{...c.lightbox,...e}})},value:o,inheritedValue:p}),k&&(0,l.createElement)(b.PanelBody,{title:(0,E.__)("Advanced"),initialOpen:!1},(0,l.createElement)("p",null,(0,E.sprintf)((0,E.__)("Add your own CSS to customize the appearance of the %s block. You do not need to include a CSS selector, just add the property and value."),h?.title)),(0,l.createElement)(Jd,{value:a,onChange:i,inheritedValue:s})))},{useGlobalStyle:$d}=Xe(fe.privateApis);function em({parentMenu:e,element:t,label:n}){const r="text"!==t&&t?`elements.${t}.`:"",a="link"===t?{textDecoration:"underline"}:{},[s]=$d(r+"typography.fontFamily"),[i]=$d(r+"typography.fontStyle"),[o]=$d(r+"typography.fontWeight"),[c]=$d(r+"typography.letterSpacing"),[u]=$d(r+"color.background"),[d]=$d(r+"color.gradient"),[m]=$d(r+"color.text"),p=(0,E.sprintf)((0,E.__)("Typography %s styles"),n);return(0,l.createElement)(cd,{path:e+"/typography/"+t,"aria-label":p},(0,l.createElement)(b.__experimentalHStack,{justify:"flex-start"},(0,l.createElement)(b.FlexItem,{className:"edit-site-global-styles-screen-typography__indicator",style:{fontFamily:null!=s?s:"serif",background:null!=d?d:u,color:m,fontStyle:i,fontWeight:o,letterSpacing:c,...a}},(0,E.__)("Aa")),(0,l.createElement)(b.FlexItem,null,n)))}const tm=function(){return(0,l.createElement)(b.__experimentalVStack,{spacing:3},(0,l.createElement)(Fd,{level:3},(0,E.__)("Elements")),(0,l.createElement)(b.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,l.createElement)(em,{parentMenu:"",element:"text",label:(0,E.__)("Text")}),(0,l.createElement)(em,{parentMenu:"",element:"link",label:(0,E.__)("Links")}),(0,l.createElement)(em,{parentMenu:"",element:"heading",label:(0,E.__)("Headings")}),(0,l.createElement)(em,{parentMenu:"",element:"caption",label:(0,E.__)("Captions")}),(0,l.createElement)(em,{parentMenu:"",element:"button",label:(0,E.__)("Buttons")})))},nm=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,l.createElement)(w.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})),rm="/wp/v2/font-families",am="/wp/v2/font-collections";async function sm(e){const t={path:rm,method:"POST",body:e},n=await Xt()(t);return{id:n.id,...n.font_family_settings,fontFace:[]}}async function im(e,t){const n={path:`${rm}/${e}/font-faces`,method:"POST",body:t},r=await Xt()(n);return{id:r.id,...r.font_face_settings}}async function om(e){const t={path:`${rm}?slug=${e}&_embed=true`,method:"GET"},n=await Xt()(t);if(!n||0===n.length)return null;const r=n[0];return{id:r.id,...r.font_family_settings,fontFace:r?._embedded?.font_faces.map((e=>e.font_face_settings))||[]}}async function lm(e){const t={path:`${rm}/${e}?force=true`,method:"DELETE"};return await Xt()(t)}const cm=["otf","ttf","woff","woff2"],um={100:(0,E._x)("Thin","font weight"),200:(0,E._x)("Extra-light","font weight"),300:(0,E._x)("Light","font weight"),400:(0,E._x)("Normal","font weight"),500:(0,E._x)("Medium","font weight"),600:(0,E._x)("Semi-bold","font weight"),700:(0,E._x)("Bold","font weight"),800:(0,E._x)("Extra-bold","font weight"),900:(0,E._x)("Black","font weight")},dm={normal:(0,E._x)("Normal","font style"),italic:(0,E._x)("Italic","font style")};function mm(e){const t=/^(?!generic\([ a-zA-Z\-]+\)$)(?!^[a-zA-Z\-]+$).+/,n=e.trim(),r=e=>(e=e.trim()).match(t)?`"${e=e.replace(/^["']|["']$/g,"")}"`:e;return n.includes(",")?n.split(",").map(r).filter((e=>""!==e)).join(", "):r(n)}function pm(e){if(!e)return"";let t=e.trim();return t.includes(",")&&(t=t.split(",").find((e=>""!==e.trim())).trim()),t=t.replace(/^["']|["']$/g,""),window.navigator.userAgent.toLowerCase().includes("firefox")&&(t=`"${t}"`),t}function hm(e){const t={fontFamily:mm(e.fontFamily)};if(!Array.isArray(e.fontFace))return t.fontWeight="400",t.fontStyle="normal",t;if(e.fontFace){const a=e.fontFace.filter((e=>"normal"===e.fontStyle.toLowerCase()));if(a.length>0){t.fontStyle="normal";const e=function(e){const t=[];return e.forEach((e=>{const n=String(e.fontWeight).split(" ");if(2===n.length){const e=parseInt(n[0]),r=parseInt(n[1]);for(let n=e;n<=r;n+=100)t.push(n)}else 1===n.length&&t.push(parseInt(n[0]))})),t}(a),s=(n=400,0===(r=e).length?null:(r.sort(((e,t)=>Math.abs(n-e)-Math.abs(n-t))),r[0]));t.fontWeight=String(s)||"400"}else t.fontStyle=e.fontFace.length&&e.fontFace[0].fontStyle||"normal",t.fontWeight=e.fontFace.length&&String(e.fontFace[0].fontWeight)||"400"}var n,r;return t}const{File:fm}=window;function gm(e,t={}){return e.name||!e.fontFamily&&!e.slug||(e.name=e.fontFamily||e.slug),{...e,...t}}function ym(e){return`${um[e.fontWeight]||e.fontWeight} ${"normal"===e.fontStyle?"":dm[e.fontStyle]||e.fontStyle}`}function vm(e=[],t=[]){const n=new Map;for(const t of e)n.set(`${t.fontWeight}${t.fontStyle}`,t);for(const e of t)n.set(`${e.fontWeight}${e.fontStyle}`,e);return Array.from(n.values())}function _m(e=[],t=[]){const n=new Map;for(const t of e)n.set(t.slug,{...t});for(const e of t)if(n.has(e.slug)){const{fontFace:t,...r}=e,a=vm(n.get(e.slug).fontFace,t);n.set(e.slug,{...r,fontFace:a})}else n.set(e.slug,{...e});return Array.from(n.values())}async function bm(e,t,n="all"){let r;if("string"==typeof t)r=`url(${t})`;else{if(!(t instanceof fm))return;r=await t.arrayBuffer()}const a=new window.FontFace(pm(e.fontFamily),r,{style:e.fontStyle,weight:e.fontWeight}),s=await a.load();if("document"!==n&&"all"!==n||document.fonts.add(s),"iframe"===n||"all"===n){document.querySelector('iframe[name="editor-canvas"]').contentDocument.fonts.add(s)}}function Em(e,t="all"){const n=t=>{t.forEach((n=>{n.family===pm(e?.fontFamily)&&n.weight===e?.fontWeight&&n.style===e?.fontStyle&&t.delete(n)}))};if("document"!==t&&"all"!==t||n(document.fonts),"iframe"===t||"all"===t){n(document.querySelector('iframe[name="editor-canvas"]').contentDocument.fonts)}}function wm(e){if(!e)return;let t;var n;return t=Array.isArray(e)?e[0]:e,t.startsWith("file:.")?void 0:(("string"!=typeof(n=t)||n===decodeURIComponent(n))&&(t=encodeURI(t)),t)}function Sm(e){const t=new FormData,{kebabCase:n}=Xe(b.privateApis),{fontFace:r,category:a,...s}=e,i={...s,slug:n(e.slug)};return t.append("font_family_settings",JSON.stringify(i)),t}function xm(e){if(e?.fontFace){const t=e.fontFace.map(((e,t)=>{const n={...e},r=new FormData;if(n.file){const e=Array.isArray(n.file)?n.file:[n.file],a=[];e.forEach(((e,n)=>{const s=`file-${t}-${n}`;r.append(s,e,e.name),a.push(s)})),n.src=1===a.length?a[0]:a,delete n.file,r.append("font_face_settings",JSON.stringify(n))}else r.append("font_face_settings",JSON.stringify(n));return r}));return t}}async function Cm(e,t){const n=[];for(const r of t)try{const t=await im(e,r);n.push({status:"fulfilled",value:t})}catch(e){n.push({status:"rejected",reason:e})}const r={errors:[],successes:[]};return n.forEach(((e,n)=>{if("fulfilled"===e.status){const a=e.value;a.id?r.successes.push(a):r.errors.push({data:t[n],message:`Error: ${a.message}`})}else r.errors.push({data:t[n],message:e.reason.message})})),r}function km(e,t){return-1!==t.findIndex((t=>t.fontWeight===e.fontWeight&&t.fontStyle===e.fontStyle))}function Tm(e,t,n){const r=t=>t.slug===e.slug,a=n.find(r);return t?(a=>{const s=e=>e.fontWeight===t.fontWeight&&e.fontStyle===t.fontStyle;if(!a)return[...n,{...e,fontFace:[t]}];let i=a.fontFace||[];return i=i.find(s)?i.filter((e=>!s(e))):[...i,t],0===i.length?n.filter((e=>!r(e))):n.map((e=>r(e)?{...e,fontFace:i}:e))})(a):(t=>t?n.filter((e=>!r(e))):[...n,e])(a)}const{useGlobalSetting:Pm}=Xe(fe.privateApis),Im=(0,g.createContext)({});const Mm=function({children:e}){const{saveEntityRecord:t}=(0,m.useDispatch)(ye.store),{globalStylesId:n}=(0,m.useSelect)((e=>{const{__experimentalGetCurrentGlobalStylesId:t}=e(ye.store);return{globalStylesId:t()}})),r=(0,ye.useEntityRecord)("root","globalStyles",n),a=!!r?.edits?.settings?.typography?.fontFamilies,[s,i]=(0,g.useState)(!1),[o,c]=(0,g.useState)(0),[u,d]=(0,g.useState)(null),p=()=>{c(Date.now())},{records:h=[],isResolving:f,hasResolved:y}=(0,ye.useEntityRecords)("postType","wp_font_family",{refreshKey:o,_embed:!0}),v=(h||[]).map((e=>({id:e.id,...e.font_family_settings,fontFace:e?._embedded?.font_faces.map((e=>e.font_face_settings))||[]})))||[],[_,b]=Pm("typography.fontFamilies"),[w]=Pm("typography.fontFamilies",void 0,"base"),S=async e=>{const n=r.record;et(n,["settings","typography","fontFamilies"],e),await t("root","globalStyles",n)},[x,C]=(0,g.useState)(!1),[k,T]=(0,g.useState)(null),P=_?.theme?_.theme.map((e=>gm(e,{source:"theme"}))).sort(((e,t)=>e.name.localeCompare(t.name))):[],I=new Set(P.map((e=>e.slug))),M=w?.theme?P.concat(w.theme.filter((e=>!I.has(e.slug))).map((e=>gm(e,{source:"theme"}))).sort(((e,t)=>e.name.localeCompare(t.name)))):[],A=_?.custom?_.custom.map((e=>gm(e,{source:"custom"}))).sort(((e,t)=>e.name.localeCompare(t.name))):[],O=v?v.map((e=>gm(e,{source:"custom"}))).sort(((e,t)=>e.name.localeCompare(t.name))):[];(0,g.useEffect)((()=>{x||T(null)}),[x]);const[N]=(0,g.useState)(new Set),F=e=>e.reduce(((e,t)=>{const n=t?.fontFace&&t.fontFace?.length>0?t?.fontFace.map((e=>`${e.fontStyle+e.fontWeight}`)):["normal400"];return e[t.slug]=n,e}),{}),R=e=>F("theme"===e?P:A),D=(e,t,n,r)=>t||n?!!R(r)[e]?.includes(t+n):!!R(r)[e],V=e=>{var t;const n=(null!==(t=_?.[e.source])&&void 0!==t?t:[]).filter((t=>t.slug!==e.slug)),r={..._,[e.source]:n};return b(r),e.fontFace&&e.fontFace.forEach((e=>{Em(e,"all")})),r},L=e=>{const t=B(e),n={..._,custom:_m(_?.custom,t)};return b(n),z(t),n},B=e=>e.map((({id:e,fontFace:t,...n})=>({...n,...t&&t.length>0?{fontFace:t.map((({id:e,...t})=>t))}:{}}))),z=e=>{e.forEach((e=>{e.fontFace&&e.fontFace.forEach((e=>{bm(e,wm(e.src),"all")}))}))},[H,G]=(0,g.useState)([]),U=async()=>{const e=await async function(){const e={path:`${am}?_fields=slug,name,description`,method:"GET"};return await Xt()(e)}();G(e)};return(0,g.useEffect)((()=>{U()}),[]),(0,l.createElement)(Im.Provider,{value:{libraryFontSelected:k,handleSetLibraryFontSelected:e=>{if(d(null),!e)return void T(null);const t=("theme"===e.source?P:O).find((t=>t.slug===e.slug));T({...t||e,source:e.source})},fontFamilies:_,themeFonts:P,baseThemeFonts:M,customFonts:A,baseCustomFonts:O,isFontActivated:D,getFontFacesActivated:(e,t)=>R(t)[e]||[],loadFontFaceAsset:async e=>{if(!e.src)return;const t=wm(e.src);t&&!N.has(t)&&(bm(e,t,"document"),N.add(t))},installFonts:async function(e){i(!0);try{const t=[];let n=[];for(const r of e){let e=!1,a=await om(r.slug);a||(e=!0,a=await sm(Sm(r)));const s=a.fontFace&&r.fontFace?a.fontFace.filter((e=>km(e,r.fontFace))):[];a.fontFace&&r.fontFace&&(r.fontFace=r.fontFace.filter((e=>!km(e,a.fontFace))));let i=[],o=[];if(r?.fontFace?.length>0){const e=await Cm(a.id,xm(r));i=e?.successes,o=e?.errors}(i?.length>0||s?.length>0)&&(a.fontFace=[...i],t.push(a)),a&&!r?.fontFace?.length&&t.push(a),e&&r?.fontFace?.length>0&&0===i?.length&&await lm(a.id),n=n.concat(o)}if(n=n.reduce(((e,t)=>e.includes(t.message)?e:[...e,t.message]),[]),t.length>0){const e=L(t);await S(e),p()}if(n.length>0){const e=new Error((0,E.__)("There was an error installing fonts."));throw e.installationErrors=n,e}}finally{i(!1)}},uninstallFontFamily:async function(e){try{const t=await lm(e.id);if(t.deleted){const t=V(e);await S(t)}return p(),t}catch(e){throw console.error("There was an error uninstalling the font family:",e),e}},toggleActivateFont:(e,t)=>{var n;const r=Tm(e,t,null!==(n=_?.[e.source])&&void 0!==n?n:[]);b({..._,[e.source]:r});D(e.slug,t?.fontStyle,t?.fontWeight,e.source)?bm(t,wm(t?.src),"all"):Em(t,"all")},getAvailableFontsOutline:F,modalTabOpen:x,toggleModal:e=>{C(e||null)},refreshLibrary:p,notice:u,setNotice:d,saveFontFamilies:S,fontFamiliesHasChanges:a,isResolvingLibrary:f,hasResolvedLibrary:y,isInstalling:s,collections:H,getFontCollection:async e=>{try{if(!!H.find((t=>t.slug===e))?.font_families)return;const t=await async function(e){const t={path:`${am}/${e}`,method:"GET"};return await Xt()(t)}(e),n=H.map((n=>n.slug===e?{...n,...t}:n));G(n)}catch(e){throw console.error(e),e}}}},e)};const Am=function({font:e,text:t}){const n=(0,g.useRef)(null),r=function(e){return e.fontStyle||e.fontWeight?e:e.fontFace&&e.fontFace.length?e.fontFace.find((e=>"normal"===e.fontStyle&&"400"===e.fontWeight))||e.fontFace[0]:{fontStyle:"normal",fontWeight:"400",fontFamily:e.fontFamily,fake:!0}}(e),a=hm(e);t=t||e.name;const s=e.preview,[i,o]=(0,g.useState)(!1),[c,u]=(0,g.useState)(!1),{loadFontFaceAsset:d}=(0,g.useContext)(Im),m=null!=s?s:function(e){return e.preview?e.preview:e.src?Array.isArray(e.src)?e.src[0]:e.src:void 0}(r),p=m&&m.match(/\.(png|jpg|jpeg|gif|svg)$/i);var h;const f={fontSize:"18px",lineHeight:1,opacity:c?"1":"0",...a,...{fontFamily:mm((h=r).fontFamily),fontStyle:h.fontStyle||"normal",fontWeight:h.fontWeight||"400"}};return(0,g.useEffect)((()=>{const e=new window.IntersectionObserver((([e])=>{o(e.isIntersecting)}),{});return e.observe(n.current),()=>e.disconnect()}),[n]),(0,g.useEffect)((()=>{(async()=>{i&&(!p&&r.src&&await d(r),u(!0))})()}),[r,i,d,p]),(0,l.createElement)("div",{ref:n},p?(0,l.createElement)("img",{src:m,loading:"lazy",alt:t,className:"font-library-modal__font-variant_demo-image"}):(0,l.createElement)(b.__experimentalText,{style:f,className:"font-library-modal__font-variant_demo-text"},t))};const Om=function({font:e,onClick:t,variantsText:n,navigatorPath:r}){const a=e.fontFace?.length||1,s={cursor:t?"pointer":"default"},i=(0,b.__experimentalUseNavigator)();return(0,l.createElement)(b.Button,{onClick:()=>{t(),r&&i.goTo(r)},style:s,className:"font-library-modal__font-card"},(0,l.createElement)(b.Flex,{justify:"space-between",wrap:!1},(0,l.createElement)(Am,{font:e}),(0,l.createElement)(b.Flex,{justify:"flex-end"},(0,l.createElement)(b.FlexItem,null,(0,l.createElement)(b.__experimentalText,{className:"font-library-modal__font-card__count"},n||(0,E.sprintf)((0,E._n)("%d variant","%d variants",a),a))),(0,l.createElement)(b.FlexItem,null,(0,l.createElement)(b.Icon,{icon:ur})))))};const Nm=function({face:e,font:t}){const{isFontActivated:n,toggleActivateFont:r}=(0,g.useContext)(Im),a=t?.fontFace?.length>0?n(t.slug,e.fontStyle,e.fontWeight,t.source):n(t.slug,null,null,t.source),s=()=>{t?.fontFace?.length>0?r(t,e):r(t)},i=t.name+" "+ym(e),{kebabCase:o}=Xe(b.privateApis),c=o(`${t.slug}-${ym(e)}`);return(0,l.createElement)("div",{className:"font-library-modal__font-card"},(0,l.createElement)(b.Flex,{justify:"flex-start",align:"center",gap:"1rem"},(0,l.createElement)(b.CheckboxControl,{checked:a,onChange:s,__nextHasNoMarginBottom:!0,id:c}),(0,l.createElement)("label",{htmlFor:c},(0,l.createElement)(Am,{font:e,text:i,onClick:s}))))};function Fm(e){switch(e){case"normal":return 400;case"bold":return 700;case"bolder":return 500;case"lighter":return 300;default:return parseInt(e,10)}}function Rm(e){return e.sort(((e,t)=>"normal"===e.fontStyle&&"normal"!==t.fontStyle?-1:"normal"===t.fontStyle&&"normal"!==e.fontStyle?1:e.fontStyle===t.fontStyle?Fm(e.fontWeight)-Fm(t.fontWeight):e.fontStyle.localeCompare(t.fontStyle)))}const{ProgressBar:Dm}=Xe(b.privateApis);function Vm({font:e,isOpen:t,setIsOpen:n,setNotice:r,uninstallFontFamily:a,handleSetLibraryFontSelected:s}){const i=(0,b.__experimentalUseNavigator)();return(0,l.createElement)(b.__experimentalConfirmDialog,{isOpen:t,cancelButtonText:(0,E.__)("Cancel"),confirmButtonText:(0,E.__)("Delete"),onCancel:()=>{n(!1)},onConfirm:async()=>{r(null),n(!1);try{await a(e),i.goBack(),s(null),r({type:"success",message:(0,E.__)("Font family uninstalled successfully.")})}catch(e){r({type:"error",message:(0,E.__)("There was an error uninstalling the font family. ")+e.message})}}},e&&(0,E.sprintf)((0,E.__)('Are you sure you want to delete "%s" font and all its variants and assets?'),e.name))}const Lm=function(){const{baseCustomFonts:e,libraryFontSelected:t,baseThemeFonts:n,handleSetLibraryFontSelected:r,refreshLibrary:a,uninstallFontFamily:s,isResolvingLibrary:i,isInstalling:o,saveFontFamilies:c,getFontFacesActivated:u,fontFamiliesHasChanges:d,notice:p,setNotice:h,fontFamilies:f}=(0,g.useContext)(Im),[y,v]=(0,g.useState)(!1),_="custom"===t?.source&&t?.id,w=(0,m.useSelect)((e=>{const{canUser:t}=e(ye.store);return _&&t("delete","font-families",_)}),[_]),S=!!t&&"theme"!==t?.source&&w,x=e=>{const t=e?.fontFace?.length>0?e.fontFace.length:1,n=u(e.slug,e.source).length;return(0,E.sprintf)((0,E.__)("%1$s/%2$s variants active"),n,t)};return(0,g.useEffect)((()=>{r(t),a()}),[]),(0,l.createElement)("div",{className:"font-library-modal__tabpanel-layout"},i&&(0,l.createElement)(b.__experimentalHStack,{align:"center"},(0,l.createElement)(b.__experimentalSpacer,null),(0,l.createElement)(b.Spinner,null),(0,l.createElement)(b.__experimentalSpacer,null)),(0,l.createElement)(b.__experimentalNavigatorProvider,{initialPath:t?"/fontFamily":"/"},(0,l.createElement)(b.__experimentalNavigatorScreen,{path:"/"},p&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.__experimentalSpacer,{margin:1}),(0,l.createElement)(b.Notice,{status:p.type,onRemove:()=>h(null)},p.message),(0,l.createElement)(b.__experimentalSpacer,{margin:1})),e.length>0&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.__experimentalText,{className:"font-library-modal__subtitle"},(0,E.__)("Installed Fonts")),(0,l.createElement)(b.__experimentalSpacer,{margin:2}),e.map((e=>(0,l.createElement)(Om,{font:e,key:e.slug,navigatorPath:"/fontFamily",variantsText:x(e),onClick:()=>{r(e)}}))),(0,l.createElement)(b.__experimentalSpacer,{margin:8})),n.length>0&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.__experimentalText,{className:"font-library-modal__subtitle"},(0,E.__)("Theme Fonts")),(0,l.createElement)(b.__experimentalSpacer,{margin:2}),n.map((e=>(0,l.createElement)(Om,{font:e,key:e.slug,navigatorPath:"/fontFamily",variantsText:x(e),onClick:()=>{r(e)}}))))),(0,l.createElement)(b.__experimentalNavigatorScreen,{path:"/fontFamily"},(0,l.createElement)(Vm,{font:t,isOpen:y,setIsOpen:v,setNotice:h,uninstallFontFamily:s,handleSetLibraryFontSelected:r}),(0,l.createElement)(b.Flex,{justify:"flex-start"},(0,l.createElement)(b.__experimentalNavigatorToParentButton,{icon:dr,isSmall:!0,onClick:()=>{r(null)},"aria-label":(0,E.__)("Navigate to the previous view")}),(0,l.createElement)(b.__experimentalHeading,{level:2,size:13,className:"edit-site-global-styles-header"},t?.name)),p&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.__experimentalSpacer,{margin:1}),(0,l.createElement)(b.Notice,{status:p.type,onRemove:()=>h(null)},p.message),(0,l.createElement)(b.__experimentalSpacer,{margin:1})),(0,l.createElement)(b.__experimentalSpacer,{margin:4}),(0,l.createElement)(b.__experimentalText,null,(0,E.__)("Choose font variants. Keep in mind that too many variants could make your site slower.")),(0,l.createElement)(b.__experimentalSpacer,{margin:4}),(0,l.createElement)(b.__experimentalVStack,{spacing:0},(0,l.createElement)(b.__experimentalSpacer,{margin:8}),(e=>e?e.fontFace&&e.fontFace.length?Rm(e.fontFace):[{fontFamily:e.fontFamily,fontStyle:"normal",fontWeight:"400"}]:[])(t).map(((e,n)=>(0,l.createElement)(Nm,{font:t,face:e,key:`face${n}`})))))),(0,l.createElement)(b.__experimentalHStack,{justify:"flex-end",className:"font-library-modal__tabpanel-layout__footer"},o&&(0,l.createElement)(Dm,null),S&&(0,l.createElement)(b.Button,{isDestructive:!0,variant:"tertiary",onClick:()=>{v(!0)}},(0,E.__)("Delete")),(0,l.createElement)(b.Button,{variant:"primary",onClick:()=>{c(f)},disabled:!d,__experimentalIsFocusable:!0},(0,E.__)("Update"))))};function Bm(e,t,n){return t?!!n[e]?.[`${t.fontStyle}-${t.fontWeight}`]:!!n[e]}const zm=function(){return(0,l.createElement)("div",{className:"font-library__google-fonts-confirm"},(0,l.createElement)(b.Card,null,(0,l.createElement)(b.CardBody,null,(0,l.createElement)(b.__experimentalText,{as:"h3"},(0,E.__)("Connect to Google Fonts")),(0,l.createElement)(b.__experimentalSpacer,{margin:6}),(0,l.createElement)(b.__experimentalText,{as:"p"},(0,E.__)("To install fonts from Google you must give permission to connect directly to Google servers. The fonts you install will be downloaded from Google and stored on your site. Your site will then use these locally-hosted fonts.")),(0,l.createElement)(b.__experimentalSpacer,{margin:3}),(0,l.createElement)(b.__experimentalText,{as:"p"},(0,E.__)("You can alternatively upload files directly on the Upload tab.")),(0,l.createElement)(b.__experimentalSpacer,{margin:6}),(0,l.createElement)(b.Button,{variant:"primary",onClick:()=>{window.localStorage.setItem("wp-font-library-google-fonts-permission","true"),window.dispatchEvent(new Event("storage"))}},(0,E.__)("Allow access to Google Fonts")))))};const Hm=function({face:e,font:t,handleToggleVariant:n,selected:r}){const a=()=>{t?.fontFace?n(t,e):n(t)},s=t.name+" "+ym(e),{kebabCase:i}=Xe(b.privateApis),o=i(`${t.slug}-${ym(e)}`);return(0,l.createElement)("div",{className:"font-library-modal__font-card"},(0,l.createElement)(b.Flex,{justify:"flex-start",align:"center",gap:"1rem"},(0,l.createElement)(b.CheckboxControl,{checked:r,onChange:a,__nextHasNoMarginBottom:!0,id:o}),(0,l.createElement)("label",{htmlFor:o},(0,l.createElement)(Am,{font:e,text:s,onClick:a}))))},Gm={slug:"all",name:(0,E._x)("All","font categories")},Um="wp-font-library-google-fonts-permission";const Wm=function({slug:e}){var t;const n="google-fonts"===e,r=()=>"true"===window.localStorage.getItem(Um),[a,s]=(0,g.useState)(null),[i,o]=(0,g.useState)([]),[c,u]=(0,g.useState)(1),[d,m]=(0,g.useState)({}),[p,h]=(0,g.useState)(n&&!r()),{collections:f,getFontCollection:y,installFonts:v,isInstalling:_,notice:w,setNotice:S}=(0,g.useContext)(Im),x=f.find((t=>t.slug===e));(0,g.useEffect)((()=>{const e=()=>{h(n&&!r())};return e(),window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[e,n]);const C=()=>{window.localStorage.setItem(Um,"false"),window.dispatchEvent(new Event("storage"))};(0,g.useEffect)((()=>{(async()=>{try{await y(e),L()}catch(e){w||S({type:"error",message:e?.message})}})()}),[e,y,S,w]),(0,g.useEffect)((()=>{s(null),S(null)}),[e,S]),(0,g.useEffect)((()=>{o([])}),[a]);const k=(0,g.useMemo)((()=>{var e;return null!==(e=x?.font_families)&&void 0!==e?e:[]}),[x]),T=null!==(t=x?.categories)&&void 0!==t?t:[],I=[Gm,...T],M=(0,g.useMemo)((()=>function(e,t){const{category:n,search:r}=t;let a=e||[];return n&&"all"!==n&&(a=a.filter((e=>-1!==e.categories.indexOf(n)))),r&&(a=a.filter((e=>e.font_family_settings.name.toLowerCase().includes(r.toLowerCase())))),a}(k,d)),[k,d]),A=Math.max(window.innerHeight,500),O=Math.floor((A-417)/61),N=Math.ceil(M.length/O),F=(c-1)*O,R=c*O,D=M.slice(F,R),V=(0,ie.debounce)((e=>{m({...d,search:e}),u(1)}),300),L=()=>{m({}),u(1)},B=(e,t)=>{const n=Tm(e,t,i);o(n)},z=function(e){return e.reduce(((e,t)=>({...e,[t.slug]:(t?.fontFace||[]).reduce(((e,t)=>({...e,[`${t.fontStyle}-${t.fontWeight}`]:!0})),{})})),{})}(i);return p?(0,l.createElement)(zm,null):(0,l.createElement)("div",{className:"font-library-modal__tabpanel-layout"},(0,l.createElement)(b.__experimentalNavigatorProvider,{initialPath:"/",className:"font-library-modal__tabpanel-layout"},(0,l.createElement)(b.__experimentalNavigatorScreen,{path:"/"},(0,l.createElement)(b.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(b.__experimentalVStack,null,(0,l.createElement)(b.__experimentalHeading,{level:2,size:13},x.name),(0,l.createElement)(b.__experimentalText,null,x.description)),(0,l.createElement)((()=>"google-fonts"!==e||p||a?null:(0,l.createElement)(b.DropdownMenu,{icon:ue,label:(0,E.__)("Actions"),popoverProps:{position:"bottom left"},controls:[{title:(0,E.__)("Revoke access to Google Fonts"),onClick:C}]})),null)),(0,l.createElement)(b.__experimentalSpacer,{margin:4}),(0,l.createElement)(b.Flex,null,(0,l.createElement)(b.FlexItem,null,(0,l.createElement)(b.__experimentalInputControl,{value:d.search,placeholder:(0,E.__)("Font name…"),label:(0,E.__)("Search"),onChange:V,prefix:(0,l.createElement)(b.Icon,{icon:Va}),suffix:d?.search?(0,l.createElement)(b.Icon,{icon:P,onClick:()=>{m({...d,search:""}),u(1)}}):null})),(0,l.createElement)(b.FlexItem,null,(0,l.createElement)(b.SelectControl,{label:(0,E.__)("Category"),value:d.category,onChange:e=>{m({...d,category:e}),u(1)}},I&&I.map((e=>(0,l.createElement)("option",{value:e.slug,key:e.slug},e.name)))))),(0,l.createElement)(b.__experimentalSpacer,{margin:4}),!x?.font_families&&!w&&(0,l.createElement)(b.Spinner,null),!!x?.font_families?.length&&!M.length&&(0,l.createElement)(b.__experimentalText,null,(0,E.__)("No fonts found. Try with a different search term")),(0,l.createElement)("div",{className:"font-library-modal__fonts-grid__main"},D.map((e=>(0,l.createElement)(Om,{key:e.font_family_settings.slug,font:e.font_family_settings,navigatorPath:"/fontFamily",onClick:()=>{s(e.font_family_settings)}}))))),(0,l.createElement)(b.__experimentalNavigatorScreen,{path:"/fontFamily"},(0,l.createElement)(b.Flex,{justify:"flex-start"},(0,l.createElement)(b.__experimentalNavigatorToParentButton,{icon:dr,isSmall:!0,onClick:()=>{s(null),S(null)},"aria-label":(0,E.__)("Navigate to the previous view")}),(0,l.createElement)(b.__experimentalHeading,{level:2,size:13,className:"edit-site-global-styles-header"},a?.name)),w&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.__experimentalSpacer,{margin:1}),(0,l.createElement)(b.Notice,{status:w.type,onRemove:()=>S(null)},w.message),(0,l.createElement)(b.__experimentalSpacer,{margin:1})),(0,l.createElement)(b.__experimentalSpacer,{margin:4}),(0,l.createElement)(b.__experimentalText,null," ",(0,E.__)("Select font variants to install.")," "),(0,l.createElement)(b.__experimentalSpacer,{margin:4}),(0,l.createElement)(b.__experimentalVStack,{spacing:0},(0,l.createElement)(b.__experimentalSpacer,{margin:8}),(H=a,H?H.fontFace&&H.fontFace.length?Rm(H.fontFace):[{fontFamily:H.fontFamily,fontStyle:"normal",fontWeight:"400"}]:[]).map(((e,t)=>(0,l.createElement)(Hm,{font:a,face:e,key:`face${t}`,handleToggleVariant:B,selected:Bm(a.slug,a.fontFace?e:null,z)})))),(0,l.createElement)(b.__experimentalSpacer,{margin:16}))),a&&(0,l.createElement)(b.Flex,{justify:"flex-end",className:"font-library-modal__tabpanel-layout__footer"},(0,l.createElement)(b.Button,{variant:"primary",onClick:async()=>{S(null);const e=i[0];try{e?.fontFace&&await Promise.all(e.fontFace.map((async e=>{e.src&&(e.file=await async function(e){e=Array.isArray(e)?e:[e];const t=await Promise.all(e.map((async e=>fetch(new Request(e)).then((t=>{if(!t.ok)throw new Error(`Error downloading font face asset from ${e}. Server responded with status: ${t.status}`);return t.blob()})).then((t=>{const n=e.split("/").pop();return new fm([t],n,{type:t.type})})))));return 1===t.length?t[0]:t}(e.src))})))}catch(e){return void S({type:"error",message:(0,E.__)("Error installing the fonts, could not be downloaded.")})}try{await v([e]),S({type:"success",message:(0,E.__)("Fonts were installed successfully.")})}catch(e){S({type:"error",message:e.message})}o([])},isBusy:_,disabled:0===i.length||_,__experimentalIsFocusable:!0},(0,E.__)("Install"))),!a&&(0,l.createElement)(b.Flex,{justify:"center",className:"font-library-modal__tabpanel-layout__footer"},(0,l.createElement)(b.Button,{label:(0,E.__)("First page"),size:"compact",onClick:()=>u(1),disabled:1===c,__experimentalIsFocusable:!0},(0,l.createElement)("span",null,"«")),(0,l.createElement)(b.Button,{label:(0,E.__)("Previous page"),size:"compact",onClick:()=>u(c-1),disabled:1===c,__experimentalIsFocusable:!0},(0,l.createElement)("span",null,"‹")),(0,l.createElement)(b.__experimentalHStack,{justify:"flex-start",expanded:!1,spacing:2},(0,g.createInterpolateElement)((0,E.sprintf)((0,E._x)("Page <CurrentPageControl /> of %s","paging"),N),{CurrentPageControl:(0,l.createElement)(b.SelectControl,{"aria-label":(0,E.__)("Current page"),value:c,options:[...Array(N)].map(((e,t)=>({label:t+1,value:t+1}))),onChange:e=>u(parseInt(e)),size:"compact",__nextHasNoMarginBottom:!0})})),(0,l.createElement)(b.Button,{label:(0,E.__)("Next page"),size:"compact",onClick:()=>u(c+1),disabled:c===N,__experimentalIsFocusable:!0},(0,l.createElement)("span",null,"›")),(0,l.createElement)(b.Button,{label:(0,E.__)("Last page"),size:"compact",onClick:()=>u(N),disabled:c===N,__experimentalIsFocusable:!0},(0,l.createElement)("span",null,"»"))));var H};var jm=a(8572),Zm=a.n(jm),qm=a(4660),Ym=a.n(qm);globalThis.fetch;class Km{constructor(e,t={},n){this.type=e,this.detail=t,this.msg=n,Object.defineProperty(this,"__mayPropagate",{enumerable:!1,writable:!0}),this.__mayPropagate=!0}preventDefault(){}stopPropagation(){this.__mayPropagate=!1}valueOf(){return this}toString(){return this.msg?`[${this.type} event]: ${this.msg}`:`[${this.type} event]`}}class Xm{constructor(){this.listeners={}}addEventListener(e,t,n){let r=this.listeners[e]||[];n?r.unshift(t):r.push(t),this.listeners[e]=r}removeEventListener(e,t){let n=this.listeners[e]||[],r=n.findIndex((e=>e===t));r>-1&&(n.splice(r,1),this.listeners[e]=n)}dispatch(e){let t=this.listeners[e.type];if(t)for(let n=0,r=t.length;n<r&&e.__mayPropagate;n++)t[n](e)}}const Jm=new Date("1904-01-01T00:00:00+0000").getTime();class Qm{constructor(e,t,n){this.name=(n||e.tag||"").trim(),this.length=e.length,this.start=e.offset,this.offset=0,this.data=t,["getInt8","getUint8","getInt16","getUint16","getInt32","getUint32","getBigInt64","getBigUint64"].forEach((e=>{let t=e.replace(/get(Big)?/,"").toLowerCase(),n=parseInt(e.replace(/[^\d]/g,""))/8;Object.defineProperty(this,t,{get:()=>this.getValue(e,n)})}))}get currentPosition(){return this.start+this.offset}set currentPosition(e){this.start=e,this.offset=0}skip(e=0,t=8){this.offset+=e*t/8}getValue(e,t){let n=this.start+this.offset;this.offset+=t;try{return this.data[e](n)}catch(n){throw console.error("parser",e,t,this),console.error("parser",this.start,this.offset),n}}flags(e){if(8===e||16===e||32===e||64===e)return this[`uint${e}`].toString(2).padStart(e,0).split("").map((e=>"1"===e));console.error("Error parsing flags: flag types can only be 1, 2, 4, or 8 bytes long"),console.trace()}get tag(){const e=this.uint32;return t=[e>>24&255,e>>16&255,e>>8&255,255&e],Array.from(t).map((e=>String.fromCharCode(e))).join("");var t}get fixed(){return this.int16+Math.round(1e3*this.uint16/65356)/1e3}get legacyFixed(){let e=this.uint16,t=this.uint16.toString(16).padStart(4,0);return parseFloat(`${e}.${t}`)}get uint24(){return(this.uint8<<16)+(this.uint8<<8)+this.uint8}get uint128(){let e=0;for(let t=0;t<5;t++){let t=this.uint8;if(e=128*e+(127&t),t<128)break}return e}get longdatetime(){return new Date(Jm+1e3*parseInt(this.int64.toString()))}get fword(){return this.int16}get ufword(){return this.uint16}get Offset16(){return this.uint16}get Offset32(){return this.uint32}get F2DOT14(){const e=p.uint16;return[0,1,-2,-1][e>>14]+(16383&e)/16384}verifyLength(){this.offset!=this.length&&console.error(`unexpected parsed table size (${this.offset}) for "${this.name}" (expected ${this.length})`)}readBytes(e=0,t=0,n=8,r=!1){if(0===(e=e||this.length))return[];t&&(this.currentPosition=t);const a=`${r?"":"u"}int${n}`,s=[];for(;e--;)s.push(this[a]);return s}}class $m{constructor(e){const t={enumerable:!1,get:()=>e};Object.defineProperty(this,"parser",t);const n=e.currentPosition,r={enumerable:!1,get:()=>n};Object.defineProperty(this,"start",r)}load(e){Object.keys(e).forEach((t=>{let n=Object.getOwnPropertyDescriptor(e,t);n.get?this[t]=n.get.bind(this):void 0!==n.value&&(this[t]=n.value)})),this.parser.length&&this.parser.verifyLength()}}class ep extends $m{constructor(e,t,n){const{parser:r,start:a}=super(new Qm(e,t,n)),s={enumerable:!1,get:()=>r};Object.defineProperty(this,"p",s);const i={enumerable:!1,get:()=>a};Object.defineProperty(this,"tableStart",i)}}function tp(e,t,n){let r;Object.defineProperty(e,t,{get:()=>r||(r=n(),r),enumerable:!0})}class np extends ep{constructor(e,t,n){const{p:r}=super({offset:0,length:12},t,"sfnt");this.version=r.uint32,this.numTables=r.uint16,this.searchRange=r.uint16,this.entrySelector=r.uint16,this.rangeShift=r.uint16,r.verifyLength(),this.directory=[...new Array(this.numTables)].map((e=>new rp(r))),this.tables={},this.directory.forEach((e=>{tp(this.tables,e.tag.trim(),(()=>n(this.tables,{tag:e.tag,offset:e.offset,length:e.length},t)))}))}}class rp{constructor(e){this.tag=e.tag,this.checksum=e.uint32,this.offset=e.uint32,this.length=e.uint32}}const ap=Ym().inflate||void 0;let sp;class ip extends ep{constructor(e,t,n){const{p:r}=super({offset:0,length:44},t,"woff");this.signature=r.tag,this.flavor=r.uint32,this.length=r.uint32,this.numTables=r.uint16,r.uint16,this.totalSfntSize=r.uint32,this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.metaOffset=r.uint32,this.metaLength=r.uint32,this.metaOrigLength=r.uint32,this.privOffset=r.uint32,this.privLength=r.uint32,r.verifyLength(),this.directory=[...new Array(this.numTables)].map((e=>new op(r))),lp(this,t,n)}}class op{constructor(e){this.tag=e.tag,this.offset=e.uint32,this.compLength=e.uint32,this.origLength=e.uint32,this.origChecksum=e.uint32}}function lp(e,t,n){e.tables={},e.directory.forEach((r=>{tp(e.tables,r.tag.trim(),(()=>{let a=0,s=t;if(r.compLength!==r.origLength){const e=t.buffer.slice(r.offset,r.offset+r.compLength);let n;if(ap)n=ap(new Uint8Array(e));else{if(!sp){const e="no brotli decoder available to decode WOFF2 font";throw font.onerror&&font.onerror(e),new Error(e)}n=sp(new Uint8Array(e))}s=new DataView(n.buffer)}else a=r.offset;return n(e.tables,{tag:r.tag,offset:a,length:r.origLength},s)}))}))}const cp=Zm();let up;class dp extends ep{constructor(e,t,n){const{p:r}=super({offset:0,length:48},t,"woff2");this.signature=r.tag,this.flavor=r.uint32,this.length=r.uint32,this.numTables=r.uint16,r.uint16,this.totalSfntSize=r.uint32,this.totalCompressedSize=r.uint32,this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.metaOffset=r.uint32,this.metaLength=r.uint32,this.metaOrigLength=r.uint32,this.privOffset=r.uint32,this.privLength=r.uint32,r.verifyLength(),this.directory=[...new Array(this.numTables)].map((e=>new mp(r)));let a,s=r.currentPosition;this.directory[0].offset=0,this.directory.forEach(((e,t)=>{let n=this.directory[t+1];n&&(n.offset=e.offset+(void 0!==e.transformLength?e.transformLength:e.origLength))}));let i=t.buffer.slice(s);if(cp)a=cp(new Uint8Array(i));else{if(!up){const t="no brotli decoder available to decode WOFF2 font";throw e.onerror&&e.onerror(t),new Error(t)}a=new Uint8Array(up(i))}!function(e,t,n){e.tables={},e.directory.forEach((r=>{tp(e.tables,r.tag.trim(),(()=>{const a=r.offset,s=a+(r.transformLength?r.transformLength:r.origLength),i=new DataView(t.slice(a,s).buffer);try{return n(e.tables,{tag:r.tag,offset:0,length:r.origLength},i)}catch(e){console.error(e)}}))}))}(this,a,n)}}class mp{constructor(e){this.flags=e.uint8;const t=this.tagNumber=63&this.flags;this.tag=63===t?e.tag:["cmap","head","hhea","hmtx","maxp","name","OS/2","post","cvt ","fpgm","glyf","loca","prep","CFF ","VORG","EBDT","EBLC","gasp","hdmx","kern","LTSH","PCLT","VDMX","vhea","vmtx","BASE","GDEF","GPOS","GSUB","EBSC","JSTF","MATH","CBDT","CBLC","COLR","CPAL","SVG ","sbix","acnt","avar","bdat","bloc","bsln","cvar","fdsc","feat","fmtx","fvar","gvar","hsty","just","lcar","mort","morx","opbd","prop","trak","Zapf","Silf","Glat","Gloc","Feat","Sill"][63&t];let n=0!==(this.transformVersion=(192&this.flags)>>6);"glyf"!==this.tag&&"loca"!==this.tag||(n=3!==this.transformVersion),this.origLength=e.uint128,n&&(this.transformLength=e.uint128)}}const pp={};let hp=!1;function fp(e,t,n){let r=t.tag.replace(/[^\w\d]/g,""),a=pp[r];return a?new a(t,n,e):(console.warn(`lib-font has no definition for ${r}. The table was skipped.`),{})}function gp(){let e=0;function t(n,r){if(!hp)return e>10?r(new Error("loading took too long")):(e++,setTimeout((()=>t(n)),250));n(fp)}return new Promise(((e,n)=>t(e)))}async function yp(e,t,n={}){if(!globalThis.document)return;let r=function(e,t){let n=e.lastIndexOf("."),r=(e.substring(n+1)||"").toLowerCase(),a={ttf:"truetype",otf:"opentype",woff:"woff",woff2:"woff2"}[r];if(a)return a;let s={eot:"The .eot format is not supported: it died in January 12, 2016, when Microsoft retired all versions of IE that didn't already support WOFF.",svg:"The .svg format is not supported: SVG fonts (not to be confused with OpenType with embedded SVG) were so bad we took the entire fonts chapter out of the SVG specification again.",fon:"The .fon format is not supported: this is an ancient Windows bitmap font format.",ttc:"Based on the current CSS specification, font collections are not (yet?) supported."}[r];if(s||(s=`${e} is not a known webfont format.`),t)throw new Error(s);console.warn(`Could not load font: ${s}`)}(t,n.errorOnStyle);if(!r)return;let a=document.createElement("style");a.className="injected-by-Font-js";let s=[];return n.styleRules&&(s=Object.entries(n.styleRules).map((([e,t])=>`${e}: ${t};`))),a.textContent=`\n@font-face {\n font-family: "${e}";\n ${s.join("\n\t")}\n src: url("${t}") format("${r}");\n}`,globalThis.document.head.appendChild(a),a}Promise.all([Promise.resolve().then((function(){return zp})),Promise.resolve().then((function(){return Hp})),Promise.resolve().then((function(){return Gp})),Promise.resolve().then((function(){return Wp})),Promise.resolve().then((function(){return jp})),Promise.resolve().then((function(){return Yp})),Promise.resolve().then((function(){return Kp})),Promise.resolve().then((function(){return Jp})),Promise.resolve().then((function(){return lh})),Promise.resolve().then((function(){return bh})),Promise.resolve().then((function(){return vf})),Promise.resolve().then((function(){return _f})),Promise.resolve().then((function(){return wf})),Promise.resolve().then((function(){return Cf})),Promise.resolve().then((function(){return kf})),Promise.resolve().then((function(){return Tf})),Promise.resolve().then((function(){return If})),Promise.resolve().then((function(){return Mf})),Promise.resolve().then((function(){return Af})),Promise.resolve().then((function(){return Of})),Promise.resolve().then((function(){return Nf})),Promise.resolve().then((function(){return Ff})),Promise.resolve().then((function(){return Df})),Promise.resolve().then((function(){return Hf})),Promise.resolve().then((function(){return Uf})),Promise.resolve().then((function(){return Wf})),Promise.resolve().then((function(){return jf})),Promise.resolve().then((function(){return Zf})),Promise.resolve().then((function(){return qf})),Promise.resolve().then((function(){return Xf})),Promise.resolve().then((function(){return tg})),Promise.resolve().then((function(){return ag})),Promise.resolve().then((function(){return ig})),Promise.resolve().then((function(){return cg})),Promise.resolve().then((function(){return ug})),Promise.resolve().then((function(){return dg})),Promise.resolve().then((function(){return pg})),Promise.resolve().then((function(){return hg})),Promise.resolve().then((function(){return vg})),Promise.resolve().then((function(){return _g})),Promise.resolve().then((function(){return Eg}))]).then((e=>{e.forEach((e=>{let t=Object.keys(e)[0];pp[t]=e[t]})),hp=!0}));const vp=[0,1,0,0],_p=[79,84,84,79],bp=[119,79,70,70],Ep=[119,79,70,50];function wp(e,t){if(e.length===t.length){for(let n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}class Sp extends Xm{constructor(e,t={}){super(),this.name=e,this.options=t,this.metrics=!1}get src(){return this.__src}set src(e){this.__src=e,(async()=>{globalThis.document&&!this.options.skipStyleSheet&&await yp(this.name,e,this.options),this.loadFont(e)})()}async loadFont(e,t){fetch(e).then((e=>function(e){if(!e.ok)throw new Error(`HTTP ${e.status} - ${e.statusText}`);return e}(e)&&e.arrayBuffer())).then((n=>this.fromDataBuffer(n,t||e))).catch((n=>{const r=new Km("error",n,`Failed to load font at ${t||e}`);this.dispatch(r),this.onerror&&this.onerror(r)}))}async fromDataBuffer(e,t){this.fontData=new DataView(e);let n=function(e){const t=[e.getUint8(0),e.getUint8(1),e.getUint8(2),e.getUint8(3)];return wp(t,vp)||wp(t,_p)?"SFNT":wp(t,bp)?"WOFF":wp(t,Ep)?"WOFF2":void 0}(this.fontData);if(!n)throw new Error(`${t} is either an unsupported font format, or not a font at all.`);await this.parseBasicData(n);const r=new Km("load",{font:this});this.dispatch(r),this.onload&&this.onload(r)}async parseBasicData(e){return gp().then((t=>("SFNT"===e&&(this.opentype=new np(this,this.fontData,t)),"WOFF"===e&&(this.opentype=new ip(this,this.fontData,t)),"WOFF2"===e&&(this.opentype=new dp(this,this.fontData,t)),this.opentype)))}getGlyphId(e){return this.opentype.tables.cmap.getGlyphId(e)}reverse(e){return this.opentype.tables.cmap.reverse(e)}supports(e){return 0!==this.getGlyphId(e)}supportsVariation(e){return!1!==this.opentype.tables.cmap.supportsVariation(e)}measureText(e,t=16){if(this.__unloaded)throw new Error("Cannot measure text: font was unloaded. Please reload before calling measureText()");let n=document.createElement("div");n.textContent=e,n.style.fontFamily=this.name,n.style.fontSize=`${t}px`,n.style.color="transparent",n.style.background="transparent",n.style.top="0",n.style.left="0",n.style.position="absolute",document.body.appendChild(n);let r=n.getBoundingClientRect();document.body.removeChild(n);const a=this.opentype.tables["OS/2"];return r.fontSize=t,r.ascender=a.sTypoAscender,r.descender=a.sTypoDescender,r}unload(){if(this.styleElement.parentNode){this.styleElement.parentNode.removeElement(this.styleElement);const e=new Km("unload",{font:this});this.dispatch(e),this.onunload&&this.onunload(e)}this._unloaded=!0}load(){if(this.__unloaded){delete this.__unloaded,document.head.appendChild(this.styleElement);const e=new Km("load",{font:this});this.dispatch(e),this.onload&&this.onload(e)}}}globalThis.Font=Sp;class xp extends $m{constructor(e,t,n){super(e),this.plaformID=t,this.encodingID=n}}class Cp extends xp{constructor(e,t,n){super(e,t,n),this.format=0,this.length=e.uint16,this.language=e.uint16,this.glyphIdArray=[...new Array(256)].map((t=>e.uint8))}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 0. only supports(id) is implemented.")),0<=e&&e<=255}reverse(e){return console.warn("reverse not implemented for cmap subtable format 0"),{}}getSupportedCharCodes(){return[{start:1,end:256}]}}class kp extends xp{constructor(e,t,n){super(e,t,n),this.format=2,this.length=e.uint16,this.language=e.uint16,this.subHeaderKeys=[...new Array(256)].map((t=>e.uint16));const r=Math.max(...this.subHeaderKeys),a=e.currentPosition;tp(this,"subHeaders",(()=>(e.currentPosition=a,[...new Array(r)].map((t=>new Tp(e))))));const s=a+8*r;tp(this,"glyphIndexArray",(()=>(e.currentPosition=s,[...new Array(r)].map((t=>e.uint16)))))}supports(e){e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 2. only supports(id) is implemented."));const t=e&&255,n=e&&65280,r=this.subHeaders[n],a=this.subHeaders[r],s=a.firstCode,i=s+a.entryCount;return s<=t&&t<=i}reverse(e){return console.warn("reverse not implemented for cmap subtable format 2"),{}}getSupportedCharCodes(e=!1){return e?this.subHeaders.map((e=>({firstCode:e.firstCode,lastCode:e.lastCode}))):this.subHeaders.map((e=>({start:e.firstCode,end:e.lastCode})))}}class Tp{constructor(e){this.firstCode=e.uint16,this.entryCount=e.uint16,this.lastCode=this.first+this.entryCount,this.idDelta=e.int16,this.idRangeOffset=e.uint16}}class Pp extends xp{constructor(e,t,n){super(e,t,n),this.format=4,this.length=e.uint16,this.language=e.uint16,this.segCountX2=e.uint16,this.segCount=this.segCountX2/2,this.searchRange=e.uint16,this.entrySelector=e.uint16,this.rangeShift=e.uint16;const r=e.currentPosition;tp(this,"endCode",(()=>e.readBytes(this.segCount,r,16)));const a=r+2+this.segCountX2;tp(this,"startCode",(()=>e.readBytes(this.segCount,a,16)));const s=a+this.segCountX2;tp(this,"idDelta",(()=>e.readBytes(this.segCount,s,16,!0)));const i=s+this.segCountX2;tp(this,"idRangeOffset",(()=>e.readBytes(this.segCount,i,16)));const o=i+this.segCountX2,l=this.length-(o-this.tableStart);tp(this,"glyphIdArray",(()=>e.readBytes(l,o,16))),tp(this,"segments",(()=>this.buildSegments(i,o,e)))}buildSegments(e,t,n){return[...new Array(this.segCount)].map(((t,r)=>{let a=this.startCode[r],s=this.endCode[r],i=this.idDelta[r],o=this.idRangeOffset[r],l=e+2*r,c=[];if(0===o)for(let e=a+i,t=s+i;e<=t;e++)c.push(e);else for(let e=0,t=s-a;e<=t;e++)n.currentPosition=l+o+2*e,c.push(n.uint16);return{startCode:a,endCode:s,idDelta:i,idRangeOffset:o,glyphIDs:c}}))}reverse(e){let t=this.segments.find((t=>t.glyphIDs.includes(e)));if(!t)return{};const n=t.startCode+t.glyphIDs.indexOf(e);return{code:n,unicode:String.fromCodePoint(n)}}getGlyphId(e){if(e.charCodeAt&&(e=e.charCodeAt(0)),55296<=e&&e<=57343)return 0;if(65534==(65534&e)||65535==(65535&e))return 0;let t=this.segments.find((t=>t.startCode<=e&&e<=t.endCode));return t?t.glyphIDs[e-t.startCode]:0}supports(e){return 0!==this.getGlyphId(e)}getSupportedCharCodes(e=!1){return e?this.segments:this.segments.map((e=>({start:e.startCode,end:e.endCode})))}}class Ip extends xp{constructor(e,t,n){super(e,t,n),this.format=6,this.length=e.uint16,this.language=e.uint16,this.firstCode=e.uint16,this.entryCount=e.uint16,this.lastCode=this.firstCode+this.entryCount-1;tp(this,"glyphIdArray",(()=>[...new Array(this.entryCount)].map((t=>e.uint16))))}supports(e){if(e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 6. only supports(id) is implemented.")),e<this.firstCode)return{};if(e>this.firstCode+this.entryCount)return{};const t=e-this.firstCode;return{code:t,unicode:String.fromCodePoint(t)}}reverse(e){let t=this.glyphIdArray.indexOf(e);if(t>-1)return this.firstCode+t}getSupportedCharCodes(e=!1){return e?[{firstCode:this.firstCode,lastCode:this.lastCode}]:[{start:this.firstCode,end:this.lastCode}]}}class Mp extends xp{constructor(e,t,n){super(e,t,n),this.format=8,e.uint16,this.length=e.uint32,this.language=e.uint32,this.is32=[...new Array(8192)].map((t=>e.uint8)),this.numGroups=e.uint32;tp(this,"groups",(()=>[...new Array(this.numGroups)].map((t=>new Ap(e)))))}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 8. only supports(id) is implemented.")),-1!==this.groups.findIndex((t=>t.startcharCode<=e&&e<=t.endcharCode))}reverse(e){return console.warn("reverse not implemented for cmap subtable format 8"),{}}getSupportedCharCodes(e=!1){return e?this.groups:this.groups.map((e=>({start:e.startcharCode,end:e.endcharCode})))}}class Ap{constructor(e){this.startcharCode=e.uint32,this.endcharCode=e.uint32,this.startGlyphID=e.uint32}}class Op extends xp{constructor(e,t,n){super(e,t,n),this.format=10,e.uint16,this.length=e.uint32,this.language=e.uint32,this.startCharCode=e.uint32,this.numChars=e.uint32,this.endCharCode=this.startCharCode+this.numChars;tp(this,"glyphs",(()=>[...new Array(this.numChars)].map((t=>e.uint16))))}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 10. only supports(id) is implemented.")),!(e<this.startCharCode)&&(!(e>this.startCharCode+this.numChars)&&e-this.startCharCode)}reverse(e){return console.warn("reverse not implemented for cmap subtable format 10"),{}}getSupportedCharCodes(e=!1){return e?[{startCharCode:this.startCharCode,endCharCode:this.endCharCode}]:[{start:this.startCharCode,end:this.endCharCode}]}}class Np extends xp{constructor(e,t,n){super(e,t,n),this.format=12,e.uint16,this.length=e.uint32,this.language=e.uint32,this.numGroups=e.uint32;tp(this,"groups",(()=>[...new Array(this.numGroups)].map((t=>new Fp(e)))))}supports(e){return e.charCodeAt&&(e=e.charCodeAt(0)),55296<=e&&e<=57343||65534==(65534&e)||65535==(65535&e)?0:-1!==this.groups.findIndex((t=>t.startCharCode<=e&&e<=t.endCharCode))}reverse(e){for(let t of this.groups){let n=t.startGlyphID;if(n>e)continue;if(n===e)return t.startCharCode;if(n+(t.endCharCode-t.startCharCode)<e)continue;const r=t.startCharCode+(e-n);return{code:r,unicode:String.fromCodePoint(r)}}return{}}getSupportedCharCodes(e=!1){return e?this.groups:this.groups.map((e=>({start:e.startCharCode,end:e.endCharCode})))}}class Fp{constructor(e){this.startCharCode=e.uint32,this.endCharCode=e.uint32,this.startGlyphID=e.uint32}}class Rp extends xp{constructor(e,t,n){super(e,t,n),this.format=13,e.uint16,this.length=e.uint32,this.language=e.uint32,this.numGroups=e.uint32;tp(this,"groups",[...new Array(this.numGroups)].map((t=>new Dp(e))))}supports(e){return e.charCodeAt&&(e=e.charCodeAt(0)),-1!==this.groups.findIndex((t=>t.startCharCode<=e&&e<=t.endCharCode))}reverse(e){return console.warn("reverse not implemented for cmap subtable format 13"),{}}getSupportedCharCodes(e=!1){return e?this.groups:this.groups.map((e=>({start:e.startCharCode,end:e.endCharCode})))}}class Dp{constructor(e){this.startCharCode=e.uint32,this.endCharCode=e.uint32,this.glyphID=e.uint32}}class Vp extends xp{constructor(e,t,n){super(e,t,n),this.subTableStart=e.currentPosition,this.format=14,this.length=e.uint32,this.numVarSelectorRecords=e.uint32,tp(this,"varSelectors",(()=>[...new Array(this.numVarSelectorRecords)].map((t=>new Lp(e)))))}supports(){return console.warn("supports not implemented for cmap subtable format 14"),0}getSupportedCharCodes(){return console.warn("getSupportedCharCodes not implemented for cmap subtable format 14"),[]}reverse(e){return console.warn("reverse not implemented for cmap subtable format 14"),{}}supportsVariation(e){let t=this.varSelector.find((t=>t.varSelector===e));return t||!1}getSupportedVariations(){return this.varSelectors.map((e=>e.varSelector))}}class Lp{constructor(e){this.varSelector=e.uint24,this.defaultUVSOffset=e.Offset32,this.nonDefaultUVSOffset=e.Offset32}}class Bp{constructor(e,t){const n=this.platformID=e.uint16,r=this.encodingID=e.uint16,a=this.offset=e.Offset32;tp(this,"table",(()=>(e.currentPosition=t+a,function(e,t,n){const r=e.uint16;return 0===r?new Cp(e,t,n):2===r?new kp(e,t,n):4===r?new Pp(e,t,n):6===r?new Ip(e,t,n):8===r?new Mp(e,t,n):10===r?new Op(e,t,n):12===r?new Np(e,t,n):13===r?new Rp(e,t,n):14===r?new Vp(e,t,n):{}}(e,n,r))))}}var zp=Object.freeze({__proto__:null,cmap:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.numTables=n.uint16,this.encodingRecords=[...new Array(this.numTables)].map((e=>new Bp(n,this.tableStart)))}getSubTable(e){return this.encodingRecords[e].table}getSupportedEncodings(){return this.encodingRecords.map((e=>({platformID:e.platformID,encodingId:e.encodingID})))}getSupportedCharCodes(e,t){const n=this.encodingRecords.findIndex((n=>n.platformID===e&&n.encodingID===t));if(-1===n)return!1;return this.getSubTable(n).getSupportedCharCodes()}reverse(e){for(let t=0;t<this.numTables;t++){let n=this.getSubTable(t).reverse(e);if(n)return n}}getGlyphId(e){let t=0;return this.encodingRecords.some(((n,r)=>{let a=this.getSubTable(r);return!!a.getGlyphId&&(t=a.getGlyphId(e),0!==t)})),t}supports(e){return this.encodingRecords.some(((t,n)=>{const r=this.getSubTable(n);return r.supports&&!1!==r.supports(e)}))}supportsVariation(e){return this.encodingRecords.some(((t,n)=>{const r=this.getSubTable(n);return r.supportsVariation&&!1!==r.supportsVariation(e)}))}}});var Hp=Object.freeze({__proto__:null,head:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.load({majorVersion:n.uint16,minorVersion:n.uint16,fontRevision:n.fixed,checkSumAdjustment:n.uint32,magicNumber:n.uint32,flags:n.flags(16),unitsPerEm:n.uint16,created:n.longdatetime,modified:n.longdatetime,xMin:n.int16,yMin:n.int16,xMax:n.int16,yMax:n.int16,macStyle:n.flags(16),lowestRecPPEM:n.uint16,fontDirectionHint:n.uint16,indexToLocFormat:n.uint16,glyphDataFormat:n.uint16})}}});var Gp=Object.freeze({__proto__:null,hhea:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.ascender=n.fword,this.descender=n.fword,this.lineGap=n.fword,this.advanceWidthMax=n.ufword,this.minLeftSideBearing=n.fword,this.minRightSideBearing=n.fword,this.xMaxExtent=n.fword,this.caretSlopeRise=n.int16,this.caretSlopeRun=n.int16,this.caretOffset=n.int16,n.int16,n.int16,n.int16,n.int16,this.metricDataFormat=n.int16,this.numberOfHMetrics=n.uint16,n.verifyLength()}}});class Up{constructor(e,t){this.advanceWidth=e,this.lsb=t}}var Wp=Object.freeze({__proto__:null,hmtx:class extends ep{constructor(e,t,n){const{p:r}=super(e,t),a=n.hhea.numberOfHMetrics,s=n.maxp.numGlyphs,i=r.currentPosition;if(tp(this,"hMetrics",(()=>(r.currentPosition=i,[...new Array(a)].map((e=>new Up(r.uint16,r.int16)))))),a<s){const e=i+4*a;tp(this,"leftSideBearings",(()=>(r.currentPosition=e,[...new Array(s-a)].map((e=>r.int16)))))}}}});var jp=Object.freeze({__proto__:null,maxp:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.version=n.legacyFixed,this.numGlyphs=n.uint16,1===this.version&&(this.maxPoints=n.uint16,this.maxContours=n.uint16,this.maxCompositePoints=n.uint16,this.maxCompositeContours=n.uint16,this.maxZones=n.uint16,this.maxTwilightPoints=n.uint16,this.maxStorage=n.uint16,this.maxFunctionDefs=n.uint16,this.maxInstructionDefs=n.uint16,this.maxStackElements=n.uint16,this.maxSizeOfInstructions=n.uint16,this.maxComponentElements=n.uint16,this.maxComponentDepth=n.uint16),n.verifyLength()}}});class Zp{constructor(e,t){this.length=e,this.offset=t}}class qp{constructor(e,t){this.platformID=e.uint16,this.encodingID=e.uint16,this.languageID=e.uint16,this.nameID=e.uint16,this.length=e.uint16,this.offset=e.Offset16,tp(this,"string",(()=>(e.currentPosition=t.stringStart+this.offset,function(e,t){const{platformID:n,length:r}=t;if(0===r)return"";if(0===n||3===n){const t=[];for(let n=0,a=r/2;n<a;n++)t[n]=String.fromCharCode(e.uint16);return t.join("")}const a=e.readBytes(r),s=[];return a.forEach((function(e,t){s[t]=String.fromCharCode(e)})),s.join("")}(e,this))))}}var Yp=Object.freeze({__proto__:null,name:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.format=n.uint16,this.count=n.uint16,this.stringOffset=n.Offset16,this.nameRecords=[...new Array(this.count)].map((e=>new qp(n,this))),1===this.format&&(this.langTagCount=n.uint16,this.langTagRecords=[...new Array(this.langTagCount)].map((e=>new Zp(n.uint16,n.Offset16)))),this.stringStart=this.tableStart+this.stringOffset}get(e){let t=this.nameRecords.find((t=>t.nameID===e));if(t)return t.string}}});var Kp=Object.freeze({__proto__:null,OS2:class extends ep{constructor(e,t){const{p:n}=super(e,t);return this.version=n.uint16,this.xAvgCharWidth=n.int16,this.usWeightClass=n.uint16,this.usWidthClass=n.uint16,this.fsType=n.uint16,this.ySubscriptXSize=n.int16,this.ySubscriptYSize=n.int16,this.ySubscriptXOffset=n.int16,this.ySubscriptYOffset=n.int16,this.ySuperscriptXSize=n.int16,this.ySuperscriptYSize=n.int16,this.ySuperscriptXOffset=n.int16,this.ySuperscriptYOffset=n.int16,this.yStrikeoutSize=n.int16,this.yStrikeoutPosition=n.int16,this.sFamilyClass=n.int16,this.panose=[...new Array(10)].map((e=>n.uint8)),this.ulUnicodeRange1=n.flags(32),this.ulUnicodeRange2=n.flags(32),this.ulUnicodeRange3=n.flags(32),this.ulUnicodeRange4=n.flags(32),this.achVendID=n.tag,this.fsSelection=n.uint16,this.usFirstCharIndex=n.uint16,this.usLastCharIndex=n.uint16,this.sTypoAscender=n.int16,this.sTypoDescender=n.int16,this.sTypoLineGap=n.int16,this.usWinAscent=n.uint16,this.usWinDescent=n.uint16,0===this.version?n.verifyLength():(this.ulCodePageRange1=n.flags(32),this.ulCodePageRange2=n.flags(32),1===this.version?n.verifyLength():(this.sxHeight=n.int16,this.sCapHeight=n.int16,this.usDefaultChar=n.uint16,this.usBreakChar=n.uint16,this.usMaxContext=n.uint16,this.version<=4?n.verifyLength():(this.usLowerOpticalPointSize=n.uint16,this.usUpperOpticalPointSize=n.uint16,5===this.version?n.verifyLength():void 0)))}}});const Xp=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];var Jp=Object.freeze({__proto__:null,post:class extends ep{constructor(e,t){const{p:n}=super(e,t);if(this.version=n.legacyFixed,this.italicAngle=n.fixed,this.underlinePosition=n.fword,this.underlineThickness=n.fword,this.isFixedPitch=n.uint32,this.minMemType42=n.uint32,this.maxMemType42=n.uint32,this.minMemType1=n.uint32,this.maxMemType1=n.uint32,1===this.version||3===this.version)return n.verifyLength();if(this.numGlyphs=n.uint16,2===this.version){this.glyphNameIndex=[...new Array(this.numGlyphs)].map((e=>n.uint16)),this.namesOffset=n.currentPosition,this.glyphNameOffsets=[1];for(let e=0;e<this.numGlyphs;e++){if(this.glyphNameIndex[e]<Xp.length){this.glyphNameOffsets.push(this.glyphNameOffsets[e]);continue}let t=n.int8;n.skip(t),this.glyphNameOffsets.push(this.glyphNameOffsets[e]+t+1)}}2.5===this.version&&(this.offset=[...new Array(this.numGlyphs)].map((e=>n.int8)))}getGlyphName(e){if(2!==this.version)return console.warn(`post table version ${this.version} does not support glyph name lookups`),"";let t=this.glyphNameIndex[e];if(t<258)return Xp[t];let n=this.glyphNameOffsets[e],r=this.glyphNameOffsets[e+1]-n-1;if(0===r)return".notdef.";this.parser.currentPosition=this.namesOffset+n;return this.parser.readBytes(r,this.namesOffset+n,8,!0).map((e=>String.fromCharCode(e))).join("")}}});class Qp extends ep{constructor(e,t){const{p:n}=super(e,t,"AxisTable");this.baseTagListOffset=n.Offset16,this.baseScriptListOffset=n.Offset16,tp(this,"baseTagList",(()=>new $p({offset:e.offset+this.baseTagListOffset},t))),tp(this,"baseScriptList",(()=>new eh({offset:e.offset+this.baseScriptListOffset},t)))}}class $p extends ep{constructor(e,t){const{p:n}=super(e,t,"BaseTagListTable");this.baseTagCount=n.uint16,this.baselineTags=[...new Array(this.baseTagCount)].map((e=>n.tag))}}class eh extends ep{constructor(e,t){const{p:n}=super(e,t,"BaseScriptListTable");this.baseScriptCount=n.uint16;const r=n.currentPosition;tp(this,"baseScriptRecords",(()=>(n.currentPosition=r,[...new Array(this.baseScriptCount)].map((e=>new th(this.start,n))))))}}class th{constructor(e,t){this.baseScriptTag=t.tag,this.baseScriptOffset=t.Offset16,tp(this,"baseScriptTable",(()=>(t.currentPosition=e+this.baseScriptOffset,new nh(t))))}}class nh{constructor(e){this.start=e.currentPosition,this.baseValuesOffset=e.Offset16,this.defaultMinMaxOffset=e.Offset16,this.baseLangSysCount=e.uint16,this.baseLangSysRecords=[...new Array(this.baseLangSysCount)].map((t=>new rh(this.start,e))),tp(this,"baseValues",(()=>(e.currentPosition=this.start+this.baseValuesOffset,new ah(e)))),tp(this,"defaultMinMax",(()=>(e.currentPosition=this.start+this.defaultMinMaxOffset,new sh(e))))}}class rh{constructor(e,t){this.baseLangSysTag=t.tag,this.minMaxOffset=t.Offset16,tp(this,"minMax",(()=>(t.currentPosition=e+this.minMaxOffset,new sh(t))))}}class ah{constructor(e){this.parser=e,this.start=e.currentPosition,this.defaultBaselineIndex=e.uint16,this.baseCoordCount=e.uint16,this.baseCoords=[...new Array(this.baseCoordCount)].map((t=>e.Offset16))}getTable(e){return this.parser.currentPosition=this.start+this.baseCoords[e],new oh(this.parser)}}class sh{constructor(e){this.minCoord=e.Offset16,this.maxCoord=e.Offset16,this.featMinMaxCount=e.uint16;const t=e.currentPosition;tp(this,"featMinMaxRecords",(()=>(e.currentPosition=t,[...new Array(this.featMinMaxCount)].map((t=>new ih(e))))))}}class ih{constructor(e){this.featureTableTag=e.tag,this.minCoord=e.Offset16,this.maxCoord=e.Offset16}}class oh{constructor(e){this.baseCoordFormat=e.uint16,this.coordinate=e.int16,2===this.baseCoordFormat&&(this.referenceGlyph=e.uint16,this.baseCoordPoint=e.uint16),3===this.baseCoordFormat&&(this.deviceTable=e.Offset16)}}var lh=Object.freeze({__proto__:null,BASE:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.horizAxisOffset=n.Offset16,this.vertAxisOffset=n.Offset16,tp(this,"horizAxis",(()=>new Qp({offset:e.offset+this.horizAxisOffset},t))),tp(this,"vertAxis",(()=>new Qp({offset:e.offset+this.vertAxisOffset},t))),1===this.majorVersion&&1===this.minorVersion&&(this.itemVarStoreOffset=n.Offset32,tp(this,"itemVarStore",(()=>new Qp({offset:e.offset+this.itemVarStoreOffset},t))))}}});class ch{constructor(e){this.classFormat=e.uint16,1===this.classFormat&&(this.startGlyphID=e.uint16,this.glyphCount=e.uint16,this.classValueArray=[...new Array(this.glyphCount)].map((t=>e.uint16))),2===this.classFormat&&(this.classRangeCount=e.uint16,this.classRangeRecords=[...new Array(this.classRangeCount)].map((t=>new uh(e))))}}class uh{constructor(e){this.startGlyphID=e.uint16,this.endGlyphID=e.uint16,this.class=e.uint16}}class dh extends $m{constructor(e){super(e),this.coverageFormat=e.uint16,1===this.coverageFormat&&(this.glyphCount=e.uint16,this.glyphArray=[...new Array(this.glyphCount)].map((t=>e.uint16))),2===this.coverageFormat&&(this.rangeCount=e.uint16,this.rangeRecords=[...new Array(this.rangeCount)].map((t=>new mh(e))))}}class mh{constructor(e){this.startGlyphID=e.uint16,this.endGlyphID=e.uint16,this.startCoverageIndex=e.uint16}}class ph{constructor(e,t){this.table=e,this.parser=t,this.start=t.currentPosition,this.format=t.uint16,this.variationRegionListOffset=t.Offset32,this.itemVariationDataCount=t.uint16,this.itemVariationDataOffsets=[...new Array(this.itemVariationDataCount)].map((e=>t.Offset32))}}class hh extends $m{constructor(e){super(e),this.coverageOffset=e.Offset16,this.glyphCount=e.uint16,this.attachPointOffsets=[...new Array(this.glyphCount)].map((t=>e.Offset16))}getPoint(e){return this.parser.currentPosition=this.start+this.attachPointOffsets[e],new fh(this.parser)}}class fh{constructor(e){this.pointCount=e.uint16,this.pointIndices=[...new Array(this.pointCount)].map((t=>e.uint16))}}class gh extends $m{constructor(e){super(e),this.coverageOffset=e.Offset16,tp(this,"coverage",(()=>(e.currentPosition=this.start+this.coverageOffset,new dh(e)))),this.ligGlyphCount=e.uint16,this.ligGlyphOffsets=[...new Array(this.ligGlyphCount)].map((t=>e.Offset16))}getLigGlyph(e){return this.parser.currentPosition=this.start+this.ligGlyphOffsets[e],new yh(this.parser)}}class yh extends $m{constructor(e){super(e),this.caretCount=e.uint16,this.caretValueOffsets=[...new Array(this.caretCount)].map((t=>e.Offset16))}getCaretValue(e){return this.parser.currentPosition=this.start+this.caretValueOffsets[e],new vh(this.parser)}}class vh{constructor(e){this.caretValueFormat=e.uint16,1===this.caretValueFormat&&(this.coordinate=e.int16),2===this.caretValueFormat&&(this.caretValuePointIndex=e.uint16),3===this.caretValueFormat&&(this.coordinate=e.int16,this.deviceOffset=e.Offset16)}}class _h extends $m{constructor(e){super(e),this.markGlyphSetTableFormat=e.uint16,this.markGlyphSetCount=e.uint16,this.coverageOffsets=[...new Array(this.markGlyphSetCount)].map((t=>e.Offset32))}getMarkGlyphSet(e){return this.parser.currentPosition=this.start+this.coverageOffsets[e],new dh(this.parser)}}var bh=Object.freeze({__proto__:null,GDEF:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.glyphClassDefOffset=n.Offset16,tp(this,"glyphClassDefs",(()=>{if(0!==this.glyphClassDefOffset)return n.currentPosition=this.tableStart+this.glyphClassDefOffset,new ch(n)})),this.attachListOffset=n.Offset16,tp(this,"attachList",(()=>{if(0!==this.attachListOffset)return n.currentPosition=this.tableStart+this.attachListOffset,new hh(n)})),this.ligCaretListOffset=n.Offset16,tp(this,"ligCaretList",(()=>{if(0!==this.ligCaretListOffset)return n.currentPosition=this.tableStart+this.ligCaretListOffset,new gh(n)})),this.markAttachClassDefOffset=n.Offset16,tp(this,"markAttachClassDef",(()=>{if(0!==this.markAttachClassDefOffset)return n.currentPosition=this.tableStart+this.markAttachClassDefOffset,new ch(n)})),this.minorVersion>=2&&(this.markGlyphSetsDefOffset=n.Offset16,tp(this,"markGlyphSetsDef",(()=>{if(0!==this.markGlyphSetsDefOffset)return n.currentPosition=this.tableStart+this.markGlyphSetsDefOffset,new _h(n)}))),3===this.minorVersion&&(this.itemVarStoreOffset=n.Offset32,tp(this,"itemVarStore",(()=>{if(0!==this.itemVarStoreOffset)return n.currentPosition=this.tableStart+this.itemVarStoreOffset,new ph(n)})))}}});class Eh extends $m{static EMPTY={scriptCount:0,scriptRecords:[]};constructor(e){super(e),this.scriptCount=e.uint16,this.scriptRecords=[...new Array(this.scriptCount)].map((t=>new wh(e)))}}class wh{constructor(e){this.scriptTag=e.tag,this.scriptOffset=e.Offset16}}class Sh extends $m{constructor(e){super(e),this.defaultLangSys=e.Offset16,this.langSysCount=e.uint16,this.langSysRecords=[...new Array(this.langSysCount)].map((t=>new xh(e)))}}class xh{constructor(e){this.langSysTag=e.tag,this.langSysOffset=e.Offset16}}class Ch{constructor(e){this.lookupOrder=e.Offset16,this.requiredFeatureIndex=e.uint16,this.featureIndexCount=e.uint16,this.featureIndices=[...new Array(this.featureIndexCount)].map((t=>e.uint16))}}class kh extends $m{static EMPTY={featureCount:0,featureRecords:[]};constructor(e){super(e),this.featureCount=e.uint16,this.featureRecords=[...new Array(this.featureCount)].map((t=>new Th(e)))}}class Th{constructor(e){this.featureTag=e.tag,this.featureOffset=e.Offset16}}class Ph extends $m{constructor(e){super(e),this.featureParams=e.Offset16,this.lookupIndexCount=e.uint16,this.lookupListIndices=[...new Array(this.lookupIndexCount)].map((t=>e.uint16))}getFeatureParams(){if(this.featureParams>0){const e=this.parser;e.currentPosition=this.start+this.featureParams;const t=this.featureTag;if("size"===t)return new Mh(e);if(t.startsWith("cc"))return new Ih(e);if(t.startsWith("ss"))return new Ah(e)}}}class Ih{constructor(e){this.format=e.uint16,this.featUiLabelNameId=e.uint16,this.featUiTooltipTextNameId=e.uint16,this.sampleTextNameId=e.uint16,this.numNamedParameters=e.uint16,this.firstParamUiLabelNameId=e.uint16,this.charCount=e.uint16,this.character=[...new Array(this.charCount)].map((t=>e.uint24))}}class Mh{constructor(e){this.designSize=e.uint16,this.subfamilyIdentifier=e.uint16,this.subfamilyNameID=e.uint16,this.smallEnd=e.uint16,this.largeEnd=e.uint16}}class Ah{constructor(e){this.version=e.uint16,this.UINameID=e.uint16}}function Oh(e){e.parser.currentPosition-=2,delete e.coverageOffset,delete e.getCoverageTable}class Nh extends $m{constructor(e){super(e),this.substFormat=e.uint16,this.coverageOffset=e.Offset16}getCoverageTable(){let e=this.parser;return e.currentPosition=this.start+this.coverageOffset,new dh(e)}}class Fh{constructor(e){this.glyphSequenceIndex=e.uint16,this.lookupListIndex=e.uint16}}class Rh extends Nh{constructor(e){super(e),this.deltaGlyphID=e.int16}}class Dh extends Nh{constructor(e){super(e),this.sequenceCount=e.uint16,this.sequenceOffsets=[...new Array(this.sequenceCount)].map((t=>e.Offset16))}getSequence(e){let t=this.parser;return t.currentPosition=this.start+this.sequenceOffsets[e],new Vh(t)}}class Vh{constructor(e){this.glyphCount=e.uint16,this.substituteGlyphIDs=[...new Array(this.glyphCount)].map((t=>e.uint16))}}class Lh extends Nh{constructor(e){super(e),this.alternateSetCount=e.uint16,this.alternateSetOffsets=[...new Array(this.alternateSetCount)].map((t=>e.Offset16))}getAlternateSet(e){let t=this.parser;return t.currentPosition=this.start+this.alternateSetOffsets[e],new Bh(t)}}class Bh{constructor(e){this.glyphCount=e.uint16,this.alternateGlyphIDs=[...new Array(this.glyphCount)].map((t=>e.uint16))}}class zh extends Nh{constructor(e){super(e),this.ligatureSetCount=e.uint16,this.ligatureSetOffsets=[...new Array(this.ligatureSetCount)].map((t=>e.Offset16))}getLigatureSet(e){let t=this.parser;return t.currentPosition=this.start+this.ligatureSetOffsets[e],new Hh(t)}}class Hh extends $m{constructor(e){super(e),this.ligatureCount=e.uint16,this.ligatureOffsets=[...new Array(this.ligatureCount)].map((t=>e.Offset16))}getLigature(e){let t=this.parser;return t.currentPosition=this.start+this.ligatureOffsets[e],new Gh(t)}}class Gh{constructor(e){this.ligatureGlyph=e.uint16,this.componentCount=e.uint16,this.componentGlyphIDs=[...new Array(this.componentCount-1)].map((t=>e.uint16))}}class Uh extends Nh{constructor(e){super(e),1===this.substFormat&&(this.subRuleSetCount=e.uint16,this.subRuleSetOffsets=[...new Array(this.subRuleSetCount)].map((t=>e.Offset16))),2===this.substFormat&&(this.classDefOffset=e.Offset16,this.subClassSetCount=e.uint16,this.subClassSetOffsets=[...new Array(this.subClassSetCount)].map((t=>e.Offset16))),3===this.substFormat&&(Oh(this),this.glyphCount=e.uint16,this.substitutionCount=e.uint16,this.coverageOffsets=[...new Array(this.glyphCount)].map((t=>e.Offset16)),this.substLookupRecords=[...new Array(this.substitutionCount)].map((t=>new Fh(e))))}getSubRuleSet(e){if(1!==this.substFormat)throw new Error(`lookup type 5.${this.substFormat} has no subrule sets.`);let t=this.parser;return t.currentPosition=this.start+this.subRuleSetOffsets[e],new Wh(t)}getSubClassSet(e){if(2!==this.substFormat)throw new Error(`lookup type 5.${this.substFormat} has no subclass sets.`);let t=this.parser;return t.currentPosition=this.start+this.subClassSetOffsets[e],new Zh(t)}getCoverageTable(e){if(3!==this.substFormat&&!e)return super.getCoverageTable();if(!e)throw new Error(`lookup type 5.${this.substFormat} requires an coverage table index.`);let t=this.parser;return t.currentPosition=this.start+this.coverageOffsets[e],new dh(t)}}class Wh extends $m{constructor(e){super(e),this.subRuleCount=e.uint16,this.subRuleOffsets=[...new Array(this.subRuleCount)].map((t=>e.Offset16))}getSubRule(e){let t=this.parser;return t.currentPosition=this.start+this.subRuleOffsets[e],new jh(t)}}class jh{constructor(e){this.glyphCount=e.uint16,this.substitutionCount=e.uint16,this.inputSequence=[...new Array(this.glyphCount-1)].map((t=>e.uint16)),this.substLookupRecords=[...new Array(this.substitutionCount)].map((t=>new Fh(e)))}}class Zh extends $m{constructor(e){super(e),this.subClassRuleCount=e.uint16,this.subClassRuleOffsets=[...new Array(this.subClassRuleCount)].map((t=>e.Offset16))}getSubClass(e){let t=this.parser;return t.currentPosition=this.start+this.subClassRuleOffsets[e],new qh(t)}}class qh extends jh{constructor(e){super(e)}}class Yh extends Nh{constructor(e){super(e),1===this.substFormat&&(this.chainSubRuleSetCount=e.uint16,this.chainSubRuleSetOffsets=[...new Array(this.chainSubRuleSetCount)].map((t=>e.Offset16))),2===this.substFormat&&(this.backtrackClassDefOffset=e.Offset16,this.inputClassDefOffset=e.Offset16,this.lookaheadClassDefOffset=e.Offset16,this.chainSubClassSetCount=e.uint16,this.chainSubClassSetOffsets=[...new Array(this.chainSubClassSetCount)].map((t=>e.Offset16))),3===this.substFormat&&(Oh(this),this.backtrackGlyphCount=e.uint16,this.backtrackCoverageOffsets=[...new Array(this.backtrackGlyphCount)].map((t=>e.Offset16)),this.inputGlyphCount=e.uint16,this.inputCoverageOffsets=[...new Array(this.inputGlyphCount)].map((t=>e.Offset16)),this.lookaheadGlyphCount=e.uint16,this.lookaheadCoverageOffsets=[...new Array(this.lookaheadGlyphCount)].map((t=>e.Offset16)),this.seqLookupCount=e.uint16,this.seqLookupRecords=[...new Array(this.substitutionCount)].map((t=>new $h(e))))}getChainSubRuleSet(e){if(1!==this.substFormat)throw new Error(`lookup type 6.${this.substFormat} has no chainsubrule sets.`);let t=this.parser;return t.currentPosition=this.start+this.chainSubRuleSetOffsets[e],new Kh(t)}getChainSubClassSet(e){if(2!==this.substFormat)throw new Error(`lookup type 6.${this.substFormat} has no chainsubclass sets.`);let t=this.parser;return t.currentPosition=this.start+this.chainSubClassSetOffsets[e],new Jh(t)}getCoverageFromOffset(e){if(3!==this.substFormat)throw new Error(`lookup type 6.${this.substFormat} does not use contextual coverage offsets.`);let t=this.parser;return t.currentPosition=this.start+e,new dh(t)}}class Kh extends $m{constructor(e){super(e),this.chainSubRuleCount=e.uint16,this.chainSubRuleOffsets=[...new Array(this.chainSubRuleCount)].map((t=>e.Offset16))}getSubRule(e){let t=this.parser;return t.currentPosition=this.start+this.chainSubRuleOffsets[e],new Xh(t)}}class Xh{constructor(e){this.backtrackGlyphCount=e.uint16,this.backtrackSequence=[...new Array(this.backtrackGlyphCount)].map((t=>e.uint16)),this.inputGlyphCount=e.uint16,this.inputSequence=[...new Array(this.inputGlyphCount-1)].map((t=>e.uint16)),this.lookaheadGlyphCount=e.uint16,this.lookAheadSequence=[...new Array(this.lookAheadGlyphCount)].map((t=>e.uint16)),this.substitutionCount=e.uint16,this.substLookupRecords=[...new Array(this.SubstCount)].map((t=>new Fh(e)))}}class Jh extends $m{constructor(e){super(e),this.chainSubClassRuleCount=e.uint16,this.chainSubClassRuleOffsets=[...new Array(this.chainSubClassRuleCount)].map((t=>e.Offset16))}getSubClass(e){let t=this.parser;return t.currentPosition=this.start+this.chainSubRuleOffsets[e],new Qh(t)}}class Qh{constructor(e){this.backtrackGlyphCount=e.uint16,this.backtrackSequence=[...new Array(this.backtrackGlyphCount)].map((t=>e.uint16)),this.inputGlyphCount=e.uint16,this.inputSequence=[...new Array(this.inputGlyphCount-1)].map((t=>e.uint16)),this.lookaheadGlyphCount=e.uint16,this.lookAheadSequence=[...new Array(this.lookAheadGlyphCount)].map((t=>e.uint16)),this.substitutionCount=e.uint16,this.substLookupRecords=[...new Array(this.substitutionCount)].map((t=>new $h(e)))}}class $h extends $m{constructor(e){super(e),this.sequenceIndex=e.uint16,this.lookupListIndex=e.uint16}}class ef extends $m{constructor(e){super(e),this.substFormat=e.uint16,this.extensionLookupType=e.uint16,this.extensionOffset=e.Offset32}}class tf extends Nh{constructor(e){super(e),this.backtrackGlyphCount=e.uint16,this.backtrackCoverageOffsets=[...new Array(this.backtrackGlyphCount)].map((t=>e.Offset16)),this.lookaheadGlyphCount=e.uint16,this.lookaheadCoverageOffsets=[new Array(this.lookaheadGlyphCount)].map((t=>e.Offset16)),this.glyphCount=e.uint16,this.substituteGlyphIDs=[...new Array(this.glyphCount)].map((t=>e.uint16))}}var nf={buildSubtable:function(e,t){const n=new[void 0,Rh,Dh,Lh,zh,Uh,Yh,ef,tf][e](t);return n.type=e,n}};class rf extends $m{constructor(e){super(e)}}class af extends rf{constructor(e){super(e),console.log("lookup type 1")}}class sf extends rf{constructor(e){super(e),console.log("lookup type 2")}}class of extends rf{constructor(e){super(e),console.log("lookup type 3")}}class lf extends rf{constructor(e){super(e),console.log("lookup type 4")}}class cf extends rf{constructor(e){super(e),console.log("lookup type 5")}}class uf extends rf{constructor(e){super(e),console.log("lookup type 6")}}class df extends rf{constructor(e){super(e),console.log("lookup type 7")}}class mf extends rf{constructor(e){super(e),console.log("lookup type 8")}}class pf extends rf{constructor(e){super(e),console.log("lookup type 9")}}var hf={buildSubtable:function(e,t){const n=new[void 0,af,sf,of,lf,cf,uf,df,mf,pf][e](t);return n.type=e,n}};class ff extends $m{static EMPTY={lookupCount:0,lookups:[]};constructor(e){super(e),this.lookupCount=e.uint16,this.lookups=[...new Array(this.lookupCount)].map((t=>e.Offset16))}}class gf extends $m{constructor(e,t){super(e),this.ctType=t,this.lookupType=e.uint16,this.lookupFlag=e.uint16,this.subTableCount=e.uint16,this.subtableOffsets=[...new Array(this.subTableCount)].map((t=>e.Offset16)),this.markFilteringSet=e.uint16}get rightToLeft(){return!0&this.lookupFlag}get ignoreBaseGlyphs(){return!0&this.lookupFlag}get ignoreLigatures(){return!0&this.lookupFlag}get ignoreMarks(){return!0&this.lookupFlag}get useMarkFilteringSet(){return!0&this.lookupFlag}get markAttachmentType(){return!0&this.lookupFlag}getSubTable(e){const t="GSUB"===this.ctType?nf:hf;return this.parser.currentPosition=this.start+this.subtableOffsets[e],t.buildSubtable(this.lookupType,this.parser)}}class yf extends ep{constructor(e,t,n){const{p:r,tableStart:a}=super(e,t,n);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.scriptListOffset=r.Offset16,this.featureListOffset=r.Offset16,this.lookupListOffset=r.Offset16,1===this.majorVersion&&1===this.minorVersion&&(this.featureVariationsOffset=r.Offset32);const s=!(this.scriptListOffset||this.featureListOffset||this.lookupListOffset);tp(this,"scriptList",(()=>s?Eh.EMPTY:(r.currentPosition=a+this.scriptListOffset,new Eh(r)))),tp(this,"featureList",(()=>s?kh.EMPTY:(r.currentPosition=a+this.featureListOffset,new kh(r)))),tp(this,"lookupList",(()=>s?ff.EMPTY:(r.currentPosition=a+this.lookupListOffset,new ff(r)))),this.featureVariationsOffset&&tp(this,"featureVariations",(()=>s?FeatureVariations.EMPTY:(r.currentPosition=a+this.featureVariationsOffset,new FeatureVariations(r))))}getSupportedScripts(){return this.scriptList.scriptRecords.map((e=>e.scriptTag))}getScriptTable(e){let t=this.scriptList.scriptRecords.find((t=>t.scriptTag===e));this.parser.currentPosition=this.scriptList.start+t.scriptOffset;let n=new Sh(this.parser);return n.scriptTag=e,n}ensureScriptTable(e){return"string"==typeof e?this.getScriptTable(e):e}getSupportedLangSys(e){const t=0!==(e=this.ensureScriptTable(e)).defaultLangSys,n=e.langSysRecords.map((e=>e.langSysTag));return t&&n.unshift("dflt"),n}getDefaultLangSysTable(e){let t=(e=this.ensureScriptTable(e)).defaultLangSys;if(0!==t){this.parser.currentPosition=e.start+t;let n=new Ch(this.parser);return n.langSysTag="",n.defaultForScript=e.scriptTag,n}}getLangSysTable(e,t="dflt"){if("dflt"===t)return this.getDefaultLangSysTable(e);let n=(e=this.ensureScriptTable(e)).langSysRecords.find((e=>e.langSysTag===t));this.parser.currentPosition=e.start+n.langSysOffset;let r=new Ch(this.parser);return r.langSysTag=t,r}getFeatures(e){return e.featureIndices.map((e=>this.getFeature(e)))}getFeature(e){let t;if(t=parseInt(e)==e?this.featureList.featureRecords[e]:this.featureList.featureRecords.find((t=>t.featureTag===e)),!t)return;this.parser.currentPosition=this.featureList.start+t.featureOffset;let n=new Ph(this.parser);return n.featureTag=t.featureTag,n}getLookups(e){return e.lookupListIndices.map((e=>this.getLookup(e)))}getLookup(e,t){let n=this.lookupList.lookups[e];return this.parser.currentPosition=this.lookupList.start+n,new gf(this.parser,t)}}var vf=Object.freeze({__proto__:null,GSUB:class extends yf{constructor(e,t){super(e,t,"GSUB")}getLookup(e){return super.getLookup(e,"GSUB")}}});var _f=Object.freeze({__proto__:null,GPOS:class extends yf{constructor(e,t){super(e,t,"GPOS")}getLookup(e){return super.getLookup(e,"GPOS")}}});class bf extends $m{constructor(e){super(e),this.numEntries=e.uint16,this.documentRecords=[...new Array(this.numEntries)].map((t=>new Ef(e)))}getDocument(e){let t=this.documentRecords[e];if(!t)return"";let n=this.start+t.svgDocOffset;return this.parser.currentPosition=n,this.parser.readBytes(t.svgDocLength)}getDocumentForGlyph(e){let t=this.documentRecords.findIndex((t=>t.startGlyphID<=e&&e<=t.endGlyphID));return-1===t?"":this.getDocument(t)}}class Ef{constructor(e){this.startGlyphID=e.uint16,this.endGlyphID=e.uint16,this.svgDocOffset=e.Offset32,this.svgDocLength=e.uint32}}var wf=Object.freeze({__proto__:null,SVG:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.offsetToSVGDocumentList=n.Offset32,n.currentPosition=this.tableStart+this.offsetToSVGDocumentList,this.documentList=new bf(n)}}});class Sf{constructor(e){this.tag=e.tag,this.minValue=e.fixed,this.defaultValue=e.fixed,this.maxValue=e.fixed,this.flags=e.flags(16),this.axisNameID=e.uint16}}class xf{constructor(e,t,n){let r=e.currentPosition;this.subfamilyNameID=e.uint16,e.uint16,this.coordinates=[...new Array(t)].map((t=>e.fixed)),e.currentPosition-r<n&&(this.postScriptNameID=e.uint16)}}var Cf=Object.freeze({__proto__:null,fvar:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.axesArrayOffset=n.Offset16,n.uint16,this.axisCount=n.uint16,this.axisSize=n.uint16,this.instanceCount=n.uint16,this.instanceSize=n.uint16;const r=this.tableStart+this.axesArrayOffset;tp(this,"axes",(()=>(n.currentPosition=r,[...new Array(this.axisCount)].map((e=>new Sf(n))))));const a=r+this.axisCount*this.axisSize;tp(this,"instances",(()=>{let e=[];for(let t=0;t<this.instanceCount;t++)n.currentPosition=a+t*this.instanceSize,e.push(new xf(n,this.axisCount,this.instanceSize));return e}))}getSupportedAxes(){return this.axes.map((e=>e.tag))}getAxis(e){return this.axes.find((t=>t.tag===e))}}});var kf=Object.freeze({__proto__:null,cvt:class extends ep{constructor(e,t){const{p:n}=super(e,t),r=e.length/2;tp(this,"items",(()=>[...new Array(r)].map((e=>n.fword))))}}});var Tf=Object.freeze({__proto__:null,fpgm:class extends ep{constructor(e,t){const{p:n}=super(e,t);tp(this,"instructions",(()=>[...new Array(e.length)].map((e=>n.uint8))))}}});class Pf{constructor(e){this.rangeMaxPPEM=e.uint16,this.rangeGaspBehavior=e.uint16}}var If=Object.freeze({__proto__:null,gasp:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.numRanges=n.uint16;tp(this,"gaspRanges",(()=>[...new Array(this.numRanges)].map((e=>new Pf(n)))))}}});var Mf=Object.freeze({__proto__:null,glyf:class extends ep{constructor(e,t){super(e,t)}getGlyphData(e,t){return this.parser.currentPosition=this.tableStart+e,this.parser.readBytes(t)}}});var Af=Object.freeze({__proto__:null,loca:class extends ep{constructor(e,t,n){const{p:r}=super(e,t),a=n.maxp.numGlyphs+1;0===n.head.indexToLocFormat?(this.x2=!0,tp(this,"offsets",(()=>[...new Array(a)].map((e=>r.Offset16))))):tp(this,"offsets",(()=>[...new Array(a)].map((e=>r.Offset32))))}getGlyphDataOffsetAndLength(e){let t=this.offsets[e]*this.x2?2:1;return{offset:t,length:(this.offsets[e+1]*this.x2?2:1)-t}}}});var Of=Object.freeze({__proto__:null,prep:class extends ep{constructor(e,t){const{p:n}=super(e,t);tp(this,"instructions",(()=>[...new Array(e.length)].map((e=>n.uint8))))}}});var Nf=Object.freeze({__proto__:null,CFF:class extends ep{constructor(e,t){const{p:n}=super(e,t);tp(this,"data",(()=>n.readBytes()))}}});var Ff=Object.freeze({__proto__:null,CFF2:class extends ep{constructor(e,t){const{p:n}=super(e,t);tp(this,"data",(()=>n.readBytes()))}}});class Rf{constructor(e){this.glyphIndex=e.uint16,this.vertOriginY=e.int16}}var Df=Object.freeze({__proto__:null,VORG:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.defaultVertOriginY=n.int16,this.numVertOriginYMetrics=n.uint16,tp(this,"vertORiginYMetrics",(()=>[...new Array(this.numVertOriginYMetrics)].map((e=>new Rf(n)))))}}});class Vf{constructor(e){this.indexSubTableArrayOffset=e.Offset32,this.indexTablesSize=e.uint32,this.numberofIndexSubTables=e.uint32,this.colorRef=e.uint32,this.hori=new Bf(e),this.vert=new Bf(e),this.startGlyphIndex=e.uint16,this.endGlyphIndex=e.uint16,this.ppemX=e.uint8,this.ppemY=e.uint8,this.bitDepth=e.uint8,this.flags=e.int8}}class Lf{constructor(e){this.hori=new Bf(e),this.vert=new Bf(e),this.ppemX=e.uint8,this.ppemY=e.uint8,this.substitutePpemX=e.uint8,this.substitutePpemY=e.uint8}}class Bf{constructor(e){this.ascender=e.int8,this.descender=e.int8,this.widthMax=e.uint8,this.caretSlopeNumerator=e.int8,this.caretSlopeDenominator=e.int8,this.caretOffset=e.int8,this.minOriginSB=e.int8,this.minAdvanceSB=e.int8,this.maxBeforeBL=e.int8,this.minAfterBL=e.int8,this.pad1=e.int8,this.pad2=e.int8}}class zf extends ep{constructor(e,t,n){const{p:r}=super(e,t,n);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.numSizes=r.uint32,tp(this,"bitMapSizes",(()=>[...new Array(this.numSizes)].map((e=>new Vf(r)))))}}var Hf=Object.freeze({__proto__:null,EBLC:zf});class Gf extends ep{constructor(e,t,n){const{p:r}=super(e,t,n);this.majorVersion=r.uint16,this.minorVersion=r.uint16}}var Uf=Object.freeze({__proto__:null,EBDT:Gf});var Wf=Object.freeze({__proto__:null,EBSC:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.numSizes=n.uint32,tp(this,"bitmapScales",(()=>[...new Array(this.numSizes)].map((e=>new Lf(n)))))}}});var jf=Object.freeze({__proto__:null,CBLC:class extends zf{constructor(e,t){super(e,t,"CBLC")}}});var Zf=Object.freeze({__proto__:null,CBDT:class extends Gf{constructor(e,t){super(e,t,"CBDT")}}});var qf=Object.freeze({__proto__:null,sbix:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.flags=n.flags(16),this.numStrikes=n.uint32,tp(this,"strikeOffsets",(()=>[...new Array(this.numStrikes)].map((e=>n.Offset32))))}}});class Yf{constructor(e){this.gID=e.uint16,this.firstLayerIndex=e.uint16,this.numLayers=e.uint16}}class Kf{constructor(e){this.gID=e.uint16,this.paletteIndex=e.uint16}}var Xf=Object.freeze({__proto__:null,COLR:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.numBaseGlyphRecords=n.uint16,this.baseGlyphRecordsOffset=n.Offset32,this.layerRecordsOffset=n.Offset32,this.numLayerRecords=n.uint16}getBaseGlyphRecord(e){let t=this.tableStart+this.baseGlyphRecordsOffset;this.parser.currentPosition=t;let n=new Yf(this.parser),r=n.gID,a=this.tableStart+this.layerRecordsOffset-6;this.parser.currentPosition=a;let s=new Yf(this.parser),i=s.gID;if(r===e)return n;if(i===e)return s;for(;t!==a;){let n=t+(a-t)/12;this.parser.currentPosition=n;let r=new Yf(this.parser),s=r.gID;if(s===e)return r;s>e?a=n:s<e&&(t=n)}return!1}getLayers(e){let t=this.getBaseGlyphRecord(e);return this.parser.currentPosition=this.tableStart+this.layerRecordsOffset+4*t.firstLayerIndex,[...new Array(t.numLayers)].map((e=>new Kf(p)))}}});class Jf{constructor(e){this.blue=e.uint8,this.green=e.uint8,this.red=e.uint8,this.alpha=e.uint8}}class Qf{constructor(e,t){this.paletteTypes=[...new Array(t)].map((t=>e.uint32))}}class $f{constructor(e,t){this.paletteLabels=[...new Array(t)].map((t=>e.uint16))}}class eg{constructor(e,t){this.paletteEntryLabels=[...new Array(t)].map((t=>e.uint16))}}var tg=Object.freeze({__proto__:null,CPAL:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.numPaletteEntries=n.uint16;const r=this.numPalettes=n.uint16;this.numColorRecords=n.uint16,this.offsetFirstColorRecord=n.Offset32,this.colorRecordIndices=[...new Array(this.numPalettes)].map((e=>n.uint16)),tp(this,"colorRecords",(()=>(n.currentPosition=this.tableStart+this.offsetFirstColorRecord,[...new Array(this.numColorRecords)].map((e=>new Jf(n)))))),1===this.version&&(this.offsetPaletteTypeArray=n.Offset32,this.offsetPaletteLabelArray=n.Offset32,this.offsetPaletteEntryLabelArray=n.Offset32,tp(this,"paletteTypeArray",(()=>(n.currentPosition=this.tableStart+this.offsetPaletteTypeArray,new Qf(n,r)))),tp(this,"paletteLabelArray",(()=>(n.currentPosition=this.tableStart+this.offsetPaletteLabelArray,new $f(n,r)))),tp(this,"paletteEntryLabelArray",(()=>(n.currentPosition=this.tableStart+this.offsetPaletteEntryLabelArray,new eg(n,r)))))}}});class ng{constructor(e){this.format=e.uint32,this.length=e.uint32,this.offset=e.Offset32}}class rg{constructor(e){e.uint16,e.uint16,this.signatureLength=e.uint32,this.signature=e.readBytes(this.signatureLength)}}var ag=Object.freeze({__proto__:null,DSIG:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint32,this.numSignatures=n.uint16,this.flags=n.uint16,this.signatureRecords=[...new Array(this.numSignatures)].map((e=>new ng(n)))}getData(e){const t=this.signatureRecords[e];return this.parser.currentPosition=this.tableStart+t.offset,new rg(this.parser)}}});class sg{constructor(e,t){this.pixelSize=e.uint8,this.maxWidth=e.uint8,this.widths=e.readBytes(t)}}var ig=Object.freeze({__proto__:null,hdmx:class extends ep{constructor(e,t,n){const{p:r}=super(e,t),a=n.hmtx.numGlyphs;this.version=r.uint16,this.numRecords=r.int16,this.sizeDeviceRecord=r.int32,this.records=[...new Array(numRecords)].map((e=>new sg(r,a)))}}});class og{constructor(e){this.version=e.uint16,this.length=e.uint16,this.coverage=e.flags(8),this.format=e.uint8,0===this.format&&(this.nPairs=e.uint16,this.searchRange=e.uint16,this.entrySelector=e.uint16,this.rangeShift=e.uint16,tp(this,"pairs",(()=>[...new Array(this.nPairs)].map((t=>new lg(e)))))),2===this.format&&console.warn("Kern subtable format 2 is not supported: this parser currently only parses universal table data.")}get horizontal(){return this.coverage[0]}get minimum(){return this.coverage[1]}get crossstream(){return this.coverage[2]}get override(){return this.coverage[3]}}class lg{constructor(e){this.left=e.uint16,this.right=e.uint16,this.value=e.fword}}var cg=Object.freeze({__proto__:null,kern:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.nTables=n.uint16,tp(this,"tables",(()=>{let e=this.tableStart+4;const t=[];for(let r=0;r<this.nTables;r++){n.currentPosition=e;let r=new og(n);t.push(r),e+=r}return t}))}}});var ug=Object.freeze({__proto__:null,LTSH:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.numGlyphs=n.uint16,this.yPels=n.readBytes(this.numGlyphs)}}});var dg=Object.freeze({__proto__:null,MERG:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.mergeClassCount=n.uint16,this.mergeDataOffset=n.Offset16,this.classDefCount=n.uint16,this.offsetToClassDefOffsets=n.Offset16,tp(this,"mergeEntryMatrix",(()=>[...new Array(this.mergeClassCount)].map((e=>n.readBytes(this.mergeClassCount))))),console.warn("Full MERG parsing is currently not supported."),console.warn("If you need this table parsed, please file an issue, or better yet, a PR.")}}});class mg{constructor(e,t){this.tableStart=e,this.parser=t,this.tag=t.tag,this.dataOffset=t.Offset32,this.dataLength=t.uint32}getData(){return this.parser.currentField=this.tableStart+this.dataOffset,this.parser.readBytes(this.dataLength)}}var pg=Object.freeze({__proto__:null,meta:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint32,this.flags=n.uint32,n.uint32,this.dataMapsCount=n.uint32,this.dataMaps=[...new Array(this.dataMapsCount)].map((e=>new mg(this.tableStart,n)))}}});var hg=Object.freeze({__proto__:null,PCLT:class extends ep{constructor(e,t){super(e,t),console.warn("This font uses a PCLT table, which is currently not supported by this parser."),console.warn("If you need this table parsed, please file an issue, or better yet, a PR.")}}});class fg{constructor(e){this.bCharSet=e.uint8,this.xRatio=e.uint8,this.yStartRatio=e.uint8,this.yEndRatio=e.uint8}}class gg{constructor(e){this.recs=e.uint16,this.startsz=e.uint8,this.endsz=e.uint8,this.records=[...new Array(this.recs)].map((t=>new yg(e)))}}class yg{constructor(e){this.yPelHeight=e.uint16,this.yMax=e.int16,this.yMin=e.int16}}var vg=Object.freeze({__proto__:null,VDMX:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.numRecs=n.uint16,this.numRatios=n.uint16,this.ratRanges=[...new Array(this.numRatios)].map((e=>new fg(n))),this.offsets=[...new Array(this.numRatios)].map((e=>n.Offset16)),this.VDMXGroups=[...new Array(this.numRecs)].map((e=>new gg(n)))}}});var _g=Object.freeze({__proto__:null,vhea:class extends ep{constructor(e,t){const{p:n}=super(e,t);this.version=n.fixed,this.ascent=this.vertTypoAscender=n.int16,this.descent=this.vertTypoDescender=n.int16,this.lineGap=this.vertTypoLineGap=n.int16,this.advanceHeightMax=n.int16,this.minTopSideBearing=n.int16,this.minBottomSideBearing=n.int16,this.yMaxExtent=n.int16,this.caretSlopeRise=n.int16,this.caretSlopeRun=n.int16,this.caretOffset=n.int16,this.reserved=n.int16,this.reserved=n.int16,this.reserved=n.int16,this.reserved=n.int16,this.metricDataFormat=n.int16,this.numOfLongVerMetrics=n.uint16,n.verifyLength()}}});class bg{constructor(e,t){this.advanceHeight=e,this.topSideBearing=t}}var Eg=Object.freeze({__proto__:null,vmtx:class extends ep{constructor(e,t,n){super(e,t);const r=n.vhea.numOfLongVerMetrics,a=n.maxp.numGlyphs,s=p.currentPosition;if(lazy(this,"vMetrics",(()=>(p.currentPosition=s,[...new Array(r)].map((e=>new bg(p.uint16,p.int16)))))),r<a){const e=s+4*r;lazy(this,"topSideBearings",(()=>(p.currentPosition=e,[...new Array(a-r)].map((e=>p.int16)))))}}}});const{kebabCase:wg}=Xe(b.privateApis);const{ProgressBar:Sg}=Xe(b.privateApis);const xg=function(){const{installFonts:e,notice:t,setNotice:n}=(0,g.useContext)(Im),[r,a]=(0,g.useState)(!1),s=async e=>{n(null),a(!0);const t=new Set,r=[...e];let s=!1;const l=r.map((async e=>{const n=await async function(e){const t=new Sp("Uploaded Font");try{const n=await o(e);return await t.fromDataBuffer(n,"font"),!0}catch(e){return!1}}(e);if(!n)return s=!0,null;if(t.has(e.name))return null;const r=e.name.split(".").pop().toLowerCase();return cm.includes(r)?(t.add(e.name),e):null})),c=(await Promise.all(l)).filter((e=>null!==e));if(c.length>0)i(c);else{const e=s?(0,E.__)("Sorry, you are not allowed to upload this file type."):(0,E.__)("No fonts found to install.");n({type:"error",message:e}),a(!1)}},i=async e=>{const t=await Promise.all(e.map((async e=>{const t=await c(e);return await bm(t,t.file,"all"),t})));u(t)};async function o(e){return new Promise(((t,n)=>{const r=new window.FileReader;r.readAsArrayBuffer(e),r.onload=()=>t(r.result),r.onerror=n}))}const c=async e=>{const t=await o(e),n=new Sp("Uploaded Font");n.fromDataBuffer(t,e.name);const r=(await new Promise((e=>n.onload=e))).detail.font,{name:a}=r.opentype.tables,s=a.get(16)||a.get(1),i=a.get(2).toLowerCase().includes("italic"),l=r.opentype.tables["OS/2"].usWeightClass||"normal",c=!!r.opentype.tables.fvar&&r.opentype.tables.fvar.axes.find((({tag:e})=>"wght"===e));return{file:e,fontFamily:s,fontStyle:i?"italic":"normal",fontWeight:(c?`${c.minValue} ${c.maxValue}`:null)||l}},u=async t=>{const r=function(e){const t=e.reduce(((e,t)=>(e[t.fontFamily]||(e[t.fontFamily]={name:t.fontFamily,fontFamily:t.fontFamily,slug:wg(t.fontFamily.toLowerCase()),fontFace:[]}),e[t.fontFamily].fontFace.push(t),e)),{});return Object.values(t)}(t);try{await e(r),n({type:"success",message:(0,E.__)("Fonts were installed successfully.")})}catch(e){n({type:"error",message:e.message,errors:e?.installationErrors})}a(!1)};return(0,l.createElement)("div",{className:"font-library-modal__tabpanel-layout"},(0,l.createElement)(b.DropZone,{onFilesDrop:e=>{s(e)}}),(0,l.createElement)(b.__experimentalVStack,{className:"font-library-modal__local-fonts"},t&&(0,l.createElement)(b.Notice,{status:t.type,__unstableHTML:!0,onRemove:()=>n(null)},t.message,t.errors&&(0,l.createElement)("ul",null,t.errors.map(((e,t)=>(0,l.createElement)("li",{key:t},e))))),r&&(0,l.createElement)(b.FlexItem,null,(0,l.createElement)("div",{className:"font-library-modal__upload-area"},(0,l.createElement)(Sg,null))),!r&&(0,l.createElement)(b.FormFileUpload,{accept:cm.map((e=>`.${e}`)).join(","),multiple:!0,onChange:e=>{s(e.target.files)},render:({openFileDialog:e})=>(0,l.createElement)(b.Button,{className:"font-library-modal__upload-area",onClick:e},(0,E.__)("Upload font"))}),(0,l.createElement)(b.__experimentalSpacer,{margin:2}),(0,l.createElement)(b.__experimentalText,{className:"font-library-modal__upload-area__text"},(0,E.__)("Uploaded fonts appear in your library and can be used in your theme. Supported formats: .ttf, .otf, .woff, and .woff2."))))},{Tabs:Cg}=Xe(b.privateApis),kg={id:"installed-fonts",title:(0,E._x)("Library","Font library")},Tg={id:"upload-fonts",title:(0,E.__)("Upload")};const Pg=function({onRequestClose:e,initialTabId:t="installed-fonts"}){const{collections:n,setNotice:r}=(0,g.useContext)(Im),a=(0,m.useSelect)((e=>{const{canUser:t}=e(ye.store);return t("create","font-families")}),[]),s=[kg];return a&&(s.push(Tg),s.push(...(e=>e.map((({slug:t,name:n})=>({id:t,title:1===e.length&&"google-fonts"===t?(0,E.__)("Install Fonts"):n}))))(n||[]))),(0,l.createElement)(b.Modal,{title:(0,E.__)("Fonts"),onRequestClose:e,isFullScreen:!0,className:"font-library-modal"},(0,l.createElement)("div",{className:"font-library-modal__tabs"},(0,l.createElement)(Cg,{initialTabId:t,onSelect:()=>{r(null)}},(0,l.createElement)(Cg.TabList,null,s.map((({id:e,title:t})=>(0,l.createElement)(Cg.Tab,{key:e,tabId:e},t)))),s.map((({id:e})=>{let t;switch(e){case"upload-fonts":t=(0,l.createElement)(xg,null);break;case"installed-fonts":t=(0,l.createElement)(Lm,null);break;default:t=(0,l.createElement)(Wm,{slug:e})}return(0,l.createElement)(Cg.TabPanel,{key:e,tabId:e,focusable:!1},t)})))))};const Ig=function({font:e}){const{handleSetLibraryFontSelected:t,toggleModal:n}=(0,g.useContext)(Im),r=e?.fontFace?.length||1,a=hm(e);return(0,l.createElement)(b.__experimentalItem,{onClick:()=>{t(e),n("installed-fonts")}},(0,l.createElement)(b.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(b.FlexItem,{style:a},e.name),(0,l.createElement)(b.FlexItem,{className:"edit-site-global-styles-screen-typography__font-variants-count"},(0,E.sprintf)((0,E._n)("%d variant","%d variants",r),r))))};function Mg(){const{modalTabOpen:e,toggleModal:t,themeFonts:n,customFonts:r}=(0,g.useContext)(Im),a=0<r.length||0<n.length;return(0,l.createElement)(l.Fragment,null,!!e&&(0,l.createElement)(Pg,{onRequestClose:()=>t(),initialTabId:e}),(0,l.createElement)(b.__experimentalVStack,{spacing:3},(0,l.createElement)(b.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(Fd,{level:3},(0,E.__)("Fonts")),(0,l.createElement)(b.__experimentalHStack,{justify:"flex-end"},(0,l.createElement)(b.Tooltip,{text:(0,E.__)("Manage fonts")},(0,l.createElement)(b.Button,{onClick:()=>t("installed-fonts"),"aria-label":(0,E.__)("Manage fonts"),icon:nm,size:"small"})))),a?(0,l.createElement)(b.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},r.map((e=>(0,l.createElement)(Ig,{key:e.slug,font:e}))),n.map((e=>(0,l.createElement)(Ig,{key:e.slug,font:e})))):(0,l.createElement)(l.Fragment,null,(0,E.__)("No fonts installed."),(0,l.createElement)(b.Button,{className:"edit-site-global-styles-font-families__add-fonts",variant:"secondary",onClick:()=>t("upload-fonts")},(0,E.__)("Add fonts")))))}const Ag=({...e})=>(0,l.createElement)(Mm,null,(0,l.createElement)(Mg,{...e}));const Og=function(){const e=(0,m.useSelect)((e=>e(y.store).getEditorSettings().fontLibraryEnabled),[]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(wd,{title:(0,E.__)("Typography"),description:(0,E.__)("Manage the typography settings for different elements.")}),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-typography"},(0,l.createElement)(b.__experimentalVStack,{spacing:6},e&&(0,l.createElement)(Ag,null),(0,l.createElement)(tm,null))))},{useGlobalStyle:Ng,useGlobalSetting:Fg,useSettingsForBlockElement:Rg,TypographyPanel:Dg}=Xe(fe.privateApis);function Vg({element:e,headingLevel:t}){let n=[];"heading"===e?n=n.concat(["elements",t]):e&&"text"!==e&&(n=n.concat(["elements",e]));const r=n.join("."),[a]=Ng(r,void 0,"user",{shouldDecodeEncode:!1}),[s,i]=Ng(r,void 0,"all",{shouldDecodeEncode:!1}),[o]=Fg(""),c=Rg(o,void 0,"heading"===e?t:e);return(0,l.createElement)(Dg,{inheritedValue:s,value:a,onChange:i,settings:c})}const{useGlobalStyle:Lg}=Xe(fe.privateApis);function Bg({name:e,element:t,headingLevel:n}){let r="";"heading"===t?r=`elements.${n}.`:t&&"text"!==t&&(r=`elements.${t}.`);const[a]=Lg(r+"typography.fontFamily",e),[s]=Lg(r+"color.gradient",e),[i]=Lg(r+"color.background",e),[o]=Lg(r+"color.text",e),[c]=Lg(r+"typography.fontSize",e),[u]=Lg(r+"typography.fontStyle",e),[d]=Lg(r+"typography.fontWeight",e),[m]=Lg(r+"typography.letterSpacing",e),p="link"===t?{textDecoration:"underline"}:{};return(0,l.createElement)("div",{className:"edit-site-typography-preview",style:{fontFamily:null!=a?a:"serif",background:null!=s?s:i,color:o,fontSize:c,fontStyle:u,fontWeight:d,letterSpacing:m,...p}},"Aa")}const zg={text:{description:(0,E.__)("Manage the fonts used on the site."),title:(0,E.__)("Text")},link:{description:(0,E.__)("Manage the fonts and typography used on the links."),title:(0,E.__)("Links")},heading:{description:(0,E.__)("Manage the fonts and typography used on headings."),title:(0,E.__)("Headings")},caption:{description:(0,E.__)("Manage the fonts and typography used on captions."),title:(0,E.__)("Captions")},button:{description:(0,E.__)("Manage the fonts and typography used on buttons."),title:(0,E.__)("Buttons")}};const Hg=function({element:e}){const[t,n]=(0,g.useState)("heading");return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(wd,{title:zg[e].title,description:zg[e].description}),(0,l.createElement)(b.__experimentalSpacer,{marginX:4},(0,l.createElement)(Bg,{element:e,headingLevel:t})),"heading"===e&&(0,l.createElement)(b.__experimentalSpacer,{marginX:4,marginBottom:"1em"},(0,l.createElement)(b.__experimentalToggleGroupControl,{label:(0,E.__)("Select heading level"),hideLabelFromVision:!0,value:t,onChange:n,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0},(0,l.createElement)(b.__experimentalToggleGroupControlOption,{value:"heading",label:(0,E._x)("All","heading levels")}),(0,l.createElement)(b.__experimentalToggleGroupControlOption,{value:"h1",label:(0,E.__)("H1")}),(0,l.createElement)(b.__experimentalToggleGroupControlOption,{value:"h2",label:(0,E.__)("H2")}),(0,l.createElement)(b.__experimentalToggleGroupControlOption,{value:"h3",label:(0,E.__)("H3")}),(0,l.createElement)(b.__experimentalToggleGroupControlOption,{value:"h4",label:(0,E.__)("H4")}),(0,l.createElement)(b.__experimentalToggleGroupControlOption,{value:"h5",label:(0,E.__)("H5")}),(0,l.createElement)(b.__experimentalToggleGroupControlOption,{value:"h6",label:(0,E.__)("H6")}))),(0,l.createElement)(Vg,{element:e,headingLevel:t}))},Gg=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/SVG"},(0,l.createElement)(w.Path,{d:"M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z"}));const Ug=function({className:e,...t}){return(0,l.createElement)(b.Flex,{className:_()("edit-site-global-styles__color-indicator-wrapper",e),...t})},{useGlobalSetting:Wg}=Xe(fe.privateApis),jg=[];const Zg=function({name:e}){const[t]=Wg("color.palette.custom"),[n]=Wg("color.palette.theme"),[r]=Wg("color.palette.default"),[a]=Wg("color.defaultPalette",e),[s]=function(e){const[t,n]=Je("color.palette.theme",e);return window.__experimentalEnableColorRandomizer?[function(){const e=Math.floor(225*Math.random()),r=t.map((t=>{const{color:n}=t,r=We(n).rotate(e).toHex();return{...t,color:r}}));n(r)}]:[]}(),i=(0,g.useMemo)((()=>[...t||jg,...n||jg,...r&&a?r:jg]),[t,n,r,a]),o=e?"/blocks/"+encodeURIComponent(e)+"/colors/palette":"/colors/palette",c=i.length>0?(0,E.sprintf)((0,E._n)("%d color","%d colors",i.length),i.length):(0,E.__)("Add custom colors");return(0,l.createElement)(b.__experimentalVStack,{spacing:3},(0,l.createElement)(Fd,{level:3},(0,E.__)("Palette")),(0,l.createElement)(b.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,l.createElement)(cd,{path:o,"aria-label":(0,E.__)("Color palettes")},(0,l.createElement)(b.__experimentalHStack,{direction:0===i.length?"row-reverse":"row"},(0,l.createElement)(b.__experimentalZStack,{isLayered:!1,offset:-8},i.slice(0,5).map((({color:e},t)=>(0,l.createElement)(Ug,{key:`${e}-${t}`},(0,l.createElement)(b.ColorIndicator,{colorValue:e}))))),(0,l.createElement)(b.FlexItem,null,c)))),window.__experimentalEnableColorRandomizer&&n?.length>0&&(0,l.createElement)(b.Button,{variant:"secondary",icon:Gg,onClick:s},(0,E.__)("Randomize colors")))},{useGlobalStyle:qg,useGlobalSetting:Yg,useSettingsForBlockElement:Kg,ColorPanel:Xg}=Xe(fe.privateApis);const Jg=function(){const[e]=qg("",void 0,"user",{shouldDecodeEncode:!1}),[t,n]=qg("",void 0,"all",{shouldDecodeEncode:!1}),[r]=Yg(""),a=Kg(r);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(wd,{title:(0,E.__)("Colors"),description:(0,E.__)("Manage palettes and the default color of different global elements on the site.")}),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-colors"},(0,l.createElement)(b.__experimentalVStack,{spacing:10},(0,l.createElement)(Zg,null),(0,l.createElement)(Xg,{inheritedValue:t,value:e,onChange:n,settings:a}))))},{useGlobalSetting:Qg}=Xe(fe.privateApis),$g={placement:"bottom-start",offset:8};function ey({name:e}){const[t,n]=Qg("color.palette.theme",e),[r]=Qg("color.palette.theme",e,"base"),[a,s]=Qg("color.palette.default",e),[i]=Qg("color.palette.default",e,"base"),[o,c]=Qg("color.palette.custom",e),[u]=Qg("color.defaultPalette",e),d=(0,ie.useViewportMatch)("small","<")?$g:void 0;return(0,l.createElement)(b.__experimentalVStack,{className:"edit-site-global-styles-color-palette-panel",spacing:10},!!t&&!!t.length&&(0,l.createElement)(b.__experimentalPaletteEdit,{canReset:t!==r,canOnlyChangeValues:!0,colors:t,onChange:n,paletteLabel:(0,E.__)("Theme"),paletteLabelHeadingLevel:3,popoverProps:d}),!!a&&!!a.length&&!!u&&(0,l.createElement)(b.__experimentalPaletteEdit,{canReset:a!==i,canOnlyChangeValues:!0,colors:a,onChange:s,paletteLabel:(0,E.__)("Default"),paletteLabelHeadingLevel:3,popoverProps:d}),(0,l.createElement)(b.__experimentalPaletteEdit,{colors:o,onChange:c,paletteLabel:(0,E.__)("Custom"),paletteLabelHeadingLevel:3,emptyMessage:(0,E.__)("Custom colors are empty! Add some colors to create your own color palette."),slugPrefix:"custom-",popoverProps:d}))}const{useGlobalSetting:ty}=Xe(fe.privateApis),ny={placement:"bottom-start",offset:8},ry=()=>{};function ay({name:e}){const[t,n]=ty("color.gradients.theme",e),[r]=ty("color.gradients.theme",e,"base"),[a,s]=ty("color.gradients.default",e),[i]=ty("color.gradients.default",e,"base"),[o,c]=ty("color.gradients.custom",e),[u]=ty("color.defaultGradients",e),[d]=ty("color.duotone.custom")||[],[m]=ty("color.duotone.default")||[],[p]=ty("color.duotone.theme")||[],[h]=ty("color.defaultDuotone"),f=[...d||[],...p||[],...m&&h?m:[]],g=(0,ie.useViewportMatch)("small","<")?ny:void 0;return(0,l.createElement)(b.__experimentalVStack,{className:"edit-site-global-styles-gradient-palette-panel",spacing:10},!!t&&!!t.length&&(0,l.createElement)(b.__experimentalPaletteEdit,{canReset:t!==r,canOnlyChangeValues:!0,gradients:t,onChange:n,paletteLabel:(0,E.__)("Theme"),paletteLabelHeadingLevel:3,popoverProps:g}),!!a&&!!a.length&&!!u&&(0,l.createElement)(b.__experimentalPaletteEdit,{canReset:a!==i,canOnlyChangeValues:!0,gradients:a,onChange:s,paletteLabel:(0,E.__)("Default"),paletteLabelLevel:3,popoverProps:g}),(0,l.createElement)(b.__experimentalPaletteEdit,{gradients:o,onChange:c,paletteLabel:(0,E.__)("Custom"),paletteLabelLevel:3,emptyMessage:(0,E.__)("Custom gradients are empty! Add some gradients to create your own palette."),slugPrefix:"custom-",popoverProps:g}),!!f&&!!f.length&&(0,l.createElement)("div",null,(0,l.createElement)(Fd,{level:3},(0,E.__)("Duotone")),(0,l.createElement)(b.__experimentalSpacer,{margin:3}),(0,l.createElement)(b.DuotonePicker,{duotonePalette:f,disableCustomDuotone:!0,disableCustomColors:!0,clearable:!1,onChange:ry})))}const{Tabs:sy}=Xe(b.privateApis);const iy=function({name:e}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(wd,{title:(0,E.__)("Palette"),description:(0,E.__)("Palettes are used to provide default color options for blocks and various design tools. Here you can edit the colors with their labels.")}),(0,l.createElement)(sy,null,(0,l.createElement)(sy.TabList,null,(0,l.createElement)(sy.Tab,{tabId:"solid"},"Solid"),(0,l.createElement)(sy.Tab,{tabId:"gradient"},"Gradient")),(0,l.createElement)(sy.TabPanel,{tabId:"solid",focusable:!1},(0,l.createElement)(ey,{name:e})),(0,l.createElement)(sy.TabPanel,{tabId:"gradient",focusable:!1},(0,l.createElement)(ay,{name:e}))))},{useGlobalStyle:oy,useGlobalSetting:ly,useSettingsForBlockElement:cy,DimensionsPanel:uy}=Xe(fe.privateApis),dy={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,childLayout:!1};function my(){const[e]=oy("",void 0,"user",{shouldDecodeEncode:!1}),[t,n]=oy("",void 0,"all",{shouldDecodeEncode:!1}),[r]=ly("",void 0,"user"),[a,s]=ly(""),i=cy(a),o=(0,g.useMemo)((()=>({...t,layout:i.layout})),[t,i.layout]),c=(0,g.useMemo)((()=>({...e,layout:r.layout})),[e,r.layout]);return(0,l.createElement)(uy,{inheritedValue:o,value:c,onChange:e=>{const t={...e};if(delete t.layout,n(t),e.layout!==r.layout){const t={...r,layout:e.layout};t.layout?.definitions&&delete t.layout.definitions,s(t)}},settings:i,includeLayoutControls:!0,defaultControls:dy})}const{useHasDimensionsPanel:py,useGlobalSetting:hy,useSettingsForBlockElement:fy}=Xe(fe.privateApis);const gy=function(){const[e]=hy(""),t=fy(e),n=py(t);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(wd,{title:(0,E.__)("Layout")}),n&&(0,l.createElement)(my,null))};const yy=function(){const{mode:e}=(0,m.useSelect)((e=>({mode:e(fe.store).__unstableGetEditorMode()})),[]),t=(0,g.useRef)(null);(0,g.useEffect)((()=>{"zoom-out"!==e&&(t.current=!1)}),[e]),(0,g.useEffect)((()=>{if("zoom-out"!==e)return n("zoom-out"),t.current=!0,()=>{t.current&&n(e)}}),[]);const{__unstableSetEditorMode:n}=(0,m.useDispatch)(fe.store);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(wd,{back:"/",title:(0,E.__)("Browse styles"),description:(0,E.__)("Choose a variation to change the look of the site.")}),(0,l.createElement)(b.Card,{size:"small",isBorderless:!0,className:"edit-site-global-styles-screen-style-variations"},(0,l.createElement)(b.CardBody,null,(0,l.createElement)(Gr,null))))},{useGlobalStyle:vy,AdvancedPanel:_y}=Xe(fe.privateApis);const by=function(){const e=(0,E.__)("Add your own CSS to customize the appearance and layout of your site."),[t]=vy("",void 0,"user",{shouldDecodeEncode:!1}),[n,r]=vy("",void 0,"all",{shouldDecodeEncode:!1});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(wd,{title:(0,E.__)("CSS"),description:(0,l.createElement)(l.Fragment,null,e,(0,l.createElement)(b.ExternalLink,{href:"https://wordpress.org/documentation/article/css/",className:"edit-site-global-styles-screen-css-help-link"},(0,E.__)("Learn more about CSS")))}),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-css"},(0,l.createElement)(_y,{value:t,onChange:r,inheritedValue:n})))},{ExperimentalBlockEditorProvider:Ey,GlobalStylesContext:wy,useGlobalStylesOutputWithConfig:Sy}=Xe(fe.privateApis);function xy(e){return!e||0===Object.keys(e).length}const Cy=function({userConfig:e,blocks:t}){const{base:n}=(0,g.useContext)(wy),r=(0,g.useMemo)((()=>xy(e)||xy(n)?{}:Ir(n,e)),[n,e]),a=(0,g.useMemo)((()=>Array.isArray(t)?t:[t]),[t]),s=(0,m.useSelect)((e=>e(fe.store).getSettings()),[]),i=(0,g.useMemo)((()=>({...s,__unstableIsPreviewMode:!0})),[s]),[o]=Sy(r),c=xy(o)||xy(e)?i.styles:o;return(0,l.createElement)($r,{title:(0,E.__)("Revisions"),closeButtonLabel:(0,E.__)("Close revisions"),enableResizing:!0},(0,l.createElement)(fe.__unstableIframe,{className:"edit-site-revisions__iframe",name:"revisions",tabIndex:0},(0,l.createElement)(fe.__unstableEditorStyles,{styles:c}),(0,l.createElement)("style",null,".is-root-container { display: flow-root; }"),(0,l.createElement)(b.Disabled,{className:"edit-site-revisions__example-preview__content"},(0,l.createElement)(Ey,{value:a,settings:i},(0,l.createElement)(fe.BlockList,{renderAppender:!1})))))},{getGlobalStylesChanges:ky}=Xe(fe.privateApis);function Ty({revision:e,previousRevision:t}){const n=ky(e,t,{maxResults:7});return n.length?(0,l.createElement)("ul",{"data-testid":"global-styles-revision-changes",className:"edit-site-global-styles-screen-revisions__changes"},n.map((e=>(0,l.createElement)("li",{key:e},e)))):null}const Py=function({userRevisions:e,selectedRevisionId:t,onChange:n,canApplyRevision:r,onApplyRevision:a}){const{currentThemeName:s,currentUser:i}=(0,m.useSelect)((e=>{const{getCurrentTheme:t,getCurrentUser:n}=e(ye.store),r=t();return{currentThemeName:r?.name?.rendered||r?.stylesheet,currentUser:n()}}),[]),o=(0,_a.getDate)().getTime(),{datetimeAbbreviated:c}=(0,_a.getSettings)().formats;return(0,l.createElement)("ol",{className:"edit-site-global-styles-screen-revisions__revisions-list","aria-label":(0,E.__)("Global styles revisions list"),role:"group"},e.map(((u,d)=>{const{id:m,author:p,modified:h}=u,f="unsaved"===m,g=f?i:p,y=g?.name||(0,E.__)("User"),v=g?.avatar_urls?.[48],w=t?t===m:0===d,S=!r&&w,x="parent"===m,C=(0,_a.getDate)(h),k=h&&o-C.getTime()>864e5?(0,_a.dateI18n)(c,C):(0,_a.humanTimeDiff)(h),T=function(e,t,n,r){return"parent"===e?(0,E.__)("Reset the styles to the theme defaults"):"unsaved"===e?(0,E.sprintf)((0,E.__)("Unsaved changes by %s"),t):r?(0,E.sprintf)((0,E.__)("Changes saved by %1$s on %2$s. This revision matches current editor styles."),t,n):(0,E.sprintf)((0,E.__)("Changes saved by %1$s on %2$s"),t,n)}(m,y,(0,_a.dateI18n)(c,C),S);return(0,l.createElement)("li",{className:_()("edit-site-global-styles-screen-revisions__revision-item",{"is-selected":w,"is-active":S,"is-reset":x}),key:m,"aria-current":w},(0,l.createElement)(b.Button,{className:"edit-site-global-styles-screen-revisions__revision-button",disabled:w,onClick:()=>{n(u)},"aria-label":T},x?(0,l.createElement)("span",{className:"edit-site-global-styles-screen-revisions__description"},(0,E.__)("Default styles"),(0,l.createElement)("span",{className:"edit-site-global-styles-screen-revisions__meta"},s)):(0,l.createElement)("span",{className:"edit-site-global-styles-screen-revisions__description"},f?(0,l.createElement)("span",{className:"edit-site-global-styles-screen-revisions__date"},(0,E.__)("(Unsaved)")):(0,l.createElement)("time",{className:"edit-site-global-styles-screen-revisions__date",dateTime:h},k),(0,l.createElement)("span",{className:"edit-site-global-styles-screen-revisions__meta"},(0,l.createElement)("img",{alt:y,src:v}),y),w&&(0,l.createElement)(Ty,{revision:u,previousRevision:d<e.length?e[d+1]:{}}))),w&&(S?(0,l.createElement)("p",{className:"edit-site-global-styles-screen-revisions__applied-text"},(0,E.__)("These styles are already applied to your site.")):(0,l.createElement)(b.Button,{disabled:S,size:"compact",variant:"primary",className:"edit-site-global-styles-screen-revisions__apply-button",onClick:a},x?(0,E.__)("Reset to defaults"):(0,E.__)("Apply"))))})))};function Iy({currentPage:e,numPages:t,changePage:n,totalItems:r,className:a,disabled:s=!1,buttonVariant:i="tertiary",label:o=(0,E.__)("Pagination Navigation")}){return(0,l.createElement)(b.__experimentalHStack,{expanded:!1,as:"nav","aria-label":o,spacing:3,justify:"flex-start",className:_()("edit-site-pagination",a)},(0,l.createElement)(b.__experimentalText,{variant:"muted",className:"edit-site-pagination__total"},(0,E.sprintf)((0,E._n)("%s item","%s items",r),r)),(0,l.createElement)(b.__experimentalHStack,{expanded:!1,spacing:1},(0,l.createElement)(b.Button,{variant:i,onClick:()=>n(1),disabled:s||1===e,"aria-label":(0,E.__)("First page")},"«"),(0,l.createElement)(b.Button,{variant:i,onClick:()=>n(e-1),disabled:s||1===e,"aria-label":(0,E.__)("Previous page")},"‹")),(0,l.createElement)(b.__experimentalText,{variant:"muted"},(0,E.sprintf)((0,E._x)("%1$s of %2$s","paging"),e,t)),(0,l.createElement)(b.__experimentalHStack,{expanded:!1,spacing:1},(0,l.createElement)(b.Button,{variant:i,onClick:()=>n(e+1),disabled:s||e===t,"aria-label":(0,E.__)("Next page")},"›"),(0,l.createElement)(b.Button,{variant:i,onClick:()=>n(t),disabled:s||e===t,"aria-label":(0,E.__)("Last page")},"»")))}const{GlobalStylesContext:My,areGlobalStyleConfigsEqual:Ay}=Xe(fe.privateApis);const Oy=function(){const{goTo:e}=(0,b.__experimentalUseNavigator)(),{user:t,setUserConfig:n}=(0,g.useContext)(My),{blocks:r,editorCanvasContainerView:a}=(0,m.useSelect)((e=>({editorCanvasContainerView:Xe(e(tr)).getEditorCanvasContainerView(),blocks:e(fe.store).getBlocks()})),[]),[s,i]=(0,g.useState)(1),[o,c]=(0,g.useState)([]),{revisions:u,isLoading:d,hasUnsavedChanges:p,revisionsCount:h}=va({query:{per_page:10,page:s}}),f=Math.ceil(h/10),[y,v]=(0,g.useState)(t),[_,w]=(0,g.useState)(!1),{setEditorCanvasContainerView:S}=Xe((0,m.useDispatch)(tr)),x=Ay(y,t),C=()=>{e("/");S("global-styles-revisions:style-book"===a?"style-book":void 0)},k=e=>{n((()=>({styles:e?.styles,settings:e?.settings}))),w(!1),C()};(0,g.useEffect)((()=>{a&&a.startsWith("global-styles-revisions")||e("/")}),[a]),(0,g.useEffect)((()=>{!d&&u.length&&c(u)}),[u,d]);const T=u[0],P=y?.id,I=!!T?.id&&!x&&!P;(0,g.useEffect)((()=>{I&&v({styles:T?.styles||{},settings:T?.settings||{},id:T?.id})}),[I,T]);const M=!!P&&"unsaved"!==P&&!x,A=!!o.length;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(wd,{title:h&&(0,E.sprintf)((0,E.__)("Revisions (%s)"),h),description:(0,E.__)('Click on previously saved styles to preview them. To restore a selected version to the editor, hit "Apply." When you\'re ready, use the Save button to save your changes.'),onBack:C}),!A&&(0,l.createElement)(b.Spinner,{className:"edit-site-global-styles-screen-revisions__loading"}),A&&("global-styles-revisions:style-book"===a?(0,l.createElement)(pa,{userConfig:y,isSelected:()=>{},onClose:()=>{S("global-styles-revisions")}}):(0,l.createElement)(Cy,{blocks:r,userConfig:y,closeButtonLabel:(0,E.__)("Close revisions")})),(0,l.createElement)(Py,{onChange:e=>{v({styles:e?.styles||{},settings:e?.settings||{},id:e?.id})},selectedRevisionId:P,userRevisions:o,canApplyRevision:M,onApplyRevision:()=>p?w(!0):k(y)}),f>1&&(0,l.createElement)("div",{className:"edit-site-global-styles-screen-revisions__footer"},(0,l.createElement)(Iy,{className:"edit-site-global-styles-screen-revisions__pagination",currentPage:s,numPages:f,changePage:i,totalItems:h,disabled:d,label:(0,E.__)("Global Styles pagination navigation")})),_&&(0,l.createElement)(b.__experimentalConfirmDialog,{isOpen:_,confirmButtonText:(0,E.__)("Apply"),onConfirm:()=>k(y),onCancel:()=>w(!1)},(0,E.__)("Any unsaved changes will be lost when you apply this revision.")))},{useGlobalStylesReset:Ny}=Xe(fe.privateApis),{Slot:Fy,Fill:Ry}=(0,b.createSlotFill)("GlobalStylesMenu");function Dy(){const[e,t]=Ny(),{toggle:n}=(0,m.useDispatch)(T.store),{canEditCSS:r}=(0,m.useSelect)((e=>{const{getEntityRecord:t,__experimentalGetCurrentGlobalStylesId:n}=e(ye.store),r=n(),a=r?t("root","globalStyles",r):void 0;return{canEditCSS:!!a?._links?.["wp:action-edit-css"]}}),[]),{setEditorCanvasContainerView:a}=Xe((0,m.useDispatch)(tr)),{goTo:s}=(0,b.__experimentalUseNavigator)(),i=()=>{a("global-styles-css"),s("/css")};return(0,l.createElement)(Ry,null,(0,l.createElement)(b.DropdownMenu,{icon:ue,label:(0,E.__)("More")},(({onClose:a})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.MenuGroup,null,r&&(0,l.createElement)(b.MenuItem,{onClick:i},(0,E.__)("Additional CSS")),(0,l.createElement)(b.MenuItem,{onClick:()=>{n("core/edit-site","welcomeGuideStyles"),a()}},(0,E.__)("Welcome Guide"))),(0,l.createElement)(b.MenuGroup,null,(0,l.createElement)(b.MenuItem,{onClick:()=>{t(),a()},disabled:!e},(0,E.__)("Reset styles")))))))}function Vy({className:e,...t}){return(0,l.createElement)(b.__experimentalNavigatorScreen,{className:["edit-site-global-styles-sidebar__navigator-screen",e].filter(Boolean).join(" "),...t})}function Ly({parentMenu:e,blockStyles:t,blockName:n}){return t.map(((t,r)=>(0,l.createElement)(Vy,{key:r,path:e+"/variations/"+t.name},(0,l.createElement)(Qd,{name:n,variation:t.name}))))}function By({name:e,parentMenu:t=""}){const n=(0,m.useSelect)((t=>{const{getBlockStyles:n}=t(u.store);return n(e)}),[e]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Vy,{path:t+"/colors/palette"},(0,l.createElement)(iy,{name:e})),!!n?.length&&(0,l.createElement)(Ly,{parentMenu:t,blockStyles:n,blockName:e}))}function zy(){const e=(0,b.__experimentalUseNavigator)(),{path:t}=e.location;return(0,l.createElement)(pa,{isSelected:e=>t===`/blocks/${encodeURIComponent(e)}`||t.startsWith(`/blocks/${encodeURIComponent(e)}/`),onSelect:t=>{e.goTo("/blocks/"+encodeURIComponent(t))}})}function Hy(){const e=(0,b.__experimentalUseNavigator)(),{selectedBlockName:t,selectedBlockClientId:n}=(0,m.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockName:n}=e(fe.store),r=t();return{selectedBlockName:n(r),selectedBlockClientId:r}}),[]),r=Id(t);(0,g.useEffect)((()=>{if(!n||!r)return;const a=e.location.path;if("/blocks"!==a&&!a.startsWith("/blocks/"))return;const s="/blocks/"+encodeURIComponent(t);s!==a&&e.goTo(s,{skipFocus:!0})}),[n,t,r])}function Gy(){const{goTo:e,location:t}=(0,b.__experimentalUseNavigator)(),n=(0,m.useSelect)((e=>Xe(e(tr)).getEditorCanvasContainerView()),[]),r=t?.path,a="/revisions"===r;(0,g.useEffect)((()=>{switch(n){case"global-styles-revisions":case"global-styles-revisions:style-book":e("/revisions");break;case"global-styles-css":e("/css");break;case"style-book":a&&e("/");break;default:if("/"!==r&&!a)return;e("/")}}),[n,a,e])}const Uy=function(){const e=(0,u.getBlockTypes)(),t=(0,m.useSelect)((e=>Xe(e(tr)).getEditorCanvasContainerView()),[]);return(0,l.createElement)(b.__experimentalNavigatorProvider,{className:"edit-site-global-styles-sidebar__navigator-provider",initialPath:"/"},(0,l.createElement)(Vy,{path:"/"},(0,l.createElement)(_d,null)),(0,l.createElement)(Vy,{path:"/variations"},(0,l.createElement)(yy,null)),(0,l.createElement)(Vy,{path:"/blocks"},(0,l.createElement)(Od,null)),(0,l.createElement)(Vy,{path:"/typography"},(0,l.createElement)(Og,null)),(0,l.createElement)(Vy,{path:"/typography/text"},(0,l.createElement)(Hg,{element:"text"})),(0,l.createElement)(Vy,{path:"/typography/link"},(0,l.createElement)(Hg,{element:"link"})),(0,l.createElement)(Vy,{path:"/typography/heading"},(0,l.createElement)(Hg,{element:"heading"})),(0,l.createElement)(Vy,{path:"/typography/caption"},(0,l.createElement)(Hg,{element:"caption"})),(0,l.createElement)(Vy,{path:"/typography/button"},(0,l.createElement)(Hg,{element:"button"})),(0,l.createElement)(Vy,{path:"/colors"},(0,l.createElement)(Jg,null)),(0,l.createElement)(Vy,{path:"/layout"},(0,l.createElement)(gy,null)),(0,l.createElement)(Vy,{path:"/css"},(0,l.createElement)(by,null)),(0,l.createElement)(Vy,{path:"/revisions"},(0,l.createElement)(Oy,null)),e.map((e=>(0,l.createElement)(Vy,{key:"menu-block-"+e.name,path:"/blocks/"+encodeURIComponent(e.name)},(0,l.createElement)(Qd,{name:e.name})))),(0,l.createElement)(By,null),e.map((e=>(0,l.createElement)(By,{key:"screens-block-"+e.name,name:e.name,parentMenu:"/blocks/"+encodeURIComponent(e.name)}))),"style-book"===t&&(0,l.createElement)(zy,null),(0,l.createElement)(Dy,null),(0,l.createElement)(Hy,null),(0,l.createElement)(Gy,null))};function Wy(){const{shouldClearCanvasContainerView:e,isStyleBookOpened:t,showListViewByDefault:n,hasRevisions:r,isRevisionsOpened:a,isRevisionsStyleBookOpened:s}=(0,m.useSelect)((e=>{const{getActiveComplementaryArea:t}=e(j),{getEditorCanvasContainerView:n,getCanvasMode:r}=Xe(e(tr)),a=n(),s="visual"===e(tr).getEditorMode(),i="edit"===r(),o=e(T.store).get("core","showListViewByDefault"),{getEntityRecord:l,__experimentalGetCurrentGlobalStylesId:c}=e(ye.store),u=c(),d=u?l("root","globalStyles",u):void 0;return{isStyleBookOpened:"style-book"===a,shouldClearCanvasContainerView:"edit-site/global-styles"!==t("core/edit-site")||!s||!i,showListViewByDefault:o,hasRevisions:!!d?._links?.["version-history"]?.[0]?.count,isRevisionsStyleBookOpened:"global-styles-revisions:style-book"===a,isRevisionsOpened:"global-styles-revisions"===a}}),[]),{setEditorCanvasContainerView:i}=Xe((0,m.useDispatch)(tr));(0,g.useEffect)((()=>{e&&i(void 0)}),[e]);const{setIsListViewOpened:o}=(0,m.useDispatch)(y.store),{goTo:c}=(0,b.__experimentalUseNavigator)();return(0,l.createElement)(id,{className:"edit-site-global-styles-sidebar",identifier:"edit-site/global-styles",title:(0,E.__)("Styles"),icon:ir,closeLabel:(0,E.__)("Close Styles"),panelClassName:"edit-site-global-styles-sidebar__panel",header:(0,l.createElement)(b.Flex,{className:"edit-site-global-styles-sidebar__header",role:"menubar","aria-label":(0,E.__)("Styles actions")},(0,l.createElement)(b.FlexBlock,{style:{minWidth:"min-content"}},(0,l.createElement)("strong",null,(0,E.__)("Styles"))),(0,l.createElement)(b.FlexItem,null,(0,l.createElement)(b.Button,{icon:_r,label:(0,E.__)("Style Book"),isPressed:t||s,disabled:e,onClick:()=>{a?i("global-styles-revisions:style-book"):s?i("global-styles-revisions"):(o(t&&n),i(t?void 0:"style-book"))}})),(0,l.createElement)(b.FlexItem,null,(0,l.createElement)(b.Button,{label:(0,E.__)("Revisions"),icon:ba,onClick:()=>(o(!1),s?(c("/"),void i("style-book")):a?(c("/"),void i(void 0)):(c("/revisions"),void i(t?"global-styles-revisions:style-book":"global-styles-revisions"))),disabled:!r,isPressed:a||s})),(0,l.createElement)(Fy,null))},(0,l.createElement)(Uy,null))}const jy="edit-site/template",Zy="edit-site/block-inspector",{Tabs:qy}=Xe(b.privateApis),Yy=(0,g.forwardRef)(((e,t)=>{const n=(0,m.useSelect)((e=>e(y.store).getPostTypeLabel()),[]);return(0,l.createElement)(qy.TabList,{ref:t},(0,l.createElement)(qy.Tab,{tabId:jy,"data-tab-id":jy},n),(0,l.createElement)(qy.Tab,{tabId:Zy,"data-tab-id":Zy},(0,E.__)("Block")))}));function Ky({className:e,title:t,icon:n,description:r,actions:a,children:s}){return(0,l.createElement)("div",{className:_()("edit-site-sidebar-card",e)},(0,l.createElement)(b.Icon,{className:"edit-site-sidebar-card__icon",icon:n}),(0,l.createElement)("div",{className:"edit-site-sidebar-card__content"},(0,l.createElement)("div",{className:"edit-site-sidebar-card__header"},(0,l.createElement)("h2",{className:"edit-site-sidebar-card__title"},t),a),(0,l.createElement)("div",{className:"edit-site-sidebar-card__description"},r),s))}const{BlockQuickNavigation:Xy}=Xe(fe.privateApis);function Jy(){const e=(0,m.useSelect)((e=>Xe(e(fe.store)).getEnabledClientIdsTree()),[]),t=(0,g.useMemo)((()=>e.map((({clientId:e})=>e))),[e]);return(0,l.createElement)(Xy,{clientIds:t})}const{PostPanelRow:Qy}=Xe(y.privateApis),$y=[{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Draft"),(0,l.createElement)(b.__experimentalText,{variant:"muted"},(0,E.__)("Not ready to publish."))),value:"draft"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Pending"),(0,l.createElement)(b.__experimentalText,{variant:"muted"},(0,E.__)("Waiting for review before publishing."))),value:"pending"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Private"),(0,l.createElement)(b.__experimentalText,{variant:"muted"},(0,E.__)("Only visible to site admins and editors."))),value:"private"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Scheduled"),(0,l.createElement)(b.__experimentalText,{variant:"muted"},(0,E.__)("Publish automatically on a chosen date."))),value:"future"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Published"),(0,l.createElement)(b.__experimentalText,{variant:"muted"},(0,E.__)("Visible to everyone."))),value:"publish"}];function ev({postType:e,postId:t,status:n,password:r,date:a}){const[s,i]=(0,g.useState)(!!r),o=(0,ie.useInstanceId)(ev),{editEntityRecord:c}=(0,m.useDispatch)(ye.store),{createErrorNotice:u}=(0,m.useDispatch)(ge.store),[d,p]=(0,g.useState)(null),h=(0,g.useMemo)((()=>({anchor:d,"aria-label":(0,E.__)("Change status"),placement:"bottom-end"})),[d]),f=async({status:s=n,password:i=r,date:o=a})=>{try{await c("postType",e,t,{status:s,date:o,password:i})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while updating the status");u(t,{type:"snackbar"})}},y=e=>{i(e),e||f({password:""})},v=e=>{let t=a,n=r;"publish"===e?new Date(a)>new Date&&(t=null):"future"===e?(!a||new Date(a)<new Date)&&(t=new Date,t.setDate(t.getDate()+7)):"private"===e&&r&&(i(!1),n=""),f({status:e,date:t,password:n})};return(0,l.createElement)(Qy,{label:(0,E.__)("Status")},(0,l.createElement)(b.Dropdown,{contentClassName:"edit-site-change-status__content",popoverProps:h,focusOnMount:!0,ref:p,renderToggle:({onToggle:e})=>(0,l.createElement)(b.Button,{className:"edit-site-summary-field__trigger",variant:"tertiary",onClick:e},(0,l.createElement)(pc,{status:r?"protected":n})),renderContent:({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(fe.__experimentalInspectorPopoverHeader,{title:(0,E.__)("Status"),onClose:e}),(0,l.createElement)("form",null,(0,l.createElement)(b.__experimentalVStack,{spacing:5},(0,l.createElement)(b.RadioControl,{className:"edit-site-change-status__options",hideLabelFromVision:!0,label:(0,E.__)("Status"),options:$y,onChange:v,selected:n}),"private"!==n&&(0,l.createElement)("fieldset",{className:"edit-site-change-status__password-fieldset"},(0,l.createElement)(b.__experimentalText,{as:"legend",className:"edit-site-change-status__password-legend",size:"11",lineHeight:1.4,weight:500,upperCase:!0},(0,E.__)("Password")),(0,l.createElement)(b.ToggleControl,{label:(0,E.__)("Hide this page behind a password"),checked:s,onChange:y}),s&&(0,l.createElement)("div",{className:"edit-site-change-status__password-input"},(0,l.createElement)(b.VisuallyHidden,{as:"label",htmlFor:`edit-site-change-status__password-input-${o}`},(0,E.__)("Create password")),(0,l.createElement)(b.TextControl,{onChange:e=>f({password:e}),value:r,placeholder:(0,E.__)("Use a secure password"),type:"text",id:`edit-site-change-status__password-input-${o}`}))))))}))}function tv({status:e,date:t,password:n,postId:r,postType:a}){return(0,l.createElement)(b.__experimentalVStack,{spacing:0},(0,l.createElement)(ev,{status:e,date:t,password:n,postId:r,postType:a}),(0,l.createElement)(y.PostSchedulePanel,null),(0,l.createElement)(y.PostTemplatePanel,null),(0,l.createElement)(y.PostURLPanel,null),(0,l.createElement)(y.PostAuthorPanel,null))}function nv(){const{id:e,type:t,hasResolved:n,status:r,date:a,password:s,title:i,modified:o,renderingMode:c}=(0,m.useSelect)((e=>{const{getEditedPostContext:t}=e(tr),{getEditedEntityRecord:n,hasFinishedResolution:r}=e(ye.store),{getRenderingMode:a}=e(y.store),s=t(),i=["postType",s.postType,s.postId],o=n(...i);return{hasResolved:r("getEditedEntityRecord",i),title:o?.title,id:o?.id,type:o?.type,status:o?.status,date:o?.date,password:o?.password,modified:o?.modified,renderingMode:a()}}),[]);return n?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.PanelBody,null,(0,l.createElement)(Ky,{title:(0,en.decodeEntities)(i),icon:or,description:(0,l.createElement)(b.__experimentalVStack,null,(0,l.createElement)(b.__experimentalText,null,(0,E.sprintf)((0,E.__)("Last edited %s"),(0,_a.humanTimeDiff)(o))))})),(0,l.createElement)(b.PanelBody,{title:(0,E.__)("Summary")},(0,l.createElement)(tv,{status:r,date:a,password:s,postId:e,postType:t})),"post-only"!==c&&(0,l.createElement)(b.PanelBody,{title:(0,E.__)("Content")},(0,l.createElement)(Jy,null)),(0,l.createElement)(y.PostLastRevisionPanel,null),(0,l.createElement)(y.PostTaxonomiesPanel,null),(0,l.createElement)(y.PostFeaturedImagePanel,null),(0,l.createElement)(y.PostExcerptPanel,null),(0,l.createElement)(y.PostDiscussionPanel,null),(0,l.createElement)(y.PageAttributesPanel,null)):null}function rv({onClick:e,availableTemplates:t}){const{editEntityRecord:n}=(0,m.useDispatch)(ye.store),[r,a]=(0,g.useState)(!1),s=()=>{a(!1)},{postId:i,postType:o}=(0,m.useSelect)((e=>({postId:e(tr).getEditedPostId(),postType:e(tr).getEditedPostType()})),[]);return!t.length||t.length<1?null:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.MenuItem,{info:(0,E.__)("Replace the contents of this template with another."),onClick:()=>a(!0)},(0,E.__)("Replace template")),r&&(0,l.createElement)(b.Modal,{title:(0,E.__)("Choose a template"),onRequestClose:s,overlayClassName:"edit-site-template-panel__replace-template-modal",isFullScreen:!0},(0,l.createElement)("div",{className:"edit-site-template-panel__replace-template-modal__content"},(0,l.createElement)(av,{availableTemplates:t,onSelect:async t=>{s(),e(),await n("postType",o,i,{blocks:t.blocks,content:(0,u.serialize)(t.blocks)})}}))))}function av({availableTemplates:e,onSelect:t}){const n=(0,ie.useAsyncList)(e);return(0,l.createElement)(fe.__experimentalBlockPatternsList,{label:(0,E.__)("Templates"),blockPatterns:e,shownPatterns:n,onClickPattern:t})}function sv(e,t){return e.innerBlocks=e.innerBlocks.map((e=>sv(e,t))),"core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=t),e}function iv(e,t,n){return e.filter(((e,n,r)=>(e=>!Ot.includes(e.source))(e)&&((e,t,n)=>t===n.findIndex((t=>e.name===t.name)))(e,n,r)&&(e=>e.templateTypes?.includes(t.slug))(e))).map((e=>({...e,keywords:e.keywords||[],type:It.theme,blocks:(0,u.parse)(e.content,{__unstableSkipMigrationLogs:!0}).map((e=>sv(e,n)))})))}function ov({template:e}){const t=function(e){const{blockPatterns:t,restBlockPatterns:n,currentThemeStylesheet:r}=(0,m.useSelect)((e=>{var t;const{getSettings:n}=Xe(e(tr)),r=n();return{blockPatterns:null!==(t=r.__experimentalAdditionalBlockPatterns)&&void 0!==t?t:r.__experimentalBlockPatterns,restBlockPatterns:e(ye.store).getBlockPatterns(),currentThemeStylesheet:e(ye.store).getCurrentTheme().stylesheet}}),[]);return(0,g.useMemo)((()=>iv([...t||[],...n||[]],e,r)),[t,n,e,r])}(e),{revertTemplate:n}=(0,m.useDispatch)(tr),r=$t(e);return r||t.length&&!(t.length<1)?(0,l.createElement)(b.DropdownMenu,{icon:ue,label:(0,E.__)("Actions"),className:"edit-site-template-card__actions",toggleProps:{isSmall:!0}},(({onClose:a})=>(0,l.createElement)(b.MenuGroup,null,r&&(0,l.createElement)(b.MenuItem,{info:(0,E.__)("Use the template as supplied by the theme."),onClick:()=>{n(e),a()}},(0,E.__)("Clear customizations")),(0,l.createElement)(rv,{availableTemplates:t,template:e,onClick:a})))):null}function lv({area:e,clientId:t}){const{selectBlock:n,toggleBlockHighlight:r}=(0,m.useDispatch)(fe.store),a=(0,m.useSelect)((t=>t(y.store).__experimentalGetDefaultTemplatePartAreas().find((t=>t.area===e))),[e]),s=()=>r(t,!0),i=()=>r(t,!1);return(0,l.createElement)(b.Button,{className:"edit-site-template-card__template-areas-item",icon:a?.icon,onMouseOver:s,onMouseLeave:i,onFocus:s,onBlur:i,onClick:()=>{n(t)}},a?.label)}function cv(){const e=(0,m.useSelect)((e=>e(tr).getCurrentTemplateTemplateParts()),[]);return e.length?(0,l.createElement)("section",{className:"edit-site-template-card__template-areas"},(0,l.createElement)(b.__experimentalHeading,{level:3,className:"edit-site-template-card__template-areas-title"},(0,E.__)("Areas")),(0,l.createElement)("ul",{className:"edit-site-template-card__template-areas-list"},e.map((({templatePart:e,block:t})=>(0,l.createElement)("li",{key:t.clientId},(0,l.createElement)(lv,{area:e.area,clientId:t.clientId})))))):null}const uv={wp_block:cr,wp_navigation:sr};function dv(){var e;const{title:t,description:n,icon:r,record:a}=(0,m.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(tr),{getEditedEntityRecord:r}=e(ye.store),{__experimentalGetTemplateInfo:a}=e(y.store),s=r("postType",t(),n()),i=a(s);return{title:i.title,description:i.description,icon:i.icon,record:s}}),[]);return t||n?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.PanelBody,null,(0,l.createElement)(Ky,{className:"edit-site-template-card",title:(0,en.decodeEntities)(t),icon:null!==(e=uv[a?.type])&&void 0!==e?e:r,description:(0,en.decodeEntities)(n),actions:(0,l.createElement)(ov,{template:a})},(0,l.createElement)(cv,null))),(0,l.createElement)(y.PostLastRevisionPanel,null),(0,l.createElement)(y.PostTaxonomiesPanel,null),(0,l.createElement)(y.PostFeaturedImagePanel,null),(0,l.createElement)(y.PostExcerptPanel,null),(0,l.createElement)(y.PostDiscussionPanel,null),(0,l.createElement)(y.PageAttributesPanel,null)):null}const{Fill:mv,Slot:pv}=(0,b.createSlotFill)("PluginTemplateSettingPanel"),hv=mv;hv.Slot=pv;const fv=hv,{Tabs:gv}=Xe(b.privateApis),{Slot:yv,Fill:vv}=(0,b.createSlotFill)("EditSiteSidebarInspector"),_v=vv,bv=({sidebarName:e,isEditingPage:t,supportsGlobalStyles:n})=>{const r=(0,g.useRef)(null),a=(0,g.useContext)(gv.Context);return(0,g.useEffect)((()=>{const t=Array.from(r.current?.querySelectorAll('[role="tab"]')||[]),n=t.find((t=>t.getAttribute("data-tab-id")===e)),a=n?.ownerDocument.activeElement;t.some((e=>a&&a.id===e.id))&&n&&n.id!==a?.id&&n?.focus()}),[e]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(id,{identifier:e,title:(0,E.__)("Settings"),icon:(0,E.isRTL)()?zu:Hu,closeLabel:(0,E.__)("Close Settings"),header:(0,l.createElement)(gv.Context.Provider,{value:a},(0,l.createElement)(Yy,{ref:r})),headerClassName:"edit-site-sidebar-edit-mode__panel-tabs",className:"edit-site-sidebar__panel"},(0,l.createElement)(gv.Context.Provider,{value:a},(0,l.createElement)(gv.TabPanel,{tabId:jy,focusable:!1},t?(0,l.createElement)(nv,null):(0,l.createElement)(dv,null),(0,l.createElement)(fv.Slot,null)),(0,l.createElement)(gv.TabPanel,{tabId:Zy,focusable:!1},(0,l.createElement)(yv,{bubblesVirtually:!0})))),n&&(0,l.createElement)(Wy,null))};function Ev(){const{sidebar:e,isEditorSidebarOpened:t,hasBlockSelection:n,supportsGlobalStyles:r,isEditingPage:a,isEditorOpen:s}=(0,m.useSelect)((e=>{const t=e(j).getActiveComplementaryArea(Qt),n=[Zy,jy].includes(t),{getCanvasMode:r}=Xe(e(tr));return{sidebar:t,isEditorSidebarOpened:n,hasBlockSelection:!!e(fe.store).getBlockSelectionStart(),supportsGlobalStyles:e(ye.store).getCurrentTheme()?.is_block_theme,isEditingPage:e(tr).isPage(),isEditorOpen:"edit"===r()}}),[]),{enableComplementaryArea:i}=(0,m.useDispatch)(j);(0,g.useEffect)((()=>{t&&(n?a||i(Qt,Zy):i(Qt,jy))}),[n,t,a,i]);let o=e;t||(o=n?Zy:jy);const c=(0,g.useCallback)((e=>{e&&i(Qt,e)}),[i]);return(0,l.createElement)(gv,{selectedTabId:s&&t?o:null,onSelect:c,selectOnMove:!1},(0,l.createElement)(bv,{sidebarName:o,isEditingPage:a,supportsGlobalStyles:r}))}var wv=a(4132);function Sv(){const e=(0,ie.useInstanceId)(Sv),{shortcut:t,content:n,blocks:r,type:a,id:s}=(0,m.useSelect)((e=>{const{getEditedEntityRecord:t}=e(ye.store),{getEditedPostType:n,getEditedPostId:r}=e(tr),{getShortcutRepresentation:a}=e(nr.store),s=n(),i=r(),o=t("postType",s,i);return{shortcut:a("core/edit-site/toggle-mode"),content:o?.content,blocks:o?.blocks,type:s,id:i}}),[]),{editEntityRecord:i}=(0,m.useDispatch)(ye.store),o=(0,g.useMemo)((()=>n instanceof Function?n({blocks:r}):r?(0,u.__unstableSerializeAndClean)(r):n),[n,r]),{switchEditorMode:c}=(0,m.useDispatch)(tr);return(0,l.createElement)("div",{className:"edit-site-code-editor"},(0,l.createElement)("div",{className:"edit-site-code-editor__toolbar"},(0,l.createElement)("h2",null,(0,E.__)("Editing code")),(0,l.createElement)(b.Button,{variant:"tertiary",onClick:()=>c("visual"),shortcut:t},(0,E.__)("Exit code editor"))),(0,l.createElement)("div",{className:"edit-site-code-editor__body"},(0,l.createElement)(b.VisuallyHidden,{as:"label",htmlFor:`code-editor-text-area-${e}`},(0,E.__)("Type text or HTML")),(0,l.createElement)(wv.A,{autoComplete:"off",dir:"auto",value:o,onChange:e=>{i("postType",a,s,{content:e.target.value,blocks:void 0,selection:void 0})},className:"edit-site-code-editor-text-area",id:`code-editor-text-area-${e}`,placeholder:(0,E.__)("Start writing with text or HTML")})))}const xv=function(){const{getEditorMode:e}=(0,m.useSelect)(tr),t=(0,m.useSelect)((e=>e(j).getActiveComplementaryArea(tr.name)===Zy),[]),{switchEditorMode:n,toggleDistractionFree:r}=(0,m.useDispatch)(tr),{enableComplementaryArea:a,disableComplementaryArea:s}=(0,m.useDispatch)(j),{replaceBlocks:i}=(0,m.useDispatch)(fe.store),{getBlockName:o,getSelectedBlockClientId:l,getBlockAttributes:c}=(0,m.useSelect)(fe.store),d=(e,t)=>{e.preventDefault();const n=0===t?"core/paragraph":"core/heading",r=l();if(null===r)return;const a=o(r);if("core/paragraph"!==a&&"core/heading"!==a)return;const s=c(r),d="core/paragraph"===a?"align":"textAlign",m="core/paragraph"===n?"align":"textAlign";i(r,(0,u.createBlock)(n,{level:t,content:s.content,[m]:s[d]}))};return(0,nr.useShortcut)("core/edit-site/toggle-block-settings-sidebar",(e=>{e.preventDefault(),t?s(Qt):a(Qt,Zy)})),(0,nr.useShortcut)("core/edit-site/toggle-mode",(()=>{n("visual"===e()?"text":"visual")})),(0,nr.useShortcut)("core/edit-site/transform-heading-to-paragraph",(e=>d(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,nr.useShortcut)(`core/edit-site/transform-paragraph-to-heading-${e}`,(t=>d(t,e)))})),(0,nr.useShortcut)("core/edit-site/toggle-distraction-free",(()=>{r()})),null};function Cv({nonAnimatedSrc:e,animatedSrc:t}){return(0,l.createElement)("picture",{className:"edit-site-welcome-guide__image"},(0,l.createElement)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,l.createElement)("img",{src:t,width:"312",height:"240",alt:""}))}function kv(){const{toggle:e}=(0,m.useDispatch)(T.store);return(0,m.useSelect)((e=>!!e(T.store).get("core/edit-site","welcomeGuide")),[])?(0,l.createElement)(b.Guide,{className:"edit-site-welcome-guide guide-editor",contentLabel:(0,E.__)("Welcome to the site editor"),finishButtonText:(0,E.__)("Get started"),onFinish:()=>e("core/edit-site","welcomeGuide"),pages:[{image:(0,l.createElement)(Cv,{nonAnimatedSrc:"https://s.w.org/images/block-editor/edit-your-site.svg?1",animatedSrc:"https://s.w.org/images/block-editor/edit-your-site.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Edit your site")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("Design everything on your site — from the header right down to the footer — using blocks.")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,g.createInterpolateElement)((0,E.__)("Click <StylesIconImage /> to start designing your blocks, and choose your typography, layout, and colors."),{StylesIconImage:(0,l.createElement)("img",{alt:(0,E.__)("styles"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z' fill='%231E1E1E'/%3E%3C/svg%3E%0A"})})))}]}):null}function Tv(){const{toggle:e}=(0,m.useDispatch)(T.store),{isActive:t,isStylesOpen:n}=(0,m.useSelect)((e=>{const t=e(j).getActiveComplementaryArea(tr.name);return{isActive:!!e(T.store).get("core/edit-site","welcomeGuideStyles"),isStylesOpen:"edit-site/global-styles"===t}}),[]);if(!t||!n)return null;const r=(0,E.__)("Welcome to Styles");return(0,l.createElement)(b.Guide,{className:"edit-site-welcome-guide guide-styles",contentLabel:r,finishButtonText:(0,E.__)("Get started"),onFinish:()=>e("core/edit-site","welcomeGuideStyles"),pages:[{image:(0,l.createElement)(Cv,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.svg?1",animatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},r),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("Tweak your site, or give it a whole new look! Get creative — how about a new color palette for your buttons, or choosing a new font? Take a look at what you can do here.")))},{image:(0,l.createElement)(Cv,{nonAnimatedSrc:"https://s.w.org/images/block-editor/set-the-design.svg?1",animatedSrc:"https://s.w.org/images/block-editor/set-the-design.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Set the design")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("You can customize your site as much as you like with different colors, typography, and layouts. Or if you prefer, just leave it up to your theme to handle!")))},{image:(0,l.createElement)(Cv,{nonAnimatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.svg?1",animatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Personalize blocks")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("You can adjust your blocks to ensure a cohesive experience across your site — add your unique colors to a branded Button block, or adjust the Heading block to your preferred size.")))},{image:(0,l.createElement)(Cv,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Learn more")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("New to block themes and styling your site?")," ",(0,l.createElement)(b.ExternalLink,{href:(0,E.__)("https://wordpress.org/documentation/article/styles-overview/")},(0,E.__)("Here’s a detailed guide to learn how to make the most of it."))))}]})}function Pv(){const{toggle:e}=(0,m.useDispatch)(T.store),t=(0,m.useSelect)((e=>{const t=!!e(T.store).get("core/edit-site","welcomeGuidePage"),n=!!e(T.store).get("core/edit-site","welcomeGuide"),{isPage:r}=e(tr);return t&&!n&&r()}),[]);if(!t)return null;const n=(0,E.__)("Editing a page");return(0,l.createElement)(b.Guide,{className:"edit-site-welcome-guide guide-page",contentLabel:n,finishButtonText:(0,E.__)("Continue"),onFinish:()=>e("core/edit-site","welcomeGuidePage"),pages:[{image:(0,l.createElement)("video",{className:"edit-site-welcome-guide__video",autoPlay:!0,loop:!0,muted:!0,width:"312",height:"240"},(0,l.createElement)("source",{src:"https://s.w.org/images/block-editor/editing-your-page.mp4",type:"video/mp4"})),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},n),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("It’s now possible to edit page content in the site editor. To customise other parts of the page like the header and footer switch to editing the template using the settings sidebar.")))}]})}function Iv(){const{toggle:e}=(0,m.useDispatch)(T.store),t=(0,m.useSelect)((e=>{const t=!!e(T.store).get("core/edit-site","welcomeGuideTemplate"),n=!!e(T.store).get("core/edit-site","welcomeGuide"),{isPage:r}=e(tr),{getCurrentPostType:a}=e(y.store);return t&&!n&&r()&&"wp_template"===a()}),[]);if(!t)return null;const n=(0,E.__)("Editing a template");return(0,l.createElement)(b.Guide,{className:"edit-site-welcome-guide guide-template",contentLabel:n,finishButtonText:(0,E.__)("Continue"),onFinish:()=>e("core/edit-site","welcomeGuideTemplate"),pages:[{image:(0,l.createElement)("video",{className:"edit-site-welcome-guide__video",autoPlay:!0,loop:!0,muted:!0,width:"312",height:"240"},(0,l.createElement)("source",{src:"https://s.w.org/images/block-editor/editing-your-template.mp4",type:"video/mp4"})),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},n),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("Note that the same template can be used by multiple pages, so any changes made here may affect other pages on the site. To switch back to editing the page content click the ‘Back’ button in the toolbar.")))}]})}function Mv(){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(kv,null),(0,l.createElement)(Tv,null),(0,l.createElement)(Pv,null),(0,l.createElement)(Iv,null))}function Av(e){const{slug:t,patterns:n}=(0,m.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(tr),{getEntityRecord:r,getBlockPatterns:a}=e(ye.store),s=n();return{slug:r("postType",t(),s).slug,patterns:a()}}),[]),r=(0,m.useSelect)((e=>e(ye.store).getCurrentTheme().stylesheet));return(0,g.useMemo)((()=>[{name:"fallback",blocks:(0,u.parse)(e),title:(0,E.__)("Fallback content")},...n.filter((e=>Array.isArray(e.templateTypes)&&e.templateTypes.some((e=>t.startsWith(e))))).map((e=>({...e,blocks:(0,u.parse)(e.content).map((e=>function(e){return e.innerBlocks.find((e=>"core/template-part"===e.name))&&(e.innerBlocks=e.innerBlocks.map((e=>("core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=r),e)))),"core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=r),e}(e)))})))]),[e,t,n])}function Ov({fallbackContent:e,onChoosePattern:t,postType:n}){const[,,r]=(0,ye.useEntityBlockEditor)("postType",n),a=Av(e),s=(0,ie.useAsyncList)(a);return(0,l.createElement)(fe.__experimentalBlockPatternsList,{blockPatterns:a,shownPatterns:s,onClickPattern:(e,n)=>{r(n,{selection:void 0}),t()}})}function Nv({slug:e,isCustom:t,onClose:n,postType:r}){const a=function(e,t=!1){return(0,m.useSelect)((n=>{const{getEntityRecord:r,getDefaultTemplateId:a}=n(ye.store),s=a({slug:e,is_custom:t,ignore_empty:!0});return s?r("postType",Ct,s)?.content?.raw:void 0}),[e,t])}(e,t);return a?(0,l.createElement)(b.Modal,{className:"edit-site-start-template-options__modal",title:(0,E.__)("Choose a pattern"),closeLabel:(0,E.__)("Cancel"),focusOnMount:"firstElement",onRequestClose:n,isFullScreen:!0},(0,l.createElement)("div",{className:"edit-site-start-template-options__modal-content"},(0,l.createElement)(Ov,{fallbackContent:a,slug:e,isCustom:t,postType:r,onChoosePattern:()=>{n()}})),(0,l.createElement)(b.Flex,{className:"edit-site-start-template-options__modal__actions",justify:"flex-end",expanded:!1},(0,l.createElement)(b.FlexItem,null,(0,l.createElement)(b.Button,{variant:"tertiary",onClick:n},(0,E.__)("Skip"))))):null}const Fv={INITIAL:"INITIAL",CLOSED:"CLOSED"};function Rv(){const[e,t]=(0,g.useState)(Fv.INITIAL),{shouldOpenModal:n,slug:r,isCustom:a,postType:s}=(0,m.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(tr),r=t(),a=n(),{getEditedEntityRecord:s,hasEditsForEntityRecord:i}=e(ye.store),o=s("postType",r,a);return{shouldOpenModal:!i("postType",r,a)&&""===o.content&&Ct===r&&!e(T.store).get("core/edit-site","welcomeGuide"),slug:o.slug,isCustom:o.is_custom,postType:r}}),[]);return e===Fv.INITIAL&&!n||e===Fv.CLOSED?null:(0,l.createElement)(Nv,{slug:r,isCustom:a,postType:s,onClose:()=>t(Fv.CLOSED)})}const{useGlobalStylesOutput:Dv}=Xe(fe.privateApis);function Vv(){return function(){const[e,t]=Dv(),{getSettings:n}=(0,m.useSelect)(tr),{updateSettings:r}=(0,m.useDispatch)(tr);(0,g.useEffect)((()=>{var a;if(!e||!t)return;const s=n(),i=Object.values(null!==(a=s.styles)&&void 0!==a?a:[]).filter((e=>!e.isGlobalStyles));r({...s,styles:[...i,...e],__experimentalFeatures:t})}),[e,t,r,n])}(),null}const{useLocation:Lv}=Xe(gt.privateApis);const{ProgressBar:Bv,Theme:zv}=Xe(b.privateApis),{useGlobalStyle:Hv}=Xe(fe.privateApis);function Gv({id:e}){var t;const[n]=Hv("color.text"),[r]=Hv("color.background"),{highlightedColors:a}=$e(),s=null!==(t=a[0]?.color)&&void 0!==t?t:n,{elapsed:i,total:o}=(0,m.useSelect)((e=>{var t,n;const r=e(ye.store).countSelectorsByStatus(),a=null!==(t=r.resolving)&&void 0!==t?t:0,s=null!==(n=r.finished)&&void 0!==n?n:0;return{elapsed:s,total:s+a}}),[]);return(0,l.createElement)("div",{className:"edit-site-canvas-loader"},(0,l.createElement)(zv,{accent:s,background:r},(0,l.createElement)(Bv,{id:e,max:o,value:i})))}const{EditorCanvas:Uv}=Xe(y.privateApis);const Wv=function({enableResizing:e,settings:t,children:n,...r}){const{hasBlocks:a,isFocusMode:s,templateType:i,canvasMode:o,isZoomOutMode:c}=(0,m.useSelect)((e=>{const{getBlockCount:t,__unstableGetEditorMode:n}=e(fe.store),{getEditedPostType:r,getCanvasMode:a}=Xe(e(tr)),s=r();return{templateType:s,isFocusMode:Ft.includes(s),isZoomOutMode:"zoom-out"===n(),canvasMode:a(),hasBlocks:!!t()}}),[]),{setCanvasMode:u}=Xe((0,m.useDispatch)(tr)),[d,p]=(0,g.useState)(!1);(0,g.useEffect)((()=>{"edit"===o&&p(!1)}),[o]);const h={"aria-label":(0,E.__)("Editor Canvas"),role:"button",tabIndex:0,onFocus:()=>p(!0),onBlur:()=>p(!1),onKeyDown:e=>{const{keyCode:t}=e;t!==wr.ENTER&&t!==wr.SPACE||(e.preventDefault(),u("edit"))},onClick:()=>u("edit"),readonly:!0},f=i===xt,y=!(f&&s&&a||"view"===o)&&void 0,v=(0,g.useMemo)((()=>[...t.styles,{css:`.is-root-container{display:flow-root;${e?"min-height:0!important;":""}}body{position:relative; ${"view"===o?"cursor: pointer; min-height: 100vh;":""}}}`}]),[t.styles,e,o]);return(0,l.createElement)(Uv,{className:_()("edit-site-editor-canvas__block-list",{"is-navigation-block":f}),renderAppender:y,styles:v,iframeProps:{expand:c,scale:c?.45:void 0,frameSize:c?100:void 0,className:_()("edit-site-visual-editor__editor-canvas",{"is-focused":d&&"view"===o}),...r,..."view"===o?h:{}}},n)},{useHistory:jv}=Xe(gt.privateApis);const{useBlockEditorSettings:Zv}=Xe(y.privateApis),{useLocation:qv,useHistory:Yv}=Xe(gt.privateApis);function Kv(){const e=function(){const e=jv();return(0,g.useCallback)((t=>{e.push({...t,focusMode:!0,canvas:"edit"})}),[e])}(),{templateSlug:t,canvasMode:n,settings:r,postWithTemplate:a}=(0,m.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n,getEditedPostContext:r,getCanvasMode:a,getSettings:s}=Xe(e(tr)),{getEditedEntityRecord:i}=e(ye.store),o=i("postType",t(),n()),l=r();return{templateSlug:o.slug,canvasMode:a(),settings:s(),postWithTemplate:l?.postId}}),[]),s=function(e){const t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/);let n,r,a,s=!1;if(t)t[1]?n=t[2]?t[2]:t[1]:t[3]&&(n=t[6]?t[6]:t[4],r=t[7]),n="tag"===n?"post_tag":n;else{const t=e?.match(/^(author)$|^author-(.+)$/);t&&(s=!0,t[2]&&(a=t[2]))}return(0,m.useSelect)((e=>{const{getEntityRecords:t,getTaxonomy:i,getAuthors:o}=e(ye.store);let l,c;if(n&&(l=i(n)?.labels?.singular_name),r){const e=t("taxonomy",n,{slug:r,per_page:1});e&&e[0]&&(c=e[0].name)}if(s&&(l="Author",a)){const e=o({slug:a});e&&e[0]&&(c=e[0].name)}return{archiveTypeLabel:l,archiveNameLabel:c}}),[a,s,n,r])}(t),i=a?"template-locked":"post-only",o=function(){const e=qv(),t=(0,ie.usePrevious)(e),n=Yv();return(0,g.useMemo)((()=>{const r=e.params.focusMode||e.params.postId&&Ft.includes(e.params.postType),a="edit"===t?.params.canvas;return r&&a?()=>n.back():void 0}),[e,n])}();return(0,g.useMemo)((()=>({...r,richEditingEnabled:!0,supportsTemplateMode:!0,focusMode:"view"!==n,defaultRenderingMode:i,onNavigateToEntityRecord:e,onNavigateToPreviousEntityRecord:o,__experimentalArchiveTitleTypeLabel:s.archiveTypeLabel,__experimentalArchiveTitleNameLabel:s.archiveNameLabel})),[r,n,i,e,o,s.archiveTypeLabel,s.archiveNameLabel])}const{useLocation:Xv}=Xe(gt.privateApis);function Jv(){const e=Xv(),{templateType:t,isFocusableEntity:n,isViewMode:r}=(0,m.useSelect)((e=>{const{getEditedPostType:t,getCanvasMode:n}=Xe(e(tr)),r=t();return{templateType:r,isFocusableEntity:Ft.includes(r),isViewMode:"view"===n()}}),[]),a=e.params.focusMode||n,[s,i]=(0,ie.useResizeObserver)(),o=function(){const e=Kv(),{postType:t,postId:n}=(0,m.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=Xe(e(tr));return{postType:t(),postId:n()}}),[]);return Zv(e,t,n)}(),c=(0,ie.useViewportMatch)("small","<"),u=a&&!r&&!c&&t!==Ct,d=t===xt&&a;return(0,l.createElement)($r.Slot,null,(([e])=>e?(0,l.createElement)("div",{className:"edit-site-visual-editor is-focus-mode"},e):(0,l.createElement)("div",{className:_()("edit-site-visual-editor",{"is-focus-mode":a||!!e,"is-view-mode":r})},(0,l.createElement)(Zr,{enableResizing:u,height:i.height&&!d?i.height:"100%"},(0,l.createElement)(Wv,{enableResizing:u,settings:o},s)))))}function Qv({clientId:e,onClose:t}){const{getBlocks:n}=(0,m.useSelect)(fe.store),{replaceBlocks:r}=(0,m.useDispatch)(fe.store);return(0,m.useSelect)((t=>t(fe.store).canRemoveBlock(e)),[e])?(0,l.createElement)(b.MenuItem,{onClick:()=>{r(e,n(e)),t()}},(0,E.__)("Detach")):null}function $v({clientIds:e,blocks:t}){const[n,r]=(0,g.useState)(!1),{replaceBlocks:a}=(0,m.useDispatch)(fe.store),{createSuccessNotice:s}=(0,m.useDispatch)(ge.store),{canCreate:i}=(0,m.useSelect)((e=>{const{supportsTemplatePartsMode:t}=e(tr).getSettings();return{canCreate:!t}}),[]);if(!i)return null;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.MenuItem,{icon:Ks,onClick:()=>{r(!0)},"aria-expanded":n,"aria-haspopup":"dialog"},(0,E.__)("Create template part")),n&&(0,l.createElement)(ei,{closeModal:()=>{r(!1)},blocks:t,onCreate:async t=>{a(e,(0,u.createBlock)("core/template-part",{slug:t.slug,theme:t.theme})),s((0,E.__)("Template part created."),{type:"snackbar"})}}))}function e_(){return(0,l.createElement)(fe.BlockSettingsMenuControls,null,(({selectedClientIds:e,onClose:t})=>(0,l.createElement)(t_,{clientIds:e,onClose:t})))}function t_({clientIds:e,onClose:t}){const n=(0,m.useSelect)((t=>t(fe.store).getBlocksByClientId(e)),[e]);return 1===n.length&&"core/template-part"===n[0]?.name?(0,l.createElement)(Qv,{clientId:e[0],onClose:t}):(0,l.createElement)($v,{clientIds:e,blocks:n})}const{BlockRemovalWarningModal:n_}=Xe(fe.privateApis),{ExperimentalEditorProvider:r_,InserterSidebar:a_,ListViewSidebar:s_}=Xe(y.privateApis),i_={body:(0,E.__)("Editor content"),sidebar:(0,E.__)("Editor settings"),actions:(0,E.__)("Editor publish"),footer:(0,E.__)("Editor footer")},o_={"core/query":(0,E.__)("Query Loop displays a list of posts or pages."),"core/post-content":(0,E.__)("Post Content displays the content of a post or page."),"core/post-template":(0,E.__)("Post Template displays each post or page in a Query Loop."),"bindings/core/pattern-overrides":(0,E.__)("Blocks from synced patterns that can have overriden content.")};function l_({isLoading:e}){const{record:t,getTitle:n,isLoaded:r}=Ds(),{type:a}=t,s=(0,ie.useViewportMatch)("medium"),{context:i,contextPost:o,editorMode:c,canvasMode:u,blockEditorMode:d,isRightSidebarOpen:p,isInserterOpen:h,isListViewOpen:f,isDistractionFree:v,showIconLabels:w,showBlockBreadcrumbs:S,postTypeLabel:x}=(0,m.useSelect)((e=>{const{get:t}=e(T.store),{getEditedPostContext:n,getEditorMode:r,getCanvasMode:a}=Xe(e(tr)),{__unstableGetEditorMode:s}=e(fe.store),{getActiveComplementaryArea:i}=e(j),{getEntityRecord:o}=e(ye.store),{isInserterOpened:l,isListViewOpened:c,getPostTypeLabel:u}=e(y.store),d=n();return{context:d,contextPost:d?.postId?o("postType",d.postType,d.postId):void 0,editorMode:r(),canvasMode:a(),blockEditorMode:s(),isInserterOpen:l(),isListViewOpen:c(),isRightSidebarOpen:i(tr.name),isDistractionFree:t("core","distractionFree"),showBlockBreadcrumbs:t("core","showBlockBreadcrumbs"),showIconLabels:t("core","showIconLabels"),postTypeLabel:u()}}),[]),C="edit"===u,k="view"===u||"visual"===c,P=!v&&S&&C&&k&&"zoom-out"!==d,I=C&&k&&h,M=C&&k&&f,A=f?(0,E.__)("List View"):(0,E.__)("Block Library"),O=!!i?.postId;let N;var F;r&&(N=(0,E.sprintf)((0,E.__)("%1$s ‹ %2$s"),n(),null!==(F=Rt[a])&&void 0!==F?F:Rt[Ct]));!function(e){const t=Lv(),n=(0,m.useSelect)((e=>e(ye.store).getEntityRecord("root","site")?.title),[]),r=(0,g.useRef)(!0);(0,g.useEffect)((()=>{r.current=!1}),[t]),(0,g.useEffect)((()=>{if(!r.current&&e&&n){const t=(0,E.sprintf)((0,E.__)("%1$s ‹ %2$s ‹ Editor — WordPress"),(0,en.decodeEntities)(e),(0,en.decodeEntities)(n));document.title=t,(0,Jt.speak)(e,"assertive")}}),[e,n,t])}(r&&N);const R=(0,ie.useInstanceId)(Gv,"edit-site-editor__loading-progress"),D=Kv(),V=!e&&(O&&!!o&&!!t||!O&&!!t);return(0,l.createElement)(l.Fragment,null,V?null:(0,l.createElement)(Gv,{id:R}),C&&(0,l.createElement)(Mv,null),r&&!t&&(0,l.createElement)(b.Notice,{status:"warning",isDismissible:!1},(0,E.__)("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")),V&&(0,l.createElement)(r_,{post:O?o:t,__unstableTemplate:O?t:void 0,settings:D,useSubRegistry:!1},(0,l.createElement)(Ev,null),C&&(0,l.createElement)(Rv,null),(0,l.createElement)(ce,{isDistractionFree:v,enableRegionNavigation:!1,className:_()("edit-site-editor__interface-skeleton",{"show-icon-labels":w}),notices:(0,l.createElement)(y.EditorSnackbars,null),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Vv,null),C&&(0,l.createElement)(y.EditorNotices,null),k&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e_,null),(0,l.createElement)(_v,null,(0,l.createElement)(fe.BlockInspector,null)),!s&&(0,l.createElement)(fe.BlockToolbar,{hideDragHandle:!0}),(0,l.createElement)(Jv,null),(0,l.createElement)(n_,{rules:o_}),(0,l.createElement)(Ju,null)),"text"===c&&C&&(0,l.createElement)(Sv,null),C&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(xv,null),(0,l.createElement)(y.EditorKeyboardShortcutsRegister,null),(0,l.createElement)(y.EditorKeyboardShortcuts,null))),secondarySidebar:C&&(I&&(0,l.createElement)(a_,null)||M&&(0,l.createElement)(s_,null)),sidebar:!v&&C&&p&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(se.Slot,{scope:"core/edit-site"})),footer:P&&(0,l.createElement)(fe.BlockBreadcrumb,{rootLabelText:x}),labels:{...i_,secondarySidebar:A}})))}const c_=(0,g.memo)((function({view:e,onChangeView:t,paginationInfo:{totalItems:n=0,totalPages:r}}){return n&&r?!!n&&1!==r&&(0,l.createElement)(b.__experimentalHStack,{expanded:!1,spacing:6,justify:"end",className:"dataviews-pagination"},(0,l.createElement)(b.__experimentalHStack,{justify:"flex-start",expanded:!1,spacing:2,className:"dataviews-pagination__page-selection"},(0,g.createInterpolateElement)((0,E.sprintf)((0,E._x)("Page <CurrentPageControl /> of %s","paging"),r),{CurrentPageControl:(0,l.createElement)(b.SelectControl,{"aria-label":(0,E.__)("Current page"),value:e.page,options:Array.from(Array(r)).map(((e,t)=>{const n=t+1;return{value:n,label:n}})),onChange:n=>{t({...e,page:+n})},size:"compact",__nextHasNoMarginBottom:!0})})),(0,l.createElement)(b.__experimentalHStack,{expanded:!1,spacing:1},(0,l.createElement)(b.Button,{onClick:()=>t({...e,page:e.page-1}),disabled:1===e.page,__experimentalIsFocusable:!0,label:(0,E.__)("Previous page"),icon:dr,showTooltip:!0,size:"compact",tooltipPosition:"top"}),(0,l.createElement)(b.Button,{onClick:()=>t({...e,page:e.page+1}),disabled:e.page>=r,__experimentalIsFocusable:!0,label:(0,E.__)("Next page"),icon:ur,showTooltip:!0,size:"compact",tooltipPosition:"top"}))):null})),u_=c_,{DropdownMenuV2:d_,DropdownMenuGroupV2:m_,DropdownMenuItemV2:p_,DropdownMenuRadioItemV2:h_,DropdownMenuCheckboxItemV2:f_,DropdownMenuItemLabelV2:g_}=Vo(b.privateApis);function y_({view:e,onChangeView:t,supportedLayouts:n}){let r=Pl;if(n&&(r=r.filter((e=>n.includes(e.type)))),1===r.length)return null;const a=r.find((t=>e.type===t.type));return(0,l.createElement)(d_,{trigger:(0,l.createElement)(p_,{suffix:(0,l.createElement)("span",{"aria-hidden":"true"},a.label)},(0,l.createElement)(g_,null,(0,E.__)("Layout")))},r.map((n=>(0,l.createElement)(h_,{key:n.type,value:n.type,name:"view-actions-available-view",checked:n.type===e.type,hideOnClick:!0,onChange:n=>{t({...e,type:n.target.value})}},(0,l.createElement)(g_,null,n.label)))))}const v_=[10,20,50,100];function __({view:e,onChangeView:t}){return(0,l.createElement)(d_,{trigger:(0,l.createElement)(p_,{suffix:(0,l.createElement)("span",{"aria-hidden":"true"},e.perPage)},(0,l.createElement)(g_,null,(0,E.__)("Items per page")))},v_.map((n=>(0,l.createElement)(h_,{key:n,value:n,name:"view-actions-page-size",checked:e.perPage===n,onChange:()=>{t({...e,perPage:n,page:1})}},(0,l.createElement)(g_,null,n)))))}function b_({view:e,onChangeView:t,fields:n}){const r=n.filter((t=>!1!==t.enableHiding&&t.id!==e.layout.mediaField));return r?.length?(0,l.createElement)(d_,{trigger:(0,l.createElement)(p_,null,(0,l.createElement)(g_,null,(0,E.__)("Fields")))},r?.map((n=>(0,l.createElement)(f_,{key:n.id,value:n.id,checked:!e.hiddenFields?.includes(n.id),onChange:()=>{t({...e,hiddenFields:e.hiddenFields?.includes(n.id)?e.hiddenFields.filter((e=>e!==n.id)):[...e.hiddenFields||[],n.id]})}},(0,l.createElement)(g_,null,n.header))))):null}function E_({fields:e,view:t,onChangeView:n}){const r=e.filter((e=>!1!==e.enableSorting));if(!r?.length)return null;const a=e.find((e=>e.id===t.sort?.field));return(0,l.createElement)(d_,{trigger:(0,l.createElement)(p_,{suffix:(0,l.createElement)("span",{"aria-hidden":"true"},a?.header)},(0,l.createElement)(g_,null,(0,E.__)("Sort by")))},r?.map((e=>{const r=t.sort?.direction;return(0,l.createElement)(d_,{key:e.id,trigger:(0,l.createElement)(p_,null,(0,l.createElement)(g_,null,e.header)),style:{minWidth:"220px"}},Object.entries(Cl).map((([s,i])=>{const o=void 0!==a&&r===s&&e.id===a.id,c=`${e.id}-${s}`;return(0,l.createElement)(h_,{key:c,name:"view-actions-sorting",value:c,checked:o,onChange:()=>{n({...t,sort:{field:e.id,direction:s}})}},(0,l.createElement)(g_,null,i.label))})))})))}const w_=(0,g.memo)((function({fields:e,view:t,onChangeView:n,supportedLayouts:r}){return(0,l.createElement)(d_,{trigger:(0,l.createElement)(b.Button,{size:"compact",icon:nm,label:(0,E.__)("View options")})},(0,l.createElement)(m_,null,(0,l.createElement)(y_,{view:t,onChangeView:n,supportedLayouts:r}),(0,l.createElement)(E_,{fields:e,view:t,onChangeView:n}),(0,l.createElement)(b_,{fields:e,view:t,onChangeView:n}),(0,l.createElement)(__,{view:t,onChangeView:n})))}));var S_=Object.defineProperty,x_=Object.defineProperties,C_=Object.getOwnPropertyDescriptors,k_=Object.getOwnPropertySymbols,T_=Object.prototype.hasOwnProperty,P_=Object.prototype.propertyIsEnumerable,I_=(e,t,n)=>t in e?S_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M_=(e,t)=>{for(var n in t||(t={}))T_.call(t,n)&&I_(e,n,t[n]);if(k_)for(var n of k_(t))P_.call(t,n)&&I_(e,n,t[n]);return e},A_=(e,t)=>x_(e,C_(t)),O_=(e,t)=>{var n={};for(var r in e)T_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&k_)for(var r of k_(e))t.indexOf(r)<0&&P_.call(e,r)&&(n[r]=e[r]);return n},N_=Object.defineProperty,F_=Object.defineProperties,R_=Object.getOwnPropertyDescriptors,D_=Object.getOwnPropertySymbols,V_=Object.prototype.hasOwnProperty,L_=Object.prototype.propertyIsEnumerable,B_=(e,t,n)=>t in e?N_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,z_=(e,t)=>{for(var n in t||(t={}))V_.call(t,n)&&B_(e,n,t[n]);if(D_)for(var n of D_(t))L_.call(t,n)&&B_(e,n,t[n]);return e},H_=(e,t)=>F_(e,R_(t)),G_=(e,t)=>{var n={};for(var r in e)V_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&D_)for(var r of D_(e))t.indexOf(r)<0&&L_.call(e,r)&&(n[r]=e[r]);return n};function U_(...e){}function W_(e,t){return"function"==typeof Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function j_(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function Z_(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function q_(e){return e}function Y_(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function K_(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function X_(...e){for(const t of e)if(void 0!==t)return t}function J_(e){return function(e){return!!e&&!!(0,l.isValidElement)(e)&&"ref"in e}(e)?e.ref:null}var Q_,$_="undefined"!=typeof window&&!!(null==(Q_=window.document)?void 0:Q_.createElement);function eb(e){return e?e.ownerDocument||e:document}function tb(e,t=!1){const{activeElement:n}=eb(e);if(!(null==n?void 0:n.nodeName))return null;if("IFRAME"===n.tagName&&n.contentDocument)return tb(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=eb(n).getElementById(e);if(t)return t}}return n}function nb(e,t){return e===t||e.contains(t)}function rb(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==ab.indexOf(e.type)}var ab=["button","color","file","image","reset","submit"];function sb(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function ib(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function ob(e,t){const n=null==e?void 0:e.getAttribute("role");return n&&-1!==["dialog","menu","listbox","tree","grid"].indexOf(n)?n:t}function lb(e,t){var n;const r=ob(e);if(!r)return t;return null!=(n={menu:"menuitem",listbox:"option",tree:"treeitem",grid:"gridcell"}[r])?n:t}function cb(e){if(!e)return null;if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}return cb(e.parentElement)||document.scrollingElement||document.body}function ub(e,...t){/text|search|password|tel|url/i.test(e.type)&&e.setSelectionRange(...t)}function db(){return $_&&!!navigator.maxTouchPoints}function mb(){return!!$_&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function pb(){return $_&&mb()&&/apple/i.test(navigator.vendor)}function hb(e){return Boolean(e.currentTarget&&!nb(e.currentTarget,e.target))}function fb(e){return e.target===e.currentTarget}function gb(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),a=H_(z_({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",a)),r}function yb(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function vb(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!nb(n,r)}function _b(e,t,n){const r=requestAnimationFrame((()=>{e.removeEventListener(t,a,!0),n()})),a=()=>{cancelAnimationFrame(r),n()};return e.addEventListener(t,a,{once:!0,capture:!0}),r}function bb(e,t,n,r=window){const a=[];try{r.document.addEventListener(e,t,n);for(const s of Array.from(r.frames))a.push(bb(e,t,n,s))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}a.forEach((e=>e()))}}var Eb=M_({},c),wb=Eb.useId,Sb=(Eb.useDeferredValue,Eb.useInsertionEffect),xb=$_?l.useLayoutEffect:l.useEffect;function Cb(e){const t=(0,l.useRef)(e);return xb((()=>{t.current=e})),t}function kb(e){const t=(0,l.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return Sb?Sb((()=>{t.current=e})):t.current=e,(0,l.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function Tb(...e){return(0,l.useMemo)((()=>{if(e.some(Boolean))return t=>{e.forEach((e=>function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)))}}),e)}function Pb(e){if(wb){const t=wb();return e||t}const[t,n]=(0,l.useState)(e);return xb((()=>{if(e||t)return;const r=Math.random().toString(36).substr(2,6);n(`id-${r}`)}),[e,t]),e||t}function Ib(e,t){const n=e=>{if("string"==typeof e)return e},[r,a]=(0,l.useState)((()=>n(t)));return xb((()=>{const r=e&&"current"in e?e.current:e;a((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),r}function Mb(e,t){const n=(0,l.useRef)(!1);(0,l.useEffect)((()=>{if(n.current)return e();n.current=!0}),t),(0,l.useEffect)((()=>()=>{n.current=!1}),[])}Symbol("setNextState");function Ab(e){return kb("function"==typeof e?e:()=>e)}function Ob(e,t,n=[]){const r=(0,l.useCallback)((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return A_(M_({},e),{wrapElement:r})}var Nb=!1,Fb=0,Rb=0;function Db(e){(function(e){const t=e.movementX||e.screenX-Fb,n=e.movementY||e.screenY-Rb;return Fb=e.screenX,Rb=e.screenY,t||n||!1})(e)&&(Nb=!0)}function Vb(){Nb=!1}function Lb(e,t){const n=e.__unstableInternals;return Y_(n,"Invalid store"),n[t]}function Bb(e,...t){let n=e,r=n,a=Symbol(),s=U_;const i=new Set,o=new Set,l=new Set,c=new Set,u=new Set,d=new WeakMap,m=new WeakMap,p=(e,t,n=c)=>(n.add(t),m.set(t,e),()=>{var e;null==(e=d.get(t))||e(),d.delete(t),m.delete(t),n.delete(t)}),h=(e,s,i=!1)=>{if(!W_(n,e))return;const l=function(e,t){if(function(e){return"function"==typeof e}(e))return e(function(e){return"function"==typeof e}(t)?t():t);return e}(s,n[e]);if(l===n[e])return;i||t.forEach((t=>{var n;null==(n=null==t?void 0:t.setState)||n.call(t,e,l)}));const p=n;n=H_(z_({},n),{[e]:l});const h=Symbol();a=h,o.add(e);const f=(t,r,a)=>{var s;const i=m.get(t);i&&!i.some((t=>a?a.has(t):t===e))||(null==(s=d.get(t))||s(),d.set(t,t(n,r)))};c.forEach((e=>{f(e,p)})),queueMicrotask((()=>{if(a!==h)return;const e=n;u.forEach((e=>{f(e,r,o)})),r=e,o.clear()}))},f={getState:()=>n,setState:h,__unstableInternals:{setup:e=>(l.add(e),()=>l.delete(e)),init:()=>{const e=i.size,r=Symbol();i.add(r);const a=()=>{i.delete(r),i.size||s()};if(e)return a;const o=(c=n,Object.keys(c)).map((e=>j_(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&W_(r,e))return Ub(t,[e],(t=>{h(e,t[e],!0)}))})))));var c;const u=[];l.forEach((e=>u.push(e())));const d=t.map(Hb);return s=j_(...o,...u,...d),a},subscribe:(e,t)=>p(e,t),sync:(e,t)=>(d.set(t,t(n,n)),p(e,t)),batch:(e,t)=>(d.set(t,t(n,r)),p(e,t,u)),pick:e=>Bb(function(e,t){const n={};for(const r of t)W_(e,r)&&(n[r]=e[r]);return n}(n,e),f),omit:e=>Bb(function(e,t){const n=z_({},e);for(const e of t)W_(n,e)&&delete n[e];return n}(n,e),f)}};return f}function zb(e,...t){if(e)return Lb(e,"setup")(...t)}function Hb(e,...t){if(e)return Lb(e,"init")(...t)}function Gb(e,...t){if(e)return Lb(e,"subscribe")(...t)}function Ub(e,...t){if(e)return Lb(e,"sync")(...t)}function Wb(e,...t){if(e)return Lb(e,"batch")(...t)}function jb(e,...t){if(e)return Lb(e,"omit")(...t)}function Zb(...e){const t=e.reduce(((e,t)=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);return r?z_(z_({},e),r):e}),{});return Bb(t,...e)}var qb=a(422),{useSyncExternalStore:Yb}=qb,Kb=()=>()=>{};function Xb(e,t=q_){const n=l.useCallback((t=>e?Gb(e,null,t):Kb()),[e]),r=()=>{const n="string"==typeof t?t:null,r="function"==typeof t?t:null,a=null==e?void 0:e.getState();return r?r(a):a&&n&&W_(a,n)?a[n]:void 0};return Yb(n,r,r)}function Jb(e,t,n,r){const a=W_(t,n)?t[n]:void 0,s=r?t[r]:void 0,i=Cb({value:a,setValue:s});xb((()=>Ub(e,[n],((e,t)=>{const{value:r,setValue:a}=i.current;a&&e[n]!==t[n]&&e[n]!==r&&a(e[n])}))),[e,n]),xb((()=>{if(void 0!==a)return e.setState(n,a),Wb(e,[n],(()=>{void 0!==a&&e.setState(n,a)}))}))}function Qb(e,t,n){return Mb(t,[n.store]),Jb(e,n,"items","setItems"),e}function $b(e,t,n){return Jb(e=Qb(e,t,n),n,"activeId","setActiveId"),Jb(e,n,"includesBaseElement"),Jb(e,n,"virtualFocus"),Jb(e,n,"orientation"),Jb(e,n,"rtl"),Jb(e,n,"focusLoop"),Jb(e,n,"focusWrap"),Jb(e,n,"focusShift"),e}function eE(e,t,n){return Mb(t,[n.store,n.disclosure]),Jb(e,n,"open","setOpen"),Jb(e,n,"mounted","setMounted"),Jb(e,n,"animated"),e}function tE(e,t,n){return eE(e,t,n)}function nE(e,t,n){return Mb(t,[n.popover]),Jb(e=tE(e,t,n),n,"placement"),e}function rE(e={}){return function(e={}){const t=Zb(e.store,jb(e.disclosure,["contentElement","disclosureElement"])),n=null==t?void 0:t.getState(),r=X_(e.open,null==n?void 0:n.open,e.defaultOpen,!1),a=X_(e.animated,null==n?void 0:n.animated,!1),s=Bb({open:r,animated:a,animating:!!a&&r,mounted:r,contentElement:X_(null==n?void 0:n.contentElement,null),disclosureElement:X_(null==n?void 0:n.disclosureElement,null)},t);return zb(s,(()=>Ub(s,["animated","animating"],(e=>{e.animated||s.setState("animating",!1)})))),zb(s,(()=>Gb(s,["open"],(()=>{s.getState().animated&&s.setState("animating",!0)})))),zb(s,(()=>Ub(s,["open","animating"],(e=>{s.setState("mounted",e.open||e.animating)})))),H_(z_({},s),{setOpen:e=>s.setState("open",e),show:()=>s.setState("open",!0),hide:()=>s.setState("open",!1),toggle:()=>s.setState("open",(e=>!e)),stopAnimation:()=>s.setState("animating",!1),setContentElement:e=>s.setState("contentElement",e),setDisclosureElement:e=>s.setState("disclosureElement",e)})}(e)}function aE(e){const t=e.map(((e,t)=>[t,e]));let n=!1;return t.sort((([e,t],[r,a])=>{const s=t.element,i=a.element;return s===i?0:s&&i?function(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}(s,i)?(e>r&&(n=!0),-1):(e<r&&(n=!0),1):0})),n?t.map((([e,t])=>t)):e}function sE(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=X_(e.items,null==n?void 0:n.items,e.defaultItems,[]),a=new Map(r.map((e=>[e.id,e]))),s={items:r,renderedItems:X_(null==n?void 0:n.renderedItems,[])},i=function(e){return null==e?void 0:e.__unstablePrivateStore}(e.store),o=Bb({items:r,renderedItems:s.renderedItems},i),l=Bb(s,e.store),c=e=>{const t=aE(e);o.setState("renderedItems",t),l.setState("renderedItems",t)};zb(l,(()=>Hb(o))),zb(o,(()=>Wb(o,["items"],(e=>{l.setState("items",e.items)})))),zb(o,(()=>Wb(o,["renderedItems"],(e=>{let t=!0,n=requestAnimationFrame((()=>{const{renderedItems:t}=l.getState();e.renderedItems!==t&&c(e.renderedItems)}));if("function"!=typeof IntersectionObserver)return()=>cancelAnimationFrame(n);const r=function(e){var t;const n=e.find((e=>!!e.element)),r=[...e].reverse().find((e=>!!e.element));let a=null==(t=null==n?void 0:n.element)?void 0:t.parentElement;for(;a&&(null==r?void 0:r.element);){if(r&&a.contains(r.element))return a;a=a.parentElement}return eb(a).body}(e.renderedItems),a=new IntersectionObserver((()=>{t?t=!1:(cancelAnimationFrame(n),n=requestAnimationFrame((()=>c(e.renderedItems))))}),{root:r});for(const t of e.renderedItems)t.element&&a.observe(t.element);return()=>{cancelAnimationFrame(n),a.disconnect()}}))));const u=(e,t,n=!1)=>{let r;t((t=>{const n=t.findIndex((({id:t})=>t===e.id)),s=t.slice();if(-1!==n){r=t[n];const i=z_(z_({},r),e);s[n]=i,a.set(e.id,i)}else s.push(e),a.set(e.id,e);return s}));return()=>{t((t=>{if(!r)return n&&a.delete(e.id),t.filter((({id:t})=>t!==e.id));const s=t.findIndex((({id:t})=>t===e.id));if(-1===s)return t;const i=t.slice();return i[s]=r,a.set(e.id,r),i}))}},d=e=>u(e,(e=>o.setState("items",e)),!0);return H_(z_({},l),{registerItem:d,renderItem:e=>j_(d(e),u(e,(e=>o.setState("renderedItems",e)))),item:e=>{if(!e)return null;let t=a.get(e);if(!t){const{items:n}=l.getState();t=n.find((t=>t.id===e)),t&&a.set(e,t)}return t||null},__unstablePrivateStore:o})}function iE(e){const t=[];for(const n of e)t.push(...n);return t}function oE(e){return e.slice().reverse()}var lE={id:null};function cE(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function uE(e,t){return e.filter((e=>e.rowId===t))}function dE(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}function mE(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function pE(e,t,n){const r=mE(e);for(const a of e)for(let e=0;e<r;e+=1){const r=a[e];if(!r||n&&r.disabled){const r=0===e&&n?cE(a):a[e-1];a[e]=r&&t!==r.id&&n?r:{id:"__EMPTY_ITEM__",disabled:!0,rowId:null==r?void 0:r.rowId}}}return e}function hE(e){const t=dE(e),n=mE(t),r=[];for(let e=0;e<n;e+=1)for(const n of t){const t=n[e];t&&r.push(H_(z_({},t),{rowId:t.rowId?`${e}`:void 0}))}return r}function fE(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=sE(e),a=X_(e.activeId,null==n?void 0:n.activeId,e.defaultActiveId),s=Bb(H_(z_({},r.getState()),{activeId:a,baseElement:X_(null==n?void 0:n.baseElement,null),includesBaseElement:X_(e.includesBaseElement,null==n?void 0:n.includesBaseElement,null===a),moves:X_(null==n?void 0:n.moves,0),orientation:X_(e.orientation,null==n?void 0:n.orientation,"both"),rtl:X_(e.rtl,null==n?void 0:n.rtl,!1),virtualFocus:X_(e.virtualFocus,null==n?void 0:n.virtualFocus,!1),focusLoop:X_(e.focusLoop,null==n?void 0:n.focusLoop,!1),focusWrap:X_(e.focusWrap,null==n?void 0:n.focusWrap,!1),focusShift:X_(e.focusShift,null==n?void 0:n.focusShift,!1)}),r,e.store);zb(s,(()=>Ub(s,["renderedItems","activeId"],(e=>{s.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=cE(e.renderedItems))?void 0:n.id}))}))));const i=(e,t,n,r)=>{var a,i;const{activeId:o,rtl:l,focusLoop:c,focusWrap:u,includesBaseElement:d}=s.getState(),m=l&&"vertical"!==t?oE(e):e;if(null==o)return null==(a=cE(m))?void 0:a.id;const p=m.find((e=>e.id===o));if(!p)return null==(i=cE(m))?void 0:i.id;const h=!!p.rowId,f=m.indexOf(p),g=m.slice(f+1),y=uE(g,p.rowId);if(void 0!==r){const e=function(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(y,o),t=e.slice(r)[0]||e[e.length-1];return null==t?void 0:t.id}const v=function(e){return"vertical"===e?"horizontal":"horizontal"===e?"vertical":void 0}(h?t||"horizontal":t),_=c&&c!==v,b=h&&u&&u!==v;if(n=n||!h&&_&&d,_){const e=function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[lE]:[],...e.slice(0,r)]}(b&&!n?m:uE(m,p.rowId),o,n),t=cE(e,o);return null==t?void 0:t.id}if(b){const e=cE(n?y:g,o);return n?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const E=cE(y,o);return!E&&n?null:null==E?void 0:E.id};return H_(z_(z_({},r),s),{setBaseElement:e=>s.setState("baseElement",e),setActiveId:e=>s.setState("activeId",e),move:e=>{void 0!==e&&(s.setState("activeId",e),s.setState("moves",(e=>e+1)))},first:()=>{var e;return null==(e=cE(s.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=cE(oE(s.getState().renderedItems)))?void 0:e.id},next:e=>{const{renderedItems:t,orientation:n}=s.getState();return i(t,n,!1,e)},previous:e=>{var t;const{renderedItems:n,orientation:r,includesBaseElement:a}=s.getState(),o=!!!(null==(t=cE(n))?void 0:t.rowId)&&a;return i(oE(n),r,o,e)},down:e=>{const{activeId:t,renderedItems:n,focusShift:r,focusLoop:a,includesBaseElement:o}=s.getState(),l=r&&!e,c=hE(iE(pE(dE(n),t,l)));return i(c,"vertical",a&&"horizontal"!==a&&o,e)},up:e=>{const{activeId:t,renderedItems:n,focusShift:r,includesBaseElement:a}=s.getState(),o=r&&!e,l=hE(oE(iE(pE(dE(n),t,o))));return i(l,"vertical",a,e)}})}var gE=pb()&&db();function yE(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=X_(e.activeId,null==n?void 0:n.activeId,e.defaultActiveId,null),a=fE(H_(z_({},e),{activeId:r,includesBaseElement:X_(e.includesBaseElement,null==n?void 0:n.includesBaseElement,!0),orientation:X_(e.orientation,null==n?void 0:n.orientation,"vertical"),focusLoop:X_(e.focusLoop,null==n?void 0:n.focusLoop,!0),focusWrap:X_(e.focusWrap,null==n?void 0:n.focusWrap,!0),virtualFocus:X_(e.virtualFocus,null==n?void 0:n.virtualFocus,!gE)})),s=function(e={}){var t=e,{popover:n}=t,r=G_(t,["popover"]);const a=Zb(r.store,jb(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),s=null==a?void 0:a.getState(),i=rE(H_(z_({},r),{store:a})),o=X_(r.placement,null==s?void 0:s.placement,"bottom"),l=Bb(H_(z_({},i.getState()),{placement:o,currentPlacement:o,anchorElement:X_(null==s?void 0:s.anchorElement,null),popoverElement:X_(null==s?void 0:s.popoverElement,null),arrowElement:X_(null==s?void 0:s.arrowElement,null),rendered:Symbol("rendered")}),i,a);return H_(z_(z_({},i),l),{setAnchorElement:e=>l.setState("anchorElement",e),setPopoverElement:e=>l.setState("popoverElement",e),setArrowElement:e=>l.setState("arrowElement",e),render:()=>l.setState("rendered",Symbol("rendered"))})}(H_(z_({},e),{placement:X_(e.placement,null==n?void 0:n.placement,"bottom-start")})),i=X_(e.value,null==n?void 0:n.value,e.defaultValue,""),o=X_(e.selectedValue,null==n?void 0:n.selectedValue,e.defaultSelectedValue,""),l=Array.isArray(o),c=Bb(H_(z_(z_({},a.getState()),s.getState()),{value:i,selectedValue:o,resetValueOnSelect:X_(e.resetValueOnSelect,null==n?void 0:n.resetValueOnSelect,l),resetValueOnHide:X_(e.resetValueOnHide,null==n?void 0:n.resetValueOnHide,l),activeValue:null==n?void 0:n.activeValue}),a,s,e.store);return zb(c,(()=>Ub(c,["resetValueOnHide","mounted"],(e=>{e.resetValueOnHide&&(e.mounted||c.setState("value",i))})))),zb(c,(()=>Ub(c,["resetValueOnSelect","selectedValue"],(e=>{e.resetValueOnSelect&&c.setState("value",i)})))),zb(c,(()=>Wb(c,["mounted"],(e=>{e.mounted||(c.setState("activeId",r),c.setState("moves",0))})))),zb(c,(()=>Ub(c,["moves","activeId"],((e,t)=>{e.moves===t.moves&&c.setState("activeValue",void 0)})))),zb(c,(()=>Wb(c,["moves","renderedItems"],((e,t)=>{if(e.moves===t.moves)return;const{activeId:n}=c.getState(),r=a.item(n);c.setState("activeValue",null==r?void 0:r.value)})))),H_(z_(z_(z_({},s),a),c),{setValue:e=>c.setState("value",e),setSelectedValue:e=>c.setState("selectedValue",e)})}function vE(e={}){const[t,n]=function(e,t){const[n,r]=l.useState((()=>e(t)));xb((()=>Hb(n)),[n]);const a=l.useCallback((e=>Xb(n,e)),[n]);return[l.useMemo((()=>A_(M_({},n),{useState:a})),[n,a]),kb((()=>{r((n=>e(M_(M_({},t),n.getState()))))}))]}(yE,e);return function(e,t,n){return Jb(e=$b(e=nE(e,t,n),t,n),n,"value","setValue"),Jb(e,n,"selectedValue","setSelectedValue"),Jb(e,n,"resetValueOnHide"),Jb(e,n,"resetValueOnSelect"),e}(t,n,e)}var _E=a(4922);function bE(e){return l.forwardRef(((t,n)=>e(M_({ref:n},t))))}function EE(e){const t=bE(e);return l.memo(t)}function wE(e,t){const n=t,{as:r,wrapElement:a,render:s}=n,i=O_(n,["as","wrapElement","render"]);let o;const c=Tb(t.ref,J_(s));if(r&&"string"!=typeof r)o=(0,_E.jsx)(r,A_(M_({},i),{render:s}));else if(l.isValidElement(s)){const e=A_(M_({},s.props),{ref:c});o=l.cloneElement(s,function(e,t){const n=M_({},e);for(const r in t){if(!W_(t,r))continue;if("className"===r){const r="className";n[r]=e[r]?`${e[r]} ${t[r]}`:t[r];continue}if("style"===r){const r="style";n[r]=e[r]?M_(M_({},e[r]),t[r]):t[r];continue}const a=t[r];if("function"==typeof a&&r.startsWith("on")){const t=e[r];if("function"==typeof t){n[r]=(...e)=>{a(...e),t(...e)};continue}}n[r]=a}return n}(i,e))}else if(s)o=s(i);else if("function"==typeof t.children){0;const e=i,{children:n}=e,r=O_(e,["children"]);o=t.children(r)}else o=r?(0,_E.jsx)(r,M_({},i)):(0,_E.jsx)(e,M_({},i));return a?a(o):o}function SE(e){return(t={})=>{const n=e(t),r={};for(const e in n)W_(n,e)&&void 0!==n[e]&&(r[e]=n[e]);return r}}function xE(e=[],t=[]){const n=l.createContext(void 0),r=l.createContext(void 0),a=()=>l.useContext(n),s=t=>e.reduceRight(((e,n)=>(0,_E.jsx)(n,A_(M_({},t),{children:e}))),(0,_E.jsx)(n.Provider,M_({},t)));return{context:n,scopedContext:r,useContext:a,useScopedContext:(e=!1)=>{const t=l.useContext(r),n=a();return e?t:t||n},useProviderContext:()=>{const e=l.useContext(r),t=a();if(!e||e!==t)return t},ContextProvider:s,ScopedContextProvider:e=>(0,_E.jsx)(s,A_(M_({},e),{children:t.reduceRight(((t,n)=>(0,_E.jsx)(n,A_(M_({},e),{children:t}))),(0,_E.jsx)(r.Provider,M_({},e)))}))}}var CE=xE(),kE=CE.useContext,TE=(CE.useScopedContext,CE.useProviderContext,xE([CE.ContextProvider],[CE.ScopedContextProvider])),PE=TE.useContext,IE=(TE.useScopedContext,TE.useProviderContext),ME=TE.ContextProvider,AE=TE.ScopedContextProvider,OE=(0,l.createContext)(void 0),NE=(0,l.createContext)(void 0),FE=xE(),RE=(FE.useContext,FE.useScopedContext,FE.useProviderContext),DE=xE([FE.ContextProvider],[FE.ScopedContextProvider]),VE=(DE.useContext,DE.useScopedContext,DE.useProviderContext,DE.ContextProvider),LE=DE.ScopedContextProvider,BE=((0,l.createContext)(void 0),(0,l.createContext)(void 0),xE([VE],[LE])),zE=(BE.useContext,BE.useScopedContext,BE.useProviderContext),HE=BE.ContextProvider,GE=BE.ScopedContextProvider,UE=xE([HE,ME],[GE,AE]),WE=(UE.useContext,UE.useScopedContext),jE=UE.useProviderContext,ZE=UE.ContextProvider,qE=UE.ScopedContextProvider,YE=(0,l.createContext)(void 0),KE=(0,l.createContext)(!1);function XE(e={}){const t=vE(e);return(0,_E.jsx)(ZE,{value:t,children:e.children})}var JE=SE((e=>{var t=e,{store:n}=t,r=O_(t,["store"]);const a=jE();Y_(n=n||a,!1);const s=n.useState((e=>{var t;return null==(t=e.baseElement)?void 0:t.id}));return r=M_({htmlFor:s},r)})),QE=EE((e=>wE("label",JE(e))));var $E=SE((e=>{var t=e,{store:n}=t,r=O_(t,["store"]);const a=zE();return n=n||a,r=A_(M_({},r),{ref:Tb(null==n?void 0:n.setAnchorElement,r.ref)})}));bE((e=>wE("div",$E(e))));function ew(e,t){return t&&e.item(t)||null}var tw=Symbol("FOCUS_SILENTLY");function nw(e,t,n){if(!t)return!1;if(t===n)return!1;const r=e.item(t.id);return!!r&&(!n||r.element!==n)}var rw=(0,l.createContext)(!0),aw="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 sw(e){return!!sb(e,aw)&&(!!function(e){const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)&&!function(e,t){if("closest"in e)return e.closest(t);do{if(sb(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}(e,"[inert]"))}function iw(e){const t=tb(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function ow(e){const t=tb(e);if(!t)return!1;if(nb(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&("id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`)))}var lw=pb(),cw=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function uw(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function dw(e,t,n,r,a){return e?t?n&&!r?-1:void 0:n?a:a||0:a}function mw(e,t){return kb((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var pw=!0;function hw(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(pw=!1))}function fw(e){e.metaKey||e.ctrlKey||e.altKey||(pw=!0)}var gw=SE((e=>{var t=e,{focusable:n=!0,accessibleWhenDisabled:r,autoFocus:a,onFocusVisible:s}=t,i=O_(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const o=(0,l.useRef)(null);(0,l.useEffect)((()=>{n&&(bb("mousedown",hw,!0),bb("keydown",fw,!0))}),[n]),lw&&(0,l.useEffect)((()=>{if(!n)return;const e=o.current;if(!e)return;if(!uw(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const r=()=>queueMicrotask((()=>e.focus()));return t.forEach((e=>e.addEventListener("mouseup",r))),()=>{t.forEach((e=>e.removeEventListener("mouseup",r)))}}),[n]);const c=n&&K_(i),u=!!c&&!r,[d,m]=(0,l.useState)(!1);(0,l.useEffect)((()=>{n&&u&&d&&m(!1)}),[n,u,d]),(0,l.useEffect)((()=>{if(!n)return;if(!d)return;const e=o.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{sw(e)||m(!1)}));return t.observe(e),()=>t.disconnect()}),[n,d]);const p=mw(i.onKeyPressCapture,c),h=mw(i.onMouseDownCapture,c),f=mw(i.onClickCapture,c),g=i.onMouseDown,y=kb((e=>{if(null==g||g(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!lw)return;if(hb(e))return;if(!rb(t)&&!uw(t))return;let r=!1;const a=()=>{r=!0};t.addEventListener("focusin",a,{capture:!0,once:!0}),_b(t,"mouseup",(()=>{t.removeEventListener("focusin",a,!0),r||function(e){!ow(e)&&sw(e)&&e.focus()}(t)}))})),v=(e,t)=>{if(t&&(e.currentTarget=t),!n)return;const r=e.currentTarget;r&&iw(r)&&(null==s||s(e),e.defaultPrevented||m(!0))},_=i.onKeyDownCapture,b=kb((e=>{if(null==_||_(e),e.defaultPrevented)return;if(!n)return;if(d)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!fb(e))return;const t=e.currentTarget;queueMicrotask((()=>v(e,t)))})),E=i.onFocusCapture,w=kb((e=>{if(null==E||E(e),e.defaultPrevented)return;if(!n)return;if(!fb(e))return void m(!1);const t=e.currentTarget,r=()=>v(e,t);pw||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||"SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable:cw.includes(r))}(e.target)?queueMicrotask(r):!function(e){return"combobox"===e.getAttribute("role")&&!!e.dataset.name}(e.target)?m(!1):_b(e.target,"focusout",r)})),S=i.onBlur,x=kb((e=>{null==S||S(e),n&&vb(e)&&m(!1)})),C=(0,l.useContext)(rw),k=kb((e=>{n&&a&&e&&C&&queueMicrotask((()=>{iw(e)||sw(e)&&e.focus()}))})),T=Ib(o,i.as),P=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(T),I=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(T),M=u?M_({pointerEvents:"none"},i.style):i.style;return i=A_(M_({"data-focus-visible":n&&d?"":void 0,"data-autofocus":!!a||void 0,"aria-disabled":!!c||void 0},i),{ref:Tb(o,k,i.ref),style:M,tabIndex:dw(n,u,P,I,i.tabIndex),disabled:!(!I||!u)||void 0,contentEditable:c?void 0:i.contentEditable,onKeyPressCapture:p,onClickCapture:f,onMouseDownCapture:h,onMouseDown:y,onKeyDownCapture:b,onFocusCapture:w,onBlur:x})}));bE((e=>wE("div",e=gw(e))));function yw(e,t,n){return kb((r=>{var a;if(null==t||t(r),r.defaultPrevented)return;if(r.isPropagationStopped())return;if(!fb(r))return;if(function(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}(r))return;if(function(e){const t=e.target;return!(t&&!ib(t)||1!==e.key.length||e.ctrlKey||e.metaKey)}(r))return;const s=e.getState(),i=null==(a=ew(e,s.activeId))?void 0:a.element;if(!i)return;const o=r,{view:l}=o,c=O_(o,["view"]);i!==(null==n?void 0:n.current)&&i.focus(),function(e,t,n){const r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}(i,r.type,c)||r.preventDefault(),r.currentTarget.contains(i)&&r.stopPropagation()}))}var vw=SE((e=>{var t=e,{store:n,composite:r=!0,focusOnMove:a=r,moveOnKeyPress:s=!0}=t,i=O_(t,["store","composite","focusOnMove","moveOnKeyPress"]);const o=IE();Y_(n=n||o,!1);const c=(0,l.useRef)(null),u=function(e){const[t,n]=(0,l.useState)(!1),r=(0,l.useCallback)((()=>n(!0)),[]),a=e.useState((t=>ew(e,t.activeId)));return(0,l.useEffect)((()=>{const e=null==a?void 0:a.element;t&&e&&(n(!1),e.focus({preventScroll:!0}))}),[a,t]),r}(n),d=n.useState("moves");(0,l.useEffect)((()=>{var e;if(!n)return;if(!d)return;if(!r)return;if(!a)return;const{activeId:t}=n.getState(),s=null==(e=ew(n,t))?void 0:e.element;var i,o;s&&("scrollIntoView"in(i=s)?(i.focus({preventScroll:!0}),i.scrollIntoView(z_({block:"nearest",inline:"nearest"},o))):i.focus())}),[n,d,r,a]),xb((()=>{if(!n)return;if(!d)return;if(!r)return;const{baseElement:e,activeId:t}=n.getState();if(!(null===t))return;if(!e)return;const a=c.current;c.current=null,a&&gb(a,{relatedTarget:e}),iw(e)||e.focus()}),[n,d,r]);const m=n.useState("activeId"),p=n.useState("virtualFocus");xb((()=>{var e;if(!n)return;if(!r)return;if(!p)return;const t=c.current;if(c.current=null,!t)return;const a=(null==(e=ew(n,m))?void 0:e.element)||tb(t);a!==t&&gb(t,{relatedTarget:a})}),[n,m,p,r]);const h=yw(n,i.onKeyDownCapture,c),f=yw(n,i.onKeyUpCapture,c),g=i.onFocusCapture,y=kb((e=>{if(null==g||g(e),e.defaultPrevented)return;if(!n)return;const{virtualFocus:t}=n.getState();if(!t)return;const r=e.relatedTarget,a=function(e){const t=e[tw];return delete e[tw],t}(e.currentTarget);fb(e)&&a&&(e.stopPropagation(),c.current=r)})),v=i.onFocus,_=kb((e=>{if(null==v||v(e),e.defaultPrevented)return;if(!r)return;if(!n)return;const{relatedTarget:t}=e,{virtualFocus:a}=n.getState();a?fb(e)&&!nw(n,t)&&queueMicrotask(u):fb(e)&&n.setActiveId(null)})),b=i.onBlurCapture,E=kb((e=>{var t;if(null==b||b(e),e.defaultPrevented)return;if(!n)return;const{virtualFocus:r,activeId:a}=n.getState();if(!r)return;const s=null==(t=ew(n,a))?void 0:t.element,i=e.relatedTarget,o=nw(n,i),l=c.current;if(c.current=null,fb(e)&&o)i===s?l&&l!==i&&gb(l,e):s?gb(s,e):l&&gb(l,e),e.stopPropagation();else{!nw(n,e.target)&&s&&gb(s,e)}})),w=i.onKeyDown,S=Ab(s),x=kb((e=>{var t;if(null==w||w(e),e.defaultPrevented)return;if(!n)return;if(!fb(e))return;const{orientation:r,items:a,renderedItems:s,activeId:i}=n.getState(),o=ew(n,i);if(null==(t=null==o?void 0:o.element)?void 0:t.isConnected)return;const l="horizontal"!==r,c="vertical"!==r,u=function(e){return e.some((e=>!!e.rowId))}(s);if(("ArrowLeft"===e.key||"ArrowRight"===e.key||"Home"===e.key||"End"===e.key)&&ib(e.currentTarget))return;const d={ArrowUp:(u||l)&&(()=>{if(u){const e=a&&function(e){return function(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(iE(oE(function(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}(e))))}(a);return null==e?void 0:e.id}return null==n?void 0:n.last()}),ArrowRight:(u||c)&&n.first,ArrowDown:(u||l)&&n.first,ArrowLeft:(u||c)&&n.last,Home:n.first,End:n.last,PageUp:n.first,PageDown:n.last},m=d[e.key];if(m){const t=m();if(void 0!==t){if(!S(e))return;e.preventDefault(),n.move(t)}}}));i=Ob(i,(e=>(0,_E.jsx)(ME,{value:n,children:e})),[n]);const C=n.useState((e=>{var t;if(n&&r&&e.virtualFocus)return null==(t=ew(n,e.activeId))?void 0:t.id}));i=A_(M_({"aria-activedescendant":C},i),{ref:Tb(r?n.setBaseElement:null,i.ref),onKeyDownCapture:h,onKeyUpCapture:f,onFocusCapture:y,onFocus:_,onBlurCapture:E,onKeyDown:x});const k=n.useState((e=>r&&(e.virtualFocus||null===e.activeId)));return i=gw(M_({focusable:k},i))}));bE((e=>wE("div",vw(e))));const _w=window.ReactDOM;function bw(e,t,n){if(!n)return!1;const r=e.find((e=>!e.disabled&&e.value));return(null==r?void 0:r.value)===t}function Ew(e,t){return!!t&&(null!=e&&(e=Z_(e),t.length>e.length&&0===t.toLowerCase().indexOf(e.toLowerCase())))}var ww=SE((e=>{var t=e,{store:n,focusable:r=!0,autoSelect:a=!1,getAutoSelectId:s,showOnChange:i=!0,setValueOnChange:o=!0,showOnMouseDown:c=!0,setValueOnClick:u=!0,showOnKeyDown:d=!0,moveOnKeyPress:m=!0,autoComplete:p="list"}=t,h=O_(t,["store","focusable","autoSelect","getAutoSelectId","showOnChange","setValueOnChange","showOnMouseDown","setValueOnClick","showOnKeyDown","moveOnKeyPress","autoComplete"]);const f=jE();Y_(n=n||f,!1);const g=(0,l.useRef)(null),[y,v]=(0,l.useReducer)((()=>[]),[]),_=(0,l.useRef)(!1),b=(0,l.useRef)(!1),E=n.useState((e=>!!a&&e.virtualFocus)),w="inline"===p||"both"===p,[S,x]=(0,l.useState)(w);!function(e,t){const n=(0,l.useRef)(!1);xb((()=>{if(n.current)return e();n.current=!0}),t),xb((()=>()=>{n.current=!1}),[])}((()=>{w&&x(!0)}),[w]);const C=n.useState("value"),k=n.useState((e=>w&&S?e.activeValue:void 0)),T=n.useState("renderedItems"),P=n.useState("open"),I=n.useState("contentElement"),M=(0,l.useMemo)((()=>{if(!w)return C;if(!S)return C;if(bw(T,k,E)){if(Ew(C,k)){const e=(null==k?void 0:k.slice(C.length))||"";return C+e}return C}return k||C}),[w,S,T,k,E,C]);(0,l.useEffect)((()=>{const e=g.current;if(!e)return;const t=()=>x(!0);return e.addEventListener("combobox-item-move",t),()=>{e.removeEventListener("combobox-item-move",t)}}),[]),(0,l.useEffect)((()=>{if(!w)return;if(!S)return;if(!k)return;bw(T,k,E)&&Ew(C,k)&&queueMicrotask((()=>{const e=g.current;e&&ub(e,C.length,k.length)}))}),[y,w,S,k,T,E,C]);const A=(0,l.useRef)(null),O=kb(s),N=(0,l.useRef)(null);(0,l.useEffect)((()=>{if(!P)return;if(!I)return;const e=cb(I);if(!e)return;A.current=e;const t=()=>{_.current=!1},r=()=>{if(!n)return;if(!_.current)return;const{activeId:e}=n.getState();null!==e&&e!==N.current&&(_.current=!1)},a={passive:!0,capture:!0};return e.addEventListener("wheel",t,a),e.addEventListener("scroll",r,a),()=>{e.removeEventListener("wheel",t,!0),e.removeEventListener("scroll",r,!0)}}),[P,I,n]),xb((()=>{C&&(b.current||(_.current=!0))}),[C]),xb((()=>{P||(_.current=!1)}),[P]);const F=n.useState("resetValueOnSelect");Mb((()=>{var e;const t=_.current;if(!n)return;if(!(E&&t||F))return;const{baseElement:r,contentElement:a,activeId:s}=n.getState();if(!r||iw(r)){if(null==a?void 0:a.hasAttribute("data-placing")){const e=new MutationObserver(v);return e.observe(a,{attributeFilter:["data-placing"]}),()=>e.disconnect()}if(E&&t){const e=O(T),t=void 0!==e?e:n.first();N.current=t,n.move(null!=t?t:null)}else{const t=null==(e=n.item(s))?void 0:e.element;t&&"scrollIntoView"in t&&t.scrollIntoView({block:"nearest",inline:"nearest"})}}}),[n,y,C,E,F,O,T]),(0,l.useEffect)((()=>{if(!w)return;const e=g.current;if(!e)return;const t=[e,I].filter((e=>!!e)),r=e=>{t.every((t=>vb(e,t)))&&(null==n||n.setValue(M))};return t.forEach((e=>e.addEventListener("focusout",r))),()=>{t.forEach((e=>e.removeEventListener("focusout",r)))}}),[w,I,n,M]);const R=h.onChange,D=Ab(i),V=Ab(o),L=kb((e=>{if(null==R||R(e),e.defaultPrevented)return;if(!n)return;const{value:t,selectionStart:r,selectionEnd:a}=e.target,s=e.nativeEvent;if(_.current=!0,function(e){return"input"===e.type}(s)&&(s.isComposing&&(_.current=!1,b.current=!0),w)){const e="insertText"===s.inputType||"insertCompositionText"===s.inputType,n=r===t.length;x(e&&n)}if(V(e)){const s=t===n.getState().value;(0,_w.flushSync)((()=>null==n?void 0:n.setValue(t))),ub(e.currentTarget,r,a),w&&E&&s&&v()}D(e)&&n.show(),E&&_.current||n.setActiveId(null)})),B=h.onCompositionEnd,z=kb((e=>{_.current=!0,b.current=!1,null==B||B(e),e.defaultPrevented||E&&v()})),H=h.onMouseDown,G=Ab(u),U=Ab(c),W=kb((e=>{null==H||H(e),e.defaultPrevented||e.button||e.ctrlKey||n&&(n.setActiveId(null),G(e)&&n.setValue(M),U(e)&&_b(e.currentTarget,"mouseup",n.show))})),j=h.onKeyDown,Z=Ab(d),q=kb((e=>{if(null==j||j(e),e.repeat||(_.current=!1),e.defaultPrevented)return;if(e.ctrlKey)return;if(e.altKey)return;if(e.shiftKey)return;if(e.metaKey)return;if(!n)return;const{open:t,activeId:r}=n.getState();t||null===r&&("ArrowUp"!==e.key&&"ArrowDown"!==e.key||Z(e)&&(e.preventDefault(),n.show()))})),Y=h.onBlur,K=kb((e=>{_.current=!1,null==Y||Y(e),e.defaultPrevented})),X=Pb(h.id),J=function(e){return"inline"===e||"list"===e||"both"===e||"none"===e}(p)?p:void 0,Q=n.useState((e=>null===e.activeId));return h=A_(M_({id:X,role:"combobox","aria-autocomplete":J,"aria-haspopup":ob(I,"listbox"),"aria-expanded":P,"aria-controls":null==I?void 0:I.id,"data-active-item":Q||void 0,value:M},h),{ref:Tb(g,h.ref),onChange:L,onCompositionEnd:z,onMouseDown:W,onKeyDown:q,onBlur:K}),h=vw(A_(M_({store:n,focusable:r},h),{moveOnKeyPress:e=>!function(e,...t){const n="function"==typeof e?e(...t):e;return null!=n&&!n}(m,e)&&(w&&x(!0),!0)})),h=$E(M_({store:n},h)),M_({autoComplete:"off"},h)})),Sw=bE((e=>wE("input",ww(e))));function xw(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function Cw(...e){return e.join(", ").split(", ").reduce(((e,t)=>{const n=1e3*parseFloat(t||"0s");return n>e?n:e}),0)}function kw(e,t,n){return!(n||!1===t||e&&!t)}var Tw=SE((e=>{var t=e,{store:n,alwaysVisible:r}=t,a=O_(t,["store","alwaysVisible"]);const s=RE();Y_(n=n||s,!1);const i=Pb(a.id),[o,c]=(0,l.useState)(null),u=n.useState("open"),d=n.useState("mounted"),m=n.useState("animated"),p=n.useState("contentElement");xb((()=>{if(m){if(null==p?void 0:p.isConnected)return function(e){let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}((()=>{c(u?"enter":"leave")}));c(null)}}),[m,p,u]),xb((()=>{if(!n)return;if(!m)return;if(!p)return;if(!o)return;if("enter"===o&&!u)return;if("leave"===o&&u)return;if("number"==typeof m){return xw(m,n.stopAnimation)}const{transitionDuration:e,animationDuration:t,transitionDelay:r,animationDelay:a}=getComputedStyle(p),s=Cw(r,a)+Cw(e,t);return s?xw(s,n.stopAnimation):void 0}),[n,m,p,u,o]);const h=kw(d,(a=Ob(a,(e=>(0,_E.jsx)(LE,{value:n,children:e})),[n])).hidden,r),f=h?A_(M_({},a.style),{display:"none"}):a.style;return a=A_(M_({id:i,"data-enter":"enter"===o?"":void 0,"data-leave":"leave"===o?"":void 0,hidden:h},a),{ref:Tb(i?n.setContentElement:null,a.ref),style:f})})),Pw=bE((e=>wE("div",Tw(e))));bE((e=>{var t=e,{unmountOnHide:n}=t,r=O_(t,["unmountOnHide"]);const a=RE();return!1===Xb(r.store||a,(e=>!n||(null==e?void 0:e.mounted)))?null:(0,_E.jsx)(Pw,M_({},r))}));var Iw=SE((e=>{var t=e,{store:n,focusable:r=!0,alwaysVisible:a}=t,s=O_(t,["store","focusable","alwaysVisible"]);const i=jE();Y_(n=n||i,!1);const o=(0,l.useRef)(null),c=Pb(s.id),u=s.onKeyDown,d=kb((e=>{null==u||u(e),e.defaultPrevented||"Escape"===e.key&&(null==n||n.move(null))})),m=(0,l.useRef)(!1),p=s.onFocusVisible,h=kb((e=>{if(null==p||p(e),e.defaultPrevented)return;if("focus"!==e.type)return;if(!n)return;const{virtualFocus:t}=n.getState();if(!t)return;const{relatedTarget:r,currentTarget:a}=e;r&&a.contains(r)||(m.current=!0,n.setState("virtualFocus",!1))})),f=s.onBlur,g=kb((e=>{null==f||f(e),e.defaultPrevented||m.current&&vb(e)&&(m.current=!1,null==n||n.setState("virtualFocus",!0))}));s=Ob(s,(e=>(0,_E.jsx)(qE,{value:n,children:e})),[n]);const y=kw(n.useState("mounted"),s.hidden,a),v=y?A_(M_({},s.style),{display:"none"}):s.style,_=n.useState((e=>Array.isArray(e.selectedValue))),b=function(e,t,n){const[r,a]=(0,l.useState)(n);return xb((()=>{const n=e&&"current"in e?e.current:e,r=null==n?void 0:n.getAttribute(t);null!=r&&a(r)}),[e,t]),r}(o,"role",s.role);return s=A_(M_({id:c,hidden:y,role:"listbox",tabIndex:r?-1:void 0,"aria-multiselectable":("listbox"===b||"tree"===b||"grid"===b)&&_||void 0},s),{ref:Tb(c?n.setContentElement:null,o,s.ref),style:v,onKeyDown:d,onFocusVisible:h,onBlur:g}),s=gw(M_({focusable:r},s))})),Mw=bE((e=>wE("div",Iw(e))));function Aw(e){const t=e.relatedTarget;return(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null}var Ow=Symbol("composite-hover");var Nw=SE((e=>{var t=e,{store:n,focusOnHover:r=!0,blurOnHoverEnd:a=!!r}=t,s=O_(t,["store","focusOnHover","blurOnHoverEnd"]);const i=PE();Y_(n=n||i,!1);const o=((0,l.useEffect)((()=>{bb("mousemove",Db,!0),bb("mousedown",Vb,!0),bb("mouseup",Vb,!0),bb("keydown",Vb,!0),bb("scroll",Vb,!0)}),[]),kb((()=>Nb))),c=s.onMouseMove,u=Ab(r),d=kb((e=>{if(null==c||c(e),!e.defaultPrevented&&o()&&u(e)){if(!ow(e.currentTarget)){const e=null==n?void 0:n.getState().baseElement;e&&!iw(e)&&e.focus()}null==n||n.setActiveId(e.currentTarget.id)}})),m=s.onMouseLeave,p=Ab(a),h=kb((e=>{var t;null==m||m(e),e.defaultPrevented||o()&&(function(e){const t=Aw(e);return!!t&&nb(e.currentTarget,t)}(e)||function(e){let t=Aw(e);if(!t)return!1;do{if(W_(t,Ow)&&t[Ow])return!0;t=t.parentElement}while(t);return!1}(e)||u(e)&&p(e)&&(null==n||n.setActiveId(null),null==(t=null==n?void 0:n.getState().baseElement)||t.focus()))})),f=(0,l.useCallback)((e=>{e&&(e[Ow]=!0)}),[]);return s=A_(M_({},s),{ref:Tb(f,s.ref),onMouseMove:d,onMouseLeave:h})}));EE((e=>wE("div",Nw(e))));function Fw(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?rb(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(rb(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var Rw=Symbol("command"),Dw=SE((e=>{var t=e,{clickOnEnter:n=!0,clickOnSpace:r=!0}=t,a=O_(t,["clickOnEnter","clickOnSpace"]);const s=(0,l.useRef)(null),i=Ib(s,a.as),o=a.type,[c,u]=(0,l.useState)((()=>!!i&&rb({tagName:i,type:o})));(0,l.useEffect)((()=>{s.current&&u(rb(s.current))}),[]);const[d,m]=(0,l.useState)(!1),p=(0,l.useRef)(!1),h=K_(a),[f,g]=function(e,t,n){const r=e.onLoadedMetadataCapture,a=(0,l.useMemo)((()=>Object.assign((()=>{}),A_(M_({},r),{[t]:n}))),[r,t,n]);return[null==r?void 0:r[t],{onLoadedMetadataCapture:a}]}(a,Rw,!0),y=a.onKeyDown,v=kb((e=>{null==y||y(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(f)return;if(h)return;if(!fb(e))return;if(ib(t))return;if(t.isContentEditable)return;const a=n&&"Enter"===e.key,s=r&&" "===e.key,i="Enter"===e.key&&!n,o=" "===e.key&&!r;if(i||o)e.preventDefault();else if(a||s){const n=Fw(e);if(a){if(!n){e.preventDefault();const n=e,{view:r}=n,a=O_(n,["view"]),s=()=>yb(t,a);$_&&/firefox\//i.test(navigator.userAgent)?_b(t,"keyup",s):queueMicrotask(s)}}else s&&(p.current=!0,n||(e.preventDefault(),m(!0)))}})),_=a.onKeyUp,b=kb((e=>{if(null==_||_(e),e.defaultPrevented)return;if(f)return;if(h)return;if(e.metaKey)return;const t=r&&" "===e.key;if(p.current&&t&&(p.current=!1,!Fw(e))){e.preventDefault(),m(!1);const t=e.currentTarget,n=e,{view:r}=n,a=O_(n,["view"]);queueMicrotask((()=>yb(t,a)))}}));return a=A_(M_(M_({"data-active":d?"":void 0,type:c?"button":void 0},g),a),{ref:Tb(s,a.ref),onKeyDown:v,onKeyUp:b}),a=gw(a)}));bE((e=>wE("button",e=Dw(e))));var Vw=SE((e=>{var t=e,{store:n,shouldRegisterItem:r=!0,getItem:a=q_,element:s}=t,i=O_(t,["store","shouldRegisterItem","getItem","element"]);const o=kE();n=n||o;const c=Pb(i.id),u=(0,l.useRef)(s);return(0,l.useEffect)((()=>{const e=u.current;if(!c)return;if(!e)return;if(!r)return;const t=a({id:c,element:e});return null==n?void 0:n.renderItem(t)}),[c,r,a,n]),i=A_(M_({},i),{ref:Tb(u,i.ref)})}));bE((e=>wE("div",Vw(e))));function Lw(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function Bw(e,t,n,r=!1){var a;if(!t)return;if(!n)return;const{renderedItems:s}=t.getState(),i=cb(e);if(!i)return;const o=function(e,t=!1){const n=e.clientHeight,{top:r}=e.getBoundingClientRect(),a=1.5*Math.max(.875*n,n-40),s=t?n-a+r:a+r;return"HTML"===e.tagName?s+e.scrollTop:s}(i,r);let l,c;for(let e=0;e<s.length;e+=1){const s=l;if(l=n(e),!l)break;if(l===s)continue;const i=null==(a=ew(t,l))?void 0:a.element;if(!i)continue;const u=Lw(i,r)-o,d=Math.abs(u);if(r&&u<=0||!r&&u>=0){void 0!==c&&c<d&&(l=s);break}c=d}return l}var zw=SE((e=>{var t=e,{store:n,rowId:r,preventScrollOnKeyDown:a=!1,moveOnKeyPress:s=!0,tabbable:i=!1,getItem:o,"aria-setsize":c,"aria-posinset":u}=t,d=O_(t,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","tabbable","getItem","aria-setsize","aria-posinset"]);const m=PE();n=n||m;const p=Pb(d.id),h=(0,l.useRef)(null),f=(0,l.useContext)(NE),g=Xb(n,(e=>r||(e&&(null==f?void 0:f.baseElement)&&f.baseElement===e.baseElement?f.id:void 0))),y=K_(d)&&!d.accessibleWhenDisabled,v=(0,l.useCallback)((e=>{const t=A_(M_({},e),{id:p||e.id,rowId:g,disabled:!!y});return o?o(t):t}),[p,g,y,o]),_=d.onFocus,b=(0,l.useRef)(!1),E=kb((e=>{if(null==_||_(e),e.defaultPrevented)return;if(hb(e))return;if(!p)return;if(!n)return;const{activeId:t,virtualFocus:r,baseElement:a}=n.getState();if(function(e,t){return!fb(e)&&nw(t,e.target)}(e,n))return;if(t!==p&&n.setActiveId(p),!r)return;if(!fb(e))return;if((s=e.currentTarget).isContentEditable||ib(s)||"INPUT"===s.tagName&&!rb(s))return;var s;if(!(null==a?void 0:a.isConnected))return;b.current=!0;e.relatedTarget===a||nw(n,e.relatedTarget)?function(e){e[tw]=!0,e.focus({preventScroll:!0})}(a):a.focus()})),w=d.onBlurCapture,S=kb((e=>{if(null==w||w(e),e.defaultPrevented)return;const t=null==n?void 0:n.getState();(null==t?void 0:t.virtualFocus)&&b.current&&(b.current=!1,e.preventDefault(),e.stopPropagation())})),x=d.onKeyDown,C=Ab(a),k=Ab(s),T=kb((e=>{if(null==x||x(e),e.defaultPrevented)return;if(!fb(e))return;if(!n)return;const{currentTarget:t}=e,r=n.getState(),a=n.item(p),s=!!(null==a?void 0:a.rowId),i="horizontal"!==r.orientation,o="vertical"!==r.orientation,l=()=>!!s||(!!o||(!r.baseElement||!ib(r.baseElement))),c={ArrowUp:(s||i)&&n.up,ArrowRight:(s||o)&&n.next,ArrowDown:(s||i)&&n.down,ArrowLeft:(s||o)&&n.previous,Home:()=>{if(l())return!s||e.ctrlKey?null==n?void 0:n.first():null==n?void 0:n.previous(-1)},End:()=>{if(l())return!s||e.ctrlKey?null==n?void 0:n.last():null==n?void 0:n.next(-1)},PageUp:()=>Bw(t,n,null==n?void 0:n.up,!0),PageDown:()=>Bw(t,n,null==n?void 0:n.down)}[e.key];if(c){const t=c();if(C(e)||void 0!==t){if(!k(e))return;e.preventDefault(),n.move(t)}}})),P=Xb(n,(e=>(null==e?void 0:e.baseElement)||void 0)),I=(0,l.useMemo)((()=>({id:p,baseElement:P})),[p,P]);d=Ob(d,(e=>(0,_E.jsx)(OE.Provider,{value:I,children:e})),[I]);const M=Xb(n,(e=>!!e&&e.activeId===p)),A=Xb(n,"virtualFocus"),O=function(e,t){const n=t.role,[r,a]=(0,l.useState)(n);return xb((()=>{const t=e.current;t&&a(t.getAttribute("role")||n)}),[n]),r}(h,d);let N;M&&(!function(e){return"option"===e||"treeitem"===e}(O)?A&&function(e){return"option"===e||"tab"===e||"treeitem"===e||"gridcell"===e||"row"===e||"columnheader"===e||"rowheader"===e}(O)&&(N=!0):N=!0);const F=Xb(n,(e=>null!=c?c:e&&(null==f?void 0:f.ariaSetSize)&&f.baseElement===e.baseElement?f.ariaSetSize:void 0)),R=Xb(n,(e=>{if(null!=u)return u;if(!e)return;if(!(null==f?void 0:f.ariaPosInSet))return;if(f.baseElement!==e.baseElement)return;const t=e.renderedItems.filter((e=>e.rowId===g));return f.ariaPosInSet+t.findIndex((e=>e.id===p))})),D=Xb(n,(e=>!(null==e?void 0:e.renderedItems.length)||!e.virtualFocus&&(!!i||e.activeId===p)));return d=A_(M_({id:p,"aria-selected":N,"data-active-item":M?"":void 0},d),{ref:Tb(h,d.ref),tabIndex:D?d.tabIndex:-1,onFocus:E,onBlurCapture:S,onKeyDown:T}),d=Dw(d),d=Vw(A_(M_({store:n},d),{getItem:v,shouldRegisterItem:!!p&&d.shouldRegisterItem})),A_(M_({},d),{"aria-setsize":F,"aria-posinset":R})}));EE((e=>wE("button",zw(e))));var Hw=SE((e=>{var t=e,{store:n,value:r,hideOnClick:a,selectValueOnClick:s=!0,setValueOnClick:i,focusOnHover:o=!1,moveOnKeyPress:c=!0,getItem:u}=t,d=O_(t,["store","value","hideOnClick","selectValueOnClick","setValueOnClick","focusOnHover","moveOnKeyPress","getItem"]);const m=WE();Y_(n=n||m,!1);const p=(0,l.useCallback)((e=>{const t=A_(M_({},e),{value:r});return u?u(t):t}),[r,u]),h=n.useState((e=>Array.isArray(e.selectedValue)));i=null!=i?i:!h,a=null!=a?a:null!=r&&!h;const f=d.onClick,g=Ab(i),y=Ab(s),v=Ab(a),_=kb((e=>{null==f||f(e),e.defaultPrevented||function(e){const t=e.currentTarget;if(!t)return!1;const n=t.tagName.toLowerCase();return!!e.altKey&&("a"===n||"button"===n&&"submit"===t.type||"input"===n&&"submit"===t.type)}(e)||function(e){const t=e.currentTarget;if(!t)return!1;const n=mb();if(n&&!e.metaKey)return!1;if(!n&&!e.ctrlKey)return!1;const r=t.tagName.toLowerCase();return"a"===r||"button"===r&&"submit"===t.type||"input"===r&&"submit"===t.type}(e)||(null!=r&&(y(e)&&(null==n||n.setSelectedValue((e=>Array.isArray(e)?e.includes(r)?e.filter((e=>e!==r)):[...e,r]:r))),g(e)&&(null==n||n.setValue(r))),v(e)&&(null==n||n.move(null),null==n||n.hide()))})),b=d.onKeyDown,E=kb((e=>{if(null==b||b(e),e.defaultPrevented)return;const t=null==n?void 0:n.getState().baseElement;if(!t)return;if(iw(t))return;(1===e.key.length||"Backspace"===e.key||"Delete"===e.key)&&(queueMicrotask((()=>t.focus())),ib(t)&&(null==n||n.setValue(t.value)))})),w=n.useState((e=>function(e,t){if(null!=t)return null!=e&&(Array.isArray(e)?e.includes(t):e===t)}(e.selectedValue,r)));h&&null!=w&&(d=M_({"aria-selected":w},d)),d=Ob(d,(e=>(0,_E.jsx)(YE.Provider,{value:r,children:(0,_E.jsx)(KE.Provider,{value:null!=w&&w,children:e})})),[r,w]);const S=n.useState("contentElement");d=A_(M_({role:lb(S),children:r},d),{onClick:_,onKeyDown:E});const x=Ab(c);return d=zw(A_(M_({store:n},d),{getItem:p,moveOnKeyPress:e=>{if(!x(e))return!1;const t=new Event("combobox-item-move"),r=null==n?void 0:n.getState().baseElement;return null==r||r.dispatchEvent(t),!0}})),d=Nw(M_({store:n,focusOnHover:o},d))})),Gw=EE((e=>wE("div",Hw(e))));function Uw(e){return Z_(e).toLowerCase()}var Ww=SE((e=>{var t=e,{store:n,value:r}=t,a=O_(t,["store","value"]);const s=WE();n=n||s;const i=(0,l.useContext)(YE),o=null!=r?r:i;Y_(n,!1);const c=n.useState((e=>o&&e.value?e.value:void 0)),u=(0,l.useMemo)((()=>o&&c?function(e,t){t=Uw(t);let n=Uw(e).indexOf(t);const r=[];for(;-1!==n;)0!==n&&r.push((0,_E.jsx)("span",{"data-autocomplete-value":"",children:e.substr(0,n)},r.length)),r.push((0,_E.jsx)("span",{"data-user-value":"",children:e.substr(n,t.length)},r.length)),n=Uw(e=e.substr(n+t.length)).indexOf(t);return e&&r.push((0,_E.jsx)("span",{"data-autocomplete-value":"",children:e},r.length)),r}(o,c):o),[o,c]);return a=M_({children:u},a)})),jw=bE((e=>wE("span",Ww(e))));const Zw=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Circle,{cx:12,cy:12,r:3}));function qw(e=""){return hi()(e.trim().toLowerCase())}function Yw({filter:e,view:t,onChangeView:n}){const[r,a]=(0,g.useState)(""),s=(0,g.useDeferredValue)(r),i=t.filters.find((t=>t.field===e.field)),o=i?.value,c=(0,g.useMemo)((()=>{const t=qw(s);return e.elements.filter((e=>qw(e.label).includes(t)))}),[e.elements,s]);return(0,l.createElement)(XE,{value:r,setSelectedValue:r=>{const a=t.filters.find((t=>t.field===e.field)),s=a?[...t.filters.map((t=>t.field===e.field?{...t,operator:a.operator||e.operators[0],value:r}:t))]:[...t.filters,{field:e.field,operator:e.operators[0],value:r}];n({...t,page:1,filters:s})},setValue:a},(0,l.createElement)("div",{className:"dataviews-search-widget-filter-combobox__wrapper"},(0,l.createElement)(QE,{render:(0,l.createElement)(b.VisuallyHidden,null)},(0,E.__)("Search items")),(0,l.createElement)(Sw,{autoSelect:"always",placeholder:(0,E.__)("Search"),className:"dataviews-search-widget-filter-combobox__input"}),(0,l.createElement)("div",{className:"dataviews-search-widget-filter-combobox__icon"},(0,l.createElement)(b.Icon,{icon:Va}))),(0,l.createElement)(Mw,{className:"dataviews-search-widget-filter-combobox-list",alwaysVisible:!0},c.map((e=>(0,l.createElement)(Gw,{key:e.value,value:e.value,className:"dataviews-search-widget-filter-combobox-item",hideOnClick:!1,setValueOnClick:!1,focusOnHover:!0},(0,l.createElement)("span",{className:"dataviews-search-widget-filter-combobox-item-check"},o===e.value&&(0,l.createElement)(b.Icon,{icon:Zw})),(0,l.createElement)("span",null,(0,l.createElement)(jw,{className:"dataviews-search-widget-filter-combobox-item-value",value:e.label}),!!e.description&&(0,l.createElement)("span",{className:"dataviews-search-widget-filter-combobox-item-description"},e.description))))),!c.length&&(0,l.createElement)("p",null,(0,E.__)("No results found"))))}const Kw=({activeElement:e,filterInView:t,filter:n})=>{if(void 0===e)return n.name;const r={Span1:(0,l.createElement)("span",{className:"dataviews-filter-summary__filter-text-name"}),Span2:(0,l.createElement)("span",{className:"dataviews-filter-summary__filter-text-value"})};return void 0!==e&&t?.operator===wl?(0,g.createInterpolateElement)((0,E.sprintf)((0,E.__)("<Span1>%1$s </Span1><Span2>is %2$s</Span2>"),n.name,e.label),r):void 0!==e&&t?.operator===Sl?(0,g.createInterpolateElement)((0,E.sprintf)((0,E.__)("<Span1>%1$s </Span1><Span2>is not %2$s</Span2>"),n.name,e.label),r):(0,E.sprintf)((0,E.__)("Unknown status for %1$s"),n.name)};function Xw({filter:e,view:t,onChangeView:n}){const r=e.operators?.map((e=>({value:e,label:xl[e]?.label}))),a=t.filters.find((t=>t.field===e.field)),s=a?.operator||e.operators[0];return r.length>1&&(0,l.createElement)(b.__experimentalHStack,{spacing:2,justify:"flex-start",className:"dataviews-filter-summary__operators-container"},(0,l.createElement)(b.FlexItem,{className:"dataviews-filter-summary__operators-filter-name"},e.name),(0,l.createElement)(b.SelectControl,{label:(0,E.__)("Conditions"),value:s,options:r,onChange:r=>{const s=a?[...t.filters.map((t=>t.field===e.field?{...t,operator:r}:t))]:[...t.filters,{field:e.field,operator:r}];n({...t,page:1,filters:s})},size:"small",__nextHasNoMarginBottom:!0,hideLabelFromVision:!0}))}function Jw({addFilterRef:e,openedFilter:t,...n}){const r=(0,g.useRef)(),{filter:a,view:s,onChangeView:i}=n,o=s.filters.find((e=>e.field===a.field)),c=a.elements.find((e=>e.value===o?.value)),u=a.isPrimary,d=void 0!==o?.value,m=!u||d;return(0,l.createElement)(b.Dropdown,{defaultOpen:t===a.field,contentClassName:"dataviews-filter-summary__popover",popoverProps:{placement:"bottom-start",role:"dialog"},onClose:()=>{r.current?.focus()},renderToggle:({isOpen:t,onToggle:n})=>(0,l.createElement)("div",{className:"dataviews-filter-summary__chip-container"},(0,l.createElement)(b.Tooltip,{text:(0,E.sprintf)((0,E.__)("Filter by: %1$s"),a.name.toLowerCase()),placement:"top"},(0,l.createElement)("div",{className:_()("dataviews-filter-summary__chip",{"has-reset":m,"has-values":d}),role:"button",tabIndex:0,onClick:n,onKeyDown:e=>{[wr.ENTER,wr.SPACE].includes(e.keyCode)&&(n(),e.preventDefault())},"aria-pressed":t,"aria-expanded":t,ref:r},(0,l.createElement)(Kw,{activeElement:c,filterInView:o,filter:a}))),m&&(0,l.createElement)(b.Tooltip,{text:u?(0,E.__)("Reset"):(0,E.__)("Remove"),placement:"top"},(0,l.createElement)("button",{className:_()("dataviews-filter-summary__chip-remove",{"has-values":d}),onClick:()=>{i({...s,page:1,filters:s.filters.filter((e=>e.field!==a.field))}),u?r.current?.focus():e.current?.focus()}},(0,l.createElement)(b.Icon,{icon:P})))),renderContent:()=>(0,l.createElement)(b.__experimentalVStack,{spacing:0,justify:"flex-start"},(0,l.createElement)(Xw,{...n}),(0,l.createElement)(Yw,{...n}))})}const{DropdownMenuV2:Qw,DropdownMenuItemV2:$w,DropdownMenuItemLabelV2:eS}=Vo(b.privateApis);const tS=(0,g.forwardRef)((function({filters:e,view:t,onChangeView:n,setOpenedFilter:r},a){if(!e.length||e.every((({isPrimary:e})=>e)))return null;const s=e.filter((e=>!e.isVisible));return(0,l.createElement)(Qw,{trigger:(0,l.createElement)(b.Button,{__experimentalIsFocusable:!0,size:"compact",icon:Za,className:"dataviews-filters-button",variant:"tertiary",disabled:!s.length,ref:a},(0,E.__)("Add filter"))},s.map((e=>(0,l.createElement)($w,{key:e.field,onClick:()=>{r(e.field),n({...t,page:1,filters:[...t.filters||[],{field:e.field,value:void 0,operator:e.operators[0]}]})}},(0,l.createElement)(eS,null,e.name)))))}));function nS({filters:e,view:t,onChangeView:n}){const r=!t.search&&!t.filters?.some((t=>{return void 0!==t.value||(n=t.field,!e.some((e=>e.field===n&&e.isPrimary)));var n}));return(0,l.createElement)(b.Button,{disabled:r,__experimentalIsFocusable:!0,size:"compact",variant:"tertiary",onClick:()=>{n({...t,page:1,search:"",filters:[]})}},(0,E.__)("Reset filters"))}const rS=(0,g.memo)((function({fields:e,view:t,onChangeView:n,openedFilter:r,setOpenedFilter:a}){const s=(0,g.useRef)(),i=[];e.forEach((e=>{if(!e.type)return;const n=Jo(e);if(0!==n.length&&e.type===El){if(!e.elements?.length)return;const r=!!e.filterBy?.isPrimary;i.push({field:e.id,name:e.header,elements:e.elements,operators:n,isVisible:r||t.filters.some((t=>t.field===e.id&&[wl,Sl].includes(t.operator))),isPrimary:r})}})),i.sort(((e,t)=>e.isPrimary&&!t.isPrimary?-1:!e.isPrimary&&t.isPrimary?1:e.name.localeCompare(t.name)));const o=(0,l.createElement)(tS,{key:"add-filter",filters:i,view:t,onChangeView:n,ref:s,setOpenedFilter:a}),c=[...i.map((e=>e.isVisible?(0,l.createElement)(Jw,{key:e.field,filter:e,view:t,onChangeView:n,addFilterRef:s,openedFilter:r}):null)),o];return c.length>1&&c.push((0,l.createElement)(nS,{key:"reset-filters",filters:i,view:t,onChangeView:n})),(0,l.createElement)(b.__experimentalHStack,{justify:"flex-start",style:{width:"fit-content"},wrap:!0},c)})),aS=rS,sS=(0,g.memo)((function({label:e,view:t,onChangeView:n}){const[r,a,s]=(0,ie.useDebouncedInput)(t.search);(0,g.useEffect)((()=>{a(t.search)}),[t]);const i=(0,g.useRef)(n);(0,g.useEffect)((()=>{i.current=n}),[n]),(0,g.useEffect)((()=>{i.current({...t,page:1,search:s})}),[s]);const o=e||(0,E.__)("Search");return(0,l.createElement)(b.SearchControl,{__nextHasNoMarginBottom:!0,onChange:a,value:r,label:o,placeholder:o,size:"compact"})})),iS=sS,oS=e=>e.id,lS=()=>{};function cS({view:e,onChangeView:t,fields:n,search:r=!0,searchLabel:a,actions:s,data:i,getItemId:o=oS,isLoading:c=!1,paginationInfo:u,supportedLayouts:d,onSelectionChange:m=lS,onDetailsChange:p=null,deferredRendering:h=!1}){const[f,y]=(0,g.useState)([]),[v,_]=(0,g.useState)(null);(0,g.useEffect)((()=>{if(f.length>0&&f.some((e=>!i.some((t=>o(t)===e))))){const e=f.filter((e=>i.some((t=>o(t)===e))));y(e),m(i.filter((t=>e.includes(o(t)))))}}),[f,i,o,m]);const E=(0,g.useCallback)((e=>{y(e.map((e=>o(e)))),m(e)}),[y,o,m]),w=Pl.find((t=>t.type===e.type)).component,S=(0,g.useMemo)((()=>n.map((e=>({...e,render:e.render||e.getValue})))),[n]),x=function(e,t){return(0,g.useMemo)((()=>t.some((t=>e.some((e=>e.supportsBulk&&e.isEligible(t)))))),[e,t])}(s,i);return(0,l.createElement)("div",{className:"dataviews-wrapper"},(0,l.createElement)(b.__experimentalHStack,{alignment:"top",justify:"start",className:"dataviews-filters__view-actions"},(0,l.createElement)(b.__experimentalHStack,{justify:"start",className:"dataviews-filters__container",wrap:!0},r&&(0,l.createElement)(iS,{label:a,view:e,onChangeView:t}),(0,l.createElement)(aS,{fields:S,view:e,onChangeView:t,openedFilter:v,setOpenedFilter:_})),[kl,Tl].includes(e.type)&&x&&(0,l.createElement)(il,{actions:s,data:i,onSelectionChange:E,selection:f,getItemId:o}),(0,l.createElement)(w_,{fields:S,view:e,onChangeView:t,supportedLayouts:d})),(0,l.createElement)(w,{fields:S,view:e,onChangeView:t,actions:s,data:i,getItemId:o,isLoading:c,onSelectionChange:E,onDetailsChange:p,selection:f,deferredRendering:h,setOpenedFilter:_}),(0,l.createElement)(u_,{view:e,onChangeView:t,paginationInfo:u}))}function uS({title:e,subTitle:t,actions:n}){return(0,l.createElement)(b.__experimentalHStack,{as:"header",alignment:"left",className:"edit-site-page-header"},(0,l.createElement)(b.FlexBlock,{className:"edit-site-page-header__page-title"},(0,l.createElement)(b.__experimentalHeading,{as:"h2",level:3,weight:500,className:"edit-site-page-header__title"},e),t&&(0,l.createElement)(b.__experimentalText,{as:"p",className:"edit-site-page-header__sub-title"},t)),(0,l.createElement)(b.FlexItem,{className:"edit-site-page-header__actions"},n))}function dS({title:e,subTitle:t,actions:n,children:r,className:a,hideTitleFromUI:s=!1}){const i=_()("edit-site-page",a);return(0,l.createElement)(oe,{className:i,ariaLabel:e},(0,l.createElement)("div",{className:"edit-site-page-content"},!s&&e&&(0,l.createElement)(uS,{title:e,subTitle:t,actions:n}),r),(0,l.createElement)(y.EditorSnackbars,null))}const{useHistory:mS}=Xe(gt.privateApis),pS={id:"move-to-trash",label:(0,E.__)("Move to Trash"),isPrimary:!0,icon:ql,isEligible:({status:e})=>"trash"!==e,supportsBulk:!0,hideModalHeader:!0,RenderModal:({items:e,closeModal:t,onPerform:n})=>{const{createSuccessNotice:r,createErrorNotice:a}=(0,m.useDispatch)(ge.store),{deleteEntityRecord:s}=(0,m.useDispatch)(ye.store);return(0,l.createElement)(b.__experimentalVStack,{spacing:"5"},(0,l.createElement)(b.__experimentalText,null,1===e.length?(0,E.sprintf)((0,E.__)('Are you sure you want to delete "%s"?'),(0,en.decodeEntities)(e[0].title.rendered)):(0,E.sprintf)((0,E.__)("Are you sure you want to delete %d pages?"),e.length)),(0,l.createElement)(b.__experimentalHStack,{justify:"right"},(0,l.createElement)(b.Button,{variant:"tertiary",onClick:t},(0,E.__)("Cancel")),(0,l.createElement)(b.Button,{variant:"primary",onClick:async()=>{const i=await Promise.allSettled(e.map((e=>s("postType",e.type,e.id,{},{throwOnError:!0}))));if(i.every((({status:e})=>"fulfilled"===e))){let t;t=1===i.length?(0,E.sprintf)((0,E.__)('"%s" moved to the Trash.'),(0,en.decodeEntities)(e[0].title.rendered)):(0,E.__)("Pages moved to the Trash."),r(t,{type:"snackbar",id:"edit-site-page-trashed"})}else{let e;if(1===i.length)e=i[0].reason?.message?i[0].reason.message:(0,E.__)("An error occurred while moving the post to the trash.");else{const t=new Set,n=i.filter((({status:e})=>"rejected"===e));for(const e of n)e.reason?.message&&t.add(e.reason.message);e=0===t.size?(0,E.__)("An error occurred while moving the posts to the trash."):1===t.size?(0,E.sprintf)((0,E.__)("An error occurred while moving the posts to the trash: %s"),[...t][0]):(0,E.sprintf)((0,E.__)("Some errors occurred while moving the pages to the trash: %s"),[...t].join(",")),a(e,{type:"snackbar"})}}n&&n(),t()}},(0,E.__)("Delete"))))}};const hS={id:"view-post",label:(0,E.__)("View"),isPrimary:!0,icon:Ic,isEligible:e=>"trash"!==e.status,callback(e){const t=e[0];document.location.href=t.link}};const fS={id:"view-post-revisions",label:(0,E.__)("View revisions"),isPrimary:!1,isEligible:e=>{var t,n;if("trash"===e.status)return!1;const r=null!==(t=e?._links?.["predecessor-version"]?.[0]?.id)&&void 0!==t?t:null,a=null!==(n=e?._links?.["version-history"]?.[0]?.count)&&void 0!==n?n:0;return r&&a>1},callback(e){const t=e[0],n=(0,yt.addQueryArgs)("revision.php",{revision:t?._links?.["predecessor-version"]?.[0]?.id});document.location.href=n}};const gS=function({id:e,size:t=["large","medium","thumbnail"],...n}){const{record:r}=(0,ye.useEntityRecord)("root","media",e),a=t.find((e=>!!r?.media_details?.sizes[e])),s=r?.media_details?.sizes[a]?.source_url||r?.source_url;return s?(0,l.createElement)("img",{...n,src:s,alt:r.alt_text}):null},{useLocation:yS,useHistory:vS}=Xe(gt.privateApis),_S=[],bS=window?.__experimentalAdminViews?[Dt,Vt,Lt]:[Dt,Vt];const ES=[{value:"draft",label:(0,E.__)("Draft")},{value:"future",label:(0,E.__)("Scheduled")},{value:"pending",label:(0,E.__)("Pending Review")},{value:"private",label:(0,E.__)("Private")},{value:"publish",label:(0,E.__)("Published")},{value:"trash",label:(0,E.__)("Trash")}],wS="draft,future,pending,private,publish";function SS({item:e,viewType:t}){const{onClick:n}=Et({postId:e.id,postType:e.type,canvas:"edit"}),r=!!e.featured_media,a=t===Dt?["large","full","medium","thumbnail"]:["thumbnail","medium","large","full"],s=r?(0,l.createElement)(gS,{className:"edit-site-page-pages__featured-image",id:e.featured_media,size:a}):null;return t===Lt?s:(0,l.createElement)("button",{className:_()("page-pages-preview-field__button",{"edit-site-page-pages__media-wrapper":t===Vt}),type:"button",onClick:n,"aria-label":e.title?.rendered||(0,E.__)("(no title)")},s)}function xS(){const e="page",[t,n]=function(e){const{params:t}=yS(),{activeView:n="all",isCustom:r="false",layout:a}=t,s=vS(),i=(0,g.useMemo)((()=>{const t="false"===r&&Xl[e].find((({slug:e})=>e===n))?.view;return"false"===r&&a?{...t,type:a,layout:{...Yl[a]||{}}}:t}),[r,n,a,e]),[o,l]=(0,g.useState)(i);(0,g.useEffect)((()=>{i&&l(i)}),[i]);const c=(0,m.useSelect)((e=>{if("true"!==r)return;const{getEditedEntityRecord:t}=e(ye.store);return t("postType","wp_dataviews",Number(n))}),[n,r]),{editEntityRecord:u}=(0,m.useDispatch)(ye.store),d=(0,g.useMemo)((()=>{const e=c?.content&&JSON.parse(c?.content);return e?{...e,layout:{...Yl[e?.type]||{}}}:e}),[c?.content]),p=(0,g.useCallback)((e=>{u("postType","wp_dataviews",c?.id,{content:JSON.stringify(e)})}),[u,c?.id]),h=(0,g.useCallback)((e=>{e.type!==o?.type&&s.push({...t,layout:e.type}),l(e)}),[t,o?.type,s]);return"false"===r?[o,h]:"true"===r&&d?[d,p]:[Xl[e][0].view,h]}(e),r=vS(),{params:a}=yS(),{isCustom:s="false"}=a,i=(0,g.useCallback)((e=>{"false"===s&&t?.type===Lt&&r.push({...a,postId:1===e.length?e[0].id:void 0})}),[r,a,t?.type,s]),o=(0,g.useMemo)((()=>{const e={};return t.filters.forEach((t=>{"status"===t.field&&t.operator===zt&&(e.status=t.value),"author"===t.field&&t.operator===zt?e.author=t.value:"author"===t.field&&t.operator===Ht&&(e.author_exclude=t.value)})),e.status&&""!==e.status||(e.status=wS),{per_page:t.perPage,page:t.page,_embed:"author",order:t.sort?.direction,orderby:t.sort?.field,search:t.search,...e}}),[t]),{records:c,isResolving:u,totalItems:d,totalPages:p}=(0,ye.useEntityRecords)("postType",e,o),{records:h,isResolving:f}=(0,ye.useEntityRecords)("root","user"),y=(0,g.useMemo)((()=>({totalItems:d,totalPages:p})),[d,p]),v=(0,g.useMemo)((()=>[{id:"featured-image",header:(0,E.__)("Featured Image"),getValue:({item:e})=>e.featured_media,render:({item:e})=>(0,l.createElement)(SS,{item:e,viewType:t.type}),enableSorting:!1,width:"1%"},{header:(0,E.__)("Title"),id:"title",getValue:({item:e})=>e.title?.rendered,render:({item:e})=>[Vt,Dt].includes(t.type)?(0,l.createElement)(wt,{params:{postId:e.id,postType:e.type,canvas:"edit"}},(0,en.decodeEntities)(e.title?.rendered)||(0,E.__)("(no title)")):(0,en.decodeEntities)(e.title?.rendered)||(0,E.__)("(no title)"),maxWidth:300,enableHiding:!1},{header:(0,E.__)("Author"),id:"author",getValue:({item:e})=>e._embedded?.author[0]?.name,type:Bt,elements:h?.map((({id:e,name:t})=>({value:e,label:t})))||[]},{header:(0,E.__)("Status"),id:"status",getValue:({item:e})=>{var t;return null!==(t=ES.find((({value:t})=>t===e.status))?.label)&&void 0!==t?t:e.status},type:Bt,elements:ES,enableSorting:!1,filterBy:{operators:[zt]}},{header:(0,E.__)("Date"),id:"date",getValue:({item:e})=>e.date,render:({item:e})=>{const t=(0,_a.dateI18n)((0,_a.getSettings)().formats.datetimeAbbreviated,(0,_a.getDate)(e.date));return(0,l.createElement)("time",null,t)}}]),[h,t.type]),_=function(){const{createSuccessNotice:e,createErrorNotice:t}=(0,m.useDispatch)(ge.store),{deleteEntityRecord:n}=(0,m.useDispatch)(ye.store);return(0,g.useMemo)((()=>({id:"permanently-delete",label:(0,E.__)("Permanently delete"),isPrimary:!0,icon:ql,supportsBulk:!0,isEligible:({status:e})=>"trash"===e,async callback(r){const a=await Promise.allSettled(r.map((e=>n("postType",e.type,e.id,{force:!0},{throwOnError:!0}))));if(a.every((({status:e})=>"fulfilled"===e))){let t;t=1===a.length?(0,E.sprintf)((0,E.__)('"%s" permanently deleted.'),(0,en.decodeEntities)(r[0].title.rendered)):(0,E.__)("The posts were permanently deleted."),e(t,{type:"snackbar",id:"edit-site-post-permanently-deleted"})}else{let e;if(1===a.length)e=a[0].reason?.message?a[0].reason.message:(0,E.__)("An error occurred while permanently deleting the post.");else{const n=new Set,r=a.filter((({status:e})=>"rejected"===e));for(const e of r)e.reason?.message&&n.add(e.reason.message);e=0===n.size?(0,E.__)("An error occurred while permanently deleting the posts."):1===n.size?(0,E.sprintf)((0,E.__)("An error occurred while permanently deleting the posts: %s"),[...n][0]):(0,E.sprintf)((0,E.__)("Some errors occurred while permanently deleting the posts: %s"),[...n].join(",")),t(e,{type:"snackbar"})}}}})),[e,t,n])}(),w=function(){const{createSuccessNotice:e,createErrorNotice:t}=(0,m.useDispatch)(ge.store),{editEntityRecord:n,saveEditedEntityRecord:r}=(0,m.useDispatch)(ye.store);return(0,g.useMemo)((()=>({id:"restore",label:(0,E.__)("Restore"),isPrimary:!0,icon:ba,supportsBulk:!0,isEligible:({status:e})=>"trash"===e,async callback(a){try{for(const e of a)await n("postType",e.type,e.id,{status:"draft"}),await r("postType",e.type,e.id,{throwOnError:!0});e(a.length>1?(0,E.sprintf)((0,E.__)("%d posts have been restored."),a.length):(0,E.sprintf)((0,E.__)('"%s" has been restored.'),(0,en.decodeEntities)(a[0].title.rendered)),{type:"snackbar",id:"edit-site-post-restored"})}catch(e){let n;n=e.message&&"unknown_error"!==e.code&&e.message?e.message:a.length>1?(0,E.__)("An error occurred while restoring the posts."):(0,E.__)("An error occurred while restoring the post."),t(n,{type:"snackbar"})}}})),[e,t,n,r])}(),S=function(){const e=mS();return(0,g.useMemo)((()=>({id:"edit-post",label:(0,E.__)("Edit"),isEligible:({status:e})=>"trash"!==e,callback(t){const n=t[0];e.push({postId:n.id,postType:n.type,canvas:"edit"})}})),[e])}(),x=(0,g.useMemo)((()=>[hS,pS,w,_,S,fS]),[_,w,S]),C=(0,g.useCallback)((e=>{e.type!==t.type&&(e={...e,layout:{...Yl[e.type]}}),n(e)}),[t.type,n]),[k,T]=(0,g.useState)(!1),P=(0,g.useCallback)((()=>{k||T(!0)}),[k]),I=(0,g.useCallback)((()=>{k&&T(!1)}),[k]),M=(0,g.useCallback)((({type:e,id:t})=>{r.push({postId:t,postType:e,canvas:"edit"}),I()}),[r]);return(0,l.createElement)(dS,{title:(0,E.__)("Pages"),actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.Button,{variant:"primary",onClick:P},(0,E.__)("Add new page")),k&&(0,l.createElement)(Hl,{onSave:M,onClose:I}))},(0,l.createElement)(cS,{paginationInfo:y,fields:v,actions:x,data:c||_S,isLoading:u||f,view:t,onChangeView:C,onSelectionChange:i,supportedLayouts:bS}))}const CS=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),kS=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),TS=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"})),PS=window.wp.reusableBlocks,{useHistory:IS}=Xe(gt.privateApis),{CreatePatternModalContents:MS,useDuplicatePatternProps:AS}=Xe(St.privateApis),OS={id:"export-pattern",label:(0,E.__)("Export as JSON"),isEligible:e=>e.type===It.user,callback:([e])=>{const t={__file:e.type,title:e.title||e.name,content:e.patternPost.content.raw,syncStatus:e.patternPost.wp_pattern_sync_status};return(0,Zc.downloadBlob)(`${bs(e.title||e.name)}.json`,JSON.stringify(t,null,2),"application/json")}},NS={id:"rename-pattern",label:(0,E.__)("Rename"),isEligible:e=>{const t=e.type===kt,n=e.type===It.user||t&&e.isCustom,r=t&&e.templatePart.has_theme_file;return n&&!r},RenderModal:({items:e,closeModal:t})=>{const[n]=e,[r,a]=(0,g.useState)((()=>n.title)),{editEntityRecord:s,saveEditedEntityRecord:i}=(0,m.useDispatch)(ye.store),{createSuccessNotice:o,createErrorNotice:c}=(0,m.useDispatch)(ge.store);return(0,l.createElement)("form",{onSubmit:async function(e){e.preventDefault();try{await s("postType",n.type,n.id,{title:r}),a(""),t(),await i("postType",n.type,n.id,{throwOnError:!0}),o(n.type===kt?(0,E.__)("Template part renamed."):(0,E.__)("Pattern renamed."),{type:"snackbar"})}catch(e){const t=n.type===kt?(0,E.__)("An error occurred while renaming the template part."):(0,E.__)("An error occurred while renaming the pattern."),r=e.message&&"unknown_error"!==e.code?e.message:t;c(r,{type:"snackbar"})}}},(0,l.createElement)(b.__experimentalVStack,{spacing:"5"},(0,l.createElement)(b.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,E.__)("Name"),value:r,onChange:a,required:!0}),(0,l.createElement)(b.__experimentalHStack,{justify:"right"},(0,l.createElement)(b.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t()}},(0,E.__)("Cancel")),(0,l.createElement)(b.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit"},(0,E.__)("Save")))))}},FS=e=>{const t=e.type===kt;return e.type===It.user||t&&e.isCustom},RS={id:"delete-pattern",label:(0,E.__)("Delete"),isEligible:e=>{const t=e.type===kt&&e.templatePart.has_theme_file;return FS(e)&&!t},hideModalHeader:!0,supportsBulk:!0,RenderModal:({items:e,closeModal:t,onPerform:n})=>{const{__experimentalDeleteReusableBlock:r}=(0,m.useDispatch)(PS.store),{createErrorNotice:a,createSuccessNotice:s}=(0,m.useDispatch)(ge.store),{removeTemplates:i}=Xe((0,m.useDispatch)(tr));let o;return o=1===e.length?(0,E.sprintf)((0,E.__)('Are you sure you want to delete "%s"?'),(0,en.decodeEntities)(e[0].title||e[0].name)):e.length>1&&e[0].type===kt?(0,E.sprintf)((0,E.__)("Are you sure you want to delete %d template parts?"),e.length):(0,E.sprintf)((0,E.__)("Are you sure you want to delete %d patterns?"),e.length),(0,l.createElement)(b.__experimentalVStack,{spacing:"5"},(0,l.createElement)(b.__experimentalText,null,o),(0,l.createElement)(b.__experimentalHStack,{justify:"right"},(0,l.createElement)(b.Button,{variant:"tertiary",onClick:t},(0,E.__)("Cancel")),(0,l.createElement)(b.Button,{variant:"primary",onClick:()=>{e[0].type===kt?i(e):(async()=>{const t=await Promise.allSettled(e.map((e=>r(e.id))));if(t.every((({status:e})=>"fulfilled"===e))){let n;n=1===t.length?(0,E.sprintf)((0,E.__)('"%s" deleted.'),e[0].title):(0,E.__)("The patterns were deleted."),s(n,{type:"snackbar",id:"edit-site-page-trashed"})}else{let e;if(1===t.length)e=t[0].reason?.message?t[0].reason.message:(0,E.__)("An error occurred while deleting the pattern.");else{const n=new Set,r=t.filter((({status:e})=>"rejected"===e));for(const e of r)e.reason?.message&&n.add(e.reason.message);e=0===n.size?(0,E.__)("An error occurred while deleting the patterns."):1===n.size?(0,E.sprintf)((0,E.__)("An error occurred while deleting the patterns: %s"),[...n][0]):(0,E.sprintf)((0,E.__)("Some errors occurred while deleting the patterns: %s"),[...n].join(",")),a(e,{type:"snackbar"})}}})(),n&&n(),t()}},(0,E.__)("Delete"))))}},DS={id:"reset-action",label:(0,E.__)("Clear customizations"),isEligible:e=>{const t=e.type===kt&&e.templatePart.has_theme_file;return FS(e)&&t},hideModalHeader:!0,RenderModal:({items:e,closeModal:t})=>{const[n]=e,{removeTemplate:r}=(0,m.useDispatch)(tr);return(0,l.createElement)(b.__experimentalVStack,{spacing:"5"},(0,l.createElement)(b.__experimentalText,null,(0,E.__)("Are you sure you want to clear these customizations?")),(0,l.createElement)(b.__experimentalHStack,{justify:"right"},(0,l.createElement)(b.Button,{variant:"tertiary",onClick:t},(0,E.__)("Cancel")),(0,l.createElement)(b.Button,{variant:"primary",onClick:()=>r(n)},(0,E.__)("Clear"))))}},VS={id:"duplicate-pattern",label:(0,E._x)("Duplicate","action label"),isEligible:e=>e.type!==kt,modalHeader:(0,E._x)("Duplicate pattern","action label"),RenderModal:({items:e,closeModal:t})=>{const[n]=e,{categoryId:r=Mt}=(0,yt.getQueryArgs)(window.location.href),a=n.type===It.theme,s=IS();const i=AS({pattern:a?n:n.patternPost,onSuccess:function({pattern:e}){s.push({categoryType:It.theme,categoryId:r,postType:It.user,postId:e.id}),t()}});return(0,l.createElement)(MS,{onClose:t,confirmLabel:(0,E._x)("Duplicate","action label"),...i})}},LS={id:"duplicate-template-part",label:(0,E._x)("Duplicate","action label"),isEligible:e=>e.type===kt,modalHeader:(0,E._x)("Duplicate template part","action label"),RenderModal:({items:e,closeModal:t})=>{const[n]=e,{createSuccessNotice:r}=(0,m.useDispatch)(ge.store),{categoryId:a=Mt}=(0,yt.getQueryArgs)(window.location.href),s=IS();return(0,l.createElement)(ti,{blocks:n.blocks,defaultArea:n.templatePart.area,defaultTitle:(0,E.sprintf)((0,E.__)("%s (Copy)"),n.title),onCreate:async function(e){r((0,E.sprintf)((0,E.__)('"%s" duplicated.'),n.title),{type:"snackbar",id:"edit-site-patterns-success"}),s.push({postType:kt,postId:e?.id,categoryType:kt,categoryId:a}),t()},onError:t,confirmLabel:(0,E._x)("Duplicate","action label")})}};function BS(){var e;const t=(0,m.useSelect)((e=>{const{getSettings:t}=Xe(e(tr));return t()}),[]),n=null!==(e=t.__experimentalAdditionalBlockPatterns)&&void 0!==e?e:t.__experimentalBlockPatterns,r=(0,m.useSelect)((e=>e(ye.store).getBlockPatterns()),[]),a=(0,g.useMemo)((()=>[...n||[],...r||[]].filter(li)),[n,r]);return(0,g.useMemo)((()=>{const{__experimentalAdditionalBlockPatterns:e,...n}=t;return{...n,__experimentalBlockPatterns:a,__unstableIsPreviewMode:!0}}),[t,a])}const{RenamePatternCategoryModal:zS}=Xe(St.privateApis);function HS({category:e,onClose:t}){const[n,r]=(0,g.useState)(!1);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.MenuItem,{onClick:()=>r(!0)},(0,E.__)("Rename")),n&&(0,l.createElement)(GS,{category:e,onClose:()=>{r(!1),t()}}))}function GS({category:e,onClose:t}){const n={id:e.id,slug:e.slug,name:e.label},r=Oi();return(0,l.createElement)(zS,{category:n,existingCategories:r,onClose:t,overlayClassName:"edit-site-list__rename-modal"})}const{useHistory:US}=Xe(gt.privateApis);function WS({category:e,onClose:t}){const[n,r]=(0,g.useState)(!1),a=US(),{createSuccessNotice:s,createErrorNotice:i}=(0,m.useDispatch)(ge.store),{deleteEntityRecord:o,invalidateResolution:c}=(0,m.useDispatch)(ye.store);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.MenuItem,{isDestructive:!0,onClick:()=>r(!0)},(0,E.__)("Delete")),(0,l.createElement)(b.__experimentalConfirmDialog,{isOpen:n,onConfirm:async()=>{try{await o("taxonomy","wp_pattern_category",e.id,{force:!0},{throwOnError:!0}),c("getUserPatternCategories"),c("getEntityRecords",["postType",It.user,{per_page:-1}]),s((0,E.sprintf)((0,E.__)('"%s" deleted.'),e.label),{type:"snackbar",id:"pattern-category-delete"}),t?.(),a.push({path:"/patterns",categoryType:It.theme,categoryId:Mt})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while deleting the pattern category.");i(t,{type:"snackbar",id:"pattern-category-delete"})}},onCancel:()=>r(!1),confirmButtonText:(0,E.__)("Delete"),className:"edit-site-patterns__delete-modal"},(0,E.sprintf)((0,E.__)('Are you sure you want to delete the category "%s"? The patterns will not be deleted.'),(0,en.decodeEntities)(e.label))))}function jS({categoryId:e,type:t,titleId:n,descriptionId:r}){const{patternCategories:a}=Oi(),s=(0,m.useSelect)((e=>e(y.store).__experimentalGetDefaultTemplatePartAreas()),[]);let i,o,c;if(t===kt){const t=s.find((t=>t.area===e));i=t?.label,o=t?.description}else t===It.theme&&(c=a.find((t=>t.name===e)),i=c?.label,o=c?.description);return i?(0,l.createElement)(b.__experimentalVStack,{className:"edit-site-patterns__section-header"},(0,l.createElement)(b.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(b.__experimentalHeading,{as:"h2",level:4,id:n},i),!!c?.id&&(0,l.createElement)(b.DropdownMenu,{icon:ue,label:(0,E.__)("Actions"),toggleProps:{className:"edit-site-patterns__button",describedBy:(0,E.sprintf)((0,E.__)("Action menu for %s pattern category"),i)}},(({onClose:e})=>(0,l.createElement)(b.MenuGroup,null,(0,l.createElement)(HS,{category:c,onClose:e}),(0,l.createElement)(WS,{category:c,onClose:e}))))),o?(0,l.createElement)(b.__experimentalText,{variant:"muted",as:"p",id:r},o):null):null}const{ExperimentalBlockEditorProvider:ZS,useGlobalStyle:qS}=Xe(fe.privateApis),YS={header:CS,footer:kS,uncategorized:Ks},KS=[],XS={[Dt]:{mediaField:"preview",primaryField:"title"}},JS={type:Dt,search:"",page:1,perPage:20,hiddenFields:["sync-status"],layout:{...XS[Dt]},filters:[]},QS=[{value:Nt.full,label:(0,E._x)("Synced","Option that shows all synchronized patterns"),description:(0,E.__)("Patterns that are kept in sync across the site.")},{value:Nt.unsynced,label:(0,E._x)("Not synced","Option that shows all patterns that are not synchronized"),description:(0,E.__)("Patterns that can be changed freely without affecting the site.")}];function $S({item:e,onClick:t,ariaDescribedBy:n,children:r}){return e.type===It.theme?r:(0,l.createElement)("button",{className:"page-patterns-preview-field__button",type:"button",onClick:t,"aria-label":e.title,"aria-describedby":n},r)}function ex({item:e,categoryId:t,viewType:n}){const r=(0,g.useId)(),a=e.type===It.user,s=e.type===It.theme,i=e.type===kt,o=!e.blocks?.length,c=[];a||i&&e.isCustom?c.push((0,E.__)("Press Enter to edit, or Delete to delete the pattern.")):e.description&&c.push(e.description),s&&c.push((0,E.__)("Theme & plugin patterns cannot be edited."));const[u]=qS("color.background"),{onClick:d}=Et({postType:e.type,postId:a?e.id:e.name,categoryId:t,categoryType:i?e.type:It.theme});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:`page-patterns-preview-field is-viewtype-${n}`,style:{backgroundColor:u}},(0,l.createElement)($S,{item:e,onClick:d,ariaDescribedBy:c.length?c.map(((e,t)=>`${r}-${t}`)).join(" "):void 0},o&&i&&(0,E.__)("Empty template part"),o&&!i&&(0,E.__)("Empty pattern"),!o&&(0,l.createElement)(fe.BlockPreview,{blocks:e.blocks}))),c.map(((e,t)=>(0,l.createElement)("div",{key:t,hidden:!0,id:`${r}-${t}`},e))))}function tx({item:e,categoryId:t}){const n=e.type===It.user,r=e.type===It.theme,a=e.type===kt;let s;const{onClick:i}=Et({postType:e.type,postId:n?e.id:e.name,categoryId:t,categoryType:a?e.type:It.theme});return s=!n&&YS[t]?YS[t]:e.syncStatus===Nt.full?cr:void 0,(0,l.createElement)(b.__experimentalHStack,{alignment:"center",justify:"flex-start",spacing:2},(0,l.createElement)(b.Flex,{as:"div",gap:0,justify:"left",className:"edit-site-patterns__pattern-title"},e.type===It.theme?e.title:(0,l.createElement)(b.Button,{variant:"link",onClick:i,tabIndex:"-1"},e.title||e.name)),s&&!r&&(0,l.createElement)(b.Tooltip,{placement:"top",text:(0,E.__)("Editing this pattern will also update anywhere it is used")},(0,l.createElement)(fr,{className:"edit-site-patterns__pattern-icon",icon:s})),e.type===It.theme&&(0,l.createElement)(b.Tooltip,{placement:"top",text:(0,E.__)("This pattern cannot be edited.")},(0,l.createElement)(fr,{className:"edit-site-patterns__pattern-lock-icon",icon:TS,size:24})))}function nx(){const{categoryType:e,categoryId:t=Mt}=(0,yt.getQueryArgs)(window.location.href),n=e||It.theme,[r,a]=(0,g.useState)(JS),s=n===It.theme&&"uncategorized"===t,i=(0,ie.usePrevious)(t),o=r.filters?.find((({field:e})=>"sync-status"===e))?.value,{patterns:c,isResolving:u}=Ai(n,s?"":t,{search:r.search,syncStatus:o}),d=(0,g.useMemo)((()=>{const e=[{header:(0,E.__)("Preview"),id:"preview",render:({item:e})=>(0,l.createElement)(ex,{item:e,categoryId:t,viewType:r.type}),enableSorting:!1,enableHiding:!1},{header:(0,E.__)("Title"),id:"title",getValue:({item:e})=>e.title,render:({item:e})=>(0,l.createElement)(tx,{item:e,categoryId:t}),enableHiding:!1}];return n===It.theme&&e.push({header:(0,E.__)("Sync Status"),id:"sync-status",render:({item:e})=>QS.find((({value:t})=>t===e.syncStatus))?.label||QS.find((({value:e})=>e===Nt.unsynced)).label,type:Bt,elements:QS,filterBy:{operators:[zt],isPrimary:!0},enableSorting:!1}),e}),[r.type,t,n]);(0,g.useEffect)((()=>{i!==t&&a(JS)}),[t,i]);const{data:m,paginationInfo:p}=(0,g.useMemo)((()=>{if(!c)return{data:KS,paginationInfo:{totalItems:0,totalPages:0}};let e=[...c];return r.sort&&(e=Ko({data:e,view:r,fields:d,textFields:["title","author"]})),Xo({data:e,view:r})}),[c,r,d]),h=(0,g.useMemo)((()=>[NS,VS,LS,OS,DS,RS]),[]),f=(0,g.useCallback)((e=>{e.type!==r.type&&(e={...e,layout:{...XS[e.type]}}),a(e)}),[r.type,a]),y=(0,g.useId)(),v=BS();return(0,l.createElement)(ZS,{settings:v},(0,l.createElement)(dS,{title:(0,E.__)("Patterns content"),className:"edit-site-page-patterns-dataviews",hideTitleFromUI:!0},(0,l.createElement)(jS,{categoryId:t,type:n,titleId:`${y}-title`,descriptionId:`${y}-description`}),(0,l.createElement)(cS,{paginationInfo:p,fields:d,actions:h,data:m||KS,getItemId:e=>e.name,isLoading:u,view:r,onChangeView:f,deferredRendering:!0,supportedLayouts:[Dt]})))}const rx={id:"delete-template",label:(0,E.__)("Delete"),isPrimary:!0,icon:ql,isEligible:Hs,supportsBulk:!0,hideModalHeader:!0,RenderModal:({items:e,closeModal:t,onPerform:n})=>{const{removeTemplates:r}=Xe((0,m.useDispatch)(tr));return(0,l.createElement)(b.__experimentalVStack,{spacing:"5"},(0,l.createElement)(b.__experimentalText,null,e.length>1?(0,E.sprintf)((0,E._n)("Delete %d item?","Delete %d items?",e.length),e.length):(0,E.sprintf)((0,E.__)('Delete "%s"?'),(0,en.decodeEntities)(e?.[0]?.title?.rendered))),(0,l.createElement)(b.__experimentalHStack,{justify:"right"},(0,l.createElement)(b.Button,{variant:"tertiary",onClick:t},(0,E.__)("Cancel")),(0,l.createElement)(b.Button,{variant:"primary",onClick:async()=>{await r(e,{allowUndo:!1}),n&&n(),t()}},(0,E.__)("Delete"))))}},ax={id:"rename-template",label:(0,E.__)("Rename"),isEligible:e=>!(!Hs(e)||e.type===Ct&&!e.is_custom),RenderModal:({items:e,closeModal:t})=>{const n=e[0],r=(0,en.decodeEntities)(n.title.rendered),[a,s]=(0,g.useState)(r),{editEntityRecord:i,__experimentalSaveSpecifiedEntityEdits:o}=(0,m.useDispatch)(ye.store),{createSuccessNotice:c,createErrorNotice:u}=(0,m.useDispatch)(ge.store);return(0,l.createElement)("form",{onSubmit:async function(e){e.preventDefault();try{await i("postType",n.type,n.id,{title:a}),s(""),t(),await o("postType",n.type,n.id,["title"],{throwOnError:!0}),c(n.type===Ct?(0,E.__)("Template renamed."):(0,E.__)("Template part renamed."),{type:"snackbar"})}catch(e){const t=n.type===Ct?(0,E.__)("An error occurred while renaming the template."):(0,E.__)("An error occurred while renaming the template part."),r=e.message&&"unknown_error"!==e.code?e.message:t;u(r,{type:"snackbar"})}}},(0,l.createElement)(b.__experimentalVStack,{spacing:"5"},(0,l.createElement)(b.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:a,onChange:s,required:!0}),(0,l.createElement)(b.__experimentalHStack,{justify:"right"},(0,l.createElement)(b.Button,{variant:"tertiary",onClick:t},(0,E.__)("Cancel")),(0,l.createElement)(b.Button,{variant:"primary",type:"submit"},(0,E.__)("Save")))))}},{useHistory:sx}=Xe(gt.privateApis);function ix(){const{canCreate:e,postType:t}=(0,m.useSelect)((e=>{const{supportsTemplatePartsMode:t}=e(tr).getSettings();return{canCreate:!t,postType:e(ye.store).getPostType(kt)}}),[]),[n,r]=(0,g.useState)(!1),a=sx();return e&&t?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.Button,{variant:"primary",onClick:()=>r(!0)},t.labels.add_new_item),n&&(0,l.createElement)(ei,{closeModal:()=>r(!1),blocks:[],onCreate:e=>{r(!1),a.push({postId:e.id,postType:kt,canvas:"edit"})},onError:()=>r(!1)})):null}const{ExperimentalBlockEditorProvider:ox,useGlobalStyle:lx}=Xe(fe.privateApis),{useHistory:cx,useLocation:ux}=Xe(gt.privateApis),dx=[],mx=window?.__experimentalAdminViews?[Vt,Dt,Lt]:[Vt,Dt],px={[Vt]:{primaryField:"title"},[Dt]:{mediaField:"preview",primaryField:"title"},[Lt]:{primaryField:"title",mediaField:"preview"}},hx={type:Vt,search:"",page:1,perPage:20,sort:{field:"title",direction:"asc"},hiddenFields:["preview"],layout:px[Vt],filters:[]};function fx(e=""){return hi()(e.trim().toLowerCase())}function gx({item:e,viewType:t}){if(t===Lt)return(0,en.decodeEntities)(e.title?.rendered)||(0,E.__)("(no title)");const n={params:{postId:e.id,postType:e.type,canvas:"edit"}};return e.type===kt&&(n.state={backPath:"/wp_template_part/all"}),(0,l.createElement)(wt,{...n},(0,en.decodeEntities)(e.title?.rendered)||(0,E.__)("(no title)"))}function yx({item:e,viewType:t}){const{text:n,icon:r,imageUrl:a}=Bs(e.type,e.id),s=t!==Lt;return(0,l.createElement)(b.__experimentalHStack,{alignment:"left",spacing:1},s&&a&&(0,l.createElement)(zs,{imageUrl:a}),s&&!a&&(0,l.createElement)("div",{className:"edit-site-list-added-by__icon"},(0,l.createElement)(b.Icon,{icon:r})),(0,l.createElement)("span",null,n))}function vx({item:e,viewType:t}){const n=BS(),[r="white"]=lx("color.background"),a=(0,g.useMemo)((()=>(0,u.parse)(e.content.raw)),[e.content.raw]),{onClick:s}=Et({postId:e.id,postType:e.type,canvas:"edit"}),i=!a?.length;return(0,l.createElement)(ox,{settings:n},(0,l.createElement)("div",{className:`page-templates-preview-field is-viewtype-${t}`,style:{backgroundColor:r}},t===Lt&&!i&&(0,l.createElement)(fe.BlockPreview,{blocks:a}),t!==Lt&&(0,l.createElement)("button",{className:"page-templates-preview-field__button",type:"button",onClick:s,"aria-label":e.title?.rendered||e.title},i&&(e.type===Ct?(0,E.__)("Empty template"):(0,E.__)("Empty template part")),!i&&(0,l.createElement)(fe.BlockPreview,{blocks:a}))))}function _x({postType:e}){const{params:t}=ux(),{activeView:n="all",layout:r}=t,a=(0,g.useMemo)((()=>{const e=window?.__experimentalAdminViews&&null!=r?r:hx.type;return{...hx,type:e,layout:px[e],filters:"all"!==n?[{field:"author",operator:"in",value:n}]:[]}}),[r,n]),[s,i]=(0,g.useState)(a);(0,g.useEffect)((()=>{i((e=>({...e,filters:"all"!==n?[{field:"author",operator:"in",value:n}]:[]})))}),[n]);const{records:o,isResolving:c}=(0,ye.useEntityRecords)("postType",e,{per_page:-1}),u=cx(),d=(0,g.useCallback)((e=>{s?.type===Lt&&u.push({...t,postId:1===e.length?e[0].id:void 0})}),[u,t,s?.type]),p=(0,g.useMemo)((()=>{if(!o)return dx;const e=new Set;return o.forEach((t=>{e.add(t.author_text)})),Array.from(e).map((e=>({value:e,label:e})))}),[o]),h=(0,g.useMemo)((()=>{const t=[{header:(0,E.__)("Preview"),id:"preview",render:({item:e})=>(0,l.createElement)(vx,{item:e,viewType:s.type}),minWidth:120,maxWidth:120,enableSorting:!1},{header:e===Ct?(0,E.__)("Template"):(0,E.__)("Template Part"),id:"title",getValue:({item:e})=>e.title?.rendered,render:({item:e})=>(0,l.createElement)(gx,{item:e,viewType:s.type}),maxWidth:400,enableHiding:!1}];return e===Ct&&t.push({header:(0,E.__)("Description"),id:"description",getValue:({item:e})=>e.description,render:({item:e})=>e.description?(0,l.createElement)("span",{className:"page-templates-description"},(0,en.decodeEntities)(e.description)):s.type===Vt&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.__experimentalText,{variant:"muted","aria-hidden":"true"},"—"),(0,l.createElement)(b.VisuallyHidden,null,(0,E.__)("No description."))),maxWidth:400,minWidth:320,enableSorting:!1}),t.push({header:(0,E.__)("Author"),id:"author",getValue:({item:e})=>e.author_text,render:({item:e})=>(0,l.createElement)(yx,{viewType:s.type,item:e}),type:Bt,elements:p,width:"1%"}),t}),[e,p,s.type]),{data:f,paginationInfo:y}=(0,g.useMemo)((()=>{if(!o)return{data:dx,paginationInfo:{totalItems:0,totalPages:0}};let e=[...o];if(s.search){const t=fx(s.search);e=e.filter((e=>fx(e.title?.rendered||e.slug).includes(t)||fx(e.description).includes(t)))}return s.filters.length>0&&s.filters.forEach((t=>{"author"===t.field&&t.operator===zt&&t.value?e=e.filter((e=>e.author_text===t.value)):"author"===t.field&&t.operator===Ht&&t.value&&(e=e.filter((e=>e.author_text!==t.value)))})),s.sort&&(e=Ko({data:e,view:s,fields:h,textFields:["title","author"]})),Xo({data:e,view:s})}),[o,s,h]),v=function(){const{revertTemplate:e}=(0,m.useDispatch)(tr),{saveEditedEntityRecord:t}=(0,m.useDispatch)(ye.store),{createSuccessNotice:n,createErrorNotice:r}=(0,m.useDispatch)(ge.store);return(0,g.useMemo)((()=>({id:"reset-template",label:(0,E.__)("Reset"),isPrimary:!0,icon:ba,isEligible:$t,supportsBulk:!0,async callback(a){try{for(const n of a)await e(n,{allowUndo:!1}),await t("postType",n.type,n.id);n(a.length>1?(0,E.sprintf)((0,E.__)("%s items reverted."),a.length):(0,E.sprintf)((0,E.__)('"%s" reverted.'),(0,en.decodeEntities)(a[0].title.rendered)),{type:"snackbar",id:"edit-site-template-reverted"})}catch(e){let t;t=a[0].type===Ct?1===a.length?(0,E.__)("An error occurred while reverting the template."):(0,E.__)("An error occurred while reverting the templates."):1===a.length?(0,E.__)("An error occurred while reverting the template part."):(0,E.__)("An error occurred while reverting the template parts.");const n=e.message&&"unknown_error"!==e.code?e.message:t;r(n,{type:"snackbar"})}}})),[r,n,e,t])}(),_=(0,g.useMemo)((()=>[v,rx,ax,fS]),[v]),w=(0,g.useCallback)((e=>{e.type!==s.type&&(e={...e,layout:{...px[e.type]}},u.push({...t,layout:e.type})),i(e)}),[s.type,i,u,t]);return(0,l.createElement)(dS,{className:"edit-site-page-template-template-parts-dataviews",title:e===Ct?(0,E.__)("Templates"):(0,E.__)("Template Parts"),actions:e===Ct?(0,l.createElement)(Is,{templateType:e,showIcon:!1,toggleProps:{variant:"primary"}}):(0,l.createElement)(ix,null)},(0,l.createElement)(cS,{paginationInfo:y,fields:h,actions:_,data:f,isLoading:c,view:s,onChangeView:w,onSelectionChange:d,deferredRendering:!s.hiddenFields?.includes("preview"),supportedLayouts:mx}))}const{useLocation:bx}=Xe(gt.privateApis);const{useCommands:Ex}=Xe(ar.privateApis),{useCommandContext:wx}=Xe(rr.privateApis),{useGlobalStyle:Sx}=Xe(fe.privateApis),xx=.5;function Cx(){Bi(),function(){const e=yu(),{params:t}=gu(),n=(0,m.useSelect)((e=>Xe(e(tr)).getCanvasMode()),[]),{setCanvasMode:r}=Xe((0,m.useDispatch)(tr)),a=(0,g.useRef)(n),{canvas:s}=t,i=(0,g.useRef)(s),o=(0,g.useRef)(t);(0,g.useEffect)((()=>{o.current=t}),[t]),(0,g.useEffect)((()=>{a.current=n,"init"!==n&&("edit"===n&&i.current!==n&&e.push({...o.current,canvas:"edit"}),"view"===n&&void 0!==i.current&&e.push({...o.current,canvas:void 0}))}),[n,e]),(0,g.useEffect)((()=>{i.current=s,"edit"!==s&&"view"!==a.current?r("view"):"edit"===s&&"edit"!==a.current&&r("edit")}),[s,r])}(),Ex(),(0,rr.useCommandLoader)({name:"core/exit-code-editor",hook:ed,context:"site-editor-edit"}),(0,rr.useCommandLoader)({name:"core/edit-site/page-content-focus",hook:$u,context:"site-editor-edit"}),(0,rr.useCommandLoader)({name:"core/edit-site/manipulate-document",hook:td}),(0,rr.useCommandLoader)({name:"core/edit-site/patterns",hook:rd,context:"site-editor-edit"}),(0,rr.useCommandLoader)({name:"core/edit-site/edit-ui",hook:nd}),function(){const e=(0,m.useSelect)((e=>{const{getUnstableBase:t}=e(ye.store);return t()?.home}),[]);(0,rr.useCommand)({name:"core/edit-site/view-site",label:(0,E.__)("View site"),callback:({close:t})=>{t(),window.open(e,"_blank")},icon:Ic}),(0,rr.useCommandLoader)({name:"core/edit-site/open-styles",hook:Fu}),(0,rr.useCommandLoader)({name:"core/edit-site/toggle-styles-welcome-guide",hook:Ru}),(0,rr.useCommandLoader)({name:"core/edit-site/reset-global-styles",hook:Du}),(0,rr.useCommandLoader)({name:"core/edit-site/open-styles-css",hook:Vu}),(0,rr.useCommandLoader)({name:"core/edit-site/open-styles-revisions",hook:Lu})}(),(0,fe.useBlockCommands)();const e=(0,ie.useViewportMatch)("medium","<"),{isDistractionFree:t,hasFixedToolbar:n,hasBlockSelected:r,canvasMode:a,previousShortcut:s,nextShortcut:i}=(0,m.useSelect)((e=>{const{getAllShortcutKeyCombinations:t}=e(nr.store),{getCanvasMode:n}=Xe(e(tr));return{canvasMode:n(),previousShortcut:t("core/edit-site/previous-region"),nextShortcut:t("core/edit-site/next-region"),hasFixedToolbar:e(T.store).get("core","fixedToolbar"),isDistractionFree:e(T.store).get("core","distractionFree"),hasBlockSelected:e(fe.store).getBlockSelectionStart()}}),[]),o=(0,b.__unstableUseNavigateRegions)({previous:s,next:i}),c=(0,ie.useReducedMotion)(),[u,d]=(0,ie.useResizeObserver)(),[p]=(0,ie.useResizeObserver)(),h=sd(),[f,y]=(0,g.useState)(!1),{areas:v,widths:w}=function(){const e=sd(),{params:t}=bx(),{postType:n,postId:r,path:a,layout:s,isCustom:i,canvas:o}=null!=t?t:{};if("/page"===a)return{areas:{content:void 0,preview:(0,l.createElement)(l_,{isLoading:e}),mobile:"edit"===o?(0,l.createElement)(l_,{isLoading:e}):void 0},widths:{content:void 0}};const c="true"!==i&&"list"===s&&window?.__experimentalAdminViews;return"/pages"===a?{areas:{content:(0,l.createElement)(xS,null),preview:c&&(0,l.createElement)(l_,{isLoading:e})},widths:{content:c?380:void 0}}:n&&r?{areas:{preview:(0,l.createElement)(l_,{isLoading:e}),mobile:"edit"===o?(0,l.createElement)(l_,{isLoading:e}):void 0}}:"/wp_template/all"===a?{areas:{content:(0,l.createElement)(_x,{postType:Ct}),preview:c&&(0,l.createElement)(l_,{isLoading:e}),mobile:(0,l.createElement)(_x,{postType:Ct})},widths:{content:c?380:void 0}}:"/wp_template_part/all"===a?{areas:{content:(0,l.createElement)(_x,{postType:kt}),preview:c&&(0,l.createElement)(l_,{isLoading:e}),mobile:(0,l.createElement)(_x,{postType:kt})},widths:{content:c?380:void 0}}:"/patterns"===a?{areas:{content:(0,l.createElement)(nx,null),mobile:(0,l.createElement)(nx,null)}}:{areas:{preview:(0,l.createElement)(l_,{isLoading:e}),mobile:"edit"===o?(0,l.createElement)(l_,{isLoading:e}):void 0}}}();let S;S="view"===a?"view":t?"isDistractionFree":a;let x="site-editor";"edit"===a&&(x="site-editor-edit"),r&&(x="block-selection-edit"),wx(x);const[C]=Sx("color.background"),[k]=Sx("color.gradient");return"init"===a?null:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(rr.CommandMenu,null),(0,l.createElement)(xu,null),(0,l.createElement)(Cu,null),p,(0,l.createElement)("div",{...o,ref:o.ref,className:_()("edit-site-layout",o.className,{"is-distraction-free":t&&"edit"===a,"is-full-canvas":"edit"===a,"has-fixed-toolbar":n,"is-block-toolbar-visible":r})},(0,l.createElement)(b.__unstableMotion.div,{className:"edit-site-layout__header-container",variants:{isDistractionFree:{opacity:0,transition:{type:"tween",delay:.8,delayChildren:.8}},isDistractionFreeHovering:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},view:{opacity:1},edit:{opacity:1}},whileHover:t?"isDistractionFreeHovering":void 0,animate:S},(0,l.createElement)(lu,{isTransparent:f,className:"edit-site-layout__hub"}),(0,l.createElement)(b.__unstableAnimatePresence,{initial:!1},"edit"===a&&(0,l.createElement)(oe,{key:"header",className:"edit-site-layout__header",ariaLabel:(0,E.__)("Editor top bar"),as:b.__unstableMotion.div,variants:{isDistractionFree:{opacity:0,y:0},isDistractionFreeHovering:{opacity:1,y:0},view:{opacity:1,y:"-100%"},edit:{opacity:1,y:0}},exit:{y:"-100%"},initial:{opacity:t?1:0,y:t?0:"-100%"},transition:{type:"tween",duration:c?0:.2,ease:"easeOut"}},(0,l.createElement)(au,null)))),(0,l.createElement)("div",{className:"edit-site-layout__content"},(!e||e&&!v.mobile)&&(0,l.createElement)(oe,{ariaLabel:(0,E.__)("Navigation"),className:"edit-site-layout__sidebar-region"},(0,l.createElement)(b.__unstableAnimatePresence,null,"view"===a&&(0,l.createElement)(b.__unstableMotion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{type:"tween",duration:c||e?0:xx,ease:"easeOut"},className:"edit-site-layout__sidebar"},(0,l.createElement)(Sc,null)))),(0,l.createElement)(Su,null),e&&v.mobile&&(0,l.createElement)("div",{className:"edit-site-layout__mobile",style:{maxWidth:w?.content}},v.mobile),!e&&v.content&&"edit"!==a&&(0,l.createElement)("div",{className:"edit-site-layout__area",style:{maxWidth:w?.content}},v.content),!e&&v.preview&&(0,l.createElement)("div",{className:"edit-site-layout__canvas-container"},u,!!d.width&&(0,l.createElement)(b.__unstableMotion.div,{whileHover:"view"===a?{scale:1.005,transition:{duration:c?0:.5,ease:"easeOut"}}:{},initial:!1,layout:"position",className:_()("edit-site-layout__canvas",{"is-right-aligned":f}),transition:{type:"tween",duration:c?0:xx,ease:"easeOut"}},(0,l.createElement)(kc,null,(0,l.createElement)(fu,{isReady:!h,isFullWidth:"edit"===a,defaultSize:{width:d.width-24,height:d.height},isOversized:f,setIsOversized:y,innerContentStyle:{background:null!=k?k:C}},v.preview)))))))}const{RouterProvider:kx}=Xe(gt.privateApis);function Tx(){const{createErrorNotice:e}=(0,m.useDispatch)(ge.store);return(0,l.createElement)(b.SlotFillProvider,null,(0,l.createElement)(Ar,null,(0,l.createElement)(y.UnsavedChangesWarning,null),(0,l.createElement)(kx,null,(0,l.createElement)(Cx,null),(0,l.createElement)(Z.PluginArea,{onError:function(t){e((0,E.sprintf)((0,E.__)('The "%s" plugin has encountered an error and cannot be rendered.'),t))}}))))}function Px({className:e,...t}){return(0,l.createElement)(se,{panelClassName:e,className:"edit-site-sidebar-edit-mode",scope:"core/edit-site",...t})}function Ix(e){return(0,l.createElement)(ee,{__unstableExplicitMenuItem:!0,scope:"core/edit-site",...e})}const Mx=(0,ie.compose)((0,Z.withPluginContext)(((e,t)=>{var n;return{as:null!==(n=t.as)&&void 0!==n?n:b.MenuItem,icon:t.icon||e.icon,name:"core/edit-site/plugin-more-menu"}})))(Q);function Ax(e,t){const n=document.getElementById(e),r=(0,g.createRoot)(n);(0,m.dispatch)(u.store).reapplyBlockTypeFilters();const a=(0,d.__experimentalGetCoreBlocks)().filter((({name:e})=>"core/freeform"!==e));return(0,d.registerCoreBlocks)(a),(0,m.dispatch)(u.store).setFreeformFallbackBlockName("core/html"),(0,me.registerLegacyWidgetBlock)({inserter:!1}),(0,me.registerWidgetGroupBlock)({inserter:!1}),(0,m.dispatch)(T.store).setDefaults("core/edit-site",{welcomeGuide:!0,welcomeGuideStyles:!0,welcomeGuidePage:!0,welcomeGuideTemplate:!0}),(0,m.dispatch)(T.store).setDefaults("core",{allowRightClickOverrides:!0,distractionFree:!1,editorMode:"visual",fixedToolbar:!1,focusMode:!1,inactivePanels:[],keepCaretInsideBlock:!1,openPanels:["post-status"],showBlockBreadcrumbs:!0,showListViewByDefault:!1}),(0,m.dispatch)(j).setDefaultComplementaryArea("core/edit-site","edit-site/template"),(0,m.dispatch)(tr).updateSettings(t),(0,m.dispatch)(y.store).updateEditorSettings({defaultTemplateTypes:t.defaultTemplateTypes,defaultTemplatePartAreas:t.defaultTemplatePartAreas}),window.addEventListener("dragover",(e=>e.preventDefault()),!1),window.addEventListener("drop",(e=>e.preventDefault()),!1),r.render((0,l.createElement)(Tx,null)),r}function Ox(){f()("wp.editSite.reinitializeEditor",{since:"6.2",version:"6.3"})}})(),(window.wp=window.wp||{}).editSite=s})(); \ No newline at end of file
+ */var n=s(1609);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=n.useState,o=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!i(e,s)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),n=r({inst:{value:s,getSnapshot:t}}),i=n[0].inst,u=n[1];return a((function(){i.value=s,i.getSnapshot=t,c(i)&&u({inst:i})}),[e,s,t]),o((function(){return c(i)&&u({inst:i}),e((function(){c(i)&&u({inst:i})}))}),[e]),l(s),s};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},422:(e,t,s)=>{"use strict";e.exports=s(8477)},1609:e=>{"use strict";e.exports=window.React}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return s[e](r,r.exports,i),r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(s,n){if(1&n&&(s=this(s)),8&n)return s;if("object"==typeof s&&s){if(4&n&&s.__esModule)return s;if(16&n&&"function"==typeof s.then)return s}var r=Object.create(null);i.r(r);var o={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&s;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>o[e]=()=>s[e]));return o.default=()=>s,i.d(r,o),r},i.d=(e,t)=>{for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";i.r(r),i.d(r,{PluginMoreMenuItem:()=>uk,PluginSidebar:()=>dk,PluginSidebarMoreMenuItem:()=>hk,PluginTemplateSettingPanel:()=>Bn,initializeEditor:()=>pk,reinitializeEditor:()=>fk,store:()=>Kt});var e={};i.r(e),i.d(e,{__experimentalSetPreviewDeviceType:()=>$e,addTemplate:()=>tt,closeGeneralSidebar:()=>yt,openGeneralSidebar:()=>vt,openNavigationPanelToMenu:()=>ut,removeTemplate:()=>st,revertTemplate:()=>gt,setEditedEntity:()=>rt,setEditedPostContext:()=>at,setHasPageContentFocus:()=>bt,setHomeTemplateId:()=>ot,setIsInserterOpened:()=>ht,setIsListViewOpened:()=>pt,setIsNavigationPanelOpened:()=>dt,setIsSaveViewOpened:()=>mt,setNavigationMenu:()=>it,setNavigationPanelActiveMenu:()=>ct,setPage:()=>lt,setTemplate:()=>et,setTemplatePart:()=>nt,switchEditorMode:()=>xt,toggleDistractionFree:()=>wt,toggleFeature:()=>Qe,updateSettings:()=>ft});var t={};i.r(t),i.d(t,{setCanvasMode:()=>_t,setEditorCanvasContainerView:()=>St});var s={};i.r(s),i.d(s,{__experimentalGetInsertionPoint:()=>Ft,__experimentalGetPreviewDeviceType:()=>Ct,getCanUserCreateMedia:()=>kt,getCurrentTemplateNavigationPanelSubMenu:()=>Lt,getCurrentTemplateTemplateParts:()=>Bt,getEditedPostContext:()=>At,getEditedPostId:()=>Ot,getEditedPostType:()=>Tt,getEditorMode:()=>Dt,getHomeTemplateId:()=>It,getNavigationPanelActiveMenu:()=>zt,getPage:()=>Mt,getReusableBlocks:()=>Et,getSettings:()=>Pt,hasPageContentFocus:()=>Ut,isFeatureActive:()=>jt,isInserterOpened:()=>Nt,isListViewOpened:()=>Vt,isNavigationOpened:()=>Gt,isPage:()=>Ht,isSaveViewOpened:()=>Rt});var n={};i.r(n),i.d(n,{getCanvasMode:()=>Wt,getEditorCanvasContainerView:()=>qt});const o=window.wp.blocks,a=window.wp.blockLibrary,l=window.wp.data,c=window.wp.deprecated;var u=i.n(c);const d=window.wp.element,h=window.wp.editor,f=window.wp.preferences,m=window.wp.widgets,g=window.wp.hooks,v=window.wp.compose,y=window.wp.blockEditor,x=window.wp.components,b=window.wp.i18n,w=window.wp.notices,_=window.wp.coreData;var S={grad:.9,turn:360,rad:360/(2*Math.PI)},j=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},C=function(e,t,s){return void 0===t&&(t=0),void 0===s&&(s=Math.pow(10,t)),Math.round(s*e)/s+0},k=function(e,t,s){return void 0===t&&(t=0),void 0===s&&(s=1),e>s?s:e>t?e:t},E=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},P=function(e){return{r:k(e.r,0,255),g:k(e.g,0,255),b:k(e.b,0,255),a:k(e.a)}},I=function(e){return{r:C(e.r),g:C(e.g),b:C(e.b),a:C(e.a,3)}},T=/^#([0-9a-f]{3,8})$/i,O=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},A=function(e){var t=e.r,s=e.g,n=e.b,i=e.a,r=Math.max(t,s,n),o=r-Math.min(t,s,n),a=o?r===t?(s-n)/o:r===s?2+(n-t)/o:4+(t-s)/o:0;return{h:60*(a<0?a+6:a),s:r?o/r*100:0,v:r/255*100,a:i}},M=function(e){var t=e.h,s=e.s,n=e.v,i=e.a;t=t/360*6,s/=100,n/=100;var r=Math.floor(t),o=n*(1-s),a=n*(1-(t-r)*s),l=n*(1-(1-t+r)*s),c=r%6;return{r:255*[n,a,o,o,l,n][c],g:255*[l,n,n,a,o,o][c],b:255*[o,o,l,n,n,a][c],a:i}},N=function(e){return{h:E(e.h),s:k(e.s,0,100),l:k(e.l,0,100),a:k(e.a)}},F=function(e){return{h:C(e.h),s:C(e.s),l:C(e.l),a:C(e.a,3)}},V=function(e){return M((s=(t=e).s,{h:t.h,s:(s*=((n=t.l)<50?n:100-n)/100)>0?2*s/(n+s)*100:0,v:n+s,a:t.a}));var t,s,n},R=function(e){return{h:(t=A(e)).h,s:(i=(200-(s=t.s))*(n=t.v)/100)>0&&i<200?s*n/100/(i<=100?i:200-i)*100:0,l:i/2,a:t.a};var t,s,n,i},B=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,D=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,L=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,z=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,G={string:[[function(e){var t=T.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?C(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?C(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=L.exec(e)||z.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:P({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=B.exec(e)||D.exec(e);if(!t)return null;var s,n,i=N({h:(s=t[1],n=t[2],void 0===n&&(n="deg"),Number(s)*(S[n]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return V(i)},"hsl"]],object:[[function(e){var t=e.r,s=e.g,n=e.b,i=e.a,r=void 0===i?1:i;return j(t)&&j(s)&&j(n)?P({r:Number(t),g:Number(s),b:Number(n),a:Number(r)}):null},"rgb"],[function(e){var t=e.h,s=e.s,n=e.l,i=e.a,r=void 0===i?1:i;if(!j(t)||!j(s)||!j(n))return null;var o=N({h:Number(t),s:Number(s),l:Number(n),a:Number(r)});return V(o)},"hsl"],[function(e){var t=e.h,s=e.s,n=e.v,i=e.a,r=void 0===i?1:i;if(!j(t)||!j(s)||!j(n))return null;var o=function(e){return{h:E(e.h),s:k(e.s,0,100),v:k(e.v,0,100),a:k(e.a)}}({h:Number(t),s:Number(s),v:Number(n),a:Number(r)});return M(o)},"hsv"]]},H=function(e,t){for(var s=0;s<t.length;s++){var n=t[s][0](e);if(n)return[n,t[s][1]]}return[null,void 0]},U=function(e){return"string"==typeof e?H(e.trim(),G.string):"object"==typeof e&&null!==e?H(e,G.object):[null,void 0]},W=function(e,t){var s=R(e);return{h:s.h,s:k(s.s+100*t,0,100),l:s.l,a:s.a}},q=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Z=function(e,t){var s=R(e);return{h:s.h,s:s.s,l:k(s.l+100*t,0,100),a:s.a}},K=function(){function e(e){this.parsed=U(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return C(q(this.rgba),2)},e.prototype.isDark=function(){return q(this.rgba)<.5},e.prototype.isLight=function(){return q(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=I(this.rgba)).r,s=e.g,n=e.b,r=(i=e.a)<1?O(C(255*i)):"","#"+O(t)+O(s)+O(n)+r;var e,t,s,n,i,r},e.prototype.toRgb=function(){return I(this.rgba)},e.prototype.toRgbString=function(){return t=(e=I(this.rgba)).r,s=e.g,n=e.b,(i=e.a)<1?"rgba("+t+", "+s+", "+n+", "+i+")":"rgb("+t+", "+s+", "+n+")";var e,t,s,n,i},e.prototype.toHsl=function(){return F(R(this.rgba))},e.prototype.toHslString=function(){return t=(e=F(R(this.rgba))).h,s=e.s,n=e.l,(i=e.a)<1?"hsla("+t+", "+s+"%, "+n+"%, "+i+")":"hsl("+t+", "+s+"%, "+n+"%)";var e,t,s,n,i},e.prototype.toHsv=function(){return e=A(this.rgba),{h:C(e.h),s:C(e.s),v:C(e.v),a:C(e.a,3)};var e},e.prototype.invert=function(){return Y({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Y(W(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Y(W(this.rgba,-e))},e.prototype.grayscale=function(){return Y(W(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Y(Z(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Y(Z(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Y({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):C(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=R(this.rgba);return"number"==typeof e?Y({h:e,s:t.s,l:t.l,a:t.a}):C(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Y(e).toHex()},e}(),Y=function(e){return e instanceof K?e:new K(e)},X=[],J=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Q=function(e){return.2126*J(e.r)+.7152*J(e.g)+.0722*J(e.b)};function $(e){return e?JSON.parse(JSON.stringify(e)):{}}const ee=window.wp.privateApis,{lock:te,unlock:se}=(0,ee.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/edit-site"),{GlobalStylesContext:ne}=se(y.privateApis),{mergeBaseAndUserConfigs:ie}=se(h.privateApis);function re(e,t){if(!t||"string"!=typeof t)return e;if("object"!=typeof e||!e||!Object.keys(e).length)return e;for(const s in e)s===t?delete e[s]:"object"==typeof e[s]&&re(e[s],t);return e}function oe({property:e}){const{variationsFromTheme:t}=(0,l.useSelect)((e=>({variationsFromTheme:e(_.store).__experimentalGetCurrentThemeGlobalStylesVariations()||[]})),[]),{user:s}=(0,d.useContext)(ne);return(0,d.useMemo)((()=>{const n=re($(s),e);n.title=(0,b.__)("Default");const i=t.filter((t=>le(t,e))).map((e=>ie(n,e)));return[n,...i]}),[e,s,t])}const ae=(e,t)=>{if(!e)return{};const s={};return Object.keys(e).forEach((n=>{if(n===t)s[n]=e[n];else if("object"==typeof e[n]){const i=ae(e[n],t);Object.keys(i).length&&(s[n]=i)}})),s};function le(e,t){const s=ae($(e),t);return JSON.stringify(s?.styles)===JSON.stringify(e?.styles)&&JSON.stringify(s?.settings)===JSON.stringify(e?.settings)}const{useGlobalSetting:ce,useGlobalStyle:ue}=se(y.privateApis);function de(){const[e="black"]=ue("color.text"),[t="white"]=ue("color.background"),[s=e]=ue("elements.h1.color.text"),[n=s]=ue("elements.link.color.text"),[i=n]=ue("elements.button.color.background"),[r]=ce("color.palette.core"),[o]=ce("color.palette.theme"),[a]=ce("color.palette.custom"),l=(null!=o?o:[]).concat(null!=a?a:[]).concat(null!=r?r:[]),c=l.filter((({color:t})=>t===e)),u=l.filter((({color:e})=>e===i)),d=c.concat(u).concat(l).filter((({color:e})=>e!==t)).slice(0,2);return{paletteColors:l,highlightedColors:d}}function he(){const e=oe({property:"color"});return e?.length?e.filter((e=>{const{settings:t,styles:s,title:n}=e;return n===(0,b.__)("Default")||Object.keys(t).length>0||Object.keys(s).length>0})):[]}function pe(){const e=oe({property:"typography"});return e?.length?e.filter((e=>{const{settings:t,styles:s,title:n}=e;return n===(0,b.__)("Default")||Object.keys(t).length>0||Object.keys(s).length>0})):[]}function fe(e,t,s){return e&&"object"==typeof e?(t.reduce(((e,n,i)=>(void 0===e[n]&&(Number.isInteger(t[i+1])?e[n]=[]:e[n]={}),i===t.length-1&&(e[n]=s),e[n])),e),e):e}!function(e){e.forEach((function(e){X.indexOf(e)<0&&(e(K,G),X.push(e))}))}([function(e){e.prototype.luminance=function(){return e=Q(this.rgba),void 0===(t=2)&&(t=0),void 0===s&&(s=Math.pow(10,t)),Math.round(s*e)/s+0;var e,t,s},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var s,n,i,r,o,a,l,c=t instanceof e?t:new e(t);return r=this.rgba,o=c.toRgb(),s=(a=Q(r))>(l=Q(o))?(a+.05)/(l+.05):(l+.05)/(a+.05),void 0===(n=2)&&(n=0),void 0===i&&(i=Math.pow(10,n)),Math.floor(i*s)/i+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(o=void 0===(r=(s=t).size)?"normal":r,"AAA"===(i=void 0===(n=s.level)?"AA":n)&&"normal"===o?7:"AA"===i&&"large"===o?3:4.5);var s,n,i,r,o}}]);const me=window.ReactJSXRuntime,{cleanEmptyObject:ge,GlobalStylesContext:ve}=se(y.privateApis),ye={...o.__EXPERIMENTAL_STYLE_PROPERTY,blockGap:{value:["spacing","blockGap"]}},xe={"border.color":"color","color.background":"color","color.text":"color","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.caption.color.text":"color","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient",blockGap:"spacing","typography.fontSize":"font-size","typography.fontFamily":"font-family"},be={"border.color":"borderColor","color.background":"backgroundColor","color.text":"textColor","color.gradient":"gradient","typography.fontSize":"fontSize","typography.fontFamily":"fontFamily"},we=["border","color","spacing","typography"],_e=(e,t)=>{let s=e;return t.forEach((e=>{s=s?.[e]})),s},Se=["borderColor","borderWidth","borderStyle"],je=["top","right","bottom","left"];function Ce(e,t,s){if(!t?.[e]||s?.[e]?.style)return[];const{color:n,style:i,width:r}=t[e];return!(n||r)||i?[]:[{path:["border",e,"style"],value:"solid"}]}function ke(e,t,s){const n=function(e,t){const{supportedPanels:s}=(0,l.useSelect)((s=>({supportedPanels:se(s(o.store)).getSupportedStyles(e,t)})),[e,t]);return s}(e),i=s?.styles?.blocks?.[e];return(0,d.useMemo)((()=>{const e=n.flatMap((e=>{if(!ye[e])return[];const{value:s}=ye[e],n=s.join("."),i=t[be[n]],r=i?`var:preset|${xe[n]}|${i}`:_e(t.style,s);if("linkColor"===e){const e=r?[{path:s,value:r}]:[],n=["elements","link",":hover","color","text"],i=_e(t.style,n);return i&&e.push({path:n,value:i}),e}if(Se.includes(e)&&r){const e=[{path:s,value:r}];return je.forEach((t=>{const n=[...s];n.splice(-1,0,t),e.push({path:n,value:r})})),e}return r?[{path:s,value:r}]:[]}));return function(e,t,s){if(!e&&!t)return[];const n=[...Ce("top",e,s),...Ce("right",e,s),...Ce("bottom",e,s),...Ce("left",e,s)],{color:i,style:r,width:o}=e||{};return(t||i||o)&&!r&&je.forEach((e=>{s?.[e]?.style||n.push({path:["border",e,"style"],value:"solid"})})),n}(t.style?.border,t.borderColor,i?.border).forEach((t=>e.push(t))),e}),[n,t,i])}function Ee({name:e,attributes:t,setAttributes:s}){const{user:n,setUserConfig:i}=(0,d.useContext)(ve),r=ke(e,t,n),{__unstableMarkNextChangeAsNotPersistent:a}=(0,l.useDispatch)(y.store),{createSuccessNotice:c}=(0,l.useDispatch)(w.store),u=(0,d.useCallback)((()=>{if(0!==r.length&&r.length>0){const{style:l}=t,u=$(l),d=$(n);for(const{path:t,value:s}of r)fe(u,t,void 0),fe(d,["styles","blocks",e,...t],s);const h={borderColor:void 0,backgroundColor:void 0,textColor:void 0,gradient:void 0,fontSize:void 0,fontFamily:void 0,style:ge(u)};a(),s(h),i(d,{undoIgnore:!0}),c((0,b.sprintf)((0,b.__)("%s styles applied."),(0,o.getBlockType)(e).title),{type:"snackbar",actions:[{label:(0,b.__)("Undo"),onClick(){a(),s(t),i(n,{undoIgnore:!0})}}]})}}),[a,t,r,c,e,s,i,n]);return(0,me.jsxs)(x.BaseControl,{className:"edit-site-push-changes-to-global-styles-control",help:(0,b.sprintf)((0,b.__)("Apply this block’s typography, spacing, dimensions, and color styles to all %s blocks."),(0,o.getBlockType)(e).title),children:[(0,me.jsx)(x.BaseControl.VisualLabel,{children:(0,b.__)("Styles")}),(0,me.jsx)(x.Button,{__next40pxDefaultSize:!0,variant:"secondary",__experimentalIsFocusable:!0,disabled:0===r.length,onClick:u,children:(0,b.__)("Apply globally")})]})}function Pe(e){const t=(0,y.useBlockEditingMode)(),s=(0,l.useSelect)((e=>e(_.store).getCurrentTheme()?.is_block_theme),[]),n=we.some((t=>(0,o.hasBlockSupport)(e.name,t)));return"default"===t&&n&&s?(0,me.jsx)(y.InspectorAdvancedControls,{children:(0,me.jsx)(Ee,{...e})}):null}const Ie=(0,v.createHigherOrderComponent)((e=>t=>(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(e,{...t}),t.isSelected&&(0,me.jsx)(Pe,{...t})]})));(0,g.addFilter)("editor.BlockEdit","core/edit-site/push-changes-to-global-styles",Ie);const Te=(0,l.combineReducers)({settings:function(e={},t){return"UPDATE_SETTINGS"===t.type?{...e,...t.settings}:e},editedPost:function(e={},t){switch(t.type){case"SET_EDITED_POST":return{postType:t.postType,id:t.id,context:t.context};case"SET_EDITED_POST_CONTEXT":return{...e,context:t.context}}return e},saveViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_SAVE_VIEW_OPENED":return t.isOpen;case"SET_CANVAS_MODE":return!1}return e},canvasMode:function(e="init",t){return"SET_CANVAS_MODE"===t.type?t.mode:e},editorCanvasContainerView:function(e=void 0,t){return"SET_EDITOR_CANVAS_CONTAINER_VIEW"===t.type?t.view:e}}),Oe=window.wp.patterns,Ae="wp_navigation",Me="wp_template",Ne="wp_template_part",Fe={custom:"custom",theme:"theme",plugin:"plugin"},Ve="uncategorized",Re="all-parts",{PATTERN_TYPES:Be,PATTERN_DEFAULT_CATEGORY:De,PATTERN_USER_CATEGORY:Le,EXCLUDED_PATTERN_SOURCES:ze,PATTERN_SYNC_TYPES:Ge}=se(Oe.privateApis),He=[Ne,Ae,Be.user],Ue={[Me]:(0,b.__)("Template"),[Ne]:(0,b.__)("Template part"),[Be.user]:(0,b.__)("Pattern"),[Ae]:(0,b.__)("Navigation")},We="grid",qe="table",Ze="list",Ke="is",Ye="isAny",Xe="isNone",{interfaceStore:Je}=se(h.privateApis);function Qe(e){return function({registry:t}){u()("dispatch( 'core/edit-site' ).toggleFeature( featureName )",{since:"6.0",alternative:"dispatch( 'core/preferences').toggle( 'core/edit-site', featureName )"}),t.dispatch(f.store).toggle("core/edit-site",e)}}const $e=e=>({registry:t})=>{u()("dispatch( 'core/edit-site' ).__experimentalSetPreviewDeviceType",{since:"6.5",version:"6.7",hint:"registry.dispatch( editorStore ).setDeviceType"}),t.dispatch(h.store).setDeviceType(e)};function et(){return u()("dispatch( 'core/edit-site' ).setTemplate",{since:"6.5",version:"6.8",hint:"The setTemplate is not needed anymore, the correct entity is resolved from the URL automatically."}),{type:"NOTHING"}}const tt=e=>async({dispatch:t,registry:s})=>{u()("dispatch( 'core/edit-site' ).addTemplate",{since:"6.5",version:"6.8",hint:"use saveEntityRecord directly"});const n=await s.dispatch(_.store).saveEntityRecord("postType",Me,e);e.content&&s.dispatch(_.store).editEntityRecord("postType",Me,n.id,{blocks:(0,o.parse)(e.content)},{undoIgnore:!0}),t({type:"SET_EDITED_POST",postType:Me,id:n.id})},st=e=>({registry:t})=>se(t.dispatch(h.store)).removeTemplates([e]);function nt(e){return{type:"SET_EDITED_POST",postType:Ne,id:e}}function it(e){return{type:"SET_EDITED_POST",postType:Ae,id:e}}function rt(e,t,s){return{type:"SET_EDITED_POST",postType:e,id:t,context:s}}function ot(){return u()("dispatch( 'core/edit-site' ).setHomeTemplateId",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function at(e){return{type:"SET_EDITED_POST_CONTEXT",context:e}}function lt(){return u()("dispatch( 'core/edit-site' ).setPage",{since:"6.5",version:"6.8",hint:"The setPage is not needed anymore, the correct entity is resolved from the URL automatically."}),{type:"NOTHING"}}function ct(){return u()("dispatch( 'core/edit-site' ).setNavigationPanelActiveMenu",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function ut(){return u()("dispatch( 'core/edit-site' ).openNavigationPanelToMenu",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function dt(){return u()("dispatch( 'core/edit-site' ).setIsNavigationPanelOpened",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}const ht=e=>({registry:t})=>{u()("dispatch( 'core/edit-site' ).setIsInserterOpened",{since:"6.5",alternative:"dispatch( 'core/editor').setIsInserterOpened"}),t.dispatch(h.store).setIsInserterOpened(e)},pt=e=>({registry:t})=>{u()("dispatch( 'core/edit-site' ).setIsListViewOpened",{since:"6.5",alternative:"dispatch( 'core/editor').setIsListViewOpened"}),t.dispatch(h.store).setIsListViewOpened(e)};function ft(e){return{type:"UPDATE_SETTINGS",settings:e}}function mt(e){return{type:"SET_IS_SAVE_VIEW_OPENED",isOpen:e}}const gt=(e,t)=>({registry:s})=>se(s.dispatch(h.store)).revertTemplate(e,t),vt=e=>({registry:t})=>{t.dispatch(Je).enableComplementaryArea("core",e)},yt=()=>({registry:e})=>{e.dispatch(Je).disableComplementaryArea("core")},xt=e=>({registry:t})=>{u()("dispatch( 'core/edit-site' ).switchEditorMode",{since:"6.6",alternative:"dispatch( 'core/editor').switchEditorMode"}),t.dispatch(h.store).switchEditorMode(e)},bt=e=>({dispatch:t,registry:s})=>{u()("dispatch( 'core/edit-site' ).setHasPageContentFocus",{since:"6.5"}),e&&s.dispatch(y.store).clearSelectedBlock(),t({type:"SET_HAS_PAGE_CONTENT_FOCUS",hasPageContentFocus:e})},wt=()=>({registry:e})=>{u()("dispatch( 'core/edit-site' ).toggleDistractionFree",{since:"6.6",alternative:"dispatch( 'core/editor').toggleDistractionFree"}),e.dispatch(h.store).toggleDistractionFree()},_t=e=>({registry:t,dispatch:s})=>{const n=window.matchMedia("(min-width: 782px)").matches,i=()=>{t.batch((()=>{t.dispatch(y.store).clearSelectedBlock(),t.dispatch(h.store).setDeviceType("Desktop"),t.dispatch(y.store).__unstableSetEditorMode("edit");const i=t.select(h.store).isPublishSidebarOpened();s({type:"SET_CANVAS_MODE",mode:e});const r="edit"===e;i&&!r&&t.dispatch(h.store).closePublishSidebar(),n&&r&&t.select(f.store).get("core","showListViewByDefault")&&!t.select(f.store).get("core","distractionFree")?t.dispatch(h.store).setIsListViewOpened(!0):t.dispatch(h.store).setIsListViewOpened(!1),t.dispatch(h.store).setIsInserterOpened(!1)}))};if(n&&document.startViewTransition){document.documentElement.classList.add(`canvas-mode-${e}-transition`);document.startViewTransition((()=>i())).finished.finally((()=>{document.documentElement.classList.remove(`canvas-mode-${e}-transition`)}))}else i()},St=e=>({dispatch:t})=>{t({type:"SET_EDITOR_CANVAS_CONTAINER_VIEW",view:e})},jt=(0,l.createRegistrySelector)((e=>(t,s)=>(u()("select( 'core/edit-site' ).isFeatureActive",{since:"6.0",alternative:"select( 'core/preferences' ).get"}),!!e(f.store).get("core/edit-site",s)))),Ct=(0,l.createRegistrySelector)((e=>()=>(u()("select( 'core/edit-site' ).__experimentalGetPreviewDeviceType",{since:"6.5",version:"6.7",alternative:"select( 'core/editor' ).getDeviceType"}),e(h.store).getDeviceType()))),kt=(0,l.createRegistrySelector)((e=>()=>e(_.store).canUser("create","media"))),Et=(0,l.createRegistrySelector)((e=>()=>{u()("select( 'core/core' ).getEntityRecords( 'postType', 'wp_block' )",{since:"6.5",version:"6.8"});return"web"===d.Platform.OS?e(_.store).getEntityRecords("postType","wp_block",{per_page:-1}):[]}));function Pt(e){return e.settings}function It(){u()("select( 'core/edit-site' ).getHomeTemplateId",{since:"6.2",version:"6.4"})}function Tt(e){return e.editedPost.postType}function Ot(e){return e.editedPost.id}function At(e){return e.editedPost.context}function Mt(e){return{context:e.editedPost.context}}const Nt=(0,l.createRegistrySelector)((e=>()=>(u()("select( 'core/edit-site' ).isInserterOpened",{since:"6.5",alternative:"select( 'core/editor' ).isInserterOpened"}),e(h.store).isInserterOpened()))),Ft=(0,l.createRegistrySelector)((e=>()=>(u()("select( 'core/edit-site' ).__experimentalGetInsertionPoint",{since:"6.5",version:"6.7"}),se(e(h.store)).getInsertionPoint()))),Vt=(0,l.createRegistrySelector)((e=>()=>(u()("select( 'core/edit-site' ).isListViewOpened",{since:"6.5",alternative:"select( 'core/editor' ).isListViewOpened"}),e(h.store).isListViewOpened())));function Rt(e){return e.saveViewPanel}const Bt=(0,l.createRegistrySelector)((e=>()=>se(e(h.store)).getCurrentTemplateTemplateParts())),Dt=(0,l.createRegistrySelector)((e=>()=>e(f.store).get("core","editorMode")));function Lt(){u()("dispatch( 'core/edit-site' ).getCurrentTemplateNavigationPanelSubMenu",{since:"6.2",version:"6.4"})}function zt(){u()("dispatch( 'core/edit-site' ).getNavigationPanelActiveMenu",{since:"6.2",version:"6.4"})}function Gt(){u()("dispatch( 'core/edit-site' ).isNavigationOpened",{since:"6.2",version:"6.4"})}function Ht(e){return!!e.editedPost.context?.postId}function Ut(){return u()("select( 'core/edit-site' ).hasPageContentFocus",{since:"6.5"}),!1}function Wt(e){return e.canvasMode}function qt(e){return e.editorCanvasContainerView}const Zt={reducer:Te,actions:e,selectors:s},Kt=(0,l.createReduxStore)("core/edit-site",Zt);(0,l.register)(Kt),se(Kt).registerPrivateSelectors(n),se(Kt).registerPrivateActions(t);const Yt=window.wp.plugins,Xt=window.wp.router;function Jt(e){var t,s,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(s=Jt(e[t]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}const Qt=function(){for(var e,t,s=0,n="",i=arguments.length;s<i;s++)(e=arguments[s])&&(t=Jt(e))&&(n&&(n+=" "),n+=t);return n},$t=window.wp.keyboardShortcuts,es=window.wp.commands,ts=window.wp.coreCommands;function ss({text:e,children:t}){const s=(0,v.useCopyToClipboard)(e);return(0,me.jsx)(x.Button,{variant:"secondary",ref:s,children:t})}function ns({message:e,error:t}){const s=[(0,me.jsx)(ss,{text:t.stack,children:(0,b.__)("Copy Error")},"copy-error")];return(0,me.jsx)(y.Warning,{className:"editor-error-boundary",actions:s,children:e})}class is extends d.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){(0,g.doAction)("editor.ErrorBoundary.errorLogged",e)}static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error?(0,me.jsx)(ns,{message:(0,b.__)("The editor has encountered an unexpected error."),error:this.state.error}):this.props.children}}const{useLocation:rs}=se(Xt.privateApis),os=[Me,Ne,Ae,Be.user],as=["page"];function ls(){const{params:e={}}=rs(),{postType:t,postId:s,context:n,isReady:i}=function({postId:e,postType:t}){const{hasLoadedAllDependencies:s,homepageId:n,postsPageId:i,url:r,frontPageTemplateId:o}=(0,l.useSelect)((e=>{const{getSite:t,getUnstableBase:s,getEntityRecords:n}=e(_.store),i=t(),r=s(),o=n("postType",Me,{per_page:-1}),a="page"===i?.show_on_front&&["number","string"].includes(typeof i.page_on_front)&&+i.page_on_front?i.page_on_front.toString():null,l="page"===i?.show_on_front&&["number","string"].includes(typeof i.page_for_posts)?i.page_for_posts.toString():null;let c;if(o){const e=o.find((e=>"front-page"===e.slug));c=!!e&&e.id}return{hasLoadedAllDependencies:!!r&&!!i,homepageId:a,postsPageId:l,url:r?.home,frontPageTemplateId:c}}),[]),a=(0,l.useSelect)((a=>{if(os.includes(t)&&e)return;const{getEditedEntityRecord:l,getEntityRecords:c,getDefaultTemplateId:u,__experimentalGetTemplateForLink:d}=a(_.store);function h(e,t){if("page"===e&&n===t){if(void 0===o)return;if(o)return o}const s=l("postType",e,t);if(!s)return;if("page"===e&&i===t)return d(s.link)?.id;const r=s.template;if(r){const e=c("postType",Me,{per_page:-1})?.find((({slug:e})=>e===r));if(e)return e.id}let a;return a=s.slug?"page"===e?`${e}-${s.slug}`:`single-${e}-${s.slug}`:"page"===e?"page":`single-${e}`,u({slug:a})}if(s){if(t&&e&&as.includes(t))return h(t,e);if(n)return h("page",n);if(r){const e=d(r);return e?.id}}}),[n,i,s,r,e,t,o]),c=(0,d.useMemo)((()=>os.includes(t)&&e?{}:t&&e&&as.includes(t)?{postType:t,postId:e}:n?{postType:"page",postId:n}:{}),[n,t,e]);return os.includes(t)&&e?{isReady:!0,postType:t,postId:e,context:c}:s?{isReady:void 0!==a,postType:Me,postId:a,context:c}:{isReady:!1}}(e),{setEditedEntity:r}=(0,l.useDispatch)(Kt);(0,d.useEffect)((()=>{i&&r(t,s,n)}),[i,t,s,n,r])}const cs=window.wp.htmlEntities,us=window.wp.primitives,ds=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})}),hs=window.wp.keycodes,ps=window.wp.url,fs=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,me.jsx)(us.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})});const ms=function({className:e}){const{isRequestingSite:t,siteIconUrl:s}=(0,l.useSelect)((e=>{const{getEntityRecord:t}=e(_.store),s=t("root","__unstableBase",void 0);return{isRequestingSite:!s,siteIconUrl:s?.site_icon_url}}),[]);if(t&&!s)return(0,me.jsx)("div",{className:"edit-site-site-icon__image"});const n=s?(0,me.jsx)("img",{className:"edit-site-site-icon__image",alt:(0,b.__)("Site Icon"),src:s}):(0,me.jsx)(x.Icon,{className:"edit-site-site-icon__icon",icon:fs,size:48});return(0,me.jsx)("div",{className:Qt(e,"edit-site-site-icon"),children:n})},gs=window.wp.dom,vs=(0,d.createContext)((()=>{}));function ys(){let e={direction:null,focusSelector:null};return{get:()=>e,navigate(t,s=null){e={direction:t,focusSelector:"forward"===t&&s?s:e.focusSelector}}}}function xs({children:e}){const t=(0,d.useContext)(vs),s=(0,d.useRef)(),[n,i]=(0,d.useState)(null);(0,d.useLayoutEffect)((()=>{const{direction:e,focusSelector:n}=t.get();!function(e,t,s){let n;if("back"===t&&s&&(n=e.querySelector(s)),null!==t&&!n){const[t]=gs.focus.tabbable.find(e);n=null!=t?t:e}n?.focus()}(s.current,e,n),i(e)}),[t]);const r=Qt("edit-site-sidebar__screen-wrapper",{"slide-from-left":"back"===n,"slide-from-right":"forward"===n});return(0,me.jsx)("div",{ref:s,className:r,children:e})}function bs({routeKey:e,children:t}){const[s]=(0,d.useState)(ys);return(0,me.jsx)(vs.Provider,{value:s,children:(0,me.jsx)("div",{className:"edit-site-sidebar__content",children:(0,me.jsx)(xs,{children:t},e)})})}const{useHistory:ws}=se(Xt.privateApis),_s=(0,d.memo)((0,d.forwardRef)((({isTransparent:e},t)=>{const{dashboardLink:s,homeUrl:n,siteTitle:i}=(0,l.useSelect)((e=>{const{getSettings:t}=se(e(Kt)),{getSite:s,getUnstableBase:n}=e(_.store),i=s();return{dashboardLink:t().__experimentalDashboardLink||"index.php",homeUrl:n()?.home,siteTitle:!i?.title&&i?.url?(0,ps.filterURLForDisplay)(i?.url):i?.title}}),[]),{open:r}=(0,l.useDispatch)(es.store);return(0,me.jsx)("div",{className:"edit-site-site-hub",children:(0,me.jsxs)(x.__experimentalHStack,{justify:"flex-start",spacing:"0",children:[(0,me.jsx)("div",{className:Qt("edit-site-site-hub__view-mode-toggle-container",{"has-transparent-background":e}),children:(0,me.jsx)(x.Button,{ref:t,href:s,label:(0,b.__)("Go to the Dashboard"),className:"edit-site-layout__view-mode-toggle",style:{transform:"scale(0.5)",borderRadius:4},children:(0,me.jsx)(ms,{className:"edit-site-layout__view-mode-toggle-icon"})})}),(0,me.jsxs)(x.__experimentalHStack,{children:[(0,me.jsx)("div",{className:"edit-site-site-hub__title",children:(0,me.jsx)(x.Button,{variant:"link",href:n,target:"_blank",label:(0,b.__)("View site (opens in a new tab)"),children:(0,cs.decodeEntities)(i)})}),(0,me.jsx)(x.__experimentalHStack,{spacing:0,expanded:!1,className:"edit-site-site-hub__actions",children:(0,me.jsx)(x.Button,{className:"edit-site-site-hub_toggle-command-center",icon:ds,onClick:()=>r(),label:(0,b.__)("Open command palette"),shortcut:hs.displayShortcut.primary("k")})})]})]})})}))),Ss=_s,js=(0,d.memo)((0,d.forwardRef)((({isTransparent:e},t)=>{const s=ws(),{navigate:n}=(0,d.useContext)(vs),{homeUrl:i,siteTitle:r}=(0,l.useSelect)((e=>{const{getSite:t,getUnstableBase:s}=e(_.store),n=t();return{homeUrl:s()?.home,siteTitle:!n?.title&&n?.url?(0,ps.filterURLForDisplay)(n?.url):n?.title}}),[]),{open:o}=(0,l.useDispatch)(es.store);return(0,me.jsx)("div",{className:"edit-site-site-hub",children:(0,me.jsxs)(x.__experimentalHStack,{justify:"flex-start",spacing:"0",children:[(0,me.jsx)("div",{className:Qt("edit-site-site-hub__view-mode-toggle-container",{"has-transparent-background":e}),children:(0,me.jsx)(x.Button,{ref:t,label:(0,b.__)("Go to Site Editor"),className:"edit-site-layout__view-mode-toggle",style:{transform:"scale(0.5)",borderRadius:4},onClick:()=>{s.push({}),n("back")},children:(0,me.jsx)(ms,{className:"edit-site-layout__view-mode-toggle-icon"})})}),(0,me.jsxs)(x.__experimentalHStack,{children:[(0,me.jsx)("div",{className:"edit-site-site-hub__title",children:(0,me.jsx)(x.Button,{variant:"link",href:i,target:"_blank",label:(0,b.__)("View site (opens in a new tab)"),children:(0,cs.decodeEntities)(r)})}),(0,me.jsx)(x.__experimentalHStack,{spacing:0,expanded:!1,className:"edit-site-site-hub__actions",children:(0,me.jsx)(x.Button,{className:"edit-site-site-hub_toggle-command-center",icon:ds,onClick:()=>o(),label:(0,b.__)("Open command palette"),shortcut:hs.displayShortcut.primary("k")})})]})]})})}))),Cs={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},ks=320,Es=1300,Ps=9/19.5,Is={width:"100%",height:"100%"};function Ts(e,t){const s=1-Math.max(0,Math.min(1,(e-ks)/(Es-ks))),n=((e,t,s)=>e+(t-e)*s)(t,Ps,s);return e/n}const Os=function e({isFullWidth:t,isOversized:s,setIsOversized:n,isReady:i,children:r,defaultSize:o,innerContentStyle:a}){const c=(0,v.useReducedMotion)(),[u,h]=(0,d.useState)(Is),[p,f]=(0,d.useState)(),[m,g]=(0,d.useState)(!1),[y,w]=(0,d.useState)(!1),[_,S]=(0,d.useState)(1),j=(0,l.useSelect)((e=>se(e(Kt)).getCanvasMode()),[]),{setCanvasMode:C}=se((0,l.useDispatch)(Kt)),k={type:"tween",duration:m?0:.5},E=(0,d.useRef)(null),P=(0,v.useInstanceId)(e,"edit-site-resizable-frame-handle-help"),I=o.width/o.height,T={default:{flexGrow:0,height:u.height},fullWidth:{flexGrow:1,height:u.height}},O=m?"active":y?"visible":"hidden";return(0,me.jsx)(x.ResizableBox,{as:x.__unstableMotion.div,ref:E,initial:!1,variants:T,animate:t?"fullWidth":"default",onAnimationComplete:e=>{"fullWidth"===e&&h({width:"100%",height:"100%"})},whileHover:"view"===j?{scale:1.005,transition:{duration:c?0:.5,ease:"easeOut"}}:{},transition:k,size:u,enable:{top:!1,right:!1,bottom:!1,left:i,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},resizeRatio:_,handleClasses:void 0,handleStyles:{left:Cs,right:Cs},minWidth:ks,maxWidth:t?"100%":"150%",maxHeight:"100%",onFocus:()=>w(!0),onBlur:()=>w(!1),onMouseOver:()=>w(!0),onMouseOut:()=>w(!1),handleComponent:{left:"view"===j&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(x.Tooltip,{text:(0,b.__)("Drag to resize"),children:(0,me.jsx)(x.__unstableMotion.button,{role:"separator","aria-orientation":"vertical",className:Qt("edit-site-resizable-frame__handle",{"is-resizing":m}),variants:{hidden:{opacity:0,left:0},visible:{opacity:1,left:-14},active:{opacity:1,left:-14,scaleY:1.3}},animate:O,"aria-label":(0,b.__)("Drag to resize"),"aria-describedby":P,"aria-valuenow":E.current?.resizable?.offsetWidth||void 0,"aria-valuemin":ks,"aria-valuemax":o.width,onKeyDown:e=>{if(!["ArrowLeft","ArrowRight"].includes(e.key))return;e.preventDefault();const t=20*(e.shiftKey?5:1)*("ArrowLeft"===e.key?1:-1),s=Math.min(Math.max(ks,E.current.resizable.offsetWidth+t),o.width);h({width:s,height:Ts(s,I)})},initial:"hidden",exit:"hidden",whileFocus:"active",whileHover:"active"},"handle")}),(0,me.jsx)("div",{hidden:!0,id:P,children:(0,b.__)("Use left and right arrow keys to resize the canvas. Hold shift to resize in larger increments.")})]})},onResizeStart:(e,t,s)=>{f(s.offsetWidth),g(!0)},onResize:(e,t,i,r)=>{const a=r.width/_,l=Math.abs(a),c=r.width<0?l:(o.width-p)/2,u=Math.min(l,c),d=0===l?0:u/l;S(1-d+2*d);const f=p+r.width;n(f>o.width),h({height:s?"100%":Ts(f,I)})},onResizeStop:(e,t,i)=>{if(g(!1),!s)return;n(!1);i.ownerDocument.documentElement.offsetWidth-i.offsetWidth>200?h(Is):C("edit")},className:Qt("edit-site-resizable-frame__inner",{"is-resizing":m}),showHandle:!1,children:(0,me.jsx)("div",{className:"edit-site-resizable-frame__inner-content",style:a,children:r})})},{useLocation:As,useHistory:Ms}=se(Xt.privateApis);const Ns=function(){const{registerShortcut:e}=(0,l.useDispatch)($t.store);return(0,d.useEffect)((()=>{e({name:"core/edit-site/save",category:"global",description:(0,b.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}})}),[e]),null};const Fs=function(){const{__experimentalGetDirtyEntityRecords:e,isSavingEntityRecord:t}=(0,l.useSelect)(_.store),{hasNonPostEntityChanges:s}=(0,l.useSelect)(h.store),{getCanvasMode:n}=se((0,l.useSelect)(Kt)),{setIsSaveViewOpened:i}=(0,l.useDispatch)(Kt);return(0,$t.useShortcut)("core/edit-site/save",(r=>{r.preventDefault();const o=e(),a=!!o.length,l=o.some((e=>t(e.kind,e.name,e.key))),c=s(),u="view"===n();(a&&c&&!l||u)&&i(!0)})),null},Vs=(0,me.jsx)(us.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,me.jsx)(us.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"})}),Rs=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"})}),Bs=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.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"})}),Ds=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M12 4V2.2L9 4.8l3 2.5V5.5c3.6 0 6.5 2.9 6.5 6.5 0 2.9-1.9 5.3-4.5 6.2v.2l-.1-.2c-.4.1-.7.2-1.1.2l.2 1.5c.3 0 .6-.1 1-.2 3.5-.9 6-4 6-7.7 0-4.4-3.6-8-8-8zm-7.9 7l1.5.2c.1-1.2.5-2.3 1.2-3.2l-1.1-.9C4.8 8.2 4.3 9.6 4.1 11zm1.5 1.8l-1.5.2c.1.7.3 1.4.5 2 .3.7.6 1.3 1 1.8l1.2-.8c-.3-.5-.6-1-.8-1.5s-.4-1.1-.4-1.7zm1.5 5.5c1.1.9 2.4 1.4 3.8 1.6l.2-1.5c-1.1-.1-2.2-.5-3.1-1.2l-.9 1.1z"})}),Ls=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"})}),zs=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})}),Gs=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})}),{useGlobalStylesReset:Hs}=se(y.privateApis),{useHistory:Us,useLocation:Ws}=se(Xt.privateApis);function qs(){const{openGeneralSidebar:e,setCanvasMode:t}=se((0,l.useDispatch)(Kt)),{params:s}=Ws(),{getCanvasMode:n}=se((0,l.useSelect)(Kt)),i=Us(),r=(0,l.useSelect)((e=>e(_.store).getCurrentTheme().is_block_theme),[]);return{isLoading:!1,commands:(0,d.useMemo)((()=>r?[{name:"core/edit-site/open-styles",label:(0,b.__)("Open styles"),callback:({close:r})=>{r(),s.postId||i.push({path:"/wp_global_styles",canvas:"edit"}),s.postId&&"edit"!==n()&&t("edit"),e("edit-site/global-styles")},icon:Vs}]:[]),[i,e,t,n,r,s.postId])}}function Zs(){const{openGeneralSidebar:e,setCanvasMode:t}=se((0,l.useDispatch)(Kt)),{params:s}=Ws(),{getCanvasMode:n}=se((0,l.useSelect)(Kt)),{set:i}=(0,l.useDispatch)(f.store),r=Us(),o=(0,l.useSelect)((e=>e(_.store).getCurrentTheme().is_block_theme),[]);return{isLoading:!1,commands:(0,d.useMemo)((()=>o?[{name:"core/edit-site/toggle-styles-welcome-guide",label:(0,b.__)("Learn about styles"),callback:({close:o})=>{o(),s.postId||r.push({path:"/wp_global_styles",canvas:"edit"}),s.postId&&"edit"!==n()&&t("edit"),e("edit-site/global-styles"),i("core/edit-site","welcomeGuideStyles",!0),setTimeout((()=>{i("core/edit-site","welcomeGuideStyles",!0)}),500)},icon:Rs}]:[]),[r,e,t,n,o,i,s.postId])}}function Ks(){const[e,t]=Hs();return{isLoading:!1,commands:(0,d.useMemo)((()=>e?[{name:"core/edit-site/reset-global-styles",label:(0,b.__)("Reset styles"),icon:(0,b.isRTL)()?Bs:Ds,callback:({close:e})=>{e(),t()}}]:[]),[e,t])}}function Ys(){const{openGeneralSidebar:e,setEditorCanvasContainerView:t,setCanvasMode:s}=se((0,l.useDispatch)(Kt)),{params:n}=Ws(),i=Us(),{canEditCSS:r}=(0,l.useSelect)((e=>{const{getEntityRecord:t,__experimentalGetCurrentGlobalStylesId:s}=e(_.store),n=s(),i=n?t("root","globalStyles",n):void 0;return{canEditCSS:!!i?._links?.["wp:action-edit-css"]}}),[]),{getCanvasMode:o}=se((0,l.useSelect)(Kt));return{isLoading:!1,commands:(0,d.useMemo)((()=>r?[{name:"core/edit-site/open-styles-css",label:(0,b.__)("Customize CSS"),icon:Ls,callback:({close:r})=>{r(),n.postId||i.push({path:"/wp_global_styles",canvas:"edit"}),n.postId&&"edit"!==o()&&s("edit"),e("edit-site/global-styles"),t("global-styles-css")}}]:[]),[i,e,t,r,o,s,n.postId])}}function Xs(){const{openGeneralSidebar:e,setEditorCanvasContainerView:t,setCanvasMode:s}=se((0,l.useDispatch)(Kt)),{getCanvasMode:n}=se((0,l.useSelect)(Kt)),{params:i}=Ws(),r=Us(),o=(0,l.useSelect)((e=>{const{getEntityRecord:t,__experimentalGetCurrentGlobalStylesId:s}=e(_.store),n=s(),i=n?t("root","globalStyles",n):void 0;return!!i?._links?.["version-history"]?.[0]?.count}),[]);return{isLoading:!1,commands:(0,d.useMemo)((()=>o?[{name:"core/edit-site/open-global-styles-revisions",label:(0,b.__)("Style revisions"),icon:zs,callback:({close:o})=>{o(),i.postId||r.push({path:"/wp_global_styles",canvas:"edit"}),i.postId&&"edit"!==n()&&s("edit"),e("edit-site/global-styles"),t("global-styles-revisions")}}]:[]),[o,r,e,t,n,s,i.postId])}}const Js=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),Qs=(0,me.jsxs)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,me.jsx)(us.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,me.jsx)(us.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]}),$s=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})});function en(e,t){const{record:s,title:n,description:i,isLoaded:r,icon:o}=(0,l.useSelect)((s=>{const{getEditedPostType:n,getEditedPostId:i}=s(Kt),{getEditedEntityRecord:r,hasFinishedResolution:o}=s(_.store),{__experimentalGetTemplateInfo:a}=s(h.store),l=null!=e?e:n(),c=null!=t?t:i(),u=r("postType",l,c),d=c&&o("getEditedEntityRecord",["postType",l,c]),p=a(u);return{record:u,title:p.title,description:p.description,isLoaded:d,icon:p.icon}}),[e,t]);return{isLoaded:r,icon:o,record:s,getTitle:()=>n?(0,cs.decodeEntities)(n):null,getDescription:()=>i?(0,cs.decodeEntities)(i):null}}function tn(){return void 0!==(0,ps.getQueryArg)(window.location.href,"wp_theme_preview")}function sn(){return tn()?(0,ps.getQueryArg)(window.location.href,"wp_theme_preview"):null}const{useHistory:nn}=se(Xt.privateApis);function rn(e,t,s=!1){const n=nn();const i=(0,ps.getQueryArgs)(window.location.href),r=(0,ps.removeQueryArgs)(window.location.href,...Object.keys(i));tn()&&(e={...e,wp_theme_preview:sn()});return{href:(0,ps.addQueryArgs)(r,e),onClick:function(i){i?.preventDefault(),s?n.replace(e,t):n.push(e,t)}}}function on({params:e={},state:t,replace:s=!1,children:n,...i}){const{href:r,onClick:o}=rn(e,t,s);return(0,me.jsx)("a",{href:r,onClick:o,...i,children:n})}const{useHistory:an}=se(Xt.privateApis);function ln(){const{record:e}=en(),{isPage:t,canvasMode:s,templateId:n,currentPostType:i}=(0,l.useSelect)((e=>{const{isPage:t,getCanvasMode:s}=se(e(Kt)),{getCurrentPostType:n,getCurrentTemplateId:i}=e(h.store);return{isPage:t(),canvasMode:s(),templateId:i(),currentPostType:n()}}),[]),{onClick:r}=rn({postType:"wp_template",postId:n}),{setRenderingMode:o}=(0,l.useDispatch)(h.store);if(!t||"edit"!==s)return{isLoading:!1,commands:[]};const a=[];return"wp_template"!==i?a.push({name:"core/switch-to-template-focus",label:(0,b.sprintf)((0,b.__)("Edit template: %s"),(0,cs.decodeEntities)(e.title)),icon:Js,callback:({close:e})=>{r(),e()}}):a.push({name:"core/switch-to-page-focus",label:(0,b.__)("Back to page"),icon:Qs,callback:({close:e})=>{o("template-locked"),e()}}),{isLoading:!1,commands:a}}function cn(){const{isLoaded:e,record:t}=en(),{removeTemplate:s,revertTemplate:n}=(0,l.useDispatch)(Kt),i=an(),r=(0,l.useSelect)((e=>e(Kt).isPage()&&"wp_template"!==e(h.store).getCurrentPostType()),[]);if(!e)return{isLoading:!0,commands:[]};const o=[];if(function(e){return!!e&&e?.source===Fe.custom&&e?.has_theme_file}(t)&&!r){const e=t.type===Me?(0,b.sprintf)((0,b.__)("Reset template: %s"),(0,cs.decodeEntities)(t.title)):(0,b.sprintf)((0,b.__)("Reset template part: %s"),(0,cs.decodeEntities)(t.title));o.push({name:"core/reset-template",label:e,icon:(0,b.isRTL)()?Bs:Ds,callback:({close:e})=>{n(t),e()}})}if(function(e){return!!e&&e.source===Fe.custom&&!e.has_theme_file}(t)&&!r){const e=t.type===Me?(0,b.sprintf)((0,b.__)("Delete template: %s"),(0,cs.decodeEntities)(t.title)):(0,b.sprintf)((0,b.__)("Delete template part: %s"),(0,cs.decodeEntities)(t.title));o.push({name:"core/remove-template",label:e,icon:$s,callback:({close:e})=>{s(t),i.push({postType:t.type}),e()}})}return{isLoading:!e,commands:o}}const un=1e4;function dn(){const{isLoaded:e}=en(),[t,s]=(0,d.useState)(!1),n=(0,l.useSelect)((e=>{const s=e(_.store).hasResolvingSelectors();return!t&&!s}),[t]);return(0,d.useEffect)((()=>{let e;return t||(e=setTimeout((()=>{s(!0)}),un)),()=>{clearTimeout(e)}}),[t]),(0,d.useEffect)((()=>{if(n){const e=setTimeout((()=>{s(!0)}),100);return()=>{clearTimeout(e)}}}),[n]),!t||!e}function hn({nonAnimatedSrc:e,animatedSrc:t}){return(0,me.jsxs)("picture",{className:"edit-site-welcome-guide__image",children:[(0,me.jsx)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,me.jsx)("img",{src:t,width:"312",height:"240",alt:""})]})}function pn(){const{toggle:e}=(0,l.useDispatch)(f.store),{isActive:t,isBlockBasedTheme:s}=(0,l.useSelect)((e=>({isActive:!!e(f.store).get("core/edit-site","welcomeGuide"),isBlockBasedTheme:e(_.store).getCurrentTheme()?.is_block_theme})),[]);return t&&s?(0,me.jsx)(x.Guide,{className:"edit-site-welcome-guide guide-editor",contentLabel:(0,b.__)("Welcome to the site editor"),finishButtonText:(0,b.__)("Get started"),onFinish:()=>e("core/edit-site","welcomeGuide"),pages:[{image:(0,me.jsx)(hn,{nonAnimatedSrc:"https://s.w.org/images/block-editor/edit-your-site.svg?1",animatedSrc:"https://s.w.org/images/block-editor/edit-your-site.gif?1"}),content:(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)("h1",{className:"edit-site-welcome-guide__heading",children:(0,b.__)("Edit your site")}),(0,me.jsx)("p",{className:"edit-site-welcome-guide__text",children:(0,b.__)("Design everything on your site — from the header right down to the footer — using blocks.")}),(0,me.jsx)("p",{className:"edit-site-welcome-guide__text",children:(0,d.createInterpolateElement)((0,b.__)("Click <StylesIconImage /> to start designing your blocks, and choose your typography, layout, and colors."),{StylesIconImage:(0,me.jsx)("img",{alt:(0,b.__)("styles"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z' fill='%231E1E1E'/%3E%3C/svg%3E%0A"})})})]})}]}):null}const{interfaceStore:fn}=se(h.privateApis);function mn(){const{toggle:e}=(0,l.useDispatch)(f.store),{isActive:t,isStylesOpen:s}=(0,l.useSelect)((e=>{const t=e(fn).getActiveComplementaryArea("core");return{isActive:!!e(f.store).get("core/edit-site","welcomeGuideStyles"),isStylesOpen:"edit-site/global-styles"===t}}),[]);if(!t||!s)return null;const n=(0,b.__)("Welcome to Styles");return(0,me.jsx)(x.Guide,{className:"edit-site-welcome-guide guide-styles",contentLabel:n,finishButtonText:(0,b.__)("Get started"),onFinish:()=>e("core/edit-site","welcomeGuideStyles"),pages:[{image:(0,me.jsx)(hn,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.svg?1",animatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.gif?1"}),content:(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)("h1",{className:"edit-site-welcome-guide__heading",children:n}),(0,me.jsx)("p",{className:"edit-site-welcome-guide__text",children:(0,b.__)("Tweak your site, or give it a whole new look! Get creative — how about a new color palette for your buttons, or choosing a new font? Take a look at what you can do here.")})]})},{image:(0,me.jsx)(hn,{nonAnimatedSrc:"https://s.w.org/images/block-editor/set-the-design.svg?1",animatedSrc:"https://s.w.org/images/block-editor/set-the-design.gif?1"}),content:(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)("h1",{className:"edit-site-welcome-guide__heading",children:(0,b.__)("Set the design")}),(0,me.jsx)("p",{className:"edit-site-welcome-guide__text",children:(0,b.__)("You can customize your site as much as you like with different colors, typography, and layouts. Or if you prefer, just leave it up to your theme to handle!")})]})},{image:(0,me.jsx)(hn,{nonAnimatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.svg?1",animatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.gif?1"}),content:(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)("h1",{className:"edit-site-welcome-guide__heading",children:(0,b.__)("Personalize blocks")}),(0,me.jsx)("p",{className:"edit-site-welcome-guide__text",children:(0,b.__)("You can adjust your blocks to ensure a cohesive experience across your site — add your unique colors to a branded Button block, or adjust the Heading block to your preferred size.")})]})},{image:(0,me.jsx)(hn,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)("h1",{className:"edit-site-welcome-guide__heading",children:(0,b.__)("Learn more")}),(0,me.jsxs)("p",{className:"edit-site-welcome-guide__text",children:[(0,b.__)("New to block themes and styling your site?")," ",(0,me.jsx)(x.ExternalLink,{href:(0,b.__)("https://wordpress.org/documentation/article/styles-overview/"),children:(0,b.__)("Here’s a detailed guide to learn how to make the most of it.")})]})]})}]})}function gn(){const{toggle:e}=(0,l.useDispatch)(f.store),t=(0,l.useSelect)((e=>{const t=!!e(f.store).get("core/edit-site","welcomeGuidePage"),s=!!e(f.store).get("core/edit-site","welcomeGuide"),{isPage:n}=e(Kt);return t&&!s&&n()}),[]);if(!t)return null;const s=(0,b.__)("Editing a page");return(0,me.jsx)(x.Guide,{className:"edit-site-welcome-guide guide-page",contentLabel:s,finishButtonText:(0,b.__)("Continue"),onFinish:()=>e("core/edit-site","welcomeGuidePage"),pages:[{image:(0,me.jsx)("video",{className:"edit-site-welcome-guide__video",autoPlay:!0,loop:!0,muted:!0,width:"312",height:"240",children:(0,me.jsx)("source",{src:"https://s.w.org/images/block-editor/editing-your-page.mp4",type:"video/mp4"})}),content:(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)("h1",{className:"edit-site-welcome-guide__heading",children:s}),(0,me.jsx)("p",{className:"edit-site-welcome-guide__text",children:(0,b.__)("It’s now possible to edit page content in the site editor. To customise other parts of the page like the header and footer switch to editing the template using the settings sidebar.")})]})}]})}function vn(){const{toggle:e}=(0,l.useDispatch)(f.store),t=(0,l.useSelect)((e=>{const t=!!e(f.store).get("core/edit-site","welcomeGuideTemplate"),s=!!e(f.store).get("core/edit-site","welcomeGuide"),{isPage:n}=e(Kt),{getCurrentPostType:i}=e(h.store);return t&&!s&&n()&&"wp_template"===i()}),[]);if(!t)return null;const s=(0,b.__)("Editing a template");return(0,me.jsx)(x.Guide,{className:"edit-site-welcome-guide guide-template",contentLabel:s,finishButtonText:(0,b.__)("Continue"),onFinish:()=>e("core/edit-site","welcomeGuideTemplate"),pages:[{image:(0,me.jsx)("video",{className:"edit-site-welcome-guide__video",autoPlay:!0,loop:!0,muted:!0,width:"312",height:"240",children:(0,me.jsx)("source",{src:"https://s.w.org/images/block-editor/editing-your-template.mp4",type:"video/mp4"})}),content:(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)("h1",{className:"edit-site-welcome-guide__heading",children:s}),(0,me.jsx)("p",{className:"edit-site-welcome-guide__text",children:(0,b.__)("Note that the same template can be used by multiple pages, so any changes made here may affect other pages on the site. To switch back to editing the page content click the ‘Back’ button in the toolbar.")})]})}]})}function yn(){return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(pn,{}),(0,me.jsx)(mn,{}),(0,me.jsx)(gn,{}),(0,me.jsx)(vn,{})]})}const{useGlobalStylesOutput:xn}=se(y.privateApis);function bn(){return function(){const e=(0,l.useSelect)((e=>e(Kt).getEditedPostType())),[t,s]=xn(e!==Me),{getSettings:n}=(0,l.useSelect)(Kt),{updateSettings:i}=(0,l.useDispatch)(Kt);(0,d.useEffect)((()=>{var e;if(!t||!s)return;const r=n(),o=Object.values(null!==(e=r.styles)&&void 0!==e?e:[]).filter((e=>!e.isGlobalStyles));i({...r,styles:[...o,...t],__experimentalFeatures:s})}),[t,s,i,n])}(),null}const{Theme:wn}=se(x.privateApis),{useGlobalStyle:_n}=se(y.privateApis);function Sn({id:e}){var t;const[s]=_n("color.text"),[n]=_n("color.background"),{highlightedColors:i}=de(),r=null!==(t=i[0]?.color)&&void 0!==t?t:s,{elapsed:o,total:a}=(0,l.useSelect)((e=>{var t,s;const n=e(_.store).countSelectorsByStatus(),i=null!==(t=n.resolving)&&void 0!==t?t:0,r=null!==(s=n.finished)&&void 0!==s?s:0;return{elapsed:r,total:r+i}}),[]);return(0,me.jsx)("div",{className:"edit-site-canvas-loader",children:(0,me.jsx)(wn,{accent:r,background:n,children:(0,me.jsx)(x.ProgressBar,{id:e,max:a,value:o})})})}function jn({clientId:e,onClose:t}){const{getBlocks:s}=(0,l.useSelect)(y.store),{replaceBlocks:n}=(0,l.useDispatch)(y.store);return(0,l.useSelect)((t=>t(y.store).canRemoveBlock(e)),[e])?(0,me.jsx)(x.MenuItem,{onClick:()=>{n(e,s(e)),t()},children:(0,b.__)("Detach")}):null}const Cn=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})}),{CreateTemplatePartModal:kn}=se(h.privateApis);function En({clientIds:e,blocks:t}){const[s,n]=(0,d.useState)(!1),{replaceBlocks:i}=(0,l.useDispatch)(y.store),{createSuccessNotice:r}=(0,l.useDispatch)(w.store),{canCreate:a}=(0,l.useSelect)((e=>{const{supportsTemplatePartsMode:t}=e(Kt).getSettings();return{canCreate:!t}}),[]);if(!a)return null;return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(x.MenuItem,{icon:Cn,onClick:()=>{n(!0)},"aria-expanded":s,"aria-haspopup":"dialog",children:(0,b.__)("Create template part")}),s&&(0,me.jsx)(kn,{closeModal:()=>{n(!1)},blocks:t,onCreate:async t=>{i(e,(0,o.createBlock)("core/template-part",{slug:t.slug,theme:t.theme})),r((0,b.__)("Template part created."),{type:"snackbar"})}})]})}function Pn(){return(0,me.jsx)(y.BlockSettingsMenuControls,{children:({selectedClientIds:e,onClose:t})=>(0,me.jsx)(In,{clientIds:e,onClose:t})})}function In({clientIds:e,onClose:t}){const{isContentOnly:s,blocks:n}=(0,l.useSelect)((t=>{const{getBlocksByClientId:s,getBlockEditingMode:n}=t(y.store);return{blocks:s(e),isContentOnly:1===e.length&&"contentOnly"===n(e[0])}}),[e]);return s?null:1===n.length&&"core/template-part"===n[0]?.name?(0,me.jsx)(jn,{clientId:e[0],onClose:t}):(0,me.jsx)(En,{clientIds:e,blocks:n})}const{useHistory:Tn}=se(Xt.privateApis);const{useBlockEditorSettings:On}=se(h.privateApis),{useLocation:An,useHistory:Mn}=se(Xt.privateApis);function Nn(){const e=function(){const e=Tn();return(0,d.useCallback)((t=>{e.push({...t,focusMode:!0,canvas:"edit"})}),[e])}(),{templateSlug:t,canvasMode:s,settings:n,postWithTemplate:i}=(0,l.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:s,getEditedPostContext:n,getCanvasMode:i,getSettings:r}=se(e(Kt)),{getEditedEntityRecord:o}=e(_.store),a=o("postType",t(),s()),l=n();return{templateSlug:a.slug,canvasMode:i(),settings:r(),postWithTemplate:l?.postId}}),[]),r=function(e){const t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/);let s,n,i,r=!1;if(t)t[1]?s=t[2]?t[2]:t[1]:t[3]&&(s=t[6]?t[6]:t[4],n=t[7]),s="tag"===s?"post_tag":s;else{const t=e?.match(/^(author)$|^author-(.+)$/);t&&(r=!0,t[2]&&(i=t[2]))}return(0,l.useSelect)((e=>{const{getEntityRecords:t,getTaxonomy:o,getAuthors:a}=e(_.store);let l,c;if(s&&(l=o(s)?.labels?.singular_name),n){const e=t("taxonomy",s,{slug:n,per_page:1});e&&e[0]&&(c=e[0].name)}if(r&&(l="Author",i)){const e=a({slug:i});e&&e[0]&&(c=e[0].name)}return{archiveTypeLabel:l,archiveNameLabel:c}}),[i,r,s,n])}(t),o=i?"template-locked":"post-only",a=function(){const e=An(),t=(0,v.usePrevious)(e),s=Mn();return(0,d.useMemo)((()=>{const n=e.params.focusMode||e.params.postId&&He.includes(e.params.postType),i="edit"===t?.params.canvas;return n&&i?()=>s.back():void 0}),[e,s])}();return(0,d.useMemo)((()=>({...n,richEditingEnabled:!0,supportsTemplateMode:!0,focusMode:"view"!==s,defaultRenderingMode:o,onNavigateToEntityRecord:e,onNavigateToPreviousEntityRecord:a,__experimentalArchiveTitleTypeLabel:r.archiveTypeLabel,__experimentalArchiveTitleNameLabel:r.archiveNameLabel,__unstableIsPreviewMode:"view"===s})),[n,s,o,e,a,r.archiveTypeLabel,r.archiveNameLabel])}const{Fill:Fn,Slot:Vn}=(0,x.createSlotFill)("PluginTemplateSettingPanel"),Rn=({children:e})=>{u()("wp.editSite.PluginTemplateSettingPanel",{since:"6.6",version:"6.8",alternative:"wp.editor.PluginDocumentSettingPanel"});return(0,l.useSelect)((e=>"wp_template"===e(h.store).getCurrentPostType()),[])?(0,me.jsx)(Fn,{children:e}):null};Rn.Slot=Vn;const Bn=Rn,Dn=(0,me.jsx)(us.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,me.jsx)(us.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"})}),Ln=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})}),zn=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})}),Gn=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})});function Hn({className:e,...t}){return(0,me.jsx)(x.Icon,{className:Qt(e,"edit-site-global-styles-icon-with-current-color"),...t})}function Un({icon:e,children:t,...s}){return(0,me.jsxs)(x.__experimentalItem,{...s,children:[e&&(0,me.jsxs)(x.__experimentalHStack,{justify:"flex-start",children:[(0,me.jsx)(Hn,{icon:e,size:24}),(0,me.jsx)(x.FlexItem,{children:t})]}),!e&&t]})}function Wn(e){return(0,me.jsx)(x.__experimentalNavigatorButton,{as:Un,...e})}const qn=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"})}),Zn=(0,me.jsx)(us.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,me.jsx)(us.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})}),Kn=(0,me.jsx)(us.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,me.jsx)(us.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})}),{useHasDimensionsPanel:Yn,useHasTypographyPanel:Xn,useHasColorPanel:Jn,useGlobalSetting:Qn,useSettingsForBlockElement:$n}=se(y.privateApis);const ei=function(){const[e]=Qn(""),t=$n(e),s=Xn(t),n=Jn(t),i=Yn(t);return(0,me.jsx)(me.Fragment,{children:(0,me.jsxs)(x.__experimentalItemGroup,{children:[s&&(0,me.jsx)(Wn,{icon:qn,path:"/typography","aria-label":(0,b.__)("Typography styles"),children:(0,b.__)("Typography")}),n&&(0,me.jsx)(Wn,{icon:Zn,path:"/colors","aria-label":(0,b.__)("Colors styles"),children:(0,b.__)("Colors")}),(0,me.jsx)(Wn,{icon:Kn,path:"/shadows","aria-label":(0,b.__)("Shadow styles"),children:(0,b.__)("Shadows")}),i&&(0,me.jsx)(Wn,{icon:Js,path:"/layout","aria-label":(0,b.__)("Layout styles"),children:(0,b.__)("Layout")})]})})};function ti(e){const t=/^(?!generic\([ a-zA-Z\-]+\)$)(?!^[a-zA-Z\-]+$).+/,s=e.trim(),n=e=>(e=e.trim()).match(t)?`"${e=e.replace(/^["']|["']$/g,"")}"`:e;return s.includes(",")?s.split(",").map(n).filter((e=>""!==e)).join(", "):n(s)}function si(e){if(!e)return"";let t=e.trim();return t.includes(",")&&(t=t.split(",").find((e=>""!==e.trim())).trim()),t=t.replace(/^["']|["']$/g,""),window.navigator.userAgent.toLowerCase().includes("firefox")&&(t=`"${t}"`),t}function ni(e){const t={fontFamily:ti(e.fontFamily)};if(!Array.isArray(e.fontFace))return t.fontWeight="400",t.fontStyle="normal",t;if(e.fontFace){const i=e.fontFace.filter((e=>e?.fontStyle&&"normal"===e.fontStyle.toLowerCase()));if(i.length>0){t.fontStyle="normal";const e=function(e){const t=[];return e.forEach((e=>{const s=String(e.fontWeight).split(" ");if(2===s.length){const e=parseInt(s[0]),n=parseInt(s[1]);for(let s=e;s<=n;s+=100)t.push(s)}else 1===s.length&&t.push(parseInt(s[0]))})),t}(i),r=(s=400,0===(n=e).length?null:(n.sort(((e,t)=>Math.abs(s-e)-Math.abs(s-t))),n[0]));t.fontWeight=String(r)||"400"}else t.fontStyle=e.fontFace.length&&e.fontFace[0].fontStyle||"normal",t.fontWeight=e.fontFace.length&&String(e.fontFace[0].fontWeight)||"400"}var s,n;return t}function ii(e){return e?`is-style-${e}`:""}function ri(e,t){if(!Array.isArray(e)||!t)return null;const s=t.replace("var(","").replace(")",""),n=s?.split("--").slice(-1)[0];return e.find((e=>e.slug===n))}const{GlobalStylesContext:oi}=se(y.privateApis),{mergeBaseAndUserConfigs:ai}=se(h.privateApis);function li({fontSize:e,variation:t}){const{base:s}=(0,d.useContext)(oi);let n=s;t&&(n=ai(s,t));const[i,r]=function(e){const t=e?.settings?.typography?.fontFamilies?.theme,s=e?.styles?.typography?.fontFamily,n=ri(t,s),i=e?.styles?.elements?.heading?.typography?.fontFamily;let r;return r=i?ri(t,e?.styles?.elements?.heading?.typography?.fontFamily):n,[n,r]}(n),o=i?ni(i):{},a=r?ni(r):{};return e&&(o.fontSize=e,a.fontSize=e),(0,me.jsxs)(x.__unstableMotion.div,{animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:.3,type:"tween"},style:{textAlign:"center"},children:[(0,me.jsx)("span",{style:a,children:(0,b._x)("A","Uppercase letter A")}),(0,me.jsx)("span",{style:o,children:(0,b._x)("a","Lowercase letter A")})]})}function ci({normalizedColorSwatchSize:e,ratio:t}){const{highlightedColors:s}=de(),n=e*t;return s.map((({slug:e,color:t},s)=>(0,me.jsx)(x.__unstableMotion.div,{style:{height:n,width:n,background:t,borderRadius:n/2},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:1===s?.2:.1}},`${e}-${s}`)))}const{useGlobalStyle:ui,useGlobalStylesOutput:di}=se(y.privateApis),hi=248,pi=152,fi={leading:!0,trailing:!0};function mi({children:e,label:t,isFocused:s,withHoverView:n}){const[i="white"]=ui("color.background"),[r]=ui("color.gradient"),[o]=di(),a=(0,v.useReducedMotion)(),[l,c]=(0,d.useState)(!1),[u,{width:h}]=(0,v.useResizeObserver)(),[p,f]=(0,d.useState)(h),[m,g]=(0,d.useState)(),b=(0,v.useThrottle)(f,250,fi);(0,d.useLayoutEffect)((()=>{h&&b(h)}),[h,b]),(0,d.useLayoutEffect)((()=>{const e=p?p/hi:1,t=e-(m||0);!(Math.abs(t)>.1)&&m||g(e)}),[p,m]);const w=m||(h?h/hi:1),_=(0,d.useMemo)((()=>o?[...o,{css:"html{overflow:hidden}body{min-width: 0;padding: 0;border: none;cursor: pointer;}",isGlobalStyles:!0}]:o),[o]),S=!!h;return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)("div",{style:{position:"relative"},children:u}),S&&(0,me.jsxs)(y.__unstableIframe,{className:"edit-site-global-styles-preview__iframe",style:{height:pi*w},onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),tabIndex:-1,children:[(0,me.jsx)(y.__unstableEditorStyles,{styles:_}),(0,me.jsx)(x.__unstableMotion.div,{style:{height:pi*w,width:"100%",background:null!=r?r:i,cursor:n?"pointer":void 0},initial:"start",animate:(l||s)&&!a&&t?"hover":"start",children:[].concat(e).map(((e,t)=>e({ratio:w,key:t})))})]})]})}const{useGlobalStyle:gi}=se(y.privateApis),vi={start:{scale:1,opacity:1},hover:{scale:0,opacity:0}},yi={hover:{opacity:1},start:{opacity:.5}},xi={hover:{scale:1,opacity:1},start:{scale:0,opacity:0}},bi=({label:e,isFocused:t,withHoverView:s,variation:n})=>{const[i]=gi("typography.fontWeight"),[r="serif"]=gi("typography.fontFamily"),[o=r]=gi("elements.h1.typography.fontFamily"),[a=i]=gi("elements.h1.typography.fontWeight"),[l="black"]=gi("color.text"),[c=l]=gi("elements.h1.color.text"),{paletteColors:u}=de();return(0,me.jsxs)(mi,{label:e,isFocused:t,withHoverView:s,children:[({ratio:e,key:t})=>(0,me.jsx)(x.__unstableMotion.div,{variants:vi,style:{height:"100%",overflow:"hidden"},children:(0,me.jsxs)(x.__experimentalHStack,{spacing:10*e,justify:"center",style:{height:"100%",overflow:"hidden"},children:[(0,me.jsx)(li,{fontSize:65*e,variation:n}),(0,me.jsx)(x.__experimentalVStack,{spacing:4*e,children:(0,me.jsx)(ci,{normalizedColorSwatchSize:32,ratio:e})})]})},t),({key:e})=>(0,me.jsx)(x.__unstableMotion.div,{variants:s&&yi,style:{height:"100%",width:"100%",position:"absolute",top:0,overflow:"hidden",filter:"blur(60px)",opacity:.1},children:(0,me.jsx)(x.__experimentalHStack,{spacing:0,justify:"flex-start",style:{height:"100%",overflow:"hidden"},children:u.slice(0,4).map((({color:e},t)=>(0,me.jsx)("div",{style:{height:"100%",background:e,flexGrow:1}},t)))})},e),({ratio:t,key:s})=>(0,me.jsx)(x.__unstableMotion.div,{variants:xi,style:{height:"100%",width:"100%",overflow:"hidden",position:"absolute",top:0},children:(0,me.jsx)(x.__experimentalVStack,{spacing:3*t,justify:"center",style:{height:"100%",overflow:"hidden",padding:10*t,boxSizing:"border-box"},children:e&&(0,me.jsx)("div",{style:{fontSize:40*t,fontFamily:o,color:c,fontWeight:a,lineHeight:"1em",textAlign:"center"},children:e})})},s)]})},{useGlobalStyle:wi}=se(y.privateApis);const _i=function(){const[e]=wi("css"),{hasVariations:t,canEditCSS:s}=(0,l.useSelect)((e=>{const{getEntityRecord:t,__experimentalGetCurrentGlobalStylesId:s,__experimentalGetCurrentThemeGlobalStylesVariations:n}=e(_.store),i=s(),r=i?t("root","globalStyles",i):void 0;return{hasVariations:!!n()?.length,canEditCSS:!!r?._links?.["wp:action-edit-css"]}}),[]);return(0,me.jsxs)(x.Card,{size:"small",className:"edit-site-global-styles-screen-root",children:[(0,me.jsx)(x.CardBody,{children:(0,me.jsxs)(x.__experimentalVStack,{spacing:4,children:[(0,me.jsx)(x.Card,{children:(0,me.jsx)(x.CardMedia,{children:(0,me.jsx)(bi,{})})}),t&&(0,me.jsx)(x.__experimentalItemGroup,{children:(0,me.jsx)(Wn,{path:"/variations","aria-label":(0,b.__)("Browse styles"),children:(0,me.jsxs)(x.__experimentalHStack,{justify:"space-between",children:[(0,me.jsx)(x.FlexItem,{children:(0,b.__)("Browse styles")}),(0,me.jsx)(Hn,{icon:(0,b.isRTL)()?zn:Gn})]})})}),(0,me.jsx)(ei,{})]})}),(0,me.jsx)(x.CardDivider,{}),(0,me.jsxs)(x.CardBody,{children:[(0,me.jsx)(x.__experimentalSpacer,{as:"p",paddingTop:2,paddingX:"13px",marginBottom:4,children:(0,b.__)("Customize the appearance of specific blocks for the whole site.")}),(0,me.jsx)(x.__experimentalItemGroup,{children:(0,me.jsx)(Wn,{path:"/blocks","aria-label":(0,b.__)("Blocks styles"),children:(0,me.jsxs)(x.__experimentalHStack,{justify:"space-between",children:[(0,me.jsx)(x.FlexItem,{children:(0,b.__)("Blocks")}),(0,me.jsx)(Hn,{icon:(0,b.isRTL)()?zn:Gn})]})})})]}),s&&!!e&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(x.CardDivider,{}),(0,me.jsxs)(x.CardBody,{children:[(0,me.jsx)(x.__experimentalSpacer,{as:"p",paddingTop:2,paddingX:"13px",marginBottom:4,children:(0,b.__)("Add your own CSS to customize the appearance and layout of your site.")}),(0,me.jsx)(x.__experimentalItemGroup,{children:(0,me.jsx)(Wn,{path:"/css","aria-label":(0,b.__)("Additional CSS"),children:(0,me.jsxs)(x.__experimentalHStack,{justify:"space-between",children:[(0,me.jsx)(x.FlexItem,{children:(0,b.__)("Additional CSS")}),(0,me.jsx)(Hn,{icon:(0,b.isRTL)()?zn:Gn})]})})})]})]})]})},Si=window.wp.a11y,{useGlobalStyle:ji}=se(y.privateApis);function Ci(e){const t=(0,l.useSelect)((t=>{const{getBlockStyles:s}=t(o.store);return s(e)}),[e]),[s]=ji("variations",e);return function(e,t){return e?.filter((e=>"block"===e.source||t.includes(e.name)))}(t,Object.keys(null!=s?s:{}))}function ki({name:e}){const t=Ci(e);return(0,me.jsx)(x.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:t.map(((t,s)=>t?.isDefault?null:(0,me.jsx)(Wn,{path:"/blocks/"+encodeURIComponent(e)+"/variations/"+encodeURIComponent(t.name),"aria-label":t.label,children:t.label},s)))})}const Ei=function({title:e,description:t,onBack:s}){return(0,me.jsxs)(x.__experimentalVStack,{spacing:0,children:[(0,me.jsx)(x.__experimentalView,{children:(0,me.jsx)(x.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3,children:(0,me.jsxs)(x.__experimentalHStack,{spacing:2,children:[(0,me.jsx)(x.__experimentalNavigatorToParentButton,{style:{minWidth:24,padding:0},icon:(0,b.isRTL)()?Gn:zn,size:"small",label:(0,b.__)("Back"),onClick:s}),(0,me.jsx)(x.__experimentalSpacer,{children:(0,me.jsx)(x.__experimentalHeading,{className:"edit-site-global-styles-header",level:2,size:13,children:e})})]})})}),t&&(0,me.jsx)("p",{className:"edit-site-global-styles-header__description",children:t})]})},{useHasDimensionsPanel:Pi,useHasTypographyPanel:Ii,useHasBorderPanel:Ti,useGlobalSetting:Oi,useSettingsForBlockElement:Ai,useHasColorPanel:Mi}=se(y.privateApis);function Ni(e){const[t]=Oi("",e),s=Ai(t,e),n=Ii(s),i=Mi(s),r=Ti(s),o=Pi(s),a=r||o,l=!!Ci(e)?.length;return n||i||a||l}function Fi({block:e}){if(!Ni(e.name))return null;const t=(0,b.sprintf)((0,b.__)("%s block styles"),e.title);return(0,me.jsx)(Wn,{path:"/blocks/"+encodeURIComponent(e.name),"aria-label":t,children:(0,me.jsxs)(x.__experimentalHStack,{justify:"flex-start",children:[(0,me.jsx)(y.BlockIcon,{icon:e.icon}),(0,me.jsx)(x.FlexItem,{children:e.title})]})})}const Vi=(0,d.memo)((function({filterValue:e}){const t=function(){const e=(0,l.useSelect)((e=>e(o.store).getBlockTypes()),[]),{core:t,noncore:s}=e.reduce(((e,t)=>{const{core:s,noncore:n}=e;return(t.name.startsWith("core/")?s:n).push(t),e}),{core:[],noncore:[]});return[...t,...s]}(),s=(0,v.useDebounce)(Si.speak,500),{isMatchingSearchTerm:n}=(0,l.useSelect)(o.store),i=e?t.filter((t=>n(t,e))):t,r=(0,d.useRef)();return(0,d.useEffect)((()=>{if(!e)return;const t=r.current.childElementCount,n=(0,b.sprintf)((0,b._n)("%d result found.","%d results found.",t),t);s(n,t)}),[e,s]),(0,me.jsx)("div",{ref:r,className:"edit-site-block-types-item-list",children:i.map((e=>(0,me.jsx)(Fi,{block:e},"menu-itemblock-"+e.name)))})}));const Ri=function(){const[e,t]=(0,d.useState)(""),s=(0,d.useDeferredValue)(e);return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(Ei,{title:(0,b.__)("Blocks"),description:(0,b.__)("Customize the appearance of specific blocks and for the whole site.")}),(0,me.jsx)(x.SearchControl,{__nextHasNoMarginBottom:!0,className:"edit-site-block-types-search",onChange:t,value:e,label:(0,b.__)("Search for blocks"),placeholder:(0,b.__)("Search")}),(0,me.jsx)(Vi,{filterValue:s})]})},Bi=({name:e,variation:t=""})=>{var s;const n=(0,o.getBlockType)(e)?.example,i=(0,d.useMemo)((()=>{if(!n)return null;let s=n;return t&&(s={...s,attributes:{...s.attributes,className:ii(t)}}),(0,o.getBlockFromExample)(e,s)}),[e,n,t]),r=null!==(s=n?.viewportWidth)&&void 0!==s?s:null;return n?(0,me.jsx)(x.__experimentalSpacer,{marginX:4,marginBottom:4,children:(0,me.jsx)("div",{className:"edit-site-global-styles__block-preview-panel",style:{maxHeight:150,boxSizing:"initial"},children:(0,me.jsx)(y.BlockPreview,{blocks:i,viewportWidth:r,minHeight:150,additionalStyles:[{css:"\n\t\t\t\t\t\t\t\tbody{\n\t\t\t\t\t\t\t\t\tmin-height:150px;\n\t\t\t\t\t\t\t\t\tdisplay:flex;align-items:center;justify-content:center;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t"}]})})}):null};const Di=function({children:e,level:t}){return(0,me.jsx)(x.__experimentalHeading,{className:"edit-site-global-styles-subtitle",level:null!=t?t:2,children:e})};function Li(e){if(!e)return e;const t=e.color||e.width;return!e.style&&t?{...e,style:"solid"}:!e.style||t?e:void 0}const{useHasDimensionsPanel:zi,useHasTypographyPanel:Gi,useHasBorderPanel:Hi,useGlobalSetting:Ui,useSettingsForBlockElement:Wi,useHasColorPanel:qi,useHasFiltersPanel:Zi,useHasImageSettingsPanel:Ki,useGlobalStyle:Yi,BorderPanel:Xi,ColorPanel:Ji,TypographyPanel:Qi,DimensionsPanel:$i,FiltersPanel:er,ImageSettingsPanel:tr,AdvancedPanel:sr}=se(y.privateApis);const nr=function({name:e,variation:t}){let s=[];t&&(s=["variations",t].concat(s));const n=s.join("."),[i]=Yi(n,e,"user",{shouldDecodeEncode:!1}),[r,a]=Yi(n,e,"all",{shouldDecodeEncode:!1}),[c]=Ui("",e,"user"),[u,h]=Ui("",e),p=Wi(u,e),f=(0,o.getBlockType)(e);p?.spacing?.blockGap&&f?.supports?.spacing?.blockGap&&(!0===f?.supports?.spacing?.__experimentalSkipSerialization||f?.supports?.spacing?.__experimentalSkipSerialization?.some?.((e=>"blockGap"===e)))&&(p.spacing.blockGap=!1),p?.dimensions?.aspectRatio&&"core/group"===e&&(p.dimensions.aspectRatio=!1);const m=Ci(e),g=Gi(p),v=qi(p),y=Hi(p),w=zi(p),S=Zi(p),j=Ki(e,c,p),C=!!m?.length&&!t,{canEditCSS:k}=(0,l.useSelect)((e=>{const{getEntityRecord:t,__experimentalGetCurrentGlobalStylesId:s}=e(_.store),n=s(),i=n?t("root","globalStyles",n):void 0;return{canEditCSS:!!i?._links?.["wp:action-edit-css"]}}),[]),E=t?m.find((e=>e.name===t)):null,P=(0,d.useMemo)((()=>({...r,layout:p.layout})),[r,p.layout]),I=(0,d.useMemo)((()=>({...i,layout:c.layout})),[i,c.layout]);return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(Ei,{title:t?E?.label:f.title}),(0,me.jsx)(Bi,{name:e,variation:t}),C&&(0,me.jsx)("div",{className:"edit-site-global-styles-screen-variations",children:(0,me.jsxs)(x.__experimentalVStack,{spacing:3,children:[(0,me.jsx)(Di,{children:(0,b.__)("Style Variations")}),(0,me.jsx)(ki,{name:e})]})}),v&&(0,me.jsx)(Ji,{inheritedValue:r,value:i,onChange:a,settings:p}),g&&(0,me.jsx)(Qi,{inheritedValue:r,value:i,onChange:a,settings:p}),w&&(0,me.jsx)($i,{inheritedValue:P,value:I,onChange:e=>{const t={...e};delete t.layout,a(t),e.layout!==c.layout&&h({...c,layout:e.layout})},settings:p,includeLayoutControls:!0}),y&&(0,me.jsx)(Xi,{inheritedValue:r,value:i,onChange:e=>{if(!e?.border)return void a(e);const{radius:t,...s}=e.border,n=function(e){return e?(0,x.__experimentalHasSplitBorders)(e)?{top:Li(e.top),right:Li(e.right),bottom:Li(e.bottom),left:Li(e.left)}:Li(e):e}(s),i=(0,x.__experimentalHasSplitBorders)(n)?{color:null,style:null,width:null,...n}:{top:n,right:n,bottom:n,left:n};a({...e,border:{...i,radius:t}})},settings:p}),S&&(0,me.jsx)(er,{inheritedValue:P,value:I,onChange:a,settings:p,includeLayoutControls:!0}),j&&(0,me.jsx)(tr,{onChange:e=>{h(void 0===e?{...u,lightbox:void 0}:{...u,lightbox:{...u.lightbox,...e}})},value:c,inheritedValue:p}),k&&(0,me.jsxs)(x.PanelBody,{title:(0,b.__)("Advanced"),initialOpen:!1,children:[(0,me.jsx)("p",{children:(0,b.sprintf)((0,b.__)("Add your own CSS to customize the appearance of the %s block. You do not need to include a CSS selector, just add the property and value."),f?.title)}),(0,me.jsx)(sr,{value:i,onChange:a,inheritedValue:r})]})]})},{useGlobalStyle:ir}=se(y.privateApis);function rr({parentMenu:e,element:t,label:s}){var n;const i="text"!==t&&t?`elements.${t}.`:"",r="link"===t?{textDecoration:"underline"}:{},[o]=ir(i+"typography.fontFamily"),[a]=ir(i+"typography.fontStyle"),[l]=ir(i+"typography.fontWeight"),[c]=ir(i+"typography.letterSpacing"),[u]=ir(i+"color.background"),[d]=ir("color.background"),[h]=ir(i+"color.gradient"),[p]=ir(i+"color.text"),f=(0,b.sprintf)((0,b.__)("Typography %s styles"),s);return(0,me.jsx)(Wn,{path:e+"/typography/"+t,"aria-label":f,children:(0,me.jsxs)(x.__experimentalHStack,{justify:"flex-start",children:[(0,me.jsx)(x.FlexItem,{className:"edit-site-global-styles-screen-typography__indicator",style:{fontFamily:null!=o?o:"serif",background:null!==(n=null!=h?h:u)&&void 0!==n?n:d,color:p,fontStyle:a,fontWeight:l,letterSpacing:c,...r},children:(0,b.__)("Aa")}),(0,me.jsx)(x.FlexItem,{children:s})]})})}const or=function(){return(0,me.jsxs)(x.__experimentalVStack,{spacing:3,children:[(0,me.jsx)(Di,{level:3,children:(0,b.__)("Elements")}),(0,me.jsxs)(x.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:[(0,me.jsx)(rr,{parentMenu:"",element:"text",label:(0,b.__)("Text")}),(0,me.jsx)(rr,{parentMenu:"",element:"link",label:(0,b.__)("Links")}),(0,me.jsx)(rr,{parentMenu:"",element:"heading",label:(0,b.__)("Headings")}),(0,me.jsx)(rr,{parentMenu:"",element:"caption",label:(0,b.__)("Captions")}),(0,me.jsx)(rr,{parentMenu:"",element:"button",label:(0,b.__)("Buttons")})]})]})},{mergeBaseAndUserConfigs:ar}=se(h.privateApis),{GlobalStylesContext:lr,areGlobalStyleConfigsEqual:cr}=se(y.privateApis);function ur({variation:e,children:t,isPill:s,property:n}){const[i,r]=(0,d.useState)(!1),{base:o,user:a,setUserConfig:l}=(0,d.useContext)(lr),c=(0,d.useMemo)((()=>{let t=ar(o,e);return n&&(t=ae(t,n)),{user:e,base:o,merged:t,setUserConfig:()=>{}}}),[e,o,n]),u=()=>l(e),h=(0,d.useMemo)((()=>cr(a,e)),[a,e]);let p=e?.title;return e?.description&&(p=(0,b.sprintf)((0,b.__)("%1$s (%2$s)"),e?.title,e?.description)),(0,me.jsx)(lr.Provider,{value:c,children:(0,me.jsx)("div",{className:Qt("edit-site-global-styles-variations_item",{"is-active":h}),role:"button",onClick:u,onKeyDown:e=>{e.keyCode===hs.ENTER&&(e.preventDefault(),u())},tabIndex:"0","aria-label":p,"aria-current":h,onFocus:()=>r(!0),onBlur:()=>r(!1),children:(0,me.jsx)("div",{className:Qt("edit-site-global-styles-variations_item-preview",{"is-pill":s}),children:t(i)})})})}function dr({title:e,gap:t=2}){const s=pe();return s?.length<=1?null:(0,me.jsxs)(x.__experimentalVStack,{spacing:3,children:[e&&(0,me.jsx)(Di,{level:3,children:e}),(0,me.jsx)(x.__experimentalGrid,{columns:3,gap:t,className:"edit-site-global-styles-style-variations-container",children:s&&s.length&&s.map(((e,t)=>(0,me.jsx)(ur,{variation:e,property:"typography",children:t=>(0,me.jsx)(mi,{label:e?.title,isFocused:t,children:({ratio:t,key:s})=>(0,me.jsx)(x.__experimentalVStack,{spacing:10*t,justify:"center",style:{height:"100%",overflow:"hidden"},children:(0,me.jsx)(li,{variation:e,fontSize:85*t})},s)})},t)))})]})}const hr=(0,me.jsxs)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,me.jsx)(us.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,me.jsx)(us.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]}),pr=window.wp.apiFetch;var fr=i.n(pr);const mr="/wp/v2/font-families",gr="/wp/v2/font-collections";async function vr(e){const t={path:mr,method:"POST",body:e},s=await fr()(t);return{id:s.id,...s.font_family_settings,fontFace:[]}}async function yr(e,t){const s={path:`${mr}/${e}/font-faces`,method:"POST",body:t},n=await fr()(s);return{id:n.id,...n.font_face_settings}}async function xr(e){const t={path:`${mr}?slug=${e}&_embed=true`,method:"GET"},s=await fr()(t);if(!s||0===s.length)return null;const n=s[0];return{id:n.id,...n.font_family_settings,fontFace:n?._embedded?.font_faces.map((e=>e.font_face_settings))||[]}}async function br(e){const t={path:`${mr}/${e}?force=true`,method:"DELETE"};return await fr()(t)}const wr=["otf","ttf","woff","woff2"],_r={100:(0,b._x)("Thin","font weight"),200:(0,b._x)("Extra-light","font weight"),300:(0,b._x)("Light","font weight"),400:(0,b._x)("Normal","font weight"),500:(0,b._x)("Medium","font weight"),600:(0,b._x)("Semi-bold","font weight"),700:(0,b._x)("Bold","font weight"),800:(0,b._x)("Extra-bold","font weight"),900:(0,b._x)("Black","font weight")},Sr={normal:(0,b._x)("Normal","font style"),italic:(0,b._x)("Italic","font style")},{File:jr}=window,{kebabCase:Cr}=se(x.privateApis);function kr(e,t={}){return e.name||!e.fontFamily&&!e.slug||(e.name=e.fontFamily||e.slug),{...e,...t}}function Er(e){return`${_r[e.fontWeight]||e.fontWeight} ${"normal"===e.fontStyle?"":Sr[e.fontStyle]||e.fontStyle}`}function Pr(e=[],t=[]){const s=new Map;for(const t of e)s.set(`${t.fontWeight}${t.fontStyle}`,t);for(const e of t)s.set(`${e.fontWeight}${e.fontStyle}`,e);return Array.from(s.values())}function Ir(e=[],t=[]){const s=new Map;for(const t of e)s.set(t.slug,{...t});for(const e of t)if(s.has(e.slug)){const{fontFace:t,...n}=e,i=Pr(s.get(e.slug).fontFace,t);s.set(e.slug,{...n,fontFace:i})}else s.set(e.slug,{...e});return Array.from(s.values())}async function Tr(e,t,s="all"){let n;if("string"==typeof t)n=`url(${t})`;else{if(!(t instanceof jr))return;n=await t.arrayBuffer()}const i=new window.FontFace(si(e.fontFamily),n,{style:e.fontStyle,weight:e.fontWeight}),r=await i.load();if("document"!==s&&"all"!==s||document.fonts.add(r),"iframe"===s||"all"===s){document.querySelector('iframe[name="editor-canvas"]').contentDocument.fonts.add(r)}}function Or(e,t="all"){const s=t=>{t.forEach((s=>{s.family===si(e?.fontFamily)&&s.weight===e?.fontWeight&&s.style===e?.fontStyle&&t.delete(s)}))};if("document"!==t&&"all"!==t||s(document.fonts),"iframe"===t||"all"===t){s(document.querySelector('iframe[name="editor-canvas"]').contentDocument.fonts)}}function Ar(e){if(!e)return;let t;var s;return t=Array.isArray(e)?e[0]:e,t.startsWith("file:.")?void 0:(("string"!=typeof(s=t)||s===decodeURIComponent(s))&&(t=encodeURI(t)),t)}function Mr(e){const t=new FormData,{fontFace:s,category:n,...i}=e,r={...i,slug:Cr(e.slug)};return t.append("font_family_settings",JSON.stringify(r)),t}function Nr(e){if(e?.fontFace){const t=e.fontFace.map(((e,t)=>{const s={...e},n=new FormData;if(s.file){const e=Array.isArray(s.file)?s.file:[s.file],i=[];e.forEach(((e,s)=>{const r=`file-${t}-${s}`;n.append(r,e,e.name),i.push(r)})),s.src=1===i.length?i[0]:i,delete s.file,n.append("font_face_settings",JSON.stringify(s))}else n.append("font_face_settings",JSON.stringify(s));return n}));return t}}async function Fr(e,t){const s=[];for(const n of t)try{const t=await yr(e,n);s.push({status:"fulfilled",value:t})}catch(e){s.push({status:"rejected",reason:e})}const n={errors:[],successes:[]};return s.forEach(((e,s)=>{if("fulfilled"===e.status){const i=e.value;i.id?n.successes.push(i):n.errors.push({data:t[s],message:`Error: ${i.message}`})}else n.errors.push({data:t[s],message:e.reason.message})})),n}function Vr(e,t){return-1!==t.findIndex((t=>t.fontWeight===e.fontWeight&&t.fontStyle===e.fontStyle))}function Rr(e,t,s){const n=t=>t.slug===e.slug,i=s.find(n);return t?(i=>{const r=e=>e.fontWeight===t.fontWeight&&e.fontStyle===t.fontStyle;if(!i)return[...s,{...e,fontFace:[t]}];let o=i.fontFace||[];return o=o.find(r)?o.filter((e=>!r(e))):[...o,t],0===o.length?s.filter((e=>!n(e))):s.map((e=>n(e)?{...e,fontFace:o}:e))})(i):(t=>t?s.filter((e=>!n(e))):[...s,e])(i)}const{useGlobalSetting:Br}=se(y.privateApis),Dr=(0,d.createContext)({});const Lr=function({children:e}){const{saveEntityRecord:t}=(0,l.useDispatch)(_.store),{globalStylesId:s}=(0,l.useSelect)((e=>{const{__experimentalGetCurrentGlobalStylesId:t}=e(_.store);return{globalStylesId:t()}})),n=(0,_.useEntityRecord)("root","globalStyles",s),[i,r]=(0,d.useState)(!1),[o,a]=(0,d.useState)(0),[c,u]=(0,d.useState)(null),h=()=>{a(Date.now())},{records:p=[],isResolving:f}=(0,_.useEntityRecords)("postType","wp_font_family",{refreshKey:o,_embed:!0}),m=(p||[]).map((e=>({id:e.id,...e.font_family_settings,fontFace:e?._embedded?.font_faces.map((e=>e.font_face_settings))||[]})))||[],[g,v]=Br("typography.fontFamilies"),y=async e=>{const s=n.record;fe(s,["settings","typography","fontFamilies"],e),await t("root","globalStyles",s)},[x,w]=(0,d.useState)(!1),[S,j]=(0,d.useState)(null),C=g?.theme?g.theme.map((e=>kr(e,{source:"theme"}))).sort(((e,t)=>e.name.localeCompare(t.name))):[],k=g?.custom?g.custom.map((e=>kr(e,{source:"custom"}))).sort(((e,t)=>e.name.localeCompare(t.name))):[],E=m?m.map((e=>kr(e,{source:"custom"}))).sort(((e,t)=>e.name.localeCompare(t.name))):[];(0,d.useEffect)((()=>{x||j(null)}),[x]);const[P]=(0,d.useState)(new Set),I=e=>e.reduce(((e,t)=>{const s=t?.fontFace&&t.fontFace?.length>0?t?.fontFace.map((e=>`${e.fontStyle+e.fontWeight}`)):["normal400"];return e[t.slug]=s,e}),{}),T=e=>I("theme"===e?C:k),O=(e,t,s,n)=>t||s?!!T(n)[e]?.includes(t+s):!!T(n)[e],A=e=>{var t;const s=(null!==(t=g?.[e.source])&&void 0!==t?t:[]).filter((t=>t.slug!==e.slug)),n={...g,[e.source]:s};return v(n),e.fontFace&&e.fontFace.forEach((e=>{Or(e,"all")})),n},M=e=>{const t=N(e),s={...g,custom:Ir(g?.custom,t)};return v(s),F(t),s},N=e=>e.map((({id:e,fontFace:t,...s})=>({...s,...t&&t.length>0?{fontFace:t.map((({id:e,...t})=>t))}:{}}))),F=e=>{e.forEach((e=>{e.fontFace&&e.fontFace.forEach((e=>{Tr(e,Ar(e.src),"all")}))}))},[V,R]=(0,d.useState)([]),B=async()=>{const e=await async function(){const e={path:`${gr}?_fields=slug,name,description`,method:"GET"};return await fr()(e)}();R(e)};return(0,d.useEffect)((()=>{B()}),[]),(0,me.jsx)(Dr.Provider,{value:{libraryFontSelected:S,handleSetLibraryFontSelected:e=>{if(u(null),!e)return void j(null);const t=("theme"===e.source?C:E).find((t=>t.slug===e.slug));j({...t||e,source:e.source})},fontFamilies:g,baseCustomFonts:E,isFontActivated:O,getFontFacesActivated:(e,t)=>T(t)[e]||[],loadFontFaceAsset:async e=>{if(!e.src)return;const t=Ar(e.src);t&&!P.has(t)&&(Tr(e,t,"document"),P.add(t))},installFonts:async function(e){r(!0);try{const t=[];let s=[];for(const n of e){let e=!1,i=await xr(n.slug);i||(e=!0,i=await vr(Mr(n)));const r=i.fontFace&&n.fontFace?i.fontFace.filter((e=>Vr(e,n.fontFace))):[];i.fontFace&&n.fontFace&&(n.fontFace=n.fontFace.filter((e=>!Vr(e,i.fontFace))));let o=[],a=[];if(n?.fontFace?.length>0){const e=await Fr(i.id,Nr(n));o=e?.successes,a=e?.errors}(o?.length>0||r?.length>0)&&(i.fontFace=[...o],t.push(i)),i&&!n?.fontFace?.length&&t.push(i),e&&n?.fontFace?.length>0&&0===o?.length&&await br(i.id),s=s.concat(a)}if(s=s.reduce(((e,t)=>e.includes(t.message)?e:[...e,t.message]),[]),t.length>0){const e=M(t);await y(e),h()}if(s.length>0){const e=new Error((0,b.__)("There was an error installing fonts."));throw e.installationErrors=s,e}}finally{r(!1)}},uninstallFontFamily:async function(e){try{const t=await br(e.id);if(t.deleted){const t=A(e);await y(t)}return h(),t}catch(e){throw console.error("There was an error uninstalling the font family:",e),e}},toggleActivateFont:(e,t)=>{var s;const n=Rr(e,t,null!==(s=g?.[e.source])&&void 0!==s?s:[]);v({...g,[e.source]:n});O(e.slug,t?.fontStyle,t?.fontWeight,e.source)?Tr(t,Ar(t?.src),"all"):Or(t,"all")},getAvailableFontsOutline:I,modalTabOpen:x,setModalTabOpen:w,refreshLibrary:h,notice:c,setNotice:u,saveFontFamilies:y,isResolvingLibrary:f,isInstalling:i,collections:V,getFontCollection:async e=>{try{if(!!V.find((t=>t.slug===e))?.font_families)return;const t=await async function(e){const t={path:`${gr}/${e}`,method:"GET"};return await fr()(t)}(e),s=V.map((s=>s.slug===e?{...s,...t}:s));R(s)}catch(e){throw console.error(e),e}}},children:e})};const zr=function({font:e,text:t}){const s=(0,d.useRef)(null),n=function(e){return e.fontStyle||e.fontWeight?e:e.fontFace&&e.fontFace.length?e.fontFace.find((e=>"normal"===e.fontStyle&&"400"===e.fontWeight))||e.fontFace[0]:{fontStyle:"normal",fontWeight:"400",fontFamily:e.fontFamily,fake:!0}}(e),i=ni(e);t=t||e.name;const r=e.preview,[o,a]=(0,d.useState)(!1),[l,c]=(0,d.useState)(!1),{loadFontFaceAsset:u}=(0,d.useContext)(Dr),h=null!=r?r:function(e){return e.preview?e.preview:e.src?Array.isArray(e.src)?e.src[0]:e.src:void 0}(n),p=h&&h.match(/\.(png|jpg|jpeg|gif|svg)$/i);var f;const m={fontSize:"18px",lineHeight:1,opacity:l?"1":"0",...i,...{fontFamily:ti((f=n).fontFamily),fontStyle:f.fontStyle||"normal",fontWeight:f.fontWeight||"400"}};return(0,d.useEffect)((()=>{const e=new window.IntersectionObserver((([e])=>{a(e.isIntersecting)}),{});return e.observe(s.current),()=>e.disconnect()}),[s]),(0,d.useEffect)((()=>{(async()=>{o&&(!p&&n.src&&await u(n),c(!0))})()}),[n,o,u,p]),(0,me.jsx)("div",{ref:s,children:p?(0,me.jsx)("img",{src:h,loading:"lazy",alt:t,className:"font-library-modal__font-variant_demo-image"}):(0,me.jsx)(x.__experimentalText,{style:m,className:"font-library-modal__font-variant_demo-text",children:t})})};const Gr=function({font:e,onClick:t,variantsText:s,navigatorPath:n}){const i=e.fontFace?.length||1,r={cursor:t?"pointer":"default"},o=(0,x.__experimentalUseNavigator)();return(0,me.jsx)(x.Button,{onClick:()=>{t(),n&&o.goTo(n)},style:r,className:"font-library-modal__font-card",children:(0,me.jsxs)(x.Flex,{justify:"space-between",wrap:!1,children:[(0,me.jsx)(zr,{font:e}),(0,me.jsxs)(x.Flex,{justify:"flex-end",children:[(0,me.jsx)(x.FlexItem,{children:(0,me.jsx)(x.__experimentalText,{className:"font-library-modal__font-card__count",children:s||(0,b.sprintf)((0,b._n)("%d variant","%d variants",i),i)})}),(0,me.jsx)(x.FlexItem,{children:(0,me.jsx)(x.Icon,{icon:Gn})})]})]})})},{kebabCase:Hr}=se(x.privateApis);const Ur=function({face:e,font:t}){const{isFontActivated:s,toggleActivateFont:n}=(0,d.useContext)(Dr),i=t?.fontFace?.length>0?s(t.slug,e.fontStyle,e.fontWeight,t.source):s(t.slug,null,null,t.source),r=()=>{t?.fontFace?.length>0?n(t,e):n(t)},o=t.name+" "+Er(e),a=Hr(`${t.slug}-${Er(e)}`);return(0,me.jsx)("div",{className:"font-library-modal__font-card",children:(0,me.jsxs)(x.Flex,{justify:"flex-start",align:"center",gap:"1rem",children:[(0,me.jsx)(x.CheckboxControl,{checked:i,onChange:r,__nextHasNoMarginBottom:!0,id:a}),(0,me.jsx)("label",{htmlFor:a,children:(0,me.jsx)(zr,{font:e,text:o,onClick:r})})]})})};function Wr(e){switch(e){case"normal":return 400;case"bold":return 700;case"bolder":return 500;case"lighter":return 300;default:return parseInt(e,10)}}function qr(e){return e.sort(((e,t)=>"normal"===e.fontStyle&&"normal"!==t.fontStyle?-1:"normal"===t.fontStyle&&"normal"!==e.fontStyle?1:e.fontStyle===t.fontStyle?Wr(e.fontWeight)-Wr(t.fontWeight):e.fontStyle.localeCompare(t.fontStyle)))}const{useGlobalSetting:Zr}=se(y.privateApis);function Kr({font:e,isOpen:t,setIsOpen:s,setNotice:n,uninstallFontFamily:i,handleSetLibraryFontSelected:r}){const o=(0,x.__experimentalUseNavigator)();return(0,me.jsx)(x.__experimentalConfirmDialog,{isOpen:t,cancelButtonText:(0,b.__)("Cancel"),confirmButtonText:(0,b.__)("Delete"),onCancel:()=>{s(!1)},onConfirm:async()=>{n(null),s(!1);try{await i(e),o.goBack(),r(null),n({type:"success",message:(0,b.__)("Font family uninstalled successfully.")})}catch(e){n({type:"error",message:(0,b.__)("There was an error uninstalling the font family. ")+e.message})}},size:"medium",children:e&&(0,b.sprintf)((0,b.__)('Are you sure you want to delete "%s" font and all its variants and assets?'),e.name)})}const Yr=function(){const{baseCustomFonts:e,libraryFontSelected:t,handleSetLibraryFontSelected:s,refreshLibrary:n,uninstallFontFamily:i,isResolvingLibrary:r,isInstalling:o,saveFontFamilies:a,getFontFacesActivated:c,notice:u,setNotice:h,fontFamilies:p}=(0,d.useContext)(Dr),[f,m]=(0,d.useState)(!1),[g]=Zr("typography.fontFamilies",void 0,"base"),v=(0,l.useSelect)((e=>{const{__experimentalGetCurrentGlobalStylesId:t}=e(_.store);return t()})),y=(0,_.useEntityRecord)("root","globalStyles",v),w=!!y?.edits?.settings?.typography?.fontFamilies,S=p?.theme?p.theme.map((e=>kr(e,{source:"theme"}))).sort(((e,t)=>e.name.localeCompare(t.name))):[],j=new Set(S.map((e=>e.slug))),C=g?.theme?S.concat(g.theme.filter((e=>!j.has(e.slug))).map((e=>kr(e,{source:"theme"}))).sort(((e,t)=>e.name.localeCompare(t.name)))):[],k="custom"===t?.source&&t?.id,E=(0,l.useSelect)((e=>{const{canUser:t}=e(_.store);return k&&t("delete","font-families",k)}),[k]),P=!!t&&"theme"!==t?.source&&E,I=e=>{const t=e?.fontFace?.length>0?e.fontFace.length:1,s=c(e.slug,e.source).length;return(0,b.sprintf)((0,b.__)("%1$s/%2$s variants active"),s,t)};return(0,d.useEffect)((()=>{s(t),n()}),[]),(0,me.jsxs)("div",{className:"font-library-modal__tabpanel-layout",children:[r&&(0,me.jsx)("div",{className:"font-library-modal__loading",children:(0,me.jsx)(x.ProgressBar,{})}),!r&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsxs)(x.__experimentalNavigatorProvider,{initialPath:t?"/fontFamily":"/",children:[(0,me.jsx)(x.__experimentalNavigatorScreen,{path:"/",children:(0,me.jsxs)(x.__experimentalVStack,{spacing:"8",children:[u&&(0,me.jsx)(x.Notice,{status:u.type,onRemove:()=>h(null),children:u.message}),e.length>0&&(0,me.jsxs)(x.__experimentalVStack,{children:[(0,me.jsx)("h2",{className:"font-library-modal__fonts-title",children:(0,b.__)("Installed Fonts")}),(0,me.jsx)("ul",{role:"list",className:"font-library-modal__fonts-list",children:e.map((e=>(0,me.jsx)("li",{className:"font-library-modal__fonts-list-item",children:(0,me.jsx)(Gr,{font:e,navigatorPath:"/fontFamily",variantsText:I(e),onClick:()=>{s(e)}})},e.slug)))})]}),C.length>0&&(0,me.jsxs)(x.__experimentalVStack,{children:[(0,me.jsx)("h2",{className:"font-library-modal__fonts-title",children:(0,b.__)("Theme Fonts")}),(0,me.jsx)("ul",{role:"list",className:"font-library-modal__fonts-list",children:C.map((e=>(0,me.jsx)("li",{className:"font-library-modal__fonts-list-item",children:(0,me.jsx)(Gr,{font:e,navigatorPath:"/fontFamily",variantsText:I(e),onClick:()=>{s(e)}})},e.slug)))})]})]})}),(0,me.jsxs)(x.__experimentalNavigatorScreen,{path:"/fontFamily",children:[(0,me.jsx)(Kr,{font:t,isOpen:f,setIsOpen:m,setNotice:h,uninstallFontFamily:i,handleSetLibraryFontSelected:s}),(0,me.jsxs)(x.Flex,{justify:"flex-start",children:[(0,me.jsx)(x.__experimentalNavigatorToParentButton,{icon:zn,size:"small",onClick:()=>{s(null)},label:(0,b.__)("Back")}),(0,me.jsx)(x.__experimentalHeading,{level:2,size:13,className:"edit-site-global-styles-header",children:t?.name})]}),u&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(x.__experimentalSpacer,{margin:1}),(0,me.jsx)(x.Notice,{status:u.type,onRemove:()=>h(null),children:u.message}),(0,me.jsx)(x.__experimentalSpacer,{margin:1})]}),(0,me.jsx)(x.__experimentalSpacer,{margin:4}),(0,me.jsx)(x.__experimentalText,{children:(0,b.__)("Choose font variants. Keep in mind that too many variants could make your site slower.")}),(0,me.jsx)(x.__experimentalSpacer,{margin:4}),(0,me.jsxs)(x.__experimentalVStack,{spacing:0,children:[(0,me.jsx)(x.__experimentalSpacer,{margin:8}),(e=>e?e.fontFace&&e.fontFace.length?qr(e.fontFace):[{fontFamily:e.fontFamily,fontStyle:"normal",fontWeight:"400"}]:[])(t).map(((e,s)=>(0,me.jsx)(Ur,{font:t,face:e},`face${s}`)))]})]})]}),(0,me.jsxs)(x.__experimentalHStack,{justify:"flex-end",className:"font-library-modal__tabpanel-layout__footer",children:[o&&(0,me.jsx)(x.ProgressBar,{}),P&&(0,me.jsx)(x.Button,{isDestructive:!0,variant:"tertiary",onClick:()=>{m(!0)},children:(0,b.__)("Delete")}),(0,me.jsx)(x.Button,{variant:"primary",onClick:()=>{a(p)},disabled:!w,__experimentalIsFocusable:!0,children:(0,b.__)("Update")})]})]})]})};function Xr(e,t,s){return t?!!s[e]?.[`${t.fontStyle}-${t.fontWeight}`]:!!s[e]}const Jr=function(){return(0,me.jsx)("div",{className:"font-library__google-fonts-confirm",children:(0,me.jsx)(x.Card,{children:(0,me.jsxs)(x.CardBody,{children:[(0,me.jsx)(x.__experimentalHeading,{level:2,children:(0,b.__)("Connect to Google Fonts")}),(0,me.jsx)(x.__experimentalSpacer,{margin:6}),(0,me.jsx)(x.__experimentalText,{as:"p",children:(0,b.__)("To install fonts from Google you must give permission to connect directly to Google servers. The fonts you install will be downloaded from Google and stored on your site. Your site will then use these locally-hosted fonts.")}),(0,me.jsx)(x.__experimentalSpacer,{margin:3}),(0,me.jsx)(x.__experimentalText,{as:"p",children:(0,b.__)("You can alternatively upload files directly on the Upload tab.")}),(0,me.jsx)(x.__experimentalSpacer,{margin:6}),(0,me.jsx)(x.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{window.localStorage.setItem("wp-font-library-google-fonts-permission","true"),window.dispatchEvent(new Event("storage"))},children:(0,b.__)("Allow access to Google Fonts")})]})})})},{kebabCase:Qr}=se(x.privateApis);const $r=function({face:e,font:t,handleToggleVariant:s,selected:n}){const i=()=>{t?.fontFace?s(t,e):s(t)},r=t.name+" "+Er(e),o=Qr(`${t.slug}-${Er(e)}`);return(0,me.jsx)("div",{className:"font-library-modal__font-card",children:(0,me.jsxs)(x.Flex,{justify:"flex-start",align:"center",gap:"1rem",children:[(0,me.jsx)(x.CheckboxControl,{checked:n,onChange:i,__nextHasNoMarginBottom:!0,id:o}),(0,me.jsx)("label",{htmlFor:o,children:(0,me.jsx)(zr,{font:e,text:r,onClick:i})})]})})},eo={slug:"all",name:(0,b._x)("All","font categories")},to="wp-font-library-google-fonts-permission";const so=function({slug:e}){var t;const s="google-fonts"===e,n=()=>"true"===window.localStorage.getItem(to),[i,r]=(0,d.useState)(null),[o,a]=(0,d.useState)([]),[l,c]=(0,d.useState)(1),[u,h]=(0,d.useState)({}),[p,f]=(0,d.useState)(s&&!n()),{collections:m,getFontCollection:g,installFonts:y,isInstalling:w,notice:_,setNotice:S}=(0,d.useContext)(Dr),j=m.find((t=>t.slug===e));(0,d.useEffect)((()=>{const e=()=>{f(s&&!n())};return e(),window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[e,s]);const C=()=>{window.localStorage.setItem(to,"false"),window.dispatchEvent(new Event("storage"))};(0,d.useEffect)((()=>{(async()=>{try{await g(e),B()}catch(e){_||S({type:"error",message:e?.message})}})()}),[e,g,S,_]),(0,d.useEffect)((()=>{r(null),S(null)}),[e,S]),(0,d.useEffect)((()=>{a([])}),[i]);const k=(0,d.useMemo)((()=>{var e;return null!==(e=j?.font_families)&&void 0!==e?e:[]}),[j]),E=null!==(t=j?.categories)&&void 0!==t?t:[],P=[eo,...E],I=(0,d.useMemo)((()=>function(e,t){const{category:s,search:n}=t;let i=e||[];return s&&"all"!==s&&(i=i.filter((e=>-1!==e.categories.indexOf(s)))),n&&(i=i.filter((e=>e.font_family_settings.name.toLowerCase().includes(n.toLowerCase())))),i}(k,u)),[k,u]),T=!j?.font_families&&!_,O=Math.max(window.innerHeight,500),A=Math.floor((O-417)/61),M=Math.ceil(I.length/A),N=(l-1)*A,F=l*A,V=I.slice(N,F),R=(0,v.debounce)((e=>{h({...u,search:e}),c(1)}),300),B=()=>{h({}),c(1)},D=(e,t)=>{const s=Rr(e,t,o);a(s)},L=function(e){return e.reduce(((e,t)=>({...e,[t.slug]:(t?.fontFace||[]).reduce(((e,t)=>({...e,[`${t.fontStyle}-${t.fontWeight}`]:!0})),{})})),{})}(o);if(p)return(0,me.jsx)(Jr,{});const z=()=>"google-fonts"!==e||p||i?null:(0,me.jsx)(x.DropdownMenu,{icon:Ln,label:(0,b.__)("Actions"),popoverProps:{position:"bottom left"},controls:[{title:(0,b.__)("Revoke access to Google Fonts"),onClick:C}]});return(0,me.jsxs)("div",{className:"font-library-modal__tabpanel-layout",children:[T&&(0,me.jsx)("div",{className:"font-library-modal__loading",children:(0,me.jsx)(x.ProgressBar,{})}),!T&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsxs)(x.__experimentalNavigatorProvider,{initialPath:"/",className:"font-library-modal__tabpanel-layout",children:[(0,me.jsxs)(x.__experimentalNavigatorScreen,{path:"/",children:[(0,me.jsxs)(x.__experimentalHStack,{justify:"space-between",children:[(0,me.jsxs)(x.__experimentalVStack,{children:[(0,me.jsx)(x.__experimentalHeading,{level:2,size:13,children:j.name}),(0,me.jsx)(x.__experimentalText,{children:j.description})]}),(0,me.jsx)(z,{})]}),(0,me.jsx)(x.__experimentalSpacer,{margin:4}),(0,me.jsxs)(x.Flex,{children:[(0,me.jsx)(x.FlexItem,{children:(0,me.jsx)(x.SearchControl,{className:"font-library-modal__search",value:u.search,placeholder:(0,b.__)("Font name…"),label:(0,b.__)("Search"),onChange:R,__nextHasNoMarginBottom:!0,hideLabelFromVision:!1})}),(0,me.jsx)(x.FlexItem,{children:(0,me.jsx)(x.SelectControl,{label:(0,b.__)("Category"),value:u.category,onChange:e=>{h({...u,category:e}),c(1)},children:P&&P.map((e=>(0,me.jsx)("option",{value:e.slug,children:e.name},e.slug)))})})]}),(0,me.jsx)(x.__experimentalSpacer,{margin:4}),!!j?.font_families?.length&&!I.length&&(0,me.jsx)(x.__experimentalText,{children:(0,b.__)("No fonts found. Try with a different search term")}),(0,me.jsxs)("div",{className:"font-library-modal__fonts-grid__main",children:[(0,me.jsx)("ul",{role:"list",className:"font-library-modal__fonts-list",children:V.map((e=>(0,me.jsx)("li",{className:"font-library-modal__fonts-list-item",children:(0,me.jsx)(Gr,{font:e.font_family_settings,navigatorPath:"/fontFamily",onClick:()=>{r(e.font_family_settings)}})},e.font_family_settings.slug)))})," "]})]}),(0,me.jsxs)(x.__experimentalNavigatorScreen,{path:"/fontFamily",children:[(0,me.jsxs)(x.Flex,{justify:"flex-start",children:[(0,me.jsx)(x.__experimentalNavigatorToParentButton,{icon:zn,size:"small",onClick:()=>{r(null),S(null)},label:(0,b.__)("Back")}),(0,me.jsx)(x.__experimentalHeading,{level:2,size:13,className:"edit-site-global-styles-header",children:i?.name})]}),_&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(x.__experimentalSpacer,{margin:1}),(0,me.jsx)(x.Notice,{status:_.type,onRemove:()=>S(null),children:_.message}),(0,me.jsx)(x.__experimentalSpacer,{margin:1})]}),(0,me.jsx)(x.__experimentalSpacer,{margin:4}),(0,me.jsx)(x.__experimentalText,{children:(0,b.__)("Select font variants to install.")}),(0,me.jsx)(x.__experimentalSpacer,{margin:4}),(0,me.jsxs)(x.__experimentalVStack,{spacing:0,children:[(0,me.jsx)(x.__experimentalSpacer,{margin:8}),(G=i,G?G.fontFace&&G.fontFace.length?qr(G.fontFace):[{fontFamily:G.fontFamily,fontStyle:"normal",fontWeight:"400"}]:[]).map(((e,t)=>(0,me.jsx)($r,{font:i,face:e,handleToggleVariant:D,selected:Xr(i.slug,i.fontFace?e:null,L)},`face${t}`)))]}),(0,me.jsx)(x.__experimentalSpacer,{margin:16})]})]}),i&&(0,me.jsx)(x.Flex,{justify:"flex-end",className:"font-library-modal__tabpanel-layout__footer",children:(0,me.jsx)(x.Button,{variant:"primary",onClick:async()=>{S(null);const e=o[0];try{e?.fontFace&&await Promise.all(e.fontFace.map((async e=>{e.src&&(e.file=await async function(e){e=Array.isArray(e)?e:[e];const t=await Promise.all(e.map((async e=>fetch(new Request(e)).then((t=>{if(!t.ok)throw new Error(`Error downloading font face asset from ${e}. Server responded with status: ${t.status}`);return t.blob()})).then((t=>{const s=e.split("/").pop();return new jr([t],s,{type:t.type})})))));return 1===t.length?t[0]:t}(e.src))})))}catch(e){return void S({type:"error",message:(0,b.__)("Error installing the fonts, could not be downloaded.")})}try{await y([e]),S({type:"success",message:(0,b.__)("Fonts were installed successfully.")})}catch(e){S({type:"error",message:e.message})}a([])},isBusy:w,disabled:0===o.length||w,__experimentalIsFocusable:!0,children:(0,b.__)("Install")})}),!i&&(0,me.jsxs)(x.Flex,{justify:"center",className:"font-library-modal__tabpanel-layout__footer",children:[(0,me.jsx)(x.Button,{label:(0,b.__)("First page"),size:"compact",onClick:()=>c(1),disabled:1===l,__experimentalIsFocusable:!0,children:(0,me.jsx)("span",{children:"«"})}),(0,me.jsx)(x.Button,{label:(0,b.__)("Previous page"),size:"compact",onClick:()=>c(l-1),disabled:1===l,__experimentalIsFocusable:!0,children:(0,me.jsx)("span",{children:"‹"})}),(0,me.jsx)(x.__experimentalHStack,{justify:"flex-start",expanded:!1,spacing:2,children:(0,d.createInterpolateElement)((0,b.sprintf)((0,b._x)("Page <CurrentPageControl /> of %s","paging"),M),{CurrentPageControl:(0,me.jsx)(x.SelectControl,{"aria-label":(0,b.__)("Current page"),value:l,options:[...Array(M)].map(((e,t)=>({label:t+1,value:t+1}))),onChange:e=>c(parseInt(e)),size:"compact",__nextHasNoMarginBottom:!0})})}),(0,me.jsx)(x.Button,{label:(0,b.__)("Next page"),size:"compact",onClick:()=>c(l+1),disabled:l===M,__experimentalIsFocusable:!0,children:(0,me.jsx)("span",{children:"›"})}),(0,me.jsx)(x.Button,{label:(0,b.__)("Last page"),size:"compact",onClick:()=>c(M),disabled:l===M,__experimentalIsFocusable:!0,children:(0,me.jsx)("span",{children:"»"})})]})]})]});var G};var no=i(8572),io=i.n(no),ro=i(4660),oo=i.n(ro);globalThis.fetch;class ao{constructor(e,t={},s){this.type=e,this.detail=t,this.msg=s,Object.defineProperty(this,"__mayPropagate",{enumerable:!1,writable:!0}),this.__mayPropagate=!0}preventDefault(){}stopPropagation(){this.__mayPropagate=!1}valueOf(){return this}toString(){return this.msg?`[${this.type} event]: ${this.msg}`:`[${this.type} event]`}}class lo{constructor(){this.listeners={}}addEventListener(e,t,s){let n=this.listeners[e]||[];s?n.unshift(t):n.push(t),this.listeners[e]=n}removeEventListener(e,t){let s=this.listeners[e]||[],n=s.findIndex((e=>e===t));n>-1&&(s.splice(n,1),this.listeners[e]=s)}dispatch(e){let t=this.listeners[e.type];if(t)for(let s=0,n=t.length;s<n&&e.__mayPropagate;s++)t[s](e)}}const co=new Date("1904-01-01T00:00:00+0000").getTime();class uo{constructor(e,t,s){this.name=(s||e.tag||"").trim(),this.length=e.length,this.start=e.offset,this.offset=0,this.data=t,["getInt8","getUint8","getInt16","getUint16","getInt32","getUint32","getBigInt64","getBigUint64"].forEach((e=>{let t=e.replace(/get(Big)?/,"").toLowerCase(),s=parseInt(e.replace(/[^\d]/g,""))/8;Object.defineProperty(this,t,{get:()=>this.getValue(e,s)})}))}get currentPosition(){return this.start+this.offset}set currentPosition(e){this.start=e,this.offset=0}skip(e=0,t=8){this.offset+=e*t/8}getValue(e,t){let s=this.start+this.offset;this.offset+=t;try{return this.data[e](s)}catch(s){throw console.error("parser",e,t,this),console.error("parser",this.start,this.offset),s}}flags(e){if(8===e||16===e||32===e||64===e)return this[`uint${e}`].toString(2).padStart(e,0).split("").map((e=>"1"===e));console.error("Error parsing flags: flag types can only be 1, 2, 4, or 8 bytes long"),console.trace()}get tag(){const e=this.uint32;return t=[e>>24&255,e>>16&255,e>>8&255,255&e],Array.from(t).map((e=>String.fromCharCode(e))).join("");var t}get fixed(){return this.int16+Math.round(1e3*this.uint16/65356)/1e3}get legacyFixed(){let e=this.uint16,t=this.uint16.toString(16).padStart(4,0);return parseFloat(`${e}.${t}`)}get uint24(){return(this.uint8<<16)+(this.uint8<<8)+this.uint8}get uint128(){let e=0;for(let t=0;t<5;t++){let t=this.uint8;if(e=128*e+(127&t),t<128)break}return e}get longdatetime(){return new Date(co+1e3*parseInt(this.int64.toString()))}get fword(){return this.int16}get ufword(){return this.uint16}get Offset16(){return this.uint16}get Offset32(){return this.uint32}get F2DOT14(){const e=p.uint16;return[0,1,-2,-1][e>>14]+(16383&e)/16384}verifyLength(){this.offset!=this.length&&console.error(`unexpected parsed table size (${this.offset}) for "${this.name}" (expected ${this.length})`)}readBytes(e=0,t=0,s=8,n=!1){if(0===(e=e||this.length))return[];t&&(this.currentPosition=t);const i=`${n?"":"u"}int${s}`,r=[];for(;e--;)r.push(this[i]);return r}}class ho{constructor(e){const t={enumerable:!1,get:()=>e};Object.defineProperty(this,"parser",t);const s=e.currentPosition,n={enumerable:!1,get:()=>s};Object.defineProperty(this,"start",n)}load(e){Object.keys(e).forEach((t=>{let s=Object.getOwnPropertyDescriptor(e,t);s.get?this[t]=s.get.bind(this):void 0!==s.value&&(this[t]=s.value)})),this.parser.length&&this.parser.verifyLength()}}class po extends ho{constructor(e,t,s){const{parser:n,start:i}=super(new uo(e,t,s)),r={enumerable:!1,get:()=>n};Object.defineProperty(this,"p",r);const o={enumerable:!1,get:()=>i};Object.defineProperty(this,"tableStart",o)}}function fo(e,t,s){let n;Object.defineProperty(e,t,{get:()=>n||(n=s(),n),enumerable:!0})}class mo extends po{constructor(e,t,s){const{p:n}=super({offset:0,length:12},t,"sfnt");this.version=n.uint32,this.numTables=n.uint16,this.searchRange=n.uint16,this.entrySelector=n.uint16,this.rangeShift=n.uint16,n.verifyLength(),this.directory=[...new Array(this.numTables)].map((e=>new go(n))),this.tables={},this.directory.forEach((e=>{fo(this.tables,e.tag.trim(),(()=>s(this.tables,{tag:e.tag,offset:e.offset,length:e.length},t)))}))}}class go{constructor(e){this.tag=e.tag,this.checksum=e.uint32,this.offset=e.uint32,this.length=e.uint32}}const vo=oo().inflate||void 0;let yo;class xo extends po{constructor(e,t,s){const{p:n}=super({offset:0,length:44},t,"woff");this.signature=n.tag,this.flavor=n.uint32,this.length=n.uint32,this.numTables=n.uint16,n.uint16,this.totalSfntSize=n.uint32,this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.metaOffset=n.uint32,this.metaLength=n.uint32,this.metaOrigLength=n.uint32,this.privOffset=n.uint32,this.privLength=n.uint32,n.verifyLength(),this.directory=[...new Array(this.numTables)].map((e=>new bo(n))),wo(this,t,s)}}class bo{constructor(e){this.tag=e.tag,this.offset=e.uint32,this.compLength=e.uint32,this.origLength=e.uint32,this.origChecksum=e.uint32}}function wo(e,t,s){e.tables={},e.directory.forEach((n=>{fo(e.tables,n.tag.trim(),(()=>{let i=0,r=t;if(n.compLength!==n.origLength){const e=t.buffer.slice(n.offset,n.offset+n.compLength);let s;if(vo)s=vo(new Uint8Array(e));else{if(!yo){const e="no brotli decoder available to decode WOFF2 font";throw font.onerror&&font.onerror(e),new Error(e)}s=yo(new Uint8Array(e))}r=new DataView(s.buffer)}else i=n.offset;return s(e.tables,{tag:n.tag,offset:i,length:n.origLength},r)}))}))}const _o=io();let So;class jo extends po{constructor(e,t,s){const{p:n}=super({offset:0,length:48},t,"woff2");this.signature=n.tag,this.flavor=n.uint32,this.length=n.uint32,this.numTables=n.uint16,n.uint16,this.totalSfntSize=n.uint32,this.totalCompressedSize=n.uint32,this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.metaOffset=n.uint32,this.metaLength=n.uint32,this.metaOrigLength=n.uint32,this.privOffset=n.uint32,this.privLength=n.uint32,n.verifyLength(),this.directory=[...new Array(this.numTables)].map((e=>new Co(n)));let i,r=n.currentPosition;this.directory[0].offset=0,this.directory.forEach(((e,t)=>{let s=this.directory[t+1];s&&(s.offset=e.offset+(void 0!==e.transformLength?e.transformLength:e.origLength))}));let o=t.buffer.slice(r);if(_o)i=_o(new Uint8Array(o));else{if(!So){const t="no brotli decoder available to decode WOFF2 font";throw e.onerror&&e.onerror(t),new Error(t)}i=new Uint8Array(So(o))}!function(e,t,s){e.tables={},e.directory.forEach((n=>{fo(e.tables,n.tag.trim(),(()=>{const i=n.offset,r=i+(n.transformLength?n.transformLength:n.origLength),o=new DataView(t.slice(i,r).buffer);try{return s(e.tables,{tag:n.tag,offset:0,length:n.origLength},o)}catch(e){console.error(e)}}))}))}(this,i,s)}}class Co{constructor(e){this.flags=e.uint8;const t=this.tagNumber=63&this.flags;this.tag=63===t?e.tag:["cmap","head","hhea","hmtx","maxp","name","OS/2","post","cvt ","fpgm","glyf","loca","prep","CFF ","VORG","EBDT","EBLC","gasp","hdmx","kern","LTSH","PCLT","VDMX","vhea","vmtx","BASE","GDEF","GPOS","GSUB","EBSC","JSTF","MATH","CBDT","CBLC","COLR","CPAL","SVG ","sbix","acnt","avar","bdat","bloc","bsln","cvar","fdsc","feat","fmtx","fvar","gvar","hsty","just","lcar","mort","morx","opbd","prop","trak","Zapf","Silf","Glat","Gloc","Feat","Sill"][63&t];let s=0!==(this.transformVersion=(192&this.flags)>>6);"glyf"!==this.tag&&"loca"!==this.tag||(s=3!==this.transformVersion),this.origLength=e.uint128,s&&(this.transformLength=e.uint128)}}const ko={};let Eo=!1;function Po(e,t,s){let n=t.tag.replace(/[^\w\d]/g,""),i=ko[n];return i?new i(t,s,e):(console.warn(`lib-font has no definition for ${n}. The table was skipped.`),{})}function Io(){let e=0;function t(s,n){if(!Eo)return e>10?n(new Error("loading took too long")):(e++,setTimeout((()=>t(s)),250));s(Po)}return new Promise(((e,s)=>t(e)))}async function To(e,t,s={}){if(!globalThis.document)return;let n=function(e,t){let s=e.lastIndexOf("."),n=(e.substring(s+1)||"").toLowerCase(),i={ttf:"truetype",otf:"opentype",woff:"woff",woff2:"woff2"}[n];if(i)return i;let r={eot:"The .eot format is not supported: it died in January 12, 2016, when Microsoft retired all versions of IE that didn't already support WOFF.",svg:"The .svg format is not supported: SVG fonts (not to be confused with OpenType with embedded SVG) were so bad we took the entire fonts chapter out of the SVG specification again.",fon:"The .fon format is not supported: this is an ancient Windows bitmap font format.",ttc:"Based on the current CSS specification, font collections are not (yet?) supported."}[n];if(r||(r=`${e} is not a known webfont format.`),t)throw new Error(r);console.warn(`Could not load font: ${r}`)}(t,s.errorOnStyle);if(!n)return;let i=document.createElement("style");i.className="injected-by-Font-js";let r=[];return s.styleRules&&(r=Object.entries(s.styleRules).map((([e,t])=>`${e}: ${t};`))),i.textContent=`\n@font-face {\n font-family: "${e}";\n ${r.join("\n\t")}\n src: url("${t}") format("${n}");\n}`,globalThis.document.head.appendChild(i),i}Promise.all([Promise.resolve().then((function(){return $o})),Promise.resolve().then((function(){return ea})),Promise.resolve().then((function(){return ta})),Promise.resolve().then((function(){return na})),Promise.resolve().then((function(){return ia})),Promise.resolve().then((function(){return aa})),Promise.resolve().then((function(){return la})),Promise.resolve().then((function(){return ua})),Promise.resolve().then((function(){return wa})),Promise.resolve().then((function(){return Ma})),Promise.resolve().then((function(){return Tl})),Promise.resolve().then((function(){return Ol})),Promise.resolve().then((function(){return Nl})),Promise.resolve().then((function(){return Rl})),Promise.resolve().then((function(){return Bl})),Promise.resolve().then((function(){return Dl})),Promise.resolve().then((function(){return zl})),Promise.resolve().then((function(){return Gl})),Promise.resolve().then((function(){return Hl})),Promise.resolve().then((function(){return Ul})),Promise.resolve().then((function(){return Wl})),Promise.resolve().then((function(){return ql})),Promise.resolve().then((function(){return Kl})),Promise.resolve().then((function(){return $l})),Promise.resolve().then((function(){return tc})),Promise.resolve().then((function(){return sc})),Promise.resolve().then((function(){return nc})),Promise.resolve().then((function(){return ic})),Promise.resolve().then((function(){return rc})),Promise.resolve().then((function(){return lc})),Promise.resolve().then((function(){return pc})),Promise.resolve().then((function(){return gc})),Promise.resolve().then((function(){return yc})),Promise.resolve().then((function(){return wc})),Promise.resolve().then((function(){return _c})),Promise.resolve().then((function(){return Sc})),Promise.resolve().then((function(){return Cc})),Promise.resolve().then((function(){return kc})),Promise.resolve().then((function(){return Tc})),Promise.resolve().then((function(){return Oc})),Promise.resolve().then((function(){return Mc}))]).then((e=>{e.forEach((e=>{let t=Object.keys(e)[0];ko[t]=e[t]})),Eo=!0}));const Oo=[0,1,0,0],Ao=[79,84,84,79],Mo=[119,79,70,70],No=[119,79,70,50];function Fo(e,t){if(e.length===t.length){for(let s=0;s<e.length;s++)if(e[s]!==t[s])return;return!0}}class Vo extends lo{constructor(e,t={}){super(),this.name=e,this.options=t,this.metrics=!1}get src(){return this.__src}set src(e){this.__src=e,(async()=>{globalThis.document&&!this.options.skipStyleSheet&&await To(this.name,e,this.options),this.loadFont(e)})()}async loadFont(e,t){fetch(e).then((e=>function(e){if(!e.ok)throw new Error(`HTTP ${e.status} - ${e.statusText}`);return e}(e)&&e.arrayBuffer())).then((s=>this.fromDataBuffer(s,t||e))).catch((s=>{const n=new ao("error",s,`Failed to load font at ${t||e}`);this.dispatch(n),this.onerror&&this.onerror(n)}))}async fromDataBuffer(e,t){this.fontData=new DataView(e);let s=function(e){const t=[e.getUint8(0),e.getUint8(1),e.getUint8(2),e.getUint8(3)];return Fo(t,Oo)||Fo(t,Ao)?"SFNT":Fo(t,Mo)?"WOFF":Fo(t,No)?"WOFF2":void 0}(this.fontData);if(!s)throw new Error(`${t} is either an unsupported font format, or not a font at all.`);await this.parseBasicData(s);const n=new ao("load",{font:this});this.dispatch(n),this.onload&&this.onload(n)}async parseBasicData(e){return Io().then((t=>("SFNT"===e&&(this.opentype=new mo(this,this.fontData,t)),"WOFF"===e&&(this.opentype=new xo(this,this.fontData,t)),"WOFF2"===e&&(this.opentype=new jo(this,this.fontData,t)),this.opentype)))}getGlyphId(e){return this.opentype.tables.cmap.getGlyphId(e)}reverse(e){return this.opentype.tables.cmap.reverse(e)}supports(e){return 0!==this.getGlyphId(e)}supportsVariation(e){return!1!==this.opentype.tables.cmap.supportsVariation(e)}measureText(e,t=16){if(this.__unloaded)throw new Error("Cannot measure text: font was unloaded. Please reload before calling measureText()");let s=document.createElement("div");s.textContent=e,s.style.fontFamily=this.name,s.style.fontSize=`${t}px`,s.style.color="transparent",s.style.background="transparent",s.style.top="0",s.style.left="0",s.style.position="absolute",document.body.appendChild(s);let n=s.getBoundingClientRect();document.body.removeChild(s);const i=this.opentype.tables["OS/2"];return n.fontSize=t,n.ascender=i.sTypoAscender,n.descender=i.sTypoDescender,n}unload(){if(this.styleElement.parentNode){this.styleElement.parentNode.removeElement(this.styleElement);const e=new ao("unload",{font:this});this.dispatch(e),this.onunload&&this.onunload(e)}this._unloaded=!0}load(){if(this.__unloaded){delete this.__unloaded,document.head.appendChild(this.styleElement);const e=new ao("load",{font:this});this.dispatch(e),this.onload&&this.onload(e)}}}globalThis.Font=Vo;class Ro extends ho{constructor(e,t,s){super(e),this.plaformID=t,this.encodingID=s}}class Bo extends Ro{constructor(e,t,s){super(e,t,s),this.format=0,this.length=e.uint16,this.language=e.uint16,this.glyphIdArray=[...new Array(256)].map((t=>e.uint8))}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 0. only supports(id) is implemented.")),0<=e&&e<=255}reverse(e){return console.warn("reverse not implemented for cmap subtable format 0"),{}}getSupportedCharCodes(){return[{start:1,end:256}]}}class Do extends Ro{constructor(e,t,s){super(e,t,s),this.format=2,this.length=e.uint16,this.language=e.uint16,this.subHeaderKeys=[...new Array(256)].map((t=>e.uint16));const n=Math.max(...this.subHeaderKeys),i=e.currentPosition;fo(this,"subHeaders",(()=>(e.currentPosition=i,[...new Array(n)].map((t=>new Lo(e))))));const r=i+8*n;fo(this,"glyphIndexArray",(()=>(e.currentPosition=r,[...new Array(n)].map((t=>e.uint16)))))}supports(e){e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 2. only supports(id) is implemented."));const t=e&&255,s=e&&65280,n=this.subHeaders[s],i=this.subHeaders[n],r=i.firstCode,o=r+i.entryCount;return r<=t&&t<=o}reverse(e){return console.warn("reverse not implemented for cmap subtable format 2"),{}}getSupportedCharCodes(e=!1){return e?this.subHeaders.map((e=>({firstCode:e.firstCode,lastCode:e.lastCode}))):this.subHeaders.map((e=>({start:e.firstCode,end:e.lastCode})))}}class Lo{constructor(e){this.firstCode=e.uint16,this.entryCount=e.uint16,this.lastCode=this.first+this.entryCount,this.idDelta=e.int16,this.idRangeOffset=e.uint16}}class zo extends Ro{constructor(e,t,s){super(e,t,s),this.format=4,this.length=e.uint16,this.language=e.uint16,this.segCountX2=e.uint16,this.segCount=this.segCountX2/2,this.searchRange=e.uint16,this.entrySelector=e.uint16,this.rangeShift=e.uint16;const n=e.currentPosition;fo(this,"endCode",(()=>e.readBytes(this.segCount,n,16)));const i=n+2+this.segCountX2;fo(this,"startCode",(()=>e.readBytes(this.segCount,i,16)));const r=i+this.segCountX2;fo(this,"idDelta",(()=>e.readBytes(this.segCount,r,16,!0)));const o=r+this.segCountX2;fo(this,"idRangeOffset",(()=>e.readBytes(this.segCount,o,16)));const a=o+this.segCountX2,l=this.length-(a-this.tableStart);fo(this,"glyphIdArray",(()=>e.readBytes(l,a,16))),fo(this,"segments",(()=>this.buildSegments(o,a,e)))}buildSegments(e,t,s){return[...new Array(this.segCount)].map(((t,n)=>{let i=this.startCode[n],r=this.endCode[n],o=this.idDelta[n],a=this.idRangeOffset[n],l=e+2*n,c=[];if(0===a)for(let e=i+o,t=r+o;e<=t;e++)c.push(e);else for(let e=0,t=r-i;e<=t;e++)s.currentPosition=l+a+2*e,c.push(s.uint16);return{startCode:i,endCode:r,idDelta:o,idRangeOffset:a,glyphIDs:c}}))}reverse(e){let t=this.segments.find((t=>t.glyphIDs.includes(e)));if(!t)return{};const s=t.startCode+t.glyphIDs.indexOf(e);return{code:s,unicode:String.fromCodePoint(s)}}getGlyphId(e){if(e.charCodeAt&&(e=e.charCodeAt(0)),55296<=e&&e<=57343)return 0;if(65534==(65534&e)||65535==(65535&e))return 0;let t=this.segments.find((t=>t.startCode<=e&&e<=t.endCode));return t?t.glyphIDs[e-t.startCode]:0}supports(e){return 0!==this.getGlyphId(e)}getSupportedCharCodes(e=!1){return e?this.segments:this.segments.map((e=>({start:e.startCode,end:e.endCode})))}}class Go extends Ro{constructor(e,t,s){super(e,t,s),this.format=6,this.length=e.uint16,this.language=e.uint16,this.firstCode=e.uint16,this.entryCount=e.uint16,this.lastCode=this.firstCode+this.entryCount-1;fo(this,"glyphIdArray",(()=>[...new Array(this.entryCount)].map((t=>e.uint16))))}supports(e){if(e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 6. only supports(id) is implemented.")),e<this.firstCode)return{};if(e>this.firstCode+this.entryCount)return{};const t=e-this.firstCode;return{code:t,unicode:String.fromCodePoint(t)}}reverse(e){let t=this.glyphIdArray.indexOf(e);if(t>-1)return this.firstCode+t}getSupportedCharCodes(e=!1){return e?[{firstCode:this.firstCode,lastCode:this.lastCode}]:[{start:this.firstCode,end:this.lastCode}]}}class Ho extends Ro{constructor(e,t,s){super(e,t,s),this.format=8,e.uint16,this.length=e.uint32,this.language=e.uint32,this.is32=[...new Array(8192)].map((t=>e.uint8)),this.numGroups=e.uint32;fo(this,"groups",(()=>[...new Array(this.numGroups)].map((t=>new Uo(e)))))}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 8. only supports(id) is implemented.")),-1!==this.groups.findIndex((t=>t.startcharCode<=e&&e<=t.endcharCode))}reverse(e){return console.warn("reverse not implemented for cmap subtable format 8"),{}}getSupportedCharCodes(e=!1){return e?this.groups:this.groups.map((e=>({start:e.startcharCode,end:e.endcharCode})))}}class Uo{constructor(e){this.startcharCode=e.uint32,this.endcharCode=e.uint32,this.startGlyphID=e.uint32}}class Wo extends Ro{constructor(e,t,s){super(e,t,s),this.format=10,e.uint16,this.length=e.uint32,this.language=e.uint32,this.startCharCode=e.uint32,this.numChars=e.uint32,this.endCharCode=this.startCharCode+this.numChars;fo(this,"glyphs",(()=>[...new Array(this.numChars)].map((t=>e.uint16))))}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 10. only supports(id) is implemented.")),!(e<this.startCharCode)&&(!(e>this.startCharCode+this.numChars)&&e-this.startCharCode)}reverse(e){return console.warn("reverse not implemented for cmap subtable format 10"),{}}getSupportedCharCodes(e=!1){return e?[{startCharCode:this.startCharCode,endCharCode:this.endCharCode}]:[{start:this.startCharCode,end:this.endCharCode}]}}class qo extends Ro{constructor(e,t,s){super(e,t,s),this.format=12,e.uint16,this.length=e.uint32,this.language=e.uint32,this.numGroups=e.uint32;fo(this,"groups",(()=>[...new Array(this.numGroups)].map((t=>new Zo(e)))))}supports(e){return e.charCodeAt&&(e=e.charCodeAt(0)),55296<=e&&e<=57343||65534==(65534&e)||65535==(65535&e)?0:-1!==this.groups.findIndex((t=>t.startCharCode<=e&&e<=t.endCharCode))}reverse(e){for(let t of this.groups){let s=t.startGlyphID;if(s>e)continue;if(s===e)return t.startCharCode;if(s+(t.endCharCode-t.startCharCode)<e)continue;const n=t.startCharCode+(e-s);return{code:n,unicode:String.fromCodePoint(n)}}return{}}getSupportedCharCodes(e=!1){return e?this.groups:this.groups.map((e=>({start:e.startCharCode,end:e.endCharCode})))}}class Zo{constructor(e){this.startCharCode=e.uint32,this.endCharCode=e.uint32,this.startGlyphID=e.uint32}}class Ko extends Ro{constructor(e,t,s){super(e,t,s),this.format=13,e.uint16,this.length=e.uint32,this.language=e.uint32,this.numGroups=e.uint32;fo(this,"groups",[...new Array(this.numGroups)].map((t=>new Yo(e))))}supports(e){return e.charCodeAt&&(e=e.charCodeAt(0)),-1!==this.groups.findIndex((t=>t.startCharCode<=e&&e<=t.endCharCode))}reverse(e){return console.warn("reverse not implemented for cmap subtable format 13"),{}}getSupportedCharCodes(e=!1){return e?this.groups:this.groups.map((e=>({start:e.startCharCode,end:e.endCharCode})))}}class Yo{constructor(e){this.startCharCode=e.uint32,this.endCharCode=e.uint32,this.glyphID=e.uint32}}class Xo extends Ro{constructor(e,t,s){super(e,t,s),this.subTableStart=e.currentPosition,this.format=14,this.length=e.uint32,this.numVarSelectorRecords=e.uint32,fo(this,"varSelectors",(()=>[...new Array(this.numVarSelectorRecords)].map((t=>new Jo(e)))))}supports(){return console.warn("supports not implemented for cmap subtable format 14"),0}getSupportedCharCodes(){return console.warn("getSupportedCharCodes not implemented for cmap subtable format 14"),[]}reverse(e){return console.warn("reverse not implemented for cmap subtable format 14"),{}}supportsVariation(e){let t=this.varSelector.find((t=>t.varSelector===e));return t||!1}getSupportedVariations(){return this.varSelectors.map((e=>e.varSelector))}}class Jo{constructor(e){this.varSelector=e.uint24,this.defaultUVSOffset=e.Offset32,this.nonDefaultUVSOffset=e.Offset32}}class Qo{constructor(e,t){const s=this.platformID=e.uint16,n=this.encodingID=e.uint16,i=this.offset=e.Offset32;fo(this,"table",(()=>(e.currentPosition=t+i,function(e,t,s){const n=e.uint16;return 0===n?new Bo(e,t,s):2===n?new Do(e,t,s):4===n?new zo(e,t,s):6===n?new Go(e,t,s):8===n?new Ho(e,t,s):10===n?new Wo(e,t,s):12===n?new qo(e,t,s):13===n?new Ko(e,t,s):14===n?new Xo(e,t,s):{}}(e,s,n))))}}var $o=Object.freeze({__proto__:null,cmap:class extends po{constructor(e,t){const{p:s}=super(e,t);this.version=s.uint16,this.numTables=s.uint16,this.encodingRecords=[...new Array(this.numTables)].map((e=>new Qo(s,this.tableStart)))}getSubTable(e){return this.encodingRecords[e].table}getSupportedEncodings(){return this.encodingRecords.map((e=>({platformID:e.platformID,encodingId:e.encodingID})))}getSupportedCharCodes(e,t){const s=this.encodingRecords.findIndex((s=>s.platformID===e&&s.encodingID===t));if(-1===s)return!1;return this.getSubTable(s).getSupportedCharCodes()}reverse(e){for(let t=0;t<this.numTables;t++){let s=this.getSubTable(t).reverse(e);if(s)return s}}getGlyphId(e){let t=0;return this.encodingRecords.some(((s,n)=>{let i=this.getSubTable(n);return!!i.getGlyphId&&(t=i.getGlyphId(e),0!==t)})),t}supports(e){return this.encodingRecords.some(((t,s)=>{const n=this.getSubTable(s);return n.supports&&!1!==n.supports(e)}))}supportsVariation(e){return this.encodingRecords.some(((t,s)=>{const n=this.getSubTable(s);return n.supportsVariation&&!1!==n.supportsVariation(e)}))}}});var ea=Object.freeze({__proto__:null,head:class extends po{constructor(e,t){const{p:s}=super(e,t);this.load({majorVersion:s.uint16,minorVersion:s.uint16,fontRevision:s.fixed,checkSumAdjustment:s.uint32,magicNumber:s.uint32,flags:s.flags(16),unitsPerEm:s.uint16,created:s.longdatetime,modified:s.longdatetime,xMin:s.int16,yMin:s.int16,xMax:s.int16,yMax:s.int16,macStyle:s.flags(16),lowestRecPPEM:s.uint16,fontDirectionHint:s.uint16,indexToLocFormat:s.uint16,glyphDataFormat:s.uint16})}}});var ta=Object.freeze({__proto__:null,hhea:class extends po{constructor(e,t){const{p:s}=super(e,t);this.majorVersion=s.uint16,this.minorVersion=s.uint16,this.ascender=s.fword,this.descender=s.fword,this.lineGap=s.fword,this.advanceWidthMax=s.ufword,this.minLeftSideBearing=s.fword,this.minRightSideBearing=s.fword,this.xMaxExtent=s.fword,this.caretSlopeRise=s.int16,this.caretSlopeRun=s.int16,this.caretOffset=s.int16,s.int16,s.int16,s.int16,s.int16,this.metricDataFormat=s.int16,this.numberOfHMetrics=s.uint16,s.verifyLength()}}});class sa{constructor(e,t){this.advanceWidth=e,this.lsb=t}}var na=Object.freeze({__proto__:null,hmtx:class extends po{constructor(e,t,s){const{p:n}=super(e,t),i=s.hhea.numberOfHMetrics,r=s.maxp.numGlyphs,o=n.currentPosition;if(fo(this,"hMetrics",(()=>(n.currentPosition=o,[...new Array(i)].map((e=>new sa(n.uint16,n.int16)))))),i<r){const e=o+4*i;fo(this,"leftSideBearings",(()=>(n.currentPosition=e,[...new Array(r-i)].map((e=>n.int16)))))}}}});var ia=Object.freeze({__proto__:null,maxp:class extends po{constructor(e,t){const{p:s}=super(e,t);this.version=s.legacyFixed,this.numGlyphs=s.uint16,1===this.version&&(this.maxPoints=s.uint16,this.maxContours=s.uint16,this.maxCompositePoints=s.uint16,this.maxCompositeContours=s.uint16,this.maxZones=s.uint16,this.maxTwilightPoints=s.uint16,this.maxStorage=s.uint16,this.maxFunctionDefs=s.uint16,this.maxInstructionDefs=s.uint16,this.maxStackElements=s.uint16,this.maxSizeOfInstructions=s.uint16,this.maxComponentElements=s.uint16,this.maxComponentDepth=s.uint16),s.verifyLength()}}});class ra{constructor(e,t){this.length=e,this.offset=t}}class oa{constructor(e,t){this.platformID=e.uint16,this.encodingID=e.uint16,this.languageID=e.uint16,this.nameID=e.uint16,this.length=e.uint16,this.offset=e.Offset16,fo(this,"string",(()=>(e.currentPosition=t.stringStart+this.offset,function(e,t){const{platformID:s,length:n}=t;if(0===n)return"";if(0===s||3===s){const t=[];for(let s=0,i=n/2;s<i;s++)t[s]=String.fromCharCode(e.uint16);return t.join("")}const i=e.readBytes(n),r=[];return i.forEach((function(e,t){r[t]=String.fromCharCode(e)})),r.join("")}(e,this))))}}var aa=Object.freeze({__proto__:null,name:class extends po{constructor(e,t){const{p:s}=super(e,t);this.format=s.uint16,this.count=s.uint16,this.stringOffset=s.Offset16,this.nameRecords=[...new Array(this.count)].map((e=>new oa(s,this))),1===this.format&&(this.langTagCount=s.uint16,this.langTagRecords=[...new Array(this.langTagCount)].map((e=>new ra(s.uint16,s.Offset16)))),this.stringStart=this.tableStart+this.stringOffset}get(e){let t=this.nameRecords.find((t=>t.nameID===e));if(t)return t.string}}});var la=Object.freeze({__proto__:null,OS2:class extends po{constructor(e,t){const{p:s}=super(e,t);return this.version=s.uint16,this.xAvgCharWidth=s.int16,this.usWeightClass=s.uint16,this.usWidthClass=s.uint16,this.fsType=s.uint16,this.ySubscriptXSize=s.int16,this.ySubscriptYSize=s.int16,this.ySubscriptXOffset=s.int16,this.ySubscriptYOffset=s.int16,this.ySuperscriptXSize=s.int16,this.ySuperscriptYSize=s.int16,this.ySuperscriptXOffset=s.int16,this.ySuperscriptYOffset=s.int16,this.yStrikeoutSize=s.int16,this.yStrikeoutPosition=s.int16,this.sFamilyClass=s.int16,this.panose=[...new Array(10)].map((e=>s.uint8)),this.ulUnicodeRange1=s.flags(32),this.ulUnicodeRange2=s.flags(32),this.ulUnicodeRange3=s.flags(32),this.ulUnicodeRange4=s.flags(32),this.achVendID=s.tag,this.fsSelection=s.uint16,this.usFirstCharIndex=s.uint16,this.usLastCharIndex=s.uint16,this.sTypoAscender=s.int16,this.sTypoDescender=s.int16,this.sTypoLineGap=s.int16,this.usWinAscent=s.uint16,this.usWinDescent=s.uint16,0===this.version?s.verifyLength():(this.ulCodePageRange1=s.flags(32),this.ulCodePageRange2=s.flags(32),1===this.version?s.verifyLength():(this.sxHeight=s.int16,this.sCapHeight=s.int16,this.usDefaultChar=s.uint16,this.usBreakChar=s.uint16,this.usMaxContext=s.uint16,this.version<=4?s.verifyLength():(this.usLowerOpticalPointSize=s.uint16,this.usUpperOpticalPointSize=s.uint16,5===this.version?s.verifyLength():void 0)))}}});const ca=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];var ua=Object.freeze({__proto__:null,post:class extends po{constructor(e,t){const{p:s}=super(e,t);if(this.version=s.legacyFixed,this.italicAngle=s.fixed,this.underlinePosition=s.fword,this.underlineThickness=s.fword,this.isFixedPitch=s.uint32,this.minMemType42=s.uint32,this.maxMemType42=s.uint32,this.minMemType1=s.uint32,this.maxMemType1=s.uint32,1===this.version||3===this.version)return s.verifyLength();if(this.numGlyphs=s.uint16,2===this.version){this.glyphNameIndex=[...new Array(this.numGlyphs)].map((e=>s.uint16)),this.namesOffset=s.currentPosition,this.glyphNameOffsets=[1];for(let e=0;e<this.numGlyphs;e++){if(this.glyphNameIndex[e]<ca.length){this.glyphNameOffsets.push(this.glyphNameOffsets[e]);continue}let t=s.int8;s.skip(t),this.glyphNameOffsets.push(this.glyphNameOffsets[e]+t+1)}}2.5===this.version&&(this.offset=[...new Array(this.numGlyphs)].map((e=>s.int8)))}getGlyphName(e){if(2!==this.version)return console.warn(`post table version ${this.version} does not support glyph name lookups`),"";let t=this.glyphNameIndex[e];if(t<258)return ca[t];let s=this.glyphNameOffsets[e],n=this.glyphNameOffsets[e+1]-s-1;if(0===n)return".notdef.";this.parser.currentPosition=this.namesOffset+s;return this.parser.readBytes(n,this.namesOffset+s,8,!0).map((e=>String.fromCharCode(e))).join("")}}});class da extends po{constructor(e,t){const{p:s}=super(e,t,"AxisTable");this.baseTagListOffset=s.Offset16,this.baseScriptListOffset=s.Offset16,fo(this,"baseTagList",(()=>new ha({offset:e.offset+this.baseTagListOffset},t))),fo(this,"baseScriptList",(()=>new pa({offset:e.offset+this.baseScriptListOffset},t)))}}class ha extends po{constructor(e,t){const{p:s}=super(e,t,"BaseTagListTable");this.baseTagCount=s.uint16,this.baselineTags=[...new Array(this.baseTagCount)].map((e=>s.tag))}}class pa extends po{constructor(e,t){const{p:s}=super(e,t,"BaseScriptListTable");this.baseScriptCount=s.uint16;const n=s.currentPosition;fo(this,"baseScriptRecords",(()=>(s.currentPosition=n,[...new Array(this.baseScriptCount)].map((e=>new fa(this.start,s))))))}}class fa{constructor(e,t){this.baseScriptTag=t.tag,this.baseScriptOffset=t.Offset16,fo(this,"baseScriptTable",(()=>(t.currentPosition=e+this.baseScriptOffset,new ma(t))))}}class ma{constructor(e){this.start=e.currentPosition,this.baseValuesOffset=e.Offset16,this.defaultMinMaxOffset=e.Offset16,this.baseLangSysCount=e.uint16,this.baseLangSysRecords=[...new Array(this.baseLangSysCount)].map((t=>new ga(this.start,e))),fo(this,"baseValues",(()=>(e.currentPosition=this.start+this.baseValuesOffset,new va(e)))),fo(this,"defaultMinMax",(()=>(e.currentPosition=this.start+this.defaultMinMaxOffset,new ya(e))))}}class ga{constructor(e,t){this.baseLangSysTag=t.tag,this.minMaxOffset=t.Offset16,fo(this,"minMax",(()=>(t.currentPosition=e+this.minMaxOffset,new ya(t))))}}class va{constructor(e){this.parser=e,this.start=e.currentPosition,this.defaultBaselineIndex=e.uint16,this.baseCoordCount=e.uint16,this.baseCoords=[...new Array(this.baseCoordCount)].map((t=>e.Offset16))}getTable(e){return this.parser.currentPosition=this.start+this.baseCoords[e],new ba(this.parser)}}class ya{constructor(e){this.minCoord=e.Offset16,this.maxCoord=e.Offset16,this.featMinMaxCount=e.uint16;const t=e.currentPosition;fo(this,"featMinMaxRecords",(()=>(e.currentPosition=t,[...new Array(this.featMinMaxCount)].map((t=>new xa(e))))))}}class xa{constructor(e){this.featureTableTag=e.tag,this.minCoord=e.Offset16,this.maxCoord=e.Offset16}}class ba{constructor(e){this.baseCoordFormat=e.uint16,this.coordinate=e.int16,2===this.baseCoordFormat&&(this.referenceGlyph=e.uint16,this.baseCoordPoint=e.uint16),3===this.baseCoordFormat&&(this.deviceTable=e.Offset16)}}var wa=Object.freeze({__proto__:null,BASE:class extends po{constructor(e,t){const{p:s}=super(e,t);this.majorVersion=s.uint16,this.minorVersion=s.uint16,this.horizAxisOffset=s.Offset16,this.vertAxisOffset=s.Offset16,fo(this,"horizAxis",(()=>new da({offset:e.offset+this.horizAxisOffset},t))),fo(this,"vertAxis",(()=>new da({offset:e.offset+this.vertAxisOffset},t))),1===this.majorVersion&&1===this.minorVersion&&(this.itemVarStoreOffset=s.Offset32,fo(this,"itemVarStore",(()=>new da({offset:e.offset+this.itemVarStoreOffset},t))))}}});class _a{constructor(e){this.classFormat=e.uint16,1===this.classFormat&&(this.startGlyphID=e.uint16,this.glyphCount=e.uint16,this.classValueArray=[...new Array(this.glyphCount)].map((t=>e.uint16))),2===this.classFormat&&(this.classRangeCount=e.uint16,this.classRangeRecords=[...new Array(this.classRangeCount)].map((t=>new Sa(e))))}}class Sa{constructor(e){this.startGlyphID=e.uint16,this.endGlyphID=e.uint16,this.class=e.uint16}}class ja extends ho{constructor(e){super(e),this.coverageFormat=e.uint16,1===this.coverageFormat&&(this.glyphCount=e.uint16,this.glyphArray=[...new Array(this.glyphCount)].map((t=>e.uint16))),2===this.coverageFormat&&(this.rangeCount=e.uint16,this.rangeRecords=[...new Array(this.rangeCount)].map((t=>new Ca(e))))}}class Ca{constructor(e){this.startGlyphID=e.uint16,this.endGlyphID=e.uint16,this.startCoverageIndex=e.uint16}}class ka{constructor(e,t){this.table=e,this.parser=t,this.start=t.currentPosition,this.format=t.uint16,this.variationRegionListOffset=t.Offset32,this.itemVariationDataCount=t.uint16,this.itemVariationDataOffsets=[...new Array(this.itemVariationDataCount)].map((e=>t.Offset32))}}class Ea extends ho{constructor(e){super(e),this.coverageOffset=e.Offset16,this.glyphCount=e.uint16,this.attachPointOffsets=[...new Array(this.glyphCount)].map((t=>e.Offset16))}getPoint(e){return this.parser.currentPosition=this.start+this.attachPointOffsets[e],new Pa(this.parser)}}class Pa{constructor(e){this.pointCount=e.uint16,this.pointIndices=[...new Array(this.pointCount)].map((t=>e.uint16))}}class Ia extends ho{constructor(e){super(e),this.coverageOffset=e.Offset16,fo(this,"coverage",(()=>(e.currentPosition=this.start+this.coverageOffset,new ja(e)))),this.ligGlyphCount=e.uint16,this.ligGlyphOffsets=[...new Array(this.ligGlyphCount)].map((t=>e.Offset16))}getLigGlyph(e){return this.parser.currentPosition=this.start+this.ligGlyphOffsets[e],new Ta(this.parser)}}class Ta extends ho{constructor(e){super(e),this.caretCount=e.uint16,this.caretValueOffsets=[...new Array(this.caretCount)].map((t=>e.Offset16))}getCaretValue(e){return this.parser.currentPosition=this.start+this.caretValueOffsets[e],new Oa(this.parser)}}class Oa{constructor(e){this.caretValueFormat=e.uint16,1===this.caretValueFormat&&(this.coordinate=e.int16),2===this.caretValueFormat&&(this.caretValuePointIndex=e.uint16),3===this.caretValueFormat&&(this.coordinate=e.int16,this.deviceOffset=e.Offset16)}}class Aa extends ho{constructor(e){super(e),this.markGlyphSetTableFormat=e.uint16,this.markGlyphSetCount=e.uint16,this.coverageOffsets=[...new Array(this.markGlyphSetCount)].map((t=>e.Offset32))}getMarkGlyphSet(e){return this.parser.currentPosition=this.start+this.coverageOffsets[e],new ja(this.parser)}}var Ma=Object.freeze({__proto__:null,GDEF:class extends po{constructor(e,t){const{p:s}=super(e,t);this.majorVersion=s.uint16,this.minorVersion=s.uint16,this.glyphClassDefOffset=s.Offset16,fo(this,"glyphClassDefs",(()=>{if(0!==this.glyphClassDefOffset)return s.currentPosition=this.tableStart+this.glyphClassDefOffset,new _a(s)})),this.attachListOffset=s.Offset16,fo(this,"attachList",(()=>{if(0!==this.attachListOffset)return s.currentPosition=this.tableStart+this.attachListOffset,new Ea(s)})),this.ligCaretListOffset=s.Offset16,fo(this,"ligCaretList",(()=>{if(0!==this.ligCaretListOffset)return s.currentPosition=this.tableStart+this.ligCaretListOffset,new Ia(s)})),this.markAttachClassDefOffset=s.Offset16,fo(this,"markAttachClassDef",(()=>{if(0!==this.markAttachClassDefOffset)return s.currentPosition=this.tableStart+this.markAttachClassDefOffset,new _a(s)})),this.minorVersion>=2&&(this.markGlyphSetsDefOffset=s.Offset16,fo(this,"markGlyphSetsDef",(()=>{if(0!==this.markGlyphSetsDefOffset)return s.currentPosition=this.tableStart+this.markGlyphSetsDefOffset,new Aa(s)}))),3===this.minorVersion&&(this.itemVarStoreOffset=s.Offset32,fo(this,"itemVarStore",(()=>{if(0!==this.itemVarStoreOffset)return s.currentPosition=this.tableStart+this.itemVarStoreOffset,new ka(s)})))}}});class Na extends ho{static EMPTY={scriptCount:0,scriptRecords:[]};constructor(e){super(e),this.scriptCount=e.uint16,this.scriptRecords=[...new Array(this.scriptCount)].map((t=>new Fa(e)))}}class Fa{constructor(e){this.scriptTag=e.tag,this.scriptOffset=e.Offset16}}class Va extends ho{constructor(e){super(e),this.defaultLangSys=e.Offset16,this.langSysCount=e.uint16,this.langSysRecords=[...new Array(this.langSysCount)].map((t=>new Ra(e)))}}class Ra{constructor(e){this.langSysTag=e.tag,this.langSysOffset=e.Offset16}}class Ba{constructor(e){this.lookupOrder=e.Offset16,this.requiredFeatureIndex=e.uint16,this.featureIndexCount=e.uint16,this.featureIndices=[...new Array(this.featureIndexCount)].map((t=>e.uint16))}}class Da extends ho{static EMPTY={featureCount:0,featureRecords:[]};constructor(e){super(e),this.featureCount=e.uint16,this.featureRecords=[...new Array(this.featureCount)].map((t=>new La(e)))}}class La{constructor(e){this.featureTag=e.tag,this.featureOffset=e.Offset16}}class za extends ho{constructor(e){super(e),this.featureParams=e.Offset16,this.lookupIndexCount=e.uint16,this.lookupListIndices=[...new Array(this.lookupIndexCount)].map((t=>e.uint16))}getFeatureParams(){if(this.featureParams>0){const e=this.parser;e.currentPosition=this.start+this.featureParams;const t=this.featureTag;if("size"===t)return new Ha(e);if(t.startsWith("cc"))return new Ga(e);if(t.startsWith("ss"))return new Ua(e)}}}class Ga{constructor(e){this.format=e.uint16,this.featUiLabelNameId=e.uint16,this.featUiTooltipTextNameId=e.uint16,this.sampleTextNameId=e.uint16,this.numNamedParameters=e.uint16,this.firstParamUiLabelNameId=e.uint16,this.charCount=e.uint16,this.character=[...new Array(this.charCount)].map((t=>e.uint24))}}class Ha{constructor(e){this.designSize=e.uint16,this.subfamilyIdentifier=e.uint16,this.subfamilyNameID=e.uint16,this.smallEnd=e.uint16,this.largeEnd=e.uint16}}class Ua{constructor(e){this.version=e.uint16,this.UINameID=e.uint16}}function Wa(e){e.parser.currentPosition-=2,delete e.coverageOffset,delete e.getCoverageTable}class qa extends ho{constructor(e){super(e),this.substFormat=e.uint16,this.coverageOffset=e.Offset16}getCoverageTable(){let e=this.parser;return e.currentPosition=this.start+this.coverageOffset,new ja(e)}}class Za{constructor(e){this.glyphSequenceIndex=e.uint16,this.lookupListIndex=e.uint16}}class Ka extends qa{constructor(e){super(e),this.deltaGlyphID=e.int16}}class Ya extends qa{constructor(e){super(e),this.sequenceCount=e.uint16,this.sequenceOffsets=[...new Array(this.sequenceCount)].map((t=>e.Offset16))}getSequence(e){let t=this.parser;return t.currentPosition=this.start+this.sequenceOffsets[e],new Xa(t)}}class Xa{constructor(e){this.glyphCount=e.uint16,this.substituteGlyphIDs=[...new Array(this.glyphCount)].map((t=>e.uint16))}}class Ja extends qa{constructor(e){super(e),this.alternateSetCount=e.uint16,this.alternateSetOffsets=[...new Array(this.alternateSetCount)].map((t=>e.Offset16))}getAlternateSet(e){let t=this.parser;return t.currentPosition=this.start+this.alternateSetOffsets[e],new Qa(t)}}class Qa{constructor(e){this.glyphCount=e.uint16,this.alternateGlyphIDs=[...new Array(this.glyphCount)].map((t=>e.uint16))}}class $a extends qa{constructor(e){super(e),this.ligatureSetCount=e.uint16,this.ligatureSetOffsets=[...new Array(this.ligatureSetCount)].map((t=>e.Offset16))}getLigatureSet(e){let t=this.parser;return t.currentPosition=this.start+this.ligatureSetOffsets[e],new el(t)}}class el extends ho{constructor(e){super(e),this.ligatureCount=e.uint16,this.ligatureOffsets=[...new Array(this.ligatureCount)].map((t=>e.Offset16))}getLigature(e){let t=this.parser;return t.currentPosition=this.start+this.ligatureOffsets[e],new tl(t)}}class tl{constructor(e){this.ligatureGlyph=e.uint16,this.componentCount=e.uint16,this.componentGlyphIDs=[...new Array(this.componentCount-1)].map((t=>e.uint16))}}class sl extends qa{constructor(e){super(e),1===this.substFormat&&(this.subRuleSetCount=e.uint16,this.subRuleSetOffsets=[...new Array(this.subRuleSetCount)].map((t=>e.Offset16))),2===this.substFormat&&(this.classDefOffset=e.Offset16,this.subClassSetCount=e.uint16,this.subClassSetOffsets=[...new Array(this.subClassSetCount)].map((t=>e.Offset16))),3===this.substFormat&&(Wa(this),this.glyphCount=e.uint16,this.substitutionCount=e.uint16,this.coverageOffsets=[...new Array(this.glyphCount)].map((t=>e.Offset16)),this.substLookupRecords=[...new Array(this.substitutionCount)].map((t=>new Za(e))))}getSubRuleSet(e){if(1!==this.substFormat)throw new Error(`lookup type 5.${this.substFormat} has no subrule sets.`);let t=this.parser;return t.currentPosition=this.start+this.subRuleSetOffsets[e],new nl(t)}getSubClassSet(e){if(2!==this.substFormat)throw new Error(`lookup type 5.${this.substFormat} has no subclass sets.`);let t=this.parser;return t.currentPosition=this.start+this.subClassSetOffsets[e],new rl(t)}getCoverageTable(e){if(3!==this.substFormat&&!e)return super.getCoverageTable();if(!e)throw new Error(`lookup type 5.${this.substFormat} requires an coverage table index.`);let t=this.parser;return t.currentPosition=this.start+this.coverageOffsets[e],new ja(t)}}class nl extends ho{constructor(e){super(e),this.subRuleCount=e.uint16,this.subRuleOffsets=[...new Array(this.subRuleCount)].map((t=>e.Offset16))}getSubRule(e){let t=this.parser;return t.currentPosition=this.start+this.subRuleOffsets[e],new il(t)}}class il{constructor(e){this.glyphCount=e.uint16,this.substitutionCount=e.uint16,this.inputSequence=[...new Array(this.glyphCount-1)].map((t=>e.uint16)),this.substLookupRecords=[...new Array(this.substitutionCount)].map((t=>new Za(e)))}}class rl extends ho{constructor(e){super(e),this.subClassRuleCount=e.uint16,this.subClassRuleOffsets=[...new Array(this.subClassRuleCount)].map((t=>e.Offset16))}getSubClass(e){let t=this.parser;return t.currentPosition=this.start+this.subClassRuleOffsets[e],new ol(t)}}class ol extends il{constructor(e){super(e)}}class al extends qa{constructor(e){super(e),1===this.substFormat&&(this.chainSubRuleSetCount=e.uint16,this.chainSubRuleSetOffsets=[...new Array(this.chainSubRuleSetCount)].map((t=>e.Offset16))),2===this.substFormat&&(this.backtrackClassDefOffset=e.Offset16,this.inputClassDefOffset=e.Offset16,this.lookaheadClassDefOffset=e.Offset16,this.chainSubClassSetCount=e.uint16,this.chainSubClassSetOffsets=[...new Array(this.chainSubClassSetCount)].map((t=>e.Offset16))),3===this.substFormat&&(Wa(this),this.backtrackGlyphCount=e.uint16,this.backtrackCoverageOffsets=[...new Array(this.backtrackGlyphCount)].map((t=>e.Offset16)),this.inputGlyphCount=e.uint16,this.inputCoverageOffsets=[...new Array(this.inputGlyphCount)].map((t=>e.Offset16)),this.lookaheadGlyphCount=e.uint16,this.lookaheadCoverageOffsets=[...new Array(this.lookaheadGlyphCount)].map((t=>e.Offset16)),this.seqLookupCount=e.uint16,this.seqLookupRecords=[...new Array(this.substitutionCount)].map((t=>new hl(e))))}getChainSubRuleSet(e){if(1!==this.substFormat)throw new Error(`lookup type 6.${this.substFormat} has no chainsubrule sets.`);let t=this.parser;return t.currentPosition=this.start+this.chainSubRuleSetOffsets[e],new ll(t)}getChainSubClassSet(e){if(2!==this.substFormat)throw new Error(`lookup type 6.${this.substFormat} has no chainsubclass sets.`);let t=this.parser;return t.currentPosition=this.start+this.chainSubClassSetOffsets[e],new ul(t)}getCoverageFromOffset(e){if(3!==this.substFormat)throw new Error(`lookup type 6.${this.substFormat} does not use contextual coverage offsets.`);let t=this.parser;return t.currentPosition=this.start+e,new ja(t)}}class ll extends ho{constructor(e){super(e),this.chainSubRuleCount=e.uint16,this.chainSubRuleOffsets=[...new Array(this.chainSubRuleCount)].map((t=>e.Offset16))}getSubRule(e){let t=this.parser;return t.currentPosition=this.start+this.chainSubRuleOffsets[e],new cl(t)}}class cl{constructor(e){this.backtrackGlyphCount=e.uint16,this.backtrackSequence=[...new Array(this.backtrackGlyphCount)].map((t=>e.uint16)),this.inputGlyphCount=e.uint16,this.inputSequence=[...new Array(this.inputGlyphCount-1)].map((t=>e.uint16)),this.lookaheadGlyphCount=e.uint16,this.lookAheadSequence=[...new Array(this.lookAheadGlyphCount)].map((t=>e.uint16)),this.substitutionCount=e.uint16,this.substLookupRecords=[...new Array(this.SubstCount)].map((t=>new Za(e)))}}class ul extends ho{constructor(e){super(e),this.chainSubClassRuleCount=e.uint16,this.chainSubClassRuleOffsets=[...new Array(this.chainSubClassRuleCount)].map((t=>e.Offset16))}getSubClass(e){let t=this.parser;return t.currentPosition=this.start+this.chainSubRuleOffsets[e],new dl(t)}}class dl{constructor(e){this.backtrackGlyphCount=e.uint16,this.backtrackSequence=[...new Array(this.backtrackGlyphCount)].map((t=>e.uint16)),this.inputGlyphCount=e.uint16,this.inputSequence=[...new Array(this.inputGlyphCount-1)].map((t=>e.uint16)),this.lookaheadGlyphCount=e.uint16,this.lookAheadSequence=[...new Array(this.lookAheadGlyphCount)].map((t=>e.uint16)),this.substitutionCount=e.uint16,this.substLookupRecords=[...new Array(this.substitutionCount)].map((t=>new hl(e)))}}class hl extends ho{constructor(e){super(e),this.sequenceIndex=e.uint16,this.lookupListIndex=e.uint16}}class pl extends ho{constructor(e){super(e),this.substFormat=e.uint16,this.extensionLookupType=e.uint16,this.extensionOffset=e.Offset32}}class fl extends qa{constructor(e){super(e),this.backtrackGlyphCount=e.uint16,this.backtrackCoverageOffsets=[...new Array(this.backtrackGlyphCount)].map((t=>e.Offset16)),this.lookaheadGlyphCount=e.uint16,this.lookaheadCoverageOffsets=[new Array(this.lookaheadGlyphCount)].map((t=>e.Offset16)),this.glyphCount=e.uint16,this.substituteGlyphIDs=[...new Array(this.glyphCount)].map((t=>e.uint16))}}var ml={buildSubtable:function(e,t){const s=new[void 0,Ka,Ya,Ja,$a,sl,al,pl,fl][e](t);return s.type=e,s}};class gl extends ho{constructor(e){super(e)}}class vl extends gl{constructor(e){super(e),console.log("lookup type 1")}}class yl extends gl{constructor(e){super(e),console.log("lookup type 2")}}class xl extends gl{constructor(e){super(e),console.log("lookup type 3")}}class bl extends gl{constructor(e){super(e),console.log("lookup type 4")}}class wl extends gl{constructor(e){super(e),console.log("lookup type 5")}}class _l extends gl{constructor(e){super(e),console.log("lookup type 6")}}class Sl extends gl{constructor(e){super(e),console.log("lookup type 7")}}class jl extends gl{constructor(e){super(e),console.log("lookup type 8")}}class Cl extends gl{constructor(e){super(e),console.log("lookup type 9")}}var kl={buildSubtable:function(e,t){const s=new[void 0,vl,yl,xl,bl,wl,_l,Sl,jl,Cl][e](t);return s.type=e,s}};class El extends ho{static EMPTY={lookupCount:0,lookups:[]};constructor(e){super(e),this.lookupCount=e.uint16,this.lookups=[...new Array(this.lookupCount)].map((t=>e.Offset16))}}class Pl extends ho{constructor(e,t){super(e),this.ctType=t,this.lookupType=e.uint16,this.lookupFlag=e.uint16,this.subTableCount=e.uint16,this.subtableOffsets=[...new Array(this.subTableCount)].map((t=>e.Offset16)),this.markFilteringSet=e.uint16}get rightToLeft(){return!0&this.lookupFlag}get ignoreBaseGlyphs(){return!0&this.lookupFlag}get ignoreLigatures(){return!0&this.lookupFlag}get ignoreMarks(){return!0&this.lookupFlag}get useMarkFilteringSet(){return!0&this.lookupFlag}get markAttachmentType(){return!0&this.lookupFlag}getSubTable(e){const t="GSUB"===this.ctType?ml:kl;return this.parser.currentPosition=this.start+this.subtableOffsets[e],t.buildSubtable(this.lookupType,this.parser)}}class Il extends po{constructor(e,t,s){const{p:n,tableStart:i}=super(e,t,s);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.scriptListOffset=n.Offset16,this.featureListOffset=n.Offset16,this.lookupListOffset=n.Offset16,1===this.majorVersion&&1===this.minorVersion&&(this.featureVariationsOffset=n.Offset32);const r=!(this.scriptListOffset||this.featureListOffset||this.lookupListOffset);fo(this,"scriptList",(()=>r?Na.EMPTY:(n.currentPosition=i+this.scriptListOffset,new Na(n)))),fo(this,"featureList",(()=>r?Da.EMPTY:(n.currentPosition=i+this.featureListOffset,new Da(n)))),fo(this,"lookupList",(()=>r?El.EMPTY:(n.currentPosition=i+this.lookupListOffset,new El(n)))),this.featureVariationsOffset&&fo(this,"featureVariations",(()=>r?FeatureVariations.EMPTY:(n.currentPosition=i+this.featureVariationsOffset,new FeatureVariations(n))))}getSupportedScripts(){return this.scriptList.scriptRecords.map((e=>e.scriptTag))}getScriptTable(e){let t=this.scriptList.scriptRecords.find((t=>t.scriptTag===e));this.parser.currentPosition=this.scriptList.start+t.scriptOffset;let s=new Va(this.parser);return s.scriptTag=e,s}ensureScriptTable(e){return"string"==typeof e?this.getScriptTable(e):e}getSupportedLangSys(e){const t=0!==(e=this.ensureScriptTable(e)).defaultLangSys,s=e.langSysRecords.map((e=>e.langSysTag));return t&&s.unshift("dflt"),s}getDefaultLangSysTable(e){let t=(e=this.ensureScriptTable(e)).defaultLangSys;if(0!==t){this.parser.currentPosition=e.start+t;let s=new Ba(this.parser);return s.langSysTag="",s.defaultForScript=e.scriptTag,s}}getLangSysTable(e,t="dflt"){if("dflt"===t)return this.getDefaultLangSysTable(e);let s=(e=this.ensureScriptTable(e)).langSysRecords.find((e=>e.langSysTag===t));this.parser.currentPosition=e.start+s.langSysOffset;let n=new Ba(this.parser);return n.langSysTag=t,n}getFeatures(e){return e.featureIndices.map((e=>this.getFeature(e)))}getFeature(e){let t;if(t=parseInt(e)==e?this.featureList.featureRecords[e]:this.featureList.featureRecords.find((t=>t.featureTag===e)),!t)return;this.parser.currentPosition=this.featureList.start+t.featureOffset;let s=new za(this.parser);return s.featureTag=t.featureTag,s}getLookups(e){return e.lookupListIndices.map((e=>this.getLookup(e)))}getLookup(e,t){let s=this.lookupList.lookups[e];return this.parser.currentPosition=this.lookupList.start+s,new Pl(this.parser,t)}}var Tl=Object.freeze({__proto__:null,GSUB:class extends Il{constructor(e,t){super(e,t,"GSUB")}getLookup(e){return super.getLookup(e,"GSUB")}}});var Ol=Object.freeze({__proto__:null,GPOS:class extends Il{constructor(e,t){super(e,t,"GPOS")}getLookup(e){return super.getLookup(e,"GPOS")}}});class Al extends ho{constructor(e){super(e),this.numEntries=e.uint16,this.documentRecords=[...new Array(this.numEntries)].map((t=>new Ml(e)))}getDocument(e){let t=this.documentRecords[e];if(!t)return"";let s=this.start+t.svgDocOffset;return this.parser.currentPosition=s,this.parser.readBytes(t.svgDocLength)}getDocumentForGlyph(e){let t=this.documentRecords.findIndex((t=>t.startGlyphID<=e&&e<=t.endGlyphID));return-1===t?"":this.getDocument(t)}}class Ml{constructor(e){this.startGlyphID=e.uint16,this.endGlyphID=e.uint16,this.svgDocOffset=e.Offset32,this.svgDocLength=e.uint32}}var Nl=Object.freeze({__proto__:null,SVG:class extends po{constructor(e,t){const{p:s}=super(e,t);this.version=s.uint16,this.offsetToSVGDocumentList=s.Offset32,s.currentPosition=this.tableStart+this.offsetToSVGDocumentList,this.documentList=new Al(s)}}});class Fl{constructor(e){this.tag=e.tag,this.minValue=e.fixed,this.defaultValue=e.fixed,this.maxValue=e.fixed,this.flags=e.flags(16),this.axisNameID=e.uint16}}class Vl{constructor(e,t,s){let n=e.currentPosition;this.subfamilyNameID=e.uint16,e.uint16,this.coordinates=[...new Array(t)].map((t=>e.fixed)),e.currentPosition-n<s&&(this.postScriptNameID=e.uint16)}}var Rl=Object.freeze({__proto__:null,fvar:class extends po{constructor(e,t){const{p:s}=super(e,t);this.majorVersion=s.uint16,this.minorVersion=s.uint16,this.axesArrayOffset=s.Offset16,s.uint16,this.axisCount=s.uint16,this.axisSize=s.uint16,this.instanceCount=s.uint16,this.instanceSize=s.uint16;const n=this.tableStart+this.axesArrayOffset;fo(this,"axes",(()=>(s.currentPosition=n,[...new Array(this.axisCount)].map((e=>new Fl(s))))));const i=n+this.axisCount*this.axisSize;fo(this,"instances",(()=>{let e=[];for(let t=0;t<this.instanceCount;t++)s.currentPosition=i+t*this.instanceSize,e.push(new Vl(s,this.axisCount,this.instanceSize));return e}))}getSupportedAxes(){return this.axes.map((e=>e.tag))}getAxis(e){return this.axes.find((t=>t.tag===e))}}});var Bl=Object.freeze({__proto__:null,cvt:class extends po{constructor(e,t){const{p:s}=super(e,t),n=e.length/2;fo(this,"items",(()=>[...new Array(n)].map((e=>s.fword))))}}});var Dl=Object.freeze({__proto__:null,fpgm:class extends po{constructor(e,t){const{p:s}=super(e,t);fo(this,"instructions",(()=>[...new Array(e.length)].map((e=>s.uint8))))}}});class Ll{constructor(e){this.rangeMaxPPEM=e.uint16,this.rangeGaspBehavior=e.uint16}}var zl=Object.freeze({__proto__:null,gasp:class extends po{constructor(e,t){const{p:s}=super(e,t);this.version=s.uint16,this.numRanges=s.uint16;fo(this,"gaspRanges",(()=>[...new Array(this.numRanges)].map((e=>new Ll(s)))))}}});var Gl=Object.freeze({__proto__:null,glyf:class extends po{constructor(e,t){super(e,t)}getGlyphData(e,t){return this.parser.currentPosition=this.tableStart+e,this.parser.readBytes(t)}}});var Hl=Object.freeze({__proto__:null,loca:class extends po{constructor(e,t,s){const{p:n}=super(e,t),i=s.maxp.numGlyphs+1;0===s.head.indexToLocFormat?(this.x2=!0,fo(this,"offsets",(()=>[...new Array(i)].map((e=>n.Offset16))))):fo(this,"offsets",(()=>[...new Array(i)].map((e=>n.Offset32))))}getGlyphDataOffsetAndLength(e){let t=this.offsets[e]*this.x2?2:1;return{offset:t,length:(this.offsets[e+1]*this.x2?2:1)-t}}}});var Ul=Object.freeze({__proto__:null,prep:class extends po{constructor(e,t){const{p:s}=super(e,t);fo(this,"instructions",(()=>[...new Array(e.length)].map((e=>s.uint8))))}}});var Wl=Object.freeze({__proto__:null,CFF:class extends po{constructor(e,t){const{p:s}=super(e,t);fo(this,"data",(()=>s.readBytes()))}}});var ql=Object.freeze({__proto__:null,CFF2:class extends po{constructor(e,t){const{p:s}=super(e,t);fo(this,"data",(()=>s.readBytes()))}}});class Zl{constructor(e){this.glyphIndex=e.uint16,this.vertOriginY=e.int16}}var Kl=Object.freeze({__proto__:null,VORG:class extends po{constructor(e,t){const{p:s}=super(e,t);this.majorVersion=s.uint16,this.minorVersion=s.uint16,this.defaultVertOriginY=s.int16,this.numVertOriginYMetrics=s.uint16,fo(this,"vertORiginYMetrics",(()=>[...new Array(this.numVertOriginYMetrics)].map((e=>new Zl(s)))))}}});class Yl{constructor(e){this.indexSubTableArrayOffset=e.Offset32,this.indexTablesSize=e.uint32,this.numberofIndexSubTables=e.uint32,this.colorRef=e.uint32,this.hori=new Jl(e),this.vert=new Jl(e),this.startGlyphIndex=e.uint16,this.endGlyphIndex=e.uint16,this.ppemX=e.uint8,this.ppemY=e.uint8,this.bitDepth=e.uint8,this.flags=e.int8}}class Xl{constructor(e){this.hori=new Jl(e),this.vert=new Jl(e),this.ppemX=e.uint8,this.ppemY=e.uint8,this.substitutePpemX=e.uint8,this.substitutePpemY=e.uint8}}class Jl{constructor(e){this.ascender=e.int8,this.descender=e.int8,this.widthMax=e.uint8,this.caretSlopeNumerator=e.int8,this.caretSlopeDenominator=e.int8,this.caretOffset=e.int8,this.minOriginSB=e.int8,this.minAdvanceSB=e.int8,this.maxBeforeBL=e.int8,this.minAfterBL=e.int8,this.pad1=e.int8,this.pad2=e.int8}}class Ql extends po{constructor(e,t,s){const{p:n}=super(e,t,s);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.numSizes=n.uint32,fo(this,"bitMapSizes",(()=>[...new Array(this.numSizes)].map((e=>new Yl(n)))))}}var $l=Object.freeze({__proto__:null,EBLC:Ql});class ec extends po{constructor(e,t,s){const{p:n}=super(e,t,s);this.majorVersion=n.uint16,this.minorVersion=n.uint16}}var tc=Object.freeze({__proto__:null,EBDT:ec});var sc=Object.freeze({__proto__:null,EBSC:class extends po{constructor(e,t){const{p:s}=super(e,t);this.majorVersion=s.uint16,this.minorVersion=s.uint16,this.numSizes=s.uint32,fo(this,"bitmapScales",(()=>[...new Array(this.numSizes)].map((e=>new Xl(s)))))}}});var nc=Object.freeze({__proto__:null,CBLC:class extends Ql{constructor(e,t){super(e,t,"CBLC")}}});var ic=Object.freeze({__proto__:null,CBDT:class extends ec{constructor(e,t){super(e,t,"CBDT")}}});var rc=Object.freeze({__proto__:null,sbix:class extends po{constructor(e,t){const{p:s}=super(e,t);this.version=s.uint16,this.flags=s.flags(16),this.numStrikes=s.uint32,fo(this,"strikeOffsets",(()=>[...new Array(this.numStrikes)].map((e=>s.Offset32))))}}});class oc{constructor(e){this.gID=e.uint16,this.firstLayerIndex=e.uint16,this.numLayers=e.uint16}}class ac{constructor(e){this.gID=e.uint16,this.paletteIndex=e.uint16}}var lc=Object.freeze({__proto__:null,COLR:class extends po{constructor(e,t){const{p:s}=super(e,t);this.version=s.uint16,this.numBaseGlyphRecords=s.uint16,this.baseGlyphRecordsOffset=s.Offset32,this.layerRecordsOffset=s.Offset32,this.numLayerRecords=s.uint16}getBaseGlyphRecord(e){let t=this.tableStart+this.baseGlyphRecordsOffset;this.parser.currentPosition=t;let s=new oc(this.parser),n=s.gID,i=this.tableStart+this.layerRecordsOffset-6;this.parser.currentPosition=i;let r=new oc(this.parser),o=r.gID;if(n===e)return s;if(o===e)return r;for(;t!==i;){let s=t+(i-t)/12;this.parser.currentPosition=s;let n=new oc(this.parser),r=n.gID;if(r===e)return n;r>e?i=s:r<e&&(t=s)}return!1}getLayers(e){let t=this.getBaseGlyphRecord(e);return this.parser.currentPosition=this.tableStart+this.layerRecordsOffset+4*t.firstLayerIndex,[...new Array(t.numLayers)].map((e=>new ac(p)))}}});class cc{constructor(e){this.blue=e.uint8,this.green=e.uint8,this.red=e.uint8,this.alpha=e.uint8}}class uc{constructor(e,t){this.paletteTypes=[...new Array(t)].map((t=>e.uint32))}}class dc{constructor(e,t){this.paletteLabels=[...new Array(t)].map((t=>e.uint16))}}class hc{constructor(e,t){this.paletteEntryLabels=[...new Array(t)].map((t=>e.uint16))}}var pc=Object.freeze({__proto__:null,CPAL:class extends po{constructor(e,t){const{p:s}=super(e,t);this.version=s.uint16,this.numPaletteEntries=s.uint16;const n=this.numPalettes=s.uint16;this.numColorRecords=s.uint16,this.offsetFirstColorRecord=s.Offset32,this.colorRecordIndices=[...new Array(this.numPalettes)].map((e=>s.uint16)),fo(this,"colorRecords",(()=>(s.currentPosition=this.tableStart+this.offsetFirstColorRecord,[...new Array(this.numColorRecords)].map((e=>new cc(s)))))),1===this.version&&(this.offsetPaletteTypeArray=s.Offset32,this.offsetPaletteLabelArray=s.Offset32,this.offsetPaletteEntryLabelArray=s.Offset32,fo(this,"paletteTypeArray",(()=>(s.currentPosition=this.tableStart+this.offsetPaletteTypeArray,new uc(s,n)))),fo(this,"paletteLabelArray",(()=>(s.currentPosition=this.tableStart+this.offsetPaletteLabelArray,new dc(s,n)))),fo(this,"paletteEntryLabelArray",(()=>(s.currentPosition=this.tableStart+this.offsetPaletteEntryLabelArray,new hc(s,n)))))}}});class fc{constructor(e){this.format=e.uint32,this.length=e.uint32,this.offset=e.Offset32}}class mc{constructor(e){e.uint16,e.uint16,this.signatureLength=e.uint32,this.signature=e.readBytes(this.signatureLength)}}var gc=Object.freeze({__proto__:null,DSIG:class extends po{constructor(e,t){const{p:s}=super(e,t);this.version=s.uint32,this.numSignatures=s.uint16,this.flags=s.uint16,this.signatureRecords=[...new Array(this.numSignatures)].map((e=>new fc(s)))}getData(e){const t=this.signatureRecords[e];return this.parser.currentPosition=this.tableStart+t.offset,new mc(this.parser)}}});class vc{constructor(e,t){this.pixelSize=e.uint8,this.maxWidth=e.uint8,this.widths=e.readBytes(t)}}var yc=Object.freeze({__proto__:null,hdmx:class extends po{constructor(e,t,s){const{p:n}=super(e,t),i=s.hmtx.numGlyphs;this.version=n.uint16,this.numRecords=n.int16,this.sizeDeviceRecord=n.int32,this.records=[...new Array(numRecords)].map((e=>new vc(n,i)))}}});class xc{constructor(e){this.version=e.uint16,this.length=e.uint16,this.coverage=e.flags(8),this.format=e.uint8,0===this.format&&(this.nPairs=e.uint16,this.searchRange=e.uint16,this.entrySelector=e.uint16,this.rangeShift=e.uint16,fo(this,"pairs",(()=>[...new Array(this.nPairs)].map((t=>new bc(e)))))),2===this.format&&console.warn("Kern subtable format 2 is not supported: this parser currently only parses universal table data.")}get horizontal(){return this.coverage[0]}get minimum(){return this.coverage[1]}get crossstream(){return this.coverage[2]}get override(){return this.coverage[3]}}class bc{constructor(e){this.left=e.uint16,this.right=e.uint16,this.value=e.fword}}var wc=Object.freeze({__proto__:null,kern:class extends po{constructor(e,t){const{p:s}=super(e,t);this.version=s.uint16,this.nTables=s.uint16,fo(this,"tables",(()=>{let e=this.tableStart+4;const t=[];for(let n=0;n<this.nTables;n++){s.currentPosition=e;let n=new xc(s);t.push(n),e+=n}return t}))}}});var _c=Object.freeze({__proto__:null,LTSH:class extends po{constructor(e,t){const{p:s}=super(e,t);this.version=s.uint16,this.numGlyphs=s.uint16,this.yPels=s.readBytes(this.numGlyphs)}}});var Sc=Object.freeze({__proto__:null,MERG:class extends po{constructor(e,t){const{p:s}=super(e,t);this.version=s.uint16,this.mergeClassCount=s.uint16,this.mergeDataOffset=s.Offset16,this.classDefCount=s.uint16,this.offsetToClassDefOffsets=s.Offset16,fo(this,"mergeEntryMatrix",(()=>[...new Array(this.mergeClassCount)].map((e=>s.readBytes(this.mergeClassCount))))),console.warn("Full MERG parsing is currently not supported."),console.warn("If you need this table parsed, please file an issue, or better yet, a PR.")}}});class jc{constructor(e,t){this.tableStart=e,this.parser=t,this.tag=t.tag,this.dataOffset=t.Offset32,this.dataLength=t.uint32}getData(){return this.parser.currentField=this.tableStart+this.dataOffset,this.parser.readBytes(this.dataLength)}}var Cc=Object.freeze({__proto__:null,meta:class extends po{constructor(e,t){const{p:s}=super(e,t);this.version=s.uint32,this.flags=s.uint32,s.uint32,this.dataMapsCount=s.uint32,this.dataMaps=[...new Array(this.dataMapsCount)].map((e=>new jc(this.tableStart,s)))}}});var kc=Object.freeze({__proto__:null,PCLT:class extends po{constructor(e,t){super(e,t),console.warn("This font uses a PCLT table, which is currently not supported by this parser."),console.warn("If you need this table parsed, please file an issue, or better yet, a PR.")}}});class Ec{constructor(e){this.bCharSet=e.uint8,this.xRatio=e.uint8,this.yStartRatio=e.uint8,this.yEndRatio=e.uint8}}class Pc{constructor(e){this.recs=e.uint16,this.startsz=e.uint8,this.endsz=e.uint8,this.records=[...new Array(this.recs)].map((t=>new Ic(e)))}}class Ic{constructor(e){this.yPelHeight=e.uint16,this.yMax=e.int16,this.yMin=e.int16}}var Tc=Object.freeze({__proto__:null,VDMX:class extends po{constructor(e,t){const{p:s}=super(e,t);this.version=s.uint16,this.numRecs=s.uint16,this.numRatios=s.uint16,this.ratRanges=[...new Array(this.numRatios)].map((e=>new Ec(s))),this.offsets=[...new Array(this.numRatios)].map((e=>s.Offset16)),this.VDMXGroups=[...new Array(this.numRecs)].map((e=>new Pc(s)))}}});var Oc=Object.freeze({__proto__:null,vhea:class extends po{constructor(e,t){const{p:s}=super(e,t);this.version=s.fixed,this.ascent=this.vertTypoAscender=s.int16,this.descent=this.vertTypoDescender=s.int16,this.lineGap=this.vertTypoLineGap=s.int16,this.advanceHeightMax=s.int16,this.minTopSideBearing=s.int16,this.minBottomSideBearing=s.int16,this.yMaxExtent=s.int16,this.caretSlopeRise=s.int16,this.caretSlopeRun=s.int16,this.caretOffset=s.int16,this.reserved=s.int16,this.reserved=s.int16,this.reserved=s.int16,this.reserved=s.int16,this.metricDataFormat=s.int16,this.numOfLongVerMetrics=s.uint16,s.verifyLength()}}});class Ac{constructor(e,t){this.advanceHeight=e,this.topSideBearing=t}}var Mc=Object.freeze({__proto__:null,vmtx:class extends po{constructor(e,t,s){super(e,t);const n=s.vhea.numOfLongVerMetrics,i=s.maxp.numGlyphs,r=p.currentPosition;if(lazy(this,"vMetrics",(()=>(p.currentPosition=r,[...new Array(n)].map((e=>new Ac(p.uint16,p.int16)))))),n<i){const e=r+4*n;lazy(this,"topSideBearings",(()=>(p.currentPosition=e,[...new Array(i-n)].map((e=>p.int16)))))}}}});const{kebabCase:Nc}=se(x.privateApis);const Fc=function(){const{installFonts:e,notice:t,setNotice:s}=(0,d.useContext)(Dr),[n,i]=(0,d.useState)(!1),r=async e=>{s(null),i(!0);const t=new Set,n=[...e];let r=!1;const l=n.map((async e=>{const s=await async function(e){const t=new Vo("Uploaded Font");try{const s=await a(e);return await t.fromDataBuffer(s,"font"),!0}catch(e){return!1}}(e);if(!s)return r=!0,null;if(t.has(e.name))return null;const n=e.name.split(".").pop().toLowerCase();return wr.includes(n)?(t.add(e.name),e):null})),c=(await Promise.all(l)).filter((e=>null!==e));if(c.length>0)o(c);else{const e=r?(0,b.__)("Sorry, you are not allowed to upload this file type."):(0,b.__)("No fonts found to install.");s({type:"error",message:e}),i(!1)}},o=async e=>{const t=await Promise.all(e.map((async e=>{const t=await l(e);return await Tr(t,t.file,"all"),t})));c(t)};async function a(e){return new Promise(((t,s)=>{const n=new window.FileReader;n.readAsArrayBuffer(e),n.onload=()=>t(n.result),n.onerror=s}))}const l=async e=>{const t=await a(e),s=new Vo("Uploaded Font");s.fromDataBuffer(t,e.name);const n=(await new Promise((e=>s.onload=e))).detail.font,{name:i}=n.opentype.tables,r=i.get(16)||i.get(1),o=i.get(2).toLowerCase().includes("italic"),l=n.opentype.tables["OS/2"].usWeightClass||"normal",c=!!n.opentype.tables.fvar&&n.opentype.tables.fvar.axes.find((({tag:e})=>"wght"===e));return{file:e,fontFamily:r,fontStyle:o?"italic":"normal",fontWeight:(c?`${c.minValue} ${c.maxValue}`:null)||l}},c=async t=>{const n=function(e){const t=e.reduce(((e,t)=>(e[t.fontFamily]||(e[t.fontFamily]={name:t.fontFamily,fontFamily:t.fontFamily,slug:Nc(t.fontFamily.toLowerCase()),fontFace:[]}),e[t.fontFamily].fontFace.push(t),e)),{});return Object.values(t)}(t);try{await e(n),s({type:"success",message:(0,b.__)("Fonts were installed successfully.")})}catch(e){s({type:"error",message:e.message,errors:e?.installationErrors})}i(!1)};return(0,me.jsxs)("div",{className:"font-library-modal__tabpanel-layout",children:[(0,me.jsx)(x.DropZone,{onFilesDrop:e=>{r(e)}}),(0,me.jsxs)(x.__experimentalVStack,{className:"font-library-modal__local-fonts",children:[t&&(0,me.jsxs)(x.Notice,{status:t.type,__unstableHTML:!0,onRemove:()=>s(null),children:[t.message,t.errors&&(0,me.jsx)("ul",{children:t.errors.map(((e,t)=>(0,me.jsx)("li",{children:e},t)))})]}),n&&(0,me.jsx)(x.FlexItem,{children:(0,me.jsx)("div",{className:"font-library-modal__upload-area",children:(0,me.jsx)(x.ProgressBar,{})})}),!n&&(0,me.jsx)(x.FormFileUpload,{accept:wr.map((e=>`.${e}`)).join(","),multiple:!0,onChange:e=>{r(e.target.files)},render:({openFileDialog:e})=>(0,me.jsx)(x.Button,{className:"font-library-modal__upload-area",onClick:e,children:(0,b.__)("Upload font")})}),(0,me.jsx)(x.__experimentalSpacer,{margin:2}),(0,me.jsx)(x.__experimentalText,{className:"font-library-modal__upload-area__text",children:(0,b.__)("Uploaded fonts appear in your library and can be used in your theme. Supported formats: .ttf, .otf, .woff, and .woff2.")})]})]})},{Tabs:Vc}=se(x.privateApis),Rc={id:"installed-fonts",title:(0,b._x)("Library","Font library")},Bc={id:"upload-fonts",title:(0,b.__)("Upload")};const Dc=function({onRequestClose:e,defaultTabId:t="installed-fonts"}){const{collections:s,setNotice:n}=(0,d.useContext)(Dr),i=(0,l.useSelect)((e=>{const{canUser:t}=e(_.store);return t("create","font-families")}),[]),r=[Rc];return i&&(r.push(Bc),r.push(...(e=>e.map((({slug:t,name:s})=>({id:t,title:1===e.length&&"google-fonts"===t?(0,b.__)("Install Fonts"):s}))))(s||[]))),(0,me.jsx)(x.Modal,{title:(0,b.__)("Fonts"),onRequestClose:e,isFullScreen:!0,className:"font-library-modal",children:(0,me.jsx)("div",{className:"font-library-modal__tabs",children:(0,me.jsxs)(Vc,{defaultTabId:t,onSelect:()=>{n(null)},children:[(0,me.jsx)(Vc.TabList,{children:r.map((({id:e,title:t})=>(0,me.jsx)(Vc.Tab,{tabId:e,children:t},e)))}),r.map((({id:e})=>{let t;switch(e){case"upload-fonts":t=(0,me.jsx)(Fc,{});break;case"installed-fonts":t=(0,me.jsx)(Yr,{});break;default:t=(0,me.jsx)(so,{slug:e})}return(0,me.jsx)(Vc.TabPanel,{tabId:e,focusable:!1,children:t},e)}))]})})})};const Lc=function({font:e}){const{handleSetLibraryFontSelected:t,setModalTabOpen:s}=(0,d.useContext)(Dr),n=e?.fontFace?.length||1,i=ni(e);return(0,me.jsx)(x.__experimentalItem,{onClick:()=>{t(e),s("installed-fonts")},children:(0,me.jsxs)(x.__experimentalHStack,{justify:"space-between",children:[(0,me.jsx)(x.FlexItem,{style:i,children:e.name}),(0,me.jsx)(x.FlexItem,{className:"edit-site-global-styles-screen-typography__font-variants-count",children:(0,b.sprintf)((0,b._n)("%d variant","%d variants",n),n)})]})})},{useGlobalSetting:zc}=se(y.privateApis);function Gc(){const{modalTabOpen:e,setModalTabOpen:t}=(0,d.useContext)(Dr),[s]=zc("typography.fontFamilies"),n=s?.theme?s.theme.map((e=>kr(e,{source:"theme"}))).sort(((e,t)=>e.name.localeCompare(t.name))):[],i=s?.custom?s.custom.map((e=>kr(e,{source:"custom"}))).sort(((e,t)=>e.name.localeCompare(t.name))):[],r=0<i.length||0<n.length;return(0,me.jsxs)(me.Fragment,{children:[!!e&&(0,me.jsx)(Dc,{onRequestClose:()=>t(null),defaultTabId:e}),(0,me.jsxs)(x.__experimentalVStack,{spacing:2,children:[(0,me.jsxs)(x.__experimentalHStack,{justify:"space-between",children:[(0,me.jsx)(Di,{level:3,children:(0,b.__)("Fonts")}),(0,me.jsx)(x.Button,{onClick:()=>t("installed-fonts"),label:(0,b.__)("Manage fonts"),icon:hr,size:"small"})]}),r?(0,me.jsxs)(x.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:[i.map((e=>(0,me.jsx)(Lc,{font:e},e.slug))),n.map((e=>(0,me.jsx)(Lc,{font:e},e.slug)))]}):(0,me.jsxs)(me.Fragment,{children:[(0,b.__)("No fonts installed."),(0,me.jsx)(x.Button,{className:"edit-site-global-styles-font-families__add-fonts",variant:"secondary",onClick:()=>t("upload-fonts"),children:(0,b.__)("Add fonts")})]})]})]})}const Hc=({...e})=>(0,me.jsx)(Lr,{children:(0,me.jsx)(Gc,{...e})});const Uc=function(){const e=(0,l.useSelect)((e=>e(h.store).getEditorSettings().fontLibraryEnabled),[]);return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(Ei,{title:(0,b.__)("Typography"),description:(0,b.__)("Typography styles and the application of those styles on site elements.")}),(0,me.jsx)("div",{className:"edit-site-global-styles-screen",children:(0,me.jsxs)(x.__experimentalVStack,{spacing:7,children:[!window.__experimentalDisableFontLibrary&&e&&(0,me.jsx)(Hc,{}),(0,me.jsx)(or,{}),(0,me.jsx)(dr,{title:(0,b.__)("Presets")})]})})]})},{useGlobalStyle:Wc,useGlobalSetting:qc,useSettingsForBlockElement:Zc,TypographyPanel:Kc}=se(y.privateApis);function Yc({element:e,headingLevel:t}){let s=[];"heading"===e?s=s.concat(["elements",t]):e&&"text"!==e&&(s=s.concat(["elements",e]));const n=s.join("."),[i]=Wc(n,void 0,"user",{shouldDecodeEncode:!1}),[r,o]=Wc(n,void 0,"all",{shouldDecodeEncode:!1}),[a]=qc(""),l=Zc(a,void 0,"heading"===e?t:e);return(0,me.jsx)(Kc,{inheritedValue:r,value:i,onChange:o,settings:l})}const{useGlobalStyle:Xc}=se(y.privateApis);function Jc({name:e,element:t,headingLevel:s}){var n;let i="";"heading"===t?i=`elements.${s}.`:t&&"text"!==t&&(i=`elements.${t}.`);const[r]=Xc(i+"typography.fontFamily",e),[o]=Xc(i+"color.gradient",e),[a]=Xc(i+"color.background",e),[l]=Xc("color.background"),[c]=Xc(i+"color.text",e),[u]=Xc(i+"typography.fontSize",e),[d]=Xc(i+"typography.fontStyle",e),[h]=Xc(i+"typography.fontWeight",e),[p]=Xc(i+"typography.letterSpacing",e),f="link"===t?{textDecoration:"underline"}:{};return(0,me.jsx)("div",{className:"edit-site-typography-preview",style:{fontFamily:null!=r?r:"serif",background:null!==(n=null!=o?o:a)&&void 0!==n?n:l,color:c,fontSize:u,fontStyle:d,fontWeight:h,letterSpacing:p,...f},children:"Aa"})}const Qc={text:{description:(0,b.__)("Manage the fonts used on the site."),title:(0,b.__)("Text")},link:{description:(0,b.__)("Manage the fonts and typography used on the links."),title:(0,b.__)("Links")},heading:{description:(0,b.__)("Manage the fonts and typography used on headings."),title:(0,b.__)("Headings")},caption:{description:(0,b.__)("Manage the fonts and typography used on captions."),title:(0,b.__)("Captions")},button:{description:(0,b.__)("Manage the fonts and typography used on buttons."),title:(0,b.__)("Buttons")}};const $c=function({element:e}){const[t,s]=(0,d.useState)("heading");return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(Ei,{title:Qc[e].title,description:Qc[e].description}),(0,me.jsx)(x.__experimentalSpacer,{marginX:4,children:(0,me.jsx)(Jc,{element:e,headingLevel:t})}),"heading"===e&&(0,me.jsx)(x.__experimentalSpacer,{marginX:4,marginBottom:"1em",children:(0,me.jsxs)(x.__experimentalToggleGroupControl,{label:(0,b.__)("Select heading level"),hideLabelFromVision:!0,value:t,onChange:s,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0,children:[(0,me.jsx)(x.__experimentalToggleGroupControlOption,{value:"heading",label:(0,b._x)("All","heading levels")}),(0,me.jsx)(x.__experimentalToggleGroupControlOption,{value:"h1",label:(0,b.__)("H1")}),(0,me.jsx)(x.__experimentalToggleGroupControlOption,{value:"h2",label:(0,b.__)("H2")}),(0,me.jsx)(x.__experimentalToggleGroupControlOption,{value:"h3",label:(0,b.__)("H3")}),(0,me.jsx)(x.__experimentalToggleGroupControlOption,{value:"h4",label:(0,b.__)("H4")}),(0,me.jsx)(x.__experimentalToggleGroupControlOption,{value:"h5",label:(0,b.__)("H5")}),(0,me.jsx)(x.__experimentalToggleGroupControlOption,{value:"h6",label:(0,b.__)("H6")})]})}),(0,me.jsx)(Yc,{element:e,headingLevel:t})]})};const eu=(0,d.forwardRef)((function({icon:e,size:t=24,...s},n){return(0,d.cloneElement)(e,{width:t,height:t,...s,ref:n})})),tu=(0,me.jsx)(us.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/SVG",children:(0,me.jsx)(us.Path,{d:"M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z"})});const su=function({className:e,...t}){return(0,me.jsx)(x.Flex,{className:Qt("edit-site-global-styles__color-indicator-wrapper",e),...t})},{useGlobalSetting:nu}=se(y.privateApis),iu=[];const ru=function({name:e}){const[t]=nu("color.palette.custom"),[s]=nu("color.palette.theme"),[n]=nu("color.palette.default"),[i]=nu("color.defaultPalette",e),[r]=function(e){const[t,s]=ce("color.palette.theme",e);return window.__experimentalEnableColorRandomizer?[function(){const e=Math.floor(225*Math.random()),n=t.map((t=>{const{color:s}=t,n=Y(s).rotate(e).toHex();return{...t,color:n}}));s(n)}]:[]}(),o=(0,d.useMemo)((()=>[...t||iu,...s||iu,...n&&i?n:iu]),[t,s,n,i]),a=e?"/blocks/"+encodeURIComponent(e)+"/colors/palette":"/colors/palette",l=o.length>0?(0,b.__)("Edit palette"):(0,b.__)("Add colors");return(0,me.jsxs)(x.__experimentalVStack,{spacing:3,children:[(0,me.jsx)(Di,{level:3,children:(0,b.__)("Palette")}),(0,me.jsx)(x.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:(0,me.jsx)(Wn,{path:a,"aria-label":l,children:(0,me.jsxs)(x.__experimentalHStack,{direction:"row",children:[o.length<=0&&(0,me.jsx)(x.FlexItem,{children:(0,b.__)("Add colors")}),(0,me.jsx)(x.__experimentalZStack,{isLayered:!1,offset:-8,children:o.slice(0,5).map((({color:e},t)=>(0,me.jsx)(su,{children:(0,me.jsx)(x.ColorIndicator,{colorValue:e})},`${e}-${t}`)))}),(0,me.jsx)(eu,{icon:(0,b.isRTL)()?zn:Gn})]})})}),window.__experimentalEnableColorRandomizer&&s?.length>0&&(0,me.jsx)(x.Button,{variant:"secondary",icon:tu,onClick:r,children:(0,b.__)("Randomize colors")})]})},{useGlobalStyle:ou,useGlobalSetting:au,useSettingsForBlockElement:lu,ColorPanel:cu}=se(y.privateApis);const uu=function(){const[e]=ou("",void 0,"user",{shouldDecodeEncode:!1}),[t,s]=ou("",void 0,"all",{shouldDecodeEncode:!1}),[n]=au(""),i=lu(n);return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(Ei,{title:(0,b.__)("Colors"),description:(0,b.__)("Palette colors and the application of those colors on site elements.")}),(0,me.jsx)("div",{className:"edit-site-global-styles-screen",children:(0,me.jsxs)(x.__experimentalVStack,{spacing:7,children:[(0,me.jsx)(ru,{}),(0,me.jsx)(cu,{inheritedValue:t,value:e,onChange:s,settings:i})]})})]})};function du(){const{paletteColors:e}=de();return e.slice(0,5).map((({slug:e,color:t},s)=>(0,me.jsx)("div",{style:{flexGrow:1,height:"100%",background:t}},`${e}-${s}`)))}const hu={start:{scale:1,opacity:1},hover:{scale:0,opacity:0}},pu=({label:e,isFocused:t,withHoverView:s})=>(0,me.jsx)(mi,{label:e,isFocused:t,withHoverView:s,children:({key:e})=>(0,me.jsx)(x.__unstableMotion.div,{variants:hu,style:{height:"100%",overflow:"hidden"},children:(0,me.jsx)(x.__experimentalHStack,{spacing:0,justify:"center",style:{height:"100%",overflow:"hidden"},children:(0,me.jsx)(du,{})})},e)});function fu({title:e,gap:t=2}){const s=he();return s?.length<=1?null:(0,me.jsxs)(x.__experimentalVStack,{spacing:3,children:[e&&(0,me.jsx)(Di,{level:3,children:e}),(0,me.jsx)(x.__experimentalGrid,{spacing:t,children:s.map(((e,t)=>(0,me.jsx)(ur,{variation:e,isPill:!0,property:"color",children:()=>(0,me.jsx)(pu,{})},t)))})]})}const{useGlobalSetting:mu}=se(y.privateApis),gu={placement:"bottom-start",offset:8};function vu({name:e}){const[t,s]=mu("color.palette.theme",e),[n]=mu("color.palette.theme",e,"base"),[i,r]=mu("color.palette.default",e),[o]=mu("color.palette.default",e,"base"),[a,l]=mu("color.palette.custom",e),[c]=mu("color.defaultPalette",e),u=(0,v.useViewportMatch)("small","<")?gu:void 0;return(0,me.jsxs)(x.__experimentalVStack,{className:"edit-site-global-styles-color-palette-panel",spacing:8,children:[!!t&&!!t.length&&(0,me.jsx)(x.__experimentalPaletteEdit,{canReset:t!==n,canOnlyChangeValues:!0,colors:t,onChange:s,paletteLabel:(0,b.__)("Theme"),paletteLabelHeadingLevel:3,popoverProps:u}),!!i&&!!i.length&&!!c&&(0,me.jsx)(x.__experimentalPaletteEdit,{canReset:i!==o,canOnlyChangeValues:!0,colors:i,onChange:r,paletteLabel:(0,b.__)("Default"),paletteLabelHeadingLevel:3,popoverProps:u}),(0,me.jsx)(x.__experimentalPaletteEdit,{colors:a,onChange:l,paletteLabel:(0,b.__)("Custom"),paletteLabelHeadingLevel:3,slugPrefix:"custom-",popoverProps:u}),(0,me.jsx)(fu,{title:(0,b.__)("Palettes")})]})}const{useGlobalSetting:yu}=se(y.privateApis),xu={placement:"bottom-start",offset:8},bu=()=>{};function wu({name:e}){const[t,s]=yu("color.gradients.theme",e),[n]=yu("color.gradients.theme",e,"base"),[i,r]=yu("color.gradients.default",e),[o]=yu("color.gradients.default",e,"base"),[a,l]=yu("color.gradients.custom",e),[c]=yu("color.defaultGradients",e),[u]=yu("color.duotone.custom")||[],[d]=yu("color.duotone.default")||[],[h]=yu("color.duotone.theme")||[],[p]=yu("color.defaultDuotone"),f=[...u||[],...h||[],...d&&p?d:[]],m=(0,v.useViewportMatch)("small","<")?xu:void 0;return(0,me.jsxs)(x.__experimentalVStack,{className:"edit-site-global-styles-gradient-palette-panel",spacing:8,children:[!!t&&!!t.length&&(0,me.jsx)(x.__experimentalPaletteEdit,{canReset:t!==n,canOnlyChangeValues:!0,gradients:t,onChange:s,paletteLabel:(0,b.__)("Theme"),paletteLabelHeadingLevel:3,popoverProps:m}),!!i&&!!i.length&&!!c&&(0,me.jsx)(x.__experimentalPaletteEdit,{canReset:i!==o,canOnlyChangeValues:!0,gradients:i,onChange:r,paletteLabel:(0,b.__)("Default"),paletteLabelLevel:3,popoverProps:m}),(0,me.jsx)(x.__experimentalPaletteEdit,{gradients:a,onChange:l,paletteLabel:(0,b.__)("Custom"),paletteLabelLevel:3,slugPrefix:"custom-",popoverProps:m}),!!f&&!!f.length&&(0,me.jsxs)("div",{children:[(0,me.jsx)(Di,{level:3,children:(0,b.__)("Duotone")}),(0,me.jsx)(x.__experimentalSpacer,{margin:3}),(0,me.jsx)(x.DuotonePicker,{duotonePalette:f,disableCustomDuotone:!0,disableCustomColors:!0,clearable:!1,onChange:bu})]})]})}const{Tabs:_u}=se(x.privateApis);const Su=function({name:e}){return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(Ei,{title:(0,b.__)("Edit palette"),description:(0,b.__)("The combination of colors used across the site and in color pickers.")}),(0,me.jsxs)(_u,{children:[(0,me.jsxs)(_u.TabList,{children:[(0,me.jsx)(_u.Tab,{tabId:"color",children:(0,b.__)("Color")}),(0,me.jsx)(_u.Tab,{tabId:"gradient",children:(0,b.__)("Gradient")})]}),(0,me.jsx)(_u.TabPanel,{tabId:"color",focusable:!1,children:(0,me.jsx)(vu,{name:e})}),(0,me.jsx)(_u.TabPanel,{tabId:"gradient",focusable:!1,children:(0,me.jsx)(wu,{name:e})})]})]})},ju=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),{useGlobalSetting:Cu}=se(y.privateApis),ku="6px 6px 9px rgba(0, 0, 0, 0.2)";function Eu(){const[e]=Cu("shadow.presets.default"),[t]=Cu("shadow.defaultPresets"),[s]=Cu("shadow.presets.theme"),[n,i]=Cu("shadow.presets.custom");return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(Ei,{title:(0,b.__)("Shadows"),description:(0,b.__)("Manage and create shadow styles for use across the site.")}),(0,me.jsx)("div",{className:"edit-site-global-styles-screen",children:(0,me.jsxs)(x.__experimentalVStack,{className:"edit-site-global-styles__shadows-panel",spacing:7,children:[t&&(0,me.jsx)(Pu,{label:(0,b.__)("Default"),shadows:e||[],category:"default"}),s&&s.length>0&&(0,me.jsx)(Pu,{label:(0,b.__)("Theme"),shadows:s||[],category:"theme"}),(0,me.jsx)(Pu,{label:(0,b.__)("Custom"),shadows:n||[],category:"custom",canCreate:!0,onCreate:e=>{i([...n||[],e])}})]})})]})}function Pu({label:e,shadows:t,category:s,canCreate:n,onCreate:i}){const r=()=>{const e=function(e,t){const s=new RegExp(`^${t}([\\d]+)$`),n=e.reduce(((e,t)=>{if("string"==typeof t?.slug){const n=t?.slug.match(s);if(n){const t=parseInt(n[1],10);if(t>e)return t}}return e}),0);return n+1}(t,"shadow-");i({name:(0,b.sprintf)((0,b.__)("Shadow %s"),e),shadow:ku,slug:`shadow-${e}`})};return(0,me.jsxs)(x.__experimentalVStack,{spacing:2,children:[(0,me.jsxs)(x.__experimentalHStack,{justify:"space-between",children:[(0,me.jsx)(x.Flex,{align:"center",className:"edit-site-global-styles__shadows-panel__title",children:(0,me.jsx)(Di,{level:3,children:e})}),n&&(0,me.jsx)(x.FlexItem,{className:"edit-site-global-styles__shadows-panel__options-container",children:(0,me.jsx)(x.Button,{size:"small",icon:ju,label:(0,b.__)("Add shadow"),onClick:()=>{r()}})})]}),t.length>0&&(0,me.jsx)(x.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:t.map((e=>(0,me.jsx)(Iu,{shadow:e,category:s},e.slug)))})]})}function Iu({shadow:e,category:t}){return(0,me.jsx)(Wn,{path:`/shadows/edit/${t}/${e.slug}`,"aria-label":(0,b.sprintf)("Edit shadow %s",e.name),icon:Kn,children:e.name})}const Tu=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M7 11.5h10V13H7z"})}),Ou={px:{max:20,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:10,step:.1},rm:{max:10,step:.1},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}};const{useGlobalSetting:Au}=se(y.privateApis),{DropdownMenuV2:Mu,DropdownMenuItemV2:Nu,DropdownMenuItemLabelV2:Fu}=se(x.privateApis),Vu=[{label:(0,b.__)("Rename"),action:"rename"},{label:(0,b.__)("Delete"),action:"delete"}],Ru=[{label:(0,b.__)("Reset"),action:"reset"}];function Bu(){const{params:{category:e,slug:t},goTo:s}=(0,x.__experimentalUseNavigator)(),[n,i]=Au(`shadow.presets.${e}`),[r]=Au(`shadow.presets.${e}`,void 0,"base"),[o,a]=(0,d.useState)((()=>(n||[]).find((e=>e.slug===t)))),l=(0,d.useMemo)((()=>(r||[]).find((e=>e.slug===t))),[r,t]),[c,u]=(0,d.useState)(!1),[h,p]=(0,d.useState)(!1),[f,m]=(0,d.useState)(o.name);return o?(0,me.jsxs)(me.Fragment,{children:[(0,me.jsxs)(x.__experimentalHStack,{justify:"space-between",children:[(0,me.jsx)(Ei,{title:o.name}),(0,me.jsx)(x.FlexItem,{children:(0,me.jsx)(x.__experimentalSpacer,{marginTop:2,marginBottom:0,paddingX:4,children:(0,me.jsx)(Mu,{trigger:(0,me.jsx)(x.Button,{size:"small",icon:Ln,label:(0,b.__)("Menu")}),children:("custom"===e?Vu:Ru).map((e=>(0,me.jsx)(Nu,{onClick:()=>(e=>{if("reset"===e){const e=n.map((e=>e.slug===t?l:e));a(l),i(e)}else"delete"===e?u(!0):"rename"===e&&p(!0)})(e.action),disabled:"reset"===e.action&&o.shadow===l.shadow,children:(0,me.jsx)(Fu,{children:e.label})},e.action)))})})})]}),(0,me.jsxs)("div",{className:"edit-site-global-styles-screen",children:[(0,me.jsx)(Du,{shadow:o.shadow}),(0,me.jsx)(Lu,{shadow:o.shadow,onChange:e=>{a({...o,shadow:e});const s=n.map((s=>s.slug===t?{...o,shadow:e}:s));i(s)}})]}),c&&(0,me.jsx)(x.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{(()=>{const e=n.filter((e=>e.slug!==t));i(e),s("/shadows")})(),u(!1)},onCancel:()=>{u(!1)},confirmButtonText:(0,b.__)("Delete"),size:"medium",children:(0,b.sprintf)('Are you sure you want to delete "%s"?',o.name)}),h&&(0,me.jsx)(x.Modal,{title:(0,b.__)("Rename"),onRequestClose:()=>p(!1),size:"small",children:(0,me.jsxs)("form",{onSubmit:e=>{e.preventDefault(),(e=>{if(!e)return;const s=n.map((s=>s.slug===t?{...o,name:e}:s));a({...o,name:e}),i(s)})(f),p(!1)},children:[(0,me.jsx)(x.__experimentalInputControl,{autoComplete:"off",label:(0,b.__)("Name"),placeholder:(0,b.__)("Shadow name"),value:f,onChange:e=>m(e)}),(0,me.jsx)(x.__experimentalSpacer,{marginBottom:6}),(0,me.jsxs)(x.Flex,{className:"block-editor-shadow-edit-modal__actions",justify:"flex-end",expanded:!1,children:[(0,me.jsx)(x.FlexItem,{children:(0,me.jsx)(x.Button,{variant:"tertiary",onClick:()=>p(!1),children:(0,b.__)("Cancel")})}),(0,me.jsx)(x.FlexItem,{children:(0,me.jsx)(x.Button,{variant:"primary",type:"submit",children:(0,b.__)("Save")})})]})]})})]}):(0,me.jsx)(Ei,{title:""})}function Du({shadow:e}){const t={boxShadow:e};return(0,me.jsx)(x.__experimentalSpacer,{marginBottom:4,marginTop:-2,children:(0,me.jsx)(x.__experimentalHStack,{align:"center",justify:"center",className:"edit-site-global-styles__shadow-preview-panel",children:(0,me.jsx)("div",{className:"edit-site-global-styles__shadow-preview-block",style:t})})})}function Lu({shadow:e,onChange:t}){const s=(0,d.useMemo)((()=>function(e){return(e.match(/(?:[^,(]|\([^)]*\))+/g)||[]).map((e=>e.trim()))}(e)),[e]);return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(x.__experimentalVStack,{spacing:2,children:(0,me.jsxs)(x.__experimentalHStack,{justify:"space-between",children:[(0,me.jsx)(x.Flex,{align:"center",className:"edit-site-global-styles__shadows-panel__title",children:(0,me.jsx)(Di,{level:3,children:(0,b.__)("Shadows")})}),(0,me.jsx)(x.FlexItem,{className:"edit-site-global-styles__shadows-panel__options-container",children:(0,me.jsx)(x.Button,{size:"small",icon:ju,label:(0,b.__)("Add shadow"),onClick:()=>{s.push(ku),t(s.join(", "))}})})]})}),(0,me.jsx)(x.__experimentalSpacer,{}),(0,me.jsx)(x.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:s.map(((e,n)=>(0,me.jsx)(zu,{shadow:e,onChange:e=>((e,n)=>{s[e]=n,t(s.join(", "))})(n,e),canRemove:s.length>1,onRemove:()=>(e=>{s.splice(e,1),t(s.join(", "))})(n)},n)))})]})}function zu({shadow:e,onChange:t,canRemove:s,onRemove:n}){const i=(0,d.useMemo)((()=>function(e){const t={x:"0",y:"0",blur:"0",spread:"0",color:"#000",inset:!1};if(!e)return t;if(e.includes("none"))return t;const s=/((?:^|\s+)(-?\d*\.?\d+(?:px|%|in|cm|mm|em|rem|ex|pt|pc|vh|vw|vmin|vmax|ch|lh)?)(?=\s|$)(?![^(]*\))){1,4}/g,n=e.match(s)||[];if(1!==n.length)return t;const i=n[0].split(" ").map((e=>e.trim())).filter((e=>e));if(i.length<2)return t;const r=e.match(/inset/gi)||[];if(r.length>1)return t;const o=1===r.length;let a=e.replace(s,"").trim();o&&(a=a.replace("inset","").replace("INSET","").trim());let l=(a.match(/^#([0-9a-f]{3}){1,2}$|^#([0-9a-f]{4}){1,2}$|^(?:rgb|hsl)a?\(?[\d*\.?\d+%?,?\/?\s]*\)$/gi)||[]).map((e=>e?.trim())).filter((e=>e));if(l.length>1)return t;if(0===l.length&&(l=a.trim().split(" ").filter((e=>e)),l.length>1))return t;const[c,u,d,h]=i;return{x:c,y:u,blur:d||t.blur,spread:h||t.spread,inset:o,color:a||t.color}}(e)),[e]),r=e=>{t(function(e){const t=`${e.x||"0px"} ${e.y||"0px"} ${e.blur||"0px"} ${e.spread||"0px"}`;return`${e.inset?"inset":""} ${t} ${e.color||""}`.trim()}(e))};return(0,me.jsx)(x.Dropdown,{popoverProps:{placement:"left-start",offset:36,shift:!0},className:"edit-site-global-styles__shadow-editor__dropdown",renderToggle:({onToggle:e,isOpen:t})=>{const r={onClick:e,className:Qt("edit-site-global-styles__shadow-editor__dropdown-toggle",{"is-open":t}),"aria-expanded":t},o={onClick:n,className:Qt("edit-site-global-styles__shadow-editor__remove-button",{"is-open":t}),label:(0,b.__)("Remove shadow")};return(0,me.jsxs)(x.__experimentalHStack,{align:"center",justify:"flex-start",spacing:0,children:[(0,me.jsx)(x.FlexItem,{style:{flexGrow:1},children:(0,me.jsx)(x.Button,{icon:Kn,...r,children:i.inset?(0,b.__)("Inner shadow"):(0,b.__)("Drop shadow")})}),s&&(0,me.jsx)(x.FlexItem,{children:(0,me.jsx)(x.Button,{icon:Tu,...o})})]})},renderContent:()=>(0,me.jsx)(x.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,me.jsx)("div",{className:"edit-site-global-styles__shadow-editor__dropdown-content",children:(0,me.jsx)(Gu,{shadowObj:i,onChange:r})})})})}function Gu({shadowObj:e,onChange:t}){const s=(s,n)=>{const i={...e,[s]:n};t(i)};return(0,me.jsx)("div",{className:"edit-site-global-styles__shadow-editor-panel",children:(0,me.jsxs)(x.__experimentalVStack,{spacing:2,children:[(0,me.jsx)(x.__experimentalHeading,{level:5,children:(0,b.__)("Shadow")}),(0,me.jsx)("div",{className:"edit-site-global-styles__shadow-editor-color-palette",children:(0,me.jsx)(x.ColorPalette,{clearable:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,value:e.color,onChange:e=>s("color",e)})}),(0,me.jsxs)(x.__experimentalToggleGroupControl,{value:e.inset?"inset":"outset",isBlock:!0,onChange:e=>s("inset","inset"===e),hideLabelFromVision:!0,__next40pxDefaultSize:!0,children:[(0,me.jsx)(x.__experimentalToggleGroupControlOption,{value:"outset",label:(0,b.__)("Outset")}),(0,me.jsx)(x.__experimentalToggleGroupControlOption,{value:"inset",label:(0,b.__)("Inset")})]}),(0,me.jsxs)(x.__experimentalGrid,{columns:2,gap:4,children:[(0,me.jsx)(Hu,{label:(0,b.__)("X Position"),value:e.x,hasNegativeRange:!0,onChange:e=>s("x",e)}),(0,me.jsx)(Hu,{label:(0,b.__)("Y Position"),value:e.y,hasNegativeRange:!0,onChange:e=>s("y",e)}),(0,me.jsx)(Hu,{label:(0,b.__)("Blur"),value:e.blur,onChange:e=>s("blur",e)}),(0,me.jsx)(Hu,{label:(0,b.__)("Spread"),value:e.spread,hasNegativeRange:!0,onChange:e=>s("spread",e)})]})]})})}function Hu({label:e,value:t,onChange:s,hasNegativeRange:n}){var i,r,o;const[a,l]=(0,d.useState)(!1),[c,u]=(0,x.__experimentalParseQuantityAndUnitFromRawValue)(t);return(0,me.jsxs)(x.__experimentalVStack,{justify:"flex-start",children:[(0,me.jsxs)(x.__experimentalHStack,{justify:"space-between",children:[(0,me.jsx)(Di,{children:e}),(0,me.jsx)(x.Button,{label:(0,b.__)("Use custom size"),icon:hr,onClick:()=>{l(!a)},isPressed:a,size:"small"})]}),a?(0,me.jsx)(x.__experimentalUnitControl,{label:e,hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:t,onChange:e=>{const t=void 0!==e&&!isNaN(parseFloat(e));s(t?e:"0px")}}):(0,me.jsx)(x.RangeControl,{value:null!=c?c:0,onChange:e=>{s(void 0!==e?[e,u||"px"].join(""):"0px")},withInputField:!1,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,min:n?-(null!==(i=Ou[null!=u?u:"px"]?.max)&&void 0!==i?i:10):0,max:null!==(r=Ou[null!=u?u:"px"]?.max)&&void 0!==r?r:10,step:null!==(o=Ou[null!=u?u:"px"]?.step)&&void 0!==o?o:.1})]})}function Uu(){return(0,me.jsx)(Eu,{})}function Wu(){return(0,me.jsx)(Bu,{})}const{useGlobalStyle:qu,useGlobalSetting:Zu,useSettingsForBlockElement:Ku,DimensionsPanel:Yu}=se(y.privateApis),Xu={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,childLayout:!1};function Ju(){const[e]=qu("",void 0,"user",{shouldDecodeEncode:!1}),[t,s]=qu("",void 0,"all",{shouldDecodeEncode:!1}),[n]=Zu("",void 0,"user"),[i,r]=Zu(""),o=Ku(i),a=(0,d.useMemo)((()=>({...t,layout:o.layout})),[t,o.layout]),l=(0,d.useMemo)((()=>({...e,layout:n.layout})),[e,n.layout]);return(0,me.jsx)(Yu,{inheritedValue:a,value:l,onChange:e=>{const t={...e};if(delete t.layout,s(t),e.layout!==n.layout){const t={...n,layout:e.layout};t.layout?.definitions&&delete t.layout.definitions,r(t)}},settings:o,includeLayoutControls:!0,defaultControls:Xu})}const Qu={backgroundSize:"auto"},{useGlobalStyle:$u,useGlobalSetting:ed,useGlobalStyleLinks:td,BackgroundPanel:sd}=se(y.privateApis);function nd(e){return!!e?.background?.backgroundImage?.id||!!e?.background?.backgroundImage?.url||"string"==typeof e?.background?.backgroundImage}function id(){const[e]=$u("",void 0,"user",{shouldDecodeEncode:!1}),[t,s]=$u("",void 0,"all",{shouldDecodeEncode:!1}),n=td(),[i]=ed(""),r={backgroundImage:!0,backgroundSize:nd(e)||nd(t)};return(0,me.jsx)(sd,{inheritedValue:t,value:e,onChange:s,settings:i,defaultValues:Qu,defaultControls:r,themeFileURIs:n?.["wp:theme-file"]})}const{useHasBackgroundPanel:rd,useHasDimensionsPanel:od,useGlobalSetting:ad,useSettingsForBlockElement:ld}=se(y.privateApis);const cd=function(){const[e]=ad(""),t=ld(e),s=od(t),n=rd(t);return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(Ei,{title:(0,b.__)("Layout")}),s&&(0,me.jsx)(Ju,{}),n&&(0,me.jsx)(id,{})]})},{GlobalStylesContext:ud}=se(y.privateApis);function dd({gap:e=2}){const{user:t}=(0,d.useContext)(ud),[s,n]=(0,d.useState)(t),i=s?.styles;(0,d.useEffect)((()=>{n(t)}),[t]);const r=(0,l.useSelect)((e=>e(_.store).__experimentalGetCurrentThemeGlobalStylesVariations()),[]),o=r?.filter((e=>!le(e,"color")&&!le(e,"typography"))),a=(0,d.useMemo)((()=>[...[{title:(0,b.__)("Default"),settings:{},styles:{}},...null!=o?o:[]].map((e=>{var t;const s={...e?.styles?.blocks}||{};i?.blocks&&Object.keys(i.blocks).forEach((e=>{if(i.blocks[e].css){const t=s[e]||{},n={css:`${s[e]?.css||""} ${i.blocks[e].css.trim()||""}`};s[e]={...t,...n}}}));const n=i?.css||e.styles?.css?{css:`${e.styles?.css||""} ${i?.css||""}`}:{},r=Object.keys(s).length>0?{blocks:s}:{},o={...e.styles,...n,...r};return{...e,settings:null!==(t=e.settings)&&void 0!==t?t:{},styles:o}}))]),[o,i?.blocks,i?.css]);return(0,me.jsx)(x.__experimentalGrid,{columns:2,className:"edit-site-global-styles-style-variations-container",gap:e,children:a.map(((e,t)=>(0,me.jsx)(ur,{variation:e,children:t=>(0,me.jsx)(bi,{label:e?.title,withHoverView:!0,isFocused:t,variation:e})},t)))})}const hd=function(){return(0,y.useZoomOut)(),(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(Ei,{title:(0,b.__)("Browse styles"),description:(0,b.__)("Choose a variation to change the look of the site.")}),(0,me.jsx)(x.Card,{size:"small",isBorderless:!0,className:"edit-site-global-styles-screen-style-variations",children:(0,me.jsx)(x.CardBody,{children:(0,me.jsx)(dd,{})})})]})},pd=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})}),{EditorContentSlotFill:fd,ResizableEditor:md}=se(h.privateApis);function gd(e){switch(e){case"style-book":return(0,b.__)("Style Book");case"global-styles-revisions":case"global-styles-revisions:style-book":return(0,b.__)("Style Revisions");default:return""}}const vd=function({children:e,closeButtonLabel:t,onClose:s,enableResizing:n=!1}){const{editorCanvasContainerView:i,showListViewByDefault:r}=(0,l.useSelect)((e=>({editorCanvasContainerView:se(e(Kt)).getEditorCanvasContainerView(),showListViewByDefault:e(f.store).get("core","showListViewByDefault")})),[]),[o,a]=(0,d.useState)(!1),{setEditorCanvasContainerView:c}=se((0,l.useDispatch)(Kt)),{setIsListViewOpened:u}=(0,l.useDispatch)(h.store),p=(0,v.useFocusOnMount)("firstElement"),m=(0,v.useFocusReturn)();function g(){u(r),c(void 0),a(!0),"function"==typeof s&&s()}const y=Array.isArray(e)?d.Children.map(e,((e,t)=>0===t?(0,d.cloneElement)(e,{ref:m}):e)):(0,d.cloneElement)(e,{ref:m});if(o)return null;const w=gd(i),_=s||t;return(0,me.jsx)(fd.Fill,{children:(0,me.jsx)("div",{className:"edit-site-editor-canvas-container",children:(0,me.jsx)(md,{enableResizing:n,children:(0,me.jsxs)("section",{className:"edit-site-editor-canvas-container__section",ref:_?p:null,onKeyDown:function(e){e.keyCode!==hs.ESCAPE||e.defaultPrevented||(e.preventDefault(),g())},"aria-label":w,children:[_&&(0,me.jsx)(x.Button,{className:"edit-site-editor-canvas-container__close-button",icon:pd,label:t||(0,b.__)("Close"),onClick:g}),y]})})})})},{ExperimentalBlockEditorProvider:yd,useGlobalStyle:xd,GlobalStylesContext:bd,useGlobalStylesOutputWithConfig:wd}=se(y.privateApis),{mergeBaseAndUserConfigs:_d}=se(h.privateApis),{CompositeV2:Sd,CompositeItemV2:jd,useCompositeStoreV2:Cd,Tabs:kd}=se(x.privateApis);function Ed(e){return!e||0===Object.keys(e).length}function Pd(){return[{name:"core/heading",title:(0,b.__)("Headings"),category:"text",blocks:[(0,o.createBlock)("core/heading",{content:(0,b.__)("Code Is Poetry"),level:1}),(0,o.createBlock)("core/heading",{content:(0,b.__)("Code Is Poetry"),level:2}),(0,o.createBlock)("core/heading",{content:(0,b.__)("Code Is Poetry"),level:3}),(0,o.createBlock)("core/heading",{content:(0,b.__)("Code Is Poetry"),level:4}),(0,o.createBlock)("core/heading",{content:(0,b.__)("Code Is Poetry"),level:5})]},...(0,o.getBlockTypes)().filter((e=>{const{name:t,example:s,supports:n}=e;return"core/heading"!==t&&!!s&&!1!==n.inserter})).map((e=>({name:e.name,title:e.title,category:e.category,blocks:(0,o.getBlockFromExample)(e.name,e.example)})))]}const Id=({category:e,examples:t,isSelected:s,onClick:n,onSelect:i,settings:r,sizes:o,title:a})=>{const[l,c]=(0,d.useState)(!1),u={role:"button",onFocus:()=>c(!0),onBlur:()=>c(!1),onKeyDown:e=>{if(e.defaultPrevented)return;const{keyCode:t}=e;!n||t!==hs.ENTER&&t!==hs.SPACE||(e.preventDefault(),n(e))},onClick:e=>{e.defaultPrevented||n&&(e.preventDefault(),n(e))},readonly:!0},h=n?"body { cursor: pointer; } body * { pointer-events: none; }":"";return(0,me.jsxs)(y.__unstableIframe,{className:Qt("edit-site-style-book__iframe",{"is-focused":l&&!!n,"is-button":!!n}),name:"style-book-canvas",tabIndex:0,...n?u:{},children:[(0,me.jsx)(y.__unstableEditorStyles,{styles:r.styles}),(0,me.jsx)("style",{children:'.is-root-container { display: flow-root; }\n\t\t\t\t\t\tbody { position: relative; padding: 32px !important; }\n\t.edit-site-style-book__examples {\n\t\tmax-width: 900px;\n\t\tmargin: 0 auto;\n\t}\n\n\t.edit-site-style-book__example {\n\t\tborder-radius: 2px;\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: 40px;\n\t\tmargin-bottom: 40px;\n\t\tpadding: 16px;\n\t\twidth: 100%;\n\t\tbox-sizing: border-box;\n\t\tscroll-margin-top: 32px;\n\t\tscroll-margin-bottom: 32px;\n\t}\n\n\t.edit-site-style-book__example.is-selected {\n\t\tbox-shadow: 0 0 0 1px var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));\n\t}\n\n\t.edit-site-style-book__example:focus:not(:disabled) {\n\t\tbox-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));\n\t\toutline: 3px solid transparent;\n\t}\n\n\t.edit-site-style-book__examples.is-wide .edit-site-style-book__example {\n\t\tflex-direction: row;\n\t}\n\n\t.edit-site-style-book__example-title {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\t\tfont-size: 11px;\n\t\tfont-weight: 500;\n\t\tline-height: normal;\n\t\tmargin: 0;\n\t\ttext-align: left;\n\t\ttext-transform: uppercase;\n\t}\n\n\t.edit-site-style-book__examples.is-wide .edit-site-style-book__example-title {\n\t\ttext-align: right;\n\t\twidth: 120px;\n\t}\n\n\t.edit-site-style-book__example-preview {\n\t\twidth: 100%;\n\t}\n\n\t.edit-site-style-book__example-preview .block-editor-block-list__insertion-point,\n\t.edit-site-style-book__example-preview .block-list-appender {\n\t\tdisplay: none;\n\t}\n\n\t.edit-site-style-book__example-preview .is-root-container > .wp-block:first-child {\n\t\tmargin-top: 0;\n\t}\n\t.edit-site-style-book__example-preview .is-root-container > .wp-block:last-child {\n\t\tmargin-bottom: 0;\n\t}\n'+h}),(0,me.jsx)(Td,{className:Qt("edit-site-style-book__examples",{"is-wide":o.width>600}),examples:t,category:e,label:a?(0,b.sprintf)((0,b.__)("Examples of blocks in the %s category"),a):(0,b.__)("Examples of blocks"),isSelected:s,onSelect:i},e)]})},Td=(0,d.memo)((({className:e,examples:t,category:s,label:n,isSelected:i,onSelect:r})=>{const o=Cd({orientation:"vertical"});return(0,me.jsx)(Sd,{store:o,className:e,"aria-label":n,role:"grid",children:t.filter((e=>!s||e.category===s)).map((e=>(0,me.jsx)(Od,{id:`example-${e.name}`,title:e.title,blocks:e.blocks,isSelected:i(e.name),onClick:()=>{r?.(e.name)}},e.name)))})})),Od=({id:e,title:t,blocks:s,isSelected:n,onClick:i})=>{const r=(0,l.useSelect)((e=>e(y.store).getSettings()),[]),o=(0,d.useMemo)((()=>({...r,focusMode:!1,__unstableIsPreviewMode:!0})),[r]),a=(0,d.useMemo)((()=>Array.isArray(s)?s:[s]),[s]);return(0,me.jsx)("div",{role:"row",children:(0,me.jsx)("div",{role:"gridcell",children:(0,me.jsxs)(jd,{className:Qt("edit-site-style-book__example",{"is-selected":n}),id:e,"aria-label":(0,b.sprintf)((0,b.__)("Open %s styles in Styles panel"),t),render:(0,me.jsx)("div",{}),role:"button",onClick:i,children:[(0,me.jsx)("span",{className:"edit-site-style-book__example-title",children:t}),(0,me.jsx)("div",{className:"edit-site-style-book__example-preview","aria-hidden":!0,children:(0,me.jsx)(x.Disabled,{className:"edit-site-style-book__example-preview__content",children:(0,me.jsx)(yd,{value:a,settings:o,children:(0,me.jsx)(y.BlockList,{renderAppender:!1})})})})]})})})},Ad=function({enableResizing:e=!0,isSelected:t,onClick:s,onSelect:n,showCloseButton:i=!0,onClose:r,showTabs:a=!0,userConfig:c={}}){const[u,h]=(0,v.useResizeObserver)(),[p]=xd("color.text"),[f]=xd("color.background"),[m]=(0,d.useState)(Pd),g=(0,d.useMemo)((()=>(0,o.getCategories)().filter((e=>m.some((t=>t.category===e.slug)))).map((e=>({name:e.slug,title:e.title,icon:e.icon})))),[m]),{base:x}=(0,d.useContext)(bd),w=(0,d.useMemo)((()=>Ed(c)||Ed(x)?{}:_d(x,c)),[x,c]),_=(0,l.useSelect)((e=>e(y.store).getSettings()),[]),S=(0,d.useMemo)((()=>({..._,__unstableIsPreviewMode:!0})),[_]),[j]=wd(w);return S.styles=Ed(j)||Ed(c)?S.styles:j,(0,me.jsx)(vd,{onClose:r,enableResizing:e,closeButtonLabel:i?(0,b.__)("Close"):null,children:(0,me.jsxs)("div",{className:Qt("edit-site-style-book",{"is-wide":h.width>600,"is-button":!!s}),style:{color:p,background:f},children:[u,a?(0,me.jsx)("div",{className:"edit-site-style-book__tabs",children:(0,me.jsxs)(kd,{children:[(0,me.jsx)(kd.TabList,{children:g.map((e=>(0,me.jsx)(kd.Tab,{tabId:e.name,children:e.title},e.name)))}),g.map((e=>(0,me.jsx)(kd.TabPanel,{tabId:e.name,focusable:!1,children:(0,me.jsx)(Id,{category:e.name,examples:m,isSelected:t,onSelect:n,settings:S,sizes:h,title:e.title})},e.name)))]})}):(0,me.jsx)(Id,{examples:m,isSelected:t,onClick:s,onSelect:n,settings:S,sizes:h})]})})},{useGlobalStyle:Md,AdvancedPanel:Nd}=se(y.privateApis);const Fd=function(){const e=(0,b.__)("Add your own CSS to customize the appearance and layout of your site."),[t]=Md("",void 0,"user",{shouldDecodeEncode:!1}),[s,n]=Md("",void 0,"all",{shouldDecodeEncode:!1});return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(Ei,{title:(0,b.__)("CSS"),description:(0,me.jsxs)(me.Fragment,{children:[e,(0,me.jsx)(x.ExternalLink,{href:"https://developer.wordpress.org/advanced-administration/wordpress/css/",className:"edit-site-global-styles-screen-css-help-link",children:(0,b.__)("Learn more about CSS")})]})}),(0,me.jsx)("div",{className:"edit-site-global-styles-screen-css",children:(0,me.jsx)(Nd,{value:t,onChange:n,inheritedValue:s})})]})},{ExperimentalBlockEditorProvider:Vd,GlobalStylesContext:Rd,useGlobalStylesOutputWithConfig:Bd,__unstableBlockStyleVariationOverridesWithConfig:Dd}=se(y.privateApis),{mergeBaseAndUserConfigs:Ld}=se(h.privateApis);function zd(e){return!e||0===Object.keys(e).length}const Gd=function({userConfig:e,blocks:t}){const{base:s}=(0,d.useContext)(Rd),n=(0,d.useMemo)((()=>zd(e)||zd(s)?{}:Ld(s,e)),[s,e]),i=(0,d.useMemo)((()=>Array.isArray(t)?t:[t]),[t]),r=(0,l.useSelect)((e=>e(y.store).getSettings()),[]),o=(0,d.useMemo)((()=>({...r,__unstableIsPreviewMode:!0})),[r]),[a]=Bd(n),c=zd(a)||zd(e)?o.styles:a;return(0,me.jsx)(vd,{title:(0,b.__)("Revisions"),closeButtonLabel:(0,b.__)("Close revisions"),enableResizing:!0,children:(0,me.jsxs)(y.__unstableIframe,{className:"edit-site-revisions__iframe",name:"revisions",tabIndex:0,children:[(0,me.jsx)("style",{children:".is-root-container { display: flow-root; }"}),(0,me.jsx)(x.Disabled,{className:"edit-site-revisions__example-preview__content",children:(0,me.jsxs)(Vd,{value:i,settings:o,children:[(0,me.jsx)(y.BlockList,{renderAppender:!1}),(0,me.jsx)(y.__unstableEditorStyles,{styles:c}),(0,me.jsx)(Dd,{config:n})]})})]})})},Hd={per_page:-1,_fields:"id,name,avatar_urls",context:"view",capabilities:["edit_theme_options"]},Ud={per_page:100,page:1},Wd=[],{GlobalStylesContext:qd}=se(y.privateApis);function Zd({query:e}={}){const{user:t}=(0,d.useContext)(qd),s={...Ud,...e},{authors:n,currentUser:i,isDirty:r,revisions:o,isLoadingGlobalStylesRevisions:a,revisionsCount:c}=(0,l.useSelect)((e=>{var t;const{__experimentalGetDirtyEntityRecords:n,getCurrentUser:i,getUsers:r,getRevisions:o,__experimentalGetCurrentGlobalStylesId:a,getEntityRecord:l,isResolving:c}=e(_.store),u=n(),d=i(),h=u.length>0,p=a(),f=p?l("root","globalStyles",p):void 0,m=null!==(t=f?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0,g=o("root","globalStyles",p,s)||Wd;return{authors:r(Hd)||Wd,currentUser:d,isDirty:h,revisions:g,isLoadingGlobalStylesRevisions:c("getRevisions",["root","globalStyles",p,s]),revisionsCount:m}}),[e]);return(0,d.useMemo)((()=>{if(!n.length||a)return{revisions:Wd,hasUnsavedChanges:r,isLoading:!0,revisionsCount:c};const e=o.map((e=>({...e,author:n.find((t=>t.id===e.author))})));if(o.length){if("unsaved"!==e[0].id&&1===s.page&&(e[0].isLatest=!0),r&&t&&Object.keys(t).length>0&&i&&1===s.page){const s={id:"unsaved",styles:t?.styles,settings:t?.settings,_links:t?._links,author:{name:i?.name,avatar_urls:i?.avatar_urls},modified:new Date};e.unshift(s)}s.page===Math.ceil(c/s.per_page)&&e.push({id:"parent",styles:{},settings:{}})}return{revisions:e,hasUnsavedChanges:r,isLoading:!1,revisionsCount:c}}),[r,o,i,n,t,a])}const Kd=window.wp.date,{getGlobalStylesChanges:Yd}=se(y.privateApis);function Xd({revision:e,previousRevision:t}){const s=Yd(e,t,{maxResults:7});return s.length?(0,me.jsx)("ul",{"data-testid":"global-styles-revision-changes",className:"edit-site-global-styles-screen-revisions__changes",children:s.map((e=>(0,me.jsx)("li",{children:e},e)))}):null}const Jd=function({userRevisions:e,selectedRevisionId:t,onChange:s,canApplyRevision:n,onApplyRevision:i}){const{currentThemeName:r,currentUser:o}=(0,l.useSelect)((e=>{const{getCurrentTheme:t,getCurrentUser:s}=e(_.store),n=t();return{currentThemeName:n?.name?.rendered||n?.stylesheet,currentUser:s()}}),[]),a=(0,Kd.getDate)().getTime(),{datetimeAbbreviated:c}=(0,Kd.getSettings)().formats;return(0,me.jsx)("ol",{className:"edit-site-global-styles-screen-revisions__revisions-list","aria-label":(0,b.__)("Global styles revisions list"),role:"group",children:e.map(((l,u)=>{const{id:d,author:h,modified:p}=l,f="unsaved"===d,m=f?o:h,g=m?.name||(0,b.__)("User"),v=m?.avatar_urls?.[48],y=t?t===d:0===u,w=!n&&y,_="parent"===d,S=(0,Kd.getDate)(p),j=p&&a-S.getTime()>864e5?(0,Kd.dateI18n)(c,S):(0,Kd.humanTimeDiff)(p),C=function(e,t,s,n){return"parent"===e?(0,b.__)("Reset the styles to the theme defaults"):"unsaved"===e?(0,b.sprintf)((0,b.__)("Unsaved changes by %s"),t):n?(0,b.sprintf)((0,b.__)("Changes saved by %1$s on %2$s. This revision matches current editor styles."),t,s):(0,b.sprintf)((0,b.__)("Changes saved by %1$s on %2$s"),t,s)}(d,g,(0,Kd.dateI18n)(c,S),w);return(0,me.jsxs)("li",{className:Qt("edit-site-global-styles-screen-revisions__revision-item",{"is-selected":y,"is-active":w,"is-reset":_}),"aria-current":y,children:[(0,me.jsx)(x.Button,{className:"edit-site-global-styles-screen-revisions__revision-button",__experimentalIsFocusable:!0,disabled:y,onClick:()=>{s(l)},"aria-label":C,children:_?(0,me.jsxs)("span",{className:"edit-site-global-styles-screen-revisions__description",children:[(0,b.__)("Default styles"),(0,me.jsx)("span",{className:"edit-site-global-styles-screen-revisions__meta",children:r})]}):(0,me.jsxs)("span",{className:"edit-site-global-styles-screen-revisions__description",children:[f?(0,me.jsx)("span",{className:"edit-site-global-styles-screen-revisions__date",children:(0,b.__)("(Unsaved)")}):(0,me.jsx)("time",{className:"edit-site-global-styles-screen-revisions__date",dateTime:p,children:j}),(0,me.jsxs)("span",{className:"edit-site-global-styles-screen-revisions__meta",children:[(0,me.jsx)("img",{alt:g,src:v}),g]}),y&&(0,me.jsx)(Xd,{revision:l,previousRevision:u<e.length?e[u+1]:{}})]})}),y&&(w?(0,me.jsx)("p",{className:"edit-site-global-styles-screen-revisions__applied-text",children:(0,b.__)("These styles are already applied to your site.")}):(0,me.jsx)(x.Button,{size:"compact",variant:"primary",className:"edit-site-global-styles-screen-revisions__apply-button",onClick:i,children:_?(0,b.__)("Reset to defaults"):(0,b.__)("Apply")}))]},d)}))})},Qd=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})}),$d=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})});function eh({currentPage:e,numPages:t,changePage:s,totalItems:n,className:i,disabled:r=!1,buttonVariant:o="tertiary",label:a=(0,b.__)("Pagination Navigation")}){return(0,me.jsxs)(x.__experimentalHStack,{expanded:!1,as:"nav","aria-label":a,spacing:3,justify:"flex-start",className:Qt("edit-site-pagination",i),children:[(0,me.jsx)(x.__experimentalText,{variant:"muted",className:"edit-site-pagination__total",children:(0,b.sprintf)((0,b._n)("%s item","%s items",n),n)}),(0,me.jsxs)(x.__experimentalHStack,{expanded:!1,spacing:1,children:[(0,me.jsx)(x.Button,{variant:o,onClick:()=>s(1),__experimentalIsFocusable:!0,disabled:r||1===e,label:(0,b.__)("First page"),icon:Qd,size:"compact"}),(0,me.jsx)(x.Button,{variant:o,onClick:()=>s(e-1),__experimentalIsFocusable:!0,disabled:r||1===e,label:(0,b.__)("Previous page"),icon:zn,size:"compact"})]}),(0,me.jsx)(x.__experimentalText,{variant:"muted",children:(0,b.sprintf)((0,b._x)("%1$s of %2$s","paging"),e,t)}),(0,me.jsxs)(x.__experimentalHStack,{expanded:!1,spacing:1,children:[(0,me.jsx)(x.Button,{variant:o,onClick:()=>s(e+1),__experimentalIsFocusable:!0,disabled:r||e===t,label:(0,b.__)("Next page"),icon:Gn,size:"compact"}),(0,me.jsx)(x.Button,{variant:o,onClick:()=>s(t),__experimentalIsFocusable:!0,disabled:r||e===t,label:(0,b.__)("Last page"),icon:$d,size:"compact"})]})]})}const{GlobalStylesContext:th,areGlobalStyleConfigsEqual:sh}=se(y.privateApis);const nh=function(){const{goTo:e}=(0,x.__experimentalUseNavigator)(),{user:t,setUserConfig:s}=(0,d.useContext)(th),{blocks:n,editorCanvasContainerView:i}=(0,l.useSelect)((e=>({editorCanvasContainerView:se(e(Kt)).getEditorCanvasContainerView(),blocks:e(y.store).getBlocks()})),[]),[r,o]=(0,d.useState)(1),[a,c]=(0,d.useState)([]),{revisions:u,isLoading:h,hasUnsavedChanges:p,revisionsCount:f}=Zd({query:{per_page:10,page:r}}),m=Math.ceil(f/10),[g,v]=(0,d.useState)(t),[w,_]=(0,d.useState)(!1),{setEditorCanvasContainerView:S}=se((0,l.useDispatch)(Kt)),j=sh(g,t),C=()=>{e("/");S("global-styles-revisions:style-book"===i?"style-book":void 0)},k=e=>{s((()=>e)),_(!1),C()};(0,d.useEffect)((()=>{i&&i.startsWith("global-styles-revisions")||e("/")}),[i]),(0,d.useEffect)((()=>{!h&&u.length&&c(u)}),[u,h]);const E=u[0],P=g?.id,I=!!E?.id&&!j&&!P;(0,d.useEffect)((()=>{I&&v(E)}),[I,E]);const T=!!P&&"unsaved"!==P&&!j,O=!!a.length;return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(Ei,{title:f&&(0,b.sprintf)((0,b.__)("Revisions (%s)"),f),description:(0,b.__)('Click on previously saved styles to preview them. To restore a selected version to the editor, hit "Apply." When you\'re ready, use the Save button to save your changes.'),onBack:C}),!O&&(0,me.jsx)(x.Spinner,{className:"edit-site-global-styles-screen-revisions__loading"}),O&&("global-styles-revisions:style-book"===i?(0,me.jsx)(Ad,{userConfig:g,isSelected:()=>{},onClose:()=>{S("global-styles-revisions")}}):(0,me.jsx)(Gd,{blocks:n,userConfig:g,closeButtonLabel:(0,b.__)("Close revisions")})),(0,me.jsx)(Jd,{onChange:v,selectedRevisionId:P,userRevisions:a,canApplyRevision:T,onApplyRevision:()=>p?_(!0):k(g)}),m>1&&(0,me.jsx)("div",{className:"edit-site-global-styles-screen-revisions__footer",children:(0,me.jsx)(eh,{className:"edit-site-global-styles-screen-revisions__pagination",currentPage:r,numPages:m,changePage:o,totalItems:f,disabled:h,label:(0,b.__)("Global Styles pagination navigation")})}),w&&(0,me.jsx)(x.__experimentalConfirmDialog,{isOpen:w,confirmButtonText:(0,b.__)("Apply"),onConfirm:()=>k(g),onCancel:()=>_(!1),size:"medium",children:(0,b.__)("Are you sure you want to apply this revision? Any unsaved changes will be lost.")})]})},{useGlobalStylesReset:ih}=se(y.privateApis),{Slot:rh,Fill:oh}=(0,x.createSlotFill)("GlobalStylesMenu");function ah(){const[e,t]=ih(),{toggle:s}=(0,l.useDispatch)(f.store),{canEditCSS:n}=(0,l.useSelect)((e=>{const{getEntityRecord:t,__experimentalGetCurrentGlobalStylesId:s}=e(_.store),n=s(),i=n?t("root","globalStyles",n):void 0;return{canEditCSS:!!i?._links?.["wp:action-edit-css"]}}),[]),{setEditorCanvasContainerView:i}=se((0,l.useDispatch)(Kt)),{goTo:r}=(0,x.__experimentalUseNavigator)(),o=()=>{i("global-styles-css"),r("/css")};return(0,me.jsx)(oh,{children:(0,me.jsx)(x.DropdownMenu,{icon:Ln,label:(0,b.__)("More"),toggleProps:{size:"compact"},children:({onClose:i})=>(0,me.jsxs)(me.Fragment,{children:[(0,me.jsxs)(x.MenuGroup,{children:[n&&(0,me.jsx)(x.MenuItem,{onClick:o,children:(0,b.__)("Additional CSS")}),(0,me.jsx)(x.MenuItem,{onClick:()=>{s("core/edit-site","welcomeGuideStyles"),i()},children:(0,b.__)("Welcome Guide")})]}),(0,me.jsx)(x.MenuGroup,{children:(0,me.jsx)(x.MenuItem,{onClick:()=>{t(),i()},disabled:!e,children:(0,b.__)("Reset styles")})})]})})})}function lh({className:e,...t}){return(0,me.jsx)(x.__experimentalNavigatorScreen,{className:["edit-site-global-styles-sidebar__navigator-screen",e].filter(Boolean).join(" "),...t})}function ch({parentMenu:e,blockStyles:t,blockName:s}){return t.map(((t,n)=>(0,me.jsx)(lh,{path:e+"/variations/"+t.name,children:(0,me.jsx)(nr,{name:s,variation:t.name})},n)))}function uh({name:e,parentMenu:t=""}){const s=(0,l.useSelect)((t=>{const{getBlockStyles:s}=t(o.store);return s(e)}),[e]);return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(lh,{path:t+"/colors/palette",children:(0,me.jsx)(Su,{name:e})}),!!s?.length&&(0,me.jsx)(ch,{parentMenu:t,blockStyles:s,blockName:e})]})}function dh(){const e=(0,x.__experimentalUseNavigator)(),{path:t}=e.location;return(0,me.jsx)(Ad,{isSelected:e=>t===`/blocks/${encodeURIComponent(e)}`||t.startsWith(`/blocks/${encodeURIComponent(e)}/`),onSelect:t=>{e.goTo("/blocks/"+encodeURIComponent(t))}})}function hh(){const e=(0,x.__experimentalUseNavigator)(),{selectedBlockName:t,selectedBlockClientId:s}=(0,l.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockName:s}=e(y.store),n=t();return{selectedBlockName:s(n),selectedBlockClientId:n}}),[]),n=Ni(t);(0,d.useEffect)((()=>{if(!s||!n)return;const i=e.location.path;if("/blocks"!==i&&!i.startsWith("/blocks/"))return;const r="/blocks/"+encodeURIComponent(t);r!==i&&e.goTo(r,{skipFocus:!0})}),[s,t,n])}function ph(){const{goTo:e,location:t}=(0,x.__experimentalUseNavigator)(),s=(0,l.useSelect)((e=>se(e(Kt)).getEditorCanvasContainerView()),[]),n=t?.path,i="/revisions"===n;(0,d.useEffect)((()=>{switch(s){case"global-styles-revisions":case"global-styles-revisions:style-book":e("/revisions");break;case"global-styles-css":e("/css");break;case"style-book":i&&e("/");break;default:if("/"!==n&&!i)return;e("/")}}),[s,i,e])}const fh=function(){const e=(0,o.getBlockTypes)(),t=(0,l.useSelect)((e=>se(e(Kt)).getEditorCanvasContainerView()),[]);return(0,me.jsxs)(x.__experimentalNavigatorProvider,{className:"edit-site-global-styles-sidebar__navigator-provider",initialPath:"/",children:[(0,me.jsx)(lh,{path:"/",children:(0,me.jsx)(_i,{})}),(0,me.jsx)(lh,{path:"/variations",children:(0,me.jsx)(hd,{})}),(0,me.jsx)(lh,{path:"/blocks",children:(0,me.jsx)(Ri,{})}),(0,me.jsx)(lh,{path:"/typography",children:(0,me.jsx)(Uc,{})}),(0,me.jsx)(lh,{path:"/typography/text",children:(0,me.jsx)($c,{element:"text"})}),(0,me.jsx)(lh,{path:"/typography/link",children:(0,me.jsx)($c,{element:"link"})}),(0,me.jsx)(lh,{path:"/typography/heading",children:(0,me.jsx)($c,{element:"heading"})}),(0,me.jsx)(lh,{path:"/typography/caption",children:(0,me.jsx)($c,{element:"caption"})}),(0,me.jsx)(lh,{path:"/typography/button",children:(0,me.jsx)($c,{element:"button"})}),(0,me.jsx)(lh,{path:"/colors",children:(0,me.jsx)(uu,{})}),(0,me.jsx)(lh,{path:"/shadows",children:(0,me.jsx)(Uu,{})}),(0,me.jsx)(lh,{path:"/shadows/edit/:category/:slug",children:(0,me.jsx)(Wu,{})}),(0,me.jsx)(lh,{path:"/layout",children:(0,me.jsx)(cd,{})}),(0,me.jsx)(lh,{path:"/css",children:(0,me.jsx)(Fd,{})}),(0,me.jsx)(lh,{path:"/revisions",children:(0,me.jsx)(nh,{})}),e.map((e=>(0,me.jsx)(lh,{path:"/blocks/"+encodeURIComponent(e.name),children:(0,me.jsx)(nr,{name:e.name})},"menu-block-"+e.name))),(0,me.jsx)(uh,{}),e.map((e=>(0,me.jsx)(uh,{name:e.name,parentMenu:"/blocks/"+encodeURIComponent(e.name)},"screens-block-"+e.name))),"style-book"===t&&(0,me.jsx)(dh,{}),(0,me.jsx)(ah,{}),(0,me.jsx)(hh,{}),(0,me.jsx)(ph,{})]})},{ComplementaryArea:mh,ComplementaryAreaMoreMenuItem:gh}=se(h.privateApis);function vh({className:e,identifier:t,title:s,icon:n,children:i,closeLabel:r,header:o,headerClassName:a,panelClassName:l,isActiveByDefault:c}){return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(mh,{className:e,scope:"core",identifier:t,title:s,smallScreenTitle:s,icon:n,closeLabel:r,header:o,headerClassName:a,panelClassName:l,isActiveByDefault:c,children:i}),(0,me.jsx)(gh,{scope:"core",identifier:t,icon:n,children:s})]})}const{interfaceStore:yh}=se(h.privateApis);function xh(){const{shouldClearCanvasContainerView:e,isStyleBookOpened:t,showListViewByDefault:s,hasRevisions:n,isRevisionsOpened:i,isRevisionsStyleBookOpened:r}=(0,l.useSelect)((e=>{const{getActiveComplementaryArea:t}=e(yh),{getEditorCanvasContainerView:s,getCanvasMode:n}=se(e(Kt)),i=s(),r="visual"===e(h.store).getEditorMode(),o="edit"===n(),a=e(f.store).get("core","showListViewByDefault"),{getEntityRecord:l,__experimentalGetCurrentGlobalStylesId:c}=e(_.store),u=c(),d=u?l("root","globalStyles",u):void 0;return{isStyleBookOpened:"style-book"===i,shouldClearCanvasContainerView:"edit-site/global-styles"!==t("core")||!r||!o,showListViewByDefault:a,hasRevisions:!!d?._links?.["version-history"]?.[0]?.count,isRevisionsStyleBookOpened:"global-styles-revisions:style-book"===i,isRevisionsOpened:"global-styles-revisions"===i}}),[]),{setEditorCanvasContainerView:o}=se((0,l.useDispatch)(Kt));(0,d.useEffect)((()=>{e&&o(void 0)}),[e]);const{setIsListViewOpened:a}=(0,l.useDispatch)(h.store),{goTo:c}=(0,x.__experimentalUseNavigator)();return(0,me.jsx)(vh,{className:"edit-site-global-styles-sidebar",identifier:"edit-site/global-styles",title:(0,b.__)("Styles"),icon:Vs,closeLabel:(0,b.__)("Close Styles"),panelClassName:"edit-site-global-styles-sidebar__panel",header:(0,me.jsxs)(x.Flex,{className:"edit-site-global-styles-sidebar__header",gap:1,children:[(0,me.jsx)(x.FlexBlock,{style:{minWidth:"min-content"},children:(0,me.jsx)("h2",{className:"edit-site-global-styles-sidebar__header-title",children:(0,b.__)("Styles")})}),(0,me.jsx)(x.FlexItem,{children:(0,me.jsx)(x.Button,{icon:Dn,label:(0,b.__)("Style Book"),isPressed:t||r,__experimentalIsFocusable:!0,disabled:e,onClick:()=>{i?o("global-styles-revisions:style-book"):r?o("global-styles-revisions"):(a(t&&s),o(t?void 0:"style-book"))},size:"compact"})}),(0,me.jsx)(x.FlexItem,{children:(0,me.jsx)(x.Button,{label:(0,b.__)("Revisions"),icon:zs,onClick:()=>(a(!1),r?(c("/"),void o("style-book")):i?(c("/"),void o(void 0)):(c("/revisions"),void o(t?"global-styles-revisions:style-book":"global-styles-revisions"))),__experimentalIsFocusable:!0,disabled:!n,isPressed:i||r,size:"compact"})}),(0,me.jsx)(rh,{})]}),children:(0,me.jsx)(fh,{})})}const{useLocation:bh}=se(Xt.privateApis);function wh({className:e="edit-site-save-button__button",variant:t="primary",showTooltip:s=!0,showReviewMessage:n,icon:i,size:r,__next40pxDefaultSize:o=!1}){const{params:a}=bh(),{setIsSaveViewOpened:c}=(0,l.useDispatch)(Kt),{saveDirtyEntities:u}=se((0,l.useDispatch)(h.store)),{dirtyEntityRecords:d}=(0,h.useEntitiesSavedStatesIsDirty)(),{isSaving:p,isSaveViewOpen:f,previewingThemeName:m}=(0,l.useSelect)((e=>{const{isSavingEntityRecord:t,isResolving:s}=e(_.store),{isSaveViewOpened:n}=e(Kt),i=s("activateTheme"),r=sn();return{isSaving:d.some((e=>t(e.kind,e.name,e.key)))||i,isSaveViewOpen:n(),previewingThemeName:r?e(_.store).getTheme(r)?.name?.rendered:void 0}}),[d]),g=!!d.length;let v;1===d.length&&(a.postId?v=`${d[0].key}`===a.postId&&d[0].name===a.postType:a.path?.includes("wp_global_styles")&&(v="globalStyles"===d[0].name));const y=p||!g&&!tn(),w=tn()?p?(0,b.sprintf)((0,b.__)("Activating %s"),m):y?(0,b.__)("Saved"):g?(0,b.sprintf)((0,b.__)("Activate %s & Save"),m):(0,b.sprintf)((0,b.__)("Activate %s"),m):p?(0,b.__)("Saving"):y?(0,b.__)("Saved"):!v&&n?(0,b.sprintf)((0,b._n)("Review %d change…","Review %d changes…",d.length),d.length):(0,b.__)("Save"),S=v?()=>u({dirtyEntityRecords:d}):()=>c(!0);return(0,me.jsx)(x.Button,{variant:t,className:e,"aria-disabled":y,"aria-expanded":f,isBusy:p,onClick:y?void 0:S,label:w,shortcut:y?void 0:hs.displayShortcut.primary("s"),showTooltip:s,icon:i,__next40pxDefaultSize:o,size:r,children:w})}const{useHistory:_h}=se(Xt.privateApis);const{EntitiesSavedStatesExtensible:Sh,NavigableRegion:jh}=se(h.privateApis),Ch=({onClose:e})=>{var t,s;const n=(0,h.useEntitiesSavedStatesIsDirty)();let i;i=n.isDirty?(0,b.__)("Activate & Save"):(0,b.__)("Activate");const r=function(){const[e,t]=(0,d.useState)();return(0,d.useEffect)((()=>{const e=(0,ps.addQueryArgs)("/wp/v2/themes?status=active",{context:"edit",wp_theme_preview:""});fr()({path:e}).then((e=>t(e[0]))).catch((()=>{}))}),[]),e}(),o=(0,l.useSelect)((e=>e(_.store).getCurrentTheme()),[]),a=(0,me.jsx)("p",{children:(0,b.sprintf)((0,b.__)("Saving your changes will change your active theme from %1$s to %2$s."),null!==(t=r?.name?.rendered)&&void 0!==t?t:"...",null!==(s=o?.name?.rendered)&&void 0!==s?s:"...")}),c=function(){const e=_h(),{startResolution:t,finishResolution:s}=(0,l.useDispatch)(_.store);return async()=>{if(tn()){const n="themes.php?action=activate&stylesheet="+sn()+"&_wpnonce="+window.WP_BLOCK_THEME_ACTIVATE_NONCE;t("activateTheme"),await window.fetch(n),s("activateTheme");const{params:i}=e.getLocationWithParams();e.replace({...i,wp_theme_preview:void 0})}}}();return(0,me.jsx)(Sh,{...n,additionalPrompt:a,close:e,onSave:async e=>(await c(),e),saveEnabled:!0,saveLabel:i})},kh=({onClose:e,renderDialog:t})=>tn()?(0,me.jsx)(Ch,{onClose:e}):(0,me.jsx)(h.EntitiesSavedStates,{close:e,renderDialog:t});function Eh(){const{isSaveViewOpen:e,canvasMode:t,isDirty:s,isSaving:n}=(0,l.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:t,isSavingEntityRecord:s,isResolving:n}=e(_.store),i=t(),r=n("activateTheme"),{isSaveViewOpened:o,getCanvasMode:a}=se(e(Kt));return{isSaveViewOpen:o(),canvasMode:a(),isDirty:i.length>0,isSaving:i.some((e=>s(e.kind,e.name,e.key)))||r}}),[]),{setIsSaveViewOpened:i}=(0,l.useDispatch)(Kt),r=()=>i(!1);if("view"===t)return e?(0,me.jsx)(x.Modal,{className:"edit-site-save-panel__modal",onRequestClose:r,__experimentalHideHeader:!0,contentLabel:(0,b.__)("Save site, content, and template changes"),children:(0,me.jsx)(kh,{onClose:r})}):null;const o=tn()||s,a=n||!o;return(0,me.jsxs)(jh,{className:Qt("edit-site-layout__actions",{"is-entity-save-view-open":e}),ariaLabel:(0,b.__)("Save panel"),children:[(0,me.jsx)("div",{className:Qt("edit-site-editor__toggle-save-panel",{"screen-reader-text":e}),children:(0,me.jsx)(x.Button,{variant:"secondary",className:"edit-site-editor__toggle-save-panel-button",onClick:()=>i(!0),"aria-haspopup":"dialog",disabled:a,__experimentalIsFocusable:!0,children:(0,b.__)("Open save panel")})}),e&&(0,me.jsx)(kh,{onClose:r,renderDialog:!0})]})}const Ph=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"})}),Ih=window.wp.blob;function Th(){const{createErrorNotice:e}=(0,l.useDispatch)(w.store);return(0,me.jsx)(x.MenuItem,{role:"menuitem",icon:Ph,onClick:async function(){try{const e=await fr()({path:"/wp-block-editor/v1/export",parse:!1,headers:{Accept:"application/zip"}}),t=await e.blob(),s=e.headers.get("content-disposition").match(/=(.+)\.zip/),n=s[1]?s[1]:"edit-site-export";(0,Ih.downloadBlob)(n+".zip",t,"application/zip")}catch(t){let s={};try{s=await t.json()}catch(e){}const n=s.message&&"unknown_error"!==s.code?s.message:(0,b.__)("An error occurred while creating the site export.");e(n,{type:"snackbar"})}},info:(0,b.__)("Download your theme with updated templates and styles."),children:(0,b._x)("Export","site exporter menu item")})}function Oh(){const{toggle:e}=(0,l.useDispatch)(f.store);return(0,me.jsx)(x.MenuItem,{onClick:()=>e("core/edit-site","welcomeGuide"),children:(0,b.__)("Welcome Guide")})}const{ToolsMoreMenuGroup:Ah,PreferencesModal:Mh}=se(h.privateApis);function Nh(){const e=(0,l.useSelect)((e=>e(_.store).getCurrentTheme().is_block_theme),[]);return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsxs)(Ah,{children:[e&&(0,me.jsx)(Th,{}),(0,me.jsx)(Oh,{})]}),(0,me.jsx)(Mh,{})]})}const{useLocation:Fh}=se(Xt.privateApis);const Vh=function(){const{record:e,getTitle:t,isLoaded:s}=en();let n;var i;s&&(n=(0,b.sprintf)((0,b.__)("%1$s ‹ %2$s"),t(),null!==(i=Ue[e.type])&&void 0!==i?i:Ue[Me])),function(e){const t=Fh(),s=(0,l.useSelect)((e=>e(_.store).getEntityRecord("root","site")?.title),[]),n=(0,d.useRef)(!0);(0,d.useEffect)((()=>{n.current=!1}),[t]),(0,d.useEffect)((()=>{if(!n.current&&e&&s){const t=(0,b.sprintf)((0,b.__)("%1$s ‹ %2$s ‹ Editor — WordPress"),(0,cs.decodeEntities)(e),(0,cs.decodeEntities)(s));document.title=t,(0,Si.speak)(e,"assertive")}}),[e,s,t])}(s&&n)},{Editor:Rh,BackButton:Bh}=se(h.privateApis),{useHistory:Dh}=se(Xt.privateApis),{BlockKeyboardShortcuts:Lh}=se(a.privateApis);function zh({isLoading:e}){const{editedPostType:t,editedPostId:s,contextPostType:n,contextPostId:i,editorMode:r,canvasMode:o,isEditingPage:a,supportsGlobalStyles:c,showIconLabels:u,editorCanvasView:p,currentPostIsTrashed:m}=(0,l.useSelect)((e=>{const{getEditedPostContext:t,getCanvasMode:s,isPage:n,getEditedPostType:i,getEditedPostId:r}=se(e(Kt)),{get:o}=e(f.store),{getCurrentTheme:a}=e(_.store),{getEditorMode:l}=e(h.store),c=t();return{editedPostType:i(),editedPostId:r(),contextPostType:c?.postId?c.postType:void 0,contextPostId:c?.postId?c.postId:void 0,editorMode:l(),canvasMode:s(),isEditingPage:n(),supportsGlobalStyles:a()?.is_block_theme,showIconLabels:o("core","showIconLabels"),editorCanvasView:se(e(Kt)).getEditorCanvasContainerView(),currentPostIsTrashed:"trash"===e(h.store).getCurrentPostAttribute("status")}}),[]);Vh();const g=tn(),y=!function(){const e=(0,x.__experimentalUseSlotFills)(fd.privateKey);return!!e?.length}(),S=function(){const{canvasMode:e,currentPostIsTrashed:t}=(0,l.useSelect)((e=>{const{getCanvasMode:t}=se(e(Kt));return{canvasMode:t(),currentPostIsTrashed:"trash"===e(h.store).getCurrentPostAttribute("status")}}),[]),{setCanvasMode:s}=se((0,l.useDispatch)(Kt)),[n,i]=(0,d.useState)(!1);(0,d.useEffect)((()=>{"edit"===e&&i(!1)}),[e]);const r={"aria-label":(0,b.__)("Edit"),"aria-disabled":t,title:null,role:"button",tabIndex:0,onFocus:()=>i(!0),onBlur:()=>i(!1),onKeyDown:e=>{const{keyCode:n}=e;n!==hs.ENTER&&n!==hs.SPACE||t||(e.preventDefault(),s("edit"))},onClick:()=>{s("edit")},onClickCapture:e=>{t&&(e.preventDefault(),e.stopPropagation())},readonly:!0};return{className:Qt("edit-site-visual-editor__editor-canvas",{"is-focused":n&&"view"===e}),..."view"===e?r:{}}}(),j="edit"===o,C="view"===o||"visual"===r,k=!!i,E=(0,v.useInstanceId)(Sn,"edit-site-editor__loading-progress"),P=Nn(),I=(0,d.useMemo)((()=>[...P.styles,{css:`body{${"view"===o?"min-height: 100vh; "+(m?"":"cursor: pointer;"):""}}}`}]),[P.styles,o,m]),{setCanvasMode:T}=se((0,l.useDispatch)(Kt)),{createSuccessNotice:O}=(0,l.useDispatch)(w.store),A=Dh(),M=(0,d.useCallback)(((e,t)=>{switch(e){case"move-to-trash":case"delete-post":A.push({postType:t[0].type});break;case"duplicate-post":{const e=t[0],s="string"==typeof e.title?e.title:e.title?.rendered;O((0,b.sprintf)((0,b.__)('"%s" successfully created.'),(0,cs.decodeEntities)(s)),{type:"snackbar",id:"duplicate-post-action",actions:[{label:(0,b.__)("Edit"),onClick:()=>{A.push({postId:e.id,postType:e.type,canvas:"edit"})}}]})}}}),[A,O]),N=!e;return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(bn,{}),(0,me.jsx)(h.EditorKeyboardShortcutsRegister,{}),j&&(0,me.jsx)(Lh,{}),C&&(0,me.jsx)(Pn,{}),N?null:(0,me.jsx)(Sn,{id:E}),j&&(0,me.jsx)(yn,{}),N&&(0,me.jsxs)(Rh,{postType:k?n:t,postId:k?i:s,templateId:k?s:void 0,settings:P,className:Qt("edit-site-editor__editor-interface",{"show-icon-labels":u}),styles:I,enableRegionNavigation:!1,customSaveButton:g&&(0,me.jsx)(wh,{size:"compact"}),customSavePanel:g&&(0,me.jsx)(Eh,{}),forceDisableBlockTools:!y,title:y?void 0:gd(p),iframeProps:S,onActionPerformed:M,extraSidebarPanels:!a&&(0,me.jsx)(Bn.Slot,{}),children:[j&&(0,me.jsx)(Bh,{children:({length:e})=>e<=1&&(0,me.jsx)(x.Button,{label:(0,b.__)("Open Navigation"),className:"edit-site-layout__view-mode-toggle",onClick:()=>T("view"),children:(0,me.jsx)(ms,{className:"edit-site-layout__view-mode-toggle-icon"})})}),(0,me.jsx)(Nh,{}),c&&(0,me.jsx)(xh,{})]})]})}const Gh=(0,d.memo)((function({view:e,onChangeView:t,paginationInfo:{totalItems:s=0,totalPages:n}}){var i;if(!s||!n)return null;const r=null!==(i=e.page)&&void 0!==i?i:1;return!!s&&1!==n&&(0,me.jsxs)(x.__experimentalHStack,{expanded:!1,spacing:6,justify:"end",className:"dataviews-pagination",children:[(0,me.jsx)(x.__experimentalHStack,{justify:"flex-start",expanded:!1,spacing:2,className:"dataviews-pagination__page-selection",children:(0,d.createInterpolateElement)((0,b.sprintf)((0,b._x)("Page <CurrentPageControl /> of %s","paging"),n),{CurrentPageControl:(0,me.jsx)(x.SelectControl,{"aria-label":(0,b.__)("Current page"),value:e.page?.toString(),options:Array.from(Array(n)).map(((e,t)=>{const s=t+1;return{value:s.toString(),label:s.toString()}})),onChange:s=>{t({...e,page:+s})},size:"compact",__nextHasNoMarginBottom:!0})})}),(0,me.jsxs)(x.__experimentalHStack,{expanded:!1,spacing:1,children:[(0,me.jsx)(x.Button,{onClick:()=>t({...e,page:r-1}),disabled:1===r,__experimentalIsFocusable:!0,label:(0,b.__)("Previous page"),icon:zn,showTooltip:!0,size:"compact",tooltipPosition:"top"}),(0,me.jsx)(x.Button,{onClick:()=>t({...e,page:r+1}),disabled:r>=n,__experimentalIsFocusable:!0,label:(0,b.__)("Next page"),icon:Gn,showTooltip:!0,size:"compact",tooltipPosition:"top"})]})]})})),Hh=Gh,{lock:Uh,unlock:Wh}=(0,ee.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/dataviews"),qh="is",Zh="isNot",Kh="isAny",Yh="isNone",Xh="isAll",Jh="isNotAll",Qh=[qh,Zh,Kh,Yh,Xh,Jh],$h={[qh]:{key:"is-filter",label:(0,b.__)("Is")},[Zh]:{key:"is-not-filter",label:(0,b.__)("Is not")},[Kh]:{key:"is-any-filter",label:(0,b.__)("Is any")},[Yh]:{key:"is-none-filter",label:(0,b.__)("Is none")},[Xh]:{key:"is-all-filter",label:(0,b.__)("Is all")},[Jh]:{key:"is-not-all-filter",label:(0,b.__)("Is not all")}},ep=["asc","desc"],tp={asc:"↑",desc:"↓"},sp={asc:"ascending",desc:"descending"},np={asc:(0,b.__)("Sort ascending"),desc:(0,b.__)("Sort descending")},ip="table",rp="grid",op=(0,me.jsx)(us.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,me.jsx)(us.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"})}),ap=(0,me.jsx)(us.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,me.jsx)(us.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})}),lp=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.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"})}),cp=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.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"})}),up=(0,me.jsx)(us.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,me.jsx)(us.Path,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z"})}),dp=(0,me.jsx)(us.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,me.jsx)(us.Path,{d:"M4.67 10.664s-2.09 1.11-2.917 1.582l.494.87 1.608-.914.002.002c.343.502.86 1.17 1.563 1.84.348.33.742.663 1.185.976L5.57 16.744l.858.515 1.02-1.701a9.1 9.1 0 0 0 4.051 1.18V19h1v-2.263a9.1 9.1 0 0 0 4.05-1.18l1.021 1.7.858-.514-1.034-1.723c.442-.313.837-.646 1.184-.977.703-.669 1.22-1.337 1.563-1.839l.002-.003 1.61.914.493-.87c-1.75-.994-2.918-1.58-2.918-1.58l-.003.005a8.29 8.29 0 0 1-.422.689 10.097 10.097 0 0 1-1.36 1.598c-1.218 1.16-3.042 2.293-5.544 2.293-2.503 0-4.327-1.132-5.546-2.293a10.099 10.099 0 0 1-1.359-1.599 8.267 8.267 0 0 1-.422-.689l-.003-.005Z"})});function hp({selection:e,onSelectionChange:t,item:s,data:n,getItemId:i,primaryField:r,disabled:o}){const a=i(s),l=!o&&e.includes(a);let c;return c=r?.getValue&&s?(0,b.sprintf)(l?(0,b.__)("Deselect item: %s"):(0,b.__)("Select item: %s"),r.getValue({item:s})):l?(0,b.__)("Select a new item"):(0,b.__)("Deselect item"),(0,me.jsx)(x.CheckboxControl,{className:"dataviews-view-table-selection-checkbox",__nextHasNoMarginBottom:!0,"aria-label":c,"aria-disabled":o,checked:l,onChange:()=>{o||t(l?n.filter((t=>{const s=i?.(t);return s!==a&&e.includes(s)})):n.filter((t=>{const s=i?.(t);return s===a||e.includes(s)})))}})}const{DropdownMenuV2:pp,DropdownMenuGroupV2:fp,DropdownMenuItemV2:mp,DropdownMenuItemLabelV2:gp,kebabCase:vp}=Wh(x.privateApis);function yp({action:e,onClick:t,items:s}){const n="string"==typeof e.label?e.label:e.label(s);return(0,me.jsx)(x.Button,{label:n,icon:e.icon,isDestructive:e.isDestructive,size:"compact",onClick:t})}function xp({action:e,onClick:t,items:s}){const n="string"==typeof e.label?e.label:e.label(s);return(0,me.jsx)(mp,{onClick:t,hideOnClick:!("RenderModal"in e),children:(0,me.jsx)(gp,{children:n})})}function bp({action:e,items:t,closeModal:s}){const n="string"==typeof e.label?e.label:e.label(t);return(0,me.jsx)(x.Modal,{title:e.modalHeader||n,__experimentalHideHeader:!!e.hideModalHeader,onRequestClose:null!=s?s:()=>{},overlayClassName:`dataviews-action-modal dataviews-action-modal__${vp(e.id)}`,children:(0,me.jsx)(e.RenderModal,{items:t,closeModal:s,onActionStart:e.onActionStart,onActionPerformed:e.onActionPerformed})})}function wp({action:e,items:t,ActionTrigger:s,isBusy:n}){const[i,r]=(0,d.useState)(!1),o={action:e,onClick:()=>{r(!0)},items:t,isBusy:n};return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(s,{...o}),i&&(0,me.jsx)(bp,{action:e,items:t,closeModal:()=>r(!1)})]})}function _p({actions:e,item:t}){return(0,me.jsx)(fp,{children:e.map((e=>"RenderModal"in e?(0,me.jsx)(wp,{action:e,items:[t],ActionTrigger:xp},e.id):(0,me.jsx)(xp,{action:e,onClick:()=>e.callback([t]),items:[t]},e.id)))})}function Sp({item:e,actions:t,isCompact:s}){const{primaryActions:n,eligibleActions:i}=(0,d.useMemo)((()=>{const s=t.filter((t=>!t.isEligible||t.isEligible(e)));return{primaryActions:s.filter((e=>e.isPrimary&&!!e.icon)),eligibleActions:s}}),[t,e]);return s?(0,me.jsx)(jp,{item:e,actions:i}):(0,me.jsxs)(x.__experimentalHStack,{spacing:1,justify:"flex-end",className:"dataviews-item-actions",style:{flexShrink:"0",width:"auto"},children:[!!n.length&&n.map((t=>"RenderModal"in t?(0,me.jsx)(wp,{action:t,items:[e],ActionTrigger:yp},t.id):(0,me.jsx)(yp,{action:t,onClick:()=>t.callback([e]),items:[e]},t.id))),(0,me.jsx)(jp,{item:e,actions:i})]})}function jp({item:e,actions:t}){return(0,me.jsx)(pp,{trigger:(0,me.jsx)(x.Button,{size:"compact",icon:Ln,label:(0,b.__)("Actions"),__experimentalIsFocusable:!0,disabled:!t.length,className:"dataviews-all-actions-button"}),placement:"bottom-end",children:(0,me.jsx)(_p,{actions:t,item:e})})}function Cp(e){let t=e.filterBy?.operators;return t&&Array.isArray(t)||(t=[Kh,Yh]),t=t.filter((e=>Qh.includes(e))),(t.includes(qh)||t.includes(Zh))&&(t=t.filter((e=>[qh,Zh].includes(e)))),t}const{DropdownMenuV2:kp,DropdownMenuGroupV2:Ep,DropdownMenuItemV2:Pp,DropdownMenuSeparatorV2:Ip}=Wh(x.privateApis);function Tp(e,t){return(0,d.useMemo)((()=>e.some((e=>e.supportsBulk&&(!e.isEligible||e.isEligible(t))))),[e,t])}function Op({action:e,selectedItems:t,setActionWithModal:s,onMenuOpenChange:n}){const i=(0,d.useMemo)((()=>t.filter((t=>!e.isEligible||e.isEligible(t)))),[e,t]),{RenderModal:r,hideModalHeader:o}=e,a=(0,d.useCallback)((()=>{s(void 0)}),[s]),l="string"==typeof e.label?e.label:e.label(t);return(0,me.jsx)(x.Modal,{title:o?void 0:l,__experimentalHideHeader:!!o,onRequestClose:a,overlayClassName:"dataviews-action-modal",children:(0,me.jsx)(r,{items:i,closeModal:a,onActionPerformed:()=>n(!1)})})}function Ap({action:e,selectedItems:t,setActionWithModal:s}){const n=(0,d.useMemo)((()=>t.filter((t=>!e.isEligible||e.isEligible(t)))),[e,t]),i="RenderModal"in e;return(0,me.jsx)(Pp,{disabled:0===n.length,hideOnClick:!i,onClick:async()=>{i?s(e):await e.callback(n)},suffix:n.length>0?n.length:void 0,children:e.label},e.id)}function Mp({actions:e,selectedItems:t,setActionWithModal:s}){return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(Ep,{children:e.map((e=>(0,me.jsx)(Ap,{action:e,selectedItems:t,setActionWithModal:s},e.id)))}),(0,me.jsx)(Ip,{})]})}function Np({data:e,actions:t,selection:s,onSelectionChange:n,getItemId:i}){const r=(0,d.useMemo)((()=>t.filter((e=>e.supportsBulk))),[t]),[o,a]=(0,d.useState)(!1),[l,c]=(0,d.useState)(),u=(0,d.useMemo)((()=>e.filter((e=>r.some((t=>!t.isEligible||t.isEligible(e)))))),[e,r]),h=u.length,p=(0,d.useMemo)((()=>e.filter((e=>s.includes(i(e))&&u.includes(e)))),[s,e,i,u]),f=p.length===h;return 0===r.length?null:(0,me.jsxs)(me.Fragment,{children:[(0,me.jsxs)(kp,{open:o,onOpenChange:a,label:(0,b.__)("Bulk actions"),style:{minWidth:"240px"},trigger:(0,me.jsx)(x.Button,{className:"dataviews-bulk-edit-button",__next40pxDefaultSize:!0,variant:"tertiary",size:"compact",children:p.length?(0,b.sprintf)((0,b._n)("Edit %d item","Edit %d items",p.length),p.length):(0,b.__)("Bulk edit")}),children:[(0,me.jsx)(Mp,{actions:r,setActionWithModal:c,selectedItems:p}),(0,me.jsxs)(Ep,{children:[(0,me.jsx)(Pp,{disabled:f,hideOnClick:!1,onClick:()=>{n(u)},suffix:h,children:(0,b.__)("Select all")}),(0,me.jsx)(Pp,{disabled:0===s.length,hideOnClick:!1,onClick:()=>{n([])},children:(0,b.__)("Deselect")})]})]}),l&&(0,me.jsx)(Op,{action:l,selectedItems:p,setActionWithModal:c,onMenuOpenChange:a})]})}const{DropdownMenuV2:Fp,DropdownMenuGroupV2:Vp,DropdownMenuItemV2:Rp,DropdownMenuRadioItemV2:Bp,DropdownMenuItemLabelV2:Dp,DropdownMenuSeparatorV2:Lp}=Wh(x.privateApis);function zp({children:e}){return d.Children.toArray(e).filter(Boolean).map(((e,t)=>(0,me.jsxs)(d.Fragment,{children:[t>0&&(0,me.jsx)(Lp,{}),e]},t)))}const Gp=(0,d.forwardRef)((function({field:e,view:t,onChangeView:s,onHide:n,setOpenedFilter:i},r){const o=!1!==e.enableHiding,a=!1!==e.enableSorting,l=t.sort?.field===e.id,c=Cp(e),u=!(t.filters?.some((t=>e.id===t.field))||!e.elements?.length||!c.length||e.filterBy?.isPrimary);return a||o||u?(0,me.jsx)(Fp,{align:"start",trigger:(0,me.jsxs)(x.Button,{size:"compact",className:"dataviews-view-table-header-button",ref:r,variant:"tertiary",children:[e.header,t.sort&&l&&(0,me.jsx)("span",{"aria-hidden":"true",children:tp[t.sort.direction]})]}),style:{minWidth:"240px"},children:(0,me.jsxs)(zp,{children:[a&&(0,me.jsx)(Vp,{children:ep.map((n=>{const i=t.sort&&l&&t.sort.direction===n,r=`${e.id}-${n}`;return(0,me.jsx)(Bp,{name:"view-table-sorting",value:r,checked:i,onChange:()=>{s({...t,sort:{field:e.id,direction:n}})},children:(0,me.jsx)(Dp,{children:np[n]})},r)}))}),u&&(0,me.jsx)(Vp,{children:(0,me.jsx)(Rp,{prefix:(0,me.jsx)(x.Icon,{icon:up}),onClick:()=>{i(e.id),s({...t,page:1,filters:[...t.filters||[],{field:e.id,value:void 0,operator:c[0]}]})},children:(0,me.jsx)(Dp,{children:(0,b.__)("Add filter")})})}),o&&(0,me.jsx)(Rp,{prefix:(0,me.jsx)(x.Icon,{icon:dp}),onClick:()=>{n(e),s({...t,hiddenFields:t.hiddenFields.concat(e.id)})},children:(0,me.jsx)(Dp,{children:(0,b.__)("Hide")})})]})}):e.header}));function Hp({selection:e,onSelectionChange:t,data:s,actions:n,getItemId:i}){const r=(0,d.useMemo)((()=>s.filter((e=>n.some((t=>t.supportsBulk&&(!t.isEligible||t.isEligible(e))))))),[s,n]),o=s.filter((t=>e.includes(i(t))&&r.includes(t))),a=o.length===r.length;return(0,me.jsx)(x.CheckboxControl,{className:"dataviews-view-table-selection-checkbox",__nextHasNoMarginBottom:!0,checked:a,indeterminate:!a&&!!o.length,onChange:()=>{t(a?[]:r)},"aria-label":a?(0,b.__)("Deselect all"):(0,b.__)("Select all")})}function Up({hasBulkActions:e,item:t,actions:s,id:n,visibleFields:i,primaryField:r,selection:o,getItemId:a,onSelectionChange:l,data:c}){const u=Tp(s,t),h=u&&o.includes(n),[p,f]=(0,d.useState)(!1),m=(0,d.useRef)(!1);return(0,me.jsxs)("tr",{className:Qt("dataviews-view-table__row",{"is-selected":u&&h,"is-hovered":p,"has-bulk-actions":u}),onMouseEnter:()=>{f(!0)},onMouseLeave:()=>{f(!1)},onTouchStart:()=>{m.current=!0},onClick:()=>{u&&(m.current||"Range"===document.getSelection()?.type||l(h?c.filter((e=>{const t=a?.(e);return t!==n&&o.includes(t)})):c.filter((e=>{const t=a?.(e);return t===n||o.includes(t)}))))},children:[e&&(0,me.jsx)("td",{className:"dataviews-view-table__checkbox-column",style:{width:"1%"},children:(0,me.jsx)("div",{className:"dataviews-view-table__cell-content-wrapper",children:(0,me.jsx)(hp,{item:t,selection:o,onSelectionChange:l,getItemId:a,data:c,primaryField:r,disabled:!u})})}),i.map((e=>(0,me.jsx)("td",{style:{width:e.width||void 0,minWidth:e.minWidth||void 0,maxWidth:e.maxWidth||void 0},children:(0,me.jsx)("div",{className:Qt("dataviews-view-table__cell-content-wrapper",{"dataviews-view-table__primary-field":r?.id===e.id}),children:e.render({item:t})})},e.id))),!!s?.length&&(0,me.jsx)("td",{className:"dataviews-view-table__actions-column",onClick:e=>e.stopPropagation(),children:(0,me.jsx)(Sp,{item:t,actions:s})})]})}const Wp=function({actions:e,data:t,fields:s,getItemId:n,isLoading:i=!1,onChangeView:r,onSelectionChange:o,selection:a,setOpenedFilter:l,view:c}){const u=(0,d.useRef)(new Map),h=(0,d.useRef)(),[p,f]=(0,d.useState)(),m=function(e,t){return(0,d.useMemo)((()=>t.some((t=>e.some((e=>e.supportsBulk&&(!e.isEligible||e.isEligible(t))))))),[e,t])}(e,t);(0,d.useEffect)((()=>{h.current&&(h.current.focus(),h.current=void 0)}));const g=(0,d.useId)();if(p)return h.current=p,void f(void 0);const v=e=>{const t=u.current.get(e.id),s=t?u.current.get(t.fallback):void 0;f(s?.node)},y=s.filter((e=>!c.hiddenFields.includes(e.id)&&![c.layout.mediaField].includes(e.id))),w=!!t?.length,_=s.find((e=>e.id===c.layout.primaryField));return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsxs)("table",{className:"dataviews-view-table","aria-busy":i,"aria-describedby":g,children:[(0,me.jsx)("thead",{children:(0,me.jsxs)("tr",{className:"dataviews-view-table__row",children:[m&&(0,me.jsx)("th",{className:"dataviews-view-table__checkbox-column",style:{width:"1%"},"data-field-id":"selection",scope:"col",children:(0,me.jsx)(Hp,{selection:a,onSelectionChange:o,data:t,actions:e,getItemId:n})}),y.map(((e,t)=>(0,me.jsx)("th",{style:{width:e.width||void 0,minWidth:e.minWidth||void 0,maxWidth:e.maxWidth||void 0},"data-field-id":e.id,"aria-sort":c.sort?.field===e.id?sp[c.sort.direction]:void 0,scope:"col",children:(0,me.jsx)(Gp,{ref:s=>{s?u.current.set(e.id,{node:s,fallback:y[t>0?t-1:1]?.id}):u.current.delete(e.id)},field:e,view:c,onChangeView:r,onHide:v,setOpenedFilter:l})},e.id))),!!e?.length&&(0,me.jsx)("th",{"data-field-id":"actions",className:"dataviews-view-table__actions-column",children:(0,me.jsx)("span",{className:"dataviews-view-table-header",children:(0,b.__)("Actions")})})]})}),(0,me.jsx)("tbody",{children:w&&t.map(((s,i)=>(0,me.jsx)(Up,{item:s,hasBulkActions:m,actions:e,id:n(s)||i.toString(),visibleFields:y,primaryField:_,selection:a,getItemId:n,onSelectionChange:o,data:t},n(s))))})]}),(0,me.jsx)("div",{className:Qt({"dataviews-loading":i,"dataviews-no-results":!w&&!i}),id:g,children:!w&&(0,me.jsx)("p",{children:i?(0,me.jsx)(x.Spinner,{}):(0,b.__)("No results")})})]})};function qp({selection:e,data:t,onSelectionChange:s,getItemId:n,item:i,actions:r,mediaField:o,primaryField:a,visibleFields:l,badgeFields:c,columnFields:u}){const d=Tp(r,i),h=n(i),p=e.includes(h);return(0,me.jsxs)(x.__experimentalVStack,{spacing:0,className:Qt("dataviews-view-grid__card",{"is-selected":d&&p}),onClickCapture:i=>{if(i.ctrlKey||i.metaKey){if(i.stopPropagation(),i.preventDefault(),!d)return;s(p?t.filter((t=>{const s=n?.(t);return s!==h&&e.includes(s)})):t.filter((t=>{const s=n?.(t);return s===h||e.includes(s)})))}},children:[(0,me.jsx)("div",{className:"dataviews-view-grid__media",children:o?.render({item:i})}),(0,me.jsxs)(x.__experimentalHStack,{justify:"space-between",className:"dataviews-view-grid__title-actions",children:[(0,me.jsx)(hp,{item:i,selection:e,onSelectionChange:s,getItemId:n,data:t,primaryField:a,disabled:!d}),(0,me.jsx)(x.__experimentalHStack,{className:"dataviews-view-grid__primary-field",children:a?.render({item:i})}),(0,me.jsx)(Sp,{item:i,actions:r,isCompact:!0})]}),!!c?.length&&(0,me.jsx)(x.__experimentalHStack,{className:"dataviews-view-grid__badge-fields",spacing:2,wrap:!0,alignment:"top",justify:"flex-start",children:c.map((e=>{const t=e.render({item:i});return t?(0,me.jsx)(x.FlexItem,{className:"dataviews-view-grid__field-value",children:t},e.id):null}))}),!!l?.length&&(0,me.jsx)(x.__experimentalVStack,{className:"dataviews-view-grid__fields",spacing:3,children:l.map((e=>{const t=e.render({item:i});return t?(0,me.jsx)(x.Flex,{className:Qt("dataviews-view-grid__field",u?.includes(e.id)?"is-column":"is-row"),gap:1,justify:"flex-start",expanded:!0,style:{height:"auto"},direction:u?.includes(e.id)?"column":"row",children:(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(x.FlexItem,{className:"dataviews-view-grid__field-name",children:e.header}),(0,me.jsx)(x.FlexItem,{className:"dataviews-view-grid__field-value",style:{maxHeight:"none"},children:t})]})},e.id):null}))})]},h)}const{useCompositeStoreV2:Zp,CompositeV2:Kp,CompositeItemV2:Yp,CompositeRowV2:Xp,DropdownMenuV2:Jp}=Wh(x.privateApis);function Qp({actions:e,id:t,isSelected:s,item:n,mediaField:i,onSelect:r,primaryField:o,store:a,visibleFields:l}){const c=(0,d.useRef)(null),u=`${t}-label`,h=`${t}-description`,[p,f]=(0,d.useState)(!1);(0,d.useEffect)((()=>{s&&c.current?.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}),[s]);const{primaryAction:m,eligibleActions:g}=(0,d.useMemo)((()=>{const t=e.filter((e=>!e.isEligible||e.isEligible(n))),s=t.filter((e=>e.isPrimary&&!!e.icon));return{primaryAction:s?.[0],eligibleActions:t}}),[e,n]),[v,y]=(0,d.useState)(!1),w=m&&("string"==typeof m.label?m.label:m.label([n]));return(0,me.jsx)(Xp,{ref:c,render:(0,me.jsx)("li",{}),role:"row",className:Qt({"is-selected":s,"is-hovered":p}),onMouseEnter:()=>{f(!0)},onMouseLeave:()=>{f(!1)},children:(0,me.jsxs)(x.__experimentalHStack,{className:"dataviews-view-list__item-wrapper",alignment:"center",spacing:0,children:[(0,me.jsx)("div",{role:"gridcell",children:(0,me.jsx)(Yp,{store:a,render:(0,me.jsx)("div",{}),role:"button",id:t,"aria-pressed":s,"aria-labelledby":u,"aria-describedby":h,className:"dataviews-view-list__item",onClick:()=>r(n),children:(0,me.jsxs)(x.__experimentalHStack,{spacing:3,justify:"start",alignment:"flex-start",children:[(0,me.jsx)("div",{className:"dataviews-view-list__media-wrapper",children:i?.render({item:n})||(0,me.jsx)("div",{className:"dataviews-view-list__media-placeholder"})}),(0,me.jsxs)(x.__experimentalVStack,{spacing:0,children:[(0,me.jsx)("span",{className:"dataviews-view-list__primary-field",id:u,children:o?.render({item:n})}),(0,me.jsx)("div",{className:"dataviews-view-list__fields",id:h,children:l.map((e=>(0,me.jsxs)("div",{className:"dataviews-view-list__field",children:[(0,me.jsx)(x.VisuallyHidden,{as:"span",className:"dataviews-view-list__field-label",children:e.header}),(0,me.jsx)("span",{className:"dataviews-view-list__field-value",children:e.render({item:n})})]},e.id)))})]})]})})}),g?.length>0&&(0,me.jsxs)(x.__experimentalHStack,{spacing:1,justify:"flex-end",className:"dataviews-view-list__item-actions",style:{flexShrink:"0",width:"auto"},children:[m&&"RenderModal"in m&&(0,me.jsx)("div",{role:"gridcell",children:(0,me.jsx)(Yp,{store:a,render:(0,me.jsx)(x.Button,{label:w,icon:m.icon,isDestructive:m.isDestructive,size:"compact",onClick:()=>y(!0)}),children:v&&(0,me.jsx)(bp,{action:m,items:[n],closeModal:()=>y(!1)})})}),m&&!("RenderModal"in m)&&(0,me.jsx)("div",{role:"gridcell",children:(0,me.jsx)(Yp,{store:a,render:(0,me.jsx)(x.Button,{label:w,icon:m.icon,isDestructive:m.isDestructive,size:"compact",onClick:()=>m.callback([n])})})},m.id),(0,me.jsx)("div",{role:"gridcell",children:(0,me.jsx)(Jp,{trigger:(0,me.jsx)(Yp,{store:a,render:(0,me.jsx)(x.Button,{size:"compact",icon:Ln,label:(0,b.__)("Actions"),__experimentalIsFocusable:!0,disabled:!e.length,onKeyDown:e=>{"ArrowDown"===e.key&&(e.preventDefault(),a.move(a.down())),"ArrowUp"===e.key&&(e.preventDefault(),a.move(a.up()))}})}),placement:"bottom-end",children:(0,me.jsx)(_p,{actions:g,item:n})})})]})]})})}const $p=[{type:ip,label:(0,b.__)("Table"),component:Wp,icon:op},{type:rp,label:(0,b.__)("Grid"),component:function({actions:e,data:t,fields:s,getItemId:n,isLoading:i,onSelectionChange:r,selection:o,view:a}){const l=s.find((e=>e.id===a.layout.mediaField)),c=s.find((e=>e.id===a.layout.primaryField)),{visibleFields:u,badgeFields:d}=s.reduce(((e,t)=>{if(a.hiddenFields.includes(t.id)||[a.layout.mediaField,a.layout.primaryField].includes(t.id))return e;return e[a.layout.badgeFields?.includes(t.id)?"badgeFields":"visibleFields"].push(t),e}),{visibleFields:[],badgeFields:[]}),h=!!t?.length;return(0,me.jsxs)(me.Fragment,{children:[h&&(0,me.jsx)(x.__experimentalGrid,{gap:8,columns:2,alignment:"top",className:"dataviews-view-grid","aria-busy":i,children:t.map((s=>(0,me.jsx)(qp,{selection:o,data:t,onSelectionChange:r,getItemId:n,item:s,actions:e,mediaField:l,primaryField:c,visibleFields:u,badgeFields:d,columnFields:a.layout.columnFields},n(s))))}),!h&&(0,me.jsx)("div",{className:Qt({"dataviews-loading":i,"dataviews-no-results":!i}),children:(0,me.jsx)("p",{children:i?(0,me.jsx)(x.Spinner,{}):(0,b.__)("No results")})})]})},icon:ap},{type:"list",label:(0,b.__)("List"),component:function e(t){const{actions:s,data:n,fields:i,getItemId:r,isLoading:o,onSelectionChange:a,selection:l,view:c}=t,u=(0,v.useInstanceId)(e,"view-list"),h=n?.findLast((e=>l.includes(r(e)))),p=i.find((e=>e.id===c.layout.mediaField)),f=i.find((e=>e.id===c.layout.primaryField)),m=i.filter((e=>!c.hiddenFields.includes(e.id)&&![c.layout.primaryField,c.layout.mediaField].includes(e.id))),g=(0,d.useCallback)((e=>a([e])),[a]),y=(0,d.useCallback)((e=>e?`${u}-${r(e)}`:void 0),[u,r]),w=Zp({defaultActiveId:y(h)}),_=w.useState((e=>e.items.some((t=>t.id===e.activeId))));(0,d.useEffect)((()=>{_||(w.down()?w.move(w.down()):w.up()&&w.move(w.up()))}),[_]);const S=n?.length;return S?(0,me.jsx)(Kp,{id:u,render:(0,me.jsx)("ul",{}),className:"dataviews-view-list",role:"grid",store:w,children:n.map((e=>{const t=y(e);return(0,me.jsx)(Qp,{id:t,actions:s,item:e,isSelected:e===h,onSelect:g,mediaField:p,primaryField:f,store:w,visibleFields:m},t)}))}):(0,me.jsx)("div",{className:Qt({"dataviews-loading":o,"dataviews-no-results":!S&&!o}),children:!S&&(0,me.jsx)("p",{children:o?(0,me.jsx)(x.Spinner,{}):(0,b.__)("No results")})})},icon:(0,b.isRTL)()?lp:cp}],{DropdownMenuV2:ef,DropdownMenuGroupV2:tf,DropdownMenuItemV2:sf,DropdownMenuRadioItemV2:nf,DropdownMenuCheckboxItemV2:rf,DropdownMenuItemLabelV2:of}=Wh(x.privateApis);function af({view:e,onChangeView:t,supportedLayouts:s}){let n=$p;if(s&&(n=n.filter((e=>s.includes(e.type)))),1===n.length)return null;const i=n.find((t=>e.type===t.type));return(0,me.jsx)(ef,{trigger:(0,me.jsx)(sf,{suffix:(0,me.jsx)("span",{"aria-hidden":"true",children:i?.label}),children:(0,me.jsx)(of,{children:(0,b.__)("Layout")})}),children:n.map((s=>(0,me.jsx)(nf,{value:s.type,name:"view-actions-available-view",checked:s.type===e.type,hideOnClick:!0,onChange:s=>{switch(s.target.value){case"list":case"grid":case"table":return t({...e,type:s.target.value,layout:{}})}throw new Error("Invalid dataview")},children:(0,me.jsx)(of,{children:s.label})},s.type)))})}const lf=[10,20,50,100];function cf({view:e,onChangeView:t}){return(0,me.jsx)(ef,{trigger:(0,me.jsx)(sf,{suffix:(0,me.jsx)("span",{"aria-hidden":"true",children:e.perPage}),children:(0,me.jsx)(of,{children:(0,b.__)("Items per page")})}),children:lf.map((s=>(0,me.jsx)(nf,{value:s,name:"view-actions-page-size",checked:e.perPage===s,onChange:()=>{t({...e,perPage:s,page:1})},children:(0,me.jsx)(of,{children:s})},s)))})}function uf({view:e,onChangeView:t,fields:s}){const n=s.filter((t=>!1!==t.enableHiding&&t.id!==e.layout.mediaField));return n?.length?(0,me.jsx)(ef,{trigger:(0,me.jsx)(sf,{children:(0,me.jsx)(of,{children:(0,b.__)("Fields")})}),children:n?.map((s=>(0,me.jsx)(rf,{value:s.id,checked:!e.hiddenFields?.includes(s.id),onChange:()=>{t({...e,hiddenFields:e.hiddenFields?.includes(s.id)?e.hiddenFields.filter((e=>e!==s.id)):[...e.hiddenFields||[],s.id]})},children:(0,me.jsx)(of,{children:s.header})},s.id)))}):null}function df({fields:e,view:t,onChangeView:s}){const n=e.filter((e=>!1!==e.enableSorting));if(!n?.length)return null;const i=e.find((e=>e.id===t.sort?.field));return(0,me.jsx)(ef,{trigger:(0,me.jsx)(sf,{suffix:(0,me.jsx)("span",{"aria-hidden":"true",children:i?.header}),children:(0,me.jsx)(of,{children:(0,b.__)("Sort by")})}),children:n?.map((e=>{const n=t.sort?.direction;return(0,me.jsx)(ef,{trigger:(0,me.jsx)(sf,{children:(0,me.jsx)(of,{children:e.header})}),style:{minWidth:"220px"},children:ep.map((r=>{const o=void 0!==i&&n===r&&e.id===i.id,a=`${e.id}-${r}`;return(0,me.jsx)(nf,{name:"view-actions-sorting",value:a,checked:o,onChange:()=>{s({...t,sort:{field:e.id,direction:r}})},children:(0,me.jsx)(of,{children:np[r]})},a)}))},e.id)}))})}const hf=(0,d.memo)((function({fields:e,view:t,onChangeView:s,supportedLayouts:n}){return(0,me.jsx)(ef,{trigger:(0,me.jsx)(x.Button,{size:"compact",icon:hr,label:(0,b.__)("View options")}),children:(0,me.jsxs)(tf,{children:[(0,me.jsx)(af,{view:t,onChangeView:s,supportedLayouts:n}),(0,me.jsx)(df,{fields:e,view:t,onChangeView:s}),(0,me.jsx)(uf,{fields:e,view:t,onChangeView:s}),(0,me.jsx)(cf,{view:t,onChangeView:s})]})})}));var pf={id:null};function ff(e,t){return t&&e.item(t)||null}var mf=Symbol("FOCUS_SILENTLY");function gf(e,t,s){if(!t)return!1;if(t===s)return!1;const n=e.item(t.id);return!!n&&(!s||n.element!==s)}var vf=Object.defineProperty,yf=Object.defineProperties,xf=Object.getOwnPropertyDescriptors,bf=Object.getOwnPropertySymbols,wf=Object.prototype.hasOwnProperty,_f=Object.prototype.propertyIsEnumerable,Sf=(e,t,s)=>t in e?vf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,jf=(e,t)=>{for(var s in t||(t={}))wf.call(t,s)&&Sf(e,s,t[s]);if(bf)for(var s of bf(t))_f.call(t,s)&&Sf(e,s,t[s]);return e},Cf=(e,t)=>yf(e,xf(t)),kf=(e,t)=>{var s={};for(var n in e)wf.call(e,n)&&t.indexOf(n)<0&&(s[n]=e[n]);if(null!=e&&bf)for(var n of bf(e))t.indexOf(n)<0&&_f.call(e,n)&&(s[n]=e[n]);return s},Ef=i(1609),Pf=i.t(Ef,2),If=Object.defineProperty,Tf=Object.defineProperties,Of=Object.getOwnPropertyDescriptors,Af=Object.getOwnPropertySymbols,Mf=Object.prototype.hasOwnProperty,Nf=Object.prototype.propertyIsEnumerable,Ff=(e,t,s)=>t in e?If(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Vf=(e,t)=>{for(var s in t||(t={}))Mf.call(t,s)&&Ff(e,s,t[s]);if(Af)for(var s of Af(t))Nf.call(t,s)&&Ff(e,s,t[s]);return e},Rf=(e,t)=>Tf(e,Of(t)),Bf=(e,t)=>{var s={};for(var n in e)Mf.call(e,n)&&t.indexOf(n)<0&&(s[n]=e[n]);if(null!=e&&Af)for(var n of Af(e))t.indexOf(n)<0&&Nf.call(e,n)&&(s[n]=e[n]);return s};function Df(...e){}function Lf(e,t){return"function"==typeof Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function zf(...e){return(...t)=>{for(const s of e)"function"==typeof s&&s(...t)}}function Gf(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Hf(e){return e}function Uf(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function Wf(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function qf(...e){for(const t of e)if(void 0!==t)return t}function Zf(e){return function(e){return!!e&&!!(0,Ef.isValidElement)(e)&&"ref"in e}(e)?e.ref:null}var Kf,Yf="undefined"!=typeof window&&!!(null==(Kf=window.document)?void 0:Kf.createElement);function Xf(e){return e?e.ownerDocument||e:document}function Jf(e,t=!1){const{activeElement:s}=Xf(e);if(!(null==s?void 0:s.nodeName))return null;if("IFRAME"===s.tagName&&s.contentDocument)return Jf(s.contentDocument.body,t);if(t){const e=s.getAttribute("aria-activedescendant");if(e){const t=Xf(s).getElementById(e);if(t)return t}}return s}function Qf(e,t){return e===t||e.contains(t)}function $f(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==em.indexOf(e.type)}var em=["button","color","file","image","reset","submit"];function tm(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function sm(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,s="TEXTAREA"===e.tagName;return t||s||!1}catch(e){return!1}}function nm(e,t){const s=null==e?void 0:e.getAttribute("role");return s&&-1!==["dialog","menu","listbox","tree","grid"].indexOf(s)?s:t}function im(e,t){var s;const n=nm(e);if(!n)return t;return null!=(s={menu:"menuitem",listbox:"option",tree:"treeitem",grid:"gridcell"}[n])?s:t}function rm(e){if(!e)return null;if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}return rm(e.parentElement)||document.scrollingElement||document.body}function om(e,...t){/text|search|password|tel|url/i.test(e.type)&&e.setSelectionRange(...t)}function am(){return Yf&&!!navigator.maxTouchPoints}function lm(){return!!Yf&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function cm(){return Yf&&lm()&&/apple/i.test(navigator.vendor)}function um(e){return Boolean(e.currentTarget&&!Qf(e.currentTarget,e.target))}function dm(e){return e.target===e.currentTarget}function hm(e,t){const s=new FocusEvent("blur",t),n=e.dispatchEvent(s),i=Rf(Vf({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",i)),n}function pm(e,t){const s=new MouseEvent("click",t);return e.dispatchEvent(s)}function fm(e,t){const s=t||e.currentTarget,n=e.relatedTarget;return!n||!Qf(s,n)}function mm(e,t,s){const n=requestAnimationFrame((()=>{e.removeEventListener(t,i,!0),s()})),i=()=>{cancelAnimationFrame(n),s()};return e.addEventListener(t,i,{once:!0,capture:!0}),n}function gm(e,t,s,n=window){const i=[];try{n.document.addEventListener(e,t,s);for(const r of Array.from(n.frames))i.push(gm(e,t,s,r))}catch(e){}return()=>{try{n.document.removeEventListener(e,t,s)}catch(e){}i.forEach((e=>e()))}}var vm=jf({},Pf),ym=vm.useId,xm=(vm.useDeferredValue,vm.useInsertionEffect),bm=Yf?Ef.useLayoutEffect:Ef.useEffect;function wm(e){const t=(0,Ef.useRef)(e);return bm((()=>{t.current=e})),t}function _m(e){const t=(0,Ef.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return xm?xm((()=>{t.current=e})):t.current=e,(0,Ef.useCallback)(((...e)=>{var s;return null==(s=t.current)?void 0:s.call(t,...e)}),[])}function Sm(...e){return(0,Ef.useMemo)((()=>{if(e.some(Boolean))return t=>{e.forEach((e=>function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)))}}),e)}function jm(e){if(ym){const t=ym();return e||t}const[t,s]=(0,Ef.useState)(e);return bm((()=>{if(e||t)return;const n=Math.random().toString(36).substr(2,6);s(`id-${n}`)}),[e,t]),e||t}function Cm(e,t){const s=e=>{if("string"==typeof e)return e},[n,i]=(0,Ef.useState)((()=>s(t)));return bm((()=>{const n=e&&"current"in e?e.current:e;i((null==n?void 0:n.tagName.toLowerCase())||s(t))}),[e,t]),n}function km(e,t){const s=(0,Ef.useRef)(!1);(0,Ef.useEffect)((()=>{if(s.current)return e();s.current=!0}),t),(0,Ef.useEffect)((()=>()=>{s.current=!1}),[])}Symbol("setNextState");function Em(e){return _m("function"==typeof e?e:()=>e)}function Pm(e,t,s=[]){const n=(0,Ef.useCallback)((s=>(e.wrapElement&&(s=e.wrapElement(s)),t(s))),[...s,e.wrapElement]);return Cf(jf({},e),{wrapElement:n})}var Im=!1,Tm=0,Om=0;function Am(e){(function(e){const t=e.movementX||e.screenX-Tm,s=e.movementY||e.screenY-Om;return Tm=e.screenX,Om=e.screenY,t||s||!1})(e)&&(Im=!0)}function Mm(){Im=!1}function Nm(e){return Ef.forwardRef(((t,s)=>e(jf({ref:s},t))))}function Fm(e){const t=Nm(e);return Ef.memo(t)}function Vm(e,t){const s=t,{as:n,wrapElement:i,render:r}=s,o=kf(s,["as","wrapElement","render"]);let a;const l=Sm(t.ref,Zf(r));if(n&&"string"!=typeof n)a=(0,me.jsx)(n,Cf(jf({},o),{render:r}));else if(Ef.isValidElement(r)){const e=Cf(jf({},r.props),{ref:l});a=Ef.cloneElement(r,function(e,t){const s=jf({},e);for(const n in t){if(!Lf(t,n))continue;if("className"===n){const n="className";s[n]=e[n]?`${e[n]} ${t[n]}`:t[n];continue}if("style"===n){const n="style";s[n]=e[n]?jf(jf({},e[n]),t[n]):t[n];continue}const i=t[n];if("function"==typeof i&&n.startsWith("on")){const t=e[n];if("function"==typeof t){s[n]=(...e)=>{i(...e),t(...e)};continue}}s[n]=i}return s}(o,e))}else if(r)a=r(o);else if("function"==typeof t.children){0;const e=o,{children:s}=e,n=kf(e,["children"]);a=t.children(n)}else a=n?(0,me.jsx)(n,jf({},o)):(0,me.jsx)(e,jf({},o));return i?i(a):a}function Rm(e){return(t={})=>{const s=e(t),n={};for(const e in s)Lf(s,e)&&void 0!==s[e]&&(n[e]=s[e]);return n}}function Bm(e=[],t=[]){const s=Ef.createContext(void 0),n=Ef.createContext(void 0),i=()=>Ef.useContext(s),r=t=>e.reduceRight(((e,s)=>(0,me.jsx)(s,Cf(jf({},t),{children:e}))),(0,me.jsx)(s.Provider,jf({},t)));return{context:s,scopedContext:n,useContext:i,useScopedContext:(e=!1)=>{const t=Ef.useContext(n),s=i();return e?t:t||s},useProviderContext:()=>{const e=Ef.useContext(n),t=i();if(!e||e!==t)return t},ContextProvider:r,ScopedContextProvider:e=>(0,me.jsx)(r,Cf(jf({},e),{children:t.reduceRight(((t,s)=>(0,me.jsx)(s,Cf(jf({},e),{children:t}))),(0,me.jsx)(n.Provider,jf({},e)))}))}}var Dm=Bm(),Lm=Dm.useContext,zm=(Dm.useScopedContext,Dm.useProviderContext,Bm([Dm.ContextProvider],[Dm.ScopedContextProvider])),Gm=zm.useContext,Hm=(zm.useScopedContext,zm.useProviderContext),Um=zm.ContextProvider,Wm=zm.ScopedContextProvider,qm=(0,Ef.createContext)(void 0),Zm=(0,Ef.createContext)(void 0),Km="";function Ym(){Km=""}function Xm(e,t){var s;const n=(null==(s=e.element)?void 0:s.textContent)||e.children;return!!n&&Gf(n).trim().toLowerCase().startsWith(t.toLowerCase())}function Jm(e,t,s){if(!s)return e;const n=e.find((e=>e.id===s));return n&&Xm(n,t)?Km!==t&&Xm(n,Km)?e:(Km=t,function(e,t,s=!1){const n=e.findIndex((e=>e.id===t));return[...e.slice(n+1),...s?[pf]:[],...e.slice(0,n)]}(e.filter((e=>Xm(e,Km))),s).filter((e=>e.id!==s))):e}var Qm=Rm((e=>{var t=e,{store:s,typeahead:n=!0}=t,i=kf(t,["store","typeahead"]);const r=Gm();Uf(s=s||r,!1);const o=i.onKeyDownCapture,a=(0,Ef.useRef)(0),l=_m((e=>{if(null==o||o(e),e.defaultPrevented)return;if(!n)return;if(!s)return;const{items:t,activeId:i}=s.getState();if(!function(e){const t=e.target;return(!t||!sm(t))&&(!(" "!==e.key||!Km.length)||1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(e.key))}(e))return Ym();let r=function(e){return e.filter((e=>!e.disabled))}(t);if(!function(e,t){if(dm(e))return!0;const s=e.target;return!!s&&t.some((e=>e.element===s))}(e,r))return Ym();e.preventDefault(),window.clearTimeout(a.current),a.current=window.setTimeout((()=>{Km=""}),500);const l=e.key.toLowerCase();Km+=l,r=Jm(r,l,i);const c=r.find((e=>Xm(e,Km)));c?s.move(c.id):Ym()}));return i=Cf(jf({},i),{onKeyDownCapture:l})})),$m=Nm((e=>Vm("div",Qm(e))));var eg="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 tg(e){return!!tm(e,eg)&&(!!function(e){const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)&&!function(e,t){if("closest"in e)return e.closest(t);do{if(tm(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}(e,"[inert]"))}function sg(e){const t=Jf(e);if(!t)return!1;if(t===e)return!0;const s=t.getAttribute("aria-activedescendant");return!!s&&s===e.id}function ng(e){const t=Jf(e);if(!t)return!1;if(Qf(e,t))return!0;const s=t.getAttribute("aria-activedescendant");return!!s&&("id"in e&&(s===e.id||!!e.querySelector(`#${CSS.escape(s)}`)))}function ig(e){const t=e.relatedTarget;return(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null}var rg=Symbol("composite-hover");var og=Rm((e=>{var t=e,{store:s,focusOnHover:n=!0,blurOnHoverEnd:i=!!n}=t,r=kf(t,["store","focusOnHover","blurOnHoverEnd"]);const o=Gm();Uf(s=s||o,!1);const a=((0,Ef.useEffect)((()=>{gm("mousemove",Am,!0),gm("mousedown",Mm,!0),gm("mouseup",Mm,!0),gm("keydown",Mm,!0),gm("scroll",Mm,!0)}),[]),_m((()=>Im))),l=r.onMouseMove,c=Em(n),u=_m((e=>{if(null==l||l(e),!e.defaultPrevented&&a()&&c(e)){if(!ng(e.currentTarget)){const e=null==s?void 0:s.getState().baseElement;e&&!sg(e)&&e.focus()}null==s||s.setActiveId(e.currentTarget.id)}})),d=r.onMouseLeave,h=Em(i),p=_m((e=>{var t;null==d||d(e),e.defaultPrevented||a()&&(function(e){const t=ig(e);return!!t&&Qf(e.currentTarget,t)}(e)||function(e){let t=ig(e);if(!t)return!1;do{if(Lf(t,rg)&&t[rg])return!0;t=t.parentElement}while(t);return!1}(e)||c(e)&&h(e)&&(null==s||s.setActiveId(null),null==(t=null==s?void 0:s.getState().baseElement)||t.focus()))})),f=(0,Ef.useCallback)((e=>{e&&(e[rg]=!0)}),[]);return r=Cf(jf({},r),{ref:Sm(f,r.ref),onMouseMove:u,onMouseLeave:p})})),ag=Fm((e=>Vm("div",og(e))));function lg(e,t){const s=e.__unstableInternals;return Uf(s,"Invalid store"),s[t]}function cg(e,...t){let s=e,n=s,i=Symbol(),r=Df;const o=new Set,a=new Set,l=new Set,c=new Set,u=new Set,d=new WeakMap,h=new WeakMap,p=(e,t,s=c)=>(s.add(t),h.set(t,e),()=>{var e;null==(e=d.get(t))||e(),d.delete(t),h.delete(t),s.delete(t)}),f=(e,r,o=!1)=>{if(!Lf(s,e))return;const l=function(e,t){if(function(e){return"function"==typeof e}(e))return e(function(e){return"function"==typeof e}(t)?t():t);return e}(r,s[e]);if(l===s[e])return;o||t.forEach((t=>{var s;null==(s=null==t?void 0:t.setState)||s.call(t,e,l)}));const p=s;s=Rf(Vf({},s),{[e]:l});const f=Symbol();i=f,a.add(e);const m=(t,n,i)=>{var r;const o=h.get(t);o&&!o.some((t=>i?i.has(t):t===e))||(null==(r=d.get(t))||r(),d.set(t,t(s,n)))};c.forEach((e=>{m(e,p)})),queueMicrotask((()=>{if(i!==f)return;const e=s;u.forEach((e=>{m(e,n,a)})),n=e,a.clear()}))},m={getState:()=>s,setState:f,__unstableInternals:{setup:e=>(l.add(e),()=>l.delete(e)),init:()=>{const e=o.size,n=Symbol();o.add(n);const i=()=>{o.delete(n),o.size||r()};if(e)return i;const a=(c=s,Object.keys(c)).map((e=>zf(...t.map((t=>{var s;const n=null==(s=null==t?void 0:t.getState)?void 0:s.call(t);if(n&&Lf(n,e))return pg(t,[e],(t=>{f(e,t[e],!0)}))})))));var c;const u=[];l.forEach((e=>u.push(e())));const d=t.map(dg);return r=zf(...a,...u,...d),i},subscribe:(e,t)=>p(e,t),sync:(e,t)=>(d.set(t,t(s,s)),p(e,t)),batch:(e,t)=>(d.set(t,t(s,n)),p(e,t,u)),pick:e=>cg(function(e,t){const s={};for(const n of t)Lf(e,n)&&(s[n]=e[n]);return s}(s,e),m),omit:e=>cg(function(e,t){const s=Vf({},e);for(const e of t)Lf(s,e)&&delete s[e];return s}(s,e),m)}};return m}function ug(e,...t){if(e)return lg(e,"setup")(...t)}function dg(e,...t){if(e)return lg(e,"init")(...t)}function hg(e,...t){if(e)return lg(e,"subscribe")(...t)}function pg(e,...t){if(e)return lg(e,"sync")(...t)}function fg(e,...t){if(e)return lg(e,"batch")(...t)}function mg(e,...t){if(e)return lg(e,"omit")(...t)}function gg(...e){const t=e.reduce(((e,t)=>{var s;const n=null==(s=null==t?void 0:t.getState)?void 0:s.call(t);return n?Vf(Vf({},e),n):e}),{});return cg(t,...e)}var vg=i(422),{useSyncExternalStore:yg}=vg,xg=()=>()=>{};function bg(e,t=Hf){const s=Ef.useCallback((t=>e?hg(e,null,t):xg()),[e]),n=()=>{const s="string"==typeof t?t:null,n="function"==typeof t?t:null,i=null==e?void 0:e.getState();return n?n(i):i&&s&&Lf(i,s)?i[s]:void 0};return yg(s,n,n)}function wg(e,t,s,n){const i=Lf(t,s)?t[s]:void 0,r=n?t[n]:void 0,o=wm({value:i,setValue:r});bm((()=>pg(e,[s],((e,t)=>{const{value:n,setValue:i}=o.current;i&&e[s]!==t[s]&&e[s]!==n&&i(e[s])}))),[e,s]),bm((()=>{if(void 0!==i)return e.setState(s,i),fg(e,[s],(()=>{void 0!==i&&e.setState(s,i)}))}))}function _g(e,t,s){return km(t,[s.store]),wg(e,s,"items","setItems"),e}function Sg(e,t,s){return wg(e=_g(e,t,s),s,"activeId","setActiveId"),wg(e,s,"includesBaseElement"),wg(e,s,"virtualFocus"),wg(e,s,"orientation"),wg(e,s,"rtl"),wg(e,s,"focusLoop"),wg(e,s,"focusWrap"),wg(e,s,"focusShift"),e}function jg(e,t,s){return km(t,[s.store,s.disclosure]),wg(e,s,"open","setOpen"),wg(e,s,"mounted","setMounted"),wg(e,s,"animated"),e}function Cg(e,t,s){return jg(e,t,s)}function kg(e,t,s){return km(t,[s.popover]),wg(e=Cg(e,t,s),s,"placement"),e}function Eg(e={}){return function(e={}){const t=gg(e.store,mg(e.disclosure,["contentElement","disclosureElement"])),s=null==t?void 0:t.getState(),n=qf(e.open,null==s?void 0:s.open,e.defaultOpen,!1),i=qf(e.animated,null==s?void 0:s.animated,!1),r=cg({open:n,animated:i,animating:!!i&&n,mounted:n,contentElement:qf(null==s?void 0:s.contentElement,null),disclosureElement:qf(null==s?void 0:s.disclosureElement,null)},t);return ug(r,(()=>pg(r,["animated","animating"],(e=>{e.animated||r.setState("animating",!1)})))),ug(r,(()=>hg(r,["open"],(()=>{r.getState().animated&&r.setState("animating",!0)})))),ug(r,(()=>pg(r,["open","animating"],(e=>{r.setState("mounted",e.open||e.animating)})))),Rf(Vf({},r),{setOpen:e=>r.setState("open",e),show:()=>r.setState("open",!0),hide:()=>r.setState("open",!1),toggle:()=>r.setState("open",(e=>!e)),stopAnimation:()=>r.setState("animating",!1),setContentElement:e=>r.setState("contentElement",e),setDisclosureElement:e=>r.setState("disclosureElement",e)})}(e)}function Pg(e){const t=e.map(((e,t)=>[t,e]));let s=!1;return t.sort((([e,t],[n,i])=>{const r=t.element,o=i.element;return r===o?0:r&&o?function(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}(r,o)?(e>n&&(s=!0),-1):(e<n&&(s=!0),1):0})),s?t.map((([e,t])=>t)):e}function Ig(e={}){var t;e.store;const s=null==(t=e.store)?void 0:t.getState(),n=qf(e.items,null==s?void 0:s.items,e.defaultItems,[]),i=new Map(n.map((e=>[e.id,e]))),r={items:n,renderedItems:qf(null==s?void 0:s.renderedItems,[])},o=function(e){return null==e?void 0:e.__unstablePrivateStore}(e.store),a=cg({items:n,renderedItems:r.renderedItems},o),l=cg(r,e.store),c=e=>{const t=Pg(e);a.setState("renderedItems",t),l.setState("renderedItems",t)};ug(l,(()=>dg(a))),ug(a,(()=>fg(a,["items"],(e=>{l.setState("items",e.items)})))),ug(a,(()=>fg(a,["renderedItems"],(e=>{let t=!0,s=requestAnimationFrame((()=>{const{renderedItems:t}=l.getState();e.renderedItems!==t&&c(e.renderedItems)}));if("function"!=typeof IntersectionObserver)return()=>cancelAnimationFrame(s);const n=function(e){var t;const s=e.find((e=>!!e.element)),n=[...e].reverse().find((e=>!!e.element));let i=null==(t=null==s?void 0:s.element)?void 0:t.parentElement;for(;i&&(null==n?void 0:n.element);){if(n&&i.contains(n.element))return i;i=i.parentElement}return Xf(i).body}(e.renderedItems),i=new IntersectionObserver((()=>{t?t=!1:(cancelAnimationFrame(s),s=requestAnimationFrame((()=>c(e.renderedItems))))}),{root:n});for(const t of e.renderedItems)t.element&&i.observe(t.element);return()=>{cancelAnimationFrame(s),i.disconnect()}}))));const u=(e,t,s=!1)=>{let n;t((t=>{const s=t.findIndex((({id:t})=>t===e.id)),r=t.slice();if(-1!==s){n=t[s];const o=Vf(Vf({},n),e);r[s]=o,i.set(e.id,o)}else r.push(e),i.set(e.id,e);return r}));return()=>{t((t=>{if(!n)return s&&i.delete(e.id),t.filter((({id:t})=>t!==e.id));const r=t.findIndex((({id:t})=>t===e.id));if(-1===r)return t;const o=t.slice();return o[r]=n,i.set(e.id,n),o}))}},d=e=>u(e,(e=>a.setState("items",e)),!0);return Rf(Vf({},l),{registerItem:d,renderItem:e=>zf(d(e),u(e,(e=>a.setState("renderedItems",e)))),item:e=>{if(!e)return null;let t=i.get(e);if(!t){const{items:s}=l.getState();t=s.find((t=>t.id===e)),t&&i.set(e,t)}return t||null},__unstablePrivateStore:a})}function Tg(e){const t=[];for(const s of e)t.push(...s);return t}function Og(e){return e.slice().reverse()}var Ag={id:null};function Mg(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function Ng(e,t){return e.filter((e=>e.rowId===t))}function Fg(e){const t=[];for(const s of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===s.rowId}));e?e.push(s):t.push([s])}return t}function Vg(e){let t=0;for(const{length:s}of e)s>t&&(t=s);return t}function Rg(e,t,s){const n=Vg(e);for(const i of e)for(let e=0;e<n;e+=1){const n=i[e];if(!n||s&&n.disabled){const n=0===e&&s?Mg(i):i[e-1];i[e]=n&&t!==n.id&&s?n:{id:"__EMPTY_ITEM__",disabled:!0,rowId:null==n?void 0:n.rowId}}}return e}function Bg(e){const t=Fg(e),s=Vg(t),n=[];for(let e=0;e<s;e+=1)for(const s of t){const t=s[e];t&&n.push(Rf(Vf({},t),{rowId:t.rowId?`${e}`:void 0}))}return n}function Dg(e={}){var t;const s=null==(t=e.store)?void 0:t.getState(),n=Ig(e),i=qf(e.activeId,null==s?void 0:s.activeId,e.defaultActiveId),r=cg(Rf(Vf({},n.getState()),{activeId:i,baseElement:qf(null==s?void 0:s.baseElement,null),includesBaseElement:qf(e.includesBaseElement,null==s?void 0:s.includesBaseElement,null===i),moves:qf(null==s?void 0:s.moves,0),orientation:qf(e.orientation,null==s?void 0:s.orientation,"both"),rtl:qf(e.rtl,null==s?void 0:s.rtl,!1),virtualFocus:qf(e.virtualFocus,null==s?void 0:s.virtualFocus,!1),focusLoop:qf(e.focusLoop,null==s?void 0:s.focusLoop,!1),focusWrap:qf(e.focusWrap,null==s?void 0:s.focusWrap,!1),focusShift:qf(e.focusShift,null==s?void 0:s.focusShift,!1)}),n,e.store);ug(r,(()=>pg(r,["renderedItems","activeId"],(e=>{r.setState("activeId",(t=>{var s;return void 0!==t?t:null==(s=Mg(e.renderedItems))?void 0:s.id}))}))));const o=(e,t,s,n)=>{var i,o;const{activeId:a,rtl:l,focusLoop:c,focusWrap:u,includesBaseElement:d}=r.getState(),h=l&&"vertical"!==t?Og(e):e;if(null==a)return null==(i=Mg(h))?void 0:i.id;const p=h.find((e=>e.id===a));if(!p)return null==(o=Mg(h))?void 0:o.id;const f=!!p.rowId,m=h.indexOf(p),g=h.slice(m+1),v=Ng(g,p.rowId);if(void 0!==n){const e=function(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(v,a),t=e.slice(n)[0]||e[e.length-1];return null==t?void 0:t.id}const y=function(e){return"vertical"===e?"horizontal":"horizontal"===e?"vertical":void 0}(f?t||"horizontal":t),x=c&&c!==y,b=f&&u&&u!==y;if(s=s||!f&&x&&d,x){const e=function(e,t,s=!1){const n=e.findIndex((e=>e.id===t));return[...e.slice(n+1),...s?[Ag]:[],...e.slice(0,n)]}(b&&!s?h:Ng(h,p.rowId),a,s),t=Mg(e,a);return null==t?void 0:t.id}if(b){const e=Mg(s?v:g,a);return s?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const w=Mg(v,a);return!w&&s?null:null==w?void 0:w.id};return Rf(Vf(Vf({},n),r),{setBaseElement:e=>r.setState("baseElement",e),setActiveId:e=>r.setState("activeId",e),move:e=>{void 0!==e&&(r.setState("activeId",e),r.setState("moves",(e=>e+1)))},first:()=>{var e;return null==(e=Mg(r.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=Mg(Og(r.getState().renderedItems)))?void 0:e.id},next:e=>{const{renderedItems:t,orientation:s}=r.getState();return o(t,s,!1,e)},previous:e=>{var t;const{renderedItems:s,orientation:n,includesBaseElement:i}=r.getState(),a=!!!(null==(t=Mg(s))?void 0:t.rowId)&&i;return o(Og(s),n,a,e)},down:e=>{const{activeId:t,renderedItems:s,focusShift:n,focusLoop:i,includesBaseElement:a}=r.getState(),l=n&&!e,c=Bg(Tg(Rg(Fg(s),t,l)));return o(c,"vertical",i&&"horizontal"!==i&&a,e)},up:e=>{const{activeId:t,renderedItems:s,focusShift:n,includesBaseElement:i}=r.getState(),a=n&&!e,l=Bg(Og(Tg(Rg(Fg(s),t,a))));return o(l,"vertical",i,e)}})}var Lg=cm()&&am();function zg(e={}){var t;e.store;const s=null==(t=e.store)?void 0:t.getState(),n=qf(e.activeId,null==s?void 0:s.activeId,e.defaultActiveId,null),i=Dg(Rf(Vf({},e),{activeId:n,includesBaseElement:qf(e.includesBaseElement,null==s?void 0:s.includesBaseElement,!0),orientation:qf(e.orientation,null==s?void 0:s.orientation,"vertical"),focusLoop:qf(e.focusLoop,null==s?void 0:s.focusLoop,!0),focusWrap:qf(e.focusWrap,null==s?void 0:s.focusWrap,!0),virtualFocus:qf(e.virtualFocus,null==s?void 0:s.virtualFocus,!Lg)})),r=function(e={}){var t=e,{popover:s}=t,n=Bf(t,["popover"]);const i=gg(n.store,mg(s,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),r=null==i?void 0:i.getState(),o=Eg(Rf(Vf({},n),{store:i})),a=qf(n.placement,null==r?void 0:r.placement,"bottom"),l=cg(Rf(Vf({},o.getState()),{placement:a,currentPlacement:a,anchorElement:qf(null==r?void 0:r.anchorElement,null),popoverElement:qf(null==r?void 0:r.popoverElement,null),arrowElement:qf(null==r?void 0:r.arrowElement,null),rendered:Symbol("rendered")}),o,i);return Rf(Vf(Vf({},o),l),{setAnchorElement:e=>l.setState("anchorElement",e),setPopoverElement:e=>l.setState("popoverElement",e),setArrowElement:e=>l.setState("arrowElement",e),render:()=>l.setState("rendered",Symbol("rendered"))})}(Rf(Vf({},e),{placement:qf(e.placement,null==s?void 0:s.placement,"bottom-start")})),o=qf(e.value,null==s?void 0:s.value,e.defaultValue,""),a=qf(e.selectedValue,null==s?void 0:s.selectedValue,e.defaultSelectedValue,""),l=Array.isArray(a),c=cg(Rf(Vf(Vf({},i.getState()),r.getState()),{value:o,selectedValue:a,resetValueOnSelect:qf(e.resetValueOnSelect,null==s?void 0:s.resetValueOnSelect,l),resetValueOnHide:qf(e.resetValueOnHide,null==s?void 0:s.resetValueOnHide,l),activeValue:null==s?void 0:s.activeValue}),i,r,e.store);return ug(c,(()=>pg(c,["resetValueOnHide","mounted"],(e=>{e.resetValueOnHide&&(e.mounted||c.setState("value",o))})))),ug(c,(()=>pg(c,["resetValueOnSelect","selectedValue"],(e=>{e.resetValueOnSelect&&c.setState("value",o)})))),ug(c,(()=>fg(c,["mounted"],(e=>{e.mounted||(c.setState("activeId",n),c.setState("moves",0))})))),ug(c,(()=>pg(c,["moves","activeId"],((e,t)=>{e.moves===t.moves&&c.setState("activeValue",void 0)})))),ug(c,(()=>fg(c,["moves","renderedItems"],((e,t)=>{if(e.moves===t.moves)return;const{activeId:s}=c.getState(),n=i.item(s);c.setState("activeValue",null==n?void 0:n.value)})))),Rf(Vf(Vf(Vf({},r),i),c),{setValue:e=>c.setState("value",e),setSelectedValue:e=>c.setState("selectedValue",e)})}function Gg(e={}){const[t,s]=function(e,t){const[s,n]=Ef.useState((()=>e(t)));bm((()=>dg(s)),[s]);const i=Ef.useCallback((e=>bg(s,e)),[s]);return[Ef.useMemo((()=>Cf(jf({},s),{useState:i})),[s,i]),_m((()=>{n((s=>e(jf(jf({},t),s.getState()))))}))]}(zg,e);return function(e,t,s){return wg(e=Sg(e=kg(e,t,s),t,s),s,"value","setValue"),wg(e,s,"selectedValue","setSelectedValue"),wg(e,s,"resetValueOnHide"),wg(e,s,"resetValueOnSelect"),e}(t,s,e)}var Hg=Bm(),Ug=(Hg.useContext,Hg.useScopedContext,Hg.useProviderContext),Wg=Bm([Hg.ContextProvider],[Hg.ScopedContextProvider]),qg=(Wg.useContext,Wg.useScopedContext,Wg.useProviderContext,Wg.ContextProvider),Zg=Wg.ScopedContextProvider,Kg=((0,Ef.createContext)(void 0),(0,Ef.createContext)(void 0),Bm([qg],[Zg])),Yg=(Kg.useContext,Kg.useScopedContext,Kg.useProviderContext),Xg=Kg.ContextProvider,Jg=Kg.ScopedContextProvider,Qg=Bm([Xg,Um],[Jg,Wm]),$g=(Qg.useContext,Qg.useScopedContext),ev=Qg.useProviderContext,tv=Qg.ContextProvider,sv=Qg.ScopedContextProvider,nv=(0,Ef.createContext)(void 0),iv=(0,Ef.createContext)(!1);function rv(e={}){const t=Gg(e);return(0,me.jsx)(tv,{value:t,children:e.children})}var ov=Rm((e=>{var t=e,{store:s}=t,n=kf(t,["store"]);const i=ev();Uf(s=s||i,!1);const r=s.useState((e=>{var t;return null==(t=e.baseElement)?void 0:t.id}));return n=jf({htmlFor:r},n)})),av=Fm((e=>Vm("label",ov(e))));var lv=Rm((e=>{var t=e,{store:s}=t,n=kf(t,["store"]);const i=Yg();return s=s||i,n=Cf(jf({},n),{ref:Sm(null==s?void 0:s.setAnchorElement,n.ref)})}));Nm((e=>Vm("div",lv(e))));var cv=(0,Ef.createContext)(!0),uv=cm(),dv=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function hv(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function pv(e,t,s,n,i){return e?t?s&&!n?-1:void 0:s?i:i||0:i}function fv(e,t){return _m((s=>{null==e||e(s),s.defaultPrevented||t&&(s.stopPropagation(),s.preventDefault())}))}var mv=!0;function gv(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(mv=!1))}function vv(e){e.metaKey||e.ctrlKey||e.altKey||(mv=!0)}var yv=Rm((e=>{var t=e,{focusable:s=!0,accessibleWhenDisabled:n,autoFocus:i,onFocusVisible:r}=t,o=kf(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const a=(0,Ef.useRef)(null);(0,Ef.useEffect)((()=>{s&&(gm("mousedown",gv,!0),gm("keydown",vv,!0))}),[s]),uv&&(0,Ef.useEffect)((()=>{if(!s)return;const e=a.current;if(!e)return;if(!hv(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const n=()=>queueMicrotask((()=>e.focus()));return t.forEach((e=>e.addEventListener("mouseup",n))),()=>{t.forEach((e=>e.removeEventListener("mouseup",n)))}}),[s]);const l=s&&Wf(o),c=!!l&&!n,[u,d]=(0,Ef.useState)(!1);(0,Ef.useEffect)((()=>{s&&c&&u&&d(!1)}),[s,c,u]),(0,Ef.useEffect)((()=>{if(!s)return;if(!u)return;const e=a.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{tg(e)||d(!1)}));return t.observe(e),()=>t.disconnect()}),[s,u]);const h=fv(o.onKeyPressCapture,l),p=fv(o.onMouseDownCapture,l),f=fv(o.onClickCapture,l),m=o.onMouseDown,g=_m((e=>{if(null==m||m(e),e.defaultPrevented)return;if(!s)return;const t=e.currentTarget;if(!uv)return;if(um(e))return;if(!$f(t)&&!hv(t))return;let n=!1;const i=()=>{n=!0};t.addEventListener("focusin",i,{capture:!0,once:!0}),mm(t,"mouseup",(()=>{t.removeEventListener("focusin",i,!0),n||function(e){!ng(e)&&tg(e)&&e.focus()}(t)}))})),v=(e,t)=>{if(t&&(e.currentTarget=t),!s)return;const n=e.currentTarget;n&&sg(n)&&(null==r||r(e),e.defaultPrevented||d(!0))},y=o.onKeyDownCapture,x=_m((e=>{if(null==y||y(e),e.defaultPrevented)return;if(!s)return;if(u)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!dm(e))return;const t=e.currentTarget;queueMicrotask((()=>v(e,t)))})),b=o.onFocusCapture,w=_m((e=>{if(null==b||b(e),e.defaultPrevented)return;if(!s)return;if(!dm(e))return void d(!1);const t=e.currentTarget,n=()=>v(e,t);mv||function(e){const{tagName:t,readOnly:s,type:n}=e;return"TEXTAREA"===t&&!s||"SELECT"===t&&!s||("INPUT"!==t||s?!!e.isContentEditable:dv.includes(n))}(e.target)?queueMicrotask(n):!function(e){return"combobox"===e.getAttribute("role")&&!!e.dataset.name}(e.target)?d(!1):mm(e.target,"focusout",n)})),_=o.onBlur,S=_m((e=>{null==_||_(e),s&&fm(e)&&d(!1)})),j=(0,Ef.useContext)(cv),C=_m((e=>{s&&i&&e&&j&&queueMicrotask((()=>{sg(e)||tg(e)&&e.focus()}))})),k=Cm(a,o.as),E=s&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(k),P=s&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(k),I=c?jf({pointerEvents:"none"},o.style):o.style;return o=Cf(jf({"data-focus-visible":s&&u?"":void 0,"data-autofocus":!!i||void 0,"aria-disabled":!!l||void 0},o),{ref:Sm(a,C,o.ref),style:I,tabIndex:pv(s,c,E,P,o.tabIndex),disabled:!(!P||!c)||void 0,contentEditable:l?void 0:o.contentEditable,onKeyPressCapture:h,onClickCapture:f,onMouseDownCapture:p,onMouseDown:g,onKeyDownCapture:x,onFocusCapture:w,onBlur:S})}));Nm((e=>Vm("div",e=yv(e))));function xv(e,t,s){return _m((n=>{var i;if(null==t||t(n),n.defaultPrevented)return;if(n.isPropagationStopped())return;if(!dm(n))return;if(function(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}(n))return;if(function(e){const t=e.target;return!(t&&!sm(t)||1!==e.key.length||e.ctrlKey||e.metaKey)}(n))return;const r=e.getState(),o=null==(i=ff(e,r.activeId))?void 0:i.element;if(!o)return;const a=n,{view:l}=a,c=kf(a,["view"]);o!==(null==s?void 0:s.current)&&o.focus(),function(e,t,s){const n=new KeyboardEvent(t,s);return e.dispatchEvent(n)}(o,n.type,c)||n.preventDefault(),n.currentTarget.contains(o)&&n.stopPropagation()}))}var bv=Rm((e=>{var t=e,{store:s,composite:n=!0,focusOnMove:i=n,moveOnKeyPress:r=!0}=t,o=kf(t,["store","composite","focusOnMove","moveOnKeyPress"]);const a=Hm();Uf(s=s||a,!1);const l=(0,Ef.useRef)(null),c=function(e){const[t,s]=(0,Ef.useState)(!1),n=(0,Ef.useCallback)((()=>s(!0)),[]),i=e.useState((t=>ff(e,t.activeId)));return(0,Ef.useEffect)((()=>{const e=null==i?void 0:i.element;t&&e&&(s(!1),e.focus({preventScroll:!0}))}),[i,t]),n}(s),u=s.useState("moves");(0,Ef.useEffect)((()=>{var e;if(!s)return;if(!u)return;if(!n)return;if(!i)return;const{activeId:t}=s.getState(),r=null==(e=ff(s,t))?void 0:e.element;var o,a;r&&("scrollIntoView"in(o=r)?(o.focus({preventScroll:!0}),o.scrollIntoView(Vf({block:"nearest",inline:"nearest"},a))):o.focus())}),[s,u,n,i]),bm((()=>{if(!s)return;if(!u)return;if(!n)return;const{baseElement:e,activeId:t}=s.getState();if(!(null===t))return;if(!e)return;const i=l.current;l.current=null,i&&hm(i,{relatedTarget:e}),sg(e)||e.focus()}),[s,u,n]);const d=s.useState("activeId"),h=s.useState("virtualFocus");bm((()=>{var e;if(!s)return;if(!n)return;if(!h)return;const t=l.current;if(l.current=null,!t)return;const i=(null==(e=ff(s,d))?void 0:e.element)||Jf(t);i!==t&&hm(t,{relatedTarget:i})}),[s,d,h,n]);const p=xv(s,o.onKeyDownCapture,l),f=xv(s,o.onKeyUpCapture,l),m=o.onFocusCapture,g=_m((e=>{if(null==m||m(e),e.defaultPrevented)return;if(!s)return;const{virtualFocus:t}=s.getState();if(!t)return;const n=e.relatedTarget,i=function(e){const t=e[mf];return delete e[mf],t}(e.currentTarget);dm(e)&&i&&(e.stopPropagation(),l.current=n)})),v=o.onFocus,y=_m((e=>{if(null==v||v(e),e.defaultPrevented)return;if(!n)return;if(!s)return;const{relatedTarget:t}=e,{virtualFocus:i}=s.getState();i?dm(e)&&!gf(s,t)&&queueMicrotask(c):dm(e)&&s.setActiveId(null)})),x=o.onBlurCapture,b=_m((e=>{var t;if(null==x||x(e),e.defaultPrevented)return;if(!s)return;const{virtualFocus:n,activeId:i}=s.getState();if(!n)return;const r=null==(t=ff(s,i))?void 0:t.element,o=e.relatedTarget,a=gf(s,o),c=l.current;if(l.current=null,dm(e)&&a)o===r?c&&c!==o&&hm(c,e):r?hm(r,e):c&&hm(c,e),e.stopPropagation();else{!gf(s,e.target)&&r&&hm(r,e)}})),w=o.onKeyDown,_=Em(r),S=_m((e=>{var t;if(null==w||w(e),e.defaultPrevented)return;if(!s)return;if(!dm(e))return;const{orientation:n,items:i,renderedItems:r,activeId:o}=s.getState(),a=ff(s,o);if(null==(t=null==a?void 0:a.element)?void 0:t.isConnected)return;const l="horizontal"!==n,c="vertical"!==n,u=function(e){return e.some((e=>!!e.rowId))}(r);if(("ArrowLeft"===e.key||"ArrowRight"===e.key||"Home"===e.key||"End"===e.key)&&sm(e.currentTarget))return;const d={ArrowUp:(u||l)&&(()=>{if(u){const e=i&&function(e){return function(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(Tg(Og(function(e){const t=[];for(const s of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===s.rowId}));e?e.push(s):t.push([s])}return t}(e))))}(i);return null==e?void 0:e.id}return null==s?void 0:s.last()}),ArrowRight:(u||c)&&s.first,ArrowDown:(u||l)&&s.first,ArrowLeft:(u||c)&&s.last,Home:s.first,End:s.last,PageUp:s.first,PageDown:s.last},h=d[e.key];if(h){const t=h();if(void 0!==t){if(!_(e))return;e.preventDefault(),s.move(t)}}}));o=Pm(o,(e=>(0,me.jsx)(Um,{value:s,children:e})),[s]);const j=s.useState((e=>{var t;if(s&&n&&e.virtualFocus)return null==(t=ff(s,e.activeId))?void 0:t.id}));o=Cf(jf({"aria-activedescendant":j},o),{ref:Sm(n?s.setBaseElement:null,o.ref),onKeyDownCapture:p,onKeyUpCapture:f,onFocusCapture:g,onFocus:y,onBlurCapture:b,onKeyDown:S});const C=s.useState((e=>n&&(e.virtualFocus||null===e.activeId)));return o=yv(jf({focusable:C},o))}));Nm((e=>Vm("div",bv(e))));const wv=window.ReactDOM;function _v(e,t,s){if(!s)return!1;const n=e.find((e=>!e.disabled&&e.value));return(null==n?void 0:n.value)===t}function Sv(e,t){return!!t&&(null!=e&&(e=Gf(e),t.length>e.length&&0===t.toLowerCase().indexOf(e.toLowerCase())))}var jv=Rm((e=>{var t=e,{store:s,focusable:n=!0,autoSelect:i=!1,getAutoSelectId:r,showOnChange:o=!0,setValueOnChange:a=!0,showOnMouseDown:l=!0,setValueOnClick:c=!0,showOnKeyDown:u=!0,moveOnKeyPress:d=!0,autoComplete:h="list"}=t,p=kf(t,["store","focusable","autoSelect","getAutoSelectId","showOnChange","setValueOnChange","showOnMouseDown","setValueOnClick","showOnKeyDown","moveOnKeyPress","autoComplete"]);const f=ev();Uf(s=s||f,!1);const m=(0,Ef.useRef)(null),[g,v]=(0,Ef.useReducer)((()=>[]),[]),y=(0,Ef.useRef)(!1),x=(0,Ef.useRef)(!1),b=s.useState((e=>!!i&&e.virtualFocus)),w="inline"===h||"both"===h,[_,S]=(0,Ef.useState)(w);!function(e,t){const s=(0,Ef.useRef)(!1);bm((()=>{if(s.current)return e();s.current=!0}),t),bm((()=>()=>{s.current=!1}),[])}((()=>{w&&S(!0)}),[w]);const j=s.useState("value"),C=s.useState((e=>w&&_?e.activeValue:void 0)),k=s.useState("renderedItems"),E=s.useState("open"),P=s.useState("contentElement"),I=(0,Ef.useMemo)((()=>{if(!w)return j;if(!_)return j;if(_v(k,C,b)){if(Sv(j,C)){const e=(null==C?void 0:C.slice(j.length))||"";return j+e}return j}return C||j}),[w,_,k,C,b,j]);(0,Ef.useEffect)((()=>{const e=m.current;if(!e)return;const t=()=>S(!0);return e.addEventListener("combobox-item-move",t),()=>{e.removeEventListener("combobox-item-move",t)}}),[]),(0,Ef.useEffect)((()=>{if(!w)return;if(!_)return;if(!C)return;_v(k,C,b)&&Sv(j,C)&&queueMicrotask((()=>{const e=m.current;e&&om(e,j.length,C.length)}))}),[g,w,_,C,k,b,j]);const T=(0,Ef.useRef)(null),O=_m(r),A=(0,Ef.useRef)(null);(0,Ef.useEffect)((()=>{if(!E)return;if(!P)return;const e=rm(P);if(!e)return;T.current=e;const t=()=>{y.current=!1},n=()=>{if(!s)return;if(!y.current)return;const{activeId:e}=s.getState();null!==e&&e!==A.current&&(y.current=!1)},i={passive:!0,capture:!0};return e.addEventListener("wheel",t,i),e.addEventListener("scroll",n,i),()=>{e.removeEventListener("wheel",t,!0),e.removeEventListener("scroll",n,!0)}}),[E,P,s]),bm((()=>{j&&(x.current||(y.current=!0))}),[j]),bm((()=>{E||(y.current=!1)}),[E]);const M=s.useState("resetValueOnSelect");km((()=>{var e;const t=y.current;if(!s)return;if(!(b&&t||M))return;const{baseElement:n,contentElement:i,activeId:r}=s.getState();if(!n||sg(n)){if(null==i?void 0:i.hasAttribute("data-placing")){const e=new MutationObserver(v);return e.observe(i,{attributeFilter:["data-placing"]}),()=>e.disconnect()}if(b&&t){const e=O(k),t=void 0!==e?e:s.first();A.current=t,s.move(null!=t?t:null)}else{const t=null==(e=s.item(r))?void 0:e.element;t&&"scrollIntoView"in t&&t.scrollIntoView({block:"nearest",inline:"nearest"})}}}),[s,g,j,b,M,O,k]),(0,Ef.useEffect)((()=>{if(!w)return;const e=m.current;if(!e)return;const t=[e,P].filter((e=>!!e)),n=e=>{t.every((t=>fm(e,t)))&&(null==s||s.setValue(I))};return t.forEach((e=>e.addEventListener("focusout",n))),()=>{t.forEach((e=>e.removeEventListener("focusout",n)))}}),[w,P,s,I]);const N=p.onChange,F=Em(o),V=Em(a),R=_m((e=>{if(null==N||N(e),e.defaultPrevented)return;if(!s)return;const{value:t,selectionStart:n,selectionEnd:i}=e.target,r=e.nativeEvent;if(y.current=!0,function(e){return"input"===e.type}(r)&&(r.isComposing&&(y.current=!1,x.current=!0),w)){const e="insertText"===r.inputType||"insertCompositionText"===r.inputType,s=n===t.length;S(e&&s)}if(V(e)){const r=t===s.getState().value;(0,wv.flushSync)((()=>null==s?void 0:s.setValue(t))),om(e.currentTarget,n,i),w&&b&&r&&v()}F(e)&&s.show(),b&&y.current||s.setActiveId(null)})),B=p.onCompositionEnd,D=_m((e=>{y.current=!0,x.current=!1,null==B||B(e),e.defaultPrevented||b&&v()})),L=p.onMouseDown,z=Em(c),G=Em(l),H=_m((e=>{null==L||L(e),e.defaultPrevented||e.button||e.ctrlKey||s&&(s.setActiveId(null),z(e)&&s.setValue(I),G(e)&&mm(e.currentTarget,"mouseup",s.show))})),U=p.onKeyDown,W=Em(u),q=_m((e=>{if(null==U||U(e),e.repeat||(y.current=!1),e.defaultPrevented)return;if(e.ctrlKey)return;if(e.altKey)return;if(e.shiftKey)return;if(e.metaKey)return;if(!s)return;const{open:t,activeId:n}=s.getState();t||null===n&&("ArrowUp"!==e.key&&"ArrowDown"!==e.key||W(e)&&(e.preventDefault(),s.show()))})),Z=p.onBlur,K=_m((e=>{y.current=!1,null==Z||Z(e),e.defaultPrevented})),Y=jm(p.id),X=function(e){return"inline"===e||"list"===e||"both"===e||"none"===e}(h)?h:void 0,J=s.useState((e=>null===e.activeId));return p=Cf(jf({id:Y,role:"combobox","aria-autocomplete":X,"aria-haspopup":nm(P,"listbox"),"aria-expanded":E,"aria-controls":null==P?void 0:P.id,"data-active-item":J||void 0,value:I},p),{ref:Sm(m,p.ref),onChange:R,onCompositionEnd:D,onMouseDown:H,onKeyDown:q,onBlur:K}),p=bv(Cf(jf({store:s,focusable:n},p),{moveOnKeyPress:e=>!function(e,...t){const s="function"==typeof e?e(...t):e;return null!=s&&!s}(d,e)&&(w&&S(!0),!0)})),p=lv(jf({store:s},p)),jf({autoComplete:"off"},p)})),Cv=Nm((e=>Vm("input",jv(e))));function kv(e,t){const s=setTimeout(t,e);return()=>clearTimeout(s)}function Ev(...e){return e.join(", ").split(", ").reduce(((e,t)=>{const s=1e3*parseFloat(t||"0s");return s>e?s:e}),0)}function Pv(e,t,s){return!(s||!1===t||e&&!t)}var Iv=Rm((e=>{var t=e,{store:s,alwaysVisible:n}=t,i=kf(t,["store","alwaysVisible"]);const r=Ug();Uf(s=s||r,!1);const o=jm(i.id),[a,l]=(0,Ef.useState)(null),c=s.useState("open"),u=s.useState("mounted"),d=s.useState("animated"),h=s.useState("contentElement");bm((()=>{if(d){if(null==h?void 0:h.isConnected)return function(e){let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}((()=>{l(c?"enter":"leave")}));l(null)}}),[d,h,c]),bm((()=>{if(!s)return;if(!d)return;if(!h)return;if(!a)return;if("enter"===a&&!c)return;if("leave"===a&&c)return;if("number"==typeof d){return kv(d,s.stopAnimation)}const{transitionDuration:e,animationDuration:t,transitionDelay:n,animationDelay:i}=getComputedStyle(h),r=Ev(n,i)+Ev(e,t);return r?kv(r,s.stopAnimation):void 0}),[s,d,h,c,a]);const p=Pv(u,(i=Pm(i,(e=>(0,me.jsx)(Zg,{value:s,children:e})),[s])).hidden,n),f=p?Cf(jf({},i.style),{display:"none"}):i.style;return i=Cf(jf({id:o,"data-enter":"enter"===a?"":void 0,"data-leave":"leave"===a?"":void 0,hidden:p},i),{ref:Sm(o?s.setContentElement:null,i.ref),style:f})})),Tv=Nm((e=>Vm("div",Iv(e))));Nm((e=>{var t=e,{unmountOnHide:s}=t,n=kf(t,["unmountOnHide"]);const i=Ug();return!1===bg(n.store||i,(e=>!s||(null==e?void 0:e.mounted)))?null:(0,me.jsx)(Tv,jf({},n))}));var Ov=Rm((e=>{var t=e,{store:s,focusable:n=!0,alwaysVisible:i}=t,r=kf(t,["store","focusable","alwaysVisible"]);const o=ev();Uf(s=s||o,!1);const a=(0,Ef.useRef)(null),l=jm(r.id),c=r.onKeyDown,u=_m((e=>{null==c||c(e),e.defaultPrevented||"Escape"===e.key&&(null==s||s.move(null))})),d=(0,Ef.useRef)(!1),h=r.onFocusVisible,p=_m((e=>{if(null==h||h(e),e.defaultPrevented)return;if("focus"!==e.type)return;if(!s)return;const{virtualFocus:t}=s.getState();if(!t)return;const{relatedTarget:n,currentTarget:i}=e;n&&i.contains(n)||(d.current=!0,s.setState("virtualFocus",!1))})),f=r.onBlur,m=_m((e=>{null==f||f(e),e.defaultPrevented||d.current&&fm(e)&&(d.current=!1,null==s||s.setState("virtualFocus",!0))}));r=Pm(r,(e=>(0,me.jsx)(sv,{value:s,children:e})),[s]);const g=Pv(s.useState("mounted"),r.hidden,i),v=g?Cf(jf({},r.style),{display:"none"}):r.style,y=s.useState((e=>Array.isArray(e.selectedValue))),x=function(e,t,s){const[n,i]=(0,Ef.useState)(s);return bm((()=>{const s=e&&"current"in e?e.current:e,n=null==s?void 0:s.getAttribute(t);null!=n&&i(n)}),[e,t]),n}(a,"role",r.role);return r=Cf(jf({id:l,hidden:g,role:"listbox",tabIndex:n?-1:void 0,"aria-multiselectable":("listbox"===x||"tree"===x||"grid"===x)&&y||void 0},r),{ref:Sm(l?s.setContentElement:null,a,r.ref),style:v,onKeyDown:u,onFocusVisible:p,onBlur:m}),r=yv(jf({focusable:n},r))})),Av=Nm((e=>Vm("div",Ov(e))));function Mv(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?$f(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&($f(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var Nv=Symbol("command"),Fv=Rm((e=>{var t=e,{clickOnEnter:s=!0,clickOnSpace:n=!0}=t,i=kf(t,["clickOnEnter","clickOnSpace"]);const r=(0,Ef.useRef)(null),o=Cm(r,i.as),a=i.type,[l,c]=(0,Ef.useState)((()=>!!o&&$f({tagName:o,type:a})));(0,Ef.useEffect)((()=>{r.current&&c($f(r.current))}),[]);const[u,d]=(0,Ef.useState)(!1),h=(0,Ef.useRef)(!1),p=Wf(i),[f,m]=function(e,t,s){const n=e.onLoadedMetadataCapture,i=(0,Ef.useMemo)((()=>Object.assign((()=>{}),Cf(jf({},n),{[t]:s}))),[n,t,s]);return[null==n?void 0:n[t],{onLoadedMetadataCapture:i}]}(i,Nv,!0),g=i.onKeyDown,v=_m((e=>{null==g||g(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(f)return;if(p)return;if(!dm(e))return;if(sm(t))return;if(t.isContentEditable)return;const i=s&&"Enter"===e.key,r=n&&" "===e.key,o="Enter"===e.key&&!s,a=" "===e.key&&!n;if(o||a)e.preventDefault();else if(i||r){const s=Mv(e);if(i){if(!s){e.preventDefault();const s=e,{view:n}=s,i=kf(s,["view"]),r=()=>pm(t,i);Yf&&/firefox\//i.test(navigator.userAgent)?mm(t,"keyup",r):queueMicrotask(r)}}else r&&(h.current=!0,s||(e.preventDefault(),d(!0)))}})),y=i.onKeyUp,x=_m((e=>{if(null==y||y(e),e.defaultPrevented)return;if(f)return;if(p)return;if(e.metaKey)return;const t=n&&" "===e.key;if(h.current&&t&&(h.current=!1,!Mv(e))){e.preventDefault(),d(!1);const t=e.currentTarget,s=e,{view:n}=s,i=kf(s,["view"]);queueMicrotask((()=>pm(t,i)))}}));return i=Cf(jf(jf({"data-active":u?"":void 0,type:l?"button":void 0},m),i),{ref:Sm(r,i.ref),onKeyDown:v,onKeyUp:x}),i=yv(i)}));Nm((e=>Vm("button",e=Fv(e))));var Vv=Rm((e=>{var t=e,{store:s,shouldRegisterItem:n=!0,getItem:i=Hf,element:r}=t,o=kf(t,["store","shouldRegisterItem","getItem","element"]);const a=Lm();s=s||a;const l=jm(o.id),c=(0,Ef.useRef)(r);return(0,Ef.useEffect)((()=>{const e=c.current;if(!l)return;if(!e)return;if(!n)return;const t=i({id:l,element:e});return null==s?void 0:s.renderItem(t)}),[l,n,i,s]),o=Cf(jf({},o),{ref:Sm(c,o.ref)})}));Nm((e=>Vm("div",Vv(e))));function Rv(e,t=!1){const{top:s}=e.getBoundingClientRect();return t?s+e.clientHeight:s}function Bv(e,t,s,n=!1){var i;if(!t)return;if(!s)return;const{renderedItems:r}=t.getState(),o=rm(e);if(!o)return;const a=function(e,t=!1){const s=e.clientHeight,{top:n}=e.getBoundingClientRect(),i=1.5*Math.max(.875*s,s-40),r=t?s-i+n:i+n;return"HTML"===e.tagName?r+e.scrollTop:r}(o,n);let l,c;for(let e=0;e<r.length;e+=1){const r=l;if(l=s(e),!l)break;if(l===r)continue;const o=null==(i=ff(t,l))?void 0:i.element;if(!o)continue;const u=Rv(o,n)-a,d=Math.abs(u);if(n&&u<=0||!n&&u>=0){void 0!==c&&c<d&&(l=r);break}c=d}return l}var Dv=Rm((e=>{var t=e,{store:s,rowId:n,preventScrollOnKeyDown:i=!1,moveOnKeyPress:r=!0,tabbable:o=!1,getItem:a,"aria-setsize":l,"aria-posinset":c}=t,u=kf(t,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","tabbable","getItem","aria-setsize","aria-posinset"]);const d=Gm();s=s||d;const h=jm(u.id),p=(0,Ef.useRef)(null),f=(0,Ef.useContext)(Zm),m=bg(s,(e=>n||(e&&(null==f?void 0:f.baseElement)&&f.baseElement===e.baseElement?f.id:void 0))),g=Wf(u)&&!u.accessibleWhenDisabled,v=(0,Ef.useCallback)((e=>{const t=Cf(jf({},e),{id:h||e.id,rowId:m,disabled:!!g});return a?a(t):t}),[h,m,g,a]),y=u.onFocus,x=(0,Ef.useRef)(!1),b=_m((e=>{if(null==y||y(e),e.defaultPrevented)return;if(um(e))return;if(!h)return;if(!s)return;const{activeId:t,virtualFocus:n,baseElement:i}=s.getState();if(function(e,t){return!dm(e)&&gf(t,e.target)}(e,s))return;if(t!==h&&s.setActiveId(h),!n)return;if(!dm(e))return;if((r=e.currentTarget).isContentEditable||sm(r)||"INPUT"===r.tagName&&!$f(r))return;var r;if(!(null==i?void 0:i.isConnected))return;x.current=!0;e.relatedTarget===i||gf(s,e.relatedTarget)?function(e){e[mf]=!0,e.focus({preventScroll:!0})}(i):i.focus()})),w=u.onBlurCapture,_=_m((e=>{if(null==w||w(e),e.defaultPrevented)return;const t=null==s?void 0:s.getState();(null==t?void 0:t.virtualFocus)&&x.current&&(x.current=!1,e.preventDefault(),e.stopPropagation())})),S=u.onKeyDown,j=Em(i),C=Em(r),k=_m((e=>{if(null==S||S(e),e.defaultPrevented)return;if(!dm(e))return;if(!s)return;const{currentTarget:t}=e,n=s.getState(),i=s.item(h),r=!!(null==i?void 0:i.rowId),o="horizontal"!==n.orientation,a="vertical"!==n.orientation,l=()=>!!r||(!!a||(!n.baseElement||!sm(n.baseElement))),c={ArrowUp:(r||o)&&s.up,ArrowRight:(r||a)&&s.next,ArrowDown:(r||o)&&s.down,ArrowLeft:(r||a)&&s.previous,Home:()=>{if(l())return!r||e.ctrlKey?null==s?void 0:s.first():null==s?void 0:s.previous(-1)},End:()=>{if(l())return!r||e.ctrlKey?null==s?void 0:s.last():null==s?void 0:s.next(-1)},PageUp:()=>Bv(t,s,null==s?void 0:s.up,!0),PageDown:()=>Bv(t,s,null==s?void 0:s.down)}[e.key];if(c){const t=c();if(j(e)||void 0!==t){if(!C(e))return;e.preventDefault(),s.move(t)}}})),E=bg(s,(e=>(null==e?void 0:e.baseElement)||void 0)),P=(0,Ef.useMemo)((()=>({id:h,baseElement:E})),[h,E]);u=Pm(u,(e=>(0,me.jsx)(qm.Provider,{value:P,children:e})),[P]);const I=bg(s,(e=>!!e&&e.activeId===h)),T=bg(s,"virtualFocus"),O=function(e,t){const s=t.role,[n,i]=(0,Ef.useState)(s);return bm((()=>{const t=e.current;t&&i(t.getAttribute("role")||s)}),[s]),n}(p,u);let A;I&&(!function(e){return"option"===e||"treeitem"===e}(O)?T&&function(e){return"option"===e||"tab"===e||"treeitem"===e||"gridcell"===e||"row"===e||"columnheader"===e||"rowheader"===e}(O)&&(A=!0):A=!0);const M=bg(s,(e=>null!=l?l:e&&(null==f?void 0:f.ariaSetSize)&&f.baseElement===e.baseElement?f.ariaSetSize:void 0)),N=bg(s,(e=>{if(null!=c)return c;if(!e)return;if(!(null==f?void 0:f.ariaPosInSet))return;if(f.baseElement!==e.baseElement)return;const t=e.renderedItems.filter((e=>e.rowId===m));return f.ariaPosInSet+t.findIndex((e=>e.id===h))})),F=bg(s,(e=>!(null==e?void 0:e.renderedItems.length)||!e.virtualFocus&&(!!o||e.activeId===h)));return u=Cf(jf({id:h,"aria-selected":A,"data-active-item":I?"":void 0},u),{ref:Sm(p,u.ref),tabIndex:F?u.tabIndex:-1,onFocus:b,onBlurCapture:_,onKeyDown:k}),u=Fv(u),u=Vv(Cf(jf({store:s},u),{getItem:v,shouldRegisterItem:!!h&&u.shouldRegisterItem})),Cf(jf({},u),{"aria-setsize":M,"aria-posinset":N})}));Fm((e=>Vm("button",Dv(e))));var Lv=Rm((e=>{var t=e,{store:s,value:n,hideOnClick:i,selectValueOnClick:r=!0,setValueOnClick:o,focusOnHover:a=!1,moveOnKeyPress:l=!0,getItem:c}=t,u=kf(t,["store","value","hideOnClick","selectValueOnClick","setValueOnClick","focusOnHover","moveOnKeyPress","getItem"]);const d=$g();Uf(s=s||d,!1);const h=(0,Ef.useCallback)((e=>{const t=Cf(jf({},e),{value:n});return c?c(t):t}),[n,c]),p=s.useState((e=>Array.isArray(e.selectedValue)));o=null!=o?o:!p,i=null!=i?i:null!=n&&!p;const f=u.onClick,m=Em(o),g=Em(r),v=Em(i),y=_m((e=>{null==f||f(e),e.defaultPrevented||function(e){const t=e.currentTarget;if(!t)return!1;const s=t.tagName.toLowerCase();return!!e.altKey&&("a"===s||"button"===s&&"submit"===t.type||"input"===s&&"submit"===t.type)}(e)||function(e){const t=e.currentTarget;if(!t)return!1;const s=lm();if(s&&!e.metaKey)return!1;if(!s&&!e.ctrlKey)return!1;const n=t.tagName.toLowerCase();return"a"===n||"button"===n&&"submit"===t.type||"input"===n&&"submit"===t.type}(e)||(null!=n&&(g(e)&&(null==s||s.setSelectedValue((e=>Array.isArray(e)?e.includes(n)?e.filter((e=>e!==n)):[...e,n]:n))),m(e)&&(null==s||s.setValue(n))),v(e)&&(null==s||s.move(null),null==s||s.hide()))})),x=u.onKeyDown,b=_m((e=>{if(null==x||x(e),e.defaultPrevented)return;const t=null==s?void 0:s.getState().baseElement;if(!t)return;if(sg(t))return;(1===e.key.length||"Backspace"===e.key||"Delete"===e.key)&&(queueMicrotask((()=>t.focus())),sm(t)&&(null==s||s.setValue(t.value)))})),w=s.useState((e=>function(e,t){if(null!=t)return null!=e&&(Array.isArray(e)?e.includes(t):e===t)}(e.selectedValue,n)));p&&null!=w&&(u=jf({"aria-selected":w},u)),u=Pm(u,(e=>(0,me.jsx)(nv.Provider,{value:n,children:(0,me.jsx)(iv.Provider,{value:null!=w&&w,children:e})})),[n,w]);const _=s.useState("contentElement");u=Cf(jf({role:im(_),children:n},u),{onClick:y,onKeyDown:b});const S=Em(l);return u=Dv(Cf(jf({store:s},u),{getItem:h,moveOnKeyPress:e=>{if(!S(e))return!1;const t=new Event("combobox-item-move"),n=null==s?void 0:s.getState().baseElement;return null==n||n.dispatchEvent(t),!0}})),u=og(jf({store:s,focusOnHover:a},u))})),zv=Fm((e=>Vm("div",Lv(e))));function Gv(e){return Gf(e).toLowerCase()}var Hv=Rm((e=>{var t=e,{store:s,value:n}=t,i=kf(t,["store","value"]);const r=$g();s=s||r;const o=(0,Ef.useContext)(nv),a=null!=n?n:o;Uf(s,!1);const l=s.useState((e=>a&&e.value?e.value:void 0)),c=(0,Ef.useMemo)((()=>a&&l?function(e,t){t=Gv(t);let s=Gv(e).indexOf(t);const n=[];for(;-1!==s;)0!==s&&n.push((0,me.jsx)("span",{"data-autocomplete-value":"",children:e.substr(0,s)},n.length)),n.push((0,me.jsx)("span",{"data-user-value":"",children:e.substr(s,t.length)},n.length)),s=Gv(e=e.substr(s+t.length)).indexOf(t);return e&&n.push((0,me.jsx)("span",{"data-autocomplete-value":"",children:e},n.length)),n}(a,l):a),[a,l]);return i=jf({children:c},i)})),Uv=Nm((e=>Vm("span",Hv(e))));var Wv=i(9681),qv=i.n(Wv);const Zv=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})}),{CompositeV2:Kv,CompositeItemV2:Yv,useCompositeStoreV2:Xv}=Wh(x.privateApis),Jv=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Circle,{cx:12,cy:12,r:3})});function Qv(e=""){return qv()(e.trim().toLowerCase())}const $v=[],ey=(e,t)=>e.singleSelection?t?.value:Array.isArray(t?.value)?t.value:!Array.isArray(t?.value)&&t?.value?[t.value]:$v,ty=(e,t,s)=>e.singleSelection?s:Array.isArray(t?.value)?t.value.includes(s)?t.value.filter((e=>e!==s)):[...t.value,s]:[s];function sy({view:e,filter:t,onChangeView:s}){const n=Xv({virtualFocus:!0,focusLoop:!0,defaultActiveId:1===t.operators?.length?void 0:null}),i=e.filters.find((e=>e.field===t.field)),r=ey(t,i);return(0,me.jsx)(Kv,{store:n,role:"listbox",className:"dataviews-search-widget-listbox","aria-label":(0,b.sprintf)((0,b.__)("List of: %1$s"),t.name),onFocusVisible:()=>{n.getState().activeId||n.move(n.first())},render:(0,me.jsx)($m,{store:n}),children:t.elements.map((o=>(0,me.jsxs)(ag,{store:n,render:(0,me.jsx)(Yv,{render:(0,me.jsx)("div",{"aria-label":o.label,role:"option",className:"dataviews-search-widget-listitem"}),onClick:()=>{const n=i?[...e.filters.map((e=>e.field===t.field?{...e,operator:i.operator||t.operators[0],value:ty(t,i,o.value)}:e))]:[...e.filters,{field:t.field,operator:t.operators[0],value:ty(t,i,o.value)}];s({...e,page:1,filters:n})}}),children:[(0,me.jsxs)("span",{className:"dataviews-search-widget-listitem-check",children:[t.singleSelection&&r===o.value&&(0,me.jsx)(x.Icon,{icon:Jv}),!t.singleSelection&&r.includes(o.value)&&(0,me.jsx)(x.Icon,{icon:Zv})]}),(0,me.jsxs)("span",{children:[o.label,!!o.description&&(0,me.jsx)("span",{className:"dataviews-search-widget-listitem-description",children:o.description})]})]},o.value)))})}function ny({view:e,filter:t,onChangeView:s}){const[n,i]=(0,d.useState)(""),r=(0,d.useDeferredValue)(n),o=e.filters.find((e=>e.field===t.field)),a=ey(t,o),l=(0,d.useMemo)((()=>{const e=Qv(r);return t.elements.filter((t=>Qv(t.label).includes(e)))}),[t.elements,r]);return(0,me.jsxs)(rv,{resetValueOnSelect:!1,selectedValue:a,setSelectedValue:n=>{const i=o?[...e.filters.map((e=>e.field===t.field?{...e,operator:o.operator||t.operators[0],value:n}:e))]:[...e.filters,{field:t.field,operator:t.operators[0],value:n}];s({...e,page:1,filters:i})},setValue:i,children:[(0,me.jsxs)("div",{className:"dataviews-search-widget-filter-combobox__wrapper",children:[(0,me.jsx)(av,{render:(0,me.jsx)(x.VisuallyHidden,{children:(0,b.__)("Search items")}),children:(0,b.__)("Search items")}),(0,me.jsx)(Cv,{autoSelect:"always",placeholder:(0,b.__)("Search"),className:"dataviews-search-widget-filter-combobox__input"}),(0,me.jsx)("div",{className:"dataviews-search-widget-filter-combobox__icon",children:(0,me.jsx)(x.Icon,{icon:ds})})]}),(0,me.jsxs)(Av,{className:"dataviews-search-widget-filter-combobox-list",alwaysVisible:!0,children:[l.map((e=>(0,me.jsxs)(zv,{value:e.value,className:"dataviews-search-widget-listitem",hideOnClick:!1,setValueOnClick:!1,focusOnHover:!0,children:[(0,me.jsxs)("span",{className:"dataviews-search-widget-listitem-check",children:[t.singleSelection&&a===e.value&&(0,me.jsx)(x.Icon,{icon:Jv}),!t.singleSelection&&a.includes(e.value)&&(0,me.jsx)(x.Icon,{icon:Zv})]}),(0,me.jsxs)("span",{children:[(0,me.jsx)(Uv,{className:"dataviews-search-widget-filter-combobox-item-value",value:e.label}),!!e.description&&(0,me.jsx)("span",{className:"dataviews-search-widget-listitem-description",children:e.description})]})]},e.value))),!l.length&&(0,me.jsx)("p",{children:(0,b.__)("No results found")})]})]})}function iy(e){const t=e.filter.elements.length>10?ny:sy;return(0,me.jsx)(t,{...e})}const ry="Enter",oy=" ",ay=({activeElements:e,filterInView:t,filter:s})=>{if(void 0===e||0===e.length)return s.name;const n={Name:(0,me.jsx)("span",{className:"dataviews-filter-summary__filter-text-name"}),Value:(0,me.jsx)("span",{className:"dataviews-filter-summary__filter-text-value"})};return t?.operator===Kh?(0,d.createInterpolateElement)((0,b.sprintf)((0,b.__)("<Name>%1$s is any: </Name><Value>%2$s</Value>"),s.name,e.map((e=>e.label)).join(", ")),n):t?.operator===Yh?(0,d.createInterpolateElement)((0,b.sprintf)((0,b.__)("<Name>%1$s is none: </Name><Value>%2$s</Value>"),s.name,e.map((e=>e.label)).join(", ")),n):t?.operator===Xh?(0,d.createInterpolateElement)((0,b.sprintf)((0,b.__)("<Name>%1$s is all: </Name><Value>%2$s</Value>"),s.name,e.map((e=>e.label)).join(", ")),n):t?.operator===Jh?(0,d.createInterpolateElement)((0,b.sprintf)((0,b.__)("<Name>%1$s is not all: </Name><Value>%2$s</Value>"),s.name,e.map((e=>e.label)).join(", ")),n):t?.operator===qh?(0,d.createInterpolateElement)((0,b.sprintf)((0,b.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),s.name,e[0].label),n):t?.operator===Zh?(0,d.createInterpolateElement)((0,b.sprintf)((0,b.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),s.name,e[0].label),n):(0,b.sprintf)((0,b.__)("Unknown status for %1$s"),s.name)};function ly({filter:e,view:t,onChangeView:s}){const n=e.operators?.map((e=>({value:e,label:$h[e]?.label}))),i=t.filters.find((t=>t.field===e.field)),r=i?.operator||e.operators[0];return n.length>1&&(0,me.jsxs)(x.__experimentalHStack,{spacing:2,justify:"flex-start",className:"dataviews-filter-summary__operators-container",children:[(0,me.jsx)(x.FlexItem,{className:"dataviews-filter-summary__operators-filter-name",children:e.name}),(0,me.jsx)(x.SelectControl,{label:(0,b.__)("Conditions"),value:r,options:n,onChange:n=>{const r=n,o=i?[...t.filters.map((t=>t.field===e.field?{...t,operator:r}:t))]:[...t.filters,{field:e.field,operator:r,value:void 0}];s({...t,page:1,filters:o})},size:"small",__nextHasNoMarginBottom:!0,hideLabelFromVision:!0})]})}function cy({addFilterRef:e,openedFilter:t,...s}){const n=(0,d.useRef)(null),{filter:i,view:r,onChangeView:o}=s,a=r.filters.find((e=>e.field===i.field)),l=i.elements.filter((e=>i.singleSelection?e.value===a?.value:a?.value?.includes(e.value))),c=i.isPrimary,u=void 0!==a?.value,h=!c||u;return(0,me.jsx)(x.Dropdown,{defaultOpen:t===i.field,contentClassName:"dataviews-filter-summary__popover",popoverProps:{placement:"bottom-start",role:"dialog"},onClose:()=>{n.current?.focus()},renderToggle:({isOpen:t,onToggle:s})=>(0,me.jsxs)("div",{className:"dataviews-filter-summary__chip-container",children:[(0,me.jsx)(x.Tooltip,{text:(0,b.sprintf)((0,b.__)("Filter by: %1$s"),i.name.toLowerCase()),placement:"top",children:(0,me.jsx)("div",{className:Qt("dataviews-filter-summary__chip",{"has-reset":h,"has-values":u}),role:"button",tabIndex:0,onClick:s,onKeyDown:e=>{[ry,oy].includes(e.key)&&(s(),e.preventDefault())},"aria-pressed":t,"aria-expanded":t,ref:n,children:(0,me.jsx)(ay,{activeElements:l,filterInView:a,filter:i})})}),h&&(0,me.jsx)(x.Tooltip,{text:c?(0,b.__)("Reset"):(0,b.__)("Remove"),placement:"top",children:(0,me.jsx)("button",{className:Qt("dataviews-filter-summary__chip-remove",{"has-values":u}),onClick:()=>{o({...r,page:1,filters:r.filters.filter((e=>e.field!==i.field))}),c?n.current?.focus():e.current?.focus()},children:(0,me.jsx)(x.Icon,{icon:pd})})})]}),renderContent:()=>(0,me.jsxs)(x.__experimentalVStack,{spacing:0,justify:"flex-start",children:[(0,me.jsx)(ly,{...s}),(0,me.jsx)(iy,{...s})]})})}const{DropdownMenuV2:uy,DropdownMenuItemV2:dy,DropdownMenuItemLabelV2:hy}=Wh(x.privateApis);const py=(0,d.forwardRef)((function({filters:e,view:t,onChangeView:s,setOpenedFilter:n},i){if(!e.length||e.every((({isPrimary:e})=>e)))return null;const r=e.filter((e=>!e.isVisible));return(0,me.jsx)(uy,{trigger:(0,me.jsx)(x.Button,{__experimentalIsFocusable:!0,size:"compact",className:"dataviews-filters-button",variant:"tertiary",disabled:!r.length,ref:i,children:(0,b.__)("Add filter")}),children:r.map((e=>(0,me.jsx)(dy,{onClick:()=>{n(e.field),s({...t,page:1,filters:[...t.filters||[],{field:e.field,value:void 0,operator:e.operators[0]}]})},children:(0,me.jsx)(hy,{children:e.name})},e.field)))})}));function fy({filters:e,view:t,onChangeView:s}){const n=!t.search&&!t.filters?.some((t=>{return void 0!==t.value||(s=t.field,!e.some((e=>e.field===s&&e.isPrimary)));var s}));return(0,me.jsx)(x.Button,{disabled:n,__experimentalIsFocusable:!0,size:"compact",variant:"tertiary",className:"dataviews-filters__reset-button",onClick:()=>{s({...t,page:1,search:"",filters:[]})},children:(0,b.__)("Reset")})}const my=(0,d.memo)((function({fields:e,view:t,onChangeView:s,openedFilter:n,setOpenedFilter:i}){const r=(0,d.useRef)(null),o=[];e.forEach((e=>{if(!e.elements?.length)return;const s=Cp(e);if(0===s.length)return;const n=!!e.filterBy?.isPrimary;o.push({field:e.id,name:e.header,elements:e.elements,singleSelection:s.some((e=>[qh,Zh].includes(e))),operators:s,isVisible:n||t.filters.some((t=>t.field===e.id&&Qh.includes(t.operator))),isPrimary:n})})),o.sort(((e,t)=>e.isPrimary&&!t.isPrimary?-1:!e.isPrimary&&t.isPrimary?1:e.name.localeCompare(t.name)));const a=(0,me.jsx)(py,{filters:o,view:t,onChangeView:s,ref:r,setOpenedFilter:i},"add-filter"),l=[...o.map((e=>e.isVisible?(0,me.jsx)(cy,{filter:e,view:t,onChangeView:s,addFilterRef:r,openedFilter:n},e.field):null)),a];return l.length>1&&l.push((0,me.jsx)(fy,{filters:o,view:t,onChangeView:s},"reset-filters")),(0,me.jsx)(x.__experimentalHStack,{justify:"flex-start",style:{width:"fit-content"},wrap:!0,children:l})})),gy=my,vy=(0,d.memo)((function({label:e,view:t,onChangeView:s}){const[n,i,r]=(0,v.useDebouncedInput)(t.search);(0,d.useEffect)((()=>{var e;i(null!==(e=t.search)&&void 0!==e?e:"")}),[t.search,i]);const o=(0,d.useRef)(s),a=(0,d.useRef)(t);(0,d.useEffect)((()=>{o.current=s,a.current=t}),[s,t]),(0,d.useEffect)((()=>{o.current({...a.current,page:1,search:r})}),[r]);const l=e||(0,b.__)("Search");return(0,me.jsx)(x.SearchControl,{__nextHasNoMarginBottom:!0,onChange:i,value:n,label:l,placeholder:l,size:"compact"})})),yy=vy;function xy(e){return e.map((e=>{const t=e.getValue||(({item:t})=>t[e.id]);return{...e,header:e.header||e.id,getValue:t,render:e.render||t}}))}const by={init:{bottom:-48},open:{bottom:24,transition:{bottom:{type:"tween",duration:.2,ease:[0,0,.2,1]}}},exit:{opacity:0,bottom:24,transition:{opacity:{type:"tween",duration:.2,ease:[0,0,.2,1]}}}};function wy({action:e,onClick:t,isBusy:s,items:n}){const i="string"==typeof e.label?e.label:e.label(n);return(0,me.jsx)(x.ToolbarButton,{disabled:s,label:i,icon:e.icon,isDestructive:e.isDestructive,size:"compact",onClick:t,isBusy:s,__experimentalIsFocusable:!0,tooltipPosition:"top"})}const _y=[];function Sy({action:e,selectedItems:t,actionInProgress:s,setActionInProgress:n}){const i=(0,d.useMemo)((()=>t.filter((t=>!e.isEligible||e.isEligible(t)))),[e,t]);return"RenderModal"in e?(0,me.jsx)(wp,{action:e,items:i,ActionTrigger:wy},e.id):(0,me.jsx)(wy,{action:e,onClick:()=>{n(e.id),e.callback(t)},items:i,isBusy:s===e.id},e.id)}function jy(e,t,s,n,i,r){return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(x.ToolbarGroup,{children:(0,me.jsx)("div",{className:"dataviews-bulk-actions__selection-count",children:1===e.length?(0,b.__)("1 item selected"):(0,b.sprintf)((0,b._n)("%s item selected","%s items selected",e.length),e.length)})}),(0,me.jsx)(x.ToolbarGroup,{children:t.map((e=>(0,me.jsx)(Sy,{action:e,selectedItems:s,actionInProgress:n,setActionInProgress:i},e.id)))}),(0,me.jsx)(x.ToolbarGroup,{children:(0,me.jsx)(x.ToolbarButton,{icon:pd,showTooltip:!0,tooltipPosition:"top",label:(0,b.__)("Cancel"),disabled:!!n,onClick:()=>{r(_y)}})})]})}function Cy({selection:e,actionsToShow:t,selectedItems:s,onSelectionChange:n}){const[i,r]=(0,d.useState)(null),o=(0,d.useRef)(null);return i?(o.current||(o.current=jy(e,t,s,i,r,n)),o.current):(o.current&&(o.current=null),jy(e,t,s,i,r,n))}function ky({data:e,selection:t,actions:s=_y,onSelectionChange:n,getItemId:i}){const r=(0,v.useReducedMotion)(),o=(0,d.useMemo)((()=>e.filter((e=>t.includes(i(e))))),[t,e,i]),a=(0,d.useMemo)((()=>s.filter((e=>e.supportsBulk&&e.icon&&o.some((t=>!e.isEligible||e.isEligible(t)))))),[s,o]);return t&&0===t.length||0===a.length?null:(0,me.jsx)(x.__unstableAnimatePresence,{children:(0,me.jsx)(x.__unstableMotion.div,{layout:!r,initial:"init",animate:"open",exit:"exit",variants:r?void 0:by,className:"dataviews-bulk-actions",children:(0,me.jsx)(x.Toolbar,{label:(0,b.__)("Bulk actions"),children:(0,me.jsx)("div",{className:"dataviews-bulk-actions-toolbar-wrapper",children:(0,me.jsx)(Cy,{selection:t,actionsToShow:a,selectedItems:o,onSelectionChange:n})})})})})}const Ey=e=>e.id,Py=()=>{};function Iy({view:e,onChangeView:t,fields:s,search:n=!0,searchLabel:i,actions:r=[],data:o,getItemId:a=Ey,isLoading:l=!1,paginationInfo:c,supportedLayouts:u,selection:h,setSelection:p,onSelectionChange:f=Py}){const[m,g]=(0,d.useState)([]);let v,y;void 0!==h&&void 0!==p?(v=h,y=p):(v=m,y=g);const[b,w]=(0,d.useState)(null),_=(0,d.useCallback)((e=>{y(e.map((e=>a(e)))),f(e)}),[y,a,f]),S=$p.find((t=>t.type===e.type))?.component,j=(0,d.useMemo)((()=>xy(s)),[s]),C=function(e,t){return(0,d.useMemo)((()=>t.some((t=>e.some((e=>e.supportsBulk&&(!e.isEligible||e.isEligible(t))))))),[e,t])}(r,o),k=(0,d.useMemo)((()=>v.filter((e=>o.some((t=>a(t)===e))))),[v,o,a]);return(0,me.jsxs)("div",{className:"dataviews-wrapper",children:[(0,me.jsxs)(x.__experimentalHStack,{alignment:"top",justify:"start",className:"dataviews-filters__view-actions",children:[(0,me.jsxs)(x.__experimentalHStack,{justify:"start",className:"dataviews-filters__container",wrap:!0,children:[n&&(0,me.jsx)(yy,{label:i,view:e,onChangeView:t}),(0,me.jsx)(gy,{fields:j,view:e,onChangeView:t,openedFilter:b,setOpenedFilter:w})]}),[ip,rp].includes(e.type)&&C&&(0,me.jsx)(Np,{actions:r,data:o,onSelectionChange:_,selection:k,getItemId:a}),(0,me.jsx)(hf,{fields:j,view:e,onChangeView:t,supportedLayouts:u})]}),(0,me.jsx)(S,{actions:r,data:o,fields:j,getItemId:a,isLoading:l,onChangeView:t,onSelectionChange:_,selection:k,setOpenedFilter:w,view:e}),(0,me.jsx)(Hh,{view:e,onChangeView:t,paginationInfo:c}),[ip,rp].includes(e.type)&&C&&(0,me.jsx)(ky,{data:o,actions:r,selection:k,onSelectionChange:_,getItemId:a})]})}function Ty({title:e,subTitle:t,actions:s}){return(0,me.jsxs)(x.__experimentalVStack,{className:"edit-site-page-header",as:"header",spacing:0,children:[(0,me.jsxs)(x.__experimentalHStack,{className:"edit-site-page-header__page-title",children:[(0,me.jsx)(x.__experimentalHeading,{as:"h2",level:3,weight:500,className:"edit-site-page-header__title",children:e}),(0,me.jsx)(x.FlexItem,{className:"edit-site-page-header__actions",children:s})]}),t&&(0,me.jsx)(x.__experimentalText,{variant:"muted",as:"p",className:"edit-site-page-header__sub-title",children:t})]})}const{NavigableRegion:Oy}=se(h.privateApis);function Ay({title:e,subTitle:t,actions:s,children:n,className:i,hideTitleFromUI:r=!1}){const o=Qt("edit-site-page",i);return(0,me.jsx)(Oy,{className:o,ariaLabel:e,children:(0,me.jsxs)("div",{className:"edit-site-page-content",children:[!r&&e&&(0,me.jsx)(Ty,{title:e,subTitle:t,actions:s}),n]})})}const My=(0,me.jsxs)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,me.jsx)(us.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,me.jsx)(us.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,me.jsx)(us.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]}),Ny=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"})}),Fy=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm9 1V8h-1.5v3.5h-2V13H13Z"})}),Vy=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 0 4-4H8a4 4 0 0 0 4 4Z"})}),Ry=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 1-4-4h4V8a4 4 0 0 1 0 8Z"})}),By=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5A6.5 6.5 0 0 1 6.93 7.931l9.139 9.138A6.473 6.473 0 0 1 12 18.5Zm5.123-2.498a6.5 6.5 0 0 0-9.124-9.124l9.124 9.124ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"})}),Dy={[qe]:{primaryField:"title"},[We]:{mediaField:"featured-image",primaryField:"title"},[Ze]:{primaryField:"title",mediaField:"featured-image"}},Ly={type:Ze,search:"",filters:[],page:1,perPage:20,sort:{field:"date",direction:"desc"},hiddenFields:["date","featured-image"],layout:{...Dy[Ze]}},zy={page:[{title:(0,b.__)("All pages"),slug:"all",icon:My,view:Ly},{title:(0,b.__)("Published"),slug:"published",icon:Ny,view:{...Ly,filters:[{field:"status",operator:Ye,value:"publish"}]}},{title:(0,b.__)("Scheduled"),slug:"future",icon:Fy,view:{...Ly,filters:[{field:"status",operator:Ye,value:"future"}]}},{title:(0,b.__)("Drafts"),slug:"drafts",icon:Vy,view:{...Ly,filters:[{field:"status",operator:Ye,value:"draft"}]}},{title:(0,b.__)("Pending"),slug:"pending",icon:Ry,view:{...Ly,filters:[{field:"status",operator:Ye,value:"pending"}]}},{title:(0,b.__)("Private"),slug:"private",icon:By,view:{...Ly,filters:[{field:"status",operator:Ye,value:"private"}]}},{title:(0,b.__)("Trash"),slug:"trash",icon:$s,view:{...Ly,filters:[{field:"status",operator:Ye,value:"trash"}]}}]};function Gy({onSave:e,onClose:t}){const[s,n]=(0,d.useState)(!1),[i,r]=(0,d.useState)(""),{saveEntityRecord:a}=(0,l.useDispatch)(_.store),{createErrorNotice:c,createSuccessNotice:u}=(0,l.useDispatch)(w.store),{resolveSelect:h}=(0,l.useRegistry)();return(0,me.jsx)(x.Modal,{title:(0,b.__)("Draft a new page"),onRequestClose:t,children:(0,me.jsx)("form",{onSubmit:async function(t){if(t.preventDefault(),!s){n(!0);try{const t=await h(_.store).getPostType("page"),s=await a("postType","page",{status:"draft",title:i,slug:i||(0,b.__)("No title"),content:t.template&&t.template.length?(0,o.serialize)((0,o.synchronizeBlocksWithTemplate)([],t.template)):void 0},{throwOnError:!0});e(s),u((0,b.sprintf)((0,b.__)('"%s" successfully created.'),(0,cs.decodeEntities)(s.title?.rendered||i)),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,b.__)("An error occurred while creating the page.");c(t,{type:"snackbar"})}finally{n(!1)}}},children:(0,me.jsxs)(x.__experimentalVStack,{spacing:3,children:[(0,me.jsx)(x.TextControl,{__next40pxDefaultSize:!0,label:(0,b.__)("Page title"),onChange:r,placeholder:(0,b.__)("No title"),value:i}),(0,me.jsxs)(x.__experimentalHStack,{spacing:2,justify:"end",children:[(0,me.jsx)(x.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,b.__)("Cancel")}),(0,me.jsx)(x.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:s,"aria-disabled":s,children:(0,b.__)("Create draft")})]})]})})})}const Hy=function({id:e,size:t=["large","medium","thumbnail"],...s}){const{record:n}=(0,_.useEntityRecord)("root","media",e),i=t.find((e=>!!n?.media_details?.sizes[e])),r=n?.media_details?.sizes[i]?.source_url||n?.source_url;return r?(0,me.jsx)("img",{...s,src:r,alt:n.alt_text}):null},Uy=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),{useHistory:Wy}=se(Xt.privateApis),qy=()=>{const e=Wy();return(0,d.useMemo)((()=>({id:"edit-post",label:(0,b.__)("Edit"),isPrimary:!0,icon:Uy,isEligible:e=>"trash"!==e.status&&e.type!==Be.theme,callback(t){const s=t[0];e.push({postId:s.id,postType:s.type,canvas:"edit"})}})),[e])},{usePostActions:Zy}=se(h.privateApis),{useLocation:Ky,useHistory:Yy}=se(Xt.privateApis),Xy=[],Jy=e=>(0,Kd.dateI18n)((0,Kd.getSettings)().formats.datetimeAbbreviated,(0,Kd.getDate)(e));const Qy=[{value:"draft",label:(0,b.__)("Draft")},{value:"future",label:(0,b.__)("Scheduled")},{value:"pending",label:(0,b.__)("Pending Review")},{value:"private",label:(0,b.__)("Private")},{value:"publish",label:(0,b.__)("Published")},{value:"trash",label:(0,b.__)("Trash")}],$y="draft,future,pending,private,publish";function ex({item:e,viewType:t}){const s="trash"===e.status,{onClick:n}=rn({postId:e.id,postType:e.type,canvas:"edit"}),i=!!e.featured_media,r=t===We?["large","full","medium","thumbnail"]:["thumbnail","medium","large","full"],o=i?(0,me.jsx)(Hy,{className:"edit-site-page-pages__featured-image",id:e.featured_media,size:r}):null,a=t!==Ze&&!s;return(0,me.jsx)("div",{className:`edit-site-page-pages__featured-image-wrapper is-layout-${t}`,children:a?(0,me.jsx)("button",{className:"page-pages-preview-field__button",type:"button",onClick:n,"aria-label":e.title?.rendered||(0,b.__)("(no title)"),children:o}):o})}function tx(e){return e.id.toString()}function sx(){var e,t;const s="page",[n,i]=function(e){const{params:{activeView:t="all",isCustom:s="false",layout:n}}=Ky(),i=Yy(),r=(0,d.useMemo)((()=>{const i="false"===s&&zy[e].find((({slug:e})=>e===t))?.view;return"false"===s&&n?{...i,type:n,layout:{...Dy[n]||{}}}:i}),[s,t,n,e]),[o,a]=(0,d.useState)(r);(0,d.useEffect)((()=>{r&&a(r)}),[r]);const c=(0,l.useSelect)((e=>{if("true"!==s)return;const{getEditedEntityRecord:n}=e(_.store);return n("postType","wp_dataviews",Number(t))}),[t,s]),{editEntityRecord:u}=(0,l.useDispatch)(_.store),h=(0,d.useMemo)((()=>{const e=c?.content&&JSON.parse(c?.content);return e?{...e,layout:{...Dy[e?.type]||{}}}:e}),[c?.content]),p=(0,d.useCallback)((e=>{u("postType","wp_dataviews",c?.id,{content:JSON.stringify(e)})}),[u,c?.id]),f=(0,d.useCallback)((e=>{if(e.type!==o?.type){const{params:t}=i.getLocationWithParams();i.push({...t,layout:e.type})}a(e)}),[i,o?.type]);return"false"===s?[o,f]:"true"===s&&h?[h,p]:[zy[e][0].view,f]}(s),r=Yy(),{params:{postId:o}}=Ky(),[a,c]=(0,d.useState)([o]),u=(0,d.useCallback)((e=>{var t;const{params:s}=r.getLocationWithParams();"false"===(null!==(t=s.isCustom)&&void 0!==t?t:"false")&&n?.type===Ze&&r.push({...s,postId:1===e.length?e[0].id:void 0})}),[r,n?.type]),h=(0,d.useMemo)((()=>{const e={};return n.filters.forEach((t=>{"status"===t.field&&t.operator===Ye&&(e.status=t.value),"author"===t.field&&t.operator===Ye?e.author=t.value:"author"===t.field&&t.operator===Xe&&(e.author_exclude=t.value)})),e.status&&""!==e.status||(e.status=$y),{per_page:n.perPage,page:n.page,_embed:"author",order:n.sort?.direction,orderby:n.sort?.field,search:n.search,...e}}),[n]),{records:p,isResolving:f,totalItems:m,totalPages:g}=(0,_.useEntityRecords)("postType",s,h),y=null!==(e=p?.map((e=>tx(e))))&&void 0!==e?e:[],w=(null!==(t=(0,v.usePrevious)(y))&&void 0!==t?t:[]).filter((e=>!y.includes(e))).includes(o);(0,d.useEffect)((()=>{w&&r.push({...r.getLocationWithParams().params,postId:void 0})}),[w,r]);const{records:S,isResolving:j}=(0,_.useEntityRecords)("root","user",{per_page:-1}),C=(0,d.useMemo)((()=>({totalItems:m,totalPages:g})),[m,g]),{frontPageId:k,postsPageId:E,addNewLabel:P,canCreatePage:I}=(0,l.useSelect)((e=>{const{getEntityRecord:t,getPostType:s,canUser:n}=e(_.store),i=t("root","site");return{frontPageId:i?.page_on_front,postsPageId:i?.page_for_posts,addNewLabel:s("page")?.labels?.add_new_item,canCreatePage:n("create","pages")}})),T=(0,d.useMemo)((()=>[{id:"featured-image",header:(0,b.__)("Featured Image"),getValue:({item:e})=>e.featured_media,render:({item:e})=>(0,me.jsx)(ex,{item:e,viewType:n.type}),enableSorting:!1,width:"1%"},{header:(0,b.__)("Title"),id:"title",getValue:({item:e})=>e.title?.rendered,render:({item:e})=>{const t=[qe,We].includes(n.type)&&"trash"!==e.status?(0,me.jsx)(on,{params:{postId:e.id,postType:e.type,canvas:"edit"},children:(0,cs.decodeEntities)(e.title?.rendered)||(0,b.__)("(no title)")}):(0,me.jsx)("span",{children:(0,cs.decodeEntities)(e.title?.rendered)||(0,b.__)("(no title)")});let s="";return e.id===k?s=(0,me.jsx)("span",{className:"edit-site-page-pages__title-badge",children:(0,b.__)("Front Page")}):e.id===E&&(s=(0,me.jsx)("span",{className:"edit-site-page-pages__title-badge",children:(0,b.__)("Posts Page")})),(0,me.jsxs)(x.__experimentalHStack,{className:"edit-site-page-pages-title",alignment:"center",justify:"flex-start",children:[t,s]})},maxWidth:300,enableHiding:!1},{header:(0,b.__)("Author"),id:"author",getValue:({item:e})=>e._embedded?.author[0]?.name,elements:S?.map((({id:e,name:t})=>({value:e,label:t})))||[]},{header:(0,b.__)("Status"),id:"status",getValue:({item:e})=>{var t;return null!==(t=Qy.find((({value:t})=>t===e.status))?.label)&&void 0!==t?t:e.status},elements:Qy,enableSorting:!1,filterBy:{operators:[Ye]}},{header:(0,b.__)("Date"),id:"date",render:({item:e})=>{if(["draft","private"].includes(e.status))return(0,d.createInterpolateElement)((0,b.sprintf)((0,b.__)("<span>Modified: <time>%s</time></span>"),Jy(e.date)),{span:(0,me.jsx)("span",{}),time:(0,me.jsx)("time",{})});if("future"===e.status)return(0,d.createInterpolateElement)((0,b.sprintf)((0,b.__)("<span>Scheduled: <time>%s</time></span>"),Jy(e.date)),{span:(0,me.jsx)("span",{}),time:(0,me.jsx)("time",{})});const t=(0,Kd.getDate)(e.modified)>(0,Kd.getDate)(e.date)?e.modified:e.date;if("pending"===e.status)return(0,d.createInterpolateElement)((0,b.sprintf)((0,b.__)("<span>Modified: <time>%s</time></span>"),Jy(t)),{span:(0,me.jsx)("span",{}),time:(0,me.jsx)("time",{})});return"publish"===e.status?(0,d.createInterpolateElement)((0,b.sprintf)((0,b.__)("<span>Published: <time>%s</time></span>"),Jy(t)),{span:(0,me.jsx)("span",{}),time:(0,me.jsx)("time",{})}):(0,me.jsx)("time",{children:Jy(e.date)})}}]),[S,n.type,k,E]),O=Zy({postType:"page",context:"list"}),A=qy(),M=(0,d.useMemo)((()=>[A,...O]),[O,A]),N=(0,d.useCallback)((e=>{e.type!==n.type&&(e={...e,layout:{...Dy[e.type]}}),i(e)}),[n.type,i]),[F,V]=(0,d.useState)(!1),R=()=>V(!1);return(0,me.jsx)(Ay,{title:(0,b.__)("Pages"),actions:P&&I&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(x.Button,{variant:"primary",onClick:()=>V(!0),__next40pxDefaultSize:!0,children:P}),F&&(0,me.jsx)(Gy,{onSave:({type:e,id:t})=>{r.push({postId:t,postType:e,canvas:"edit"}),R()},onClose:R})]}),children:(0,me.jsx)(Iy,{paginationInfo:C,fields:T,actions:M,data:p||Xy,isLoading:f||j,view:n,onChangeView:N,selection:a,setSelection:c,onSelectionChange:u,getItemId:tx})})}function nx(e=""){return qv()(e.trim().toLowerCase())}const ix=[];function rx(e,t,s){if(!e)return{data:ix,paginationInfo:{totalItems:0,totalPages:0}};const n=xy(s);let i=[...e];if(t.search){const e=nx(t.search);i=i.filter((t=>n.filter((e=>e.enableGlobalSearch)).map((e=>nx(e.getValue({item:t})))).some((t=>t.includes(e)))))}if(t.filters.length>0&&t.filters.forEach((e=>{const t=n.find((t=>t.id===e.field));t&&(e.operator===Kh&&e?.value?.length>0?i=i.filter((s=>{const n=t.getValue({item:s});return Array.isArray(n)?e.value.some((e=>n.includes(e))):"string"==typeof n&&e.value.includes(n)})):e.operator===Yh&&e?.value?.length>0?i=i.filter((s=>{const n=t.getValue({item:s});return Array.isArray(n)?!e.value.some((e=>n.includes(e))):"string"==typeof n&&!e.value.includes(n)})):e.operator===Xh&&e?.value?.length>0?i=i.filter((s=>e.value.every((e=>t.getValue({item:s})?.includes(e))))):e.operator===Jh&&e?.value?.length>0?i=i.filter((s=>e.value.every((e=>!t.getValue({item:s})?.includes(e))))):e.operator===qh?i=i.filter((s=>e.value===t.getValue({item:s}))):e.operator===Zh&&(i=i.filter((s=>e.value!==t.getValue({item:s})))))})),t.sort){const e=t.sort.field,s=n.find((t=>t.id===e));s&&i.sort(((e,n)=>{var i,r;const o=null!==(i=s.getValue({item:e}))&&void 0!==i?i:"",a=null!==(r=s.getValue({item:n}))&&void 0!==r?r:"";return"asc"===t.sort?.direction?o.localeCompare(a):a.localeCompare(o)}))}let r=i.length,o=1;if(void 0!==t.page&&void 0!==t.perPage){const e=(t.page-1)*t.perPage;r=i?.length||0,o=Math.ceil(r/t.perPage),i=i?.slice(e,e+t.perPage)}return{data:i,paginationInfo:{totalItems:r,totalPages:o}}}const ox=(0,me.jsx)(us.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,me.jsx)(us.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"})}),ax=(0,window.wp.priorityQueue.createQueue)();function lx({children:e,placeholder:t}){const[s,n]=(0,d.useState)(!1);return(0,d.useEffect)((()=>{const e={};return ax.add(e,(()=>{(0,d.flushSync)((()=>{n(!0)}))})),()=>{ax.cancel(e)}}),[]),s?e:t}const cx=(e,t,s)=>t===s.findIndex((t=>e.name===t.name));function ux(){var e;const t=(0,l.useSelect)((e=>{const{getSettings:t}=se(e(Kt));return t()}),[]),s=null!==(e=t.__experimentalAdditionalBlockPatterns)&&void 0!==e?e:t.__experimentalBlockPatterns,n=(0,l.useSelect)((e=>e(_.store).getBlockPatterns()),[]),i=(0,d.useMemo)((()=>[...s||[],...n||[]].filter(cx)),[s,n]);return(0,d.useMemo)((()=>{const{__experimentalAdditionalBlockPatterns:e,...s}=t;return{...s,__experimentalBlockPatterns:i,__unstableIsPreviewMode:!0}}),[t,i])}const{extractWords:dx,getNormalizedSearchTerms:hx,normalizeString:px}=se(y.privateApis),fx=e=>e.name||"",mx=e=>e.title,gx=e=>e.description||"",vx=e=>e.keywords||[],yx=()=>!1,xx=(e=[],t="",s={})=>{const n=hx(t),i=s.categoryId!==De&&!n.length,r={...s,onlyFilterByCategory:i},o=i?0:1,a=e.map((e=>[e,bx(e,t,r)])).filter((([,e])=>e>o));return 0===n.length||a.sort((([,e],[,t])=>t-e)),a.map((([e])=>e))};function bx(e,t,s){const{categoryId:n,getName:i=fx,getTitle:r=mx,getDescription:o=gx,getKeywords:a=vx,hasCategory:l=yx,onlyFilterByCategory:c}=s;let u=n===De||n===Re||n===Le&&e.type===Be.user||l(e,n)?1:0;if(!u||c)return u;const d=i(e),h=r(e),p=o(e),f=a(e),m=px(t),g=px(h);if(m===g)u+=30;else if(g.startsWith(m))u+=20;else{const e=[d,h,p,...f].join(" ");0===((e,t)=>e.filter((e=>!hx(t).some((t=>t.includes(e))))))(dx(m),e).length&&(u+=10)}return u}const wx=[],_x=(e,t)=>e&&t?e+"//"+t:null,Sx=(0,l.createSelector)(((e,t,s="")=>{var n;const{getEntityRecords:i,isResolving:r}=e(_.store),{__experimentalGetDefaultTemplatePartAreas:a}=e(h.store),l={per_page:-1},c=(null!==(n=i("postType",Ne,l))&&void 0!==n?n:wx).map((e=>(e=>({blocks:(0,o.parse)(e.content.raw,{__unstableSkipMigrationLogs:!0}),categories:[e.area],description:e.description||"",isCustom:e.source===Fe.custom,keywords:e.keywords||[],id:_x(e.theme,e.slug),name:_x(e.theme,e.slug),title:(0,cs.decodeEntities)(e.title.rendered),type:e.type,_links:e._links,templatePart:e}))(e))),u=(a()||[]).map((e=>e.area)),d=r("getEntityRecords",["postType",Ne,l]),p=xx(c,s,{categoryId:t,hasCategory:(e,t)=>t!==Ve?e.templatePart.area===t:e.templatePart.area===t||!u.includes(e.templatePart.area)});return{patterns:p,isResolving:d}}),(e=>[e(_.store).getEntityRecords("postType",Ne,{per_page:-1}),e(_.store).isResolving("getEntityRecords",["postType",Ne,{per_page:-1}]),e(h.store).__experimentalGetDefaultTemplatePartAreas()])),jx=(0,l.createSelector)((e=>{var t;const{getSettings:s}=se(e(Kt)),{isResolving:n}=e(_.store),i=s();return{patterns:[...(null!==(t=i.__experimentalAdditionalBlockPatterns)&&void 0!==t?t:i.__experimentalBlockPatterns)||[],...e(_.store).getBlockPatterns()||[]].filter((e=>!ze.includes(e.source))).filter(cx).filter((e=>!1!==e.inserter)).map((e=>({...e,keywords:e.keywords||[],type:Be.theme,blocks:(0,o.parse)(e.content,{__unstableSkipMigrationLogs:!0})}))),isResolving:n("getBlockPatterns")}}),(e=>[e(_.store).getBlockPatterns(),e(_.store).isResolving("getBlockPatterns"),se(e(Kt)).getSettings()])),Cx=(0,l.createSelector)(((e,t,s,n="")=>{const{patterns:i,isResolving:r}=jx(e),{patterns:o,isResolving:a}=kx(e);let l=[...i||[],...o||[]];return s&&(l=l.filter((e=>e.type===Be.user?e.syncStatus===s:s===Ge.unsynced))),l=xx(l,n,t?{categoryId:t,hasCategory:(e,t)=>e.categories?.includes(t)}:{hasCategory:e=>!e.hasOwnProperty("categories")}),{patterns:l,isResolving:r||a}}),(e=>[jx(e),kx(e)])),kx=(0,l.createSelector)(((e,t,s="")=>{const{getEntityRecords:n,isResolving:i,getUserPatternCategories:r}=e(_.store),a={per_page:-1},l=n("postType",Be.user,a),c=r(),u=new Map;c.forEach((e=>u.set(e.id,e)));let d=l?l.map((e=>((e,t)=>({blocks:(0,o.parse)(e.content.raw,{__unstableSkipMigrationLogs:!0}),...e.wp_pattern_category.length>0&&{categories:e.wp_pattern_category.map((e=>t&&t.get(e)?t.get(e).slug:e))},termLabels:e.wp_pattern_category.map((e=>t?.get(e)?t.get(e).label:e)),id:e.id,name:e.slug,syncStatus:e.wp_pattern_sync_status||Ge.full,title:e.title.raw,type:e.type,description:e.excerpt.raw,patternPost:e}))(e,u))):wx;const h=i("getEntityRecords",["postType",Be.user,a]);return t&&(d=d.filter((e=>e.syncStatus===t))),d=xx(d,s,{hasCategory:()=>!0}),{patterns:d,isResolving:h,categories:c}}),(e=>[e(_.store).getEntityRecords("postType",Be.user,{per_page:-1}),e(_.store).isResolving("getEntityRecords",["postType",Be.user,{per_page:-1}]),e(_.store).getUserPatternCategories()])),Ex=(e,t,{search:s="",syncStatus:n}={})=>(0,l.useSelect)((i=>{if(e===Ne)return Sx(i,t,s);if(e===Be.user&&t){return Cx(i,"uncategorized"===t?"":t,n,s)}return e===Be.user?kx(i,n,s):{patterns:wx,isResolving:!1}}),[t,e,s,n]),Px=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})}),Ix=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})}),{useHistory:Tx}=se(Xt.privateApis),{CreatePatternModal:Ox,useAddPatternCategory:Ax}=se(Oe.privateApis),{CreateTemplatePartModal:Mx}=se(h.privateApis);function Nx(){const e=Tx(),[t,s]=(0,d.useState)(!1),[n,i]=(0,d.useState)(!1),{createPatternFromFile:r}=se((0,l.useDispatch)(Oe.store)),{createSuccessNotice:o,createErrorNotice:a}=(0,l.useDispatch)(w.store),c=(0,d.useRef)(),{isBlockBasedTheme:u,addNewPatternLabel:h,addNewTemplatePartLabel:p,canCreatePattern:f,canCreateTemplatePart:m}=(0,l.useSelect)((e=>{const{getCurrentTheme:t,getPostType:s,canUser:n}=e(_.store);return{isBlockBasedTheme:t()?.is_block_theme,addNewPatternLabel:s(Be.user)?.labels?.add_new_item,addNewTemplatePartLabel:s(Ne)?.labels?.add_new_item,canCreatePattern:n("create","blocks"),canCreateTemplatePart:n("create","template-parts")}}),[]);function g(){s(!1),i(!1)}const v=[];f&&v.push({icon:Px,onClick:()=>s(!0),title:h}),u&&m&&v.push({icon:Cn,onClick:()=>i(!0),title:p}),f&&v.push({icon:Ix,onClick:()=>{c.current.click()},title:(0,b.__)("Import pattern from JSON")});const{categoryMap:y,findOrCreateTerm:S}=Ax();return 0===v.length?null:(0,me.jsxs)(me.Fragment,{children:[h&&(0,me.jsx)(x.DropdownMenu,{controls:v,icon:null,toggleProps:{variant:"primary",showTooltip:!1,__next40pxDefaultSize:!0},text:h,label:h}),t&&(0,me.jsx)(Ox,{onClose:()=>s(!1),onSuccess:function({pattern:t}){s(!1),e.push({postId:t.id,postType:Be.user,canvas:"edit"})},onError:g}),n&&(0,me.jsx)(Mx,{closeModal:()=>i(!1),blocks:[],onCreate:function(t){i(!1),e.push({postId:t.id,postType:Ne,canvas:"edit"})},onError:g}),(0,me.jsx)("input",{type:"file",accept:".json",hidden:!0,ref:c,onChange:async t=>{const s=t.target.files?.[0];if(s)try{const{params:{postType:t,categoryId:n}}=e.getLocationWithParams();let i;if(t!==Ne){const e=y.values().find((e=>e.name===n));e&&(i=e.id||await S(e.label))}const a=await r(s,i?[i]:void 0);i||"my-patterns"===n||e.push({postType:Be.user,categoryId:De}),o((0,b.sprintf)((0,b.__)('Imported "%s" from JSON.'),a.title.raw),{type:"snackbar",id:"import-pattern-success"})}catch(e){a(e.message,{type:"snackbar",id:"import-pattern-error"})}finally{t.target.value=""}}})]})}function Fx(){const e=function(){const e=(0,l.useSelect)((e=>{var t;const{getSettings:s}=se(e(Kt)),n=s();return null!==(t=n.__experimentalAdditionalBlockPatternCategories)&&void 0!==t?t:n.__experimentalBlockPatternCategories}));return[...e||[],...(0,l.useSelect)((e=>e(_.store).getBlockPatternCategories()))||[]]}();e.push({name:Ve,label:(0,b.__)("Uncategorized")});const t=function(){const e=(0,l.useSelect)((e=>{var t;const{getSettings:s}=se(e(Kt));return null!==(t=s().__experimentalAdditionalBlockPatterns)&&void 0!==t?t:s().__experimentalBlockPatterns})),t=(0,l.useSelect)((e=>e(_.store).getBlockPatterns()));return(0,d.useMemo)((()=>[...e||[],...t||[]].filter((e=>!ze.includes(e.source))).filter(cx).filter((e=>!1!==e.inserter))),[e,t])}(),{patterns:s,categories:n}=Ex(Be.user),i=(0,d.useMemo)((()=>{const i={},r=[];e.forEach((e=>{i[e.name]||(i[e.name]={...e,count:0})})),n.forEach((e=>{i[e.name]||(i[e.name]={...e,count:0})})),t.forEach((e=>{e.categories?.forEach((e=>{i[e]&&(i[e].count+=1)})),e.categories?.length||(i.uncategorized.count+=1)})),s.forEach((e=>{e.categories?.forEach((e=>{i[e]&&(i[e].count+=1)})),e.categories?.length||(i.uncategorized.count+=1)})),[...e,...n].forEach((e=>{i[e.name].count&&!r.find((t=>t.name===e.name))&&r.push(i[e.name])}));const o=r.sort(((e,t)=>e.label.localeCompare(t.label)));return o.unshift({name:Le,label:(0,b.__)("My patterns"),count:s.length}),o.unshift({name:De,label:(0,b.__)("All patterns"),description:(0,b.__)("A list of all patterns from all sources."),count:t.length+s.length}),o}),[e,t,n,s]);return{patternCategories:i,hasPatterns:!!i.length}}const{RenamePatternCategoryModal:Vx}=se(Oe.privateApis);function Rx({category:e,onClose:t}){const[s,n]=(0,d.useState)(!1);return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(x.MenuItem,{onClick:()=>n(!0),children:(0,b.__)("Rename")}),s&&(0,me.jsx)(Bx,{category:e,onClose:()=>{n(!1),t()}})]})}function Bx({category:e,onClose:t}){const s={id:e.id,slug:e.slug,name:e.label},n=Fx();return(0,me.jsx)(Vx,{category:s,existingCategories:n,onClose:t,overlayClassName:"edit-site-list__rename-modal"})}const{useHistory:Dx}=se(Xt.privateApis);function Lx({category:e,onClose:t}){const[s,n]=(0,d.useState)(!1),i=Dx(),{createSuccessNotice:r,createErrorNotice:o}=(0,l.useDispatch)(w.store),{deleteEntityRecord:a,invalidateResolution:c}=(0,l.useDispatch)(_.store);return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(x.MenuItem,{isDestructive:!0,onClick:()=>n(!0),children:(0,b.__)("Delete")}),(0,me.jsx)(x.__experimentalConfirmDialog,{isOpen:s,onConfirm:async()=>{try{await a("taxonomy","wp_pattern_category",e.id,{force:!0},{throwOnError:!0}),c("getUserPatternCategories"),c("getEntityRecords",["postType",Be.user,{per_page:-1}]),r((0,b.sprintf)((0,b.__)('"%s" deleted.'),e.label),{type:"snackbar",id:"pattern-category-delete"}),t?.(),i.push({postType:Be.user,categoryId:De})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,b.__)("An error occurred while deleting the pattern category.");o(t,{type:"snackbar",id:"pattern-category-delete"})}},onCancel:()=>n(!1),confirmButtonText:(0,b.__)("Delete"),className:"edit-site-patterns__delete-modal",title:(0,b.sprintf)((0,b.__)('Delete "%s"?'),(0,cs.decodeEntities)(e.label)),size:"medium",__experimentalHideHeader:!1,children:(0,b.sprintf)((0,b.__)('Are you sure you want to delete the category "%s"? The patterns will not be deleted.'),(0,cs.decodeEntities)(e.label))})]})}function zx({categoryId:e,type:t,titleId:s,descriptionId:n}){const{patternCategories:i}=Fx(),r=(0,l.useSelect)((e=>e(h.store).__experimentalGetDefaultTemplatePartAreas()),[]);let o,a,c;if(t===Ne){const t=r.find((t=>t.area===e));o=t?.label||(0,b.__)("All Template Parts"),a=t?.description||(0,b.__)("Includes every template part defined for any area.")}else t===Be.user&&e&&(c=i.find((t=>t.name===e)),o=c?.label,a=c?.description);return o?(0,me.jsxs)(x.__experimentalVStack,{className:"edit-site-patterns__section-header",spacing:0,children:[(0,me.jsxs)(x.__experimentalHStack,{justify:"space-between",className:"edit-site-patterns__title",children:[(0,me.jsx)(x.__experimentalHeading,{as:"h2",level:3,id:s,weight:500,children:o}),(0,me.jsxs)(x.__experimentalHStack,{expanded:!1,children:[(0,me.jsx)(Nx,{}),!!c?.id&&(0,me.jsx)(x.DropdownMenu,{icon:Ln,label:(0,b.__)("Actions"),toggleProps:{className:"edit-site-patterns__button",describedBy:(0,b.sprintf)((0,b.__)("Action menu for %s pattern category"),o),size:"compact"},children:({onClose:e})=>(0,me.jsxs)(x.MenuGroup,{children:[(0,me.jsx)(Rx,{category:c,onClose:e}),(0,me.jsx)(Lx,{category:c,onClose:e})]})})]})]}),a?(0,me.jsx)(x.__experimentalText,{variant:"muted",as:"p",id:n,className:"edit-site-patterns__sub-title",children:a}):null]}):null}const Gx=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})}),Hx=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"})}),Ux=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})});function Wx(e,t){return(0,l.useSelect)((s=>{const{getEntityRecord:n,getMedia:i,getUser:r,getEditedEntityRecord:o}=s(_.store),a=o("postType",e,t),l=a?.original_source,c=a?.author_text;switch(l){case"theme":return{type:l,icon:Js,text:c,isCustomized:a.source===Fe.custom};case"plugin":return{type:l,icon:Gx,text:c,isCustomized:a.source===Fe.custom};case"site":{const e=n("root","__unstableBase");return{type:l,icon:Hx,imageUrl:e?.site_logo?i(e.site_logo)?.source_url:void 0,text:c,isCustomized:!1}}default:{const e=r(a.author);return{type:"user",icon:Ux,imageUrl:e?.avatar_urls?.[48],text:c,isCustomized:!1}}}}),[e,t])}const{ExperimentalBlockEditorProvider:qx,useGlobalStyle:Zx}=se(y.privateApis),{usePostActions:Kx}=se(h.privateApis),{useLocation:Yx}=se(Xt.privateApis),Xx=[],Jx={[qe]:{primaryField:"title"},[We]:{mediaField:"preview",primaryField:"title",badgeFields:["sync-status"]}},Qx={type:We,search:"",page:1,perPage:20,hiddenFields:[],layout:{...Jx[We]},filters:[]},$x=[{value:Ge.full,label:(0,b._x)("Synced","pattern (singular)"),description:(0,b.__)("Patterns that are kept in sync across the site.")},{value:Ge.unsynced,label:(0,b._x)("Not synced","pattern (singular)"),description:(0,b.__)("Patterns that can be changed freely without affecting the site.")}];function eb({item:e,onClick:t,ariaDescribedBy:s,children:n}){return(0,me.jsx)("button",{className:"page-patterns-preview-field__button",type:"button",onClick:e.type!==Be.theme?t:void 0,"aria-label":e.title,"aria-describedby":s,"aria-disabled":e.type===Be.theme,children:n})}function tb({item:e,viewType:t}){const s=(0,d.useId)(),n=e.type===Be.user,i=e.type===Ne,r=!e.blocks?.length,[o]=Zx("color.background"),{onClick:a}=rn({postType:e.type,postId:n?e.id:e.name,canvas:"edit"});return(0,me.jsxs)("div",{className:`page-patterns-preview-field is-viewtype-${t}`,style:{backgroundColor:o},children:[(0,me.jsxs)(eb,{item:e,onClick:a,ariaDescribedBy:e.description?s:void 0,children:[r&&i&&(0,b.__)("Empty template part"),r&&!i&&(0,b.__)("Empty pattern"),!r&&(0,me.jsx)(lx,{children:(0,me.jsx)(y.BlockPreview,{blocks:e.blocks,viewportWidth:e.viewportWidth})})]}),e.description&&(0,me.jsx)("div",{hidden:!0,id:s,children:e.description})]})}function sb({item:e,viewType:t}){const[s,n]=(0,d.useState)(!1),{text:i,icon:r,imageUrl:o}=Wx(e.type,e.id),a=t!==Ze;return(0,me.jsxs)(x.__experimentalHStack,{alignment:"left",spacing:1,children:[a&&o&&(0,me.jsx)("div",{className:Qt("page-templates-author-field__avatar",{"is-loaded":s}),children:(0,me.jsx)("img",{onLoad:()=>n(!0),alt:"",src:o})}),a&&!o&&(0,me.jsx)("div",{className:"page-templates-author-field__icon",children:(0,me.jsx)(eu,{icon:r})}),(0,me.jsx)("span",{className:"page-templates-author-field__name",children:i})]})}function nb({item:e}){const t=e.type===Be.user,{onClick:s}=rn({postType:e.type,postId:t?e.id:e.name,canvas:"edit"});return(0,me.jsxs)(x.__experimentalHStack,{alignment:"center",justify:"flex-start",spacing:2,children:[(0,me.jsx)(x.Flex,{as:"div",gap:0,justify:"left",className:"edit-site-patterns__pattern-title",children:e.type===Be.theme?e.title:(0,me.jsx)(x.Button,{variant:"link",onClick:s,tabIndex:"-1",children:e.title||e.name})}),e.type===Be.theme&&(0,me.jsx)(x.Tooltip,{placement:"top",text:(0,b.__)("This pattern cannot be edited."),children:(0,me.jsx)(eu,{className:"edit-site-patterns__pattern-lock-icon",icon:ox,size:24})})]})}function ib(){const{params:{postType:e,categoryId:t}}=Yx(),s=e||Be.user,n=t||De,[i,r]=(0,d.useState)(Qx),o=(0,v.usePrevious)(n),a=i.filters?.find((({field:e})=>"sync-status"===e))?.value,{patterns:l,isResolving:c}=Ex(s,n,{search:i.search,syncStatus:a}),{records:u}=(0,_.useEntityRecords)("postType",Ne,{per_page:-1}),h=(0,d.useMemo)((()=>{if(!u)return Xx;const e=new Set;return u.forEach((t=>{e.add(t.author_text)})),Array.from(e).map((e=>({value:e,label:e})))}),[u]),p=(0,d.useMemo)((()=>{const e=[{header:(0,b.__)("Preview"),id:"preview",render:({item:e})=>(0,me.jsx)(tb,{item:e,viewType:i.type}),enableSorting:!1,enableHiding:!1,width:"1%"},{header:(0,b.__)("Title"),id:"title",render:({item:e})=>(0,me.jsx)(nb,{item:e}),enableHiding:!1}];return s===Be.user?e.push({header:(0,b.__)("Sync status"),id:"sync-status",render:({item:e})=>(0,me.jsx)("span",{className:`edit-site-patterns__field-sync-status-${e.syncStatus}`,children:($x.find((({value:t})=>t===e.syncStatus))||$x.find((({value:e})=>e===Ge.unsynced))).label}),elements:$x,filterBy:{operators:[Ke],isPrimary:!0},enableSorting:!1}):s===Ne&&e.push({header:(0,b.__)("Author"),id:"author",getValue:({item:e})=>e.templatePart.author_text,render:({item:e})=>(0,me.jsx)(sb,{viewType:i.type,item:e}),elements:h,filterBy:{isPrimary:!0},width:"1%"}),e}),[i.type,s,h]);(0,d.useEffect)((()=>{o!==n&&r(Qx)}),[n,o]);const{data:f,paginationInfo:m}=(0,d.useMemo)((()=>{const e={...i};return delete e.search,s!==Ne&&(e.filters=[]),rx(l,e,p)}),[l,i,p,s]),g=Kx({postType:Ne,context:"list"}),y=Kx({postType:Be.user,context:"list"}),x=qy(),w=(0,d.useMemo)((()=>s===Ne?[x,...g].filter(Boolean):[x,...y].filter(Boolean)),[x,s,g,y]),S=(0,d.useCallback)((e=>{e.type!==i.type&&(e={...e,layout:{...Jx[e.type]}}),r(e)}),[i.type,r]),j=(0,d.useId)(),C=ux();return(0,me.jsx)(qx,{settings:C,children:(0,me.jsxs)(Ay,{title:(0,b.__)("Patterns content"),className:"edit-site-page-patterns-dataviews",hideTitleFromUI:!0,children:[(0,me.jsx)(zx,{categoryId:n,type:s,titleId:`${j}-title`,descriptionId:`${j}-description`}),(0,me.jsx)(Iy,{paginationInfo:m,fields:p,actions:w,data:f||Xx,getItemId:e=>e.name,isLoading:c,view:i,onChangeView:S,supportedLayouts:[We,qe]})]})})}const rb=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})}),ob=(0,me.jsx)(us.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,me.jsx)(us.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"})}),ab=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})}),lb=(0,me.jsx)(us.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,me.jsx)(us.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"})}),cb=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v10zm-11-7.6h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-.9 3.5H6.3l1.2-1.7v1.7zm5.6-3.2c-.4-.2-.8-.4-1.2-.4-.5 0-.9.1-1.2.4-.4.2-.6.6-.8 1-.2.4-.3.9-.3 1.5s.1 1.1.3 1.6c.2.4.5.8.8 1 .4.2.8.4 1.2.4.5 0 .9-.1 1.2-.4.4-.2.6-.6.8-1 .2-.4.3-1 .3-1.6 0-.6-.1-1.1-.3-1.5-.1-.5-.4-.8-.8-1zm0 3.6c-.1.3-.3.5-.5.7-.2.1-.4.2-.7.2-.3 0-.5-.1-.7-.2-.2-.1-.4-.4-.5-.7-.1-.3-.2-.7-.2-1.2 0-.7.1-1.2.4-1.5.3-.3.6-.5 1-.5s.7.2 1 .5c.3.3.4.8.4 1.5-.1.5-.1.9-.2 1.2zm5-3.9h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-1 3.5H16l1.2-1.7v1.7z"})}),ub=(0,me.jsx)(us.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,me.jsx)(us.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"})}),db=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{fillRule:"evenodd",d:"M8.95 11.25H4v1.5h4.95v4.5H13V18c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75h-2.55v-7.5H13V9c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75H8.95v4.5ZM14.5 15v3c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5v-3c0-.3-.2-.5-.5-.5h-3c-.3 0-.5.2-.5.5Zm0-6V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5Z",clipRule:"evenodd"})}),hb=(0,me.jsx)(us.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,me.jsx)(us.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})}),pb=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})}),fb=(0,me.jsxs)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,me.jsx)(us.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,me.jsx)(us.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})]}),mb=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})}),gb={},vb=(e,t)=>{let s=e;return t.split(".").forEach((e=>{s=s?.[e]})),s},yb=(e,t)=>(e||[]).map((e=>({...e,name:(0,cs.decodeEntities)(vb(e,t))}))),xb=()=>(0,l.useSelect)((e=>e(_.store).getEntityRecords("postType",Me,{per_page:-1})),[]),bb=()=>(0,l.useSelect)((e=>e(h.store).__experimentalGetDefaultTemplateTypes()),[]),wb=()=>{const e=(0,l.useSelect)((e=>e(_.store).getPostTypes({per_page:-1})),[]);return(0,d.useMemo)((()=>{const t=["attachment"];return e?.filter((({viewable:e,slug:s})=>e&&!t.includes(s)))}),[e])};function _b(){const e=wb(),t=(0,d.useMemo)((()=>e?.filter((e=>e.has_archive))),[e]),s=xb(),n=(0,d.useMemo)((()=>e?.reduce(((e,{labels:t})=>{const s=t.singular_name.toLowerCase();return e[s]=(e[s]||0)+1,e}),{})),[e]),i=(0,d.useCallback)((({labels:e,slug:t})=>{const s=e.singular_name.toLowerCase();return n[s]>1&&s!==t}),[n]);return(0,d.useMemo)((()=>t?.filter((e=>!(s||[]).some((t=>t.slug==="archive-"+e.slug)))).map((e=>{let t;return t=i(e)?(0,b.sprintf)((0,b.__)("Archive: %1$s (%2$s)"),e.labels.singular_name,e.slug):(0,b.sprintf)((0,b.__)("Archive: %s"),e.labels.singular_name),{slug:"archive-"+e.slug,description:(0,b.sprintf)((0,b.__)("Displays an archive with the latest posts of type: %s."),e.labels.singular_name),title:t,icon:e.icon?.startsWith("dashicons-")?e.icon.slice(10):lb,templatePrefix:"archive"}}))||[]),[t,s,i])}const Sb=e=>{const t=wb(),s=xb(),n=bb(),i=(0,d.useMemo)((()=>t?.reduce(((e,{labels:t})=>{const s=(t.template_name||t.singular_name).toLowerCase();return e[s]=(e[s]||0)+1,e}),{})),[t]),r=(0,d.useCallback)((({labels:e,slug:t})=>{const s=(e.template_name||e.singular_name).toLowerCase();return i[s]>1&&s!==t}),[i]),o=(0,d.useMemo)((()=>t?.reduce(((e,{slug:t})=>{let s=t;return"page"!==t&&(s=`single-${s}`),e[t]=s,e}),{})),[t]),a=Pb("postType",o),l=(s||[]).map((({slug:e})=>e)),c=(t||[]).reduce(((t,s)=>{const{slug:i,labels:c,icon:u}=s,d=o[i],h=n?.find((({slug:e})=>e===d)),p=l?.includes(d),f=r(s);let m=c.template_name||(0,b.sprintf)((0,b.__)("Single item: %s"),c.singular_name);f&&(m=c.template_name?(0,b.sprintf)((0,b.__)("%1$s (%2$s)"),c.template_name,i):(0,b.sprintf)((0,b.__)("Single item: %1$s (%2$s)"),c.singular_name,i));const g=h?{...h,templatePrefix:o[i]}:{slug:d,title:m,description:(0,b.sprintf)((0,b.__)("Displays a single item: %s."),c.singular_name),icon:u?.startsWith("dashicons-")?u.slice(10):mb,templatePrefix:o[i]},v=a?.[i]?.hasEntities;return v&&(g.onClick=t=>{e({type:"postType",slug:i,config:{recordNamePath:"title.rendered",queryArgs:({search:e})=>({_fields:"id,title,slug,link",orderBy:e?"relevance":"modified",exclude:a[i].existingEntitiesIds}),getSpecificTemplate:e=>{const t=`${o[i]}-${e.slug}`;return{title:t,slug:t,templatePrefix:o[i]}}},labels:c,hasGeneralTemplate:p,template:t})}),p&&!v||t.push(g),t}),[]),u=(0,d.useMemo)((()=>c.reduce(((e,t)=>{const{slug:s}=t;let n="postTypesMenuItems";return"page"===s&&(n="defaultPostTypesMenuItems"),e[n].push(t),e}),{defaultPostTypesMenuItems:[],postTypesMenuItems:[]})),[c]);return u},jb=e=>{const t=(()=>{const e=(0,l.useSelect)((e=>e(_.store).getTaxonomies({per_page:-1})),[]);return(0,d.useMemo)((()=>e?.filter((({visibility:e})=>e?.publicly_queryable))),[e])})(),s=xb(),n=bb(),i=(0,d.useMemo)((()=>t?.reduce(((e,{slug:t})=>{let s=t;return["category","post_tag"].includes(t)||(s=`taxonomy-${s}`),"post_tag"===t&&(s="tag"),e[t]=s,e}),{})),[t]),r=t?.reduce(((e,{labels:t})=>{const s=(t.template_name||t.singular_name).toLowerCase();return e[s]=(e[s]||0)+1,e}),{}),o=Pb("taxonomy",i),a=(s||[]).map((({slug:e})=>e)),c=(t||[]).reduce(((t,s)=>{const{slug:l,labels:c}=s,u=i[l],d=n?.find((({slug:e})=>e===u)),h=a?.includes(u),p=((e,t)=>{if(["category","post_tag"].includes(t))return!1;const s=(e.template_name||e.singular_name).toLowerCase();return r[s]>1&&s!==t})(c,l);let f=c.template_name||c.singular_name;p&&(f=c.template_name?(0,b.sprintf)((0,b.__)("%1$s (%2$s)"),c.template_name,l):(0,b.sprintf)((0,b.__)("%1$s (%2$s)"),c.singular_name,l));const m=d?{...d,templatePrefix:i[l]}:{slug:u,title:f,description:(0,b.sprintf)((0,b.__)("Displays taxonomy: %s."),c.singular_name),icon:db,templatePrefix:i[l]},g=o?.[l]?.hasEntities;return g&&(m.onClick=t=>{e({type:"taxonomy",slug:l,config:{queryArgs:({search:e})=>({_fields:"id,name,slug,link",orderBy:e?"name":"count",exclude:o[l].existingEntitiesIds}),getSpecificTemplate:e=>{const t=`${i[l]}-${e.slug}`;return{title:t,slug:t,templatePrefix:i[l]}}},labels:c,hasGeneralTemplate:h,template:t})}),h&&!g||t.push(m),t}),[]);return(0,d.useMemo)((()=>c.reduce(((e,t)=>{const{slug:s}=t;let n="taxonomiesMenuItems";return["category","tag"].includes(s)&&(n="defaultTaxonomiesMenuItems"),e[n].push(t),e}),{defaultTaxonomiesMenuItems:[],taxonomiesMenuItems:[]})),[c])},Cb={user:"author"},kb={user:{who:"authors"}};const Eb=(e,t,s={})=>{const n=(e=>{const t=xb();return(0,d.useMemo)((()=>Object.entries(e||{}).reduce(((e,[s,n])=>{const i=(t||[]).reduce(((e,t)=>{const s=`${n}-`;return t.slug.startsWith(s)&&e.push(t.slug.substring(s.length)),e}),[]);return i.length&&(e[s]=i),e}),{})),[e,t])})(t);return(0,l.useSelect)((t=>Object.entries(n||{}).reduce(((n,[i,r])=>{const o=t(_.store).getEntityRecords(e,i,{_fields:"id",context:"view",slug:r,...s[i]});return o?.length&&(n[i]=o),n}),{})),[n])},Pb=(e,t,s=gb)=>{const n=Eb(e,t,s),i=(0,l.useSelect)((i=>Object.keys(t||{}).reduce(((t,r)=>{const o=n?.[r]?.map((({id:e})=>e))||[];return t[r]=!!i(_.store).getEntityRecords(e,r,{per_page:1,_fields:"id",context:"view",exclude:o,...s[r]})?.length,t}),{})),[t,n,e,s]);return(0,d.useMemo)((()=>Object.keys(t||{}).reduce(((e,t)=>{const s=n?.[t]?.map((({id:e})=>e))||[];return e[t]={hasEntities:i[t],existingEntitiesIds:s},e}),{})),[t,n,i])},{CompositeV2:Ib,CompositeItemV2:Tb,useCompositeStoreV2:Ob}=se(x.privateApis),Ab=[];function Mb({suggestion:e,search:t,onSelect:s,entityForSuggestions:n}){const i="edit-site-custom-template-modal__suggestions_list__list-item";return(0,me.jsxs)(Tb,{render:(0,me.jsx)(x.Button,{role:"option",className:i,onClick:()=>s(n.config.getSpecificTemplate(e))}),children:[(0,me.jsx)(x.__experimentalText,{size:"body",lineHeight:1.53846153846,weight:500,className:`${i}__title`,children:(0,me.jsx)(x.TextHighlight,{text:(0,cs.decodeEntities)(e.name),highlight:t})}),e.link&&(0,me.jsx)(x.__experimentalText,{size:"body",lineHeight:1.53846153846,className:`${i}__info`,children:e.link})]})}function Nb({entityForSuggestions:e,onSelect:t}){const s=Ob({orientation:"vertical"}),[n,i,r]=(0,v.useDebouncedInput)(),o=function(e,t){const{config:s}=e,n=(0,d.useMemo)((()=>({order:"asc",context:"view",search:t,per_page:t?20:10,...s.queryArgs(t)})),[t,s]),{records:i,hasResolved:r}=(0,_.useEntityRecords)(e.type,e.slug,n),[o,a]=(0,d.useState)(Ab);return(0,d.useEffect)((()=>{if(!r)return;let e=Ab;i?.length&&(e=i,s.recordNamePath&&(e=yb(e,s.recordNamePath))),a(e)}),[i,r]),o}(e,r),{labels:a}=e,[l,c]=(0,d.useState)(!1);return!l&&o?.length>9&&c(!0),(0,me.jsxs)(me.Fragment,{children:[l&&(0,me.jsx)(x.SearchControl,{__nextHasNoMarginBottom:!0,onChange:i,value:n,label:a.search_items,placeholder:a.search_items}),!!o?.length&&(0,me.jsx)(Ib,{store:s,role:"listbox",className:"edit-site-custom-template-modal__suggestions_list","aria-label":(0,b.__)("Suggestions list"),children:o.map((s=>(0,me.jsx)(Mb,{suggestion:s,search:r,onSelect:t,entityForSuggestions:e},s.slug)))}),r&&!o?.length&&(0,me.jsx)(x.__experimentalText,{as:"p",className:"edit-site-custom-template-modal__no-results",children:a.not_found})]})}const Fb=function({onSelect:e,entityForSuggestions:t}){const[s,n]=(0,d.useState)(t.hasGeneralTemplate);return(0,me.jsxs)(x.__experimentalVStack,{spacing:4,className:"edit-site-custom-template-modal__contents-wrapper",alignment:"left",children:[!s&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(x.__experimentalText,{as:"p",children:(0,b.__)("Select whether to create a single template for all items or a specific one.")}),(0,me.jsxs)(x.Flex,{className:"edit-site-custom-template-modal__contents",gap:"4",align:"initial",children:[(0,me.jsxs)(x.FlexItem,{isBlock:!0,as:x.Button,onClick:()=>{const{slug:s,title:n,description:i,templatePrefix:r}=t.template;e({slug:s,title:n,description:i,templatePrefix:r})},children:[(0,me.jsx)(x.__experimentalText,{as:"span",weight:500,lineHeight:1.53846153846,children:t.labels.all_items}),(0,me.jsx)(x.__experimentalText,{as:"span",lineHeight:1.53846153846,children:(0,b.__)("For all items")})]}),(0,me.jsxs)(x.FlexItem,{isBlock:!0,as:x.Button,onClick:()=>{n(!0)},children:[(0,me.jsx)(x.__experimentalText,{as:"span",weight:500,lineHeight:1.53846153846,children:t.labels.singular_name}),(0,me.jsx)(x.__experimentalText,{as:"span",lineHeight:1.53846153846,children:(0,b.__)("For a specific item")})]})]})]}),s&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(x.__experimentalText,{as:"p",children:(0,b.__)("This template will be used only for the specific item chosen.")}),(0,me.jsx)(Nb,{entityForSuggestions:t,onSelect:e})]})]})};var Vb=function(){return Vb=Object.assign||function(e){for(var t,s=1,n=arguments.length;s<n;s++)for(var i in t=arguments[s])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Vb.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function Rb(e){return e.toLowerCase()}var Bb=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Db=/[^A-Z0-9]+/gi;function Lb(e,t,s){return t instanceof RegExp?e.replace(t,s):t.reduce((function(e,t){return e.replace(t,s)}),e)}function zb(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var s=t.splitRegexp,n=void 0===s?Bb:s,i=t.stripRegexp,r=void 0===i?Db:i,o=t.transform,a=void 0===o?Rb:o,l=t.delimiter,c=void 0===l?" ":l,u=Lb(Lb(e,n,"$1\0$2"),r,"\0"),d=0,h=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(h-1);)h--;return u.slice(d,h).split("\0").map(a).join(c)}(e,Vb({delimiter:"."},t))}const Gb=function({onClose:e,createTemplate:t}){const[s,n]=(0,d.useState)(""),i=(0,b.__)("Custom Template"),[r,o]=(0,d.useState)(!1);return(0,me.jsx)("form",{onSubmit:async function(e){if(e.preventDefault(),!r){o(!0);try{await t({slug:"wp-custom-template-"+(n=s||i,void 0===a&&(a={}),zb(n,Vb({delimiter:"-"},a))),title:s||i},!1)}finally{o(!1)}var n,a}},children:(0,me.jsxs)(x.__experimentalVStack,{spacing:6,children:[(0,me.jsx)(x.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,b.__)("Name"),value:s,onChange:n,placeholder:i,disabled:r,help:(0,b.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')}),(0,me.jsxs)(x.__experimentalHStack,{className:"edit-site-custom-generic-template__modal-actions",justify:"right",children:[(0,me.jsx)(x.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{e()},children:(0,b.__)("Cancel")}),(0,me.jsx)(x.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:r,"aria-disabled":r,children:(0,b.__)("Create")})]})]})})},{useHistory:Hb}=se(Xt.privateApis),Ub=["front-page","home","single","page","index","archive","author","category","date","tag","search","404"],Wb={"front-page":rb,home:ob,single:ab,page:Qs,archive:lb,search:ds,404:cb,index:ub,category:ap,author:Ux,taxonomy:db,date:hb,tag:pb,attachment:fb};function qb({title:e,direction:t,className:s,description:n,icon:i,onClick:r,children:o}){return(0,me.jsx)(x.Button,{className:s,onClick:r,label:n,showTooltip:!!n,children:(0,me.jsxs)(x.Flex,{as:"span",spacing:2,align:"center",justify:"center",style:{width:"100%"},direction:t,children:[(0,me.jsx)("div",{className:"edit-site-add-new-template__template-icon",children:(0,me.jsx)(x.Icon,{icon:i})}),(0,me.jsxs)(x.__experimentalVStack,{className:"edit-site-add-new-template__template-name",alignment:"center",spacing:0,children:[(0,me.jsx)(x.__experimentalText,{align:"center",weight:500,lineHeight:1.53846153846,children:e}),o]})]})})}const Zb={templatesList:1,customTemplate:2,customGenericTemplate:3};function Kb({onClose:e}){const[t,s]=(0,d.useState)(Zb.templatesList),[n,i]=(0,d.useState)({}),[r,o]=(0,d.useState)(!1),a=function(e,t){const s=xb(),n=bb(),i=(s||[]).map((({slug:e})=>e)),r=(n||[]).filter((e=>Ub.includes(e.slug)&&!i.includes(e.slug))),o=s=>{t?.(),e(s)},a=[...r],{defaultTaxonomiesMenuItems:l,taxonomiesMenuItems:c}=jb(o),{defaultPostTypesMenuItems:u,postTypesMenuItems:d}=Sb(o),h=function(e){const t=xb(),s=bb(),n=Pb("root",Cb,kb);let i=s?.find((({slug:e})=>"author"===e));i||(i={description:(0,b.__)("Displays latest posts written by a single author."),slug:"author",title:"Author"});const r=!!t?.find((({slug:e})=>"author"===e));if(n.user?.hasEntities&&(i={...i,templatePrefix:"author"},i.onClick=t=>{e({type:"root",slug:"user",config:{queryArgs:({search:e})=>({_fields:"id,name,slug,link",orderBy:e?"name":"registered_date",exclude:n.user.existingEntitiesIds,who:"authors"}),getSpecificTemplate:e=>{const t=`author-${e.slug}`;return{title:t,slug:t,templatePrefix:"author"}}},labels:{singular_name:(0,b.__)("Author"),search_items:(0,b.__)("Search Authors"),not_found:(0,b.__)("No authors found."),all_items:(0,b.__)("All Authors")},hasGeneralTemplate:r,template:t})}),!r||n.user?.hasEntities)return i}(o);[...l,...u,h].forEach((e=>{if(!e)return;const t=a.findIndex((t=>t.slug===e.slug));t>-1?a[t]=e:a.push(e)})),a?.sort(((e,t)=>Ub.indexOf(e.slug)-Ub.indexOf(t.slug)));const p=[...a,..._b(),...d,...c];return p}(i,(()=>s(Zb.customTemplate))),c=Hb(),{saveEntityRecord:u}=(0,l.useDispatch)(_.store),{createErrorNotice:h,createSuccessNotice:p}=(0,l.useDispatch)(w.store),{homeUrl:f}=(0,l.useSelect)((e=>{const{getUnstableBase:t}=e(_.store);return{homeUrl:t()?.home}}),[]),m={"front-page":f,date:(0,b.sprintf)((0,b.__)("E.g. %s"),f+"/"+(new Date).getFullYear())};async function g(e,t=!0){if(!r){o(!0);try{const{title:s,description:n,slug:i}=e,r=await u("postType",Me,{description:n,slug:i.toString(),status:"publish",title:s,is_wp_suggestion:t},{throwOnError:!0});c.push({postId:r.id,postType:Me,canvas:"edit"}),p((0,b.sprintf)((0,b.__)('"%s" successfully created.'),(0,cs.decodeEntities)(r.title?.rendered||s)),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,b.__)("An error occurred while creating the template.");h(t,{type:"snackbar"})}finally{o(!1)}}}const v=()=>{e(),s(Zb.templatesList)};let y=(0,b.__)("Add template");return t===Zb.customTemplate?y=(0,b.sprintf)((0,b.__)("Add template: %s"),n.labels.singular_name):t===Zb.customGenericTemplate&&(y=(0,b.__)("Create custom template")),(0,me.jsxs)(x.Modal,{title:y,className:Qt("edit-site-add-new-template__modal",{"edit-site-add-new-template__modal_template_list":t===Zb.templatesList,"edit-site-custom-template-modal":t===Zb.customTemplate}),onRequestClose:v,overlayClassName:t===Zb.customGenericTemplate?"edit-site-custom-generic-template__modal":void 0,children:[t===Zb.templatesList&&(0,me.jsxs)(x.__experimentalGrid,{columns:3,gap:4,align:"flex-start",justify:"center",className:"edit-site-add-new-template__template-list__contents",children:[(0,me.jsx)(x.Flex,{className:"edit-site-add-new-template__template-list__prompt",children:(0,b.__)("Select what the new template should apply to:")}),a.map((e=>{const{title:t,slug:s,onClick:n}=e;return(0,me.jsx)(qb,{title:t,direction:"column",className:"edit-site-add-new-template__template-button",description:m[s],icon:Wb[s]||Js,onClick:()=>n?n(e):g(e)},s)})),(0,me.jsx)(qb,{title:(0,b.__)("Custom template"),direction:"row",className:"edit-site-add-new-template__custom-template-button",icon:Uy,onClick:()=>s(Zb.customGenericTemplate),children:(0,me.jsx)(x.__experimentalText,{lineHeight:1.53846153846,children:(0,b.__)("A custom template can be manually applied to any post or page.")})})]}),t===Zb.customTemplate&&(0,me.jsx)(Fb,{onSelect:g,entityForSuggestions:n}),t===Zb.customGenericTemplate&&(0,me.jsx)(Gb,{onClose:v,createTemplate:g})]})}const Yb=(0,d.memo)((function(){const[e,t]=(0,d.useState)(!1),{postType:s}=(0,l.useSelect)((e=>{const{getPostType:t}=e(_.store);return{postType:t(Me)}}),[]);return s?(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(x.Button,{variant:"primary",onClick:()=>t(!0),label:s.labels.add_new_item,__next40pxDefaultSize:!0,children:s.labels.add_new_item}),e&&(0,me.jsx)(Kb,{onClose:()=>t(!1)})]}):null})),{usePostActions:Xb}=se(h.privateApis),{ExperimentalBlockEditorProvider:Jb,useGlobalStyle:Qb}=se(y.privateApis),{useHistory:$b,useLocation:ew}=se(Xt.privateApis),tw=[],sw={[qe]:{primaryField:"title"},[We]:{mediaField:"preview",primaryField:"title",columnFields:["description"]},[Ze]:{primaryField:"title",mediaField:"preview"}},nw={type:We,search:"",page:1,perPage:20,sort:{field:"title",direction:"asc"},hiddenFields:["preview"],layout:sw[We],filters:[]};function iw({item:e,viewType:t}){if(t===Ze)return(0,cs.decodeEntities)(e.title?.rendered)||(0,b.__)("(no title)");const s={params:{postId:e.id,postType:e.type,canvas:"edit"}};return(0,me.jsx)(on,{...s,children:(0,cs.decodeEntities)(e.title?.rendered)||(0,b.__)("(no title)")})}function rw({item:e,viewType:t}){const[s,n]=(0,d.useState)(!1),{text:i,icon:r,imageUrl:o}=Wx(e.type,e.id),a=t!==Ze;return(0,me.jsxs)(x.__experimentalHStack,{alignment:"left",spacing:1,children:[a&&o&&(0,me.jsx)("div",{className:Qt("page-templates-author-field__avatar",{"is-loaded":s}),children:(0,me.jsx)("img",{onLoad:()=>n(!0),alt:"",src:o})}),a&&!o&&(0,me.jsx)("div",{className:"page-templates-author-field__icon",children:(0,me.jsx)(x.Icon,{icon:r})}),(0,me.jsx)("span",{className:"page-templates-author-field__name",children:i})]})}function ow({item:e,viewType:t}){const s=ux(),[n="white"]=Qb("color.background"),i=(0,d.useMemo)((()=>(0,o.parse)(e.content.raw)),[e.content.raw]),{onClick:r}=rn({postId:e.id,postType:e.type,canvas:"edit"}),a=!i?.length;return(0,me.jsx)(Jb,{settings:s,children:(0,me.jsxs)("div",{className:`page-templates-preview-field is-viewtype-${t}`,style:{backgroundColor:n},children:[t===Ze&&!a&&(0,me.jsx)(lx,{children:(0,me.jsx)(y.BlockPreview,{blocks:i})}),t!==Ze&&(0,me.jsxs)("button",{className:"page-templates-preview-field__button",type:"button",onClick:r,"aria-label":e.title?.rendered||e.title,children:[a&&(0,b.__)("Empty template"),!a&&(0,me.jsx)(lx,{children:(0,me.jsx)(y.BlockPreview,{blocks:i})})]})]})})}function aw(){const{params:e}=ew(),{activeView:t="all",layout:s,postId:n}=e,[i,r]=(0,d.useState)([n]),o=(0,d.useMemo)((()=>{const e=null!=s?s:nw.type;return{...nw,type:e,layout:sw[e],filters:"all"!==t?[{field:"author",operator:"isAny",value:[t]}]:[]}}),[s,t]),[a,l]=(0,d.useState)(o);(0,d.useEffect)((()=>{l((e=>({...e,filters:"all"!==t?[{field:"author",operator:Ye,value:[t]}]:[]})))}),[t]);const{records:c,isResolving:u}=(0,_.useEntityRecords)("postType",Me,{per_page:-1}),h=$b(),p=(0,d.useCallback)((t=>{a?.type===Ze&&h.push({...e,postId:1===t.length?t[0].id:void 0})}),[h,e,a?.type]),f=(0,d.useMemo)((()=>{if(!c)return tw;const e=new Set;return c.forEach((t=>{e.add(t.author_text)})),Array.from(e).map((e=>({value:e,label:e})))}),[c]),m=(0,d.useMemo)((()=>[{header:(0,b.__)("Preview"),id:"preview",render:({item:e})=>(0,me.jsx)(ow,{item:e,viewType:a.type}),minWidth:120,maxWidth:120,enableSorting:!1},{header:(0,b.__)("Template"),id:"title",getValue:({item:e})=>e.title?.rendered,render:({item:e})=>(0,me.jsx)(iw,{item:e,viewType:a.type}),maxWidth:400,enableHiding:!1,enableGlobalSearch:!0},{header:(0,b.__)("Description"),id:"description",render:({item:e})=>e.description?(0,me.jsx)("span",{className:"page-templates-description",children:(0,cs.decodeEntities)(e.description)}):a.type===qe&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(x.__experimentalText,{variant:"muted","aria-hidden":"true",children:"—"}),(0,me.jsx)(x.VisuallyHidden,{children:(0,b.__)("No description.")})]}),maxWidth:400,minWidth:320,enableSorting:!1,enableGlobalSearch:!0},{header:(0,b.__)("Author"),id:"author",getValue:({item:e})=>e.author_text,render:({item:e})=>(0,me.jsx)(rw,{viewType:a.type,item:e}),elements:f,width:"1%"}]),[f,a.type]),{data:g,paginationInfo:v}=(0,d.useMemo)((()=>rx(c,a,m)),[c,a,m]),y=Xb({postType:Me,context:"list"}),w=qy(),S=(0,d.useMemo)((()=>[w,...y]),[y,w]),j=(0,d.useCallback)((t=>{t.type!==a.type&&(t={...t,layout:{...sw[t.type]}},h.push({...e,layout:t.type})),l(t)}),[a.type,l,h,e]);return(0,me.jsx)(Ay,{className:"edit-site-page-templates",title:(0,b.__)("Templates"),actions:(0,me.jsx)(Yb,{}),children:(0,me.jsx)(Iy,{paginationInfo:v,fields:m,actions:S,data:g,isLoading:u,view:a,onChangeView:j,onSelectionChange:p,selection:i,setSelection:r})})}function lw(e){return(0,me.jsx)(x.Button,{...e,className:Qt("edit-site-sidebar-button",e.className)})}const{useHistory:cw,useLocation:uw}=se(Xt.privateApis);function dw({isRoot:e,title:t,actions:s,meta:n,content:i,footer:r,description:o,backPath:a}){const{dashboardLink:c,dashboardLinkText:u,previewingThemeName:h}=(0,l.useSelect)((e=>{const{getSettings:t}=se(e(Kt)),s=sn();return{dashboardLink:t().__experimentalDashboardLink,dashboardLinkText:t().__experimentalDashboardLinkText,previewingThemeName:s?e(_.store).getTheme(s)?.name?.rendered:void 0}}),[]),p=uw(),f=cw(),{navigate:m}=(0,d.useContext)(vs),g=null!=a?a:p.state?.backPath,v=(0,b.isRTL)()?Gn:zn;return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsxs)(x.__experimentalVStack,{className:Qt("edit-site-sidebar-navigation-screen__main",{"has-footer":!!r}),spacing:0,justify:"flex-start",children:[(0,me.jsxs)(x.__experimentalHStack,{spacing:3,alignment:"flex-start",className:"edit-site-sidebar-navigation-screen__title-icon",children:[!e&&(0,me.jsx)(lw,{onClick:()=>{f.push(g),m("back")},icon:v,label:(0,b.__)("Back"),showTooltip:!1}),e&&(0,me.jsx)(lw,{icon:v,label:u||(0,b.__)("Go to the Dashboard"),href:c||"index.php"}),(0,me.jsx)(x.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen__title",color:"#e0e0e0",level:1,size:20,children:tn()?(0,b.sprintf)("Previewing %1$s: %2$s",h,t):t}),s&&(0,me.jsx)("div",{className:"edit-site-sidebar-navigation-screen__actions",children:s})]}),n&&(0,me.jsx)(me.Fragment,{children:(0,me.jsx)("div",{className:"edit-site-sidebar-navigation-screen__meta",children:n})}),(0,me.jsxs)("div",{className:"edit-site-sidebar-navigation-screen__content",children:[o&&(0,me.jsx)("p",{className:"edit-site-sidebar-navigation-screen__description",children:o}),i]})]}),r&&(0,me.jsx)("footer",{className:"edit-site-sidebar-navigation-screen__footer",children:r})]})}const hw=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})}),pw=(0,me.jsx)(us.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,me.jsx)(us.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})}),{useHistory:fw}=se(Xt.privateApis);function mw({className:e,icon:t,withChevron:s=!1,suffix:n,uid:i,params:r,onClick:o,children:a,...l}){const c=fw(),{navigate:u}=(0,d.useContext)(vs);return(0,me.jsx)(x.__experimentalItem,{className:Qt("edit-site-sidebar-navigation-item",{"with-suffix":!s&&n},e),onClick:function(e){o?(o(e),u("forward")):r&&(e.preventDefault(),c.push(r),u("forward",`[id="${i}"]`))},id:i,...l,children:(0,me.jsxs)(x.__experimentalHStack,{justify:"flex-start",children:[t&&(0,me.jsx)(eu,{style:{fill:"currentcolor"},icon:t,size:24}),(0,me.jsx)(x.FlexBlock,{children:a}),s&&(0,me.jsx)(eu,{icon:(0,b.isRTL)()?hw:pw,className:"edit-site-sidebar-navigation-item__drilldown-indicator",size:24}),!s&&n]})})}function gw({children:e}){return(0,me.jsx)(x.__experimentalText,{className:"edit-site-sidebar-navigation-details-screen-panel__label",children:e})}function vw({label:e,children:t,className:s,...n}){return(0,me.jsx)(x.__experimentalHStack,{spacing:5,alignment:"left",className:Qt("edit-site-sidebar-navigation-details-screen-panel__row",s),...n,children:t},e)}function yw({children:e}){return(0,me.jsx)(x.__experimentalText,{className:"edit-site-sidebar-navigation-details-screen-panel__value",children:e})}function xw({record:e,...t}){var s,n;const i={},r=null!==(s=e?._links?.["predecessor-version"]?.[0]?.id)&&void 0!==s?s:null,o=null!==(n=e?._links?.["version-history"]?.[0]?.count)&&void 0!==n?n:0;return r&&o>1&&(i.href=(0,ps.addQueryArgs)("revision.php",{revision:e?._links["predecessor-version"][0].id}),i.as="a"),(0,me.jsx)(x.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-details-footer",children:(0,me.jsx)(mw,{"aria-label":(0,b.__)("Revisions"),...i,...t,children:(0,me.jsxs)(vw,{justify:"space-between",children:[(0,me.jsx)(gw,{children:(0,b.__)("Last modified")}),(0,me.jsx)(yw,{children:(0,d.createInterpolateElement)((0,b.sprintf)((0,b.__)("<time>%s</time>"),(0,Kd.humanTimeDiff)(e.modified)),{time:(0,me.jsx)("time",{dateTime:e.modified})})}),(0,me.jsx)(x.Icon,{className:"edit-site-sidebar-navigation-screen-details-footer__icon",icon:zs})]})})})}const bw=()=>{};function ww(e){const{openGeneralSidebar:t}=(0,l.useDispatch)(Kt),{setCanvasMode:s}=se((0,l.useDispatch)(Kt));return(0,l.useSelect)((e=>!!e(_.store).__experimentalGetCurrentThemeGlobalStylesVariations()?.length),[])?(0,me.jsx)(mw,{...e,params:{path:"/wp_global_styles"},uid:"global-styles-navigation-item"}):(0,me.jsx)(mw,{...e,onClick:()=>{s("edit"),t("edit-site/global-styles")}})}function _w(){const{storedSettings:e}=(0,l.useSelect)((e=>{const{getSettings:t}=se(e(Kt));return{storedSettings:t()}}),[]),t=he(),s=pe();return(0,me.jsx)(y.BlockEditorProvider,{settings:e,onChange:bw,onInput:bw,children:(0,me.jsxs)(x.__experimentalVStack,{spacing:10,className:"edit-site-global-styles-variation-container",children:[(0,me.jsx)(dd,{gap:3}),t?.length&&(0,me.jsx)(fu,{title:(0,b.__)("Palettes"),gap:3}),s?.length&&(0,me.jsx)(dr,{title:(0,b.__)("Typography"),gap:3})]})})}function Sw({backPath:e}){const{revisions:t,isLoading:s}=Zd(),{openGeneralSidebar:n}=(0,l.useDispatch)(Kt),{setIsListViewOpened:i}=(0,l.useDispatch)(h.store),r=(0,v.useViewportMatch)("medium","<"),{setCanvasMode:o,setEditorCanvasContainerView:a}=se((0,l.useDispatch)(Kt)),{isViewMode:c,isStyleBookOpened:u,revisionsCount:p}=(0,l.useSelect)((e=>{var t;const{getCanvasMode:s,getEditorCanvasContainerView:n}=se(e(Kt)),{getEntityRecord:i,__experimentalGetCurrentGlobalStylesId:r}=e(_.store),o=r(),a=o?i("root","globalStyles",o):void 0;return{isViewMode:"view"===s(),isStyleBookOpened:"style-book"===n(),revisionsCount:null!==(t=a?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}}),[]),{set:m}=(0,l.useDispatch)(f.store),g=(0,d.useCallback)((async()=>Promise.all([m("core","distractionFree",!1),o("edit"),n("edit-site/global-styles")])),[o,n,m]),y=(0,d.useCallback)((async()=>{await g(),a("style-book"),i(!1)}),[g,a,i]),x=(0,d.useCallback)((async()=>{await g(),a("global-styles-revisions")}),[g,a]),w=p>0,S=t?.[0]?.modified,j=w&&!s&&S;return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(dw,{title:(0,b.__)("Styles"),description:(0,b.__)("Choose a different style combination for the theme styles."),backPath:e,content:(0,me.jsx)(_w,{}),footer:j&&(0,me.jsx)(xw,{record:t?.[0],onClick:x}),actions:(0,me.jsxs)(me.Fragment,{children:[!r&&(0,me.jsx)(lw,{icon:Dn,label:(0,b.__)("Style Book"),onClick:()=>a(u?void 0:"style-book"),isPressed:u}),(0,me.jsx)(lw,{icon:Uy,label:(0,b.__)("Edit styles"),onClick:async()=>await g()})]})}),u&&!r&&c&&(0,me.jsx)(Ad,{enableResizing:!1,isSelected:()=>!1,onClick:y,onSelect:y,showCloseButton:!1,showTabs:!1})]})}const jw=(0,me.jsx)(us.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,me.jsx)(us.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})});function Cw(){const{setEditorCanvasContainerView:e}=se((0,l.useDispatch)(Kt));return(0,d.useEffect)((()=>{e(void 0)}),[e]),(0,me.jsx)(dw,{isRoot:!0,title:(0,b.__)("Design"),description:(0,b.__)("Customize the appearance of your website using the block editor."),content:(0,me.jsx)(me.Fragment,{children:(0,me.jsxs)(x.__experimentalItemGroup,{children:[(0,me.jsx)(mw,{uid:"navigation-navigation-item",params:{postType:Ae},withChevron:!0,icon:jw,children:(0,b.__)("Navigation")}),(0,me.jsx)(ww,{uid:"styles-navigation-item",withChevron:!0,icon:Vs,children:(0,b.__)("Styles")}),(0,me.jsx)(mw,{uid:"page-navigation-item",params:{postType:"page"},withChevron:!0,icon:Qs,children:(0,b.__)("Pages")}),(0,me.jsx)(mw,{uid:"template-navigation-item",params:{postType:Me},withChevron:!0,icon:Js,children:(0,b.__)("Templates")}),(0,me.jsx)(mw,{uid:"patterns-navigation-item",params:{postType:Be.user},withChevron:!0,icon:Px,children:(0,b.__)("Patterns")})]})})})}const kw={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},Ew=e=>e?.trim()?.length>0;function Pw({menuTitle:e,onClose:t,onSave:s}){const[n,i]=(0,d.useState)(e),r=n!==e&&Ew(n);return(0,me.jsx)(x.Modal,{title:(0,b.__)("Rename"),onRequestClose:t,children:(0,me.jsx)("form",{className:"sidebar-navigation__rename-modal-form",children:(0,me.jsxs)(x.__experimentalVStack,{spacing:"3",children:[(0,me.jsx)(x.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:n,placeholder:(0,b.__)("Navigation title"),onChange:i}),(0,me.jsxs)(x.__experimentalHStack,{justify:"right",children:[(0,me.jsx)(x.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,b.__)("Cancel")}),(0,me.jsx)(x.Button,{__next40pxDefaultSize:!0,__experimentalIsFocusable:!0,disabled:!r,variant:"primary",type:"submit",onClick:e=>{e.preventDefault(),r&&(s({title:n}),t())},children:(0,b.__)("Save")})]})]})})})}function Iw({onClose:e,onConfirm:t}){return(0,me.jsx)(x.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{t(),e()},onCancel:e,confirmButtonText:(0,b.__)("Delete"),size:"medium",children:(0,b.__)("Are you sure you want to delete this Navigation Menu?")})}const{useHistory:Tw}=se(Xt.privateApis),Ow={position:"bottom right"};function Aw(e){const{onDelete:t,onSave:s,onDuplicate:n,menuTitle:i,menuId:r}=e,[o,a]=(0,d.useState)(!1),[l,c]=(0,d.useState)(!1),u=Tw(),h=()=>{a(!1),c(!1)};return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(x.DropdownMenu,{className:"sidebar-navigation__more-menu",label:(0,b.__)("Actions"),icon:Ln,popoverProps:Ow,children:({onClose:e})=>(0,me.jsx)("div",{children:(0,me.jsxs)(x.MenuGroup,{children:[(0,me.jsx)(x.MenuItem,{onClick:()=>{a(!0),e()},children:(0,b.__)("Rename")}),(0,me.jsx)(x.MenuItem,{onClick:()=>{u.push({postId:r,postType:"wp_navigation",canvas:"edit"})},children:(0,b.__)("Edit")}),(0,me.jsx)(x.MenuItem,{onClick:()=>{n(),e()},children:(0,b.__)("Duplicate")}),(0,me.jsx)(x.MenuItem,{isDestructive:!0,onClick:()=>{c(!0),e()},children:(0,b.__)("Delete")})]})})}),l&&(0,me.jsx)(Iw,{onClose:h,onConfirm:t}),o&&(0,me.jsx)(Pw,{onClose:h,menuTitle:i,onSave:s})]})}const Mw=(0,me.jsx)(us.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,me.jsx)(us.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),Nw=(0,me.jsx)(us.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,me.jsx)(us.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),Fw={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},{useHistory:Vw}=se(Xt.privateApis);function Rw(e){const t=Vw(),{block:s}=e,{clientId:n}=s,{moveBlocksDown:i,moveBlocksUp:r,removeBlocks:o}=(0,l.useDispatch)(y.store),a=(0,b.sprintf)((0,b.__)("Remove %s"),(0,y.BlockTitle)({clientId:n,maximumLength:25})),c=(0,b.sprintf)((0,b.__)("Go to %s"),(0,y.BlockTitle)({clientId:n,maximumLength:25})),u=(0,l.useSelect)((e=>{const{getBlockRootClientId:t}=e(y.store);return t(n)}),[n]),h=(0,d.useCallback)((e=>{const{attributes:s,name:n}=e;if("post-type"===s.kind&&s.id&&s.type&&t){const{params:e}=t.getLocationWithParams();t.push({postType:s.type,postId:s.id,canvas:"edit"},{backPath:e})}if("core/page-list-item"===n&&s.id&&t){const{params:e}=t.getLocationWithParams();t.push({postType:"page",postId:s.id,canvas:"edit"},{backPath:e})}}),[t]);return(0,me.jsx)(x.DropdownMenu,{icon:Ln,label:(0,b.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:Fw,noIcons:!0,...e,children:({onClose:e})=>(0,me.jsxs)(me.Fragment,{children:[(0,me.jsxs)(x.MenuGroup,{children:[(0,me.jsx)(x.MenuItem,{icon:Mw,onClick:()=>{r([n],u),e()},children:(0,b.__)("Move up")}),(0,me.jsx)(x.MenuItem,{icon:Nw,onClick:()=>{i([n],u),e()},children:(0,b.__)("Move down")}),"page"===s.attributes?.type&&s.attributes?.id&&(0,me.jsx)(x.MenuItem,{onClick:()=>{h(s),e()},children:c})]}),(0,me.jsx)(x.MenuGroup,{children:(0,me.jsx)(x.MenuItem,{onClick:()=>{o([n],!1),e()},children:a})})]})})}const{PrivateListView:Bw}=se(y.privateApis),Dw=["postType","page",{per_page:100,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}];function Lw({rootClientId:e}){const{listViewRootClientId:t,isLoading:s}=(0,l.useSelect)((t=>{const{areInnerBlocksControlled:s,getBlockName:n,getBlockCount:i,getBlockOrder:r}=t(y.store),{isResolving:o}=t(_.store),a=r(e),l=1===a.length&&"core/page-list"===n(a[0])&&i(a[0])>0,c=o("getEntityRecords",Dw);return{listViewRootClientId:l?a[0]:e,isLoading:!s(e)||c}}),[e]),{replaceBlock:n,__unstableMarkNextChangeAsNotPersistent:i}=(0,l.useDispatch)(y.store),r=(0,d.useCallback)((e=>{"core/navigation-link"!==e.name||e.attributes.url||(i(),n(e.clientId,(0,o.createBlock)("core/navigation-link",e.attributes)))}),[i,n]);return(0,me.jsxs)(me.Fragment,{children:[!s&&(0,me.jsx)(Bw,{rootClientId:t,onSelect:r,blockSettingsMenu:Rw,showAppender:!1}),(0,me.jsx)("div",{className:"edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor",children:(0,me.jsx)(y.BlockList,{})})]})}const zw=()=>{};function Gw({navigationMenuId:e}){const{storedSettings:t}=(0,l.useSelect)((e=>{const{getSettings:t}=se(e(Kt));return{storedSettings:t()}}),[]),s=(0,d.useMemo)((()=>e?[(0,o.createBlock)("core/navigation",{ref:e})]:[]),[e]);return e&&s?.length?(0,me.jsx)(y.BlockEditorProvider,{settings:t,value:s,onChange:zw,onInput:zw,children:(0,me.jsx)("div",{className:"edit-site-sidebar-navigation-screen-navigation-menus__content",children:(0,me.jsx)(Lw,{rootClientId:s[0].clientId})})}):null}function Hw(e,t,s){return e?.rendered?"publish"===s?(0,cs.decodeEntities)(e?.rendered):(0,b.sprintf)((0,b.__)("%1$s (%2$s)"),(0,cs.decodeEntities)(e?.rendered),s):(0,b.sprintf)((0,b.__)("(no title %s)"),t)}function Uw({navigationMenu:e,backPath:t,handleDelete:s,handleDuplicate:n,handleSave:i}){const r=e?.title?.rendered;return(0,me.jsx)(s_,{actions:(0,me.jsx)(me.Fragment,{children:(0,me.jsx)(Aw,{menuId:e?.id,menuTitle:(0,cs.decodeEntities)(r),onDelete:s,onSave:i,onDuplicate:n})}),backPath:t,title:Hw(e?.title,e?.id,e?.status),description:(0,b.__)("Navigation Menus are a curated collection of blocks that allow visitors to get around your site."),children:(0,me.jsx)(Gw,{navigationMenuId:e?.id})})}const{useLocation:Ww}=se(Xt.privateApis),qw="wp_navigation";function Zw({backPath:e}){const{params:{postId:t}}=Ww(),{record:s,isResolving:n}=(0,_.useEntityRecord)("postType",qw,t),{isSaving:i,isDeleting:r}=(0,l.useSelect)((e=>{const{isSavingEntityRecord:s,isDeletingEntityRecord:n}=e(_.store);return{isSaving:s("postType",qw,t),isDeleting:n("postType",qw,t)}}),[t]),o=n||i||r,a=s?.title?.rendered||s?.slug,{handleSave:c,handleDelete:u,handleDuplicate:d}=Qw(),h=()=>u(s),p=e=>c(s,e),f=()=>d(s);return o?(0,me.jsx)(s_,{description:(0,b.__)("Navigation Menus are a curated collection of blocks that allow visitors to get around your site."),backPath:e,children:(0,me.jsx)(x.Spinner,{className:"edit-site-sidebar-navigation-screen-navigation-menus__loading"})}):o||s?s?.content?.raw?(0,me.jsx)(Uw,{navigationMenu:s,backPath:e,handleDelete:h,handleSave:p,handleDuplicate:f}):(0,me.jsx)(s_,{actions:(0,me.jsx)(Aw,{menuId:s?.id,menuTitle:(0,cs.decodeEntities)(a),onDelete:h,onSave:p,onDuplicate:f}),backPath:e,title:Hw(s?.title,s?.id,s?.status),description:(0,b.__)("This Navigation Menu is empty.")}):(0,me.jsx)(s_,{description:(0,b.__)("Navigation Menu missing."),backPath:e})}const{useHistory:Kw}=se(Xt.privateApis);function Yw(){const{deleteEntityRecord:e}=(0,l.useDispatch)(_.store),{createSuccessNotice:t,createErrorNotice:s}=(0,l.useDispatch)(w.store),n=Kw();return async i=>{const r=i?.id;try{await e("postType",qw,r,{force:!0},{throwOnError:!0}),t((0,b.__)("Navigation Menu successfully deleted."),{type:"snackbar"}),n.push({postType:"wp_navigation"})}catch(e){s((0,b.sprintf)((0,b.__)("Unable to delete Navigation Menu (%s)."),e?.message),{type:"snackbar"})}}}function Xw(){const{getEditedEntityRecord:e}=(0,l.useSelect)((e=>{const{getEditedEntityRecord:t}=e(_.store);return{getEditedEntityRecord:t}}),[]),{editEntityRecord:t,__experimentalSaveSpecifiedEntityEdits:s}=(0,l.useDispatch)(_.store),{createSuccessNotice:n,createErrorNotice:i}=(0,l.useDispatch)(w.store);return async(r,o)=>{if(!o)return;const a=r?.id,l=e("postType",Ae,a);t("postType",qw,a,o);const c=Object.keys(o);try{await s("postType",qw,a,c,{throwOnError:!0}),n((0,b.__)("Renamed Navigation Menu"),{type:"snackbar"})}catch(e){t("postType",qw,a,l),i((0,b.sprintf)((0,b.__)("Unable to rename Navigation Menu (%s)."),e?.message),{type:"snackbar"})}}}function Jw(){const e=Kw(),{saveEntityRecord:t}=(0,l.useDispatch)(_.store),{createSuccessNotice:s,createErrorNotice:n}=(0,l.useDispatch)(w.store);return async i=>{const r=i?.title?.rendered||i?.slug;try{const n=await t("postType",qw,{title:(0,b.sprintf)((0,b.__)("%s (Copy)"),r),content:i?.content?.raw,status:"publish"},{throwOnError:!0});n&&(s((0,b.__)("Duplicated Navigation Menu"),{type:"snackbar"}),e.push({postType:qw,postId:n.id}))}catch(e){n((0,b.sprintf)((0,b.__)("Unable to duplicate Navigation Menu (%s)."),e?.message),{type:"snackbar"})}}}function Qw(){return{handleDelete:Yw(),handleSave:Xw(),handleDuplicate:Jw()}}function $w(e,t,s){return e?"publish"===s?(0,cs.decodeEntities)(e):(0,b.sprintf)((0,b.__)("%1$s (%2$s)"),(0,cs.decodeEntities)(e),s):(0,b.sprintf)((0,b.__)("(no title %s)"),t)}let e_=!1;function t_({backPath:e}){const{records:t,isResolving:s,hasResolved:n}=(0,_.useEntityRecords)("postType",Ae,kw),i=s&&!n,{getNavigationFallbackId:r}=se((0,l.useSelect)(_.store)),o=t?.[0];o&&(e_=!0),o||s||!n||e_||r();const{handleSave:a,handleDelete:c,handleDuplicate:u}=Qw(),d=!!t?.length;return i?(0,me.jsx)(s_,{backPath:e,children:(0,me.jsx)(x.Spinner,{className:"edit-site-sidebar-navigation-screen-navigation-menus__loading"})}):i||d?1===t?.length?(0,me.jsx)(Uw,{navigationMenu:o,backPath:e,handleDelete:()=>c(o),handleDuplicate:()=>u(o),handleSave:e=>a(o,e)}):(0,me.jsx)(s_,{backPath:e,children:(0,me.jsx)(x.__experimentalItemGroup,{children:t?.map((({id:e,title:t,status:s},n)=>(0,me.jsx)(n_,{postId:e,withChevron:!0,icon:jw,children:$w(t?.rendered,n+1,s)},e)))})}):(0,me.jsx)(s_,{description:(0,b.__)("No Navigation Menus found."),backPath:e})}function s_({children:e,actions:t,title:s,description:n,backPath:i}){return(0,me.jsx)(dw,{title:s||(0,b.__)("Navigation"),actions:t,description:n||(0,b.__)("Manage your Navigation Menus."),backPath:i,content:e})}const n_=({postId:e,...t})=>{const s=rn({postId:e,postType:"wp_navigation"});return(0,me.jsx)(mw,{...s,...t})},{useLocation:i_}=se(Xt.privateApis);function r_({title:e,slug:t,customViewId:s,type:n,icon:i,isActive:r,isCustom:o,suffix:a}){const{params:{postType:l,layout:c}}=i_(),u=i||$p.find((e=>e.type===n)).icon;let d=o?s:t;"all"===d&&(d=void 0);const h=rn({postType:l,layout:c,activeView:d,isCustom:o?"true":void 0});return(0,me.jsxs)(x.__experimentalHStack,{justify:"flex-start",className:Qt("edit-site-sidebar-dataviews-dataview-item",{"is-selected":r}),children:[(0,me.jsx)(mw,{icon:u,...h,"aria-current":r?"true":void 0,children:e}),a]})}const o_=[];function a_({template:e,isActive:t}){const{text:s,icon:n}=Wx(e.type,e.id);return(0,me.jsx)(r_,{slug:s,title:s,icon:n,isActive:t,isCustom:!1},s)}function l_({activeView:e,title:t}){const{records:s}=(0,_.useEntityRecords)("postType",Me,{per_page:-1}),n=(0,d.useMemo)((()=>{var e;const t=s?.reduce(((e,t)=>{const s=t.author_text;return s&&!e[s]&&(e[s]=t),e}),{});return null!==(e=t&&Object.values(t))&&void 0!==e?e:o_}),[s]);return(0,me.jsxs)(x.__experimentalItemGroup,{children:[(0,me.jsx)(r_,{slug:"all",title:t,icon:Js,isActive:"all"===e,isCustom:!1}),n.map((t=>(0,me.jsx)(a_,{template:t,isActive:e===t.author_text},t.author_text)))]})}const{useLocation:c_}=se(Xt.privateApis);function u_({backPath:e}){const{params:{activeView:t="all"}}=c_();return(0,me.jsx)(dw,{title:(0,b.__)("Templates"),description:(0,b.__)("Create new templates, or reset any customizations made to the templates supplied by your theme."),backPath:e,content:(0,me.jsx)(l_,{activeView:t,title:(0,b.__)("All templates")})})}const d_=(0,me.jsx)(us.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,me.jsx)(us.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})});function h_({count:e,icon:t,id:s,isActive:n,label:i,type:r}){const o=rn({categoryId:s!==Re&&s!==De?s:void 0,postType:r===Ne?Ne:Be.user});if(e)return(0,me.jsx)(mw,{...o,icon:t,suffix:(0,me.jsx)("span",{children:e}),"aria-current":n?"true":void 0,children:i})}const p_=e=>{const t=e||[],s=(0,l.useSelect)((e=>e(h.store).__experimentalGetDefaultTemplatePartAreas()),[]),n={header:{},footer:{},sidebar:{},uncategorized:{}};s.forEach((e=>n[e.area]={...e,templateParts:[]}));return t.reduce(((e,t)=>(e[e[t.area]?t.area:Ve].templateParts.push(t),e)),n)};const{useLocation:f_}=se(Xt.privateApis);function m_({templatePartAreas:e,patternCategories:t,currentCategory:s,currentType:n}){const[i,...r]=t;return(0,me.jsxs)(x.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-patterns__group",children:[(0,me.jsx)(h_,{count:Object.values(e).map((({templateParts:e})=>e?.length||0)).reduce(((e,t)=>e+t),0),icon:(0,h.getTemplatePartIcon)(),label:(0,b.__)("All template parts"),id:Re,type:Ne,isActive:s===Re&&n===Ne},"all"),Object.entries(e).map((([e,{label:t,templateParts:i}])=>(0,me.jsx)(h_,{count:i?.length,icon:(0,h.getTemplatePartIcon)(e),label:t,id:e,type:Ne,isActive:s===e&&n===Ne},e))),(0,me.jsx)("div",{className:"edit-site-sidebar-navigation-screen-patterns__divider"}),i&&(0,me.jsx)(h_,{count:i.count,label:i.label,icon:d_,id:i.name,type:Be.user,isActive:s===`${i.name}`&&n===Be.user},i.name),r.map((e=>(0,me.jsx)(h_,{count:e.count,label:e.label,icon:d_,id:e.name,type:Be.user,isActive:s===`${e.name}`&&n===Be.user},e.name)))]})}function g_({backPath:e}){const{params:{postType:t,categoryId:s}}=f_(),n=t||Be.user,i=s||(n===Be.user?De:Re),{templatePartAreas:r,hasTemplateParts:o,isLoading:a}=function(){const{records:e,isResolving:t}=(0,_.useEntityRecords)("postType",Ne,{per_page:-1});return{hasTemplateParts:!!e&&!!e.length,isLoading:t,templatePartAreas:p_(e)}}(),{patternCategories:c,hasPatterns:u}=Fx(),d=(0,l.useSelect)((e=>e(_.store).getCurrentTheme()?.is_block_theme),[]);return(0,me.jsx)(dw,{isRoot:!d,title:(0,b.__)("Patterns"),description:(0,b.__)("Manage what patterns are available when editing the site."),backPath:e,content:(0,me.jsxs)(me.Fragment,{children:[a&&(0,b.__)("Loading items…"),!a&&(0,me.jsxs)(me.Fragment,{children:[!o&&!u&&(0,me.jsx)(x.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-patterns__group",children:(0,me.jsx)(x.__experimentalItem,{children:(0,b.__)("No items found")})}),(0,me.jsx)(m_,{templatePartAreas:r,patternCategories:c,currentCategory:i,currentType:n})]})]})})}const{useHistory:v_}=se(Xt.privateApis);function y_({type:e,setIsAdding:t}){const s=v_(),{saveEntityRecord:n}=(0,l.useDispatch)(_.store),[i,r]=(0,d.useState)(""),[o,a]=(0,d.useState)(!1);return(0,me.jsx)("form",{onSubmit:async r=>{r.preventDefault(),a(!0);const{getEntityRecords:o}=(0,l.resolveSelect)(_.store);let c;const u=await o("taxonomy","wp_dataviews_type",{slug:e});if(u&&u.length>0)c=u[0].id;else{const t=await n("taxonomy","wp_dataviews_type",{name:e});t&&t.id&&(c=t.id)}const d=await n("postType","wp_dataviews",{title:i,status:"publish",wp_dataviews_type:c,content:JSON.stringify(zy[e][0].view)}),{params:{postType:h}}=s.getLocationWithParams();s.push({postType:h,activeView:d.id,isCustom:"true"}),a(!1),t(!1)},children:(0,me.jsxs)(x.__experimentalVStack,{spacing:"5",children:[(0,me.jsx)(x.TextControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Name"),value:i,onChange:r,placeholder:(0,b.__)("My view"),className:"patterns-create-modal__name-input"}),(0,me.jsxs)(x.__experimentalHStack,{justify:"right",children:[(0,me.jsx)(x.Button,{variant:"tertiary",onClick:()=>{t(!1)},children:(0,b.__)("Cancel")}),(0,me.jsx)(x.Button,{variant:"primary",type:"submit","aria-disabled":!i||o,isBusy:o,children:(0,b.__)("Create")})]})]})})}function x_({type:e}){const[t,s]=(0,d.useState)(!1);return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(mw,{icon:ju,onClick:()=>{s(!0)},className:"dataviews__siderbar-content-add-new-item",children:(0,b.__)("New view")}),t&&(0,me.jsx)(x.Modal,{title:(0,b.__)("Add new view"),onRequestClose:()=>{s(!1)},children:(0,me.jsx)(y_,{type:e,setIsAdding:s})})]})}const{useHistory:b_}=se(Xt.privateApis),w_=[];function __({dataviewId:e,currentTitle:t,setIsRenaming:s}){const{editEntityRecord:n}=(0,l.useDispatch)(_.store),[i,r]=(0,d.useState)(t);return(0,me.jsx)("form",{onSubmit:async t=>{t.preventDefault(),await n("postType","wp_dataviews",e,{title:i}),s(!1)},children:(0,me.jsxs)(x.__experimentalVStack,{spacing:"5",children:[(0,me.jsx)(x.TextControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Name"),value:i,onChange:r,placeholder:(0,b.__)("My view"),className:"patterns-create-modal__name-input"}),(0,me.jsxs)(x.__experimentalHStack,{justify:"right",children:[(0,me.jsx)(x.Button,{variant:"tertiary",onClick:()=>{s(!1)},children:(0,b.__)("Cancel")}),(0,me.jsx)(x.Button,{variant:"primary",type:"submit","aria-disabled":!i,children:(0,b.__)("Rename")})]})]})})}function S_({dataviewId:e,isActive:t}){const s=b_(),{dataview:n}=(0,l.useSelect)((t=>{const{getEditedEntityRecord:s}=t(_.store);return{dataview:s("postType","wp_dataviews",e)}}),[e]),{deleteEntityRecord:i}=(0,l.useDispatch)(_.store),r=(0,d.useMemo)((()=>JSON.parse(n.content).type),[n.content]),[o,a]=(0,d.useState)(!1);return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(r_,{title:n.title,type:r,isActive:t,isCustom:!0,customViewId:e,suffix:(0,me.jsx)(x.DropdownMenu,{icon:Ln,label:(0,b.__)("Actions"),className:"edit-site-sidebar-dataviews-dataview-item__dropdown-menu",toggleProps:{style:{color:"inherit"},size:"small"},children:({onClose:e})=>(0,me.jsxs)(x.MenuGroup,{children:[(0,me.jsx)(x.MenuItem,{onClick:()=>{a(!0),e()},children:(0,b.__)("Rename")}),(0,me.jsx)(x.MenuItem,{onClick:async()=>{if(await i("postType","wp_dataviews",n.id,{force:!0}),t){const{params:{postType:e}}=s.getLocationWithParams();s.replace({postType:e})}e()},isDestructive:!0,children:(0,b.__)("Delete")})]})})}),o&&(0,me.jsx)(x.Modal,{title:(0,b.__)("Rename view"),onRequestClose:()=>{a(!1)},children:(0,me.jsx)(__,{dataviewId:e,setIsRenaming:a,currentTitle:n.title})})]})}function j_({type:e,activeView:t,isCustom:s}){const n=function(e){return(0,l.useSelect)((t=>{const{getEntityRecords:s}=t(_.store),n=s("taxonomy","wp_dataviews_type",{slug:e});if(!n||0===n.length)return w_;return s("postType","wp_dataviews",{wp_dataviews_type:n[0].id,orderby:"date",order:"asc"})||w_}))}(e);return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)("div",{className:"edit-site-sidebar-navigation-screen-dataviews__group-header",children:(0,me.jsx)(x.__experimentalHeading,{level:2,children:(0,b.__)("Custom Views")})}),(0,me.jsxs)(x.__experimentalItemGroup,{children:[n.map((e=>(0,me.jsx)(S_,{dataviewId:e.id,isActive:s&&Number(t)===e.id},e.id))),(0,me.jsx)(x_,{type:e})]})]})}const{useLocation:C_}=se(Xt.privateApis);function k_(){const{params:{postType:e,activeView:t="all",isCustom:s="false"}}=C_();if(!e)return null;const n="true"===s;return(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(x.__experimentalItemGroup,{children:zy[e].map((e=>(0,me.jsx)(r_,{slug:e.slug,title:e.title,icon:e.icon,type:e.view.type,isActive:!n&&e.slug===t,isCustom:!1},e.slug)))}),window?.__experimentalCustomViews&&(0,me.jsx)(j_,{activeView:t,type:e,isCustom:!0})]})}const{useLocation:E_,useHistory:P_}=se(Xt.privateApis);function I_(){const e=dn(),{params:t}=E_(),{postType:s,postId:n,path:i,layout:r,isCustom:o,canvas:a}=t,l="edit"===a;if(function(){const e=P_(),{params:t}=E_();(0,d.useEffect)((()=>{const{postType:s,path:n,categoryType:i,...r}=t;"/wp_template_part/all"===n&&e.replace({postType:Ne}),"/page"===n&&e.replace({postType:"page",...r}),"/wp_template"===n&&e.replace({postType:Me,...r}),"/patterns"===n&&e.replace({postType:i===Ne?Ne:Be.user,...r}),"/navigation"===n&&e.replace({postType:Ae,...r})}),[e,t])}(),"page"===s){const t="list"===r||!r;return{key:"pages",areas:{sidebar:(0,me.jsx)(dw,{title:(0,b.__)("Pages"),backPath:{},content:(0,me.jsx)(k_,{})}),content:(0,me.jsx)(sx,{}),preview:(t||l)&&(0,me.jsx)(zh,{isLoading:e}),mobile:l?(0,me.jsx)(zh,{isLoading:e}):(0,me.jsx)(sx,{})},widths:{content:t?380:void 0}}}if(s===Me){const t="true"!==o&&"list"===r;return{key:"templates",areas:{sidebar:(0,me.jsx)(u_,{backPath:{}}),content:(0,me.jsx)(aw,{}),preview:(t||l)&&(0,me.jsx)(zh,{isLoading:e}),mobile:l?(0,me.jsx)(zh,{isLoading:e}):(0,me.jsx)(aw,{})},widths:{content:t?380:void 0}}}return[Ne,Be.user].includes(s)?{key:"patterns",areas:{sidebar:(0,me.jsx)(g_,{backPath:{}}),content:(0,me.jsx)(ib,{}),mobile:l?(0,me.jsx)(zh,{isLoading:e}):(0,me.jsx)(ib,{}),preview:l&&(0,me.jsx)(zh,{isLoading:e})}}:"/wp_global_styles"===i?{key:"styles",areas:{sidebar:(0,me.jsx)(Sw,{backPath:{}}),preview:(0,me.jsx)(zh,{isLoading:e}),mobile:l&&(0,me.jsx)(zh,{isLoading:e})}}:s===Ae?n?{key:"navigation",areas:{sidebar:(0,me.jsx)(Zw,{backPath:{postType:Ae}}),preview:(0,me.jsx)(zh,{isLoading:e}),mobile:l&&(0,me.jsx)(zh,{isLoading:e})}}:{key:"navigation",areas:{sidebar:(0,me.jsx)(t_,{backPath:{}}),preview:(0,me.jsx)(zh,{isLoading:e}),mobile:l&&(0,me.jsx)(zh,{isLoading:e})}}:{key:"default",areas:{sidebar:(0,me.jsx)(Cw,{}),preview:(0,me.jsx)(zh,{isLoading:e}),mobile:l&&(0,me.jsx)(zh,{isLoading:e})}}}var T_=q_(),O_=e=>G_(e,T_),A_=q_();O_.write=e=>G_(e,A_);var M_=q_();O_.onStart=e=>G_(e,M_);var N_=q_();O_.onFrame=e=>G_(e,N_);var F_=q_();O_.onFinish=e=>G_(e,F_);var V_=[];O_.setTimeout=(e,t)=>{let s=O_.now()+t,n=()=>{let e=V_.findIndex((e=>e.cancel==n));~e&&V_.splice(e,1),L_-=~e?1:0},i={time:s,handler:e,cancel:n};return V_.splice(R_(s),0,i),L_+=1,H_(),i};var R_=e=>~(~V_.findIndex((t=>t.time>e))||~V_.length);O_.cancel=e=>{M_.delete(e),N_.delete(e),F_.delete(e),T_.delete(e),A_.delete(e)},O_.sync=e=>{z_=!0,O_.batchedUpdates(e),z_=!1},O_.throttle=e=>{let t;function s(){try{e(...t)}finally{t=null}}function n(...e){t=e,O_.onStart(s)}return n.handler=e,n.cancel=()=>{M_.delete(s),t=null},n};var B_=typeof window<"u"?window.requestAnimationFrame:()=>{};O_.use=e=>B_=e,O_.now=typeof performance<"u"?()=>performance.now():Date.now,O_.batchedUpdates=e=>e(),O_.catch=console.error,O_.frameLoop="always",O_.advance=()=>{"demand"!==O_.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):W_()};var D_=-1,L_=0,z_=!1;function G_(e,t){z_?(t.delete(e),e(0)):(t.add(e),H_())}function H_(){D_<0&&(D_=0,"demand"!==O_.frameLoop&&B_(U_))}function U_(){~D_&&(B_(U_),O_.batchedUpdates(W_))}function W_(){let e=D_;D_=O_.now();let t=R_(D_);t&&(Z_(V_.splice(0,t),(e=>e.handler())),L_-=t),L_?(M_.flush(),T_.flush(e?Math.min(64,D_-e):16.667),N_.flush(),A_.flush(),F_.flush()):D_=-1}function q_(){let e=new Set,t=e;return{add(s){L_+=t!=e||e.has(s)?0:1,e.add(s)},delete:s=>(L_-=t==e&&e.has(s)?1:0,e.delete(s)),flush(s){t.size&&(e=new Set,L_-=t.size,Z_(t,(t=>t(s)&&e.add(t))),L_+=e.size,t=e)}}}function Z_(e,t){e.forEach((e=>{try{t(e)}catch(e){O_.catch(e)}}))}var K_=Object.defineProperty,Y_={};function X_(){}((e,t)=>{for(var s in t)K_(e,s,{get:t[s],enumerable:!0})})(Y_,{assign:()=>uS,colors:()=>aS,createStringInterpolator:()=>nS,skipAnimation:()=>lS,to:()=>iS,willAdvance:()=>cS});var J_={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function Q_(e,t){if(J_.arr(e)){if(!J_.arr(t)||e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[s])return!1;return!0}return e===t}var $_=(e,t)=>e.forEach(t);function eS(e,t,s){if(J_.arr(e))for(let n=0;n<e.length;n++)t.call(s,e[n],`${n}`);else for(let n in e)e.hasOwnProperty(n)&&t.call(s,e[n],n)}var tS=e=>J_.und(e)?[]:J_.arr(e)?e:[e];function sS(e,t){if(e.size){let s=Array.from(e);e.clear(),$_(s,t)}}var nS,iS,rS=(e,...t)=>sS(e,(e=>e(...t))),oS=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),aS=null,lS=!1,cS=X_,uS=e=>{e.to&&(iS=e.to),e.now&&(O_.now=e.now),void 0!==e.colors&&(aS=e.colors),null!=e.skipAnimation&&(lS=e.skipAnimation),e.createStringInterpolator&&(nS=e.createStringInterpolator),e.requestAnimationFrame&&O_.use(e.requestAnimationFrame),e.batchedUpdates&&(O_.batchedUpdates=e.batchedUpdates),e.willAdvance&&(cS=e.willAdvance),e.frameLoop&&(O_.frameLoop=e.frameLoop)},dS=new Set,hS=[],pS=[],fS=0,mS={get idle(){return!dS.size&&!hS.length},start(e){fS>e.priority?(dS.add(e),O_.onStart(gS)):(vS(e),O_(xS))},advance:xS,sort(e){if(fS)O_.onFrame((()=>mS.sort(e)));else{let t=hS.indexOf(e);~t&&(hS.splice(t,1),yS(e))}},clear(){hS=[],dS.clear()}};function gS(){dS.forEach(vS),dS.clear(),O_(xS)}function vS(e){hS.includes(e)||yS(e)}function yS(e){hS.splice(function(e,t){let s=e.findIndex(t);return s<0?e.length:s}(hS,(t=>t.priority>e.priority)),0,e)}function xS(e){let t=pS;for(let s=0;s<hS.length;s++){let n=hS[s];fS=n.priority,n.idle||(cS(n),n.advance(e),n.idle||t.push(n))}return fS=0,(pS=hS).length=0,(hS=t).length>0}var bS="[-+]?\\d*\\.?\\d+",wS=bS+"%";function _S(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var SS=new RegExp("rgb"+_S(bS,bS,bS)),jS=new RegExp("rgba"+_S(bS,bS,bS,bS)),CS=new RegExp("hsl"+_S(bS,wS,wS)),kS=new RegExp("hsla"+_S(bS,wS,wS,bS)),ES=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,PS=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,IS=/^#([0-9a-fA-F]{6})$/,TS=/^#([0-9a-fA-F]{8})$/;function OS(e,t,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+6*(t-e)*s:s<.5?t:s<2/3?e+(t-e)*(2/3-s)*6:e}function AS(e,t,s){let n=s<.5?s*(1+t):s+t-s*t,i=2*s-n,r=OS(i,n,e+1/3),o=OS(i,n,e),a=OS(i,n,e-1/3);return Math.round(255*r)<<24|Math.round(255*o)<<16|Math.round(255*a)<<8}function MS(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function NS(e){return(parseFloat(e)%360+360)%360/360}function FS(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function VS(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function RS(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=IS.exec(e))?parseInt(t[1]+"ff",16)>>>0:aS&&void 0!==aS[e]?aS[e]:(t=SS.exec(e))?(MS(t[1])<<24|MS(t[2])<<16|MS(t[3])<<8|255)>>>0:(t=jS.exec(e))?(MS(t[1])<<24|MS(t[2])<<16|MS(t[3])<<8|FS(t[4]))>>>0:(t=ES.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=TS.exec(e))?parseInt(t[1],16)>>>0:(t=PS.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=CS.exec(e))?(255|AS(NS(t[1]),VS(t[2]),VS(t[3])))>>>0:(t=kS.exec(e))?(AS(NS(t[1]),VS(t[2]),VS(t[3]))|FS(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}var BS=(e,t,s)=>{if(J_.fun(e))return e;if(J_.arr(e))return BS({range:e,output:t,extrapolate:s});if(J_.str(e.output[0]))return nS(e);let n=e,i=n.output,r=n.range||[0,1],o=n.extrapolateLeft||n.extrapolate||"extend",a=n.extrapolateRight||n.extrapolate||"extend",l=n.easing||(e=>e);return e=>{let t=function(e,t){for(var s=1;s<t.length-1&&!(t[s]>=e);++s);return s-1}(e,r);return function(e,t,s,n,i,r,o,a,l){let c=l?l(e):e;if(c<t){if("identity"===o)return c;"clamp"===o&&(c=t)}if(c>s){if("identity"===a)return c;"clamp"===a&&(c=s)}return n===i?n:t===s?e<=t?n:i:(t===-1/0?c=-c:s===1/0?c-=t:c=(c-t)/(s-t),c=r(c),n===-1/0?c=-c:i===1/0?c+=n:c=c*(i-n)+n,c)}(e,r[t],r[t+1],i[t],i[t+1],l,o,a,n.map)}};var DS=1.70158,LS=1.525*DS,zS=DS+1,GS=2*Math.PI/3,HS=2*Math.PI/4.5,US=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,WS={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>zS*e*e*e-DS*e*e,easeOutBack:e=>1+zS*Math.pow(e-1,3)+DS*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(2*(LS+1)*e-LS)/2:(Math.pow(2*e-2,2)*((LS+1)*(2*e-2)+LS)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*GS),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*GS)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*HS)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*HS)/2+1,easeInBounce:e=>1-US(1-e),easeOutBounce:US,easeInOutBounce:e=>e<.5?(1-US(1-2*e))/2:(1+US(2*e-1))/2,steps:(e,t="end")=>s=>{let n=(s="end"===t?Math.min(s,.999):Math.max(s,.001))*e;return((e,t,s)=>Math.min(Math.max(s,e),t))(0,1,("end"===t?Math.floor(n):Math.ceil(n))/e)}},qS=Symbol.for("FluidValue.get"),ZS=Symbol.for("FluidValue.observers"),KS=e=>Boolean(e&&e[qS]),YS=e=>e&&e[qS]?e[qS]():e,XS=e=>e[ZS]||null;function JS(e,t){let s=e[ZS];s&&s.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var QS=class{[qS];[ZS];constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");$S(this,e)}},$S=(e,t)=>nj(e,qS,t);function ej(e,t){if(e[qS]){let s=e[ZS];s||nj(e,ZS,s=new Set),s.has(t)||(s.add(t),e.observerAdded&&e.observerAdded(s.size,t))}return t}function tj(e,t){let s=e[ZS];if(s&&s.has(t)){let n=s.size-1;n?s.delete(t):e[ZS]=null,e.observerRemoved&&e.observerRemoved(n,t)}}var sj,nj=(e,t,s)=>Object.defineProperty(e,t,{value:s,writable:!0,configurable:!0}),ij=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rj=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,oj=new RegExp(`(${ij.source})(%|[a-z]+)`,"i"),aj=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,lj=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,cj=e=>{let[t,s]=uj(e);if(!t||oS())return e;let n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(s&&s.startsWith("--")){return window.getComputedStyle(document.documentElement).getPropertyValue(s)||e}return s&&lj.test(s)?cj(s):s||e},uj=e=>{let t=lj.exec(e);if(!t)return[,];let[,s,n]=t;return[s,n]},dj=(e,t,s,n,i)=>`rgba(${Math.round(t)}, ${Math.round(s)}, ${Math.round(n)}, ${i})`,hj=e=>{sj||(sj=aS?new RegExp(`(${Object.keys(aS).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map((e=>YS(e).replace(lj,cj).replace(rj,RS).replace(sj,RS))),s=t.map((e=>e.match(ij).map(Number))),n=s[0].map(((e,t)=>s.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>BS({...e,output:t})));return e=>{let s=!oj.test(t[0])&&t.find((e=>oj.test(e)))?.replace(ij,""),i=0;return t[0].replace(ij,(()=>`${n[i++](e)}${s||""}`)).replace(aj,dj)}},pj="react-spring: ",fj=e=>{let t=e,s=!1;if("function"!=typeof t)throw new TypeError(`${pj}once requires a function parameter`);return(...e)=>{s||(t(...e),s=!0)}},mj=fj(console.warn);fj(console.warn);function gj(e){return J_.str(e)&&("#"==e[0]||/\d/.test(e)||!oS()&&lj.test(e)||e in(aS||{}))}new WeakMap;new Set,new WeakMap,new WeakMap,new WeakMap;var vj=oS()?Ef.useEffect:Ef.useLayoutEffect;function yj(){let e=(0,Ef.useState)()[1],t=(()=>{let e=(0,Ef.useRef)(!1);return vj((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var xj=[];var bj=Symbol.for("Animated:node"),wj=e=>e&&e[bj],_j=(e,t)=>((e,t,s)=>Object.defineProperty(e,t,{value:s,writable:!0,configurable:!0}))(e,bj,t),Sj=e=>e&&e[bj]&&e[bj].getPayload(),jj=class{payload;constructor(){_j(this,this)}getPayload(){return this.payload||[]}},Cj=class extends jj{constructor(e){super(),this._value=e,J_.num(this._value)&&(this.lastPosition=this._value)}done=!0;elapsedTime;lastPosition;lastVelocity;v0;durationProgress=0;static create(e){return new Cj(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return J_.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,J_.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},kj=class extends Cj{_string=null;_toString;constructor(e){super(0),this._toString=BS({output:[e,e]})}static create(e){return new kj(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(J_.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=BS({output:[this.getValue(),e]})),this._value=0,super.reset()}},Ej={dependencies:null},Pj=class extends jj{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return eS(this.source,((s,n)=>{(e=>!!e&&e[bj]===e)(s)?t[n]=s.getValue(e):KS(s)?t[n]=YS(s):e||(t[n]=s)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&$_(this.payload,(e=>e.reset()))}_makePayload(e){if(e){let t=new Set;return eS(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Ej.dependencies&&KS(e)&&Ej.dependencies.add(e);let t=Sj(e);t&&$_(t,(e=>this.add(e)))}},Ij=class extends Pj{constructor(e){super(e)}static create(e){return new Ij(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){let t=this.getPayload();return e.length==t.length?t.map(((t,s)=>t.setValue(e[s]))).some(Boolean):(super.setValue(e.map(Tj)),!0)}};function Tj(e){return(gj(e)?kj:Cj).create(e)}function Oj(e){let t=wj(e);return t?t.constructor:J_.arr(e)?Ij:gj(e)?kj:Cj}var Aj=(e,t)=>{let s=!J_.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,Ef.forwardRef)(((n,i)=>{let r=(0,Ef.useRef)(null),o=s&&(0,Ef.useCallback)((e=>{r.current=function(e,t){return e&&(J_.fun(e)?e(t):e.current=t),t}(i,e)}),[i]),[a,l]=function(e,t){let s=new Set;return Ej.dependencies=s,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Pj(e),Ej.dependencies=null,[e,s]}(n,t),c=yj(),u=()=>{let e=r.current;s&&!e||!1===(!!e&&t.applyAnimatedValues(e,a.getValue(!0)))&&c()},d=new Mj(u,l),h=(0,Ef.useRef)();vj((()=>(h.current=d,$_(l,(e=>ej(e,d))),()=>{h.current&&($_(h.current.deps,(e=>tj(e,h.current))),O_.cancel(h.current.update))}))),(0,Ef.useEffect)(u,[]),(e=>{(0,Ef.useEffect)(e,xj)})((()=>()=>{let e=h.current;$_(e.deps,(t=>tj(t,e)))}));let p=t.getComponentProps(a.getValue());return Ef.createElement(e,{...p,ref:o})}))},Mj=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&O_.write(this.update)}};var Nj=Symbol.for("AnimatedComponent"),Fj=e=>J_.str(e)?e:e&&J_.str(e.displayName)?e.displayName:J_.fun(e)&&e.name||null;function Vj(e,...t){return J_.fun(e)?e(...t):e}var Rj=(e,t)=>!0===e||!!(t&&e&&(J_.fun(e)?e(t):tS(e).includes(t))),Bj=(e,t)=>J_.obj(e)?t&&e[t]:e,Dj=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Lj=e=>e,zj=(e,t=Lj)=>{let s=Gj;e.default&&!0!==e.default&&(e=e.default,s=Object.keys(e));let n={};for(let i of s){let s=t(e[i],i);J_.und(s)||(n[i]=s)}return n},Gj=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Hj={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Uj(e){let t=function(e){let t={},s=0;if(eS(e,((e,n)=>{Hj[n]||(t[n]=e,s++)})),s)return t}(e);if(t){let s={to:t};return eS(e,((e,n)=>n in t||(s[n]=e))),s}return{...e}}function Wj(e){return e=YS(e),J_.arr(e)?e.map(Wj):gj(e)?Y_.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function qj(e){return J_.fun(e)||J_.arr(e)&&J_.obj(e[0])}var Zj={tension:170,friction:26,mass:1,damping:1,easing:WS.linear,clamp:!1},Kj=class{tension;friction;frequency;damping;mass;velocity=0;restVelocity;precision;progress;duration;easing;clamp;bounce;decay;round;constructor(){Object.assign(this,Zj)}};function Yj(e,t){if(J_.und(t.decay)){let s=!J_.und(t.tension)||!J_.und(t.friction);(s||!J_.und(t.frequency)||!J_.und(t.damping)||!J_.und(t.mass))&&(e.duration=void 0,e.decay=void 0),s&&(e.frequency=void 0)}else e.duration=void 0}var Xj=[],Jj=class{changed=!1;values=Xj;toValues=null;fromValues=Xj;to;from;config=new Kj;immediate=!1};function Qj(e,{key:t,props:s,defaultProps:n,state:i,actions:r}){return new Promise(((o,a)=>{let l,c,u=Rj(s.cancel??n?.cancel,t);if(u)p();else{J_.und(s.pause)||(i.paused=Rj(s.pause,t));let e=n?.pause;!0!==e&&(e=i.paused||Rj(e,t)),l=Vj(s.delay||0,t),e?(i.resumeQueue.add(h),r.pause()):(r.resume(),h())}function d(){i.resumeQueue.add(h),i.timeouts.delete(c),c.cancel(),l=c.time-O_.now()}function h(){l>0&&!Y_.skipAnimation?(i.delayed=!0,c=O_.setTimeout(p,l),i.pauseQueue.add(d),i.timeouts.add(c)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(c),e<=(i.cancelId||0)&&(u=!0);try{r.start({...s,callId:e,cancel:u},o)}catch(e){a(e)}}}))}var $j=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?sC(e.get()):t.every((e=>e.noop))?eC(e.get()):tC(e.get(),t.every((e=>e.finished))),eC=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),tC=(e,t,s=!1)=>({value:e,finished:t,cancelled:s}),sC=e=>({value:e,cancelled:!0,finished:!1});function nC(e,t,s,n){let{callId:i,parentId:r,onRest:o}=t,{asyncTo:a,promise:l}=s;return r||e!==a||t.reset?s.promise=(async()=>{s.asyncId=i,s.asyncTo=e;let c,u,d,h=zj(t,((e,t)=>"onRest"===t?void 0:e)),p=new Promise(((e,t)=>(c=e,u=t))),f=e=>{let t=i<=(s.cancelId||0)&&sC(n)||i!==s.asyncId&&tC(n,!1);if(t)throw e.result=t,u(e),e},m=(e,t)=>{let r=new rC,o=new oC;return(async()=>{if(Y_.skipAnimation)throw iC(s),o.result=tC(n,!1),u(o),o;f(r);let a=J_.obj(e)?{...e}:{...t,to:e};a.parentId=i,eS(h,((e,t)=>{J_.und(a[t])&&(a[t]=e)}));let l=await n.start(a);return f(r),s.paused&&await new Promise((e=>{s.resumeQueue.add(e)})),l})()};if(Y_.skipAnimation)return iC(s),tC(n,!1);try{let t;t=J_.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,n.stop.bind(n))),await Promise.all([t.then(c),p]),d=tC(n.get(),!0,!1)}catch(e){if(e instanceof rC)d=e.result;else{if(!(e instanceof oC))throw e;d=e.result}}finally{i==s.asyncId&&(s.asyncId=r,s.asyncTo=r?a:void 0,s.promise=r?l:void 0)}return J_.fun(o)&&O_.batchedUpdates((()=>{o(d,n,n.item)})),d})():l}function iC(e,t){sS(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var rC=class extends Error{result;constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},oC=class extends Error{result;constructor(){super("SkipAnimationSignal")}},aC=e=>e instanceof cC,lC=1,cC=class extends QS{id=lC++;_priority=0;get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=wj(this);return e&&e.getValue()}to(...e){return Y_.to(this,e)}interpolate(...e){return mj(`${pj}The "interpolate" function is deprecated in v9 (use "to" instead)`),Y_.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){JS(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||mS.sort(this),JS(this,{type:"priority",parent:this,priority:e})}},uC=Symbol.for("SpringPhase"),dC=e=>(1&e[uC])>0,hC=e=>(2&e[uC])>0,pC=e=>(4&e[uC])>0,fC=(e,t)=>t?e[uC]|=3:e[uC]&=-3,mC=(e,t)=>t?e[uC]|=4:e[uC]&=-5,gC=class extends cC{key;animation=new Jj;queue;defaultProps={};_state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_pendingCalls=new Set;_lastCallId=0;_lastToId=0;_memoizedDuration=0;constructor(e,t){if(super(),!J_.und(e)||!J_.und(t)){let s=J_.obj(e)?{...e}:{...t,from:e};J_.und(s.default)&&(s.default=!0),this.start(s)}}get idle(){return!(hC(this)||this._state.asyncTo)||pC(this)}get goal(){return YS(this.animation.to)}get velocity(){let e=wj(this);return e instanceof Cj?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return dC(this)}get isAnimating(){return hC(this)}get isPaused(){return pC(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,s=!1,n=this.animation,{config:i,toValues:r}=n,o=Sj(n.to);!o&&KS(n.to)&&(r=tS(YS(n.to))),n.values.forEach(((a,l)=>{if(a.done)return;let c=a.constructor==kj?1:o?o[l].lastPosition:r[l],u=n.immediate,d=c;if(!u){if(d=a.lastPosition,i.tension<=0)return void(a.done=!0);let t,s=a.elapsedTime+=e,r=n.fromValues[l],o=null!=a.v0?a.v0:a.v0=J_.arr(i.velocity)?i.velocity[l]:i.velocity,h=i.precision||(r==c?.005:Math.min(1,.001*Math.abs(c-r)));if(J_.und(i.duration))if(i.decay){let e=!0===i.decay?.998:i.decay,n=Math.exp(-(1-e)*s);d=r+o/(1-e)*(1-n),u=Math.abs(a.lastPosition-d)<=h,t=o*n}else{t=null==a.lastVelocity?o:a.lastVelocity;let s,n=i.restVelocity||h/10,l=i.clamp?0:i.bounce,p=!J_.und(l),f=r==c?a.v0>0:r<c,m=!1,g=1,v=Math.ceil(e/g);for(let e=0;e<v&&(s=Math.abs(t)>n,s||(u=Math.abs(c-d)<=h,!u));++e){p&&(m=d==c||d>c==f,m&&(t=-t*l,d=c)),t+=(1e-6*-i.tension*(d-c)+.001*-i.friction*t)/i.mass*g,d+=t*g}}else{let n=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,a.durationProgress>0&&(a.elapsedTime=i.duration*a.durationProgress,s=a.elapsedTime+=e)),n=(i.progress||0)+s/this._memoizedDuration,n=n>1?1:n<0?0:n,a.durationProgress=n),d=r+i.easing(n)*(c-r),t=(d-a.lastPosition)/e,u=1==n}a.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}o&&!o[l].done&&(u=!1),u?a.done=!0:t=!1,a.setValue(d,i.round)&&(s=!0)}));let a=wj(this),l=a.getValue();if(t){let e=YS(n.to);l===e&&!s||i.decay?s&&i.decay&&this._onChange(l):(a.setValue(e),this._onChange(e)),this._stop()}else s&&this._onChange(l)}set(e){return O_.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(hC(this)){let{to:e,config:t}=this.animation;O_.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let s;return J_.und(e)?(s=this.queue||[],this.queue=[]):s=[J_.obj(e)?e:{...t,to:e}],Promise.all(s.map((e=>this._update(e)))).then((e=>$j(this,e)))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),iC(this._state,e&&this._lastCallId),O_.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:s,from:n}=e;s=J_.obj(s)?s[t]:s,(null==s||qj(s))&&(s=void 0),n=J_.obj(n)?n[t]:n,null==n&&(n=void 0);let i={to:s,from:n};return dC(this)||(e.reverse&&([s,n]=[n,s]),n=YS(n),J_.und(n)?wj(this)||this._set(s):this._set(n)),i}_update({...e},t){let{key:s,defaultProps:n}=this;e.default&&Object.assign(n,zj(e,((e,t)=>/^on/.test(t)?Bj(e,s):e))),_C(this,e,"onProps"),SC(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let r=this._state;return Qj(++this._lastCallId,{key:s,props:e,defaultProps:n,state:r,actions:{pause:()=>{pC(this)||(mC(this,!0),rS(r.pauseQueue),SC(this,"onPause",tC(this,vC(this,this.animation.to)),this))},resume:()=>{pC(this)&&(mC(this,!1),hC(this)&&this._resume(),rS(r.resumeQueue),SC(this,"onResume",tC(this,vC(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then((s=>{if(e.loop&&s.finished&&(!t||!s.noop)){let t=yC(e);if(t)return this._update(t,!0)}return s}))}_merge(e,t,s){if(t.cancel)return this.stop(!0),s(sC(this));let n=!J_.und(e.to),i=!J_.und(e.from);if(n||i){if(!(t.callId>this._lastToId))return s(sC(this));this._lastToId=t.callId}let{key:r,defaultProps:o,animation:a}=this,{to:l,from:c}=a,{to:u=l,from:d=c}=e;i&&!n&&(!t.default||J_.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);let h=!Q_(d,c);h&&(a.from=d),d=YS(d);let p=!Q_(u,l);p&&this._focus(u);let f=qj(t.to),{config:m}=a,{decay:g,velocity:v}=m;(n||i)&&(m.velocity=0),t.config&&!f&&function(e,t,s){s&&(Yj(s={...s},t),t={...s,...t}),Yj(e,t),Object.assign(e,t);for(let t in Zj)null==e[t]&&(e[t]=Zj[t]);let{mass:n,frequency:i,damping:r}=e;J_.und(i)||(i<.01&&(i=.01),r<0&&(r=0),e.tension=Math.pow(2*Math.PI/i,2)*n,e.friction=4*Math.PI*r*n/i)}(m,Vj(t.config,r),t.config!==o.config?Vj(o.config,r):void 0);let y=wj(this);if(!y||J_.und(u))return s(tC(this,!0));let x=J_.und(t.reset)?i&&!t.default:!J_.und(d)&&Rj(t.reset,r),b=x?d:this.get(),w=Wj(u),_=J_.num(w)||J_.arr(w)||gj(w),S=!f&&(!_||Rj(o.immediate||t.immediate,r));if(p){let e=Oj(u);if(e!==y.constructor){if(!S)throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`);y=this._set(w)}}let j=y.constructor,C=KS(u),k=!1;if(!C){let e=x||!dC(this)&&h;(p||e)&&(k=Q_(Wj(b),w),C=!k),(!Q_(a.immediate,S)&&!S||!Q_(m.decay,g)||!Q_(m.velocity,v))&&(C=!0)}if(k&&hC(this)&&(a.changed&&!x?C=!0:C||this._stop(l)),!f&&((C||KS(l))&&(a.values=y.getPayload(),a.toValues=KS(u)?null:j==kj?[1]:tS(w)),a.immediate!=S&&(a.immediate=S,!S&&!x&&this._set(l)),C)){let{onRest:e}=a;$_(wC,(e=>_C(this,t,e)));let n=tC(this,vC(this,l));rS(this._pendingCalls,n),this._pendingCalls.add(s),a.changed&&O_.batchedUpdates((()=>{a.changed=!x,e?.(n,this),x?Vj(o.onRest,n):a.onStart?.(n,this)}))}x&&this._set(b),f?s(nC(t.to,t,this._state,this)):C?this._start():hC(this)&&!p?this._pendingCalls.add(s):s(eC(b))}_focus(e){let t=this.animation;e!==t.to&&(XS(this)&&this._detach(),t.to=e,XS(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;KS(t)&&(ej(t,this),aC(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;KS(e)&&tj(e,this)}_set(e,t=!0){let s=YS(e);if(!J_.und(s)){let e=wj(this);if(!e||!Q_(s,e.getValue())){let n=Oj(s);e&&e.constructor==n?e.setValue(s):_j(this,n.create(s)),e&&O_.batchedUpdates((()=>{this._onChange(s,t)}))}}return wj(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,SC(this,"onStart",tC(this,vC(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Vj(this.animation.onChange,e,this)),Vj(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;wj(this).reset(YS(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),hC(this)||(fC(this,!0),pC(this)||this._resume())}_resume(){Y_.skipAnimation?this.finish():mS.start(this)}_stop(e,t){if(hC(this)){fC(this,!1);let s=this.animation;$_(s.values,(e=>{e.done=!0})),s.toValues&&(s.onChange=s.onPause=s.onResume=void 0),JS(this,{type:"idle",parent:this});let n=t?sC(this.get()):tC(this.get(),vC(this,e??s.to));rS(this._pendingCalls,n),s.changed&&(s.changed=!1,SC(this,"onRest",n,this))}}};function vC(e,t){let s=Wj(t);return Q_(Wj(e.get()),s)}function yC(e,t=e.loop,s=e.to){let n=Vj(t);if(n){let i=!0!==n&&Uj(n),r=(i||e).reverse,o=!i||i.reset;return xC({...e,loop:t,default:!1,pause:void 0,to:!r||qj(s)?s:void 0,from:o?e.from:void 0,reset:o,...i})}}function xC(e){let{to:t,from:s}=e=Uj(e),n=new Set;return J_.obj(t)&&bC(t,n),J_.obj(s)&&bC(s,n),e.keys=n.size?Array.from(n):null,e}function bC(e,t){eS(e,((e,s)=>null!=e&&t.add(s)))}var wC=["onStart","onRest","onChange","onPause","onResume"];function _C(e,t,s){e.animation[s]=t[s]!==Dj(t,s)?Bj(t[s],e.key):void 0}function SC(e,t,...s){e.animation[t]?.(...s),e.defaultProps[t]?.(...s)}var jC=["onStart","onChange","onRest"],CC=1,kC=class{id=CC++;springs={};queue=[];ref;_flush;_initialProps;_lastAsyncId=0;_active=new Set;_changed=new Set;_started=!1;_item;_state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_events={onStart:new Map,onChange:new Map,onRest:new Map};constructor(e,t){this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each(((t,s)=>e[s]=t.get())),e}set(e){for(let t in e){let s=e[t];J_.und(s)||this.springs[t].set(s)}}update(e){return e&&this.queue.push(xC(e)),this}start(e){let{queue:t}=this;return e?t=tS(e).map(xC):this.queue=[],this._flush?this._flush(this,t):(OC(this,t),EC(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let s=this.springs;$_(tS(t),(t=>s[t].stop(!!e)))}else iC(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(J_.und(e))this.start({pause:!0});else{let t=this.springs;$_(tS(e),(e=>t[e].pause()))}return this}resume(e){if(J_.und(e))this.start({pause:!1});else{let t=this.springs;$_(tS(e),(e=>t[e].resume()))}return this}each(e){eS(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:s}=this._events,n=this._active.size>0,i=this._changed.size>0;(n&&!this._started||i&&!this._started)&&(this._started=!0,sS(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));let r=!n&&this._started,o=i||r&&s.size?this.get():null;i&&t.size&&sS(t,(([e,t])=>{t.value=o,e(t,this,this._item)})),r&&(this._started=!1,sS(s,(([e,t])=>{t.value=o,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}O_.onFrame(this._onFrame)}};function EC(e,t){return Promise.all(t.map((t=>PC(e,t)))).then((t=>$j(e,t)))}async function PC(e,t,s){let{keys:n,to:i,from:r,loop:o,onRest:a,onResolve:l}=t,c=J_.obj(t.default)&&t.default;o&&(t.loop=!1),!1===i&&(t.to=null),!1===r&&(t.from=null);let u=J_.arr(i)||J_.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):$_(jC,(s=>{let n=t[s];if(J_.fun(n)){let i=e._events[s];t[s]=({finished:e,cancelled:t})=>{let s=i.get(n);s?(e||(s.finished=!1),t&&(s.cancelled=!0)):i.set(n,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[s]=t[s])}}));let d=e._state;t.pause===!d.paused?(d.paused=t.pause,rS(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let h=(n||Object.keys(e.springs)).map((s=>e.springs[s].start(t))),p=!0===t.cancel||!0===Dj(t,"cancel");(u||p&&d.asyncId)&&h.push(Qj(++e._lastAsyncId,{props:t,state:d,actions:{pause:X_,resume:X_,start(t,s){p?(iC(d,e._lastAsyncId),s(sC(e))):(t.onRest=a,s(nC(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));let f=$j(e,await Promise.all(h));if(o&&f.finished&&(!s||!f.noop)){let s=yC(t,o,i);if(s)return OC(e,[s]),PC(e,s,!0)}return l&&O_.batchedUpdates((()=>l(f,e,e.item))),f}function IC(e,t){let s=new gC;return s.key=e,t&&ej(s,t),s}function TC(e,t,s){t.keys&&$_(t.keys,(n=>{(e[n]||(e[n]=s(n)))._prepareNode(t)}))}function OC(e,t){$_(t,(t=>{TC(e.springs,t,(t=>IC(t,e)))}))}var AC=({children:e,...t})=>{let s=(0,Ef.useContext)(MC),n=t.pause||!!s.pause,i=t.immediate||!!s.immediate;t=function(e,t){let[s]=(0,Ef.useState)((()=>({inputs:t,result:e()}))),n=(0,Ef.useRef)(),i=n.current,r=i;return r?Boolean(t&&r.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[s])return!1;return!0}(t,r.inputs))||(r={inputs:t,result:e()}):r=s,(0,Ef.useEffect)((()=>{n.current=r,i==s&&(s.inputs=s.result=void 0)}),[r]),r.result}((()=>({pause:n,immediate:i})),[n,i]);let{Provider:r}=MC;return Ef.createElement(r,{value:t},e)},MC=function(e,t){return Object.assign(e,Ef.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(AC,{});AC.Provider=MC.Provider,AC.Consumer=MC.Consumer;var NC=class extends cC{constructor(e,t){super(),this.source=e,this.calc=BS(...t);let s=this._get(),n=Oj(s);_j(this,n.create(s))}key;idle=!0;calc;_active=new Set;advance(e){let t=this._get();Q_(t,this.get())||(wj(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&VC(this._active)&&RC(this)}_get(){let e=J_.arr(this.source)?this.source.map(YS):tS(YS(this.source));return this.calc(...e)}_start(){this.idle&&!VC(this._active)&&(this.idle=!1,$_(Sj(this),(e=>{e.done=!1})),Y_.skipAnimation?(O_.batchedUpdates((()=>this.advance())),RC(this)):mS.start(this))}_attach(){let e=1;$_(tS(this.source),(t=>{KS(t)&&ej(t,this),aC(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){$_(tS(this.source),(e=>{KS(e)&&tj(e,this)})),this._active.clear(),RC(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=tS(this.source).reduce(((e,t)=>Math.max(e,(aC(t)?t.priority:0)+1)),0))}};function FC(e){return!1!==e.idle}function VC(e){return!e.size||Array.from(e).every(FC)}function RC(e){e.idle||(e.idle=!0,$_(Sj(e),(e=>{e.done=!0})),JS(e,{type:"idle",parent:e}))}Y_.assign({createStringInterpolator:hj,to:(e,t)=>new NC(e,t)});mS.advance;var BC=/^--/;function DC(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||BC.test(e)||zC.hasOwnProperty(e)&&zC[e]?(""+t).trim():t+"px"}var LC={};var zC={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},GC=["Webkit","Ms","Moz","O"];zC=Object.keys(zC).reduce(((e,t)=>(GC.forEach((s=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(s,t)]=e[t])),e)),zC);var HC=/^(matrix|translate|scale|rotate|skew)/,UC=/^(translate)/,WC=/^(rotate|skew)/,qC=(e,t)=>J_.num(e)&&0!==e?e+t:e,ZC=(e,t)=>J_.arr(e)?e.every((e=>ZC(e,t))):J_.num(e)?e===t:parseFloat(e)===t,KC=class extends Pj{constructor({x:e,y:t,z:s,...n}){let i=[],r=[];(e||t||s)&&(i.push([e||0,t||0,s||0]),r.push((e=>[`translate3d(${e.map((e=>qC(e,"px"))).join(",")})`,ZC(e,0)]))),eS(n,((e,t)=>{if("transform"===t)i.push([e||""]),r.push((e=>[e,""===e]));else if(HC.test(t)){if(delete n[t],J_.und(e))return;let s=UC.test(t)?"px":WC.test(t)?"deg":"";i.push(tS(e)),r.push("rotate3d"===t?([e,t,n,i])=>[`rotate3d(${e},${t},${n},${qC(i,s)})`,ZC(i,0)]:e=>[`${t}(${e.map((e=>qC(e,s))).join(",")})`,ZC(e,t.startsWith("scale")?1:0)])}})),i.length&&(n.transform=new YC(i,r)),super(n)}},YC=class extends QS{constructor(e,t){super(),this.inputs=e,this.transforms=t}_value=null;get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return $_(this.inputs,((s,n)=>{let i=YS(s[0]),[r,o]=this.transforms[n](J_.arr(i)?i:s.map(YS));e+=" "+r,t=t&&o})),t?"none":e}observerAdded(e){1==e&&$_(this.inputs,(e=>$_(e,(e=>KS(e)&&ej(e,this)))))}observerRemoved(e){0==e&&$_(this.inputs,(e=>$_(e,(e=>KS(e)&&tj(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),JS(this,e)}};Y_.assign({batchedUpdates:wv.unstable_batchedUpdates,createStringInterpolator:hj,colors:{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}});var XC=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:s=(e=>new Pj(e)),getComponentProps:n=(e=>e)}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:s,getComponentProps:n},r=e=>{let t=Fj(e)||"Anonymous";return(e=J_.str(e)?r[e]||(r[e]=Aj(e,i)):e[Nj]||(e[Nj]=Aj(e,i))).displayName=`Animated(${t})`,e};return eS(e,((t,s)=>{J_.arr(e)&&(s=Fj(t)),r[s]=r(t)})),{animated:r}})(["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"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:n,children:i,scrollTop:r,scrollLeft:o,viewBox:a,...l}=t,c=Object.values(l),u=Object.keys(l).map((t=>s||e.hasAttribute(t)?t:LC[t]||(LC[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==i&&(e.textContent=i);for(let t in n)if(n.hasOwnProperty(t)){let s=DC(t,n[t]);BC.test(t)?e.style.setProperty(t,s):e.style[t]=s}u.forEach(((t,s)=>{e.setAttribute(t,c[s])})),void 0!==r&&(e.scrollTop=r),void 0!==o&&(e.scrollLeft=o),void 0!==a&&e.setAttribute("viewBox",a)},createAnimatedStyle:e=>new KC(e),getComponentProps:({scrollTop:e,scrollLeft:t,...s})=>s});XC.animated;const JC=function({triggerAnimationOnChange:e}){const t=(0,d.useRef)(),{previous:s,prevRect:n}=(0,d.useMemo)((()=>{return{previous:t.current&&(e=t.current,{top:e.offsetTop,left:e.offsetLeft}),prevRect:t.current&&t.current.getBoundingClientRect()};var e}),[e]);return(0,d.useLayoutEffect)((()=>{if(!s||!t.current)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;const e=new kC({x:0,y:0,width:n.width,height:n.height,config:{duration:400,easing:WS.easeInOutQuint},onChange({value:e}){if(!t.current)return;let{x:s,y:n,width:i,height:r}=e;s=Math.round(s),n=Math.round(n),i=Math.round(i),r=Math.round(r);const o=0===s&&0===n;t.current.style.transformOrigin="center center",t.current.style.transform=o?null:`translate3d(${s}px,${n}px,0)`,t.current.style.width=o?null:`${i}px`,t.current.style.height=o?null:`${r}px`}});t.current.style.transform=void 0;const i=t.current.getBoundingClientRect(),r=Math.round(n.left-i.left),o=Math.round(n.top-i.top),a=i.width,l=i.height;return e.start({x:0,y:0,width:a,height:l,from:{x:r,y:o,width:n.width,height:n.height}}),()=>{e.stop(),e.set({x:0,y:0,width:n.width,height:n.height})}}),[s,n]),t};function QC(){const{isDisabled:e,isSaving:t}=(0,l.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:t,isSavingEntityRecord:s}=e(_.store),n=t(),i=n.some((e=>s(e.kind,e.name,e.key)));return{isSaving:i,isDisabled:i||!n.length&&!tn()}}),[]);return(0,me.jsx)(x.__experimentalHStack,{className:"edit-site-save-hub",alignment:"right",spacing:4,children:(0,me.jsx)(wh,{className:"edit-site-save-hub__button",variant:e?null:"primary",showTooltip:!1,icon:e&&!t?Zv:null,showReviewMessage:!0,__next40pxDefaultSize:!0})})}const{useCommands:$C}=se(ts.privateApis),{useCommandContext:ek}=se(es.privateApis),{useGlobalStyle:tk}=se(y.privateApis),{NavigableRegion:sk}=se(h.privateApis),nk=.3;function ik(){ls(),function(){const e=Ms(),{params:t}=As(),s=(0,l.useSelect)((e=>se(e(Kt)).getCanvasMode()),[]),{setCanvasMode:n}=se((0,l.useDispatch)(Kt)),i=(0,d.useRef)(s),{canvas:r}=t,o=(0,d.useRef)(r),a=(0,d.useRef)(t);(0,d.useEffect)((()=>{a.current=t}),[t]),(0,d.useEffect)((()=>{i.current=s,"init"!==s&&("edit"===s&&o.current!==s&&e.push({...a.current,canvas:"edit"}),"view"===s&&void 0!==o.current&&e.push({...a.current,canvas:void 0}))}),[s,e]),(0,d.useEffect)((()=>{o.current=r,"edit"!==r&&"view"!==i.current?n("view"):"edit"===r&&"edit"!==i.current&&n("edit")}),[r,n])}(),$C(),(0,es.useCommandLoader)({name:"core/edit-site/page-content-focus",hook:ln,context:"entity-edit"}),(0,es.useCommandLoader)({name:"core/edit-site/manipulate-document",hook:cn}),function(){const e=(0,l.useSelect)((e=>{const{getUnstableBase:t}=e(_.store);return t()?.home}),[]);(0,es.useCommand)({name:"core/edit-site/view-site",label:(0,b.__)("View site"),callback:({close:t})=>{t(),window.open(e,"_blank")},icon:Gs}),(0,es.useCommandLoader)({name:"core/edit-site/open-styles",hook:qs}),(0,es.useCommandLoader)({name:"core/edit-site/toggle-styles-welcome-guide",hook:Zs}),(0,es.useCommandLoader)({name:"core/edit-site/reset-global-styles",hook:Ks}),(0,es.useCommandLoader)({name:"core/edit-site/open-styles-css",hook:Ys}),(0,es.useCommandLoader)({name:"core/edit-site/open-styles-revisions",hook:Xs})}();const e=(0,v.useViewportMatch)("medium","<"),t=(0,d.useRef)(),{isDistractionFree:s,hasFixedToolbar:n,hasBlockSelected:i,canvasMode:r,previousShortcut:o,nextShortcut:a}=(0,l.useSelect)((e=>{const{getAllShortcutKeyCombinations:t}=e($t.store),{getCanvasMode:s}=se(e(Kt));return{canvasMode:s(),previousShortcut:t("core/editor/previous-region"),nextShortcut:t("core/editor/next-region"),hasFixedToolbar:e(f.store).get("core","fixedToolbar"),isDistractionFree:e(f.store).get("core","distractionFree"),hasBlockSelected:e(y.store).getBlockSelectionStart()}}),[]),c=(0,x.__unstableUseNavigateRegions)({previous:o,next:a}),u=(0,v.useReducedMotion)(),[p,m]=(0,v.useResizeObserver)(),[g]=(0,v.useResizeObserver)(),w=dn(),[S,j]=(0,d.useState)(!1),{key:C,areas:k,widths:E}=I_(),P=JC({triggerAnimationOnChange:r+"__"+C});let I="site-editor";"edit"===r&&(I="entity-edit"),i&&(I="block-selection-edit"),ek(I);const[T]=tk("color.background"),[O]=tk("color.gradient"),A=(0,v.usePrevious)(r);return(0,d.useEffect)((()=>{"edit"===A&&t.current?.focus()}),[r]),"init"===r?null:(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(es.CommandMenu,{}),(0,me.jsx)(Ns,{}),(0,me.jsx)(Fs,{}),g,(0,me.jsx)("div",{...c,ref:c.ref,className:Qt("edit-site-layout",c.className,{"is-distraction-free":s&&"edit"===r,"is-full-canvas":"edit"===r,"has-fixed-toolbar":n,"is-block-toolbar-visible":i}),children:(0,me.jsxs)("div",{className:"edit-site-layout__content",children:[(!e||!k.mobile)&&(0,me.jsx)(sk,{ariaLabel:(0,b.__)("Navigation"),className:"edit-site-layout__sidebar-region",children:(0,me.jsx)(x.__unstableAnimatePresence,{children:"view"===r&&(0,me.jsxs)(x.__unstableMotion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{type:"tween",duration:u||e?0:nk,ease:"easeOut"},className:"edit-site-layout__sidebar",children:[(0,me.jsx)(Ss,{ref:t,isTransparent:S}),(0,me.jsx)(bs,{routeKey:C,children:k.sidebar}),(0,me.jsx)(QC,{}),(0,me.jsx)(Eh,{})]})})}),(0,me.jsx)(h.EditorSnackbars,{}),e&&k.mobile&&(0,me.jsxs)("div",{className:"edit-site-layout__mobile",children:["edit"!==r&&(0,me.jsx)(bs,{routeKey:C,children:(0,me.jsx)(js,{ref:t,isTransparent:S})}),k.mobile]}),!e&&k.content&&"edit"!==r&&(0,me.jsx)("div",{className:"edit-site-layout__area",style:{maxWidth:E?.content},children:k.content}),!e&&k.preview&&(0,me.jsxs)("div",{className:"edit-site-layout__canvas-container",children:[p,!!m.width&&(0,me.jsx)("div",{className:Qt("edit-site-layout__canvas",{"is-right-aligned":S}),ref:P,children:(0,me.jsx)(is,{children:(0,me.jsx)(Os,{isReady:!w,isFullWidth:"edit"===r,defaultSize:{width:m.width-24,height:m.height},isOversized:S,setIsOversized:j,innerContentStyle:{background:null!=O?O:T},children:k.preview})})})]})]})})]})}const{RouterProvider:rk}=se(Xt.privateApis),{GlobalStylesProvider:ok}=se(h.privateApis);function ak(){const{createErrorNotice:e}=(0,l.useDispatch)(w.store);return(0,me.jsx)(x.SlotFillProvider,{children:(0,me.jsxs)(ok,{children:[(0,me.jsx)(h.UnsavedChangesWarning,{}),(0,me.jsxs)(rk,{children:[(0,me.jsx)(ik,{}),(0,me.jsx)(Yt.PluginArea,{onError:function(t){e((0,b.sprintf)((0,b.__)('The "%s" plugin has encountered an error and cannot be rendered.'),t))}})]})]})})}const lk=(0,ps.getPath)(window.location.href)?.includes("site-editor.php"),ck=e=>{u()(`wp.editPost.${e}`,{since:"6.6",alternative:`wp.editor.${e}`})};function uk(e){return lk?(ck("PluginMoreMenuItem"),(0,me.jsx)(h.PluginMoreMenuItem,{...e})):null}function dk(e){return lk?(ck("PluginSidebar"),(0,me.jsx)(h.PluginSidebar,{...e})):null}function hk(e){return lk?(ck("PluginSidebarMoreMenuItem"),(0,me.jsx)(h.PluginSidebarMoreMenuItem,{...e})):null}function pk(e,t){const s=document.getElementById(e),n=(0,d.createRoot)(s);(0,l.dispatch)(o.store).reapplyBlockTypeFilters();const i=(0,a.__experimentalGetCoreBlocks)().filter((({name:e})=>"core/freeform"!==e));return(0,a.registerCoreBlocks)(i),(0,l.dispatch)(o.store).setFreeformFallbackBlockName("core/html"),(0,m.registerLegacyWidgetBlock)({inserter:!1}),(0,m.registerWidgetGroupBlock)({inserter:!1}),(0,l.dispatch)(f.store).setDefaults("core/edit-site",{welcomeGuide:!0,welcomeGuideStyles:!0,welcomeGuidePage:!0,welcomeGuideTemplate:!0}),(0,l.dispatch)(f.store).setDefaults("core",{allowRightClickOverrides:!0,distractionFree:!1,editorMode:"visual",fixedToolbar:!1,focusMode:!1,inactivePanels:[],keepCaretInsideBlock:!1,openPanels:["post-status"],showBlockBreadcrumbs:!0,showListViewByDefault:!1}),(0,l.dispatch)(Kt).updateSettings(t),(0,l.dispatch)(h.store).updateEditorSettings({defaultTemplateTypes:t.defaultTemplateTypes,defaultTemplatePartAreas:t.defaultTemplatePartAreas}),window.addEventListener("dragover",(e=>e.preventDefault()),!1),window.addEventListener("drop",(e=>e.preventDefault()),!1),n.render((0,me.jsx)(ak,{})),n}function fk(){u()("wp.editSite.reinitializeEditor",{since:"6.2",version:"6.3"})}})(),(window.wp=window.wp||{}).editSite=r})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/edit-widgets.js b/wp-includes/js/dist/edit-widgets.js
index d030778..a50e399 100644
--- a/wp-includes/js/dist/edit-widgets.js
+++ b/wp-includes/js/dist/edit-widgets.js
@@ -1,97 +1,7 @@
/******/ (() => { // webpackBootstrap
-/******/ var __webpack_modules__ = ({
-
-/***/ 5755:
-/***/ ((module, exports) => {
-
-var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/
-/* global define */
-
-(function () {
- 'use strict';
-
- var hasOwn = {}.hasOwnProperty;
- var nativeCodeString = '[native code]';
-
- 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)) {
- if (arg.length) {
- var inner = classNames.apply(null, arg);
- if (inner) {
- classes.push(inner);
- }
- }
- } else if (argType === 'object') {
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
- classes.push(arg.toString());
- continue;
- }
-
- 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 {}
-}());
-
-
-/***/ })
-
-/******/ });
-/************************************************************************/
-/******/ // The module cache
-/******/ var __webpack_module_cache__ = {};
-/******/
-/******/ // The require function
-/******/ function __webpack_require__(moduleId) {
-/******/ // Check if module is in cache
-/******/ var cachedModule = __webpack_module_cache__[moduleId];
-/******/ if (cachedModule !== undefined) {
-/******/ return cachedModule.exports;
-/******/ }
-/******/ // Create a new module (and put it into the cache)
-/******/ var module = __webpack_module_cache__[moduleId] = {
-/******/ // no module.id needed
-/******/ // no module.loaded needed
-/******/ exports: {}
-/******/ };
-/******/
-/******/ // Execute the module function
-/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
-/******/
-/******/ // Return the exports of the module
-/******/ return module.exports;
-/******/ }
+/******/ "use strict";
+/******/ // The require scope
+/******/ var __webpack_require__ = {};
/******/
/************************************************************************/
/******/ /* webpack/runtime/compat get default export */
@@ -136,9 +46,6 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
/******/
/************************************************************************/
var __webpack_exports__ = {};
-// This entry need to be wrapped in an IIFE because it need to be in strict mode.
-(() => {
-"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
@@ -225,6 +132,7 @@ __webpack_require__.d(store_selectors_namespaceObject, {
var private_selectors_namespaceObject = {};
__webpack_require__.r(private_selectors_namespaceObject);
__webpack_require__.d(private_selectors_namespaceObject, {
+ getInserterSidebarToggleRef: () => (getInserterSidebarToggleRef),
getListViewToggleRef: () => (getListViewToggleRef)
});
@@ -237,8 +145,6 @@ __webpack_require__.d(widget_area_namespaceObject, {
settings: () => (settings)
});
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: external ["wp","blocks"]
const external_wp_blocks_namespaceObject = window["wp"]["blocks"];
;// CONCATENATED MODULE: external ["wp","data"]
@@ -350,9 +256,24 @@ function listViewToggleRef(state = {
}) {
return state;
}
+
+/**
+ * This reducer does nothing aside initializing a ref to the inserter sidebar toggle.
+ * We will have a unique ref per "editor" instance.
+ *
+ * @param {Object} state
+ * @return {Object} Reference to the inserter sidebar toggle button.
+ */
+function inserterSidebarToggleRef(state = {
+ current: null
+}) {
+ return state;
+}
/* harmony default export */ const reducer = ((0,external_wp_data_namespaceObject.combineReducers)({
blockInserterPanel,
+ inserterSidebarToggleRef,
listViewPanel,
+ listViewToggleRef,
widgetAreasOpenState
}));
@@ -360,73 +281,114 @@ function listViewToggleRef(state = {
const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
;// CONCATENATED MODULE: external ["wp","notices"]
const external_wp_notices_namespaceObject = window["wp"]["notices"];
-// EXTERNAL MODULE: ./node_modules/classnames/index.js
-var classnames = __webpack_require__(5755);
-var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
+;// CONCATENATED MODULE: ./node_modules/clsx/dist/clsx.mjs
+function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
;// CONCATENATED MODULE: external ["wp","components"]
const external_wp_components_namespaceObject = window["wp"]["components"];
;// CONCATENATED MODULE: external ["wp","primitives"]
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
-
/**
* WordPress dependencies
*/
-const check = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const check = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
+ })
+});
/* harmony default export */ const library_check = (check);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js
-
/**
* WordPress dependencies
*/
-const starFilled = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const starFilled = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const star_filled = (starFilled);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js
-
/**
* WordPress dependencies
*/
-const starEmpty = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const starEmpty = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const star_empty = (starEmpty);
;// CONCATENATED MODULE: external ["wp","viewport"]
const external_wp_viewport_namespaceObject = window["wp"]["viewport"];
+;// CONCATENATED MODULE: external ["wp","compose"]
+const external_wp_compose_namespaceObject = window["wp"]["compose"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
-
/**
* WordPress dependencies
*/
-const closeSmall = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const closeSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
+ })
+});
/* harmony default export */ const close_small = (closeSmall);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/deprecated.js
+/**
+ * WordPress dependencies
+ */
+
+function normalizeComplementaryAreaScope(scope) {
+ if (['core/edit-post', 'core/edit-site'].includes(scope)) {
+ external_wp_deprecated_default()(`${scope} interface scope`, {
+ alternative: 'core interface scope',
+ hint: 'core/edit-post and core/edit-site are merging.',
+ version: '6.6'
+ });
+ return 'core';
+ }
+ return scope;
+}
+function normalizeComplementaryAreaName(scope, name) {
+ if (scope === 'core' && name === 'edit-site/template') {
+ external_wp_deprecated_default()(`edit-site/template sidebar`, {
+ alternative: 'edit-post/document',
+ version: '6.6'
+ });
+ return 'edit-post/document';
+ }
+ if (scope === 'core' && name === 'edit-site/block-inspector') {
+ external_wp_deprecated_default()(`edit-site/block-inspector sidebar`, {
+ alternative: 'edit-post/block',
+ version: '6.6'
+ });
+ return 'edit-post/block';
+ }
+ return name;
+}
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/actions.js
/**
* WordPress dependencies
@@ -435,6 +397,11 @@ const closeSmall = (0,external_React_namespaceObject.createElement)(external_wp_
/**
+ * Internal dependencies
+ */
+
+
+/**
* Set a default complementary area.
*
* @param {string} scope Complementary area scope.
@@ -442,11 +409,15 @@ const closeSmall = (0,external_React_namespaceObject.createElement)(external_wp_
*
* @return {Object} Action object.
*/
-const setDefaultComplementaryArea = (scope, area) => ({
- type: 'SET_DEFAULT_COMPLEMENTARY_AREA',
- scope,
- area
-});
+const setDefaultComplementaryArea = (scope, area) => {
+ scope = normalizeComplementaryAreaScope(scope);
+ area = normalizeComplementaryAreaName(scope, area);
+ return {
+ type: 'SET_DEFAULT_COMPLEMENTARY_AREA',
+ scope,
+ area
+ };
+};
/**
* Enable the complementary area.
@@ -462,6 +433,8 @@ const enableComplementaryArea = (scope, area) => ({
if (!area) {
return;
}
+ scope = normalizeComplementaryAreaScope(scope);
+ area = normalizeComplementaryAreaName(scope, area);
const isComplementaryAreaVisible = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
if (!isComplementaryAreaVisible) {
registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'isComplementaryAreaVisible', true);
@@ -481,6 +454,7 @@ const enableComplementaryArea = (scope, area) => ({
const disableComplementaryArea = scope => ({
registry
}) => {
+ scope = normalizeComplementaryAreaScope(scope);
const isComplementaryAreaVisible = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
if (isComplementaryAreaVisible) {
registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'isComplementaryAreaVisible', false);
@@ -502,6 +476,8 @@ const pinItem = (scope, item) => ({
if (!item) {
return;
}
+ scope = normalizeComplementaryAreaScope(scope);
+ item = normalizeComplementaryAreaName(scope, item);
const pinnedItems = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'pinnedItems');
// The item is already pinned, there's nothing to do.
@@ -527,6 +503,8 @@ const unpinItem = (scope, item) => ({
if (!item) {
return;
}
+ scope = normalizeComplementaryAreaScope(scope);
+ item = normalizeComplementaryAreaName(scope, item);
const pinnedItems = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'pinnedItems');
registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'pinnedItems', {
...pinnedItems,
@@ -628,6 +606,11 @@ function closeModal() {
/**
+ * Internal dependencies
+ */
+
+
+/**
* Returns the complementary area that is active in a given scope.
*
* @param {Object} state Global application state.
@@ -636,6 +619,7 @@ function closeModal() {
* @return {string | null | undefined} The complementary area that is active in the given scope.
*/
const getActiveComplementaryArea = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope) => {
+ scope = normalizeComplementaryAreaScope(scope);
const isComplementaryAreaVisible = select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
// Return `undefined` to indicate that the user has never toggled
@@ -652,6 +636,7 @@ const getActiveComplementaryArea = (0,external_wp_data_namespaceObject.createReg
return state?.complementaryAreas?.[scope];
});
const isComplementaryAreaLoading = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope) => {
+ scope = normalizeComplementaryAreaScope(scope);
const isVisible = select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
const identifier = state?.complementaryAreas?.[scope];
return isVisible && identifier === undefined;
@@ -668,6 +653,8 @@ const isComplementaryAreaLoading = (0,external_wp_data_namespaceObject.createReg
*/
const isItemPinned = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope, item) => {
var _pinnedItems$item;
+ scope = normalizeComplementaryAreaScope(scope);
+ item = normalizeComplementaryAreaName(scope, item);
const pinnedItems = select(external_wp_preferences_namespaceObject.store).get(scope, 'pinnedItems');
return (_pinnedItems$item = pinnedItems?.[item]) !== null && _pinnedItems$item !== void 0 ? _pinnedItems$item : true;
});
@@ -816,7 +803,6 @@ const external_wp_plugins_namespaceObject = window["wp"]["plugins"];
}));
;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-toggle/index.js
-
/**
* WordPress dependencies
*/
@@ -828,6 +814,7 @@ const external_wp_plugins_namespaceObject = window["wp"]["plugins"];
*/
+
function ComplementaryAreaToggle({
as = external_wp_components_namespaceObject.Button,
scope,
@@ -843,7 +830,7 @@ function ComplementaryAreaToggle({
enableComplementaryArea,
disableComplementaryArea
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
- return (0,external_React_namespaceObject.createElement)(ComponentToUse, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ComponentToUse, {
icon: selectedIcon && isSelected ? selectedIcon : icon,
"aria-controls": identifier.replace('/', ':'),
onClick: () => {
@@ -859,7 +846,6 @@ function ComplementaryAreaToggle({
/* harmony default export */ const complementary_area_toggle = (complementary_area_context(ComplementaryAreaToggle));
;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-header/index.js
-
/**
* External dependencies
*/
@@ -874,34 +860,42 @@ function ComplementaryAreaToggle({
* Internal dependencies
*/
+
+
+
const ComplementaryAreaHeader = ({
smallScreenTitle,
children,
className,
toggleButtonProps
}) => {
- const toggleButton = (0,external_React_namespaceObject.createElement)(complementary_area_toggle, {
+ const toggleButton = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(complementary_area_toggle, {
icon: close_small,
...toggleButtonProps
});
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("div", {
- className: "components-panel__header interface-complementary-area-header__small"
- }, smallScreenTitle && (0,external_React_namespaceObject.createElement)("span", {
- className: "interface-complementary-area-header__small-title"
- }, smallScreenTitle), toggleButton), (0,external_React_namespaceObject.createElement)("div", {
- className: classnames_default()('components-panel__header', 'interface-complementary-area-header', className),
- tabIndex: -1
- }, children, toggleButton));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "components-panel__header interface-complementary-area-header__small",
+ children: [smallScreenTitle && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ className: "interface-complementary-area-header__small-title",
+ children: smallScreenTitle
+ }), toggleButton]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: dist_clsx('components-panel__header', 'interface-complementary-area-header', className),
+ tabIndex: -1,
+ children: [children, toggleButton]
+ })]
+ });
};
/* harmony default export */ const complementary_area_header = (ComplementaryAreaHeader);
;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/action-item/index.js
-
/**
* WordPress dependencies
*/
+
const noop = () => {};
function ActionItemSlot({
name,
@@ -910,40 +904,42 @@ function ActionItemSlot({
bubblesVirtually,
...props
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Slot, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Slot, {
name: name,
bubblesVirtually: bubblesVirtually,
- fillProps: fillProps
- }, fills => {
- if (!external_wp_element_namespaceObject.Children.toArray(fills).length) {
- return null;
- }
-
- // Special handling exists for backward compatibility.
- // It ensures that menu items created by plugin authors aren't
- // duplicated with automatically injected menu items coming
- // from pinnable plugin sidebars.
- // @see https://github.com/WordPress/gutenberg/issues/14457
- const initializedByPlugins = [];
- external_wp_element_namespaceObject.Children.forEach(fills, ({
- props: {
- __unstableExplicitMenuItem,
- __unstableTarget
- }
- }) => {
- if (__unstableTarget && __unstableExplicitMenuItem) {
- initializedByPlugins.push(__unstableTarget);
- }
- });
- const children = external_wp_element_namespaceObject.Children.map(fills, child => {
- if (!child.props.__unstableExplicitMenuItem && initializedByPlugins.includes(child.props.__unstableTarget)) {
+ fillProps: fillProps,
+ children: fills => {
+ if (!external_wp_element_namespaceObject.Children.toArray(fills).length) {
return null;
}
- return child;
- });
- return (0,external_React_namespaceObject.createElement)(Component, {
- ...props
- }, children);
+
+ // Special handling exists for backward compatibility.
+ // It ensures that menu items created by plugin authors aren't
+ // duplicated with automatically injected menu items coming
+ // from pinnable plugin sidebars.
+ // @see https://github.com/WordPress/gutenberg/issues/14457
+ const initializedByPlugins = [];
+ external_wp_element_namespaceObject.Children.forEach(fills, ({
+ props: {
+ __unstableExplicitMenuItem,
+ __unstableTarget
+ }
+ }) => {
+ if (__unstableTarget && __unstableExplicitMenuItem) {
+ initializedByPlugins.push(__unstableTarget);
+ }
+ });
+ const children = external_wp_element_namespaceObject.Children.map(fills, child => {
+ if (!child.props.__unstableExplicitMenuItem && initializedByPlugins.includes(child.props.__unstableTarget)) {
+ return null;
+ }
+ return child;
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
+ ...props,
+ children: children
+ });
+ }
});
}
function ActionItem({
@@ -952,25 +948,25 @@ function ActionItem({
onClick,
...props
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Fill, {
- name: name
- }, ({
- onClick: fpOnClick
- }) => {
- return (0,external_React_namespaceObject.createElement)(Component, {
- onClick: onClick || fpOnClick ? (...args) => {
- (onClick || noop)(...args);
- (fpOnClick || noop)(...args);
- } : undefined,
- ...props
- });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Fill, {
+ name: name,
+ children: ({
+ onClick: fpOnClick
+ }) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
+ onClick: onClick || fpOnClick ? (...args) => {
+ (onClick || noop)(...args);
+ (fpOnClick || noop)(...args);
+ } : undefined,
+ ...props
+ });
+ }
});
}
ActionItem.Slot = ActionItemSlot;
/* harmony default export */ const action_item = (ActionItem);
;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-more-menu-item/index.js
-
/**
* WordPress dependencies
*/
@@ -982,6 +978,7 @@ ActionItem.Slot = ActionItemSlot;
*/
+
const PluginsMenuItem = ({
// Menu item is marked with unstable prop for backward compatibility.
// They are removed so they don't leak to DOM elements.
@@ -989,7 +986,7 @@ const PluginsMenuItem = ({
__unstableExplicitMenuItem,
__unstableTarget,
...restProps
-}) => (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
...restProps
});
function ComplementaryAreaMoreMenuItem({
@@ -998,9 +995,9 @@ function ComplementaryAreaMoreMenuItem({
__unstableExplicitMenuItem,
...props
}) {
- return (0,external_React_namespaceObject.createElement)(complementary_area_toggle, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(complementary_area_toggle, {
as: toggleProps => {
- return (0,external_React_namespaceObject.createElement)(action_item, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(action_item, {
__unstableExplicitMenuItem: __unstableExplicitMenuItem,
__unstableTarget: `${scope}/${target}`,
as: PluginsMenuItem,
@@ -1017,7 +1014,6 @@ function ComplementaryAreaMoreMenuItem({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/pinned-items/index.js
-
/**
* External dependencies
*/
@@ -1027,11 +1023,12 @@ function ComplementaryAreaMoreMenuItem({
* WordPress dependencies
*/
+
function PinnedItems({
scope,
...props
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Fill, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Fill, {
name: `PinnedItems/${scope}`,
...props
});
@@ -1041,18 +1038,19 @@ function PinnedItemsSlot({
className,
...props
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Slot, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Slot, {
name: `PinnedItems/${scope}`,
- ...props
- }, fills => fills?.length > 0 && (0,external_React_namespaceObject.createElement)("div", {
- className: classnames_default()(className, 'interface-pinned-items')
- }, fills));
+ ...props,
+ children: fills => fills?.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx(className, 'interface-pinned-items'),
+ children: fills
+ })
+ });
}
PinnedItems.Slot = PinnedItemsSlot;
/* harmony default export */ const pinned_items = (PinnedItems);
;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area/index.js
-
/**
* External dependencies
*/
@@ -1069,6 +1067,7 @@ PinnedItems.Slot = PinnedItemsSlot;
+
/**
* Internal dependencies
*/
@@ -1078,27 +1077,78 @@ PinnedItems.Slot = PinnedItemsSlot;
+
+
+
+const ANIMATION_DURATION = 0.3;
function ComplementaryAreaSlot({
scope,
...props
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Slot, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Slot, {
name: `ComplementaryArea/${scope}`,
...props
});
}
+const SIDEBAR_WIDTH = 280;
+const variants = {
+ open: {
+ width: SIDEBAR_WIDTH
+ },
+ closed: {
+ width: 0
+ },
+ mobileOpen: {
+ width: '100vw'
+ }
+};
function ComplementaryAreaFill({
+ activeArea,
+ isActive,
scope,
children,
className,
id
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Fill, {
- name: `ComplementaryArea/${scope}`
- }, (0,external_React_namespaceObject.createElement)("div", {
- id: id,
- className: className
- }, children));
+ const disableMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
+ const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
+ // This is used to delay the exit animation to the next tick.
+ // The reason this is done is to allow us to apply the right transition properties
+ // When we switch from an open sidebar to another open sidebar.
+ // we don't want to animate in this case.
+ const previousActiveArea = (0,external_wp_compose_namespaceObject.usePrevious)(activeArea);
+ const previousIsActive = (0,external_wp_compose_namespaceObject.usePrevious)(isActive);
+ const [, setState] = (0,external_wp_element_namespaceObject.useState)({});
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ setState({});
+ }, [isActive]);
+ const transition = {
+ type: 'tween',
+ duration: disableMotion || isMobileViewport || !!previousActiveArea && !!activeArea && activeArea !== previousActiveArea ? 0 : ANIMATION_DURATION,
+ ease: [0.6, 0, 0.4, 1]
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Fill, {
+ name: `ComplementaryArea/${scope}`,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableAnimatePresence, {
+ initial: false,
+ children: (previousIsActive || isActive) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ variants: variants,
+ initial: "closed",
+ animate: isMobileViewport ? 'mobileOpen' : 'open',
+ exit: "closed",
+ transition: transition,
+ className: "interface-complementary-area__fill",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ id: id,
+ className: className,
+ style: {
+ width: isMobileViewport ? '100vw' : SIDEBAR_WIDTH
+ },
+ children: children
+ })
+ })
+ })
+ });
}
function useAdjustComplementaryListener(scope, identifier, activeArea, isActive, isSmall) {
const previousIsSmall = (0,external_wp_element_namespaceObject.useRef)(false);
@@ -1153,6 +1203,11 @@ function ComplementaryArea({
toggleShortcut,
isActiveByDefault
}) {
+ // This state is used to delay the rendering of the Fill
+ // until the initial effect runs.
+ // This prevents the animation from running on mount if
+ // the complementary area is active by default.
+ const [isReady, setIsReady] = (0,external_wp_element_namespaceObject.useState)(false);
const {
isLoading,
isActive,
@@ -1196,62 +1251,80 @@ function ComplementaryArea({
} else if (activeArea === undefined && isSmall) {
disableComplementaryArea(scope, identifier);
}
+ setIsReady(true);
}, [activeArea, isActiveByDefault, scope, identifier, isSmall, enableComplementaryArea, disableComplementaryArea]);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, isPinnable && (0,external_React_namespaceObject.createElement)(pinned_items, {
- scope: scope
- }, isPinned && (0,external_React_namespaceObject.createElement)(complementary_area_toggle, {
- scope: scope,
- identifier: identifier,
- isPressed: isActive && (!showIconLabels || isLarge),
- "aria-expanded": isActive,
- "aria-disabled": isLoading,
- label: title,
- icon: showIconLabels ? library_check : icon,
- showTooltip: !showIconLabels,
- variant: showIconLabels ? 'tertiary' : undefined,
- size: "compact"
- })), name && isPinnable && (0,external_React_namespaceObject.createElement)(ComplementaryAreaMoreMenuItem, {
- target: name,
- scope: scope,
- icon: icon
- }, title), isActive && (0,external_React_namespaceObject.createElement)(ComplementaryAreaFill, {
- className: classnames_default()('interface-complementary-area', className),
- scope: scope,
- id: identifier.replace('/', ':')
- }, (0,external_React_namespaceObject.createElement)(complementary_area_header, {
- className: headerClassName,
- closeLabel: closeLabel,
- onClose: () => disableComplementaryArea(scope),
- smallScreenTitle: smallScreenTitle,
- toggleButtonProps: {
- label: closeLabel,
- shortcut: toggleShortcut,
- scope,
- identifier
- }
- }, header || (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("strong", null, title), isPinnable && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- className: "interface-complementary-area__pin-unpin-item",
- icon: isPinned ? star_filled : star_empty,
- label: isPinned ? (0,external_wp_i18n_namespaceObject.__)('Unpin from toolbar') : (0,external_wp_i18n_namespaceObject.__)('Pin to toolbar'),
- onClick: () => (isPinned ? unpinItem : pinItem)(scope, identifier),
- isPressed: isPinned,
- "aria-expanded": isPinned
- }))), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Panel, {
- className: panelClassName
- }, children)));
+ if (!isReady) {
+ return;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [isPinnable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(pinned_items, {
+ scope: scope,
+ children: isPinned && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(complementary_area_toggle, {
+ scope: scope,
+ identifier: identifier,
+ isPressed: isActive && (!showIconLabels || isLarge),
+ "aria-expanded": isActive,
+ "aria-disabled": isLoading,
+ label: title,
+ icon: showIconLabels ? library_check : icon,
+ showTooltip: !showIconLabels,
+ variant: showIconLabels ? 'tertiary' : undefined,
+ size: "compact"
+ })
+ }), name && isPinnable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ComplementaryAreaMoreMenuItem, {
+ target: name,
+ scope: scope,
+ icon: icon,
+ children: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ComplementaryAreaFill, {
+ activeArea: activeArea,
+ isActive: isActive,
+ className: dist_clsx('interface-complementary-area', className),
+ scope: scope,
+ id: identifier.replace('/', ':'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(complementary_area_header, {
+ className: headerClassName,
+ closeLabel: closeLabel,
+ onClose: () => disableComplementaryArea(scope),
+ smallScreenTitle: smallScreenTitle,
+ toggleButtonProps: {
+ label: closeLabel,
+ size: 'small',
+ shortcut: toggleShortcut,
+ scope,
+ identifier
+ },
+ children: header || /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ className: "interface-complementary-area-header__title",
+ children: title
+ }), isPinnable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "interface-complementary-area__pin-unpin-item",
+ icon: isPinned ? star_filled : star_empty,
+ label: isPinned ? (0,external_wp_i18n_namespaceObject.__)('Unpin from toolbar') : (0,external_wp_i18n_namespaceObject.__)('Pin to toolbar'),
+ onClick: () => (isPinned ? unpinItem : pinItem)(scope, identifier),
+ isPressed: isPinned,
+ "aria-expanded": isPinned,
+ size: "compact"
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Panel, {
+ className: panelClassName,
+ children: children
+ })]
+ })]
+ });
}
const ComplementaryAreaWrapped = complementary_area_context(ComplementaryArea);
ComplementaryAreaWrapped.Slot = ComplementaryAreaSlot;
/* harmony default export */ const complementary_area = (ComplementaryAreaWrapped);
-;// CONCATENATED MODULE: external ["wp","compose"]
-const external_wp_compose_namespaceObject = window["wp"]["compose"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/navigable-region/index.js
-
/**
* External dependencies
*/
+
function NavigableRegion({
children,
className,
@@ -1259,17 +1332,17 @@ function NavigableRegion({
as: Tag = 'div',
...props
}) {
- return (0,external_React_namespaceObject.createElement)(Tag, {
- className: classnames_default()('interface-navigable-region', className),
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
+ className: dist_clsx('interface-navigable-region', className),
"aria-label": ariaLabel,
role: "region",
tabIndex: "-1",
- ...props
- }, children);
+ ...props,
+ children: children
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/interface-skeleton/index.js
-
/**
* External dependencies
*/
@@ -1287,6 +1360,14 @@ function NavigableRegion({
* Internal dependencies
*/
+
+
+const interface_skeleton_ANIMATION_DURATION = 0.25;
+const commonTransition = {
+ type: 'tween',
+ duration: interface_skeleton_ANIMATION_DURATION,
+ ease: [0.6, 0, 0.4, 1]
+};
function useHTMLClass(className) {
(0,external_wp_element_namespaceObject.useEffect)(() => {
const element = document && document.querySelector(`html:not(.${className})`);
@@ -1301,20 +1382,33 @@ function useHTMLClass(className) {
}
const headerVariants = {
hidden: {
- opacity: 0
+ opacity: 1,
+ marginTop: -60
+ },
+ visible: {
+ opacity: 1,
+ marginTop: 0
},
- hover: {
+ distractionFreeHover: {
opacity: 1,
+ marginTop: 0,
transition: {
- type: 'tween',
+ ...commonTransition,
delay: 0.2,
delayChildren: 0.2
}
},
- distractionFreeInactive: {
- opacity: 1,
+ distractionFreeHidden: {
+ opacity: 0,
+ marginTop: -60
+ },
+ distractionFreeDisabled: {
+ opacity: 0,
+ marginTop: 0,
transition: {
- delay: 0
+ ...commonTransition,
+ delay: 0.8,
+ delayChildren: 0.8
}
}
};
@@ -1325,7 +1419,6 @@ function InterfaceSkeleton({
editorNotices,
sidebar,
secondarySidebar,
- notices,
content,
actions,
labels,
@@ -1335,6 +1428,14 @@ function InterfaceSkeleton({
// Can we use a dependency to keyboard-shortcuts directly?
shortcuts
}, ref) {
+ const [secondarySidebarResizeListener, secondarySidebarSize] = (0,external_wp_compose_namespaceObject.useResizeObserver)();
+ const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
+ const disableMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
+ const defaultTransition = {
+ type: 'tween',
+ duration: disableMotion ? 0 : interface_skeleton_ANIMATION_DURATION,
+ ease: [0.6, 0, 0.4, 1]
+ };
const navigateRegionsProps = (0,external_wp_components_namespaceObject.__unstableUseNavigateRegions)(shortcuts);
useHTMLClass('interface-interface-skeleton__html-container');
const defaultLabels = {
@@ -1355,102 +1456,85 @@ function InterfaceSkeleton({
...defaultLabels,
...labels
};
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
...(enableRegionNavigation ? navigateRegionsProps : {}),
ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, enableRegionNavigation ? navigateRegionsProps.ref : undefined]),
- className: classnames_default()(className, 'interface-interface-skeleton', navigateRegionsProps.className, !!footer && 'has-footer')
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "interface-interface-skeleton__editor"
- }, !!header && (0,external_React_namespaceObject.createElement)(NavigableRegion, {
- as: external_wp_components_namespaceObject.__unstableMotion.div,
- className: "interface-interface-skeleton__header",
- "aria-label": mergedLabels.header,
- initial: isDistractionFree ? 'hidden' : 'distractionFreeInactive',
- whileHover: isDistractionFree ? 'hover' : 'distractionFreeInactive',
- animate: isDistractionFree ? 'hidden' : 'distractionFreeInactive',
- variants: headerVariants,
- transition: isDistractionFree ? {
- type: 'tween',
- delay: 0.8
- } : undefined
- }, header), isDistractionFree && (0,external_React_namespaceObject.createElement)("div", {
- className: "interface-interface-skeleton__header"
- }, editorNotices), (0,external_React_namespaceObject.createElement)("div", {
- className: "interface-interface-skeleton__body"
- }, !!secondarySidebar && (0,external_React_namespaceObject.createElement)(NavigableRegion, {
- className: "interface-interface-skeleton__secondary-sidebar",
- ariaLabel: mergedLabels.secondarySidebar
- }, secondarySidebar), !!notices && (0,external_React_namespaceObject.createElement)("div", {
- className: "interface-interface-skeleton__notices"
- }, notices), (0,external_React_namespaceObject.createElement)(NavigableRegion, {
- className: "interface-interface-skeleton__content",
- ariaLabel: mergedLabels.body
- }, content), !!sidebar && (0,external_React_namespaceObject.createElement)(NavigableRegion, {
- className: "interface-interface-skeleton__sidebar",
- ariaLabel: mergedLabels.sidebar
- }, sidebar), !!actions && (0,external_React_namespaceObject.createElement)(NavigableRegion, {
- className: "interface-interface-skeleton__actions",
- ariaLabel: mergedLabels.actions
- }, actions))), !!footer && (0,external_React_namespaceObject.createElement)(NavigableRegion, {
- className: "interface-interface-skeleton__footer",
- ariaLabel: mergedLabels.footer
- }, footer));
+ className: dist_clsx(className, 'interface-interface-skeleton', navigateRegionsProps.className, !!footer && 'has-footer'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "interface-interface-skeleton__editor",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableAnimatePresence, {
+ initial: false,
+ children: !!header && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigableRegion, {
+ as: external_wp_components_namespaceObject.__unstableMotion.div,
+ className: "interface-interface-skeleton__header",
+ "aria-label": mergedLabels.header,
+ initial: isDistractionFree ? 'distractionFreeHidden' : 'hidden',
+ whileHover: isDistractionFree ? 'distractionFreeHover' : 'visible',
+ animate: isDistractionFree ? 'distractionFreeDisabled' : 'visible',
+ exit: isDistractionFree ? 'distractionFreeHidden' : 'hidden',
+ variants: headerVariants,
+ transition: defaultTransition,
+ children: header
+ })
+ }), isDistractionFree && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "interface-interface-skeleton__header",
+ children: editorNotices
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "interface-interface-skeleton__body",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableAnimatePresence, {
+ initial: false,
+ children: !!secondarySidebar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigableRegion, {
+ className: "interface-interface-skeleton__secondary-sidebar",
+ ariaLabel: mergedLabels.secondarySidebar,
+ as: external_wp_components_namespaceObject.__unstableMotion.div,
+ initial: "closed",
+ animate: isMobileViewport ? 'mobileOpen' : 'open',
+ exit: "closed",
+ variants: {
+ open: {
+ width: secondarySidebarSize.width
+ },
+ closed: {
+ width: 0
+ },
+ mobileOpen: {
+ width: '100vw'
+ }
+ },
+ transition: defaultTransition,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ style: {
+ position: 'absolute',
+ width: isMobileViewport ? '100vw' : 'fit-content',
+ height: '100%',
+ right: 0
+ },
+ children: [secondarySidebarResizeListener, secondarySidebar]
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigableRegion, {
+ className: "interface-interface-skeleton__content",
+ ariaLabel: mergedLabels.body,
+ children: content
+ }), !!sidebar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigableRegion, {
+ className: "interface-interface-skeleton__sidebar",
+ ariaLabel: mergedLabels.sidebar,
+ children: sidebar
+ }), !!actions && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigableRegion, {
+ className: "interface-interface-skeleton__actions",
+ ariaLabel: mergedLabels.actions,
+ children: actions
+ })]
+ })]
+ }), !!footer && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigableRegion, {
+ className: "interface-interface-skeleton__footer",
+ ariaLabel: mergedLabels.footer,
+ children: footer
+ })]
+ });
}
/* harmony default export */ const interface_skeleton = ((0,external_wp_element_namespaceObject.forwardRef)(InterfaceSkeleton));
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
-
-/**
- * WordPress dependencies
- */
-
-const moreVertical = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
-}));
-/* harmony default export */ const more_vertical = (moreVertical);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/more-menu-dropdown/index.js
-
-/**
- * External dependencies
- */
-
-
-/**
- * WordPress dependencies
- */
-
-
-
-function MoreMenuDropdown({
- as: DropdownComponent = external_wp_components_namespaceObject.DropdownMenu,
- className,
- /* translators: button label text should, if possible, be under 16 characters. */
- label = (0,external_wp_i18n_namespaceObject.__)('Options'),
- popoverProps,
- toggleProps,
- children
-}) {
- return (0,external_React_namespaceObject.createElement)(DropdownComponent, {
- className: classnames_default()('interface-more-menu-dropdown', className),
- icon: more_vertical,
- label: label,
- popoverProps: {
- placement: 'bottom-end',
- ...popoverProps,
- className: classnames_default()('interface-more-menu-dropdown__content', popoverProps?.className)
- },
- toggleProps: {
- tooltipPosition: 'bottom',
- ...toggleProps,
- size: 'compact'
- }
- }, onClose => children(onClose));
-}
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/index.js
@@ -1460,8 +1544,6 @@ function MoreMenuDropdown({
-
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/index.js
@@ -2298,6 +2380,9 @@ function isListViewOpened(state) {
function getListViewToggleRef(state) {
return state.listViewToggleRef;
}
+function getInserterSidebarToggleRef(state) {
+ return state.inserterSidebarToggleRef;
+}
;// CONCATENATED MODULE: external ["wp","privateApis"]
const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
@@ -2309,7 +2394,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
const {
lock,
unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/edit-widgets');
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/edit-widgets');
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/index.js
/**
@@ -2367,7 +2452,6 @@ unlock(store_store).registerPrivateSelectors(private_selectors_namespaceObject);
;// CONCATENATED MODULE: external ["wp","hooks"]
const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/filters/move-to-widget-area.js
-
/**
* WordPress dependencies
*/
@@ -2382,6 +2466,9 @@ const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
* Internal dependencies
*/
+
+
+
const withMoveToWidgetAreaToolbarItem = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockEdit => props => {
const {
clientId,
@@ -2409,15 +2496,19 @@ const withMoveToWidgetAreaToolbarItem = (0,external_wp_compose_namespaceObject.c
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
const hasMultipleWidgetAreas = widgetAreas?.length > 1;
const isMoveToWidgetAreaVisible = blockName !== 'core/widget-area' && hasMultipleWidgetAreas && canInsertBlockInWidgetArea;
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(BlockEdit, {
- ...props
- }), isMoveToWidgetAreaVisible && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_widgets_namespaceObject.MoveToWidgetArea, {
- widgetAreas: widgetAreas,
- currentWidgetAreaId: currentWidgetAreaId,
- onSelect: widgetAreaId => {
- moveBlockToWidgetArea(props.clientId, widgetAreaId);
- }
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockEdit, {
+ ...props
+ }), isMoveToWidgetAreaVisible && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_widgets_namespaceObject.MoveToWidgetArea, {
+ widgetAreas: widgetAreas,
+ currentWidgetAreaId: currentWidgetAreaId,
+ onSelect: widgetAreaId => {
+ moveBlockToWidgetArea(props.clientId, widgetAreaId);
+ }
+ })
+ })]
+ });
}, 'withMoveToWidgetAreaToolbarItem');
(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/edit-widgets/block-edit', withMoveToWidgetAreaToolbarItem);
@@ -2494,7 +2585,6 @@ const useIsDraggingWithin = elementRef => {
/* harmony default export */ const use_is_dragging_within = (useIsDraggingWithin);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/edit/inner-blocks.js
-
/**
* External dependencies
*/
@@ -2511,6 +2601,7 @@ const useIsDraggingWithin = elementRef => {
* Internal dependencies
*/
+
function WidgetAreaInnerBlocks({
id
}) {
@@ -2528,18 +2619,18 @@ function WidgetAreaInnerBlocks({
templateLock: false,
renderAppender: external_wp_blockEditor_namespaceObject.InnerBlocks.ButtonBlockAppender
});
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
"data-widget-area-id": id,
- className: classnames_default()('wp-block-widget-area__inner-blocks block-editor-inner-blocks editor-styles-wrapper', {
+ className: dist_clsx('wp-block-widget-area__inner-blocks block-editor-inner-blocks editor-styles-wrapper', {
'wp-block-widget-area__highlight-drop-zone': shouldHighlightDropZone
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...innerBlocksProps
})
- }, (0,external_React_namespaceObject.createElement)("div", {
- ...innerBlocksProps
- }));
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/edit/index.js
-
/**
* WordPress dependencies
*/
@@ -2586,33 +2677,38 @@ function WidgetAreaEdit({
setOpen(false);
}
}, [isOpen, isDragging, isDraggingWithin, openedWhileDragging]);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Panel, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Panel, {
className: className,
- ref: wrapper
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: name,
- opened: isOpen,
- onToggle: () => {
- setIsWidgetAreaOpen(clientId, !isOpen);
- },
- scrollAfterOpen: !isDragging
- }, ({
- opened
- }) =>
- // This is required to ensure LegacyWidget blocks are not
- // unmounted when the panel is collapsed. Unmounting legacy
- // widgets may have unintended consequences (e.g. TinyMCE
- // not being properly reinitialized)
- (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__unstableDisclosureContent, {
- className: "wp-block-widget-area__panel-body-content",
- visible: opened
- }, (0,external_React_namespaceObject.createElement)(external_wp_coreData_namespaceObject.EntityProvider, {
- kind: "root",
- type: "postType",
- id: `widget-area-${id}`
- }, (0,external_React_namespaceObject.createElement)(WidgetAreaInnerBlocks, {
- id: id
- })))));
+ ref: wrapper,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: name,
+ opened: isOpen,
+ onToggle: () => {
+ setIsWidgetAreaOpen(clientId, !isOpen);
+ },
+ scrollAfterOpen: !isDragging,
+ children: ({
+ opened
+ }) =>
+ /*#__PURE__*/
+ // This is required to ensure LegacyWidget blocks are not
+ // unmounted when the panel is collapsed. Unmounting legacy
+ // widgets may have unintended consequences (e.g. TinyMCE
+ // not being properly reinitialized)
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableDisclosureContent, {
+ className: "wp-block-widget-area__panel-body-content",
+ visible: opened,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_coreData_namespaceObject.EntityProvider, {
+ kind: "root",
+ type: "postType",
+ id: `widget-area-${id}`,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WidgetAreaInnerBlocks, {
+ id: id
+ })
+ })
+ })
+ })
+ });
}
/**
@@ -2656,6 +2752,7 @@ const useIsDragging = elementRef => {
const metadata = {
$schema: "https://schemas.wp.org/trunk/block.json",
name: "core/widget-area",
+ title: "Widget Area",
category: "widgets",
attributes: {
id: {
@@ -2692,7 +2789,6 @@ const settings = {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/error-boundary/index.js
-
/**
* WordPress dependencies
*/
@@ -2702,28 +2798,31 @@ const settings = {
+
function CopyButton({
text,
children
}) {
const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(text);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
variant: "secondary",
- ref: ref
- }, children);
+ ref: ref,
+ children: children
+ });
}
function ErrorBoundaryWarning({
message,
error
}) {
- const actions = [(0,external_React_namespaceObject.createElement)(CopyButton, {
- key: "copy-error",
- text: error.stack
- }, (0,external_wp_i18n_namespaceObject.__)('Copy Error'))];
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, {
+ const actions = [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CopyButton, {
+ text: error.stack,
+ children: (0,external_wp_i18n_namespaceObject.__)('Copy Error')
+ }, "copy-error")];
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
className: "edit-widgets-error-boundary",
- actions: actions
- }, message);
+ actions: actions,
+ children: message
+ });
}
class ErrorBoundary extends external_wp_element_namespaceObject.Component {
constructor() {
@@ -2744,7 +2843,7 @@ class ErrorBoundary extends external_wp_element_namespaceObject.Component {
if (!this.state.error) {
return this.props.children;
}
- return (0,external_React_namespaceObject.createElement)(ErrorBoundaryWarning, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ErrorBoundaryWarning, {
message: (0,external_wp_i18n_namespaceObject.__)('The editor has encountered an unexpected error.'),
error: this.state.error
});
@@ -2768,8 +2867,6 @@ const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
-
-
/**
* Internal dependencies
*/
@@ -2782,36 +2879,6 @@ function KeyboardShortcuts() {
const {
saveEditedWidgetAreas
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const {
- replaceBlocks
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- const {
- getBlockName,
- getSelectedBlockClientId,
- getBlockAttributes
- } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
- const handleTextLevelShortcut = (event, level) => {
- event.preventDefault();
- const destinationBlockName = level === 0 ? 'core/paragraph' : 'core/heading';
- const currentClientId = getSelectedBlockClientId();
- if (currentClientId === null) {
- return;
- }
- const blockName = getBlockName(currentClientId);
- if (blockName !== 'core/paragraph' && blockName !== 'core/heading') {
- return;
- }
- const attributes = getBlockAttributes(currentClientId);
- const textAlign = blockName === 'core/paragraph' ? 'align' : 'textAlign';
- const destinationTextAlign = destinationBlockName === 'core/paragraph' ? 'align' : 'textAlign';
- replaceBlocks(currentClientId, (0,external_wp_blocks_namespaceObject.createBlock)(destinationBlockName, {
- level,
- content: attributes.content,
- ...{
- [destinationTextAlign]: attributes[textAlign]
- }
- }));
- };
(0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-widgets/undo', event => {
undo();
event.preventDefault();
@@ -2824,13 +2891,6 @@ function KeyboardShortcuts() {
event.preventDefault();
saveEditedWidgetAreas();
});
- (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-widgets/transform-heading-to-paragraph', event => handleTextLevelShortcut(event, 0));
- [1, 2, 3, 4, 5, 6].forEach(level => {
- //the loop is based off on a constant therefore
- //the hook will execute the same way every time
- //eslint-disable-next-line react-hooks/rules-of-hooks
- (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)(`core/edit-widgets/transform-paragraph-to-heading-${level}`, event => handleTextLevelShortcut(event, level));
- });
return null;
}
function KeyboardShortcutsRegister() {
@@ -2912,26 +2972,6 @@ function KeyboardShortcutsRegister() {
character: '~'
}]
});
- registerShortcut({
- name: 'core/edit-widgets/transform-heading-to-paragraph',
- category: 'block-library',
- description: (0,external_wp_i18n_namespaceObject.__)('Transform heading to paragraph.'),
- keyCombination: {
- modifier: 'access',
- character: `0`
- }
- });
- [1, 2, 3, 4, 5, 6].forEach(level => {
- registerShortcut({
- name: `core/edit-widgets/transform-paragraph-to-heading-${level}`,
- category: 'block-library',
- description: (0,external_wp_i18n_namespaceObject.__)('Transform paragraph to heading.'),
- keyCombination: {
- modifier: 'access',
- character: `${level}`
- }
- });
- });
}, [registerShortcut]);
return null;
}
@@ -2993,7 +3033,6 @@ const ALLOW_REUSABLE_BLOCKS = false;
const ENABLE_EXPERIMENTAL_FSE_BLOCKS = false;
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/widget-areas-block-editor-provider/index.js
-
/**
* WordPress dependencies
*/
@@ -3007,6 +3046,7 @@ const ENABLE_EXPERIMENTAL_FSE_BLOCKS = false;
+
/**
* Internal dependencies
*/
@@ -3016,12 +3056,17 @@ const ENABLE_EXPERIMENTAL_FSE_BLOCKS = false;
+
+
const {
ExperimentalBlockEditorProvider
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
const {
PatternsMenuItems
} = unlock(external_wp_patterns_namespaceObject.privateApis);
+const {
+ BlockKeyboardShortcuts
+} = unlock(external_wp_blockLibrary_namespaceObject.privateApis);
function WidgetAreasBlockEditorProvider({
blockEditorSettings,
children,
@@ -3087,66 +3132,72 @@ function WidgetAreasBlockEditorProvider({
const [blocks, onInput, onChange] = (0,external_wp_coreData_namespaceObject.useEntityBlockEditor)(KIND, POST_TYPE, {
id: buildWidgetAreasPostId()
});
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SlotFillProvider, null, (0,external_React_namespaceObject.createElement)(keyboard_shortcuts.Register, null), (0,external_React_namespaceObject.createElement)(ExperimentalBlockEditorProvider, {
- value: blocks,
- onInput: onInput,
- onChange: onChange,
- settings: settings,
- useSubRegistry: false,
- ...props
- }, children, (0,external_React_namespaceObject.createElement)(PatternsMenuItems, {
- rootClientId: widgetAreaId
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.SlotFillProvider, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(keyboard_shortcuts.Register, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockKeyboardShortcuts, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ExperimentalBlockEditorProvider, {
+ value: blocks,
+ onInput: onInput,
+ onChange: onChange,
+ settings: settings,
+ useSubRegistry: false,
+ ...props,
+ children: [children, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternsMenuItems, {
+ rootClientId: widgetAreaId
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/drawer-left.js
-
/**
* WordPress dependencies
*/
-const drawerLeft = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const drawerLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"
+ })
+});
/* harmony default export */ const drawer_left = (drawerLeft);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/drawer-right.js
-
/**
* WordPress dependencies
*/
-const drawerRight = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const drawerRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
width: "24",
height: "24",
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"
+ })
+});
/* harmony default export */ const drawer_right = (drawerRight);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js
-
/**
* WordPress dependencies
*/
-const blockDefault = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const blockDefault = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const block_default = (blockDefault);
;// CONCATENATED MODULE: external ["wp","url"]
@@ -3154,7 +3205,6 @@ const external_wp_url_namespaceObject = window["wp"]["url"];
;// CONCATENATED MODULE: external ["wp","dom"]
const external_wp_dom_namespaceObject = window["wp"]["dom"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/sidebar/widget-areas.js
-
/**
* WordPress dependencies
*/
@@ -3171,6 +3221,8 @@ const external_wp_dom_namespaceObject = window["wp"]["dom"];
* Internal dependencies
*/
+
+
function WidgetAreas({
selectedWidgetAreaId
}) {
@@ -3184,31 +3236,37 @@ function WidgetAreas({
} else {
description = selectedWidgetArea.description;
}
- return (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-widgets-widget-areas"
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-widgets-widget-areas__top-container"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
- icon: block_default
- }), (0,external_React_namespaceObject.createElement)("div", null, (0,external_React_namespaceObject.createElement)("p", {
- // Use `dangerouslySetInnerHTML` to keep backwards
- // compatibility. Basic markup in the description is an
- // established feature of WordPress.
- // @see https://github.com/WordPress/gutenberg/issues/33106
- dangerouslySetInnerHTML: {
- __html: (0,external_wp_dom_namespaceObject.safeHTML)(description)
- }
- }), widgetAreas?.length === 0 && (0,external_React_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Your theme does not contain any Widget Areas.')), !selectedWidgetArea && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- href: (0,external_wp_url_namespaceObject.addQueryArgs)('customize.php', {
- 'autofocus[panel]': 'widgets',
- return: window.location.pathname
- }),
- variant: "tertiary"
- }, (0,external_wp_i18n_namespaceObject.__)('Manage with live preview')))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-widgets-widget-areas",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "edit-widgets-widget-areas__top-container",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ icon: block_default
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ // Use `dangerouslySetInnerHTML` to keep backwards
+ // compatibility. Basic markup in the description is an
+ // established feature of WordPress.
+ // @see https://github.com/WordPress/gutenberg/issues/33106
+ dangerouslySetInnerHTML: {
+ __html: (0,external_wp_dom_namespaceObject.safeHTML)(description)
+ }
+ }), widgetAreas?.length === 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Your theme does not contain any Widget Areas.')
+ }), !selectedWidgetArea && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ href: (0,external_wp_url_namespaceObject.addQueryArgs)('customize.php', {
+ 'autofocus[panel]': 'widgets',
+ return: window.location.pathname
+ }),
+ variant: "tertiary",
+ children: (0,external_wp_i18n_namespaceObject.__)('Manage with live preview')
+ })]
+ })]
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/sidebar/index.js
-
/**
* WordPress dependencies
*/
@@ -3235,17 +3293,23 @@ const WIDGET_AREAS_IDENTIFIER = 'edit-widgets/block-areas';
+
+
const {
Tabs
} = unlock(external_wp_components_namespaceObject.privateApis);
function SidebarHeader({
selectedWidgetAreaBlock
}) {
- return (0,external_React_namespaceObject.createElement)(Tabs.TabList, null, (0,external_React_namespaceObject.createElement)(Tabs.Tab, {
- tabId: WIDGET_AREAS_IDENTIFIER
- }, selectedWidgetAreaBlock ? selectedWidgetAreaBlock.attributes.name : (0,external_wp_i18n_namespaceObject.__)('Widget Areas')), (0,external_React_namespaceObject.createElement)(Tabs.Tab, {
- tabId: BLOCK_INSPECTOR_IDENTIFIER
- }, (0,external_wp_i18n_namespaceObject.__)('Block')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tabs.TabList, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.Tab, {
+ tabId: WIDGET_AREAS_IDENTIFIER,
+ children: selectedWidgetAreaBlock ? selectedWidgetAreaBlock.attributes.name : (0,external_wp_i18n_namespaceObject.__)('Widget Areas')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.Tab, {
+ tabId: BLOCK_INSPECTOR_IDENTIFIER,
+ children: (0,external_wp_i18n_namespaceObject.__)('Block')
+ })]
+ });
}
function SidebarContent({
hasSelectedNonAreaBlock,
@@ -3269,13 +3333,14 @@ function SidebarContent({
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [hasSelectedNonAreaBlock, enableComplementaryArea]);
const tabsContextValue = (0,external_wp_element_namespaceObject.useContext)(Tabs.Context);
- return (0,external_React_namespaceObject.createElement)(complementary_area, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(complementary_area, {
className: "edit-widgets-sidebar",
- header: (0,external_React_namespaceObject.createElement)(Tabs.Context.Provider, {
- value: tabsContextValue
- }, (0,external_React_namespaceObject.createElement)(SidebarHeader, {
- selectedWidgetAreaBlock: selectedWidgetAreaBlock
- })),
+ header: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.Context.Provider, {
+ value: tabsContextValue,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarHeader, {
+ selectedWidgetAreaBlock: selectedWidgetAreaBlock
+ })
+ }),
headerClassName: "edit-widgets-sidebar__panel-tabs"
/* translators: button label text should, if possible, be under 16 characters. */,
title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
@@ -3283,23 +3348,29 @@ function SidebarContent({
scope: "core/edit-widgets",
identifier: currentArea,
icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? drawer_left : drawer_right,
- isActiveByDefault: SIDEBAR_ACTIVE_BY_DEFAULT
- }, (0,external_React_namespaceObject.createElement)(Tabs.Context.Provider, {
- value: tabsContextValue
- }, (0,external_React_namespaceObject.createElement)(Tabs.TabPanel, {
- tabId: WIDGET_AREAS_IDENTIFIER,
- focusable: false
- }, (0,external_React_namespaceObject.createElement)(WidgetAreas, {
- selectedWidgetAreaId: selectedWidgetAreaBlock?.attributes.id
- })), (0,external_React_namespaceObject.createElement)(Tabs.TabPanel, {
- tabId: BLOCK_INSPECTOR_IDENTIFIER,
- focusable: false
- }, hasSelectedNonAreaBlock ? (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockInspector, null) :
- // Pretend that Widget Areas are part of the UI by not
- // showing the Block Inspector when one is selected.
- (0,external_React_namespaceObject.createElement)("span", {
- className: "block-editor-block-inspector__no-blocks"
- }, (0,external_wp_i18n_namespaceObject.__)('No block selected.')))));
+ isActiveByDefault: SIDEBAR_ACTIVE_BY_DEFAULT,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tabs.Context.Provider, {
+ value: tabsContextValue,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.TabPanel, {
+ tabId: WIDGET_AREAS_IDENTIFIER,
+ focusable: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WidgetAreas, {
+ selectedWidgetAreaId: selectedWidgetAreaBlock?.attributes.id
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.TabPanel, {
+ tabId: BLOCK_INSPECTOR_IDENTIFIER,
+ focusable: false,
+ children: hasSelectedNonAreaBlock ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockInspector, {}) :
+ /*#__PURE__*/
+ // Pretend that Widget Areas are part of the UI by not
+ // showing the Block Inspector when one is selected.
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "block-editor-block-inspector__no-blocks",
+ children: (0,external_wp_i18n_namespaceObject.__)('No block selected.')
+ })
+ })]
+ })
+ });
}
function Sidebar() {
const {
@@ -3354,7 +3425,7 @@ function Sidebar() {
enableComplementaryArea(store_store.name, newSelectedTabId);
}
}, [enableComplementaryArea]);
- return (0,external_React_namespaceObject.createElement)(Tabs
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs
// Due to how this component is controlled (via a value from the
// `interfaceStore`), when the sidebar closes the currently selected
// tab can't be found. This causes the component to continuously reset
@@ -3363,73 +3434,77 @@ function Sidebar() {
, {
selectedTabId: isGeneralSidebarOpen ? currentArea : null,
onSelect: onTabSelect,
- selectOnMove: false
- }, (0,external_React_namespaceObject.createElement)(SidebarContent, {
- hasSelectedNonAreaBlock: hasSelectedNonAreaBlock,
- currentArea: currentArea,
- isGeneralSidebarOpen: isGeneralSidebarOpen,
- selectedWidgetAreaBlock: selectedWidgetAreaBlock
- }));
+ selectOnMove: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarContent, {
+ hasSelectedNonAreaBlock: hasSelectedNonAreaBlock,
+ currentArea: currentArea,
+ isGeneralSidebarOpen: isGeneralSidebarOpen,
+ selectedWidgetAreaBlock: selectedWidgetAreaBlock
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js
-
/**
* WordPress dependencies
*/
-const plus = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const plus = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
+ })
+});
/* harmony default export */ const library_plus = (plus);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/list-view.js
-
/**
* WordPress dependencies
*/
-const listView = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const listView = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"
+ })
+});
/* harmony default export */ const list_view = (listView);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/undo.js
-
/**
* WordPress dependencies
*/
-const undo = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const undo = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"
+ })
+});
/* harmony default export */ const library_undo = (undo);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/redo.js
-
/**
* WordPress dependencies
*/
-const redo = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const redo = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"
+ })
+});
/* harmony default export */ const library_redo = (redo);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/header/undo-redo/undo.js
-
/**
* WordPress dependencies
*/
@@ -3440,12 +3515,13 @@ const redo = (0,external_React_namespaceObject.createElement)(external_wp_primit
+
function UndoButton(props, ref) {
const hasUndo = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).hasUndo(), []);
const {
undo
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
...props,
ref: ref,
icon: !(0,external_wp_i18n_namespaceObject.isRTL)() ? library_undo : library_redo,
@@ -3456,13 +3532,13 @@ function UndoButton(props, ref) {
// See: https://github.com/WordPress/gutenberg/issues/3486
,
"aria-disabled": !hasUndo,
- onClick: hasUndo ? undo : undefined
+ onClick: hasUndo ? undo : undefined,
+ size: "compact"
});
}
/* harmony default export */ const undo_redo_undo = ((0,external_wp_element_namespaceObject.forwardRef)(UndoButton));
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/header/undo-redo/redo.js
-
/**
* WordPress dependencies
*/
@@ -3473,13 +3549,14 @@ function UndoButton(props, ref) {
+
function RedoButton(props, ref) {
const shortcut = (0,external_wp_keycodes_namespaceObject.isAppleOS)() ? external_wp_keycodes_namespaceObject.displayShortcut.primaryShift('z') : external_wp_keycodes_namespaceObject.displayShortcut.primary('y');
const hasRedo = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).hasRedo(), []);
const {
redo
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
...props,
ref: ref,
icon: !(0,external_wp_i18n_namespaceObject.isRTL)() ? library_redo : library_undo,
@@ -3490,13 +3567,13 @@ function RedoButton(props, ref) {
// See: https://github.com/WordPress/gutenberg/issues/3486
,
"aria-disabled": !hasRedo,
- onClick: hasRedo ? redo : undefined
+ onClick: hasRedo ? redo : undefined,
+ size: "compact"
});
}
/* harmony default export */ const undo_redo_redo = ((0,external_wp_element_namespaceObject.forwardRef)(RedoButton));
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/header/document-tools/index.js
-
/**
* WordPress dependencies
*/
@@ -3516,99 +3593,76 @@ function RedoButton(props, ref) {
-const {
- useCanBlockToolbarBeFocused
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+
+
function DocumentTools() {
const isMediumViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
- const inserterButton = (0,external_wp_element_namespaceObject.useRef)();
- const widgetAreaClientId = use_last_selected_widget_area();
- const isLastSelectedWidgetAreaOpen = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getIsWidgetAreaOpen(widgetAreaClientId), [widgetAreaClientId]);
const {
isInserterOpen,
isListViewOpen,
+ inserterSidebarToggleRef,
listViewToggleRef
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
isInserterOpened,
+ getInserterSidebarToggleRef,
isListViewOpened,
getListViewToggleRef
} = unlock(select(store_store));
return {
isInserterOpen: isInserterOpened(),
isListViewOpen: isListViewOpened(),
+ inserterSidebarToggleRef: getInserterSidebarToggleRef(),
listViewToggleRef: getListViewToggleRef()
};
}, []);
const {
- setIsWidgetAreaOpen,
setIsInserterOpened,
setIsListViewOpened
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const {
- selectBlock
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- const handleClick = () => {
- if (isInserterOpen) {
- // Focusing the inserter button closes the inserter popover.
- setIsInserterOpened(false);
- } else {
- if (!isLastSelectedWidgetAreaOpen) {
- // Select the last selected block if hasn't already.
- selectBlock(widgetAreaClientId);
- // Open the last selected widget area when opening the inserter.
- setIsWidgetAreaOpen(widgetAreaClientId, true);
- }
- // The DOM updates resulting from selectBlock() and setIsInserterOpened() calls are applied the
- // same tick and pretty much in a random order. The inserter is closed if any other part of the
- // app receives focus. If selectBlock() happens to take effect after setIsInserterOpened() then
- // the inserter is visible for a brief moment and then gets auto-closed due to focus moving to
- // the selected block.
- window.requestAnimationFrame(() => setIsInserterOpened(true));
- }
- };
const toggleListView = (0,external_wp_element_namespaceObject.useCallback)(() => setIsListViewOpened(!isListViewOpen), [setIsListViewOpened, isListViewOpen]);
-
- // If there's a block toolbar to be focused, disable the focus shortcut for the document toolbar.
- const blockToolbarCanBeFocused = useCanBlockToolbarBeFocused();
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.NavigableToolbar, {
+ const toggleInserterSidebar = (0,external_wp_element_namespaceObject.useCallback)(() => setIsInserterOpened(!isInserterOpen), [setIsInserterOpened, isInserterOpen]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.NavigableToolbar, {
className: "edit-widgets-header-toolbar",
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Document tools'),
- shouldUseKeyboardFocusShortcut: !blockToolbarCanBeFocused,
- variant: "unstyled"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarItem, {
- ref: inserterButton,
- as: external_wp_components_namespaceObject.Button,
- className: "edit-widgets-header-toolbar__inserter-toggle",
- variant: "primary",
- isPressed: isInserterOpen,
- onMouseDown: event => {
- event.preventDefault();
- },
- onClick: handleClick,
- icon: library_plus
- /* translators: button label text should, if possible, be under 16
- characters. */,
- label: (0,external_wp_i18n_namespaceObject._x)('Toggle block inserter', 'Generic label for block inserter button')
- }), isMediumViewport && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarItem, {
- as: undo_redo_undo
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarItem, {
- as: undo_redo_redo
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarItem, {
- as: external_wp_components_namespaceObject.Button,
- className: "edit-widgets-header-toolbar__list-view-toggle",
- icon: list_view,
- isPressed: isListViewOpen
- /* translators: button label text should, if possible, be under 16 characters. */,
- label: (0,external_wp_i18n_namespaceObject.__)('List View'),
- onClick: toggleListView,
- ref: listViewToggleRef
- })));
+ variant: "unstyled",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
+ ref: inserterSidebarToggleRef,
+ as: external_wp_components_namespaceObject.Button,
+ className: "edit-widgets-header-toolbar__inserter-toggle",
+ variant: "primary",
+ isPressed: isInserterOpen,
+ onMouseDown: event => {
+ event.preventDefault();
+ },
+ onClick: toggleInserterSidebar,
+ icon: library_plus
+ /* translators: button label text should, if possible, be under 16
+ characters. */,
+ label: (0,external_wp_i18n_namespaceObject._x)('Toggle block inserter', 'Generic label for block inserter button'),
+ size: "compact"
+ }), isMediumViewport && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
+ as: undo_redo_undo
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
+ as: undo_redo_redo
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
+ as: external_wp_components_namespaceObject.Button,
+ className: "edit-widgets-header-toolbar__list-view-toggle",
+ icon: list_view,
+ isPressed: isListViewOpen
+ /* translators: button label text should, if possible, be under 16 characters. */,
+ label: (0,external_wp_i18n_namespaceObject.__)('List View'),
+ onClick: toggleListView,
+ ref: listViewToggleRef,
+ size: "compact"
+ })]
+ })]
+ });
}
/* harmony default export */ const document_tools = (DocumentTools);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/save-button/index.js
-
/**
* WordPress dependencies
*/
@@ -3620,6 +3674,7 @@ function DocumentTools() {
* Internal dependencies
*/
+
function SaveButton() {
const {
hasEditedWidgetAreaIds,
@@ -3638,27 +3693,45 @@ function SaveButton() {
saveEditedWidgetAreas
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
const isDisabled = isSaving || !hasEditedWidgetAreaIds;
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
variant: "primary",
isBusy: isSaving,
"aria-disabled": isDisabled,
- onClick: isDisabled ? undefined : saveEditedWidgetAreas
- }, isSaving ? (0,external_wp_i18n_namespaceObject.__)('Saving…') : (0,external_wp_i18n_namespaceObject.__)('Update'));
+ onClick: isDisabled ? undefined : saveEditedWidgetAreas,
+ size: "compact",
+ children: isSaving ? (0,external_wp_i18n_namespaceObject.__)('Saving…') : (0,external_wp_i18n_namespaceObject.__)('Update')
+ });
}
/* harmony default export */ const save_button = (SaveButton);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
+/**
+ * WordPress dependencies
+ */
+
+
+const moreVertical = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
+ })
+});
+/* harmony default export */ const more_vertical = (moreVertical);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
/**
* WordPress dependencies
*/
-const external = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const external = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"
+ })
+});
/* harmony default export */ const library_external = (external);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcut-help-modal/config.js
@@ -3718,6 +3791,10 @@ const textFormattingShortcuts = [{
modifier: 'access',
character: '0'
},
+ aliases: [{
+ modifier: 'access',
+ character: '7'
+ }],
description: (0,external_wp_i18n_namespaceObject.__)('Convert the current heading to a paragraph.')
}, {
keyCombination: {
@@ -3725,15 +3802,23 @@ const textFormattingShortcuts = [{
character: '1-6'
},
description: (0,external_wp_i18n_namespaceObject.__)('Convert the current paragraph or heading to a heading of level 1 to 6.')
+}, {
+ keyCombination: {
+ modifier: 'primaryShift',
+ character: 'SPACE'
+ },
+ description: (0,external_wp_i18n_namespaceObject.__)('Add non breaking space.')
}];
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcut-help-modal/shortcut.js
-
/**
* WordPress dependencies
*/
+
+
+
function KeyCombination({
keyCombination,
forceAriaLabel
@@ -3741,20 +3826,21 @@ function KeyCombination({
const shortcut = keyCombination.modifier ? external_wp_keycodes_namespaceObject.displayShortcutList[keyCombination.modifier](keyCombination.character) : keyCombination.character;
const ariaLabel = keyCombination.modifier ? external_wp_keycodes_namespaceObject.shortcutAriaLabel[keyCombination.modifier](keyCombination.character) : keyCombination.character;
const shortcuts = Array.isArray(shortcut) ? shortcut : [shortcut];
- return (0,external_React_namespaceObject.createElement)("kbd", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("kbd", {
className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination",
- "aria-label": forceAriaLabel || ariaLabel
- }, shortcuts.map((character, index) => {
- if (character === '+') {
- return (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, {
- key: index
- }, character);
- }
- return (0,external_React_namespaceObject.createElement)("kbd", {
- key: index,
- className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-key"
- }, character);
- }));
+ "aria-label": forceAriaLabel || ariaLabel,
+ children: shortcuts.map((character, index) => {
+ if (character === '+') {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.Fragment, {
+ children: character
+ }, index);
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("kbd", {
+ className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-key",
+ children: character
+ }, index);
+ })
+ });
}
function Shortcut({
description,
@@ -3762,23 +3848,25 @@ function Shortcut({
aliases = [],
ariaLabel
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-description"
- }, description), (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-term"
- }, (0,external_React_namespaceObject.createElement)(KeyCombination, {
- keyCombination: keyCombination,
- forceAriaLabel: ariaLabel
- }), aliases.map((alias, index) => (0,external_React_namespaceObject.createElement)(KeyCombination, {
- keyCombination: alias,
- forceAriaLabel: ariaLabel,
- key: index
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-description",
+ children: description
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-term",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(KeyCombination, {
+ keyCombination: keyCombination,
+ forceAriaLabel: ariaLabel
+ }), aliases.map((alias, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(KeyCombination, {
+ keyCombination: alias,
+ forceAriaLabel: ariaLabel
+ }, index))]
+ })]
+ });
}
/* harmony default export */ const keyboard_shortcut_help_modal_shortcut = (Shortcut);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js
-
/**
* WordPress dependencies
*/
@@ -3789,6 +3877,7 @@ function Shortcut({
* Internal dependencies
*/
+
function DynamicShortcut({
name
}) {
@@ -3811,7 +3900,7 @@ function DynamicShortcut({
if (!keyCombination) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(keyboard_shortcut_help_modal_shortcut, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(keyboard_shortcut_help_modal_shortcut, {
keyCombination: keyCombination,
description: description,
aliases: aliases
@@ -3820,7 +3909,6 @@ function DynamicShortcut({
/* harmony default export */ const dynamic_shortcut = (DynamicShortcut);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcut-help-modal/index.js
-
/**
* External dependencies
*/
@@ -3840,37 +3928,43 @@ function DynamicShortcut({
+
+
const ShortcutList = ({
shortcuts
}) =>
+/*#__PURE__*/
/*
* Disable reason: The `list` ARIA role is redundant but
* Safari+VoiceOver won't announce the list otherwise.
*/
/* eslint-disable jsx-a11y/no-redundant-roles */
-(0,external_React_namespaceObject.createElement)("ul", {
+(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-list",
- role: "list"
-}, shortcuts.map((shortcut, index) => (0,external_React_namespaceObject.createElement)("li", {
- className: "edit-widgets-keyboard-shortcut-help-modal__shortcut",
- key: index
-}, typeof shortcut === 'string' ? (0,external_React_namespaceObject.createElement)(dynamic_shortcut, {
- name: shortcut
-}) : (0,external_React_namespaceObject.createElement)(keyboard_shortcut_help_modal_shortcut, {
- ...shortcut
-}))))
+ role: "list",
+ children: shortcuts.map((shortcut, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ className: "edit-widgets-keyboard-shortcut-help-modal__shortcut",
+ children: typeof shortcut === 'string' ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dynamic_shortcut, {
+ name: shortcut
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(keyboard_shortcut_help_modal_shortcut, {
+ ...shortcut
+ })
+ }, index))
+})
/* eslint-enable jsx-a11y/no-redundant-roles */;
const ShortcutSection = ({
title,
shortcuts,
className
-}) => (0,external_React_namespaceObject.createElement)("section", {
- className: classnames_default()('edit-widgets-keyboard-shortcut-help-modal__section', className)
-}, !!title && (0,external_React_namespaceObject.createElement)("h2", {
- className: "edit-widgets-keyboard-shortcut-help-modal__section-title"
-}, title), (0,external_React_namespaceObject.createElement)(ShortcutList, {
- shortcuts: shortcuts
-}));
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("section", {
+ className: dist_clsx('edit-widgets-keyboard-shortcut-help-modal__section', className),
+ children: [!!title && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ className: "edit-widgets-keyboard-shortcut-help-modal__section-title",
+ children: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutList, {
+ shortcuts: shortcuts
+ })]
+});
const ShortcutCategorySection = ({
title,
categoryName,
@@ -3879,7 +3973,7 @@ const ShortcutCategorySection = ({
const categoryShortcuts = (0,external_wp_data_namespaceObject.useSelect)(select => {
return select(external_wp_keyboardShortcuts_namespaceObject.store).getCategoryShortcuts(categoryName);
}, [categoryName]);
- return (0,external_React_namespaceObject.createElement)(ShortcutSection, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutSection, {
title: title,
shortcuts: categoryShortcuts.concat(additionalShortcuts)
});
@@ -3894,55 +3988,59 @@ function KeyboardShortcutHelpModal({
if (!isModalActive) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Modal, {
className: "edit-widgets-keyboard-shortcut-help-modal",
title: (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts'),
- onRequestClose: toggleModal
- }, (0,external_React_namespaceObject.createElement)(ShortcutSection, {
- className: "edit-widgets-keyboard-shortcut-help-modal__main-shortcuts",
- shortcuts: ['core/edit-widgets/keyboard-shortcuts']
- }), (0,external_React_namespaceObject.createElement)(ShortcutCategorySection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Global shortcuts'),
- categoryName: "global"
- }), (0,external_React_namespaceObject.createElement)(ShortcutCategorySection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Selection shortcuts'),
- categoryName: "selection"
- }), (0,external_React_namespaceObject.createElement)(ShortcutCategorySection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Block shortcuts'),
- categoryName: "block",
- additionalShortcuts: [{
- keyCombination: {
- character: '/'
- },
- description: (0,external_wp_i18n_namespaceObject.__)('Change the block type after adding a new paragraph.'),
- /* translators: The forward-slash character. e.g. '/'. */
- ariaLabel: (0,external_wp_i18n_namespaceObject.__)('Forward-slash')
- }]
- }), (0,external_React_namespaceObject.createElement)(ShortcutSection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Text formatting'),
- shortcuts: textFormattingShortcuts
- }));
+ onRequestClose: toggleModal,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutSection, {
+ className: "edit-widgets-keyboard-shortcut-help-modal__main-shortcuts",
+ shortcuts: ['core/edit-widgets/keyboard-shortcuts']
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutCategorySection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Global shortcuts'),
+ categoryName: "global"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutCategorySection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Selection shortcuts'),
+ categoryName: "selection"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutCategorySection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Block shortcuts'),
+ categoryName: "block",
+ additionalShortcuts: [{
+ keyCombination: {
+ character: '/'
+ },
+ description: (0,external_wp_i18n_namespaceObject.__)('Change the block type after adding a new paragraph.'),
+ /* translators: The forward-slash character. e.g. '/'. */
+ ariaLabel: (0,external_wp_i18n_namespaceObject.__)('Forward-slash')
+ }]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutSection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Text formatting'),
+ shortcuts: textFormattingShortcuts
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutCategorySection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('List View shortcuts'),
+ categoryName: "list-view"
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/more-menu/tools-more-menu-group.js
-
/**
* WordPress dependencies
*/
+
const {
Fill: ToolsMoreMenuGroup,
Slot
} = (0,external_wp_components_namespaceObject.createSlotFill)('EditWidgetsToolsMoreMenuGroup');
ToolsMoreMenuGroup.Slot = ({
fillProps
-}) => (0,external_React_namespaceObject.createElement)(Slot, {
- fillProps: fillProps
-}, fills => fills.length > 0 && fills);
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Slot, {
+ fillProps: fillProps,
+ children: fills => fills.length > 0 && fills
+});
/* harmony default export */ const tools_more_menu_group = (ToolsMoreMenuGroup);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/more-menu/index.js
-
/**
* WordPress dependencies
*/
@@ -3955,79 +4053,102 @@ ToolsMoreMenuGroup.Slot = ({
-
/**
* Internal dependencies
*/
+
+
+
function MoreMenu() {
const [isKeyboardShortcutsModalActive, setIsKeyboardShortcutsModalVisible] = (0,external_wp_element_namespaceObject.useState)(false);
const toggleKeyboardShortcutsModal = () => setIsKeyboardShortcutsModalVisible(!isKeyboardShortcutsModalActive);
(0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-widgets/keyboard-shortcuts', toggleKeyboardShortcutsModal);
const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(MoreMenuDropdown, null, onClose => (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, isLargeViewport && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject._x)('View', 'noun')
- }, (0,external_React_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
- scope: "core/edit-widgets",
- name: "fixedToolbar",
- label: (0,external_wp_i18n_namespaceObject.__)('Top toolbar'),
- info: (0,external_wp_i18n_namespaceObject.__)('Access all block and document tools in a single place'),
- messageActivated: (0,external_wp_i18n_namespaceObject.__)('Top toolbar activated'),
- messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Top toolbar deactivated')
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Tools')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- setIsKeyboardShortcutsModalVisible(true);
- },
- shortcut: external_wp_keycodes_namespaceObject.displayShortcut.access('h')
- }, (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts')), (0,external_React_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
- scope: "core/edit-widgets",
- name: "welcomeGuide",
- label: (0,external_wp_i18n_namespaceObject.__)('Welcome Guide')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- role: "menuitem",
- icon: library_external,
- href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/block-based-widgets-editor/'),
- target: "_blank",
- rel: "noopener noreferrer"
- }, (0,external_wp_i18n_namespaceObject.__)('Help'), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "span"
- }, /* translators: accessibility text */
- (0,external_wp_i18n_namespaceObject.__)('(opens in a new tab)'))), (0,external_React_namespaceObject.createElement)(tools_more_menu_group.Slot, {
- fillProps: {
- onClose
- }
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Preferences')
- }, (0,external_React_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
- scope: "core/edit-widgets",
- name: "keepCaretInsideBlock",
- label: (0,external_wp_i18n_namespaceObject.__)('Contain text cursor inside block'),
- info: (0,external_wp_i18n_namespaceObject.__)('Aids screen readers by stopping text caret from leaving blocks.'),
- messageActivated: (0,external_wp_i18n_namespaceObject.__)('Contain text cursor inside block activated'),
- messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Contain text cursor inside block deactivated')
- }), (0,external_React_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
- scope: "core/edit-widgets",
- name: "themeStyles",
- info: (0,external_wp_i18n_namespaceObject.__)('Make the editor look like your theme.'),
- label: (0,external_wp_i18n_namespaceObject.__)('Use theme styles')
- }), isLargeViewport && (0,external_React_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
- scope: "core/edit-widgets",
- name: "showBlockBreadcrumbs",
- label: (0,external_wp_i18n_namespaceObject.__)('Display block breadcrumbs'),
- info: (0,external_wp_i18n_namespaceObject.__)('Shows block breadcrumbs at the bottom of the editor.'),
- messageActivated: (0,external_wp_i18n_namespaceObject.__)('Display block breadcrumbs activated'),
- messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Display block breadcrumbs deactivated')
- })))), (0,external_React_namespaceObject.createElement)(KeyboardShortcutHelpModal, {
- isModalActive: isKeyboardShortcutsModalActive,
- toggleModal: toggleKeyboardShortcutsModal
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
+ icon: more_vertical,
+ label: (0,external_wp_i18n_namespaceObject.__)('Options'),
+ popoverProps: {
+ placement: 'bottom-end',
+ className: 'more-menu-dropdown__content'
+ },
+ toggleProps: {
+ tooltipPosition: 'bottom',
+ size: 'compact'
+ },
+ children: onClose => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [isLargeViewport && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ label: (0,external_wp_i18n_namespaceObject._x)('View', 'noun'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
+ scope: "core/edit-widgets",
+ name: "fixedToolbar",
+ label: (0,external_wp_i18n_namespaceObject.__)('Top toolbar'),
+ info: (0,external_wp_i18n_namespaceObject.__)('Access all block and document tools in a single place'),
+ messageActivated: (0,external_wp_i18n_namespaceObject.__)('Top toolbar activated'),
+ messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Top toolbar deactivated')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Tools'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ setIsKeyboardShortcutsModalVisible(true);
+ },
+ shortcut: external_wp_keycodes_namespaceObject.displayShortcut.access('h'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
+ scope: "core/edit-widgets",
+ name: "welcomeGuide",
+ label: (0,external_wp_i18n_namespaceObject.__)('Welcome Guide')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuItem, {
+ role: "menuitem",
+ icon: library_external,
+ href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/block-based-widgets-editor/'),
+ target: "_blank",
+ rel: "noopener noreferrer",
+ children: [(0,external_wp_i18n_namespaceObject.__)('Help'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ as: "span",
+ children: /* translators: accessibility text */
+ (0,external_wp_i18n_namespaceObject.__)('(opens in a new tab)')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tools_more_menu_group.Slot, {
+ fillProps: {
+ onClose
+ }
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Preferences'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
+ scope: "core/edit-widgets",
+ name: "keepCaretInsideBlock",
+ label: (0,external_wp_i18n_namespaceObject.__)('Contain text cursor inside block'),
+ info: (0,external_wp_i18n_namespaceObject.__)('Aids screen readers by stopping text caret from leaving blocks.'),
+ messageActivated: (0,external_wp_i18n_namespaceObject.__)('Contain text cursor inside block activated'),
+ messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Contain text cursor inside block deactivated')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
+ scope: "core/edit-widgets",
+ name: "themeStyles",
+ info: (0,external_wp_i18n_namespaceObject.__)('Make the editor look like your theme.'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Use theme styles')
+ }), isLargeViewport && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
+ scope: "core/edit-widgets",
+ name: "showBlockBreadcrumbs",
+ label: (0,external_wp_i18n_namespaceObject.__)('Display block breadcrumbs'),
+ info: (0,external_wp_i18n_namespaceObject.__)('Shows block breadcrumbs at the bottom of the editor.'),
+ messageActivated: (0,external_wp_i18n_namespaceObject.__)('Display block breadcrumbs activated'),
+ messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Display block breadcrumbs deactivated')
+ })]
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(KeyboardShortcutHelpModal, {
+ isModalActive: isKeyboardShortcutsModalActive,
+ toggleModal: toggleKeyboardShortcutsModal
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/header/index.js
-
/**
* WordPress dependencies
*/
@@ -4046,6 +4167,9 @@ function MoreMenu() {
+
+
+
function Header() {
const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
const blockToolbarRef = (0,external_wp_element_namespaceObject.useRef)();
@@ -4054,32 +4178,41 @@ function Header() {
} = (0,external_wp_data_namespaceObject.useSelect)(select => ({
hasFixedToolbar: !!select(external_wp_preferences_namespaceObject.store).get('core/edit-widgets', 'fixedToolbar')
}), []);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-widgets-header"
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-widgets-header__navigable-toolbar-wrapper"
- }, isLargeViewport && (0,external_React_namespaceObject.createElement)("h1", {
- className: "edit-widgets-header__title"
- }, (0,external_wp_i18n_namespaceObject.__)('Widgets')), !isLargeViewport && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "h1",
- className: "edit-widgets-header__title"
- }, (0,external_wp_i18n_namespaceObject.__)('Widgets')), (0,external_React_namespaceObject.createElement)(document_tools, null), hasFixedToolbar && isLargeViewport && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("div", {
- className: "selected-block-tools-wrapper"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockToolbar, {
- hideDragHandle: true
- })), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Popover.Slot, {
- ref: blockToolbarRef,
- name: "block-toolbar"
- }))), (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-widgets-header__actions"
- }, (0,external_React_namespaceObject.createElement)(save_button, null), (0,external_React_namespaceObject.createElement)(pinned_items.Slot, {
- scope: "core/edit-widgets"
- }), (0,external_React_namespaceObject.createElement)(MoreMenu, null))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "edit-widgets-header",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "edit-widgets-header__navigable-toolbar-wrapper",
+ children: [isLargeViewport && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ className: "edit-widgets-header__title",
+ children: (0,external_wp_i18n_namespaceObject.__)('Widgets')
+ }), !isLargeViewport && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ as: "h1",
+ className: "edit-widgets-header__title",
+ children: (0,external_wp_i18n_namespaceObject.__)('Widgets')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(document_tools, {}), hasFixedToolbar && isLargeViewport && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "selected-block-tools-wrapper",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockToolbar, {
+ hideDragHandle: true
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover.Slot, {
+ ref: blockToolbarRef,
+ name: "block-toolbar"
+ })]
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "edit-widgets-header__actions",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(save_button, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(pinned_items.Slot, {
+ scope: "core/edit-widgets"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MoreMenu, {})]
+ })]
+ })
+ });
}
/* harmony default export */ const header = (Header);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/notices/index.js
-
/**
* WordPress dependencies
*/
@@ -4088,6 +4221,9 @@ function Header() {
// Last three notices. Slices from the tail end of the list.
+
+
+
const MAX_VISIBLE_NOTICES = -3;
function Notices() {
const {
@@ -4111,23 +4247,24 @@ function Notices() {
const snackbarNotices = notices.filter(({
type
}) => type === 'snackbar').slice(MAX_VISIBLE_NOTICES);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.NoticeList, {
- notices: nonDismissibleNotices,
- className: "edit-widgets-notices__pinned"
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.NoticeList, {
- notices: dismissibleNotices,
- className: "edit-widgets-notices__dismissible",
- onRemove: removeNotice
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SnackbarList, {
- notices: snackbarNotices,
- className: "edit-widgets-notices__snackbar",
- onRemove: removeNotice
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.NoticeList, {
+ notices: nonDismissibleNotices,
+ className: "edit-widgets-notices__pinned"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.NoticeList, {
+ notices: dismissibleNotices,
+ className: "edit-widgets-notices__dismissible",
+ onRemove: removeNotice
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SnackbarList, {
+ notices: snackbarNotices,
+ className: "edit-widgets-notices__snackbar",
+ onRemove: removeNotice
+ })]
+ });
}
/* harmony default export */ const notices = (Notices);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/widget-areas-block-editor-content/index.js
-
/**
* WordPress dependencies
*/
@@ -4142,6 +4279,8 @@ function Notices() {
*/
+
+
function WidgetAreasBlockEditorContent({
blockEditorSettings
}) {
@@ -4150,30 +4289,38 @@ function WidgetAreasBlockEditorContent({
const styles = (0,external_wp_element_namespaceObject.useMemo)(() => {
return hasThemeStyles ? blockEditorSettings.styles : [];
}, [blockEditorSettings, hasThemeStyles]);
- return (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-widgets-block-editor"
- }, (0,external_React_namespaceObject.createElement)(notices, null), !isLargeViewport && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockToolbar, {
- hideDragHandle: true
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockTools, null, (0,external_React_namespaceObject.createElement)(keyboard_shortcuts, null), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__unstableEditorStyles, {
- styles: styles,
- scope: ".editor-styles-wrapper"
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockSelectionClearer, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.WritingFlow, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockList, {
- className: "edit-widgets-main-block-list"
- })))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "edit-widgets-block-editor",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(notices, {}), !isLargeViewport && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockToolbar, {
+ hideDragHandle: true
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.BlockTools, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(keyboard_shortcuts, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__unstableEditorStyles, {
+ styles: styles,
+ scope: ".editor-styles-wrapper"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockSelectionClearer, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.WritingFlow, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockList, {
+ className: "edit-widgets-main-block-list"
+ })
+ })
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
-
/**
* WordPress dependencies
*/
-const close_close = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const close_close = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const library_close = (close_close);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/hooks/use-widget-library-insertion-point.js
@@ -4233,7 +4380,6 @@ const useWidgetLibraryInsertionPoint = () => {
/* harmony default export */ const use_widget_library_insertion_point = (useWidgetLibraryInsertionPoint);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/secondary-sidebar/inserter-sidebar.js
-
/**
* WordPress dependencies
*/
@@ -4250,6 +4396,8 @@ const useWidgetLibraryInsertionPoint = () => {
*/
+
+
function InserterSidebar() {
const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
const {
@@ -4265,35 +4413,34 @@ function InserterSidebar() {
const TagName = !isMobileViewport ? external_wp_components_namespaceObject.VisuallyHidden : 'div';
const [inserterDialogRef, inserterDialogProps] = (0,external_wp_compose_namespaceObject.__experimentalUseDialog)({
onClose: closeInserter,
- focusOnMount: null
+ focusOnMount: true
});
const libraryRef = (0,external_wp_element_namespaceObject.useRef)();
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- libraryRef.current.focusSearch();
- }, []);
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
ref: inserterDialogRef,
...inserterDialogProps,
- className: "edit-widgets-layout__inserter-panel"
- }, (0,external_React_namespaceObject.createElement)(TagName, {
- className: "edit-widgets-layout__inserter-panel-header"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- icon: library_close,
- onClick: closeInserter,
- label: (0,external_wp_i18n_namespaceObject.__)('Close block inserter')
- })), (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-widgets-layout__inserter-panel-content"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalLibrary, {
- showInserterHelpPanel: true,
- shouldFocusBlock: isMobileViewport,
- rootClientId: rootClientId,
- __experimentalInsertionIndex: insertionIndex,
- ref: libraryRef
- })));
+ className: "edit-widgets-layout__inserter-panel",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
+ className: "edit-widgets-layout__inserter-panel-header",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: library_close,
+ onClick: closeInserter,
+ label: (0,external_wp_i18n_namespaceObject.__)('Close block inserter')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-widgets-layout__inserter-panel-content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalLibrary, {
+ showInserterHelpPanel: true,
+ shouldFocusBlock: isMobileViewport,
+ rootClientId: rootClientId,
+ __experimentalInsertionIndex: insertionIndex,
+ ref: libraryRef
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/secondary-sidebar/list-view-sidebar.js
-
/**
* WordPress dependencies
*/
@@ -4311,6 +4458,8 @@ function InserterSidebar() {
*/
+
+
function ListViewSidebar() {
const {
setIsListViewOpened
@@ -4336,27 +4485,32 @@ function ListViewSidebar() {
}
}, [closeListView]);
return (
+ /*#__PURE__*/
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
- (0,external_React_namespaceObject.createElement)("div", {
+ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: "edit-widgets-editor__list-view-panel",
- onKeyDown: closeOnEscape
- }, (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-widgets-editor__list-view-panel-header"
- }, (0,external_React_namespaceObject.createElement)("strong", null, (0,external_wp_i18n_namespaceObject.__)('List View')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- icon: close_small,
- label: (0,external_wp_i18n_namespaceObject.__)('Close'),
- onClick: closeListView
- })), (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-widgets-editor__list-view-panel-content",
- ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([focusOnMountRef, setDropZoneElement])
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalListView, {
- dropZoneElement: dropZoneElement
- })))
+ onKeyDown: closeOnEscape,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "edit-widgets-editor__list-view-panel-header",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", {
+ children: (0,external_wp_i18n_namespaceObject.__)('List View')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: close_small,
+ label: (0,external_wp_i18n_namespaceObject.__)('Close'),
+ onClick: closeListView
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-widgets-editor__list-view-panel-content",
+ ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([focusOnMountRef, setDropZoneElement]),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalListView, {
+ dropZoneElement: dropZoneElement
+ })
+ })]
+ })
);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/secondary-sidebar/index.js
-
/**
* WordPress dependencies
*/
@@ -4371,6 +4525,7 @@ function ListViewSidebar() {
*/
+
function SecondarySidebar() {
const {
isInserterOpen,
@@ -4386,16 +4541,15 @@ function SecondarySidebar() {
};
}, []);
if (isInserterOpen) {
- return (0,external_React_namespaceObject.createElement)(InserterSidebar, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InserterSidebar, {});
}
if (isListViewOpen) {
- return (0,external_React_namespaceObject.createElement)(ListViewSidebar, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ListViewSidebar, {});
}
return null;
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/layout/interface.js
-
/**
* WordPress dependencies
*/
@@ -4415,6 +4569,8 @@ function SecondarySidebar() {
+
+
const interfaceLabels = {
/* translators: accessibility text for the widgets screen top bar landmark region. */
header: (0,external_wp_i18n_namespaceObject.__)('Widgets top bar'),
@@ -4465,24 +4621,27 @@ function Interface({
}, [isInserterOpened, isListViewOpened, isHugeViewport]);
const secondarySidebarLabel = isListViewOpened ? (0,external_wp_i18n_namespaceObject.__)('List View') : (0,external_wp_i18n_namespaceObject.__)('Block Library');
const hasSecondarySidebar = isListViewOpened || isInserterOpened;
- return (0,external_React_namespaceObject.createElement)(interface_skeleton, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(interface_skeleton, {
labels: {
...interfaceLabels,
secondarySidebar: secondarySidebarLabel
},
- header: (0,external_React_namespaceObject.createElement)(header, null),
- secondarySidebar: hasSecondarySidebar && (0,external_React_namespaceObject.createElement)(SecondarySidebar, null),
- sidebar: hasSidebarEnabled && (0,external_React_namespaceObject.createElement)(complementary_area.Slot, {
+ header: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(header, {}),
+ secondarySidebar: hasSecondarySidebar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SecondarySidebar, {}),
+ sidebar: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(complementary_area.Slot, {
scope: "core/edit-widgets"
}),
- content: (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(WidgetAreasBlockEditorContent, {
- blockEditorSettings: blockEditorSettings
- })),
- footer: hasBlockBreadCrumbsEnabled && !isMobileViewport && (0,external_React_namespaceObject.createElement)("div", {
- className: "edit-widgets-layout__footer"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockBreadcrumb, {
- rootLabelText: (0,external_wp_i18n_namespaceObject.__)('Widgets')
- })),
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WidgetAreasBlockEditorContent, {
+ blockEditorSettings: blockEditorSettings
+ })
+ }),
+ footer: hasBlockBreadCrumbsEnabled && !isMobileViewport && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "edit-widgets-layout__footer",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockBreadcrumb, {
+ rootLabelText: (0,external_wp_i18n_namespaceObject.__)('Widgets')
+ })
+ }),
shortcuts: {
previous: previousShortcut,
next: nextShortcut
@@ -4543,7 +4702,6 @@ function UnsavedChangesWarning() {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/welcome-guide/index.js
-
/**
* WordPress dependencies
*/
@@ -4557,6 +4715,9 @@ function UnsavedChangesWarning() {
* Internal dependencies
*/
+
+
+
function WelcomeGuide() {
var _widgetAreas$filter$l;
const isActive = (0,external_wp_data_namespaceObject.useSelect)(select => !!select(external_wp_preferences_namespaceObject.store).get('core/edit-widgets', 'welcomeGuide'), []);
@@ -4571,67 +4732,93 @@ function WelcomeGuide() {
}
const isEntirelyBlockWidgets = widgetAreas?.every(widgetArea => widgetArea.id === 'wp_inactive_widgets' || widgetArea.widgets.every(widgetId => widgetId.startsWith('block-')));
const numWidgetAreas = (_widgetAreas$filter$l = widgetAreas?.filter(widgetArea => widgetArea.id !== 'wp_inactive_widgets').length) !== null && _widgetAreas$filter$l !== void 0 ? _widgetAreas$filter$l : 0;
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Guide, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Guide, {
className: "edit-widgets-welcome-guide",
contentLabel: (0,external_wp_i18n_namespaceObject.__)('Welcome to block Widgets'),
finishButtonText: (0,external_wp_i18n_namespaceObject.__)('Get started'),
onFinish: () => toggle('core/edit-widgets', 'welcomeGuide'),
pages: [{
- image: (0,external_React_namespaceObject.createElement)(WelcomeGuideImage, {
+ image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideImage, {
nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-canvas.svg",
animatedSrc: "https://s.w.org/images/block-editor/welcome-canvas.gif"
}),
- content: (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("h1", {
- className: "edit-widgets-welcome-guide__heading"
- }, (0,external_wp_i18n_namespaceObject.__)('Welcome to block Widgets')), isEntirelyBlockWidgets ? (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("p", {
- className: "edit-widgets-welcome-guide__text"
- }, (0,external_wp_i18n_namespaceObject.sprintf)(
- // Translators: %s: Number of block areas in the current theme.
- (0,external_wp_i18n_namespaceObject._n)('Your theme provides %s “block” area for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.', 'Your theme provides %s different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.', numWidgetAreas), numWidgetAreas))) : (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("p", {
- className: "edit-widgets-welcome-guide__text"
- }, (0,external_wp_i18n_namespaceObject.__)('You can now add any block to your site’s widget areas. Don’t worry, all of your favorite widgets still work flawlessly.')), (0,external_React_namespaceObject.createElement)("p", {
- className: "edit-widgets-welcome-guide__text"
- }, (0,external_React_namespaceObject.createElement)("strong", null, (0,external_wp_i18n_namespaceObject.__)('Want to stick with the old widgets?')), ' ', (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/plugins/classic-widgets/')
- }, (0,external_wp_i18n_namespaceObject.__)('Get the Classic Widgets plugin.')))))
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ className: "edit-widgets-welcome-guide__heading",
+ children: (0,external_wp_i18n_namespaceObject.__)('Welcome to block Widgets')
+ }), isEntirelyBlockWidgets ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-widgets-welcome-guide__text",
+ children: (0,external_wp_i18n_namespaceObject.sprintf)(
+ // Translators: %s: Number of block areas in the current theme.
+ (0,external_wp_i18n_namespaceObject._n)('Your theme provides %s “block” area for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.', 'Your theme provides %s different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.', numWidgetAreas), numWidgetAreas)
+ })
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-widgets-welcome-guide__text",
+ children: (0,external_wp_i18n_namespaceObject.__)('You can now add any block to your site’s widget areas. Don’t worry, all of your favorite widgets still work flawlessly.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("p", {
+ className: "edit-widgets-welcome-guide__text",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Want to stick with the old widgets?')
+ }), ' ', /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/plugins/classic-widgets/'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Get the Classic Widgets plugin.')
+ })]
+ })]
+ })]
+ })
}, {
- image: (0,external_React_namespaceObject.createElement)(WelcomeGuideImage, {
+ image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideImage, {
nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-editor.svg",
animatedSrc: "https://s.w.org/images/block-editor/welcome-editor.gif"
}),
- content: (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("h1", {
- className: "edit-widgets-welcome-guide__heading"
- }, (0,external_wp_i18n_namespaceObject.__)('Make each block your own')), (0,external_React_namespaceObject.createElement)("p", {
- className: "edit-widgets-welcome-guide__text"
- }, (0,external_wp_i18n_namespaceObject.__)('Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.')))
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ className: "edit-widgets-welcome-guide__heading",
+ children: (0,external_wp_i18n_namespaceObject.__)('Make each block your own')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-widgets-welcome-guide__text",
+ children: (0,external_wp_i18n_namespaceObject.__)('Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.')
+ })]
+ })
}, {
- image: (0,external_React_namespaceObject.createElement)(WelcomeGuideImage, {
+ image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideImage, {
nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-library.svg",
animatedSrc: "https://s.w.org/images/block-editor/welcome-library.gif"
}),
- content: (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("h1", {
- className: "edit-widgets-welcome-guide__heading"
- }, (0,external_wp_i18n_namespaceObject.__)('Get to know the block library')), (0,external_React_namespaceObject.createElement)("p", {
- className: "edit-widgets-welcome-guide__text"
- }, (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('All of the blocks available to you live in the block library. You’ll find it wherever you see the <InserterIconImage /> icon.'), {
- InserterIconImage: (0,external_React_namespaceObject.createElement)("img", {
- className: "edit-widgets-welcome-guide__inserter-icon",
- alt: (0,external_wp_i18n_namespaceObject.__)('inserter'),
- src: "data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"
- })
- })))
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ className: "edit-widgets-welcome-guide__heading",
+ children: (0,external_wp_i18n_namespaceObject.__)('Get to know the block library')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "edit-widgets-welcome-guide__text",
+ children: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('All of the blocks available to you live in the block library. You’ll find it wherever you see the <InserterIconImage /> icon.'), {
+ InserterIconImage: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ className: "edit-widgets-welcome-guide__inserter-icon",
+ alt: (0,external_wp_i18n_namespaceObject.__)('inserter'),
+ src: "data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"
+ })
+ })
+ })]
+ })
}, {
- image: (0,external_React_namespaceObject.createElement)(WelcomeGuideImage, {
+ image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideImage, {
nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-documentation.svg",
animatedSrc: "https://s.w.org/images/block-editor/welcome-documentation.gif"
}),
- content: (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("h1", {
- className: "edit-widgets-welcome-guide__heading"
- }, (0,external_wp_i18n_namespaceObject.__)('Learn how to use the block editor')), (0,external_React_namespaceObject.createElement)("p", {
- className: "edit-widgets-welcome-guide__text"
- }, (0,external_wp_i18n_namespaceObject.__)('New to the block editor? Want to learn more about using it? '), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/wordpress-block-editor/')
- }, (0,external_wp_i18n_namespaceObject.__)("Here's a detailed guide."))))
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ className: "edit-widgets-welcome-guide__heading",
+ children: (0,external_wp_i18n_namespaceObject.__)('Learn how to use the block editor')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("p", {
+ className: "edit-widgets-welcome-guide__text",
+ children: [(0,external_wp_i18n_namespaceObject.__)('New to the block editor? Want to learn more about using it? '), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/wordpress-block-editor/'),
+ children: (0,external_wp_i18n_namespaceObject.__)("Here's a detailed guide.")
+ })]
+ })]
+ })
}]
});
}
@@ -4639,21 +4826,21 @@ function WelcomeGuideImage({
nonAnimatedSrc,
animatedSrc
}) {
- return (0,external_React_namespaceObject.createElement)("picture", {
- className: "edit-widgets-welcome-guide__image"
- }, (0,external_React_namespaceObject.createElement)("source", {
- srcSet: nonAnimatedSrc,
- media: "(prefers-reduced-motion: reduce)"
- }), (0,external_React_namespaceObject.createElement)("img", {
- src: animatedSrc,
- width: "312",
- height: "240",
- alt: ""
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("picture", {
+ className: "edit-widgets-welcome-guide__image",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("source", {
+ srcSet: nonAnimatedSrc,
+ media: "(prefers-reduced-motion: reduce)"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: animatedSrc,
+ width: "312",
+ height: "240",
+ alt: ""
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/layout/index.js
-
/**
* WordPress dependencies
*/
@@ -4671,6 +4858,8 @@ function WelcomeGuideImage({
+
+
function Layout({
blockEditorSettings
}) {
@@ -4681,18 +4870,20 @@ function Layout({
createErrorNotice((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: plugin name */
(0,external_wp_i18n_namespaceObject.__)('The "%s" plugin has encountered an error and cannot be rendered.'), name));
}
- return (0,external_React_namespaceObject.createElement)(ErrorBoundary, null, (0,external_React_namespaceObject.createElement)(WidgetAreasBlockEditorProvider, {
- blockEditorSettings: blockEditorSettings
- }, (0,external_React_namespaceObject.createElement)(layout_interface, {
- blockEditorSettings: blockEditorSettings
- }), (0,external_React_namespaceObject.createElement)(Sidebar, null), (0,external_React_namespaceObject.createElement)(external_wp_plugins_namespaceObject.PluginArea, {
- onError: onPluginAreaError
- }), (0,external_React_namespaceObject.createElement)(UnsavedChangesWarning, null), (0,external_React_namespaceObject.createElement)(WelcomeGuide, null)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ErrorBoundary, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(WidgetAreasBlockEditorProvider, {
+ blockEditorSettings: blockEditorSettings,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(layout_interface, {
+ blockEditorSettings: blockEditorSettings
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Sidebar, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_plugins_namespaceObject.PluginArea, {
+ onError: onPluginAreaError
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(UnsavedChangesWarning, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuide, {})]
+ })
+ });
}
/* harmony default export */ const layout = (Layout);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/index.js
-
/**
* WordPress dependencies
*/
@@ -4713,6 +4904,7 @@ function Layout({
+
const disabledBlocks = ['core/more', 'core/freeform', 'core/template-part', ...(ALLOW_REUSABLE_BLOCKS ? [] : ['core/block'])];
/**
@@ -4747,7 +4939,7 @@ function initializeEditor(id, settings) {
// do this will result in errors in the default block parser.
// see: https://github.com/WordPress/gutenberg/issues/33097
(0,external_wp_blocks_namespaceObject.setFreeformContentHandlerName)('core/html');
- root.render((0,external_React_namespaceObject.createElement)(layout, {
+ root.render( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(layout, {
blockEditorSettings: settings
}));
return root;
@@ -4787,8 +4979,6 @@ const registerBlock = block => {
};
-})();
-
(window.wp = window.wp || {}).editWidgets = __webpack_exports__;
/******/ })()
; \ No newline at end of file
diff --git a/wp-includes/js/dist/edit-widgets.min.js b/wp-includes/js/dist/edit-widgets.min.js
index 12c636c..81c1445 100644
--- a/wp-includes/js/dist/edit-widgets.min.js
+++ b/wp-includes/js/dist/edit-widgets.min.js
@@ -1,7 +1,2 @@
/*! This file is auto-generated */
-(()=>{var e={5755:(e,t)=>{var r;
-/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var o=n.apply(null,r);o&&e.push(o)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var s in r)a.call(r,s)&&r[s]&&e.push(s)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()}},t={};function r(a){var n=t[a];if(void 0!==n)return n.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{"use strict";r.r(a),r.d(a,{initialize:()=>Sr,initializeEditor:()=>kr,reinitializeEditor:()=>Ar,store:()=>nt});var e={};r.r(e),r.d(e,{closeModal:()=>H,disableComplementaryArea:()=>R,enableComplementaryArea:()=>P,openModal:()=>G,pinItem:()=>O,setDefaultComplementaryArea:()=>L,setFeatureDefaults:()=>F,setFeatureValue:()=>D,toggleFeature:()=>V,unpinItem:()=>M});var t={};r.r(t),r.d(t,{getActiveComplementaryArea:()=>z,isComplementaryAreaLoading:()=>U,isFeatureActive:()=>j,isItemPinned:()=>$,isModalActive:()=>Y});var n={};r.r(n),r.d(n,{closeGeneralSidebar:()=>Re,moveBlockToWidgetArea:()=>Oe,persistStubPost:()=>Ae,saveEditedWidgetAreas:()=>Ie,saveWidgetArea:()=>Be,saveWidgetAreas:()=>Ce,setIsInserterOpened:()=>Le,setIsListViewOpened:()=>Pe,setIsWidgetAreaOpen:()=>We,setWidgetAreasOpenState:()=>Te,setWidgetIdForClientId:()=>xe});var i={};r.r(i),r.d(i,{getWidgetAreas:()=>Me,getWidgets:()=>Ve});var o={};r.r(o),r.d(o,{__experimentalGetInsertionPoint:()=>qe,canInsertBlockInWidgetArea:()=>Qe,getEditedWidgetAreas:()=>$e,getIsWidgetAreaOpen:()=>Ke,getParentWidgetAreaBlock:()=>Ue,getReferenceWidgetBlocks:()=>je,getWidget:()=>Ge,getWidgetAreaForWidgetId:()=>ze,getWidgetAreas:()=>He,getWidgets:()=>Fe,isInserterOpened:()=>Ze,isListViewOpened:()=>Je,isSavingWidgetAreas:()=>Ye});var s={};r.r(s),r.d(s,{getListViewToggleRef:()=>Xe});var c={};r.r(c),r.d(c,{metadata:()=>mt,name:()=>ut,settings:()=>gt});const l=window.React,d=window.wp.blocks,m=window.wp.data,u=window.wp.deprecated;var g=r.n(u);const p=window.wp.element,h=window.wp.blockLibrary,w=window.wp.coreData,_=window.wp.widgets,b=window.wp.preferences,E=window.wp.apiFetch;var f=r.n(E);const y=(0,m.combineReducers)({blockInserterPanel:function(e=!1,t){switch(t.type){case"SET_IS_LIST_VIEW_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return t.value}return e},listViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_INSERTER_OPENED":return!t.value&&e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen}return e},widgetAreasOpenState:function(e={},t){const{type:r}=t;switch(r){case"SET_WIDGET_AREAS_OPEN_STATE":return t.widgetAreasOpenState;case"SET_IS_WIDGET_AREA_OPEN":{const{clientId:r,isOpen:a}=t;return{...e,[r]:a}}default:return e}}}),v=window.wp.i18n,k=window.wp.notices;var S=r(5755),A=r.n(S);const I=window.wp.components,C=window.wp.primitives,B=(0,l.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(C.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),N=(0,l.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(C.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"})),x=(0,l.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(C.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"})),T=window.wp.viewport,W=(0,l.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(C.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),L=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),P=(e,t)=>({registry:r,dispatch:a})=>{if(!t)return;r.select(b.store).get(e,"isComplementaryAreaVisible")||r.dispatch(b.store).set(e,"isComplementaryAreaVisible",!0),a({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},R=e=>({registry:t})=>{t.select(b.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(b.store).set(e,"isComplementaryAreaVisible",!1)},O=(e,t)=>({registry:r})=>{if(!t)return;const a=r.select(b.store).get(e,"pinnedItems");!0!==a?.[t]&&r.dispatch(b.store).set(e,"pinnedItems",{...a,[t]:!0})},M=(e,t)=>({registry:r})=>{if(!t)return;const a=r.select(b.store).get(e,"pinnedItems");r.dispatch(b.store).set(e,"pinnedItems",{...a,[t]:!1})};function V(e,t){return function({registry:r}){g()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),r.dispatch(b.store).toggle(e,t)}}function D(e,t,r){return function({registry:a}){g()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),a.dispatch(b.store).set(e,t,!!r)}}function F(e,t){return function({registry:r}){g()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),r.dispatch(b.store).setDefaults(e,t)}}function G(e){return{type:"OPEN_MODAL",name:e}}function H(){return{type:"CLOSE_MODAL"}}const z=(0,m.createRegistrySelector)((e=>(t,r)=>{const a=e(b.store).get(r,"isComplementaryAreaVisible");if(void 0!==a)return!1===a?null:t?.complementaryAreas?.[r]})),U=(0,m.createRegistrySelector)((e=>(t,r)=>{const a=e(b.store).get(r,"isComplementaryAreaVisible"),n=t?.complementaryAreas?.[r];return a&&void 0===n})),$=(0,m.createRegistrySelector)((e=>(t,r,a)=>{var n;const i=e(b.store).get(r,"pinnedItems");return null===(n=i?.[a])||void 0===n||n})),j=(0,m.createRegistrySelector)((e=>(t,r,a)=>(g()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(b.store).get(r,a))));function Y(e,t){return e.activeModal===t}const K=(0,m.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:r,area:a}=t;return e[r]?e:{...e,[r]:a}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:r,area:a}=t;return{...e,[r]:a}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}}),Z=(0,m.createReduxStore)("core/interface",{reducer:K,actions:e,selectors:t});(0,m.register)(Z);const q=window.wp.plugins,Q=(0,q.withPluginContext)(((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`})));const J=Q((function({as:e=I.Button,scope:t,identifier:r,icon:a,selectedIcon:n,name:i,...o}){const s=e,c=(0,m.useSelect)((e=>e(Z).getActiveComplementaryArea(t)===r),[r,t]),{enableComplementaryArea:d,disableComplementaryArea:u}=(0,m.useDispatch)(Z);return(0,l.createElement)(s,{icon:n&&c?n:a,"aria-controls":r.replace("/",":"),onClick:()=>{c?u(t):d(t,r)},...o})})),X=({smallScreenTitle:e,children:t,className:r,toggleButtonProps:a})=>{const n=(0,l.createElement)(J,{icon:W,...a});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},e&&(0,l.createElement)("span",{className:"interface-complementary-area-header__small-title"},e),n),(0,l.createElement)("div",{className:A()("components-panel__header","interface-complementary-area-header",r),tabIndex:-1},t,n))},ee=()=>{};function te({name:e,as:t=I.Button,onClick:r,...a}){return(0,l.createElement)(I.Fill,{name:e},(({onClick:e})=>(0,l.createElement)(t,{onClick:r||e?(...t)=>{(r||ee)(...t),(e||ee)(...t)}:void 0,...a})))}te.Slot=function({name:e,as:t=I.ButtonGroup,fillProps:r={},bubblesVirtually:a,...n}){return(0,l.createElement)(I.Slot,{name:e,bubblesVirtually:a,fillProps:r},(e=>{if(!p.Children.toArray(e).length)return null;const r=[];p.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&r.push(t)}));const a=p.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&r.includes(e.props.__unstableTarget)?null:e));return(0,l.createElement)(t,{...n},a)}))};const re=te,ae=({__unstableExplicitMenuItem:e,__unstableTarget:t,...r})=>(0,l.createElement)(I.MenuItem,{...r});function ne({scope:e,target:t,__unstableExplicitMenuItem:r,...a}){return(0,l.createElement)(J,{as:a=>(0,l.createElement)(re,{__unstableExplicitMenuItem:r,__unstableTarget:`${e}/${t}`,as:ae,name:`${e}/plugin-more-menu`,...a}),role:"menuitemcheckbox",selectedIcon:B,name:t,scope:e,...a})}function ie({scope:e,...t}){return(0,l.createElement)(I.Fill,{name:`PinnedItems/${e}`,...t})}ie.Slot=function({scope:e,className:t,...r}){return(0,l.createElement)(I.Slot,{name:`PinnedItems/${e}`,...r},(e=>e?.length>0&&(0,l.createElement)("div",{className:A()(t,"interface-pinned-items")},e)))};const oe=ie;function se({scope:e,children:t,className:r,id:a}){return(0,l.createElement)(I.Fill,{name:`ComplementaryArea/${e}`},(0,l.createElement)("div",{id:a,className:r},t))}const ce=Q((function({children:e,className:t,closeLabel:r=(0,v.__)("Close plugin"),identifier:a,header:n,headerClassName:i,icon:o,isPinnable:s=!0,panelClassName:c,scope:d,name:u,smallScreenTitle:g,title:h,toggleShortcut:w,isActiveByDefault:_}){const{isLoading:E,isActive:f,isPinned:y,activeArea:k,isSmall:S,isLarge:C,showIconLabels:W}=(0,m.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:r,isItemPinned:n}=e(Z),{get:i}=e(b.store),o=t(d);return{isLoading:r(d),isActive:o===a,isPinned:n(d,a),activeArea:o,isSmall:e(T.store).isViewportMatch("< medium"),isLarge:e(T.store).isViewportMatch("large"),showIconLabels:i("core","showIconLabels")}}),[a,d]);!function(e,t,r,a,n){const i=(0,p.useRef)(!1),o=(0,p.useRef)(!1),{enableComplementaryArea:s,disableComplementaryArea:c}=(0,m.useDispatch)(Z);(0,p.useEffect)((()=>{a&&n&&!i.current?(c(e),o.current=!0):o.current&&!n&&i.current?(o.current=!1,s(e,t)):o.current&&r&&r!==t&&(o.current=!1),n!==i.current&&(i.current=n)}),[a,n,e,t,r,c,s])}(d,a,k,f,S);const{enableComplementaryArea:L,disableComplementaryArea:P,pinItem:R,unpinItem:O}=(0,m.useDispatch)(Z);return(0,p.useEffect)((()=>{_&&void 0===k&&!S?L(d,a):void 0===k&&S&&P(d,a)}),[k,_,d,a,S,L,P]),(0,l.createElement)(l.Fragment,null,s&&(0,l.createElement)(oe,{scope:d},y&&(0,l.createElement)(J,{scope:d,identifier:a,isPressed:f&&(!W||C),"aria-expanded":f,"aria-disabled":E,label:h,icon:W?B:o,showTooltip:!W,variant:W?"tertiary":void 0,size:"compact"})),u&&s&&(0,l.createElement)(ne,{target:u,scope:d,icon:o},h),f&&(0,l.createElement)(se,{className:A()("interface-complementary-area",t),scope:d,id:a.replace("/",":")},(0,l.createElement)(X,{className:i,closeLabel:r,onClose:()=>P(d),smallScreenTitle:g,toggleButtonProps:{label:r,shortcut:w,scope:d,identifier:a}},n||(0,l.createElement)(l.Fragment,null,(0,l.createElement)("strong",null,h),s&&(0,l.createElement)(I.Button,{className:"interface-complementary-area__pin-unpin-item",icon:y?N:x,label:y?(0,v.__)("Unpin from toolbar"):(0,v.__)("Pin to toolbar"),onClick:()=>(y?O:R)(d,a),isPressed:y,"aria-expanded":y}))),(0,l.createElement)(I.Panel,{className:c},e)))}));ce.Slot=function({scope:e,...t}){return(0,l.createElement)(I.Slot,{name:`ComplementaryArea/${e}`,...t})};const le=ce,de=window.wp.compose;function me({children:e,className:t,ariaLabel:r,as:a="div",...n}){return(0,l.createElement)(a,{className:A()("interface-navigable-region",t),"aria-label":r,role:"region",tabIndex:"-1",...n},e)}const ue={hidden:{opacity:0},hover:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},distractionFreeInactive:{opacity:1,transition:{delay:0}}};const ge=(0,p.forwardRef)((function({isDistractionFree:e,footer:t,header:r,editorNotices:a,sidebar:n,secondarySidebar:i,notices:o,content:s,actions:c,labels:d,className:m,enableRegionNavigation:u=!0,shortcuts:g},h){const w=(0,I.__unstableUseNavigateRegions)(g);!function(e){(0,p.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("interface-interface-skeleton__html-container");const _={...{header:(0,v._x)("Header","header landmark area"),body:(0,v.__)("Content"),secondarySidebar:(0,v.__)("Block Library"),sidebar:(0,v.__)("Settings"),actions:(0,v.__)("Publish"),footer:(0,v.__)("Footer")},...d};return(0,l.createElement)("div",{...u?w:{},ref:(0,de.useMergeRefs)([h,u?w.ref:void 0]),className:A()(m,"interface-interface-skeleton",w.className,!!t&&"has-footer")},(0,l.createElement)("div",{className:"interface-interface-skeleton__editor"},!!r&&(0,l.createElement)(me,{as:I.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":_.header,initial:e?"hidden":"distractionFreeInactive",whileHover:e?"hover":"distractionFreeInactive",animate:e?"hidden":"distractionFreeInactive",variants:ue,transition:e?{type:"tween",delay:.8}:void 0},r),e&&(0,l.createElement)("div",{className:"interface-interface-skeleton__header"},a),(0,l.createElement)("div",{className:"interface-interface-skeleton__body"},!!i&&(0,l.createElement)(me,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:_.secondarySidebar},i),!!o&&(0,l.createElement)("div",{className:"interface-interface-skeleton__notices"},o),(0,l.createElement)(me,{className:"interface-interface-skeleton__content",ariaLabel:_.body},s),!!n&&(0,l.createElement)(me,{className:"interface-interface-skeleton__sidebar",ariaLabel:_.sidebar},n),!!c&&(0,l.createElement)(me,{className:"interface-interface-skeleton__actions",ariaLabel:_.actions},c))),!!t&&(0,l.createElement)(me,{className:"interface-interface-skeleton__footer",ariaLabel:_.footer},t))})),pe=(0,l.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(C.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function he({as:e=I.DropdownMenu,className:t,label:r=(0,v.__)("Options"),popoverProps:a,toggleProps:n,children:i}){return(0,l.createElement)(e,{className:A()("interface-more-menu-dropdown",t),icon:pe,label:r,popoverProps:{placement:"bottom-end",...a,className:A()("interface-more-menu-dropdown__content",a?.className)},toggleProps:{tooltipPosition:"bottom",...n,size:"compact"}},(e=>i(e)))}const we=window.wp.blockEditor;function _e(e){if("block"===e.id_base){const t=(0,d.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});return t.length?(0,_.addWidgetIdToBlock)(t[0],e.id):(0,_.addWidgetIdToBlock)((0,d.createBlock)("core/paragraph",{},[]),e.id)}let t;return t=e._embedded.about[0].is_multi?{idBase:e.id_base,instance:e.instance}:{id:e.id},(0,_.addWidgetIdToBlock)((0,d.createBlock)("core/legacy-widget",t,[]),e.id)}function be(e,t={}){let r;var a,n,i;"core/legacy-widget"===e.name&&(e.attributes.id||e.attributes.instance)?r={...t,id:null!==(a=e.attributes.id)&&void 0!==a?a:t.id,id_base:null!==(n=e.attributes.idBase)&&void 0!==n?n:t.id_base,instance:null!==(i=e.attributes.instance)&&void 0!==i?i:t.instance}:r={...t,id_base:"block",instance:{raw:{content:(0,d.serialize)(e)}}};return delete r.rendered,delete r.rendered_form,r}const Ee="root",fe="sidebar",ye="postType",ve=e=>`widget-area-${e}`,ke=()=>"widget-areas";const Se="core/edit-widgets",Ae=(e,t)=>({registry:r})=>{const a=((e,t)=>({id:e,slug:e,status:"draft",type:"page",blocks:t,meta:{widgetAreaId:e}}))(e,t);return r.dispatch(w.store).receiveEntityRecords(Ee,ye,a,{id:a.id},!1),a},Ie=()=>async({select:e,dispatch:t,registry:r})=>{const a=e.getEditedWidgetAreas();if(a?.length)try{await t.saveWidgetAreas(a),r.dispatch(k.store).createSuccessNotice((0,v.__)("Widgets saved."),{type:"snackbar"})}catch(e){r.dispatch(k.store).createErrorNotice((0,v.sprintf)((0,v.__)("There was an error. %s"),e.message),{type:"snackbar"})}},Ce=e=>async({dispatch:t,registry:r})=>{try{for(const r of e)await t.saveWidgetArea(r.id)}finally{await r.dispatch(w.store).finishResolution("getEntityRecord",Ee,fe,{per_page:-1})}},Be=e=>async({dispatch:t,select:r,registry:a})=>{const n=r.getWidgets(),i=a.select(w.store).getEditedEntityRecord(Ee,ye,ve(e)),o=Object.values(n).filter((({sidebar:t})=>t===e)),s=[],c=i.blocks.filter((e=>{const{id:t}=e.attributes;if("core/legacy-widget"===e.name&&t){if(s.includes(t))return!1;s.push(t)}return!0})),l=[];for(const e of o){r.getWidgetAreaForWidgetId(e.id)||l.push(e)}const d=[],m=[],u=[];for(let t=0;t<c.length;t++){const r=c[t],i=(0,_.getWidgetIdFromBlock)(r),o=n[i],s=be(r,o);if(u.push(i),o){a.dispatch(w.store).editEntityRecord("root","widget",i,{...s,sidebar:e},{undoIgnore:!0});if(!a.select(w.store).hasEditsForEntityRecord("root","widget",i))continue;m.push((({saveEditedEntityRecord:e})=>e("root","widget",i)))}else m.push((({saveEntityRecord:t})=>t("root","widget",{...s,sidebar:e})));d.push({block:r,position:t,clientId:r.clientId})}for(const e of l)m.push((({deleteEntityRecord:t})=>t("root","widget",e.id,{force:!0})));const g=(await a.dispatch(w.store).__experimentalBatch(m)).filter((e=>!e.hasOwnProperty("deleted"))),p=[];for(let e=0;e<g.length;e++){const t=g[e],{block:r,position:n}=d[e];i.blocks[n].attributes.__internalWidgetId=t.id;a.select(w.store).getLastEntitySaveError("root","widget",t.id)&&p.push(r.attributes?.name||r?.name),u[n]||(u[n]=t.id)}if(p.length)throw new Error((0,v.sprintf)((0,v.__)("Could not save the following widgets: %s."),p.join(", ")));a.dispatch(w.store).editEntityRecord(Ee,fe,e,{widgets:u},{undoIgnore:!0}),t(Ne(e)),a.dispatch(w.store).receiveEntityRecords(Ee,ye,i,void 0)},Ne=e=>({registry:t})=>{t.dispatch(w.store).saveEditedEntityRecord(Ee,fe,e,{throwOnError:!0})};function xe(e,t){return{type:"SET_WIDGET_ID_FOR_CLIENT_ID",clientId:e,widgetId:t}}function Te(e){return{type:"SET_WIDGET_AREAS_OPEN_STATE",widgetAreasOpenState:e}}function We(e,t){return{type:"SET_IS_WIDGET_AREA_OPEN",clientId:e,isOpen:t}}function Le(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function Pe(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}const Re=()=>({registry:e})=>{e.dispatch(Z).disableComplementaryArea(Se)},Oe=(e,t)=>async({dispatch:r,select:a,registry:n})=>{const i=n.select(we.store).getBlockRootClientId(e),o=n.select(we.store).getBlocks().find((({attributes:e})=>e.id===t)).clientId,s=n.select(we.store).getBlockOrder(o).length;a.getIsWidgetAreaOpen(o)||r.setIsWidgetAreaOpen(o,!0),n.dispatch(we.store).moveBlocksToPosition([e],i,o,s)},Me=()=>async({dispatch:e,registry:t})=>{const r={per_page:-1},a=[],n=(await t.resolveSelect(w.store).getEntityRecords(Ee,fe,r)).sort(((e,t)=>"wp_inactive_widgets"===e.id?1:"wp_inactive_widgets"===t.id?-1:0));for(const t of n)a.push((0,d.createBlock)("core/widget-area",{id:t.id,name:t.name})),t.widgets.length||e(Ae(ve(t.id),[]));const i={};a.forEach(((e,t)=>{i[e.clientId]=0===t})),e(Te(i)),e(Ae(ke(),a))},Ve=()=>async({dispatch:e,registry:t})=>{const r={per_page:-1,_embed:"about"},a=await t.resolveSelect(w.store).getEntityRecords("root","widget",r),n={};for(const e of a){const t=_e(e);n[e.sidebar]=n[e.sidebar]||[],n[e.sidebar].push(t)}for(const t in n)n.hasOwnProperty(t)&&e(Ae(ve(t),n[t]))},De={rootClientId:void 0,insertionIndex:void 0},Fe=(0,m.createRegistrySelector)((e=>()=>{const t=e(w.store).getEntityRecords("root","widget",{per_page:-1,_embed:"about"});return t?.reduce(((e,t)=>({...e,[t.id]:t})),{})||{}})),Ge=(0,m.createRegistrySelector)((e=>(t,r)=>e(Se).getWidgets()[r])),He=(0,m.createRegistrySelector)((e=>()=>{const t={per_page:-1};return e(w.store).getEntityRecords(Ee,fe,t)})),ze=(0,m.createRegistrySelector)((e=>(t,r)=>e(Se).getWidgetAreas().find((t=>e(w.store).getEditedEntityRecord(Ee,ye,ve(t.id)).blocks.map((e=>(0,_.getWidgetIdFromBlock)(e))).includes(r))))),Ue=(0,m.createRegistrySelector)((e=>(t,r)=>{const{getBlock:a,getBlockName:n,getBlockParents:i}=e(we.store);return a(i(r).find((e=>"core/widget-area"===n(e))))})),$e=(0,m.createRegistrySelector)((e=>(t,r)=>{let a=e(Se).getWidgetAreas();return a?(r&&(a=a.filter((({id:e})=>r.includes(e)))),a.filter((({id:t})=>e(w.store).hasEditsForEntityRecord(Ee,ye,ve(t)))).map((({id:t})=>e(w.store).getEditedEntityRecord(Ee,fe,t)))):[]})),je=(0,m.createRegistrySelector)((e=>(t,r=null)=>{const a=[],n=e(Se).getWidgetAreas();for(const t of n){const n=e(w.store).getEditedEntityRecord(Ee,ye,ve(t.id));for(const e of n.blocks)"core/legacy-widget"!==e.name||r&&e.attributes?.referenceWidgetName!==r||a.push(e)}return a})),Ye=(0,m.createRegistrySelector)((e=>()=>{const t=e(Se).getWidgetAreas()?.map((({id:e})=>e));if(!t)return!1;for(const r of t){if(e(w.store).isSavingEntityRecord(Ee,fe,r))return!0}const r=[...Object.keys(e(Se).getWidgets()),void 0];for(const t of r){if(e(w.store).isSavingEntityRecord("root","widget",t))return!0}return!1})),Ke=(e,t)=>{const{widgetAreasOpenState:r}=e;return!!r[t]};function Ze(e){return!!e.blockInserterPanel}function qe(e){return"boolean"==typeof e.blockInserterPanel?De:e.blockInserterPanel}const Qe=(0,m.createRegistrySelector)((e=>(t,r)=>{const a=e(we.store).getBlocks(),[n]=a;return e(we.store).canInsertBlockType(r,n.clientId)}));function Je(e){return e.listViewPanel}function Xe(e){return e.listViewToggleRef}const et=window.wp.privateApis,{lock:tt,unlock:rt}=(0,et.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/edit-widgets"),at={reducer:y,selectors:o,resolvers:i,actions:n},nt=(0,m.createReduxStore)(Se,at);(0,m.register)(nt),f().use((function(e,t){return 0===e.path?.indexOf("/wp/v2/types/widget-area")?Promise.resolve({}):t(e)})),rt(nt).registerPrivateSelectors(s);const it=window.wp.hooks,ot=(0,de.createHigherOrderComponent)((e=>t=>{const{clientId:r,name:a}=t,{widgetAreas:n,currentWidgetAreaId:i,canInsertBlockInWidgetArea:o}=(0,m.useSelect)((e=>{if("core/widget-area"===a)return{};const t=e(nt),n=t.getParentWidgetAreaBlock(r);return{widgetAreas:t.getWidgetAreas(),currentWidgetAreaId:n?.attributes?.id,canInsertBlockInWidgetArea:t.canInsertBlockInWidgetArea(a)}}),[r,a]),{moveBlockToWidgetArea:s}=(0,m.useDispatch)(nt),c="core/widget-area"!==a&&n?.length>1&&o;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{...t}),c&&(0,l.createElement)(we.BlockControls,null,(0,l.createElement)(_.MoveToWidgetArea,{widgetAreas:n,currentWidgetAreaId:i,onSelect:e=>{s(t.clientId,e)}})))}),"withMoveToWidgetAreaToolbarItem");(0,it.addFilter)("editor.BlockEdit","core/edit-widgets/block-edit",ot);const st=window.wp.mediaUtils;(0,it.addFilter)("editor.MediaUpload","core/edit-widgets/replace-media-upload",(()=>st.MediaUpload));const ct=e=>{const[t,r]=(0,p.useState)(!1);return(0,p.useEffect)((()=>{const{ownerDocument:t}=e.current;function a(e){i(e)}function n(){r(!1)}function i(t){e.current.contains(t.target)?r(!0):r(!1)}return t.addEventListener("dragstart",a),t.addEventListener("dragend",n),t.addEventListener("dragenter",i),()=>{t.removeEventListener("dragstart",a),t.removeEventListener("dragend",n),t.removeEventListener("dragenter",i)}}),[]),t};function lt({id:e}){const[t,r,a]=(0,w.useEntityBlockEditor)("root","postType"),n=(0,p.useRef)(),i=ct(n),o=(0,we.useInnerBlocksProps)({ref:n},{value:t,onInput:r,onChange:a,templateLock:!1,renderAppender:we.InnerBlocks.ButtonBlockAppender});return(0,l.createElement)("div",{"data-widget-area-id":e,className:A()("wp-block-widget-area__inner-blocks block-editor-inner-blocks editor-styles-wrapper",{"wp-block-widget-area__highlight-drop-zone":i})},(0,l.createElement)("div",{...o}))}const dt=e=>{const[t,r]=(0,p.useState)(!1);return(0,p.useEffect)((()=>{const{ownerDocument:t}=e.current;function a(){r(!0)}function n(){r(!1)}return t.addEventListener("dragstart",a),t.addEventListener("dragend",n),()=>{t.removeEventListener("dragstart",a),t.removeEventListener("dragend",n)}}),[]),t},mt={$schema:"https://schemas.wp.org/trunk/block.json",name:"core/widget-area",category:"widgets",attributes:{id:{type:"string"},name:{type:"string"}},supports:{html:!1,inserter:!1,customClassName:!1,reusable:!1,__experimentalToolbar:!1,__experimentalParentSelector:!1,__experimentalDisableBlockOverlay:!0},editorStyle:"wp-block-widget-area-editor",style:"wp-block-widget-area"},{name:ut}=mt,gt={title:(0,v.__)("Widget Area"),description:(0,v.__)("A widget area container."),__experimentalLabel:({name:e})=>e,edit:function({clientId:e,className:t,attributes:{id:r,name:a}}){const n=(0,m.useSelect)((t=>t(nt).getIsWidgetAreaOpen(e)),[e]),{setIsWidgetAreaOpen:i}=(0,m.useDispatch)(nt),o=(0,p.useRef)(),s=(0,p.useCallback)((t=>i(e,t)),[e]),c=dt(o),d=ct(o),[u,g]=(0,p.useState)(!1);return(0,p.useEffect)((()=>{c?d&&!n?(s(!0),g(!0)):!d&&n&&u&&s(!1):g(!1)}),[n,c,d,u]),(0,l.createElement)(I.Panel,{className:t,ref:o},(0,l.createElement)(I.PanelBody,{title:a,opened:n,onToggle:()=>{i(e,!n)},scrollAfterOpen:!c},(({opened:e})=>(0,l.createElement)(I.__unstableDisclosureContent,{className:"wp-block-widget-area__panel-body-content",visible:e},(0,l.createElement)(w.EntityProvider,{kind:"root",type:"postType",id:`widget-area-${r}`},(0,l.createElement)(lt,{id:r}))))))}};function pt({text:e,children:t}){const r=(0,de.useCopyToClipboard)(e);return(0,l.createElement)(I.Button,{variant:"secondary",ref:r},t)}function ht({message:e,error:t}){const r=[(0,l.createElement)(pt,{key:"copy-error",text:t.stack},(0,v.__)("Copy Error"))];return(0,l.createElement)(we.Warning,{className:"edit-widgets-error-boundary",actions:r},e)}class wt extends p.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){(0,it.doAction)("editor.ErrorBoundary.errorLogged",e)}static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error?(0,l.createElement)(ht,{message:(0,v.__)("The editor has encountered an unexpected error."),error:this.state.error}):this.props.children}}const _t=window.wp.patterns,bt=window.wp.keyboardShortcuts,Et=window.wp.keycodes;function ft(){const{redo:e,undo:t}=(0,m.useDispatch)(w.store),{saveEditedWidgetAreas:r}=(0,m.useDispatch)(nt),{replaceBlocks:a}=(0,m.useDispatch)(we.store),{getBlockName:n,getSelectedBlockClientId:i,getBlockAttributes:o}=(0,m.useSelect)(we.store),s=(e,t)=>{e.preventDefault();const r=0===t?"core/paragraph":"core/heading",s=i();if(null===s)return;const c=n(s);if("core/paragraph"!==c&&"core/heading"!==c)return;const l=o(s),m="core/paragraph"===c?"align":"textAlign",u="core/paragraph"===r?"align":"textAlign";a(s,(0,d.createBlock)(r,{level:t,content:l.content,[u]:l[m]}))};return(0,bt.useShortcut)("core/edit-widgets/undo",(e=>{t(),e.preventDefault()})),(0,bt.useShortcut)("core/edit-widgets/redo",(t=>{e(),t.preventDefault()})),(0,bt.useShortcut)("core/edit-widgets/save",(e=>{e.preventDefault(),r()})),(0,bt.useShortcut)("core/edit-widgets/transform-heading-to-paragraph",(e=>s(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,bt.useShortcut)(`core/edit-widgets/transform-paragraph-to-heading-${e}`,(t=>s(t,e)))})),null}ft.Register=function(){const{registerShortcut:e}=(0,m.useDispatch)(bt.store);return(0,p.useEffect)((()=>{e({name:"core/edit-widgets/undo",category:"global",description:(0,v.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/edit-widgets/redo",category:"global",description:(0,v.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,Et.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/edit-widgets/save",category:"global",description:(0,v.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/edit-widgets/keyboard-shortcuts",category:"main",description:(0,v.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),e({name:"core/edit-widgets/next-region",category:"global",description:(0,v.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/edit-widgets/previous-region",category:"global",description:(0,v.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]}),e({name:"core/edit-widgets/transform-heading-to-paragraph",category:"block-library",description:(0,v.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"}}),[1,2,3,4,5,6].forEach((t=>{e({name:`core/edit-widgets/transform-paragraph-to-heading-${t}`,category:"block-library",description:(0,v.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${t}`}})}))}),[e]),null};const yt=ft,vt=()=>(0,m.useSelect)((e=>{const{getBlockSelectionEnd:t,getBlockName:r}=e(we.store),a=t();if("core/widget-area"===r(a))return a;const{getParentWidgetAreaBlock:n}=e(nt),i=n(a),o=i?.clientId;if(o)return o;const{getEntityRecord:s}=e(w.store),c=s(Ee,ye,ke());return c?.blocks[0]?.clientId}),[]),kt=!1,{ExperimentalBlockEditorProvider:St}=rt(we.privateApis),{PatternsMenuItems:At}=rt(_t.privateApis);function It({blockEditorSettings:e,children:t,...r}){const a=(0,w.useResourcePermissions)("media"),n=(0,de.useViewportMatch)("medium"),{reusableBlocks:i,isFixedToolbarActive:o,keepCaretInsideBlock:s,pageOnFront:c,pageForPosts:d}=(0,m.useSelect)((e=>{const{canUser:t,getEntityRecord:r,getEntityRecords:a}=e(w.store),n=t("read","settings")?r("root","site"):void 0;return{widgetAreas:e(nt).getWidgetAreas(),widgets:e(nt).getWidgets(),reusableBlocks:kt?a("postType","wp_block"):[],isFixedToolbarActive:!!e(b.store).get("core/edit-widgets","fixedToolbar"),keepCaretInsideBlock:!!e(b.store).get("core/edit-widgets","keepCaretInsideBlock"),pageOnFront:n?.page_on_front,pageForPosts:n?.page_for_posts}}),[]),{setIsInserterOpened:u}=(0,m.useDispatch)(nt),g=(0,p.useMemo)((()=>{let t;return a.canCreate&&(t=({onError:t,...r})=>{(0,st.uploadMedia)({wpAllowedMimeTypes:e.allowedMimeTypes,onError:({message:e})=>t(e),...r})}),{...e,__experimentalReusableBlocks:i,hasFixedToolbar:o||!n,keepCaretInsideBlock:s,mediaUpload:t,templateLock:"all",__experimentalSetIsInserterOpened:u,pageOnFront:c,pageForPosts:d}}),[e,o,n,s,a.canCreate,i,u,c,d]),h=vt(),[_,E,f]=(0,w.useEntityBlockEditor)(Ee,ye,{id:ke()});return(0,l.createElement)(I.SlotFillProvider,null,(0,l.createElement)(yt.Register,null),(0,l.createElement)(St,{value:_,onInput:E,onChange:f,settings:g,useSubRegistry:!1,...r},t,(0,l.createElement)(At,{rootClientId:h})))}const Ct=(0,l.createElement)(C.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(C.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"})),Bt=(0,l.createElement)(C.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(C.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"})),Nt=(0,l.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(C.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"})),xt=window.wp.url,Tt=window.wp.dom;function Wt({selectedWidgetAreaId:e}){const t=(0,m.useSelect)((e=>e(nt).getWidgetAreas()),[]),r=(0,p.useMemo)((()=>e&&t?.find((t=>t.id===e))),[e,t]);let a;return a=r?"wp_inactive_widgets"===e?(0,v.__)("Blocks in this Widget Area will not be displayed in your site."):r.description:(0,v.__)("Widget Areas are global parts in your site’s layout that can accept blocks. These vary by theme, but are typically parts like your Sidebar or Footer."),(0,l.createElement)("div",{className:"edit-widgets-widget-areas"},(0,l.createElement)("div",{className:"edit-widgets-widget-areas__top-container"},(0,l.createElement)(we.BlockIcon,{icon:Nt}),(0,l.createElement)("div",null,(0,l.createElement)("p",{dangerouslySetInnerHTML:{__html:(0,Tt.safeHTML)(a)}}),0===t?.length&&(0,l.createElement)("p",null,(0,v.__)("Your theme does not contain any Widget Areas.")),!r&&(0,l.createElement)(I.Button,{href:(0,xt.addQueryArgs)("customize.php",{"autofocus[panel]":"widgets",return:window.location.pathname}),variant:"tertiary"},(0,v.__)("Manage with live preview")))))}const Lt=p.Platform.select({web:!0,native:!1}),Pt="edit-widgets/block-inspector",Rt="edit-widgets/block-areas",{Tabs:Ot}=rt(I.privateApis);function Mt({selectedWidgetAreaBlock:e}){return(0,l.createElement)(Ot.TabList,null,(0,l.createElement)(Ot.Tab,{tabId:Rt},e?e.attributes.name:(0,v.__)("Widget Areas")),(0,l.createElement)(Ot.Tab,{tabId:Pt},(0,v.__)("Block")))}function Vt({hasSelectedNonAreaBlock:e,currentArea:t,isGeneralSidebarOpen:r,selectedWidgetAreaBlock:a}){const{enableComplementaryArea:n}=(0,m.useDispatch)(Z);(0,p.useEffect)((()=>{e&&t===Rt&&r&&n("core/edit-widgets",Pt),!e&&t===Pt&&r&&n("core/edit-widgets",Rt)}),[e,n]);const i=(0,p.useContext)(Ot.Context);return(0,l.createElement)(le,{className:"edit-widgets-sidebar",header:(0,l.createElement)(Ot.Context.Provider,{value:i},(0,l.createElement)(Mt,{selectedWidgetAreaBlock:a})),headerClassName:"edit-widgets-sidebar__panel-tabs",title:(0,v.__)("Settings"),closeLabel:(0,v.__)("Close Settings"),scope:"core/edit-widgets",identifier:t,icon:(0,v.isRTL)()?Ct:Bt,isActiveByDefault:Lt},(0,l.createElement)(Ot.Context.Provider,{value:i},(0,l.createElement)(Ot.TabPanel,{tabId:Rt,focusable:!1},(0,l.createElement)(Wt,{selectedWidgetAreaId:a?.attributes.id})),(0,l.createElement)(Ot.TabPanel,{tabId:Pt,focusable:!1},e?(0,l.createElement)(we.BlockInspector,null):(0,l.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},(0,v.__)("No block selected.")))))}function Dt(){const{currentArea:e,hasSelectedNonAreaBlock:t,isGeneralSidebarOpen:r,selectedWidgetAreaBlock:a}=(0,m.useSelect)((e=>{const{getSelectedBlock:t,getBlock:r,getBlockParentsByBlockName:a}=e(we.store),{getActiveComplementaryArea:n}=e(Z),i=t(),o=n(nt.name);let s,c=o;return c||(c=i?Pt:Rt),i&&(s="core/widget-area"===i.name?i:r(a(i.clientId,"core/widget-area")[0])),{currentArea:c,hasSelectedNonAreaBlock:!(!i||"core/widget-area"===i.name),isGeneralSidebarOpen:!!o,selectedWidgetAreaBlock:s}}),[]),{enableComplementaryArea:n}=(0,m.useDispatch)(Z),i=(0,p.useCallback)((e=>{e&&n(nt.name,e)}),[n]);return(0,l.createElement)(Ot,{selectedTabId:r?e:null,onSelect:i,selectOnMove:!1},(0,l.createElement)(Vt,{hasSelectedNonAreaBlock:t,currentArea:e,isGeneralSidebarOpen:r,selectedWidgetAreaBlock:a}))}const Ft=(0,l.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(C.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})),Gt=(0,l.createElement)(C.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(C.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})),Ht=(0,l.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(C.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"})),zt=(0,l.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(C.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));const Ut=(0,p.forwardRef)((function(e,t){const r=(0,m.useSelect)((e=>e(w.store).hasUndo()),[]),{undo:a}=(0,m.useDispatch)(w.store);return(0,l.createElement)(I.Button,{...e,ref:t,icon:(0,v.isRTL)()?zt:Ht,label:(0,v.__)("Undo"),shortcut:Et.displayShortcut.primary("z"),"aria-disabled":!r,onClick:r?a:void 0})}));const $t=(0,p.forwardRef)((function(e,t){const r=(0,Et.isAppleOS)()?Et.displayShortcut.primaryShift("z"):Et.displayShortcut.primary("y"),a=(0,m.useSelect)((e=>e(w.store).hasRedo()),[]),{redo:n}=(0,m.useDispatch)(w.store);return(0,l.createElement)(I.Button,{...e,ref:t,icon:(0,v.isRTL)()?Ht:zt,label:(0,v.__)("Redo"),shortcut:r,"aria-disabled":!a,onClick:a?n:void 0})})),{useCanBlockToolbarBeFocused:jt}=rt(we.privateApis);const Yt=function(){const e=(0,de.useViewportMatch)("medium"),t=(0,p.useRef)(),r=vt(),a=(0,m.useSelect)((e=>e(nt).getIsWidgetAreaOpen(r)),[r]),{isInserterOpen:n,isListViewOpen:i,listViewToggleRef:o}=(0,m.useSelect)((e=>{const{isInserterOpened:t,isListViewOpened:r,getListViewToggleRef:a}=rt(e(nt));return{isInserterOpen:t(),isListViewOpen:r(),listViewToggleRef:a()}}),[]),{setIsWidgetAreaOpen:s,setIsInserterOpened:c,setIsListViewOpened:d}=(0,m.useDispatch)(nt),{selectBlock:u}=(0,m.useDispatch)(we.store),g=(0,p.useCallback)((()=>d(!i)),[d,i]),h=jt();return(0,l.createElement)(we.NavigableToolbar,{className:"edit-widgets-header-toolbar","aria-label":(0,v.__)("Document tools"),shouldUseKeyboardFocusShortcut:!h,variant:"unstyled"},(0,l.createElement)(I.ToolbarItem,{ref:t,as:I.Button,className:"edit-widgets-header-toolbar__inserter-toggle",variant:"primary",isPressed:n,onMouseDown:e=>{e.preventDefault()},onClick:()=>{n?c(!1):(a||(u(r),s(r,!0)),window.requestAnimationFrame((()=>c(!0))))},icon:Ft,label:(0,v._x)("Toggle block inserter","Generic label for block inserter button")}),e&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(I.ToolbarItem,{as:Ut}),(0,l.createElement)(I.ToolbarItem,{as:$t}),(0,l.createElement)(I.ToolbarItem,{as:I.Button,className:"edit-widgets-header-toolbar__list-view-toggle",icon:Gt,isPressed:i,label:(0,v.__)("List View"),onClick:g,ref:o})))};const Kt=function(){const{hasEditedWidgetAreaIds:e,isSaving:t}=(0,m.useSelect)((e=>{const{getEditedWidgetAreas:t,isSavingWidgetAreas:r}=e(nt);return{hasEditedWidgetAreaIds:t()?.length>0,isSaving:r()}}),[]),{saveEditedWidgetAreas:r}=(0,m.useDispatch)(nt),a=t||!e;return(0,l.createElement)(I.Button,{variant:"primary",isBusy:t,"aria-disabled":a,onClick:a?void 0:r},t?(0,v.__)("Saving…"):(0,v.__)("Update"))},Zt=(0,l.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(C.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})),qt=[{keyCombination:{modifier:"primary",character:"b"},description:(0,v.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,v.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,v.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,v.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,v.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,v.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,v.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,v.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},description:(0,v.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,v.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")}];function Qt({keyCombination:e,forceAriaLabel:t}){const r=e.modifier?Et.displayShortcutList[e.modifier](e.character):e.character,a=e.modifier?Et.shortcutAriaLabel[e.modifier](e.character):e.character,n=Array.isArray(r)?r:[r];return(0,l.createElement)("kbd",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||a},n.map(((e,t)=>"+"===e?(0,l.createElement)(p.Fragment,{key:t},e):(0,l.createElement)("kbd",{key:t,className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-key"},e))))}const Jt=function({description:e,keyCombination:t,aliases:r=[],ariaLabel:a}){return(0,l.createElement)(p.Fragment,null,(0,l.createElement)("div",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-description"},e),(0,l.createElement)("div",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-term"},(0,l.createElement)(Qt,{keyCombination:t,forceAriaLabel:a}),r.map(((e,t)=>(0,l.createElement)(Qt,{keyCombination:e,forceAriaLabel:a,key:t})))))};const Xt=function({name:e}){const{keyCombination:t,description:r,aliases:a}=(0,m.useSelect)((t=>{const{getShortcutKeyCombination:r,getShortcutDescription:a,getShortcutAliases:n}=t(bt.store);return{keyCombination:r(e),aliases:n(e),description:a(e)}}),[e]);return t?(0,l.createElement)(Jt,{keyCombination:t,description:r,aliases:a}):null},er=({shortcuts:e})=>(0,l.createElement)("ul",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map(((e,t)=>(0,l.createElement)("li",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut",key:t},"string"==typeof e?(0,l.createElement)(Xt,{name:e}):(0,l.createElement)(Jt,{...e}))))),tr=({title:e,shortcuts:t,className:r})=>(0,l.createElement)("section",{className:A()("edit-widgets-keyboard-shortcut-help-modal__section",r)},!!e&&(0,l.createElement)("h2",{className:"edit-widgets-keyboard-shortcut-help-modal__section-title"},e),(0,l.createElement)(er,{shortcuts:t})),rr=({title:e,categoryName:t,additionalShortcuts:r=[]})=>{const a=(0,m.useSelect)((e=>e(bt.store).getCategoryShortcuts(t)),[t]);return(0,l.createElement)(tr,{title:e,shortcuts:a.concat(r)})};function ar({isModalActive:e,toggleModal:t}){return(0,bt.useShortcut)("core/edit-widgets/keyboard-shortcuts",t,{bindGlobal:!0}),e?(0,l.createElement)(I.Modal,{className:"edit-widgets-keyboard-shortcut-help-modal",title:(0,v.__)("Keyboard shortcuts"),onRequestClose:t},(0,l.createElement)(tr,{className:"edit-widgets-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-widgets/keyboard-shortcuts"]}),(0,l.createElement)(rr,{title:(0,v.__)("Global shortcuts"),categoryName:"global"}),(0,l.createElement)(rr,{title:(0,v.__)("Selection shortcuts"),categoryName:"selection"}),(0,l.createElement)(rr,{title:(0,v.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,v.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,v.__)("Forward-slash")}]}),(0,l.createElement)(tr,{title:(0,v.__)("Text formatting"),shortcuts:qt})):null}const{Fill:nr,Slot:ir}=(0,I.createSlotFill)("EditWidgetsToolsMoreMenuGroup");nr.Slot=({fillProps:e})=>(0,l.createElement)(ir,{fillProps:e},(e=>e.length>0&&e));const or=nr;function sr(){const[e,t]=(0,p.useState)(!1),r=()=>t(!e);(0,bt.useShortcut)("core/edit-widgets/keyboard-shortcuts",r);const a=(0,de.useViewportMatch)("medium");return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(he,null,(e=>(0,l.createElement)(l.Fragment,null,a&&(0,l.createElement)(I.MenuGroup,{label:(0,v._x)("View","noun")},(0,l.createElement)(b.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"fixedToolbar",label:(0,v.__)("Top toolbar"),info:(0,v.__)("Access all block and document tools in a single place"),messageActivated:(0,v.__)("Top toolbar activated"),messageDeactivated:(0,v.__)("Top toolbar deactivated")})),(0,l.createElement)(I.MenuGroup,{label:(0,v.__)("Tools")},(0,l.createElement)(I.MenuItem,{onClick:()=>{t(!0)},shortcut:Et.displayShortcut.access("h")},(0,v.__)("Keyboard shortcuts")),(0,l.createElement)(b.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"welcomeGuide",label:(0,v.__)("Welcome Guide")}),(0,l.createElement)(I.MenuItem,{role:"menuitem",icon:Zt,href:(0,v.__)("https://wordpress.org/documentation/article/block-based-widgets-editor/"),target:"_blank",rel:"noopener noreferrer"},(0,v.__)("Help"),(0,l.createElement)(I.VisuallyHidden,{as:"span"},(0,v.__)("(opens in a new tab)"))),(0,l.createElement)(or.Slot,{fillProps:{onClose:e}})),(0,l.createElement)(I.MenuGroup,{label:(0,v.__)("Preferences")},(0,l.createElement)(b.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"keepCaretInsideBlock",label:(0,v.__)("Contain text cursor inside block"),info:(0,v.__)("Aids screen readers by stopping text caret from leaving blocks."),messageActivated:(0,v.__)("Contain text cursor inside block activated"),messageDeactivated:(0,v.__)("Contain text cursor inside block deactivated")}),(0,l.createElement)(b.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"themeStyles",info:(0,v.__)("Make the editor look like your theme."),label:(0,v.__)("Use theme styles")}),a&&(0,l.createElement)(b.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"showBlockBreadcrumbs",label:(0,v.__)("Display block breadcrumbs"),info:(0,v.__)("Shows block breadcrumbs at the bottom of the editor."),messageActivated:(0,v.__)("Display block breadcrumbs activated"),messageDeactivated:(0,v.__)("Display block breadcrumbs deactivated")}))))),(0,l.createElement)(ar,{isModalActive:e,toggleModal:r}))}const cr=function(){const e=(0,de.useViewportMatch)("medium"),t=(0,p.useRef)(),{hasFixedToolbar:r}=(0,m.useSelect)((e=>({hasFixedToolbar:!!e(b.store).get("core/edit-widgets","fixedToolbar")})),[]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-widgets-header"},(0,l.createElement)("div",{className:"edit-widgets-header__navigable-toolbar-wrapper"},e&&(0,l.createElement)("h1",{className:"edit-widgets-header__title"},(0,v.__)("Widgets")),!e&&(0,l.createElement)(I.VisuallyHidden,{as:"h1",className:"edit-widgets-header__title"},(0,v.__)("Widgets")),(0,l.createElement)(Yt,null),r&&e&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"selected-block-tools-wrapper"},(0,l.createElement)(we.BlockToolbar,{hideDragHandle:!0})),(0,l.createElement)(I.Popover.Slot,{ref:t,name:"block-toolbar"}))),(0,l.createElement)("div",{className:"edit-widgets-header__actions"},(0,l.createElement)(Kt,null),(0,l.createElement)(oe.Slot,{scope:"core/edit-widgets"}),(0,l.createElement)(sr,null))))};const lr=function(){const{removeNotice:e}=(0,m.useDispatch)(k.store),{notices:t}=(0,m.useSelect)((e=>({notices:e(k.store).getNotices()})),[]),r=t.filter((({isDismissible:e,type:t})=>e&&"default"===t)),a=t.filter((({isDismissible:e,type:t})=>!e&&"default"===t)),n=t.filter((({type:e})=>"snackbar"===e)).slice(-3);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(I.NoticeList,{notices:a,className:"edit-widgets-notices__pinned"}),(0,l.createElement)(I.NoticeList,{notices:r,className:"edit-widgets-notices__dismissible",onRemove:e}),(0,l.createElement)(I.SnackbarList,{notices:n,className:"edit-widgets-notices__snackbar",onRemove:e}))};function dr({blockEditorSettings:e}){const t=(0,m.useSelect)((e=>!!e(b.store).get("core/edit-widgets","themeStyles")),[]),r=(0,de.useViewportMatch)("medium"),a=(0,p.useMemo)((()=>t?e.styles:[]),[e,t]);return(0,l.createElement)("div",{className:"edit-widgets-block-editor"},(0,l.createElement)(lr,null),!r&&(0,l.createElement)(we.BlockToolbar,{hideDragHandle:!0}),(0,l.createElement)(we.BlockTools,null,(0,l.createElement)(yt,null),(0,l.createElement)(we.__unstableEditorStyles,{styles:a,scope:".editor-styles-wrapper"}),(0,l.createElement)(we.BlockSelectionClearer,null,(0,l.createElement)(we.WritingFlow,null,(0,l.createElement)(we.BlockList,{className:"edit-widgets-main-block-list"})))))}const mr=(0,l.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(C.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"})),ur=()=>{const e=(0,m.useSelect)((e=>{const{getEntityRecord:t}=e(w.store),r=t(Ee,ye,ke());return r?.blocks[0]?.clientId}),[]);return(0,m.useSelect)((t=>{const{getBlockRootClientId:r,getBlockSelectionEnd:a,getBlockOrder:n,getBlockIndex:i}=t(we.store),o=t(nt).__experimentalGetInsertionPoint();if(o.rootClientId)return o;const s=a()||e,c=r(s);return s&&""===c?{rootClientId:s,insertionIndex:n(s).length}:{rootClientId:c,insertionIndex:i(s)+1}}),[e])};function gr(){const e=(0,de.useViewportMatch)("medium","<"),{rootClientId:t,insertionIndex:r}=ur(),{setIsInserterOpened:a}=(0,m.useDispatch)(nt),n=(0,p.useCallback)((()=>a(!1)),[a]),i=e?"div":I.VisuallyHidden,[o,s]=(0,de.__experimentalUseDialog)({onClose:n,focusOnMount:null}),c=(0,p.useRef)();return(0,p.useEffect)((()=>{c.current.focusSearch()}),[]),(0,l.createElement)("div",{ref:o,...s,className:"edit-widgets-layout__inserter-panel"},(0,l.createElement)(i,{className:"edit-widgets-layout__inserter-panel-header"},(0,l.createElement)(I.Button,{icon:mr,onClick:n,label:(0,v.__)("Close block inserter")})),(0,l.createElement)("div",{className:"edit-widgets-layout__inserter-panel-content"},(0,l.createElement)(we.__experimentalLibrary,{showInserterHelpPanel:!0,shouldFocusBlock:e,rootClientId:t,__experimentalInsertionIndex:r,ref:c})))}function pr(){const{setIsListViewOpened:e}=(0,m.useDispatch)(nt),{getListViewToggleRef:t}=rt((0,m.useSelect)(nt)),[r,a]=(0,p.useState)(null),n=(0,de.useFocusOnMount)("firstElement"),i=(0,p.useCallback)((()=>{e(!1),t().current?.focus()}),[t,e]),o=(0,p.useCallback)((e=>{e.keyCode!==Et.ESCAPE||e.defaultPrevented||(e.preventDefault(),i())}),[i]);return(0,l.createElement)("div",{className:"edit-widgets-editor__list-view-panel",onKeyDown:o},(0,l.createElement)("div",{className:"edit-widgets-editor__list-view-panel-header"},(0,l.createElement)("strong",null,(0,v.__)("List View")),(0,l.createElement)(I.Button,{icon:W,label:(0,v.__)("Close"),onClick:i})),(0,l.createElement)("div",{className:"edit-widgets-editor__list-view-panel-content",ref:(0,de.useMergeRefs)([n,a])},(0,l.createElement)(we.__experimentalListView,{dropZoneElement:r})))}function hr(){const{isInserterOpen:e,isListViewOpen:t}=(0,m.useSelect)((e=>{const{isInserterOpened:t,isListViewOpened:r}=e(nt);return{isInserterOpen:t(),isListViewOpen:r()}}),[]);return e?(0,l.createElement)(gr,null):t?(0,l.createElement)(pr,null):null}const wr={header:(0,v.__)("Widgets top bar"),body:(0,v.__)("Widgets and blocks"),sidebar:(0,v.__)("Widgets settings"),footer:(0,v.__)("Widgets footer")};const _r=function({blockEditorSettings:e}){const t=(0,de.useViewportMatch)("medium","<"),r=(0,de.useViewportMatch)("huge",">="),{setIsInserterOpened:a,setIsListViewOpened:n,closeGeneralSidebar:i}=(0,m.useDispatch)(nt),{hasBlockBreadCrumbsEnabled:o,hasSidebarEnabled:s,isInserterOpened:c,isListViewOpened:d,previousShortcut:u,nextShortcut:g}=(0,m.useSelect)((e=>({hasSidebarEnabled:!!e(Z).getActiveComplementaryArea(nt.name),isInserterOpened:!!e(nt).isInserterOpened(),isListViewOpened:!!e(nt).isListViewOpened(),hasBlockBreadCrumbsEnabled:!!e(b.store).get("core/edit-widgets","showBlockBreadcrumbs"),previousShortcut:e(bt.store).getAllShortcutKeyCombinations("core/edit-widgets/previous-region"),nextShortcut:e(bt.store).getAllShortcutKeyCombinations("core/edit-widgets/next-region")})),[]);(0,p.useEffect)((()=>{s&&!r&&(a(!1),n(!1))}),[s,r]),(0,p.useEffect)((()=>{!c&&!d||r||i()}),[c,d,r]);const h=d?(0,v.__)("List View"):(0,v.__)("Block Library"),w=d||c;return(0,l.createElement)(ge,{labels:{...wr,secondarySidebar:h},header:(0,l.createElement)(cr,null),secondarySidebar:w&&(0,l.createElement)(hr,null),sidebar:s&&(0,l.createElement)(le.Slot,{scope:"core/edit-widgets"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(dr,{blockEditorSettings:e})),footer:o&&!t&&(0,l.createElement)("div",{className:"edit-widgets-layout__footer"},(0,l.createElement)(we.BlockBreadcrumb,{rootLabelText:(0,v.__)("Widgets")})),shortcuts:{previous:u,next:g}})};function br(){const e=(0,m.useSelect)((e=>{const{getEditedWidgetAreas:t}=e(nt),r=t();return r?.length>0}),[]);return(0,p.useEffect)((()=>{const t=t=>{if(e)return t.returnValue=(0,v.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[e]),null}function Er(){var e;const t=(0,m.useSelect)((e=>!!e(b.store).get("core/edit-widgets","welcomeGuide")),[]),{toggle:r}=(0,m.useDispatch)(b.store),a=(0,m.useSelect)((e=>e(nt).getWidgetAreas({per_page:-1})),[]);if(!t)return null;const n=a?.every((e=>"wp_inactive_widgets"===e.id||e.widgets.every((e=>e.startsWith("block-"))))),i=null!==(e=a?.filter((e=>"wp_inactive_widgets"!==e.id)).length)&&void 0!==e?e:0;return(0,l.createElement)(I.Guide,{className:"edit-widgets-welcome-guide",contentLabel:(0,v.__)("Welcome to block Widgets"),finishButtonText:(0,v.__)("Get started"),onFinish:()=>r("core/edit-widgets","welcomeGuide"),pages:[{image:(0,l.createElement)(fr,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-widgets-welcome-guide__heading"},(0,v.__)("Welcome to block Widgets")),n?(0,l.createElement)(l.Fragment,null,(0,l.createElement)("p",{className:"edit-widgets-welcome-guide__text"},(0,v.sprintf)((0,v._n)("Your theme provides %s “block” area for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.","Your theme provides %s different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.",i),i))):(0,l.createElement)(l.Fragment,null,(0,l.createElement)("p",{className:"edit-widgets-welcome-guide__text"},(0,v.__)("You can now add any block to your site’s widget areas. Don’t worry, all of your favorite widgets still work flawlessly.")),(0,l.createElement)("p",{className:"edit-widgets-welcome-guide__text"},(0,l.createElement)("strong",null,(0,v.__)("Want to stick with the old widgets?"))," ",(0,l.createElement)(I.ExternalLink,{href:(0,v.__)("https://wordpress.org/plugins/classic-widgets/")},(0,v.__)("Get the Classic Widgets plugin.")))))},{image:(0,l.createElement)(fr,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-editor.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-widgets-welcome-guide__heading"},(0,v.__)("Make each block your own")),(0,l.createElement)("p",{className:"edit-widgets-welcome-guide__text"},(0,v.__)("Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.")))},{image:(0,l.createElement)(fr,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-library.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-library.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-widgets-welcome-guide__heading"},(0,v.__)("Get to know the block library")),(0,l.createElement)("p",{className:"edit-widgets-welcome-guide__text"},(0,p.createInterpolateElement)((0,v.__)("All of the blocks available to you live in the block library. You’ll find it wherever you see the <InserterIconImage /> icon."),{InserterIconImage:(0,l.createElement)("img",{className:"edit-widgets-welcome-guide__inserter-icon",alt:(0,v.__)("inserter"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"})})))},{image:(0,l.createElement)(fr,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-widgets-welcome-guide__heading"},(0,v.__)("Learn how to use the block editor")),(0,l.createElement)("p",{className:"edit-widgets-welcome-guide__text"},(0,v.__)("New to the block editor? Want to learn more about using it? "),(0,l.createElement)(I.ExternalLink,{href:(0,v.__)("https://wordpress.org/documentation/article/wordpress-block-editor/")},(0,v.__)("Here's a detailed guide."))))}]})}function fr({nonAnimatedSrc:e,animatedSrc:t}){return(0,l.createElement)("picture",{className:"edit-widgets-welcome-guide__image"},(0,l.createElement)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,l.createElement)("img",{src:t,width:"312",height:"240",alt:""}))}const yr=function({blockEditorSettings:e}){const{createErrorNotice:t}=(0,m.useDispatch)(k.store);return(0,l.createElement)(wt,null,(0,l.createElement)(It,{blockEditorSettings:e},(0,l.createElement)(_r,{blockEditorSettings:e}),(0,l.createElement)(Dt,null),(0,l.createElement)(q.PluginArea,{onError:function(e){t((0,v.sprintf)((0,v.__)('The "%s" plugin has encountered an error and cannot be rendered.'),e))}}),(0,l.createElement)(br,null),(0,l.createElement)(Er,null)))},vr=["core/more","core/freeform","core/template-part",...kt?[]:["core/block"]];function kr(e,t){const r=document.getElementById(e),a=(0,p.createRoot)(r),n=(0,h.__experimentalGetCoreBlocks)().filter((e=>!(vr.includes(e.name)||e.name.startsWith("core/post")||e.name.startsWith("core/query")||e.name.startsWith("core/site")||e.name.startsWith("core/navigation"))));return(0,m.dispatch)(b.store).setDefaults("core/edit-widgets",{fixedToolbar:!1,welcomeGuide:!0,showBlockBreadcrumbs:!0,themeStyles:!0}),(0,m.dispatch)(d.store).reapplyBlockTypeFilters(),(0,h.registerCoreBlocks)(n),(0,_.registerLegacyWidgetBlock)(),(0,_.registerLegacyWidgetVariations)(t),Ir(c),(0,_.registerWidgetGroupBlock)(),t.__experimentalFetchLinkSuggestions=(e,r)=>(0,w.__experimentalFetchLinkSuggestions)(e,r,t),(0,d.setFreeformContentHandlerName)("core/html"),a.render((0,l.createElement)(yr,{blockEditorSettings:t})),a}const Sr=kr;function Ar(){g()("wp.editWidgets.reinitializeEditor",{since:"6.2",version:"6.3"})}const Ir=e=>{if(!e)return;const{metadata:t,settings:r,name:a}=e;t&&(0,d.unstable__bootstrapServerSideBlockDefinitions)({[a]:t}),(0,d.registerBlockType)(a,r)}})(),(window.wp=window.wp||{}).editWidgets=a})(); \ No newline at end of file
+(()=>{"use strict";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var i in r)e.o(r,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:r[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{initialize:()=>Br,initializeEditor:()=>Cr,reinitializeEditor:()=>Nr,store:()=>dt});var r={};e.r(r),e.d(r,{closeModal:()=>U,disableComplementaryArea:()=>O,enableComplementaryArea:()=>M,openModal:()=>H,pinItem:()=>V,setDefaultComplementaryArea:()=>P,setFeatureDefaults:()=>z,setFeatureValue:()=>G,toggleFeature:()=>F,unpinItem:()=>D});var i={};e.r(i),e.d(i,{getActiveComplementaryArea:()=>$,isComplementaryAreaLoading:()=>Y,isFeatureActive:()=>Z,isItemPinned:()=>K,isModalActive:()=>q});var s={};e.r(s),e.d(s,{closeGeneralSidebar:()=>Ve,moveBlockToWidgetArea:()=>De,persistStubPost:()=>Ce,saveEditedWidgetAreas:()=>Be,saveWidgetArea:()=>Te,saveWidgetAreas:()=>Ne,setIsInserterOpened:()=>Me,setIsListViewOpened:()=>Oe,setIsWidgetAreaOpen:()=>Pe,setWidgetAreasOpenState:()=>We,setWidgetIdForClientId:()=>Re});var o={};e.r(o),e.d(o,{getWidgetAreas:()=>Fe,getWidgets:()=>Ge});var n={};e.r(n),e.d(n,{__experimentalGetInsertionPoint:()=>et,canInsertBlockInWidgetArea:()=>tt,getEditedWidgetAreas:()=>Ze,getIsWidgetAreaOpen:()=>Qe,getParentWidgetAreaBlock:()=>Ke,getReferenceWidgetBlocks:()=>qe,getWidget:()=>Ue,getWidgetAreaForWidgetId:()=>Ye,getWidgetAreas:()=>$e,getWidgets:()=>He,isInserterOpened:()=>Xe,isListViewOpened:()=>rt,isSavingWidgetAreas:()=>Je});var a={};e.r(a),e.d(a,{getInserterSidebarToggleRef:()=>st,getListViewToggleRef:()=>it});var c={};e.r(c),e.d(c,{metadata:()=>wt,name:()=>_t,settings:()=>bt});const d=window.wp.blocks,l=window.wp.data,u=window.wp.deprecated;var g=e.n(u);const p=window.wp.element,h=window.wp.blockLibrary,m=window.wp.coreData,w=window.wp.widgets,_=window.wp.preferences,b=window.wp.apiFetch;var f=e.n(b);const y=(0,l.combineReducers)({blockInserterPanel:function(e=!1,t){switch(t.type){case"SET_IS_LIST_VIEW_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return t.value}return e},inserterSidebarToggleRef:function(e={current:null}){return e},listViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_INSERTER_OPENED":return!t.value&&e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen}return e},listViewToggleRef:function(e={current:null}){return e},widgetAreasOpenState:function(e={},t){const{type:r}=t;switch(r){case"SET_WIDGET_AREAS_OPEN_STATE":return t.widgetAreasOpenState;case"SET_IS_WIDGET_AREA_OPEN":{const{clientId:r,isOpen:i}=t;return{...e,[r]:i}}default:return e}}}),x=window.wp.i18n,v=window.wp.notices;function k(e){var t,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=k(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}const j=function(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=k(e))&&(i&&(i+=" "),i+=t);return i},S=window.wp.components,A=window.wp.primitives,E=window.ReactJSXRuntime,I=(0,E.jsx)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E.jsx)(A.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})}),C=(0,E.jsx)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E.jsx)(A.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"})}),B=(0,E.jsx)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E.jsx)(A.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"})}),N=window.wp.viewport,T=window.wp.compose,L=(0,E.jsx)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E.jsx)(A.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})});function R(e){return["core/edit-post","core/edit-site"].includes(e)?(g()(`${e} interface scope`,{alternative:"core interface scope",hint:"core/edit-post and core/edit-site are merging.",version:"6.6"}),"core"):e}function W(e,t){return"core"===e&&"edit-site/template"===t?(g()("edit-site/template sidebar",{alternative:"edit-post/document",version:"6.6"}),"edit-post/document"):"core"===e&&"edit-site/block-inspector"===t?(g()("edit-site/block-inspector sidebar",{alternative:"edit-post/block",version:"6.6"}),"edit-post/block"):t}const P=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e=R(e),area:t=W(e,t)}),M=(e,t)=>({registry:r,dispatch:i})=>{if(!t)return;e=R(e),t=W(e,t);r.select(_.store).get(e,"isComplementaryAreaVisible")||r.dispatch(_.store).set(e,"isComplementaryAreaVisible",!0),i({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},O=e=>({registry:t})=>{e=R(e);t.select(_.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(_.store).set(e,"isComplementaryAreaVisible",!1)},V=(e,t)=>({registry:r})=>{if(!t)return;e=R(e),t=W(e,t);const i=r.select(_.store).get(e,"pinnedItems");!0!==i?.[t]&&r.dispatch(_.store).set(e,"pinnedItems",{...i,[t]:!0})},D=(e,t)=>({registry:r})=>{if(!t)return;e=R(e),t=W(e,t);const i=r.select(_.store).get(e,"pinnedItems");r.dispatch(_.store).set(e,"pinnedItems",{...i,[t]:!1})};function F(e,t){return function({registry:r}){g()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),r.dispatch(_.store).toggle(e,t)}}function G(e,t,r){return function({registry:i}){g()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),i.dispatch(_.store).set(e,t,!!r)}}function z(e,t){return function({registry:r}){g()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),r.dispatch(_.store).setDefaults(e,t)}}function H(e){return{type:"OPEN_MODAL",name:e}}function U(){return{type:"CLOSE_MODAL"}}const $=(0,l.createRegistrySelector)((e=>(t,r)=>{r=R(r);const i=e(_.store).get(r,"isComplementaryAreaVisible");if(void 0!==i)return!1===i?null:t?.complementaryAreas?.[r]})),Y=(0,l.createRegistrySelector)((e=>(t,r)=>{r=R(r);const i=e(_.store).get(r,"isComplementaryAreaVisible"),s=t?.complementaryAreas?.[r];return i&&void 0===s})),K=(0,l.createRegistrySelector)((e=>(t,r,i)=>{var s;i=W(r=R(r),i);const o=e(_.store).get(r,"pinnedItems");return null===(s=o?.[i])||void 0===s||s})),Z=(0,l.createRegistrySelector)((e=>(t,r,i)=>(g()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(_.store).get(r,i))));function q(e,t){return e.activeModal===t}const J=(0,l.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:r,area:i}=t;return e[r]?e:{...e,[r]:i}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:r,area:i}=t;return{...e,[r]:i}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}}),Q=(0,l.createReduxStore)("core/interface",{reducer:J,actions:r,selectors:i});(0,l.register)(Q);const X=window.wp.plugins,ee=(0,X.withPluginContext)(((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`})));const te=ee((function({as:e=S.Button,scope:t,identifier:r,icon:i,selectedIcon:s,name:o,...n}){const a=e,c=(0,l.useSelect)((e=>e(Q).getActiveComplementaryArea(t)===r),[r,t]),{enableComplementaryArea:d,disableComplementaryArea:u}=(0,l.useDispatch)(Q);return(0,E.jsx)(a,{icon:s&&c?s:i,"aria-controls":r.replace("/",":"),onClick:()=>{c?u(t):d(t,r)},...n})})),re=({smallScreenTitle:e,children:t,className:r,toggleButtonProps:i})=>{const s=(0,E.jsx)(te,{icon:L,...i});return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{className:"components-panel__header interface-complementary-area-header__small",children:[e&&(0,E.jsx)("h2",{className:"interface-complementary-area-header__small-title",children:e}),s]}),(0,E.jsxs)("div",{className:j("components-panel__header","interface-complementary-area-header",r),tabIndex:-1,children:[t,s]})]})},ie=()=>{};function se({name:e,as:t=S.Button,onClick:r,...i}){return(0,E.jsx)(S.Fill,{name:e,children:({onClick:e})=>(0,E.jsx)(t,{onClick:r||e?(...t)=>{(r||ie)(...t),(e||ie)(...t)}:void 0,...i})})}se.Slot=function({name:e,as:t=S.ButtonGroup,fillProps:r={},bubblesVirtually:i,...s}){return(0,E.jsx)(S.Slot,{name:e,bubblesVirtually:i,fillProps:r,children:e=>{if(!p.Children.toArray(e).length)return null;const r=[];p.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&r.push(t)}));const i=p.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&r.includes(e.props.__unstableTarget)?null:e));return(0,E.jsx)(t,{...s,children:i})}})};const oe=se,ne=({__unstableExplicitMenuItem:e,__unstableTarget:t,...r})=>(0,E.jsx)(S.MenuItem,{...r});function ae({scope:e,target:t,__unstableExplicitMenuItem:r,...i}){return(0,E.jsx)(te,{as:i=>(0,E.jsx)(oe,{__unstableExplicitMenuItem:r,__unstableTarget:`${e}/${t}`,as:ne,name:`${e}/plugin-more-menu`,...i}),role:"menuitemcheckbox",selectedIcon:I,name:t,scope:e,...i})}function ce({scope:e,...t}){return(0,E.jsx)(S.Fill,{name:`PinnedItems/${e}`,...t})}ce.Slot=function({scope:e,className:t,...r}){return(0,E.jsx)(S.Slot,{name:`PinnedItems/${e}`,...r,children:e=>e?.length>0&&(0,E.jsx)("div",{className:j(t,"interface-pinned-items"),children:e})})};const de=ce,le=.3;const ue=280,ge={open:{width:ue},closed:{width:0},mobileOpen:{width:"100vw"}};function pe({activeArea:e,isActive:t,scope:r,children:i,className:s,id:o}){const n=(0,T.useReducedMotion)(),a=(0,T.useViewportMatch)("medium","<"),c=(0,T.usePrevious)(e),d=(0,T.usePrevious)(t),[,l]=(0,p.useState)({});(0,p.useEffect)((()=>{l({})}),[t]);const u={type:"tween",duration:n||a||c&&e&&e!==c?0:le,ease:[.6,0,.4,1]};return(0,E.jsx)(S.Fill,{name:`ComplementaryArea/${r}`,children:(0,E.jsx)(S.__unstableAnimatePresence,{initial:!1,children:(d||t)&&(0,E.jsx)(S.__unstableMotion.div,{variants:ge,initial:"closed",animate:a?"mobileOpen":"open",exit:"closed",transition:u,className:"interface-complementary-area__fill",children:(0,E.jsx)("div",{id:o,className:s,style:{width:a?"100vw":ue},children:i})})})})}const he=ee((function({children:e,className:t,closeLabel:r=(0,x.__)("Close plugin"),identifier:i,header:s,headerClassName:o,icon:n,isPinnable:a=!0,panelClassName:c,scope:d,name:u,smallScreenTitle:g,title:h,toggleShortcut:m,isActiveByDefault:w}){const[b,f]=(0,p.useState)(!1),{isLoading:y,isActive:v,isPinned:k,activeArea:A,isSmall:T,isLarge:L,showIconLabels:R}=(0,l.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:r,isItemPinned:s}=e(Q),{get:o}=e(_.store),n=t(d);return{isLoading:r(d),isActive:n===i,isPinned:s(d,i),activeArea:n,isSmall:e(N.store).isViewportMatch("< medium"),isLarge:e(N.store).isViewportMatch("large"),showIconLabels:o("core","showIconLabels")}}),[i,d]);!function(e,t,r,i,s){const o=(0,p.useRef)(!1),n=(0,p.useRef)(!1),{enableComplementaryArea:a,disableComplementaryArea:c}=(0,l.useDispatch)(Q);(0,p.useEffect)((()=>{i&&s&&!o.current?(c(e),n.current=!0):n.current&&!s&&o.current?(n.current=!1,a(e,t)):n.current&&r&&r!==t&&(n.current=!1),s!==o.current&&(o.current=s)}),[i,s,e,t,r,c,a])}(d,i,A,v,T);const{enableComplementaryArea:W,disableComplementaryArea:P,pinItem:M,unpinItem:O}=(0,l.useDispatch)(Q);if((0,p.useEffect)((()=>{w&&void 0===A&&!T?W(d,i):void 0===A&&T&&P(d,i),f(!0)}),[A,w,d,i,T,W,P]),b)return(0,E.jsxs)(E.Fragment,{children:[a&&(0,E.jsx)(de,{scope:d,children:k&&(0,E.jsx)(te,{scope:d,identifier:i,isPressed:v&&(!R||L),"aria-expanded":v,"aria-disabled":y,label:h,icon:R?I:n,showTooltip:!R,variant:R?"tertiary":void 0,size:"compact"})}),u&&a&&(0,E.jsx)(ae,{target:u,scope:d,icon:n,children:h}),(0,E.jsxs)(pe,{activeArea:A,isActive:v,className:j("interface-complementary-area",t),scope:d,id:i.replace("/",":"),children:[(0,E.jsx)(re,{className:o,closeLabel:r,onClose:()=>P(d),smallScreenTitle:g,toggleButtonProps:{label:r,size:"small",shortcut:m,scope:d,identifier:i},children:s||(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("h2",{className:"interface-complementary-area-header__title",children:h}),a&&(0,E.jsx)(S.Button,{className:"interface-complementary-area__pin-unpin-item",icon:k?C:B,label:k?(0,x.__)("Unpin from toolbar"):(0,x.__)("Pin to toolbar"),onClick:()=>(k?O:M)(d,i),isPressed:k,"aria-expanded":k,size:"compact"})]})}),(0,E.jsx)(S.Panel,{className:c,children:e})]})]})}));he.Slot=function({scope:e,...t}){return(0,E.jsx)(S.Slot,{name:`ComplementaryArea/${e}`,...t})};const me=he;function we({children:e,className:t,ariaLabel:r,as:i="div",...s}){return(0,E.jsx)(i,{className:j("interface-navigable-region",t),"aria-label":r,role:"region",tabIndex:"-1",...s,children:e})}const _e={type:"tween",duration:.25,ease:[.6,0,.4,1]};const be={hidden:{opacity:1,marginTop:-60},visible:{opacity:1,marginTop:0},distractionFreeHover:{opacity:1,marginTop:0,transition:{..._e,delay:.2,delayChildren:.2}},distractionFreeHidden:{opacity:0,marginTop:-60},distractionFreeDisabled:{opacity:0,marginTop:0,transition:{..._e,delay:.8,delayChildren:.8}}};const fe=(0,p.forwardRef)((function({isDistractionFree:e,footer:t,header:r,editorNotices:i,sidebar:s,secondarySidebar:o,content:n,actions:a,labels:c,className:d,enableRegionNavigation:l=!0,shortcuts:u},g){const[h,m]=(0,T.useResizeObserver)(),w=(0,T.useViewportMatch)("medium","<"),_={type:"tween",duration:(0,T.useReducedMotion)()?0:.25,ease:[.6,0,.4,1]},b=(0,S.__unstableUseNavigateRegions)(u);!function(e){(0,p.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("interface-interface-skeleton__html-container");const f={...{header:(0,x._x)("Header","header landmark area"),body:(0,x.__)("Content"),secondarySidebar:(0,x.__)("Block Library"),sidebar:(0,x.__)("Settings"),actions:(0,x.__)("Publish"),footer:(0,x.__)("Footer")},...c};return(0,E.jsxs)("div",{...l?b:{},ref:(0,T.useMergeRefs)([g,l?b.ref:void 0]),className:j(d,"interface-interface-skeleton",b.className,!!t&&"has-footer"),children:[(0,E.jsxs)("div",{className:"interface-interface-skeleton__editor",children:[(0,E.jsx)(S.__unstableAnimatePresence,{initial:!1,children:!!r&&(0,E.jsx)(we,{as:S.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":f.header,initial:e?"distractionFreeHidden":"hidden",whileHover:e?"distractionFreeHover":"visible",animate:e?"distractionFreeDisabled":"visible",exit:e?"distractionFreeHidden":"hidden",variants:be,transition:_,children:r})}),e&&(0,E.jsx)("div",{className:"interface-interface-skeleton__header",children:i}),(0,E.jsxs)("div",{className:"interface-interface-skeleton__body",children:[(0,E.jsx)(S.__unstableAnimatePresence,{initial:!1,children:!!o&&(0,E.jsx)(we,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:f.secondarySidebar,as:S.__unstableMotion.div,initial:"closed",animate:w?"mobileOpen":"open",exit:"closed",variants:{open:{width:m.width},closed:{width:0},mobileOpen:{width:"100vw"}},transition:_,children:(0,E.jsxs)("div",{style:{position:"absolute",width:w?"100vw":"fit-content",height:"100%",right:0},children:[h,o]})})}),(0,E.jsx)(we,{className:"interface-interface-skeleton__content",ariaLabel:f.body,children:n}),!!s&&(0,E.jsx)(we,{className:"interface-interface-skeleton__sidebar",ariaLabel:f.sidebar,children:s}),!!a&&(0,E.jsx)(we,{className:"interface-interface-skeleton__actions",ariaLabel:f.actions,children:a})]})]}),!!t&&(0,E.jsx)(we,{className:"interface-interface-skeleton__footer",ariaLabel:f.footer,children:t})]})})),ye=window.wp.blockEditor;function xe(e){if("block"===e.id_base){const t=(0,d.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});return t.length?(0,w.addWidgetIdToBlock)(t[0],e.id):(0,w.addWidgetIdToBlock)((0,d.createBlock)("core/paragraph",{},[]),e.id)}let t;return t=e._embedded.about[0].is_multi?{idBase:e.id_base,instance:e.instance}:{id:e.id},(0,w.addWidgetIdToBlock)((0,d.createBlock)("core/legacy-widget",t,[]),e.id)}function ve(e,t={}){let r;var i,s,o;"core/legacy-widget"===e.name&&(e.attributes.id||e.attributes.instance)?r={...t,id:null!==(i=e.attributes.id)&&void 0!==i?i:t.id,id_base:null!==(s=e.attributes.idBase)&&void 0!==s?s:t.id_base,instance:null!==(o=e.attributes.instance)&&void 0!==o?o:t.instance}:r={...t,id_base:"block",instance:{raw:{content:(0,d.serialize)(e)}}};return delete r.rendered,delete r.rendered_form,r}const ke="root",je="sidebar",Se="postType",Ae=e=>`widget-area-${e}`,Ee=()=>"widget-areas";const Ie="core/edit-widgets",Ce=(e,t)=>({registry:r})=>{const i=((e,t)=>({id:e,slug:e,status:"draft",type:"page",blocks:t,meta:{widgetAreaId:e}}))(e,t);return r.dispatch(m.store).receiveEntityRecords(ke,Se,i,{id:i.id},!1),i},Be=()=>async({select:e,dispatch:t,registry:r})=>{const i=e.getEditedWidgetAreas();if(i?.length)try{await t.saveWidgetAreas(i),r.dispatch(v.store).createSuccessNotice((0,x.__)("Widgets saved."),{type:"snackbar"})}catch(e){r.dispatch(v.store).createErrorNotice((0,x.sprintf)((0,x.__)("There was an error. %s"),e.message),{type:"snackbar"})}},Ne=e=>async({dispatch:t,registry:r})=>{try{for(const r of e)await t.saveWidgetArea(r.id)}finally{await r.dispatch(m.store).finishResolution("getEntityRecord",ke,je,{per_page:-1})}},Te=e=>async({dispatch:t,select:r,registry:i})=>{const s=r.getWidgets(),o=i.select(m.store).getEditedEntityRecord(ke,Se,Ae(e)),n=Object.values(s).filter((({sidebar:t})=>t===e)),a=[],c=o.blocks.filter((e=>{const{id:t}=e.attributes;if("core/legacy-widget"===e.name&&t){if(a.includes(t))return!1;a.push(t)}return!0})),d=[];for(const e of n){r.getWidgetAreaForWidgetId(e.id)||d.push(e)}const l=[],u=[],g=[];for(let t=0;t<c.length;t++){const r=c[t],o=(0,w.getWidgetIdFromBlock)(r),n=s[o],a=ve(r,n);if(g.push(o),n){i.dispatch(m.store).editEntityRecord("root","widget",o,{...a,sidebar:e},{undoIgnore:!0});if(!i.select(m.store).hasEditsForEntityRecord("root","widget",o))continue;u.push((({saveEditedEntityRecord:e})=>e("root","widget",o)))}else u.push((({saveEntityRecord:t})=>t("root","widget",{...a,sidebar:e})));l.push({block:r,position:t,clientId:r.clientId})}for(const e of d)u.push((({deleteEntityRecord:t})=>t("root","widget",e.id,{force:!0})));const p=(await i.dispatch(m.store).__experimentalBatch(u)).filter((e=>!e.hasOwnProperty("deleted"))),h=[];for(let e=0;e<p.length;e++){const t=p[e],{block:r,position:s}=l[e];o.blocks[s].attributes.__internalWidgetId=t.id;i.select(m.store).getLastEntitySaveError("root","widget",t.id)&&h.push(r.attributes?.name||r?.name),g[s]||(g[s]=t.id)}if(h.length)throw new Error((0,x.sprintf)((0,x.__)("Could not save the following widgets: %s."),h.join(", ")));i.dispatch(m.store).editEntityRecord(ke,je,e,{widgets:g},{undoIgnore:!0}),t(Le(e)),i.dispatch(m.store).receiveEntityRecords(ke,Se,o,void 0)},Le=e=>({registry:t})=>{t.dispatch(m.store).saveEditedEntityRecord(ke,je,e,{throwOnError:!0})};function Re(e,t){return{type:"SET_WIDGET_ID_FOR_CLIENT_ID",clientId:e,widgetId:t}}function We(e){return{type:"SET_WIDGET_AREAS_OPEN_STATE",widgetAreasOpenState:e}}function Pe(e,t){return{type:"SET_IS_WIDGET_AREA_OPEN",clientId:e,isOpen:t}}function Me(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function Oe(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}const Ve=()=>({registry:e})=>{e.dispatch(Q).disableComplementaryArea(Ie)},De=(e,t)=>async({dispatch:r,select:i,registry:s})=>{const o=s.select(ye.store).getBlockRootClientId(e),n=s.select(ye.store).getBlocks().find((({attributes:e})=>e.id===t)).clientId,a=s.select(ye.store).getBlockOrder(n).length;i.getIsWidgetAreaOpen(n)||r.setIsWidgetAreaOpen(n,!0),s.dispatch(ye.store).moveBlocksToPosition([e],o,n,a)},Fe=()=>async({dispatch:e,registry:t})=>{const r={per_page:-1},i=[],s=(await t.resolveSelect(m.store).getEntityRecords(ke,je,r)).sort(((e,t)=>"wp_inactive_widgets"===e.id?1:"wp_inactive_widgets"===t.id?-1:0));for(const t of s)i.push((0,d.createBlock)("core/widget-area",{id:t.id,name:t.name})),t.widgets.length||e(Ce(Ae(t.id),[]));const o={};i.forEach(((e,t)=>{o[e.clientId]=0===t})),e(We(o)),e(Ce(Ee(),i))},Ge=()=>async({dispatch:e,registry:t})=>{const r={per_page:-1,_embed:"about"},i=await t.resolveSelect(m.store).getEntityRecords("root","widget",r),s={};for(const e of i){const t=xe(e);s[e.sidebar]=s[e.sidebar]||[],s[e.sidebar].push(t)}for(const t in s)s.hasOwnProperty(t)&&e(Ce(Ae(t),s[t]))},ze={rootClientId:void 0,insertionIndex:void 0},He=(0,l.createRegistrySelector)((e=>()=>{const t=e(m.store).getEntityRecords("root","widget",{per_page:-1,_embed:"about"});return t?.reduce(((e,t)=>({...e,[t.id]:t})),{})||{}})),Ue=(0,l.createRegistrySelector)((e=>(t,r)=>e(Ie).getWidgets()[r])),$e=(0,l.createRegistrySelector)((e=>()=>{const t={per_page:-1};return e(m.store).getEntityRecords(ke,je,t)})),Ye=(0,l.createRegistrySelector)((e=>(t,r)=>e(Ie).getWidgetAreas().find((t=>e(m.store).getEditedEntityRecord(ke,Se,Ae(t.id)).blocks.map((e=>(0,w.getWidgetIdFromBlock)(e))).includes(r))))),Ke=(0,l.createRegistrySelector)((e=>(t,r)=>{const{getBlock:i,getBlockName:s,getBlockParents:o}=e(ye.store);return i(o(r).find((e=>"core/widget-area"===s(e))))})),Ze=(0,l.createRegistrySelector)((e=>(t,r)=>{let i=e(Ie).getWidgetAreas();return i?(r&&(i=i.filter((({id:e})=>r.includes(e)))),i.filter((({id:t})=>e(m.store).hasEditsForEntityRecord(ke,Se,Ae(t)))).map((({id:t})=>e(m.store).getEditedEntityRecord(ke,je,t)))):[]})),qe=(0,l.createRegistrySelector)((e=>(t,r=null)=>{const i=[],s=e(Ie).getWidgetAreas();for(const t of s){const s=e(m.store).getEditedEntityRecord(ke,Se,Ae(t.id));for(const e of s.blocks)"core/legacy-widget"!==e.name||r&&e.attributes?.referenceWidgetName!==r||i.push(e)}return i})),Je=(0,l.createRegistrySelector)((e=>()=>{const t=e(Ie).getWidgetAreas()?.map((({id:e})=>e));if(!t)return!1;for(const r of t){if(e(m.store).isSavingEntityRecord(ke,je,r))return!0}const r=[...Object.keys(e(Ie).getWidgets()),void 0];for(const t of r){if(e(m.store).isSavingEntityRecord("root","widget",t))return!0}return!1})),Qe=(e,t)=>{const{widgetAreasOpenState:r}=e;return!!r[t]};function Xe(e){return!!e.blockInserterPanel}function et(e){return"boolean"==typeof e.blockInserterPanel?ze:e.blockInserterPanel}const tt=(0,l.createRegistrySelector)((e=>(t,r)=>{const i=e(ye.store).getBlocks(),[s]=i;return e(ye.store).canInsertBlockType(r,s.clientId)}));function rt(e){return e.listViewPanel}function it(e){return e.listViewToggleRef}function st(e){return e.inserterSidebarToggleRef}const ot=window.wp.privateApis,{lock:nt,unlock:at}=(0,ot.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/edit-widgets"),ct={reducer:y,selectors:n,resolvers:o,actions:s},dt=(0,l.createReduxStore)(Ie,ct);(0,l.register)(dt),f().use((function(e,t){return 0===e.path?.indexOf("/wp/v2/types/widget-area")?Promise.resolve({}):t(e)})),at(dt).registerPrivateSelectors(a);const lt=window.wp.hooks,ut=(0,T.createHigherOrderComponent)((e=>t=>{const{clientId:r,name:i}=t,{widgetAreas:s,currentWidgetAreaId:o,canInsertBlockInWidgetArea:n}=(0,l.useSelect)((e=>{if("core/widget-area"===i)return{};const t=e(dt),s=t.getParentWidgetAreaBlock(r);return{widgetAreas:t.getWidgetAreas(),currentWidgetAreaId:s?.attributes?.id,canInsertBlockInWidgetArea:t.canInsertBlockInWidgetArea(i)}}),[r,i]),{moveBlockToWidgetArea:a}=(0,l.useDispatch)(dt),c="core/widget-area"!==i&&s?.length>1&&n;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(e,{...t}),c&&(0,E.jsx)(ye.BlockControls,{children:(0,E.jsx)(w.MoveToWidgetArea,{widgetAreas:s,currentWidgetAreaId:o,onSelect:e=>{a(t.clientId,e)}})})]})}),"withMoveToWidgetAreaToolbarItem");(0,lt.addFilter)("editor.BlockEdit","core/edit-widgets/block-edit",ut);const gt=window.wp.mediaUtils;(0,lt.addFilter)("editor.MediaUpload","core/edit-widgets/replace-media-upload",(()=>gt.MediaUpload));const pt=e=>{const[t,r]=(0,p.useState)(!1);return(0,p.useEffect)((()=>{const{ownerDocument:t}=e.current;function i(e){o(e)}function s(){r(!1)}function o(t){e.current.contains(t.target)?r(!0):r(!1)}return t.addEventListener("dragstart",i),t.addEventListener("dragend",s),t.addEventListener("dragenter",o),()=>{t.removeEventListener("dragstart",i),t.removeEventListener("dragend",s),t.removeEventListener("dragenter",o)}}),[]),t};function ht({id:e}){const[t,r,i]=(0,m.useEntityBlockEditor)("root","postType"),s=(0,p.useRef)(),o=pt(s),n=(0,ye.useInnerBlocksProps)({ref:s},{value:t,onInput:r,onChange:i,templateLock:!1,renderAppender:ye.InnerBlocks.ButtonBlockAppender});return(0,E.jsx)("div",{"data-widget-area-id":e,className:j("wp-block-widget-area__inner-blocks block-editor-inner-blocks editor-styles-wrapper",{"wp-block-widget-area__highlight-drop-zone":o}),children:(0,E.jsx)("div",{...n})})}const mt=e=>{const[t,r]=(0,p.useState)(!1);return(0,p.useEffect)((()=>{const{ownerDocument:t}=e.current;function i(){r(!0)}function s(){r(!1)}return t.addEventListener("dragstart",i),t.addEventListener("dragend",s),()=>{t.removeEventListener("dragstart",i),t.removeEventListener("dragend",s)}}),[]),t},wt={$schema:"https://schemas.wp.org/trunk/block.json",name:"core/widget-area",title:"Widget Area",category:"widgets",attributes:{id:{type:"string"},name:{type:"string"}},supports:{html:!1,inserter:!1,customClassName:!1,reusable:!1,__experimentalToolbar:!1,__experimentalParentSelector:!1,__experimentalDisableBlockOverlay:!0},editorStyle:"wp-block-widget-area-editor",style:"wp-block-widget-area"},{name:_t}=wt,bt={title:(0,x.__)("Widget Area"),description:(0,x.__)("A widget area container."),__experimentalLabel:({name:e})=>e,edit:function({clientId:e,className:t,attributes:{id:r,name:i}}){const s=(0,l.useSelect)((t=>t(dt).getIsWidgetAreaOpen(e)),[e]),{setIsWidgetAreaOpen:o}=(0,l.useDispatch)(dt),n=(0,p.useRef)(),a=(0,p.useCallback)((t=>o(e,t)),[e]),c=mt(n),d=pt(n),[u,g]=(0,p.useState)(!1);return(0,p.useEffect)((()=>{c?d&&!s?(a(!0),g(!0)):!d&&s&&u&&a(!1):g(!1)}),[s,c,d,u]),(0,E.jsx)(S.Panel,{className:t,ref:n,children:(0,E.jsx)(S.PanelBody,{title:i,opened:s,onToggle:()=>{o(e,!s)},scrollAfterOpen:!c,children:({opened:e})=>(0,E.jsx)(S.__unstableDisclosureContent,{className:"wp-block-widget-area__panel-body-content",visible:e,children:(0,E.jsx)(m.EntityProvider,{kind:"root",type:"postType",id:`widget-area-${r}`,children:(0,E.jsx)(ht,{id:r})})})})})}};function ft({text:e,children:t}){const r=(0,T.useCopyToClipboard)(e);return(0,E.jsx)(S.Button,{variant:"secondary",ref:r,children:t})}function yt({message:e,error:t}){const r=[(0,E.jsx)(ft,{text:t.stack,children:(0,x.__)("Copy Error")},"copy-error")];return(0,E.jsx)(ye.Warning,{className:"edit-widgets-error-boundary",actions:r,children:e})}class xt extends p.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){(0,lt.doAction)("editor.ErrorBoundary.errorLogged",e)}static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error?(0,E.jsx)(yt,{message:(0,x.__)("The editor has encountered an unexpected error."),error:this.state.error}):this.props.children}}const vt=window.wp.patterns,kt=window.wp.keyboardShortcuts,jt=window.wp.keycodes;function St(){const{redo:e,undo:t}=(0,l.useDispatch)(m.store),{saveEditedWidgetAreas:r}=(0,l.useDispatch)(dt);return(0,kt.useShortcut)("core/edit-widgets/undo",(e=>{t(),e.preventDefault()})),(0,kt.useShortcut)("core/edit-widgets/redo",(t=>{e(),t.preventDefault()})),(0,kt.useShortcut)("core/edit-widgets/save",(e=>{e.preventDefault(),r()})),null}St.Register=function(){const{registerShortcut:e}=(0,l.useDispatch)(kt.store);return(0,p.useEffect)((()=>{e({name:"core/edit-widgets/undo",category:"global",description:(0,x.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/edit-widgets/redo",category:"global",description:(0,x.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,jt.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/edit-widgets/save",category:"global",description:(0,x.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/edit-widgets/keyboard-shortcuts",category:"main",description:(0,x.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),e({name:"core/edit-widgets/next-region",category:"global",description:(0,x.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/edit-widgets/previous-region",category:"global",description:(0,x.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]})}),[e]),null};const At=St,Et=()=>(0,l.useSelect)((e=>{const{getBlockSelectionEnd:t,getBlockName:r}=e(ye.store),i=t();if("core/widget-area"===r(i))return i;const{getParentWidgetAreaBlock:s}=e(dt),o=s(i),n=o?.clientId;if(n)return n;const{getEntityRecord:a}=e(m.store),c=a(ke,Se,Ee());return c?.blocks[0]?.clientId}),[]),It=!1,{ExperimentalBlockEditorProvider:Ct}=at(ye.privateApis),{PatternsMenuItems:Bt}=at(vt.privateApis),{BlockKeyboardShortcuts:Nt}=at(h.privateApis);function Tt({blockEditorSettings:e,children:t,...r}){const i=(0,m.useResourcePermissions)("media"),s=(0,T.useViewportMatch)("medium"),{reusableBlocks:o,isFixedToolbarActive:n,keepCaretInsideBlock:a,pageOnFront:c,pageForPosts:d}=(0,l.useSelect)((e=>{const{canUser:t,getEntityRecord:r,getEntityRecords:i}=e(m.store),s=t("read","settings")?r("root","site"):void 0;return{widgetAreas:e(dt).getWidgetAreas(),widgets:e(dt).getWidgets(),reusableBlocks:It?i("postType","wp_block"):[],isFixedToolbarActive:!!e(_.store).get("core/edit-widgets","fixedToolbar"),keepCaretInsideBlock:!!e(_.store).get("core/edit-widgets","keepCaretInsideBlock"),pageOnFront:s?.page_on_front,pageForPosts:s?.page_for_posts}}),[]),{setIsInserterOpened:u}=(0,l.useDispatch)(dt),g=(0,p.useMemo)((()=>{let t;return i.canCreate&&(t=({onError:t,...r})=>{(0,gt.uploadMedia)({wpAllowedMimeTypes:e.allowedMimeTypes,onError:({message:e})=>t(e),...r})}),{...e,__experimentalReusableBlocks:o,hasFixedToolbar:n||!s,keepCaretInsideBlock:a,mediaUpload:t,templateLock:"all",__experimentalSetIsInserterOpened:u,pageOnFront:c,pageForPosts:d}}),[e,n,s,a,i.canCreate,o,u,c,d]),h=Et(),[w,b,f]=(0,m.useEntityBlockEditor)(ke,Se,{id:Ee()});return(0,E.jsxs)(S.SlotFillProvider,{children:[(0,E.jsx)(At.Register,{}),(0,E.jsx)(Nt,{}),(0,E.jsxs)(Ct,{value:w,onInput:b,onChange:f,settings:g,useSubRegistry:!1,...r,children:[t,(0,E.jsx)(Bt,{rootClientId:h})]})]})}const Lt=(0,E.jsx)(A.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E.jsx)(A.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"})}),Rt=(0,E.jsx)(A.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E.jsx)(A.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"})}),Wt=(0,E.jsx)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E.jsx)(A.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})}),Pt=window.wp.url,Mt=window.wp.dom;function Ot({selectedWidgetAreaId:e}){const t=(0,l.useSelect)((e=>e(dt).getWidgetAreas()),[]),r=(0,p.useMemo)((()=>e&&t?.find((t=>t.id===e))),[e,t]);let i;return i=r?"wp_inactive_widgets"===e?(0,x.__)("Blocks in this Widget Area will not be displayed in your site."):r.description:(0,x.__)("Widget Areas are global parts in your site’s layout that can accept blocks. These vary by theme, but are typically parts like your Sidebar or Footer."),(0,E.jsx)("div",{className:"edit-widgets-widget-areas",children:(0,E.jsxs)("div",{className:"edit-widgets-widget-areas__top-container",children:[(0,E.jsx)(ye.BlockIcon,{icon:Wt}),(0,E.jsxs)("div",{children:[(0,E.jsx)("p",{dangerouslySetInnerHTML:{__html:(0,Mt.safeHTML)(i)}}),0===t?.length&&(0,E.jsx)("p",{children:(0,x.__)("Your theme does not contain any Widget Areas.")}),!r&&(0,E.jsx)(S.Button,{href:(0,Pt.addQueryArgs)("customize.php",{"autofocus[panel]":"widgets",return:window.location.pathname}),variant:"tertiary",children:(0,x.__)("Manage with live preview")})]})]})})}const Vt=p.Platform.select({web:!0,native:!1}),Dt="edit-widgets/block-inspector",Ft="edit-widgets/block-areas",{Tabs:Gt}=at(S.privateApis);function zt({selectedWidgetAreaBlock:e}){return(0,E.jsxs)(Gt.TabList,{children:[(0,E.jsx)(Gt.Tab,{tabId:Ft,children:e?e.attributes.name:(0,x.__)("Widget Areas")}),(0,E.jsx)(Gt.Tab,{tabId:Dt,children:(0,x.__)("Block")})]})}function Ht({hasSelectedNonAreaBlock:e,currentArea:t,isGeneralSidebarOpen:r,selectedWidgetAreaBlock:i}){const{enableComplementaryArea:s}=(0,l.useDispatch)(Q);(0,p.useEffect)((()=>{e&&t===Ft&&r&&s("core/edit-widgets",Dt),!e&&t===Dt&&r&&s("core/edit-widgets",Ft)}),[e,s]);const o=(0,p.useContext)(Gt.Context);return(0,E.jsx)(me,{className:"edit-widgets-sidebar",header:(0,E.jsx)(Gt.Context.Provider,{value:o,children:(0,E.jsx)(zt,{selectedWidgetAreaBlock:i})}),headerClassName:"edit-widgets-sidebar__panel-tabs",title:(0,x.__)("Settings"),closeLabel:(0,x.__)("Close Settings"),scope:"core/edit-widgets",identifier:t,icon:(0,x.isRTL)()?Lt:Rt,isActiveByDefault:Vt,children:(0,E.jsxs)(Gt.Context.Provider,{value:o,children:[(0,E.jsx)(Gt.TabPanel,{tabId:Ft,focusable:!1,children:(0,E.jsx)(Ot,{selectedWidgetAreaId:i?.attributes.id})}),(0,E.jsx)(Gt.TabPanel,{tabId:Dt,focusable:!1,children:e?(0,E.jsx)(ye.BlockInspector,{}):(0,E.jsx)("span",{className:"block-editor-block-inspector__no-blocks",children:(0,x.__)("No block selected.")})})]})})}function Ut(){const{currentArea:e,hasSelectedNonAreaBlock:t,isGeneralSidebarOpen:r,selectedWidgetAreaBlock:i}=(0,l.useSelect)((e=>{const{getSelectedBlock:t,getBlock:r,getBlockParentsByBlockName:i}=e(ye.store),{getActiveComplementaryArea:s}=e(Q),o=t(),n=s(dt.name);let a,c=n;return c||(c=o?Dt:Ft),o&&(a="core/widget-area"===o.name?o:r(i(o.clientId,"core/widget-area")[0])),{currentArea:c,hasSelectedNonAreaBlock:!(!o||"core/widget-area"===o.name),isGeneralSidebarOpen:!!n,selectedWidgetAreaBlock:a}}),[]),{enableComplementaryArea:s}=(0,l.useDispatch)(Q),o=(0,p.useCallback)((e=>{e&&s(dt.name,e)}),[s]);return(0,E.jsx)(Gt,{selectedTabId:r?e:null,onSelect:o,selectOnMove:!1,children:(0,E.jsx)(Ht,{hasSelectedNonAreaBlock:t,currentArea:e,isGeneralSidebarOpen:r,selectedWidgetAreaBlock:i})})}const $t=(0,E.jsx)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E.jsx)(A.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),Yt=(0,E.jsx)(A.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)(A.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})}),Kt=(0,E.jsx)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E.jsx)(A.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"})}),Zt=(0,E.jsx)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E.jsx)(A.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"})});const qt=(0,p.forwardRef)((function(e,t){const r=(0,l.useSelect)((e=>e(m.store).hasUndo()),[]),{undo:i}=(0,l.useDispatch)(m.store);return(0,E.jsx)(S.Button,{...e,ref:t,icon:(0,x.isRTL)()?Zt:Kt,label:(0,x.__)("Undo"),shortcut:jt.displayShortcut.primary("z"),"aria-disabled":!r,onClick:r?i:void 0,size:"compact"})}));const Jt=(0,p.forwardRef)((function(e,t){const r=(0,jt.isAppleOS)()?jt.displayShortcut.primaryShift("z"):jt.displayShortcut.primary("y"),i=(0,l.useSelect)((e=>e(m.store).hasRedo()),[]),{redo:s}=(0,l.useDispatch)(m.store);return(0,E.jsx)(S.Button,{...e,ref:t,icon:(0,x.isRTL)()?Kt:Zt,label:(0,x.__)("Redo"),shortcut:r,"aria-disabled":!i,onClick:i?s:void 0,size:"compact"})}));const Qt=function(){const e=(0,T.useViewportMatch)("medium"),{isInserterOpen:t,isListViewOpen:r,inserterSidebarToggleRef:i,listViewToggleRef:s}=(0,l.useSelect)((e=>{const{isInserterOpened:t,getInserterSidebarToggleRef:r,isListViewOpened:i,getListViewToggleRef:s}=at(e(dt));return{isInserterOpen:t(),isListViewOpen:i(),inserterSidebarToggleRef:r(),listViewToggleRef:s()}}),[]),{setIsInserterOpened:o,setIsListViewOpened:n}=(0,l.useDispatch)(dt),a=(0,p.useCallback)((()=>n(!r)),[n,r]),c=(0,p.useCallback)((()=>o(!t)),[o,t]);return(0,E.jsxs)(ye.NavigableToolbar,{className:"edit-widgets-header-toolbar","aria-label":(0,x.__)("Document tools"),variant:"unstyled",children:[(0,E.jsx)(S.ToolbarItem,{ref:i,as:S.Button,className:"edit-widgets-header-toolbar__inserter-toggle",variant:"primary",isPressed:t,onMouseDown:e=>{e.preventDefault()},onClick:c,icon:$t,label:(0,x._x)("Toggle block inserter","Generic label for block inserter button"),size:"compact"}),e&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(S.ToolbarItem,{as:qt}),(0,E.jsx)(S.ToolbarItem,{as:Jt}),(0,E.jsx)(S.ToolbarItem,{as:S.Button,className:"edit-widgets-header-toolbar__list-view-toggle",icon:Yt,isPressed:r,label:(0,x.__)("List View"),onClick:a,ref:s,size:"compact"})]})]})};const Xt=function(){const{hasEditedWidgetAreaIds:e,isSaving:t}=(0,l.useSelect)((e=>{const{getEditedWidgetAreas:t,isSavingWidgetAreas:r}=e(dt);return{hasEditedWidgetAreaIds:t()?.length>0,isSaving:r()}}),[]),{saveEditedWidgetAreas:r}=(0,l.useDispatch)(dt),i=t||!e;return(0,E.jsx)(S.Button,{variant:"primary",isBusy:t,"aria-disabled":i,onClick:i?void 0:r,size:"compact",children:t?(0,x.__)("Saving…"):(0,x.__)("Update")})},er=(0,E.jsx)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E.jsx)(A.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})}),tr=(0,E.jsx)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E.jsx)(A.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})}),rr=[{keyCombination:{modifier:"primary",character:"b"},description:(0,x.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,x.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,x.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,x.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,x.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,x.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,x.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,x.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}],description:(0,x.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,x.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")},{keyCombination:{modifier:"primaryShift",character:"SPACE"},description:(0,x.__)("Add non breaking space.")}];function ir({keyCombination:e,forceAriaLabel:t}){const r=e.modifier?jt.displayShortcutList[e.modifier](e.character):e.character,i=e.modifier?jt.shortcutAriaLabel[e.modifier](e.character):e.character,s=Array.isArray(r)?r:[r];return(0,E.jsx)("kbd",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||i,children:s.map(((e,t)=>"+"===e?(0,E.jsx)(p.Fragment,{children:e},t):(0,E.jsx)("kbd",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-key",children:e},t)))})}const sr=function({description:e,keyCombination:t,aliases:r=[],ariaLabel:i}){return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-description",children:e}),(0,E.jsxs)("div",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-term",children:[(0,E.jsx)(ir,{keyCombination:t,forceAriaLabel:i}),r.map(((e,t)=>(0,E.jsx)(ir,{keyCombination:e,forceAriaLabel:i},t)))]})]})};const or=function({name:e}){const{keyCombination:t,description:r,aliases:i}=(0,l.useSelect)((t=>{const{getShortcutKeyCombination:r,getShortcutDescription:i,getShortcutAliases:s}=t(kt.store);return{keyCombination:r(e),aliases:s(e),description:i(e)}}),[e]);return t?(0,E.jsx)(sr,{keyCombination:t,description:r,aliases:i}):null},nr=({shortcuts:e})=>(0,E.jsx)("ul",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-list",role:"list",children:e.map(((e,t)=>(0,E.jsx)("li",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut",children:"string"==typeof e?(0,E.jsx)(or,{name:e}):(0,E.jsx)(sr,{...e})},t)))}),ar=({title:e,shortcuts:t,className:r})=>(0,E.jsxs)("section",{className:j("edit-widgets-keyboard-shortcut-help-modal__section",r),children:[!!e&&(0,E.jsx)("h2",{className:"edit-widgets-keyboard-shortcut-help-modal__section-title",children:e}),(0,E.jsx)(nr,{shortcuts:t})]}),cr=({title:e,categoryName:t,additionalShortcuts:r=[]})=>{const i=(0,l.useSelect)((e=>e(kt.store).getCategoryShortcuts(t)),[t]);return(0,E.jsx)(ar,{title:e,shortcuts:i.concat(r)})};function dr({isModalActive:e,toggleModal:t}){return(0,kt.useShortcut)("core/edit-widgets/keyboard-shortcuts",t,{bindGlobal:!0}),e?(0,E.jsxs)(S.Modal,{className:"edit-widgets-keyboard-shortcut-help-modal",title:(0,x.__)("Keyboard shortcuts"),onRequestClose:t,children:[(0,E.jsx)(ar,{className:"edit-widgets-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-widgets/keyboard-shortcuts"]}),(0,E.jsx)(cr,{title:(0,x.__)("Global shortcuts"),categoryName:"global"}),(0,E.jsx)(cr,{title:(0,x.__)("Selection shortcuts"),categoryName:"selection"}),(0,E.jsx)(cr,{title:(0,x.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,x.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,x.__)("Forward-slash")}]}),(0,E.jsx)(ar,{title:(0,x.__)("Text formatting"),shortcuts:rr}),(0,E.jsx)(cr,{title:(0,x.__)("List View shortcuts"),categoryName:"list-view"})]}):null}const{Fill:lr,Slot:ur}=(0,S.createSlotFill)("EditWidgetsToolsMoreMenuGroup");lr.Slot=({fillProps:e})=>(0,E.jsx)(ur,{fillProps:e,children:e=>e.length>0&&e});const gr=lr;function pr(){const[e,t]=(0,p.useState)(!1),r=()=>t(!e);(0,kt.useShortcut)("core/edit-widgets/keyboard-shortcuts",r);const i=(0,T.useViewportMatch)("medium");return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(S.DropdownMenu,{icon:er,label:(0,x.__)("Options"),popoverProps:{placement:"bottom-end",className:"more-menu-dropdown__content"},toggleProps:{tooltipPosition:"bottom",size:"compact"},children:e=>(0,E.jsxs)(E.Fragment,{children:[i&&(0,E.jsx)(S.MenuGroup,{label:(0,x._x)("View","noun"),children:(0,E.jsx)(_.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"fixedToolbar",label:(0,x.__)("Top toolbar"),info:(0,x.__)("Access all block and document tools in a single place"),messageActivated:(0,x.__)("Top toolbar activated"),messageDeactivated:(0,x.__)("Top toolbar deactivated")})}),(0,E.jsxs)(S.MenuGroup,{label:(0,x.__)("Tools"),children:[(0,E.jsx)(S.MenuItem,{onClick:()=>{t(!0)},shortcut:jt.displayShortcut.access("h"),children:(0,x.__)("Keyboard shortcuts")}),(0,E.jsx)(_.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"welcomeGuide",label:(0,x.__)("Welcome Guide")}),(0,E.jsxs)(S.MenuItem,{role:"menuitem",icon:tr,href:(0,x.__)("https://wordpress.org/documentation/article/block-based-widgets-editor/"),target:"_blank",rel:"noopener noreferrer",children:[(0,x.__)("Help"),(0,E.jsx)(S.VisuallyHidden,{as:"span",children:(0,x.__)("(opens in a new tab)")})]}),(0,E.jsx)(gr.Slot,{fillProps:{onClose:e}})]}),(0,E.jsxs)(S.MenuGroup,{label:(0,x.__)("Preferences"),children:[(0,E.jsx)(_.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"keepCaretInsideBlock",label:(0,x.__)("Contain text cursor inside block"),info:(0,x.__)("Aids screen readers by stopping text caret from leaving blocks."),messageActivated:(0,x.__)("Contain text cursor inside block activated"),messageDeactivated:(0,x.__)("Contain text cursor inside block deactivated")}),(0,E.jsx)(_.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"themeStyles",info:(0,x.__)("Make the editor look like your theme."),label:(0,x.__)("Use theme styles")}),i&&(0,E.jsx)(_.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"showBlockBreadcrumbs",label:(0,x.__)("Display block breadcrumbs"),info:(0,x.__)("Shows block breadcrumbs at the bottom of the editor."),messageActivated:(0,x.__)("Display block breadcrumbs activated"),messageDeactivated:(0,x.__)("Display block breadcrumbs deactivated")})]})]})}),(0,E.jsx)(dr,{isModalActive:e,toggleModal:r})]})}const hr=function(){const e=(0,T.useViewportMatch)("medium"),t=(0,p.useRef)(),{hasFixedToolbar:r}=(0,l.useSelect)((e=>({hasFixedToolbar:!!e(_.store).get("core/edit-widgets","fixedToolbar")})),[]);return(0,E.jsx)(E.Fragment,{children:(0,E.jsxs)("div",{className:"edit-widgets-header",children:[(0,E.jsxs)("div",{className:"edit-widgets-header__navigable-toolbar-wrapper",children:[e&&(0,E.jsx)("h1",{className:"edit-widgets-header__title",children:(0,x.__)("Widgets")}),!e&&(0,E.jsx)(S.VisuallyHidden,{as:"h1",className:"edit-widgets-header__title",children:(0,x.__)("Widgets")}),(0,E.jsx)(Qt,{}),r&&e&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"selected-block-tools-wrapper",children:(0,E.jsx)(ye.BlockToolbar,{hideDragHandle:!0})}),(0,E.jsx)(S.Popover.Slot,{ref:t,name:"block-toolbar"})]})]}),(0,E.jsxs)("div",{className:"edit-widgets-header__actions",children:[(0,E.jsx)(Xt,{}),(0,E.jsx)(de.Slot,{scope:"core/edit-widgets"}),(0,E.jsx)(pr,{})]})]})})};const mr=function(){const{removeNotice:e}=(0,l.useDispatch)(v.store),{notices:t}=(0,l.useSelect)((e=>({notices:e(v.store).getNotices()})),[]),r=t.filter((({isDismissible:e,type:t})=>e&&"default"===t)),i=t.filter((({isDismissible:e,type:t})=>!e&&"default"===t)),s=t.filter((({type:e})=>"snackbar"===e)).slice(-3);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(S.NoticeList,{notices:i,className:"edit-widgets-notices__pinned"}),(0,E.jsx)(S.NoticeList,{notices:r,className:"edit-widgets-notices__dismissible",onRemove:e}),(0,E.jsx)(S.SnackbarList,{notices:s,className:"edit-widgets-notices__snackbar",onRemove:e})]})};function wr({blockEditorSettings:e}){const t=(0,l.useSelect)((e=>!!e(_.store).get("core/edit-widgets","themeStyles")),[]),r=(0,T.useViewportMatch)("medium"),i=(0,p.useMemo)((()=>t?e.styles:[]),[e,t]);return(0,E.jsxs)("div",{className:"edit-widgets-block-editor",children:[(0,E.jsx)(mr,{}),!r&&(0,E.jsx)(ye.BlockToolbar,{hideDragHandle:!0}),(0,E.jsxs)(ye.BlockTools,{children:[(0,E.jsx)(At,{}),(0,E.jsx)(ye.__unstableEditorStyles,{styles:i,scope:".editor-styles-wrapper"}),(0,E.jsx)(ye.BlockSelectionClearer,{children:(0,E.jsx)(ye.WritingFlow,{children:(0,E.jsx)(ye.BlockList,{className:"edit-widgets-main-block-list"})})})]})]})}const _r=(0,E.jsx)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E.jsx)(A.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})}),br=()=>{const e=(0,l.useSelect)((e=>{const{getEntityRecord:t}=e(m.store),r=t(ke,Se,Ee());return r?.blocks[0]?.clientId}),[]);return(0,l.useSelect)((t=>{const{getBlockRootClientId:r,getBlockSelectionEnd:i,getBlockOrder:s,getBlockIndex:o}=t(ye.store),n=t(dt).__experimentalGetInsertionPoint();if(n.rootClientId)return n;const a=i()||e,c=r(a);return a&&""===c?{rootClientId:a,insertionIndex:s(a).length}:{rootClientId:c,insertionIndex:o(a)+1}}),[e])};function fr(){const e=(0,T.useViewportMatch)("medium","<"),{rootClientId:t,insertionIndex:r}=br(),{setIsInserterOpened:i}=(0,l.useDispatch)(dt),s=(0,p.useCallback)((()=>i(!1)),[i]),o=e?"div":S.VisuallyHidden,[n,a]=(0,T.__experimentalUseDialog)({onClose:s,focusOnMount:!0}),c=(0,p.useRef)();return(0,E.jsxs)("div",{ref:n,...a,className:"edit-widgets-layout__inserter-panel",children:[(0,E.jsx)(o,{className:"edit-widgets-layout__inserter-panel-header",children:(0,E.jsx)(S.Button,{icon:_r,onClick:s,label:(0,x.__)("Close block inserter")})}),(0,E.jsx)("div",{className:"edit-widgets-layout__inserter-panel-content",children:(0,E.jsx)(ye.__experimentalLibrary,{showInserterHelpPanel:!0,shouldFocusBlock:e,rootClientId:t,__experimentalInsertionIndex:r,ref:c})})]})}function yr(){const{setIsListViewOpened:e}=(0,l.useDispatch)(dt),{getListViewToggleRef:t}=at((0,l.useSelect)(dt)),[r,i]=(0,p.useState)(null),s=(0,T.useFocusOnMount)("firstElement"),o=(0,p.useCallback)((()=>{e(!1),t().current?.focus()}),[t,e]),n=(0,p.useCallback)((e=>{e.keyCode!==jt.ESCAPE||e.defaultPrevented||(e.preventDefault(),o())}),[o]);return(0,E.jsxs)("div",{className:"edit-widgets-editor__list-view-panel",onKeyDown:n,children:[(0,E.jsxs)("div",{className:"edit-widgets-editor__list-view-panel-header",children:[(0,E.jsx)("strong",{children:(0,x.__)("List View")}),(0,E.jsx)(S.Button,{icon:L,label:(0,x.__)("Close"),onClick:o})]}),(0,E.jsx)("div",{className:"edit-widgets-editor__list-view-panel-content",ref:(0,T.useMergeRefs)([s,i]),children:(0,E.jsx)(ye.__experimentalListView,{dropZoneElement:r})})]})}function xr(){const{isInserterOpen:e,isListViewOpen:t}=(0,l.useSelect)((e=>{const{isInserterOpened:t,isListViewOpened:r}=e(dt);return{isInserterOpen:t(),isListViewOpen:r()}}),[]);return e?(0,E.jsx)(fr,{}):t?(0,E.jsx)(yr,{}):null}const vr={header:(0,x.__)("Widgets top bar"),body:(0,x.__)("Widgets and blocks"),sidebar:(0,x.__)("Widgets settings"),footer:(0,x.__)("Widgets footer")};const kr=function({blockEditorSettings:e}){const t=(0,T.useViewportMatch)("medium","<"),r=(0,T.useViewportMatch)("huge",">="),{setIsInserterOpened:i,setIsListViewOpened:s,closeGeneralSidebar:o}=(0,l.useDispatch)(dt),{hasBlockBreadCrumbsEnabled:n,hasSidebarEnabled:a,isInserterOpened:c,isListViewOpened:d,previousShortcut:u,nextShortcut:g}=(0,l.useSelect)((e=>({hasSidebarEnabled:!!e(Q).getActiveComplementaryArea(dt.name),isInserterOpened:!!e(dt).isInserterOpened(),isListViewOpened:!!e(dt).isListViewOpened(),hasBlockBreadCrumbsEnabled:!!e(_.store).get("core/edit-widgets","showBlockBreadcrumbs"),previousShortcut:e(kt.store).getAllShortcutKeyCombinations("core/edit-widgets/previous-region"),nextShortcut:e(kt.store).getAllShortcutKeyCombinations("core/edit-widgets/next-region")})),[]);(0,p.useEffect)((()=>{a&&!r&&(i(!1),s(!1))}),[a,r]),(0,p.useEffect)((()=>{!c&&!d||r||o()}),[c,d,r]);const h=d?(0,x.__)("List View"):(0,x.__)("Block Library"),m=d||c;return(0,E.jsx)(fe,{labels:{...vr,secondarySidebar:h},header:(0,E.jsx)(hr,{}),secondarySidebar:m&&(0,E.jsx)(xr,{}),sidebar:(0,E.jsx)(me.Slot,{scope:"core/edit-widgets"}),content:(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(wr,{blockEditorSettings:e})}),footer:n&&!t&&(0,E.jsx)("div",{className:"edit-widgets-layout__footer",children:(0,E.jsx)(ye.BlockBreadcrumb,{rootLabelText:(0,x.__)("Widgets")})}),shortcuts:{previous:u,next:g}})};function jr(){const e=(0,l.useSelect)((e=>{const{getEditedWidgetAreas:t}=e(dt),r=t();return r?.length>0}),[]);return(0,p.useEffect)((()=>{const t=t=>{if(e)return t.returnValue=(0,x.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[e]),null}function Sr(){var e;const t=(0,l.useSelect)((e=>!!e(_.store).get("core/edit-widgets","welcomeGuide")),[]),{toggle:r}=(0,l.useDispatch)(_.store),i=(0,l.useSelect)((e=>e(dt).getWidgetAreas({per_page:-1})),[]);if(!t)return null;const s=i?.every((e=>"wp_inactive_widgets"===e.id||e.widgets.every((e=>e.startsWith("block-"))))),o=null!==(e=i?.filter((e=>"wp_inactive_widgets"!==e.id)).length)&&void 0!==e?e:0;return(0,E.jsx)(S.Guide,{className:"edit-widgets-welcome-guide",contentLabel:(0,x.__)("Welcome to block Widgets"),finishButtonText:(0,x.__)("Get started"),onFinish:()=>r("core/edit-widgets","welcomeGuide"),pages:[{image:(0,E.jsx)(Ar,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.gif"}),content:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("h1",{className:"edit-widgets-welcome-guide__heading",children:(0,x.__)("Welcome to block Widgets")}),s?(0,E.jsx)(E.Fragment,{children:(0,E.jsx)("p",{className:"edit-widgets-welcome-guide__text",children:(0,x.sprintf)((0,x._n)("Your theme provides %s “block” area for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.","Your theme provides %s different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.",o),o)})}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("p",{className:"edit-widgets-welcome-guide__text",children:(0,x.__)("You can now add any block to your site’s widget areas. Don’t worry, all of your favorite widgets still work flawlessly.")}),(0,E.jsxs)("p",{className:"edit-widgets-welcome-guide__text",children:[(0,E.jsx)("strong",{children:(0,x.__)("Want to stick with the old widgets?")})," ",(0,E.jsx)(S.ExternalLink,{href:(0,x.__)("https://wordpress.org/plugins/classic-widgets/"),children:(0,x.__)("Get the Classic Widgets plugin.")})]})]})]})},{image:(0,E.jsx)(Ar,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-editor.gif"}),content:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("h1",{className:"edit-widgets-welcome-guide__heading",children:(0,x.__)("Make each block your own")}),(0,E.jsx)("p",{className:"edit-widgets-welcome-guide__text",children:(0,x.__)("Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.")})]})},{image:(0,E.jsx)(Ar,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-library.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-library.gif"}),content:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("h1",{className:"edit-widgets-welcome-guide__heading",children:(0,x.__)("Get to know the block library")}),(0,E.jsx)("p",{className:"edit-widgets-welcome-guide__text",children:(0,p.createInterpolateElement)((0,x.__)("All of the blocks available to you live in the block library. You’ll find it wherever you see the <InserterIconImage /> icon."),{InserterIconImage:(0,E.jsx)("img",{className:"edit-widgets-welcome-guide__inserter-icon",alt:(0,x.__)("inserter"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"})})})]})},{image:(0,E.jsx)(Ar,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("h1",{className:"edit-widgets-welcome-guide__heading",children:(0,x.__)("Learn how to use the block editor")}),(0,E.jsxs)("p",{className:"edit-widgets-welcome-guide__text",children:[(0,x.__)("New to the block editor? Want to learn more about using it? "),(0,E.jsx)(S.ExternalLink,{href:(0,x.__)("https://wordpress.org/documentation/article/wordpress-block-editor/"),children:(0,x.__)("Here's a detailed guide.")})]})]})}]})}function Ar({nonAnimatedSrc:e,animatedSrc:t}){return(0,E.jsxs)("picture",{className:"edit-widgets-welcome-guide__image",children:[(0,E.jsx)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,E.jsx)("img",{src:t,width:"312",height:"240",alt:""})]})}const Er=function({blockEditorSettings:e}){const{createErrorNotice:t}=(0,l.useDispatch)(v.store);return(0,E.jsx)(xt,{children:(0,E.jsxs)(Tt,{blockEditorSettings:e,children:[(0,E.jsx)(kr,{blockEditorSettings:e}),(0,E.jsx)(Ut,{}),(0,E.jsx)(X.PluginArea,{onError:function(e){t((0,x.sprintf)((0,x.__)('The "%s" plugin has encountered an error and cannot be rendered.'),e))}}),(0,E.jsx)(jr,{}),(0,E.jsx)(Sr,{})]})})},Ir=["core/more","core/freeform","core/template-part",...It?[]:["core/block"]];function Cr(e,t){const r=document.getElementById(e),i=(0,p.createRoot)(r),s=(0,h.__experimentalGetCoreBlocks)().filter((e=>!(Ir.includes(e.name)||e.name.startsWith("core/post")||e.name.startsWith("core/query")||e.name.startsWith("core/site")||e.name.startsWith("core/navigation"))));return(0,l.dispatch)(_.store).setDefaults("core/edit-widgets",{fixedToolbar:!1,welcomeGuide:!0,showBlockBreadcrumbs:!0,themeStyles:!0}),(0,l.dispatch)(d.store).reapplyBlockTypeFilters(),(0,h.registerCoreBlocks)(s),(0,w.registerLegacyWidgetBlock)(),(0,w.registerLegacyWidgetVariations)(t),Tr(c),(0,w.registerWidgetGroupBlock)(),t.__experimentalFetchLinkSuggestions=(e,r)=>(0,m.__experimentalFetchLinkSuggestions)(e,r,t),(0,d.setFreeformContentHandlerName)("core/html"),i.render((0,E.jsx)(Er,{blockEditorSettings:t})),i}const Br=Cr;function Nr(){g()("wp.editWidgets.reinitializeEditor",{since:"6.2",version:"6.3"})}const Tr=e=>{if(!e)return;const{metadata:t,settings:r,name:i}=e;t&&(0,d.unstable__bootstrapServerSideBlockDefinitions)({[i]:t}),(0,d.registerBlockType)(i,r)};(window.wp=window.wp||{}).editWidgets=t})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/editor.js b/wp-includes/js/dist/editor.js
index 609c9c0..9fff46d 100644
--- a/wp-includes/js/dist/editor.js
+++ b/wp-includes/js/dist/editor.js
@@ -290,72 +290,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
/***/ }),
-/***/ 5755:
-/***/ ((module, exports) => {
-
-var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/
-/* global define */
-
-(function () {
- 'use strict';
-
- var hasOwn = {}.hasOwnProperty;
- var nativeCodeString = '[native code]';
-
- 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)) {
- if (arg.length) {
- var inner = classNames.apply(null, arg);
- if (inner) {
- classes.push(inner);
- }
- }
- } else if (argType === 'object') {
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
- classes.push(arg.toString());
- continue;
- }
-
- 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 {}
-}());
-
-
-/***/ }),
-
/***/ 6109:
/***/ ((module) => {
@@ -390,6 +324,201 @@ module.exports = computedStyle;
/***/ }),
+/***/ 66:
+/***/ ((module) => {
+
+"use strict";
+
+
+var isMergeableObject = function isMergeableObject(value) {
+ return isNonNullObject(value)
+ && !isSpecial(value)
+};
+
+function isNonNullObject(value) {
+ return !!value && typeof value === 'object'
+}
+
+function isSpecial(value) {
+ var stringValue = Object.prototype.toString.call(value);
+
+ return stringValue === '[object RegExp]'
+ || stringValue === '[object Date]'
+ || isReactElement(value)
+}
+
+// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
+var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
+var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
+
+function isReactElement(value) {
+ return value.$$typeof === REACT_ELEMENT_TYPE
+}
+
+function emptyTarget(val) {
+ return Array.isArray(val) ? [] : {}
+}
+
+function cloneUnlessOtherwiseSpecified(value, options) {
+ return (options.clone !== false && options.isMergeableObject(value))
+ ? deepmerge(emptyTarget(value), value, options)
+ : value
+}
+
+function defaultArrayMerge(target, source, options) {
+ return target.concat(source).map(function(element) {
+ return cloneUnlessOtherwiseSpecified(element, options)
+ })
+}
+
+function getMergeFunction(key, options) {
+ if (!options.customMerge) {
+ return deepmerge
+ }
+ var customMerge = options.customMerge(key);
+ return typeof customMerge === 'function' ? customMerge : deepmerge
+}
+
+function getEnumerableOwnPropertySymbols(target) {
+ return Object.getOwnPropertySymbols
+ ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
+ return Object.propertyIsEnumerable.call(target, symbol)
+ })
+ : []
+}
+
+function getKeys(target) {
+ return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))
+}
+
+function propertyIsOnObject(object, property) {
+ try {
+ return property in object
+ } catch(_) {
+ return false
+ }
+}
+
+// Protects from prototype poisoning and unexpected merging up the prototype chain.
+function propertyIsUnsafe(target, key) {
+ return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
+ && !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
+ && Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
+}
+
+function mergeObject(target, source, options) {
+ var destination = {};
+ if (options.isMergeableObject(target)) {
+ getKeys(target).forEach(function(key) {
+ destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
+ });
+ }
+ getKeys(source).forEach(function(key) {
+ if (propertyIsUnsafe(target, key)) {
+ return
+ }
+
+ if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
+ destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
+ } else {
+ destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
+ }
+ });
+ return destination
+}
+
+function deepmerge(target, source, options) {
+ options = options || {};
+ options.arrayMerge = options.arrayMerge || defaultArrayMerge;
+ options.isMergeableObject = options.isMergeableObject || isMergeableObject;
+ // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
+ // implementations can use it. The caller may not replace it.
+ options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
+
+ var sourceIsArray = Array.isArray(source);
+ var targetIsArray = Array.isArray(target);
+ var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
+
+ if (!sourceAndTargetTypesMatch) {
+ return cloneUnlessOtherwiseSpecified(source, options)
+ } else if (sourceIsArray) {
+ return options.arrayMerge(target, source, options)
+ } else {
+ return mergeObject(target, source, options)
+ }
+}
+
+deepmerge.all = function deepmergeAll(array, options) {
+ if (!Array.isArray(array)) {
+ throw new Error('first argument should be an array')
+ }
+
+ return array.reduce(function(prev, next) {
+ return deepmerge(prev, next, options)
+ }, {})
+};
+
+var deepmerge_1 = deepmerge;
+
+module.exports = deepmerge_1;
+
+
+/***/ }),
+
+/***/ 5215:
+/***/ ((module) => {
+
+"use strict";
+
+
+// do not edit .js files directly - edit src/index.jst
+
+
+
+module.exports = function equal(a, b) {
+ if (a === b) return true;
+
+ if (a && b && typeof a == 'object' && typeof b == 'object') {
+ if (a.constructor !== b.constructor) return false;
+
+ var length, i, keys;
+ if (Array.isArray(a)) {
+ length = a.length;
+ if (length != b.length) return false;
+ for (i = length; i-- !== 0;)
+ if (!equal(a[i], b[i])) return false;
+ return true;
+ }
+
+
+
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
+
+ keys = Object.keys(a);
+ length = keys.length;
+ if (length !== Object.keys(b).length) return false;
+
+ for (i = length; i-- !== 0;)
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
+
+ for (i = length; i-- !== 0;) {
+ var key = keys[i];
+
+ if (!equal(a[key], b[key])) return false;
+ }
+
+ return true;
+ }
+
+ // true if both NaN, false otherwise
+ return a!==a && b!==b;
+};
+
+
+/***/ }),
+
/***/ 461:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
@@ -1349,8 +1478,8 @@ __webpack_require__.d(__webpack_exports__, {
CopyHandler: () => (/* reexport */ CopyHandler),
DefaultBlockAppender: () => (/* reexport */ DefaultBlockAppender),
DocumentBar: () => (/* reexport */ DocumentBar),
- DocumentOutline: () => (/* reexport */ document_outline),
- DocumentOutlineCheck: () => (/* reexport */ check),
+ DocumentOutline: () => (/* reexport */ DocumentOutline),
+ DocumentOutlineCheck: () => (/* reexport */ DocumentOutlineCheck),
EditorHistoryRedo: () => (/* reexport */ editor_history_redo),
EditorHistoryUndo: () => (/* reexport */ editor_history_undo),
EditorKeyboardShortcuts: () => (/* reexport */ EditorKeyboardShortcuts),
@@ -1374,22 +1503,30 @@ __webpack_require__.d(__webpack_exports__, {
ObserveTyping: () => (/* reexport */ ObserveTyping),
PageAttributesCheck: () => (/* reexport */ page_attributes_check),
PageAttributesOrder: () => (/* reexport */ PageAttributesOrderWithChecks),
- PageAttributesPanel: () => (/* reexport */ panel),
+ PageAttributesPanel: () => (/* reexport */ PageAttributesPanel),
PageAttributesParent: () => (/* reexport */ page_attributes_parent),
PageTemplate: () => (/* reexport */ classic_theme),
PanelColorSettings: () => (/* reexport */ PanelColorSettings),
PlainText: () => (/* reexport */ PlainText),
+ PluginBlockSettingsMenuItem: () => (/* reexport */ plugin_block_settings_menu_item),
+ PluginDocumentSettingPanel: () => (/* reexport */ plugin_document_setting_panel),
+ PluginMoreMenuItem: () => (/* reexport */ plugin_more_menu_item),
+ PluginPostPublishPanel: () => (/* reexport */ plugin_post_publish_panel),
+ PluginPostStatusInfo: () => (/* reexport */ plugin_post_status_info),
+ PluginPrePublishPanel: () => (/* reexport */ plugin_pre_publish_panel),
+ PluginSidebar: () => (/* reexport */ PluginSidebar),
+ PluginSidebarMoreMenuItem: () => (/* reexport */ PluginSidebarMoreMenuItem),
PostAuthor: () => (/* reexport */ post_author),
PostAuthorCheck: () => (/* reexport */ PostAuthorCheck),
- PostAuthorPanel: () => (/* reexport */ post_author_panel),
+ PostAuthorPanel: () => (/* reexport */ panel),
PostComments: () => (/* reexport */ post_comments),
- PostDiscussionPanel: () => (/* reexport */ post_discussion_panel),
- PostExcerpt: () => (/* reexport */ post_excerpt),
+ PostDiscussionPanel: () => (/* reexport */ PostDiscussionPanel),
+ PostExcerpt: () => (/* reexport */ PostExcerpt),
PostExcerptCheck: () => (/* reexport */ post_excerpt_check),
PostExcerptPanel: () => (/* reexport */ PostExcerptPanel),
PostFeaturedImage: () => (/* reexport */ post_featured_image),
PostFeaturedImageCheck: () => (/* reexport */ post_featured_image_check),
- PostFeaturedImagePanel: () => (/* reexport */ post_featured_image_panel),
+ PostFeaturedImagePanel: () => (/* reexport */ PostFeaturedImagePanel),
PostFormat: () => (/* reexport */ PostFormat),
PostFormatCheck: () => (/* reexport */ post_format_check),
PostLastRevision: () => (/* reexport */ post_last_revision),
@@ -1401,14 +1538,14 @@ __webpack_require__.d(__webpack_exports__, {
PostPingbacks: () => (/* reexport */ post_pingbacks),
PostPreviewButton: () => (/* reexport */ PostPreviewButton),
PostPublishButton: () => (/* reexport */ post_publish_button),
- PostPublishButtonLabel: () => (/* reexport */ label),
+ PostPublishButtonLabel: () => (/* reexport */ PublishButtonLabel),
PostPublishPanel: () => (/* reexport */ post_publish_panel),
PostSavedState: () => (/* reexport */ PostSavedState),
PostSchedule: () => (/* reexport */ PostSchedule),
PostScheduleCheck: () => (/* reexport */ PostScheduleCheck),
PostScheduleLabel: () => (/* reexport */ PostScheduleLabel),
PostSchedulePanel: () => (/* reexport */ PostSchedulePanel),
- PostSlug: () => (/* reexport */ post_slug),
+ PostSlug: () => (/* reexport */ PostSlug),
PostSlugCheck: () => (/* reexport */ PostSlugCheck),
PostSticky: () => (/* reexport */ PostSticky),
PostStickyCheck: () => (/* reexport */ PostStickyCheck),
@@ -1424,7 +1561,7 @@ __webpack_require__.d(__webpack_exports__, {
PostTitle: () => (/* reexport */ post_title),
PostTitleRaw: () => (/* reexport */ post_title_raw),
PostTrash: () => (/* reexport */ PostTrash),
- PostTrashCheck: () => (/* reexport */ post_trash_check),
+ PostTrashCheck: () => (/* reexport */ PostTrashCheck),
PostTypeSupportCheck: () => (/* reexport */ post_type_support_check),
PostURL: () => (/* reexport */ PostURL),
PostURLCheck: () => (/* reexport */ PostURLCheck),
@@ -1440,7 +1577,7 @@ __webpack_require__.d(__webpack_exports__, {
SkipToSelectedBlock: () => (/* reexport */ SkipToSelectedBlock),
TableOfContents: () => (/* reexport */ table_of_contents),
TextEditorGlobalKeyboardShortcuts: () => (/* reexport */ TextEditorGlobalKeyboardShortcuts),
- ThemeSupportCheck: () => (/* reexport */ theme_support_check),
+ ThemeSupportCheck: () => (/* reexport */ ThemeSupportCheck),
TimeToRead: () => (/* reexport */ TimeToRead),
URLInput: () => (/* reexport */ URLInput),
URLInputButton: () => (/* reexport */ URLInputButton),
@@ -1521,6 +1658,7 @@ __webpack_require__.d(selectors_namespaceObject, {
getEditedPostSlug: () => (getEditedPostSlug),
getEditedPostVisibility: () => (getEditedPostVisibility),
getEditorBlocks: () => (getEditorBlocks),
+ getEditorMode: () => (getEditorMode),
getEditorSelection: () => (getEditorSelection),
getEditorSelectionEnd: () => (getEditorSelectionEnd),
getEditorSelectionStart: () => (getEditorSelectionStart),
@@ -1593,6 +1731,7 @@ __webpack_require__.d(selectors_namespaceObject, {
isPostSavingLocked: () => (isPostSavingLocked),
isPreviewingPost: () => (isPreviewingPost),
isPublishSidebarEnabled: () => (isPublishSidebarEnabled),
+ isPublishSidebarOpened: () => (isPublishSidebarOpened),
isPublishingPost: () => (isPublishingPost),
isSavingNonPostEntityChanges: () => (isSavingNonPostEntityChanges),
isSavingPost: () => (isSavingPost),
@@ -1609,6 +1748,7 @@ __webpack_require__.d(actions_namespaceObject, {
__unstableSaveForPreview: () => (__unstableSaveForPreview),
autosave: () => (autosave),
clearSelectedBlock: () => (clearSelectedBlock),
+ closePublishSidebar: () => (closePublishSidebar),
createUndoLevel: () => (createUndoLevel),
disablePublishSidebar: () => (disablePublishSidebar),
editPost: () => (editPost),
@@ -1626,6 +1766,7 @@ __webpack_require__.d(actions_namespaceObject, {
moveBlocksDown: () => (moveBlocksDown),
moveBlocksUp: () => (moveBlocksUp),
multiSelect: () => (multiSelect),
+ openPublishSidebar: () => (openPublishSidebar),
receiveBlocks: () => (receiveBlocks),
redo: () => (redo),
refreshPost: () => (refreshPost),
@@ -1652,10 +1793,13 @@ __webpack_require__.d(actions_namespaceObject, {
startTyping: () => (startTyping),
stopMultiSelect: () => (stopMultiSelect),
stopTyping: () => (stopTyping),
+ switchEditorMode: () => (switchEditorMode),
synchronizeTemplate: () => (synchronizeTemplate),
toggleBlockMode: () => (toggleBlockMode),
+ toggleDistractionFree: () => (toggleDistractionFree),
toggleEditorPanelEnabled: () => (toggleEditorPanelEnabled),
toggleEditorPanelOpened: () => (toggleEditorPanelOpened),
+ togglePublishSidebar: () => (togglePublishSidebar),
toggleSelection: () => (toggleSelection),
trashPost: () => (trashPost),
undo: () => (undo),
@@ -1675,6 +1819,9 @@ __webpack_require__.r(private_actions_namespaceObject);
__webpack_require__.d(private_actions_namespaceObject, {
createTemplate: () => (createTemplate),
hideBlockTypes: () => (hideBlockTypes),
+ removeTemplates: () => (removeTemplates),
+ revertTemplate: () => (revertTemplate),
+ saveDirtyEntities: () => (saveDirtyEntities),
setCurrentTemplateId: () => (setCurrentTemplateId),
showBlockTypes: () => (showBlockTypes)
});
@@ -1683,8 +1830,53 @@ __webpack_require__.d(private_actions_namespaceObject, {
var private_selectors_namespaceObject = {};
__webpack_require__.r(private_selectors_namespaceObject);
__webpack_require__.d(private_selectors_namespaceObject, {
+ getCurrentTemplateTemplateParts: () => (getCurrentTemplateTemplateParts),
+ getInserterSidebarToggleRef: () => (getInserterSidebarToggleRef),
getInsertionPoint: () => (getInsertionPoint),
- getListViewToggleRef: () => (getListViewToggleRef)
+ getListViewToggleRef: () => (getListViewToggleRef),
+ getPostIcon: () => (getPostIcon),
+ hasPostMetaChanges: () => (hasPostMetaChanges)
+});
+
+// NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/actions.js
+var store_actions_namespaceObject = {};
+__webpack_require__.r(store_actions_namespaceObject);
+__webpack_require__.d(store_actions_namespaceObject, {
+ closeModal: () => (closeModal),
+ disableComplementaryArea: () => (disableComplementaryArea),
+ enableComplementaryArea: () => (enableComplementaryArea),
+ openModal: () => (openModal),
+ pinItem: () => (pinItem),
+ setDefaultComplementaryArea: () => (setDefaultComplementaryArea),
+ setFeatureDefaults: () => (setFeatureDefaults),
+ setFeatureValue: () => (setFeatureValue),
+ toggleFeature: () => (toggleFeature),
+ unpinItem: () => (unpinItem)
+});
+
+// NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/selectors.js
+var store_selectors_namespaceObject = {};
+__webpack_require__.r(store_selectors_namespaceObject);
+__webpack_require__.d(store_selectors_namespaceObject, {
+ getActiveComplementaryArea: () => (getActiveComplementaryArea),
+ isComplementaryAreaLoading: () => (isComplementaryAreaLoading),
+ isFeatureActive: () => (isFeatureActive),
+ isItemPinned: () => (isItemPinned),
+ isModalActive: () => (isModalActive)
+});
+
+// NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/index.js
+var build_module_namespaceObject = {};
+__webpack_require__.r(build_module_namespaceObject);
+__webpack_require__.d(build_module_namespaceObject, {
+ ActionItem: () => (action_item),
+ ComplementaryArea: () => (complementary_area),
+ ComplementaryAreaMoreMenuItem: () => (ComplementaryAreaMoreMenuItem),
+ FullscreenMode: () => (fullscreen_mode),
+ InterfaceSkeleton: () => (interface_skeleton),
+ NavigableRegion: () => (NavigableRegion),
+ PinnedItems: () => (pinned_items),
+ store: () => (store)
});
;// CONCATENATED MODULE: external ["wp","blocks"]
@@ -1701,26 +1893,97 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
const {
lock,
unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/editor');
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/editor');
;// CONCATENATED MODULE: external ["wp","i18n"]
const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
+;// CONCATENATED MODULE: external ["wp","blockEditor"]
+const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/bindings/pattern-overrides.js
/**
* WordPress dependencies
*/
+
+const CONTENT = 'content';
/* harmony default export */ const pattern_overrides = ({
name: 'core/pattern-overrides',
label: (0,external_wp_i18n_namespaceObject._x)('Pattern Overrides', 'block bindings source'),
- useSource: null,
- lockAttributesEditing: false
+ getValue({
+ registry,
+ clientId,
+ context,
+ attributeName
+ }) {
+ const patternOverridesContent = context['pattern/overrides'];
+ const {
+ getBlockAttributes
+ } = registry.select(external_wp_blockEditor_namespaceObject.store);
+ const currentBlockAttributes = getBlockAttributes(clientId);
+ if (!patternOverridesContent) {
+ return currentBlockAttributes[attributeName];
+ }
+ const overridableValue = patternOverridesContent?.[currentBlockAttributes?.metadata?.name]?.[attributeName];
+
+ // If there is no pattern client ID, or it is not overwritten, return the default value.
+ if (overridableValue === undefined) {
+ return currentBlockAttributes[attributeName];
+ }
+ return overridableValue === '' ? undefined : overridableValue;
+ },
+ setValues({
+ registry,
+ clientId,
+ attributes
+ }) {
+ const {
+ getBlockAttributes,
+ getBlockParentsByBlockName,
+ getBlocks
+ } = registry.select(external_wp_blockEditor_namespaceObject.store);
+ const currentBlockAttributes = getBlockAttributes(clientId);
+ const blockName = currentBlockAttributes?.metadata?.name;
+ if (!blockName) {
+ return;
+ }
+ const [patternClientId] = getBlockParentsByBlockName(clientId, 'core/block', true);
+
+ // If there is no pattern client ID, sync blocks with the same name and same attributes.
+ if (!patternClientId) {
+ const syncBlocksWithSameName = blocks => {
+ for (const block of blocks) {
+ if (block.attributes?.metadata?.name === blockName) {
+ registry.dispatch(external_wp_blockEditor_namespaceObject.store).updateBlockAttributes(block.clientId, attributes);
+ }
+ syncBlocksWithSameName(block.innerBlocks);
+ }
+ };
+ syncBlocksWithSameName(getBlocks());
+ return;
+ }
+ const currentBindingValue = getBlockAttributes(patternClientId)?.[CONTENT];
+ registry.dispatch(external_wp_blockEditor_namespaceObject.store).updateBlockAttributes(patternClientId, {
+ [CONTENT]: {
+ ...currentBindingValue,
+ [blockName]: {
+ ...currentBindingValue?.[blockName],
+ ...Object.entries(attributes).reduce((acc, [key, value]) => {
+ // TODO: We need a way to represent `undefined` in the serialized overrides.
+ // Also see: https://github.com/WordPress/gutenberg/pull/57249#discussion_r1452987871
+ // We use an empty string to represent undefined for now until
+ // we support a richer format for overrides and the block bindings API.
+ acc[key] = value === undefined ? '' : value;
+ return acc;
+ }, {})
+ }
+ }
+ });
+ },
+ canUserEditValue: () => true
});
;// CONCATENATED MODULE: external ["wp","coreData"]
const external_wp_coreData_namespaceObject = window["wp"]["coreData"];
-;// CONCATENATED MODULE: external ["wp","blockEditor"]
-const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/defaults.js
/**
* WordPress dependencies
@@ -2109,6 +2372,30 @@ function listViewToggleRef(state = {
}) {
return state;
}
+
+/**
+ * This reducer does nothing aside initializing a ref to the inserter sidebar toggle.
+ * We will have a unique ref per "editor" instance.
+ *
+ * @param {Object} state
+ * @return {Object} Reference to the inserter sidebar toggle button.
+ */
+function inserterSidebarToggleRef(state = {
+ current: null
+}) {
+ return state;
+}
+function publishSidebarActive(state = false, action) {
+ switch (action.type) {
+ case 'OPEN_PUBLISH_SIDEBAR':
+ return true;
+ case 'CLOSE_PUBLISH_SIDEBAR':
+ return false;
+ case 'TOGGLE_PUBLISH_SIDEBAR':
+ return !state;
+ }
+ return state;
+}
/* harmony default export */ const reducer = ((0,external_wp_data_namespaceObject.combineReducers)({
postId,
postType,
@@ -2124,308 +2411,12 @@ function listViewToggleRef(state = {
deviceType,
removedPanels,
blockInserterPanel,
+ inserterSidebarToggleRef,
listViewPanel,
- listViewToggleRef
+ listViewToggleRef,
+ publishSidebarActive
}));
-;// CONCATENATED MODULE: ./node_modules/rememo/rememo.js
-
-
-/** @typedef {(...args: any[]) => *[]} GetDependants */
-
-/** @typedef {() => void} Clear */
-
-/**
- * @typedef {{
- * getDependants: GetDependants,
- * clear: Clear
- * }} EnhancedSelector
- */
-
-/**
- * Internal cache entry.
- *
- * @typedef CacheNode
- *
- * @property {?CacheNode|undefined} [prev] Previous node.
- * @property {?CacheNode|undefined} [next] Next node.
- * @property {*[]} args Function arguments for cache entry.
- * @property {*} val Function result.
- */
-
-/**
- * @typedef Cache
- *
- * @property {Clear} clear Function to clear cache.
- * @property {boolean} [isUniqueByDependants] Whether dependants are valid in
- * considering cache uniqueness. A cache is unique if dependents are all arrays
- * or objects.
- * @property {CacheNode?} [head] Cache head.
- * @property {*[]} [lastDependants] Dependants from previous invocation.
- */
-
-/**
- * Arbitrary value used as key for referencing cache object in WeakMap tree.
- *
- * @type {{}}
- */
-var LEAF_KEY = {};
-
-/**
- * Returns the first argument as the sole entry in an array.
- *
- * @template T
- *
- * @param {T} value Value to return.
- *
- * @return {[T]} 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 {Cache} Cache object.
- */
-function createCache() {
- /** @type {Cache} */
- 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 {*[]} a First array.
- * @param {*[]} 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.
- *
- * @template {(...args: *[]) => *} S
- *
- * @param {S} selector Selector function.
- * @param {GetDependants=} getDependants Dependant getter returning an array of
- * references used in cache bust consideration.
- */
-/* harmony default export */ function rememo(selector, getDependants) {
- /** @type {WeakMap<*,*>} */
- var rootCache;
-
- /** @type {GetDependants} */
- var normalizedGetDependants = getDependants ? getDependants : arrayOf;
-
- /**
- * 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 {*[]} dependants Selector dependants.
- *
- * @return {Cache} Cache object.
- */
- function getCache(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);
- }
-
- /**
- * Resets root memoization cache.
- */
- function clear() {
- rootCache = new WeakMap();
- }
-
- /* eslint-disable jsdoc/check-param-names */
- /**
- * The augmented selector call, considering first whether dependants have
- * changed before passing it to underlying memoize function.
- *
- * @param {*} source Source object for derivation.
- * @param {...*} extraArgs Additional arguments to pass to selector.
- *
- * @return {*} Selector result.
- */
- /* eslint-enable jsdoc/check-param-names */
- 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 = normalizedGetDependants.apply(null, args);
- cache = getCache(dependants);
-
- // If not guaranteed uniqueness by dependants (primitive type), 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.
- /** @type {CacheNode} */ (node.prev).next = node.next;
- if (node.next) {
- node.next.prev = node.prev;
- }
-
- node.next = cache.head;
- node.prev = null;
- /** @type {CacheNode} */ (cache.head).prev = node;
- cache.head = node;
- }
-
- // Return immediately
- return node.val;
- }
-
- // No cached value found. Continue to insertion phase:
-
- node = /** @type {CacheNode} */ ({
- // 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 = normalizedGetDependants;
- callSelector.clear = clear;
- clear();
-
- return /** @type {S & EnhancedSelector} */ (callSelector);
-}
-
;// CONCATENATED MODULE: external ["wp","date"]
const external_wp_date_namespaceObject = window["wp"]["date"];
;// CONCATENATED MODULE: external ["wp","url"]
@@ -2435,22 +2426,23 @@ const external_wp_deprecated_namespaceObject = window["wp"]["deprecated"];
var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject);
;// CONCATENATED MODULE: external ["wp","element"]
const external_wp_element_namespaceObject = window["wp"]["element"];
-// EXTERNAL MODULE: external "React"
-var external_React_ = __webpack_require__(1609);
;// CONCATENATED MODULE: external ["wp","primitives"]
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/layout.js
-
/**
* WordPress dependencies
*/
-const layout = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const layout = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
+ })
+});
/* harmony default export */ const library_layout = (layout);
;// CONCATENATED MODULE: external ["wp","preferences"]
@@ -2475,62 +2467,78 @@ const TRASH_POST_NOTICE_ID = 'TRASH_POST_NOTICE_ID';
const PERMALINK_POSTNAME_REGEX = /%(?:postname|pagename)%/;
const ONE_MINUTE_IN_MS = 60 * 1000;
const AUTOSAVE_PROPERTIES = ['title', 'excerpt', 'content'];
+const TEMPLATE_PART_AREA_DEFAULT_CATEGORY = 'uncategorized';
+const TEMPLATE_POST_TYPE = 'wp_template';
+const TEMPLATE_PART_POST_TYPE = 'wp_template_part';
+const PATTERN_POST_TYPE = 'wp_block';
+const NAVIGATION_POST_TYPE = 'wp_navigation';
+const TEMPLATE_ORIGINS = {
+ custom: 'custom',
+ theme: 'theme',
+ plugin: 'plugin'
+};
+const TEMPLATE_POST_TYPES = ['wp_template', 'wp_template_part'];
+const GLOBAL_POST_TYPES = [...TEMPLATE_POST_TYPES, 'wp_block', 'wp_navigation'];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/header.js
-
/**
* WordPress dependencies
*/
-const header = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const header = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
+ })
+});
/* harmony default export */ const library_header = (header);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/footer.js
-
/**
* WordPress dependencies
*/
-const footer = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const footer = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- d: "M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ d: "M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
+ })
+});
/* harmony default export */ const library_footer = (footer);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/sidebar.js
-
/**
* WordPress dependencies
*/
-const sidebar = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const sidebar = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
+ })
+});
/* harmony default export */ const library_sidebar = (sidebar);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/symbol-filled.js
-
/**
* WordPress dependencies
*/
-const symbolFilled = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const symbolFilled = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
+ })
+});
/* harmony default export */ const symbol_filled = (symbolFilled);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/utils/get-template-part-icon.js
@@ -2558,11 +2566,6 @@ function getTemplatePartIcon(iconName) {
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/selectors.js
/**
- * External dependencies
- */
-
-
-/**
* WordPress dependencies
*/
@@ -2653,10 +2656,7 @@ const isEditedPostDirty = (0,external_wp_data_namespaceObject.createRegistrySele
// inferred to contain unsaved values.
const postType = getCurrentPostType(state);
const postId = getCurrentPostId(state);
- if (select(external_wp_coreData_namespaceObject.store).hasEditsForEntityRecord('postType', postType, postId)) {
- return true;
- }
- return false;
+ return select(external_wp_coreData_namespaceObject.store).hasEditsForEntityRecord('postType', postType, postId);
});
/**
@@ -2817,7 +2817,7 @@ function getCurrentPostAttribute(state, attributeName) {
*
* @return {*} Post attribute value.
*/
-const getNestedEditedPostProperty = rememo((state, attributeName) => {
+const getNestedEditedPostProperty = (0,external_wp_data_namespaceObject.createSelector)((state, attributeName) => {
const edits = getPostEdits(state);
if (!edits.hasOwnProperty(attributeName)) {
return getCurrentPostAttribute(state, attributeName);
@@ -3273,7 +3273,9 @@ function getEditedPostPreviewLink(state) {
*/
const getSuggestedPostFormat = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => () => {
const blocks = select(external_wp_blockEditor_namespaceObject.store).getBlocks();
- if (blocks.length > 2) return null;
+ if (blocks.length > 2) {
+ return null;
+ }
let name;
// If there is only one block in the content of the post grab its name
// so we can derive a suitable post format from it.
@@ -3397,7 +3399,7 @@ function getEditedPostSlug(state) {
}
/**
- * Returns the permalink for a post, split into it's three parts: the prefix,
+ * Returns the permalink for a post, split into its three parts: the prefix,
* the postName, and the suffix.
*
* @param {Object} state Editor state.
@@ -3502,7 +3504,7 @@ function canUserUseUnfilteredHTML(state) {
*
* @return {boolean} Whether the pre-publish panel should be shown or not.
*/
-const isPublishSidebarEnabled = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => () => !!select(external_wp_preferences_namespaceObject.store).get('core/edit-post', 'isPublishSidebarEnabled'));
+const isPublishSidebarEnabled = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => () => !!select(external_wp_preferences_namespaceObject.store).get('core', 'isPublishSidebarEnabled'));
/**
* Return the current block list.
@@ -3510,7 +3512,7 @@ const isPublishSidebarEnabled = (0,external_wp_data_namespaceObject.createRegist
* @param {Object} state
* @return {Array} Block list.
*/
-const getEditorBlocks = rememo(state => {
+const getEditorBlocks = (0,external_wp_data_namespaceObject.createSelector)(state => {
return getEditedPostAttribute(state, 'blocks') || (0,external_wp_blocks_namespaceObject.parse)(getEditedPostContent(state));
}, state => [getEditedPostAttribute(state, 'blocks'), getEditedPostContent(state)]);
@@ -3677,6 +3679,18 @@ function isInserterOpened(state) {
return !!state.blockInserterPanel;
}
+/**
+ * Returns the current editing mode.
+ *
+ * @param {Object} state Global application state.
+ *
+ * @return {string} Editing mode.
+ */
+const getEditorMode = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => () => {
+ var _select$get;
+ return (_select$get = select(external_wp_preferences_namespaceObject.store).get('core', 'editorMode')) !== null && _select$get !== void 0 ? _select$get : 'visual';
+});
+
/*
* Backward compatibility
*/
@@ -3991,9 +4005,10 @@ function __experimentalGetDefaultTemplateTypes(state) {
*
* @return {Array} The template part areas.
*/
-const __experimentalGetDefaultTemplatePartAreas = rememo(state => {
- const areas = getEditorSettings(state)?.defaultTemplatePartAreas || [];
- return areas?.map(item => {
+const __experimentalGetDefaultTemplatePartAreas = (0,external_wp_data_namespaceObject.createSelector)(state => {
+ var _getEditorSettings$de;
+ const areas = (_getEditorSettings$de = getEditorSettings(state)?.defaultTemplatePartAreas) !== null && _getEditorSettings$de !== void 0 ? _getEditorSettings$de : [];
+ return areas.map(item => {
return {
...item,
icon: getTemplatePartIcon(item.icon)
@@ -4009,14 +4024,14 @@ const __experimentalGetDefaultTemplatePartAreas = rememo(state => {
*
* @return {Object} The template type.
*/
-const __experimentalGetDefaultTemplateType = rememo((state, slug) => {
+const __experimentalGetDefaultTemplateType = (0,external_wp_data_namespaceObject.createSelector)((state, slug) => {
var _Object$values$find;
const templateTypes = __experimentalGetDefaultTemplateTypes(state);
if (!templateTypes) {
return EMPTY_OBJECT;
}
return (_Object$values$find = Object.values(templateTypes).find(type => type.slug === slug)) !== null && _Object$values$find !== void 0 ? _Object$values$find : EMPTY_OBJECT;
-}, (state, slug) => [__experimentalGetDefaultTemplateTypes(state), slug]);
+}, state => [__experimentalGetDefaultTemplateTypes(state)]);
/**
* Given a template entity, return information about it which is ready to be
@@ -4026,7 +4041,7 @@ const __experimentalGetDefaultTemplateType = rememo((state, slug) => {
* @param {Object} template The template for which we need information.
* @return {Object} Information about the template, including title, description, and icon.
*/
-function __experimentalGetTemplateInfo(state, template) {
+const __experimentalGetTemplateInfo = (0,external_wp_data_namespaceObject.createSelector)((state, template) => {
if (!template) {
return EMPTY_OBJECT;
}
@@ -4048,7 +4063,7 @@ function __experimentalGetTemplateInfo(state, template) {
description: templateDescription || defaultDescription,
icon: templateIcon
};
-}
+}, state => [__experimentalGetDefaultTemplateTypes(state), __experimentalGetDefaultTemplatePartAreas(state)]);
/**
* Returns a post type label depending on the current post.
@@ -4065,6 +4080,19 @@ const getPostTypeLabel = (0,external_wp_data_namespaceObject.createRegistrySelec
return postType?.labels?.singular_name;
});
+/**
+ * Returns true if the publish sidebar is opened.
+ *
+ * @param {Object} state Global application state
+ *
+ * @return {boolean} Whether the publish sidebar is open.
+ */
+function isPublishSidebarOpened(state) {
+ return state.publishSidebarActive;
+}
+
+;// CONCATENATED MODULE: external ["wp","a11y"]
+const external_wp_a11y_namespaceObject = window["wp"]["a11y"];
;// CONCATENATED MODULE: external ["wp","apiFetch"]
const external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
@@ -4246,6 +4274,8 @@ function getNotificationArgumentsForTrashFail(data) {
+
+
/**
* Internal dependencies
*/
@@ -4620,7 +4650,7 @@ function updatePostLock(lock) {
const enablePublishSidebar = () => ({
registry
}) => {
- registry.dispatch(external_wp_preferences_namespaceObject.store).set('core/edit-post', 'isPublishSidebarEnabled', true);
+ registry.dispatch(external_wp_preferences_namespaceObject.store).set('core', 'isPublishSidebarEnabled', true);
};
/**
@@ -4629,7 +4659,7 @@ const enablePublishSidebar = () => ({
const disablePublishSidebar = () => ({
registry
}) => {
- registry.dispatch(external_wp_preferences_namespaceObject.store).set('core/edit-post', 'isPublishSidebarEnabled', false);
+ registry.dispatch(external_wp_preferences_namespaceObject.store).set('core', 'isPublishSidebarEnabled', false);
};
/**
@@ -4799,7 +4829,6 @@ function updateEditorSettings(settings) {
/**
* Returns an action used to set the rendering mode of the post editor. We support multiple rendering modes:
*
- * - `all`: This is the default mode. It renders the post editor with all the features available. If a template is provided, it's preferred over the post.
* - `post-only`: This mode extracts the post blocks from the template and renders only those. The idea is to allow the user to edit the post/page in isolation without the wrapping template.
* - `template-locked`: This mode renders both the template and the post blocks but the template blocks are locked and can't be edited. The post blocks are editable.
*
@@ -4934,6 +4963,105 @@ function setIsListViewOpened(isOpen) {
}
/**
+ * Action that toggles Distraction free mode.
+ * Distraction free mode expects there are no sidebars, as due to the
+ * z-index values set, you can't close sidebars.
+ */
+const toggleDistractionFree = () => ({
+ dispatch,
+ registry
+}) => {
+ const isDistractionFree = registry.select(external_wp_preferences_namespaceObject.store).get('core', 'distractionFree');
+ if (isDistractionFree) {
+ registry.dispatch(external_wp_preferences_namespaceObject.store).set('core', 'fixedToolbar', false);
+ }
+ if (!isDistractionFree) {
+ registry.batch(() => {
+ registry.dispatch(external_wp_preferences_namespaceObject.store).set('core', 'fixedToolbar', true);
+ dispatch.setIsInserterOpened(false);
+ dispatch.setIsListViewOpened(false);
+ });
+ }
+ registry.batch(() => {
+ registry.dispatch(external_wp_preferences_namespaceObject.store).set('core', 'distractionFree', !isDistractionFree);
+ registry.dispatch(external_wp_notices_namespaceObject.store).createInfoNotice(isDistractionFree ? (0,external_wp_i18n_namespaceObject.__)('Distraction free off.') : (0,external_wp_i18n_namespaceObject.__)('Distraction free on.'), {
+ id: 'core/editor/distraction-free-mode/notice',
+ type: 'snackbar',
+ actions: [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Undo'),
+ onClick: () => {
+ registry.batch(() => {
+ registry.dispatch(external_wp_preferences_namespaceObject.store).set('core', 'fixedToolbar', isDistractionFree ? true : false);
+ registry.dispatch(external_wp_preferences_namespaceObject.store).toggle('core', 'distractionFree');
+ });
+ }
+ }]
+ });
+ });
+};
+
+/**
+ * Triggers an action used to switch editor mode.
+ *
+ * @param {string} mode The editor mode.
+ */
+const switchEditorMode = mode => ({
+ dispatch,
+ registry
+}) => {
+ registry.dispatch(external_wp_preferences_namespaceObject.store).set('core', 'editorMode', mode);
+
+ // Unselect blocks when we switch to a non visual mode.
+ if (mode !== 'visual') {
+ registry.dispatch(external_wp_blockEditor_namespaceObject.store).clearSelectedBlock();
+ }
+ if (mode === 'visual') {
+ (0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.__)('Visual editor selected'), 'assertive');
+ } else if (mode === 'text') {
+ const isDistractionFree = registry.select(external_wp_preferences_namespaceObject.store).get('core', 'distractionFree');
+ if (isDistractionFree) {
+ dispatch.toggleDistractionFree();
+ }
+ (0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.__)('Code editor selected'), 'assertive');
+ }
+};
+
+/**
+ * Returns an action object used in signalling that the user opened the publish
+ * sidebar.
+ *
+ * @return {Object} Action object
+ */
+function openPublishSidebar() {
+ return {
+ type: 'OPEN_PUBLISH_SIDEBAR'
+ };
+}
+
+/**
+ * Returns an action object used in signalling that the user closed the
+ * publish sidebar.
+ *
+ * @return {Object} Action object.
+ */
+function closePublishSidebar() {
+ return {
+ type: 'CLOSE_PUBLISH_SIDEBAR'
+ };
+}
+
+/**
+ * Returns an action object used in signalling that the user toggles the publish sidebar.
+ *
+ * @return {Object} Action object
+ */
+function togglePublishSidebar() {
+ return {
+ type: 'TOGGLE_PUBLISH_SIDEBAR'
+ };
+}
+
+/**
* Backward compatibility
*/
@@ -5103,6 +5231,29 @@ const insertDefaultBlock = getBlockEditorAction('insertDefaultBlock');
*/
const updateBlockListSettings = getBlockEditorAction('updateBlockListSettings');
+;// CONCATENATED MODULE: external ["wp","htmlEntities"]
+const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/utils/is-template-revertable.js
+/**
+ * Internal dependencies
+ */
+
+
+// Copy of the function from packages/edit-site/src/utils/is-template-revertable.js
+
+/**
+ * Check if a template or template part is revertable to its original theme-provided file.
+ *
+ * @param {Object} templateOrTemplatePart The entity to check.
+ * @return {boolean} Whether the entity is revertable.
+ */
+function isTemplateRevertable(templateOrTemplatePart) {
+ if (!templateOrTemplatePart) {
+ return false;
+ }
+ return templateOrTemplatePart.source === TEMPLATE_ORIGINS.custom && templateOrTemplatePart.has_theme_file;
+}
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/private-actions.js
/**
* WordPress dependencies
@@ -5112,6 +5263,16 @@ const updateBlockListSettings = getBlockEditorAction('updateBlockListSettings');
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
/**
* Returns an action object used to set which template is currently being used/edited.
*
@@ -5178,17 +5339,557 @@ const hideBlockTypes = blockNames => ({
registry.dispatch(external_wp_preferences_namespaceObject.store).set('core', 'hiddenBlockTypes', [...mergedBlockNames]);
};
+/**
+ * Save entity records marked as dirty.
+ *
+ * @param {Object} options Options for the action.
+ * @param {Function} [options.onSave] Callback when saving happens.
+ * @param {object[]} [options.dirtyEntityRecords] Array of dirty entities.
+ * @param {object[]} [options.entitiesToSkip] Array of entities to skip saving.
+ * @param {Function} [options.close] Callback when the actions is called. It should be consolidated with `onSave`.
+ */
+const saveDirtyEntities = ({
+ onSave,
+ dirtyEntityRecords = [],
+ entitiesToSkip = [],
+ close
+} = {}) => ({
+ registry
+}) => {
+ const PUBLISH_ON_SAVE_ENTITIES = [{
+ kind: 'postType',
+ name: 'wp_navigation'
+ }];
+ const saveNoticeId = 'site-editor-save-success';
+ const homeUrl = registry.select(external_wp_coreData_namespaceObject.store).getUnstableBase()?.home;
+ registry.dispatch(external_wp_notices_namespaceObject.store).removeNotice(saveNoticeId);
+ const entitiesToSave = dirtyEntityRecords.filter(({
+ kind,
+ name,
+ key,
+ property
+ }) => {
+ return !entitiesToSkip.some(elt => elt.kind === kind && elt.name === name && elt.key === key && elt.property === property);
+ });
+ close?.(entitiesToSave);
+ const siteItemsToSave = [];
+ const pendingSavedRecords = [];
+ entitiesToSave.forEach(({
+ kind,
+ name,
+ key,
+ property
+ }) => {
+ if ('root' === kind && 'site' === name) {
+ siteItemsToSave.push(property);
+ } else {
+ if (PUBLISH_ON_SAVE_ENTITIES.some(typeToPublish => typeToPublish.kind === kind && typeToPublish.name === name)) {
+ registry.dispatch(external_wp_coreData_namespaceObject.store).editEntityRecord(kind, name, key, {
+ status: 'publish'
+ });
+ }
+ pendingSavedRecords.push(registry.dispatch(external_wp_coreData_namespaceObject.store).saveEditedEntityRecord(kind, name, key));
+ }
+ });
+ if (siteItemsToSave.length) {
+ pendingSavedRecords.push(registry.dispatch(external_wp_coreData_namespaceObject.store).__experimentalSaveSpecifiedEntityEdits('root', 'site', undefined, siteItemsToSave));
+ }
+ registry.dispatch(external_wp_blockEditor_namespaceObject.store).__unstableMarkLastChangeAsPersistent();
+ Promise.all(pendingSavedRecords).then(values => {
+ return onSave ? onSave(values) : values;
+ }).then(values => {
+ if (values.some(value => typeof value === 'undefined')) {
+ registry.dispatch(external_wp_notices_namespaceObject.store).createErrorNotice((0,external_wp_i18n_namespaceObject.__)('Saving failed.'));
+ } else {
+ registry.dispatch(external_wp_notices_namespaceObject.store).createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Site updated.'), {
+ type: 'snackbar',
+ id: saveNoticeId,
+ actions: [{
+ label: (0,external_wp_i18n_namespaceObject.__)('View site'),
+ url: homeUrl
+ }]
+ });
+ }
+ }).catch(error => registry.dispatch(external_wp_notices_namespaceObject.store).createErrorNotice(`${(0,external_wp_i18n_namespaceObject.__)('Saving failed.')} ${error}`));
+};
+
+/**
+ * Reverts a template to its original theme-provided file.
+ *
+ * @param {Object} template The template to revert.
+ * @param {Object} [options]
+ * @param {boolean} [options.allowUndo] Whether to allow the user to undo
+ * reverting the template. Default true.
+ */
+const revertTemplate = (template, {
+ allowUndo = true
+} = {}) => async ({
+ registry
+}) => {
+ const noticeId = 'edit-site-template-reverted';
+ registry.dispatch(external_wp_notices_namespaceObject.store).removeNotice(noticeId);
+ if (!isTemplateRevertable(template)) {
+ registry.dispatch(external_wp_notices_namespaceObject.store).createErrorNotice((0,external_wp_i18n_namespaceObject.__)('This template is not revertable.'), {
+ type: 'snackbar'
+ });
+ return;
+ }
+ try {
+ const templateEntityConfig = registry.select(external_wp_coreData_namespaceObject.store).getEntityConfig('postType', template.type);
+ if (!templateEntityConfig) {
+ registry.dispatch(external_wp_notices_namespaceObject.store).createErrorNotice((0,external_wp_i18n_namespaceObject.__)('The editor has encountered an unexpected error. Please reload.'), {
+ type: 'snackbar'
+ });
+ return;
+ }
+ const fileTemplatePath = (0,external_wp_url_namespaceObject.addQueryArgs)(`${templateEntityConfig.baseURL}/${template.id}`, {
+ context: 'edit',
+ source: 'theme'
+ });
+ const fileTemplate = await external_wp_apiFetch_default()({
+ path: fileTemplatePath
+ });
+ if (!fileTemplate) {
+ registry.dispatch(external_wp_notices_namespaceObject.store).createErrorNotice((0,external_wp_i18n_namespaceObject.__)('The editor has encountered an unexpected error. Please reload.'), {
+ type: 'snackbar'
+ });
+ return;
+ }
+ const serializeBlocks = ({
+ blocks: blocksForSerialization = []
+ }) => (0,external_wp_blocks_namespaceObject.__unstableSerializeAndClean)(blocksForSerialization);
+ const edited = registry.select(external_wp_coreData_namespaceObject.store).getEditedEntityRecord('postType', template.type, template.id);
+
+ // We are fixing up the undo level here to make sure we can undo
+ // the revert in the header toolbar correctly.
+ registry.dispatch(external_wp_coreData_namespaceObject.store).editEntityRecord('postType', template.type, template.id, {
+ content: serializeBlocks,
+ // Required to make the `undo` behave correctly.
+ blocks: edited.blocks,
+ // Required to revert the blocks in the editor.
+ source: 'custom' // required to avoid turning the editor into a dirty state
+ }, {
+ undoIgnore: true // Required to merge this edit with the last undo level.
+ });
+ const blocks = (0,external_wp_blocks_namespaceObject.parse)(fileTemplate?.content?.raw);
+ registry.dispatch(external_wp_coreData_namespaceObject.store).editEntityRecord('postType', template.type, fileTemplate.id, {
+ content: serializeBlocks,
+ blocks,
+ source: 'theme'
+ });
+ if (allowUndo) {
+ const undoRevert = () => {
+ registry.dispatch(external_wp_coreData_namespaceObject.store).editEntityRecord('postType', template.type, edited.id, {
+ content: serializeBlocks,
+ blocks: edited.blocks,
+ source: 'custom'
+ });
+ };
+ registry.dispatch(external_wp_notices_namespaceObject.store).createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Template reset.'), {
+ type: 'snackbar',
+ id: noticeId,
+ actions: [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Undo'),
+ onClick: undoRevert
+ }]
+ });
+ }
+ } catch (error) {
+ const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : (0,external_wp_i18n_namespaceObject.__)('Template revert failed. Please reload.');
+ registry.dispatch(external_wp_notices_namespaceObject.store).createErrorNotice(errorMessage, {
+ type: 'snackbar'
+ });
+ }
+};
+
+/**
+ * Action that removes an array of templates, template parts or patterns.
+ *
+ * @param {Array} items An array of template,template part or pattern objects to remove.
+ */
+const removeTemplates = items => async ({
+ registry
+}) => {
+ const isResetting = items.every(item => !!item && (item.has_theme_file || item.templatePart && item.templatePart.has_theme_file));
+ const promiseResult = await Promise.allSettled(items.map(item => {
+ return registry.dispatch(external_wp_coreData_namespaceObject.store).deleteEntityRecord('postType', item.type, item.id, {
+ force: true
+ }, {
+ throwOnError: true
+ });
+ }));
+
+ // If all the promises were fulfilled with sucess.
+ if (promiseResult.every(({
+ status
+ }) => status === 'fulfilled')) {
+ let successMessage;
+ if (items.length === 1) {
+ // Depending on how the entity was retrieved its title might be
+ // an object or simple string.
+ const title = typeof items[0].title === 'string' ? items[0].title : items[0].title?.rendered;
+ successMessage = isResetting ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The template/part's name. */
+ (0,external_wp_i18n_namespaceObject.__)('"%s" reset.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title)) : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The template/part's name. */
+ (0,external_wp_i18n_namespaceObject.__)('"%s" deleted.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title));
+ } else {
+ successMessage = isResetting ? (0,external_wp_i18n_namespaceObject.__)('Items reset.') : (0,external_wp_i18n_namespaceObject.__)('Items deleted.');
+ }
+ registry.dispatch(external_wp_notices_namespaceObject.store).createSuccessNotice(successMessage, {
+ type: 'snackbar',
+ id: 'editor-template-deleted-success'
+ });
+ } else {
+ // If there was at lease one failure.
+ let errorMessage;
+ // If we were trying to delete a single template.
+ if (promiseResult.length === 1) {
+ if (promiseResult[0].reason?.message) {
+ errorMessage = promiseResult[0].reason.message;
+ } else {
+ errorMessage = isResetting ? (0,external_wp_i18n_namespaceObject.__)('An error occurred while reverting the item.') : (0,external_wp_i18n_namespaceObject.__)('An error occurred while deleting the item.');
+ }
+ // If we were trying to delete a multiple templates
+ } else {
+ const errorMessages = new Set();
+ const failedPromises = promiseResult.filter(({
+ status
+ }) => status === 'rejected');
+ for (const failedPromise of failedPromises) {
+ if (failedPromise.reason?.message) {
+ errorMessages.add(failedPromise.reason.message);
+ }
+ }
+ if (errorMessages.size === 0) {
+ errorMessage = (0,external_wp_i18n_namespaceObject.__)('An error occurred while deleting the items.');
+ } else if (errorMessages.size === 1) {
+ errorMessage = isResetting ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: an error message */
+ (0,external_wp_i18n_namespaceObject.__)('An error occurred while reverting the items: %s'), [...errorMessages][0]) : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: an error message */
+ (0,external_wp_i18n_namespaceObject.__)('An error occurred while deleting the items: %s'), [...errorMessages][0]);
+ } else {
+ errorMessage = isResetting ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: a list of comma separated error messages */
+ (0,external_wp_i18n_namespaceObject.__)('Some errors occurred while reverting the items: %s'), [...errorMessages].join(',')) : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: a list of comma separated error messages */
+ (0,external_wp_i18n_namespaceObject.__)('Some errors occurred while deleting the items: %s'), [...errorMessages].join(','));
+ }
+ }
+ registry.dispatch(external_wp_notices_namespaceObject.store).createErrorNotice(errorMessage, {
+ type: 'snackbar'
+ });
+ }
+};
+
+// EXTERNAL MODULE: ./node_modules/fast-deep-equal/index.js
+var fast_deep_equal = __webpack_require__(5215);
+var fast_deep_equal_default = /*#__PURE__*/__webpack_require__.n(fast_deep_equal);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/symbol.js
+/**
+ * WordPress dependencies
+ */
+
+
+const symbol = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
+ })
+});
+/* harmony default export */ const library_symbol = (symbol);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/navigation.js
+/**
+ * WordPress dependencies
+ */
+
+
+const navigation = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"
+ })
+});
+/* harmony default export */ const library_navigation = (navigation);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/page.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+const page = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"
+ })]
+});
+/* harmony default export */ const library_page = (page);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/verse.js
+/**
+ * WordPress dependencies
+ */
+
+
+const verse = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
+/* harmony default export */ const library_verse = (verse);
+
+;// CONCATENATED MODULE: ./node_modules/memize/dist/index.js
+/**
+ * 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 {(...args: any[]) => any} F
+ *
+ * @param {F} fn Function to memoize.
+ * @param {MemizeOptions} [options] Options object.
+ *
+ * @return {((...args: Parameters<F>) => ReturnType<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;
+ };
+
+ // 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;
+}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/utils/get-filtered-template-parts.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+const EMPTY_ARRAY = [];
+
+/**
+ * Get a flattened and filtered list of template parts and the matching block for that template part.
+ *
+ * Takes a list of blocks defined within a template, and a list of template parts, and returns a
+ * flattened list of template parts and the matching block for that template part.
+ *
+ * @param {Array} blocks Blocks to flatten.
+ * @param {?Array} templateParts Available template parts.
+ * @return {Array} An array of template parts and their blocks.
+ */
+function getFilteredTemplatePartBlocks(blocks = EMPTY_ARRAY, templateParts) {
+ const templatePartsById = templateParts ?
+ // Key template parts by their ID.
+ templateParts.reduce((newTemplateParts, part) => ({
+ ...newTemplateParts,
+ [part.id]: part
+ }), {}) : {};
+ const result = [];
+
+ // Iterate over all blocks, recursing into inner blocks.
+ // Output will be based on a depth-first traversal.
+ const stack = [...blocks];
+ while (stack.length) {
+ const {
+ innerBlocks,
+ ...block
+ } = stack.shift();
+ // Place inner blocks at the beginning of the stack to preserve order.
+ stack.unshift(...innerBlocks);
+ if ((0,external_wp_blocks_namespaceObject.isTemplatePart)(block)) {
+ const {
+ attributes: {
+ theme,
+ slug
+ }
+ } = block;
+ const templatePartId = `${theme}//${slug}`;
+ const templatePart = templatePartsById[templatePartId];
+
+ // Only add to output if the found template part block is in the list of available template parts.
+ if (templatePart) {
+ result.push({
+ templatePart,
+ block
+ });
+ }
+ }
+ }
+ return result;
+}
+const memoizedGetFilteredTemplatePartBlocks = memize(getFilteredTemplatePartBlocks);
+
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/private-selectors.js
/**
+ * External dependencies
+ */
+
+
+/**
* WordPress dependencies
*/
+
+
/**
* Internal dependencies
*/
+
+
const EMPTY_INSERTION_POINT = {
rootClientId: undefined,
insertionIndex: undefined,
@@ -5202,7 +5903,7 @@ const EMPTY_INSERTION_POINT = {
*
* @return {Object} The root client ID, index to insert at and starting filter value.
*/
-const getInsertionPoint = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => state => {
+const getInsertionPoint = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (0,external_wp_data_namespaceObject.createSelector)(state => {
if (typeof state.blockInserterPanel === 'object') {
return state.blockInserterPanel;
}
@@ -5217,10 +5918,87 @@ const getInsertionPoint = (0,external_wp_data_namespaceObject.createRegistrySele
}
}
return EMPTY_INSERTION_POINT;
-});
+}, state => {
+ const [postContentClientId] = select(external_wp_blockEditor_namespaceObject.store).getBlocksByName('core/post-content');
+ return [state.blockInserterPanel, getRenderingMode(state), postContentClientId];
+}));
function getListViewToggleRef(state) {
return state.listViewToggleRef;
}
+function getInserterSidebarToggleRef(state) {
+ return state.inserterSidebarToggleRef;
+}
+const CARD_ICONS = {
+ wp_block: library_symbol,
+ wp_navigation: library_navigation,
+ page: library_page,
+ post: library_verse
+};
+const getPostIcon = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, postType, options) => {
+ {
+ if (postType === 'wp_template_part' || postType === 'wp_template') {
+ return __experimentalGetDefaultTemplatePartAreas(state).find(item => options.area === item.area)?.icon || library_layout;
+ }
+ if (CARD_ICONS[postType]) {
+ return CARD_ICONS[postType];
+ }
+ const postTypeEntity = select(external_wp_coreData_namespaceObject.store).getPostType(postType);
+ // `icon` is the `menu_icon` property of a post type. We
+ // only handle `dashicons` for now, even if the `menu_icon`
+ // also supports urls and svg as values.
+ if (postTypeEntity?.icon?.startsWith('dashicons-')) {
+ return postTypeEntity.icon.slice(10);
+ }
+ return library_page;
+ }
+});
+
+/**
+ * Returns the template parts and their blocks for the current edited template.
+ *
+ * @param {Object} state Global application state.
+ * @return {Array} Template parts and their blocks in an array.
+ */
+const getCurrentTemplateTemplateParts = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => () => {
+ const templateParts = select(external_wp_coreData_namespaceObject.store).getEntityRecords('postType', TEMPLATE_PART_POST_TYPE, {
+ per_page: -1
+ });
+ const clientIds = select(external_wp_blockEditor_namespaceObject.store).getBlocksByName('core/template-part');
+ const blocks = select(external_wp_blockEditor_namespaceObject.store).getBlocksByClientId(clientIds);
+ return memoizedGetFilteredTemplatePartBlocks(blocks, templateParts);
+});
+
+/**
+ * Returns true if there are unsaved changes to the
+ * post's meta fields, and false otherwise.
+ *
+ * @param {Object} state Global application state.
+ * @param {string} postType The post type of the post.
+ * @param {number} postId The ID of the post.
+ *
+ * @return {boolean} Whether there are edits or not in the meta fields of the relevant post.
+ */
+const hasPostMetaChanges = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, postType, postId) => {
+ const {
+ type: currentPostType,
+ id: currentPostId
+ } = getCurrentPost(state);
+ // If no postType or postId is passed, use the current post.
+ const edits = select(external_wp_coreData_namespaceObject.store).getEntityRecordNonTransientEdits('postType', postType || currentPostType, postId || currentPostId);
+ if (!edits?.meta) {
+ return false;
+ }
+
+ // Compare if anything apart from `footnotes` has changed.
+ const originalPostMeta = select(external_wp_coreData_namespaceObject.store).getEntityRecord('postType', postType || currentPostType, postId || currentPostId)?.meta;
+ return !fast_deep_equal_default()({
+ ...originalPostMeta,
+ footnotes: undefined
+ }, {
+ ...edits.meta,
+ footnotes: undefined
+ });
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/index.js
/**
@@ -5280,35 +6058,58 @@ unlock(store_store).registerPrivateSelectors(private_selectors_namespaceObject);
/* harmony default export */ const post_meta = ({
name: 'core/post-meta',
label: (0,external_wp_i18n_namespaceObject._x)('Post Meta', 'block bindings source'),
- useSource(props, sourceAttributes) {
- const {
- getCurrentPostType
- } = (0,external_wp_data_namespaceObject.useSelect)(store_store);
- const {
- context
- } = props;
- const {
- key: metaKey
- } = sourceAttributes;
- const postType = context.postType ? context.postType : getCurrentPostType();
- const [meta, setMeta] = (0,external_wp_coreData_namespaceObject.useEntityProp)('postType', context.postType, 'meta', context.postId);
+ getPlaceholder({
+ args
+ }) {
+ return args.key;
+ },
+ getValue({
+ registry,
+ context,
+ args
+ }) {
+ return registry.select(external_wp_coreData_namespaceObject.store).getEditedEntityRecord('postType', context?.postType, context?.postId).meta?.[args.key];
+ },
+ setValue({
+ registry,
+ context,
+ args,
+ value
+ }) {
+ registry.dispatch(external_wp_coreData_namespaceObject.store).editEntityRecord('postType', context?.postType, context?.postId, {
+ meta: {
+ [args.key]: value
+ }
+ });
+ },
+ canUserEditValue({
+ select,
+ context,
+ args
+ }) {
+ // Lock editing in query loop.
+ if (context?.query || context?.queryId) {
+ return false;
+ }
+ const postType = context?.postType || select(store_store).getCurrentPostType();
+
+ // Check that editing is happening in the post editor and not a template.
if (postType === 'wp_template') {
- return {
- placeholder: metaKey
- };
+ return false;
}
- const metaValue = meta[metaKey];
- const updateMetaValue = newValue => {
- setMeta({
- ...meta,
- [metaKey]: newValue
- });
- };
- return {
- placeholder: metaKey,
- value: metaValue,
- updateValue: updateMetaValue
- };
+
+ // Check that the custom field is not protected and available in the REST API.
+ const isFieldExposed = !!select(external_wp_coreData_namespaceObject.store).getEntityRecord('postType', postType, context?.postId)?.meta?.[args.key];
+ if (!isFieldExposed) {
+ return false;
+ }
+
+ // Check that the user has the capability to edit post meta.
+ const canUserEdit = select(external_wp_coreData_namespaceObject.store).canUserEditEntityRecord('postType', context?.postType, context?.postId);
+ if (!canUserEdit) {
+ return false;
+ }
+ return true;
}
});
@@ -5328,12 +6129,11 @@ const {
registerBlockBindingsSource
} = unlock((0,external_wp_data_namespaceObject.dispatch)(external_wp_blocks_namespaceObject.store));
registerBlockBindingsSource(post_meta);
-if (false) {}
+registerBlockBindingsSource(pattern_overrides);
;// CONCATENATED MODULE: external ["wp","compose"]
const external_wp_compose_namespaceObject = window["wp"]["compose"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/hooks/custom-sources-backwards-compatibility.js
-
/**
* WordPress dependencies
*/
@@ -5370,6 +6170,7 @@ const external_wp_compose_namespaceObject = window["wp"]["compose"];
*
* @return {WPHigherOrderComponent} Higher-order component.
*/
+
const createWithMetaAttributeSource = metaAttributes => (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockEdit => ({
attributes,
setAttributes,
@@ -5381,7 +6182,7 @@ const createWithMetaAttributeSource = metaAttributes => (0,external_wp_compose_n
...attributes,
...Object.fromEntries(Object.entries(metaAttributes).map(([attributeKey, metaKey]) => [attributeKey, meta[metaKey]]))
}), [attributes, meta]);
- return (0,external_React_.createElement)(BlockEdit, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockEdit, {
attributes: mergedAttributes,
setAttributes: nextAttributes => {
const nextMeta = Object.fromEntries(Object.entries(nextAttributes !== null && nextAttributes !== void 0 ? nextAttributes : {}).filter(
@@ -5423,7 +6224,6 @@ function shimAttributeSource(settings) {
(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/editor/custom-sources-backwards-compatibility/shim-attribute-source', shimAttributeSource);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/autocompleters/user.js
-
/**
* WordPress dependencies
*/
@@ -5433,19 +6233,25 @@ function shimAttributeSource(settings) {
/** @typedef {import('@wordpress/components').WPCompleter} WPCompleter */
+
+
function getUserLabel(user) {
- const avatar = user.avatar_urls && user.avatar_urls[24] ? (0,external_React_.createElement)("img", {
+ const avatar = user.avatar_urls && user.avatar_urls[24] ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
className: "editor-autocompleters__user-avatar",
alt: "",
src: user.avatar_urls[24]
- }) : (0,external_React_.createElement)("span", {
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
className: "editor-autocompleters__no-avatar"
});
- return (0,external_React_.createElement)(external_React_.Fragment, null, avatar, (0,external_React_.createElement)("span", {
- className: "editor-autocompleters__user-name"
- }, user.name), (0,external_React_.createElement)("span", {
- className: "editor-autocompleters__user-slug"
- }, user.slug));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [avatar, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "editor-autocompleters__user-name",
+ children: user.name
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "editor-autocompleters__user-slug",
+ children: user.slug
+ })]
+ });
}
/**
@@ -5498,10 +6304,19 @@ function setDefaultCompleters(completers = []) {
}
(0,external_wp_hooks_namespaceObject.addFilter)('editor.Autocomplete.completers', 'editor/autocompleters/set-default-completers', setDefaultCompleters);
+;// CONCATENATED MODULE: external ["wp","mediaUtils"]
+const external_wp_mediaUtils_namespaceObject = window["wp"]["mediaUtils"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/hooks/media-upload.js
+/**
+ * WordPress dependencies
+ */
+
+
+(0,external_wp_hooks_namespaceObject.addFilter)('editor.MediaUpload', 'core/editor/components/media-upload', () => external_wp_mediaUtils_namespaceObject.MediaUpload);
+
;// CONCATENATED MODULE: external ["wp","patterns"]
const external_wp_patterns_namespaceObject = window["wp"]["patterns"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/hooks/pattern-overrides.js
-
/**
* WordPress dependencies
*/
@@ -5511,16 +6326,24 @@ const external_wp_patterns_namespaceObject = window["wp"]["patterns"];
+
/**
* Internal dependencies
*/
+
+/** @typedef {import('@wordpress/blocks').WPBlockSettings} WPBlockSettings */
+
+
+
const {
- useSetPatternBindings,
+ PatternOverridesControls,
ResetOverridesControl,
+ PatternOverridesBlockControls,
PATTERN_TYPES,
- PARTIAL_SYNCING_SUPPORTED_BLOCKS
+ PARTIAL_SYNCING_SUPPORTED_BLOCKS,
+ PATTERN_SYNC_TYPES
} = unlock(external_wp_patterns_namespaceObject.privateApis);
/**
@@ -5533,32 +6356,51 @@ const {
* @return {Component} Wrapped component.
*/
const withPatternOverrideControls = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockEdit => props => {
- const isSupportedBlock = Object.keys(PARTIAL_SYNCING_SUPPORTED_BLOCKS).includes(props.name);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(BlockEdit, {
- ...props
- }), isSupportedBlock && (0,external_React_.createElement)(BindingUpdater, {
- ...props
- }), props.isSelected && isSupportedBlock && (0,external_React_.createElement)(ControlsWithStoreSubscription, {
- ...props
- }));
-});
-function BindingUpdater(props) {
- const postType = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getCurrentPostType(), []);
- useSetPatternBindings(props, postType);
- return null;
-}
+ const isSupportedBlock = !!PARTIAL_SYNCING_SUPPORTED_BLOCKS[props.name];
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockEdit, {
+ ...props
+ }), props.isSelected && isSupportedBlock && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ControlsWithStoreSubscription, {
+ ...props
+ }), isSupportedBlock && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternOverridesBlockControls, {})]
+ });
+}, 'withPatternOverrideControls');
// Split into a separate component to avoid a store subscription
// on every block.
function ControlsWithStoreSubscription(props) {
const blockEditingMode = (0,external_wp_blockEditor_namespaceObject.useBlockEditingMode)();
- const isEditingPattern = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getCurrentPostType() === PATTERN_TYPES.user, []);
+ const {
+ hasPatternOverridesSource,
+ isEditingSyncedPattern
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getBlockBindingsSource
+ } = unlock(select(external_wp_blocks_namespaceObject.store));
+ const {
+ getCurrentPostType,
+ getEditedPostAttribute
+ } = select(store_store);
+ return {
+ // For editing link to the site editor if the theme and user permissions support it.
+ hasPatternOverridesSource: !!getBlockBindingsSource('core/pattern-overrides'),
+ isEditingSyncedPattern: getCurrentPostType() === PATTERN_TYPES.user && getEditedPostAttribute('meta')?.wp_pattern_sync_status !== PATTERN_SYNC_TYPES.unsynced && getEditedPostAttribute('wp_pattern_sync_status') !== PATTERN_SYNC_TYPES.unsynced
+ };
+ }, []);
const bindings = props.attributes.metadata?.bindings;
const hasPatternBindings = !!bindings && Object.values(bindings).some(binding => binding.source === 'core/pattern-overrides');
- const shouldShowResetOverridesControl = !isEditingPattern && !!props.attributes.metadata?.name && blockEditingMode !== 'disabled' && hasPatternBindings;
- return (0,external_React_.createElement)(external_React_.Fragment, null, shouldShowResetOverridesControl && (0,external_React_.createElement)(ResetOverridesControl, {
- ...props
- }));
+ const shouldShowPatternOverridesControls = isEditingSyncedPattern && blockEditingMode === 'default';
+ const shouldShowResetOverridesControl = !isEditingSyncedPattern && !!props.attributes.metadata?.name && blockEditingMode !== 'disabled' && hasPatternBindings;
+ if (!hasPatternOverridesSource) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [shouldShowPatternOverridesControls && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternOverridesControls, {
+ ...props
+ }), shouldShowResetOverridesControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResetOverridesControl, {
+ ...props
+ })]
+ });
}
(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/editor/with-pattern-override-controls', withPatternOverrideControls);
@@ -5570,8 +6412,1310 @@ function ControlsWithStoreSubscription(props) {
+
;// CONCATENATED MODULE: external ["wp","keyboardShortcuts"]
const external_wp_keyboardShortcuts_namespaceObject = window["wp"]["keyboardShortcuts"];
+;// CONCATENATED MODULE: ./node_modules/clsx/dist/clsx.mjs
+function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
+;// CONCATENATED MODULE: external ["wp","components"]
+const external_wp_components_namespaceObject = window["wp"]["components"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
+/**
+ * WordPress dependencies
+ */
+
+
+const check = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
+ })
+});
+/* harmony default export */ const library_check = (check);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js
+/**
+ * WordPress dependencies
+ */
+
+
+const starFilled = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const star_filled = (starFilled);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js
+/**
+ * WordPress dependencies
+ */
+
+
+const starEmpty = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const star_empty = (starEmpty);
+
+;// CONCATENATED MODULE: external ["wp","viewport"]
+const external_wp_viewport_namespaceObject = window["wp"]["viewport"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
+/**
+ * WordPress dependencies
+ */
+
+
+const closeSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
+ })
+});
+/* harmony default export */ const close_small = (closeSmall);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/deprecated.js
+/**
+ * WordPress dependencies
+ */
+
+function normalizeComplementaryAreaScope(scope) {
+ if (['core/edit-post', 'core/edit-site'].includes(scope)) {
+ external_wp_deprecated_default()(`${scope} interface scope`, {
+ alternative: 'core interface scope',
+ hint: 'core/edit-post and core/edit-site are merging.',
+ version: '6.6'
+ });
+ return 'core';
+ }
+ return scope;
+}
+function normalizeComplementaryAreaName(scope, name) {
+ if (scope === 'core' && name === 'edit-site/template') {
+ external_wp_deprecated_default()(`edit-site/template sidebar`, {
+ alternative: 'edit-post/document',
+ version: '6.6'
+ });
+ return 'edit-post/document';
+ }
+ if (scope === 'core' && name === 'edit-site/block-inspector') {
+ external_wp_deprecated_default()(`edit-site/block-inspector sidebar`, {
+ alternative: 'edit-post/block',
+ version: '6.6'
+ });
+ return 'edit-post/block';
+ }
+ return name;
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/actions.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+/**
+ * Set a default complementary area.
+ *
+ * @param {string} scope Complementary area scope.
+ * @param {string} area Area identifier.
+ *
+ * @return {Object} Action object.
+ */
+const setDefaultComplementaryArea = (scope, area) => {
+ scope = normalizeComplementaryAreaScope(scope);
+ area = normalizeComplementaryAreaName(scope, area);
+ return {
+ type: 'SET_DEFAULT_COMPLEMENTARY_AREA',
+ scope,
+ area
+ };
+};
+
+/**
+ * Enable the complementary area.
+ *
+ * @param {string} scope Complementary area scope.
+ * @param {string} area Area identifier.
+ */
+const enableComplementaryArea = (scope, area) => ({
+ registry,
+ dispatch
+}) => {
+ // Return early if there's no area.
+ if (!area) {
+ return;
+ }
+ scope = normalizeComplementaryAreaScope(scope);
+ area = normalizeComplementaryAreaName(scope, area);
+ const isComplementaryAreaVisible = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
+ if (!isComplementaryAreaVisible) {
+ registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'isComplementaryAreaVisible', true);
+ }
+ dispatch({
+ type: 'ENABLE_COMPLEMENTARY_AREA',
+ scope,
+ area
+ });
+};
+
+/**
+ * Disable the complementary area.
+ *
+ * @param {string} scope Complementary area scope.
+ */
+const disableComplementaryArea = scope => ({
+ registry
+}) => {
+ scope = normalizeComplementaryAreaScope(scope);
+ const isComplementaryAreaVisible = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
+ if (isComplementaryAreaVisible) {
+ registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'isComplementaryAreaVisible', false);
+ }
+};
+
+/**
+ * Pins an item.
+ *
+ * @param {string} scope Item scope.
+ * @param {string} item Item identifier.
+ *
+ * @return {Object} Action object.
+ */
+const pinItem = (scope, item) => ({
+ registry
+}) => {
+ // Return early if there's no item.
+ if (!item) {
+ return;
+ }
+ scope = normalizeComplementaryAreaScope(scope);
+ item = normalizeComplementaryAreaName(scope, item);
+ const pinnedItems = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'pinnedItems');
+
+ // The item is already pinned, there's nothing to do.
+ if (pinnedItems?.[item] === true) {
+ return;
+ }
+ registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'pinnedItems', {
+ ...pinnedItems,
+ [item]: true
+ });
+};
+
+/**
+ * Unpins an item.
+ *
+ * @param {string} scope Item scope.
+ * @param {string} item Item identifier.
+ */
+const unpinItem = (scope, item) => ({
+ registry
+}) => {
+ // Return early if there's no item.
+ if (!item) {
+ return;
+ }
+ scope = normalizeComplementaryAreaScope(scope);
+ item = normalizeComplementaryAreaName(scope, item);
+ const pinnedItems = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'pinnedItems');
+ registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'pinnedItems', {
+ ...pinnedItems,
+ [item]: false
+ });
+};
+
+/**
+ * Returns an action object used in signalling that a feature should be toggled.
+ *
+ * @param {string} scope The feature scope (e.g. core/edit-post).
+ * @param {string} featureName The feature name.
+ */
+function toggleFeature(scope, featureName) {
+ return function ({
+ registry
+ }) {
+ external_wp_deprecated_default()(`dispatch( 'core/interface' ).toggleFeature`, {
+ since: '6.0',
+ alternative: `dispatch( 'core/preferences' ).toggle`
+ });
+ registry.dispatch(external_wp_preferences_namespaceObject.store).toggle(scope, featureName);
+ };
+}
+
+/**
+ * Returns an action object used in signalling that a feature should be set to
+ * a true or false value
+ *
+ * @param {string} scope The feature scope (e.g. core/edit-post).
+ * @param {string} featureName The feature name.
+ * @param {boolean} value The value to set.
+ *
+ * @return {Object} Action object.
+ */
+function setFeatureValue(scope, featureName, value) {
+ return function ({
+ registry
+ }) {
+ external_wp_deprecated_default()(`dispatch( 'core/interface' ).setFeatureValue`, {
+ since: '6.0',
+ alternative: `dispatch( 'core/preferences' ).set`
+ });
+ registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, featureName, !!value);
+ };
+}
+
+/**
+ * Returns an action object used in signalling that defaults should be set for features.
+ *
+ * @param {string} scope The feature scope (e.g. core/edit-post).
+ * @param {Object<string, boolean>} defaults A key/value map of feature names to values.
+ *
+ * @return {Object} Action object.
+ */
+function setFeatureDefaults(scope, defaults) {
+ return function ({
+ registry
+ }) {
+ external_wp_deprecated_default()(`dispatch( 'core/interface' ).setFeatureDefaults`, {
+ since: '6.0',
+ alternative: `dispatch( 'core/preferences' ).setDefaults`
+ });
+ registry.dispatch(external_wp_preferences_namespaceObject.store).setDefaults(scope, defaults);
+ };
+}
+
+/**
+ * Returns an action object used in signalling that the user opened a modal.
+ *
+ * @param {string} name A string that uniquely identifies the modal.
+ *
+ * @return {Object} Action object.
+ */
+function openModal(name) {
+ return {
+ type: 'OPEN_MODAL',
+ name
+ };
+}
+
+/**
+ * Returns an action object signalling that the user closed a modal.
+ *
+ * @return {Object} Action object.
+ */
+function closeModal() {
+ return {
+ type: 'CLOSE_MODAL'
+ };
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/selectors.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+/**
+ * Returns the complementary area that is active in a given scope.
+ *
+ * @param {Object} state Global application state.
+ * @param {string} scope Item scope.
+ *
+ * @return {string | null | undefined} The complementary area that is active in the given scope.
+ */
+const getActiveComplementaryArea = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope) => {
+ scope = normalizeComplementaryAreaScope(scope);
+ const isComplementaryAreaVisible = select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
+
+ // Return `undefined` to indicate that the user has never toggled
+ // visibility, this is the vanilla default. Other code relies on this
+ // nuance in the return value.
+ if (isComplementaryAreaVisible === undefined) {
+ return undefined;
+ }
+
+ // Return `null` to indicate the user hid the complementary area.
+ if (isComplementaryAreaVisible === false) {
+ return null;
+ }
+ return state?.complementaryAreas?.[scope];
+});
+const isComplementaryAreaLoading = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope) => {
+ scope = normalizeComplementaryAreaScope(scope);
+ const isVisible = select(external_wp_preferences_namespaceObject.store).get(scope, 'isComplementaryAreaVisible');
+ const identifier = state?.complementaryAreas?.[scope];
+ return isVisible && identifier === undefined;
+});
+
+/**
+ * Returns a boolean indicating if an item is pinned or not.
+ *
+ * @param {Object} state Global application state.
+ * @param {string} scope Scope.
+ * @param {string} item Item to check.
+ *
+ * @return {boolean} True if the item is pinned and false otherwise.
+ */
+const isItemPinned = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope, item) => {
+ var _pinnedItems$item;
+ scope = normalizeComplementaryAreaScope(scope);
+ item = normalizeComplementaryAreaName(scope, item);
+ const pinnedItems = select(external_wp_preferences_namespaceObject.store).get(scope, 'pinnedItems');
+ return (_pinnedItems$item = pinnedItems?.[item]) !== null && _pinnedItems$item !== void 0 ? _pinnedItems$item : true;
+});
+
+/**
+ * Returns a boolean indicating whether a feature is active for a particular
+ * scope.
+ *
+ * @param {Object} state The store state.
+ * @param {string} scope The scope of the feature (e.g. core/edit-post).
+ * @param {string} featureName The name of the feature.
+ *
+ * @return {boolean} Is the feature enabled?
+ */
+const isFeatureActive = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope, featureName) => {
+ external_wp_deprecated_default()(`select( 'core/interface' ).isFeatureActive( scope, featureName )`, {
+ since: '6.0',
+ alternative: `select( 'core/preferences' ).get( scope, featureName )`
+ });
+ return !!select(external_wp_preferences_namespaceObject.store).get(scope, featureName);
+});
+
+/**
+ * Returns true if a modal is active, or false otherwise.
+ *
+ * @param {Object} state Global application state.
+ * @param {string} modalName A string that uniquely identifies the modal.
+ *
+ * @return {boolean} Whether the modal is active.
+ */
+function isModalActive(state, modalName) {
+ return state.activeModal === modalName;
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/reducer.js
+/**
+ * WordPress dependencies
+ */
+
+function complementaryAreas(state = {}, action) {
+ switch (action.type) {
+ case 'SET_DEFAULT_COMPLEMENTARY_AREA':
+ {
+ const {
+ scope,
+ area
+ } = action;
+
+ // If there's already an area, don't overwrite it.
+ if (state[scope]) {
+ return state;
+ }
+ return {
+ ...state,
+ [scope]: area
+ };
+ }
+ case 'ENABLE_COMPLEMENTARY_AREA':
+ {
+ const {
+ scope,
+ area
+ } = action;
+ return {
+ ...state,
+ [scope]: area
+ };
+ }
+ }
+ return state;
+}
+
+/**
+ * Reducer for storing the name of the open modal, or null if no modal is open.
+ *
+ * @param {Object} state Previous state.
+ * @param {Object} action Action object containing the `name` of the modal
+ *
+ * @return {Object} Updated state
+ */
+function activeModal(state = null, action) {
+ switch (action.type) {
+ case 'OPEN_MODAL':
+ return action.name;
+ case 'CLOSE_MODAL':
+ return null;
+ }
+ return state;
+}
+/* harmony default export */ const store_reducer = ((0,external_wp_data_namespaceObject.combineReducers)({
+ complementaryAreas,
+ activeModal
+}));
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/constants.js
+/**
+ * The identifier for the data store.
+ *
+ * @type {string}
+ */
+const constants_STORE_NAME = 'core/interface';
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+/**
+ * Store definition for the interface namespace.
+ *
+ * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
+ *
+ * @type {Object}
+ */
+const store = (0,external_wp_data_namespaceObject.createReduxStore)(constants_STORE_NAME, {
+ reducer: store_reducer,
+ actions: store_actions_namespaceObject,
+ selectors: store_selectors_namespaceObject
+});
+
+// Once we build a more generic persistence plugin that works across types of stores
+// we'd be able to replace this with a register call.
+(0,external_wp_data_namespaceObject.register)(store);
+
+;// CONCATENATED MODULE: external ["wp","plugins"]
+const external_wp_plugins_namespaceObject = window["wp"]["plugins"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-context/index.js
+/**
+ * WordPress dependencies
+ */
+
+/* harmony default export */ const complementary_area_context = ((0,external_wp_plugins_namespaceObject.withPluginContext)((context, ownProps) => {
+ return {
+ icon: ownProps.icon || context.icon,
+ identifier: ownProps.identifier || `${context.name}/${ownProps.name}`
+ };
+}));
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-toggle/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+function ComplementaryAreaToggle({
+ as = external_wp_components_namespaceObject.Button,
+ scope,
+ identifier,
+ icon,
+ selectedIcon,
+ name,
+ ...props
+}) {
+ const ComponentToUse = as;
+ const isSelected = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getActiveComplementaryArea(scope) === identifier, [identifier, scope]);
+ const {
+ enableComplementaryArea,
+ disableComplementaryArea
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ComponentToUse, {
+ icon: selectedIcon && isSelected ? selectedIcon : icon,
+ "aria-controls": identifier.replace('/', ':'),
+ onClick: () => {
+ if (isSelected) {
+ disableComplementaryArea(scope);
+ } else {
+ enableComplementaryArea(scope, identifier);
+ }
+ },
+ ...props
+ });
+}
+/* harmony default export */ const complementary_area_toggle = (complementary_area_context(ComplementaryAreaToggle));
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-header/index.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+const ComplementaryAreaHeader = ({
+ smallScreenTitle,
+ children,
+ className,
+ toggleButtonProps
+}) => {
+ const toggleButton = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(complementary_area_toggle, {
+ icon: close_small,
+ ...toggleButtonProps
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "components-panel__header interface-complementary-area-header__small",
+ children: [smallScreenTitle && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ className: "interface-complementary-area-header__small-title",
+ children: smallScreenTitle
+ }), toggleButton]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: dist_clsx('components-panel__header', 'interface-complementary-area-header', className),
+ tabIndex: -1,
+ children: [children, toggleButton]
+ })]
+ });
+};
+/* harmony default export */ const complementary_area_header = (ComplementaryAreaHeader);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/action-item/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+const noop = () => {};
+function ActionItemSlot({
+ name,
+ as: Component = external_wp_components_namespaceObject.ButtonGroup,
+ fillProps = {},
+ bubblesVirtually,
+ ...props
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Slot, {
+ name: name,
+ bubblesVirtually: bubblesVirtually,
+ fillProps: fillProps,
+ children: fills => {
+ if (!external_wp_element_namespaceObject.Children.toArray(fills).length) {
+ return null;
+ }
+
+ // Special handling exists for backward compatibility.
+ // It ensures that menu items created by plugin authors aren't
+ // duplicated with automatically injected menu items coming
+ // from pinnable plugin sidebars.
+ // @see https://github.com/WordPress/gutenberg/issues/14457
+ const initializedByPlugins = [];
+ external_wp_element_namespaceObject.Children.forEach(fills, ({
+ props: {
+ __unstableExplicitMenuItem,
+ __unstableTarget
+ }
+ }) => {
+ if (__unstableTarget && __unstableExplicitMenuItem) {
+ initializedByPlugins.push(__unstableTarget);
+ }
+ });
+ const children = external_wp_element_namespaceObject.Children.map(fills, child => {
+ if (!child.props.__unstableExplicitMenuItem && initializedByPlugins.includes(child.props.__unstableTarget)) {
+ return null;
+ }
+ return child;
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
+ ...props,
+ children: children
+ });
+ }
+ });
+}
+function ActionItem({
+ name,
+ as: Component = external_wp_components_namespaceObject.Button,
+ onClick,
+ ...props
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Fill, {
+ name: name,
+ children: ({
+ onClick: fpOnClick
+ }) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
+ onClick: onClick || fpOnClick ? (...args) => {
+ (onClick || noop)(...args);
+ (fpOnClick || noop)(...args);
+ } : undefined,
+ ...props
+ });
+ }
+ });
+}
+ActionItem.Slot = ActionItemSlot;
+/* harmony default export */ const action_item = (ActionItem);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-more-menu-item/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+const PluginsMenuItem = ({
+ // Menu item is marked with unstable prop for backward compatibility.
+ // They are removed so they don't leak to DOM elements.
+ // @see https://github.com/WordPress/gutenberg/issues/14457
+ __unstableExplicitMenuItem,
+ __unstableTarget,
+ ...restProps
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ ...restProps
+});
+function ComplementaryAreaMoreMenuItem({
+ scope,
+ target,
+ __unstableExplicitMenuItem,
+ ...props
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(complementary_area_toggle, {
+ as: toggleProps => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(action_item, {
+ __unstableExplicitMenuItem: __unstableExplicitMenuItem,
+ __unstableTarget: `${scope}/${target}`,
+ as: PluginsMenuItem,
+ name: `${scope}/plugin-more-menu`,
+ ...toggleProps
+ });
+ },
+ role: "menuitemcheckbox",
+ selectedIcon: library_check,
+ name: target,
+ scope: scope,
+ ...props
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/pinned-items/index.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+function PinnedItems({
+ scope,
+ ...props
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Fill, {
+ name: `PinnedItems/${scope}`,
+ ...props
+ });
+}
+function PinnedItemsSlot({
+ scope,
+ className,
+ ...props
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Slot, {
+ name: `PinnedItems/${scope}`,
+ ...props,
+ children: fills => fills?.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx(className, 'interface-pinned-items'),
+ children: fills
+ })
+ });
+}
+PinnedItems.Slot = PinnedItemsSlot;
+/* harmony default export */ const pinned_items = (PinnedItems);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area/index.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+
+
+const ANIMATION_DURATION = 0.3;
+function ComplementaryAreaSlot({
+ scope,
+ ...props
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Slot, {
+ name: `ComplementaryArea/${scope}`,
+ ...props
+ });
+}
+const SIDEBAR_WIDTH = 280;
+const variants = {
+ open: {
+ width: SIDEBAR_WIDTH
+ },
+ closed: {
+ width: 0
+ },
+ mobileOpen: {
+ width: '100vw'
+ }
+};
+function ComplementaryAreaFill({
+ activeArea,
+ isActive,
+ scope,
+ children,
+ className,
+ id
+}) {
+ const disableMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
+ const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
+ // This is used to delay the exit animation to the next tick.
+ // The reason this is done is to allow us to apply the right transition properties
+ // When we switch from an open sidebar to another open sidebar.
+ // we don't want to animate in this case.
+ const previousActiveArea = (0,external_wp_compose_namespaceObject.usePrevious)(activeArea);
+ const previousIsActive = (0,external_wp_compose_namespaceObject.usePrevious)(isActive);
+ const [, setState] = (0,external_wp_element_namespaceObject.useState)({});
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ setState({});
+ }, [isActive]);
+ const transition = {
+ type: 'tween',
+ duration: disableMotion || isMobileViewport || !!previousActiveArea && !!activeArea && activeArea !== previousActiveArea ? 0 : ANIMATION_DURATION,
+ ease: [0.6, 0, 0.4, 1]
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Fill, {
+ name: `ComplementaryArea/${scope}`,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableAnimatePresence, {
+ initial: false,
+ children: (previousIsActive || isActive) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ variants: variants,
+ initial: "closed",
+ animate: isMobileViewport ? 'mobileOpen' : 'open',
+ exit: "closed",
+ transition: transition,
+ className: "interface-complementary-area__fill",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ id: id,
+ className: className,
+ style: {
+ width: isMobileViewport ? '100vw' : SIDEBAR_WIDTH
+ },
+ children: children
+ })
+ })
+ })
+ });
+}
+function useAdjustComplementaryListener(scope, identifier, activeArea, isActive, isSmall) {
+ const previousIsSmall = (0,external_wp_element_namespaceObject.useRef)(false);
+ const shouldOpenWhenNotSmall = (0,external_wp_element_namespaceObject.useRef)(false);
+ const {
+ enableComplementaryArea,
+ disableComplementaryArea
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ // If the complementary area is active and the editor is switching from
+ // a big to a small window size.
+ if (isActive && isSmall && !previousIsSmall.current) {
+ disableComplementaryArea(scope);
+ // Flag the complementary area to be reopened when the window size
+ // goes from small to big.
+ shouldOpenWhenNotSmall.current = true;
+ } else if (
+ // If there is a flag indicating the complementary area should be
+ // enabled when we go from small to big window size and we are going
+ // from a small to big window size.
+ shouldOpenWhenNotSmall.current && !isSmall && previousIsSmall.current) {
+ // Remove the flag indicating the complementary area should be
+ // enabled.
+ shouldOpenWhenNotSmall.current = false;
+ enableComplementaryArea(scope, identifier);
+ } else if (
+ // If the flag is indicating the current complementary should be
+ // reopened but another complementary area becomes active, remove
+ // the flag.
+ shouldOpenWhenNotSmall.current && activeArea && activeArea !== identifier) {
+ shouldOpenWhenNotSmall.current = false;
+ }
+ if (isSmall !== previousIsSmall.current) {
+ previousIsSmall.current = isSmall;
+ }
+ }, [isActive, isSmall, scope, identifier, activeArea, disableComplementaryArea, enableComplementaryArea]);
+}
+function ComplementaryArea({
+ children,
+ className,
+ closeLabel = (0,external_wp_i18n_namespaceObject.__)('Close plugin'),
+ identifier,
+ header,
+ headerClassName,
+ icon,
+ isPinnable = true,
+ panelClassName,
+ scope,
+ name,
+ smallScreenTitle,
+ title,
+ toggleShortcut,
+ isActiveByDefault
+}) {
+ // This state is used to delay the rendering of the Fill
+ // until the initial effect runs.
+ // This prevents the animation from running on mount if
+ // the complementary area is active by default.
+ const [isReady, setIsReady] = (0,external_wp_element_namespaceObject.useState)(false);
+ const {
+ isLoading,
+ isActive,
+ isPinned,
+ activeArea,
+ isSmall,
+ isLarge,
+ showIconLabels
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getActiveComplementaryArea,
+ isComplementaryAreaLoading,
+ isItemPinned
+ } = select(store);
+ const {
+ get
+ } = select(external_wp_preferences_namespaceObject.store);
+ const _activeArea = getActiveComplementaryArea(scope);
+ return {
+ isLoading: isComplementaryAreaLoading(scope),
+ isActive: _activeArea === identifier,
+ isPinned: isItemPinned(scope, identifier),
+ activeArea: _activeArea,
+ isSmall: select(external_wp_viewport_namespaceObject.store).isViewportMatch('< medium'),
+ isLarge: select(external_wp_viewport_namespaceObject.store).isViewportMatch('large'),
+ showIconLabels: get('core', 'showIconLabels')
+ };
+ }, [identifier, scope]);
+ useAdjustComplementaryListener(scope, identifier, activeArea, isActive, isSmall);
+ const {
+ enableComplementaryArea,
+ disableComplementaryArea,
+ pinItem,
+ unpinItem
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ // Set initial visibility: For large screens, enable if it's active by
+ // default. For small screens, always initially disable.
+ if (isActiveByDefault && activeArea === undefined && !isSmall) {
+ enableComplementaryArea(scope, identifier);
+ } else if (activeArea === undefined && isSmall) {
+ disableComplementaryArea(scope, identifier);
+ }
+ setIsReady(true);
+ }, [activeArea, isActiveByDefault, scope, identifier, isSmall, enableComplementaryArea, disableComplementaryArea]);
+ if (!isReady) {
+ return;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [isPinnable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(pinned_items, {
+ scope: scope,
+ children: isPinned && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(complementary_area_toggle, {
+ scope: scope,
+ identifier: identifier,
+ isPressed: isActive && (!showIconLabels || isLarge),
+ "aria-expanded": isActive,
+ "aria-disabled": isLoading,
+ label: title,
+ icon: showIconLabels ? library_check : icon,
+ showTooltip: !showIconLabels,
+ variant: showIconLabels ? 'tertiary' : undefined,
+ size: "compact"
+ })
+ }), name && isPinnable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ComplementaryAreaMoreMenuItem, {
+ target: name,
+ scope: scope,
+ icon: icon,
+ children: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ComplementaryAreaFill, {
+ activeArea: activeArea,
+ isActive: isActive,
+ className: dist_clsx('interface-complementary-area', className),
+ scope: scope,
+ id: identifier.replace('/', ':'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(complementary_area_header, {
+ className: headerClassName,
+ closeLabel: closeLabel,
+ onClose: () => disableComplementaryArea(scope),
+ smallScreenTitle: smallScreenTitle,
+ toggleButtonProps: {
+ label: closeLabel,
+ size: 'small',
+ shortcut: toggleShortcut,
+ scope,
+ identifier
+ },
+ children: header || /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ className: "interface-complementary-area-header__title",
+ children: title
+ }), isPinnable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "interface-complementary-area__pin-unpin-item",
+ icon: isPinned ? star_filled : star_empty,
+ label: isPinned ? (0,external_wp_i18n_namespaceObject.__)('Unpin from toolbar') : (0,external_wp_i18n_namespaceObject.__)('Pin to toolbar'),
+ onClick: () => (isPinned ? unpinItem : pinItem)(scope, identifier),
+ isPressed: isPinned,
+ "aria-expanded": isPinned,
+ size: "compact"
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Panel, {
+ className: panelClassName,
+ children: children
+ })]
+ })]
+ });
+}
+const ComplementaryAreaWrapped = complementary_area_context(ComplementaryArea);
+ComplementaryAreaWrapped.Slot = ComplementaryAreaSlot;
+/* harmony default export */ const complementary_area = (ComplementaryAreaWrapped);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/fullscreen-mode/index.js
+/**
+ * WordPress dependencies
+ */
+
+const FullscreenMode = ({
+ isActive
+}) => {
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ let isSticky = false;
+ // `is-fullscreen-mode` is set in PHP as a body class by Gutenberg, and this causes
+ // `sticky-menu` to be applied by WordPress and prevents the admin menu being scrolled
+ // even if `is-fullscreen-mode` is then removed. Let's remove `sticky-menu` here as
+ // a consequence of the FullscreenMode setup.
+ if (document.body.classList.contains('sticky-menu')) {
+ isSticky = true;
+ document.body.classList.remove('sticky-menu');
+ }
+ return () => {
+ if (isSticky) {
+ document.body.classList.add('sticky-menu');
+ }
+ };
+ }, []);
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (isActive) {
+ document.body.classList.add('is-fullscreen-mode');
+ } else {
+ document.body.classList.remove('is-fullscreen-mode');
+ }
+ return () => {
+ if (isActive) {
+ document.body.classList.remove('is-fullscreen-mode');
+ }
+ };
+ }, [isActive]);
+ return null;
+};
+/* harmony default export */ const fullscreen_mode = (FullscreenMode);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/navigable-region/index.js
+/**
+ * External dependencies
+ */
+
+
+function NavigableRegion({
+ children,
+ className,
+ ariaLabel,
+ as: Tag = 'div',
+ ...props
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
+ className: dist_clsx('interface-navigable-region', className),
+ "aria-label": ariaLabel,
+ role: "region",
+ tabIndex: "-1",
+ ...props,
+ children: children
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/interface-skeleton/index.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+const interface_skeleton_ANIMATION_DURATION = 0.25;
+const commonTransition = {
+ type: 'tween',
+ duration: interface_skeleton_ANIMATION_DURATION,
+ ease: [0.6, 0, 0.4, 1]
+};
+function useHTMLClass(className) {
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ const element = document && document.querySelector(`html:not(.${className})`);
+ if (!element) {
+ return;
+ }
+ element.classList.toggle(className);
+ return () => {
+ element.classList.toggle(className);
+ };
+ }, [className]);
+}
+const headerVariants = {
+ hidden: {
+ opacity: 1,
+ marginTop: -60
+ },
+ visible: {
+ opacity: 1,
+ marginTop: 0
+ },
+ distractionFreeHover: {
+ opacity: 1,
+ marginTop: 0,
+ transition: {
+ ...commonTransition,
+ delay: 0.2,
+ delayChildren: 0.2
+ }
+ },
+ distractionFreeHidden: {
+ opacity: 0,
+ marginTop: -60
+ },
+ distractionFreeDisabled: {
+ opacity: 0,
+ marginTop: 0,
+ transition: {
+ ...commonTransition,
+ delay: 0.8,
+ delayChildren: 0.8
+ }
+ }
+};
+function InterfaceSkeleton({
+ isDistractionFree,
+ footer,
+ header,
+ editorNotices,
+ sidebar,
+ secondarySidebar,
+ content,
+ actions,
+ labels,
+ className,
+ enableRegionNavigation = true,
+ // Todo: does this need to be a prop.
+ // Can we use a dependency to keyboard-shortcuts directly?
+ shortcuts
+}, ref) {
+ const [secondarySidebarResizeListener, secondarySidebarSize] = (0,external_wp_compose_namespaceObject.useResizeObserver)();
+ const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
+ const disableMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
+ const defaultTransition = {
+ type: 'tween',
+ duration: disableMotion ? 0 : interface_skeleton_ANIMATION_DURATION,
+ ease: [0.6, 0, 0.4, 1]
+ };
+ const navigateRegionsProps = (0,external_wp_components_namespaceObject.__unstableUseNavigateRegions)(shortcuts);
+ useHTMLClass('interface-interface-skeleton__html-container');
+ const defaultLabels = {
+ /* translators: accessibility text for the top bar landmark region. */
+ header: (0,external_wp_i18n_namespaceObject._x)('Header', 'header landmark area'),
+ /* translators: accessibility text for the content landmark region. */
+ body: (0,external_wp_i18n_namespaceObject.__)('Content'),
+ /* translators: accessibility text for the secondary sidebar landmark region. */
+ secondarySidebar: (0,external_wp_i18n_namespaceObject.__)('Block Library'),
+ /* translators: accessibility text for the settings landmark region. */
+ sidebar: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ /* translators: accessibility text for the publish landmark region. */
+ actions: (0,external_wp_i18n_namespaceObject.__)('Publish'),
+ /* translators: accessibility text for the footer landmark region. */
+ footer: (0,external_wp_i18n_namespaceObject.__)('Footer')
+ };
+ const mergedLabels = {
+ ...defaultLabels,
+ ...labels
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ ...(enableRegionNavigation ? navigateRegionsProps : {}),
+ ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, enableRegionNavigation ? navigateRegionsProps.ref : undefined]),
+ className: dist_clsx(className, 'interface-interface-skeleton', navigateRegionsProps.className, !!footer && 'has-footer'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "interface-interface-skeleton__editor",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableAnimatePresence, {
+ initial: false,
+ children: !!header && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigableRegion, {
+ as: external_wp_components_namespaceObject.__unstableMotion.div,
+ className: "interface-interface-skeleton__header",
+ "aria-label": mergedLabels.header,
+ initial: isDistractionFree ? 'distractionFreeHidden' : 'hidden',
+ whileHover: isDistractionFree ? 'distractionFreeHover' : 'visible',
+ animate: isDistractionFree ? 'distractionFreeDisabled' : 'visible',
+ exit: isDistractionFree ? 'distractionFreeHidden' : 'hidden',
+ variants: headerVariants,
+ transition: defaultTransition,
+ children: header
+ })
+ }), isDistractionFree && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "interface-interface-skeleton__header",
+ children: editorNotices
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "interface-interface-skeleton__body",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableAnimatePresence, {
+ initial: false,
+ children: !!secondarySidebar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigableRegion, {
+ className: "interface-interface-skeleton__secondary-sidebar",
+ ariaLabel: mergedLabels.secondarySidebar,
+ as: external_wp_components_namespaceObject.__unstableMotion.div,
+ initial: "closed",
+ animate: isMobileViewport ? 'mobileOpen' : 'open',
+ exit: "closed",
+ variants: {
+ open: {
+ width: secondarySidebarSize.width
+ },
+ closed: {
+ width: 0
+ },
+ mobileOpen: {
+ width: '100vw'
+ }
+ },
+ transition: defaultTransition,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ style: {
+ position: 'absolute',
+ width: isMobileViewport ? '100vw' : 'fit-content',
+ height: '100%',
+ right: 0
+ },
+ children: [secondarySidebarResizeListener, secondarySidebar]
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigableRegion, {
+ className: "interface-interface-skeleton__content",
+ ariaLabel: mergedLabels.body,
+ children: content
+ }), !!sidebar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigableRegion, {
+ className: "interface-interface-skeleton__sidebar",
+ ariaLabel: mergedLabels.sidebar,
+ children: sidebar
+ }), !!actions && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigableRegion, {
+ className: "interface-interface-skeleton__actions",
+ ariaLabel: mergedLabels.actions,
+ children: actions
+ })]
+ })]
+ }), !!footer && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigableRegion, {
+ className: "interface-interface-skeleton__footer",
+ ariaLabel: mergedLabels.footer,
+ children: footer
+ })]
+ });
+}
+/* harmony default export */ const interface_skeleton = ((0,external_wp_element_namespaceObject.forwardRef)(InterfaceSkeleton));
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/index.js
+
+
+
+
+
+
+
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/index.js
+
+
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/global-keyboard-shortcuts/index.js
/**
* WordPress dependencies
@@ -5579,22 +7723,60 @@ const external_wp_keyboardShortcuts_namespaceObject = window["wp"]["keyboardShor
+
+
/**
* Internal dependencies
*/
+
+/**
+ * Component handles the keyboard shortcuts for the editor.
+ *
+ * It provides functionality for various keyboard shortcuts such as toggling editor mode,
+ * toggling distraction-free mode, undo/redo, saving the post, toggling list view,
+ * and toggling the sidebar.
+ */
function EditorKeyboardShortcuts() {
+ const isModeToggleDisabled = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ richEditingEnabled,
+ codeEditingEnabled
+ } = select(store_store).getEditorSettings();
+ return !richEditingEnabled || !codeEditingEnabled;
+ }, []);
+ const {
+ getBlockSelectionStart
+ } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
+ const {
+ getActiveComplementaryArea
+ } = (0,external_wp_data_namespaceObject.useSelect)(store);
+ const {
+ enableComplementaryArea,
+ disableComplementaryArea
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
const {
redo,
undo,
savePost,
- setIsListViewOpened
+ setIsListViewOpened,
+ switchEditorMode,
+ toggleDistractionFree
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
const {
isEditedPostDirty,
isPostSavingLocked,
- isListViewOpened
+ isListViewOpened,
+ getEditorMode
} = (0,external_wp_data_namespaceObject.useSelect)(store_store);
+ (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/editor/toggle-mode', () => {
+ switchEditorMode(getEditorMode() === 'visual' ? 'text' : 'visual');
+ }, {
+ isDisabled: isModeToggleDisabled
+ });
+ (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/editor/toggle-distraction-free', () => {
+ toggleDistractionFree();
+ });
(0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/editor/undo', event => {
undo();
event.preventDefault();
@@ -5631,6 +7813,18 @@ function EditorKeyboardShortcuts() {
setIsListViewOpened(true);
}
});
+ (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/editor/toggle-sidebar', event => {
+ // This shortcut has no known clashes, but use preventDefault to prevent any
+ // obscure shortcuts from triggering.
+ event.preventDefault();
+ const isEditorSidebarOpened = ['edit-post/document', 'edit-post/block'].includes(getActiveComplementaryArea('core'));
+ if (isEditorSidebarOpened) {
+ disableComplementaryArea('core');
+ } else {
+ const sidebarToOpen = getBlockSelectionStart() ? 'edit-post/block' : 'edit-post/document';
+ enableComplementaryArea('core', sidebarToOpen);
+ }
+ });
return null;
}
@@ -5650,18 +7844,6 @@ function EditorKeyboardShortcuts() {
* Internal dependencies
*/
-
-/**
- * AutosaveMonitor invokes `props.autosave()` within at most `interval` seconds after an unsaved change is detected.
- *
- * The logic is straightforward: a check is performed every `props.interval` seconds. If any changes are detected, `props.autosave()` is called.
- * The time between the change and the autosave varies but is no larger than `props.interval` seconds. Refer to the code below for more details, such as
- * the specific way of detecting changes.
- *
- * There are two caveats:
- * * If `props.isAutosaveable` happens to be false at a time of checking for changes, the check is retried every second.
- * * The timer may be disabled by setting `props.disableIntervalChecks` to `true`. In that mode, any change will immediately trigger `props.autosave()`.
- */
class AutosaveMonitor extends external_wp_element_namespaceObject.Component {
constructor(props) {
super(props);
@@ -5718,6 +7900,30 @@ class AutosaveMonitor extends external_wp_element_namespaceObject.Component {
return null;
}
}
+
+/**
+ * Monitors the changes made to the edited post and triggers autosave if necessary.
+ *
+ * The logic is straightforward: a check is performed every `props.interval` seconds. If any changes are detected, `props.autosave()` is called.
+ * The time between the change and the autosave varies but is no larger than `props.interval` seconds. Refer to the code below for more details, such as
+ * the specific way of detecting changes.
+ *
+ * There are two caveats:
+ * * If `props.isAutosaveable` happens to be false at a time of checking for changes, the check is retried every second.
+ * * The timer may be disabled by setting `props.disableIntervalChecks` to `true`. In that mode, any change will immediately trigger `props.autosave()`.
+ *
+ * @param {Object} props - The properties passed to the component.
+ * @param {Function} props.autosave - The function to call when changes need to be saved.
+ * @param {number} props.interval - The maximum time in seconds between an unsaved change and an autosave.
+ * @param {boolean} props.isAutosaveable - If false, the check for changes is retried every second.
+ * @param {boolean} props.disableIntervalChecks - If true, disables the timer and any change will immediately trigger `props.autosave()`.
+ * @param {boolean} props.isDirty - Indicates if there are unsaved changes.
+ *
+ * @example
+ * ```jsx
+ * <AutosaveMonitor interval={30000} />
+ * ```
+ */
/* harmony default export */ const autosave_monitor = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)((select, ownProps) => {
const {
getReferenceByDistinctEdits
@@ -5747,81 +7953,34 @@ class AutosaveMonitor extends external_wp_element_namespaceObject.Component {
}
}))])(AutosaveMonitor));
-// EXTERNAL MODULE: ./node_modules/classnames/index.js
-var classnames = __webpack_require__(5755);
-var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
-;// CONCATENATED MODULE: external ["wp","components"]
-const external_wp_components_namespaceObject = window["wp"]["components"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/symbol.js
-
-/**
- * WordPress dependencies
- */
-
-const symbol = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
-}));
-/* harmony default export */ const library_symbol = (symbol);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/navigation.js
-
-/**
- * WordPress dependencies
- */
-
-const navigation = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"
-}));
-/* harmony default export */ const library_navigation = (navigation);
-
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/page.js
-
-/**
- * WordPress dependencies
- */
-
-const page = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"
-}), (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"
-}));
-/* harmony default export */ const library_page = (page);
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right-small.js
-
/**
* WordPress dependencies
*/
-const chevronRightSmall = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronRightSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"
+ })
+});
/* harmony default export */ const chevron_right_small = (chevronRightSmall);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left-small.js
-
/**
* WordPress dependencies
*/
-const chevronLeftSmall = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronLeftSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"
+ })
+});
/* harmony default export */ const chevron_left_small = (chevronLeftSmall);
;// CONCATENATED MODULE: external ["wp","keycodes"]
@@ -5829,7 +7988,6 @@ const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
;// CONCATENATED MODULE: external ["wp","commands"]
const external_wp_commands_namespaceObject = window["wp"]["commands"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/document-bar/index.js
-
/**
* External dependencies
*/
@@ -5848,11 +8006,17 @@ const external_wp_commands_namespaceObject = window["wp"]["commands"];
+
+
/**
* Internal dependencies
*/
-const typeLabels = {
+
+
+
+
+const TYPE_LABELS = {
// translators: 1: Pattern title.
wp_pattern: (0,external_wp_i18n_namespaceObject.__)('Editing pattern: %s'),
// translators: 1: Navigation menu title.
@@ -5862,147 +8026,179 @@ const typeLabels = {
// translators: 1: Template part title.
wp_template_part: (0,external_wp_i18n_namespaceObject.__)('Editing template part: %s')
};
-const icons = {
- wp_block: library_symbol,
- wp_navigation: library_navigation
-};
+const MotionButton = (0,external_wp_components_namespaceObject.__unstableMotion)(external_wp_components_namespaceObject.Button);
+
+/**
+ * This component renders a navigation bar at the top of the editor. It displays the title of the current document,
+ * a back button (if applicable), and a command center button. It also handles different states of the document,
+ * such as "not found" or "unsynced".
+ *
+ * @example
+ * ```jsx
+ * <DocumentBar />
+ * ```
+ *
+ * @return {JSX.Element} The rendered DocumentBar component.
+ */
function DocumentBar() {
const {
postType,
- postId,
+ documentTitle,
+ isNotFound,
+ isUnsyncedPattern,
+ templateIcon,
+ templateTitle,
onNavigateToPreviousEntityRecord
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
- getCurrentPostId,
getCurrentPostType,
- getEditorSettings: getSettings
+ getCurrentPostId,
+ getEditorSettings,
+ __experimentalGetTemplateInfo: getTemplateInfo
} = select(store_store);
+ const {
+ getEditedEntityRecord,
+ isResolving: isResolvingSelector
+ } = select(external_wp_coreData_namespaceObject.store);
+ const _postType = getCurrentPostType();
+ const _postId = getCurrentPostId();
+ const _document = getEditedEntityRecord('postType', _postType, _postId);
+ const _templateInfo = getTemplateInfo(_document);
return {
- postType: getCurrentPostType(),
- postId: getCurrentPostId(),
- onNavigateToPreviousEntityRecord: getSettings().onNavigateToPreviousEntityRecord,
- getEditorSettings: getSettings
+ postType: _postType,
+ documentTitle: _document.title,
+ isNotFound: !_document && !isResolvingSelector('getEditedEntityRecord', 'postType', _postType, _postId),
+ isUnsyncedPattern: _document?.wp_pattern_sync_status === 'unsynced',
+ templateIcon: unlock(select(store_store)).getPostIcon(_postType, {
+ area: _document?.area
+ }),
+ templateTitle: _templateInfo.title,
+ onNavigateToPreviousEntityRecord: getEditorSettings().onNavigateToPreviousEntityRecord
};
}, []);
- const handleOnBack = () => {
- if (onNavigateToPreviousEntityRecord) {
- onNavigateToPreviousEntityRecord();
- }
- };
- return (0,external_React_.createElement)(BaseDocumentActions, {
- postType: postType,
- postId: postId,
- onBack: onNavigateToPreviousEntityRecord ? handleOnBack : undefined
- });
-}
-function BaseDocumentActions({
- postType,
- postId,
- onBack
-}) {
- var _icons$postType;
const {
open: openCommandCenter
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_commands_namespaceObject.store);
- const {
- editedRecord: doc,
- isResolving
- } = (0,external_wp_coreData_namespaceObject.useEntityRecord)('postType', postType, postId);
- const {
- templateIcon,
- templateTitle
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- __experimentalGetTemplateInfo: getTemplateInfo
- } = select(store_store);
- const templateInfo = getTemplateInfo(doc);
- return {
- templateIcon: templateInfo.icon,
- templateTitle: templateInfo.title
- };
- });
- const isNotFound = !doc && !isResolving;
- const icon = (_icons$postType = icons[postType]) !== null && _icons$postType !== void 0 ? _icons$postType : library_page;
- const [isAnimated, setIsAnimated] = (0,external_wp_element_namespaceObject.useState)(false);
- const isMounting = (0,external_wp_element_namespaceObject.useRef)(true);
- const isTemplate = ['wp_template', 'wp_template_part'].includes(postType);
- const isGlobalEntity = ['wp_template', 'wp_navigation', 'wp_template_part', 'wp_block'].includes(postType);
+ const isReducedMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
+ const isTemplate = TEMPLATE_POST_TYPES.includes(postType);
+ const isGlobalEntity = GLOBAL_POST_TYPES.includes(postType);
+ const hasBackButton = !!onNavigateToPreviousEntityRecord;
+ const title = isTemplate ? templateTitle : documentTitle;
+ const mounted = (0,external_wp_element_namespaceObject.useRef)(false);
(0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!isMounting.current) {
- setIsAnimated(true);
- }
- isMounting.current = false;
- }, [postType, postId]);
- const title = isTemplate ? templateTitle : doc.title;
- return (0,external_React_.createElement)("div", {
- className: classnames_default()('editor-document-bar', {
- 'has-back-button': !!onBack,
- 'is-animated': isAnimated,
- 'is-global': isGlobalEntity
- })
- }, onBack && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "editor-document-bar__back",
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_right_small : chevron_left_small,
- onClick: event => {
- event.stopPropagation();
- onBack();
- },
- size: "compact"
- }, (0,external_wp_i18n_namespaceObject.__)('Back')), isNotFound && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, null, (0,external_wp_i18n_namespaceObject.__)('Document not found')), !isNotFound && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "editor-document-bar__command",
- onClick: () => openCommandCenter(),
- size: "compact"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- className: "editor-document-bar__title",
- spacing: 1,
- justify: "center"
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
- icon: isTemplate ? templateIcon : icon
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- size: "body",
- as: "h1",
- "aria-label": typeLabels[postType] ?
- // eslint-disable-next-line @wordpress/valid-sprintf
- (0,external_wp_i18n_namespaceObject.sprintf)(typeLabels[postType], title) : undefined
- }, title)), (0,external_React_.createElement)("span", {
- className: "editor-document-bar__shortcut"
- }, external_wp_keycodes_namespaceObject.displayShortcut.primary('k'))));
+ mounted.current = true;
+ }, []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: dist_clsx('editor-document-bar', {
+ 'has-back-button': hasBackButton,
+ 'is-global': isGlobalEntity && !isUnsyncedPattern
+ }),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableAnimatePresence, {
+ children: hasBackButton && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MotionButton, {
+ className: "editor-document-bar__back",
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_right_small : chevron_left_small,
+ onClick: event => {
+ event.stopPropagation();
+ onNavigateToPreviousEntityRecord();
+ },
+ size: "compact",
+ initial: mounted.current ? {
+ opacity: 0,
+ transform: 'translateX(15%)'
+ } : false // Don't show entry animation when DocumentBar mounts.
+ ,
+ animate: {
+ opacity: 1,
+ transform: 'translateX(0%)'
+ },
+ exit: {
+ opacity: 0,
+ transform: 'translateX(15%)'
+ },
+ transition: isReducedMotion ? {
+ duration: 0
+ } : undefined,
+ children: (0,external_wp_i18n_namespaceObject.__)('Back')
+ })
+ }), isNotFound ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Document not found')
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Button, {
+ className: "editor-document-bar__command",
+ onClick: () => openCommandCenter(),
+ size: "compact",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ className: "editor-document-bar__title"
+ // Force entry animation when the back button is added or removed.
+ ,
+
+ initial: mounted.current ? {
+ opacity: 0,
+ transform: hasBackButton ? 'translateX(15%)' : 'translateX(-15%)'
+ } : false // Don't show entry animation when DocumentBar mounts.
+ ,
+ animate: {
+ opacity: 1,
+ transform: 'translateX(0%)'
+ },
+ transition: isReducedMotion ? {
+ duration: 0
+ } : undefined,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ icon: templateIcon
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ size: "body",
+ as: "h1",
+ "aria-label": TYPE_LABELS[postType] ?
+ // eslint-disable-next-line @wordpress/valid-sprintf
+ (0,external_wp_i18n_namespaceObject.sprintf)(TYPE_LABELS[postType], title) : undefined,
+ children: title ? (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title) : (0,external_wp_i18n_namespaceObject.__)('No Title')
+ })]
+ }, hasBackButton), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "editor-document-bar__shortcut",
+ children: external_wp_keycodes_namespaceObject.displayShortcut.primary('k')
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: external ["wp","richText"]
const external_wp_richText_namespaceObject = window["wp"]["richText"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/document-outline/item.js
-
/**
* External dependencies
*/
+
+
const TableOfContentsItem = ({
children,
isValid,
level,
href,
onSelect
-}) => (0,external_React_.createElement)("li", {
- className: classnames_default()('document-outline__item', `is-${level.toLowerCase()}`, {
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ className: dist_clsx('document-outline__item', `is-${level.toLowerCase()}`, {
'is-invalid': !isValid
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("a", {
+ href: href,
+ className: "document-outline__button",
+ onClick: onSelect,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "document-outline__emdash",
+ "aria-hidden": "true"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", {
+ className: "document-outline__level",
+ children: level
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "document-outline__item-content",
+ children: children
+ })]
})
-}, (0,external_React_.createElement)("a", {
- href: href,
- className: "document-outline__button",
- onClick: onSelect
-}, (0,external_React_.createElement)("span", {
- className: "document-outline__emdash",
- "aria-hidden": "true"
-}), (0,external_React_.createElement)("strong", {
- className: "document-outline__level"
-}, level), (0,external_React_.createElement)("span", {
- className: "document-outline__item-content"
-}, children)));
+});
/* harmony default export */ const document_outline_item = (TableOfContentsItem);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/document-outline/index.js
-
/**
* WordPress dependencies
*/
@@ -6013,7 +8209,6 @@ const TableOfContentsItem = ({
-
/**
* Internal dependencies
*/
@@ -6023,99 +8218,98 @@ const TableOfContentsItem = ({
/**
* Module constants
*/
-const emptyHeadingContent = (0,external_React_.createElement)("em", null, (0,external_wp_i18n_namespaceObject.__)('(Empty heading)'));
-const incorrectLevelContent = [(0,external_React_.createElement)("br", {
- key: "incorrect-break"
-}), (0,external_React_.createElement)("em", {
- key: "incorrect-message"
-}, (0,external_wp_i18n_namespaceObject.__)('(Incorrect heading level)'))];
-const singleH1Headings = [(0,external_React_.createElement)("br", {
- key: "incorrect-break-h1"
-}), (0,external_React_.createElement)("em", {
- key: "incorrect-message-h1"
-}, (0,external_wp_i18n_namespaceObject.__)('(Your theme may already use a H1 for the post title)'))];
-const multipleH1Headings = [(0,external_React_.createElement)("br", {
- key: "incorrect-break-multiple-h1"
-}), (0,external_React_.createElement)("em", {
- key: "incorrect-message-multiple-h1"
-}, (0,external_wp_i18n_namespaceObject.__)('(Multiple H1 headings are not recommended)'))];
+
+
+const emptyHeadingContent = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("em", {
+ children: (0,external_wp_i18n_namespaceObject.__)('(Empty heading)')
+});
+const incorrectLevelContent = [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("br", {}, "incorrect-break"), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("em", {
+ children: (0,external_wp_i18n_namespaceObject.__)('(Incorrect heading level)')
+}, "incorrect-message")];
+const singleH1Headings = [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("br", {}, "incorrect-break-h1"), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("em", {
+ children: (0,external_wp_i18n_namespaceObject.__)('(Your theme may already use a H1 for the post title)')
+}, "incorrect-message-h1")];
+const multipleH1Headings = [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("br", {}, "incorrect-break-multiple-h1"), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("em", {
+ children: (0,external_wp_i18n_namespaceObject.__)('(Multiple H1 headings are not recommended)')
+}, "incorrect-message-multiple-h1")];
function EmptyOutlineIllustration() {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.SVG, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.SVG, {
width: "138",
height: "148",
viewBox: "0 0 138 148",
fill: "none",
- xmlns: "http://www.w3.org/2000/svg"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Rect, {
- width: "138",
- height: "148",
- rx: "4",
- fill: "#F0F6FC"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Line, {
- x1: "44",
- y1: "28",
- x2: "24",
- y2: "28",
- stroke: "#DDDDDD"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Rect, {
- x: "48",
- y: "16",
- width: "27",
- height: "23",
- rx: "4",
- fill: "#DDDDDD"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M54.7585 32V23.2727H56.6037V26.8736H60.3494V23.2727H62.1903V32H60.3494V28.3949H56.6037V32H54.7585ZM67.4574 23.2727V32H65.6122V25.0241H65.5611L63.5625 26.277V24.6406L65.723 23.2727H67.4574Z",
- fill: "black"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Line, {
- x1: "55",
- y1: "59",
- x2: "24",
- y2: "59",
- stroke: "#DDDDDD"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Rect, {
- x: "59",
- y: "47",
- width: "29",
- height: "23",
- rx: "4",
- fill: "#DDDDDD"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M65.7585 63V54.2727H67.6037V57.8736H71.3494V54.2727H73.1903V63H71.3494V59.3949H67.6037V63H65.7585ZM74.6605 63V61.6705L77.767 58.794C78.0313 58.5384 78.2528 58.3082 78.4318 58.1037C78.6136 57.8991 78.7514 57.6989 78.8452 57.5028C78.9389 57.304 78.9858 57.0895 78.9858 56.8594C78.9858 56.6037 78.9276 56.3835 78.8111 56.1989C78.6946 56.0114 78.5355 55.8679 78.3338 55.7685C78.1321 55.6662 77.9034 55.6151 77.6477 55.6151C77.3807 55.6151 77.1477 55.669 76.9489 55.777C76.75 55.8849 76.5966 56.0398 76.4886 56.2415C76.3807 56.4432 76.3267 56.6832 76.3267 56.9616H74.5753C74.5753 56.3906 74.7045 55.8949 74.9631 55.4744C75.2216 55.054 75.5838 54.7287 76.0497 54.4986C76.5156 54.2685 77.0526 54.1534 77.6605 54.1534C78.2855 54.1534 78.8295 54.2642 79.2926 54.4858C79.7585 54.7045 80.1207 55.0085 80.3793 55.3977C80.6378 55.7869 80.767 56.233 80.767 56.7358C80.767 57.0653 80.7017 57.3906 80.571 57.7116C80.4432 58.0327 80.2145 58.3892 79.8849 58.7812C79.5554 59.1705 79.0909 59.6378 78.4915 60.1832L77.2173 61.4318V61.4915H80.8821V63H74.6605Z",
- fill: "black"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Line, {
- x1: "80",
- y1: "90",
- x2: "24",
- y2: "90",
- stroke: "#DDDDDD"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Rect, {
- x: "84",
- y: "78",
- width: "30",
- height: "23",
- rx: "4",
- fill: "#F0B849"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M90.7585 94V85.2727H92.6037V88.8736H96.3494V85.2727H98.1903V94H96.3494V90.3949H92.6037V94H90.7585ZM99.5284 92.4659V91.0128L103.172 85.2727H104.425V87.2841H103.683L101.386 90.919V90.9872H106.564V92.4659H99.5284ZM103.717 94V92.0227L103.751 91.3793V85.2727H105.482V94H103.717Z",
- fill: "black"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Line, {
- x1: "66",
- y1: "121",
- x2: "24",
- y2: "121",
- stroke: "#DDDDDD"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Rect, {
- x: "70",
- y: "109",
- width: "29",
- height: "23",
- rx: "4",
- fill: "#DDDDDD"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M76.7585 125V116.273H78.6037V119.874H82.3494V116.273H84.1903V125H82.3494V121.395H78.6037V125H76.7585ZM88.8864 125.119C88.25 125.119 87.6832 125.01 87.1861 124.791C86.6918 124.57 86.3011 124.266 86.0142 123.879C85.7301 123.49 85.5838 123.041 85.5753 122.533H87.4332C87.4446 122.746 87.5142 122.933 87.642 123.095C87.7727 123.254 87.946 123.378 88.1619 123.466C88.3778 123.554 88.6207 123.598 88.8906 123.598C89.1719 123.598 89.4205 123.548 89.6364 123.449C89.8523 123.349 90.0213 123.212 90.1435 123.036C90.2656 122.859 90.3267 122.656 90.3267 122.426C90.3267 122.193 90.2614 121.987 90.1307 121.808C90.0028 121.626 89.8182 121.484 89.5767 121.382C89.3381 121.28 89.054 121.229 88.7244 121.229H87.9105V119.874H88.7244C89.0028 119.874 89.2486 119.825 89.4616 119.729C89.6776 119.632 89.8452 119.499 89.9645 119.328C90.0838 119.155 90.1435 118.953 90.1435 118.723C90.1435 118.504 90.0909 118.312 89.9858 118.148C89.8835 117.98 89.7386 117.849 89.5511 117.756C89.3665 117.662 89.1506 117.615 88.9034 117.615C88.6534 117.615 88.4247 117.661 88.2173 117.751C88.0099 117.839 87.8438 117.966 87.7188 118.131C87.5938 118.295 87.527 118.489 87.5185 118.71H85.75C85.7585 118.207 85.902 117.764 86.1804 117.381C86.4588 116.997 86.8338 116.697 87.3054 116.482C87.7798 116.263 88.3153 116.153 88.9119 116.153C89.5142 116.153 90.0412 116.263 90.4929 116.482C90.9446 116.7 91.2955 116.996 91.5455 117.368C91.7983 117.737 91.9233 118.152 91.9205 118.612C91.9233 119.101 91.7713 119.509 91.4645 119.835C91.1605 120.162 90.7642 120.369 90.2756 120.457V120.526C90.9176 120.608 91.4063 120.831 91.7415 121.195C92.0795 121.555 92.2472 122.007 92.2443 122.55C92.2472 123.047 92.1037 123.489 91.8139 123.875C91.527 124.261 91.1307 124.565 90.625 124.787C90.1193 125.009 89.5398 125.119 88.8864 125.119Z",
- fill: "black"
- }));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Rect, {
+ width: "138",
+ height: "148",
+ rx: "4",
+ fill: "#F0F6FC"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Line, {
+ x1: "44",
+ y1: "28",
+ x2: "24",
+ y2: "28",
+ stroke: "#DDDDDD"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Rect, {
+ x: "48",
+ y: "16",
+ width: "27",
+ height: "23",
+ rx: "4",
+ fill: "#DDDDDD"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M54.7585 32V23.2727H56.6037V26.8736H60.3494V23.2727H62.1903V32H60.3494V28.3949H56.6037V32H54.7585ZM67.4574 23.2727V32H65.6122V25.0241H65.5611L63.5625 26.277V24.6406L65.723 23.2727H67.4574Z",
+ fill: "black"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Line, {
+ x1: "55",
+ y1: "59",
+ x2: "24",
+ y2: "59",
+ stroke: "#DDDDDD"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Rect, {
+ x: "59",
+ y: "47",
+ width: "29",
+ height: "23",
+ rx: "4",
+ fill: "#DDDDDD"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M65.7585 63V54.2727H67.6037V57.8736H71.3494V54.2727H73.1903V63H71.3494V59.3949H67.6037V63H65.7585ZM74.6605 63V61.6705L77.767 58.794C78.0313 58.5384 78.2528 58.3082 78.4318 58.1037C78.6136 57.8991 78.7514 57.6989 78.8452 57.5028C78.9389 57.304 78.9858 57.0895 78.9858 56.8594C78.9858 56.6037 78.9276 56.3835 78.8111 56.1989C78.6946 56.0114 78.5355 55.8679 78.3338 55.7685C78.1321 55.6662 77.9034 55.6151 77.6477 55.6151C77.3807 55.6151 77.1477 55.669 76.9489 55.777C76.75 55.8849 76.5966 56.0398 76.4886 56.2415C76.3807 56.4432 76.3267 56.6832 76.3267 56.9616H74.5753C74.5753 56.3906 74.7045 55.8949 74.9631 55.4744C75.2216 55.054 75.5838 54.7287 76.0497 54.4986C76.5156 54.2685 77.0526 54.1534 77.6605 54.1534C78.2855 54.1534 78.8295 54.2642 79.2926 54.4858C79.7585 54.7045 80.1207 55.0085 80.3793 55.3977C80.6378 55.7869 80.767 56.233 80.767 56.7358C80.767 57.0653 80.7017 57.3906 80.571 57.7116C80.4432 58.0327 80.2145 58.3892 79.8849 58.7812C79.5554 59.1705 79.0909 59.6378 78.4915 60.1832L77.2173 61.4318V61.4915H80.8821V63H74.6605Z",
+ fill: "black"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Line, {
+ x1: "80",
+ y1: "90",
+ x2: "24",
+ y2: "90",
+ stroke: "#DDDDDD"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Rect, {
+ x: "84",
+ y: "78",
+ width: "30",
+ height: "23",
+ rx: "4",
+ fill: "#F0B849"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M90.7585 94V85.2727H92.6037V88.8736H96.3494V85.2727H98.1903V94H96.3494V90.3949H92.6037V94H90.7585ZM99.5284 92.4659V91.0128L103.172 85.2727H104.425V87.2841H103.683L101.386 90.919V90.9872H106.564V92.4659H99.5284ZM103.717 94V92.0227L103.751 91.3793V85.2727H105.482V94H103.717Z",
+ fill: "black"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Line, {
+ x1: "66",
+ y1: "121",
+ x2: "24",
+ y2: "121",
+ stroke: "#DDDDDD"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Rect, {
+ x: "70",
+ y: "109",
+ width: "29",
+ height: "23",
+ rx: "4",
+ fill: "#DDDDDD"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M76.7585 125V116.273H78.6037V119.874H82.3494V116.273H84.1903V125H82.3494V121.395H78.6037V125H76.7585ZM88.8864 125.119C88.25 125.119 87.6832 125.01 87.1861 124.791C86.6918 124.57 86.3011 124.266 86.0142 123.879C85.7301 123.49 85.5838 123.041 85.5753 122.533H87.4332C87.4446 122.746 87.5142 122.933 87.642 123.095C87.7727 123.254 87.946 123.378 88.1619 123.466C88.3778 123.554 88.6207 123.598 88.8906 123.598C89.1719 123.598 89.4205 123.548 89.6364 123.449C89.8523 123.349 90.0213 123.212 90.1435 123.036C90.2656 122.859 90.3267 122.656 90.3267 122.426C90.3267 122.193 90.2614 121.987 90.1307 121.808C90.0028 121.626 89.8182 121.484 89.5767 121.382C89.3381 121.28 89.054 121.229 88.7244 121.229H87.9105V119.874H88.7244C89.0028 119.874 89.2486 119.825 89.4616 119.729C89.6776 119.632 89.8452 119.499 89.9645 119.328C90.0838 119.155 90.1435 118.953 90.1435 118.723C90.1435 118.504 90.0909 118.312 89.9858 118.148C89.8835 117.98 89.7386 117.849 89.5511 117.756C89.3665 117.662 89.1506 117.615 88.9034 117.615C88.6534 117.615 88.4247 117.661 88.2173 117.751C88.0099 117.839 87.8438 117.966 87.7188 118.131C87.5938 118.295 87.527 118.489 87.5185 118.71H85.75C85.7585 118.207 85.902 117.764 86.1804 117.381C86.4588 116.997 86.8338 116.697 87.3054 116.482C87.7798 116.263 88.3153 116.153 88.9119 116.153C89.5142 116.153 90.0412 116.263 90.4929 116.482C90.9446 116.7 91.2955 116.996 91.5455 117.368C91.7983 117.737 91.9233 118.152 91.9205 118.612C91.9233 119.101 91.7713 119.509 91.4645 119.835C91.1605 120.162 90.7642 120.369 90.2756 120.457V120.526C90.9176 120.608 91.4063 120.831 91.7415 121.195C92.0795 121.555 92.2472 122.007 92.2443 122.55C92.2472 123.047 92.1037 123.489 91.8139 123.875C91.527 124.261 91.1307 124.565 90.625 124.787C90.1193 125.009 89.5398 125.119 88.8864 125.119Z",
+ fill: "black"
+ })]
+ });
}
/**
@@ -6139,22 +8333,55 @@ const computeOutlineHeadings = (blocks = []) => {
return computeOutlineHeadings(block.innerBlocks);
});
};
-const isEmptyHeading = heading => !heading.attributes.content || heading.attributes.content.length === 0;
-const DocumentOutline = ({
- blocks = [],
- title,
+const isEmptyHeading = heading => !heading.attributes.content || heading.attributes.content.trim().length === 0;
+
+/**
+ * Renders a document outline component.
+ *
+ * @param {Object} props Props.
+ * @param {Function} props.onSelect Function to be called when an outline item is selected.
+ * @param {boolean} props.isTitleSupported Indicates whether the title is supported.
+ * @param {boolean} props.hasOutlineItemsDisabled Indicates whether the outline items are disabled.
+ *
+ * @return {Component} The component to be rendered.
+ */
+function DocumentOutline({
onSelect,
isTitleSupported,
hasOutlineItemsDisabled
-}) => {
- const headings = computeOutlineHeadings(blocks);
+}) {
const {
selectBlock
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
+ const {
+ blocks,
+ title
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ var _postType$supports$ti;
+ const {
+ getBlocks
+ } = select(external_wp_blockEditor_namespaceObject.store);
+ const {
+ getEditedPostAttribute
+ } = select(store_store);
+ const {
+ getPostType
+ } = select(external_wp_coreData_namespaceObject.store);
+ const postType = getPostType(getEditedPostAttribute('type'));
+ return {
+ title: getEditedPostAttribute('title'),
+ blocks: getBlocks(),
+ isTitleSupported: (_postType$supports$ti = postType?.supports?.title) !== null && _postType$supports$ti !== void 0 ? _postType$supports$ti : false
+ };
+ });
+ const headings = computeOutlineHeadings(blocks);
if (headings.length < 1) {
- return (0,external_React_.createElement)("div", {
- className: "editor-document-outline has-no-headings"
- }, (0,external_React_.createElement)(EmptyOutlineIllustration, null), (0,external_React_.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Navigate the structure of your document and address issues like empty or incorrect heading levels.')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-document-outline has-no-headings",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EmptyOutlineIllustration, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Navigate the structure of your document and address issues like empty or incorrect heading levels.')
+ })]
+ });
}
let prevHeadingLevel = 1;
@@ -6166,53 +8393,39 @@ const DocumentOutline = ({
[heading.level]: (acc[heading.level] || 0) + 1
}), {});
const hasMultipleH1 = countByLevel[1] > 1;
- return (0,external_React_.createElement)("div", {
- className: "document-outline"
- }, (0,external_React_.createElement)("ul", null, hasTitle && (0,external_React_.createElement)(document_outline_item, {
- level: (0,external_wp_i18n_namespaceObject.__)('Title'),
- isValid: true,
- onSelect: onSelect,
- href: `#${titleNode.id}`,
- isDisabled: hasOutlineItemsDisabled
- }, title), headings.map((item, index) => {
- // Headings remain the same, go up by one, or down by any amount.
- // Otherwise there are missing levels.
- const isIncorrectLevel = item.level > prevHeadingLevel + 1;
- const isValid = !item.isEmpty && !isIncorrectLevel && !!item.level && (item.level !== 1 || !hasMultipleH1 && !hasTitle);
- prevHeadingLevel = item.level;
- return (0,external_React_.createElement)(document_outline_item, {
- key: index,
- level: `H${item.level}`,
- isValid: isValid,
- isDisabled: hasOutlineItemsDisabled,
- href: `#block-${item.clientId}`,
- onSelect: () => {
- selectBlock(item.clientId);
- onSelect?.();
- }
- }, item.isEmpty ? emptyHeadingContent : (0,external_wp_richText_namespaceObject.getTextContent)((0,external_wp_richText_namespaceObject.create)({
- html: item.attributes.content
- })), isIncorrectLevel && incorrectLevelContent, item.level === 1 && hasMultipleH1 && multipleH1Headings, hasTitle && item.level === 1 && !hasMultipleH1 && singleH1Headings);
- })));
-};
-/* harmony default export */ const document_outline = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_data_namespaceObject.withSelect)(select => {
- var _postType$supports$ti;
- const {
- getBlocks
- } = select(external_wp_blockEditor_namespaceObject.store);
- const {
- getEditedPostAttribute
- } = select(store_store);
- const {
- getPostType
- } = select(external_wp_coreData_namespaceObject.store);
- const postType = getPostType(getEditedPostAttribute('type'));
- return {
- title: getEditedPostAttribute('title'),
- blocks: getBlocks(),
- isTitleSupported: (_postType$supports$ti = postType?.supports?.title) !== null && _postType$supports$ti !== void 0 ? _postType$supports$ti : false
- };
-}))(DocumentOutline));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "document-outline",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("ul", {
+ children: [hasTitle && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(document_outline_item, {
+ level: (0,external_wp_i18n_namespaceObject.__)('Title'),
+ isValid: true,
+ onSelect: onSelect,
+ href: `#${titleNode.id}`,
+ isDisabled: hasOutlineItemsDisabled,
+ children: title
+ }), headings.map((item, index) => {
+ // Headings remain the same, go up by one, or down by any amount.
+ // Otherwise there are missing levels.
+ const isIncorrectLevel = item.level > prevHeadingLevel + 1;
+ const isValid = !item.isEmpty && !isIncorrectLevel && !!item.level && (item.level !== 1 || !hasMultipleH1 && !hasTitle);
+ prevHeadingLevel = item.level;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(document_outline_item, {
+ level: `H${item.level}`,
+ isValid: isValid,
+ isDisabled: hasOutlineItemsDisabled,
+ href: `#block-${item.clientId}`,
+ onSelect: () => {
+ selectBlock(item.clientId);
+ onSelect?.();
+ },
+ children: [item.isEmpty ? emptyHeadingContent : (0,external_wp_richText_namespaceObject.getTextContent)((0,external_wp_richText_namespaceObject.create)({
+ html: item.attributes.content
+ })), isIncorrectLevel && incorrectLevelContent, item.level === 1 && hasMultipleH1 && multipleH1Headings, hasTitle && item.level === 1 && !hasMultipleH1 && singleH1Headings]
+ }, index);
+ })]
+ })
+ });
+}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/document-outline/check.js
/**
@@ -6220,22 +8433,31 @@ const DocumentOutline = ({
*/
+
+/**
+ * Component check if there are any headings (core/heading blocks) present in the document.
+ *
+ * @param {Object} props Props.
+ * @param {Element} props.children Children to be rendered.
+ *
+ * @return {Component|null} The component to be rendered or null if there are headings.
+ */
function DocumentOutlineCheck({
- blocks,
children
}) {
- const headings = blocks.filter(block => block.name === 'core/heading');
- if (headings.length < 1) {
+ const hasHeadings = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getGlobalBlockCount
+ } = select(external_wp_blockEditor_namespaceObject.store);
+ return getGlobalBlockCount('core/heading') > 0;
+ });
+ if (hasHeadings) {
return null;
}
return children;
}
-/* harmony default export */ const check = ((0,external_wp_data_namespaceObject.withSelect)(select => ({
- blocks: select(external_wp_blockEditor_namespaceObject.store).getBlocks()
-}))(DocumentOutlineCheck));
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/global-keyboard-shortcuts/register-shortcuts.js
-
/**
* WordPress dependencies
*/
@@ -6245,6 +8467,13 @@ function DocumentOutlineCheck({
+
+/**
+ * Component for registering editor keyboard shortcuts.
+ *
+ * @return {Element} The component to be rendered.
+ */
+
function EditorKeyboardShortcutsRegister() {
// Registering the shortcuts.
const {
@@ -6252,6 +8481,15 @@ function EditorKeyboardShortcutsRegister() {
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_keyboardShortcuts_namespaceObject.store);
(0,external_wp_element_namespaceObject.useEffect)(() => {
registerShortcut({
+ name: 'core/editor/toggle-mode',
+ category: 'global',
+ description: (0,external_wp_i18n_namespaceObject.__)('Switch between visual editor and code editor.'),
+ keyCombination: {
+ modifier: 'secondary',
+ character: 'm'
+ }
+ });
+ registerShortcut({
name: 'core/editor/save',
category: 'global',
description: (0,external_wp_i18n_namespaceObject.__)('Save your changes.'),
@@ -6289,47 +8527,104 @@ function EditorKeyboardShortcutsRegister() {
registerShortcut({
name: 'core/editor/toggle-list-view',
category: 'global',
- description: (0,external_wp_i18n_namespaceObject.__)('Open the block list view.'),
+ description: (0,external_wp_i18n_namespaceObject.__)('Open the List View.'),
keyCombination: {
modifier: 'access',
character: 'o'
}
});
+ registerShortcut({
+ name: 'core/editor/toggle-distraction-free',
+ category: 'global',
+ description: (0,external_wp_i18n_namespaceObject.__)('Toggle distraction free mode.'),
+ keyCombination: {
+ modifier: 'primaryShift',
+ character: '\\'
+ }
+ });
+ registerShortcut({
+ name: 'core/editor/toggle-sidebar',
+ category: 'global',
+ description: (0,external_wp_i18n_namespaceObject.__)('Show or hide the Settings sidebar.'),
+ keyCombination: {
+ modifier: 'primaryShift',
+ character: ','
+ }
+ });
+ registerShortcut({
+ name: 'core/editor/keyboard-shortcuts',
+ category: 'main',
+ description: (0,external_wp_i18n_namespaceObject.__)('Display these keyboard shortcuts.'),
+ keyCombination: {
+ modifier: 'access',
+ character: 'h'
+ }
+ });
+ registerShortcut({
+ name: 'core/editor/next-region',
+ category: 'global',
+ description: (0,external_wp_i18n_namespaceObject.__)('Navigate to the next part of the editor.'),
+ keyCombination: {
+ modifier: 'ctrl',
+ character: '`'
+ },
+ aliases: [{
+ modifier: 'access',
+ character: 'n'
+ }]
+ });
+ registerShortcut({
+ name: 'core/editor/previous-region',
+ category: 'global',
+ description: (0,external_wp_i18n_namespaceObject.__)('Navigate to the previous part of the editor.'),
+ keyCombination: {
+ modifier: 'ctrlShift',
+ character: '`'
+ },
+ aliases: [{
+ modifier: 'access',
+ character: 'p'
+ }, {
+ modifier: 'ctrlShift',
+ character: '~'
+ }]
+ });
}, [registerShortcut]);
- return (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockEditorKeyboardShortcuts.Register, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockEditorKeyboardShortcuts.Register, {});
}
/* harmony default export */ const register_shortcuts = (EditorKeyboardShortcutsRegister);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/redo.js
-
/**
* WordPress dependencies
*/
-const redo_redo = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const redo_redo = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"
+ })
+});
/* harmony default export */ const library_redo = (redo_redo);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/undo.js
-
/**
* WordPress dependencies
*/
-const undo_undo = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const undo_undo = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"
+ })
+});
/* harmony default export */ const library_undo = (undo_undo);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/editor-history/redo.js
-
/**
* WordPress dependencies
*/
@@ -6344,13 +8639,14 @@ const undo_undo = (0,external_React_.createElement)(external_wp_primitives_names
* Internal dependencies
*/
+
function EditorHistoryRedo(props, ref) {
const shortcut = (0,external_wp_keycodes_namespaceObject.isAppleOS)() ? external_wp_keycodes_namespaceObject.displayShortcut.primaryShift('z') : external_wp_keycodes_namespaceObject.displayShortcut.primary('y');
const hasRedo = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).hasEditorRedo(), []);
const {
redo
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
...props,
ref: ref,
icon: !(0,external_wp_i18n_namespaceObject.isRTL)() ? library_redo : library_undo
@@ -6366,10 +8662,20 @@ function EditorHistoryRedo(props, ref) {
className: "editor-history__redo"
});
}
+
+/** @typedef {import('react').Ref<HTMLElement>} Ref */
+
+/**
+ * Renders the redo button for the editor history.
+ *
+ * @param {Object} props - Props.
+ * @param {Ref} ref - Forwarded ref.
+ *
+ * @return {Component} The component to be rendered.
+ */
/* harmony default export */ const editor_history_redo = ((0,external_wp_element_namespaceObject.forwardRef)(EditorHistoryRedo));
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/editor-history/undo.js
-
/**
* WordPress dependencies
*/
@@ -6384,12 +8690,13 @@ function EditorHistoryRedo(props, ref) {
* Internal dependencies
*/
+
function EditorHistoryUndo(props, ref) {
const hasUndo = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).hasEditorUndo(), []);
const {
undo
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
...props,
ref: ref,
icon: !(0,external_wp_i18n_namespaceObject.isRTL)() ? library_undo : library_redo
@@ -6405,10 +8712,20 @@ function EditorHistoryUndo(props, ref) {
className: "editor-history__undo"
});
}
+
+/** @typedef {import('react').Ref<HTMLElement>} Ref */
+
+/**
+ * Renders the undo button for the editor history.
+ *
+ * @param {Object} props - Props.
+ * @param {Ref} ref - Forwarded ref.
+ *
+ * @return {Component} The component to be rendered.
+ */
/* harmony default export */ const editor_history_undo = ((0,external_wp_element_namespaceObject.forwardRef)(EditorHistoryUndo));
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/template-validation-notice/index.js
-
/**
* WordPress dependencies
*/
@@ -6417,48 +8734,49 @@ function EditorHistoryUndo(props, ref) {
-function TemplateValidationNotice({
- isValid,
- ...props
-}) {
+
+
+
+function TemplateValidationNotice() {
+ const [showConfirmDialog, setShowConfirmDialog] = (0,external_wp_element_namespaceObject.useState)(false);
+ const isValid = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ return select(external_wp_blockEditor_namespaceObject.store).isValidTemplate();
+ }, []);
+ const {
+ setTemplateValidity,
+ synchronizeTemplate
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
if (isValid) {
return null;
}
- const confirmSynchronization = () => {
- if (
- // eslint-disable-next-line no-alert
- window.confirm((0,external_wp_i18n_namespaceObject.__)('Resetting the template may result in loss of content, do you want to continue?'))) {
- props.synchronizeTemplate();
- }
- };
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Notice, {
- className: "editor-template-validation-notice",
- isDismissible: false,
- status: "warning",
- actions: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Keep it as is'),
- onClick: props.resetTemplateValidity
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('Reset the template'),
- onClick: confirmSynchronization
- }]
- }, (0,external_wp_i18n_namespaceObject.__)('The content of your post doesn’t match the template assigned to your post type.'));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
+ className: "editor-template-validation-notice",
+ isDismissible: false,
+ status: "warning",
+ actions: [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Keep it as is'),
+ onClick: () => setTemplateValidity(true)
+ }, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Reset the template'),
+ onClick: () => setShowConfirmDialog(true)
+ }],
+ children: (0,external_wp_i18n_namespaceObject.__)('The content of your post doesn’t match the template assigned to your post type.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
+ isOpen: showConfirmDialog,
+ confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Reset'),
+ onConfirm: () => {
+ setShowConfirmDialog(false);
+ synchronizeTemplate();
+ },
+ onCancel: () => setShowConfirmDialog(false),
+ size: "medium",
+ children: (0,external_wp_i18n_namespaceObject.__)('Resetting the template may result in loss of content, do you want to continue?')
+ })]
+ });
}
-/* harmony default export */ const template_validation_notice = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)(select => ({
- isValid: select(external_wp_blockEditor_namespaceObject.store).isValidTemplate()
-})), (0,external_wp_data_namespaceObject.withDispatch)(dispatch => {
- const {
- setTemplateValidity,
- synchronizeTemplate
- } = dispatch(external_wp_blockEditor_namespaceObject.store);
- return {
- resetTemplateValidity: () => setTemplateValidity(true),
- synchronizeTemplate
- };
-})])(TemplateValidationNotice));
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/editor-notices/index.js
-
/**
* WordPress dependencies
*/
@@ -6470,6 +8788,20 @@ function TemplateValidationNotice({
* Internal dependencies
*/
+
+/**
+ * This component renders the notices displayed in the editor. It displays pinned notices first, followed by dismissible
+ *
+ * @example
+ * ```jsx
+ * <EditorNotices />
+ * ```
+ *
+ * @return {JSX.Element} The rendered EditorNotices component.
+ */
+
+
+
function EditorNotices() {
const {
notices
@@ -6487,19 +8819,21 @@ function EditorNotices() {
isDismissible,
type
}) => !isDismissible && type === 'default');
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.NoticeList, {
- notices: nonDismissibleNotices,
- className: "components-editor-notices__pinned"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.NoticeList, {
- notices: dismissibleNotices,
- className: "components-editor-notices__dismissible",
- onRemove: removeNotice
- }, (0,external_React_.createElement)(template_validation_notice, null)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.NoticeList, {
+ notices: nonDismissibleNotices,
+ className: "components-editor-notices__pinned"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.NoticeList, {
+ notices: dismissibleNotices,
+ className: "components-editor-notices__dismissible",
+ onRemove: removeNotice,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplateValidationNotice, {})
+ })]
+ });
}
/* harmony default export */ const editor_notices = (EditorNotices);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/editor-snackbars/index.js
-
/**
* WordPress dependencies
*/
@@ -6508,7 +8842,14 @@ function EditorNotices() {
// Last three notices. Slices from the tail end of the list.
+
const MAX_VISIBLE_NOTICES = -3;
+
+/**
+ * Renders the editor snackbars component.
+ *
+ * @return {JSX.Element} The rendered component.
+ */
function EditorSnackbars() {
const notices = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_notices_namespaceObject.store).getNotices(), []);
const {
@@ -6517,17 +8858,14 @@ function EditorSnackbars() {
const snackbarNotices = notices.filter(({
type
}) => type === 'snackbar').slice(MAX_VISIBLE_NOTICES);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.SnackbarList, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SnackbarList, {
notices: snackbarNotices,
className: "components-editor-notices__snackbar",
onRemove: removeNotice
});
}
-;// CONCATENATED MODULE: external ["wp","htmlEntities"]
-const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/entities-saved-states/entity-record-item.js
-
/**
* WordPress dependencies
*/
@@ -6541,6 +8879,10 @@ const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
* Internal dependencies
*/
+
+
+
+
function EntityRecordItem({
record,
checked,
@@ -6554,23 +8896,40 @@ function EntityRecordItem({
} = record;
// Handle templates that might use default descriptive titles.
- const entityRecordTitle = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ entityRecordTitle,
+ hasPostMetaChanges
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
if ('postType' !== kind || 'wp_template' !== name) {
- return title;
+ return {
+ entityRecordTitle: title,
+ hasPostMetaChanges: unlock(select(store_store)).hasPostMetaChanges(name, key)
+ };
}
const template = select(external_wp_coreData_namespaceObject.store).getEditedEntityRecord(kind, name, key);
- return select(store_store).__experimentalGetTemplateInfo(template).title;
+ return {
+ entityRecordTitle: select(store_store).__experimentalGetTemplateInfo(template).title,
+ hasPostMetaChanges: unlock(select(store_store)).hasPostMetaChanges(name, key)
+ };
}, [name, kind, title, key]);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelRow, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(entityRecordTitle) || (0,external_wp_i18n_namespaceObject.__)('Untitled'),
- checked: checked,
- onChange: onChange
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelRow, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(entityRecordTitle) || (0,external_wp_i18n_namespaceObject.__)('Untitled'),
+ checked: checked,
+ onChange: onChange
+ })
+ }), hasPostMetaChanges && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ className: "entities-saved-states__changes",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Post Meta.')
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/entities-saved-states/entity-type-list.js
-
/**
* WordPress dependencies
*/
@@ -6586,6 +8945,8 @@ function EntityRecordItem({
*/
+
+
const {
getGlobalStylesChanges,
GlobalStylesContext
@@ -6611,11 +8972,12 @@ function GlobalStylesDescription({
const globalStylesChanges = getGlobalStylesChanges(currentEditorGlobalStyles, savedRecord, {
maxResults: 10
});
- return globalStylesChanges.length ? (0,external_React_.createElement)("ul", {
- className: "entities-saved-states__changes"
- }, globalStylesChanges.map(change => (0,external_React_.createElement)("li", {
- key: change
- }, change))) : null;
+ return globalStylesChanges.length ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ className: "entities-saved-states__changes",
+ children: globalStylesChanges.map(change => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ children: change
+ }, change))
+ }) : null;
}
function EntityDescription({
record,
@@ -6625,7 +8987,9 @@ function EntityDescription({
return null;
}
const description = getEntityDescription(record?.name, count);
- return description ? (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelRow, null, description) : null;
+ return description ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelRow, {
+ children: description
+ }) : null;
}
function EntityTypeList({
list,
@@ -6639,22 +9003,22 @@ function EntityTypeList({
if (firstRecord?.name === 'wp_template_part') {
entityLabel = 1 === count ? (0,external_wp_i18n_namespaceObject.__)('Template Part') : (0,external_wp_i18n_namespaceObject.__)('Template Parts');
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
title: entityLabel,
- initialOpen: true
- }, (0,external_React_.createElement)(EntityDescription, {
- record: firstRecord,
- count: count
- }), list.map(record => {
- return (0,external_React_.createElement)(EntityRecordItem, {
- key: record.key || record.property,
- record: record,
- checked: !unselectedEntities.some(elt => elt.kind === record.kind && elt.name === record.name && elt.key === record.key && elt.property === record.property),
- onChange: value => setUnselectedEntities(record, value)
- });
- }), 'globalStyles' === firstRecord?.name && (0,external_React_.createElement)(GlobalStylesDescription, {
- record: firstRecord
- }));
+ initialOpen: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EntityDescription, {
+ record: firstRecord,
+ count: count
+ }), list.map(record => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EntityRecordItem, {
+ record: record,
+ checked: !unselectedEntities.some(elt => elt.kind === record.kind && elt.name === record.name && elt.key === record.key && elt.property === record.property),
+ onChange: value => setUnselectedEntities(record, value)
+ }, record.key || record.property);
+ }), 'globalStyles' === firstRecord?.name && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GlobalStylesDescription, {
+ record: firstRecord
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/entities-saved-states/hooks/use-is-dirty.js
@@ -6664,45 +9028,39 @@ function EntityTypeList({
-
-const TRANSLATED_SITE_PROPERTIES = {
- title: (0,external_wp_i18n_namespaceObject.__)('Title'),
- description: (0,external_wp_i18n_namespaceObject.__)('Tagline'),
- site_logo: (0,external_wp_i18n_namespaceObject.__)('Logo'),
- site_icon: (0,external_wp_i18n_namespaceObject.__)('Icon'),
- show_on_front: (0,external_wp_i18n_namespaceObject.__)('Show on front'),
- page_on_front: (0,external_wp_i18n_namespaceObject.__)('Page on front'),
- posts_per_page: (0,external_wp_i18n_namespaceObject.__)('Maximum posts per page'),
- default_comment_status: (0,external_wp_i18n_namespaceObject.__)('Allow comments on new posts')
-};
const useIsDirty = () => {
const {
editedEntities,
- siteEdits
+ siteEdits,
+ siteEntityConfig
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
__experimentalGetDirtyEntityRecords,
- getEntityRecordEdits
+ getEntityRecordEdits,
+ getEntityConfig
} = select(external_wp_coreData_namespaceObject.store);
return {
editedEntities: __experimentalGetDirtyEntityRecords(),
- siteEdits: getEntityRecordEdits('root', 'site')
+ siteEdits: getEntityRecordEdits('root', 'site'),
+ siteEntityConfig: getEntityConfig('root', 'site')
};
}, []);
const dirtyEntityRecords = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ var _siteEntityConfig$met;
// Remove site object and decouple into its edited pieces.
const editedEntitiesWithoutSite = editedEntities.filter(record => !(record.kind === 'root' && record.name === 'site'));
+ const siteEntityLabels = (_siteEntityConfig$met = siteEntityConfig?.meta?.labels) !== null && _siteEntityConfig$met !== void 0 ? _siteEntityConfig$met : {};
const editedSiteEntities = [];
for (const property in siteEdits) {
editedSiteEntities.push({
kind: 'root',
name: 'site',
- title: TRANSLATED_SITE_PROPERTIES[property] || property,
+ title: siteEntityLabels[property] || property,
property
});
}
return [...editedEntitiesWithoutSite, ...editedSiteEntities];
- }, [editedEntities, siteEdits]);
+ }, [editedEntities, siteEdits, siteEntityConfig]);
// Unchecked entities to be ignored by save function.
const [unselectedEntities, _setUnselectedEntities] = (0,external_wp_element_namespaceObject.useState)([]);
@@ -6733,7 +9091,6 @@ const useIsDirty = () => {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/entities-saved-states/index.js
-
/**
* WordPress dependencies
*/
@@ -6743,27 +9100,26 @@ const useIsDirty = () => {
-
-
-
/**
* Internal dependencies
*/
-const PUBLISH_ON_SAVE_ENTITIES = [{
- kind: 'postType',
- name: 'wp_navigation'
-}];
+
+
+
+
function identity(values) {
return values;
}
function EntitiesSavedStates({
- close
+ close,
+ renderDialog = undefined
}) {
const isDirtyProps = useIsDirty();
- return (0,external_React_.createElement)(EntitiesSavedStatesExtensible, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EntitiesSavedStatesExtensible, {
close: close,
+ renderDialog: renderDialog,
...isDirtyProps
});
}
@@ -6773,6 +9129,7 @@ function EntitiesSavedStatesExtensible({
onSave = identity,
saveEnabled: saveEnabledProp = undefined,
saveLabel = (0,external_wp_i18n_namespaceObject.__)('Save'),
+ renderDialog = undefined,
dirtyEntityRecords,
isDirty,
setUnselectedEntities,
@@ -6780,19 +9137,8 @@ function EntitiesSavedStatesExtensible({
}) {
const saveButtonRef = (0,external_wp_element_namespaceObject.useRef)();
const {
- editEntityRecord,
- saveEditedEntityRecord,
- __experimentalSaveSpecifiedEntityEdits: saveSpecifiedEntityEdits
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
- const {
- __unstableMarkLastChangeAsPersistent
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- const {
- createSuccessNotice,
- createErrorNotice,
- removeNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
-
+ saveDirtyEntities
+ } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
// To group entities by type.
const partitionedSavables = dirtyEntityRecords.reduce((acc, record) => {
const {
@@ -6814,114 +9160,73 @@ function EntitiesSavedStatesExtensible({
} = partitionedSavables;
const sortedPartitionedSavables = [siteSavables, templateSavables, templatePartSavables, ...Object.values(contentSavables)].filter(Array.isArray);
const saveEnabled = saveEnabledProp !== null && saveEnabledProp !== void 0 ? saveEnabledProp : isDirty;
- const {
- homeUrl
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getUnstableBase // Site index.
- } = select(external_wp_coreData_namespaceObject.store);
- return {
- homeUrl: getUnstableBase()?.home
- };
- }, []);
- const saveCheckedEntities = () => {
- const saveNoticeId = 'site-editor-save-success';
- removeNotice(saveNoticeId);
- const entitiesToSave = dirtyEntityRecords.filter(({
- kind,
- name,
- key,
- property
- }) => {
- return !unselectedEntities.some(elt => elt.kind === kind && elt.name === name && elt.key === key && elt.property === property);
- });
- close(entitiesToSave);
- const siteItemsToSave = [];
- const pendingSavedRecords = [];
- entitiesToSave.forEach(({
- kind,
- name,
- key,
- property
- }) => {
- if ('root' === kind && 'site' === name) {
- siteItemsToSave.push(property);
- } else {
- if (PUBLISH_ON_SAVE_ENTITIES.some(typeToPublish => typeToPublish.kind === kind && typeToPublish.name === name)) {
- editEntityRecord(kind, name, key, {
- status: 'publish'
- });
- }
- pendingSavedRecords.push(saveEditedEntityRecord(kind, name, key));
- }
- });
- if (siteItemsToSave.length) {
- pendingSavedRecords.push(saveSpecifiedEntityEdits('root', 'site', undefined, siteItemsToSave));
- }
- __unstableMarkLastChangeAsPersistent();
- Promise.all(pendingSavedRecords).then(values => {
- return onSave(values);
- }).then(values => {
- if (values.some(value => typeof value === 'undefined')) {
- createErrorNotice((0,external_wp_i18n_namespaceObject.__)('Saving failed.'));
- } else {
- createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Site updated.'), {
- type: 'snackbar',
- id: saveNoticeId,
- actions: [{
- label: (0,external_wp_i18n_namespaceObject.__)('View site'),
- url: homeUrl
- }]
- });
- }
- }).catch(error => createErrorNotice(`${(0,external_wp_i18n_namespaceObject.__)('Saving failed.')} ${error}`));
- };
-
// Explicitly define this with no argument passed. Using `close` on
// its own will use the event object in place of the expected saved entities.
const dismissPanel = (0,external_wp_element_namespaceObject.useCallback)(() => close(), [close]);
const [saveDialogRef, saveDialogProps] = (0,external_wp_compose_namespaceObject.__experimentalUseDialog)({
onClose: () => dismissPanel()
});
- return (0,external_React_.createElement)("div", {
+ const dialogLabel = (0,external_wp_compose_namespaceObject.useInstanceId)(EntitiesSavedStatesExtensible, 'label');
+ const dialogDescription = (0,external_wp_compose_namespaceObject.useInstanceId)(EntitiesSavedStatesExtensible, 'description');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
ref: saveDialogRef,
...saveDialogProps,
- className: "entities-saved-states__panel"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- className: "entities-saved-states__panel-header",
- gap: 2
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- isBlock: true,
- as: external_wp_components_namespaceObject.Button,
- ref: saveButtonRef,
- variant: "primary",
- disabled: !saveEnabled,
- onClick: saveCheckedEntities,
- className: "editor-entities-saved-states__save-button"
- }, saveLabel), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, {
- isBlock: true,
- as: external_wp_components_namespaceObject.Button,
- variant: "secondary",
- onClick: dismissPanel
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel'))), (0,external_React_.createElement)("div", {
- className: "entities-saved-states__text-prompt"
- }, (0,external_React_.createElement)("strong", {
- className: "entities-saved-states__text-prompt--header"
- }, (0,external_wp_i18n_namespaceObject.__)('Are you ready to save?')), additionalPrompt, (0,external_React_.createElement)("p", null, isDirty ? (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of site changes waiting to be saved. */
- (0,external_wp_i18n_namespaceObject._n)('There is <strong>%d site change</strong> waiting to be saved.', 'There are <strong>%d site changes</strong> waiting to be saved.', sortedPartitionedSavables.length), sortedPartitionedSavables.length), {
- strong: (0,external_React_.createElement)("strong", null)
- }) : (0,external_wp_i18n_namespaceObject.__)('Select the items you want to save.'))), sortedPartitionedSavables.map(list => {
- return (0,external_React_.createElement)(EntityTypeList, {
- key: list[0].name,
- list: list,
- unselectedEntities: unselectedEntities,
- setUnselectedEntities: setUnselectedEntities
- });
- }));
+ className: "entities-saved-states__panel",
+ role: renderDialog ? 'dialog' : undefined,
+ "aria-labelledby": renderDialog ? dialogLabel : undefined,
+ "aria-describedby": renderDialog ? dialogDescription : undefined,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ className: "entities-saved-states__panel-header",
+ gap: 2,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ isBlock: true,
+ as: external_wp_components_namespaceObject.Button,
+ ref: saveButtonRef,
+ variant: "primary",
+ disabled: !saveEnabled,
+ __experimentalIsFocusable: true,
+ onClick: () => saveDirtyEntities({
+ onSave,
+ dirtyEntityRecords,
+ entitiesToSkip: unselectedEntities,
+ close
+ }),
+ className: "editor-entities-saved-states__save-button",
+ children: saveLabel
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ isBlock: true,
+ as: external_wp_components_namespaceObject.Button,
+ variant: "secondary",
+ onClick: dismissPanel,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "entities-saved-states__text-prompt",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "entities-saved-states__text-prompt--header-wrapper",
+ id: renderDialog ? dialogLabel : undefined,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", {
+ className: "entities-saved-states__text-prompt--header",
+ children: (0,external_wp_i18n_namespaceObject.__)('Are you ready to save?')
+ }), additionalPrompt]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ id: renderDialog ? dialogDescription : undefined,
+ children: isDirty ? (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of site changes waiting to be saved. */
+ (0,external_wp_i18n_namespaceObject._n)('There is <strong>%d site change</strong> waiting to be saved.', 'There are <strong>%d site changes</strong> waiting to be saved.', sortedPartitionedSavables.length), sortedPartitionedSavables.length), {
+ strong: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", {})
+ }) : (0,external_wp_i18n_namespaceObject.__)('Select the items you want to save.')
+ })]
+ }), sortedPartitionedSavables.map(list => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EntityTypeList, {
+ list: list,
+ unselectedEntities: unselectedEntities,
+ setUnselectedEntities: setUnselectedEntities
+ }, list[0].name);
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/error-boundary/index.js
-
/**
* WordPress dependencies
*/
@@ -6937,6 +9242,7 @@ function EntitiesSavedStatesExtensible({
* Internal dependencies
*/
+
function getContent() {
try {
// While `select` in a component is generally discouraged, it is
@@ -6953,10 +9259,11 @@ function CopyButton({
children
}) {
const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(text);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
variant: "secondary",
- ref: ref
- }, children);
+ ref: ref,
+ children: children
+ });
}
class ErrorBoundary extends external_wp_element_namespaceObject.Component {
constructor() {
@@ -6980,23 +9287,34 @@ class ErrorBoundary extends external_wp_element_namespaceObject.Component {
if (!error) {
return this.props.children;
}
- const actions = [(0,external_React_.createElement)(CopyButton, {
- key: "copy-post",
- text: getContent
- }, (0,external_wp_i18n_namespaceObject.__)('Copy Post Text')), (0,external_React_.createElement)(CopyButton, {
- key: "copy-error",
- text: error.stack
- }, (0,external_wp_i18n_namespaceObject.__)('Copy Error'))];
- return (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.Warning, {
+ const actions = [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CopyButton, {
+ text: getContent,
+ children: (0,external_wp_i18n_namespaceObject.__)('Copy Post Text')
+ }, "copy-post"), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CopyButton, {
+ text: error.stack,
+ children: (0,external_wp_i18n_namespaceObject.__)('Copy Error')
+ }, "copy-error")];
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
className: "editor-error-boundary",
- actions: actions
- }, (0,external_wp_i18n_namespaceObject.__)('The editor has encountered an unexpected error.'));
+ actions: actions,
+ children: (0,external_wp_i18n_namespaceObject.__)('The editor has encountered an unexpected error.')
+ });
}
}
+
+/**
+ * ErrorBoundary is used to catch JavaScript errors anywhere in a child component tree, log those errors, and display a fallback UI.
+ *
+ * It uses the lifecycle methods getDerivedStateFromError and componentDidCatch to catch errors in a child component tree.
+ *
+ * getDerivedStateFromError is used to render a fallback UI after an error has been thrown, and componentDidCatch is used to log error information.
+ *
+ * @class ErrorBoundary
+ * @augments Component
+ */
/* harmony default export */ const error_boundary = (ErrorBoundary);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/local-autosave-monitor/index.js
-
/**
* WordPress dependencies
*/
@@ -7013,6 +9331,7 @@ class ErrorBoundary extends external_wp_element_namespaceObject.Component {
+
const requestIdleCallback = window.requestIdleCallback ? window.requestIdleCallback : window.requestAnimationFrame;
let hasStorageSupport;
@@ -7166,11 +9485,24 @@ function LocalAutosaveMonitor() {
useAutosaveNotice();
useAutosavePurge();
const localAutosaveInterval = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getEditorSettings().localAutosaveInterval, []);
- return (0,external_React_.createElement)(autosave_monitor, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(autosave_monitor, {
interval: localAutosaveInterval,
autosave: deferredAutosave
});
}
+
+/**
+ * Monitors local autosaves of a post in the editor.
+ * It uses several hooks and functions to manage autosave behavior:
+ * - `useAutosaveNotice` hook: Manages the creation of a notice prompting the user to restore a local autosave, if one exists.
+ * - `useAutosavePurge` hook: Ejects a local autosave after a successful save occurs.
+ * - `hasSessionStorageSupport` function: Checks if the current environment supports browser sessionStorage.
+ * - `LocalAutosaveMonitor` component: Uses the `AutosaveMonitor` component to perform autosaves at a specified interval.
+ *
+ * The module also checks for sessionStorage support and conditionally exports the `LocalAutosaveMonitor` component based on that.
+ *
+ * @module LocalAutosaveMonitor
+ */
/* harmony default export */ const local_autosave_monitor = ((0,external_wp_compose_namespaceObject.ifCondition)(hasSessionStorageSupport)(LocalAutosaveMonitor));
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/page-attributes/check.js
@@ -7184,6 +9516,15 @@ function LocalAutosaveMonitor() {
* Internal dependencies
*/
+
+/**
+ * Wrapper component that renders its children only if the post type supports page attributes.
+ *
+ * @param {Object} props - The component props.
+ * @param {Element} props.children - The child components to render.
+ *
+ * @return {Component|null} The rendered child components or null if page attributes are not supported.
+ */
function PageAttributesCheck({
children
}) {
@@ -7206,6 +9547,38 @@ function PageAttributesCheck({
}
/* harmony default export */ const page_attributes_check = (PageAttributesCheck);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-panel-row/index.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+const PostPanelRow = (0,external_wp_element_namespaceObject.forwardRef)(({
+ className,
+ label,
+ children
+}, ref) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ className: dist_clsx('editor-post-panel__row', className),
+ ref: ref,
+ children: [label && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-post-panel__row-label",
+ children: label
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-post-panel__row-control",
+ children: children
+ })]
+ });
+});
+/* harmony default export */ const post_panel_row = (PostPanelRow);
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-type-support-check/index.js
/**
* WordPress dependencies
@@ -7243,7 +9616,7 @@ function PostTypeSupportCheck({
} = select(external_wp_coreData_namespaceObject.store);
return getPostType(getEditedPostAttribute('type'));
}, []);
- let isSupported = true;
+ let isSupported = !!postType;
if (postType) {
isSupported = (Array.isArray(supportKeys) ? supportKeys : [supportKeys]).some(key => !!postType.supports[key]);
}
@@ -7255,7 +9628,6 @@ function PostTypeSupportCheck({
/* harmony default export */ const post_type_support_check = (PostTypeSupportCheck);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/page-attributes/order.js
-
/**
* WordPress dependencies
*/
@@ -7264,11 +9636,15 @@ function PostTypeSupportCheck({
+
/**
* Internal dependencies
*/
+
+
+
function PageAttributesOrder() {
const order = (0,external_wp_data_namespaceObject.useSelect)(select => {
var _select$getEditedPost;
@@ -7288,21 +9664,98 @@ function PageAttributesOrder() {
}
};
const value = orderInput !== null && orderInput !== void 0 ? orderInput : order;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexBlock, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalNumberControl, {
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Order'),
- value: value,
- onChange: setUpdatedOrder,
- labelPosition: "side",
- onBlur: () => {
- setOrderInput(null);
- }
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Flex, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexBlock, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNumberControl, {
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Order'),
+ help: (0,external_wp_i18n_namespaceObject.__)('Set the page order.'),
+ value: value,
+ onChange: setUpdatedOrder,
+ hideLabelFromVision: true,
+ onBlur: () => {
+ setOrderInput(null);
+ }
+ })
+ })
+ });
}
+
+/**
+ * Renders the Page Attributes Order component. A number input in an editor interface
+ * for setting the order of a given page.
+ *
+ * @return {Component} The component to be rendered.
+ */
function PageAttributesOrderWithChecks() {
- return (0,external_React_.createElement)(post_type_support_check, {
- supportKeys: "page-attributes"
- }, (0,external_React_.createElement)(PageAttributesOrder, null));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_type_support_check, {
+ supportKeys: "page-attributes",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PageAttributesOrder, {})
+ });
+}
+function PostOrderToggle({
+ isOpen,
+ onClick
+}) {
+ const order = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ var _select$getEditedPost2;
+ return (_select$getEditedPost2 = select(store_store).getEditedPostAttribute('menu_order')) !== null && _select$getEditedPost2 !== void 0 ? _select$getEditedPost2 : 0;
+ }, []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "compact",
+ className: "editor-post-order__panel-toggle",
+ variant: "tertiary",
+ "aria-expanded": isOpen
+ // translators: %s: Current post parent.
+ ,
+ "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Change order: %s'), order),
+ onClick: onClick,
+ children: order
+ });
+}
+function OrderRow() {
+ // Use internal state instead of a ref to make sure that the component
+ // re-renders when the popover's anchor updates.
+ const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
+ // Memoize popoverProps to avoid returning a new object every time.
+ const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ // Anchor the popover to the middle of the entire row so that it doesn't
+ // move around when the label changes.
+ anchor: popoverAnchor,
+ placement: 'left-start',
+ offset: 36,
+ shift: true
+ }), [popoverAnchor]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Order'),
+ ref: setPopoverAnchor,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ popoverProps: popoverProps,
+ className: "editor-post-order__panel-dropdown",
+ contentClassName: "editor-post-order__panel-dialog",
+ focusOnMount: true,
+ renderToggle: ({
+ isOpen,
+ onToggle
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostOrderToggle, {
+ isOpen: isOpen,
+ onClick: onToggle
+ }),
+ renderContent: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-post-order",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Order'),
+ onClose: onClose
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ children: [(0,external_wp_i18n_namespaceObject.__)('This attribute determines the order of pages in the Pages List block.'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Pages with the same order value will sorted alphabetically. Negative order values are also supported.')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PageAttributesOrder, {})]
+ })
+ })
+ });
}
// EXTERNAL MODULE: ./node_modules/remove-accents/index.js
@@ -7388,7 +9841,6 @@ const unescapeTerms = terms => {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/page-attributes/parent.js
-
/**
* External dependencies
*/
@@ -7405,11 +9857,15 @@ const unescapeTerms = terms => {
+
/**
* Internal dependencies
*/
+
+
+
function getTitle(post) {
return post?.title?.rendered ? (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(post.title.rendered) : `#${post.id} (${(0,external_wp_i18n_namespaceObject.__)('no title')})`;
}
@@ -7424,6 +9880,13 @@ const getItemPriority = (name, searchValue) => {
}
return Infinity;
};
+
+/**
+ * Renders the Page Attributes Parent component. A dropdown menu in an editor interface
+ * for selecting the parent page of a given page.
+ *
+ * @return {Component|null} The component to be rendered. Return null if post type is not hierarchical.
+ */
function PageAttributesParent() {
const {
editPost
@@ -7532,29 +9995,106 @@ function PageAttributesParent() {
parent: selectedPostId
});
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ComboboxControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ComboboxControl, {
__nextHasNoMarginBottom: true,
__next40pxDefaultSize: true,
className: "editor-page-attributes__parent",
label: (0,external_wp_i18n_namespaceObject.__)('Parent'),
+ help: (0,external_wp_i18n_namespaceObject.__)('Choose a parent page.'),
value: parentPostId,
options: parentOptions,
onFilterValueChange: (0,external_wp_compose_namespaceObject.debounce)(handleKeydown, 300),
- onChange: handleChange
+ onChange: handleChange,
+ hideLabelFromVision: true
+ });
+}
+function PostParentToggle({
+ isOpen,
+ onClick
+}) {
+ const parentPost = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getEditedPostAttribute
+ } = select(store_store);
+ const parentPostId = getEditedPostAttribute('parent');
+ if (!parentPostId) {
+ return null;
+ }
+ const {
+ getEntityRecord
+ } = select(external_wp_coreData_namespaceObject.store);
+ const postTypeSlug = getEditedPostAttribute('type');
+ return getEntityRecord('postType', postTypeSlug, parentPostId);
+ }, []);
+ const parentTitle = (0,external_wp_element_namespaceObject.useMemo)(() => !parentPost ? (0,external_wp_i18n_namespaceObject.__)('None') : getTitle(parentPost), [parentPost]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "compact",
+ className: "editor-post-parent__panel-toggle",
+ variant: "tertiary",
+ "aria-expanded": isOpen
+ // translators: %s: Current post parent.
+ ,
+ "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Change parent: %s'), parentTitle),
+ onClick: onClick,
+ children: parentTitle
+ });
+}
+function ParentRow() {
+ // Use internal state instead of a ref to make sure that the component
+ // re-renders when the popover's anchor updates.
+ const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
+ // Memoize popoverProps to avoid returning a new object every time.
+ const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ // Anchor the popover to the middle of the entire row so that it doesn't
+ // move around when the label changes.
+ anchor: popoverAnchor,
+ placement: 'left-start',
+ offset: 36,
+ shift: true
+ }), [popoverAnchor]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Parent'),
+ ref: setPopoverAnchor,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ popoverProps: popoverProps,
+ className: "editor-post-parent__panel-dropdown",
+ contentClassName: "editor-post-parent__panel-dialog",
+ focusOnMount: true,
+ renderToggle: ({
+ isOpen,
+ onToggle
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostParentToggle, {
+ isOpen: isOpen,
+ onClick: onToggle
+ }),
+ renderContent: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-post-parent",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Parent'),
+ onClose: onClose
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ children: [/* translators: The domain name should be a reserved domain name to prevent linking to third party sites outside the WordPress project's control. You may also wish to use wordpress.org or a wordpress.org sub-domain. */
+ (0,external_wp_i18n_namespaceObject.__)("Child pages inherit characteristics from their parent, such as URL structure. For instance, if 'Web Design' is a child of 'Services', its URL would be example.org/services/web-design."), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("p", {
+ children: [(0,external_wp_i18n_namespaceObject.__)('They also show up as sub-items in the default navigation menu. '), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/page-post-settings-sidebar/#page-attributes'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Learn more')
+ })]
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PageAttributesParent, {})]
+ })
+ })
});
}
/* harmony default export */ const page_attributes_parent = (PageAttributesParent);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/page-attributes/panel.js
-
/**
* WordPress dependencies
*/
-
-
-
/**
* Internal dependencies
*/
@@ -7562,61 +10102,64 @@ function PageAttributesParent() {
+
+
+
const PANEL_NAME = 'page-attributes';
-function PageAttributesPanel() {
- var _postType$labels$attr;
+function AttributesPanel() {
const {
isEnabled,
- isOpened,
postType
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getEditedPostAttribute,
- isEditorPanelEnabled,
- isEditorPanelOpened
+ isEditorPanelEnabled
} = select(store_store);
const {
getPostType
} = select(external_wp_coreData_namespaceObject.store);
return {
isEnabled: isEditorPanelEnabled(PANEL_NAME),
- isOpened: isEditorPanelOpened(PANEL_NAME),
postType: getPostType(getEditedPostAttribute('type'))
};
}, []);
- const {
- toggleEditorPanelOpened
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
if (!isEnabled || !postType) {
return null;
}
- const onTogglePanel = (...args) => toggleEditorPanelOpened(PANEL_NAME, ...args);
- return (0,external_React_.createElement)(page_attributes_check, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (_postType$labels$attr = postType?.labels?.attributes) !== null && _postType$labels$attr !== void 0 ? _postType$labels$attr : (0,external_wp_i18n_namespaceObject.__)('Page attributes'),
- opened: isOpened,
- onToggle: onTogglePanel
- }, (0,external_React_.createElement)(page_attributes_parent, null), (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelRow, null, (0,external_React_.createElement)(PageAttributesOrderWithChecks, null))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ParentRow, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OrderRow, {})]
+ });
}
-/* harmony default export */ const panel = (PageAttributesPanel);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/add-template.js
+/**
+ * Renders the Page Attributes Panel component.
+ *
+ * @return {Component} The component to be rendered.
+ */
+function PageAttributesPanel() {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(page_attributes_check, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AttributesPanel, {})
+ });
+}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/add-template.js
/**
* WordPress dependencies
*/
-const addTemplate = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const addTemplate = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM13.9624 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10.0391H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H10L10 10.4917L16.4589 10.5139L16.4641 9.01389L5.5 8.97618V6C5.5 5.72386 5.72386 5.5 6 5.5H13.9624V4ZM5.5 10.4762V18C5.5 18.2761 5.72386 18.5 6 18.5H8.5L8.5 10.4865L5.5 10.4762Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM13.9624 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10.0391H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H10L10 10.4917L16.4589 10.5139L16.4641 9.01389L5.5 8.97618V6C5.5 5.72386 5.72386 5.5 6 5.5H13.9624V4ZM5.5 10.4762V18C5.5 18.2761 5.72386 18.5 6 18.5H8.5L8.5 10.4865L5.5 10.4762Z"
+ })
+});
/* harmony default export */ const add_template = (addTemplate);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-template/create-new-template-modal.js
-
/**
* WordPress dependencies
*/
@@ -7632,6 +10175,8 @@ const addTemplate = (0,external_React_.createElement)(external_wp_primitives_nam
*/
+
+
const DEFAULT_TITLE = (0,external_wp_i18n_namespaceObject.__)('Custom Template');
function CreateNewTemplateModal({
onClose
@@ -7693,33 +10238,39 @@ function CreateNewTemplateModal({
});
cancel();
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
title: (0,external_wp_i18n_namespaceObject.__)('Create custom template'),
- onRequestClose: cancel
- }, (0,external_React_.createElement)("form", {
- className: "editor-post-template__create-form",
- onSubmit: submit
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "3"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Name'),
- value: title,
- onChange: setTitle,
- placeholder: DEFAULT_TITLE,
- disabled: isBusy,
- help: (0,external_wp_i18n_namespaceObject.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: cancel
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- type: "submit",
- isBusy: isBusy,
- "aria-disabled": isBusy
- }, (0,external_wp_i18n_namespaceObject.__)('Create'))))));
+ onRequestClose: cancel,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ className: "editor-post-template__create-form",
+ onSubmit: submit,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "3",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Name'),
+ value: title,
+ onChange: setTitle,
+ placeholder: DEFAULT_TITLE,
+ disabled: isBusy,
+ help: (0,external_wp_i18n_namespaceObject.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: cancel,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ type: "submit",
+ isBusy: isBusy,
+ "aria-disabled": isBusy,
+ children: (0,external_wp_i18n_namespaceObject.__)('Create')
+ })]
+ })]
+ })
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-template/hooks.js
@@ -7802,7 +10353,6 @@ function useCurrentTemplateSlug() {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-template/classic-theme.js
-
/**
* WordPress dependencies
*/
@@ -7821,6 +10371,8 @@ function useCurrentTemplateSlug() {
+
+
const POPOVER_PROPS = {
className: 'editor-post-template__dropdown',
placement: 'bottom-start'
@@ -7841,15 +10393,24 @@ function PostTemplateToggle({
const template = select(external_wp_coreData_namespaceObject.store).canUser('create', 'templates') && select(store_store).getCurrentTemplateId();
return template?.title || template?.slug || availableTemplates?.[templateSlug];
}, []);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
__next40pxDefaultSize: true,
- className: "edit-post-post-template__toggle",
variant: "tertiary",
"aria-expanded": isOpen,
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Template options'),
- onClick: onClick
- }, templateTitle !== null && templateTitle !== void 0 ? templateTitle : (0,external_wp_i18n_namespaceObject.__)('Default template'));
+ onClick: onClick,
+ children: templateTitle !== null && templateTitle !== void 0 ? templateTitle : (0,external_wp_i18n_namespaceObject.__)('Default template')
+ });
}
+
+/**
+ * Renders the dropdown content for selecting a post template.
+ *
+ * @param {Object} props The component props.
+ * @param {Function} props.onClose The function to close the dropdown.
+ *
+ * @return {JSX.Element} The rendered dropdown content.
+ */
function PostTemplateDropdownContent({
onClose
}) {
@@ -7905,87 +10466,822 @@ function PostTemplateDropdownContent({
createSuccessNotice
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
const [isCreateModalOpen, setIsCreateModalOpen] = (0,external_wp_element_namespaceObject.useState)(false);
- return (0,external_React_.createElement)("div", {
- className: "editor-post-template__classic-theme-dropdown"
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
- title: (0,external_wp_i18n_namespaceObject.__)('Template'),
- help: (0,external_wp_i18n_namespaceObject.__)('Templates define the way content is displayed when viewing your site.'),
- actions: canCreate ? [{
- icon: add_template,
- label: (0,external_wp_i18n_namespaceObject.__)('Add template'),
- onClick: () => setIsCreateModalOpen(true)
- }] : [],
- onClose: onClose
- }), !allowSwitchingTemplate ? (0,external_React_.createElement)(external_wp_components_namespaceObject.Notice, {
- status: "warning",
- isDismissible: false
- }, (0,external_wp_i18n_namespaceObject.__)('The posts page template cannot be changed.')) : (0,external_React_.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __next40pxDefaultSize: true,
- __nextHasNoMarginBottom: true,
- hideLabelFromVision: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Template'),
- value: (_selectedOption$value = selectedOption?.value) !== null && _selectedOption$value !== void 0 ? _selectedOption$value : '',
- options: options,
- onChange: slug => editPost({
- template: slug || ''
- })
- }), canEdit && onNavigateToEntityRecord && (0,external_React_.createElement)("p", null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "link",
- onClick: () => {
- onNavigateToEntityRecord({
- postId: currentTemplateId,
- postType: 'wp_template'
- });
- onClose();
- createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Editing template. Changes made here affect all posts and pages that use the template.'), {
- type: 'snackbar',
- actions: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Go back'),
- onClick: () => getEditorSettings().onNavigateToPreviousEntityRecord()
- }]
- });
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Edit template'))), isCreateModalOpen && (0,external_React_.createElement)(CreateNewTemplateModal, {
- onClose: () => setIsCreateModalOpen(false)
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-post-template__classic-theme-dropdown",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Template'),
+ help: (0,external_wp_i18n_namespaceObject.__)('Templates define the way content is displayed when viewing your site.'),
+ actions: canCreate ? [{
+ icon: add_template,
+ label: (0,external_wp_i18n_namespaceObject.__)('Add template'),
+ onClick: () => setIsCreateModalOpen(true)
+ }] : [],
+ onClose: onClose
+ }), !allowSwitchingTemplate ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
+ status: "warning",
+ isDismissible: false,
+ children: (0,external_wp_i18n_namespaceObject.__)('The posts page template cannot be changed.')
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ __next40pxDefaultSize: true,
+ __nextHasNoMarginBottom: true,
+ hideLabelFromVision: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Template'),
+ value: (_selectedOption$value = selectedOption?.value) !== null && _selectedOption$value !== void 0 ? _selectedOption$value : '',
+ options: options,
+ onChange: slug => editPost({
+ template: slug || ''
+ })
+ }), canEdit && onNavigateToEntityRecord && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "link",
+ onClick: () => {
+ onNavigateToEntityRecord({
+ postId: currentTemplateId,
+ postType: 'wp_template'
+ });
+ onClose();
+ createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Editing template. Changes made here affect all posts and pages that use the template.'), {
+ type: 'snackbar',
+ actions: [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Go back'),
+ onClick: () => getEditorSettings().onNavigateToPreviousEntityRecord()
+ }]
+ });
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Edit template')
+ })
+ }), isCreateModalOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CreateNewTemplateModal, {
+ onClose: () => setIsCreateModalOpen(false)
+ })]
+ });
}
function ClassicThemeControl() {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Dropdown, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
popoverProps: POPOVER_PROPS,
focusOnMount: true,
renderToggle: ({
isOpen,
onToggle
- }) => (0,external_React_.createElement)(PostTemplateToggle, {
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostTemplateToggle, {
isOpen: isOpen,
onClick: onToggle
}),
renderContent: ({
onClose
- }) => (0,external_React_.createElement)(PostTemplateDropdownContent, {
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostTemplateDropdownContent, {
onClose: onClose
})
});
}
+
+/**
+ * Provides a dropdown menu for selecting and managing post templates.
+ *
+ * The dropdown menu includes a button for toggling the menu, a list of available templates, and options for creating and editing templates.
+ *
+ * @return {JSX.Element} The rendered ClassicThemeControl component.
+ */
/* harmony default export */ const classic_theme = (ClassicThemeControl);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
+;// CONCATENATED MODULE: external ["wp","warning"]
+const external_wp_warning_namespaceObject = window["wp"]["warning"];
+var external_wp_warning_default = /*#__PURE__*/__webpack_require__.n(external_wp_warning_namespaceObject);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/preferences-modal/enable-panel.js
+/**
+ * WordPress dependencies
+ */
+
+
+
/**
+ * Internal dependencies
+ */
+
+
+const {
+ PreferenceBaseOption
+} = unlock(external_wp_preferences_namespaceObject.privateApis);
+/* harmony default export */ const enable_panel = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_data_namespaceObject.withSelect)((select, {
+ panelName
+}) => {
+ const {
+ isEditorPanelEnabled,
+ isEditorPanelRemoved
+ } = select(store_store);
+ return {
+ isRemoved: isEditorPanelRemoved(panelName),
+ isChecked: isEditorPanelEnabled(panelName)
+ };
+}), (0,external_wp_compose_namespaceObject.ifCondition)(({
+ isRemoved
+}) => !isRemoved), (0,external_wp_data_namespaceObject.withDispatch)((dispatch, {
+ panelName
+}) => ({
+ onChange: () => dispatch(store_store).toggleEditorPanelEnabled(panelName)
+})))(PreferenceBaseOption));
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/preferences-modal/enable-plugin-document-setting-panel.js
+/**
* WordPress dependencies
*/
-const check_check = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
-}));
-/* harmony default export */ const library_check = (check_check);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-template/swap-template-button.js
+/**
+ * Internal dependencies
+ */
+
+
+const {
+ Fill,
+ Slot
+} = (0,external_wp_components_namespaceObject.createSlotFill)('EnablePluginDocumentSettingPanelOption');
+const EnablePluginDocumentSettingPanelOption = ({
+ label,
+ panelName
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Fill, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(enable_panel, {
+ label: label,
+ panelName: panelName
+ })
+});
+EnablePluginDocumentSettingPanelOption.Slot = Slot;
+/* harmony default export */ const enable_plugin_document_setting_panel = (EnablePluginDocumentSettingPanelOption);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/plugin-document-setting-panel/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+const {
+ Fill: plugin_document_setting_panel_Fill,
+ Slot: plugin_document_setting_panel_Slot
+} = (0,external_wp_components_namespaceObject.createSlotFill)('PluginDocumentSettingPanel');
+
+/**
+ * Renders items below the Status & Availability panel in the Document Sidebar.
+ *
+ * @param {Object} props Component properties.
+ * @param {string} props.name Required. A machine-friendly name for the panel.
+ * @param {string} [props.className] An optional class name added to the row.
+ * @param {string} [props.title] The title of the panel
+ * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
+ * @param {Element} props.children Children to be rendered
+ *
+ * @example
+ * ```js
+ * // Using ES5 syntax
+ * var el = React.createElement;
+ * var __ = wp.i18n.__;
+ * var registerPlugin = wp.plugins.registerPlugin;
+ * var PluginDocumentSettingPanel = wp.editor.PluginDocumentSettingPanel;
+ *
+ * function MyDocumentSettingPlugin() {
+ * return el(
+ * PluginDocumentSettingPanel,
+ * {
+ * className: 'my-document-setting-plugin',
+ * title: 'My Panel',
+ * name: 'my-panel',
+ * },
+ * __( 'My Document Setting Panel' )
+ * );
+ * }
+ *
+ * registerPlugin( 'my-document-setting-plugin', {
+ * render: MyDocumentSettingPlugin
+ * } );
+ * ```
+ *
+ * @example
+ * ```jsx
+ * // Using ESNext syntax
+ * import { registerPlugin } from '@wordpress/plugins';
+ * import { PluginDocumentSettingPanel } from '@wordpress/editor';
+ *
+ * const MyDocumentSettingTest = () => (
+ * <PluginDocumentSettingPanel className="my-document-setting-plugin" title="My Panel" name="my-panel">
+ * <p>My Document Setting Panel</p>
+ * </PluginDocumentSettingPanel>
+ * );
+ *
+ * registerPlugin( 'document-setting-test', { render: MyDocumentSettingTest } );
+ * ```
+ *
+ * @return {Component} The component to be rendered.
+ */
+const PluginDocumentSettingPanel = ({
+ name,
+ className,
+ title,
+ icon,
+ children
+}) => {
+ const {
+ name: pluginName
+ } = (0,external_wp_plugins_namespaceObject.usePluginContext)();
+ const panelName = `${pluginName}/${name}`;
+ const {
+ opened,
+ isEnabled
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ isEditorPanelOpened,
+ isEditorPanelEnabled
+ } = select(store_store);
+ return {
+ opened: isEditorPanelOpened(panelName),
+ isEnabled: isEditorPanelEnabled(panelName)
+ };
+ }, [panelName]);
+ const {
+ toggleEditorPanelOpened
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ if (undefined === name) {
+ true ? external_wp_warning_default()('PluginDocumentSettingPanel requires a name property.') : 0;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(enable_plugin_document_setting_panel, {
+ label: title,
+ panelName: panelName
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(plugin_document_setting_panel_Fill, {
+ children: isEnabled && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ className: className,
+ title: title,
+ icon: icon,
+ opened: opened,
+ onToggle: () => toggleEditorPanelOpened(panelName),
+ children: children
+ })
+ })]
+ });
+};
+PluginDocumentSettingPanel.Slot = plugin_document_setting_panel_Slot;
+/* harmony default export */ const plugin_document_setting_panel = (PluginDocumentSettingPanel);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+const isEverySelectedBlockAllowed = (selected, allowed) => selected.filter(id => !allowed.includes(id)).length === 0;
+
+/**
+ * Plugins may want to add an item to the menu either for every block
+ * or only for the specific ones provided in the `allowedBlocks` component property.
+ *
+ * If there are multiple blocks selected the item will be rendered if every block
+ * is of one allowed type (not necessarily the same).
+ *
+ * @param {string[]} selectedBlocks Array containing the names of the blocks selected
+ * @param {string[]} allowedBlocks Array containing the names of the blocks allowed
+ * @return {boolean} Whether the item will be rendered or not.
+ */
+const shouldRenderItem = (selectedBlocks, allowedBlocks) => !Array.isArray(allowedBlocks) || isEverySelectedBlockAllowed(selectedBlocks, allowedBlocks);
+
+/**
+ * Renders a new item in the block settings menu.
+ *
+ * @param {Object} props Component props.
+ * @param {Array} [props.allowedBlocks] An array containing a list of block names for which the item should be shown. If not present, it'll be rendered for any block. If multiple blocks are selected, it'll be shown if and only if all of them are in the allowed list.
+ * @param {WPBlockTypeIconRender} [props.icon] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element.
+ * @param {string} props.label The menu item text.
+ * @param {Function} props.onClick Callback function to be executed when the user click the menu item.
+ * @param {boolean} [props.small] Whether to render the label or not.
+ * @param {string} [props.role] The ARIA role for the menu item.
+ *
+ * @example
+ * ```js
+ * // Using ES5 syntax
+ * var __ = wp.i18n.__;
+ * var PluginBlockSettingsMenuItem = wp.editor.PluginBlockSettingsMenuItem;
+ *
+ * function doOnClick(){
+ * // To be called when the user clicks the menu item.
+ * }
+ *
+ * function MyPluginBlockSettingsMenuItem() {
+ * return React.createElement(
+ * PluginBlockSettingsMenuItem,
+ * {
+ * allowedBlocks: [ 'core/paragraph' ],
+ * icon: 'dashicon-name',
+ * label: __( 'Menu item text' ),
+ * onClick: doOnClick,
+ * }
+ * );
+ * }
+ * ```
+ *
+ * @example
+ * ```jsx
+ * // Using ESNext syntax
+ * import { __ } from '@wordpress/i18n';
+ * import { PluginBlockSettingsMenuItem } from '@wordpress/editor';
+ *
+ * const doOnClick = ( ) => {
+ * // To be called when the user clicks the menu item.
+ * };
+ *
+ * const MyPluginBlockSettingsMenuItem = () => (
+ * <PluginBlockSettingsMenuItem
+ * allowedBlocks={ [ 'core/paragraph' ] }
+ * icon='dashicon-name'
+ * label={ __( 'Menu item text' ) }
+ * onClick={ doOnClick } />
+ * );
+ * ```
+ *
+ * @return {Component} The component to be rendered.
+ */
+const PluginBlockSettingsMenuItem = ({
+ allowedBlocks,
+ icon,
+ label,
+ onClick,
+ small,
+ role
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockSettingsMenuControls, {
+ children: ({
+ selectedBlocks,
+ onClose
+ }) => {
+ if (!shouldRenderItem(selectedBlocks, allowedBlocks)) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: (0,external_wp_compose_namespaceObject.compose)(onClick, onClose),
+ icon: icon,
+ label: small ? label : undefined,
+ role: role,
+ children: !small && label
+ });
+ }
+});
+/* harmony default export */ const plugin_block_settings_menu_item = (PluginBlockSettingsMenuItem);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/plugin-more-menu-item/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Renders a menu item in `Plugins` group in `More Menu` drop down, and can be used to as a button or link depending on the props provided.
+ * The text within the component appears as the menu item label.
+ *
+ * @param {Object} props Component properties.
+ * @param {string} [props.href] When `href` is provided then the menu item is represented as an anchor rather than button. It corresponds to the `href` attribute of the anchor.
+ * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered to the left of the menu item label.
+ * @param {Function} [props.onClick=noop] The callback function to be executed when the user clicks the menu item.
+ * @param {...*} [props.other] Any additional props are passed through to the underlying [Button](/packages/components/src/button/README.md) component.
+ *
+ * @example
+ * ```js
+ * // Using ES5 syntax
+ * var __ = wp.i18n.__;
+ * var PluginMoreMenuItem = wp.editor.PluginMoreMenuItem;
+ * var moreIcon = wp.element.createElement( 'svg' ); //... svg element.
+ *
+ * function onButtonClick() {
+ * alert( 'Button clicked.' );
+ * }
+ *
+ * function MyButtonMoreMenuItem() {
+ * return wp.element.createElement(
+ * PluginMoreMenuItem,
+ * {
+ * icon: moreIcon,
+ * onClick: onButtonClick,
+ * },
+ * __( 'My button title' )
+ * );
+ * }
+ * ```
+ *
+ * @example
+ * ```jsx
+ * // Using ESNext syntax
+ * import { __ } from '@wordpress/i18n';
+ * import { PluginMoreMenuItem } from '@wordpress/editor';
+ * import { more } from '@wordpress/icons';
+ *
+ * function onButtonClick() {
+ * alert( 'Button clicked.' );
+ * }
+ *
+ * const MyButtonMoreMenuItem = () => (
+ * <PluginMoreMenuItem
+ * icon={ more }
+ * onClick={ onButtonClick }
+ * >
+ * { __( 'My button title' ) }
+ * </PluginMoreMenuItem>
+ * );
+ * ```
+ *
+ * @return {Component} The component to be rendered.
+ */
+/* harmony default export */ const plugin_more_menu_item = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_plugins_namespaceObject.withPluginContext)((context, ownProps) => {
+ var _ownProps$as;
+ return {
+ as: (_ownProps$as = ownProps.as) !== null && _ownProps$as !== void 0 ? _ownProps$as : external_wp_components_namespaceObject.MenuItem,
+ icon: ownProps.icon || context.icon,
+ name: 'core/plugin-more-menu'
+ };
+}))(action_item));
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/plugin-post-publish-panel/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+const {
+ Fill: plugin_post_publish_panel_Fill,
+ Slot: plugin_post_publish_panel_Slot
+} = (0,external_wp_components_namespaceObject.createSlotFill)('PluginPostPublishPanel');
+
+/**
+ * Renders provided content to the post-publish panel in the publish flow
+ * (side panel that opens after a user publishes the post).
+ *
+ * @param {Object} props Component properties.
+ * @param {string} [props.className] An optional class name added to the panel.
+ * @param {string} [props.title] Title displayed at the top of the panel.
+ * @param {boolean} [props.initialOpen=false] Whether to have the panel initially opened. When no title is provided it is always opened.
+ * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
+ * @param {Element} props.children Children to be rendered
+ *
+ * @example
+ * ```jsx
+ * // Using ESNext syntax
+ * import { __ } from '@wordpress/i18n';
+ * import { PluginPostPublishPanel } from '@wordpress/editor';
+ *
+ * const MyPluginPostPublishPanel = () => (
+ * <PluginPostPublishPanel
+ * className="my-plugin-post-publish-panel"
+ * title={ __( 'My panel title' ) }
+ * initialOpen={ true }
+ * >
+ * { __( 'My panel content' ) }
+ * </PluginPostPublishPanel>
+ * );
+ * ```
+ *
+ * @return {Component} The component to be rendered.
+ */
+const PluginPostPublishPanel = ({
+ children,
+ className,
+ title,
+ initialOpen = false,
+ icon
+}) => {
+ const {
+ icon: pluginIcon
+ } = (0,external_wp_plugins_namespaceObject.usePluginContext)();
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(plugin_post_publish_panel_Fill, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ className: className,
+ initialOpen: initialOpen || !title,
+ title: title,
+ icon: icon !== null && icon !== void 0 ? icon : pluginIcon,
+ children: children
+ })
+ });
+};
+PluginPostPublishPanel.Slot = plugin_post_publish_panel_Slot;
+/* harmony default export */ const plugin_post_publish_panel = (PluginPostPublishPanel);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/plugin-post-status-info/index.js
+/**
+ * Defines as extensibility slot for the Summary panel.
+ */
+
+/**
+ * WordPress dependencies
+ */
+
+
+const {
+ Fill: plugin_post_status_info_Fill,
+ Slot: plugin_post_status_info_Slot
+} = (0,external_wp_components_namespaceObject.createSlotFill)('PluginPostStatusInfo');
+
+/**
+ * Renders a row in the Summary panel of the Document sidebar.
+ * It should be noted that this is named and implemented around the function it serves
+ * and not its location, which may change in future iterations.
+ *
+ * @param {Object} props Component properties.
+ * @param {string} [props.className] An optional class name added to the row.
+ * @param {Element} props.children Children to be rendered.
+ *
+ * @example
+ * ```js
+ * // Using ES5 syntax
+ * var __ = wp.i18n.__;
+ * var PluginPostStatusInfo = wp.editor.PluginPostStatusInfo;
+ *
+ * function MyPluginPostStatusInfo() {
+ * return React.createElement(
+ * PluginPostStatusInfo,
+ * {
+ * className: 'my-plugin-post-status-info',
+ * },
+ * __( 'My post status info' )
+ * )
+ * }
+ * ```
+ *
+ * @example
+ * ```jsx
+ * // Using ESNext syntax
+ * import { __ } from '@wordpress/i18n';
+ * import { PluginPostStatusInfo } from '@wordpress/editor';
+ *
+ * const MyPluginPostStatusInfo = () => (
+ * <PluginPostStatusInfo
+ * className="my-plugin-post-status-info"
+ * >
+ * { __( 'My post status info' ) }
+ * </PluginPostStatusInfo>
+ * );
+ * ```
+ *
+ * @return {Component} The component to be rendered.
+ */
+const PluginPostStatusInfo = ({
+ children,
+ className
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(plugin_post_status_info_Fill, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelRow, {
+ className: className,
+ children: children
+ })
+});
+PluginPostStatusInfo.Slot = plugin_post_status_info_Slot;
+/* harmony default export */ const plugin_post_status_info = (PluginPostStatusInfo);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/plugin-pre-publish-panel/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+const {
+ Fill: plugin_pre_publish_panel_Fill,
+ Slot: plugin_pre_publish_panel_Slot
+} = (0,external_wp_components_namespaceObject.createSlotFill)('PluginPrePublishPanel');
/**
+ * Renders provided content to the pre-publish side panel in the publish flow
+ * (side panel that opens when a user first pushes "Publish" from the main editor).
+ *
+ * @param {Object} props Component props.
+ * @param {string} [props.className] An optional class name added to the panel.
+ * @param {string} [props.title] Title displayed at the top of the panel.
+ * @param {boolean} [props.initialOpen=false] Whether to have the panel initially opened.
+ * When no title is provided it is always opened.
+ * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/)
+ * icon slug string, or an SVG WP element, to be rendered when
+ * the sidebar is pinned to toolbar.
+ * @param {Element} props.children Children to be rendered
+ *
+ * @example
+ * ```jsx
+ * // Using ESNext syntax
+ * import { __ } from '@wordpress/i18n';
+ * import { PluginPrePublishPanel } from '@wordpress/editor';
+ *
+ * const MyPluginPrePublishPanel = () => (
+ * <PluginPrePublishPanel
+ * className="my-plugin-pre-publish-panel"
+ * title={ __( 'My panel title' ) }
+ * initialOpen={ true }
+ * >
+ * { __( 'My panel content' ) }
+ * </PluginPrePublishPanel>
+ * );
+ * ```
+ *
+ * @return {Component} The component to be rendered.
+ */
+const PluginPrePublishPanel = ({
+ children,
+ className,
+ title,
+ initialOpen = false,
+ icon
+}) => {
+ const {
+ icon: pluginIcon
+ } = (0,external_wp_plugins_namespaceObject.usePluginContext)();
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(plugin_pre_publish_panel_Fill, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ className: className,
+ initialOpen: initialOpen || !title,
+ title: title,
+ icon: icon !== null && icon !== void 0 ? icon : pluginIcon,
+ children: children
+ })
+ });
+};
+PluginPrePublishPanel.Slot = plugin_pre_publish_panel_Slot;
+/* harmony default export */ const plugin_pre_publish_panel = (PluginPrePublishPanel);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/plugin-sidebar/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+/**
+ * Renders a sidebar when activated. The contents within the `PluginSidebar` will appear as content within the sidebar.
+ * It also automatically renders a corresponding `PluginSidebarMenuItem` component when `isPinnable` flag is set to `true`.
+ * If you wish to display the sidebar, you can with use the `PluginSidebarMoreMenuItem` component or the `wp.data.dispatch` API:
+ *
+ * ```js
+ * wp.data.dispatch( 'core/edit-post' ).openGeneralSidebar( 'plugin-name/sidebar-name' );
+ * ```
+ *
+ * @see PluginSidebarMoreMenuItem
+ *
+ * @param {Object} props Element props.
+ * @param {string} props.name A string identifying the sidebar. Must be unique for every sidebar registered within the scope of your plugin.
+ * @param {string} [props.className] An optional class name added to the sidebar body.
+ * @param {string} props.title Title displayed at the top of the sidebar.
+ * @param {boolean} [props.isPinnable=true] Whether to allow to pin sidebar to the toolbar. When set to `true` it also automatically renders a corresponding menu item.
+ * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
+ *
+ * @example
+ * ```js
+ * // Using ES5 syntax
+ * var __ = wp.i18n.__;
+ * var el = React.createElement;
+ * var PanelBody = wp.components.PanelBody;
+ * var PluginSidebar = wp.editor.PluginSidebar;
+ * var moreIcon = React.createElement( 'svg' ); //... svg element.
+ *
+ * function MyPluginSidebar() {
+ * return el(
+ * PluginSidebar,
+ * {
+ * name: 'my-sidebar',
+ * title: 'My sidebar title',
+ * icon: moreIcon,
+ * },
+ * el(
+ * PanelBody,
+ * {},
+ * __( 'My sidebar content' )
+ * )
+ * );
+ * }
+ * ```
+ *
+ * @example
+ * ```jsx
+ * // Using ESNext syntax
+ * import { __ } from '@wordpress/i18n';
+ * import { PanelBody } from '@wordpress/components';
+ * import { PluginSidebar } from '@wordpress/editor';
+ * import { more } from '@wordpress/icons';
+ *
+ * const MyPluginSidebar = () => (
+ * <PluginSidebar
+ * name="my-sidebar"
+ * title="My sidebar title"
+ * icon={ more }
+ * >
+ * <PanelBody>
+ * { __( 'My sidebar content' ) }
+ * </PanelBody>
+ * </PluginSidebar>
+ * );
+ * ```
+ */
+
+function PluginSidebar({
+ className,
+ ...props
+}) {
+ const {
+ postTitle,
+ shortcut
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ return {
+ postTitle: select(store_store).getEditedPostAttribute('title'),
+ shortcut: select(external_wp_keyboardShortcuts_namespaceObject.store).getShortcutRepresentation('core/editor/toggle-sidebar')
+ };
+ }, []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(complementary_area, {
+ panelClassName: className,
+ className: "editor-sidebar",
+ smallScreenTitle: postTitle || (0,external_wp_i18n_namespaceObject.__)('(no title)'),
+ scope: "core",
+ toggleShortcut: shortcut,
+ ...props
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/plugin-sidebar-more-menu-item/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Renders a menu item in `Plugins` group in `More Menu` drop down,
+ * and can be used to activate the corresponding `PluginSidebar` component.
+ * The text within the component appears as the menu item label.
+ *
+ * @param {Object} props Component props.
+ * @param {string} props.target A string identifying the target sidebar you wish to be activated by this menu item. Must be the same as the `name` prop you have given to that sidebar.
+ * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered to the left of the menu item label.
+ *
+ * @example
+ * ```js
+ * // Using ES5 syntax
+ * var __ = wp.i18n.__;
+ * var PluginSidebarMoreMenuItem = wp.editor.PluginSidebarMoreMenuItem;
+ * var moreIcon = React.createElement( 'svg' ); //... svg element.
+ *
+ * function MySidebarMoreMenuItem() {
+ * return React.createElement(
+ * PluginSidebarMoreMenuItem,
+ * {
+ * target: 'my-sidebar',
+ * icon: moreIcon,
+ * },
+ * __( 'My sidebar title' )
+ * )
+ * }
+ * ```
+ *
+ * @example
+ * ```jsx
+ * // Using ESNext syntax
+ * import { __ } from '@wordpress/i18n';
+ * import { PluginSidebarMoreMenuItem } from '@wordpress/editor';
+ * import { more } from '@wordpress/icons';
+ *
+ * const MySidebarMoreMenuItem = () => (
+ * <PluginSidebarMoreMenuItem
+ * target="my-sidebar"
+ * icon={ more }
+ * >
+ * { __( 'My sidebar title' ) }
+ * </PluginSidebarMoreMenuItem>
+ * );
+ * ```
+ *
+ * @return {Component} The component to be rendered.
+ */
+
+function PluginSidebarMoreMenuItem(props) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ComplementaryAreaMoreMenuItem
+ // Menu item is marked with unstable prop for backward compatibility.
+ // @see https://github.com/WordPress/gutenberg/issues/14457
+ , {
+ __unstableExplicitMenuItem: true,
+ scope: "core",
+ ...props
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-template/swap-template-button.js
+/**
* WordPress dependencies
*/
@@ -8002,13 +11298,13 @@ const check_check = (0,external_React_.createElement)(external_wp_primitives_nam
* Internal dependencies
*/
+
+
+
function SwapTemplateButton({
onClick
}) {
const [showModal, setShowModal] = (0,external_wp_element_namespaceObject.useState)(false);
- const onClose = (0,external_wp_element_namespaceObject.useCallback)(() => {
- setShowModal(false);
- }, []);
const {
postType,
postId
@@ -8026,22 +11322,27 @@ function SwapTemplateButton({
}, {
undoIgnore: true
});
- onClose(); // Close the template suggestions modal first.
+ setShowModal(false); // Close the template suggestions modal first.
onClick();
};
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => setShowModal(true)
- }, (0,external_wp_i18n_namespaceObject.__)('Swap template')), showModal && (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
- title: (0,external_wp_i18n_namespaceObject.__)('Choose a template'),
- onRequestClose: onClose,
- overlayClassName: "editor-post-template__swap-template-modal",
- isFullScreen: true
- }, (0,external_React_.createElement)("div", {
- className: "editor-post-template__swap-template-modal-content"
- }, (0,external_React_.createElement)(TemplatesList, {
- postType: postType,
- onSelect: onTemplateSelect
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => setShowModal(true),
+ children: (0,external_wp_i18n_namespaceObject.__)('Swap template')
+ }), showModal && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Choose a template'),
+ onRequestClose: () => setShowModal(false),
+ overlayClassName: "editor-post-template__swap-template-modal",
+ isFullScreen: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-post-template__swap-template-modal-content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplatesList, {
+ postType: postType,
+ onSelect: onTemplateSelect
+ })
+ })
+ })]
+ });
}
function TemplatesList({
postType,
@@ -8055,7 +11356,7 @@ function TemplatesList({
id: template.id
})), [availableTemplates]);
const shownTemplates = (0,external_wp_compose_namespaceObject.useAsyncList)(templatesAsPatterns);
- return (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.__experimentalBlockPatternsList, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalBlockPatternsList, {
label: (0,external_wp_i18n_namespaceObject.__)('Templates'),
blockPatterns: templatesAsPatterns,
shownPatterns: shownTemplates,
@@ -8064,7 +11365,6 @@ function TemplatesList({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-template/reset-default-template.js
-
/**
* WordPress dependencies
*/
@@ -8077,6 +11377,7 @@ function TemplatesList({
* Internal dependencies
*/
+
function ResetDefaultTemplate({
onClick
}) {
@@ -8093,7 +11394,7 @@ function ResetDefaultTemplate({
if (!currentTemplateSlug || !allowSwitchingTemplate) {
return null;
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
onClick: () => {
editEntityRecord('postType', postType, postId, {
template: ''
@@ -8101,12 +11402,12 @@ function ResetDefaultTemplate({
undoIgnore: true
});
onClick();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Use default template'));
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Use default template')
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-template/create-new-template.js
-
/**
* WordPress dependencies
*/
@@ -8121,6 +11422,9 @@ function ResetDefaultTemplate({
*/
+
+
+
function CreateNewTemplate({
onClick
}) {
@@ -8141,20 +11445,22 @@ function CreateNewTemplate({
if (!canCreateTemplates || !allowSwitchingTemplate) {
return null;
}
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- setIsCreateModalOpen(true);
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Create new template')), isCreateModalOpen && (0,external_React_.createElement)(CreateNewTemplateModal, {
- onClose: () => {
- setIsCreateModalOpen(false);
- onClick();
- }
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ setIsCreateModalOpen(true);
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Create new template')
+ }), isCreateModalOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CreateNewTemplateModal, {
+ onClose: () => {
+ setIsCreateModalOpen(false);
+ onClick();
+ }
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-template/block-theme.js
-
/**
* WordPress dependencies
*/
@@ -8174,6 +11480,9 @@ function CreateNewTemplate({
+
+
+
const block_theme_POPOVER_PROPS = {
className: 'editor-post-template__dropdown',
placement: 'bottom-start'
@@ -8209,6 +11518,10 @@ function BlockThemeControl({
const {
setRenderingMode
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ const canCreateTemplate = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ var _select$canUser;
+ return (_select$canUser = select(external_wp_coreData_namespaceObject.store).canUser('create', 'templates')) !== null && _select$canUser !== void 0 ? _select$canUser : false;
+ });
if (!hasResolved) {
return null;
}
@@ -8219,90 +11532,78 @@ function BlockThemeControl({
label: (0,external_wp_i18n_namespaceObject.__)('Go back'),
onClick: () => getEditorSettings().onNavigateToPreviousEntityRecord()
}] : undefined;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
popoverProps: block_theme_POPOVER_PROPS,
focusOnMount: true,
toggleProps: {
- __next40pxDefaultSize: true,
- variant: 'tertiary'
+ size: 'compact',
+ variant: 'tertiary',
+ tooltipPosition: 'middle left'
},
label: (0,external_wp_i18n_namespaceObject.__)('Template options'),
text: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(template.title),
- icon: null
- }, ({
- onClose
- }) => (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => {
- onNavigateToEntityRecord({
- postId: template.id,
- postType: 'wp_template'
- });
- onClose();
- createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Editing template. Changes made here affect all posts and pages that use the template.'), {
- type: 'snackbar',
- actions: notificationAction
- });
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Edit template')), (0,external_React_.createElement)(SwapTemplateButton, {
- onClick: onClose
- }), (0,external_React_.createElement)(ResetDefaultTemplate, {
- onClick: onClose
- }), (0,external_React_.createElement)(CreateNewTemplate, {
- onClick: onClose
- })), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- icon: !isTemplateHidden ? library_check : undefined,
- isSelected: !isTemplateHidden,
- role: "menuitemcheckbox",
- onClick: () => {
- setRenderingMode(isTemplateHidden ? 'template-locked' : 'post-only');
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Template preview')))));
+ icon: null,
+ children: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ children: [canCreateTemplate && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ onNavigateToEntityRecord({
+ postId: template.id,
+ postType: 'wp_template'
+ });
+ onClose();
+ createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Editing template. Changes made here affect all posts and pages that use the template.'), {
+ type: 'snackbar',
+ actions: notificationAction
+ });
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Edit template')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SwapTemplateButton, {
+ onClick: onClose
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResetDefaultTemplate, {
+ onClick: onClose
+ }), canCreateTemplate && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CreateNewTemplate, {
+ onClick: onClose
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: !isTemplateHidden ? library_check : undefined,
+ isSelected: !isTemplateHidden,
+ role: "menuitemcheckbox",
+ onClick: () => {
+ setRenderingMode(isTemplateHidden ? 'template-locked' : 'post-only');
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Show template')
+ })
+ })]
+ })
+ });
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-panel-row/index.js
-
-/**
- * External dependencies
- */
-
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-template/panel.js
/**
* WordPress dependencies
*/
-const PostPanelRow = (0,external_wp_element_namespaceObject.forwardRef)(({
- className,
- label,
- children
-}, ref) => {
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- className: classnames_default()('editor-post-panel__row', className),
- ref: ref
- }, label && (0,external_React_.createElement)("div", {
- className: "editor-post-panel__row-label"
- }, label), (0,external_React_.createElement)("div", {
- className: "editor-post-panel__row-control"
- }, children));
-});
-/* harmony default export */ const post_panel_row = (PostPanelRow);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-template/panel.js
/**
- * WordPress dependencies
+ * Internal dependencies
*/
+
/**
- * Internal dependencies
+ * Displays the template controls based on the current editor settings and user permissions.
+ *
+ * @return {JSX.Element|null} The rendered PostTemplatePanel component.
*/
-
-
-
function PostTemplatePanel() {
const {
templateId,
@@ -8340,16 +11641,18 @@ function PostTemplatePanel() {
return (_select$canUser2 = select(external_wp_coreData_namespaceObject.store).canUser('read', 'templates')) !== null && _select$canUser2 !== void 0 ? _select$canUser2 : false;
}, []);
if ((!isBlockTheme || !canViewTemplates) && isVisible) {
- return (0,external_React_.createElement)(post_panel_row, {
- label: (0,external_wp_i18n_namespaceObject.__)('Template')
- }, (0,external_React_.createElement)(classic_theme, null));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Template'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(classic_theme, {})
+ });
}
if (isBlockTheme && !!templateId) {
- return (0,external_React_.createElement)(post_panel_row, {
- label: (0,external_wp_i18n_namespaceObject.__)('Template')
- }, (0,external_React_.createElement)(BlockThemeControl, {
- id: templateId
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Template'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockThemeControl, {
+ id: templateId
+ })
+ });
}
return null;
}
@@ -8427,12 +11730,12 @@ function useAuthorsQuery(search) {
}, [authors, postAuthor]);
return {
authorId,
- authorOptions
+ authorOptions,
+ postAuthor
};
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-author/combobox.js
-
/**
* WordPress dependencies
*/
@@ -8447,6 +11750,7 @@ function useAuthorsQuery(search) {
*/
+
function PostAuthorCombobox() {
const [fieldValue, setFieldValue] = (0,external_wp_element_namespaceObject.useState)();
const {
@@ -8479,7 +11783,7 @@ function PostAuthorCombobox() {
const handleKeydown = inputValue => {
setFieldValue(inputValue);
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.ComboboxControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ComboboxControl, {
__nextHasNoMarginBottom: true,
__next40pxDefaultSize: true,
label: (0,external_wp_i18n_namespaceObject.__)('Author'),
@@ -8487,12 +11791,12 @@ function PostAuthorCombobox() {
value: authorId,
onFilterValueChange: (0,external_wp_compose_namespaceObject.debounce)(handleKeydown, 300),
onChange: handleSelect,
- allowReset: false
+ allowReset: false,
+ hideLabelFromVision: true
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-author/select.js
-
/**
* WordPress dependencies
*/
@@ -8505,6 +11809,7 @@ function PostAuthorCombobox() {
*/
+
function PostAuthorSelect() {
const {
editPost
@@ -8519,19 +11824,19 @@ function PostAuthorSelect() {
author
});
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.SelectControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
__next40pxDefaultSize: true,
__nextHasNoMarginBottom: true,
className: "post-author-selector",
label: (0,external_wp_i18n_namespaceObject.__)('Author'),
options: authorOptions,
onChange: setAuthorId,
- value: authorId
+ value: authorId,
+ hideLabelFromVision: true
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-author/index.js
-
/**
* WordPress dependencies
*/
@@ -8544,21 +11849,27 @@ function PostAuthorSelect() {
+
const minimumUsersForCombobox = 25;
+
+/**
+ * Renders the component for selecting the post author.
+ *
+ * @return {Component} The component to be rendered.
+ */
function PostAuthor() {
const showCombobox = (0,external_wp_data_namespaceObject.useSelect)(select => {
const authors = select(external_wp_coreData_namespaceObject.store).getUsers(AUTHORS_QUERY);
return authors?.length >= minimumUsersForCombobox;
}, []);
if (showCombobox) {
- return (0,external_React_.createElement)(PostAuthorCombobox, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostAuthorCombobox, {});
}
- return (0,external_React_.createElement)(PostAuthorSelect, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostAuthorSelect, {});
}
/* harmony default export */ const post_author = (PostAuthor);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-author/check.js
-
/**
* WordPress dependencies
*/
@@ -8571,6 +11882,17 @@ function PostAuthor() {
+
+/**
+ * Wrapper component that renders its children only if the post type supports the author.
+ *
+ * @param {Object} props The component props.
+ * @param {Element} props.children Children to be rendered.
+ *
+ * @return {Component|null} The component to be rendered. Return `null` if the post type doesn't
+ * supports the author or if there are no authors available.
+ */
+
function PostAuthorCheck({
children
}) {
@@ -8589,12 +11911,20 @@ function PostAuthorCheck({
if (!hasAssignAuthorAction || !hasAuthors) {
return null;
}
- return (0,external_React_.createElement)(post_type_support_check, {
- supportKeys: "author"
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_type_support_check, {
+ supportKeys: "author",
+ children: children
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-author/panel.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
/**
* Internal dependencies
@@ -8602,15 +11932,81 @@ function PostAuthorCheck({
+
+
+
+function PostAuthorToggle({
+ isOpen,
+ onClick
+}) {
+ const {
+ postAuthor
+ } = useAuthorsQuery();
+ const authorName = postAuthor?.name || '';
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "compact",
+ className: "editor-post-author__panel-toggle",
+ variant: "tertiary",
+ "aria-expanded": isOpen
+ // translators: %s: Current post link.
+ ,
+ "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Change author: %s'), authorName),
+ onClick: onClick,
+ children: authorName
+ });
+}
+
+/**
+ * Renders the Post Author Panel component.
+ *
+ * @return {Component} The component to be rendered.
+ */
function panel_PostAuthor() {
- return (0,external_React_.createElement)(PostAuthorCheck, null, (0,external_React_.createElement)(post_panel_row, {
- className: "editor-post-author__panel"
- }, (0,external_React_.createElement)(post_author, null)));
+ // Use internal state instead of a ref to make sure that the component
+ // re-renders when the popover's anchor updates.
+ const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
+ // Memoize popoverProps to avoid returning a new object every time.
+ const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ // Anchor the popover to the middle of the entire row so that it doesn't
+ // move around when the label changes.
+ anchor: popoverAnchor,
+ placement: 'left-start',
+ offset: 36,
+ shift: true
+ }), [popoverAnchor]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostAuthorCheck, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Author'),
+ ref: setPopoverAnchor,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ popoverProps: popoverProps,
+ contentClassName: "editor-post-author__panel-dialog",
+ focusOnMount: true,
+ renderToggle: ({
+ isOpen,
+ onToggle
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostAuthorToggle, {
+ isOpen: isOpen,
+ onClick: onToggle
+ }),
+ renderContent: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-post-author",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Author'),
+ onClose: onClose
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_author, {
+ onClose: onClose
+ })]
+ })
+ })
+ })
+ });
}
-/* harmony default export */ const post_author_panel = (panel_PostAuthor);
+/* harmony default export */ const panel = (panel_PostAuthor);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-comments/index.js
-
/**
* WordPress dependencies
*/
@@ -8622,6 +12018,32 @@ function panel_PostAuthor() {
* Internal dependencies
*/
+
+
+
+const COMMENT_OPTIONS = [{
+ label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [(0,external_wp_i18n_namespaceObject.__)('Open'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ size: 12,
+ children: (0,external_wp_i18n_namespaceObject.__)('Visitors can add new comments and replies.')
+ })]
+ }),
+ value: 'open'
+}, {
+ label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [(0,external_wp_i18n_namespaceObject.__)('Closed'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ size: 12,
+ children: (0,external_wp_i18n_namespaceObject.__)('Visitors cannot add new comments or replies.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ size: 12,
+ children: (0,external_wp_i18n_namespaceObject.__)('Existing comments remain visible.')
+ })]
+ }),
+ value: 'closed'
+}];
function PostComments() {
const commentStatus = (0,external_wp_data_namespaceObject.useSelect)(select => {
var _select$getEditedPost;
@@ -8630,20 +12052,32 @@ function PostComments() {
const {
editPost
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const onToggleComments = () => editPost({
- comment_status: commentStatus === 'open' ? 'closed' : 'open'
+ const handleStatus = newCommentStatus => editPost({
+ comment_status: newCommentStatus
});
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Allow comments'),
- checked: commentStatus === 'open',
- onChange: onToggleComments
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 4,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RadioControl, {
+ className: "editor-change-status__options",
+ hideLabelFromVision: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Comment status'),
+ options: COMMENT_OPTIONS,
+ onChange: handleStatus,
+ selected: commentStatus
+ })
+ })
});
}
+
+/**
+ * A form for managing comment status.
+ *
+ * @return {JSX.Element} The rendered PostComments component.
+ */
/* harmony default export */ const post_comments = (PostComments);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-pingbacks/index.js
-
/**
* WordPress dependencies
*/
@@ -8655,6 +12089,7 @@ function PostComments() {
* Internal dependencies
*/
+
function PostPingbacks() {
const pingStatus = (0,external_wp_data_namespaceObject.useSelect)(select => {
var _select$getEditedPost;
@@ -8666,17 +12101,27 @@ function PostPingbacks() {
const onTogglePingback = () => editPost({
ping_status: pingStatus === 'open' ? 'closed' : 'open'
});
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
__nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Allow pingbacks & trackbacks'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Enable pingbacks & trackbacks'),
checked: pingStatus === 'open',
- onChange: onTogglePingback
+ onChange: onTogglePingback,
+ help: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/trackbacks-and-pingbacks/'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Learn more about pingbacks & trackbacks')
+ })
});
}
+
+/**
+ * Renders a control for enabling or disabling pingbacks and trackbacks
+ * in a WordPress post.
+ *
+ * @module PostPingbacks
+ */
/* harmony default export */ const post_pingbacks = (PostPingbacks);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-discussion/panel.js
-
/**
* WordPress dependencies
*/
@@ -8684,6 +12129,9 @@ function PostPingbacks() {
+
+
+
/**
* Internal dependencies
*/
@@ -8691,43 +12139,141 @@ function PostPingbacks() {
+
+
+
const panel_PANEL_NAME = 'discussion-panel';
-function PostDiscussionPanel() {
+function ModalContents({
+ onClose
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-post-discussion",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Discussion'),
+ onClose: onClose
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 4,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_type_support_check, {
+ supportKeys: "comments",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_comments, {})
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_type_support_check, {
+ supportKeys: "trackbacks",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_pingbacks, {})
+ })]
+ })]
+ });
+}
+function PostDiscussionToggle({
+ isOpen,
+ onClick
+}) {
const {
- isEnabled,
- isOpened
+ commentStatus,
+ pingStatus,
+ commentsSupported,
+ trackbacksSupported
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ var _getEditedPostAttribu, _getEditedPostAttribu2;
const {
- isEditorPanelEnabled,
- isEditorPanelOpened
+ getEditedPostAttribute
} = select(store_store);
+ const {
+ getPostType
+ } = select(external_wp_coreData_namespaceObject.store);
+ const postType = getPostType(getEditedPostAttribute('type'));
return {
- isEnabled: isEditorPanelEnabled(panel_PANEL_NAME),
- isOpened: isEditorPanelOpened(panel_PANEL_NAME)
+ commentStatus: (_getEditedPostAttribu = getEditedPostAttribute('comment_status')) !== null && _getEditedPostAttribu !== void 0 ? _getEditedPostAttribu : 'open',
+ pingStatus: (_getEditedPostAttribu2 = getEditedPostAttribute('ping_status')) !== null && _getEditedPostAttribu2 !== void 0 ? _getEditedPostAttribu2 : 'open',
+ commentsSupported: !!postType.supports.comments,
+ trackbacksSupported: !!postType.supports.trackbacks
};
}, []);
+ let label;
+ if (commentStatus === 'open') {
+ if (pingStatus === 'open') {
+ label = (0,external_wp_i18n_namespaceObject.__)('Open');
+ } else {
+ label = trackbacksSupported ? (0,external_wp_i18n_namespaceObject.__)('Comments only') : (0,external_wp_i18n_namespaceObject.__)('Open');
+ }
+ } else if (pingStatus === 'open') {
+ label = commentsSupported ? (0,external_wp_i18n_namespaceObject.__)('Pings only') : (0,external_wp_i18n_namespaceObject.__)('Pings enabled');
+ } else {
+ label = (0,external_wp_i18n_namespaceObject.__)('Closed');
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "compact",
+ className: "editor-post-discussion__panel-toggle",
+ variant: "tertiary",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Change discussion options'),
+ "aria-expanded": isOpen,
+ onClick: onClick,
+ children: label
+ });
+}
+
+/**
+ * This component allows to update comment and pingback
+ * settings for the current post. Internally there are
+ * checks whether the current post has support for the
+ * above and if the `discussion-panel` panel is enabled.
+ *
+ * @return {JSX.Element|null} The rendered PostDiscussionPanel component.
+ */
+function PostDiscussionPanel() {
const {
- toggleEditorPanelOpened
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ isEnabled
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ isEditorPanelEnabled
+ } = select(store_store);
+ return {
+ isEnabled: isEditorPanelEnabled(panel_PANEL_NAME)
+ };
+ }, []);
+
+ // Use internal state instead of a ref to make sure that the component
+ // re-renders when the popover's anchor updates.
+ const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
+ // Memoize popoverProps to avoid returning a new object every time.
+ const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ // Anchor the popover to the middle of the entire row so that it doesn't
+ // move around when the label changes.
+ anchor: popoverAnchor,
+ placement: 'left-start',
+ offset: 36,
+ shift: true
+ }), [popoverAnchor]);
if (!isEnabled) {
return null;
}
- return (0,external_React_.createElement)(post_type_support_check, {
- supportKeys: ['comments', 'trackbacks']
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Discussion'),
- opened: isOpened,
- onToggle: () => toggleEditorPanelOpened(panel_PANEL_NAME)
- }, (0,external_React_.createElement)(post_type_support_check, {
- supportKeys: "comments"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelRow, null, (0,external_React_.createElement)(post_comments, null))), (0,external_React_.createElement)(post_type_support_check, {
- supportKeys: "trackbacks"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelRow, null, (0,external_React_.createElement)(post_pingbacks, null)))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_type_support_check, {
+ supportKeys: ['comments', 'trackbacks'],
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Discussion'),
+ ref: setPopoverAnchor,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ popoverProps: popoverProps,
+ className: "editor-post-discussion__panel-dropdown",
+ contentClassName: "editor-post-discussion__panel-dialog",
+ focusOnMount: true,
+ renderToggle: ({
+ isOpen,
+ onToggle
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostDiscussionToggle, {
+ isOpen: isOpen,
+ onClick: onToggle
+ }),
+ renderContent: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ModalContents, {
+ onClose: onClose
+ })
+ })
+ })
+ });
}
-/* harmony default export */ const post_discussion_panel = (PostDiscussionPanel);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-excerpt/index.js
-
/**
* WordPress dependencies
*/
@@ -8735,67 +12281,102 @@ function PostDiscussionPanel() {
+
+
/**
* Internal dependencies
*/
-function PostExcerpt() {
- const excerpt = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getEditedPostAttribute('excerpt'), []);
+
+/**
+ * Renders an editable textarea for the post excerpt.
+ * Templates, template parts and patterns use the `excerpt` field as a description semantically.
+ * Additionally templates and template parts override the `excerpt` field as `description` in
+ * REST API. So this component handles proper labeling and updating the edited entity.
+ *
+ * @param {Object} props - Component props.
+ * @param {boolean} [props.hideLabelFromVision=false] - Whether to visually hide the textarea's label.
+ * @param {boolean} [props.updateOnBlur=false] - Whether to update the post on change or use local state and update on blur.
+ */
+
+function PostExcerpt({
+ hideLabelFromVision = false,
+ updateOnBlur = false
+}) {
+ const {
+ excerpt,
+ shouldUseDescriptionLabel,
+ usedAttribute
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getCurrentPostType,
+ getEditedPostAttribute
+ } = select(store_store);
+ const postType = getCurrentPostType();
+ // This special case is unfortunate, but the REST API of wp_template and wp_template_part
+ // support the excerpt field throught the "description" field rather than "excerpt".
+ const _usedAttribute = ['wp_template', 'wp_template_part'].includes(postType) ? 'description' : 'excerpt';
+ return {
+ excerpt: getEditedPostAttribute(_usedAttribute),
+ // There are special cases where we want to label the excerpt as a description.
+ shouldUseDescriptionLabel: ['wp_template', 'wp_template_part', 'wp_block'].includes(postType),
+ usedAttribute: _usedAttribute
+ };
+ }, []);
const {
editPost
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- return (0,external_React_.createElement)("div", {
- className: "editor-post-excerpt"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextareaControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Write an excerpt (optional)'),
- className: "editor-post-excerpt__textarea",
- onChange: value => editPost({
- excerpt: value
- }),
- value: excerpt
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/page-post-settings-sidebar/#excerpt')
- }, (0,external_wp_i18n_namespaceObject.__)('Learn more about manual excerpts')));
+ const [localExcerpt, setLocalExcerpt] = (0,external_wp_element_namespaceObject.useState)((0,external_wp_htmlEntities_namespaceObject.decodeEntities)(excerpt));
+ const updatePost = value => {
+ editPost({
+ [usedAttribute]: value
+ });
+ };
+ const label = shouldUseDescriptionLabel ? (0,external_wp_i18n_namespaceObject.__)('Write a description (optional)') : (0,external_wp_i18n_namespaceObject.__)('Write an excerpt (optional)');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-post-excerpt",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextareaControl, {
+ __nextHasNoMarginBottom: true,
+ label: label,
+ hideLabelFromVision: hideLabelFromVision,
+ className: "editor-post-excerpt__textarea",
+ onChange: updateOnBlur ? setLocalExcerpt : updatePost,
+ onBlur: updateOnBlur ? () => updatePost(localExcerpt) : undefined,
+ value: updateOnBlur ? localExcerpt : excerpt,
+ help: !shouldUseDescriptionLabel ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/page-post-settings-sidebar/#excerpt'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Learn more about manual excerpts')
+ }) : (0,external_wp_i18n_namespaceObject.__)('Write a description')
+ })
+ });
}
-/* harmony default export */ const post_excerpt = (PostExcerpt);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-excerpt/check.js
-
/**
- * WordPress dependencies
+ * Internal dependencies
*/
/**
- * Internal dependencies
+ * Component for checking if the post type supports the excerpt field.
+ *
+ * @param {Object} props Props.
+ * @param {Element} props.children Children to be rendered.
+ *
+ * @return {Component} The component to be rendered.
*/
-
function PostExcerptCheck({
children
}) {
- const postType = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getEditedPostAttribute
- } = select(store_store);
- return getEditedPostAttribute('type');
- }, []);
-
- // This special case is unfortunate, but the REST API of wp_template and wp_template_part
- // support the excerpt field throught the "description" field rather than "excerpt" which means
- // the default ExcerptPanel won't work for these.
- if (['wp_template', 'wp_template_part'].includes(postType)) {
- return null;
- }
- return (0,external_React_.createElement)(post_type_support_check, {
- supportKeys: "excerpt"
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_type_support_check, {
+ supportKeys: "excerpt",
+ children: children
+ });
}
/* harmony default export */ const post_excerpt_check = (PostExcerptCheck);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-excerpt/plugin.js
-
/**
* Defines as extensibility slot for the Excerpt panel.
*/
@@ -8804,9 +12385,10 @@ function PostExcerptCheck({
* WordPress dependencies
*/
+
const {
- Fill,
- Slot
+ Fill: plugin_Fill,
+ Slot: plugin_Slot
} = (0,external_wp_components_namespaceObject.createSlotFill)('PluginPostExcerpt');
/**
@@ -8820,7 +12402,7 @@ const {
* ```js
* // Using ES5 syntax
* var __ = wp.i18n.__;
- * var PluginPostExcerpt = wp.editPost.PluginPostExcerpt;
+ * var PluginPostExcerpt = wp.editPost.__experimentalPluginPostExcerpt;
*
* function MyPluginPostExcerpt() {
* return React.createElement(
@@ -8837,7 +12419,7 @@ const {
* ```jsx
* // Using ESNext syntax
* import { __ } from '@wordpress/i18n';
- * import { PluginPostExcerpt } from '@wordpress/edit-post';
+ * import { __experimentalPluginPostExcerpt as PluginPostExcerpt } from '@wordpress/edit-post';
*
* const MyPluginPostExcerpt = () => (
* <PluginPostExcerpt className="my-plugin-post-excerpt">
@@ -8852,15 +12434,17 @@ const PluginPostExcerpt = ({
children,
className
}) => {
- return (0,external_React_.createElement)(Fill, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelRow, {
- className: className
- }, children));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(plugin_Fill, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelRow, {
+ className: className,
+ children: children
+ })
+ });
};
-PluginPostExcerpt.Slot = Slot;
+PluginPostExcerpt.Slot = plugin_Slot;
/* harmony default export */ const post_excerpt_plugin = (PluginPostExcerpt);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-excerpt/panel.js
-
/**
* WordPress dependencies
*/
@@ -8868,6 +12452,10 @@ PluginPostExcerpt.Slot = Slot;
+
+
+
+
/**
* Internal dependencies
*/
@@ -8876,22 +12464,29 @@ PluginPostExcerpt.Slot = Slot;
+
/**
* Module Constants
*/
+
+
+
const post_excerpt_panel_PANEL_NAME = 'post-excerpt';
-function PostExcerptPanel() {
+function ExcerptPanel() {
const {
isOpened,
- isEnabled
+ isEnabled,
+ postType
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
isEditorPanelOpened,
- isEditorPanelEnabled
+ isEditorPanelEnabled,
+ getCurrentPostType
} = select(store_store);
return {
isOpened: isEditorPanelOpened(post_excerpt_panel_PANEL_NAME),
- isEnabled: isEditorPanelEnabled(post_excerpt_panel_PANEL_NAME)
+ isEnabled: isEditorPanelEnabled(post_excerpt_panel_PANEL_NAME),
+ postType: getCurrentPostType()
};
}, []);
const {
@@ -8901,11 +12496,132 @@ function PostExcerptPanel() {
if (!isEnabled) {
return null;
}
- return (0,external_React_.createElement)(post_excerpt_check, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (0,external_wp_i18n_namespaceObject.__)('Excerpt'),
+
+ // There are special cases where we want to label the excerpt as a description.
+ const shouldUseDescriptionLabel = ['wp_template', 'wp_template_part', 'wp_block'].includes(postType);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: shouldUseDescriptionLabel ? (0,external_wp_i18n_namespaceObject.__)('Description') : (0,external_wp_i18n_namespaceObject.__)('Excerpt'),
opened: isOpened,
- onToggle: toggleExcerptPanel
- }, (0,external_React_.createElement)(post_excerpt_plugin.Slot, null, fills => (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(post_excerpt, null), fills))));
+ onToggle: toggleExcerptPanel,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_excerpt_plugin.Slot, {
+ children: fills => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostExcerpt, {}), fills]
+ })
+ })
+ });
+}
+
+/**
+ * Is rendered if the post type supports excerpts and allows editing the excerpt.
+ *
+ * @return {JSX.Element} The rendered PostExcerptPanel component.
+ */
+function PostExcerptPanel() {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_excerpt_check, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ExcerptPanel, {})
+ });
+}
+function PrivatePostExcerptPanel() {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_excerpt_check, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivateExcerpt, {})
+ });
+}
+function PrivateExcerpt() {
+ const {
+ shouldRender,
+ excerpt,
+ shouldBeUsedAsDescription,
+ allowEditing
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getCurrentPostType,
+ getCurrentPostId,
+ getEditedPostAttribute,
+ isEditorPanelEnabled
+ } = select(store_store);
+ const postType = getCurrentPostType();
+ const isTemplateOrTemplatePart = ['wp_template', 'wp_template_part'].includes(postType);
+ const isPattern = postType === 'wp_block';
+ // These post types use the `excerpt` field as a description semantically, so we need to
+ // handle proper labeling and some flows where we should always render them as text.
+ const _shouldBeUsedAsDescription = isTemplateOrTemplatePart || isPattern;
+ const _usedAttribute = isTemplateOrTemplatePart ? 'description' : 'excerpt';
+ // We need to fetch the entity in this case to check if we'll allow editing.
+ const template = isTemplateOrTemplatePart && select(external_wp_coreData_namespaceObject.store).getEntityRecord('postType', postType, getCurrentPostId());
+ // For post types that use excerpt as description, we do not abide
+ // by the `isEnabled` panel flag in order to render them as text.
+ const _shouldRender = isEditorPanelEnabled(post_excerpt_panel_PANEL_NAME) || _shouldBeUsedAsDescription;
+ return {
+ excerpt: getEditedPostAttribute(_usedAttribute),
+ shouldRender: _shouldRender,
+ shouldBeUsedAsDescription: _shouldBeUsedAsDescription,
+ // If we should render, allow editing for all post types that are not used as description.
+ // For the rest allow editing only for user generated entities.
+ allowEditing: _shouldRender && (!_shouldBeUsedAsDescription || isPattern || template && template.source === TEMPLATE_ORIGINS.custom && !template.has_theme_file)
+ };
+ }, []);
+ const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
+ const label = shouldBeUsedAsDescription ? (0,external_wp_i18n_namespaceObject.__)('Description') : (0,external_wp_i18n_namespaceObject.__)('Excerpt');
+ // Memoize popoverProps to avoid returning a new object every time.
+ const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ // Anchor the popover to the middle of the entire row so that it doesn't
+ // move around when the label changes.
+ anchor: popoverAnchor,
+ 'aria-label': label,
+ headerTitle: label,
+ placement: 'left-start',
+ offset: 36,
+ shift: true
+ }), [popoverAnchor, label]);
+ if (!shouldRender) {
+ return false;
+ }
+ const excerptText = !!excerpt && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ align: "left",
+ numberOfLines: 4,
+ truncate: true,
+ children: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(excerpt)
+ });
+ if (!allowEditing) {
+ return excerptText;
+ }
+ const excerptPlaceholder = shouldBeUsedAsDescription ? (0,external_wp_i18n_namespaceObject.__)('Add a description…') : (0,external_wp_i18n_namespaceObject.__)('Add an excerpt…');
+ const triggerEditLabel = shouldBeUsedAsDescription ? (0,external_wp_i18n_namespaceObject.__)('Edit description') : (0,external_wp_i18n_namespaceObject.__)('Edit excerpt');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ children: [excerptText, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ className: "editor-post-excerpt__dropdown",
+ contentClassName: "editor-post-excerpt__dropdown__content",
+ popoverProps: popoverProps,
+ focusOnMount: true,
+ ref: setPopoverAnchor,
+ renderToggle: ({
+ onToggle
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "editor-post-excerpt__dropdown__trigger",
+ onClick: onToggle,
+ variant: "link",
+ children: excerptText ? triggerEditLabel : excerptPlaceholder
+ }),
+ renderContent: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
+ title: label,
+ onClose: onClose
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 4,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_excerpt_plugin.Slot, {
+ children: fills => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostExcerpt, {
+ hideLabelFromVision: true,
+ updateOnBlur: true
+ }), fills]
+ })
+ })
+ })]
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: external ["wp","blob"]
@@ -8922,11 +12638,18 @@ const external_wp_blob_namespaceObject = window["wp"]["blob"];
*/
function ThemeSupportCheck({
- themeSupports,
children,
- postType,
supportKeys
}) {
+ const {
+ postType,
+ themeSupports
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ return {
+ postType: select(store_store).getEditedPostAttribute('type'),
+ themeSupports: select(external_wp_coreData_namespaceObject.store).getThemeSupports()
+ };
+ }, []);
const isSupported = (Array.isArray(supportKeys) ? supportKeys : [supportKeys]).some(key => {
var _themeSupports$key;
const supported = (_themeSupports$key = themeSupports?.[key]) !== null && _themeSupports$key !== void 0 ? _themeSupports$key : false;
@@ -8944,39 +12667,38 @@ function ThemeSupportCheck({
}
return children;
}
-/* harmony default export */ const theme_support_check = ((0,external_wp_data_namespaceObject.withSelect)(select => {
- const {
- getThemeSupports
- } = select(external_wp_coreData_namespaceObject.store);
- const {
- getEditedPostAttribute
- } = select(store_store);
- return {
- postType: getEditedPostAttribute('type'),
- themeSupports: getThemeSupports()
- };
-})(ThemeSupportCheck));
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-featured-image/check.js
-
/**
* Internal dependencies
*/
+
+/**
+ * Wrapper component that renders its children only if the post type supports a featured image
+ * and the theme supports post thumbnails.
+ *
+ * @param {Object} props Props.
+ * @param {Element} props.children Children to be rendered.
+ *
+ * @return {Component} The component to be rendered.
+ */
+
function PostFeaturedImageCheck({
children
}) {
- return (0,external_React_.createElement)(theme_support_check, {
- supportKeys: "post-thumbnails"
- }, (0,external_React_.createElement)(post_type_support_check, {
- supportKeys: "thumbnail"
- }, children));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ThemeSupportCheck, {
+ supportKeys: "post-thumbnails",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_type_support_check, {
+ supportKeys: "thumbnail",
+ children: children
+ })
+ });
}
/* harmony default export */ const post_featured_image_check = (PostFeaturedImageCheck);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-featured-image/index.js
-
/**
* WordPress dependencies
*/
@@ -8995,12 +12717,16 @@ function PostFeaturedImageCheck({
*/
+
+
const ALLOWED_MEDIA_TYPES = ['image'];
// Used when labels from post type were not yet loaded or when they are not present.
const DEFAULT_FEATURE_IMAGE_LABEL = (0,external_wp_i18n_namespaceObject.__)('Featured image');
-const DEFAULT_SET_FEATURE_IMAGE_LABEL = (0,external_wp_i18n_namespaceObject.__)('Set featured image');
-const instructions = (0,external_React_.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('To edit the featured image, you need permission to upload media.'));
+const DEFAULT_SET_FEATURE_IMAGE_LABEL = (0,external_wp_i18n_namespaceObject.__)('Add a featured image');
+const instructions = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('To edit the featured image, you need permission to upload media.')
+});
function getMediaDetails(media, postId) {
var _media$media_details$, _media$media_details$2;
if (!media) {
@@ -9048,8 +12774,6 @@ function PostFeaturedImage({
getSettings
} = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
const {
- mediaWidth,
- mediaHeight,
mediaSourceUrl
} = getMediaDetails(media, currentPostId);
function onDropFiles(filesList) {
@@ -9072,56 +12796,63 @@ function PostFeaturedImage({
}
});
}
- return (0,external_React_.createElement)(post_featured_image_check, null, noticeUI, (0,external_React_.createElement)("div", {
- className: "editor-post-featured-image"
- }, media && (0,external_React_.createElement)("div", {
- id: `editor-post-featured-image-${featuredImageId}-describedby`,
- className: "hidden"
- }, media.alt_text && (0,external_wp_i18n_namespaceObject.sprintf)(
- // Translators: %s: The selected image alt text.
- (0,external_wp_i18n_namespaceObject.__)('Current image: %s'), media.alt_text), !media.alt_text && (0,external_wp_i18n_namespaceObject.sprintf)(
- // Translators: %s: The selected image filename.
- (0,external_wp_i18n_namespaceObject.__)('The current image has no alternative text. The file name is: %s'), media.media_details.sizes?.full?.file || media.slug)), (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.MediaUploadCheck, {
- fallback: instructions
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.MediaUpload, {
- title: postType?.labels?.featured_image || DEFAULT_FEATURE_IMAGE_LABEL,
- onSelect: onUpdateImage,
- unstableFeaturedImageFlow: true,
- allowedTypes: ALLOWED_MEDIA_TYPES,
- modalClass: "editor-post-featured-image__media-modal",
- render: ({
- open
- }) => (0,external_React_.createElement)("div", {
- className: "editor-post-featured-image__container"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- ref: toggleRef,
- className: !featuredImageId ? 'editor-post-featured-image__toggle' : 'editor-post-featured-image__preview',
- onClick: open,
- "aria-label": !featuredImageId ? null : (0,external_wp_i18n_namespaceObject.__)('Edit or replace the image'),
- "aria-describedby": !featuredImageId ? null : `editor-post-featured-image-${featuredImageId}-describedby`
- }, !!featuredImageId && media && (0,external_React_.createElement)(external_wp_components_namespaceObject.ResponsiveWrapper, {
- naturalWidth: mediaWidth,
- naturalHeight: mediaHeight,
- isInline: true
- }, (0,external_React_.createElement)("img", {
- src: mediaSourceUrl,
- alt: ""
- })), isLoading && (0,external_React_.createElement)(external_wp_components_namespaceObject.Spinner, null), !featuredImageId && !isLoading && (postType?.labels?.set_featured_image || DEFAULT_SET_FEATURE_IMAGE_LABEL)), !!featuredImageId && (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- className: "editor-post-featured-image__actions"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "editor-post-featured-image__action",
- onClick: open
- }, (0,external_wp_i18n_namespaceObject.__)('Replace')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "editor-post-featured-image__action",
- onClick: () => {
- onRemoveImage();
- toggleRef.current.focus();
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Remove'))), (0,external_React_.createElement)(external_wp_components_namespaceObject.DropZone, {
- onFilesDrop: onDropFiles
- })),
- value: featuredImageId
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(post_featured_image_check, {
+ children: [noticeUI, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-post-featured-image",
+ children: [media && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ id: `editor-post-featured-image-${featuredImageId}-describedby`,
+ className: "hidden",
+ children: [media.alt_text && (0,external_wp_i18n_namespaceObject.sprintf)(
+ // Translators: %s: The selected image alt text.
+ (0,external_wp_i18n_namespaceObject.__)('Current image: %s'), media.alt_text), !media.alt_text && (0,external_wp_i18n_namespaceObject.sprintf)(
+ // Translators: %s: The selected image filename.
+ (0,external_wp_i18n_namespaceObject.__)('The current image has no alternative text. The file name is: %s'), media.media_details.sizes?.full?.file || media.slug)]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaUploadCheck, {
+ fallback: instructions,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaUpload, {
+ title: postType?.labels?.featured_image || DEFAULT_FEATURE_IMAGE_LABEL,
+ onSelect: onUpdateImage,
+ unstableFeaturedImageFlow: true,
+ allowedTypes: ALLOWED_MEDIA_TYPES,
+ modalClass: "editor-post-featured-image__media-modal",
+ render: ({
+ open
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-post-featured-image__container",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Button, {
+ ref: toggleRef,
+ className: !featuredImageId ? 'editor-post-featured-image__toggle' : 'editor-post-featured-image__preview',
+ onClick: open,
+ "aria-label": !featuredImageId ? null : (0,external_wp_i18n_namespaceObject.__)('Edit or replace the image'),
+ "aria-describedby": !featuredImageId ? null : `editor-post-featured-image-${featuredImageId}-describedby`,
+ children: [!!featuredImageId && media && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ className: "editor-post-featured-image__preview-image",
+ src: mediaSourceUrl,
+ alt: ""
+ }), isLoading && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}), !featuredImageId && !isLoading && (postType?.labels?.set_featured_image || DEFAULT_SET_FEATURE_IMAGE_LABEL)]
+ }), !!featuredImageId && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ className: "editor-post-featured-image__actions",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "editor-post-featured-image__action",
+ onClick: open,
+ children: (0,external_wp_i18n_namespaceObject.__)('Replace')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "editor-post-featured-image__action",
+ onClick: () => {
+ onRemoveImage();
+ toggleRef.current.focus();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Remove')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropZone, {
+ onFilesDrop: onDropFiles
+ })]
+ }),
+ value: featuredImageId
+ })
+ })]
+ })]
+ });
}
const applyWithSelect = (0,external_wp_data_namespaceObject.withSelect)(select => {
const {
@@ -9178,10 +12909,25 @@ const applyWithDispatch = (0,external_wp_data_namespaceObject.withDispatch)((dis
}
};
});
+
+/**
+ * Renders the component for managing the featured image of a post.
+ *
+ * @param {Object} props Props.
+ * @param {number} props.currentPostId ID of the current post.
+ * @param {number} props.featuredImageId ID of the featured image.
+ * @param {Function} props.onUpdateImage Function to call when the image is updated.
+ * @param {Function} props.onRemoveImage Function to call when the image is removed.
+ * @param {Object} props.media The media object representing the featured image.
+ * @param {string} props.postType Post type.
+ * @param {Element} props.noticeUI UI for displaying notices.
+ * @param {Object} props.noticeOperations Operations for managing notices.
+ *
+ * @return {Element} Component to be rendered .
+ */
/* harmony default export */ const post_featured_image = ((0,external_wp_compose_namespaceObject.compose)(external_wp_components_namespaceObject.withNotices, applyWithSelect, applyWithDispatch, (0,external_wp_components_namespaceObject.withFilters)('editor.PostFeaturedImage'))(PostFeaturedImage));
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-featured-image/panel.js
-
/**
* WordPress dependencies
*/
@@ -9196,8 +12942,21 @@ const applyWithDispatch = (0,external_wp_data_namespaceObject.withDispatch)((dis
+
const post_featured_image_panel_PANEL_NAME = 'featured-image';
-function FeaturedImage() {
+
+/**
+ * Renders the panel for the post featured image.
+ *
+ * @param {Object} props Props.
+ * @param {boolean} props.withPanelBody Whether to include the panel body. Default true.
+ *
+ * @return {Component|null} The component to be rendered.
+ * Return Null if the editor panel is disabled for featured image.
+ */
+function PostFeaturedImagePanel({
+ withPanelBody = true
+}) {
var _postType$labels$feat;
const {
postType,
@@ -9224,16 +12983,22 @@ function FeaturedImage() {
if (!isEnabled) {
return null;
}
- return (0,external_React_.createElement)(post_featured_image_check, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
- title: (_postType$labels$feat = postType?.labels?.featured_image) !== null && _postType$labels$feat !== void 0 ? _postType$labels$feat : (0,external_wp_i18n_namespaceObject.__)('Featured image'),
- opened: isOpened,
- onToggle: () => toggleEditorPanelOpened(post_featured_image_panel_PANEL_NAME)
- }, (0,external_React_.createElement)(post_featured_image, null)));
+ if (!withPanelBody) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_featured_image_check, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_featured_image, {})
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_featured_image_check, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (_postType$labels$feat = postType?.labels?.featured_image) !== null && _postType$labels$feat !== void 0 ? _postType$labels$feat : (0,external_wp_i18n_namespaceObject.__)('Featured image'),
+ opened: isOpened,
+ onToggle: () => toggleEditorPanelOpened(post_featured_image_panel_PANEL_NAME),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_featured_image, {})
+ })
+ });
}
-/* harmony default export */ const post_featured_image_panel = (FeaturedImage);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-format/check.js
-
/**
* WordPress dependencies
*/
@@ -9244,6 +13009,7 @@ function FeaturedImage() {
*/
+
function PostFormatCheck({
children
}) {
@@ -9251,14 +13017,23 @@ function PostFormatCheck({
if (disablePostFormats) {
return null;
}
- return (0,external_React_.createElement)(post_type_support_check, {
- supportKeys: "post-formats"
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_type_support_check, {
+ supportKeys: "post-formats",
+ children: children
+ });
}
+
+/**
+ * Component check if there are any post formats.
+ *
+ * @param {Object} props The component props.
+ * @param {Element} props.children The child elements to render.
+ *
+ * @return {Component|null} The rendered component or null if post formats are disabled.
+ */
/* harmony default export */ const post_format_check = (PostFormatCheck);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-format/index.js
-
/**
* WordPress dependencies
*/
@@ -9275,6 +13050,8 @@ function PostFormatCheck({
// All WP post formats, sorted alphabetically by translated name.
+
+
const POST_FORMATS = [{
id: 'aside',
caption: (0,external_wp_i18n_namespaceObject.__)('Aside')
@@ -9316,6 +13093,17 @@ const POST_FORMATS = [{
}
return 0;
});
+
+/**
+ * `PostFormat` a component that allows changing the post format while also providing a suggestion for the current post.
+ *
+ * @example
+ * ```jsx
+ * <PostFormat />
+ * ```
+ *
+ * @return {JSX.Element} The rendered PostFormat component.
+ */
function PostFormat() {
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(PostFormat);
const postFormatSelectorId = `post-format-selector-${instanceId}`;
@@ -9348,43 +13136,49 @@ function PostFormat() {
const onUpdatePostFormat = format => editPost({
format
});
- return (0,external_React_.createElement)(post_format_check, null, (0,external_React_.createElement)("div", {
- className: "editor-post-format"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.SelectControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Post Format'),
- value: postFormat,
- onChange: format => onUpdatePostFormat(format),
- id: postFormatSelectorId,
- options: formats.map(format => ({
- label: format.caption,
- value: format.id
- }))
- }), suggestion && suggestion.id !== postFormat && (0,external_React_.createElement)("p", {
- className: "editor-post-format__suggestion"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "link",
- onClick: () => onUpdatePostFormat(suggestion.id)
- }, (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: post format */
- (0,external_wp_i18n_namespaceObject.__)('Apply suggested format: %s'), suggestion.caption)))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_format_check, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-post-format",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RadioControl, {
+ className: "editor-post-format__options",
+ label: (0,external_wp_i18n_namespaceObject.__)('Post Format'),
+ selected: postFormat,
+ onChange: format => onUpdatePostFormat(format),
+ id: postFormatSelectorId,
+ options: formats.map(format => ({
+ label: format.caption,
+ value: format.id
+ })),
+ hideLabelFromVision: true
+ }), suggestion && suggestion.id !== postFormat && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "editor-post-format__suggestion",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "link",
+ onClick: () => onUpdatePostFormat(suggestion.id),
+ children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: post format */
+ (0,external_wp_i18n_namespaceObject.__)('Apply suggested format: %s'), suggestion.caption)
+ })
+ })]
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/backup.js
-
/**
* WordPress dependencies
*/
-const backup = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const backup = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"
+ })
+});
/* harmony default export */ const library_backup = (backup);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-last-revision/check.js
-
/**
* WordPress dependencies
*/
@@ -9395,6 +13189,16 @@ const backup = (0,external_React_.createElement)(external_wp_primitives_namespac
*/
+
+/**
+ * Wrapper component that renders its children if the post has more than one revision.
+ *
+ * @param {Object} props Props.
+ * @param {Element} props.children Children to be rendered.
+ *
+ * @return {Component|null} Rendered child components if post has more than one revision, otherwise null.
+ */
+
function PostLastRevisionCheck({
children
}) {
@@ -9414,14 +13218,14 @@ function PostLastRevisionCheck({
if (!lastRevisionId || revisionsCount < 2) {
return null;
}
- return (0,external_React_.createElement)(post_type_support_check, {
- supportKeys: "revisions"
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_type_support_check, {
+ supportKeys: "revisions",
+ children: children
+ });
}
/* harmony default export */ const post_last_revision_check = (PostLastRevisionCheck);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-last-revision/index.js
-
/**
* WordPress dependencies
*/
@@ -9436,11 +13240,10 @@ function PostLastRevisionCheck({
*/
-function LastRevision() {
- const {
- lastRevisionId,
- revisionsCount
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+
+
+function usePostLastRevisionInfo() {
+ return (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getCurrentPostLastRevisionId,
getCurrentPostRevisionsCount
@@ -9450,21 +13253,53 @@ function LastRevision() {
revisionsCount: getCurrentPostRevisionsCount()
};
}, []);
- return (0,external_React_.createElement)(post_last_revision_check, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- href: (0,external_wp_url_namespaceObject.addQueryArgs)('revision.php', {
- revision: lastRevisionId
- }),
- className: "editor-post-last-revision__title",
- icon: library_backup,
- iconPosition: "right",
- text: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: number of revisions */
- (0,external_wp_i18n_namespaceObject.__)('Revisions (%s)'), revisionsCount)
- }));
}
-/* harmony default export */ const post_last_revision = (LastRevision);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-last-revision/panel.js
+/**
+ * Renders the component for displaying the last revision of a post.
+ *
+ * @return {Component} The component to be rendered.
+ */
+function PostLastRevision() {
+ const {
+ lastRevisionId,
+ revisionsCount
+ } = usePostLastRevisionInfo();
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_last_revision_check, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ href: (0,external_wp_url_namespaceObject.addQueryArgs)('revision.php', {
+ revision: lastRevisionId
+ }),
+ className: "editor-post-last-revision__title",
+ icon: library_backup,
+ iconPosition: "right",
+ text: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: number of revisions */
+ (0,external_wp_i18n_namespaceObject.__)('Revisions (%s)'), revisionsCount)
+ })
+ });
+}
+function PrivatePostLastRevision() {
+ const {
+ lastRevisionId,
+ revisionsCount
+ } = usePostLastRevisionInfo();
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_last_revision_check, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Revisions'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ href: (0,external_wp_url_namespaceObject.addQueryArgs)('revision.php', {
+ revision: lastRevisionId
+ }),
+ className: "editor-private-post-last-revision__button",
+ text: revisionsCount,
+ variant: "tertiary"
+ })
+ })
+ });
+}
+/* harmony default export */ const post_last_revision = (PostLastRevision);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-last-revision/panel.js
/**
* WordPress dependencies
*/
@@ -9475,15 +13310,24 @@ function LastRevision() {
*/
+
+/**
+ * Renders the panel for displaying the last revision of a post.
+ *
+ * @return {Component} The component to be rendered.
+ */
+
function PostLastRevisionPanel() {
- return (0,external_React_.createElement)(post_last_revision_check, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
- className: "editor-post-last-revision__panel"
- }, (0,external_React_.createElement)(post_last_revision, null)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_last_revision_check, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ className: "editor-post-last-revision__panel",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_last_revision, {})
+ })
+ });
}
/* harmony default export */ const post_last_revision_panel = (PostLastRevisionPanel);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-locked-modal/index.js
-
/**
* WordPress dependencies
*/
@@ -9500,6 +13344,16 @@ function PostLastRevisionPanel() {
* Internal dependencies
*/
+
+/**
+ * A modal component that is displayed when a post is locked for editing by another user.
+ * The modal provides information about the lock status and options to take over or exit the editor.
+ *
+ * @return {JSX.Element|null} The rendered PostLockedModal component.
+ */
+
+
+
function PostLockedModal() {
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(PostLockedModal);
const hookName = 'core/editor/post-locked-modal-' + instanceId;
@@ -9637,44 +13491,61 @@ function PostLockedModal() {
post_type: postType?.slug
});
const allPostsLabel = (0,external_wp_i18n_namespaceObject.__)('Exit editor');
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Modal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
title: isTakeover ? (0,external_wp_i18n_namespaceObject.__)('Someone else has taken over this post') : (0,external_wp_i18n_namespaceObject.__)('This post is already being edited'),
focusOnMount: true,
shouldCloseOnClickOutside: false,
shouldCloseOnEsc: false,
isDismissible: false,
- size: "medium"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- alignment: "top",
- spacing: 6
- }, !!userAvatar && (0,external_React_.createElement)("img", {
- src: userAvatar,
- alt: (0,external_wp_i18n_namespaceObject.__)('Avatar'),
- className: "editor-post-locked-modal__avatar",
- width: 64,
- height: 64
- }), (0,external_React_.createElement)("div", null, !!isTakeover && (0,external_React_.createElement)("p", null, (0,external_wp_element_namespaceObject.createInterpolateElement)(userDisplayName ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: user's display name */
- (0,external_wp_i18n_namespaceObject.__)('<strong>%s</strong> now has editing control of this post (<PreviewLink />). Don’t worry, your changes up to this moment have been saved.'), userDisplayName) : (0,external_wp_i18n_namespaceObject.__)('Another user now has editing control of this post (<PreviewLink />). Don’t worry, your changes up to this moment have been saved.'), {
- strong: (0,external_React_.createElement)("strong", null),
- PreviewLink: (0,external_React_.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: previewLink
- }, (0,external_wp_i18n_namespaceObject.__)('preview'))
- })), !isTakeover && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("p", null, (0,external_wp_element_namespaceObject.createInterpolateElement)(userDisplayName ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: user's display name */
- (0,external_wp_i18n_namespaceObject.__)('<strong>%s</strong> is currently working on this post (<PreviewLink />), which means you cannot make changes, unless you take over.'), userDisplayName) : (0,external_wp_i18n_namespaceObject.__)('Another user is currently working on this post (<PreviewLink />), which means you cannot make changes, unless you take over.'), {
- strong: (0,external_React_.createElement)("strong", null),
- PreviewLink: (0,external_React_.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: previewLink
- }, (0,external_wp_i18n_namespaceObject.__)('preview'))
- })), (0,external_React_.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('If you take over, the other user will lose editing control to the post, but their changes will be saved.'))), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- className: "editor-post-locked-modal__buttons",
- justify: "flex-end"
- }, !isTakeover && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- href: unlockUrl
- }, (0,external_wp_i18n_namespaceObject.__)('Take over')), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- href: allPostsUrl
- }, allPostsLabel)))));
+ size: "medium",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ alignment: "top",
+ spacing: 6,
+ children: [!!userAvatar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
+ src: userAvatar,
+ alt: (0,external_wp_i18n_namespaceObject.__)('Avatar'),
+ className: "editor-post-locked-modal__avatar",
+ width: 64,
+ height: 64
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ children: [!!isTakeover && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_element_namespaceObject.createInterpolateElement)(userDisplayName ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: user's display name */
+ (0,external_wp_i18n_namespaceObject.__)('<strong>%s</strong> now has editing control of this post (<PreviewLink />). Don’t worry, your changes up to this moment have been saved.'), userDisplayName) : (0,external_wp_i18n_namespaceObject.__)('Another user now has editing control of this post (<PreviewLink />). Don’t worry, your changes up to this moment have been saved.'), {
+ strong: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", {}),
+ PreviewLink: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: previewLink,
+ children: (0,external_wp_i18n_namespaceObject.__)('preview')
+ })
+ })
+ }), !isTakeover && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_element_namespaceObject.createInterpolateElement)(userDisplayName ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: user's display name */
+ (0,external_wp_i18n_namespaceObject.__)('<strong>%s</strong> is currently working on this post (<PreviewLink />), which means you cannot make changes, unless you take over.'), userDisplayName) : (0,external_wp_i18n_namespaceObject.__)('Another user is currently working on this post (<PreviewLink />), which means you cannot make changes, unless you take over.'), {
+ strong: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", {}),
+ PreviewLink: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: previewLink,
+ children: (0,external_wp_i18n_namespaceObject.__)('preview')
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('If you take over, the other user will lose editing control to the post, but their changes will be saved.')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ className: "editor-post-locked-modal__buttons",
+ justify: "flex-end",
+ children: [!isTakeover && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ href: unlockUrl,
+ children: (0,external_wp_i18n_namespaceObject.__)('Take over')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ href: allPostsUrl,
+ children: allPostsLabel
+ })]
+ })]
+ })]
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-pending-status/check.js
@@ -9687,6 +13558,17 @@ function PostLockedModal() {
* Internal dependencies
*/
+
+/**
+ * This component checks the publishing status of the current post.
+ * If the post is already published or the user doesn't have the
+ * capability to publish, it returns null.
+ *
+ * @param {Object} props Component properties.
+ * @param {Element} props.children Children to be rendered.
+ *
+ * @return {JSX.Element|null} The rendered child elements or null if the post is already published or the user doesn't have the capability to publish.
+ */
function PostPendingStatusCheck({
children
}) {
@@ -9712,7 +13594,6 @@ function PostPendingStatusCheck({
/* harmony default export */ const post_pending_status_check = (PostPendingStatusCheck);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-pending-status/index.js
-
/**
* WordPress dependencies
*/
@@ -9725,6 +13606,13 @@ function PostPendingStatusCheck({
*/
+
+/**
+ * A component for displaying and toggling the pending status of a post.
+ *
+ * @return {JSX.Element} The rendered component.
+ */
+
function PostPendingStatus() {
const status = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getEditedPostAttribute('status'), []);
const {
@@ -9736,17 +13624,18 @@ function PostPendingStatus() {
status: updatedStatus
});
};
- return (0,external_React_.createElement)(post_pending_status_check, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Pending review'),
- checked: status === 'pending',
- onChange: togglePendingStatus
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_pending_status_check, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Pending review'),
+ checked: status === 'pending',
+ onChange: togglePendingStatus
+ })
+ });
}
/* harmony default export */ const post_pending_status = (PostPendingStatus);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-preview-button/index.js
-
/**
* WordPress dependencies
*/
@@ -9761,21 +13650,28 @@ function PostPendingStatus() {
* Internal dependencies
*/
+
+
+
function writeInterstitialMessage(targetDocument) {
- let markup = (0,external_wp_element_namespaceObject.renderToString)((0,external_React_.createElement)("div", {
- className: "editor-post-preview-button__interstitial-message"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 96 96"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Path, {
- className: "outer",
- d: "M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",
- fill: "none"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.Path, {
- className: "inner",
- d: "M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z",
- fill: "none"
- })), (0,external_React_.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Generating preview…'))));
+ let markup = (0,external_wp_element_namespaceObject.renderToString)( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-post-preview-button__interstitial-message",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 96 96",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ className: "outer",
+ d: "M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",
+ fill: "none"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ className: "inner",
+ d: "M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z",
+ fill: "none"
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Generating preview…')
+ })]
+ }));
markup += `
<style>
body {
@@ -9841,6 +13737,22 @@ function writeInterstitialMessage(targetDocument) {
targetDocument.title = (0,external_wp_i18n_namespaceObject.__)('Generating preview…');
targetDocument.close();
}
+
+/**
+ * Renders a button that opens a new window or tab for the preview,
+ * writes the interstitial message to this window, and then navigates
+ * to the actual preview link. The button is not rendered if the post
+ * is not viewable and disabled if the post is not saveable.
+ *
+ * @param {Object} props The component props.
+ * @param {string} props.className The class name for the button.
+ * @param {string} props.textContent The text content for the button.
+ * @param {boolean} props.forceIsAutosaveable Whether to force autosave.
+ * @param {string} props.role The role attribute for the button.
+ * @param {Function} props.onPreview The callback function for preview event.
+ *
+ * @return {JSX.Element|null} The rendered button component.
+ */
function PostPreviewButton({
className,
textContent,
@@ -9901,18 +13813,24 @@ function PostPreviewButton({
// changes that were autosaved since the post was last published. Otherwise,
// just link to the post's URL.
const href = previewLink || currentPostLink;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
variant: !className ? 'tertiary' : undefined,
className: className || 'editor-post-preview',
href: href,
target: targetId,
+ __experimentalIsFocusable: true,
disabled: !isSaveable,
onClick: openPreviewWindow,
- role: role
- }, textContent || (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_wp_i18n_namespaceObject._x)('Preview', 'imperative verb'), (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "span"
- }, /* translators: accessibility text */
- (0,external_wp_i18n_namespaceObject.__)('(opens in a new tab)'))));
+ role: role,
+ size: "compact",
+ children: textContent || /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [(0,external_wp_i18n_namespaceObject._x)('Preview', 'imperative verb'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ as: "span",
+ children: /* translators: accessibility text */
+ (0,external_wp_i18n_namespaceObject.__)('(opens in a new tab)')
+ })]
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-publish-button/label.js
@@ -9927,63 +13845,66 @@ function PostPreviewButton({
* Internal dependencies
*/
-function PublishButtonLabel({
- isPublished,
- isBeingScheduled,
- isSaving,
- isPublishing,
- hasPublishAction,
- isAutosaving,
- hasNonPostEntityChanges
-}) {
+function PublishButtonLabel() {
+ const isSmallerThanMediumViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
+ const {
+ isPublished,
+ isBeingScheduled,
+ isSaving,
+ isPublishing,
+ hasPublishAction,
+ isAutosaving,
+ hasNonPostEntityChanges,
+ postStatusHasChanged,
+ postStatus
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ var _getCurrentPost$_link;
+ const {
+ isCurrentPostPublished,
+ isEditedPostBeingScheduled,
+ isSavingPost,
+ isPublishingPost,
+ getCurrentPost,
+ getCurrentPostType,
+ isAutosavingPost,
+ getPostEdits,
+ getEditedPostAttribute
+ } = select(store_store);
+ return {
+ isPublished: isCurrentPostPublished(),
+ isBeingScheduled: isEditedPostBeingScheduled(),
+ isSaving: isSavingPost(),
+ isPublishing: isPublishingPost(),
+ hasPublishAction: (_getCurrentPost$_link = getCurrentPost()._links?.['wp:action-publish']) !== null && _getCurrentPost$_link !== void 0 ? _getCurrentPost$_link : false,
+ postType: getCurrentPostType(),
+ isAutosaving: isAutosavingPost(),
+ hasNonPostEntityChanges: select(store_store).hasNonPostEntityChanges(),
+ postStatusHasChanged: !!getPostEdits()?.status,
+ postStatus: getEditedPostAttribute('status')
+ };
+ }, []);
if (isPublishing) {
/* translators: button label text should, if possible, be under 16 characters. */
return (0,external_wp_i18n_namespaceObject.__)('Publishing…');
- } else if (isPublished && isSaving && !isAutosaving) {
- /* translators: button label text should, if possible, be under 16 characters. */
- return (0,external_wp_i18n_namespaceObject.__)('Updating…');
- } else if (isBeingScheduled && isSaving && !isAutosaving) {
+ } else if ((isPublished || isBeingScheduled) && isSaving && !isAutosaving) {
/* translators: button label text should, if possible, be under 16 characters. */
- return (0,external_wp_i18n_namespaceObject.__)('Scheduling…');
+ return (0,external_wp_i18n_namespaceObject.__)('Saving…');
}
if (!hasPublishAction) {
- return hasNonPostEntityChanges ? (0,external_wp_i18n_namespaceObject.__)('Submit for Review…') : (0,external_wp_i18n_namespaceObject.__)('Submit for Review');
- } else if (isPublished) {
- return hasNonPostEntityChanges ? (0,external_wp_i18n_namespaceObject.__)('Update…') : (0,external_wp_i18n_namespaceObject.__)('Update');
- } else if (isBeingScheduled) {
- return hasNonPostEntityChanges ? (0,external_wp_i18n_namespaceObject.__)('Schedule…') : (0,external_wp_i18n_namespaceObject.__)('Schedule');
+ // TODO: this is because "Submit for review" string is too long in some languages.
+ // @see https://github.com/WordPress/gutenberg/issues/10475
+ return isSmallerThanMediumViewport ? (0,external_wp_i18n_namespaceObject.__)('Publish') : (0,external_wp_i18n_namespaceObject.__)('Submit for Review');
+ }
+ if (hasNonPostEntityChanges || isPublished || postStatusHasChanged && !['future', 'publish'].includes(postStatus) || !postStatusHasChanged && postStatus === 'future') {
+ return (0,external_wp_i18n_namespaceObject.__)('Save');
+ }
+ if (isBeingScheduled) {
+ return (0,external_wp_i18n_namespaceObject.__)('Schedule');
}
return (0,external_wp_i18n_namespaceObject.__)('Publish');
}
-/* harmony default export */ const label = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)(select => {
- var _getCurrentPost$_link;
- const {
- isCurrentPostPublished,
- isEditedPostBeingScheduled,
- isSavingPost,
- isPublishingPost,
- getCurrentPost,
- getCurrentPostType,
- isAutosavingPost
- } = select(store_store);
- return {
- isPublished: isCurrentPostPublished(),
- isBeingScheduled: isEditedPostBeingScheduled(),
- isSaving: isSavingPost(),
- isPublishing: isPublishingPost(),
- hasPublishAction: (_getCurrentPost$_link = getCurrentPost()._links?.['wp:action-publish']) !== null && _getCurrentPost$_link !== void 0 ? _getCurrentPost$_link : false,
- postType: getCurrentPostType(),
- isAutosaving: isAutosavingPost()
- };
-})])(PublishButtonLabel));
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-publish-button/index.js
-
-/**
- * External dependencies
- */
-
-
/**
* WordPress dependencies
*/
@@ -9992,13 +13913,14 @@ function PublishButtonLabel({
-
/**
* Internal dependencies
*/
-const noop = () => {};
+
+
+const post_publish_button_noop = () => {};
class PostPublishButton extends external_wp_element_namespaceObject.Component {
constructor(props) {
super(props);
@@ -10046,7 +13968,7 @@ class PostPublishButton extends external_wp_element_namespaceObject.Component {
// with another function (() => myFunction). Passing the
// function on its own will cause an error when called.
setEntitiesSavedStatesCallback(() => this.closeEntitiesSavedStates);
- return noop;
+ return post_publish_button_noop;
}
return callback(...args);
};
@@ -10081,34 +14003,41 @@ class PostPublishButton extends external_wp_element_namespaceObject.Component {
isSaving,
isAutoSaving,
isToggle,
- onSave,
- onStatusChange,
- onSubmit = noop,
+ savePostStatus,
+ onSubmit = post_publish_button_noop,
onToggle,
visibility,
hasNonPostEntityChanges,
- isSavingNonPostEntityChanges
+ isSavingNonPostEntityChanges,
+ postStatus,
+ postStatusHasChanged
} = this.props;
const isButtonDisabled = (isSaving || !isSaveable || isPostSavingLocked || !isPublishable && !forceIsDirty) && (!hasNonPostEntityChanges || isSavingNonPostEntityChanges);
const isToggleDisabled = (isPublished || isSaving || !isSaveable || !isPublishable && !forceIsDirty) && (!hasNonPostEntityChanges || isSavingNonPostEntityChanges);
- let publishStatus;
- if (!hasPublishAction) {
+
+ // If the new status has not changed explicitely, we derive it from
+ // other factors, like having a publish action, etc.. We need to preserve
+ // this because it affects when to show the pre and post publish panels.
+ // If it has changed though explicitely, we need to respect that.
+ let publishStatus = 'publish';
+ if (postStatusHasChanged) {
+ publishStatus = postStatus;
+ } else if (!hasPublishAction) {
publishStatus = 'pending';
} else if (visibility === 'private') {
publishStatus = 'private';
} else if (isBeingScheduled) {
publishStatus = 'future';
- } else {
- publishStatus = 'publish';
}
const onClickButton = () => {
if (isButtonDisabled) {
return;
}
onSubmit();
- onStatusChange(publishStatus);
- onSave();
+ savePostStatus(publishStatus);
};
+
+ // Callback to open the publish panel.
const onClickToggle = () => {
if (isToggleDisabled) {
return;
@@ -10131,19 +14060,16 @@ class PostPublishButton extends external_wp_element_namespaceObject.Component {
size: 'compact',
onClick: this.createOnClick(onClickToggle)
};
- const toggleChildren = isBeingScheduled ? (0,external_wp_i18n_namespaceObject.__)('Schedule…') : (0,external_wp_i18n_namespaceObject.__)('Publish');
- const buttonChildren = (0,external_React_.createElement)(label, {
- hasNonPostEntityChanges: hasNonPostEntityChanges
- });
const componentProps = isToggle ? toggleProps : buttonProps;
- const componentChildren = isToggle ? toggleChildren : buttonChildren;
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- ref: this.buttonNode,
- ...componentProps,
- className: classnames_default()(componentProps.className, 'editor-post-publish-button__button', {
- 'has-changes-dot': hasNonPostEntityChanges
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ ref: this.buttonNode,
+ ...componentProps,
+ className: `${componentProps.className} editor-post-publish-button__button`,
+ size: "compact",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PublishButtonLabel, {})
})
- }, componentChildren));
+ });
}
}
/* harmony default export */ const post_publish_button = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)(select => {
@@ -10161,7 +14087,9 @@ class PostPublishButton extends external_wp_element_namespaceObject.Component {
getCurrentPostType,
getCurrentPostId,
hasNonPostEntityChanges,
- isSavingNonPostEntityChanges
+ isSavingNonPostEntityChanges,
+ getEditedPostAttribute,
+ getPostEdits
} = select(store_store);
return {
isSaving: isSavingPost(),
@@ -10175,6 +14103,8 @@ class PostPublishButton extends external_wp_element_namespaceObject.Component {
hasPublishAction: (_getCurrentPost$_link = getCurrentPost()._links?.['wp:action-publish']) !== null && _getCurrentPost$_link !== void 0 ? _getCurrentPost$_link : false,
postType: getCurrentPostType(),
postId: getCurrentPostId(),
+ postStatus: getEditedPostAttribute('status'),
+ postStatusHasChanged: getPostEdits()?.status,
hasNonPostEntityChanges: hasNonPostEntityChanges(),
isSavingNonPostEntityChanges: isSavingNonPostEntityChanges()
};
@@ -10184,41 +14114,30 @@ class PostPublishButton extends external_wp_element_namespaceObject.Component {
savePost
} = dispatch(store_store);
return {
- onStatusChange: status => editPost({
- status
- }, {
- undoIgnore: true
- }),
- onSave: savePost
+ savePostStatus: status => {
+ editPost({
+ status
+ }, {
+ undoIgnore: true
+ });
+ savePost();
+ }
};
})])(PostPublishButton));
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
-
-/**
- * WordPress dependencies
- */
-
-const closeSmall = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
-}));
-/* harmony default export */ const close_small = (closeSmall);
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/wordpress.js
-
/**
* WordPress dependencies
*/
-const wordpress = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const wordpress = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "-2 -2 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"
-}));
+ viewBox: "-2 -2 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"
+ })
+});
/* harmony default export */ const library_wordpress = (wordpress);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-visibility/utils.js
@@ -10242,7 +14161,6 @@ const visibilityOptions = {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-visibility/index.js
-
/**
* WordPress dependencies
*/
@@ -10258,6 +14176,16 @@ const visibilityOptions = {
*/
+
+/**
+ * Allows users to set the visibility of a post.
+ *
+ * @param {Object} props The component props.
+ * @param {Function} props.onClose Function to call when the popover is closed.
+ * @return {JSX.Element} The rendered component.
+ */
+
+
function PostVisibility({
onClose
}) {
@@ -10311,54 +14239,62 @@ function PostVisibility({
password: event.target.value
});
};
- return (0,external_React_.createElement)("div", {
- className: "editor-post-visibility"
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
- title: (0,external_wp_i18n_namespaceObject.__)('Visibility'),
- help: (0,external_wp_i18n_namespaceObject.__)('Control how this post is viewed.'),
- onClose: onClose
- }), (0,external_React_.createElement)("fieldset", {
- className: "editor-post-visibility__fieldset"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "legend"
- }, (0,external_wp_i18n_namespaceObject.__)('Visibility')), (0,external_React_.createElement)(PostVisibilityChoice, {
- instanceId: instanceId,
- value: "public",
- label: visibilityOptions.public.label,
- info: visibilityOptions.public.info,
- checked: visibility === 'public' && !hasPassword,
- onChange: setPublic
- }), (0,external_React_.createElement)(PostVisibilityChoice, {
- instanceId: instanceId,
- value: "private",
- label: visibilityOptions.private.label,
- info: visibilityOptions.private.info,
- checked: visibility === 'private',
- onChange: setPrivate
- }), (0,external_React_.createElement)(PostVisibilityChoice, {
- instanceId: instanceId,
- value: "password",
- label: visibilityOptions.password.label,
- info: visibilityOptions.password.info,
- checked: hasPassword,
- onChange: setPasswordProtected
- }), hasPassword && (0,external_React_.createElement)("div", {
- className: "editor-post-visibility__password"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "label",
- htmlFor: `editor-post-visibility__password-input-${instanceId}`
- }, (0,external_wp_i18n_namespaceObject.__)('Create password')), (0,external_React_.createElement)("input", {
- className: "editor-post-visibility__password-input",
- id: `editor-post-visibility__password-input-${instanceId}`,
- type: "text",
- onChange: updatePassword,
- value: password,
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Use a secure password')
- }))), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
- isOpen: showPrivateConfirmDialog,
- onConfirm: confirmPrivate,
- onCancel: handleDialogCancel
- }, (0,external_wp_i18n_namespaceObject.__)('Would you like to privately publish this post now?')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-post-visibility",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Visibility'),
+ help: (0,external_wp_i18n_namespaceObject.__)('Control how this post is viewed.'),
+ onClose: onClose
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
+ className: "editor-post-visibility__fieldset",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ as: "legend",
+ children: (0,external_wp_i18n_namespaceObject.__)('Visibility')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostVisibilityChoice, {
+ instanceId: instanceId,
+ value: "public",
+ label: visibilityOptions.public.label,
+ info: visibilityOptions.public.info,
+ checked: visibility === 'public' && !hasPassword,
+ onChange: setPublic
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostVisibilityChoice, {
+ instanceId: instanceId,
+ value: "private",
+ label: visibilityOptions.private.label,
+ info: visibilityOptions.private.info,
+ checked: visibility === 'private',
+ onChange: setPrivate
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostVisibilityChoice, {
+ instanceId: instanceId,
+ value: "password",
+ label: visibilityOptions.password.label,
+ info: visibilityOptions.password.info,
+ checked: hasPassword,
+ onChange: setPasswordProtected
+ }), hasPassword && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-post-visibility__password",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ as: "label",
+ htmlFor: `editor-post-visibility__password-input-${instanceId}`,
+ children: (0,external_wp_i18n_namespaceObject.__)('Create password')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
+ className: "editor-post-visibility__password-input",
+ id: `editor-post-visibility__password-input-${instanceId}`,
+ type: "text",
+ onChange: updatePassword,
+ value: password,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Use a secure password')
+ })]
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
+ isOpen: showPrivateConfirmDialog,
+ onConfirm: confirmPrivate,
+ onCancel: handleDialogCancel,
+ confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Publish'),
+ size: "medium",
+ children: (0,external_wp_i18n_namespaceObject.__)('Would you like to privately publish this post now?')
+ })]
+ });
}
function PostVisibilityChoice({
instanceId,
@@ -10367,23 +14303,26 @@ function PostVisibilityChoice({
info,
...props
}) {
- return (0,external_React_.createElement)("div", {
- className: "editor-post-visibility__choice"
- }, (0,external_React_.createElement)("input", {
- type: "radio",
- name: `editor-post-visibility__setting-${instanceId}`,
- value: value,
- id: `editor-post-${value}-${instanceId}`,
- "aria-describedby": `editor-post-${value}-${instanceId}-description`,
- className: "editor-post-visibility__radio",
- ...props
- }), (0,external_React_.createElement)("label", {
- htmlFor: `editor-post-${value}-${instanceId}`,
- className: "editor-post-visibility__label"
- }, label), (0,external_React_.createElement)("p", {
- id: `editor-post-${value}-${instanceId}-description`,
- className: "editor-post-visibility__info"
- }, info));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-post-visibility__choice",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
+ type: "radio",
+ name: `editor-post-visibility__setting-${instanceId}`,
+ value: value,
+ id: `editor-post-${value}-${instanceId}`,
+ "aria-describedby": `editor-post-${value}-${instanceId}-description`,
+ className: "editor-post-visibility__radio",
+ ...props
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("label", {
+ htmlFor: `editor-post-${value}-${instanceId}`,
+ className: "editor-post-visibility__label",
+ children: label
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ id: `editor-post-${value}-${instanceId}-description`,
+ className: "editor-post-visibility__info",
+ children: info
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-visibility/label.js
@@ -10397,24 +14336,27 @@ function PostVisibilityChoice({
*/
+
+/**
+ * Returns the label for the current post visibility setting.
+ *
+ * @return {string} Post visibility label.
+ */
function PostVisibilityLabel() {
return usePostVisibilityLabel();
}
+
+/**
+ * Get the label for the current post visibility setting.
+ *
+ * @return {string} Post visibility label.
+ */
function usePostVisibilityLabel() {
const visibility = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getEditedPostVisibility());
return visibilityOptions[visibility]?.label;
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/requiredArgs/index.js
-function requiredArgs(required, args) {
- if (args.length < required) {
- throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
- }
-}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/toDate/index.js
-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); }
-
-
+;// CONCATENATED MODULE: ./node_modules/date-fns/toDate.mjs
/**
* @name toDate
* @category Common Helpers
@@ -10431,9 +14373,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
*
* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
*
- * @param {Date|Number} argument - the value to convert
- * @returns {Date} the parsed date in the local time zone
- * @throws {TypeError} 1 argument required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param argument - The value to convert
+ *
+ * @returns The parsed date in the local time zone
*
* @example
* // Clone the date:
@@ -10445,28 +14389,34 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
* const result = toDate(1392098430000)
* //=> Tue Feb 11 2014 11:30:30
*/
-
function toDate(argument) {
- requiredArgs(1, arguments);
- var argStr = Object.prototype.toString.call(argument); // Clone the date
+ const argStr = Object.prototype.toString.call(argument);
- if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {
+ // Clone the date
+ if (
+ argument instanceof Date ||
+ (typeof argument === "object" && argStr === "[object Date]")
+ ) {
// Prevent the date to lose the milliseconds when passed to new Date() in IE10
- return new Date(argument.getTime());
- } else if (typeof argument === 'number' || argStr === '[object Number]') {
+ return new argument.constructor(+argument);
+ } else if (
+ typeof argument === "number" ||
+ argStr === "[object Number]" ||
+ typeof argument === "string" ||
+ argStr === "[object String]"
+ ) {
+ // TODO: Can we get rid of as?
return new Date(argument);
} else {
- if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
- // eslint-disable-next-line no-console
- console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"); // eslint-disable-next-line no-console
-
- console.warn(new Error().stack);
- }
-
+ // TODO: Can we get rid of as?
return new Date(NaN);
}
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/startOfMonth/index.js
+
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_toDate = ((/* unused pure expression or super */ null && (toDate)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/startOfMonth.mjs
/**
@@ -10478,24 +14428,28 @@ function toDate(argument) {
* Return the start of a month for the given date.
* The result will be in the local timezone.
*
- * @param {Date|Number} date - the original date
- * @returns {Date} the start of a month
- * @throws {TypeError} 1 argument required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The original date
+ *
+ * @returns The start of a month
*
* @example
* // The start of a month for 2 September 2014 11:55:00:
* const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))
* //=> Mon Sep 01 2014 00:00:00
*/
-
-function startOfMonth(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- date.setDate(1);
- date.setHours(0, 0, 0, 0);
- return date;
+function startOfMonth(date) {
+ const _date = toDate(date);
+ _date.setDate(1);
+ _date.setHours(0, 0, 0, 0);
+ return _date;
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/endOfMonth/index.js
+
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_startOfMonth = ((/* unused pure expression or super */ null && (startOfMonth)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/endOfMonth.mjs
/**
@@ -10507,225 +14461,239 @@ function startOfMonth(dirtyDate) {
* Return the end of a month for the given date.
* The result will be in the local timezone.
*
- * @param {Date|Number} date - the original date
- * @returns {Date} the end of a month
- * @throws {TypeError} 1 argument required
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param date - The original date
+ *
+ * @returns The end of a month
*
* @example
* // The end of a month for 2 September 2014 11:55:00:
* const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
* //=> Tue Sep 30 2014 23:59:59.999
*/
-
-function endOfMonth(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- var month = date.getMonth();
- date.setFullYear(date.getFullYear(), month + 1, 0);
- date.setHours(23, 59, 59, 999);
- return date;
+function endOfMonth(date) {
+ const _date = toDate(date);
+ const month = _date.getMonth();
+ _date.setFullYear(_date.getFullYear(), month + 1, 0);
+ _date.setHours(23, 59, 59, 999);
+ return _date;
}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/constants/index.js
+
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_endOfMonth = ((/* unused pure expression or super */ null && (endOfMonth)));
+
+;// CONCATENATED MODULE: ./node_modules/date-fns/constants.mjs
/**
- * Days in 1 week.
+ * @module constants
+ * @summary Useful constants
+ * @description
+ * Collection of useful date constants.
*
- * @name daysInWeek
+ * The constants could be imported from `date-fns/constants`:
+ *
+ * ```ts
+ * import { maxTime, minTime } from "./constants/date-fns/constants";
+ *
+ * function isAllowedTime(time) {
+ * return time <= maxTime && time >= minTime;
+ * }
+ * ```
+ */
+
+/**
* @constant
- * @type {number}
- * @default
+ * @name daysInWeek
+ * @summary Days in 1 week.
*/
-var daysInWeek = 7;
+const daysInWeek = 7;
+
/**
- * Days in 1 year
+ * @constant
+ * @name daysInYear
+ * @summary Days in 1 year.
+ *
+ * @description
+ * How many days in a year.
+ *
* One years equals 365.2425 days according to the formula:
*
* > Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400.
* > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days
- *
- * @name daysInYear
+ */
+const daysInYear = 365.2425;
+
+/**
* @constant
- * @type {number}
- * @default
+ * @name maxTime
+ * @summary Maximum allowed time.
+ *
+ * @example
+ * import { maxTime } from "./constants/date-fns/constants";
+ *
+ * const isValid = 8640000000000001 <= maxTime;
+ * //=> false
+ *
+ * new Date(8640000000000001);
+ * //=> Invalid Date
*/
+const maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;
-var daysInYear = 365.2425;
/**
- * Maximum allowed time.
+ * @constant
+ * @name minTime
+ * @summary Minimum allowed time.
*
- * @name maxTime
+ * @example
+ * import { minTime } from "./constants/date-fns/constants";
+ *
+ * const isValid = -8640000000000001 >= minTime;
+ * //=> false
+ *
+ * new Date(-8640000000000001)
+ * //=> Invalid Date
+ */
+const minTime = -maxTime;
+
+/**
* @constant
- * @type {number}
- * @default
+ * @name millisecondsInWeek
+ * @summary Milliseconds in 1 week.
*/
+const millisecondsInWeek = 604800000;
-var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;
/**
- * Milliseconds in 1 minute
- *
- * @name millisecondsInMinute
* @constant
- * @type {number}
- * @default
+ * @name millisecondsInDay
+ * @summary Milliseconds in 1 day.
*/
+const millisecondsInDay = 86400000;
-var millisecondsInMinute = 60000;
/**
- * Milliseconds in 1 hour
- *
- * @name millisecondsInHour
* @constant
- * @type {number}
- * @default
+ * @name millisecondsInMinute
+ * @summary Milliseconds in 1 minute
*/
+const millisecondsInMinute = 60000;
-var millisecondsInHour = 3600000;
/**
- * Milliseconds in 1 second
- *
- * @name millisecondsInSecond
* @constant
- * @type {number}
- * @default
+ * @name millisecondsInHour
+ * @summary Milliseconds in 1 hour
*/
+const millisecondsInHour = 3600000;
-var millisecondsInSecond = 1000;
/**
- * Minimum allowed time.
- *
- * @name minTime
* @constant
- * @type {number}
- * @default
+ * @name millisecondsInSecond
+ * @summary Milliseconds in 1 second
*/
+const millisecondsInSecond = 1000;
-var minTime = -maxTime;
/**
- * Minutes in 1 hour
- *
- * @name minutesInHour
* @constant
- * @type {number}
- * @default
+ * @name minutesInYear
+ * @summary Minutes in 1 year.
*/
+const minutesInYear = 525600;
-var minutesInHour = 60;
/**
- * Months in 1 quarter
- *
- * @name monthsInQuarter
* @constant
- * @type {number}
- * @default
+ * @name minutesInMonth
+ * @summary Minutes in 1 month.
*/
+const minutesInMonth = 43200;
-var monthsInQuarter = 3;
/**
- * Months in 1 year
- *
- * @name monthsInYear
* @constant
- * @type {number}
- * @default
+ * @name minutesInDay
+ * @summary Minutes in 1 day.
*/
+const minutesInDay = 1440;
-var monthsInYear = 12;
/**
- * Quarters in 1 year
- *
- * @name quartersInYear
* @constant
- * @type {number}
- * @default
+ * @name minutesInHour
+ * @summary Minutes in 1 hour.
*/
+const minutesInHour = 60;
-var quartersInYear = 4;
/**
- * Seconds in 1 hour
- *
- * @name secondsInHour
* @constant
- * @type {number}
- * @default
+ * @name monthsInQuarter
+ * @summary Months in 1 quarter.
*/
+const monthsInQuarter = 3;
-var secondsInHour = 3600;
/**
- * Seconds in 1 minute
- *
- * @name secondsInMinute
* @constant
- * @type {number}
- * @default
+ * @name monthsInYear
+ * @summary Months in 1 year.
*/
+const monthsInYear = 12;
-var secondsInMinute = 60;
/**
- * Seconds in 1 day
- *
- * @name secondsInDay
* @constant
- * @type {number}
- * @default
+ * @name quartersInYear
+ * @summary Quarters in 1 year
*/
+const quartersInYear = 4;
-var secondsInDay = secondsInHour * 24;
/**
- * Seconds in 1 week
- *
- * @name secondsInWeek
* @constant
- * @type {number}
- * @default
+ * @name secondsInHour
+ * @summary Seconds in 1 hour.
*/
+const secondsInHour = 3600;
-var secondsInWeek = secondsInDay * 7;
/**
- * Seconds in 1 year
- *
- * @name secondsInYear
* @constant
- * @type {number}
- * @default
+ * @name secondsInMinute
+ * @summary Seconds in 1 minute.
*/
+const secondsInMinute = 60;
-var secondsInYear = secondsInDay * daysInYear;
/**
- * Seconds in 1 month
- *
- * @name secondsInMonth
* @constant
- * @type {number}
- * @default
+ * @name secondsInDay
+ * @summary Seconds in 1 day.
*/
+const secondsInDay = secondsInHour * 24;
-var secondsInMonth = secondsInYear / 12;
/**
- * Seconds in 1 quarter
- *
- * @name secondsInQuarter
* @constant
- * @type {number}
- * @default
+ * @name secondsInWeek
+ * @summary Seconds in 1 week.
*/
+const secondsInWeek = secondsInDay * 7;
-var secondsInQuarter = secondsInMonth * 3;
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/toInteger/index.js
-function toInteger(dirtyNumber) {
- if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
- return NaN;
- }
+/**
+ * @constant
+ * @name secondsInYear
+ * @summary Seconds in 1 year.
+ */
+const secondsInYear = secondsInDay * daysInYear;
- var number = Number(dirtyNumber);
+/**
+ * @constant
+ * @name secondsInMonth
+ * @summary Seconds in 1 month
+ */
+const secondsInMonth = secondsInYear / 12;
- if (isNaN(number)) {
- return number;
- }
+/**
+ * @constant
+ * @name secondsInQuarter
+ * @summary Seconds in 1 quarter.
+ */
+const secondsInQuarter = secondsInMonth * 3;
- return number < 0 ? Math.ceil(number) : Math.floor(number);
-}
-;// CONCATENATED MODULE: ./node_modules/date-fns/esm/parseISO/index.js
+;// CONCATENATED MODULE: ./node_modules/date-fns/parseISO.mjs
+/**
+ * The {@link parseISO} function options.
+ */
/**
* @name parseISO
@@ -10741,12 +14709,12 @@ function toInteger(dirtyNumber) {
* If the argument isn't a string, the function cannot parse the string or
* the values are invalid, it returns Invalid Date.
*
- * @param {String} argument - the value to convert
- * @param {Object} [options] - an object with options.
- * @param {0|1|2} [options.additionalDigits=2] - the additional number of digits in the extended year format
- * @returns {Date} the parsed date in the local time zone
- * @throws {TypeError} 1 argument required
- * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
+ *
+ * @param argument - The value to convert
+ * @param options - An object with options
+ *
+ * @returns The parsed date in the local time zone
*
* @example
* // Convert string '2014-02-11T11:30:30' to date:
@@ -10759,26 +14727,13 @@ function toInteger(dirtyNumber) {
* const result = parseISO('+02014101', { additionalDigits: 1 })
* //=> Fri Apr 11 2014 00:00:00
*/
-
function parseISO(argument, options) {
- var _options$additionalDi;
-
- requiredArgs(1, arguments);
- var additionalDigits = toInteger((_options$additionalDi = options === null || options === void 0 ? void 0 : options.additionalDigits) !== null && _options$additionalDi !== void 0 ? _options$additionalDi : 2);
-
- if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) {
- throw new RangeError('additionalDigits must be 0, 1 or 2');
- }
-
- if (!(typeof argument === 'string' || Object.prototype.toString.call(argument) === '[object String]')) {
- return new Date(NaN);
- }
-
- var dateStrings = splitDateString(argument);
- var date;
+ const additionalDigits = options?.additionalDigits ?? 2;
+ const dateStrings = splitDateString(argument);
+ let date;
if (dateStrings.date) {
- var parseYearResult = parseYear(dateStrings.date, additionalDigits);
+ const parseYearResult = parseYear(dateStrings.date, additionalDigits);
date = parseDate(parseYearResult.restDateString, parseYearResult.year);
}
@@ -10786,13 +14741,12 @@ function parseISO(argument, options) {
return new Date(NaN);
}
- var timestamp = date.getTime();
- var time = 0;
- var offset;
+ const timestamp = date.getTime();
+ let time = 0;
+ let offset;
if (dateStrings.time) {
time = parseTime(dateStrings.time);
-
if (isNaN(time)) {
return new Date(NaN);
}
@@ -10800,40 +14754,53 @@ function parseISO(argument, options) {
if (dateStrings.timezone) {
offset = parseTimezone(dateStrings.timezone);
-
if (isNaN(offset)) {
return new Date(NaN);
}
} else {
- var dirtyDate = new Date(timestamp + time); // js parsed string assuming it's in UTC timezone
+ const dirtyDate = new Date(timestamp + time);
+ // JS parsed string assuming it's in UTC timezone
// but we need it to be parsed in our timezone
// so we use utc values to build date in our timezone.
// Year values from 0 to 99 map to the years 1900 to 1999
// so set year explicitly with setFullYear.
-
- var result = new Date(0);
- result.setFullYear(dirtyDate.getUTCFullYear(), dirtyDate.getUTCMonth(), dirtyDate.getUTCDate());
- result.setHours(dirtyDate.getUTCHours(), dirtyDate.getUTCMinutes(), dirtyDate.getUTCSeconds(), dirtyDate.getUTCMilliseconds());
+ const result = new Date(0);
+ result.setFullYear(
+ dirtyDate.getUTCFullYear(),
+ dirtyDate.getUTCMonth(),
+ dirtyDate.getUTCDate(),
+ );
+ result.setHours(
+ dirtyDate.getUTCHours(),
+ dirtyDate.getUTCMinutes(),
+ dirtyDate.getUTCSeconds(),
+ dirtyDate.getUTCMilliseconds(),
+ );
return result;
}
return new Date(timestamp + time + offset);
}
-var patterns = {
+
+const patterns = {
dateTimeDelimiter: /[T ]/,
timeZoneDelimiter: /[Z ]/i,
- timezone: /([Z+-].*)$/
+ timezone: /([Z+-].*)$/,
};
-var dateRegex = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/;
-var timeRegex = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/;
-var timezoneRegex = /^([+-])(\d{2})(?::?(\d{2}))?$/;
+
+const dateRegex =
+ /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/;
+const timeRegex =
+ /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/;
+const timezoneRegex = /^([+-])(\d{2})(?::?(\d{2}))?$/;
function splitDateString(dateString) {
- var dateStrings = {};
- var array = dateString.split(patterns.dateTimeDelimiter);
- var timeString; // The regex match should only return at maximum two array elements.
- // [date], [time], or [date, time].
+ const dateStrings = {};
+ const array = dateString.split(patterns.dateTimeDelimiter);
+ let timeString;
+ // The regex match should only return at maximum two array elements.
+ // [date], [time], or [date, time].
if (array.length > 2) {
return dateStrings;
}
@@ -10843,18 +14810,19 @@ function splitDateString(dateString) {
} else {
dateStrings.date = array[0];
timeString = array[1];
-
if (patterns.timeZoneDelimiter.test(dateStrings.date)) {
dateStrings.date = dateString.split(patterns.timeZoneDelimiter)[0];
- timeString = dateString.substr(dateStrings.date.length, dateString.length);
+ timeString = dateString.substr(
+ dateStrings.date.length,
+ dateString.length,
+ );
}
}
if (timeString) {
- var token = patterns.timezone.exec(timeString);
-
+ const token = patterns.timezone.exec(timeString);
if (token) {
- dateStrings.time = timeString.replace(token[1], '');
+ dateStrings.time = timeString.replace(token[1], "");
dateStrings.timezone = token[1];
} else {
dateStrings.time = timeString;
@@ -10865,48 +14833,56 @@ function splitDateString(dateString) {
}
function parseYear(dateString, additionalDigits) {
- var regex = new RegExp('^(?:(\\d{4}|[+-]\\d{' + (4 + additionalDigits) + '})|(\\d{2}|[+-]\\d{' + (2 + additionalDigits) + '})$)');
- var captures = dateString.match(regex); // Invalid ISO-formatted year
+ const regex = new RegExp(
+ "^(?:(\\d{4}|[+-]\\d{" +
+ (4 + additionalDigits) +
+ "})|(\\d{2}|[+-]\\d{" +
+ (2 + additionalDigits) +
+ "})$)",
+ );
- if (!captures) return {
- year: NaN,
- restDateString: ''
- };
- var year = captures[1] ? parseInt(captures[1]) : null;
- var century = captures[2] ? parseInt(captures[2]) : null; // either year or century is null, not both
+ const captures = dateString.match(regex);
+ // Invalid ISO-formatted year
+ if (!captures) return { year: NaN, restDateString: "" };
+ const year = captures[1] ? parseInt(captures[1]) : null;
+ const century = captures[2] ? parseInt(captures[2]) : null;
+
+ // either year or century is null, not both
return {
year: century === null ? year : century * 100,
- restDateString: dateString.slice((captures[1] || captures[2]).length)
+ restDateString: dateString.slice((captures[1] || captures[2]).length),
};
}
function parseDate(dateString, year) {
// Invalid ISO-formatted year
if (year === null) return new Date(NaN);
- var captures = dateString.match(dateRegex); // Invalid ISO-formatted string
+ const captures = dateString.match(dateRegex);
+ // Invalid ISO-formatted string
if (!captures) return new Date(NaN);
- var isWeekDate = !!captures[4];
- var dayOfYear = parseDateUnit(captures[1]);
- var month = parseDateUnit(captures[2]) - 1;
- var day = parseDateUnit(captures[3]);
- var week = parseDateUnit(captures[4]);
- var dayOfWeek = parseDateUnit(captures[5]) - 1;
+
+ const isWeekDate = !!captures[4];
+ const dayOfYear = parseDateUnit(captures[1]);
+ const month = parseDateUnit(captures[2]) - 1;
+ const day = parseDateUnit(captures[3]);
+ const week = parseDateUnit(captures[4]);
+ const dayOfWeek = parseDateUnit(captures[5]) - 1;
if (isWeekDate) {
if (!validateWeekDate(year, week, dayOfWeek)) {
return new Date(NaN);
}
-
return dayOfISOWeekYear(year, week, dayOfWeek);
} else {
- var date = new Date(0);
-
- if (!validateDate(year, month, day) || !validateDayOfYearDate(year, dayOfYear)) {
+ const date = new Date(0);
+ if (
+ !validateDate(year, month, day) ||
+ !validateDayOfYearDate(year, dayOfYear)
+ ) {
return new Date(NaN);
}
-
date.setUTCFullYear(year, month, Math.max(dayOfYear, day));
return date;
}
@@ -10917,31 +14893,35 @@ function parseDateUnit(value) {
}
function parseTime(timeString) {
- var captures = timeString.match(timeRegex);
+ const captures = timeString.match(timeRegex);
if (!captures) return NaN; // Invalid ISO-formatted time
- var hours = parseTimeUnit(captures[1]);
- var minutes = parseTimeUnit(captures[2]);
- var seconds = parseTimeUnit(captures[3]);
+ const hours = parseTimeUnit(captures[1]);
+ const minutes = parseTimeUnit(captures[2]);
+ const seconds = parseTimeUnit(captures[3]);
if (!validateTime(hours, minutes, seconds)) {
return NaN;
}
- return hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * 1000;
+ return (
+ hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * 1000
+ );
}
function parseTimeUnit(value) {
- return value && parseFloat(value.replace(',', '.')) || 0;
+ return (value && parseFloat(value.replace(",", "."))) || 0;
}
function parseTimezone(timezoneString) {
- if (timezoneString === 'Z') return 0;
- var captures = timezoneString.match(timezoneRegex);
+ if (timezoneString === "Z") return 0;
+
+ const captures = timezoneString.match(timezoneRegex);
if (!captures) return 0;
- var sign = captures[1] === '+' ? -1 : 1;
- var hours = parseInt(captures[2]);
- var minutes = captures[3] && parseInt(captures[3]) || 0;
+
+ const sign = captures[1] === "+" ? -1 : 1;
+ const hours = parseInt(captures[2]);
+ const minutes = (captures[3] && parseInt(captures[3])) || 0;
if (!validateTimezone(hours, minutes)) {
return NaN;
@@ -10951,24 +14931,30 @@ function parseTimezone(timezoneString) {
}
function dayOfISOWeekYear(isoWeekYear, week, day) {
- var date = new Date(0);
+ const date = new Date(0);
date.setUTCFullYear(isoWeekYear, 0, 4);
- var fourthOfJanuaryDay = date.getUTCDay() || 7;
- var diff = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay;
+ const fourthOfJanuaryDay = date.getUTCDay() || 7;
+ const diff = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay;
date.setUTCDate(date.getUTCDate() + diff);
return date;
-} // Validation functions
-// February is null to handle the leap year (using ||)
+}
+// Validation functions
-var daysInMonths = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
+// February is null to handle the leap year (using ||)
+const daysInMonths = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
function isLeapYearIndex(year) {
- return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
+ return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0);
}
function validateDate(year, month, date) {
- return month >= 0 && month <= 11 && date >= 1 && date <= (daysInMonths[month] || (isLeapYearIndex(year) ? 29 : 28));
+ return (
+ month >= 0 &&
+ month <= 11 &&
+ date >= 1 &&
+ date <= (daysInMonths[month] || (isLeapYearIndex(year) ? 29 : 28))
+ );
}
function validateDayOfYearDate(year, dayOfYear) {
@@ -10984,14 +14970,24 @@ function validateTime(hours, minutes, seconds) {
return minutes === 0 && seconds === 0;
}
- return seconds >= 0 && seconds < 60 && minutes >= 0 && minutes < 60 && hours >= 0 && hours < 25;
+ return (
+ seconds >= 0 &&
+ seconds < 60 &&
+ minutes >= 0 &&
+ minutes < 60 &&
+ hours >= 0 &&
+ hours < 25
+ );
}
function validateTimezone(_hours, minutes) {
return minutes >= 0 && minutes <= 59;
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-schedule/index.js
+// Fallback for modularized imports:
+/* harmony default export */ const date_fns_parseISO = ((/* unused pure expression or super */ null && (parseISO)));
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-schedule/index.js
/**
* External dependencies
*/
@@ -11010,8 +15006,31 @@ function validateTimezone(_hours, minutes) {
* Internal dependencies
*/
-function PostSchedule({
- onClose
+
+
+const {
+ PrivatePublishDateTimePicker
+} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+
+/**
+ * Renders the PostSchedule component. It allows the user to schedule a post.
+ *
+ * @param {Object} props Props.
+ * @param {Function} props.onClose Function to close the component.
+ *
+ * @return {Component} The component to be rendered.
+ */
+function PostSchedule(props) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivatePostSchedule, {
+ ...props,
+ showPopoverHeaderActions: true,
+ isCompact: false
+ });
+}
+function PrivatePostSchedule({
+ onClose,
+ showPopoverHeaderActions,
+ isCompact
}) {
const {
postDate,
@@ -11050,13 +15069,15 @@ function PostSchedule({
.replace(/\\\\/g, '') // Replace "//" with empty strings.
.split('').reverse().join('') // Reverse the string and test for "a" not followed by a slash.
);
- return (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.__experimentalPublishDateTimePicker, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivatePublishDateTimePicker, {
currentDate: postDate,
onChange: onUpdateDate,
is12Hour: is12HourTime,
events: events,
onMonthPreviewed: date => setPreviewedMonth(parseISO(date)),
- onClose: onClose
+ onClose: onClose,
+ isCompact: isCompact,
+ showPopoverHeaderActions: showPopoverHeaderActions
});
}
@@ -11072,9 +15093,26 @@ function PostSchedule({
* Internal dependencies
*/
+
+/**
+ * Renders the PostScheduleLabel component.
+ *
+ * @param {Object} props Props.
+ *
+ * @return {Component} The component to be rendered.
+ */
function PostScheduleLabel(props) {
return usePostScheduleLabel(props);
}
+
+/**
+ * Custom hook to get the label for post schedule.
+ *
+ * @param {Object} options Options for the hook.
+ * @param {boolean} options.full Whether to get the full label or not. Default is false.
+ *
+ * @return {string} The label for post schedule.
+ */
function usePostScheduleLabel({
full = false
} = {}) {
@@ -11158,10 +15196,7 @@ function isSameDay(left, right) {
return left.getDate() === right.getDate() && left.getMonth() === right.getMonth() && left.getFullYear() === right.getFullYear();
}
-;// CONCATENATED MODULE: external ["wp","a11y"]
-const external_wp_a11y_namespaceObject = window["wp"]["a11y"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-taxonomies/most-used-terms.js
-
/**
* WordPress dependencies
*/
@@ -11173,6 +15208,8 @@ const external_wp_a11y_namespaceObject = window["wp"]["a11y"];
* Internal dependencies
*/
+
+
const MIN_MOST_USED_TERMS = 3;
const DEFAULT_QUERY = {
per_page: 10,
@@ -11200,24 +15237,27 @@ function MostUsedTerms({
return null;
}
const terms = unescapeTerms(_terms);
- return (0,external_React_.createElement)("div", {
- className: "editor-post-taxonomies__flat-term-most-used"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
- as: "h3",
- className: "editor-post-taxonomies__flat-term-most-used-label"
- }, taxonomy.labels.most_used), (0,external_React_.createElement)("ul", {
- role: "list",
- className: "editor-post-taxonomies__flat-term-most-used-list"
- }, terms.map(term => (0,external_React_.createElement)("li", {
- key: term.id
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "link",
- onClick: () => onSelect(term)
- }, term.name)))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-post-taxonomies__flat-term-most-used",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
+ as: "h3",
+ className: "editor-post-taxonomies__flat-term-most-used-label",
+ children: taxonomy.labels.most_used
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ role: "list",
+ className: "editor-post-taxonomies__flat-term-most-used-list",
+ children: terms.map(term => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "link",
+ onClick: () => onSelect(term),
+ children: term.name
+ })
+ }, term.id))
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-taxonomies/flat-term-selector.js
-
/**
* WordPress dependencies
*/
@@ -11243,7 +15283,10 @@ function MostUsedTerms({
*
* @type {Array<any>}
*/
-const EMPTY_ARRAY = [];
+
+
+
+const flat_term_selector_EMPTY_ARRAY = [];
/**
* Module constants
@@ -11256,7 +15299,7 @@ const flat_term_selector_DEFAULT_QUERY = {
};
const isSameTermName = (termA, termB) => unescapeString(termA).toLowerCase() === unescapeString(termB).toLowerCase();
const termNamesToIds = (names, terms) => {
- return names.map(termName => terms.find(term => isSameTermName(term.name, termName)).id);
+ return names.map(termName => terms.find(term => isSameTermName(term.name, termName))?.id).filter(id => id !== undefined);
};
function FlatTermSelector({
slug
@@ -11285,7 +15328,7 @@ function FlatTermSelector({
} = select(external_wp_coreData_namespaceObject.store);
const post = getCurrentPost();
const _taxonomy = getTaxonomy(slug);
- const _termIds = _taxonomy ? getEditedPostAttribute(_taxonomy.rest_base) : EMPTY_ARRAY;
+ const _termIds = _taxonomy ? getEditedPostAttribute(_taxonomy.rest_base) : flat_term_selector_EMPTY_ARRAY;
const query = {
...flat_term_selector_DEFAULT_QUERY,
include: _termIds.join(','),
@@ -11296,7 +15339,7 @@ function FlatTermSelector({
hasAssignAction: _taxonomy ? (_post$_links2 = post._links?.['wp:action-assign-' + _taxonomy.rest_base]) !== null && _post$_links2 !== void 0 ? _post$_links2 : false : false,
taxonomy: _taxonomy,
termIds: _termIds,
- terms: _termIds.length ? getEntityRecords('taxonomy', slug, query) : EMPTY_ARRAY,
+ terms: _termIds.length ? getEntityRecords('taxonomy', slug, query) : flat_term_selector_EMPTY_ARRAY,
hasResolvedTerms: hasFinishedResolution('getEntityRecords', ['taxonomy', slug, query])
};
}, [slug]);
@@ -11310,7 +15353,7 @@ function FlatTermSelector({
searchResults: !!search ? getEntityRecords('taxonomy', slug, {
...flat_term_selector_DEFAULT_QUERY,
search
- }) : EMPTY_ARRAY
+ }) : flat_term_selector_EMPTY_ARRAY
};
}, [search, slug]);
@@ -11373,7 +15416,8 @@ function FlatTermSelector({
// The selector will always re-fetch terms later.
setValues(uniqueTerms);
if (newTermNames.length === 0) {
- return onUpdateTerms(termNamesToIds(uniqueTerms, availableTerms));
+ onUpdateTerms(termNamesToIds(uniqueTerms, availableTerms));
+ return;
}
if (!hasCreateAction) {
return;
@@ -11382,11 +15426,14 @@ function FlatTermSelector({
name: termName
}))).then(newTerms => {
const newAvailableTerms = availableTerms.concat(newTerms);
- return onUpdateTerms(termNamesToIds(uniqueTerms, newAvailableTerms));
+ onUpdateTerms(termNamesToIds(uniqueTerms, newAvailableTerms));
}).catch(error => {
createErrorNotice(error.message, {
type: 'snackbar'
});
+ // In case of a failure, try assigning available terms.
+ // This will invalidate the optimistic update.
+ onUpdateTerms(termNamesToIds(uniqueTerms, availableTerms));
});
}
function appendTerm(newTerm) {
@@ -11409,28 +15456,29 @@ function FlatTermSelector({
(0,external_wp_i18n_namespaceObject._x)('%s removed', 'term'), singularName);
const removeTermLabel = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: term name. */
(0,external_wp_i18n_namespaceObject._x)('Remove %s', 'term'), singularName);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.FormTokenField, {
- __next40pxDefaultSize: true,
- value: values,
- suggestions: suggestions,
- onChange: onChange,
- onInputChange: debouncedSearch,
- maxSuggestions: MAX_TERMS_SUGGESTIONS,
- label: newTermLabel,
- messages: {
- added: termAddedLabel,
- removed: termRemovedLabel,
- remove: removeTermLabel
- }
- }), (0,external_React_.createElement)(MostUsedTerms, {
- taxonomy: taxonomy,
- onSelect: appendTerm
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FormTokenField, {
+ __next40pxDefaultSize: true,
+ value: values,
+ suggestions: suggestions,
+ onChange: onChange,
+ onInputChange: debouncedSearch,
+ maxSuggestions: MAX_TERMS_SUGGESTIONS,
+ label: newTermLabel,
+ messages: {
+ added: termAddedLabel,
+ removed: termRemovedLabel,
+ remove: removeTermLabel
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MostUsedTerms, {
+ taxonomy: taxonomy,
+ onSelect: appendTerm
+ })]
+ });
}
/* harmony default export */ const flat_term_selector = ((0,external_wp_components_namespaceObject.withFilters)('editor.PostTaxonomyType')(FlatTermSelector));
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-publish-panel/maybe-tags-panel.js
-
/**
* WordPress dependencies
*/
@@ -11445,17 +15493,22 @@ function FlatTermSelector({
*/
+
+
const TagsPanel = () => {
- const panelBodyTitle = [(0,external_wp_i18n_namespaceObject.__)('Suggestion:'), (0,external_React_.createElement)("span", {
+ const panelBodyTitle = [(0,external_wp_i18n_namespaceObject.__)('Suggestion:'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
className: "editor-post-publish-panel__link",
- key: "label"
- }, (0,external_wp_i18n_namespaceObject.__)('Add tags'))];
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Add tags')
+ }, "label")];
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
initialOpen: false,
- title: panelBodyTitle
- }, (0,external_React_.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.')), (0,external_React_.createElement)(flat_term_selector, {
- slug: 'post_tag'
- }));
+ title: panelBodyTitle,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flat_term_selector, {
+ slug: "post_tag"
+ })]
+ });
};
const MaybeTagsPanel = () => {
const {
@@ -11488,14 +15541,13 @@ const MaybeTagsPanel = () => {
* more than one tag.
*/
if (!hadTagsWhenOpeningThePanel) {
- return (0,external_React_.createElement)(TagsPanel, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagsPanel, {});
}
return null;
};
/* harmony default export */ const maybe_tags_panel = (MaybeTagsPanel);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-publish-panel/maybe-post-format-panel.js
-
/**
* WordPress dependencies
*/
@@ -11509,6 +15561,8 @@ const MaybeTagsPanel = () => {
*/
+
+
const getSuggestion = (supportedFormats, suggestedPostFormat) => {
const formats = POST_FORMATS.filter(format => supportedFormats?.includes(format.id));
return formats.find(format => format.id === suggestedPostFormat);
@@ -11517,10 +15571,11 @@ const PostFormatSuggestion = ({
suggestedPostFormat,
suggestionText,
onUpdatePostFormat
-}) => (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
variant: "link",
- onClick: () => onUpdatePostFormat(suggestedPostFormat)
-}, suggestionText);
+ onClick: () => onUpdatePostFormat(suggestedPostFormat),
+ children: suggestionText
+});
function PostFormatPanel() {
const {
currentPostFormat,
@@ -11543,26 +15598,30 @@ function PostFormatPanel() {
const onUpdatePostFormat = format => editPost({
format
});
- const panelBodyTitle = [(0,external_wp_i18n_namespaceObject.__)('Suggestion:'), (0,external_React_.createElement)("span", {
+ const panelBodyTitle = [(0,external_wp_i18n_namespaceObject.__)('Suggestion:'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
className: "editor-post-publish-panel__link",
- key: "label"
- }, (0,external_wp_i18n_namespaceObject.__)('Use a post format'))];
+ children: (0,external_wp_i18n_namespaceObject.__)('Use a post format')
+ }, "label")];
if (!suggestion || suggestion.id === currentPostFormat) {
return null;
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
initialOpen: false,
- title: panelBodyTitle
- }, (0,external_React_.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.')), (0,external_React_.createElement)("p", null, (0,external_React_.createElement)(PostFormatSuggestion, {
- onUpdatePostFormat: onUpdatePostFormat,
- suggestedPostFormat: suggestion.id,
- suggestionText: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: post format */
- (0,external_wp_i18n_namespaceObject.__)('Apply the "%1$s" format.'), suggestion.caption)
- })));
+ title: panelBodyTitle,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostFormatSuggestion, {
+ onUpdatePostFormat: onUpdatePostFormat,
+ suggestedPostFormat: suggestion.id,
+ suggestionText: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: post format */
+ (0,external_wp_i18n_namespaceObject.__)('Apply the "%1$s" format.'), suggestion.caption)
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-taxonomies/hierarchical-term-selector.js
-
/**
* WordPress dependencies
*/
@@ -11585,6 +15644,8 @@ function PostFormatPanel() {
/**
* Module Constants
*/
+
+
const hierarchical_term_selector_DEFAULT_QUERY = {
per_page: -1,
orderby: 'name',
@@ -11859,20 +15920,21 @@ function HierarchicalTermSelector({
};
const renderTerms = renderedTerms => {
return renderedTerms.map(term => {
- return (0,external_React_.createElement)("div", {
- key: term.id,
- className: "editor-post-taxonomies__hierarchical-terms-choice"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- __nextHasNoMarginBottom: true,
- checked: terms.indexOf(term.id) !== -1,
- onChange: () => {
- const termId = parseInt(term.id, 10);
- onChange(termId);
- },
- label: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(term.name)
- }), !!term.children.length && (0,external_React_.createElement)("div", {
- className: "editor-post-taxonomies__hierarchical-terms-subchoices"
- }, renderTerms(term.children)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-post-taxonomies__hierarchical-terms-choice",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
+ __nextHasNoMarginBottom: true,
+ checked: terms.indexOf(term.id) !== -1,
+ onChange: () => {
+ const termId = parseInt(term.id, 10);
+ onChange(termId);
+ },
+ label: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(term.name)
+ }), !!term.children.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-post-taxonomies__hierarchical-terms-subchoices",
+ children: renderTerms(term.children)
+ })]
+ }, term.id);
});
};
const labelWithFallback = (labelProperty, fallbackIsCategory, fallbackIsNotCategory) => {
@@ -11887,53 +15949,65 @@ function HierarchicalTermSelector({
const filterLabel = (_taxonomy$labels$sear = taxonomy?.labels?.search_items) !== null && _taxonomy$labels$sear !== void 0 ? _taxonomy$labels$sear : (0,external_wp_i18n_namespaceObject.__)('Search Terms');
const groupLabel = (_taxonomy$name = taxonomy?.name) !== null && _taxonomy$name !== void 0 ? _taxonomy$name : (0,external_wp_i18n_namespaceObject.__)('Terms');
const showFilter = availableTerms.length >= MIN_TERMS_COUNT_FOR_FILTER;
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
direction: "column",
- gap: "4"
- }, showFilter && (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: filterLabel,
- value: filterValue,
- onChange: setFilter
- }), (0,external_React_.createElement)("div", {
- className: "editor-post-taxonomies__hierarchical-terms-list",
- tabIndex: "0",
- role: "group",
- "aria-label": groupLabel
- }, renderTerms('' !== filterValue ? filteredTermsTree : availableTermsTree)), !loading && hasCreateAction && (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- onClick: onToggleForm,
- className: "editor-post-taxonomies__hierarchical-terms-add",
- "aria-expanded": showForm,
- variant: "link"
- }, newTermButtonLabel)), showForm && (0,external_React_.createElement)("form", {
- onSubmit: onAddTerm
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Flex, {
- direction: "column",
- gap: "4"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- className: "editor-post-taxonomies__hierarchical-terms-input",
- label: newTermLabel,
- value: formName,
- onChange: onChangeFormName,
- required: true
- }), !!availableTerms.length && (0,external_React_.createElement)(external_wp_components_namespaceObject.TreeSelect, {
- __nextHasNoMarginBottom: true,
- label: parentSelectLabel,
- noOptionLabel: noParentOption,
- onChange: onChangeFormParent,
- selectedId: formParent,
- tree: availableTermsTree
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "secondary",
- type: "submit",
- className: "editor-post-taxonomies__hierarchical-terms-submit"
- }, newTermSubmitLabel)))));
+ gap: "4",
+ children: [showFilter && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ label: filterLabel,
+ value: filterValue,
+ onChange: setFilter
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-post-taxonomies__hierarchical-terms-list",
+ tabIndex: "0",
+ role: "group",
+ "aria-label": groupLabel,
+ children: renderTerms('' !== filterValue ? filteredTermsTree : availableTermsTree)
+ }), !loading && hasCreateAction && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ onClick: onToggleForm,
+ className: "editor-post-taxonomies__hierarchical-terms-add",
+ "aria-expanded": showForm,
+ variant: "link",
+ children: newTermButtonLabel
+ })
+ }), showForm && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ onSubmit: onAddTerm,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ direction: "column",
+ gap: "4",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __next40pxDefaultSize: true,
+ __nextHasNoMarginBottom: true,
+ className: "editor-post-taxonomies__hierarchical-terms-input",
+ label: newTermLabel,
+ value: formName,
+ onChange: onChangeFormName,
+ required: true
+ }), !!availableTerms.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TreeSelect, {
+ __next40pxDefaultSize: true,
+ __nextHasNoMarginBottom: true,
+ label: parentSelectLabel,
+ noOptionLabel: noParentOption,
+ onChange: onChangeFormParent,
+ selectedId: formParent,
+ tree: availableTermsTree
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "secondary",
+ type: "submit",
+ className: "editor-post-taxonomies__hierarchical-terms-submit",
+ children: newTermSubmitLabel
+ })
+ })]
+ })
+ })]
+ });
}
/* harmony default export */ const hierarchical_term_selector = ((0,external_wp_components_namespaceObject.withFilters)('editor.PostTaxonomyType')(HierarchicalTermSelector));
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-publish-panel/maybe-category-panel.js
-
/**
* WordPress dependencies
*/
@@ -11948,6 +16022,8 @@ function HierarchicalTermSelector({
*/
+
+
function MaybeCategoryPanel() {
const hasNoCategory = (0,external_wp_data_namespaceObject.useSelect)(select => {
const postType = select(store_store).getCurrentPostType();
@@ -11978,21 +16054,23 @@ function MaybeCategoryPanel() {
if (!shouldShowPanel) {
return null;
}
- const panelBodyTitle = [(0,external_wp_i18n_namespaceObject.__)('Suggestion:'), (0,external_React_.createElement)("span", {
+ const panelBodyTitle = [(0,external_wp_i18n_namespaceObject.__)('Suggestion:'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
className: "editor-post-publish-panel__link",
- key: "label"
- }, (0,external_wp_i18n_namespaceObject.__)('Assign a category'))];
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Assign a category')
+ }, "label")];
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
initialOpen: false,
- title: panelBodyTitle
- }, (0,external_React_.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Categories provide a helpful way to group related posts together and to quickly tell readers what a post is about.')), (0,external_React_.createElement)(hierarchical_term_selector, {
- slug: "category"
- }));
+ title: panelBodyTitle,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Categories provide a helpful way to group related posts together and to quickly tell readers what a post is about.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(hierarchical_term_selector, {
+ slug: "category"
+ })]
+ });
}
/* harmony default export */ const maybe_category_panel = (MaybeCategoryPanel);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-publish-panel/maybe-upload-media.js
-
/**
* WordPress dependencies
*/
@@ -12007,6 +16085,8 @@ function MaybeCategoryPanel() {
* Internal dependencies
*/
+
+
function flattenBlocks(blocks) {
const result = [];
blocks.forEach(block => {
@@ -12019,7 +16099,7 @@ function Image(block) {
const {
selectBlock
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableMotion.img, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.img, {
tabIndex: 0,
role: "button",
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Select image block.'),
@@ -12032,7 +16112,6 @@ function Image(block) {
event.preventDefault();
}
},
- key: block.clientId,
alt: block.attributes.alt,
src: block.attributes.url,
animate: {
@@ -12052,7 +16131,7 @@ function Image(block) {
whileHover: {
scale: 1.08
}
- });
+ }, block.clientId);
}
function maybe_upload_media_PostFormatPanel() {
const [isUploading, setIsUploading] = (0,external_wp_element_namespaceObject.useState)(false);
@@ -12070,10 +16149,10 @@ function maybe_upload_media_PostFormatPanel() {
if (!mediaUpload || !externalImages.length) {
return null;
}
- const panelBodyTitle = [(0,external_wp_i18n_namespaceObject.__)('Suggestion:'), (0,external_React_.createElement)("span", {
+ const panelBodyTitle = [(0,external_wp_i18n_namespaceObject.__)('Suggestion:'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
className: "editor-post-publish-panel__link",
- key: "label"
- }, (0,external_wp_i18n_namespaceObject.__)('External media'))];
+ children: (0,external_wp_i18n_namespaceObject.__)('External media')
+ }, "label")];
function uploadImages() {
setIsUploading(true);
Promise.all(externalImages.map(image => window.fetch(image.attributes.url.includes('?') ? image.attributes.url : image.attributes.url + '?').then(response => response.blob()).then(blob => new Promise((resolve, reject) => {
@@ -12097,28 +16176,33 @@ function maybe_upload_media_PostFormatPanel() {
setIsUploading(false);
});
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
initialOpen: true,
- title: panelBodyTitle
- }, (0,external_React_.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Upload external images to the Media Library. Images from different domains may load slowly, display incorrectly, or be removed unexpectedly.')), (0,external_React_.createElement)("div", {
- style: {
- display: 'inline-flex',
- flexWrap: 'wrap',
- gap: '8px'
- }
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.__unstableAnimatePresence, null, externalImages.map(image => {
- return (0,external_React_.createElement)(Image, {
- key: image.clientId,
- ...image
- });
- })), isUploading ? (0,external_React_.createElement)(external_wp_components_namespaceObject.Spinner, null) : (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- onClick: uploadImages
- }, (0,external_wp_i18n_namespaceObject.__)('Upload'))));
+ title: panelBodyTitle,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Upload external images to the Media Library. Images from different domains may load slowly, display incorrectly, or be removed unexpectedly.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ style: {
+ display: 'inline-flex',
+ flexWrap: 'wrap',
+ gap: '8px'
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableAnimatePresence, {
+ children: externalImages.map(image => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Image, {
+ ...image
+ }, image.clientId);
+ })
+ }), isUploading ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ onClick: uploadImages,
+ children: (0,external_wp_i18n_namespaceObject.__)('Upload')
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-publish-panel/prepublish.js
-
/**
* WordPress dependencies
*/
@@ -12142,6 +16226,9 @@ function maybe_upload_media_PostFormatPanel() {
+
+
+
function PostPublishPanelPrepublish({
children
}) {
@@ -12172,13 +16259,13 @@ function PostPublishPanelPrepublish({
siteHome: siteData.home && (0,external_wp_url_namespaceObject.filterURLForDisplay)(siteData.home)
};
}, []);
- let siteIcon = (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
+ let siteIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
className: "components-site-icon",
size: "36px",
icon: library_wordpress
});
if (siteIconUrl) {
- siteIcon = (0,external_React_.createElement)("img", {
+ siteIcon = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
alt: (0,external_wp_i18n_namespaceObject.__)('Site Icon'),
className: "components-site-icon",
src: siteIconUrl
@@ -12198,34 +16285,48 @@ function PostPublishPanelPrepublish({
prePublishTitle = (0,external_wp_i18n_namespaceObject.__)('Are you ready to publish?');
prePublishBodyText = (0,external_wp_i18n_namespaceObject.__)('Double-check your settings before publishing.');
}
- return (0,external_React_.createElement)("div", {
- className: "editor-post-publish-panel__prepublish"
- }, (0,external_React_.createElement)("div", null, (0,external_React_.createElement)("strong", null, prePublishTitle)), (0,external_React_.createElement)("p", null, prePublishBodyText), (0,external_React_.createElement)("div", {
- className: "components-site-card"
- }, siteIcon, (0,external_React_.createElement)("div", {
- className: "components-site-info"
- }, (0,external_React_.createElement)("span", {
- className: "components-site-name"
- }, (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(siteTitle) || (0,external_wp_i18n_namespaceObject.__)('(Untitled)')), (0,external_React_.createElement)("span", {
- className: "components-site-home"
- }, siteHome))), (0,external_React_.createElement)(maybe_upload_media_PostFormatPanel, null), hasPublishAction && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
- initialOpen: false,
- title: [(0,external_wp_i18n_namespaceObject.__)('Visibility:'), (0,external_React_.createElement)("span", {
- className: "editor-post-publish-panel__link",
- key: "label"
- }, (0,external_React_.createElement)(PostVisibilityLabel, null))]
- }, (0,external_React_.createElement)(PostVisibility, null)), (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
- initialOpen: false,
- title: [(0,external_wp_i18n_namespaceObject.__)('Publish:'), (0,external_React_.createElement)("span", {
- className: "editor-post-publish-panel__link",
- key: "label"
- }, (0,external_React_.createElement)(PostScheduleLabel, null))]
- }, (0,external_React_.createElement)(PostSchedule, null))), (0,external_React_.createElement)(PostFormatPanel, null), (0,external_React_.createElement)(maybe_tags_panel, null), (0,external_React_.createElement)(maybe_category_panel, null), children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-post-publish-panel__prepublish",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", {
+ children: prePublishTitle
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: prePublishBodyText
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "components-site-card",
+ children: [siteIcon, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "components-site-info",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "components-site-name",
+ children: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(siteTitle) || (0,external_wp_i18n_namespaceObject.__)('(Untitled)')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "components-site-home",
+ children: siteHome
+ })]
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(maybe_upload_media_PostFormatPanel, {}), hasPublishAction && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ initialOpen: false,
+ title: [(0,external_wp_i18n_namespaceObject.__)('Visibility:'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "editor-post-publish-panel__link",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostVisibilityLabel, {})
+ }, "label")],
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostVisibility, {})
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ initialOpen: false,
+ title: [(0,external_wp_i18n_namespaceObject.__)('Publish:'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "editor-post-publish-panel__link",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostScheduleLabel, {})
+ }, "label")],
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostSchedule, {})
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostFormatPanel, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(maybe_tags_panel, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(maybe_category_panel, {}), children]
+ });
}
/* harmony default export */ const prepublish = (PostPublishPanelPrepublish);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-publish-panel/postpublish.js
-
/**
* WordPress dependencies
*/
@@ -12243,6 +16344,9 @@ function PostPublishPanelPrepublish({
*/
+
+
+
const POSTNAME = '%postname%';
const PAGENAME = '%pagename%';
@@ -12272,10 +16376,11 @@ function postpublish_CopyButton({
children
}) {
const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(text, onCopy);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
variant: "secondary",
- ref: ref
- }, children);
+ ref: ref,
+ children: children
+ });
}
class PostPublishPanelPostpublish extends external_wp_element_namespaceObject.Component {
constructor() {
@@ -12323,40 +16428,56 @@ class PostPublishPanelPostpublish extends external_wp_element_namespaceObject.Co
const addLink = (0,external_wp_url_namespaceObject.addQueryArgs)('post-new.php', {
post_type: post.type
});
- const postPublishNonLinkHeader = isScheduled ? (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('is now scheduled. It will go live on'), ' ', (0,external_React_.createElement)(PostScheduleLabel, null), ".") : (0,external_wp_i18n_namespaceObject.__)('is now live.');
- return (0,external_React_.createElement)("div", {
- className: "post-publish-panel__postpublish"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
- className: "post-publish-panel__postpublish-header"
- }, (0,external_React_.createElement)("a", {
- ref: this.postLink,
- href: link
- }, (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(post.title) || (0,external_wp_i18n_namespaceObject.__)('(no title)')), ' ', postPublishNonLinkHeader), (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, null, (0,external_React_.createElement)("p", {
- className: "post-publish-panel__postpublish-subheader"
- }, (0,external_React_.createElement)("strong", null, (0,external_wp_i18n_namespaceObject.__)('What’s next?'))), (0,external_React_.createElement)("div", {
- className: "post-publish-panel__postpublish-post-address-container"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- className: "post-publish-panel__postpublish-post-address",
- readOnly: true,
- label: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: post type singular name */
- (0,external_wp_i18n_namespaceObject.__)('%s address'), postLabel),
- value: (0,external_wp_url_namespaceObject.safeDecodeURIComponent)(link),
- onFocus: this.onSelectInput
- }), (0,external_React_.createElement)("div", {
- className: "post-publish-panel__postpublish-post-address__copy-button-wrap"
- }, (0,external_React_.createElement)(postpublish_CopyButton, {
- text: link,
- onCopy: this.onCopy
- }, this.state.showCopyConfirmation ? (0,external_wp_i18n_namespaceObject.__)('Copied!') : (0,external_wp_i18n_namespaceObject.__)('Copy')))), (0,external_React_.createElement)("div", {
- className: "post-publish-panel__postpublish-buttons"
- }, !isScheduled && (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- href: link
- }, viewPostLabel), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: isScheduled ? 'primary' : 'secondary',
- href: addLink
- }, addNewPostLabel))), children);
+ const postPublishNonLinkHeader = isScheduled ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [(0,external_wp_i18n_namespaceObject.__)('is now scheduled. It will go live on'), ' ', /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostScheduleLabel, {}), "."]
+ }) : (0,external_wp_i18n_namespaceObject.__)('is now live.');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "post-publish-panel__postpublish",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ className: "post-publish-panel__postpublish-header",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("a", {
+ ref: this.postLink,
+ href: link,
+ children: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(post.title) || (0,external_wp_i18n_namespaceObject.__)('(no title)')
+ }), ' ', postPublishNonLinkHeader]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.PanelBody, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "post-publish-panel__postpublish-subheader",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", {
+ children: (0,external_wp_i18n_namespaceObject.__)('What’s next?')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "post-publish-panel__postpublish-post-address-container",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ className: "post-publish-panel__postpublish-post-address",
+ readOnly: true,
+ label: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: post type singular name */
+ (0,external_wp_i18n_namespaceObject.__)('%s address'), postLabel),
+ value: (0,external_wp_url_namespaceObject.safeDecodeURIComponent)(link),
+ onFocus: this.onSelectInput
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "post-publish-panel__postpublish-post-address__copy-button-wrap",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(postpublish_CopyButton, {
+ text: link,
+ onCopy: this.onCopy,
+ children: this.state.showCopyConfirmation ? (0,external_wp_i18n_namespaceObject.__)('Copied!') : (0,external_wp_i18n_namespaceObject.__)('Copy')
+ })
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "post-publish-panel__postpublish-buttons",
+ children: [!isScheduled && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ href: link,
+ children: viewPostLabel
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: isScheduled ? 'primary' : 'secondary',
+ href: addLink,
+ children: addNewPostLabel
+ })]
+ })]
+ }), children]
+ });
}
}
/* harmony default export */ const postpublish = ((0,external_wp_data_namespaceObject.withSelect)(select => {
@@ -12376,7 +16497,6 @@ class PostPublishPanelPostpublish extends external_wp_element_namespaceObject.Co
})(PostPublishPanelPostpublish));
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-publish-panel/index.js
-
/**
* WordPress dependencies
*/
@@ -12395,6 +16515,9 @@ class PostPublishPanelPostpublish extends external_wp_element_namespaceObject.Co
+
+
+
class PostPublishPanel extends external_wp_element_namespaceObject.Component {
constructor() {
super(...arguments);
@@ -12441,39 +16564,53 @@ class PostPublishPanel extends external_wp_element_namespaceObject.Component {
const isPublishedOrScheduled = isPublished || isScheduled && isBeingScheduled;
const isPrePublish = !isPublishedOrScheduled && !isSaving;
const isPostPublish = isPublishedOrScheduled && !isSaving;
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: "editor-post-publish-panel",
- ...propsForPanel
- }, (0,external_React_.createElement)("div", {
- className: "editor-post-publish-panel__header"
- }, isPostPublish ? (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- onClick: onClose,
- icon: close_small,
- label: (0,external_wp_i18n_namespaceObject.__)('Close panel')
- }) : (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("div", {
- className: "editor-post-publish-panel__header-publish-button"
- }, (0,external_React_.createElement)(post_publish_button, {
- focusOnMount: true,
- onSubmit: this.onSubmit,
- forceIsDirty: forceIsDirty
- })), (0,external_React_.createElement)("div", {
- className: "editor-post-publish-panel__header-cancel-button"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- disabled: isSavingNonPostEntityChanges,
- onClick: onClose,
- variant: "secondary"
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel'))))), (0,external_React_.createElement)("div", {
- className: "editor-post-publish-panel__content"
- }, isPrePublish && (0,external_React_.createElement)(prepublish, null, PrePublishExtension && (0,external_React_.createElement)(PrePublishExtension, null)), isPostPublish && (0,external_React_.createElement)(postpublish, {
- focusOnMount: true
- }, PostPublishExtension && (0,external_React_.createElement)(PostPublishExtension, null)), isSaving && (0,external_React_.createElement)(external_wp_components_namespaceObject.Spinner, null)), (0,external_React_.createElement)("div", {
- className: "editor-post-publish-panel__footer"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Always show pre-publish checks.'),
- checked: isPublishSidebarEnabled,
- onChange: onTogglePublishSidebar
- })));
+ ...propsForPanel,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-post-publish-panel__header",
+ children: isPostPublish ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ onClick: onClose,
+ icon: close_small,
+ label: (0,external_wp_i18n_namespaceObject.__)('Close panel')
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-post-publish-panel__header-publish-button",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_publish_button, {
+ focusOnMount: true,
+ onSubmit: this.onSubmit,
+ forceIsDirty: forceIsDirty
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-post-publish-panel__header-cancel-button",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __experimentalIsFocusable: true,
+ disabled: isSavingNonPostEntityChanges,
+ onClick: onClose,
+ variant: "secondary",
+ size: "compact",
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ })
+ })]
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-post-publish-panel__content",
+ children: [isPrePublish && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(prepublish, {
+ children: PrePublishExtension && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrePublishExtension, {})
+ }), isPostPublish && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(postpublish, {
+ focusOnMount: true,
+ children: PostPublishExtension && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostPublishExtension, {})
+ }), isSaving && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-post-publish-panel__footer",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Always show pre-publish checks.'),
+ checked: isPublishSidebarEnabled,
+ onChange: onTogglePublishSidebar
+ })
+ })]
+ });
}
}
/* harmony default export */ const post_publish_panel = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)(select => {
@@ -12526,17 +16663,18 @@ class PostPublishPanel extends external_wp_element_namespaceObject.Component {
}), external_wp_components_namespaceObject.withFocusReturn, external_wp_components_namespaceObject.withConstrainedTabbing])(PostPublishPanel));
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/cloud-upload.js
-
/**
* WordPress dependencies
*/
-const cloudUpload = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const cloudUpload = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-4v-2.4L14 14l1-1-3-3-3 3 1 1 1.2-1.2v2.4H7.7c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4H9l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8 0 1-.8 1.8-1.7 1.8z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-4v-2.4L14 14l1-1-3-3-3 3 1 1 1.2-1.2v2.4H7.7c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4H9l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8 0 1-.8 1.8-1.7 1.8z"
+ })
+});
/* harmony default export */ const cloud_upload = (cloudUpload);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js
@@ -12572,22 +16710,255 @@ function Icon({
/* harmony default export */ const icon = ((0,external_wp_element_namespaceObject.forwardRef)(Icon));
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/cloud.js
-
/**
* WordPress dependencies
*/
-const cloud = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const cloud = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"
+ })
+});
/* harmony default export */ const library_cloud = (cloud);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-saved-state/index.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-status/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+const labels = {
+ 'auto-draft': (0,external_wp_i18n_namespaceObject.__)('Draft'),
+ draft: (0,external_wp_i18n_namespaceObject.__)('Draft'),
+ pending: (0,external_wp_i18n_namespaceObject.__)('Pending'),
+ private: (0,external_wp_i18n_namespaceObject.__)('Private'),
+ future: (0,external_wp_i18n_namespaceObject.__)('Scheduled'),
+ publish: (0,external_wp_i18n_namespaceObject.__)('Published')
+};
+const STATUS_OPTIONS = [{
+ label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [(0,external_wp_i18n_namespaceObject.__)('Draft'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ size: 12,
+ children: (0,external_wp_i18n_namespaceObject.__)('Not ready to publish.')
+ })]
+ }),
+ value: 'draft'
+}, {
+ label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [(0,external_wp_i18n_namespaceObject.__)('Pending'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ size: 12,
+ children: (0,external_wp_i18n_namespaceObject.__)('Waiting for review before publishing.')
+ })]
+ }),
+ value: 'pending'
+}, {
+ label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [(0,external_wp_i18n_namespaceObject.__)('Private'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ size: 12,
+ children: (0,external_wp_i18n_namespaceObject.__)('Only visible to site admins and editors.')
+ })]
+ }),
+ value: 'private'
+}, {
+ label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [(0,external_wp_i18n_namespaceObject.__)('Scheduled'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ size: 12,
+ children: (0,external_wp_i18n_namespaceObject.__)('Publish automatically on a chosen date.')
+ })]
+ }),
+ value: 'future'
+}, {
+ label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [(0,external_wp_i18n_namespaceObject.__)('Published'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ size: 12,
+ children: (0,external_wp_i18n_namespaceObject.__)('Visible to everyone.')
+ })]
+ }),
+ value: 'publish'
+}];
+const DESIGN_POST_TYPES = [TEMPLATE_POST_TYPE, TEMPLATE_PART_POST_TYPE, PATTERN_POST_TYPE, NAVIGATION_POST_TYPE];
+function PostStatus() {
+ const {
+ status,
+ date,
+ password,
+ postId,
+ postType,
+ canEdit
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ var _getCurrentPost$_link;
+ const {
+ getEditedPostAttribute,
+ getCurrentPostId,
+ getCurrentPostType,
+ getCurrentPost
+ } = select(store_store);
+ return {
+ status: getEditedPostAttribute('status'),
+ date: getEditedPostAttribute('date'),
+ password: getEditedPostAttribute('password'),
+ postId: getCurrentPostId(),
+ postType: getCurrentPostType(),
+ canEdit: (_getCurrentPost$_link = getCurrentPost()._links?.['wp:action-publish']) !== null && _getCurrentPost$_link !== void 0 ? _getCurrentPost$_link : false
+ };
+ }, []);
+ const [showPassword, setShowPassword] = (0,external_wp_element_namespaceObject.useState)(!!password);
+ const passwordInputId = (0,external_wp_compose_namespaceObject.useInstanceId)(PostStatus, 'editor-change-status__password-input');
+ const {
+ editEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
+ // Memoize popoverProps to avoid returning a new object every time.
+ const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ // Anchor the popover to the middle of the entire row so that it doesn't
+ // move around when the label changes.
+ anchor: popoverAnchor,
+ 'aria-label': (0,external_wp_i18n_namespaceObject.__)('Status & visibility'),
+ headerTitle: (0,external_wp_i18n_namespaceObject.__)('Status & visibility'),
+ placement: 'left-start',
+ offset: 36,
+ shift: true
+ }), [popoverAnchor]);
+ if (DESIGN_POST_TYPES.includes(postType)) {
+ return null;
+ }
+ const updatePost = ({
+ status: newStatus = status,
+ password: newPassword = password,
+ date: newDate = date
+ }) => {
+ editEntityRecord('postType', postType, postId, {
+ status: newStatus,
+ date: newDate,
+ password: newPassword
+ });
+ };
+ const handleTogglePassword = value => {
+ setShowPassword(value);
+ if (!value) {
+ updatePost({
+ password: ''
+ });
+ }
+ };
+ const handleStatus = value => {
+ let newDate = date;
+ let newPassword = password;
+ if (status === 'future' && new Date(date) > new Date()) {
+ newDate = null;
+ }
+ if (value === 'private' && password) {
+ newPassword = '';
+ }
+ updatePost({
+ status: value,
+ date: newDate,
+ password: newPassword
+ });
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Status'),
+ ref: setPopoverAnchor,
+ children: canEdit ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ className: "editor-post-status",
+ contentClassName: "editor-change-status__content",
+ popoverProps: popoverProps,
+ focusOnMount: true,
+ renderToggle: ({
+ onToggle
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ size: "compact",
+ onClick: onToggle,
+ "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Current post status.
+ (0,external_wp_i18n_namespaceObject.__)('Change post status: %s'), labels[status]),
+ children: labels[status]
+ }),
+ renderContent: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Status & visibility'),
+ onClose: onClose
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 4,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RadioControl, {
+ className: "editor-change-status__options",
+ hideLabelFromVision: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Status'),
+ options: STATUS_OPTIONS,
+ onChange: handleStatus,
+ selected: status === 'auto-draft' ? 'draft' : status
+ }), status === 'future' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-change-status__publish-date-wrapper",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivatePostSchedule, {
+ showPopoverHeaderActions: false,
+ isCompact: true
+ })
+ }), status !== 'private' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ as: "fieldset",
+ spacing: 4,
+ className: "editor-change-status__password-fieldset",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Password protected'),
+ help: (0,external_wp_i18n_namespaceObject.__)('Only visible to those who know the password'),
+ checked: showPassword,
+ onChange: handleTogglePassword
+ }), showPassword && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-change-status__password-input",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Password'),
+ onChange: value => updatePost({
+ password: value
+ }),
+ value: password,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Use a secure password'),
+ type: "text",
+ id: passwordInputId,
+ __next40pxDefaultSize: true,
+ __nextHasNoMarginBottom: true
+ })
+ })]
+ })]
+ })
+ })]
+ })
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-post-status is-read-only",
+ children: labels[status]
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-saved-state/index.js
+/**
* External dependencies
*/
@@ -12609,6 +16980,7 @@ const cloud = (0,external_React_.createElement)(external_wp_primitives_namespace
*/
+
/**
* Component showing whether the post is saved or not and providing save
* buttons.
@@ -12618,6 +16990,8 @@ const cloud = (0,external_React_.createElement)(external_wp_primitives_namespace
* as dirty.
* @return {import('react').ComponentType} The component.
*/
+
+
function PostSavedState({
forceIsDirty
}) {
@@ -12627,13 +17001,14 @@ function PostSavedState({
isAutosaving,
isDirty,
isNew,
- isPending,
isPublished,
isSaveable,
isSaving,
isScheduled,
hasPublishAction,
- showIconLabels
+ showIconLabels,
+ postStatus,
+ postStatusHasChanged
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
var _getCurrentPost$_link;
const {
@@ -12645,7 +17020,8 @@ function PostSavedState({
isEditedPostSaveable,
getCurrentPost,
isAutosavingPost,
- getEditedPostAttribute
+ getEditedPostAttribute,
+ getPostEdits
} = select(store_store);
const {
get
@@ -12654,15 +17030,17 @@ function PostSavedState({
isAutosaving: isAutosavingPost(),
isDirty: forceIsDirty || isEditedPostDirty(),
isNew: isEditedPostNew(),
- isPending: 'pending' === getEditedPostAttribute('status'),
isPublished: isCurrentPostPublished(),
isSaving: isSavingPost(),
isSaveable: isEditedPostSaveable(),
isScheduled: isCurrentPostScheduled(),
hasPublishAction: (_getCurrentPost$_link = getCurrentPost()?._links?.['wp:action-publish']) !== null && _getCurrentPost$_link !== void 0 ? _getCurrentPost$_link : false,
- showIconLabels: get('core', 'showIconLabels')
+ showIconLabels: get('core', 'showIconLabels'),
+ postStatus: getEditedPostAttribute('status'),
+ postStatusHasChanged: !!getPostEdits()?.status
};
}, [forceIsDirty]);
+ const isPending = postStatus === 'pending';
const {
savePost
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
@@ -12683,7 +17061,16 @@ function PostSavedState({
if (!hasPublishAction && isPending) {
return null;
}
- if (isPublished || isScheduled) {
+
+ // We shouldn't render the button if the post has not one of the following statuses: pending, draft, auto-draft.
+ // The reason for this is that this button handles the `save as pending` and `save draft` actions.
+ // An exception for this is when the post has a custom status and there should be a way to save changes without
+ // having to publish. This should be handled better in the future when custom statuses have better support.
+ // @see https://github.com/WordPress/gutenberg/issues/3144.
+ const isIneligibleStatus = !['pending', 'draft', 'auto-draft'].includes(postStatus) && STATUS_OPTIONS.map(({
+ value
+ }) => value).includes(postStatus);
+ if (isPublished || isScheduled || isIneligibleStatus || postStatusHasChanged && ['pending', 'draft'].includes(postStatus)) {
return null;
}
@@ -12708,8 +17095,8 @@ function PostSavedState({
// Use common Button instance for all saved states so that focus is not
// lost.
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: isSaveable || isSaving ? classnames_default()({
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Button, {
+ className: isSaveable || isSaving ? dist_clsx({
'editor-post-save-draft': !isSavedState,
'editor-post-saved-state': isSavedState,
'is-saving': isSaving,
@@ -12729,10 +17116,11 @@ function PostSavedState({
size: "compact",
icon: isLargeViewport ? undefined : cloud_upload,
label: text || label,
- "aria-disabled": isDisabled
- }, isSavedState && (0,external_React_.createElement)(icon, {
- icon: isSaved ? library_check : library_cloud
- }), text);
+ "aria-disabled": isDisabled,
+ children: [isSavedState && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icon, {
+ icon: isSaved ? library_check : library_cloud
+ }), text]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-schedule/check.js
@@ -12745,6 +17133,15 @@ function PostSavedState({
* Internal dependencies
*/
+
+/**
+ * Wrapper component that renders its children only if post has a publish action.
+ *
+ * @param {Object} props Props.
+ * @param {Element} props.children Children to be rendered.
+ *
+ * @return {Component} - The component to be rendered or null if there is no publish action.
+ */
function PostScheduleCheck({
children
}) {
@@ -12759,7 +17156,6 @@ function PostScheduleCheck({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-schedule/panel.js
-
/**
* WordPress dependencies
*/
@@ -12767,6 +17163,7 @@ function PostScheduleCheck({
+
/**
* Internal dependencies
*/
@@ -12774,67 +17171,88 @@ function PostScheduleCheck({
+
+
+
+const panel_DESIGN_POST_TYPES = [TEMPLATE_POST_TYPE, TEMPLATE_PART_POST_TYPE, PATTERN_POST_TYPE, NAVIGATION_POST_TYPE];
+
+/**
+ * Renders the Post Schedule Panel component.
+ *
+ * @return {Component} The component to be rendered.
+ */
function PostSchedulePanel() {
const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
+ const postType = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getCurrentPostType(), []);
// Memoize popoverProps to avoid returning a new object every time.
const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
// Anchor the popover to the middle of the entire row so that it doesn't
// move around when the label changes.
anchor: popoverAnchor,
'aria-label': (0,external_wp_i18n_namespaceObject.__)('Change publish date'),
- placement: 'bottom-end'
+ placement: 'left-start',
+ offset: 36,
+ shift: true
}), [popoverAnchor]);
const label = usePostScheduleLabel();
const fullLabel = usePostScheduleLabel({
full: true
});
- return (0,external_React_.createElement)(PostScheduleCheck, null, (0,external_React_.createElement)(post_panel_row, {
- label: (0,external_wp_i18n_namespaceObject.__)('Publish'),
- ref: setPopoverAnchor
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Dropdown, {
- popoverProps: popoverProps,
- focusOnMount: true,
- className: "editor-post-schedule__panel-dropdown",
- contentClassName: "editor-post-schedule__dialog",
- renderToggle: ({
- onToggle,
- isOpen
- }) => (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- className: "editor-post-schedule__dialog-toggle",
- variant: "tertiary",
- onClick: onToggle,
- "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
- // translators: %s: Current post date.
- (0,external_wp_i18n_namespaceObject.__)('Change date: %s'), label),
- label: fullLabel,
- showTooltip: label !== fullLabel,
- "aria-expanded": isOpen
- }, label),
- renderContent: ({
- onClose
- }) => (0,external_React_.createElement)(PostSchedule, {
- onClose: onClose
+ if (panel_DESIGN_POST_TYPES.includes(postType)) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostScheduleCheck, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Publish'),
+ ref: setPopoverAnchor,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ popoverProps: popoverProps,
+ focusOnMount: true,
+ className: "editor-post-schedule__panel-dropdown",
+ contentClassName: "editor-post-schedule__dialog",
+ renderToggle: ({
+ onToggle,
+ isOpen
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "compact",
+ className: "editor-post-schedule__dialog-toggle",
+ variant: "tertiary",
+ tooltipPosition: "middle left",
+ onClick: onToggle,
+ "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Current post date.
+ (0,external_wp_i18n_namespaceObject.__)('Change date: %s'), label),
+ label: fullLabel,
+ showTooltip: label !== fullLabel,
+ "aria-expanded": isOpen,
+ children: label
+ }),
+ renderContent: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostSchedule, {
+ onClose: onClose
+ })
+ })
})
- })));
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-slug/check.js
-
/**
* Internal dependencies
*/
+
function PostSlugCheck({
children
}) {
- return (0,external_React_.createElement)(post_type_support_check, {
- supportKeys: "slug"
- }, children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_type_support_check, {
+ supportKeys: "slug",
+ children: children
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-slug/index.js
-
/**
* WordPress dependencies
*/
@@ -12844,81 +17262,60 @@ function PostSlugCheck({
-
/**
* Internal dependencies
*/
-class PostSlug extends external_wp_element_namespaceObject.Component {
- constructor({
- postSlug,
- postTitle,
- postID
- }) {
- super(...arguments);
- this.state = {
- editedSlug: (0,external_wp_url_namespaceObject.safeDecodeURIComponent)(postSlug) || (0,external_wp_url_namespaceObject.cleanForSlug)(postTitle) || postID
- };
- this.setSlug = this.setSlug.bind(this);
- }
- setSlug(event) {
- const {
- postSlug,
- onUpdateSlug
- } = this.props;
- const {
- value
- } = event.target;
- const editedSlug = (0,external_wp_url_namespaceObject.cleanForSlug)(value);
- if (editedSlug === postSlug) {
- return;
- }
- onUpdateSlug(editedSlug);
- }
- render() {
- const {
- editedSlug
- } = this.state;
- return (0,external_React_.createElement)(PostSlugCheck, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Slug'),
- autoComplete: "off",
- spellCheck: "false",
- value: editedSlug,
- onChange: slug => this.setState({
- editedSlug: slug
- }),
- onBlur: this.setSlug,
- className: "editor-post-slug"
- }));
- }
-}
-/* harmony default export */ const post_slug = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)(select => {
- const {
- getCurrentPost,
- getEditedPostAttribute
- } = select(store_store);
- const {
- id
- } = getCurrentPost();
- return {
- postSlug: getEditedPostAttribute('slug'),
- postTitle: getEditedPostAttribute('title'),
- postID: id
- };
-}), (0,external_wp_data_namespaceObject.withDispatch)(dispatch => {
+
+function PostSlugControl() {
+ const postSlug = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ return (0,external_wp_url_namespaceObject.safeDecodeURIComponent)(select(store_store).getEditedPostSlug());
+ }, []);
const {
editPost
- } = dispatch(store_store);
- return {
- onUpdateSlug(slug) {
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ const [forceEmptyField, setForceEmptyField] = (0,external_wp_element_namespaceObject.useState)(false);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Slug'),
+ autoComplete: "off",
+ spellCheck: "false",
+ value: forceEmptyField ? '' : postSlug,
+ onChange: newValue => {
editPost({
- slug
+ slug: newValue
});
- }
- };
-})])(PostSlug));
+ // When we delete the field the permalink gets
+ // reverted to the original value.
+ // The forceEmptyField logic allows the user to have
+ // the field temporarily empty while typing.
+ if (!newValue) {
+ if (!forceEmptyField) {
+ setForceEmptyField(true);
+ }
+ return;
+ }
+ if (forceEmptyField) {
+ setForceEmptyField(false);
+ }
+ },
+ onBlur: event => {
+ editPost({
+ slug: (0,external_wp_url_namespaceObject.cleanForSlug)(event.target.value)
+ });
+ if (forceEmptyField) {
+ setForceEmptyField(false);
+ }
+ },
+ className: "editor-post-slug"
+ });
+}
+function PostSlug() {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostSlugCheck, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostSlugControl, {})
+ });
+}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-sticky/check.js
/**
@@ -12951,7 +17348,6 @@ function PostStickyCheck({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-sticky/index.js
-
/**
* WordPress dependencies
*/
@@ -12964,6 +17360,8 @@ function PostStickyCheck({
*/
+
+
function PostSticky() {
const postSticky = (0,external_wp_data_namespaceObject.useSelect)(select => {
var _select$getEditedPost;
@@ -12972,18 +17370,24 @@ function PostSticky() {
const {
editPost
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- return (0,external_React_.createElement)(PostStickyCheck, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Stick to the top of the blog'),
- checked: postSticky,
- onChange: () => editPost({
- sticky: !postSticky
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostStickyCheck, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Sticky'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ className: "editor-post-sticky__toggle-control",
+ label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Sticky')
+ }),
+ checked: postSticky,
+ onChange: () => editPost({
+ sticky: !postSticky
+ })
+ })
})
- }));
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-switch-to-draft-button/index.js
-
/**
* WordPress dependencies
*/
@@ -12996,6 +17400,11 @@ function PostSticky() {
* Internal dependencies
*/
+
+// TODO: deprecate..
+
+
+
function PostSwitchToDraftButton() {
const [showConfirmDialog, setShowConfirmDialog] = (0,external_wp_element_namespaceObject.useState)(false);
const {
@@ -13020,10 +17429,13 @@ function PostSwitchToDraftButton() {
}, []);
const isDisabled = isSaving || !isPublished && !isScheduled;
let alertMessage;
+ let confirmButtonText;
if (isPublished) {
alertMessage = (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to unpublish this post?');
+ confirmButtonText = (0,external_wp_i18n_namespaceObject.__)('Unpublish');
} else if (isScheduled) {
alertMessage = (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to unschedule this post?');
+ confirmButtonText = (0,external_wp_i18n_namespaceObject.__)('Unschedule');
}
const handleConfirm = () => {
setShowConfirmDialog(false);
@@ -13032,29 +17444,33 @@ function PostSwitchToDraftButton() {
});
savePost();
};
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- className: "editor-post-switch-to-draft",
- onClick: () => {
- if (!isDisabled) {
- setShowConfirmDialog(true);
- }
- },
- "aria-disabled": isDisabled,
- variant: "secondary",
- style: {
- flexGrow: '1',
- justifyContent: 'center'
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Switch to draft')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
- isOpen: showConfirmDialog,
- onConfirm: handleConfirm,
- onCancel: () => setShowConfirmDialog(false)
- }, alertMessage));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ className: "editor-post-switch-to-draft",
+ onClick: () => {
+ if (!isDisabled) {
+ setShowConfirmDialog(true);
+ }
+ },
+ "aria-disabled": isDisabled,
+ variant: "secondary",
+ style: {
+ flexGrow: '1',
+ justifyContent: 'center'
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Switch to draft')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
+ isOpen: showConfirmDialog,
+ onConfirm: handleConfirm,
+ onCancel: () => setShowConfirmDialog(false),
+ confirmButtonText: confirmButtonText,
+ children: alertMessage
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-sync-status/index.js
-
/**
* WordPress dependencies
*/
@@ -13066,6 +17482,7 @@ function PostSwitchToDraftButton() {
*/
+
function PostSyncStatus() {
const {
syncStatus,
@@ -13086,15 +17503,16 @@ function PostSyncStatus() {
if (postType !== 'wp_block') {
return null;
}
- return (0,external_React_.createElement)(post_panel_row, {
- label: (0,external_wp_i18n_namespaceObject.__)('Sync status')
- }, (0,external_React_.createElement)("div", {
- className: "editor-post-sync-status__value"
- }, syncStatus === 'unsynced' ? (0,external_wp_i18n_namespaceObject._x)('Not synced', 'Text that indicates that the pattern is not synchronized') : (0,external_wp_i18n_namespaceObject._x)('Synced', 'Text that indicates that the pattern is synchronized')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Sync status'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-post-sync-status__value",
+ children: syncStatus === 'unsynced' ? (0,external_wp_i18n_namespaceObject._x)('Not synced', 'pattern (singular)') : (0,external_wp_i18n_namespaceObject._x)('Synced', 'pattern (singular)')
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-taxonomies/index.js
-
/**
* WordPress dependencies
*/
@@ -13108,6 +17526,7 @@ function PostSyncStatus() {
+
const post_taxonomies_identity = x => x;
function PostTaxonomies({
taxonomyWrapper = post_taxonomies_identity
@@ -13129,11 +17548,11 @@ function PostTaxonomies({
taxonomy.types.includes(postType) && taxonomy.visibility?.show_ui);
return visibleTaxonomies.map(taxonomy => {
const TaxonomyComponent = taxonomy.hierarchical ? hierarchical_term_selector : flat_term_selector;
- return (0,external_React_.createElement)(external_wp_element_namespaceObject.Fragment, {
- key: `taxonomy-${taxonomy.slug}`
- }, taxonomyWrapper((0,external_React_.createElement)(TaxonomyComponent, {
- slug: taxonomy.slug
- }), taxonomy));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.Fragment, {
+ children: taxonomyWrapper( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TaxonomyComponent, {
+ slug: taxonomy.slug
+ }), taxonomy)
+ }, `taxonomy-${taxonomy.slug}`);
});
}
/* harmony default export */ const post_taxonomies = (PostTaxonomies);
@@ -13166,7 +17585,6 @@ function PostTaxonomiesCheck({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-taxonomies/panel.js
-
/**
* WordPress dependencies
*/
@@ -13179,6 +17597,7 @@ function PostTaxonomiesCheck({
+
function TaxonomyPanel({
taxonomy,
children
@@ -13208,27 +17627,30 @@ function TaxonomyPanel({
if (!taxonomyMenuName) {
return null;
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.PanelBody, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
title: taxonomyMenuName,
opened: isOpened,
- onToggle: () => toggleEditorPanelOpened(panelName)
- }, children);
+ onToggle: () => toggleEditorPanelOpened(panelName),
+ children: children
+ });
}
function panel_PostTaxonomies() {
- return (0,external_React_.createElement)(PostTaxonomiesCheck, null, (0,external_React_.createElement)(post_taxonomies, {
- taxonomyWrapper: (content, taxonomy) => {
- return (0,external_React_.createElement)(TaxonomyPanel, {
- taxonomy: taxonomy
- }, content);
- }
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostTaxonomiesCheck, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_taxonomies, {
+ taxonomyWrapper: (content, taxonomy) => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TaxonomyPanel, {
+ taxonomy: taxonomy,
+ children: content
+ });
+ }
+ })
+ });
}
/* harmony default export */ const post_taxonomies_panel = (panel_PostTaxonomies);
// EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js
var lib = __webpack_require__(4132);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-text-editor/index.js
-
/**
* External dependencies
*/
@@ -13249,6 +17671,15 @@ var lib = __webpack_require__(4132);
* Internal dependencies
*/
+
+/**
+ * Displays the Post Text Editor along with content in Visual and Text mode.
+ *
+ * @return {JSX.Element|null} The rendered PostTextEditor component.
+ */
+
+
+
function PostTextEditor() {
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(PostTextEditor);
const {
@@ -13291,24 +17722,27 @@ function PostTextEditor() {
}
return content;
}, [content, blocks]);
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "label",
- htmlFor: `post-content-${instanceId}`
- }, (0,external_wp_i18n_namespaceObject.__)('Type text or HTML')), (0,external_React_.createElement)(lib/* default */.A, {
- autoComplete: "off",
- dir: "auto",
- value: value,
- onChange: event => {
- editEntityRecord('postType', type, id, {
- content: event.target.value,
- blocks: undefined,
- selection: undefined
- });
- },
- className: "editor-post-text-editor",
- id: `post-content-${instanceId}`,
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Start writing with text or HTML')
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ as: "label",
+ htmlFor: `post-content-${instanceId}`,
+ children: (0,external_wp_i18n_namespaceObject.__)('Type text or HTML')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(lib/* default */.A, {
+ autoComplete: "off",
+ dir: "auto",
+ value: value,
+ onChange: event => {
+ editEntityRecord('postType', type, id, {
+ content: event.target.value,
+ blocks: undefined,
+ selection: undefined
+ });
+ },
+ className: "editor-post-text-editor",
+ id: `post-content-${instanceId}`,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Start writing with text or HTML')
+ })]
+ });
}
;// CONCATENATED MODULE: external ["wp","dom"]
@@ -13328,6 +17762,14 @@ const REGEXP_NEWLINES = /[\r\n]+/g;
* Internal dependencies
*/
+
+/**
+ * Custom hook that manages the focus behavior of the post title input field.
+ *
+ * @param {Element} forwardedRef - The forwarded ref for the input field.
+ *
+ * @return {Object} - The ref object.
+ */
function usePostTitleFocus(forwardedRef) {
const ref = (0,external_wp_element_namespaceObject.useRef)();
const {
@@ -13384,6 +17826,12 @@ function usePostTitleFocus(forwardedRef) {
* Internal dependencies
*/
+
+/**
+ * Custom hook for managing the post title in the editor.
+ *
+ * @return {Object} An object containing the current title and a function to update the title.
+ */
function usePostTitle() {
const {
editPost
@@ -13410,12 +17858,10 @@ function usePostTitle() {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-title/index.js
-
/**
* External dependencies
*/
-
/**
* WordPress dependencies
*/
@@ -13444,9 +17890,6 @@ function PostTitle(_, forwardedRef) {
hasFixedToolbar
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
- getEditedPostAttribute
- } = select(store_store);
- const {
getSettings
} = select(external_wp_blockEditor_namespaceObject.store);
const {
@@ -13454,7 +17897,6 @@ function PostTitle(_, forwardedRef) {
hasFixedToolbar: _hasFixedToolbar
} = getSettings();
return {
- title: getEditedPostAttribute('title'),
placeholder: titlePlaceholder,
hasFixedToolbar: _hasFixedToolbar
};
@@ -13594,33 +18036,44 @@ function PostTitle(_, forwardedRef) {
// The wp-block className is important for editor styles.
// This same block is used in both the visual and the code editor.
- const className = classnames_default()(DEFAULT_CLASSNAMES, {
+ const className = dist_clsx(DEFAULT_CLASSNAMES, {
'is-selected': isSelected,
'has-fixed-toolbar': hasFixedToolbar
});
- return /* eslint-disable jsx-a11y/heading-has-content, jsx-a11y/no-noninteractive-element-to-interactive-role */(
- (0,external_React_.createElement)(post_type_support_check, {
- supportKeys: "title"
- }, (0,external_React_.createElement)("h1", {
- ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([richTextRef, focusRef]),
- contentEditable: true,
- className: className,
- "aria-label": decodedPlaceholder,
- role: "textbox",
- "aria-multiline": "true",
- onFocus: onSelect,
- onBlur: onUnselect,
- onKeyDown: onKeyDown,
- onKeyPress: onUnselect,
- onPaste: onPaste
- }))
+ return (
+ /*#__PURE__*/
+ /* eslint-disable jsx-a11y/heading-has-content, jsx-a11y/no-noninteractive-element-to-interactive-role */
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)(post_type_support_check, {
+ supportKeys: "title",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
+ ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([richTextRef, focusRef]),
+ contentEditable: true,
+ className: className,
+ "aria-label": decodedPlaceholder,
+ role: "textbox",
+ "aria-multiline": "true",
+ onFocus: onSelect,
+ onBlur: onUnselect,
+ onKeyDown: onKeyDown,
+ onKeyPress: onUnselect,
+ onPaste: onPaste
+ })
+ })
/* eslint-enable jsx-a11y/heading-has-content, jsx-a11y/no-noninteractive-element-to-interactive-role */
);
}
+
+/**
+ * Renders the `PostTitle` component.
+ *
+ * @param {Object} _ Unused parameter.
+ * @param {Element} forwardedRef Forwarded ref for the component.
+ *
+ * @return {Component} The rendered PostTitle component.
+ */
/* harmony default export */ const post_title = ((0,external_wp_element_namespaceObject.forwardRef)(PostTitle));
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-title/post-title-raw.js
-
/**
* External dependencies
*/
@@ -13642,6 +18095,16 @@ function PostTitle(_, forwardedRef) {
+
+/**
+ * Renders a raw post title input field.
+ *
+ * @param {Object} _ Unused parameter.
+ * @param {Element} forwardedRef Reference to the component's DOM node.
+ *
+ * @return {Component} The rendered component.
+ */
+
function PostTitleRaw(_, forwardedRef) {
const {
placeholder,
@@ -13679,13 +18142,13 @@ function PostTitleRaw(_, forwardedRef) {
// The wp-block className is important for editor styles.
// This same block is used in both the visual and the code editor.
- const className = classnames_default()(DEFAULT_CLASSNAMES, {
+ const className = dist_clsx(DEFAULT_CLASSNAMES, {
'is-selected': isSelected,
'has-fixed-toolbar': hasFixedToolbar,
'is-raw-text': true
});
const decodedPlaceholder = (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(placeholder) || (0,external_wp_i18n_namespaceObject.__)('Add title');
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.TextareaControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextareaControl, {
ref: focusRef,
value: title,
onChange: onChange,
@@ -13704,7 +18167,6 @@ function PostTitleRaw(_, forwardedRef) {
/* harmony default export */ const post_title_raw = ((0,external_wp_element_namespaceObject.forwardRef)(PostTitleRaw));
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-trash/index.js
-
/**
* WordPress dependencies
*/
@@ -13717,6 +18179,9 @@ function PostTitleRaw(_, forwardedRef) {
* Internal dependencies
*/
+
+
+
function PostTrash() {
const {
isNew,
@@ -13741,19 +18206,25 @@ function PostTrash() {
setShowConfirmDialog(false);
trashPost();
};
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- className: "editor-post-trash",
- isDestructive: true,
- variant: "secondary",
- isBusy: isDeleting,
- "aria-disabled": isDeleting,
- onClick: isDeleting ? undefined : () => setShowConfirmDialog(true)
- }, (0,external_wp_i18n_namespaceObject.__)('Move to trash')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
- isOpen: showConfirmDialog,
- onConfirm: handleConfirm,
- onCancel: () => setShowConfirmDialog(false)
- }, (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to move this post to the trash?')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ className: "editor-post-trash",
+ isDestructive: true,
+ variant: "secondary",
+ isBusy: isDeleting,
+ "aria-disabled": isDeleting,
+ onClick: isDeleting ? undefined : () => setShowConfirmDialog(true),
+ children: (0,external_wp_i18n_namespaceObject.__)('Move to trash')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
+ isOpen: showConfirmDialog,
+ onConfirm: handleConfirm,
+ onCancel: () => setShowConfirmDialog(false),
+ confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Move to trash'),
+ size: "medium",
+ children: (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to move this post to the trash?')
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-trash/check.js
@@ -13768,39 +18239,53 @@ function PostTrash() {
*/
function PostTrashCheck({
- isNew,
- postId,
- canUserDelete,
children
}) {
- if (isNew || !postId || !canUserDelete) {
+ const {
+ canTrashPost
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ isEditedPostNew,
+ getCurrentPostId,
+ getCurrentPostType
+ } = select(store_store);
+ const {
+ getPostType,
+ canUser
+ } = select(external_wp_coreData_namespaceObject.store);
+ const postType = getPostType(getCurrentPostType());
+ const postId = getCurrentPostId();
+ const isNew = isEditedPostNew();
+ const resource = postType?.rest_base || ''; // eslint-disable-line camelcase
+ const canUserDelete = postId && resource ? canUser('delete', resource, postId) : false;
+ return {
+ canTrashPost: (!isNew || postId) && canUserDelete
+ };
+ }, []);
+ if (!canTrashPost) {
return null;
}
return children;
}
-/* harmony default export */ const post_trash_check = ((0,external_wp_data_namespaceObject.withSelect)(select => {
- const {
- isEditedPostNew,
- getCurrentPostId,
- getCurrentPostType
- } = select(store_store);
- const {
- getPostType,
- canUser
- } = select(external_wp_coreData_namespaceObject.store);
- const postId = getCurrentPostId();
- const postType = getPostType(getCurrentPostType());
- const resource = postType?.rest_base || ''; // eslint-disable-line camelcase
- return {
- isNew: isEditedPostNew(),
- postId,
- canUserDelete: postId && resource ? canUser('delete', resource, postId) : false
- };
-})(PostTrashCheck));
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/copy-small.js
+/**
+ * WordPress dependencies
+ */
-;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-url/index.js
+const copySmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M5.625 5.5h9.75c.069 0 .125.056.125.125v9.75a.125.125 0 0 1-.125.125h-9.75a.125.125 0 0 1-.125-.125v-9.75c0-.069.056-.125.125-.125ZM4 5.625C4 4.728 4.728 4 5.625 4h9.75C16.273 4 17 4.728 17 5.625v9.75c0 .898-.727 1.625-1.625 1.625h-9.75A1.625 1.625 0 0 1 4 15.375v-9.75Zm14.5 11.656v-9H20v9C20 18.8 18.77 20 17.251 20H6.25v-1.5h11.001c.69 0 1.249-.528 1.249-1.219Z"
+ })
+});
+/* harmony default export */ const copy_small = (copySmall);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-url/index.js
/**
* WordPress dependencies
*/
@@ -13812,20 +18297,38 @@ function PostTrashCheck({
+
+
+
/**
* Internal dependencies
*/
+
+/**
+ * Renders the `PostURL` component.
+ *
+ * @example
+ * ```jsx
+ * <PostURL />
+ * ```
+ *
+ * @param {Function} onClose Callback function to be executed when the popover is closed.
+ *
+ * @return {Component} The rendered PostURL component.
+ */
+
+
function PostURL({
onClose
}) {
const {
isEditable,
postSlug,
- viewPostLabel,
postLink,
permalinkPrefix,
- permalinkSuffix
+ permalinkSuffix,
+ permalink
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
var _post$_links$wpActio;
const post = select(store_store).getCurrentPost();
@@ -13839,66 +18342,103 @@ function PostURL({
viewPostLabel: postType?.labels.view_item,
postLink: post.link,
permalinkPrefix: permalinkParts?.prefix,
- permalinkSuffix: permalinkParts?.suffix
+ permalinkSuffix: permalinkParts?.suffix,
+ permalink: (0,external_wp_url_namespaceObject.safeDecodeURIComponent)(select(store_store).getPermalink())
};
}, []);
const {
editPost
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ const {
+ createNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
const [forceEmptyField, setForceEmptyField] = (0,external_wp_element_namespaceObject.useState)(false);
- return (0,external_React_.createElement)("div", {
- className: "editor-post-url"
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
- title: (0,external_wp_i18n_namespaceObject.__)('URL'),
- onClose: onClose
- }), isEditable && (0,external_React_.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Permalink'),
- value: forceEmptyField ? '' : postSlug,
- autoComplete: "off",
- spellCheck: "false",
- help: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('The last part of the URL.'), ' ', (0,external_React_.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/page-post-settings-sidebar/#permalink')
- }, (0,external_wp_i18n_namespaceObject.__)('Learn more.'))),
- onChange: newValue => {
- editPost({
- slug: newValue
- });
- // When we delete the field the permalink gets
- // reverted to the original value.
- // The forceEmptyField logic allows the user to have
- // the field temporarily empty while typing.
- if (!newValue) {
- if (!forceEmptyField) {
- setForceEmptyField(true);
- }
- return;
- }
- if (forceEmptyField) {
- setForceEmptyField(false);
- }
- },
- onBlur: event => {
- editPost({
- slug: (0,external_wp_url_namespaceObject.cleanForSlug)(event.target.value)
- });
- if (forceEmptyField) {
- setForceEmptyField(false);
- }
- }
- }), isEditable && (0,external_React_.createElement)("h3", {
- className: "editor-post-url__link-label"
- }, viewPostLabel !== null && viewPostLabel !== void 0 ? viewPostLabel : (0,external_wp_i18n_namespaceObject.__)('View post')), (0,external_React_.createElement)("p", null, (0,external_React_.createElement)(external_wp_components_namespaceObject.ExternalLink, {
- className: "editor-post-url__link",
- href: postLink,
- target: "_blank"
- }, isEditable ? (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("span", {
- className: "editor-post-url__link-prefix"
- }, permalinkPrefix), (0,external_React_.createElement)("span", {
- className: "editor-post-url__link-slug"
- }, postSlug), (0,external_React_.createElement)("span", {
- className: "editor-post-url__link-suffix"
- }, permalinkSuffix)) : postLink)));
+ const copyButtonRef = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(permalink, () => {
+ createNotice('info', (0,external_wp_i18n_namespaceObject.__)('Copied URL to clipboard.'), {
+ isDismissible: true,
+ type: 'snackbar'
+ });
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-post-url",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Link'),
+ onClose: onClose
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 3,
+ children: [isEditable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ children: [(0,external_wp_i18n_namespaceObject.__)('Customize the last part of the URL. '), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/page-post-settings-sidebar/#permalink'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Learn more.')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ children: [isEditable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalInputControl, {
+ __next40pxDefaultSize: true,
+ prefix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalInputControlPrefixWrapper, {
+ children: "/"
+ }),
+ suffix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: copy_small,
+ ref: copyButtonRef,
+ label: (0,external_wp_i18n_namespaceObject.__)('Copy')
+ }),
+ label: (0,external_wp_i18n_namespaceObject.__)('Link'),
+ hideLabelFromVision: true,
+ value: forceEmptyField ? '' : postSlug,
+ autoComplete: "off",
+ spellCheck: "false",
+ type: "text",
+ className: "editor-post-url__input",
+ onChange: newValue => {
+ editPost({
+ slug: newValue
+ });
+ // When we delete the field the permalink gets
+ // reverted to the original value.
+ // The forceEmptyField logic allows the user to have
+ // the field temporarily empty while typing.
+ if (!newValue) {
+ if (!forceEmptyField) {
+ setForceEmptyField(true);
+ }
+ return;
+ }
+ if (forceEmptyField) {
+ setForceEmptyField(false);
+ }
+ },
+ onBlur: event => {
+ editPost({
+ slug: (0,external_wp_url_namespaceObject.cleanForSlug)(event.target.value)
+ });
+ if (forceEmptyField) {
+ setForceEmptyField(false);
+ }
+ },
+ help: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.ExternalLink, {
+ className: "editor-post-url__link",
+ href: postLink,
+ target: "_blank",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "editor-post-url__link-prefix",
+ children: permalinkPrefix
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "editor-post-url__link-slug",
+ children: postSlug
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "editor-post-url__link-suffix",
+ children: permalinkSuffix
+ })]
+ })
+ }), !isEditable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
+ className: "editor-post-url__link",
+ href: postLink,
+ target: "_blank",
+ children: postLink
+ })]
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-url/check.js
@@ -13912,6 +18452,15 @@ function PostURL({
* Internal dependencies
*/
+
+/**
+ * Check if the post URL is valid and visible.
+ *
+ * @param {Object} props The component props.
+ * @param {Element} props.children The child components.
+ *
+ * @return {Component|null} The child components if the post URL is valid and visible, otherwise null.
+ */
function PostURLCheck({
children
}) {
@@ -13948,16 +18497,27 @@ function PostURLCheck({
* Internal dependencies
*/
+
+/**
+ * Represents a label component for a post URL.
+ *
+ * @return {Component} The PostURLLabel component.
+ */
function PostURLLabel() {
return usePostURLLabel();
}
+
+/**
+ * Custom hook to get the label for the post URL.
+ *
+ * @return {string} The filtered and decoded post URL label.
+ */
function usePostURLLabel() {
const postLink = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getPermalink(), []);
return (0,external_wp_url_namespaceObject.filterURLForDisplay)((0,external_wp_url_namespaceObject.safeDecodeURIComponent)(postLink));
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-url/panel.js
-
/**
* WordPress dependencies
*/
@@ -13965,6 +18525,9 @@ function usePostURLLabel() {
+
+
+
/**
* Internal dependencies
*/
@@ -13972,52 +18535,91 @@ function usePostURLLabel() {
+
+/**
+ * Renders the `PostURLPanel` component.
+ *
+ * @return {JSX.Element} The rendered PostURLPanel component.
+ */
+
+
+
function PostURLPanel() {
// Use internal state instead of a ref to make sure that the component
// re-renders when the popover's anchor updates.
const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
// Memoize popoverProps to avoid returning a new object every time.
const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ // Anchor the popover to the middle of the entire row so that it doesn't
+ // move around when the label changes.
anchor: popoverAnchor,
- placement: 'bottom-end'
+ placement: 'left-start',
+ offset: 36,
+ shift: true
}), [popoverAnchor]);
- return (0,external_React_.createElement)(PostURLCheck, null, (0,external_React_.createElement)(post_panel_row, {
- label: (0,external_wp_i18n_namespaceObject.__)('URL'),
- ref: setPopoverAnchor
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Dropdown, {
- popoverProps: popoverProps,
- className: "editor-post-url__panel-dropdown",
- contentClassName: "editor-post-url__panel-dialog",
- focusOnMount: true,
- renderToggle: ({
- isOpen,
- onToggle
- }) => (0,external_React_.createElement)(PostURLToggle, {
- isOpen: isOpen,
- onClick: onToggle
- }),
- renderContent: ({
- onClose
- }) => (0,external_React_.createElement)(PostURL, {
- onClose: onClose
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostURLCheck, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Link'),
+ ref: setPopoverAnchor,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ popoverProps: popoverProps,
+ className: "editor-post-url__panel-dropdown",
+ contentClassName: "editor-post-url__panel-dialog",
+ focusOnMount: true,
+ renderToggle: ({
+ isOpen,
+ onToggle
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostURLToggle, {
+ isOpen: isOpen,
+ onClick: onToggle
+ }),
+ renderContent: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostURL, {
+ onClose: onClose
+ })
+ })
})
- })));
+ });
}
function PostURLToggle({
isOpen,
onClick
}) {
- const label = usePostURLLabel();
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
+ const {
+ slug,
+ isFrontPage,
+ postLink
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getCurrentPostId,
+ getCurrentPost
+ } = select(store_store);
+ const {
+ getEditedEntityRecord
+ } = select(external_wp_coreData_namespaceObject.store);
+ const siteSettings = getEditedEntityRecord('root', 'site');
+ const _id = getCurrentPostId();
+ return {
+ slug: select(store_store).getEditedPostSlug(),
+ isFrontPage: siteSettings?.page_on_front === _id,
+ postLink: getCurrentPost()?.link
+ };
+ }, []);
+ const decodedSlug = (0,external_wp_url_namespaceObject.safeDecodeURIComponent)(slug);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "compact",
className: "editor-post-url__panel-toggle",
variant: "tertiary",
"aria-expanded": isOpen
- // translators: %s: Current post URL.
+ // translators: %s: Current post link.
,
- "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Change URL: %s'), label),
- onClick: onClick
- }, label);
+ "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Change link: %s'), decodedSlug),
+ onClick: onClick,
+ children: isFrontPage ? postLink : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: ["/", decodedSlug]
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-visibility/check.js
@@ -14030,6 +18632,16 @@ function PostURLToggle({
* Internal dependencies
*/
+
+/**
+ * Determines if the current post can be edited (published)
+ * and passes this information to the provided render function.
+ *
+ * @param {Object} props The component props.
+ * @param {Function} props.render Function to render the component.
+ * Receives an object with a `canEdit` property.
+ * @return {JSX.Element} The rendered component.
+ */
function PostVisibilityCheck({
render
}) {
@@ -14043,23 +18655,23 @@ function PostVisibilityCheck({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/info.js
-
/**
* WordPress dependencies
*/
-const info = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const info = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"
+ })
+});
/* harmony default export */ const library_info = (info);
;// CONCATENATED MODULE: external ["wp","wordcount"]
const external_wp_wordcount_namespaceObject = window["wp"]["wordcount"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/word-count/index.js
-
/**
* WordPress dependencies
*/
@@ -14071,6 +18683,7 @@ const external_wp_wordcount_namespaceObject = window["wp"]["wordcount"];
* Internal dependencies
*/
+
function WordCount() {
const content = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getEditedPostAttribute('content'), []);
@@ -14080,13 +18693,13 @@ function WordCount() {
* Do not translate into your own language.
*/
const wordCountType = (0,external_wp_i18n_namespaceObject._x)('words', 'Word count type. Do not translate!');
- return (0,external_React_.createElement)("span", {
- className: "word-count"
- }, (0,external_wp_wordcount_namespaceObject.count)(content, wordCountType));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "word-count",
+ children: (0,external_wp_wordcount_namespaceObject.count)(content, wordCountType)
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/time-to-read/index.js
-
/**
* WordPress dependencies
*/
@@ -14107,6 +18720,7 @@ function WordCount() {
*
* @type {number} A rough estimate of the average reading rate across multiple languages.
*/
+
const AVERAGE_READING_RATE = 189;
function TimeToRead() {
const content = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getEditedPostAttribute('content'), []);
@@ -14119,14 +18733,15 @@ function TimeToRead() {
const wordCountType = (0,external_wp_i18n_namespaceObject._x)('words', 'Word count type. Do not translate!');
const minutesToRead = Math.round((0,external_wp_wordcount_namespaceObject.count)(content, wordCountType) / AVERAGE_READING_RATE);
const minutesToReadString = minutesToRead === 0 ? (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('<span>< 1</span> minute'), {
- span: (0,external_React_.createElement)("span", null)
+ span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {})
}) : (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s is the number of minutes the post will take to read. */
(0,external_wp_i18n_namespaceObject._n)('<span>%d</span> minute', '<span>%d</span> minutes', minutesToRead), minutesToRead), {
- span: (0,external_React_.createElement)("span", null)
+ span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {})
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "time-to-read",
+ children: minutesToReadString
});
- return (0,external_React_.createElement)("span", {
- className: "time-to-read"
- }, minutesToReadString);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/character-count/index.js
@@ -14140,13 +18755,18 @@ function TimeToRead() {
* Internal dependencies
*/
+
+/**
+ * Renders the character count of the post content.
+ *
+ * @return {number} The character count.
+ */
function CharacterCount() {
const content = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getEditedPostAttribute('content'), []);
return (0,external_wp_wordcount_namespaceObject.count)(content, 'characters_including_spaces');
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/table-of-contents/panel.js
-
/**
* WordPress dependencies
*/
@@ -14161,6 +18781,9 @@ function CharacterCount() {
+
+
+
function TableOfContentsPanel({
hasOutlineItemsDisabled,
onRequestClose
@@ -14180,52 +18803,69 @@ function TableOfContentsPanel({
};
}, []);
return (
+ /*#__PURE__*/
/*
* Disable reason: The `list` ARIA role is redundant but
* Safari+VoiceOver won't announce the list otherwise.
*/
/* eslint-disable jsx-a11y/no-redundant-roles */
- (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("div", {
- className: "table-of-contents__wrapper",
- role: "note",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Document Statistics'),
- tabIndex: "0"
- }, (0,external_React_.createElement)("ul", {
- role: "list",
- className: "table-of-contents__counts"
- }, (0,external_React_.createElement)("li", {
- className: "table-of-contents__count"
- }, (0,external_wp_i18n_namespaceObject.__)('Words'), (0,external_React_.createElement)(WordCount, null)), (0,external_React_.createElement)("li", {
- className: "table-of-contents__count"
- }, (0,external_wp_i18n_namespaceObject.__)('Characters'), (0,external_React_.createElement)("span", {
- className: "table-of-contents__number"
- }, (0,external_React_.createElement)(CharacterCount, null))), (0,external_React_.createElement)("li", {
- className: "table-of-contents__count"
- }, (0,external_wp_i18n_namespaceObject.__)('Time to read'), (0,external_React_.createElement)(TimeToRead, null)), (0,external_React_.createElement)("li", {
- className: "table-of-contents__count"
- }, (0,external_wp_i18n_namespaceObject.__)('Headings'), (0,external_React_.createElement)("span", {
- className: "table-of-contents__number"
- }, headingCount)), (0,external_React_.createElement)("li", {
- className: "table-of-contents__count"
- }, (0,external_wp_i18n_namespaceObject.__)('Paragraphs'), (0,external_React_.createElement)("span", {
- className: "table-of-contents__number"
- }, paragraphCount)), (0,external_React_.createElement)("li", {
- className: "table-of-contents__count"
- }, (0,external_wp_i18n_namespaceObject.__)('Blocks'), (0,external_React_.createElement)("span", {
- className: "table-of-contents__number"
- }, numberOfBlocks)))), headingCount > 0 && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("hr", null), (0,external_React_.createElement)("h2", {
- className: "table-of-contents__title"
- }, (0,external_wp_i18n_namespaceObject.__)('Document Outline')), (0,external_React_.createElement)(document_outline, {
- onSelect: onRequestClose,
- hasOutlineItemsDisabled: hasOutlineItemsDisabled
- })))
+ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "table-of-contents__wrapper",
+ role: "note",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Document Statistics'),
+ tabIndex: "0",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("ul", {
+ role: "list",
+ className: "table-of-contents__counts",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ className: "table-of-contents__count",
+ children: [(0,external_wp_i18n_namespaceObject.__)('Words'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WordCount, {})]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ className: "table-of-contents__count",
+ children: [(0,external_wp_i18n_namespaceObject.__)('Characters'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "table-of-contents__number",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CharacterCount, {})
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ className: "table-of-contents__count",
+ children: [(0,external_wp_i18n_namespaceObject.__)('Time to read'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TimeToRead, {})]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ className: "table-of-contents__count",
+ children: [(0,external_wp_i18n_namespaceObject.__)('Headings'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "table-of-contents__number",
+ children: headingCount
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ className: "table-of-contents__count",
+ children: [(0,external_wp_i18n_namespaceObject.__)('Paragraphs'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "table-of-contents__number",
+ children: paragraphCount
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ className: "table-of-contents__count",
+ children: [(0,external_wp_i18n_namespaceObject.__)('Blocks'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "table-of-contents__number",
+ children: numberOfBlocks
+ })]
+ })]
+ })
+ }), headingCount > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("hr", {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ className: "table-of-contents__title",
+ children: (0,external_wp_i18n_namespaceObject.__)('Document Outline')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DocumentOutline, {
+ onSelect: onRequestClose,
+ hasOutlineItemsDisabled: hasOutlineItemsDisabled
+ })]
+ })]
+ })
/* eslint-enable jsx-a11y/no-redundant-roles */
);
}
/* harmony default export */ const table_of_contents_panel = (TableOfContentsPanel);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/table-of-contents/index.js
-
/**
* WordPress dependencies
*/
@@ -14240,13 +18880,14 @@ function TableOfContentsPanel({
* Internal dependencies
*/
+
function TableOfContents({
hasOutlineItemsDisabled,
repositionDropdown,
...props
}, ref) {
const hasBlocks = (0,external_wp_data_namespaceObject.useSelect)(select => !!select(external_wp_blockEditor_namespaceObject.store).getBlockCount(), []);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Dropdown, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
popoverProps: {
placement: repositionDropdown ? 'right' : 'bottom'
},
@@ -14255,7 +18896,7 @@ function TableOfContents({
renderToggle: ({
isOpen,
onToggle
- }) => (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
...props,
ref: ref,
onClick: hasBlocks ? onToggle : undefined,
@@ -14269,7 +18910,7 @@ function TableOfContents({
}),
renderContent: ({
onClose
- }) => (0,external_React_.createElement)(table_of_contents_panel, {
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(table_of_contents_panel, {
onRequestClose: onClose,
hasOutlineItemsDisabled: hasOutlineItemsDisabled
})
@@ -14324,7 +18965,6 @@ function UnsavedChangesWarning() {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/provider/with-registry-provider.js
-
/**
* WordPress dependencies
*/
@@ -14337,34 +18977,43 @@ function UnsavedChangesWarning() {
* Internal dependencies
*/
-const withRegistryProvider = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => (0,external_wp_data_namespaceObject.withRegistry)(props => {
- const {
- useSubRegistry = true,
- registry,
- ...additionalProps
- } = props;
+
+function getSubRegistry(subRegistries, registry, useSubRegistry) {
if (!useSubRegistry) {
- return (0,external_React_.createElement)(WrappedComponent, {
- ...additionalProps
- });
+ return registry;
}
- const [subRegistry, setSubRegistry] = (0,external_wp_element_namespaceObject.useState)(null);
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- const newRegistry = (0,external_wp_data_namespaceObject.createRegistry)({
+ let subRegistry = subRegistries.get(registry);
+ if (!subRegistry) {
+ subRegistry = (0,external_wp_data_namespaceObject.createRegistry)({
'core/block-editor': external_wp_blockEditor_namespaceObject.storeConfig
}, registry);
- newRegistry.registerStore('core/editor', storeConfig);
- setSubRegistry(newRegistry);
- }, [registry]);
- if (!subRegistry) {
- return null;
+ // Todo: The interface store should also be created per instance.
+ subRegistry.registerStore('core/editor', storeConfig);
+ subRegistries.set(registry, subRegistry);
}
- return (0,external_React_.createElement)(external_wp_data_namespaceObject.RegistryProvider, {
- value: subRegistry
- }, (0,external_React_.createElement)(WrappedComponent, {
- ...additionalProps
- }));
-}), 'withRegistryProvider');
+ return subRegistry;
+}
+const withRegistryProvider = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => ({
+ useSubRegistry = true,
+ ...props
+}) => {
+ const registry = (0,external_wp_data_namespaceObject.useRegistry)();
+ const [subRegistries] = (0,external_wp_element_namespaceObject.useState)(() => new WeakMap());
+ const subRegistry = getSubRegistry(subRegistries, registry, useSubRegistry);
+ if (subRegistry === registry) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
+ registry: registry,
+ ...props
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_data_namespaceObject.RegistryProvider, {
+ value: subRegistry,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
+ registry: subRegistry,
+ ...props
+ })
+ });
+}, 'withRegistryProvider');
/* harmony default export */ const with_registry_provider = (withRegistryProvider);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/media-categories/index.js
@@ -14515,7 +19164,7 @@ const inserterMediaCategories = [{
per_page: 'page_size',
search: 'q'
};
- const url = new URL('https://api.openverse.engineering/v1/images/');
+ const url = new URL('https://api.openverse.org/v1/images/');
Object.entries(finalQuery).forEach(([key, value]) => {
const queryKey = mapFromInserterMediaRequest[key] || key;
url.searchParams.set(queryKey, value);
@@ -14545,8 +19194,6 @@ const inserterMediaCategories = [{
}];
/* harmony default export */ const media_categories = (inserterMediaCategories);
-;// CONCATENATED MODULE: external ["wp","mediaUtils"]
-const external_wp_mediaUtils_namespaceObject = window["wp"]["mediaUtils"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/utils/media-upload/index.js
/**
* WordPress dependencies
@@ -14608,6 +19255,179 @@ function mediaUpload({
});
}
+// EXTERNAL MODULE: ./node_modules/deepmerge/dist/cjs.js
+var cjs = __webpack_require__(66);
+var cjs_default = /*#__PURE__*/__webpack_require__.n(cjs);
+;// CONCATENATED MODULE: ./node_modules/is-plain-object/dist/is-plain-object.mjs
+/*!
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
+ *
+ * Copyright (c) 2014-2017, Jon Schlinkert.
+ * Released under the MIT License.
+ */
+
+function isObject(o) {
+ return Object.prototype.toString.call(o) === '[object Object]';
+}
+
+function isPlainObject(o) {
+ var ctor,prot;
+
+ if (isObject(o) === false) return false;
+
+ // If has modified constructor
+ ctor = o.constructor;
+ if (ctor === undefined) return true;
+
+ // If has modified prototype
+ prot = ctor.prototype;
+ if (isObject(prot) === false) return false;
+
+ // If constructor does not have an Object-specific method
+ if (prot.hasOwnProperty('isPrototypeOf') === false) {
+ return false;
+ }
+
+ // Most likely a plain Object
+ return true;
+}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/global-styles-provider/index.js
+/**
+ * External dependencies
+ */
+
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+const {
+ GlobalStylesContext: global_styles_provider_GlobalStylesContext,
+ cleanEmptyObject
+} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+function mergeBaseAndUserConfigs(base, user) {
+ return cjs_default()(base, user, {
+ // We only pass as arrays the presets,
+ // in which case we want the new array of values
+ // to override the old array (no merging).
+ isMergeableObject: isPlainObject
+ });
+}
+function useGlobalStylesUserConfig() {
+ const {
+ globalStylesId,
+ isReady,
+ settings,
+ styles,
+ _links
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getEditedEntityRecord,
+ hasFinishedResolution
+ } = select(external_wp_coreData_namespaceObject.store);
+ const _globalStylesId = select(external_wp_coreData_namespaceObject.store).__experimentalGetCurrentGlobalStylesId();
+ const record = _globalStylesId ? getEditedEntityRecord('root', 'globalStyles', _globalStylesId) : undefined;
+ let hasResolved = false;
+ if (hasFinishedResolution('__experimentalGetCurrentGlobalStylesId')) {
+ hasResolved = _globalStylesId ? hasFinishedResolution('getEditedEntityRecord', ['root', 'globalStyles', _globalStylesId]) : true;
+ }
+ return {
+ globalStylesId: _globalStylesId,
+ isReady: hasResolved,
+ settings: record?.settings,
+ styles: record?.styles,
+ _links: record?._links
+ };
+ }, []);
+ const {
+ getEditedEntityRecord
+ } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_coreData_namespaceObject.store);
+ const {
+ editEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const config = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return {
+ settings: settings !== null && settings !== void 0 ? settings : {},
+ styles: styles !== null && styles !== void 0 ? styles : {},
+ _links: _links !== null && _links !== void 0 ? _links : {}
+ };
+ }, [settings, styles, _links]);
+ const setConfig = (0,external_wp_element_namespaceObject.useCallback)(
+ /**
+ * Set the global styles config.
+ * @param {Function|Object} callbackOrObject If the callbackOrObject is a function, pass the current config to the callback so the consumer can merge values.
+ * Otherwise, overwrite the current config with the incoming object.
+ * @param {Object} options Options for editEntityRecord Core selector.
+ */
+ (callbackOrObject, options = {}) => {
+ var _record$styles, _record$settings, _record$_links;
+ const record = getEditedEntityRecord('root', 'globalStyles', globalStylesId);
+ const currentConfig = {
+ styles: (_record$styles = record?.styles) !== null && _record$styles !== void 0 ? _record$styles : {},
+ settings: (_record$settings = record?.settings) !== null && _record$settings !== void 0 ? _record$settings : {},
+ _links: (_record$_links = record?._links) !== null && _record$_links !== void 0 ? _record$_links : {}
+ };
+ const updatedConfig = typeof callbackOrObject === 'function' ? callbackOrObject(currentConfig) : callbackOrObject;
+ editEntityRecord('root', 'globalStyles', globalStylesId, {
+ styles: cleanEmptyObject(updatedConfig.styles) || {},
+ settings: cleanEmptyObject(updatedConfig.settings) || {},
+ _links: cleanEmptyObject(updatedConfig._links) || {}
+ }, options);
+ }, [globalStylesId, editEntityRecord, getEditedEntityRecord]);
+ return [isReady, config, setConfig];
+}
+function useGlobalStylesBaseConfig() {
+ const baseConfig = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ return select(external_wp_coreData_namespaceObject.store).__experimentalGetCurrentThemeBaseGlobalStyles();
+ }, []);
+ return [!!baseConfig, baseConfig];
+}
+function useGlobalStylesContext() {
+ const [isUserConfigReady, userConfig, setUserConfig] = useGlobalStylesUserConfig();
+ const [isBaseConfigReady, baseConfig] = useGlobalStylesBaseConfig();
+ const mergedConfig = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ if (!baseConfig || !userConfig) {
+ return {};
+ }
+ return mergeBaseAndUserConfigs(baseConfig, userConfig);
+ }, [userConfig, baseConfig]);
+ const context = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return {
+ isReady: isUserConfigReady && isBaseConfigReady,
+ user: userConfig,
+ base: baseConfig,
+ merged: mergedConfig,
+ setUserConfig
+ };
+ }, [mergedConfig, userConfig, baseConfig, setUserConfig, isUserConfigReady, isBaseConfigReady]);
+ return context;
+}
+function GlobalStylesProvider({
+ children
+}) {
+ const context = useGlobalStylesContext();
+ if (!context.isReady) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(global_styles_provider_GlobalStylesContext.Provider, {
+ value: context,
+ children: children
+ });
+}
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/provider/use-block-editor-settings.js
/**
* WordPress dependencies
@@ -14628,20 +19448,34 @@ function mediaUpload({
+
const EMPTY_BLOCKS_LIST = [];
-const BLOCK_EDITOR_SETTINGS = ['__experimentalBlockDirectory', '__experimentalDiscussionSettings', '__experimentalFeatures', '__experimentalGlobalStylesBaseStyles', '__experimentalPreferredStyleVariations', '__unstableGalleryWithImageBlocks', 'alignWide', 'blockInspectorTabs', 'allowedMimeTypes', 'bodyPlaceholder', 'canLockBlocks', 'capabilities', 'clearBlockSelection', 'codeEditingEnabled', 'colors', 'disableCustomColors', 'disableCustomFontSizes', 'disableCustomSpacingSizes', 'disableCustomGradients', 'disableLayoutStyles', 'enableCustomLineHeight', 'enableCustomSpacing', 'enableCustomUnits', 'enableOpenverseMediaCategory', 'fontSizes', 'gradients', 'generateAnchors', 'onNavigateToEntityRecord', 'hasInlineToolbar', 'imageDefaultSize', 'imageDimensions', 'imageEditing', 'imageSizes', 'isRTL', 'locale', 'maxWidth', 'onUpdateDefaultBlockStyles', 'postContentAttributes', 'postsPerPage', 'readOnly', 'styles', 'titlePlaceholder', 'supportsLayout', 'widgetTypesToHideFromLegacyWidgetBlock', '__unstableHasCustomAppender', '__unstableIsPreviewMode', '__unstableResolvedAssets', '__unstableIsBlockBasedTheme', '__experimentalArchiveTitleTypeLabel', '__experimentalArchiveTitleNameLabel'];
+const DEFAULT_STYLES = {};
+function __experimentalReusableBlocksSelect(select) {
+ var _select$getEntityReco;
+ return (_select$getEntityReco = select(external_wp_coreData_namespaceObject.store).getEntityRecords('postType', 'wp_block', {
+ per_page: -1
+ })) !== null && _select$getEntityReco !== void 0 ? _select$getEntityReco : EMPTY_BLOCKS_LIST;
+}
+const BLOCK_EDITOR_SETTINGS = ['__experimentalBlockDirectory', '__experimentalDiscussionSettings', '__experimentalFeatures', '__experimentalGlobalStylesBaseStyles', '__unstableGalleryWithImageBlocks', 'alignWide', 'blockInspectorTabs', 'allowedMimeTypes', 'bodyPlaceholder', 'canLockBlocks', 'capabilities', 'clearBlockSelection', 'codeEditingEnabled', 'colors', 'disableCustomColors', 'disableCustomFontSizes', 'disableCustomSpacingSizes', 'disableCustomGradients', 'disableLayoutStyles', 'enableCustomLineHeight', 'enableCustomSpacing', 'enableCustomUnits', 'enableOpenverseMediaCategory', 'fontSizes', 'gradients', 'generateAnchors', 'onNavigateToEntityRecord', 'imageDefaultSize', 'imageDimensions', 'imageEditing', 'imageSizes', 'isRTL', 'locale', 'maxWidth', 'postContentAttributes', 'postsPerPage', 'readOnly', 'sectionRootClientId', 'styles', 'titlePlaceholder', 'supportsLayout', 'widgetTypesToHideFromLegacyWidgetBlock', '__unstableHasCustomAppender', '__unstableIsPreviewMode', '__unstableResolvedAssets', '__unstableIsBlockBasedTheme', '__experimentalArchiveTitleTypeLabel', '__experimentalArchiveTitleNameLabel'];
+const {
+ globalStylesDataKey,
+ selectBlockPatternsKey,
+ reusableBlocksSelectKey
+} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
/**
* React hook used to compute the block editor settings to use for the post editor.
*
- * @param {Object} settings EditorProvider settings prop.
- * @param {string} postType Editor root level post type.
- * @param {string} postId Editor root level post ID.
+ * @param {Object} settings EditorProvider settings prop.
+ * @param {string} postType Editor root level post type.
+ * @param {string} postId Editor root level post ID.
+ * @param {string} renderingMode Editor rendering mode.
*
* @return {Object} Block Editor Settings.
*/
-function useBlockEditorSettings(settings, postType, postId) {
- var _settings$__experimen, _settings$__experimen2;
+function useBlockEditorSettings(settings, postType, postId, renderingMode) {
+ var _mergedGlobalStyles$s, _settings$__experimen, _settings$__experimen2;
const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
const {
allowRightClickOverrides,
@@ -14650,7 +19484,6 @@ function useBlockEditorSettings(settings, postType, postId) {
hasFixedToolbar,
isDistractionFree,
keepCaretInsideBlock,
- reusableBlocks,
hasUploadPermissions,
hiddenBlockTypes,
canUseUnfilteredHTML,
@@ -14658,16 +19491,15 @@ function useBlockEditorSettings(settings, postType, postId) {
pageOnFront,
pageForPosts,
userPatternCategories,
- restBlockPatternCategories
+ restBlockPatternCategories,
+ sectionRootClientId
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
var _canUser;
- const isWeb = external_wp_element_namespaceObject.Platform.OS === 'web';
const {
canUser,
getRawEntityRecord,
getEntityRecord,
getUserPatternCategories,
- getEntityRecords,
getBlockPatternCategories
} = select(external_wp_coreData_namespaceObject.store);
const {
@@ -14676,7 +19508,19 @@ function useBlockEditorSettings(settings, postType, postId) {
const {
getBlockTypes
} = select(external_wp_blocks_namespaceObject.store);
+ const {
+ getBlocksByName,
+ getBlockAttributes
+ } = select(external_wp_blockEditor_namespaceObject.store);
const siteSettings = canUser('read', 'settings') ? getEntityRecord('root', 'site') : undefined;
+ function getSectionRootBlock() {
+ var _getBlocksByName$find;
+ if (renderingMode === 'template-locked') {
+ var _getBlocksByName$;
+ return (_getBlocksByName$ = getBlocksByName('core/post-content')?.[0]) !== null && _getBlocksByName$ !== void 0 ? _getBlocksByName$ : '';
+ }
+ return (_getBlocksByName$find = getBlocksByName('core/group').find(clientId => getBlockAttributes(clientId)?.tagName === 'main')) !== null && _getBlocksByName$find !== void 0 ? _getBlocksByName$find : '';
+ }
return {
allowRightClickOverrides: get('core', 'allowRightClickOverrides'),
blockTypes: getBlockTypes(),
@@ -14686,18 +19530,19 @@ function useBlockEditorSettings(settings, postType, postId) {
hiddenBlockTypes: get('core', 'hiddenBlockTypes'),
isDistractionFree: get('core', 'distractionFree'),
keepCaretInsideBlock: get('core', 'keepCaretInsideBlock'),
- reusableBlocks: isWeb ? getEntityRecords('postType', 'wp_block', {
- per_page: -1
- }) : EMPTY_BLOCKS_LIST,
- // Reusable blocks are fetched in the native version of this hook.
hasUploadPermissions: (_canUser = canUser('create', 'media')) !== null && _canUser !== void 0 ? _canUser : true,
userCanCreatePages: canUser('create', 'pages'),
pageOnFront: siteSettings?.page_on_front,
pageForPosts: siteSettings?.page_for_posts,
userPatternCategories: getUserPatternCategories(),
- restBlockPatternCategories: getBlockPatternCategories()
+ restBlockPatternCategories: getBlockPatternCategories(),
+ sectionRootClientId: getSectionRootBlock()
};
- }, [postType, postId, isLargeViewport]);
+ }, [postType, postId, isLargeViewport, renderingMode]);
+ const {
+ merged: mergedGlobalStyles
+ } = useGlobalStylesContext();
+ const globalStylesData = (_mergedGlobalStyles$s = mergedGlobalStyles.styles) !== null && _mergedGlobalStyles$s !== void 0 ? _mergedGlobalStyles$s : DEFAULT_STYLES;
const settingsBlockPatterns = (_settings$__experimen = settings.__experimentalAdditionalBlockPatterns) !== null && _settings$__experimen !== void 0 ? _settings$__experimen :
// WP 6.0
settings.__experimentalBlockPatterns; // WP 5.9
@@ -14748,41 +19593,55 @@ function useBlockEditorSettings(settings, postType, postId) {
return settings.allowedBlockTypes;
}, [settings.allowedBlockTypes, hiddenBlockTypes, blockTypes]);
const forceDisableFocusMode = settings.focusMode === false;
- return (0,external_wp_element_namespaceObject.useMemo)(() => ({
- ...Object.fromEntries(Object.entries(settings).filter(([key]) => BLOCK_EDITOR_SETTINGS.includes(key))),
- allowedBlockTypes,
- allowRightClickOverrides,
- focusMode: focusMode && !forceDisableFocusMode,
- hasFixedToolbar,
- isDistractionFree,
- keepCaretInsideBlock,
- mediaUpload: hasUploadPermissions ? mediaUpload : undefined,
- __experimentalBlockPatterns: blockPatterns,
- [unlock(external_wp_blockEditor_namespaceObject.privateApis).selectBlockPatternsKey]: select => unlock(select(external_wp_coreData_namespaceObject.store)).getBlockPatternsForPostType(postType),
- __experimentalReusableBlocks: reusableBlocks,
- __experimentalBlockPatternCategories: blockPatternCategories,
- __experimentalUserPatternCategories: userPatternCategories,
- __experimentalFetchLinkSuggestions: (search, searchOptions) => (0,external_wp_coreData_namespaceObject.__experimentalFetchLinkSuggestions)(search, searchOptions, settings),
- inserterMediaCategories: media_categories,
- __experimentalFetchRichUrlData: external_wp_coreData_namespaceObject.__experimentalFetchUrlData,
- // Todo: This only checks the top level post, not the post within a template or any other entity that can be edited.
- // This might be better as a generic "canUser" selector.
- __experimentalCanUserUseUnfilteredHTML: canUseUnfilteredHTML,
- //Todo: this is only needed for native and should probably be removed.
- __experimentalUndo: undo,
- // Check whether we want all site editor frames to have outlines
- // including the navigation / pattern / parts editors.
- outlineMode: postType === 'wp_template',
- // Check these two properties: they were not present in the site editor.
- __experimentalCreatePageEntity: createPageEntity,
- __experimentalUserCanCreatePages: userCanCreatePages,
- pageOnFront,
- pageForPosts,
- __experimentalPreferPatternsOnRoot: postType === 'wp_template',
- templateLock: postType === 'wp_navigation' ? 'insert' : settings.templateLock,
- template: postType === 'wp_navigation' ? [['core/navigation', {}, []]] : settings.template,
- __experimentalSetIsInserterOpened: setIsInserterOpened
- }), [allowedBlockTypes, allowRightClickOverrides, focusMode, forceDisableFocusMode, hasFixedToolbar, isDistractionFree, keepCaretInsideBlock, settings, hasUploadPermissions, reusableBlocks, userPatternCategories, blockPatterns, blockPatternCategories, canUseUnfilteredHTML, undo, createPageEntity, userCanCreatePages, pageOnFront, pageForPosts, postType, setIsInserterOpened]);
+ return (0,external_wp_element_namespaceObject.useMemo)(() => {
+ const blockEditorSettings = {
+ ...Object.fromEntries(Object.entries(settings).filter(([key]) => BLOCK_EDITOR_SETTINGS.includes(key))),
+ [globalStylesDataKey]: globalStylesData,
+ allowedBlockTypes,
+ allowRightClickOverrides,
+ focusMode: focusMode && !forceDisableFocusMode,
+ hasFixedToolbar,
+ isDistractionFree,
+ keepCaretInsideBlock,
+ mediaUpload: hasUploadPermissions ? mediaUpload : undefined,
+ __experimentalBlockPatterns: blockPatterns,
+ [selectBlockPatternsKey]: select => {
+ const {
+ hasFinishedResolution,
+ getBlockPatternsForPostType
+ } = unlock(select(external_wp_coreData_namespaceObject.store));
+ const patterns = getBlockPatternsForPostType(postType);
+ return hasFinishedResolution('getBlockPatterns') ? patterns : undefined;
+ },
+ [reusableBlocksSelectKey]: __experimentalReusableBlocksSelect,
+ __experimentalBlockPatternCategories: blockPatternCategories,
+ __experimentalUserPatternCategories: userPatternCategories,
+ __experimentalFetchLinkSuggestions: (search, searchOptions) => (0,external_wp_coreData_namespaceObject.__experimentalFetchLinkSuggestions)(search, searchOptions, settings),
+ inserterMediaCategories: media_categories,
+ __experimentalFetchRichUrlData: external_wp_coreData_namespaceObject.__experimentalFetchUrlData,
+ // Todo: This only checks the top level post, not the post within a template or any other entity that can be edited.
+ // This might be better as a generic "canUser" selector.
+ __experimentalCanUserUseUnfilteredHTML: canUseUnfilteredHTML,
+ //Todo: this is only needed for native and should probably be removed.
+ __experimentalUndo: undo,
+ // Check whether we want all site editor frames to have outlines
+ // including the navigation / pattern / parts editors.
+ outlineMode: postType === 'wp_template',
+ // Check these two properties: they were not present in the site editor.
+ __experimentalCreatePageEntity: createPageEntity,
+ __experimentalUserCanCreatePages: userCanCreatePages,
+ pageOnFront,
+ pageForPosts,
+ __experimentalPreferPatternsOnRoot: postType === 'wp_template',
+ templateLock: postType === 'wp_navigation' ? 'insert' : settings.templateLock,
+ template: postType === 'wp_navigation' ? [['core/navigation', {}, []]] : settings.template,
+ __experimentalSetIsInserterOpened: setIsInserterOpened
+ };
+ lock(blockEditorSettings, {
+ sectionRootClientId
+ });
+ return blockEditorSettings;
+ }, [allowedBlockTypes, allowRightClickOverrides, focusMode, forceDisableFocusMode, hasFixedToolbar, isDistractionFree, keepCaretInsideBlock, settings, hasUploadPermissions, userPatternCategories, blockPatterns, blockPatternCategories, canUseUnfilteredHTML, undo, createPageEntity, userCanCreatePages, pageOnFront, pageForPosts, postType, setIsInserterOpened, sectionRootClientId, globalStylesData]);
}
/* harmony default export */ const use_block_editor_settings = (useBlockEditorSettings);
@@ -14793,44 +19652,69 @@ function useBlockEditorSettings(settings, postType, postId) {
-const PAGE_CONTENT_BLOCKS = ['core/post-title', 'core/post-featured-image', 'core/post-content'];
-function useDisableNonPageContentBlocks() {
- const contentIds = (0,external_wp_data_namespaceObject.useSelect)(select => {
+
+const DEFAULT_CONTENT_ONLY_BLOCKS = ['core/post-title', 'core/post-featured-image', 'core/post-content', 'core/template-part'];
+
+/**
+ * Component that when rendered, makes it so that the site editor allows only
+ * page content to be edited.
+ */
+function DisableNonPageContentBlocks() {
+ const contentOnlyBlocks = (0,external_wp_hooks_namespaceObject.applyFilters)('editor.postContentBlockTypes', DEFAULT_CONTENT_ONLY_BLOCKS);
+
+ // Note that there are two separate subscription because the result for each
+ // returns a new array.
+ const contentOnlyIds = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getBlocksByName,
getBlockParents,
getBlockName
} = select(external_wp_blockEditor_namespaceObject.store);
- return getBlocksByName(PAGE_CONTENT_BLOCKS).filter(clientId => getBlockParents(clientId).every(parentClientId => {
+ return getBlocksByName(contentOnlyBlocks).filter(clientId => getBlockParents(clientId).every(parentClientId => {
const parentBlockName = getBlockName(parentClientId);
- return parentBlockName !== 'core/query' && !PAGE_CONTENT_BLOCKS.includes(parentBlockName);
+ return (
+ // Ignore descendents of the query block.
+ parentBlockName !== 'core/query' &&
+ // Enable only the top-most block.
+ !contentOnlyBlocks.includes(parentBlockName)
+ );
}));
}, []);
- const {
- setBlockEditingMode,
- unsetBlockEditingMode
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
+ const disabledIds = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getBlocksByName,
+ getBlockOrder
+ } = select(external_wp_blockEditor_namespaceObject.store);
+ return getBlocksByName(['core/template-part']).flatMap(clientId => getBlockOrder(clientId));
+ }, []);
+ const registry = (0,external_wp_data_namespaceObject.useRegistry)();
(0,external_wp_element_namespaceObject.useEffect)(() => {
- setBlockEditingMode('', 'disabled'); // Disable editing at the root level.
-
- for (const contentId of contentIds) {
- setBlockEditingMode(contentId, 'contentOnly'); // Re-enable each content block.
- }
- return () => {
- unsetBlockEditingMode('');
- for (const contentId of contentIds) {
- unsetBlockEditingMode(contentId);
+ const {
+ setBlockEditingMode,
+ unsetBlockEditingMode
+ } = registry.dispatch(external_wp_blockEditor_namespaceObject.store);
+ registry.batch(() => {
+ setBlockEditingMode('', 'disabled');
+ for (const clientId of contentOnlyIds) {
+ setBlockEditingMode(clientId, 'contentOnly');
+ }
+ for (const clientId of disabledIds) {
+ setBlockEditingMode(clientId, 'disabled');
}
+ });
+ return () => {
+ registry.batch(() => {
+ unsetBlockEditingMode('');
+ for (const clientId of contentOnlyIds) {
+ unsetBlockEditingMode(clientId);
+ }
+ for (const clientId of disabledIds) {
+ unsetBlockEditingMode(clientId);
+ }
+ });
};
- }, [contentIds, setBlockEditingMode, unsetBlockEditingMode]);
-}
-
-/**
- * Component that when rendered, makes it so that the site editor allows only
- * page content to be edited.
- */
-function DisableNonPageContentBlocks() {
- useDisableNonPageContentBlocks();
+ }, [contentOnlyIds, disabledIds, registry]);
+ return null;
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/provider/navigation-block-editing-mode.js
@@ -14868,8 +19752,313 @@ function NavigationBlockEditingMode() {
}, [blockClientId, unsetBlockEditingMode, setBlockEditingMode]);
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/provider/index.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/provider/use-hide-blocks-from-inserter.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+// These post types are "structural" block lists.
+// We should be allowed to use
+// the post content and template parts blocks within them.
+const POST_TYPES_ALLOWING_POST_CONTENT_TEMPLATE_PART = ['wp_block', 'wp_template', 'wp_template_part'];
+
+/**
+ * In some specific contexts,
+ * the template part and post content blocks need to be hidden.
+ *
+ * @param {string} postType Post Type
+ * @param {string} mode Rendering mode
+ */
+function useHideBlocksFromInserter(postType, mode) {
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ /*
+ * Prevent adding template part in the editor.
+ */
+ (0,external_wp_hooks_namespaceObject.addFilter)('blockEditor.__unstableCanInsertBlockType', 'removeTemplatePartsFromInserter', (canInsert, blockType) => {
+ if (!POST_TYPES_ALLOWING_POST_CONTENT_TEMPLATE_PART.includes(postType) && blockType.name === 'core/template-part' && mode === 'post-only') {
+ return false;
+ }
+ return canInsert;
+ });
+
+ /*
+ * Prevent adding post content block (except in query block) in the editor.
+ */
+ (0,external_wp_hooks_namespaceObject.addFilter)('blockEditor.__unstableCanInsertBlockType', 'removePostContentFromInserter', (canInsert, blockType, rootClientId, {
+ getBlockParentsByBlockName
+ }) => {
+ if (!POST_TYPES_ALLOWING_POST_CONTENT_TEMPLATE_PART.includes(postType) && blockType.name === 'core/post-content') {
+ return getBlockParentsByBlockName(rootClientId, 'core/query').length > 0;
+ }
+ return canInsert;
+ });
+ return () => {
+ (0,external_wp_hooks_namespaceObject.removeFilter)('blockEditor.__unstableCanInsertBlockType', 'removeTemplatePartsFromInserter');
+ (0,external_wp_hooks_namespaceObject.removeFilter)('blockEditor.__unstableCanInsertBlockType', 'removePostContentFromInserter');
+ };
+ }, [postType, mode]);
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+const keyboard = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m16 15.5h-8v-1.5h8zm-7.5-2.5h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm-9-3h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2z"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m18.5 6.5h-13a.5.5 0 0 0 -.5.5v9.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9.5a.5.5 0 0 0 -.5-.5zm-13-1.5h13a2 2 0 0 1 2 2v9.5a2 2 0 0 1 -2 2h-13a2 2 0 0 1 -2-2v-9.5a2 2 0 0 1 2-2z"
+ })]
+});
+/* harmony default export */ const library_keyboard = (keyboard);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/list-view.js
+/**
+ * WordPress dependencies
+ */
+
+
+const listView = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"
+ })
+});
+/* harmony default export */ const list_view = (listView);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/code.js
+/**
+ * WordPress dependencies
+ */
+
+
+const code = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"
+ })
+});
+/* harmony default export */ const library_code = (code);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/drawer-left.js
+/**
+ * WordPress dependencies
+ */
+
+
+const drawerLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ width: "24",
+ height: "24",
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"
+ })
+});
+/* harmony default export */ const drawer_left = (drawerLeft);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/drawer-right.js
+/**
+ * WordPress dependencies
+ */
+
+
+const drawerRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ width: "24",
+ height: "24",
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"
+ })
+});
+/* harmony default export */ const drawer_right = (drawerRight);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js
+/**
+ * WordPress dependencies
+ */
+
+
+const blockDefault = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const block_default = (blockDefault);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-list-bullets.js
+/**
+ * WordPress dependencies
+ */
+
+
+const formatListBullets = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const format_list_bullets = (formatListBullets);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
+/**
+ * WordPress dependencies
+ */
+
+
+const external = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"
+ })
+});
+/* harmony default export */ const library_external = (external);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js
+/**
+ * WordPress dependencies
+ */
+
+
+const pencil = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"
+ })
+});
+/* harmony default export */ const library_pencil = (pencil);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js
+/**
+ * Internal dependencies
+ */
+
+
+/* harmony default export */ const edit = (library_pencil);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/pattern-rename-modal/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+const {
+ RenamePatternModal
+} = unlock(external_wp_patterns_namespaceObject.privateApis);
+const modalName = 'editor/pattern-rename';
+function PatternRenameModal() {
+ const {
+ record,
+ postType
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getCurrentPostType,
+ getCurrentPostId
+ } = select(store_store);
+ const {
+ getEditedEntityRecord
+ } = select(external_wp_coreData_namespaceObject.store);
+ const _postType = getCurrentPostType();
+ return {
+ record: getEditedEntityRecord('postType', _postType, getCurrentPostId()),
+ postType: _postType
+ };
+ }, []);
+ const {
+ closeModal
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const isActive = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).isModalActive(modalName));
+ if (!isActive || postType !== PATTERN_POST_TYPE) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RenamePatternModal, {
+ onClose: closeModal,
+ pattern: record
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/pattern-duplicate-modal/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+const {
+ DuplicatePatternModal
+} = unlock(external_wp_patterns_namespaceObject.privateApis);
+const pattern_duplicate_modal_modalName = 'editor/pattern-duplicate';
+function PatternDuplicateModal() {
+ const {
+ record,
+ postType
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getCurrentPostType,
+ getCurrentPostId
+ } = select(store_store);
+ const {
+ getEditedEntityRecord
+ } = select(external_wp_coreData_namespaceObject.store);
+ const _postType = getCurrentPostType();
+ return {
+ record: getEditedEntityRecord('postType', _postType, getCurrentPostId()),
+ postType: _postType
+ };
+ }, []);
+ const {
+ closeModal
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const isActive = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).isModalActive(pattern_duplicate_modal_modalName));
+ if (!isActive || postType !== PATTERN_POST_TYPE) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DuplicatePatternModal, {
+ onClose: closeModal,
+ onSuccess: () => closeModal(),
+ pattern: record
+ });
+}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/commands/index.js
/**
* WordPress dependencies
*/
@@ -14882,6 +20071,7 @@ function NavigationBlockEditingMode() {
+
/**
* Internal dependencies
*/
@@ -14889,6 +20079,1184 @@ function NavigationBlockEditingMode() {
+function useEditorCommandLoader() {
+ const {
+ editorMode,
+ isListViewOpen,
+ showBlockBreadcrumbs,
+ isDistractionFree,
+ isTopToolbar,
+ isFocusMode,
+ isPreviewMode,
+ isViewable,
+ isCodeEditingEnabled,
+ isRichEditingEnabled,
+ isPublishSidebarEnabled
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ var _get, _getPostType$viewable;
+ const {
+ get
+ } = select(external_wp_preferences_namespaceObject.store);
+ const {
+ isListViewOpened,
+ getCurrentPostType,
+ getEditorSettings
+ } = select(store_store);
+ const {
+ getSettings
+ } = select(external_wp_blockEditor_namespaceObject.store);
+ const {
+ getPostType
+ } = select(external_wp_coreData_namespaceObject.store);
+ return {
+ editorMode: (_get = get('core', 'editorMode')) !== null && _get !== void 0 ? _get : 'visual',
+ isListViewOpen: isListViewOpened(),
+ showBlockBreadcrumbs: get('core', 'showBlockBreadcrumbs'),
+ isDistractionFree: get('core', 'distractionFree'),
+ isFocusMode: get('core', 'focusMode'),
+ isTopToolbar: get('core', 'fixedToolbar'),
+ isPreviewMode: getSettings().__unstableIsPreviewMode,
+ isViewable: (_getPostType$viewable = getPostType(getCurrentPostType())?.viewable) !== null && _getPostType$viewable !== void 0 ? _getPostType$viewable : false,
+ isCodeEditingEnabled: getEditorSettings().codeEditingEnabled,
+ isRichEditingEnabled: getEditorSettings().richEditingEnabled,
+ isPublishSidebarEnabled: select(store_store).isPublishSidebarEnabled()
+ };
+ }, []);
+ const {
+ getActiveComplementaryArea
+ } = (0,external_wp_data_namespaceObject.useSelect)(store);
+ const {
+ toggle
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
+ const {
+ createInfoNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ const {
+ __unstableSaveForPreview,
+ setIsListViewOpened,
+ switchEditorMode,
+ toggleDistractionFree
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ const {
+ openModal,
+ enableComplementaryArea,
+ disableComplementaryArea
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const {
+ getCurrentPostId
+ } = (0,external_wp_data_namespaceObject.useSelect)(store_store);
+ const allowSwitchEditorMode = isCodeEditingEnabled && isRichEditingEnabled;
+ if (isPreviewMode) {
+ return {
+ commands: [],
+ isLoading: false
+ };
+ }
+ const commands = [];
+ commands.push({
+ name: 'core/open-shortcut-help',
+ label: (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts'),
+ icon: library_keyboard,
+ callback: () => {
+ openModal('editor/keyboard-shortcut-help');
+ }
+ });
+ commands.push({
+ name: 'core/toggle-distraction-free',
+ label: isDistractionFree ? (0,external_wp_i18n_namespaceObject.__)('Exit Distraction Free') : (0,external_wp_i18n_namespaceObject.__)('Enter Distraction Free'),
+ callback: ({
+ close
+ }) => {
+ toggleDistractionFree();
+ close();
+ }
+ });
+ commands.push({
+ name: 'core/open-preferences',
+ label: (0,external_wp_i18n_namespaceObject.__)('Editor preferences'),
+ callback: () => {
+ openModal('editor/preferences');
+ }
+ });
+ commands.push({
+ name: 'core/toggle-spotlight-mode',
+ label: (0,external_wp_i18n_namespaceObject.__)('Toggle spotlight'),
+ callback: ({
+ close
+ }) => {
+ toggle('core', 'focusMode');
+ close();
+ createInfoNotice(isFocusMode ? (0,external_wp_i18n_namespaceObject.__)('Spotlight off.') : (0,external_wp_i18n_namespaceObject.__)('Spotlight on.'), {
+ id: 'core/editor/toggle-spotlight-mode/notice',
+ type: 'snackbar',
+ actions: [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Undo'),
+ onClick: () => {
+ toggle('core', 'focusMode');
+ }
+ }]
+ });
+ }
+ });
+ commands.push({
+ name: 'core/toggle-list-view',
+ label: isListViewOpen ? (0,external_wp_i18n_namespaceObject.__)('Close List View') : (0,external_wp_i18n_namespaceObject.__)('Open List View'),
+ icon: list_view,
+ callback: ({
+ close
+ }) => {
+ setIsListViewOpened(!isListViewOpen);
+ close();
+ createInfoNotice(isListViewOpen ? (0,external_wp_i18n_namespaceObject.__)('List View off.') : (0,external_wp_i18n_namespaceObject.__)('List View on.'), {
+ id: 'core/editor/toggle-list-view/notice',
+ type: 'snackbar'
+ });
+ }
+ });
+ commands.push({
+ name: 'core/toggle-top-toolbar',
+ label: (0,external_wp_i18n_namespaceObject.__)('Toggle top toolbar'),
+ callback: ({
+ close
+ }) => {
+ toggle('core', 'fixedToolbar');
+ if (isDistractionFree) {
+ toggleDistractionFree();
+ }
+ close();
+ createInfoNotice(isTopToolbar ? (0,external_wp_i18n_namespaceObject.__)('Top toolbar off.') : (0,external_wp_i18n_namespaceObject.__)('Top toolbar on.'), {
+ id: 'core/editor/toggle-top-toolbar/notice',
+ type: 'snackbar',
+ actions: [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Undo'),
+ onClick: () => {
+ toggle('core', 'fixedToolbar');
+ }
+ }]
+ });
+ }
+ });
+ if (allowSwitchEditorMode) {
+ commands.push({
+ name: 'core/toggle-code-editor',
+ label: editorMode === 'visual' ? (0,external_wp_i18n_namespaceObject.__)('Open code editor') : (0,external_wp_i18n_namespaceObject.__)('Exit code editor'),
+ icon: library_code,
+ callback: ({
+ close
+ }) => {
+ switchEditorMode(editorMode === 'visual' ? 'text' : 'visual');
+ close();
+ }
+ });
+ }
+ commands.push({
+ name: 'core/toggle-breadcrumbs',
+ label: showBlockBreadcrumbs ? (0,external_wp_i18n_namespaceObject.__)('Hide block breadcrumbs') : (0,external_wp_i18n_namespaceObject.__)('Show block breadcrumbs'),
+ callback: ({
+ close
+ }) => {
+ toggle('core', 'showBlockBreadcrumbs');
+ close();
+ createInfoNotice(showBlockBreadcrumbs ? (0,external_wp_i18n_namespaceObject.__)('Breadcrumbs hidden.') : (0,external_wp_i18n_namespaceObject.__)('Breadcrumbs visible.'), {
+ id: 'core/editor/toggle-breadcrumbs/notice',
+ type: 'snackbar'
+ });
+ }
+ });
+ commands.push({
+ name: 'core/open-settings-sidebar',
+ label: (0,external_wp_i18n_namespaceObject.__)('Toggle settings sidebar'),
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? drawer_left : drawer_right,
+ callback: ({
+ close
+ }) => {
+ const activeSidebar = getActiveComplementaryArea('core');
+ close();
+ if (activeSidebar === 'edit-post/document') {
+ disableComplementaryArea('core');
+ } else {
+ enableComplementaryArea('core', 'edit-post/document');
+ }
+ }
+ });
+ commands.push({
+ name: 'core/open-block-inspector',
+ label: (0,external_wp_i18n_namespaceObject.__)('Toggle block inspector'),
+ icon: block_default,
+ callback: ({
+ close
+ }) => {
+ const activeSidebar = getActiveComplementaryArea('core');
+ close();
+ if (activeSidebar === 'edit-post/block') {
+ disableComplementaryArea('core');
+ } else {
+ enableComplementaryArea('core', 'edit-post/block');
+ }
+ }
+ });
+ commands.push({
+ name: 'core/toggle-publish-sidebar',
+ label: isPublishSidebarEnabled ? (0,external_wp_i18n_namespaceObject.__)('Disable pre-publish checks') : (0,external_wp_i18n_namespaceObject.__)('Enable pre-publish checks'),
+ icon: format_list_bullets,
+ callback: ({
+ close
+ }) => {
+ close();
+ toggle('core', 'isPublishSidebarEnabled');
+ createInfoNotice(isPublishSidebarEnabled ? (0,external_wp_i18n_namespaceObject.__)('Pre-publish checks disabled.') : (0,external_wp_i18n_namespaceObject.__)('Pre-publish checks enabled.'), {
+ id: 'core/editor/publish-sidebar/notice',
+ type: 'snackbar'
+ });
+ }
+ });
+ if (isViewable) {
+ commands.push({
+ name: 'core/preview-link',
+ label: (0,external_wp_i18n_namespaceObject.__)('Preview in a new tab'),
+ icon: library_external,
+ callback: async ({
+ close
+ }) => {
+ close();
+ const postId = getCurrentPostId();
+ const link = await __unstableSaveForPreview();
+ window.open(link, `wp-preview-${postId}`);
+ }
+ });
+ }
+ return {
+ commands,
+ isLoading: false
+ };
+}
+function useEditedEntityContextualCommands() {
+ const {
+ postType
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getCurrentPostType
+ } = select(store_store);
+ return {
+ postType: getCurrentPostType()
+ };
+ }, []);
+ const {
+ openModal
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const commands = [];
+ if (postType === PATTERN_POST_TYPE) {
+ commands.push({
+ name: 'core/rename-pattern',
+ label: (0,external_wp_i18n_namespaceObject.__)('Rename pattern'),
+ icon: edit,
+ callback: ({
+ close
+ }) => {
+ openModal(modalName);
+ close();
+ }
+ });
+ commands.push({
+ name: 'core/duplicate-pattern',
+ label: (0,external_wp_i18n_namespaceObject.__)('Duplicate pattern'),
+ icon: library_symbol,
+ callback: ({
+ close
+ }) => {
+ openModal(pattern_duplicate_modal_modalName);
+ close();
+ }
+ });
+ }
+ return {
+ isLoading: false,
+ commands
+ };
+}
+function useCommands() {
+ (0,external_wp_commands_namespaceObject.useCommandLoader)({
+ name: 'core/editor/edit-ui',
+ hook: useEditorCommandLoader
+ });
+ (0,external_wp_commands_namespaceObject.useCommandLoader)({
+ name: 'core/editor/contextual-commands',
+ hook: useEditedEntityContextualCommands,
+ context: 'entity-edit'
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-removal-warnings/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+const {
+ BlockRemovalWarningModal
+} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+
+// Prevent accidental removal of certain blocks, asking the user for confirmation first.
+const TEMPLATE_BLOCKS = ['core/post-content', 'core/post-template', 'core/query'];
+const BLOCK_REMOVAL_RULES = [{
+ // Template blocks.
+ // The warning is only shown when a user manipulates templates or template parts.
+ postTypes: ['wp_template', 'wp_template_part'],
+ callback(removedBlocks) {
+ const removedTemplateBlocks = removedBlocks.filter(({
+ name
+ }) => TEMPLATE_BLOCKS.includes(name));
+ if (removedTemplateBlocks.length) {
+ return (0,external_wp_i18n_namespaceObject._n)('Deleting this block will stop your post or page content from displaying on this template. It is not recommended.', 'Some of the deleted blocks will stop your post or page content from displaying on this template. It is not recommended.', removedBlocks.length);
+ }
+ }
+}, {
+ // Pattern overrides.
+ // The warning is only shown when the user edits a pattern.
+ postTypes: ['wp_block'],
+ callback(removedBlocks) {
+ const removedBlocksWithOverrides = removedBlocks.filter(({
+ attributes
+ }) => attributes?.metadata?.bindings && Object.values(attributes.metadata.bindings).some(binding => binding.source === 'core/pattern-overrides'));
+ if (removedBlocksWithOverrides.length) {
+ return (0,external_wp_i18n_namespaceObject._n)('The deleted block allows instance overrides. Removing it may result in content not displaying where this pattern is used. Are you sure you want to proceed?', 'Some of the deleted blocks allow instance overrides. Removing them may result in content not displaying where this pattern is used. Are you sure you want to proceed?', removedBlocks.length);
+ }
+ }
+}];
+function BlockRemovalWarnings() {
+ const currentPostType = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getCurrentPostType(), []);
+ const removalRulesForPostType = (0,external_wp_element_namespaceObject.useMemo)(() => BLOCK_REMOVAL_RULES.filter(rule => rule.postTypes.includes(currentPostType)), [currentPostType]);
+
+ // `BlockRemovalWarnings` is rendered in the editor provider, a shared component
+ // across react native and web. However, `BlockRemovalWarningModal` is web only.
+ // Check it exists before trying to render it.
+ if (!BlockRemovalWarningModal) {
+ return null;
+ }
+ if (!removalRulesForPostType) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockRemovalWarningModal, {
+ rules: removalRulesForPostType
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/start-page-options/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+function useStartPatterns() {
+ // A pattern is a start pattern if it includes 'core/post-content' in its blockTypes,
+ // and it has no postTypes declared and the current post type is page or if
+ // the current post type is part of the postTypes declared.
+ const {
+ blockPatternsWithPostContentBlockType,
+ postType
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getPatternsByBlockTypes,
+ getBlocksByName
+ } = select(external_wp_blockEditor_namespaceObject.store);
+ const {
+ getCurrentPostType,
+ getRenderingMode
+ } = select(store_store);
+ const rootClientId = getRenderingMode() === 'post-only' ? '' : getBlocksByName('core/post-content')?.[0];
+ return {
+ blockPatternsWithPostContentBlockType: getPatternsByBlockTypes('core/post-content', rootClientId),
+ postType: getCurrentPostType()
+ };
+ }, []);
+ return (0,external_wp_element_namespaceObject.useMemo)(() => {
+ // filter patterns without postTypes declared if the current postType is page
+ // or patterns that declare the current postType in its post type array.
+ return blockPatternsWithPostContentBlockType.filter(pattern => {
+ return postType === 'page' && !pattern.postTypes || Array.isArray(pattern.postTypes) && pattern.postTypes.includes(postType);
+ });
+ }, [postType, blockPatternsWithPostContentBlockType]);
+}
+function PatternSelection({
+ blockPatterns,
+ onChoosePattern
+}) {
+ const shownBlockPatterns = (0,external_wp_compose_namespaceObject.useAsyncList)(blockPatterns);
+ const {
+ editEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const {
+ postType,
+ postId
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getCurrentPostType,
+ getCurrentPostId
+ } = select(store_store);
+ return {
+ postType: getCurrentPostType(),
+ postId: getCurrentPostId()
+ };
+ }, []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalBlockPatternsList, {
+ blockPatterns: blockPatterns,
+ shownPatterns: shownBlockPatterns,
+ onClickPattern: (_pattern, blocks) => {
+ editEntityRecord('postType', postType, postId, {
+ blocks,
+ content: ({
+ blocks: blocksForSerialization = []
+ }) => (0,external_wp_blocks_namespaceObject.__unstableSerializeAndClean)(blocksForSerialization)
+ });
+ onChoosePattern();
+ }
+ });
+}
+function StartPageOptionsModal({
+ onClose
+}) {
+ const startPatterns = useStartPatterns();
+ const hasStartPattern = startPatterns.length > 0;
+ if (!hasStartPattern) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Choose a pattern'),
+ isFullScreen: true,
+ onRequestClose: onClose,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-start-page-options__modal-content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternSelection, {
+ blockPatterns: startPatterns,
+ onChoosePattern: onClose
+ })
+ })
+ });
+}
+function StartPageOptions() {
+ const [isClosed, setIsClosed] = (0,external_wp_element_namespaceObject.useState)(false);
+ const {
+ shouldEnableModal,
+ postType,
+ postId
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ isEditedPostDirty,
+ isEditedPostEmpty,
+ getCurrentPostType,
+ getCurrentPostId
+ } = select(store_store);
+ const _postType = getCurrentPostType();
+ return {
+ shouldEnableModal: !isEditedPostDirty() && isEditedPostEmpty() && TEMPLATE_POST_TYPE !== _postType,
+ postType: _postType,
+ postId: getCurrentPostId()
+ };
+ }, []);
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ // Should reset the modal state when navigating to a new page/post.
+ setIsClosed(false);
+ }, [postType, postId]);
+ if (!shouldEnableModal || isClosed) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StartPageOptionsModal, {
+ onClose: () => setIsClosed(true)
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/keyboard-shortcut-help-modal/config.js
+/**
+ * WordPress dependencies
+ */
+
+const textFormattingShortcuts = [{
+ keyCombination: {
+ modifier: 'primary',
+ character: 'b'
+ },
+ description: (0,external_wp_i18n_namespaceObject.__)('Make the selected text bold.')
+}, {
+ keyCombination: {
+ modifier: 'primary',
+ character: 'i'
+ },
+ description: (0,external_wp_i18n_namespaceObject.__)('Make the selected text italic.')
+}, {
+ keyCombination: {
+ modifier: 'primary',
+ character: 'k'
+ },
+ description: (0,external_wp_i18n_namespaceObject.__)('Convert the selected text into a link.')
+}, {
+ keyCombination: {
+ modifier: 'primaryShift',
+ character: 'k'
+ },
+ description: (0,external_wp_i18n_namespaceObject.__)('Remove a link.')
+}, {
+ keyCombination: {
+ character: '[['
+ },
+ description: (0,external_wp_i18n_namespaceObject.__)('Insert a link to a post or page.')
+}, {
+ keyCombination: {
+ modifier: 'primary',
+ character: 'u'
+ },
+ description: (0,external_wp_i18n_namespaceObject.__)('Underline the selected text.')
+}, {
+ keyCombination: {
+ modifier: 'access',
+ character: 'd'
+ },
+ description: (0,external_wp_i18n_namespaceObject.__)('Strikethrough the selected text.')
+}, {
+ keyCombination: {
+ modifier: 'access',
+ character: 'x'
+ },
+ description: (0,external_wp_i18n_namespaceObject.__)('Make the selected text inline code.')
+}, {
+ keyCombination: {
+ modifier: 'access',
+ character: '0'
+ },
+ aliases: [{
+ modifier: 'access',
+ character: '7'
+ }],
+ description: (0,external_wp_i18n_namespaceObject.__)('Convert the current heading to a paragraph.')
+}, {
+ keyCombination: {
+ modifier: 'access',
+ character: '1-6'
+ },
+ description: (0,external_wp_i18n_namespaceObject.__)('Convert the current paragraph or heading to a heading of level 1 to 6.')
+}, {
+ keyCombination: {
+ modifier: 'primaryShift',
+ character: 'SPACE'
+ },
+ description: (0,external_wp_i18n_namespaceObject.__)('Add non breaking space.')
+}];
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/keyboard-shortcut-help-modal/shortcut.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+function KeyCombination({
+ keyCombination,
+ forceAriaLabel
+}) {
+ const shortcut = keyCombination.modifier ? external_wp_keycodes_namespaceObject.displayShortcutList[keyCombination.modifier](keyCombination.character) : keyCombination.character;
+ const ariaLabel = keyCombination.modifier ? external_wp_keycodes_namespaceObject.shortcutAriaLabel[keyCombination.modifier](keyCombination.character) : keyCombination.character;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("kbd", {
+ className: "editor-keyboard-shortcut-help-modal__shortcut-key-combination",
+ "aria-label": forceAriaLabel || ariaLabel,
+ children: (Array.isArray(shortcut) ? shortcut : [shortcut]).map((character, index) => {
+ if (character === '+') {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.Fragment, {
+ children: character
+ }, index);
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("kbd", {
+ className: "editor-keyboard-shortcut-help-modal__shortcut-key",
+ children: character
+ }, index);
+ })
+ });
+}
+function Shortcut({
+ description,
+ keyCombination,
+ aliases = [],
+ ariaLabel
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-keyboard-shortcut-help-modal__shortcut-description",
+ children: description
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-keyboard-shortcut-help-modal__shortcut-term",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(KeyCombination, {
+ keyCombination: keyCombination,
+ forceAriaLabel: ariaLabel
+ }), aliases.map((alias, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(KeyCombination, {
+ keyCombination: alias,
+ forceAriaLabel: ariaLabel
+ }, index))]
+ })]
+ });
+}
+/* harmony default export */ const keyboard_shortcut_help_modal_shortcut = (Shortcut);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+function DynamicShortcut({
+ name
+}) {
+ const {
+ keyCombination,
+ description,
+ aliases
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getShortcutKeyCombination,
+ getShortcutDescription,
+ getShortcutAliases
+ } = select(external_wp_keyboardShortcuts_namespaceObject.store);
+ return {
+ keyCombination: getShortcutKeyCombination(name),
+ aliases: getShortcutAliases(name),
+ description: getShortcutDescription(name)
+ };
+ }, [name]);
+ if (!keyCombination) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(keyboard_shortcut_help_modal_shortcut, {
+ keyCombination: keyCombination,
+ description: description,
+ aliases: aliases
+ });
+}
+/* harmony default export */ const dynamic_shortcut = (DynamicShortcut);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/keyboard-shortcut-help-modal/index.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+const KEYBOARD_SHORTCUT_HELP_MODAL_NAME = 'editor/keyboard-shortcut-help';
+const ShortcutList = ({
+ shortcuts
+}) =>
+/*#__PURE__*/
+/*
+ * Disable reason: The `list` ARIA role is redundant but
+ * Safari+VoiceOver won't announce the list otherwise.
+ */
+/* eslint-disable jsx-a11y/no-redundant-roles */
+(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ className: "editor-keyboard-shortcut-help-modal__shortcut-list",
+ role: "list",
+ children: shortcuts.map((shortcut, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ className: "editor-keyboard-shortcut-help-modal__shortcut",
+ children: typeof shortcut === 'string' ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dynamic_shortcut, {
+ name: shortcut
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(keyboard_shortcut_help_modal_shortcut, {
+ ...shortcut
+ })
+ }, index))
+})
+/* eslint-enable jsx-a11y/no-redundant-roles */;
+const ShortcutSection = ({
+ title,
+ shortcuts,
+ className
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("section", {
+ className: dist_clsx('editor-keyboard-shortcut-help-modal__section', className),
+ children: [!!title && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ className: "editor-keyboard-shortcut-help-modal__section-title",
+ children: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutList, {
+ shortcuts: shortcuts
+ })]
+});
+const ShortcutCategorySection = ({
+ title,
+ categoryName,
+ additionalShortcuts = []
+}) => {
+ const categoryShortcuts = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ return select(external_wp_keyboardShortcuts_namespaceObject.store).getCategoryShortcuts(categoryName);
+ }, [categoryName]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutSection, {
+ title: title,
+ shortcuts: categoryShortcuts.concat(additionalShortcuts)
+ });
+};
+function KeyboardShortcutHelpModal() {
+ const isModalActive = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).isModalActive(KEYBOARD_SHORTCUT_HELP_MODAL_NAME), []);
+ const {
+ openModal,
+ closeModal
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const toggleModal = () => {
+ if (isModalActive) {
+ closeModal();
+ } else {
+ openModal(KEYBOARD_SHORTCUT_HELP_MODAL_NAME);
+ }
+ };
+ (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/editor/keyboard-shortcuts', toggleModal);
+ if (!isModalActive) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Modal, {
+ className: "editor-keyboard-shortcut-help-modal",
+ title: (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts'),
+ closeButtonLabel: (0,external_wp_i18n_namespaceObject.__)('Close'),
+ onRequestClose: toggleModal,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutSection, {
+ className: "editor-keyboard-shortcut-help-modal__main-shortcuts",
+ shortcuts: ['core/editor/keyboard-shortcuts']
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutCategorySection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Global shortcuts'),
+ categoryName: "global"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutCategorySection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Selection shortcuts'),
+ categoryName: "selection"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutCategorySection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Block shortcuts'),
+ categoryName: "block",
+ additionalShortcuts: [{
+ keyCombination: {
+ character: '/'
+ },
+ description: (0,external_wp_i18n_namespaceObject.__)('Change the block type after adding a new paragraph.'),
+ /* translators: The forward-slash character. e.g. '/'. */
+ ariaLabel: (0,external_wp_i18n_namespaceObject.__)('Forward-slash')
+ }]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutSection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Text formatting'),
+ shortcuts: textFormattingShortcuts
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutCategorySection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('List View shortcuts'),
+ categoryName: "list-view"
+ })]
+ });
+}
+/* harmony default export */ const keyboard_shortcut_help_modal = (KeyboardShortcutHelpModal);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-settings-menu/content-only-settings-menu.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+function ContentOnlySettingsMenuItems({
+ clientId,
+ onClose
+}) {
+ const {
+ entity,
+ onNavigateToEntityRecord,
+ canEditTemplates
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getBlockEditingMode,
+ getBlockParentsByBlockName,
+ getSettings,
+ getBlockAttributes
+ } = select(external_wp_blockEditor_namespaceObject.store);
+ const contentOnly = getBlockEditingMode(clientId) === 'contentOnly';
+ if (!contentOnly) {
+ return {};
+ }
+ const patternParent = getBlockParentsByBlockName(clientId, 'core/block', true)[0];
+ let record;
+ if (patternParent) {
+ record = select(external_wp_coreData_namespaceObject.store).getEntityRecord('postType', 'wp_block', getBlockAttributes(patternParent).ref);
+ } else {
+ const {
+ getCurrentTemplateId
+ } = select(store_store);
+ const templateId = getCurrentTemplateId();
+ const {
+ getContentLockingParent
+ } = unlock(select(external_wp_blockEditor_namespaceObject.store));
+ if (!getContentLockingParent(clientId) && templateId) {
+ record = select(external_wp_coreData_namespaceObject.store).getEntityRecord('postType', 'wp_template', templateId);
+ }
+ }
+ const _canEditTemplates = select(external_wp_coreData_namespaceObject.store).canUser('create', 'templates');
+ return {
+ canEditTemplates: _canEditTemplates,
+ entity: record,
+ onNavigateToEntityRecord: getSettings().onNavigateToEntityRecord
+ };
+ }, [clientId]);
+ if (!entity) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplateLockContentOnlyMenuItems, {
+ clientId: clientId,
+ onClose: onClose
+ });
+ }
+ const isPattern = entity.type === 'wp_block';
+ let helpText = isPattern ? (0,external_wp_i18n_namespaceObject.__)('Edit the pattern to move, delete, or make further changes to this block.') : (0,external_wp_i18n_namespaceObject.__)('Edit the template to move, delete, or make further changes to this block.');
+ if (!canEditTemplates) {
+ helpText = (0,external_wp_i18n_namespaceObject.__)('Only users with permissions to edit the template can move or delete this block');
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__unstableBlockSettingsMenuFirstItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ onNavigateToEntityRecord({
+ postId: entity.id,
+ postType: entity.type
+ });
+ },
+ disabled: !canEditTemplates,
+ children: isPattern ? (0,external_wp_i18n_namespaceObject.__)('Edit pattern') : (0,external_wp_i18n_namespaceObject.__)('Edit template')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ as: "p",
+ className: "editor-content-only-settings-menu__description",
+ children: helpText
+ })]
+ });
+}
+function TemplateLockContentOnlyMenuItems({
+ clientId,
+ onClose
+}) {
+ const {
+ contentLockingParent
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getContentLockingParent
+ } = unlock(select(external_wp_blockEditor_namespaceObject.store));
+ return {
+ contentLockingParent: getContentLockingParent(clientId)
+ };
+ }, [clientId]);
+ const blockDisplayInformation = (0,external_wp_blockEditor_namespaceObject.useBlockDisplayInformation)(contentLockingParent);
+ // Disable reason: We're using a hook here so it has to be on top-level.
+ // eslint-disable-next-line @wordpress/no-unused-vars-before-return
+ const {
+ modifyContentLockBlock,
+ selectBlock
+ } = unlock((0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store));
+ if (!blockDisplayInformation?.title) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__unstableBlockSettingsMenuFirstItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => {
+ selectBlock(contentLockingParent);
+ modifyContentLockBlock(contentLockingParent);
+ onClose();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Unlock')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ as: "p",
+ className: "editor-content-only-settings-menu__description",
+ children: (0,external_wp_i18n_namespaceObject.__)('Temporarily unlock the parent block to edit, delete or make further changes to this block.')
+ })]
+ });
+}
+function ContentOnlySettingsMenu() {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockSettingsMenuControls, {
+ children: ({
+ selectedClientIds,
+ onClose
+ }) => selectedClientIds.length === 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ContentOnlySettingsMenuItems, {
+ clientId: selectedClientIds[0],
+ onClose: onClose
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/start-template-options/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+function useFallbackTemplateContent(slug, isCustom = false) {
+ return (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getEntityRecord,
+ getDefaultTemplateId
+ } = select(external_wp_coreData_namespaceObject.store);
+ const templateId = getDefaultTemplateId({
+ slug,
+ is_custom: isCustom,
+ ignore_empty: true
+ });
+ return templateId ? getEntityRecord('postType', TEMPLATE_POST_TYPE, templateId)?.content?.raw : undefined;
+ }, [slug, isCustom]);
+}
+function start_template_options_useStartPatterns(fallbackContent) {
+ const {
+ slug,
+ patterns
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getCurrentPostType,
+ getCurrentPostId
+ } = select(store_store);
+ const {
+ getEntityRecord,
+ getBlockPatterns
+ } = select(external_wp_coreData_namespaceObject.store);
+ const postId = getCurrentPostId();
+ const postType = getCurrentPostType();
+ const record = getEntityRecord('postType', postType, postId);
+ return {
+ slug: record.slug,
+ patterns: getBlockPatterns()
+ };
+ }, []);
+ const currentThemeStylesheet = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getCurrentTheme().stylesheet);
+
+ // Duplicated from packages/block-library/src/pattern/edit.js.
+ function injectThemeAttributeInBlockTemplateContent(block) {
+ if (block.innerBlocks.find(innerBlock => innerBlock.name === 'core/template-part')) {
+ block.innerBlocks = block.innerBlocks.map(innerBlock => {
+ if (innerBlock.name === 'core/template-part' && innerBlock.attributes.theme === undefined) {
+ innerBlock.attributes.theme = currentThemeStylesheet;
+ }
+ return innerBlock;
+ });
+ }
+ if (block.name === 'core/template-part' && block.attributes.theme === undefined) {
+ block.attributes.theme = currentThemeStylesheet;
+ }
+ return block;
+ }
+ return (0,external_wp_element_namespaceObject.useMemo)(() => {
+ // filter patterns that are supposed to be used in the current template being edited.
+ return [{
+ name: 'fallback',
+ blocks: (0,external_wp_blocks_namespaceObject.parse)(fallbackContent),
+ title: (0,external_wp_i18n_namespaceObject.__)('Fallback content')
+ }, ...patterns.filter(pattern => {
+ return Array.isArray(pattern.templateTypes) && pattern.templateTypes.some(templateType => slug.startsWith(templateType));
+ }).map(pattern => {
+ return {
+ ...pattern,
+ blocks: (0,external_wp_blocks_namespaceObject.parse)(pattern.content).map(block => injectThemeAttributeInBlockTemplateContent(block))
+ };
+ })];
+ }, [fallbackContent, slug, patterns]);
+}
+function start_template_options_PatternSelection({
+ fallbackContent,
+ onChoosePattern,
+ postType
+}) {
+ const [,, onChange] = (0,external_wp_coreData_namespaceObject.useEntityBlockEditor)('postType', postType);
+ const blockPatterns = start_template_options_useStartPatterns(fallbackContent);
+ const shownBlockPatterns = (0,external_wp_compose_namespaceObject.useAsyncList)(blockPatterns);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalBlockPatternsList, {
+ blockPatterns: blockPatterns,
+ shownPatterns: shownBlockPatterns,
+ onClickPattern: (pattern, blocks) => {
+ onChange(blocks, {
+ selection: undefined
+ });
+ onChoosePattern();
+ }
+ });
+}
+function StartModal({
+ slug,
+ isCustom,
+ onClose,
+ postType
+}) {
+ const fallbackContent = useFallbackTemplateContent(slug, isCustom);
+ if (!fallbackContent) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Modal, {
+ className: "editor-start-template-options__modal",
+ title: (0,external_wp_i18n_namespaceObject.__)('Choose a pattern'),
+ closeLabel: (0,external_wp_i18n_namespaceObject.__)('Cancel'),
+ focusOnMount: "firstElement",
+ onRequestClose: onClose,
+ isFullScreen: true,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-start-template-options__modal-content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(start_template_options_PatternSelection, {
+ fallbackContent: fallbackContent,
+ slug: slug,
+ isCustom: isCustom,
+ postType: postType,
+ onChoosePattern: () => {
+ onClose();
+ }
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Flex, {
+ className: "editor-start-template-options__modal__actions",
+ justify: "flex-end",
+ expanded: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: onClose,
+ children: (0,external_wp_i18n_namespaceObject.__)('Skip')
+ })
+ })
+ })]
+ });
+}
+function StartTemplateOptions() {
+ const [isClosed, setIsClosed] = (0,external_wp_element_namespaceObject.useState)(false);
+ const {
+ shouldOpenModal,
+ slug,
+ isCustom,
+ postType,
+ postId
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getCurrentPostType,
+ getCurrentPostId
+ } = select(store_store);
+ const _postType = getCurrentPostType();
+ const _postId = getCurrentPostId();
+ const {
+ getEditedEntityRecord,
+ hasEditsForEntityRecord
+ } = select(external_wp_coreData_namespaceObject.store);
+ const templateRecord = getEditedEntityRecord('postType', _postType, _postId);
+ const hasEdits = hasEditsForEntityRecord('postType', _postType, _postId);
+ return {
+ shouldOpenModal: !hasEdits && '' === templateRecord.content && TEMPLATE_POST_TYPE === _postType,
+ slug: templateRecord.slug,
+ isCustom: templateRecord.is_custom,
+ postType: _postType,
+ postId: _postId
+ };
+ }, []);
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ // Should reset the modal state when navigating to a new page/post.
+ setIsClosed(false);
+ }, [postType, postId]);
+ if (!shouldOpenModal || isClosed) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StartModal, {
+ slug: slug,
+ isCustom: isCustom,
+ postType: postType,
+ onClose: () => setIsClosed(true)
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/provider/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
const {
@@ -14914,6 +21282,12 @@ const NON_CONTEXTUAL_POST_TYPES = ['wp_block', 'wp_template', 'wp_navigation', '
* @param {Array} post Block list.
* @param {boolean} template Whether the page content has focus (and the surrounding template is inert). If `true` return page content blocks. Default `false`.
* @param {string} mode Rendering mode.
+ *
+ * @example
+ * ```jsx
+ * const [ blocks, onInput, onChange ] = useBlockEditorProps( post, template, mode );
+ * ```
+ *
* @return {Array} Block editor props.
*/
function useBlockEditorProps(post, template, mode) {
@@ -14957,6 +21331,33 @@ function useBlockEditorProps(post, template, mode) {
}
return [blocks, rootLevelPost === 'post' ? onInput : onInputTemplate, rootLevelPost === 'post' ? onChange : onChangeTemplate];
}
+
+/**
+ * This component provides the editor context and manages the state of the block editor.
+ *
+ * @param {Object} props The component props.
+ * @param {Object} props.post The post object.
+ * @param {Object} props.settings The editor settings.
+ * @param {boolean} props.recovery Indicates if the editor is in recovery mode.
+ * @param {Array} props.initialEdits The initial edits for the editor.
+ * @param {Object} props.children The child components.
+ * @param {Object} [props.BlockEditorProviderComponent] The block editor provider component to use. Defaults to ExperimentalBlockEditorProvider.
+ * @param {Object} [props.__unstableTemplate] The template object.
+ *
+ * @example
+ * ```jsx
+ * <ExperimentalEditorProvider
+ * post={ post }
+ * settings={ settings }
+ * recovery={ recovery }
+ * initialEdits={ initialEdits }
+ * __unstableTemplate={ template }
+ * >
+ * { children }
+ * </ExperimentalEditorProvider>
+ *
+ * @return {Object} The rendered ExperimentalEditorProvider component.
+ */
const ExperimentalEditorProvider = with_registry_provider(({
post,
settings,
@@ -14999,7 +21400,7 @@ const ExperimentalEditorProvider = with_registry_provider(({
id,
type
} = rootLevelPost;
- const blockEditorSettings = use_block_editor_settings(editorSettings, type, id);
+ const blockEditorSettings = use_block_editor_settings(editorSettings, type, id, mode);
const [blocks, onInput, onChange] = useBlockEditorProps(post, template, mode);
const {
updatePostLock,
@@ -15052,32 +21453,74 @@ const ExperimentalEditorProvider = with_registry_provider(({
var _settings$defaultRend;
setRenderingMode((_settings$defaultRend = settings.defaultRenderingMode) !== null && _settings$defaultRend !== void 0 ? _settings$defaultRend : 'post-only');
}, [settings.defaultRenderingMode, setRenderingMode]);
+ useHideBlocksFromInserter(post.type, mode);
+
+ // Register the editor commands.
+ useCommands();
if (!isReady) {
return null;
}
- return (0,external_React_.createElement)(external_wp_coreData_namespaceObject.EntityProvider, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_coreData_namespaceObject.EntityProvider, {
kind: "root",
- type: "site"
- }, (0,external_React_.createElement)(external_wp_coreData_namespaceObject.EntityProvider, {
- kind: "postType",
- type: post.type,
- id: post.id
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockContextProvider, {
- value: defaultBlockContext
- }, (0,external_React_.createElement)(BlockEditorProviderComponent, {
- value: blocks,
- onChange: onChange,
- onInput: onInput,
- selection: selection,
- settings: blockEditorSettings,
- useSubRegistry: false
- }, children, (0,external_React_.createElement)(PatternsMenuItems, null), mode === 'template-locked' && (0,external_React_.createElement)(DisableNonPageContentBlocks, null), type === 'wp_navigation' && (0,external_React_.createElement)(NavigationBlockEditingMode, null)))));
+ type: "site",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_coreData_namespaceObject.EntityProvider, {
+ kind: "postType",
+ type: post.type,
+ id: post.id,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockContextProvider, {
+ value: defaultBlockContext,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(BlockEditorProviderComponent, {
+ value: blocks,
+ onChange: onChange,
+ onInput: onInput,
+ selection: selection,
+ settings: blockEditorSettings,
+ useSubRegistry: false,
+ children: [children, !settings.__unstableIsPreviewMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternsMenuItems, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ContentOnlySettingsMenu, {}), mode === 'template-locked' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DisableNonPageContentBlocks, {}), type === 'wp_navigation' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationBlockEditingMode, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditorKeyboardShortcuts, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(keyboard_shortcut_help_modal, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockRemovalWarnings, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StartPageOptions, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StartTemplateOptions, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternRenameModal, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternDuplicateModal, {})]
+ })]
+ })
+ })
+ })
+ });
});
+
+/**
+ * This component establishes a new post editing context, and serves as the entry point for a new post editor (or post with template editor).
+ *
+ * It supports a large number of post types, including post, page, templates,
+ * custom post types, patterns, template parts.
+ *
+ * All modification and changes are performed to the `@wordpress/core-data` store.
+ *
+ * @param {Object} props The component props.
+ * @param {Object} [props.post] The post object to edit. This is required.
+ * @param {Object} [props.__unstableTemplate] The template object wrapper the edited post.
+ * This is optional and can only be used when the post type supports templates (like posts and pages).
+ * @param {Object} [props.settings] The settings object to use for the editor.
+ * This is optional and can be used to override the default settings.
+ * @param {Element} [props.children] Children elements for which the BlockEditorProvider context should apply.
+ * This is optional.
+ *
+ * @example
+ * ```jsx
+ * <EditorProvider
+ * post={ post }
+ * settings={ settings }
+ * __unstableTemplate={ template }
+ * >
+ * { children }
+ * </EditorProvider>
+ * ```
+ *
+ * @return {JSX.Element} The rendered EditorProvider component.
+ */
function EditorProvider(props) {
- return (0,external_React_.createElement)(ExperimentalEditorProvider, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ExperimentalEditorProvider, {
...props,
- BlockEditorProviderComponent: external_wp_blockEditor_namespaceObject.BlockEditorProvider
- }, props.children);
+ BlockEditorProviderComponent: external_wp_blockEditor_namespaceObject.BlockEditorProvider,
+ children: props.children
+ });
}
/* harmony default export */ const provider = (EditorProvider);
@@ -15085,7 +21528,6 @@ function EditorProvider(props) {
const external_wp_serverSideRender_namespaceObject = window["wp"]["serverSideRender"];
var external_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_wp_serverSideRender_namespaceObject);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/deprecated.js
-
// Block Creation Components.
/**
* WordPress dependencies
@@ -15094,6 +21536,7 @@ var external_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(ex
+
function deprecateComponent(name, Wrapped, staticsToHoist = []) {
const Component = (0,external_wp_element_namespaceObject.forwardRef)((props, ref) => {
external_wp_deprecated_default()('wp.editor.' + name, {
@@ -15101,7 +21544,7 @@ function deprecateComponent(name, Wrapped, staticsToHoist = []) {
alternative: 'wp.blockEditor.' + name,
version: '6.2'
});
- return (0,external_React_.createElement)(Wrapped, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Wrapped, {
ref: ref,
...props
});
@@ -15121,59 +21564,218 @@ function deprecateFunction(name, func) {
return func(...args);
};
}
+
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.RichText` instead.
+ */
const RichText = deprecateComponent('RichText', external_wp_blockEditor_namespaceObject.RichText, ['Content']);
RichText.isEmpty = deprecateFunction('RichText.isEmpty', external_wp_blockEditor_namespaceObject.RichText.isEmpty);
+
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.Autocomplete` instead.
+ */
const Autocomplete = deprecateComponent('Autocomplete', external_wp_blockEditor_namespaceObject.Autocomplete);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.AlignmentToolbar` instead.
+ */
const AlignmentToolbar = deprecateComponent('AlignmentToolbar', external_wp_blockEditor_namespaceObject.AlignmentToolbar);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.BlockAlignmentToolbar` instead.
+ */
const BlockAlignmentToolbar = deprecateComponent('BlockAlignmentToolbar', external_wp_blockEditor_namespaceObject.BlockAlignmentToolbar);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.BlockControls` instead.
+ */
const BlockControls = deprecateComponent('BlockControls', external_wp_blockEditor_namespaceObject.BlockControls, ['Slot']);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.BlockEdit` instead.
+ */
const BlockEdit = deprecateComponent('BlockEdit', external_wp_blockEditor_namespaceObject.BlockEdit);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.BlockEditorKeyboardShortcuts` instead.
+ */
const BlockEditorKeyboardShortcuts = deprecateComponent('BlockEditorKeyboardShortcuts', external_wp_blockEditor_namespaceObject.BlockEditorKeyboardShortcuts);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.BlockFormatControls` instead.
+ */
const BlockFormatControls = deprecateComponent('BlockFormatControls', external_wp_blockEditor_namespaceObject.BlockFormatControls, ['Slot']);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.BlockIcon` instead.
+ */
const BlockIcon = deprecateComponent('BlockIcon', external_wp_blockEditor_namespaceObject.BlockIcon);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.BlockInspector` instead.
+ */
const BlockInspector = deprecateComponent('BlockInspector', external_wp_blockEditor_namespaceObject.BlockInspector);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.BlockList` instead.
+ */
const BlockList = deprecateComponent('BlockList', external_wp_blockEditor_namespaceObject.BlockList);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.BlockMover` instead.
+ */
const BlockMover = deprecateComponent('BlockMover', external_wp_blockEditor_namespaceObject.BlockMover);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.BlockNavigationDropdown` instead.
+ */
const BlockNavigationDropdown = deprecateComponent('BlockNavigationDropdown', external_wp_blockEditor_namespaceObject.BlockNavigationDropdown);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.BlockSelectionClearer` instead.
+ */
const BlockSelectionClearer = deprecateComponent('BlockSelectionClearer', external_wp_blockEditor_namespaceObject.BlockSelectionClearer);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.BlockSettingsMenu` instead.
+ */
const BlockSettingsMenu = deprecateComponent('BlockSettingsMenu', external_wp_blockEditor_namespaceObject.BlockSettingsMenu);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.BlockTitle` instead.
+ */
const BlockTitle = deprecateComponent('BlockTitle', external_wp_blockEditor_namespaceObject.BlockTitle);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.BlockToolbar` instead.
+ */
const BlockToolbar = deprecateComponent('BlockToolbar', external_wp_blockEditor_namespaceObject.BlockToolbar);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.ColorPalette` instead.
+ */
const ColorPalette = deprecateComponent('ColorPalette', external_wp_blockEditor_namespaceObject.ColorPalette);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.ContrastChecker` instead.
+ */
const ContrastChecker = deprecateComponent('ContrastChecker', external_wp_blockEditor_namespaceObject.ContrastChecker);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.CopyHandler` instead.
+ */
const CopyHandler = deprecateComponent('CopyHandler', external_wp_blockEditor_namespaceObject.CopyHandler);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.DefaultBlockAppender` instead.
+ */
const DefaultBlockAppender = deprecateComponent('DefaultBlockAppender', external_wp_blockEditor_namespaceObject.DefaultBlockAppender);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.FontSizePicker` instead.
+ */
const FontSizePicker = deprecateComponent('FontSizePicker', external_wp_blockEditor_namespaceObject.FontSizePicker);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.Inserter` instead.
+ */
const Inserter = deprecateComponent('Inserter', external_wp_blockEditor_namespaceObject.Inserter);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.InnerBlocks` instead.
+ */
const InnerBlocks = deprecateComponent('InnerBlocks', external_wp_blockEditor_namespaceObject.InnerBlocks, ['ButtonBlockAppender', 'DefaultBlockAppender', 'Content']);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.InspectorAdvancedControls` instead.
+ */
const InspectorAdvancedControls = deprecateComponent('InspectorAdvancedControls', external_wp_blockEditor_namespaceObject.InspectorAdvancedControls, ['Slot']);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.InspectorControls` instead.
+ */
const InspectorControls = deprecateComponent('InspectorControls', external_wp_blockEditor_namespaceObject.InspectorControls, ['Slot']);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.PanelColorSettings` instead.
+ */
const PanelColorSettings = deprecateComponent('PanelColorSettings', external_wp_blockEditor_namespaceObject.PanelColorSettings);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.PlainText` instead.
+ */
const PlainText = deprecateComponent('PlainText', external_wp_blockEditor_namespaceObject.PlainText);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.RichTextShortcut` instead.
+ */
const RichTextShortcut = deprecateComponent('RichTextShortcut', external_wp_blockEditor_namespaceObject.RichTextShortcut);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.RichTextToolbarButton` instead.
+ */
const RichTextToolbarButton = deprecateComponent('RichTextToolbarButton', external_wp_blockEditor_namespaceObject.RichTextToolbarButton);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.__unstableRichTextInputEvent` instead.
+ */
const __unstableRichTextInputEvent = deprecateComponent('__unstableRichTextInputEvent', external_wp_blockEditor_namespaceObject.__unstableRichTextInputEvent);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.MediaPlaceholder` instead.
+ */
const MediaPlaceholder = deprecateComponent('MediaPlaceholder', external_wp_blockEditor_namespaceObject.MediaPlaceholder);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.MediaUpload` instead.
+ */
const MediaUpload = deprecateComponent('MediaUpload', external_wp_blockEditor_namespaceObject.MediaUpload);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.MediaUploadCheck` instead.
+ */
const MediaUploadCheck = deprecateComponent('MediaUploadCheck', external_wp_blockEditor_namespaceObject.MediaUploadCheck);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.MultiSelectScrollIntoView` instead.
+ */
const MultiSelectScrollIntoView = deprecateComponent('MultiSelectScrollIntoView', external_wp_blockEditor_namespaceObject.MultiSelectScrollIntoView);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.NavigableToolbar` instead.
+ */
const NavigableToolbar = deprecateComponent('NavigableToolbar', external_wp_blockEditor_namespaceObject.NavigableToolbar);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.ObserveTyping` instead.
+ */
const ObserveTyping = deprecateComponent('ObserveTyping', external_wp_blockEditor_namespaceObject.ObserveTyping);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.SkipToSelectedBlock` instead.
+ */
const SkipToSelectedBlock = deprecateComponent('SkipToSelectedBlock', external_wp_blockEditor_namespaceObject.SkipToSelectedBlock);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.URLInput` instead.
+ */
const URLInput = deprecateComponent('URLInput', external_wp_blockEditor_namespaceObject.URLInput);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.URLInputButton` instead.
+ */
const URLInputButton = deprecateComponent('URLInputButton', external_wp_blockEditor_namespaceObject.URLInputButton);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.URLPopover` instead.
+ */
const URLPopover = deprecateComponent('URLPopover', external_wp_blockEditor_namespaceObject.URLPopover);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.Warning` instead.
+ */
const Warning = deprecateComponent('Warning', external_wp_blockEditor_namespaceObject.Warning);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.WritingFlow` instead.
+ */
const WritingFlow = deprecateComponent('WritingFlow', external_wp_blockEditor_namespaceObject.WritingFlow);
+
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.createCustomColorsHOC` instead.
+ */
const createCustomColorsHOC = deprecateFunction('createCustomColorsHOC', external_wp_blockEditor_namespaceObject.createCustomColorsHOC);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.getColorClassName` instead.
+ */
const getColorClassName = deprecateFunction('getColorClassName', external_wp_blockEditor_namespaceObject.getColorClassName);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.getColorObjectByAttributeValues` instead.
+ */
const getColorObjectByAttributeValues = deprecateFunction('getColorObjectByAttributeValues', external_wp_blockEditor_namespaceObject.getColorObjectByAttributeValues);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.getColorObjectByColorValue` instead.
+ */
const getColorObjectByColorValue = deprecateFunction('getColorObjectByColorValue', external_wp_blockEditor_namespaceObject.getColorObjectByColorValue);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.getFontSize` instead.
+ */
const getFontSize = deprecateFunction('getFontSize', external_wp_blockEditor_namespaceObject.getFontSize);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.getFontSizeClass` instead.
+ */
const getFontSizeClass = deprecateFunction('getFontSizeClass', external_wp_blockEditor_namespaceObject.getFontSizeClass);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.createCustomColorsHOC` instead.
+ */
const withColorContext = deprecateFunction('withColorContext', external_wp_blockEditor_namespaceObject.withColorContext);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.withColors` instead.
+ */
const withColors = deprecateFunction('withColors', external_wp_blockEditor_namespaceObject.withColors);
+/**
+ * @deprecated since 5.3, use `wp.blockEditor.withFontSizes` instead.
+ */
const withFontSizes = deprecateFunction('withFontSizes', external_wp_blockEditor_namespaceObject.withFontSizes);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/index.js
@@ -15266,6 +21868,14 @@ const withFontSizes = deprecateFunction('withFontSizes', external_wp_blockEditor
+
+
+
+
+
+
+
+
// State Related Components.
@@ -15313,8 +21923,2322 @@ function cleanForSlug(string) {
-;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/editor-canvas/edit-template-blocks-notification.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/editor-interface/content-slot-fill.js
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Internal dependencies
+ */
+
+const {
+ createPrivateSlotFill
+} = unlock(external_wp_components_namespaceObject.privateApis);
+const SLOT_FILL_NAME = 'EditCanvasContainerSlot';
+const EditorContentSlotFill = createPrivateSlotFill(SLOT_FILL_NAME);
+/* harmony default export */ const content_slot_fill = (EditorContentSlotFill);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/header/back-button.js
+/**
+ * WordPress dependencies
+ */
+
+
+// Keeping an old name for backward compatibility.
+
+const slotName = '__experimentalMainDashboardButton';
+const {
+ Fill: back_button_Fill,
+ Slot: back_button_Slot
+} = (0,external_wp_components_namespaceObject.createSlotFill)(slotName);
+const BackButton = back_button_Fill;
+const BackButtonSlot = ({
+ children
+}) => {
+ const fills = (0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(slotName);
+ const hasFills = Boolean(fills && fills.length);
+ if (!hasFills) {
+ return children;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(back_button_Slot, {
+ bubblesVirtually: true,
+ fillProps: {
+ length: !fills ? 0 : fills.length
+ }
+ });
+};
+BackButton.Slot = BackButtonSlot;
+/* harmony default export */ const back_button = (BackButton);
+
+;// CONCATENATED MODULE: ./node_modules/tslib/tslib.es6.mjs
+/******************************************************************************
+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, SuppressedError, Symbol */
+
+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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+ return extendStatics(d, b);
+};
+
+function __extends(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ 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 __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
+ var _, done = false;
+ for (var i = decorators.length - 1; i >= 0; i--) {
+ var context = {};
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
+ if (kind === "accessor") {
+ if (result === void 0) continue;
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
+ if (_ = accept(result.get)) descriptor.get = _;
+ if (_ = accept(result.set)) descriptor.set = _;
+ if (_ = accept(result.init)) initializers.unshift(_);
+ }
+ else if (_ = accept(result)) {
+ if (kind === "field") initializers.unshift(_);
+ else descriptor[key] = _;
+ }
+ }
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
+ done = true;
+};
+
+function __runInitializers(thisArg, initializers, value) {
+ var useValue = arguments.length > 2;
+ for (var i = 0; i < initializers.length; i++) {
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
+ }
+ return useValue ? value : void 0;
+};
+
+function __propKey(x) {
+ return typeof x === "symbol" ? x : "".concat(x);
+};
+
+function __setFunctionName(f, name, prefix) {
+ if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
+};
+
+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 (g && (g = 0, op[0] && (_ = 0)), _) 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 };
+ }
+}
+
+var __createBinding = Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+});
+
+function __exportStar(m, o) {
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, 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;
+}
+
+/** @deprecated */
+function __spread() {
+ for (var ar = [], i = 0; i < arguments.length; i++)
+ ar = ar.concat(__read(arguments[i]));
+ return ar;
+}
+
+/** @deprecated */
+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 __spreadArray(to, from, pack) {
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
+ if (ar || !(i in from)) {
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
+ ar[i] = from[i];
+ }
+ }
+ return to.concat(ar || Array.prototype.slice.call(from));
+}
+
+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: false } : 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;
+};
+
+var __setModuleDefault = Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+};
+
+function __importStar(mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+}
+
+function __importDefault(mod) {
+ return (mod && mod.__esModule) ? mod : { default: mod };
+}
+
+function __classPrivateFieldGet(receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+}
+
+function __classPrivateFieldSet(receiver, state, value, kind, f) {
+ if (kind === "m") throw new TypeError("Private method is not writable");
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
+}
+
+function __classPrivateFieldIn(state, receiver) {
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
+ return typeof state === "function" ? receiver === state : state.has(receiver);
+}
+
+function __addDisposableResource(env, value, async) {
+ if (value !== null && value !== void 0) {
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
+ var dispose;
+ if (async) {
+ if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
+ dispose = value[Symbol.asyncDispose];
+ }
+ if (dispose === void 0) {
+ if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
+ dispose = value[Symbol.dispose];
+ }
+ if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
+ env.stack.push({ value: value, dispose: dispose, async: async });
+ }
+ else if (async) {
+ env.stack.push({ async: true });
+ }
+ return value;
+}
+
+var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
+ var e = new Error(message);
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
+};
+
+function __disposeResources(env) {
+ function fail(e) {
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
+ env.hasError = true;
+ }
+ function next() {
+ while (env.stack.length) {
+ var rec = env.stack.pop();
+ try {
+ var result = rec.dispose && rec.dispose.call(rec.value);
+ if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
+ }
+ catch (e) {
+ fail(e);
+ }
+ }
+ if (env.hasError) throw env.error;
+ }
+ return next();
+}
+
+/* harmony default export */ const tslib_es6 = ({
+ __extends,
+ __assign,
+ __rest,
+ __decorate,
+ __param,
+ __metadata,
+ __awaiter,
+ __generator,
+ __createBinding,
+ __exportStar,
+ __values,
+ __read,
+ __spread,
+ __spreadArrays,
+ __spreadArray,
+ __await,
+ __asyncGenerator,
+ __asyncDelegator,
+ __asyncValues,
+ __makeTemplateObject,
+ __importStar,
+ __importDefault,
+ __classPrivateFieldGet,
+ __classPrivateFieldSet,
+ __classPrivateFieldIn,
+ __addDisposableResource,
+ __disposeResources,
+});
+
+;// CONCATENATED MODULE: ./node_modules/lower-case/dist.es2015/index.js
+/**
+ * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt
+ */
+var SUPPORTED_LOCALE = {
+ tr: {
+ regexp: /\u0130|\u0049|\u0049\u0307/g,
+ map: {
+ İ: "\u0069",
+ I: "\u0131",
+ İ: "\u0069",
+ },
+ },
+ az: {
+ regexp: /\u0130/g,
+ map: {
+ İ: "\u0069",
+ I: "\u0131",
+ İ: "\u0069",
+ },
+ },
+ lt: {
+ regexp: /\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g,
+ map: {
+ I: "\u0069\u0307",
+ J: "\u006A\u0307",
+ Į: "\u012F\u0307",
+ Ì: "\u0069\u0307\u0300",
+ Í: "\u0069\u0307\u0301",
+ Ĩ: "\u0069\u0307\u0303",
+ },
+ },
+};
+/**
+ * Localized lower case.
+ */
+function localeLowerCase(str, locale) {
+ var lang = SUPPORTED_LOCALE[locale.toLowerCase()];
+ if (lang)
+ return lowerCase(str.replace(lang.regexp, function (m) { return lang.map[m]; }));
+ return lowerCase(str);
+}
+/**
+ * Lower case as a function.
+ */
+function lowerCase(str) {
+ return str.toLowerCase();
+}
+
+;// CONCATENATED MODULE: ./node_modules/no-case/dist.es2015/index.js
+
+// Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case").
+var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
+// Remove all non-word characters.
+var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
+/**
+ * Normalize the string into something other libraries can manipulate easier.
+ */
+function noCase(input, options) {
+ if (options === void 0) { options = {}; }
+ var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d;
+ var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
+ var start = 0;
+ var end = result.length;
+ // Trim the delimiter from around the output string.
+ while (result.charAt(start) === "\0")
+ start++;
+ while (result.charAt(end - 1) === "\0")
+ end--;
+ // Transform each token independently.
+ return result.slice(start, end).split("\0").map(transform).join(delimiter);
+}
+/**
+ * Replace `re` in the input string with the replacement value.
+ */
+function replace(input, re, value) {
+ if (re instanceof RegExp)
+ return input.replace(re, value);
+ return re.reduce(function (input, re) { return input.replace(re, value); }, input);
+}
+
+;// CONCATENATED MODULE: ./node_modules/dot-case/dist.es2015/index.js
+
+
+function dotCase(input, options) {
+ if (options === void 0) { options = {}; }
+ return noCase(input, __assign({ delimiter: "." }, options));
+}
+
+;// CONCATENATED MODULE: ./node_modules/param-case/dist.es2015/index.js
+
+
+function paramCase(input, options) {
+ if (options === void 0) { options = {}; }
+ return dotCase(input, __assign({ delimiter: "-" }, options));
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/create-template-part-modal/utils.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+const useExistingTemplateParts = () => {
+ return (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getEntityRecords('postType', TEMPLATE_PART_POST_TYPE, {
+ per_page: -1
+ }), []);
+};
+
+/**
+ * Return a unique template part title based on
+ * the given title and existing template parts.
+ *
+ * @param {string} title The original template part title.
+ * @param {Object} templateParts The array of template part entities.
+ * @return {string} A unique template part title.
+ */
+const getUniqueTemplatePartTitle = (title, templateParts) => {
+ const lowercaseTitle = title.toLowerCase();
+ const existingTitles = templateParts.map(templatePart => templatePart.title.rendered.toLowerCase());
+ if (!existingTitles.includes(lowercaseTitle)) {
+ return title;
+ }
+ let suffix = 2;
+ while (existingTitles.includes(`${lowercaseTitle} ${suffix}`)) {
+ suffix++;
+ }
+ return `${title} ${suffix}`;
+};
+
+/**
+ * Get a valid slug for a template part.
+ * Currently template parts only allow latin chars.
+ * The fallback slug will receive suffix by default.
+ *
+ * @param {string} title The template part title.
+ * @return {string} A valid template part slug.
+ */
+const getCleanTemplatePartSlug = title => {
+ return paramCase(title).replace(/[^\w-]+/g, '') || 'wp-custom-part';
+};
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/create-template-part-modal/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+function CreateTemplatePartModal({
+ modalTitle,
+ ...restProps
+}) {
+ const defaultModalTitle = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getPostType(TEMPLATE_PART_POST_TYPE)?.labels?.add_new_item, []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ title: modalTitle || defaultModalTitle,
+ onRequestClose: restProps.closeModal,
+ overlayClassName: "editor-create-template-part-modal",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CreateTemplatePartModalContents, {
+ ...restProps
+ })
+ });
+}
+function CreateTemplatePartModalContents({
+ defaultArea = TEMPLATE_PART_AREA_DEFAULT_CATEGORY,
+ blocks = [],
+ confirmLabel = (0,external_wp_i18n_namespaceObject.__)('Add'),
+ closeModal,
+ onCreate,
+ onError,
+ defaultTitle = ''
+}) {
+ const {
+ createErrorNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ const {
+ saveEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const existingTemplateParts = useExistingTemplateParts();
+ const [title, setTitle] = (0,external_wp_element_namespaceObject.useState)(defaultTitle);
+ const [area, setArea] = (0,external_wp_element_namespaceObject.useState)(defaultArea);
+ const [isSubmitting, setIsSubmitting] = (0,external_wp_element_namespaceObject.useState)(false);
+ const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(CreateTemplatePartModal);
+ const templatePartAreas = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).__experimentalGetDefaultTemplatePartAreas(), []);
+ async function createTemplatePart() {
+ if (!title || isSubmitting) {
+ return;
+ }
+ try {
+ setIsSubmitting(true);
+ const uniqueTitle = getUniqueTemplatePartTitle(title, existingTemplateParts);
+ const cleanSlug = getCleanTemplatePartSlug(uniqueTitle);
+ const templatePart = await saveEntityRecord('postType', TEMPLATE_PART_POST_TYPE, {
+ slug: cleanSlug,
+ title: uniqueTitle,
+ content: (0,external_wp_blocks_namespaceObject.serialize)(blocks),
+ area
+ }, {
+ throwOnError: true
+ });
+ await onCreate(templatePart);
+
+ // TODO: Add a success notice?
+ } catch (error) {
+ const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : (0,external_wp_i18n_namespaceObject.__)('An error occurred while creating the template part.');
+ createErrorNotice(errorMessage, {
+ type: 'snackbar'
+ });
+ onError?.();
+ } finally {
+ setIsSubmitting(false);
+ }
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ onSubmit: async event => {
+ event.preventDefault();
+ await createTemplatePart();
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "4",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __next40pxDefaultSize: true,
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Name'),
+ value: title,
+ onChange: setTitle,
+ required: true
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Area'),
+ id: `editor-create-template-part-modal__area-selection-${instanceId}`,
+ className: "editor-create-template-part-modal__area-base-control",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalRadioGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Area'),
+ className: "editor-create-template-part-modal__area-radio-group",
+ id: `editor-create-template-part-modal__area-selection-${instanceId}`,
+ onChange: setArea,
+ checked: area,
+ children: templatePartAreas.map(({
+ icon,
+ label,
+ area: value,
+ description
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalRadio, {
+ value: value,
+ className: "editor-create-template-part-modal__area-radio",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
+ align: "start",
+ justify: "start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ icon: icon
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.FlexBlock, {
+ className: "editor-create-template-part-modal__option-label",
+ children: [label, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ children: description
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ className: "editor-create-template-part-modal__checkbox",
+ children: area === value && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ icon: library_check
+ })
+ })]
+ })
+ }, label))
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ onClick: () => {
+ closeModal();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "primary",
+ type: "submit",
+ "aria-disabled": !title || isSubmitting,
+ isBusy: isSubmitting,
+ children: confirmLabel
+ })]
+ })]
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/next.js
+/**
+ * WordPress dependencies
+ */
+
+
+const next = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"
+ })
+});
+/* harmony default export */ const library_next = (next);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/previous.js
+/**
+ * WordPress dependencies
+ */
+
+
+const previous = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"
+ })
+});
+/* harmony default export */ const library_previous = (previous);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/collapsible-block-toolbar/index.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+const {
+ useHasBlockToolbar
+} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+function CollapsableBlockToolbar({
+ isCollapsed,
+ onToggle
+}) {
+ const {
+ blockSelectionStart
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ return {
+ blockSelectionStart: select(external_wp_blockEditor_namespaceObject.store).getBlockSelectionStart()
+ };
+ }, []);
+ const hasBlockToolbar = useHasBlockToolbar();
+ const hasBlockSelection = !!blockSelectionStart;
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ // If we have a new block selection, show the block tools
+ if (blockSelectionStart) {
+ onToggle(false);
+ }
+ }, [blockSelectionStart, onToggle]);
+ if (!hasBlockToolbar) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('editor-collapsible-block-toolbar', {
+ 'is-collapsed': isCollapsed || !hasBlockSelection
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockToolbar, {
+ hideDragHandle: true
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover.Slot, {
+ name: "block-toolbar"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "editor-collapsible-block-toolbar__toggle",
+ icon: isCollapsed ? library_next : library_previous,
+ onClick: () => {
+ onToggle(!isCollapsed);
+ },
+ label: isCollapsed ? (0,external_wp_i18n_namespaceObject.__)('Show block tools') : (0,external_wp_i18n_namespaceObject.__)('Hide block tools'),
+ size: "compact"
+ })]
+ });
+}
+/* harmony default export */ const collapsible_block_toolbar = (CollapsableBlockToolbar);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js
+/**
+ * WordPress dependencies
+ */
+
+
+const plus = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
+ })
+});
+/* harmony default export */ const library_plus = (plus);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/document-tools/index.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+function DocumentTools({
+ className,
+ disableBlockTools = false
+}) {
+ const {
+ setIsInserterOpened,
+ setIsListViewOpened
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ const {
+ isDistractionFree,
+ isInserterOpened,
+ isListViewOpen,
+ listViewShortcut,
+ inserterSidebarToggleRef,
+ listViewToggleRef,
+ hasFixedToolbar,
+ showIconLabels
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getSettings
+ } = select(external_wp_blockEditor_namespaceObject.store);
+ const {
+ get
+ } = select(external_wp_preferences_namespaceObject.store);
+ const {
+ isListViewOpened,
+ getEditorMode,
+ getInserterSidebarToggleRef,
+ getListViewToggleRef
+ } = unlock(select(store_store));
+ const {
+ getShortcutRepresentation
+ } = select(external_wp_keyboardShortcuts_namespaceObject.store);
+ const {
+ __unstableGetEditorMode
+ } = select(external_wp_blockEditor_namespaceObject.store);
+ return {
+ isInserterOpened: select(store_store).isInserterOpened(),
+ isListViewOpen: isListViewOpened(),
+ listViewShortcut: getShortcutRepresentation('core/editor/toggle-list-view'),
+ inserterSidebarToggleRef: getInserterSidebarToggleRef(),
+ listViewToggleRef: getListViewToggleRef(),
+ hasFixedToolbar: getSettings().hasFixedToolbar,
+ showIconLabels: get('core', 'showIconLabels'),
+ isDistractionFree: get('core', 'distractionFree'),
+ isVisualMode: getEditorMode() === 'visual',
+ isZoomedOutView: __unstableGetEditorMode() === 'zoom-out'
+ };
+ }, []);
+ const preventDefault = event => {
+ // Because the inserter behaves like a dialog,
+ // if the inserter is opened already then when we click on the toggle button
+ // then the initial click event will close the inserter and then be propagated
+ // to the inserter toggle and it will open it again.
+ // To prevent this we need to stop the propagation of the event.
+ // This won't be necessary when the inserter no longer behaves like a dialog.
+
+ if (isInserterOpened) {
+ event.preventDefault();
+ }
+ };
+ const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
+ const isWideViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('wide');
+
+ /* translators: accessibility text for the editor toolbar */
+ const toolbarAriaLabel = (0,external_wp_i18n_namespaceObject.__)('Document tools');
+ const toggleListView = (0,external_wp_element_namespaceObject.useCallback)(() => setIsListViewOpened(!isListViewOpen), [setIsListViewOpened, isListViewOpen]);
+ const toggleInserter = (0,external_wp_element_namespaceObject.useCallback)(() => setIsInserterOpened(!isInserterOpened), [isInserterOpened, setIsInserterOpened]);
+
+ /* translators: button label text should, if possible, be under 16 characters. */
+ const longLabel = (0,external_wp_i18n_namespaceObject._x)('Toggle block inserter', 'Generic label for block inserter button');
+ const shortLabel = !isInserterOpened ? (0,external_wp_i18n_namespaceObject.__)('Add') : (0,external_wp_i18n_namespaceObject.__)('Close');
+ return (
+ /*#__PURE__*/
+ // Some plugins expect and use the `edit-post-header-toolbar` CSS class to
+ // find the toolbar and inject UI elements into it. This is not officially
+ // supported, but we're keeping it in the list of class names for backwards
+ // compatibility.
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.NavigableToolbar, {
+ className: dist_clsx('editor-document-tools', 'edit-post-header-toolbar', className),
+ "aria-label": toolbarAriaLabel,
+ variant: "unstyled",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-document-tools__left",
+ children: [!isDistractionFree && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
+ ref: inserterSidebarToggleRef,
+ as: external_wp_components_namespaceObject.Button,
+ className: "editor-document-tools__inserter-toggle",
+ variant: "primary",
+ isPressed: isInserterOpened,
+ onMouseDown: preventDefault,
+ onClick: toggleInserter,
+ disabled: disableBlockTools,
+ icon: library_plus,
+ label: showIconLabels ? shortLabel : longLabel,
+ showTooltip: !showIconLabels,
+ "aria-expanded": isInserterOpened
+ }), (isWideViewport || !showIconLabels) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [isLargeViewport && !hasFixedToolbar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
+ as: external_wp_blockEditor_namespaceObject.ToolSelector,
+ showTooltip: !showIconLabels,
+ variant: showIconLabels ? 'tertiary' : undefined,
+ disabled: disableBlockTools,
+ size: "compact"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
+ as: editor_history_undo,
+ showTooltip: !showIconLabels,
+ variant: showIconLabels ? 'tertiary' : undefined,
+ size: "compact"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
+ as: editor_history_redo,
+ showTooltip: !showIconLabels,
+ variant: showIconLabels ? 'tertiary' : undefined,
+ size: "compact"
+ }), !isDistractionFree && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
+ as: external_wp_components_namespaceObject.Button,
+ className: "editor-document-tools__document-overview-toggle",
+ icon: list_view,
+ disabled: disableBlockTools,
+ isPressed: isListViewOpen
+ /* translators: button label text should, if possible, be under 16 characters. */,
+ label: (0,external_wp_i18n_namespaceObject.__)('Document Overview'),
+ onClick: toggleListView,
+ shortcut: listViewShortcut,
+ showTooltip: !showIconLabels,
+ variant: showIconLabels ? 'tertiary' : undefined,
+ "aria-expanded": isListViewOpen,
+ ref: listViewToggleRef,
+ size: "compact"
+ })]
+ })]
+ })
+ })
+ );
+}
+/* harmony default export */ const document_tools = (DocumentTools);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
+/**
+ * WordPress dependencies
+ */
+
+
+const moreVertical = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
+ })
+});
+/* harmony default export */ const more_vertical = (moreVertical);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/more-menu/copy-content-menu-item.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+function CopyContentMenuItem() {
+ const {
+ createNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ const {
+ getCurrentPostId,
+ getCurrentPostType
+ } = (0,external_wp_data_namespaceObject.useSelect)(store_store);
+ const {
+ getEditedEntityRecord
+ } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_coreData_namespaceObject.store);
+ function getText() {
+ const record = getEditedEntityRecord('postType', getCurrentPostType(), getCurrentPostId());
+ if (!record) {
+ return '';
+ }
+ if (typeof record.content === 'function') {
+ return record.content(record);
+ } else if (record.blocks) {
+ return (0,external_wp_blocks_namespaceObject.__unstableSerializeAndClean)(record.blocks);
+ } else if (record.content) {
+ return record.content;
+ }
+ }
+ function onSuccess() {
+ createNotice('info', (0,external_wp_i18n_namespaceObject.__)('All content copied.'), {
+ isDismissible: true,
+ type: 'snackbar'
+ });
+ }
+ const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(getText, onSuccess);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ ref: ref,
+ children: (0,external_wp_i18n_namespaceObject.__)('Copy all blocks')
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/mode-switcher/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+/**
+ * Set of available mode options.
+ *
+ * @type {Array}
+ */
+
+const MODES = [{
+ value: 'visual',
+ label: (0,external_wp_i18n_namespaceObject.__)('Visual editor')
+}, {
+ value: 'text',
+ label: (0,external_wp_i18n_namespaceObject.__)('Code editor')
+}];
+function ModeSwitcher() {
+ const {
+ shortcut,
+ isRichEditingEnabled,
+ isCodeEditingEnabled,
+ mode
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => ({
+ shortcut: select(external_wp_keyboardShortcuts_namespaceObject.store).getShortcutRepresentation('core/editor/toggle-mode'),
+ isRichEditingEnabled: select(store_store).getEditorSettings().richEditingEnabled,
+ isCodeEditingEnabled: select(store_store).getEditorSettings().codeEditingEnabled,
+ mode: select(store_store).getEditorMode()
+ }), []);
+ const {
+ switchEditorMode
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ let selectedMode = mode;
+ if (!isRichEditingEnabled && mode === 'visual') {
+ selectedMode = 'text';
+ }
+ if (!isCodeEditingEnabled && mode === 'text') {
+ selectedMode = 'visual';
+ }
+ const choices = MODES.map(choice => {
+ if (!isCodeEditingEnabled && choice.value === 'text') {
+ choice = {
+ ...choice,
+ disabled: true
+ };
+ }
+ if (!isRichEditingEnabled && choice.value === 'visual') {
+ choice = {
+ ...choice,
+ disabled: true,
+ info: (0,external_wp_i18n_namespaceObject.__)('You can enable the visual editor in your profile settings.')
+ };
+ }
+ if (choice.value !== selectedMode && !choice.disabled) {
+ return {
+ ...choice,
+ shortcut
+ };
+ }
+ return choice;
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Editor'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItemsChoice, {
+ choices: choices,
+ value: selectedMode,
+ onSelect: switchEditorMode
+ })
+ });
+}
+/* harmony default export */ const mode_switcher = (ModeSwitcher);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/more-menu/tools-more-menu-group.js
+/**
+ * WordPress dependencies
+ */
+
+
+const {
+ Fill: ToolsMoreMenuGroup,
+ Slot: tools_more_menu_group_Slot
+} = (0,external_wp_components_namespaceObject.createSlotFill)('ToolsMoreMenuGroup');
+ToolsMoreMenuGroup.Slot = ({
+ fillProps
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tools_more_menu_group_Slot, {
+ fillProps: fillProps
+});
+/* harmony default export */ const tools_more_menu_group = (ToolsMoreMenuGroup);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/more-menu/view-more-menu-group.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+const {
+ Fill: ViewMoreMenuGroup,
+ Slot: view_more_menu_group_Slot
+} = (0,external_wp_components_namespaceObject.createSlotFill)(external_wp_element_namespaceObject.Platform.OS === 'web' ? Symbol('ViewMoreMenuGroup') : 'ViewMoreMenuGroup');
+ViewMoreMenuGroup.Slot = ({
+ fillProps
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_more_menu_group_Slot, {
+ fillProps: fillProps
+});
+/* harmony default export */ const view_more_menu_group = (ViewMoreMenuGroup);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/more-menu/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+
+function MoreMenu() {
+ const {
+ openModal
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const {
+ set: setPreference
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
+ const {
+ toggleDistractionFree
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ const showIconLabels = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_preferences_namespaceObject.store).get('core', 'showIconLabels'), []);
+ const turnOffDistractionFree = () => {
+ setPreference('core', 'distractionFree', false);
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
+ icon: more_vertical,
+ label: (0,external_wp_i18n_namespaceObject.__)('Options'),
+ popoverProps: {
+ placement: 'bottom-end',
+ className: 'more-menu-dropdown__content'
+ },
+ toggleProps: {
+ showTooltip: !showIconLabels,
+ ...(showIconLabels && {
+ variant: 'tertiary'
+ }),
+ tooltipPosition: 'bottom',
+ size: 'compact'
+ },
+ children: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ label: (0,external_wp_i18n_namespaceObject._x)('View', 'noun'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
+ scope: "core",
+ name: "fixedToolbar",
+ onToggle: turnOffDistractionFree,
+ label: (0,external_wp_i18n_namespaceObject.__)('Top toolbar'),
+ info: (0,external_wp_i18n_namespaceObject.__)('Access all block and document tools in a single place'),
+ messageActivated: (0,external_wp_i18n_namespaceObject.__)('Top toolbar activated'),
+ messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Top toolbar deactivated')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
+ scope: "core",
+ name: "distractionFree",
+ label: (0,external_wp_i18n_namespaceObject.__)('Distraction free'),
+ info: (0,external_wp_i18n_namespaceObject.__)('Write with calmness'),
+ handleToggling: false,
+ onToggle: toggleDistractionFree,
+ messageActivated: (0,external_wp_i18n_namespaceObject.__)('Distraction free mode activated'),
+ messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Distraction free mode deactivated'),
+ shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primaryShift('\\')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
+ scope: "core",
+ name: "focusMode",
+ label: (0,external_wp_i18n_namespaceObject.__)('Spotlight mode'),
+ info: (0,external_wp_i18n_namespaceObject.__)('Focus on one block at a time'),
+ messageActivated: (0,external_wp_i18n_namespaceObject.__)('Spotlight mode activated'),
+ messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Spotlight mode deactivated')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_more_menu_group.Slot, {
+ fillProps: {
+ onClose
+ }
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(mode_switcher, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(action_item.Slot, {
+ name: "core/plugin-more-menu",
+ label: (0,external_wp_i18n_namespaceObject.__)('Plugins'),
+ as: external_wp_components_namespaceObject.MenuGroup,
+ fillProps: {
+ onClick: onClose
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Tools'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => openModal('editor/keyboard-shortcut-help'),
+ shortcut: external_wp_keycodes_namespaceObject.displayShortcut.access('h'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CopyContentMenuItem, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuItem, {
+ icon: library_external,
+ href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/wordpress-block-editor/'),
+ target: "_blank",
+ rel: "noopener noreferrer",
+ children: [(0,external_wp_i18n_namespaceObject.__)('Help'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ as: "span",
+ children: /* translators: accessibility text */
+ (0,external_wp_i18n_namespaceObject.__)('(opens in a new tab)')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tools_more_menu_group.Slot, {
+ fillProps: {
+ onClose
+ }
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => openModal('editor/preferences'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Preferences')
+ })
+ })]
+ })
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-publish-button/post-publish-button-or-toggle.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+function PostPublishButtonOrToggle({
+ forceIsDirty,
+ hasPublishAction,
+ isBeingScheduled,
+ isPending,
+ isPublished,
+ isPublishSidebarEnabled,
+ isPublishSidebarOpened,
+ isScheduled,
+ togglePublishSidebar,
+ setEntitiesSavedStatesCallback,
+ postStatusHasChanged,
+ postStatus
+}) {
+ const IS_TOGGLE = 'toggle';
+ const IS_BUTTON = 'button';
+ const isSmallerThanMediumViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
+ let component;
+
+ /**
+ * Conditions to show a BUTTON (publish directly) or a TOGGLE (open publish sidebar):
+ *
+ * 1) We want to show a BUTTON when the post status is at the _final stage_
+ * for a particular role (see https://wordpress.org/documentation/article/post-status/):
+ *
+ * - is published
+ * - post status has changed explicitely to something different than 'future' or 'publish'
+ * - is scheduled to be published
+ * - is pending and can't be published (but only for viewports >= medium).
+ * Originally, we considered showing a button for pending posts that couldn't be published
+ * (for example, for an author with the contributor role). Some languages can have
+ * long translations for "Submit for review", so given the lack of UI real estate available
+ * we decided to take into account the viewport in that case.
+ * See: https://github.com/WordPress/gutenberg/issues/10475
+ *
+ * 2) Then, in small viewports, we'll show a TOGGLE.
+ *
+ * 3) Finally, we'll use the publish sidebar status to decide:
+ *
+ * - if it is enabled, we show a TOGGLE
+ * - if it is disabled, we show a BUTTON
+ */
+ if (isPublished || postStatusHasChanged && !['future', 'publish'].includes(postStatus) || isScheduled && isBeingScheduled || isPending && !hasPublishAction && !isSmallerThanMediumViewport) {
+ component = IS_BUTTON;
+ } else if (isSmallerThanMediumViewport || isPublishSidebarEnabled) {
+ component = IS_TOGGLE;
+ } else {
+ component = IS_BUTTON;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_publish_button, {
+ forceIsDirty: forceIsDirty,
+ isOpen: isPublishSidebarOpened,
+ isToggle: component === IS_TOGGLE,
+ onToggle: togglePublishSidebar,
+ setEntitiesSavedStatesCallback: setEntitiesSavedStatesCallback
+ });
+}
+/* harmony default export */ const post_publish_button_or_toggle = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_data_namespaceObject.withSelect)(select => {
+ var _select$getCurrentPos;
+ return {
+ hasPublishAction: (_select$getCurrentPos = select(store_store).getCurrentPost()?._links?.['wp:action-publish']) !== null && _select$getCurrentPos !== void 0 ? _select$getCurrentPos : false,
+ isBeingScheduled: select(store_store).isEditedPostBeingScheduled(),
+ isPending: select(store_store).isCurrentPostPending(),
+ isPublished: select(store_store).isCurrentPostPublished(),
+ isPublishSidebarEnabled: select(store_store).isPublishSidebarEnabled(),
+ isPublishSidebarOpened: select(store_store).isPublishSidebarOpened(),
+ isScheduled: select(store_store).isCurrentPostScheduled(),
+ postStatus: select(store_store).getEditedPostAttribute('status'),
+ postStatusHasChanged: select(store_store).getPostEdits()?.status
+ };
+}), (0,external_wp_data_namespaceObject.withDispatch)(dispatch => {
+ const {
+ togglePublishSidebar
+ } = dispatch(store_store);
+ return {
+ togglePublishSidebar
+ };
+}))(PostPublishButtonOrToggle));
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-view-link/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+function PostViewLink() {
+ const {
+ hasLoaded,
+ permalink,
+ isPublished,
+ label,
+ showIconLabels
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ // Grab post type to retrieve the view_item label.
+ const postTypeSlug = select(store_store).getCurrentPostType();
+ const postType = select(external_wp_coreData_namespaceObject.store).getPostType(postTypeSlug);
+ const {
+ get
+ } = select(external_wp_preferences_namespaceObject.store);
+ return {
+ permalink: select(store_store).getPermalink(),
+ isPublished: select(store_store).isCurrentPostPublished(),
+ label: postType?.labels.view_item,
+ hasLoaded: !!postType,
+ showIconLabels: get('core', 'showIconLabels')
+ };
+ }, []);
+
+ // Only render the view button if the post is published and has a permalink.
+ if (!isPublished || !permalink || !hasLoaded) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ icon: library_external,
+ label: label || (0,external_wp_i18n_namespaceObject.__)('View post'),
+ href: permalink,
+ target: "_blank",
+ showTooltip: !showIconLabels,
+ size: "compact"
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/mobile.js
+/**
+ * WordPress dependencies
+ */
+
+
+const mobile = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"
+ })
+});
+/* harmony default export */ const library_mobile = (mobile);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/tablet.js
+/**
+ * WordPress dependencies
+ */
+
+
+const tablet = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"
+ })
+});
+/* harmony default export */ const library_tablet = (tablet);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/desktop.js
+/**
+ * WordPress dependencies
+ */
+
+
+const desktop = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"
+ })
+});
+/* harmony default export */ const library_desktop = (desktop);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/preview-dropdown/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+function PreviewDropdown({
+ forceIsAutosaveable,
+ disabled
+}) {
+ const {
+ deviceType,
+ homeUrl,
+ isTemplate,
+ isViewable,
+ showIconLabels
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ var _getPostType$viewable;
+ const {
+ getDeviceType,
+ getCurrentPostType
+ } = select(store_store);
+ const {
+ getUnstableBase,
+ getPostType
+ } = select(external_wp_coreData_namespaceObject.store);
+ const {
+ get
+ } = select(external_wp_preferences_namespaceObject.store);
+ const _currentPostType = getCurrentPostType();
+ return {
+ deviceType: getDeviceType(),
+ homeUrl: getUnstableBase()?.home,
+ isTemplate: _currentPostType === 'wp_template',
+ isViewable: (_getPostType$viewable = getPostType(_currentPostType)?.viewable) !== null && _getPostType$viewable !== void 0 ? _getPostType$viewable : false,
+ showIconLabels: get('core', 'showIconLabels')
+ };
+ }, []);
+ const {
+ setDeviceType
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ const isMobile = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
+ if (isMobile) {
+ return null;
+ }
+ const popoverProps = {
+ placement: 'bottom-end'
+ };
+ const toggleProps = {
+ className: 'editor-preview-dropdown__toggle',
+ size: 'compact',
+ showTooltip: !showIconLabels,
+ disabled,
+ __experimentalIsFocusable: disabled
+ };
+ const menuProps = {
+ 'aria-label': (0,external_wp_i18n_namespaceObject.__)('View options')
+ };
+ const deviceIcons = {
+ mobile: library_mobile,
+ tablet: library_tablet,
+ desktop: library_desktop
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
+ className: "editor-preview-dropdown",
+ popoverProps: popoverProps,
+ toggleProps: toggleProps,
+ menuProps: menuProps,
+ icon: deviceIcons[deviceType.toLowerCase()],
+ label: (0,external_wp_i18n_namespaceObject.__)('View'),
+ disableOpenOnArrowDown: disabled,
+ children: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => setDeviceType('Desktop'),
+ icon: deviceType === 'Desktop' && library_check,
+ children: (0,external_wp_i18n_namespaceObject.__)('Desktop')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => setDeviceType('Tablet'),
+ icon: deviceType === 'Tablet' && library_check,
+ children: (0,external_wp_i18n_namespaceObject.__)('Tablet')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => setDeviceType('Mobile'),
+ icon: deviceType === 'Mobile' && library_check,
+ children: (0,external_wp_i18n_namespaceObject.__)('Mobile')
+ })]
+ }), isTemplate && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuItem, {
+ href: homeUrl,
+ target: "_blank",
+ icon: library_external,
+ onClick: onClose,
+ children: [(0,external_wp_i18n_namespaceObject.__)('View site'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ as: "span",
+ children: /* translators: accessibility text */
+ (0,external_wp_i18n_namespaceObject.__)('(opens in a new tab)')
+ })]
+ })
+ }), isViewable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostPreviewButton, {
+ className: "editor-preview-dropdown__button-external",
+ role: "menuitem",
+ forceIsAutosaveable: forceIsAutosaveable,
+ textContent: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [(0,external_wp_i18n_namespaceObject.__)('Preview in new tab'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ icon: library_external
+ })]
+ }),
+ onPreview: onClose
+ })
+ })]
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/header/index.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+
+
+
+
+
+
+const toolbarVariations = {
+ distractionFreeDisabled: {
+ y: '-50px'
+ },
+ distractionFreeHover: {
+ y: 0
+ },
+ distractionFreeHidden: {
+ y: '-50px'
+ },
+ visible: {
+ y: 0
+ },
+ hidden: {
+ y: 0
+ }
+};
+const backButtonVariations = {
+ distractionFreeDisabled: {
+ x: '-100%'
+ },
+ distractionFreeHover: {
+ x: 0
+ },
+ distractionFreeHidden: {
+ x: '-100%'
+ },
+ visible: {
+ x: 0
+ },
+ hidden: {
+ x: 0
+ }
+};
+function Header({
+ customSaveButton,
+ forceIsDirty,
+ forceDisableBlockTools,
+ setEntitiesSavedStatesCallback,
+ title
+}) {
+ const isWideViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('large');
+ const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
+ const {
+ isTextEditor,
+ isPublishSidebarOpened,
+ showIconLabels,
+ hasFixedToolbar,
+ isNestedEntity,
+ isZoomedOutView
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ get: getPreference
+ } = select(external_wp_preferences_namespaceObject.store);
+ const {
+ getEditorMode,
+ getEditorSettings,
+ isPublishSidebarOpened: _isPublishSidebarOpened
+ } = select(store_store);
+ const {
+ __unstableGetEditorMode
+ } = select(external_wp_blockEditor_namespaceObject.store);
+ return {
+ isTextEditor: getEditorMode() === 'text',
+ isPublishSidebarOpened: _isPublishSidebarOpened(),
+ showIconLabels: getPreference('core', 'showIconLabels'),
+ hasFixedToolbar: getPreference('core', 'fixedToolbar'),
+ isNestedEntity: !!getEditorSettings().onNavigateToPreviousEntityRecord,
+ isZoomedOutView: __unstableGetEditorMode() === 'zoom-out'
+ };
+ }, []);
+ const hasTopToolbar = isLargeViewport && hasFixedToolbar;
+ const [isBlockToolsCollapsed, setIsBlockToolsCollapsed] = (0,external_wp_element_namespaceObject.useState)(true);
+
+ // The edit-post-header classname is only kept for backward compatibilty
+ // as some plugins might be relying on its presence.
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-header edit-post-header",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ variants: backButtonVariations,
+ transition: {
+ type: 'tween'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(back_button.Slot, {})
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ variants: toolbarVariations,
+ className: "editor-header__toolbar",
+ transition: {
+ type: 'tween'
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(document_tools, {
+ disableBlockTools: forceDisableBlockTools || isTextEditor
+ }), hasTopToolbar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(collapsible_block_toolbar, {
+ isCollapsed: isBlockToolsCollapsed,
+ onToggle: setIsBlockToolsCollapsed
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('editor-header__center', {
+ 'is-collapsed': !isBlockToolsCollapsed && hasTopToolbar
+ }),
+ children: !title ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DocumentBar, {}) : title
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__unstableMotion.div, {
+ variants: toolbarVariations,
+ transition: {
+ type: 'tween'
+ },
+ className: "editor-header__settings",
+ children: [!customSaveButton && !isPublishSidebarOpened &&
+ /*#__PURE__*/
+ // This button isn't completely hidden by the publish sidebar.
+ // We can't hide the whole toolbar when the publish sidebar is open because
+ // we want to prevent mounting/unmounting the PostPublishButtonOrToggle DOM node.
+ // We track that DOM node to return focus to the PostPublishButtonOrToggle
+ // when the publish sidebar has been closed.
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)(PostSavedState, {
+ forceIsDirty: forceIsDirty
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreviewDropdown, {
+ forceIsAutosaveable: forceIsDirty,
+ disabled: isNestedEntity || isZoomedOutView
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostPreviewButton, {
+ className: "editor-header__post-preview-button",
+ forceIsAutosaveable: forceIsDirty
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostViewLink, {}), !customSaveButton && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_publish_button_or_toggle, {
+ forceIsDirty: forceIsDirty,
+ setEntitiesSavedStatesCallback: setEntitiesSavedStatesCallback
+ }), customSaveButton, (isWideViewport || !showIconLabels) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(pinned_items.Slot, {
+ scope: "core"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MoreMenu, {})]
+ })]
+ });
+}
+/* harmony default export */ const components_header = (Header);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/inserter-sidebar/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+const {
+ PrivateInserterLibrary
+} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+function InserterSidebar() {
+ const {
+ blockSectionRootClientId,
+ inserterSidebarToggleRef,
+ insertionPoint,
+ showMostUsedBlocks,
+ sidebarIsOpened
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getInserterSidebarToggleRef,
+ getInsertionPoint,
+ isPublishSidebarOpened
+ } = unlock(select(store_store));
+ const {
+ getBlockRootClientId,
+ __unstableGetEditorMode,
+ getSettings
+ } = select(external_wp_blockEditor_namespaceObject.store);
+ const {
+ get
+ } = select(external_wp_preferences_namespaceObject.store);
+ const {
+ getActiveComplementaryArea
+ } = select(store);
+ const getBlockSectionRootClientId = () => {
+ if (__unstableGetEditorMode() === 'zoom-out') {
+ const {
+ sectionRootClientId
+ } = unlock(getSettings());
+ if (sectionRootClientId) {
+ return sectionRootClientId;
+ }
+ }
+ return getBlockRootClientId();
+ };
+ return {
+ inserterSidebarToggleRef: getInserterSidebarToggleRef(),
+ insertionPoint: getInsertionPoint(),
+ showMostUsedBlocks: get('core', 'mostUsedBlocks'),
+ blockSectionRootClientId: getBlockSectionRootClientId(),
+ sidebarIsOpened: !!(getActiveComplementaryArea('core') || isPublishSidebarOpened())
+ };
+ }, []);
+ const {
+ setIsInserterOpened
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ const {
+ disableComplementaryArea
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
+ const [inserterDialogRef, inserterDialogProps] = (0,external_wp_compose_namespaceObject.__experimentalUseDialog)({
+ onClose: () => setIsInserterOpened(false),
+ focusOnMount: true
+ });
+ const libraryRef = (0,external_wp_element_namespaceObject.useRef)();
+
+ // When closing the inserter, focus should return to the toggle button.
+ const closeInserterSidebar = (0,external_wp_element_namespaceObject.useCallback)(() => {
+ setIsInserterOpened(false);
+ inserterSidebarToggleRef.current?.focus();
+ }, [inserterSidebarToggleRef, setIsInserterOpened]);
+ const closeOnEscape = (0,external_wp_element_namespaceObject.useCallback)(event => {
+ if (event.keyCode === external_wp_keycodes_namespaceObject.ESCAPE && !event.defaultPrevented) {
+ event.preventDefault();
+ closeInserterSidebar();
+ }
+ }, [closeInserterSidebar]);
+ const inserterContents = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-inserter-sidebar__content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivateInserterLibrary, {
+ showMostUsedBlocks: showMostUsedBlocks,
+ showInserterHelpPanel: true,
+ shouldFocusBlock: isMobileViewport,
+ rootClientId: blockSectionRootClientId !== null && blockSectionRootClientId !== void 0 ? blockSectionRootClientId : insertionPoint.rootClientId,
+ __experimentalInsertionIndex: insertionPoint.insertionIndex,
+ __experimentalInitialTab: insertionPoint.tab,
+ __experimentalInitialCategory: insertionPoint.category,
+ __experimentalFilterValue: insertionPoint.filterValue,
+ onPatternCategorySelection: sidebarIsOpened ? () => disableComplementaryArea('core') : undefined,
+ ref: libraryRef,
+ onClose: closeInserterSidebar
+ })
+ });
+ if (window.__experimentalEnableZoomedOutPatternsTab) {
+ return (
+ /*#__PURE__*/
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ onKeyDown: closeOnEscape,
+ className: "editor-inserter-sidebar",
+ children: inserterContents
+ })
+ );
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ref: inserterDialogRef,
+ ...inserterDialogProps,
+ className: "editor-inserter-sidebar",
+ children: inserterContents
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/list-view-sidebar/list-view-outline.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+function ListViewOutline() {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-list-view-sidebar__outline",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Characters:')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CharacterCount, {})
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Words:')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WordCount, {})]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Time to read:')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TimeToRead, {})]
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DocumentOutline, {})]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/list-view-sidebar/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+const {
+ Tabs
+} = unlock(external_wp_components_namespaceObject.privateApis);
+function ListViewSidebar() {
+ const {
+ setIsListViewOpened
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ const {
+ getListViewToggleRef
+ } = unlock((0,external_wp_data_namespaceObject.useSelect)(store_store));
+
+ // This hook handles focus when the sidebar first renders.
+ const focusOnMountRef = (0,external_wp_compose_namespaceObject.useFocusOnMount)('firstElement');
+
+ // When closing the list view, focus should return to the toggle button.
+ const closeListView = (0,external_wp_element_namespaceObject.useCallback)(() => {
+ setIsListViewOpened(false);
+ getListViewToggleRef().current?.focus();
+ }, [getListViewToggleRef, setIsListViewOpened]);
+ const closeOnEscape = (0,external_wp_element_namespaceObject.useCallback)(event => {
+ if (event.keyCode === external_wp_keycodes_namespaceObject.ESCAPE && !event.defaultPrevented) {
+ event.preventDefault();
+ closeListView();
+ }
+ }, [closeListView]);
+
+ // Use internal state instead of a ref to make sure that the component
+ // re-renders when the dropZoneElement updates.
+ const [dropZoneElement, setDropZoneElement] = (0,external_wp_element_namespaceObject.useState)(null);
+ // Tracks our current tab.
+ const [tab, setTab] = (0,external_wp_element_namespaceObject.useState)('list-view');
+
+ // This ref refers to the sidebar as a whole.
+ const sidebarRef = (0,external_wp_element_namespaceObject.useRef)();
+ // This ref refers to the tab panel.
+ const tabsRef = (0,external_wp_element_namespaceObject.useRef)();
+ // This ref refers to the list view application area.
+ const listViewRef = (0,external_wp_element_namespaceObject.useRef)();
+
+ // Must merge the refs together so focus can be handled properly in the next function.
+ const listViewContainerRef = (0,external_wp_compose_namespaceObject.useMergeRefs)([focusOnMountRef, listViewRef, setDropZoneElement]);
+
+ /*
+ * Callback function to handle list view or outline focus.
+ *
+ * @param {string} currentTab The current tab. Either list view or outline.
+ *
+ * @return void
+ */
+ function handleSidebarFocus(currentTab) {
+ // Tab panel focus.
+ const tabPanelFocus = external_wp_dom_namespaceObject.focus.tabbable.find(tabsRef.current)[0];
+ // List view tab is selected.
+ if (currentTab === 'list-view') {
+ // Either focus the list view or the tab panel. Must have a fallback because the list view does not render when there are no blocks.
+ const listViewApplicationFocus = external_wp_dom_namespaceObject.focus.tabbable.find(listViewRef.current)[0];
+ const listViewFocusArea = sidebarRef.current.contains(listViewApplicationFocus) ? listViewApplicationFocus : tabPanelFocus;
+ listViewFocusArea.focus();
+ // Outline tab is selected.
+ } else {
+ tabPanelFocus.focus();
+ }
+ }
+ const handleToggleListViewShortcut = (0,external_wp_element_namespaceObject.useCallback)(() => {
+ // If the sidebar has focus, it is safe to close.
+ if (sidebarRef.current.contains(sidebarRef.current.ownerDocument.activeElement)) {
+ closeListView();
+ } else {
+ // If the list view or outline does not have focus, focus should be moved to it.
+ handleSidebarFocus(tab);
+ }
+ }, [closeListView, tab]);
+
+ // This only fires when the sidebar is open because of the conditional rendering.
+ // It is the same shortcut to open but that is defined as a global shortcut and only fires when the sidebar is closed.
+ (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/editor/toggle-list-view', handleToggleListViewShortcut);
+ return (
+ /*#__PURE__*/
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
+ (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-list-view-sidebar",
+ onKeyDown: closeOnEscape,
+ ref: sidebarRef,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tabs, {
+ onSelect: tabName => setTab(tabName),
+ selectOnMove: false
+ // The initial tab value is set explicitly to avoid an initial
+ // render where no tab is selected. This ensures that the
+ // tabpanel height is correct so the relevant scroll container
+ // can be rendered internally.
+ ,
+ defaultTabId: "list-view",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-list-view-sidebar__header",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "editor-list-view-sidebar__close-button",
+ icon: close_small,
+ label: (0,external_wp_i18n_namespaceObject.__)('Close'),
+ onClick: closeListView,
+ size: "small"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tabs.TabList, {
+ className: "editor-list-view-sidebar__tabs-tablist",
+ ref: tabsRef,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.Tab, {
+ className: "editor-list-view-sidebar__tabs-tab",
+ tabId: "list-view",
+ children: (0,external_wp_i18n_namespaceObject._x)('List View', 'Post overview')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.Tab, {
+ className: "editor-list-view-sidebar__tabs-tab",
+ tabId: "outline",
+ children: (0,external_wp_i18n_namespaceObject._x)('Outline', 'Post overview')
+ })]
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.TabPanel, {
+ ref: listViewContainerRef,
+ className: "editor-list-view-sidebar__tabs-tabpanel",
+ tabId: "list-view",
+ focusable: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-list-view-sidebar__list-view-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-list-view-sidebar__list-view-panel-content",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalListView, {
+ dropZoneElement: dropZoneElement
+ })
+ })
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.TabPanel, {
+ className: "editor-list-view-sidebar__tabs-tabpanel",
+ tabId: "outline",
+ focusable: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-list-view-sidebar__list-view-container",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ListViewOutline, {})
+ })
+ })]
+ })
+ })
+ );
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/save-publish-panels/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+
+const {
+ Fill: save_publish_panels_Fill,
+ Slot: save_publish_panels_Slot
+} = (0,external_wp_components_namespaceObject.createSlotFill)('ActionsPanel');
+const ActionsPanelFill = (/* unused pure expression or super */ null && (save_publish_panels_Fill));
+function SavePublishPanels({
+ setEntitiesSavedStatesCallback,
+ closeEntitiesSavedStates,
+ isEntitiesSavedStatesOpen,
+ forceIsDirtyPublishPanel
+}) {
+ const {
+ closePublishSidebar,
+ togglePublishSidebar
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ const {
+ publishSidebarOpened,
+ isPublishable,
+ isDirty,
+ hasOtherEntitiesChanges
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ isPublishSidebarOpened,
+ isEditedPostPublishable,
+ isCurrentPostPublished,
+ isEditedPostDirty,
+ hasNonPostEntityChanges
+ } = select(store_store);
+ const _hasOtherEntitiesChanges = hasNonPostEntityChanges();
+ return {
+ publishSidebarOpened: isPublishSidebarOpened(),
+ isPublishable: !isCurrentPostPublished() && isEditedPostPublishable(),
+ isDirty: _hasOtherEntitiesChanges || isEditedPostDirty(),
+ hasOtherEntitiesChanges: _hasOtherEntitiesChanges
+ };
+ }, []);
+ const openEntitiesSavedStates = (0,external_wp_element_namespaceObject.useCallback)(() => setEntitiesSavedStatesCallback(true), []);
+
+ // It is ok for these components to be unmounted when not in visual use.
+ // We don't want more than one present at a time, decide which to render.
+ let unmountableContent;
+ if (publishSidebarOpened) {
+ unmountableContent = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_publish_panel, {
+ onClose: closePublishSidebar,
+ forceIsDirty: forceIsDirtyPublishPanel,
+ PrePublishExtension: plugin_pre_publish_panel.Slot,
+ PostPublishExtension: plugin_post_publish_panel.Slot
+ });
+ } else if (isPublishable && !hasOtherEntitiesChanges) {
+ unmountableContent = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-layout__toggle-publish-panel",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "secondary",
+ className: "editor-layout__toggle-publish-panel-button",
+ onClick: togglePublishSidebar,
+ "aria-expanded": false,
+ children: (0,external_wp_i18n_namespaceObject.__)('Open publish panel')
+ })
+ });
+ } else {
+ unmountableContent = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-layout__toggle-entities-saved-states-panel",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "secondary",
+ className: "editor-layout__toggle-entities-saved-states-panel-button",
+ onClick: openEntitiesSavedStates,
+ "aria-expanded": false,
+ disabled: !isDirty,
+ __experimentalIsFocusable: true,
+ children: (0,external_wp_i18n_namespaceObject.__)('Open save panel')
+ })
+ });
+ }
+
+ // Since EntitiesSavedStates controls its own panel, we can keep it
+ // always mounted to retain its own component state (such as checkboxes).
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [isEntitiesSavedStatesOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EntitiesSavedStates, {
+ close: closeEntitiesSavedStates
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(save_publish_panels_Slot, {
+ bubblesVirtually: true
+ }), !isEntitiesSavedStatesOpen && unmountableContent]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/text-editor/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+function TextEditor({
+ autoFocus = false
+}) {
+ const {
+ switchEditorMode
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ const {
+ shortcut,
+ isRichEditingEnabled
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getEditorSettings
+ } = select(store_store);
+ const {
+ getShortcutRepresentation
+ } = select(external_wp_keyboardShortcuts_namespaceObject.store);
+ return {
+ shortcut: getShortcutRepresentation('core/editor/toggle-mode'),
+ isRichEditingEnabled: getEditorSettings().richEditingEnabled
+ };
+ }, []);
+ const titleRef = (0,external_wp_element_namespaceObject.useRef)();
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ if (autoFocus) {
+ return;
+ }
+ titleRef?.current?.focus();
+ }, [autoFocus]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-text-editor",
+ children: [isRichEditingEnabled && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-text-editor__toolbar",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ children: (0,external_wp_i18n_namespaceObject.__)('Editing code')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: () => switchEditorMode('visual'),
+ shortcut: shortcut,
+ children: (0,external_wp_i18n_namespaceObject.__)('Exit code editor')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-text-editor__body",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_title_raw, {
+ ref: titleRef
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostTextEditor, {})]
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/visual-editor/edit-template-blocks-notification.js
/**
* WordPress dependencies
*/
@@ -15343,6 +24267,7 @@ function cleanForSlug(string) {
* @param {import('react').RefObject<HTMLElement>} props.contentRef Ref to the block
* editor iframe canvas.
*/
+
function EditTemplateBlocksNotification({
contentRef
}) {
@@ -15359,57 +24284,31 @@ function EditTemplateBlocksNotification({
templateId: getCurrentTemplateId()
};
}, []);
- const {
- getNotices
- } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_notices_namespaceObject.store);
- const {
- createInfoNotice,
- removeNotice
- } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ const canEditTemplate = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ var _select$canUser;
+ return (_select$canUser = select(external_wp_coreData_namespaceObject.store).canUser('create', 'templates')) !== null && _select$canUser !== void 0 ? _select$canUser : false;
+ });
const [isDialogOpen, setIsDialogOpen] = (0,external_wp_element_namespaceObject.useState)(false);
- const lastNoticeId = (0,external_wp_element_namespaceObject.useRef)(0);
(0,external_wp_element_namespaceObject.useEffect)(() => {
- const handleClick = async event => {
- if (!event.target.classList.contains('is-root-container')) {
- return;
- }
- const isNoticeAlreadyShowing = getNotices().some(notice => notice.id === lastNoticeId.current);
- if (isNoticeAlreadyShowing) {
+ const handleDblClick = event => {
+ if (!canEditTemplate) {
return;
}
- const {
- notice
- } = await createInfoNotice((0,external_wp_i18n_namespaceObject.__)('Edit your template to edit this block.'), {
- isDismissible: true,
- type: 'snackbar',
- actions: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Edit template'),
- onClick: () => onNavigateToEntityRecord({
- postId: templateId,
- postType: 'wp_template'
- })
- }]
- });
- lastNoticeId.current = notice.id;
- };
- const handleDblClick = event => {
if (!event.target.classList.contains('is-root-container')) {
return;
}
- if (lastNoticeId.current) {
- removeNotice(lastNoticeId.current);
- }
setIsDialogOpen(true);
};
const canvas = contentRef.current;
- canvas?.addEventListener('click', handleClick);
canvas?.addEventListener('dblclick', handleDblClick);
return () => {
- canvas?.removeEventListener('click', handleClick);
canvas?.removeEventListener('dblclick', handleDblClick);
};
- }, [lastNoticeId, contentRef, getNotices, createInfoNotice, onNavigateToEntityRecord, templateId, removeNotice]);
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
+ }, [contentRef, canEditTemplate]);
+ if (!canEditTemplate) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
isOpen: isDialogOpen,
confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Edit template'),
onConfirm: () => {
@@ -15419,12 +24318,239 @@ function EditTemplateBlocksNotification({
postType: 'wp_template'
});
},
- onCancel: () => setIsDialogOpen(false)
- }, (0,external_wp_i18n_namespaceObject.__)('Edit your template to edit this block.'));
+ onCancel: () => setIsDialogOpen(false),
+ size: "medium",
+ children: (0,external_wp_i18n_namespaceObject.__)('You’ve tried to select a block that is part of a template, which may be used on other posts and pages. Would you like to edit the template?')
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/resizable-editor/resize-handle.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+const DELTA_DISTANCE = 20; // The distance to resize per keydown in pixels.
+
+function ResizeHandle({
+ direction,
+ resizeWidthBy
+}) {
+ function handleKeyDown(event) {
+ const {
+ keyCode
+ } = event;
+ if (direction === 'left' && keyCode === external_wp_keycodes_namespaceObject.LEFT || direction === 'right' && keyCode === external_wp_keycodes_namespaceObject.RIGHT) {
+ resizeWidthBy(DELTA_DISTANCE);
+ } else if (direction === 'left' && keyCode === external_wp_keycodes_namespaceObject.RIGHT || direction === 'right' && keyCode === external_wp_keycodes_namespaceObject.LEFT) {
+ resizeWidthBy(-DELTA_DISTANCE);
+ }
+ }
+ const resizeHandleVariants = {
+ active: {
+ opacity: 1,
+ scaleY: 1.3
+ }
+ };
+ const resizableHandleHelpId = `resizable-editor__resize-help-${direction}`;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Tooltip, {
+ text: (0,external_wp_i18n_namespaceObject.__)('Drag to resize'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableMotion.button, {
+ className: `editor-resizable-editor__resize-handle is-${direction}`,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Drag to resize'),
+ "aria-describedby": resizableHandleHelpId,
+ onKeyDown: handleKeyDown,
+ variants: resizeHandleVariants,
+ whileFocus: "active",
+ whileHover: "active",
+ whileTap: "active",
+ role: "separator",
+ "aria-orientation": "vertical"
+ }, "handle")
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
+ id: resizableHandleHelpId,
+ children: (0,external_wp_i18n_namespaceObject.__)('Use left and right arrow keys to resize the canvas.')
+ })]
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/resizable-editor/index.js
+/**
+ * External dependencies
+ */
+
+
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+// Removes the inline styles in the drag handles.
+
+const HANDLE_STYLES_OVERRIDE = {
+ position: undefined,
+ userSelect: undefined,
+ cursor: undefined,
+ width: undefined,
+ height: undefined,
+ top: undefined,
+ right: undefined,
+ bottom: undefined,
+ left: undefined
+};
+function ResizableEditor({
+ className,
+ enableResizing,
+ height,
+ children
+}) {
+ const [width, setWidth] = (0,external_wp_element_namespaceObject.useState)('100%');
+ const resizableRef = (0,external_wp_element_namespaceObject.useRef)();
+ const resizeWidthBy = (0,external_wp_element_namespaceObject.useCallback)(deltaPixels => {
+ if (resizableRef.current) {
+ setWidth(resizableRef.current.offsetWidth + deltaPixels);
+ }
+ }, []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ResizableBox, {
+ className: dist_clsx('editor-resizable-editor', className, {
+ 'is-resizable': enableResizing
+ }),
+ ref: api => {
+ resizableRef.current = api?.resizable;
+ },
+ size: {
+ width: enableResizing ? width : '100%',
+ height: enableResizing && height ? height : '100%'
+ },
+ onResizeStop: (event, direction, element) => {
+ setWidth(element.style.width);
+ },
+ minWidth: 300,
+ maxWidth: "100%",
+ maxHeight: "100%",
+ enable: {
+ left: enableResizing,
+ right: enableResizing
+ },
+ showHandle: enableResizing
+ // The editor is centered horizontally, resizing it only
+ // moves half the distance. Hence double the ratio to correctly
+ // align the cursor to the resizer handle.
+ ,
+ resizeRatio: 2,
+ handleComponent: {
+ left: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResizeHandle, {
+ direction: "left",
+ resizeWidthBy: resizeWidthBy
+ }),
+ right: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResizeHandle, {
+ direction: "right",
+ resizeWidthBy: resizeWidthBy
+ })
+ },
+ handleClasses: undefined,
+ handleStyles: {
+ left: HANDLE_STYLES_OVERRIDE,
+ right: HANDLE_STYLES_OVERRIDE
+ },
+ children: children
+ });
}
+/* harmony default export */ const resizable_editor = (ResizableEditor);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/hooks/use-select-nearest-editable-block.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+/**
+ * Internal dependencies
+ */
-;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/editor-canvas/index.js
+const DISTANCE_THRESHOLD = 500;
+function clamp(value, min, max) {
+ return Math.min(Math.max(value, min), max);
+}
+function distanceFromRect(x, y, rect) {
+ const dx = x - clamp(x, rect.left, rect.right);
+ const dy = y - clamp(y, rect.top, rect.bottom);
+ return Math.sqrt(dx * dx + dy * dy);
+}
+function useSelectNearestEditableBlock({
+ isEnabled = true
+} = {}) {
+ const {
+ getEnabledClientIdsTree,
+ getBlockName,
+ getBlockOrder
+ } = unlock((0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store));
+ const {
+ selectBlock
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
+ return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
+ if (!isEnabled) {
+ return;
+ }
+ const selectNearestEditableBlock = (x, y) => {
+ const editableBlockClientIds = getEnabledClientIdsTree().flatMap(({
+ clientId
+ }) => {
+ const blockName = getBlockName(clientId);
+ if (blockName === 'core/template-part') {
+ return [];
+ }
+ if (blockName === 'core/post-content') {
+ const innerBlocks = getBlockOrder(clientId);
+ if (innerBlocks.length) {
+ return innerBlocks;
+ }
+ }
+ return [clientId];
+ });
+ let nearestDistance = Infinity,
+ nearestClientId = null;
+ for (const clientId of editableBlockClientIds) {
+ const block = element.querySelector(`[data-block="${clientId}"]`);
+ if (!block) {
+ continue;
+ }
+ const rect = block.getBoundingClientRect();
+ const distance = distanceFromRect(x, y, rect);
+ if (distance < nearestDistance && distance < DISTANCE_THRESHOLD) {
+ nearestDistance = distance;
+ nearestClientId = clientId;
+ }
+ }
+ if (nearestClientId) {
+ selectBlock(nearestClientId);
+ }
+ };
+ const handleClick = event => {
+ const shouldSelect = event.target === element || event.target.classList.contains('is-root-container');
+ if (shouldSelect) {
+ selectNearestEditableBlock(event.clientX, event.clientY);
+ }
+ };
+ element.addEventListener('click', handleClick);
+ return () => element.removeEventListener('click', handleClick);
+ }, [isEnabled]);
+}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/visual-editor/index.js
/**
* External dependencies
*/
@@ -15447,6 +24573,12 @@ function EditTemplateBlocksNotification({
+
+
+
+
+
+
const {
LayoutStyle,
useLayoutClasses,
@@ -15454,13 +24586,12 @@ const {
ExperimentalBlockCanvas: BlockCanvas,
useFlashEditableBlocks
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
-const editor_canvas_noop = () => {};
/**
* These post types have a special editor where they don't allow you to fill the title
* and they don't apply the layout styles.
*/
-const DESIGN_POST_TYPES = ['wp_block', 'wp_template', 'wp_navigation', 'wp_template_part'];
+const visual_editor_DESIGN_POST_TYPES = [PATTERN_POST_TYPE, TEMPLATE_POST_TYPE, NAVIGATION_POST_TYPE, TEMPLATE_PART_POST_TYPE];
/**
* Given an array of nested blocks, find the first Post Content
@@ -15492,16 +24623,17 @@ function checkForPostContentAtRootLevel(blocks) {
}
return false;
}
-function EditorCanvas({
+function VisualEditor({
// Ideally as we unify post and site editors, we won't need these props.
autoFocus,
- className,
- renderAppender,
styles,
disableIframe = false,
iframeProps,
- children
+ contentRef,
+ className
}) {
+ const [resizeObserver, sizes] = (0,external_wp_compose_namespaceObject.useResizeObserver)();
+ const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('small', '<');
const {
renderingMode,
postContentAttributes,
@@ -15509,8 +24641,10 @@ function EditorCanvas({
wrapperBlockName,
wrapperUniqueId,
deviceType,
- showEditorPadding,
- isDesignPostType
+ isFocusedEntity,
+ isDesignPostType,
+ postType,
+ isPreview
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getCurrentPostId,
@@ -15528,28 +24662,30 @@ function EditorCanvas({
const postTypeSlug = getCurrentPostType();
const _renderingMode = getRenderingMode();
let _wrapperBlockName;
- if (postTypeSlug === 'wp_block') {
+ if (postTypeSlug === PATTERN_POST_TYPE) {
_wrapperBlockName = 'core/block';
} else if (_renderingMode === 'post-only') {
_wrapperBlockName = 'core/post-content';
}
const editorSettings = getEditorSettings();
const supportsTemplateMode = editorSettings.supportsTemplateMode;
- const postType = getPostType(postTypeSlug);
+ const postTypeObject = getPostType(postTypeSlug);
const canEditTemplate = canUser('create', 'templates');
const currentTemplateId = getCurrentTemplateId();
- const template = currentTemplateId ? getEditedEntityRecord('postType', 'wp_template', currentTemplateId) : undefined;
+ const template = currentTemplateId ? getEditedEntityRecord('postType', TEMPLATE_POST_TYPE, currentTemplateId) : undefined;
return {
renderingMode: _renderingMode,
postContentAttributes: editorSettings.postContentAttributes,
- isDesignPostType: DESIGN_POST_TYPES.includes(postTypeSlug),
+ isDesignPostType: visual_editor_DESIGN_POST_TYPES.includes(postTypeSlug),
// Post template fetch returns a 404 on classic themes, which
// messes with e2e tests, so check it's a block theme first.
- editedPostTemplate: postType?.viewable && supportsTemplateMode && canEditTemplate ? template : undefined,
+ editedPostTemplate: postTypeObject?.viewable && supportsTemplateMode && canEditTemplate ? template : undefined,
wrapperBlockName: _wrapperBlockName,
wrapperUniqueId: getCurrentPostId(),
deviceType: getDeviceType(),
- showEditorPadding: !!editorSettings.onNavigateToPreviousEntityRecord
+ isFocusedEntity: !!editorSettings.onNavigateToPreviousEntityRecord,
+ postType: postTypeSlug,
+ isPreview: editorSettings.__unstableIsPreviewMode
};
}, []);
const {
@@ -15558,13 +24694,19 @@ function EditorCanvas({
const {
hasRootPaddingAwareAlignments,
themeHasDisabledLayoutStyles,
- themeSupportsLayout
+ themeSupportsLayout,
+ isZoomOutMode
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const _settings = select(external_wp_blockEditor_namespaceObject.store).getSettings();
+ const {
+ getSettings,
+ __unstableGetEditorMode
+ } = select(external_wp_blockEditor_namespaceObject.store);
+ const _settings = getSettings();
return {
themeHasDisabledLayoutStyles: _settings.disableLayoutStyles,
themeSupportsLayout: _settings.supportsLayout,
- hasRootPaddingAwareAlignments: _settings.__experimentalFeatures?.useRootPaddingAwareAlignments
+ hasRootPaddingAwareAlignments: _settings.__experimentalFeatures?.useRootPaddingAwareAlignments,
+ isZoomOutMode: __unstableGetEditorMode() === 'zoom-out'
};
}, []);
const deviceStyles = (0,external_wp_blockEditor_namespaceObject.__experimentalUseResizeCanvas)(deviceType);
@@ -15622,7 +24764,7 @@ function EditorCanvas({
align = ''
} = newestPostContentAttributes || {};
const postContentLayoutClasses = useLayoutClasses(newestPostContentAttributes, 'core/post-content');
- const blockListLayoutClass = classnames_default()({
+ const blockListLayoutClass = dist_clsx({
'is-layout-flow': !themeSupportsLayout
}, themeSupportsLayout && postContentLayoutClasses, align && `align${align}`);
const postContentLayoutStyles = useLayoutStyles(newestPostContentAttributes, 'core/post-content', '.block-editor-block-list__layout.is-root-container');
@@ -15660,73 +24802,120 @@ function EditorCanvas({
.is-root-container.alignfull:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: none;}`;
const localRef = (0,external_wp_element_namespaceObject.useRef)();
const typewriterRef = (0,external_wp_blockEditor_namespaceObject.__unstableUseTypewriter)();
- const contentRef = (0,external_wp_compose_namespaceObject.useMergeRefs)([localRef, renderingMode === 'post-only' ? typewriterRef : editor_canvas_noop, useFlashEditableBlocks({
+ contentRef = (0,external_wp_compose_namespaceObject.useMergeRefs)([localRef, contentRef, renderingMode === 'post-only' ? typewriterRef : null, useFlashEditableBlocks({
+ isEnabled: renderingMode === 'template-locked'
+ }), useSelectNearestEditableBlock({
isEnabled: renderingMode === 'template-locked'
})]);
- return (0,external_React_.createElement)(BlockCanvas, {
- shouldIframe: !disableIframe || ['Tablet', 'Mobile'].includes(deviceType),
- contentRef: contentRef,
- styles: styles,
- height: "100%",
- iframeProps: {
- className: classnames_default()('editor-canvas__iframe', {
- 'has-editor-padding': showEditorPadding
- }),
- ...iframeProps,
- style: {
- ...iframeProps?.style,
- ...deviceStyles
- }
- }
- }, themeSupportsLayout && !themeHasDisabledLayoutStyles && renderingMode === 'post-only' && !isDesignPostType && (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(LayoutStyle, {
- selector: ".editor-editor-canvas__post-title-wrapper",
- layout: fallbackLayout
- }), (0,external_React_.createElement)(LayoutStyle, {
- selector: ".block-editor-block-list__layout.is-root-container",
- layout: postEditorLayout
- }), align && (0,external_React_.createElement)(LayoutStyle, {
- css: alignCSS
- }), postContentLayoutStyles && (0,external_React_.createElement)(LayoutStyle, {
- layout: postContentLayout,
- css: postContentLayoutStyles
- })), renderingMode === 'post-only' && !isDesignPostType && (0,external_React_.createElement)("div", {
- className: classnames_default()('editor-editor-canvas__post-title-wrapper',
- // The following class is only here for backward comapatibility
- // some themes might be using it to style the post title.
- 'edit-post-visual-editor__post-title-wrapper', {
- 'has-global-padding': hasRootPaddingAwareAlignments
+ const zoomOutProps = isZoomOutMode ? {
+ scale: 'default',
+ frameSize: '20px'
+ } : {};
+ const forceFullHeight = postType === NAVIGATION_POST_TYPE;
+ const enableResizing = [NAVIGATION_POST_TYPE, TEMPLATE_PART_POST_TYPE, PATTERN_POST_TYPE].includes(postType) &&
+ // Disable in previews / view mode.
+ !isPreview &&
+ // Disable resizing in mobile viewport.
+ !isMobileViewport &&
+ // Dsiable resizing in zoomed-out mode.
+ !isZoomOutMode;
+ const shouldIframe = !disableIframe || ['Tablet', 'Mobile'].includes(deviceType);
+ const iframeStyles = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return [...(styles !== null && styles !== void 0 ? styles : []), {
+ css: `.is-root-container{display:flow-root;${
+ // Some themes will have `min-height: 100vh` for the root container,
+ // which isn't a requirement in auto resize mode.
+ enableResizing ? 'min-height:0!important;' : ''}}`
+ }];
+ }, [styles, enableResizing]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('editor-visual-editor',
+ // this class is here for backward compatibility reasons.
+ 'edit-post-visual-editor', className, {
+ 'has-padding': isFocusedEntity || enableResizing,
+ 'is-resizable': enableResizing,
+ 'is-iframed': shouldIframe
}),
- contentEditable: false,
- ref: observeTypingRef,
- style: {
- // This is using inline styles
- // so it's applied for both iframed and non iframed editors.
- marginTop: '4rem'
- }
- }, (0,external_React_.createElement)(post_title, {
- ref: titleRef
- })), (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.RecursionProvider, {
- blockName: wrapperBlockName,
- uniqueId: wrapperUniqueId
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockList, {
- className: classnames_default()(className, 'is-' + deviceType.toLowerCase() + '-preview', renderingMode !== 'post-only' || isDesignPostType ? 'wp-site-blocks' : `${blockListLayoutClass} wp-block-post-content` // Ensure root level blocks receive default/flow blockGap styling rules.
- ),
- layout: blockListLayout,
- dropZoneElement:
- // When iframed, pass in the html element of the iframe to
- // ensure the drop zone extends to the edges of the iframe.
- disableIframe ? localRef.current : localRef.current?.parentNode,
- renderAppender: renderAppender,
- __unstableDisableDropZone:
- // In template preview mode, disable drop zones at the root of the template.
- renderingMode === 'template-locked' ? true : false
- }), renderingMode === 'template-locked' && (0,external_React_.createElement)(EditTemplateBlocksNotification, {
- contentRef: localRef
- })), children);
-}
-/* harmony default export */ const editor_canvas = (EditorCanvas);
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(resizable_editor, {
+ enableResizing: enableResizing,
+ height: sizes.height && !forceFullHeight ? sizes.height : '100%',
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(BlockCanvas, {
+ shouldIframe: shouldIframe,
+ contentRef: contentRef,
+ styles: iframeStyles,
+ height: "100%",
+ iframeProps: {
+ ...iframeProps,
+ ...zoomOutProps,
+ style: {
+ ...iframeProps?.style,
+ ...deviceStyles
+ }
+ },
+ children: [themeSupportsLayout && !themeHasDisabledLayoutStyles && renderingMode === 'post-only' && !isDesignPostType && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LayoutStyle, {
+ selector: ".editor-visual-editor__post-title-wrapper",
+ layout: fallbackLayout
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LayoutStyle, {
+ selector: ".block-editor-block-list__layout.is-root-container",
+ layout: postEditorLayout
+ }), align && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LayoutStyle, {
+ css: alignCSS
+ }), postContentLayoutStyles && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LayoutStyle, {
+ layout: postContentLayout,
+ css: postContentLayoutStyles
+ })]
+ }), renderingMode === 'post-only' && !isDesignPostType && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('editor-visual-editor__post-title-wrapper',
+ // The following class is only here for backward comapatibility
+ // some themes might be using it to style the post title.
+ 'edit-post-visual-editor__post-title-wrapper', {
+ 'has-global-padding': hasRootPaddingAwareAlignments
+ }),
+ contentEditable: false,
+ ref: observeTypingRef,
+ style: {
+ // This is using inline styles
+ // so it's applied for both iframed and non iframed editors.
+ marginTop: '4rem'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_title, {
+ ref: titleRef
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.RecursionProvider, {
+ blockName: wrapperBlockName,
+ uniqueId: wrapperUniqueId,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockList, {
+ className: dist_clsx('is-' + deviceType.toLowerCase() + '-preview', renderingMode !== 'post-only' || isDesignPostType ? 'wp-site-blocks' : `${blockListLayoutClass} wp-block-post-content` // Ensure root level blocks receive default/flow blockGap styling rules.
+ ),
+ layout: blockListLayout,
+ dropZoneElement:
+ // When iframed, pass in the html element of the iframe to
+ // ensure the drop zone extends to the edges of the iframe.
+ disableIframe ? localRef.current : localRef.current?.parentNode,
+ __unstableDisableDropZone:
+ // In template preview mode, disable drop zones at the root of the template.
+ renderingMode === 'template-locked' ? true : false
+ }), renderingMode === 'template-locked' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditTemplateBlocksNotification, {
+ contentRef: localRef
+ })]
+ }),
+ // Avoid resize listeners when not needed,
+ // these will trigger unnecessary re-renders
+ // when animating the iframe width.
+ enableResizing && resizeObserver]
+ })
+ })
+ });
+}
+/* harmony default export */ const visual_editor = (VisualEditor);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/editor-interface/index.js
+/**
+ * External dependencies
+ */
+
-;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/preferences-modal/enable-panel.js
/**
* WordPress dependencies
*/
@@ -15734,93 +24923,268 @@ function EditorCanvas({
+
+
+
+
+
/**
* Internal dependencies
*/
-const {
- PreferenceBaseOption
-} = unlock(external_wp_preferences_namespaceObject.privateApis);
-/* harmony default export */ const enable_panel = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_data_namespaceObject.withSelect)((select, {
- panelName
-}) => {
- const {
- isEditorPanelEnabled,
- isEditorPanelRemoved
- } = select(store_store);
- return {
- isRemoved: isEditorPanelRemoved(panelName),
- isChecked: isEditorPanelEnabled(panelName)
- };
-}), (0,external_wp_compose_namespaceObject.ifCondition)(({
- isRemoved
-}) => !isRemoved), (0,external_wp_data_namespaceObject.withDispatch)((dispatch, {
- panelName
-}) => ({
- onChange: () => dispatch(store_store).toggleEditorPanelEnabled(panelName)
-})))(PreferenceBaseOption));
-;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/preferences-modal/enable-plugin-document-setting-panel.js
+
+
+
+
+
+
+
+
+const interfaceLabels = {
+ /* translators: accessibility text for the editor top bar landmark region. */
+ header: (0,external_wp_i18n_namespaceObject.__)('Editor top bar'),
+ /* translators: accessibility text for the editor content landmark region. */
+ body: (0,external_wp_i18n_namespaceObject.__)('Editor content'),
+ /* translators: accessibility text for the editor settings landmark region. */
+ sidebar: (0,external_wp_i18n_namespaceObject.__)('Editor settings'),
+ /* translators: accessibility text for the editor publish landmark region. */
+ actions: (0,external_wp_i18n_namespaceObject.__)('Editor publish'),
+ /* translators: accessibility text for the editor footer landmark region. */
+ footer: (0,external_wp_i18n_namespaceObject.__)('Editor footer')
+};
+function EditorInterface({
+ className,
+ enableRegionNavigation,
+ styles,
+ children,
+ forceIsDirty,
+ contentRef,
+ disableIframe,
+ autoFocus,
+ customSaveButton,
+ customSavePanel,
+ forceDisableBlockTools,
+ title,
+ iframeProps
+}) {
+ const {
+ mode,
+ isRichEditingEnabled,
+ isInserterOpened,
+ isListViewOpened,
+ isDistractionFree,
+ isPreviewMode,
+ previousShortcut,
+ nextShortcut,
+ showBlockBreadcrumbs,
+ documentLabel,
+ blockEditorMode
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ get
+ } = select(external_wp_preferences_namespaceObject.store);
+ const {
+ getEditorSettings,
+ getPostTypeLabel
+ } = select(store_store);
+ const editorSettings = getEditorSettings();
+ const postTypeLabel = getPostTypeLabel();
+ return {
+ mode: select(store_store).getEditorMode(),
+ isRichEditingEnabled: editorSettings.richEditingEnabled,
+ isInserterOpened: select(store_store).isInserterOpened(),
+ isListViewOpened: select(store_store).isListViewOpened(),
+ isDistractionFree: get('core', 'distractionFree'),
+ isPreviewMode: editorSettings.__unstableIsPreviewMode,
+ previousShortcut: select(external_wp_keyboardShortcuts_namespaceObject.store).getAllShortcutKeyCombinations('core/editor/previous-region'),
+ nextShortcut: select(external_wp_keyboardShortcuts_namespaceObject.store).getAllShortcutKeyCombinations('core/editor/next-region'),
+ showBlockBreadcrumbs: get('core', 'showBlockBreadcrumbs'),
+ // translators: Default label for the Document in the Block Breadcrumb.
+ documentLabel: postTypeLabel || (0,external_wp_i18n_namespaceObject._x)('Document', 'noun'),
+ blockEditorMode: select(external_wp_blockEditor_namespaceObject.store).__unstableGetEditorMode()
+ };
+ }, []);
+ const isWideViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('large');
+ const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
+ const secondarySidebarLabel = isListViewOpened ? (0,external_wp_i18n_namespaceObject.__)('Document Overview') : (0,external_wp_i18n_namespaceObject.__)('Block Library');
+
+ // Local state for save panel.
+ // Note 'truthy' callback implies an open panel.
+ const [entitiesSavedStatesCallback, setEntitiesSavedStatesCallback] = (0,external_wp_element_namespaceObject.useState)(false);
+ const closeEntitiesSavedStates = (0,external_wp_element_namespaceObject.useCallback)(arg => {
+ if (typeof entitiesSavedStatesCallback === 'function') {
+ entitiesSavedStatesCallback(arg);
+ }
+ setEntitiesSavedStatesCallback(false);
+ }, [entitiesSavedStatesCallback]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(interface_skeleton, {
+ enableRegionNavigation: enableRegionNavigation,
+ isDistractionFree: isDistractionFree && isWideViewport,
+ className: dist_clsx('editor-editor-interface', className, {
+ 'is-entity-save-view-open': !!entitiesSavedStatesCallback,
+ 'is-distraction-free': isDistractionFree && isWideViewport && !isPreviewMode
+ }),
+ labels: {
+ ...interfaceLabels,
+ secondarySidebar: secondarySidebarLabel
+ },
+ header: !isPreviewMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(components_header, {
+ forceIsDirty: forceIsDirty,
+ setEntitiesSavedStatesCallback: setEntitiesSavedStatesCallback,
+ customSaveButton: customSaveButton,
+ forceDisableBlockTools: forceDisableBlockTools,
+ title: title
+ }),
+ editorNotices: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(editor_notices, {}),
+ secondarySidebar: !isPreviewMode && mode === 'visual' && (isInserterOpened && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InserterSidebar, {}) || isListViewOpened && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ListViewSidebar, {})),
+ sidebar: !isPreviewMode && !isDistractionFree && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(complementary_area.Slot, {
+ scope: "core"
+ }),
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [!isDistractionFree && !isPreviewMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(editor_notices, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(content_slot_fill.Slot, {
+ children: ([editorCanvasView]) => editorCanvasView ? editorCanvasView : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [!isPreviewMode && (mode === 'text' || !isRichEditingEnabled) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TextEditor
+ // We should auto-focus the canvas (title) on load.
+ // eslint-disable-next-line jsx-a11y/no-autofocus
+ , {
+ autoFocus: autoFocus
+ }), !isPreviewMode && !isLargeViewport && mode === 'visual' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockToolbar, {
+ hideDragHandle: true
+ }), (isPreviewMode || isRichEditingEnabled && mode === 'visual') && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visual_editor, {
+ styles: styles,
+ contentRef: contentRef,
+ disableIframe: disableIframe
+ // We should auto-focus the canvas (title) on load.
+ // eslint-disable-next-line jsx-a11y/no-autofocus
+ ,
+ autoFocus: autoFocus,
+ iframeProps: iframeProps
+ }), children]
+ })
+ })]
+ }),
+ footer: !isPreviewMode && !isDistractionFree && isLargeViewport && showBlockBreadcrumbs && isRichEditingEnabled && blockEditorMode !== 'zoom-out' && mode === 'visual' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockBreadcrumb, {
+ rootLabelText: documentLabel
+ }),
+ actions: !isPreviewMode ? customSavePanel || /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SavePublishPanels, {
+ closeEntitiesSavedStates: closeEntitiesSavedStates,
+ isEntitiesSavedStatesOpen: entitiesSavedStatesCallback,
+ setEntitiesSavedStatesCallback: setEntitiesSavedStatesCallback,
+ forceIsDirtyPublishPanel: forceIsDirty
+ }) : undefined,
+ shortcuts: {
+ previous: previousShortcut,
+ next: nextShortcut
+ }
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/pattern-overrides-panel/index.js
/**
* WordPress dependencies
*/
+
/**
* Internal dependencies
*/
-const {
- Fill: enable_plugin_document_setting_panel_Fill,
- Slot: enable_plugin_document_setting_panel_Slot
-} = (0,external_wp_components_namespaceObject.createSlotFill)('EnablePluginDocumentSettingPanelOption');
-const EnablePluginDocumentSettingPanelOption = ({
- label,
- panelName
-}) => (0,external_React_.createElement)(enable_plugin_document_setting_panel_Fill, null, (0,external_React_.createElement)(enable_panel, {
- label: label,
- panelName: panelName
-}));
-EnablePluginDocumentSettingPanelOption.Slot = enable_plugin_document_setting_panel_Slot;
-/* harmony default export */ const enable_plugin_document_setting_panel = (EnablePluginDocumentSettingPanelOption);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js
+const {
+ OverridesPanel
+} = unlock(external_wp_patterns_namespaceObject.privateApis);
+function PatternOverridesPanel() {
+ const supportsPatternOverridesPanel = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getCurrentPostType() === 'wp_block', []);
+ if (!supportsPatternOverridesPanel) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OverridesPanel, {});
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/trash.js
/**
* WordPress dependencies
*/
-const plus = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const trash = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
-}));
-/* harmony default export */ const library_plus = (plus);
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"
+ })
+});
+/* harmony default export */ const library_trash = (trash);
+
+;// CONCATENATED MODULE: ./node_modules/client-zip/index.js
+"stream"in Blob.prototype||Object.defineProperty(Blob.prototype,"stream",{value(){return new Response(this).body}}),"setBigUint64"in DataView.prototype||Object.defineProperty(DataView.prototype,"setBigUint64",{value(e,n,t){const i=Number(0xffffffffn&n),r=Number(n>>32n);this.setUint32(e+(t?0:4),i,t),this.setUint32(e+(t?4:0),r,t)}});var e=e=>new DataView(new ArrayBuffer(e)),n=e=>new Uint8Array(e.buffer||e),t=e=>(new TextEncoder).encode(String(e)),i=e=>Math.min(4294967295,Number(e)),client_zip_r=e=>Math.min(65535,Number(e));function f(e,i){if(void 0===i||i instanceof Date||(i=new Date(i)),e instanceof File)return{isFile:1,t:i||new Date(e.lastModified),i:e.stream()};if(e instanceof Response)return{isFile:1,t:i||new Date(e.headers.get("Last-Modified")||Date.now()),i:e.body};if(void 0===i)i=new Date;else if(isNaN(i))throw new Error("Invalid modification date.");if(void 0===e)return{isFile:0,t:i};if("string"==typeof e)return{isFile:1,t:i,i:t(e)};if(e instanceof Blob)return{isFile:1,t:i,i:e.stream()};if(e instanceof Uint8Array||e instanceof ReadableStream)return{isFile:1,t:i,i:e};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))return{isFile:1,t:i,i:n(e)};if(Symbol.asyncIterator in e)return{isFile:1,t:i,i:o(e[Symbol.asyncIterator]())};throw new TypeError("Unsupported input format.")}function o(e,n=e){return new ReadableStream({async pull(n){let t=0;for(;n.desiredSize>t;){const i=await e.next();if(!i.value){n.close();break}{const e=a(i.value);n.enqueue(e),t+=e.byteLength}}},cancel(e){n.throw?.(e)}})}function a(e){return"string"==typeof e?t(e):e instanceof Uint8Array?e:n(e)}function s(e,i,r){let[f,o]=function(e){return e?e instanceof Uint8Array?[e,1]:ArrayBuffer.isView(e)||e instanceof ArrayBuffer?[n(e),1]:[t(e),0]:[void 0,0]}(i);if(e instanceof File)return{o:d(f||t(e.name)),u:BigInt(e.size),l:o};if(e instanceof Response){const n=e.headers.get("content-disposition"),i=n&&n.match(/;\s*filename\*?=["']?(.*?)["']?$/i),a=i&&i[1]||e.url&&new URL(e.url).pathname.split("/").findLast(Boolean),s=a&&decodeURIComponent(a),u=r||+e.headers.get("content-length");return{o:d(f||t(s)),u:BigInt(u),l:o}}return f=d(f,void 0!==e||void 0!==r),"string"==typeof e?{o:f,u:BigInt(t(e).length),l:o}:e instanceof Blob?{o:f,u:BigInt(e.size),l:o}:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?{o:f,u:BigInt(e.byteLength),l:o}:{o:f,u:u(e,r),l:o}}function u(e,n){return n>-1?BigInt(n):e?void 0:0n}function d(e,n=1){if(!e||e.every((c=>47===c)))throw new Error("The file must have a name.");if(n)for(;47===e[e.length-1];)e=e.subarray(0,-1);else 47!==e[e.length-1]&&(e=new Uint8Array([...e,47]));return e}var l=new Uint32Array(256);for(let e=0;e<256;++e){let n=e;for(let e=0;e<8;++e)n=n>>>1^(1&n&&3988292384);l[e]=n}function y(e,n=0){n^=-1;for(var t=0,i=e.length;t<i;t++)n=n>>>8^l[255&n^e[t]];return(-1^n)>>>0}function w(e,n,t=0){const i=e.getSeconds()>>1|e.getMinutes()<<5|e.getHours()<<11,r=e.getDate()|e.getMonth()+1<<5|e.getFullYear()-1980<<9;n.setUint16(t,i,1),n.setUint16(t+2,r,1)}function B({o:e,l:n},t){return 8*(!n||(t??function(e){try{b.decode(e)}catch{return 0}return 1}(e)))}var b=new TextDecoder("utf8",{fatal:1});function p(t,i=0){const r=e(30);return r.setUint32(0,1347093252),r.setUint32(4,754976768|i),w(t.t,r,10),r.setUint16(26,t.o.length,1),n(r)}async function*g(e){let{i:n}=e;if("then"in n&&(n=await n),n instanceof Uint8Array)yield n,e.m=y(n,0),e.u=BigInt(n.length);else{e.u=0n;const t=n.getReader();for(;;){const{value:n,done:i}=await t.read();if(i)break;e.m=y(n,e.m),e.u+=BigInt(n.length),yield n}}}function I(t,r){const f=e(16+(r?8:0));return f.setUint32(0,1347094280),f.setUint32(4,t.isFile?t.m:0,1),r?(f.setBigUint64(8,t.u,1),f.setBigUint64(16,t.u,1)):(f.setUint32(8,i(t.u),1),f.setUint32(12,i(t.u),1)),n(f)}function v(t,r,f=0,o=0){const a=e(46);return a.setUint32(0,1347092738),a.setUint32(4,755182848),a.setUint16(8,2048|f),w(t.t,a,12),a.setUint32(16,t.isFile?t.m:0,1),a.setUint32(20,i(t.u),1),a.setUint32(24,i(t.u),1),a.setUint16(28,t.o.length,1),a.setUint16(30,o,1),a.setUint16(40,t.isFile?33204:16893,1),a.setUint32(42,i(r),1),n(a)}function h(t,i,r){const f=e(r);return f.setUint16(0,1,1),f.setUint16(2,r-4,1),16&r&&(f.setBigUint64(4,t.u,1),f.setBigUint64(12,t.u,1)),f.setBigUint64(r-8,i,1),n(f)}function D(e){return e instanceof File||e instanceof Response?[[e],[e]]:[[e.input,e.name,e.size],[e.input,e.lastModified]]}var S=e=>function(e){let n=BigInt(22),t=0n,i=0;for(const r of e){if(!r.o)throw new Error("Every file must have a non-empty name.");if(void 0===r.u)throw new Error(`Missing size for file "${(new TextDecoder).decode(r.o)}".`);const e=r.u>=0xffffffffn,f=t>=0xffffffffn;t+=BigInt(46+r.o.length+(e&&8))+r.u,n+=BigInt(r.o.length+46+(12*f|28*e)),i||(i=e)}return(i||t>=0xffffffffn)&&(n+=BigInt(76)),n+t}(function*(e){for(const n of e)yield s(...D(n)[0])}(e));function A(e,n={}){const t={"Content-Type":"application/zip","Content-Disposition":"attachment"};return("bigint"==typeof n.length||Number.isInteger(n.length))&&n.length>0&&(t["Content-Length"]=String(n.length)),n.metadata&&(t["Content-Length"]=String(S(n.metadata))),new Response(N(e,n),{headers:t})}function N(t,a={}){const u=function(e){const n=e[Symbol.iterator in e?Symbol.iterator:Symbol.asyncIterator]();return{async next(){const e=await n.next();if(e.done)return e;const[t,i]=D(e.value);return{done:0,value:Object.assign(f(...i),s(...t))}},throw:n.throw?.bind(n),[Symbol.asyncIterator](){return this}}}(t);return o(async function*(t,f){const o=[];let a=0n,s=0n,u=0;for await(const e of t){const n=B(e,f.buffersAreUTF8);yield p(e,n),yield new Uint8Array(e.o),e.isFile&&(yield*g(e));const t=e.u>=0xffffffffn,i=12*(a>=0xffffffffn)|28*t;yield I(e,t),o.push(v(e,a,n,i)),o.push(e.o),i&&o.push(h(e,a,i)),t&&(a+=8n),s++,a+=BigInt(46+e.o.length)+e.u,u||(u=t)}let d=0n;for(const e of o)yield e,d+=BigInt(e.length);if(u||a>=0xffffffffn){const t=e(76);t.setUint32(0,1347094022),t.setBigUint64(4,BigInt(44),1),t.setUint32(12,755182848),t.setBigUint64(24,s,1),t.setBigUint64(32,s,1),t.setBigUint64(40,d,1),t.setBigUint64(48,a,1),t.setUint32(56,1347094023),t.setBigUint64(64,a+d,1),t.setUint32(72,1,1),yield n(t)}const l=e(22);l.setUint32(0,1347093766),l.setUint16(8,client_zip_r(s),1),l.setUint16(10,client_zip_r(s),1),l.setUint32(12,i(d),1),l.setUint32(16,i(a),1),yield n(l)}(u,a),u)}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-actions/export-pattern-action.js
+/**
+ * External dependencies
+ */
+
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/list-view.js
/**
* WordPress dependencies
*/
-const listView = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"
-}));
-/* harmony default export */ const list_view = (listView);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/document-tools/index.js
+
/**
- * External dependencies
+ * Internal dependencies
*/
+// Patterns.
+const {
+ PATTERN_TYPES: export_pattern_action_PATTERN_TYPES
+} = unlock(external_wp_patterns_namespaceObject.privateApis);
+function getJsonFromItem(item) {
+ return JSON.stringify({
+ __file: item.type,
+ title: item.title || item.name,
+ content: item?.patternPost?.content?.raw || item.content,
+ syncStatus: item?.patternPost?.wp_pattern_sync_status || item.wp_pattern_sync_status
+ }, null, 2);
+}
+const exportPatternAsJSONAction = {
+ id: 'export-pattern',
+ label: (0,external_wp_i18n_namespaceObject.__)('Export as JSON'),
+ supportsBulk: true,
+ isEligible: item => {
+ if (!item.type) {
+ return false;
+ }
+ return item.type === export_pattern_action_PATTERN_TYPES.user;
+ },
+ callback: async items => {
+ if (items.length === 1) {
+ return (0,external_wp_blob_namespaceObject.downloadBlob)(`${paramCase(items[0].title || items[0].name)}.json`, getJsonFromItem(items[0]), 'application/json');
+ }
+ const nameCount = {};
+ const filesToZip = items.map(item => {
+ const name = paramCase(item.title || item.name);
+ nameCount[name] = (nameCount[name] || 0) + 1;
+ return {
+ name: `${name + (nameCount[name] > 1 ? '-' + (nameCount[name] - 1) : '')}.json`,
+ lastModified: new Date(),
+ input: getJsonFromItem(item)
+ };
+ });
+ return (0,external_wp_blob_namespaceObject.downloadBlob)((0,external_wp_i18n_namespaceObject.__)('patterns-export') + '.zip', await A(filesToZip).blob(), 'application/zip');
+ }
+};
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-actions/actions.js
/**
* WordPress dependencies
*/
@@ -15834,6 +25198,7 @@ const listView = (0,external_React_.createElement)(external_wp_primitives_namesp
+
/**
* Internal dependencies
*/
@@ -15841,163 +25206,1155 @@ const listView = (0,external_React_.createElement)(external_wp_primitives_namesp
+
+
+
+// Patterns.
+
+
const {
- useCanBlockToolbarBeFocused
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
-const preventDefault = event => {
- event.preventDefault();
+ PATTERN_TYPES: actions_PATTERN_TYPES,
+ CreatePatternModalContents,
+ useDuplicatePatternProps
+} = unlock(external_wp_patterns_namespaceObject.privateApis);
+
+/**
+ * Check if a template is removable.
+ *
+ * @param {Object} template The template entity to check.
+ * @return {boolean} Whether the template is removable.
+ */
+function isTemplateRemovable(template) {
+ if (!template) {
+ return false;
+ }
+ // In patterns list page we map the templates parts to a different object
+ // than the one returned from the endpoint. This is why we need to check for
+ // two props whether is custom or has a theme file.
+ return [template.source, template.templatePart?.source].includes(TEMPLATE_ORIGINS.custom) && !template.has_theme_file && !template.templatePart?.has_theme_file;
+}
+function getItemTitle(item) {
+ if (typeof item.title === 'string') {
+ return (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(item.title);
+ }
+ return (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(item.title?.rendered || '');
+}
+
+// This action is used for templates, patterns and template parts.
+// Every other post type uses the similar `trashPostAction` which
+// moves the post to trash.
+const deletePostAction = {
+ id: 'delete-post',
+ label: (0,external_wp_i18n_namespaceObject.__)('Delete'),
+ isPrimary: true,
+ icon: library_trash,
+ isEligible(post) {
+ if ([TEMPLATE_POST_TYPE, TEMPLATE_PART_POST_TYPE].includes(post.type)) {
+ return isTemplateRemovable(post);
+ }
+ // We can only remove user patterns.
+ return post.type === actions_PATTERN_TYPES.user;
+ },
+ supportsBulk: true,
+ hideModalHeader: true,
+ RenderModal: ({
+ items,
+ closeModal,
+ onActionStart,
+ onActionPerformed
+ }) => {
+ const [isBusy, setIsBusy] = (0,external_wp_element_namespaceObject.useState)(false);
+ const {
+ removeTemplates
+ } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "5",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ children: items.length > 1 ? (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %d: number of items to delete.
+ (0,external_wp_i18n_namespaceObject._n)('Delete %d item?', 'Delete %d items?', items.length), items.length) : (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: The template or template part's titles
+ (0,external_wp_i18n_namespaceObject.__)('Delete "%s"?'), getItemTitle(items[0]))
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: closeModal,
+ disabled: isBusy,
+ __experimentalIsFocusable: true,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ onClick: async () => {
+ setIsBusy(true);
+ if (onActionStart) {
+ onActionStart(items);
+ }
+ await removeTemplates(items, {
+ allowUndo: false
+ });
+ onActionPerformed?.(items);
+ setIsBusy(false);
+ closeModal();
+ },
+ isBusy: isBusy,
+ disabled: isBusy,
+ __experimentalIsFocusable: true,
+ children: (0,external_wp_i18n_namespaceObject.__)('Delete')
+ })]
+ })]
+ });
+ }
};
-function DocumentTools({
- className,
- disableBlockTools = false,
- children,
- // This is a temporary prop until the list view is fully unified between post and site editors.
- listViewLabel = (0,external_wp_i18n_namespaceObject.__)('Document Overview')
-}) {
- const inserterButton = (0,external_wp_element_namespaceObject.useRef)();
+function useCanUserEligibilityCheckPostType(capability, resource, action) {
+ const registry = (0,external_wp_data_namespaceObject.useRegistry)();
+ return (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ ...action,
+ isEligible(item) {
+ return action.isEligible(item) && registry.select(external_wp_coreData_namespaceObject.store).canUser(capability, resource, item.id);
+ }
+ }), [action, registry, capability, resource]);
+}
+const trashPostAction = {
+ id: 'move-to-trash',
+ label: (0,external_wp_i18n_namespaceObject.__)('Move to Trash'),
+ isPrimary: true,
+ icon: library_trash,
+ isEligible(item) {
+ return !['auto-draft', 'trash'].includes(item.status);
+ },
+ supportsBulk: true,
+ hideModalHeader: true,
+ RenderModal: ({
+ items,
+ closeModal,
+ onActionStart,
+ onActionPerformed
+ }) => {
+ const [isBusy, setIsBusy] = (0,external_wp_element_namespaceObject.useState)(false);
+ const {
+ createSuccessNotice,
+ createErrorNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ const {
+ deleteEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "5",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ children: items.length === 1 ? (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: The item's title.
+ (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to move to trash "%s"?'), getItemTitle(items[0])) : (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %d: The number of items (2 or more).
+ (0,external_wp_i18n_namespaceObject._n)('Are you sure you want to move to trash %d item?', 'Are you sure you want to move to trash %d items?', items.length), items.length)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: closeModal,
+ disabled: isBusy,
+ __experimentalIsFocusable: true,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ onClick: async () => {
+ setIsBusy(true);
+ if (onActionStart) {
+ onActionStart(items);
+ }
+ const promiseResult = await Promise.allSettled(items.map(item => deleteEntityRecord('postType', item.type, item.id, {}, {
+ throwOnError: true
+ })));
+ // If all the promises were fulfilled with success.
+ if (promiseResult.every(({
+ status
+ }) => status === 'fulfilled')) {
+ let successMessage;
+ if (promiseResult.length === 1) {
+ successMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The item's title. */
+ (0,external_wp_i18n_namespaceObject.__)('"%s" moved to trash.'), getItemTitle(items[0]));
+ } else {
+ successMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The number of items. */
+ (0,external_wp_i18n_namespaceObject._n)('%s item moved to trash.', '%s items moved to trash.', items.length), items.length);
+ }
+ createSuccessNotice(successMessage, {
+ type: 'snackbar',
+ id: 'move-to-trash-action'
+ });
+ } else {
+ // If there was at least one failure.
+ let errorMessage;
+ // If we were trying to delete a single item.
+ if (promiseResult.length === 1) {
+ if (promiseResult[0].reason?.message) {
+ errorMessage = promiseResult[0].reason.message;
+ } else {
+ errorMessage = (0,external_wp_i18n_namespaceObject.__)('An error occurred while moving to trash the item.');
+ }
+ // If we were trying to delete multiple items.
+ } else {
+ const errorMessages = new Set();
+ const failedPromises = promiseResult.filter(({
+ status
+ }) => status === 'rejected');
+ for (const failedPromise of failedPromises) {
+ if (failedPromise.reason?.message) {
+ errorMessages.add(failedPromise.reason.message);
+ }
+ }
+ if (errorMessages.size === 0) {
+ errorMessage = (0,external_wp_i18n_namespaceObject.__)('An error occurred while moving to trash the items.');
+ } else if (errorMessages.size === 1) {
+ errorMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: an error message */
+ (0,external_wp_i18n_namespaceObject.__)('An error occurred while moving to trash the item: %s'), [...errorMessages][0]);
+ } else {
+ errorMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: a list of comma separated error messages */
+ (0,external_wp_i18n_namespaceObject.__)('Some errors occurred while moving to trash the items: %s'), [...errorMessages].join(','));
+ }
+ }
+ createErrorNotice(errorMessage, {
+ type: 'snackbar'
+ });
+ }
+ if (onActionPerformed) {
+ onActionPerformed(items);
+ }
+ setIsBusy(false);
+ closeModal();
+ },
+ isBusy: isBusy,
+ disabled: isBusy,
+ __experimentalIsFocusable: true,
+ children: (0,external_wp_i18n_namespaceObject.__)('Trash')
+ })]
+ })]
+ });
+ }
+};
+function useTrashPostAction(resource) {
+ return useCanUserEligibilityCheckPostType('delete', resource, trashPostAction);
+}
+function usePermanentlyDeletePostAction(resource) {
const {
- setIsInserterOpened,
- setIsListViewOpened
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ createSuccessNotice,
+ createErrorNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
const {
- isDistractionFree,
- isInserterOpened,
- isListViewOpen,
- listViewShortcut,
- listViewToggleRef,
- hasFixedToolbar,
- showIconLabels
- } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ deleteEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const permanentlyDeletePostAction = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ id: 'permanently-delete',
+ label: (0,external_wp_i18n_namespaceObject.__)('Permanently delete'),
+ supportsBulk: true,
+ isEligible({
+ status
+ }) {
+ return status === 'trash';
+ },
+ async callback(posts, onActionPerformed) {
+ const promiseResult = await Promise.allSettled(posts.map(post => {
+ return deleteEntityRecord('postType', post.type, post.id, {
+ force: true
+ }, {
+ throwOnError: true
+ });
+ }));
+ // If all the promises were fulfilled with success.
+ if (promiseResult.every(({
+ status
+ }) => status === 'fulfilled')) {
+ let successMessage;
+ if (promiseResult.length === 1) {
+ successMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The posts's title. */
+ (0,external_wp_i18n_namespaceObject.__)('"%s" permanently deleted.'), getItemTitle(posts[0]));
+ } else {
+ successMessage = (0,external_wp_i18n_namespaceObject.__)('The posts were permanently deleted.');
+ }
+ createSuccessNotice(successMessage, {
+ type: 'snackbar',
+ id: 'permanently-delete-post-action'
+ });
+ if (onActionPerformed) {
+ onActionPerformed(posts);
+ }
+ } else {
+ // If there was at lease one failure.
+ let errorMessage;
+ // If we were trying to permanently delete a single post.
+ if (promiseResult.length === 1) {
+ if (promiseResult[0].reason?.message) {
+ errorMessage = promiseResult[0].reason.message;
+ } else {
+ errorMessage = (0,external_wp_i18n_namespaceObject.__)('An error occurred while permanently deleting the post.');
+ }
+ // If we were trying to permanently delete multiple posts
+ } else {
+ const errorMessages = new Set();
+ const failedPromises = promiseResult.filter(({
+ status
+ }) => status === 'rejected');
+ for (const failedPromise of failedPromises) {
+ if (failedPromise.reason?.message) {
+ errorMessages.add(failedPromise.reason.message);
+ }
+ }
+ if (errorMessages.size === 0) {
+ errorMessage = (0,external_wp_i18n_namespaceObject.__)('An error occurred while permanently deleting the posts.');
+ } else if (errorMessages.size === 1) {
+ errorMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: an error message */
+ (0,external_wp_i18n_namespaceObject.__)('An error occurred while permanently deleting the posts: %s'), [...errorMessages][0]);
+ } else {
+ errorMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: a list of comma separated error messages */
+ (0,external_wp_i18n_namespaceObject.__)('Some errors occurred while permanently deleting the posts: %s'), [...errorMessages].join(','));
+ }
+ }
+ createErrorNotice(errorMessage, {
+ type: 'snackbar'
+ });
+ }
+ }
+ }), [createSuccessNotice, createErrorNotice, deleteEntityRecord]);
+ return useCanUserEligibilityCheckPostType('delete', resource, permanentlyDeletePostAction);
+}
+function useRestorePostAction(resource) {
+ const {
+ createSuccessNotice,
+ createErrorNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ const {
+ editEntityRecord,
+ saveEditedEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const restorePostAction = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ id: 'restore',
+ label: (0,external_wp_i18n_namespaceObject.__)('Restore'),
+ isPrimary: true,
+ icon: library_backup,
+ supportsBulk: true,
+ isEligible({
+ status
+ }) {
+ return status === 'trash';
+ },
+ async callback(posts, onActionPerformed) {
+ await Promise.allSettled(posts.map(post => {
+ return editEntityRecord('postType', post.type, post.id, {
+ status: 'draft'
+ });
+ }));
+ const promiseResult = await Promise.allSettled(posts.map(post => {
+ return saveEditedEntityRecord('postType', post.type, post.id, {
+ throwOnError: true
+ });
+ }));
+ if (promiseResult.every(({
+ status
+ }) => status === 'fulfilled')) {
+ let successMessage;
+ if (posts.length === 1) {
+ successMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The number of posts. */
+ (0,external_wp_i18n_namespaceObject.__)('"%s" has been restored.'), getItemTitle(posts[0]));
+ } else if (posts[0].type === 'page') {
+ successMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The number of posts. */
+ (0,external_wp_i18n_namespaceObject.__)('%d pages have been restored.'), posts.length);
+ } else {
+ successMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The number of posts. */
+ (0,external_wp_i18n_namespaceObject.__)('%d posts have been restored.'), posts.length);
+ }
+ createSuccessNotice(successMessage, {
+ type: 'snackbar',
+ id: 'restore-post-action'
+ });
+ if (onActionPerformed) {
+ onActionPerformed(posts);
+ }
+ } else {
+ // If there was at lease one failure.
+ let errorMessage;
+ // If we were trying to move a single post to the trash.
+ if (promiseResult.length === 1) {
+ if (promiseResult[0].reason?.message) {
+ errorMessage = promiseResult[0].reason.message;
+ } else {
+ errorMessage = (0,external_wp_i18n_namespaceObject.__)('An error occurred while restoring the post.');
+ }
+ // If we were trying to move multiple posts to the trash
+ } else {
+ const errorMessages = new Set();
+ const failedPromises = promiseResult.filter(({
+ status
+ }) => status === 'rejected');
+ for (const failedPromise of failedPromises) {
+ if (failedPromise.reason?.message) {
+ errorMessages.add(failedPromise.reason.message);
+ }
+ }
+ if (errorMessages.size === 0) {
+ errorMessage = (0,external_wp_i18n_namespaceObject.__)('An error occurred while restoring the posts.');
+ } else if (errorMessages.size === 1) {
+ errorMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: an error message */
+ (0,external_wp_i18n_namespaceObject.__)('An error occurred while restoring the posts: %s'), [...errorMessages][0]);
+ } else {
+ errorMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: a list of comma separated error messages */
+ (0,external_wp_i18n_namespaceObject.__)('Some errors occurred while restoring the posts: %s'), [...errorMessages].join(','));
+ }
+ }
+ createErrorNotice(errorMessage, {
+ type: 'snackbar'
+ });
+ }
+ }
+ }), [createSuccessNotice, createErrorNotice, editEntityRecord, saveEditedEntityRecord]);
+ return useCanUserEligibilityCheckPostType('update', resource, restorePostAction);
+}
+const viewPostAction = {
+ id: 'view-post',
+ label: (0,external_wp_i18n_namespaceObject.__)('View'),
+ isPrimary: true,
+ icon: library_external,
+ isEligible(post) {
+ return post.status !== 'trash';
+ },
+ callback(posts, onActionPerformed) {
+ const post = posts[0];
+ window.open(post.link, '_blank');
+ if (onActionPerformed) {
+ onActionPerformed(posts);
+ }
+ }
+};
+const postRevisionsAction = {
+ id: 'view-post-revisions',
+ context: 'list',
+ label(items) {
+ var _items$0$_links$versi;
+ const revisionsCount = (_items$0$_links$versi = items[0]._links?.['version-history']?.[0]?.count) !== null && _items$0$_links$versi !== void 0 ? _items$0$_links$versi : 0;
+ return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: number of revisions */
+ (0,external_wp_i18n_namespaceObject.__)('View revisions (%s)'), revisionsCount);
+ },
+ isEligible: post => {
+ var _post$_links$predeces, _post$_links$version;
+ if (post.status === 'trash') {
+ return false;
+ }
+ const lastRevisionId = (_post$_links$predeces = post?._links?.['predecessor-version']?.[0]?.id) !== null && _post$_links$predeces !== void 0 ? _post$_links$predeces : null;
+ const revisionsCount = (_post$_links$version = post?._links?.['version-history']?.[0]?.count) !== null && _post$_links$version !== void 0 ? _post$_links$version : 0;
+ return lastRevisionId && revisionsCount > 1;
+ },
+ callback(posts, onActionPerformed) {
+ const post = posts[0];
+ const href = (0,external_wp_url_namespaceObject.addQueryArgs)('revision.php', {
+ revision: post?._links?.['predecessor-version']?.[0]?.id
+ });
+ document.location.href = href;
+ if (onActionPerformed) {
+ onActionPerformed(posts);
+ }
+ }
+};
+const renamePostAction = {
+ id: 'rename-post',
+ label: (0,external_wp_i18n_namespaceObject.__)('Rename'),
+ isEligible(post) {
+ if (post.status === 'trash') {
+ return false;
+ }
+ // Templates, template parts and patterns have special checks for renaming.
+ if (![TEMPLATE_POST_TYPE, TEMPLATE_PART_POST_TYPE, ...Object.values(actions_PATTERN_TYPES)].includes(post.type)) {
+ return true;
+ }
+ // In the case of templates, we can only rename custom templates.
+ if (post.type === TEMPLATE_POST_TYPE) {
+ return isTemplateRemovable(post) && post.is_custom;
+ }
+ // Make necessary checks for template parts and patterns.
+ const isTemplatePart = post.type === TEMPLATE_PART_POST_TYPE;
+ const isUserPattern = post.type === actions_PATTERN_TYPES.user;
+ // In patterns list page we map the templates parts to a different object
+ // than the one returned from the endpoint. This is why we need to check for
+ // two props whether is custom or has a theme file.
+ const isCustomPattern = isUserPattern || isTemplatePart && (post.isCustom || post.source === TEMPLATE_ORIGINS.custom);
+ const hasThemeFile = isTemplatePart && (post.templatePart?.has_theme_file || post.has_theme_file);
+ return isCustomPattern && !hasThemeFile;
+ },
+ RenderModal: ({
+ items,
+ closeModal,
+ onActionPerformed
+ }) => {
+ const [item] = items;
+ const originalTitle = (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(typeof item.title === 'string' ? item.title : item.title.rendered);
+ const [title, setTitle] = (0,external_wp_element_namespaceObject.useState)(() => originalTitle);
const {
- getSettings
- } = select(external_wp_blockEditor_namespaceObject.store);
+ editEntityRecord,
+ saveEditedEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
const {
- get
- } = select(external_wp_preferences_namespaceObject.store);
+ createSuccessNotice,
+ createErrorNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ async function onRename(event) {
+ event.preventDefault();
+ try {
+ await editEntityRecord('postType', item.type, item.id, {
+ title
+ });
+ // Update state before saving rerenders the list.
+ setTitle('');
+ closeModal();
+ // Persist edited entity.
+ await saveEditedEntityRecord('postType', item.type, item.id, {
+ throwOnError: true
+ });
+ createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Name updated'), {
+ type: 'snackbar'
+ });
+ onActionPerformed?.(items);
+ } catch (error) {
+ const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : (0,external_wp_i18n_namespaceObject.__)('An error occurred while updating the name');
+ createErrorNotice(errorMessage, {
+ type: 'snackbar'
+ });
+ }
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ onSubmit: onRename,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "5",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Name'),
+ value: title,
+ onChange: setTitle,
+ required: true
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ onClick: () => {
+ closeModal();
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "primary",
+ type: "submit",
+ children: (0,external_wp_i18n_namespaceObject.__)('Save')
+ })]
+ })]
+ })
+ });
+ }
+};
+function useRenamePostAction(resource) {
+ return useCanUserEligibilityCheckPostType('update', resource, renamePostAction);
+}
+const duplicatePostAction = {
+ id: 'duplicate-post',
+ label: (0,external_wp_i18n_namespaceObject._x)('Duplicate', 'action label'),
+ isEligible({
+ status
+ }) {
+ return status !== 'trash';
+ },
+ RenderModal: ({
+ items,
+ closeModal,
+ onActionPerformed
+ }) => {
+ const [item] = items;
+ const [isCreatingPage, setIsCreatingPage] = (0,external_wp_element_namespaceObject.useState)(false);
+ const [title, setTitle] = (0,external_wp_element_namespaceObject.useState)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Existing item title */
+ (0,external_wp_i18n_namespaceObject.__)('%s (Copy)'), getItemTitle(item)));
const {
- isListViewOpened,
- getListViewToggleRef
- } = unlock(select(store_store));
+ saveEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
const {
- getShortcutRepresentation
- } = select(external_wp_keyboardShortcuts_namespaceObject.store);
+ createSuccessNotice,
+ createErrorNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ async function createPage(event) {
+ event.preventDefault();
+ if (isCreatingPage) {
+ return;
+ }
+ setIsCreatingPage(true);
+ try {
+ const newItem = await saveEntityRecord('postType', item.type, {
+ status: 'draft',
+ title,
+ slug: title || (0,external_wp_i18n_namespaceObject.__)('No title'),
+ author: item.author,
+ comment_status: item.comment_status,
+ content: typeof item.content === 'string' ? item.content : item.content.raw,
+ excerpt: item.excerpt.raw,
+ meta: item.meta,
+ parent: item.parent,
+ password: item.password,
+ template: item.template,
+ format: item.format,
+ featured_media: item.featured_media,
+ menu_order: item.menu_order,
+ ping_status: item.ping_status,
+ categories: item.categories,
+ tags: item.tags
+ }, {
+ throwOnError: true
+ });
+ createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Title of the created template e.g: "Category".
+ (0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(newItem.title?.rendered || title)), {
+ id: 'duplicate-post-action',
+ type: 'snackbar'
+ });
+ if (onActionPerformed) {
+ onActionPerformed([newItem]);
+ }
+ } catch (error) {
+ const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : (0,external_wp_i18n_namespaceObject.__)('An error occurred while duplicating the page.');
+ createErrorNotice(errorMessage, {
+ type: 'snackbar'
+ });
+ } finally {
+ setIsCreatingPage(false);
+ closeModal();
+ }
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ onSubmit: createPage,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 3,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Title'),
+ onChange: setTitle,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('No title'),
+ value: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ spacing: 2,
+ justify: "end",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: closeModal,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ type: "submit",
+ isBusy: isCreatingPage,
+ "aria-disabled": isCreatingPage,
+ children: (0,external_wp_i18n_namespaceObject._x)('Duplicate', 'action label')
+ })]
+ })]
+ })
+ });
+ }
+};
+const resetTemplateAction = {
+ id: 'reset-template',
+ label: (0,external_wp_i18n_namespaceObject.__)('Reset'),
+ isEligible: item => {
+ return isTemplateRevertable(item);
+ },
+ icon: library_backup,
+ supportsBulk: true,
+ hideModalHeader: true,
+ RenderModal: ({
+ items,
+ closeModal,
+ onActionStart,
+ onActionPerformed
+ }) => {
+ const [isBusy, setIsBusy] = (0,external_wp_element_namespaceObject.useState)(false);
+ const {
+ revertTemplate
+ } = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
+ const {
+ saveEditedEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const {
+ createSuccessNotice,
+ createErrorNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ const onConfirm = async () => {
+ try {
+ for (const template of items) {
+ await revertTemplate(template, {
+ allowUndo: false
+ });
+ await saveEditedEntityRecord('postType', template.type, template.id);
+ }
+ createSuccessNotice(items.length > 1 ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The number of items. */
+ (0,external_wp_i18n_namespaceObject.__)('%s items reset.'), items.length) : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The template/part's name. */
+ (0,external_wp_i18n_namespaceObject.__)('"%s" reset.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(getItemTitle(items[0]))), {
+ type: 'snackbar',
+ id: 'revert-template-action'
+ });
+ } catch (error) {
+ let fallbackErrorMessage;
+ if (items[0].type === TEMPLATE_POST_TYPE) {
+ fallbackErrorMessage = items.length === 1 ? (0,external_wp_i18n_namespaceObject.__)('An error occurred while reverting the template.') : (0,external_wp_i18n_namespaceObject.__)('An error occurred while reverting the templates.');
+ } else {
+ fallbackErrorMessage = items.length === 1 ? (0,external_wp_i18n_namespaceObject.__)('An error occurred while reverting the template part.') : (0,external_wp_i18n_namespaceObject.__)('An error occurred while reverting the template parts.');
+ }
+ const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : fallbackErrorMessage;
+ createErrorNotice(errorMessage, {
+ type: 'snackbar'
+ });
+ }
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "5",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Reset to default and clear all customizations?')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: closeModal,
+ disabled: isBusy,
+ __experimentalIsFocusable: true,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ onClick: async () => {
+ setIsBusy(true);
+ if (onActionStart) {
+ onActionStart(items);
+ }
+ await onConfirm(items);
+ onActionPerformed?.(items);
+ setIsBusy(false);
+ closeModal();
+ },
+ isBusy: isBusy,
+ disabled: isBusy,
+ __experimentalIsFocusable: true,
+ children: (0,external_wp_i18n_namespaceObject.__)('Reset')
+ })]
+ })]
+ });
+ }
+};
+const duplicatePatternAction = {
+ id: 'duplicate-pattern',
+ label: (0,external_wp_i18n_namespaceObject._x)('Duplicate', 'action label'),
+ isEligible: item => item.type !== TEMPLATE_PART_POST_TYPE,
+ modalHeader: (0,external_wp_i18n_namespaceObject._x)('Duplicate pattern', 'action label'),
+ RenderModal: ({
+ items,
+ closeModal
+ }) => {
+ const [item] = items;
+ const isThemePattern = item.type === actions_PATTERN_TYPES.theme;
+ const duplicatedProps = useDuplicatePatternProps({
+ pattern: isThemePattern || !item.patternPost ? item : item.patternPost,
+ onSuccess: () => closeModal()
+ });
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CreatePatternModalContents, {
+ onClose: closeModal,
+ confirmLabel: (0,external_wp_i18n_namespaceObject._x)('Duplicate', 'action label'),
+ ...duplicatedProps
+ });
+ }
+};
+const duplicateTemplatePartAction = {
+ id: 'duplicate-template-part',
+ label: (0,external_wp_i18n_namespaceObject._x)('Duplicate', 'action label'),
+ isEligible: item => item.type === TEMPLATE_PART_POST_TYPE,
+ modalHeader: (0,external_wp_i18n_namespaceObject._x)('Duplicate template part', 'action label'),
+ RenderModal: ({
+ items,
+ closeModal
+ }) => {
+ const [item] = items;
+ const {
+ createSuccessNotice
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
+ function onTemplatePartSuccess() {
+ createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: The new template part's title e.g. 'Call to action (copy)'.
+ (0,external_wp_i18n_namespaceObject.__)('"%s" duplicated.'), item.title), {
+ type: 'snackbar',
+ id: 'edit-site-patterns-success'
+ });
+ closeModal();
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CreateTemplatePartModalContents, {
+ blocks: item.blocks,
+ defaultArea: item.templatePart?.area || item.area,
+ defaultTitle: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Existing template part title */
+ (0,external_wp_i18n_namespaceObject.__)('%s (Copy)'), item.title),
+ onCreate: onTemplatePartSuccess,
+ onError: closeModal,
+ confirmLabel: (0,external_wp_i18n_namespaceObject._x)('Duplicate', 'action label')
+ });
+ }
+};
+function usePostActions({
+ postType,
+ onActionPerformed,
+ context
+}) {
+ const {
+ postTypeObject,
+ resource,
+ cachedCanUserResolvers,
+ userCanCreatePostType
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getPostType,
+ getCachedResolvers,
+ canUser
+ } = select(external_wp_coreData_namespaceObject.store);
+ const _postTypeObject = getPostType(postType);
+ const _resource = _postTypeObject?.rest_base || '';
return {
- isInserterOpened: select(store_store).isInserterOpened(),
- isListViewOpen: isListViewOpened(),
- listViewShortcut: getShortcutRepresentation('core/editor/toggle-list-view'),
- listViewToggleRef: getListViewToggleRef(),
- hasFixedToolbar: getSettings().hasFixedToolbar,
- showIconLabels: get('core', 'showIconLabels'),
- isDistractionFree: get('core', 'distractionFree')
+ postTypeObject: _postTypeObject,
+ resource: _resource,
+ cachedCanUserResolvers: getCachedResolvers()?.canUser,
+ userCanCreatePostType: canUser('create', _resource)
+ };
+ }, [postType]);
+ const trashPostActionForPostType = useTrashPostAction(resource);
+ const permanentlyDeletePostActionForPostType = usePermanentlyDeletePostAction(resource);
+ const renamePostActionForPostType = useRenamePostAction(resource);
+ const restorePostActionForPostType = useRestorePostAction(resource);
+ const isTemplateOrTemplatePart = [TEMPLATE_POST_TYPE, TEMPLATE_PART_POST_TYPE].includes(postType);
+ const isPattern = postType === PATTERN_POST_TYPE;
+ const isLoaded = !!postTypeObject;
+ const supportsRevisions = !!postTypeObject?.supports?.revisions;
+ const supportsTitle = !!postTypeObject?.supports?.title;
+ return (0,external_wp_element_namespaceObject.useMemo)(() => {
+ if (!isLoaded) {
+ return [];
+ }
+ let actions = [postTypeObject?.viewable && viewPostAction, supportsRevisions && postRevisionsAction, false ? 0 : false, isTemplateOrTemplatePart && userCanCreatePostType && duplicateTemplatePartAction, isPattern && userCanCreatePostType && duplicatePatternAction, supportsTitle && renamePostActionForPostType, isPattern && exportPatternAsJSONAction, isTemplateOrTemplatePart ? resetTemplateAction : restorePostActionForPostType, isTemplateOrTemplatePart || isPattern ? deletePostAction : trashPostActionForPostType, !isTemplateOrTemplatePart && permanentlyDeletePostActionForPostType].filter(Boolean);
+ // Filter actions based on provided context. If not provided
+ // all actions are returned. We'll have a single entry for getting the actions
+ // and the consumer should provide the context to filter the actions, if needed.
+ // Actions should also provide the `context` they support, if it's specific, to
+ // compare with the provided context to get all the actions.
+ // Right now the only supported context is `list`.
+ actions = actions.filter(action => {
+ if (!action.context) {
+ return true;
+ }
+ return action.context === context;
+ });
+ if (onActionPerformed) {
+ for (let i = 0; i < actions.length; ++i) {
+ if (actions[i].callback) {
+ const existingCallback = actions[i].callback;
+ actions[i] = {
+ ...actions[i],
+ callback: (items, _onActionPerformed) => {
+ existingCallback(items, _items => {
+ if (_onActionPerformed) {
+ _onActionPerformed(_items);
+ }
+ onActionPerformed(actions[i].id, _items);
+ });
+ }
+ };
+ }
+ if (actions[i].RenderModal) {
+ const ExistingRenderModal = actions[i].RenderModal;
+ actions[i] = {
+ ...actions[i],
+ RenderModal: props => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ExistingRenderModal, {
+ ...props,
+ onActionPerformed: _items => {
+ if (props.onActionPerformed) {
+ props.onActionPerformed(_items);
+ }
+ onActionPerformed(actions[i].id, _items);
+ }
+ });
+ }
+ };
+ }
+ }
+ }
+ return actions;
+ // We are making this use memo depend on cachedCanUserResolvers as a way to make the component using this hook re-render
+ // when user capabilities are resolved. This makes sure the isEligible functions of actions dependent on capabilities are re-evaluated.
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [isTemplateOrTemplatePart, isPattern, postTypeObject?.viewable, permanentlyDeletePostActionForPostType, restorePostActionForPostType, renamePostActionForPostType, trashPostActionForPostType, onActionPerformed, isLoaded, supportsRevisions, supportsTitle, context, userCanCreatePostType, cachedCanUserResolvers]);
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-actions/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+const {
+ DropdownMenuV2: DropdownMenu,
+ DropdownMenuGroupV2: DropdownMenuGroup,
+ DropdownMenuItemV2: DropdownMenuItem,
+ DropdownMenuItemLabelV2: DropdownMenuItemLabel,
+ kebabCase
+} = unlock(external_wp_components_namespaceObject.privateApis);
+function PostActions({
+ onActionPerformed,
+ buttonProps
+}) {
+ const [isActionsMenuOpen, setIsActionsMenuOpen] = (0,external_wp_element_namespaceObject.useState)(false);
+ const {
+ item,
+ postType
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getCurrentPostType,
+ getCurrentPostId
+ } = select(store_store);
+ const {
+ getEditedEntityRecord
+ } = select(external_wp_coreData_namespaceObject.store);
+ const _postType = getCurrentPostType();
+ return {
+ item: getEditedEntityRecord('postType', _postType, getCurrentPostId()),
+ postType: _postType
};
}, []);
- const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
- const isWideViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('wide');
- const blockToolbarCanBeFocused = useCanBlockToolbarBeFocused();
+ const allActions = usePostActions({
+ postType,
+ onActionPerformed
+ });
+ const actions = (0,external_wp_element_namespaceObject.useMemo)(() => {
+ return allActions.filter(action => {
+ return !action.isEligible || action.isEligible(item);
+ });
+ }, [allActions, item]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenu, {
+ open: isActionsMenuOpen,
+ trigger: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "small",
+ icon: more_vertical,
+ label: (0,external_wp_i18n_namespaceObject.__)('Actions'),
+ disabled: !actions.length,
+ __experimentalIsFocusable: true,
+ className: "editor-all-actions-button",
+ onClick: () => setIsActionsMenuOpen(!isActionsMenuOpen),
+ ...buttonProps
+ }),
+ onOpenChange: setIsActionsMenuOpen,
+ placement: "bottom-end",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionsDropdownMenuGroup, {
+ actions: actions,
+ item: item,
+ onClose: () => {
+ setIsActionsMenuOpen(false);
+ }
+ })
+ });
+}
- /* translators: accessibility text for the editor toolbar */
- const toolbarAriaLabel = (0,external_wp_i18n_namespaceObject.__)('Document tools');
- const toggleListView = (0,external_wp_element_namespaceObject.useCallback)(() => setIsListViewOpened(!isListViewOpen), [setIsListViewOpened, isListViewOpen]);
- const toggleInserter = (0,external_wp_element_namespaceObject.useCallback)(() => {
- if (isInserterOpened) {
- // Focusing the inserter button should close the inserter popover.
- // However, there are some cases it won't close when the focus is lost.
- // See https://github.com/WordPress/gutenberg/issues/43090 for more details.
- inserterButton.current.focus();
- setIsInserterOpened(false);
- } else {
- setIsInserterOpened(true);
- }
- }, [isInserterOpened, setIsInserterOpened]);
+// From now on all the functions on this file are copied as from the dataviews packages,
+// The editor packages should not be using the dataviews packages directly,
+// and the dataviews package should not be using the editor packages directly,
+// so duplicating the code here seems like the least bad option.
- /* translators: button label text should, if possible, be under 16 characters. */
- const longLabel = (0,external_wp_i18n_namespaceObject._x)('Toggle block inserter', 'Generic label for block inserter button');
- const shortLabel = !isInserterOpened ? (0,external_wp_i18n_namespaceObject.__)('Add') : (0,external_wp_i18n_namespaceObject.__)('Close');
- return (
- // Some plugins expect and use the `edit-post-header-toolbar` CSS class to
- // find the toolbar and inject UI elements into it. This is not officially
- // supported, but we're keeping it in the list of class names for backwards
- // compatibility.
- (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.NavigableToolbar, {
- className: classnames_default()('editor-document-tools', 'edit-post-header-toolbar', className),
- "aria-label": toolbarAriaLabel,
- shouldUseKeyboardFocusShortcut: !blockToolbarCanBeFocused,
- variant: "unstyled"
- }, (0,external_React_.createElement)("div", {
- className: "editor-document-tools__left"
- }, !isDistractionFree && (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarItem, {
- ref: inserterButton,
- as: external_wp_components_namespaceObject.Button,
- className: "editor-document-tools__inserter-toggle",
- variant: "primary",
- isPressed: isInserterOpened,
- onMouseDown: preventDefault,
- onClick: toggleInserter,
- disabled: disableBlockTools,
- icon: library_plus,
- label: showIconLabels ? shortLabel : longLabel,
- showTooltip: !showIconLabels,
- "aria-expanded": isInserterOpened
- }), (isWideViewport || !showIconLabels) && (0,external_React_.createElement)(external_React_.Fragment, null, isLargeViewport && !hasFixedToolbar && (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarItem, {
- as: external_wp_blockEditor_namespaceObject.ToolSelector,
- showTooltip: !showIconLabels,
- variant: showIconLabels ? 'tertiary' : undefined,
- disabled: disableBlockTools,
- size: "compact"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarItem, {
- as: editor_history_undo,
- showTooltip: !showIconLabels,
- variant: showIconLabels ? 'tertiary' : undefined,
- size: "compact"
- }), (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarItem, {
- as: editor_history_redo,
- showTooltip: !showIconLabels,
- variant: showIconLabels ? 'tertiary' : undefined,
- size: "compact"
- }), !isDistractionFree && (0,external_React_.createElement)(external_wp_components_namespaceObject.ToolbarItem, {
- as: external_wp_components_namespaceObject.Button,
- className: "editor-document-tools__document-overview-toggle",
- icon: list_view,
- disabled: disableBlockTools,
- isPressed: isListViewOpen
- /* translators: button label text should, if possible, be under 16 characters. */,
- label: listViewLabel,
- onClick: toggleListView,
- shortcut: listViewShortcut,
- showTooltip: !showIconLabels,
- variant: showIconLabels ? 'tertiary' : undefined,
- "aria-expanded": isListViewOpen,
- ref: listViewToggleRef,
- size: "compact"
- })), children))
- );
+// Copied as is from packages/dataviews/src/item-actions.js
+function DropdownMenuItemTrigger({
+ action,
+ onClick,
+ items
+}) {
+ const label = typeof action.label === 'string' ? action.label : action.label(items);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuItem, {
+ onClick: onClick,
+ hideOnClick: !action.RenderModal,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuItemLabel, {
+ children: label
+ })
+ });
}
-/* harmony default export */ const document_tools = (DocumentTools);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
+// Copied as is from packages/dataviews/src/item-actions.js
+// With an added onClose prop.
+function ActionWithModal({
+ action,
+ item,
+ ActionTrigger,
+ onClose
+}) {
+ const [isModalOpen, setIsModalOpen] = (0,external_wp_element_namespaceObject.useState)(false);
+ const actionTriggerProps = {
+ action,
+ onClick: () => setIsModalOpen(true),
+ items: [item]
+ };
+ const {
+ RenderModal,
+ hideModalHeader
+ } = action;
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionTrigger, {
+ ...actionTriggerProps
+ }), isModalOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ title: action.modalHeader || action.label,
+ __experimentalHideHeader: !!hideModalHeader,
+ onRequestClose: () => {
+ setIsModalOpen(false);
+ },
+ overlayClassName: `editor-action-modal editor-action-modal__${kebabCase(action.id)}`,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RenderModal, {
+ items: [item],
+ closeModal: () => {
+ setIsModalOpen(false);
+ onClose();
+ }
+ })
+ })]
+ });
+}
+
+// Copied as is from packages/dataviews/src/item-actions.js
+// With an added onClose prop.
+function ActionsDropdownMenuGroup({
+ actions,
+ item,
+ onClose
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuGroup, {
+ children: actions.map(action => {
+ if (action.RenderModal) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionWithModal, {
+ action: action,
+ item: item,
+ ActionTrigger: DropdownMenuItemTrigger,
+ onClose: onClose
+ }, action.id);
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuItemTrigger, {
+ action: action,
+ onClick: () => action.callback([item]),
+ items: [item]
+ }, action.id);
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-card-panel/index.js
+/**
+ * External dependencies
+ */
/**
* WordPress dependencies
*/
-const close_close = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.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 */ const library_close = (close_close);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/inserter-sidebar/index.js
+
+
+
/**
- * WordPress dependencies
+ * Internal dependencies
*/
+function PostCardPanel({
+ actions
+}) {
+ const {
+ isFrontPage,
+ isPostsPage,
+ title,
+ icon,
+ isSync
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getEditedPostAttribute,
+ getCurrentPostType,
+ getCurrentPostId,
+ __experimentalGetTemplateInfo
+ } = select(store_store);
+ const {
+ getEditedEntityRecord
+ } = select(external_wp_coreData_namespaceObject.store);
+ const siteSettings = getEditedEntityRecord('root', 'site');
+ const _type = getCurrentPostType();
+ const _id = getCurrentPostId();
+ const _record = getEditedEntityRecord('postType', _type, _id);
+ const _templateInfo = [TEMPLATE_POST_TYPE, TEMPLATE_PART_POST_TYPE].includes(_type) && __experimentalGetTemplateInfo(_record);
+ let _isSync = false;
+ if (GLOBAL_POST_TYPES.includes(_type)) {
+ if (PATTERN_POST_TYPE === _type) {
+ // When the post is first created, the top level wp_pattern_sync_status is not set so get meta value instead.
+ const currentSyncStatus = getEditedPostAttribute('meta')?.wp_pattern_sync_status === 'unsynced' ? 'unsynced' : getEditedPostAttribute('wp_pattern_sync_status');
+ _isSync = currentSyncStatus !== 'unsynced';
+ } else {
+ _isSync = true;
+ }
+ }
+ return {
+ title: _templateInfo?.title || getEditedPostAttribute('title'),
+ icon: unlock(select(store_store)).getPostIcon(_type, {
+ area: _record?.area
+ }),
+ isSync: _isSync,
+ isFrontPage: siteSettings?.page_on_front === _id,
+ isPostsPage: siteSettings?.page_for_posts === _id
+ };
+ }, []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-post-card-panel",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ spacing: 2,
+ className: "editor-post-card-panel__header",
+ align: "flex-start",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
+ className: dist_clsx('editor-post-card-panel__icon', {
+ 'is-sync': isSync
+ }),
+ icon: icon
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalText, {
+ numberOfLines: 2,
+ truncate: true,
+ className: "editor-post-card-panel__title",
+ weight: 500,
+ as: "h2",
+ lineHeight: "20px",
+ children: [title ? (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title) : (0,external_wp_i18n_namespaceObject.__)('No Title'), isFrontPage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "editor-post-card-panel__title-badge",
+ children: (0,external_wp_i18n_namespaceObject.__)('Front Page')
+ }), isPostsPage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "editor-post-card-panel__title-badge",
+ children: (0,external_wp_i18n_namespaceObject.__)('Posts Page')
+ })]
+ }), actions]
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-content-information/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
@@ -16007,66 +26364,70 @@ const close_close = (0,external_React_.createElement)(external_wp_primitives_nam
*/
-function InserterSidebar() {
+
+// Taken from packages/editor/src/components/time-to-read/index.js.
+
+const post_content_information_AVERAGE_READING_RATE = 189;
+
+// This component renders the wordcount and reading time for the post.
+function PostContentInformation() {
const {
- insertionPoint,
- showMostUsedBlocks
+ postContent
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
- getInsertionPoint
- } = unlock(select(store_store));
+ getEditedPostAttribute,
+ getCurrentPostType,
+ getCurrentPostId
+ } = select(store_store);
const {
- get
- } = select(external_wp_preferences_namespaceObject.store);
+ getEntityRecord
+ } = select(external_wp_coreData_namespaceObject.store);
+ const siteSettings = getEntityRecord('root', 'site');
+ const postType = getCurrentPostType();
+ const _id = getCurrentPostId();
+ const isPostsPage = +_id === siteSettings?.page_for_posts;
+ const showPostContentInfo = !isPostsPage && ![TEMPLATE_POST_TYPE, TEMPLATE_PART_POST_TYPE].includes(postType);
return {
- insertionPoint: getInsertionPoint(),
- showMostUsedBlocks: get('core', 'mostUsedBlocks')
+ postContent: showPostContentInfo && getEditedPostAttribute('content')
};
}, []);
- const {
- setIsInserterOpened
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
- const TagName = !isMobileViewport ? external_wp_components_namespaceObject.VisuallyHidden : 'div';
- const [inserterDialogRef, inserterDialogProps] = (0,external_wp_compose_namespaceObject.__experimentalUseDialog)({
- onClose: () => setIsInserterOpened(false),
- focusOnMount: null
+
+ /*
+ * translators: If your word count is based on single characters (e.g. East Asian characters),
+ * enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'.
+ * Do not translate into your own language.
+ */
+ const wordCountType = (0,external_wp_i18n_namespaceObject._x)('words', 'Word count type. Do not translate!');
+ const wordsCounted = (0,external_wp_element_namespaceObject.useMemo)(() => postContent ? (0,external_wp_wordcount_namespaceObject.count)(postContent, wordCountType) : 0, [postContent, wordCountType]);
+ if (!wordsCounted) {
+ return null;
+ }
+ const readingTime = Math.round(wordsCounted / post_content_information_AVERAGE_READING_RATE);
+ const wordsCountText = (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: the number of words in the post.
+ (0,external_wp_i18n_namespaceObject._n)('%s word', '%s words', wordsCounted), wordsCounted.toLocaleString());
+ const minutesText = readingTime <= 1 ? (0,external_wp_i18n_namespaceObject.__)('1 minute') : (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: the number of minutes to read the post.
+ (0,external_wp_i18n_namespaceObject._n)('%s minute', '%s minutes', readingTime), readingTime.toLocaleString());
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-post-content-information",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: How many words a post has. 2: the number of minutes to read the post (e.g. 130 words, 2 minutes read time.) */
+ (0,external_wp_i18n_namespaceObject.__)('%1$s, %2$s read time.'), wordsCountText, minutesText)
+ })
});
- const libraryRef = (0,external_wp_element_namespaceObject.useRef)();
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- libraryRef.current.focusSearch();
- }, []);
- return (0,external_React_.createElement)("div", {
- ref: inserterDialogRef,
- ...inserterDialogProps,
- className: "editor-inserter-sidebar"
- }, (0,external_React_.createElement)(TagName, {
- className: "editor-inserter-sidebar__header"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: library_close,
- label: (0,external_wp_i18n_namespaceObject.__)('Close block inserter'),
- onClick: () => setIsInserterOpened(false)
- })), (0,external_React_.createElement)("div", {
- className: "editor-inserter-sidebar__content"
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.__experimentalLibrary, {
- showMostUsedBlocks: showMostUsedBlocks,
- showInserterHelpPanel: true,
- shouldFocusBlock: isMobileViewport,
- rootClientId: insertionPoint.rootClientId,
- __experimentalInsertionIndex: insertionPoint.insertionIndex,
- __experimentalFilterValue: insertionPoint.filterValue,
- ref: libraryRef
- })));
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/list-view-sidebar/list-view-outline.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-format/panel.js
/**
* WordPress dependencies
*/
+
+
+
/**
* Internal dependencies
*/
@@ -16074,19 +26435,132 @@ function InserterSidebar() {
-function ListViewOutline() {
- return (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)("div", {
- className: "editor-list-view-sidebar__outline"
- }, (0,external_React_.createElement)("div", null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, null, (0,external_wp_i18n_namespaceObject.__)('Characters:')), (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, null, (0,external_React_.createElement)(CharacterCount, null))), (0,external_React_.createElement)("div", null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, null, (0,external_wp_i18n_namespaceObject.__)('Words:')), (0,external_React_.createElement)(WordCount, null)), (0,external_React_.createElement)("div", null, (0,external_React_.createElement)(external_wp_components_namespaceObject.__experimentalText, null, (0,external_wp_i18n_namespaceObject.__)('Time to read:')), (0,external_React_.createElement)(TimeToRead, null))), (0,external_React_.createElement)(document_outline, null));
+
+/**
+ * Renders the Post Author Panel component.
+ *
+ * @return {Component} The component to be rendered.
+ */
+
+
+function panel_PostFormat() {
+ const {
+ postFormat
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getEditedPostAttribute
+ } = select(store_store);
+ const _postFormat = getEditedPostAttribute('format');
+ return {
+ postFormat: _postFormat !== null && _postFormat !== void 0 ? _postFormat : 'standard'
+ };
+ }, []);
+ const activeFormat = POST_FORMATS.find(format => format.id === postFormat);
+
+ // Use internal state instead of a ref to make sure that the component
+ // re-renders when the popover's anchor updates.
+ const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
+ // Memoize popoverProps to avoid returning a new object every time.
+ const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ // Anchor the popover to the middle of the entire row so that it doesn't
+ // move around when the label changes.
+ anchor: popoverAnchor,
+ placement: 'left-start',
+ offset: 36,
+ shift: true
+ }), [popoverAnchor]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_format_check, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Format'),
+ ref: setPopoverAnchor,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ popoverProps: popoverProps,
+ contentClassName: "editor-post-format__dialog",
+ focusOnMount: true,
+ renderToggle: ({
+ isOpen,
+ onToggle
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "compact",
+ variant: "tertiary",
+ "aria-expanded": isOpen,
+ "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Current post format.
+ (0,external_wp_i18n_namespaceObject.__)('Change format: %s'), activeFormat?.caption),
+ onClick: onToggle,
+ children: activeFormat?.caption
+ }),
+ renderContent: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-post-format__dialog-content",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Format'),
+ onClose: onClose
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostFormat, {})]
+ })
+ })
+ })
+ });
}
+/* harmony default export */ const post_format_panel = (panel_PostFormat);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-last-edited-panel/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+function PostLastEditedPanel() {
+ const modified = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getEditedPostAttribute('modified'), []);
+ const lastEditedText = modified && (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Human-readable time difference, e.g. "2 days ago".
+ (0,external_wp_i18n_namespaceObject.__)('Last edited %s.'), (0,external_wp_date_namespaceObject.humanTimeDiff)(modified));
+ if (!lastEditedText) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "editor-post-last-edited-panel",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ children: lastEditedText
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-panel-section/index.js
+/**
+ * External dependencies
+ */
-;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/list-view-sidebar/index.js
/**
* WordPress dependencies
*/
+function PostPanelSection({
+ className,
+ children
+}) {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalVStack, {
+ className: dist_clsx('editor-post-panel__section', className),
+ children: children
+ });
+}
+/* harmony default export */ const post_panel_section = (PostPanelSection);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/blog-title/index.js
+/**
+ * WordPress dependencies
+ */
@@ -16102,151 +26576,582 @@ function ListViewOutline() {
-const {
- Tabs
-} = unlock(external_wp_components_namespaceObject.privateApis);
-function ListViewSidebar() {
+
+
+
+const blog_title_EMPTY_OBJECT = {};
+function BlogTitle() {
const {
- setIsListViewOpened
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
+ editEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
const {
- getListViewToggleRef
- } = unlock((0,external_wp_data_namespaceObject.useSelect)(store_store));
+ postsPageTitle,
+ postsPageId,
+ isTemplate,
+ postSlug
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getEntityRecord,
+ getEditedEntityRecord
+ } = select(external_wp_coreData_namespaceObject.store);
+ const siteSettings = getEntityRecord('root', 'site');
+ const _postsPageRecord = siteSettings?.page_for_posts ? getEditedEntityRecord('postType', 'page', siteSettings?.page_for_posts) : blog_title_EMPTY_OBJECT;
+ const {
+ getEditedPostAttribute,
+ getCurrentPostType
+ } = select(store_store);
+ return {
+ postsPageId: _postsPageRecord?.id,
+ postsPageTitle: _postsPageRecord?.title,
+ isTemplate: getCurrentPostType() === TEMPLATE_POST_TYPE,
+ postSlug: getEditedPostAttribute('slug')
+ };
+ }, []);
+ // Use internal state instead of a ref to make sure that the component
+ // re-renders when the popover's anchor updates.
+ const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
+ // Memoize popoverProps to avoid returning a new object every time.
+ const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ // Anchor the popover to the middle of the entire row so that it doesn't
+ // move around when the label changes.
+ anchor: popoverAnchor,
+ placement: 'left-start',
+ offset: 36,
+ shift: true
+ }), [popoverAnchor]);
+ if (!isTemplate || !['home', 'index'].includes(postSlug) || !postsPageId) {
+ return null;
+ }
+ const setPostsPageTitle = newValue => {
+ editEntityRecord('postType', 'page', postsPageId, {
+ title: newValue
+ });
+ };
+ const decodedTitle = (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(postsPageTitle);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Blog title'),
+ ref: setPopoverAnchor,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ popoverProps: popoverProps,
+ contentClassName: "editor-blog-title-dropdown__content",
+ focusOnMount: true,
+ renderToggle: ({
+ isOpen,
+ onToggle
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "compact",
+ variant: "tertiary",
+ "aria-expanded": isOpen,
+ "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
+ // translators: %s: Current post link.
+ (0,external_wp_i18n_namespaceObject.__)('Change blog title: %s'), decodedTitle),
+ onClick: onToggle,
+ children: decodedTitle
+ }),
+ renderContent: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Blog title'),
+ onClose: onClose
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalInputControl, {
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('No Title'),
+ size: "__unstable-large",
+ value: postsPageTitle,
+ onChange: (0,external_wp_compose_namespaceObject.debounce)(setPostsPageTitle, 300),
+ label: (0,external_wp_i18n_namespaceObject.__)('Blog title'),
+ help: (0,external_wp_i18n_namespaceObject.__)('Set the Posts Page title. Appears in search results, and when the page is shared on social media.'),
+ hideLabelFromVision: true
+ })]
+ })
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/posts-per-page/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
- // This hook handles focus when the sidebar first renders.
- const focusOnMountRef = (0,external_wp_compose_namespaceObject.useFocusOnMount)('firstElement');
- // When closing the list view, focus should return to the toggle button.
- const closeListView = (0,external_wp_element_namespaceObject.useCallback)(() => {
- setIsListViewOpened(false);
- getListViewToggleRef().current?.focus();
- }, [getListViewToggleRef, setIsListViewOpened]);
- const closeOnEscape = (0,external_wp_element_namespaceObject.useCallback)(event => {
- if (event.keyCode === external_wp_keycodes_namespaceObject.ESCAPE && !event.defaultPrevented) {
- event.preventDefault();
- closeListView();
- }
- }, [closeListView]);
+
+function PostsPerPage() {
+ const {
+ editEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const {
+ postsPerPage,
+ isTemplate,
+ postSlug
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getEditedPostAttribute,
+ getCurrentPostType
+ } = select(store_store);
+ const {
+ getEditedEntityRecord
+ } = select(external_wp_coreData_namespaceObject.store);
+ const siteSettings = getEditedEntityRecord('root', 'site');
+ return {
+ isTemplate: getCurrentPostType() === TEMPLATE_POST_TYPE,
+ postSlug: getEditedPostAttribute('slug'),
+ postsPerPage: siteSettings?.posts_per_page || 1
+ };
+ }, []);
// Use internal state instead of a ref to make sure that the component
- // re-renders when the dropZoneElement updates.
- const [dropZoneElement, setDropZoneElement] = (0,external_wp_element_namespaceObject.useState)(null);
- // Tracks our current tab.
- const [tab, setTab] = (0,external_wp_element_namespaceObject.useState)('list-view');
+ // re-renders when the popover's anchor updates.
+ const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
+ // Memoize popoverProps to avoid returning a new object every time.
+ const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ // Anchor the popover to the middle of the entire row so that it doesn't
+ // move around when the label changes.
+ anchor: popoverAnchor,
+ placement: 'left-start',
+ offset: 36,
+ shift: true
+ }), [popoverAnchor]);
+ if (!isTemplate || !['home', 'index'].includes(postSlug)) {
+ return null;
+ }
+ const setPostsPerPage = newValue => {
+ editEntityRecord('root', 'site', undefined, {
+ posts_per_page: newValue
+ });
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Posts per page'),
+ ref: setPopoverAnchor,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ popoverProps: popoverProps,
+ contentClassName: "editor-posts-per-page-dropdown__content",
+ focusOnMount: true,
+ renderToggle: ({
+ isOpen,
+ onToggle
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "compact",
+ variant: "tertiary",
+ "aria-expanded": isOpen,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Change posts per page'),
+ onClick: onToggle,
+ children: postsPerPage
+ }),
+ renderContent: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Posts per page'),
+ onClose: onClose
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNumberControl, {
+ placeholder: 0,
+ value: postsPerPage,
+ size: "__unstable-large",
+ spinControls: "custom",
+ step: "1",
+ min: "1",
+ onChange: setPostsPerPage,
+ label: (0,external_wp_i18n_namespaceObject.__)('Posts per page'),
+ help: (0,external_wp_i18n_namespaceObject.__)('Set the default number of posts to display on blog pages, including categories and tags. Some templates may override this setting.'),
+ hideLabelFromVision: true
+ })]
+ })
+ })
+ });
+}
- // This ref refers to the sidebar as a whole.
- const sidebarRef = (0,external_wp_element_namespaceObject.useRef)();
- // This ref refers to the tab panel.
- const tabsRef = (0,external_wp_element_namespaceObject.useRef)();
- // This ref refers to the list view application area.
- const listViewRef = (0,external_wp_element_namespaceObject.useRef)();
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/site-discussion/index.js
+/**
+ * WordPress dependencies
+ */
- // Must merge the refs together so focus can be handled properly in the next function.
- const listViewContainerRef = (0,external_wp_compose_namespaceObject.useMergeRefs)([focusOnMountRef, listViewRef, setDropZoneElement]);
- /*
- * Callback function to handle list view or outline focus.
- *
- * @param {string} currentTab The current tab. Either list view or outline.
- *
- * @return void
- */
- function handleSidebarFocus(currentTab) {
- // Tab panel focus.
- const tabPanelFocus = external_wp_dom_namespaceObject.focus.tabbable.find(tabsRef.current)[0];
- // List view tab is selected.
- if (currentTab === 'list-view') {
- // Either focus the list view or the tab panel. Must have a fallback because the list view does not render when there are no blocks.
- const listViewApplicationFocus = external_wp_dom_namespaceObject.focus.tabbable.find(listViewRef.current)[0];
- const listViewFocusArea = sidebarRef.current.contains(listViewApplicationFocus) ? listViewApplicationFocus : tabPanelFocus;
- listViewFocusArea.focus();
- // Outline tab is selected.
- } else {
- tabPanelFocus.focus();
- }
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+const site_discussion_COMMENT_OPTIONS = [{
+ label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [(0,external_wp_i18n_namespaceObject.__)('Open'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ size: 12,
+ children: (0,external_wp_i18n_namespaceObject.__)('Visitors can add new comments and replies.')
+ })]
+ }),
+ value: 'open'
+}, {
+ label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [(0,external_wp_i18n_namespaceObject.__)('Closed'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ size: 12,
+ children: (0,external_wp_i18n_namespaceObject.__)('Visitors cannot add new comments or replies.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ variant: "muted",
+ size: 12,
+ children: (0,external_wp_i18n_namespaceObject.__)('Existing comments remain visible.')
+ })]
+ }),
+ value: ''
+}];
+function SiteDiscussion() {
+ const {
+ editEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const {
+ allowCommentsOnNewPosts,
+ isTemplate,
+ postSlug
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getEditedPostAttribute,
+ getCurrentPostType
+ } = select(store_store);
+ const {
+ getEditedEntityRecord
+ } = select(external_wp_coreData_namespaceObject.store);
+ const siteSettings = getEditedEntityRecord('root', 'site');
+ return {
+ isTemplate: getCurrentPostType() === TEMPLATE_POST_TYPE,
+ postSlug: getEditedPostAttribute('slug'),
+ allowCommentsOnNewPosts: siteSettings?.default_comment_status || ''
+ };
+ }, []);
+ // Use internal state instead of a ref to make sure that the component
+ // re-renders when the popover's anchor updates.
+ const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
+ // Memoize popoverProps to avoid returning a new object every time.
+ const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
+ // Anchor the popover to the middle of the entire row so that it doesn't
+ // move around when the label changes.
+ anchor: popoverAnchor,
+ placement: 'left-start',
+ offset: 36,
+ shift: true
+ }), [popoverAnchor]);
+ if (!isTemplate || !['home', 'index'].includes(postSlug)) {
+ return null;
}
- const handleToggleListViewShortcut = (0,external_wp_element_namespaceObject.useCallback)(() => {
- // If the sidebar has focus, it is safe to close.
- if (sidebarRef.current.contains(sidebarRef.current.ownerDocument.activeElement)) {
- closeListView();
- } else {
- // If the list view or outline does not have focus, focus should be moved to it.
- handleSidebarFocus(tab);
- }
- }, [closeListView, tab]);
+ const setAllowCommentsOnNewPosts = newValue => {
+ editEntityRecord('root', 'site', undefined, {
+ default_comment_status: newValue ? 'open' : null
+ });
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Discussion'),
+ ref: setPopoverAnchor,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
+ popoverProps: popoverProps,
+ contentClassName: "editor-site-discussion-dropdown__content",
+ focusOnMount: true,
+ renderToggle: ({
+ isOpen,
+ onToggle
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ size: "compact",
+ variant: "tertiary",
+ "aria-expanded": isOpen,
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Change discussion settings'),
+ onClick: onToggle,
+ children: allowCommentsOnNewPosts ? (0,external_wp_i18n_namespaceObject.__)('Comments open') : (0,external_wp_i18n_namespaceObject.__)('Comments closed')
+ }),
+ renderContent: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Discussion'),
+ onClose: onClose
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 3,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ children: (0,external_wp_i18n_namespaceObject.__)('Changes will apply to new posts only. Individual posts may override these settings.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RadioControl, {
+ className: "editor-site-discussion__options",
+ hideLabelFromVision: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Comment status'),
+ options: site_discussion_COMMENT_OPTIONS,
+ onChange: setAllowCommentsOnNewPosts,
+ selected: allowCommentsOnNewPosts
+ })]
+ })]
+ })
+ })
+ });
+}
- // This only fires when the sidebar is open because of the conditional rendering.
- // It is the same shortcut to open but that is defined as a global shortcut and only fires when the sidebar is closed.
- (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/editor/toggle-list-view', handleToggleListViewShortcut);
- return (
- // eslint-disable-next-line jsx-a11y/no-static-element-interactions
- (0,external_React_.createElement)("div", {
- className: "editor-list-view-sidebar",
- onKeyDown: closeOnEscape,
- ref: sidebarRef
- }, (0,external_React_.createElement)(Tabs, {
- onSelect: tabName => setTab(tabName),
- selectOnMove: false
- // The initial tab value is set explicitly to avoid an initial
- // render where no tab is selected. This ensures that the
- // tabpanel height is correct so the relevant scroll container
- // can be rendered internally.
- ,
- initialTabId: "list-view"
- }, (0,external_React_.createElement)("div", {
- className: "edit-post-editor__document-overview-panel__header"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- className: "editor-list-view-sidebar__close-button",
- icon: close_small,
- label: (0,external_wp_i18n_namespaceObject.__)('Close'),
- onClick: closeListView
- }), (0,external_React_.createElement)(Tabs.TabList, {
- className: "editor-list-view-sidebar__tabs-tablist",
- ref: tabsRef
- }, (0,external_React_.createElement)(Tabs.Tab, {
- className: "editor-list-view-sidebar__tabs-tab",
- tabId: "list-view"
- }, (0,external_wp_i18n_namespaceObject._x)('List View', 'Post overview')), (0,external_React_.createElement)(Tabs.Tab, {
- className: "editor-list-view-sidebar__tabs-tab",
- tabId: "outline"
- }, (0,external_wp_i18n_namespaceObject._x)('Outline', 'Post overview')))), (0,external_React_.createElement)(Tabs.TabPanel, {
- ref: listViewContainerRef,
- className: "editor-list-view-sidebar__tabs-tabpanel",
- tabId: "list-view",
- focusable: false
- }, (0,external_React_.createElement)("div", {
- className: "editor-list-view-sidebar__list-view-container"
- }, (0,external_React_.createElement)("div", {
- className: "editor-list-view-sidebar__list-view-panel-content"
- }, (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.__experimentalListView, {
- dropZoneElement: dropZoneElement
- })))), (0,external_React_.createElement)(Tabs.TabPanel, {
- className: "editor-list-view-sidebar__tabs-tabpanel",
- tabId: "outline",
- focusable: false
- }, (0,external_React_.createElement)("div", {
- className: "editor-list-view-sidebar__list-view-container"
- }, (0,external_React_.createElement)(ListViewOutline, null)))))
- );
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/template-areas/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+function TemplateAreaItem({
+ area,
+ clientId
+}) {
+ const {
+ selectBlock,
+ toggleBlockHighlight
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
+ const templatePartArea = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const defaultAreas = select(store_store).__experimentalGetDefaultTemplatePartAreas();
+ return defaultAreas.find(defaultArea => defaultArea.area === area);
+ }, [area]);
+ const highlightBlock = () => toggleBlockHighlight(clientId, true);
+ const cancelHighlightBlock = () => toggleBlockHighlight(clientId, false);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "editor-template-areas__item",
+ icon: templatePartArea?.icon,
+ onMouseOver: highlightBlock,
+ onMouseLeave: cancelHighlightBlock,
+ onFocus: highlightBlock,
+ onBlur: cancelHighlightBlock,
+ onClick: () => {
+ selectBlock(clientId);
+ },
+ children: templatePartArea?.label
+ });
+}
+function TemplateAreas() {
+ const {
+ isTemplate,
+ templateParts
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const _isTemplate = select(store_store).getCurrentPostType() === TEMPLATE_POST_TYPE;
+ return {
+ isTemplate: _isTemplate,
+ templateParts: _isTemplate && unlock(select(store_store)).getCurrentTemplateTemplateParts()
+ };
+ }, []);
+ if (!isTemplate || !templateParts.length) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("section", {
+ className: "editor-template-areas",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
+ level: 3,
+ className: "editor-template-areas__title",
+ children: (0,external_wp_i18n_namespaceObject.__)('Areas')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ className: "editor-template-areas__list",
+ children: templateParts.map(({
+ templatePart,
+ block
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplateAreaItem, {
+ area: templatePart.area,
+ clientId: block.clientId
+ })
+ }, block.clientId))
+ })]
+ });
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/sidebar/post-summary.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+/**
+ * Module Constants
+ */
+
+
+
+const post_summary_PANEL_NAME = 'post-status';
+function PostSummary({
+ onActionPerformed
+}) {
+ const {
+ isRemovedPostStatusPanel
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ // We use isEditorPanelRemoved to hide the panel if it was programatically removed. We do
+ // not use isEditorPanelEnabled since this panel should not be disabled through the UI.
+ const {
+ isEditorPanelRemoved,
+ getCurrentPostType
+ } = select(store_store);
+ return {
+ isRemovedPostStatusPanel: isEditorPanelRemoved(post_summary_PANEL_NAME),
+ postType: getCurrentPostType()
+ };
+ }, []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_section, {
+ className: "editor-post-summary",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(plugin_post_status_info.Slot, {
+ children: fills => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 4,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostCardPanel, {
+ actions: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostActions, {
+ onActionPerformed: onActionPerformed
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostFeaturedImagePanel, {
+ withPanelBody: false
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivatePostExcerptPanel, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 1,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostContentInformation, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostLastEditedPanel, {})]
+ }), !isRemovedPostStatusPanel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 2,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: 1,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostStatus, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostSchedulePanel, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostURLPanel, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(panel, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostTemplatePanel, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostDiscussionPanel, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivatePostLastRevision, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PageAttributesPanel, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostSyncStatus, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlogTitle, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostsPerPage, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SiteDiscussion, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_format_panel, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostSticky, {})]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplateAreas, {}), fills]
+ })]
+ })
+ })
+ })
+ });
+}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-transform-panel/hooks.js
/**
* WordPress dependencies
*/
-const external = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"
-}));
-/* harmony default export */ const library_external = (external);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-view-link/index.js
+
+
+
/**
+ * Internal dependencies
+ */
+
+
+const {
+ EXCLUDED_PATTERN_SOURCES,
+ PATTERN_TYPES: hooks_PATTERN_TYPES
+} = unlock(external_wp_patterns_namespaceObject.privateApis);
+function injectThemeAttributeInBlockTemplateContent(block, currentThemeStylesheet) {
+ block.innerBlocks = block.innerBlocks.map(innerBlock => {
+ return injectThemeAttributeInBlockTemplateContent(innerBlock, currentThemeStylesheet);
+ });
+ if (block.name === 'core/template-part' && block.attributes.theme === undefined) {
+ block.attributes.theme = currentThemeStylesheet;
+ }
+ return block;
+}
+
+/**
+ * Filter all patterns and return only the ones that are compatible with the current template.
+ *
+ * @param {Array} patterns An array of patterns.
+ * @param {Object} template The current template.
+ * @return {Array} Array of patterns that are compatible with the current template.
+ */
+function filterPatterns(patterns, template) {
+ // Filter out duplicates.
+ const filterOutDuplicatesByName = (currentItem, index, items) => index === items.findIndex(item => currentItem.name === item.name);
+
+ // Filter out core/directory patterns not included in theme.json.
+ const filterOutExcludedPatternSources = pattern => !EXCLUDED_PATTERN_SOURCES.includes(pattern.source);
+
+ // Looks for patterns that have the same template type as the current template,
+ // or have a block type that matches the current template area.
+ const filterCompatiblePatterns = pattern => pattern.templateTypes?.includes(template.slug) || pattern.blockTypes?.includes('core/template-part/' + template.area);
+ return patterns.filter((pattern, index, items) => {
+ return filterOutDuplicatesByName(pattern, index, items) && filterOutExcludedPatternSources(pattern) && filterCompatiblePatterns(pattern);
+ });
+}
+function preparePatterns(patterns, currentThemeStylesheet) {
+ return patterns.map(pattern => ({
+ ...pattern,
+ keywords: pattern.keywords || [],
+ type: hooks_PATTERN_TYPES.theme,
+ blocks: (0,external_wp_blocks_namespaceObject.parse)(pattern.content, {
+ __unstableSkipMigrationLogs: true
+ }).map(block => injectThemeAttributeInBlockTemplateContent(block, currentThemeStylesheet))
+ }));
+}
+function useAvailablePatterns(template) {
+ const {
+ blockPatterns,
+ restBlockPatterns,
+ currentThemeStylesheet
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ var _settings$__experimen;
+ const {
+ getEditorSettings
+ } = select(store_store);
+ const settings = getEditorSettings();
+ return {
+ blockPatterns: (_settings$__experimen = settings.__experimentalAdditionalBlockPatterns) !== null && _settings$__experimen !== void 0 ? _settings$__experimen : settings.__experimentalBlockPatterns,
+ restBlockPatterns: select(external_wp_coreData_namespaceObject.store).getBlockPatterns(),
+ currentThemeStylesheet: select(external_wp_coreData_namespaceObject.store).getCurrentTheme().stylesheet
+ };
+ }, []);
+ return (0,external_wp_element_namespaceObject.useMemo)(() => {
+ const mergedPatterns = [...(blockPatterns || []), ...(restBlockPatterns || [])];
+ const filteredPatterns = filterPatterns(mergedPatterns, template);
+ return preparePatterns(filteredPatterns, template, currentThemeStylesheet);
+ }, [blockPatterns, restBlockPatterns, template, currentThemeStylesheet]);
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-transform-panel/index.js
+/**
* WordPress dependencies
*/
@@ -16256,91 +27161,229 @@ const external = (0,external_React_.createElement)(external_wp_primitives_namesp
+
/**
* Internal dependencies
*/
-function PostViewLink() {
+
+
+
+function post_transform_panel_TemplatesList({
+ availableTemplates,
+ onSelect
+}) {
+ const shownTemplates = (0,external_wp_compose_namespaceObject.useAsyncList)(availableTemplates);
+ if (!availableTemplates || availableTemplates?.length === 0) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalBlockPatternsList, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Templates'),
+ blockPatterns: availableTemplates,
+ shownPatterns: shownTemplates,
+ onClickPattern: onSelect,
+ showTitlesAsTooltip: true
+ });
+}
+function PostTransform() {
const {
- hasLoaded,
- permalink,
- isPublished,
- label,
- showIconLabels
+ record,
+ postType,
+ postId
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
- // Grab post type to retrieve the view_item label.
- const postTypeSlug = select(store_store).getCurrentPostType();
- const postType = select(external_wp_coreData_namespaceObject.store).getPostType(postTypeSlug);
const {
- get
- } = select(external_wp_preferences_namespaceObject.store);
+ getCurrentPostType,
+ getCurrentPostId
+ } = select(store_store);
+ const {
+ getEditedEntityRecord
+ } = select(external_wp_coreData_namespaceObject.store);
+ const type = getCurrentPostType();
+ const id = getCurrentPostId();
return {
- permalink: select(store_store).getPermalink(),
- isPublished: select(store_store).isCurrentPostPublished(),
- label: postType?.labels.view_item,
- hasLoaded: !!postType,
- showIconLabels: get('core', 'showIconLabels')
+ postType: type,
+ postId: id,
+ record: getEditedEntityRecord('postType', type, id)
};
}, []);
-
- // Only render the view button if the post is published and has a permalink.
- if (!isPublished || !permalink || !hasLoaded) {
+ const {
+ editEntityRecord
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
+ const availablePatterns = useAvailablePatterns(record);
+ const onTemplateSelect = async selectedTemplate => {
+ await editEntityRecord('postType', postType, postId, {
+ blocks: selectedTemplate.blocks,
+ content: (0,external_wp_blocks_namespaceObject.serialize)(selectedTemplate.blocks)
+ });
+ };
+ if (!availablePatterns?.length) {
return null;
}
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- icon: library_external,
- label: label || (0,external_wp_i18n_namespaceObject.__)('View post'),
- href: permalink,
- target: "_blank",
- showTooltip: !showIconLabels
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Design'),
+ initialOpen: record.type === TEMPLATE_PART_POST_TYPE,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_transform_panel_TemplatesList, {
+ availableTemplates: availablePatterns,
+ onSelect: onTemplateSelect
+ })
});
}
+function PostTransformPanel() {
+ const {
+ postType
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getCurrentPostType
+ } = select(store_store);
+ return {
+ postType: getCurrentPostType()
+ };
+ }, []);
+ if (![TEMPLATE_PART_POST_TYPE, TEMPLATE_POST_TYPE].includes(postType)) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostTransform, {});
+}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/mobile.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/sidebar/constants.js
+const sidebars = {
+ document: 'edit-post/document',
+ block: 'edit-post/block'
+};
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/sidebar/header.js
/**
* WordPress dependencies
*/
-const mobile = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"
-}));
-/* harmony default export */ const library_mobile = (mobile);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/tablet.js
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+const {
+ Tabs: header_Tabs
+} = unlock(external_wp_components_namespaceObject.privateApis);
+const SidebarHeader = (_, ref) => {
+ const {
+ documentLabel
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getPostTypeLabel
+ } = select(store_store);
+ return {
+ // translators: Default label for the Document sidebar tab, not selected.
+ documentLabel: getPostTypeLabel() || (0,external_wp_i18n_namespaceObject._x)('Document', 'noun')
+ };
+ }, []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(header_Tabs.TabList, {
+ ref: ref,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(header_Tabs.Tab, {
+ tabId: sidebars.document
+ // Used for focus management in the SettingsSidebar component.
+ ,
+ "data-tab-id": sidebars.document,
+ children: documentLabel
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(header_Tabs.Tab, {
+ tabId: sidebars.block
+ // Used for focus management in the SettingsSidebar component.
+ ,
+ "data-tab-id": sidebars.block,
+ children: (0,external_wp_i18n_namespaceObject.__)('Block')
+ })]
+ });
+};
+/* harmony default export */ const sidebar_header = ((0,external_wp_element_namespaceObject.forwardRef)(SidebarHeader));
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/template-content-panel/index.js
/**
* WordPress dependencies
*/
-const tablet = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"
-}));
-/* harmony default export */ const library_tablet = (tablet);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/desktop.js
+
+
+/**
+ * Internal dependencies
+ */
+
+
+const {
+ BlockQuickNavigation
+} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+const PAGE_CONTENT_BLOCKS = ['core/post-content', 'core/post-featured-image', 'core/post-title'];
+function TemplateContentPanel() {
+ const clientIds = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getBlocksByName
+ } = select(external_wp_blockEditor_namespaceObject.store);
+ return getBlocksByName(PAGE_CONTENT_BLOCKS);
+ }, []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Content'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockQuickNavigation, {
+ clientIds: clientIds
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/provider/use-auto-switch-editor-sidebars.js
/**
* WordPress dependencies
*/
-const desktop = (0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"
-}));
-/* harmony default export */ const library_desktop = (desktop);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/preview-dropdown/index.js
+
+
+
/**
+ * This listener hook monitors for block selection and triggers the appropriate
+ * sidebar state.
+ */
+function useAutoSwitchEditorSidebars() {
+ const {
+ hasBlockSelection
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ return {
+ hasBlockSelection: !!select(external_wp_blockEditor_namespaceObject.store).getBlockSelectionStart()
+ };
+ }, []);
+ const {
+ getActiveComplementaryArea
+ } = (0,external_wp_data_namespaceObject.useSelect)(store);
+ const {
+ enableComplementaryArea
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const {
+ get: getPreference
+ } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_preferences_namespaceObject.store);
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ const activeGeneralSidebar = getActiveComplementaryArea('core');
+ const isEditorSidebarOpened = ['edit-post/document', 'edit-post/block'].includes(activeGeneralSidebar);
+ const isDistractionFree = getPreference('core', 'distractionFree');
+ if (!isEditorSidebarOpened || isDistractionFree) {
+ return;
+ }
+ if (hasBlockSelection) {
+ enableComplementaryArea('core', 'edit-post/block');
+ } else {
+ enableComplementaryArea('core', 'edit-post/document');
+ }
+ }, [hasBlockSelection, getActiveComplementaryArea, enableComplementaryArea, getPreference]);
+}
+/* harmony default export */ const use_auto_switch_editor_sidebars = (useAutoSwitchEditorSidebars);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/sidebar/index.js
+/**
* WordPress dependencies
*/
@@ -16351,134 +27394,290 @@ const desktop = (0,external_React_.createElement)(external_wp_primitives_namespa
+
/**
* Internal dependencies
*/
-function PreviewDropdown({
- forceIsAutosaveable,
- disabled
+
+
+
+
+
+
+
+
+
+
+
+
+
+const {
+ Tabs: sidebar_Tabs
+} = unlock(external_wp_components_namespaceObject.privateApis);
+const SIDEBAR_ACTIVE_BY_DEFAULT = external_wp_element_namespaceObject.Platform.select({
+ web: true,
+ native: false
+});
+const SidebarContent = ({
+ tabName,
+ keyboardShortcut,
+ renderingMode,
+ onActionPerformed,
+ extraPanels
+}) => {
+ const tabListRef = (0,external_wp_element_namespaceObject.useRef)(null);
+ // Because `PluginSidebar` renders a `ComplementaryArea`, we
+ // need to forward the `Tabs` context so it can be passed through the
+ // underlying slot/fill.
+ const tabsContextValue = (0,external_wp_element_namespaceObject.useContext)(sidebar_Tabs.Context);
+
+ // This effect addresses a race condition caused by tabbing from the last
+ // block in the editor into the settings sidebar. Without this effect, the
+ // selected tab and browser focus can become separated in an unexpected way
+ // (e.g the "block" tab is focused, but the "post" tab is selected).
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ const tabsElements = Array.from(tabListRef.current?.querySelectorAll('[role="tab"]') || []);
+ const selectedTabElement = tabsElements.find(
+ // We are purposefully using a custom `data-tab-id` attribute here
+ // because we don't want rely on any assumptions about `Tabs`
+ // component internals.
+ element => element.getAttribute('data-tab-id') === tabName);
+ const activeElement = selectedTabElement?.ownerDocument.activeElement;
+ const tabsHasFocus = tabsElements.some(element => {
+ return activeElement && activeElement.id === element.id;
+ });
+ if (tabsHasFocus && selectedTabElement && selectedTabElement.id !== activeElement?.id) {
+ selectedTabElement?.focus();
+ }
+ }, [tabName]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PluginSidebar, {
+ identifier: tabName,
+ header: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(sidebar_Tabs.Context.Provider, {
+ value: tabsContextValue,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(sidebar_header, {
+ ref: tabListRef
+ })
+ }),
+ closeLabel: (0,external_wp_i18n_namespaceObject.__)('Close Settings')
+ // This classname is added so we can apply a corrective negative
+ // margin to the panel.
+ // see https://github.com/WordPress/gutenberg/pull/55360#pullrequestreview-1737671049
+ ,
+ className: "editor-sidebar__panel",
+ headerClassName: "editor-sidebar__panel-tabs"
+ /* translators: button label text should, if possible, be under 16 characters. */,
+ title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
+ toggleShortcut: keyboardShortcut,
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? drawer_left : drawer_right,
+ isActiveByDefault: SIDEBAR_ACTIVE_BY_DEFAULT,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(sidebar_Tabs.Context.Provider, {
+ value: tabsContextValue,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(sidebar_Tabs.TabPanel, {
+ tabId: sidebars.document,
+ focusable: false,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostSummary, {
+ onActionPerformed: onActionPerformed
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(plugin_document_setting_panel.Slot, {}), renderingMode !== 'post-only' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplateContentPanel, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostTransformPanel, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_taxonomies_panel, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternOverridesPanel, {}), extraPanels]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(sidebar_Tabs.TabPanel, {
+ tabId: sidebars.block,
+ focusable: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockInspector, {})
+ })]
+ })
+ });
+};
+const Sidebar = ({
+ extraPanels,
+ onActionPerformed
+}) => {
+ use_auto_switch_editor_sidebars();
+ const {
+ tabName,
+ keyboardShortcut,
+ showSummary,
+ renderingMode
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const shortcut = select(external_wp_keyboardShortcuts_namespaceObject.store).getShortcutRepresentation('core/editor/toggle-sidebar');
+ const sidebar = select(store).getActiveComplementaryArea('core');
+ const _isEditorSidebarOpened = [sidebars.block, sidebars.document].includes(sidebar);
+ let _tabName = sidebar;
+ if (!_isEditorSidebarOpened) {
+ _tabName = !!select(external_wp_blockEditor_namespaceObject.store).getBlockSelectionStart() ? sidebars.block : sidebars.document;
+ }
+ return {
+ tabName: _tabName,
+ keyboardShortcut: shortcut,
+ showSummary: ![TEMPLATE_POST_TYPE, TEMPLATE_PART_POST_TYPE, NAVIGATION_POST_TYPE].includes(select(store_store).getCurrentPostType()),
+ renderingMode: select(store_store).getRenderingMode()
+ };
+ }, []);
+ const {
+ enableComplementaryArea
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const onTabSelect = (0,external_wp_element_namespaceObject.useCallback)(newSelectedTabId => {
+ if (!!newSelectedTabId) {
+ enableComplementaryArea('core', newSelectedTabId);
+ }
+ }, [enableComplementaryArea]);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(sidebar_Tabs, {
+ selectedTabId: tabName,
+ onSelect: onTabSelect,
+ selectOnMove: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarContent, {
+ tabName: tabName,
+ keyboardShortcut: keyboardShortcut,
+ showSummary: showSummary,
+ renderingMode: renderingMode,
+ onActionPerformed: onActionPerformed,
+ extraPanels: extraPanels
+ })
+ });
+};
+/* harmony default export */ const components_sidebar = (Sidebar);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/editor/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+
+
+function Editor({
+ postType,
+ postId,
+ templateId,
+ settings,
+ children,
+ // This could be part of the settings.
+ onActionPerformed,
+ // The following abstractions are not ideal but necessary
+ // to account for site editor and post editor differences for now.
+ className,
+ styles,
+ customSaveButton,
+ customSavePanel,
+ forceDisableBlockTools,
+ title,
+ iframeProps,
+ extraSidebarPanels,
+ enableRegionNavigation = true
}) {
const {
- deviceType,
- homeUrl,
- isTemplate,
- isViewable,
- showIconLabels
+ post,
+ template,
+ hasLoadedPost
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
- var _getPostType$viewable;
const {
- getDeviceType,
- getCurrentPostType
- } = select(store_store);
- const {
- getUnstableBase,
- getPostType
+ getEntityRecord,
+ hasFinishedResolution
} = select(external_wp_coreData_namespaceObject.store);
- const {
- get
- } = select(external_wp_preferences_namespaceObject.store);
- const _currentPostType = getCurrentPostType();
return {
- deviceType: getDeviceType(),
- homeUrl: getUnstableBase()?.home,
- isTemplate: _currentPostType === 'wp_template',
- isViewable: (_getPostType$viewable = getPostType(_currentPostType)?.viewable) !== null && _getPostType$viewable !== void 0 ? _getPostType$viewable : false,
- showIconLabels: get('core', 'showIconLabels')
+ post: getEntityRecord('postType', postType, postId),
+ template: templateId ? getEntityRecord('postType', TEMPLATE_POST_TYPE, templateId) : undefined,
+ hasLoadedPost: hasFinishedResolution('getEntityRecord', ['postType', postType, postId])
};
- }, []);
+ }, [postType, postId, templateId]);
+ if (!post) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ExperimentalEditorProvider, {
+ post: post,
+ __unstableTemplate: template,
+ settings: settings,
+ useSubRegistry: false,
+ children: [hasLoadedPost && !post && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
+ status: "warning",
+ isDismissible: false,
+ children: (0,external_wp_i18n_namespaceObject.__)("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditorInterface, {
+ className: className,
+ styles: styles,
+ enableRegionNavigation: enableRegionNavigation,
+ customSaveButton: customSaveButton,
+ customSavePanel: customSavePanel,
+ forceDisableBlockTools: forceDisableBlockTools,
+ title: title,
+ iframeProps: iframeProps
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(components_sidebar, {
+ onActionPerformed: onActionPerformed,
+ extraPanels: extraSidebarPanels
+ }), children]
+ });
+}
+/* harmony default export */ const editor = (Editor);
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/preferences-modal/enable-publish-sidebar.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+const {
+ PreferenceBaseOption: enable_publish_sidebar_PreferenceBaseOption
+} = unlock(external_wp_preferences_namespaceObject.privateApis);
+/* harmony default export */ const enable_publish_sidebar = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_data_namespaceObject.withSelect)(select => ({
+ isChecked: select(store_store).isPublishSidebarEnabled()
+})), (0,external_wp_data_namespaceObject.withDispatch)(dispatch => {
const {
- setDeviceType
- } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
- const isMobile = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
- if (isMobile) return null;
- const popoverProps = {
- placement: 'bottom-end'
- };
- const toggleProps = {
- className: 'editor-preview-dropdown__toggle',
- size: 'compact',
- showTooltip: !showIconLabels,
- disabled,
- __experimentalIsFocusable: disabled
- };
- const menuProps = {
- 'aria-label': (0,external_wp_i18n_namespaceObject.__)('View options')
- };
- const deviceIcons = {
- mobile: library_mobile,
- tablet: library_tablet,
- desktop: library_desktop
+ enablePublishSidebar,
+ disablePublishSidebar
+ } = dispatch(store_store);
+ return {
+ onChange: isEnabled => isEnabled ? enablePublishSidebar() : disablePublishSidebar()
};
- return (0,external_React_.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
- className: "editor-preview-dropdown",
- popoverProps: popoverProps,
- toggleProps: toggleProps,
- menuProps: menuProps,
- icon: deviceIcons[deviceType.toLowerCase()],
- label: (0,external_wp_i18n_namespaceObject.__)('View'),
- disableOpenOnArrowDown: disabled
- }, ({
- onClose
- }) => (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => setDeviceType('Desktop'),
- icon: deviceType === 'Desktop' && library_check
- }, (0,external_wp_i18n_namespaceObject.__)('Desktop')), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => setDeviceType('Tablet'),
- icon: deviceType === 'Tablet' && library_check
- }, (0,external_wp_i18n_namespaceObject.__)('Tablet')), (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => setDeviceType('Mobile'),
- icon: deviceType === 'Mobile' && library_check
- }, (0,external_wp_i18n_namespaceObject.__)('Mobile'))), isTemplate && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuItem, {
- href: homeUrl,
- target: "_blank",
- icon: library_external,
- onClick: onClose
- }, (0,external_wp_i18n_namespaceObject.__)('View site'), (0,external_React_.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
- as: "span"
- }, /* translators: accessibility text */
- (0,external_wp_i18n_namespaceObject.__)('(opens in a new tab)')))), isViewable && (0,external_React_.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_React_.createElement)(PostPreviewButton, {
- className: "editor-preview-dropdown__button-external",
- role: "menuitem",
- forceIsAutosaveable: forceIsAutosaveable,
- textContent: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_wp_i18n_namespaceObject.__)('Preview in new tab'), (0,external_React_.createElement)(external_wp_components_namespaceObject.Icon, {
- icon: library_external
- })),
- onPreview: onClose
- }))));
-}
+}))(enable_publish_sidebar_PreferenceBaseOption));
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-manager/checklist.js
-
/**
* WordPress dependencies
*/
+
+
function BlockTypesChecklist({
blockTypes,
value,
onItemChange
}) {
- return (0,external_React_.createElement)("ul", {
- className: "editor-block-manager__checklist"
- }, blockTypes.map(blockType => (0,external_React_.createElement)("li", {
- key: blockType.name,
- className: "editor-block-manager__checklist-item"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- __nextHasNoMarginBottom: true,
- label: blockType.title,
- checked: value.includes(blockType.name),
- onChange: (...args) => onItemChange(blockType.name, ...args)
- }), (0,external_React_.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
- icon: blockType.icon
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
+ className: "editor-block-manager__checklist",
+ children: blockTypes.map(blockType => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
+ className: "editor-block-manager__checklist-item",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
+ __nextHasNoMarginBottom: true,
+ label: blockType.title,
+ checked: value.includes(blockType.name),
+ onChange: (...args) => onItemChange(blockType.name, ...args)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ icon: blockType.icon
+ })]
+ }, blockType.name))
+ });
}
/* harmony default export */ const checklist = (BlockTypesChecklist);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-manager/category.js
-
/**
* WordPress dependencies
*/
@@ -16494,6 +27693,8 @@ function BlockTypesChecklist({
+
+
function BlockManagerCategory({
title,
blockTypes
@@ -16554,29 +27755,30 @@ function BlockManagerCategory({
const titleId = 'editor-block-manager__category-title-' + instanceId;
const isAllChecked = checkedBlockNames.length === filteredBlockTypes.length;
const isIndeterminate = !isAllChecked && checkedBlockNames.length > 0;
- return (0,external_React_.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
role: "group",
"aria-labelledby": titleId,
- className: "editor-block-manager__category"
- }, (0,external_React_.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
- __nextHasNoMarginBottom: true,
- checked: isAllChecked,
- onChange: toggleAllVisible,
- className: "editor-block-manager__category-title",
- indeterminate: isIndeterminate,
- label: (0,external_React_.createElement)("span", {
- id: titleId
- }, title)
- }), (0,external_React_.createElement)(checklist, {
- blockTypes: filteredBlockTypes,
- value: checkedBlockNames,
- onItemChange: toggleVisible
- }));
+ className: "editor-block-manager__category",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
+ __nextHasNoMarginBottom: true,
+ checked: isAllChecked,
+ onChange: toggleAllVisible,
+ className: "editor-block-manager__category-title",
+ indeterminate: isIndeterminate,
+ label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ id: titleId,
+ children: title
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(checklist, {
+ blockTypes: filteredBlockTypes,
+ value: checkedBlockNames,
+ onItemChange: toggleVisible
+ })]
+ });
}
/* harmony default export */ const block_manager_category = (BlockManagerCategory);
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-manager/index.js
-
/**
* WordPress dependencies
*/
@@ -16595,6 +27797,8 @@ function BlockManagerCategory({
+
+
function BlockManager({
blockTypes,
categories,
@@ -16621,38 +27825,42 @@ function BlockManager({
(0,external_wp_i18n_namespaceObject._n)('%d result found.', '%d results found.', count), count);
debouncedSpeak(resultsFoundMessage);
}, [blockTypes.length, search, debouncedSpeak]);
- return (0,external_React_.createElement)("div", {
- className: "editor-block-manager__content"
- }, !!numberOfHiddenBlocks && (0,external_React_.createElement)("div", {
- className: "editor-block-manager__disabled-blocks-count"
- }, (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of blocks. */
- (0,external_wp_i18n_namespaceObject._n)('%d block is hidden.', '%d blocks are hidden.', numberOfHiddenBlocks), numberOfHiddenBlocks), (0,external_React_.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "link",
- onClick: () => enableAllBlockTypes(blockTypes)
- }, (0,external_wp_i18n_namespaceObject.__)('Reset'))), (0,external_React_.createElement)(external_wp_components_namespaceObject.SearchControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Search for a block'),
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Search for a block'),
- value: search,
- onChange: nextSearch => setSearch(nextSearch),
- className: "editor-block-manager__search"
- }), (0,external_React_.createElement)("div", {
- tabIndex: "0",
- role: "region",
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Available block types'),
- className: "editor-block-manager__results"
- }, blockTypes.length === 0 && (0,external_React_.createElement)("p", {
- className: "editor-block-manager__no-results"
- }, (0,external_wp_i18n_namespaceObject.__)('No blocks found.')), categories.map(category => (0,external_React_.createElement)(block_manager_category, {
- key: category.slug,
- title: category.title,
- blockTypes: blockTypes.filter(blockType => blockType.category === category.slug)
- })), (0,external_React_.createElement)(block_manager_category, {
- title: (0,external_wp_i18n_namespaceObject.__)('Uncategorized'),
- blockTypes: blockTypes.filter(({
- category
- }) => !category)
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-block-manager__content",
+ children: [!!numberOfHiddenBlocks && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "editor-block-manager__disabled-blocks-count",
+ children: [(0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of blocks. */
+ (0,external_wp_i18n_namespaceObject._n)('%d block is hidden.', '%d blocks are hidden.', numberOfHiddenBlocks), numberOfHiddenBlocks), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "link",
+ onClick: () => enableAllBlockTypes(blockTypes),
+ children: (0,external_wp_i18n_namespaceObject.__)('Reset')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SearchControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Search for a block'),
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Search for a block'),
+ value: search,
+ onChange: nextSearch => setSearch(nextSearch),
+ className: "editor-block-manager__search"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ tabIndex: "0",
+ role: "region",
+ "aria-label": (0,external_wp_i18n_namespaceObject.__)('Available block types'),
+ className: "editor-block-manager__results",
+ children: [blockTypes.length === 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "editor-block-manager__no-results",
+ children: (0,external_wp_i18n_namespaceObject.__)('No blocks found.')
+ }), categories.map(category => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_manager_category, {
+ title: category.title,
+ blockTypes: blockTypes.filter(blockType => blockType.category === category.slug)
+ }, category.slug)), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_manager_category, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Uncategorized'),
+ blockTypes: blockTypes.filter(({
+ category
+ }) => !category)
+ })]
+ })]
+ });
}
/* harmony default export */ const block_manager = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)(select => {
var _get;
@@ -16698,7 +27906,6 @@ function BlockManager({
})])(BlockManager));
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/preferences-modal/index.js
-
/**
* WordPress dependencies
*/
@@ -16709,6 +27916,7 @@ function BlockManager({
+
/**
* Internal dependencies
*/
@@ -16722,6 +27930,10 @@ function BlockManager({
+
+
+
+
const {
PreferencesModal,
PreferencesModalTabs,
@@ -16729,12 +27941,11 @@ const {
PreferenceToggleControl
} = unlock(external_wp_preferences_namespaceObject.privateApis);
function EditorPreferencesModal({
- extraSections = {},
- isActive,
- onClose
+ extraSections = {}
}) {
const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
const {
+ isActive,
showBlockBreadcrumbsOption
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
@@ -16743,141 +27954,175 @@ function EditorPreferencesModal({
const {
get
} = select(external_wp_preferences_namespaceObject.store);
+ const {
+ isModalActive
+ } = select(store);
const isRichEditingEnabled = getEditorSettings().richEditingEnabled;
const isDistractionFreeEnabled = get('core', 'distractionFree');
return {
- showBlockBreadcrumbsOption: !isDistractionFreeEnabled && isLargeViewport && isRichEditingEnabled
+ showBlockBreadcrumbsOption: !isDistractionFreeEnabled && isLargeViewport && isRichEditingEnabled,
+ isActive: isModalActive('editor/preferences')
};
}, [isLargeViewport]);
const {
+ closeModal
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
+ const {
setIsListViewOpened,
setIsInserterOpened
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
const {
set: setPreference
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
- const toggleDistractionFree = () => {
- setPreference('core', 'fixedToolbar', true);
- setIsInserterOpened(false);
- setIsListViewOpened(false);
- // Todo: Check sidebar when closing/opening distraction free.
- };
- const turnOffDistractionFree = () => {
- setPreference('core', 'distractionFree', false);
- };
const sections = (0,external_wp_element_namespaceObject.useMemo)(() => [{
name: 'general',
tabLabel: (0,external_wp_i18n_namespaceObject.__)('General'),
- content: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(PreferencesModalSection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Interface')
- }, (0,external_React_.createElement)(PreferenceToggleControl, {
- scope: "core",
- featureName: "showListViewByDefault",
- help: (0,external_wp_i18n_namespaceObject.__)('Opens the block list view sidebar by default.'),
- label: (0,external_wp_i18n_namespaceObject.__)('Always open list view')
- }), showBlockBreadcrumbsOption && (0,external_React_.createElement)(PreferenceToggleControl, {
- scope: "core",
- featureName: "showBlockBreadcrumbs",
- help: (0,external_wp_i18n_namespaceObject.__)('Display the block hierarchy trail at the bottom of the editor.'),
- label: (0,external_wp_i18n_namespaceObject.__)('Show block breadcrumbs')
- }), (0,external_React_.createElement)(PreferenceToggleControl, {
- scope: "core",
- featureName: "allowRightClickOverrides",
- help: (0,external_wp_i18n_namespaceObject.__)('Allows contextual list view menus via right-click, overriding browser defaults.'),
- label: (0,external_wp_i18n_namespaceObject.__)('Allow right-click contextual menus')
- })), (0,external_React_.createElement)(PreferencesModalSection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Document settings'),
- description: (0,external_wp_i18n_namespaceObject.__)('Select what settings are shown in the document panel.')
- }, (0,external_React_.createElement)(enable_plugin_document_setting_panel.Slot, null), (0,external_React_.createElement)(post_taxonomies, {
- taxonomyWrapper: (content, taxonomy) => (0,external_React_.createElement)(enable_panel, {
- label: taxonomy.labels.menu_name,
- panelName: `taxonomy-panel-${taxonomy.slug}`
- })
- }), (0,external_React_.createElement)(post_featured_image_check, null, (0,external_React_.createElement)(enable_panel, {
- label: (0,external_wp_i18n_namespaceObject.__)('Featured image'),
- panelName: "featured-image"
- })), (0,external_React_.createElement)(post_excerpt_check, null, (0,external_React_.createElement)(enable_panel, {
- label: (0,external_wp_i18n_namespaceObject.__)('Excerpt'),
- panelName: "post-excerpt"
- })), (0,external_React_.createElement)(post_type_support_check, {
- supportKeys: ['comments', 'trackbacks']
- }, (0,external_React_.createElement)(enable_panel, {
- label: (0,external_wp_i18n_namespaceObject.__)('Discussion'),
- panelName: "discussion-panel"
- })), (0,external_React_.createElement)(page_attributes_check, null, (0,external_React_.createElement)(enable_panel, {
- label: (0,external_wp_i18n_namespaceObject.__)('Page attributes'),
- panelName: "page-attributes"
- }))), extraSections?.general)
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(PreferencesModalSection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Interface'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferenceToggleControl, {
+ scope: "core",
+ featureName: "showListViewByDefault",
+ help: (0,external_wp_i18n_namespaceObject.__)('Opens the List View sidebar by default.'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Always open List View')
+ }), showBlockBreadcrumbsOption && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferenceToggleControl, {
+ scope: "core",
+ featureName: "showBlockBreadcrumbs",
+ help: (0,external_wp_i18n_namespaceObject.__)('Display the block hierarchy trail at the bottom of the editor.'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Show block breadcrumbs')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferenceToggleControl, {
+ scope: "core",
+ featureName: "allowRightClickOverrides",
+ help: (0,external_wp_i18n_namespaceObject.__)('Allows contextual List View menus via right-click, overriding browser defaults.'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Allow right-click contextual menus')
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(PreferencesModalSection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Document settings'),
+ description: (0,external_wp_i18n_namespaceObject.__)('Select what settings are shown in the document panel.'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(enable_plugin_document_setting_panel.Slot, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_taxonomies, {
+ taxonomyWrapper: (content, taxonomy) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(enable_panel, {
+ label: taxonomy.labels.menu_name,
+ panelName: `taxonomy-panel-${taxonomy.slug}`
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_featured_image_check, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(enable_panel, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Featured image'),
+ panelName: "featured-image"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_excerpt_check, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(enable_panel, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Excerpt'),
+ panelName: "post-excerpt"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_type_support_check, {
+ supportKeys: ['comments', 'trackbacks'],
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(enable_panel, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Discussion'),
+ panelName: "discussion-panel"
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(page_attributes_check, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(enable_panel, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Page attributes'),
+ panelName: "page-attributes"
+ })
+ })]
+ }), isLargeViewport && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferencesModalSection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Publishing'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(enable_publish_sidebar, {
+ help: (0,external_wp_i18n_namespaceObject.__)('Review settings, such as visibility and tags.'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Enable pre-publish checks')
+ })
+ }), extraSections?.general]
+ })
}, {
name: 'appearance',
tabLabel: (0,external_wp_i18n_namespaceObject.__)('Appearance'),
- content: (0,external_React_.createElement)(PreferencesModalSection, {
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(PreferencesModalSection, {
title: (0,external_wp_i18n_namespaceObject.__)('Appearance'),
- description: (0,external_wp_i18n_namespaceObject.__)('Customize the editor interface to suit your needs.')
- }, (0,external_React_.createElement)(PreferenceToggleControl, {
- scope: "core",
- featureName: "fixedToolbar",
- onToggle: turnOffDistractionFree,
- help: (0,external_wp_i18n_namespaceObject.__)('Access all block and document tools in a single place.'),
- label: (0,external_wp_i18n_namespaceObject.__)('Top toolbar')
- }), (0,external_React_.createElement)(PreferenceToggleControl, {
- scope: "core",
- featureName: "distractionFree",
- onToggle: toggleDistractionFree,
- help: (0,external_wp_i18n_namespaceObject.__)('Reduce visual distractions by hiding the toolbar and other elements to focus on writing.'),
- label: (0,external_wp_i18n_namespaceObject.__)('Distraction free')
- }), (0,external_React_.createElement)(PreferenceToggleControl, {
- scope: "core",
- featureName: "focusMode",
- help: (0,external_wp_i18n_namespaceObject.__)('Highlights the current block and fades other content.'),
- label: (0,external_wp_i18n_namespaceObject.__)('Spotlight mode')
- }), extraSections?.appearance)
+ description: (0,external_wp_i18n_namespaceObject.__)('Customize the editor interface to suit your needs.'),
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferenceToggleControl, {
+ scope: "core",
+ featureName: "fixedToolbar",
+ onToggle: () => setPreference('core', 'distractionFree', false),
+ help: (0,external_wp_i18n_namespaceObject.__)('Access all block and document tools in a single place.'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Top toolbar')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferenceToggleControl, {
+ scope: "core",
+ featureName: "distractionFree",
+ onToggle: () => {
+ setPreference('core', 'fixedToolbar', true);
+ setIsInserterOpened(false);
+ setIsListViewOpened(false);
+ },
+ help: (0,external_wp_i18n_namespaceObject.__)('Reduce visual distractions by hiding the toolbar and other elements to focus on writing.'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Distraction free')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferenceToggleControl, {
+ scope: "core",
+ featureName: "focusMode",
+ help: (0,external_wp_i18n_namespaceObject.__)('Highlights the current block and fades other content.'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Spotlight mode')
+ }), extraSections?.appearance]
+ })
}, {
name: 'accessibility',
tabLabel: (0,external_wp_i18n_namespaceObject.__)('Accessibility'),
- content: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(PreferencesModalSection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Navigation'),
- description: (0,external_wp_i18n_namespaceObject.__)('Optimize the editing experience for enhanced control.')
- }, (0,external_React_.createElement)(PreferenceToggleControl, {
- scope: "core",
- featureName: "keepCaretInsideBlock",
- help: (0,external_wp_i18n_namespaceObject.__)('Keeps the text cursor within the block boundaries, aiding users with screen readers by preventing unintentional cursor movement outside the block.'),
- label: (0,external_wp_i18n_namespaceObject.__)('Contain text cursor inside block')
- })), (0,external_React_.createElement)(PreferencesModalSection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Interface')
- }, (0,external_React_.createElement)(PreferenceToggleControl, {
- scope: "core",
- featureName: "showIconLabels",
- label: (0,external_wp_i18n_namespaceObject.__)('Show button text labels'),
- help: (0,external_wp_i18n_namespaceObject.__)('Show text instead of icons on buttons across the interface.')
- })))
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferencesModalSection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Navigation'),
+ description: (0,external_wp_i18n_namespaceObject.__)('Optimize the editing experience for enhanced control.'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferenceToggleControl, {
+ scope: "core",
+ featureName: "keepCaretInsideBlock",
+ help: (0,external_wp_i18n_namespaceObject.__)('Keeps the text cursor within the block boundaries, aiding users with screen readers by preventing unintentional cursor movement outside the block.'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Contain text cursor inside block')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferencesModalSection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Interface'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferenceToggleControl, {
+ scope: "core",
+ featureName: "showIconLabels",
+ label: (0,external_wp_i18n_namespaceObject.__)('Show button text labels'),
+ help: (0,external_wp_i18n_namespaceObject.__)('Show text instead of icons on buttons across the interface.')
+ })
+ })]
+ })
}, {
name: 'blocks',
tabLabel: (0,external_wp_i18n_namespaceObject.__)('Blocks'),
- content: (0,external_React_.createElement)(external_React_.Fragment, null, (0,external_React_.createElement)(PreferencesModalSection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Inserter')
- }, (0,external_React_.createElement)(PreferenceToggleControl, {
- scope: "core",
- featureName: "mostUsedBlocks",
- help: (0,external_wp_i18n_namespaceObject.__)('Adds a category with the most frequently used blocks in the inserter.'),
- label: (0,external_wp_i18n_namespaceObject.__)('Show most used blocks')
- })), (0,external_React_.createElement)(PreferencesModalSection, {
- title: (0,external_wp_i18n_namespaceObject.__)('Manage block visibility'),
- description: (0,external_wp_i18n_namespaceObject.__)("Disable blocks that you don't want to appear in the inserter. They can always be toggled back on later.")
- }, (0,external_React_.createElement)(block_manager, null)))
- }], [isLargeViewport, showBlockBreadcrumbsOption, extraSections]);
+ content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferencesModalSection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Inserter'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferenceToggleControl, {
+ scope: "core",
+ featureName: "mostUsedBlocks",
+ help: (0,external_wp_i18n_namespaceObject.__)('Adds a category with the most frequently used blocks in the inserter.'),
+ label: (0,external_wp_i18n_namespaceObject.__)('Show most used blocks')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferencesModalSection, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Manage block visibility'),
+ description: (0,external_wp_i18n_namespaceObject.__)("Disable blocks that you don't want to appear in the inserter. They can always be toggled back on later."),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_manager, {})
+ })]
+ })
+ }], [showBlockBreadcrumbsOption, extraSections, setIsInserterOpened, setIsListViewOpened, setPreference, isLargeViewport]);
if (!isActive) {
return null;
}
- return (0,external_React_.createElement)(PreferencesModal, {
- closeModal: onClose
- }, (0,external_React_.createElement)(PreferencesModalTabs, {
- sections: sections
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferencesModal, {
+ closeModal: closeModal,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferencesModalTabs, {
+ sections: sections
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/private-apis.js
/**
+ * WordPress dependencies
+ */
+
+
+/**
* Internal dependencies
*/
@@ -16894,22 +28139,35 @@ function EditorPreferencesModal({
+
+
+
+const {
+ store: interfaceStore,
+ ...remainingInterfaceApis
+} = build_module_namespaceObject;
const privateApis = {};
lock(privateApis, {
- DocumentTools: document_tools,
- EditorCanvas: editor_canvas,
+ CreateTemplatePartModal: CreateTemplatePartModal,
+ BackButton: back_button,
ExperimentalEditorProvider: ExperimentalEditorProvider,
- EnablePluginDocumentSettingPanelOption: enable_plugin_document_setting_panel,
EntitiesSavedStatesExtensible: EntitiesSavedStatesExtensible,
- InserterSidebar: InserterSidebar,
- ListViewSidebar: ListViewSidebar,
+ Editor: editor,
+ EditorInterface: EditorInterface,
+ EditorContentSlotFill: content_slot_fill,
+ GlobalStylesProvider: GlobalStylesProvider,
+ mergeBaseAndUserConfigs: mergeBaseAndUserConfigs,
PluginPostExcerpt: post_excerpt_plugin,
- PostPanelRow: post_panel_row,
- PostViewLink: PostViewLink,
- PreviewDropdown: PreviewDropdown,
PreferencesModal: EditorPreferencesModal,
+ usePostActions: usePostActions,
+ ToolsMoreMenuGroup: tools_more_menu_group,
+ ViewMoreMenuGroup: view_more_menu_group,
+ ResizableEditor: resizable_editor,
+ Sidebar: components_sidebar,
// This is a temporary private API while we're updating the site editor to use EditorProvider.
- useBlockEditorSettings: use_block_editor_settings
+ useBlockEditorSettings: use_block_editor_settings,
+ interfaceStore,
+ ...remainingInterfaceApis
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/index.js
diff --git a/wp-includes/js/dist/editor.min.js b/wp-includes/js/dist/editor.min.js
index cfa0a67..5779b65 100644
--- a/wp-includes/js/dist/editor.min.js
+++ b/wp-includes/js/dist/editor.min.js
@@ -1,12 +1,14 @@
/*! This file is auto-generated */
-(()=>{var e={4306:function(e,t){var n,o,s;
+(()=>{var e={4306:function(e,t){var s,o,n;
/*!
autosize 4.0.4
license: MIT
http://www.jacklmoore.com/autosize
-*/o=[e,t],n=function(e,t){"use strict";var n,o,s="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),r=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){r=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!s.has(e)){var t=null,n=null,o=null,i=function(){e.clientWidth!==n&&p()},a=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",p,!1),e.removeEventListener("keyup",p,!1),e.removeEventListener("autosize:destroy",a,!1),e.removeEventListener("autosize:update",p,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),s.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",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",p,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",p,!1),e.addEventListener("autosize:update",p,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",s.set(e,{destroy:a,update:p}),l()}function l(){var n=window.getComputedStyle(e,null);"vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),t="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(t)&&(t=0),p()}function c(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(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}function d(){if(0!==e.scrollHeight){var o=u(e),s=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,o.forEach((function(e){e.node.scrollTop=e.scrollTop})),s&&(document.documentElement.scrollTop=s)}}function p(){d();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),s="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(s<t?"hidden"===n.overflowY&&(c("scroll"),d(),s="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),d(),s="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==s){o=s;var i=r("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}function a(e){var t=s.get(e);t&&t.destroy()}function l(e){var t=s.get(e);t&&t.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return i(e,t)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=c,e.exports=t.default},void 0===(s="function"==typeof n?n.apply(t,o):n)||(e.exports=s)},5755:(e,t)=>{var n;
+*/o=[e,t],s=function(e,t){"use strict";var s,o,n="function"==typeof Map?new Map:(s=[],o=[],{has:function(e){return s.indexOf(e)>-1},get:function(e){return o[s.indexOf(e)]},set:function(e,t){-1===s.indexOf(e)&&(s.push(e),o.push(t))},delete:function(e){var t=s.indexOf(e);t>-1&&(s.splice(t,1),o.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 r(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!n.has(e)){var t=null,s=null,o=null,r=function(){e.clientWidth!==s&&p()},a=function(t){window.removeEventListener("resize",r,!1),e.removeEventListener("input",p,!1),e.removeEventListener("keyup",p,!1),e.removeEventListener("autosize:destroy",a,!1),e.removeEventListener("autosize:update",p,!1),Object.keys(t).forEach((function(s){e.style[s]=t[s]})),n.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",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",p,!1),window.addEventListener("resize",r,!1),e.addEventListener("input",p,!1),e.addEventListener("autosize:update",p,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",n.set(e,{destroy:a,update:p}),l()}function l(){var s=window.getComputedStyle(e,null);"vertical"===s.resize?e.style.resize="none":"both"===s.resize&&(e.style.resize="horizontal"),t="content-box"===s.boxSizing?-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),isNaN(t)&&(t=0),p()}function c(t){var s=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=s,e.style.overflowY=t}function d(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}function u(){if(0!==e.scrollHeight){var o=d(e),n=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",s=e.clientWidth,o.forEach((function(e){e.node.scrollTop=e.scrollTop})),n&&(document.documentElement.scrollTop=n)}}function p(){u();var t=Math.round(parseFloat(e.style.height)),s=window.getComputedStyle(e,null),n="content-box"===s.boxSizing?Math.round(parseFloat(s.height)):e.offsetHeight;if(n<t?"hidden"===s.overflowY&&(c("scroll"),u(),n="content-box"===s.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==s.overflowY&&(c("hidden"),u(),n="content-box"===s.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==n){o=n;var r=i("autosize:resized");try{e.dispatchEvent(r)}catch(e){}}}}function a(e){var t=n.get(e);t&&t.destroy()}function l(e){var t=n.get(e);t&&t.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return r(e,t)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=c,e.exports=t.default},void 0===(n="function"==typeof s?s.apply(t,o):s)||(e.exports=n)},6109:e=>{e.exports=function(e,t,s){return((s=window.getComputedStyle)?s(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},66:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===s}(e)}(e)};var s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((s=e,Array.isArray(s)?[]:{}),e,t):e;var s}function n(e,t,s){return e.concat(t).map((function(e){return o(e,s)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function r(e,t){try{return t in e}catch(e){return!1}}function a(e,t,s){var n={};return s.isMergeableObject(e)&&i(e).forEach((function(t){n[t]=o(e[t],s)})),i(t).forEach((function(i){(function(e,t){return r(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(r(e,i)&&s.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return l;var s=t.customMerge(e);return"function"==typeof s?s:l}(i,s)(e[i],t[i],s):n[i]=o(t[i],s))})),n}function l(e,s,i){(i=i||{}).arrayMerge=i.arrayMerge||n,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=o;var r=Array.isArray(s);return r===Array.isArray(e)?r?i.arrayMerge(e,s,i):a(e,s,i):o(s,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,s){return l(e,s,t)}),{})};var c=l;e.exports=c},5215:e=>{"use strict";e.exports=function e(t,s){if(t===s)return!0;if(t&&s&&"object"==typeof t&&"object"==typeof s){if(t.constructor!==s.constructor)return!1;var o,n,i;if(Array.isArray(t)){if((o=t.length)!=s.length)return!1;for(n=o;0!=n--;)if(!e(t[n],s[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===s.source&&t.flags===s.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===s.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===s.toString();if((o=(i=Object.keys(t)).length)!==Object.keys(s).length)return!1;for(n=o;0!=n--;)if(!Object.prototype.hasOwnProperty.call(s,i[n]))return!1;for(n=o;0!=n--;){var r=i[n];if(!e(t[r],s[r]))return!1}return!0}return t!=t&&s!=s}},461:(e,t,s)=>{var o=s(6109);e.exports=function(e){var t=o(e,"line-height"),s=parseFloat(t,10);if(t===s+""){var n=e.style.lineHeight;e.style.lineHeight=t+"em",t=o(e,"line-height"),s=parseFloat(t,10),n?e.style.lineHeight=n:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(s*=4,s/=3):-1!==t.indexOf("mm")?(s*=96,s/=25.4):-1!==t.indexOf("cm")?(s*=96,s/=2.54):-1!==t.indexOf("in")?s*=96:-1!==t.indexOf("pc")&&(s*=16),s=Math.round(s),"normal"===t){var i=e.nodeName,r=document.createElement(i);r.innerHTML="&nbsp;","TEXTAREA"===i.toUpperCase()&&r.setAttribute("rows","1");var a=o(e,"font-size");r.style.fontSize=a,r.style.padding="0px",r.style.border="0px";var l=document.body;l.appendChild(r),s=r.offsetHeight,l.removeChild(r)}return s}},628:(e,t,s)=>{"use strict";var o=s(4067);function n(){}function i(){}i.resetWarningCache=n,e.exports=function(){function e(e,t,s,n,i,r){if(r!==o){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 s={array:e,bigint: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:n};return s.PropTypes=s,s}},5826:(e,t,s)=>{e.exports=s(628)()},4067:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4462:function(e,t,s){"use strict";var o,n=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])},function(e,t){function s(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}),i=this&&this.__assign||Object.assign||function(e){for(var t,s=1,o=arguments.length;s<o;s++)for(var n in t=arguments[s])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},r=this&&this.__rest||function(e,t){var s={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(s[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&(s[o[n]]=e[o[n]])}return s};t.__esModule=!0;var a=s(1609),l=s(5826),c=s(4306),d=s(461),u="autosize:resized",p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:d(t.textarea)})},t.onChange=function(e){var s=t.props.onChange;t.currentValue=e.currentTarget.value,s&&s(e)},t}return n(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,s=t.maxRows,o=t.async;"number"==typeof s&&this.updateLineHeight(),"number"==typeof s||o?setTimeout((function(){return e.textarea&&c(e.textarea)})):this.textarea&&c(this.textarea),this.textarea&&this.textarea.addEventListener(u,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(u,this.onResize),c.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,s=(t.onResize,t.maxRows),o=(t.onChange,t.style),n=(t.innerRef,t.children),l=r(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,d=s&&c?c*s:null;return a.createElement("textarea",i({},l,{onChange:this.onChange,style:d?i({},o,{maxHeight:d}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),n)},t.prototype.componentDidUpdate=function(){this.textarea&&c.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:l.number,maxRows:l.number,onResize:l.func,innerRef:l.any,async:l.bool},t}(a.Component);t.TextareaAutosize=a.forwardRef((function(e,t){return a.createElement(p,i({},e,{innerRef:t}))}))},4132:(e,t,s)=>{"use strict";var o=s(4462);t.A=o.TextareaAutosize},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},s=Object.keys(t).join("|"),o=new RegExp(s,"g"),n=new RegExp(s,"");function i(e){return t[e]}var r=function(e){return e.replace(o,i)};e.exports=r,e.exports.has=function(e){return!!e.match(n)},e.exports.remove=r},1609:e=>{"use strict";e.exports=window.React}},t={};function s(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,s),i.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";s.r(o),s.d(o,{AlignmentToolbar:()=>np,Autocomplete:()=>op,AutosaveMonitor:()=>Si,BlockAlignmentToolbar:()=>ip,BlockControls:()=>rp,BlockEdit:()=>ap,BlockEditorKeyboardShortcuts:()=>lp,BlockFormatControls:()=>cp,BlockIcon:()=>dp,BlockInspector:()=>up,BlockList:()=>pp,BlockMover:()=>hp,BlockNavigationDropdown:()=>mp,BlockSelectionClearer:()=>gp,BlockSettingsMenu:()=>_p,BlockTitle:()=>fp,BlockToolbar:()=>bp,CharacterCount:()=>Td,ColorPalette:()=>yp,ContrastChecker:()=>xp,CopyHandler:()=>vp,DefaultBlockAppender:()=>wp,DocumentBar:()=>Bi,DocumentOutline:()=>Vi,DocumentOutlineCheck:()=>Ui,EditorHistoryRedo:()=>$i,EditorHistoryUndo:()=>Wi,EditorKeyboardShortcuts:()=>vi,EditorKeyboardShortcutsRegister:()=>zi,EditorNotices:()=>Zi,EditorProvider:()=>Qu,EditorSnackbars:()=>qi,EntitiesSavedStates:()=>ir,ErrorBoundary:()=>dr,FontSizePicker:()=>Sp,InnerBlocks:()=>Pp,Inserter:()=>kp,InspectorAdvancedControls:()=>Cp,InspectorControls:()=>jp,LocalAutosaveMonitor:()=>mr,MediaPlaceholder:()=>Ap,MediaUpload:()=>Dp,MediaUploadCheck:()=>Rp,MultiSelectScrollIntoView:()=>Mp,NavigableToolbar:()=>Op,ObserveTyping:()=>Lp,PageAttributesCheck:()=>gr,PageAttributesOrder:()=>yr,PageAttributesPanel:()=>Mr,PageAttributesParent:()=>Ar,PageTemplate:()=>Zr,PanelColorSettings:()=>Tp,PlainText:()=>Ep,PluginBlockSettingsMenuItem:()=>ia,PluginDocumentSettingPanel:()=>na,PluginMoreMenuItem:()=>ra,PluginPostPublishPanel:()=>da,PluginPostStatusInfo:()=>ma,PluginPrePublishPanel:()=>ba,PluginSidebar:()=>ya,PluginSidebarMoreMenuItem:()=>xa,PostAuthor:()=>Aa,PostAuthorCheck:()=>Da,PostAuthorPanel:()=>Ma,PostComments:()=>La,PostDiscussionPanel:()=>Ha,PostExcerpt:()=>Ga,PostExcerptCheck:()=>$a,PostExcerptPanel:()=>Xa,PostFeaturedImage:()=>dl,PostFeaturedImageCheck:()=>ol,PostFeaturedImagePanel:()=>pl,PostFormat:()=>gl,PostFormatCheck:()=>hl,PostLastRevision:()=>xl,PostLastRevisionCheck:()=>fl,PostLastRevisionPanel:()=>vl,PostLockedModal:()=>wl,PostPendingStatus:()=>kl,PostPendingStatusCheck:()=>Sl,PostPingbacks:()=>Fa,PostPreviewButton:()=>Pl,PostPublishButton:()=>El,PostPublishButtonLabel:()=>Cl,PostPublishPanel:()=>Dc,PostSavedState:()=>zc,PostSchedule:()=>Ql,PostScheduleCheck:()=>Hc,PostScheduleLabel:()=>Jl,PostSchedulePanel:()=>$c,PostSlug:()=>Zc,PostSlugCheck:()=>Wc,PostSticky:()=>qc,PostStickyCheck:()=>Yc,PostSwitchToDraftButton:()=>Qc,PostSyncStatus:()=>Xc,PostTaxonomies:()=>ed,PostTaxonomiesCheck:()=>td,PostTaxonomiesFlatTermSelector:()=>uc,PostTaxonomiesHierarchicalTermSelector:()=>vc,PostTaxonomiesPanel:()=>od,PostTemplatePanel:()=>ja,PostTextEditor:()=>id,PostTitle:()=>ud,PostTitleRaw:()=>pd,PostTrash:()=>hd,PostTrashCheck:()=>md,PostTypeSupportCheck:()=>fr,PostURL:()=>_d,PostURLCheck:()=>fd,PostURLLabel:()=>bd,PostURLPanel:()=>xd,PostVisibility:()=>Nl,PostVisibilityCheck:()=>wd,PostVisibilityLabel:()=>Dl,RichText:()=>sp,RichTextShortcut:()=>Bp,RichTextToolbarButton:()=>Ip,ServerSideRender:()=>Ju(),SkipToSelectedBlock:()=>Fp,TableOfContents:()=>Bd,TextEditorGlobalKeyboardShortcuts:()=>th,ThemeSupportCheck:()=>sl,TimeToRead:()=>jd,URLInput:()=>Vp,URLInputButton:()=>Up,URLPopover:()=>zp,UnsavedChangesWarning:()=>Id,VisualEditorGlobalKeyboardShortcuts:()=>eh,Warning:()=>Hp,WordCount:()=>Pd,WritingFlow:()=>Gp,__unstableRichTextInputEvent:()=>Np,cleanForSlug:()=>sh,createCustomColorsHOC:()=>$p,getColorClassName:()=>Wp,getColorObjectByAttributeValues:()=>Kp,getColorObjectByColorValue:()=>Zp,getFontSize:()=>Yp,getFontSizeClass:()=>qp,getTemplatePartIcon:()=>Y,mediaUpload:()=>Fd,privateApis:()=>m_,store:()=>cn,storeConfig:()=>ln,transformStyles:()=>g.transformStyles,useEntitiesSavedStatesIsDirty:()=>or,usePostScheduleLabel:()=>ec,usePostURLLabel:()=>yd,usePostVisibilityLabel:()=>Rl,userAutocompleter:()=>mn,withColorContext:()=>Qp,withColors:()=>Xp,withFontSizes:()=>Jp});var e={};s.r(e),s.d(e,{__experimentalGetDefaultTemplatePartAreas:()=>cs,__experimentalGetDefaultTemplateType:()=>ds,__experimentalGetDefaultTemplateTypes:()=>ls,__experimentalGetTemplateInfo:()=>us,__unstableIsEditorReady:()=>tt,canInsertBlockType:()=>ns,canUserUseUnfilteredHTML:()=>We,didPostSaveRequestFail:()=>Ee,didPostSaveRequestSucceed:()=>Te,getActivePostLock:()=>$e,getAdjacentBlockClientId:()=>Et,getAutosaveAttribute:()=>me,getBlock:()=>mt,getBlockAttributes:()=>ht,getBlockCount:()=>xt,getBlockHierarchyRootClientId:()=>Tt,getBlockIndex:()=>Ht,getBlockInsertionPoint:()=>Jt,getBlockListSettings:()=>as,getBlockMode:()=>qt,getBlockName:()=>ut,getBlockOrder:()=>zt,getBlockRootClientId:()=>jt,getBlockSelectionEnd:()=>wt,getBlockSelectionStart:()=>vt,getBlocks:()=>gt,getBlocksByClientId:()=>yt,getClientIdsOfDescendants:()=>_t,getClientIdsWithDescendants:()=>ft,getCurrentPost:()=>ne,getCurrentPostAttribute:()=>ue,getCurrentPostId:()=>re,getCurrentPostLastRevisionId:()=>ce,getCurrentPostRevisionsCount:()=>le,getCurrentPostType:()=>ie,getCurrentTemplateId:()=>ae,getDeviceType:()=>nt,getEditedPostAttribute:()=>he,getEditedPostContent:()=>De,getEditedPostPreviewLink:()=>Ne,getEditedPostSlug:()=>Le,getEditedPostVisibility:()=>ge,getEditorBlocks:()=>Ze,getEditorMode:()=>at,getEditorSelection:()=>et,getEditorSelectionEnd:()=>Je,getEditorSelectionStart:()=>Xe,getEditorSettings:()=>st,getFirstMultiSelectedBlockClientId:()=>Rt,getGlobalBlockCount:()=>bt,getInserterItems:()=>is,getLastMultiSelectedBlockClientId:()=>Mt,getMultiSelectedBlockClientIds:()=>At,getMultiSelectedBlocks:()=>Dt,getMultiSelectedBlocksEndClientId:()=>Ut,getMultiSelectedBlocksStartClientId:()=>Vt,getNextBlockClientId:()=>It,getPermalink:()=>Oe,getPermalinkParts:()=>Fe,getPostEdits:()=>de,getPostLockUser:()=>Ge,getPostTypeLabel:()=>ps,getPreviousBlockClientId:()=>Bt,getRenderingMode:()=>ot,getSelectedBlock:()=>Ct,getSelectedBlockClientId:()=>Pt,getSelectedBlockCount:()=>St,getSelectedBlocksInitialCaretPosition:()=>Nt,getStateBeforeOptimisticTransaction:()=>lt,getSuggestedPostFormat:()=>Ae,getTemplate:()=>ss,getTemplateLock:()=>os,hasChangedContent:()=>ee,hasEditorRedo:()=>X,hasEditorUndo:()=>Q,hasInserterItems:()=>rs,hasMultiSelection:()=>Kt,hasNonPostEntityChanges:()=>se,hasSelectedBlock:()=>kt,hasSelectedInnerBlock:()=>$t,inSomeHistory:()=>ct,isAncestorMultiSelected:()=>Ft,isAutosavingPost:()=>Be,isBlockInsertionPointVisible:()=>es,isBlockMultiSelected:()=>Lt,isBlockSelected:()=>Gt,isBlockValid:()=>pt,isBlockWithinSelection:()=>Wt,isCaretWithinFormattedText:()=>Xt,isCleanNewPost:()=>oe,isCurrentPostPending:()=>_e,isCurrentPostPublished:()=>fe,isCurrentPostScheduled:()=>be,isDeletingPost:()=>Pe,isEditedPostAutosaveable:()=>we,isEditedPostBeingScheduled:()=>Se,isEditedPostDateFloating:()=>ke,isEditedPostDirty:()=>te,isEditedPostEmpty:()=>ve,isEditedPostNew:()=>J,isEditedPostPublishable:()=>ye,isEditedPostSaveable:()=>xe,isEditorPanelEnabled:()=>qe,isEditorPanelOpened:()=>Qe,isEditorPanelRemoved:()=>Ye,isFirstMultiSelectedBlock:()=>Ot,isInserterOpened:()=>rt,isListViewOpened:()=>it,isMultiSelecting:()=>Zt,isPermalinkEditable:()=>Me,isPostAutosavingLocked:()=>ze,isPostLockTakeover:()=>He,isPostLocked:()=>Ve,isPostSavingLocked:()=>Ue,isPreviewingPost:()=>Ie,isPublishSidebarEnabled:()=>Ke,isPublishSidebarOpened:()=>hs,isPublishingPost:()=>Re,isSavingNonPostEntityChanges:()=>je,isSavingPost:()=>Ce,isSelectionEnabled:()=>Yt,isTyping:()=>Qt,isValidTemplate:()=>ts});var t={};s.r(t),s.d(t,{__experimentalTearDownEditor:()=>ws,__unstableSaveForPreview:()=>Ns,autosave:()=>Is,clearSelectedBlock:()=>ho,closePublishSidebar:()=>to,createUndoLevel:()=>Rs,disablePublishSidebar:()=>Ls,editPost:()=>js,enablePublishSidebar:()=>Os,enterFormattedText:()=>No,exitFormattedText:()=>Ao,hideInsertionPoint:()=>So,insertBlock:()=>xo,insertBlocks:()=>vo,insertDefaultBlock:()=>Do,lockPostAutosaving:()=>Us,lockPostSaving:()=>Fs,mergeBlocks:()=>Co,moveBlockToPosition:()=>yo,moveBlocksDown:()=>fo,moveBlocksUp:()=>bo,multiSelect:()=>po,openPublishSidebar:()=>eo,receiveBlocks:()=>io,redo:()=>As,refreshPost:()=>Es,removeBlock:()=>To,removeBlocks:()=>jo,removeEditorPanel:()=>Ys,replaceBlock:()=>_o,replaceBlocks:()=>go,resetBlocks:()=>no,resetEditorBlocks:()=>Hs,resetPost:()=>Ss,savePost:()=>Ts,selectBlock:()=>lo,setDeviceType:()=>Ws,setEditedPost:()=>Cs,setIsInserterOpened:()=>qs,setIsListViewOpened:()=>Qs,setRenderingMode:()=>$s,setTemplateValidity:()=>ko,setupEditor:()=>vs,setupEditorState:()=>Ps,showInsertionPoint:()=>wo,startMultiSelect:()=>co,startTyping:()=>Bo,stopMultiSelect:()=>uo,stopTyping:()=>Io,switchEditorMode:()=>Js,synchronizeTemplate:()=>Po,toggleBlockMode:()=>Eo,toggleDistractionFree:()=>Xs,toggleEditorPanelEnabled:()=>Ks,toggleEditorPanelOpened:()=>Zs,togglePublishSidebar:()=>so,toggleSelection:()=>mo,trashPost:()=>Bs,undo:()=>Ds,unlockPostAutosaving:()=>zs,unlockPostSaving:()=>Vs,updateBlock:()=>ro,updateBlockAttributes:()=>ao,updateBlockListSettings:()=>Ro,updateEditorSettings:()=>Gs,updatePost:()=>ks,updatePostLock:()=>Ms});var n={};s.r(n),s.d(n,{createTemplate:()=>Fo,hideBlockTypes:()=>Uo,removeTemplates:()=>Go,revertTemplate:()=>Ho,saveDirtyEntities:()=>zo,setCurrentTemplateId:()=>Lo,showBlockTypes:()=>Vo});var i={};s.r(i),s.d(i,{getCurrentTemplateTemplateParts:()=>rn,getInserterSidebarToggleRef:()=>sn,getInsertionPoint:()=>en,getListViewToggleRef:()=>tn,getPostIcon:()=>nn,hasPostMetaChanges:()=>an});var r={};s.r(r),s.d(r,{closeModal:()=>$n,disableComplementaryArea:()=>Ln,enableComplementaryArea:()=>On,openModal:()=>Gn,pinItem:()=>Fn,setDefaultComplementaryArea:()=>Mn,setFeatureDefaults:()=>Hn,setFeatureValue:()=>zn,toggleFeature:()=>Un,unpinItem:()=>Vn});var a={};s.r(a),s.d(a,{getActiveComplementaryArea:()=>Wn,isComplementaryAreaLoading:()=>Kn,isFeatureActive:()=>Yn,isItemPinned:()=>Zn,isModalActive:()=>qn});var l={};s.r(l),s.d(l,{ActionItem:()=>ii,ComplementaryArea:()=>gi,ComplementaryAreaMoreMenuItem:()=>ai,FullscreenMode:()=>_i,InterfaceSkeleton:()=>xi,NavigableRegion:()=>fi,PinnedItems:()=>ci,store:()=>Xn});const c=window.wp.blocks,d=window.wp.data,u=window.wp.privateApis,{lock:p,unlock:h}=(0,u.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/editor"),m=window.wp.i18n,g=window.wp.blockEditor,_="content",f={name:"core/pattern-overrides",label:(0,m._x)("Pattern Overrides","block bindings source"),getValue({registry:e,clientId:t,context:s,attributeName:o}){const n=s["pattern/overrides"],{getBlockAttributes:i}=e.select(g.store),r=i(t);if(!n)return r[o];const a=n?.[r?.metadata?.name]?.[o];return void 0===a?r[o]:""===a?void 0:a},setValues({registry:e,clientId:t,attributes:s}){const{getBlockAttributes:o,getBlockParentsByBlockName:n,getBlocks:i}=e.select(g.store),r=o(t),a=r?.metadata?.name;if(!a)return;const[l]=n(t,"core/block",!0);if(!l){const t=o=>{for(const n of o)n.attributes?.metadata?.name===a&&e.dispatch(g.store).updateBlockAttributes(n.clientId,s),t(n.innerBlocks)};return void t(i())}const c=o(l)?.[_];e.dispatch(g.store).updateBlockAttributes(l,{[_]:{...c,[a]:{...c?.[a],...Object.entries(s).reduce(((e,[t,s])=>(e[t]=void 0===s?"":s,e)),{})}}})},canUserEditValue:()=>!0},b=window.wp.coreData,y={...g.SETTINGS_DEFAULTS,richEditingEnabled:!0,codeEditingEnabled:!0,fontLibraryEnabled:!0,enableCustomFields:void 0,defaultRenderingMode:"post-only"};function x(e){return e&&"object"==typeof e&&"raw"in e?e.raw:e}const v=(0,d.combineReducers)({postId:function(e=null,t){return"SET_EDITED_POST"===t.type?t.postId:e},postType:function(e=null,t){return"SET_EDITED_POST"===t.type?t.postType:e},templateId:function(e=null,t){return"SET_CURRENT_TEMPLATE_ID"===t.type?t.id:e},saving:function(e={},t){switch(t.type){case"REQUEST_POST_UPDATE_START":case"REQUEST_POST_UPDATE_FINISH":return{pending:"REQUEST_POST_UPDATE_START"===t.type,options:t.options||{}}}return e},deleting:function(e={},t){switch(t.type){case"REQUEST_POST_DELETE_START":case"REQUEST_POST_DELETE_FINISH":return{pending:"REQUEST_POST_DELETE_START"===t.type}}return e},postLock:function(e={isLocked:!1},t){return"UPDATE_POST_LOCK"===t.type?t.lock:e},template:function(e={isValid:!0},t){return"SET_TEMPLATE_VALIDITY"===t.type?{...e,isValid:t.isValid}:e},postSavingLock:function(e={},t){switch(t.type){case"LOCK_POST_SAVING":return{...e,[t.lockName]:!0};case"UNLOCK_POST_SAVING":{const{[t.lockName]:s,...o}=e;return o}}return e},editorSettings:function(e=y,t){return"UPDATE_EDITOR_SETTINGS"===t.type?{...e,...t.settings}:e},postAutosavingLock:function(e={},t){switch(t.type){case"LOCK_POST_AUTOSAVING":return{...e,[t.lockName]:!0};case"UNLOCK_POST_AUTOSAVING":{const{[t.lockName]:s,...o}=e;return o}}return e},renderingMode:function(e="post-only",t){return"SET_RENDERING_MODE"===t.type?t.mode:e},deviceType:function(e="Desktop",t){return"SET_DEVICE_TYPE"===t.type?t.deviceType:e},removedPanels:function(e=[],t){if("REMOVE_PANEL"===t.type)if(!e.includes(t.panelName))return[...e,t.panelName];return e},blockInserterPanel:function(e=!1,t){switch(t.type){case"SET_IS_LIST_VIEW_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return t.value}return e},inserterSidebarToggleRef:function(e={current:null}){return e},listViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_INSERTER_OPENED":return!t.value&&e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen}return e},listViewToggleRef:function(e={current:null}){return e},publishSidebarActive:function(e=!1,t){switch(t.type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e}}),w=window.wp.date,S=window.wp.url,k=window.wp.deprecated;var P=s.n(k);const C=window.wp.element,j=window.wp.primitives,T=window.ReactJSXRuntime,E=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),B=window.wp.preferences,I=new Set(["meta"]),N="SAVE_POST_NOTICE_ID",A="TRASH_POST_NOTICE_ID",D=/%(?:postname|pagename)%/,R=6e4,M=["title","excerpt","content"],O="uncategorized",L="wp_template",F="wp_template_part",V="wp_block",U="wp_navigation",z={custom:"custom",theme:"theme",plugin:"plugin"},H=["wp_template","wp_template_part"],G=[...H,"wp_block","wp_navigation"],$=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),W=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),K=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),Z=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})});function Y(e){return"header"===e?$:"footer"===e?W:"sidebar"===e?K:Z}const q={},Q=(0,d.createRegistrySelector)((e=>()=>e(b.store).hasUndo())),X=(0,d.createRegistrySelector)((e=>()=>e(b.store).hasRedo()));function J(e){return"auto-draft"===ne(e).status}function ee(e){return"content"in de(e)}const te=(0,d.createRegistrySelector)((e=>t=>{const s=ie(t),o=re(t);return e(b.store).hasEditsForEntityRecord("postType",s,o)})),se=(0,d.createRegistrySelector)((e=>t=>{const s=e(b.store).__experimentalGetDirtyEntityRecords(),{type:o,id:n}=ne(t);return s.some((e=>"postType"!==e.kind||e.name!==o||e.key!==n))}));function oe(e){return!te(e)&&J(e)}const ne=(0,d.createRegistrySelector)((e=>t=>{const s=re(t),o=ie(t),n=e(b.store).getRawEntityRecord("postType",o,s);return n||q}));function ie(e){return e.postType}function re(e){return e.postId}function ae(e){return e.templateId}function le(e){var t;return null!==(t=ne(e)._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}function ce(e){var t;return null!==(t=ne(e)._links?.["predecessor-version"]?.[0]?.id)&&void 0!==t?t:null}const de=(0,d.createRegistrySelector)((e=>t=>{const s=ie(t),o=re(t);return e(b.store).getEntityRecordEdits("postType",s,o)||q}));function ue(e,t){switch(t){case"type":return ie(e);case"id":return re(e);default:const s=ne(e);if(!s.hasOwnProperty(t))break;return x(s[t])}}const pe=(0,d.createSelector)(((e,t)=>{const s=de(e);return s.hasOwnProperty(t)?{...ue(e,t),...s[t]}:ue(e,t)}),((e,t)=>[ue(e,t),de(e)[t]]));function he(e,t){if("content"===t)return De(e);const s=de(e);return s.hasOwnProperty(t)?I.has(t)?pe(e,t):s[t]:ue(e,t)}const me=(0,d.createRegistrySelector)((e=>(t,s)=>{if(!M.includes(s)&&"preview_link"!==s)return;const o=ie(t);if("wp_template"===o)return!1;const n=re(t),i=e(b.store).getCurrentUser()?.id,r=e(b.store).getAutosave(o,n,i);return r?x(r[s]):void 0}));function ge(e){if("private"===he(e,"status"))return"private";return he(e,"password")?"password":"public"}function _e(e){return"pending"===ne(e).status}function fe(e,t){const s=t||ne(e);return-1!==["publish","private"].indexOf(s.status)||"future"===s.status&&!(0,w.isInTheFuture)(new Date(Number((0,w.getDate)(s.date))-R))}function be(e){return"future"===ne(e).status&&!fe(e)}function ye(e){const t=ne(e);return te(e)||-1===["publish","private","future"].indexOf(t.status)}function xe(e){return!Ce(e)&&(!!he(e,"title")||!!he(e,"excerpt")||!ve(e)||"native"===C.Platform.OS)}const ve=(0,d.createRegistrySelector)((e=>t=>{const s=re(t),o=ie(t),n=e(b.store).getEditedEntityRecord("postType",o,s);if("function"!=typeof n.content)return!n.content;const i=he(t,"blocks");if(0===i.length)return!0;if(i.length>1)return!1;const r=i[0].name;return(r===(0,c.getDefaultBlockName)()||r===(0,c.getFreeformContentHandlerName)())&&!De(t)})),we=(0,d.createRegistrySelector)((e=>t=>{if(!xe(t))return!1;if(ze(t))return!1;const s=ie(t);if("wp_template"===s)return!1;const o=re(t),n=e(b.store).hasFetchedAutosaves(s,o),i=e(b.store).getCurrentUser()?.id,r=e(b.store).getAutosave(s,o,i);return!!n&&(!r||(!!ee(t)||["title","excerpt","meta"].some((e=>x(r[e])!==he(t,e)))))}));function Se(e){const t=he(e,"date"),s=new Date(Number((0,w.getDate)(t))-R);return(0,w.isInTheFuture)(s)}function ke(e){const t=he(e,"date"),s=he(e,"modified"),o=ne(e).status;return("draft"===o||"auto-draft"===o||"pending"===o)&&(t===s||null===t)}function Pe(e){return!!e.deleting.pending}function Ce(e){return!!e.saving.pending}const je=(0,d.createRegistrySelector)((e=>t=>{const s=e(b.store).__experimentalGetEntitiesBeingSaved(),{type:o,id:n}=ne(t);return s.some((e=>"postType"!==e.kind||e.name!==o||e.key!==n))})),Te=(0,d.createRegistrySelector)((e=>t=>{const s=ie(t),o=re(t);return!e(b.store).getLastEntitySaveError("postType",s,o)})),Ee=(0,d.createRegistrySelector)((e=>t=>{const s=ie(t),o=re(t);return!!e(b.store).getLastEntitySaveError("postType",s,o)}));function Be(e){return Ce(e)&&Boolean(e.saving.options?.isAutosave)}function Ie(e){return Ce(e)&&Boolean(e.saving.options?.isPreview)}function Ne(e){if(e.saving.pending||Ce(e))return;let t=me(e,"preview_link");t&&"draft"!==ne(e).status||(t=he(e,"link"),t&&(t=(0,S.addQueryArgs)(t,{preview:!0})));const s=he(e,"featured_media");return t&&s?(0,S.addQueryArgs)(t,{_thumbnail_id:s}):t}const Ae=(0,d.createRegistrySelector)((e=>()=>{const t=e(g.store).getBlocks();if(t.length>2)return null;let s;if(1===t.length&&(s=t[0].name,"core/embed"===s)){const e=t[0].attributes?.providerNameSlug;["youtube","vimeo"].includes(e)?s="core/video":["spotify","soundcloud"].includes(e)&&(s="core/audio")}switch(2===t.length&&"core/paragraph"===t[1].name&&(s=t[0].name),s){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":return"video";case"core/audio":return"audio";default:return null}})),De=(0,d.createRegistrySelector)((e=>t=>{const s=re(t),o=ie(t),n=e(b.store).getEditedEntityRecord("postType",o,s);if(n){if("function"==typeof n.content)return n.content(n);if(n.blocks)return(0,c.__unstableSerializeAndClean)(n.blocks);if(n.content)return n.content}return""}));function Re(e){return Ce(e)&&!fe(e)&&"publish"===he(e,"status")}function Me(e){const t=he(e,"permalink_template");return D.test(t)}function Oe(e){const t=Fe(e);if(!t)return null;const{prefix:s,postName:o,suffix:n}=t;return Me(e)?s+o+n:s}function Le(e){return he(e,"slug")||(0,S.cleanForSlug)(he(e,"title"))||re(e)}function Fe(e){const t=he(e,"permalink_template");if(!t)return null;const s=he(e,"slug")||he(e,"generated_slug"),[o,n]=t.split(D);return{prefix:o,postName:s,suffix:n}}function Ve(e){return e.postLock.isLocked}function Ue(e){return Object.keys(e.postSavingLock).length>0}function ze(e){return Object.keys(e.postAutosavingLock).length>0}function He(e){return e.postLock.isTakeover}function Ge(e){return e.postLock.user}function $e(e){return e.postLock.activePostLock}function We(e){return Boolean(ne(e)._links?.hasOwnProperty("wp:action-unfiltered-html"))}const Ke=(0,d.createRegistrySelector)((e=>()=>!!e(B.store).get("core","isPublishSidebarEnabled"))),Ze=(0,d.createSelector)((e=>he(e,"blocks")||(0,c.parse)(De(e))),(e=>[he(e,"blocks"),De(e)]));function Ye(e,t){return e.removedPanels.includes(t)}const qe=(0,d.createRegistrySelector)((e=>(t,s)=>{const o=e(B.store).get("core","inactivePanels");return!Ye(t,s)&&!o?.includes(s)})),Qe=(0,d.createRegistrySelector)((e=>(t,s)=>{const o=e(B.store).get("core","openPanels");return!!o?.includes(s)}));function Xe(e){return P()("select('core/editor').getEditorSelectionStart",{since:"5.8",alternative:"select('core/editor').getEditorSelection"}),he(e,"selection")?.selectionStart}function Je(e){return P()("select('core/editor').getEditorSelectionStart",{since:"5.8",alternative:"select('core/editor').getEditorSelection"}),he(e,"selection")?.selectionEnd}function et(e){return he(e,"selection")}function tt(e){return!!e.postId}function st(e){return e.editorSettings}function ot(e){return e.renderingMode}function nt(e){return e.deviceType}function it(e){return e.listViewPanel}function rt(e){return!!e.blockInserterPanel}const at=(0,d.createRegistrySelector)((e=>()=>{var t;return null!==(t=e(B.store).get("core","editorMode"))&&void 0!==t?t:"visual"}));function lt(){return P()("select('core/editor').getStateBeforeOptimisticTransaction",{since:"5.7",hint:"No state history is kept on this store anymore"}),null}function ct(){return P()("select('core/editor').inSomeHistory",{since:"5.7",hint:"No state history is kept on this store anymore"}),!1}function dt(e){return(0,d.createRegistrySelector)((t=>(s,...o)=>(P()("`wp.data.select( 'core/editor' )."+e+"`",{since:"5.3",alternative:"`wp.data.select( 'core/block-editor' )."+e+"`",version:"6.2"}),t(g.store)[e](...o))))}const ut=dt("getBlockName"),pt=dt("isBlockValid"),ht=dt("getBlockAttributes"),mt=dt("getBlock"),gt=dt("getBlocks"),_t=dt("getClientIdsOfDescendants"),ft=dt("getClientIdsWithDescendants"),bt=dt("getGlobalBlockCount"),yt=dt("getBlocksByClientId"),xt=dt("getBlockCount"),vt=dt("getBlockSelectionStart"),wt=dt("getBlockSelectionEnd"),St=dt("getSelectedBlockCount"),kt=dt("hasSelectedBlock"),Pt=dt("getSelectedBlockClientId"),Ct=dt("getSelectedBlock"),jt=dt("getBlockRootClientId"),Tt=dt("getBlockHierarchyRootClientId"),Et=dt("getAdjacentBlockClientId"),Bt=dt("getPreviousBlockClientId"),It=dt("getNextBlockClientId"),Nt=dt("getSelectedBlocksInitialCaretPosition"),At=dt("getMultiSelectedBlockClientIds"),Dt=dt("getMultiSelectedBlocks"),Rt=dt("getFirstMultiSelectedBlockClientId"),Mt=dt("getLastMultiSelectedBlockClientId"),Ot=dt("isFirstMultiSelectedBlock"),Lt=dt("isBlockMultiSelected"),Ft=dt("isAncestorMultiSelected"),Vt=dt("getMultiSelectedBlocksStartClientId"),Ut=dt("getMultiSelectedBlocksEndClientId"),zt=dt("getBlockOrder"),Ht=dt("getBlockIndex"),Gt=dt("isBlockSelected"),$t=dt("hasSelectedInnerBlock"),Wt=dt("isBlockWithinSelection"),Kt=dt("hasMultiSelection"),Zt=dt("isMultiSelecting"),Yt=dt("isSelectionEnabled"),qt=dt("getBlockMode"),Qt=dt("isTyping"),Xt=dt("isCaretWithinFormattedText"),Jt=dt("getBlockInsertionPoint"),es=dt("isBlockInsertionPointVisible"),ts=dt("isValidTemplate"),ss=dt("getTemplate"),os=dt("getTemplateLock"),ns=dt("canInsertBlockType"),is=dt("getInserterItems"),rs=dt("hasInserterItems"),as=dt("getBlockListSettings");function ls(e){return st(e)?.defaultTemplateTypes}const cs=(0,d.createSelector)((e=>{var t;return(null!==(t=st(e)?.defaultTemplatePartAreas)&&void 0!==t?t:[]).map((e=>({...e,icon:Y(e.icon)})))}),(e=>[st(e)?.defaultTemplatePartAreas])),ds=(0,d.createSelector)(((e,t)=>{var s;const o=ls(e);return o&&null!==(s=Object.values(o).find((e=>e.slug===t)))&&void 0!==s?s:q}),(e=>[ls(e)])),us=(0,d.createSelector)(((e,t)=>{if(!t)return q;const{description:s,slug:o,title:n,area:i}=t,{title:r,description:a}=ds(e,o),l="string"==typeof n?n:n?.rendered;return{title:l&&l!==o?l:r||o,description:("string"==typeof s?s:s?.raw)||a,icon:cs(e).find((e=>i===e.area))?.icon||E}}),(e=>[ls(e),cs(e)])),ps=(0,d.createRegistrySelector)((e=>t=>{const s=ie(t),o=e(b.store).getPostType(s);return o?.labels?.singular_name}));function hs(e){return e.publishSidebarActive}const ms=window.wp.a11y,gs=window.wp.apiFetch;var _s=s.n(gs);const fs=window.wp.notices,bs=window.wp.hooks;function ys(e,t){return`wp-autosave-block-editor-post-${t?"auto-draft":e}`}function xs(e,t){window.sessionStorage.removeItem(ys(e,t))}const vs=(e,t,s)=>({dispatch:o})=>{o.setEditedPost(e.type,e.id);if("auto-draft"===e.status&&s){let n;n="content"in t?t.content:e.content.raw;let i=(0,c.parse)(n);i=(0,c.synchronizeBlocksWithTemplate)(i,s),o.resetEditorBlocks(i,{__unstableShouldCreateUndoLevel:!1})}t&&Object.values(t).some((([t,s])=>{var o;return s!==(null!==(o=e[t]?.raw)&&void 0!==o?o:e[t])}))&&o.editPost(t)};function ws(){return P()("wp.data.dispatch( 'core/editor' ).__experimentalTearDownEditor",{since:"6.5"}),{type:"DO_NOTHING"}}function Ss(){return P()("wp.data.dispatch( 'core/editor' ).resetPost",{since:"6.0",version:"6.3",alternative:"Initialize the editor with the setupEditorState action"}),{type:"DO_NOTHING"}}function ks(){return P()("wp.data.dispatch( 'core/editor' ).updatePost",{since:"5.7",alternative:"Use the core entities store instead"}),{type:"DO_NOTHING"}}function Ps(e){return P()("wp.data.dispatch( 'core/editor' ).setupEditorState",{since:"6.5",alternative:"wp.data.dispatch( 'core/editor' ).setEditedPost"}),Cs(e.type,e.id)}function Cs(e,t){return{type:"SET_EDITED_POST",postType:e,postId:t}}const js=(e,t)=>({select:s,registry:o})=>{const{id:n,type:i}=s.getCurrentPost();o.dispatch(b.store).editEntityRecord("postType",i,n,e,t)},Ts=(e={})=>async({select:t,dispatch:s,registry:o})=>{if(!t.isEditedPostSaveable())return;const n=t.getEditedPostContent();e.isAutosave||s.editPost({content:n},{undoIgnore:!0});const i=t.getCurrentPost(),r={id:i.id,...o.select(b.store).getEntityRecordNonTransientEdits("postType",i.type,i.id),content:n};s({type:"REQUEST_POST_UPDATE_START",options:e}),await o.dispatch(b.store).saveEntityRecord("postType",i.type,r,e);let a=o.select(b.store).getLastEntitySaveError("postType",i.type,i.id);if(a||await(0,bs.applyFilters)("editor.__unstableSavePost",Promise.resolve(),e).catch((e=>{a=e})),s({type:"REQUEST_POST_UPDATE_FINISH",options:e}),a){const e=function(e){const{post:t,edits:s,error:o}=e;if(o&&"rest_autosave_no_changes"===o.code)return[];const n=["publish","private","future"],i=-1!==n.indexOf(t.status),r={publish:(0,m.__)("Publishing failed."),private:(0,m.__)("Publishing failed."),future:(0,m.__)("Scheduling failed.")};let a=i||-1===n.indexOf(s.status)?(0,m.__)("Updating failed."):r[s.status];return o.message&&!/<\/?[^>]*>/.test(o.message)&&(a=[a,o.message].join(" ")),[a,{id:N}]}({post:i,edits:r,error:a});e.length&&o.dispatch(fs.store).createErrorNotice(...e)}else{const s=t.getCurrentPost(),n=function(e){var t;const{previousPost:s,post:o,postType:n}=e;if(e.options?.isAutosave)return[];const i=["publish","private","future"],r=i.includes(s.status),a=i.includes(o.status),l="trash"===o.status&&"trash"!==s.status;let c,d,u=null!==(t=n?.viewable)&&void 0!==t&&t;l?(c=n.labels.item_trashed,u=!1):r||a?r&&!a?(c=n.labels.item_reverted_to_draft,u=!1):c=!r&&a?{publish:n.labels.item_published,private:n.labels.item_published_privately,future:n.labels.item_scheduled}[o.status]:n.labels.item_updated:(c=(0,m.__)("Draft saved."),d=!0);const p=[];return u&&p.push({label:d?(0,m.__)("View Preview"):n.labels.view_item,url:o.link}),[c,{id:N,type:"snackbar",actions:p}]}({previousPost:i,post:s,postType:await o.resolveSelect(b.store).getPostType(s.type),options:e});n.length&&o.dispatch(fs.store).createSuccessNotice(...n),e.isAutosave||o.dispatch(g.store).__unstableMarkLastChangeAsPersistent()}};function Es(){return P()("wp.data.dispatch( 'core/editor' ).refreshPost",{since:"6.0",version:"6.3",alternative:"Use the core entities store instead"}),{type:"DO_NOTHING"}}const Bs=()=>async({select:e,dispatch:t,registry:s})=>{const o=e.getCurrentPostType(),n=await s.resolveSelect(b.store).getPostType(o);s.dispatch(fs.store).removeNotice(A);const{rest_base:i,rest_namespace:r="wp/v2"}=n;t({type:"REQUEST_POST_DELETE_START"});try{const s=e.getCurrentPost();await _s()({path:`/${r}/${i}/${s.id}`,method:"DELETE"}),await t.savePost()}catch(e){s.dispatch(fs.store).createErrorNotice(...(a={error:e},[a.error.message&&"unknown_error"!==a.error.code?a.error.message:(0,m.__)("Trashing failed"),{id:A}]))}var a;t({type:"REQUEST_POST_DELETE_FINISH"})},Is=({local:e=!1,...t}={})=>async({select:s,dispatch:o})=>{const n=s.getCurrentPost();if("wp_template"!==n.type)if(e){const e=s.isEditedPostNew(),t=s.getEditedPostAttribute("title"),o=s.getEditedPostAttribute("content"),i=s.getEditedPostAttribute("excerpt");!function(e,t,s,o,n){window.sessionStorage.setItem(ys(e,t),JSON.stringify({post_title:s,content:o,excerpt:n}))}(n.id,e,t,o,i)}else await o.savePost({isAutosave:!0,...t})},Ns=({forceIsAutosaveable:e}={})=>async({select:t,dispatch:s})=>{if((e||t.isEditedPostAutosaveable())&&!t.isPostLocked()){["draft","auto-draft"].includes(t.getEditedPostAttribute("status"))?await s.savePost({isPreview:!0}):await s.autosave({isPreview:!0})}return t.getEditedPostPreviewLink()},As=()=>({registry:e})=>{e.dispatch(b.store).redo()},Ds=()=>({registry:e})=>{e.dispatch(b.store).undo()};function Rs(){return P()("wp.data.dispatch( 'core/editor' ).createUndoLevel",{since:"6.0",version:"6.3",alternative:"Use the core entities store instead"}),{type:"DO_NOTHING"}}function Ms(e){return{type:"UPDATE_POST_LOCK",lock:e}}const Os=()=>({registry:e})=>{e.dispatch(B.store).set("core","isPublishSidebarEnabled",!0)},Ls=()=>({registry:e})=>{e.dispatch(B.store).set("core","isPublishSidebarEnabled",!1)};function Fs(e){return{type:"LOCK_POST_SAVING",lockName:e}}function Vs(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function Us(e){return{type:"LOCK_POST_AUTOSAVING",lockName:e}}function zs(e){return{type:"UNLOCK_POST_AUTOSAVING",lockName:e}}const Hs=(e,t={})=>({select:s,dispatch:o,registry:n})=>{const{__unstableShouldCreateUndoLevel:i,selection:r}=t,a={blocks:e,selection:r};if(!1!==i){const{id:e,type:t}=s.getCurrentPost();if(n.select(b.store).getEditedEntityRecord("postType",t,e).blocks===a.blocks)return void n.dispatch(b.store).__unstableCreateUndoLevel("postType",t,e);a.content=({blocks:e=[]})=>(0,c.__unstableSerializeAndClean)(e)}o.editPost(a)};function Gs(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}const $s=e=>({dispatch:t,registry:s,select:o})=>{o.__unstableIsEditorReady()&&(s.dispatch(g.store).clearSelectedBlock(),t.editPost({selection:void 0},{undoIgnore:!0})),t({type:"SET_RENDERING_MODE",mode:e})};function Ws(e){return{type:"SET_DEVICE_TYPE",deviceType:e}}const Ks=e=>({registry:t})=>{var s;const o=null!==(s=t.select(B.store).get("core","inactivePanels"))&&void 0!==s?s:[];let n;n=!!o?.includes(e)?o.filter((t=>t!==e)):[...o,e],t.dispatch(B.store).set("core","inactivePanels",n)},Zs=e=>({registry:t})=>{var s;const o=null!==(s=t.select(B.store).get("core","openPanels"))&&void 0!==s?s:[];let n;n=!!o?.includes(e)?o.filter((t=>t!==e)):[...o,e],t.dispatch(B.store).set("core","openPanels",n)};function Ys(e){return{type:"REMOVE_PANEL",panelName:e}}function qs(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function Qs(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}const Xs=()=>({dispatch:e,registry:t})=>{const s=t.select(B.store).get("core","distractionFree");s&&t.dispatch(B.store).set("core","fixedToolbar",!1),s||t.batch((()=>{t.dispatch(B.store).set("core","fixedToolbar",!0),e.setIsInserterOpened(!1),e.setIsListViewOpened(!1)})),t.batch((()=>{t.dispatch(B.store).set("core","distractionFree",!s),t.dispatch(fs.store).createInfoNotice(s?(0,m.__)("Distraction free off."):(0,m.__)("Distraction free on."),{id:"core/editor/distraction-free-mode/notice",type:"snackbar",actions:[{label:(0,m.__)("Undo"),onClick:()=>{t.batch((()=>{t.dispatch(B.store).set("core","fixedToolbar",!!s),t.dispatch(B.store).toggle("core","distractionFree")}))}}]})}))},Js=e=>({dispatch:t,registry:s})=>{if(s.dispatch(B.store).set("core","editorMode",e),"visual"!==e&&s.dispatch(g.store).clearSelectedBlock(),"visual"===e)(0,ms.speak)((0,m.__)("Visual editor selected"),"assertive");else if("text"===e){s.select(B.store).get("core","distractionFree")&&t.toggleDistractionFree(),(0,ms.speak)((0,m.__)("Code editor selected"),"assertive")}};function eo(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function to(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function so(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}const oo=e=>(...t)=>({registry:s})=>{P()("`wp.data.dispatch( 'core/editor' )."+e+"`",{since:"5.3",alternative:"`wp.data.dispatch( 'core/block-editor' )."+e+"`",version:"6.2"}),s.dispatch(g.store)[e](...t)},no=oo("resetBlocks"),io=oo("receiveBlocks"),ro=oo("updateBlock"),ao=oo("updateBlockAttributes"),lo=oo("selectBlock"),co=oo("startMultiSelect"),uo=oo("stopMultiSelect"),po=oo("multiSelect"),ho=oo("clearSelectedBlock"),mo=oo("toggleSelection"),go=oo("replaceBlocks"),_o=oo("replaceBlock"),fo=oo("moveBlocksDown"),bo=oo("moveBlocksUp"),yo=oo("moveBlockToPosition"),xo=oo("insertBlock"),vo=oo("insertBlocks"),wo=oo("showInsertionPoint"),So=oo("hideInsertionPoint"),ko=oo("setTemplateValidity"),Po=oo("synchronizeTemplate"),Co=oo("mergeBlocks"),jo=oo("removeBlocks"),To=oo("removeBlock"),Eo=oo("toggleBlockMode"),Bo=oo("startTyping"),Io=oo("stopTyping"),No=oo("enterFormattedText"),Ao=oo("exitFormattedText"),Do=oo("insertDefaultBlock"),Ro=oo("updateBlockListSettings"),Mo=window.wp.htmlEntities;function Oo(e){return!!e&&(e.source===z.custom&&e.has_theme_file)}function Lo(e){return{type:"SET_CURRENT_TEMPLATE_ID",id:e}}const Fo=e=>async({select:t,dispatch:s,registry:o})=>{const n=await o.dispatch(b.store).saveEntityRecord("postType","wp_template",e);return o.dispatch(b.store).editEntityRecord("postType",t.getCurrentPostType(),t.getCurrentPostId(),{template:n.slug}),o.dispatch(fs.store).createSuccessNotice((0,m.__)("Custom template created. You're in template mode now."),{type:"snackbar",actions:[{label:(0,m.__)("Go back"),onClick:()=>s.setRenderingMode(t.getEditorSettings().defaultRenderingMode)}]}),n},Vo=e=>({registry:t})=>{var s;const o=(null!==(s=t.select(B.store).get("core","hiddenBlockTypes"))&&void 0!==s?s:[]).filter((t=>!(Array.isArray(e)?e:[e]).includes(t)));t.dispatch(B.store).set("core","hiddenBlockTypes",o)},Uo=e=>({registry:t})=>{var s;const o=null!==(s=t.select(B.store).get("core","hiddenBlockTypes"))&&void 0!==s?s:[],n=new Set([...o,...Array.isArray(e)?e:[e]]);t.dispatch(B.store).set("core","hiddenBlockTypes",[...n])},zo=({onSave:e,dirtyEntityRecords:t=[],entitiesToSkip:s=[],close:o}={})=>({registry:n})=>{const i=[{kind:"postType",name:"wp_navigation"}],r="site-editor-save-success",a=n.select(b.store).getUnstableBase()?.home;n.dispatch(fs.store).removeNotice(r);const l=t.filter((({kind:e,name:t,key:o,property:n})=>!s.some((s=>s.kind===e&&s.name===t&&s.key===o&&s.property===n))));o?.(l);const c=[],d=[];l.forEach((({kind:e,name:t,key:s,property:o})=>{"root"===e&&"site"===t?c.push(o):(i.some((s=>s.kind===e&&s.name===t))&&n.dispatch(b.store).editEntityRecord(e,t,s,{status:"publish"}),d.push(n.dispatch(b.store).saveEditedEntityRecord(e,t,s)))})),c.length&&d.push(n.dispatch(b.store).__experimentalSaveSpecifiedEntityEdits("root","site",void 0,c)),n.dispatch(g.store).__unstableMarkLastChangeAsPersistent(),Promise.all(d).then((t=>e?e(t):t)).then((e=>{e.some((e=>void 0===e))?n.dispatch(fs.store).createErrorNotice((0,m.__)("Saving failed.")):n.dispatch(fs.store).createSuccessNotice((0,m.__)("Site updated."),{type:"snackbar",id:r,actions:[{label:(0,m.__)("View site"),url:a}]})})).catch((e=>n.dispatch(fs.store).createErrorNotice(`${(0,m.__)("Saving failed.")} ${e}`)))},Ho=(e,{allowUndo:t=!0}={})=>async({registry:s})=>{const o="edit-site-template-reverted";if(s.dispatch(fs.store).removeNotice(o),Oo(e))try{const n=s.select(b.store).getEntityConfig("postType",e.type);if(!n)return void s.dispatch(fs.store).createErrorNotice((0,m.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});const i=(0,S.addQueryArgs)(`${n.baseURL}/${e.id}`,{context:"edit",source:"theme"}),r=await _s()({path:i});if(!r)return void s.dispatch(fs.store).createErrorNotice((0,m.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});const a=({blocks:e=[]})=>(0,c.__unstableSerializeAndClean)(e),l=s.select(b.store).getEditedEntityRecord("postType",e.type,e.id);s.dispatch(b.store).editEntityRecord("postType",e.type,e.id,{content:a,blocks:l.blocks,source:"custom"},{undoIgnore:!0});const d=(0,c.parse)(r?.content?.raw);if(s.dispatch(b.store).editEntityRecord("postType",e.type,r.id,{content:a,blocks:d,source:"theme"}),t){const t=()=>{s.dispatch(b.store).editEntityRecord("postType",e.type,l.id,{content:a,blocks:l.blocks,source:"custom"})};s.dispatch(fs.store).createSuccessNotice((0,m.__)("Template reset."),{type:"snackbar",id:o,actions:[{label:(0,m.__)("Undo"),onClick:t}]})}}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,m.__)("Template revert failed. Please reload.");s.dispatch(fs.store).createErrorNotice(t,{type:"snackbar"})}else s.dispatch(fs.store).createErrorNotice((0,m.__)("This template is not revertable."),{type:"snackbar"})},Go=e=>async({registry:t})=>{const s=e.every((e=>!!e&&(e.has_theme_file||e.templatePart&&e.templatePart.has_theme_file))),o=await Promise.allSettled(e.map((e=>t.dispatch(b.store).deleteEntityRecord("postType",e.type,e.id,{force:!0},{throwOnError:!0}))));if(o.every((({status:e})=>"fulfilled"===e))){let o;if(1===e.length){const t="string"==typeof e[0].title?e[0].title:e[0].title?.rendered;o=s?(0,m.sprintf)((0,m.__)('"%s" reset.'),(0,Mo.decodeEntities)(t)):(0,m.sprintf)((0,m.__)('"%s" deleted.'),(0,Mo.decodeEntities)(t))}else o=s?(0,m.__)("Items reset."):(0,m.__)("Items deleted.");t.dispatch(fs.store).createSuccessNotice(o,{type:"snackbar",id:"editor-template-deleted-success"})}else{let e;if(1===o.length)e=o[0].reason?.message?o[0].reason.message:s?(0,m.__)("An error occurred while reverting the item."):(0,m.__)("An error occurred while deleting the item.");else{const t=new Set,n=o.filter((({status:e})=>"rejected"===e));for(const e of n)e.reason?.message&&t.add(e.reason.message);e=0===t.size?(0,m.__)("An error occurred while deleting the items."):1===t.size?s?(0,m.sprintf)((0,m.__)("An error occurred while reverting the items: %s"),[...t][0]):(0,m.sprintf)((0,m.__)("An error occurred while deleting the items: %s"),[...t][0]):s?(0,m.sprintf)((0,m.__)("Some errors occurred while reverting the items: %s"),[...t].join(",")):(0,m.sprintf)((0,m.__)("Some errors occurred while deleting the items: %s"),[...t].join(","))}t.dispatch(fs.store).createErrorNotice(e,{type:"snackbar"})}};var $o=s(5215),Wo=s.n($o);const Ko=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})}),Zo=(0,T.jsx)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,T.jsx)(j.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})}),Yo=(0,T.jsxs)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,T.jsx)(j.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,T.jsx)(j.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]}),qo=(0,T.jsx)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,T.jsx)(j.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"})});const Qo=[];const Xo=function(e,t){var s,o,n=0;function i(){var i,r,a=s,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(r=0;r<l;r++)if(a.args[r]!==arguments[r]){a=a.next;continue e}return a!==s&&(a===o&&(o=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=s,a.prev=null,s.prev=a,s=a),a.val}a=a.next}for(i=new Array(l),r=0;r<l;r++)i[r]=arguments[r];return a={args:i,val:e.apply(null,i)},s?(s.prev=a,a.next=s):o=a,n===t.maxSize?(o=o.prev).next=null:n++,s=a,a.val}return t=t||{},i.clear=function(){s=null,o=null,n=0},i}((function(e=Qo,t){const s=t?t.reduce(((e,t)=>({...e,[t.id]:t})),{}):{},o=[],n=[...e];for(;n.length;){const{innerBlocks:e,...t}=n.shift();if(n.unshift(...e),(0,c.isTemplatePart)(t)){const{attributes:{theme:e,slug:n}}=t,i=s[`${e}//${n}`];i&&o.push({templatePart:i,block:t})}}return o})),Jo={rootClientId:void 0,insertionIndex:void 0,filterValue:void 0},en=(0,d.createRegistrySelector)((e=>(0,d.createSelector)((t=>{if("object"==typeof t.blockInserterPanel)return t.blockInserterPanel;if("template-locked"===ot(t)){const[t]=e(g.store).getBlocksByName("core/post-content");if(t)return{rootClientId:t,insertionIndex:void 0,filterValue:void 0}}return Jo}),(t=>{const[s]=e(g.store).getBlocksByName("core/post-content");return[t.blockInserterPanel,ot(t),s]}))));function tn(e){return e.listViewToggleRef}function sn(e){return e.inserterSidebarToggleRef}const on={wp_block:Ko,wp_navigation:Zo,page:Yo,post:qo},nn=(0,d.createRegistrySelector)((e=>(t,s,o)=>{{if("wp_template_part"===s||"wp_template"===s)return cs(t).find((e=>o.area===e.area))?.icon||E;if(on[s])return on[s];const n=e(b.store).getPostType(s);return n?.icon?.startsWith("dashicons-")?n.icon.slice(10):Yo}})),rn=(0,d.createRegistrySelector)((e=>()=>{const t=e(b.store).getEntityRecords("postType",F,{per_page:-1}),s=e(g.store).getBlocksByName("core/template-part"),o=e(g.store).getBlocksByClientId(s);return Xo(o,t)})),an=(0,d.createRegistrySelector)((e=>(t,s,o)=>{const{type:n,id:i}=ne(t),r=e(b.store).getEntityRecordNonTransientEdits("postType",s||n,o||i);if(!r?.meta)return!1;const a=e(b.store).getEntityRecord("postType",s||n,o||i)?.meta;return!Wo()({...a,footnotes:void 0},{...r.meta,footnotes:void 0})})),ln={reducer:v,selectors:e,actions:t},cn=(0,d.createReduxStore)("core/editor",{...ln});(0,d.register)(cn),h(cn).registerPrivateActions(n),h(cn).registerPrivateSelectors(i);const dn={name:"core/post-meta",label:(0,m._x)("Post Meta","block bindings source"),getPlaceholder:({args:e})=>e.key,getValue:({registry:e,context:t,args:s})=>e.select(b.store).getEditedEntityRecord("postType",t?.postType,t?.postId).meta?.[s.key],setValue({registry:e,context:t,args:s,value:o}){e.dispatch(b.store).editEntityRecord("postType",t?.postType,t?.postId,{meta:{[s.key]:o}})},canUserEditValue({select:e,context:t,args:s}){if(t?.query||t?.queryId)return!1;const o=t?.postType||e(cn).getCurrentPostType();if("wp_template"===o)return!1;if(!!!e(b.store).getEntityRecord("postType",o,t?.postId)?.meta?.[s.key])return!1;return!!e(b.store).canUserEditEntityRecord("postType",t?.postType,t?.postId)}},{registerBlockBindingsSource:un}=h((0,d.dispatch)(c.store));un(dn),un(f);const pn=window.wp.compose;function hn(e){const t=e.avatar_urls&&e.avatar_urls[24]?(0,T.jsx)("img",{className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}):(0,T.jsx)("span",{className:"editor-autocompleters__no-avatar"});return(0,T.jsxs)(T.Fragment,{children:[t,(0,T.jsx)("span",{className:"editor-autocompleters__user-name",children:e.name}),(0,T.jsx)("span",{className:"editor-autocompleters__user-slug",children:e.slug})]})}(0,bs.addFilter)("blocks.registerBlockType","core/editor/custom-sources-backwards-compatibility/shim-attribute-source",(function(e){var t;const s=Object.fromEntries(Object.entries(null!==(t=e.attributes)&&void 0!==t?t:{}).filter((([,{source:e}])=>"meta"===e)).map((([e,{meta:t}])=>[e,t])));return Object.entries(s).length&&(e.edit=(e=>(0,pn.createHigherOrderComponent)((t=>({attributes:s,setAttributes:o,...n})=>{const i=(0,d.useSelect)((e=>e(cn).getCurrentPostType()),[]),[r,a]=(0,b.useEntityProp)("postType",i,"meta"),l=(0,C.useMemo)((()=>({...s,...Object.fromEntries(Object.entries(e).map((([e,t])=>[e,r[t]])))})),[s,r]);return(0,T.jsx)(t,{attributes:l,setAttributes:t=>{const s=Object.fromEntries(Object.entries(null!=t?t:{}).filter((([t])=>t in e)).map((([t,s])=>[e[t],s])));Object.entries(s).length&&a(s),o(t)},...n})}),"withMetaAttributeSource"))(s)(e.edit)),e}));const mn={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",useItems(e){const t=(0,d.useSelect)((t=>{const{getUsers:s}=t(b.store);return s({context:"view",search:encodeURIComponent(e)})}),[e]),s=(0,C.useMemo)((()=>t?t.map((e=>({key:`user-${e.slug}`,value:e,label:hn(e)}))):[]),[t]);return[s]},getOptionCompletion:e=>`@${e.slug}`};(0,bs.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",(function(e=[]){return e.push({...mn}),e}));const gn=window.wp.mediaUtils;(0,bs.addFilter)("editor.MediaUpload","core/editor/components/media-upload",(()=>gn.MediaUpload));const _n=window.wp.patterns,{PatternOverridesControls:fn,ResetOverridesControl:bn,PatternOverridesBlockControls:yn,PATTERN_TYPES:xn,PARTIAL_SYNCING_SUPPORTED_BLOCKS:vn,PATTERN_SYNC_TYPES:wn}=h(_n.privateApis),Sn=(0,pn.createHigherOrderComponent)((e=>t=>{const s=!!vn[t.name];return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(e,{...t}),t.isSelected&&s&&(0,T.jsx)(kn,{...t}),s&&(0,T.jsx)(yn,{})]})}),"withPatternOverrideControls");function kn(e){const t=(0,g.useBlockEditingMode)(),{hasPatternOverridesSource:s,isEditingSyncedPattern:o}=(0,d.useSelect)((e=>{const{getBlockBindingsSource:t}=h(e(c.store)),{getCurrentPostType:s,getEditedPostAttribute:o}=e(cn);return{hasPatternOverridesSource:!!t("core/pattern-overrides"),isEditingSyncedPattern:s()===xn.user&&o("meta")?.wp_pattern_sync_status!==wn.unsynced&&o("wp_pattern_sync_status")!==wn.unsynced}}),[]),n=e.attributes.metadata?.bindings,i=!!n&&Object.values(n).some((e=>"core/pattern-overrides"===e.source)),r=o&&"default"===t,a=!o&&!!e.attributes.metadata?.name&&"disabled"!==t&&i;return s?(0,T.jsxs)(T.Fragment,{children:[r&&(0,T.jsx)(fn,{...e}),a&&(0,T.jsx)(bn,{...e})]}):null}(0,bs.addFilter)("editor.BlockEdit","core/editor/with-pattern-override-controls",Sn);const Pn=window.wp.keyboardShortcuts;function Cn(e){var t,s,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(s=Cn(e[t]))&&(o&&(o+=" "),o+=s)}else for(s in e)e[s]&&(o&&(o+=" "),o+=s);return o}const jn=function(){for(var e,t,s=0,o="",n=arguments.length;s<n;s++)(e=arguments[s])&&(t=Cn(e))&&(o&&(o+=" "),o+=t);return o},Tn=window.wp.components,En=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})}),Bn=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.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"})}),In=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.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"})}),Nn=window.wp.viewport,An=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})});function Dn(e){return["core/edit-post","core/edit-site"].includes(e)?(P()(`${e} interface scope`,{alternative:"core interface scope",hint:"core/edit-post and core/edit-site are merging.",version:"6.6"}),"core"):e}function Rn(e,t){return"core"===e&&"edit-site/template"===t?(P()("edit-site/template sidebar",{alternative:"edit-post/document",version:"6.6"}),"edit-post/document"):"core"===e&&"edit-site/block-inspector"===t?(P()("edit-site/block-inspector sidebar",{alternative:"edit-post/block",version:"6.6"}),"edit-post/block"):t}const Mn=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e=Dn(e),area:t=Rn(e,t)}),On=(e,t)=>({registry:s,dispatch:o})=>{if(!t)return;e=Dn(e),t=Rn(e,t);s.select(B.store).get(e,"isComplementaryAreaVisible")||s.dispatch(B.store).set(e,"isComplementaryAreaVisible",!0),o({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},Ln=e=>({registry:t})=>{e=Dn(e);t.select(B.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(B.store).set(e,"isComplementaryAreaVisible",!1)},Fn=(e,t)=>({registry:s})=>{if(!t)return;e=Dn(e),t=Rn(e,t);const o=s.select(B.store).get(e,"pinnedItems");!0!==o?.[t]&&s.dispatch(B.store).set(e,"pinnedItems",{...o,[t]:!0})},Vn=(e,t)=>({registry:s})=>{if(!t)return;e=Dn(e),t=Rn(e,t);const o=s.select(B.store).get(e,"pinnedItems");s.dispatch(B.store).set(e,"pinnedItems",{...o,[t]:!1})};function Un(e,t){return function({registry:s}){P()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),s.dispatch(B.store).toggle(e,t)}}function zn(e,t,s){return function({registry:o}){P()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),o.dispatch(B.store).set(e,t,!!s)}}function Hn(e,t){return function({registry:s}){P()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),s.dispatch(B.store).setDefaults(e,t)}}function Gn(e){return{type:"OPEN_MODAL",name:e}}function $n(){return{type:"CLOSE_MODAL"}}const Wn=(0,d.createRegistrySelector)((e=>(t,s)=>{s=Dn(s);const o=e(B.store).get(s,"isComplementaryAreaVisible");if(void 0!==o)return!1===o?null:t?.complementaryAreas?.[s]})),Kn=(0,d.createRegistrySelector)((e=>(t,s)=>{s=Dn(s);const o=e(B.store).get(s,"isComplementaryAreaVisible"),n=t?.complementaryAreas?.[s];return o&&void 0===n})),Zn=(0,d.createRegistrySelector)((e=>(t,s,o)=>{var n;o=Rn(s=Dn(s),o);const i=e(B.store).get(s,"pinnedItems");return null===(n=i?.[o])||void 0===n||n})),Yn=(0,d.createRegistrySelector)((e=>(t,s,o)=>(P()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(B.store).get(s,o))));function qn(e,t){return e.activeModal===t}const Qn=(0,d.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:s,area:o}=t;return e[s]?e:{...e,[s]:o}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:s,area:o}=t;return{...e,[s]:o}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}}),Xn=(0,d.createReduxStore)("core/interface",{reducer:Qn,actions:r,selectors:a});(0,d.register)(Xn);const Jn=window.wp.plugins,ei=(0,Jn.withPluginContext)(((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`})));const ti=ei((function({as:e=Tn.Button,scope:t,identifier:s,icon:o,selectedIcon:n,name:i,...r}){const a=e,l=(0,d.useSelect)((e=>e(Xn).getActiveComplementaryArea(t)===s),[s,t]),{enableComplementaryArea:c,disableComplementaryArea:u}=(0,d.useDispatch)(Xn);return(0,T.jsx)(a,{icon:n&&l?n:o,"aria-controls":s.replace("/",":"),onClick:()=>{l?u(t):c(t,s)},...r})})),si=({smallScreenTitle:e,children:t,className:s,toggleButtonProps:o})=>{const n=(0,T.jsx)(ti,{icon:An,...o});return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)("div",{className:"components-panel__header interface-complementary-area-header__small",children:[e&&(0,T.jsx)("h2",{className:"interface-complementary-area-header__small-title",children:e}),n]}),(0,T.jsxs)("div",{className:jn("components-panel__header","interface-complementary-area-header",s),tabIndex:-1,children:[t,n]})]})},oi=()=>{};function ni({name:e,as:t=Tn.Button,onClick:s,...o}){return(0,T.jsx)(Tn.Fill,{name:e,children:({onClick:e})=>(0,T.jsx)(t,{onClick:s||e?(...t)=>{(s||oi)(...t),(e||oi)(...t)}:void 0,...o})})}ni.Slot=function({name:e,as:t=Tn.ButtonGroup,fillProps:s={},bubblesVirtually:o,...n}){return(0,T.jsx)(Tn.Slot,{name:e,bubblesVirtually:o,fillProps:s,children:e=>{if(!C.Children.toArray(e).length)return null;const s=[];C.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&s.push(t)}));const o=C.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&s.includes(e.props.__unstableTarget)?null:e));return(0,T.jsx)(t,{...n,children:o})}})};const ii=ni,ri=({__unstableExplicitMenuItem:e,__unstableTarget:t,...s})=>(0,T.jsx)(Tn.MenuItem,{...s});function ai({scope:e,target:t,__unstableExplicitMenuItem:s,...o}){return(0,T.jsx)(ti,{as:o=>(0,T.jsx)(ii,{__unstableExplicitMenuItem:s,__unstableTarget:`${e}/${t}`,as:ri,name:`${e}/plugin-more-menu`,...o}),role:"menuitemcheckbox",selectedIcon:En,name:t,scope:e,...o})}function li({scope:e,...t}){return(0,T.jsx)(Tn.Fill,{name:`PinnedItems/${e}`,...t})}li.Slot=function({scope:e,className:t,...s}){return(0,T.jsx)(Tn.Slot,{name:`PinnedItems/${e}`,...s,children:e=>e?.length>0&&(0,T.jsx)("div",{className:jn(t,"interface-pinned-items"),children:e})})};const ci=li,di=.3;const ui=280,pi={open:{width:ui},closed:{width:0},mobileOpen:{width:"100vw"}};function hi({activeArea:e,isActive:t,scope:s,children:o,className:n,id:i}){const r=(0,pn.useReducedMotion)(),a=(0,pn.useViewportMatch)("medium","<"),l=(0,pn.usePrevious)(e),c=(0,pn.usePrevious)(t),[,d]=(0,C.useState)({});(0,C.useEffect)((()=>{d({})}),[t]);const u={type:"tween",duration:r||a||l&&e&&e!==l?0:di,ease:[.6,0,.4,1]};return(0,T.jsx)(Tn.Fill,{name:`ComplementaryArea/${s}`,children:(0,T.jsx)(Tn.__unstableAnimatePresence,{initial:!1,children:(c||t)&&(0,T.jsx)(Tn.__unstableMotion.div,{variants:pi,initial:"closed",animate:a?"mobileOpen":"open",exit:"closed",transition:u,className:"interface-complementary-area__fill",children:(0,T.jsx)("div",{id:i,className:n,style:{width:a?"100vw":ui},children:o})})})})}const mi=ei((function({children:e,className:t,closeLabel:s=(0,m.__)("Close plugin"),identifier:o,header:n,headerClassName:i,icon:r,isPinnable:a=!0,panelClassName:l,scope:c,name:u,smallScreenTitle:p,title:h,toggleShortcut:g,isActiveByDefault:_}){const[f,b]=(0,C.useState)(!1),{isLoading:y,isActive:x,isPinned:v,activeArea:w,isSmall:S,isLarge:k,showIconLabels:P}=(0,d.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:s,isItemPinned:n}=e(Xn),{get:i}=e(B.store),r=t(c);return{isLoading:s(c),isActive:r===o,isPinned:n(c,o),activeArea:r,isSmall:e(Nn.store).isViewportMatch("< medium"),isLarge:e(Nn.store).isViewportMatch("large"),showIconLabels:i("core","showIconLabels")}}),[o,c]);!function(e,t,s,o,n){const i=(0,C.useRef)(!1),r=(0,C.useRef)(!1),{enableComplementaryArea:a,disableComplementaryArea:l}=(0,d.useDispatch)(Xn);(0,C.useEffect)((()=>{o&&n&&!i.current?(l(e),r.current=!0):r.current&&!n&&i.current?(r.current=!1,a(e,t)):r.current&&s&&s!==t&&(r.current=!1),n!==i.current&&(i.current=n)}),[o,n,e,t,s,l,a])}(c,o,w,x,S);const{enableComplementaryArea:j,disableComplementaryArea:E,pinItem:I,unpinItem:N}=(0,d.useDispatch)(Xn);if((0,C.useEffect)((()=>{_&&void 0===w&&!S?j(c,o):void 0===w&&S&&E(c,o),b(!0)}),[w,_,c,o,S,j,E]),f)return(0,T.jsxs)(T.Fragment,{children:[a&&(0,T.jsx)(ci,{scope:c,children:v&&(0,T.jsx)(ti,{scope:c,identifier:o,isPressed:x&&(!P||k),"aria-expanded":x,"aria-disabled":y,label:h,icon:P?En:r,showTooltip:!P,variant:P?"tertiary":void 0,size:"compact"})}),u&&a&&(0,T.jsx)(ai,{target:u,scope:c,icon:r,children:h}),(0,T.jsxs)(hi,{activeArea:w,isActive:x,className:jn("interface-complementary-area",t),scope:c,id:o.replace("/",":"),children:[(0,T.jsx)(si,{className:i,closeLabel:s,onClose:()=>E(c),smallScreenTitle:p,toggleButtonProps:{label:s,size:"small",shortcut:g,scope:c,identifier:o},children:n||(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("h2",{className:"interface-complementary-area-header__title",children:h}),a&&(0,T.jsx)(Tn.Button,{className:"interface-complementary-area__pin-unpin-item",icon:v?Bn:In,label:v?(0,m.__)("Unpin from toolbar"):(0,m.__)("Pin to toolbar"),onClick:()=>(v?N:I)(c,o),isPressed:v,"aria-expanded":v,size:"compact"})]})}),(0,T.jsx)(Tn.Panel,{className:l,children:e})]})]})}));mi.Slot=function({scope:e,...t}){return(0,T.jsx)(Tn.Slot,{name:`ComplementaryArea/${e}`,...t})};const gi=mi,_i=({isActive:e})=>((0,C.useEffect)((()=>{let e=!1;return document.body.classList.contains("sticky-menu")&&(e=!0,document.body.classList.remove("sticky-menu")),()=>{e&&document.body.classList.add("sticky-menu")}}),[]),(0,C.useEffect)((()=>(e?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{e&&document.body.classList.remove("is-fullscreen-mode")})),[e]),null);function fi({children:e,className:t,ariaLabel:s,as:o="div",...n}){return(0,T.jsx)(o,{className:jn("interface-navigable-region",t),"aria-label":s,role:"region",tabIndex:"-1",...n,children:e})}const bi={type:"tween",duration:.25,ease:[.6,0,.4,1]};const yi={hidden:{opacity:1,marginTop:-60},visible:{opacity:1,marginTop:0},distractionFreeHover:{opacity:1,marginTop:0,transition:{...bi,delay:.2,delayChildren:.2}},distractionFreeHidden:{opacity:0,marginTop:-60},distractionFreeDisabled:{opacity:0,marginTop:0,transition:{...bi,delay:.8,delayChildren:.8}}};const xi=(0,C.forwardRef)((function({isDistractionFree:e,footer:t,header:s,editorNotices:o,sidebar:n,secondarySidebar:i,content:r,actions:a,labels:l,className:c,enableRegionNavigation:d=!0,shortcuts:u},p){const[h,g]=(0,pn.useResizeObserver)(),_=(0,pn.useViewportMatch)("medium","<"),f={type:"tween",duration:(0,pn.useReducedMotion)()?0:.25,ease:[.6,0,.4,1]},b=(0,Tn.__unstableUseNavigateRegions)(u);!function(e){(0,C.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("interface-interface-skeleton__html-container");const y={...{header:(0,m._x)("Header","header landmark area"),body:(0,m.__)("Content"),secondarySidebar:(0,m.__)("Block Library"),sidebar:(0,m.__)("Settings"),actions:(0,m.__)("Publish"),footer:(0,m.__)("Footer")},...l};return(0,T.jsxs)("div",{...d?b:{},ref:(0,pn.useMergeRefs)([p,d?b.ref:void 0]),className:jn(c,"interface-interface-skeleton",b.className,!!t&&"has-footer"),children:[(0,T.jsxs)("div",{className:"interface-interface-skeleton__editor",children:[(0,T.jsx)(Tn.__unstableAnimatePresence,{initial:!1,children:!!s&&(0,T.jsx)(fi,{as:Tn.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":y.header,initial:e?"distractionFreeHidden":"hidden",whileHover:e?"distractionFreeHover":"visible",animate:e?"distractionFreeDisabled":"visible",exit:e?"distractionFreeHidden":"hidden",variants:yi,transition:f,children:s})}),e&&(0,T.jsx)("div",{className:"interface-interface-skeleton__header",children:o}),(0,T.jsxs)("div",{className:"interface-interface-skeleton__body",children:[(0,T.jsx)(Tn.__unstableAnimatePresence,{initial:!1,children:!!i&&(0,T.jsx)(fi,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:y.secondarySidebar,as:Tn.__unstableMotion.div,initial:"closed",animate:_?"mobileOpen":"open",exit:"closed",variants:{open:{width:g.width},closed:{width:0},mobileOpen:{width:"100vw"}},transition:f,children:(0,T.jsxs)("div",{style:{position:"absolute",width:_?"100vw":"fit-content",height:"100%",right:0},children:[h,i]})})}),(0,T.jsx)(fi,{className:"interface-interface-skeleton__content",ariaLabel:y.body,children:r}),!!n&&(0,T.jsx)(fi,{className:"interface-interface-skeleton__sidebar",ariaLabel:y.sidebar,children:n}),!!a&&(0,T.jsx)(fi,{className:"interface-interface-skeleton__actions",ariaLabel:y.actions,children:a})]})]}),!!t&&(0,T.jsx)(fi,{className:"interface-interface-skeleton__footer",ariaLabel:y.footer,children:t})]})}));function vi(){const e=(0,d.useSelect)((e=>{const{richEditingEnabled:t,codeEditingEnabled:s}=e(cn).getEditorSettings();return!t||!s}),[]),{getBlockSelectionStart:t}=(0,d.useSelect)(g.store),{getActiveComplementaryArea:s}=(0,d.useSelect)(Xn),{enableComplementaryArea:o,disableComplementaryArea:n}=(0,d.useDispatch)(Xn),{redo:i,undo:r,savePost:a,setIsListViewOpened:l,switchEditorMode:c,toggleDistractionFree:u}=(0,d.useDispatch)(cn),{isEditedPostDirty:p,isPostSavingLocked:h,isListViewOpened:m,getEditorMode:_}=(0,d.useSelect)(cn);return(0,Pn.useShortcut)("core/editor/toggle-mode",(()=>{c("visual"===_()?"text":"visual")}),{isDisabled:e}),(0,Pn.useShortcut)("core/editor/toggle-distraction-free",(()=>{u()})),(0,Pn.useShortcut)("core/editor/undo",(e=>{r(),e.preventDefault()})),(0,Pn.useShortcut)("core/editor/redo",(e=>{i(),e.preventDefault()})),(0,Pn.useShortcut)("core/editor/save",(e=>{e.preventDefault(),h()||p()&&a()})),(0,Pn.useShortcut)("core/editor/toggle-list-view",(e=>{m()||(e.preventDefault(),l(!0))})),(0,Pn.useShortcut)("core/editor/toggle-sidebar",(e=>{e.preventDefault();if(["edit-post/document","edit-post/block"].includes(s("core")))n("core");else{const e=t()?"edit-post/block":"edit-post/document";o("core",e)}})),null}class wi extends C.Component{constructor(e){super(e),this.needsAutosave=!(!e.isDirty||!e.isAutosaveable)}componentDidMount(){this.props.disableIntervalChecks||this.setAutosaveTimer()}componentDidUpdate(e){this.props.disableIntervalChecks?this.props.editsReference!==e.editsReference&&this.props.autosave():(this.props.interval!==e.interval&&(clearTimeout(this.timerId),this.setAutosaveTimer()),this.props.isDirty&&(!this.props.isAutosaving||e.isAutosaving)?this.props.editsReference!==e.editsReference&&(this.needsAutosave=!0):this.needsAutosave=!1)}componentWillUnmount(){clearTimeout(this.timerId)}setAutosaveTimer(e=1e3*this.props.interval){this.timerId=setTimeout((()=>{this.autosaveTimerHandler()}),e)}autosaveTimerHandler(){this.props.isAutosaveable?(this.needsAutosave&&(this.needsAutosave=!1,this.props.autosave()),this.setAutosaveTimer()):this.setAutosaveTimer(1e3)}render(){return null}}const Si=(0,pn.compose)([(0,d.withSelect)(((e,t)=>{const{getReferenceByDistinctEdits:s}=e(b.store),{isEditedPostDirty:o,isEditedPostAutosaveable:n,isAutosavingPost:i,getEditorSettings:r}=e(cn),{interval:a=r().autosaveInterval}=t;return{editsReference:s(),isDirty:o(),isAutosaveable:n(),isAutosaving:i(),interval:a}})),(0,d.withDispatch)(((e,t)=>({autosave(){const{autosave:s=e(cn).autosave}=t;s()}})))])(wi),ki=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})}),Pi=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})}),Ci=window.wp.keycodes,ji=window.wp.commands,Ti={wp_pattern:(0,m.__)("Editing pattern: %s"),wp_navigation:(0,m.__)("Editing navigation menu: %s"),wp_template:(0,m.__)("Editing template: %s"),wp_template_part:(0,m.__)("Editing template part: %s")},Ei=(0,Tn.__unstableMotion)(Tn.Button);function Bi(){const{postType:e,documentTitle:t,isNotFound:s,isUnsyncedPattern:o,templateIcon:n,templateTitle:i,onNavigateToPreviousEntityRecord:r}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s,getEditorSettings:o,__experimentalGetTemplateInfo:n}=e(cn),{getEditedEntityRecord:i,isResolving:r}=e(b.store),a=t(),l=s(),c=i("postType",a,l),d=n(c);return{postType:a,documentTitle:c.title,isNotFound:!c&&!r("getEditedEntityRecord","postType",a,l),isUnsyncedPattern:"unsynced"===c?.wp_pattern_sync_status,templateIcon:h(e(cn)).getPostIcon(a,{area:c?.area}),templateTitle:d.title,onNavigateToPreviousEntityRecord:o().onNavigateToPreviousEntityRecord}}),[]),{open:a}=(0,d.useDispatch)(ji.store),l=(0,pn.useReducedMotion)(),c=H.includes(e),u=G.includes(e),p=!!r,_=c?i:t,f=(0,C.useRef)(!1);return(0,C.useEffect)((()=>{f.current=!0}),[]),(0,T.jsxs)("div",{className:jn("editor-document-bar",{"has-back-button":p,"is-global":u&&!o}),children:[(0,T.jsx)(Tn.__unstableAnimatePresence,{children:p&&(0,T.jsx)(Ei,{className:"editor-document-bar__back",icon:(0,m.isRTL)()?ki:Pi,onClick:e=>{e.stopPropagation(),r()},size:"compact",initial:!!f.current&&{opacity:0,transform:"translateX(15%)"},animate:{opacity:1,transform:"translateX(0%)"},exit:{opacity:0,transform:"translateX(15%)"},transition:l?{duration:0}:void 0,children:(0,m.__)("Back")})}),s?(0,T.jsx)(Tn.__experimentalText,{children:(0,m.__)("Document not found")}):(0,T.jsxs)(Tn.Button,{className:"editor-document-bar__command",onClick:()=>a(),size:"compact",children:[(0,T.jsxs)(Tn.__unstableMotion.div,{className:"editor-document-bar__title",initial:!!f.current&&{opacity:0,transform:p?"translateX(15%)":"translateX(-15%)"},animate:{opacity:1,transform:"translateX(0%)"},transition:l?{duration:0}:void 0,children:[(0,T.jsx)(g.BlockIcon,{icon:n}),(0,T.jsx)(Tn.__experimentalText,{size:"body",as:"h1","aria-label":Ti[e]?(0,m.sprintf)(Ti[e],_):void 0,children:_?(0,Mo.decodeEntities)(_):(0,m.__)("No Title")})]},p),(0,T.jsx)("span",{className:"editor-document-bar__shortcut",children:Ci.displayShortcut.primary("k")})]})]})}const Ii=window.wp.richText,Ni=({children:e,isValid:t,level:s,href:o,onSelect:n})=>(0,T.jsx)("li",{className:jn("document-outline__item",`is-${s.toLowerCase()}`,{"is-invalid":!t}),children:(0,T.jsxs)("a",{href:o,className:"document-outline__button",onClick:n,children:[(0,T.jsx)("span",{className:"document-outline__emdash","aria-hidden":"true"}),(0,T.jsx)("strong",{className:"document-outline__level",children:s}),(0,T.jsx)("span",{className:"document-outline__item-content",children:e})]})}),Ai=(0,T.jsx)("em",{children:(0,m.__)("(Empty heading)")}),Di=[(0,T.jsx)("br",{},"incorrect-break"),(0,T.jsx)("em",{children:(0,m.__)("(Incorrect heading level)")},"incorrect-message")],Ri=[(0,T.jsx)("br",{},"incorrect-break-h1"),(0,T.jsx)("em",{children:(0,m.__)("(Your theme may already use a H1 for the post title)")},"incorrect-message-h1")],Mi=[(0,T.jsx)("br",{},"incorrect-break-multiple-h1"),(0,T.jsx)("em",{children:(0,m.__)("(Multiple H1 headings are not recommended)")},"incorrect-message-multiple-h1")];function Oi(){return(0,T.jsxs)(Tn.SVG,{width:"138",height:"148",viewBox:"0 0 138 148",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,T.jsx)(Tn.Rect,{width:"138",height:"148",rx:"4",fill:"#F0F6FC"}),(0,T.jsx)(Tn.Line,{x1:"44",y1:"28",x2:"24",y2:"28",stroke:"#DDDDDD"}),(0,T.jsx)(Tn.Rect,{x:"48",y:"16",width:"27",height:"23",rx:"4",fill:"#DDDDDD"}),(0,T.jsx)(Tn.Path,{d:"M54.7585 32V23.2727H56.6037V26.8736H60.3494V23.2727H62.1903V32H60.3494V28.3949H56.6037V32H54.7585ZM67.4574 23.2727V32H65.6122V25.0241H65.5611L63.5625 26.277V24.6406L65.723 23.2727H67.4574Z",fill:"black"}),(0,T.jsx)(Tn.Line,{x1:"55",y1:"59",x2:"24",y2:"59",stroke:"#DDDDDD"}),(0,T.jsx)(Tn.Rect,{x:"59",y:"47",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),(0,T.jsx)(Tn.Path,{d:"M65.7585 63V54.2727H67.6037V57.8736H71.3494V54.2727H73.1903V63H71.3494V59.3949H67.6037V63H65.7585ZM74.6605 63V61.6705L77.767 58.794C78.0313 58.5384 78.2528 58.3082 78.4318 58.1037C78.6136 57.8991 78.7514 57.6989 78.8452 57.5028C78.9389 57.304 78.9858 57.0895 78.9858 56.8594C78.9858 56.6037 78.9276 56.3835 78.8111 56.1989C78.6946 56.0114 78.5355 55.8679 78.3338 55.7685C78.1321 55.6662 77.9034 55.6151 77.6477 55.6151C77.3807 55.6151 77.1477 55.669 76.9489 55.777C76.75 55.8849 76.5966 56.0398 76.4886 56.2415C76.3807 56.4432 76.3267 56.6832 76.3267 56.9616H74.5753C74.5753 56.3906 74.7045 55.8949 74.9631 55.4744C75.2216 55.054 75.5838 54.7287 76.0497 54.4986C76.5156 54.2685 77.0526 54.1534 77.6605 54.1534C78.2855 54.1534 78.8295 54.2642 79.2926 54.4858C79.7585 54.7045 80.1207 55.0085 80.3793 55.3977C80.6378 55.7869 80.767 56.233 80.767 56.7358C80.767 57.0653 80.7017 57.3906 80.571 57.7116C80.4432 58.0327 80.2145 58.3892 79.8849 58.7812C79.5554 59.1705 79.0909 59.6378 78.4915 60.1832L77.2173 61.4318V61.4915H80.8821V63H74.6605Z",fill:"black"}),(0,T.jsx)(Tn.Line,{x1:"80",y1:"90",x2:"24",y2:"90",stroke:"#DDDDDD"}),(0,T.jsx)(Tn.Rect,{x:"84",y:"78",width:"30",height:"23",rx:"4",fill:"#F0B849"}),(0,T.jsx)(Tn.Path,{d:"M90.7585 94V85.2727H92.6037V88.8736H96.3494V85.2727H98.1903V94H96.3494V90.3949H92.6037V94H90.7585ZM99.5284 92.4659V91.0128L103.172 85.2727H104.425V87.2841H103.683L101.386 90.919V90.9872H106.564V92.4659H99.5284ZM103.717 94V92.0227L103.751 91.3793V85.2727H105.482V94H103.717Z",fill:"black"}),(0,T.jsx)(Tn.Line,{x1:"66",y1:"121",x2:"24",y2:"121",stroke:"#DDDDDD"}),(0,T.jsx)(Tn.Rect,{x:"70",y:"109",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),(0,T.jsx)(Tn.Path,{d:"M76.7585 125V116.273H78.6037V119.874H82.3494V116.273H84.1903V125H82.3494V121.395H78.6037V125H76.7585ZM88.8864 125.119C88.25 125.119 87.6832 125.01 87.1861 124.791C86.6918 124.57 86.3011 124.266 86.0142 123.879C85.7301 123.49 85.5838 123.041 85.5753 122.533H87.4332C87.4446 122.746 87.5142 122.933 87.642 123.095C87.7727 123.254 87.946 123.378 88.1619 123.466C88.3778 123.554 88.6207 123.598 88.8906 123.598C89.1719 123.598 89.4205 123.548 89.6364 123.449C89.8523 123.349 90.0213 123.212 90.1435 123.036C90.2656 122.859 90.3267 122.656 90.3267 122.426C90.3267 122.193 90.2614 121.987 90.1307 121.808C90.0028 121.626 89.8182 121.484 89.5767 121.382C89.3381 121.28 89.054 121.229 88.7244 121.229H87.9105V119.874H88.7244C89.0028 119.874 89.2486 119.825 89.4616 119.729C89.6776 119.632 89.8452 119.499 89.9645 119.328C90.0838 119.155 90.1435 118.953 90.1435 118.723C90.1435 118.504 90.0909 118.312 89.9858 118.148C89.8835 117.98 89.7386 117.849 89.5511 117.756C89.3665 117.662 89.1506 117.615 88.9034 117.615C88.6534 117.615 88.4247 117.661 88.2173 117.751C88.0099 117.839 87.8438 117.966 87.7188 118.131C87.5938 118.295 87.527 118.489 87.5185 118.71H85.75C85.7585 118.207 85.902 117.764 86.1804 117.381C86.4588 116.997 86.8338 116.697 87.3054 116.482C87.7798 116.263 88.3153 116.153 88.9119 116.153C89.5142 116.153 90.0412 116.263 90.4929 116.482C90.9446 116.7 91.2955 116.996 91.5455 117.368C91.7983 117.737 91.9233 118.152 91.9205 118.612C91.9233 119.101 91.7713 119.509 91.4645 119.835C91.1605 120.162 90.7642 120.369 90.2756 120.457V120.526C90.9176 120.608 91.4063 120.831 91.7415 121.195C92.0795 121.555 92.2472 122.007 92.2443 122.55C92.2472 123.047 92.1037 123.489 91.8139 123.875C91.527 124.261 91.1307 124.565 90.625 124.787C90.1193 125.009 89.5398 125.119 88.8864 125.119Z",fill:"black"})]})}const Li=(e=[])=>e.flatMap(((e={})=>"core/heading"===e.name?{...e,level:e.attributes.level,isEmpty:Fi(e)}:Li(e.innerBlocks))),Fi=e=>!e.attributes.content||0===e.attributes.content.trim().length;function Vi({onSelect:e,isTitleSupported:t,hasOutlineItemsDisabled:s}){const{selectBlock:o}=(0,d.useDispatch)(g.store),{blocks:n,title:i}=(0,d.useSelect)((e=>{var t;const{getBlocks:s}=e(g.store),{getEditedPostAttribute:o}=e(cn),{getPostType:n}=e(b.store),i=n(o("type"));return{title:o("title"),blocks:s(),isTitleSupported:null!==(t=i?.supports?.title)&&void 0!==t&&t}})),r=Li(n);if(r.length<1)return(0,T.jsxs)("div",{className:"editor-document-outline has-no-headings",children:[(0,T.jsx)(Oi,{}),(0,T.jsx)("p",{children:(0,m.__)("Navigate the structure of your document and address issues like empty or incorrect heading levels.")})]});let a=1;const l=document.querySelector(".editor-post-title__input"),c=t&&i&&l,u=r.reduce(((e,t)=>({...e,[t.level]:(e[t.level]||0)+1})),{})[1]>1;return(0,T.jsx)("div",{className:"document-outline",children:(0,T.jsxs)("ul",{children:[c&&(0,T.jsx)(Ni,{level:(0,m.__)("Title"),isValid:!0,onSelect:e,href:`#${l.id}`,isDisabled:s,children:i}),r.map(((t,n)=>{const i=t.level>a+1,r=!(t.isEmpty||i||!t.level||1===t.level&&(u||c));return a=t.level,(0,T.jsxs)(Ni,{level:`H${t.level}`,isValid:r,isDisabled:s,href:`#block-${t.clientId}`,onSelect:()=>{o(t.clientId),e?.()},children:[t.isEmpty?Ai:(0,Ii.getTextContent)((0,Ii.create)({html:t.attributes.content})),i&&Di,1===t.level&&u&&Mi,c&&1===t.level&&!u&&Ri]},n)}))]})})}function Ui({children:e}){const t=(0,d.useSelect)((e=>{const{getGlobalBlockCount:t}=e(g.store);return t("core/heading")>0}));return t?null:e}const zi=function(){const{registerShortcut:e}=(0,d.useDispatch)(Pn.store);return(0,C.useEffect)((()=>{e({name:"core/editor/toggle-mode",category:"global",description:(0,m.__)("Switch between visual editor and code editor."),keyCombination:{modifier:"secondary",character:"m"}}),e({name:"core/editor/save",category:"global",description:(0,m.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/editor/undo",category:"global",description:(0,m.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/editor/redo",category:"global",description:(0,m.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,Ci.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/editor/toggle-list-view",category:"global",description:(0,m.__)("Open the List View."),keyCombination:{modifier:"access",character:"o"}}),e({name:"core/editor/toggle-distraction-free",category:"global",description:(0,m.__)("Toggle distraction free mode."),keyCombination:{modifier:"primaryShift",character:"\\"}}),e({name:"core/editor/toggle-sidebar",category:"global",description:(0,m.__)("Show or hide the Settings sidebar."),keyCombination:{modifier:"primaryShift",character:","}}),e({name:"core/editor/keyboard-shortcuts",category:"main",description:(0,m.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),e({name:"core/editor/next-region",category:"global",description:(0,m.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/editor/previous-region",category:"global",description:(0,m.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]})}),[e]),(0,T.jsx)(g.BlockEditorKeyboardShortcuts.Register,{})},Hi=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"})}),Gi=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"})});const $i=(0,C.forwardRef)((function(e,t){const s=(0,Ci.isAppleOS)()?Ci.displayShortcut.primaryShift("z"):Ci.displayShortcut.primary("y"),o=(0,d.useSelect)((e=>e(cn).hasEditorRedo()),[]),{redo:n}=(0,d.useDispatch)(cn);return(0,T.jsx)(Tn.Button,{...e,ref:t,icon:(0,m.isRTL)()?Gi:Hi,label:(0,m.__)("Redo"),shortcut:s,"aria-disabled":!o,onClick:o?n:void 0,className:"editor-history__redo"})}));const Wi=(0,C.forwardRef)((function(e,t){const s=(0,d.useSelect)((e=>e(cn).hasEditorUndo()),[]),{undo:o}=(0,d.useDispatch)(cn);return(0,T.jsx)(Tn.Button,{...e,ref:t,icon:(0,m.isRTL)()?Hi:Gi,label:(0,m.__)("Undo"),shortcut:Ci.displayShortcut.primary("z"),"aria-disabled":!s,onClick:s?o:void 0,className:"editor-history__undo"})}));function Ki(){const[e,t]=(0,C.useState)(!1),s=(0,d.useSelect)((e=>e(g.store).isValidTemplate()),[]),{setTemplateValidity:o,synchronizeTemplate:n}=(0,d.useDispatch)(g.store);return s?null:(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Tn.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning",actions:[{label:(0,m.__)("Keep it as is"),onClick:()=>o(!0)},{label:(0,m.__)("Reset the template"),onClick:()=>t(!0)}],children:(0,m.__)("The content of your post doesn’t match the template assigned to your post type.")}),(0,T.jsx)(Tn.__experimentalConfirmDialog,{isOpen:e,confirmButtonText:(0,m.__)("Reset"),onConfirm:()=>{t(!1),n()},onCancel:()=>t(!1),size:"medium",children:(0,m.__)("Resetting the template may result in loss of content, do you want to continue?")})]})}const Zi=function(){const{notices:e}=(0,d.useSelect)((e=>({notices:e(fs.store).getNotices()})),[]),{removeNotice:t}=(0,d.useDispatch)(fs.store),s=e.filter((({isDismissible:e,type:t})=>e&&"default"===t)),o=e.filter((({isDismissible:e,type:t})=>!e&&"default"===t));return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Tn.NoticeList,{notices:o,className:"components-editor-notices__pinned"}),(0,T.jsx)(Tn.NoticeList,{notices:s,className:"components-editor-notices__dismissible",onRemove:t,children:(0,T.jsx)(Ki,{})})]})},Yi=-3;function qi(){const e=(0,d.useSelect)((e=>e(fs.store).getNotices()),[]),{removeNotice:t}=(0,d.useDispatch)(fs.store),s=e.filter((({type:e})=>"snackbar"===e)).slice(Yi);return(0,T.jsx)(Tn.SnackbarList,{notices:s,className:"components-editor-notices__snackbar",onRemove:t})}function Qi({record:e,checked:t,onChange:s}){const{name:o,kind:n,title:i,key:r}=e,{entityRecordTitle:a,hasPostMetaChanges:l}=(0,d.useSelect)((e=>{if("postType"!==n||"wp_template"!==o)return{entityRecordTitle:i,hasPostMetaChanges:h(e(cn)).hasPostMetaChanges(o,r)};const t=e(b.store).getEditedEntityRecord(n,o,r);return{entityRecordTitle:e(cn).__experimentalGetTemplateInfo(t).title,hasPostMetaChanges:h(e(cn)).hasPostMetaChanges(o,r)}}),[o,n,i,r]);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Tn.PanelRow,{children:(0,T.jsx)(Tn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,Mo.decodeEntities)(a)||(0,m.__)("Untitled"),checked:t,onChange:s})}),l&&(0,T.jsx)("ul",{className:"entities-saved-states__changes",children:(0,T.jsx)("li",{children:(0,m.__)("Post Meta.")})})]})}const{getGlobalStylesChanges:Xi,GlobalStylesContext:Ji}=h(g.privateApis);function er({record:e}){const{user:t}=(0,C.useContext)(Ji),s=(0,d.useSelect)((t=>t(b.store).getEntityRecord(e.kind,e.name,e.key)),[e.kind,e.name,e.key]),o=Xi(t,s,{maxResults:10});return o.length?(0,T.jsx)("ul",{className:"entities-saved-states__changes",children:o.map((e=>(0,T.jsx)("li",{children:e},e)))}):null}function tr({record:e,count:t}){if("globalStyles"===e?.name)return null;const s=function(e,t){switch(e){case"site":return 1===t?(0,m.__)("This change will affect your whole site."):(0,m.__)("These changes will affect your whole site.");case"wp_template":return(0,m.__)("This change will affect pages and posts that use this template.");case"page":case"post":return(0,m.__)("The following has been modified.")}}(e?.name,t);return s?(0,T.jsx)(Tn.PanelRow,{children:s}):null}function sr({list:e,unselectedEntities:t,setUnselectedEntities:s}){const o=e.length,n=e[0];let i=(0,d.useSelect)((e=>e(b.store).getEntityConfig(n.kind,n.name)),[n.kind,n.name]).label;return"wp_template_part"===n?.name&&(i=1===o?(0,m.__)("Template Part"):(0,m.__)("Template Parts")),(0,T.jsxs)(Tn.PanelBody,{title:i,initialOpen:!0,children:[(0,T.jsx)(tr,{record:n,count:o}),e.map((e=>(0,T.jsx)(Qi,{record:e,checked:!t.some((t=>t.kind===e.kind&&t.name===e.name&&t.key===e.key&&t.property===e.property)),onChange:t=>s(e,t)},e.key||e.property))),"globalStyles"===n?.name&&(0,T.jsx)(er,{record:n})]})}const or=()=>{const{editedEntities:e,siteEdits:t,siteEntityConfig:s}=(0,d.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:t,getEntityRecordEdits:s,getEntityConfig:o}=e(b.store);return{editedEntities:t(),siteEdits:s("root","site"),siteEntityConfig:o("root","site")}}),[]),o=(0,C.useMemo)((()=>{var o;const n=e.filter((e=>!("root"===e.kind&&"site"===e.name))),i=null!==(o=s?.meta?.labels)&&void 0!==o?o:{},r=[];for(const e in t)r.push({kind:"root",name:"site",title:i[e]||e,property:e});return[...n,...r]}),[e,t,s]),[n,i]=(0,C.useState)([]);return{dirtyEntityRecords:o,isDirty:o.length-n.length>0,setUnselectedEntities:({kind:e,name:t,key:s,property:o},r)=>{i(r?n.filter((n=>n.kind!==e||n.name!==t||n.key!==s||n.property!==o)):[...n,{kind:e,name:t,key:s,property:o}])},unselectedEntities:n}};function nr(e){return e}function ir({close:e,renderDialog:t}){const s=or();return(0,T.jsx)(rr,{close:e,renderDialog:t,...s})}function rr({additionalPrompt:e,close:t,onSave:s=nr,saveEnabled:o,saveLabel:n=(0,m.__)("Save"),renderDialog:i,dirtyEntityRecords:r,isDirty:a,setUnselectedEntities:l,unselectedEntities:c}){const u=(0,C.useRef)(),{saveDirtyEntities:p}=h((0,d.useDispatch)(cn)),g=r.reduce(((e,t)=>{const{name:s}=t;return e[s]||(e[s]=[]),e[s].push(t),e}),{}),{site:_,wp_template:f,wp_template_part:b,...y}=g,x=[_,f,b,...Object.values(y)].filter(Array.isArray),v=null!=o?o:a,w=(0,C.useCallback)((()=>t()),[t]),[S,k]=(0,pn.__experimentalUseDialog)({onClose:()=>w()}),P=(0,pn.useInstanceId)(rr,"label"),j=(0,pn.useInstanceId)(rr,"description");return(0,T.jsxs)("div",{ref:S,...k,className:"entities-saved-states__panel",role:i?"dialog":void 0,"aria-labelledby":i?P:void 0,"aria-describedby":i?j:void 0,children:[(0,T.jsxs)(Tn.Flex,{className:"entities-saved-states__panel-header",gap:2,children:[(0,T.jsx)(Tn.FlexItem,{isBlock:!0,as:Tn.Button,ref:u,variant:"primary",disabled:!v,__experimentalIsFocusable:!0,onClick:()=>p({onSave:s,dirtyEntityRecords:r,entitiesToSkip:c,close:t}),className:"editor-entities-saved-states__save-button",children:n}),(0,T.jsx)(Tn.FlexItem,{isBlock:!0,as:Tn.Button,variant:"secondary",onClick:w,children:(0,m.__)("Cancel")})]}),(0,T.jsxs)("div",{className:"entities-saved-states__text-prompt",children:[(0,T.jsxs)("div",{className:"entities-saved-states__text-prompt--header-wrapper",id:i?P:void 0,children:[(0,T.jsx)("strong",{className:"entities-saved-states__text-prompt--header",children:(0,m.__)("Are you ready to save?")}),e]}),(0,T.jsx)("p",{id:i?j:void 0,children:a?(0,C.createInterpolateElement)((0,m.sprintf)((0,m._n)("There is <strong>%d site change</strong> waiting to be saved.","There are <strong>%d site changes</strong> waiting to be saved.",x.length),x.length),{strong:(0,T.jsx)("strong",{})}):(0,m.__)("Select the items you want to save.")})]}),x.map((e=>(0,T.jsx)(sr,{list:e,unselectedEntities:c,setUnselectedEntities:l},e[0].name)))]})}function ar(){try{return(0,d.select)(cn).getEditedPostContent()}catch(e){}}function lr({text:e,children:t}){const s=(0,pn.useCopyToClipboard)(e);return(0,T.jsx)(Tn.Button,{variant:"secondary",ref:s,children:t})}class cr extends C.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){(0,bs.doAction)("editor.ErrorBoundary.errorLogged",e)}static getDerivedStateFromError(e){return{error:e}}render(){const{error:e}=this.state;if(!e)return this.props.children;const t=[(0,T.jsx)(lr,{text:ar,children:(0,m.__)("Copy Post Text")},"copy-post"),(0,T.jsx)(lr,{text:e.stack,children:(0,m.__)("Copy Error")},"copy-error")];return(0,T.jsx)(g.Warning,{className:"editor-error-boundary",actions:t,children:(0,m.__)("The editor has encountered an unexpected error.")})}}const dr=cr,ur=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame;let pr;function hr(){const{postId:e,isEditedPostNew:t,hasRemoteAutosave:s}=(0,d.useSelect)((e=>({postId:e(cn).getCurrentPostId(),isEditedPostNew:e(cn).isEditedPostNew(),hasRemoteAutosave:!!e(cn).getEditorSettings().autosave})),[]),{getEditedPostAttribute:o}=(0,d.useSelect)(cn),{createWarningNotice:n,removeNotice:i}=(0,d.useDispatch)(fs.store),{editPost:r,resetEditorBlocks:a}=(0,d.useDispatch)(cn);(0,C.useEffect)((()=>{let l=function(e,t){return window.sessionStorage.getItem(ys(e,t))}(e,t);if(!l)return;try{l=JSON.parse(l)}catch{return}const{post_title:d,content:u,excerpt:p}=l,h={title:d,content:u,excerpt:p};if(!Object.keys(h).some((e=>h[e]!==o(e))))return void xs(e,t);if(s)return;const g="wpEditorAutosaveRestore";n((0,m.__)("The backup of this post in your browser is different from the version below."),{id:g,actions:[{label:(0,m.__)("Restore the backup"),onClick(){const{content:e,...t}=h;r(t),a((0,c.parse)(h.content)),i(g)}}]})}),[t,e])}const mr=(0,pn.ifCondition)((()=>{if(void 0!==pr)return pr;try{window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),pr=!0}catch{pr=!1}return pr}))((function(){const{autosave:e}=(0,d.useDispatch)(cn),t=(0,C.useCallback)((()=>{ur((()=>e({local:!0})))}),[]);hr(),function(){const{postId:e,isEditedPostNew:t,isDirty:s,isAutosaving:o,didError:n}=(0,d.useSelect)((e=>({postId:e(cn).getCurrentPostId(),isEditedPostNew:e(cn).isEditedPostNew(),isDirty:e(cn).isEditedPostDirty(),isAutosaving:e(cn).isAutosavingPost(),didError:e(cn).didPostSaveRequestFail()})),[]),i=(0,C.useRef)(s),r=(0,C.useRef)(o);(0,C.useEffect)((()=>{!n&&(r.current&&!o||i.current&&!s)&&xs(e,t),i.current=s,r.current=o}),[s,o,n]);const a=(0,pn.usePrevious)(t),l=(0,pn.usePrevious)(e);(0,C.useEffect)((()=>{l===e&&a&&!t&&xs(e,!0)}),[t,e])}();const s=(0,d.useSelect)((e=>e(cn).getEditorSettings().localAutosaveInterval),[]);return(0,T.jsx)(Si,{interval:s,autosave:t})}));const gr=function({children:e}){const t=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(cn),{getPostType:s}=e(b.store),o=s(t("type"));return!!o?.supports?.["page-attributes"]}),[]);return t?e:null},_r=(0,C.forwardRef)((({className:e,label:t,children:s},o)=>(0,T.jsxs)(Tn.__experimentalHStack,{className:jn("editor-post-panel__row",e),ref:o,children:[t&&(0,T.jsx)("div",{className:"editor-post-panel__row-label",children:t}),(0,T.jsx)("div",{className:"editor-post-panel__row-control",children:s})]})));const fr=function({children:e,supportKeys:t}){const s=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(cn),{getPostType:s}=e(b.store);return s(t("type"))}),[]);let o=!!s;return s&&(o=(Array.isArray(t)?t:[t]).some((e=>!!s.supports[e]))),o?e:null};function br(){const e=(0,d.useSelect)((e=>{var t;return null!==(t=e(cn).getEditedPostAttribute("menu_order"))&&void 0!==t?t:0}),[]),{editPost:t}=(0,d.useDispatch)(cn),[s,o]=(0,C.useState)(null),n=null!=s?s:e;return(0,T.jsx)(Tn.Flex,{children:(0,T.jsx)(Tn.FlexBlock,{children:(0,T.jsx)(Tn.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,m.__)("Order"),help:(0,m.__)("Set the page order."),value:n,onChange:e=>{o(e);const s=Number(e);Number.isInteger(s)&&""!==e.trim?.()&&t({menu_order:s})},hideLabelFromVision:!0,onBlur:()=>{o(null)}})})})}function yr(){return(0,T.jsx)(fr,{supportKeys:"page-attributes",children:(0,T.jsx)(br,{})})}function xr({isOpen:e,onClick:t}){const s=(0,d.useSelect)((e=>{var t;return null!==(t=e(cn).getEditedPostAttribute("menu_order"))&&void 0!==t?t:0}),[]);return(0,T.jsx)(Tn.Button,{size:"compact",className:"editor-post-order__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,m.sprintf)((0,m.__)("Change order: %s"),s),onClick:t,children:s})}function vr(){const[e,t]=(0,C.useState)(null),s=(0,C.useMemo)((()=>({anchor:e,placement:"left-start",offset:36,shift:!0})),[e]);return(0,T.jsx)(_r,{label:(0,m.__)("Order"),ref:t,children:(0,T.jsx)(Tn.Dropdown,{popoverProps:s,className:"editor-post-order__panel-dropdown",contentClassName:"editor-post-order__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,T.jsx)(xr,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,T.jsxs)("div",{className:"editor-post-order",children:[(0,T.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,m.__)("Order"),onClose:e}),(0,T.jsxs)("div",{children:[(0,m.__)("This attribute determines the order of pages in the Pages List block."),(0,T.jsx)("p",{children:(0,m.__)("Pages with the same order value will sorted alphabetically. Negative order values are also supported.")})]}),(0,T.jsx)(br,{})]})})})}var wr=s(9681),Sr=s.n(wr);function kr(e){const t=e.map((e=>({children:[],parent:null,...e})));if(t.some((({parent:e})=>null===e)))return t;const s=t.reduce(((e,t)=>{const{parent:s}=t;return e[s]||(e[s]=[]),e[s].push(t),e}),{}),o=e=>e.map((e=>{const t=s[e.id];return{...e,children:t&&t.length?o(t):[]}}));return o(s[0]||[])}const Pr=e=>(0,Mo.decodeEntities)(e),Cr=e=>({...e,name:Pr(e.name)}),jr=e=>(null!=e?e:[]).map(Cr);function Tr(e){return e?.title?.rendered?(0,Mo.decodeEntities)(e.title.rendered):`#${e.id} (${(0,m.__)("no title")})`}const Er=(e,t)=>{const s=Sr()(e||"").toLowerCase(),o=Sr()(t||"").toLowerCase();return s===o?0:s.startsWith(o)?s.length:1/0};function Br(){const{editPost:e}=(0,d.useDispatch)(cn),[t,s]=(0,C.useState)(!1),{isHierarchical:o,parentPostId:n,parentPostTitle:i,pageItems:r}=(0,d.useSelect)((e=>{var s;const{getPostType:o,getEntityRecords:n,getEntityRecord:i}=e(b.store),{getCurrentPostId:r,getEditedPostAttribute:a}=e(cn),l=a("type"),c=a("parent"),d=o(l),u=r(),p=null!==(s=d?.hierarchical)&&void 0!==s&&s,h={per_page:100,exclude:u,parent_exclude:u,orderby:"menu_order",order:"asc",_fields:"id,title,parent"};t&&(h.search=t);const m=c?i("postType",l,c):null;return{isHierarchical:p,parentPostId:c,parentPostTitle:m?Tr(m):"",pageItems:p?n("postType",l,h):null}}),[t]),a=(0,C.useMemo)((()=>{const e=(s,o=0)=>{const n=s.map((t=>[{value:t.id,label:"— ".repeat(o)+(0,Mo.decodeEntities)(t.name),rawName:t.name},...e(t.children||[],o+1)])).sort((([e],[s])=>Er(e.rawName,t)>=Er(s.rawName,t)?1:-1));return n.flat()};if(!r)return[];let s=r.map((e=>({id:e.id,parent:e.parent,name:Tr(e)})));t||(s=kr(s));const o=e(s),a=o.find((e=>e.value===n));return i&&!a&&o.unshift({value:n,label:i}),o}),[r,t,i,n]);if(!o)return null;return(0,T.jsx)(Tn.ComboboxControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:(0,m.__)("Parent"),help:(0,m.__)("Choose a parent page."),value:n,options:a,onFilterValueChange:(0,pn.debounce)((e=>{s(e)}),300),onChange:t=>{e({parent:t})},hideLabelFromVision:!0})}function Ir({isOpen:e,onClick:t}){const s=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(cn),s=t("parent");if(!s)return null;const{getEntityRecord:o}=e(b.store);return o("postType",t("type"),s)}),[]),o=(0,C.useMemo)((()=>s?Tr(s):(0,m.__)("None")),[s]);return(0,T.jsx)(Tn.Button,{size:"compact",className:"editor-post-parent__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,m.sprintf)((0,m.__)("Change parent: %s"),o),onClick:t,children:o})}function Nr(){const[e,t]=(0,C.useState)(null),s=(0,C.useMemo)((()=>({anchor:e,placement:"left-start",offset:36,shift:!0})),[e]);return(0,T.jsx)(_r,{label:(0,m.__)("Parent"),ref:t,children:(0,T.jsx)(Tn.Dropdown,{popoverProps:s,className:"editor-post-parent__panel-dropdown",contentClassName:"editor-post-parent__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,T.jsx)(Ir,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,T.jsxs)("div",{className:"editor-post-parent",children:[(0,T.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,m.__)("Parent"),onClose:e}),(0,T.jsxs)("div",{children:[(0,m.__)("Child pages inherit characteristics from their parent, such as URL structure. For instance, if 'Web Design' is a child of 'Services', its URL would be example.org/services/web-design."),(0,T.jsxs)("p",{children:[(0,m.__)("They also show up as sub-items in the default navigation menu. "),(0,T.jsx)(Tn.ExternalLink,{href:(0,m.__)("https://wordpress.org/documentation/article/page-post-settings-sidebar/#page-attributes"),children:(0,m.__)("Learn more")})]})]}),(0,T.jsx)(Br,{})]})})})}const Ar=Br,Dr="page-attributes";function Rr(){const{isEnabled:e,postType:t}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,isEditorPanelEnabled:s}=e(cn),{getPostType:o}=e(b.store);return{isEnabled:s(Dr),postType:o(t("type"))}}),[]);return e&&t?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Nr,{}),(0,T.jsx)(vr,{})]}):null}function Mr(){return(0,T.jsx)(gr,{children:(0,T.jsx)(Rr,{})})}const Or=(0,T.jsx)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,T.jsx)(j.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM13.9624 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10.0391H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H10L10 10.4917L16.4589 10.5139L16.4641 9.01389L5.5 8.97618V6C5.5 5.72386 5.72386 5.5 6 5.5H13.9624V4ZM5.5 10.4762V18C5.5 18.2761 5.72386 18.5 6 18.5H8.5L8.5 10.4865L5.5 10.4762Z"})}),Lr=(0,m.__)("Custom Template");function Fr({onClose:e}){const{defaultBlockTemplate:t,onNavigateToEntityRecord:s}=(0,d.useSelect)((e=>{const{getEditorSettings:t,getCurrentTemplateId:s}=e(cn);return{defaultBlockTemplate:t().defaultBlockTemplate,onNavigateToEntityRecord:t().onNavigateToEntityRecord,getTemplateId:s}})),{createTemplate:o}=h((0,d.useDispatch)(cn)),[n,i]=(0,C.useState)(""),[r,a]=(0,C.useState)(!1),l=()=>{i(""),e()};return(0,T.jsx)(Tn.Modal,{title:(0,m.__)("Create custom template"),onRequestClose:l,children:(0,T.jsx)("form",{className:"editor-post-template__create-form",onSubmit:async e=>{if(e.preventDefault(),r)return;a(!0);const i=null!=t?t:(0,c.serialize)([(0,c.createBlock)("core/group",{tagName:"header",layout:{inherit:!0}},[(0,c.createBlock)("core/site-title"),(0,c.createBlock)("core/site-tagline")]),(0,c.createBlock)("core/separator"),(0,c.createBlock)("core/group",{tagName:"main"},[(0,c.createBlock)("core/group",{layout:{inherit:!0}},[(0,c.createBlock)("core/post-title")]),(0,c.createBlock)("core/post-content",{layout:{inherit:!0}})])]),d=await o({slug:(0,S.cleanForSlug)(n||Lr),content:i,title:n||Lr});a(!1),s({postId:d.id,postType:"wp_template"}),l()},children:(0,T.jsxs)(Tn.__experimentalVStack,{spacing:"3",children:[(0,T.jsx)(Tn.TextControl,{__nextHasNoMarginBottom:!0,label:(0,m.__)("Name"),value:n,onChange:i,placeholder:Lr,disabled:r,help:(0,m.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')}),(0,T.jsxs)(Tn.__experimentalHStack,{justify:"right",children:[(0,T.jsx)(Tn.Button,{variant:"tertiary",onClick:l,children:(0,m.__)("Cancel")}),(0,T.jsx)(Tn.Button,{variant:"primary",type:"submit",isBusy:r,"aria-disabled":r,children:(0,m.__)("Create")})]})]})})})}function Vr(){return(0,d.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:s}=e(cn);return{postId:t(),postType:s()}}),[])}function Ur(){const{postType:e,postId:t}=Vr();return(0,d.useSelect)((s=>{const{getEntityRecord:o,getEntityRecords:n}=s(b.store),i=o("root","site"),r=n("postType","wp_template",{per_page:-1}),a=+t===i?.page_for_posts,l="page"===e&&+t===i?.page_on_front&&r?.some((({slug:e})=>"front-page"===e));return!a&&!l}),[t,e])}function zr(e){return(0,d.useSelect)((t=>t(b.store).getEntityRecords("postType","wp_template",{per_page:-1,post_type:e})),[e])}function Hr(e){const t=Gr(),s=Ur(),o=zr(e);return(0,C.useMemo)((()=>s&&o?.filter((e=>e.is_custom&&e.slug!==t&&!!e.content.raw))),[o,t,s])}function Gr(){const{postType:e,postId:t}=Vr(),s=zr(e),o=(0,d.useSelect)((s=>{const o=s(b.store).getEditedEntityRecord("postType",e,t);return o?.template}),[e,t]);if(o)return s?.find((e=>e.slug===o))?.slug}const $r={className:"editor-post-template__dropdown",placement:"bottom-start"};function Wr({isOpen:e,onClick:t}){const s=(0,d.useSelect)((e=>{const t=e(cn).getEditedPostAttribute("template"),{supportsTemplateMode:s,availableTemplates:o}=e(cn).getEditorSettings();if(!s&&o[t])return o[t];const n=e(b.store).canUser("create","templates")&&e(cn).getCurrentTemplateId();return n?.title||n?.slug||o?.[t]}),[]);return(0,T.jsx)(Tn.Button,{__next40pxDefaultSize:!0,variant:"tertiary","aria-expanded":e,"aria-label":(0,m.__)("Template options"),onClick:t,children:null!=s?s:(0,m.__)("Default template")})}function Kr({onClose:e}){var t,s;const o=Ur(),{availableTemplates:n,fetchedTemplates:i,selectedTemplateSlug:r,canCreate:a,canEdit:l,currentTemplateId:c,onNavigateToEntityRecord:u,getEditorSettings:p}=(0,d.useSelect)((e=>{const{canUser:t,getEntityRecords:s}=e(b.store),n=e(cn).getEditorSettings(),i=t("create","templates"),r=e(cn).getCurrentTemplateId();return{availableTemplates:n.availableTemplates,fetchedTemplates:i?s("postType","wp_template",{post_type:e(cn).getCurrentPostType(),per_page:-1}):void 0,selectedTemplateSlug:e(cn).getEditedPostAttribute("template"),canCreate:o&&i&&n.supportsTemplateMode,canEdit:o&&i&&n.supportsTemplateMode&&!!r,currentTemplateId:r,onNavigateToEntityRecord:n.onNavigateToEntityRecord,getEditorSettings:e(cn).getEditorSettings}}),[o]),h=(0,C.useMemo)((()=>Object.entries({...n,...Object.fromEntries((null!=i?i:[]).map((({slug:e,title:t})=>[e,t.rendered])))}).map((([e,t])=>({value:e,label:t})))),[n,i]),_=null!==(t=h.find((e=>e.value===r)))&&void 0!==t?t:h.find((e=>!e.value)),{editPost:f}=(0,d.useDispatch)(cn),{createSuccessNotice:y}=(0,d.useDispatch)(fs.store),[x,v]=(0,C.useState)(!1);return(0,T.jsxs)("div",{className:"editor-post-template__classic-theme-dropdown",children:[(0,T.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,m.__)("Template"),help:(0,m.__)("Templates define the way content is displayed when viewing your site."),actions:a?[{icon:Or,label:(0,m.__)("Add template"),onClick:()=>v(!0)}]:[],onClose:e}),o?(0,T.jsx)(Tn.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,hideLabelFromVision:!0,label:(0,m.__)("Template"),value:null!==(s=_?.value)&&void 0!==s?s:"",options:h,onChange:e=>f({template:e||""})}):(0,T.jsx)(Tn.Notice,{status:"warning",isDismissible:!1,children:(0,m.__)("The posts page template cannot be changed.")}),l&&u&&(0,T.jsx)("p",{children:(0,T.jsx)(Tn.Button,{variant:"link",onClick:()=>{u({postId:c,postType:"wp_template"}),e(),y((0,m.__)("Editing template. Changes made here affect all posts and pages that use the template."),{type:"snackbar",actions:[{label:(0,m.__)("Go back"),onClick:()=>p().onNavigateToPreviousEntityRecord()}]})},children:(0,m.__)("Edit template")})}),x&&(0,T.jsx)(Fr,{onClose:()=>v(!1)})]})}const Zr=function(){return(0,T.jsx)(Tn.Dropdown,{popoverProps:$r,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,T.jsx)(Wr,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,T.jsx)(Kr,{onClose:e})})},{PreferenceBaseOption:Yr}=(window.wp.warning,h(B.privateApis)),qr=(0,pn.compose)((0,d.withSelect)(((e,{panelName:t})=>{const{isEditorPanelEnabled:s,isEditorPanelRemoved:o}=e(cn);return{isRemoved:o(t),isChecked:s(t)}})),(0,pn.ifCondition)((({isRemoved:e})=>!e)),(0,d.withDispatch)(((e,{panelName:t})=>({onChange:()=>e(cn).toggleEditorPanelEnabled(t)}))))(Yr),{Fill:Qr,Slot:Xr}=(0,Tn.createSlotFill)("EnablePluginDocumentSettingPanelOption"),Jr=({label:e,panelName:t})=>(0,T.jsx)(Qr,{children:(0,T.jsx)(qr,{label:e,panelName:t})});Jr.Slot=Xr;const ea=Jr,{Fill:ta,Slot:sa}=(0,Tn.createSlotFill)("PluginDocumentSettingPanel"),oa=({name:e,className:t,title:s,icon:o,children:n})=>{const{name:i}=(0,Jn.usePluginContext)(),r=`${i}/${e}`,{opened:a,isEnabled:l}=(0,d.useSelect)((e=>{const{isEditorPanelOpened:t,isEditorPanelEnabled:s}=e(cn);return{opened:t(r),isEnabled:s(r)}}),[r]),{toggleEditorPanelOpened:c}=(0,d.useDispatch)(cn);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(ea,{label:s,panelName:r}),(0,T.jsx)(ta,{children:l&&(0,T.jsx)(Tn.PanelBody,{className:t,title:s,icon:o,opened:a,onToggle:()=>c(r),children:n})})]})};oa.Slot=sa;const na=oa,ia=({allowedBlocks:e,icon:t,label:s,onClick:o,small:n,role:i})=>(0,T.jsx)(g.BlockSettingsMenuControls,{children:({selectedBlocks:r,onClose:a})=>((e,t)=>{return!Array.isArray(t)||(s=t,0===e.filter((e=>!s.includes(e))).length);var s})(r,e)?(0,T.jsx)(Tn.MenuItem,{onClick:(0,pn.compose)(o,a),icon:t,label:n?s:void 0,role:i,children:!n&&s}):null}),ra=(0,pn.compose)((0,Jn.withPluginContext)(((e,t)=>{var s;return{as:null!==(s=t.as)&&void 0!==s?s:Tn.MenuItem,icon:t.icon||e.icon,name:"core/plugin-more-menu"}})))(ii),{Fill:aa,Slot:la}=(0,Tn.createSlotFill)("PluginPostPublishPanel"),ca=({children:e,className:t,title:s,initialOpen:o=!1,icon:n})=>{const{icon:i}=(0,Jn.usePluginContext)();return(0,T.jsx)(aa,{children:(0,T.jsx)(Tn.PanelBody,{className:t,initialOpen:o||!s,title:s,icon:null!=n?n:i,children:e})})};ca.Slot=la;const da=ca,{Fill:ua,Slot:pa}=(0,Tn.createSlotFill)("PluginPostStatusInfo"),ha=({children:e,className:t})=>(0,T.jsx)(ua,{children:(0,T.jsx)(Tn.PanelRow,{className:t,children:e})});ha.Slot=pa;const ma=ha,{Fill:ga,Slot:_a}=(0,Tn.createSlotFill)("PluginPrePublishPanel"),fa=({children:e,className:t,title:s,initialOpen:o=!1,icon:n})=>{const{icon:i}=(0,Jn.usePluginContext)();return(0,T.jsx)(ga,{children:(0,T.jsx)(Tn.PanelBody,{className:t,initialOpen:o||!s,title:s,icon:null!=n?n:i,children:e})})};fa.Slot=_a;const ba=fa;function ya({className:e,...t}){const{postTitle:s,shortcut:o}=(0,d.useSelect)((e=>({postTitle:e(cn).getEditedPostAttribute("title"),shortcut:e(Pn.store).getShortcutRepresentation("core/editor/toggle-sidebar")})),[]);return(0,T.jsx)(gi,{panelClassName:e,className:"editor-sidebar",smallScreenTitle:s||(0,m.__)("(no title)"),scope:"core",toggleShortcut:o,...t})}function xa(e){return(0,T.jsx)(ai,{__unstableExplicitMenuItem:!0,scope:"core",...e})}function va({onClick:e}){const[t,s]=(0,C.useState)(!1),{postType:o,postId:n}=Vr(),i=Hr(o),{editEntityRecord:r}=(0,d.useDispatch)(b.store);if(!i?.length)return null;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Tn.MenuItem,{onClick:()=>s(!0),children:(0,m.__)("Swap template")}),t&&(0,T.jsx)(Tn.Modal,{title:(0,m.__)("Choose a template"),onRequestClose:()=>s(!1),overlayClassName:"editor-post-template__swap-template-modal",isFullScreen:!0,children:(0,T.jsx)("div",{className:"editor-post-template__swap-template-modal-content",children:(0,T.jsx)(wa,{postType:o,onSelect:async t=>{r("postType",o,n,{template:t.name},{undoIgnore:!0}),s(!1),e()}})})})]})}function wa({postType:e,onSelect:t}){const s=Hr(e),o=(0,C.useMemo)((()=>s.map((e=>({name:e.slug,blocks:(0,c.parse)(e.content.raw),title:(0,Mo.decodeEntities)(e.title.rendered),id:e.id})))),[s]),n=(0,pn.useAsyncList)(o);return(0,T.jsx)(g.__experimentalBlockPatternsList,{label:(0,m.__)("Templates"),blockPatterns:o,shownPatterns:n,onClickPattern:t})}function Sa({onClick:e}){const t=Gr(),s=Ur(),{postType:o,postId:n}=Vr(),{editEntityRecord:i}=(0,d.useDispatch)(b.store);return t&&s?(0,T.jsx)(Tn.MenuItem,{onClick:()=>{i("postType",o,n,{template:""},{undoIgnore:!0}),e()},children:(0,m.__)("Use default template")}):null}function ka({onClick:e}){const{canCreateTemplates:t}=(0,d.useSelect)((e=>{const{canUser:t}=e(b.store);return{canCreateTemplates:t("create","templates")}}),[]),[s,o]=(0,C.useState)(!1),n=Ur();return t&&n?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Tn.MenuItem,{onClick:()=>{o(!0)},children:(0,m.__)("Create new template")}),s&&(0,T.jsx)(Fr,{onClose:()=>{o(!1),e()}})]}):null}const Pa={className:"editor-post-template__dropdown",placement:"bottom-start"};function Ca({id:e}){const{isTemplateHidden:t,onNavigateToEntityRecord:s,getEditorSettings:o,hasGoBack:n}=(0,d.useSelect)((e=>{const{getRenderingMode:t,getEditorSettings:s}=h(e(cn)),o=s();return{isTemplateHidden:"post-only"===t(),onNavigateToEntityRecord:o.onNavigateToEntityRecord,getEditorSettings:s,hasGoBack:o.hasOwnProperty("onNavigateToPreviousEntityRecord")}}),[]),{editedRecord:i,hasResolved:r}=(0,b.useEntityRecord)("postType","wp_template",e),{createSuccessNotice:a}=(0,d.useDispatch)(fs.store),{setRenderingMode:l}=(0,d.useDispatch)(cn),c=(0,d.useSelect)((e=>{var t;return null!==(t=e(b.store).canUser("create","templates"))&&void 0!==t&&t}));if(!r)return null;const u=n?[{label:(0,m.__)("Go back"),onClick:()=>o().onNavigateToPreviousEntityRecord()}]:void 0;return(0,T.jsx)(Tn.DropdownMenu,{popoverProps:Pa,focusOnMount:!0,toggleProps:{size:"compact",variant:"tertiary",tooltipPosition:"middle left"},label:(0,m.__)("Template options"),text:(0,Mo.decodeEntities)(i.title),icon:null,children:({onClose:e})=>(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(Tn.MenuGroup,{children:[c&&(0,T.jsx)(Tn.MenuItem,{onClick:()=>{s({postId:i.id,postType:"wp_template"}),e(),a((0,m.__)("Editing template. Changes made here affect all posts and pages that use the template."),{type:"snackbar",actions:u})},children:(0,m.__)("Edit template")}),(0,T.jsx)(va,{onClick:e}),(0,T.jsx)(Sa,{onClick:e}),c&&(0,T.jsx)(ka,{onClick:e})]}),(0,T.jsx)(Tn.MenuGroup,{children:(0,T.jsx)(Tn.MenuItem,{icon:t?void 0:En,isSelected:!t,role:"menuitemcheckbox",onClick:()=>{l(t?"template-locked":"post-only")},children:(0,m.__)("Show template")})})]})})}function ja(){const{templateId:e,isBlockTheme:t}=(0,d.useSelect)((e=>{const{getCurrentTemplateId:t,getEditorSettings:s}=e(cn);return{templateId:t(),isBlockTheme:s().__unstableIsBlockBasedTheme}}),[]),s=(0,d.useSelect)((e=>{var t;const s=e(cn).getCurrentPostType(),o=e(b.store).getPostType(s);if(!o?.viewable)return!1;const n=e(cn).getEditorSettings();if(!!n.availableTemplates&&Object.keys(n.availableTemplates).length>0)return!0;if(!n.supportsTemplateMode)return!1;return null!==(t=e(b.store).canUser("create","templates"))&&void 0!==t&&t}),[]),o=(0,d.useSelect)((e=>{var t;return null!==(t=e(b.store).canUser("read","templates"))&&void 0!==t&&t}),[]);return t&&o||!s?t&&e?(0,T.jsx)(_r,{label:(0,m.__)("Template"),children:(0,T.jsx)(Ca,{id:e})}):null:(0,T.jsx)(_r,{label:(0,m.__)("Template"),children:(0,T.jsx)(Zr,{})})}const Ta={_fields:"id,name",context:"view"},Ea={who:"authors",per_page:50,...Ta};function Ba(e){const{authorId:t,authors:s,postAuthor:o}=(0,d.useSelect)((t=>{const{getUser:s,getUsers:o}=t(b.store),{getEditedPostAttribute:n}=t(cn),i=n("author"),r={...Ea};return e&&(r.search=e),{authorId:i,authors:o(r),postAuthor:s(i,Ta)}}),[e]);return{authorId:t,authorOptions:(0,C.useMemo)((()=>{const e=(null!=s?s:[]).map((e=>({value:e.id,label:(0,Mo.decodeEntities)(e.name)})));return e.findIndex((({value:e})=>o?.id===e))<0&&o?[{value:o.id,label:(0,Mo.decodeEntities)(o.name)},...e]:e}),[s,o]),postAuthor:o}}function Ia(){const[e,t]=(0,C.useState)(),{editPost:s}=(0,d.useDispatch)(cn),{authorId:o,authorOptions:n}=Ba(e);return(0,T.jsx)(Tn.ComboboxControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,m.__)("Author"),options:n,value:o,onFilterValueChange:(0,pn.debounce)((e=>{t(e)}),300),onChange:e=>{e&&s({author:e})},allowReset:!1,hideLabelFromVision:!0})}function Na(){const{editPost:e}=(0,d.useDispatch)(cn),{authorId:t,authorOptions:s}=Ba();return(0,T.jsx)(Tn.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"post-author-selector",label:(0,m.__)("Author"),options:s,onChange:t=>{const s=Number(t);e({author:s})},value:t,hideLabelFromVision:!0})}const Aa=function(){return(0,d.useSelect)((e=>{const t=e(b.store).getUsers(Ea);return t?.length>=25}),[])?(0,T.jsx)(Ia,{}):(0,T.jsx)(Na,{})};function Da({children:e}){const{hasAssignAuthorAction:t,hasAuthors:s}=(0,d.useSelect)((e=>{var t;const s=e(cn).getCurrentPost(),o=e(b.store).getUsers(Ea);return{hasAssignAuthorAction:null!==(t=s._links?.["wp:action-assign-author"])&&void 0!==t&&t,hasAuthors:o?.length>=1}}),[]);return t&&s?(0,T.jsx)(fr,{supportKeys:"author",children:e}):null}function Ra({isOpen:e,onClick:t}){const{postAuthor:s}=Ba(),o=s?.name||"";return(0,T.jsx)(Tn.Button,{size:"compact",className:"editor-post-author__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,m.sprintf)((0,m.__)("Change author: %s"),o),onClick:t,children:o})}const Ma=function(){const[e,t]=(0,C.useState)(null),s=(0,C.useMemo)((()=>({anchor:e,placement:"left-start",offset:36,shift:!0})),[e]);return(0,T.jsx)(Da,{children:(0,T.jsx)(_r,{label:(0,m.__)("Author"),ref:t,children:(0,T.jsx)(Tn.Dropdown,{popoverProps:s,contentClassName:"editor-post-author__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,T.jsx)(Ra,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,T.jsxs)("div",{className:"editor-post-author",children:[(0,T.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,m.__)("Author"),onClose:e}),(0,T.jsx)(Aa,{onClose:e})]})})})})},Oa=[{label:(0,T.jsxs)(T.Fragment,{children:[(0,m.__)("Open"),(0,T.jsx)(Tn.__experimentalText,{variant:"muted",size:12,children:(0,m.__)("Visitors can add new comments and replies.")})]}),value:"open"},{label:(0,T.jsxs)(T.Fragment,{children:[(0,m.__)("Closed"),(0,T.jsx)(Tn.__experimentalText,{variant:"muted",size:12,children:(0,m.__)("Visitors cannot add new comments or replies.")}),(0,T.jsx)(Tn.__experimentalText,{variant:"muted",size:12,children:(0,m.__)("Existing comments remain visible.")})]}),value:"closed"}];const La=function(){const e=(0,d.useSelect)((e=>{var t;return null!==(t=e(cn).getEditedPostAttribute("comment_status"))&&void 0!==t?t:"open"}),[]),{editPost:t}=(0,d.useDispatch)(cn);return(0,T.jsx)("form",{children:(0,T.jsx)(Tn.__experimentalVStack,{spacing:4,children:(0,T.jsx)(Tn.RadioControl,{className:"editor-change-status__options",hideLabelFromVision:!0,label:(0,m.__)("Comment status"),options:Oa,onChange:e=>t({comment_status:e}),selected:e})})})};const Fa=function(){const e=(0,d.useSelect)((e=>{var t;return null!==(t=e(cn).getEditedPostAttribute("ping_status"))&&void 0!==t?t:"open"}),[]),{editPost:t}=(0,d.useDispatch)(cn);return(0,T.jsx)(Tn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,m.__)("Enable pingbacks & trackbacks"),checked:"open"===e,onChange:()=>t({ping_status:"open"===e?"closed":"open"}),help:(0,T.jsx)(Tn.ExternalLink,{href:(0,m.__)("https://wordpress.org/documentation/article/trackbacks-and-pingbacks/"),children:(0,m.__)("Learn more about pingbacks & trackbacks")})})},Va="discussion-panel";function Ua({onClose:e}){return(0,T.jsxs)("div",{className:"editor-post-discussion",children:[(0,T.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,m.__)("Discussion"),onClose:e}),(0,T.jsxs)(Tn.__experimentalVStack,{spacing:4,children:[(0,T.jsx)(fr,{supportKeys:"comments",children:(0,T.jsx)(La,{})}),(0,T.jsx)(fr,{supportKeys:"trackbacks",children:(0,T.jsx)(Fa,{})})]})]})}function za({isOpen:e,onClick:t}){const{commentStatus:s,pingStatus:o,commentsSupported:n,trackbacksSupported:i}=(0,d.useSelect)((e=>{var t,s;const{getEditedPostAttribute:o}=e(cn),{getPostType:n}=e(b.store),i=n(o("type"));return{commentStatus:null!==(t=o("comment_status"))&&void 0!==t?t:"open",pingStatus:null!==(s=o("ping_status"))&&void 0!==s?s:"open",commentsSupported:!!i.supports.comments,trackbacksSupported:!!i.supports.trackbacks}}),[]);let r;return r="open"===s?"open"===o?(0,m.__)("Open"):i?(0,m.__)("Comments only"):(0,m.__)("Open"):"open"===o?n?(0,m.__)("Pings only"):(0,m.__)("Pings enabled"):(0,m.__)("Closed"),(0,T.jsx)(Tn.Button,{size:"compact",className:"editor-post-discussion__panel-toggle",variant:"tertiary","aria-label":(0,m.__)("Change discussion options"),"aria-expanded":e,onClick:t,children:r})}function Ha(){const{isEnabled:e}=(0,d.useSelect)((e=>{const{isEditorPanelEnabled:t}=e(cn);return{isEnabled:t(Va)}}),[]),[t,s]=(0,C.useState)(null),o=(0,C.useMemo)((()=>({anchor:t,placement:"left-start",offset:36,shift:!0})),[t]);return e?(0,T.jsx)(fr,{supportKeys:["comments","trackbacks"],children:(0,T.jsx)(_r,{label:(0,m.__)("Discussion"),ref:s,children:(0,T.jsx)(Tn.Dropdown,{popoverProps:o,className:"editor-post-discussion__panel-dropdown",contentClassName:"editor-post-discussion__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,T.jsx)(za,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,T.jsx)(Ua,{onClose:e})})})}):null}function Ga({hideLabelFromVision:e=!1,updateOnBlur:t=!1}){const{excerpt:s,shouldUseDescriptionLabel:o,usedAttribute:n}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getEditedPostAttribute:s}=e(cn),o=t(),n=["wp_template","wp_template_part"].includes(o)?"description":"excerpt";return{excerpt:s(n),shouldUseDescriptionLabel:["wp_template","wp_template_part","wp_block"].includes(o),usedAttribute:n}}),[]),{editPost:i}=(0,d.useDispatch)(cn),[r,a]=(0,C.useState)((0,Mo.decodeEntities)(s)),l=e=>{i({[n]:e})},c=o?(0,m.__)("Write a description (optional)"):(0,m.__)("Write an excerpt (optional)");return(0,T.jsx)("div",{className:"editor-post-excerpt",children:(0,T.jsx)(Tn.TextareaControl,{__nextHasNoMarginBottom:!0,label:c,hideLabelFromVision:e,className:"editor-post-excerpt__textarea",onChange:t?a:l,onBlur:t?()=>l(r):void 0,value:t?r:s,help:o?(0,m.__)("Write a description"):(0,T.jsx)(Tn.ExternalLink,{href:(0,m.__)("https://wordpress.org/documentation/article/page-post-settings-sidebar/#excerpt"),children:(0,m.__)("Learn more about manual excerpts")})})})}const $a=function({children:e}){return(0,T.jsx)(fr,{supportKeys:"excerpt",children:e})},{Fill:Wa,Slot:Ka}=(0,Tn.createSlotFill)("PluginPostExcerpt"),Za=({children:e,className:t})=>(0,T.jsx)(Wa,{children:(0,T.jsx)(Tn.PanelRow,{className:t,children:e})});Za.Slot=Ka;const Ya=Za,qa="post-excerpt";function Qa(){const{isOpened:e,isEnabled:t,postType:s}=(0,d.useSelect)((e=>{const{isEditorPanelOpened:t,isEditorPanelEnabled:s,getCurrentPostType:o}=e(cn);return{isOpened:t(qa),isEnabled:s(qa),postType:o()}}),[]),{toggleEditorPanelOpened:o}=(0,d.useDispatch)(cn);if(!t)return null;const n=["wp_template","wp_template_part","wp_block"].includes(s);return(0,T.jsx)(Tn.PanelBody,{title:n?(0,m.__)("Description"):(0,m.__)("Excerpt"),opened:e,onToggle:()=>o(qa),children:(0,T.jsx)(Ya.Slot,{children:e=>(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Ga,{}),e]})})})}function Xa(){return(0,T.jsx)($a,{children:(0,T.jsx)(Qa,{})})}function Ja(){return(0,T.jsx)($a,{children:(0,T.jsx)(el,{})})}function el(){const{shouldRender:e,excerpt:t,shouldBeUsedAsDescription:s,allowEditing:o}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s,getEditedPostAttribute:o,isEditorPanelEnabled:n}=e(cn),i=t(),r=["wp_template","wp_template_part"].includes(i),a="wp_block"===i,l=r||a,c=r?"description":"excerpt",d=r&&e(b.store).getEntityRecord("postType",i,s()),u=n(qa)||l;return{excerpt:o(c),shouldRender:u,shouldBeUsedAsDescription:l,allowEditing:u&&(!l||a||d&&d.source===z.custom&&!d.has_theme_file)}}),[]),[n,i]=(0,C.useState)(null),r=s?(0,m.__)("Description"):(0,m.__)("Excerpt"),a=(0,C.useMemo)((()=>({anchor:n,"aria-label":r,headerTitle:r,placement:"left-start",offset:36,shift:!0})),[n,r]);if(!e)return!1;const l=!!t&&(0,T.jsx)(Tn.__experimentalText,{align:"left",numberOfLines:4,truncate:!0,children:(0,Mo.decodeEntities)(t)});if(!o)return l;const c=s?(0,m.__)("Add a description…"):(0,m.__)("Add an excerpt…"),u=s?(0,m.__)("Edit description"):(0,m.__)("Edit excerpt");return(0,T.jsxs)(Tn.__experimentalVStack,{children:[l,(0,T.jsx)(Tn.Dropdown,{className:"editor-post-excerpt__dropdown",contentClassName:"editor-post-excerpt__dropdown__content",popoverProps:a,focusOnMount:!0,ref:i,renderToggle:({onToggle:e})=>(0,T.jsx)(Tn.Button,{className:"editor-post-excerpt__dropdown__trigger",onClick:e,variant:"link",children:l?u:c}),renderContent:({onClose:e})=>(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(g.__experimentalInspectorPopoverHeader,{title:r,onClose:e}),(0,T.jsx)(Tn.__experimentalVStack,{spacing:4,children:(0,T.jsx)(Ya.Slot,{children:e=>(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Ga,{hideLabelFromVision:!0,updateOnBlur:!0}),e]})})})]})})]})}const tl=window.wp.blob;function sl({children:e,supportKeys:t}){const{postType:s,themeSupports:o}=(0,d.useSelect)((e=>({postType:e(cn).getEditedPostAttribute("type"),themeSupports:e(b.store).getThemeSupports()})),[]);return(Array.isArray(t)?t:[t]).some((e=>{var t;const n=null!==(t=o?.[e])&&void 0!==t&&t;return"post-thumbnails"===e&&Array.isArray(n)?n.includes(s):n}))?e:null}const ol=function({children:e}){return(0,T.jsx)(sl,{supportKeys:"post-thumbnails",children:(0,T.jsx)(fr,{supportKeys:"thumbnail",children:e})})},nl=["image"],il=(0,m.__)("Featured image"),rl=(0,m.__)("Add a featured image"),al=(0,T.jsx)("p",{children:(0,m.__)("To edit the featured image, you need permission to upload media.")});const ll=(0,d.withSelect)((e=>{const{getMedia:t,getPostType:s}=e(b.store),{getCurrentPostId:o,getEditedPostAttribute:n}=e(cn),i=n("featured_media");return{media:i?t(i,{context:"view"}):null,currentPostId:o(),postType:s(n("type")),featuredImageId:i}})),cl=(0,d.withDispatch)(((e,{noticeOperations:t},{select:s})=>{const{editPost:o}=e(cn);return{onUpdateImage(e){o({featured_media:e.id})},onDropImage(e){s(g.store).getSettings().mediaUpload({allowedTypes:["image"],filesList:e,onFileChange([e]){o({featured_media:e.id})},onError(e){t.removeAllNotices(),t.createErrorNotice(e)}})},onRemoveImage(){o({featured_media:0})}}})),dl=(0,pn.compose)(Tn.withNotices,ll,cl,(0,Tn.withFilters)("editor.PostFeaturedImage"))((function({currentPostId:e,featuredImageId:t,onUpdateImage:s,onRemoveImage:o,media:n,postType:i,noticeUI:r,noticeOperations:a}){const l=(0,C.useRef)(),[c,u]=(0,C.useState)(!1),{getSettings:p}=(0,d.useSelect)(g.store),{mediaSourceUrl:h}=function(e,t){var s,o;if(!e)return{};const n=(0,bs.applyFilters)("editor.PostFeaturedImage.imageSize","large",e.id,t);if(n in(null!==(s=e?.media_details?.sizes)&&void 0!==s?s:{}))return{mediaWidth:e.media_details.sizes[n].width,mediaHeight:e.media_details.sizes[n].height,mediaSourceUrl:e.media_details.sizes[n].source_url};const i=(0,bs.applyFilters)("editor.PostFeaturedImage.imageSize","thumbnail",e.id,t);return i in(null!==(o=e?.media_details?.sizes)&&void 0!==o?o:{})?{mediaWidth:e.media_details.sizes[i].width,mediaHeight:e.media_details.sizes[i].height,mediaSourceUrl:e.media_details.sizes[i].source_url}:{mediaWidth:e.media_details.width,mediaHeight:e.media_details.height,mediaSourceUrl:e.source_url}}(n,e);function _(e){p().mediaUpload({allowedTypes:nl,filesList:e,onFileChange([e]){(0,tl.isBlobURL)(e?.url)?u(!0):(e&&s(e),u(!1))},onError(e){a.removeAllNotices(),a.createErrorNotice(e)}})}return(0,T.jsxs)(ol,{children:[r,(0,T.jsxs)("div",{className:"editor-post-featured-image",children:[n&&(0,T.jsxs)("div",{id:`editor-post-featured-image-${t}-describedby`,className:"hidden",children:[n.alt_text&&(0,m.sprintf)((0,m.__)("Current image: %s"),n.alt_text),!n.alt_text&&(0,m.sprintf)((0,m.__)("The current image has no alternative text. The file name is: %s"),n.media_details.sizes?.full?.file||n.slug)]}),(0,T.jsx)(g.MediaUploadCheck,{fallback:al,children:(0,T.jsx)(g.MediaUpload,{title:i?.labels?.featured_image||il,onSelect:s,unstableFeaturedImageFlow:!0,allowedTypes:nl,modalClass:"editor-post-featured-image__media-modal",render:({open:e})=>(0,T.jsxs)("div",{className:"editor-post-featured-image__container",children:[(0,T.jsxs)(Tn.Button,{ref:l,className:t?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,"aria-label":t?(0,m.__)("Edit or replace the image"):null,"aria-describedby":t?`editor-post-featured-image-${t}-describedby`:null,children:[!!t&&n&&(0,T.jsx)("img",{className:"editor-post-featured-image__preview-image",src:h,alt:""}),c&&(0,T.jsx)(Tn.Spinner,{}),!t&&!c&&(i?.labels?.set_featured_image||rl)]}),!!t&&(0,T.jsxs)(Tn.__experimentalHStack,{className:"editor-post-featured-image__actions",children:[(0,T.jsx)(Tn.Button,{className:"editor-post-featured-image__action",onClick:e,children:(0,m.__)("Replace")}),(0,T.jsx)(Tn.Button,{className:"editor-post-featured-image__action",onClick:()=>{o(),l.current.focus()},children:(0,m.__)("Remove")})]}),(0,T.jsx)(Tn.DropZone,{onFilesDrop:_})]}),value:t})})]})]})})),ul="featured-image";function pl({withPanelBody:e=!0}){var t;const{postType:s,isEnabled:o,isOpened:n}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,isEditorPanelEnabled:s,isEditorPanelOpened:o}=e(cn),{getPostType:n}=e(b.store);return{postType:n(t("type")),isEnabled:s(ul),isOpened:o(ul)}}),[]),{toggleEditorPanelOpened:i}=(0,d.useDispatch)(cn);return o?e?(0,T.jsx)(ol,{children:(0,T.jsx)(Tn.PanelBody,{title:null!==(t=s?.labels?.featured_image)&&void 0!==t?t:(0,m.__)("Featured image"),opened:n,onToggle:()=>i(ul),children:(0,T.jsx)(dl,{})})}):(0,T.jsx)(ol,{children:(0,T.jsx)(dl,{})}):null}const hl=function({children:e}){return(0,d.useSelect)((e=>e(cn).getEditorSettings().disablePostFormats),[])?null:(0,T.jsx)(fr,{supportKeys:"post-formats",children:e})},ml=[{id:"aside",caption:(0,m.__)("Aside")},{id:"audio",caption:(0,m.__)("Audio")},{id:"chat",caption:(0,m.__)("Chat")},{id:"gallery",caption:(0,m.__)("Gallery")},{id:"image",caption:(0,m.__)("Image")},{id:"link",caption:(0,m.__)("Link")},{id:"quote",caption:(0,m.__)("Quote")},{id:"standard",caption:(0,m.__)("Standard")},{id:"status",caption:(0,m.__)("Status")},{id:"video",caption:(0,m.__)("Video")}].sort(((e,t)=>{const s=e.caption.toUpperCase(),o=t.caption.toUpperCase();return s<o?-1:s>o?1:0}));function gl(){const e=`post-format-selector-${(0,pn.useInstanceId)(gl)}`,{postFormat:t,suggestedFormat:s,supportedFormats:o}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getSuggestedPostFormat:s}=e(cn),o=t("format"),n=e(b.store).getThemeSupports();return{postFormat:null!=o?o:"standard",suggestedFormat:s(),supportedFormats:n.formats}}),[]),n=ml.filter((e=>o?.includes(e.id)||t===e.id)),i=n.find((e=>e.id===s)),{editPost:r}=(0,d.useDispatch)(cn),a=e=>r({format:e});return(0,T.jsx)(hl,{children:(0,T.jsxs)("div",{className:"editor-post-format",children:[(0,T.jsx)(Tn.RadioControl,{className:"editor-post-format__options",label:(0,m.__)("Post Format"),selected:t,onChange:e=>a(e),id:e,options:n.map((e=>({label:e.caption,value:e.id}))),hideLabelFromVision:!0}),i&&i.id!==t&&(0,T.jsx)("p",{className:"editor-post-format__suggestion",children:(0,T.jsx)(Tn.Button,{variant:"link",onClick:()=>a(i.id),children:(0,m.sprintf)((0,m.__)("Apply suggested format: %s"),i.caption)})})]})})}const _l=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})});const fl=function({children:e}){const{lastRevisionId:t,revisionsCount:s}=(0,d.useSelect)((e=>{const{getCurrentPostLastRevisionId:t,getCurrentPostRevisionsCount:s}=e(cn);return{lastRevisionId:t(),revisionsCount:s()}}),[]);return!t||s<2?null:(0,T.jsx)(fr,{supportKeys:"revisions",children:e})};function bl(){return(0,d.useSelect)((e=>{const{getCurrentPostLastRevisionId:t,getCurrentPostRevisionsCount:s}=e(cn);return{lastRevisionId:t(),revisionsCount:s()}}),[])}function yl(){const{lastRevisionId:e,revisionsCount:t}=bl();return(0,T.jsx)(fl,{children:(0,T.jsx)(_r,{label:(0,m.__)("Revisions"),children:(0,T.jsx)(Tn.Button,{href:(0,S.addQueryArgs)("revision.php",{revision:e}),className:"editor-private-post-last-revision__button",text:t,variant:"tertiary"})})})}const xl=function(){const{lastRevisionId:e,revisionsCount:t}=bl();return(0,T.jsx)(fl,{children:(0,T.jsx)(Tn.Button,{href:(0,S.addQueryArgs)("revision.php",{revision:e}),className:"editor-post-last-revision__title",icon:_l,iconPosition:"right",text:(0,m.sprintf)((0,m.__)("Revisions (%s)"),t)})})};const vl=function(){return(0,T.jsx)(fl,{children:(0,T.jsx)(Tn.PanelBody,{className:"editor-post-last-revision__panel",children:(0,T.jsx)(xl,{})})})};function wl(){const e="core/editor/post-locked-modal-"+(0,pn.useInstanceId)(wl),{autosave:t,updatePostLock:s}=(0,d.useDispatch)(cn),{isLocked:o,isTakeover:n,user:i,postId:r,postLockUtils:a,activePostLock:l,postType:c,previewLink:u}=(0,d.useSelect)((e=>{const{isPostLocked:t,isPostLockTakeover:s,getPostLockUser:o,getCurrentPostId:n,getActivePostLock:i,getEditedPostAttribute:r,getEditedPostPreviewLink:a,getEditorSettings:l}=e(cn),{getPostType:c}=e(b.store);return{isLocked:t(),isTakeover:s(),user:o(),postId:n(),postLockUtils:l().postLockUtils,activePostLock:i(),postType:c(r("type")),previewLink:a()}}),[]);if((0,C.useEffect)((()=>{function n(){if(o||!l)return;const e=new window.FormData;if(e.append("action","wp-remove-post-lock"),e.append("_wpnonce",a.unlockNonce),e.append("post_ID",r),e.append("active_post_lock",l),window.navigator.sendBeacon)window.navigator.sendBeacon(a.ajaxUrl,e);else{const t=new window.XMLHttpRequest;t.open("POST",a.ajaxUrl,!1),t.send(e)}}return(0,bs.addAction)("heartbeat.send",e,(function(e){o||(e["wp-refresh-post-lock"]={lock:l,post_id:r})})),(0,bs.addAction)("heartbeat.tick",e,(function(e){if(!e["wp-refresh-post-lock"])return;const o=e["wp-refresh-post-lock"];o.lock_error?(t(),s({isLocked:!0,isTakeover:!0,user:{name:o.lock_error.name,avatar:o.lock_error.avatar_src_2x}})):o.new_lock&&s({isLocked:!1,activePostLock:o.new_lock})})),window.addEventListener("beforeunload",n),()=>{(0,bs.removeAction)("heartbeat.send",e),(0,bs.removeAction)("heartbeat.tick",e),window.removeEventListener("beforeunload",n)}}),[]),!o)return null;const p=i.name,h=i.avatar,g=(0,S.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:r,action:"edit",_wpnonce:a.nonce}),_=(0,S.addQueryArgs)("edit.php",{post_type:c?.slug}),f=(0,m.__)("Exit editor");return(0,T.jsx)(Tn.Modal,{title:n?(0,m.__)("Someone else has taken over this post"):(0,m.__)("This post is already being edited"),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,size:"medium",children:(0,T.jsxs)(Tn.__experimentalHStack,{alignment:"top",spacing:6,children:[!!h&&(0,T.jsx)("img",{src:h,alt:(0,m.__)("Avatar"),className:"editor-post-locked-modal__avatar",width:64,height:64}),(0,T.jsxs)("div",{children:[!!n&&(0,T.jsx)("p",{children:(0,C.createInterpolateElement)(p?(0,m.sprintf)((0,m.__)("<strong>%s</strong> now has editing control of this post (<PreviewLink />). Don’t worry, your changes up to this moment have been saved."),p):(0,m.__)("Another user now has editing control of this post (<PreviewLink />). Don’t worry, your changes up to this moment have been saved."),{strong:(0,T.jsx)("strong",{}),PreviewLink:(0,T.jsx)(Tn.ExternalLink,{href:u,children:(0,m.__)("preview")})})}),!n&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("p",{children:(0,C.createInterpolateElement)(p?(0,m.sprintf)((0,m.__)("<strong>%s</strong> is currently working on this post (<PreviewLink />), which means you cannot make changes, unless you take over."),p):(0,m.__)("Another user is currently working on this post (<PreviewLink />), which means you cannot make changes, unless you take over."),{strong:(0,T.jsx)("strong",{}),PreviewLink:(0,T.jsx)(Tn.ExternalLink,{href:u,children:(0,m.__)("preview")})})}),(0,T.jsx)("p",{children:(0,m.__)("If you take over, the other user will lose editing control to the post, but their changes will be saved.")})]}),(0,T.jsxs)(Tn.__experimentalHStack,{className:"editor-post-locked-modal__buttons",justify:"flex-end",children:[!n&&(0,T.jsx)(Tn.Button,{variant:"tertiary",href:g,children:(0,m.__)("Take over")}),(0,T.jsx)(Tn.Button,{variant:"primary",href:_,children:f})]})]})]})})}const Sl=function({children:e}){const{hasPublishAction:t,isPublished:s}=(0,d.useSelect)((e=>{var t;const{isCurrentPostPublished:s,getCurrentPost:o}=e(cn);return{hasPublishAction:null!==(t=o()._links?.["wp:action-publish"])&&void 0!==t&&t,isPublished:s()}}),[]);return s||!t?null:e};const kl=function(){const e=(0,d.useSelect)((e=>e(cn).getEditedPostAttribute("status")),[]),{editPost:t}=(0,d.useDispatch)(cn);return(0,T.jsx)(Sl,{children:(0,T.jsx)(Tn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,m.__)("Pending review"),checked:"pending"===e,onChange:()=>{t({status:"pending"===e?"draft":"pending"})}})})};function Pl({className:e,textContent:t,forceIsAutosaveable:s,role:o,onPreview:n}){const{postId:i,currentPostLink:r,previewLink:a,isSaveable:l,isViewable:c}=(0,d.useSelect)((e=>{var t;const s=e(cn),o=e(b.store).getPostType(s.getCurrentPostType("type"));return{postId:s.getCurrentPostId(),currentPostLink:s.getCurrentPostAttribute("link"),previewLink:s.getEditedPostPreviewLink(),isSaveable:s.isEditedPostSaveable(),isViewable:null!==(t=o?.viewable)&&void 0!==t&&t}}),[]),{__unstableSaveForPreview:u}=(0,d.useDispatch)(cn);if(!c)return null;const p=`wp-preview-${i}`,h=a||r;return(0,T.jsx)(Tn.Button,{variant:e?void 0:"tertiary",className:e||"editor-post-preview",href:h,target:p,__experimentalIsFocusable:!0,disabled:!l,onClick:async e=>{e.preventDefault();const t=window.open("",p);t.focus(),function(e){let t=(0,C.renderToString)((0,T.jsxs)("div",{className:"editor-post-preview-button__interstitial-message",children:[(0,T.jsxs)(Tn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96",children:[(0,T.jsx)(Tn.Path,{className:"outer",d:"M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",fill:"none"}),(0,T.jsx)(Tn.Path,{className:"inner",d:"M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z",fill:"none"})]}),(0,T.jsx)("p",{children:(0,m.__)("Generating preview…")})]}));t+='\n\t\t<style>\n\t\t\tbody {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\twidth: 100vw;\n\t\t\t}\n\t\t\t@-webkit-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-moz-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-o-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg {\n\t\t\t\twidth: 192px;\n\t\t\t\theight: 192px;\n\t\t\t\tstroke: #555d66;\n\t\t\t\tstroke-width: 0.75;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg .outer,\n\t\t\t.editor-post-preview-button__interstitial-message svg .inner {\n\t\t\t\tstroke-dasharray: 280;\n\t\t\t\tstroke-dashoffset: 280;\n\t\t\t\t-webkit-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-moz-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-o-animation: paint 1.5s ease infinite alternate;\n\t\t\t\tanimation: paint 1.5s ease infinite alternate;\n\t\t\t}\n\t\t\tp {\n\t\t\t\ttext-align: center;\n\t\t\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\t\t\t}\n\t\t</style>\n\t',t=(0,bs.applyFilters)("editor.PostPreview.interstitialMarkup",t),e.write(t),e.title=(0,m.__)("Generating preview…"),e.close()}(t.document);const o=await u({forceIsAutosaveable:s});t.location=o,n?.()},role:o,size:"compact",children:t||(0,T.jsxs)(T.Fragment,{children:[(0,m._x)("Preview","imperative verb"),(0,T.jsx)(Tn.VisuallyHidden,{as:"span",children:(0,m.__)("(opens in a new tab)")})]})})}function Cl(){const e=(0,pn.useViewportMatch)("medium","<"),{isPublished:t,isBeingScheduled:s,isSaving:o,isPublishing:n,hasPublishAction:i,isAutosaving:r,hasNonPostEntityChanges:a,postStatusHasChanged:l,postStatus:c}=(0,d.useSelect)((e=>{var t;const{isCurrentPostPublished:s,isEditedPostBeingScheduled:o,isSavingPost:n,isPublishingPost:i,getCurrentPost:r,getCurrentPostType:a,isAutosavingPost:l,getPostEdits:c,getEditedPostAttribute:d}=e(cn);return{isPublished:s(),isBeingScheduled:o(),isSaving:n(),isPublishing:i(),hasPublishAction:null!==(t=r()._links?.["wp:action-publish"])&&void 0!==t&&t,postType:a(),isAutosaving:l(),hasNonPostEntityChanges:e(cn).hasNonPostEntityChanges(),postStatusHasChanged:!!c()?.status,postStatus:d("status")}}),[]);return n?(0,m.__)("Publishing…"):(t||s)&&o&&!r?(0,m.__)("Saving…"):i?a||t||l&&!["future","publish"].includes(c)||!l&&"future"===c?(0,m.__)("Save"):s?(0,m.__)("Schedule"):(0,m.__)("Publish"):e?(0,m.__)("Publish"):(0,m.__)("Submit for Review")}const jl=()=>{};class Tl extends C.Component{constructor(e){super(e),this.buttonNode=(0,C.createRef)(),this.createOnClick=this.createOnClick.bind(this),this.closeEntitiesSavedStates=this.closeEntitiesSavedStates.bind(this),this.state={entitiesSavedStatesCallback:!1}}componentDidMount(){this.props.focusOnMount&&(this.timeoutID=setTimeout((()=>{this.buttonNode.current.focus()}),0))}componentWillUnmount(){clearTimeout(this.timeoutID)}createOnClick(e){return(...t)=>{const{hasNonPostEntityChanges:s,setEntitiesSavedStatesCallback:o}=this.props;return s&&o?(this.setState({entitiesSavedStatesCallback:()=>e(...t)}),o((()=>this.closeEntitiesSavedStates)),jl):e(...t)}}closeEntitiesSavedStates(e){const{postType:t,postId:s}=this.props,{entitiesSavedStatesCallback:o}=this.state;this.setState({entitiesSavedStatesCallback:!1},(()=>{e&&e.some((e=>"postType"===e.kind&&e.name===t&&e.key===s))&&o()}))}render(){const{forceIsDirty:e,hasPublishAction:t,isBeingScheduled:s,isOpen:o,isPostSavingLocked:n,isPublishable:i,isPublished:r,isSaveable:a,isSaving:l,isAutoSaving:c,isToggle:d,savePostStatus:u,onSubmit:p=jl,onToggle:h,visibility:m,hasNonPostEntityChanges:g,isSavingNonPostEntityChanges:_,postStatus:f,postStatusHasChanged:b}=this.props,y=(l||!a||n||!i&&!e)&&(!g||_),x=(r||l||!a||!i&&!e)&&(!g||_);let v="publish";b?v=f:t?"private"===m?v="private":s&&(v="future"):v="pending";const w={"aria-disabled":y,className:"editor-post-publish-button",isBusy:!c&&l,variant:"primary",onClick:this.createOnClick((()=>{y||(p(),u(v))}))},S={"aria-disabled":x,"aria-expanded":o,className:"editor-post-publish-panel__toggle",isBusy:l&&r,variant:"primary",size:"compact",onClick:this.createOnClick((()=>{x||h()}))},k=d?S:w;return(0,T.jsx)(T.Fragment,{children:(0,T.jsx)(Tn.Button,{ref:this.buttonNode,...k,className:`${k.className} editor-post-publish-button__button`,size:"compact",children:(0,T.jsx)(Cl,{})})})}}const El=(0,pn.compose)([(0,d.withSelect)((e=>{var t;const{isSavingPost:s,isAutosavingPost:o,isEditedPostBeingScheduled:n,getEditedPostVisibility:i,isCurrentPostPublished:r,isEditedPostSaveable:a,isEditedPostPublishable:l,isPostSavingLocked:c,getCurrentPost:d,getCurrentPostType:u,getCurrentPostId:p,hasNonPostEntityChanges:h,isSavingNonPostEntityChanges:m,getEditedPostAttribute:g,getPostEdits:_}=e(cn);return{isSaving:s(),isAutoSaving:o(),isBeingScheduled:n(),visibility:i(),isSaveable:a(),isPostSavingLocked:c(),isPublishable:l(),isPublished:r(),hasPublishAction:null!==(t=d()._links?.["wp:action-publish"])&&void 0!==t&&t,postType:u(),postId:p(),postStatus:g("status"),postStatusHasChanged:_()?.status,hasNonPostEntityChanges:h(),isSavingNonPostEntityChanges:m()}})),(0,d.withDispatch)((e=>{const{editPost:t,savePost:s}=e(cn);return{savePostStatus:e=>{t({status:e},{undoIgnore:!0}),s()}}}))])(Tl),Bl=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,T.jsx)(j.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})}),Il={public:{label:(0,m.__)("Public"),info:(0,m.__)("Visible to everyone.")},private:{label:(0,m.__)("Private"),info:(0,m.__)("Only visible to site admins and editors.")},password:{label:(0,m.__)("Password protected"),info:(0,m.__)("Only those with the password can view this post.")}};function Nl({onClose:e}){const t=(0,pn.useInstanceId)(Nl),{status:s,visibility:o,password:n}=(0,d.useSelect)((e=>({status:e(cn).getEditedPostAttribute("status"),visibility:e(cn).getEditedPostVisibility(),password:e(cn).getEditedPostAttribute("password")}))),{editPost:i,savePost:r}=(0,d.useDispatch)(cn),[a,l]=(0,C.useState)(!!n),[c,u]=(0,C.useState)(!1);return(0,T.jsxs)("div",{className:"editor-post-visibility",children:[(0,T.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,m.__)("Visibility"),help:(0,m.__)("Control how this post is viewed."),onClose:e}),(0,T.jsxs)("fieldset",{className:"editor-post-visibility__fieldset",children:[(0,T.jsx)(Tn.VisuallyHidden,{as:"legend",children:(0,m.__)("Visibility")}),(0,T.jsx)(Al,{instanceId:t,value:"public",label:Il.public.label,info:Il.public.info,checked:"public"===o&&!a,onChange:()=>{i({status:"private"===o?"draft":s,password:""}),l(!1)}}),(0,T.jsx)(Al,{instanceId:t,value:"private",label:Il.private.label,info:Il.private.info,checked:"private"===o,onChange:()=>{u(!0)}}),(0,T.jsx)(Al,{instanceId:t,value:"password",label:Il.password.label,info:Il.password.info,checked:a,onChange:()=>{i({status:"private"===o?"draft":s,password:n||""}),l(!0)}}),a&&(0,T.jsxs)("div",{className:"editor-post-visibility__password",children:[(0,T.jsx)(Tn.VisuallyHidden,{as:"label",htmlFor:`editor-post-visibility__password-input-${t}`,children:(0,m.__)("Create password")}),(0,T.jsx)("input",{className:"editor-post-visibility__password-input",id:`editor-post-visibility__password-input-${t}`,type:"text",onChange:e=>{i({password:e.target.value})},value:n,placeholder:(0,m.__)("Use a secure password")})]})]}),(0,T.jsx)(Tn.__experimentalConfirmDialog,{isOpen:c,onConfirm:()=>{i({status:"private",password:""}),l(!1),u(!1),r()},onCancel:()=>{u(!1)},confirmButtonText:(0,m.__)("Publish"),size:"medium",children:(0,m.__)("Would you like to privately publish this post now?")})]})}function Al({instanceId:e,value:t,label:s,info:o,...n}){return(0,T.jsxs)("div",{className:"editor-post-visibility__choice",children:[(0,T.jsx)("input",{type:"radio",name:`editor-post-visibility__setting-${e}`,value:t,id:`editor-post-${t}-${e}`,"aria-describedby":`editor-post-${t}-${e}-description`,className:"editor-post-visibility__radio",...n}),(0,T.jsx)("label",{htmlFor:`editor-post-${t}-${e}`,className:"editor-post-visibility__label",children:s}),(0,T.jsx)("p",{id:`editor-post-${t}-${e}-description`,className:"editor-post-visibility__info",children:o})]})}function Dl(){return Rl()}function Rl(){const e=(0,d.useSelect)((e=>e(cn).getEditedPostVisibility()));return Il[e]?.label}function Ml(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function Ol(e){const t=Ml(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Ll(e){const t=Ml(e),s=t.getMonth();return t.setFullYear(t.getFullYear(),s+1,0),t.setHours(23,59,59,999),t}Math.pow(10,8);const Fl=6e4,Vl=36e5;function Ul(e,t){const s=t?.additionalDigits??2,o=function(e){const t={},s=e.split(zl.dateTimeDelimiter);let o;if(s.length>2)return t;/:/.test(s[0])?o=s[0]:(t.date=s[0],o=s[1],zl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(zl.timeZoneDelimiter)[0],o=e.substr(t.date.length,e.length)));if(o){const e=zl.timezone.exec(o);e?(t.time=o.replace(e[1],""),t.timezone=e[1]):t.time=o}return t}(e);let n;if(o.date){const e=function(e,t){const s=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),o=e.match(s);if(!o)return{year:NaN,restDateString:""};const n=o[1]?parseInt(o[1]):null,i=o[2]?parseInt(o[2]):null;return{year:null===i?n:100*i,restDateString:e.slice((o[1]||o[2]).length)}}(o.date,s);n=function(e,t){if(null===t)return new Date(NaN);const s=e.match(Hl);if(!s)return new Date(NaN);const o=!!s[4],n=Wl(s[1]),i=Wl(s[2])-1,r=Wl(s[3]),a=Wl(s[4]),l=Wl(s[5])-1;if(o)return function(e,t,s){return t>=1&&t<=53&&s>=0&&s<=6}(0,a,l)?function(e,t,s){const o=new Date(0);o.setUTCFullYear(e,0,4);const n=o.getUTCDay()||7,i=7*(t-1)+s+1-n;return o.setUTCDate(o.getUTCDate()+i),o}(t,a,l):new Date(NaN);{const e=new Date(0);return function(e,t,s){return t>=0&&t<=11&&s>=1&&s<=(Zl[t]||(Yl(e)?29:28))}(t,i,r)&&function(e,t){return t>=1&&t<=(Yl(e)?366:365)}(t,n)?(e.setUTCFullYear(t,i,Math.max(n,r)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!n||isNaN(n.getTime()))return new Date(NaN);const i=n.getTime();let r,a=0;if(o.time&&(a=function(e){const t=e.match(Gl);if(!t)return NaN;const s=Kl(t[1]),o=Kl(t[2]),n=Kl(t[3]);if(!function(e,t,s){if(24===e)return 0===t&&0===s;return s>=0&&s<60&&t>=0&&t<60&&e>=0&&e<25}(s,o,n))return NaN;return s*Vl+o*Fl+1e3*n}(o.time),isNaN(a)))return new Date(NaN);if(!o.timezone){const e=new Date(i+a),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return r=function(e){if("Z"===e)return 0;const t=e.match($l);if(!t)return 0;const s="+"===t[1]?-1:1,o=parseInt(t[2]),n=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,n))return NaN;return s*(o*Vl+n*Fl)}(o.timezone),isNaN(r)?new Date(NaN):new Date(i+a+r)}const zl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Hl=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Gl=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,$l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Wl(e){return e?parseInt(e):1}function Kl(e){return e&&parseFloat(e.replace(",","."))||0}const Zl=[31,null,31,30,31,30,31,31,30,31,30,31];function Yl(e){return e%400==0||e%4==0&&e%100!=0}const{PrivatePublishDateTimePicker:ql}=h(g.privateApis);function Ql(e){return(0,T.jsx)(Xl,{...e,showPopoverHeaderActions:!0,isCompact:!1})}function Xl({onClose:e,showPopoverHeaderActions:t,isCompact:s}){const{postDate:o,postType:n}=(0,d.useSelect)((e=>({postDate:e(cn).getEditedPostAttribute("date"),postType:e(cn).getCurrentPostType()})),[]),{editPost:i}=(0,d.useDispatch)(cn),[r,a]=(0,C.useState)(Ol(new Date(o))),l=(0,d.useSelect)((e=>e(b.store).getEntityRecords("postType",n,{status:"publish,future",after:Ol(r).toISOString(),before:Ll(r).toISOString(),exclude:[e(cn).getCurrentPostId()],per_page:100,_fields:"id,date"})),[r,n]),c=(0,C.useMemo)((()=>(l||[]).map((({date:e})=>({date:new Date(e)})))),[l]),u=(0,w.getSettings)(),p=/a(?!\\)/i.test(u.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,T.jsx)(ql,{currentDate:o,onChange:e=>i({date:e}),is12Hour:p,events:c,onMonthPreviewed:e=>a(Ul(e)),onClose:e,isCompact:s,showPopoverHeaderActions:t})}function Jl(e){return ec(e)}function ec({full:e=!1}={}){const{date:t,isFloating:s}=(0,d.useSelect)((e=>({date:e(cn).getEditedPostAttribute("date"),isFloating:e(cn).isEditedPostDateFloating()})),[]);return e?tc(t):function(e,{isFloating:t=!1,now:s=new Date}={}){if(!e||t)return(0,m.__)("Immediately");if(!function(e){const{timezone:t}=(0,w.getSettings)(),s=Number(t.offset),o=e.getTimezoneOffset()/60*-1;return s===o}(s))return tc(e);const o=(0,w.getDate)(e);if(sc(o,s))return(0,m.sprintf)((0,m.__)("Today at %s"),(0,w.dateI18n)((0,m._x)("g:i a","post schedule time format"),o));const n=new Date(s);if(n.setDate(n.getDate()+1),sc(o,n))return(0,m.sprintf)((0,m.__)("Tomorrow at %s"),(0,w.dateI18n)((0,m._x)("g:i a","post schedule time format"),o));if(o.getFullYear()===s.getFullYear())return(0,w.dateI18n)((0,m._x)("F j g:i a","post schedule date format without year"),o);return(0,w.dateI18n)((0,m._x)("F j, Y g:i a","post schedule full date format"),o)}(t,{isFloating:s})}function tc(e){const t=(0,w.getDate)(e),s=function(){const{timezone:e}=(0,w.getSettings)();if(e.abbr&&isNaN(Number(e.abbr)))return e.abbr;const t=e.offset<0?"":"+";return`UTC${t}${e.offsetFormatted}`}(),o=(0,w.dateI18n)((0,m._x)("F j, Y g:i a","post schedule full date format"),t);return(0,m.isRTL)()?`${s} ${o}`:`${o} ${s}`}function sc(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}const oc=3,nc={per_page:10,orderby:"count",order:"desc",hide_empty:!0,_fields:"id,name,count",context:"view"};function ic({onSelect:e,taxonomy:t}){const{_terms:s,showTerms:o}=(0,d.useSelect)((e=>{const s=e(b.store).getEntityRecords("taxonomy",t.slug,nc);return{_terms:s,showTerms:s?.length>=oc}}),[t.slug]);if(!o)return null;const n=jr(s);return(0,T.jsxs)("div",{className:"editor-post-taxonomies__flat-term-most-used",children:[(0,T.jsx)(Tn.BaseControl.VisualLabel,{as:"h3",className:"editor-post-taxonomies__flat-term-most-used-label",children:t.labels.most_used}),(0,T.jsx)("ul",{role:"list",className:"editor-post-taxonomies__flat-term-most-used-list",children:n.map((t=>(0,T.jsx)("li",{children:(0,T.jsx)(Tn.Button,{variant:"link",onClick:()=>e(t),children:t.name})},t.id)))})]})}const rc=[],ac=20,lc={per_page:ac,_fields:"id,name",context:"view"},cc=(e,t)=>Pr(e).toLowerCase()===Pr(t).toLowerCase(),dc=(e,t)=>e.map((e=>t.find((t=>cc(t.name,e)))?.id)).filter((e=>void 0!==e));function uc({slug:e}){var t,s;const[o,n]=(0,C.useState)([]),[i,r]=(0,C.useState)(""),a=(0,pn.useDebounce)(r,500),{terms:l,termIds:c,taxonomy:u,hasAssignAction:p,hasCreateAction:h,hasResolvedTerms:g}=(0,d.useSelect)((t=>{var s,o;const{getCurrentPost:n,getEditedPostAttribute:i}=t(cn),{getEntityRecords:r,getTaxonomy:a,hasFinishedResolution:l}=t(b.store),c=n(),d=a(e),u=d?i(d.rest_base):rc,p={...lc,include:u.join(","),per_page:-1};return{hasCreateAction:!!d&&(null!==(s=c._links?.["wp:action-create-"+d.rest_base])&&void 0!==s&&s),hasAssignAction:!!d&&(null!==(o=c._links?.["wp:action-assign-"+d.rest_base])&&void 0!==o&&o),taxonomy:d,termIds:u,terms:u.length?r("taxonomy",e,p):rc,hasResolvedTerms:l("getEntityRecords",["taxonomy",e,p])}}),[e]),{searchResults:_}=(0,d.useSelect)((t=>{const{getEntityRecords:s}=t(b.store);return{searchResults:i?s("taxonomy",e,{...lc,search:i}):rc}}),[i,e]);(0,C.useEffect)((()=>{if(g){const e=(null!=l?l:[]).map((e=>Pr(e.name)));n(e)}}),[l,g]);const f=(0,C.useMemo)((()=>(null!=_?_:[]).map((e=>Pr(e.name)))),[_]),{editPost:y}=(0,d.useDispatch)(cn),{saveEntityRecord:x}=(0,d.useDispatch)(b.store),{createErrorNotice:v}=(0,d.useDispatch)(fs.store);if(!p)return null;function w(e){y({[u.rest_base]:e})}const S=null!==(t=u?.labels?.add_new_item)&&void 0!==t?t:"post_tag"===e?(0,m.__)("Add new tag"):(0,m.__)("Add new Term"),k=null!==(s=u?.labels?.singular_name)&&void 0!==s?s:"post_tag"===e?(0,m.__)("Tag"):(0,m.__)("Term"),P=(0,m.sprintf)((0,m._x)("%s added","term"),k),j=(0,m.sprintf)((0,m._x)("%s removed","term"),k),E=(0,m.sprintf)((0,m._x)("Remove %s","term"),k);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Tn.FormTokenField,{__next40pxDefaultSize:!0,value:o,suggestions:f,onChange:function(t){const s=[...null!=l?l:[],...null!=_?_:[]],o=t.reduce(((e,t)=>(e.some((e=>e.toLowerCase()===t.toLowerCase()))||e.push(t),e)),[]),i=o.filter((e=>!s.find((t=>cc(t.name,e)))));n(o),0!==i.length?h&&Promise.all(i.map((t=>async function(t){try{const s=await x("taxonomy",e,t,{throwOnError:!0});return Cr(s)}catch(e){if("term_exists"!==e.code)throw e;return{id:e.data.term_id,name:t.name}}}({name:t})))).then((e=>{const t=s.concat(e);w(dc(o,t))})).catch((e=>{v(e.message,{type:"snackbar"}),w(dc(o,s))})):w(dc(o,s))},onInputChange:a,maxSuggestions:ac,label:S,messages:{added:P,removed:j,remove:E}}),(0,T.jsx)(ic,{taxonomy:u,onSelect:function(t){var s;if(c.includes(t.id))return;const o=[...c,t.id],n="post_tag"===e?(0,m.__)("Tag"):(0,m.__)("Term"),i=(0,m.sprintf)((0,m._x)("%s added","term"),null!==(s=u?.labels?.singular_name)&&void 0!==s?s:n);(0,ms.speak)(i,"assertive"),w(o)}})]})}const pc=(0,Tn.withFilters)("editor.PostTaxonomyType")(uc),hc=()=>{const e=[(0,m.__)("Suggestion:"),(0,T.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,m.__)("Add tags")},"label")];return(0,T.jsxs)(Tn.PanelBody,{initialOpen:!1,title:e,children:[(0,T.jsx)("p",{children:(0,m.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")}),(0,T.jsx)(pc,{slug:"post_tag"})]})},mc=()=>{const{hasTags:e,isPostTypeSupported:t}=(0,d.useSelect)((e=>{const t=e(cn).getCurrentPostType(),s=e(b.store).getTaxonomy("post_tag"),o=s?.types?.includes(t),n=void 0!==s,i=s&&e(cn).getEditedPostAttribute(s.rest_base);return{hasTags:!!i?.length,isPostTypeSupported:n&&o}}),[]),[s]=(0,C.useState)(e);return t?s?null:(0,T.jsx)(hc,{}):null},gc=(e,t)=>ml.filter((t=>e?.includes(t.id))).find((e=>e.id===t)),_c=({suggestedPostFormat:e,suggestionText:t,onUpdatePostFormat:s})=>(0,T.jsx)(Tn.Button,{variant:"link",onClick:()=>s(e),children:t});function fc(){const{currentPostFormat:e,suggestion:t}=(0,d.useSelect)((e=>{var t;const{getEditedPostAttribute:s,getSuggestedPostFormat:o}=e(cn),n=null!==(t=e(b.store).getThemeSupports().formats)&&void 0!==t?t:[];return{currentPostFormat:s("format"),suggestion:gc(n,o())}}),[]),{editPost:s}=(0,d.useDispatch)(cn),o=[(0,m.__)("Suggestion:"),(0,T.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,m.__)("Use a post format")},"label")];return t&&t.id!==e?(0,T.jsxs)(Tn.PanelBody,{initialOpen:!1,title:o,children:[(0,T.jsx)("p",{children:(0,m.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")}),(0,T.jsx)("p",{children:(0,T.jsx)(_c,{onUpdatePostFormat:e=>s({format:e}),suggestedPostFormat:t.id,suggestionText:(0,m.sprintf)((0,m.__)('Apply the "%1$s" format.'),t.caption)})})]}):null}const bc={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent",context:"view"},yc=8,xc=[];function vc({slug:e}){var t,s;const[o,n]=(0,C.useState)(!1),[i,r]=(0,C.useState)(""),[a,l]=(0,C.useState)(""),[c,u]=(0,C.useState)(!1),[p,h]=(0,C.useState)(""),[g,_]=(0,C.useState)([]),f=(0,pn.useDebounce)(ms.speak,500),{hasCreateAction:y,hasAssignAction:x,terms:v,loading:w,availableTerms:S,taxonomy:k}=(0,d.useSelect)((t=>{var s,o;const{getCurrentPost:n,getEditedPostAttribute:i}=t(cn),{getTaxonomy:r,getEntityRecords:a,isResolving:l}=t(b.store),c=r(e),d=n();return{hasCreateAction:!!c&&(null!==(s=d._links?.["wp:action-create-"+c.rest_base])&&void 0!==s&&s),hasAssignAction:!!c&&(null!==(o=d._links?.["wp:action-assign-"+c.rest_base])&&void 0!==o&&o),terms:c?i(c.rest_base):xc,loading:l("getEntityRecords",["taxonomy",e,bc]),availableTerms:a("taxonomy",e,bc)||xc,taxonomy:c}}),[e]),{editPost:P}=(0,d.useDispatch)(cn),{saveEntityRecord:j}=(0,d.useDispatch)(b.store),E=(0,C.useMemo)((()=>function(e,t){const s=e=>-1!==t.indexOf(e.id)||void 0!==e.children&&e.children.map(s).filter((e=>e)).length>0,o=[...e];return o.sort(((e,t)=>{const o=s(e),n=s(t);return o===n?0:o&&!n?-1:!o&&n?1:0})),o}(kr(S),v)),[S]),{createErrorNotice:B}=(0,d.useDispatch)(fs.store);if(!x)return null;const I=e=>{P({[k.rest_base]:e})},N=e=>e.map((e=>(0,T.jsxs)("div",{className:"editor-post-taxonomies__hierarchical-terms-choice",children:[(0,T.jsx)(Tn.CheckboxControl,{__nextHasNoMarginBottom:!0,checked:-1!==v.indexOf(e.id),onChange:()=>{(e=>{const t=v.includes(e)?v.filter((t=>t!==e)):[...v,e];I(t)})(parseInt(e.id,10))},label:(0,Mo.decodeEntities)(e.name)}),!!e.children.length&&(0,T.jsx)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices",children:N(e.children)})]},e.id))),A=(t,s,o)=>{var n;return null!==(n=k?.labels?.[t])&&void 0!==n?n:"category"===e?s:o},D=A("add_new_item",(0,m.__)("Add new category"),(0,m.__)("Add new term")),R=A("new_item_name",(0,m.__)("Add new category"),(0,m.__)("Add new term")),M=A("parent_item",(0,m.__)("Parent Category"),(0,m.__)("Parent Term")),O=`— ${M} —`,L=D,F=null!==(t=k?.labels?.search_items)&&void 0!==t?t:(0,m.__)("Search Terms"),V=null!==(s=k?.name)&&void 0!==s?s:(0,m.__)("Terms"),U=S.length>=yc;return(0,T.jsxs)(Tn.Flex,{direction:"column",gap:"4",children:[U&&(0,T.jsx)(Tn.TextControl,{__nextHasNoMarginBottom:!0,label:F,value:p,onChange:e=>{const t=E.map(function(e){const t=s=>{if(""===e)return s;const o={...s};return o.children.length>0&&(o.children=o.children.map(t).filter((e=>e))),(-1!==o.name.toLowerCase().indexOf(e.toLowerCase())||o.children.length>0)&&o};return t}(e)).filter((e=>e)),s=e=>{let t=0;for(let o=0;o<e.length;o++)t++,void 0!==e[o].children&&(t+=s(e[o].children));return t};h(e),_(t);const o=s(t),n=(0,m.sprintf)((0,m._n)("%d result found.","%d results found.",o),o);f(n,"assertive")}}),(0,T.jsx)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",tabIndex:"0",role:"group","aria-label":V,children:N(""!==p?g:E)}),!w&&y&&(0,T.jsx)(Tn.FlexItem,{children:(0,T.jsx)(Tn.Button,{onClick:()=>{u(!c)},className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":c,variant:"link",children:D})}),c&&(0,T.jsx)("form",{onSubmit:async t=>{var s;if(t.preventDefault(),""===i||o)return;const c=function(e,t,s){return e.find((e=>(!e.parent&&!t||parseInt(e.parent)===parseInt(t))&&e.name.toLowerCase()===s.toLowerCase()))}(S,a,i);if(c)return v.some((e=>e===c.id))||I([...v,c.id]),r(""),void l("");let d;n(!0);try{d=await(u={name:i,parent:a||void 0},j("taxonomy",e,u,{throwOnError:!0}))}catch(e){return void B(e.message,{type:"snackbar"})}var u;const p="category"===e?(0,m.__)("Category"):(0,m.__)("Term"),h=(0,m.sprintf)((0,m._x)("%s added","term"),null!==(s=k?.labels?.singular_name)&&void 0!==s?s:p);(0,ms.speak)(h,"assertive"),n(!1),r(""),l(""),I([...v,d.id])},children:(0,T.jsxs)(Tn.Flex,{direction:"column",gap:"4",children:[(0,T.jsx)(Tn.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"editor-post-taxonomies__hierarchical-terms-input",label:R,value:i,onChange:e=>{r(e)},required:!0}),!!S.length&&(0,T.jsx)(Tn.TreeSelect,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:M,noOptionLabel:O,onChange:e=>{l(e)},selectedId:a,tree:E}),(0,T.jsx)(Tn.FlexItem,{children:(0,T.jsx)(Tn.Button,{__next40pxDefaultSize:!0,variant:"secondary",type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit",children:L})})]})})]})}const wc=(0,Tn.withFilters)("editor.PostTaxonomyType")(vc);const Sc=function(){const e=(0,d.useSelect)((e=>{const t=e(cn).getCurrentPostType(),{canUser:s,getEntityRecord:o,getTaxonomy:n}=e(b.store),i=n("category"),r=s("read","settings")?o("root","site")?.default_category:void 0,a=r?o("taxonomy","category",r):void 0,l=i&&i.types.some((e=>e===t)),c=i&&e(cn).getEditedPostAttribute(i.rest_base);return!!i&&!!a&&l&&(0===c?.length||1===c?.length&&a?.id===c[0])}),[]),[t,s]=(0,C.useState)(!1);if((0,C.useEffect)((()=>{e&&s(!0)}),[e]),!t)return null;const o=[(0,m.__)("Suggestion:"),(0,T.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,m.__)("Assign a category")},"label")];return(0,T.jsxs)(Tn.PanelBody,{initialOpen:!1,title:o,children:[(0,T.jsx)("p",{children:(0,m.__)("Categories provide a helpful way to group related posts together and to quickly tell readers what a post is about.")}),(0,T.jsx)(wc,{slug:"category"})]})};function kc(e){const t=[];return e.forEach((e=>{t.push(e),t.push(...kc(e.innerBlocks))})),t}function Pc(e){const{selectBlock:t}=(0,d.useDispatch)(g.store);return(0,T.jsx)(Tn.__unstableMotion.img,{tabIndex:0,role:"button","aria-label":(0,m.__)("Select image block."),onClick:()=>{t(e.clientId)},onKeyDown:s=>{"Enter"!==s.key&&" "!==s.key||(t(e.clientId),s.preventDefault())},alt:e.attributes.alt,src:e.attributes.url,animate:{opacity:1},exit:{opacity:0,scale:0},style:{width:"36px",height:"36px",objectFit:"cover",borderRadius:"2px",cursor:"pointer"},whileHover:{scale:1.08}},e.clientId)}function Cc(){const[e,t]=(0,C.useState)(!1),{editorBlocks:s,mediaUpload:o}=(0,d.useSelect)((e=>({editorBlocks:e(cn).getEditorBlocks(),mediaUpload:e(g.store).getSettings().mediaUpload})),[]),n=kc(s).filter((e=>"core/image"===e.name&&e.attributes.url&&!e.attributes.id)),{updateBlockAttributes:i}=(0,d.useDispatch)(g.store);if(!o||!n.length)return null;const r=[(0,m.__)("Suggestion:"),(0,T.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,m.__)("External media")},"label")];return(0,T.jsxs)(Tn.PanelBody,{initialOpen:!0,title:r,children:[(0,T.jsx)("p",{children:(0,m.__)("Upload external images to the Media Library. Images from different domains may load slowly, display incorrectly, or be removed unexpectedly.")}),(0,T.jsxs)("div",{style:{display:"inline-flex",flexWrap:"wrap",gap:"8px"},children:[(0,T.jsx)(Tn.__unstableAnimatePresence,{children:n.map((e=>(0,T.jsx)(Pc,{...e},e.clientId)))}),e?(0,T.jsx)(Tn.Spinner,{}):(0,T.jsx)(Tn.Button,{variant:"primary",onClick:function(){t(!0),Promise.all(n.map((e=>window.fetch(e.attributes.url.includes("?")?e.attributes.url:e.attributes.url+"?").then((e=>e.blob())).then((t=>new Promise(((s,n)=>{o({filesList:[t],onFileChange:([t])=>{(0,tl.isBlobURL)(t.url)||(i(e.clientId,{id:t.id,url:t.url}),s())},onError(){n()}})}))))))).finally((()=>{t(!1)}))},children:(0,m.__)("Upload")})]})]})}const jc=function({children:e}){const{isBeingScheduled:t,isRequestingSiteIcon:s,hasPublishAction:o,siteIconUrl:n,siteTitle:i,siteHome:r}=(0,d.useSelect)((e=>{var t;const{getCurrentPost:s,isEditedPostBeingScheduled:o}=e(cn),{getEntityRecord:n,isResolving:i}=e(b.store),r=n("root","__unstableBase",void 0)||{};return{hasPublishAction:null!==(t=s()._links?.["wp:action-publish"])&&void 0!==t&&t,isBeingScheduled:o(),isRequestingSiteIcon:i("getEntityRecord",["root","__unstableBase",void 0]),siteIconUrl:r.site_icon_url,siteTitle:r.name,siteHome:r.home&&(0,S.filterURLForDisplay)(r.home)}}),[]);let a,l,c=(0,T.jsx)(Tn.Icon,{className:"components-site-icon",size:"36px",icon:Bl});return n&&(c=(0,T.jsx)("img",{alt:(0,m.__)("Site Icon"),className:"components-site-icon",src:n})),s&&(c=null),o?t?(a=(0,m.__)("Are you ready to schedule?"),l=(0,m.__)("Your work will be published at the specified date and time.")):(a=(0,m.__)("Are you ready to publish?"),l=(0,m.__)("Double-check your settings before publishing.")):(a=(0,m.__)("Are you ready to submit for review?"),l=(0,m.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),(0,T.jsxs)("div",{className:"editor-post-publish-panel__prepublish",children:[(0,T.jsx)("div",{children:(0,T.jsx)("strong",{children:a})}),(0,T.jsx)("p",{children:l}),(0,T.jsxs)("div",{className:"components-site-card",children:[c,(0,T.jsxs)("div",{className:"components-site-info",children:[(0,T.jsx)("span",{className:"components-site-name",children:(0,Mo.decodeEntities)(i)||(0,m.__)("(Untitled)")}),(0,T.jsx)("span",{className:"components-site-home",children:r})]})]}),(0,T.jsx)(Cc,{}),o&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Tn.PanelBody,{initialOpen:!1,title:[(0,m.__)("Visibility:"),(0,T.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,T.jsx)(Dl,{})},"label")],children:(0,T.jsx)(Nl,{})}),(0,T.jsx)(Tn.PanelBody,{initialOpen:!1,title:[(0,m.__)("Publish:"),(0,T.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,T.jsx)(Jl,{})},"label")],children:(0,T.jsx)(Ql,{})})]}),(0,T.jsx)(fc,{}),(0,T.jsx)(mc,{}),(0,T.jsx)(Sc,{}),e]})},Tc="%postname%",Ec="%pagename%";function Bc({text:e,onCopy:t,children:s}){const o=(0,pn.useCopyToClipboard)(e,t);return(0,T.jsx)(Tn.Button,{variant:"secondary",ref:o,children:s})}class Ic extends C.Component{constructor(){super(...arguments),this.state={showCopyConfirmation:!1},this.onCopy=this.onCopy.bind(this),this.onSelectInput=this.onSelectInput.bind(this),this.postLink=(0,C.createRef)()}componentDidMount(){this.props.focusOnMount&&this.postLink.current.focus()}componentWillUnmount(){clearTimeout(this.dismissCopyConfirmation)}onCopy(){this.setState({showCopyConfirmation:!0}),clearTimeout(this.dismissCopyConfirmation),this.dismissCopyConfirmation=setTimeout((()=>{this.setState({showCopyConfirmation:!1})}),4e3)}onSelectInput(e){e.target.select()}render(){const{children:e,isScheduled:t,post:s,postType:o}=this.props,n=o?.labels?.singular_name,i=o?.labels?.view_item,r=o?.labels?.add_new_item,a="future"===s.status?(e=>{const{slug:t}=e;return e.permalink_template.includes(Tc)?e.permalink_template.replace(Tc,t):e.permalink_template.includes(Ec)?e.permalink_template.replace(Ec,t):e.permalink_template})(s):s.link,l=(0,S.addQueryArgs)("post-new.php",{post_type:s.type}),c=t?(0,T.jsxs)(T.Fragment,{children:[(0,m.__)("is now scheduled. It will go live on")," ",(0,T.jsx)(Jl,{}),"."]}):(0,m.__)("is now live.");return(0,T.jsxs)("div",{className:"post-publish-panel__postpublish",children:[(0,T.jsxs)(Tn.PanelBody,{className:"post-publish-panel__postpublish-header",children:[(0,T.jsx)("a",{ref:this.postLink,href:a,children:(0,Mo.decodeEntities)(s.title)||(0,m.__)("(no title)")})," ",c]}),(0,T.jsxs)(Tn.PanelBody,{children:[(0,T.jsx)("p",{className:"post-publish-panel__postpublish-subheader",children:(0,T.jsx)("strong",{children:(0,m.__)("What’s next?")})}),(0,T.jsxs)("div",{className:"post-publish-panel__postpublish-post-address-container",children:[(0,T.jsx)(Tn.TextControl,{__nextHasNoMarginBottom:!0,className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:(0,m.sprintf)((0,m.__)("%s address"),n),value:(0,S.safeDecodeURIComponent)(a),onFocus:this.onSelectInput}),(0,T.jsx)("div",{className:"post-publish-panel__postpublish-post-address__copy-button-wrap",children:(0,T.jsx)(Bc,{text:a,onCopy:this.onCopy,children:this.state.showCopyConfirmation?(0,m.__)("Copied!"):(0,m.__)("Copy")})})]}),(0,T.jsxs)("div",{className:"post-publish-panel__postpublish-buttons",children:[!t&&(0,T.jsx)(Tn.Button,{variant:"primary",href:a,children:i}),(0,T.jsx)(Tn.Button,{variant:t?"primary":"secondary",href:l,children:r})]})]}),e]})}}const Nc=(0,d.withSelect)((e=>{const{getEditedPostAttribute:t,getCurrentPost:s,isCurrentPostScheduled:o}=e(cn),{getPostType:n}=e(b.store);return{post:s(),postType:n(t("type")),isScheduled:o()}}))(Ic);class Ac extends C.Component{constructor(){super(...arguments),this.onSubmit=this.onSubmit.bind(this)}componentDidUpdate(e){e.isPublished&&!this.props.isSaving&&this.props.isDirty&&this.props.onClose()}onSubmit(){const{onClose:e,hasPublishAction:t,isPostTypeViewable:s}=this.props;t&&s||e()}render(){const{forceIsDirty:e,isBeingScheduled:t,isPublished:s,isPublishSidebarEnabled:o,isScheduled:n,isSaving:i,isSavingNonPostEntityChanges:r,onClose:a,onTogglePublishSidebar:l,PostPublishExtension:c,PrePublishExtension:d,...u}=this.props,{hasPublishAction:p,isDirty:h,isPostTypeViewable:g,..._}=u,f=s||n&&t,b=!f&&!i,y=f&&!i;return(0,T.jsxs)("div",{className:"editor-post-publish-panel",..._,children:[(0,T.jsx)("div",{className:"editor-post-publish-panel__header",children:y?(0,T.jsx)(Tn.Button,{onClick:a,icon:An,label:(0,m.__)("Close panel")}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("div",{className:"editor-post-publish-panel__header-publish-button",children:(0,T.jsx)(El,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:e})}),(0,T.jsx)("div",{className:"editor-post-publish-panel__header-cancel-button",children:(0,T.jsx)(Tn.Button,{__experimentalIsFocusable:!0,disabled:r,onClick:a,variant:"secondary",size:"compact",children:(0,m.__)("Cancel")})})]})}),(0,T.jsxs)("div",{className:"editor-post-publish-panel__content",children:[b&&(0,T.jsx)(jc,{children:d&&(0,T.jsx)(d,{})}),y&&(0,T.jsx)(Nc,{focusOnMount:!0,children:c&&(0,T.jsx)(c,{})}),i&&(0,T.jsx)(Tn.Spinner,{})]}),(0,T.jsx)("div",{className:"editor-post-publish-panel__footer",children:(0,T.jsx)(Tn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,m.__)("Always show pre-publish checks."),checked:o,onChange:l})})]})}}const Dc=(0,pn.compose)([(0,d.withSelect)((e=>{var t;const{getPostType:s}=e(b.store),{getCurrentPost:o,getEditedPostAttribute:n,isCurrentPostPublished:i,isCurrentPostScheduled:r,isEditedPostBeingScheduled:a,isEditedPostDirty:l,isAutosavingPost:c,isSavingPost:d,isSavingNonPostEntityChanges:u}=e(cn),{isPublishSidebarEnabled:p}=e(cn),h=s(n("type"));return{hasPublishAction:null!==(t=o()._links?.["wp:action-publish"])&&void 0!==t&&t,isPostTypeViewable:h?.viewable,isBeingScheduled:a(),isDirty:l(),isPublished:i(),isPublishSidebarEnabled:p(),isSaving:d()&&!c(),isSavingNonPostEntityChanges:u(),isScheduled:r()}})),(0,d.withDispatch)(((e,{isPublishSidebarEnabled:t})=>{const{disablePublishSidebar:s,enablePublishSidebar:o}=e(cn);return{onTogglePublishSidebar:()=>{t?s():o()}}})),Tn.withFocusReturn,Tn.withConstrainedTabbing])(Ac),Rc=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-4v-2.4L14 14l1-1-3-3-3 3 1 1 1.2-1.2v2.4H7.7c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4H9l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8 0 1-.8 1.8-1.7 1.8z"})});const Mc=(0,C.forwardRef)((function({icon:e,size:t=24,...s},o){return(0,C.cloneElement)(e,{width:t,height:t,...s,ref:o})})),Oc=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"})}),Lc={"auto-draft":(0,m.__)("Draft"),draft:(0,m.__)("Draft"),pending:(0,m.__)("Pending"),private:(0,m.__)("Private"),future:(0,m.__)("Scheduled"),publish:(0,m.__)("Published")},Fc=[{label:(0,T.jsxs)(T.Fragment,{children:[(0,m.__)("Draft"),(0,T.jsx)(Tn.__experimentalText,{variant:"muted",size:12,children:(0,m.__)("Not ready to publish.")})]}),value:"draft"},{label:(0,T.jsxs)(T.Fragment,{children:[(0,m.__)("Pending"),(0,T.jsx)(Tn.__experimentalText,{variant:"muted",size:12,children:(0,m.__)("Waiting for review before publishing.")})]}),value:"pending"},{label:(0,T.jsxs)(T.Fragment,{children:[(0,m.__)("Private"),(0,T.jsx)(Tn.__experimentalText,{variant:"muted",size:12,children:(0,m.__)("Only visible to site admins and editors.")})]}),value:"private"},{label:(0,T.jsxs)(T.Fragment,{children:[(0,m.__)("Scheduled"),(0,T.jsx)(Tn.__experimentalText,{variant:"muted",size:12,children:(0,m.__)("Publish automatically on a chosen date.")})]}),value:"future"},{label:(0,T.jsxs)(T.Fragment,{children:[(0,m.__)("Published"),(0,T.jsx)(Tn.__experimentalText,{variant:"muted",size:12,children:(0,m.__)("Visible to everyone.")})]}),value:"publish"}],Vc=[L,F,V,U];function Uc(){const{status:e,date:t,password:s,postId:o,postType:n,canEdit:i}=(0,d.useSelect)((e=>{var t;const{getEditedPostAttribute:s,getCurrentPostId:o,getCurrentPostType:n,getCurrentPost:i}=e(cn);return{status:s("status"),date:s("date"),password:s("password"),postId:o(),postType:n(),canEdit:null!==(t=i()._links?.["wp:action-publish"])&&void 0!==t&&t}}),[]),[r,a]=(0,C.useState)(!!s),l=(0,pn.useInstanceId)(Uc,"editor-change-status__password-input"),{editEntityRecord:c}=(0,d.useDispatch)(b.store),[u,p]=(0,C.useState)(null),h=(0,C.useMemo)((()=>({anchor:u,"aria-label":(0,m.__)("Status & visibility"),headerTitle:(0,m.__)("Status & visibility"),placement:"left-start",offset:36,shift:!0})),[u]);if(Vc.includes(n))return null;const _=({status:i=e,password:r=s,date:a=t})=>{c("postType",n,o,{status:i,date:a,password:r})},f=e=>{a(e),e||_({password:""})},y=o=>{let n=t,i=s;"future"===e&&new Date(t)>new Date&&(n=null),"private"===o&&s&&(i=""),_({status:o,date:n,password:i})};return(0,T.jsx)(_r,{label:(0,m.__)("Status"),ref:p,children:i?(0,T.jsx)(Tn.Dropdown,{className:"editor-post-status",contentClassName:"editor-change-status__content",popoverProps:h,focusOnMount:!0,renderToggle:({onToggle:t})=>(0,T.jsx)(Tn.Button,{variant:"tertiary",size:"compact",onClick:t,"aria-label":(0,m.sprintf)((0,m.__)("Change post status: %s"),Lc[e]),children:Lc[e]}),renderContent:({onClose:t})=>(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,m.__)("Status & visibility"),onClose:t}),(0,T.jsx)("form",{children:(0,T.jsxs)(Tn.__experimentalVStack,{spacing:4,children:[(0,T.jsx)(Tn.RadioControl,{className:"editor-change-status__options",hideLabelFromVision:!0,label:(0,m.__)("Status"),options:Fc,onChange:y,selected:"auto-draft"===e?"draft":e}),"future"===e&&(0,T.jsx)("div",{className:"editor-change-status__publish-date-wrapper",children:(0,T.jsx)(Xl,{showPopoverHeaderActions:!1,isCompact:!0})}),"private"!==e&&(0,T.jsxs)(Tn.__experimentalVStack,{as:"fieldset",spacing:4,className:"editor-change-status__password-fieldset",children:[(0,T.jsx)(Tn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,m.__)("Password protected"),help:(0,m.__)("Only visible to those who know the password"),checked:r,onChange:f}),r&&(0,T.jsx)("div",{className:"editor-change-status__password-input",children:(0,T.jsx)(Tn.TextControl,{label:(0,m.__)("Password"),onChange:e=>_({password:e}),value:s,placeholder:(0,m.__)("Use a secure password"),type:"text",id:l,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})})]})]})})]})}):(0,T.jsx)("div",{className:"editor-post-status is-read-only",children:Lc[e]})})}function zc({forceIsDirty:e}){const[t,s]=(0,C.useState)(!1),o=(0,pn.useViewportMatch)("small"),{isAutosaving:n,isDirty:i,isNew:r,isPublished:a,isSaveable:l,isSaving:c,isScheduled:u,hasPublishAction:p,showIconLabels:h,postStatus:g,postStatusHasChanged:_}=(0,d.useSelect)((t=>{var s;const{isEditedPostNew:o,isCurrentPostPublished:n,isCurrentPostScheduled:i,isEditedPostDirty:r,isSavingPost:a,isEditedPostSaveable:l,getCurrentPost:c,isAutosavingPost:d,getEditedPostAttribute:u,getPostEdits:p}=t(cn),{get:h}=t(B.store);return{isAutosaving:d(),isDirty:e||r(),isNew:o(),isPublished:n(),isSaving:a(),isSaveable:l(),isScheduled:i(),hasPublishAction:null!==(s=c()?._links?.["wp:action-publish"])&&void 0!==s&&s,showIconLabels:h("core","showIconLabels"),postStatus:u("status"),postStatusHasChanged:!!p()?.status}}),[e]),f="pending"===g,{savePost:b}=(0,d.useDispatch)(cn),y=(0,pn.usePrevious)(c);if((0,C.useEffect)((()=>{let e;return y&&!c&&(s(!0),e=setTimeout((()=>{s(!1)}),1e3)),()=>clearTimeout(e)}),[c]),!p&&f)return null;const x=!["pending","draft","auto-draft"].includes(g)&&Fc.map((({value:e})=>e)).includes(g);if(a||u||x||_&&["pending","draft"].includes(g))return null;const v=f?(0,m.__)("Save as pending"):(0,m.__)("Save draft"),w=(0,m.__)("Save"),S=t||!r&&!i,k=c||S,P=c||S||!l;let j;return c?j=n?(0,m.__)("Autosaving"):(0,m.__)("Saving"):S?j=(0,m.__)("Saved"):o?j=v:h&&(j=w),(0,T.jsxs)(Tn.Button,{className:l||c?jn({"editor-post-save-draft":!k,"editor-post-saved-state":k,"is-saving":c,"is-autosaving":n,"is-saved":S,[(0,Tn.__unstableGetAnimateClassName)({type:"loading"})]:c}):void 0,onClick:P?void 0:()=>b(),shortcut:P?void 0:Ci.displayShortcut.primary("s"),variant:"tertiary",size:"compact",icon:o?void 0:Rc,label:j||v,"aria-disabled":P,children:[k&&(0,T.jsx)(Mc,{icon:S?En:Oc}),j]})}function Hc({children:e}){return(0,d.useSelect)((e=>{var t;return null!==(t=e(cn).getCurrentPost()._links?.["wp:action-publish"])&&void 0!==t&&t}),[])?e:null}const Gc=[L,F,V,U];function $c(){const[e,t]=(0,C.useState)(null),s=(0,d.useSelect)((e=>e(cn).getCurrentPostType()),[]),o=(0,C.useMemo)((()=>({anchor:e,"aria-label":(0,m.__)("Change publish date"),placement:"left-start",offset:36,shift:!0})),[e]),n=ec(),i=ec({full:!0});return Gc.includes(s)?null:(0,T.jsx)(Hc,{children:(0,T.jsx)(_r,{label:(0,m.__)("Publish"),ref:t,children:(0,T.jsx)(Tn.Dropdown,{popoverProps:o,focusOnMount:!0,className:"editor-post-schedule__panel-dropdown",contentClassName:"editor-post-schedule__dialog",renderToggle:({onToggle:e,isOpen:t})=>(0,T.jsx)(Tn.Button,{size:"compact",className:"editor-post-schedule__dialog-toggle",variant:"tertiary",tooltipPosition:"middle left",onClick:e,"aria-label":(0,m.sprintf)((0,m.__)("Change date: %s"),n),label:i,showTooltip:n!==i,"aria-expanded":t,children:n}),renderContent:({onClose:e})=>(0,T.jsx)(Ql,{onClose:e})})})})}function Wc({children:e}){return(0,T.jsx)(fr,{supportKeys:"slug",children:e})}function Kc(){const e=(0,d.useSelect)((e=>(0,S.safeDecodeURIComponent)(e(cn).getEditedPostSlug())),[]),{editPost:t}=(0,d.useDispatch)(cn),[s,o]=(0,C.useState)(!1);return(0,T.jsx)(Tn.TextControl,{__nextHasNoMarginBottom:!0,label:(0,m.__)("Slug"),autoComplete:"off",spellCheck:"false",value:s?"":e,onChange:e=>{t({slug:e}),e?s&&o(!1):s||o(!0)},onBlur:e=>{t({slug:(0,S.cleanForSlug)(e.target.value)}),s&&o(!1)},className:"editor-post-slug"})}function Zc(){return(0,T.jsx)(Wc,{children:(0,T.jsx)(Kc,{})})}function Yc({children:e}){const{hasStickyAction:t,postType:s}=(0,d.useSelect)((e=>{var t;const s=e(cn).getCurrentPost();return{hasStickyAction:null!==(t=s._links?.["wp:action-sticky"])&&void 0!==t&&t,postType:e(cn).getCurrentPostType()}}),[]);return"post"===s&&t?e:null}function qc(){const e=(0,d.useSelect)((e=>{var t;return null!==(t=e(cn).getEditedPostAttribute("sticky"))&&void 0!==t&&t}),[]),{editPost:t}=(0,d.useDispatch)(cn);return(0,T.jsx)(Yc,{children:(0,T.jsx)(_r,{label:(0,m.__)("Sticky"),children:(0,T.jsx)(Tn.ToggleControl,{className:"editor-post-sticky__toggle-control",label:(0,T.jsx)(Tn.VisuallyHidden,{children:(0,m.__)("Sticky")}),checked:e,onChange:()=>t({sticky:!e})})})})}function Qc(){const[e,t]=(0,C.useState)(!1),{editPost:s,savePost:o}=(0,d.useDispatch)(cn),{isSaving:n,isPublished:i,isScheduled:r}=(0,d.useSelect)((e=>{const{isSavingPost:t,isCurrentPostPublished:s,isCurrentPostScheduled:o}=e(cn);return{isSaving:t(),isPublished:s(),isScheduled:o()}}),[]),a=n||!i&&!r;let l,c;i?(l=(0,m.__)("Are you sure you want to unpublish this post?"),c=(0,m.__)("Unpublish")):r&&(l=(0,m.__)("Are you sure you want to unschedule this post?"),c=(0,m.__)("Unschedule"));return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Tn.Button,{__next40pxDefaultSize:!0,className:"editor-post-switch-to-draft",onClick:()=>{a||t(!0)},"aria-disabled":a,variant:"secondary",style:{flexGrow:"1",justifyContent:"center"},children:(0,m.__)("Switch to draft")}),(0,T.jsx)(Tn.__experimentalConfirmDialog,{isOpen:e,onConfirm:()=>{t(!1),s({status:"draft"}),o()},onCancel:()=>t(!1),confirmButtonText:c,children:l})]})}function Xc(){const{syncStatus:e,postType:t}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(cn),s=t("meta");return{syncStatus:"unsynced"===s?.wp_pattern_sync_status?"unsynced":t("wp_pattern_sync_status"),postType:t("type")}}));return"wp_block"!==t?null:(0,T.jsx)(_r,{label:(0,m.__)("Sync status"),children:(0,T.jsx)("div",{className:"editor-post-sync-status__value",children:"unsynced"===e?(0,m._x)("Not synced","pattern (singular)"):(0,m._x)("Synced","pattern (singular)")})})}const Jc=e=>e;const ed=function({taxonomyWrapper:e=Jc}){const{postType:t,taxonomies:s}=(0,d.useSelect)((e=>({postType:e(cn).getCurrentPostType(),taxonomies:e(b.store).getTaxonomies({per_page:-1})})),[]);return(null!=s?s:[]).filter((e=>e.types.includes(t)&&e.visibility?.show_ui)).map((t=>{const s=t.hierarchical?wc:pc;return(0,T.jsx)(C.Fragment,{children:e((0,T.jsx)(s,{slug:t.slug}),t)},`taxonomy-${t.slug}`)}))};function td({children:e}){const t=(0,d.useSelect)((e=>{const t=e(cn).getCurrentPostType(),s=e(b.store).getTaxonomies({per_page:-1});return s?.some((e=>e.types.includes(t)))}),[]);return t?e:null}function sd({taxonomy:e,children:t}){const s=e?.slug,o=s?`taxonomy-panel-${s}`:"",{isEnabled:n,isOpened:i}=(0,d.useSelect)((e=>{const{isEditorPanelEnabled:t,isEditorPanelOpened:n}=e(cn);return{isEnabled:!!s&&t(o),isOpened:!!s&&n(o)}}),[o,s]),{toggleEditorPanelOpened:r}=(0,d.useDispatch)(cn);if(!n)return null;const a=e?.labels?.menu_name;return a?(0,T.jsx)(Tn.PanelBody,{title:a,opened:i,onToggle:()=>r(o),children:t}):null}const od=function(){return(0,T.jsx)(td,{children:(0,T.jsx)(ed,{taxonomyWrapper:(e,t)=>(0,T.jsx)(sd,{taxonomy:t,children:e})})})};var nd=s(4132);function id(){const e=(0,pn.useInstanceId)(id),{content:t,blocks:s,type:o,id:n}=(0,d.useSelect)((e=>{const{getEditedEntityRecord:t}=e(b.store),{getCurrentPostType:s,getCurrentPostId:o}=e(cn),n=s(),i=o(),r=t("postType",n,i);return{content:r?.content,blocks:r?.blocks,type:n,id:i}}),[]),{editEntityRecord:i}=(0,d.useDispatch)(b.store),r=(0,C.useMemo)((()=>t instanceof Function?t({blocks:s}):s?(0,c.__unstableSerializeAndClean)(s):t),[t,s]);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Tn.VisuallyHidden,{as:"label",htmlFor:`post-content-${e}`,children:(0,m.__)("Type text or HTML")}),(0,T.jsx)(nd.A,{autoComplete:"off",dir:"auto",value:r,onChange:e=>{i("postType",o,n,{content:e.target.value,blocks:void 0,selection:void 0})},className:"editor-post-text-editor",id:`post-content-${e}`,placeholder:(0,m.__)("Start writing with text or HTML")})]})}const rd=window.wp.dom,ad="wp-block wp-block-post-title block-editor-block-list__block editor-post-title editor-post-title__input rich-text",ld=/[\r\n]+/g;function cd(e){const t=(0,C.useRef)(),{isCleanNewPost:s}=(0,d.useSelect)((e=>{const{isCleanNewPost:t}=e(cn);return{isCleanNewPost:t()}}),[]);return(0,C.useImperativeHandle)(e,(()=>({focus:()=>{t?.current?.focus()}}))),(0,C.useEffect)((()=>{if(!t.current)return;const{defaultView:e}=t.current.ownerDocument,{name:o,parent:n}=e,i="editor-canvas"===o?n.document:e.document,{activeElement:r,body:a}=i;!s||r&&a!==r||t.current.focus()}),[s]),{ref:t}}function dd(){const{editPost:e}=(0,d.useDispatch)(cn),{title:t}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(cn);return{title:t("title")}}),[]);return{title:t,setTitle:function(t){e({title:t})}}}const ud=(0,C.forwardRef)((function(e,t){const{placeholder:s,hasFixedToolbar:o}=(0,d.useSelect)((e=>{const{getSettings:t}=e(g.store),{titlePlaceholder:s,hasFixedToolbar:o}=t();return{placeholder:s,hasFixedToolbar:o}}),[]),[n,i]=(0,C.useState)(!1),{ref:r}=cd(t),{title:a,setTitle:l}=dd(),[u,p]=(0,C.useState)({}),{clearSelectedBlock:h,insertBlocks:_,insertDefaultBlock:f}=(0,d.useDispatch)(g.store);function b(e){_(e,0)}function y(){i(!1),p({})}const x=(0,Mo.decodeEntities)(s)||(0,m.__)("Add title"),{ref:v}=(0,Ii.__unstableUseRichText)({value:a,onChange:function(e){l(e.replace(ld," "))},placeholder:x,selectionStart:u.start,selectionEnd:u.end,onSelectionChange(e,t){p((s=>{const{start:o,end:n}=s;return o===e&&n===t?s:{start:e,end:t}}))},__unstableDisableFormats:!1}),w=jn(ad,{"is-selected":n,"has-fixed-toolbar":o});return(0,T.jsx)(fr,{supportKeys:"title",children:(0,T.jsx)("h1",{ref:(0,pn.useMergeRefs)([v,r]),contentEditable:!0,className:w,"aria-label":x,role:"textbox","aria-multiline":"true",onFocus:function(){i(!0),h()},onBlur:y,onKeyDown:function(e){e.keyCode===Ci.ENTER&&(e.preventDefault(),f(void 0,void 0,0))},onKeyPress:y,onPaste:function(e){const t=e.clipboardData;let s="",o="";try{s=t.getData("text/plain"),o=t.getData("text/html")}catch(e){try{o=t.getData("Text")}catch(e){return}}window.console.log("Received HTML:\n\n",o),window.console.log("Received plain text:\n\n",s);const n=(0,c.pasteHandler)({HTML:o,plainText:s});if(e.preventDefault(),n.length)if("string"!=typeof n){const[e]=n;if(a||"core/heading"!==e.name&&"core/paragraph"!==e.name)b(n);else{const t=(0,rd.__unstableStripHTML)(e.attributes.content);l(t),b(n.slice(1))}}else{const e={...(0,Ii.create)({html:a}),...u},t=(0,rd.__unstableStripHTML)(n),s=(0,Ii.insert)(e,(0,Ii.create)({html:t}));l((0,Ii.toHTMLString)({value:s})),p({start:s.start,end:s.end})}}})})}));const pd=(0,C.forwardRef)((function(e,t){const{placeholder:s,hasFixedToolbar:o}=(0,d.useSelect)((e=>{const{getSettings:t}=e(g.store),{titlePlaceholder:s,hasFixedToolbar:o}=t();return{placeholder:s,hasFixedToolbar:o}}),[]),[n,i]=(0,C.useState)(!1),{title:r,setTitle:a}=dd(),{ref:l}=cd(t),c=jn(ad,{"is-selected":n,"has-fixed-toolbar":o,"is-raw-text":!0}),u=(0,Mo.decodeEntities)(s)||(0,m.__)("Add title");return(0,T.jsx)(Tn.TextareaControl,{ref:l,value:r,onChange:function(e){a(e.replace(ld," "))},onFocus:function(){i(!0)},onBlur:function(){i(!1)},label:s,className:c,placeholder:u,hideLabelFromVision:!0,autoComplete:"off",dir:"auto",rows:1,__nextHasNoMarginBottom:!0})}));function hd(){const{isNew:e,isDeleting:t,postId:s}=(0,d.useSelect)((e=>{const t=e(cn);return{isNew:t.isEditedPostNew(),isDeleting:t.isDeletingPost(),postId:t.getCurrentPostId()}}),[]),{trashPost:o}=(0,d.useDispatch)(cn),[n,i]=(0,C.useState)(!1);if(e||!s)return null;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Tn.Button,{__next40pxDefaultSize:!0,className:"editor-post-trash",isDestructive:!0,variant:"secondary",isBusy:t,"aria-disabled":t,onClick:t?void 0:()=>i(!0),children:(0,m.__)("Move to trash")}),(0,T.jsx)(Tn.__experimentalConfirmDialog,{isOpen:n,onConfirm:()=>{i(!1),o()},onCancel:()=>i(!1),confirmButtonText:(0,m.__)("Move to trash"),size:"medium",children:(0,m.__)("Are you sure you want to move this post to the trash?")})]})}function md({children:e}){const{canTrashPost:t}=(0,d.useSelect)((e=>{const{isEditedPostNew:t,getCurrentPostId:s,getCurrentPostType:o}=e(cn),{getPostType:n,canUser:i}=e(b.store),r=n(o()),a=s(),l=t(),c=r?.rest_base||"",d=!(!a||!c)&&i("delete",c,a);return{canTrashPost:(!l||a)&&d}}),[]);return t?e:null}const gd=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.625 5.5h9.75c.069 0 .125.056.125.125v9.75a.125.125 0 0 1-.125.125h-9.75a.125.125 0 0 1-.125-.125v-9.75c0-.069.056-.125.125-.125ZM4 5.625C4 4.728 4.728 4 5.625 4h9.75C16.273 4 17 4.728 17 5.625v9.75c0 .898-.727 1.625-1.625 1.625h-9.75A1.625 1.625 0 0 1 4 15.375v-9.75Zm14.5 11.656v-9H20v9C20 18.8 18.77 20 17.251 20H6.25v-1.5h11.001c.69 0 1.249-.528 1.249-1.219Z"})});function _d({onClose:e}){const{isEditable:t,postSlug:s,postLink:o,permalinkPrefix:n,permalinkSuffix:i,permalink:r}=(0,d.useSelect)((e=>{var t;const s=e(cn).getCurrentPost(),o=e(cn).getCurrentPostType(),n=e(b.store).getPostType(o),i=e(cn).getPermalinkParts(),r=null!==(t=s?._links?.["wp:action-publish"])&&void 0!==t&&t;return{isEditable:e(cn).isPermalinkEditable()&&r,postSlug:(0,S.safeDecodeURIComponent)(e(cn).getEditedPostSlug()),viewPostLabel:n?.labels.view_item,postLink:s.link,permalinkPrefix:i?.prefix,permalinkSuffix:i?.suffix,permalink:(0,S.safeDecodeURIComponent)(e(cn).getPermalink())}}),[]),{editPost:a}=(0,d.useDispatch)(cn),{createNotice:l}=(0,d.useDispatch)(fs.store),[c,u]=(0,C.useState)(!1),p=(0,pn.useCopyToClipboard)(r,(()=>{l("info",(0,m.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})}));return(0,T.jsxs)("div",{className:"editor-post-url",children:[(0,T.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,m.__)("Link"),onClose:e}),(0,T.jsxs)(Tn.__experimentalVStack,{spacing:3,children:[t&&(0,T.jsxs)("div",{children:[(0,m.__)("Customize the last part of the URL. "),(0,T.jsx)(Tn.ExternalLink,{href:(0,m.__)("https://wordpress.org/documentation/article/page-post-settings-sidebar/#permalink"),children:(0,m.__)("Learn more.")})]}),(0,T.jsxs)("div",{children:[t&&(0,T.jsx)(Tn.__experimentalInputControl,{__next40pxDefaultSize:!0,prefix:(0,T.jsx)(Tn.__experimentalInputControlPrefixWrapper,{children:"/"}),suffix:(0,T.jsx)(Tn.Button,{icon:gd,ref:p,label:(0,m.__)("Copy")}),label:(0,m.__)("Link"),hideLabelFromVision:!0,value:c?"":s,autoComplete:"off",spellCheck:"false",type:"text",className:"editor-post-url__input",onChange:e=>{a({slug:e}),e?c&&u(!1):c||u(!0)},onBlur:e=>{a({slug:(0,S.cleanForSlug)(e.target.value)}),c&&u(!1)},help:(0,T.jsxs)(Tn.ExternalLink,{className:"editor-post-url__link",href:o,target:"_blank",children:[(0,T.jsx)("span",{className:"editor-post-url__link-prefix",children:n}),(0,T.jsx)("span",{className:"editor-post-url__link-slug",children:s}),(0,T.jsx)("span",{className:"editor-post-url__link-suffix",children:i})]})}),!t&&(0,T.jsx)(Tn.ExternalLink,{className:"editor-post-url__link",href:o,target:"_blank",children:o})]})]})]})}function fd({children:e}){const t=(0,d.useSelect)((e=>{const t=e(cn).getCurrentPostType(),s=e(b.store).getPostType(t);if(!s?.viewable)return!1;if(!e(cn).getCurrentPost().link)return!1;return!!e(cn).getPermalinkParts()}),[]);return t?e:null}function bd(){return yd()}function yd(){const e=(0,d.useSelect)((e=>e(cn).getPermalink()),[]);return(0,S.filterURLForDisplay)((0,S.safeDecodeURIComponent)(e))}function xd(){const[e,t]=(0,C.useState)(null),s=(0,C.useMemo)((()=>({anchor:e,placement:"left-start",offset:36,shift:!0})),[e]);return(0,T.jsx)(fd,{children:(0,T.jsx)(_r,{label:(0,m.__)("Link"),ref:t,children:(0,T.jsx)(Tn.Dropdown,{popoverProps:s,className:"editor-post-url__panel-dropdown",contentClassName:"editor-post-url__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,T.jsx)(vd,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,T.jsx)(_d,{onClose:e})})})})}function vd({isOpen:e,onClick:t}){const{slug:s,isFrontPage:o,postLink:n}=(0,d.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPost:s}=e(cn),{getEditedEntityRecord:o}=e(b.store),n=o("root","site"),i=t();return{slug:e(cn).getEditedPostSlug(),isFrontPage:n?.page_on_front===i,postLink:s()?.link}}),[]),i=(0,S.safeDecodeURIComponent)(s);return(0,T.jsx)(Tn.Button,{size:"compact",className:"editor-post-url__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,m.sprintf)((0,m.__)("Change link: %s"),i),onClick:t,children:o?n:(0,T.jsxs)(T.Fragment,{children:["/",i]})})}function wd({render:e}){return e({canEdit:(0,d.useSelect)((e=>{var t;return null!==(t=e(cn).getCurrentPost()._links?.["wp:action-publish"])&&void 0!==t&&t}))})}const Sd=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})}),kd=window.wp.wordcount;function Pd(){const e=(0,d.useSelect)((e=>e(cn).getEditedPostAttribute("content")),[]),t=(0,m._x)("words","Word count type. Do not translate!");return(0,T.jsx)("span",{className:"word-count",children:(0,kd.count)(e,t)})}const Cd=189;function jd(){const e=(0,d.useSelect)((e=>e(cn).getEditedPostAttribute("content")),[]),t=(0,m._x)("words","Word count type. Do not translate!"),s=Math.round((0,kd.count)(e,t)/Cd),o=0===s?(0,C.createInterpolateElement)((0,m.__)("<span>< 1</span> minute"),{span:(0,T.jsx)("span",{})}):(0,C.createInterpolateElement)((0,m.sprintf)((0,m._n)("<span>%d</span> minute","<span>%d</span> minutes",s),s),{span:(0,T.jsx)("span",{})});return(0,T.jsx)("span",{className:"time-to-read",children:o})}function Td(){const e=(0,d.useSelect)((e=>e(cn).getEditedPostAttribute("content")),[]);return(0,kd.count)(e,"characters_including_spaces")}const Ed=function({hasOutlineItemsDisabled:e,onRequestClose:t}){const{headingCount:s,paragraphCount:o,numberOfBlocks:n}=(0,d.useSelect)((e=>{const{getGlobalBlockCount:t}=e(g.store);return{headingCount:t("core/heading"),paragraphCount:t("core/paragraph"),numberOfBlocks:t()}}),[]);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":(0,m.__)("Document Statistics"),tabIndex:"0",children:(0,T.jsxs)("ul",{role:"list",className:"table-of-contents__counts",children:[(0,T.jsxs)("li",{className:"table-of-contents__count",children:[(0,m.__)("Words"),(0,T.jsx)(Pd,{})]}),(0,T.jsxs)("li",{className:"table-of-contents__count",children:[(0,m.__)("Characters"),(0,T.jsx)("span",{className:"table-of-contents__number",children:(0,T.jsx)(Td,{})})]}),(0,T.jsxs)("li",{className:"table-of-contents__count",children:[(0,m.__)("Time to read"),(0,T.jsx)(jd,{})]}),(0,T.jsxs)("li",{className:"table-of-contents__count",children:[(0,m.__)("Headings"),(0,T.jsx)("span",{className:"table-of-contents__number",children:s})]}),(0,T.jsxs)("li",{className:"table-of-contents__count",children:[(0,m.__)("Paragraphs"),(0,T.jsx)("span",{className:"table-of-contents__number",children:o})]}),(0,T.jsxs)("li",{className:"table-of-contents__count",children:[(0,m.__)("Blocks"),(0,T.jsx)("span",{className:"table-of-contents__number",children:n})]})]})}),s>0&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("hr",{}),(0,T.jsx)("h2",{className:"table-of-contents__title",children:(0,m.__)("Document Outline")}),(0,T.jsx)(Vi,{onSelect:t,hasOutlineItemsDisabled:e})]})]})};const Bd=(0,C.forwardRef)((function({hasOutlineItemsDisabled:e,repositionDropdown:t,...s},o){const n=(0,d.useSelect)((e=>!!e(g.store).getBlockCount()),[]);return(0,T.jsx)(Tn.Dropdown,{popoverProps:{placement:t?"right":"bottom"},className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:({isOpen:e,onToggle:t})=>(0,T.jsx)(Tn.Button,{...s,ref:o,onClick:n?t:void 0,icon:Sd,"aria-expanded":e,"aria-haspopup":"true",label:(0,m.__)("Details"),tooltipPosition:"bottom","aria-disabled":!n}),renderContent:({onClose:t})=>(0,T.jsx)(Ed,{onRequestClose:t,hasOutlineItemsDisabled:e})})}));function Id(){const{__experimentalGetDirtyEntityRecords:e}=(0,d.useSelect)(b.store);return(0,C.useEffect)((()=>{const t=t=>{if(e().length>0)return t.returnValue=(0,m.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[e]),null}const Nd=(0,pn.createHigherOrderComponent)((e=>({useSubRegistry:t=!0,...s})=>{const o=(0,d.useRegistry)(),[n]=(0,C.useState)((()=>new WeakMap)),i=function(e,t,s){if(!s)return t;let o=e.get(t);return o||(o=(0,d.createRegistry)({"core/block-editor":g.storeConfig},t),o.registerStore("core/editor",ln),e.set(t,o)),o}(n,o,t);return i===o?(0,T.jsx)(e,{registry:o,...s}):(0,T.jsx)(d.RegistryProvider,{value:i,children:(0,T.jsx)(e,{registry:i,...s})})}),"withRegistryProvider"),Ad=(e,t)=>`<a ${Dd(e)}>${t}</a>`,Dd=e=>`href="${e}" target="_blank" rel="noreferrer noopener"`,Rd=e=>{const{title:t,foreign_landing_url:s,creator:o,creator_url:n,license:i,license_version:r,license_url:a}=e,l=((e,t)=>{let s=e.trim();return"pdm"!==e&&(s=e.toUpperCase().replace("SAMPLING","Sampling")),t&&(s+=` ${t}`),["pdm","cc0"].includes(e)||(s=`CC ${s}`),s})(i,r),c=(0,Mo.decodeEntities)(o);let d;return d=c?t?(0,m.sprintf)((0,m._x)('"%1$s" by %2$s/ %3$s',"caption"),Ad(s,(0,Mo.decodeEntities)(t)),n?Ad(n,c):c,a?Ad(`${a}?ref=openverse`,l):l):(0,m.sprintf)((0,m._x)("<a %1$s>Work</a> by %2$s/ %3$s","caption"),Dd(s),n?Ad(n,c):c,a?Ad(`${a}?ref=openverse`,l):l):t?(0,m.sprintf)((0,m._x)('"%1$s"/ %2$s',"caption"),Ad(s,(0,Mo.decodeEntities)(t)),a?Ad(`${a}?ref=openverse`,l):l):(0,m.sprintf)((0,m._x)("<a %1$s>Work</a>/ %2$s","caption"),Dd(s),a?Ad(`${a}?ref=openverse`,l):l),d.replace(/\s{2}/g," ")},Md=async(e={})=>(await(0,d.resolveSelect)(b.store).getMediaItems({...e,orderBy:e?.search?"relevance":"date"})).map((e=>({...e,alt:e.alt_text,url:e.source_url,previewUrl:e.media_details?.sizes?.medium?.source_url,caption:e.caption?.raw}))),Od=[{name:"images",labels:{name:(0,m.__)("Images"),search_items:(0,m.__)("Search images")},mediaType:"image",fetch:async(e={})=>Md({...e,media_type:"image"})},{name:"videos",labels:{name:(0,m.__)("Videos"),search_items:(0,m.__)("Search videos")},mediaType:"video",fetch:async(e={})=>Md({...e,media_type:"video"})},{name:"audio",labels:{name:(0,m.__)("Audio"),search_items:(0,m.__)("Search audio")},mediaType:"audio",fetch:async(e={})=>Md({...e,media_type:"audio"})},{name:"openverse",labels:{name:(0,m.__)("Openverse"),search_items:(0,m.__)("Search Openverse")},mediaType:"image",async fetch(e={}){const t={...e,mature:!1,excluded_source:"flickr,inaturalist,wikimedia",license:"pdm,cc0"},s={per_page:"page_size",search:"q"},o=new URL("https://api.openverse.org/v1/images/");Object.entries(t).forEach((([e,t])=>{const n=s[e]||e;o.searchParams.set(n,t)}));const n=await window.fetch(o,{headers:{"User-Agent":"WordPress/inserter-media-fetch"}});return(await n.json()).results.map((e=>({...e,title:e.title?.toLowerCase().startsWith("file:")?e.title.slice(5):e.title,sourceId:e.id,id:void 0,caption:Rd(e),previewUrl:e.thumbnail})))},getReportUrl:({sourceId:e})=>`https://wordpress.org/openverse/image/${e}/report/`,isExternalResource:!0}],Ld=()=>{};function Fd({additionalData:e={},allowedTypes:t,filesList:s,maxUploadFileSize:o,onError:n=Ld,onFileChange:i}){const{getCurrentPost:r,getEditorSettings:a}=(0,d.select)(cn),l=a().allowedMimeTypes;o=o||a().maxUploadFileSize;const c=r(),u="number"==typeof c?.id?c.id:c?.wp_id,p=u?{post:u}:{};(0,gn.uploadMedia)({allowedTypes:t,filesList:s,onFileChange:i,additionalData:{...p,...e},maxUploadFileSize:o,onError:({message:e})=>n(e),wpAllowedMimeTypes:l})}var Vd=s(66),Ud=s.n(Vd);
/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/!function(){"use strict";var o={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var i=s.apply(null,n);i&&e.push(i)}}else if("object"===r){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var a in n)o.call(n,a)&&n[a]&&e.push(a)}}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):void 0===(n=function(){return s}.apply(t,[]))||(e.exports=n)}()},6109:e=>{e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},461:(e,t,n)=>{var o=n(6109);e.exports=function(e){var t=o(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var s=e.style.lineHeight;e.style.lineHeight=t+"em",t=o(e,"line-height"),n=parseFloat(t,10),s?e.style.lineHeight=s:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var r=e.nodeName,i=document.createElement(r);i.innerHTML="&nbsp;","TEXTAREA"===r.toUpperCase()&&i.setAttribute("rows","1");var a=o(e,"font-size");i.style.fontSize=a,i.style.padding="0px",i.style.border="0px";var l=document.body;l.appendChild(i),n=i.offsetHeight,l.removeChild(i)}return n}},628:(e,t,n)=>{"use strict";var o=n(4067);function s(){}function r(){}r.resetWarningCache=s,e.exports=function(){function e(e,t,n,s,r,i){if(i!==o){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,bigint: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:r,resetWarningCache:s};return n.PropTypes=n,n}},5826:(e,t,n)=>{e.exports=n(628)()},4067:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4462:function(e,t,n){"use strict";var o,s=this&&this.__extends||(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},i=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&(n[o[s]]=e[o[s]])}return n};t.__esModule=!0;var a=n(1609),l=n(5826),c=n(4306),u=n(461),d="autosize:resized",p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return s(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||o?setTimeout((function(){return e.textarea&&c(e.textarea)})):this.textarea&&c(this.textarea),this.textarea&&this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(d,this.onResize),c.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),s=(t.innerRef,t.children),l=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return a.createElement("textarea",r({},l,{onChange:this.onChange,style:u?r({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),s)},t.prototype.componentDidUpdate=function(){this.textarea&&c.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:l.number,maxRows:l.number,onResize:l.func,innerRef:l.any,async:l.bool},t}(a.Component);t.TextareaAutosize=a.forwardRef((function(e,t){return a.createElement(p,r({},e,{innerRef:t}))}))},4132:(e,t,n)=>{"use strict";var o=n(4462);t.A=o.TextareaAutosize},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),o=new RegExp(n,"g"),s=new RegExp(n,"");function r(e){return t[e]}var i=function(e){return e.replace(o,r)};e.exports=i,e.exports.has=function(e){return!!e.match(s)},e.exports.remove=i},1609:e=>{"use strict";e.exports=window.React}},t={};function n(o){var s=t[o];if(void 0!==s)return s.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{AlignmentToolbar:()=>Zl,Autocomplete:()=>Kl,AutosaveMonitor:()=>Wo,BlockAlignmentToolbar:()=>Yl,BlockControls:()=>ql,BlockEdit:()=>Ql,BlockEditorKeyboardShortcuts:()=>Xl,BlockFormatControls:()=>Jl,BlockIcon:()=>ec,BlockInspector:()=>tc,BlockList:()=>nc,BlockMover:()=>oc,BlockNavigationDropdown:()=>sc,BlockSelectionClearer:()=>rc,BlockSettingsMenu:()=>ic,BlockTitle:()=>ac,BlockToolbar:()=>lc,CharacterCount:()=>fl,ColorPalette:()=>cc,ContrastChecker:()=>uc,CopyHandler:()=>dc,DefaultBlockAppender:()=>pc,DocumentBar:()=>ss,DocumentOutline:()=>hs,DocumentOutlineCheck:()=>_s,EditorHistoryRedo:()=>vs,EditorHistoryUndo:()=>ys,EditorKeyboardShortcuts:()=>Go,EditorKeyboardShortcutsRegister:()=>fs,EditorNotices:()=>ks,EditorProvider:()=>Hl,EditorSnackbars:()=>Ps,EntitiesSavedStates:()=>Ms,ErrorBoundary:()=>zs,FontSizePicker:()=>mc,InnerBlocks:()=>hc,Inserter:()=>gc,InspectorAdvancedControls:()=>_c,InspectorControls:()=>fc,LocalAutosaveMonitor:()=>$s,MediaPlaceholder:()=>kc,MediaUpload:()=>Sc,MediaUploadCheck:()=>Pc,MultiSelectScrollIntoView:()=>Cc,NavigableToolbar:()=>Tc,ObserveTyping:()=>xc,PageAttributesCheck:()=>Ks,PageAttributesOrder:()=>qs,PageAttributesPanel:()=>ar,PageAttributesParent:()=>rr,PageTemplate:()=>br,PanelColorSettings:()=>Ec,PlainText:()=>bc,PostAuthor:()=>Or,PostAuthorCheck:()=>Lr,PostAuthorPanel:()=>Mr,PostComments:()=>Fr,PostDiscussionPanel:()=>Hr,PostExcerpt:()=>zr,PostExcerptCheck:()=>Gr,PostExcerptPanel:()=>Yr,PostFeaturedImage:()=>ri,PostFeaturedImageCheck:()=>Xr,PostFeaturedImagePanel:()=>ai,PostFormat:()=>ui,PostFormatCheck:()=>li,PostLastRevision:()=>mi,PostLastRevisionCheck:()=>pi,PostLastRevisionPanel:()=>gi,PostLockedModal:()=>hi,PostPendingStatus:()=>fi,PostPendingStatusCheck:()=>_i,PostPingbacks:()=>Vr,PostPreviewButton:()=>Ei,PostPublishButton:()=>wi,PostPublishButtonLabel:()=>bi,PostPublishPanel:()=>Ba,PostSavedState:()=>Aa,PostSchedule:()=>$i,PostScheduleCheck:()=>Ra,PostScheduleLabel:()=>Ki,PostSchedulePanel:()=>Oa,PostSlug:()=>Fa,PostSlugCheck:()=>La,PostSticky:()=>Ua,PostStickyCheck:()=>Va,PostSwitchToDraftButton:()=>Ha,PostSyncStatus:()=>za,PostTaxonomies:()=>ja,PostTaxonomiesCheck:()=>Wa,PostTaxonomiesFlatTermSelector:()=>ia,PostTaxonomiesHierarchicalTermSelector:()=>_a,PostTaxonomiesPanel:()=>Ka,PostTemplatePanel:()=>Br,PostTextEditor:()=>Ya,PostTitle:()=>tl,PostTitleRaw:()=>nl,PostTrash:()=>ol,PostTrashCheck:()=>sl,PostTypeSupportCheck:()=>Zs,PostURL:()=>rl,PostURLCheck:()=>il,PostURLLabel:()=>al,PostURLPanel:()=>cl,PostVisibility:()=>Ci,PostVisibilityCheck:()=>dl,PostVisibilityLabel:()=>xi,RichText:()=>$l,RichTextShortcut:()=>vc,RichTextToolbarButton:()=>yc,ServerSideRender:()=>Gl(),SkipToSelectedBlock:()=>Bc,TableOfContents:()=>bl,TextEditorGlobalKeyboardShortcuts:()=>Wc,ThemeSupportCheck:()=>Qr,TimeToRead:()=>_l,URLInput:()=>Ic,URLInputButton:()=>Nc,URLPopover:()=>Dc,UnsavedChangesWarning:()=>vl,VisualEditorGlobalKeyboardShortcuts:()=>jc,Warning:()=>Ac,WordCount:()=>gl,WritingFlow:()=>Rc,__unstableRichTextInputEvent:()=>wc,cleanForSlug:()=>$c,createCustomColorsHOC:()=>Oc,getColorClassName:()=>Lc,getColorObjectByAttributeValues:()=>Mc,getColorObjectByColorValue:()=>Fc,getFontSize:()=>Vc,getFontSizeClass:()=>Uc,getTemplatePartIcon:()=>U,mediaUpload:()=>Bl,privateApis:()=>Bu,store:()=>xo,storeConfig:()=>To,transformStyles:()=>m.transformStyles,useEntitiesSavedStatesIsDirty:()=>Rs,usePostScheduleLabel:()=>Zi,usePostURLLabel:()=>ll,usePostVisibilityLabel:()=>Bi,userAutocompleter:()=>Ao,withColorContext:()=>Hc,withColors:()=>zc,withFontSizes:()=>Gc});var e={};n.r(e),n.d(e,{__experimentalGetDefaultTemplatePartAreas:()=>Jt,__experimentalGetDefaultTemplateType:()=>en,__experimentalGetDefaultTemplateTypes:()=>Xt,__experimentalGetTemplateInfo:()=>tn,__unstableIsEditorReady:()=>$e,canInsertBlockType:()=>Zt,canUserUseUnfilteredHTML:()=>Me,didPostSaveRequestFail:()=>ve,didPostSaveRequestSucceed:()=>be,getActivePostLock:()=>Le,getAdjacentBlockClientId:()=>bt,getAutosaveAttribute:()=>re,getBlock:()=>st,getBlockAttributes:()=>ot,getBlockCount:()=>ut,getBlockHierarchyRootClientId:()=>Et,getBlockIndex:()=>At,getBlockInsertionPoint:()=>Gt,getBlockListSettings:()=>Qt,getBlockMode:()=>Ut,getBlockName:()=>tt,getBlockOrder:()=>Dt,getBlockRootClientId:()=>ft,getBlockSelectionEnd:()=>pt,getBlockSelectionStart:()=>dt,getBlocks:()=>rt,getBlocksByClientId:()=>ct,getClientIdsOfDescendants:()=>it,getClientIdsWithDescendants:()=>at,getCurrentPost:()=>Y,getCurrentPostAttribute:()=>ne,getCurrentPostId:()=>Q,getCurrentPostLastRevisionId:()=>ee,getCurrentPostRevisionsCount:()=>J,getCurrentPostType:()=>q,getCurrentTemplateId:()=>X,getDeviceType:()=>Ye,getEditedPostAttribute:()=>se,getEditedPostContent:()=>Pe,getEditedPostPreviewLink:()=>ke,getEditedPostSlug:()=>Be,getEditedPostVisibility:()=>ie,getEditorBlocks:()=>Ve,getEditorSelection:()=>We,getEditorSelectionEnd:()=>je,getEditorSelectionStart:()=>Ge,getEditorSettings:()=>Ke,getFirstMultiSelectedBlockClientId:()=>Pt,getGlobalBlockCount:()=>lt,getInserterItems:()=>Yt,getLastMultiSelectedBlockClientId:()=>Ct,getMultiSelectedBlockClientIds:()=>kt,getMultiSelectedBlocks:()=>St,getMultiSelectedBlocksEndClientId:()=>Nt,getMultiSelectedBlocksStartClientId:()=>It,getNextBlockClientId:()=>yt,getPermalink:()=>xe,getPermalinkParts:()=>Ie,getPostEdits:()=>te,getPostLockUser:()=>Oe,getPostTypeLabel:()=>nn,getPreviousBlockClientId:()=>vt,getRenderingMode:()=>Ze,getSelectedBlock:()=>_t,getSelectedBlockClientId:()=>ht,getSelectedBlockCount:()=>mt,getSelectedBlocksInitialCaretPosition:()=>wt,getStateBeforeOptimisticTransaction:()=>Xe,getSuggestedPostFormat:()=>Se,getTemplate:()=>$t,getTemplateLock:()=>Kt,hasChangedContent:()=>W,hasEditorRedo:()=>G,hasEditorUndo:()=>z,hasInserterItems:()=>qt,hasMultiSelection:()=>Mt,hasNonPostEntityChanges:()=>K,hasSelectedBlock:()=>gt,hasSelectedInnerBlock:()=>Ot,inSomeHistory:()=>Je,isAncestorMultiSelected:()=>Bt,isAutosavingPost:()=>ye,isBlockInsertionPointVisible:()=>jt,isBlockMultiSelected:()=>xt,isBlockSelected:()=>Rt,isBlockValid:()=>nt,isBlockWithinSelection:()=>Lt,isCaretWithinFormattedText:()=>zt,isCleanNewPost:()=>Z,isCurrentPostPending:()=>ae,isCurrentPostPublished:()=>le,isCurrentPostScheduled:()=>ce,isDeletingPost:()=>_e,isEditedPostAutosaveable:()=>me,isEditedPostBeingScheduled:()=>ge,isEditedPostDateFloating:()=>he,isEditedPostDirty:()=>$,isEditedPostEmpty:()=>pe,isEditedPostNew:()=>j,isEditedPostPublishable:()=>ue,isEditedPostSaveable:()=>de,isEditorPanelEnabled:()=>He,isEditorPanelOpened:()=>ze,isEditorPanelRemoved:()=>Ue,isFirstMultiSelectedBlock:()=>Tt,isInserterOpened:()=>Qe,isListViewOpened:()=>qe,isMultiSelecting:()=>Ft,isPermalinkEditable:()=>Te,isPostAutosavingLocked:()=>Ae,isPostLockTakeover:()=>Re,isPostLocked:()=>Ne,isPostSavingLocked:()=>De,isPreviewingPost:()=>we,isPublishSidebarEnabled:()=>Fe,isPublishingPost:()=>Ce,isSavingNonPostEntityChanges:()=>Ee,isSavingPost:()=>fe,isSelectionEnabled:()=>Vt,isTyping:()=>Ht,isValidTemplate:()=>Wt});var t={};n.r(t),n.d(t,{__experimentalTearDownEditor:()=>dn,__unstableSaveForPreview:()=>yn,autosave:()=>vn,clearSelectedBlock:()=>qn,createUndoLevel:()=>Sn,disablePublishSidebar:()=>Tn,editPost:()=>_n,enablePublishSidebar:()=>Cn,enterFormattedText:()=>_o,exitFormattedText:()=>fo,hideInsertionPoint:()=>io,insertBlock:()=>oo,insertBlocks:()=>so,insertDefaultBlock:()=>Eo,lockPostAutosaving:()=>In,lockPostSaving:()=>xn,mergeBlocks:()=>co,moveBlockToPosition:()=>no,moveBlocksDown:()=>eo,moveBlocksUp:()=>to,multiSelect:()=>Yn,receiveBlocks:()=>Gn,redo:()=>wn,refreshPost:()=>En,removeBlock:()=>po,removeBlocks:()=>uo,removeEditorPanel:()=>Fn,replaceBlock:()=>Jn,replaceBlocks:()=>Xn,resetBlocks:()=>zn,resetEditorBlocks:()=>Dn,resetPost:()=>pn,savePost:()=>fn,selectBlock:()=>$n,setDeviceType:()=>On,setEditedPost:()=>hn,setIsInserterOpened:()=>Vn,setIsListViewOpened:()=>Un,setRenderingMode:()=>Rn,setTemplateValidity:()=>ao,setupEditor:()=>un,setupEditorState:()=>gn,showInsertionPoint:()=>ro,startMultiSelect:()=>Kn,startTyping:()=>go,stopMultiSelect:()=>Zn,stopTyping:()=>ho,synchronizeTemplate:()=>lo,toggleBlockMode:()=>mo,toggleEditorPanelEnabled:()=>Ln,toggleEditorPanelOpened:()=>Mn,toggleSelection:()=>Qn,trashPost:()=>bn,undo:()=>kn,unlockPostAutosaving:()=>Nn,unlockPostSaving:()=>Bn,updateBlock:()=>jn,updateBlockAttributes:()=>Wn,updateBlockListSettings:()=>bo,updateEditorSettings:()=>An,updatePost:()=>mn,updatePostLock:()=>Pn});var s={};n.r(s),n.d(s,{createTemplate:()=>yo,hideBlockTypes:()=>ko,setCurrentTemplateId:()=>vo,showBlockTypes:()=>wo});var r={};n.r(r),n.d(r,{getInsertionPoint:()=>Po,getListViewToggleRef:()=>Co});const i=window.wp.blocks,a=window.wp.data,l=window.wp.privateApis,{lock:c,unlock:u}=(0,l.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/editor"),d=window.wp.i18n,p=((0,d._x)("Pattern Overrides","block bindings source"),window.wp.coreData),m=window.wp.blockEditor,g={...m.SETTINGS_DEFAULTS,richEditingEnabled:!0,codeEditingEnabled:!0,fontLibraryEnabled:!0,enableCustomFields:void 0,defaultRenderingMode:"post-only"};function h(e){return e&&"object"==typeof e&&"raw"in e?e.raw:e}const _=(0,a.combineReducers)({postId:function(e=null,t){return"SET_EDITED_POST"===t.type?t.postId:e},postType:function(e=null,t){return"SET_EDITED_POST"===t.type?t.postType:e},templateId:function(e=null,t){return"SET_CURRENT_TEMPLATE_ID"===t.type?t.id:e},saving:function(e={},t){switch(t.type){case"REQUEST_POST_UPDATE_START":case"REQUEST_POST_UPDATE_FINISH":return{pending:"REQUEST_POST_UPDATE_START"===t.type,options:t.options||{}}}return e},deleting:function(e={},t){switch(t.type){case"REQUEST_POST_DELETE_START":case"REQUEST_POST_DELETE_FINISH":return{pending:"REQUEST_POST_DELETE_START"===t.type}}return e},postLock:function(e={isLocked:!1},t){return"UPDATE_POST_LOCK"===t.type?t.lock:e},template:function(e={isValid:!0},t){return"SET_TEMPLATE_VALIDITY"===t.type?{...e,isValid:t.isValid}:e},postSavingLock:function(e={},t){switch(t.type){case"LOCK_POST_SAVING":return{...e,[t.lockName]:!0};case"UNLOCK_POST_SAVING":{const{[t.lockName]:n,...o}=e;return o}}return e},editorSettings:function(e=g,t){return"UPDATE_EDITOR_SETTINGS"===t.type?{...e,...t.settings}:e},postAutosavingLock:function(e={},t){switch(t.type){case"LOCK_POST_AUTOSAVING":return{...e,[t.lockName]:!0};case"UNLOCK_POST_AUTOSAVING":{const{[t.lockName]:n,...o}=e;return o}}return e},renderingMode:function(e="post-only",t){return"SET_RENDERING_MODE"===t.type?t.mode:e},deviceType:function(e="Desktop",t){return"SET_DEVICE_TYPE"===t.type?t.deviceType:e},removedPanels:function(e=[],t){if("REMOVE_PANEL"===t.type)if(!e.includes(t.panelName))return[...e,t.panelName];return e},blockInserterPanel:function(e=!1,t){switch(t.type){case"SET_IS_LIST_VIEW_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return t.value}return e},listViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_INSERTER_OPENED":return!t.value&&e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen}return e},listViewToggleRef:function(e={current:null}){return e}});var f={};function E(e){return[e]}function b(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}function v(e,t){var n,o=t||E;function s(){n=new WeakMap}function r(){var t,s,r,i,a,l=arguments.length;for(i=new Array(l),r=0;r<l;r++)i[r]=arguments[r];for(t=function(e){var t,o,s,r,i,a=n,l=!0;for(t=0;t<e.length;t++){if(!(i=o=e[t])||"object"!=typeof i){l=!1;break}a.has(o)?a=a.get(o):(s=new WeakMap,a.set(o,s),a=s)}return a.has(f)||((r=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=l,a.set(f,r)),a.get(f)}(a=o.apply(null,i)),t.isUniqueByDependants||(t.lastDependants&&!b(a,t.lastDependants,0)&&t.clear(),t.lastDependants=a),s=t.head;s;){if(b(s.args,i,1))return s!==t.head&&(s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=t.head,s.prev=null,t.head.prev=s,t.head=s),s.val;s=s.next}return s={val:e.apply(null,i)},i[0]=null,s.args=i,t.head&&(t.head.prev=s,s.next=t.head),t.head=s,s.val}return r.getDependants=o,r.clear=s,s(),r}const y=window.wp.date,w=window.wp.url,k=window.wp.deprecated;var S=n.n(k);const P=window.wp.element;var C=n(1609);const T=window.wp.primitives,x=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),B=window.wp.preferences,I=new Set(["meta"]),N="SAVE_POST_NOTICE_ID",D="TRASH_POST_NOTICE_ID",A=/%(?:postname|pagename)%/,R=6e4,O=["title","excerpt","content"],L=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),M=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),F=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),V=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));function U(e){return"header"===e?L:"footer"===e?M:"sidebar"===e?F:V}const H={},z=(0,a.createRegistrySelector)((e=>()=>e(p.store).hasUndo())),G=(0,a.createRegistrySelector)((e=>()=>e(p.store).hasRedo()));function j(e){return"auto-draft"===Y(e).status}function W(e){return"content"in te(e)}const $=(0,a.createRegistrySelector)((e=>t=>{const n=q(t),o=Q(t);return!!e(p.store).hasEditsForEntityRecord("postType",n,o)})),K=(0,a.createRegistrySelector)((e=>t=>{const n=e(p.store).__experimentalGetDirtyEntityRecords(),{type:o,id:s}=Y(t);return n.some((e=>"postType"!==e.kind||e.name!==o||e.key!==s))}));function Z(e){return!$(e)&&j(e)}const Y=(0,a.createRegistrySelector)((e=>t=>{const n=Q(t),o=q(t),s=e(p.store).getRawEntityRecord("postType",o,n);return s||H}));function q(e){return e.postType}function Q(e){return e.postId}function X(e){return e.templateId}function J(e){var t;return null!==(t=Y(e)._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}function ee(e){var t;return null!==(t=Y(e)._links?.["predecessor-version"]?.[0]?.id)&&void 0!==t?t:null}const te=(0,a.createRegistrySelector)((e=>t=>{const n=q(t),o=Q(t);return e(p.store).getEntityRecordEdits("postType",n,o)||H}));function ne(e,t){switch(t){case"type":return q(e);case"id":return Q(e);default:const n=Y(e);if(!n.hasOwnProperty(t))break;return h(n[t])}}const oe=v(((e,t)=>{const n=te(e);return n.hasOwnProperty(t)?{...ne(e,t),...n[t]}:ne(e,t)}),((e,t)=>[ne(e,t),te(e)[t]]));function se(e,t){if("content"===t)return Pe(e);const n=te(e);return n.hasOwnProperty(t)?I.has(t)?oe(e,t):n[t]:ne(e,t)}const re=(0,a.createRegistrySelector)((e=>(t,n)=>{if(!O.includes(n)&&"preview_link"!==n)return;const o=q(t);if("wp_template"===o)return!1;const s=Q(t),r=e(p.store).getCurrentUser()?.id,i=e(p.store).getAutosave(o,s,r);return i?h(i[n]):void 0}));function ie(e){if("private"===se(e,"status"))return"private";return se(e,"password")?"password":"public"}function ae(e){return"pending"===Y(e).status}function le(e,t){const n=t||Y(e);return-1!==["publish","private"].indexOf(n.status)||"future"===n.status&&!(0,y.isInTheFuture)(new Date(Number((0,y.getDate)(n.date))-R))}function ce(e){return"future"===Y(e).status&&!le(e)}function ue(e){const t=Y(e);return $(e)||-1===["publish","private","future"].indexOf(t.status)}function de(e){return!fe(e)&&(!!se(e,"title")||!!se(e,"excerpt")||!pe(e)||"native"===P.Platform.OS)}const pe=(0,a.createRegistrySelector)((e=>t=>{const n=Q(t),o=q(t),s=e(p.store).getEditedEntityRecord("postType",o,n);if("function"!=typeof s.content)return!s.content;const r=se(t,"blocks");if(0===r.length)return!0;if(r.length>1)return!1;const a=r[0].name;return(a===(0,i.getDefaultBlockName)()||a===(0,i.getFreeformContentHandlerName)())&&!Pe(t)})),me=(0,a.createRegistrySelector)((e=>t=>{if(!de(t))return!1;if(Ae(t))return!1;const n=q(t);if("wp_template"===n)return!1;const o=Q(t),s=e(p.store).hasFetchedAutosaves(n,o),r=e(p.store).getCurrentUser()?.id,i=e(p.store).getAutosave(n,o,r);return!!s&&(!i||(!!W(t)||["title","excerpt","meta"].some((e=>h(i[e])!==se(t,e)))))}));function ge(e){const t=se(e,"date"),n=new Date(Number((0,y.getDate)(t))-R);return(0,y.isInTheFuture)(n)}function he(e){const t=se(e,"date"),n=se(e,"modified"),o=Y(e).status;return("draft"===o||"auto-draft"===o||"pending"===o)&&(t===n||null===t)}function _e(e){return!!e.deleting.pending}function fe(e){return!!e.saving.pending}const Ee=(0,a.createRegistrySelector)((e=>t=>{const n=e(p.store).__experimentalGetEntitiesBeingSaved(),{type:o,id:s}=Y(t);return n.some((e=>"postType"!==e.kind||e.name!==o||e.key!==s))})),be=(0,a.createRegistrySelector)((e=>t=>{const n=q(t),o=Q(t);return!e(p.store).getLastEntitySaveError("postType",n,o)})),ve=(0,a.createRegistrySelector)((e=>t=>{const n=q(t),o=Q(t);return!!e(p.store).getLastEntitySaveError("postType",n,o)}));function ye(e){return fe(e)&&Boolean(e.saving.options?.isAutosave)}function we(e){return fe(e)&&Boolean(e.saving.options?.isPreview)}function ke(e){if(e.saving.pending||fe(e))return;let t=re(e,"preview_link");t&&"draft"!==Y(e).status||(t=se(e,"link"),t&&(t=(0,w.addQueryArgs)(t,{preview:!0})));const n=se(e,"featured_media");return t&&n?(0,w.addQueryArgs)(t,{_thumbnail_id:n}):t}const Se=(0,a.createRegistrySelector)((e=>()=>{const t=e(m.store).getBlocks();if(t.length>2)return null;let n;if(1===t.length&&(n=t[0].name,"core/embed"===n)){const e=t[0].attributes?.providerNameSlug;["youtube","vimeo"].includes(e)?n="core/video":["spotify","soundcloud"].includes(e)&&(n="core/audio")}switch(2===t.length&&"core/paragraph"===t[1].name&&(n=t[0].name),n){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":return"video";case"core/audio":return"audio";default:return null}})),Pe=(0,a.createRegistrySelector)((e=>t=>{const n=Q(t),o=q(t),s=e(p.store).getEditedEntityRecord("postType",o,n);if(s){if("function"==typeof s.content)return s.content(s);if(s.blocks)return(0,i.__unstableSerializeAndClean)(s.blocks);if(s.content)return s.content}return""}));function Ce(e){return fe(e)&&!le(e)&&"publish"===se(e,"status")}function Te(e){const t=se(e,"permalink_template");return A.test(t)}function xe(e){const t=Ie(e);if(!t)return null;const{prefix:n,postName:o,suffix:s}=t;return Te(e)?n+o+s:n}function Be(e){return se(e,"slug")||(0,w.cleanForSlug)(se(e,"title"))||Q(e)}function Ie(e){const t=se(e,"permalink_template");if(!t)return null;const n=se(e,"slug")||se(e,"generated_slug"),[o,s]=t.split(A);return{prefix:o,postName:n,suffix:s}}function Ne(e){return e.postLock.isLocked}function De(e){return Object.keys(e.postSavingLock).length>0}function Ae(e){return Object.keys(e.postAutosavingLock).length>0}function Re(e){return e.postLock.isTakeover}function Oe(e){return e.postLock.user}function Le(e){return e.postLock.activePostLock}function Me(e){return Boolean(Y(e)._links?.hasOwnProperty("wp:action-unfiltered-html"))}const Fe=(0,a.createRegistrySelector)((e=>()=>!!e(B.store).get("core/edit-post","isPublishSidebarEnabled"))),Ve=v((e=>se(e,"blocks")||(0,i.parse)(Pe(e))),(e=>[se(e,"blocks"),Pe(e)]));function Ue(e,t){return e.removedPanels.includes(t)}const He=(0,a.createRegistrySelector)((e=>(t,n)=>{const o=e(B.store).get("core","inactivePanels");return!Ue(t,n)&&!o?.includes(n)})),ze=(0,a.createRegistrySelector)((e=>(t,n)=>{const o=e(B.store).get("core","openPanels");return!!o?.includes(n)}));function Ge(e){return S()("select('core/editor').getEditorSelectionStart",{since:"5.8",alternative:"select('core/editor').getEditorSelection"}),se(e,"selection")?.selectionStart}function je(e){return S()("select('core/editor').getEditorSelectionStart",{since:"5.8",alternative:"select('core/editor').getEditorSelection"}),se(e,"selection")?.selectionEnd}function We(e){return se(e,"selection")}function $e(e){return!!e.postId}function Ke(e){return e.editorSettings}function Ze(e){return e.renderingMode}function Ye(e){return e.deviceType}function qe(e){return e.listViewPanel}function Qe(e){return!!e.blockInserterPanel}function Xe(){return S()("select('core/editor').getStateBeforeOptimisticTransaction",{since:"5.7",hint:"No state history is kept on this store anymore"}),null}function Je(){return S()("select('core/editor').inSomeHistory",{since:"5.7",hint:"No state history is kept on this store anymore"}),!1}function et(e){return(0,a.createRegistrySelector)((t=>(n,...o)=>(S()("`wp.data.select( 'core/editor' )."+e+"`",{since:"5.3",alternative:"`wp.data.select( 'core/block-editor' )."+e+"`",version:"6.2"}),t(m.store)[e](...o))))}const tt=et("getBlockName"),nt=et("isBlockValid"),ot=et("getBlockAttributes"),st=et("getBlock"),rt=et("getBlocks"),it=et("getClientIdsOfDescendants"),at=et("getClientIdsWithDescendants"),lt=et("getGlobalBlockCount"),ct=et("getBlocksByClientId"),ut=et("getBlockCount"),dt=et("getBlockSelectionStart"),pt=et("getBlockSelectionEnd"),mt=et("getSelectedBlockCount"),gt=et("hasSelectedBlock"),ht=et("getSelectedBlockClientId"),_t=et("getSelectedBlock"),ft=et("getBlockRootClientId"),Et=et("getBlockHierarchyRootClientId"),bt=et("getAdjacentBlockClientId"),vt=et("getPreviousBlockClientId"),yt=et("getNextBlockClientId"),wt=et("getSelectedBlocksInitialCaretPosition"),kt=et("getMultiSelectedBlockClientIds"),St=et("getMultiSelectedBlocks"),Pt=et("getFirstMultiSelectedBlockClientId"),Ct=et("getLastMultiSelectedBlockClientId"),Tt=et("isFirstMultiSelectedBlock"),xt=et("isBlockMultiSelected"),Bt=et("isAncestorMultiSelected"),It=et("getMultiSelectedBlocksStartClientId"),Nt=et("getMultiSelectedBlocksEndClientId"),Dt=et("getBlockOrder"),At=et("getBlockIndex"),Rt=et("isBlockSelected"),Ot=et("hasSelectedInnerBlock"),Lt=et("isBlockWithinSelection"),Mt=et("hasMultiSelection"),Ft=et("isMultiSelecting"),Vt=et("isSelectionEnabled"),Ut=et("getBlockMode"),Ht=et("isTyping"),zt=et("isCaretWithinFormattedText"),Gt=et("getBlockInsertionPoint"),jt=et("isBlockInsertionPointVisible"),Wt=et("isValidTemplate"),$t=et("getTemplate"),Kt=et("getTemplateLock"),Zt=et("canInsertBlockType"),Yt=et("getInserterItems"),qt=et("hasInserterItems"),Qt=et("getBlockListSettings");function Xt(e){return Ke(e)?.defaultTemplateTypes}const Jt=v((e=>{const t=Ke(e)?.defaultTemplatePartAreas||[];return t?.map((e=>({...e,icon:U(e.icon)})))}),(e=>[Ke(e)?.defaultTemplatePartAreas])),en=v(((e,t)=>{var n;const o=Xt(e);return o&&null!==(n=Object.values(o).find((e=>e.slug===t)))&&void 0!==n?n:H}),((e,t)=>[Xt(e),t]));function tn(e,t){if(!t)return H;const{description:n,slug:o,title:s,area:r}=t,{title:i,description:a}=en(e,o),l="string"==typeof s?s:s?.rendered;return{title:l&&l!==o?l:i||o,description:("string"==typeof n?n:n?.raw)||a,icon:Jt(e).find((e=>r===e.area))?.icon||x}}const nn=(0,a.createRegistrySelector)((e=>t=>{const n=q(t),o=e(p.store).getPostType(n);return o?.labels?.singular_name})),on=window.wp.apiFetch;var sn=n.n(on);const rn=window.wp.notices,an=window.wp.hooks;function ln(e,t){return`wp-autosave-block-editor-post-${t?"auto-draft":e}`}function cn(e,t){window.sessionStorage.removeItem(ln(e,t))}const un=(e,t,n)=>({dispatch:o})=>{o.setEditedPost(e.type,e.id);if("auto-draft"===e.status&&n){let s;s="content"in t?t.content:e.content.raw;let r=(0,i.parse)(s);r=(0,i.synchronizeBlocksWithTemplate)(r,n),o.resetEditorBlocks(r,{__unstableShouldCreateUndoLevel:!1})}t&&Object.values(t).some((([t,n])=>{var o;return n!==(null!==(o=e[t]?.raw)&&void 0!==o?o:e[t])}))&&o.editPost(t)};function dn(){return S()("wp.data.dispatch( 'core/editor' ).__experimentalTearDownEditor",{since:"6.5"}),{type:"DO_NOTHING"}}function pn(){return S()("wp.data.dispatch( 'core/editor' ).resetPost",{since:"6.0",version:"6.3",alternative:"Initialize the editor with the setupEditorState action"}),{type:"DO_NOTHING"}}function mn(){return S()("wp.data.dispatch( 'core/editor' ).updatePost",{since:"5.7",alternative:"Use the core entities store instead"}),{type:"DO_NOTHING"}}function gn(e){return S()("wp.data.dispatch( 'core/editor' ).setupEditorState",{since:"6.5",alternative:"wp.data.dispatch( 'core/editor' ).setEditedPost"}),hn(e.type,e.id)}function hn(e,t){return{type:"SET_EDITED_POST",postType:e,postId:t}}const _n=(e,t)=>({select:n,registry:o})=>{const{id:s,type:r}=n.getCurrentPost();o.dispatch(p.store).editEntityRecord("postType",r,s,e,t)},fn=(e={})=>async({select:t,dispatch:n,registry:o})=>{if(!t.isEditedPostSaveable())return;const s=t.getEditedPostContent();e.isAutosave||n.editPost({content:s},{undoIgnore:!0});const r=t.getCurrentPost(),i={id:r.id,...o.select(p.store).getEntityRecordNonTransientEdits("postType",r.type,r.id),content:s};n({type:"REQUEST_POST_UPDATE_START",options:e}),await o.dispatch(p.store).saveEntityRecord("postType",r.type,i,e);let a=o.select(p.store).getLastEntitySaveError("postType",r.type,r.id);if(a||await(0,an.applyFilters)("editor.__unstableSavePost",Promise.resolve(),e).catch((e=>{a=e})),n({type:"REQUEST_POST_UPDATE_FINISH",options:e}),a){const e=function(e){const{post:t,edits:n,error:o}=e;if(o&&"rest_autosave_no_changes"===o.code)return[];const s=["publish","private","future"],r=-1!==s.indexOf(t.status),i={publish:(0,d.__)("Publishing failed."),private:(0,d.__)("Publishing failed."),future:(0,d.__)("Scheduling failed.")};let a=r||-1===s.indexOf(n.status)?(0,d.__)("Updating failed."):i[n.status];return o.message&&!/<\/?[^>]*>/.test(o.message)&&(a=[a,o.message].join(" ")),[a,{id:N}]}({post:r,edits:i,error:a});e.length&&o.dispatch(rn.store).createErrorNotice(...e)}else{const n=t.getCurrentPost(),s=function(e){var t;const{previousPost:n,post:o,postType:s}=e;if(e.options?.isAutosave)return[];const r=["publish","private","future"],i=r.includes(n.status),a=r.includes(o.status),l="trash"===o.status&&"trash"!==n.status;let c,u,p=null!==(t=s?.viewable)&&void 0!==t&&t;l?(c=s.labels.item_trashed,p=!1):i||a?i&&!a?(c=s.labels.item_reverted_to_draft,p=!1):c=!i&&a?{publish:s.labels.item_published,private:s.labels.item_published_privately,future:s.labels.item_scheduled}[o.status]:s.labels.item_updated:(c=(0,d.__)("Draft saved."),u=!0);const m=[];return p&&m.push({label:u?(0,d.__)("View Preview"):s.labels.view_item,url:o.link}),[c,{id:N,type:"snackbar",actions:m}]}({previousPost:r,post:n,postType:await o.resolveSelect(p.store).getPostType(n.type),options:e});s.length&&o.dispatch(rn.store).createSuccessNotice(...s),e.isAutosave||o.dispatch(m.store).__unstableMarkLastChangeAsPersistent()}};function En(){return S()("wp.data.dispatch( 'core/editor' ).refreshPost",{since:"6.0",version:"6.3",alternative:"Use the core entities store instead"}),{type:"DO_NOTHING"}}const bn=()=>async({select:e,dispatch:t,registry:n})=>{const o=e.getCurrentPostType(),s=await n.resolveSelect(p.store).getPostType(o);n.dispatch(rn.store).removeNotice(D);const{rest_base:r,rest_namespace:i="wp/v2"}=s;t({type:"REQUEST_POST_DELETE_START"});try{const n=e.getCurrentPost();await sn()({path:`/${i}/${r}/${n.id}`,method:"DELETE"}),await t.savePost()}catch(e){n.dispatch(rn.store).createErrorNotice(...(a={error:e},[a.error.message&&"unknown_error"!==a.error.code?a.error.message:(0,d.__)("Trashing failed"),{id:D}]))}var a;t({type:"REQUEST_POST_DELETE_FINISH"})},vn=({local:e=!1,...t}={})=>async({select:n,dispatch:o})=>{const s=n.getCurrentPost();if("wp_template"!==s.type)if(e){const e=n.isEditedPostNew(),t=n.getEditedPostAttribute("title"),o=n.getEditedPostAttribute("content"),r=n.getEditedPostAttribute("excerpt");!function(e,t,n,o,s){window.sessionStorage.setItem(ln(e,t),JSON.stringify({post_title:n,content:o,excerpt:s}))}(s.id,e,t,o,r)}else await o.savePost({isAutosave:!0,...t})},yn=({forceIsAutosaveable:e}={})=>async({select:t,dispatch:n})=>{if((e||t.isEditedPostAutosaveable())&&!t.isPostLocked()){["draft","auto-draft"].includes(t.getEditedPostAttribute("status"))?await n.savePost({isPreview:!0}):await n.autosave({isPreview:!0})}return t.getEditedPostPreviewLink()},wn=()=>({registry:e})=>{e.dispatch(p.store).redo()},kn=()=>({registry:e})=>{e.dispatch(p.store).undo()};function Sn(){return S()("wp.data.dispatch( 'core/editor' ).createUndoLevel",{since:"6.0",version:"6.3",alternative:"Use the core entities store instead"}),{type:"DO_NOTHING"}}function Pn(e){return{type:"UPDATE_POST_LOCK",lock:e}}const Cn=()=>({registry:e})=>{e.dispatch(B.store).set("core/edit-post","isPublishSidebarEnabled",!0)},Tn=()=>({registry:e})=>{e.dispatch(B.store).set("core/edit-post","isPublishSidebarEnabled",!1)};function xn(e){return{type:"LOCK_POST_SAVING",lockName:e}}function Bn(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function In(e){return{type:"LOCK_POST_AUTOSAVING",lockName:e}}function Nn(e){return{type:"UNLOCK_POST_AUTOSAVING",lockName:e}}const Dn=(e,t={})=>({select:n,dispatch:o,registry:s})=>{const{__unstableShouldCreateUndoLevel:r,selection:a}=t,l={blocks:e,selection:a};if(!1!==r){const{id:e,type:t}=n.getCurrentPost();if(s.select(p.store).getEditedEntityRecord("postType",t,e).blocks===l.blocks)return void s.dispatch(p.store).__unstableCreateUndoLevel("postType",t,e);l.content=({blocks:e=[]})=>(0,i.__unstableSerializeAndClean)(e)}o.editPost(l)};function An(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}const Rn=e=>({dispatch:t,registry:n,select:o})=>{o.__unstableIsEditorReady()&&(n.dispatch(m.store).clearSelectedBlock(),t.editPost({selection:void 0},{undoIgnore:!0})),t({type:"SET_RENDERING_MODE",mode:e})};function On(e){return{type:"SET_DEVICE_TYPE",deviceType:e}}const Ln=e=>({registry:t})=>{var n;const o=null!==(n=t.select(B.store).get("core","inactivePanels"))&&void 0!==n?n:[];let s;s=!!o?.includes(e)?o.filter((t=>t!==e)):[...o,e],t.dispatch(B.store).set("core","inactivePanels",s)},Mn=e=>({registry:t})=>{var n;const o=null!==(n=t.select(B.store).get("core","openPanels"))&&void 0!==n?n:[];let s;s=!!o?.includes(e)?o.filter((t=>t!==e)):[...o,e],t.dispatch(B.store).set("core","openPanels",s)};function Fn(e){return{type:"REMOVE_PANEL",panelName:e}}function Vn(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function Un(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}const Hn=e=>(...t)=>({registry:n})=>{S()("`wp.data.dispatch( 'core/editor' )."+e+"`",{since:"5.3",alternative:"`wp.data.dispatch( 'core/block-editor' )."+e+"`",version:"6.2"}),n.dispatch(m.store)[e](...t)},zn=Hn("resetBlocks"),Gn=Hn("receiveBlocks"),jn=Hn("updateBlock"),Wn=Hn("updateBlockAttributes"),$n=Hn("selectBlock"),Kn=Hn("startMultiSelect"),Zn=Hn("stopMultiSelect"),Yn=Hn("multiSelect"),qn=Hn("clearSelectedBlock"),Qn=Hn("toggleSelection"),Xn=Hn("replaceBlocks"),Jn=Hn("replaceBlock"),eo=Hn("moveBlocksDown"),to=Hn("moveBlocksUp"),no=Hn("moveBlockToPosition"),oo=Hn("insertBlock"),so=Hn("insertBlocks"),ro=Hn("showInsertionPoint"),io=Hn("hideInsertionPoint"),ao=Hn("setTemplateValidity"),lo=Hn("synchronizeTemplate"),co=Hn("mergeBlocks"),uo=Hn("removeBlocks"),po=Hn("removeBlock"),mo=Hn("toggleBlockMode"),go=Hn("startTyping"),ho=Hn("stopTyping"),_o=Hn("enterFormattedText"),fo=Hn("exitFormattedText"),Eo=Hn("insertDefaultBlock"),bo=Hn("updateBlockListSettings");function vo(e){return{type:"SET_CURRENT_TEMPLATE_ID",id:e}}const yo=e=>async({select:t,dispatch:n,registry:o})=>{const s=await o.dispatch(p.store).saveEntityRecord("postType","wp_template",e);return o.dispatch(p.store).editEntityRecord("postType",t.getCurrentPostType(),t.getCurrentPostId(),{template:s.slug}),o.dispatch(rn.store).createSuccessNotice((0,d.__)("Custom template created. You're in template mode now."),{type:"snackbar",actions:[{label:(0,d.__)("Go back"),onClick:()=>n.setRenderingMode(t.getEditorSettings().defaultRenderingMode)}]}),s},wo=e=>({registry:t})=>{var n;const o=(null!==(n=t.select(B.store).get("core","hiddenBlockTypes"))&&void 0!==n?n:[]).filter((t=>!(Array.isArray(e)?e:[e]).includes(t)));t.dispatch(B.store).set("core","hiddenBlockTypes",o)},ko=e=>({registry:t})=>{var n;const o=null!==(n=t.select(B.store).get("core","hiddenBlockTypes"))&&void 0!==n?n:[],s=new Set([...o,...Array.isArray(e)?e:[e]]);t.dispatch(B.store).set("core","hiddenBlockTypes",[...s])},So={rootClientId:void 0,insertionIndex:void 0,filterValue:void 0},Po=(0,a.createRegistrySelector)((e=>t=>{if("object"==typeof t.blockInserterPanel)return t.blockInserterPanel;if("template-locked"===Ze(t)){const[t]=e(m.store).getBlocksByName("core/post-content");if(t)return{rootClientId:t,insertionIndex:void 0,filterValue:void 0}}return So}));function Co(e){return e.listViewToggleRef}const To={reducer:_,selectors:e,actions:t},xo=(0,a.createReduxStore)("core/editor",{...To});(0,a.register)(xo),u(xo).registerPrivateActions(s),u(xo).registerPrivateSelectors(r);const Bo={name:"core/post-meta",label:(0,d._x)("Post Meta","block bindings source"),useSource(e,t){const{getCurrentPostType:n}=(0,a.useSelect)(xo),{context:o}=e,{key:s}=t,r=o.postType?o.postType:n(),[i,l]=(0,p.useEntityProp)("postType",o.postType,"meta",o.postId);if("wp_template"===r)return{placeholder:s};const c=i[s];return{placeholder:s,value:c,updateValue:e=>{l({...i,[s]:e})}}}},{registerBlockBindingsSource:Io}=u((0,a.dispatch)(i.store));Io(Bo);const No=window.wp.compose;function Do(e){const t=e.avatar_urls&&e.avatar_urls[24]?(0,C.createElement)("img",{className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}):(0,C.createElement)("span",{className:"editor-autocompleters__no-avatar"});return(0,C.createElement)(C.Fragment,null,t,(0,C.createElement)("span",{className:"editor-autocompleters__user-name"},e.name),(0,C.createElement)("span",{className:"editor-autocompleters__user-slug"},e.slug))}(0,an.addFilter)("blocks.registerBlockType","core/editor/custom-sources-backwards-compatibility/shim-attribute-source",(function(e){var t;const n=Object.fromEntries(Object.entries(null!==(t=e.attributes)&&void 0!==t?t:{}).filter((([,{source:e}])=>"meta"===e)).map((([e,{meta:t}])=>[e,t])));return Object.entries(n).length&&(e.edit=(e=>(0,No.createHigherOrderComponent)((t=>({attributes:n,setAttributes:o,...s})=>{const r=(0,a.useSelect)((e=>e(xo).getCurrentPostType()),[]),[i,l]=(0,p.useEntityProp)("postType",r,"meta"),c=(0,P.useMemo)((()=>({...n,...Object.fromEntries(Object.entries(e).map((([e,t])=>[e,i[t]])))})),[n,i]);return(0,C.createElement)(t,{attributes:c,setAttributes:t=>{const n=Object.fromEntries(Object.entries(null!=t?t:{}).filter((([t])=>t in e)).map((([t,n])=>[e[t],n])));Object.entries(n).length&&l(n),o(t)},...s})}),"withMetaAttributeSource"))(n)(e.edit)),e}));const Ao={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",useItems(e){const t=(0,a.useSelect)((t=>{const{getUsers:n}=t(p.store);return n({context:"view",search:encodeURIComponent(e)})}),[e]),n=(0,P.useMemo)((()=>t?t.map((e=>({key:`user-${e.slug}`,value:e,label:Do(e)}))):[]),[t]);return[n]},getOptionCompletion:e=>`@${e.slug}`};(0,an.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",(function(e=[]){return e.push({...Ao}),e}));const Ro=window.wp.patterns,{useSetPatternBindings:Oo,ResetOverridesControl:Lo,PATTERN_TYPES:Mo,PARTIAL_SYNCING_SUPPORTED_BLOCKS:Fo}=u(Ro.privateApis),Vo=(0,No.createHigherOrderComponent)((e=>t=>{const n=Object.keys(Fo).includes(t.name);return(0,C.createElement)(C.Fragment,null,(0,C.createElement)(e,{...t}),n&&(0,C.createElement)(Uo,{...t}),t.isSelected&&n&&(0,C.createElement)(Ho,{...t}))}));function Uo(e){const t=(0,a.useSelect)((e=>e(xo).getCurrentPostType()),[]);return Oo(e,t),null}function Ho(e){const t=(0,m.useBlockEditingMode)(),n=(0,a.useSelect)((e=>e(xo).getCurrentPostType()===Mo.user),[]),o=e.attributes.metadata?.bindings,s=!!o&&Object.values(o).some((e=>"core/pattern-overrides"===e.source)),r=!n&&!!e.attributes.metadata?.name&&"disabled"!==t&&s;return(0,C.createElement)(C.Fragment,null,r&&(0,C.createElement)(Lo,{...e}))}(0,an.addFilter)("editor.BlockEdit","core/editor/with-pattern-override-controls",Vo);const zo=window.wp.keyboardShortcuts;function Go(){const{redo:e,undo:t,savePost:n,setIsListViewOpened:o}=(0,a.useDispatch)(xo),{isEditedPostDirty:s,isPostSavingLocked:r,isListViewOpened:i}=(0,a.useSelect)(xo);return(0,zo.useShortcut)("core/editor/undo",(e=>{t(),e.preventDefault()})),(0,zo.useShortcut)("core/editor/redo",(t=>{e(),t.preventDefault()})),(0,zo.useShortcut)("core/editor/save",(e=>{e.preventDefault(),r()||s()&&n()})),(0,zo.useShortcut)("core/editor/toggle-list-view",(e=>{i()||(e.preventDefault(),o(!0))})),null}class jo extends P.Component{constructor(e){super(e),this.needsAutosave=!(!e.isDirty||!e.isAutosaveable)}componentDidMount(){this.props.disableIntervalChecks||this.setAutosaveTimer()}componentDidUpdate(e){this.props.disableIntervalChecks?this.props.editsReference!==e.editsReference&&this.props.autosave():(this.props.interval!==e.interval&&(clearTimeout(this.timerId),this.setAutosaveTimer()),this.props.isDirty&&(!this.props.isAutosaving||e.isAutosaving)?this.props.editsReference!==e.editsReference&&(this.needsAutosave=!0):this.needsAutosave=!1)}componentWillUnmount(){clearTimeout(this.timerId)}setAutosaveTimer(e=1e3*this.props.interval){this.timerId=setTimeout((()=>{this.autosaveTimerHandler()}),e)}autosaveTimerHandler(){this.props.isAutosaveable?(this.needsAutosave&&(this.needsAutosave=!1,this.props.autosave()),this.setAutosaveTimer()):this.setAutosaveTimer(1e3)}render(){return null}}const Wo=(0,No.compose)([(0,a.withSelect)(((e,t)=>{const{getReferenceByDistinctEdits:n}=e(p.store),{isEditedPostDirty:o,isEditedPostAutosaveable:s,isAutosavingPost:r,getEditorSettings:i}=e(xo),{interval:a=i().autosaveInterval}=t;return{editsReference:n(),isDirty:o(),isAutosaveable:s(),isAutosaving:r(),interval:a}})),(0,a.withDispatch)(((e,t)=>({autosave(){const{autosave:n=e(xo).autosave}=t;n()}})))])(jo);var $o=n(5755),Ko=n.n($o);const Zo=window.wp.components,Yo=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),qo=(0,C.createElement)(T.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(T.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})),Qo=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,C.createElement)(T.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})),Xo=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})),Jo=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})),es=window.wp.keycodes,ts=window.wp.commands,ns={wp_pattern:(0,d.__)("Editing pattern: %s"),wp_navigation:(0,d.__)("Editing navigation menu: %s"),wp_template:(0,d.__)("Editing template: %s"),wp_template_part:(0,d.__)("Editing template part: %s")},os={wp_block:Yo,wp_navigation:qo};function ss(){const{postType:e,postId:t,onNavigateToPreviousEntityRecord:n}=(0,a.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:n,getEditorSettings:o}=e(xo);return{postType:n(),postId:t(),onNavigateToPreviousEntityRecord:o().onNavigateToPreviousEntityRecord,getEditorSettings:o}}),[]);return(0,C.createElement)(rs,{postType:e,postId:t,onBack:n?()=>{n&&n()}:void 0})}function rs({postType:e,postId:t,onBack:n}){var o;const{open:s}=(0,a.useDispatch)(ts.store),{editedRecord:r,isResolving:i}=(0,p.useEntityRecord)("postType",e,t),{templateIcon:l,templateTitle:c}=(0,a.useSelect)((e=>{const{__experimentalGetTemplateInfo:t}=e(xo),n=t(r);return{templateIcon:n.icon,templateTitle:n.title}})),u=!r&&!i,g=null!==(o=os[e])&&void 0!==o?o:Qo,[h,_]=(0,P.useState)(!1),f=(0,P.useRef)(!0),E=["wp_template","wp_template_part"].includes(e),b=["wp_template","wp_navigation","wp_template_part","wp_block"].includes(e);(0,P.useEffect)((()=>{f.current||_(!0),f.current=!1}),[e,t]);const v=E?c:r.title;return(0,C.createElement)("div",{className:Ko()("editor-document-bar",{"has-back-button":!!n,"is-animated":h,"is-global":b})},n&&(0,C.createElement)(Zo.Button,{className:"editor-document-bar__back",icon:(0,d.isRTL)()?Xo:Jo,onClick:e=>{e.stopPropagation(),n()},size:"compact"},(0,d.__)("Back")),u&&(0,C.createElement)(Zo.__experimentalText,null,(0,d.__)("Document not found")),!u&&(0,C.createElement)(Zo.Button,{className:"editor-document-bar__command",onClick:()=>s(),size:"compact"},(0,C.createElement)(Zo.__experimentalHStack,{className:"editor-document-bar__title",spacing:1,justify:"center"},(0,C.createElement)(m.BlockIcon,{icon:E?l:g}),(0,C.createElement)(Zo.__experimentalText,{size:"body",as:"h1","aria-label":ns[e]?(0,d.sprintf)(ns[e],v):void 0},v)),(0,C.createElement)("span",{className:"editor-document-bar__shortcut"},es.displayShortcut.primary("k"))))}const is=window.wp.richText,as=({children:e,isValid:t,level:n,href:o,onSelect:s})=>(0,C.createElement)("li",{className:Ko()("document-outline__item",`is-${n.toLowerCase()}`,{"is-invalid":!t})},(0,C.createElement)("a",{href:o,className:"document-outline__button",onClick:s},(0,C.createElement)("span",{className:"document-outline__emdash","aria-hidden":"true"}),(0,C.createElement)("strong",{className:"document-outline__level"},n),(0,C.createElement)("span",{className:"document-outline__item-content"},e))),ls=(0,C.createElement)("em",null,(0,d.__)("(Empty heading)")),cs=[(0,C.createElement)("br",{key:"incorrect-break"}),(0,C.createElement)("em",{key:"incorrect-message"},(0,d.__)("(Incorrect heading level)"))],us=[(0,C.createElement)("br",{key:"incorrect-break-h1"}),(0,C.createElement)("em",{key:"incorrect-message-h1"},(0,d.__)("(Your theme may already use a H1 for the post title)"))],ds=[(0,C.createElement)("br",{key:"incorrect-break-multiple-h1"}),(0,C.createElement)("em",{key:"incorrect-message-multiple-h1"},(0,d.__)("(Multiple H1 headings are not recommended)"))];function ps(){return(0,C.createElement)(Zo.SVG,{width:"138",height:"148",viewBox:"0 0 138 148",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(Zo.Rect,{width:"138",height:"148",rx:"4",fill:"#F0F6FC"}),(0,C.createElement)(Zo.Line,{x1:"44",y1:"28",x2:"24",y2:"28",stroke:"#DDDDDD"}),(0,C.createElement)(Zo.Rect,{x:"48",y:"16",width:"27",height:"23",rx:"4",fill:"#DDDDDD"}),(0,C.createElement)(Zo.Path,{d:"M54.7585 32V23.2727H56.6037V26.8736H60.3494V23.2727H62.1903V32H60.3494V28.3949H56.6037V32H54.7585ZM67.4574 23.2727V32H65.6122V25.0241H65.5611L63.5625 26.277V24.6406L65.723 23.2727H67.4574Z",fill:"black"}),(0,C.createElement)(Zo.Line,{x1:"55",y1:"59",x2:"24",y2:"59",stroke:"#DDDDDD"}),(0,C.createElement)(Zo.Rect,{x:"59",y:"47",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),(0,C.createElement)(Zo.Path,{d:"M65.7585 63V54.2727H67.6037V57.8736H71.3494V54.2727H73.1903V63H71.3494V59.3949H67.6037V63H65.7585ZM74.6605 63V61.6705L77.767 58.794C78.0313 58.5384 78.2528 58.3082 78.4318 58.1037C78.6136 57.8991 78.7514 57.6989 78.8452 57.5028C78.9389 57.304 78.9858 57.0895 78.9858 56.8594C78.9858 56.6037 78.9276 56.3835 78.8111 56.1989C78.6946 56.0114 78.5355 55.8679 78.3338 55.7685C78.1321 55.6662 77.9034 55.6151 77.6477 55.6151C77.3807 55.6151 77.1477 55.669 76.9489 55.777C76.75 55.8849 76.5966 56.0398 76.4886 56.2415C76.3807 56.4432 76.3267 56.6832 76.3267 56.9616H74.5753C74.5753 56.3906 74.7045 55.8949 74.9631 55.4744C75.2216 55.054 75.5838 54.7287 76.0497 54.4986C76.5156 54.2685 77.0526 54.1534 77.6605 54.1534C78.2855 54.1534 78.8295 54.2642 79.2926 54.4858C79.7585 54.7045 80.1207 55.0085 80.3793 55.3977C80.6378 55.7869 80.767 56.233 80.767 56.7358C80.767 57.0653 80.7017 57.3906 80.571 57.7116C80.4432 58.0327 80.2145 58.3892 79.8849 58.7812C79.5554 59.1705 79.0909 59.6378 78.4915 60.1832L77.2173 61.4318V61.4915H80.8821V63H74.6605Z",fill:"black"}),(0,C.createElement)(Zo.Line,{x1:"80",y1:"90",x2:"24",y2:"90",stroke:"#DDDDDD"}),(0,C.createElement)(Zo.Rect,{x:"84",y:"78",width:"30",height:"23",rx:"4",fill:"#F0B849"}),(0,C.createElement)(Zo.Path,{d:"M90.7585 94V85.2727H92.6037V88.8736H96.3494V85.2727H98.1903V94H96.3494V90.3949H92.6037V94H90.7585ZM99.5284 92.4659V91.0128L103.172 85.2727H104.425V87.2841H103.683L101.386 90.919V90.9872H106.564V92.4659H99.5284ZM103.717 94V92.0227L103.751 91.3793V85.2727H105.482V94H103.717Z",fill:"black"}),(0,C.createElement)(Zo.Line,{x1:"66",y1:"121",x2:"24",y2:"121",stroke:"#DDDDDD"}),(0,C.createElement)(Zo.Rect,{x:"70",y:"109",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),(0,C.createElement)(Zo.Path,{d:"M76.7585 125V116.273H78.6037V119.874H82.3494V116.273H84.1903V125H82.3494V121.395H78.6037V125H76.7585ZM88.8864 125.119C88.25 125.119 87.6832 125.01 87.1861 124.791C86.6918 124.57 86.3011 124.266 86.0142 123.879C85.7301 123.49 85.5838 123.041 85.5753 122.533H87.4332C87.4446 122.746 87.5142 122.933 87.642 123.095C87.7727 123.254 87.946 123.378 88.1619 123.466C88.3778 123.554 88.6207 123.598 88.8906 123.598C89.1719 123.598 89.4205 123.548 89.6364 123.449C89.8523 123.349 90.0213 123.212 90.1435 123.036C90.2656 122.859 90.3267 122.656 90.3267 122.426C90.3267 122.193 90.2614 121.987 90.1307 121.808C90.0028 121.626 89.8182 121.484 89.5767 121.382C89.3381 121.28 89.054 121.229 88.7244 121.229H87.9105V119.874H88.7244C89.0028 119.874 89.2486 119.825 89.4616 119.729C89.6776 119.632 89.8452 119.499 89.9645 119.328C90.0838 119.155 90.1435 118.953 90.1435 118.723C90.1435 118.504 90.0909 118.312 89.9858 118.148C89.8835 117.98 89.7386 117.849 89.5511 117.756C89.3665 117.662 89.1506 117.615 88.9034 117.615C88.6534 117.615 88.4247 117.661 88.2173 117.751C88.0099 117.839 87.8438 117.966 87.7188 118.131C87.5938 118.295 87.527 118.489 87.5185 118.71H85.75C85.7585 118.207 85.902 117.764 86.1804 117.381C86.4588 116.997 86.8338 116.697 87.3054 116.482C87.7798 116.263 88.3153 116.153 88.9119 116.153C89.5142 116.153 90.0412 116.263 90.4929 116.482C90.9446 116.7 91.2955 116.996 91.5455 117.368C91.7983 117.737 91.9233 118.152 91.9205 118.612C91.9233 119.101 91.7713 119.509 91.4645 119.835C91.1605 120.162 90.7642 120.369 90.2756 120.457V120.526C90.9176 120.608 91.4063 120.831 91.7415 121.195C92.0795 121.555 92.2472 122.007 92.2443 122.55C92.2472 123.047 92.1037 123.489 91.8139 123.875C91.527 124.261 91.1307 124.565 90.625 124.787C90.1193 125.009 89.5398 125.119 88.8864 125.119Z",fill:"black"}))}const ms=(e=[])=>e.flatMap(((e={})=>"core/heading"===e.name?{...e,level:e.attributes.level,isEmpty:gs(e)}:ms(e.innerBlocks))),gs=e=>!e.attributes.content||0===e.attributes.content.length,hs=(0,No.compose)((0,a.withSelect)((e=>{var t;const{getBlocks:n}=e(m.store),{getEditedPostAttribute:o}=e(xo),{getPostType:s}=e(p.store),r=s(o("type"));return{title:o("title"),blocks:n(),isTitleSupported:null!==(t=r?.supports?.title)&&void 0!==t&&t}})))((({blocks:e=[],title:t,onSelect:n,isTitleSupported:o,hasOutlineItemsDisabled:s})=>{const r=ms(e),{selectBlock:i}=(0,a.useDispatch)(m.store);if(r.length<1)return(0,C.createElement)("div",{className:"editor-document-outline has-no-headings"},(0,C.createElement)(ps,null),(0,C.createElement)("p",null,(0,d.__)("Navigate the structure of your document and address issues like empty or incorrect heading levels.")));let l=1;const c=document.querySelector(".editor-post-title__input"),u=o&&t&&c,p=r.reduce(((e,t)=>({...e,[t.level]:(e[t.level]||0)+1})),{})[1]>1;return(0,C.createElement)("div",{className:"document-outline"},(0,C.createElement)("ul",null,u&&(0,C.createElement)(as,{level:(0,d.__)("Title"),isValid:!0,onSelect:n,href:`#${c.id}`,isDisabled:s},t),r.map(((e,t)=>{const o=e.level>l+1,r=!(e.isEmpty||o||!e.level||1===e.level&&(p||u));return l=e.level,(0,C.createElement)(as,{key:t,level:`H${e.level}`,isValid:r,isDisabled:s,href:`#block-${e.clientId}`,onSelect:()=>{i(e.clientId),n?.()}},e.isEmpty?ls:(0,is.getTextContent)((0,is.create)({html:e.attributes.content})),o&&cs,1===e.level&&p&&ds,u&&1===e.level&&!p&&us)}))))}));const _s=(0,a.withSelect)((e=>({blocks:e(m.store).getBlocks()})))((function({blocks:e,children:t}){return e.filter((e=>"core/heading"===e.name)).length<1?null:t}));const fs=function(){const{registerShortcut:e}=(0,a.useDispatch)(zo.store);return(0,P.useEffect)((()=>{e({name:"core/editor/save",category:"global",description:(0,d.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/editor/undo",category:"global",description:(0,d.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/editor/redo",category:"global",description:(0,d.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,es.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/editor/toggle-list-view",category:"global",description:(0,d.__)("Open the block list view."),keyCombination:{modifier:"access",character:"o"}})}),[e]),(0,C.createElement)(m.BlockEditorKeyboardShortcuts.Register,null)},Es=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"})),bs=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));const vs=(0,P.forwardRef)((function(e,t){const n=(0,es.isAppleOS)()?es.displayShortcut.primaryShift("z"):es.displayShortcut.primary("y"),o=(0,a.useSelect)((e=>e(xo).hasEditorRedo()),[]),{redo:s}=(0,a.useDispatch)(xo);return(0,C.createElement)(Zo.Button,{...e,ref:t,icon:(0,d.isRTL)()?bs:Es,label:(0,d.__)("Redo"),shortcut:n,"aria-disabled":!o,onClick:o?s:void 0,className:"editor-history__redo"})}));const ys=(0,P.forwardRef)((function(e,t){const n=(0,a.useSelect)((e=>e(xo).hasEditorUndo()),[]),{undo:o}=(0,a.useDispatch)(xo);return(0,C.createElement)(Zo.Button,{...e,ref:t,icon:(0,d.isRTL)()?Es:bs,label:(0,d.__)("Undo"),shortcut:es.displayShortcut.primary("z"),"aria-disabled":!n,onClick:n?o:void 0,className:"editor-history__undo"})}));const ws=(0,No.compose)([(0,a.withSelect)((e=>({isValid:e(m.store).isValidTemplate()}))),(0,a.withDispatch)((e=>{const{setTemplateValidity:t,synchronizeTemplate:n}=e(m.store);return{resetTemplateValidity:()=>t(!0),synchronizeTemplate:n}}))])((function({isValid:e,...t}){return e?null:(0,C.createElement)(Zo.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning",actions:[{label:(0,d.__)("Keep it as is"),onClick:t.resetTemplateValidity},{label:(0,d.__)("Reset the template"),onClick:()=>{window.confirm((0,d.__)("Resetting the template may result in loss of content, do you want to continue?"))&&t.synchronizeTemplate()}}]},(0,d.__)("The content of your post doesn’t match the template assigned to your post type."))}));const ks=function(){const{notices:e}=(0,a.useSelect)((e=>({notices:e(rn.store).getNotices()})),[]),{removeNotice:t}=(0,a.useDispatch)(rn.store),n=e.filter((({isDismissible:e,type:t})=>e&&"default"===t)),o=e.filter((({isDismissible:e,type:t})=>!e&&"default"===t));return(0,C.createElement)(C.Fragment,null,(0,C.createElement)(Zo.NoticeList,{notices:o,className:"components-editor-notices__pinned"}),(0,C.createElement)(Zo.NoticeList,{notices:n,className:"components-editor-notices__dismissible",onRemove:t},(0,C.createElement)(ws,null)))},Ss=-3;function Ps(){const e=(0,a.useSelect)((e=>e(rn.store).getNotices()),[]),{removeNotice:t}=(0,a.useDispatch)(rn.store),n=e.filter((({type:e})=>"snackbar"===e)).slice(Ss);return(0,C.createElement)(Zo.SnackbarList,{notices:n,className:"components-editor-notices__snackbar",onRemove:t})}const Cs=window.wp.htmlEntities;function Ts({record:e,checked:t,onChange:n}){const{name:o,kind:s,title:r,key:i}=e,l=(0,a.useSelect)((e=>{if("postType"!==s||"wp_template"!==o)return r;const t=e(p.store).getEditedEntityRecord(s,o,i);return e(xo).__experimentalGetTemplateInfo(t).title}),[o,s,r,i]);return(0,C.createElement)(Zo.PanelRow,null,(0,C.createElement)(Zo.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,Cs.decodeEntities)(l)||(0,d.__)("Untitled"),checked:t,onChange:n}))}const{getGlobalStylesChanges:xs,GlobalStylesContext:Bs}=u(m.privateApis);function Is({record:e}){const{user:t}=(0,P.useContext)(Bs),n=(0,a.useSelect)((t=>t(p.store).getEntityRecord(e.kind,e.name,e.key)),[e.kind,e.name,e.key]),o=xs(t,n,{maxResults:10});return o.length?(0,C.createElement)("ul",{className:"entities-saved-states__changes"},o.map((e=>(0,C.createElement)("li",{key:e},e)))):null}function Ns({record:e,count:t}){if("globalStyles"===e?.name)return null;const n=function(e,t){switch(e){case"site":return 1===t?(0,d.__)("This change will affect your whole site."):(0,d.__)("These changes will affect your whole site.");case"wp_template":return(0,d.__)("This change will affect pages and posts that use this template.");case"page":case"post":return(0,d.__)("The following has been modified.")}}(e?.name,t);return n?(0,C.createElement)(Zo.PanelRow,null,n):null}function Ds({list:e,unselectedEntities:t,setUnselectedEntities:n}){const o=e.length,s=e[0];let r=(0,a.useSelect)((e=>e(p.store).getEntityConfig(s.kind,s.name)),[s.kind,s.name]).label;return"wp_template_part"===s?.name&&(r=1===o?(0,d.__)("Template Part"):(0,d.__)("Template Parts")),(0,C.createElement)(Zo.PanelBody,{title:r,initialOpen:!0},(0,C.createElement)(Ns,{record:s,count:o}),e.map((e=>(0,C.createElement)(Ts,{key:e.key||e.property,record:e,checked:!t.some((t=>t.kind===e.kind&&t.name===e.name&&t.key===e.key&&t.property===e.property)),onChange:t=>n(e,t)}))),"globalStyles"===s?.name&&(0,C.createElement)(Is,{record:s}))}const As={title:(0,d.__)("Title"),description:(0,d.__)("Tagline"),site_logo:(0,d.__)("Logo"),site_icon:(0,d.__)("Icon"),show_on_front:(0,d.__)("Show on front"),page_on_front:(0,d.__)("Page on front"),posts_per_page:(0,d.__)("Maximum posts per page"),default_comment_status:(0,d.__)("Allow comments on new posts")},Rs=()=>{const{editedEntities:e,siteEdits:t}=(0,a.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:t,getEntityRecordEdits:n}=e(p.store);return{editedEntities:t(),siteEdits:n("root","site")}}),[]),n=(0,P.useMemo)((()=>{const n=e.filter((e=>!("root"===e.kind&&"site"===e.name))),o=[];for(const e in t)o.push({kind:"root",name:"site",title:As[e]||e,property:e});return[...n,...o]}),[e,t]),[o,s]=(0,P.useState)([]);return{dirtyEntityRecords:n,isDirty:n.length-o.length>0,setUnselectedEntities:({kind:e,name:t,key:n,property:r},i)=>{s(i?o.filter((o=>o.kind!==e||o.name!==t||o.key!==n||o.property!==r)):[...o,{kind:e,name:t,key:n,property:r}])},unselectedEntities:o}},Os=[{kind:"postType",name:"wp_navigation"}];function Ls(e){return e}function Ms({close:e}){const t=Rs();return(0,C.createElement)(Fs,{close:e,...t})}function Fs({additionalPrompt:e,close:t,onSave:n=Ls,saveEnabled:o,saveLabel:s=(0,d.__)("Save"),dirtyEntityRecords:r,isDirty:i,setUnselectedEntities:l,unselectedEntities:c}){const u=(0,P.useRef)(),{editEntityRecord:g,saveEditedEntityRecord:h,__experimentalSaveSpecifiedEntityEdits:_}=(0,a.useDispatch)(p.store),{__unstableMarkLastChangeAsPersistent:f}=(0,a.useDispatch)(m.store),{createSuccessNotice:E,createErrorNotice:b,removeNotice:v}=(0,a.useDispatch)(rn.store),y=r.reduce(((e,t)=>{const{name:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{}),{site:w,wp_template:k,wp_template_part:S,...T}=y,x=[w,k,S,...Object.values(T)].filter(Array.isArray),B=null!=o?o:i,{homeUrl:I}=(0,a.useSelect)((e=>{const{getUnstableBase:t}=e(p.store);return{homeUrl:t()?.home}}),[]),N=(0,P.useCallback)((()=>t()),[t]),[D,A]=(0,No.__experimentalUseDialog)({onClose:()=>N()});return(0,C.createElement)("div",{ref:D,...A,className:"entities-saved-states__panel"},(0,C.createElement)(Zo.Flex,{className:"entities-saved-states__panel-header",gap:2},(0,C.createElement)(Zo.FlexItem,{isBlock:!0,as:Zo.Button,ref:u,variant:"primary",disabled:!B,onClick:()=>{const e="site-editor-save-success";v(e);const o=r.filter((({kind:e,name:t,key:n,property:o})=>!c.some((s=>s.kind===e&&s.name===t&&s.key===n&&s.property===o))));t(o);const s=[],i=[];o.forEach((({kind:e,name:t,key:n,property:o})=>{"root"===e&&"site"===t?s.push(o):(Os.some((n=>n.kind===e&&n.name===t))&&g(e,t,n,{status:"publish"}),i.push(h(e,t,n)))})),s.length&&i.push(_("root","site",void 0,s)),f(),Promise.all(i).then((e=>n(e))).then((t=>{t.some((e=>void 0===e))?b((0,d.__)("Saving failed.")):E((0,d.__)("Site updated."),{type:"snackbar",id:e,actions:[{label:(0,d.__)("View site"),url:I}]})})).catch((e=>b(`${(0,d.__)("Saving failed.")} ${e}`)))},className:"editor-entities-saved-states__save-button"},s),(0,C.createElement)(Zo.FlexItem,{isBlock:!0,as:Zo.Button,variant:"secondary",onClick:N},(0,d.__)("Cancel"))),(0,C.createElement)("div",{className:"entities-saved-states__text-prompt"},(0,C.createElement)("strong",{className:"entities-saved-states__text-prompt--header"},(0,d.__)("Are you ready to save?")),e,(0,C.createElement)("p",null,i?(0,P.createInterpolateElement)((0,d.sprintf)((0,d._n)("There is <strong>%d site change</strong> waiting to be saved.","There are <strong>%d site changes</strong> waiting to be saved.",x.length),x.length),{strong:(0,C.createElement)("strong",null)}):(0,d.__)("Select the items you want to save."))),x.map((e=>(0,C.createElement)(Ds,{key:e[0].name,list:e,unselectedEntities:c,setUnselectedEntities:l}))))}function Vs(){try{return(0,a.select)(xo).getEditedPostContent()}catch(e){}}function Us({text:e,children:t}){const n=(0,No.useCopyToClipboard)(e);return(0,C.createElement)(Zo.Button,{variant:"secondary",ref:n},t)}class Hs extends P.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){(0,an.doAction)("editor.ErrorBoundary.errorLogged",e)}static getDerivedStateFromError(e){return{error:e}}render(){const{error:e}=this.state;if(!e)return this.props.children;const t=[(0,C.createElement)(Us,{key:"copy-post",text:Vs},(0,d.__)("Copy Post Text")),(0,C.createElement)(Us,{key:"copy-error",text:e.stack},(0,d.__)("Copy Error"))];return(0,C.createElement)(m.Warning,{className:"editor-error-boundary",actions:t},(0,d.__)("The editor has encountered an unexpected error."))}}const zs=Hs,Gs=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame;let js;function Ws(){const{postId:e,isEditedPostNew:t,hasRemoteAutosave:n}=(0,a.useSelect)((e=>({postId:e(xo).getCurrentPostId(),isEditedPostNew:e(xo).isEditedPostNew(),hasRemoteAutosave:!!e(xo).getEditorSettings().autosave})),[]),{getEditedPostAttribute:o}=(0,a.useSelect)(xo),{createWarningNotice:s,removeNotice:r}=(0,a.useDispatch)(rn.store),{editPost:l,resetEditorBlocks:c}=(0,a.useDispatch)(xo);(0,P.useEffect)((()=>{let a=function(e,t){return window.sessionStorage.getItem(ln(e,t))}(e,t);if(!a)return;try{a=JSON.parse(a)}catch{return}const{post_title:u,content:p,excerpt:m}=a,g={title:u,content:p,excerpt:m};if(!Object.keys(g).some((e=>g[e]!==o(e))))return void cn(e,t);if(n)return;const h="wpEditorAutosaveRestore";s((0,d.__)("The backup of this post in your browser is different from the version below."),{id:h,actions:[{label:(0,d.__)("Restore the backup"),onClick(){const{content:e,...t}=g;l(t),c((0,i.parse)(g.content)),r(h)}}]})}),[t,e])}const $s=(0,No.ifCondition)((()=>{if(void 0!==js)return js;try{window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),js=!0}catch{js=!1}return js}))((function(){const{autosave:e}=(0,a.useDispatch)(xo),t=(0,P.useCallback)((()=>{Gs((()=>e({local:!0})))}),[]);Ws(),function(){const{postId:e,isEditedPostNew:t,isDirty:n,isAutosaving:o,didError:s}=(0,a.useSelect)((e=>({postId:e(xo).getCurrentPostId(),isEditedPostNew:e(xo).isEditedPostNew(),isDirty:e(xo).isEditedPostDirty(),isAutosaving:e(xo).isAutosavingPost(),didError:e(xo).didPostSaveRequestFail()})),[]),r=(0,P.useRef)(n),i=(0,P.useRef)(o);(0,P.useEffect)((()=>{!s&&(i.current&&!o||r.current&&!n)&&cn(e,t),r.current=n,i.current=o}),[n,o,s]);const l=(0,No.usePrevious)(t),c=(0,No.usePrevious)(e);(0,P.useEffect)((()=>{c===e&&l&&!t&&cn(e,!0)}),[t,e])}();const n=(0,a.useSelect)((e=>e(xo).getEditorSettings().localAutosaveInterval),[]);return(0,C.createElement)(Wo,{interval:n,autosave:t})}));const Ks=function({children:e}){const t=(0,a.useSelect)((e=>{const{getEditedPostAttribute:t}=e(xo),{getPostType:n}=e(p.store),o=n(t("type"));return!!o?.supports?.["page-attributes"]}),[]);return t?e:null};const Zs=function({children:e,supportKeys:t}){const n=(0,a.useSelect)((e=>{const{getEditedPostAttribute:t}=e(xo),{getPostType:n}=e(p.store);return n(t("type"))}),[]);let o=!0;return n&&(o=(Array.isArray(t)?t:[t]).some((e=>!!n.supports[e]))),o?e:null};function Ys(){const e=(0,a.useSelect)((e=>{var t;return null!==(t=e(xo).getEditedPostAttribute("menu_order"))&&void 0!==t?t:0}),[]),{editPost:t}=(0,a.useDispatch)(xo),[n,o]=(0,P.useState)(null),s=null!=n?n:e;return(0,C.createElement)(Zo.Flex,null,(0,C.createElement)(Zo.FlexBlock,null,(0,C.createElement)(Zo.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,d.__)("Order"),value:s,onChange:e=>{o(e);const n=Number(e);Number.isInteger(n)&&""!==e.trim?.()&&t({menu_order:n})},labelPosition:"side",onBlur:()=>{o(null)}})))}function qs(){return(0,C.createElement)(Zs,{supportKeys:"page-attributes"},(0,C.createElement)(Ys,null))}var Qs=n(9681),Xs=n.n(Qs);function Js(e){const t=e.map((e=>({children:[],parent:null,...e})));if(t.some((({parent:e})=>null===e)))return t;const n=t.reduce(((e,t)=>{const{parent:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{}),o=e=>e.map((e=>{const t=n[e.id];return{...e,children:t&&t.length?o(t):[]}}));return o(n[0]||[])}const er=e=>(0,Cs.decodeEntities)(e),tr=e=>({...e,name:er(e.name)}),nr=e=>(null!=e?e:[]).map(tr);function or(e){return e?.title?.rendered?(0,Cs.decodeEntities)(e.title.rendered):`#${e.id} (${(0,d.__)("no title")})`}const sr=(e,t)=>{const n=Xs()(e||"").toLowerCase(),o=Xs()(t||"").toLowerCase();return n===o?0:n.startsWith(o)?n.length:1/0};const rr=function(){const{editPost:e}=(0,a.useDispatch)(xo),[t,n]=(0,P.useState)(!1),{isHierarchical:o,parentPostId:s,parentPostTitle:r,pageItems:i}=(0,a.useSelect)((e=>{var n;const{getPostType:o,getEntityRecords:s,getEntityRecord:r}=e(p.store),{getCurrentPostId:i,getEditedPostAttribute:a}=e(xo),l=a("type"),c=a("parent"),u=o(l),d=i(),m=null!==(n=u?.hierarchical)&&void 0!==n&&n,g={per_page:100,exclude:d,parent_exclude:d,orderby:"menu_order",order:"asc",_fields:"id,title,parent"};t&&(g.search=t);const h=c?r("postType",l,c):null;return{isHierarchical:m,parentPostId:c,parentPostTitle:h?or(h):"",pageItems:m?s("postType",l,g):null}}),[t]),l=(0,P.useMemo)((()=>{const e=(n,o=0)=>n.map((t=>[{value:t.id,label:"— ".repeat(o)+(0,Cs.decodeEntities)(t.name),rawName:t.name},...e(t.children||[],o+1)])).sort((([e],[n])=>sr(e.rawName,t)>=sr(n.rawName,t)?1:-1)).flat();if(!i)return[];let n=i.map((e=>({id:e.id,parent:e.parent,name:or(e)})));t||(n=Js(n));const o=e(n),a=o.find((e=>e.value===s));return r&&!a&&o.unshift({value:s,label:r}),o}),[i,t,r,s]);return o?(0,C.createElement)(Zo.ComboboxControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:(0,d.__)("Parent"),value:s,options:l,onFilterValueChange:(0,No.debounce)((e=>{n(e)}),300),onChange:t=>{e({parent:t})}}):null},ir="page-attributes";const ar=function(){var e;const{isEnabled:t,isOpened:n,postType:o}=(0,a.useSelect)((e=>{const{getEditedPostAttribute:t,isEditorPanelEnabled:n,isEditorPanelOpened:o}=e(xo),{getPostType:s}=e(p.store);return{isEnabled:n(ir),isOpened:o(ir),postType:s(t("type"))}}),[]),{toggleEditorPanelOpened:s}=(0,a.useDispatch)(xo);return t&&o?(0,C.createElement)(Ks,null,(0,C.createElement)(Zo.PanelBody,{title:null!==(e=o?.labels?.attributes)&&void 0!==e?e:(0,d.__)("Page attributes"),opened:n,onToggle:(...e)=>s(ir,...e)},(0,C.createElement)(rr,null),(0,C.createElement)(Zo.PanelRow,null,(0,C.createElement)(qs,null)))):null},lr=(0,C.createElement)(T.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(T.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM13.9624 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10.0391H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H10L10 10.4917L16.4589 10.5139L16.4641 9.01389L5.5 8.97618V6C5.5 5.72386 5.72386 5.5 6 5.5H13.9624V4ZM5.5 10.4762V18C5.5 18.2761 5.72386 18.5 6 18.5H8.5L8.5 10.4865L5.5 10.4762Z"})),cr=(0,d.__)("Custom Template");function ur({onClose:e}){const{defaultBlockTemplate:t,onNavigateToEntityRecord:n}=(0,a.useSelect)((e=>{const{getEditorSettings:t,getCurrentTemplateId:n}=e(xo);return{defaultBlockTemplate:t().defaultBlockTemplate,onNavigateToEntityRecord:t().onNavigateToEntityRecord,getTemplateId:n}})),{createTemplate:o}=u((0,a.useDispatch)(xo)),[s,r]=(0,P.useState)(""),[l,c]=(0,P.useState)(!1),p=()=>{r(""),e()};return(0,C.createElement)(Zo.Modal,{title:(0,d.__)("Create custom template"),onRequestClose:p},(0,C.createElement)("form",{className:"editor-post-template__create-form",onSubmit:async e=>{if(e.preventDefault(),l)return;c(!0);const r=null!=t?t:(0,i.serialize)([(0,i.createBlock)("core/group",{tagName:"header",layout:{inherit:!0}},[(0,i.createBlock)("core/site-title"),(0,i.createBlock)("core/site-tagline")]),(0,i.createBlock)("core/separator"),(0,i.createBlock)("core/group",{tagName:"main"},[(0,i.createBlock)("core/group",{layout:{inherit:!0}},[(0,i.createBlock)("core/post-title")]),(0,i.createBlock)("core/post-content",{layout:{inherit:!0}})])]),a=await o({slug:(0,w.cleanForSlug)(s||cr),content:r,title:s||cr});c(!1),n({postId:a.id,postType:"wp_template"}),p()}},(0,C.createElement)(Zo.__experimentalVStack,{spacing:"3"},(0,C.createElement)(Zo.TextControl,{__nextHasNoMarginBottom:!0,label:(0,d.__)("Name"),value:s,onChange:r,placeholder:cr,disabled:l,help:(0,d.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')}),(0,C.createElement)(Zo.__experimentalHStack,{justify:"right"},(0,C.createElement)(Zo.Button,{variant:"tertiary",onClick:p},(0,d.__)("Cancel")),(0,C.createElement)(Zo.Button,{variant:"primary",type:"submit",isBusy:l,"aria-disabled":l},(0,d.__)("Create"))))))}function dr(){return(0,a.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:n}=e(xo);return{postId:t(),postType:n()}}),[])}function pr(){const{postType:e,postId:t}=dr();return(0,a.useSelect)((n=>{const{getEntityRecord:o,getEntityRecords:s}=n(p.store),r=o("root","site"),i=s("postType","wp_template",{per_page:-1}),a=+t===r?.page_for_posts,l="page"===e&&+t===r?.page_on_front&&i?.some((({slug:e})=>"front-page"===e));return!a&&!l}),[t,e])}function mr(e){return(0,a.useSelect)((t=>t(p.store).getEntityRecords("postType","wp_template",{per_page:-1,post_type:e})),[e])}function gr(e){const t=hr(),n=pr(),o=mr(e);return(0,P.useMemo)((()=>n&&o?.filter((e=>e.is_custom&&e.slug!==t&&!!e.content.raw))),[o,t,n])}function hr(){const{postType:e,postId:t}=dr(),n=mr(e),o=(0,a.useSelect)((n=>{const o=n(p.store).getEditedEntityRecord("postType",e,t);return o?.template}),[e,t]);if(o)return n?.find((e=>e.slug===o))?.slug}const _r={className:"editor-post-template__dropdown",placement:"bottom-start"};function fr({isOpen:e,onClick:t}){const n=(0,a.useSelect)((e=>{const t=e(xo).getEditedPostAttribute("template"),{supportsTemplateMode:n,availableTemplates:o}=e(xo).getEditorSettings();if(!n&&o[t])return o[t];const s=e(p.store).canUser("create","templates")&&e(xo).getCurrentTemplateId();return s?.title||s?.slug||o?.[t]}),[]);return(0,C.createElement)(Zo.Button,{__next40pxDefaultSize:!0,className:"edit-post-post-template__toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,d.__)("Template options"),onClick:t},null!=n?n:(0,d.__)("Default template"))}function Er({onClose:e}){var t,n;const o=pr(),{availableTemplates:s,fetchedTemplates:r,selectedTemplateSlug:i,canCreate:l,canEdit:c,currentTemplateId:u,onNavigateToEntityRecord:g,getEditorSettings:h}=(0,a.useSelect)((e=>{const{canUser:t,getEntityRecords:n}=e(p.store),s=e(xo).getEditorSettings(),r=t("create","templates"),i=e(xo).getCurrentTemplateId();return{availableTemplates:s.availableTemplates,fetchedTemplates:r?n("postType","wp_template",{post_type:e(xo).getCurrentPostType(),per_page:-1}):void 0,selectedTemplateSlug:e(xo).getEditedPostAttribute("template"),canCreate:o&&r&&s.supportsTemplateMode,canEdit:o&&r&&s.supportsTemplateMode&&!!i,currentTemplateId:i,onNavigateToEntityRecord:s.onNavigateToEntityRecord,getEditorSettings:e(xo).getEditorSettings}}),[o]),_=(0,P.useMemo)((()=>Object.entries({...s,...Object.fromEntries((null!=r?r:[]).map((({slug:e,title:t})=>[e,t.rendered])))}).map((([e,t])=>({value:e,label:t})))),[s,r]),f=null!==(t=_.find((e=>e.value===i)))&&void 0!==t?t:_.find((e=>!e.value)),{editPost:E}=(0,a.useDispatch)(xo),{createSuccessNotice:b}=(0,a.useDispatch)(rn.store),[v,y]=(0,P.useState)(!1);return(0,C.createElement)("div",{className:"editor-post-template__classic-theme-dropdown"},(0,C.createElement)(m.__experimentalInspectorPopoverHeader,{title:(0,d.__)("Template"),help:(0,d.__)("Templates define the way content is displayed when viewing your site."),actions:l?[{icon:lr,label:(0,d.__)("Add template"),onClick:()=>y(!0)}]:[],onClose:e}),o?(0,C.createElement)(Zo.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,hideLabelFromVision:!0,label:(0,d.__)("Template"),value:null!==(n=f?.value)&&void 0!==n?n:"",options:_,onChange:e=>E({template:e||""})}):(0,C.createElement)(Zo.Notice,{status:"warning",isDismissible:!1},(0,d.__)("The posts page template cannot be changed.")),c&&g&&(0,C.createElement)("p",null,(0,C.createElement)(Zo.Button,{variant:"link",onClick:()=>{g({postId:u,postType:"wp_template"}),e(),b((0,d.__)("Editing template. Changes made here affect all posts and pages that use the template."),{type:"snackbar",actions:[{label:(0,d.__)("Go back"),onClick:()=>h().onNavigateToPreviousEntityRecord()}]})}},(0,d.__)("Edit template"))),v&&(0,C.createElement)(ur,{onClose:()=>y(!1)}))}const br=function(){return(0,C.createElement)(Zo.Dropdown,{popoverProps:_r,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,C.createElement)(fr,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,C.createElement)(Er,{onClose:e})})},vr=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));function yr({onClick:e}){const[t,n]=(0,P.useState)(!1),o=(0,P.useCallback)((()=>{n(!1)}),[]),{postType:s,postId:r}=dr(),i=gr(s),{editEntityRecord:l}=(0,a.useDispatch)(p.store);if(!i?.length)return null;return(0,C.createElement)(C.Fragment,null,(0,C.createElement)(Zo.MenuItem,{onClick:()=>n(!0)},(0,d.__)("Swap template")),t&&(0,C.createElement)(Zo.Modal,{title:(0,d.__)("Choose a template"),onRequestClose:o,overlayClassName:"editor-post-template__swap-template-modal",isFullScreen:!0},(0,C.createElement)("div",{className:"editor-post-template__swap-template-modal-content"},(0,C.createElement)(wr,{postType:s,onSelect:async t=>{l("postType",s,r,{template:t.name},{undoIgnore:!0}),o(),e()}}))))}function wr({postType:e,onSelect:t}){const n=gr(e),o=(0,P.useMemo)((()=>n.map((e=>({name:e.slug,blocks:(0,i.parse)(e.content.raw),title:(0,Cs.decodeEntities)(e.title.rendered),id:e.id})))),[n]),s=(0,No.useAsyncList)(o);return(0,C.createElement)(m.__experimentalBlockPatternsList,{label:(0,d.__)("Templates"),blockPatterns:o,shownPatterns:s,onClickPattern:t})}function kr({onClick:e}){const t=hr(),n=pr(),{postType:o,postId:s}=dr(),{editEntityRecord:r}=(0,a.useDispatch)(p.store);return t&&n?(0,C.createElement)(Zo.MenuItem,{onClick:()=>{r("postType",o,s,{template:""},{undoIgnore:!0}),e()}},(0,d.__)("Use default template")):null}function Sr({onClick:e}){const{canCreateTemplates:t}=(0,a.useSelect)((e=>{const{canUser:t}=e(p.store);return{canCreateTemplates:t("create","templates")}}),[]),[n,o]=(0,P.useState)(!1),s=pr();return t&&s?(0,C.createElement)(C.Fragment,null,(0,C.createElement)(Zo.MenuItem,{onClick:()=>{o(!0)}},(0,d.__)("Create new template")),n&&(0,C.createElement)(ur,{onClose:()=>{o(!1),e()}})):null}const Pr={className:"editor-post-template__dropdown",placement:"bottom-start"};function Cr({id:e}){const{isTemplateHidden:t,onNavigateToEntityRecord:n,getEditorSettings:o,hasGoBack:s}=(0,a.useSelect)((e=>{const{getRenderingMode:t,getEditorSettings:n}=u(e(xo)),o=n();return{isTemplateHidden:"post-only"===t(),onNavigateToEntityRecord:o.onNavigateToEntityRecord,getEditorSettings:n,hasGoBack:o.hasOwnProperty("onNavigateToPreviousEntityRecord")}}),[]),{editedRecord:r,hasResolved:i}=(0,p.useEntityRecord)("postType","wp_template",e),{createSuccessNotice:l}=(0,a.useDispatch)(rn.store),{setRenderingMode:c}=(0,a.useDispatch)(xo);if(!i)return null;const m=s?[{label:(0,d.__)("Go back"),onClick:()=>o().onNavigateToPreviousEntityRecord()}]:void 0;return(0,C.createElement)(Zo.DropdownMenu,{popoverProps:Pr,focusOnMount:!0,toggleProps:{__next40pxDefaultSize:!0,variant:"tertiary"},label:(0,d.__)("Template options"),text:(0,Cs.decodeEntities)(r.title),icon:null},(({onClose:e})=>(0,C.createElement)(C.Fragment,null,(0,C.createElement)(Zo.MenuGroup,null,(0,C.createElement)(Zo.MenuItem,{onClick:()=>{n({postId:r.id,postType:"wp_template"}),e(),l((0,d.__)("Editing template. Changes made here affect all posts and pages that use the template."),{type:"snackbar",actions:m})}},(0,d.__)("Edit template")),(0,C.createElement)(yr,{onClick:e}),(0,C.createElement)(kr,{onClick:e}),(0,C.createElement)(Sr,{onClick:e})),(0,C.createElement)(Zo.MenuGroup,null,(0,C.createElement)(Zo.MenuItem,{icon:t?void 0:vr,isSelected:!t,role:"menuitemcheckbox",onClick:()=>{c(t?"template-locked":"post-only")}},(0,d.__)("Template preview"))))))}const Tr=(0,P.forwardRef)((({className:e,label:t,children:n},o)=>(0,C.createElement)(Zo.__experimentalHStack,{className:Ko()("editor-post-panel__row",e),ref:o},t&&(0,C.createElement)("div",{className:"editor-post-panel__row-label"},t),(0,C.createElement)("div",{className:"editor-post-panel__row-control"},n)))),xr=Tr;function Br(){const{templateId:e,isBlockTheme:t}=(0,a.useSelect)((e=>{const{getCurrentTemplateId:t,getEditorSettings:n}=e(xo);return{templateId:t(),isBlockTheme:n().__unstableIsBlockBasedTheme}}),[]),n=(0,a.useSelect)((e=>{var t;const n=e(xo).getCurrentPostType(),o=e(p.store).getPostType(n);if(!o?.viewable)return!1;const s=e(xo).getEditorSettings();if(!!s.availableTemplates&&Object.keys(s.availableTemplates).length>0)return!0;if(!s.supportsTemplateMode)return!1;return null!==(t=e(p.store).canUser("create","templates"))&&void 0!==t&&t}),[]),o=(0,a.useSelect)((e=>{var t;return null!==(t=e(p.store).canUser("read","templates"))&&void 0!==t&&t}),[]);return t&&o||!n?t&&e?(0,C.createElement)(xr,{label:(0,d.__)("Template")},(0,C.createElement)(Cr,{id:e})):null:(0,C.createElement)(xr,{label:(0,d.__)("Template")},(0,C.createElement)(br,null))}const Ir={_fields:"id,name",context:"view"},Nr={who:"authors",per_page:50,...Ir};function Dr(e){const{authorId:t,authors:n,postAuthor:o}=(0,a.useSelect)((t=>{const{getUser:n,getUsers:o}=t(p.store),{getEditedPostAttribute:s}=t(xo),r=s("author"),i={...Nr};return e&&(i.search=e),{authorId:r,authors:o(i),postAuthor:n(r,Ir)}}),[e]);return{authorId:t,authorOptions:(0,P.useMemo)((()=>{const e=(null!=n?n:[]).map((e=>({value:e.id,label:(0,Cs.decodeEntities)(e.name)})));return e.findIndex((({value:e})=>o?.id===e))<0&&o?[{value:o.id,label:(0,Cs.decodeEntities)(o.name)},...e]:e}),[n,o])}}function Ar(){const[e,t]=(0,P.useState)(),{editPost:n}=(0,a.useDispatch)(xo),{authorId:o,authorOptions:s}=Dr(e);return(0,C.createElement)(Zo.ComboboxControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,d.__)("Author"),options:s,value:o,onFilterValueChange:(0,No.debounce)((e=>{t(e)}),300),onChange:e=>{e&&n({author:e})},allowReset:!1})}function Rr(){const{editPost:e}=(0,a.useDispatch)(xo),{authorId:t,authorOptions:n}=Dr();return(0,C.createElement)(Zo.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"post-author-selector",label:(0,d.__)("Author"),options:n,onChange:t=>{const n=Number(t);e({author:n})},value:t})}const Or=function(){return(0,a.useSelect)((e=>{const t=e(p.store).getUsers(Nr);return t?.length>=25}),[])?(0,C.createElement)(Ar,null):(0,C.createElement)(Rr,null)};function Lr({children:e}){const{hasAssignAuthorAction:t,hasAuthors:n}=(0,a.useSelect)((e=>{var t;const n=e(xo).getCurrentPost(),o=e(p.store).getUsers(Nr);return{hasAssignAuthorAction:null!==(t=n._links?.["wp:action-assign-author"])&&void 0!==t&&t,hasAuthors:o?.length>=1}}),[]);return t&&n?(0,C.createElement)(Zs,{supportKeys:"author"},e):null}const Mr=function(){return(0,C.createElement)(Lr,null,(0,C.createElement)(xr,{className:"editor-post-author__panel"},(0,C.createElement)(Or,null)))};const Fr=function(){const e=(0,a.useSelect)((e=>{var t;return null!==(t=e(xo).getEditedPostAttribute("comment_status"))&&void 0!==t?t:"open"}),[]),{editPost:t}=(0,a.useDispatch)(xo);return(0,C.createElement)(Zo.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,d.__)("Allow comments"),checked:"open"===e,onChange:()=>t({comment_status:"open"===e?"closed":"open"})})};const Vr=function(){const e=(0,a.useSelect)((e=>{var t;return null!==(t=e(xo).getEditedPostAttribute("ping_status"))&&void 0!==t?t:"open"}),[]),{editPost:t}=(0,a.useDispatch)(xo);return(0,C.createElement)(Zo.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,d.__)("Allow pingbacks & trackbacks"),checked:"open"===e,onChange:()=>t({ping_status:"open"===e?"closed":"open"})})},Ur="discussion-panel";const Hr=function(){const{isEnabled:e,isOpened:t}=(0,a.useSelect)((e=>{const{isEditorPanelEnabled:t,isEditorPanelOpened:n}=e(xo);return{isEnabled:t(Ur),isOpened:n(Ur)}}),[]),{toggleEditorPanelOpened:n}=(0,a.useDispatch)(xo);return e?(0,C.createElement)(Zs,{supportKeys:["comments","trackbacks"]},(0,C.createElement)(Zo.PanelBody,{title:(0,d.__)("Discussion"),opened:t,onToggle:()=>n(Ur)},(0,C.createElement)(Zs,{supportKeys:"comments"},(0,C.createElement)(Zo.PanelRow,null,(0,C.createElement)(Fr,null))),(0,C.createElement)(Zs,{supportKeys:"trackbacks"},(0,C.createElement)(Zo.PanelRow,null,(0,C.createElement)(Vr,null))))):null};const zr=function(){const e=(0,a.useSelect)((e=>e(xo).getEditedPostAttribute("excerpt")),[]),{editPost:t}=(0,a.useDispatch)(xo);return(0,C.createElement)("div",{className:"editor-post-excerpt"},(0,C.createElement)(Zo.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,d.__)("Write an excerpt (optional)"),className:"editor-post-excerpt__textarea",onChange:e=>t({excerpt:e}),value:e}),(0,C.createElement)(Zo.ExternalLink,{href:(0,d.__)("https://wordpress.org/documentation/article/page-post-settings-sidebar/#excerpt")},(0,d.__)("Learn more about manual excerpts")))};const Gr=function({children:e}){const t=(0,a.useSelect)((e=>{const{getEditedPostAttribute:t}=e(xo);return t("type")}),[]);return["wp_template","wp_template_part"].includes(t)?null:(0,C.createElement)(Zs,{supportKeys:"excerpt"},e)},{Fill:jr,Slot:Wr}=(0,Zo.createSlotFill)("PluginPostExcerpt"),$r=({children:e,className:t})=>(0,C.createElement)(jr,null,(0,C.createElement)(Zo.PanelRow,{className:t},e));$r.Slot=Wr;const Kr=$r,Zr="post-excerpt";function Yr(){const{isOpened:e,isEnabled:t}=(0,a.useSelect)((e=>{const{isEditorPanelOpened:t,isEditorPanelEnabled:n}=e(xo);return{isOpened:t(Zr),isEnabled:n(Zr)}}),[]),{toggleEditorPanelOpened:n}=(0,a.useDispatch)(xo);return t?(0,C.createElement)(Gr,null,(0,C.createElement)(Zo.PanelBody,{title:(0,d.__)("Excerpt"),opened:e,onToggle:()=>n(Zr)},(0,C.createElement)(Kr.Slot,null,(e=>(0,C.createElement)(C.Fragment,null,(0,C.createElement)(zr,null),e))))):null}const qr=window.wp.blob;const Qr=(0,a.withSelect)((e=>{const{getThemeSupports:t}=e(p.store),{getEditedPostAttribute:n}=e(xo);return{postType:n("type"),themeSupports:t()}}))((function({themeSupports:e,children:t,postType:n,supportKeys:o}){return(Array.isArray(o)?o:[o]).some((t=>{var o;const s=null!==(o=e?.[t])&&void 0!==o&&o;return"post-thumbnails"===t&&Array.isArray(s)?s.includes(n):s}))?t:null}));const Xr=function({children:e}){return(0,C.createElement)(Qr,{supportKeys:"post-thumbnails"},(0,C.createElement)(Zs,{supportKeys:"thumbnail"},e))},Jr=["image"],ei=(0,d.__)("Featured image"),ti=(0,d.__)("Set featured image"),ni=(0,C.createElement)("p",null,(0,d.__)("To edit the featured image, you need permission to upload media."));const oi=(0,a.withSelect)((e=>{const{getMedia:t,getPostType:n}=e(p.store),{getCurrentPostId:o,getEditedPostAttribute:s}=e(xo),r=s("featured_media");return{media:r?t(r,{context:"view"}):null,currentPostId:o(),postType:n(s("type")),featuredImageId:r}})),si=(0,a.withDispatch)(((e,{noticeOperations:t},{select:n})=>{const{editPost:o}=e(xo);return{onUpdateImage(e){o({featured_media:e.id})},onDropImage(e){n(m.store).getSettings().mediaUpload({allowedTypes:["image"],filesList:e,onFileChange([e]){o({featured_media:e.id})},onError(e){t.removeAllNotices(),t.createErrorNotice(e)}})},onRemoveImage(){o({featured_media:0})}}})),ri=(0,No.compose)(Zo.withNotices,oi,si,(0,Zo.withFilters)("editor.PostFeaturedImage"))((function({currentPostId:e,featuredImageId:t,onUpdateImage:n,onRemoveImage:o,media:s,postType:r,noticeUI:i,noticeOperations:l}){const c=(0,P.useRef)(),[u,p]=(0,P.useState)(!1),{getSettings:g}=(0,a.useSelect)(m.store),{mediaWidth:h,mediaHeight:_,mediaSourceUrl:f}=function(e,t){var n,o;if(!e)return{};const s=(0,an.applyFilters)("editor.PostFeaturedImage.imageSize","large",e.id,t);if(s in(null!==(n=e?.media_details?.sizes)&&void 0!==n?n:{}))return{mediaWidth:e.media_details.sizes[s].width,mediaHeight:e.media_details.sizes[s].height,mediaSourceUrl:e.media_details.sizes[s].source_url};const r=(0,an.applyFilters)("editor.PostFeaturedImage.imageSize","thumbnail",e.id,t);return r in(null!==(o=e?.media_details?.sizes)&&void 0!==o?o:{})?{mediaWidth:e.media_details.sizes[r].width,mediaHeight:e.media_details.sizes[r].height,mediaSourceUrl:e.media_details.sizes[r].source_url}:{mediaWidth:e.media_details.width,mediaHeight:e.media_details.height,mediaSourceUrl:e.source_url}}(s,e);function E(e){g().mediaUpload({allowedTypes:Jr,filesList:e,onFileChange([e]){(0,qr.isBlobURL)(e?.url)?p(!0):(e&&n(e),p(!1))},onError(e){l.removeAllNotices(),l.createErrorNotice(e)}})}return(0,C.createElement)(Xr,null,i,(0,C.createElement)("div",{className:"editor-post-featured-image"},s&&(0,C.createElement)("div",{id:`editor-post-featured-image-${t}-describedby`,className:"hidden"},s.alt_text&&(0,d.sprintf)((0,d.__)("Current image: %s"),s.alt_text),!s.alt_text&&(0,d.sprintf)((0,d.__)("The current image has no alternative text. The file name is: %s"),s.media_details.sizes?.full?.file||s.slug)),(0,C.createElement)(m.MediaUploadCheck,{fallback:ni},(0,C.createElement)(m.MediaUpload,{title:r?.labels?.featured_image||ei,onSelect:n,unstableFeaturedImageFlow:!0,allowedTypes:Jr,modalClass:"editor-post-featured-image__media-modal",render:({open:e})=>(0,C.createElement)("div",{className:"editor-post-featured-image__container"},(0,C.createElement)(Zo.Button,{ref:c,className:t?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,"aria-label":t?(0,d.__)("Edit or replace the image"):null,"aria-describedby":t?`editor-post-featured-image-${t}-describedby`:null},!!t&&s&&(0,C.createElement)(Zo.ResponsiveWrapper,{naturalWidth:h,naturalHeight:_,isInline:!0},(0,C.createElement)("img",{src:f,alt:""})),u&&(0,C.createElement)(Zo.Spinner,null),!t&&!u&&(r?.labels?.set_featured_image||ti)),!!t&&(0,C.createElement)(Zo.__experimentalHStack,{className:"editor-post-featured-image__actions"},(0,C.createElement)(Zo.Button,{className:"editor-post-featured-image__action",onClick:e},(0,d.__)("Replace")),(0,C.createElement)(Zo.Button,{className:"editor-post-featured-image__action",onClick:()=>{o(),c.current.focus()}},(0,d.__)("Remove"))),(0,C.createElement)(Zo.DropZone,{onFilesDrop:E})),value:t}))))})),ii="featured-image";const ai=function(){var e;const{postType:t,isEnabled:n,isOpened:o}=(0,a.useSelect)((e=>{const{getEditedPostAttribute:t,isEditorPanelEnabled:n,isEditorPanelOpened:o}=e(xo),{getPostType:s}=e(p.store);return{postType:s(t("type")),isEnabled:n(ii),isOpened:o(ii)}}),[]),{toggleEditorPanelOpened:s}=(0,a.useDispatch)(xo);return n?(0,C.createElement)(Xr,null,(0,C.createElement)(Zo.PanelBody,{title:null!==(e=t?.labels?.featured_image)&&void 0!==e?e:(0,d.__)("Featured image"),opened:o,onToggle:()=>s(ii)},(0,C.createElement)(ri,null))):null};const li=function({children:e}){return(0,a.useSelect)((e=>e(xo).getEditorSettings().disablePostFormats),[])?null:(0,C.createElement)(Zs,{supportKeys:"post-formats"},e)},ci=[{id:"aside",caption:(0,d.__)("Aside")},{id:"audio",caption:(0,d.__)("Audio")},{id:"chat",caption:(0,d.__)("Chat")},{id:"gallery",caption:(0,d.__)("Gallery")},{id:"image",caption:(0,d.__)("Image")},{id:"link",caption:(0,d.__)("Link")},{id:"quote",caption:(0,d.__)("Quote")},{id:"standard",caption:(0,d.__)("Standard")},{id:"status",caption:(0,d.__)("Status")},{id:"video",caption:(0,d.__)("Video")}].sort(((e,t)=>{const n=e.caption.toUpperCase(),o=t.caption.toUpperCase();return n<o?-1:n>o?1:0}));function ui(){const e=`post-format-selector-${(0,No.useInstanceId)(ui)}`,{postFormat:t,suggestedFormat:n,supportedFormats:o}=(0,a.useSelect)((e=>{const{getEditedPostAttribute:t,getSuggestedPostFormat:n}=e(xo),o=t("format"),s=e(p.store).getThemeSupports();return{postFormat:null!=o?o:"standard",suggestedFormat:n(),supportedFormats:s.formats}}),[]),s=ci.filter((e=>o?.includes(e.id)||t===e.id)),r=s.find((e=>e.id===n)),{editPost:i}=(0,a.useDispatch)(xo),l=e=>i({format:e});return(0,C.createElement)(li,null,(0,C.createElement)("div",{className:"editor-post-format"},(0,C.createElement)(Zo.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,d.__)("Post Format"),value:t,onChange:e=>l(e),id:e,options:s.map((e=>({label:e.caption,value:e.id})))}),r&&r.id!==t&&(0,C.createElement)("p",{className:"editor-post-format__suggestion"},(0,C.createElement)(Zo.Button,{variant:"link",onClick:()=>l(r.id)},(0,d.sprintf)((0,d.__)("Apply suggested format: %s"),r.caption)))))}const di=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"}));const pi=function({children:e}){const{lastRevisionId:t,revisionsCount:n}=(0,a.useSelect)((e=>{const{getCurrentPostLastRevisionId:t,getCurrentPostRevisionsCount:n}=e(xo);return{lastRevisionId:t(),revisionsCount:n()}}),[]);return!t||n<2?null:(0,C.createElement)(Zs,{supportKeys:"revisions"},e)};const mi=function(){const{lastRevisionId:e,revisionsCount:t}=(0,a.useSelect)((e=>{const{getCurrentPostLastRevisionId:t,getCurrentPostRevisionsCount:n}=e(xo);return{lastRevisionId:t(),revisionsCount:n()}}),[]);return(0,C.createElement)(pi,null,(0,C.createElement)(Zo.Button,{href:(0,w.addQueryArgs)("revision.php",{revision:e}),className:"editor-post-last-revision__title",icon:di,iconPosition:"right",text:(0,d.sprintf)((0,d.__)("Revisions (%s)"),t)}))};const gi=function(){return(0,C.createElement)(pi,null,(0,C.createElement)(Zo.PanelBody,{className:"editor-post-last-revision__panel"},(0,C.createElement)(mi,null)))};function hi(){const e="core/editor/post-locked-modal-"+(0,No.useInstanceId)(hi),{autosave:t,updatePostLock:n}=(0,a.useDispatch)(xo),{isLocked:o,isTakeover:s,user:r,postId:i,postLockUtils:l,activePostLock:c,postType:u,previewLink:m}=(0,a.useSelect)((e=>{const{isPostLocked:t,isPostLockTakeover:n,getPostLockUser:o,getCurrentPostId:s,getActivePostLock:r,getEditedPostAttribute:i,getEditedPostPreviewLink:a,getEditorSettings:l}=e(xo),{getPostType:c}=e(p.store);return{isLocked:t(),isTakeover:n(),user:o(),postId:s(),postLockUtils:l().postLockUtils,activePostLock:r(),postType:c(i("type")),previewLink:a()}}),[]);if((0,P.useEffect)((()=>{function s(){if(o||!c)return;const e=new window.FormData;if(e.append("action","wp-remove-post-lock"),e.append("_wpnonce",l.unlockNonce),e.append("post_ID",i),e.append("active_post_lock",c),window.navigator.sendBeacon)window.navigator.sendBeacon(l.ajaxUrl,e);else{const t=new window.XMLHttpRequest;t.open("POST",l.ajaxUrl,!1),t.send(e)}}return(0,an.addAction)("heartbeat.send",e,(function(e){o||(e["wp-refresh-post-lock"]={lock:c,post_id:i})})),(0,an.addAction)("heartbeat.tick",e,(function(e){if(!e["wp-refresh-post-lock"])return;const o=e["wp-refresh-post-lock"];o.lock_error?(t(),n({isLocked:!0,isTakeover:!0,user:{name:o.lock_error.name,avatar:o.lock_error.avatar_src_2x}})):o.new_lock&&n({isLocked:!1,activePostLock:o.new_lock})})),window.addEventListener("beforeunload",s),()=>{(0,an.removeAction)("heartbeat.send",e),(0,an.removeAction)("heartbeat.tick",e),window.removeEventListener("beforeunload",s)}}),[]),!o)return null;const g=r.name,h=r.avatar,_=(0,w.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:i,action:"edit",_wpnonce:l.nonce}),f=(0,w.addQueryArgs)("edit.php",{post_type:u?.slug}),E=(0,d.__)("Exit editor");return(0,C.createElement)(Zo.Modal,{title:s?(0,d.__)("Someone else has taken over this post"):(0,d.__)("This post is already being edited"),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,size:"medium"},(0,C.createElement)(Zo.__experimentalHStack,{alignment:"top",spacing:6},!!h&&(0,C.createElement)("img",{src:h,alt:(0,d.__)("Avatar"),className:"editor-post-locked-modal__avatar",width:64,height:64}),(0,C.createElement)("div",null,!!s&&(0,C.createElement)("p",null,(0,P.createInterpolateElement)(g?(0,d.sprintf)((0,d.__)("<strong>%s</strong> now has editing control of this post (<PreviewLink />). Don’t worry, your changes up to this moment have been saved."),g):(0,d.__)("Another user now has editing control of this post (<PreviewLink />). Don’t worry, your changes up to this moment have been saved."),{strong:(0,C.createElement)("strong",null),PreviewLink:(0,C.createElement)(Zo.ExternalLink,{href:m},(0,d.__)("preview"))})),!s&&(0,C.createElement)(C.Fragment,null,(0,C.createElement)("p",null,(0,P.createInterpolateElement)(g?(0,d.sprintf)((0,d.__)("<strong>%s</strong> is currently working on this post (<PreviewLink />), which means you cannot make changes, unless you take over."),g):(0,d.__)("Another user is currently working on this post (<PreviewLink />), which means you cannot make changes, unless you take over."),{strong:(0,C.createElement)("strong",null),PreviewLink:(0,C.createElement)(Zo.ExternalLink,{href:m},(0,d.__)("preview"))})),(0,C.createElement)("p",null,(0,d.__)("If you take over, the other user will lose editing control to the post, but their changes will be saved."))),(0,C.createElement)(Zo.__experimentalHStack,{className:"editor-post-locked-modal__buttons",justify:"flex-end"},!s&&(0,C.createElement)(Zo.Button,{variant:"tertiary",href:_},(0,d.__)("Take over")),(0,C.createElement)(Zo.Button,{variant:"primary",href:f},E)))))}const _i=function({children:e}){const{hasPublishAction:t,isPublished:n}=(0,a.useSelect)((e=>{var t;const{isCurrentPostPublished:n,getCurrentPost:o}=e(xo);return{hasPublishAction:null!==(t=o()._links?.["wp:action-publish"])&&void 0!==t&&t,isPublished:n()}}),[]);return n||!t?null:e};const fi=function(){const e=(0,a.useSelect)((e=>e(xo).getEditedPostAttribute("status")),[]),{editPost:t}=(0,a.useDispatch)(xo);return(0,C.createElement)(_i,null,(0,C.createElement)(Zo.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,d.__)("Pending review"),checked:"pending"===e,onChange:()=>{t({status:"pending"===e?"draft":"pending"})}}))};function Ei({className:e,textContent:t,forceIsAutosaveable:n,role:o,onPreview:s}){const{postId:r,currentPostLink:i,previewLink:l,isSaveable:c,isViewable:u}=(0,a.useSelect)((e=>{var t;const n=e(xo),o=e(p.store).getPostType(n.getCurrentPostType("type"));return{postId:n.getCurrentPostId(),currentPostLink:n.getCurrentPostAttribute("link"),previewLink:n.getEditedPostPreviewLink(),isSaveable:n.isEditedPostSaveable(),isViewable:null!==(t=o?.viewable)&&void 0!==t&&t}}),[]),{__unstableSaveForPreview:m}=(0,a.useDispatch)(xo);if(!u)return null;const g=`wp-preview-${r}`,h=l||i;return(0,C.createElement)(Zo.Button,{variant:e?void 0:"tertiary",className:e||"editor-post-preview",href:h,target:g,disabled:!c,onClick:async e=>{e.preventDefault();const t=window.open("",g);t.focus(),function(e){let t=(0,P.renderToString)((0,C.createElement)("div",{className:"editor-post-preview-button__interstitial-message"},(0,C.createElement)(Zo.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96"},(0,C.createElement)(Zo.Path,{className:"outer",d:"M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",fill:"none"}),(0,C.createElement)(Zo.Path,{className:"inner",d:"M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z",fill:"none"})),(0,C.createElement)("p",null,(0,d.__)("Generating preview…"))));t+='\n\t\t<style>\n\t\t\tbody {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\twidth: 100vw;\n\t\t\t}\n\t\t\t@-webkit-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-moz-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-o-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg {\n\t\t\t\twidth: 192px;\n\t\t\t\theight: 192px;\n\t\t\t\tstroke: #555d66;\n\t\t\t\tstroke-width: 0.75;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg .outer,\n\t\t\t.editor-post-preview-button__interstitial-message svg .inner {\n\t\t\t\tstroke-dasharray: 280;\n\t\t\t\tstroke-dashoffset: 280;\n\t\t\t\t-webkit-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-moz-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-o-animation: paint 1.5s ease infinite alternate;\n\t\t\t\tanimation: paint 1.5s ease infinite alternate;\n\t\t\t}\n\t\t\tp {\n\t\t\t\ttext-align: center;\n\t\t\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\t\t\t}\n\t\t</style>\n\t',t=(0,an.applyFilters)("editor.PostPreview.interstitialMarkup",t),e.write(t),e.title=(0,d.__)("Generating preview…"),e.close()}(t.document);const o=await m({forceIsAutosaveable:n});t.location=o,s?.()},role:o},t||(0,C.createElement)(C.Fragment,null,(0,d._x)("Preview","imperative verb"),(0,C.createElement)(Zo.VisuallyHidden,{as:"span"},(0,d.__)("(opens in a new tab)"))))}const bi=(0,No.compose)([(0,a.withSelect)((e=>{var t;const{isCurrentPostPublished:n,isEditedPostBeingScheduled:o,isSavingPost:s,isPublishingPost:r,getCurrentPost:i,getCurrentPostType:a,isAutosavingPost:l}=e(xo);return{isPublished:n(),isBeingScheduled:o(),isSaving:s(),isPublishing:r(),hasPublishAction:null!==(t=i()._links?.["wp:action-publish"])&&void 0!==t&&t,postType:a(),isAutosaving:l()}}))])((function({isPublished:e,isBeingScheduled:t,isSaving:n,isPublishing:o,hasPublishAction:s,isAutosaving:r,hasNonPostEntityChanges:i}){return o?(0,d.__)("Publishing…"):e&&n&&!r?(0,d.__)("Updating…"):t&&n&&!r?(0,d.__)("Scheduling…"):s?e?i?(0,d.__)("Update…"):(0,d.__)("Update"):t?i?(0,d.__)("Schedule…"):(0,d.__)("Schedule"):(0,d.__)("Publish"):i?(0,d.__)("Submit for Review…"):(0,d.__)("Submit for Review")})),vi=()=>{};class yi extends P.Component{constructor(e){super(e),this.buttonNode=(0,P.createRef)(),this.createOnClick=this.createOnClick.bind(this),this.closeEntitiesSavedStates=this.closeEntitiesSavedStates.bind(this),this.state={entitiesSavedStatesCallback:!1}}componentDidMount(){this.props.focusOnMount&&(this.timeoutID=setTimeout((()=>{this.buttonNode.current.focus()}),0))}componentWillUnmount(){clearTimeout(this.timeoutID)}createOnClick(e){return(...t)=>{const{hasNonPostEntityChanges:n,setEntitiesSavedStatesCallback:o}=this.props;return n&&o?(this.setState({entitiesSavedStatesCallback:()=>e(...t)}),o((()=>this.closeEntitiesSavedStates)),vi):e(...t)}}closeEntitiesSavedStates(e){const{postType:t,postId:n}=this.props,{entitiesSavedStatesCallback:o}=this.state;this.setState({entitiesSavedStatesCallback:!1},(()=>{e&&e.some((e=>"postType"===e.kind&&e.name===t&&e.key===n))&&o()}))}render(){const{forceIsDirty:e,hasPublishAction:t,isBeingScheduled:n,isOpen:o,isPostSavingLocked:s,isPublishable:r,isPublished:i,isSaveable:a,isSaving:l,isAutoSaving:c,isToggle:u,onSave:p,onStatusChange:m,onSubmit:g=vi,onToggle:h,visibility:_,hasNonPostEntityChanges:f,isSavingNonPostEntityChanges:E}=this.props,b=(l||!a||s||!r&&!e)&&(!f||E),v=(i||l||!a||!r&&!e)&&(!f||E);let y;y=t?"private"===_?"private":n?"future":"publish":"pending";const w={"aria-disabled":b,className:"editor-post-publish-button",isBusy:!c&&l,variant:"primary",onClick:this.createOnClick((()=>{b||(g(),m(y),p())}))},k={"aria-disabled":v,"aria-expanded":o,className:"editor-post-publish-panel__toggle",isBusy:l&&i,variant:"primary",size:"compact",onClick:this.createOnClick((()=>{v||h()}))},S=n?(0,d.__)("Schedule…"):(0,d.__)("Publish"),P=(0,C.createElement)(bi,{hasNonPostEntityChanges:f}),T=u?k:w,x=u?S:P;return(0,C.createElement)(C.Fragment,null,(0,C.createElement)(Zo.Button,{ref:this.buttonNode,...T,className:Ko()(T.className,"editor-post-publish-button__button",{"has-changes-dot":f})},x))}}const wi=(0,No.compose)([(0,a.withSelect)((e=>{var t;const{isSavingPost:n,isAutosavingPost:o,isEditedPostBeingScheduled:s,getEditedPostVisibility:r,isCurrentPostPublished:i,isEditedPostSaveable:a,isEditedPostPublishable:l,isPostSavingLocked:c,getCurrentPost:u,getCurrentPostType:d,getCurrentPostId:p,hasNonPostEntityChanges:m,isSavingNonPostEntityChanges:g}=e(xo);return{isSaving:n(),isAutoSaving:o(),isBeingScheduled:s(),visibility:r(),isSaveable:a(),isPostSavingLocked:c(),isPublishable:l(),isPublished:i(),hasPublishAction:null!==(t=u()._links?.["wp:action-publish"])&&void 0!==t&&t,postType:d(),postId:p(),hasNonPostEntityChanges:m(),isSavingNonPostEntityChanges:g()}})),(0,a.withDispatch)((e=>{const{editPost:t,savePost:n}=e(xo);return{onStatusChange:e=>t({status:e},{undoIgnore:!0}),onSave:n}}))])(yi),ki=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),Si=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,C.createElement)(T.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})),Pi={public:{label:(0,d.__)("Public"),info:(0,d.__)("Visible to everyone.")},private:{label:(0,d.__)("Private"),info:(0,d.__)("Only visible to site admins and editors.")},password:{label:(0,d.__)("Password protected"),info:(0,d.__)("Only those with the password can view this post.")}};function Ci({onClose:e}){const t=(0,No.useInstanceId)(Ci),{status:n,visibility:o,password:s}=(0,a.useSelect)((e=>({status:e(xo).getEditedPostAttribute("status"),visibility:e(xo).getEditedPostVisibility(),password:e(xo).getEditedPostAttribute("password")}))),{editPost:r,savePost:i}=(0,a.useDispatch)(xo),[l,c]=(0,P.useState)(!!s),[u,p]=(0,P.useState)(!1);return(0,C.createElement)("div",{className:"editor-post-visibility"},(0,C.createElement)(m.__experimentalInspectorPopoverHeader,{title:(0,d.__)("Visibility"),help:(0,d.__)("Control how this post is viewed."),onClose:e}),(0,C.createElement)("fieldset",{className:"editor-post-visibility__fieldset"},(0,C.createElement)(Zo.VisuallyHidden,{as:"legend"},(0,d.__)("Visibility")),(0,C.createElement)(Ti,{instanceId:t,value:"public",label:Pi.public.label,info:Pi.public.info,checked:"public"===o&&!l,onChange:()=>{r({status:"private"===o?"draft":n,password:""}),c(!1)}}),(0,C.createElement)(Ti,{instanceId:t,value:"private",label:Pi.private.label,info:Pi.private.info,checked:"private"===o,onChange:()=>{p(!0)}}),(0,C.createElement)(Ti,{instanceId:t,value:"password",label:Pi.password.label,info:Pi.password.info,checked:l,onChange:()=>{r({status:"private"===o?"draft":n,password:s||""}),c(!0)}}),l&&(0,C.createElement)("div",{className:"editor-post-visibility__password"},(0,C.createElement)(Zo.VisuallyHidden,{as:"label",htmlFor:`editor-post-visibility__password-input-${t}`},(0,d.__)("Create password")),(0,C.createElement)("input",{className:"editor-post-visibility__password-input",id:`editor-post-visibility__password-input-${t}`,type:"text",onChange:e=>{r({password:e.target.value})},value:s,placeholder:(0,d.__)("Use a secure password")}))),(0,C.createElement)(Zo.__experimentalConfirmDialog,{isOpen:u,onConfirm:()=>{r({status:"private",password:""}),c(!1),p(!1),i()},onCancel:()=>{p(!1)}},(0,d.__)("Would you like to privately publish this post now?")))}function Ti({instanceId:e,value:t,label:n,info:o,...s}){return(0,C.createElement)("div",{className:"editor-post-visibility__choice"},(0,C.createElement)("input",{type:"radio",name:`editor-post-visibility__setting-${e}`,value:t,id:`editor-post-${t}-${e}`,"aria-describedby":`editor-post-${t}-${e}-description`,className:"editor-post-visibility__radio",...s}),(0,C.createElement)("label",{htmlFor:`editor-post-${t}-${e}`,className:"editor-post-visibility__label"},n),(0,C.createElement)("p",{id:`editor-post-${t}-${e}-description`,className:"editor-post-visibility__info"},o))}function xi(){return Bi()}function Bi(){const e=(0,a.useSelect)((e=>e(xo).getEditedPostVisibility()));return Pi[e]?.label}function Ii(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Ni(e){return Ni="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},Ni(e)}function Di(e){Ii(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Ni(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Ai(e){Ii(1,arguments);var t=Di(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Ri(e){Ii(1,arguments);var t=Di(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}Math.pow(10,8);var Oi=6e4,Li=36e5;function Mi(e,t){var n;Ii(1,arguments);var o=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==o&&1!==o&&0!==o)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var s,r=function(e){var t,n={},o=e.split(Fi.dateTimeDelimiter);if(o.length>2)return n;/:/.test(o[0])?t=o[0]:(n.date=o[0],t=o[1],Fi.timeZoneDelimiter.test(n.date)&&(n.date=e.split(Fi.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var s=Fi.timezone.exec(t);s?(n.time=t.replace(s[1],""),n.timezone=s[1]):n.time=t}return n}(e);if(r.date){var i=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),o=e.match(n);if(!o)return{year:NaN,restDateString:""};var s=o[1]?parseInt(o[1]):null,r=o[2]?parseInt(o[2]):null;return{year:null===r?s:100*r,restDateString:e.slice((o[1]||o[2]).length)}}(r.date,o);s=function(e,t){if(null===t)return new Date(NaN);var n=e.match(Vi);if(!n)return new Date(NaN);var o=!!n[4],s=zi(n[1]),r=zi(n[2])-1,i=zi(n[3]),a=zi(n[4]),l=zi(n[5])-1;if(o)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,a,l)?function(e,t,n){var o=new Date(0);o.setUTCFullYear(e,0,4);var s=o.getUTCDay()||7,r=7*(t-1)+n+1-s;return o.setUTCDate(o.getUTCDate()+r),o}(t,a,l):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(ji[t]||(Wi(e)?29:28))}(t,r,i)&&function(e,t){return t>=1&&t<=(Wi(e)?366:365)}(t,s)?(c.setUTCFullYear(t,r,Math.max(s,i)),c):new Date(NaN)}(i.restDateString,i.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var a,l=s.getTime(),c=0;if(r.time&&(c=function(e){var t=e.match(Ui);if(!t)return NaN;var n=Gi(t[1]),o=Gi(t[2]),s=Gi(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,o,s))return NaN;return n*Li+o*Oi+1e3*s}(r.time),isNaN(c)))return new Date(NaN);if(!r.timezone){var u=new Date(l+c),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return a=function(e){if("Z"===e)return 0;var t=e.match(Hi);if(!t)return 0;var n="+"===t[1]?-1:1,o=parseInt(t[2]),s=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,s))return NaN;return n*(o*Li+s*Oi)}(r.timezone),isNaN(a)?new Date(NaN):new Date(l+c+a)}var Fi={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Vi=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ui=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Hi=/^([+-])(\d{2})(?::?(\d{2}))?$/;function zi(e){return e?parseInt(e):1}function Gi(e){return e&&parseFloat(e.replace(",","."))||0}var ji=[31,null,31,30,31,30,31,31,30,31,30,31];function Wi(e){return e%400==0||e%4==0&&e%100!=0}function $i({onClose:e}){const{postDate:t,postType:n}=(0,a.useSelect)((e=>({postDate:e(xo).getEditedPostAttribute("date"),postType:e(xo).getCurrentPostType()})),[]),{editPost:o}=(0,a.useDispatch)(xo),[s,r]=(0,P.useState)(Ai(new Date(t))),i=(0,a.useSelect)((e=>e(p.store).getEntityRecords("postType",n,{status:"publish,future",after:Ai(s).toISOString(),before:Ri(s).toISOString(),exclude:[e(xo).getCurrentPostId()],per_page:100,_fields:"id,date"})),[s,n]),l=(0,P.useMemo)((()=>(i||[]).map((({date:e})=>({date:new Date(e)})))),[i]),c=(0,y.getSettings)(),u=/a(?!\\)/i.test(c.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,C.createElement)(m.__experimentalPublishDateTimePicker,{currentDate:t,onChange:e=>o({date:e}),is12Hour:u,events:l,onMonthPreviewed:e=>r(Mi(e)),onClose:e})}function Ki(e){return Zi(e)}function Zi({full:e=!1}={}){const{date:t,isFloating:n}=(0,a.useSelect)((e=>({date:e(xo).getEditedPostAttribute("date"),isFloating:e(xo).isEditedPostDateFloating()})),[]);return e?Yi(t):function(e,{isFloating:t=!1,now:n=new Date}={}){if(!e||t)return(0,d.__)("Immediately");if(!function(e){const{timezone:t}=(0,y.getSettings)(),n=Number(t.offset),o=e.getTimezoneOffset()/60*-1;return n===o}(n))return Yi(e);const o=(0,y.getDate)(e);if(qi(o,n))return(0,d.sprintf)((0,d.__)("Today at %s"),(0,y.dateI18n)((0,d._x)("g:i a","post schedule time format"),o));const s=new Date(n);if(s.setDate(s.getDate()+1),qi(o,s))return(0,d.sprintf)((0,d.__)("Tomorrow at %s"),(0,y.dateI18n)((0,d._x)("g:i a","post schedule time format"),o));if(o.getFullYear()===n.getFullYear())return(0,y.dateI18n)((0,d._x)("F j g:i a","post schedule date format without year"),o);return(0,y.dateI18n)((0,d._x)("F j, Y g:i a","post schedule full date format"),o)}(t,{isFloating:n})}function Yi(e){const t=(0,y.getDate)(e),n=function(){const{timezone:e}=(0,y.getSettings)();if(e.abbr&&isNaN(Number(e.abbr)))return e.abbr;const t=e.offset<0?"":"+";return`UTC${t}${e.offsetFormatted}`}(),o=(0,y.dateI18n)((0,d._x)("F j, Y g:i a","post schedule full date format"),t);return(0,d.isRTL)()?`${n} ${o}`:`${o} ${n}`}function qi(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}const Qi=window.wp.a11y,Xi=3,Ji={per_page:10,orderby:"count",order:"desc",hide_empty:!0,_fields:"id,name,count",context:"view"};function ea({onSelect:e,taxonomy:t}){const{_terms:n,showTerms:o}=(0,a.useSelect)((e=>{const n=e(p.store).getEntityRecords("taxonomy",t.slug,Ji);return{_terms:n,showTerms:n?.length>=Xi}}),[t.slug]);if(!o)return null;const s=nr(n);return(0,C.createElement)("div",{className:"editor-post-taxonomies__flat-term-most-used"},(0,C.createElement)(Zo.BaseControl.VisualLabel,{as:"h3",className:"editor-post-taxonomies__flat-term-most-used-label"},t.labels.most_used),(0,C.createElement)("ul",{role:"list",className:"editor-post-taxonomies__flat-term-most-used-list"},s.map((t=>(0,C.createElement)("li",{key:t.id},(0,C.createElement)(Zo.Button,{variant:"link",onClick:()=>e(t)},t.name))))))}const ta=[],na=20,oa={per_page:na,_fields:"id,name",context:"view"},sa=(e,t)=>er(e).toLowerCase()===er(t).toLowerCase(),ra=(e,t)=>e.map((e=>t.find((t=>sa(t.name,e))).id));function ia({slug:e}){var t,n;const[o,s]=(0,P.useState)([]),[r,i]=(0,P.useState)(""),l=(0,No.useDebounce)(i,500),{terms:c,termIds:u,taxonomy:m,hasAssignAction:g,hasCreateAction:h,hasResolvedTerms:_}=(0,a.useSelect)((t=>{var n,o;const{getCurrentPost:s,getEditedPostAttribute:r}=t(xo),{getEntityRecords:i,getTaxonomy:a,hasFinishedResolution:l}=t(p.store),c=s(),u=a(e),d=u?r(u.rest_base):ta,m={...oa,include:d.join(","),per_page:-1};return{hasCreateAction:!!u&&(null!==(n=c._links?.["wp:action-create-"+u.rest_base])&&void 0!==n&&n),hasAssignAction:!!u&&(null!==(o=c._links?.["wp:action-assign-"+u.rest_base])&&void 0!==o&&o),taxonomy:u,termIds:d,terms:d.length?i("taxonomy",e,m):ta,hasResolvedTerms:l("getEntityRecords",["taxonomy",e,m])}}),[e]),{searchResults:f}=(0,a.useSelect)((t=>{const{getEntityRecords:n}=t(p.store);return{searchResults:r?n("taxonomy",e,{...oa,search:r}):ta}}),[r,e]);(0,P.useEffect)((()=>{if(_){const e=(null!=c?c:[]).map((e=>er(e.name)));s(e)}}),[c,_]);const E=(0,P.useMemo)((()=>(null!=f?f:[]).map((e=>er(e.name)))),[f]),{editPost:b}=(0,a.useDispatch)(xo),{saveEntityRecord:v}=(0,a.useDispatch)(p.store),{createErrorNotice:y}=(0,a.useDispatch)(rn.store);if(!g)return null;function w(e){b({[m.rest_base]:e})}const k=null!==(t=m?.labels?.add_new_item)&&void 0!==t?t:"post_tag"===e?(0,d.__)("Add new tag"):(0,d.__)("Add new Term"),S=null!==(n=m?.labels?.singular_name)&&void 0!==n?n:"post_tag"===e?(0,d.__)("Tag"):(0,d.__)("Term"),T=(0,d.sprintf)((0,d._x)("%s added","term"),S),x=(0,d.sprintf)((0,d._x)("%s removed","term"),S),B=(0,d.sprintf)((0,d._x)("Remove %s","term"),S);return(0,C.createElement)(C.Fragment,null,(0,C.createElement)(Zo.FormTokenField,{__next40pxDefaultSize:!0,value:o,suggestions:E,onChange:function(t){const n=[...null!=c?c:[],...null!=f?f:[]],o=t.reduce(((e,t)=>(e.some((e=>e.toLowerCase()===t.toLowerCase()))||e.push(t),e)),[]),r=o.filter((e=>!n.find((t=>sa(t.name,e)))));if(s(o),0===r.length)return w(ra(o,n));h&&Promise.all(r.map((t=>async function(t){try{const n=await v("taxonomy",e,t,{throwOnError:!0});return tr(n)}catch(e){if("term_exists"!==e.code)throw e;return{id:e.data.term_id,name:t.name}}}({name:t})))).then((e=>{const t=n.concat(e);return w(ra(o,t))})).catch((e=>{y(e.message,{type:"snackbar"})}))},onInputChange:l,maxSuggestions:na,label:k,messages:{added:T,removed:x,remove:B}}),(0,C.createElement)(ea,{taxonomy:m,onSelect:function(t){var n;if(u.includes(t.id))return;const o=[...u,t.id],s="post_tag"===e?(0,d.__)("Tag"):(0,d.__)("Term"),r=(0,d.sprintf)((0,d._x)("%s added","term"),null!==(n=m?.labels?.singular_name)&&void 0!==n?n:s);(0,Qi.speak)(r,"assertive"),w(o)}}))}const aa=(0,Zo.withFilters)("editor.PostTaxonomyType")(ia),la=()=>{const e=[(0,d.__)("Suggestion:"),(0,C.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},(0,d.__)("Add tags"))];return(0,C.createElement)(Zo.PanelBody,{initialOpen:!1,title:e},(0,C.createElement)("p",null,(0,d.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),(0,C.createElement)(aa,{slug:"post_tag"}))},ca=()=>{const{hasTags:e,isPostTypeSupported:t}=(0,a.useSelect)((e=>{const t=e(xo).getCurrentPostType(),n=e(p.store).getTaxonomy("post_tag"),o=n?.types?.includes(t),s=void 0!==n,r=n&&e(xo).getEditedPostAttribute(n.rest_base);return{hasTags:!!r?.length,isPostTypeSupported:s&&o}}),[]),[n]=(0,P.useState)(e);return t?n?null:(0,C.createElement)(la,null):null},ua=(e,t)=>ci.filter((t=>e?.includes(t.id))).find((e=>e.id===t)),da=({suggestedPostFormat:e,suggestionText:t,onUpdatePostFormat:n})=>(0,C.createElement)(Zo.Button,{variant:"link",onClick:()=>n(e)},t);function pa(){const{currentPostFormat:e,suggestion:t}=(0,a.useSelect)((e=>{var t;const{getEditedPostAttribute:n,getSuggestedPostFormat:o}=e(xo),s=null!==(t=e(p.store).getThemeSupports().formats)&&void 0!==t?t:[];return{currentPostFormat:n("format"),suggestion:ua(s,o())}}),[]),{editPost:n}=(0,a.useDispatch)(xo),o=[(0,d.__)("Suggestion:"),(0,C.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},(0,d.__)("Use a post format"))];return t&&t.id!==e?(0,C.createElement)(Zo.PanelBody,{initialOpen:!1,title:o},(0,C.createElement)("p",null,(0,d.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")),(0,C.createElement)("p",null,(0,C.createElement)(da,{onUpdatePostFormat:e=>n({format:e}),suggestedPostFormat:t.id,suggestionText:(0,d.sprintf)((0,d.__)('Apply the "%1$s" format.'),t.caption)}))):null}const ma={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent",context:"view"},ga=8,ha=[];function _a({slug:e}){var t,n;const[o,s]=(0,P.useState)(!1),[r,i]=(0,P.useState)(""),[l,c]=(0,P.useState)(""),[u,m]=(0,P.useState)(!1),[g,h]=(0,P.useState)(""),[_,f]=(0,P.useState)([]),E=(0,No.useDebounce)(Qi.speak,500),{hasCreateAction:b,hasAssignAction:v,terms:y,loading:w,availableTerms:k,taxonomy:S}=(0,a.useSelect)((t=>{var n,o;const{getCurrentPost:s,getEditedPostAttribute:r}=t(xo),{getTaxonomy:i,getEntityRecords:a,isResolving:l}=t(p.store),c=i(e),u=s();return{hasCreateAction:!!c&&(null!==(n=u._links?.["wp:action-create-"+c.rest_base])&&void 0!==n&&n),hasAssignAction:!!c&&(null!==(o=u._links?.["wp:action-assign-"+c.rest_base])&&void 0!==o&&o),terms:c?r(c.rest_base):ha,loading:l("getEntityRecords",["taxonomy",e,ma]),availableTerms:a("taxonomy",e,ma)||ha,taxonomy:c}}),[e]),{editPost:T}=(0,a.useDispatch)(xo),{saveEntityRecord:x}=(0,a.useDispatch)(p.store),B=(0,P.useMemo)((()=>function(e,t){const n=e=>-1!==t.indexOf(e.id)||void 0!==e.children&&e.children.map(n).filter((e=>e)).length>0,o=[...e];return o.sort(((e,t)=>{const o=n(e),s=n(t);return o===s?0:o&&!s?-1:!o&&s?1:0})),o}(Js(k),y)),[k]),{createErrorNotice:I}=(0,a.useDispatch)(rn.store);if(!v)return null;const N=e=>{T({[S.rest_base]:e})},D=e=>e.map((e=>(0,C.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},(0,C.createElement)(Zo.CheckboxControl,{__nextHasNoMarginBottom:!0,checked:-1!==y.indexOf(e.id),onChange:()=>{(e=>{const t=y.includes(e)?y.filter((t=>t!==e)):[...y,e];N(t)})(parseInt(e.id,10))},label:(0,Cs.decodeEntities)(e.name)}),!!e.children.length&&(0,C.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices"},D(e.children))))),A=(t,n,o)=>{var s;return null!==(s=S?.labels?.[t])&&void 0!==s?s:"category"===e?n:o},R=A("add_new_item",(0,d.__)("Add new category"),(0,d.__)("Add new term")),O=A("new_item_name",(0,d.__)("Add new category"),(0,d.__)("Add new term")),L=A("parent_item",(0,d.__)("Parent Category"),(0,d.__)("Parent Term")),M=`— ${L} —`,F=R,V=null!==(t=S?.labels?.search_items)&&void 0!==t?t:(0,d.__)("Search Terms"),U=null!==(n=S?.name)&&void 0!==n?n:(0,d.__)("Terms"),H=k.length>=ga;return(0,C.createElement)(Zo.Flex,{direction:"column",gap:"4"},H&&(0,C.createElement)(Zo.TextControl,{__nextHasNoMarginBottom:!0,label:V,value:g,onChange:e=>{const t=B.map(function(e){const t=n=>{if(""===e)return n;const o={...n};return o.children.length>0&&(o.children=o.children.map(t).filter((e=>e))),(-1!==o.name.toLowerCase().indexOf(e.toLowerCase())||o.children.length>0)&&o};return t}(e)).filter((e=>e)),n=e=>{let t=0;for(let o=0;o<e.length;o++)t++,void 0!==e[o].children&&(t+=n(e[o].children));return t};h(e),f(t);const o=n(t),s=(0,d.sprintf)((0,d._n)("%d result found.","%d results found.",o),o);E(s,"assertive")}}),(0,C.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",tabIndex:"0",role:"group","aria-label":U},D(""!==g?_:B)),!w&&b&&(0,C.createElement)(Zo.FlexItem,null,(0,C.createElement)(Zo.Button,{onClick:()=>{m(!u)},className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":u,variant:"link"},R)),u&&(0,C.createElement)("form",{onSubmit:async t=>{var n;if(t.preventDefault(),""===r||o)return;const a=function(e,t,n){return e.find((e=>(!e.parent&&!t||parseInt(e.parent)===parseInt(t))&&e.name.toLowerCase()===n.toLowerCase()))}(k,l,r);if(a)return y.some((e=>e===a.id))||N([...y,a.id]),i(""),void c("");let u;s(!0);try{u=await(p={name:r,parent:l||void 0},x("taxonomy",e,p,{throwOnError:!0}))}catch(e){return void I(e.message,{type:"snackbar"})}var p;const m="category"===e?(0,d.__)("Category"):(0,d.__)("Term"),g=(0,d.sprintf)((0,d._x)("%s added","term"),null!==(n=S?.labels?.singular_name)&&void 0!==n?n:m);(0,Qi.speak)(g,"assertive"),s(!1),i(""),c(""),N([...y,u.id])}},(0,C.createElement)(Zo.Flex,{direction:"column",gap:"4"},(0,C.createElement)(Zo.TextControl,{__nextHasNoMarginBottom:!0,className:"editor-post-taxonomies__hierarchical-terms-input",label:O,value:r,onChange:e=>{i(e)},required:!0}),!!k.length&&(0,C.createElement)(Zo.TreeSelect,{__nextHasNoMarginBottom:!0,label:L,noOptionLabel:M,onChange:e=>{c(e)},selectedId:l,tree:B}),(0,C.createElement)(Zo.FlexItem,null,(0,C.createElement)(Zo.Button,{variant:"secondary",type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},F)))))}const fa=(0,Zo.withFilters)("editor.PostTaxonomyType")(_a);const Ea=function(){const e=(0,a.useSelect)((e=>{const t=e(xo).getCurrentPostType(),{canUser:n,getEntityRecord:o,getTaxonomy:s}=e(p.store),r=s("category"),i=n("read","settings")?o("root","site")?.default_category:void 0,a=i?o("taxonomy","category",i):void 0,l=r&&r.types.some((e=>e===t)),c=r&&e(xo).getEditedPostAttribute(r.rest_base);return!!r&&!!a&&l&&(0===c?.length||1===c?.length&&a?.id===c[0])}),[]),[t,n]=(0,P.useState)(!1);if((0,P.useEffect)((()=>{e&&n(!0)}),[e]),!t)return null;const o=[(0,d.__)("Suggestion:"),(0,C.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},(0,d.__)("Assign a category"))];return(0,C.createElement)(Zo.PanelBody,{initialOpen:!1,title:o},(0,C.createElement)("p",null,(0,d.__)("Categories provide a helpful way to group related posts together and to quickly tell readers what a post is about.")),(0,C.createElement)(fa,{slug:"category"}))};function ba(e){const t=[];return e.forEach((e=>{t.push(e),t.push(...ba(e.innerBlocks))})),t}function va(e){const{selectBlock:t}=(0,a.useDispatch)(m.store);return(0,C.createElement)(Zo.__unstableMotion.img,{tabIndex:0,role:"button","aria-label":(0,d.__)("Select image block."),onClick:()=>{t(e.clientId)},onKeyDown:n=>{"Enter"!==n.key&&" "!==n.key||(t(e.clientId),n.preventDefault())},key:e.clientId,alt:e.attributes.alt,src:e.attributes.url,animate:{opacity:1},exit:{opacity:0,scale:0},style:{width:"36px",height:"36px",objectFit:"cover",borderRadius:"2px",cursor:"pointer"},whileHover:{scale:1.08}})}function ya(){const[e,t]=(0,P.useState)(!1),{editorBlocks:n,mediaUpload:o}=(0,a.useSelect)((e=>({editorBlocks:e(xo).getEditorBlocks(),mediaUpload:e(m.store).getSettings().mediaUpload})),[]),s=ba(n).filter((e=>"core/image"===e.name&&e.attributes.url&&!e.attributes.id)),{updateBlockAttributes:r}=(0,a.useDispatch)(m.store);if(!o||!s.length)return null;const i=[(0,d.__)("Suggestion:"),(0,C.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},(0,d.__)("External media"))];return(0,C.createElement)(Zo.PanelBody,{initialOpen:!0,title:i},(0,C.createElement)("p",null,(0,d.__)("Upload external images to the Media Library. Images from different domains may load slowly, display incorrectly, or be removed unexpectedly.")),(0,C.createElement)("div",{style:{display:"inline-flex",flexWrap:"wrap",gap:"8px"}},(0,C.createElement)(Zo.__unstableAnimatePresence,null,s.map((e=>(0,C.createElement)(va,{key:e.clientId,...e})))),e?(0,C.createElement)(Zo.Spinner,null):(0,C.createElement)(Zo.Button,{variant:"primary",onClick:function(){t(!0),Promise.all(s.map((e=>window.fetch(e.attributes.url.includes("?")?e.attributes.url:e.attributes.url+"?").then((e=>e.blob())).then((t=>new Promise(((n,s)=>{o({filesList:[t],onFileChange:([t])=>{(0,qr.isBlobURL)(t.url)||(r(e.clientId,{id:t.id,url:t.url}),n())},onError(){s()}})}))))))).finally((()=>{t(!1)}))}},(0,d.__)("Upload"))))}const wa=function({children:e}){const{isBeingScheduled:t,isRequestingSiteIcon:n,hasPublishAction:o,siteIconUrl:s,siteTitle:r,siteHome:i}=(0,a.useSelect)((e=>{var t;const{getCurrentPost:n,isEditedPostBeingScheduled:o}=e(xo),{getEntityRecord:s,isResolving:r}=e(p.store),i=s("root","__unstableBase",void 0)||{};return{hasPublishAction:null!==(t=n()._links?.["wp:action-publish"])&&void 0!==t&&t,isBeingScheduled:o(),isRequestingSiteIcon:r("getEntityRecord",["root","__unstableBase",void 0]),siteIconUrl:i.site_icon_url,siteTitle:i.name,siteHome:i.home&&(0,w.filterURLForDisplay)(i.home)}}),[]);let l,c,u=(0,C.createElement)(Zo.Icon,{className:"components-site-icon",size:"36px",icon:Si});return s&&(u=(0,C.createElement)("img",{alt:(0,d.__)("Site Icon"),className:"components-site-icon",src:s})),n&&(u=null),o?t?(l=(0,d.__)("Are you ready to schedule?"),c=(0,d.__)("Your work will be published at the specified date and time.")):(l=(0,d.__)("Are you ready to publish?"),c=(0,d.__)("Double-check your settings before publishing.")):(l=(0,d.__)("Are you ready to submit for review?"),c=(0,d.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),(0,C.createElement)("div",{className:"editor-post-publish-panel__prepublish"},(0,C.createElement)("div",null,(0,C.createElement)("strong",null,l)),(0,C.createElement)("p",null,c),(0,C.createElement)("div",{className:"components-site-card"},u,(0,C.createElement)("div",{className:"components-site-info"},(0,C.createElement)("span",{className:"components-site-name"},(0,Cs.decodeEntities)(r)||(0,d.__)("(Untitled)")),(0,C.createElement)("span",{className:"components-site-home"},i))),(0,C.createElement)(ya,null),o&&(0,C.createElement)(C.Fragment,null,(0,C.createElement)(Zo.PanelBody,{initialOpen:!1,title:[(0,d.__)("Visibility:"),(0,C.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},(0,C.createElement)(xi,null))]},(0,C.createElement)(Ci,null)),(0,C.createElement)(Zo.PanelBody,{initialOpen:!1,title:[(0,d.__)("Publish:"),(0,C.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},(0,C.createElement)(Ki,null))]},(0,C.createElement)($i,null))),(0,C.createElement)(pa,null),(0,C.createElement)(ca,null),(0,C.createElement)(Ea,null),e)},ka="%postname%",Sa="%pagename%";function Pa({text:e,onCopy:t,children:n}){const o=(0,No.useCopyToClipboard)(e,t);return(0,C.createElement)(Zo.Button,{variant:"secondary",ref:o},n)}class Ca extends P.Component{constructor(){super(...arguments),this.state={showCopyConfirmation:!1},this.onCopy=this.onCopy.bind(this),this.onSelectInput=this.onSelectInput.bind(this),this.postLink=(0,P.createRef)()}componentDidMount(){this.props.focusOnMount&&this.postLink.current.focus()}componentWillUnmount(){clearTimeout(this.dismissCopyConfirmation)}onCopy(){this.setState({showCopyConfirmation:!0}),clearTimeout(this.dismissCopyConfirmation),this.dismissCopyConfirmation=setTimeout((()=>{this.setState({showCopyConfirmation:!1})}),4e3)}onSelectInput(e){e.target.select()}render(){const{children:e,isScheduled:t,post:n,postType:o}=this.props,s=o?.labels?.singular_name,r=o?.labels?.view_item,i=o?.labels?.add_new_item,a="future"===n.status?(e=>{const{slug:t}=e;return e.permalink_template.includes(ka)?e.permalink_template.replace(ka,t):e.permalink_template.includes(Sa)?e.permalink_template.replace(Sa,t):e.permalink_template})(n):n.link,l=(0,w.addQueryArgs)("post-new.php",{post_type:n.type}),c=t?(0,C.createElement)(C.Fragment,null,(0,d.__)("is now scheduled. It will go live on")," ",(0,C.createElement)(Ki,null),"."):(0,d.__)("is now live.");return(0,C.createElement)("div",{className:"post-publish-panel__postpublish"},(0,C.createElement)(Zo.PanelBody,{className:"post-publish-panel__postpublish-header"},(0,C.createElement)("a",{ref:this.postLink,href:a},(0,Cs.decodeEntities)(n.title)||(0,d.__)("(no title)"))," ",c),(0,C.createElement)(Zo.PanelBody,null,(0,C.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},(0,C.createElement)("strong",null,(0,d.__)("What’s next?"))),(0,C.createElement)("div",{className:"post-publish-panel__postpublish-post-address-container"},(0,C.createElement)(Zo.TextControl,{__nextHasNoMarginBottom:!0,className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:(0,d.sprintf)((0,d.__)("%s address"),s),value:(0,w.safeDecodeURIComponent)(a),onFocus:this.onSelectInput}),(0,C.createElement)("div",{className:"post-publish-panel__postpublish-post-address__copy-button-wrap"},(0,C.createElement)(Pa,{text:a,onCopy:this.onCopy},this.state.showCopyConfirmation?(0,d.__)("Copied!"):(0,d.__)("Copy")))),(0,C.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!t&&(0,C.createElement)(Zo.Button,{variant:"primary",href:a},r),(0,C.createElement)(Zo.Button,{variant:t?"primary":"secondary",href:l},i))),e)}}const Ta=(0,a.withSelect)((e=>{const{getEditedPostAttribute:t,getCurrentPost:n,isCurrentPostScheduled:o}=e(xo),{getPostType:s}=e(p.store);return{post:n(),postType:s(t("type")),isScheduled:o()}}))(Ca);class xa extends P.Component{constructor(){super(...arguments),this.onSubmit=this.onSubmit.bind(this)}componentDidUpdate(e){e.isPublished&&!this.props.isSaving&&this.props.isDirty&&this.props.onClose()}onSubmit(){const{onClose:e,hasPublishAction:t,isPostTypeViewable:n}=this.props;t&&n||e()}render(){const{forceIsDirty:e,isBeingScheduled:t,isPublished:n,isPublishSidebarEnabled:o,isScheduled:s,isSaving:r,isSavingNonPostEntityChanges:i,onClose:a,onTogglePublishSidebar:l,PostPublishExtension:c,PrePublishExtension:u,...p}=this.props,{hasPublishAction:m,isDirty:g,isPostTypeViewable:h,..._}=p,f=n||s&&t,E=!f&&!r,b=f&&!r;return(0,C.createElement)("div",{className:"editor-post-publish-panel",..._},(0,C.createElement)("div",{className:"editor-post-publish-panel__header"},b?(0,C.createElement)(Zo.Button,{onClick:a,icon:ki,label:(0,d.__)("Close panel")}):(0,C.createElement)(C.Fragment,null,(0,C.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},(0,C.createElement)(wi,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:e})),(0,C.createElement)("div",{className:"editor-post-publish-panel__header-cancel-button"},(0,C.createElement)(Zo.Button,{disabled:i,onClick:a,variant:"secondary"},(0,d.__)("Cancel"))))),(0,C.createElement)("div",{className:"editor-post-publish-panel__content"},E&&(0,C.createElement)(wa,null,u&&(0,C.createElement)(u,null)),b&&(0,C.createElement)(Ta,{focusOnMount:!0},c&&(0,C.createElement)(c,null)),r&&(0,C.createElement)(Zo.Spinner,null)),(0,C.createElement)("div",{className:"editor-post-publish-panel__footer"},(0,C.createElement)(Zo.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,d.__)("Always show pre-publish checks."),checked:o,onChange:l})))}}const Ba=(0,No.compose)([(0,a.withSelect)((e=>{var t;const{getPostType:n}=e(p.store),{getCurrentPost:o,getEditedPostAttribute:s,isCurrentPostPublished:r,isCurrentPostScheduled:i,isEditedPostBeingScheduled:a,isEditedPostDirty:l,isAutosavingPost:c,isSavingPost:u,isSavingNonPostEntityChanges:d}=e(xo),{isPublishSidebarEnabled:m}=e(xo),g=n(s("type"));return{hasPublishAction:null!==(t=o()._links?.["wp:action-publish"])&&void 0!==t&&t,isPostTypeViewable:g?.viewable,isBeingScheduled:a(),isDirty:l(),isPublished:r(),isPublishSidebarEnabled:m(),isSaving:u()&&!c(),isSavingNonPostEntityChanges:d(),isScheduled:i()}})),(0,a.withDispatch)(((e,{isPublishSidebarEnabled:t})=>{const{disablePublishSidebar:n,enablePublishSidebar:o}=e(xo);return{onTogglePublishSidebar:()=>{t?n():o()}}})),Zo.withFocusReturn,Zo.withConstrainedTabbing])(xa),Ia=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-4v-2.4L14 14l1-1-3-3-3 3 1 1 1.2-1.2v2.4H7.7c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4H9l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8 0 1-.8 1.8-1.7 1.8z"}));const Na=(0,P.forwardRef)((function({icon:e,size:t=24,...n},o){return(0,P.cloneElement)(e,{width:t,height:t,...n,ref:o})})),Da=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"}));function Aa({forceIsDirty:e}){const[t,n]=(0,P.useState)(!1),o=(0,No.useViewportMatch)("small"),{isAutosaving:s,isDirty:r,isNew:i,isPending:l,isPublished:c,isSaveable:u,isSaving:p,isScheduled:m,hasPublishAction:g,showIconLabels:h}=(0,a.useSelect)((t=>{var n;const{isEditedPostNew:o,isCurrentPostPublished:s,isCurrentPostScheduled:r,isEditedPostDirty:i,isSavingPost:a,isEditedPostSaveable:l,getCurrentPost:c,isAutosavingPost:u,getEditedPostAttribute:d}=t(xo),{get:p}=t(B.store);return{isAutosaving:u(),isDirty:e||i(),isNew:o(),isPending:"pending"===d("status"),isPublished:s(),isSaving:a(),isSaveable:l(),isScheduled:r(),hasPublishAction:null!==(n=c()?._links?.["wp:action-publish"])&&void 0!==n&&n,showIconLabels:p("core","showIconLabels")}}),[e]),{savePost:_}=(0,a.useDispatch)(xo),f=(0,No.usePrevious)(p);if((0,P.useEffect)((()=>{let e;return f&&!p&&(n(!0),e=setTimeout((()=>{n(!1)}),1e3)),()=>clearTimeout(e)}),[p]),!g&&l)return null;if(c||m)return null;const E=l?(0,d.__)("Save as pending"):(0,d.__)("Save draft"),b=(0,d.__)("Save"),v=t||!i&&!r,y=p||v,w=p||v||!u;let k;return p?k=s?(0,d.__)("Autosaving"):(0,d.__)("Saving"):v?k=(0,d.__)("Saved"):o?k=E:h&&(k=b),(0,C.createElement)(Zo.Button,{className:u||p?Ko()({"editor-post-save-draft":!y,"editor-post-saved-state":y,"is-saving":p,"is-autosaving":s,"is-saved":v,[(0,Zo.__unstableGetAnimateClassName)({type:"loading"})]:p}):void 0,onClick:w?void 0:()=>_(),shortcut:w?void 0:es.displayShortcut.primary("s"),variant:"tertiary",size:"compact",icon:o?void 0:Ia,label:k||E,"aria-disabled":w},y&&(0,C.createElement)(Na,{icon:v?vr:Da}),k)}function Ra({children:e}){return(0,a.useSelect)((e=>{var t;return null!==(t=e(xo).getCurrentPost()._links?.["wp:action-publish"])&&void 0!==t&&t}),[])?e:null}function Oa(){const[e,t]=(0,P.useState)(null),n=(0,P.useMemo)((()=>({anchor:e,"aria-label":(0,d.__)("Change publish date"),placement:"bottom-end"})),[e]),o=Zi(),s=Zi({full:!0});return(0,C.createElement)(Ra,null,(0,C.createElement)(xr,{label:(0,d.__)("Publish"),ref:t},(0,C.createElement)(Zo.Dropdown,{popoverProps:n,focusOnMount:!0,className:"editor-post-schedule__panel-dropdown",contentClassName:"editor-post-schedule__dialog",renderToggle:({onToggle:e,isOpen:t})=>(0,C.createElement)(Zo.Button,{__next40pxDefaultSize:!0,className:"editor-post-schedule__dialog-toggle",variant:"tertiary",onClick:e,"aria-label":(0,d.sprintf)((0,d.__)("Change date: %s"),o),label:s,showTooltip:o!==s,"aria-expanded":t},o),renderContent:({onClose:e})=>(0,C.createElement)($i,{onClose:e})})))}function La({children:e}){return(0,C.createElement)(Zs,{supportKeys:"slug"},e)}class Ma extends P.Component{constructor({postSlug:e,postTitle:t,postID:n}){super(...arguments),this.state={editedSlug:(0,w.safeDecodeURIComponent)(e)||(0,w.cleanForSlug)(t)||n},this.setSlug=this.setSlug.bind(this)}setSlug(e){const{postSlug:t,onUpdateSlug:n}=this.props,{value:o}=e.target,s=(0,w.cleanForSlug)(o);s!==t&&n(s)}render(){const{editedSlug:e}=this.state;return(0,C.createElement)(La,null,(0,C.createElement)(Zo.TextControl,{__nextHasNoMarginBottom:!0,label:(0,d.__)("Slug"),autoComplete:"off",spellCheck:"false",value:e,onChange:e=>this.setState({editedSlug:e}),onBlur:this.setSlug,className:"editor-post-slug"}))}}const Fa=(0,No.compose)([(0,a.withSelect)((e=>{const{getCurrentPost:t,getEditedPostAttribute:n}=e(xo),{id:o}=t();return{postSlug:n("slug"),postTitle:n("title"),postID:o}})),(0,a.withDispatch)((e=>{const{editPost:t}=e(xo);return{onUpdateSlug(e){t({slug:e})}}}))])(Ma);function Va({children:e}){const{hasStickyAction:t,postType:n}=(0,a.useSelect)((e=>{var t;const n=e(xo).getCurrentPost();return{hasStickyAction:null!==(t=n._links?.["wp:action-sticky"])&&void 0!==t&&t,postType:e(xo).getCurrentPostType()}}),[]);return"post"===n&&t?e:null}function Ua(){const e=(0,a.useSelect)((e=>{var t;return null!==(t=e(xo).getEditedPostAttribute("sticky"))&&void 0!==t&&t}),[]),{editPost:t}=(0,a.useDispatch)(xo);return(0,C.createElement)(Va,null,(0,C.createElement)(Zo.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,d.__)("Stick to the top of the blog"),checked:e,onChange:()=>t({sticky:!e})}))}function Ha(){const[e,t]=(0,P.useState)(!1),{editPost:n,savePost:o}=(0,a.useDispatch)(xo),{isSaving:s,isPublished:r,isScheduled:i}=(0,a.useSelect)((e=>{const{isSavingPost:t,isCurrentPostPublished:n,isCurrentPostScheduled:o}=e(xo);return{isSaving:t(),isPublished:n(),isScheduled:o()}}),[]),l=s||!r&&!i;let c;r?c=(0,d.__)("Are you sure you want to unpublish this post?"):i&&(c=(0,d.__)("Are you sure you want to unschedule this post?"));return(0,C.createElement)(C.Fragment,null,(0,C.createElement)(Zo.Button,{__next40pxDefaultSize:!0,className:"editor-post-switch-to-draft",onClick:()=>{l||t(!0)},"aria-disabled":l,variant:"secondary",style:{flexGrow:"1",justifyContent:"center"}},(0,d.__)("Switch to draft")),(0,C.createElement)(Zo.__experimentalConfirmDialog,{isOpen:e,onConfirm:()=>{t(!1),n({status:"draft"}),o()},onCancel:()=>t(!1)},c))}function za(){const{syncStatus:e,postType:t}=(0,a.useSelect)((e=>{const{getEditedPostAttribute:t}=e(xo),n=t("meta");return{syncStatus:"unsynced"===n?.wp_pattern_sync_status?"unsynced":t("wp_pattern_sync_status"),postType:t("type")}}));return"wp_block"!==t?null:(0,C.createElement)(xr,{label:(0,d.__)("Sync status")},(0,C.createElement)("div",{className:"editor-post-sync-status__value"},"unsynced"===e?(0,d._x)("Not synced","Text that indicates that the pattern is not synchronized"):(0,d._x)("Synced","Text that indicates that the pattern is synchronized")))}const Ga=e=>e;const ja=function({taxonomyWrapper:e=Ga}){const{postType:t,taxonomies:n}=(0,a.useSelect)((e=>({postType:e(xo).getCurrentPostType(),taxonomies:e(p.store).getTaxonomies({per_page:-1})})),[]);return(null!=n?n:[]).filter((e=>e.types.includes(t)&&e.visibility?.show_ui)).map((t=>{const n=t.hierarchical?fa:aa;return(0,C.createElement)(P.Fragment,{key:`taxonomy-${t.slug}`},e((0,C.createElement)(n,{slug:t.slug}),t))}))};function Wa({children:e}){const t=(0,a.useSelect)((e=>{const t=e(xo).getCurrentPostType(),n=e(p.store).getTaxonomies({per_page:-1});return n?.some((e=>e.types.includes(t)))}),[]);return t?e:null}function $a({taxonomy:e,children:t}){const n=e?.slug,o=n?`taxonomy-panel-${n}`:"",{isEnabled:s,isOpened:r}=(0,a.useSelect)((e=>{const{isEditorPanelEnabled:t,isEditorPanelOpened:s}=e(xo);return{isEnabled:!!n&&t(o),isOpened:!!n&&s(o)}}),[o,n]),{toggleEditorPanelOpened:i}=(0,a.useDispatch)(xo);if(!s)return null;const l=e?.labels?.menu_name;return l?(0,C.createElement)(Zo.PanelBody,{title:l,opened:r,onToggle:()=>i(o)},t):null}const Ka=function(){return(0,C.createElement)(Wa,null,(0,C.createElement)(ja,{taxonomyWrapper:(e,t)=>(0,C.createElement)($a,{taxonomy:t},e)}))};var Za=n(4132);function Ya(){const e=(0,No.useInstanceId)(Ya),{content:t,blocks:n,type:o,id:s}=(0,a.useSelect)((e=>{const{getEditedEntityRecord:t}=e(p.store),{getCurrentPostType:n,getCurrentPostId:o}=e(xo),s=n(),r=o(),i=t("postType",s,r);return{content:i?.content,blocks:i?.blocks,type:s,id:r}}),[]),{editEntityRecord:r}=(0,a.useDispatch)(p.store),l=(0,P.useMemo)((()=>t instanceof Function?t({blocks:n}):n?(0,i.__unstableSerializeAndClean)(n):t),[t,n]);return(0,C.createElement)(C.Fragment,null,(0,C.createElement)(Zo.VisuallyHidden,{as:"label",htmlFor:`post-content-${e}`},(0,d.__)("Type text or HTML")),(0,C.createElement)(Za.A,{autoComplete:"off",dir:"auto",value:l,onChange:e=>{r("postType",o,s,{content:e.target.value,blocks:void 0,selection:void 0})},className:"editor-post-text-editor",id:`post-content-${e}`,placeholder:(0,d.__)("Start writing with text or HTML")}))}const qa=window.wp.dom,Qa="wp-block wp-block-post-title block-editor-block-list__block editor-post-title editor-post-title__input rich-text",Xa=/[\r\n]+/g;function Ja(e){const t=(0,P.useRef)(),{isCleanNewPost:n}=(0,a.useSelect)((e=>{const{isCleanNewPost:t}=e(xo);return{isCleanNewPost:t()}}),[]);return(0,P.useImperativeHandle)(e,(()=>({focus:()=>{t?.current?.focus()}}))),(0,P.useEffect)((()=>{if(!t.current)return;const{defaultView:e}=t.current.ownerDocument,{name:o,parent:s}=e,r="editor-canvas"===o?s.document:e.document,{activeElement:i,body:a}=r;!n||i&&a!==i||t.current.focus()}),[n]),{ref:t}}function el(){const{editPost:e}=(0,a.useDispatch)(xo),{title:t}=(0,a.useSelect)((e=>{const{getEditedPostAttribute:t}=e(xo);return{title:t("title")}}),[]);return{title:t,setTitle:function(t){e({title:t})}}}const tl=(0,P.forwardRef)((function(e,t){const{placeholder:n,hasFixedToolbar:o}=(0,a.useSelect)((e=>{const{getEditedPostAttribute:t}=e(xo),{getSettings:n}=e(m.store),{titlePlaceholder:o,hasFixedToolbar:s}=n();return{title:t("title"),placeholder:o,hasFixedToolbar:s}}),[]),[s,r]=(0,P.useState)(!1),{ref:l}=Ja(t),{title:c,setTitle:u}=el(),[p,g]=(0,P.useState)({}),{clearSelectedBlock:h,insertBlocks:_,insertDefaultBlock:f}=(0,a.useDispatch)(m.store);function E(e){_(e,0)}function b(){r(!1),g({})}const v=(0,Cs.decodeEntities)(n)||(0,d.__)("Add title"),{ref:y}=(0,is.__unstableUseRichText)({value:c,onChange:function(e){u(e.replace(Xa," "))},placeholder:v,selectionStart:p.start,selectionEnd:p.end,onSelectionChange(e,t){g((n=>{const{start:o,end:s}=n;return o===e&&s===t?n:{start:e,end:t}}))},__unstableDisableFormats:!1}),w=Ko()(Qa,{"is-selected":s,"has-fixed-toolbar":o});return(0,C.createElement)(Zs,{supportKeys:"title"},(0,C.createElement)("h1",{ref:(0,No.useMergeRefs)([y,l]),contentEditable:!0,className:w,"aria-label":v,role:"textbox","aria-multiline":"true",onFocus:function(){r(!0),h()},onBlur:b,onKeyDown:function(e){e.keyCode===es.ENTER&&(e.preventDefault(),f(void 0,void 0,0))},onKeyPress:b,onPaste:function(e){const t=e.clipboardData;let n="",o="";try{n=t.getData("text/plain"),o=t.getData("text/html")}catch(e){try{o=t.getData("Text")}catch(e){return}}window.console.log("Received HTML:\n\n",o),window.console.log("Received plain text:\n\n",n);const s=(0,i.pasteHandler)({HTML:o,plainText:n});if(e.preventDefault(),s.length)if("string"!=typeof s){const[e]=s;if(c||"core/heading"!==e.name&&"core/paragraph"!==e.name)E(s);else{const t=(0,qa.__unstableStripHTML)(e.attributes.content);u(t),E(s.slice(1))}}else{const e={...(0,is.create)({html:c}),...p},t=(0,qa.__unstableStripHTML)(s),n=(0,is.insert)(e,(0,is.create)({html:t}));u((0,is.toHTMLString)({value:n})),g({start:n.start,end:n.end})}}}))}));const nl=(0,P.forwardRef)((function(e,t){const{placeholder:n,hasFixedToolbar:o}=(0,a.useSelect)((e=>{const{getSettings:t}=e(m.store),{titlePlaceholder:n,hasFixedToolbar:o}=t();return{placeholder:n,hasFixedToolbar:o}}),[]),[s,r]=(0,P.useState)(!1),{title:i,setTitle:l}=el(),{ref:c}=Ja(t),u=Ko()(Qa,{"is-selected":s,"has-fixed-toolbar":o,"is-raw-text":!0}),p=(0,Cs.decodeEntities)(n)||(0,d.__)("Add title");return(0,C.createElement)(Zo.TextareaControl,{ref:c,value:i,onChange:function(e){l(e.replace(Xa," "))},onFocus:function(){r(!0)},onBlur:function(){r(!1)},label:n,className:u,placeholder:p,hideLabelFromVision:!0,autoComplete:"off",dir:"auto",rows:1,__nextHasNoMarginBottom:!0})}));function ol(){const{isNew:e,isDeleting:t,postId:n}=(0,a.useSelect)((e=>{const t=e(xo);return{isNew:t.isEditedPostNew(),isDeleting:t.isDeletingPost(),postId:t.getCurrentPostId()}}),[]),{trashPost:o}=(0,a.useDispatch)(xo),[s,r]=(0,P.useState)(!1);if(e||!n)return null;return(0,C.createElement)(C.Fragment,null,(0,C.createElement)(Zo.Button,{__next40pxDefaultSize:!0,className:"editor-post-trash",isDestructive:!0,variant:"secondary",isBusy:t,"aria-disabled":t,onClick:t?void 0:()=>r(!0)},(0,d.__)("Move to trash")),(0,C.createElement)(Zo.__experimentalConfirmDialog,{isOpen:s,onConfirm:()=>{r(!1),o()},onCancel:()=>r(!1)},(0,d.__)("Are you sure you want to move this post to the trash?")))}const sl=(0,a.withSelect)((e=>{const{isEditedPostNew:t,getCurrentPostId:n,getCurrentPostType:o}=e(xo),{getPostType:s,canUser:r}=e(p.store),i=n(),a=s(o()),l=a?.rest_base||"";return{isNew:t(),postId:i,canUserDelete:!(!i||!l)&&r("delete",l,i)}}))((function({isNew:e,postId:t,canUserDelete:n,children:o}){return!e&&t&&n?o:null}));function rl({onClose:e}){const{isEditable:t,postSlug:n,viewPostLabel:o,postLink:s,permalinkPrefix:r,permalinkSuffix:i}=(0,a.useSelect)((e=>{var t;const n=e(xo).getCurrentPost(),o=e(xo).getCurrentPostType(),s=e(p.store).getPostType(o),r=e(xo).getPermalinkParts(),i=null!==(t=n?._links?.["wp:action-publish"])&&void 0!==t&&t;return{isEditable:e(xo).isPermalinkEditable()&&i,postSlug:(0,w.safeDecodeURIComponent)(e(xo).getEditedPostSlug()),viewPostLabel:s?.labels.view_item,postLink:n.link,permalinkPrefix:r?.prefix,permalinkSuffix:r?.suffix}}),[]),{editPost:l}=(0,a.useDispatch)(xo),[c,u]=(0,P.useState)(!1);return(0,C.createElement)("div",{className:"editor-post-url"},(0,C.createElement)(m.__experimentalInspectorPopoverHeader,{title:(0,d.__)("URL"),onClose:e}),t&&(0,C.createElement)(Zo.TextControl,{__nextHasNoMarginBottom:!0,label:(0,d.__)("Permalink"),value:c?"":n,autoComplete:"off",spellCheck:"false",help:(0,C.createElement)(C.Fragment,null,(0,d.__)("The last part of the URL.")," ",(0,C.createElement)(Zo.ExternalLink,{href:(0,d.__)("https://wordpress.org/documentation/article/page-post-settings-sidebar/#permalink")},(0,d.__)("Learn more."))),onChange:e=>{l({slug:e}),e?c&&u(!1):c||u(!0)},onBlur:e=>{l({slug:(0,w.cleanForSlug)(e.target.value)}),c&&u(!1)}}),t&&(0,C.createElement)("h3",{className:"editor-post-url__link-label"},null!=o?o:(0,d.__)("View post")),(0,C.createElement)("p",null,(0,C.createElement)(Zo.ExternalLink,{className:"editor-post-url__link",href:s,target:"_blank"},t?(0,C.createElement)(C.Fragment,null,(0,C.createElement)("span",{className:"editor-post-url__link-prefix"},r),(0,C.createElement)("span",{className:"editor-post-url__link-slug"},n),(0,C.createElement)("span",{className:"editor-post-url__link-suffix"},i)):s)))}function il({children:e}){const t=(0,a.useSelect)((e=>{const t=e(xo).getCurrentPostType(),n=e(p.store).getPostType(t);if(!n?.viewable)return!1;if(!e(xo).getCurrentPost().link)return!1;return!!e(xo).getPermalinkParts()}),[]);return t?e:null}function al(){return ll()}function ll(){const e=(0,a.useSelect)((e=>e(xo).getPermalink()),[]);return(0,w.filterURLForDisplay)((0,w.safeDecodeURIComponent)(e))}function cl(){const[e,t]=(0,P.useState)(null),n=(0,P.useMemo)((()=>({anchor:e,placement:"bottom-end"})),[e]);return(0,C.createElement)(il,null,(0,C.createElement)(xr,{label:(0,d.__)("URL"),ref:t},(0,C.createElement)(Zo.Dropdown,{popoverProps:n,className:"editor-post-url__panel-dropdown",contentClassName:"editor-post-url__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,C.createElement)(ul,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,C.createElement)(rl,{onClose:e})})))}function ul({isOpen:e,onClick:t}){const n=ll();return(0,C.createElement)(Zo.Button,{__next40pxDefaultSize:!0,className:"editor-post-url__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,d.sprintf)((0,d.__)("Change URL: %s"),n),onClick:t},n)}function dl({render:e}){return e({canEdit:(0,a.useSelect)((e=>{var t;return null!==(t=e(xo).getCurrentPost()._links?.["wp:action-publish"])&&void 0!==t&&t}))})}const pl=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),ml=window.wp.wordcount;function gl(){const e=(0,a.useSelect)((e=>e(xo).getEditedPostAttribute("content")),[]),t=(0,d._x)("words","Word count type. Do not translate!");return(0,C.createElement)("span",{className:"word-count"},(0,ml.count)(e,t))}const hl=189;function _l(){const e=(0,a.useSelect)((e=>e(xo).getEditedPostAttribute("content")),[]),t=(0,d._x)("words","Word count type. Do not translate!"),n=Math.round((0,ml.count)(e,t)/hl),o=0===n?(0,P.createInterpolateElement)((0,d.__)("<span>< 1</span> minute"),{span:(0,C.createElement)("span",null)}):(0,P.createInterpolateElement)((0,d.sprintf)((0,d._n)("<span>%d</span> minute","<span>%d</span> minutes",n),n),{span:(0,C.createElement)("span",null)});return(0,C.createElement)("span",{className:"time-to-read"},o)}function fl(){const e=(0,a.useSelect)((e=>e(xo).getEditedPostAttribute("content")),[]);return(0,ml.count)(e,"characters_including_spaces")}const El=function({hasOutlineItemsDisabled:e,onRequestClose:t}){const{headingCount:n,paragraphCount:o,numberOfBlocks:s}=(0,a.useSelect)((e=>{const{getGlobalBlockCount:t}=e(m.store);return{headingCount:t("core/heading"),paragraphCount:t("core/paragraph"),numberOfBlocks:t()}}),[]);return(0,C.createElement)(C.Fragment,null,(0,C.createElement)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":(0,d.__)("Document Statistics"),tabIndex:"0"},(0,C.createElement)("ul",{role:"list",className:"table-of-contents__counts"},(0,C.createElement)("li",{className:"table-of-contents__count"},(0,d.__)("Words"),(0,C.createElement)(gl,null)),(0,C.createElement)("li",{className:"table-of-contents__count"},(0,d.__)("Characters"),(0,C.createElement)("span",{className:"table-of-contents__number"},(0,C.createElement)(fl,null))),(0,C.createElement)("li",{className:"table-of-contents__count"},(0,d.__)("Time to read"),(0,C.createElement)(_l,null)),(0,C.createElement)("li",{className:"table-of-contents__count"},(0,d.__)("Headings"),(0,C.createElement)("span",{className:"table-of-contents__number"},n)),(0,C.createElement)("li",{className:"table-of-contents__count"},(0,d.__)("Paragraphs"),(0,C.createElement)("span",{className:"table-of-contents__number"},o)),(0,C.createElement)("li",{className:"table-of-contents__count"},(0,d.__)("Blocks"),(0,C.createElement)("span",{className:"table-of-contents__number"},s)))),n>0&&(0,C.createElement)(C.Fragment,null,(0,C.createElement)("hr",null),(0,C.createElement)("h2",{className:"table-of-contents__title"},(0,d.__)("Document Outline")),(0,C.createElement)(hs,{onSelect:t,hasOutlineItemsDisabled:e})))};const bl=(0,P.forwardRef)((function({hasOutlineItemsDisabled:e,repositionDropdown:t,...n},o){const s=(0,a.useSelect)((e=>!!e(m.store).getBlockCount()),[]);return(0,C.createElement)(Zo.Dropdown,{popoverProps:{placement:t?"right":"bottom"},className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:({isOpen:e,onToggle:t})=>(0,C.createElement)(Zo.Button,{...n,ref:o,onClick:s?t:void 0,icon:pl,"aria-expanded":e,"aria-haspopup":"true",label:(0,d.__)("Details"),tooltipPosition:"bottom","aria-disabled":!s}),renderContent:({onClose:t})=>(0,C.createElement)(El,{onRequestClose:t,hasOutlineItemsDisabled:e})})}));function vl(){const{__experimentalGetDirtyEntityRecords:e}=(0,a.useSelect)(p.store);return(0,P.useEffect)((()=>{const t=t=>{if(e().length>0)return t.returnValue=(0,d.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[e]),null}const yl=(0,No.createHigherOrderComponent)((e=>(0,a.withRegistry)((t=>{const{useSubRegistry:n=!0,registry:o,...s}=t;if(!n)return(0,C.createElement)(e,{...s});const[r,i]=(0,P.useState)(null);return(0,P.useEffect)((()=>{const e=(0,a.createRegistry)({"core/block-editor":m.storeConfig},o);e.registerStore("core/editor",To),i(e)}),[o]),r?(0,C.createElement)(a.RegistryProvider,{value:r},(0,C.createElement)(e,{...s})):null}))),"withRegistryProvider"),wl=(e,t)=>`<a ${kl(e)}>${t}</a>`,kl=e=>`href="${e}" target="_blank" rel="noreferrer noopener"`,Sl=e=>{const{title:t,foreign_landing_url:n,creator:o,creator_url:s,license:r,license_version:i,license_url:a}=e,l=((e,t)=>{let n=e.trim();return"pdm"!==e&&(n=e.toUpperCase().replace("SAMPLING","Sampling")),t&&(n+=` ${t}`),["pdm","cc0"].includes(e)||(n=`CC ${n}`),n})(r,i),c=(0,Cs.decodeEntities)(o);let u;return u=c?t?(0,d.sprintf)((0,d._x)('"%1$s" by %2$s/ %3$s',"caption"),wl(n,(0,Cs.decodeEntities)(t)),s?wl(s,c):c,a?wl(`${a}?ref=openverse`,l):l):(0,d.sprintf)((0,d._x)("<a %1$s>Work</a> by %2$s/ %3$s","caption"),kl(n),s?wl(s,c):c,a?wl(`${a}?ref=openverse`,l):l):t?(0,d.sprintf)((0,d._x)('"%1$s"/ %2$s',"caption"),wl(n,(0,Cs.decodeEntities)(t)),a?wl(`${a}?ref=openverse`,l):l):(0,d.sprintf)((0,d._x)("<a %1$s>Work</a>/ %2$s","caption"),kl(n),a?wl(`${a}?ref=openverse`,l):l),u.replace(/\s{2}/g," ")},Pl=async(e={})=>(await(0,a.resolveSelect)(p.store).getMediaItems({...e,orderBy:e?.search?"relevance":"date"})).map((e=>({...e,alt:e.alt_text,url:e.source_url,previewUrl:e.media_details?.sizes?.medium?.source_url,caption:e.caption?.raw}))),Cl=[{name:"images",labels:{name:(0,d.__)("Images"),search_items:(0,d.__)("Search images")},mediaType:"image",fetch:async(e={})=>Pl({...e,media_type:"image"})},{name:"videos",labels:{name:(0,d.__)("Videos"),search_items:(0,d.__)("Search videos")},mediaType:"video",fetch:async(e={})=>Pl({...e,media_type:"video"})},{name:"audio",labels:{name:(0,d.__)("Audio"),search_items:(0,d.__)("Search audio")},mediaType:"audio",fetch:async(e={})=>Pl({...e,media_type:"audio"})},{name:"openverse",labels:{name:(0,d.__)("Openverse"),search_items:(0,d.__)("Search Openverse")},mediaType:"image",async fetch(e={}){const t={...e,mature:!1,excluded_source:"flickr,inaturalist,wikimedia",license:"pdm,cc0"},n={per_page:"page_size",search:"q"},o=new URL("https://api.openverse.engineering/v1/images/");Object.entries(t).forEach((([e,t])=>{const s=n[e]||e;o.searchParams.set(s,t)}));const s=await window.fetch(o,{headers:{"User-Agent":"WordPress/inserter-media-fetch"}});return(await s.json()).results.map((e=>({...e,title:e.title?.toLowerCase().startsWith("file:")?e.title.slice(5):e.title,sourceId:e.id,id:void 0,caption:Sl(e),previewUrl:e.thumbnail})))},getReportUrl:({sourceId:e})=>`https://wordpress.org/openverse/image/${e}/report/`,isExternalResource:!0}],Tl=window.wp.mediaUtils,xl=()=>{};function Bl({additionalData:e={},allowedTypes:t,filesList:n,maxUploadFileSize:o,onError:s=xl,onFileChange:r}){const{getCurrentPost:i,getEditorSettings:l}=(0,a.select)(xo),c=l().allowedMimeTypes;o=o||l().maxUploadFileSize;const u=i(),d="number"==typeof u?.id?u.id:u?.wp_id,p=d?{post:d}:{};(0,Tl.uploadMedia)({allowedTypes:t,filesList:n,onFileChange:r,additionalData:{...p,...e},maxUploadFileSize:o,onError:({message:e})=>s(e),wpAllowedMimeTypes:c})}const Il=[],Nl=["__experimentalBlockDirectory","__experimentalDiscussionSettings","__experimentalFeatures","__experimentalGlobalStylesBaseStyles","__experimentalPreferredStyleVariations","__unstableGalleryWithImageBlocks","alignWide","blockInspectorTabs","allowedMimeTypes","bodyPlaceholder","canLockBlocks","capabilities","clearBlockSelection","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","disableCustomSpacingSizes","disableCustomGradients","disableLayoutStyles","enableCustomLineHeight","enableCustomSpacing","enableCustomUnits","enableOpenverseMediaCategory","fontSizes","gradients","generateAnchors","onNavigateToEntityRecord","hasInlineToolbar","imageDefaultSize","imageDimensions","imageEditing","imageSizes","isRTL","locale","maxWidth","onUpdateDefaultBlockStyles","postContentAttributes","postsPerPage","readOnly","styles","titlePlaceholder","supportsLayout","widgetTypesToHideFromLegacyWidgetBlock","__unstableHasCustomAppender","__unstableIsPreviewMode","__unstableResolvedAssets","__unstableIsBlockBasedTheme","__experimentalArchiveTitleTypeLabel","__experimentalArchiveTitleNameLabel"];const Dl=function(e,t,n){var o,s;const r=(0,No.useViewportMatch)("medium"),{allowRightClickOverrides:l,blockTypes:c,focusMode:g,hasFixedToolbar:h,isDistractionFree:_,keepCaretInsideBlock:f,reusableBlocks:E,hasUploadPermissions:b,hiddenBlockTypes:v,canUseUnfilteredHTML:y,userCanCreatePages:w,pageOnFront:k,pageForPosts:S,userPatternCategories:C,restBlockPatternCategories:T}=(0,a.useSelect)((e=>{var o;const s="web"===P.Platform.OS,{canUser:a,getRawEntityRecord:l,getEntityRecord:c,getUserPatternCategories:u,getEntityRecords:d,getBlockPatternCategories:m}=e(p.store),{get:g}=e(B.store),{getBlockTypes:h}=e(i.store),_=a("read","settings")?c("root","site"):void 0;return{allowRightClickOverrides:g("core","allowRightClickOverrides"),blockTypes:h(),canUseUnfilteredHTML:l("postType",t,n)?._links?.hasOwnProperty("wp:action-unfiltered-html"),focusMode:g("core","focusMode"),hasFixedToolbar:g("core","fixedToolbar")||!r,hiddenBlockTypes:g("core","hiddenBlockTypes"),isDistractionFree:g("core","distractionFree"),keepCaretInsideBlock:g("core","keepCaretInsideBlock"),reusableBlocks:s?d("postType","wp_block",{per_page:-1}):Il,hasUploadPermissions:null===(o=a("create","media"))||void 0===o||o,userCanCreatePages:a("create","pages"),pageOnFront:_?.page_on_front,pageForPosts:_?.page_for_posts,userPatternCategories:u(),restBlockPatternCategories:m()}}),[t,n,r]),x=null!==(o=e.__experimentalAdditionalBlockPatterns)&&void 0!==o?o:e.__experimentalBlockPatterns,I=null!==(s=e.__experimentalAdditionalBlockPatternCategories)&&void 0!==s?s:e.__experimentalBlockPatternCategories,N=(0,P.useMemo)((()=>[...x||[]].filter((({postTypes:e})=>!e||Array.isArray(e)&&e.includes(t)))),[x,t]),D=(0,P.useMemo)((()=>[...I||[],...T||[]].filter(((e,t,n)=>t===n.findIndex((t=>e.name===t.name))))),[I,T]),{undo:A,setIsInserterOpened:R}=(0,a.useDispatch)(xo),{saveEntityRecord:O}=(0,a.useDispatch)(p.store),L=(0,P.useCallback)((e=>w?O("postType","page",e):Promise.reject({message:(0,d.__)("You do not have permission to create Pages.")})),[O,w]),M=(0,P.useMemo)((()=>{if(v&&v.length>0){return(!0===e.allowedBlockTypes?c.map((({name:e})=>e)):e.allowedBlockTypes||[]).filter((e=>!v.includes(e)))}return e.allowedBlockTypes}),[e.allowedBlockTypes,v,c]),F=!1===e.focusMode;return(0,P.useMemo)((()=>({...Object.fromEntries(Object.entries(e).filter((([e])=>Nl.includes(e)))),allowedBlockTypes:M,allowRightClickOverrides:l,focusMode:g&&!F,hasFixedToolbar:h,isDistractionFree:_,keepCaretInsideBlock:f,mediaUpload:b?Bl:void 0,__experimentalBlockPatterns:N,[u(m.privateApis).selectBlockPatternsKey]:e=>u(e(p.store)).getBlockPatternsForPostType(t),__experimentalReusableBlocks:E,__experimentalBlockPatternCategories:D,__experimentalUserPatternCategories:C,__experimentalFetchLinkSuggestions:(t,n)=>(0,p.__experimentalFetchLinkSuggestions)(t,n,e),inserterMediaCategories:Cl,__experimentalFetchRichUrlData:p.__experimentalFetchUrlData,__experimentalCanUserUseUnfilteredHTML:y,__experimentalUndo:A,outlineMode:"wp_template"===t,__experimentalCreatePageEntity:L,__experimentalUserCanCreatePages:w,pageOnFront:k,pageForPosts:S,__experimentalPreferPatternsOnRoot:"wp_template"===t,templateLock:"wp_navigation"===t?"insert":e.templateLock,template:"wp_navigation"===t?[["core/navigation",{},[]]]:e.template,__experimentalSetIsInserterOpened:R})),[M,l,g,F,h,_,f,e,b,E,C,N,D,y,A,L,w,k,S,t,R])},Al=["core/post-title","core/post-featured-image","core/post-content"];function Rl(){!function(){const e=(0,a.useSelect)((e=>{const{getBlocksByName:t,getBlockParents:n,getBlockName:o}=e(m.store);return t(Al).filter((e=>n(e).every((e=>{const t=o(e);return"core/query"!==t&&!Al.includes(t)}))))}),[]),{setBlockEditingMode:t,unsetBlockEditingMode:n}=(0,a.useDispatch)(m.store);(0,P.useEffect)((()=>{t("","disabled");for(const n of e)t(n,"contentOnly");return()=>{n("");for(const t of e)n(t)}}),[e,t,n])}()}function Ol(){const e=(0,a.useSelect)((e=>e(m.store).getBlockOrder()?.[0]),[]),{setBlockEditingMode:t,unsetBlockEditingMode:n}=(0,a.useDispatch)(m.store);(0,P.useEffect)((()=>{if(e)return t(e,"contentOnly"),()=>{n(e)}}),[e,n,t])}const{ExperimentalBlockEditorProvider:Ll}=u(m.privateApis),{PatternsMenuItems:Ml}=u(Ro.privateApis),Fl=()=>{},Vl=["wp_block","wp_template","wp_navigation","wp_template_part"];const Ul=yl((({post:e,settings:t,recovery:n,initialEdits:o,children:s,BlockEditorProviderComponent:r=Ll,__unstableTemplate:l})=>{const c=(0,a.useSelect)((e=>e(xo).getRenderingMode()),[]),g=!!l&&"post-only"!==c,h=g?l:e,_=(0,P.useMemo)((()=>({...!Vl.includes(h.type)||g?{postId:e.id,postType:e.type}:{},templateSlug:"wp_template"===h.type?h.slug:void 0})),[g,e.id,e.type,h.type,h.slug]),{editorSettings:f,selection:E,isReady:b}=(0,a.useSelect)((e=>{const{getEditorSettings:t,getEditorSelection:n,__unstableIsEditorReady:o}=e(xo);return{editorSettings:t(),isReady:o(),selection:n()}}),[]),{id:v,type:y}=h,w=Dl(f,y,v),[k,S,T]=function(e,t,n){const o="post-only"!==n&&t?"template":"post",[s,r,a]=(0,p.useEntityBlockEditor)("postType",e.type,{id:e.id}),[l,c,u]=(0,p.useEntityBlockEditor)("postType",t?.type,{id:t?.id}),d=(0,P.useMemo)((()=>{if("wp_navigation"===e.type)return[(0,i.createBlock)("core/navigation",{ref:e.id,templateLock:!1})]}),[e.type,e.id]),m=(0,P.useMemo)((()=>d||("template"===o?l:s)),[d,o,l,s]);return t&&"template-locked"===n||"wp_navigation"===e.type?[m,Fl,Fl]:[m,"post"===o?r:c,"post"===o?a:u]}(e,l,c),{updatePostLock:x,setupEditor:B,updateEditorSettings:I,setCurrentTemplateId:N,setEditedPost:D,setRenderingMode:A}=u((0,a.useDispatch)(xo)),{createWarningNotice:R}=(0,a.useDispatch)(rn.store);return(0,P.useLayoutEffect)((()=>{n||(x(t.postLock),B(e,o,t.template),t.autosave&&R((0,d.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:(0,d.__)("View the autosave"),url:t.autosave.editLink}]}))}),[]),(0,P.useEffect)((()=>{D(e.type,e.id)}),[e.type,e.id,D]),(0,P.useEffect)((()=>{I(t)}),[t,I]),(0,P.useEffect)((()=>{N(l?.id)}),[l?.id,N]),(0,P.useEffect)((()=>{var e;A(null!==(e=t.defaultRenderingMode)&&void 0!==e?e:"post-only")}),[t.defaultRenderingMode,A]),b?(0,C.createElement)(p.EntityProvider,{kind:"root",type:"site"},(0,C.createElement)(p.EntityProvider,{kind:"postType",type:e.type,id:e.id},(0,C.createElement)(m.BlockContextProvider,{value:_},(0,C.createElement)(r,{value:k,onChange:T,onInput:S,selection:E,settings:w,useSubRegistry:!1},s,(0,C.createElement)(Ml,null),"template-locked"===c&&(0,C.createElement)(Rl,null),"wp_navigation"===y&&(0,C.createElement)(Ol,null))))):null}));const Hl=function(e){return(0,C.createElement)(Ul,{...e,BlockEditorProviderComponent:m.BlockEditorProvider},e.children)},zl=window.wp.serverSideRender;var Gl=n.n(zl);function jl(e,t,n=[]){const o=(0,P.forwardRef)(((n,o)=>(S()("wp.editor."+e,{since:"5.3",alternative:"wp.blockEditor."+e,version:"6.2"}),(0,C.createElement)(t,{ref:o,...n}))));return n.forEach((n=>{o[n]=jl(e+"."+n,t[n])})),o}function Wl(e,t){return(...n)=>(S()("wp.editor."+e,{since:"5.3",alternative:"wp.blockEditor."+e,version:"6.2"}),t(...n))}const $l=jl("RichText",m.RichText,["Content"]);$l.isEmpty=Wl("RichText.isEmpty",m.RichText.isEmpty);const Kl=jl("Autocomplete",m.Autocomplete),Zl=jl("AlignmentToolbar",m.AlignmentToolbar),Yl=jl("BlockAlignmentToolbar",m.BlockAlignmentToolbar),ql=jl("BlockControls",m.BlockControls,["Slot"]),Ql=jl("BlockEdit",m.BlockEdit),Xl=jl("BlockEditorKeyboardShortcuts",m.BlockEditorKeyboardShortcuts),Jl=jl("BlockFormatControls",m.BlockFormatControls,["Slot"]),ec=jl("BlockIcon",m.BlockIcon),tc=jl("BlockInspector",m.BlockInspector),nc=jl("BlockList",m.BlockList),oc=jl("BlockMover",m.BlockMover),sc=jl("BlockNavigationDropdown",m.BlockNavigationDropdown),rc=jl("BlockSelectionClearer",m.BlockSelectionClearer),ic=jl("BlockSettingsMenu",m.BlockSettingsMenu),ac=jl("BlockTitle",m.BlockTitle),lc=jl("BlockToolbar",m.BlockToolbar),cc=jl("ColorPalette",m.ColorPalette),uc=jl("ContrastChecker",m.ContrastChecker),dc=jl("CopyHandler",m.CopyHandler),pc=jl("DefaultBlockAppender",m.DefaultBlockAppender),mc=jl("FontSizePicker",m.FontSizePicker),gc=jl("Inserter",m.Inserter),hc=jl("InnerBlocks",m.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),_c=jl("InspectorAdvancedControls",m.InspectorAdvancedControls,["Slot"]),fc=jl("InspectorControls",m.InspectorControls,["Slot"]),Ec=jl("PanelColorSettings",m.PanelColorSettings),bc=jl("PlainText",m.PlainText),vc=jl("RichTextShortcut",m.RichTextShortcut),yc=jl("RichTextToolbarButton",m.RichTextToolbarButton),wc=jl("__unstableRichTextInputEvent",m.__unstableRichTextInputEvent),kc=jl("MediaPlaceholder",m.MediaPlaceholder),Sc=jl("MediaUpload",m.MediaUpload),Pc=jl("MediaUploadCheck",m.MediaUploadCheck),Cc=jl("MultiSelectScrollIntoView",m.MultiSelectScrollIntoView),Tc=jl("NavigableToolbar",m.NavigableToolbar),xc=jl("ObserveTyping",m.ObserveTyping),Bc=jl("SkipToSelectedBlock",m.SkipToSelectedBlock),Ic=jl("URLInput",m.URLInput),Nc=jl("URLInputButton",m.URLInputButton),Dc=jl("URLPopover",m.URLPopover),Ac=jl("Warning",m.Warning),Rc=jl("WritingFlow",m.WritingFlow),Oc=Wl("createCustomColorsHOC",m.createCustomColorsHOC),Lc=Wl("getColorClassName",m.getColorClassName),Mc=Wl("getColorObjectByAttributeValues",m.getColorObjectByAttributeValues),Fc=Wl("getColorObjectByColorValue",m.getColorObjectByColorValue),Vc=Wl("getFontSize",m.getFontSize),Uc=Wl("getFontSizeClass",m.getFontSizeClass),Hc=Wl("withColorContext",m.withColorContext),zc=Wl("withColors",m.withColors),Gc=Wl("withFontSizes",m.withFontSizes),jc=Go,Wc=Go;function $c(e){return S()("wp.editor.cleanForSlug",{since:"12.7",plugin:"Gutenberg",alternative:"wp.url.cleanForSlug"}),(0,w.cleanForSlug)(e)}function Kc({contentRef:e}){const{onNavigateToEntityRecord:t,templateId:n}=(0,a.useSelect)((e=>{const{getEditorSettings:t,getCurrentTemplateId:n}=e(xo);return{onNavigateToEntityRecord:t().onNavigateToEntityRecord,templateId:n()}}),[]),{getNotices:o}=(0,a.useSelect)(rn.store),{createInfoNotice:s,removeNotice:r}=(0,a.useDispatch)(rn.store),[i,l]=(0,P.useState)(!1),c=(0,P.useRef)(0);return(0,P.useEffect)((()=>{const i=async e=>{if(!e.target.classList.contains("is-root-container"))return;const r=o().some((e=>e.id===c.current));if(r)return;const{notice:i}=await s((0,d.__)("Edit your template to edit this block."),{isDismissible:!0,type:"snackbar",actions:[{label:(0,d.__)("Edit template"),onClick:()=>t({postId:n,postType:"wp_template"})}]});c.current=i.id},a=e=>{e.target.classList.contains("is-root-container")&&(c.current&&r(c.current),l(!0))},u=e.current;return u?.addEventListener("click",i),u?.addEventListener("dblclick",a),()=>{u?.removeEventListener("click",i),u?.removeEventListener("dblclick",a)}}),[c,e,o,s,t,n,r]),(0,C.createElement)(Zo.__experimentalConfirmDialog,{isOpen:i,confirmButtonText:(0,d.__)("Edit template"),onConfirm:()=>{l(!1),t({postId:n,postType:"wp_template"})},onCancel:()=>l(!1)},(0,d.__)("Edit your template to edit this block."))}const{LayoutStyle:Zc,useLayoutClasses:Yc,useLayoutStyles:qc,ExperimentalBlockCanvas:Qc,useFlashEditableBlocks:Xc}=u(m.privateApis),Jc=()=>{},eu=["wp_block","wp_template","wp_navigation","wp_template_part"];function tu(e){for(let t=0;t<e.length;t++){if("core/post-content"===e[t].name)return e[t].attributes;if(e[t].innerBlocks.length){const n=tu(e[t].innerBlocks);if(n)return n}}}function nu(e){for(let t=0;t<e.length;t++)if("core/post-content"===e[t].name)return!0;return!1}const ou=function({autoFocus:e,className:t,renderAppender:n,styles:o,disableIframe:s=!1,iframeProps:r,children:l}){const{renderingMode:c,postContentAttributes:u,editedPostTemplate:d={},wrapperBlockName:g,wrapperUniqueId:h,deviceType:_,showEditorPadding:f,isDesignPostType:E}=(0,a.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:n,getCurrentTemplateId:o,getEditorSettings:s,getRenderingMode:r,getDeviceType:i}=e(xo),{getPostType:a,canUser:l,getEditedEntityRecord:c}=e(p.store),u=n(),d=r();let m;"wp_block"===u?m="core/block":"post-only"===d&&(m="core/post-content");const g=s(),h=g.supportsTemplateMode,_=a(u),f=l("create","templates"),E=o(),b=E?c("postType","wp_template",E):void 0;return{renderingMode:d,postContentAttributes:g.postContentAttributes,isDesignPostType:eu.includes(u),editedPostTemplate:_?.viewable&&h&&f?b:void 0,wrapperBlockName:m,wrapperUniqueId:t(),deviceType:i(),showEditorPadding:!!g.onNavigateToPreviousEntityRecord}}),[]),{isCleanNewPost:b}=(0,a.useSelect)(xo),{hasRootPaddingAwareAlignments:v,themeHasDisabledLayoutStyles:y,themeSupportsLayout:w}=(0,a.useSelect)((e=>{const t=e(m.store).getSettings();return{themeHasDisabledLayoutStyles:t.disableLayoutStyles,themeSupportsLayout:t.supportsLayout,hasRootPaddingAwareAlignments:t.__experimentalFeatures?.useRootPaddingAwareAlignments}}),[]),k=(0,m.__experimentalUseResizeCanvas)(_),[S]=(0,m.useSettings)("layout"),T=(0,P.useMemo)((()=>"post-only"!==c||E?{type:"default"}:w?{...S,type:"constrained"}:{type:"default"}),[c,w,S,E]),x=(0,P.useMemo)((()=>{if(!d?.content&&!d?.blocks&&u)return u;if(d?.blocks)return tu(d?.blocks);const e="string"==typeof d?.content?d?.content:"";return tu((0,i.parse)(e))||{}}),[d?.content,d?.blocks,u]),B=(0,P.useMemo)((()=>{if(!d?.content&&!d?.blocks)return!1;if(d?.blocks)return nu(d?.blocks);const e="string"==typeof d?.content?d?.content:"";return nu((0,i.parse)(e))||!1}),[d?.content,d?.blocks]),{layout:I={},align:N=""}=x||{},D=Yc(x,"core/post-content"),A=Ko()({"is-layout-flow":!w},w&&D,N&&`align${N}`),R=qc(x,"core/post-content",".block-editor-block-list__layout.is-root-container"),O=(0,P.useMemo)((()=>I&&("constrained"===I?.type||I?.inherit||I?.contentSize||I?.wideSize)?{...S,...I,type:"constrained"}:{...S,...I,type:"default"}),[I?.type,I?.inherit,I?.contentSize,I?.wideSize,S]),L=u?O:T,M="default"!==L?.type||B?L:T,F=(0,m.__unstableUseTypingObserver)(),V=(0,P.useRef)();(0,P.useEffect)((()=>{e&&b()&&V?.current?.focus()}),[e,b]);const U=(0,P.useRef)(),H=(0,m.__unstableUseTypewriter)(),z=(0,No.useMergeRefs)([U,"post-only"===c?H:Jc,Xc({isEnabled:"template-locked"===c})]);return(0,C.createElement)(Qc,{shouldIframe:!s||["Tablet","Mobile"].includes(_),contentRef:z,styles:o,height:"100%",iframeProps:{className:Ko()("editor-canvas__iframe",{"has-editor-padding":f}),...r,style:{...r?.style,...k}}},w&&!y&&"post-only"===c&&!E&&(0,C.createElement)(C.Fragment,null,(0,C.createElement)(Zc,{selector:".editor-editor-canvas__post-title-wrapper",layout:T}),(0,C.createElement)(Zc,{selector:".block-editor-block-list__layout.is-root-container",layout:M}),N&&(0,C.createElement)(Zc,{css:".is-root-container.alignwide { max-width: var(--wp--style--global--wide-size); margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignwide:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: var(--wp--style--global--wide-size);}\n\t\t.is-root-container.alignfull { max-width: none; margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignfull:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: none;}"}),R&&(0,C.createElement)(Zc,{layout:O,css:R})),"post-only"===c&&!E&&(0,C.createElement)("div",{className:Ko()("editor-editor-canvas__post-title-wrapper","edit-post-visual-editor__post-title-wrapper",{"has-global-padding":v}),contentEditable:!1,ref:F,style:{marginTop:"4rem"}},(0,C.createElement)(tl,{ref:V})),(0,C.createElement)(m.RecursionProvider,{blockName:g,uniqueId:h},(0,C.createElement)(m.BlockList,{className:Ko()(t,"is-"+_.toLowerCase()+"-preview","post-only"!==c||E?"wp-site-blocks":`${A} wp-block-post-content`),layout:L,dropZoneElement:s?U.current:U.current?.parentNode,renderAppender:n,__unstableDisableDropZone:"template-locked"===c}),"template-locked"===c&&(0,C.createElement)(Kc,{contentRef:U})),l)},{PreferenceBaseOption:su}=u(B.privateApis),ru=(0,No.compose)((0,a.withSelect)(((e,{panelName:t})=>{const{isEditorPanelEnabled:n,isEditorPanelRemoved:o}=e(xo);return{isRemoved:o(t),isChecked:n(t)}})),(0,No.ifCondition)((({isRemoved:e})=>!e)),(0,a.withDispatch)(((e,{panelName:t})=>({onChange:()=>e(xo).toggleEditorPanelEnabled(t)}))))(su),{Fill:iu,Slot:au}=(0,Zo.createSlotFill)("EnablePluginDocumentSettingPanelOption"),lu=({label:e,panelName:t})=>(0,C.createElement)(iu,null,(0,C.createElement)(ru,{label:e,panelName:t}));lu.Slot=au;const cu=lu,uu=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})),du=(0,C.createElement)(T.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(T.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})),{useCanBlockToolbarBeFocused:pu}=u(m.privateApis),mu=e=>{e.preventDefault()};const gu=function({className:e,disableBlockTools:t=!1,children:n,listViewLabel:o=(0,d.__)("Document Overview")}){const s=(0,P.useRef)(),{setIsInserterOpened:r,setIsListViewOpened:i}=(0,a.useDispatch)(xo),{isDistractionFree:l,isInserterOpened:c,isListViewOpen:p,listViewShortcut:g,listViewToggleRef:h,hasFixedToolbar:_,showIconLabels:f}=(0,a.useSelect)((e=>{const{getSettings:t}=e(m.store),{get:n}=e(B.store),{isListViewOpened:o,getListViewToggleRef:s}=u(e(xo)),{getShortcutRepresentation:r}=e(zo.store);return{isInserterOpened:e(xo).isInserterOpened(),isListViewOpen:o(),listViewShortcut:r("core/editor/toggle-list-view"),listViewToggleRef:s(),hasFixedToolbar:t().hasFixedToolbar,showIconLabels:n("core","showIconLabels"),isDistractionFree:n("core","distractionFree")}}),[]),E=(0,No.useViewportMatch)("medium"),b=(0,No.useViewportMatch)("wide"),v=pu(),y=(0,d.__)("Document tools"),w=(0,P.useCallback)((()=>i(!p)),[i,p]),k=(0,P.useCallback)((()=>{c?(s.current.focus(),r(!1)):r(!0)}),[c,r]),S=(0,d._x)("Toggle block inserter","Generic label for block inserter button"),T=c?(0,d.__)("Close"):(0,d.__)("Add");return(0,C.createElement)(m.NavigableToolbar,{className:Ko()("editor-document-tools","edit-post-header-toolbar",e),"aria-label":y,shouldUseKeyboardFocusShortcut:!v,variant:"unstyled"},(0,C.createElement)("div",{className:"editor-document-tools__left"},!l&&(0,C.createElement)(Zo.ToolbarItem,{ref:s,as:Zo.Button,className:"editor-document-tools__inserter-toggle",variant:"primary",isPressed:c,onMouseDown:mu,onClick:k,disabled:t,icon:uu,label:f?T:S,showTooltip:!f,"aria-expanded":c}),(b||!f)&&(0,C.createElement)(C.Fragment,null,E&&!_&&(0,C.createElement)(Zo.ToolbarItem,{as:m.ToolSelector,showTooltip:!f,variant:f?"tertiary":void 0,disabled:t,size:"compact"}),(0,C.createElement)(Zo.ToolbarItem,{as:ys,showTooltip:!f,variant:f?"tertiary":void 0,size:"compact"}),(0,C.createElement)(Zo.ToolbarItem,{as:vs,showTooltip:!f,variant:f?"tertiary":void 0,size:"compact"}),!l&&(0,C.createElement)(Zo.ToolbarItem,{as:Zo.Button,className:"editor-document-tools__document-overview-toggle",icon:du,disabled:t,isPressed:p,label:o,onClick:w,shortcut:g,showTooltip:!f,variant:f?"tertiary":void 0,"aria-expanded":p,ref:h,size:"compact"})),n))},hu=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function _u(){return(0,C.createElement)(C.Fragment,null,(0,C.createElement)("div",{className:"editor-list-view-sidebar__outline"},(0,C.createElement)("div",null,(0,C.createElement)(Zo.__experimentalText,null,(0,d.__)("Characters:")),(0,C.createElement)(Zo.__experimentalText,null,(0,C.createElement)(fl,null))),(0,C.createElement)("div",null,(0,C.createElement)(Zo.__experimentalText,null,(0,d.__)("Words:")),(0,C.createElement)(gl,null)),(0,C.createElement)("div",null,(0,C.createElement)(Zo.__experimentalText,null,(0,d.__)("Time to read:")),(0,C.createElement)(_l,null))),(0,C.createElement)(hs,null))}const{Tabs:fu}=u(Zo.privateApis);const Eu=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));const bu=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"})),vu=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})),yu=(0,C.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(T.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}));const wu=function({blockTypes:e,value:t,onItemChange:n}){return(0,C.createElement)("ul",{className:"editor-block-manager__checklist"},e.map((e=>(0,C.createElement)("li",{key:e.name,className:"editor-block-manager__checklist-item"},(0,C.createElement)(Zo.CheckboxControl,{__nextHasNoMarginBottom:!0,label:e.title,checked:t.includes(e.name),onChange:(...t)=>n(e.name,...t)}),(0,C.createElement)(m.BlockIcon,{icon:e.icon})))))};const ku=function e({title:t,blockTypes:n}){const o=(0,No.useInstanceId)(e),{allowedBlockTypes:s,hiddenBlockTypes:r}=(0,a.useSelect)((e=>{const{getEditorSettings:t}=e(xo),{get:n}=e(B.store);return{allowedBlockTypes:t().allowedBlockTypes,hiddenBlockTypes:n("core","hiddenBlockTypes")}}),[]),i=(0,P.useMemo)((()=>!0===s?n:n.filter((({name:e})=>s?.includes(e)))),[s,n]),{showBlockTypes:l,hideBlockTypes:c}=u((0,a.useDispatch)(xo)),d=(0,P.useCallback)(((e,t)=>{t?l(e):c(e)}),[l,c]),p=(0,P.useCallback)((e=>{const t=n.map((({name:e})=>e));e?l(t):c(t)}),[n,l,c]);if(!i.length)return null;const m=i.map((({name:e})=>e)).filter((e=>!(null!=r?r:[]).includes(e))),g="editor-block-manager__category-title-"+o,h=m.length===i.length,_=!h&&m.length>0;return(0,C.createElement)("div",{role:"group","aria-labelledby":g,className:"editor-block-manager__category"},(0,C.createElement)(Zo.CheckboxControl,{__nextHasNoMarginBottom:!0,checked:h,onChange:p,className:"editor-block-manager__category-title",indeterminate:_,label:(0,C.createElement)("span",{id:g},t)}),(0,C.createElement)(wu,{blockTypes:i,value:m,onItemChange:d}))};const Su=(0,No.compose)([(0,a.withSelect)((e=>{var t;const{getBlockTypes:n,getCategories:o,hasBlockSupport:s,isMatchingSearchTerm:r}=e(i.store),{get:a}=e(B.store),l=n(),c=(null!==(t=a("core","hiddenBlockTypes"))&&void 0!==t?t:[]).filter((e=>l.some((t=>t.name===e)))),u=Array.isArray(c)&&c.length;return{blockTypes:l,categories:o(),hasBlockSupport:s,isMatchingSearchTerm:r,numberOfHiddenBlocks:u}})),(0,a.withDispatch)((e=>{const{showBlockTypes:t}=u(e(xo));return{enableAllBlockTypes:e=>{const n=e.map((({name:e})=>e));t(n)}}}))])((function({blockTypes:e,categories:t,hasBlockSupport:n,isMatchingSearchTerm:o,numberOfHiddenBlocks:s,enableAllBlockTypes:r}){const i=(0,No.useDebounce)(Qi.speak,500),[a,l]=(0,P.useState)("");return e=e.filter((e=>n(e,"inserter",!0)&&(!a||o(e,a))&&(!e.parent||e.parent.includes("core/post-content")))),(0,P.useEffect)((()=>{if(!a)return;const t=e.length,n=(0,d.sprintf)((0,d._n)("%d result found.","%d results found.",t),t);i(n)}),[e.length,a,i]),(0,C.createElement)("div",{className:"editor-block-manager__content"},!!s&&(0,C.createElement)("div",{className:"editor-block-manager__disabled-blocks-count"},(0,d.sprintf)((0,d._n)("%d block is hidden.","%d blocks are hidden.",s),s),(0,C.createElement)(Zo.Button,{variant:"link",onClick:()=>r(e)},(0,d.__)("Reset"))),(0,C.createElement)(Zo.SearchControl,{__nextHasNoMarginBottom:!0,label:(0,d.__)("Search for a block"),placeholder:(0,d.__)("Search for a block"),value:a,onChange:e=>l(e),className:"editor-block-manager__search"}),(0,C.createElement)("div",{tabIndex:"0",role:"region","aria-label":(0,d.__)("Available block types"),className:"editor-block-manager__results"},0===e.length&&(0,C.createElement)("p",{className:"editor-block-manager__no-results"},(0,d.__)("No blocks found.")),t.map((t=>(0,C.createElement)(ku,{key:t.slug,title:t.title,blockTypes:e.filter((e=>e.category===t.slug))}))),(0,C.createElement)(ku,{title:(0,d.__)("Uncategorized"),blockTypes:e.filter((({category:e})=>!e))})))})),{PreferencesModal:Pu,PreferencesModalTabs:Cu,PreferencesModalSection:Tu,PreferenceToggleControl:xu}=u(B.privateApis);const Bu={};c(Bu,{DocumentTools:gu,EditorCanvas:ou,ExperimentalEditorProvider:Ul,EnablePluginDocumentSettingPanelOption:cu,EntitiesSavedStatesExtensible:Fs,InserterSidebar:function(){const{insertionPoint:e,showMostUsedBlocks:t}=(0,a.useSelect)((e=>{const{getInsertionPoint:t}=u(e(xo)),{get:n}=e(B.store);return{insertionPoint:t(),showMostUsedBlocks:n("core","mostUsedBlocks")}}),[]),{setIsInserterOpened:n}=(0,a.useDispatch)(xo),o=(0,No.useViewportMatch)("medium","<"),s=o?"div":Zo.VisuallyHidden,[r,i]=(0,No.__experimentalUseDialog)({onClose:()=>n(!1),focusOnMount:null}),l=(0,P.useRef)();return(0,P.useEffect)((()=>{l.current.focusSearch()}),[]),(0,C.createElement)("div",{ref:r,...i,className:"editor-inserter-sidebar"},(0,C.createElement)(s,{className:"editor-inserter-sidebar__header"},(0,C.createElement)(Zo.Button,{icon:hu,label:(0,d.__)("Close block inserter"),onClick:()=>n(!1)})),(0,C.createElement)("div",{className:"editor-inserter-sidebar__content"},(0,C.createElement)(m.__experimentalLibrary,{showMostUsedBlocks:t,showInserterHelpPanel:!0,shouldFocusBlock:o,rootClientId:e.rootClientId,__experimentalInsertionIndex:e.insertionIndex,__experimentalFilterValue:e.filterValue,ref:l})))},ListViewSidebar:function(){const{setIsListViewOpened:e}=(0,a.useDispatch)(xo),{getListViewToggleRef:t}=u((0,a.useSelect)(xo)),n=(0,No.useFocusOnMount)("firstElement"),o=(0,P.useCallback)((()=>{e(!1),t().current?.focus()}),[t,e]),s=(0,P.useCallback)((e=>{e.keyCode!==es.ESCAPE||e.defaultPrevented||(e.preventDefault(),o())}),[o]),[r,i]=(0,P.useState)(null),[l,c]=(0,P.useState)("list-view"),p=(0,P.useRef)(),g=(0,P.useRef)(),h=(0,P.useRef)(),_=(0,No.useMergeRefs)([n,h,i]),f=(0,P.useCallback)((()=>{p.current.contains(p.current.ownerDocument.activeElement)?o():function(e){const t=qa.focus.tabbable.find(g.current)[0];if("list-view"===e){const e=qa.focus.tabbable.find(h.current)[0];(p.current.contains(e)?e:t).focus()}else t.focus()}(l)}),[o,l]);return(0,zo.useShortcut)("core/editor/toggle-list-view",f),(0,C.createElement)("div",{className:"editor-list-view-sidebar",onKeyDown:s,ref:p},(0,C.createElement)(fu,{onSelect:e=>c(e),selectOnMove:!1,initialTabId:"list-view"},(0,C.createElement)("div",{className:"edit-post-editor__document-overview-panel__header"},(0,C.createElement)(Zo.Button,{className:"editor-list-view-sidebar__close-button",icon:ki,label:(0,d.__)("Close"),onClick:o}),(0,C.createElement)(fu.TabList,{className:"editor-list-view-sidebar__tabs-tablist",ref:g},(0,C.createElement)(fu.Tab,{className:"editor-list-view-sidebar__tabs-tab",tabId:"list-view"},(0,d._x)("List View","Post overview")),(0,C.createElement)(fu.Tab,{className:"editor-list-view-sidebar__tabs-tab",tabId:"outline"},(0,d._x)("Outline","Post overview")))),(0,C.createElement)(fu.TabPanel,{ref:_,className:"editor-list-view-sidebar__tabs-tabpanel",tabId:"list-view",focusable:!1},(0,C.createElement)("div",{className:"editor-list-view-sidebar__list-view-container"},(0,C.createElement)("div",{className:"editor-list-view-sidebar__list-view-panel-content"},(0,C.createElement)(m.__experimentalListView,{dropZoneElement:r})))),(0,C.createElement)(fu.TabPanel,{className:"editor-list-view-sidebar__tabs-tabpanel",tabId:"outline",focusable:!1},(0,C.createElement)("div",{className:"editor-list-view-sidebar__list-view-container"},(0,C.createElement)(_u,null)))))},PluginPostExcerpt:Kr,PostPanelRow:xr,PostViewLink:function(){const{hasLoaded:e,permalink:t,isPublished:n,label:o,showIconLabels:s}=(0,a.useSelect)((e=>{const t=e(xo).getCurrentPostType(),n=e(p.store).getPostType(t),{get:o}=e(B.store);return{permalink:e(xo).getPermalink(),isPublished:e(xo).isCurrentPostPublished(),label:n?.labels.view_item,hasLoaded:!!n,showIconLabels:o("core","showIconLabels")}}),[]);return n&&t&&e?(0,C.createElement)(Zo.Button,{icon:Eu,label:o||(0,d.__)("View post"),href:t,target:"_blank",showTooltip:!s}):null},PreviewDropdown:function({forceIsAutosaveable:e,disabled:t}){const{deviceType:n,homeUrl:o,isTemplate:s,isViewable:r,showIconLabels:i}=(0,a.useSelect)((e=>{var t;const{getDeviceType:n,getCurrentPostType:o}=e(xo),{getUnstableBase:s,getPostType:r}=e(p.store),{get:i}=e(B.store),a=o();return{deviceType:n(),homeUrl:s()?.home,isTemplate:"wp_template"===a,isViewable:null!==(t=r(a)?.viewable)&&void 0!==t&&t,showIconLabels:i("core","showIconLabels")}}),[]),{setDeviceType:l}=(0,a.useDispatch)(xo);if((0,No.useViewportMatch)("medium","<"))return null;const c={className:"editor-preview-dropdown__toggle",size:"compact",showTooltip:!i,disabled:t,__experimentalIsFocusable:t},u={"aria-label":(0,d.__)("View options")},m={mobile:bu,tablet:vu,desktop:yu};return(0,C.createElement)(Zo.DropdownMenu,{className:"editor-preview-dropdown",popoverProps:{placement:"bottom-end"},toggleProps:c,menuProps:u,icon:m[n.toLowerCase()],label:(0,d.__)("View"),disableOpenOnArrowDown:t},(({onClose:t})=>(0,C.createElement)(C.Fragment,null,(0,C.createElement)(Zo.MenuGroup,null,(0,C.createElement)(Zo.MenuItem,{onClick:()=>l("Desktop"),icon:"Desktop"===n&&vr},(0,d.__)("Desktop")),(0,C.createElement)(Zo.MenuItem,{onClick:()=>l("Tablet"),icon:"Tablet"===n&&vr},(0,d.__)("Tablet")),(0,C.createElement)(Zo.MenuItem,{onClick:()=>l("Mobile"),icon:"Mobile"===n&&vr},(0,d.__)("Mobile"))),s&&(0,C.createElement)(Zo.MenuGroup,null,(0,C.createElement)(Zo.MenuItem,{href:o,target:"_blank",icon:Eu,onClick:t},(0,d.__)("View site"),(0,C.createElement)(Zo.VisuallyHidden,{as:"span"},(0,d.__)("(opens in a new tab)")))),r&&(0,C.createElement)(Zo.MenuGroup,null,(0,C.createElement)(Ei,{className:"editor-preview-dropdown__button-external",role:"menuitem",forceIsAutosaveable:e,textContent:(0,C.createElement)(C.Fragment,null,(0,d.__)("Preview in new tab"),(0,C.createElement)(Zo.Icon,{icon:Eu})),onPreview:t})))))},PreferencesModal:function({extraSections:e={},isActive:t,onClose:n}){const o=(0,No.useViewportMatch)("medium"),{showBlockBreadcrumbsOption:s}=(0,a.useSelect)((e=>{const{getEditorSettings:t}=e(xo),{get:n}=e(B.store),s=t().richEditingEnabled;return{showBlockBreadcrumbsOption:!n("core","distractionFree")&&o&&s}}),[o]),{setIsListViewOpened:r,setIsInserterOpened:i}=(0,a.useDispatch)(xo),{set:l}=(0,a.useDispatch)(B.store),c=()=>{l("core","fixedToolbar",!0),i(!1),r(!1)},u=()=>{l("core","distractionFree",!1)},p=(0,P.useMemo)((()=>[{name:"general",tabLabel:(0,d.__)("General"),content:(0,C.createElement)(C.Fragment,null,(0,C.createElement)(Tu,{title:(0,d.__)("Interface")},(0,C.createElement)(xu,{scope:"core",featureName:"showListViewByDefault",help:(0,d.__)("Opens the block list view sidebar by default."),label:(0,d.__)("Always open list view")}),s&&(0,C.createElement)(xu,{scope:"core",featureName:"showBlockBreadcrumbs",help:(0,d.__)("Display the block hierarchy trail at the bottom of the editor."),label:(0,d.__)("Show block breadcrumbs")}),(0,C.createElement)(xu,{scope:"core",featureName:"allowRightClickOverrides",help:(0,d.__)("Allows contextual list view menus via right-click, overriding browser defaults."),label:(0,d.__)("Allow right-click contextual menus")})),(0,C.createElement)(Tu,{title:(0,d.__)("Document settings"),description:(0,d.__)("Select what settings are shown in the document panel.")},(0,C.createElement)(cu.Slot,null),(0,C.createElement)(ja,{taxonomyWrapper:(e,t)=>(0,C.createElement)(ru,{label:t.labels.menu_name,panelName:`taxonomy-panel-${t.slug}`})}),(0,C.createElement)(Xr,null,(0,C.createElement)(ru,{label:(0,d.__)("Featured image"),panelName:"featured-image"})),(0,C.createElement)(Gr,null,(0,C.createElement)(ru,{label:(0,d.__)("Excerpt"),panelName:"post-excerpt"})),(0,C.createElement)(Zs,{supportKeys:["comments","trackbacks"]},(0,C.createElement)(ru,{label:(0,d.__)("Discussion"),panelName:"discussion-panel"})),(0,C.createElement)(Ks,null,(0,C.createElement)(ru,{label:(0,d.__)("Page attributes"),panelName:"page-attributes"}))),e?.general)},{name:"appearance",tabLabel:(0,d.__)("Appearance"),content:(0,C.createElement)(Tu,{title:(0,d.__)("Appearance"),description:(0,d.__)("Customize the editor interface to suit your needs.")},(0,C.createElement)(xu,{scope:"core",featureName:"fixedToolbar",onToggle:u,help:(0,d.__)("Access all block and document tools in a single place."),label:(0,d.__)("Top toolbar")}),(0,C.createElement)(xu,{scope:"core",featureName:"distractionFree",onToggle:c,help:(0,d.__)("Reduce visual distractions by hiding the toolbar and other elements to focus on writing."),label:(0,d.__)("Distraction free")}),(0,C.createElement)(xu,{scope:"core",featureName:"focusMode",help:(0,d.__)("Highlights the current block and fades other content."),label:(0,d.__)("Spotlight mode")}),e?.appearance)},{name:"accessibility",tabLabel:(0,d.__)("Accessibility"),content:(0,C.createElement)(C.Fragment,null,(0,C.createElement)(Tu,{title:(0,d.__)("Navigation"),description:(0,d.__)("Optimize the editing experience for enhanced control.")},(0,C.createElement)(xu,{scope:"core",featureName:"keepCaretInsideBlock",help:(0,d.__)("Keeps the text cursor within the block boundaries, aiding users with screen readers by preventing unintentional cursor movement outside the block."),label:(0,d.__)("Contain text cursor inside block")})),(0,C.createElement)(Tu,{title:(0,d.__)("Interface")},(0,C.createElement)(xu,{scope:"core",featureName:"showIconLabels",label:(0,d.__)("Show button text labels"),help:(0,d.__)("Show text instead of icons on buttons across the interface.")})))},{name:"blocks",tabLabel:(0,d.__)("Blocks"),content:(0,C.createElement)(C.Fragment,null,(0,C.createElement)(Tu,{title:(0,d.__)("Inserter")},(0,C.createElement)(xu,{scope:"core",featureName:"mostUsedBlocks",help:(0,d.__)("Adds a category with the most frequently used blocks in the inserter."),label:(0,d.__)("Show most used blocks")})),(0,C.createElement)(Tu,{title:(0,d.__)("Manage block visibility"),description:(0,d.__)("Disable blocks that you don't want to appear in the inserter. They can always be toggled back on later.")},(0,C.createElement)(Su,null)))}]),[o,s,e]);return t?(0,C.createElement)(Pu,{closeModal:n},(0,C.createElement)(Cu,{sections:p})):null},useBlockEditorSettings:Dl})})(),(window.wp=window.wp||{}).editor=o})(); \ No newline at end of file
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
+ *
+ * Copyright (c) 2014-2017, Jon Schlinkert.
+ * Released under the MIT License.
+ */
+function zd(e){return"[object Object]"===Object.prototype.toString.call(e)}function Hd(e){var t,s;return!1!==zd(e)&&(void 0===(t=e.constructor)||!1!==zd(s=t.prototype)&&!1!==s.hasOwnProperty("isPrototypeOf"))}const{GlobalStylesContext:Gd,cleanEmptyObject:$d}=h(g.privateApis);function Wd(e,t){return Ud()(e,t,{isMergeableObject:Hd})}function Kd(){const[e,t,s]=function(){const{globalStylesId:e,isReady:t,settings:s,styles:o,_links:n}=(0,d.useSelect)((e=>{const{getEditedEntityRecord:t,hasFinishedResolution:s}=e(b.store),o=e(b.store).__experimentalGetCurrentGlobalStylesId(),n=o?t("root","globalStyles",o):void 0;let i=!1;return s("__experimentalGetCurrentGlobalStylesId")&&(i=!o||s("getEditedEntityRecord",["root","globalStyles",o])),{globalStylesId:o,isReady:i,settings:n?.settings,styles:n?.styles,_links:n?._links}}),[]),{getEditedEntityRecord:i}=(0,d.useSelect)(b.store),{editEntityRecord:r}=(0,d.useDispatch)(b.store);return[t,(0,C.useMemo)((()=>({settings:null!=s?s:{},styles:null!=o?o:{},_links:null!=n?n:{}})),[s,o,n]),(0,C.useCallback)(((t,s={})=>{var o,n,a;const l=i("root","globalStyles",e),c={styles:null!==(o=l?.styles)&&void 0!==o?o:{},settings:null!==(n=l?.settings)&&void 0!==n?n:{},_links:null!==(a=l?._links)&&void 0!==a?a:{}},d="function"==typeof t?t(c):t;r("root","globalStyles",e,{styles:$d(d.styles)||{},settings:$d(d.settings)||{},_links:$d(d._links)||{}},s)}),[e,r,i])]}(),[o,n]=function(){const e=(0,d.useSelect)((e=>e(b.store).__experimentalGetCurrentThemeBaseGlobalStyles()),[]);return[!!e,e]}(),i=(0,C.useMemo)((()=>n&&t?Wd(n,t):{}),[t,n]);return(0,C.useMemo)((()=>({isReady:e&&o,user:t,base:n,merged:i,setUserConfig:s})),[i,t,n,s,e,o])}const Zd=[],Yd={};function qd(e){var t;return null!==(t=e(b.store).getEntityRecords("postType","wp_block",{per_page:-1}))&&void 0!==t?t:Zd}const Qd=["__experimentalBlockDirectory","__experimentalDiscussionSettings","__experimentalFeatures","__experimentalGlobalStylesBaseStyles","__unstableGalleryWithImageBlocks","alignWide","blockInspectorTabs","allowedMimeTypes","bodyPlaceholder","canLockBlocks","capabilities","clearBlockSelection","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","disableCustomSpacingSizes","disableCustomGradients","disableLayoutStyles","enableCustomLineHeight","enableCustomSpacing","enableCustomUnits","enableOpenverseMediaCategory","fontSizes","gradients","generateAnchors","onNavigateToEntityRecord","imageDefaultSize","imageDimensions","imageEditing","imageSizes","isRTL","locale","maxWidth","postContentAttributes","postsPerPage","readOnly","sectionRootClientId","styles","titlePlaceholder","supportsLayout","widgetTypesToHideFromLegacyWidgetBlock","__unstableHasCustomAppender","__unstableIsPreviewMode","__unstableResolvedAssets","__unstableIsBlockBasedTheme","__experimentalArchiveTitleTypeLabel","__experimentalArchiveTitleNameLabel"],{globalStylesDataKey:Xd,selectBlockPatternsKey:Jd,reusableBlocksSelectKey:eu}=h(g.privateApis);const tu=function(e,t,s,o){var n,i,r;const a=(0,pn.useViewportMatch)("medium"),{allowRightClickOverrides:l,blockTypes:u,focusMode:_,hasFixedToolbar:f,isDistractionFree:y,keepCaretInsideBlock:x,hasUploadPermissions:v,hiddenBlockTypes:w,canUseUnfilteredHTML:S,userCanCreatePages:k,pageOnFront:P,pageForPosts:j,userPatternCategories:T,restBlockPatternCategories:E,sectionRootClientId:I}=(0,d.useSelect)((e=>{var n;const{canUser:i,getRawEntityRecord:r,getEntityRecord:l,getUserPatternCategories:d,getBlockPatternCategories:u}=e(b.store),{get:p}=e(B.store),{getBlockTypes:h}=e(c.store),{getBlocksByName:m,getBlockAttributes:_}=e(g.store),f=i("read","settings")?l("root","site"):void 0;return{allowRightClickOverrides:p("core","allowRightClickOverrides"),blockTypes:h(),canUseUnfilteredHTML:r("postType",t,s)?._links?.hasOwnProperty("wp:action-unfiltered-html"),focusMode:p("core","focusMode"),hasFixedToolbar:p("core","fixedToolbar")||!a,hiddenBlockTypes:p("core","hiddenBlockTypes"),isDistractionFree:p("core","distractionFree"),keepCaretInsideBlock:p("core","keepCaretInsideBlock"),hasUploadPermissions:null===(n=i("create","media"))||void 0===n||n,userCanCreatePages:i("create","pages"),pageOnFront:f?.page_on_front,pageForPosts:f?.page_for_posts,userPatternCategories:d(),restBlockPatternCategories:u(),sectionRootClientId:"template-locked"===o?null!==(x=m("core/post-content")?.[0])&&void 0!==x?x:"":null!==(y=m("core/group").find((e=>"main"===_(e)?.tagName)))&&void 0!==y?y:""};var y,x}),[t,s,a,o]),{merged:N}=Kd(),A=null!==(n=N.styles)&&void 0!==n?n:Yd,D=null!==(i=e.__experimentalAdditionalBlockPatterns)&&void 0!==i?i:e.__experimentalBlockPatterns,R=null!==(r=e.__experimentalAdditionalBlockPatternCategories)&&void 0!==r?r:e.__experimentalBlockPatternCategories,M=(0,C.useMemo)((()=>[...D||[]].filter((({postTypes:e})=>!e||Array.isArray(e)&&e.includes(t)))),[D,t]),O=(0,C.useMemo)((()=>[...R||[],...E||[]].filter(((e,t,s)=>t===s.findIndex((t=>e.name===t.name))))),[R,E]),{undo:L,setIsInserterOpened:F}=(0,d.useDispatch)(cn),{saveEntityRecord:V}=(0,d.useDispatch)(b.store),U=(0,C.useCallback)((e=>k?V("postType","page",e):Promise.reject({message:(0,m.__)("You do not have permission to create Pages.")})),[V,k]),z=(0,C.useMemo)((()=>{if(w&&w.length>0){return(!0===e.allowedBlockTypes?u.map((({name:e})=>e)):e.allowedBlockTypes||[]).filter((e=>!w.includes(e)))}return e.allowedBlockTypes}),[e.allowedBlockTypes,w,u]),H=!1===e.focusMode;return(0,C.useMemo)((()=>{const s={...Object.fromEntries(Object.entries(e).filter((([e])=>Qd.includes(e)))),[Xd]:A,allowedBlockTypes:z,allowRightClickOverrides:l,focusMode:_&&!H,hasFixedToolbar:f,isDistractionFree:y,keepCaretInsideBlock:x,mediaUpload:v?Fd:void 0,__experimentalBlockPatterns:M,[Jd]:e=>{const{hasFinishedResolution:s,getBlockPatternsForPostType:o}=h(e(b.store)),n=o(t);return s("getBlockPatterns")?n:void 0},[eu]:qd,__experimentalBlockPatternCategories:O,__experimentalUserPatternCategories:T,__experimentalFetchLinkSuggestions:(t,s)=>(0,b.__experimentalFetchLinkSuggestions)(t,s,e),inserterMediaCategories:Od,__experimentalFetchRichUrlData:b.__experimentalFetchUrlData,__experimentalCanUserUseUnfilteredHTML:S,__experimentalUndo:L,outlineMode:"wp_template"===t,__experimentalCreatePageEntity:U,__experimentalUserCanCreatePages:k,pageOnFront:P,pageForPosts:j,__experimentalPreferPatternsOnRoot:"wp_template"===t,templateLock:"wp_navigation"===t?"insert":e.templateLock,template:"wp_navigation"===t?[["core/navigation",{},[]]]:e.template,__experimentalSetIsInserterOpened:F};return p(s,{sectionRootClientId:I}),s}),[z,l,_,H,f,y,x,e,v,T,M,O,S,L,U,k,P,j,t,F,I,A])},su=["core/post-title","core/post-featured-image","core/post-content","core/template-part"];function ou(){const e=(0,bs.applyFilters)("editor.postContentBlockTypes",su),t=(0,d.useSelect)((t=>{const{getBlocksByName:s,getBlockParents:o,getBlockName:n}=t(g.store);return s(e).filter((t=>o(t).every((t=>{const s=n(t);return"core/query"!==s&&!e.includes(s)}))))}),[]),s=(0,d.useSelect)((e=>{const{getBlocksByName:t,getBlockOrder:s}=e(g.store);return t(["core/template-part"]).flatMap((e=>s(e)))}),[]),o=(0,d.useRegistry)();return(0,C.useEffect)((()=>{const{setBlockEditingMode:e,unsetBlockEditingMode:n}=o.dispatch(g.store);return o.batch((()=>{e("","disabled");for(const s of t)e(s,"contentOnly");for(const t of s)e(t,"disabled")})),()=>{o.batch((()=>{n("");for(const e of t)n(e);for(const e of s)n(e)}))}}),[t,s,o]),null}function nu(){const e=(0,d.useSelect)((e=>e(g.store).getBlockOrder()?.[0]),[]),{setBlockEditingMode:t,unsetBlockEditingMode:s}=(0,d.useDispatch)(g.store);(0,C.useEffect)((()=>{if(e)return t(e,"contentOnly"),()=>{s(e)}}),[e,s,t])}const iu=["wp_block","wp_template","wp_template_part"];const ru=(0,T.jsxs)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,T.jsx)(j.Path,{d:"m16 15.5h-8v-1.5h8zm-7.5-2.5h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm-9-3h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2z"}),(0,T.jsx)(j.Path,{d:"m18.5 6.5h-13a.5.5 0 0 0 -.5.5v9.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9.5a.5.5 0 0 0 -.5-.5zm-13-1.5h13a2 2 0 0 1 2 2v9.5a2 2 0 0 1 -2 2h-13a2 2 0 0 1 -2-2v-9.5a2 2 0 0 1 2-2z"})]}),au=(0,T.jsx)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,T.jsx)(j.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})}),lu=(0,T.jsx)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,T.jsx)(j.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})}),cu=(0,T.jsx)(j.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"})}),du=(0,T.jsx)(j.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"})}),uu=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.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"})}),pu=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.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"})}),hu=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})}),mu=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),{RenamePatternModal:gu}=h(_n.privateApis),_u="editor/pattern-rename";function fu(){const{record:e,postType:t}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(cn),{getEditedEntityRecord:o}=e(b.store),n=t();return{record:o("postType",n,s()),postType:n}}),[]),{closeModal:s}=(0,d.useDispatch)(Xn);return(0,d.useSelect)((e=>e(Xn).isModalActive(_u)))&&t===V?(0,T.jsx)(gu,{onClose:s,pattern:e}):null}const{DuplicatePatternModal:bu}=h(_n.privateApis),yu="editor/pattern-duplicate";function xu(){const{record:e,postType:t}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(cn),{getEditedEntityRecord:o}=e(b.store),n=t();return{record:o("postType",n,s()),postType:n}}),[]),{closeModal:s}=(0,d.useDispatch)(Xn);return(0,d.useSelect)((e=>e(Xn).isModalActive(yu)))&&t===V?(0,T.jsx)(bu,{onClose:s,onSuccess:()=>s(),pattern:e}):null}function vu(){const{editorMode:e,isListViewOpen:t,showBlockBreadcrumbs:s,isDistractionFree:o,isTopToolbar:n,isFocusMode:i,isPreviewMode:r,isViewable:a,isCodeEditingEnabled:l,isRichEditingEnabled:c,isPublishSidebarEnabled:u}=(0,d.useSelect)((e=>{var t,s;const{get:o}=e(B.store),{isListViewOpened:n,getCurrentPostType:i,getEditorSettings:r}=e(cn),{getSettings:a}=e(g.store),{getPostType:l}=e(b.store);return{editorMode:null!==(t=o("core","editorMode"))&&void 0!==t?t:"visual",isListViewOpen:n(),showBlockBreadcrumbs:o("core","showBlockBreadcrumbs"),isDistractionFree:o("core","distractionFree"),isFocusMode:o("core","focusMode"),isTopToolbar:o("core","fixedToolbar"),isPreviewMode:a().__unstableIsPreviewMode,isViewable:null!==(s=l(i())?.viewable)&&void 0!==s&&s,isCodeEditingEnabled:r().codeEditingEnabled,isRichEditingEnabled:r().richEditingEnabled,isPublishSidebarEnabled:e(cn).isPublishSidebarEnabled()}}),[]),{getActiveComplementaryArea:p}=(0,d.useSelect)(Xn),{toggle:h}=(0,d.useDispatch)(B.store),{createInfoNotice:_}=(0,d.useDispatch)(fs.store),{__unstableSaveForPreview:f,setIsListViewOpened:y,switchEditorMode:x,toggleDistractionFree:v}=(0,d.useDispatch)(cn),{openModal:w,enableComplementaryArea:S,disableComplementaryArea:k}=(0,d.useDispatch)(Xn),{getCurrentPostId:P}=(0,d.useSelect)(cn),C=l&&c;if(r)return{commands:[],isLoading:!1};const j=[];return j.push({name:"core/open-shortcut-help",label:(0,m.__)("Keyboard shortcuts"),icon:ru,callback:()=>{w("editor/keyboard-shortcut-help")}}),j.push({name:"core/toggle-distraction-free",label:o?(0,m.__)("Exit Distraction Free"):(0,m.__)("Enter Distraction Free"),callback:({close:e})=>{v(),e()}}),j.push({name:"core/open-preferences",label:(0,m.__)("Editor preferences"),callback:()=>{w("editor/preferences")}}),j.push({name:"core/toggle-spotlight-mode",label:(0,m.__)("Toggle spotlight"),callback:({close:e})=>{h("core","focusMode"),e(),_(i?(0,m.__)("Spotlight off."):(0,m.__)("Spotlight on."),{id:"core/editor/toggle-spotlight-mode/notice",type:"snackbar",actions:[{label:(0,m.__)("Undo"),onClick:()=>{h("core","focusMode")}}]})}}),j.push({name:"core/toggle-list-view",label:t?(0,m.__)("Close List View"):(0,m.__)("Open List View"),icon:au,callback:({close:e})=>{y(!t),e(),_(t?(0,m.__)("List View off."):(0,m.__)("List View on."),{id:"core/editor/toggle-list-view/notice",type:"snackbar"})}}),j.push({name:"core/toggle-top-toolbar",label:(0,m.__)("Toggle top toolbar"),callback:({close:e})=>{h("core","fixedToolbar"),o&&v(),e(),_(n?(0,m.__)("Top toolbar off."):(0,m.__)("Top toolbar on."),{id:"core/editor/toggle-top-toolbar/notice",type:"snackbar",actions:[{label:(0,m.__)("Undo"),onClick:()=>{h("core","fixedToolbar")}}]})}}),C&&j.push({name:"core/toggle-code-editor",label:"visual"===e?(0,m.__)("Open code editor"):(0,m.__)("Exit code editor"),icon:lu,callback:({close:t})=>{x("visual"===e?"text":"visual"),t()}}),j.push({name:"core/toggle-breadcrumbs",label:s?(0,m.__)("Hide block breadcrumbs"):(0,m.__)("Show block breadcrumbs"),callback:({close:e})=>{h("core","showBlockBreadcrumbs"),e(),_(s?(0,m.__)("Breadcrumbs hidden."):(0,m.__)("Breadcrumbs visible."),{id:"core/editor/toggle-breadcrumbs/notice",type:"snackbar"})}}),j.push({name:"core/open-settings-sidebar",label:(0,m.__)("Toggle settings sidebar"),icon:(0,m.isRTL)()?cu:du,callback:({close:e})=>{const t=p("core");e(),"edit-post/document"===t?k("core"):S("core","edit-post/document")}}),j.push({name:"core/open-block-inspector",label:(0,m.__)("Toggle block inspector"),icon:uu,callback:({close:e})=>{const t=p("core");e(),"edit-post/block"===t?k("core"):S("core","edit-post/block")}}),j.push({name:"core/toggle-publish-sidebar",label:u?(0,m.__)("Disable pre-publish checks"):(0,m.__)("Enable pre-publish checks"),icon:pu,callback:({close:e})=>{e(),h("core","isPublishSidebarEnabled"),_(u?(0,m.__)("Pre-publish checks disabled."):(0,m.__)("Pre-publish checks enabled."),{id:"core/editor/publish-sidebar/notice",type:"snackbar"})}}),a&&j.push({name:"core/preview-link",label:(0,m.__)("Preview in a new tab"),icon:hu,callback:async({close:e})=>{e();const t=P(),s=await f();window.open(s,`wp-preview-${t}`)}}),{commands:j,isLoading:!1}}function wu(){const{postType:e}=(0,d.useSelect)((e=>{const{getCurrentPostType:t}=e(cn);return{postType:t()}}),[]),{openModal:t}=(0,d.useDispatch)(Xn),s=[];return e===V&&(s.push({name:"core/rename-pattern",label:(0,m.__)("Rename pattern"),icon:mu,callback:({close:e})=>{t(_u),e()}}),s.push({name:"core/duplicate-pattern",label:(0,m.__)("Duplicate pattern"),icon:Ko,callback:({close:e})=>{t(yu),e()}})),{isLoading:!1,commands:s}}const{BlockRemovalWarningModal:Su}=h(g.privateApis),ku=["core/post-content","core/post-template","core/query"],Pu=[{postTypes:["wp_template","wp_template_part"],callback(e){if(e.filter((({name:e})=>ku.includes(e))).length)return(0,m._n)("Deleting this block will stop your post or page content from displaying on this template. It is not recommended.","Some of the deleted blocks will stop your post or page content from displaying on this template. It is not recommended.",e.length)}},{postTypes:["wp_block"],callback(e){if(e.filter((({attributes:e})=>e?.metadata?.bindings&&Object.values(e.metadata.bindings).some((e=>"core/pattern-overrides"===e.source)))).length)return(0,m._n)("The deleted block allows instance overrides. Removing it may result in content not displaying where this pattern is used. Are you sure you want to proceed?","Some of the deleted blocks allow instance overrides. Removing them may result in content not displaying where this pattern is used. Are you sure you want to proceed?",e.length)}}];function Cu(){const e=(0,d.useSelect)((e=>e(cn).getCurrentPostType()),[]),t=(0,C.useMemo)((()=>Pu.filter((t=>t.postTypes.includes(e)))),[e]);return Su&&t?(0,T.jsx)(Su,{rules:t}):null}function ju({blockPatterns:e,onChoosePattern:t}){const s=(0,pn.useAsyncList)(e),{editEntityRecord:o}=(0,d.useDispatch)(b.store),{postType:n,postId:i}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(cn);return{postType:t(),postId:s()}}),[]);return(0,T.jsx)(g.__experimentalBlockPatternsList,{blockPatterns:e,shownPatterns:s,onClickPattern:(e,s)=>{o("postType",n,i,{blocks:s,content:({blocks:e=[]})=>(0,c.__unstableSerializeAndClean)(e)}),t()}})}function Tu({onClose:e}){const t=function(){const{blockPatternsWithPostContentBlockType:e,postType:t}=(0,d.useSelect)((e=>{const{getPatternsByBlockTypes:t,getBlocksByName:s}=e(g.store),{getCurrentPostType:o,getRenderingMode:n}=e(cn);return{blockPatternsWithPostContentBlockType:t("core/post-content","post-only"===n()?"":s("core/post-content")?.[0]),postType:o()}}),[]);return(0,C.useMemo)((()=>e.filter((e=>"page"===t&&!e.postTypes||Array.isArray(e.postTypes)&&e.postTypes.includes(t)))),[t,e])}();return t.length>0?(0,T.jsx)(Tn.Modal,{title:(0,m.__)("Choose a pattern"),isFullScreen:!0,onRequestClose:e,children:(0,T.jsx)("div",{className:"editor-start-page-options__modal-content",children:(0,T.jsx)(ju,{blockPatterns:t,onChoosePattern:e})})}):null}function Eu(){const[e,t]=(0,C.useState)(!1),{shouldEnableModal:s,postType:o,postId:n}=(0,d.useSelect)((e=>{const{isEditedPostDirty:t,isEditedPostEmpty:s,getCurrentPostType:o,getCurrentPostId:n}=e(cn),i=o();return{shouldEnableModal:!t()&&s()&&L!==i,postType:i,postId:n()}}),[]);return(0,C.useEffect)((()=>{t(!1)}),[o,n]),!s||e?null:(0,T.jsx)(Tu,{onClose:()=>t(!0)})}const Bu=[{keyCombination:{modifier:"primary",character:"b"},description:(0,m.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,m.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,m.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,m.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,m.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,m.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,m.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,m.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}],description:(0,m.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,m.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")},{keyCombination:{modifier:"primaryShift",character:"SPACE"},description:(0,m.__)("Add non breaking space.")}];function Iu({keyCombination:e,forceAriaLabel:t}){const s=e.modifier?Ci.displayShortcutList[e.modifier](e.character):e.character,o=e.modifier?Ci.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,T.jsx)("kbd",{className:"editor-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||o,children:(Array.isArray(s)?s:[s]).map(((e,t)=>"+"===e?(0,T.jsx)(C.Fragment,{children:e},t):(0,T.jsx)("kbd",{className:"editor-keyboard-shortcut-help-modal__shortcut-key",children:e},t)))})}const Nu=function({description:e,keyCombination:t,aliases:s=[],ariaLabel:o}){return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("div",{className:"editor-keyboard-shortcut-help-modal__shortcut-description",children:e}),(0,T.jsxs)("div",{className:"editor-keyboard-shortcut-help-modal__shortcut-term",children:[(0,T.jsx)(Iu,{keyCombination:t,forceAriaLabel:o}),s.map(((e,t)=>(0,T.jsx)(Iu,{keyCombination:e,forceAriaLabel:o},t)))]})]})};const Au=function({name:e}){const{keyCombination:t,description:s,aliases:o}=(0,d.useSelect)((t=>{const{getShortcutKeyCombination:s,getShortcutDescription:o,getShortcutAliases:n}=t(Pn.store);return{keyCombination:s(e),aliases:n(e),description:o(e)}}),[e]);return t?(0,T.jsx)(Nu,{keyCombination:t,description:s,aliases:o}):null},Du="editor/keyboard-shortcut-help",Ru=({shortcuts:e})=>(0,T.jsx)("ul",{className:"editor-keyboard-shortcut-help-modal__shortcut-list",role:"list",children:e.map(((e,t)=>(0,T.jsx)("li",{className:"editor-keyboard-shortcut-help-modal__shortcut",children:"string"==typeof e?(0,T.jsx)(Au,{name:e}):(0,T.jsx)(Nu,{...e})},t)))}),Mu=({title:e,shortcuts:t,className:s})=>(0,T.jsxs)("section",{className:jn("editor-keyboard-shortcut-help-modal__section",s),children:[!!e&&(0,T.jsx)("h2",{className:"editor-keyboard-shortcut-help-modal__section-title",children:e}),(0,T.jsx)(Ru,{shortcuts:t})]}),Ou=({title:e,categoryName:t,additionalShortcuts:s=[]})=>{const o=(0,d.useSelect)((e=>e(Pn.store).getCategoryShortcuts(t)),[t]);return(0,T.jsx)(Mu,{title:e,shortcuts:o.concat(s)})};const Lu=function(){const e=(0,d.useSelect)((e=>e(Xn).isModalActive(Du)),[]),{openModal:t,closeModal:s}=(0,d.useDispatch)(Xn),o=()=>{e?s():t(Du)};return(0,Pn.useShortcut)("core/editor/keyboard-shortcuts",o),e?(0,T.jsxs)(Tn.Modal,{className:"editor-keyboard-shortcut-help-modal",title:(0,m.__)("Keyboard shortcuts"),closeButtonLabel:(0,m.__)("Close"),onRequestClose:o,children:[(0,T.jsx)(Mu,{className:"editor-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/editor/keyboard-shortcuts"]}),(0,T.jsx)(Ou,{title:(0,m.__)("Global shortcuts"),categoryName:"global"}),(0,T.jsx)(Ou,{title:(0,m.__)("Selection shortcuts"),categoryName:"selection"}),(0,T.jsx)(Ou,{title:(0,m.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,m.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,m.__)("Forward-slash")}]}),(0,T.jsx)(Mu,{title:(0,m.__)("Text formatting"),shortcuts:Bu}),(0,T.jsx)(Ou,{title:(0,m.__)("List View shortcuts"),categoryName:"list-view"})]}):null};function Fu({clientId:e,onClose:t}){const{entity:s,onNavigateToEntityRecord:o,canEditTemplates:n}=(0,d.useSelect)((t=>{const{getBlockEditingMode:s,getBlockParentsByBlockName:o,getSettings:n,getBlockAttributes:i}=t(g.store);if(!("contentOnly"===s(e)))return{};const r=o(e,"core/block",!0)[0];let a;if(r)a=t(b.store).getEntityRecord("postType","wp_block",i(r).ref);else{const{getCurrentTemplateId:s}=t(cn),o=s(),{getContentLockingParent:n}=h(t(g.store));!n(e)&&o&&(a=t(b.store).getEntityRecord("postType","wp_template",o))}return{canEditTemplates:t(b.store).canUser("create","templates"),entity:a,onNavigateToEntityRecord:n().onNavigateToEntityRecord}}),[e]);if(!s)return(0,T.jsx)(Vu,{clientId:e,onClose:t});const i="wp_block"===s.type;let r=i?(0,m.__)("Edit the pattern to move, delete, or make further changes to this block."):(0,m.__)("Edit the template to move, delete, or make further changes to this block.");return n||(r=(0,m.__)("Only users with permissions to edit the template can move or delete this block")),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(g.__unstableBlockSettingsMenuFirstItem,{children:(0,T.jsx)(Tn.MenuItem,{onClick:()=>{o({postId:s.id,postType:s.type})},disabled:!n,children:i?(0,m.__)("Edit pattern"):(0,m.__)("Edit template")})}),(0,T.jsx)(Tn.__experimentalText,{variant:"muted",as:"p",className:"editor-content-only-settings-menu__description",children:r})]})}function Vu({clientId:e,onClose:t}){const{contentLockingParent:s}=(0,d.useSelect)((t=>{const{getContentLockingParent:s}=h(t(g.store));return{contentLockingParent:s(e)}}),[e]),o=(0,g.useBlockDisplayInformation)(s),{modifyContentLockBlock:n,selectBlock:i}=h((0,d.useDispatch)(g.store));return o?.title?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(g.__unstableBlockSettingsMenuFirstItem,{children:(0,T.jsx)(Tn.MenuItem,{onClick:()=>{i(s),n(s),t()},children:(0,m.__)("Unlock")})}),(0,T.jsx)(Tn.__experimentalText,{variant:"muted",as:"p",className:"editor-content-only-settings-menu__description",children:(0,m.__)("Temporarily unlock the parent block to edit, delete or make further changes to this block.")})]}):null}function Uu(){return(0,T.jsx)(g.BlockSettingsMenuControls,{children:({selectedClientIds:e,onClose:t})=>1===e.length&&(0,T.jsx)(Fu,{clientId:e[0],onClose:t})})}function zu(e){const{slug:t,patterns:s}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(cn),{getEntityRecord:o,getBlockPatterns:n}=e(b.store),i=s();return{slug:o("postType",t(),i).slug,patterns:n()}}),[]),o=(0,d.useSelect)((e=>e(b.store).getCurrentTheme().stylesheet));return(0,C.useMemo)((()=>[{name:"fallback",blocks:(0,c.parse)(e),title:(0,m.__)("Fallback content")},...s.filter((e=>Array.isArray(e.templateTypes)&&e.templateTypes.some((e=>t.startsWith(e))))).map((e=>({...e,blocks:(0,c.parse)(e.content).map((e=>function(e){return e.innerBlocks.find((e=>"core/template-part"===e.name))&&(e.innerBlocks=e.innerBlocks.map((e=>("core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=o),e)))),"core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=o),e}(e)))})))]),[e,t,s])}function Hu({fallbackContent:e,onChoosePattern:t,postType:s}){const[,,o]=(0,b.useEntityBlockEditor)("postType",s),n=zu(e),i=(0,pn.useAsyncList)(n);return(0,T.jsx)(g.__experimentalBlockPatternsList,{blockPatterns:n,shownPatterns:i,onClickPattern:(e,s)=>{o(s,{selection:void 0}),t()}})}function Gu({slug:e,isCustom:t,onClose:s,postType:o}){const n=function(e,t=!1){return(0,d.useSelect)((s=>{const{getEntityRecord:o,getDefaultTemplateId:n}=s(b.store),i=n({slug:e,is_custom:t,ignore_empty:!0});return i?o("postType",L,i)?.content?.raw:void 0}),[e,t])}(e,t);return n?(0,T.jsxs)(Tn.Modal,{className:"editor-start-template-options__modal",title:(0,m.__)("Choose a pattern"),closeLabel:(0,m.__)("Cancel"),focusOnMount:"firstElement",onRequestClose:s,isFullScreen:!0,children:[(0,T.jsx)("div",{className:"editor-start-template-options__modal-content",children:(0,T.jsx)(Hu,{fallbackContent:n,slug:e,isCustom:t,postType:o,onChoosePattern:()=>{s()}})}),(0,T.jsx)(Tn.Flex,{className:"editor-start-template-options__modal__actions",justify:"flex-end",expanded:!1,children:(0,T.jsx)(Tn.FlexItem,{children:(0,T.jsx)(Tn.Button,{variant:"tertiary",onClick:s,children:(0,m.__)("Skip")})})})]}):null}function $u(){const[e,t]=(0,C.useState)(!1),{shouldOpenModal:s,slug:o,isCustom:n,postType:i,postId:r}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(cn),o=t(),n=s(),{getEditedEntityRecord:i,hasEditsForEntityRecord:r}=e(b.store),a=i("postType",o,n);return{shouldOpenModal:!r("postType",o,n)&&""===a.content&&L===o,slug:a.slug,isCustom:a.is_custom,postType:o,postId:n}}),[]);return(0,C.useEffect)((()=>{t(!1)}),[i,r]),!s||e?null:(0,T.jsx)(Gu,{slug:o,isCustom:n,postType:i,onClose:()=>t(!0)})}const{ExperimentalBlockEditorProvider:Wu}=h(g.privateApis),{PatternsMenuItems:Ku}=h(_n.privateApis),Zu=()=>{},Yu=["wp_block","wp_template","wp_navigation","wp_template_part"];const qu=Nd((({post:e,settings:t,recovery:s,initialEdits:o,children:n,BlockEditorProviderComponent:i=Wu,__unstableTemplate:r})=>{const a=(0,d.useSelect)((e=>e(cn).getRenderingMode()),[]),l=!!r&&"post-only"!==a,u=l?r:e,p=(0,C.useMemo)((()=>({...!Yu.includes(u.type)||l?{postId:e.id,postType:e.type}:{},templateSlug:"wp_template"===u.type?u.slug:void 0})),[l,e.id,e.type,u.type,u.slug]),{editorSettings:_,selection:f,isReady:y}=(0,d.useSelect)((e=>{const{getEditorSettings:t,getEditorSelection:s,__unstableIsEditorReady:o}=e(cn);return{editorSettings:t(),isReady:o(),selection:s()}}),[]),{id:x,type:v}=u,w=tu(_,v,x,a),[S,k,P]=function(e,t,s){const o="post-only"!==s&&t?"template":"post",[n,i,r]=(0,b.useEntityBlockEditor)("postType",e.type,{id:e.id}),[a,l,d]=(0,b.useEntityBlockEditor)("postType",t?.type,{id:t?.id}),u=(0,C.useMemo)((()=>{if("wp_navigation"===e.type)return[(0,c.createBlock)("core/navigation",{ref:e.id,templateLock:!1})]}),[e.type,e.id]),p=(0,C.useMemo)((()=>u||("template"===o?a:n)),[u,o,a,n]);return t&&"template-locked"===s||"wp_navigation"===e.type?[p,Zu,Zu]:[p,"post"===o?i:l,"post"===o?r:d]}(e,r,a),{updatePostLock:j,setupEditor:E,updateEditorSettings:B,setCurrentTemplateId:I,setEditedPost:N,setRenderingMode:A}=h((0,d.useDispatch)(cn)),{createWarningNotice:D}=(0,d.useDispatch)(fs.store);return(0,C.useLayoutEffect)((()=>{s||(j(t.postLock),E(e,o,t.template),t.autosave&&D((0,m.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:(0,m.__)("View the autosave"),url:t.autosave.editLink}]}))}),[]),(0,C.useEffect)((()=>{N(e.type,e.id)}),[e.type,e.id,N]),(0,C.useEffect)((()=>{B(t)}),[t,B]),(0,C.useEffect)((()=>{I(r?.id)}),[r?.id,I]),(0,C.useEffect)((()=>{var e;A(null!==(e=t.defaultRenderingMode)&&void 0!==e?e:"post-only")}),[t.defaultRenderingMode,A]),function(e,t){(0,C.useEffect)((()=>((0,bs.addFilter)("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromInserter",((s,o)=>!(!iu.includes(e)&&"core/template-part"===o.name&&"post-only"===t)&&s)),(0,bs.addFilter)("blockEditor.__unstableCanInsertBlockType","removePostContentFromInserter",((t,s,o,{getBlockParentsByBlockName:n})=>iu.includes(e)||"core/post-content"!==s.name?t:n(o,"core/query").length>0)),()=>{(0,bs.removeFilter)("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromInserter"),(0,bs.removeFilter)("blockEditor.__unstableCanInsertBlockType","removePostContentFromInserter")})),[e,t])}(e.type,a),(0,ji.useCommandLoader)({name:"core/editor/edit-ui",hook:vu}),(0,ji.useCommandLoader)({name:"core/editor/contextual-commands",hook:wu,context:"entity-edit"}),y?(0,T.jsx)(b.EntityProvider,{kind:"root",type:"site",children:(0,T.jsx)(b.EntityProvider,{kind:"postType",type:e.type,id:e.id,children:(0,T.jsx)(g.BlockContextProvider,{value:p,children:(0,T.jsxs)(i,{value:S,onChange:P,onInput:k,selection:f,settings:w,useSubRegistry:!1,children:[n,!t.__unstableIsPreviewMode&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Ku,{}),(0,T.jsx)(Uu,{}),"template-locked"===a&&(0,T.jsx)(ou,{}),"wp_navigation"===v&&(0,T.jsx)(nu,{}),(0,T.jsx)(vi,{}),(0,T.jsx)(Lu,{}),(0,T.jsx)(Cu,{}),(0,T.jsx)(Eu,{}),(0,T.jsx)($u,{}),(0,T.jsx)(fu,{}),(0,T.jsx)(xu,{})]})]})})})}):null}));const Qu=function(e){return(0,T.jsx)(qu,{...e,BlockEditorProviderComponent:g.BlockEditorProvider,children:e.children})},Xu=window.wp.serverSideRender;var Ju=s.n(Xu);function ep(e,t,s=[]){const o=(0,C.forwardRef)(((s,o)=>(P()("wp.editor."+e,{since:"5.3",alternative:"wp.blockEditor."+e,version:"6.2"}),(0,T.jsx)(t,{ref:o,...s}))));return s.forEach((s=>{o[s]=ep(e+"."+s,t[s])})),o}function tp(e,t){return(...s)=>(P()("wp.editor."+e,{since:"5.3",alternative:"wp.blockEditor."+e,version:"6.2"}),t(...s))}const sp=ep("RichText",g.RichText,["Content"]);sp.isEmpty=tp("RichText.isEmpty",g.RichText.isEmpty);const op=ep("Autocomplete",g.Autocomplete),np=ep("AlignmentToolbar",g.AlignmentToolbar),ip=ep("BlockAlignmentToolbar",g.BlockAlignmentToolbar),rp=ep("BlockControls",g.BlockControls,["Slot"]),ap=ep("BlockEdit",g.BlockEdit),lp=ep("BlockEditorKeyboardShortcuts",g.BlockEditorKeyboardShortcuts),cp=ep("BlockFormatControls",g.BlockFormatControls,["Slot"]),dp=ep("BlockIcon",g.BlockIcon),up=ep("BlockInspector",g.BlockInspector),pp=ep("BlockList",g.BlockList),hp=ep("BlockMover",g.BlockMover),mp=ep("BlockNavigationDropdown",g.BlockNavigationDropdown),gp=ep("BlockSelectionClearer",g.BlockSelectionClearer),_p=ep("BlockSettingsMenu",g.BlockSettingsMenu),fp=ep("BlockTitle",g.BlockTitle),bp=ep("BlockToolbar",g.BlockToolbar),yp=ep("ColorPalette",g.ColorPalette),xp=ep("ContrastChecker",g.ContrastChecker),vp=ep("CopyHandler",g.CopyHandler),wp=ep("DefaultBlockAppender",g.DefaultBlockAppender),Sp=ep("FontSizePicker",g.FontSizePicker),kp=ep("Inserter",g.Inserter),Pp=ep("InnerBlocks",g.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),Cp=ep("InspectorAdvancedControls",g.InspectorAdvancedControls,["Slot"]),jp=ep("InspectorControls",g.InspectorControls,["Slot"]),Tp=ep("PanelColorSettings",g.PanelColorSettings),Ep=ep("PlainText",g.PlainText),Bp=ep("RichTextShortcut",g.RichTextShortcut),Ip=ep("RichTextToolbarButton",g.RichTextToolbarButton),Np=ep("__unstableRichTextInputEvent",g.__unstableRichTextInputEvent),Ap=ep("MediaPlaceholder",g.MediaPlaceholder),Dp=ep("MediaUpload",g.MediaUpload),Rp=ep("MediaUploadCheck",g.MediaUploadCheck),Mp=ep("MultiSelectScrollIntoView",g.MultiSelectScrollIntoView),Op=ep("NavigableToolbar",g.NavigableToolbar),Lp=ep("ObserveTyping",g.ObserveTyping),Fp=ep("SkipToSelectedBlock",g.SkipToSelectedBlock),Vp=ep("URLInput",g.URLInput),Up=ep("URLInputButton",g.URLInputButton),zp=ep("URLPopover",g.URLPopover),Hp=ep("Warning",g.Warning),Gp=ep("WritingFlow",g.WritingFlow),$p=tp("createCustomColorsHOC",g.createCustomColorsHOC),Wp=tp("getColorClassName",g.getColorClassName),Kp=tp("getColorObjectByAttributeValues",g.getColorObjectByAttributeValues),Zp=tp("getColorObjectByColorValue",g.getColorObjectByColorValue),Yp=tp("getFontSize",g.getFontSize),qp=tp("getFontSizeClass",g.getFontSizeClass),Qp=tp("withColorContext",g.withColorContext),Xp=tp("withColors",g.withColors),Jp=tp("withFontSizes",g.withFontSizes),eh=vi,th=vi;function sh(e){return P()("wp.editor.cleanForSlug",{since:"12.7",plugin:"Gutenberg",alternative:"wp.url.cleanForSlug"}),(0,S.cleanForSlug)(e)}const{createPrivateSlotFill:oh}=h(Tn.privateApis),nh=oh("EditCanvasContainerSlot"),ih="__experimentalMainDashboardButton",{Fill:rh,Slot:ah}=(0,Tn.createSlotFill)(ih),lh=rh;lh.Slot=({children:e})=>{const t=(0,Tn.__experimentalUseSlotFills)(ih);return Boolean(t&&t.length)?(0,T.jsx)(ah,{bubblesVirtually:!0,fillProps:{length:t?t.length:0}}):e};const ch=lh;var dh=function(){return dh=Object.assign||function(e){for(var t,s=1,o=arguments.length;s<o;s++)for(var n in t=arguments[s])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},dh.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function uh(e){return e.toLowerCase()}var ph=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],hh=/[^A-Z0-9]+/gi;function mh(e,t,s){return t instanceof RegExp?e.replace(t,s):t.reduce((function(e,t){return e.replace(t,s)}),e)}function gh(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var s=t.splitRegexp,o=void 0===s?ph:s,n=t.stripRegexp,i=void 0===n?hh:n,r=t.transform,a=void 0===r?uh:r,l=t.delimiter,c=void 0===l?" ":l,d=mh(mh(e,o,"$1\0$2"),i,"\0"),u=0,p=d.length;"\0"===d.charAt(u);)u++;for(;"\0"===d.charAt(p-1);)p--;return d.slice(u,p).split("\0").map(a).join(c)}(e,dh({delimiter:"."},t))}function _h(e,t){return void 0===t&&(t={}),gh(e,dh({delimiter:"-"},t))}const fh=()=>(0,d.useSelect)((e=>e(b.store).getEntityRecords("postType",F,{per_page:-1})),[]),bh=(e,t)=>{const s=e.toLowerCase(),o=t.map((e=>e.title.rendered.toLowerCase()));if(!o.includes(s))return e;let n=2;for(;o.includes(`${s} ${n}`);)n++;return`${e} ${n}`},yh=e=>_h(e).replace(/[^\w-]+/g,"")||"wp-custom-part";function xh({modalTitle:e,...t}){const s=(0,d.useSelect)((e=>e(b.store).getPostType(F)?.labels?.add_new_item),[]);return(0,T.jsx)(Tn.Modal,{title:e||s,onRequestClose:t.closeModal,overlayClassName:"editor-create-template-part-modal",children:(0,T.jsx)(vh,{...t})})}function vh({defaultArea:e=O,blocks:t=[],confirmLabel:s=(0,m.__)("Add"),closeModal:o,onCreate:n,onError:i,defaultTitle:r=""}){const{createErrorNotice:a}=(0,d.useDispatch)(fs.store),{saveEntityRecord:l}=(0,d.useDispatch)(b.store),u=fh(),[p,h]=(0,C.useState)(r),[g,_]=(0,C.useState)(e),[f,y]=(0,C.useState)(!1),x=(0,pn.useInstanceId)(xh),v=(0,d.useSelect)((e=>e(cn).__experimentalGetDefaultTemplatePartAreas()),[]);return(0,T.jsx)("form",{onSubmit:async e=>{e.preventDefault(),await async function(){if(p&&!f)try{y(!0);const e=bh(p,u),s=yh(e),o=await l("postType",F,{slug:s,title:e,content:(0,c.serialize)(t),area:g},{throwOnError:!0});await n(o)}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,m.__)("An error occurred while creating the template part.");a(t,{type:"snackbar"}),i?.()}finally{y(!1)}}()},children:(0,T.jsxs)(Tn.__experimentalVStack,{spacing:"4",children:[(0,T.jsx)(Tn.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,m.__)("Name"),value:p,onChange:h,required:!0}),(0,T.jsx)(Tn.BaseControl,{label:(0,m.__)("Area"),id:`editor-create-template-part-modal__area-selection-${x}`,className:"editor-create-template-part-modal__area-base-control",children:(0,T.jsx)(Tn.__experimentalRadioGroup,{label:(0,m.__)("Area"),className:"editor-create-template-part-modal__area-radio-group",id:`editor-create-template-part-modal__area-selection-${x}`,onChange:_,checked:g,children:v.map((({icon:e,label:t,area:s,description:o})=>(0,T.jsx)(Tn.__experimentalRadio,{value:s,className:"editor-create-template-part-modal__area-radio",children:(0,T.jsxs)(Tn.Flex,{align:"start",justify:"start",children:[(0,T.jsx)(Tn.FlexItem,{children:(0,T.jsx)(Tn.Icon,{icon:e})}),(0,T.jsxs)(Tn.FlexBlock,{className:"editor-create-template-part-modal__option-label",children:[t,(0,T.jsx)("div",{children:o})]}),(0,T.jsx)(Tn.FlexItem,{className:"editor-create-template-part-modal__checkbox",children:g===s&&(0,T.jsx)(Tn.Icon,{icon:En})})]})},t)))})}),(0,T.jsxs)(Tn.__experimentalHStack,{justify:"right",children:[(0,T.jsx)(Tn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{o()},children:(0,m.__)("Cancel")}),(0,T.jsx)(Tn.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit","aria-disabled":!p||f,isBusy:f,children:s})]})]})})}const wh=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})}),Sh=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})}),{useHasBlockToolbar:kh}=h(g.privateApis);const Ph=function({isCollapsed:e,onToggle:t}){const{blockSelectionStart:s}=(0,d.useSelect)((e=>({blockSelectionStart:e(g.store).getBlockSelectionStart()})),[]),o=kh(),n=!!s;return(0,C.useEffect)((()=>{s&&t(!1)}),[s,t]),o?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("div",{className:jn("editor-collapsible-block-toolbar",{"is-collapsed":e||!n}),children:(0,T.jsx)(g.BlockToolbar,{hideDragHandle:!0})}),(0,T.jsx)(Tn.Popover.Slot,{name:"block-toolbar"}),(0,T.jsx)(Tn.Button,{className:"editor-collapsible-block-toolbar__toggle",icon:e?wh:Sh,onClick:()=>{t(!e)},label:e?(0,m.__)("Show block tools"):(0,m.__)("Hide block tools"),size:"compact"})]}):null},Ch=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});const jh=function({className:e,disableBlockTools:t=!1}){const{setIsInserterOpened:s,setIsListViewOpened:o}=(0,d.useDispatch)(cn),{isDistractionFree:n,isInserterOpened:i,isListViewOpen:r,listViewShortcut:a,inserterSidebarToggleRef:l,listViewToggleRef:c,hasFixedToolbar:u,showIconLabels:p}=(0,d.useSelect)((e=>{const{getSettings:t}=e(g.store),{get:s}=e(B.store),{isListViewOpened:o,getEditorMode:n,getInserterSidebarToggleRef:i,getListViewToggleRef:r}=h(e(cn)),{getShortcutRepresentation:a}=e(Pn.store),{__unstableGetEditorMode:l}=e(g.store);return{isInserterOpened:e(cn).isInserterOpened(),isListViewOpen:o(),listViewShortcut:a("core/editor/toggle-list-view"),inserterSidebarToggleRef:i(),listViewToggleRef:r(),hasFixedToolbar:t().hasFixedToolbar,showIconLabels:s("core","showIconLabels"),isDistractionFree:s("core","distractionFree"),isVisualMode:"visual"===n(),isZoomedOutView:"zoom-out"===l()}}),[]),_=(0,pn.useViewportMatch)("medium"),f=(0,pn.useViewportMatch)("wide"),b=(0,m.__)("Document tools"),y=(0,C.useCallback)((()=>o(!r)),[o,r]),x=(0,C.useCallback)((()=>s(!i)),[i,s]),v=(0,m._x)("Toggle block inserter","Generic label for block inserter button"),w=i?(0,m.__)("Close"):(0,m.__)("Add");return(0,T.jsx)(g.NavigableToolbar,{className:jn("editor-document-tools","edit-post-header-toolbar",e),"aria-label":b,variant:"unstyled",children:(0,T.jsxs)("div",{className:"editor-document-tools__left",children:[!n&&(0,T.jsx)(Tn.ToolbarItem,{ref:l,as:Tn.Button,className:"editor-document-tools__inserter-toggle",variant:"primary",isPressed:i,onMouseDown:e=>{i&&e.preventDefault()},onClick:x,disabled:t,icon:Ch,label:p?w:v,showTooltip:!p,"aria-expanded":i}),(f||!p)&&(0,T.jsxs)(T.Fragment,{children:[_&&!u&&(0,T.jsx)(Tn.ToolbarItem,{as:g.ToolSelector,showTooltip:!p,variant:p?"tertiary":void 0,disabled:t,size:"compact"}),(0,T.jsx)(Tn.ToolbarItem,{as:Wi,showTooltip:!p,variant:p?"tertiary":void 0,size:"compact"}),(0,T.jsx)(Tn.ToolbarItem,{as:$i,showTooltip:!p,variant:p?"tertiary":void 0,size:"compact"}),!n&&(0,T.jsx)(Tn.ToolbarItem,{as:Tn.Button,className:"editor-document-tools__document-overview-toggle",icon:au,disabled:t,isPressed:r,label:(0,m.__)("Document Overview"),onClick:y,shortcut:a,showTooltip:!p,variant:p?"tertiary":void 0,"aria-expanded":r,ref:c,size:"compact"})]})]})})},Th=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});function Eh(){const{createNotice:e}=(0,d.useDispatch)(fs.store),{getCurrentPostId:t,getCurrentPostType:s}=(0,d.useSelect)(cn),{getEditedEntityRecord:o}=(0,d.useSelect)(b.store);const n=(0,pn.useCopyToClipboard)((function(){const e=o("postType",s(),t());return e?"function"==typeof e.content?e.content(e):e.blocks?(0,c.__unstableSerializeAndClean)(e.blocks):e.content?e.content:void 0:""}),(function(){e("info",(0,m.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}));return(0,T.jsx)(Tn.MenuItem,{ref:n,children:(0,m.__)("Copy all blocks")})}const Bh=[{value:"visual",label:(0,m.__)("Visual editor")},{value:"text",label:(0,m.__)("Code editor")}];const Ih=function(){const{shortcut:e,isRichEditingEnabled:t,isCodeEditingEnabled:s,mode:o}=(0,d.useSelect)((e=>({shortcut:e(Pn.store).getShortcutRepresentation("core/editor/toggle-mode"),isRichEditingEnabled:e(cn).getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e(cn).getEditorSettings().codeEditingEnabled,mode:e(cn).getEditorMode()})),[]),{switchEditorMode:n}=(0,d.useDispatch)(cn);let i=o;t||"visual"!==o||(i="text"),s||"text"!==o||(i="visual");const r=Bh.map((o=>(s||"text"!==o.value||(o={...o,disabled:!0}),t||"visual"!==o.value||(o={...o,disabled:!0,info:(0,m.__)("You can enable the visual editor in your profile settings.")}),o.value===i||o.disabled?o:{...o,shortcut:e})));return(0,T.jsx)(Tn.MenuGroup,{label:(0,m.__)("Editor"),children:(0,T.jsx)(Tn.MenuItemsChoice,{choices:r,value:i,onSelect:n})})},{Fill:Nh,Slot:Ah}=(0,Tn.createSlotFill)("ToolsMoreMenuGroup");Nh.Slot=({fillProps:e})=>(0,T.jsx)(Ah,{fillProps:e});const Dh=Nh,{Fill:Rh,Slot:Mh}=(0,Tn.createSlotFill)("web"===C.Platform.OS?Symbol("ViewMoreMenuGroup"):"ViewMoreMenuGroup");Rh.Slot=({fillProps:e})=>(0,T.jsx)(Mh,{fillProps:e});const Oh=Rh;function Lh(){const{openModal:e}=(0,d.useDispatch)(Xn),{set:t}=(0,d.useDispatch)(B.store),{toggleDistractionFree:s}=(0,d.useDispatch)(cn),o=(0,d.useSelect)((e=>e(B.store).get("core","showIconLabels")),[]),n=()=>{t("core","distractionFree",!1)};return(0,T.jsx)(T.Fragment,{children:(0,T.jsx)(Tn.DropdownMenu,{icon:Th,label:(0,m.__)("Options"),popoverProps:{placement:"bottom-end",className:"more-menu-dropdown__content"},toggleProps:{showTooltip:!o,...o&&{variant:"tertiary"},tooltipPosition:"bottom",size:"compact"},children:({onClose:t})=>(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(Tn.MenuGroup,{label:(0,m._x)("View","noun"),children:[(0,T.jsx)(B.PreferenceToggleMenuItem,{scope:"core",name:"fixedToolbar",onToggle:n,label:(0,m.__)("Top toolbar"),info:(0,m.__)("Access all block and document tools in a single place"),messageActivated:(0,m.__)("Top toolbar activated"),messageDeactivated:(0,m.__)("Top toolbar deactivated")}),(0,T.jsx)(B.PreferenceToggleMenuItem,{scope:"core",name:"distractionFree",label:(0,m.__)("Distraction free"),info:(0,m.__)("Write with calmness"),handleToggling:!1,onToggle:s,messageActivated:(0,m.__)("Distraction free mode activated"),messageDeactivated:(0,m.__)("Distraction free mode deactivated"),shortcut:Ci.displayShortcut.primaryShift("\\")}),(0,T.jsx)(B.PreferenceToggleMenuItem,{scope:"core",name:"focusMode",label:(0,m.__)("Spotlight mode"),info:(0,m.__)("Focus on one block at a time"),messageActivated:(0,m.__)("Spotlight mode activated"),messageDeactivated:(0,m.__)("Spotlight mode deactivated")}),(0,T.jsx)(Oh.Slot,{fillProps:{onClose:t}})]}),(0,T.jsx)(Ih,{}),(0,T.jsx)(ii.Slot,{name:"core/plugin-more-menu",label:(0,m.__)("Plugins"),as:Tn.MenuGroup,fillProps:{onClick:t}}),(0,T.jsxs)(Tn.MenuGroup,{label:(0,m.__)("Tools"),children:[(0,T.jsx)(Tn.MenuItem,{onClick:()=>e("editor/keyboard-shortcut-help"),shortcut:Ci.displayShortcut.access("h"),children:(0,m.__)("Keyboard shortcuts")}),(0,T.jsx)(Eh,{}),(0,T.jsxs)(Tn.MenuItem,{icon:hu,href:(0,m.__)("https://wordpress.org/documentation/article/wordpress-block-editor/"),target:"_blank",rel:"noopener noreferrer",children:[(0,m.__)("Help"),(0,T.jsx)(Tn.VisuallyHidden,{as:"span",children:(0,m.__)("(opens in a new tab)")})]}),(0,T.jsx)(Dh.Slot,{fillProps:{onClose:t}})]}),(0,T.jsx)(Tn.MenuGroup,{children:(0,T.jsx)(Tn.MenuItem,{onClick:()=>e("editor/preferences"),children:(0,m.__)("Preferences")})})]})})})}const Fh=(0,pn.compose)((0,d.withSelect)((e=>{var t;return{hasPublishAction:null!==(t=e(cn).getCurrentPost()?._links?.["wp:action-publish"])&&void 0!==t&&t,isBeingScheduled:e(cn).isEditedPostBeingScheduled(),isPending:e(cn).isCurrentPostPending(),isPublished:e(cn).isCurrentPostPublished(),isPublishSidebarEnabled:e(cn).isPublishSidebarEnabled(),isPublishSidebarOpened:e(cn).isPublishSidebarOpened(),isScheduled:e(cn).isCurrentPostScheduled(),postStatus:e(cn).getEditedPostAttribute("status"),postStatusHasChanged:e(cn).getPostEdits()?.status}})),(0,d.withDispatch)((e=>{const{togglePublishSidebar:t}=e(cn);return{togglePublishSidebar:t}})))((function({forceIsDirty:e,hasPublishAction:t,isBeingScheduled:s,isPending:o,isPublished:n,isPublishSidebarEnabled:i,isPublishSidebarOpened:r,isScheduled:a,togglePublishSidebar:l,setEntitiesSavedStatesCallback:c,postStatusHasChanged:d,postStatus:u}){const p="toggle",h="button",m=(0,pn.useViewportMatch)("medium","<");let g;return g=n||d&&!["future","publish"].includes(u)||a&&s||o&&!t&&!m?h:m||i?p:h,(0,T.jsx)(El,{forceIsDirty:e,isOpen:r,isToggle:g===p,onToggle:l,setEntitiesSavedStatesCallback:c})}));function Vh(){const{hasLoaded:e,permalink:t,isPublished:s,label:o,showIconLabels:n}=(0,d.useSelect)((e=>{const t=e(cn).getCurrentPostType(),s=e(b.store).getPostType(t),{get:o}=e(B.store);return{permalink:e(cn).getPermalink(),isPublished:e(cn).isCurrentPostPublished(),label:s?.labels.view_item,hasLoaded:!!s,showIconLabels:o("core","showIconLabels")}}),[]);return s&&t&&e?(0,T.jsx)(Tn.Button,{icon:hu,label:o||(0,m.__)("View post"),href:t,target:"_blank",showTooltip:!n,size:"compact"}):null}const Uh=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"})}),zh=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})}),Hh=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})});function Gh({forceIsAutosaveable:e,disabled:t}){const{deviceType:s,homeUrl:o,isTemplate:n,isViewable:i,showIconLabels:r}=(0,d.useSelect)((e=>{var t;const{getDeviceType:s,getCurrentPostType:o}=e(cn),{getUnstableBase:n,getPostType:i}=e(b.store),{get:r}=e(B.store),a=o();return{deviceType:s(),homeUrl:n()?.home,isTemplate:"wp_template"===a,isViewable:null!==(t=i(a)?.viewable)&&void 0!==t&&t,showIconLabels:r("core","showIconLabels")}}),[]),{setDeviceType:a}=(0,d.useDispatch)(cn);if((0,pn.useViewportMatch)("medium","<"))return null;const l={className:"editor-preview-dropdown__toggle",size:"compact",showTooltip:!r,disabled:t,__experimentalIsFocusable:t},c={"aria-label":(0,m.__)("View options")},u={mobile:Uh,tablet:zh,desktop:Hh};return(0,T.jsx)(Tn.DropdownMenu,{className:"editor-preview-dropdown",popoverProps:{placement:"bottom-end"},toggleProps:l,menuProps:c,icon:u[s.toLowerCase()],label:(0,m.__)("View"),disableOpenOnArrowDown:t,children:({onClose:t})=>(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(Tn.MenuGroup,{children:[(0,T.jsx)(Tn.MenuItem,{onClick:()=>a("Desktop"),icon:"Desktop"===s&&En,children:(0,m.__)("Desktop")}),(0,T.jsx)(Tn.MenuItem,{onClick:()=>a("Tablet"),icon:"Tablet"===s&&En,children:(0,m.__)("Tablet")}),(0,T.jsx)(Tn.MenuItem,{onClick:()=>a("Mobile"),icon:"Mobile"===s&&En,children:(0,m.__)("Mobile")})]}),n&&(0,T.jsx)(Tn.MenuGroup,{children:(0,T.jsxs)(Tn.MenuItem,{href:o,target:"_blank",icon:hu,onClick:t,children:[(0,m.__)("View site"),(0,T.jsx)(Tn.VisuallyHidden,{as:"span",children:(0,m.__)("(opens in a new tab)")})]})}),i&&(0,T.jsx)(Tn.MenuGroup,{children:(0,T.jsx)(Pl,{className:"editor-preview-dropdown__button-external",role:"menuitem",forceIsAutosaveable:e,textContent:(0,T.jsxs)(T.Fragment,{children:[(0,m.__)("Preview in new tab"),(0,T.jsx)(Tn.Icon,{icon:hu})]}),onPreview:t})})]})})}const $h={distractionFreeDisabled:{y:"-50px"},distractionFreeHover:{y:0},distractionFreeHidden:{y:"-50px"},visible:{y:0},hidden:{y:0}},Wh={distractionFreeDisabled:{x:"-100%"},distractionFreeHover:{x:0},distractionFreeHidden:{x:"-100%"},visible:{x:0},hidden:{x:0}};const Kh=function({customSaveButton:e,forceIsDirty:t,forceDisableBlockTools:s,setEntitiesSavedStatesCallback:o,title:n}){const i=(0,pn.useViewportMatch)("large"),r=(0,pn.useViewportMatch)("medium"),{isTextEditor:a,isPublishSidebarOpened:l,showIconLabels:c,hasFixedToolbar:u,isNestedEntity:p,isZoomedOutView:h}=(0,d.useSelect)((e=>{const{get:t}=e(B.store),{getEditorMode:s,getEditorSettings:o,isPublishSidebarOpened:n}=e(cn),{__unstableGetEditorMode:i}=e(g.store);return{isTextEditor:"text"===s(),isPublishSidebarOpened:n(),showIconLabels:t("core","showIconLabels"),hasFixedToolbar:t("core","fixedToolbar"),isNestedEntity:!!o().onNavigateToPreviousEntityRecord,isZoomedOutView:"zoom-out"===i()}}),[]),m=r&&u,[_,f]=(0,C.useState)(!0);return(0,T.jsxs)("div",{className:"editor-header edit-post-header",children:[(0,T.jsx)(Tn.__unstableMotion.div,{variants:Wh,transition:{type:"tween"},children:(0,T.jsx)(ch.Slot,{})}),(0,T.jsxs)(Tn.__unstableMotion.div,{variants:$h,className:"editor-header__toolbar",transition:{type:"tween"},children:[(0,T.jsx)(jh,{disableBlockTools:s||a}),m&&(0,T.jsx)(Ph,{isCollapsed:_,onToggle:f}),(0,T.jsx)("div",{className:jn("editor-header__center",{"is-collapsed":!_&&m}),children:n||(0,T.jsx)(Bi,{})})]}),(0,T.jsxs)(Tn.__unstableMotion.div,{variants:$h,transition:{type:"tween"},className:"editor-header__settings",children:[!e&&!l&&(0,T.jsx)(zc,{forceIsDirty:t}),(0,T.jsx)(Gh,{forceIsAutosaveable:t,disabled:p||h}),(0,T.jsx)(Pl,{className:"editor-header__post-preview-button",forceIsAutosaveable:t}),(0,T.jsx)(Vh,{}),!e&&(0,T.jsx)(Fh,{forceIsDirty:t,setEntitiesSavedStatesCallback:o}),e,(i||!c)&&(0,T.jsx)(ci.Slot,{scope:"core"}),(0,T.jsx)(Lh,{})]})]})},{PrivateInserterLibrary:Zh}=h(g.privateApis);function Yh(){const{blockSectionRootClientId:e,inserterSidebarToggleRef:t,insertionPoint:s,showMostUsedBlocks:o,sidebarIsOpened:n}=(0,d.useSelect)((e=>{const{getInserterSidebarToggleRef:t,getInsertionPoint:s,isPublishSidebarOpened:o}=h(e(cn)),{getBlockRootClientId:n,__unstableGetEditorMode:i,getSettings:r}=e(g.store),{get:a}=e(B.store),{getActiveComplementaryArea:l}=e(Xn);return{inserterSidebarToggleRef:t(),insertionPoint:s(),showMostUsedBlocks:a("core","mostUsedBlocks"),blockSectionRootClientId:(()=>{if("zoom-out"===i()){const{sectionRootClientId:e}=h(r());if(e)return e}return n()})(),sidebarIsOpened:!(!l("core")&&!o())}}),[]),{setIsInserterOpened:i}=(0,d.useDispatch)(cn),{disableComplementaryArea:r}=(0,d.useDispatch)(Xn),a=(0,pn.useViewportMatch)("medium","<"),[l,c]=(0,pn.__experimentalUseDialog)({onClose:()=>i(!1),focusOnMount:!0}),u=(0,C.useRef)(),p=(0,C.useCallback)((()=>{i(!1),t.current?.focus()}),[t,i]),m=(0,C.useCallback)((e=>{e.keyCode!==Ci.ESCAPE||e.defaultPrevented||(e.preventDefault(),p())}),[p]),_=(0,T.jsx)("div",{className:"editor-inserter-sidebar__content",children:(0,T.jsx)(Zh,{showMostUsedBlocks:o,showInserterHelpPanel:!0,shouldFocusBlock:a,rootClientId:null!=e?e:s.rootClientId,__experimentalInsertionIndex:s.insertionIndex,__experimentalInitialTab:s.tab,__experimentalInitialCategory:s.category,__experimentalFilterValue:s.filterValue,onPatternCategorySelection:n?()=>r("core"):void 0,ref:u,onClose:p})});return window.__experimentalEnableZoomedOutPatternsTab?(0,T.jsx)("div",{onKeyDown:m,className:"editor-inserter-sidebar",children:_}):(0,T.jsx)("div",{ref:l,...c,className:"editor-inserter-sidebar",children:_})}function qh(){return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)("div",{className:"editor-list-view-sidebar__outline",children:[(0,T.jsxs)("div",{children:[(0,T.jsx)(Tn.__experimentalText,{children:(0,m.__)("Characters:")}),(0,T.jsx)(Tn.__experimentalText,{children:(0,T.jsx)(Td,{})})]}),(0,T.jsxs)("div",{children:[(0,T.jsx)(Tn.__experimentalText,{children:(0,m.__)("Words:")}),(0,T.jsx)(Pd,{})]}),(0,T.jsxs)("div",{children:[(0,T.jsx)(Tn.__experimentalText,{children:(0,m.__)("Time to read:")}),(0,T.jsx)(jd,{})]})]}),(0,T.jsx)(Vi,{})]})}const{Tabs:Qh}=h(Tn.privateApis);function Xh(){const{setIsListViewOpened:e}=(0,d.useDispatch)(cn),{getListViewToggleRef:t}=h((0,d.useSelect)(cn)),s=(0,pn.useFocusOnMount)("firstElement"),o=(0,C.useCallback)((()=>{e(!1),t().current?.focus()}),[t,e]),n=(0,C.useCallback)((e=>{e.keyCode!==Ci.ESCAPE||e.defaultPrevented||(e.preventDefault(),o())}),[o]),[i,r]=(0,C.useState)(null),[a,l]=(0,C.useState)("list-view"),c=(0,C.useRef)(),u=(0,C.useRef)(),p=(0,C.useRef)(),_=(0,pn.useMergeRefs)([s,p,r]);const f=(0,C.useCallback)((()=>{c.current.contains(c.current.ownerDocument.activeElement)?o():function(e){const t=rd.focus.tabbable.find(u.current)[0];if("list-view"===e){const e=rd.focus.tabbable.find(p.current)[0];(c.current.contains(e)?e:t).focus()}else t.focus()}(a)}),[o,a]);return(0,Pn.useShortcut)("core/editor/toggle-list-view",f),(0,T.jsx)("div",{className:"editor-list-view-sidebar",onKeyDown:n,ref:c,children:(0,T.jsxs)(Qh,{onSelect:e=>l(e),selectOnMove:!1,defaultTabId:"list-view",children:[(0,T.jsxs)("div",{className:"editor-list-view-sidebar__header",children:[(0,T.jsx)(Tn.Button,{className:"editor-list-view-sidebar__close-button",icon:An,label:(0,m.__)("Close"),onClick:o,size:"small"}),(0,T.jsxs)(Qh.TabList,{className:"editor-list-view-sidebar__tabs-tablist",ref:u,children:[(0,T.jsx)(Qh.Tab,{className:"editor-list-view-sidebar__tabs-tab",tabId:"list-view",children:(0,m._x)("List View","Post overview")}),(0,T.jsx)(Qh.Tab,{className:"editor-list-view-sidebar__tabs-tab",tabId:"outline",children:(0,m._x)("Outline","Post overview")})]})]}),(0,T.jsx)(Qh.TabPanel,{ref:_,className:"editor-list-view-sidebar__tabs-tabpanel",tabId:"list-view",focusable:!1,children:(0,T.jsx)("div",{className:"editor-list-view-sidebar__list-view-container",children:(0,T.jsx)("div",{className:"editor-list-view-sidebar__list-view-panel-content",children:(0,T.jsx)(g.__experimentalListView,{dropZoneElement:i})})})}),(0,T.jsx)(Qh.TabPanel,{className:"editor-list-view-sidebar__tabs-tabpanel",tabId:"outline",focusable:!1,children:(0,T.jsx)("div",{className:"editor-list-view-sidebar__list-view-container",children:(0,T.jsx)(qh,{})})})]})})}const{Fill:Jh,Slot:em}=(0,Tn.createSlotFill)("ActionsPanel");function tm({setEntitiesSavedStatesCallback:e,closeEntitiesSavedStates:t,isEntitiesSavedStatesOpen:s,forceIsDirtyPublishPanel:o}){const{closePublishSidebar:n,togglePublishSidebar:i}=(0,d.useDispatch)(cn),{publishSidebarOpened:r,isPublishable:a,isDirty:l,hasOtherEntitiesChanges:c}=(0,d.useSelect)((e=>{const{isPublishSidebarOpened:t,isEditedPostPublishable:s,isCurrentPostPublished:o,isEditedPostDirty:n,hasNonPostEntityChanges:i}=e(cn),r=i();return{publishSidebarOpened:t(),isPublishable:!o()&&s(),isDirty:r||n(),hasOtherEntitiesChanges:r}}),[]),u=(0,C.useCallback)((()=>e(!0)),[]);let p;return p=r?(0,T.jsx)(Dc,{onClose:n,forceIsDirty:o,PrePublishExtension:ba.Slot,PostPublishExtension:da.Slot}):a&&!c?(0,T.jsx)("div",{className:"editor-layout__toggle-publish-panel",children:(0,T.jsx)(Tn.Button,{variant:"secondary",className:"editor-layout__toggle-publish-panel-button",onClick:i,"aria-expanded":!1,children:(0,m.__)("Open publish panel")})}):(0,T.jsx)("div",{className:"editor-layout__toggle-entities-saved-states-panel",children:(0,T.jsx)(Tn.Button,{variant:"secondary",className:"editor-layout__toggle-entities-saved-states-panel-button",onClick:u,"aria-expanded":!1,disabled:!l,__experimentalIsFocusable:!0,children:(0,m.__)("Open save panel")})}),(0,T.jsxs)(T.Fragment,{children:[s&&(0,T.jsx)(ir,{close:t}),(0,T.jsx)(em,{bubblesVirtually:!0}),!s&&p]})}function sm({autoFocus:e=!1}){const{switchEditorMode:t}=(0,d.useDispatch)(cn),{shortcut:s,isRichEditingEnabled:o}=(0,d.useSelect)((e=>{const{getEditorSettings:t}=e(cn),{getShortcutRepresentation:s}=e(Pn.store);return{shortcut:s("core/editor/toggle-mode"),isRichEditingEnabled:t().richEditingEnabled}}),[]),n=(0,C.useRef)();return(0,C.useEffect)((()=>{e||n?.current?.focus()}),[e]),(0,T.jsxs)("div",{className:"editor-text-editor",children:[o&&(0,T.jsxs)("div",{className:"editor-text-editor__toolbar",children:[(0,T.jsx)("h2",{children:(0,m.__)("Editing code")}),(0,T.jsx)(Tn.Button,{variant:"tertiary",onClick:()=>t("visual"),shortcut:s,children:(0,m.__)("Exit code editor")})]}),(0,T.jsxs)("div",{className:"editor-text-editor__body",children:[(0,T.jsx)(pd,{ref:n}),(0,T.jsx)(id,{})]})]})}function om({contentRef:e}){const{onNavigateToEntityRecord:t,templateId:s}=(0,d.useSelect)((e=>{const{getEditorSettings:t,getCurrentTemplateId:s}=e(cn);return{onNavigateToEntityRecord:t().onNavigateToEntityRecord,templateId:s()}}),[]),o=(0,d.useSelect)((e=>{var t;return null!==(t=e(b.store).canUser("create","templates"))&&void 0!==t&&t})),[n,i]=(0,C.useState)(!1);return(0,C.useEffect)((()=>{const t=e=>{o&&e.target.classList.contains("is-root-container")&&i(!0)},s=e.current;return s?.addEventListener("dblclick",t),()=>{s?.removeEventListener("dblclick",t)}}),[e,o]),o?(0,T.jsx)(Tn.__experimentalConfirmDialog,{isOpen:n,confirmButtonText:(0,m.__)("Edit template"),onConfirm:()=>{i(!1),t({postId:s,postType:"wp_template"})},onCancel:()=>i(!1),size:"medium",children:(0,m.__)("You’ve tried to select a block that is part of a template, which may be used on other posts and pages. Would you like to edit the template?")}):null}const nm=20;function im({direction:e,resizeWidthBy:t}){const s=`resizable-editor__resize-help-${e}`;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Tn.Tooltip,{text:(0,m.__)("Drag to resize"),children:(0,T.jsx)(Tn.__unstableMotion.button,{className:`editor-resizable-editor__resize-handle is-${e}`,"aria-label":(0,m.__)("Drag to resize"),"aria-describedby":s,onKeyDown:function(s){const{keyCode:o}=s;"left"===e&&o===Ci.LEFT||"right"===e&&o===Ci.RIGHT?t(nm):("left"===e&&o===Ci.RIGHT||"right"===e&&o===Ci.LEFT)&&t(-nm)},variants:{active:{opacity:1,scaleY:1.3}},whileFocus:"active",whileHover:"active",whileTap:"active",role:"separator","aria-orientation":"vertical"},"handle")}),(0,T.jsx)(Tn.VisuallyHidden,{id:s,children:(0,m.__)("Use left and right arrow keys to resize the canvas.")})]})}const rm={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0};const am=function({className:e,enableResizing:t,height:s,children:o}){const[n,i]=(0,C.useState)("100%"),r=(0,C.useRef)(),a=(0,C.useCallback)((e=>{r.current&&i(r.current.offsetWidth+e)}),[]);return(0,T.jsx)(Tn.ResizableBox,{className:jn("editor-resizable-editor",e,{"is-resizable":t}),ref:e=>{r.current=e?.resizable},size:{width:t?n:"100%",height:t&&s?s:"100%"},onResizeStop:(e,t,s)=>{i(s.style.width)},minWidth:300,maxWidth:"100%",maxHeight:"100%",enable:{left:t,right:t},showHandle:t,resizeRatio:2,handleComponent:{left:(0,T.jsx)(im,{direction:"left",resizeWidthBy:a}),right:(0,T.jsx)(im,{direction:"right",resizeWidthBy:a})},handleClasses:void 0,handleStyles:{left:rm,right:rm},children:o})},lm=500;function cm(e,t,s){return Math.min(Math.max(e,t),s)}function dm(e,t,s){const o=e-cm(e,s.left,s.right),n=t-cm(t,s.top,s.bottom);return Math.sqrt(o*o+n*n)}function um({isEnabled:e=!0}={}){const{getEnabledClientIdsTree:t,getBlockName:s,getBlockOrder:o}=h((0,d.useSelect)(g.store)),{selectBlock:n}=(0,d.useDispatch)(g.store);return(0,pn.useRefEffect)((i=>{if(!e)return;const r=e=>{(e.target===i||e.target.classList.contains("is-root-container"))&&((e,r)=>{const a=t().flatMap((({clientId:e})=>{const t=s(e);if("core/template-part"===t)return[];if("core/post-content"===t){const t=o(e);if(t.length)return t}return[e]}));let l=1/0,c=null;for(const t of a){const s=i.querySelector(`[data-block="${t}"]`);if(!s)continue;const o=dm(e,r,s.getBoundingClientRect());o<l&&o<lm&&(l=o,c=t)}c&&n(c)})(e.clientX,e.clientY)};return i.addEventListener("click",r),()=>i.removeEventListener("click",r)}),[e])}const{LayoutStyle:pm,useLayoutClasses:hm,useLayoutStyles:mm,ExperimentalBlockCanvas:gm,useFlashEditableBlocks:_m}=h(g.privateApis),fm=[V,L,U,F];function bm(e){for(let t=0;t<e.length;t++){if("core/post-content"===e[t].name)return e[t].attributes;if(e[t].innerBlocks.length){const s=bm(e[t].innerBlocks);if(s)return s}}}function ym(e){for(let t=0;t<e.length;t++)if("core/post-content"===e[t].name)return!0;return!1}const xm=function({autoFocus:e,styles:t,disableIframe:s=!1,iframeProps:o,contentRef:n,className:i}){const[r,a]=(0,pn.useResizeObserver)(),l=(0,pn.useViewportMatch)("small","<"),{renderingMode:u,postContentAttributes:p,editedPostTemplate:h={},wrapperBlockName:m,wrapperUniqueId:_,deviceType:f,isFocusedEntity:y,isDesignPostType:x,postType:v,isPreview:w}=(0,d.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:s,getCurrentTemplateId:o,getEditorSettings:n,getRenderingMode:i,getDeviceType:r}=e(cn),{getPostType:a,canUser:l,getEditedEntityRecord:c}=e(b.store),d=s(),u=i();let p;d===V?p="core/block":"post-only"===u&&(p="core/post-content");const h=n(),m=h.supportsTemplateMode,g=a(d),_=l("create","templates"),f=o(),y=f?c("postType",L,f):void 0;return{renderingMode:u,postContentAttributes:h.postContentAttributes,isDesignPostType:fm.includes(d),editedPostTemplate:g?.viewable&&m&&_?y:void 0,wrapperBlockName:p,wrapperUniqueId:t(),deviceType:r(),isFocusedEntity:!!h.onNavigateToPreviousEntityRecord,postType:d,isPreview:h.__unstableIsPreviewMode}}),[]),{isCleanNewPost:S}=(0,d.useSelect)(cn),{hasRootPaddingAwareAlignments:k,themeHasDisabledLayoutStyles:P,themeSupportsLayout:j,isZoomOutMode:E}=(0,d.useSelect)((e=>{const{getSettings:t,__unstableGetEditorMode:s}=e(g.store),o=t();return{themeHasDisabledLayoutStyles:o.disableLayoutStyles,themeSupportsLayout:o.supportsLayout,hasRootPaddingAwareAlignments:o.__experimentalFeatures?.useRootPaddingAwareAlignments,isZoomOutMode:"zoom-out"===s()}}),[]),B=(0,g.__experimentalUseResizeCanvas)(f),[I]=(0,g.useSettings)("layout"),N=(0,C.useMemo)((()=>"post-only"!==u||x?{type:"default"}:j?{...I,type:"constrained"}:{type:"default"}),[u,j,I,x]),A=(0,C.useMemo)((()=>{if(!h?.content&&!h?.blocks&&p)return p;if(h?.blocks)return bm(h?.blocks);const e="string"==typeof h?.content?h?.content:"";return bm((0,c.parse)(e))||{}}),[h?.content,h?.blocks,p]),D=(0,C.useMemo)((()=>{if(!h?.content&&!h?.blocks)return!1;if(h?.blocks)return ym(h?.blocks);const e="string"==typeof h?.content?h?.content:"";return ym((0,c.parse)(e))||!1}),[h?.content,h?.blocks]),{layout:R={},align:M=""}=A||{},O=hm(A,"core/post-content"),z=jn({"is-layout-flow":!j},j&&O,M&&`align${M}`),H=mm(A,"core/post-content",".block-editor-block-list__layout.is-root-container"),G=(0,C.useMemo)((()=>R&&("constrained"===R?.type||R?.inherit||R?.contentSize||R?.wideSize)?{...I,...R,type:"constrained"}:{...I,...R,type:"default"}),[R?.type,R?.inherit,R?.contentSize,R?.wideSize,I]),$=p?G:N,W="default"!==$?.type||D?$:N,K=(0,g.__unstableUseTypingObserver)(),Z=(0,C.useRef)();(0,C.useEffect)((()=>{e&&S()&&Z?.current?.focus()}),[e,S]);const Y=(0,C.useRef)(),q=(0,g.__unstableUseTypewriter)();n=(0,pn.useMergeRefs)([Y,n,"post-only"===u?q:null,_m({isEnabled:"template-locked"===u}),um({isEnabled:"template-locked"===u})]);const Q=E?{scale:"default",frameSize:"20px"}:{},X=v===U,J=[U,F,V].includes(v)&&!w&&!l&&!E,ee=!s||["Tablet","Mobile"].includes(f),te=(0,C.useMemo)((()=>[...null!=t?t:[],{css:`.is-root-container{display:flow-root;${J?"min-height:0!important;":""}}`}]),[t,J]);return(0,T.jsx)("div",{className:jn("editor-visual-editor","edit-post-visual-editor",i,{"has-padding":y||J,"is-resizable":J,"is-iframed":ee}),children:(0,T.jsx)(am,{enableResizing:J,height:a.height&&!X?a.height:"100%",children:(0,T.jsxs)(gm,{shouldIframe:ee,contentRef:n,styles:te,height:"100%",iframeProps:{...o,...Q,style:{...o?.style,...B}},children:[j&&!P&&"post-only"===u&&!x&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(pm,{selector:".editor-visual-editor__post-title-wrapper",layout:N}),(0,T.jsx)(pm,{selector:".block-editor-block-list__layout.is-root-container",layout:W}),M&&(0,T.jsx)(pm,{css:".is-root-container.alignwide { max-width: var(--wp--style--global--wide-size); margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignwide:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: var(--wp--style--global--wide-size);}\n\t\t.is-root-container.alignfull { max-width: none; margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignfull:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: none;}"}),H&&(0,T.jsx)(pm,{layout:G,css:H})]}),"post-only"===u&&!x&&(0,T.jsx)("div",{className:jn("editor-visual-editor__post-title-wrapper","edit-post-visual-editor__post-title-wrapper",{"has-global-padding":k}),contentEditable:!1,ref:K,style:{marginTop:"4rem"},children:(0,T.jsx)(ud,{ref:Z})}),(0,T.jsxs)(g.RecursionProvider,{blockName:m,uniqueId:_,children:[(0,T.jsx)(g.BlockList,{className:jn("is-"+f.toLowerCase()+"-preview","post-only"!==u||x?"wp-site-blocks":`${z} wp-block-post-content`),layout:$,dropZoneElement:s?Y.current:Y.current?.parentNode,__unstableDisableDropZone:"template-locked"===u}),"template-locked"===u&&(0,T.jsx)(om,{contentRef:Y})]}),J&&r]})})})},vm={header:(0,m.__)("Editor top bar"),body:(0,m.__)("Editor content"),sidebar:(0,m.__)("Editor settings"),actions:(0,m.__)("Editor publish"),footer:(0,m.__)("Editor footer")};function wm({className:e,enableRegionNavigation:t,styles:s,children:o,forceIsDirty:n,contentRef:i,disableIframe:r,autoFocus:a,customSaveButton:l,customSavePanel:c,forceDisableBlockTools:u,title:p,iframeProps:h}){const{mode:_,isRichEditingEnabled:f,isInserterOpened:b,isListViewOpened:y,isDistractionFree:x,isPreviewMode:v,previousShortcut:w,nextShortcut:S,showBlockBreadcrumbs:k,documentLabel:P,blockEditorMode:j}=(0,d.useSelect)((e=>{const{get:t}=e(B.store),{getEditorSettings:s,getPostTypeLabel:o}=e(cn),n=s(),i=o();return{mode:e(cn).getEditorMode(),isRichEditingEnabled:n.richEditingEnabled,isInserterOpened:e(cn).isInserterOpened(),isListViewOpened:e(cn).isListViewOpened(),isDistractionFree:t("core","distractionFree"),isPreviewMode:n.__unstableIsPreviewMode,previousShortcut:e(Pn.store).getAllShortcutKeyCombinations("core/editor/previous-region"),nextShortcut:e(Pn.store).getAllShortcutKeyCombinations("core/editor/next-region"),showBlockBreadcrumbs:t("core","showBlockBreadcrumbs"),documentLabel:i||(0,m._x)("Document","noun"),blockEditorMode:e(g.store).__unstableGetEditorMode()}}),[]),E=(0,pn.useViewportMatch)("large"),I=(0,pn.useViewportMatch)("medium"),N=y?(0,m.__)("Document Overview"):(0,m.__)("Block Library"),[A,D]=(0,C.useState)(!1),R=(0,C.useCallback)((e=>{"function"==typeof A&&A(e),D(!1)}),[A]);return(0,T.jsx)(xi,{enableRegionNavigation:t,isDistractionFree:x&&E,className:jn("editor-editor-interface",e,{"is-entity-save-view-open":!!A,"is-distraction-free":x&&E&&!v}),labels:{...vm,secondarySidebar:N},header:!v&&(0,T.jsx)(Kh,{forceIsDirty:n,setEntitiesSavedStatesCallback:D,customSaveButton:l,forceDisableBlockTools:u,title:p}),editorNotices:(0,T.jsx)(Zi,{}),secondarySidebar:!v&&"visual"===_&&(b&&(0,T.jsx)(Yh,{})||y&&(0,T.jsx)(Xh,{})),sidebar:!v&&!x&&(0,T.jsx)(gi.Slot,{scope:"core"}),content:(0,T.jsxs)(T.Fragment,{children:[!x&&!v&&(0,T.jsx)(Zi,{}),(0,T.jsx)(nh.Slot,{children:([e])=>e||(0,T.jsxs)(T.Fragment,{children:[!v&&("text"===_||!f)&&(0,T.jsx)(sm,{autoFocus:a}),!v&&!I&&"visual"===_&&(0,T.jsx)(g.BlockToolbar,{hideDragHandle:!0}),(v||f&&"visual"===_)&&(0,T.jsx)(xm,{styles:s,contentRef:i,disableIframe:r,autoFocus:a,iframeProps:h}),o]})})]}),footer:!v&&!x&&I&&k&&f&&"zoom-out"!==j&&"visual"===_&&(0,T.jsx)(g.BlockBreadcrumb,{rootLabelText:P}),actions:v?void 0:c||(0,T.jsx)(tm,{closeEntitiesSavedStates:R,isEntitiesSavedStatesOpen:A,setEntitiesSavedStatesCallback:D,forceIsDirtyPublishPanel:n}),shortcuts:{previous:w,next:S}})}const{OverridesPanel:Sm}=h(_n.privateApis);function km(){return(0,d.useSelect)((e=>"wp_block"===e(cn).getCurrentPostType()),[])?(0,T.jsx)(Sm,{}):null}const Pm=(0,T.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T.jsx)(j.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})});"stream"in Blob.prototype||Object.defineProperty(Blob.prototype,"stream",{value(){return new Response(this).body}}),"setBigUint64"in DataView.prototype||Object.defineProperty(DataView.prototype,"setBigUint64",{value(e,t,s){const o=Number(0xffffffffn&t),n=Number(t>>32n);this.setUint32(e+(s?0:4),o,s),this.setUint32(e+(s?4:0),n,s)}});var Cm=e=>new DataView(new ArrayBuffer(e)),jm=e=>new Uint8Array(e.buffer||e),Tm=e=>(new TextEncoder).encode(String(e)),Em=e=>Math.min(4294967295,Number(e)),Bm=e=>Math.min(65535,Number(e));function Im(e,t){if(void 0===t||t instanceof Date||(t=new Date(t)),e instanceof File)return{isFile:1,t:t||new Date(e.lastModified),i:e.stream()};if(e instanceof Response)return{isFile:1,t:t||new Date(e.headers.get("Last-Modified")||Date.now()),i:e.body};if(void 0===t)t=new Date;else if(isNaN(t))throw new Error("Invalid modification date.");if(void 0===e)return{isFile:0,t};if("string"==typeof e)return{isFile:1,t,i:Tm(e)};if(e instanceof Blob)return{isFile:1,t,i:e.stream()};if(e instanceof Uint8Array||e instanceof ReadableStream)return{isFile:1,t,i:e};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))return{isFile:1,t,i:jm(e)};if(Symbol.asyncIterator in e)return{isFile:1,t,i:Nm(e[Symbol.asyncIterator]())};throw new TypeError("Unsupported input format.")}function Nm(e,t=e){return new ReadableStream({async pull(t){let s=0;for(;t.desiredSize>s;){const o=await e.next();if(!o.value){t.close();break}{const e=Am(o.value);t.enqueue(e),s+=e.byteLength}}},cancel(e){t.throw?.(e)}})}function Am(e){return"string"==typeof e?Tm(e):e instanceof Uint8Array?e:jm(e)}function Dm(e,t,s){let[o,n]=function(e){return e?e instanceof Uint8Array?[e,1]:ArrayBuffer.isView(e)||e instanceof ArrayBuffer?[jm(e),1]:[Tm(e),0]:[void 0,0]}(t);if(e instanceof File)return{o:Mm(o||Tm(e.name)),u:BigInt(e.size),l:n};if(e instanceof Response){const t=e.headers.get("content-disposition"),i=t&&t.match(/;\s*filename\*?=["']?(.*?)["']?$/i),r=i&&i[1]||e.url&&new URL(e.url).pathname.split("/").findLast(Boolean),a=r&&decodeURIComponent(r),l=s||+e.headers.get("content-length");return{o:Mm(o||Tm(a)),u:BigInt(l),l:n}}return o=Mm(o,void 0!==e||void 0!==s),"string"==typeof e?{o,u:BigInt(Tm(e).length),l:n}:e instanceof Blob?{o,u:BigInt(e.size),l:n}:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?{o,u:BigInt(e.byteLength),l:n}:{o,u:Rm(e,s),l:n}}function Rm(e,t){return t>-1?BigInt(t):e?void 0:0n}function Mm(e,t=1){if(!e||e.every((e=>47===e)))throw new Error("The file must have a name.");if(t)for(;47===e[e.length-1];)e=e.subarray(0,-1);else 47!==e[e.length-1]&&(e=new Uint8Array([...e,47]));return e}var Om=new Uint32Array(256);for(let e=0;e<256;++e){let t=e;for(let e=0;e<8;++e)t=t>>>1^(1&t&&3988292384);Om[e]=t}function Lm(e,t=0){t^=-1;for(var s=0,o=e.length;s<o;s++)t=t>>>8^Om[255&t^e[s]];return(-1^t)>>>0}function Fm(e,t,s=0){const o=e.getSeconds()>>1|e.getMinutes()<<5|e.getHours()<<11,n=e.getDate()|e.getMonth()+1<<5|e.getFullYear()-1980<<9;t.setUint16(s,o,1),t.setUint16(s+2,n,1)}function Vm({o:e,l:t},s){return 8*(!t||(s??function(e){try{Um.decode(e)}catch{return 0}return 1}(e)))}var Um=new TextDecoder("utf8",{fatal:1});function zm(e,t=0){const s=Cm(30);return s.setUint32(0,1347093252),s.setUint32(4,754976768|t),Fm(e.t,s,10),s.setUint16(26,e.o.length,1),jm(s)}async function*Hm(e){let{i:t}=e;if("then"in t&&(t=await t),t instanceof Uint8Array)yield t,e.m=Lm(t,0),e.u=BigInt(t.length);else{e.u=0n;const s=t.getReader();for(;;){const{value:t,done:o}=await s.read();if(o)break;e.m=Lm(t,e.m),e.u+=BigInt(t.length),yield t}}}function Gm(e,t){const s=Cm(16+(t?8:0));return s.setUint32(0,1347094280),s.setUint32(4,e.isFile?e.m:0,1),t?(s.setBigUint64(8,e.u,1),s.setBigUint64(16,e.u,1)):(s.setUint32(8,Em(e.u),1),s.setUint32(12,Em(e.u),1)),jm(s)}function $m(e,t,s=0,o=0){const n=Cm(46);return n.setUint32(0,1347092738),n.setUint32(4,755182848),n.setUint16(8,2048|s),Fm(e.t,n,12),n.setUint32(16,e.isFile?e.m:0,1),n.setUint32(20,Em(e.u),1),n.setUint32(24,Em(e.u),1),n.setUint16(28,e.o.length,1),n.setUint16(30,o,1),n.setUint16(40,e.isFile?33204:16893,1),n.setUint32(42,Em(t),1),jm(n)}function Wm(e,t,s){const o=Cm(s);return o.setUint16(0,1,1),o.setUint16(2,s-4,1),16&s&&(o.setBigUint64(4,e.u,1),o.setBigUint64(12,e.u,1)),o.setBigUint64(s-8,t,1),jm(o)}function Km(e){return e instanceof File||e instanceof Response?[[e],[e]]:[[e.input,e.name,e.size],[e.input,e.lastModified]]}function Zm(e,t={}){const s={"Content-Type":"application/zip","Content-Disposition":"attachment"};return("bigint"==typeof t.length||Number.isInteger(t.length))&&t.length>0&&(s["Content-Length"]=String(t.length)),t.metadata&&(s["Content-Length"]=String((e=>function(e){let t=BigInt(22),s=0n,o=0;for(const n of e){if(!n.o)throw new Error("Every file must have a non-empty name.");if(void 0===n.u)throw new Error(`Missing size for file "${(new TextDecoder).decode(n.o)}".`);const e=n.u>=0xffffffffn,i=s>=0xffffffffn;s+=BigInt(46+n.o.length+(e&&8))+n.u,t+=BigInt(n.o.length+46+(12*i|28*e)),o||(o=e)}return(o||s>=0xffffffffn)&&(t+=BigInt(76)),t+s}(function*(e){for(const t of e)yield Dm(...Km(t)[0])}(e)))(t.metadata))),new Response(Ym(e,t),{headers:s})}function Ym(e,t={}){const s=function(e){const t=e[Symbol.iterator in e?Symbol.iterator:Symbol.asyncIterator]();return{async next(){const e=await t.next();if(e.done)return e;const[s,o]=Km(e.value);return{done:0,value:Object.assign(Im(...o),Dm(...s))}},throw:t.throw?.bind(t),[Symbol.asyncIterator](){return this}}}(e);return Nm(async function*(e,t){const s=[];let o=0n,n=0n,i=0;for await(const r of e){const e=Vm(r,t.buffersAreUTF8);yield zm(r,e),yield new Uint8Array(r.o),r.isFile&&(yield*Hm(r));const a=r.u>=0xffffffffn,l=12*(o>=0xffffffffn)|28*a;yield Gm(r,a),s.push($m(r,o,e,l)),s.push(r.o),l&&s.push(Wm(r,o,l)),a&&(o+=8n),n++,o+=BigInt(46+r.o.length)+r.u,i||(i=a)}let r=0n;for(const e of s)yield e,r+=BigInt(e.length);if(i||o>=0xffffffffn){const e=Cm(76);e.setUint32(0,1347094022),e.setBigUint64(4,BigInt(44),1),e.setUint32(12,755182848),e.setBigUint64(24,n,1),e.setBigUint64(32,n,1),e.setBigUint64(40,r,1),e.setBigUint64(48,o,1),e.setUint32(56,1347094023),e.setBigUint64(64,o+r,1),e.setUint32(72,1,1),yield jm(e)}const a=Cm(22);a.setUint32(0,1347093766),a.setUint16(8,Bm(n),1),a.setUint16(10,Bm(n),1),a.setUint32(12,Em(r),1),a.setUint32(16,Em(o),1),yield jm(a)}(s,t),s)}const{PATTERN_TYPES:qm}=h(_n.privateApis);function Qm(e){return JSON.stringify({__file:e.type,title:e.title||e.name,content:e?.patternPost?.content?.raw||e.content,syncStatus:e?.patternPost?.wp_pattern_sync_status||e.wp_pattern_sync_status},null,2)}const Xm={id:"export-pattern",label:(0,m.__)("Export as JSON"),supportsBulk:!0,isEligible:e=>!!e.type&&e.type===qm.user,callback:async e=>{if(1===e.length)return(0,tl.downloadBlob)(`${_h(e[0].title||e[0].name)}.json`,Qm(e[0]),"application/json");const t={},s=e.map((e=>{const s=_h(e.title||e.name);return t[s]=(t[s]||0)+1,{name:s+(t[s]>1?"-"+(t[s]-1):"")+".json",lastModified:new Date,input:Qm(e)}}));return(0,tl.downloadBlob)((0,m.__)("patterns-export")+".zip",await Zm(s).blob(),"application/zip")}},{PATTERN_TYPES:Jm,CreatePatternModalContents:eg,useDuplicatePatternProps:tg}=h(_n.privateApis);function sg(e){return!!e&&([e.source,e.templatePart?.source].includes(z.custom)&&!e.has_theme_file&&!e.templatePart?.has_theme_file)}function og(e){return"string"==typeof e.title?(0,Mo.decodeEntities)(e.title):(0,Mo.decodeEntities)(e.title?.rendered||"")}const ng={id:"delete-post",label:(0,m.__)("Delete"),isPrimary:!0,icon:Pm,isEligible:e=>[L,F].includes(e.type)?sg(e):e.type===Jm.user,supportsBulk:!0,hideModalHeader:!0,RenderModal:({items:e,closeModal:t,onActionStart:s,onActionPerformed:o})=>{const[n,i]=(0,C.useState)(!1),{removeTemplates:r}=h((0,d.useDispatch)(cn));return(0,T.jsxs)(Tn.__experimentalVStack,{spacing:"5",children:[(0,T.jsx)(Tn.__experimentalText,{children:e.length>1?(0,m.sprintf)((0,m._n)("Delete %d item?","Delete %d items?",e.length),e.length):(0,m.sprintf)((0,m.__)('Delete "%s"?'),og(e[0]))}),(0,T.jsxs)(Tn.__experimentalHStack,{justify:"right",children:[(0,T.jsx)(Tn.Button,{variant:"tertiary",onClick:t,disabled:n,__experimentalIsFocusable:!0,children:(0,m.__)("Cancel")}),(0,T.jsx)(Tn.Button,{variant:"primary",onClick:async()=>{i(!0),s&&s(e),await r(e,{allowUndo:!1}),o?.(e),i(!1),t()},isBusy:n,disabled:n,__experimentalIsFocusable:!0,children:(0,m.__)("Delete")})]})]})}};function ig(e,t,s){const o=(0,d.useRegistry)();return(0,C.useMemo)((()=>({...s,isEligible:n=>s.isEligible(n)&&o.select(b.store).canUser(e,t,n.id)})),[s,o,e,t])}const rg={id:"move-to-trash",label:(0,m.__)("Move to Trash"),isPrimary:!0,icon:Pm,isEligible:e=>!["auto-draft","trash"].includes(e.status),supportsBulk:!0,hideModalHeader:!0,RenderModal:({items:e,closeModal:t,onActionStart:s,onActionPerformed:o})=>{const[n,i]=(0,C.useState)(!1),{createSuccessNotice:r,createErrorNotice:a}=(0,d.useDispatch)(fs.store),{deleteEntityRecord:l}=(0,d.useDispatch)(b.store);return(0,T.jsxs)(Tn.__experimentalVStack,{spacing:"5",children:[(0,T.jsx)(Tn.__experimentalText,{children:1===e.length?(0,m.sprintf)((0,m.__)('Are you sure you want to move to trash "%s"?'),og(e[0])):(0,m.sprintf)((0,m._n)("Are you sure you want to move to trash %d item?","Are you sure you want to move to trash %d items?",e.length),e.length)}),(0,T.jsxs)(Tn.__experimentalHStack,{justify:"right",children:[(0,T.jsx)(Tn.Button,{variant:"tertiary",onClick:t,disabled:n,__experimentalIsFocusable:!0,children:(0,m.__)("Cancel")}),(0,T.jsx)(Tn.Button,{variant:"primary",onClick:async()=>{i(!0),s&&s(e);const n=await Promise.allSettled(e.map((e=>l("postType",e.type,e.id,{},{throwOnError:!0}))));if(n.every((({status:e})=>"fulfilled"===e))){let t;t=1===n.length?(0,m.sprintf)((0,m.__)('"%s" moved to trash.'),og(e[0])):(0,m.sprintf)((0,m._n)("%s item moved to trash.","%s items moved to trash.",e.length),e.length),r(t,{type:"snackbar",id:"move-to-trash-action"})}else{let e;if(1===n.length)e=n[0].reason?.message?n[0].reason.message:(0,m.__)("An error occurred while moving to trash the item.");else{const t=new Set,s=n.filter((({status:e})=>"rejected"===e));for(const e of s)e.reason?.message&&t.add(e.reason.message);e=0===t.size?(0,m.__)("An error occurred while moving to trash the items."):1===t.size?(0,m.sprintf)((0,m.__)("An error occurred while moving to trash the item: %s"),[...t][0]):(0,m.sprintf)((0,m.__)("Some errors occurred while moving to trash the items: %s"),[...t].join(","))}a(e,{type:"snackbar"})}o&&o(e),i(!1),t()},isBusy:n,disabled:n,__experimentalIsFocusable:!0,children:(0,m.__)("Trash")})]})]})}};const ag={id:"view-post",label:(0,m.__)("View"),isPrimary:!0,icon:hu,isEligible:e=>"trash"!==e.status,callback(e,t){const s=e[0];window.open(s.link,"_blank"),t&&t(e)}},lg={id:"view-post-revisions",context:"list",label(e){var t;const s=null!==(t=e[0]._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0;return(0,m.sprintf)((0,m.__)("View revisions (%s)"),s)},isEligible:e=>{var t,s;if("trash"===e.status)return!1;const o=null!==(t=e?._links?.["predecessor-version"]?.[0]?.id)&&void 0!==t?t:null,n=null!==(s=e?._links?.["version-history"]?.[0]?.count)&&void 0!==s?s:0;return o&&n>1},callback(e,t){const s=e[0],o=(0,S.addQueryArgs)("revision.php",{revision:s?._links?.["predecessor-version"]?.[0]?.id});document.location.href=o,t&&t(e)}},cg={id:"rename-post",label:(0,m.__)("Rename"),isEligible(e){if("trash"===e.status)return!1;if(![L,F,...Object.values(Jm)].includes(e.type))return!0;if(e.type===L)return sg(e)&&e.is_custom;const t=e.type===F,s=e.type===Jm.user||t&&(e.isCustom||e.source===z.custom),o=t&&(e.templatePart?.has_theme_file||e.has_theme_file);return s&&!o},RenderModal:({items:e,closeModal:t,onActionPerformed:s})=>{const[o]=e,n=(0,Mo.decodeEntities)("string"==typeof o.title?o.title:o.title.rendered),[i,r]=(0,C.useState)((()=>n)),{editEntityRecord:a,saveEditedEntityRecord:l}=(0,d.useDispatch)(b.store),{createSuccessNotice:c,createErrorNotice:u}=(0,d.useDispatch)(fs.store);return(0,T.jsx)("form",{onSubmit:async function(n){n.preventDefault();try{await a("postType",o.type,o.id,{title:i}),r(""),t(),await l("postType",o.type,o.id,{throwOnError:!0}),c((0,m.__)("Name updated"),{type:"snackbar"}),s?.(e)}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,m.__)("An error occurred while updating the name");u(t,{type:"snackbar"})}},children:(0,T.jsxs)(Tn.__experimentalVStack,{spacing:"5",children:[(0,T.jsx)(Tn.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,m.__)("Name"),value:i,onChange:r,required:!0}),(0,T.jsxs)(Tn.__experimentalHStack,{justify:"right",children:[(0,T.jsx)(Tn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t()},children:(0,m.__)("Cancel")}),(0,T.jsx)(Tn.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,m.__)("Save")})]})]})})}};(0,m._x)("Duplicate","action label");const dg={id:"reset-template",label:(0,m.__)("Reset"),isEligible:e=>Oo(e),icon:_l,supportsBulk:!0,hideModalHeader:!0,RenderModal:({items:e,closeModal:t,onActionStart:s,onActionPerformed:o})=>{const[n,i]=(0,C.useState)(!1),{revertTemplate:r}=h((0,d.useDispatch)(cn)),{saveEditedEntityRecord:a}=(0,d.useDispatch)(b.store),{createSuccessNotice:l,createErrorNotice:c}=(0,d.useDispatch)(fs.store);return(0,T.jsxs)(Tn.__experimentalVStack,{spacing:"5",children:[(0,T.jsx)(Tn.__experimentalText,{children:(0,m.__)("Reset to default and clear all customizations?")}),(0,T.jsxs)(Tn.__experimentalHStack,{justify:"right",children:[(0,T.jsx)(Tn.Button,{variant:"tertiary",onClick:t,disabled:n,__experimentalIsFocusable:!0,children:(0,m.__)("Cancel")}),(0,T.jsx)(Tn.Button,{variant:"primary",onClick:async()=>{i(!0),s&&s(e),await(async()=>{try{for(const t of e)await r(t,{allowUndo:!1}),await a("postType",t.type,t.id);l(e.length>1?(0,m.sprintf)((0,m.__)("%s items reset."),e.length):(0,m.sprintf)((0,m.__)('"%s" reset.'),(0,Mo.decodeEntities)(og(e[0]))),{type:"snackbar",id:"revert-template-action"})}catch(t){let s;s=e[0].type===L?1===e.length?(0,m.__)("An error occurred while reverting the template."):(0,m.__)("An error occurred while reverting the templates."):1===e.length?(0,m.__)("An error occurred while reverting the template part."):(0,m.__)("An error occurred while reverting the template parts.");const o=t.message&&"unknown_error"!==t.code?t.message:s;c(o,{type:"snackbar"})}})(),o?.(e),i(!1),t()},isBusy:n,disabled:n,__experimentalIsFocusable:!0,children:(0,m.__)("Reset")})]})]})}},ug={id:"duplicate-pattern",label:(0,m._x)("Duplicate","action label"),isEligible:e=>e.type!==F,modalHeader:(0,m._x)("Duplicate pattern","action label"),RenderModal:({items:e,closeModal:t})=>{const[s]=e,o=s.type===Jm.theme,n=tg({pattern:o||!s.patternPost?s:s.patternPost,onSuccess:()=>t()});return(0,T.jsx)(eg,{onClose:t,confirmLabel:(0,m._x)("Duplicate","action label"),...n})}},pg={id:"duplicate-template-part",label:(0,m._x)("Duplicate","action label"),isEligible:e=>e.type===F,modalHeader:(0,m._x)("Duplicate template part","action label"),RenderModal:({items:e,closeModal:t})=>{const[s]=e,{createSuccessNotice:o}=(0,d.useDispatch)(fs.store);return(0,T.jsx)(vh,{blocks:s.blocks,defaultArea:s.templatePart?.area||s.area,defaultTitle:(0,m.sprintf)((0,m.__)("%s (Copy)"),s.title),onCreate:function(){o((0,m.sprintf)((0,m.__)('"%s" duplicated.'),s.title),{type:"snackbar",id:"edit-site-patterns-success"}),t()},onError:t,confirmLabel:(0,m._x)("Duplicate","action label")})}};function hg({postType:e,onActionPerformed:t,context:s}){const{postTypeObject:o,resource:n,cachedCanUserResolvers:i,userCanCreatePostType:r}=(0,d.useSelect)((t=>{const{getPostType:s,getCachedResolvers:o,canUser:n}=t(b.store),i=s(e),r=i?.rest_base||"";return{postTypeObject:i,resource:r,cachedCanUserResolvers:o()?.canUser,userCanCreatePostType:n("create",r)}}),[e]),a=function(e){return ig("delete",e,rg)}(n),l=function(e){const{createSuccessNotice:t,createErrorNotice:s}=(0,d.useDispatch)(fs.store),{deleteEntityRecord:o}=(0,d.useDispatch)(b.store);return ig("delete",e,(0,C.useMemo)((()=>({id:"permanently-delete",label:(0,m.__)("Permanently delete"),supportsBulk:!0,isEligible:({status:e})=>"trash"===e,async callback(e,n){const i=await Promise.allSettled(e.map((e=>o("postType",e.type,e.id,{force:!0},{throwOnError:!0}))));if(i.every((({status:e})=>"fulfilled"===e))){let s;s=1===i.length?(0,m.sprintf)((0,m.__)('"%s" permanently deleted.'),og(e[0])):(0,m.__)("The posts were permanently deleted."),t(s,{type:"snackbar",id:"permanently-delete-post-action"}),n&&n(e)}else{let e;if(1===i.length)e=i[0].reason?.message?i[0].reason.message:(0,m.__)("An error occurred while permanently deleting the post.");else{const t=new Set,s=i.filter((({status:e})=>"rejected"===e));for(const e of s)e.reason?.message&&t.add(e.reason.message);e=0===t.size?(0,m.__)("An error occurred while permanently deleting the posts."):1===t.size?(0,m.sprintf)((0,m.__)("An error occurred while permanently deleting the posts: %s"),[...t][0]):(0,m.sprintf)((0,m.__)("Some errors occurred while permanently deleting the posts: %s"),[...t].join(","))}s(e,{type:"snackbar"})}}})),[t,s,o]))}(n),c=function(e){return ig("update",e,cg)}(n),u=function(e){const{createSuccessNotice:t,createErrorNotice:s}=(0,d.useDispatch)(fs.store),{editEntityRecord:o,saveEditedEntityRecord:n}=(0,d.useDispatch)(b.store);return ig("update",e,(0,C.useMemo)((()=>({id:"restore",label:(0,m.__)("Restore"),isPrimary:!0,icon:_l,supportsBulk:!0,isEligible:({status:e})=>"trash"===e,async callback(e,i){await Promise.allSettled(e.map((e=>o("postType",e.type,e.id,{status:"draft"}))));const r=await Promise.allSettled(e.map((e=>n("postType",e.type,e.id,{throwOnError:!0}))));if(r.every((({status:e})=>"fulfilled"===e))){let s;s=1===e.length?(0,m.sprintf)((0,m.__)('"%s" has been restored.'),og(e[0])):"page"===e[0].type?(0,m.sprintf)((0,m.__)("%d pages have been restored."),e.length):(0,m.sprintf)((0,m.__)("%d posts have been restored."),e.length),t(s,{type:"snackbar",id:"restore-post-action"}),i&&i(e)}else{let e;if(1===r.length)e=r[0].reason?.message?r[0].reason.message:(0,m.__)("An error occurred while restoring the post.");else{const t=new Set,s=r.filter((({status:e})=>"rejected"===e));for(const e of s)e.reason?.message&&t.add(e.reason.message);e=0===t.size?(0,m.__)("An error occurred while restoring the posts."):1===t.size?(0,m.sprintf)((0,m.__)("An error occurred while restoring the posts: %s"),[...t][0]):(0,m.sprintf)((0,m.__)("Some errors occurred while restoring the posts: %s"),[...t].join(","))}s(e,{type:"snackbar"})}}})),[t,s,o,n]))}(n),p=[L,F].includes(e),h=e===V,g=!!o,_=!!o?.supports?.revisions,f=!!o?.supports?.title;return(0,C.useMemo)((()=>{if(!g)return[];let e=[o?.viewable&&ag,_&&lg,!1,p&&r&&pg,h&&r&&ug,f&&c,h&&Xm,p?dg:u,p||h?ng:a,!p&&l].filter(Boolean);if(e=e.filter((e=>!e.context||e.context===s)),t)for(let s=0;s<e.length;++s){if(e[s].callback){const o=e[s].callback;e[s]={...e[s],callback:(n,i)=>{o(n,(o=>{i&&i(o),t(e[s].id,o)}))}}}if(e[s].RenderModal){const o=e[s].RenderModal;e[s]={...e[s],RenderModal:n=>(0,T.jsx)(o,{...n,onActionPerformed:o=>{n.onActionPerformed&&n.onActionPerformed(o),t(e[s].id,o)}})}}}return e}),[p,h,o?.viewable,l,u,c,a,t,g,_,f,s,r,i])}const{DropdownMenuV2:mg,DropdownMenuGroupV2:gg,DropdownMenuItemV2:_g,DropdownMenuItemLabelV2:fg,kebabCase:bg}=h(Tn.privateApis);function yg({onActionPerformed:e,buttonProps:t}){const[s,o]=(0,C.useState)(!1),{item:n,postType:i}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(cn),{getEditedEntityRecord:o}=e(b.store),n=t();return{item:o("postType",n,s()),postType:n}}),[]),r=hg({postType:i,onActionPerformed:e}),a=(0,C.useMemo)((()=>r.filter((e=>!e.isEligible||e.isEligible(n)))),[r,n]);return(0,T.jsx)(mg,{open:s,trigger:(0,T.jsx)(Tn.Button,{size:"small",icon:Th,label:(0,m.__)("Actions"),disabled:!a.length,__experimentalIsFocusable:!0,className:"editor-all-actions-button",onClick:()=>o(!s),...t}),onOpenChange:o,placement:"bottom-end",children:(0,T.jsx)(wg,{actions:a,item:n,onClose:()=>{o(!1)}})})}function xg({action:e,onClick:t,items:s}){const o="string"==typeof e.label?e.label:e.label(s);return(0,T.jsx)(_g,{onClick:t,hideOnClick:!e.RenderModal,children:(0,T.jsx)(fg,{children:o})})}function vg({action:e,item:t,ActionTrigger:s,onClose:o}){const[n,i]=(0,C.useState)(!1),r={action:e,onClick:()=>i(!0),items:[t]},{RenderModal:a,hideModalHeader:l}=e;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(s,{...r}),n&&(0,T.jsx)(Tn.Modal,{title:e.modalHeader||e.label,__experimentalHideHeader:!!l,onRequestClose:()=>{i(!1)},overlayClassName:`editor-action-modal editor-action-modal__${bg(e.id)}`,children:(0,T.jsx)(a,{items:[t],closeModal:()=>{i(!1),o()}})})]})}function wg({actions:e,item:t,onClose:s}){return(0,T.jsx)(gg,{children:e.map((e=>e.RenderModal?(0,T.jsx)(vg,{action:e,item:t,ActionTrigger:xg,onClose:s},e.id):(0,T.jsx)(xg,{action:e,onClick:()=>e.callback([t]),items:[t]},e.id)))})}function Sg({actions:e}){const{isFrontPage:t,isPostsPage:s,title:o,icon:n,isSync:i}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getCurrentPostType:s,getCurrentPostId:o,__experimentalGetTemplateInfo:n}=e(cn),{getEditedEntityRecord:i}=e(b.store),r=i("root","site"),a=s(),l=o(),c=i("postType",a,l),d=[L,F].includes(a)&&n(c);let u=!1;if(G.includes(a))if(V===a){u="unsynced"!==("unsynced"===t("meta")?.wp_pattern_sync_status?"unsynced":t("wp_pattern_sync_status"))}else u=!0;return{title:d?.title||t("title"),icon:h(e(cn)).getPostIcon(a,{area:c?.area}),isSync:u,isFrontPage:r?.page_on_front===l,isPostsPage:r?.page_for_posts===l}}),[]);return(0,T.jsx)("div",{className:"editor-post-card-panel",children:(0,T.jsxs)(Tn.__experimentalHStack,{spacing:2,className:"editor-post-card-panel__header",align:"flex-start",children:[(0,T.jsx)(Tn.Icon,{className:jn("editor-post-card-panel__icon",{"is-sync":i}),icon:n}),(0,T.jsxs)(Tn.__experimentalText,{numberOfLines:2,truncate:!0,className:"editor-post-card-panel__title",weight:500,as:"h2",lineHeight:"20px",children:[o?(0,Mo.decodeEntities)(o):(0,m.__)("No Title"),t&&(0,T.jsx)("span",{className:"editor-post-card-panel__title-badge",children:(0,m.__)("Front Page")}),s&&(0,T.jsx)("span",{className:"editor-post-card-panel__title-badge",children:(0,m.__)("Posts Page")})]}),e]})})}const kg=189;function Pg(){const{postContent:e}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getCurrentPostType:s,getCurrentPostId:o}=e(cn),{getEntityRecord:n}=e(b.store),i=n("root","site"),r=s();return{postContent:!(+o()===i?.page_for_posts)&&![L,F].includes(r)&&t("content")}}),[]),t=(0,m._x)("words","Word count type. Do not translate!"),s=(0,C.useMemo)((()=>e?(0,kd.count)(e,t):0),[e,t]);if(!s)return null;const o=Math.round(s/kg),n=(0,m.sprintf)((0,m._n)("%s word","%s words",s),s.toLocaleString()),i=o<=1?(0,m.__)("1 minute"):(0,m.sprintf)((0,m._n)("%s minute","%s minutes",o),o.toLocaleString());return(0,T.jsx)("div",{className:"editor-post-content-information",children:(0,T.jsx)(Tn.__experimentalText,{children:(0,m.sprintf)((0,m.__)("%1$s, %2$s read time."),n,i)})})}const Cg=function(){const{postFormat:e}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(cn),s=t("format");return{postFormat:null!=s?s:"standard"}}),[]),t=ml.find((t=>t.id===e)),[s,o]=(0,C.useState)(null),n=(0,C.useMemo)((()=>({anchor:s,placement:"left-start",offset:36,shift:!0})),[s]);return(0,T.jsx)(hl,{children:(0,T.jsx)(_r,{label:(0,m.__)("Format"),ref:o,children:(0,T.jsx)(Tn.Dropdown,{popoverProps:n,contentClassName:"editor-post-format__dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:s})=>(0,T.jsx)(Tn.Button,{size:"compact",variant:"tertiary","aria-expanded":e,"aria-label":(0,m.sprintf)((0,m.__)("Change format: %s"),t?.caption),onClick:s,children:t?.caption}),renderContent:({onClose:e})=>(0,T.jsxs)("div",{className:"editor-post-format__dialog-content",children:[(0,T.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,m.__)("Format"),onClose:e}),(0,T.jsx)(gl,{})]})})})})};function jg(){const e=(0,d.useSelect)((e=>e(cn).getEditedPostAttribute("modified")),[]),t=e&&(0,m.sprintf)((0,m.__)("Last edited %s."),(0,w.humanTimeDiff)(e));return t?(0,T.jsx)("div",{className:"editor-post-last-edited-panel",children:(0,T.jsx)(Tn.__experimentalText,{children:t})}):null}const Tg=function({className:e,children:t}){return(0,T.jsx)(Tn.__experimentalVStack,{className:jn("editor-post-panel__section",e),children:t})},Eg={};function Bg(){const{editEntityRecord:e}=(0,d.useDispatch)(b.store),{postsPageTitle:t,postsPageId:s,isTemplate:o,postSlug:n}=(0,d.useSelect)((e=>{const{getEntityRecord:t,getEditedEntityRecord:s}=e(b.store),o=t("root","site"),n=o?.page_for_posts?s("postType","page",o?.page_for_posts):Eg,{getEditedPostAttribute:i,getCurrentPostType:r}=e(cn);return{postsPageId:n?.id,postsPageTitle:n?.title,isTemplate:r()===L,postSlug:i("slug")}}),[]),[i,r]=(0,C.useState)(null),a=(0,C.useMemo)((()=>({anchor:i,placement:"left-start",offset:36,shift:!0})),[i]);if(!o||!["home","index"].includes(n)||!s)return null;const l=t=>{e("postType","page",s,{title:t})},c=(0,Mo.decodeEntities)(t);return(0,T.jsx)(_r,{label:(0,m.__)("Blog title"),ref:r,children:(0,T.jsx)(Tn.Dropdown,{popoverProps:a,contentClassName:"editor-blog-title-dropdown__content",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,T.jsx)(Tn.Button,{size:"compact",variant:"tertiary","aria-expanded":e,"aria-label":(0,m.sprintf)((0,m.__)("Change blog title: %s"),c),onClick:t,children:c}),renderContent:({onClose:e})=>(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,m.__)("Blog title"),onClose:e}),(0,T.jsx)(Tn.__experimentalInputControl,{placeholder:(0,m.__)("No Title"),size:"__unstable-large",value:t,onChange:(0,pn.debounce)(l,300),label:(0,m.__)("Blog title"),help:(0,m.__)("Set the Posts Page title. Appears in search results, and when the page is shared on social media."),hideLabelFromVision:!0})]})})})}function Ig(){const{editEntityRecord:e}=(0,d.useDispatch)(b.store),{postsPerPage:t,isTemplate:s,postSlug:o}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getCurrentPostType:s}=e(cn),{getEditedEntityRecord:o}=e(b.store),n=o("root","site");return{isTemplate:s()===L,postSlug:t("slug"),postsPerPage:n?.posts_per_page||1}}),[]),[n,i]=(0,C.useState)(null),r=(0,C.useMemo)((()=>({anchor:n,placement:"left-start",offset:36,shift:!0})),[n]);if(!s||!["home","index"].includes(o))return null;const a=t=>{e("root","site",void 0,{posts_per_page:t})};return(0,T.jsx)(_r,{label:(0,m.__)("Posts per page"),ref:i,children:(0,T.jsx)(Tn.Dropdown,{popoverProps:r,contentClassName:"editor-posts-per-page-dropdown__content",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:s})=>(0,T.jsx)(Tn.Button,{size:"compact",variant:"tertiary","aria-expanded":e,"aria-label":(0,m.__)("Change posts per page"),onClick:s,children:t}),renderContent:({onClose:e})=>(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,m.__)("Posts per page"),onClose:e}),(0,T.jsx)(Tn.__experimentalNumberControl,{placeholder:0,value:t,size:"__unstable-large",spinControls:"custom",step:"1",min:"1",onChange:a,label:(0,m.__)("Posts per page"),help:(0,m.__)("Set the default number of posts to display on blog pages, including categories and tags. Some templates may override this setting."),hideLabelFromVision:!0})]})})})}const Ng=[{label:(0,T.jsxs)(T.Fragment,{children:[(0,m.__)("Open"),(0,T.jsx)(Tn.__experimentalText,{variant:"muted",size:12,children:(0,m.__)("Visitors can add new comments and replies.")})]}),value:"open"},{label:(0,T.jsxs)(T.Fragment,{children:[(0,m.__)("Closed"),(0,T.jsx)(Tn.__experimentalText,{variant:"muted",size:12,children:(0,m.__)("Visitors cannot add new comments or replies.")}),(0,T.jsx)(Tn.__experimentalText,{variant:"muted",size:12,children:(0,m.__)("Existing comments remain visible.")})]}),value:""}];function Ag(){const{editEntityRecord:e}=(0,d.useDispatch)(b.store),{allowCommentsOnNewPosts:t,isTemplate:s,postSlug:o}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getCurrentPostType:s}=e(cn),{getEditedEntityRecord:o}=e(b.store),n=o("root","site");return{isTemplate:s()===L,postSlug:t("slug"),allowCommentsOnNewPosts:n?.default_comment_status||""}}),[]),[n,i]=(0,C.useState)(null),r=(0,C.useMemo)((()=>({anchor:n,placement:"left-start",offset:36,shift:!0})),[n]);if(!s||!["home","index"].includes(o))return null;const a=t=>{e("root","site",void 0,{default_comment_status:t?"open":null})};return(0,T.jsx)(_r,{label:(0,m.__)("Discussion"),ref:i,children:(0,T.jsx)(Tn.Dropdown,{popoverProps:r,contentClassName:"editor-site-discussion-dropdown__content",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:s})=>(0,T.jsx)(Tn.Button,{size:"compact",variant:"tertiary","aria-expanded":e,"aria-label":(0,m.__)("Change discussion settings"),onClick:s,children:t?(0,m.__)("Comments open"):(0,m.__)("Comments closed")}),renderContent:({onClose:e})=>(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,m.__)("Discussion"),onClose:e}),(0,T.jsxs)(Tn.__experimentalVStack,{spacing:3,children:[(0,T.jsx)(Tn.__experimentalText,{children:(0,m.__)("Changes will apply to new posts only. Individual posts may override these settings.")}),(0,T.jsx)(Tn.RadioControl,{className:"editor-site-discussion__options",hideLabelFromVision:!0,label:(0,m.__)("Comment status"),options:Ng,onChange:a,selected:t})]})]})})})}function Dg({area:e,clientId:t}){const{selectBlock:s,toggleBlockHighlight:o}=(0,d.useDispatch)(g.store),n=(0,d.useSelect)((t=>t(cn).__experimentalGetDefaultTemplatePartAreas().find((t=>t.area===e))),[e]),i=()=>o(t,!0),r=()=>o(t,!1);return(0,T.jsx)(Tn.Button,{className:"editor-template-areas__item",icon:n?.icon,onMouseOver:i,onMouseLeave:r,onFocus:i,onBlur:r,onClick:()=>{s(t)},children:n?.label})}function Rg(){const{isTemplate:e,templateParts:t}=(0,d.useSelect)((e=>{const t=e(cn).getCurrentPostType()===L;return{isTemplate:t,templateParts:t&&h(e(cn)).getCurrentTemplateTemplateParts()}}),[]);return e&&t.length?(0,T.jsxs)("section",{className:"editor-template-areas",children:[(0,T.jsx)(Tn.__experimentalHeading,{level:3,className:"editor-template-areas__title",children:(0,m.__)("Areas")}),(0,T.jsx)("ul",{className:"editor-template-areas__list",children:t.map((({templatePart:e,block:t})=>(0,T.jsx)("li",{children:(0,T.jsx)(Dg,{area:e.area,clientId:t.clientId})},t.clientId)))})]}):null}function Mg({onActionPerformed:e}){const{isRemovedPostStatusPanel:t}=(0,d.useSelect)((e=>{const{isEditorPanelRemoved:t,getCurrentPostType:s}=e(cn);return{isRemovedPostStatusPanel:t("post-status"),postType:s()}}),[]);return(0,T.jsx)(Tg,{className:"editor-post-summary",children:(0,T.jsx)(ma.Slot,{children:s=>(0,T.jsx)(T.Fragment,{children:(0,T.jsxs)(Tn.__experimentalVStack,{spacing:4,children:[(0,T.jsx)(Sg,{actions:(0,T.jsx)(yg,{onActionPerformed:e})}),(0,T.jsx)(pl,{withPanelBody:!1}),(0,T.jsx)(Ja,{}),(0,T.jsxs)(Tn.__experimentalVStack,{spacing:1,children:[(0,T.jsx)(Pg,{}),(0,T.jsx)(jg,{})]}),!t&&(0,T.jsxs)(Tn.__experimentalVStack,{spacing:2,children:[(0,T.jsxs)(Tn.__experimentalVStack,{spacing:1,children:[(0,T.jsx)(Uc,{}),(0,T.jsx)($c,{}),(0,T.jsx)(xd,{}),(0,T.jsx)(Ma,{}),(0,T.jsx)(ja,{}),(0,T.jsx)(Ha,{}),(0,T.jsx)(yl,{}),(0,T.jsx)(Mr,{}),(0,T.jsx)(Xc,{}),(0,T.jsx)(Bg,{}),(0,T.jsx)(Ig,{}),(0,T.jsx)(Ag,{}),(0,T.jsx)(Cg,{}),(0,T.jsx)(qc,{})]}),(0,T.jsx)(Rg,{}),s]})]})})})})}const{EXCLUDED_PATTERN_SOURCES:Og,PATTERN_TYPES:Lg}=h(_n.privateApis);function Fg(e,t){return e.innerBlocks=e.innerBlocks.map((e=>Fg(e,t))),"core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=t),e}function Vg(e,t){return e.filter(((e,s,o)=>((e,t,s)=>t===s.findIndex((t=>e.name===t.name)))(e,s,o)&&(e=>!Og.includes(e.source))(e)&&(e=>e.templateTypes?.includes(t.slug)||e.blockTypes?.includes("core/template-part/"+t.area))(e)))}function Ug(e,t){return e.map((e=>({...e,keywords:e.keywords||[],type:Lg.theme,blocks:(0,c.parse)(e.content,{__unstableSkipMigrationLogs:!0}).map((e=>Fg(e,t)))})))}function zg({availableTemplates:e,onSelect:t}){const s=(0,pn.useAsyncList)(e);return e&&0!==e?.length?(0,T.jsx)(g.__experimentalBlockPatternsList,{label:(0,m.__)("Templates"),blockPatterns:e,shownPatterns:s,onClickPattern:t,showTitlesAsTooltip:!0}):null}function Hg(){const{record:e,postType:t,postId:s}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(cn),{getEditedEntityRecord:o}=e(b.store),n=t(),i=s();return{postType:n,postId:i,record:o("postType",n,i)}}),[]),{editEntityRecord:o}=(0,d.useDispatch)(b.store),n=function(e){const{blockPatterns:t,restBlockPatterns:s,currentThemeStylesheet:o}=(0,d.useSelect)((e=>{var t;const{getEditorSettings:s}=e(cn),o=s();return{blockPatterns:null!==(t=o.__experimentalAdditionalBlockPatterns)&&void 0!==t?t:o.__experimentalBlockPatterns,restBlockPatterns:e(b.store).getBlockPatterns(),currentThemeStylesheet:e(b.store).getCurrentTheme().stylesheet}}),[]);return(0,C.useMemo)((()=>Ug(Vg([...t||[],...s||[]],e),e)),[t,s,e,o])}(e);return n?.length?(0,T.jsx)(Tn.PanelBody,{title:(0,m.__)("Design"),initialOpen:e.type===F,children:(0,T.jsx)(zg,{availableTemplates:n,onSelect:async e=>{await o("postType",t,s,{blocks:e.blocks,content:(0,c.serialize)(e.blocks)})}})}):null}function Gg(){const{postType:e}=(0,d.useSelect)((e=>{const{getCurrentPostType:t}=e(cn);return{postType:t()}}),[]);return[F,L].includes(e)?(0,T.jsx)(Hg,{}):null}const $g={document:"edit-post/document",block:"edit-post/block"},{Tabs:Wg}=h(Tn.privateApis),Kg=(0,C.forwardRef)(((e,t)=>{const{documentLabel:s}=(0,d.useSelect)((e=>{const{getPostTypeLabel:t}=e(cn);return{documentLabel:t()||(0,m._x)("Document","noun")}}),[]);return(0,T.jsxs)(Wg.TabList,{ref:t,children:[(0,T.jsx)(Wg.Tab,{tabId:$g.document,"data-tab-id":$g.document,children:s}),(0,T.jsx)(Wg.Tab,{tabId:$g.block,"data-tab-id":$g.block,children:(0,m.__)("Block")})]})})),{BlockQuickNavigation:Zg}=h(g.privateApis),Yg=["core/post-content","core/post-featured-image","core/post-title"];function qg(){const e=(0,d.useSelect)((e=>{const{getBlocksByName:t}=e(g.store);return t(Yg)}),[]);return(0,T.jsx)(Tn.PanelBody,{title:(0,m.__)("Content"),children:(0,T.jsx)(Zg,{clientIds:e})})}const Qg=function(){const{hasBlockSelection:e}=(0,d.useSelect)((e=>({hasBlockSelection:!!e(g.store).getBlockSelectionStart()})),[]),{getActiveComplementaryArea:t}=(0,d.useSelect)(Xn),{enableComplementaryArea:s}=(0,d.useDispatch)(Xn),{get:o}=(0,d.useSelect)(B.store);(0,C.useEffect)((()=>{const n=t("core"),i=["edit-post/document","edit-post/block"].includes(n),r=o("core","distractionFree");i&&!r&&s("core",e?"edit-post/block":"edit-post/document")}),[e,t,s,o])},{Tabs:Xg}=h(Tn.privateApis),Jg=C.Platform.select({web:!0,native:!1}),e_=({tabName:e,keyboardShortcut:t,renderingMode:s,onActionPerformed:o,extraPanels:n})=>{const i=(0,C.useRef)(null),r=(0,C.useContext)(Xg.Context);return(0,C.useEffect)((()=>{const t=Array.from(i.current?.querySelectorAll('[role="tab"]')||[]),s=t.find((t=>t.getAttribute("data-tab-id")===e)),o=s?.ownerDocument.activeElement;t.some((e=>o&&o.id===e.id))&&s&&s.id!==o?.id&&s?.focus()}),[e]),(0,T.jsx)(ya,{identifier:e,header:(0,T.jsx)(Xg.Context.Provider,{value:r,children:(0,T.jsx)(Kg,{ref:i})}),closeLabel:(0,m.__)("Close Settings"),className:"editor-sidebar__panel",headerClassName:"editor-sidebar__panel-tabs",title:(0,m.__)("Settings"),toggleShortcut:t,icon:(0,m.isRTL)()?cu:du,isActiveByDefault:Jg,children:(0,T.jsxs)(Xg.Context.Provider,{value:r,children:[(0,T.jsxs)(Xg.TabPanel,{tabId:$g.document,focusable:!1,children:[(0,T.jsx)(Mg,{onActionPerformed:o}),(0,T.jsx)(na.Slot,{}),"post-only"!==s&&(0,T.jsx)(qg,{}),(0,T.jsx)(Gg,{}),(0,T.jsx)(od,{}),(0,T.jsx)(km,{}),n]}),(0,T.jsx)(Xg.TabPanel,{tabId:$g.block,focusable:!1,children:(0,T.jsx)(g.BlockInspector,{})})]})})},t_=({extraPanels:e,onActionPerformed:t})=>{Qg();const{tabName:s,keyboardShortcut:o,showSummary:n,renderingMode:i}=(0,d.useSelect)((e=>{const t=e(Pn.store).getShortcutRepresentation("core/editor/toggle-sidebar"),s=e(Xn).getActiveComplementaryArea("core");let o=s;return[$g.block,$g.document].includes(s)||(o=e(g.store).getBlockSelectionStart()?$g.block:$g.document),{tabName:o,keyboardShortcut:t,showSummary:![L,F,U].includes(e(cn).getCurrentPostType()),renderingMode:e(cn).getRenderingMode()}}),[]),{enableComplementaryArea:r}=(0,d.useDispatch)(Xn),a=(0,C.useCallback)((e=>{e&&r("core",e)}),[r]);return(0,T.jsx)(Xg,{selectedTabId:s,onSelect:a,selectOnMove:!1,children:(0,T.jsx)(e_,{tabName:s,keyboardShortcut:o,showSummary:n,renderingMode:i,onActionPerformed:t,extraPanels:e})})};const s_=function({postType:e,postId:t,templateId:s,settings:o,children:n,onActionPerformed:i,className:r,styles:a,customSaveButton:l,customSavePanel:c,forceDisableBlockTools:u,title:p,iframeProps:h,extraSidebarPanels:g,enableRegionNavigation:_=!0}){const{post:f,template:y,hasLoadedPost:x}=(0,d.useSelect)((o=>{const{getEntityRecord:n,hasFinishedResolution:i}=o(b.store);return{post:n("postType",e,t),template:s?n("postType",L,s):void 0,hasLoadedPost:i("getEntityRecord",["postType",e,t])}}),[e,t,s]);return f?(0,T.jsxs)(qu,{post:f,__unstableTemplate:y,settings:o,useSubRegistry:!1,children:[x&&!f&&(0,T.jsx)(Tn.Notice,{status:"warning",isDismissible:!1,children:(0,m.__)("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")}),(0,T.jsx)(wm,{className:r,styles:a,enableRegionNavigation:_,customSaveButton:l,customSavePanel:c,forceDisableBlockTools:u,title:p,iframeProps:h}),(0,T.jsx)(t_,{onActionPerformed:i,extraPanels:g}),n]}):null},{PreferenceBaseOption:o_}=h(B.privateApis),n_=(0,pn.compose)((0,d.withSelect)((e=>({isChecked:e(cn).isPublishSidebarEnabled()}))),(0,d.withDispatch)((e=>{const{enablePublishSidebar:t,disablePublishSidebar:s}=e(cn);return{onChange:e=>e?t():s()}})))(o_);const i_=function({blockTypes:e,value:t,onItemChange:s}){return(0,T.jsx)("ul",{className:"editor-block-manager__checklist",children:e.map((e=>(0,T.jsxs)("li",{className:"editor-block-manager__checklist-item",children:[(0,T.jsx)(Tn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:e.title,checked:t.includes(e.name),onChange:(...t)=>s(e.name,...t)}),(0,T.jsx)(g.BlockIcon,{icon:e.icon})]},e.name)))})};const r_=function e({title:t,blockTypes:s}){const o=(0,pn.useInstanceId)(e),{allowedBlockTypes:n,hiddenBlockTypes:i}=(0,d.useSelect)((e=>{const{getEditorSettings:t}=e(cn),{get:s}=e(B.store);return{allowedBlockTypes:t().allowedBlockTypes,hiddenBlockTypes:s("core","hiddenBlockTypes")}}),[]),r=(0,C.useMemo)((()=>!0===n?s:s.filter((({name:e})=>n?.includes(e)))),[n,s]),{showBlockTypes:a,hideBlockTypes:l}=h((0,d.useDispatch)(cn)),c=(0,C.useCallback)(((e,t)=>{t?a(e):l(e)}),[a,l]),u=(0,C.useCallback)((e=>{const t=s.map((({name:e})=>e));e?a(t):l(t)}),[s,a,l]);if(!r.length)return null;const p=r.map((({name:e})=>e)).filter((e=>!(null!=i?i:[]).includes(e))),m="editor-block-manager__category-title-"+o,g=p.length===r.length,_=!g&&p.length>0;return(0,T.jsxs)("div",{role:"group","aria-labelledby":m,className:"editor-block-manager__category",children:[(0,T.jsx)(Tn.CheckboxControl,{__nextHasNoMarginBottom:!0,checked:g,onChange:u,className:"editor-block-manager__category-title",indeterminate:_,label:(0,T.jsx)("span",{id:m,children:t})}),(0,T.jsx)(i_,{blockTypes:r,value:p,onItemChange:c})]})};const a_=(0,pn.compose)([(0,d.withSelect)((e=>{var t;const{getBlockTypes:s,getCategories:o,hasBlockSupport:n,isMatchingSearchTerm:i}=e(c.store),{get:r}=e(B.store),a=s(),l=(null!==(t=r("core","hiddenBlockTypes"))&&void 0!==t?t:[]).filter((e=>a.some((t=>t.name===e)))),d=Array.isArray(l)&&l.length;return{blockTypes:a,categories:o(),hasBlockSupport:n,isMatchingSearchTerm:i,numberOfHiddenBlocks:d}})),(0,d.withDispatch)((e=>{const{showBlockTypes:t}=h(e(cn));return{enableAllBlockTypes:e=>{const s=e.map((({name:e})=>e));t(s)}}}))])((function({blockTypes:e,categories:t,hasBlockSupport:s,isMatchingSearchTerm:o,numberOfHiddenBlocks:n,enableAllBlockTypes:i}){const r=(0,pn.useDebounce)(ms.speak,500),[a,l]=(0,C.useState)("");return e=e.filter((e=>s(e,"inserter",!0)&&(!a||o(e,a))&&(!e.parent||e.parent.includes("core/post-content")))),(0,C.useEffect)((()=>{if(!a)return;const t=e.length,s=(0,m.sprintf)((0,m._n)("%d result found.","%d results found.",t),t);r(s)}),[e.length,a,r]),(0,T.jsxs)("div",{className:"editor-block-manager__content",children:[!!n&&(0,T.jsxs)("div",{className:"editor-block-manager__disabled-blocks-count",children:[(0,m.sprintf)((0,m._n)("%d block is hidden.","%d blocks are hidden.",n),n),(0,T.jsx)(Tn.Button,{variant:"link",onClick:()=>i(e),children:(0,m.__)("Reset")})]}),(0,T.jsx)(Tn.SearchControl,{__nextHasNoMarginBottom:!0,label:(0,m.__)("Search for a block"),placeholder:(0,m.__)("Search for a block"),value:a,onChange:e=>l(e),className:"editor-block-manager__search"}),(0,T.jsxs)("div",{tabIndex:"0",role:"region","aria-label":(0,m.__)("Available block types"),className:"editor-block-manager__results",children:[0===e.length&&(0,T.jsx)("p",{className:"editor-block-manager__no-results",children:(0,m.__)("No blocks found.")}),t.map((t=>(0,T.jsx)(r_,{title:t.title,blockTypes:e.filter((e=>e.category===t.slug))},t.slug))),(0,T.jsx)(r_,{title:(0,m.__)("Uncategorized"),blockTypes:e.filter((({category:e})=>!e))})]})]})})),{PreferencesModal:l_,PreferencesModalTabs:c_,PreferencesModalSection:d_,PreferenceToggleControl:u_}=h(B.privateApis);const{store:p_,...h_}=l,m_={};p(m_,{CreateTemplatePartModal:xh,BackButton:ch,ExperimentalEditorProvider:qu,EntitiesSavedStatesExtensible:rr,Editor:s_,EditorInterface:wm,EditorContentSlotFill:nh,GlobalStylesProvider:function({children:e}){const t=Kd();return t.isReady?(0,T.jsx)(Gd.Provider,{value:t,children:e}):null},mergeBaseAndUserConfigs:Wd,PluginPostExcerpt:Ya,PreferencesModal:function({extraSections:e={}}){const t=(0,pn.useViewportMatch)("medium"),{isActive:s,showBlockBreadcrumbsOption:o}=(0,d.useSelect)((e=>{const{getEditorSettings:s}=e(cn),{get:o}=e(B.store),{isModalActive:n}=e(Xn),i=s().richEditingEnabled;return{showBlockBreadcrumbsOption:!o("core","distractionFree")&&t&&i,isActive:n("editor/preferences")}}),[t]),{closeModal:n}=(0,d.useDispatch)(Xn),{setIsListViewOpened:i,setIsInserterOpened:r}=(0,d.useDispatch)(cn),{set:a}=(0,d.useDispatch)(B.store),l=(0,C.useMemo)((()=>[{name:"general",tabLabel:(0,m.__)("General"),content:(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(d_,{title:(0,m.__)("Interface"),children:[(0,T.jsx)(u_,{scope:"core",featureName:"showListViewByDefault",help:(0,m.__)("Opens the List View sidebar by default."),label:(0,m.__)("Always open List View")}),o&&(0,T.jsx)(u_,{scope:"core",featureName:"showBlockBreadcrumbs",help:(0,m.__)("Display the block hierarchy trail at the bottom of the editor."),label:(0,m.__)("Show block breadcrumbs")}),(0,T.jsx)(u_,{scope:"core",featureName:"allowRightClickOverrides",help:(0,m.__)("Allows contextual List View menus via right-click, overriding browser defaults."),label:(0,m.__)("Allow right-click contextual menus")})]}),(0,T.jsxs)(d_,{title:(0,m.__)("Document settings"),description:(0,m.__)("Select what settings are shown in the document panel."),children:[(0,T.jsx)(ea.Slot,{}),(0,T.jsx)(ed,{taxonomyWrapper:(e,t)=>(0,T.jsx)(qr,{label:t.labels.menu_name,panelName:`taxonomy-panel-${t.slug}`})}),(0,T.jsx)(ol,{children:(0,T.jsx)(qr,{label:(0,m.__)("Featured image"),panelName:"featured-image"})}),(0,T.jsx)($a,{children:(0,T.jsx)(qr,{label:(0,m.__)("Excerpt"),panelName:"post-excerpt"})}),(0,T.jsx)(fr,{supportKeys:["comments","trackbacks"],children:(0,T.jsx)(qr,{label:(0,m.__)("Discussion"),panelName:"discussion-panel"})}),(0,T.jsx)(gr,{children:(0,T.jsx)(qr,{label:(0,m.__)("Page attributes"),panelName:"page-attributes"})})]}),t&&(0,T.jsx)(d_,{title:(0,m.__)("Publishing"),children:(0,T.jsx)(n_,{help:(0,m.__)("Review settings, such as visibility and tags."),label:(0,m.__)("Enable pre-publish checks")})}),e?.general]})},{name:"appearance",tabLabel:(0,m.__)("Appearance"),content:(0,T.jsxs)(d_,{title:(0,m.__)("Appearance"),description:(0,m.__)("Customize the editor interface to suit your needs."),children:[(0,T.jsx)(u_,{scope:"core",featureName:"fixedToolbar",onToggle:()=>a("core","distractionFree",!1),help:(0,m.__)("Access all block and document tools in a single place."),label:(0,m.__)("Top toolbar")}),(0,T.jsx)(u_,{scope:"core",featureName:"distractionFree",onToggle:()=>{a("core","fixedToolbar",!0),r(!1),i(!1)},help:(0,m.__)("Reduce visual distractions by hiding the toolbar and other elements to focus on writing."),label:(0,m.__)("Distraction free")}),(0,T.jsx)(u_,{scope:"core",featureName:"focusMode",help:(0,m.__)("Highlights the current block and fades other content."),label:(0,m.__)("Spotlight mode")}),e?.appearance]})},{name:"accessibility",tabLabel:(0,m.__)("Accessibility"),content:(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(d_,{title:(0,m.__)("Navigation"),description:(0,m.__)("Optimize the editing experience for enhanced control."),children:(0,T.jsx)(u_,{scope:"core",featureName:"keepCaretInsideBlock",help:(0,m.__)("Keeps the text cursor within the block boundaries, aiding users with screen readers by preventing unintentional cursor movement outside the block."),label:(0,m.__)("Contain text cursor inside block")})}),(0,T.jsx)(d_,{title:(0,m.__)("Interface"),children:(0,T.jsx)(u_,{scope:"core",featureName:"showIconLabels",label:(0,m.__)("Show button text labels"),help:(0,m.__)("Show text instead of icons on buttons across the interface.")})})]})},{name:"blocks",tabLabel:(0,m.__)("Blocks"),content:(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(d_,{title:(0,m.__)("Inserter"),children:(0,T.jsx)(u_,{scope:"core",featureName:"mostUsedBlocks",help:(0,m.__)("Adds a category with the most frequently used blocks in the inserter."),label:(0,m.__)("Show most used blocks")})}),(0,T.jsx)(d_,{title:(0,m.__)("Manage block visibility"),description:(0,m.__)("Disable blocks that you don't want to appear in the inserter. They can always be toggled back on later."),children:(0,T.jsx)(a_,{})})]})}]),[o,e,r,i,a,t]);return s?(0,T.jsx)(l_,{closeModal:n,children:(0,T.jsx)(c_,{sections:l})}):null},usePostActions:hg,ToolsMoreMenuGroup:Dh,ViewMoreMenuGroup:Oh,ResizableEditor:am,Sidebar:t_,useBlockEditorSettings:tu,interfaceStore:p_,...h_})})(),(window.wp=window.wp||{}).editor=o})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/element.js b/wp-includes/js/dist/element.js
index c73565b..ca739c8 100644
--- a/wp-includes/js/dist/element.js
+++ b/wp-includes/js/dist/element.js
@@ -822,7 +822,7 @@ const Platform = {
*
* This is the same concept as the React Native implementation.
*
- * @see https://facebook.github.io/react-native/docs/platform-specific-code#platform-module
+ * @see https://reactnative.dev/docs/platform-specific-code#platform-module
*
* Here is an example of how to use the select method:
* @example
@@ -1813,7 +1813,7 @@ function renderAttributes(props) {
}
let value = getNormalAttributeValue(key, props[key]);
- // If value is not of serializeable type, skip.
+ // If value is not of serializable type, skip.
if (!ATTRIBUTES_TYPES.has(typeof value)) {
continue;
}
diff --git a/wp-includes/js/dist/format-library.js b/wp-includes/js/dist/format-library.js
index f7c9b7e..ccbfbe0 100644
--- a/wp-includes/js/dist/format-library.js
+++ b/wp-includes/js/dist/format-library.js
@@ -22,30 +22,30 @@ __webpack_require__.r(__webpack_exports__);
;// CONCATENATED MODULE: external ["wp","richText"]
const external_wp_richText_namespaceObject = window["wp"]["richText"];
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: external ["wp","i18n"]
const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
;// CONCATENATED MODULE: external ["wp","blockEditor"]
const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
;// CONCATENATED MODULE: external ["wp","primitives"]
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-bold.js
-
/**
* WordPress dependencies
*/
-const formatBold = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const formatBold = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"
+ })
+});
/* harmony default export */ const format_bold = (formatBold);
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/bold/index.js
-
/**
* WordPress dependencies
*/
@@ -53,6 +53,9 @@ const formatBold = (0,external_React_namespaceObject.createElement)(external_wp_
+
+
+
const bold_name = 'core/bold';
const title = (0,external_wp_i18n_namespaceObject.__)('Bold');
const bold = {
@@ -78,41 +81,43 @@ const bold = {
}));
onFocus();
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextShortcut, {
- type: "primary",
- character: "b",
- onUse: onToggle
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
- name: "bold",
- icon: format_bold,
- title: title,
- onClick: onClick,
- isActive: isActive,
- shortcutType: "primary",
- shortcutCharacter: "b"
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__unstableRichTextInputEvent, {
- inputType: "formatBold",
- onInput: onToggle
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextShortcut, {
+ type: "primary",
+ character: "b",
+ onUse: onToggle
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
+ name: "bold",
+ icon: format_bold,
+ title: title,
+ onClick: onClick,
+ isActive: isActive,
+ shortcutType: "primary",
+ shortcutCharacter: "b"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__unstableRichTextInputEvent, {
+ inputType: "formatBold",
+ onInput: onToggle
+ })]
+ });
}
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/code.js
-
/**
* WordPress dependencies
*/
-const code = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const code = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"
+ })
+});
/* harmony default export */ const library_code = (code);
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/code/index.js
-
/**
* WordPress dependencies
*/
@@ -120,6 +125,9 @@ const code = (0,external_React_namespaceObject.createElement)(external_wp_primit
+
+
+
const code_name = 'core/code';
const code_title = (0,external_wp_i18n_namespaceObject.__)('Inline code');
const code_code = {
@@ -171,17 +179,19 @@ const code_code = {
}));
onFocus();
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextShortcut, {
- type: "access",
- character: "x",
- onUse: onClick
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
- icon: library_code,
- title: code_title,
- onClick: onClick,
- isActive: isActive,
- role: "menuitemcheckbox"
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextShortcut, {
+ type: "access",
+ character: "x",
+ onUse: onClick
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
+ icon: library_code,
+ title: code_title,
+ onClick: onClick,
+ isActive: isActive,
+ role: "menuitemcheckbox"
+ })]
+ });
}
};
@@ -190,21 +200,20 @@ const external_wp_components_namespaceObject = window["wp"]["components"];
;// CONCATENATED MODULE: external ["wp","element"]
const external_wp_element_namespaceObject = window["wp"]["element"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js
-
/**
* WordPress dependencies
*/
-const keyboardReturn = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const keyboardReturn = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "-2 -2 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"
-}));
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"
+ })
+});
/* harmony default export */ const keyboard_return = (keyboardReturn);
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/image/index.js
-
/**
* WordPress dependencies
*/
@@ -214,6 +223,8 @@ const keyboardReturn = (0,external_React_namespaceObject.createElement)(external
+
+
const ALLOWED_MEDIA_TYPES = ['image'];
const image_name = 'core/image';
const image_title = (0,external_wp_i18n_namespaceObject.__)('Inline image');
@@ -246,43 +257,46 @@ function InlineUI({
editableContentElement: contentRef.current,
settings: image_image
});
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Popover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover, {
placement: "bottom",
focusOnMount: false,
anchor: popoverAnchor,
- className: "block-editor-format-toolbar__image-popover"
- }, (0,external_React_namespaceObject.createElement)("form", {
- className: "block-editor-format-toolbar__image-container-content",
- onSubmit: event => {
- const newReplacements = value.replacements.slice();
- newReplacements[value.start] = {
- type: image_name,
- attributes: {
- ...activeObjectAttributes,
- style: width ? `width: ${width}px;` : ''
- }
- };
- onChange({
- ...value,
- replacements: newReplacements
- });
- event.preventDefault();
- }
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- alignment: "bottom",
- spacing: "0"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalNumberControl, {
- className: "block-editor-format-toolbar__image-container-value",
- label: (0,external_wp_i18n_namespaceObject.__)('Width'),
- value: width,
- min: 1,
- onChange: newWidth => setWidth(newWidth)
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- className: "block-editor-format-toolbar__image-container-button",
- icon: keyboard_return,
- label: (0,external_wp_i18n_namespaceObject.__)('Apply'),
- type: "submit"
- }))));
+ className: "block-editor-format-toolbar__image-popover",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ className: "block-editor-format-toolbar__image-container-content",
+ onSubmit: event => {
+ const newReplacements = value.replacements.slice();
+ newReplacements[value.start] = {
+ type: image_name,
+ attributes: {
+ ...activeObjectAttributes,
+ style: width ? `width: ${width}px;` : ''
+ }
+ };
+ onChange({
+ ...value,
+ replacements: newReplacements
+ });
+ event.preventDefault();
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ alignment: "bottom",
+ spacing: "0",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNumberControl, {
+ className: "block-editor-format-toolbar__image-container-value",
+ label: (0,external_wp_i18n_namespaceObject.__)('Width'),
+ value: width,
+ min: 1,
+ onChange: newWidth => setWidth(newWidth)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "block-editor-format-toolbar__image-container-button",
+ icon: keyboard_return,
+ label: (0,external_wp_i18n_namespaceObject.__)('Apply'),
+ type: "submit"
+ })]
+ })
+ })
+ });
}
function Edit({
value,
@@ -292,74 +306,65 @@ function Edit({
activeObjectAttributes,
contentRef
}) {
- const [isModalOpen, setIsModalOpen] = (0,external_wp_element_namespaceObject.useState)(false);
- function openModal() {
- setIsModalOpen(true);
- }
- function closeModal() {
- setIsModalOpen(false);
- }
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaUploadCheck, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
- icon: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
- d: "M4 18.5h16V17H4v1.5zM16 13v1.5h4V13h-4zM5.1 15h7.8c.6 0 1.1-.5 1.1-1.1V6.1c0-.6-.5-1.1-1.1-1.1H5.1C4.5 5 4 5.5 4 6.1v7.8c0 .6.5 1.1 1.1 1.1zm.4-8.5h7V10l-1-1c-.3-.3-.8-.3-1 0l-1.6 1.5-1.2-.7c-.3-.2-.6-.2-.9 0l-1.3 1V6.5zm0 6.1l1.8-1.3 1.3.8c.3.2.7.2.9-.1l1.5-1.4 1.5 1.4v1.5h-7v-.9z"
- })),
- title: image_title,
- onClick: openModal,
- isActive: isObjectActive
- }), isModalOpen && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaUpload, {
- allowedTypes: ALLOWED_MEDIA_TYPES,
- onSelect: ({
- id,
- url,
- alt,
- width: imgWidth
- }) => {
- closeModal();
- onChange((0,external_wp_richText_namespaceObject.insertObject)(value, {
- type: image_name,
- attributes: {
- className: `wp-image-${id}`,
- style: `width: ${Math.min(imgWidth, 150)}px;`,
- url,
- alt
- }
- }));
- onFocus();
- },
- onClose: closeModal,
- render: ({
- open
- }) => {
- open();
- return null;
- }
- }), isObjectActive && (0,external_React_namespaceObject.createElement)(InlineUI, {
- value: value,
- onChange: onChange,
- activeObjectAttributes: activeObjectAttributes,
- contentRef: contentRef
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.MediaUploadCheck, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.MediaUpload, {
+ allowedTypes: ALLOWED_MEDIA_TYPES,
+ onSelect: ({
+ id,
+ url,
+ alt,
+ width: imgWidth
+ }) => {
+ onChange((0,external_wp_richText_namespaceObject.insertObject)(value, {
+ type: image_name,
+ attributes: {
+ className: `wp-image-${id}`,
+ style: `width: ${Math.min(imgWidth, 150)}px;`,
+ url,
+ alt
+ }
+ }));
+ onFocus();
+ },
+ render: ({
+ open
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Path, {
+ d: "M4 18.5h16V17H4v1.5zM16 13v1.5h4V13h-4zM5.1 15h7.8c.6 0 1.1-.5 1.1-1.1V6.1c0-.6-.5-1.1-1.1-1.1H5.1C4.5 5 4 5.5 4 6.1v7.8c0 .6.5 1.1 1.1 1.1zm.4-8.5h7V10l-1-1c-.3-.3-.8-.3-1 0l-1.6 1.5-1.2-.7c-.3-.2-.6-.2-.9 0l-1.3 1V6.5zm0 6.1l1.8-1.3 1.3.8c.3.2.7.2.9-.1l1.5-1.4 1.5 1.4v1.5h-7v-.9z"
+ })
+ }),
+ title: image_title,
+ onClick: open,
+ isActive: isObjectActive
+ })
+ }), isObjectActive && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InlineUI, {
+ value: value,
+ onChange: onChange,
+ activeObjectAttributes: activeObjectAttributes,
+ contentRef: contentRef
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-italic.js
-
/**
* WordPress dependencies
*/
-const formatItalic = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const formatItalic = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12.5 5L10 19h1.9l2.5-14z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12.5 5L10 19h1.9l2.5-14z"
+ })
+});
/* harmony default export */ const format_italic = (formatItalic);
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/italic/index.js
-
/**
* WordPress dependencies
*/
@@ -367,6 +372,9 @@ const formatItalic = (0,external_React_namespaceObject.createElement)(external_w
+
+
+
const italic_name = 'core/italic';
const italic_title = (0,external_wp_i18n_namespaceObject.__)('Italic');
const italic = {
@@ -392,22 +400,24 @@ const italic = {
}));
onFocus();
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextShortcut, {
- type: "primary",
- character: "i",
- onUse: onToggle
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
- name: "italic",
- icon: format_italic,
- title: italic_title,
- onClick: onClick,
- isActive: isActive,
- shortcutType: "primary",
- shortcutCharacter: "i"
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__unstableRichTextInputEvent, {
- inputType: "formatItalic",
- onInput: onToggle
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextShortcut, {
+ type: "primary",
+ character: "i",
+ onUse: onToggle
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
+ name: "italic",
+ icon: format_italic,
+ title: italic_title,
+ onClick: onClick,
+ isActive: isActive,
+ shortcutType: "primary",
+ shortcutCharacter: "i"
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__unstableRichTextInputEvent, {
+ inputType: "formatItalic",
+ onInput: onToggle
+ })]
+ });
}
};
@@ -416,17 +426,18 @@ const external_wp_url_namespaceObject = window["wp"]["url"];
;// CONCATENATED MODULE: external ["wp","htmlEntities"]
const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js
-
/**
* WordPress dependencies
*/
-const link_link = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const link_link = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"
+ })
+});
/* harmony default export */ const library_link = (link_link);
;// CONCATENATED MODULE: external ["wp","a11y"]
@@ -516,8 +527,12 @@ function createLinkFormat({
url
}
};
- if (type) format.attributes.type = type;
- if (id) format.attributes.id = id;
+ if (type) {
+ format.attributes.type = type;
+ }
+ if (id) {
+ format.attributes.id = id;
+ }
if (opensInNewWindow) {
format.attributes.target = '_blank';
format.attributes.rel = format.attributes.rel ? format.attributes.rel + ' noreferrer noopener' : 'noreferrer noopener';
@@ -635,7 +650,6 @@ const walkToStart = partialRight(walkToBoundary, 'backwards');
const walkToEnd = partialRight(walkToBoundary, 'forwards');
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/link/inline.js
-
/**
* WordPress dependencies
*/
@@ -653,6 +667,7 @@ const walkToEnd = partialRight(walkToBoundary, 'forwards');
*/
+
const LINK_SETTINGS = [...external_wp_blockEditor_namespaceObject.__experimentalLinkControl.DEFAULT_LINK_SETTINGS, {
id: 'nofollow',
title: (0,external_wp_i18n_namespaceObject.__)('Mark as nofollow')
@@ -822,38 +837,40 @@ function InlineLinkUI({
function createButtonText(searchTerm) {
return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: search term. */
(0,external_wp_i18n_namespaceObject.__)('Create page: <mark>%s</mark>'), searchTerm), {
- mark: (0,external_React_namespaceObject.createElement)("mark", null)
+ mark: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("mark", {})
});
}
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Popover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover, {
anchor: popoverAnchor,
+ animate: false,
onClose: stopAddingLink,
onFocusOutside: onFocusOutside,
placement: "bottom",
- offset: 10,
+ offset: 8,
shift: true,
focusOnMount: focusOnMount,
- constrainTabbing: true
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalLinkControl, {
- value: linkValue,
- onChange: onChangeLink,
- onRemove: removeLink,
- hasRichPreviews: true,
- createSuggestion: createPageEntity && handleCreate,
- withCreateSuggestion: userCanCreatePages,
- createSuggestionButtonText: createButtonText,
- hasTextControl: true,
- settings: LINK_SETTINGS,
- showInitialSuggestions: true,
- suggestionsQuery: {
- // always show Pages as initial suggestions
- initialSuggestionsSearchOptions: {
- type: 'post',
- subtype: 'page',
- perPage: 20
+ constrainTabbing: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalLinkControl, {
+ value: linkValue,
+ onChange: onChangeLink,
+ onRemove: removeLink,
+ hasRichPreviews: true,
+ createSuggestion: createPageEntity && handleCreate,
+ withCreateSuggestion: userCanCreatePages,
+ createSuggestionButtonText: createButtonText,
+ hasTextControl: true,
+ settings: LINK_SETTINGS,
+ showInitialSuggestions: true,
+ suggestionsQuery: {
+ // always show Pages as initial suggestions
+ initialSuggestionsSearchOptions: {
+ type: 'post',
+ subtype: 'page',
+ perPage: 20
+ }
}
- }
- }));
+ })
+ });
}
function getRichTextValueFromSelection(value, isActive) {
// Default to the selection ranges on the RichTextValue object.
@@ -880,7 +897,6 @@ function getRichTextValueFromSelection(value, isActive) {
/* harmony default export */ const inline = (InlineLinkUI);
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/link/index.js
-
/**
* WordPress dependencies
*/
@@ -898,6 +914,9 @@ function getRichTextValueFromSelection(value, isActive) {
*/
+
+
+
const link_name = 'core/link';
const link_title = (0,external_wp_i18n_namespaceObject.__)('Link');
function link_Edit({
@@ -908,35 +927,16 @@ function link_Edit({
onFocus,
contentRef
}) {
- const [editingLink, setEditingLink] = (0,external_wp_element_namespaceObject.useState)(false);
- const [creatingLink, setCreatingLink] = (0,external_wp_element_namespaceObject.useState)(false);
+ const [addingLink, setAddingLink] = (0,external_wp_element_namespaceObject.useState)(false);
// We only need to store the button element that opened the popover. We can ignore the other states, as they will be handled by the onFocus prop to return to the rich text field.
const [openedBy, setOpenedBy] = (0,external_wp_element_namespaceObject.useState)(null);
-
- // Manages whether the Link UI popover should autofocus when shown.
- const [shouldAutoFocus, setShouldAutoFocus] = (0,external_wp_element_namespaceObject.useState)(true);
- function setIsEditingLink(isEditing, {
- autoFocus = true
- } = {}) {
- setEditingLink(isEditing);
- setShouldAutoFocus(autoFocus);
- }
- function setIsCreatingLink(isCreating) {
- // Don't add a new link if there is already an active link.
- // The two states are mutually exclusive.
- if (isCreating === true && isActive) {
- return;
- }
- setCreatingLink(isCreating);
- }
(0,external_wp_element_namespaceObject.useEffect)(() => {
// When the link becomes inactive (i.e. isActive is false), reset the editingLink state
// and the creatingLink state. This means that if the Link UI is displayed and the link
// becomes inactive (e.g. used arrow keys to move cursor outside of link bounds), the UI will close.
if (!isActive) {
- setEditingLink(false);
- setCreatingLink(false);
+ setAddingLink(false);
}
}, [isActive]);
(0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
@@ -951,14 +951,16 @@ function link_Edit({
// This causes the `editingLink` state to be set to `true` and the link UI
// to be rendered in "creating" mode. We need to check isActive to see if
// we have an active link format.
- if (!event.target.closest('[contenteditable] a') ||
+ const link = event.target.closest('[contenteditable] a');
+ if (!link ||
// other formats (e.g. bold) may be nested within the link.
!isActive) {
- setIsEditingLink(false);
return;
}
- setIsEditingLink(true, {
- autoFocus: false
+ setAddingLink(true);
+ setOpenedBy({
+ el: link,
+ action: 'click'
});
}
editableContentElement.addEventListener('click', handleClick);
@@ -967,7 +969,6 @@ function link_Edit({
};
}, [contentRef, isActive]);
function addLink(target) {
- setShouldAutoFocus(true);
const text = (0,external_wp_richText_namespaceObject.getTextContent)((0,external_wp_richText_namespaceObject.slice)(value));
if (!isActive && text && (0,external_wp_url_namespaceObject.isURL)(text) && isValidHref(text)) {
onChange((0,external_wp_richText_namespaceObject.applyFormat)(value, {
@@ -985,13 +986,12 @@ function link_Edit({
}));
} else {
if (target) {
- setOpenedBy(target);
- }
- if (!isActive) {
- setIsCreatingLink(true);
- } else {
- setIsEditingLink(true);
+ setOpenedBy({
+ el: target,
+ action: null // We don't need to distinguish between click or keyboard here
+ });
}
+ setAddingLink(true);
}
}
@@ -1010,12 +1010,11 @@ function link_Edit({
// Otherwise, we rely on the passed in onFocus to return focus to the rich text field.
// Close the popover
- setIsEditingLink(false);
- setIsCreatingLink(false);
+ setAddingLink(false);
// Return focus to the toolbar button or the rich text field
- if (openedBy?.tagName === 'BUTTON') {
- openedBy.focus();
+ if (openedBy?.el?.tagName === 'BUTTON') {
+ openedBy.el.focus();
} else {
onFocus();
}
@@ -1030,45 +1029,48 @@ function link_Edit({
// 4. Press Escape
// 5. Focus should be on the Options button
function onFocusOutside() {
- setIsEditingLink(false);
- setIsCreatingLink(false);
+ setAddingLink(false);
setOpenedBy(null);
}
function onRemoveFormat() {
onChange((0,external_wp_richText_namespaceObject.removeFormat)(value, link_name));
(0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.__)('Link removed.'), 'assertive');
}
- const isEditingActiveLink = editingLink && isActive;
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextShortcut, {
- type: "primary",
- character: "k",
- onUse: addLink
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextShortcut, {
- type: "primaryShift",
- character: "k",
- onUse: onRemoveFormat
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
- name: "link",
- icon: library_link,
- title: isActive ? (0,external_wp_i18n_namespaceObject.__)('Link') : link_title,
- onClick: event => {
- addLink(event.currentTarget);
- },
- isActive: isActive || editingLink,
- shortcutType: "primary",
- shortcutCharacter: "k",
- "aria-haspopup": "true",
- "aria-expanded": editingLink
- }), (isEditingActiveLink || creatingLink) && (0,external_React_namespaceObject.createElement)(inline, {
- stopAddingLink: stopAddingLink,
- onFocusOutside: onFocusOutside,
- isActive: isActive,
- activeAttributes: activeAttributes,
- value: value,
- onChange: onChange,
- contentRef: contentRef,
- focusOnMount: shouldAutoFocus ? 'firstElement' : false
- }));
+
+ // Only autofocus if we have clicked a link within the editor
+ const shouldAutoFocus = !(openedBy?.el?.tagName === 'A' && openedBy?.action === 'click');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextShortcut, {
+ type: "primary",
+ character: "k",
+ onUse: addLink
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextShortcut, {
+ type: "primaryShift",
+ character: "k",
+ onUse: onRemoveFormat
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
+ name: "link",
+ icon: library_link,
+ title: isActive ? (0,external_wp_i18n_namespaceObject.__)('Link') : link_title,
+ onClick: event => {
+ addLink(event.currentTarget);
+ },
+ isActive: isActive || addingLink,
+ shortcutType: "primary",
+ shortcutCharacter: "k",
+ "aria-haspopup": "true",
+ "aria-expanded": addingLink
+ }), addingLink && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inline, {
+ stopAddingLink: stopAddingLink,
+ onFocusOutside: onFocusOutside,
+ isActive: isActive,
+ activeAttributes: activeAttributes,
+ value: value,
+ onChange: onChange,
+ contentRef: contentRef,
+ focusOnMount: shouldAutoFocus ? 'firstElement' : false
+ })]
+ });
}
const build_module_link_link = {
name: link_name,
@@ -1114,21 +1116,21 @@ const build_module_link_link = {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-strikethrough.js
-
/**
* WordPress dependencies
*/
-const formatStrikethrough = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const formatStrikethrough = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"
+ })
+});
/* harmony default export */ const format_strikethrough = (formatStrikethrough);
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/strikethrough/index.js
-
/**
* WordPress dependencies
*/
@@ -1136,6 +1138,9 @@ const formatStrikethrough = (0,external_React_namespaceObject.createElement)(ext
+
+
+
const strikethrough_name = 'core/strikethrough';
const strikethrough_title = (0,external_wp_i18n_namespaceObject.__)('Strikethrough');
const strikethrough = {
@@ -1156,28 +1161,32 @@ const strikethrough = {
}));
onFocus();
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextShortcut, {
- type: "access",
- character: "d",
- onUse: onClick
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
- icon: format_strikethrough,
- title: strikethrough_title,
- onClick: onClick,
- isActive: isActive,
- role: "menuitemcheckbox"
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextShortcut, {
+ type: "access",
+ character: "d",
+ onUse: onClick
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
+ icon: format_strikethrough,
+ title: strikethrough_title,
+ onClick: onClick,
+ isActive: isActive,
+ role: "menuitemcheckbox"
+ })]
+ });
}
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/underline/index.js
-
/**
* WordPress dependencies
*/
+
+
+
const underline_name = 'core/underline';
const underline_title = (0,external_wp_i18n_namespaceObject.__)('Underline');
const underline = {
@@ -1201,14 +1210,16 @@ const underline = {
title: underline_title
}));
};
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextShortcut, {
- type: "primary",
- character: "u",
- onUse: onToggle
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__unstableRichTextInputEvent, {
- inputType: "formatUnderline",
- onInput: onToggle
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextShortcut, {
+ type: "primary",
+ character: "u",
+ onUse: onToggle
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__unstableRichTextInputEvent, {
+ inputType: "formatUnderline",
+ onInput: onToggle
+ })]
+ });
}
};
@@ -1245,31 +1256,33 @@ function Icon({
/* harmony default export */ const icon = ((0,external_wp_element_namespaceObject.forwardRef)(Icon));
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/text-color.js
-
/**
* WordPress dependencies
*/
-const textColor = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const textColor = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12.9 6h-2l-4 11h1.9l1.1-3h4.2l1.1 3h1.9L12.9 6zm-2.5 6.5l1.5-4.9 1.7 4.9h-3.2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12.9 6h-2l-4 11h1.9l1.1-3h4.2l1.1 3h1.9L12.9 6zm-2.5 6.5l1.5-4.9 1.7 4.9h-3.2z"
+ })
+});
/* harmony default export */ const text_color = (textColor);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/color.js
-
/**
* WordPress dependencies
*/
-const color = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const color = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"
+ })
+});
/* harmony default export */ const library_color = (color);
;// CONCATENATED MODULE: external ["wp","privateApis"]
@@ -1282,10 +1295,9 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
const {
lock,
unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/format-library');
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/format-library');
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/text-color/inline.js
-
/**
* WordPress dependencies
*/
@@ -1301,6 +1313,8 @@ const {
*/
+
+
const {
Tabs
} = unlock(external_wp_components_namespaceObject.privateApis);
@@ -1315,8 +1329,12 @@ function parseCSS(css = '') {
return css.split(';').reduce((accumulator, rule) => {
if (rule) {
const [property, value] = rule.split(':');
- if (property === 'color') accumulator.color = value;
- if (property === 'background-color' && value !== transparentValue) accumulator.backgroundColor = value;
+ if (property === 'color') {
+ accumulator.color = value;
+ }
+ if (property === 'background-color' && value !== transparentValue) {
+ accumulator.backgroundColor = value;
+ }
}
return accumulator;
}, {});
@@ -1370,8 +1388,12 @@ function setColors(value, name, colorSettings, colors) {
styles.push(['color', color].join(':'));
}
}
- if (styles.length) attributes.style = styles.join(';');
- if (classNames.length) attributes.class = classNames.join(' ');
+ if (styles.length) {
+ attributes.style = styles.join(';');
+ }
+ if (classNames.length) {
+ attributes.class = classNames.join(' ');
+ }
return (0,external_wp_richText_namespaceObject.applyFormat)(value, {
type: name,
attributes
@@ -1396,7 +1418,7 @@ function ColorPicker({
}));
}, [colors, onChange, property]);
const activeColors = (0,external_wp_element_namespaceObject.useMemo)(() => getActiveColors(value, name, colors), [name, value, colors]);
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.ColorPalette, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.ColorPalette, {
value: activeColors[property],
onChange: onColorChange
});
@@ -1416,27 +1438,31 @@ function InlineColorUI({
isActive
}
});
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Popover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover, {
onClose: onClose,
className: "format-library__inline-color-popover",
- anchor: popoverAnchor
- }, (0,external_React_namespaceObject.createElement)(Tabs, null, (0,external_React_namespaceObject.createElement)(Tabs.TabList, null, TABS.map(tab => (0,external_React_namespaceObject.createElement)(Tabs.Tab, {
- tabId: tab.name,
- key: tab.name
- }, tab.title))), TABS.map(tab => (0,external_React_namespaceObject.createElement)(Tabs.TabPanel, {
- tabId: tab.name,
- focusable: false,
- key: tab.name
- }, (0,external_React_namespaceObject.createElement)(ColorPicker, {
- name: name,
- property: tab.name,
- value: value,
- onChange: onChange
- })))));
+ anchor: popoverAnchor,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tabs, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.TabList, {
+ children: TABS.map(tab => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.Tab, {
+ tabId: tab.name,
+ children: tab.title
+ }, tab.name))
+ }), TABS.map(tab => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.TabPanel, {
+ tabId: tab.name,
+ focusable: false,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorPicker, {
+ name: name,
+ property: tab.name,
+ value: value,
+ onChange: onChange
+ })
+ }, tab.name))]
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/text-color/index.js
-
/**
* WordPress dependencies
*/
@@ -1450,6 +1476,9 @@ function InlineColorUI({
* Internal dependencies
*/
+
+
+
const transparentValue = 'rgba(0, 0, 0, 0)';
const text_color_name = 'core/text-color';
const text_color_title = (0,external_wp_i18n_namespaceObject.__)('Highlight');
@@ -1496,27 +1525,29 @@ function TextColorEdit({
if (!hasColorsToChoose && !isActive) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
- className: "format-library-text-color-button",
- isActive: isActive,
- icon: (0,external_React_namespaceObject.createElement)(icon, {
- icon: Object.keys(activeAttributes).length ? text_color : library_color,
- style: colorIndicatorStyle
- }),
- title: text_color_title
- // If has no colors to choose but a color is active remove the color onClick.
- ,
- onClick: hasColorsToChoose ? enableIsAddingColor : () => onChange((0,external_wp_richText_namespaceObject.removeFormat)(value, text_color_name)),
- role: "menuitemcheckbox"
- }), isAddingColor && (0,external_React_namespaceObject.createElement)(InlineColorUI, {
- name: text_color_name,
- onClose: disableIsAddingColor,
- activeAttributes: activeAttributes,
- value: value,
- onChange: onChange,
- contentRef: contentRef,
- isActive: isActive
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
+ className: "format-library-text-color-button",
+ isActive: isActive,
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icon, {
+ icon: Object.keys(activeAttributes).length ? text_color : library_color,
+ style: colorIndicatorStyle
+ }),
+ title: text_color_title
+ // If has no colors to choose but a color is active remove the color onClick.
+ ,
+ onClick: hasColorsToChoose ? enableIsAddingColor : () => onChange((0,external_wp_richText_namespaceObject.removeFormat)(value, text_color_name)),
+ role: "menuitemcheckbox"
+ }), isAddingColor && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InlineColorUI, {
+ name: text_color_name,
+ onClose: disableIsAddingColor,
+ activeAttributes: activeAttributes,
+ value: value,
+ onChange: onChange,
+ contentRef: contentRef,
+ isActive: isActive
+ })]
+ });
}
const text_color_textColor = {
name: text_color_name,
@@ -1531,21 +1562,21 @@ const text_color_textColor = {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/subscript.js
-
/**
* WordPress dependencies
*/
-const subscript = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const subscript = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16.9 18.3l.8-1.2c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.1-.3-.4-.5-.6-.7-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.2 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3L15 19.4h4.3v-1.2h-2.4zM14.1 7.2h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M16.9 18.3l.8-1.2c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.1-.3-.4-.5-.6-.7-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.2 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3L15 19.4h4.3v-1.2h-2.4zM14.1 7.2h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"
+ })
+});
/* harmony default export */ const library_subscript = (subscript);
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/subscript/index.js
-
/**
* WordPress dependencies
*/
@@ -1553,6 +1584,7 @@ const subscript = (0,external_React_namespaceObject.createElement)(external_wp_p
+
const subscript_name = 'core/subscript';
const subscript_title = (0,external_wp_i18n_namespaceObject.__)('Subscript');
const subscript_subscript = {
@@ -1576,7 +1608,7 @@ const subscript_subscript = {
onToggle();
onFocus();
}
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
icon: library_subscript,
title: subscript_title,
onClick: onClick,
@@ -1587,21 +1619,21 @@ const subscript_subscript = {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/superscript.js
-
/**
* WordPress dependencies
*/
-const superscript = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const superscript = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16.9 10.3l.8-1.3c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.2-.2-.4-.4-.7-.6-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.1 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3l-1.8 2.8h4.3v-1.2h-2.2zm-2.8-3.1h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M16.9 10.3l.8-1.3c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.2-.2-.4-.4-.7-.6-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.1 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3l-1.8 2.8h4.3v-1.2h-2.2zm-2.8-3.1h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"
+ })
+});
/* harmony default export */ const library_superscript = (superscript);
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/superscript/index.js
-
/**
* WordPress dependencies
*/
@@ -1609,6 +1641,7 @@ const superscript = (0,external_React_namespaceObject.createElement)(external_wp
+
const superscript_name = 'core/superscript';
const superscript_title = (0,external_wp_i18n_namespaceObject.__)('Superscript');
const superscript_superscript = {
@@ -1632,7 +1665,7 @@ const superscript_superscript = {
onToggle();
onFocus();
}
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
icon: library_superscript,
title: superscript_title,
onClick: onClick,
@@ -1643,21 +1676,21 @@ const superscript_superscript = {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/button.js
-
/**
* WordPress dependencies
*/
-const button_button = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const button_button = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"
+ })
+});
/* harmony default export */ const library_button = (button_button);
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/keyboard/index.js
-
/**
* WordPress dependencies
*/
@@ -1665,6 +1698,7 @@ const button_button = (0,external_React_namespaceObject.createElement)(external_
+
const keyboard_name = 'core/keyboard';
const keyboard_title = (0,external_wp_i18n_namespaceObject.__)('Keyboard input');
const keyboard = {
@@ -1688,7 +1722,7 @@ const keyboard = {
onToggle();
onFocus();
}
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
icon: library_button,
title: keyboard_title,
onClick: onClick,
@@ -1699,21 +1733,21 @@ const keyboard = {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/help.js
-
/**
* WordPress dependencies
*/
-const help = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const help = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"
+ })
+});
/* harmony default export */ const library_help = (help);
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/unknown/index.js
-
/**
* WordPress dependencies
*/
@@ -1721,8 +1755,18 @@ const help = (0,external_React_namespaceObject.createElement)(external_wp_primit
+
const unknown_name = 'core/unknown';
const unknown_title = (0,external_wp_i18n_namespaceObject.__)('Clear Unknown Formatting');
+function selectionContainsUnknownFormats(value) {
+ if ((0,external_wp_richText_namespaceObject.isCollapsed)(value)) {
+ return false;
+ }
+ const selectedValue = (0,external_wp_richText_namespaceObject.slice)(value);
+ return selectedValue.formats.some(formats => {
+ return formats.some(format => format.type === unknown_name);
+ });
+}
const unknown = {
name: unknown_name,
title: unknown_title,
@@ -1734,18 +1778,14 @@ const unknown = {
onChange,
onFocus
}) {
+ if (!isActive && !selectionContainsUnknownFormats(value)) {
+ return null;
+ }
function onClick() {
onChange((0,external_wp_richText_namespaceObject.removeFormat)(value, unknown_name));
onFocus();
}
- const selectedValue = (0,external_wp_richText_namespaceObject.slice)(value);
- const hasUnknownFormats = selectedValue.formats.some(formats => {
- return formats.some(format => format.type === unknown_name);
- });
- if (!isActive && !hasUnknownFormats) {
- return null;
- }
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
name: "unknown",
icon: library_help,
title: unknown_title,
@@ -1756,21 +1796,21 @@ const unknown = {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/language.js
-
/**
* WordPress dependencies
*/
-const language = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const language = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M17.5 10h-1.7l-3.7 10.5h1.7l.9-2.6h3.9l.9 2.6h1.7L17.5 10zm-2.2 6.3 1.4-4 1.4 4h-2.8zm-4.8-3.8c1.6-1.8 2.9-3.6 3.7-5.7H16V5.2h-5.8V3H8.8v2.2H3v1.5h9.6c-.7 1.6-1.8 3.1-3.1 4.6C8.6 10.2 7.8 9 7.2 8H5.6c.6 1.4 1.7 2.9 2.9 4.4l-2.4 2.4c-.3.4-.7.8-1.1 1.2l1 1 1.2-1.2c.8-.8 1.6-1.5 2.3-2.3.8.9 1.7 1.7 2.5 2.5l.6-1.5c-.7-.6-1.4-1.3-2.1-2z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M17.5 10h-1.7l-3.7 10.5h1.7l.9-2.6h3.9l.9 2.6h1.7L17.5 10zm-2.2 6.3 1.4-4 1.4 4h-2.8zm-4.8-3.8c1.6-1.8 2.9-3.6 3.7-5.7H16V5.2h-5.8V3H8.8v2.2H3v1.5h9.6c-.7 1.6-1.8 3.1-3.1 4.6C8.6 10.2 7.8 9 7.2 8H5.6c.6 1.4 1.7 2.9 2.9 4.4l-2.4 2.4c-.3.4-.7.8-1.1 1.2l1 1 1.2-1.2c.8-.8 1.6-1.5 2.3-2.3.8.9 1.7 1.7 2.5 2.5l.6-1.5c-.7-.6-1.4-1.3-2.1-2z"
+ })
+});
/* harmony default export */ const library_language = (language);
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/language/index.js
-
/**
* WordPress dependencies
*/
@@ -1784,6 +1824,9 @@ const language = (0,external_React_namespaceObject.createElement)(external_wp_pr
+
+
+
const language_name = 'core/language';
const language_title = (0,external_wp_i18n_namespaceObject.__)('Language');
const language_language = {
@@ -1803,25 +1846,27 @@ function language_Edit({
const togglePopover = () => {
setIsPopoverVisible(state => !state);
};
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
- icon: library_language,
- label: language_title,
- title: language_title,
- onClick: () => {
- if (isActive) {
- onChange((0,external_wp_richText_namespaceObject.removeFormat)(value, language_name));
- } else {
- togglePopover();
- }
- },
- isActive: isActive,
- role: "menuitemcheckbox"
- }), isPopoverVisible && (0,external_React_namespaceObject.createElement)(InlineLanguageUI, {
- value: value,
- onChange: onChange,
- onClose: togglePopover,
- contentRef: contentRef
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextToolbarButton, {
+ icon: library_language,
+ label: language_title,
+ title: language_title,
+ onClick: () => {
+ if (isActive) {
+ onChange((0,external_wp_richText_namespaceObject.removeFormat)(value, language_name));
+ } else {
+ togglePopover();
+ }
+ },
+ isActive: isActive,
+ role: "menuitemcheckbox"
+ }), isPopoverVisible && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InlineLanguageUI, {
+ value: value,
+ onChange: onChange,
+ onClose: togglePopover,
+ contentRef: contentRef
+ })]
+ });
}
function InlineLanguageUI({
value,
@@ -1835,48 +1880,81 @@ function InlineLanguageUI({
});
const [lang, setLang] = (0,external_wp_element_namespaceObject.useState)('');
const [dir, setDir] = (0,external_wp_element_namespaceObject.useState)('ltr');
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Popover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover, {
className: "block-editor-format-toolbar__language-popover",
anchor: popoverAnchor,
- onClose: onClose
- }, (0,external_React_namespaceObject.createElement)("form", {
- className: "block-editor-format-toolbar__language-container-content",
- onSubmit: event => {
- event.preventDefault();
- onChange((0,external_wp_richText_namespaceObject.applyFormat)(value, {
- type: language_name,
- attributes: {
- lang,
- dir
- }
- }));
- onClose();
- }
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- label: language_title,
- value: lang,
- onChange: val => setLang(val),
- help: (0,external_wp_i18n_namespaceObject.__)('A valid language attribute, like "en" or "fr".')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Text direction'),
- value: dir,
- options: [{
- label: (0,external_wp_i18n_namespaceObject.__)('Left to right'),
- value: 'ltr'
- }, {
- label: (0,external_wp_i18n_namespaceObject.__)('Right to left'),
- value: 'rtl'
- }],
- onChange: val => setDir(val)
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- alignment: "right"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- type: "submit",
- text: (0,external_wp_i18n_namespaceObject.__)('Apply')
- }))));
+ onClose: onClose,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("form", {
+ className: "block-editor-format-toolbar__language-container-content",
+ onSubmit: event => {
+ event.preventDefault();
+ onChange((0,external_wp_richText_namespaceObject.applyFormat)(value, {
+ type: language_name,
+ attributes: {
+ lang,
+ dir
+ }
+ }));
+ onClose();
+ },
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ label: language_title,
+ value: lang,
+ onChange: val => setLang(val),
+ help: (0,external_wp_i18n_namespaceObject.__)('A valid language attribute, like "en" or "fr".')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Text direction'),
+ value: dir,
+ options: [{
+ label: (0,external_wp_i18n_namespaceObject.__)('Left to right'),
+ value: 'ltr'
+ }, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Right to left'),
+ value: 'rtl'
+ }],
+ onChange: val => setDir(val)
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHStack, {
+ alignment: "right",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ type: "submit",
+ text: (0,external_wp_i18n_namespaceObject.__)('Apply')
+ })
+ })]
+ })
+ });
}
+;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/non-breaking-space/index.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+const non_breaking_space_name = 'core/non-breaking-space';
+const non_breaking_space_title = (0,external_wp_i18n_namespaceObject.__)('Non breaking space');
+const nonBreakingSpace = {
+ name: non_breaking_space_name,
+ title: non_breaking_space_title,
+ tagName: 'nbsp',
+ className: null,
+ edit({
+ value,
+ onChange
+ }) {
+ function addNonBreakingSpace() {
+ onChange((0,external_wp_richText_namespaceObject.insert)(value, '\u00a0'));
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichTextShortcut, {
+ type: "primaryShift",
+ character: " ",
+ onUse: addNonBreakingSpace
+ });
+ }
+};
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/default-formats.js
/**
* Internal dependencies
@@ -1894,7 +1972,8 @@ function InlineLanguageUI({
-/* harmony default export */ const default_formats = ([bold, code_code, image_image, italic, build_module_link_link, strikethrough, underline, text_color_textColor, subscript_subscript, superscript_superscript, keyboard, unknown, language_language]);
+
+/* harmony default export */ const default_formats = ([bold, code_code, image_image, italic, build_module_link_link, strikethrough, underline, text_color_textColor, subscript_subscript, superscript_superscript, keyboard, unknown, language_language, nonBreakingSpace]);
;// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/index.js
/**
diff --git a/wp-includes/js/dist/format-library.min.js b/wp-includes/js/dist/format-library.min.js
index 3e79d3a..c01383f 100644
--- a/wp-includes/js/dist/format-library.min.js
+++ b/wp-includes/js/dist/format-library.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-(()=>{"use strict";var e={r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t);const n=window.wp.richText,o=window.React,r=window.wp.i18n,a=window.wp.blockEditor,l=window.wp.primitives,i=(0,o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(l.Path,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"})),c="core/bold",s=(0,r.__)("Bold"),u={name:c,title:s,tagName:"strong",className:null,edit({isActive:e,value:t,onChange:r,onFocus:l}){function u(){r((0,n.toggleFormat)(t,{type:c,title:s}))}return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(a.RichTextShortcut,{type:"primary",character:"b",onUse:u}),(0,o.createElement)(a.RichTextToolbarButton,{name:"bold",icon:i,title:s,onClick:function(){r((0,n.toggleFormat)(t,{type:c})),l()},isActive:e,shortcutType:"primary",shortcutCharacter:"b"}),(0,o.createElement)(a.__unstableRichTextInputEvent,{inputType:"formatBold",onInput:u}))}},m=(0,o.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(l.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})),p="core/code",h=(0,r.__)("Inline code"),g={name:p,title:h,tagName:"code",className:null,__unstableInputRule(e){const{start:t,text:o}=e;if("`"!==o[t-1])return e;if(t-2<0)return e;const r=o.lastIndexOf("`",t-2);if(-1===r)return e;const a=r,l=t-2;return a===l?e:(e=(0,n.remove)(e,a,a+1),e=(0,n.remove)(e,l,l+1),e=(0,n.applyFormat)(e,{type:p},a,l))},edit({value:e,onChange:t,onFocus:r,isActive:l}){function i(){t((0,n.toggleFormat)(e,{type:p,title:h})),r()}return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(a.RichTextShortcut,{type:"access",character:"x",onUse:i}),(0,o.createElement)(a.RichTextToolbarButton,{icon:m,title:h,onClick:i,isActive:l,role:"menuitemcheckbox"}))}},d=window.wp.components,v=window.wp.element,b=(0,o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,o.createElement)(l.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"})),f=["image"],w="core/image",y=(0,r.__)("Inline image"),E={name:w,title:y,keywords:[(0,r.__)("photo"),(0,r.__)("media")],object:!0,tagName:"img",className:null,attributes:{className:"class",style:"style",url:"src",alt:"alt"},edit:function({value:e,onChange:t,onFocus:r,isObjectActive:l,activeObjectAttributes:i,contentRef:c}){const[s,u]=(0,v.useState)(!1);function m(){u(!1)}return(0,o.createElement)(a.MediaUploadCheck,null,(0,o.createElement)(a.RichTextToolbarButton,{icon:(0,o.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(d.Path,{d:"M4 18.5h16V17H4v1.5zM16 13v1.5h4V13h-4zM5.1 15h7.8c.6 0 1.1-.5 1.1-1.1V6.1c0-.6-.5-1.1-1.1-1.1H5.1C4.5 5 4 5.5 4 6.1v7.8c0 .6.5 1.1 1.1 1.1zm.4-8.5h7V10l-1-1c-.3-.3-.8-.3-1 0l-1.6 1.5-1.2-.7c-.3-.2-.6-.2-.9 0l-1.3 1V6.5zm0 6.1l1.8-1.3 1.3.8c.3.2.7.2.9-.1l1.5-1.4 1.5 1.4v1.5h-7v-.9z"})),title:y,onClick:function(){u(!0)},isActive:l}),s&&(0,o.createElement)(a.MediaUpload,{allowedTypes:f,onSelect:({id:o,url:a,alt:l,width:i})=>{m(),t((0,n.insertObject)(e,{type:w,attributes:{className:`wp-image-${o}`,style:`width: ${Math.min(i,150)}px;`,url:a,alt:l}})),r()},onClose:m,render:({open:e})=>(e(),null)}),l&&(0,o.createElement)(_,{value:e,onChange:t,activeObjectAttributes:i,contentRef:c}))}};function _({value:e,onChange:t,activeObjectAttributes:a,contentRef:l}){const{style:i}=a,[c,s]=(0,v.useState)(i?.replace(/\D/g,"")),u=(0,n.useAnchor)({editableContentElement:l.current,settings:E});return(0,o.createElement)(d.Popover,{placement:"bottom",focusOnMount:!1,anchor:u,className:"block-editor-format-toolbar__image-popover"},(0,o.createElement)("form",{className:"block-editor-format-toolbar__image-container-content",onSubmit:n=>{const o=e.replacements.slice();o[e.start]={type:w,attributes:{...a,style:c?`width: ${c}px;`:""}},t({...e,replacements:o}),n.preventDefault()}},(0,o.createElement)(d.__experimentalHStack,{alignment:"bottom",spacing:"0"},(0,o.createElement)(d.__experimentalNumberControl,{className:"block-editor-format-toolbar__image-container-value",label:(0,r.__)("Width"),value:c,min:1,onChange:e=>s(e)}),(0,o.createElement)(d.Button,{className:"block-editor-format-toolbar__image-container-button",icon:b,label:(0,r.__)("Apply"),type:"submit"}))))}const k=(0,o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(l.Path,{d:"M12.5 5L10 19h1.9l2.5-14z"})),C="core/italic",x=(0,r.__)("Italic"),S={name:C,title:x,tagName:"em",className:null,edit({isActive:e,value:t,onChange:r,onFocus:l}){function i(){r((0,n.toggleFormat)(t,{type:C,title:x}))}return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(a.RichTextShortcut,{type:"primary",character:"i",onUse:i}),(0,o.createElement)(a.RichTextToolbarButton,{name:"italic",icon:k,title:x,onClick:function(){r((0,n.toggleFormat)(t,{type:C})),l()},isActive:e,shortcutType:"primary",shortcutCharacter:"i"}),(0,o.createElement)(a.__unstableRichTextInputEvent,{inputType:"formatItalic",onInput:i}))}},T=window.wp.url,A=window.wp.htmlEntities,F=(0,o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(l.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})),N=window.wp.a11y,R=window.wp.data;function V(e){if(!e)return!1;const t=e.trim();if(!t)return!1;if(/^\S+:/.test(t)){const e=(0,T.getProtocol)(t);if(!(0,T.isValidProtocol)(e))return!1;if(e.startsWith("http")&&!/^https?:\/\/[^\/\s]/i.test(t))return!1;const n=(0,T.getAuthority)(t);if(!(0,T.isValidAuthority)(n))return!1;const o=(0,T.getPath)(t);if(o&&!(0,T.isValidPath)(o))return!1;const r=(0,T.getQueryString)(t);if(r&&!(0,T.isValidQueryString)(r))return!1;const a=(0,T.getFragment)(t);if(a&&!(0,T.isValidFragment)(a))return!1}return!(t.startsWith("#")&&!(0,T.isValidFragment)(t))}function P(e,t,n=e.start,o=e.end){const r={start:null,end:null},{formats:a}=e;let l,i;if(!a?.length)return r;const c=a.slice(),s=c[n]?.find((({type:e})=>e===t.type)),u=c[o]?.find((({type:e})=>e===t.type)),m=c[o-1]?.find((({type:e})=>e===t.type));if(s)l=s,i=n;else if(u)l=u,i=o;else{if(!m)return r;l=m,i=o-1}const p=c[i].indexOf(l),h=[c,i,l,p];return{start:n=(n=L(...h))<0?0:n,end:o=z(...h)}}function M(e,t,n,o,r){let a=t;const l={forwards:1,backwards:-1}[r]||1,i=-1*l;for(;e[a]&&e[a][o]===n;)a+=l;return a+=i,a}const B=(e,...t)=>(...n)=>e(...n,...t),L=B(M,"backwards"),z=B(M,"forwards"),I=[...a.__experimentalLinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,r.__)("Mark as nofollow")}];const H=function({isActive:e,activeAttributes:t,value:l,onChange:i,onFocusOutside:c,stopAddingLink:s,contentRef:u,focusOnMount:m}){const p=function(e,t){let o=e.start,r=e.end;if(t){const t=P(e,{type:"core/link"});o=t.start,r=t.end+1}return(0,n.slice)(e,o,r)}(l,e).text,{selectionChange:h}=(0,R.useDispatch)(a.store),{createPageEntity:g,userCanCreatePages:b,selectionStart:f}=(0,R.useSelect)((e=>{const{getSettings:t,getSelectionStart:n}=e(a.store),o=t();return{createPageEntity:o.__experimentalCreatePageEntity,userCanCreatePages:o.__experimentalUserCanCreatePages,selectionStart:n()}}),[]),w=(0,v.useMemo)((()=>({url:t.url,type:t.type,id:t.id,opensInNewTab:"_blank"===t.target,nofollow:t.rel?.includes("nofollow"),title:p})),[t.id,t.rel,t.target,t.type,t.url,p]),y=(0,n.useAnchor)({editableContentElement:u.current,settings:{...j,isActive:e}});return(0,o.createElement)(d.Popover,{anchor:y,onClose:s,onFocusOutside:c,placement:"bottom",offset:10,shift:!0,focusOnMount:m,constrainTabbing:!0},(0,o.createElement)(a.__experimentalLinkControl,{value:w,onChange:function(t){const o=w?.url,a=!o;t={...w,...t};const c=(0,T.prependHTTP)(t.url),u=function({url:e,type:t,id:n,opensInNewWindow:o,nofollow:r}){const a={type:"core/link",attributes:{url:e}};return t&&(a.attributes.type=t),n&&(a.attributes.id=n),o&&(a.attributes.target="_blank",a.attributes.rel=a.attributes.rel?a.attributes.rel+" noreferrer noopener":"noreferrer noopener"),r&&(a.attributes.rel=a.attributes.rel?a.attributes.rel+" nofollow":"nofollow"),a}({url:c,type:t.type,id:void 0!==t.id&&null!==t.id?String(t.id):void 0,opensInNewWindow:t.opensInNewTab,nofollow:t.nofollow}),m=t.title||c;let g;if((0,n.isCollapsed)(l)&&!e){const e=(0,n.insert)(l,m);return g=(0,n.applyFormat)(e,u,l.start,l.start+m.length),i(g),s(),void h({clientId:f.clientId,identifier:f.attributeKey,start:l.start+m.length+1})}if(m===p)g=(0,n.applyFormat)(l,u);else{g=(0,n.create)({text:m}),g=(0,n.applyFormat)(g,u,0,m.length);const e=P(l,{type:"core/link"}),[t,o]=(0,n.split)(l,e.start,e.start),r=(0,n.replace)(o,p,g);g=(0,n.concat)(t,r)}i(g),a||s(),V(c)?e?(0,N.speak)((0,r.__)("Link edited."),"assertive"):(0,N.speak)((0,r.__)("Link inserted."),"assertive"):(0,N.speak)((0,r.__)("Warning: the link has been inserted but may have errors. Please test it."),"assertive")},onRemove:function(){const e=(0,n.removeFormat)(l,"core/link");i(e),s(),(0,N.speak)((0,r.__)("Link removed."),"assertive")},hasRichPreviews:!0,createSuggestion:g&&async function(e){const t=await g({title:e,status:"draft"});return{id:t.id,type:t.type,title:t.title.rendered,url:t.link,kind:"post-type"}},withCreateSuggestion:b,createSuggestionButtonText:function(e){return(0,v.createInterpolateElement)((0,r.sprintf)((0,r.__)("Create page: <mark>%s</mark>"),e),{mark:(0,o.createElement)("mark",null)})},hasTextControl:!0,settings:I,showInitialSuggestions:!0,suggestionsQuery:{initialSuggestionsSearchOptions:{type:"post",subtype:"page",perPage:20}}}))},O="core/link",U=(0,r.__)("Link");const j={name:O,title:U,tagName:"a",className:null,attributes:{url:"href",type:"data-type",id:"data-id",_id:"id",target:"target",rel:"rel"},__unstablePasteRule(e,{html:t,plainText:o}){const r=(t||o).replace(/<[^>]+>/g,"").trim();if(!(0,T.isURL)(r)||!/^https?:/.test(r))return e;window.console.log("Created link:\n\n",r);const a={type:O,attributes:{url:(0,A.decodeEntities)(r)}};return(0,n.isCollapsed)(e)?(0,n.insert)(e,(0,n.applyFormat)((0,n.create)({text:o}),a,0,o.length)):(0,n.applyFormat)(e,a)},edit:function({isActive:e,activeAttributes:t,value:l,onChange:i,onFocus:c,contentRef:s}){const[u,m]=(0,v.useState)(!1),[p,h]=(0,v.useState)(!1),[g,d]=(0,v.useState)(null),[b,f]=(0,v.useState)(!0);function w(e,{autoFocus:t=!0}={}){m(e),f(t)}function y(t){!0===t&&e||h(t)}function E(t){f(!0);const o=(0,n.getTextContent)((0,n.slice)(l));!e&&o&&(0,T.isURL)(o)&&V(o)?i((0,n.applyFormat)(l,{type:O,attributes:{url:o}})):!e&&o&&(0,T.isEmail)(o)?i((0,n.applyFormat)(l,{type:O,attributes:{url:`mailto:${o}`}})):(t&&d(t),e?w(!0):y(!0))}(0,v.useEffect)((()=>{e||(m(!1),h(!1))}),[e]),(0,v.useLayoutEffect)((()=>{const t=s.current;if(t)return t.addEventListener("click",n),()=>{t.removeEventListener("click",n)};function n(t){t.target.closest("[contenteditable] a")&&e?w(!0,{autoFocus:!1}):w(!1)}}),[s,e]);const _=u&&e;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(a.RichTextShortcut,{type:"primary",character:"k",onUse:E}),(0,o.createElement)(a.RichTextShortcut,{type:"primaryShift",character:"k",onUse:function(){i((0,n.removeFormat)(l,O)),(0,N.speak)((0,r.__)("Link removed."),"assertive")}}),(0,o.createElement)(a.RichTextToolbarButton,{name:"link",icon:F,title:e?(0,r.__)("Link"):U,onClick:e=>{E(e.currentTarget)},isActive:e||u,shortcutType:"primary",shortcutCharacter:"k","aria-haspopup":"true","aria-expanded":u}),(_||p)&&(0,o.createElement)(H,{stopAddingLink:function(){w(!1),y(!1),"BUTTON"===g?.tagName?g.focus():c(),d(null)},onFocusOutside:function(){w(!1),y(!1),d(null)},isActive:e,activeAttributes:t,value:l,onChange:i,contentRef:s,focusOnMount:!!b&&"firstElement"}))}},G=(0,o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(l.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})),W="core/strikethrough",D=(0,r.__)("Strikethrough"),Z={name:W,title:D,tagName:"s",className:null,edit({isActive:e,value:t,onChange:r,onFocus:l}){function i(){r((0,n.toggleFormat)(t,{type:W,title:D})),l()}return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(a.RichTextShortcut,{type:"access",character:"d",onUse:i}),(0,o.createElement)(a.RichTextToolbarButton,{icon:G,title:D,onClick:i,isActive:e,role:"menuitemcheckbox"}))}},$="core/underline",K=(0,r.__)("Underline"),Q={name:$,title:K,tagName:"span",className:null,attributes:{style:"style"},edit({value:e,onChange:t}){const r=()=>{t((0,n.toggleFormat)(e,{type:$,attributes:{style:"text-decoration: underline;"},title:K}))};return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(a.RichTextShortcut,{type:"primary",character:"u",onUse:r}),(0,o.createElement)(a.__unstableRichTextInputEvent,{inputType:"formatUnderline",onInput:r}))}};const q=(0,v.forwardRef)((function({icon:e,size:t=24,...n},o){return(0,v.cloneElement)(e,{width:t,height:t,...n,ref:o})})),J=(0,o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(l.Path,{d:"M12.9 6h-2l-4 11h1.9l1.1-3h4.2l1.1 3h1.9L12.9 6zm-2.5 6.5l1.5-4.9 1.7 4.9h-3.2z"})),X=(0,o.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(l.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})),Y=window.wp.privateApis,{lock:ee,unlock:te}=(0,Y.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/format-library"),{Tabs:ne}=te(d.privateApis),oe=[{name:"color",title:(0,r.__)("Text")},{name:"backgroundColor",title:(0,r.__)("Background")}];function re(e=""){return e.split(";").reduce(((e,t)=>{if(t){const[n,o]=t.split(":");"color"===n&&(e.color=o),"background-color"===n&&o!==se&&(e.backgroundColor=o)}return e}),{})}function ae(e="",t){return e.split(" ").reduce(((e,n)=>{if(n.startsWith("has-")&&n.endsWith("-color")){const o=n.replace(/^has-/,"").replace(/-color$/,""),r=(0,a.getColorObjectByAttributeValues)(t,o);e.color=r.color}return e}),{})}function le(e,t,o){const r=(0,n.getActiveFormat)(e,t);return r?{...re(r.attributes.style),...ae(r.attributes.class,o)}:{}}function ie({name:e,property:t,value:r,onChange:l}){const i=(0,R.useSelect)((e=>{var t;const{getSettings:n}=e(a.store);return null!==(t=n().colors)&&void 0!==t?t:[]}),[]),c=(0,v.useCallback)((o=>{l(function(e,t,o,r){const{color:l,backgroundColor:i}={...le(e,t,o),...r};if(!l&&!i)return(0,n.removeFormat)(e,t);const c=[],s=[],u={};if(i?c.push(["background-color",i].join(":")):c.push(["background-color",se].join(":")),l){const e=(0,a.getColorObjectByColorValue)(o,l);e?s.push((0,a.getColorClassName)("color",e.slug)):c.push(["color",l].join(":"))}return c.length&&(u.style=c.join(";")),s.length&&(u.class=s.join(" ")),(0,n.applyFormat)(e,{type:t,attributes:u})}(r,e,i,{[t]:o}))}),[i,l,t]),s=(0,v.useMemo)((()=>le(r,e,i)),[e,r,i]);return(0,o.createElement)(a.ColorPalette,{value:s[t],onChange:c})}function ce({name:e,value:t,onChange:r,onClose:a,contentRef:l,isActive:i}){const c=(0,n.useAnchor)({editableContentElement:l.current,settings:{...ge,isActive:i}});return(0,o.createElement)(d.Popover,{onClose:a,className:"format-library__inline-color-popover",anchor:c},(0,o.createElement)(ne,null,(0,o.createElement)(ne.TabList,null,oe.map((e=>(0,o.createElement)(ne.Tab,{tabId:e.name,key:e.name},e.title)))),oe.map((n=>(0,o.createElement)(ne.TabPanel,{tabId:n.name,focusable:!1,key:n.name},(0,o.createElement)(ie,{name:e,property:n.name,value:t,onChange:r}))))))}const se="rgba(0, 0, 0, 0)",ue="core/text-color",me=(0,r.__)("Highlight"),pe=[];function he(e,t){const{ownerDocument:n}=e,{defaultView:o}=n,r=o.getComputedStyle(e).getPropertyValue(t);return"background-color"===t&&r===se&&e.parentElement?he(e.parentElement,t):r}const ge={name:ue,title:me,tagName:"mark",className:"has-inline-color",attributes:{style:"style",class:"class"},edit:function({value:e,onChange:t,isActive:r,activeAttributes:l,contentRef:i}){const[c,s=pe]=(0,a.useSettings)("color.custom","color.palette"),[u,m]=(0,v.useState)(!1),p=(0,v.useCallback)((()=>m(!0)),[m]),h=(0,v.useCallback)((()=>m(!1)),[m]),g=(0,v.useMemo)((()=>function(e,{color:t,backgroundColor:n}){if(t||n)return{color:t||he(e,"color"),backgroundColor:n===se?he(e,"background-color"):n}}(i.current,le(e,ue,s))),[e,s]),d=s.length||!c;return d||r?(0,o.createElement)(o.Fragment,null,(0,o.createElement)(a.RichTextToolbarButton,{className:"format-library-text-color-button",isActive:r,icon:(0,o.createElement)(q,{icon:Object.keys(l).length?J:X,style:g}),title:me,onClick:d?p:()=>t((0,n.removeFormat)(e,ue)),role:"menuitemcheckbox"}),u&&(0,o.createElement)(ce,{name:ue,onClose:h,activeAttributes:l,value:e,onChange:t,contentRef:i,isActive:r})):null}},de=(0,o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(l.Path,{d:"M16.9 18.3l.8-1.2c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.1-.3-.4-.5-.6-.7-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.2 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3L15 19.4h4.3v-1.2h-2.4zM14.1 7.2h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})),ve="core/subscript",be=(0,r.__)("Subscript"),fe={name:ve,title:be,tagName:"sub",className:null,edit:({isActive:e,value:t,onChange:r,onFocus:l})=>(0,o.createElement)(a.RichTextToolbarButton,{icon:de,title:be,onClick:function(){r((0,n.toggleFormat)(t,{type:ve,title:be})),l()},isActive:e,role:"menuitemcheckbox"})},we=(0,o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(l.Path,{d:"M16.9 10.3l.8-1.3c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.2-.2-.4-.4-.7-.6-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.1 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3l-1.8 2.8h4.3v-1.2h-2.2zm-2.8-3.1h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})),ye="core/superscript",Ee=(0,r.__)("Superscript"),_e={name:ye,title:Ee,tagName:"sup",className:null,edit:({isActive:e,value:t,onChange:r,onFocus:l})=>(0,o.createElement)(a.RichTextToolbarButton,{icon:we,title:Ee,onClick:function(){r((0,n.toggleFormat)(t,{type:ye,title:Ee})),l()},isActive:e,role:"menuitemcheckbox"})},ke=(0,o.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(l.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})),Ce="core/keyboard",xe=(0,r.__)("Keyboard input"),Se={name:Ce,title:xe,tagName:"kbd",className:null,edit:({isActive:e,value:t,onChange:r,onFocus:l})=>(0,o.createElement)(a.RichTextToolbarButton,{icon:ke,title:xe,onClick:function(){r((0,n.toggleFormat)(t,{type:Ce,title:xe})),l()},isActive:e,role:"menuitemcheckbox"})},Te=(0,o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(l.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"})),Ae="core/unknown",Fe=(0,r.__)("Clear Unknown Formatting"),Ne={name:Ae,title:Fe,tagName:"*",className:null,edit({isActive:e,value:t,onChange:r,onFocus:l}){const i=(0,n.slice)(t).formats.some((e=>e.some((e=>e.type===Ae))));return e||i?(0,o.createElement)(a.RichTextToolbarButton,{name:"unknown",icon:Te,title:Fe,onClick:function(){r((0,n.removeFormat)(t,Ae)),l()},isActive:!0}):null}},Re=(0,o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(l.Path,{d:"M17.5 10h-1.7l-3.7 10.5h1.7l.9-2.6h3.9l.9 2.6h1.7L17.5 10zm-2.2 6.3 1.4-4 1.4 4h-2.8zm-4.8-3.8c1.6-1.8 2.9-3.6 3.7-5.7H16V5.2h-5.8V3H8.8v2.2H3v1.5h9.6c-.7 1.6-1.8 3.1-3.1 4.6C8.6 10.2 7.8 9 7.2 8H5.6c.6 1.4 1.7 2.9 2.9 4.4l-2.4 2.4c-.3.4-.7.8-1.1 1.2l1 1 1.2-1.2c.8-.8 1.6-1.5 2.3-2.3.8.9 1.7 1.7 2.5 2.5l.6-1.5c-.7-.6-1.4-1.3-2.1-2z"})),Ve="core/language",Pe=(0,r.__)("Language"),Me={name:Ve,tagName:"bdo",className:null,edit:function({isActive:e,value:t,onChange:r,contentRef:l}){const[i,c]=(0,v.useState)(!1),s=()=>{c((e=>!e))};return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(a.RichTextToolbarButton,{icon:Re,label:Pe,title:Pe,onClick:()=>{e?r((0,n.removeFormat)(t,Ve)):s()},isActive:e,role:"menuitemcheckbox"}),i&&(0,o.createElement)(Be,{value:t,onChange:r,onClose:s,contentRef:l}))},title:Pe};function Be({value:e,contentRef:t,onChange:a,onClose:l}){const i=(0,n.useAnchor)({editableContentElement:t.current,settings:Me}),[c,s]=(0,v.useState)(""),[u,m]=(0,v.useState)("ltr");return(0,o.createElement)(d.Popover,{className:"block-editor-format-toolbar__language-popover",anchor:i,onClose:l},(0,o.createElement)("form",{className:"block-editor-format-toolbar__language-container-content",onSubmit:t=>{t.preventDefault(),a((0,n.applyFormat)(e,{type:Ve,attributes:{lang:c,dir:u}})),l()}},(0,o.createElement)(d.TextControl,{label:Pe,value:c,onChange:e=>s(e),help:(0,r.__)('A valid language attribute, like "en" or "fr".')}),(0,o.createElement)(d.SelectControl,{label:(0,r.__)("Text direction"),value:u,options:[{label:(0,r.__)("Left to right"),value:"ltr"},{label:(0,r.__)("Right to left"),value:"rtl"}],onChange:e=>m(e)}),(0,o.createElement)(d.__experimentalHStack,{alignment:"right"},(0,o.createElement)(d.Button,{variant:"primary",type:"submit",text:(0,r.__)("Apply")}))))}[u,g,E,S,j,Z,Q,ge,fe,_e,Se,Ne,Me].forEach((({name:e,...t})=>(0,n.registerFormatType)(e,t))),(window.wp=window.wp||{}).formatLibrary=t})(); \ No newline at end of file
+(()=>{"use strict";var t={r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e);const n=window.wp.richText,o=window.wp.i18n,r=window.wp.blockEditor,i=window.wp.primitives,a=window.ReactJSXRuntime,l=(0,a.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(i.Path,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"})}),s="core/bold",c=(0,o.__)("Bold"),u={name:s,title:c,tagName:"strong",className:null,edit({isActive:t,value:e,onChange:o,onFocus:i}){function u(){o((0,n.toggleFormat)(e,{type:s,title:c}))}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.RichTextShortcut,{type:"primary",character:"b",onUse:u}),(0,a.jsx)(r.RichTextToolbarButton,{name:"bold",icon:l,title:c,onClick:function(){o((0,n.toggleFormat)(e,{type:s})),i()},isActive:t,shortcutType:"primary",shortcutCharacter:"b"}),(0,a.jsx)(r.__unstableRichTextInputEvent,{inputType:"formatBold",onInput:u})]})}},h=(0,a.jsx)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(i.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})}),m="core/code",p=(0,o.__)("Inline code"),d={name:m,title:p,tagName:"code",className:null,__unstableInputRule(t){const{start:e,text:o}=t;if("`"!==o[e-1])return t;if(e-2<0)return t;const r=o.lastIndexOf("`",e-2);if(-1===r)return t;const i=r,a=e-2;return i===a?t:(t=(0,n.remove)(t,i,i+1),t=(0,n.remove)(t,a,a+1),t=(0,n.applyFormat)(t,{type:m},i,a))},edit({value:t,onChange:e,onFocus:o,isActive:i}){function l(){e((0,n.toggleFormat)(t,{type:m,title:p})),o()}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.RichTextShortcut,{type:"access",character:"x",onUse:l}),(0,a.jsx)(r.RichTextToolbarButton,{icon:h,title:p,onClick:l,isActive:i,role:"menuitemcheckbox"})]})}},g=window.wp.components,x=window.wp.element,v=(0,a.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(i.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})}),b=["image"],f="core/image",w=(0,o.__)("Inline image"),y={name:f,title:w,keywords:[(0,o.__)("photo"),(0,o.__)("media")],object:!0,tagName:"img",className:null,attributes:{className:"class",style:"style",url:"src",alt:"alt"},edit:function({value:t,onChange:e,onFocus:o,isObjectActive:i,activeObjectAttributes:l,contentRef:s}){return(0,a.jsxs)(r.MediaUploadCheck,{children:[(0,a.jsx)(r.MediaUpload,{allowedTypes:b,onSelect:({id:r,url:i,alt:a,width:l})=>{e((0,n.insertObject)(t,{type:f,attributes:{className:`wp-image-${r}`,style:`width: ${Math.min(l,150)}px;`,url:i,alt:a}})),o()},render:({open:t})=>(0,a.jsx)(r.RichTextToolbarButton,{icon:(0,a.jsx)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(g.Path,{d:"M4 18.5h16V17H4v1.5zM16 13v1.5h4V13h-4zM5.1 15h7.8c.6 0 1.1-.5 1.1-1.1V6.1c0-.6-.5-1.1-1.1-1.1H5.1C4.5 5 4 5.5 4 6.1v7.8c0 .6.5 1.1 1.1 1.1zm.4-8.5h7V10l-1-1c-.3-.3-.8-.3-1 0l-1.6 1.5-1.2-.7c-.3-.2-.6-.2-.9 0l-1.3 1V6.5zm0 6.1l1.8-1.3 1.3.8c.3.2.7.2.9-.1l1.5-1.4 1.5 1.4v1.5h-7v-.9z"})}),title:w,onClick:t,isActive:i})}),i&&(0,a.jsx)(_,{value:t,onChange:e,activeObjectAttributes:l,contentRef:s})]})}};function _({value:t,onChange:e,activeObjectAttributes:r,contentRef:i}){const{style:l}=r,[s,c]=(0,x.useState)(l?.replace(/\D/g,"")),u=(0,n.useAnchor)({editableContentElement:i.current,settings:y});return(0,a.jsx)(g.Popover,{placement:"bottom",focusOnMount:!1,anchor:u,className:"block-editor-format-toolbar__image-popover",children:(0,a.jsx)("form",{className:"block-editor-format-toolbar__image-container-content",onSubmit:n=>{const o=t.replacements.slice();o[t.start]={type:f,attributes:{...r,style:s?`width: ${s}px;`:""}},e({...t,replacements:o}),n.preventDefault()},children:(0,a.jsxs)(g.__experimentalHStack,{alignment:"bottom",spacing:"0",children:[(0,a.jsx)(g.__experimentalNumberControl,{className:"block-editor-format-toolbar__image-container-value",label:(0,o.__)("Width"),value:s,min:1,onChange:t=>c(t)}),(0,a.jsx)(g.Button,{className:"block-editor-format-toolbar__image-container-button",icon:v,label:(0,o.__)("Apply"),type:"submit"})]})})})}const j=(0,a.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(i.Path,{d:"M12.5 5L10 19h1.9l2.5-14z"})}),k="core/italic",C=(0,o.__)("Italic"),T={name:k,title:C,tagName:"em",className:null,edit({isActive:t,value:e,onChange:o,onFocus:i}){function l(){o((0,n.toggleFormat)(e,{type:k,title:C}))}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.RichTextShortcut,{type:"primary",character:"i",onUse:l}),(0,a.jsx)(r.RichTextToolbarButton,{name:"italic",icon:j,title:C,onClick:function(){o((0,n.toggleFormat)(e,{type:k})),i()},isActive:t,shortcutType:"primary",shortcutCharacter:"i"}),(0,a.jsx)(r.__unstableRichTextInputEvent,{inputType:"formatItalic",onInput:l})]})}},S=window.wp.url,A=window.wp.htmlEntities,F=(0,a.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(i.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})}),N=window.wp.a11y,R=window.wp.data;function V(t){if(!t)return!1;const e=t.trim();if(!e)return!1;if(/^\S+:/.test(e)){const t=(0,S.getProtocol)(e);if(!(0,S.isValidProtocol)(t))return!1;if(t.startsWith("http")&&!/^https?:\/\/[^\/\s]/i.test(e))return!1;const n=(0,S.getAuthority)(e);if(!(0,S.isValidAuthority)(n))return!1;const o=(0,S.getPath)(e);if(o&&!(0,S.isValidPath)(o))return!1;const r=(0,S.getQueryString)(e);if(r&&!(0,S.isValidQueryString)(r))return!1;const i=(0,S.getFragment)(e);if(i&&!(0,S.isValidFragment)(i))return!1}return!(e.startsWith("#")&&!(0,S.isValidFragment)(e))}function P(t,e,n=t.start,o=t.end){const r={start:null,end:null},{formats:i}=t;let a,l;if(!i?.length)return r;const s=i.slice(),c=s[n]?.find((({type:t})=>t===e.type)),u=s[o]?.find((({type:t})=>t===e.type)),h=s[o-1]?.find((({type:t})=>t===e.type));if(c)a=c,l=n;else if(u)a=u,l=o;else{if(!h)return r;a=h,l=o-1}const m=s[l].indexOf(a),p=[s,l,a,m];return{start:n=(n=L(...p))<0?0:n,end:o=z(...p)}}function M(t,e,n,o,r){let i=e;const a={forwards:1,backwards:-1}[r]||1,l=-1*a;for(;t[i]&&t[i][o]===n;)i+=a;return i+=l,i}const B=(t,...e)=>(...n)=>t(...n,...e),L=B(M,"backwards"),z=B(M,"forwards"),I=[...r.__experimentalLinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,o.__)("Mark as nofollow")}];const E=function({isActive:t,activeAttributes:e,value:i,onChange:l,onFocusOutside:s,stopAddingLink:c,contentRef:u,focusOnMount:h}){const m=function(t,e){let o=t.start,r=t.end;if(e){const e=P(t,{type:"core/link"});o=e.start,r=e.end+1}return(0,n.slice)(t,o,r)}(i,t).text,{selectionChange:p}=(0,R.useDispatch)(r.store),{createPageEntity:d,userCanCreatePages:v,selectionStart:b}=(0,R.useSelect)((t=>{const{getSettings:e,getSelectionStart:n}=t(r.store),o=e();return{createPageEntity:o.__experimentalCreatePageEntity,userCanCreatePages:o.__experimentalUserCanCreatePages,selectionStart:n()}}),[]),f=(0,x.useMemo)((()=>({url:e.url,type:e.type,id:e.id,opensInNewTab:"_blank"===e.target,nofollow:e.rel?.includes("nofollow"),title:m})),[e.id,e.rel,e.target,e.type,e.url,m]),w=(0,n.useAnchor)({editableContentElement:u.current,settings:{...U,isActive:t}});return(0,a.jsx)(g.Popover,{anchor:w,animate:!1,onClose:c,onFocusOutside:s,placement:"bottom",offset:8,shift:!0,focusOnMount:h,constrainTabbing:!0,children:(0,a.jsx)(r.__experimentalLinkControl,{value:f,onChange:function(e){const r=f?.url,a=!r;e={...f,...e};const s=(0,S.prependHTTP)(e.url),u=function({url:t,type:e,id:n,opensInNewWindow:o,nofollow:r}){const i={type:"core/link",attributes:{url:t}};return e&&(i.attributes.type=e),n&&(i.attributes.id=n),o&&(i.attributes.target="_blank",i.attributes.rel=i.attributes.rel?i.attributes.rel+" noreferrer noopener":"noreferrer noopener"),r&&(i.attributes.rel=i.attributes.rel?i.attributes.rel+" nofollow":"nofollow"),i}({url:s,type:e.type,id:void 0!==e.id&&null!==e.id?String(e.id):void 0,opensInNewWindow:e.opensInNewTab,nofollow:e.nofollow}),h=e.title||s;let d;if((0,n.isCollapsed)(i)&&!t){const t=(0,n.insert)(i,h);return d=(0,n.applyFormat)(t,u,i.start,i.start+h.length),l(d),c(),void p({clientId:b.clientId,identifier:b.attributeKey,start:i.start+h.length+1})}if(h===m)d=(0,n.applyFormat)(i,u);else{d=(0,n.create)({text:h}),d=(0,n.applyFormat)(d,u,0,h.length);const t=P(i,{type:"core/link"}),[e,o]=(0,n.split)(i,t.start,t.start),r=(0,n.replace)(o,m,d);d=(0,n.concat)(e,r)}l(d),a||c(),V(s)?t?(0,N.speak)((0,o.__)("Link edited."),"assertive"):(0,N.speak)((0,o.__)("Link inserted."),"assertive"):(0,N.speak)((0,o.__)("Warning: the link has been inserted but may have errors. Please test it."),"assertive")},onRemove:function(){const t=(0,n.removeFormat)(i,"core/link");l(t),c(),(0,N.speak)((0,o.__)("Link removed."),"assertive")},hasRichPreviews:!0,createSuggestion:d&&async function(t){const e=await d({title:t,status:"draft"});return{id:e.id,type:e.type,title:e.title.rendered,url:e.link,kind:"post-type"}},withCreateSuggestion:v,createSuggestionButtonText:function(t){return(0,x.createInterpolateElement)((0,o.sprintf)((0,o.__)("Create page: <mark>%s</mark>"),t),{mark:(0,a.jsx)("mark",{})})},hasTextControl:!0,settings:I,showInitialSuggestions:!0,suggestionsQuery:{initialSuggestionsSearchOptions:{type:"post",subtype:"page",perPage:20}}})})},H="core/link",O=(0,o.__)("Link");const U={name:H,title:O,tagName:"a",className:null,attributes:{url:"href",type:"data-type",id:"data-id",_id:"id",target:"target",rel:"rel"},__unstablePasteRule(t,{html:e,plainText:o}){const r=(e||o).replace(/<[^>]+>/g,"").trim();if(!(0,S.isURL)(r)||!/^https?:/.test(r))return t;window.console.log("Created link:\n\n",r);const i={type:H,attributes:{url:(0,A.decodeEntities)(r)}};return(0,n.isCollapsed)(t)?(0,n.insert)(t,(0,n.applyFormat)((0,n.create)({text:o}),i,0,o.length)):(0,n.applyFormat)(t,i)},edit:function({isActive:t,activeAttributes:e,value:i,onChange:l,onFocus:s,contentRef:c}){const[u,h]=(0,x.useState)(!1),[m,p]=(0,x.useState)(null);function d(e){const o=(0,n.getTextContent)((0,n.slice)(i));!t&&o&&(0,S.isURL)(o)&&V(o)?l((0,n.applyFormat)(i,{type:H,attributes:{url:o}})):!t&&o&&(0,S.isEmail)(o)?l((0,n.applyFormat)(i,{type:H,attributes:{url:`mailto:${o}`}})):(e&&p({el:e,action:null}),h(!0))}(0,x.useEffect)((()=>{t||h(!1)}),[t]),(0,x.useLayoutEffect)((()=>{const e=c.current;if(e)return e.addEventListener("click",n),()=>{e.removeEventListener("click",n)};function n(e){const n=e.target.closest("[contenteditable] a");n&&t&&(h(!0),p({el:n,action:"click"}))}}),[c,t]);const g=!("A"===m?.el?.tagName&&"click"===m?.action);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.RichTextShortcut,{type:"primary",character:"k",onUse:d}),(0,a.jsx)(r.RichTextShortcut,{type:"primaryShift",character:"k",onUse:function(){l((0,n.removeFormat)(i,H)),(0,N.speak)((0,o.__)("Link removed."),"assertive")}}),(0,a.jsx)(r.RichTextToolbarButton,{name:"link",icon:F,title:t?(0,o.__)("Link"):O,onClick:t=>{d(t.currentTarget)},isActive:t||u,shortcutType:"primary",shortcutCharacter:"k","aria-haspopup":"true","aria-expanded":u}),u&&(0,a.jsx)(E,{stopAddingLink:function(){h(!1),"BUTTON"===m?.el?.tagName?m.el.focus():s(),p(null)},onFocusOutside:function(){h(!1),p(null)},isActive:t,activeAttributes:e,value:i,onChange:l,contentRef:c,focusOnMount:!!g&&"firstElement"})]})}},G=(0,a.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(i.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})}),W="core/strikethrough",Z=(0,o.__)("Strikethrough"),D={name:W,title:Z,tagName:"s",className:null,edit({isActive:t,value:e,onChange:o,onFocus:i}){function l(){o((0,n.toggleFormat)(e,{type:W,title:Z})),i()}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.RichTextShortcut,{type:"access",character:"d",onUse:l}),(0,a.jsx)(r.RichTextToolbarButton,{icon:G,title:Z,onClick:l,isActive:t,role:"menuitemcheckbox"})]})}},$="core/underline",K=(0,o.__)("Underline"),Q={name:$,title:K,tagName:"span",className:null,attributes:{style:"style"},edit({value:t,onChange:e}){const o=()=>{e((0,n.toggleFormat)(t,{type:$,attributes:{style:"text-decoration: underline;"},title:K}))};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.RichTextShortcut,{type:"primary",character:"u",onUse:o}),(0,a.jsx)(r.__unstableRichTextInputEvent,{inputType:"formatUnderline",onInput:o})]})}};const J=(0,x.forwardRef)((function({icon:t,size:e=24,...n},o){return(0,x.cloneElement)(t,{width:e,height:e,...n,ref:o})})),X=(0,a.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(i.Path,{d:"M12.9 6h-2l-4 11h1.9l1.1-3h4.2l1.1 3h1.9L12.9 6zm-2.5 6.5l1.5-4.9 1.7 4.9h-3.2z"})}),q=(0,a.jsx)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(i.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})}),Y=window.wp.privateApis,{lock:tt,unlock:et}=(0,Y.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/format-library"),{Tabs:nt}=et(g.privateApis),ot=[{name:"color",title:(0,o.__)("Text")},{name:"backgroundColor",title:(0,o.__)("Background")}];function rt(t=""){return t.split(";").reduce(((t,e)=>{if(e){const[n,o]=e.split(":");"color"===n&&(t.color=o),"background-color"===n&&o!==ct&&(t.backgroundColor=o)}return t}),{})}function it(t="",e){return t.split(" ").reduce(((t,n)=>{if(n.startsWith("has-")&&n.endsWith("-color")){const o=n.replace(/^has-/,"").replace(/-color$/,""),i=(0,r.getColorObjectByAttributeValues)(e,o);t.color=i.color}return t}),{})}function at(t,e,o){const r=(0,n.getActiveFormat)(t,e);return r?{...rt(r.attributes.style),...it(r.attributes.class,o)}:{}}function lt({name:t,property:e,value:o,onChange:i}){const l=(0,R.useSelect)((t=>{var e;const{getSettings:n}=t(r.store);return null!==(e=n().colors)&&void 0!==e?e:[]}),[]),s=(0,x.useCallback)((a=>{i(function(t,e,o,i){const{color:a,backgroundColor:l}={...at(t,e,o),...i};if(!a&&!l)return(0,n.removeFormat)(t,e);const s=[],c=[],u={};if(l?s.push(["background-color",l].join(":")):s.push(["background-color",ct].join(":")),a){const t=(0,r.getColorObjectByColorValue)(o,a);t?c.push((0,r.getColorClassName)("color",t.slug)):s.push(["color",a].join(":"))}return s.length&&(u.style=s.join(";")),c.length&&(u.class=c.join(" ")),(0,n.applyFormat)(t,{type:e,attributes:u})}(o,t,l,{[e]:a}))}),[l,i,e]),c=(0,x.useMemo)((()=>at(o,t,l)),[t,o,l]);return(0,a.jsx)(r.ColorPalette,{value:c[e],onChange:s})}function st({name:t,value:e,onChange:o,onClose:r,contentRef:i,isActive:l}){const s=(0,n.useAnchor)({editableContentElement:i.current,settings:{...dt,isActive:l}});return(0,a.jsx)(g.Popover,{onClose:r,className:"format-library__inline-color-popover",anchor:s,children:(0,a.jsxs)(nt,{children:[(0,a.jsx)(nt.TabList,{children:ot.map((t=>(0,a.jsx)(nt.Tab,{tabId:t.name,children:t.title},t.name)))}),ot.map((n=>(0,a.jsx)(nt.TabPanel,{tabId:n.name,focusable:!1,children:(0,a.jsx)(lt,{name:t,property:n.name,value:e,onChange:o})},n.name)))]})})}const ct="rgba(0, 0, 0, 0)",ut="core/text-color",ht=(0,o.__)("Highlight"),mt=[];function pt(t,e){const{ownerDocument:n}=t,{defaultView:o}=n,r=o.getComputedStyle(t).getPropertyValue(e);return"background-color"===e&&r===ct&&t.parentElement?pt(t.parentElement,e):r}const dt={name:ut,title:ht,tagName:"mark",className:"has-inline-color",attributes:{style:"style",class:"class"},edit:function({value:t,onChange:e,isActive:o,activeAttributes:i,contentRef:l}){const[s,c=mt]=(0,r.useSettings)("color.custom","color.palette"),[u,h]=(0,x.useState)(!1),m=(0,x.useCallback)((()=>h(!0)),[h]),p=(0,x.useCallback)((()=>h(!1)),[h]),d=(0,x.useMemo)((()=>function(t,{color:e,backgroundColor:n}){if(e||n)return{color:e||pt(t,"color"),backgroundColor:n===ct?pt(t,"background-color"):n}}(l.current,at(t,ut,c))),[t,c]),g=c.length||!s;return g||o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.RichTextToolbarButton,{className:"format-library-text-color-button",isActive:o,icon:(0,a.jsx)(J,{icon:Object.keys(i).length?X:q,style:d}),title:ht,onClick:g?m:()=>e((0,n.removeFormat)(t,ut)),role:"menuitemcheckbox"}),u&&(0,a.jsx)(st,{name:ut,onClose:p,activeAttributes:i,value:t,onChange:e,contentRef:l,isActive:o})]}):null}},gt=(0,a.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(i.Path,{d:"M16.9 18.3l.8-1.2c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.1-.3-.4-.5-.6-.7-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.2 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3L15 19.4h4.3v-1.2h-2.4zM14.1 7.2h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})}),xt="core/subscript",vt=(0,o.__)("Subscript"),bt={name:xt,title:vt,tagName:"sub",className:null,edit:({isActive:t,value:e,onChange:o,onFocus:i})=>(0,a.jsx)(r.RichTextToolbarButton,{icon:gt,title:vt,onClick:function(){o((0,n.toggleFormat)(e,{type:xt,title:vt})),i()},isActive:t,role:"menuitemcheckbox"})},ft=(0,a.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(i.Path,{d:"M16.9 10.3l.8-1.3c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.2-.2-.4-.4-.7-.6-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.1 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3l-1.8 2.8h4.3v-1.2h-2.2zm-2.8-3.1h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})}),wt="core/superscript",yt=(0,o.__)("Superscript"),_t={name:wt,title:yt,tagName:"sup",className:null,edit:({isActive:t,value:e,onChange:o,onFocus:i})=>(0,a.jsx)(r.RichTextToolbarButton,{icon:ft,title:yt,onClick:function(){o((0,n.toggleFormat)(e,{type:wt,title:yt})),i()},isActive:t,role:"menuitemcheckbox"})},jt=(0,a.jsx)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(i.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})}),kt="core/keyboard",Ct=(0,o.__)("Keyboard input"),Tt={name:kt,title:Ct,tagName:"kbd",className:null,edit:({isActive:t,value:e,onChange:o,onFocus:i})=>(0,a.jsx)(r.RichTextToolbarButton,{icon:jt,title:Ct,onClick:function(){o((0,n.toggleFormat)(e,{type:kt,title:Ct})),i()},isActive:t,role:"menuitemcheckbox"})},St=(0,a.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(i.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"})}),At="core/unknown",Ft=(0,o.__)("Clear Unknown Formatting");const Nt={name:At,title:Ft,tagName:"*",className:null,edit({isActive:t,value:e,onChange:o,onFocus:i}){if(!t&&!function(t){return!(0,n.isCollapsed)(t)&&(0,n.slice)(t).formats.some((t=>t.some((t=>t.type===At))))}(e))return null;return(0,a.jsx)(r.RichTextToolbarButton,{name:"unknown",icon:St,title:Ft,onClick:function(){o((0,n.removeFormat)(e,At)),i()},isActive:!0})}},Rt=(0,a.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(i.Path,{d:"M17.5 10h-1.7l-3.7 10.5h1.7l.9-2.6h3.9l.9 2.6h1.7L17.5 10zm-2.2 6.3 1.4-4 1.4 4h-2.8zm-4.8-3.8c1.6-1.8 2.9-3.6 3.7-5.7H16V5.2h-5.8V3H8.8v2.2H3v1.5h9.6c-.7 1.6-1.8 3.1-3.1 4.6C8.6 10.2 7.8 9 7.2 8H5.6c.6 1.4 1.7 2.9 2.9 4.4l-2.4 2.4c-.3.4-.7.8-1.1 1.2l1 1 1.2-1.2c.8-.8 1.6-1.5 2.3-2.3.8.9 1.7 1.7 2.5 2.5l.6-1.5c-.7-.6-1.4-1.3-2.1-2z"})}),Vt="core/language",Pt=(0,o.__)("Language"),Mt={name:Vt,tagName:"bdo",className:null,edit:function({isActive:t,value:e,onChange:o,contentRef:i}){const[l,s]=(0,x.useState)(!1),c=()=>{s((t=>!t))};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.RichTextToolbarButton,{icon:Rt,label:Pt,title:Pt,onClick:()=>{t?o((0,n.removeFormat)(e,Vt)):c()},isActive:t,role:"menuitemcheckbox"}),l&&(0,a.jsx)(Bt,{value:e,onChange:o,onClose:c,contentRef:i})]})},title:Pt};function Bt({value:t,contentRef:e,onChange:r,onClose:i}){const l=(0,n.useAnchor)({editableContentElement:e.current,settings:Mt}),[s,c]=(0,x.useState)(""),[u,h]=(0,x.useState)("ltr");return(0,a.jsx)(g.Popover,{className:"block-editor-format-toolbar__language-popover",anchor:l,onClose:i,children:(0,a.jsxs)("form",{className:"block-editor-format-toolbar__language-container-content",onSubmit:e=>{e.preventDefault(),r((0,n.applyFormat)(t,{type:Vt,attributes:{lang:s,dir:u}})),i()},children:[(0,a.jsx)(g.TextControl,{label:Pt,value:s,onChange:t=>c(t),help:(0,o.__)('A valid language attribute, like "en" or "fr".')}),(0,a.jsx)(g.SelectControl,{label:(0,o.__)("Text direction"),value:u,options:[{label:(0,o.__)("Left to right"),value:"ltr"},{label:(0,o.__)("Right to left"),value:"rtl"}],onChange:t=>h(t)}),(0,a.jsx)(g.__experimentalHStack,{alignment:"right",children:(0,a.jsx)(g.Button,{variant:"primary",type:"submit",text:(0,o.__)("Apply")})})]})})}const Lt=(0,o.__)("Non breaking space");[u,d,y,T,U,D,Q,dt,bt,_t,Tt,Nt,Mt,{name:"core/non-breaking-space",title:Lt,tagName:"nbsp",className:null,edit:({value:t,onChange:e})=>(0,a.jsx)(r.RichTextShortcut,{type:"primaryShift",character:" ",onUse:function(){e((0,n.insert)(t," "))}})}].forEach((({name:t,...e})=>(0,n.registerFormatType)(t,e))),(window.wp=window.wp||{}).formatLibrary=e})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/html-entities.js b/wp-includes/js/dist/html-entities.js
index ae9689a..1d43c4e 100644
--- a/wp-includes/js/dist/html-entities.js
+++ b/wp-includes/js/dist/html-entities.js
@@ -48,6 +48,8 @@ let _decodeTextArea;
*
* @example
* ```js
+ * import { decodeEntities } from '@wordpress/html-entities';
+ *
* const result = decodeEntities( '&aacute;' );
* console.log( result ); // result will be "á"
* ```
diff --git a/wp-includes/js/dist/interactivity-router.asset.php b/wp-includes/js/dist/interactivity-router.asset.php
index 84e81c6..09972b3 100644
--- a/wp-includes/js/dist/interactivity-router.asset.php
+++ b/wp-includes/js/dist/interactivity-router.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array(), 'version' => '6a8e0c21145dcb04c36d');
+<?php return array('dependencies' => array(), 'version' => '93ff47d0e70d75545606');
diff --git a/wp-includes/js/dist/interactivity-router.js b/wp-includes/js/dist/interactivity-router.js
index 8d02e9e..9d4bf08 100644
--- a/wp-includes/js/dist/interactivity-router.js
+++ b/wp-includes/js/dist/interactivity-router.js
@@ -36,10 +36,16 @@ var x = (y) => {
var y = (x) => (() => (x))
const interactivity_namespaceObject = x({ ["getConfig"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.getConfig), ["privateApis"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.privateApis), ["store"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.store) });
;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity-router/build-module/index.js
+var _getConfig$navigation;
/**
* WordPress dependencies
*/
+
+/**
+ * Internal dependencies
+ */
+
const {
directivePrefix,
getRegionRootFragment,
@@ -50,14 +56,17 @@ const {
populateInitialData,
batch
} = (0,interactivity_namespaceObject.privateApis)('I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress.');
+// Check if the navigation mode is full page or region based.
+const navigationMode = (_getConfig$navigation = (0,interactivity_namespaceObject.getConfig)('core/router').navigationMode) !== null && _getConfig$navigation !== void 0 ? _getConfig$navigation : 'regionBased';
-// The cache of visited and prefetched pages.
+// The cache of visited and prefetched pages, stylesheets and scripts.
const pages = new Map();
+const headElements = new Map();
// Helper to remove domain and hash from the URL. We are only interesting in
// caching the path and the query.
const getPagePath = url => {
- const u = new URL(url, window.location);
+ const u = new URL(url, window.location.href);
return u.pathname + u.search;
};
@@ -68,7 +77,9 @@ const fetchPage = async (url, {
try {
if (!html) {
const res = await window.fetch(url);
- if (res.status !== 200) return false;
+ if (res.status !== 200) {
+ return false;
+ }
html = await res.text();
}
const dom = new window.DOMParser().parseFromString(html, 'text/html');
@@ -80,19 +91,26 @@ const fetchPage = async (url, {
// Return an object with VDOM trees of those HTML regions marked with a
// `router-region` directive.
-const regionsToVdom = (dom, {
+const regionsToVdom = async (dom, {
vdom
} = {}) => {
- const regions = {};
- const attrName = `data-${directivePrefix}-router-region`;
- dom.querySelectorAll(`[${attrName}]`).forEach(region => {
- const id = region.getAttribute(attrName);
- regions[id] = vdom?.has(region) ? vdom.get(region) : toVdom(region);
- });
+ const regions = {
+ body: undefined
+ };
+ let head;
+ if (false) {}
+ if (navigationMode === 'regionBased') {
+ const attrName = `data-${directivePrefix}-router-region`;
+ dom.querySelectorAll(`[${attrName}]`).forEach(region => {
+ const id = region.getAttribute(attrName);
+ regions[id] = vdom?.has(region) ? vdom.get(region) : toVdom(region);
+ });
+ }
const title = dom.querySelector('title')?.innerText;
const initialData = parseInitialData(dom);
return {
regions,
+ head,
title,
initialData
};
@@ -101,13 +119,16 @@ const regionsToVdom = (dom, {
// Render all interactive regions contained in the given page.
const renderRegions = page => {
batch(() => {
- populateInitialData(page.initialData);
- const attrName = `data-${directivePrefix}-router-region`;
- document.querySelectorAll(`[${attrName}]`).forEach(region => {
- const id = region.getAttribute(attrName);
- const fragment = getRegionRootFragment(region);
- render(page.regions[id], fragment);
- });
+ if (false) {}
+ if (navigationMode === 'regionBased') {
+ populateInitialData(page.initialData);
+ const attrName = `data-${directivePrefix}-router-region`;
+ document.querySelectorAll(`[${attrName}]`).forEach(region => {
+ const id = region.getAttribute(attrName);
+ const fragment = getRegionRootFragment(region);
+ render(page.regions[id], fragment);
+ });
+ }
if (page.title) {
document.title = page.title;
}
@@ -121,8 +142,8 @@ const renderRegions = page => {
* potential feedback indicating that the navigation has finished while the new
* page is being loaded.
*
- * @param {string} href The page href.
- * @return {Promise} Promise that never resolves.
+ * @param href The page href.
+ * @return Promise that never resolves.
*/
const forcePageReload = href => {
window.location.assign(href);
@@ -132,7 +153,7 @@ const forcePageReload = href => {
// Listen to the back and forward buttons and restore the page if it's in the
// cache.
window.addEventListener('popstate', async () => {
- const pagePath = getPagePath(window.location); // Remove hash.
+ const pagePath = getPagePath(window.location.href); // Remove hash.
const page = pages.has(pagePath) && (await pages.get(pagePath));
if (page) {
renderRegions(page);
@@ -143,11 +164,28 @@ window.addEventListener('popstate', async () => {
}
});
-// Cache the initial page using the intially parsed vDOM.
-pages.set(getPagePath(window.location), Promise.resolve(regionsToVdom(document, {
+// Initialize the router and cache the initial page using the initial vDOM.
+// Once this code is tested and more mature, the head should be updated for
+// region based navigation as well.
+if (false) {}
+pages.set(getPagePath(window.location.href), Promise.resolve(regionsToVdom(document, {
vdom: initialVdom
})));
+// Check if the link is valid for client-side navigation.
+const isValidLink = ref => ref && ref instanceof window.HTMLAnchorElement && ref.href && (!ref.target || ref.target === '_self') && ref.origin === window.location.origin && !ref.pathname.startsWith('/wp-admin') && !ref.pathname.startsWith('/wp-login.php') && !ref.getAttribute('href').startsWith('#') && !new URL(ref.href).searchParams.has('_wpnonce');
+
+// Check if the event is valid for client-side navigation.
+const isValidEvent = event => event && event.button === 0 &&
+// Left clicks only.
+!event.metaKey &&
+// Open in new tab (Mac).
+!event.ctrlKey &&
+// Open in new tab (Windows).
+!event.altKey &&
+// Download.
+!event.shiftKey && !event.defaultPrevented;
+
// Variable to store the current navigation.
let navigatingTo = '';
const {
@@ -159,7 +197,11 @@ const {
navigation: {
hasStarted: false,
hasFinished: false,
- texts: {}
+ texts: {
+ loading: '',
+ loaded: ''
+ },
+ message: ''
}
},
actions: {
@@ -170,16 +212,16 @@ const {
* needed, and updates any interactive regions whose contents have
* changed. It also creates a new entry in the browser session history.
*
- * @param {string} href The page href.
- * @param {Object} [options] Options object.
- * @param {boolean} [options.force] If true, it forces re-fetching the URL.
- * @param {string} [options.html] HTML string to be used instead of fetching the requested URL.
- * @param {boolean} [options.replace] If true, it replaces the current entry in the browser session history.
- * @param {number} [options.timeout] Time until the navigation is aborted, in milliseconds. Default is 10000.
- * @param {boolean} [options.loadingAnimation] Whether an animation should be shown while navigating. Default to `true`.
- * @param {boolean} [options.screenReaderAnnouncement] Whether a message for screen readers should be announced while navigating. Default to `true`.
+ * @param href The page href.
+ * @param [options] Options object.
+ * @param [options.force] If true, it forces re-fetching the URL.
+ * @param [options.html] HTML string to be used instead of fetching the requested URL.
+ * @param [options.replace] If true, it replaces the current entry in the browser session history.
+ * @param [options.timeout] Time until the navigation is aborted, in milliseconds. Default is 10000.
+ * @param [options.loadingAnimation] Whether an animation should be shown while navigating. Default to `true`.
+ * @param [options.screenReaderAnnouncement] Whether a message for screen readers should be announced while navigating. Default to `true`.
*
- * @return {Promise} Promise that resolves once the navigation is completed or aborted.
+ * @return Promise that resolves once the navigation is completed or aborted.
*/
*navigate(href, options = {}) {
const {
@@ -206,7 +248,9 @@ const {
// Don't update the navigation status immediately, wait 400 ms.
const loadingTimeout = setTimeout(() => {
- if (navigatingTo !== href) return;
+ if (navigatingTo !== href) {
+ return;
+ }
if (loadingAnimation) {
navigation.hasStarted = true;
navigation.hasFinished = false;
@@ -223,9 +267,11 @@ const {
// Once the page is fetched, the destination URL could have changed
// (e.g., by clicking another link in the meantime). If so, bail
// out, and let the newer execution to update the HTML.
- if (navigatingTo !== href) return;
+ if (navigatingTo !== href) {
+ return;
+ }
if (page && !page.initialData?.config?.['core/router']?.clientNavigationDisabled) {
- renderRegions(page);
+ yield renderRegions(page);
window.history[options.replace ? 'replaceState' : 'pushState']({}, '', href);
// Update the URL in the state.
@@ -243,6 +289,14 @@ const {
// package: https://github.com/WordPress/gutenberg/blob/c395242b8e6ee20f8b06c199e4fc2920d7018af1/packages/a11y/src/filter-message.js#L20-L26
navigation.message = navigation.texts.loaded + (navigation.message === navigation.texts.loaded ? '\u00A0' : '');
}
+
+ // Scroll to the anchor if exits in the link.
+ const {
+ hash
+ } = new URL(href, window.location.href);
+ if (hash) {
+ document.querySelector(hash)?.scrollIntoView();
+ }
} else {
yield forcePageReload(href);
}
@@ -253,25 +307,31 @@ const {
* The function normalizes the URL and stores internally the fetch
* promise, to avoid triggering a second fetch for an ongoing request.
*
- * @param {string} url The page URL.
- * @param {Object} [options] Options object.
- * @param {boolean} [options.force] Force fetching the URL again.
- * @param {string} [options.html] HTML string to be used instead of
- * fetching the requested URL.
+ * @param url The page URL.
+ * @param [options] Options object.
+ * @param [options.force] Force fetching the URL again.
+ * @param [options.html] HTML string to be used instead of fetching the requested URL.
*/
prefetch(url, options = {}) {
const {
clientNavigationDisabled
} = (0,interactivity_namespaceObject.getConfig)();
- if (clientNavigationDisabled) return;
+ if (clientNavigationDisabled) {
+ return;
+ }
const pagePath = getPagePath(url);
if (options.force || !pages.has(pagePath)) {
- pages.set(pagePath, fetchPage(pagePath, options));
+ pages.set(pagePath, fetchPage(pagePath, {
+ html: options.html
+ }));
}
}
}
});
+// Add click and prefetch to all links.
+if (false) {}
+
var __webpack_exports__actions = __webpack_exports__.o;
var __webpack_exports__state = __webpack_exports__.w;
export { __webpack_exports__actions as actions, __webpack_exports__state as state };
diff --git a/wp-includes/js/dist/interactivity-router.min.asset.php b/wp-includes/js/dist/interactivity-router.min.asset.php
index 0ca37d2..85994b7 100644
--- a/wp-includes/js/dist/interactivity-router.min.asset.php
+++ b/wp-includes/js/dist/interactivity-router.min.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array(), 'version' => '05a45a314b4247af8c60');
+<?php return array('dependencies' => array(), 'version' => 'cb44832cae5c937ebbc3');
diff --git a/wp-includes/js/dist/interactivity-router.min.js b/wp-includes/js/dist/interactivity-router.min.js
index 9946988..23bc594 100644
--- a/wp-includes/js/dist/interactivity-router.min.js
+++ b/wp-includes/js/dist/interactivity-router.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-import*as t from"@wordpress/interactivity";var e={d:(t,i)=>{for(var o in i)e.o(i,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:i[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},i={};e.d(i,{o:()=>y,w:()=>f});const o=(t=>{var i={};return e.d(i,t),i})({getConfig:()=>t.getConfig,privateApis:()=>t.privateApis,store:()=>t.store}),{directivePrefix:a,getRegionRootFragment:n,initialVdom:r,toVdom:s,render:c,parseInitialData:l,populateInitialData:d,batch:g}=(0,o.privateApis)("I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."),w=new Map,u=t=>{const e=new URL(t,window.location);return e.pathname+e.search},h=(t,{vdom:e}={})=>{const i={},o=`data-${a}-router-region`;t.querySelectorAll(`[${o}]`).forEach((t=>{const a=t.getAttribute(o);i[a]=e?.has(t)?e.get(t):s(t)}));const n=t.querySelector("title")?.innerText,r=l(t);return{regions:i,title:n,initialData:r}},m=t=>{g((()=>{d(t.initialData);const e=`data-${a}-router-region`;document.querySelectorAll(`[${e}]`).forEach((i=>{const o=i.getAttribute(e),a=n(i);c(t.regions[o],a)})),t.title&&(document.title=t.title)}))},p=t=>(window.location.assign(t),new Promise((()=>{})));window.addEventListener("popstate",(async()=>{const t=u(window.location),e=w.has(t)&&await w.get(t);e?(m(e),f.url=window.location.href):window.location.reload()})),w.set(u(window.location),Promise.resolve(h(document,{vdom:r})));let v="";const{state:f,actions:y}=(0,o.store)("core/router",{state:{url:window.location.href,navigation:{hasStarted:!1,hasFinished:!1,texts:{}}},actions:{*navigate(t,e={}){const{clientNavigationDisabled:i}=(0,o.getConfig)();i&&(yield p(t));const a=u(t),{navigation:n}=f,{loadingAnimation:r=!0,screenReaderAnnouncement:s=!0,timeout:c=1e4}=e;v=t,y.prefetch(a,e);const l=new Promise((t=>setTimeout(t,c))),d=setTimeout((()=>{v===t&&(r&&(n.hasStarted=!0,n.hasFinished=!1),s&&(n.message=n.texts.loading))}),400),g=yield Promise.race([w.get(a),l]);clearTimeout(d),v===t&&(g&&!g.initialData?.config?.["core/router"]?.clientNavigationDisabled?(m(g),window.history[e.replace?"replaceState":"pushState"]({},"",t),f.url=t,r&&(n.hasStarted=!1,n.hasFinished=!0),s&&(n.message=n.texts.loaded+(n.message===n.texts.loaded?" ":""))):yield p(t))},prefetch(t,e={}){const{clientNavigationDisabled:i}=(0,o.getConfig)();if(i)return;const a=u(t);!e.force&&w.has(a)||w.set(a,(async(t,{html:e})=>{try{if(!e){const i=await window.fetch(t);if(200!==i.status)return!1;e=await i.text()}const i=(new window.DOMParser).parseFromString(e,"text/html");return h(i)}catch(t){return!1}})(a,e))}}});var b=i.o,x=i.w;export{b as actions,x as state}; \ No newline at end of file
+import*as e from"@wordpress/interactivity";var t={d:(e,o)=>{for(var i in o)t.o(o,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:o[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},o={};t.d(o,{o:()=>x,w:()=>b});const i=(e=>{var o={};return t.d(o,e),o})({getConfig:()=>e.getConfig,privateApis:()=>e.privateApis,store:()=>e.store});var a;const{directivePrefix:n,getRegionRootFragment:r,initialVdom:s,toVdom:c,render:l,parseInitialData:d,populateInitialData:g,batch:w}=(0,i.privateApis)("I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."),h=null!==(a=(0,i.getConfig)("core/router").navigationMode)&&void 0!==a?a:"regionBased",u=new Map,m=(new Map,e=>{const t=new URL(e,window.location.href);return t.pathname+t.search}),f=async(e,{vdom:t}={})=>{const o={body:void 0};if("regionBased"===h){const i=`data-${n}-router-region`;e.querySelectorAll(`[${i}]`).forEach((e=>{const a=e.getAttribute(i);o[a]=t?.has(e)?t.get(e):c(e)}))}const i=e.querySelector("title")?.innerText,a=d(e);return{regions:o,head:undefined,title:i,initialData:a}},p=e=>{w((()=>{if("regionBased"===h){g(e.initialData);const t=`data-${n}-router-region`;document.querySelectorAll(`[${t}]`).forEach((o=>{const i=o.getAttribute(t),a=r(o);l(e.regions[i],a)}))}e.title&&(document.title=e.title)}))},v=e=>(window.location.assign(e),new Promise((()=>{})));window.addEventListener("popstate",(async()=>{const e=m(window.location.href),t=u.has(e)&&await u.get(e);t?(p(t),b.url=window.location.href):window.location.reload()})),u.set(m(window.location.href),Promise.resolve(f(document,{vdom:s})));let y="";const{state:b,actions:x}=(0,i.store)("core/router",{state:{url:window.location.href,navigation:{hasStarted:!1,hasFinished:!1,texts:{loading:"",loaded:""},message:""}},actions:{*navigate(e,t={}){const{clientNavigationDisabled:o}=(0,i.getConfig)();o&&(yield v(e));const a=m(e),{navigation:n}=b,{loadingAnimation:r=!0,screenReaderAnnouncement:s=!0,timeout:c=1e4}=t;y=e,x.prefetch(a,t);const l=new Promise((e=>setTimeout(e,c))),d=setTimeout((()=>{y===e&&(r&&(n.hasStarted=!0,n.hasFinished=!1),s&&(n.message=n.texts.loading))}),400),g=yield Promise.race([u.get(a),l]);if(clearTimeout(d),y===e)if(g&&!g.initialData?.config?.["core/router"]?.clientNavigationDisabled){yield p(g),window.history[t.replace?"replaceState":"pushState"]({},"",e),b.url=e,r&&(n.hasStarted=!1,n.hasFinished=!0),s&&(n.message=n.texts.loaded+(n.message===n.texts.loaded?" ":""));const{hash:o}=new URL(e,window.location.href);o&&document.querySelector(o)?.scrollIntoView()}else yield v(e)},prefetch(e,t={}){const{clientNavigationDisabled:o}=(0,i.getConfig)();if(o)return;const a=m(e);!t.force&&u.has(a)||u.set(a,(async(e,{html:t})=>{try{if(!t){const o=await window.fetch(e);if(200!==o.status)return!1;t=await o.text()}const o=(new window.DOMParser).parseFromString(t,"text/html");return f(o)}catch(e){return!1}})(a,{html:t.html}))}}});var A=o.o,P=o.w;export{A as actions,P as state}; \ No newline at end of file
diff --git a/wp-includes/js/dist/interactivity.js b/wp-includes/js/dist/interactivity.js
index 587b3a1..71fa5ac 100644
--- a/wp-includes/js/dist/interactivity.js
+++ b/wp-includes/js/dist/interactivity.js
@@ -27,7 +27,8 @@ __webpack_require__.d(__webpack_exports__, {
zj: () => (/* reexport */ getConfig),
SD: () => (/* reexport */ getContext),
V6: () => (/* reexport */ getElement),
- jb: () => (/* binding */ privateApis),
+ jb: () => (/* reexport */ privateApis),
+ yT: () => (/* reexport */ splitTask),
M_: () => (/* reexport */ store),
hb: () => (/* reexport */ useCallback),
vJ: () => (/* reexport */ useEffect),
@@ -41,15 +42,21 @@ __webpack_require__.d(__webpack_exports__, {
});
;// CONCATENATED MODULE: ./node_modules/preact/dist/preact.module.js
-var n,l,preact_module_u,preact_module_t,i,preact_module_o,r,preact_module_f,preact_module_e,preact_module_c,s,a,h={},v=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function d(n,l){for(var u in l)n[u]=l[u];return n}function _(n){var l=n.parentNode;l&&l.removeChild(n)}function g(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return k(l,f,i,o,null)}function k(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++preact_module_u:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(f),f}function b(){return{current:null}}function m(n){return n.children}function w(n,l){this.props=n,this.context=l}function C(n,l){if(null==l)return n.__?C(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?C(n):null}function x(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return x(n)}}function P(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!S.__r++||preact_module_o!==l.debounceRendering)&&((preact_module_o=l.debounceRendering)||r)(S)}function S(){var n,u,t,o,r,e,c,s;for(i.sort(preact_module_f);n=i.shift();)n.__d&&(u=i.length,o=void 0,e=(r=(t=n).__v).__e,c=[],s=[],t.__P&&((o=d({},r)).__v=r.__v+1,l.vnode&&l.vnode(o),O(t.__P,o,r,t.__n,void 0!==t.__P.ownerSVGElement,32&r.__u?[e]:null,c,null==e?C(r):e,!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,j(c,o,s),o.__e!=e&&x(o)),i.length>u&&i.sort(preact_module_f));S.__r=0}function $(n,l,u,t,i,o,r,f,e,c,s){var a,p,y,d,_,g=t&&t.__k||v,k=l.length;for(u.__d=e,I(u,l,g),e=u.__d,a=0;a<k;a++)null!=(y=u.__k[a])&&"boolean"!=typeof y&&"function"!=typeof y&&(p=-1===y.__i?h:g[y.__i]||h,y.__i=a,O(n,y,p,i,o,r,f,e,c,s),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&N(p.ref,null,y),s.push(y.ref,y.__c||d,y)),null==_&&null!=d&&(_=d),65536&y.__u||p.__k===y.__k?(e&&!e.isConnected&&(e=C(p)),e=H(y,e,n)):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=_}function I(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)r=t+a,null!=(i=n.__k[t]=null==(i=l[t])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?k(null,i,null,null,null):y(i)?k(m,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?k(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=A(i,u,r,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f===r+1?a++:f>r?s>e-r?a+=f-r:a--:f<r?f==r-1&&(a=f-r):a=0,f!==t+a&&(i.__u|=65536))):(o=u[r])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=C(o)),V(o,o,!1),u[r]=null,s--);if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=C(o)),V(o,o))}function H(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=H(t[i],l,u));return l}n.__e!=l&&(u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8===l.nodeType);return l}function T(n,l){return l=l||[],null==n||"boolean"==typeof n||(y(n)?n.some(function(n){T(n,l)}):l.push(n)),l}function A(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++}}return-1}function F(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||p.test(l)?u:u+"px"}function L(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||F(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||F(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=preact_module_e,n.addEventListener(l,o?s:preact_module_c,o)):n.removeEventListener(l,o?s:preact_module_c,o);else{if(i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u))}}function M(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=preact_module_e++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function O(n,u,t,i,o,r,f,e,c,s){var a,h,v,p,_,g,k,b,C,x,P,S,I,H,T,A=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof A)try{if(b=u.props,C=(a=A.contextType)&&i[a.__c],x=a?C?C.props.value:a.__:i,t.__c?k=(h=u.__c=t.__c).__=h.__E:("prototype"in A&&A.prototype.render?u.__c=h=new A(b,x):(u.__c=h=new w(b,x),h.constructor=A,h.render=q),C&&C.sub(h),h.props=b,h.state||(h.state={}),h.context=x,h.__n=i,v=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=A.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d({},h.__s)),d(h.__s,A.getDerivedStateFromProps(b,h.__s))),p=h.props,_=h.state,h.__v=u,v)null==A.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==A.getDerivedStateFromProps&&b!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,x),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,x)||u.__v===t.__v)){for(u.__v!==t.__v&&(h.props=b,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u)}),P=0;P<h._sb.length;P++)h.__h.push(h._sb[P]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(p,_,g)})}if(h.context=x,h.props=b,h.__P=n,h.__e=!1,S=l.__r,I=0,"prototype"in A&&A.prototype.render){for(h.state=h.__s,h.__d=!1,S&&S(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,S&&S(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++I<25);h.state=h.__s,null!=h.getChildContext&&(i=d(d({},i),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(g=h.getSnapshotBeforeUpdate(p,_)),$(n,y(T=null!=a&&a.type===m&&null==a.key?a.props.children:a)?T:[T],u,t,i,o,r,f,e,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&f.push(h),k&&(h.__E=h.__=null)}catch(n){u.__v=null,c||null!=r?(u.__e=e,u.__u|=c?160:32,r[r.indexOf(e)]=null):(u.__e=t.__e,u.__k=t.__k),l.__e(n,u,t)}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=z(t.__e,u,t,i,o,r,f,c,s);(a=l.diffed)&&a(u)}function j(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)N(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function z(l,u,t,i,o,r,f,e,c){var s,a,v,p,d,g,k,b=t.props,m=u.props,w=u.type;if("svg"===w&&(o=!0),null!=r)for(s=0;s<r.length;s++)if((d=r[s])&&"setAttribute"in d==!!w&&(w?d.localName===w:3===d.nodeType)){l=d,r[s]=null;break}if(null==l){if(null===w)return document.createTextNode(m);l=o?document.createElementNS("http://www.w3.org/2000/svg",w):document.createElement(w,m.is&&m),r=null,e=!1}if(null===w)b===m||e&&l.data===m||(l.data=m);else{if(r=r&&n.call(l.childNodes),b=t.props||h,!e&&null!=r)for(b={},s=0;s<l.attributes.length;s++)b[(d=l.attributes[s]).name]=d.value;for(s in b)if(d=b[s],"children"==s);else if("dangerouslySetInnerHTML"==s)v=d;else if("key"!==s&&!(s in m)){if("value"==s&&"defaultValue"in m||"checked"==s&&"defaultChecked"in m)continue;L(l,s,null,d,o)}for(s in m)d=m[s],"children"==s?p=d:"dangerouslySetInnerHTML"==s?a=d:"value"==s?g=d:"checked"==s?k=d:"key"===s||e&&"function"!=typeof d||b[s]===d||L(l,s,d,b[s],o);if(a)e||v&&(a.__html===v.__html||a.__html===l.innerHTML)||(l.innerHTML=a.__html),u.__k=[];else if(v&&(l.innerHTML=""),$(l,y(p)?p:[p],u,t,i,o&&"foreignObject"!==w,r,f,r?r[0]:t.__k&&C(t,0),e,c),null!=r)for(s=r.length;s--;)null!=r[s]&&_(r[s]);e||(s="value",void 0!==g&&(g!==l[s]||"progress"===w&&!g||"option"===w&&g!==b[s])&&L(l,s,g,b[s],!1),s="checked",void 0!==k&&k!==l[s]&&L(l,s,k,b[s],!1))}return l}function N(n,u,t){try{"function"==typeof n?n(u):n.current=u}catch(n){l.__e(n,t)}}function V(n,u,t){var i,o;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||N(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&V(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||_(n.__e),n.__c=n.__=n.__e=n.__d=void 0}function q(n,l,u){return this.constructor(n,u)}function B(u,t,i){var o,r,f,e;l.__&&l.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],O(t,u=(!o&&i||t).__k=g(m,null,[u]),r||h,h,void 0!==t.ownerSVGElement,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),j(f,u,e)}function D(n,l){B(n,l,D)}function E(l,u,t){var i,o,r,f,e=d({},l.props);for(r in l.type&&l.type.defaultProps&&(f=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=void 0===u[r]&&void 0!==f?f[r]:u[r];return arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),k(l.type,e,i||l.key,o||l.ref,null)}function G(n,l){var u={__c:l="__cC"+a++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=[],(t={})[l]=this,this.getChildContext=function(){return t},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,P(n)})},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=v.slice,l={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},preact_module_u=0,preact_module_t=function(n){return null!=n&&null==n.constructor},w.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof n&&(n=n(d({},u),this.props)),n&&d(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),P(this))},w.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),P(this))},w.prototype.render=m,i=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,preact_module_f=function(n,l){return n.__v.__b-l.__v.__b},S.__r=0,preact_module_e=0,preact_module_c=M(!1),s=M(!0),a=0;
+var preact_module_n,preact_module_l,preact_module_u,preact_module_t,i,preact_module_o,r,preact_module_f,preact_module_e,preact_module_c,s,a,h={},p=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function d(n,l){for(var u in l)n[u]=l[u];return n}function w(n){var l=n.parentNode;l&&l.removeChild(n)}function _(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?preact_module_n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return g(l,f,i,o,null)}function g(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++preact_module_u:r,__i:-1,__u:0};return null==r&&null!=preact_module_l.vnode&&preact_module_l.vnode(f),f}function m(){return{current:null}}function k(n){return n.children}function b(n,l){this.props=n,this.context=l}function x(n,l){if(null==l)return n.__?x(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?x(n):null}function C(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return C(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!P.__r++||preact_module_o!==preact_module_l.debounceRendering)&&((preact_module_o=preact_module_l.debounceRendering)||r)(P)}function P(){var n,u,t,o,r,e,c,s;for(i.sort(preact_module_f);n=i.shift();)n.__d&&(u=i.length,o=void 0,e=(r=(t=n).__v).__e,c=[],s=[],t.__P&&((o=d({},r)).__v=r.__v+1,preact_module_l.vnode&&preact_module_l.vnode(o),O(t.__P,o,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,c,null==e?x(r):e,!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,j(c,o,s),o.__e!=e&&C(o)),i.length>u&&i.sort(preact_module_f));P.__r=0}function S(n,l,u,t,i,o,r,f,e,c,s){var a,v,y,d,w,_=t&&t.__k||p,g=l.length;for(u.__d=e,$(u,l,_),e=u.__d,a=0;a<g;a++)null!=(y=u.__k[a])&&"boolean"!=typeof y&&"function"!=typeof y&&(v=-1===y.__i?h:_[y.__i]||h,y.__i=a,O(n,y,v,i,o,r,f,e,c,s),d=y.__e,y.ref&&v.ref!=y.ref&&(v.ref&&N(v.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),65536&y.__u||v.__k===y.__k?(e&&!e.isConnected&&(e=x(v)),e=I(y,e,n)):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=w}function $(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)r=t+a,null!=(i=n.__k[t]=null==(i=l[t])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?g(null,i,null,null,null):y(i)?g(k,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?g(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=L(i,u,r,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f===r+1?a++:f>r?s>e-r?a+=f-r:a--:f<r?f==r-1&&(a=f-r):a=0,f!==t+a&&(i.__u|=65536))):(o=u[r])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x(o)),V(o,o,!1),u[r]=null,s--);if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x(o)),V(o,o))}function I(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=I(t[i],l,u));return l}n.__e!=l&&(u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8===l.nodeType);return l}function H(n,l){return l=l||[],null==n||"boolean"==typeof n||(y(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function L(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++}}return-1}function T(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||v.test(l)?u:u+"px"}function A(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=preact_module_e,n.addEventListener(l,o?s:preact_module_c,o)):n.removeEventListener(l,o?s:preact_module_c,o);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u))}}function F(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=preact_module_e++;else if(u.t<t.u)return;return t(preact_module_l.event?preact_module_l.event(u):u)}}}function O(n,u,t,i,o,r,f,e,c,s){var a,h,p,v,w,_,g,m,x,C,M,P,$,I,H,L=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=preact_module_l.__b)&&a(u);n:if("function"==typeof L)try{if(m=u.props,x=(a=L.contextType)&&i[a.__c],C=a?x?x.props.value:a.__:i,t.__c?g=(h=u.__c=t.__c).__=h.__E:("prototype"in L&&L.prototype.render?u.__c=h=new L(m,C):(u.__c=h=new b(m,C),h.constructor=L,h.render=q),x&&x.sub(h),h.props=m,h.state||(h.state={}),h.context=C,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=L.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d({},h.__s)),d(h.__s,L.getDerivedStateFromProps(m,h.__s))),v=h.props,w=h.state,h.__v=u,p)null==L.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==L.getDerivedStateFromProps&&m!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,C),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,C)||u.__v===t.__v)){for(u.__v!==t.__v&&(h.props=m,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u)}),M=0;M<h._sb.length;M++)h.__h.push(h._sb[M]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,C),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,w,_)})}if(h.context=C,h.props=m,h.__P=n,h.__e=!1,P=preact_module_l.__r,$=0,"prototype"in L&&L.prototype.render){for(h.state=h.__s,h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),I=0;I<h._sb.length;I++)h.__h.push(h._sb[I]);h._sb=[]}else do{h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++$<25);h.state=h.__s,null!=h.getChildContext&&(i=d(d({},i),h.getChildContext())),p||null==h.getSnapshotBeforeUpdate||(_=h.getSnapshotBeforeUpdate(v,w)),S(n,y(H=null!=a&&a.type===k&&null==a.key?a.props.children:a)?H:[H],u,t,i,o,r,f,e,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&f.push(h),g&&(h.__E=h.__=null)}catch(n){u.__v=null,c||null!=r?(u.__e=e,u.__u|=c?160:32,r[r.indexOf(e)]=null):(u.__e=t.__e,u.__k=t.__k),preact_module_l.__e(n,u,t)}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=z(t.__e,u,t,i,o,r,f,c,s);(a=preact_module_l.diffed)&&a(u)}function j(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)N(t[i],t[++i],t[++i]);preact_module_l.__c&&preact_module_l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){preact_module_l.__e(n,u.__v)}})}function z(l,u,t,i,o,r,f,e,c){var s,a,p,v,d,_,g,m=t.props,k=u.props,b=u.type;if("svg"===b?o="http://www.w3.org/2000/svg":"math"===b?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=r)for(s=0;s<r.length;s++)if((d=r[s])&&"setAttribute"in d==!!b&&(b?d.localName===b:3===d.nodeType)){l=d,r[s]=null;break}if(null==l){if(null===b)return document.createTextNode(k);l=document.createElementNS(o,b,k.is&&k),r=null,e=!1}if(null===b)m===k||e&&l.data===k||(l.data=k);else{if(r=r&&preact_module_n.call(l.childNodes),m=t.props||h,!e&&null!=r)for(m={},s=0;s<l.attributes.length;s++)m[(d=l.attributes[s]).name]=d.value;for(s in m)if(d=m[s],"children"==s);else if("dangerouslySetInnerHTML"==s)p=d;else if("key"!==s&&!(s in k)){if("value"==s&&"defaultValue"in k||"checked"==s&&"defaultChecked"in k)continue;A(l,s,null,d,o)}for(s in k)d=k[s],"children"==s?v=d:"dangerouslySetInnerHTML"==s?a=d:"value"==s?_=d:"checked"==s?g=d:"key"===s||e&&"function"!=typeof d||m[s]===d||A(l,s,d,m[s],o);if(a)e||p&&(a.__html===p.__html||a.__html===l.innerHTML)||(l.innerHTML=a.__html),u.__k=[];else if(p&&(l.innerHTML=""),S(l,y(v)?v:[v],u,t,i,"foreignObject"===b?"http://www.w3.org/1999/xhtml":o,r,f,r?r[0]:t.__k&&x(t,0),e,c),null!=r)for(s=r.length;s--;)null!=r[s]&&w(r[s]);e||(s="value",void 0!==_&&(_!==l[s]||"progress"===b&&!_||"option"===b&&_!==m[s])&&A(l,s,_,m[s],o),s="checked",void 0!==g&&g!==l[s]&&A(l,s,g,m[s],o))}return l}function N(n,u,t){try{"function"==typeof n?n(u):n.current=u}catch(n){preact_module_l.__e(n,t)}}function V(n,u,t){var i,o;if(preact_module_l.unmount&&preact_module_l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||N(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){preact_module_l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&V(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||w(n.__e),n.__c=n.__=n.__e=n.__d=void 0}function q(n,l,u){return this.constructor(n,u)}function B(u,t,i){var o,r,f,e;preact_module_l.__&&preact_module_l.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],O(t,u=(!o&&i||t).__k=_(k,null,[u]),r||h,h,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?preact_module_n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),j(f,u,e)}function D(n,l){B(n,l,D)}function E(l,u,t){var i,o,r,f,e=d({},l.props);for(r in l.type&&l.type.defaultProps&&(f=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=void 0===u[r]&&void 0!==f?f[r]:u[r];return arguments.length>2&&(e.children=arguments.length>3?preact_module_n.call(arguments,2):t),g(l.type,e,i||l.key,o||l.ref,null)}function G(n,l){var u={__c:l="__cC"+a++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=[],(t={})[l]=this,this.getChildContext=function(){return t},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,M(n)})},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}preact_module_n=p.slice,preact_module_l={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},preact_module_u=0,preact_module_t=function(n){return null!=n&&null==n.constructor},b.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof n&&(n=n(d({},u),this.props)),n&&d(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},b.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},b.prototype.render=k,i=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,preact_module_f=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,preact_module_e=0,preact_module_c=F(!1),s=F(!0),a=0;
+
+;// CONCATENATED MODULE: ./node_modules/preact/devtools/dist/devtools.module.js
+function devtools_module_t(o,e){return n.__a&&n.__a(e),o}"undefined"!=typeof window&&window.__PREACT_DEVTOOLS__&&window.__PREACT_DEVTOOLS__.attachPreact("10.22.0",preact_module_l,{Fragment:k,Component:b});
+
+;// CONCATENATED MODULE: ./node_modules/preact/debug/dist/debug.module.js
+var debug_module_o={};function debug_module_r(){debug_module_o={}}function debug_module_a(e){return e.type===k?"Fragment":"function"==typeof e.type?e.type.displayName||e.type.name:"string"==typeof e.type?e.type:"#text"}var debug_module_i=[],debug_module_s=[];function debug_module_c(){return debug_module_i.length>0?debug_module_i[debug_module_i.length-1]:null}var l=!0;function debug_module_u(e){return"function"==typeof e.type&&e.type!=k}function debug_module_f(n){for(var e=[n],t=n;null!=t.__o;)e.push(t.__o),t=t.__o;return e.reduce(function(n,e){n+=" in "+debug_module_a(e);var t=e.__source;return t?n+=" (at "+t.fileName+":"+t.lineNumber+")":l&&console.warn("Add @babel/plugin-transform-react-jsx-source to get a more detailed component stack. Note that you should not add it to production builds of your App for bundle size reasons."),l=!1,n+"\n"},"")}var debug_module_p="function"==typeof WeakMap;function debug_module_d(n){var e=[];return n.__k?(n.__k.forEach(function(n){n&&"function"==typeof n.type?e.push.apply(e,debug_module_d(n)):n&&"string"==typeof n.type&&e.push(n.type)}),e):e}function debug_module_h(n){return n?"function"==typeof n.type?null===n.__?null!==n.__e&&null!==n.__e.parentNode?n.__e.parentNode.localName:"":debug_module_h(n.__):n.type:""}var debug_module_v=b.prototype.setState;function debug_module_y(n){return"table"===n||"tfoot"===n||"tbody"===n||"thead"===n||"td"===n||"tr"===n||"th"===n}b.prototype.setState=function(n,e){return null==this.__v&&null==this.state&&console.warn('Calling "this.setState" inside the constructor of a component is a no-op and might be a bug in your application. Instead, set "this.state = {}" directly.\n\n'+debug_module_f(debug_module_c())),debug_module_v.call(this,n,e)};var debug_module_m=/^(address|article|aside|blockquote|details|div|dl|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|main|menu|nav|ol|p|pre|search|section|table|ul)$/,debug_module_b=b.prototype.forceUpdate;function debug_module_w(n){var e=n.props,t=debug_module_a(n),o="";for(var r in e)if(e.hasOwnProperty(r)&&"children"!==r){var i=e[r];"function"==typeof i&&(i="function "+(i.displayName||i.name)+"() {}"),i=Object(i)!==i||i.toString?i+"":Object.prototype.toString.call(i),o+=" "+r+"="+JSON.stringify(i)}var s=e.children;return"<"+t+o+(s&&s.length?">..</"+t+">":" />")}b.prototype.forceUpdate=function(n){return null==this.__v?console.warn('Calling "this.forceUpdate" inside the constructor of a component is a no-op and might be a bug in your application.\n\n'+debug_module_f(debug_module_c())):null==this.__P&&console.warn('Can\'t call "this.forceUpdate" on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.\n\n'+debug_module_f(this.__v)),debug_module_b.call(this,n)},function(){!function(){var n=preact_module_l.__b,t=preact_module_l.diffed,o=preact_module_l.__,r=preact_module_l.vnode,a=preact_module_l.__r;preact_module_l.diffed=function(n){debug_module_u(n)&&debug_module_s.pop(),debug_module_i.pop(),t&&t(n)},preact_module_l.__b=function(e){debug_module_u(e)&&debug_module_i.push(e),n&&n(e)},preact_module_l.__=function(n,e){debug_module_s=[],o&&o(n,e)},preact_module_l.vnode=function(n){n.__o=debug_module_s.length>0?debug_module_s[debug_module_s.length-1]:null,r&&r(n)},preact_module_l.__r=function(n){debug_module_u(n)&&debug_module_s.push(n),a&&a(n)}}();var n=!1,t=preact_module_l.__b,r=preact_module_l.diffed,c=preact_module_l.vnode,l=preact_module_l.__r,v=preact_module_l.__e,b=preact_module_l.__,g=preact_module_l.__h,E=debug_module_p?{useEffect:new WeakMap,useLayoutEffect:new WeakMap,lazyPropTypes:new WeakMap}:null,k=[];preact_module_l.__e=function(n,e,t,o){if(e&&e.__c&&"function"==typeof n.then){var r=n;n=new Error("Missing Suspense. The throwing component was: "+debug_module_a(e));for(var i=e;i;i=i.__)if(i.__c&&i.__c.__c){n=r;break}if(n instanceof Error)throw n}try{(o=o||{}).componentStack=debug_module_f(e),v(n,e,t,o),"function"!=typeof n.then&&setTimeout(function(){throw n})}catch(n){throw n}},preact_module_l.__=function(n,e){if(!e)throw new Error("Undefined parent passed to render(), this is the second argument.\nCheck if the element is available in the DOM/has the correct id.");var t;switch(e.nodeType){case 1:case 11:case 9:t=!0;break;default:t=!1}if(!t){var o=debug_module_a(n);throw new Error("Expected a valid HTML node as a second argument to render.\tReceived "+e+" instead: render(<"+o+" />, "+e+");")}b&&b(n,e)},preact_module_l.__b=function(e){var r=e.type;if(n=!0,void 0===r)throw new Error("Undefined component passed to createElement()\n\nYou likely forgot to export your component or might have mixed up default and named imports"+debug_module_w(e)+"\n\n"+debug_module_f(e));if(null!=r&&"object"==typeof r){if(void 0!==r.__k&&void 0!==r.__e)throw new Error("Invalid type passed to createElement(): "+r+"\n\nDid you accidentally pass a JSX literal as JSX twice?\n\n let My"+debug_module_a(e)+" = "+debug_module_w(r)+";\n let vnode = <My"+debug_module_a(e)+" />;\n\nThis usually happens when you export a JSX literal and not the component.\n\n"+debug_module_f(e));throw new Error("Invalid type passed to createElement(): "+(Array.isArray(r)?"array":r))}if(void 0!==e.ref&&"function"!=typeof e.ref&&"object"!=typeof e.ref&&!("$$typeof"in e))throw new Error('Component\'s "ref" property should be a function, or an object created by createRef(), but got ['+typeof e.ref+"] instead\n"+debug_module_w(e)+"\n\n"+debug_module_f(e));if("string"==typeof e.type)for(var i in e.props)if("o"===i[0]&&"n"===i[1]&&"function"!=typeof e.props[i]&&null!=e.props[i])throw new Error("Component's \""+i+'" property should be a function, but got ['+typeof e.props[i]+"] instead\n"+debug_module_w(e)+"\n\n"+debug_module_f(e));if("function"==typeof e.type&&e.type.propTypes){if("Lazy"===e.type.displayName&&E&&!E.lazyPropTypes.has(e.type)){var s="PropTypes are not supported on lazy(). Use propTypes on the wrapped component itself. ";try{var c=e.type();E.lazyPropTypes.set(e.type,!0),console.warn(s+"Component wrapped in lazy() is "+debug_module_a(c))}catch(n){console.warn(s+"We will log the wrapped component's name once it is loaded.")}}var l=e.props;e.type.__f&&delete(l=function(n,e){for(var t in e)n[t]=e[t];return n}({},l)).ref,function(n,e,t,r,a){Object.keys(n).forEach(function(t){var i;try{i=n[t](e,t,r,"prop",null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(n){i=n}i&&!(i.message in debug_module_o)&&(debug_module_o[i.message]=!0,console.error("Failed prop type: "+i.message+(a&&"\n"+a()||"")))})}(e.type.propTypes,l,0,debug_module_a(e),function(){return debug_module_f(e)})}t&&t(e)};var _,T=0;preact_module_l.__r=function(e){l&&l(e),n=!0;var t=e.__c;if(t===_?T++:T=1,T>=25)throw new Error("Too many re-renders. This is limited to prevent an infinite loop which may lock up your browser. The component causing this is: "+debug_module_a(e));_=t},preact_module_l.__h=function(e,t,o){if(!e||!n)throw new Error("Hook can only be invoked from render methods.");g&&g(e,t,o)};var I=function(n,e){return{get:function(){var t="get"+n+e;k&&k.indexOf(t)<0&&(k.push(t),console.warn("getting vnode."+n+" is deprecated, "+e))},set:function(){var t="set"+n+e;k&&k.indexOf(t)<0&&(k.push(t),console.warn("setting vnode."+n+" is not allowed, "+e))}}},j={nodeName:I("nodeName","use vnode.type"),attributes:I("attributes","use vnode.props"),children:I("children","use vnode.props.children")},O=Object.create({},j);preact_module_l.vnode=function(n){var e=n.props;if(null!==n.type&&null!=e&&("__source"in e||"__self"in e)){var t=n.props={};for(var o in e){var r=e[o];"__source"===o?n.__source=r:"__self"===o?n.__self=r:t[o]=r}}n.__proto__=O,c&&c(n)},preact_module_l.diffed=function(e){var t,o=e.type,i=e.__;if(e.__k&&e.__k.forEach(function(n){if("object"==typeof n&&n&&void 0===n.type){var t=Object.keys(n).join(",");throw new Error("Objects are not valid as a child. Encountered an object with the keys {"+t+"}.\n\n"+debug_module_f(e))}}),e.__c===_&&(T=0),"string"==typeof o&&(debug_module_y(o)||"p"===o||"a"===o||"button"===o)){var s=debug_module_h(i);if(""!==s)"table"===o&&"td"!==s&&debug_module_y(s)?(console.log(s,i.__e),console.error("Improper nesting of table. Your <table> should not have a table-node parent."+debug_module_w(e)+"\n\n"+debug_module_f(e))):"thead"!==o&&"tfoot"!==o&&"tbody"!==o||"table"===s?"tr"===o&&"thead"!==s&&"tfoot"!==s&&"tbody"!==s?console.error("Improper nesting of table. Your <tr> should have a <thead/tbody/tfoot> parent."+debug_module_w(e)+"\n\n"+debug_module_f(e)):"td"===o&&"tr"!==s?console.error("Improper nesting of table. Your <td> should have a <tr> parent."+debug_module_w(e)+"\n\n"+debug_module_f(e)):"th"===o&&"tr"!==s&&console.error("Improper nesting of table. Your <th> should have a <tr>."+debug_module_w(e)+"\n\n"+debug_module_f(e)):console.error("Improper nesting of table. Your <thead/tbody/tfoot> should have a <table> parent."+debug_module_w(e)+"\n\n"+debug_module_f(e));else if("p"===o){var c=debug_module_d(e).filter(function(n){return debug_module_m.test(n)});c.length&&console.error("Improper nesting of paragraph. Your <p> should not have "+c.join(", ")+"as child-elements."+debug_module_w(e)+"\n\n"+debug_module_f(e))}else"a"!==o&&"button"!==o||-1!==debug_module_d(e).indexOf(o)&&console.error("Improper nesting of interactive content. Your <"+o+"> should not have other "+("a"===o?"anchor":"button")+" tags as child-elements."+debug_module_w(e)+"\n\n"+debug_module_f(e))}if(n=!1,r&&r(e),null!=e.__k)for(var l=[],u=0;u<e.__k.length;u++){var p=e.__k[u];if(p&&null!=p.key){var v=p.key;if(-1!==l.indexOf(v)){console.error('Following component has two or more children with the same key attribute: "'+v+'". This may cause glitches and misbehavior in rendering process. Component: \n\n'+debug_module_w(e)+"\n\n"+debug_module_f(e));break}l.push(v)}}if(null!=e.__c&&null!=e.__c.__H){var b=e.__c.__H.__;if(b)for(var g=0;g<b.length;g+=1){var E=b[g];if(E.__H)for(var k=0;k<E.__H.length;k++)if((t=E.__H[k])!=t){var I=debug_module_a(e);throw new Error("Invalid argument passed to hook. Hooks should not be called with NaN in the dependency array. Hook index "+g+" in component "+I+" was called with NaN.")}}}}}();
;// CONCATENATED MODULE: ./node_modules/preact/hooks/dist/hooks.module.js
-var hooks_module_t,hooks_module_r,hooks_module_u,hooks_module_i,hooks_module_o=0,hooks_module_f=[],hooks_module_c=[],hooks_module_e=l,hooks_module_a=hooks_module_e.__b,hooks_module_v=hooks_module_e.__r,hooks_module_l=hooks_module_e.diffed,hooks_module_m=hooks_module_e.__c,hooks_module_s=hooks_module_e.unmount,hooks_module_d=hooks_module_e.__;function hooks_module_h(n,t){hooks_module_e.__h&&hooks_module_e.__h(hooks_module_r,n,hooks_module_o||t),hooks_module_o=0;var u=hooks_module_r.__H||(hooks_module_r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({__V:hooks_module_c}),u.__[n]}function hooks_module_p(n){return hooks_module_o=1,hooks_module_y(hooks_module_D,n)}function hooks_module_y(n,u,i){var o=hooks_module_h(hooks_module_t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):hooks_module_D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=hooks_module_r,!hooks_module_r.u)){var f=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(n){return!!n.__c});if(u.every(function(n){return!n.__N}))return!c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};hooks_module_r.u=!0;var c=hooks_module_r.shouldComponentUpdate,e=hooks_module_r.componentWillUpdate;hooks_module_r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u}e&&e.call(this,n,t,r)},hooks_module_r.shouldComponentUpdate=f}return o.__N||o.__}function hooks_module_(n,u){var i=hooks_module_h(hooks_module_t++,3);!hooks_module_e.__s&&hooks_module_C(i.__H,u)&&(i.__=n,i.i=u,hooks_module_r.__H.__h.push(i))}function hooks_module_A(n,u){var i=hooks_module_h(hooks_module_t++,4);!hooks_module_e.__s&&hooks_module_C(i.__H,u)&&(i.__=n,i.i=u,hooks_module_r.__h.push(i))}function hooks_module_F(n){return hooks_module_o=5,hooks_module_q(function(){return{current:n}},[])}function hooks_module_T(n,t,r){hooks_module_o=6,hooks_module_A(function(){return"function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n))}function hooks_module_q(n,r){var u=hooks_module_h(hooks_module_t++,7);return hooks_module_C(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function hooks_module_x(n,t){return hooks_module_o=8,hooks_module_q(function(){return n},t)}function hooks_module_P(n){var u=hooks_module_r.context[n.__c],i=hooks_module_h(hooks_module_t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(hooks_module_r)),u.props.value):n.__}function hooks_module_V(n,t){hooks_module_e.useDebugValue&&hooks_module_e.useDebugValue(t?t(n):n)}function hooks_module_b(n){var u=hooks_module_h(hooks_module_t++,10),i=hooks_module_p();return u.__=n,hooks_module_r.componentDidCatch||(hooks_module_r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function hooks_module_g(){var n=hooks_module_h(hooks_module_t++,11);if(!n.__){for(var u=hooks_module_r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++}return n.__}function hooks_module_j(){for(var n;n=hooks_module_f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(hooks_module_z),n.__H.__h.forEach(hooks_module_B),n.__H.__h=[]}catch(t){n.__H.__h=[],hooks_module_e.__e(t,n.__v)}}hooks_module_e.__b=function(n){hooks_module_r=null,hooks_module_a&&hooks_module_a(n)},hooks_module_e.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),hooks_module_d&&hooks_module_d(n,t)},hooks_module_e.__r=function(n){hooks_module_v&&hooks_module_v(n),hooks_module_t=0;var i=(hooks_module_r=n.__c).__H;i&&(hooks_module_u===hooks_module_r?(i.__h=[],hooks_module_r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=hooks_module_c,n.__N=n.i=void 0})):(i.__h.forEach(hooks_module_z),i.__h.forEach(hooks_module_B),i.__h=[],hooks_module_t=0)),hooks_module_u=hooks_module_r},hooks_module_e.diffed=function(n){hooks_module_l&&hooks_module_l(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==hooks_module_f.push(t)&&hooks_module_i===hooks_module_e.requestAnimationFrame||((hooks_module_i=hooks_module_e.requestAnimationFrame)||hooks_module_w)(hooks_module_j)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==hooks_module_c&&(n.__=n.__V),n.i=void 0,n.__V=hooks_module_c})),hooks_module_u=hooks_module_r=null},hooks_module_e.__c=function(n,t){t.some(function(n){try{n.__h.forEach(hooks_module_z),n.__h=n.__h.filter(function(n){return!n.__||hooks_module_B(n)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],hooks_module_e.__e(r,n.__v)}}),hooks_module_m&&hooks_module_m(n,t)},hooks_module_e.unmount=function(n){hooks_module_s&&hooks_module_s(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{hooks_module_z(n)}catch(n){t=n}}),r.__H=void 0,t&&hooks_module_e.__e(t,r.__v))};var hooks_module_k="function"==typeof requestAnimationFrame;function hooks_module_w(n){var t,r=function(){clearTimeout(u),hooks_module_k&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,100);hooks_module_k&&(t=requestAnimationFrame(r))}function hooks_module_z(n){var t=hooks_module_r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),hooks_module_r=t}function hooks_module_B(n){var t=hooks_module_r;n.__c=n.__(),hooks_module_r=t}function hooks_module_C(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function hooks_module_D(n,t){return"function"==typeof t?t(n):t}
+var hooks_module_t,hooks_module_r,hooks_module_u,hooks_module_i,hooks_module_o=0,hooks_module_f=[],hooks_module_c=[],hooks_module_e=preact_module_l,hooks_module_a=hooks_module_e.__b,hooks_module_v=hooks_module_e.__r,hooks_module_l=hooks_module_e.diffed,hooks_module_m=hooks_module_e.__c,hooks_module_s=hooks_module_e.unmount,hooks_module_d=hooks_module_e.__;function hooks_module_h(n,t){hooks_module_e.__h&&hooks_module_e.__h(hooks_module_r,n,hooks_module_o||t),hooks_module_o=0;var u=hooks_module_r.__H||(hooks_module_r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({__V:hooks_module_c}),u.__[n]}function hooks_module_p(n){return hooks_module_o=1,hooks_module_y(hooks_module_D,n)}function hooks_module_y(n,u,i){var o=hooks_module_h(hooks_module_t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):hooks_module_D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=hooks_module_r,!hooks_module_r.u)){var f=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(n){return!!n.__c});if(u.every(function(n){return!n.__N}))return!c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};hooks_module_r.u=!0;var c=hooks_module_r.shouldComponentUpdate,e=hooks_module_r.componentWillUpdate;hooks_module_r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u}e&&e.call(this,n,t,r)},hooks_module_r.shouldComponentUpdate=f}return o.__N||o.__}function hooks_module_(n,u){var i=hooks_module_h(hooks_module_t++,3);!hooks_module_e.__s&&hooks_module_C(i.__H,u)&&(i.__=n,i.i=u,hooks_module_r.__H.__h.push(i))}function hooks_module_A(n,u){var i=hooks_module_h(hooks_module_t++,4);!hooks_module_e.__s&&hooks_module_C(i.__H,u)&&(i.__=n,i.i=u,hooks_module_r.__h.push(i))}function hooks_module_F(n){return hooks_module_o=5,hooks_module_q(function(){return{current:n}},[])}function hooks_module_T(n,t,r){hooks_module_o=6,hooks_module_A(function(){return"function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n))}function hooks_module_q(n,r){var u=hooks_module_h(hooks_module_t++,7);return hooks_module_C(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function hooks_module_x(n,t){return hooks_module_o=8,hooks_module_q(function(){return n},t)}function hooks_module_P(n){var u=hooks_module_r.context[n.__c],i=hooks_module_h(hooks_module_t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(hooks_module_r)),u.props.value):n.__}function hooks_module_V(n,t){hooks_module_e.useDebugValue&&hooks_module_e.useDebugValue(t?t(n):n)}function hooks_module_b(n){var u=hooks_module_h(hooks_module_t++,10),i=hooks_module_p();return u.__=n,hooks_module_r.componentDidCatch||(hooks_module_r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function hooks_module_g(){var n=hooks_module_h(hooks_module_t++,11);if(!n.__){for(var u=hooks_module_r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++}return n.__}function hooks_module_j(){for(var n;n=hooks_module_f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(hooks_module_z),n.__H.__h.forEach(hooks_module_B),n.__H.__h=[]}catch(t){n.__H.__h=[],hooks_module_e.__e(t,n.__v)}}hooks_module_e.__b=function(n){hooks_module_r=null,hooks_module_a&&hooks_module_a(n)},hooks_module_e.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),hooks_module_d&&hooks_module_d(n,t)},hooks_module_e.__r=function(n){hooks_module_v&&hooks_module_v(n),hooks_module_t=0;var i=(hooks_module_r=n.__c).__H;i&&(hooks_module_u===hooks_module_r?(i.__h=[],hooks_module_r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=hooks_module_c,n.__N=n.i=void 0})):(i.__h.forEach(hooks_module_z),i.__h.forEach(hooks_module_B),i.__h=[],hooks_module_t=0)),hooks_module_u=hooks_module_r},hooks_module_e.diffed=function(n){hooks_module_l&&hooks_module_l(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==hooks_module_f.push(t)&&hooks_module_i===hooks_module_e.requestAnimationFrame||((hooks_module_i=hooks_module_e.requestAnimationFrame)||hooks_module_w)(hooks_module_j)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==hooks_module_c&&(n.__=n.__V),n.i=void 0,n.__V=hooks_module_c})),hooks_module_u=hooks_module_r=null},hooks_module_e.__c=function(n,t){t.some(function(n){try{n.__h.forEach(hooks_module_z),n.__h=n.__h.filter(function(n){return!n.__||hooks_module_B(n)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],hooks_module_e.__e(r,n.__v)}}),hooks_module_m&&hooks_module_m(n,t)},hooks_module_e.unmount=function(n){hooks_module_s&&hooks_module_s(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{hooks_module_z(n)}catch(n){t=n}}),r.__H=void 0,t&&hooks_module_e.__e(t,r.__v))};var hooks_module_k="function"==typeof requestAnimationFrame;function hooks_module_w(n){var t,r=function(){clearTimeout(u),hooks_module_k&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,100);hooks_module_k&&(t=requestAnimationFrame(r))}function hooks_module_z(n){var t=hooks_module_r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),hooks_module_r=t}function hooks_module_B(n){var t=hooks_module_r;n.__c=n.__(),hooks_module_r=t}function hooks_module_C(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function hooks_module_D(n,t){return"function"==typeof t?t(n):t}
;// CONCATENATED MODULE: ./node_modules/@preact/signals-core/dist/signals-core.module.js
var signals_core_module_i=Symbol.for("preact-signals");function signals_core_module_t(){if(!(signals_core_module_s>1)){var i,t=!1;while(void 0!==signals_core_module_h){var r=signals_core_module_h;signals_core_module_h=void 0;signals_core_module_f++;while(void 0!==r){var o=r.o;r.o=void 0;r.f&=-3;if(!(8&r.f)&&signals_core_module_c(r))try{r.c()}catch(r){if(!t){i=r;t=!0}}r=o}}signals_core_module_f=0;signals_core_module_s--;if(t)throw i}else signals_core_module_s--}function signals_core_module_r(i){if(signals_core_module_s>0)return i();signals_core_module_s++;try{return i()}finally{signals_core_module_t()}}var signals_core_module_o=void 0;function signals_core_module_n(i){var t=signals_core_module_o;signals_core_module_o=void 0;try{return i()}finally{signals_core_module_o=t}}var signals_core_module_h=void 0,signals_core_module_s=0,signals_core_module_f=0,signals_core_module_v=0;function signals_core_module_e(i){if(void 0!==signals_core_module_o){var t=i.n;if(void 0===t||t.t!==signals_core_module_o){t={i:0,S:i,p:signals_core_module_o.s,n:void 0,t:signals_core_module_o,e:void 0,x:void 0,r:t};if(void 0!==signals_core_module_o.s)signals_core_module_o.s.n=t;signals_core_module_o.s=t;i.n=t;if(32&signals_core_module_o.f)i.S(t);return t}else if(-1===t.i){t.i=0;if(void 0!==t.n){t.n.p=t.p;if(void 0!==t.p)t.p.n=t.n;t.p=signals_core_module_o.s;t.n=void 0;signals_core_module_o.s.n=t;signals_core_module_o.s=t}return t}}}function signals_core_module_u(i){this.v=i;this.i=0;this.n=void 0;this.t=void 0}signals_core_module_u.prototype.brand=signals_core_module_i;signals_core_module_u.prototype.h=function(){return!0};signals_core_module_u.prototype.S=function(i){if(this.t!==i&&void 0===i.e){i.x=this.t;if(void 0!==this.t)this.t.e=i;this.t=i}};signals_core_module_u.prototype.U=function(i){if(void 0!==this.t){var t=i.e,r=i.x;if(void 0!==t){t.x=r;i.e=void 0}if(void 0!==r){r.e=t;i.x=void 0}if(i===this.t)this.t=r}};signals_core_module_u.prototype.subscribe=function(i){var t=this;return signals_core_module_E(function(){var r=t.value,n=signals_core_module_o;signals_core_module_o=void 0;try{i(r)}finally{signals_core_module_o=n}})};signals_core_module_u.prototype.valueOf=function(){return this.value};signals_core_module_u.prototype.toString=function(){return this.value+""};signals_core_module_u.prototype.toJSON=function(){return this.value};signals_core_module_u.prototype.peek=function(){var i=signals_core_module_o;signals_core_module_o=void 0;try{return this.value}finally{signals_core_module_o=i}};Object.defineProperty(signals_core_module_u.prototype,"value",{get:function(){var i=signals_core_module_e(this);if(void 0!==i)i.i=this.i;return this.v},set:function(i){if(i!==this.v){if(signals_core_module_f>100)throw new Error("Cycle detected");this.v=i;this.i++;signals_core_module_v++;signals_core_module_s++;try{for(var r=this.t;void 0!==r;r=r.x)r.t.N()}finally{signals_core_module_t()}}}});function signals_core_module_d(i){return new signals_core_module_u(i)}function signals_core_module_c(i){for(var t=i.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function signals_core_module_a(i){for(var t=i.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r)t.r=r;t.S.n=t;t.i=-1;if(void 0===t.n){i.s=t;break}}}function signals_core_module_l(i){var t=i.s,r=void 0;while(void 0!==t){var o=t.p;if(-1===t.i){t.S.U(t);if(void 0!==o)o.n=t.n;if(void 0!==t.n)t.n.p=o}else r=t;t.S.n=t.r;if(void 0!==t.r)t.r=void 0;t=o}i.s=r}function signals_core_module_y(i){signals_core_module_u.call(this,void 0);this.x=i;this.s=void 0;this.g=signals_core_module_v-1;this.f=4}(signals_core_module_y.prototype=new signals_core_module_u).h=function(){this.f&=-3;if(1&this.f)return!1;if(32==(36&this.f))return!0;this.f&=-5;if(this.g===signals_core_module_v)return!0;this.g=signals_core_module_v;this.f|=1;if(this.i>0&&!signals_core_module_c(this)){this.f&=-2;return!0}var i=signals_core_module_o;try{signals_core_module_a(this);signals_core_module_o=this;var t=this.x();if(16&this.f||this.v!==t||0===this.i){this.v=t;this.f&=-17;this.i++}}catch(i){this.v=i;this.f|=16;this.i++}signals_core_module_o=i;signals_core_module_l(this);this.f&=-2;return!0};signals_core_module_y.prototype.S=function(i){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}signals_core_module_u.prototype.S.call(this,i)};signals_core_module_y.prototype.U=function(i){if(void 0!==this.t){signals_core_module_u.prototype.U.call(this,i);if(void 0===this.t){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}}};signals_core_module_y.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var i=this.t;void 0!==i;i=i.x)i.t.N()}};Object.defineProperty(signals_core_module_y.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var i=signals_core_module_e(this);this.h();if(void 0!==i)i.i=this.i;if(16&this.f)throw this.v;return this.v}});function signals_core_module_w(i){return new signals_core_module_y(i)}function signals_core_module_(i){var r=i.u;i.u=void 0;if("function"==typeof r){signals_core_module_s++;var n=signals_core_module_o;signals_core_module_o=void 0;try{r()}catch(t){i.f&=-2;i.f|=8;signals_core_module_g(i);throw t}finally{signals_core_module_o=n;signals_core_module_t()}}}function signals_core_module_g(i){for(var t=i.s;void 0!==t;t=t.n)t.S.U(t);i.x=void 0;i.s=void 0;signals_core_module_(i)}function signals_core_module_p(i){if(signals_core_module_o!==this)throw new Error("Out-of-order effect");signals_core_module_l(this);signals_core_module_o=i;this.f&=-2;if(8&this.f)signals_core_module_g(this);signals_core_module_t()}function signals_core_module_b(i){this.x=i;this.u=void 0;this.s=void 0;this.o=void 0;this.f=32}signals_core_module_b.prototype.c=function(){var i=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();if("function"==typeof t)this.u=t}finally{i()}};signals_core_module_b.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1;this.f&=-9;signals_core_module_(this);signals_core_module_a(this);signals_core_module_s++;var i=signals_core_module_o;signals_core_module_o=this;return signals_core_module_p.bind(this,i)};signals_core_module_b.prototype.N=function(){if(!(2&this.f)){this.f|=2;this.o=signals_core_module_h;signals_core_module_h=this}};signals_core_module_b.prototype.d=function(){this.f|=8;if(!(1&this.f))signals_core_module_g(this)};function signals_core_module_E(i){var t=new signals_core_module_b(i);try{t.c()}catch(i){t.d();throw i}return t.d.bind(t)}
;// CONCATENATED MODULE: ./node_modules/@preact/signals/dist/signals.module.js
-var signals_module_v,signals_module_s;function signals_module_l(n,i){l[n]=i.bind(null,l[n]||function(){})}function signals_module_d(n){if(signals_module_s)signals_module_s();signals_module_s=n&&n.S()}function signals_module_p(n){var r=this,f=n.data,o=useSignal(f);o.value=f;var e=hooks_module_q(function(){var n=r.__v;while(n=n.__)if(n.__c){n.__c.__$f|=4;break}r.__$u.c=function(){var n;if(!preact_module_t(e.peek())&&3===(null==(n=r.base)?void 0:n.nodeType))r.base.data=e.peek();else{r.__$f|=1;r.setState({})}};return signals_core_module_w(function(){var n=o.value.value;return 0===n?0:!0===n?"":n||""})},[]);return e.value}signals_module_p.displayName="_st";Object.defineProperties(signals_core_module_u.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:signals_module_p},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});signals_module_l("__b",function(n,r){if("string"==typeof r.type){var i,t=r.props;for(var f in t)if("children"!==f){var o=t[f];if(o instanceof signals_core_module_u){if(!i)r.__np=i={};i[f]=o;t[f]=o.peek()}}}n(r)});signals_module_l("__r",function(n,r){signals_module_d();var i,t=r.__c;if(t){t.__$f&=-2;if(void 0===(i=t.__$u))t.__$u=i=function(n){var r;signals_core_module_E(function(){r=this});r.c=function(){t.__$f|=1;t.setState({})};return r}()}signals_module_v=t;signals_module_d(i);n(r)});signals_module_l("__e",function(n,r,i,t){signals_module_d();signals_module_v=void 0;n(r,i,t)});signals_module_l("diffed",function(n,r){signals_module_d();signals_module_v=void 0;var i;if("string"==typeof r.type&&(i=r.__e)){var t=r.__np,f=r.props;if(t){var o=i.U;if(o)for(var e in o){var u=o[e];if(void 0!==u&&!(e in t)){u.d();o[e]=void 0}}else i.U=o={};for(var a in t){var c=o[a],s=t[a];if(void 0===c){c=signals_module_(i,a,s,f);o[a]=c}else c.o(s,f)}}}n(r)});function signals_module_(n,r,i,t){var f=r in n&&void 0===n.ownerSVGElement,o=signals_core_module_d(i);return{o:function(n,r){o.value=n;t=r},d:signals_core_module_E(function(){var i=o.value.value;if(t[r]!==i){t[r]=i;if(f)n[r]=i;else if(i)n.setAttribute(r,i);else n.removeAttribute(r)}})}}signals_module_l("unmount",function(n,r){if("string"==typeof r.type){var i=r.__e;if(i){var t=i.U;if(t){i.U=void 0;for(var f in t){var o=t[f];if(o)o.d()}}}}else{var e=r.__c;if(e){var u=e.__$u;if(u){e.__$u=void 0;u.d()}}}n(r)});signals_module_l("__h",function(n,r,i,t){if(t<3||9===t)r.__$f|=2;n(r,i,t)});w.prototype.shouldComponentUpdate=function(n,r){var i=this.__$u;if(!(i&&void 0!==i.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var t in r)return!0;for(var f in n)if("__source"!==f&&n[f]!==this.props[f])return!0;for(var o in this.props)if(!(o in n))return!0;return!1};function useSignal(n){return hooks_module_q(function(){return signals_core_module_d(n)},[])}function useComputed(n){var r=f(n);r.current=n;signals_module_v.__$f|=4;return t(function(){return u(function(){return r.current()})},[])}function useSignalEffect(n){var r=f(n);r.current=n;o(function(){return c(function(){return r.current()})},[])}
+var signals_module_v,signals_module_s;function signals_module_l(n,i){preact_module_l[n]=i.bind(null,preact_module_l[n]||function(){})}function signals_module_d(n){if(signals_module_s)signals_module_s();signals_module_s=n&&n.S()}function signals_module_p(n){var r=this,f=n.data,o=useSignal(f);o.value=f;var e=hooks_module_q(function(){var n=r.__v;while(n=n.__)if(n.__c){n.__c.__$f|=4;break}r.__$u.c=function(){var n;if(!preact_module_t(e.peek())&&3===(null==(n=r.base)?void 0:n.nodeType))r.base.data=e.peek();else{r.__$f|=1;r.setState({})}};return signals_core_module_w(function(){var n=o.value.value;return 0===n?0:!0===n?"":n||""})},[]);return e.value}signals_module_p.displayName="_st";Object.defineProperties(signals_core_module_u.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:signals_module_p},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});signals_module_l("__b",function(n,r){if("string"==typeof r.type){var i,t=r.props;for(var f in t)if("children"!==f){var o=t[f];if(o instanceof signals_core_module_u){if(!i)r.__np=i={};i[f]=o;t[f]=o.peek()}}}n(r)});signals_module_l("__r",function(n,r){signals_module_d();var i,t=r.__c;if(t){t.__$f&=-2;if(void 0===(i=t.__$u))t.__$u=i=function(n){var r;signals_core_module_E(function(){r=this});r.c=function(){t.__$f|=1;t.setState({})};return r}()}signals_module_v=t;signals_module_d(i);n(r)});signals_module_l("__e",function(n,r,i,t){signals_module_d();signals_module_v=void 0;n(r,i,t)});signals_module_l("diffed",function(n,r){signals_module_d();signals_module_v=void 0;var i;if("string"==typeof r.type&&(i=r.__e)){var t=r.__np,f=r.props;if(t){var o=i.U;if(o)for(var e in o){var u=o[e];if(void 0!==u&&!(e in t)){u.d();o[e]=void 0}}else i.U=o={};for(var a in t){var c=o[a],s=t[a];if(void 0===c){c=signals_module_(i,a,s,f);o[a]=c}else c.o(s,f)}}}n(r)});function signals_module_(n,r,i,t){var f=r in n&&void 0===n.ownerSVGElement,o=signals_core_module_d(i);return{o:function(n,r){o.value=n;t=r},d:signals_core_module_E(function(){var i=o.value.value;if(t[r]!==i){t[r]=i;if(f)n[r]=i;else if(i)n.setAttribute(r,i);else n.removeAttribute(r)}})}}signals_module_l("unmount",function(n,r){if("string"==typeof r.type){var i=r.__e;if(i){var t=i.U;if(t){i.U=void 0;for(var f in t){var o=t[f];if(o)o.d()}}}}else{var e=r.__c;if(e){var u=e.__$u;if(u){e.__$u=void 0;u.d()}}}n(r)});signals_module_l("__h",function(n,r,i,t){if(t<3||9===t)r.__$f|=2;n(r,i,t)});b.prototype.shouldComponentUpdate=function(n,r){var i=this.__$u;if(!(i&&void 0!==i.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var t in r)return!0;for(var f in n)if("__source"!==f&&n[f]!==this.props[f])return!0;for(var o in this.props)if(!(o in n))return!0;return!1};function useSignal(n){return hooks_module_q(function(){return signals_core_module_d(n)},[])}function useComputed(n){var r=f(n);r.current=n;signals_module_v.__$f|=4;return t(function(){return u(function(){return r.current()})},[])}function useSignalEffect(n){var r=f(n);r.current=n;o(function(){return c(function(){return r.current()})},[])}
;// CONCATENATED MODULE: ./node_modules/deepsignal/dist/deepsignal.module.js
var deepsignal_module_a=new WeakMap,deepsignal_module_o=new WeakMap,deepsignal_module_s=new WeakMap,deepsignal_module_u=new WeakSet,deepsignal_module_c=new WeakMap,deepsignal_module_f=/^\$/,deepsignal_module_i=Object.getOwnPropertyDescriptor,deepsignal_module_l=!1,deepsignal_module_g=function(e){if(!deepsignal_module_k(e))throw new Error("This object can't be observed.");return deepsignal_module_o.has(e)||deepsignal_module_o.set(e,deepsignal_module_v(e,deepsignal_module_d)),deepsignal_module_o.get(e)},deepsignal_module_p=function(e,t){deepsignal_module_l=!0;var r=e[t];try{deepsignal_module_l=!1}catch(e){}return r};function deepsignal_module_h(e){return deepsignal_module_u.add(e),e}var deepsignal_module_v=function(e,t){var r=new Proxy(e,t);return deepsignal_module_u.add(r),r},deepsignal_module_y=function(){throw new Error("Don't mutate the signals directly.")},deepsignal_module_w=function(e){return function(t,u,c){var g;if(deepsignal_module_l)return Reflect.get(t,u,c);var p=e||"$"===u[0];if(!e&&p&&Array.isArray(t)){if("$"===u)return deepsignal_module_s.has(t)||deepsignal_module_s.set(t,deepsignal_module_v(t,deepsignal_module_m)),deepsignal_module_s.get(t);p="$length"===u}deepsignal_module_a.has(c)||deepsignal_module_a.set(c,new Map);var h=deepsignal_module_a.get(c),y=p?u.replace(deepsignal_module_f,""):u;if(h.has(y)||"function"!=typeof(null==(g=deepsignal_module_i(t,y))?void 0:g.get)){var w=Reflect.get(t,y,c);if(p&&"function"==typeof w)return;if("symbol"==typeof y&&deepsignal_module_b.has(y))return w;h.has(y)||(deepsignal_module_k(w)&&(deepsignal_module_o.has(w)||deepsignal_module_o.set(w,deepsignal_module_v(w,deepsignal_module_d)),w=deepsignal_module_o.get(w)),h.set(y,signals_core_module_d(w)))}else h.set(y,signals_core_module_w(function(){return Reflect.get(t,y,c)}));return p?h.get(y):h.get(y).value}},deepsignal_module_d={get:deepsignal_module_w(!1),set:function(e,n,s,u){var l;if("function"==typeof(null==(l=deepsignal_module_i(e,n))?void 0:l.set))return Reflect.set(e,n,s,u);deepsignal_module_a.has(u)||deepsignal_module_a.set(u,new Map);var g=deepsignal_module_a.get(u);if("$"===n[0]){s instanceof signals_core_module_u||deepsignal_module_y();var p=n.replace(deepsignal_module_f,"");return g.set(p,s),Reflect.set(e,p,s.peek(),u)}var h=s;deepsignal_module_k(s)&&(deepsignal_module_o.has(s)||deepsignal_module_o.set(s,deepsignal_module_v(s,deepsignal_module_d)),h=deepsignal_module_o.get(s));var w=!(n in e),m=Reflect.set(e,n,s,u);return g.has(n)?g.get(n).value=h:g.set(n,signals_core_module_d(h)),w&&deepsignal_module_c.has(e)&&deepsignal_module_c.get(e).value++,Array.isArray(e)&&g.has("length")&&(g.get("length").value=e.length),m},deleteProperty:function(e,t){"$"===t[0]&&deepsignal_module_y();var r=deepsignal_module_a.get(deepsignal_module_o.get(e)),n=Reflect.deleteProperty(e,t);return r&&r.has(t)&&(r.get(t).value=void 0),deepsignal_module_c.has(e)&&deepsignal_module_c.get(e).value++,n},ownKeys:function(e){return deepsignal_module_c.has(e)||deepsignal_module_c.set(e,signals_core_module_d(0)),deepsignal_module_c._=deepsignal_module_c.get(e).value,Reflect.ownKeys(e)}},deepsignal_module_m={get:deepsignal_module_w(!0),set:deepsignal_module_y,deleteProperty:deepsignal_module_y},deepsignal_module_b=new Set(Object.getOwnPropertyNames(Symbol).map(function(e){return Symbol[e]}).filter(function(e){return"symbol"==typeof e})),R=new Set([Object,Array]),deepsignal_module_k=function(e){return"object"==typeof e&&null!==e&&R.has(e.constructor)&&!deepsignal_module_u.has(e)},deepsignal_module_M=function(t){return e(function(){return deepsignal_module_g(t)},[])};
;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/store.js
@@ -63,7 +70,7 @@ var deepsignal_module_a=new WeakMap,deepsignal_module_o=new WeakMap,deepsignal_m
* Internal dependencies
*/
-const isObject = item => item && typeof item === 'object' && item.constructor === Object;
+const isObject = item => Boolean(item && typeof item === 'object' && item.constructor === Object);
const deepMerge = (target, source) => {
if (isObject(target) && isObject(source)) {
for (const key in source) {
@@ -73,7 +80,9 @@ const deepMerge = (target, source) => {
get: getter
});
} else if (isObject(source[key])) {
- if (!target[key]) target[key] = {};
+ if (!target[key]) {
+ target[key] = {};
+ }
deepMerge(target[key], source[key]);
} else {
try {
@@ -166,7 +175,9 @@ const handlers = {
resetScope();
resetNamespace();
}
- if (it.done) break;
+ if (it.done) {
+ break;
+ }
}
return value;
};
@@ -187,7 +198,9 @@ const handlers = {
}
// Check if the property is an object. If it is, proxyify it.
- if (isObject(result)) return proxify(result, ns);
+ if (isObject(result)) {
+ return proxify(result, ns);
+ }
return result;
},
// Prevents passing the current proxy as the receiver to the deepSignal.
@@ -235,7 +248,7 @@ const universalUnlock = 'I acknowledge that using a private store means my plugi
* the store by using directives in the HTML, e.g.:
*
* ```html
- * <div data-wp-interactive='{ "namespace": "counter" }'>
+ * <div data-wp-interactive="counter">
* <button
* data-wp-text="state.double"
* data-wp-on--click="actions.increment"
@@ -296,13 +309,15 @@ function store(namespace, {
return stores.get(namespace);
}
const parseInitialData = (dom = document) => {
- const storeTag = dom.querySelector(`script[type="application/json"]#wp-interactivity-data`);
- if (storeTag?.textContent) {
+ var _dom$getElementById;
+ const jsonDataScriptTag = // Preferred Script Module data passing form
+ (_dom$getElementById = dom.getElementById('wp-script-module-data-@wordpress/interactivity')) !== null && _dom$getElementById !== void 0 ? _dom$getElementById :
+ // Legacy form
+ dom.getElementById('wp-interactivity-data');
+ if (jsonDataScriptTag?.textContent) {
try {
- return JSON.parse(storeTag.textContent);
- } catch (e) {
- // Do nothing.
- }
+ return JSON.parse(jsonDataScriptTag.textContent);
+ } catch {}
}
return {};
};
@@ -328,7 +343,8 @@ const data = parseInitialData();
populateInitialData(data);
;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/hooks.js
-/* @jsx createElement */
+// eslint-disable-next-line eslint-comments/disable-enable-pair
+/* eslint-disable react-hooks/exhaustive-deps */
/**
* External dependencies
@@ -339,6 +355,7 @@ populateInitialData(data);
* Internal dependencies
*/
+
// Main context.
const context = G({});
@@ -356,7 +373,9 @@ const immutableHandlers = {
deleteProperty: immutableError
};
const deepImmutable = target => {
- if (!immutableMap.has(target)) immutableMap.set(target, new Proxy(target, immutableHandlers));
+ if (!immutableMap.has(target)) {
+ immutableMap.set(target, new Proxy(target, immutableHandlers));
+ }
return immutableMap.get(target);
};
@@ -437,7 +456,7 @@ const directivePriorities = {};
* the `data-wp-alert` directive will have the `onclick` event handler, e.g.,
*
* ```html
- * <div data-wp-interactive='{ "namespace": "messages" }'>
+ * <div data-wp-interactive="messages">
* <button data-wp-alert="state.alert">Click me!</button>
* </div>
* ```
@@ -447,7 +466,7 @@ const directivePriorities = {};
* attribute, followed by the suffix, like in the following HTML snippet:
*
* ```html
- * <div data-wp-interactive='{ "namespace": "myblock" }'>
+ * <div data-wp-interactive="myblock">
* <button
* data-wp-color--text="state.text"
* data-wp-color--background="state.background"
@@ -496,18 +515,24 @@ const directive = (name, callback, {
// Resolve the path to some property of the store object.
const resolve = (path, namespace) => {
+ if (!namespace) {
+ warn(`Namespace missing for "${path}". The value for that path won't be resolved.`);
+ return;
+ }
let resolvedStore = stores.get(namespace);
if (typeof resolvedStore === 'undefined') {
resolvedStore = store(namespace, undefined, {
lock: universalUnlock
});
}
- let current = {
+ const current = {
...resolvedStore,
context: getScope().context[namespace]
};
- path.split('.').forEach(p => current = current[p]);
- return current;
+ try {
+ // TODO: Support lazy/dynamically initialized stores
+ return path.split('.').reduce((acc, key) => acc[key], current);
+ } catch (e) {}
};
// Generate the evaluate function.
@@ -571,11 +596,11 @@ const Directives = ({
scope.attributes = element.props;
// Recursively render the wrapper for the next priority level.
- const children = nextPriorityLevels.length > 0 ? g(Directives, {
- directives: directives,
+ const children = nextPriorityLevels.length > 0 ? _(Directives, {
+ directives,
priorityLevels: nextPriorityLevels,
- element: element,
- originalProps: originalProps,
+ element,
+ originalProps,
previousScope: scope
}) : element;
const props = {
@@ -592,21 +617,25 @@ const Directives = ({
setScope(scope);
for (const directiveName of currentPriorityLevel) {
const wrapper = directiveCallbacks[directiveName]?.(directiveArgs);
- if (wrapper !== undefined) props.children = wrapper;
+ if (wrapper !== undefined) {
+ props.children = wrapper;
+ }
}
resetScope();
return props.children;
};
// Preact Options Hook called each time a vnode is created.
-const old = l.vnode;
-l.vnode = vnode => {
+const old = preact_module_l.vnode;
+preact_module_l.vnode = vnode => {
if (vnode.props.__directives) {
const props = vnode.props;
const directives = props.__directives;
- if (directives.key) vnode.key = directives.key.find(({
- suffix
- }) => suffix === 'default').value;
+ if (directives.key) {
+ vnode.key = directives.key.find(({
+ suffix
+ }) => suffix === 'default').value;
+ }
delete props.__directives;
const priorityLevels = getPriorityLevels(directives);
if (priorityLevels.length > 0) {
@@ -615,13 +644,15 @@ l.vnode = vnode => {
priorityLevels,
originalProps: props,
type: vnode.type,
- element: g(vnode.type, props),
+ element: _(vnode.type, props),
top: true
};
vnode.type = Directives;
}
}
- if (old) old(vnode);
+ if (old) {
+ old(vnode);
+ }
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/utils.js
@@ -635,6 +666,12 @@ l.vnode = vnode => {
* Internal dependencies
*/
+/**
+ * Executes a callback function after the next frame is rendered.
+ *
+ * @param callback The callback function to be executed.
+ * @return A promise that resolves after the callback function is executed.
+ */
const afterNextFrame = callback => {
return new Promise(resolve => {
const done = () => {
@@ -650,12 +687,32 @@ const afterNextFrame = callback => {
});
};
-// Using the mangled properties:
-// this.c: this._callback
-// this.x: this._compute
-// https://github.com/preactjs/signals/blob/main/mangle.json
+/**
+ * Returns a promise that resolves after yielding to main.
+ *
+ * @return Promise
+ */
+const splitTask = () => {
+ return new Promise(resolve => {
+ // TODO: Use scheduler.yield() when available.
+ setTimeout(resolve, 0);
+ });
+};
+
+/**
+ * Creates a Flusher object that can be used to flush computed values and notify listeners.
+ *
+ * Using the mangled properties:
+ * this.c: this._callback
+ * this.x: this._compute
+ * https://github.com/preactjs/signals/blob/main/mangle.json
+ *
+ * @param compute The function that computes the value to be flushed.
+ * @param notify The function that notifies listeners when the value is flushed.
+ * @return The Flusher object with `flush` and `dispose` properties.
+ */
function createFlusher(compute, notify) {
- let flush;
+ let flush = () => undefined;
const dispose = signals_core_module_E(function () {
flush = this.c.bind(this);
this.x = compute;
@@ -668,9 +725,14 @@ function createFlusher(compute, notify) {
};
}
-// Version of `useSignalEffect` with a `useEffect`-like execution. This hook
-// implementation comes from this PR, but we added short-cirtuiting to avoid
-// infinite loops: https://github.com/preactjs/signals/pull/290
+/**
+ * Custom hook that executes a callback function whenever a signal is triggered.
+ * Version of `useSignalEffect` with a `useEffect`-like execution. This hook
+ * implementation comes from this PR, but we added short-cirtuiting to avoid
+ * infinite loops: https://github.com/preactjs/signals/pull/290
+ *
+ * @param callback The callback function to be executed.
+ */
function utils_useSignalEffect(callback) {
hooks_module_(() => {
let eff = null;
@@ -692,10 +754,14 @@ function utils_useSignalEffect(callback) {
* accessible whenever the function runs. This is primarily to make the scope
* available inside hook callbacks.
*
- * @param {Function} func The passed function.
- * @return {Function} The wrapped function.
+ * Asyncronous functions should use generators that yield promises instead of awaiting them.
+ * See the documentation for details: https://developer.wordpress.org/block-editor/reference-guides/packages/packages-interactivity/packages-interactivity-api-reference/#the-store
+ *
+ * @param func The passed function.
+ * @return The wrapped function.
*/
-const withScope = func => {
+
+function withScope(func) {
const scope = getScope();
const ns = getNamespace();
if (func?.constructor?.name === 'GeneratorFunction') {
@@ -717,7 +783,9 @@ const withScope = func => {
} catch (e) {
gen.throw(e);
}
- if (it.done) break;
+ if (it.done) {
+ break;
+ }
}
return value;
};
@@ -732,7 +800,7 @@ const withScope = func => {
resetScope();
}
};
-};
+}
/**
* Accepts a function that contains imperative code which runs whenever any of
@@ -742,7 +810,7 @@ const withScope = func => {
* This hook makes the element's scope available so functions like
* `getElement()` and `getContext()` can be used inside the passed callback.
*
- * @param {Function} callback The hook callback.
+ * @param callback The hook callback.
*/
function useWatch(callback) {
utils_useSignalEffect(withScope(callback));
@@ -755,7 +823,7 @@ function useWatch(callback) {
* This hook makes the element's scope available so functions like
* `getElement()` and `getContext()` can be used inside the passed callback.
*
- * @param {Function} callback The hook callback.
+ * @param callback The hook callback.
*/
function useInit(callback) {
hooks_module_(withScope(callback), []);
@@ -769,10 +837,10 @@ function useInit(callback) {
* available so functions like `getElement()` and `getContext()` can be used
* inside the passed callback.
*
- * @param {Function} callback Imperative function that can return a cleanup
- * function.
- * @param {any[]} inputs If present, effect will only activate if the
- * values in the list change (using `===`).
+ * @param callback Imperative function that can return a cleanup
+ * function.
+ * @param inputs If present, effect will only activate if the
+ * values in the list change (using `===`).
*/
function useEffect(callback, inputs) {
hooks_module_(withScope(callback), inputs);
@@ -786,10 +854,10 @@ function useEffect(callback, inputs) {
* scope available so functions like `getElement()` and `getContext()` can be
* used inside the passed callback.
*
- * @param {Function} callback Imperative function that can return a cleanup
- * function.
- * @param {any[]} inputs If present, effect will only activate if the
- * values in the list change (using `===`).
+ * @param callback Imperative function that can return a cleanup
+ * function.
+ * @param inputs If present, effect will only activate if the
+ * values in the list change (using `===`).
*/
function useLayoutEffect(callback, inputs) {
hooks_module_A(withScope(callback), inputs);
@@ -803,13 +871,14 @@ function useLayoutEffect(callback, inputs) {
* scope available so functions like `getElement()` and `getContext()` can be
* used inside the passed callback.
*
- * @param {Function} callback Imperative function that can return a cleanup
- * function.
- * @param {any[]} inputs If present, effect will only activate if the
- * values in the list change (using `===`).
+ * @param callback Callback function.
+ * @param inputs If present, the callback will only be updated if the
+ * values in the list change (using `===`).
+ *
+ * @return The callback function.
*/
function useCallback(callback, inputs) {
- hooks_module_x(withScope(callback), inputs);
+ return hooks_module_x(withScope(callback), inputs);
}
/**
@@ -820,22 +889,30 @@ function useCallback(callback, inputs) {
* available so functions like `getElement()` and `getContext()` can be used
* inside the passed factory function.
*
- * @param {Function} factory Imperative function that can return a cleanup
- * function.
- * @param {any[]} inputs If present, effect will only activate if the
- * values in the list change (using `===`).
+ * @param factory Factory function that returns that value for memoization.
+ * @param inputs If present, the factory will only be run to recompute if
+ * the values in the list change (using `===`).
+ *
+ * @return The memoized value.
*/
function useMemo(factory, inputs) {
- hooks_module_q(withScope(factory), inputs);
+ return hooks_module_q(withScope(factory), inputs);
}
-// For wrapperless hydration.
-// See https://gist.github.com/developit/f4c67a2ede71dc2fab7f357f39cff28c
+/**
+ * Creates a root fragment by replacing a node or an array of nodes in a parent element.
+ * For wrapperless hydration.
+ * See https://gist.github.com/developit/f4c67a2ede71dc2fab7f357f39cff28c
+ *
+ * @param parent The parent element where the nodes will be replaced.
+ * @param replaceNode The node or array of nodes to replace in the parent element.
+ * @return The created root fragment.
+ */
const createRootFragment = (parent, replaceNode) => {
replaceNode = [].concat(replaceNode);
- const s = replaceNode[replaceNode.length - 1].nextSibling;
- function insert(c, r) {
- parent.insertBefore(c, r || s);
+ const sibling = replaceNode[replaceNode.length - 1].nextSibling;
+ function insert(child, root) {
+ parent.insertBefore(child, root || sibling);
}
return parent.__k = {
nodeType: 1,
@@ -850,21 +927,49 @@ const createRootFragment = (parent, replaceNode) => {
};
};
-;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/utils/kebab-to-camelcase.js
/**
* Transforms a kebab-case string to camelCase.
*
- * @param {string} str The kebab-case string to transform to camelCase.
- * @return {string} The transformed camelCase string.
+ * @param str The kebab-case string to transform to camelCase.
+ * @return The transformed camelCase string.
*/
function kebabToCamelCase(str) {
- return str.replace(/^-+|-+$/g, '').toLowerCase().replace(/-([a-z])/g, function (match, group1) {
+ return str.replace(/^-+|-+$/g, '').toLowerCase().replace(/-([a-z])/g, function (_match, group1) {
return group1.toUpperCase();
});
}
+const logged = new Set();
+
+/**
+ * Shows a warning with `message` if environment is not `production`.
+ *
+ * Based on the `@wordpress/warning` package.
+ *
+ * @param message Message to show in the warning.
+ */
+const warn = message => {
+ if (true) {
+ if (logged.has(message)) {
+ return;
+ }
+
+ // eslint-disable-next-line no-console
+ console.warn(message);
+
+ // Throwing an error and catching it immediately to improve debugging
+ // A consumer can use 'pause on caught exceptions'
+ try {
+ throw Error(message);
+ } catch (e) {
+ // Do nothing.
+ }
+ logged.add(message);
+ }
+};
;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/directives.js
-/* @jsx createElement */
+// eslint-disable-next-line eslint-comments/disable-enable-pair
+/* eslint-disable react-hooks/exhaustive-deps */
/**
* External dependencies
@@ -879,15 +984,14 @@ function kebabToCamelCase(str) {
-
-// Assigned objects should be ignore during proxification.
+// Assigned objects should be ignored during proxification.
const contextAssignedObjects = new WeakMap();
// Store the context proxy and fallback for each object in the context.
const contextObjectToProxy = new WeakMap();
const contextProxyToObject = new WeakMap();
const contextObjectToFallback = new WeakMap();
-const isPlainObject = item => item && typeof item === 'object' && item.constructor === Object;
+const isPlainObject = item => Boolean(item && typeof item === 'object' && item.constructor === Object);
const descriptor = Reflect.getOwnPropertyDescriptor;
/**
@@ -899,10 +1003,10 @@ const descriptor = Reflect.getOwnPropertyDescriptor;
* By default, all plain objects inside the context are wrapped, unless it is
* listed in the `ignore` option.
*
- * @param {Object} current Current context.
- * @param {Object} inherited Inherited context, used as fallback.
+ * @param current Current context.
+ * @param inherited Inherited context, used as fallback.
*
- * @return {Object} The wrapped context object.
+ * @return The wrapped context object.
*/
const proxifyContext = (current, inherited = {}) => {
// Update the fallback object reference when it changes.
@@ -976,8 +1080,8 @@ const proxifyContext = (current, inherited = {}) => {
/**
* Recursively update values within a deepSignal object.
*
- * @param {Object} target A deepSignal instance.
- * @param {Object} source Object with properties to update in `target`
+ * @param target A deepSignal instance.
+ * @param source Object with properties to update in `target`.
*/
const updateSignals = (target, source) => {
for (const k in source) {
@@ -992,10 +1096,10 @@ const updateSignals = (target, source) => {
/**
* Recursively clone the passed object.
*
- * @param {Object} source Source object.
- * @return {Object} Cloned object.
+ * @param source Source object.
+ * @return Cloned object.
*/
-const deepClone = source => {
+function deepClone(source) {
if (isPlainObject(source)) {
return Object.fromEntries(Object.entries(source).map(([key, value]) => [key, deepClone(value)]));
}
@@ -1003,7 +1107,7 @@ const deepClone = source => {
return source.map(i => deepClone(i));
}
return source;
-};
+}
const newRule = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g;
const ruleClean = /\/\*[^]*?\*\/| +/g;
const ruleNewline = /\n+/g;
@@ -1015,8 +1119,8 @@ const empty = ' ';
* Made by Cristian Bote (@cristianbote) for Goober.
* https://unpkg.com/browse/goober@2.1.13/src/core/astish.js
*
- * @param {string} val CSS string.
- * @return {Object} CSS object.
+ * @param val CSS string.
+ * @return CSS object.
*/
const cssStringToObject = val => {
const tree = [{}];
@@ -1038,27 +1142,61 @@ const cssStringToObject = val => {
* Creates a directive that adds an event listener to the global window or
* document object.
*
- * @param {string} type 'window' or 'document'
- * @return {void}
+ * @param type 'window' or 'document'
*/
-const getGlobalEventDirective = type => ({
- directives,
- evaluate
-}) => {
- directives[`on-${type}`].filter(({
- suffix
- }) => suffix !== 'default').forEach(entry => {
- useInit(() => {
- const cb = event => evaluate(entry, event);
- const globalVar = type === 'window' ? window : document;
- globalVar.addEventListener(entry.suffix, cb);
- return () => globalVar.removeEventListener(entry.suffix, cb);
- }, []);
- });
+const getGlobalEventDirective = type => {
+ return ({
+ directives,
+ evaluate
+ }) => {
+ directives[`on-${type}`].filter(({
+ suffix
+ }) => suffix !== 'default').forEach(entry => {
+ const eventName = entry.suffix.split('--', 1)[0];
+ useInit(() => {
+ const cb = event => evaluate(entry, event);
+ const globalVar = type === 'window' ? window : document;
+ globalVar.addEventListener(eventName, cb);
+ return () => globalVar.removeEventListener(eventName, cb);
+ });
+ });
+ };
+};
+
+/**
+ * Creates a directive that adds an async event listener to the global window or
+ * document object.
+ *
+ * @param type 'window' or 'document'
+ */
+const getGlobalAsyncEventDirective = type => {
+ return ({
+ directives,
+ evaluate
+ }) => {
+ directives[`on-async-${type}`].filter(({
+ suffix
+ }) => suffix !== 'default').forEach(entry => {
+ const eventName = entry.suffix.split('--', 1)[0];
+ useInit(() => {
+ const cb = async event => {
+ await splitTask();
+ evaluate(entry, event);
+ };
+ const globalVar = type === 'window' ? window : document;
+ globalVar.addEventListener(eventName, cb, {
+ passive: true
+ });
+ return () => globalVar.removeEventListener(eventName, cb);
+ });
+ });
+ };
};
/* harmony default export */ const directives = (() => {
// data-wp-context
- directive('context', ({
+ directive('context',
+ // @ts-ignore-next-line
+ ({
directives: {
context
},
@@ -1083,13 +1221,17 @@ const getGlobalEventDirective = type => ({
namespace,
value
} = defaultEntry;
+ // Check that the value is a JSON object. Send a console warning if not.
+ if (!isPlainObject(value)) {
+ warn(`The value of data-wp-context in "${namespace}" store must be a valid stringified JSON object.`);
+ }
updateSignals(currentValue.current, {
[namespace]: deepClone(value)
});
}
return proxifyContext(currentValue.current, inheritedValue);
}, [defaultEntry, inheritedValue]);
- return g(Provider, {
+ return _(Provider, {
value: contextStack
}, children);
}, {
@@ -1134,12 +1276,50 @@ const getGlobalEventDirective = type => ({
suffix
}) => suffix !== 'default').forEach(entry => {
const event = entry.suffix.split('--')[0];
- if (!events.has(event)) events.set(event, new Set());
+ if (!events.has(event)) {
+ events.set(event, new Set());
+ }
events.get(event).add(entry);
});
events.forEach((entries, eventType) => {
+ const existingHandler = element.props[`on${eventType}`];
element.props[`on${eventType}`] = event => {
entries.forEach(entry => {
+ if (existingHandler) {
+ existingHandler(event);
+ }
+ evaluate(entry, event);
+ });
+ };
+ });
+ });
+
+ // data-wp-on-async--[event]
+ directive('on-async', ({
+ directives: {
+ 'on-async': onAsync
+ },
+ element,
+ evaluate
+ }) => {
+ const events = new Map();
+ onAsync.filter(({
+ suffix
+ }) => suffix !== 'default').forEach(entry => {
+ const event = entry.suffix.split('--')[0];
+ if (!events.has(event)) {
+ events.set(event, new Set());
+ }
+ events.get(event).add(entry);
+ });
+ events.forEach((entries, eventType) => {
+ const existingHandler = element.props[`on${eventType}`];
+ element.props[`on${eventType}`] = event => {
+ if (existingHandler) {
+ existingHandler(event);
+ }
+ entries.forEach(async entry => {
+ await splitTask();
evaluate(entry, event);
});
};
@@ -1151,6 +1331,11 @@ const getGlobalEventDirective = type => ({
// data-wp-on-document--[event]
directive('on-document', getGlobalEventDirective('document'));
+ // data-wp-on-async-window--[event]
+ directive('on-async-window', getGlobalAsyncEventDirective('window'));
+ // data-wp-on-async-document--[event]
+ directive('on-async-document', getGlobalAsyncEventDirective('document'));
+
// data-wp-class--[classname]
directive('class', ({
directives: {
@@ -1166,7 +1351,11 @@ const getGlobalEventDirective = type => ({
const result = evaluate(entry);
const currentClass = element.props.class || '';
const classFinder = new RegExp(`(^|\\s)${className}(\\s|$)`, 'g');
- if (!result) element.props.class = currentClass.replace(classFinder, ' ').trim();else if (!classFinder.test(currentClass)) element.props.class = currentClass ? `${currentClass} ${className}` : className;
+ if (!result) {
+ element.props.class = currentClass.replace(classFinder, ' ').trim();
+ } else if (!classFinder.test(currentClass)) {
+ element.props.class = currentClass ? `${currentClass} ${className}` : className;
+ }
useInit(() => {
/*
* This seems necessary because Preact doesn't change the class
@@ -1196,8 +1385,14 @@ const getGlobalEventDirective = type => ({
const styleProp = entry.suffix;
const result = evaluate(entry);
element.props.style = element.props.style || {};
- if (typeof element.props.style === 'string') element.props.style = cssStringToObject(element.props.style);
- if (!result) delete element.props.style[styleProp];else element.props.style[styleProp] = result;
+ if (typeof element.props.style === 'string') {
+ element.props.style = cssStringToObject(element.props.style);
+ }
+ if (!result) {
+ delete element.props.style[styleProp];
+ } else {
+ element.props.style[styleProp] = result;
+ }
useInit(() => {
/*
* This seems necessary because Preact doesn't change the styles on
@@ -1242,7 +1437,9 @@ const getGlobalEventDirective = type => ({
* logic: https://github.com/preactjs/preact/blob/ea49f7a0f9d1ff2c98c0bdd66aa0cbc583055246/src/diff/props.js#L110-L129
*/
if (attribute === 'style') {
- if (typeof result === 'string') el.style.cssText = result;
+ if (typeof result === 'string') {
+ el.style.cssText = result;
+ }
return;
} else if (attribute !== 'width' && attribute !== 'height' && attribute !== 'href' && attribute !== 'list' && attribute !== 'form' &&
/*
@@ -1289,7 +1486,7 @@ const getGlobalEventDirective = type => ({
}) => {
// Preserve the initial inner HTML.
const cached = hooks_module_q(() => innerHTML, []);
- return g(Type, {
+ return _(Type, {
dangerouslySetInnerHTML: {
__html: cached
},
@@ -1308,6 +1505,10 @@ const getGlobalEventDirective = type => ({
const entry = text.find(({
suffix
}) => suffix === 'default');
+ if (!entry) {
+ element.props.children = null;
+ return;
+ }
try {
const result = evaluate(entry);
element.props.children = typeof result === 'object' ? null : result.toString();
@@ -1336,7 +1537,9 @@ const getGlobalEventDirective = type => ({
element,
evaluate
}) => {
- if (element.type !== 'template') return;
+ if (element.type !== 'template') {
+ return;
+ }
const {
Provider
} = inheritedContext;
@@ -1363,15 +1566,17 @@ const getGlobalEventDirective = type => ({
const key = eachKey ? getEvaluate({
scope
})(eachKey[0]) : item;
- return g(Provider, {
+ return _(Provider, {
value: mergedContext,
- key: key
+ key
}, element.props.content);
});
}, {
priority: 20
});
- directive('each-child', () => null);
+ directive('each-child', () => null, {
+ priority: 1
+ });
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/constants.js
@@ -1386,6 +1591,7 @@ const directivePrefix = 'wp';
* Internal dependencies
*/
+
const ignoreAttr = `data-${directivePrefix}-ignore`;
const islandAttr = `data-${directivePrefix}-interactive`;
const fullPrefix = `data-${directivePrefix}-`;
@@ -1394,6 +1600,7 @@ const currentNamespace = () => {
var _namespaces;
return (_namespaces = namespaces[namespaces.length - 1]) !== null && _namespaces !== void 0 ? _namespaces : null;
};
+const vdom_isObject = item => Boolean(item && typeof item === 'object' && item.constructor === Object);
// Regular expression for directive parsing.
const directiveParser = new RegExp(`^data-${directivePrefix}-` +
@@ -1412,76 +1619,104 @@ const directiveParser = new RegExp(`^data-${directivePrefix}-` +
// the reference, separated by `::`, like `some-namespace::state.somePath`.
// Namespaces can contain any alphanumeric characters, hyphens, underscores or
// forward slashes. References don't have any restrictions.
-const nsPathRegExp = /^([\w-_\/]+)::(.+)$/;
+const nsPathRegExp = /^([\w_\/-]+)::(.+)$/;
const hydratedIslands = new WeakSet();
/**
* Recursive function that transforms a DOM tree into vDOM.
*
- * @param {Node} root The root element or node to start traversing on.
- * @return {import('preact').VNode[]} The resulting vDOM tree.
+ * @param root The root element or node to start traversing on.
+ * @return The resulting vDOM tree.
*/
function toVdom(root) {
- const treeWalker = document.createTreeWalker(root, 205 // ELEMENT + TEXT + COMMENT + CDATA_SECTION + PROCESSING_INSTRUCTION
+ const treeWalker = document.createTreeWalker(root, 205 // TEXT + CDATA_SECTION + COMMENT + PROCESSING_INSTRUCTION + ELEMENT
);
function walk(node) {
const {
- attributes,
- nodeType,
- localName
+ nodeType
} = node;
- if (nodeType === 3) return [node.data];
+
+ // TEXT_NODE (3)
+ if (nodeType === 3) {
+ return [node.data];
+ }
+
+ // CDATA_SECTION_NODE (4)
if (nodeType === 4) {
+ var _nodeValue;
const next = treeWalker.nextSibling();
- node.replaceWith(new window.Text(node.nodeValue));
+ node.replaceWith(new window.Text((_nodeValue = node.nodeValue) !== null && _nodeValue !== void 0 ? _nodeValue : ''));
return [node.nodeValue, next];
}
+
+ // COMMENT_NODE (8) || PROCESSING_INSTRUCTION_NODE (7)
if (nodeType === 8 || nodeType === 7) {
const next = treeWalker.nextSibling();
node.remove();
return [null, next];
}
+ const elementNode = node;
+ const {
+ attributes
+ } = elementNode;
+ const localName = elementNode.localName;
const props = {};
const children = [];
const directives = [];
let ignore = false;
let island = false;
for (let i = 0; i < attributes.length; i++) {
- const n = attributes[i].name;
- if (n[fullPrefix.length] && n.slice(0, fullPrefix.length) === fullPrefix) {
- if (n === ignoreAttr) {
+ const attributeName = attributes[i].name;
+ const attributeValue = attributes[i].value;
+ if (attributeName[fullPrefix.length] && attributeName.slice(0, fullPrefix.length) === fullPrefix) {
+ if (attributeName === ignoreAttr) {
ignore = true;
} else {
- var _nsPathRegExp$exec$sl;
- let [ns, value] = (_nsPathRegExp$exec$sl = nsPathRegExp.exec(attributes[i].value)?.slice(1)) !== null && _nsPathRegExp$exec$sl !== void 0 ? _nsPathRegExp$exec$sl : [null, attributes[i].value];
+ var _regexResult$, _regexResult$2;
+ const regexResult = nsPathRegExp.exec(attributeValue);
+ const namespace = (_regexResult$ = regexResult?.[1]) !== null && _regexResult$ !== void 0 ? _regexResult$ : null;
+ let value = (_regexResult$2 = regexResult?.[2]) !== null && _regexResult$2 !== void 0 ? _regexResult$2 : attributeValue;
try {
- value = JSON.parse(value);
- } catch (e) {}
- if (n === islandAttr) {
- var _value$namespace;
+ const parsedValue = JSON.parse(value);
+ value = vdom_isObject(parsedValue) ? parsedValue : value;
+ } catch {}
+ if (attributeName === islandAttr) {
island = true;
- namespaces.push(typeof value === 'string' ? value : (_value$namespace = value?.namespace) !== null && _value$namespace !== void 0 ? _value$namespace : null);
+ const islandNamespace =
+ // eslint-disable-next-line no-nested-ternary
+ typeof value === 'string' ? value : typeof value?.namespace === 'string' ? value.namespace : null;
+ namespaces.push(islandNamespace);
} else {
- directives.push([n, ns, value]);
+ directives.push([attributeName, namespace, value]);
}
}
- } else if (n === 'ref') {
+ } else if (attributeName === 'ref') {
continue;
}
- props[n] = attributes[i].value;
+ props[attributeName] = attributeValue;
+ }
+ if (ignore && !island) {
+ return [_(localName, {
+ ...props,
+ innerHTML: elementNode.innerHTML,
+ __directives: {
+ ignore: true
+ }
+ })];
+ }
+ if (island) {
+ hydratedIslands.add(elementNode);
}
- if (ignore && !island) return [g(localName, {
- ...props,
- innerHTML: node.innerHTML,
- __directives: {
- ignore: true
- }
- })];
- if (island) hydratedIslands.add(node);
if (directives.length) {
props.__directives = directives.reduce((obj, [name, ns, value]) => {
- const [, prefix, suffix = 'default'] = directiveParser.exec(name);
- if (!obj[prefix]) obj[prefix] = [];
+ const directiveMatch = directiveParser.exec(name);
+ if (directiveMatch === null) {
+ warn(`Found malformed directive name: ${name}.`);
+ return obj;
+ }
+ const prefix = directiveMatch[1] || '';
+ const suffix = directiveMatch[2] || 'default';
+ obj[prefix] = obj[prefix] || [];
obj[prefix].push({
namespace: ns !== null && ns !== void 0 ? ns : currentNamespace(),
value,
@@ -1490,14 +1725,18 @@ function toVdom(root) {
return obj;
}, {});
}
+
+ // @ts-expect-error Fixed in upcoming preact release https://github.com/preactjs/preact/pull/4334
if (localName === 'template') {
- props.content = [...node.content.childNodes].map(childNode => toVdom(childNode));
+ props.content = [...elementNode.content.childNodes].map(childNode => toVdom(childNode));
} else {
let child = treeWalker.firstChild();
if (child) {
while (child) {
const [vnode, nextChild] = walk(child);
- if (vnode) children.push(vnode);
+ if (vnode) {
+ children.push(vnode);
+ }
child = nextChild || treeWalker.nextSibling();
}
treeWalker.parentNode();
@@ -1505,8 +1744,10 @@ function toVdom(root) {
}
// Restore previous namespace.
- if (island) namespaces.pop();
- return [g(localName, props, children)];
+ if (island) {
+ namespaces.pop();
+ }
+ return [_(localName, props, children)];
}
return walk(treeWalker.currentNode);
}
@@ -1526,17 +1767,14 @@ function toVdom(root) {
// Keep the same root fragment for each interactive region node.
const regionRootFragments = new WeakMap();
const getRegionRootFragment = region => {
+ if (!region.parentElement) {
+ throw Error('The passed region should be an element with a parent.');
+ }
if (!regionRootFragments.has(region)) {
regionRootFragments.set(region, createRootFragment(region.parentElement, region));
}
return regionRootFragments.get(region);
};
-function yieldToMain() {
- return new Promise(resolve => {
- // TODO: Use scheduler.yield() when available.
- setTimeout(resolve, 0);
- });
-}
// Initial vDOM regions associated with its DOM element.
const initialVdom = new WeakMap();
@@ -1546,11 +1784,11 @@ const init = async () => {
const nodes = document.querySelectorAll(`[data-${directivePrefix}-interactive]`);
for (const node of nodes) {
if (!hydratedIslands.has(node)) {
- await yieldToMain();
+ await splitTask();
const fragment = getRegionRootFragment(node);
const vdom = toVdom(node);
initialVdom.set(node, vdom);
- await yieldToMain();
+ await splitTask();
D(vdom, fragment);
}
}
@@ -1587,7 +1825,7 @@ const privateApis = lock => {
toVdom: toVdom,
directive: directive,
getNamespace: getNamespace,
- h: g,
+ h: _,
cloneElement: E,
render: B,
deepSignal: deepsignal_module_g,
@@ -1603,10 +1841,18 @@ document.addEventListener('DOMContentLoaded', async () => {
await init();
});
+;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/debug.js
+/**
+ * External dependencies
+ */
+
+
+
var __webpack_exports__getConfig = __webpack_exports__.zj;
var __webpack_exports__getContext = __webpack_exports__.SD;
var __webpack_exports__getElement = __webpack_exports__.V6;
var __webpack_exports__privateApis = __webpack_exports__.jb;
+var __webpack_exports__splitTask = __webpack_exports__.yT;
var __webpack_exports__store = __webpack_exports__.M_;
var __webpack_exports__useCallback = __webpack_exports__.hb;
var __webpack_exports__useEffect = __webpack_exports__.vJ;
@@ -1617,4 +1863,4 @@ var __webpack_exports__useRef = __webpack_exports__.li;
var __webpack_exports__useState = __webpack_exports__.J0;
var __webpack_exports__useWatch = __webpack_exports__.FH;
var __webpack_exports__withScope = __webpack_exports__.v4;
-export { __webpack_exports__getConfig as getConfig, __webpack_exports__getContext as getContext, __webpack_exports__getElement as getElement, __webpack_exports__privateApis as privateApis, __webpack_exports__store as store, __webpack_exports__useCallback as useCallback, __webpack_exports__useEffect as useEffect, __webpack_exports__useInit as useInit, __webpack_exports__useLayoutEffect as useLayoutEffect, __webpack_exports__useMemo as useMemo, __webpack_exports__useRef as useRef, __webpack_exports__useState as useState, __webpack_exports__useWatch as useWatch, __webpack_exports__withScope as withScope };
+export { __webpack_exports__getConfig as getConfig, __webpack_exports__getContext as getContext, __webpack_exports__getElement as getElement, __webpack_exports__privateApis as privateApis, __webpack_exports__splitTask as splitTask, __webpack_exports__store as store, __webpack_exports__useCallback as useCallback, __webpack_exports__useEffect as useEffect, __webpack_exports__useInit as useInit, __webpack_exports__useLayoutEffect as useLayoutEffect, __webpack_exports__useMemo as useMemo, __webpack_exports__useRef as useRef, __webpack_exports__useState as useState, __webpack_exports__useWatch as useWatch, __webpack_exports__withScope as withScope };
diff --git a/wp-includes/js/dist/interactivity.min.js b/wp-includes/js/dist/interactivity.min.js
index aee0f03..3406de1 100644
--- a/wp-includes/js/dist/interactivity.min.js
+++ b/wp-includes/js/dist/interactivity.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};t.d(e,{zj:()=>we,SD:()=>He,V6:()=>Te,jb:()=>On,M_:()=>ke,hb:()=>tn,vJ:()=>Ye,ip:()=>Xe,Nf:()=>Ze,Kr:()=>en,li:()=>ut,J0:()=>it,FH:()=>Qe,v4:()=>Ke});var n,r,o,i,s,_,u,c,l,a,f,p,h={},d=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function g(t,e){for(var n in e)t[n]=e[n];return t}function m(t){var e=t.parentNode;e&&e.removeChild(t)}function w(t,e,r){var o,i,s,_={};for(s in e)"key"==s?o=e[s]:"ref"==s?i=e[s]:_[s]=e[s];if(arguments.length>2&&(_.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===_[s]&&(_[s]=t.defaultProps[s]);return b(t,_,o,i,null)}function b(t,e,n,i,s){var _={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==s?++o:s,__i:-1,__u:0};return null==s&&null!=r.vnode&&r.vnode(_),_}function k(t){return t.children}function x(t,e){this.props=t,this.context=e}function S(t,e){if(null==e)return t.__?S(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?S(t):null}function E(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return E(t)}}function P(t){(!t.__d&&(t.__d=!0)&&s.push(t)&&!C.__r++||_!==r.debounceRendering)&&((_=r.debounceRendering)||u)(C)}function C(){var t,e,n,o,i,_,u,l;for(s.sort(c);t=s.shift();)t.__d&&(e=s.length,o=void 0,_=(i=(n=t).__v).__e,u=[],l=[],n.__P&&((o=g({},i)).__v=i.__v+1,r.vnode&&r.vnode(o),W(n.__P,o,i,n.__n,void 0!==n.__P.ownerSVGElement,32&i.__u?[_]:null,u,null==_?S(i):_,!!(32&i.__u),l),o.__v=i.__v,o.__.__k[o.__i]=o,U(u,o,l),o.__e!=_&&E(o)),s.length>e&&s.sort(c));C.__r=0}function $(t,e,n,r,o,i,s,_,u,c,l){var a,f,p,v,y,g=r&&r.__k||d,m=e.length;for(n.__d=u,M(n,e,g),u=n.__d,a=0;a<m;a++)null!=(p=n.__k[a])&&"boolean"!=typeof p&&"function"!=typeof p&&(f=-1===p.__i?h:g[p.__i]||h,p.__i=a,W(t,p,f,o,i,s,_,u,c,l),v=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&F(f.ref,null,p),l.push(p.ref,p.__c||v,p)),null==y&&null!=v&&(y=v),65536&p.__u||f.__k===p.__k?(u&&!u.isConnected&&(u=S(f)),u=O(p,u,t)):"function"==typeof p.type&&void 0!==p.__d?u=p.__d:v&&(u=v.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=u,n.__e=y}function M(t,e,n){var r,o,i,s,_,u=e.length,c=n.length,l=c,a=0;for(t.__k=[],r=0;r<u;r++)s=r+a,null!=(o=t.__k[r]=null==(o=e[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?b(null,o,null,null,null):y(o)?b(k,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?b(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=t,o.__b=t.__b+1,_=N(o,n,s,l),o.__i=_,i=null,-1!==_&&(l--,(i=n[_])&&(i.__u|=131072)),null==i||null===i.__v?(-1==_&&a--,"function"!=typeof o.type&&(o.__u|=65536)):_!==s&&(_===s+1?a++:_>s?l>u-s?a+=_-s:a--:_<s?_==s-1&&(a=_-s):a=0,_!==r+a&&(o.__u|=65536))):(i=n[s])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=S(i)),L(i,i,!1),n[s]=null,l--);if(l)for(r=0;r<c;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=S(i)),L(i,i))}function O(t,e,n){var r,o;if("function"==typeof t.type){for(r=t.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=t,e=O(r[o],e,n));return e}t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function N(t,e,n,r){var o=t.key,i=t.type,s=n-1,_=n+1,u=e[n];if(null===u||u&&o==u.key&&i===u.type&&0==(131072&u.__u))return n;if(r>(null!=u&&0==(131072&u.__u)?1:0))for(;s>=0||_<e.length;){if(s>=0){if((u=e[s])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return s;s--}if(_<e.length){if((u=e[_])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return _;_++}}return-1}function j(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||v.test(e)?n:n+"px"}function H(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||j(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||j(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||"onFocusOut"===e||"onFocusIn"===e?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r?n.u=r.u:(n.u=l,t.addEventListener(e,i?f:a,i)):t.removeEventListener(e,i?f:a,i);else{if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function T(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=l++;else if(e.t<n.u)return;return n(r.event?r.event(e):e)}}}function W(t,e,n,o,i,s,_,u,c,l){var a,f,p,h,d,v,m,w,b,S,E,P,C,M,O,N=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(c=!!(32&n.__u),s=[u=e.__e=n.__e]),(a=r.__b)&&a(e);t:if("function"==typeof N)try{if(w=e.props,b=(a=N.contextType)&&o[a.__c],S=a?b?b.props.value:a.__:o,n.__c?m=(f=e.__c=n.__c).__=f.__E:("prototype"in N&&N.prototype.render?e.__c=f=new N(w,S):(e.__c=f=new x(w,S),f.constructor=N,f.render=D),b&&b.sub(f),f.props=w,f.state||(f.state={}),f.context=S,f.__n=o,p=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=N.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=g({},f.__s)),g(f.__s,N.getDerivedStateFromProps(w,f.__s))),h=f.props,d=f.state,f.__v=e,p)null==N.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==N.getDerivedStateFromProps&&w!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,S),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,S)||e.__v===n.__v)){for(e.__v!==n.__v&&(f.props=w,f.state=f.__s,f.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),E=0;E<f._sb.length;E++)f.__h.push(f._sb[E]);f._sb=[],f.__h.length&&_.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(w,f.__s,S),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,d,v)}))}if(f.context=S,f.props=w,f.__P=t,f.__e=!1,P=r.__r,C=0,"prototype"in N&&N.prototype.render){for(f.state=f.__s,f.__d=!1,P&&P(e),a=f.render(f.props,f.state,f.context),M=0;M<f._sb.length;M++)f.__h.push(f._sb[M]);f._sb=[]}else do{f.__d=!1,P&&P(e),a=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++C<25);f.state=f.__s,null!=f.getChildContext&&(o=g(g({},o),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(h,d)),$(t,y(O=null!=a&&a.type===k&&null==a.key?a.props.children:a)?O:[O],e,n,o,i,s,_,u,c,l),f.base=e.__e,e.__u&=-161,f.__h.length&&_.push(f),m&&(f.__E=f.__=null)}catch(t){e.__v=null,c||null!=s?(e.__e=u,e.__u|=c?160:32,s[s.indexOf(u)]=null):(e.__e=n.__e,e.__k=n.__k),r.__e(t,e,n)}else null==s&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=A(n.__e,e,n,o,i,s,_,c,l);(a=r.diffed)&&a(e)}function U(t,e,n){e.__d=void 0;for(var o=0;o<n.length;o++)F(n[o],n[++o],n[++o]);r.__c&&r.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){r.__e(t,e.__v)}}))}function A(t,e,r,o,i,s,_,u,c){var l,a,f,p,d,v,g,w=r.props,b=e.props,k=e.type;if("svg"===k&&(i=!0),null!=s)for(l=0;l<s.length;l++)if((d=s[l])&&"setAttribute"in d==!!k&&(k?d.localName===k:3===d.nodeType)){t=d,s[l]=null;break}if(null==t){if(null===k)return document.createTextNode(b);t=i?document.createElementNS("http://www.w3.org/2000/svg",k):document.createElement(k,b.is&&b),s=null,u=!1}if(null===k)w===b||u&&t.data===b||(t.data=b);else{if(s=s&&n.call(t.childNodes),w=r.props||h,!u&&null!=s)for(w={},l=0;l<t.attributes.length;l++)w[(d=t.attributes[l]).name]=d.value;for(l in w)if(d=w[l],"children"==l);else if("dangerouslySetInnerHTML"==l)f=d;else if("key"!==l&&!(l in b)){if("value"==l&&"defaultValue"in b||"checked"==l&&"defaultChecked"in b)continue;H(t,l,null,d,i)}for(l in b)d=b[l],"children"==l?p=d:"dangerouslySetInnerHTML"==l?a=d:"value"==l?v=d:"checked"==l?g=d:"key"===l||u&&"function"!=typeof d||w[l]===d||H(t,l,d,w[l],i);if(a)u||f&&(a.__html===f.__html||a.__html===t.innerHTML)||(t.innerHTML=a.__html),e.__k=[];else if(f&&(t.innerHTML=""),$(t,y(p)?p:[p],e,r,o,i&&"foreignObject"!==k,s,_,s?s[0]:r.__k&&S(r,0),u,c),null!=s)for(l=s.length;l--;)null!=s[l]&&m(s[l]);u||(l="value",void 0!==v&&(v!==t[l]||"progress"===k&&!v||"option"===k&&v!==w[l])&&H(t,l,v,w[l],!1),l="checked",void 0!==g&&g!==t[l]&&H(t,l,g,w[l],!1))}return t}function F(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){r.__e(t,n)}}function L(t,e,n){var o,i;if(r.unmount&&r.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||F(o,null,e)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){r.__e(t,e)}o.base=o.__P=null}if(o=t.__k)for(i=0;i<o.length;i++)o[i]&&L(o[i],e,n||"function"!=typeof t.type);n||null==t.__e||m(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function D(t,e,n){return this.constructor(t,n)}function R(t,e,o){var i,s,_,u;r.__&&r.__(t,e),s=(i="function"==typeof o)?null:o&&o.__k||e.__k,_=[],u=[],W(e,t=(!i&&o||e).__k=w(k,null,[t]),s||h,h,void 0!==e.ownerSVGElement,!i&&o?[o]:s?null:e.firstChild?n.call(e.childNodes):null,_,!i&&o?o:s?s.__e:e.firstChild,i,u),U(_,t,u)}function V(t,e){R(t,e,V)}function I(t,e,r){var o,i,s,_,u=g({},t.props);for(s in t.type&&t.type.defaultProps&&(_=t.type.defaultProps),e)"key"==s?o=e[s]:"ref"==s?i=e[s]:u[s]=void 0===e[s]&&void 0!==_?_[s]:e[s];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),b(t.type,u,o||t.key,i||t.ref,null)}n=d.slice,r={__e:function(t,e,n,r){for(var o,i,s;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),s=o.__d),s)return o.__E=o}catch(e){t=e}throw t}},o=0,i=function(t){return null!=t&&null==t.constructor},x.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof t&&(t=t(g({},n),this.props)),t&&g(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),P(this))},x.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),P(this))},x.prototype.render=k,s=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(t,e){return t.__v.__b-e.__v.__b},C.__r=0,l=0,a=T(!1),f=T(!0),p=0;var z,q,J,B,G=0,K=[],Q=[],X=r,Y=X.__b,Z=X.__r,tt=X.diffed,et=X.__c,nt=X.unmount,rt=X.__;function ot(t,e){X.__h&&X.__h(q,t,G||e),G=0;var n=q.__H||(q.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:Q}),n.__[t]}function it(t){return G=1,function(t,e,n){var r=ot(z++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):gt(void 0,e),function(t){var e=r.__N?r.__N[0]:r.__[0],n=r.t(e,t);e!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=q,!q.u)){var o=function(t,e,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(t){return!!t.__c}));if(o.every((function(t){return!t.__N})))return!i||i.call(this,t,e,n);var s=!1;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(s=!0)}})),!(!s&&r.__c.props===t)&&(!i||i.call(this,t,e,n))};q.u=!0;var i=q.shouldComponentUpdate,s=q.componentWillUpdate;q.componentWillUpdate=function(t,e,n){if(this.__e){var r=i;i=void 0,o(t,e,n),i=r}s&&s.call(this,t,e,n)},q.shouldComponentUpdate=o}return r.__N||r.__}(gt,t)}function st(t,e){var n=ot(z++,3);!X.__s&&yt(n.__H,e)&&(n.__=t,n.i=e,q.__H.__h.push(n))}function _t(t,e){var n=ot(z++,4);!X.__s&&yt(n.__H,e)&&(n.__=t,n.i=e,q.__h.push(n))}function ut(t){return G=5,ct((function(){return{current:t}}),[])}function ct(t,e){var n=ot(z++,7);return yt(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function lt(t,e){return G=8,ct((function(){return t}),e)}function at(t){var e=q.context[t.__c],n=ot(z++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(q)),e.props.value):t.__}function ft(){for(var t;t=K.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(dt),t.__H.__h.forEach(vt),t.__H.__h=[]}catch(e){t.__H.__h=[],X.__e(e,t.__v)}}X.__b=function(t){q=null,Y&&Y(t)},X.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),rt&&rt(t,e)},X.__r=function(t){Z&&Z(t),z=0;var e=(q=t.__c).__H;e&&(J===q?(e.__h=[],q.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=Q,t.__N=t.i=void 0}))):(e.__h.forEach(dt),e.__h.forEach(vt),e.__h=[],z=0)),J=q},X.diffed=function(t){tt&&tt(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==K.push(e)&&B===X.requestAnimationFrame||((B=X.requestAnimationFrame)||ht)(ft)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==Q&&(t.__=t.__V),t.i=void 0,t.__V=Q}))),J=q=null},X.__c=function(t,e){e.some((function(t){try{t.__h.forEach(dt),t.__h=t.__h.filter((function(t){return!t.__||vt(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],X.__e(n,t.__v)}})),et&&et(t,e)},X.unmount=function(t){nt&&nt(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{dt(t)}catch(t){e=t}})),n.__H=void 0,e&&X.__e(e,n.__v))};var pt="function"==typeof requestAnimationFrame;function ht(t){var e,n=function(){clearTimeout(r),pt&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);pt&&(e=requestAnimationFrame(n))}function dt(t){var e=q,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),q=e}function vt(t){var e=q;t.__c=t.__(),q=e}function yt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function gt(t,e){return"function"==typeof e?e(t):e}var mt=Symbol.for("preact-signals");function wt(){if(Et>1)Et--;else{for(var t,e=!1;void 0!==St;){var n=St;for(St=void 0,Pt++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Nt(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=r}}if(Pt=0,Et--,e)throw t}}function bt(t){if(Et>0)return t();Et++;try{return t()}finally{wt()}}var kt=void 0;var xt,St=void 0,Et=0,Pt=0,Ct=0;function $t(t){if(void 0!==kt){var e=t.n;if(void 0===e||e.t!==kt)return e={i:0,S:t,p:kt.s,n:void 0,t:kt,e:void 0,x:void 0,r:e},void 0!==kt.s&&(kt.s.n=e),kt.s=e,t.n=e,32&kt.f&&t.S(e),e;if(-1===e.i)return e.i=0,void 0!==e.n&&(e.n.p=e.p,void 0!==e.p&&(e.p.n=e.n),e.p=kt.s,e.n=void 0,kt.s.n=e,kt.s=e),e}}function Mt(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}function Ot(t){return new Mt(t)}function Nt(t){for(var e=t.s;void 0!==e;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function jt(t){for(var e=t.s;void 0!==e;e=e.n){var n=e.S.n;if(void 0!==n&&(e.r=n),e.S.n=e,e.i=-1,void 0===e.n){t.s=e;break}}}function Ht(t){for(var e=t.s,n=void 0;void 0!==e;){var r=e.p;-1===e.i?(e.S.U(e),void 0!==r&&(r.n=e.n),void 0!==e.n&&(e.n.p=r)):n=e,e.S.n=e.r,void 0!==e.r&&(e.r=void 0),e=r}t.s=n}function Tt(t){Mt.call(this,void 0),this.x=t,this.s=void 0,this.g=Ct-1,this.f=4}function Wt(t){return new Tt(t)}function Ut(t){var e=t.u;if(t.u=void 0,"function"==typeof e){Et++;var n=kt;kt=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,At(t),e}finally{kt=n,wt()}}}function At(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Ut(t)}function Ft(t){if(kt!==this)throw new Error("Out-of-order effect");Ht(this),kt=t,this.f&=-2,8&this.f&&At(this),wt()}function Lt(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Dt(t){var e=new Lt(t);try{e.c()}catch(t){throw e.d(),t}return e.d.bind(e)}function Rt(t,e){r[t]=e.bind(null,r[t]||function(){})}function Vt(t){xt&&xt(),xt=t&&t.S()}function It(t){var e=this,n=t.data,r=function(t){return ct((function(){return Ot(t)}),[])}(n);r.value=n;var o=ct((function(){for(var t=e.__v;t=t.__;)if(t.__c){t.__c.__$f|=4;break}return e.__$u.c=function(){var t;i(o.peek())||3!==(null==(t=e.base)?void 0:t.nodeType)?(e.__$f|=1,e.setState({})):e.base.data=o.peek()},Wt((function(){var t=r.value.value;return 0===t?0:!0===t?"":t||""}))}),[]);return o.value}function zt(t,e,n,r){var o=e in t&&void 0===t.ownerSVGElement,i=Ot(n);return{o:function(t,e){i.value=t,r=e},d:Dt((function(){var n=i.value.value;r[e]!==n&&(r[e]=n,o?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))}))}}Mt.prototype.brand=mt,Mt.prototype.h=function(){return!0},Mt.prototype.S=function(t){this.t!==t&&void 0===t.e&&(t.x=this.t,void 0!==this.t&&(this.t.e=t),this.t=t)},Mt.prototype.U=function(t){if(void 0!==this.t){var e=t.e,n=t.x;void 0!==e&&(e.x=n,t.e=void 0),void 0!==n&&(n.e=e,t.x=void 0),t===this.t&&(this.t=n)}},Mt.prototype.subscribe=function(t){var e=this;return Dt((function(){var n=e.value,r=kt;kt=void 0;try{t(n)}finally{kt=r}}))},Mt.prototype.valueOf=function(){return this.value},Mt.prototype.toString=function(){return this.value+""},Mt.prototype.toJSON=function(){return this.value},Mt.prototype.peek=function(){var t=kt;kt=void 0;try{return this.value}finally{kt=t}},Object.defineProperty(Mt.prototype,"value",{get:function(){var t=$t(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(Pt>100)throw new Error("Cycle detected");this.v=t,this.i++,Ct++,Et++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{wt()}}}}),(Tt.prototype=new Mt).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Ct)return!0;if(this.g=Ct,this.f|=1,this.i>0&&!Nt(this))return this.f&=-2,!0;var t=kt;try{jt(this),kt=this;var e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return kt=t,Ht(this),this.f&=-2,!0},Tt.prototype.S=function(t){if(void 0===this.t){this.f|=36;for(var e=this.s;void 0!==e;e=e.n)e.S.S(e)}Mt.prototype.S.call(this,t)},Tt.prototype.U=function(t){if(void 0!==this.t&&(Mt.prototype.U.call(this,t),void 0===this.t)){this.f&=-33;for(var e=this.s;void 0!==e;e=e.n)e.S.U(e)}},Tt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},Object.defineProperty(Tt.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=$t(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),Lt.prototype.c=function(){var t=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var e=this.x();"function"==typeof e&&(this.u=e)}finally{t()}},Lt.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Ut(this),jt(this),Et++;var t=kt;return kt=this,Ft.bind(this,t)},Lt.prototype.N=function(){2&this.f||(this.f|=2,this.o=St,St=this)},Lt.prototype.d=function(){this.f|=8,1&this.f||At(this)},It.displayName="_st",Object.defineProperties(Mt.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:It},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Rt("__b",(function(t,e){if("string"==typeof e.type){var n,r=e.props;for(var o in r)if("children"!==o){var i=r[o];i instanceof Mt&&(n||(e.__np=n={}),n[o]=i,r[o]=i.peek())}}t(e)})),Rt("__r",(function(t,e){Vt();var n,r=e.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(t){var e;return Dt((function(){e=this})),e.c=function(){r.__$f|=1,r.setState({})},e}())),r,Vt(n),t(e)})),Rt("__e",(function(t,e,n,r){Vt(),void 0,t(e,n,r)})),Rt("diffed",(function(t,e){var n;if(Vt(),void 0,"string"==typeof e.type&&(n=e.__e)){var r=e.__np,o=e.props;if(r){var i=n.U;if(i)for(var s in i){var _=i[s];void 0===_||s in r||(_.d(),i[s]=void 0)}else n.U=i={};for(var u in r){var c=i[u],l=r[u];void 0===c?(c=zt(n,u,l,o),i[u]=c):c.o(l,o)}}}t(e)})),Rt("unmount",(function(t,e){if("string"==typeof e.type){var n=e.__e;if(n){var r=n.U;if(r)for(var o in n.U=void 0,r){var i=r[o];i&&i.d()}}}else{var s=e.__c;if(s){var _=s.__$u;_&&(s.__$u=void 0,_.d())}}t(e)})),Rt("__h",(function(t,e,n,r){(r<3||9===r)&&(e.__$f|=2),t(e,n,r)})),x.prototype.shouldComponentUpdate=function(t,e){var n=this.__$u;if(!(n&&void 0!==n.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var r in e)return!0;for(var o in t)if("__source"!==o&&t[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in t))return!0;return!1};var qt=new WeakMap,Jt=new WeakMap,Bt=new WeakMap,Gt=new WeakSet,Kt=new WeakMap,Qt=/^\$/,Xt=Object.getOwnPropertyDescriptor,Yt=!1,Zt=function(t){if(!ue(t))throw new Error("This object can't be observed.");return Jt.has(t)||Jt.set(t,ee(t,oe)),Jt.get(t)},te=function(t,e){Yt=!0;var n=t[e];try{Yt=!1}catch(t){}return n};var ee=function(t,e){var n=new Proxy(t,e);return Gt.add(n),n},ne=function(){throw new Error("Don't mutate the signals directly.")},re=function(t){return function(e,n,r){var o;if(Yt)return Reflect.get(e,n,r);var i=t||"$"===n[0];if(!t&&i&&Array.isArray(e)){if("$"===n)return Bt.has(e)||Bt.set(e,ee(e,ie)),Bt.get(e);i="$length"===n}qt.has(r)||qt.set(r,new Map);var s=qt.get(r),_=i?n.replace(Qt,""):n;if(s.has(_)||"function"!=typeof(null==(o=Xt(e,_))?void 0:o.get)){var u=Reflect.get(e,_,r);if(i&&"function"==typeof u)return;if("symbol"==typeof _&&se.has(_))return u;s.has(_)||(ue(u)&&(Jt.has(u)||Jt.set(u,ee(u,oe)),u=Jt.get(u)),s.set(_,Ot(u)))}else s.set(_,Wt((function(){return Reflect.get(e,_,r)})));return i?s.get(_):s.get(_).value}},oe={get:re(!1),set:function(t,e,n,r){var o;if("function"==typeof(null==(o=Xt(t,e))?void 0:o.set))return Reflect.set(t,e,n,r);qt.has(r)||qt.set(r,new Map);var i=qt.get(r);if("$"===e[0]){n instanceof Mt||ne();var s=e.replace(Qt,"");return i.set(s,n),Reflect.set(t,s,n.peek(),r)}var _=n;ue(n)&&(Jt.has(n)||Jt.set(n,ee(n,oe)),_=Jt.get(n));var u=!(e in t),c=Reflect.set(t,e,n,r);return i.has(e)?i.get(e).value=_:i.set(e,Ot(_)),u&&Kt.has(t)&&Kt.get(t).value++,Array.isArray(t)&&i.has("length")&&(i.get("length").value=t.length),c},deleteProperty:function(t,e){"$"===e[0]&&ne();var n=qt.get(Jt.get(t)),r=Reflect.deleteProperty(t,e);return n&&n.has(e)&&(n.get(e).value=void 0),Kt.has(t)&&Kt.get(t).value++,r},ownKeys:function(t){return Kt.has(t)||Kt.set(t,Ot(0)),Kt._=Kt.get(t).value,Reflect.ownKeys(t)}},ie={get:re(!0),set:ne,deleteProperty:ne},se=new Set(Object.getOwnPropertyNames(Symbol).map((function(t){return Symbol[t]})).filter((function(t){return"symbol"==typeof t}))),_e=new Set([Object,Array]),ue=function(t){return"object"==typeof t&&null!==t&&_e.has(t.constructor)&&!Gt.has(t)};const ce=t=>t&&"object"==typeof t&&t.constructor===Object,le=(t,e)=>{if(ce(t)&&ce(e))for(const n in e){const r=Object.getOwnPropertyDescriptor(e,n)?.get;if("function"==typeof r)Object.defineProperty(t,n,{get:r});else if(ce(e[n]))t[n]||(t[n]={}),le(t[n],e[n]);else try{t[n]=e[n]}catch(t){}}},ae=new Map,fe=new Map,pe=new Map,he=new Map,de=new WeakMap,ve=new WeakMap,ye=new WeakMap,ge=(t,e)=>{if(!de.has(t)){const n=new Proxy(t,me);de.set(t,n),ve.set(n,e)}return de.get(t)},me={get:(t,e,n)=>{const r=ve.get(n),o=Object.getOwnPropertyDescriptor(t,e)?.get;if(o){const e=We();if(e){const n=ye.get(e)||ye.set(e,new Map).get(e);return n.has(o)||n.set(o,Wt((()=>{Le(r),Ue(e);try{return o.call(t)}finally{Ae(),De()}}))),n.get(o).value}}const i=Reflect.get(t,e);if(void 0===i&&n===ae.get(r)){const n={};return Reflect.set(t,e,n),ge(n,r)}return"GeneratorFunction"===i?.constructor?.name?async(...t)=>{const e=We(),n=i(...t);let o,s;for(;;){Le(r),Ue(e);try{s=n.next(o)}finally{Ae(),De()}try{o=await s.value}catch(t){Le(r),Ue(e),n.throw(t)}finally{Ae(),De()}if(s.done)break}return o}:"function"==typeof i?(...t)=>{Le(r);try{return i(...t)}finally{De()}}:ce(i)?ge(i,r):i},set:(t,e,n)=>Reflect.set(t,e,n)},we=t=>he.get(t||Fe())||{},be="I acknowledge that using a private store means my plugin will inevitably break on the next store release.";function ke(t,{state:e={},...n}={},{lock:r=!1}={}){if(ae.has(t)){if(r===be||pe.has(t)){const e=pe.get(t);if(!(r===be||!0!==r&&r===e))throw e?Error("Cannot unlock a private store with an invalid lock code"):Error("Cannot lock a public store")}else pe.set(t,r);const o=fe.get(t);le(o,n),le(o.state,e)}else{r!==be&&pe.set(t,r);const o={state:Zt(ce(e)?e:{}),...n},i=new Proxy(o,me);fe.set(t,o),ae.set(t,i),ve.set(i,t)}return ae.get(t)}const xe=(t=document)=>{const e=t.querySelector('script[type="application/json"]#wp-interactivity-data');if(e?.textContent)try{return JSON.parse(e.textContent)}catch(t){}return{}},Se=t=>{ce(t?.state)&&Object.entries(t.state).forEach((([t,e])=>{ke(t,{state:e},{lock:be})})),ce(t?.config)&&Object.entries(t.config).forEach((([t,e])=>{he.set(t,e)}))},Ee=xe();Se(Ee);const Pe=function(t,e){var n={__c:e="__cC"+p++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,P(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}({}),Ce=new WeakMap,$e=()=>{throw new Error("Please use `data-wp-bind` to modify the attributes of an element.")},Me={get(t,e,n){const r=Reflect.get(t,e,n);return r&&"object"==typeof r?Oe(r):r},set:$e,deleteProperty:$e},Oe=t=>(Ce.has(t)||Ce.set(t,new Proxy(t,Me)),Ce.get(t)),Ne=[],je=[],He=t=>We()?.context[t||Fe()],Te=()=>{if(!We())throw Error("Cannot call `getElement()` outside getters and actions used by directives.");const{ref:t,attributes:e}=We();return Object.freeze({ref:t.current,attributes:Oe(e)})},We=()=>Ne.slice(-1)[0],Ue=t=>{Ne.push(t)},Ae=()=>{Ne.pop()},Fe=()=>je.slice(-1)[0],Le=t=>{je.push(t)},De=()=>{je.pop()},Re={},Ve={},Ie=(t,e,{priority:n=10}={})=>{Re[t]=e,Ve[t]=n},ze=({scope:t})=>(e,...n)=>{let{value:r,namespace:o}=e;if("string"!=typeof r)throw new Error("The `value` prop should be a string path");const i="!"===r[0]&&!!(r=r.slice(1));Ue(t);const s=((t,e)=>{let n=ae.get(e);void 0===n&&(n=ke(e,void 0,{lock:be}));let r={...n,context:We().context[e]};return t.split(".").forEach((t=>r=r[t])),r})(r,o),_="function"==typeof s?s(...n):s;return Ae(),i?!_:_},qe=({directives:t,priorityLevels:[e,...n],element:r,originalProps:o,previousScope:i})=>{const s=ut({}).current;s.evaluate=lt(ze({scope:s}),[]),s.context=at(Pe),s.ref=i?.ref||ut(null),r=I(r,{ref:s.ref}),s.attributes=r.props;const _=n.length>0?w(qe,{directives:t,priorityLevels:n,element:r,originalProps:o,previousScope:s}):r,u={...o,children:_},c={directives:t,props:u,element:r,context:Pe,evaluate:s.evaluate};Ue(s);for(const t of e){const e=Re[t]?.(c);void 0!==e&&(u.children=e)}return Ae(),u.children},Je=r.vnode;r.vnode=t=>{if(t.props.__directives){const e=t.props,n=e.__directives;n.key&&(t.key=n.key.find((({suffix:t})=>"default"===t)).value),delete e.__directives;const r=(t=>{const e=Object.keys(t).reduce(((t,e)=>{if(Re[e]){const n=Ve[e];(t[n]=t[n]||[]).push(e)}return t}),{});return Object.entries(e).sort((([t],[e])=>parseInt(t)-parseInt(e))).map((([,t])=>t))})(n);r.length>0&&(t.props={directives:n,priorityLevels:r,originalProps:e,type:t.type,element:w(t.type,e),top:!0},t.type=qe)}Je&&Je(t)};const Be=t=>new Promise((e=>{const n=()=>{clearTimeout(r),window.cancelAnimationFrame(o),setTimeout((()=>{t(),e()}))},r=setTimeout(n,100),o=window.requestAnimationFrame(n)}));function Ge(t){st((()=>{let e=null,n=!1;return e=function(t,e){let n;const r=Dt((function(){return n=this.c.bind(this),this.x=t,this.c=e,t()}));return{flush:n,dispose:r}}(t,(async()=>{e&&!n&&(n=!0,await Be(e.flush),n=!1)})),e.dispose}),[])}const Ke=t=>{const e=We(),n=Fe();return"GeneratorFunction"===t?.constructor?.name?async(...r)=>{const o=t(...r);let i,s;for(;;){Le(n),Ue(e);try{s=o.next(i)}finally{De(),Ae()}try{i=await s.value}catch(t){o.throw(t)}if(s.done)break}return i}:(...r)=>{Le(n),Ue(e);try{return t(...r)}finally{De(),Ae()}}};function Qe(t){Ge(Ke(t))}function Xe(t){st(Ke(t),[])}function Ye(t,e){st(Ke(t),e)}function Ze(t,e){_t(Ke(t),e)}function tn(t,e){lt(Ke(t),e)}function en(t,e){ct(Ke(t),e)}const nn=new WeakMap,rn=new WeakMap,on=new WeakMap,sn=new WeakMap,_n=t=>t&&"object"==typeof t&&t.constructor===Object,un=Reflect.getOwnPropertyDescriptor,cn=(t,e={})=>{if(sn.set(t,e),!rn.has(t)){const e=new Proxy(t,{get:(e,n)=>{const r=sn.get(t),o=e[n];return!(n in e)&&n in r?r[n]:n in e&&!nn.get(e)?.has(n)&&_n(te(e,n))?cn(o,r[n]):rn.has(o)?rn.get(o):n in e?o:r[n]},set:(e,n,r)=>{const o=sn.get(t),i=n in e||!(n in o)?e:o;if(r&&"object"==typeof r&&(nn.has(i)||nn.set(i,new Set),nn.get(i).add(n)),on.has(r)){const t=on.get(r);i[n]=t}else i[n]=r;return!0},ownKeys:e=>[...new Set([...Object.keys(sn.get(t)),...Object.keys(e)])],getOwnPropertyDescriptor:(e,n)=>un(e,n)||un(sn.get(t),n)});rn.set(t,e),on.set(e,t)}return rn.get(t)},ln=(t,e)=>{for(const n in e)_n(te(t,n))&&_n(te(e,n))?ln(t[`$${n}`].peek(),e[n]):t[n]=e[n]},an=t=>_n(t)?Object.fromEntries(Object.entries(t).map((([t,e])=>[t,an(e)]))):Array.isArray(t)?t.map((t=>an(t))):t,fn=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,pn=/\/\*[^]*?\*\/| +/g,hn=/\n+/g,dn=t=>({directives:e,evaluate:n})=>{e[`on-${t}`].filter((({suffix:t})=>"default"!==t)).forEach((e=>{Xe((()=>{const r=t=>n(e,t),o="window"===t?window:document;return o.addEventListener(e.suffix,r),()=>o.removeEventListener(e.suffix,r)}))}))},vn=()=>{Ie("context",(({directives:{context:t},props:{children:e},context:n})=>{const{Provider:r}=n,o=at(n),i=ut(Zt({})),s=t.find((({suffix:t})=>"default"===t));return w(r,{value:ct((()=>{if(s){const{namespace:t,value:e}=s;ln(i.current,{[t]:an(e)})}return cn(i.current,o)}),[s,o])},e)}),{priority:5}),Ie("watch",(({directives:{watch:t},evaluate:e})=>{t.forEach((t=>{Qe((()=>e(t)))}))})),Ie("init",(({directives:{init:t},evaluate:e})=>{t.forEach((t=>{Xe((()=>e(t)))}))})),Ie("on",(({directives:{on:t},element:e,evaluate:n})=>{const r=new Map;t.filter((({suffix:t})=>"default"!==t)).forEach((t=>{const e=t.suffix.split("--")[0];r.has(e)||r.set(e,new Set),r.get(e).add(t)})),r.forEach(((t,r)=>{e.props[`on${r}`]=e=>{t.forEach((t=>{n(t,e)}))}}))})),Ie("on-window",dn("window")),Ie("on-document",dn("document")),Ie("class",(({directives:{class:t},element:e,evaluate:n})=>{t.filter((({suffix:t})=>"default"!==t)).forEach((t=>{const r=t.suffix,o=n(t),i=e.props.class||"",s=new RegExp(`(^|\\s)${r}(\\s|$)`,"g");o?s.test(i)||(e.props.class=i?`${i} ${r}`:r):e.props.class=i.replace(s," ").trim(),Xe((()=>{o?e.ref.current.classList.add(r):e.ref.current.classList.remove(r)}))}))})),Ie("style",(({directives:{style:t},element:e,evaluate:n})=>{t.filter((({suffix:t})=>"default"!==t)).forEach((t=>{const r=t.suffix,o=n(t);e.props.style=e.props.style||{},"string"==typeof e.props.style&&(e.props.style=(t=>{const e=[{}];let n,r;for(;n=fn.exec(t.replace(pn,""));)n[4]?e.shift():n[3]?(r=n[3].replace(hn," ").trim(),e.unshift(e[0][r]=e[0][r]||{})):e[0][n[1]]=n[2].replace(hn," ").trim();return e[0]})(e.props.style)),o?e.props.style[r]=o:delete e.props.style[r],Xe((()=>{o?e.ref.current.style[r]=o:e.ref.current.style.removeProperty(r)}))}))})),Ie("bind",(({directives:{bind:t},element:e,evaluate:n})=>{t.filter((({suffix:t})=>"default"!==t)).forEach((t=>{const r=t.suffix,o=n(t);e.props[r]=o,Xe((()=>{const t=e.ref.current;if("style"!==r){if("width"!==r&&"height"!==r&&"href"!==r&&"list"!==r&&"form"!==r&&"tabIndex"!==r&&"download"!==r&&"rowSpan"!==r&&"colSpan"!==r&&"role"!==r&&r in t)try{return void(t[r]=null==o?"":o)}catch(t){}null==o||!1===o&&"-"!==r[4]?t.removeAttribute(r):t.setAttribute(r,o)}else"string"==typeof o&&(t.style.cssText=o)}))}))})),Ie("ignore",(({element:{type:t,props:{innerHTML:e,...n}}})=>w(t,{dangerouslySetInnerHTML:{__html:ct((()=>e),[])},...n}))),Ie("text",(({directives:{text:t},element:e,evaluate:n})=>{const r=t.find((({suffix:t})=>"default"===t));try{const t=n(r);e.props.children="object"==typeof t?null:t.toString()}catch(t){e.props.children=null}})),Ie("run",(({directives:{run:t},evaluate:e})=>{t.forEach((t=>e(t)))})),Ie("each",(({directives:{each:t,"each-key":e},context:n,element:r,evaluate:o})=>{if("template"!==r.type)return;const{Provider:i}=n,s=at(n),[_]=t,{namespace:u,suffix:c}=_;return o(_).map((t=>{const n="default"===c?"item":c.replace(/^-+|-+$/g,"").toLowerCase().replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()}));const o=Zt({[u]:{}}),_=cn(o,s);_[u][n]=t;const l={...We(),context:_},a=e?ze({scope:l})(e[0]):t;return w(i,{value:_,key:a},r.props.content)}))}),{priority:20}),Ie("each-child",(()=>null))},yn="wp",gn=`data-${yn}-ignore`,mn=`data-${yn}-interactive`,wn=`data-${yn}-`,bn=[],kn=new RegExp(`^data-${yn}-([a-z0-9]+(?:-[a-z0-9]+)*)(?:--([a-z0-9_-]+))?$`,"i"),xn=/^([\w-_\/]+)::(.+)$/,Sn=new WeakSet;function En(t){const e=document.createTreeWalker(t,205);return function t(n){const{attributes:r,nodeType:o,localName:i}=n;if(3===o)return[n.data];if(4===o){const t=e.nextSibling();return n.replaceWith(new window.Text(n.nodeValue)),[n.nodeValue,t]}if(8===o||7===o){const t=e.nextSibling();return n.remove(),[null,t]}const s={},_=[],u=[];let c=!1,l=!1;for(let t=0;t<r.length;t++){const e=r[t].name;if(e[wn.length]&&e.slice(0,wn.length)===wn)if(e===gn)c=!0;else{var a;let[n,o]=null!==(a=xn.exec(r[t].value)?.slice(1))&&void 0!==a?a:[null,r[t].value];try{o=JSON.parse(o)}catch(t){}var f;if(e===mn)l=!0,bn.push("string"==typeof o?o:null!==(f=o?.namespace)&&void 0!==f?f:null);else u.push([e,n,o])}else if("ref"===e)continue;s[e]=r[t].value}if(c&&!l)return[w(i,{...s,innerHTML:n.innerHTML,__directives:{ignore:!0}})];if(l&&Sn.add(n),u.length&&(s.__directives=u.reduce(((t,[e,n,r])=>{const[,o,i="default"]=kn.exec(e);var s;return t[o]||(t[o]=[]),t[o].push({namespace:null!=n?n:null!==(s=bn[bn.length-1])&&void 0!==s?s:null,value:r,suffix:i}),t}),{})),"template"===i)s.content=[...n.content.childNodes].map((t=>En(t)));else{let n=e.firstChild();if(n){for(;n;){const[r,o]=t(n);r&&_.push(r),n=o||e.nextSibling()}e.parentNode()}}return l&&bn.pop(),[w(i,s,_)]}(e.currentNode)}const Pn=new WeakMap,Cn=t=>(Pn.has(t)||Pn.set(t,((t,e)=>{const n=(e=[].concat(e))[e.length-1].nextSibling;function r(e,r){t.insertBefore(e,r||n)}return t.__k={nodeType:1,parentNode:t,firstChild:e[0],childNodes:e,insertBefore:r,appendChild:r,removeChild(e){t.removeChild(e)}}})(t.parentElement,t)),Pn.get(t));function $n(){return new Promise((t=>{setTimeout(t,0)}))}const Mn=new WeakMap,On=t=>{if("I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."===t)return{directivePrefix:yn,getRegionRootFragment:Cn,initialVdom:Mn,toVdom:En,directive:Ie,getNamespace:Fe,h:w,cloneElement:I,render:R,deepSignal:Zt,parseInitialData:xe,populateInitialData:Se,batch:bt};throw new Error("Forbidden access.")};document.addEventListener("DOMContentLoaded",(async()=>{vn(),await(async()=>{const t=document.querySelectorAll(`[data-${yn}-interactive]`);for(const e of t)if(!Sn.has(e)){await $n();const t=Cn(e),n=En(e);Mn.set(e,n),await $n(),V(n,t)}})()}));var Nn=e.zj,jn=e.SD,Hn=e.V6,Tn=e.jb,Wn=e.M_,Un=e.hb,An=e.vJ,Fn=e.ip,Ln=e.Nf,Dn=e.Kr,Rn=e.li,Vn=e.J0,In=e.FH,zn=e.v4;export{Nn as getConfig,jn as getContext,Hn as getElement,Tn as privateApis,Wn as store,Un as useCallback,An as useEffect,Fn as useInit,Ln as useLayoutEffect,Dn as useMemo,Rn as useRef,Vn as useState,In as useWatch,zn as withScope}; \ No newline at end of file
+var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};t.d(e,{zj:()=>we,SD:()=>je,V6:()=>He,jb:()=>Tn,yT:()=>Ke,M_:()=>ke,hb:()=>en,vJ:()=>Ze,ip:()=>Ye,Nf:()=>tn,Kr:()=>nn,li:()=>_t,J0:()=>it,FH:()=>Xe,v4:()=>Qe});var n,r,o,i,s,u,_,c,a,l,f,p,h={},d=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function g(t,e){for(var n in e)t[n]=e[n];return t}function m(t){var e=t.parentNode;e&&e.removeChild(t)}function w(t,e,r){var o,i,s,u={};for(s in e)"key"==s?o=e[s]:"ref"==s?i=e[s]:u[s]=e[s];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===u[s]&&(u[s]=t.defaultProps[s]);return b(t,u,o,i,null)}function b(t,e,n,i,s){var u={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==s?++o:s,__i:-1,__u:0};return null==s&&null!=r.vnode&&r.vnode(u),u}function k(t){return t.children}function x(t,e){this.props=t,this.context=e}function S(t,e){if(null==e)return t.__?S(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?S(t):null}function E(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return E(t)}}function P(t){(!t.__d&&(t.__d=!0)&&s.push(t)&&!C.__r++||u!==r.debounceRendering)&&((u=r.debounceRendering)||_)(C)}function C(){var t,e,n,o,i,u,_,a;for(s.sort(c);t=s.shift();)t.__d&&(e=s.length,o=void 0,u=(i=(n=t).__v).__e,_=[],a=[],n.__P&&((o=g({},i)).__v=i.__v+1,r.vnode&&r.vnode(o),U(n.__P,o,i,n.__n,n.__P.namespaceURI,32&i.__u?[u]:null,_,null==u?S(i):u,!!(32&i.__u),a),o.__v=i.__v,o.__.__k[o.__i]=o,W(_,o,a),o.__e!=u&&E(o)),s.length>e&&s.sort(c));C.__r=0}function $(t,e,n,r,o,i,s,u,_,c,a){var l,f,p,v,y,g=r&&r.__k||d,m=e.length;for(n.__d=_,M(n,e,g),_=n.__d,l=0;l<m;l++)null!=(p=n.__k[l])&&"boolean"!=typeof p&&"function"!=typeof p&&(f=-1===p.__i?h:g[p.__i]||h,p.__i=l,U(t,p,f,o,i,s,u,_,c,a),v=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&A(f.ref,null,p),a.push(p.ref,p.__c||v,p)),null==y&&null!=v&&(y=v),65536&p.__u||f.__k===p.__k?(_&&!_.isConnected&&(_=S(f)),_=O(p,_,t)):"function"==typeof p.type&&void 0!==p.__d?_=p.__d:v&&(_=v.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=_,n.__e=y}function M(t,e,n){var r,o,i,s,u,_=e.length,c=n.length,a=c,l=0;for(t.__k=[],r=0;r<_;r++)s=r+l,null!=(o=t.__k[r]=null==(o=e[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?b(null,o,null,null,null):y(o)?b(k,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?b(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=t,o.__b=t.__b+1,u=N(o,n,s,a),o.__i=u,i=null,-1!==u&&(a--,(i=n[u])&&(i.__u|=131072)),null==i||null===i.__v?(-1==u&&l--,"function"!=typeof o.type&&(o.__u|=65536)):u!==s&&(u===s+1?l++:u>s?a>_-s?l+=u-s:l--:u<s?u==s-1&&(l=u-s):l=0,u!==r+l&&(o.__u|=65536))):(i=n[s])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=S(i)),F(i,i,!1),n[s]=null,a--);if(a)for(r=0;r<c;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=S(i)),F(i,i))}function O(t,e,n){var r,o;if("function"==typeof t.type){for(r=t.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=t,e=O(r[o],e,n));return e}t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function N(t,e,n,r){var o=t.key,i=t.type,s=n-1,u=n+1,_=e[n];if(null===_||_&&o==_.key&&i===_.type&&0==(131072&_.__u))return n;if(r>(null!=_&&0==(131072&_.__u)?1:0))for(;s>=0||u<e.length;){if(s>=0){if((_=e[s])&&0==(131072&_.__u)&&o==_.key&&i===_.type)return s;s--}if(u<e.length){if((_=e[u])&&0==(131072&_.__u)&&o==_.key&&i===_.type)return u;u++}}return-1}function T(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||v.test(e)?n:n+"px"}function j(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||T(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||T(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||"onFocusOut"===e||"onFocusIn"===e?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r?n.u=r.u:(n.u=a,t.addEventListener(e,i?f:l,i)):t.removeEventListener(e,i?f:l,i);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function H(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=a++;else if(e.t<n.u)return;return n(r.event?r.event(e):e)}}}function U(t,e,n,o,i,s,u,_,c,a){var l,f,p,h,d,v,m,w,b,S,E,P,C,M,O,N=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(c=!!(32&n.__u),s=[_=e.__e=n.__e]),(l=r.__b)&&l(e);t:if("function"==typeof N)try{if(w=e.props,b=(l=N.contextType)&&o[l.__c],S=l?b?b.props.value:l.__:o,n.__c?m=(f=e.__c=n.__c).__=f.__E:("prototype"in N&&N.prototype.render?e.__c=f=new N(w,S):(e.__c=f=new x(w,S),f.constructor=N,f.render=R),b&&b.sub(f),f.props=w,f.state||(f.state={}),f.context=S,f.__n=o,p=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=N.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=g({},f.__s)),g(f.__s,N.getDerivedStateFromProps(w,f.__s))),h=f.props,d=f.state,f.__v=e,p)null==N.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==N.getDerivedStateFromProps&&w!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,S),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,S)||e.__v===n.__v)){for(e.__v!==n.__v&&(f.props=w,f.state=f.__s,f.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),E=0;E<f._sb.length;E++)f.__h.push(f._sb[E]);f._sb=[],f.__h.length&&u.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(w,f.__s,S),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,d,v)}))}if(f.context=S,f.props=w,f.__P=t,f.__e=!1,P=r.__r,C=0,"prototype"in N&&N.prototype.render){for(f.state=f.__s,f.__d=!1,P&&P(e),l=f.render(f.props,f.state,f.context),M=0;M<f._sb.length;M++)f.__h.push(f._sb[M]);f._sb=[]}else do{f.__d=!1,P&&P(e),l=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++C<25);f.state=f.__s,null!=f.getChildContext&&(o=g(g({},o),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(h,d)),$(t,y(O=null!=l&&l.type===k&&null==l.key?l.props.children:l)?O:[O],e,n,o,i,s,u,_,c,a),f.base=e.__e,e.__u&=-161,f.__h.length&&u.push(f),m&&(f.__E=f.__=null)}catch(t){e.__v=null,c||null!=s?(e.__e=_,e.__u|=c?160:32,s[s.indexOf(_)]=null):(e.__e=n.__e,e.__k=n.__k),r.__e(t,e,n)}else null==s&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=L(n.__e,e,n,o,i,s,u,c,a);(l=r.diffed)&&l(e)}function W(t,e,n){e.__d=void 0;for(var o=0;o<n.length;o++)A(n[o],n[++o],n[++o]);r.__c&&r.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){r.__e(t,e.__v)}}))}function L(t,e,r,o,i,s,u,_,c){var a,l,f,p,d,v,g,w=r.props,b=e.props,k=e.type;if("svg"===k?i="http://www.w3.org/2000/svg":"math"===k?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=s)for(a=0;a<s.length;a++)if((d=s[a])&&"setAttribute"in d==!!k&&(k?d.localName===k:3===d.nodeType)){t=d,s[a]=null;break}if(null==t){if(null===k)return document.createTextNode(b);t=document.createElementNS(i,k,b.is&&b),s=null,_=!1}if(null===k)w===b||_&&t.data===b||(t.data=b);else{if(s=s&&n.call(t.childNodes),w=r.props||h,!_&&null!=s)for(w={},a=0;a<t.attributes.length;a++)w[(d=t.attributes[a]).name]=d.value;for(a in w)if(d=w[a],"children"==a);else if("dangerouslySetInnerHTML"==a)f=d;else if("key"!==a&&!(a in b)){if("value"==a&&"defaultValue"in b||"checked"==a&&"defaultChecked"in b)continue;j(t,a,null,d,i)}for(a in b)d=b[a],"children"==a?p=d:"dangerouslySetInnerHTML"==a?l=d:"value"==a?v=d:"checked"==a?g=d:"key"===a||_&&"function"!=typeof d||w[a]===d||j(t,a,d,w[a],i);if(l)_||f&&(l.__html===f.__html||l.__html===t.innerHTML)||(t.innerHTML=l.__html),e.__k=[];else if(f&&(t.innerHTML=""),$(t,y(p)?p:[p],e,r,o,"foreignObject"===k?"http://www.w3.org/1999/xhtml":i,s,u,s?s[0]:r.__k&&S(r,0),_,c),null!=s)for(a=s.length;a--;)null!=s[a]&&m(s[a]);_||(a="value",void 0!==v&&(v!==t[a]||"progress"===k&&!v||"option"===k&&v!==w[a])&&j(t,a,v,w[a],i),a="checked",void 0!==g&&g!==t[a]&&j(t,a,g,w[a],i))}return t}function A(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){r.__e(t,n)}}function F(t,e,n){var o,i;if(r.unmount&&r.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||A(o,null,e)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){r.__e(t,e)}o.base=o.__P=null}if(o=t.__k)for(i=0;i<o.length;i++)o[i]&&F(o[i],e,n||"function"!=typeof t.type);n||null==t.__e||m(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function R(t,e,n){return this.constructor(t,n)}function D(t,e,o){var i,s,u,_;r.__&&r.__(t,e),s=(i="function"==typeof o)?null:o&&o.__k||e.__k,u=[],_=[],U(e,t=(!i&&o||e).__k=w(k,null,[t]),s||h,h,e.namespaceURI,!i&&o?[o]:s?null:e.firstChild?n.call(e.childNodes):null,u,!i&&o?o:s?s.__e:e.firstChild,i,_),W(u,t,_)}function I(t,e){D(t,e,I)}function V(t,e,r){var o,i,s,u,_=g({},t.props);for(s in t.type&&t.type.defaultProps&&(u=t.type.defaultProps),e)"key"==s?o=e[s]:"ref"==s?i=e[s]:_[s]=void 0===e[s]&&void 0!==u?u[s]:e[s];return arguments.length>2&&(_.children=arguments.length>3?n.call(arguments,2):r),b(t.type,_,o||t.key,i||t.ref,null)}n=d.slice,r={__e:function(t,e,n,r){for(var o,i,s;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),s=o.__d),s)return o.__E=o}catch(e){t=e}throw t}},o=0,i=function(t){return null!=t&&null==t.constructor},x.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof t&&(t=t(g({},n),this.props)),t&&g(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),P(this))},x.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),P(this))},x.prototype.render=k,s=[],_="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(t,e){return t.__v.__b-e.__v.__b},C.__r=0,a=0,l=H(!1),f=H(!0),p=0;var B,z,J,q,K=0,G=[],Q=[],X=r,Y=X.__b,Z=X.__r,tt=X.diffed,et=X.__c,nt=X.unmount,rt=X.__;function ot(t,e){X.__h&&X.__h(z,t,K||e),K=0;var n=z.__H||(z.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:Q}),n.__[t]}function it(t){return K=1,function(t,e,n){var r=ot(B++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):gt(void 0,e),function(t){var e=r.__N?r.__N[0]:r.__[0],n=r.t(e,t);e!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=z,!z.u)){var o=function(t,e,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(t){return!!t.__c}));if(o.every((function(t){return!t.__N})))return!i||i.call(this,t,e,n);var s=!1;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(s=!0)}})),!(!s&&r.__c.props===t)&&(!i||i.call(this,t,e,n))};z.u=!0;var i=z.shouldComponentUpdate,s=z.componentWillUpdate;z.componentWillUpdate=function(t,e,n){if(this.__e){var r=i;i=void 0,o(t,e,n),i=r}s&&s.call(this,t,e,n)},z.shouldComponentUpdate=o}return r.__N||r.__}(gt,t)}function st(t,e){var n=ot(B++,3);!X.__s&&yt(n.__H,e)&&(n.__=t,n.i=e,z.__H.__h.push(n))}function ut(t,e){var n=ot(B++,4);!X.__s&&yt(n.__H,e)&&(n.__=t,n.i=e,z.__h.push(n))}function _t(t){return K=5,ct((function(){return{current:t}}),[])}function ct(t,e){var n=ot(B++,7);return yt(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function at(t,e){return K=8,ct((function(){return t}),e)}function lt(t){var e=z.context[t.__c],n=ot(B++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(z)),e.props.value):t.__}function ft(){for(var t;t=G.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(dt),t.__H.__h.forEach(vt),t.__H.__h=[]}catch(e){t.__H.__h=[],X.__e(e,t.__v)}}X.__b=function(t){z=null,Y&&Y(t)},X.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),rt&&rt(t,e)},X.__r=function(t){Z&&Z(t),B=0;var e=(z=t.__c).__H;e&&(J===z?(e.__h=[],z.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=Q,t.__N=t.i=void 0}))):(e.__h.forEach(dt),e.__h.forEach(vt),e.__h=[],B=0)),J=z},X.diffed=function(t){tt&&tt(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==G.push(e)&&q===X.requestAnimationFrame||((q=X.requestAnimationFrame)||ht)(ft)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==Q&&(t.__=t.__V),t.i=void 0,t.__V=Q}))),J=z=null},X.__c=function(t,e){e.some((function(t){try{t.__h.forEach(dt),t.__h=t.__h.filter((function(t){return!t.__||vt(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],X.__e(n,t.__v)}})),et&&et(t,e)},X.unmount=function(t){nt&&nt(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{dt(t)}catch(t){e=t}})),n.__H=void 0,e&&X.__e(e,n.__v))};var pt="function"==typeof requestAnimationFrame;function ht(t){var e,n=function(){clearTimeout(r),pt&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);pt&&(e=requestAnimationFrame(n))}function dt(t){var e=z,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),z=e}function vt(t){var e=z;t.__c=t.__(),z=e}function yt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function gt(t,e){return"function"==typeof e?e(t):e}var mt=Symbol.for("preact-signals");function wt(){if(Et>1)Et--;else{for(var t,e=!1;void 0!==St;){var n=St;for(St=void 0,Pt++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Nt(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=r}}if(Pt=0,Et--,e)throw t}}function bt(t){if(Et>0)return t();Et++;try{return t()}finally{wt()}}var kt=void 0;var xt,St=void 0,Et=0,Pt=0,Ct=0;function $t(t){if(void 0!==kt){var e=t.n;if(void 0===e||e.t!==kt)return e={i:0,S:t,p:kt.s,n:void 0,t:kt,e:void 0,x:void 0,r:e},void 0!==kt.s&&(kt.s.n=e),kt.s=e,t.n=e,32&kt.f&&t.S(e),e;if(-1===e.i)return e.i=0,void 0!==e.n&&(e.n.p=e.p,void 0!==e.p&&(e.p.n=e.n),e.p=kt.s,e.n=void 0,kt.s.n=e,kt.s=e),e}}function Mt(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}function Ot(t){return new Mt(t)}function Nt(t){for(var e=t.s;void 0!==e;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function Tt(t){for(var e=t.s;void 0!==e;e=e.n){var n=e.S.n;if(void 0!==n&&(e.r=n),e.S.n=e,e.i=-1,void 0===e.n){t.s=e;break}}}function jt(t){for(var e=t.s,n=void 0;void 0!==e;){var r=e.p;-1===e.i?(e.S.U(e),void 0!==r&&(r.n=e.n),void 0!==e.n&&(e.n.p=r)):n=e,e.S.n=e.r,void 0!==e.r&&(e.r=void 0),e=r}t.s=n}function Ht(t){Mt.call(this,void 0),this.x=t,this.s=void 0,this.g=Ct-1,this.f=4}function Ut(t){return new Ht(t)}function Wt(t){var e=t.u;if(t.u=void 0,"function"==typeof e){Et++;var n=kt;kt=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,Lt(t),e}finally{kt=n,wt()}}}function Lt(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Wt(t)}function At(t){if(kt!==this)throw new Error("Out-of-order effect");jt(this),kt=t,this.f&=-2,8&this.f&&Lt(this),wt()}function Ft(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Rt(t){var e=new Ft(t);try{e.c()}catch(t){throw e.d(),t}return e.d.bind(e)}function Dt(t,e){r[t]=e.bind(null,r[t]||function(){})}function It(t){xt&&xt(),xt=t&&t.S()}function Vt(t){var e=this,n=t.data,r=function(t){return ct((function(){return Ot(t)}),[])}(n);r.value=n;var o=ct((function(){for(var t=e.__v;t=t.__;)if(t.__c){t.__c.__$f|=4;break}return e.__$u.c=function(){var t;i(o.peek())||3!==(null==(t=e.base)?void 0:t.nodeType)?(e.__$f|=1,e.setState({})):e.base.data=o.peek()},Ut((function(){var t=r.value.value;return 0===t?0:!0===t?"":t||""}))}),[]);return o.value}function Bt(t,e,n,r){var o=e in t&&void 0===t.ownerSVGElement,i=Ot(n);return{o:function(t,e){i.value=t,r=e},d:Rt((function(){var n=i.value.value;r[e]!==n&&(r[e]=n,o?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))}))}}Mt.prototype.brand=mt,Mt.prototype.h=function(){return!0},Mt.prototype.S=function(t){this.t!==t&&void 0===t.e&&(t.x=this.t,void 0!==this.t&&(this.t.e=t),this.t=t)},Mt.prototype.U=function(t){if(void 0!==this.t){var e=t.e,n=t.x;void 0!==e&&(e.x=n,t.e=void 0),void 0!==n&&(n.e=e,t.x=void 0),t===this.t&&(this.t=n)}},Mt.prototype.subscribe=function(t){var e=this;return Rt((function(){var n=e.value,r=kt;kt=void 0;try{t(n)}finally{kt=r}}))},Mt.prototype.valueOf=function(){return this.value},Mt.prototype.toString=function(){return this.value+""},Mt.prototype.toJSON=function(){return this.value},Mt.prototype.peek=function(){var t=kt;kt=void 0;try{return this.value}finally{kt=t}},Object.defineProperty(Mt.prototype,"value",{get:function(){var t=$t(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(Pt>100)throw new Error("Cycle detected");this.v=t,this.i++,Ct++,Et++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{wt()}}}}),(Ht.prototype=new Mt).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Ct)return!0;if(this.g=Ct,this.f|=1,this.i>0&&!Nt(this))return this.f&=-2,!0;var t=kt;try{Tt(this),kt=this;var e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return kt=t,jt(this),this.f&=-2,!0},Ht.prototype.S=function(t){if(void 0===this.t){this.f|=36;for(var e=this.s;void 0!==e;e=e.n)e.S.S(e)}Mt.prototype.S.call(this,t)},Ht.prototype.U=function(t){if(void 0!==this.t&&(Mt.prototype.U.call(this,t),void 0===this.t)){this.f&=-33;for(var e=this.s;void 0!==e;e=e.n)e.S.U(e)}},Ht.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},Object.defineProperty(Ht.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=$t(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),Ft.prototype.c=function(){var t=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var e=this.x();"function"==typeof e&&(this.u=e)}finally{t()}},Ft.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Wt(this),Tt(this),Et++;var t=kt;return kt=this,At.bind(this,t)},Ft.prototype.N=function(){2&this.f||(this.f|=2,this.o=St,St=this)},Ft.prototype.d=function(){this.f|=8,1&this.f||Lt(this)},Vt.displayName="_st",Object.defineProperties(Mt.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Vt},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Dt("__b",(function(t,e){if("string"==typeof e.type){var n,r=e.props;for(var o in r)if("children"!==o){var i=r[o];i instanceof Mt&&(n||(e.__np=n={}),n[o]=i,r[o]=i.peek())}}t(e)})),Dt("__r",(function(t,e){It();var n,r=e.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(t){var e;return Rt((function(){e=this})),e.c=function(){r.__$f|=1,r.setState({})},e}())),r,It(n),t(e)})),Dt("__e",(function(t,e,n,r){It(),void 0,t(e,n,r)})),Dt("diffed",(function(t,e){var n;if(It(),void 0,"string"==typeof e.type&&(n=e.__e)){var r=e.__np,o=e.props;if(r){var i=n.U;if(i)for(var s in i){var u=i[s];void 0===u||s in r||(u.d(),i[s]=void 0)}else n.U=i={};for(var _ in r){var c=i[_],a=r[_];void 0===c?(c=Bt(n,_,a,o),i[_]=c):c.o(a,o)}}}t(e)})),Dt("unmount",(function(t,e){if("string"==typeof e.type){var n=e.__e;if(n){var r=n.U;if(r)for(var o in n.U=void 0,r){var i=r[o];i&&i.d()}}}else{var s=e.__c;if(s){var u=s.__$u;u&&(s.__$u=void 0,u.d())}}t(e)})),Dt("__h",(function(t,e,n,r){(r<3||9===r)&&(e.__$f|=2),t(e,n,r)})),x.prototype.shouldComponentUpdate=function(t,e){var n=this.__$u;if(!(n&&void 0!==n.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var r in e)return!0;for(var o in t)if("__source"!==o&&t[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in t))return!0;return!1};var zt=new WeakMap,Jt=new WeakMap,qt=new WeakMap,Kt=new WeakSet,Gt=new WeakMap,Qt=/^\$/,Xt=Object.getOwnPropertyDescriptor,Yt=!1,Zt=function(t){if(!_e(t))throw new Error("This object can't be observed.");return Jt.has(t)||Jt.set(t,ee(t,oe)),Jt.get(t)},te=function(t,e){Yt=!0;var n=t[e];try{Yt=!1}catch(t){}return n};var ee=function(t,e){var n=new Proxy(t,e);return Kt.add(n),n},ne=function(){throw new Error("Don't mutate the signals directly.")},re=function(t){return function(e,n,r){var o;if(Yt)return Reflect.get(e,n,r);var i=t||"$"===n[0];if(!t&&i&&Array.isArray(e)){if("$"===n)return qt.has(e)||qt.set(e,ee(e,ie)),qt.get(e);i="$length"===n}zt.has(r)||zt.set(r,new Map);var s=zt.get(r),u=i?n.replace(Qt,""):n;if(s.has(u)||"function"!=typeof(null==(o=Xt(e,u))?void 0:o.get)){var _=Reflect.get(e,u,r);if(i&&"function"==typeof _)return;if("symbol"==typeof u&&se.has(u))return _;s.has(u)||(_e(_)&&(Jt.has(_)||Jt.set(_,ee(_,oe)),_=Jt.get(_)),s.set(u,Ot(_)))}else s.set(u,Ut((function(){return Reflect.get(e,u,r)})));return i?s.get(u):s.get(u).value}},oe={get:re(!1),set:function(t,e,n,r){var o;if("function"==typeof(null==(o=Xt(t,e))?void 0:o.set))return Reflect.set(t,e,n,r);zt.has(r)||zt.set(r,new Map);var i=zt.get(r);if("$"===e[0]){n instanceof Mt||ne();var s=e.replace(Qt,"");return i.set(s,n),Reflect.set(t,s,n.peek(),r)}var u=n;_e(n)&&(Jt.has(n)||Jt.set(n,ee(n,oe)),u=Jt.get(n));var _=!(e in t),c=Reflect.set(t,e,n,r);return i.has(e)?i.get(e).value=u:i.set(e,Ot(u)),_&&Gt.has(t)&&Gt.get(t).value++,Array.isArray(t)&&i.has("length")&&(i.get("length").value=t.length),c},deleteProperty:function(t,e){"$"===e[0]&&ne();var n=zt.get(Jt.get(t)),r=Reflect.deleteProperty(t,e);return n&&n.has(e)&&(n.get(e).value=void 0),Gt.has(t)&&Gt.get(t).value++,r},ownKeys:function(t){return Gt.has(t)||Gt.set(t,Ot(0)),Gt._=Gt.get(t).value,Reflect.ownKeys(t)}},ie={get:re(!0),set:ne,deleteProperty:ne},se=new Set(Object.getOwnPropertyNames(Symbol).map((function(t){return Symbol[t]})).filter((function(t){return"symbol"==typeof t}))),ue=new Set([Object,Array]),_e=function(t){return"object"==typeof t&&null!==t&&ue.has(t.constructor)&&!Kt.has(t)};const ce=t=>Boolean(t&&"object"==typeof t&&t.constructor===Object),ae=(t,e)=>{if(ce(t)&&ce(e))for(const n in e){const r=Object.getOwnPropertyDescriptor(e,n)?.get;if("function"==typeof r)Object.defineProperty(t,n,{get:r});else if(ce(e[n]))t[n]||(t[n]={}),ae(t[n],e[n]);else try{t[n]=e[n]}catch(t){}}},le=new Map,fe=new Map,pe=new Map,he=new Map,de=new WeakMap,ve=new WeakMap,ye=new WeakMap,ge=(t,e)=>{if(!de.has(t)){const n=new Proxy(t,me);de.set(t,n),ve.set(n,e)}return de.get(t)},me={get:(t,e,n)=>{const r=ve.get(n),o=Object.getOwnPropertyDescriptor(t,e)?.get;if(o){const e=Ue();if(e){const n=ye.get(e)||ye.set(e,new Map).get(e);return n.has(o)||n.set(o,Ut((()=>{Fe(r),We(e);try{return o.call(t)}finally{Le(),Re()}}))),n.get(o).value}}const i=Reflect.get(t,e);if(void 0===i&&n===le.get(r)){const n={};return Reflect.set(t,e,n),ge(n,r)}return"GeneratorFunction"===i?.constructor?.name?async(...t)=>{const e=Ue(),n=i(...t);let o,s;for(;;){Fe(r),We(e);try{s=n.next(o)}finally{Le(),Re()}try{o=await s.value}catch(t){Fe(r),We(e),n.throw(t)}finally{Le(),Re()}if(s.done)break}return o}:"function"==typeof i?(...t)=>{Fe(r);try{return i(...t)}finally{Re()}}:ce(i)?ge(i,r):i},set:(t,e,n)=>Reflect.set(t,e,n)},we=t=>he.get(t||Ae())||{},be="I acknowledge that using a private store means my plugin will inevitably break on the next store release.";function ke(t,{state:e={},...n}={},{lock:r=!1}={}){if(le.has(t)){if(r===be||pe.has(t)){const e=pe.get(t);if(!(r===be||!0!==r&&r===e))throw e?Error("Cannot unlock a private store with an invalid lock code"):Error("Cannot lock a public store")}else pe.set(t,r);const o=fe.get(t);ae(o,n),ae(o.state,e)}else{r!==be&&pe.set(t,r);const o={state:Zt(ce(e)?e:{}),...n},i=new Proxy(o,me);fe.set(t,o),le.set(t,i),ve.set(i,t)}return le.get(t)}const xe=(t=document)=>{var e;const n=null!==(e=t.getElementById("wp-script-module-data-@wordpress/interactivity"))&&void 0!==e?e:t.getElementById("wp-interactivity-data");if(n?.textContent)try{return JSON.parse(n.textContent)}catch{}return{}},Se=t=>{ce(t?.state)&&Object.entries(t.state).forEach((([t,e])=>{ke(t,{state:e},{lock:be})})),ce(t?.config)&&Object.entries(t.config).forEach((([t,e])=>{he.set(t,e)}))},Ee=xe();Se(Ee);const Pe=function(t,e){var n={__c:e="__cC"+p++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,P(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}({}),Ce=new WeakMap,$e=()=>{throw new Error("Please use `data-wp-bind` to modify the attributes of an element.")},Me={get(t,e,n){const r=Reflect.get(t,e,n);return r&&"object"==typeof r?Oe(r):r},set:$e,deleteProperty:$e},Oe=t=>(Ce.has(t)||Ce.set(t,new Proxy(t,Me)),Ce.get(t)),Ne=[],Te=[],je=t=>Ue()?.context[t||Ae()],He=()=>{if(!Ue())throw Error("Cannot call `getElement()` outside getters and actions used by directives.");const{ref:t,attributes:e}=Ue();return Object.freeze({ref:t.current,attributes:Oe(e)})},Ue=()=>Ne.slice(-1)[0],We=t=>{Ne.push(t)},Le=()=>{Ne.pop()},Ae=()=>Te.slice(-1)[0],Fe=t=>{Te.push(t)},Re=()=>{Te.pop()},De={},Ie={},Ve=(t,e,{priority:n=10}={})=>{De[t]=e,Ie[t]=n},Be=({scope:t})=>(e,...n)=>{let{value:r,namespace:o}=e;if("string"!=typeof r)throw new Error("The `value` prop should be a string path");const i="!"===r[0]&&!!(r=r.slice(1));We(t);const s=((t,e)=>{if(!e)return void rn(`Namespace missing for "${t}". The value for that path won't be resolved.`);let n=le.get(e);void 0===n&&(n=ke(e,void 0,{lock:be}));const r={...n,context:Ue().context[e]};try{return t.split(".").reduce(((t,e)=>t[e]),r)}catch(t){}})(r,o),u="function"==typeof s?s(...n):s;return Le(),i?!u:u},ze=({directives:t,priorityLevels:[e,...n],element:r,originalProps:o,previousScope:i})=>{const s=_t({}).current;s.evaluate=at(Be({scope:s}),[]),s.context=lt(Pe),s.ref=i?.ref||_t(null),r=V(r,{ref:s.ref}),s.attributes=r.props;const u=n.length>0?w(ze,{directives:t,priorityLevels:n,element:r,originalProps:o,previousScope:s}):r,_={...o,children:u},c={directives:t,props:_,element:r,context:Pe,evaluate:s.evaluate};We(s);for(const t of e){const e=De[t]?.(c);void 0!==e&&(_.children=e)}return Le(),_.children},Je=r.vnode;r.vnode=t=>{if(t.props.__directives){const e=t.props,n=e.__directives;n.key&&(t.key=n.key.find((({suffix:t})=>"default"===t)).value),delete e.__directives;const r=(t=>{const e=Object.keys(t).reduce(((t,e)=>{if(De[e]){const n=Ie[e];(t[n]=t[n]||[]).push(e)}return t}),{});return Object.entries(e).sort((([t],[e])=>parseInt(t)-parseInt(e))).map((([,t])=>t))})(n);r.length>0&&(t.props={directives:n,priorityLevels:r,originalProps:e,type:t.type,element:w(t.type,e),top:!0},t.type=ze)}Je&&Je(t)};const qe=t=>new Promise((e=>{const n=()=>{clearTimeout(r),window.cancelAnimationFrame(o),setTimeout((()=>{t(),e()}))},r=setTimeout(n,100),o=window.requestAnimationFrame(n)})),Ke=()=>new Promise((t=>{setTimeout(t,0)}));function Ge(t){st((()=>{let e=null,n=!1;return e=function(t,e){let n=()=>{};const r=Rt((function(){return n=this.c.bind(this),this.x=t,this.c=e,t()}));return{flush:n,dispose:r}}(t,(async()=>{e&&!n&&(n=!0,await qe(e.flush),n=!1)})),e.dispose}),[])}function Qe(t){const e=Ue(),n=Ae();return"GeneratorFunction"===t?.constructor?.name?async(...r)=>{const o=t(...r);let i,s;for(;;){Fe(n),We(e);try{s=o.next(i)}finally{Re(),Le()}try{i=await s.value}catch(t){o.throw(t)}if(s.done)break}return i}:(...r)=>{Fe(n),We(e);try{return t(...r)}finally{Re(),Le()}}}function Xe(t){Ge(Qe(t))}function Ye(t){st(Qe(t),[])}function Ze(t,e){st(Qe(t),e)}function tn(t,e){ut(Qe(t),e)}function en(t,e){return at(Qe(t),e)}function nn(t,e){return ct(Qe(t),e)}new Set;const rn=t=>{0},on=new WeakMap,sn=new WeakMap,un=new WeakMap,_n=new WeakMap,cn=t=>Boolean(t&&"object"==typeof t&&t.constructor===Object),an=Reflect.getOwnPropertyDescriptor,ln=(t,e={})=>{if(_n.set(t,e),!sn.has(t)){const e=new Proxy(t,{get:(e,n)=>{const r=_n.get(t),o=e[n];return!(n in e)&&n in r?r[n]:n in e&&!on.get(e)?.has(n)&&cn(te(e,n))?ln(o,r[n]):sn.has(o)?sn.get(o):n in e?o:r[n]},set:(e,n,r)=>{const o=_n.get(t),i=n in e||!(n in o)?e:o;if(r&&"object"==typeof r&&(on.has(i)||on.set(i,new Set),on.get(i).add(n)),un.has(r)){const t=un.get(r);i[n]=t}else i[n]=r;return!0},ownKeys:e=>[...new Set([...Object.keys(_n.get(t)),...Object.keys(e)])],getOwnPropertyDescriptor:(e,n)=>an(e,n)||an(_n.get(t),n)});sn.set(t,e),un.set(e,t)}return sn.get(t)},fn=(t,e)=>{for(const n in e)cn(te(t,n))&&cn(te(e,n))?fn(t[`$${n}`].peek(),e[n]):t[n]=e[n]};function pn(t){return cn(t)?Object.fromEntries(Object.entries(t).map((([t,e])=>[t,pn(e)]))):Array.isArray(t)?t.map((t=>pn(t))):t}const hn=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,dn=/\/\*[^]*?\*\/| +/g,vn=/\n+/g,yn=t=>({directives:e,evaluate:n})=>{e[`on-${t}`].filter((({suffix:t})=>"default"!==t)).forEach((e=>{const r=e.suffix.split("--",1)[0];Ye((()=>{const o=t=>n(e,t),i="window"===t?window:document;return i.addEventListener(r,o),()=>i.removeEventListener(r,o)}))}))},gn=t=>({directives:e,evaluate:n})=>{e[`on-async-${t}`].filter((({suffix:t})=>"default"!==t)).forEach((e=>{const r=e.suffix.split("--",1)[0];Ye((()=>{const o=async t=>{await Ke(),n(e,t)},i="window"===t?window:document;return i.addEventListener(r,o,{passive:!0}),()=>i.removeEventListener(r,o)}))}))},mn=()=>{Ve("context",(({directives:{context:t},props:{children:e},context:n})=>{const{Provider:r}=n,o=lt(n),i=_t(Zt({})),s=t.find((({suffix:t})=>"default"===t));return w(r,{value:ct((()=>{if(s){const{namespace:t,value:e}=s;cn(e)||rn(`The value of data-wp-context in "${t}" store must be a valid stringified JSON object.`),fn(i.current,{[t]:pn(e)})}return ln(i.current,o)}),[s,o])},e)}),{priority:5}),Ve("watch",(({directives:{watch:t},evaluate:e})=>{t.forEach((t=>{Xe((()=>e(t)))}))})),Ve("init",(({directives:{init:t},evaluate:e})=>{t.forEach((t=>{Ye((()=>e(t)))}))})),Ve("on",(({directives:{on:t},element:e,evaluate:n})=>{const r=new Map;t.filter((({suffix:t})=>"default"!==t)).forEach((t=>{const e=t.suffix.split("--")[0];r.has(e)||r.set(e,new Set),r.get(e).add(t)})),r.forEach(((t,r)=>{const o=e.props[`on${r}`];e.props[`on${r}`]=e=>{t.forEach((t=>{o&&o(e),n(t,e)}))}}))})),Ve("on-async",(({directives:{"on-async":t},element:e,evaluate:n})=>{const r=new Map;t.filter((({suffix:t})=>"default"!==t)).forEach((t=>{const e=t.suffix.split("--")[0];r.has(e)||r.set(e,new Set),r.get(e).add(t)})),r.forEach(((t,r)=>{const o=e.props[`on${r}`];e.props[`on${r}`]=e=>{o&&o(e),t.forEach((async t=>{await Ke(),n(t,e)}))}}))})),Ve("on-window",yn("window")),Ve("on-document",yn("document")),Ve("on-async-window",gn("window")),Ve("on-async-document",gn("document")),Ve("class",(({directives:{class:t},element:e,evaluate:n})=>{t.filter((({suffix:t})=>"default"!==t)).forEach((t=>{const r=t.suffix,o=n(t),i=e.props.class||"",s=new RegExp(`(^|\\s)${r}(\\s|$)`,"g");o?s.test(i)||(e.props.class=i?`${i} ${r}`:r):e.props.class=i.replace(s," ").trim(),Ye((()=>{o?e.ref.current.classList.add(r):e.ref.current.classList.remove(r)}))}))})),Ve("style",(({directives:{style:t},element:e,evaluate:n})=>{t.filter((({suffix:t})=>"default"!==t)).forEach((t=>{const r=t.suffix,o=n(t);e.props.style=e.props.style||{},"string"==typeof e.props.style&&(e.props.style=(t=>{const e=[{}];let n,r;for(;n=hn.exec(t.replace(dn,""));)n[4]?e.shift():n[3]?(r=n[3].replace(vn," ").trim(),e.unshift(e[0][r]=e[0][r]||{})):e[0][n[1]]=n[2].replace(vn," ").trim();return e[0]})(e.props.style)),o?e.props.style[r]=o:delete e.props.style[r],Ye((()=>{o?e.ref.current.style[r]=o:e.ref.current.style.removeProperty(r)}))}))})),Ve("bind",(({directives:{bind:t},element:e,evaluate:n})=>{t.filter((({suffix:t})=>"default"!==t)).forEach((t=>{const r=t.suffix,o=n(t);e.props[r]=o,Ye((()=>{const t=e.ref.current;if("style"!==r){if("width"!==r&&"height"!==r&&"href"!==r&&"list"!==r&&"form"!==r&&"tabIndex"!==r&&"download"!==r&&"rowSpan"!==r&&"colSpan"!==r&&"role"!==r&&r in t)try{return void(t[r]=null==o?"":o)}catch(t){}null==o||!1===o&&"-"!==r[4]?t.removeAttribute(r):t.setAttribute(r,o)}else"string"==typeof o&&(t.style.cssText=o)}))}))})),Ve("ignore",(({element:{type:t,props:{innerHTML:e,...n}}})=>w(t,{dangerouslySetInnerHTML:{__html:ct((()=>e),[])},...n}))),Ve("text",(({directives:{text:t},element:e,evaluate:n})=>{const r=t.find((({suffix:t})=>"default"===t));if(r)try{const t=n(r);e.props.children="object"==typeof t?null:t.toString()}catch(t){e.props.children=null}else e.props.children=null})),Ve("run",(({directives:{run:t},evaluate:e})=>{t.forEach((t=>e(t)))})),Ve("each",(({directives:{each:t,"each-key":e},context:n,element:r,evaluate:o})=>{if("template"!==r.type)return;const{Provider:i}=n,s=lt(n),[u]=t,{namespace:_,suffix:c}=u;return o(u).map((t=>{const n="default"===c?"item":c.replace(/^-+|-+$/g,"").toLowerCase().replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()}));const o=Zt({[_]:{}}),u=ln(o,s);u[_][n]=t;const a={...Ue(),context:u},l=e?Be({scope:a})(e[0]):t;return w(i,{value:u,key:l},r.props.content)}))}),{priority:20}),Ve("each-child",(()=>null),{priority:1})},wn="wp",bn=`data-${wn}-ignore`,kn=`data-${wn}-interactive`,xn=`data-${wn}-`,Sn=[],En=new RegExp(`^data-${wn}-([a-z0-9]+(?:-[a-z0-9]+)*)(?:--([a-z0-9_-]+))?$`,"i"),Pn=/^([\w_\/-]+)::(.+)$/,Cn=new WeakSet;function $n(t){const e=document.createTreeWalker(t,205);return function t(n){const{nodeType:r}=n;if(3===r)return[n.data];if(4===r){var o;const t=e.nextSibling();return n.replaceWith(new window.Text(null!==(o=n.nodeValue)&&void 0!==o?o:"")),[n.nodeValue,t]}if(8===r||7===r){const t=e.nextSibling();return n.remove(),[null,t]}const i=n,{attributes:s}=i,u=i.localName,_={},c=[],a=[];let l=!1,f=!1;for(let t=0;t<s.length;t++){const e=s[t].name,n=s[t].value;if(e[xn.length]&&e.slice(0,xn.length)===xn)if(e===bn)l=!0;else{var p,h;const t=Pn.exec(n),r=null!==(p=t?.[1])&&void 0!==p?p:null;let o=null!==(h=t?.[2])&&void 0!==h?h:n;try{const t=JSON.parse(o);d=t,o=Boolean(d&&"object"==typeof d&&d.constructor===Object)?t:o}catch{}if(e===kn){f=!0;const t="string"==typeof o?o:"string"==typeof o?.namespace?o.namespace:null;Sn.push(t)}else a.push([e,r,o])}else if("ref"===e)continue;_[e]=n}var d;if(l&&!f)return[w(u,{..._,innerHTML:i.innerHTML,__directives:{ignore:!0}})];if(f&&Cn.add(i),a.length&&(_.__directives=a.reduce(((t,[e,n,r])=>{const o=En.exec(e);if(null===o)return rn(`Found malformed directive name: ${e}.`),t;const i=o[1]||"",s=o[2]||"default";var u;return t[i]=t[i]||[],t[i].push({namespace:null!=n?n:null!==(u=Sn[Sn.length-1])&&void 0!==u?u:null,value:r,suffix:s}),t}),{})),"template"===u)_.content=[...i.content.childNodes].map((t=>$n(t)));else{let n=e.firstChild();if(n){for(;n;){const[r,o]=t(n);r&&c.push(r),n=o||e.nextSibling()}e.parentNode()}}return f&&Sn.pop(),[w(u,_,c)]}(e.currentNode)}const Mn=new WeakMap,On=t=>{if(!t.parentElement)throw Error("The passed region should be an element with a parent.");return Mn.has(t)||Mn.set(t,((t,e)=>{const n=(e=[].concat(e))[e.length-1].nextSibling;function r(e,r){t.insertBefore(e,r||n)}return t.__k={nodeType:1,parentNode:t,firstChild:e[0],childNodes:e,insertBefore:r,appendChild:r,removeChild(e){t.removeChild(e)}}})(t.parentElement,t)),Mn.get(t)},Nn=new WeakMap,Tn=t=>{if("I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."===t)return{directivePrefix:wn,getRegionRootFragment:On,initialVdom:Nn,toVdom:$n,directive:Ve,getNamespace:Ae,h:w,cloneElement:V,render:D,deepSignal:Zt,parseInitialData:xe,populateInitialData:Se,batch:bt};throw new Error("Forbidden access.")};document.addEventListener("DOMContentLoaded",(async()=>{mn(),await(async()=>{const t=document.querySelectorAll(`[data-${wn}-interactive]`);for(const e of t)if(!Cn.has(e)){await Ke();const t=On(e),n=$n(e);Nn.set(e,n),await Ke(),I(n,t)}})()}));var jn=e.zj,Hn=e.SD,Un=e.V6,Wn=e.jb,Ln=e.yT,An=e.M_,Fn=e.hb,Rn=e.vJ,Dn=e.ip,In=e.Nf,Vn=e.Kr,Bn=e.li,zn=e.J0,Jn=e.FH,qn=e.v4;export{jn as getConfig,Hn as getContext,Un as getElement,Wn as privateApis,Ln as splitTask,An as store,Fn as useCallback,Rn as useEffect,Dn as useInit,In as useLayoutEffect,Vn as useMemo,Bn as useRef,zn as useState,Jn as useWatch,qn as withScope}; \ No newline at end of file
diff --git a/wp-includes/js/dist/keyboard-shortcuts.js b/wp-includes/js/dist/keyboard-shortcuts.js
index abb412a..438b7cf 100644
--- a/wp-includes/js/dist/keyboard-shortcuts.js
+++ b/wp-includes/js/dist/keyboard-shortcuts.js
@@ -203,13 +203,13 @@ function registerShortcut({
* const { unregisterShortcut } = useDispatch( keyboardShortcutsStore );
*
* useEffect( () => {
- * unregisterShortcut( 'core/edit-post/next-region' );
+ * unregisterShortcut( 'core/editor/next-region' );
* }, [] );
*
* const shortcut = useSelect(
* ( select ) =>
* select( keyboardShortcutsStore ).getShortcutKeyCombination(
- * 'core/edit-post/next-region'
+ * 'core/editor/next-region'
* ),
* []
* );
@@ -230,317 +230,15 @@ function unregisterShortcut(name) {
};
}
-;// CONCATENATED MODULE: ./node_modules/rememo/rememo.js
-
-
-/** @typedef {(...args: any[]) => *[]} GetDependants */
-
-/** @typedef {() => void} Clear */
-
-/**
- * @typedef {{
- * getDependants: GetDependants,
- * clear: Clear
- * }} EnhancedSelector
- */
-
-/**
- * Internal cache entry.
- *
- * @typedef CacheNode
- *
- * @property {?CacheNode|undefined} [prev] Previous node.
- * @property {?CacheNode|undefined} [next] Next node.
- * @property {*[]} args Function arguments for cache entry.
- * @property {*} val Function result.
- */
-
-/**
- * @typedef Cache
- *
- * @property {Clear} clear Function to clear cache.
- * @property {boolean} [isUniqueByDependants] Whether dependants are valid in
- * considering cache uniqueness. A cache is unique if dependents are all arrays
- * or objects.
- * @property {CacheNode?} [head] Cache head.
- * @property {*[]} [lastDependants] Dependants from previous invocation.
- */
-
-/**
- * Arbitrary value used as key for referencing cache object in WeakMap tree.
- *
- * @type {{}}
- */
-var LEAF_KEY = {};
-
-/**
- * Returns the first argument as the sole entry in an array.
- *
- * @template T
- *
- * @param {T} value Value to return.
- *
- * @return {[T]} 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 {Cache} Cache object.
- */
-function createCache() {
- /** @type {Cache} */
- 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 {*[]} a First array.
- * @param {*[]} 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.
- *
- * @template {(...args: *[]) => *} S
- *
- * @param {S} selector Selector function.
- * @param {GetDependants=} getDependants Dependant getter returning an array of
- * references used in cache bust consideration.
- */
-/* harmony default export */ function rememo(selector, getDependants) {
- /** @type {WeakMap<*,*>} */
- var rootCache;
-
- /** @type {GetDependants} */
- var normalizedGetDependants = getDependants ? getDependants : arrayOf;
-
- /**
- * 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 {*[]} dependants Selector dependants.
- *
- * @return {Cache} Cache object.
- */
- function getCache(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);
- }
-
- /**
- * Resets root memoization cache.
- */
- function clear() {
- rootCache = new WeakMap();
- }
-
- /* eslint-disable jsdoc/check-param-names */
- /**
- * The augmented selector call, considering first whether dependants have
- * changed before passing it to underlying memoize function.
- *
- * @param {*} source Source object for derivation.
- * @param {...*} extraArgs Additional arguments to pass to selector.
- *
- * @return {*} Selector result.
- */
- /* eslint-enable jsdoc/check-param-names */
- 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 = normalizedGetDependants.apply(null, args);
- cache = getCache(dependants);
-
- // If not guaranteed uniqueness by dependants (primitive type), 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.
- /** @type {CacheNode} */ (node.prev).next = node.next;
- if (node.next) {
- node.next.prev = node.prev;
- }
-
- node.next = cache.head;
- node.prev = null;
- /** @type {CacheNode} */ (cache.head).prev = node;
- cache.head = node;
- }
-
- // Return immediately
- return node.val;
- }
-
- // No cached value found. Continue to insertion phase:
-
- node = /** @type {CacheNode} */ ({
- // 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 = normalizedGetDependants;
- callSelector.clear = clear;
- clear();
-
- return /** @type {S & EnhancedSelector} */ (callSelector);
-}
-
;// CONCATENATED MODULE: external ["wp","keycodes"]
const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/keyboard-shortcuts/build-module/store/selectors.js
/**
- * External dependencies
- */
-
-
-/**
* WordPress dependencies
*/
+
/** @typedef {import('./actions').WPShortcutKeyCombination} WPShortcutKeyCombination */
/** @typedef {import('@wordpress/keycodes').WPKeycodeHandlerByModifier} WPKeycodeHandlerByModifier */
@@ -599,7 +297,7 @@ function getKeyCombinationRepresentation(shortcut, representation) {
* const {character, modifier} = useSelect(
* ( select ) =>
* select( keyboardShortcutsStore ).getShortcutKeyCombination(
- * 'core/edit-post/next-region'
+ * 'core/editor/next-region'
* ),
* []
* );
@@ -645,9 +343,9 @@ function getShortcutKeyCombination(state, name) {
* const {display, raw, ariaLabel} = useSelect(
* ( select ) =>{
* return {
- * display: select( keyboardShortcutsStore ).getShortcutRepresentation('core/edit-post/next-region' ),
- * raw: select( keyboardShortcutsStore ).getShortcutRepresentation('core/edit-post/next-region','raw' ),
- * ariaLabel: select( keyboardShortcutsStore ).getShortcutRepresentation('core/edit-post/next-region', 'ariaLabel')
+ * display: select( keyboardShortcutsStore ).getShortcutRepresentation('core/editor/next-region' ),
+ * raw: select( keyboardShortcutsStore ).getShortcutRepresentation('core/editor/next-region','raw' ),
+ * ariaLabel: select( keyboardShortcutsStore ).getShortcutRepresentation('core/editor/next-region', 'ariaLabel')
* }
* },
* []
@@ -685,7 +383,7 @@ function getShortcutRepresentation(state, name, representation = 'display') {
* const ExampleComponent = () => {
* const shortcutDescription = useSelect(
* ( select ) =>
- * select( keyboardShortcutsStore ).getShortcutDescription( 'core/edit-post/next-region' ),
+ * select( keyboardShortcutsStore ).getShortcutDescription( 'core/editor/next-region' ),
* []
* );
*
@@ -718,7 +416,7 @@ function getShortcutDescription(state, name) {
* const shortcutAliases = useSelect(
* ( select ) =>
* select( keyboardShortcutsStore ).getShortcutAliases(
- * 'core/edit-post/next-region'
+ * 'core/editor/next-region'
* ),
* []
* );
@@ -769,7 +467,7 @@ function getShortcutAliases(state, name) {
* const allShortcutKeyCombinations = useSelect(
* ( select ) =>
* select( keyboardShortcutsStore ).getAllShortcutKeyCombinations(
- * 'core/edit-post/next-region'
+ * 'core/editor/next-region'
* ),
* []
* );
@@ -801,7 +499,7 @@ function getShortcutAliases(state, name) {
*
* @return {WPShortcutKeyCombination[]} Key combinations.
*/
-const getAllShortcutKeyCombinations = rememo((state, name) => {
+const getAllShortcutKeyCombinations = (0,external_wp_data_namespaceObject.createSelector)((state, name) => {
return [getShortcutKeyCombination(state, name), ...getShortcutAliases(state, name)].filter(Boolean);
}, (state, name) => [state[name]]);
@@ -823,7 +521,7 @@ const getAllShortcutKeyCombinations = rememo((state, name) => {
* const allShortcutRawKeyCombinations = useSelect(
* ( select ) =>
* select( keyboardShortcutsStore ).getAllShortcutRawKeyCombinations(
- * 'core/edit-post/next-region'
+ * 'core/editor/next-region'
* ),
* []
* );
@@ -854,7 +552,7 @@ const getAllShortcutKeyCombinations = rememo((state, name) => {
*
* @return {string[]} Shortcuts.
*/
-const getAllShortcutRawKeyCombinations = rememo((state, name) => {
+const getAllShortcutRawKeyCombinations = (0,external_wp_data_namespaceObject.createSelector)((state, name) => {
return getAllShortcutKeyCombinations(state, name).map(combination => getKeyCombinationRepresentation(combination, 'raw'));
}, (state, name) => [state[name]]);
@@ -891,7 +589,7 @@ const getAllShortcutRawKeyCombinations = rememo((state, name) => {
*```
* @return {string[]} Shortcut names.
*/
-const getCategoryShortcuts = rememo((state, categoryName) => {
+const getCategoryShortcuts = (0,external_wp_data_namespaceObject.createSelector)((state, categoryName) => {
return Object.entries(state).filter(([, shortcut]) => shortcut.category === categoryName).map(([name]) => name);
}, state => [state]);
@@ -1039,10 +737,9 @@ function useShortcut(name, callback, {
}, [name, isDisabled, shortcuts]);
}
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/keyboard-shortcuts/build-module/components/shortcut-provider.js
-
/**
* WordPress dependencies
*/
@@ -1052,6 +749,7 @@ const external_React_namespaceObject = window["React"];
* Internal dependencies
*/
+
const {
Provider
} = context;
@@ -1068,19 +766,22 @@ const {
function ShortcutProvider(props) {
const [keyboardShortcuts] = (0,external_wp_element_namespaceObject.useState)(() => new Set());
function onKeyDown(event) {
- if (props.onKeyDown) props.onKeyDown(event);
+ if (props.onKeyDown) {
+ props.onKeyDown(event);
+ }
for (const keyboardShortcut of keyboardShortcuts) {
keyboardShortcut(event);
}
}
/* eslint-disable jsx-a11y/no-static-element-interactions */
- return (0,external_React_namespaceObject.createElement)(Provider, {
- value: keyboardShortcuts
- }, (0,external_React_namespaceObject.createElement)("div", {
- ...props,
- onKeyDown: onKeyDown
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Provider, {
+ value: keyboardShortcuts,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...props,
+ onKeyDown: onKeyDown
+ })
+ });
/* eslint-enable jsx-a11y/no-static-element-interactions */
}
diff --git a/wp-includes/js/dist/keyboard-shortcuts.min.js b/wp-includes/js/dist/keyboard-shortcuts.min.js
index 06448cd..5c466d0 100644
--- a/wp-includes/js/dist/keyboard-shortcuts.min.js
+++ b/wp-includes/js/dist/keyboard-shortcuts.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ShortcutProvider:()=>_,__unstableUseShortcutEventMatch:()=>T,store:()=>C,useShortcut:()=>O});var n={};e.r(n),e.d(n,{registerShortcut:()=>i,unregisterShortcut:()=>c});var r={};e.r(r),e.d(r,{getAllShortcutKeyCombinations:()=>v,getAllShortcutRawKeyCombinations:()=>b,getCategoryShortcuts:()=>R,getShortcutAliases:()=>m,getShortcutDescription:()=>g,getShortcutKeyCombination:()=>S,getShortcutRepresentation:()=>w});const o=window.wp.data;const a=function(e={},t){switch(t.type){case"REGISTER_SHORTCUT":return{...e,[t.name]:{category:t.category,keyCombination:t.keyCombination,aliases:t.aliases,description:t.description}};case"UNREGISTER_SHORTCUT":const{[t.name]:n,...r}=e;return r}return e};function i({name:e,category:t,description:n,keyCombination:r,aliases:o}){return{type:"REGISTER_SHORTCUT",name:e,category:t,keyCombination:r,aliases:o,description:n}}function c(e){return{type:"UNREGISTER_SHORTCUT",name:e}}var u={};function s(e){return[e]}function l(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function d(e,t){var n,r=t||s;function o(){n=new WeakMap}function a(){var t,o,a,i,c,s=arguments.length;for(i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];for(t=function(e){var t,r,o,a,i,c=n,s=!0;for(t=0;t<e.length;t++){if(!(i=r=e[t])||"object"!=typeof i){s=!1;break}c.has(r)?c=c.get(r):(o=new WeakMap,c.set(r,o),c=o)}return c.has(u)||((a=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=s,c.set(u,a)),c.get(u)}(c=r.apply(null,i)),t.isUniqueByDependants||(t.lastDependants&&!l(c,t.lastDependants,0)&&t.clear(),t.lastDependants=c),o=t.head;o;){if(l(o.args,i,1))return o!==t.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=t.head,o.prev=null,t.head.prev=o,t.head=o),o.val;o=o.next}return o={val:e.apply(null,i)},i[0]=null,o.args=i,t.head&&(t.head.prev=o,o.next=t.head),t.head=o,o.val}return a.getDependants=r,a.clear=o,o(),a}const f=window.wp.keycodes,p=[],y={display:f.displayShortcut,raw:f.rawShortcut,ariaLabel:f.shortcutAriaLabel};function h(e,t){return e?e.modifier?y[t][e.modifier](e.character):e.character:null}function S(e,t){return e[t]?e[t].keyCombination:null}function w(e,t,n="display"){return h(S(e,t),n)}function g(e,t){return e[t]?e[t].description:null}function m(e,t){return e[t]&&e[t].aliases?e[t].aliases:p}const v=d(((e,t)=>[S(e,t),...m(e,t)].filter(Boolean)),((e,t)=>[e[t]])),b=d(((e,t)=>v(e,t).map((e=>h(e,"raw")))),((e,t)=>[e[t]])),R=d(((e,t)=>Object.entries(e).filter((([,e])=>e.category===t)).map((([e])=>e))),(e=>[e])),C=(0,o.createReduxStore)("core/keyboard-shortcuts",{reducer:a,actions:n,selectors:r});(0,o.register)(C);const E=window.wp.element;function T(){const{getAllShortcutKeyCombinations:e}=(0,o.useSelect)(C);return function(t,n){return e(t).some((({modifier:e,character:t})=>f.isKeyboardEvent[e](n,t)))}}const k=new Set,D=e=>{for(const t of k)t(e)},x=(0,E.createContext)({add:e=>{0===k.size&&document.addEventListener("keydown",D),k.add(e)},delete:e=>{k.delete(e),0===k.size&&document.removeEventListener("keydown",D)}});function O(e,t,{isDisabled:n=!1}={}){const r=(0,E.useContext)(x),o=T(),a=(0,E.useRef)();(0,E.useEffect)((()=>{a.current=t}),[t]),(0,E.useEffect)((()=>{if(!n)return r.add(t),()=>{r.delete(t)};function t(t){o(e,t)&&a.current(t)}}),[e,n,r])}const U=window.React,{Provider:K}=x;function _(e){const[t]=(0,E.useState)((()=>new Set));return(0,U.createElement)(K,{value:t},(0,U.createElement)("div",{...e,onKeyDown:function(n){e.onKeyDown&&e.onKeyDown(n);for(const e of t)e(n)}}))}(window.wp=window.wp||{}).keyboardShortcuts=t})(); \ No newline at end of file
+(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ShortcutProvider:()=>K,__unstableUseShortcutEventMatch:()=>R,store:()=>h,useShortcut:()=>T});var o={};e.r(o),e.d(o,{registerShortcut:()=>c,unregisterShortcut:()=>a});var n={};e.r(n),e.d(n,{getAllShortcutKeyCombinations:()=>m,getAllShortcutRawKeyCombinations:()=>p,getCategoryShortcuts:()=>b,getShortcutAliases:()=>w,getShortcutDescription:()=>f,getShortcutKeyCombination:()=>y,getShortcutRepresentation:()=>S});const r=window.wp.data;const i=function(e={},t){switch(t.type){case"REGISTER_SHORTCUT":return{...e,[t.name]:{category:t.category,keyCombination:t.keyCombination,aliases:t.aliases,description:t.description}};case"UNREGISTER_SHORTCUT":const{[t.name]:o,...n}=e;return n}return e};function c({name:e,category:t,description:o,keyCombination:n,aliases:r}){return{type:"REGISTER_SHORTCUT",name:e,category:t,keyCombination:n,aliases:r,description:o}}function a(e){return{type:"UNREGISTER_SHORTCUT",name:e}}const s=window.wp.keycodes,u=[],d={display:s.displayShortcut,raw:s.rawShortcut,ariaLabel:s.shortcutAriaLabel};function l(e,t){return e?e.modifier?d[t][e.modifier](e.character):e.character:null}function y(e,t){return e[t]?e[t].keyCombination:null}function S(e,t,o="display"){return l(y(e,t),o)}function f(e,t){return e[t]?e[t].description:null}function w(e,t){return e[t]&&e[t].aliases?e[t].aliases:u}const m=(0,r.createSelector)(((e,t)=>[y(e,t),...w(e,t)].filter(Boolean)),((e,t)=>[e[t]])),p=(0,r.createSelector)(((e,t)=>m(e,t).map((e=>l(e,"raw")))),((e,t)=>[e[t]])),b=(0,r.createSelector)(((e,t)=>Object.entries(e).filter((([,e])=>e.category===t)).map((([e])=>e))),(e=>[e])),h=(0,r.createReduxStore)("core/keyboard-shortcuts",{reducer:i,actions:o,selectors:n});(0,r.register)(h);const g=window.wp.element;function R(){const{getAllShortcutKeyCombinations:e}=(0,r.useSelect)(h);return function(t,o){return e(t).some((({modifier:e,character:t})=>s.isKeyboardEvent[e](o,t)))}}const C=new Set,v=e=>{for(const t of C)t(e)},E=(0,g.createContext)({add:e=>{0===C.size&&document.addEventListener("keydown",v),C.add(e)},delete:e=>{C.delete(e),0===C.size&&document.removeEventListener("keydown",v)}});function T(e,t,{isDisabled:o=!1}={}){const n=(0,g.useContext)(E),r=R(),i=(0,g.useRef)();(0,g.useEffect)((()=>{i.current=t}),[t]),(0,g.useEffect)((()=>{if(!o)return n.add(t),()=>{n.delete(t)};function t(t){r(e,t)&&i.current(t)}}),[e,o,n])}const k=window.ReactJSXRuntime,{Provider:O}=E;function K(e){const[t]=(0,g.useState)((()=>new Set));return(0,k.jsx)(O,{value:t,children:(0,k.jsx)("div",{...e,onKeyDown:function(o){e.onKeyDown&&e.onKeyDown(o);for(const e of t)e(o)}})})}(window.wp=window.wp||{}).keyboardShortcuts=t})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/list-reusable-blocks.js b/wp-includes/js/dist/list-reusable-blocks.js
index cd8d3fb..6010995 100644
--- a/wp-includes/js/dist/list-reusable-blocks.js
+++ b/wp-includes/js/dist/list-reusable-blocks.js
@@ -49,8 +49,6 @@ var __webpack_exports__ = {};
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: external ["wp","element"]
const external_wp_element_namespaceObject = window["wp"]["element"];
;// CONCATENATED MODULE: external ["wp","i18n"]
@@ -639,8 +637,9 @@ async function importReusableBlock(file) {
}
/* harmony default export */ const utils_import = (importReusableBlock);
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/list-reusable-blocks/build-module/components/import-form/index.js
-
/**
* WordPress dependencies
*/
@@ -653,6 +652,8 @@ async function importReusableBlock(file) {
* Internal dependencies
*/
+
+
function ImportForm({
instanceId,
onUpload
@@ -702,32 +703,36 @@ function ImportForm({
const onDismissError = () => {
setError(null);
};
- return (0,external_React_namespaceObject.createElement)("form", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("form", {
className: "list-reusable-blocks-import-form",
onSubmit: onSubmit,
- ref: formRef
- }, error && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Notice, {
- status: "error",
- onRemove: () => onDismissError()
- }, error), (0,external_React_namespaceObject.createElement)("label", {
- htmlFor: inputId,
- className: "list-reusable-blocks-import-form__label"
- }, (0,external_wp_i18n_namespaceObject.__)('File')), (0,external_React_namespaceObject.createElement)("input", {
- id: inputId,
- type: "file",
- onChange: onChangeFile
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- type: "submit",
- isBusy: isLoading,
- disabled: !file || isLoading,
- variant: "secondary",
- className: "list-reusable-blocks-import-form__button"
- }, (0,external_wp_i18n_namespaceObject._x)('Import', 'button label')));
+ ref: formRef,
+ children: [error && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
+ status: "error",
+ onRemove: () => onDismissError(),
+ children: error
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("label", {
+ htmlFor: inputId,
+ className: "list-reusable-blocks-import-form__label",
+ children: (0,external_wp_i18n_namespaceObject.__)('File')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
+ id: inputId,
+ type: "file",
+ onChange: onChangeFile
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ type: "submit",
+ isBusy: isLoading,
+ __experimentalIsFocusable: true,
+ disabled: !file || isLoading,
+ variant: "secondary",
+ className: "list-reusable-blocks-import-form__button",
+ children: (0,external_wp_i18n_namespaceObject._x)('Import', 'button label')
+ })]
+ });
}
/* harmony default export */ const import_form = ((0,external_wp_compose_namespaceObject.withInstanceId)(ImportForm));
;// CONCATENATED MODULE: ./node_modules/@wordpress/list-reusable-blocks/build-module/components/import-dropdown/index.js
-
/**
* WordPress dependencies
*/
@@ -739,10 +744,11 @@ function ImportForm({
* Internal dependencies
*/
+
function ImportDropdown({
onUpload
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Dropdown, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
popoverProps: {
placement: 'bottom-start'
},
@@ -750,14 +756,15 @@ function ImportDropdown({
renderToggle: ({
isOpen,
onToggle
- }) => (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
"aria-expanded": isOpen,
onClick: onToggle,
- variant: "primary"
- }, (0,external_wp_i18n_namespaceObject.__)('Import from JSON')),
+ variant: "primary",
+ children: (0,external_wp_i18n_namespaceObject.__)('Import from JSON')
+ }),
renderContent: ({
onClose
- }) => (0,external_React_namespaceObject.createElement)(import_form, {
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(import_form, {
onUpload: (0,external_wp_compose_namespaceObject.pipe)(onClose, onUpload)
})
});
@@ -765,7 +772,6 @@ function ImportDropdown({
/* harmony default export */ const import_dropdown = (ImportDropdown);
;// CONCATENATED MODULE: ./node_modules/@wordpress/list-reusable-blocks/build-module/index.js
-
/**
* WordPress dependencies
*/
@@ -779,6 +785,7 @@ function ImportDropdown({
// Setup Export Links.
+
document.body.addEventListener('click', event => {
if (!event.target.classList.contains('wp-list-reusable-blocks__export')) {
return;
@@ -806,7 +813,7 @@ document.addEventListener('DOMContentLoaded', () => {
const container = document.createElement('div');
container.className = 'list-reusable-blocks__container';
button.parentNode.insertBefore(container, button);
- (0,external_wp_element_namespaceObject.createRoot)(container).render((0,external_React_namespaceObject.createElement)(import_dropdown, {
+ (0,external_wp_element_namespaceObject.createRoot)(container).render( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(import_dropdown, {
onUpload: showNotice
}));
});
diff --git a/wp-includes/js/dist/list-reusable-blocks.min.js b/wp-includes/js/dist/list-reusable-blocks.min.js
index 3797c9f..b36bd42 100644
--- a/wp-includes/js/dist/list-reusable-blocks.min.js
+++ b/wp-includes/js/dist/list-reusable-blocks.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t);const n=window.React,o=window.wp.element,r=window.wp.i18n;var a=function(){return a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function s(e){return e.toLowerCase()}var i=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],l=/[^A-Z0-9]+/gi;function c(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function p(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,o=void 0===n?i:n,r=t.stripRegexp,a=void 0===r?l:r,p=t.transform,d=void 0===p?s:p,u=t.delimiter,w=void 0===u?" ":u,m=c(c(e,o,"$1\0$2"),a,"\0"),f=0,b=m.length;"\0"===m.charAt(f);)f++;for(;"\0"===m.charAt(b-1);)b--;return m.slice(f,b).split("\0").map(d).join(w)}(e,a({delimiter:"."},t))}const d=window.wp.apiFetch;var u=e.n(d);const w=window.wp.blob;const m=async function(e){const t=await u()({path:"/wp/v2/types/wp_block"}),n=await u()({path:`/wp/v2/${t.rest_base}/${e}?context=edit`}),o=n.title.raw,r=n.content.raw,s=n.wp_pattern_sync_status,i=JSON.stringify({__file:"wp_block",title:o,content:r,syncStatus:s},null,2),l=(void 0===c&&(c={}),p(o,a({delimiter:"-"},c))+".json");var c;(0,w.downloadBlob)(l,i,"application/json")},f=window.wp.compose,b=window.wp.components;const _=async function(e){const t=await function(e){const t=new window.FileReader;return new Promise((n=>{t.onload=()=>{n(t.result)},t.readAsText(e)}))}(e);let n;try{n=JSON.parse(t)}catch(e){throw new Error("Invalid JSON file")}if("wp_block"!==n.__file||!n.title||!n.content||"string"!=typeof n.title||"string"!=typeof n.content||n.syncStatus&&"string"!=typeof n.syncStatus)throw new Error("Invalid pattern JSON file");const o=await u()({path:"/wp/v2/types/wp_block"});return await u()({path:`/wp/v2/${o.rest_base}`,data:{title:n.title,content:n.content,status:"publish",meta:"unsynced"===n.syncStatus?{wp_pattern_sync_status:n.syncStatus}:void 0},method:"POST"})};const v=(0,f.withInstanceId)((function({instanceId:e,onUpload:t}){const a="list-reusable-blocks-import-form-"+e,s=(0,o.useRef)(),[i,l]=(0,o.useState)(!1),[c,p]=(0,o.useState)(null),[d,u]=(0,o.useState)(null);return(0,n.createElement)("form",{className:"list-reusable-blocks-import-form",onSubmit:e=>{e.preventDefault(),d&&(l({isLoading:!0}),_(d).then((e=>{s&&(l(!1),t(e))})).catch((e=>{if(!s)return;let t;switch(e.message){case"Invalid JSON file":t=(0,r.__)("Invalid JSON file");break;case"Invalid pattern JSON file":t=(0,r.__)("Invalid pattern JSON file");break;default:t=(0,r.__)("Unknown error")}l(!1),p(t)})))},ref:s},c&&(0,n.createElement)(b.Notice,{status:"error",onRemove:()=>{p(null)}},c),(0,n.createElement)("label",{htmlFor:a,className:"list-reusable-blocks-import-form__label"},(0,r.__)("File")),(0,n.createElement)("input",{id:a,type:"file",onChange:e=>{u(e.target.files[0]),p(null)}}),(0,n.createElement)(b.Button,{type:"submit",isBusy:i,disabled:!d||i,variant:"secondary",className:"list-reusable-blocks-import-form__button"},(0,r._x)("Import","button label")))}));const y=function({onUpload:e}){return(0,n.createElement)(b.Dropdown,{popoverProps:{placement:"bottom-start"},contentClassName:"list-reusable-blocks-import-dropdown__content",renderToggle:({isOpen:e,onToggle:t})=>(0,n.createElement)(b.Button,{"aria-expanded":e,onClick:t,variant:"primary"},(0,r.__)("Import from JSON")),renderContent:({onClose:t})=>(0,n.createElement)(v,{onUpload:(0,f.pipe)(t,e)})})};document.body.addEventListener("click",(e=>{e.target.classList.contains("wp-list-reusable-blocks__export")&&(e.preventDefault(),m(e.target.dataset.id))})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".page-title-action");if(!e)return;const t=document.createElement("div");t.className="list-reusable-blocks__container",e.parentNode.insertBefore(t,e),(0,o.createRoot)(t).render((0,n.createElement)(y,{onUpload:()=>{const e=document.createElement("div");e.className="notice notice-success is-dismissible",e.innerHTML=`<p>${(0,r.__)("Pattern imported successfully!")}</p>`;const t=document.querySelector(".wp-header-end");t&&t.parentNode.insertBefore(e,t)}}))})),(window.wp=window.wp||{}).listReusableBlocks=t})(); \ No newline at end of file
+(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t);const n=window.wp.element,o=window.wp.i18n;var r=function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function s(e){return e.toLowerCase()}var a=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],i=/[^A-Z0-9]+/gi;function l(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function c(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,o=void 0===n?a:n,r=t.stripRegexp,c=void 0===r?i:r,p=t.transform,d=void 0===p?s:p,u=t.delimiter,w=void 0===u?" ":u,f=l(l(e,o,"$1\0$2"),c,"\0"),m=0,b=f.length;"\0"===f.charAt(m);)m++;for(;"\0"===f.charAt(b-1);)b--;return f.slice(m,b).split("\0").map(d).join(w)}(e,r({delimiter:"."},t))}const p=window.wp.apiFetch;var d=e.n(p);const u=window.wp.blob;const w=async function(e){const t=await d()({path:"/wp/v2/types/wp_block"}),n=await d()({path:`/wp/v2/${t.rest_base}/${e}?context=edit`}),o=n.title.raw,s=n.content.raw,a=n.wp_pattern_sync_status,i=JSON.stringify({__file:"wp_block",title:o,content:s,syncStatus:a},null,2),l=(void 0===p&&(p={}),c(o,r({delimiter:"-"},p))+".json");var p;(0,u.downloadBlob)(l,i,"application/json")},f=window.wp.compose,m=window.wp.components;const b=async function(e){const t=await function(e){const t=new window.FileReader;return new Promise((n=>{t.onload=()=>{n(t.result)},t.readAsText(e)}))}(e);let n;try{n=JSON.parse(t)}catch(e){throw new Error("Invalid JSON file")}if("wp_block"!==n.__file||!n.title||!n.content||"string"!=typeof n.title||"string"!=typeof n.content||n.syncStatus&&"string"!=typeof n.syncStatus)throw new Error("Invalid pattern JSON file");const o=await d()({path:"/wp/v2/types/wp_block"});return await d()({path:`/wp/v2/${o.rest_base}`,data:{title:n.title,content:n.content,status:"publish",meta:"unsynced"===n.syncStatus?{wp_pattern_sync_status:n.syncStatus}:void 0},method:"POST"})},_=window.ReactJSXRuntime;const v=(0,f.withInstanceId)((function({instanceId:e,onUpload:t}){const r="list-reusable-blocks-import-form-"+e,s=(0,n.useRef)(),[a,i]=(0,n.useState)(!1),[l,c]=(0,n.useState)(null),[p,d]=(0,n.useState)(null);return(0,_.jsxs)("form",{className:"list-reusable-blocks-import-form",onSubmit:e=>{e.preventDefault(),p&&(i({isLoading:!0}),b(p).then((e=>{s&&(i(!1),t(e))})).catch((e=>{if(!s)return;let t;switch(e.message){case"Invalid JSON file":t=(0,o.__)("Invalid JSON file");break;case"Invalid pattern JSON file":t=(0,o.__)("Invalid pattern JSON file");break;default:t=(0,o.__)("Unknown error")}i(!1),c(t)})))},ref:s,children:[l&&(0,_.jsx)(m.Notice,{status:"error",onRemove:()=>{c(null)},children:l}),(0,_.jsx)("label",{htmlFor:r,className:"list-reusable-blocks-import-form__label",children:(0,o.__)("File")}),(0,_.jsx)("input",{id:r,type:"file",onChange:e=>{d(e.target.files[0]),c(null)}}),(0,_.jsx)(m.Button,{type:"submit",isBusy:a,__experimentalIsFocusable:!0,disabled:!p||a,variant:"secondary",className:"list-reusable-blocks-import-form__button",children:(0,o._x)("Import","button label")})]})}));const y=function({onUpload:e}){return(0,_.jsx)(m.Dropdown,{popoverProps:{placement:"bottom-start"},contentClassName:"list-reusable-blocks-import-dropdown__content",renderToggle:({isOpen:e,onToggle:t})=>(0,_.jsx)(m.Button,{"aria-expanded":e,onClick:t,variant:"primary",children:(0,o.__)("Import from JSON")}),renderContent:({onClose:t})=>(0,_.jsx)(v,{onUpload:(0,f.pipe)(t,e)})})};document.body.addEventListener("click",(e=>{e.target.classList.contains("wp-list-reusable-blocks__export")&&(e.preventDefault(),w(e.target.dataset.id))})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".page-title-action");if(!e)return;const t=document.createElement("div");t.className="list-reusable-blocks__container",e.parentNode.insertBefore(t,e),(0,n.createRoot)(t).render((0,_.jsx)(y,{onUpload:()=>{const e=document.createElement("div");e.className="notice notice-success is-dismissible",e.innerHTML=`<p>${(0,o.__)("Pattern imported successfully!")}</p>`;const t=document.querySelector(".wp-header-end");t&&t.parentNode.insertBefore(e,t)}}))})),(window.wp=window.wp||{}).listReusableBlocks=t})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/nux.js b/wp-includes/js/dist/nux.js
index c99ba4d..46f88eb 100644
--- a/wp-includes/js/dist/nux.js
+++ b/wp-includes/js/dist/nux.js
@@ -204,307 +204,9 @@ function enableTips() {
};
}
-;// CONCATENATED MODULE: ./node_modules/rememo/rememo.js
-
-
-/** @typedef {(...args: any[]) => *[]} GetDependants */
-
-/** @typedef {() => void} Clear */
-
-/**
- * @typedef {{
- * getDependants: GetDependants,
- * clear: Clear
- * }} EnhancedSelector
- */
-
-/**
- * Internal cache entry.
- *
- * @typedef CacheNode
- *
- * @property {?CacheNode|undefined} [prev] Previous node.
- * @property {?CacheNode|undefined} [next] Next node.
- * @property {*[]} args Function arguments for cache entry.
- * @property {*} val Function result.
- */
-
-/**
- * @typedef Cache
- *
- * @property {Clear} clear Function to clear cache.
- * @property {boolean} [isUniqueByDependants] Whether dependants are valid in
- * considering cache uniqueness. A cache is unique if dependents are all arrays
- * or objects.
- * @property {CacheNode?} [head] Cache head.
- * @property {*[]} [lastDependants] Dependants from previous invocation.
- */
-
-/**
- * Arbitrary value used as key for referencing cache object in WeakMap tree.
- *
- * @type {{}}
- */
-var LEAF_KEY = {};
-
-/**
- * Returns the first argument as the sole entry in an array.
- *
- * @template T
- *
- * @param {T} value Value to return.
- *
- * @return {[T]} 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 {Cache} Cache object.
- */
-function createCache() {
- /** @type {Cache} */
- 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 {*[]} a First array.
- * @param {*[]} 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.
- *
- * @template {(...args: *[]) => *} S
- *
- * @param {S} selector Selector function.
- * @param {GetDependants=} getDependants Dependant getter returning an array of
- * references used in cache bust consideration.
- */
-/* harmony default export */ function rememo(selector, getDependants) {
- /** @type {WeakMap<*,*>} */
- var rootCache;
-
- /** @type {GetDependants} */
- var normalizedGetDependants = getDependants ? getDependants : arrayOf;
-
- /**
- * 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 {*[]} dependants Selector dependants.
- *
- * @return {Cache} Cache object.
- */
- function getCache(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);
- }
-
- /**
- * Resets root memoization cache.
- */
- function clear() {
- rootCache = new WeakMap();
- }
-
- /* eslint-disable jsdoc/check-param-names */
- /**
- * The augmented selector call, considering first whether dependants have
- * changed before passing it to underlying memoize function.
- *
- * @param {*} source Source object for derivation.
- * @param {...*} extraArgs Additional arguments to pass to selector.
- *
- * @return {*} Selector result.
- */
- /* eslint-enable jsdoc/check-param-names */
- 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 = normalizedGetDependants.apply(null, args);
- cache = getCache(dependants);
-
- // If not guaranteed uniqueness by dependants (primitive type), 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.
- /** @type {CacheNode} */ (node.prev).next = node.next;
- if (node.next) {
- node.next.prev = node.prev;
- }
-
- node.next = cache.head;
- node.prev = null;
- /** @type {CacheNode} */ (cache.head).prev = node;
- cache.head = node;
- }
-
- // Return immediately
- return node.val;
- }
-
- // No cached value found. Continue to insertion phase:
-
- node = /** @type {CacheNode} */ ({
- // 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 = normalizedGetDependants;
- callSelector.clear = clear;
- clear();
-
- return /** @type {S & EnhancedSelector} */ (callSelector);
-}
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/store/selectors.js
/**
- * External dependencies
+ * WordPress dependencies
*/
@@ -526,7 +228,7 @@ function isShallowEqual(a, b, fromIndex) {
*
* @return {?NUXGuideInfo} Information about the associated guide.
*/
-const getAssociatedGuide = rememo((state, tipId) => {
+const getAssociatedGuide = (0,external_wp_data_namespaceObject.createSelector)((state, tipId) => {
for (const tipIds of state.guides) {
if (tipIds.includes(tipId)) {
const nonDismissedTips = tipIds.filter(tId => !Object.keys(state.preferences.dismissedTips).includes(tId));
@@ -613,8 +315,6 @@ const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME,
persist: ['preferences']
});
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: external ["wp","compose"]
const external_wp_compose_namespaceObject = window["wp"]["compose"];
;// CONCATENATED MODULE: external ["wp","components"]
@@ -625,22 +325,24 @@ const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
const external_wp_element_namespaceObject = window["wp"]["element"];
;// CONCATENATED MODULE: external ["wp","primitives"]
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
-
/**
* WordPress dependencies
*/
-const close_close = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const close_close = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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 */ const library_close = (close_close);
;// CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/components/dot-tip/index.js
-
/**
* WordPress dependencies
*/
@@ -655,6 +357,8 @@ const close_close = (0,external_React_namespaceObject.createElement)(external_wp
* Internal dependencies
*/
+
+
function onClick(event) {
// Tips are often nested within buttons. We stop propagation so that clicking
// on a tip doesn't result in the button being clicked.
@@ -681,23 +385,29 @@ function DotTip({
if (!isVisible) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Popover, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Popover, {
className: "nux-dot-tip",
position: position,
focusOnMount: true,
role: "dialog",
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Editor tips'),
onClick: onClick,
- onFocusOutside: onFocusOutsideCallback
- }, (0,external_React_namespaceObject.createElement)("p", null, children), (0,external_React_namespaceObject.createElement)("p", null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "link",
- onClick: onDismiss
- }, hasNextTip ? (0,external_wp_i18n_namespaceObject.__)('See next tip') : (0,external_wp_i18n_namespaceObject.__)('Got it'))), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- className: "nux-dot-tip__disable",
- icon: library_close,
- label: (0,external_wp_i18n_namespaceObject.__)('Disable tips'),
- onClick: onDisable
- }));
+ onFocusOutside: onFocusOutsideCallback,
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: children
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "link",
+ onClick: onDismiss,
+ children: hasNextTip ? (0,external_wp_i18n_namespaceObject.__)('See next tip') : (0,external_wp_i18n_namespaceObject.__)('Got it')
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ className: "nux-dot-tip__disable",
+ icon: library_close,
+ label: (0,external_wp_i18n_namespaceObject.__)('Disable tips'),
+ onClick: onDisable
+ })]
+ });
}
/* harmony default export */ const dot_tip = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_data_namespaceObject.withSelect)((select, {
tipId
diff --git a/wp-includes/js/dist/nux.min.js b/wp-includes/js/dist/nux.min.js
index 52edfaa..d6bfa15 100644
--- a/wp-includes/js/dist/nux.min.js
+++ b/wp-includes/js/dist/nux.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-(()=>{"use strict";var e={n:n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return e.d(t,{a:t}),t},d:(n,t)=>{for(var r in t)e.o(t,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:t[r]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{DotTip:()=>G,store:()=>v});var t={};e.r(t),e.d(t,{disableTips:()=>l,dismissTip:()=>p,enableTips:()=>d,triggerGuide:()=>c});var r={};e.r(r),e.d(r,{areTipsEnabled:()=>m,getAssociatedGuide:()=>b,isTipVisible:()=>h});const i=window.wp.deprecated;var s=e.n(i);const o=window.wp.data;const a=(0,o.combineReducers)({areTipsEnabled:function(e=!0,n){switch(n.type){case"DISABLE_TIPS":return!1;case"ENABLE_TIPS":return!0}return e},dismissedTips:function(e={},n){switch(n.type){case"DISMISS_TIP":return{...e,[n.id]:!0};case"ENABLE_TIPS":return{}}return e}}),u=(0,o.combineReducers)({guides:function(e=[],n){return"TRIGGER_GUIDE"===n.type?[...e,n.tipIds]:e},preferences:a});function c(e){return{type:"TRIGGER_GUIDE",tipIds:e}}function p(e){return{type:"DISMISS_TIP",id:e}}function l(){return{type:"DISABLE_TIPS"}}function d(){return{type:"ENABLE_TIPS"}}var f={};function w(e){return[e]}function T(e,n,t){var r;if(e.length!==n.length)return!1;for(r=t;r<e.length;r++)if(e[r]!==n[r])return!1;return!0}const b=function(e,n){var t,r=n||w;function i(){t=new WeakMap}function s(){var n,i,s,o,a,u=arguments.length;for(o=new Array(u),s=0;s<u;s++)o[s]=arguments[s];for(n=function(e){var n,r,i,s,o,a=t,u=!0;for(n=0;n<e.length;n++){if(!(o=r=e[n])||"object"!=typeof o){u=!1;break}a.has(r)?a=a.get(r):(i=new WeakMap,a.set(r,i),a=i)}return a.has(f)||((s=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=u,a.set(f,s)),a.get(f)}(a=r.apply(null,o)),n.isUniqueByDependants||(n.lastDependants&&!T(a,n.lastDependants,0)&&n.clear(),n.lastDependants=a),i=n.head;i;){if(T(i.args,o,1))return i!==n.head&&(i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=n.head,i.prev=null,n.head.prev=i,n.head=i),i.val;i=i.next}return i={val:e.apply(null,o)},o[0]=null,i.args=o,n.head&&(n.head.prev=i,i.next=n.head),n.head=i,i.val}return s.getDependants=r,s.clear=i,i(),s}(((e,n)=>{for(const t of e.guides)if(t.includes(n)){const n=t.filter((n=>!Object.keys(e.preferences.dismissedTips).includes(n))),[r=null,i=null]=n;return{tipIds:t,currentTipId:r,nextTipId:i}}return null}),(e=>[e.guides,e.preferences.dismissedTips]));function h(e,n){if(!e.preferences.areTipsEnabled)return!1;if(e.preferences.dismissedTips?.hasOwnProperty(n))return!1;const t=b(e,n);return!t||t.currentTipId===n}function m(e){return e.preferences.areTipsEnabled}const g="core/nux",v=(0,o.createReduxStore)(g,{reducer:u,actions:t,selectors:r,persist:["preferences"]});(0,o.registerStore)(g,{reducer:u,actions:t,selectors:r,persist:["preferences"]});const I=window.React,y=window.wp.compose,E=window.wp.components,S=window.wp.i18n,_=window.wp.element,x=window.wp.primitives,D=(0,I.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,I.createElement)(x.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function P(e){e.stopPropagation()}const G=(0,y.compose)((0,o.withSelect)(((e,{tipId:n})=>{const{isTipVisible:t,getAssociatedGuide:r}=e(v),i=r(n);return{isVisible:t(n),hasNextTip:!(!i||!i.nextTipId)}})),(0,o.withDispatch)(((e,{tipId:n})=>{const{dismissTip:t,disableTips:r}=e(v);return{onDismiss(){t(n)},onDisable(){r()}}})))((function({position:e="middle right",children:n,isVisible:t,hasNextTip:r,onDismiss:i,onDisable:s}){const o=(0,_.useRef)(null),a=(0,_.useCallback)((e=>{o.current&&(o.current.contains(e.relatedTarget)||s())}),[s,o]);return t?(0,I.createElement)(E.Popover,{className:"nux-dot-tip",position:e,focusOnMount:!0,role:"dialog","aria-label":(0,S.__)("Editor tips"),onClick:P,onFocusOutside:a},(0,I.createElement)("p",null,n),(0,I.createElement)("p",null,(0,I.createElement)(E.Button,{variant:"link",onClick:i},r?(0,S.__)("See next tip"):(0,S.__)("Got it"))),(0,I.createElement)(E.Button,{className:"nux-dot-tip__disable",icon:D,label:(0,S.__)("Disable tips"),onClick:s})):null}));s()("wp.nux",{since:"5.4",hint:"wp.components.Guide can be used to show a user guide.",version:"6.2"}),(window.wp=window.wp||{}).nux=n})(); \ No newline at end of file
+(()=>{"use strict";var e={n:i=>{var n=i&&i.__esModule?()=>i.default:()=>i;return e.d(n,{a:n}),n},d:(i,n)=>{for(var t in n)e.o(n,t)&&!e.o(i,t)&&Object.defineProperty(i,t,{enumerable:!0,get:n[t]})},o:(e,i)=>Object.prototype.hasOwnProperty.call(e,i),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},i={};e.r(i),e.d(i,{DotTip:()=>P,store:()=>I});var n={};e.r(n),e.d(n,{disableTips:()=>a,dismissTip:()=>u,enableTips:()=>l,triggerGuide:()=>p});var t={};e.r(t),e.d(t,{areTipsEnabled:()=>T,getAssociatedGuide:()=>w,isTipVisible:()=>f});const s=window.wp.deprecated;var r=e.n(s);const o=window.wp.data;const c=(0,o.combineReducers)({areTipsEnabled:function(e=!0,i){switch(i.type){case"DISABLE_TIPS":return!1;case"ENABLE_TIPS":return!0}return e},dismissedTips:function(e={},i){switch(i.type){case"DISMISS_TIP":return{...e,[i.id]:!0};case"ENABLE_TIPS":return{}}return e}}),d=(0,o.combineReducers)({guides:function(e=[],i){return"TRIGGER_GUIDE"===i.type?[...e,i.tipIds]:e},preferences:c});function p(e){return{type:"TRIGGER_GUIDE",tipIds:e}}function u(e){return{type:"DISMISS_TIP",id:e}}function a(){return{type:"DISABLE_TIPS"}}function l(){return{type:"ENABLE_TIPS"}}const w=(0,o.createSelector)(((e,i)=>{for(const n of e.guides)if(n.includes(i)){const i=n.filter((i=>!Object.keys(e.preferences.dismissedTips).includes(i))),[t=null,s=null]=i;return{tipIds:n,currentTipId:t,nextTipId:s}}return null}),(e=>[e.guides,e.preferences.dismissedTips]));function f(e,i){if(!e.preferences.areTipsEnabled)return!1;if(e.preferences.dismissedTips?.hasOwnProperty(i))return!1;const n=w(e,i);return!n||n.currentTipId===i}function T(e){return e.preferences.areTipsEnabled}const b="core/nux",I=(0,o.createReduxStore)(b,{reducer:d,actions:n,selectors:t,persist:["preferences"]});(0,o.registerStore)(b,{reducer:d,actions:n,selectors:t,persist:["preferences"]});const m=window.wp.compose,S=window.wp.components,_=window.wp.i18n,g=window.wp.element,h=window.wp.primitives,x=window.ReactJSXRuntime,y=(0,x.jsx)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,x.jsx)(h.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})});function E(e){e.stopPropagation()}const P=(0,m.compose)((0,o.withSelect)(((e,{tipId:i})=>{const{isTipVisible:n,getAssociatedGuide:t}=e(I),s=t(i);return{isVisible:n(i),hasNextTip:!(!s||!s.nextTipId)}})),(0,o.withDispatch)(((e,{tipId:i})=>{const{dismissTip:n,disableTips:t}=e(I);return{onDismiss(){n(i)},onDisable(){t()}}})))((function({position:e="middle right",children:i,isVisible:n,hasNextTip:t,onDismiss:s,onDisable:r}){const o=(0,g.useRef)(null),c=(0,g.useCallback)((e=>{o.current&&(o.current.contains(e.relatedTarget)||r())}),[r,o]);return n?(0,x.jsxs)(S.Popover,{className:"nux-dot-tip",position:e,focusOnMount:!0,role:"dialog","aria-label":(0,_.__)("Editor tips"),onClick:E,onFocusOutside:c,children:[(0,x.jsx)("p",{children:i}),(0,x.jsx)("p",{children:(0,x.jsx)(S.Button,{variant:"link",onClick:s,children:t?(0,_.__)("See next tip"):(0,_.__)("Got it")})}),(0,x.jsx)(S.Button,{className:"nux-dot-tip__disable",icon:y,label:(0,_.__)("Disable tips"),onClick:r})]}):null}));r()("wp.nux",{since:"5.4",hint:"wp.components.Guide can be used to show a user guide.",version:"6.2"}),(window.wp=window.wp||{}).nux=i})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/patterns.js b/wp-includes/js/dist/patterns.js
index 51de108..99d64f9 100644
--- a/wp-includes/js/dist/patterns.js
+++ b/wp-includes/js/dist/patterns.js
@@ -106,6 +106,7 @@ const PARTIAL_SYNCING_SUPPORTED_BLOCKS = {
'core/button': ['text', 'url', 'linkTarget', 'rel'],
'core/image': ['id', 'url', 'title', 'alt']
};
+const PATTERN_OVERRIDES_BINDING_SOURCE = 'core/pattern-overrides';
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/store/actions.js
/**
@@ -178,6 +179,7 @@ const convertSyncedPatternToStatic = clientId => ({
registry
}) => {
const patternBlock = registry.select(external_wp_blockEditor_namespaceObject.store).getBlock(clientId);
+ const existingOverrides = patternBlock.attributes?.content;
function cloneBlocksAndRemoveBindings(blocks) {
return blocks.map(block => {
let metadata = block.attributes.metadata;
@@ -187,13 +189,26 @@ const convertSyncedPatternToStatic = clientId => ({
};
delete metadata.id;
delete metadata.bindings;
+ // Use overridden values of the pattern block if they exist.
+ if (existingOverrides?.[metadata.name]) {
+ // Iterate over each overriden attribute.
+ for (const [attributeName, value] of Object.entries(existingOverrides[metadata.name])) {
+ // Skip if the attribute does not exist in the block type.
+ if (!(0,external_wp_blocks_namespaceObject.getBlockType)(block.name)?.attributes[attributeName]) {
+ continue;
+ }
+ // Update the block attribute with the override value.
+ block.attributes[attributeName] = value;
+ }
+ }
}
return (0,external_wp_blocks_namespaceObject.cloneBlock)(block, {
metadata: metadata && Object.keys(metadata).length > 0 ? metadata : undefined
}, cloneBlocksAndRemoveBindings(block.innerBlocks));
});
}
- registry.dispatch(external_wp_blockEditor_namespaceObject.store).replaceBlocks(patternBlock.clientId, cloneBlocksAndRemoveBindings(patternBlock.innerBlocks));
+ const patternInnerBlocks = registry.select(external_wp_blockEditor_namespaceObject.store).getBlocks(patternBlock.clientId);
+ registry.dispatch(external_wp_blockEditor_namespaceObject.store).replaceBlocks(patternBlock.clientId, cloneBlocksAndRemoveBindings(patternInnerBlocks));
};
/**
@@ -239,7 +254,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
const {
lock,
unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/patterns');
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/patterns');
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/store/index.js
/**
@@ -281,14 +296,86 @@ const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME,
unlock(store).registerPrivateActions(actions_namespaceObject);
unlock(store).registerPrivateSelectors(selectors_namespaceObject);
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: external ["wp","components"]
const external_wp_components_namespaceObject = window["wp"]["components"];
-;// CONCATENATED MODULE: external ["wp","i18n"]
-const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
;// CONCATENATED MODULE: external ["wp","element"]
const external_wp_element_namespaceObject = window["wp"]["element"];
+;// CONCATENATED MODULE: external ["wp","i18n"]
+const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/api/index.js
+/**
+ * Internal dependencies
+ */
+
+
+/**
+ * Determines whether a block is overridable.
+ *
+ * @param {WPBlock} block The block to test.
+ *
+ * @return {boolean} `true` if a block is overridable, `false` otherwise.
+ */
+function isOverridableBlock(block) {
+ return Object.keys(PARTIAL_SYNCING_SUPPORTED_BLOCKS).includes(block.name) && !!block.attributes.metadata?.name && !!block.attributes.metadata?.bindings && Object.values(block.attributes.metadata.bindings).some(binding => binding.source === 'core/pattern-overrides');
+}
+
+/**
+ * Determines whether the blocks list has overridable blocks.
+ *
+ * @param {WPBlock[]} blocks The blocks list.
+ *
+ * @return {boolean} `true` if the list has overridable blocks, `false` otherwise.
+ */
+function hasOverridableBlocks(blocks) {
+ return blocks.some(block => {
+ if (isOverridableBlock(block)) {
+ return true;
+ }
+ return hasOverridableBlocks(block.innerBlocks);
+ });
+}
+
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/overrides-panel.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+const {
+ BlockQuickNavigation
+} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+function OverridesPanel() {
+ const allClientIds = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).getClientIdsWithDescendants(), []);
+ const {
+ getBlock
+ } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store);
+ const clientIdsWithOverrides = (0,external_wp_element_namespaceObject.useMemo)(() => allClientIds.filter(clientId => {
+ const block = getBlock(clientId);
+ return isOverridableBlock(block);
+ }), [allClientIds, getBlock]);
+ if (!clientIdsWithOverrides?.length) {
+ return null;
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Overrides'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockQuickNavigation, {
+ clientIds: clientIdsWithOverrides
+ })
+ });
+}
+
;// CONCATENATED MODULE: external ["wp","notices"]
const external_wp_notices_namespaceObject = window["wp"]["notices"];
;// CONCATENATED MODULE: external ["wp","compose"]
@@ -296,7 +383,6 @@ const external_wp_compose_namespaceObject = window["wp"]["compose"];
;// CONCATENATED MODULE: external ["wp","htmlEntities"]
const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/category-selector.js
-
/**
* WordPress dependencies
*/
@@ -305,6 +391,7 @@ const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
+
const unescapeString = arg => {
return (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(arg);
};
@@ -333,7 +420,7 @@ function CategorySelector({
}, []);
onChange(uniqueTerms);
}
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FormTokenField, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FormTokenField, {
className: "patterns-menu-items__convert-modal-categories",
value: categoryTerms,
suggestions: suggestions,
@@ -443,7 +530,6 @@ function useAddPatternCategory() {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/create-pattern-modal.js
-
/**
* WordPress dependencies
*/
@@ -453,6 +539,7 @@ function useAddPatternCategory() {
+
/**
* Internal dependencies
*/
@@ -461,21 +548,25 @@ function useAddPatternCategory() {
+
+
function CreatePatternModal({
className = 'patterns-menu-items__convert-modal',
- modalTitle = (0,external_wp_i18n_namespaceObject.__)('Create pattern'),
+ modalTitle,
...restProps
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
- title: modalTitle,
+ const defaultModalTitle = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getPostType(PATTERN_TYPES.user)?.labels?.add_new_item, []);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ title: modalTitle || defaultModalTitle,
onRequestClose: restProps.onClose,
- overlayClassName: className
- }, (0,external_React_namespaceObject.createElement)(CreatePatternModalContents, {
- ...restProps
- }));
+ overlayClassName: className,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CreatePatternModalContents, {
+ ...restProps
+ })
+ });
}
function CreatePatternModalContents({
- confirmLabel = (0,external_wp_i18n_namespaceObject.__)('Create'),
+ confirmLabel = (0,external_wp_i18n_namespaceObject.__)('Add'),
defaultCategories = [],
content,
onClose,
@@ -522,52 +613,56 @@ function CreatePatternModalContents({
setTitle('');
}
}
- return (0,external_React_namespaceObject.createElement)("form", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
onSubmit: event => {
event.preventDefault();
onCreate(title, syncType);
- }
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "5"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- label: (0,external_wp_i18n_namespaceObject.__)('Name'),
- value: title,
- onChange: setTitle,
- placeholder: (0,external_wp_i18n_namespaceObject.__)('My pattern'),
- className: "patterns-create-modal__name-input",
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true
- }), (0,external_React_namespaceObject.createElement)(CategorySelector, {
- categoryTerms: categoryTerms,
- onChange: setCategoryTerms,
- categoryMap: categoryMap
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'Option that makes an individual pattern synchronized'),
- help: (0,external_wp_i18n_namespaceObject.__)('Sync this pattern across multiple locations.'),
- checked: syncType === PATTERN_SYNC_TYPES.full,
- onChange: () => {
- setSyncType(syncType === PATTERN_SYNC_TYPES.full ? PATTERN_SYNC_TYPES.unsynced : PATTERN_SYNC_TYPES.full);
- }
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- variant: "tertiary",
- onClick: () => {
- onClose();
- setTitle('');
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- variant: "primary",
- type: "submit",
- "aria-disabled": !title || isSaving,
- isBusy: isSaving
- }, confirmLabel))));
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "5",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Name'),
+ value: title,
+ onChange: setTitle,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('My pattern'),
+ className: "patterns-create-modal__name-input",
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CategorySelector, {
+ categoryTerms: categoryTerms,
+ onChange: setCategoryTerms,
+ categoryMap: categoryMap
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'pattern (singular)'),
+ help: (0,external_wp_i18n_namespaceObject.__)('Sync this pattern across multiple locations.'),
+ checked: syncType === PATTERN_SYNC_TYPES.full,
+ onChange: () => {
+ setSyncType(syncType === PATTERN_SYNC_TYPES.full ? PATTERN_SYNC_TYPES.unsynced : PATTERN_SYNC_TYPES.full);
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ onClick: () => {
+ onClose();
+ setTitle('');
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "primary",
+ type: "submit",
+ "aria-disabled": !title || isSaving,
+ isBusy: isSaving,
+ children: confirmLabel
+ })]
+ })]
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/duplicate-pattern-modal.js
-
/**
* WordPress dependencies
*/
@@ -581,6 +676,7 @@ function CreatePatternModalContents({
*/
+
function getTermLabels(pattern, categories) {
// Theme patterns rely on core pattern categories.
if (pattern.type !== PATTERN_TYPES.user) {
@@ -642,7 +738,7 @@ function DuplicatePatternModal({
if (!pattern) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(CreatePatternModal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CreatePatternModal, {
modalTitle: (0,external_wp_i18n_namespaceObject.__)('Duplicate pattern'),
confirmLabel: (0,external_wp_i18n_namespaceObject.__)('Duplicate'),
onClose: onClose,
@@ -652,7 +748,6 @@ function DuplicatePatternModal({
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/rename-pattern-modal.js
-
/**
* WordPress dependencies
*/
@@ -663,6 +758,8 @@ function DuplicatePatternModal({
+
+
function RenamePatternModal({
onClose,
onError,
@@ -717,52 +814,58 @@ function RenamePatternModal({
onClose?.();
setName('');
};
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
title: (0,external_wp_i18n_namespaceObject.__)('Rename'),
...props,
- onRequestClose: onClose
- }, (0,external_React_namespaceObject.createElement)("form", {
- onSubmit: onRename
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "5"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Name'),
- value: name,
- onChange: setName,
- required: true
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- variant: "tertiary",
- onClick: onRequestClose
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- variant: "primary",
- type: "submit"
- }, (0,external_wp_i18n_namespaceObject.__)('Save'))))));
+ onRequestClose: onClose,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ onSubmit: onRename,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "5",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Name'),
+ value: name,
+ onChange: setName,
+ required: true
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ onClick: onRequestClose,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "primary",
+ type: "submit",
+ children: (0,external_wp_i18n_namespaceObject.__)('Save')
+ })]
+ })]
+ })
+ })
+ });
}
;// CONCATENATED MODULE: external ["wp","primitives"]
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/symbol.js
-
/**
* WordPress dependencies
*/
-const symbol = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const symbol = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
+ })
+});
/* harmony default export */ const library_symbol = (symbol);
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/pattern-convert-button.js
-
/**
* WordPress dependencies
*/
@@ -792,6 +895,9 @@ const symbol = (0,external_React_namespaceObject.createElement)(external_wp_prim
* @param {()=>void} props.closeBlockSettingsMenu Callback to close the block settings menu dropdown.
* @return {import('react').ComponentType} The menu control or null.
*/
+
+
+
function PatternConvertButton({
clientIds,
rootClientId,
@@ -865,29 +971,31 @@ function PatternConvertButton({
});
setIsModalOpen(false);
};
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- icon: library_symbol,
- onClick: () => setIsModalOpen(true),
- "aria-expanded": isModalOpen,
- "aria-haspopup": "dialog"
- }, (0,external_wp_i18n_namespaceObject.__)('Create pattern')), isModalOpen && (0,external_React_namespaceObject.createElement)(CreatePatternModal, {
- content: getContent,
- onSuccess: pattern => {
- handleSuccess(pattern);
- },
- onError: () => {
- setIsModalOpen(false);
- },
- onClose: () => {
- setIsModalOpen(false);
- }
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: library_symbol,
+ onClick: () => setIsModalOpen(true),
+ "aria-expanded": isModalOpen,
+ "aria-haspopup": "dialog",
+ children: (0,external_wp_i18n_namespaceObject.__)('Create pattern')
+ }), isModalOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CreatePatternModal, {
+ content: getContent,
+ onSuccess: pattern => {
+ handleSuccess(pattern);
+ },
+ onError: () => {
+ setIsModalOpen(false);
+ },
+ onClose: () => {
+ setIsModalOpen(false);
+ }
+ })]
+ });
}
;// CONCATENATED MODULE: external ["wp","url"]
const external_wp_url_namespaceObject = window["wp"]["url"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/patterns-manage-button.js
-
/**
* WordPress dependencies
*/
@@ -904,6 +1012,9 @@ const external_wp_url_namespaceObject = window["wp"]["url"];
*/
+
+
+
function PatternsManageButton({
clientId
}) {
@@ -915,14 +1026,12 @@ function PatternsManageButton({
const {
getBlock,
canRemoveBlock,
- getBlockCount,
- getSettings
+ getBlockCount
} = select(external_wp_blockEditor_namespaceObject.store);
const {
canUser
} = select(external_wp_coreData_namespaceObject.store);
const reusableBlock = getBlock(clientId);
- const isBlockTheme = getSettings().__unstableIsBlockBasedTheme;
return {
canRemove: canRemoveBlock(clientId),
isVisible: !!reusableBlock && (0,external_wp_blocks_namespaceObject.isReusableBlock)(reusableBlock) && !!canUser('update', 'blocks', reusableBlock.attributes.ref),
@@ -930,7 +1039,7 @@ function PatternsManageButton({
// The site editor and templates both check whether the user
// has edit_theme_options capabilities. We can leverage that here
// and omit the manage patterns link if the user can't access it.
- managePatternsUrl: isBlockTheme && canUser('read', 'templates') ? (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', {
+ managePatternsUrl: canUser('create', 'templates') ? (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', {
path: '/patterns'
}) : (0,external_wp_url_namespaceObject.addQueryArgs)('edit.php', {
post_type: 'wp_block'
@@ -946,16 +1055,19 @@ function PatternsManageButton({
if (!isVisible) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, canRemove && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => convertSyncedPatternToStatic(clientId)
- }, (0,external_wp_i18n_namespaceObject.__)('Detach')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- href: managePatternsUrl
- }, (0,external_wp_i18n_namespaceObject.__)('Manage patterns')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [canRemove && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => convertSyncedPatternToStatic(clientId),
+ children: (0,external_wp_i18n_namespaceObject.__)('Detach')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ href: managePatternsUrl,
+ children: (0,external_wp_i18n_namespaceObject.__)('Manage patterns')
+ })]
+ });
}
/* harmony default export */ const patterns_manage_button = (PatternsManageButton);
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/index.js
-
/**
* WordPress dependencies
*/
@@ -966,25 +1078,31 @@ function PatternsManageButton({
*/
+
+
+
function PatternsMenuItems({
rootClientId
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockSettingsMenuControls, null, ({
- selectedClientIds,
- onClose
- }) => (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(PatternConvertButton, {
- clientIds: selectedClientIds,
- rootClientId: rootClientId,
- closeBlockSettingsMenu: onClose
- }), selectedClientIds.length === 1 && (0,external_React_namespaceObject.createElement)(patterns_manage_button, {
- clientId: selectedClientIds[0]
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockSettingsMenuControls, {
+ children: ({
+ selectedClientIds,
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternConvertButton, {
+ clientIds: selectedClientIds,
+ rootClientId: rootClientId,
+ closeBlockSettingsMenu: onClose
+ }), selectedClientIds.length === 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(patterns_manage_button, {
+ clientId: selectedClientIds[0]
+ })]
+ })
+ });
}
;// CONCATENATED MODULE: external ["wp","a11y"]
const external_wp_a11y_namespaceObject = window["wp"]["a11y"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/rename-pattern-category-modal.js
-
/**
* WordPress dependencies
*/
@@ -1001,6 +1119,8 @@ const external_wp_a11y_namespaceObject = window["wp"]["a11y"];
* Internal dependencies
*/
+
+
function RenamePatternCategoryModal({
category,
existingCategories,
@@ -1088,44 +1208,174 @@ function RenamePatternCategoryModal({
onClose();
setName('');
};
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
title: (0,external_wp_i18n_namespaceObject.__)('Rename'),
onRequestClose: onRequestClose,
- ...props
- }, (0,external_React_namespaceObject.createElement)("form", {
- onSubmit: onSave
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "5"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "2"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- ref: textControlRef,
- __nextHasNoMarginBottom: true,
- __next40pxDefaultSize: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Name'),
- value: name,
- onChange: onChange,
- "aria-describedby": validationMessageId,
- required: true
- }), validationMessage && (0,external_React_namespaceObject.createElement)("span", {
- className: "patterns-rename-pattern-category-modal__validation-message",
- id: validationMessageId
- }, validationMessage)), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- variant: "tertiary",
- onClick: onRequestClose
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- __next40pxDefaultSize: true,
- variant: "primary",
- type: "submit",
- "aria-disabled": !name || name === category.name || isSaving,
- isBusy: isSaving
- }, (0,external_wp_i18n_namespaceObject.__)('Save'))))));
+ ...props,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ onSubmit: onSave,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "5",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "2",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ ref: textControlRef,
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Name'),
+ value: name,
+ onChange: onChange,
+ "aria-describedby": validationMessageId,
+ required: true
+ }), validationMessage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ className: "patterns-rename-pattern-category-modal__validation-message",
+ id: validationMessageId,
+ children: validationMessage
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ onClick: onRequestClose,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "primary",
+ type: "submit",
+ "aria-disabled": !name || name === category.name || isSaving,
+ isBusy: isSaving,
+ children: (0,external_wp_i18n_namespaceObject.__)('Save')
+ })]
+ })]
+ })
+ })
+ });
+}
+
+;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/allow-overrides-modal.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+
+function AllowOverridesModal({
+ placeholder,
+ initialName = '',
+ onClose,
+ onSave
+}) {
+ const [editedBlockName, setEditedBlockName] = (0,external_wp_element_namespaceObject.useState)(initialName);
+ const descriptionId = (0,external_wp_element_namespaceObject.useId)();
+ const isNameValid = !!editedBlockName.trim();
+ const handleSubmit = () => {
+ if (editedBlockName !== initialName) {
+ const message = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: new name/label for the block */
+ (0,external_wp_i18n_namespaceObject.__)('Block name changed to: "%s".'), editedBlockName);
+
+ // Must be assertive to immediately announce change.
+ (0,external_wp_a11y_namespaceObject.speak)(message, 'assertive');
+ }
+ onSave(editedBlockName);
+
+ // Immediate close avoids ability to hit save multiple times.
+ onClose();
+ };
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Enable overrides'),
+ onRequestClose: onClose,
+ focusOnMount: "firstContentElement",
+ aria: {
+ describedby: descriptionId
+ },
+ size: "small",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ onSubmit: event => {
+ event.preventDefault();
+ if (!isNameValid) {
+ return;
+ }
+ handleSubmit();
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "6",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ id: descriptionId,
+ children: (0,external_wp_i18n_namespaceObject.__)('Overrides are changes you make to a block within a synced pattern instance. Use overrides to customize a synced pattern instance to suit its new context. Name this block to specify an override.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ __next40pxDefaultSize: true,
+ value: editedBlockName,
+ label: (0,external_wp_i18n_namespaceObject.__)('Name'),
+ help: (0,external_wp_i18n_namespaceObject.__)('For example, if you are creating a recipe pattern, you use "Recipe Title", "Recipe Description", etc.'),
+ placeholder: placeholder,
+ onChange: setEditedBlockName
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ onClick: onClose,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ "aria-disabled": !isNameValid,
+ variant: "primary",
+ type: "submit",
+ children: (0,external_wp_i18n_namespaceObject.__)('Enable')
+ })]
+ })]
+ })
+ })
+ });
+}
+function DisallowOverridesModal({
+ onClose,
+ onSave
+}) {
+ const descriptionId = (0,external_wp_element_namespaceObject.useId)();
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Disable overrides'),
+ onRequestClose: onClose,
+ aria: {
+ describedby: descriptionId
+ },
+ size: "small",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ onSubmit: event => {
+ event.preventDefault();
+ onSave();
+ onClose();
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "6",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ id: descriptionId,
+ children: (0,external_wp_i18n_namespaceObject.__)('Are you sure you want to disable overrides? Disabling overrides will revert all applied overrides for this block throughout instances of this pattern.')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ onClick: onClose,
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ variant: "primary",
+ type: "submit",
+ children: (0,external_wp_i18n_namespaceObject.__)('Disable')
+ })]
+ })]
+ })
+ })
+ });
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/use-set-pattern-bindings.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/pattern-overrides-controls.js
/**
* WordPress dependencies
*/
@@ -1139,91 +1389,188 @@ function RenamePatternCategoryModal({
*/
-function removeBindings(bindings, syncedAttributes) {
- let updatedBindings = {};
- for (const attributeName of syncedAttributes) {
- // Omit any pattern override bindings from the `updatedBindings` object.
- if (bindings?.[attributeName]?.source !== 'core/pattern-overrides' && bindings?.[attributeName]?.source !== undefined) {
- updatedBindings[attributeName] = bindings[attributeName];
- }
- }
+
+
+
+function removeBindings(bindings) {
+ let updatedBindings = {
+ ...bindings
+ };
+ delete updatedBindings.__default;
if (!Object.keys(updatedBindings).length) {
updatedBindings = undefined;
}
return updatedBindings;
}
-function addBindings(bindings, syncedAttributes) {
- const updatedBindings = {
- ...bindings
+function addBindings(bindings) {
+ return {
+ ...bindings,
+ __default: {
+ source: PATTERN_OVERRIDES_BINDING_SOURCE
+ }
};
- for (const attributeName of syncedAttributes) {
- if (!bindings?.[attributeName]) {
- updatedBindings[attributeName] = {
- source: 'core/pattern-overrides'
- };
+}
+function PatternOverridesControls({
+ attributes,
+ setAttributes,
+ name: blockName
+}) {
+ const controlId = (0,external_wp_element_namespaceObject.useId)();
+ const [showAllowOverridesModal, setShowAllowOverridesModal] = (0,external_wp_element_namespaceObject.useState)(false);
+ const [showDisallowOverridesModal, setShowDisallowOverridesModal] = (0,external_wp_element_namespaceObject.useState)(false);
+ const hasName = !!attributes.metadata?.name;
+ const defaultBindings = attributes.metadata?.bindings?.__default;
+ const hasOverrides = hasName && defaultBindings?.source === PATTERN_OVERRIDES_BINDING_SOURCE;
+ const isConnectedToOtherSources = defaultBindings?.source && defaultBindings.source !== PATTERN_OVERRIDES_BINDING_SOURCE;
+ function updateBindings(isChecked, customName) {
+ const prevBindings = attributes?.metadata?.bindings;
+ const updatedBindings = isChecked ? addBindings(prevBindings) : removeBindings(prevBindings);
+ const updatedMetadata = {
+ ...attributes.metadata,
+ bindings: updatedBindings
+ };
+ if (customName) {
+ updatedMetadata.name = customName;
}
+ setAttributes({
+ metadata: updatedMetadata
+ });
}
- return updatedBindings;
+
+ // Avoid overwriting other (e.g. meta) bindings.
+ if (isConnectedToOtherSources) {
+ return null;
+ }
+ const hasUnsupportedImageAttributes = blockName === 'core/image' && (!!attributes.caption?.length || !!attributes.href?.length);
+ const helpText = !hasOverrides && hasUnsupportedImageAttributes ? (0,external_wp_i18n_namespaceObject.__)(`Overrides currently don't support image captions or links. Remove the caption or link first before enabling overrides.`) : (0,external_wp_i18n_namespaceObject.__)('Allow changes to this block throughout instances of this pattern.');
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ group: "advanced",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl, {
+ id: controlId,
+ label: (0,external_wp_i18n_namespaceObject.__)('Overrides'),
+ help: helpText,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ __next40pxDefaultSize: true,
+ className: "pattern-overrides-control__allow-overrides-button",
+ variant: "secondary",
+ "aria-haspopup": "dialog",
+ onClick: () => {
+ if (hasOverrides) {
+ setShowDisallowOverridesModal(true);
+ } else {
+ setShowAllowOverridesModal(true);
+ }
+ },
+ disabled: !hasOverrides && hasUnsupportedImageAttributes,
+ __experimentalIsFocusable: true,
+ children: hasOverrides ? (0,external_wp_i18n_namespaceObject.__)('Disable overrides') : (0,external_wp_i18n_namespaceObject.__)('Enable overrides')
+ })
+ })
+ }), showAllowOverridesModal && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AllowOverridesModal, {
+ initialName: attributes.metadata?.name,
+ onClose: () => setShowAllowOverridesModal(false),
+ onSave: newName => {
+ updateBindings(true, newName);
+ }
+ }), showDisallowOverridesModal && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DisallowOverridesModal, {
+ onClose: () => setShowDisallowOverridesModal(false),
+ onSave: () => updateBindings(false)
+ })]
+ });
}
-function useSetPatternBindings({
- name,
- attributes,
- setAttributes
-}, currentPostType) {
- var _attributes$metadata$, _usePrevious;
- const hasPatternOverridesSource = (0,external_wp_data_namespaceObject.useSelect)(select => {
- const {
- getBlockBindingsSource
- } = unlock(select(external_wp_blocks_namespaceObject.store));
+/* harmony default export */ const pattern_overrides_controls = (PatternOverridesControls);
- // For editing link to the site editor if the theme and user permissions support it.
- return !!getBlockBindingsSource('core/pattern-overrides');
- }, []);
- const metadataName = (_attributes$metadata$ = attributes?.metadata?.name) !== null && _attributes$metadata$ !== void 0 ? _attributes$metadata$ : '';
- const prevMetadataName = (_usePrevious = (0,external_wp_compose_namespaceObject.usePrevious)(metadataName)) !== null && _usePrevious !== void 0 ? _usePrevious : '';
- const bindings = attributes?.metadata?.bindings;
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- // Bindings should only be created when editing a wp_block post type,
- // and also when there's a change to the user-given name for the block.
- // Also check that the pattern overrides source is registered.
- if (!hasPatternOverridesSource || currentPostType !== 'wp_block' || metadataName === prevMetadataName) {
+;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/reset-overrides-control.js
+/**
+ * WordPress dependencies
+ */
+
+
+
+
+
+const CONTENT = 'content';
+function ResetOverridesControl(props) {
+ const name = props.attributes.metadata?.name;
+ const registry = (0,external_wp_data_namespaceObject.useRegistry)();
+ const isOverriden = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ if (!name) {
return;
}
- const syncedAttributes = PARTIAL_SYNCING_SUPPORTED_BLOCKS[name];
- const attributeSources = syncedAttributes.map(attributeName => attributes.metadata?.bindings?.[attributeName]?.source);
- const isConnectedToOtherSources = attributeSources.every(source => source && source !== 'core/pattern-overrides');
-
- // Avoid overwriting other (e.g. meta) bindings.
- if (isConnectedToOtherSources) {
+ const {
+ getBlockAttributes,
+ getBlockParentsByBlockName
+ } = select(external_wp_blockEditor_namespaceObject.store);
+ const [patternClientId] = getBlockParentsByBlockName(props.clientId, 'core/block', true);
+ if (!patternClientId) {
return;
}
-
- // The user-given name for the block was deleted, remove the bindings.
- if (!metadataName?.length && prevMetadataName?.length) {
- const updatedBindings = removeBindings(bindings, syncedAttributes);
- setAttributes({
- metadata: {
- ...attributes.metadata,
- bindings: updatedBindings
- }
- });
+ const overrides = getBlockAttributes(patternClientId)[CONTENT];
+ if (!overrides) {
+ return;
}
-
- // The user-given name for the block was set, set the bindings.
- if (!prevMetadataName?.length && metadataName.length) {
- const updatedBindings = addBindings(bindings, syncedAttributes);
- setAttributes({
- metadata: {
- ...attributes.metadata,
- bindings: updatedBindings
- }
- });
+ return overrides.hasOwnProperty(name);
+ }, [props.clientId, name]);
+ function onClick() {
+ const {
+ getBlockAttributes,
+ getBlockParentsByBlockName
+ } = registry.select(external_wp_blockEditor_namespaceObject.store);
+ const [patternClientId] = getBlockParentsByBlockName(props.clientId, 'core/block', true);
+ if (!patternClientId) {
+ return;
+ }
+ const overrides = getBlockAttributes(patternClientId)[CONTENT];
+ if (!overrides.hasOwnProperty(name)) {
+ return;
+ }
+ const {
+ updateBlockAttributes,
+ __unstableMarkLastChangeAsPersistent
+ } = registry.dispatch(external_wp_blockEditor_namespaceObject.store);
+ __unstableMarkLastChangeAsPersistent();
+ let newOverrides = {
+ ...overrides
+ };
+ delete newOverrides[name];
+ if (!Object.keys(newOverrides).length) {
+ newOverrides = undefined;
}
- }, [hasPatternOverridesSource, bindings, prevMetadataName, metadataName, currentPostType, name, attributes.metadata, setAttributes]);
+ updateBlockAttributes(patternClientId, {
+ [CONTENT]: newOverrides
+ });
+ }
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__unstableBlockToolbarLastItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
+ onClick: onClick,
+ disabled: !isOverriden,
+ __experimentalIsFocusable: true,
+ children: (0,external_wp_i18n_namespaceObject.__)('Reset')
+ })
+ })
+ });
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/reset-overrides-control.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/copy.js
+/**
+ * WordPress dependencies
+ */
+
+
+const copy = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"
+ })
+});
+/* harmony default export */ const library_copy = (copy);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/pattern-overrides-block-controls.js
/**
* WordPress dependencies
*/
@@ -1233,53 +1580,119 @@ function useSetPatternBindings({
-function recursivelyFindBlockWithName(blocks, name) {
- for (const block of blocks) {
- if (block.attributes.metadata?.name === name) {
- return block;
- }
- const found = recursivelyFindBlockWithName(block.innerBlocks, name);
- if (found) {
- return found;
+
+
+/**
+ * Internal dependencies
+ */
+
+
+
+
+const {
+ useBlockDisplayTitle
+} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
+function PatternOverridesToolbarIndicator({
+ clientIds
+}) {
+ const isSingleBlockSelected = clientIds.length === 1;
+ const {
+ icon,
+ firstBlockName
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ const {
+ getBlockAttributes,
+ getBlockNamesByClientId
+ } = select(external_wp_blockEditor_namespaceObject.store);
+ const {
+ getBlockType,
+ getActiveBlockVariation
+ } = select(external_wp_blocks_namespaceObject.store);
+ const blockTypeNames = getBlockNamesByClientId(clientIds);
+ const _firstBlockTypeName = blockTypeNames[0];
+ const firstBlockType = getBlockType(_firstBlockTypeName);
+ let _icon;
+ if (isSingleBlockSelected) {
+ const match = getActiveBlockVariation(_firstBlockTypeName, getBlockAttributes(clientIds[0]));
+ // Take into account active block variations.
+ _icon = match?.icon || firstBlockType.icon;
+ } else {
+ const isSelectionOfSameType = new Set(blockTypeNames).size === 1;
+ // When selection consists of blocks of multiple types, display an
+ // appropriate icon to communicate the non-uniformity.
+ _icon = isSelectionOfSameType ? firstBlockType.icon : library_copy;
}
- }
+ return {
+ icon: _icon,
+ firstBlockName: getBlockAttributes(clientIds[0]).metadata.name
+ };
+ }, [clientIds, isSingleBlockSelected]);
+ const firstBlockTitle = useBlockDisplayTitle({
+ clientId: clientIds[0],
+ maximumLength: 35
+ });
+ const blockDescription = isSingleBlockSelected ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %1s: The block type's name; %2s: The block's user-provided name (the same as the override name). */
+ (0,external_wp_i18n_namespaceObject.__)('This %1$s is editable using the "%2$s" override.'), firstBlockTitle.toLowerCase(), firstBlockName) : (0,external_wp_i18n_namespaceObject.__)('These blocks are editable using overrides.');
+ const descriptionId = (0,external_wp_element_namespaceObject.useId)();
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
+ children: toggleProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
+ className: "patterns-pattern-overrides-toolbar-indicator",
+ label: firstBlockTitle,
+ popoverProps: {
+ placement: 'bottom-start',
+ className: 'patterns-pattern-overrides-toolbar-indicator__popover'
+ },
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ icon: icon,
+ className: "patterns-pattern-overrides-toolbar-indicator-icon",
+ showColors: true
+ })
+ }),
+ toggleProps: {
+ describedBy: blockDescription,
+ ...toggleProps
+ },
+ menuProps: {
+ orientation: 'both',
+ 'aria-describedby': descriptionId
+ },
+ children: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ id: descriptionId,
+ children: blockDescription
+ })
+ })
+ });
}
-function ResetOverridesControl(props) {
- const registry = (0,external_wp_data_namespaceObject.useRegistry)();
- const name = props.attributes.metadata?.name;
- const patternWithOverrides = (0,external_wp_data_namespaceObject.useSelect)(select => {
- if (!name) {
- return undefined;
- }
+function PatternOverridesBlockControls() {
+ const {
+ clientIds,
+ hasPatternOverrides,
+ hasParentPattern
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
- getBlockParentsByBlockName,
- getBlocksByClientId
+ getBlockAttributes,
+ getSelectedBlockClientIds,
+ getBlockParentsByBlockName
} = select(external_wp_blockEditor_namespaceObject.store);
- const patternBlock = getBlocksByClientId(getBlockParentsByBlockName(props.clientId, 'core/block'))[0];
- if (!patternBlock?.attributes.content?.[name]) {
- return undefined;
- }
- return patternBlock;
- }, [props.clientId, name]);
- const resetOverrides = async () => {
- var _editedRecord$blocks;
- const editedRecord = await registry.resolveSelect(external_wp_coreData_namespaceObject.store).getEditedEntityRecord('postType', 'wp_block', patternWithOverrides.attributes.ref);
- const blocks = (_editedRecord$blocks = editedRecord.blocks) !== null && _editedRecord$blocks !== void 0 ? _editedRecord$blocks : (0,external_wp_blocks_namespaceObject.parse)(editedRecord.content);
- const block = recursivelyFindBlockWithName(blocks, name);
- const newAttributes = Object.assign(
- // Reset every existing attribute to undefined.
- Object.fromEntries(Object.keys(props.attributes).map(key => [key, undefined])),
- // Then assign the original attributes.
- block.attributes);
- props.setAttributes(newAttributes);
- };
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "other"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
- onClick: resetOverrides,
- disabled: !patternWithOverrides,
- __experimentalIsFocusable: true
- }, (0,external_wp_i18n_namespaceObject.__)('Reset'))));
+ const selectedClientIds = getSelectedBlockClientIds();
+ const _hasPatternOverrides = selectedClientIds.every(clientId => {
+ var _getBlockAttributes$m;
+ return Object.values((_getBlockAttributes$m = getBlockAttributes(clientId)?.metadata?.bindings) !== null && _getBlockAttributes$m !== void 0 ? _getBlockAttributes$m : {}).some(binding => binding?.source === PATTERN_OVERRIDES_BINDING_SOURCE);
+ });
+ const _hasParentPattern = selectedClientIds.every(clientId => getBlockParentsByBlockName(clientId, 'core/block', true).length > 0);
+ return {
+ clientIds: selectedClientIds,
+ hasPatternOverrides: _hasPatternOverrides,
+ hasParentPattern: _hasParentPattern
+ };
+ }, []);
+ return hasPatternOverrides && hasParentPattern ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "parent",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternOverridesToolbarIndicator, {
+ clientIds: clientIds
+ })
+ }) : null;
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/private-apis.js
@@ -1296,17 +1709,24 @@ function ResetOverridesControl(props) {
+
+
+
const privateApis = {};
lock(privateApis, {
+ OverridesPanel: OverridesPanel,
CreatePatternModal: CreatePatternModal,
CreatePatternModalContents: CreatePatternModalContents,
DuplicatePatternModal: DuplicatePatternModal,
+ isOverridableBlock: isOverridableBlock,
+ hasOverridableBlocks: hasOverridableBlocks,
useDuplicatePatternProps: useDuplicatePatternProps,
RenamePatternModal: RenamePatternModal,
PatternsMenuItems: PatternsMenuItems,
RenamePatternCategoryModal: RenamePatternCategoryModal,
- useSetPatternBindings: useSetPatternBindings,
+ PatternOverridesControls: pattern_overrides_controls,
ResetOverridesControl: ResetOverridesControl,
+ PatternOverridesBlockControls: PatternOverridesBlockControls,
useAddPatternCategory: useAddPatternCategory,
PATTERN_TYPES: PATTERN_TYPES,
PATTERN_DEFAULT_CATEGORY: PATTERN_DEFAULT_CATEGORY,
diff --git a/wp-includes/js/dist/patterns.min.js b/wp-includes/js/dist/patterns.min.js
index 24bb99d..6604034 100644
--- a/wp-includes/js/dist/patterns.min.js
+++ b/wp-includes/js/dist/patterns.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-(()=>{"use strict";var e={d:(t,n)=>{for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{privateApis:()=>q,store:()=>C});var n={};e.r(n),e.d(n,{convertSyncedPatternToStatic:()=>g,createPattern:()=>m,createPatternFromFile:()=>_,setEditingPattern:()=>y});var a={};e.r(a),e.d(a,{isEditingPattern:()=>f});const r=window.wp.data;const o=(0,r.combineReducers)({isEditingPattern:function(e={},t){return"SET_EDITING_PATTERN"===t?.type?{...e,[t.clientId]:t.isEditing}:e}}),s=window.wp.blocks,c=window.wp.coreData,i=window.wp.blockEditor,l={theme:"pattern",user:"wp_block"},u="all-patterns",d={full:"fully",unsynced:"unsynced"},p={"core/paragraph":["content"],"core/heading":["content"],"core/button":["text","url","linkTarget","rel"],"core/image":["id","url","title","alt"]},m=(e,t,n,a)=>async({registry:r})=>{const o=t===d.unsynced?{wp_pattern_sync_status:t}:void 0,s={title:e,content:n,status:"publish",meta:o,wp_pattern_category:a};return await r.dispatch(c.store).saveEntityRecord("postType","wp_block",s)},_=(e,t)=>async({dispatch:n})=>{const a=await e.text();let r;try{r=JSON.parse(a)}catch(e){throw new Error("Invalid JSON file")}if("wp_block"!==r.__file||!r.title||!r.content||"string"!=typeof r.title||"string"!=typeof r.content||r.syncStatus&&"string"!=typeof r.syncStatus)throw new Error("Invalid pattern JSON file");return await n.createPattern(r.title,r.syncStatus,r.content,t)},g=e=>({registry:t})=>{const n=t.select(i.store).getBlock(e);t.dispatch(i.store).replaceBlocks(n.clientId,function e(t){return t.map((t=>{let n=t.attributes.metadata;return n&&(n={...n},delete n.id,delete n.bindings),(0,s.cloneBlock)(t,{metadata:n&&Object.keys(n).length>0?n:void 0},e(t.innerBlocks))}))}(n.innerBlocks))};function y(e,t){return{type:"SET_EDITING_PATTERN",clientId:e,isEditing:t}}function f(e,t){return e.isEditingPattern[t]}const w=window.wp.privateApis,{lock:E,unlock:b}=(0,w.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/patterns"),S={reducer:o},C=(0,r.createReduxStore)("core/patterns",{...S});(0,r.register)(C),b(C).registerPrivateActions(n),b(C).registerPrivateSelectors(a);const k=window.React,v=window.wp.components,h=window.wp.i18n,P=window.wp.element,T=window.wp.notices,B=window.wp.compose,x=window.wp.htmlEntities,R=e=>(0,x.decodeEntities)(e),I="wp_pattern_category";function D({categoryTerms:e,onChange:t,categoryMap:n}){const[a,r]=(0,P.useState)(""),o=(0,B.useDebounce)(r,500),s=(0,P.useMemo)((()=>Array.from(n.values()).map((e=>R(e.label))).filter((e=>""===a||e.toLowerCase().includes(a.toLowerCase()))).sort(((e,t)=>e.localeCompare(t)))),[a,n]);return(0,k.createElement)(v.FormTokenField,{className:"patterns-menu-items__convert-modal-categories",value:e,suggestions:s,onChange:function(e){const n=e.reduce(((e,t)=>(e.some((e=>e.toLowerCase()===t.toLowerCase()))||e.push(t),e)),[]);t(n)},onInputChange:o,label:(0,h.__)("Categories"),tokenizeOnBlur:!0,__experimentalExpandOnFocus:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})}function N(){const{saveEntityRecord:e,invalidateResolution:t}=(0,r.useDispatch)(c.store),{corePatternCategories:n,userPatternCategories:a}=(0,r.useSelect)((e=>{const{getUserPatternCategories:t,getBlockPatternCategories:n}=e(c.store);return{corePatternCategories:n(),userPatternCategories:t()}}),[]),o=(0,P.useMemo)((()=>{const e=new Map;return a.forEach((t=>{e.set(t.label.toLowerCase(),{label:t.label,name:t.name,id:t.id})})),n.forEach((t=>{e.has(t.label.toLowerCase())||"query"===t.name||e.set(t.label.toLowerCase(),{label:t.label,name:t.name})})),e}),[a,n]);return{categoryMap:o,findOrCreateTerm:async function(n){try{const a=o.get(n.toLowerCase());if(a?.id)return a.id;const r=a?{name:a.label,slug:a.name}:{name:n},s=await e("taxonomy",I,r,{throwOnError:!0});return t("getUserPatternCategories"),s.id}catch(e){if("term_exists"!==e.code)throw e;return e.data.term_id}}}}function M({className:e="patterns-menu-items__convert-modal",modalTitle:t=(0,h.__)("Create pattern"),...n}){return(0,k.createElement)(v.Modal,{title:t,onRequestClose:n.onClose,overlayClassName:e},(0,k.createElement)(O,{...n}))}function O({confirmLabel:e=(0,h.__)("Create"),defaultCategories:t=[],content:n,onClose:a,onError:o,onSuccess:s,defaultSyncType:c=d.full,defaultTitle:i=""}){const[l,p]=(0,P.useState)(c),[m,_]=(0,P.useState)(t),[g,y]=(0,P.useState)(i),[f,w]=(0,P.useState)(!1),{createPattern:E}=b((0,r.useDispatch)(C)),{createErrorNotice:S}=(0,r.useDispatch)(T.store),{categoryMap:B,findOrCreateTerm:x}=N();return(0,k.createElement)("form",{onSubmit:e=>{e.preventDefault(),async function(e,t){if(g&&!f)try{w(!0);const a=await Promise.all(m.map((e=>x(e)))),r=await E(e,t,"function"==typeof n?n():n,a);s({pattern:r,categoryId:u})}catch(e){S(e.message,{type:"snackbar",id:"pattern-create"}),o?.()}finally{w(!1),_([]),y("")}}(g,l)}},(0,k.createElement)(v.__experimentalVStack,{spacing:"5"},(0,k.createElement)(v.TextControl,{label:(0,h.__)("Name"),value:g,onChange:y,placeholder:(0,h.__)("My pattern"),className:"patterns-create-modal__name-input",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,k.createElement)(D,{categoryTerms:m,onChange:_,categoryMap:B}),(0,k.createElement)(v.ToggleControl,{label:(0,h._x)("Synced","Option that makes an individual pattern synchronized"),help:(0,h.__)("Sync this pattern across multiple locations."),checked:l===d.full,onChange:()=>{p(l===d.full?d.unsynced:d.full)}}),(0,k.createElement)(v.__experimentalHStack,{justify:"right"},(0,k.createElement)(v.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{a(),y("")}},(0,h.__)("Cancel")),(0,k.createElement)(v.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit","aria-disabled":!g||f,isBusy:f},e))))}function A(e,t){return e.type!==l.user?t.core?.filter((t=>e.categories.includes(t.name))).map((e=>e.label)):t.user?.filter((t=>e.wp_pattern_category.includes(t.id))).map((e=>e.label))}function L({pattern:e,onSuccess:t}){const{createSuccessNotice:n}=(0,r.useDispatch)(T.store),a=(0,r.useSelect)((e=>{const{getUserPatternCategories:t,getBlockPatternCategories:n}=e(c.store);return{core:n(),user:t()}}));return e?{content:e.content,defaultCategories:A(e,a),defaultSyncType:e.type!==l.user?d.unsynced:e.wp_pattern_sync_status||d.full,defaultTitle:(0,h.sprintf)((0,h.__)("%s (Copy)"),"string"==typeof e.title?e.title:e.title.raw),onSuccess:({pattern:e})=>{n((0,h.sprintf)((0,h.__)('"%s" duplicated.'),e.title.raw),{type:"snackbar",id:"patterns-create"}),t?.({pattern:e})}}:null}const z=window.wp.primitives,U=(0,k.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,k.createElement)(z.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));function j({clientIds:e,rootClientId:t,closeBlockSettingsMenu:n}){const{createSuccessNotice:a}=(0,r.useDispatch)(T.store),{replaceBlocks:o}=(0,r.useDispatch)(i.store),{setEditingPattern:l}=b((0,r.useDispatch)(C)),[u,p]=(0,P.useState)(!1),m=(0,r.useSelect)((n=>{var a;const{canUser:r}=n(c.store),{getBlocksByClientId:o,canInsertBlockType:l,getBlockRootClientId:u}=n(i.store),d=t||(e.length>0?u(e[0]):void 0),p=null!==(a=o(e))&&void 0!==a?a:[];return!(1===p.length&&p[0]&&(0,s.isReusableBlock)(p[0])&&!!n(c.store).getEntityRecord("postType","wp_block",p[0].attributes.ref))&&l("core/block",d)&&p.every((e=>!!e&&e.isValid&&(0,s.hasBlockSupport)(e.name,"reusable",!0)))&&!!r("create","blocks")}),[e,t]),{getBlocksByClientId:_}=(0,r.useSelect)(i.store),g=(0,P.useCallback)((()=>(0,s.serialize)(_(e))),[_,e]);if(!m)return null;return(0,k.createElement)(k.Fragment,null,(0,k.createElement)(v.MenuItem,{icon:U,onClick:()=>p(!0),"aria-expanded":u,"aria-haspopup":"dialog"},(0,h.__)("Create pattern")),u&&(0,k.createElement)(M,{content:g,onSuccess:t=>{(({pattern:t})=>{if(t.wp_pattern_sync_status!==d.unsynced){const a=(0,s.createBlock)("core/block",{ref:t.id});o(e,a),l(a.clientId,!0),n()}a(t.wp_pattern_sync_status===d.unsynced?(0,h.sprintf)((0,h.__)("Unsynced pattern created: %s"),t.title.raw):(0,h.sprintf)((0,h.__)("Synced pattern created: %s"),t.title.raw),{type:"snackbar",id:"convert-to-pattern-success"}),p(!1)})(t)},onError:()=>{p(!1)},onClose:()=>{p(!1)}}))}const F=window.wp.url;const V=function({clientId:e}){const{canRemove:t,isVisible:n,managePatternsUrl:a}=(0,r.useSelect)((t=>{const{getBlock:n,canRemoveBlock:a,getBlockCount:r,getSettings:o}=t(i.store),{canUser:l}=t(c.store),u=n(e),d=o().__unstableIsBlockBasedTheme;return{canRemove:a(e),isVisible:!!u&&(0,s.isReusableBlock)(u)&&!!l("update","blocks",u.attributes.ref),innerBlockCount:r(e),managePatternsUrl:d&&l("read","templates")?(0,F.addQueryArgs)("site-editor.php",{path:"/patterns"}):(0,F.addQueryArgs)("edit.php",{post_type:"wp_block"})}}),[e]),{convertSyncedPatternToStatic:o}=b((0,r.useDispatch)(C));return n?(0,k.createElement)(k.Fragment,null,t&&(0,k.createElement)(v.MenuItem,{onClick:()=>o(e)},(0,h.__)("Detach")),(0,k.createElement)(v.MenuItem,{href:a},(0,h.__)("Manage patterns"))):null};const G=window.wp.a11y;function H(e,t){for(const n of e){if(n.attributes.metadata?.name===t)return n;const e=H(n.innerBlocks,t);if(e)return e}}const q={};E(q,{CreatePatternModal:M,CreatePatternModalContents:O,DuplicatePatternModal:function({pattern:e,onClose:t,onSuccess:n}){const a=L({pattern:e,onSuccess:n});return e?(0,k.createElement)(M,{modalTitle:(0,h.__)("Duplicate pattern"),confirmLabel:(0,h.__)("Duplicate"),onClose:t,onError:t,...a}):null},useDuplicatePatternProps:L,RenamePatternModal:function({onClose:e,onError:t,onSuccess:n,pattern:a,...o}){const s=(0,x.decodeEntities)(a.title),[i,l]=(0,P.useState)(s),[u,d]=(0,P.useState)(!1),{editEntityRecord:p,__experimentalSaveSpecifiedEntityEdits:m}=(0,r.useDispatch)(c.store),{createSuccessNotice:_,createErrorNotice:g}=(0,r.useDispatch)(T.store);return(0,k.createElement)(v.Modal,{title:(0,h.__)("Rename"),...o,onRequestClose:e},(0,k.createElement)("form",{onSubmit:async r=>{if(r.preventDefault(),i&&i!==a.title&&!u)try{await p("postType",a.type,a.id,{title:i}),d(!0),l(""),e?.();const t=await m("postType",a.type,a.id,["title"],{throwOnError:!0});n?.(t),_((0,h.__)("Pattern renamed"),{type:"snackbar",id:"pattern-update"})}catch(e){t?.();const n=e.message&&"unknown_error"!==e.code?e.message:(0,h.__)("An error occurred while renaming the pattern.");g(n,{type:"snackbar",id:"pattern-update"})}finally{d(!1),l("")}}},(0,k.createElement)(v.__experimentalVStack,{spacing:"5"},(0,k.createElement)(v.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,h.__)("Name"),value:i,onChange:l,required:!0}),(0,k.createElement)(v.__experimentalHStack,{justify:"right"},(0,k.createElement)(v.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{e?.(),l("")}},(0,h.__)("Cancel")),(0,k.createElement)(v.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit"},(0,h.__)("Save"))))))},PatternsMenuItems:function({rootClientId:e}){return(0,k.createElement)(i.BlockSettingsMenuControls,null,(({selectedClientIds:t,onClose:n})=>(0,k.createElement)(k.Fragment,null,(0,k.createElement)(j,{clientIds:t,rootClientId:e,closeBlockSettingsMenu:n}),1===t.length&&(0,k.createElement)(V,{clientId:t[0]}))))},RenamePatternCategoryModal:function({category:e,existingCategories:t,onClose:n,onError:a,onSuccess:o,...s}){const i=(0,P.useId)(),l=(0,P.useRef)(),[u,d]=(0,P.useState)((0,x.decodeEntities)(e.name)),[p,m]=(0,P.useState)(!1),[_,g]=(0,P.useState)(!1),y=_?`patterns-rename-pattern-category-modal__validation-message-${i}`:void 0,{saveEntityRecord:f,invalidateResolution:w}=(0,r.useDispatch)(c.store),{createErrorNotice:E,createSuccessNotice:b}=(0,r.useDispatch)(T.store),S=()=>{n(),d("")};return(0,k.createElement)(v.Modal,{title:(0,h.__)("Rename"),onRequestClose:S,...s},(0,k.createElement)("form",{onSubmit:async r=>{if(r.preventDefault(),!p){if(!u||u===e.name){const e=(0,h.__)("Please enter a new name for this category.");return(0,G.speak)(e,"assertive"),g(e),void l.current?.focus()}if(t.patternCategories.find((t=>t.id!==e.id&&t.label.toLowerCase()===u.toLowerCase()))){const e=(0,h.__)("This category already exists. Please use a different name.");return(0,G.speak)(e,"assertive"),g(e),void l.current?.focus()}try{m(!0);const t=await f("taxonomy",I,{id:e.id,slug:e.slug,name:u});w("getUserPatternCategories"),o?.(t),n(),b((0,h.__)("Pattern category renamed."),{type:"snackbar",id:"pattern-category-update"})}catch(e){a?.(),E(e.message,{type:"snackbar",id:"pattern-category-update"})}finally{m(!1),d("")}}}},(0,k.createElement)(v.__experimentalVStack,{spacing:"5"},(0,k.createElement)(v.__experimentalVStack,{spacing:"2"},(0,k.createElement)(v.TextControl,{ref:l,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,h.__)("Name"),value:u,onChange:e=>{_&&g(void 0),d(e)},"aria-describedby":y,required:!0}),_&&(0,k.createElement)("span",{className:"patterns-rename-pattern-category-modal__validation-message",id:y},_)),(0,k.createElement)(v.__experimentalHStack,{justify:"right"},(0,k.createElement)(v.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:S},(0,h.__)("Cancel")),(0,k.createElement)(v.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit","aria-disabled":!u||u===e.name||p,isBusy:p},(0,h.__)("Save"))))))},useSetPatternBindings:function({name:e,attributes:t,setAttributes:n},a){var o,c;const i=(0,r.useSelect)((e=>{const{getBlockBindingsSource:t}=b(e(s.store));return!!t("core/pattern-overrides")}),[]),l=null!==(o=t?.metadata?.name)&&void 0!==o?o:"",u=null!==(c=(0,B.usePrevious)(l))&&void 0!==c?c:"",d=t?.metadata?.bindings;(0,P.useEffect)((()=>{if(!i||"wp_block"!==a||l===u)return;const r=p[e];if(!r.map((e=>t.metadata?.bindings?.[e]?.source)).every((e=>e&&"core/pattern-overrides"!==e))){if(!l?.length&&u?.length){const e=function(e,t){let n={};for(const a of t)"core/pattern-overrides"!==e?.[a]?.source&&void 0!==e?.[a]?.source&&(n[a]=e[a]);return Object.keys(n).length||(n=void 0),n}(d,r);n({metadata:{...t.metadata,bindings:e}})}if(!u?.length&&l.length){const e=function(e,t){const n={...e};for(const a of t)e?.[a]||(n[a]={source:"core/pattern-overrides"});return n}(d,r);n({metadata:{...t.metadata,bindings:e}})}}}),[i,d,u,l,a,e,t.metadata,n])},ResetOverridesControl:function(e){const t=(0,r.useRegistry)(),n=e.attributes.metadata?.name,a=(0,r.useSelect)((t=>{if(!n)return;const{getBlockParentsByBlockName:a,getBlocksByClientId:r}=t(i.store),o=r(a(e.clientId,"core/block"))[0];return o?.attributes.content?.[n]?o:void 0}),[e.clientId,n]);return(0,k.createElement)(i.BlockControls,{group:"other"},(0,k.createElement)(v.ToolbarGroup,null,(0,k.createElement)(v.ToolbarButton,{onClick:async()=>{var r;const o=await t.resolveSelect(c.store).getEditedEntityRecord("postType","wp_block",a.attributes.ref),i=H(null!==(r=o.blocks)&&void 0!==r?r:(0,s.parse)(o.content),n),l=Object.assign(Object.fromEntries(Object.keys(e.attributes).map((e=>[e,void 0]))),i.attributes);e.setAttributes(l)},disabled:!a,__experimentalIsFocusable:!0},(0,h.__)("Reset"))))},useAddPatternCategory:N,PATTERN_TYPES:l,PATTERN_DEFAULT_CATEGORY:u,PATTERN_USER_CATEGORY:"my-patterns",EXCLUDED_PATTERN_SOURCES:["core","pattern-directory/core","pattern-directory/featured"],PATTERN_SYNC_TYPES:d,PARTIAL_SYNCING_SUPPORTED_BLOCKS:p}),(window.wp=window.wp||{}).patterns=t})(); \ No newline at end of file
+(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{privateApis:()=>ee,store:()=>k});var n={};e.r(n),e.d(n,{convertSyncedPatternToStatic:()=>h,createPattern:()=>m,createPatternFromFile:()=>g,setEditingPattern:()=>y});var r={};e.r(r),e.d(r,{isEditingPattern:()=>f});const a=window.wp.data;const s=(0,a.combineReducers)({isEditingPattern:function(e={},t){return"SET_EDITING_PATTERN"===t?.type?{...e,[t.clientId]:t.isEditing}:e}}),o=window.wp.blocks,i=window.wp.coreData,c=window.wp.blockEditor,l={theme:"pattern",user:"wp_block"},d="all-patterns",u={full:"fully",unsynced:"unsynced"},p={"core/paragraph":["content"],"core/heading":["content"],"core/button":["text","url","linkTarget","rel"],"core/image":["id","url","title","alt"]},_="core/pattern-overrides",m=(e,t,n,r)=>async({registry:a})=>{const s=t===u.unsynced?{wp_pattern_sync_status:t}:void 0,o={title:e,content:n,status:"publish",meta:s,wp_pattern_category:r};return await a.dispatch(i.store).saveEntityRecord("postType","wp_block",o)},g=(e,t)=>async({dispatch:n})=>{const r=await e.text();let a;try{a=JSON.parse(r)}catch(e){throw new Error("Invalid JSON file")}if("wp_block"!==a.__file||!a.title||!a.content||"string"!=typeof a.title||"string"!=typeof a.content||a.syncStatus&&"string"!=typeof a.syncStatus)throw new Error("Invalid pattern JSON file");return await n.createPattern(a.title,a.syncStatus,a.content,t)},h=e=>({registry:t})=>{const n=t.select(c.store).getBlock(e),r=n.attributes?.content;const a=t.select(c.store).getBlocks(n.clientId);t.dispatch(c.store).replaceBlocks(n.clientId,function e(t){return t.map((t=>{let n=t.attributes.metadata;if(n&&(n={...n},delete n.id,delete n.bindings,r?.[n.name]))for(const[e,a]of Object.entries(r[n.name]))(0,o.getBlockType)(t.name)?.attributes[e]&&(t.attributes[e]=a);return(0,o.cloneBlock)(t,{metadata:n&&Object.keys(n).length>0?n:void 0},e(t.innerBlocks))}))}(a))};function y(e,t){return{type:"SET_EDITING_PATTERN",clientId:e,isEditing:t}}function f(e,t){return e.isEditingPattern[t]}const x=window.wp.privateApis,{lock:b,unlock:v}=(0,x.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/patterns"),w={reducer:s},k=(0,a.createReduxStore)("core/patterns",{...w});(0,a.register)(k),v(k).registerPrivateActions(n),v(k).registerPrivateSelectors(r);const S=window.wp.components,C=window.wp.element,j=window.wp.i18n;function B(e){return Object.keys(p).includes(e.name)&&!!e.attributes.metadata?.name&&!!e.attributes.metadata?.bindings&&Object.values(e.attributes.metadata.bindings).some((e=>"core/pattern-overrides"===e.source))}const P=window.ReactJSXRuntime,{BlockQuickNavigation:T}=v(c.privateApis);const E=window.wp.notices,I=window.wp.compose,D=window.wp.htmlEntities,N=e=>(0,D.decodeEntities)(e),R="wp_pattern_category";function O({categoryTerms:e,onChange:t,categoryMap:n}){const[r,a]=(0,C.useState)(""),s=(0,I.useDebounce)(a,500),o=(0,C.useMemo)((()=>Array.from(n.values()).map((e=>N(e.label))).filter((e=>""===r||e.toLowerCase().includes(r.toLowerCase()))).sort(((e,t)=>e.localeCompare(t)))),[r,n]);return(0,P.jsx)(S.FormTokenField,{className:"patterns-menu-items__convert-modal-categories",value:e,suggestions:o,onChange:function(e){const n=e.reduce(((e,t)=>(e.some((e=>e.toLowerCase()===t.toLowerCase()))||e.push(t),e)),[]);t(n)},onInputChange:s,label:(0,j.__)("Categories"),tokenizeOnBlur:!0,__experimentalExpandOnFocus:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})}function M(){const{saveEntityRecord:e,invalidateResolution:t}=(0,a.useDispatch)(i.store),{corePatternCategories:n,userPatternCategories:r}=(0,a.useSelect)((e=>{const{getUserPatternCategories:t,getBlockPatternCategories:n}=e(i.store);return{corePatternCategories:n(),userPatternCategories:t()}}),[]),s=(0,C.useMemo)((()=>{const e=new Map;return r.forEach((t=>{e.set(t.label.toLowerCase(),{label:t.label,name:t.name,id:t.id})})),n.forEach((t=>{e.has(t.label.toLowerCase())||"query"===t.name||e.set(t.label.toLowerCase(),{label:t.label,name:t.name})})),e}),[r,n]);return{categoryMap:s,findOrCreateTerm:async function(n){try{const r=s.get(n.toLowerCase());if(r?.id)return r.id;const a=r?{name:r.label,slug:r.name}:{name:n},o=await e("taxonomy",R,a,{throwOnError:!0});return t("getUserPatternCategories"),o.id}catch(e){if("term_exists"!==e.code)throw e;return e.data.term_id}}}}function A({className:e="patterns-menu-items__convert-modal",modalTitle:t,...n}){const r=(0,a.useSelect)((e=>e(i.store).getPostType(l.user)?.labels?.add_new_item),[]);return(0,P.jsx)(S.Modal,{title:t||r,onRequestClose:n.onClose,overlayClassName:e,children:(0,P.jsx)(z,{...n})})}function z({confirmLabel:e=(0,j.__)("Add"),defaultCategories:t=[],content:n,onClose:r,onError:s,onSuccess:o,defaultSyncType:i=u.full,defaultTitle:c=""}){const[l,p]=(0,C.useState)(i),[_,m]=(0,C.useState)(t),[g,h]=(0,C.useState)(c),[y,f]=(0,C.useState)(!1),{createPattern:x}=v((0,a.useDispatch)(k)),{createErrorNotice:b}=(0,a.useDispatch)(E.store),{categoryMap:w,findOrCreateTerm:B}=M();return(0,P.jsx)("form",{onSubmit:e=>{e.preventDefault(),async function(e,t){if(g&&!y)try{f(!0);const r=await Promise.all(_.map((e=>B(e)))),a=await x(e,t,"function"==typeof n?n():n,r);o({pattern:a,categoryId:d})}catch(e){b(e.message,{type:"snackbar",id:"pattern-create"}),s?.()}finally{f(!1),m([]),h("")}}(g,l)},children:(0,P.jsxs)(S.__experimentalVStack,{spacing:"5",children:[(0,P.jsx)(S.TextControl,{label:(0,j.__)("Name"),value:g,onChange:h,placeholder:(0,j.__)("My pattern"),className:"patterns-create-modal__name-input",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,P.jsx)(O,{categoryTerms:_,onChange:m,categoryMap:w}),(0,P.jsx)(S.ToggleControl,{label:(0,j._x)("Synced","pattern (singular)"),help:(0,j.__)("Sync this pattern across multiple locations."),checked:l===u.full,onChange:()=>{p(l===u.full?u.unsynced:u.full)}}),(0,P.jsxs)(S.__experimentalHStack,{justify:"right",children:[(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{r(),h("")},children:(0,j.__)("Cancel")}),(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit","aria-disabled":!g||y,isBusy:y,children:e})]})]})})}function L(e,t){return e.type!==l.user?t.core?.filter((t=>e.categories.includes(t.name))).map((e=>e.label)):t.user?.filter((t=>e.wp_pattern_category.includes(t.id))).map((e=>e.label))}function U({pattern:e,onSuccess:t}){const{createSuccessNotice:n}=(0,a.useDispatch)(E.store),r=(0,a.useSelect)((e=>{const{getUserPatternCategories:t,getBlockPatternCategories:n}=e(i.store);return{core:n(),user:t()}}));return e?{content:e.content,defaultCategories:L(e,r),defaultSyncType:e.type!==l.user?u.unsynced:e.wp_pattern_sync_status||u.full,defaultTitle:(0,j.sprintf)((0,j.__)("%s (Copy)"),"string"==typeof e.title?e.title:e.title.raw),onSuccess:({pattern:e})=>{n((0,j.sprintf)((0,j.__)('"%s" duplicated.'),e.title.raw),{type:"snackbar",id:"patterns-create"}),t?.({pattern:e})}}:null}const F=window.wp.primitives,V=(0,P.jsx)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,P.jsx)(F.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})});function H({clientIds:e,rootClientId:t,closeBlockSettingsMenu:n}){const{createSuccessNotice:r}=(0,a.useDispatch)(E.store),{replaceBlocks:s}=(0,a.useDispatch)(c.store),{setEditingPattern:l}=v((0,a.useDispatch)(k)),[d,p]=(0,C.useState)(!1),_=(0,a.useSelect)((n=>{var r;const{canUser:a}=n(i.store),{getBlocksByClientId:s,canInsertBlockType:l,getBlockRootClientId:d}=n(c.store),u=t||(e.length>0?d(e[0]):void 0),p=null!==(r=s(e))&&void 0!==r?r:[];return!(1===p.length&&p[0]&&(0,o.isReusableBlock)(p[0])&&!!n(i.store).getEntityRecord("postType","wp_block",p[0].attributes.ref))&&l("core/block",u)&&p.every((e=>!!e&&e.isValid&&(0,o.hasBlockSupport)(e.name,"reusable",!0)))&&!!a("create","blocks")}),[e,t]),{getBlocksByClientId:m}=(0,a.useSelect)(c.store),g=(0,C.useCallback)((()=>(0,o.serialize)(m(e))),[m,e]);if(!_)return null;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(S.MenuItem,{icon:V,onClick:()=>p(!0),"aria-expanded":d,"aria-haspopup":"dialog",children:(0,j.__)("Create pattern")}),d&&(0,P.jsx)(A,{content:g,onSuccess:t=>{(({pattern:t})=>{if(t.wp_pattern_sync_status!==u.unsynced){const r=(0,o.createBlock)("core/block",{ref:t.id});s(e,r),l(r.clientId,!0),n()}r(t.wp_pattern_sync_status===u.unsynced?(0,j.sprintf)((0,j.__)("Unsynced pattern created: %s"),t.title.raw):(0,j.sprintf)((0,j.__)("Synced pattern created: %s"),t.title.raw),{type:"snackbar",id:"convert-to-pattern-success"}),p(!1)})(t)},onError:()=>{p(!1)},onClose:()=>{p(!1)}})]})}const q=window.wp.url;const G=function({clientId:e}){const{canRemove:t,isVisible:n,managePatternsUrl:r}=(0,a.useSelect)((t=>{const{getBlock:n,canRemoveBlock:r,getBlockCount:a}=t(c.store),{canUser:s}=t(i.store),l=n(e);return{canRemove:r(e),isVisible:!!l&&(0,o.isReusableBlock)(l)&&!!s("update","blocks",l.attributes.ref),innerBlockCount:a(e),managePatternsUrl:s("create","templates")?(0,q.addQueryArgs)("site-editor.php",{path:"/patterns"}):(0,q.addQueryArgs)("edit.php",{post_type:"wp_block"})}}),[e]),{convertSyncedPatternToStatic:s}=v((0,a.useDispatch)(k));return n?(0,P.jsxs)(P.Fragment,{children:[t&&(0,P.jsx)(S.MenuItem,{onClick:()=>s(e),children:(0,j.__)("Detach")}),(0,P.jsx)(S.MenuItem,{href:r,children:(0,j.__)("Manage patterns")})]}):null};const Y=window.wp.a11y;function J({placeholder:e,initialName:t="",onClose:n,onSave:r}){const[a,s]=(0,C.useState)(t),o=(0,C.useId)(),i=!!a.trim();return(0,P.jsx)(S.Modal,{title:(0,j.__)("Enable overrides"),onRequestClose:n,focusOnMount:"firstContentElement",aria:{describedby:o},size:"small",children:(0,P.jsx)("form",{onSubmit:e=>{e.preventDefault(),i&&(()=>{if(a!==t){const e=(0,j.sprintf)((0,j.__)('Block name changed to: "%s".'),a);(0,Y.speak)(e,"assertive")}r(a),n()})()},children:(0,P.jsxs)(S.__experimentalVStack,{spacing:"6",children:[(0,P.jsx)(S.__experimentalText,{id:o,children:(0,j.__)("Overrides are changes you make to a block within a synced pattern instance. Use overrides to customize a synced pattern instance to suit its new context. Name this block to specify an override.")}),(0,P.jsx)(S.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:a,label:(0,j.__)("Name"),help:(0,j.__)('For example, if you are creating a recipe pattern, you use "Recipe Title", "Recipe Description", etc.'),placeholder:e,onChange:s}),(0,P.jsxs)(S.__experimentalHStack,{justify:"right",children:[(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:n,children:(0,j.__)("Cancel")}),(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,"aria-disabled":!i,variant:"primary",type:"submit",children:(0,j.__)("Enable")})]})]})})})}function Q({onClose:e,onSave:t}){const n=(0,C.useId)();return(0,P.jsx)(S.Modal,{title:(0,j.__)("Disable overrides"),onRequestClose:e,aria:{describedby:n},size:"small",children:(0,P.jsx)("form",{onSubmit:n=>{n.preventDefault(),t(),e()},children:(0,P.jsxs)(S.__experimentalVStack,{spacing:"6",children:[(0,P.jsx)(S.__experimentalText,{id:n,children:(0,j.__)("Are you sure you want to disable overrides? Disabling overrides will revert all applied overrides for this block throughout instances of this pattern.")}),(0,P.jsxs)(S.__experimentalHStack,{justify:"right",children:[(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:(0,j.__)("Cancel")}),(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,j.__)("Disable")})]})]})})})}const Z=function({attributes:e,setAttributes:t,name:n}){const r=(0,C.useId)(),[a,s]=(0,C.useState)(!1),[o,i]=(0,C.useState)(!1),l=!!e.metadata?.name,d=e.metadata?.bindings?.__default,u=l&&d?.source===_;function p(n,r){const a=e?.metadata?.bindings,s=n?(o=a,{...o,__default:{source:_}}):function(e){let t={...e};return delete t.__default,Object.keys(t).length||(t=void 0),t}(a);var o;const i={...e.metadata,bindings:s};r&&(i.name=r),t({metadata:i})}if(d?.source&&d.source!==_)return null;const m=!("core/image"!==n||!e.caption?.length&&!e.href?.length),g=!u&&m?(0,j.__)("Overrides currently don't support image captions or links. Remove the caption or link first before enabling overrides."):(0,j.__)("Allow changes to this block throughout instances of this pattern.");return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(c.InspectorControls,{group:"advanced",children:(0,P.jsx)(S.BaseControl,{id:r,label:(0,j.__)("Overrides"),help:g,children:(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,className:"pattern-overrides-control__allow-overrides-button",variant:"secondary","aria-haspopup":"dialog",onClick:()=>{u?i(!0):s(!0)},disabled:!u&&m,__experimentalIsFocusable:!0,children:u?(0,j.__)("Disable overrides"):(0,j.__)("Enable overrides")})})}),a&&(0,P.jsx)(J,{initialName:e.metadata?.name,onClose:()=>s(!1),onSave:e=>{p(!0,e)}}),o&&(0,P.jsx)(Q,{onClose:()=>i(!1),onSave:()=>p(!1)})]})},$="content";const W=(0,P.jsx)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,P.jsx)(F.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})}),{useBlockDisplayTitle:X}=v(c.privateApis);function K({clientIds:e}){const t=1===e.length,{icon:n,firstBlockName:r}=(0,a.useSelect)((n=>{const{getBlockAttributes:r,getBlockNamesByClientId:a}=n(c.store),{getBlockType:s,getActiveBlockVariation:i}=n(o.store),l=a(e),d=l[0],u=s(d);let p;if(t){const t=i(d,r(e[0]));p=t?.icon||u.icon}else{p=1===new Set(l).size?u.icon:W}return{icon:p,firstBlockName:r(e[0]).metadata.name}}),[e,t]),s=X({clientId:e[0],maximumLength:35}),i=t?(0,j.sprintf)((0,j.__)('This %1$s is editable using the "%2$s" override.'),s.toLowerCase(),r):(0,j.__)("These blocks are editable using overrides."),l=(0,C.useId)();return(0,P.jsx)(S.ToolbarItem,{children:e=>(0,P.jsx)(S.DropdownMenu,{className:"patterns-pattern-overrides-toolbar-indicator",label:s,popoverProps:{placement:"bottom-start",className:"patterns-pattern-overrides-toolbar-indicator__popover"},icon:(0,P.jsx)(P.Fragment,{children:(0,P.jsx)(c.BlockIcon,{icon:n,className:"patterns-pattern-overrides-toolbar-indicator-icon",showColors:!0})}),toggleProps:{describedBy:i,...e},menuProps:{orientation:"both","aria-describedby":l},children:()=>(0,P.jsx)(S.__experimentalText,{id:l,children:i})})})}const ee={};b(ee,{OverridesPanel:function(){const e=(0,a.useSelect)((e=>e(c.store).getClientIdsWithDescendants()),[]),{getBlock:t}=(0,a.useSelect)(c.store),n=(0,C.useMemo)((()=>e.filter((e=>B(t(e))))),[e,t]);return n?.length?(0,P.jsx)(S.PanelBody,{title:(0,j.__)("Overrides"),children:(0,P.jsx)(T,{clientIds:n})}):null},CreatePatternModal:A,CreatePatternModalContents:z,DuplicatePatternModal:function({pattern:e,onClose:t,onSuccess:n}){const r=U({pattern:e,onSuccess:n});return e?(0,P.jsx)(A,{modalTitle:(0,j.__)("Duplicate pattern"),confirmLabel:(0,j.__)("Duplicate"),onClose:t,onError:t,...r}):null},isOverridableBlock:B,hasOverridableBlocks:function e(t){return t.some((t=>!!B(t)||e(t.innerBlocks)))},useDuplicatePatternProps:U,RenamePatternModal:function({onClose:e,onError:t,onSuccess:n,pattern:r,...s}){const o=(0,D.decodeEntities)(r.title),[c,l]=(0,C.useState)(o),[d,u]=(0,C.useState)(!1),{editEntityRecord:p,__experimentalSaveSpecifiedEntityEdits:_}=(0,a.useDispatch)(i.store),{createSuccessNotice:m,createErrorNotice:g}=(0,a.useDispatch)(E.store);return(0,P.jsx)(S.Modal,{title:(0,j.__)("Rename"),...s,onRequestClose:e,children:(0,P.jsx)("form",{onSubmit:async a=>{if(a.preventDefault(),c&&c!==r.title&&!d)try{await p("postType",r.type,r.id,{title:c}),u(!0),l(""),e?.();const t=await _("postType",r.type,r.id,["title"],{throwOnError:!0});n?.(t),m((0,j.__)("Pattern renamed"),{type:"snackbar",id:"pattern-update"})}catch(e){t?.();const n=e.message&&"unknown_error"!==e.code?e.message:(0,j.__)("An error occurred while renaming the pattern.");g(n,{type:"snackbar",id:"pattern-update"})}finally{u(!1),l("")}},children:(0,P.jsxs)(S.__experimentalVStack,{spacing:"5",children:[(0,P.jsx)(S.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,j.__)("Name"),value:c,onChange:l,required:!0}),(0,P.jsxs)(S.__experimentalHStack,{justify:"right",children:[(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{e?.(),l("")},children:(0,j.__)("Cancel")}),(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,j.__)("Save")})]})]})})})},PatternsMenuItems:function({rootClientId:e}){return(0,P.jsx)(c.BlockSettingsMenuControls,{children:({selectedClientIds:t,onClose:n})=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(H,{clientIds:t,rootClientId:e,closeBlockSettingsMenu:n}),1===t.length&&(0,P.jsx)(G,{clientId:t[0]})]})})},RenamePatternCategoryModal:function({category:e,existingCategories:t,onClose:n,onError:r,onSuccess:s,...o}){const c=(0,C.useId)(),l=(0,C.useRef)(),[d,u]=(0,C.useState)((0,D.decodeEntities)(e.name)),[p,_]=(0,C.useState)(!1),[m,g]=(0,C.useState)(!1),h=m?`patterns-rename-pattern-category-modal__validation-message-${c}`:void 0,{saveEntityRecord:y,invalidateResolution:f}=(0,a.useDispatch)(i.store),{createErrorNotice:x,createSuccessNotice:b}=(0,a.useDispatch)(E.store),v=()=>{n(),u("")};return(0,P.jsx)(S.Modal,{title:(0,j.__)("Rename"),onRequestClose:v,...o,children:(0,P.jsx)("form",{onSubmit:async a=>{if(a.preventDefault(),!p){if(!d||d===e.name){const e=(0,j.__)("Please enter a new name for this category.");return(0,Y.speak)(e,"assertive"),g(e),void l.current?.focus()}if(t.patternCategories.find((t=>t.id!==e.id&&t.label.toLowerCase()===d.toLowerCase()))){const e=(0,j.__)("This category already exists. Please use a different name.");return(0,Y.speak)(e,"assertive"),g(e),void l.current?.focus()}try{_(!0);const t=await y("taxonomy",R,{id:e.id,slug:e.slug,name:d});f("getUserPatternCategories"),s?.(t),n(),b((0,j.__)("Pattern category renamed."),{type:"snackbar",id:"pattern-category-update"})}catch(e){r?.(),x(e.message,{type:"snackbar",id:"pattern-category-update"})}finally{_(!1),u("")}}},children:(0,P.jsxs)(S.__experimentalVStack,{spacing:"5",children:[(0,P.jsxs)(S.__experimentalVStack,{spacing:"2",children:[(0,P.jsx)(S.TextControl,{ref:l,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,j.__)("Name"),value:d,onChange:e=>{m&&g(void 0),u(e)},"aria-describedby":h,required:!0}),m&&(0,P.jsx)("span",{className:"patterns-rename-pattern-category-modal__validation-message",id:h,children:m})]}),(0,P.jsxs)(S.__experimentalHStack,{justify:"right",children:[(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:v,children:(0,j.__)("Cancel")}),(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit","aria-disabled":!d||d===e.name||p,isBusy:p,children:(0,j.__)("Save")})]})]})})})},PatternOverridesControls:Z,ResetOverridesControl:function(e){const t=e.attributes.metadata?.name,n=(0,a.useRegistry)(),r=(0,a.useSelect)((n=>{if(!t)return;const{getBlockAttributes:r,getBlockParentsByBlockName:a}=n(c.store),[s]=a(e.clientId,"core/block",!0);if(!s)return;const o=r(s)[$];return o?o.hasOwnProperty(t):void 0}),[e.clientId,t]);return(0,P.jsx)(c.__unstableBlockToolbarLastItem,{children:(0,P.jsx)(S.ToolbarGroup,{children:(0,P.jsx)(S.ToolbarButton,{onClick:function(){const{getBlockAttributes:r,getBlockParentsByBlockName:a}=n.select(c.store),[s]=a(e.clientId,"core/block",!0);if(!s)return;const o=r(s)[$];if(!o.hasOwnProperty(t))return;const{updateBlockAttributes:i,__unstableMarkLastChangeAsPersistent:l}=n.dispatch(c.store);l();let d={...o};delete d[t],Object.keys(d).length||(d=void 0),i(s,{[$]:d})},disabled:!r,__experimentalIsFocusable:!0,children:(0,j.__)("Reset")})})})},PatternOverridesBlockControls:function(){const{clientIds:e,hasPatternOverrides:t,hasParentPattern:n}=(0,a.useSelect)((e=>{const{getBlockAttributes:t,getSelectedBlockClientIds:n,getBlockParentsByBlockName:r}=e(c.store),a=n(),s=a.every((e=>{var n;return Object.values(null!==(n=t(e)?.metadata?.bindings)&&void 0!==n?n:{}).some((e=>e?.source===_))})),o=a.every((e=>r(e,"core/block",!0).length>0));return{clientIds:a,hasPatternOverrides:s,hasParentPattern:o}}),[]);return t&&n?(0,P.jsx)(c.BlockControls,{group:"parent",children:(0,P.jsx)(K,{clientIds:e})}):null},useAddPatternCategory:M,PATTERN_TYPES:l,PATTERN_DEFAULT_CATEGORY:d,PATTERN_USER_CATEGORY:"my-patterns",EXCLUDED_PATTERN_SOURCES:["core","pattern-directory/core","pattern-directory/featured"],PATTERN_SYNC_TYPES:u,PARTIAL_SYNCING_SUPPORTED_BLOCKS:p}),(window.wp=window.wp||{}).patterns=t})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/plugins.js b/wp-includes/js/dist/plugins.js
index ddb3d3e..acc910d 100644
--- a/wp-includes/js/dist/plugins.js
+++ b/wp-includes/js/dist/plugins.js
@@ -60,8 +60,6 @@ __webpack_require__.d(__webpack_exports__, {
withPluginContext: () => (/* reexport */ withPluginContext)
});
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: ./node_modules/memize/dist/index.js
/**
* Memize options object.
@@ -233,8 +231,9 @@ const external_wp_isShallowEqual_namespaceObject = window["wp"]["isShallowEqual"
var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject);
;// CONCATENATED MODULE: external ["wp","compose"]
const external_wp_compose_namespaceObject = window["wp"]["compose"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/components/plugin-context/index.js
-
/**
* WordPress dependencies
*/
@@ -271,10 +270,12 @@ function usePluginContext() {
* @return {Component} Enhanced component with injected context as props.
*/
const withPluginContext = mapContextToProps => (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(OriginalComponent => {
- return props => (0,external_React_namespaceObject.createElement)(Context.Consumer, null, context => (0,external_React_namespaceObject.createElement)(OriginalComponent, {
- ...props,
- ...mapContextToProps(context, props)
- }));
+ return props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Context.Consumer, {
+ children: context => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OriginalComponent, {
+ ...props,
+ ...mapContextToProps(context, props)
+ })
+ });
}, 'withPluginContext');
;// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/components/plugin-error-boundary/index.js
@@ -321,17 +322,18 @@ class PluginErrorBoundary extends external_wp_element_namespaceObject.Component
;// CONCATENATED MODULE: external ["wp","primitives"]
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plugins.js
-
/**
* WordPress dependencies
*/
-const plugins = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const plugins = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"
+ })
+});
/* harmony default export */ const library_plugins = (plugins);
;// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/api/index.js
@@ -345,6 +347,11 @@ const plugins = (0,external_React_namespaceObject.createElement)(external_wp_pri
*/
+
+/**
+ * Defined behavior of a plugin type.
+ */
+
/**
* Plugin definitions keyed by plugin name.
*/
@@ -362,8 +369,8 @@ const api_plugins = {};
* // Using ES5 syntax
* var el = React.createElement;
* var Fragment = wp.element.Fragment;
- * var PluginSidebar = wp.editPost.PluginSidebar;
- * var PluginSidebarMoreMenuItem = wp.editPost.PluginSidebarMoreMenuItem;
+ * var PluginSidebar = wp.editor.PluginSidebar;
+ * var PluginSidebarMoreMenuItem = wp.editor.PluginSidebarMoreMenuItem;
* var registerPlugin = wp.plugins.registerPlugin;
* var moreIcon = React.createElement( 'svg' ); //... svg element.
*
@@ -398,7 +405,7 @@ const api_plugins = {};
* @example
* ```js
* // Using ESNext syntax
- * import { PluginSidebar, PluginSidebarMoreMenuItem } from '@wordpress/edit-post';
+ * import { PluginSidebar, PluginSidebarMoreMenuItem } from '@wordpress/editor';
* import { registerPlugin } from '@wordpress/plugins';
* import { more } from '@wordpress/icons';
*
@@ -530,7 +537,6 @@ function getPlugins(scope) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/components/plugin-area/index.js
-
/**
* External dependencies
*/
@@ -549,6 +555,7 @@ function getPlugins(scope) {
+
const getPluginContext = memize((icon, name) => ({
icon,
name
@@ -615,22 +622,24 @@ function PluginArea({
}
};
}, [scope]);
- const plugins = (0,external_wp_element_namespaceObject.useSyncExternalStore)(store.subscribe, store.getValue);
- return (0,external_React_namespaceObject.createElement)("div", {
+ const plugins = (0,external_wp_element_namespaceObject.useSyncExternalStore)(store.subscribe, store.getValue, store.getValue);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
style: {
display: 'none'
- }
- }, plugins.map(({
- icon,
- name,
- render: Plugin
- }) => (0,external_React_namespaceObject.createElement)(PluginContextProvider, {
- key: name,
- value: getPluginContext(icon, name)
- }, (0,external_React_namespaceObject.createElement)(PluginErrorBoundary, {
- name: name,
- onError: onError
- }, (0,external_React_namespaceObject.createElement)(Plugin, null)))));
+ },
+ children: plugins.map(({
+ icon,
+ name,
+ render: Plugin
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PluginContextProvider, {
+ value: getPluginContext(icon, name),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PluginErrorBoundary, {
+ name: name,
+ onError: onError,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Plugin, {})
+ })
+ }, name))
+ });
}
/* harmony default export */ const plugin_area = (PluginArea);
diff --git a/wp-includes/js/dist/plugins.min.js b/wp-includes/js/dist/plugins.min.js
index 5282e04..0d75dc8 100644
--- a/wp-includes/js/dist/plugins.min.js
+++ b/wp-includes/js/dist/plugins.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-(()=>{"use strict";var e={n:n=>{var r=n&&n.__esModule?()=>n.default:()=>n;return e.d(r,{a:r}),r},d:(n,r)=>{for(var t in r)e.o(r,t)&&!e.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:r[t]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{PluginArea:()=>P,getPlugin:()=>h,getPlugins:()=>y,registerPlugin:()=>f,unregisterPlugin:()=>w,usePluginContext:()=>c,withPluginContext:()=>p});const r=window.React;const t=window.wp.element,o=window.wp.hooks,i=window.wp.isShallowEqual;var l=e.n(i);const s=window.wp.compose,u=(0,t.createContext)({name:null,icon:null}),a=u.Provider;function c(){return(0,t.useContext)(u)}const p=e=>(0,s.createHigherOrderComponent)((n=>t=>(0,r.createElement)(u.Consumer,null,(o=>(0,r.createElement)(n,{...t,...e(o,t)})))),"withPluginContext");class g extends t.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){const{name:n,onError:r}=this.props;r&&r(n,e)}render(){return this.state.hasError?null:this.props.children}}const d=window.wp.primitives,m=(0,r.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(d.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})),v={};function f(e,n){if("object"!=typeof n)return console.error("No settings object provided!"),null;if("string"!=typeof e)return console.error("Plugin name must be string."),null;if(!/^[a-z][a-z0-9-]*$/.test(e))return console.error('Plugin name must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-plugin".'),null;v[e]&&console.error(`Plugin "${e}" is already registered.`),n=(0,o.applyFilters)("plugins.registerPlugin",n,e);const{render:r,scope:t}=n;if("function"!=typeof r)return console.error('The "render" property must be specified and must be a valid function.'),null;if(t){if("string"!=typeof t)return console.error("Plugin scope must be string."),null;if(!/^[a-z][a-z0-9-]*$/.test(t))return console.error('Plugin scope must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-page".'),null}return v[e]={name:e,icon:m,...n},(0,o.doAction)("plugins.pluginRegistered",n,e),n}function w(e){if(!v[e])return void console.error('Plugin "'+e+'" is not registered.');const n=v[e];return delete v[e],(0,o.doAction)("plugins.pluginUnregistered",n,e),n}function h(e){return v[e]}function y(e){return Object.values(v).filter((n=>n.scope===e))}const x=function(e,n){var r,t,o=0;function i(){var i,l,s=r,u=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(l=0;l<u;l++)if(s.args[l]!==arguments[l]){s=s.next;continue e}return s!==r&&(s===t&&(t=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=r,s.prev=null,r.prev=s,r=s),s.val}s=s.next}for(i=new Array(u),l=0;l<u;l++)i[l]=arguments[l];return s={args:i,val:e.apply(null,i)},r?(r.prev=s,s.next=r):t=s,o===n.maxSize?(t=t.prev).next=null:o++,r=s,s.val}return n=n||{},i.clear=function(){r=null,t=null,o=0},i}(((e,n)=>({icon:e,name:n})));const P=function({scope:e,onError:n}){const i=(0,t.useMemo)((()=>{let n=[];return{subscribe:e=>((0,o.addAction)("plugins.pluginRegistered","core/plugins/plugin-area/plugins-registered",e),(0,o.addAction)("plugins.pluginUnregistered","core/plugins/plugin-area/plugins-unregistered",e),()=>{(0,o.removeAction)("plugins.pluginRegistered","core/plugins/plugin-area/plugins-registered"),(0,o.removeAction)("plugins.pluginUnregistered","core/plugins/plugin-area/plugins-unregistered")}),getValue(){const r=y(e);return l()(n,r)||(n=r),n}}}),[e]),s=(0,t.useSyncExternalStore)(i.subscribe,i.getValue);return(0,r.createElement)("div",{style:{display:"none"}},s.map((({icon:e,name:t,render:o})=>(0,r.createElement)(a,{key:t,value:x(e,t)},(0,r.createElement)(g,{name:t,onError:n},(0,r.createElement)(o,null))))))};(window.wp=window.wp||{}).plugins=n})(); \ No newline at end of file
+(()=>{"use strict";var e={n:n=>{var r=n&&n.__esModule?()=>n.default:()=>n;return e.d(r,{a:r}),r},d:(n,r)=>{for(var t in r)e.o(r,t)&&!e.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:r[t]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{PluginArea:()=>P,getPlugin:()=>w,getPlugins:()=>x,registerPlugin:()=>h,unregisterPlugin:()=>f,usePluginContext:()=>c,withPluginContext:()=>p});const r=window.wp.element,t=window.wp.hooks,o=window.wp.isShallowEqual;var i=e.n(o);const l=window.wp.compose,s=window.ReactJSXRuntime,u=(0,r.createContext)({name:null,icon:null}),a=u.Provider;function c(){return(0,r.useContext)(u)}const p=e=>(0,l.createHigherOrderComponent)((n=>r=>(0,s.jsx)(u.Consumer,{children:t=>(0,s.jsx)(n,{...r,...e(t,r)})})),"withPluginContext");class g extends r.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){const{name:n,onError:r}=this.props;r&&r(n,e)}render(){return this.state.hasError?null:this.props.children}}const d=window.wp.primitives,v=(0,s.jsx)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(d.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})}),m={};function h(e,n){if("object"!=typeof n)return console.error("No settings object provided!"),null;if("string"!=typeof e)return console.error("Plugin name must be string."),null;if(!/^[a-z][a-z0-9-]*$/.test(e))return console.error('Plugin name must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-plugin".'),null;m[e]&&console.error(`Plugin "${e}" is already registered.`),n=(0,t.applyFilters)("plugins.registerPlugin",n,e);const{render:r,scope:o}=n;if("function"!=typeof r)return console.error('The "render" property must be specified and must be a valid function.'),null;if(o){if("string"!=typeof o)return console.error("Plugin scope must be string."),null;if(!/^[a-z][a-z0-9-]*$/.test(o))return console.error('Plugin scope must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-page".'),null}return m[e]={name:e,icon:v,...n},(0,t.doAction)("plugins.pluginRegistered",n,e),n}function f(e){if(!m[e])return void console.error('Plugin "'+e+'" is not registered.');const n=m[e];return delete m[e],(0,t.doAction)("plugins.pluginUnregistered",n,e),n}function w(e){return m[e]}function x(e){return Object.values(m).filter((n=>n.scope===e))}const y=function(e,n){var r,t,o=0;function i(){var i,l,s=r,u=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(l=0;l<u;l++)if(s.args[l]!==arguments[l]){s=s.next;continue e}return s!==r&&(s===t&&(t=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=r,s.prev=null,r.prev=s,r=s),s.val}s=s.next}for(i=new Array(u),l=0;l<u;l++)i[l]=arguments[l];return s={args:i,val:e.apply(null,i)},r?(r.prev=s,s.next=r):t=s,o===n.maxSize?(t=t.prev).next=null:o++,r=s,s.val}return n=n||{},i.clear=function(){r=null,t=null,o=0},i}(((e,n)=>({icon:e,name:n})));const P=function({scope:e,onError:n}){const o=(0,r.useMemo)((()=>{let n=[];return{subscribe:e=>((0,t.addAction)("plugins.pluginRegistered","core/plugins/plugin-area/plugins-registered",e),(0,t.addAction)("plugins.pluginUnregistered","core/plugins/plugin-area/plugins-unregistered",e),()=>{(0,t.removeAction)("plugins.pluginRegistered","core/plugins/plugin-area/plugins-registered"),(0,t.removeAction)("plugins.pluginUnregistered","core/plugins/plugin-area/plugins-unregistered")}),getValue(){const r=x(e);return i()(n,r)||(n=r),n}}}),[e]),l=(0,r.useSyncExternalStore)(o.subscribe,o.getValue,o.getValue);return(0,s.jsx)("div",{style:{display:"none"},children:l.map((({icon:e,name:r,render:t})=>(0,s.jsx)(a,{value:y(e,r),children:(0,s.jsx)(g,{name:r,onError:n,children:(0,s.jsx)(t,{})})},r)))})};(window.wp=window.wp||{}).plugins=n})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/preferences-persistence.js b/wp-includes/js/dist/preferences-persistence.js
index 80ebebe..9016a07 100644
--- a/wp-includes/js/dist/preferences-persistence.js
+++ b/wp-includes/js/dist/preferences-persistence.js
@@ -750,14 +750,14 @@ function convertLegacyData(data) {
data = moveIndividualPreferenceToPreferences(data, {
from: 'core/edit-post',
to: 'core/edit-post'
- }, 'preferredStyleVariations');
- data = moveIndividualPreferenceToPreferences(data, {
- from: 'core/edit-post',
- to: 'core/edit-post'
}, 'panels', convertEditPostPanels);
data = moveIndividualPreferenceToPreferences(data, {
from: 'core/editor',
- to: 'core/edit-post'
+ to: 'core'
+ }, 'isPublishSidebarEnabled');
+ data = moveIndividualPreferenceToPreferences(data, {
+ from: 'core/edit-post',
+ to: 'core'
}, 'isPublishSidebarEnabled');
data = moveIndividualPreferenceToPreferences(data, {
from: 'core/edit-site',
@@ -810,7 +810,7 @@ function convertComplementaryAreas(state) {
function convertEditorSettings(data) {
var _newData$coreEditPo, _newData$coreEditSi;
let newData = data;
- const settingsToMoveToCore = ['allowRightClickOverrides', 'distractionFree', 'editorMode', 'fixedToolbar', 'focusMode', 'hiddenBlockTypes', 'inactivePanels', 'keepCaretInsideBlock', 'mostUsedBlocks', 'openPanels', 'showBlockBreadcrumbs', 'showIconLabels', 'showListViewByDefault'];
+ const settingsToMoveToCore = ['allowRightClickOverrides', 'distractionFree', 'editorMode', 'fixedToolbar', 'focusMode', 'hiddenBlockTypes', 'inactivePanels', 'keepCaretInsideBlock', 'mostUsedBlocks', 'openPanels', 'showBlockBreadcrumbs', 'showIconLabels', 'showListViewByDefault', 'isPublishSidebarEnabled', 'isComplementaryAreaVisible', 'pinnedItems'];
settingsToMoveToCore.forEach(setting => {
if (data?.['core/edit-post']?.[setting] !== undefined) {
newData = {
diff --git a/wp-includes/js/dist/preferences-persistence.min.js b/wp-includes/js/dist/preferences-persistence.min.js
index b765a47..57c4c12 100644
--- a/wp-includes/js/dist/preferences-persistence.min.js
+++ b/wp-includes/js/dist/preferences-persistence.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-(()=>{"use strict";var e={n:r=>{var t=r&&r.__esModule?()=>r.default:()=>r;return e.d(t,{a:t}),t},d:(r,t)=>{for(var n in t)e.o(t,n)&&!e.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:t[n]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};e.r(r),e.d(r,{__unstableCreatePersistenceLayer:()=>m,create:()=>c});const t=window.wp.apiFetch;var n=e.n(t);const o={},s=window.localStorage;function c({preloadedData:e,localStorageRestoreKey:r="WP_PREFERENCES_RESTORE_DATA",requestDebounceMS:t=2500}={}){let c=e;const i=function(e,r){let t,n;return async function(...o){return n||t?(n&&await n,t&&(clearTimeout(t),t=null),new Promise(((s,c)=>{t=setTimeout((()=>{n=e(...o).then(((...e)=>{s(...e)})).catch((e=>{c(e)})).finally((()=>{n=null,t=null}))}),r)}))):new Promise(((r,t)=>{n=e(...o).then(((...e)=>{r(...e)})).catch((e=>{t(e)})).finally((()=>{n=null}))}))}}(n(),t);return{get:async function(){if(c)return c;const e=await n()({path:"/wp/v2/users/me?context=edit"}),t=e?.meta?.persisted_preferences,i=JSON.parse(s.getItem(r)),a=Date.parse(t?._modified)||0,d=Date.parse(i?._modified)||0;return c=t&&a>=d?t:i||o,c},set:function(e){const t={...e,_modified:(new Date).toISOString()};c=t,s.setItem(r,JSON.stringify(t)),i({path:"/wp/v2/users/me",method:"PUT",keepalive:!0,data:{meta:{persisted_preferences:t}}}).catch((()=>{}))}}}function i(e,r){const t="core/preferences",n="core/interface",o=e?.[n]?.preferences?.features?.[r],s=e?.[r]?.preferences?.features,c=o||s;if(!c)return e;const i=e?.[t]?.preferences;if(i?.[r])return e;let a,d;if(o){const t=e?.[n],o=e?.[n]?.preferences?.features;a={[n]:{...t,preferences:{features:{...o,[r]:void 0}}}}}if(s){const t=e?.[r],n=e?.[r]?.preferences;d={[r]:{...t,preferences:{...n,features:void 0}}}}return{...e,[t]:{preferences:{...i,[r]:c}},...a,...d}}const a=e=>e;function d(e,{from:r,to:t},n,o=a){const s="core/preferences",c=e?.[r]?.preferences?.[n];if(void 0===c)return e;const i=e?.[s]?.preferences?.[t]?.[n];if(i)return e;const d=e?.[s]?.preferences,l=e?.[s]?.preferences?.[t],f=e?.[r],p=e?.[r]?.preferences,u=o({[n]:c});return{...e,[s]:{preferences:{...d,[t]:{...l,...u}}},[r]:{...f,preferences:{...p,[n]:void 0}}}}function l(e){var r;const t=null!==(r=e?.panels)&&void 0!==r?r:{};return Object.keys(t).reduce(((e,r)=>{const n=t[r];return!1===n?.enabled&&e.inactivePanels.push(r),!0===n?.opened&&e.openPanels.push(r),e}),{inactivePanels:[],openPanels:[]})}function f(e){if(e)return e=i(e,"core/edit-widgets"),e=i(e,"core/customize-widgets"),e=i(e,"core/edit-post"),e=d(e=function(e){var r,t,n;const o="core/interface",s="core/preferences",c=e?.[o]?.enableItems;if(!c)return e;const i=null!==(r=e?.[s]?.preferences)&&void 0!==r?r:{},a=null!==(t=c?.singleEnableItems?.complementaryArea)&&void 0!==t?t:{},d=Object.keys(a).reduce(((e,r)=>{const t=a[r];return e?.[r]?.complementaryArea?e:{...e,[r]:{...e[r],complementaryArea:t}}}),i),l=null!==(n=c?.multipleEnableItems?.pinnedItems)&&void 0!==n?n:{},f=Object.keys(l).reduce(((e,r)=>{const t=l[r];return e?.[r]?.pinnedItems?e:{...e,[r]:{...e[r],pinnedItems:t}}}),d),p=e[o];return{...e,[s]:{preferences:f},[o]:{...p,enableItems:void 0}}}(e=function(e){const r="core/interface",t="core/preferences",n=e?.[r]?.preferences?.features,o=n?Object.keys(n):[];return o?.length?o.reduce((function(e,o){if(o.startsWith("core"))return e;const s=n?.[o];if(!s)return e;const c=e?.[t]?.preferences?.[o];if(c)return e;const i=e?.[t]?.preferences,a=e?.[r],d=e?.[r]?.preferences?.features;return{...e,[t]:{preferences:{...i,[o]:s}},[r]:{...a,preferences:{features:{...d,[o]:void 0}}}}}),e):e}(e=i(e,"core/edit-site"))),{from:"core/edit-post",to:"core/edit-post"},"hiddenBlockTypes"),e=d(e,{from:"core/edit-post",to:"core/edit-post"},"editorMode"),e=d(e,{from:"core/edit-post",to:"core/edit-post"},"preferredStyleVariations"),e=d(e,{from:"core/edit-post",to:"core/edit-post"},"panels",l),e=d(e,{from:"core/editor",to:"core/edit-post"},"isPublishSidebarEnabled"),e=d(e,{from:"core/edit-site",to:"core/edit-site"},"editorMode"),e?.["core/preferences"]?.preferences}function p(e){const r=function(e){const r=`WP_DATA_USER_${e}`,t=window.localStorage.getItem(r);return JSON.parse(t)}(e);return f(r)}function u(e){let r=(t=e,Object.keys(t).reduce(((e,r)=>{const n=t[r];if(n?.complementaryArea){const t={...n};return delete t.complementaryArea,t.isComplementaryAreaVisible=!0,e[r]=t,e}return e}),t));var t;return r=function(e){var r,t;let n=e;return["allowRightClickOverrides","distractionFree","editorMode","fixedToolbar","focusMode","hiddenBlockTypes","inactivePanels","keepCaretInsideBlock","mostUsedBlocks","openPanels","showBlockBreadcrumbs","showIconLabels","showListViewByDefault"].forEach((r=>{void 0!==e?.["core/edit-post"]?.[r]&&(n={...n,core:{...n?.core,[r]:e["core/edit-post"][r]}},delete n["core/edit-post"][r]),void 0!==e?.["core/edit-site"]?.[r]&&delete n["core/edit-site"][r]})),0===Object.keys(null!==(r=n?.["core/edit-post"])&&void 0!==r?r:{})?.length&&delete n["core/edit-post"],0===Object.keys(null!==(t=n?.["core/edit-site"])&&void 0!==t?t:{})?.length&&delete n["core/edit-site"],n}(r),r}function m(e,r){const t=`WP_PREFERENCES_USER_${r}`,n=JSON.parse(window.localStorage.getItem(t)),o=Date.parse(e&&e._modified)||0,s=Date.parse(n&&n._modified)||0;let i;return i=e&&o>=s?u(e):n?u(n):p(r),c({preloadedData:i,localStorageRestoreKey:t})}(window.wp=window.wp||{}).preferencesPersistence=r})(); \ No newline at end of file
+(()=>{"use strict";var e={n:r=>{var t=r&&r.__esModule?()=>r.default:()=>r;return e.d(t,{a:t}),t},d:(r,t)=>{for(var n in t)e.o(t,n)&&!e.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:t[n]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};e.r(r),e.d(r,{__unstableCreatePersistenceLayer:()=>m,create:()=>c});const t=window.wp.apiFetch;var n=e.n(t);const o={},s=window.localStorage;function c({preloadedData:e,localStorageRestoreKey:r="WP_PREFERENCES_RESTORE_DATA",requestDebounceMS:t=2500}={}){let c=e;const i=function(e,r){let t,n;return async function(...o){return n||t?(n&&await n,t&&(clearTimeout(t),t=null),new Promise(((s,c)=>{t=setTimeout((()=>{n=e(...o).then(((...e)=>{s(...e)})).catch((e=>{c(e)})).finally((()=>{n=null,t=null}))}),r)}))):new Promise(((r,t)=>{n=e(...o).then(((...e)=>{r(...e)})).catch((e=>{t(e)})).finally((()=>{n=null}))}))}}(n(),t);return{get:async function(){if(c)return c;const e=await n()({path:"/wp/v2/users/me?context=edit"}),t=e?.meta?.persisted_preferences,i=JSON.parse(s.getItem(r)),a=Date.parse(t?._modified)||0,d=Date.parse(i?._modified)||0;return c=t&&a>=d?t:i||o,c},set:function(e){const t={...e,_modified:(new Date).toISOString()};c=t,s.setItem(r,JSON.stringify(t)),i({path:"/wp/v2/users/me",method:"PUT",keepalive:!0,data:{meta:{persisted_preferences:t}}}).catch((()=>{}))}}}function i(e,r){const t="core/preferences",n="core/interface",o=e?.[n]?.preferences?.features?.[r],s=e?.[r]?.preferences?.features,c=o||s;if(!c)return e;const i=e?.[t]?.preferences;if(i?.[r])return e;let a,d;if(o){const t=e?.[n],o=e?.[n]?.preferences?.features;a={[n]:{...t,preferences:{features:{...o,[r]:void 0}}}}}if(s){const t=e?.[r],n=e?.[r]?.preferences;d={[r]:{...t,preferences:{...n,features:void 0}}}}return{...e,[t]:{preferences:{...i,[r]:c}},...a,...d}}const a=e=>e;function d(e,{from:r,to:t},n,o=a){const s="core/preferences",c=e?.[r]?.preferences?.[n];if(void 0===c)return e;const i=e?.[s]?.preferences?.[t]?.[n];if(i)return e;const d=e?.[s]?.preferences,l=e?.[s]?.preferences?.[t],f=e?.[r],u=e?.[r]?.preferences,p=o({[n]:c});return{...e,[s]:{preferences:{...d,[t]:{...l,...p}}},[r]:{...f,preferences:{...u,[n]:void 0}}}}function l(e){var r;const t=null!==(r=e?.panels)&&void 0!==r?r:{};return Object.keys(t).reduce(((e,r)=>{const n=t[r];return!1===n?.enabled&&e.inactivePanels.push(r),!0===n?.opened&&e.openPanels.push(r),e}),{inactivePanels:[],openPanels:[]})}function f(e){if(e)return e=i(e,"core/edit-widgets"),e=i(e,"core/customize-widgets"),e=i(e,"core/edit-post"),e=d(e=function(e){var r,t,n;const o="core/interface",s="core/preferences",c=e?.[o]?.enableItems;if(!c)return e;const i=null!==(r=e?.[s]?.preferences)&&void 0!==r?r:{},a=null!==(t=c?.singleEnableItems?.complementaryArea)&&void 0!==t?t:{},d=Object.keys(a).reduce(((e,r)=>{const t=a[r];return e?.[r]?.complementaryArea?e:{...e,[r]:{...e[r],complementaryArea:t}}}),i),l=null!==(n=c?.multipleEnableItems?.pinnedItems)&&void 0!==n?n:{},f=Object.keys(l).reduce(((e,r)=>{const t=l[r];return e?.[r]?.pinnedItems?e:{...e,[r]:{...e[r],pinnedItems:t}}}),d),u=e[o];return{...e,[s]:{preferences:f},[o]:{...u,enableItems:void 0}}}(e=function(e){const r="core/interface",t="core/preferences",n=e?.[r]?.preferences?.features,o=n?Object.keys(n):[];return o?.length?o.reduce((function(e,o){if(o.startsWith("core"))return e;const s=n?.[o];if(!s)return e;const c=e?.[t]?.preferences?.[o];if(c)return e;const i=e?.[t]?.preferences,a=e?.[r],d=e?.[r]?.preferences?.features;return{...e,[t]:{preferences:{...i,[o]:s}},[r]:{...a,preferences:{features:{...d,[o]:void 0}}}}}),e):e}(e=i(e,"core/edit-site"))),{from:"core/edit-post",to:"core/edit-post"},"hiddenBlockTypes"),e=d(e,{from:"core/edit-post",to:"core/edit-post"},"editorMode"),e=d(e,{from:"core/edit-post",to:"core/edit-post"},"panels",l),e=d(e,{from:"core/editor",to:"core"},"isPublishSidebarEnabled"),e=d(e,{from:"core/edit-post",to:"core"},"isPublishSidebarEnabled"),e=d(e,{from:"core/edit-site",to:"core/edit-site"},"editorMode"),e?.["core/preferences"]?.preferences}function u(e){const r=function(e){const r=`WP_DATA_USER_${e}`,t=window.localStorage.getItem(r);return JSON.parse(t)}(e);return f(r)}function p(e){let r=(t=e,Object.keys(t).reduce(((e,r)=>{const n=t[r];if(n?.complementaryArea){const t={...n};return delete t.complementaryArea,t.isComplementaryAreaVisible=!0,e[r]=t,e}return e}),t));var t;return r=function(e){var r,t;let n=e;return["allowRightClickOverrides","distractionFree","editorMode","fixedToolbar","focusMode","hiddenBlockTypes","inactivePanels","keepCaretInsideBlock","mostUsedBlocks","openPanels","showBlockBreadcrumbs","showIconLabels","showListViewByDefault","isPublishSidebarEnabled","isComplementaryAreaVisible","pinnedItems"].forEach((r=>{void 0!==e?.["core/edit-post"]?.[r]&&(n={...n,core:{...n?.core,[r]:e["core/edit-post"][r]}},delete n["core/edit-post"][r]),void 0!==e?.["core/edit-site"]?.[r]&&delete n["core/edit-site"][r]})),0===Object.keys(null!==(r=n?.["core/edit-post"])&&void 0!==r?r:{})?.length&&delete n["core/edit-post"],0===Object.keys(null!==(t=n?.["core/edit-site"])&&void 0!==t?t:{})?.length&&delete n["core/edit-site"],n}(r),r}function m(e,r){const t=`WP_PREFERENCES_USER_${r}`,n=JSON.parse(window.localStorage.getItem(t)),o=Date.parse(e&&e._modified)||0,s=Date.parse(n&&n._modified)||0;let i;return i=e&&o>=s?p(e):n?p(n):u(r),c({preloadedData:i,localStorageRestoreKey:t})}(window.wp=window.wp||{}).preferencesPersistence=r})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/preferences.js b/wp-includes/js/dist/preferences.js
index 059398d..2044b3f 100644
--- a/wp-includes/js/dist/preferences.js
+++ b/wp-includes/js/dist/preferences.js
@@ -73,8 +73,6 @@ __webpack_require__.d(selectors_namespaceObject, {
get: () => (get)
});
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: external ["wp","data"]
const external_wp_data_namespaceObject = window["wp"]["data"];
;// CONCATENATED MODULE: external ["wp","components"]
@@ -83,18 +81,21 @@ const external_wp_components_namespaceObject = window["wp"]["components"];
const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
;// CONCATENATED MODULE: external ["wp","primitives"]
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
-
/**
* WordPress dependencies
*/
-const check = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const check = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
+ })
+});
/* harmony default export */ const library_check = (check);
;// CONCATENATED MODULE: external ["wp","a11y"]
@@ -290,7 +291,7 @@ var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external
*/
const withDeprecatedKeys = originalGet => (state, scope, name) => {
- const settingsToMoveToCore = ['allowRightClickOverrides', 'distractionFree', 'editorMode', 'fixedToolbar', 'focusMode', 'hiddenBlockTypes', 'inactivePanels', 'keepCaretInsideBlock', 'mostUsedBlocks', 'openPanels', 'showBlockBreadcrumbs', 'showIconLabels', 'showListViewByDefault'];
+ const settingsToMoveToCore = ['allowRightClickOverrides', 'distractionFree', 'editorMode', 'fixedToolbar', 'focusMode', 'hiddenBlockTypes', 'inactivePanels', 'keepCaretInsideBlock', 'mostUsedBlocks', 'openPanels', 'showBlockBreadcrumbs', 'showIconLabels', 'showListViewByDefault', 'isPublishSidebarEnabled', 'isComplementaryAreaVisible', 'pinnedItems'];
if (settingsToMoveToCore.includes(name) && ['core/edit-post', 'core/edit-site'].includes(scope)) {
external_wp_deprecated_default()(`wp.data.select( 'core/preferences' ).get( '${scope}', '${name}' )`, {
since: '6.5',
@@ -353,7 +354,6 @@ const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME,
(0,external_wp_data_namespaceObject.register)(store);
;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences/build-module/components/preference-toggle-menu-item/index.js
-
/**
* WordPress dependencies
*/
@@ -367,6 +367,7 @@ const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME,
* Internal dependencies
*/
+
function PreferenceToggleMenuItem({
scope,
name,
@@ -394,7 +395,7 @@ function PreferenceToggleMenuItem({
(0,external_wp_a11y_namespaceObject.speak)(message);
}
};
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
icon: isActive && library_check,
isSelected: isActive,
onClick: () => {
@@ -407,19 +408,21 @@ function PreferenceToggleMenuItem({
role: "menuitemcheckbox",
info: info,
shortcut: shortcut,
- disabled: disabled
- }, label);
+ disabled: disabled,
+ children: label
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences/build-module/components/index.js
;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences/build-module/components/preference-base-option/index.js
-
/**
* WordPress dependencies
*/
+
+
function BaseOption({
help,
label,
@@ -427,20 +430,20 @@ function BaseOption({
onChange,
children
}) {
- return (0,external_React_namespaceObject.createElement)("div", {
- className: "preference-base-option"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- __nextHasNoMarginBottom: true,
- help: help,
- label: label,
- checked: isChecked,
- onChange: onChange
- }), children);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "preference-base-option",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ __nextHasNoMarginBottom: true,
+ help: help,
+ label: label,
+ checked: isChecked,
+ onChange: onChange
+ }), children]
+ });
}
/* harmony default export */ const preference_base_option = (BaseOption);
;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences/build-module/components/preference-toggle-control/index.js
-
/**
* WordPress dependencies
*/
@@ -451,6 +454,7 @@ function BaseOption({
*/
+
function PreferenceToggleControl(props) {
const {
scope,
@@ -466,7 +470,7 @@ function PreferenceToggleControl(props) {
onToggle();
toggle(scope, featureName);
};
- return (0,external_React_namespaceObject.createElement)(preference_base_option, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(preference_base_option, {
onChange: onChange,
isChecked: isChecked,
...remainingProps
@@ -475,40 +479,47 @@ function PreferenceToggleControl(props) {
/* harmony default export */ const preference_toggle_control = (PreferenceToggleControl);
;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences/build-module/components/preferences-modal/index.js
-
/**
* WordPress dependencies
*/
+
function PreferencesModal({
closeModal,
children
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
className: "preferences-modal",
title: (0,external_wp_i18n_namespaceObject.__)('Preferences'),
- onRequestClose: closeModal
- }, children);
+ onRequestClose: closeModal,
+ children: children
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences/build-module/components/preferences-modal-section/index.js
+
const Section = ({
description,
title,
children
-}) => (0,external_React_namespaceObject.createElement)("fieldset", {
- className: "preferences-modal__section"
-}, (0,external_React_namespaceObject.createElement)("legend", {
- className: "preferences-modal__section-legend"
-}, (0,external_React_namespaceObject.createElement)("h2", {
- className: "preferences-modal__section-title"
-}, title), description && (0,external_React_namespaceObject.createElement)("p", {
- className: "preferences-modal__section-description"
-}, description)), (0,external_React_namespaceObject.createElement)("div", {
- className: "preferences-modal__section-content"
-}, children));
+}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
+ className: "preferences-modal__section",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("legend", {
+ className: "preferences-modal__section-legend",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
+ className: "preferences-modal__section-title",
+ children: title
+ }), description && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ className: "preferences-modal__section-description",
+ children: description
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "preferences-modal__section-content",
+ children: children
+ })]
+});
/* harmony default export */ const preferences_modal_section = (Section);
;// CONCATENATED MODULE: external ["wp","compose"]
@@ -548,31 +559,33 @@ function Icon({
/* harmony default export */ const icon = ((0,external_wp_element_namespaceObject.forwardRef)(Icon));
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js
-
/**
* WordPress dependencies
*/
-const chevronLeft = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
+ })
+});
/* harmony default export */ const chevron_left = (chevronLeft);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js
-
/**
* WordPress dependencies
*/
-const chevronRight = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const chevronRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
+ })
+});
/* harmony default export */ const chevron_right = (chevronRight);
;// CONCATENATED MODULE: external ["wp","privateApis"]
@@ -585,10 +598,9 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
const {
lock,
unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/preferences');
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/preferences');
;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences/build-module/components/preferences-modal-tabs/index.js
-
/**
* WordPress dependencies
*/
@@ -602,6 +614,8 @@ const {
* Internal dependencies
*/
+
+
const {
Tabs
} = unlock(external_wp_components_namespaceObject.privateApis);
@@ -649,63 +663,85 @@ function PreferencesModalTabs({
let modalContent;
// We render different components based on the viewport size.
if (isLargeViewport) {
- modalContent = (0,external_React_namespaceObject.createElement)("div", {
- className: "preferences__tabs"
- }, (0,external_React_namespaceObject.createElement)(Tabs, {
- initialTabId: activeMenu !== PREFERENCES_MENU ? activeMenu : undefined,
- onSelect: setActiveMenu,
- orientation: "vertical"
- }, (0,external_React_namespaceObject.createElement)(Tabs.TabList, {
- className: "preferences__tabs-tablist"
- }, tabs.map(tab => (0,external_React_namespaceObject.createElement)(Tabs.Tab, {
- tabId: tab.name,
- key: tab.name,
- className: "preferences__tabs-tab"
- }, tab.title))), tabs.map(tab => (0,external_React_namespaceObject.createElement)(Tabs.TabPanel, {
- tabId: tab.name,
- key: tab.name,
- className: "preferences__tabs-tabpanel",
- focusable: false
- }, sectionsContentMap[tab.name] || null))));
+ modalContent = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "preferences__tabs",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tabs, {
+ defaultTabId: activeMenu !== PREFERENCES_MENU ? activeMenu : undefined,
+ onSelect: setActiveMenu,
+ orientation: "vertical",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.TabList, {
+ className: "preferences__tabs-tablist",
+ children: tabs.map(tab => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.Tab, {
+ tabId: tab.name,
+ className: "preferences__tabs-tab",
+ children: tab.title
+ }, tab.name))
+ }), tabs.map(tab => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.TabPanel, {
+ tabId: tab.name,
+ className: "preferences__tabs-tabpanel",
+ focusable: false,
+ children: sectionsContentMap[tab.name] || null
+ }, tab.name))]
+ })
+ });
} else {
- modalContent = (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorProvider, {
+ modalContent = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalNavigatorProvider, {
initialPath: "/",
- className: "preferences__provider"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
- path: "/"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Card, {
- isBorderless: true,
- size: "small"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.CardBody, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalItemGroup, null, tabs.map(tab => {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorButton, {
- key: tab.name,
- path: tab.name,
- as: external_wp_components_namespaceObject.__experimentalItem,
- isAction: true
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "space-between"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, null, tab.title)), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_namespaceObject.createElement)(icon, {
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left : chevron_right
- }))));
- }))))), sections.length && sections.map(section => {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
- key: `${section.name}-menu`,
- path: section.name
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Card, {
- isBorderless: true,
- size: "large"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.CardHeader, {
- isBorderless: false,
- justify: "left",
- size: "small",
- gap: "6"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalNavigatorBackButton, {
- icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_right : chevron_left,
- "aria-label": (0,external_wp_i18n_namespaceObject.__)('Navigate to the previous view')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalText, {
- size: "16"
- }, section.tabLabel)), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.CardBody, null, section.content)));
- }));
+ className: "preferences__provider",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
+ path: "/",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Card, {
+ isBorderless: true,
+ size: "small",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CardBody, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalItemGroup, {
+ children: tabs.map(tab => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNavigatorButton, {
+ path: tab.name,
+ as: external_wp_components_namespaceObject.__experimentalItem,
+ isAction: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "space-between",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTruncate, {
+ children: tab.title
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icon, {
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_left : chevron_right
+ })
+ })]
+ })
+ }, tab.name);
+ })
+ })
+ })
+ })
+ }), sections.length && sections.map(section => {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNavigatorScreen, {
+ path: section.name,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Card, {
+ isBorderless: true,
+ size: "large",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.CardHeader, {
+ isBorderless: false,
+ justify: "left",
+ size: "small",
+ gap: "6",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNavigatorBackButton, {
+ icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_right : chevron_left,
+ label: (0,external_wp_i18n_namespaceObject.__)('Back')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
+ size: "16",
+ children: section.tabLabel
+ })]
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CardBody, {
+ children: section.content
+ })]
+ })
+ }, `${section.name}-menu`);
+ })]
+ });
}
return modalContent;
}
diff --git a/wp-includes/js/dist/preferences.min.js b/wp-includes/js/dist/preferences.min.js
index 101a6de..8cf295b 100644
--- a/wp-includes/js/dist/preferences.min.js
+++ b/wp-includes/js/dist/preferences.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{PreferenceToggleMenuItem:()=>y,privateApis:()=>F,store:()=>h});var n={};e.r(n),e.d(n,{set:()=>E,setDefaults:()=>f,setPersistenceLayer:()=>_,toggle:()=>u});var r={};e.r(r),e.d(r,{get:()=>b});const a=window.React,s=window.wp.data,o=window.wp.components,c=window.wp.i18n,l=window.wp.primitives,i=(0,a.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(l.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),d=window.wp.a11y;const m=function(e){let t;return(n,r)=>{if("SET_PERSISTENCE_LAYER"===r.type){const{persistenceLayer:e,persistedData:n}=r;return t=e,n}const a=e(n,r);return"SET_PREFERENCE_VALUE"===r.type&&t?.set(a),a}}(((e={},t)=>{if("SET_PREFERENCE_VALUE"===t.type){const{scope:n,name:r,value:a}=t;return{...e,[n]:{...e[n],[r]:a}}}return e})),p=(0,s.combineReducers)({defaults:function(e={},t){if("SET_PREFERENCE_DEFAULTS"===t.type){const{scope:n,defaults:r}=t;return{...e,[n]:{...e[n],...r}}}return e},preferences:m});function u(e,t){return function({select:n,dispatch:r}){const a=n.get(e,t);r.set(e,t,!a)}}function E(e,t,n){return{type:"SET_PREFERENCE_VALUE",scope:e,name:t,value:n}}function f(e,t){return{type:"SET_PREFERENCE_DEFAULTS",scope:e,defaults:t}}async function _(e){const t=await e.get();return{type:"SET_PERSISTENCE_LAYER",persistenceLayer:e,persistedData:t}}const w=window.wp.deprecated;var g=e.n(w);const b=(v=(e,t,n)=>{const r=e.preferences[t]?.[n];return void 0!==r?r:e.defaults[t]?.[n]},(e,t,n)=>["allowRightClickOverrides","distractionFree","editorMode","fixedToolbar","focusMode","hiddenBlockTypes","inactivePanels","keepCaretInsideBlock","mostUsedBlocks","openPanels","showBlockBreadcrumbs","showIconLabels","showListViewByDefault"].includes(n)&&["core/edit-post","core/edit-site"].includes(t)?(g()(`wp.data.select( 'core/preferences' ).get( '${t}', '${n}' )`,{since:"6.5",alternative:`wp.data.select( 'core/preferences' ).get( 'core', '${n}' )`}),v(e,"core",n)):v(e,t,n));var v;const h=(0,s.createReduxStore)("core/preferences",{reducer:p,actions:n,selectors:r});function y({scope:e,name:t,label:n,info:r,messageActivated:l,messageDeactivated:m,shortcut:p,handleToggling:u=!0,onToggle:E=(()=>null),disabled:f=!1}){const _=(0,s.useSelect)((n=>!!n(h).get(e,t)),[e,t]),{toggle:w}=(0,s.useDispatch)(h);return(0,a.createElement)(o.MenuItem,{icon:_&&i,isSelected:_,onClick:()=>{E(),u&&w(e,t),(()=>{if(_){const e=m||(0,c.sprintf)((0,c.__)("Preference deactivated - %s"),n);(0,d.speak)(e)}else{const e=l||(0,c.sprintf)((0,c.__)("Preference activated - %s"),n);(0,d.speak)(e)}})()},role:"menuitemcheckbox",info:r,shortcut:p,disabled:f},n)}(0,s.register)(h);const T=function({help:e,label:t,isChecked:n,onChange:r,children:s}){return(0,a.createElement)("div",{className:"preference-base-option"},(0,a.createElement)(o.ToggleControl,{__nextHasNoMarginBottom:!0,help:e,label:t,checked:n,onChange:r}),s)};const P=function(e){const{scope:t,featureName:n,onToggle:r=(()=>{}),...o}=e,c=(0,s.useSelect)((e=>!!e(h).get(t,n)),[t,n]),{toggle:l}=(0,s.useDispatch)(h);return(0,a.createElement)(T,{onChange:()=>{r(),l(t,n)},isChecked:c,...o})};const S=({description:e,title:t,children:n})=>(0,a.createElement)("fieldset",{className:"preferences-modal__section"},(0,a.createElement)("legend",{className:"preferences-modal__section-legend"},(0,a.createElement)("h2",{className:"preferences-modal__section-title"},t),e&&(0,a.createElement)("p",{className:"preferences-modal__section-description"},e)),(0,a.createElement)("div",{className:"preferences-modal__section-content"},n)),C=window.wp.compose,N=window.wp.element;const x=(0,N.forwardRef)((function({icon:e,size:t=24,...n},r){return(0,N.cloneElement)(e,{width:t,height:t,...n,ref:r})})),k=(0,a.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(l.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),M=(0,a.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(l.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),R=window.wp.privateApis,{lock:L,unlock:B}=(0,R.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/preferences"),{Tabs:I}=B(o.privateApis),A="preferences-menu";const F={};L(F,{PreferenceBaseOption:T,PreferenceToggleControl:P,PreferencesModal:function({closeModal:e,children:t}){return(0,a.createElement)(o.Modal,{className:"preferences-modal",title:(0,c.__)("Preferences"),onRequestClose:e},t)},PreferencesModalSection:S,PreferencesModalTabs:function({sections:e}){const t=(0,C.useViewportMatch)("medium"),[n,r]=(0,N.useState)(A),{tabs:s,sectionsContentMap:l}=(0,N.useMemo)((()=>{let t={tabs:[],sectionsContentMap:{}};return e.length&&(t=e.reduce(((e,{name:t,tabLabel:n,content:r})=>(e.tabs.push({name:t,title:n}),e.sectionsContentMap[t]=r,e)),{tabs:[],sectionsContentMap:{}})),t}),[e]);let i;return i=t?(0,a.createElement)("div",{className:"preferences__tabs"},(0,a.createElement)(I,{initialTabId:n!==A?n:void 0,onSelect:r,orientation:"vertical"},(0,a.createElement)(I.TabList,{className:"preferences__tabs-tablist"},s.map((e=>(0,a.createElement)(I.Tab,{tabId:e.name,key:e.name,className:"preferences__tabs-tab"},e.title)))),s.map((e=>(0,a.createElement)(I.TabPanel,{tabId:e.name,key:e.name,className:"preferences__tabs-tabpanel",focusable:!1},l[e.name]||null))))):(0,a.createElement)(o.__experimentalNavigatorProvider,{initialPath:"/",className:"preferences__provider"},(0,a.createElement)(o.__experimentalNavigatorScreen,{path:"/"},(0,a.createElement)(o.Card,{isBorderless:!0,size:"small"},(0,a.createElement)(o.CardBody,null,(0,a.createElement)(o.__experimentalItemGroup,null,s.map((e=>(0,a.createElement)(o.__experimentalNavigatorButton,{key:e.name,path:e.name,as:o.__experimentalItem,isAction:!0},(0,a.createElement)(o.__experimentalHStack,{justify:"space-between"},(0,a.createElement)(o.FlexItem,null,(0,a.createElement)(o.__experimentalTruncate,null,e.title)),(0,a.createElement)(o.FlexItem,null,(0,a.createElement)(x,{icon:(0,c.isRTL)()?k:M})))))))))),e.length&&e.map((e=>(0,a.createElement)(o.__experimentalNavigatorScreen,{key:`${e.name}-menu`,path:e.name},(0,a.createElement)(o.Card,{isBorderless:!0,size:"large"},(0,a.createElement)(o.CardHeader,{isBorderless:!1,justify:"left",size:"small",gap:"6"},(0,a.createElement)(o.__experimentalNavigatorBackButton,{icon:(0,c.isRTL)()?M:k,"aria-label":(0,c.__)("Navigate to the previous view")}),(0,a.createElement)(o.__experimentalText,{size:"16"},e.tabLabel)),(0,a.createElement)(o.CardBody,null,e.content)))))),i}}),(window.wp=window.wp||{}).preferences=t})(); \ No newline at end of file
+(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{PreferenceToggleMenuItem:()=>v,privateApis:()=>A,store:()=>j});var n={};e.r(n),e.d(n,{set:()=>f,setDefaults:()=>h,setPersistenceLayer:()=>_,toggle:()=>m});var s={};e.r(s),e.d(s,{get:()=>g});const r=window.wp.data,a=window.wp.components,o=window.wp.i18n,i=window.wp.primitives,c=window.ReactJSXRuntime,l=(0,c.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(i.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})}),d=window.wp.a11y;const p=function(e){let t;return(n,s)=>{if("SET_PERSISTENCE_LAYER"===s.type){const{persistenceLayer:e,persistedData:n}=s;return t=e,n}const r=e(n,s);return"SET_PREFERENCE_VALUE"===s.type&&t?.set(r),r}}(((e={},t)=>{if("SET_PREFERENCE_VALUE"===t.type){const{scope:n,name:s,value:r}=t;return{...e,[n]:{...e[n],[s]:r}}}return e})),u=(0,r.combineReducers)({defaults:function(e={},t){if("SET_PREFERENCE_DEFAULTS"===t.type){const{scope:n,defaults:s}=t;return{...e,[n]:{...e[n],...s}}}return e},preferences:p});function m(e,t){return function({select:n,dispatch:s}){const r=n.get(e,t);s.set(e,t,!r)}}function f(e,t,n){return{type:"SET_PREFERENCE_VALUE",scope:e,name:t,value:n}}function h(e,t){return{type:"SET_PREFERENCE_DEFAULTS",scope:e,defaults:t}}async function _(e){const t=await e.get();return{type:"SET_PERSISTENCE_LAYER",persistenceLayer:e,persistedData:t}}const w=window.wp.deprecated;var x=e.n(w);const g=(b=(e,t,n)=>{const s=e.preferences[t]?.[n];return void 0!==s?s:e.defaults[t]?.[n]},(e,t,n)=>["allowRightClickOverrides","distractionFree","editorMode","fixedToolbar","focusMode","hiddenBlockTypes","inactivePanels","keepCaretInsideBlock","mostUsedBlocks","openPanels","showBlockBreadcrumbs","showIconLabels","showListViewByDefault","isPublishSidebarEnabled","isComplementaryAreaVisible","pinnedItems"].includes(n)&&["core/edit-post","core/edit-site"].includes(t)?(x()(`wp.data.select( 'core/preferences' ).get( '${t}', '${n}' )`,{since:"6.5",alternative:`wp.data.select( 'core/preferences' ).get( 'core', '${n}' )`}),b(e,"core",n)):b(e,t,n));var b;const j=(0,r.createReduxStore)("core/preferences",{reducer:u,actions:n,selectors:s});function v({scope:e,name:t,label:n,info:s,messageActivated:i,messageDeactivated:p,shortcut:u,handleToggling:m=!0,onToggle:f=(()=>null),disabled:h=!1}){const _=(0,r.useSelect)((n=>!!n(j).get(e,t)),[e,t]),{toggle:w}=(0,r.useDispatch)(j);return(0,c.jsx)(a.MenuItem,{icon:_&&l,isSelected:_,onClick:()=>{f(),m&&w(e,t),(()=>{if(_){const e=p||(0,o.sprintf)((0,o.__)("Preference deactivated - %s"),n);(0,d.speak)(e)}else{const e=i||(0,o.sprintf)((0,o.__)("Preference activated - %s"),n);(0,d.speak)(e)}})()},role:"menuitemcheckbox",info:s,shortcut:u,disabled:h,children:n})}(0,r.register)(j);const E=function({help:e,label:t,isChecked:n,onChange:s,children:r}){return(0,c.jsxs)("div",{className:"preference-base-option",children:[(0,c.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,help:e,label:t,checked:n,onChange:s}),r]})};const S=function(e){const{scope:t,featureName:n,onToggle:s=(()=>{}),...a}=e,o=(0,r.useSelect)((e=>!!e(j).get(t,n)),[t,n]),{toggle:i}=(0,r.useDispatch)(j);return(0,c.jsx)(E,{onChange:()=>{s(),i(t,n)},isChecked:o,...a})};const P=({description:e,title:t,children:n})=>(0,c.jsxs)("fieldset",{className:"preferences-modal__section",children:[(0,c.jsxs)("legend",{className:"preferences-modal__section-legend",children:[(0,c.jsx)("h2",{className:"preferences-modal__section-title",children:t}),e&&(0,c.jsx)("p",{className:"preferences-modal__section-description",children:e})]}),(0,c.jsx)("div",{className:"preferences-modal__section-content",children:n})]}),T=window.wp.compose,y=window.wp.element;const C=(0,y.forwardRef)((function({icon:e,size:t=24,...n},s){return(0,y.cloneElement)(e,{width:t,height:t,...n,ref:s})})),N=(0,c.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(i.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})}),M=(0,c.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(i.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})}),R=window.wp.privateApis,{lock:k,unlock:B}=(0,R.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/preferences"),{Tabs:L}=B(a.privateApis),I="preferences-menu";const A={};k(A,{PreferenceBaseOption:E,PreferenceToggleControl:S,PreferencesModal:function({closeModal:e,children:t}){return(0,c.jsx)(a.Modal,{className:"preferences-modal",title:(0,o.__)("Preferences"),onRequestClose:e,children:t})},PreferencesModalSection:P,PreferencesModalTabs:function({sections:e}){const t=(0,T.useViewportMatch)("medium"),[n,s]=(0,y.useState)(I),{tabs:r,sectionsContentMap:i}=(0,y.useMemo)((()=>{let t={tabs:[],sectionsContentMap:{}};return e.length&&(t=e.reduce(((e,{name:t,tabLabel:n,content:s})=>(e.tabs.push({name:t,title:n}),e.sectionsContentMap[t]=s,e)),{tabs:[],sectionsContentMap:{}})),t}),[e]);let l;return l=t?(0,c.jsx)("div",{className:"preferences__tabs",children:(0,c.jsxs)(L,{defaultTabId:n!==I?n:void 0,onSelect:s,orientation:"vertical",children:[(0,c.jsx)(L.TabList,{className:"preferences__tabs-tablist",children:r.map((e=>(0,c.jsx)(L.Tab,{tabId:e.name,className:"preferences__tabs-tab",children:e.title},e.name)))}),r.map((e=>(0,c.jsx)(L.TabPanel,{tabId:e.name,className:"preferences__tabs-tabpanel",focusable:!1,children:i[e.name]||null},e.name)))]})}):(0,c.jsxs)(a.__experimentalNavigatorProvider,{initialPath:"/",className:"preferences__provider",children:[(0,c.jsx)(a.__experimentalNavigatorScreen,{path:"/",children:(0,c.jsx)(a.Card,{isBorderless:!0,size:"small",children:(0,c.jsx)(a.CardBody,{children:(0,c.jsx)(a.__experimentalItemGroup,{children:r.map((e=>(0,c.jsx)(a.__experimentalNavigatorButton,{path:e.name,as:a.__experimentalItem,isAction:!0,children:(0,c.jsxs)(a.__experimentalHStack,{justify:"space-between",children:[(0,c.jsx)(a.FlexItem,{children:(0,c.jsx)(a.__experimentalTruncate,{children:e.title})}),(0,c.jsx)(a.FlexItem,{children:(0,c.jsx)(C,{icon:(0,o.isRTL)()?N:M})})]})},e.name)))})})})}),e.length&&e.map((e=>(0,c.jsx)(a.__experimentalNavigatorScreen,{path:e.name,children:(0,c.jsxs)(a.Card,{isBorderless:!0,size:"large",children:[(0,c.jsxs)(a.CardHeader,{isBorderless:!1,justify:"left",size:"small",gap:"6",children:[(0,c.jsx)(a.__experimentalNavigatorBackButton,{icon:(0,o.isRTL)()?M:N,label:(0,o.__)("Back")}),(0,c.jsx)(a.__experimentalText,{size:"16",children:e.tabLabel})]}),(0,c.jsx)(a.CardBody,{children:e.content})]})},`${e.name}-menu`)))]}),l}}),(window.wp=window.wp||{}).preferences=t})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/primitives.js b/wp-includes/js/dist/primitives.js
index 98c171f..2bb63dc 100644
--- a/wp-includes/js/dist/primitives.js
+++ b/wp-includes/js/dist/primitives.js
@@ -1,111 +1,9 @@
/******/ (() => { // webpackBootstrap
-/******/ var __webpack_modules__ = ({
-
-/***/ 5755:
-/***/ ((module, exports) => {
-
-var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/
-/* global define */
-
-(function () {
- 'use strict';
-
- var hasOwn = {}.hasOwnProperty;
- var nativeCodeString = '[native code]';
-
- 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)) {
- if (arg.length) {
- var inner = classNames.apply(null, arg);
- if (inner) {
- classes.push(inner);
- }
- }
- } else if (argType === 'object') {
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
- classes.push(arg.toString());
- continue;
- }
-
- 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 {}
-}());
-
-
-/***/ })
-
-/******/ });
-/************************************************************************/
-/******/ // The module cache
-/******/ var __webpack_module_cache__ = {};
-/******/
-/******/ // The require function
-/******/ function __webpack_require__(moduleId) {
-/******/ // Check if module is in cache
-/******/ var cachedModule = __webpack_module_cache__[moduleId];
-/******/ if (cachedModule !== undefined) {
-/******/ return cachedModule.exports;
-/******/ }
-/******/ // Create a new module (and put it into the cache)
-/******/ var module = __webpack_module_cache__[moduleId] = {
-/******/ // no module.id needed
-/******/ // no module.loaded needed
-/******/ exports: {}
-/******/ };
-/******/
-/******/ // Execute the module function
-/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
-/******/
-/******/ // Return the exports of the module
-/******/ return module.exports;
-/******/ }
+/******/ "use strict";
+/******/ // The require scope
+/******/ var __webpack_require__ = {};
/******/
/************************************************************************/
-/******/ /* webpack/runtime/compat get default export */
-/******/ (() => {
-/******/ // getDefaultExport function for compatibility with non-harmony modules
-/******/ __webpack_require__.n = (module) => {
-/******/ var getter = module && module.__esModule ?
-/******/ () => (module['default']) :
-/******/ () => (module);
-/******/ __webpack_require__.d(getter, { a: getter });
-/******/ return getter;
-/******/ };
-/******/ })();
-/******/
/******/ /* webpack/runtime/define property getters */
/******/ (() => {
/******/ // define getter functions for harmony exports
@@ -136,9 +34,6 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
/******/
/************************************************************************/
var __webpack_exports__ = {};
-// This entry need to be wrapped in an IIFE because it need to be in strict mode.
-(() => {
-"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
@@ -160,11 +55,12 @@ __webpack_require__.d(__webpack_exports__, {
View: () => (/* reexport */ View)
});
-// EXTERNAL MODULE: ./node_modules/classnames/index.js
-var classnames = __webpack_require__(5755);
-var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
+;// CONCATENATED MODULE: ./node_modules/clsx/dist/clsx.mjs
+function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
;// CONCATENATED MODULE: external ["wp","element"]
const external_wp_element_namespaceObject = window["wp"]["element"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/primitives/build-module/svg/index.js
/**
* External dependencies
@@ -183,6 +79,7 @@ const external_wp_element_namespaceObject = window["wp"]["element"];
*
* @return {JSX.Element} Circle component
*/
+
const Circle = props => (0,external_wp_element_namespaceObject.createElement)('circle', props);
/**
@@ -262,7 +159,7 @@ const SVG = (0,external_wp_element_namespaceObject.forwardRef)(
}, ref) => {
const appliedProps = {
...props,
- className: classnames_default()(className, {
+ className: dist_clsx(className, {
'is-pressed': isPressed
}) || undefined,
'aria-hidden': true,
@@ -271,7 +168,7 @@ const SVG = (0,external_wp_element_namespaceObject.forwardRef)(
// Disable reason: We need to have a way to render HTML tag for web.
// eslint-disable-next-line react/forbid-elements
- return (0,external_wp_element_namespaceObject.createElement)("svg", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("svg", {
...appliedProps,
ref: ref
});
@@ -293,8 +190,6 @@ const View = 'div';
-})();
-
(window.wp = window.wp || {}).primitives = __webpack_exports__;
/******/ })()
; \ No newline at end of file
diff --git a/wp-includes/js/dist/primitives.min.js b/wp-includes/js/dist/primitives.min.js
index ce55c3b..954b3be 100644
--- a/wp-includes/js/dist/primitives.min.js
+++ b/wp-includes/js/dist/primitives.min.js
@@ -1,7 +1,2 @@
/*! This file is auto-generated */
-(()=>{var e={5755:(e,t)=>{var r;
-/*!
- Copyright (c) 2018 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<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var i=o.apply(null,r);i&&e.push(i)}}else if("object"===a){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{BlockQuotation:()=>g,Circle:()=>a,Defs:()=>d,G:()=>i,HorizontalRule:()=>y,Line:()=>l,LinearGradient:()=>f,Path:()=>s,Polygon:()=>c,RadialGradient:()=>u,Rect:()=>p,SVG:()=>m,Stop:()=>v,View:()=>b});var e=r(5755),t=r.n(e);const o=window.wp.element,a=e=>(0,o.createElement)("circle",e),i=e=>(0,o.createElement)("g",e),l=e=>(0,o.createElement)("line",e),s=e=>(0,o.createElement)("path",e),c=e=>(0,o.createElement)("polygon",e),p=e=>(0,o.createElement)("rect",e),d=e=>(0,o.createElement)("defs",e),u=e=>(0,o.createElement)("radialGradient",e),f=e=>(0,o.createElement)("linearGradient",e),v=e=>(0,o.createElement)("stop",e),m=(0,o.forwardRef)((({className:e,isPressed:r,...n},a)=>{const i={...n,className:t()(e,{"is-pressed":r})||void 0,"aria-hidden":!0,focusable:!1};return(0,o.createElement)("svg",{...i,ref:a})}));m.displayName="SVG";const y="hr",g="blockquote",b="div"})(),(window.wp=window.wp||{}).primitives=n})(); \ No newline at end of file
+(()=>{"use strict";var e={d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}e.r(t),e.d(t,{BlockQuotation:()=>g,Circle:()=>i,Defs:()=>m,G:()=>l,HorizontalRule:()=>b,Line:()=>c,LinearGradient:()=>u,Path:()=>s,Polygon:()=>d,RadialGradient:()=>p,Rect:()=>f,SVG:()=>w,Stop:()=>y,View:()=>v});const n=function(){for(var e,t,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o},o=window.wp.element,a=window.ReactJSXRuntime,i=e=>(0,o.createElement)("circle",e),l=e=>(0,o.createElement)("g",e),c=e=>(0,o.createElement)("line",e),s=e=>(0,o.createElement)("path",e),d=e=>(0,o.createElement)("polygon",e),f=e=>(0,o.createElement)("rect",e),m=e=>(0,o.createElement)("defs",e),p=e=>(0,o.createElement)("radialGradient",e),u=e=>(0,o.createElement)("linearGradient",e),y=e=>(0,o.createElement)("stop",e),w=(0,o.forwardRef)((({className:e,isPressed:t,...r},o)=>{const i={...r,className:n(e,{"is-pressed":t})||void 0,"aria-hidden":!0,focusable:!1};return(0,a.jsx)("svg",{...i,ref:o})}));w.displayName="SVG";const b="hr",g="blockquote",v="div";(window.wp=window.wp||{}).primitives=t})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/private-apis.js b/wp-includes/js/dist/private-apis.js
index 031a0c0..a396af0 100644
--- a/wp-includes/js/dist/private-apis.js
+++ b/wp-includes/js/dist/private-apis.js
@@ -78,7 +78,7 @@ const registeredPrivateApis = [];
* WITHOUT NOTICE. THIS CHANGE WILL BREAK EXISTING THIRD-PARTY CODE. SUCH A
* CHANGE MAY OCCUR IN EITHER A MAJOR OR MINOR RELEASE.
*/
-const requiredConsent = 'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.';
+const requiredConsent = 'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.';
/** @type {boolean} */
let allowReRegistration;
diff --git a/wp-includes/js/dist/private-apis.min.js b/wp-includes/js/dist/private-apis.min.js
index b3127b3..27b74d0 100644
--- a/wp-includes/js/dist/private-apis.min.js
+++ b/wp-includes/js/dist/private-apis.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-(()=>{"use strict";var e={d:(r,o)=>{for(var s in o)e.o(o,s)&&!e.o(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:o[s]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};e.r(r),e.d(r,{__dangerousOptInToUnstableAPIsOnlyForCoreModules:()=>n});const o=["@wordpress/block-directory","@wordpress/block-editor","@wordpress/block-library","@wordpress/blocks","@wordpress/commands","@wordpress/components","@wordpress/core-commands","@wordpress/core-data","@wordpress/customize-widgets","@wordpress/data","@wordpress/edit-post","@wordpress/edit-site","@wordpress/edit-widgets","@wordpress/editor","@wordpress/format-library","@wordpress/interface","@wordpress/patterns","@wordpress/preferences","@wordpress/reusable-blocks","@wordpress/router","@wordpress/dataviews"],s=[];let t;try{t=!1}catch(e){t=!0}const n=(e,r)=>{if(!o.includes(r))throw new Error(`You tried to opt-in to unstable APIs as module "${r}". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if(!t&&s.includes(r))throw new Error(`You tried to opt-in to unstable APIs as module "${r}" which is already registered. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress."!==e)throw new Error("You tried to opt-in to unstable APIs without confirming you know the consequences. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on the next WordPress release.");return s.push(r),{lock:i,unlock:a}};function i(e,r){if(!e)throw new Error("Cannot lock an undefined object.");l in e||(e[l]={}),d.set(e[l],r)}function a(e){if(!e)throw new Error("Cannot unlock an undefined object.");if(!(l in e))throw new Error("Cannot unlock an object that was not locked before. ");return d.get(e[l])}const d=new WeakMap,l=Symbol("Private API ID");(window.wp=window.wp||{}).privateApis=r})(); \ No newline at end of file
+(()=>{"use strict";var e={d:(r,o)=>{for(var s in o)e.o(o,s)&&!e.o(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:o[s]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};e.r(r),e.d(r,{__dangerousOptInToUnstableAPIsOnlyForCoreModules:()=>n});const o=["@wordpress/block-directory","@wordpress/block-editor","@wordpress/block-library","@wordpress/blocks","@wordpress/commands","@wordpress/components","@wordpress/core-commands","@wordpress/core-data","@wordpress/customize-widgets","@wordpress/data","@wordpress/edit-post","@wordpress/edit-site","@wordpress/edit-widgets","@wordpress/editor","@wordpress/format-library","@wordpress/interface","@wordpress/patterns","@wordpress/preferences","@wordpress/reusable-blocks","@wordpress/router","@wordpress/dataviews"],s=[];let t;try{t=!1}catch(e){t=!0}const n=(e,r)=>{if(!o.includes(r))throw new Error(`You tried to opt-in to unstable APIs as module "${r}". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if(!t&&s.includes(r))throw new Error(`You tried to opt-in to unstable APIs as module "${r}" which is already registered. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress."!==e)throw new Error("You tried to opt-in to unstable APIs without confirming you know the consequences. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on the next WordPress release.");return s.push(r),{lock:i,unlock:d}};function i(e,r){if(!e)throw new Error("Cannot lock an undefined object.");l in e||(e[l]={}),a.set(e[l],r)}function d(e){if(!e)throw new Error("Cannot unlock an undefined object.");if(!(l in e))throw new Error("Cannot unlock an object that was not locked before. ");return a.get(e[l])}const a=new WeakMap,l=Symbol("Private API ID");(window.wp=window.wp||{}).privateApis=r})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/redux-routine.js b/wp-includes/js/dist/redux-routine.js
index 65f095d..a28b21d 100644
--- a/wp-includes/js/dist/redux-routine.js
+++ b/wp-includes/js/dist/redux-routine.js
@@ -265,7 +265,7 @@ exports["default"] = [call, cps];
/***/ }),
-/***/ 1508:
+/***/ 9127:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
@@ -372,7 +372,7 @@ Object.keys(_helpers).forEach(function (key) {
});
});
-var _create = __webpack_require__(1508);
+var _create = __webpack_require__(9127);
var _create2 = _interopRequireDefault(_create);
diff --git a/wp-includes/js/dist/redux-routine.min.js b/wp-includes/js/dist/redux-routine.min.js
index 29eb0c2..bdfaabe 100644
--- a/wp-includes/js/dist/redux-routine.min.js
+++ b/wp-includes/js/dist/redux-routine.min.js
@@ -1,5 +1,5 @@
/*! This file is auto-generated */
-(()=>{"use strict";var r={6910:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.race=e.join=e.fork=e.promise=void 0;var n=a(t(6921)),u=t(3524),o=a(t(5136));function a(r){return r&&r.__esModule?r:{default:r}}var c=e.promise=function(r,e,t,u,o){return!!n.default.promise(r)&&(r.then(e,o),!0)},f=new Map,i=e.fork=function(r,e,t){if(!n.default.fork(r))return!1;var a=Symbol("fork"),c=(0,o.default)();f.set(a,c),t(r.iterator.apply(null,r.args),(function(r){return c.dispatch(r)}),(function(r){return c.dispatch((0,u.error)(r))}));var i=c.subscribe((function(){i(),f.delete(a)}));return e(a),!0},l=e.join=function(r,e,t,u,o){if(!n.default.join(r))return!1;var a,c=f.get(r.task);return c?a=c.subscribe((function(r){a(),e(r)})):o("join error : task not found"),!0},s=e.race=function(r,e,t,u,o){if(!n.default.race(r))return!1;var a,c=!1,f=function(r,t,n){c||(c=!0,r[t]=n,e(r))},i=function(r){c||o(r)};return n.default.array(r.competitors)?(a=r.competitors.map((function(){return!1})),r.competitors.forEach((function(r,e){t(r,(function(r){return f(a,e,r)}),i)}))):function(){var e=Object.keys(r.competitors).reduce((function(r,e){return r[e]=!1,r}),{});Object.keys(r.competitors).forEach((function(n){t(r.competitors[n],(function(r){return f(e,n,r)}),i)}))}(),!0};e.default=[c,i,l,s,function(r,e){if(!n.default.subscribe(r))return!1;if(!n.default.channel(r.channel))throw new Error('the first argument of "subscribe" must be a valid channel');var t=r.channel.subscribe((function(r){t&&t(),e(r)}));return!0}]},5357:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.iterator=e.array=e.object=e.error=e.any=void 0;var n,u=t(6921),o=(n=u)&&n.__esModule?n:{default:n};var a=e.any=function(r,e,t,n){return n(r),!0},c=e.error=function(r,e,t,n,u){return!!o.default.error(r)&&(u(r.error),!0)},f=e.object=function(r,e,t,n,u){if(!o.default.all(r)||!o.default.obj(r.value))return!1;var a={},c=Object.keys(r.value),f=0,i=!1;return c.map((function(e){t(r.value[e],(function(r){return function(r,e){i||(a[r]=e,++f===c.length&&n(a))}(e,r)}),(function(r){return function(r,e){i||(i=!0,u(e))}(0,r)}))})),!0},i=e.array=function(r,e,t,n,u){if(!o.default.all(r)||!o.default.array(r.value))return!1;var a=[],c=0,f=!1;return r.value.map((function(e,o){t(e,(function(e){return function(e,t){f||(a[e]=t,++c===r.value.length&&n(a))}(o,e)}),(function(r){return function(r,e){f||(f=!0,u(e))}(0,r)}))})),!0},l=e.iterator=function(r,e,t,n,u){return!!o.default.iterator(r)&&(t(r,e,u),!0)};e.default=[c,l,i,f,a]},3304:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.cps=e.call=void 0;var n,u=t(6921),o=(n=u)&&n.__esModule?n:{default:n};var a=e.call=function(r,e,t,n,u){if(!o.default.call(r))return!1;try{e(r.func.apply(r.context,r.args))}catch(r){u(r)}return!0},c=e.cps=function(r,e,t,n,u){var a;return!!o.default.cps(r)&&((a=r.func).call.apply(a,[null].concat(function(r){if(Array.isArray(r)){for(var e=0,t=Array(r.length);e<r.length;e++)t[e]=r[e];return t}return Array.from(r)}(r.args),[function(r,t){r?u(r):e(t)}])),!0)};e.default=[a,c]},1508:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=o(t(5357)),u=o(t(6921));function o(r){return r&&r.__esModule?r:{default:r}}function a(r){if(Array.isArray(r)){for(var e=0,t=Array(r.length);e<r.length;e++)t[e]=r[e];return t}return Array.from(r)}e.default=function(){var r=[].concat(a(arguments.length<=0||void 0===arguments[0]?[]:arguments[0]),a(n.default));return function e(t){var n,o,a,c=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1],f=arguments.length<=2||void 0===arguments[2]?function(){}:arguments[2],i=u.default.iterator(t)?t:regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t;case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r,this)}))();n=i,o=function(r){return function(e){try{var t=r?n.throw(e):n.next(e),u=t.value;if(t.done)return c(u);a(u)}catch(r){return f(r)}}},a=function t(n){r.some((function(r){return r(n,t,e,o(!1),o(!0))}))},o(!1)()}}},8975:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.wrapControls=e.asyncControls=e.create=void 0;var n=t(3524);Object.keys(n).forEach((function(r){"default"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return n[r]}})}));var u=c(t(1508)),o=c(t(6910)),a=c(t(3304));function c(r){return r&&r.__esModule?r:{default:r}}e.create=u.default,e.asyncControls=o.default,e.wrapControls=a.default},5136:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var r=[];return{subscribe:function(e){return r.push(e),function(){r=r.filter((function(r){return r!==e}))}},dispatch:function(e){r.slice().forEach((function(r){return r(e)}))}}}},3524:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createChannel=e.subscribe=e.cps=e.apply=e.call=e.invoke=e.delay=e.race=e.join=e.fork=e.error=e.all=void 0;var n,u=t(4137),o=(n=u)&&n.__esModule?n:{default:n};e.all=function(r){return{type:o.default.all,value:r}},e.error=function(r){return{type:o.default.error,error:r}},e.fork=function(r){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return{type:o.default.fork,iterator:r,args:t}},e.join=function(r){return{type:o.default.join,task:r}},e.race=function(r){return{type:o.default.race,competitors:r}},e.delay=function(r){return new Promise((function(e){setTimeout((function(){return e(!0)}),r)}))},e.invoke=function(r){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return{type:o.default.call,func:r,context:null,args:t}},e.call=function(r,e){for(var t=arguments.length,n=Array(t>2?t-2:0),u=2;u<t;u++)n[u-2]=arguments[u];return{type:o.default.call,func:r,context:e,args:n}},e.apply=function(r,e,t){return{type:o.default.call,func:r,context:e,args:t}},e.cps=function(r){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return{type:o.default.cps,func:r,args:t}},e.subscribe=function(r){return{type:o.default.subscribe,channel:r}},e.createChannel=function(r){var e=[];return r((function(r){return e.forEach((function(e){return e(r)}))})),{subscribe:function(r){return e.push(r),function(){return e.splice(e.indexOf(r),1)}}}}},6921:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol?"symbol":typeof r},o=t(4137),a=(n=o)&&n.__esModule?n:{default:n};var c={obj:function(r){return"object"===(void 0===r?"undefined":u(r))&&!!r},all:function(r){return c.obj(r)&&r.type===a.default.all},error:function(r){return c.obj(r)&&r.type===a.default.error},array:Array.isArray,func:function(r){return"function"==typeof r},promise:function(r){return r&&c.func(r.then)},iterator:function(r){return r&&c.func(r.next)&&c.func(r.throw)},fork:function(r){return c.obj(r)&&r.type===a.default.fork},join:function(r){return c.obj(r)&&r.type===a.default.join},race:function(r){return c.obj(r)&&r.type===a.default.race},call:function(r){return c.obj(r)&&r.type===a.default.call},cps:function(r){return c.obj(r)&&r.type===a.default.cps},subscribe:function(r){return c.obj(r)&&r.type===a.default.subscribe},channel:function(r){return c.obj(r)&&c.func(r.subscribe)}};e.default=c},4137:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var t={all:Symbol("all"),error:Symbol("error"),fork:Symbol("fork"),join:Symbol("join"),race:Symbol("race"),call:Symbol("call"),cps:Symbol("cps"),subscribe:Symbol("subscribe")};e.default=t}},e={};function t(n){var u=e[n];if(void 0!==u)return u.exports;var o=e[n]={exports:{}};return r[n](o,o.exports,t),o.exports}t.d=(r,e)=>{for(var n in e)t.o(e,n)&&!t.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:e[n]})},t.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e);var n={};(()=>{t.d(n,{default:()=>a});var r=t(8975);
+(()=>{"use strict";var r={6910:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.race=e.join=e.fork=e.promise=void 0;var n=a(t(6921)),u=t(3524),o=a(t(5136));function a(r){return r&&r.__esModule?r:{default:r}}var c=e.promise=function(r,e,t,u,o){return!!n.default.promise(r)&&(r.then(e,o),!0)},f=new Map,i=e.fork=function(r,e,t){if(!n.default.fork(r))return!1;var a=Symbol("fork"),c=(0,o.default)();f.set(a,c),t(r.iterator.apply(null,r.args),(function(r){return c.dispatch(r)}),(function(r){return c.dispatch((0,u.error)(r))}));var i=c.subscribe((function(){i(),f.delete(a)}));return e(a),!0},l=e.join=function(r,e,t,u,o){if(!n.default.join(r))return!1;var a,c=f.get(r.task);return c?a=c.subscribe((function(r){a(),e(r)})):o("join error : task not found"),!0},s=e.race=function(r,e,t,u,o){if(!n.default.race(r))return!1;var a,c=!1,f=function(r,t,n){c||(c=!0,r[t]=n,e(r))},i=function(r){c||o(r)};return n.default.array(r.competitors)?(a=r.competitors.map((function(){return!1})),r.competitors.forEach((function(r,e){t(r,(function(r){return f(a,e,r)}),i)}))):function(){var e=Object.keys(r.competitors).reduce((function(r,e){return r[e]=!1,r}),{});Object.keys(r.competitors).forEach((function(n){t(r.competitors[n],(function(r){return f(e,n,r)}),i)}))}(),!0};e.default=[c,i,l,s,function(r,e){if(!n.default.subscribe(r))return!1;if(!n.default.channel(r.channel))throw new Error('the first argument of "subscribe" must be a valid channel');var t=r.channel.subscribe((function(r){t&&t(),e(r)}));return!0}]},5357:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.iterator=e.array=e.object=e.error=e.any=void 0;var n,u=t(6921),o=(n=u)&&n.__esModule?n:{default:n};var a=e.any=function(r,e,t,n){return n(r),!0},c=e.error=function(r,e,t,n,u){return!!o.default.error(r)&&(u(r.error),!0)},f=e.object=function(r,e,t,n,u){if(!o.default.all(r)||!o.default.obj(r.value))return!1;var a={},c=Object.keys(r.value),f=0,i=!1;return c.map((function(e){t(r.value[e],(function(r){return function(r,e){i||(a[r]=e,++f===c.length&&n(a))}(e,r)}),(function(r){return function(r,e){i||(i=!0,u(e))}(0,r)}))})),!0},i=e.array=function(r,e,t,n,u){if(!o.default.all(r)||!o.default.array(r.value))return!1;var a=[],c=0,f=!1;return r.value.map((function(e,o){t(e,(function(e){return function(e,t){f||(a[e]=t,++c===r.value.length&&n(a))}(o,e)}),(function(r){return function(r,e){f||(f=!0,u(e))}(0,r)}))})),!0},l=e.iterator=function(r,e,t,n,u){return!!o.default.iterator(r)&&(t(r,e,u),!0)};e.default=[c,l,i,f,a]},3304:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.cps=e.call=void 0;var n,u=t(6921),o=(n=u)&&n.__esModule?n:{default:n};var a=e.call=function(r,e,t,n,u){if(!o.default.call(r))return!1;try{e(r.func.apply(r.context,r.args))}catch(r){u(r)}return!0},c=e.cps=function(r,e,t,n,u){var a;return!!o.default.cps(r)&&((a=r.func).call.apply(a,[null].concat(function(r){if(Array.isArray(r)){for(var e=0,t=Array(r.length);e<r.length;e++)t[e]=r[e];return t}return Array.from(r)}(r.args),[function(r,t){r?u(r):e(t)}])),!0)};e.default=[a,c]},9127:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=o(t(5357)),u=o(t(6921));function o(r){return r&&r.__esModule?r:{default:r}}function a(r){if(Array.isArray(r)){for(var e=0,t=Array(r.length);e<r.length;e++)t[e]=r[e];return t}return Array.from(r)}e.default=function(){var r=[].concat(a(arguments.length<=0||void 0===arguments[0]?[]:arguments[0]),a(n.default));return function e(t){var n,o,a,c=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1],f=arguments.length<=2||void 0===arguments[2]?function(){}:arguments[2],i=u.default.iterator(t)?t:regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t;case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r,this)}))();n=i,o=function(r){return function(e){try{var t=r?n.throw(e):n.next(e),u=t.value;if(t.done)return c(u);a(u)}catch(r){return f(r)}}},a=function t(n){r.some((function(r){return r(n,t,e,o(!1),o(!0))}))},o(!1)()}}},8975:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.wrapControls=e.asyncControls=e.create=void 0;var n=t(3524);Object.keys(n).forEach((function(r){"default"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return n[r]}})}));var u=c(t(9127)),o=c(t(6910)),a=c(t(3304));function c(r){return r&&r.__esModule?r:{default:r}}e.create=u.default,e.asyncControls=o.default,e.wrapControls=a.default},5136:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var r=[];return{subscribe:function(e){return r.push(e),function(){r=r.filter((function(r){return r!==e}))}},dispatch:function(e){r.slice().forEach((function(r){return r(e)}))}}}},3524:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createChannel=e.subscribe=e.cps=e.apply=e.call=e.invoke=e.delay=e.race=e.join=e.fork=e.error=e.all=void 0;var n,u=t(4137),o=(n=u)&&n.__esModule?n:{default:n};e.all=function(r){return{type:o.default.all,value:r}},e.error=function(r){return{type:o.default.error,error:r}},e.fork=function(r){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return{type:o.default.fork,iterator:r,args:t}},e.join=function(r){return{type:o.default.join,task:r}},e.race=function(r){return{type:o.default.race,competitors:r}},e.delay=function(r){return new Promise((function(e){setTimeout((function(){return e(!0)}),r)}))},e.invoke=function(r){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return{type:o.default.call,func:r,context:null,args:t}},e.call=function(r,e){for(var t=arguments.length,n=Array(t>2?t-2:0),u=2;u<t;u++)n[u-2]=arguments[u];return{type:o.default.call,func:r,context:e,args:n}},e.apply=function(r,e,t){return{type:o.default.call,func:r,context:e,args:t}},e.cps=function(r){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return{type:o.default.cps,func:r,args:t}},e.subscribe=function(r){return{type:o.default.subscribe,channel:r}},e.createChannel=function(r){var e=[];return r((function(r){return e.forEach((function(e){return e(r)}))})),{subscribe:function(r){return e.push(r),function(){return e.splice(e.indexOf(r),1)}}}}},6921:(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol?"symbol":typeof r},o=t(4137),a=(n=o)&&n.__esModule?n:{default:n};var c={obj:function(r){return"object"===(void 0===r?"undefined":u(r))&&!!r},all:function(r){return c.obj(r)&&r.type===a.default.all},error:function(r){return c.obj(r)&&r.type===a.default.error},array:Array.isArray,func:function(r){return"function"==typeof r},promise:function(r){return r&&c.func(r.then)},iterator:function(r){return r&&c.func(r.next)&&c.func(r.throw)},fork:function(r){return c.obj(r)&&r.type===a.default.fork},join:function(r){return c.obj(r)&&r.type===a.default.join},race:function(r){return c.obj(r)&&r.type===a.default.race},call:function(r){return c.obj(r)&&r.type===a.default.call},cps:function(r){return c.obj(r)&&r.type===a.default.cps},subscribe:function(r){return c.obj(r)&&r.type===a.default.subscribe},channel:function(r){return c.obj(r)&&c.func(r.subscribe)}};e.default=c},4137:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var t={all:Symbol("all"),error:Symbol("error"),fork:Symbol("fork"),join:Symbol("join"),race:Symbol("race"),call:Symbol("call"),cps:Symbol("cps"),subscribe:Symbol("subscribe")};e.default=t}},e={};function t(n){var u=e[n];if(void 0!==u)return u.exports;var o=e[n]={exports:{}};return r[n](o,o.exports,t),o.exports}t.d=(r,e)=>{for(var n in e)t.o(e,n)&&!t.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:e[n]})},t.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e);var n={};(()=>{t.d(n,{default:()=>a});var r=t(8975);
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
diff --git a/wp-includes/js/dist/reusable-blocks.js b/wp-includes/js/dist/reusable-blocks.js
index c804230..5f23bc3 100644
--- a/wp-includes/js/dist/reusable-blocks.js
+++ b/wp-includes/js/dist/reusable-blocks.js
@@ -221,26 +221,27 @@ const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME,
});
(0,external_wp_data_namespaceObject.register)(store);
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: external ["wp","element"]
const external_wp_element_namespaceObject = window["wp"]["element"];
;// CONCATENATED MODULE: external ["wp","components"]
const external_wp_components_namespaceObject = window["wp"]["components"];
;// CONCATENATED MODULE: external ["wp","primitives"]
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/symbol.js
-
/**
* WordPress dependencies
*/
-const symbol = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const symbol = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
+ })
+});
/* harmony default export */ const library_symbol = (symbol);
;// CONCATENATED MODULE: external ["wp","notices"]
@@ -256,10 +257,9 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
const {
unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/reusable-blocks');
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/reusable-blocks');
;// CONCATENATED MODULE: ./node_modules/@wordpress/reusable-blocks/build-module/components/reusable-blocks-menu-items/reusable-block-convert-button.js
-
/**
* WordPress dependencies
*/
@@ -278,6 +278,9 @@ const {
*/
+
+
+
const {
useReusableBlocksRenameHint,
ReusableBlocksRenameHint
@@ -357,57 +360,65 @@ function ReusableBlockConvertButton({
if (!canConvert) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- icon: library_symbol,
- onClick: () => setIsModalOpen(true)
- }, showRenameHint ? (0,external_wp_i18n_namespaceObject.__)('Create pattern/reusable block') : (0,external_wp_i18n_namespaceObject.__)('Create pattern')), isModalOpen && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
- title: (0,external_wp_i18n_namespaceObject.__)('Create pattern'),
- onRequestClose: () => {
- setIsModalOpen(false);
- setTitle('');
- },
- overlayClassName: "reusable-blocks-menu-items__convert-modal"
- }, (0,external_React_namespaceObject.createElement)("form", {
- onSubmit: event => {
- event.preventDefault();
- onConvert(title);
- setIsModalOpen(false);
- setTitle('');
- onClose();
- }
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
- spacing: "5"
- }, (0,external_React_namespaceObject.createElement)(ReusableBlocksRenameHint, null), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
- __nextHasNoMarginBottom: true,
- label: (0,external_wp_i18n_namespaceObject.__)('Name'),
- value: title,
- onChange: setTitle,
- placeholder: (0,external_wp_i18n_namespaceObject.__)('My pattern')
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
- label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'Option that makes an individual pattern synchronized'),
- help: (0,external_wp_i18n_namespaceObject.__)('Sync this pattern across multiple locations.'),
- checked: !syncType,
- onChange: () => {
- setSyncType(!syncType ? 'unsynced' : undefined);
- }
- }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalHStack, {
- justify: "right"
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "tertiary",
- onClick: () => {
- setIsModalOpen(false);
- setTitle('');
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Cancel')), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
- variant: "primary",
- type: "submit"
- }, (0,external_wp_i18n_namespaceObject.__)('Create')))))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ icon: library_symbol,
+ onClick: () => setIsModalOpen(true),
+ children: showRenameHint ? (0,external_wp_i18n_namespaceObject.__)('Create pattern/reusable block') : (0,external_wp_i18n_namespaceObject.__)('Create pattern')
+ }), isModalOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
+ title: (0,external_wp_i18n_namespaceObject.__)('Create pattern'),
+ onRequestClose: () => {
+ setIsModalOpen(false);
+ setTitle('');
+ },
+ overlayClassName: "reusable-blocks-menu-items__convert-modal",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
+ onSubmit: event => {
+ event.preventDefault();
+ onConvert(title);
+ setIsModalOpen(false);
+ setTitle('');
+ onClose();
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
+ spacing: "5",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ReusableBlocksRenameHint, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextControl, {
+ __nextHasNoMarginBottom: true,
+ label: (0,external_wp_i18n_namespaceObject.__)('Name'),
+ value: title,
+ onChange: setTitle,
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('My pattern')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
+ label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'pattern (singular)'),
+ help: (0,external_wp_i18n_namespaceObject.__)('Sync this pattern across multiple locations.'),
+ checked: !syncType,
+ onChange: () => {
+ setSyncType(!syncType ? 'unsynced' : undefined);
+ }
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
+ justify: "right",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "tertiary",
+ onClick: () => {
+ setIsModalOpen(false);
+ setTitle('');
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
+ variant: "primary",
+ type: "submit",
+ children: (0,external_wp_i18n_namespaceObject.__)('Create')
+ })]
+ })]
+ })
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: external ["wp","url"]
const external_wp_url_namespaceObject = window["wp"]["url"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/reusable-blocks/build-module/components/reusable-blocks-menu-items/reusable-blocks-manage-button.js
-
/**
* WordPress dependencies
*/
@@ -423,6 +434,9 @@ const external_wp_url_namespaceObject = window["wp"]["url"];
* Internal dependencies
*/
+
+
+
function ReusableBlocksManageButton({
clientId
}) {
@@ -434,14 +448,12 @@ function ReusableBlocksManageButton({
const {
getBlock,
canRemoveBlock,
- getBlockCount,
- getSettings
+ getBlockCount
} = select(external_wp_blockEditor_namespaceObject.store);
const {
canUser
} = select(external_wp_coreData_namespaceObject.store);
const reusableBlock = getBlock(clientId);
- const isBlockTheme = getSettings().__unstableIsBlockBasedTheme;
return {
canRemove: canRemoveBlock(clientId),
isVisible: !!reusableBlock && (0,external_wp_blocks_namespaceObject.isReusableBlock)(reusableBlock) && !!canUser('update', 'blocks', reusableBlock.attributes.ref),
@@ -449,7 +461,7 @@ function ReusableBlocksManageButton({
// The site editor and templates both check whether the user
// has edit_theme_options capabilities. We can leverage that here
// and omit the manage patterns link if the user can't access it.
- managePatternsUrl: isBlockTheme && canUser('read', 'templates') ? (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', {
+ managePatternsUrl: canUser('create', 'templates') ? (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', {
path: '/patterns'
}) : (0,external_wp_url_namespaceObject.addQueryArgs)('edit.php', {
post_type: 'wp_block'
@@ -462,16 +474,19 @@ function ReusableBlocksManageButton({
if (!isVisible) {
return null;
}
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- href: managePatternsUrl
- }, (0,external_wp_i18n_namespaceObject.__)('Manage patterns')), canRemove && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
- onClick: () => convertBlockToStatic(clientId)
- }, (0,external_wp_i18n_namespaceObject.__)('Detach')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ href: managePatternsUrl,
+ children: (0,external_wp_i18n_namespaceObject.__)('Manage patterns')
+ }), canRemove && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
+ onClick: () => convertBlockToStatic(clientId),
+ children: (0,external_wp_i18n_namespaceObject.__)('Detach')
+ })]
+ });
}
/* harmony default export */ const reusable_blocks_manage_button = (ReusableBlocksManageButton);
;// CONCATENATED MODULE: ./node_modules/@wordpress/reusable-blocks/build-module/components/reusable-blocks-menu-items/index.js
-
/**
* WordPress dependencies
*/
@@ -482,19 +497,26 @@ function ReusableBlocksManageButton({
*/
+
+
+
function ReusableBlocksMenuItems({
rootClientId
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockSettingsMenuControls, null, ({
- onClose,
- selectedClientIds
- }) => (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(ReusableBlockConvertButton, {
- clientIds: selectedClientIds,
- rootClientId: rootClientId,
- onClose: onClose
- }), selectedClientIds.length === 1 && (0,external_React_namespaceObject.createElement)(reusable_blocks_manage_button, {
- clientId: selectedClientIds[0]
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockSettingsMenuControls, {
+ children: ({
+ onClose,
+ selectedClientIds
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ReusableBlockConvertButton, {
+ clientIds: selectedClientIds,
+ rootClientId: rootClientId,
+ onClose: onClose
+ }), selectedClientIds.length === 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(reusable_blocks_manage_button, {
+ clientId: selectedClientIds[0]
+ })]
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/reusable-blocks/build-module/components/index.js
diff --git a/wp-includes/js/dist/reusable-blocks.min.js b/wp-includes/js/dist/reusable-blocks.min.js
index 0aeb79b..b77310e 100644
--- a/wp-includes/js/dist/reusable-blocks.min.js
+++ b/wp-includes/js/dist/reusable-blocks.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ReusableBlocksMenuItems:()=>T,store:()=>_});var n={};e.r(n),e.d(n,{__experimentalConvertBlockToStatic:()=>a,__experimentalConvertBlocksToReusable:()=>i,__experimentalDeleteReusableBlock:()=>u,__experimentalSetEditingReusableBlock:()=>p});var o={};e.r(o),e.d(o,{__experimentalIsEditingReusableBlock:()=>m});const r=window.wp.data,l=window.wp.blockEditor,c=window.wp.blocks,s=window.wp.i18n,a=e=>({registry:t})=>{const n=t.select(l.store).getBlock(e),o=t.select("core").getEditedEntityRecord("postType","wp_block",n.attributes.ref),r=(0,c.parse)("function"==typeof o.content?o.content(o):o.content);t.dispatch(l.store).replaceBlocks(n.clientId,r)},i=(e,t,n)=>async({registry:o,dispatch:r})=>{const a="unsynced"===n?{wp_pattern_sync_status:n}:void 0,i={title:t||(0,s.__)("Untitled pattern block"),content:(0,c.serialize)(o.select(l.store).getBlocksByClientId(e)),status:"publish",meta:a},u=await o.dispatch("core").saveEntityRecord("postType","wp_block",i);if("unsynced"===n)return;const p=(0,c.createBlock)("core/block",{ref:u.id});o.dispatch(l.store).replaceBlocks(e,p),r.__experimentalSetEditingReusableBlock(p.clientId,!0)},u=e=>async({registry:t})=>{if(!t.select("core").getEditedEntityRecord("postType","wp_block",e))return;const n=t.select(l.store).getBlocks().filter((t=>(0,c.isReusableBlock)(t)&&t.attributes.ref===e)).map((e=>e.clientId));n.length&&t.dispatch(l.store).removeBlocks(n),await t.dispatch("core").deleteEntityRecord("postType","wp_block",e)};function p(e,t){return{type:"SET_EDITING_REUSABLE_BLOCK",clientId:e,isEditing:t}}const d=(0,r.combineReducers)({isEditingReusableBlock:function(e={},t){return"SET_EDITING_REUSABLE_BLOCK"===t?.type?{...e,[t.clientId]:t.isEditing}:e}});function m(e,t){return e.isEditingReusableBlock[t]}const _=(0,r.createReduxStore)("core/reusable-blocks",{actions:n,reducer:d,selectors:o});(0,r.register)(_);const b=window.React,k=window.wp.element,w=window.wp.components,y=window.wp.primitives,g=(0,b.createElement)(y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,b.createElement)(y.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),B=window.wp.notices,E=window.wp.coreData,v=window.wp.privateApis,{unlock:h}=(0,v.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/reusable-blocks"),{useReusableBlocksRenameHint:C,ReusableBlocksRenameHint:f}=h(l.privateApis);function R({clientIds:e,rootClientId:t,onClose:n}){const o=C(),[a,i]=(0,k.useState)(void 0),[u,p]=(0,k.useState)(!1),[d,m]=(0,k.useState)(""),y=(0,r.useSelect)((n=>{var o;const{canUser:r}=n(E.store),{getBlocksByClientId:s,canInsertBlockType:a,getBlockRootClientId:i}=n(l.store),u=t||(e.length>0?i(e[0]):void 0),p=null!==(o=s(e))&&void 0!==o?o:[];return!(1===p.length&&p[0]&&(0,c.isReusableBlock)(p[0])&&!!n(E.store).getEntityRecord("postType","wp_block",p[0].attributes.ref))&&a("core/block",u)&&p.every((e=>!!e&&e.isValid&&(0,c.hasBlockSupport)(e.name,"reusable",!0)))&&!!r("create","blocks")}),[e,t]),{__experimentalConvertBlocksToReusable:v}=(0,r.useDispatch)(_),{createSuccessNotice:h,createErrorNotice:R}=(0,r.useDispatch)(B.store),I=(0,k.useCallback)((async function(t){try{await v(e,t,a),h(a?(0,s.sprintf)((0,s.__)("Unsynced pattern created: %s"),t):(0,s.sprintf)((0,s.__)("Synced pattern created: %s"),t),{type:"snackbar",id:"convert-to-reusable-block-success"})}catch(e){R(e.message,{type:"snackbar",id:"convert-to-reusable-block-error"})}}),[v,e,a,h,R]);return y?(0,b.createElement)(b.Fragment,null,(0,b.createElement)(w.MenuItem,{icon:g,onClick:()=>p(!0)},o?(0,s.__)("Create pattern/reusable block"):(0,s.__)("Create pattern")),u&&(0,b.createElement)(w.Modal,{title:(0,s.__)("Create pattern"),onRequestClose:()=>{p(!1),m("")},overlayClassName:"reusable-blocks-menu-items__convert-modal"},(0,b.createElement)("form",{onSubmit:e=>{e.preventDefault(),I(d),p(!1),m(""),n()}},(0,b.createElement)(w.__experimentalVStack,{spacing:"5"},(0,b.createElement)(f,null),(0,b.createElement)(w.TextControl,{__nextHasNoMarginBottom:!0,label:(0,s.__)("Name"),value:d,onChange:m,placeholder:(0,s.__)("My pattern")}),(0,b.createElement)(w.ToggleControl,{label:(0,s._x)("Synced","Option that makes an individual pattern synchronized"),help:(0,s.__)("Sync this pattern across multiple locations."),checked:!a,onChange:()=>{i(a?void 0:"unsynced")}}),(0,b.createElement)(w.__experimentalHStack,{justify:"right"},(0,b.createElement)(w.Button,{variant:"tertiary",onClick:()=>{p(!1),m("")}},(0,s.__)("Cancel")),(0,b.createElement)(w.Button,{variant:"primary",type:"submit"},(0,s.__)("Create"))))))):null}const I=window.wp.url;const S=function({clientId:e}){const{canRemove:t,isVisible:n,managePatternsUrl:o}=(0,r.useSelect)((t=>{const{getBlock:n,canRemoveBlock:o,getBlockCount:r,getSettings:s}=t(l.store),{canUser:a}=t(E.store),i=n(e),u=s().__unstableIsBlockBasedTheme;return{canRemove:o(e),isVisible:!!i&&(0,c.isReusableBlock)(i)&&!!a("update","blocks",i.attributes.ref),innerBlockCount:r(e),managePatternsUrl:u&&a("read","templates")?(0,I.addQueryArgs)("site-editor.php",{path:"/patterns"}):(0,I.addQueryArgs)("edit.php",{post_type:"wp_block"})}}),[e]),{__experimentalConvertBlockToStatic:a}=(0,r.useDispatch)(_);return n?(0,b.createElement)(b.Fragment,null,(0,b.createElement)(w.MenuItem,{href:o},(0,s.__)("Manage patterns")),t&&(0,b.createElement)(w.MenuItem,{onClick:()=>a(e)},(0,s.__)("Detach"))):null};function T({rootClientId:e}){return(0,b.createElement)(l.BlockSettingsMenuControls,null,(({onClose:t,selectedClientIds:n})=>(0,b.createElement)(b.Fragment,null,(0,b.createElement)(R,{clientIds:n,rootClientId:e,onClose:t}),1===n.length&&(0,b.createElement)(S,{clientId:n[0]}))))}(window.wp=window.wp||{}).reusableBlocks=t})(); \ No newline at end of file
+(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ReusableBlocksMenuItems:()=>j,store:()=>b});var n={};e.r(n),e.d(n,{__experimentalConvertBlockToStatic:()=>i,__experimentalConvertBlocksToReusable:()=>a,__experimentalDeleteReusableBlock:()=>d,__experimentalSetEditingReusableBlock:()=>p});var o={};e.r(o),e.d(o,{__experimentalIsEditingReusableBlock:()=>_});const s=window.wp.data,r=window.wp.blockEditor,c=window.wp.blocks,l=window.wp.i18n,i=e=>({registry:t})=>{const n=t.select(r.store).getBlock(e),o=t.select("core").getEditedEntityRecord("postType","wp_block",n.attributes.ref),s=(0,c.parse)("function"==typeof o.content?o.content(o):o.content);t.dispatch(r.store).replaceBlocks(n.clientId,s)},a=(e,t,n)=>async({registry:o,dispatch:s})=>{const i="unsynced"===n?{wp_pattern_sync_status:n}:void 0,a={title:t||(0,l.__)("Untitled pattern block"),content:(0,c.serialize)(o.select(r.store).getBlocksByClientId(e)),status:"publish",meta:i},d=await o.dispatch("core").saveEntityRecord("postType","wp_block",a);if("unsynced"===n)return;const p=(0,c.createBlock)("core/block",{ref:d.id});o.dispatch(r.store).replaceBlocks(e,p),s.__experimentalSetEditingReusableBlock(p.clientId,!0)},d=e=>async({registry:t})=>{if(!t.select("core").getEditedEntityRecord("postType","wp_block",e))return;const n=t.select(r.store).getBlocks().filter((t=>(0,c.isReusableBlock)(t)&&t.attributes.ref===e)).map((e=>e.clientId));n.length&&t.dispatch(r.store).removeBlocks(n),await t.dispatch("core").deleteEntityRecord("postType","wp_block",e)};function p(e,t){return{type:"SET_EDITING_REUSABLE_BLOCK",clientId:e,isEditing:t}}const u=(0,s.combineReducers)({isEditingReusableBlock:function(e={},t){return"SET_EDITING_REUSABLE_BLOCK"===t?.type?{...e,[t.clientId]:t.isEditing}:e}});function _(e,t){return e.isEditingReusableBlock[t]}const b=(0,s.createReduxStore)("core/reusable-blocks",{actions:n,reducer:u,selectors:o});(0,s.register)(b);const k=window.wp.element,w=window.wp.components,g=window.wp.primitives,m=window.ReactJSXRuntime,y=(0,m.jsx)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,m.jsx)(g.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})}),h=window.wp.notices,B=window.wp.coreData,v=window.wp.privateApis,{unlock:x}=(0,v.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/reusable-blocks"),{useReusableBlocksRenameHint:C,ReusableBlocksRenameHint:f}=x(r.privateApis);function R({clientIds:e,rootClientId:t,onClose:n}){const o=C(),[i,a]=(0,k.useState)(void 0),[d,p]=(0,k.useState)(!1),[u,_]=(0,k.useState)(""),g=(0,s.useSelect)((n=>{var o;const{canUser:s}=n(B.store),{getBlocksByClientId:l,canInsertBlockType:i,getBlockRootClientId:a}=n(r.store),d=t||(e.length>0?a(e[0]):void 0),p=null!==(o=l(e))&&void 0!==o?o:[];return!(1===p.length&&p[0]&&(0,c.isReusableBlock)(p[0])&&!!n(B.store).getEntityRecord("postType","wp_block",p[0].attributes.ref))&&i("core/block",d)&&p.every((e=>!!e&&e.isValid&&(0,c.hasBlockSupport)(e.name,"reusable",!0)))&&!!s("create","blocks")}),[e,t]),{__experimentalConvertBlocksToReusable:v}=(0,s.useDispatch)(b),{createSuccessNotice:x,createErrorNotice:R}=(0,s.useDispatch)(h.store),S=(0,k.useCallback)((async function(t){try{await v(e,t,i),x(i?(0,l.sprintf)((0,l.__)("Unsynced pattern created: %s"),t):(0,l.sprintf)((0,l.__)("Synced pattern created: %s"),t),{type:"snackbar",id:"convert-to-reusable-block-success"})}catch(e){R(e.message,{type:"snackbar",id:"convert-to-reusable-block-error"})}}),[v,e,i,x,R]);return g?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(w.MenuItem,{icon:y,onClick:()=>p(!0),children:o?(0,l.__)("Create pattern/reusable block"):(0,l.__)("Create pattern")}),d&&(0,m.jsx)(w.Modal,{title:(0,l.__)("Create pattern"),onRequestClose:()=>{p(!1),_("")},overlayClassName:"reusable-blocks-menu-items__convert-modal",children:(0,m.jsx)("form",{onSubmit:e=>{e.preventDefault(),S(u),p(!1),_(""),n()},children:(0,m.jsxs)(w.__experimentalVStack,{spacing:"5",children:[(0,m.jsx)(f,{}),(0,m.jsx)(w.TextControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Name"),value:u,onChange:_,placeholder:(0,l.__)("My pattern")}),(0,m.jsx)(w.ToggleControl,{label:(0,l._x)("Synced","pattern (singular)"),help:(0,l.__)("Sync this pattern across multiple locations."),checked:!i,onChange:()=>{a(i?void 0:"unsynced")}}),(0,m.jsxs)(w.__experimentalHStack,{justify:"right",children:[(0,m.jsx)(w.Button,{variant:"tertiary",onClick:()=>{p(!1),_("")},children:(0,l.__)("Cancel")}),(0,m.jsx)(w.Button,{variant:"primary",type:"submit",children:(0,l.__)("Create")})]})]})})})]}):null}const S=window.wp.url;const I=function({clientId:e}){const{canRemove:t,isVisible:n,managePatternsUrl:o}=(0,s.useSelect)((t=>{const{getBlock:n,canRemoveBlock:o,getBlockCount:s}=t(r.store),{canUser:l}=t(B.store),i=n(e);return{canRemove:o(e),isVisible:!!i&&(0,c.isReusableBlock)(i)&&!!l("update","blocks",i.attributes.ref),innerBlockCount:s(e),managePatternsUrl:l("create","templates")?(0,S.addQueryArgs)("site-editor.php",{path:"/patterns"}):(0,S.addQueryArgs)("edit.php",{post_type:"wp_block"})}}),[e]),{__experimentalConvertBlockToStatic:i}=(0,s.useDispatch)(b);return n?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(w.MenuItem,{href:o,children:(0,l.__)("Manage patterns")}),t&&(0,m.jsx)(w.MenuItem,{onClick:()=>i(e),children:(0,l.__)("Detach")})]}):null};function j({rootClientId:e}){return(0,m.jsx)(r.BlockSettingsMenuControls,{children:({onClose:t,selectedClientIds:n})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(R,{clientIds:n,rootClientId:e,onClose:t}),1===n.length&&(0,m.jsx)(I,{clientId:n[0]})]})})}(window.wp=window.wp||{}).reusableBlocks=t})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/rich-text.js b/wp-includes/js/dist/rich-text.js
index e0aa83e..3e953e5 100644
--- a/wp-includes/js/dist/rich-text.js
+++ b/wp-includes/js/dist/rich-text.js
@@ -136,307 +136,9 @@ function formatTypes(state = {}, action) {
formatTypes
}));
-;// CONCATENATED MODULE: ./node_modules/rememo/rememo.js
-
-
-/** @typedef {(...args: any[]) => *[]} GetDependants */
-
-/** @typedef {() => void} Clear */
-
-/**
- * @typedef {{
- * getDependants: GetDependants,
- * clear: Clear
- * }} EnhancedSelector
- */
-
-/**
- * Internal cache entry.
- *
- * @typedef CacheNode
- *
- * @property {?CacheNode|undefined} [prev] Previous node.
- * @property {?CacheNode|undefined} [next] Next node.
- * @property {*[]} args Function arguments for cache entry.
- * @property {*} val Function result.
- */
-
-/**
- * @typedef Cache
- *
- * @property {Clear} clear Function to clear cache.
- * @property {boolean} [isUniqueByDependants] Whether dependants are valid in
- * considering cache uniqueness. A cache is unique if dependents are all arrays
- * or objects.
- * @property {CacheNode?} [head] Cache head.
- * @property {*[]} [lastDependants] Dependants from previous invocation.
- */
-
-/**
- * Arbitrary value used as key for referencing cache object in WeakMap tree.
- *
- * @type {{}}
- */
-var LEAF_KEY = {};
-
-/**
- * Returns the first argument as the sole entry in an array.
- *
- * @template T
- *
- * @param {T} value Value to return.
- *
- * @return {[T]} 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 {Cache} Cache object.
- */
-function createCache() {
- /** @type {Cache} */
- 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 {*[]} a First array.
- * @param {*[]} 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.
- *
- * @template {(...args: *[]) => *} S
- *
- * @param {S} selector Selector function.
- * @param {GetDependants=} getDependants Dependant getter returning an array of
- * references used in cache bust consideration.
- */
-/* harmony default export */ function rememo(selector, getDependants) {
- /** @type {WeakMap<*,*>} */
- var rootCache;
-
- /** @type {GetDependants} */
- var normalizedGetDependants = getDependants ? getDependants : arrayOf;
-
- /**
- * 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 {*[]} dependants Selector dependants.
- *
- * @return {Cache} Cache object.
- */
- function getCache(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);
- }
-
- /**
- * Resets root memoization cache.
- */
- function clear() {
- rootCache = new WeakMap();
- }
-
- /* eslint-disable jsdoc/check-param-names */
- /**
- * The augmented selector call, considering first whether dependants have
- * changed before passing it to underlying memoize function.
- *
- * @param {*} source Source object for derivation.
- * @param {...*} extraArgs Additional arguments to pass to selector.
- *
- * @return {*} Selector result.
- */
- /* eslint-enable jsdoc/check-param-names */
- 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 = normalizedGetDependants.apply(null, args);
- cache = getCache(dependants);
-
- // If not guaranteed uniqueness by dependants (primitive type), 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.
- /** @type {CacheNode} */ (node.prev).next = node.next;
- if (node.next) {
- node.next.prev = node.prev;
- }
-
- node.next = cache.head;
- node.prev = null;
- /** @type {CacheNode} */ (cache.head).prev = node;
- cache.head = node;
- }
-
- // Return immediately
- return node.val;
- }
-
- // No cached value found. Continue to insertion phase:
-
- node = /** @type {CacheNode} */ ({
- // 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 = normalizedGetDependants;
- callSelector.clear = clear;
- clear();
-
- return /** @type {S & EnhancedSelector} */ (callSelector);
-}
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/store/selectors.js
/**
- * External dependencies
+ * WordPress dependencies
*/
@@ -473,7 +175,7 @@ function isShallowEqual(a, b, fromIndex) {
*
* @return {Array} Format types.
*/
-const getFormatTypes = rememo(state => Object.values(state.formatTypes), state => [state.formatTypes]);
+const getFormatTypes = (0,external_wp_data_namespaceObject.createSelector)(state => Object.values(state.formatTypes), state => [state.formatTypes]);
/**
* Returns a format type by name.
@@ -1185,7 +887,9 @@ function toTree({
}
if (character === OBJECT_REPLACEMENT_CHARACTER) {
const replacement = replacements[i];
- if (!replacement) continue;
+ if (!replacement) {
+ continue;
+ }
const {
type,
attributes,
@@ -1902,7 +1606,9 @@ function createFromElement({
});
continue;
}
- if (format) delete format.formatType;
+ if (format) {
+ delete format.formatType;
+ }
const value = createFromElement({
element: node,
range,
@@ -3024,7 +2730,9 @@ function useAnchorRef({
} = settings;
const activeFormat = name ? getActiveFormat(value, name) : undefined;
return (0,external_wp_element_namespaceObject.useMemo)(() => {
- if (!ref.current) return;
+ if (!ref.current) {
+ return;
+ }
const {
ownerDocument: {
defaultView
@@ -3088,9 +2796,15 @@ function getFormatElement(range, editableContentElement, tagName, className) {
if (element.nodeType !== element.ELEMENT_NODE) {
element = element.parentElement;
}
- if (!element) return;
- if (element === editableContentElement) return;
- if (!editableContentElement.contains(element)) return;
+ if (!element) {
+ return;
+ }
+ if (element === editableContentElement) {
+ return;
+ }
+ if (!editableContentElement.contains(element)) {
+ return;
+ }
const selector = tagName + (className ? '.' + className : '');
// .closest( selector ), but with a boundary. Check if the element matches
@@ -3143,7 +2857,9 @@ function createVirtualAnchorElement(range, editableContentElement) {
* @return {HTMLElement|VirtualAnchorElement|undefined} The anchor.
*/
function getAnchor(editableContentElement, tagName, className) {
- if (!editableContentElement) return;
+ if (!editableContentElement) {
+ return;
+ }
const {
ownerDocument
} = editableContentElement;
@@ -3151,12 +2867,20 @@ function getAnchor(editableContentElement, tagName, className) {
defaultView
} = ownerDocument;
const selection = defaultView.getSelection();
- if (!selection) return;
- if (!selection.rangeCount) return;
+ if (!selection) {
+ return;
+ }
+ if (!selection.rangeCount) {
+ return;
+ }
const range = selection.getRangeAt(0);
- if (!range || !range.startContainer) return;
+ if (!range || !range.startContainer) {
+ return;
+ }
const formatElement = getFormatElement(range, editableContentElement, tagName, className);
- if (formatElement) return formatElement;
+ if (formatElement) {
+ return formatElement;
+ }
return createVirtualAnchorElement(range, editableContentElement);
}
@@ -3184,7 +2908,9 @@ function useAnchor({
const [anchor, setAnchor] = (0,external_wp_element_namespaceObject.useState)(() => getAnchor(editableContentElement, tagName, className));
const wasActive = (0,external_wp_compose_namespaceObject.usePrevious)(isActive);
(0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
- if (!editableContentElement) return;
+ if (!editableContentElement) {
+ return;
+ }
function callback() {
setAnchor(getAnchor(editableContentElement, tagName, className));
}
@@ -3253,7 +2979,9 @@ const whiteSpace = 'pre-wrap';
const minWidth = '1px';
function useDefaultStyle() {
return (0,external_wp_element_namespaceObject.useCallback)(element => {
- if (!element) return;
+ if (!element) {
+ return;
+ }
element.style.whiteSpace = whiteSpace;
element.style.minWidth = minWidth;
}, []);
@@ -3315,216 +3043,243 @@ function useBoundaryStyle({
return ref;
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/component/use-copy-handler.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/component/event-listeners/copy-handler.js
/**
- * WordPress dependencies
+ * Internal dependencies
*/
-/**
- * Internal dependencies
- */
+/* harmony default export */ const copy_handler = (props => element => {
+ function onCopy(event) {
+ const {
+ record
+ } = props.current;
+ const {
+ ownerDocument
+ } = element;
+ if (isCollapsed(record.current) || !element.contains(ownerDocument.activeElement)) {
+ return;
+ }
+ const selectedRecord = slice(record.current);
+ const plainText = getTextContent(selectedRecord);
+ const html = toHTMLString({
+ value: selectedRecord
+ });
+ event.clipboardData.setData('text/plain', plainText);
+ event.clipboardData.setData('text/html', html);
+ event.clipboardData.setData('rich-text', 'true');
+ event.preventDefault();
+ if (event.type === 'cut') {
+ ownerDocument.execCommand('delete');
+ }
+ }
+ const {
+ defaultView
+ } = element.ownerDocument;
+ defaultView.addEventListener('copy', onCopy);
+ defaultView.addEventListener('cut', onCopy);
+ return () => {
+ defaultView.removeEventListener('copy', onCopy);
+ defaultView.removeEventListener('cut', onCopy);
+ };
+});
+;// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/component/event-listeners/select-object.js
+/* harmony default export */ const select_object = (() => element => {
+ function onClick(event) {
+ const {
+ target
+ } = event;
+ // If the child element has no text content, it must be an object.
+ if (target === element || target.textContent && target.isContentEditable) {
+ return;
+ }
+ const {
+ ownerDocument
+ } = target;
+ const {
+ defaultView
+ } = ownerDocument;
+ const selection = defaultView.getSelection();
-function useCopyHandler(props) {
- const propsRef = (0,external_wp_element_namespaceObject.useRef)(props);
- propsRef.current = props;
- return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
- function onCopy(event) {
- const {
- record
- } = propsRef.current;
- const {
- ownerDocument
- } = element;
- if (isCollapsed(record.current) || !element.contains(ownerDocument.activeElement)) {
- return;
- }
- const selectedRecord = slice(record.current);
- const plainText = getTextContent(selectedRecord);
- const html = toHTMLString({
- value: selectedRecord
- });
- event.clipboardData.setData('text/plain', plainText);
- event.clipboardData.setData('text/html', html);
- event.clipboardData.setData('rich-text', 'true');
- event.preventDefault();
- if (event.type === 'cut') {
- ownerDocument.execCommand('delete');
- }
+ // If it's already selected, do nothing and let default behavior happen.
+ // This means it's "click-through".
+ if (selection.containsNode(target)) {
+ return;
}
- element.addEventListener('copy', onCopy);
- element.addEventListener('cut', onCopy);
- return () => {
- element.removeEventListener('copy', onCopy);
- element.removeEventListener('cut', onCopy);
- };
- }, []);
-}
+ const range = ownerDocument.createRange();
+ // If the target is within a non editable element, select the non
+ // editable element.
+ const nodeToSelect = target.isContentEditable ? target : target.closest('[contenteditable]');
+ range.selectNode(nodeToSelect);
+ selection.removeAllRanges();
+ selection.addRange(range);
+ event.preventDefault();
+ }
+ function onFocusIn(event) {
+ // When there is incoming focus from a link, select the object.
+ if (event.relatedTarget && !element.contains(event.relatedTarget) && event.relatedTarget.tagName === 'A') {
+ onClick(event);
+ }
+ }
+ element.addEventListener('click', onClick);
+ element.addEventListener('focusin', onFocusIn);
+ return () => {
+ element.removeEventListener('click', onClick);
+ element.removeEventListener('focusin', onFocusIn);
+ };
+});
;// CONCATENATED MODULE: external ["wp","keycodes"]
const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/component/use-format-boundaries.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/component/event-listeners/format-boundaries.js
/**
* WordPress dependencies
*/
-
-
/**
* Internal dependencies
*/
const EMPTY_ACTIVE_FORMATS = [];
-function useFormatBoundaries(props) {
- const [, forceRender] = (0,external_wp_element_namespaceObject.useReducer)(() => ({}));
- const propsRef = (0,external_wp_element_namespaceObject.useRef)(props);
- propsRef.current = props;
- return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
- function onKeyDown(event) {
- const {
- keyCode,
- shiftKey,
- altKey,
- metaKey,
- ctrlKey
- } = event;
- if (
- // Only override left and right keys without modifiers pressed.
- shiftKey || altKey || metaKey || ctrlKey || keyCode !== external_wp_keycodes_namespaceObject.LEFT && keyCode !== external_wp_keycodes_namespaceObject.RIGHT) {
- return;
- }
- const {
- record,
- applyRecord
- } = propsRef.current;
- const {
- text,
- formats,
- start,
- end,
- activeFormats: currentActiveFormats = []
- } = record.current;
- const collapsed = isCollapsed(record.current);
- const {
- ownerDocument
- } = element;
- const {
- defaultView
- } = ownerDocument;
- // To do: ideally, we should look at visual position instead.
- const {
- direction
- } = defaultView.getComputedStyle(element);
- const reverseKey = direction === 'rtl' ? external_wp_keycodes_namespaceObject.RIGHT : external_wp_keycodes_namespaceObject.LEFT;
- const isReverse = event.keyCode === reverseKey;
-
- // If the selection is collapsed and at the very start, do nothing if
- // navigating backward.
- // If the selection is collapsed and at the very end, do nothing if
- // navigating forward.
- if (collapsed && currentActiveFormats.length === 0) {
- if (start === 0 && isReverse) {
- return;
- }
- if (end === text.length && !isReverse) {
- return;
- }
- }
-
- // If the selection is not collapsed, let the browser handle collapsing
- // the selection for now. Later we could expand this logic to set
- // boundary positions if needed.
- if (!collapsed) {
+/* harmony default export */ const format_boundaries = (props => element => {
+ function onKeyDown(event) {
+ const {
+ keyCode,
+ shiftKey,
+ altKey,
+ metaKey,
+ ctrlKey
+ } = event;
+ if (
+ // Only override left and right keys without modifiers pressed.
+ shiftKey || altKey || metaKey || ctrlKey || keyCode !== external_wp_keycodes_namespaceObject.LEFT && keyCode !== external_wp_keycodes_namespaceObject.RIGHT) {
+ return;
+ }
+ const {
+ record,
+ applyRecord,
+ forceRender
+ } = props.current;
+ const {
+ text,
+ formats,
+ start,
+ end,
+ activeFormats: currentActiveFormats = []
+ } = record.current;
+ const collapsed = isCollapsed(record.current);
+ const {
+ ownerDocument
+ } = element;
+ const {
+ defaultView
+ } = ownerDocument;
+ // To do: ideally, we should look at visual position instead.
+ const {
+ direction
+ } = defaultView.getComputedStyle(element);
+ const reverseKey = direction === 'rtl' ? external_wp_keycodes_namespaceObject.RIGHT : external_wp_keycodes_namespaceObject.LEFT;
+ const isReverse = event.keyCode === reverseKey;
+
+ // If the selection is collapsed and at the very start, do nothing if
+ // navigating backward.
+ // If the selection is collapsed and at the very end, do nothing if
+ // navigating forward.
+ if (collapsed && currentActiveFormats.length === 0) {
+ if (start === 0 && isReverse) {
return;
}
- const formatsBefore = formats[start - 1] || EMPTY_ACTIVE_FORMATS;
- const formatsAfter = formats[start] || EMPTY_ACTIVE_FORMATS;
- const destination = isReverse ? formatsBefore : formatsAfter;
- const isIncreasing = currentActiveFormats.every((format, index) => format === destination[index]);
- let newActiveFormatsLength = currentActiveFormats.length;
- if (!isIncreasing) {
- newActiveFormatsLength--;
- } else if (newActiveFormatsLength < destination.length) {
- newActiveFormatsLength++;
- }
- if (newActiveFormatsLength === currentActiveFormats.length) {
- record.current._newActiveFormats = destination;
+ if (end === text.length && !isReverse) {
return;
}
- event.preventDefault();
- const origin = isReverse ? formatsAfter : formatsBefore;
- const source = isIncreasing ? destination : origin;
- const newActiveFormats = source.slice(0, newActiveFormatsLength);
- const newValue = {
- ...record.current,
- activeFormats: newActiveFormats
- };
- record.current = newValue;
- applyRecord(newValue);
- forceRender();
}
- element.addEventListener('keydown', onKeyDown);
- return () => {
- element.removeEventListener('keydown', onKeyDown);
+
+ // If the selection is not collapsed, let the browser handle collapsing
+ // the selection for now. Later we could expand this logic to set
+ // boundary positions if needed.
+ if (!collapsed) {
+ return;
+ }
+ const formatsBefore = formats[start - 1] || EMPTY_ACTIVE_FORMATS;
+ const formatsAfter = formats[start] || EMPTY_ACTIVE_FORMATS;
+ const destination = isReverse ? formatsBefore : formatsAfter;
+ const isIncreasing = currentActiveFormats.every((format, index) => format === destination[index]);
+ let newActiveFormatsLength = currentActiveFormats.length;
+ if (!isIncreasing) {
+ newActiveFormatsLength--;
+ } else if (newActiveFormatsLength < destination.length) {
+ newActiveFormatsLength++;
+ }
+ if (newActiveFormatsLength === currentActiveFormats.length) {
+ record.current._newActiveFormats = destination;
+ return;
+ }
+ event.preventDefault();
+ const origin = isReverse ? formatsAfter : formatsBefore;
+ const source = isIncreasing ? destination : origin;
+ const newActiveFormats = source.slice(0, newActiveFormatsLength);
+ const newValue = {
+ ...record.current,
+ activeFormats: newActiveFormats
};
- }, []);
-}
+ record.current = newValue;
+ applyRecord(newValue);
+ forceRender();
+ }
+ element.addEventListener('keydown', onKeyDown);
+ return () => {
+ element.removeEventListener('keydown', onKeyDown);
+ };
+});
-;// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/component/use-select-object.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/component/event-listeners/delete.js
/**
* WordPress dependencies
*/
-function useSelectObject() {
- return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
- function onClick(event) {
- const {
- target
- } = event;
- // If the child element has no text content, it must be an object.
- if (target === element || target.textContent && target.isContentEditable) {
- return;
- }
- const {
- ownerDocument
- } = target;
- const {
- defaultView
- } = ownerDocument;
- const selection = defaultView.getSelection();
-
- // If it's already selected, do nothing and let default behavior
- // happen. This means it's "click-through".
- if (selection.containsNode(target)) return;
- const range = ownerDocument.createRange();
- // If the target is within a non editable element, select the non
- // editable element.
- const nodeToSelect = target.isContentEditable ? target : target.closest('[contenteditable]');
- range.selectNode(nodeToSelect);
- selection.removeAllRanges();
- selection.addRange(range);
- event.preventDefault();
+/**
+ * Internal dependencies
+ */
+
+/* harmony default export */ const event_listeners_delete = (props => element => {
+ function onKeyDown(event) {
+ const {
+ keyCode
+ } = event;
+ const {
+ createRecord,
+ handleChange
+ } = props.current;
+ if (event.defaultPrevented) {
+ return;
}
- function onFocusIn(event) {
- // When there is incoming focus from a link, select the object.
- if (event.relatedTarget && !element.contains(event.relatedTarget) && event.relatedTarget.tagName === 'A') {
- onClick(event);
- }
+ if (keyCode !== external_wp_keycodes_namespaceObject.DELETE && keyCode !== external_wp_keycodes_namespaceObject.BACKSPACE) {
+ return;
}
- element.addEventListener('click', onClick);
- element.addEventListener('focusin', onFocusIn);
- return () => {
- element.removeEventListener('click', onClick);
- element.removeEventListener('focusin', onFocusIn);
- };
- }, []);
-}
+ const currentValue = createRecord();
+ const {
+ start,
+ end,
+ text
+ } = currentValue;
+
+ // Always handle full content deletion ourselves.
+ if (start === 0 && end !== 0 && end === text.length) {
+ handleChange(remove_remove(currentValue));
+ event.preventDefault();
+ }
+ }
+ element.addEventListener('keydown', onKeyDown);
+ return () => {
+ element.removeEventListener('keydown', onKeyDown);
+ };
+});
;// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/update-formats.js
/**
@@ -3583,13 +3338,7 @@ function updateFormats({
return value;
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/component/use-input-and-selection.js
-/**
- * WordPress dependencies
- */
-
-
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/component/event-listeners/input-and-selection.js
/**
* Internal dependencies
*/
@@ -3604,7 +3353,7 @@ function updateFormats({
* @type {Set}
*/
const INSERTION_INPUT_TYPES_TO_IGNORE = new Set(['insertParagraph', 'insertOrderedList', 'insertUnorderedList', 'insertHorizontalRule', 'insertLink']);
-const use_input_and_selection_EMPTY_ACTIVE_FORMATS = [];
+const input_and_selection_EMPTY_ACTIVE_FORMATS = [];
const PLACEHOLDER_ATTR_NAME = 'data-rich-text-placeholder';
/**
@@ -3628,210 +3377,204 @@ function fixPlaceholderSelection(defaultView) {
}
selection.collapseToStart();
}
-function useInputAndSelection(props) {
- const propsRef = (0,external_wp_element_namespaceObject.useRef)(props);
- propsRef.current = props;
- return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
- const {
- ownerDocument
- } = element;
+/* harmony default export */ const input_and_selection = (props => element => {
+ const {
+ ownerDocument
+ } = element;
+ const {
+ defaultView
+ } = ownerDocument;
+ let isComposing = false;
+ function onInput(event) {
+ // Do not trigger a change if characters are being composed. Browsers
+ // will usually emit a final `input` event when the characters are
+ // composed. As of December 2019, Safari doesn't support
+ // nativeEvent.isComposing.
+ if (isComposing) {
+ return;
+ }
+ let inputType;
+ if (event) {
+ inputType = event.inputType;
+ }
const {
- defaultView
- } = ownerDocument;
- let isComposing = false;
- function onInput(event) {
- // Do not trigger a change if characters are being composed.
- // Browsers will usually emit a final `input` event when the
- // characters are composed.
- // As of December 2019, Safari doesn't support
- // nativeEvent.isComposing.
- if (isComposing) {
- return;
- }
- let inputType;
- if (event) {
- inputType = event.inputType;
- }
- const {
- record,
- applyRecord,
- createRecord,
- handleChange
- } = propsRef.current;
-
- // The browser formatted something or tried to insert HTML.
- // Overwrite it. It will be handled later by the format library if
- // needed.
- if (inputType && (inputType.indexOf('format') === 0 || INSERTION_INPUT_TYPES_TO_IGNORE.has(inputType))) {
- applyRecord(record.current);
- return;
- }
- const currentValue = createRecord();
- const {
- start,
- activeFormats: oldActiveFormats = []
- } = record.current;
-
- // Update the formats between the last and new caret position.
- const change = updateFormats({
- value: currentValue,
- start,
- end: currentValue.start,
- formats: oldActiveFormats
- });
- handleChange(change);
+ record,
+ applyRecord,
+ createRecord,
+ handleChange
+ } = props.current;
+
+ // The browser formatted something or tried to insert HTML. Overwrite
+ // it. It will be handled later by the format library if needed.
+ if (inputType && (inputType.indexOf('format') === 0 || INSERTION_INPUT_TYPES_TO_IGNORE.has(inputType))) {
+ applyRecord(record.current);
+ return;
}
+ const currentValue = createRecord();
+ const {
+ start,
+ activeFormats: oldActiveFormats = []
+ } = record.current;
- /**
- * Syncs the selection to local state. A callback for the
- * `selectionchange` event.
- */
- function handleSelectionChange() {
- const {
- record,
- applyRecord,
- createRecord,
- onSelectionChange
- } = propsRef.current;
-
- // Check if the implementor disabled editing. `contentEditable`
- // does disable input, but not text selection, so we must ignore
- // selection changes.
- if (element.contentEditable !== 'true') {
- return;
- }
-
- // Ensure the active element is the rich text element.
- if (ownerDocument.activeElement !== element) {
- // If it is not, we can stop listening for selection changes.
- // We resume listening when the element is focused.
- ownerDocument.removeEventListener('selectionchange', handleSelectionChange);
- return;
- }
-
- // In case of a keyboard event, ignore selection changes during
- // composition.
- if (isComposing) {
- return;
- }
- const {
- start,
- end,
- text
- } = createRecord();
- const oldRecord = record.current;
-
- // Fallback mechanism for IE11, which doesn't support the input event.
- // Any input results in a selection change.
- if (text !== oldRecord.text) {
- onInput();
- return;
- }
- if (start === oldRecord.start && end === oldRecord.end) {
- // Sometimes the browser may set the selection on the placeholder
- // element, in which case the caret is not visible. We need to set
- // the caret before the placeholder if that's the case.
- if (oldRecord.text.length === 0 && start === 0) {
- fixPlaceholderSelection(defaultView);
- }
- return;
- }
- const newValue = {
- ...oldRecord,
- start,
- end,
- // _newActiveFormats may be set on arrow key navigation to control
- // the right boundary position. If undefined, getActiveFormats will
- // give the active formats according to the browser.
- activeFormats: oldRecord._newActiveFormats,
- _newActiveFormats: undefined
- };
- const newActiveFormats = getActiveFormats(newValue, use_input_and_selection_EMPTY_ACTIVE_FORMATS);
-
- // Update the value with the new active formats.
- newValue.activeFormats = newActiveFormats;
+ // Update the formats between the last and new caret position.
+ const change = updateFormats({
+ value: currentValue,
+ start,
+ end: currentValue.start,
+ formats: oldActiveFormats
+ });
+ handleChange(change);
+ }
- // It is important that the internal value is updated first,
- // otherwise the value will be wrong on render!
- record.current = newValue;
- applyRecord(newValue, {
- domOnly: true
- });
- onSelectionChange(start, end);
+ /**
+ * Syncs the selection to local state. A callback for the `selectionchange`
+ * event.
+ */
+ function handleSelectionChange() {
+ const {
+ record,
+ applyRecord,
+ createRecord,
+ onSelectionChange
+ } = props.current;
+
+ // Check if the implementor disabled editing. `contentEditable` does
+ // disable input, but not text selection, so we must ignore selection
+ // changes.
+ if (element.contentEditable !== 'true') {
+ return;
}
- function onCompositionStart() {
- isComposing = true;
- // Do not update the selection when characters are being composed as
- // this rerenders the component and might destroy internal browser
- // editing state.
+
+ // Ensure the active element is the rich text element.
+ if (ownerDocument.activeElement !== element) {
+ // If it is not, we can stop listening for selection changes. We
+ // resume listening when the element is focused.
ownerDocument.removeEventListener('selectionchange', handleSelectionChange);
- // Remove the placeholder. Since the rich text value doesn't update
- // during composition, the placeholder doesn't get removed. There's
- // no need to re-add it, when the value is updated on compositionend
- // it will be re-added when the value is empty.
- element.querySelector(`[${PLACEHOLDER_ATTR_NAME}]`)?.remove();
+ return;
}
- function onCompositionEnd() {
- isComposing = false;
- // Ensure the value is up-to-date for browsers that don't emit a final
- // input event after composition.
- onInput({
- inputType: 'insertText'
- });
- // Tracking selection changes can be resumed.
- ownerDocument.addEventListener('selectionchange', handleSelectionChange);
+
+ // In case of a keyboard event, ignore selection changes during
+ // composition.
+ if (isComposing) {
+ return;
}
- function onFocus() {
- const {
- record,
- isSelected,
- onSelectionChange,
- applyRecord
- } = propsRef.current;
-
- // When the whole editor is editable, let writing flow handle
- // selection.
- if (element.parentElement.closest('[contenteditable="true"]')) {
- return;
- }
- if (!isSelected) {
- // We know for certain that on focus, the old selection is invalid.
- // It will be recalculated on the next mouseup, keyup, or touchend
- // event.
- const index = undefined;
- record.current = {
- ...record.current,
- start: index,
- end: index,
- activeFormats: use_input_and_selection_EMPTY_ACTIVE_FORMATS
- };
- } else {
- applyRecord(record.current, {
- domOnly: true
- });
+ const {
+ start,
+ end,
+ text
+ } = createRecord();
+ const oldRecord = record.current;
+
+ // Fallback mechanism for IE11, which doesn't support the input event.
+ // Any input results in a selection change.
+ if (text !== oldRecord.text) {
+ onInput();
+ return;
+ }
+ if (start === oldRecord.start && end === oldRecord.end) {
+ // Sometimes the browser may set the selection on the placeholder
+ // element, in which case the caret is not visible. We need to set
+ // the caret before the placeholder if that's the case.
+ if (oldRecord.text.length === 0 && start === 0) {
+ fixPlaceholderSelection(defaultView);
}
- onSelectionChange(record.current.start, record.current.end);
- ownerDocument.addEventListener('selectionchange', handleSelectionChange);
+ return;
}
- element.addEventListener('input', onInput);
- element.addEventListener('compositionstart', onCompositionStart);
- element.addEventListener('compositionend', onCompositionEnd);
- element.addEventListener('focus', onFocus);
- return () => {
- element.removeEventListener('input', onInput);
- element.removeEventListener('compositionstart', onCompositionStart);
- element.removeEventListener('compositionend', onCompositionEnd);
- element.removeEventListener('focus', onFocus);
+ const newValue = {
+ ...oldRecord,
+ start,
+ end,
+ // _newActiveFormats may be set on arrow key navigation to control
+ // the right boundary position. If undefined, getActiveFormats will
+ // give the active formats according to the browser.
+ activeFormats: oldRecord._newActiveFormats,
+ _newActiveFormats: undefined
};
- }, []);
-}
+ const newActiveFormats = getActiveFormats(newValue, input_and_selection_EMPTY_ACTIVE_FORMATS);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/component/use-selection-change-compat.js
-/**
- * WordPress dependencies
- */
+ // Update the value with the new active formats.
+ newValue.activeFormats = newActiveFormats;
+ // It is important that the internal value is updated first,
+ // otherwise the value will be wrong on render!
+ record.current = newValue;
+ applyRecord(newValue, {
+ domOnly: true
+ });
+ onSelectionChange(start, end);
+ }
+ function onCompositionStart() {
+ isComposing = true;
+ // Do not update the selection when characters are being composed as
+ // this rerenders the component and might destroy internal browser
+ // editing state.
+ ownerDocument.removeEventListener('selectionchange', handleSelectionChange);
+ // Remove the placeholder. Since the rich text value doesn't update
+ // during composition, the placeholder doesn't get removed. There's no
+ // need to re-add it, when the value is updated on compositionend it
+ // will be re-added when the value is empty.
+ element.querySelector(`[${PLACEHOLDER_ATTR_NAME}]`)?.remove();
+ }
+ function onCompositionEnd() {
+ isComposing = false;
+ // Ensure the value is up-to-date for browsers that don't emit a final
+ // input event after composition.
+ onInput({
+ inputType: 'insertText'
+ });
+ // Tracking selection changes can be resumed.
+ ownerDocument.addEventListener('selectionchange', handleSelectionChange);
+ }
+ function onFocus() {
+ const {
+ record,
+ isSelected,
+ onSelectionChange,
+ applyRecord
+ } = props.current;
+
+ // When the whole editor is editable, let writing flow handle
+ // selection.
+ if (element.parentElement.closest('[contenteditable="true"]')) {
+ return;
+ }
+ if (!isSelected) {
+ // We know for certain that on focus, the old selection is invalid.
+ // It will be recalculated on the next mouseup, keyup, or touchend
+ // event.
+ const index = undefined;
+ record.current = {
+ ...record.current,
+ start: index,
+ end: index,
+ activeFormats: input_and_selection_EMPTY_ACTIVE_FORMATS
+ };
+ } else {
+ applyRecord(record.current, {
+ domOnly: true
+ });
+ }
+ onSelectionChange(record.current.start, record.current.end);
+
+ // There is no selection change event when the element is focused, so
+ // we need to manually trigger it. The selection is also not available
+ // yet in this call stack.
+ window.queueMicrotask(handleSelectionChange);
+ ownerDocument.addEventListener('selectionchange', handleSelectionChange);
+ }
+ element.addEventListener('input', onInput);
+ element.addEventListener('compositionstart', onCompositionStart);
+ element.addEventListener('compositionend', onCompositionEnd);
+ element.addEventListener('focus', onFocus);
+ return () => {
+ element.removeEventListener('input', onInput);
+ element.removeEventListener('compositionstart', onCompositionStart);
+ element.removeEventListener('compositionend', onCompositionEnd);
+ element.removeEventListener('focus', onFocus);
+ };
+});
+;// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/component/event-listeners/selection-change-compat.js
/**
* Internal dependencies
*/
@@ -3842,97 +3585,73 @@ function useInputAndSelection(props) {
* changing the selection by mouse or keyboard. This hook makes sure that, if we
* detect no `selectionchange` or `input` event between the up and down events,
* we fire a `selectionchange` event.
- *
- * @return {import('@wordpress/compose').RefEffect} A ref effect attaching the
- * listeners.
*/
-function useSelectionChangeCompat() {
- return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
- const {
- ownerDocument
- } = element;
- const {
- defaultView
- } = ownerDocument;
- const selection = defaultView?.getSelection();
- let range;
- function getRange() {
- return selection.rangeCount ? selection.getRangeAt(0) : null;
- }
- function onDown(event) {
- const type = event.type === 'keydown' ? 'keyup' : 'pointerup';
- function onCancel() {
- ownerDocument.removeEventListener(type, onUp);
- ownerDocument.removeEventListener('selectionchange', onCancel);
- ownerDocument.removeEventListener('input', onCancel);
- }
- function onUp() {
- onCancel();
- if (isRangeEqual(range, getRange())) return;
- ownerDocument.dispatchEvent(new Event('selectionchange'));
+/* harmony default export */ const selection_change_compat = (() => element => {
+ const {
+ ownerDocument
+ } = element;
+ const {
+ defaultView
+ } = ownerDocument;
+ const selection = defaultView?.getSelection();
+ let range;
+ function getRange() {
+ return selection.rangeCount ? selection.getRangeAt(0) : null;
+ }
+ function onDown(event) {
+ const type = event.type === 'keydown' ? 'keyup' : 'pointerup';
+ function onCancel() {
+ ownerDocument.removeEventListener(type, onUp);
+ ownerDocument.removeEventListener('selectionchange', onCancel);
+ ownerDocument.removeEventListener('input', onCancel);
+ }
+ function onUp() {
+ onCancel();
+ if (isRangeEqual(range, getRange())) {
+ return;
}
- ownerDocument.addEventListener(type, onUp);
- ownerDocument.addEventListener('selectionchange', onCancel);
- ownerDocument.addEventListener('input', onCancel);
- range = getRange();
- }
- element.addEventListener('pointerdown', onDown);
- element.addEventListener('keydown', onDown);
- return () => {
- element.removeEventListener('pointerdown', onDown);
- element.removeEventListener('keydown', onDown);
- };
- }, []);
-}
+ ownerDocument.dispatchEvent(new Event('selectionchange'));
+ }
+ ownerDocument.addEventListener(type, onUp);
+ ownerDocument.addEventListener('selectionchange', onCancel);
+ ownerDocument.addEventListener('input', onCancel);
+ range = getRange();
+ }
+ element.addEventListener('pointerdown', onDown);
+ element.addEventListener('keydown', onDown);
+ return () => {
+ element.removeEventListener('pointerdown', onDown);
+ element.removeEventListener('keydown', onDown);
+ };
+});
-;// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/component/use-delete.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/component/event-listeners/index.js
/**
* WordPress dependencies
*/
-
/**
* Internal dependencies
*/
-function useDelete(props) {
+
+
+
+
+
+const allEventListeners = [copy_handler, select_object, format_boundaries, event_listeners_delete, input_and_selection, selection_change_compat];
+function useEventListeners(props) {
const propsRef = (0,external_wp_element_namespaceObject.useRef)(props);
propsRef.current = props;
+ const refEffects = (0,external_wp_element_namespaceObject.useMemo)(() => allEventListeners.map(refEffect => refEffect(propsRef)), [propsRef]);
return (0,external_wp_compose_namespaceObject.useRefEffect)(element => {
- function onKeyDown(event) {
- const {
- keyCode
- } = event;
- const {
- createRecord,
- handleChange
- } = propsRef.current;
- if (event.defaultPrevented) {
- return;
- }
- if (keyCode !== external_wp_keycodes_namespaceObject.DELETE && keyCode !== external_wp_keycodes_namespaceObject.BACKSPACE) {
- return;
- }
- const currentValue = createRecord();
- const {
- start,
- end,
- text
- } = currentValue;
-
- // Always handle full content deletion ourselves.
- if (start === 0 && end !== 0 && end === text.length) {
- handleChange(remove_remove(currentValue));
- event.preventDefault();
- }
- }
- element.addEventListener('keydown', onKeyDown);
+ const cleanups = refEffects.map(effect => effect(element));
return () => {
- element.removeEventListener('keydown', onKeyDown);
+ cleanups.forEach(cleanup => cleanup());
};
- }, []);
+ }, [refEffects]);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/component/index.js
@@ -3952,11 +3671,6 @@ function useDelete(props) {
-
-
-
-
-
function useRichText({
value = '',
selectionStart,
@@ -4114,22 +3828,15 @@ function useRichText({
}, [hadSelectionUpdate.current]);
const mergedRefs = (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, useDefaultStyle(), useBoundaryStyle({
record
- }), useCopyHandler({
- record
- }), useSelectObject(), useFormatBoundaries({
- record,
- applyRecord
- }), useDelete({
- createRecord,
- handleChange
- }), useInputAndSelection({
+ }), useEventListeners({
record,
+ handleChange,
applyRecord,
createRecord,
- handleChange,
isSelected,
- onSelectionChange
- }), useSelectionChangeCompat(), (0,external_wp_compose_namespaceObject.useRefEffect)(() => {
+ onSelectionChange,
+ forceRender
+ }), (0,external_wp_compose_namespaceObject.useRefEffect)(() => {
applyFromProps();
didMount.current = true;
}, [placeholder, ...__unstableDependencies])]);
diff --git a/wp-includes/js/dist/rich-text.min.js b/wp-includes/js/dist/rich-text.min.js
index cd96502..c64c48c 100644
--- a/wp-includes/js/dist/rich-text.min.js
+++ b/wp-includes/js/dist/rich-text.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{RichTextData:()=>I,__experimentalRichText:()=>Ge,__unstableCreateElement:()=>b,__unstableToDom:()=>we,__unstableUseRichText:()=>Ye,applyFormat:()=>E,concat:()=>J,create:()=>B,getActiveFormat:()=>Q,getActiveFormats:()=>N,getActiveObject:()=>ee,getTextContent:()=>V,insert:()=>ie,insertObject:()=>ue,isCollapsed:()=>te,isEmpty:()=>ne,join:()=>re,registerFormatType:()=>oe,remove:()=>ce,removeFormat:()=>ae,replace:()=>le,slice:()=>fe,split:()=>de,store:()=>g,toHTMLString:()=>O,toggleFormat:()=>Fe,unregisterFormatType:()=>Re,useAnchor:()=>$e,useAnchorRef:()=>De});var n={};e.r(n),e.d(n,{getFormatType:()=>u,getFormatTypeForBareElement:()=>f,getFormatTypeForClassName:()=>d,getFormatTypes:()=>l});var r={};e.r(r),e.d(r,{addFormatTypes:()=>m,removeFormatTypes:()=>p});const o=window.wp.data;const a=(0,o.combineReducers)({formatTypes:function(e={},t){switch(t.type){case"ADD_FORMAT_TYPES":return{...e,...t.formatTypes.reduce(((e,t)=>({...e,[t.name]:t})),{})};case"REMOVE_FORMAT_TYPES":return Object.fromEntries(Object.entries(e).filter((([e])=>!t.names.includes(e))))}return e}});var s={};function i(e){return[e]}function c(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const l=function(e,t){var n,r=t||i;function o(){n=new WeakMap}function a(){var t,o,a,i,l,u=arguments.length;for(i=new Array(u),a=0;a<u;a++)i[a]=arguments[a];for(t=function(e){var t,r,o,a,i,c=n,l=!0;for(t=0;t<e.length;t++){if(!(i=r=e[t])||"object"!=typeof i){l=!1;break}c.has(r)?c=c.get(r):(o=new WeakMap,c.set(r,o),c=o)}return c.has(s)||((a=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=l,c.set(s,a)),c.get(s)}(l=r.apply(null,i)),t.isUniqueByDependants||(t.lastDependants&&!c(l,t.lastDependants,0)&&t.clear(),t.lastDependants=l),o=t.head;o;){if(c(o.args,i,1))return o!==t.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=t.head,o.prev=null,t.head.prev=o,t.head=o),o.val;o=o.next}return o={val:e.apply(null,i)},i[0]=null,o.args=i,t.head&&(t.head.prev=o,o.next=t.head),t.head=o,o.val}return a.getDependants=r,a.clear=o,o(),a}((e=>Object.values(e.formatTypes)),(e=>[e.formatTypes]));function u(e,t){return e.formatTypes[t]}function f(e,t){const n=l(e);return n.find((({className:e,tagName:n})=>null===e&&t===n))||n.find((({className:e,tagName:t})=>null===e&&"*"===t))}function d(e,t){return l(e).find((({className:e})=>null!==e&&` ${t} `.indexOf(` ${e} `)>=0))}function m(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Array.isArray(e)?e:[e]}}function p(e){return{type:"REMOVE_FORMAT_TYPES",names:Array.isArray(e)?e:[e]}}const g=(0,o.createReduxStore)("core/rich-text",{reducer:a,selectors:n,actions:r});function h(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.type!==t.type)return!1;const n=e.attributes,r=t.attributes;if(n===r)return!0;if(!n||!r)return!1;const o=Object.keys(n),a=Object.keys(r);if(o.length!==a.length)return!1;const s=o.length;for(let e=0;e<s;e++){const t=o[e];if(n[t]!==r[t])return!1}return!0}function v(e){const t=e.formats.slice();return t.forEach(((e,n)=>{const r=t[n-1];if(r){const o=e.slice();o.forEach(((e,t)=>{const n=r[t];h(e,n)&&(o[t]=n)})),t[n]=o}})),{...e,formats:t}}function y(e,t,n){return(e=e.slice())[t]=n,e}function E(e,t,n=e.start,r=e.end){const{formats:o,activeFormats:a}=e,s=o.slice();if(n===r){const e=s[n]?.find((({type:e})=>e===t.type));if(e){const o=s[n].indexOf(e);for(;s[n]&&s[n][o]===e;)s[n]=y(s[n],o,t),n--;for(r++;s[r]&&s[r][o]===e;)s[r]=y(s[r],o,t),r++}}else{let e=1/0;for(let o=n;o<r;o++)if(s[o]){s[o]=s[o].filter((({type:e})=>e!==t.type));const n=s[o].length;n<e&&(e=n)}else s[o]=[],e=0;for(let o=n;o<r;o++)s[o].splice(e,0,t)}return v({...e,formats:s,activeFormats:[...a?.filter((({type:e})=>e!==t.type))||[],t]})}function b({implementation:e},t){return b.body||(b.body=e.createHTMLDocument("").body),b.body.innerHTML=t,b.body}(0,o.register)(g);const T="",x="\ufeff",w=window.wp.escapeHtml;function N(e,t=[]){const{formats:n,start:r,end:o,activeFormats:a}=e;if(void 0===r)return t;if(r===o){if(a)return a;const e=n[r-1]||t,o=n[r]||t;return e.length<o.length?e:o}if(!n[r])return t;const s=n.slice(r,o),i=[...s[0]];let c=s.length;for(;c--;){const e=s[c];if(!e)return t;let n=i.length;for(;n--;){const t=i[n];e.find((e=>h(t,e)))||i.splice(n,1)}if(0===i.length)return t}return i||t}function L(e){return(0,o.select)(g).getFormatType(e)}function C(e,t){if(t)return e;const n={};for(const t in e){let r=t;t.startsWith("data-disable-rich-text-")&&(r=t.slice(23)),n[r]=e[t]}return n}function _({type:e,tagName:t,attributes:n,unregisteredAttributes:r,object:o,boundaryClass:a,isEditableTree:s}){const i=L(e);let c={};if(a&&s&&(c["data-rich-text-format-boundary"]="true"),!i)return n&&(c={...n,...c}),{type:e,attributes:C(c,s),object:o};c={...r,...c};for(const e in n){const t=!!i.attributes&&i.attributes[e];t?c[t]=n[e]:c[e]=n[e]}return i.className&&(c.class?c.class=`${i.className} ${c.class}`:c.class=i.className),s&&!1===i.contentEditable&&(c.contenteditable="false"),{type:t||i.tagName,object:i.object,attributes:C(c,s)}}function F(e,t,n){do{if(e[n]!==t[n])return!1}while(n--);return!0}function R({value:e,preserveWhiteSpace:t,createEmpty:n,append:r,getLastChild:o,getParent:a,isText:s,getText:i,remove:c,appendText:l,onStartIndex:u,onEndIndex:f,isEditableTree:d,placeholder:m}){const{formats:p,replacements:g,text:h,start:v,end:y}=e,E=p.length+1,b=n(),w=N(e),C=w[w.length-1];let R,O;r(b,"");for(let e=0;e<E;e++){const n=h.charAt(e),E=d&&(!O||"\n"===O),w=p[e];let N=o(b);if(w&&w.forEach(((e,t)=>{if(N&&R&&F(w,R,t))return void(N=o(N));const{type:n,tagName:l,attributes:u,unregisteredAttributes:f}=e,m=d&&e===C,p=a(N),g=r(p,_({type:n,tagName:l,attributes:u,unregisteredAttributes:f,boundaryClass:m,isEditableTree:d}));s(N)&&0===i(N).length&&c(N),N=r(g,"")})),0===e&&(u&&0===v&&u(b,N),f&&0===y&&f(b,N)),n===T){const t=g[e];if(!t)continue;const{type:n,attributes:o,innerHTML:s}=t,i=L(n);d||"script"!==n?!1===i?.contentEditable?(N=r(a(N),_({...t,isEditableTree:d,boundaryClass:v===e&&y===e+1})),s&&r(N,{html:s})):N=r(a(N),_({...t,object:!0,isEditableTree:d})):(N=r(a(N),_({type:"script",isEditableTree:d})),r(N,{html:decodeURIComponent(o["data-rich-text-script"])})),N=r(a(N),"")}else t||"\n"!==n?s(N)?l(N,n):N=r(a(N),n):(N=r(a(N),{type:"br",attributes:d?{"data-rich-text-line-break":"true"}:void 0,object:!0}),N=r(a(N),""));u&&v===e+1&&u(b,N),f&&y===e+1&&f(b,N),E&&e===h.length&&(r(a(N),x),m&&0===h.length&&r(a(N),{type:"span",attributes:{"data-rich-text-placeholder":m,style:"pointer-events:none;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;"}})),R=w,O=n}return b}function O({value:e,preserveWhiteSpace:t}){return j(R({value:e,preserveWhiteSpace:t,createEmpty:A,append:D,getLastChild:S,getParent:k,isText:$,getText:H,remove:P,appendText:M}).children)}function A(){return{}}function S({children:e}){return e&&e[e.length-1]}function D(e,t){return"string"==typeof t&&(t={text:t}),t.parent=e,e.children=e.children||[],e.children.push(t),t}function M(e,t){e.text+=t}function k({parent:e}){return e}function $({text:e}){return"string"==typeof e}function H({text:e}){return e}function P(e){const t=e.parent.children.indexOf(e);return-1!==t&&e.parent.children.splice(t,1),e}function j(e=[]){return e.map((e=>void 0!==e.html?e.html:void 0===e.text?function({type:e,attributes:t,object:n,children:r}){let o="";for(const e in t)(0,w.isValidAttributeName)(e)&&(o+=` ${e}="${(0,w.escapeAttribute)(t[e])}"`);return n?`<${e}${o}>`:`<${e}${o}>${j(r)}</${e}>`}(e):(0,w.escapeEditableHTML)(e.text))).join("")}function V({text:e}){return e.replace(T,"")}function W({tagName:e,attributes:t}){let n;if(t&&t.class&&(n=(0,o.select)(g).getFormatTypeForClassName(t.class),n&&(t.class=` ${t.class} `.replace(` ${n.className} `," ").trim(),t.class||delete t.class)),n||(n=(0,o.select)(g).getFormatTypeForBareElement(e)),!n)return t?{type:e,attributes:t}:{type:e};if(n.__experimentalCreatePrepareEditableTree&&!n.__experimentalCreateOnChangeEditableValue)return null;if(!t)return{formatType:n,type:n.name,tagName:e};const r={},a={},s={...t};for(const e in n.attributes){const t=n.attributes[e];r[e]=s[t],delete s[t],void 0===r[e]&&delete r[e]}for(const e in s)a[e]=t[e];return!1===n.contentEditable&&delete a.contenteditable,{formatType:n,type:n.name,tagName:e,attributes:r,unregisteredAttributes:a}}class I{#e;static empty(){return new I}static fromPlainText(e){return new I(B({text:e}))}static fromHTMLString(e){return new I(B({html:e}))}static fromHTMLElement(e,t={}){const{preserveWhiteSpace:n=!1}=t,r=n?e:U(e),o=new I(B({element:r}));return Object.defineProperty(o,"originalHTML",{value:e.innerHTML}),o}constructor(e={formats:[],replacements:[],text:""}){this.#e=e}toPlainText(){return V(this.#e)}toHTMLString({preserveWhiteSpace:e}={}){return this.originalHTML||O({value:this.#e,preserveWhiteSpace:e})}valueOf(){return this.toHTMLString()}toString(){return this.toHTMLString()}toJSON(){return this.toHTMLString()}get length(){return this.text.length}get formats(){return this.#e.formats}get replacements(){return this.#e.replacements}get text(){return this.#e.text}}for(const e of Object.getOwnPropertyNames(String.prototype))I.prototype.hasOwnProperty(e)||Object.defineProperty(I.prototype,e,{value(...t){return this.toHTMLString()[e](...t)}});function B({element:e,text:t,html:n,range:r,__unstableIsEditableTree:o}={}){return n instanceof I?{text:n.text,formats:n.formats,replacements:n.replacements}:"string"==typeof t&&t.length>0?{formats:Array(t.length),replacements:Array(t.length),text:t}:("string"==typeof n&&n.length>0&&(e=b(document,n)),"object"!=typeof e?{formats:[],replacements:[],text:""}:Y({element:e,range:r,isEditableTree:o}))}function z(e,t,n,r){if(!n)return;const{parentNode:o}=t,{startContainer:a,startOffset:s,endContainer:i,endOffset:c}=n,l=e.text.length;void 0!==r.start?e.start=l+r.start:t===a&&t.nodeType===t.TEXT_NODE?e.start=l+s:o===a&&t===a.childNodes[s]?e.start=l:o===a&&t===a.childNodes[s-1]?e.start=l+r.text.length:t===a&&(e.start=l),void 0!==r.end?e.end=l+r.end:t===i&&t.nodeType===t.TEXT_NODE?e.end=l+c:o===i&&t===i.childNodes[c-1]?e.end=l+r.text.length:o===i&&t===i.childNodes[c]?e.end=l:t===i&&(e.end=l+c)}function X(e,t,n){if(!t)return;const{startContainer:r,endContainer:o}=t;let{startOffset:a,endOffset:s}=t;return e===r&&(a=n(e.nodeValue.slice(0,a)).length),e===o&&(s=n(e.nodeValue.slice(0,s)).length),{startContainer:r,startOffset:a,endContainer:o,endOffset:s}}function U(e,t=!0){const n=e.cloneNode(!0);return n.normalize(),Array.from(n.childNodes).forEach(((e,n,r)=>{if(e.nodeType===e.TEXT_NODE){let o=e.nodeValue;/[\n\t\r\f]/.test(o)&&(o=o.replace(/[\n\t\r\f]+/g," ")),-1!==o.indexOf(" ")&&(o=o.replace(/ {2,}/g," ")),0===n&&o.startsWith(" ")?o=o.slice(1):t&&n===r.length-1&&o.endsWith(" ")&&(o=o.slice(0,-1)),e.nodeValue=o}else e.nodeType===e.ELEMENT_NODE&&U(e,!1)})),n}const q="\r";function K(e){return e.replace(new RegExp(`[${x}${T}${q}]`,"gu"),"")}function Y({element:e,range:t,isEditableTree:n}){const r={formats:[],replacements:[],text:""};if(!e)return r;if(!e.hasChildNodes())return z(r,e,t,{formats:[],replacements:[],text:""}),r;const o=e.childNodes.length;for(let a=0;a<o;a++){const s=e.childNodes[a],i=s.nodeName.toLowerCase();if(s.nodeType===s.TEXT_NODE){const u=K(s.nodeValue);z(r,s,t=X(s,t,K),{text:u}),r.formats.length+=u.length,r.replacements.length+=u.length,r.text+=u;continue}if(s.nodeType!==s.ELEMENT_NODE)continue;if(n&&"br"===i&&!s.getAttribute("data-rich-text-line-break")){z(r,s,t,{formats:[],replacements:[],text:""});continue}if("script"===i){const f={formats:[,],replacements:[{type:i,attributes:{"data-rich-text-script":s.getAttribute("data-rich-text-script")||encodeURIComponent(s.innerHTML)}}],text:T};z(r,s,t,f),Z(r,f);continue}if("br"===i){z(r,s,t,{formats:[],replacements:[],text:""}),Z(r,B({text:"\n"}));continue}const c=W({tagName:i,attributes:G({element:s})});if(!1===c?.formatType?.contentEditable){delete c.formatType,z(r,s,t,{formats:[],replacements:[],text:""}),Z(r,{formats:[,],replacements:[{...c,innerHTML:s.innerHTML}],text:T});continue}c&&delete c.formatType;const l=Y({element:s,range:t,isEditableTree:n});if(z(r,s,t,l),!c||s.getAttribute("data-rich-text-placeholder"))Z(r,l);else if(0===l.text.length)c.attributes&&Z(r,{formats:[,],replacements:[c],text:T});else{function d(e){if(d.formats===e)return d.newFormats;const t=e?[c,...e]:[c];return d.formats=e,d.newFormats=t,t}d.newFormats=[c],Z(r,{...l,formats:Array.from(l.formats,d)})}}return r}function G({element:e}){if(!e.hasAttributes())return;const t=e.attributes.length;let n;for(let r=0;r<t;r++){const{name:t,value:o}=e.attributes[r];if(0===t.indexOf("data-rich-text-"))continue;n=n||{},n[/^on/i.test(t)?"data-disable-rich-text-"+t:t]=o}return n}function Z(e,t){return e.formats=e.formats.concat(t.formats),e.replacements=e.replacements.concat(t.replacements),e.text+=t.text,e}function J(...e){return v(e.reduce(Z,B()))}function Q(e,t){return N(e).find((({type:e})=>e===t))}function ee({start:e,end:t,replacements:n,text:r}){if(e+1===t&&r[e]===T)return n[e]}function te({start:e,end:t}){if(void 0!==e&&void 0!==t)return e===t}function ne({text:e}){return 0===e.length}function re(e,t=""){return"string"==typeof t&&(t=B({text:t})),v(e.reduce(((e,{formats:n,replacements:r,text:o})=>({formats:e.formats.concat(t.formats,n),replacements:e.replacements.concat(t.replacements,r),text:e.text+t.text+o}))))}function oe(e,t){if("string"==typeof(t={name:e,...t}).name)if(/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(t.name))if((0,o.select)(g).getFormatType(t.name))window.console.error('Format "'+t.name+'" is already registered.');else if("string"==typeof t.tagName&&""!==t.tagName)if("string"==typeof t.className&&""!==t.className||null===t.className)if(/^[_a-zA-Z]+[a-zA-Z0-9_-]*$/.test(t.className)){if(null===t.className){const e=(0,o.select)(g).getFormatTypeForBareElement(t.tagName);if(e&&"core/unknown"!==e.name)return void window.console.error(`Format "${e.name}" is already registered to handle bare tag name "${t.tagName}".`)}else{const e=(0,o.select)(g).getFormatTypeForClassName(t.className);if(e)return void window.console.error(`Format "${e.name}" is already registered to handle class name "${t.className}".`)}if("title"in t&&""!==t.title)if("keywords"in t&&t.keywords.length>3)window.console.error('The format "'+t.name+'" can have a maximum of 3 keywords.');else{if("string"==typeof t.title)return(0,o.dispatch)(g).addFormatTypes(t),t;window.console.error("Format titles must be strings.")}else window.console.error('The format "'+t.name+'" must have a title.')}else window.console.error("A class name must begin with a letter, followed by any number of hyphens, underscores, letters, or numbers.");else window.console.error("Format class names must be a string, or null to handle bare elements.");else window.console.error("Format tag names must be a string.");else window.console.error("Format names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-format");else window.console.error("Format names must be strings.")}function ae(e,t,n=e.start,r=e.end){const{formats:o,activeFormats:a}=e,s=o.slice();if(n===r){const e=s[n]?.find((({type:e})=>e===t));if(e){for(;s[n]?.find((t=>t===e));)se(s,n,t),n--;for(r++;s[r]?.find((t=>t===e));)se(s,r,t),r++}}else for(let e=n;e<r;e++)s[e]&&se(s,e,t);return v({...e,formats:s,activeFormats:a?.filter((({type:e})=>e!==t))||[]})}function se(e,t,n){const r=e[t].filter((({type:e})=>e!==n));r.length?e[t]=r:delete e[t]}function ie(e,t,n=e.start,r=e.end){const{formats:o,replacements:a,text:s}=e;"string"==typeof t&&(t=B({text:t}));const i=n+t.text.length;return v({formats:o.slice(0,n).concat(t.formats,o.slice(r)),replacements:a.slice(0,n).concat(t.replacements,a.slice(r)),text:s.slice(0,n)+t.text+s.slice(r),start:i,end:i})}function ce(e,t,n){return ie(e,B(),t,n)}function le({formats:e,replacements:t,text:n,start:r,end:o},a,s){return n=n.replace(a,((n,...a)=>{const i=a[a.length-2];let c,l,u=s;return"function"==typeof u&&(u=s(n,...a)),"object"==typeof u?(c=u.formats,l=u.replacements,u=u.text):(c=Array(u.length),l=Array(u.length),e[i]&&(c=c.fill(e[i]))),e=e.slice(0,i).concat(c,e.slice(i+n.length)),t=t.slice(0,i).concat(l,t.slice(i+n.length)),r&&(r=o=i+u.length),u})),v({formats:e,replacements:t,text:n,start:r,end:o})}function ue(e,t,n,r){return ie(e,{formats:[,],replacements:[t],text:T},n,r)}function fe(e,t=e.start,n=e.end){const{formats:r,replacements:o,text:a}=e;return void 0===t||void 0===n?{...e}:{formats:r.slice(t,n),replacements:o.slice(t,n),text:a.slice(t,n)}}function de({formats:e,replacements:t,text:n,start:r,end:o},a){if("string"!=typeof a)return function({formats:e,replacements:t,text:n,start:r,end:o},a=r,s=o){if(void 0===r||void 0===o)return;const i={formats:e.slice(0,a),replacements:t.slice(0,a),text:n.slice(0,a)},c={formats:e.slice(s),replacements:t.slice(s),text:n.slice(s),start:0,end:0};return[i,c]}(...arguments);let s=0;return n.split(a).map((n=>{const i=s,c={formats:e.slice(i,i+n.length),replacements:t.slice(i,i+n.length),text:n};return s+=a.length+n.length,void 0!==r&&void 0!==o&&(r>=i&&r<s?c.start=r-i:r<i&&o>i&&(c.start=0),o>=i&&o<s?c.end=o-i:r<s&&o>s&&(c.end=n.length)),c}))}function me(e,t){return e===t||e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}function pe(e,t,n){const r=e.parentNode;let o=0;for(;e=e.previousSibling;)o++;return n=[o,...n],r!==t&&(n=pe(r,t,n)),n}function ge(e,t){for(t=[...t];e&&t.length>1;)e=e.childNodes[t.shift()];return{node:e,offset:t[0]}}function he(e,t){if(void 0!==t.html)return e.innerHTML+=t.html;"string"==typeof t&&(t=e.ownerDocument.createTextNode(t));const{type:n,attributes:r}=t;if(n){t=e.ownerDocument.createElement(n);for(const e in r)t.setAttribute(e,r[e])}return e.appendChild(t)}function ve(e,t){e.appendData(t)}function ye({lastChild:e}){return e}function Ee({parentNode:e}){return e}function be(e){return e.nodeType===e.TEXT_NODE}function Te({nodeValue:e}){return e}function xe(e){return e.parentNode.removeChild(e)}function we({value:e,prepareEditableTree:t,isEditableTree:n=!0,placeholder:r,doc:o=document}){let a=[],s=[];t&&(e={...e,formats:t(e)});return{body:R({value:e,createEmpty:()=>b(o,""),append:he,getLastChild:ye,getParent:Ee,isText:be,getText:Te,remove:xe,appendText:ve,onStartIndex(e,t){a=pe(t,e,[t.nodeValue.length])},onEndIndex(e,t){s=pe(t,e,[t.nodeValue.length])},isEditableTree:n,placeholder:r}),selection:{startPath:a,endPath:s}}}function Ne({value:e,current:t,prepareEditableTree:n,__unstableDomOnly:r,placeholder:o}){const{body:a,selection:s}=we({value:e,prepareEditableTree:n,placeholder:o,doc:t.ownerDocument});Le(a,t),void 0===e.start||r||function({startPath:e,endPath:t},n){const{node:r,offset:o}=ge(n,e),{node:a,offset:s}=ge(n,t),{ownerDocument:i}=n,{defaultView:c}=i,l=c.getSelection(),u=i.createRange();u.setStart(r,o),u.setEnd(a,s);const{activeElement:f}=i;if(l.rangeCount>0){if(me(u,l.getRangeAt(0)))return;l.removeAllRanges()}l.addRange(u),f!==i.activeElement&&f instanceof c.HTMLElement&&f.focus()}(s,t)}function Le(e,t){let n,r=0;for(;n=e.firstChild;){const o=t.childNodes[r];if(o)if(o.isEqualNode(n))e.removeChild(n);else if(o.nodeName!==n.nodeName||o.nodeType===o.TEXT_NODE&&o.data!==n.data)t.replaceChild(n,o);else{const t=o.attributes,r=n.attributes;if(t){let e=t.length;for(;e--;){const{name:r}=t[e];n.getAttribute(r)||o.removeAttribute(r)}}if(r)for(let e=0;e<r.length;e++){const{name:t,value:n}=r[e];o.getAttribute(t)!==n&&o.setAttribute(t,n)}Le(n,o),e.removeChild(n)}else t.appendChild(n);r++}for(;t.childNodes[r];)t.removeChild(t.childNodes[r])}const Ce=window.wp.a11y,_e=window.wp.i18n;function Fe(e,t){return Q(e,t.type)?(t.title&&(0,Ce.speak)((0,_e.sprintf)((0,_e.__)("%s removed."),t.title),"assertive"),ae(e,t.type)):(t.title&&(0,Ce.speak)((0,_e.sprintf)((0,_e.__)("%s applied."),t.title),"assertive"),E(e,t))}function Re(e){const t=(0,o.select)(g).getFormatType(e);if(t)return(0,o.dispatch)(g).removeFormatTypes(e),t;window.console.error(`Format ${e} is not registered.`)}const Oe=window.wp.element,Ae=window.wp.deprecated;var Se=e.n(Ae);function De({ref:e,value:t,settings:n={}}){Se()("`useAnchorRef` hook",{since:"6.1",alternative:"`useAnchor` hook"});const{tagName:r,className:o,name:a}=n,s=a?Q(t,a):void 0;return(0,Oe.useMemo)((()=>{if(!e.current)return;const{ownerDocument:{defaultView:t}}=e.current,n=t.getSelection();if(!n.rangeCount)return;const a=n.getRangeAt(0);if(!s)return a;let i=a.startContainer;for(i=i.nextElementSibling||i;i.nodeType!==i.ELEMENT_NODE;)i=i.parentNode;return i.closest(r+(o?"."+o:""))}),[s,t.start,t.end,r,o])}const Me=window.wp.compose;function ke(e,t,n){if(!e)return;const{ownerDocument:r}=e,{defaultView:o}=r,a=o.getSelection();if(!a)return;if(!a.rangeCount)return;const s=a.getRangeAt(0);if(!s||!s.startContainer)return;const i=function(e,t,n,r){let o=e.startContainer;if(o.nodeType===o.TEXT_NODE&&e.startOffset===o.length&&o.nextSibling)for(o=o.nextSibling;o.firstChild;)o=o.firstChild;if(o.nodeType!==o.ELEMENT_NODE&&(o=o.parentElement),!o)return;if(o===t)return;if(!t.contains(o))return;const a=n+(r?"."+r:"");for(;o!==t;){if(o.matches(a))return o;o=o.parentElement}}(s,e,t,n);return i||function(e,t){return{contextElement:t,getBoundingClientRect:()=>t.contains(e.startContainer)?e.getBoundingClientRect():t.getBoundingClientRect()}}(s,e)}function $e({editableContentElement:e,settings:t={}}){const{tagName:n,className:r,isActive:o}=t,[a,s]=(0,Oe.useState)((()=>ke(e,n,r))),i=(0,Me.usePrevious)(o);return(0,Oe.useLayoutEffect)((()=>{if(!e)return;function t(){s(ke(e,n,r))}function a(){l.addEventListener("selectionchange",t)}function c(){l.removeEventListener("selectionchange",t)}const{ownerDocument:l}=e;return(e===l.activeElement||!i&&o||i&&!o)&&(s(ke(e,n,r)),a()),e.addEventListener("focusin",a),e.addEventListener("focusout",c),()=>{c(),e.removeEventListener("focusin",a),e.removeEventListener("focusout",c)}}),[e,n,r,o,i]),a}const He="pre-wrap",Pe="1px";function je({record:e}){const t=(0,Oe.useRef)(),{activeFormats:n=[],replacements:r,start:o}=e.current,a=r[o];return(0,Oe.useEffect)((()=>{if(!(n&&n.length||a))return;const e="*[data-rich-text-format-boundary]",r=t.current.querySelector(e);if(!r)return;const{ownerDocument:o}=r,{defaultView:s}=o,i=`${`.rich-text:focus ${e}`} {${`background-color: ${s.getComputedStyle(r).color.replace(")",", 0.2)").replace("rgb","rgba")}`}}`,c="rich-text-boundary-style";let l=o.getElementById(c);l||(l=o.createElement("style"),l.id=c,o.head.appendChild(l)),l.innerHTML!==i&&(l.innerHTML=i)}),[n,a]),t}function Ve(e){const t=(0,Oe.useRef)(e);return t.current=e,(0,Me.useRefEffect)((e=>{function n(n){const{record:r}=t.current,{ownerDocument:o}=e;if(te(r.current)||!e.contains(o.activeElement))return;const a=fe(r.current),s=V(a),i=O({value:a});n.clipboardData.setData("text/plain",s),n.clipboardData.setData("text/html",i),n.clipboardData.setData("rich-text","true"),n.preventDefault(),"cut"===n.type&&o.execCommand("delete")}return e.addEventListener("copy",n),e.addEventListener("cut",n),()=>{e.removeEventListener("copy",n),e.removeEventListener("cut",n)}}),[])}const We=window.wp.keycodes,Ie=[];function Be(e){const[,t]=(0,Oe.useReducer)((()=>({}))),n=(0,Oe.useRef)(e);return n.current=e,(0,Me.useRefEffect)((e=>{function r(r){const{keyCode:o,shiftKey:a,altKey:s,metaKey:i,ctrlKey:c}=r;if(a||s||i||c||o!==We.LEFT&&o!==We.RIGHT)return;const{record:l,applyRecord:u}=n.current,{text:f,formats:d,start:m,end:p,activeFormats:g=[]}=l.current,h=te(l.current),{ownerDocument:v}=e,{defaultView:y}=v,{direction:E}=y.getComputedStyle(e),b="rtl"===E?We.RIGHT:We.LEFT,T=r.keyCode===b;if(h&&0===g.length){if(0===m&&T)return;if(p===f.length&&!T)return}if(!h)return;const x=d[m-1]||Ie,w=d[m]||Ie,N=T?x:w,L=g.every(((e,t)=>e===N[t]));let C=g.length;if(L?C<N.length&&C++:C--,C===g.length)return void(l.current._newActiveFormats=N);r.preventDefault();const _=(L?N:T?w:x).slice(0,C),F={...l.current,activeFormats:_};l.current=F,u(F),t()}return e.addEventListener("keydown",r),()=>{e.removeEventListener("keydown",r)}}),[])}const ze=new Set(["insertParagraph","insertOrderedList","insertUnorderedList","insertHorizontalRule","insertLink"]),Xe=[],Ue="data-rich-text-placeholder";function qe(e){const t=(0,Oe.useRef)(e);return t.current=e,(0,Me.useRefEffect)((e=>{const{ownerDocument:n}=e,{defaultView:r}=n;let o=!1;function a(e){if(o)return;let n;e&&(n=e.inputType);const{record:r,applyRecord:a,createRecord:s,handleChange:i}=t.current;if(n&&(0===n.indexOf("format")||ze.has(n)))return void a(r.current);const c=s(),{start:l,activeFormats:u=[]}=r.current,f=function({value:e,start:t,end:n,formats:r}){const o=Math.min(t,n),a=Math.max(t,n),s=e.formats[o-1]||[],i=e.formats[a]||[];for(e.activeFormats=r.map(((e,t)=>{if(s[t]){if(h(e,s[t]))return s[t]}else if(i[t]&&h(e,i[t]))return i[t];return e}));--n>=t;)e.activeFormats.length>0?e.formats[n]=e.activeFormats:delete e.formats[n];return e}({value:c,start:l,end:c.start,formats:u});i(f)}function s(){const{record:i,applyRecord:c,createRecord:l,onSelectionChange:u}=t.current;if("true"!==e.contentEditable)return;if(n.activeElement!==e)return void n.removeEventListener("selectionchange",s);if(o)return;const{start:f,end:d,text:m}=l(),p=i.current;if(m!==p.text)return void a();if(f===p.start&&d===p.end)return void(0===p.text.length&&0===f&&function(e){const t=e.getSelection(),{anchorNode:n,anchorOffset:r}=t;if(n.nodeType!==n.ELEMENT_NODE)return;const o=n.childNodes[r];o&&o.nodeType===o.ELEMENT_NODE&&o.hasAttribute(Ue)&&t.collapseToStart()}(r));const g={...p,start:f,end:d,activeFormats:p._newActiveFormats,_newActiveFormats:void 0},h=N(g,Xe);g.activeFormats=h,i.current=g,c(g,{domOnly:!0}),u(f,d)}function i(){o=!0,n.removeEventListener("selectionchange",s),e.querySelector(`[${Ue}]`)?.remove()}function c(){o=!1,a({inputType:"insertText"}),n.addEventListener("selectionchange",s)}function l(){const{record:r,isSelected:o,onSelectionChange:a,applyRecord:i}=t.current;if(!e.parentElement.closest('[contenteditable="true"]')){if(o)i(r.current,{domOnly:!0});else{const e=void 0;r.current={...r.current,start:e,end:e,activeFormats:Xe}}a(r.current.start,r.current.end),n.addEventListener("selectionchange",s)}}return e.addEventListener("input",a),e.addEventListener("compositionstart",i),e.addEventListener("compositionend",c),e.addEventListener("focus",l),()=>{e.removeEventListener("input",a),e.removeEventListener("compositionstart",i),e.removeEventListener("compositionend",c),e.removeEventListener("focus",l)}}),[])}function Ke(e){const t=(0,Oe.useRef)(e);return t.current=e,(0,Me.useRefEffect)((e=>{function n(e){const{keyCode:n}=e,{createRecord:r,handleChange:o}=t.current;if(e.defaultPrevented)return;if(n!==We.DELETE&&n!==We.BACKSPACE)return;const a=r(),{start:s,end:i,text:c}=a;0===s&&0!==i&&i===c.length&&(o(ce(a)),e.preventDefault())}return e.addEventListener("keydown",n),()=>{e.removeEventListener("keydown",n)}}),[])}function Ye({value:e="",selectionStart:t,selectionEnd:n,placeholder:r,onSelectionChange:a,preserveWhiteSpace:s,onChange:i,__unstableDisableFormats:c,__unstableIsSelected:l,__unstableDependencies:u=[],__unstableAfterParse:f,__unstableBeforeSerialize:d,__unstableAddInvisibleFormats:m}){const p=(0,o.useRegistry)(),[,g]=(0,Oe.useReducer)((()=>({}))),h=(0,Oe.useRef)();function v(){const{ownerDocument:{defaultView:e}}=h.current,t=e.getSelection(),n=t.rangeCount>0?t.getRangeAt(0):null;return B({element:h.current,range:n,__unstableIsEditableTree:!0})}function y(e,{domOnly:t}={}){Ne({value:e,current:h.current,prepareEditableTree:m,__unstableDomOnly:t,placeholder:r})}const E=(0,Oe.useRef)(e),b=(0,Oe.useRef)();function T(){E.current=e,b.current=e,e instanceof I||(b.current=e?I.fromHTMLString(e,{preserveWhiteSpace:s}):I.empty()),b.current={text:b.current.text,formats:b.current.formats,replacements:b.current.replacements},c&&(b.current.formats=Array(e.length),b.current.replacements=Array(e.length)),f&&(b.current.formats=f(b.current)),b.current.start=t,b.current.end=n}const x=(0,Oe.useRef)(!1);function w(t){if(b.current=t,y(t),c)E.current=t.text;else{const n=d?d(t):t.formats;t={...t,formats:n},E.current="string"==typeof e?O({value:t,preserveWhiteSpace:s}):new I(t)}const{start:n,end:r,formats:o,text:l}=b.current;p.batch((()=>{a(n,r),i(E.current,{__unstableFormats:o,__unstableText:l})})),g()}function N(){T(),y(b.current)}b.current?t===b.current.start&&n===b.current.end||(x.current=l,b.current={...b.current,start:t,end:n,activeFormats:void 0}):(x.current=l,T());const L=(0,Oe.useRef)(!1);(0,Oe.useLayoutEffect)((()=>{L.current&&e!==E.current&&(N(),g())}),[e]),(0,Oe.useLayoutEffect)((()=>{x.current&&(h.current.ownerDocument.activeElement!==h.current&&h.current.focus(),y(b.current),x.current=!1)}),[x.current]);const C=(0,Me.useMergeRefs)([h,(0,Oe.useCallback)((e=>{e&&(e.style.whiteSpace=He,e.style.minWidth=Pe)}),[]),je({record:b}),Ve({record:b}),(0,Me.useRefEffect)((e=>{function t(t){const{target:n}=t;if(n===e||n.textContent&&n.isContentEditable)return;const{ownerDocument:r}=n,{defaultView:o}=r,a=o.getSelection();if(a.containsNode(n))return;const s=r.createRange(),i=n.isContentEditable?n:n.closest("[contenteditable]");s.selectNode(i),a.removeAllRanges(),a.addRange(s),t.preventDefault()}function n(n){n.relatedTarget&&!e.contains(n.relatedTarget)&&"A"===n.relatedTarget.tagName&&t(n)}return e.addEventListener("click",t),e.addEventListener("focusin",n),()=>{e.removeEventListener("click",t),e.removeEventListener("focusin",n)}}),[]),Be({record:b,applyRecord:y}),Ke({createRecord:v,handleChange:w}),qe({record:b,applyRecord:y,createRecord:v,handleChange:w,isSelected:l,onSelectionChange:a}),(0,Me.useRefEffect)((e=>{const{ownerDocument:t}=e,{defaultView:n}=t,r=n?.getSelection();let o;function a(){return r.rangeCount?r.getRangeAt(0):null}function s(e){const n="keydown"===e.type?"keyup":"pointerup";function r(){t.removeEventListener(n,s),t.removeEventListener("selectionchange",r),t.removeEventListener("input",r)}function s(){r(),me(o,a())||t.dispatchEvent(new Event("selectionchange"))}t.addEventListener(n,s),t.addEventListener("selectionchange",r),t.addEventListener("input",r),o=a()}return e.addEventListener("pointerdown",s),e.addEventListener("keydown",s),()=>{e.removeEventListener("pointerdown",s),e.removeEventListener("keydown",s)}}),[]),(0,Me.useRefEffect)((()=>{N(),L.current=!0}),[r,...u])]);return{value:b.current,getValue:()=>b.current,onChange:w,ref:C}}function Ge(){}(window.wp=window.wp||{}).richText=t})(); \ No newline at end of file
+(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{RichTextData:()=>j,__experimentalRichText:()=>Xe,__unstableCreateElement:()=>y,__unstableToDom:()=>be,__unstableUseRichText:()=>Be,applyFormat:()=>h,concat:()=>Y,create:()=>V,getActiveFormat:()=>G,getActiveFormats:()=>T,getActiveObject:()=>Z,getTextContent:()=>H,insert:()=>oe,insertObject:()=>ie,isCollapsed:()=>J,isEmpty:()=>Q,join:()=>ee,registerFormatType:()=>te,remove:()=>ae,removeFormat:()=>ne,replace:()=>se,slice:()=>ce,split:()=>le,store:()=>f,toHTMLString:()=>_,toggleFormat:()=>Le,unregisterFormatType:()=>Ce,useAnchor:()=>De,useAnchorRef:()=>Se});var n={};e.r(n),e.d(n,{getFormatType:()=>i,getFormatTypeForBareElement:()=>c,getFormatTypeForClassName:()=>l,getFormatTypes:()=>s});var r={};e.r(r),e.d(r,{addFormatTypes:()=>u,removeFormatTypes:()=>d});const o=window.wp.data;const a=(0,o.combineReducers)({formatTypes:function(e={},t){switch(t.type){case"ADD_FORMAT_TYPES":return{...e,...t.formatTypes.reduce(((e,t)=>({...e,[t.name]:t})),{})};case"REMOVE_FORMAT_TYPES":return Object.fromEntries(Object.entries(e).filter((([e])=>!t.names.includes(e))))}return e}}),s=(0,o.createSelector)((e=>Object.values(e.formatTypes)),(e=>[e.formatTypes]));function i(e,t){return e.formatTypes[t]}function c(e,t){const n=s(e);return n.find((({className:e,tagName:n})=>null===e&&t===n))||n.find((({className:e,tagName:t})=>null===e&&"*"===t))}function l(e,t){return s(e).find((({className:e})=>null!==e&&` ${t} `.indexOf(` ${e} `)>=0))}function u(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Array.isArray(e)?e:[e]}}function d(e){return{type:"REMOVE_FORMAT_TYPES",names:Array.isArray(e)?e:[e]}}const f=(0,o.createReduxStore)("core/rich-text",{reducer:a,selectors:n,actions:r});function m(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.type!==t.type)return!1;const n=e.attributes,r=t.attributes;if(n===r)return!0;if(!n||!r)return!1;const o=Object.keys(n),a=Object.keys(r);if(o.length!==a.length)return!1;const s=o.length;for(let e=0;e<s;e++){const t=o[e];if(n[t]!==r[t])return!1}return!0}function p(e){const t=e.formats.slice();return t.forEach(((e,n)=>{const r=t[n-1];if(r){const o=e.slice();o.forEach(((e,t)=>{const n=r[t];m(e,n)&&(o[t]=n)})),t[n]=o}})),{...e,formats:t}}function g(e,t,n){return(e=e.slice())[t]=n,e}function h(e,t,n=e.start,r=e.end){const{formats:o,activeFormats:a}=e,s=o.slice();if(n===r){const e=s[n]?.find((({type:e})=>e===t.type));if(e){const o=s[n].indexOf(e);for(;s[n]&&s[n][o]===e;)s[n]=g(s[n],o,t),n--;for(r++;s[r]&&s[r][o]===e;)s[r]=g(s[r],o,t),r++}}else{let e=1/0;for(let o=n;o<r;o++)if(s[o]){s[o]=s[o].filter((({type:e})=>e!==t.type));const n=s[o].length;n<e&&(e=n)}else s[o]=[],e=0;for(let o=n;o<r;o++)s[o].splice(e,0,t)}return p({...e,formats:s,activeFormats:[...a?.filter((({type:e})=>e!==t.type))||[],t]})}function y({implementation:e},t){return y.body||(y.body=e.createHTMLDocument("").body),y.body.innerHTML=t,y.body}(0,o.register)(f);const v="",E="\ufeff",b=window.wp.escapeHtml;function T(e,t=[]){const{formats:n,start:r,end:o,activeFormats:a}=e;if(void 0===r)return t;if(r===o){if(a)return a;const e=n[r-1]||t,o=n[r]||t;return e.length<o.length?e:o}if(!n[r])return t;const s=n.slice(r,o),i=[...s[0]];let c=s.length;for(;c--;){const e=s[c];if(!e)return t;let n=i.length;for(;n--;){const t=i[n];e.find((e=>m(t,e)))||i.splice(n,1)}if(0===i.length)return t}return i||t}function x(e){return(0,o.select)(f).getFormatType(e)}function w(e,t){if(t)return e;const n={};for(const t in e){let r=t;t.startsWith("data-disable-rich-text-")&&(r=t.slice(23)),n[r]=e[t]}return n}function N({type:e,tagName:t,attributes:n,unregisteredAttributes:r,object:o,boundaryClass:a,isEditableTree:s}){const i=x(e);let c={};if(a&&s&&(c["data-rich-text-format-boundary"]="true"),!i)return n&&(c={...n,...c}),{type:e,attributes:w(c,s),object:o};c={...r,...c};for(const e in n){const t=!!i.attributes&&i.attributes[e];t?c[t]=n[e]:c[e]=n[e]}return i.className&&(c.class?c.class=`${i.className} ${c.class}`:c.class=i.className),s&&!1===i.contentEditable&&(c.contenteditable="false"),{type:t||i.tagName,object:i.object,attributes:w(c,s)}}function L(e,t,n){do{if(e[n]!==t[n])return!1}while(n--);return!0}function C({value:e,preserveWhiteSpace:t,createEmpty:n,append:r,getLastChild:o,getParent:a,isText:s,getText:i,remove:c,appendText:l,onStartIndex:u,onEndIndex:d,isEditableTree:f,placeholder:m}){const{formats:p,replacements:g,text:h,start:y,end:b}=e,w=p.length+1,C=n(),_=T(e),F=_[_.length-1];let O,S;r(C,"");for(let e=0;e<w;e++){const n=h.charAt(e),T=f&&(!S||"\n"===S),w=p[e];let _=o(C);if(w&&w.forEach(((e,t)=>{if(_&&O&&L(w,O,t))return void(_=o(_));const{type:n,tagName:l,attributes:u,unregisteredAttributes:d}=e,m=f&&e===F,p=a(_),g=r(p,N({type:n,tagName:l,attributes:u,unregisteredAttributes:d,boundaryClass:m,isEditableTree:f}));s(_)&&0===i(_).length&&c(_),_=r(g,"")})),0===e&&(u&&0===y&&u(C,_),d&&0===b&&d(C,_)),n===v){const t=g[e];if(!t)continue;const{type:n,attributes:o,innerHTML:s}=t,i=x(n);f||"script"!==n?!1===i?.contentEditable?(_=r(a(_),N({...t,isEditableTree:f,boundaryClass:y===e&&b===e+1})),s&&r(_,{html:s})):_=r(a(_),N({...t,object:!0,isEditableTree:f})):(_=r(a(_),N({type:"script",isEditableTree:f})),r(_,{html:decodeURIComponent(o["data-rich-text-script"])})),_=r(a(_),"")}else t||"\n"!==n?s(_)?l(_,n):_=r(a(_),n):(_=r(a(_),{type:"br",attributes:f?{"data-rich-text-line-break":"true"}:void 0,object:!0}),_=r(a(_),""));u&&y===e+1&&u(C,_),d&&b===e+1&&d(C,_),T&&e===h.length&&(r(a(_),E),m&&0===h.length&&r(a(_),{type:"span",attributes:{"data-rich-text-placeholder":m,style:"pointer-events:none;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;"}})),O=w,S=n}return C}function _({value:e,preserveWhiteSpace:t}){return $(C({value:e,preserveWhiteSpace:t,createEmpty:F,append:S,getLastChild:O,getParent:R,isText:D,getText:M,remove:k,appendText:A}).children)}function F(){return{}}function O({children:e}){return e&&e[e.length-1]}function S(e,t){return"string"==typeof t&&(t={text:t}),t.parent=e,e.children=e.children||[],e.children.push(t),t}function A(e,t){e.text+=t}function R({parent:e}){return e}function D({text:e}){return"string"==typeof e}function M({text:e}){return e}function k(e){const t=e.parent.children.indexOf(e);return-1!==t&&e.parent.children.splice(t,1),e}function $(e=[]){return e.map((e=>void 0!==e.html?e.html:void 0===e.text?function({type:e,attributes:t,object:n,children:r}){let o="";for(const e in t)(0,b.isValidAttributeName)(e)&&(o+=` ${e}="${(0,b.escapeAttribute)(t[e])}"`);return n?`<${e}${o}>`:`<${e}${o}>${$(r)}</${e}>`}(e):(0,b.escapeEditableHTML)(e.text))).join("")}function H({text:e}){return e.replace(v,"")}function P({tagName:e,attributes:t}){let n;if(t&&t.class&&(n=(0,o.select)(f).getFormatTypeForClassName(t.class),n&&(t.class=` ${t.class} `.replace(` ${n.className} `," ").trim(),t.class||delete t.class)),n||(n=(0,o.select)(f).getFormatTypeForBareElement(e)),!n)return t?{type:e,attributes:t}:{type:e};if(n.__experimentalCreatePrepareEditableTree&&!n.__experimentalCreateOnChangeEditableValue)return null;if(!t)return{formatType:n,type:n.name,tagName:e};const r={},a={},s={...t};for(const e in n.attributes){const t=n.attributes[e];r[e]=s[t],delete s[t],void 0===r[e]&&delete r[e]}for(const e in s)a[e]=t[e];return!1===n.contentEditable&&delete a.contenteditable,{formatType:n,type:n.name,tagName:e,attributes:r,unregisteredAttributes:a}}class j{#e;static empty(){return new j}static fromPlainText(e){return new j(V({text:e}))}static fromHTMLString(e){return new j(V({html:e}))}static fromHTMLElement(e,t={}){const{preserveWhiteSpace:n=!1}=t,r=n?e:z(e),o=new j(V({element:r}));return Object.defineProperty(o,"originalHTML",{value:e.innerHTML}),o}constructor(e={formats:[],replacements:[],text:""}){this.#e=e}toPlainText(){return H(this.#e)}toHTMLString({preserveWhiteSpace:e}={}){return this.originalHTML||_({value:this.#e,preserveWhiteSpace:e})}valueOf(){return this.toHTMLString()}toString(){return this.toHTMLString()}toJSON(){return this.toHTMLString()}get length(){return this.text.length}get formats(){return this.#e.formats}get replacements(){return this.#e.replacements}get text(){return this.#e.text}}for(const e of Object.getOwnPropertyNames(String.prototype))j.prototype.hasOwnProperty(e)||Object.defineProperty(j.prototype,e,{value(...t){return this.toHTMLString()[e](...t)}});function V({element:e,text:t,html:n,range:r,__unstableIsEditableTree:o}={}){return n instanceof j?{text:n.text,formats:n.formats,replacements:n.replacements}:"string"==typeof t&&t.length>0?{formats:Array(t.length),replacements:Array(t.length),text:t}:("string"==typeof n&&n.length>0&&(e=y(document,n)),"object"!=typeof e?{formats:[],replacements:[],text:""}:K({element:e,range:r,isEditableTree:o}))}function I(e,t,n,r){if(!n)return;const{parentNode:o}=t,{startContainer:a,startOffset:s,endContainer:i,endOffset:c}=n,l=e.text.length;void 0!==r.start?e.start=l+r.start:t===a&&t.nodeType===t.TEXT_NODE?e.start=l+s:o===a&&t===a.childNodes[s]?e.start=l:o===a&&t===a.childNodes[s-1]?e.start=l+r.text.length:t===a&&(e.start=l),void 0!==r.end?e.end=l+r.end:t===i&&t.nodeType===t.TEXT_NODE?e.end=l+c:o===i&&t===i.childNodes[c-1]?e.end=l+r.text.length:o===i&&t===i.childNodes[c]?e.end=l:t===i&&(e.end=l+c)}function W(e,t,n){if(!t)return;const{startContainer:r,endContainer:o}=t;let{startOffset:a,endOffset:s}=t;return e===r&&(a=n(e.nodeValue.slice(0,a)).length),e===o&&(s=n(e.nodeValue.slice(0,s)).length),{startContainer:r,startOffset:a,endContainer:o,endOffset:s}}function z(e,t=!0){const n=e.cloneNode(!0);return n.normalize(),Array.from(n.childNodes).forEach(((e,n,r)=>{if(e.nodeType===e.TEXT_NODE){let o=e.nodeValue;/[\n\t\r\f]/.test(o)&&(o=o.replace(/[\n\t\r\f]+/g," ")),-1!==o.indexOf(" ")&&(o=o.replace(/ {2,}/g," ")),0===n&&o.startsWith(" ")?o=o.slice(1):t&&n===r.length-1&&o.endsWith(" ")&&(o=o.slice(0,-1)),e.nodeValue=o}else e.nodeType===e.ELEMENT_NODE&&z(e,!1)})),n}const B="\r";function X(e){return e.replace(new RegExp(`[${E}${v}${B}]`,"gu"),"")}function K({element:e,range:t,isEditableTree:n}){const r={formats:[],replacements:[],text:""};if(!e)return r;if(!e.hasChildNodes())return I(r,e,t,{formats:[],replacements:[],text:""}),r;const o=e.childNodes.length;for(let a=0;a<o;a++){const s=e.childNodes[a],i=s.nodeName.toLowerCase();if(s.nodeType===s.TEXT_NODE){const u=X(s.nodeValue);I(r,s,t=W(s,t,X),{text:u}),r.formats.length+=u.length,r.replacements.length+=u.length,r.text+=u;continue}if(s.nodeType!==s.ELEMENT_NODE)continue;if(n&&"br"===i&&!s.getAttribute("data-rich-text-line-break")){I(r,s,t,{formats:[],replacements:[],text:""});continue}if("script"===i){const d={formats:[,],replacements:[{type:i,attributes:{"data-rich-text-script":s.getAttribute("data-rich-text-script")||encodeURIComponent(s.innerHTML)}}],text:v};I(r,s,t,d),U(r,d);continue}if("br"===i){I(r,s,t,{formats:[],replacements:[],text:""}),U(r,V({text:"\n"}));continue}const c=P({tagName:i,attributes:q({element:s})});if(!1===c?.formatType?.contentEditable){delete c.formatType,I(r,s,t,{formats:[],replacements:[],text:""}),U(r,{formats:[,],replacements:[{...c,innerHTML:s.innerHTML}],text:v});continue}c&&delete c.formatType;const l=K({element:s,range:t,isEditableTree:n});if(I(r,s,t,l),!c||s.getAttribute("data-rich-text-placeholder"))U(r,l);else if(0===l.text.length)c.attributes&&U(r,{formats:[,],replacements:[c],text:v});else{function f(e){if(f.formats===e)return f.newFormats;const t=e?[c,...e]:[c];return f.formats=e,f.newFormats=t,t}f.newFormats=[c],U(r,{...l,formats:Array.from(l.formats,f)})}}return r}function q({element:e}){if(!e.hasAttributes())return;const t=e.attributes.length;let n;for(let r=0;r<t;r++){const{name:t,value:o}=e.attributes[r];if(0===t.indexOf("data-rich-text-"))continue;n=n||{},n[/^on/i.test(t)?"data-disable-rich-text-"+t:t]=o}return n}function U(e,t){return e.formats=e.formats.concat(t.formats),e.replacements=e.replacements.concat(t.replacements),e.text+=t.text,e}function Y(...e){return p(e.reduce(U,V()))}function G(e,t){return T(e).find((({type:e})=>e===t))}function Z({start:e,end:t,replacements:n,text:r}){if(e+1===t&&r[e]===v)return n[e]}function J({start:e,end:t}){if(void 0!==e&&void 0!==t)return e===t}function Q({text:e}){return 0===e.length}function ee(e,t=""){return"string"==typeof t&&(t=V({text:t})),p(e.reduce(((e,{formats:n,replacements:r,text:o})=>({formats:e.formats.concat(t.formats,n),replacements:e.replacements.concat(t.replacements,r),text:e.text+t.text+o}))))}function te(e,t){if("string"==typeof(t={name:e,...t}).name)if(/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(t.name))if((0,o.select)(f).getFormatType(t.name))window.console.error('Format "'+t.name+'" is already registered.');else if("string"==typeof t.tagName&&""!==t.tagName)if("string"==typeof t.className&&""!==t.className||null===t.className)if(/^[_a-zA-Z]+[a-zA-Z0-9_-]*$/.test(t.className)){if(null===t.className){const e=(0,o.select)(f).getFormatTypeForBareElement(t.tagName);if(e&&"core/unknown"!==e.name)return void window.console.error(`Format "${e.name}" is already registered to handle bare tag name "${t.tagName}".`)}else{const e=(0,o.select)(f).getFormatTypeForClassName(t.className);if(e)return void window.console.error(`Format "${e.name}" is already registered to handle class name "${t.className}".`)}if("title"in t&&""!==t.title)if("keywords"in t&&t.keywords.length>3)window.console.error('The format "'+t.name+'" can have a maximum of 3 keywords.');else{if("string"==typeof t.title)return(0,o.dispatch)(f).addFormatTypes(t),t;window.console.error("Format titles must be strings.")}else window.console.error('The format "'+t.name+'" must have a title.')}else window.console.error("A class name must begin with a letter, followed by any number of hyphens, underscores, letters, or numbers.");else window.console.error("Format class names must be a string, or null to handle bare elements.");else window.console.error("Format tag names must be a string.");else window.console.error("Format names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-format");else window.console.error("Format names must be strings.")}function ne(e,t,n=e.start,r=e.end){const{formats:o,activeFormats:a}=e,s=o.slice();if(n===r){const e=s[n]?.find((({type:e})=>e===t));if(e){for(;s[n]?.find((t=>t===e));)re(s,n,t),n--;for(r++;s[r]?.find((t=>t===e));)re(s,r,t),r++}}else for(let e=n;e<r;e++)s[e]&&re(s,e,t);return p({...e,formats:s,activeFormats:a?.filter((({type:e})=>e!==t))||[]})}function re(e,t,n){const r=e[t].filter((({type:e})=>e!==n));r.length?e[t]=r:delete e[t]}function oe(e,t,n=e.start,r=e.end){const{formats:o,replacements:a,text:s}=e;"string"==typeof t&&(t=V({text:t}));const i=n+t.text.length;return p({formats:o.slice(0,n).concat(t.formats,o.slice(r)),replacements:a.slice(0,n).concat(t.replacements,a.slice(r)),text:s.slice(0,n)+t.text+s.slice(r),start:i,end:i})}function ae(e,t,n){return oe(e,V(),t,n)}function se({formats:e,replacements:t,text:n,start:r,end:o},a,s){return n=n.replace(a,((n,...a)=>{const i=a[a.length-2];let c,l,u=s;return"function"==typeof u&&(u=s(n,...a)),"object"==typeof u?(c=u.formats,l=u.replacements,u=u.text):(c=Array(u.length),l=Array(u.length),e[i]&&(c=c.fill(e[i]))),e=e.slice(0,i).concat(c,e.slice(i+n.length)),t=t.slice(0,i).concat(l,t.slice(i+n.length)),r&&(r=o=i+u.length),u})),p({formats:e,replacements:t,text:n,start:r,end:o})}function ie(e,t,n,r){return oe(e,{formats:[,],replacements:[t],text:v},n,r)}function ce(e,t=e.start,n=e.end){const{formats:r,replacements:o,text:a}=e;return void 0===t||void 0===n?{...e}:{formats:r.slice(t,n),replacements:o.slice(t,n),text:a.slice(t,n)}}function le({formats:e,replacements:t,text:n,start:r,end:o},a){if("string"!=typeof a)return function({formats:e,replacements:t,text:n,start:r,end:o},a=r,s=o){if(void 0===r||void 0===o)return;const i={formats:e.slice(0,a),replacements:t.slice(0,a),text:n.slice(0,a)},c={formats:e.slice(s),replacements:t.slice(s),text:n.slice(s),start:0,end:0};return[i,c]}(...arguments);let s=0;return n.split(a).map((n=>{const i=s,c={formats:e.slice(i,i+n.length),replacements:t.slice(i,i+n.length),text:n};return s+=a.length+n.length,void 0!==r&&void 0!==o&&(r>=i&&r<s?c.start=r-i:r<i&&o>i&&(c.start=0),o>=i&&o<s?c.end=o-i:r<s&&o>s&&(c.end=n.length)),c}))}function ue(e,t){return e===t||e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}function de(e,t,n){const r=e.parentNode;let o=0;for(;e=e.previousSibling;)o++;return n=[o,...n],r!==t&&(n=de(r,t,n)),n}function fe(e,t){for(t=[...t];e&&t.length>1;)e=e.childNodes[t.shift()];return{node:e,offset:t[0]}}function me(e,t){if(void 0!==t.html)return e.innerHTML+=t.html;"string"==typeof t&&(t=e.ownerDocument.createTextNode(t));const{type:n,attributes:r}=t;if(n){t=e.ownerDocument.createElement(n);for(const e in r)t.setAttribute(e,r[e])}return e.appendChild(t)}function pe(e,t){e.appendData(t)}function ge({lastChild:e}){return e}function he({parentNode:e}){return e}function ye(e){return e.nodeType===e.TEXT_NODE}function ve({nodeValue:e}){return e}function Ee(e){return e.parentNode.removeChild(e)}function be({value:e,prepareEditableTree:t,isEditableTree:n=!0,placeholder:r,doc:o=document}){let a=[],s=[];t&&(e={...e,formats:t(e)});return{body:C({value:e,createEmpty:()=>y(o,""),append:me,getLastChild:ge,getParent:he,isText:ye,getText:ve,remove:Ee,appendText:pe,onStartIndex(e,t){a=de(t,e,[t.nodeValue.length])},onEndIndex(e,t){s=de(t,e,[t.nodeValue.length])},isEditableTree:n,placeholder:r}),selection:{startPath:a,endPath:s}}}function Te({value:e,current:t,prepareEditableTree:n,__unstableDomOnly:r,placeholder:o}){const{body:a,selection:s}=be({value:e,prepareEditableTree:n,placeholder:o,doc:t.ownerDocument});xe(a,t),void 0===e.start||r||function({startPath:e,endPath:t},n){const{node:r,offset:o}=fe(n,e),{node:a,offset:s}=fe(n,t),{ownerDocument:i}=n,{defaultView:c}=i,l=c.getSelection(),u=i.createRange();u.setStart(r,o),u.setEnd(a,s);const{activeElement:d}=i;if(l.rangeCount>0){if(ue(u,l.getRangeAt(0)))return;l.removeAllRanges()}l.addRange(u),d!==i.activeElement&&d instanceof c.HTMLElement&&d.focus()}(s,t)}function xe(e,t){let n,r=0;for(;n=e.firstChild;){const o=t.childNodes[r];if(o)if(o.isEqualNode(n))e.removeChild(n);else if(o.nodeName!==n.nodeName||o.nodeType===o.TEXT_NODE&&o.data!==n.data)t.replaceChild(n,o);else{const t=o.attributes,r=n.attributes;if(t){let e=t.length;for(;e--;){const{name:r}=t[e];n.getAttribute(r)||o.removeAttribute(r)}}if(r)for(let e=0;e<r.length;e++){const{name:t,value:n}=r[e];o.getAttribute(t)!==n&&o.setAttribute(t,n)}xe(n,o),e.removeChild(n)}else t.appendChild(n);r++}for(;t.childNodes[r];)t.removeChild(t.childNodes[r])}const we=window.wp.a11y,Ne=window.wp.i18n;function Le(e,t){return G(e,t.type)?(t.title&&(0,we.speak)((0,Ne.sprintf)((0,Ne.__)("%s removed."),t.title),"assertive"),ne(e,t.type)):(t.title&&(0,we.speak)((0,Ne.sprintf)((0,Ne.__)("%s applied."),t.title),"assertive"),h(e,t))}function Ce(e){const t=(0,o.select)(f).getFormatType(e);if(t)return(0,o.dispatch)(f).removeFormatTypes(e),t;window.console.error(`Format ${e} is not registered.`)}const _e=window.wp.element,Fe=window.wp.deprecated;var Oe=e.n(Fe);function Se({ref:e,value:t,settings:n={}}){Oe()("`useAnchorRef` hook",{since:"6.1",alternative:"`useAnchor` hook"});const{tagName:r,className:o,name:a}=n,s=a?G(t,a):void 0;return(0,_e.useMemo)((()=>{if(!e.current)return;const{ownerDocument:{defaultView:t}}=e.current,n=t.getSelection();if(!n.rangeCount)return;const a=n.getRangeAt(0);if(!s)return a;let i=a.startContainer;for(i=i.nextElementSibling||i;i.nodeType!==i.ELEMENT_NODE;)i=i.parentNode;return i.closest(r+(o?"."+o:""))}),[s,t.start,t.end,r,o])}const Ae=window.wp.compose;function Re(e,t,n){if(!e)return;const{ownerDocument:r}=e,{defaultView:o}=r,a=o.getSelection();if(!a)return;if(!a.rangeCount)return;const s=a.getRangeAt(0);if(!s||!s.startContainer)return;const i=function(e,t,n,r){let o=e.startContainer;if(o.nodeType===o.TEXT_NODE&&e.startOffset===o.length&&o.nextSibling)for(o=o.nextSibling;o.firstChild;)o=o.firstChild;if(o.nodeType!==o.ELEMENT_NODE&&(o=o.parentElement),!o)return;if(o===t)return;if(!t.contains(o))return;const a=n+(r?"."+r:"");for(;o!==t;){if(o.matches(a))return o;o=o.parentElement}}(s,e,t,n);return i||function(e,t){return{contextElement:t,getBoundingClientRect:()=>t.contains(e.startContainer)?e.getBoundingClientRect():t.getBoundingClientRect()}}(s,e)}function De({editableContentElement:e,settings:t={}}){const{tagName:n,className:r,isActive:o}=t,[a,s]=(0,_e.useState)((()=>Re(e,n,r))),i=(0,Ae.usePrevious)(o);return(0,_e.useLayoutEffect)((()=>{if(!e)return;function t(){s(Re(e,n,r))}function a(){l.addEventListener("selectionchange",t)}function c(){l.removeEventListener("selectionchange",t)}const{ownerDocument:l}=e;return(e===l.activeElement||!i&&o||i&&!o)&&(s(Re(e,n,r)),a()),e.addEventListener("focusin",a),e.addEventListener("focusout",c),()=>{c(),e.removeEventListener("focusin",a),e.removeEventListener("focusout",c)}}),[e,n,r,o,i]),a}const Me="pre-wrap",ke="1px";function $e({record:e}){const t=(0,_e.useRef)(),{activeFormats:n=[],replacements:r,start:o}=e.current,a=r[o];return(0,_e.useEffect)((()=>{if(!(n&&n.length||a))return;const e="*[data-rich-text-format-boundary]",r=t.current.querySelector(e);if(!r)return;const{ownerDocument:o}=r,{defaultView:s}=o,i=`${`.rich-text:focus ${e}`} {${`background-color: ${s.getComputedStyle(r).color.replace(")",", 0.2)").replace("rgb","rgba")}`}}`,c="rich-text-boundary-style";let l=o.getElementById(c);l||(l=o.createElement("style"),l.id=c,o.head.appendChild(l)),l.innerHTML!==i&&(l.innerHTML=i)}),[n,a]),t}const He=window.wp.keycodes,Pe=[];const je=new Set(["insertParagraph","insertOrderedList","insertUnorderedList","insertHorizontalRule","insertLink"]),Ve=[],Ie="data-rich-text-placeholder";const We=[e=>t=>{function n(n){const{record:r}=e.current,{ownerDocument:o}=t;if(J(r.current)||!t.contains(o.activeElement))return;const a=ce(r.current),s=H(a),i=_({value:a});n.clipboardData.setData("text/plain",s),n.clipboardData.setData("text/html",i),n.clipboardData.setData("rich-text","true"),n.preventDefault(),"cut"===n.type&&o.execCommand("delete")}const{defaultView:r}=t.ownerDocument;return r.addEventListener("copy",n),r.addEventListener("cut",n),()=>{r.removeEventListener("copy",n),r.removeEventListener("cut",n)}},()=>e=>{function t(t){const{target:n}=t;if(n===e||n.textContent&&n.isContentEditable)return;const{ownerDocument:r}=n,{defaultView:o}=r,a=o.getSelection();if(a.containsNode(n))return;const s=r.createRange(),i=n.isContentEditable?n:n.closest("[contenteditable]");s.selectNode(i),a.removeAllRanges(),a.addRange(s),t.preventDefault()}function n(n){n.relatedTarget&&!e.contains(n.relatedTarget)&&"A"===n.relatedTarget.tagName&&t(n)}return e.addEventListener("click",t),e.addEventListener("focusin",n),()=>{e.removeEventListener("click",t),e.removeEventListener("focusin",n)}},e=>t=>{function n(n){const{keyCode:r,shiftKey:o,altKey:a,metaKey:s,ctrlKey:i}=n;if(o||a||s||i||r!==He.LEFT&&r!==He.RIGHT)return;const{record:c,applyRecord:l,forceRender:u}=e.current,{text:d,formats:f,start:m,end:p,activeFormats:g=[]}=c.current,h=J(c.current),{ownerDocument:y}=t,{defaultView:v}=y,{direction:E}=v.getComputedStyle(t),b="rtl"===E?He.RIGHT:He.LEFT,T=n.keyCode===b;if(h&&0===g.length){if(0===m&&T)return;if(p===d.length&&!T)return}if(!h)return;const x=f[m-1]||Pe,w=f[m]||Pe,N=T?x:w,L=g.every(((e,t)=>e===N[t]));let C=g.length;if(L?C<N.length&&C++:C--,C===g.length)return void(c.current._newActiveFormats=N);n.preventDefault();const _=(L?N:T?w:x).slice(0,C),F={...c.current,activeFormats:_};c.current=F,l(F),u()}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}},e=>t=>{function n(t){const{keyCode:n}=t,{createRecord:r,handleChange:o}=e.current;if(t.defaultPrevented)return;if(n!==He.DELETE&&n!==He.BACKSPACE)return;const a=r(),{start:s,end:i,text:c}=a;0===s&&0!==i&&i===c.length&&(o(ae(a)),t.preventDefault())}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}},e=>t=>{const{ownerDocument:n}=t,{defaultView:r}=n;let o=!1;function a(t){if(o)return;let n;t&&(n=t.inputType);const{record:r,applyRecord:a,createRecord:s,handleChange:i}=e.current;if(n&&(0===n.indexOf("format")||je.has(n)))return void a(r.current);const c=s(),{start:l,activeFormats:u=[]}=r.current,d=function({value:e,start:t,end:n,formats:r}){const o=Math.min(t,n),a=Math.max(t,n),s=e.formats[o-1]||[],i=e.formats[a]||[];for(e.activeFormats=r.map(((e,t)=>{if(s[t]){if(m(e,s[t]))return s[t]}else if(i[t]&&m(e,i[t]))return i[t];return e}));--n>=t;)e.activeFormats.length>0?e.formats[n]=e.activeFormats:delete e.formats[n];return e}({value:c,start:l,end:c.start,formats:u});i(d)}function s(){const{record:i,applyRecord:c,createRecord:l,onSelectionChange:u}=e.current;if("true"!==t.contentEditable)return;if(n.activeElement!==t)return void n.removeEventListener("selectionchange",s);if(o)return;const{start:d,end:f,text:m}=l(),p=i.current;if(m!==p.text)return void a();if(d===p.start&&f===p.end)return void(0===p.text.length&&0===d&&function(e){const t=e.getSelection(),{anchorNode:n,anchorOffset:r}=t;if(n.nodeType!==n.ELEMENT_NODE)return;const o=n.childNodes[r];o&&o.nodeType===o.ELEMENT_NODE&&o.hasAttribute(Ie)&&t.collapseToStart()}(r));const g={...p,start:d,end:f,activeFormats:p._newActiveFormats,_newActiveFormats:void 0},h=T(g,Ve);g.activeFormats=h,i.current=g,c(g,{domOnly:!0}),u(d,f)}function i(){o=!0,n.removeEventListener("selectionchange",s),t.querySelector(`[${Ie}]`)?.remove()}function c(){o=!1,a({inputType:"insertText"}),n.addEventListener("selectionchange",s)}function l(){const{record:r,isSelected:o,onSelectionChange:a,applyRecord:i}=e.current;if(!t.parentElement.closest('[contenteditable="true"]')){if(o)i(r.current,{domOnly:!0});else{const e=void 0;r.current={...r.current,start:e,end:e,activeFormats:Ve}}a(r.current.start,r.current.end),window.queueMicrotask(s),n.addEventListener("selectionchange",s)}}return t.addEventListener("input",a),t.addEventListener("compositionstart",i),t.addEventListener("compositionend",c),t.addEventListener("focus",l),()=>{t.removeEventListener("input",a),t.removeEventListener("compositionstart",i),t.removeEventListener("compositionend",c),t.removeEventListener("focus",l)}},()=>e=>{const{ownerDocument:t}=e,{defaultView:n}=t,r=n?.getSelection();let o;function a(){return r.rangeCount?r.getRangeAt(0):null}function s(e){const n="keydown"===e.type?"keyup":"pointerup";function r(){t.removeEventListener(n,s),t.removeEventListener("selectionchange",r),t.removeEventListener("input",r)}function s(){r(),ue(o,a())||t.dispatchEvent(new Event("selectionchange"))}t.addEventListener(n,s),t.addEventListener("selectionchange",r),t.addEventListener("input",r),o=a()}return e.addEventListener("pointerdown",s),e.addEventListener("keydown",s),()=>{e.removeEventListener("pointerdown",s),e.removeEventListener("keydown",s)}}];function ze(e){const t=(0,_e.useRef)(e);t.current=e;const n=(0,_e.useMemo)((()=>We.map((e=>e(t)))),[t]);return(0,Ae.useRefEffect)((e=>{const t=n.map((t=>t(e)));return()=>{t.forEach((e=>e()))}}),[n])}function Be({value:e="",selectionStart:t,selectionEnd:n,placeholder:r,onSelectionChange:a,preserveWhiteSpace:s,onChange:i,__unstableDisableFormats:c,__unstableIsSelected:l,__unstableDependencies:u=[],__unstableAfterParse:d,__unstableBeforeSerialize:f,__unstableAddInvisibleFormats:m}){const p=(0,o.useRegistry)(),[,g]=(0,_e.useReducer)((()=>({}))),h=(0,_e.useRef)();function y(e,{domOnly:t}={}){Te({value:e,current:h.current,prepareEditableTree:m,__unstableDomOnly:t,placeholder:r})}const v=(0,_e.useRef)(e),E=(0,_e.useRef)();function b(){v.current=e,E.current=e,e instanceof j||(E.current=e?j.fromHTMLString(e,{preserveWhiteSpace:s}):j.empty()),E.current={text:E.current.text,formats:E.current.formats,replacements:E.current.replacements},c&&(E.current.formats=Array(e.length),E.current.replacements=Array(e.length)),d&&(E.current.formats=d(E.current)),E.current.start=t,E.current.end=n}const T=(0,_e.useRef)(!1);function x(t){if(E.current=t,y(t),c)v.current=t.text;else{const n=f?f(t):t.formats;t={...t,formats:n},v.current="string"==typeof e?_({value:t,preserveWhiteSpace:s}):new j(t)}const{start:n,end:r,formats:o,text:l}=E.current;p.batch((()=>{a(n,r),i(v.current,{__unstableFormats:o,__unstableText:l})})),g()}function w(){b(),y(E.current)}E.current?t===E.current.start&&n===E.current.end||(T.current=l,E.current={...E.current,start:t,end:n,activeFormats:void 0}):(T.current=l,b());const N=(0,_e.useRef)(!1);(0,_e.useLayoutEffect)((()=>{N.current&&e!==v.current&&(w(),g())}),[e]),(0,_e.useLayoutEffect)((()=>{T.current&&(h.current.ownerDocument.activeElement!==h.current&&h.current.focus(),y(E.current),T.current=!1)}),[T.current]);const L=(0,Ae.useMergeRefs)([h,(0,_e.useCallback)((e=>{e&&(e.style.whiteSpace=Me,e.style.minWidth=ke)}),[]),$e({record:E}),ze({record:E,handleChange:x,applyRecord:y,createRecord:function(){const{ownerDocument:{defaultView:e}}=h.current,t=e.getSelection(),n=t.rangeCount>0?t.getRangeAt(0):null;return V({element:h.current,range:n,__unstableIsEditableTree:!0})},isSelected:l,onSelectionChange:a,forceRender:g}),(0,Ae.useRefEffect)((()=>{w(),N.current=!0}),[r,...u])]);return{value:E.current,getValue:()=>E.current,onChange:x,ref:L}}function Xe(){}(window.wp=window.wp||{}).richText=t})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/router.js b/wp-includes/js/dist/router.js
index 6e482fa..631591a 100644
--- a/wp-includes/js/dist/router.js
+++ b/wp-includes/js/dist/router.js
@@ -42,8 +42,6 @@ __webpack_require__.d(__webpack_exports__, {
privateApis: () => (/* reexport */ privateApis)
});
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: external ["wp","element"]
const external_wp_element_namespaceObject = window["wp"]["element"];
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
@@ -866,24 +864,57 @@ const external_wp_url_namespaceObject = window["wp"]["url"];
const history_history = createBrowserHistory();
const originalHistoryPush = history_history.push;
const originalHistoryReplace = history_history.replace;
+
+// Preserve the `wp_theme_preview` query parameter when navigating
+// around the Site Editor.
+// TODO: move this hack out of the router into Site Editor code.
+function preserveThemePreview(params) {
+ if (params.hasOwnProperty('wp_theme_preview')) {
+ return params;
+ }
+ const currentSearch = new URLSearchParams(history_history.location.search);
+ const currentThemePreview = currentSearch.get('wp_theme_preview');
+ if (currentThemePreview === null) {
+ return params;
+ }
+ return {
+ ...params,
+ wp_theme_preview: currentThemePreview
+ };
+}
function push(params, state) {
- const currentArgs = (0,external_wp_url_namespaceObject.getQueryArgs)(window.location.href);
- const currentUrlWithoutArgs = (0,external_wp_url_namespaceObject.removeQueryArgs)(window.location.href, ...Object.keys(currentArgs));
- const newUrl = (0,external_wp_url_namespaceObject.addQueryArgs)(currentUrlWithoutArgs, params);
- return originalHistoryPush.call(history_history, newUrl, state);
+ const search = (0,external_wp_url_namespaceObject.buildQueryString)(preserveThemePreview(params));
+ return originalHistoryPush.call(history_history, {
+ search
+ }, state);
}
function replace(params, state) {
- const currentArgs = (0,external_wp_url_namespaceObject.getQueryArgs)(window.location.href);
- const currentUrlWithoutArgs = (0,external_wp_url_namespaceObject.removeQueryArgs)(window.location.href, ...Object.keys(currentArgs));
- const newUrl = (0,external_wp_url_namespaceObject.addQueryArgs)(currentUrlWithoutArgs, params);
- return originalHistoryReplace.call(history_history, newUrl, state);
+ const search = (0,external_wp_url_namespaceObject.buildQueryString)(preserveThemePreview(params));
+ return originalHistoryReplace.call(history_history, {
+ search
+ }, state);
+}
+const locationMemo = new WeakMap();
+function getLocationWithParams() {
+ const location = history_history.location;
+ let locationWithParams = locationMemo.get(location);
+ if (!locationWithParams) {
+ locationWithParams = {
+ ...location,
+ params: Object.fromEntries(new URLSearchParams(location.search))
+ };
+ locationMemo.set(location, locationWithParams);
+ }
+ return locationWithParams;
}
history_history.push = push;
history_history.replace = replace;
+history_history.getLocationWithParams = getLocationWithParams;
/* harmony default export */ const build_module_history = (history_history);
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/router/build-module/router.js
-
/**
* WordPress dependencies
*/
@@ -893,6 +924,7 @@ history_history.replace = replace;
* Internal dependencies
*/
+
const RoutesContext = (0,external_wp_element_namespaceObject.createContext)();
const HistoryContext = (0,external_wp_element_namespaceObject.createContext)();
function useLocation() {
@@ -901,29 +933,17 @@ function useLocation() {
function useHistory() {
return (0,external_wp_element_namespaceObject.useContext)(HistoryContext);
}
-function getLocationWithParams(location) {
- const searchParams = new URLSearchParams(location.search);
- return {
- ...location,
- params: Object.fromEntries(searchParams.entries())
- };
-}
function RouterProvider({
children
}) {
- const [location, setLocation] = (0,external_wp_element_namespaceObject.useState)(() => getLocationWithParams(build_module_history.location));
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- return build_module_history.listen(({
- location: updatedLocation
- }) => {
- setLocation(getLocationWithParams(updatedLocation));
- });
- }, []);
- return (0,external_React_namespaceObject.createElement)(HistoryContext.Provider, {
- value: build_module_history
- }, (0,external_React_namespaceObject.createElement)(RoutesContext.Provider, {
- value: location
- }, children));
+ const location = (0,external_wp_element_namespaceObject.useSyncExternalStore)(build_module_history.listen, build_module_history.getLocationWithParams, build_module_history.getLocationWithParams);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HistoryContext.Provider, {
+ value: build_module_history,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RoutesContext.Provider, {
+ value: location,
+ children: children
+ })
+ });
}
;// CONCATENATED MODULE: external ["wp","privateApis"]
@@ -936,7 +956,7 @@ const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
const {
lock,
unlock
-} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/router');
+} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/router');
;// CONCATENATED MODULE: ./node_modules/@wordpress/router/build-module/private-apis.js
/**
diff --git a/wp-includes/js/dist/router.min.js b/wp-includes/js/dist/router.min.js
index 48ab2a7..82c226c 100644
--- a/wp-includes/js/dist/router.min.js
+++ b/wp-includes/js/dist/router.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{privateApis:()=>S});const n=window.React,r=window.wp.element;function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var a;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));var u=function(e){return e};var i="beforeunload",c="popstate";function s(e){e.preventDefault(),e.returnValue=""}function l(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function f(){return Math.random().toString(36).substr(2,8)}function h(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,o=void 0===r?"":r,a=e.hash,u=void 0===a?"":a;return o&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o),u&&"#"!==u&&(n+="#"===u.charAt(0)?u:"#"+u),n}function d(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}const p=window.wp.url,v=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function p(){var e=n.location,t=e.pathname,o=e.search,a=e.hash,i=r.state||{};return[i.idx,u({pathname:t,search:o,hash:a,state:i.usr||null,key:i.key||"default"})]}var v=null;n.addEventListener(c,(function(){if(v)P.call(v),v=null;else{var e=a.Pop,t=p(),n=t[0],r=t[1];if(P.length){if(null!=n){var o=g-n;o&&(v={action:e,location:r,retry:function(){x(-1*o)}},x(o))}}else j(e)}}));var w=a.Pop,y=p(),g=y[0],b=y[1],m=l(),P=l();function O(e){return"string"==typeof e?e:h(e)}function k(e,t){return void 0===t&&(t=null),u(o({pathname:b.pathname,hash:"",search:""},"string"==typeof e?d(e):e,{state:t,key:f()}))}function A(e,t){return[{usr:e.state,key:e.key,idx:t},O(e)]}function S(e,t,n){return!P.length||(P.call({action:e,location:t,retry:n}),!1)}function j(e){w=e;var t=p();g=t[0],b=t[1],m.call({action:w,location:b})}function x(e){r.go(e)}null==g&&(g=0,r.replaceState(o({},r.state,{idx:g}),""));var E={get action(){return w},get location(){return b},createHref:O,push:function e(t,o){var u=a.Push,i=k(t,o);if(S(u,i,(function(){e(t,o)}))){var c=A(i,g+1),s=c[0],l=c[1];try{r.pushState(s,"",l)}catch(e){n.location.assign(l)}j(u)}},replace:function e(t,n){var o=a.Replace,u=k(t,n);if(S(o,u,(function(){e(t,n)}))){var i=A(u,g),c=i[0],s=i[1];r.replaceState(c,"",s),j(o)}},go:x,back:function(){x(-1)},forward:function(){x(1)},listen:function(e){return m.push(e)},block:function(e){var t=P.push(e);return 1===P.length&&n.addEventListener(i,s),function(){t(),P.length||n.removeEventListener(i,s)}}};return E}(),w=v.push,y=v.replace;v.push=function(e,t){const n=(0,p.getQueryArgs)(window.location.href),r=(0,p.removeQueryArgs)(window.location.href,...Object.keys(n)),o=(0,p.addQueryArgs)(r,e);return w.call(v,o,t)},v.replace=function(e,t){const n=(0,p.getQueryArgs)(window.location.href),r=(0,p.removeQueryArgs)(window.location.href,...Object.keys(n)),o=(0,p.addQueryArgs)(r,e);return y.call(v,o,t)};const g=v,b=(0,r.createContext)(),m=(0,r.createContext)();function P(e){const t=new URLSearchParams(e.search);return{...e,params:Object.fromEntries(t.entries())}}const O=window.wp.privateApis,{lock:k,unlock:A}=(0,O.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/router"),S={};k(S,{useHistory:function(){return(0,r.useContext)(m)},useLocation:function(){return(0,r.useContext)(b)},RouterProvider:function({children:e}){const[t,o]=(0,r.useState)((()=>P(g.location)));return(0,r.useEffect)((()=>g.listen((({location:e})=>{o(P(e))}))),[]),(0,n.createElement)(m.Provider,{value:g},(0,n.createElement)(b.Provider,{value:t},e))}}),(window.wp=window.wp||{}).router=t})(); \ No newline at end of file
+(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{privateApis:()=>j});const n=window.wp.element;function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}var o;!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(o||(o={}));var a=function(t){return t};var i="beforeunload",u="popstate";function c(t){t.preventDefault(),t.returnValue=""}function s(){var t=[];return{get length(){return t.length},push:function(e){return t.push(e),function(){t=t.filter((function(t){return t!==e}))}},call:function(e){t.forEach((function(t){return t&&t(e)}))}}}function l(){return Math.random().toString(36).substr(2,8)}function f(t){var e=t.pathname,n=void 0===e?"/":e,r=t.search,o=void 0===r?"":r,a=t.hash,i=void 0===a?"":a;return o&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}function h(t){var e={};if(t){var n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));var r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}const p=window.wp.url,d=function(t){void 0===t&&(t={});var e=t.window,n=void 0===e?document.defaultView:e,p=n.history;function d(){var t=n.location,e=t.pathname,r=t.search,o=t.hash,i=p.state||{};return[i.idx,a({pathname:e,search:r,hash:o,state:i.usr||null,key:i.key||"default"})]}var v=null;n.addEventListener(u,(function(){if(v)P.call(v),v=null;else{var t=o.Pop,e=d(),n=e[0],r=e[1];if(P.length){if(null!=n){var a=y-n;a&&(v={action:t,location:r,retry:function(){L(-1*a)}},L(a))}}else j(t)}}));var w=o.Pop,g=d(),y=g[0],m=g[1],b=s(),P=s();function S(t){return"string"==typeof t?t:f(t)}function O(t,e){return void 0===e&&(e=null),a(r({pathname:m.pathname,hash:"",search:""},"string"==typeof t?h(t):t,{state:e,key:l()}))}function x(t,e){return[{usr:t.state,key:t.key,idx:e},S(t)]}function k(t,e,n){return!P.length||(P.call({action:t,location:e,retry:n}),!1)}function j(t){w=t;var e=d();y=e[0],m=e[1],b.call({action:w,location:m})}function L(t){p.go(t)}null==y&&(y=0,p.replaceState(r({},p.state,{idx:y}),""));var _={get action(){return w},get location(){return m},createHref:S,push:function t(e,r){var a=o.Push,i=O(e,r);if(k(a,i,(function(){t(e,r)}))){var u=x(i,y+1),c=u[0],s=u[1];try{p.pushState(c,"",s)}catch(t){n.location.assign(s)}j(a)}},replace:function t(e,n){var r=o.Replace,a=O(e,n);if(k(r,a,(function(){t(e,n)}))){var i=x(a,y),u=i[0],c=i[1];p.replaceState(u,"",c),j(r)}},go:L,back:function(){L(-1)},forward:function(){L(1)},listen:function(t){return b.push(t)},block:function(t){var e=P.push(t);return 1===P.length&&n.addEventListener(i,c),function(){e(),P.length||n.removeEventListener(i,c)}}};return _}(),v=d.push,w=d.replace;function g(t){if(t.hasOwnProperty("wp_theme_preview"))return t;const e=new URLSearchParams(d.location.search).get("wp_theme_preview");return null===e?t:{...t,wp_theme_preview:e}}const y=new WeakMap;d.push=function(t,e){const n=(0,p.buildQueryString)(g(t));return v.call(d,{search:n},e)},d.replace=function(t,e){const n=(0,p.buildQueryString)(g(t));return w.call(d,{search:n},e)},d.getLocationWithParams=function(){const t=d.location;let e=y.get(t);return e||(e={...t,params:Object.fromEntries(new URLSearchParams(t.search))},y.set(t,e)),e};const m=d,b=window.ReactJSXRuntime,P=(0,n.createContext)(),S=(0,n.createContext)();const O=window.wp.privateApis,{lock:x,unlock:k}=(0,O.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/router"),j={};x(j,{useHistory:function(){return(0,n.useContext)(S)},useLocation:function(){return(0,n.useContext)(P)},RouterProvider:function({children:t}){const e=(0,n.useSyncExternalStore)(m.listen,m.getLocationWithParams,m.getLocationWithParams);return(0,b.jsx)(S.Provider,{value:m,children:(0,b.jsx)(P.Provider,{value:e,children:t})})}}),(window.wp=window.wp||{}).router=e})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/server-side-render.js b/wp-includes/js/dist/server-side-render.js
index d17f267..a764dc7 100644
--- a/wp-includes/js/dist/server-side-render.js
+++ b/wp-includes/js/dist/server-side-render.js
@@ -147,8 +147,6 @@ __webpack_require__.d(__webpack_exports__, {
"default": () => (/* binding */ build_module)
});
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: external ["wp","element"]
const external_wp_element_namespaceObject = window["wp"]["element"];
;// CONCATENATED MODULE: external ["wp","data"]
@@ -169,8 +167,9 @@ const external_wp_url_namespaceObject = window["wp"]["url"];
const external_wp_components_namespaceObject = window["wp"]["components"];
;// CONCATENATED MODULE: external ["wp","blocks"]
const external_wp_blocks_namespaceObject = window["wp"]["blocks"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/server-side-render/build-module/server-side-render.js
-
/**
* External dependencies
*/
@@ -186,6 +185,8 @@ const external_wp_blocks_namespaceObject = window["wp"]["blocks"];
+
+
const EMPTY_OBJECT = {};
function rendererPath(block, attributes = null, urlQueryArgs = {}) {
return (0,external_wp_url_namespaceObject.addQueryArgs)(`/wp/v2/block-renderer/${block}`, {
@@ -223,9 +224,10 @@ function removeBlockSupportAttributes(attributes) {
function DefaultEmptyResponsePlaceholder({
className
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- className: className
- }, (0,external_wp_i18n_namespaceObject.__)('Block rendered as empty.'));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ className: className,
+ children: (0,external_wp_i18n_namespaceObject.__)('Block rendered as empty.')
+ });
}
function DefaultErrorResponsePlaceholder({
response,
@@ -234,31 +236,35 @@ function DefaultErrorResponsePlaceholder({
const errorMessage = (0,external_wp_i18n_namespaceObject.sprintf)(
// translators: %s: error message describing the problem
(0,external_wp_i18n_namespaceObject.__)('Error loading block: %s'), response.errorMsg);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- className: className
- }, errorMessage);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ className: className,
+ children: errorMessage
+ });
}
function DefaultLoadingResponsePlaceholder({
children,
showLoader
}) {
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
style: {
position: 'relative'
- }
- }, showLoader && (0,external_React_namespaceObject.createElement)("div", {
- style: {
- position: 'absolute',
- top: '50%',
- left: '50%',
- marginTop: '-9px',
- marginLeft: '-9px'
- }
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null)), (0,external_React_namespaceObject.createElement)("div", {
- style: {
- opacity: showLoader ? '0.3' : 1
- }
- }, children));
+ },
+ children: [showLoader && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ style: {
+ position: 'absolute',
+ top: '50%',
+ left: '50%',
+ marginTop: '-9px',
+ marginLeft: '-9px'
+ },
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ style: {
+ opacity: showLoader ? '0.3' : 1
+ },
+ children: children
+ })]
+ });
}
function ServerSideRender(props) {
const {
@@ -272,7 +278,7 @@ function ServerSideRender(props) {
ErrorResponsePlaceholder = DefaultErrorResponsePlaceholder,
LoadingResponsePlaceholder = DefaultLoadingResponsePlaceholder
} = props;
- const isMountedRef = (0,external_wp_element_namespaceObject.useRef)(true);
+ const isMountedRef = (0,external_wp_element_namespaceObject.useRef)(false);
const [showLoader, setShowLoader] = (0,external_wp_element_namespaceObject.useState)(false);
const fetchRequestRef = (0,external_wp_element_namespaceObject.useRef)();
const [response, setResponse] = (0,external_wp_element_namespaceObject.useState)(null);
@@ -284,6 +290,11 @@ function ServerSideRender(props) {
return;
}
setIsLoading(true);
+
+ // Schedule showing the Spinner after 1 second.
+ const timeout = setTimeout(() => {
+ setShowLoader(true);
+ }, 1000);
let sanitizedAttributes = attributes && (0,external_wp_blocks_namespaceObject.__experimentalSanitizeBlockAttributes)(block, attributes);
if (skipBlockSupportAttributes) {
sanitizedAttributes = removeBlockSupportAttributes(sanitizedAttributes);
@@ -318,6 +329,9 @@ function ServerSideRender(props) {
}).finally(() => {
if (isMountedRef.current && fetchRequest === fetchRequestRef.current) {
setIsLoading(false);
+ // Cancel the timeout to show the Spinner.
+ setShowLoader(false);
+ clearTimeout(timeout);
}
});
return fetchRequest;
@@ -326,8 +340,11 @@ function ServerSideRender(props) {
// When the component unmounts, set isMountedRef to false. This will
// let the async fetch callbacks know when to stop.
- (0,external_wp_element_namespaceObject.useEffect)(() => () => {
- isMountedRef.current = false;
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
+ isMountedRef.current = true;
+ return () => {
+ isMountedRef.current = false;
+ };
}, []);
(0,external_wp_element_namespaceObject.useEffect)(() => {
// Don't debounce the first fetch. This ensures that the first render
@@ -338,50 +355,37 @@ function ServerSideRender(props) {
debouncedFetchData();
}
});
-
- /**
- * Effect to handle showing the loading placeholder.
- * Show it only if there is no previous response or
- * the request takes more than one second.
- */
- (0,external_wp_element_namespaceObject.useEffect)(() => {
- if (!isLoading) {
- return;
- }
- const timeout = setTimeout(() => {
- setShowLoader(true);
- }, 1000);
- return () => clearTimeout(timeout);
- }, [isLoading]);
const hasResponse = !!response;
const hasEmptyResponse = response === '';
const hasError = response?.error;
if (isLoading) {
- return (0,external_React_namespaceObject.createElement)(LoadingResponsePlaceholder, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LoadingResponsePlaceholder, {
...props,
- showLoader: showLoader
- }, hasResponse && (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, {
- className: className
- }, response));
+ showLoader: showLoader,
+ children: hasResponse && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
+ className: className,
+ children: response
+ })
+ });
}
if (hasEmptyResponse || !hasResponse) {
- return (0,external_React_namespaceObject.createElement)(EmptyResponsePlaceholder, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EmptyResponsePlaceholder, {
...props
});
}
if (hasError) {
- return (0,external_React_namespaceObject.createElement)(ErrorResponsePlaceholder, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ErrorResponsePlaceholder, {
response: response,
...props
});
}
- return (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, {
- className: className
- }, response);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
+ className: className,
+ children: response
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/server-side-render/build-module/index.js
-
/**
* WordPress dependencies
*/
@@ -396,6 +400,7 @@ function ServerSideRender(props) {
/**
* Constants
*/
+
const build_module_EMPTY_OBJECT = {};
const ExportedServerSideRender = (0,external_wp_data_namespaceObject.withSelect)(select => {
// FIXME: @wordpress/server-side-render should not depend on @wordpress/editor.
@@ -429,7 +434,7 @@ const ExportedServerSideRender = (0,external_wp_data_namespaceObject.withSelect)
...urlQueryArgs
};
}, [currentPostId, urlQueryArgs]);
- return (0,external_React_namespaceObject.createElement)(ServerSideRender, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ServerSideRender, {
urlQueryArgs: newUrlQueryArgs,
...props
});
diff --git a/wp-includes/js/dist/server-side-render.min.js b/wp-includes/js/dist/server-side-render.min.js
index 9c4e9b4..0d5e14c 100644
--- a/wp-includes/js/dist/server-side-render.min.js
+++ b/wp-includes/js/dist/server-side-render.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-(()=>{"use strict";var e={7734:e=>{e.exports=function e(r,t){if(r===t)return!0;if(r&&t&&"object"==typeof r&&"object"==typeof t){if(r.constructor!==t.constructor)return!1;var n,o,s;if(Array.isArray(r)){if((n=r.length)!=t.length)return!1;for(o=n;0!=o--;)if(!e(r[o],t[o]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(o of r.entries())if(!t.has(o[0]))return!1;for(o of r.entries())if(!e(o[1],t.get(o[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(o of r.entries())if(!t.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(r)&&ArrayBuffer.isView(t)){if((n=r.length)!=t.length)return!1;for(o=n;0!=o--;)if(r[o]!==t[o])return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if((n=(s=Object.keys(r)).length)!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(t,s[o]))return!1;for(o=n;0!=o--;){var u=s[o];if(!e(r[u],t[u]))return!1}return!0}return r!=r&&t!=t}}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var s=r[n]={exports:{}};return e[n](s,s.exports,t),s.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var n={};(()=>{t.d(n,{default:()=>b});const e=window.React,r=window.wp.element,o=window.wp.data;var s=t(7734),u=t.n(s);const i=window.wp.compose,c=window.wp.i18n,a=window.wp.apiFetch;var l=t.n(a);const f=window.wp.url,p=window.wp.components,d=window.wp.blocks,w={};function m({className:r}){return(0,e.createElement)(p.Placeholder,{className:r},(0,c.__)("Block rendered as empty."))}function y({response:r,className:t}){const n=(0,c.sprintf)((0,c.__)("Error loading block: %s"),r.errorMsg);return(0,e.createElement)(p.Placeholder,{className:t},n)}function g({children:r,showLoader:t}){return(0,e.createElement)("div",{style:{position:"relative"}},t&&(0,e.createElement)("div",{style:{position:"absolute",top:"50%",left:"50%",marginTop:"-9px",marginLeft:"-9px"}},(0,e.createElement)(p.Spinner,null)),(0,e.createElement)("div",{style:{opacity:t?"0.3":1}},r))}function h(t){const{attributes:n,block:o,className:s,httpMethod:c="GET",urlQueryArgs:a,skipBlockSupportAttributes:p=!1,EmptyResponsePlaceholder:h=m,ErrorResponsePlaceholder:v=y,LoadingResponsePlaceholder:b=g}=t,E=(0,r.useRef)(!0),[S,O]=(0,r.useState)(!1),P=(0,r.useRef)(),[k,x]=(0,r.useState)(null),A=(0,i.usePrevious)(t),[R,j]=(0,r.useState)(!1);function M(){var e,r;if(!E.current)return;j(!0);let t=n&&(0,d.__experimentalSanitizeBlockAttributes)(o,n);p&&(t=function(e){const{backgroundColor:r,borderColor:t,fontFamily:n,fontSize:o,gradient:s,textColor:u,className:i,...c}=e,{border:a,color:l,elements:f,spacing:p,typography:d,...m}=e?.style||w;return{...c,style:m}}(t));const s="POST"===c,u=s?null:null!==(e=t)&&void 0!==e?e:null,i=function(e,r=null,t={}){return(0,f.addQueryArgs)(`/wp/v2/block-renderer/${e}`,{context:"edit",...null!==r?{attributes:r}:{},...t})}(o,u,a),m=s?{attributes:null!==(r=t)&&void 0!==r?r:null}:null,y=P.current=l()({path:i,data:m,method:s?"POST":"GET"}).then((e=>{E.current&&y===P.current&&e&&x(e.rendered)})).catch((e=>{E.current&&y===P.current&&x({error:!0,errorMsg:e.message})})).finally((()=>{E.current&&y===P.current&&j(!1)}));return y}const T=(0,i.useDebounce)(M,500);(0,r.useEffect)((()=>()=>{E.current=!1}),[]),(0,r.useEffect)((()=>{void 0===A?M():u()(A,t)||T()})),(0,r.useEffect)((()=>{if(!R)return;const e=setTimeout((()=>{O(!0)}),1e3);return()=>clearTimeout(e)}),[R]);const _=!!k,N=""===k,z=k?.error;return R?(0,e.createElement)(b,{...t,showLoader:S},_&&(0,e.createElement)(r.RawHTML,{className:s},k)):N||!_?(0,e.createElement)(h,{...t}):z?(0,e.createElement)(v,{response:k,...t}):(0,e.createElement)(r.RawHTML,{className:s},k)}const v={},b=(0,o.withSelect)((e=>{const r=e("core/editor");if(r){const e=r.getCurrentPostId();if(e&&"number"==typeof e)return{currentPostId:e}}return v}))((({urlQueryArgs:t=v,currentPostId:n,...o})=>{const s=(0,r.useMemo)((()=>n?{post_id:n,...t}:t),[n,t]);return(0,e.createElement)(h,{urlQueryArgs:s,...o})}))})(),(window.wp=window.wp||{}).serverSideRender=n.default})(); \ No newline at end of file
+(()=>{"use strict";var e={7734:e=>{e.exports=function e(r,t){if(r===t)return!0;if(r&&t&&"object"==typeof r&&"object"==typeof t){if(r.constructor!==t.constructor)return!1;var n,o,s;if(Array.isArray(r)){if((n=r.length)!=t.length)return!1;for(o=n;0!=o--;)if(!e(r[o],t[o]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(o of r.entries())if(!t.has(o[0]))return!1;for(o of r.entries())if(!e(o[1],t.get(o[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(o of r.entries())if(!t.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(r)&&ArrayBuffer.isView(t)){if((n=r.length)!=t.length)return!1;for(o=n;0!=o--;)if(r[o]!==t[o])return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if((n=(s=Object.keys(r)).length)!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(t,s[o]))return!1;for(o=n;0!=o--;){var i=s[o];if(!e(r[i],t[i]))return!1}return!0}return r!=r&&t!=t}}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var s=r[n]={exports:{}};return e[n](s,s.exports,t),s.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var n={};(()=>{t.d(n,{default:()=>b});const e=window.wp.element,r=window.wp.data;var o=t(7734),s=t.n(o);const i=window.wp.compose,u=window.wp.i18n,c=window.wp.apiFetch;var l=t.n(c);const a=window.wp.url,f=window.wp.components,d=window.wp.blocks,p=window.ReactJSXRuntime,w={};function h({className:e}){return(0,p.jsx)(f.Placeholder,{className:e,children:(0,u.__)("Block rendered as empty.")})}function y({response:e,className:r}){const t=(0,u.sprintf)((0,u.__)("Error loading block: %s"),e.errorMsg);return(0,p.jsx)(f.Placeholder,{className:r,children:t})}function g({children:e,showLoader:r}){return(0,p.jsxs)("div",{style:{position:"relative"},children:[r&&(0,p.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",marginTop:"-9px",marginLeft:"-9px"},children:(0,p.jsx)(f.Spinner,{})}),(0,p.jsx)("div",{style:{opacity:r?"0.3":1},children:e})]})}function m(r){const{attributes:t,block:n,className:o,httpMethod:u="GET",urlQueryArgs:c,skipBlockSupportAttributes:f=!1,EmptyResponsePlaceholder:m=h,ErrorResponsePlaceholder:v=y,LoadingResponsePlaceholder:b=g}=r,x=(0,e.useRef)(!1),[j,S]=(0,e.useState)(!1),O=(0,e.useRef)(),[P,k]=(0,e.useState)(null),R=(0,i.usePrevious)(r),[A,M]=(0,e.useState)(!1);function T(){var e,r;if(!x.current)return;M(!0);const o=setTimeout((()=>{S(!0)}),1e3);let s=t&&(0,d.__experimentalSanitizeBlockAttributes)(n,t);f&&(s=function(e){const{backgroundColor:r,borderColor:t,fontFamily:n,fontSize:o,gradient:s,textColor:i,className:u,...c}=e,{border:l,color:a,elements:f,spacing:d,typography:p,...h}=e?.style||w;return{...c,style:h}}(s));const i="POST"===u,p=i?null:null!==(e=s)&&void 0!==e?e:null,h=function(e,r=null,t={}){return(0,a.addQueryArgs)(`/wp/v2/block-renderer/${e}`,{context:"edit",...null!==r?{attributes:r}:{},...t})}(n,p,c),y=i?{attributes:null!==(r=s)&&void 0!==r?r:null}:null,g=O.current=l()({path:h,data:y,method:i?"POST":"GET"}).then((e=>{x.current&&g===O.current&&e&&k(e.rendered)})).catch((e=>{x.current&&g===O.current&&k({error:!0,errorMsg:e.message})})).finally((()=>{x.current&&g===O.current&&(M(!1),S(!1),clearTimeout(o))}));return g}const _=(0,i.useDebounce)(T,500);(0,e.useEffect)((()=>(x.current=!0,()=>{x.current=!1})),[]),(0,e.useEffect)((()=>{void 0===R?T():s()(R,r)||_()}));const E=!!P,N=""===P,z=P?.error;return A?(0,p.jsx)(b,{...r,showLoader:j,children:E&&(0,p.jsx)(e.RawHTML,{className:o,children:P})}):N||!E?(0,p.jsx)(m,{...r}):z?(0,p.jsx)(v,{response:P,...r}):(0,p.jsx)(e.RawHTML,{className:o,children:P})}const v={},b=(0,r.withSelect)((e=>{const r=e("core/editor");if(r){const e=r.getCurrentPostId();if(e&&"number"==typeof e)return{currentPostId:e}}return v}))((({urlQueryArgs:r=v,currentPostId:t,...n})=>{const o=(0,e.useMemo)((()=>t?{post_id:t,...r}:r),[t,r]);return(0,p.jsx)(m,{urlQueryArgs:o,...n})}))})(),(window.wp=window.wp||{}).serverSideRender=n.default})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/style-engine.js b/wp-includes/js/dist/style-engine.js
index 6d2a32b..8f7250d 100644
--- a/wp-includes/js/dist/style-engine.js
+++ b/wp-includes/js/dist/style-engine.js
@@ -826,33 +826,27 @@ const backgroundImage = {
name: 'backgroundImage',
generate: (style, options) => {
const _backgroundImage = style?.background?.backgroundImage;
- const _backgroundSize = style?.background?.backgroundSize;
- const styleRules = [];
- if (!_backgroundImage) {
- return styleRules;
- }
- if (_backgroundImage?.source === 'file' && _backgroundImage?.url) {
- styleRules.push({
+ if (typeof _backgroundImage === 'object' && _backgroundImage?.url) {
+ return [{
selector: options.selector,
key: 'backgroundImage',
// Passed `url` may already be encoded. To prevent double encoding, decodeURI is executed to revert to the original string.
value: `url( '${encodeURI(safeDecodeURI(_backgroundImage.url))}' )`
- });
+ }];
}
- // If no background size is set, but an image is, default to cover.
- if (_backgroundSize === undefined) {
- styleRules.push({
- selector: options.selector,
- key: 'backgroundSize',
- value: 'cover'
- });
+ /*
+ * If the background image is a string, it could already contain a url() function,
+ * or have a linear-gradient value.
+ */
+ if (typeof _backgroundImage === 'string') {
+ return generateRule(style, options, ['background', 'backgroundImage'], 'backgroundImage');
}
- return styleRules;
+ return [];
}
};
const backgroundPosition = {
- name: 'backgroundRepeat',
+ name: 'backgroundPosition',
generate: (style, options) => {
return generateRule(style, options, ['background', 'backgroundPosition'], 'backgroundPosition');
}
@@ -866,23 +860,7 @@ const backgroundRepeat = {
const backgroundSize = {
name: 'backgroundSize',
generate: (style, options) => {
- const _backgroundSize = style?.background?.backgroundSize;
- const _backgroundPosition = style?.background?.backgroundPosition;
- const styleRules = [];
- if (_backgroundSize === undefined) {
- return styleRules;
- }
- styleRules.push(...generateRule(style, options, ['background', 'backgroundSize'], 'backgroundSize'));
-
- // If background size is set to contain, but no position is set, default to center.
- if (_backgroundSize === 'contain' && _backgroundPosition === undefined) {
- styleRules.push({
- selector: options.selector,
- key: 'backgroundPosition',
- value: 'center'
- });
- }
- return styleRules;
+ return generateRule(style, options, ['background', 'backgroundSize'], 'backgroundSize');
}
};
/* harmony default export */ const styles_background = ([backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize]);
diff --git a/wp-includes/js/dist/style-engine.min.js b/wp-includes/js/dist/style-engine.min.js
index 319988d..e01470f 100644
--- a/wp-includes/js/dist/style-engine.min.js
+++ b/wp-includes/js/dist/style-engine.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{compileCSS:()=>w,getCSSRules:()=>R});var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function r(e){return e.toLowerCase()}var o=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],a=/[^A-Z0-9]+/gi;function i(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function c(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,c=void 0===n?o:n,u=t.stripRegexp,g=void 0===u?a:u,d=t.transform,l=void 0===d?r:d,s=t.delimiter,p=void 0===s?" ":s,f=i(i(e,c,"$1\0$2"),g,"\0"),m=0,y=f.length;"\0"===f.charAt(m);)m++;for(;"\0"===f.charAt(y-1);)y--;return f.slice(m,y).split("\0").map(l).join(p)}(e,n({delimiter:"."},t))}function u(e,t){return void 0===t&&(t={}),c(e,n({delimiter:"-"},t))}const g="var:",d="|",l="--",s=(e,t)=>{let n=e;return t.forEach((e=>{n=n?.[e]})),n};function p(e,t,n,r){const o=s(e,n);return o?[{selector:t?.selector,key:r,value:m(o)}]:[]}function f(e,t,n,r,o=["top","right","bottom","left"]){const a=s(e,n);if(!a)return[];const i=[];if("string"==typeof a)i.push({selector:t?.selector,key:r.default,value:a});else{const e=o.reduce(((e,n)=>{const o=m(s(a,[n]));return o&&e.push({selector:t?.selector,key:r?.individual.replace("%s",y(n)),value:o}),e}),[]);i.push(...e)}return i}function m(e){if("string"==typeof e&&e.startsWith(g)){return`var(--wp--${e.slice(g.length).split(d).map((e=>u(e,{splitRegexp:[/([a-z0-9])([A-Z])/g,/([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]}))).join(l)})`}return e}function y(e){const[t,...n]=e;return t.toUpperCase()+n.join("")}function b(e){try{return decodeURI(e)}catch(t){return e}}function h(e){return(t,n)=>p(t,n,e,function(e){const[t,...n]=e;return t.toLowerCase()+n.map(y).join("")}(e))}function k(e){return(t,n)=>["color","style","width"].flatMap((r=>h(["border",e,r])(t,n)))}const v={name:"radius",generate:(e,t)=>f(e,t,["border","radius"],{default:"borderRadius",individual:"border%sRadius"},["topLeft","topRight","bottomLeft","bottomRight"])},S=[...[{name:"color",generate:h(["border","color"])},{name:"style",generate:h(["border","style"])},{name:"width",generate:h(["border","width"])},v,{name:"borderTop",generate:k("top")},{name:"borderRight",generate:k("right")},{name:"borderBottom",generate:k("bottom")},{name:"borderLeft",generate:k("left")}],...[{name:"text",generate:(e,t)=>p(e,t,["color","text"],"color")},{name:"gradient",generate:(e,t)=>p(e,t,["color","gradient"],"background")},{name:"background",generate:(e,t)=>p(e,t,["color","background"],"backgroundColor")}],...[{name:"minHeight",generate:(e,t)=>p(e,t,["dimensions","minHeight"],"minHeight")},{name:"aspectRatio",generate:(e,t)=>p(e,t,["dimensions","aspectRatio"],"aspectRatio")}],...[{name:"color",generate:(e,t,n=["outline","color"],r="outlineColor")=>p(e,t,n,r)},{name:"style",generate:(e,t,n=["outline","style"],r="outlineStyle")=>p(e,t,n,r)},{name:"offset",generate:(e,t,n=["outline","offset"],r="outlineOffset")=>p(e,t,n,r)},{name:"width",generate:(e,t,n=["outline","width"],r="outlineWidth")=>p(e,t,n,r)}],...[{name:"margin",generate:(e,t)=>f(e,t,["spacing","margin"],{default:"margin",individual:"margin%s"})},{name:"padding",generate:(e,t)=>f(e,t,["spacing","padding"],{default:"padding",individual:"padding%s"})}],...[{name:"fontFamily",generate:(e,t)=>p(e,t,["typography","fontFamily"],"fontFamily")},{name:"fontSize",generate:(e,t)=>p(e,t,["typography","fontSize"],"fontSize")},{name:"fontStyle",generate:(e,t)=>p(e,t,["typography","fontStyle"],"fontStyle")},{name:"fontWeight",generate:(e,t)=>p(e,t,["typography","fontWeight"],"fontWeight")},{name:"letterSpacing",generate:(e,t)=>p(e,t,["typography","letterSpacing"],"letterSpacing")},{name:"lineHeight",generate:(e,t)=>p(e,t,["typography","lineHeight"],"lineHeight")},{name:"textColumns",generate:(e,t)=>p(e,t,["typography","textColumns"],"columnCount")},{name:"textDecoration",generate:(e,t)=>p(e,t,["typography","textDecoration"],"textDecoration")},{name:"textTransform",generate:(e,t)=>p(e,t,["typography","textTransform"],"textTransform")},{name:"writingMode",generate:(e,t)=>p(e,t,["typography","writingMode"],"writingMode")}],...[{name:"shadow",generate:(e,t)=>p(e,t,["shadow"],"boxShadow")}],...[{name:"backgroundImage",generate:(e,t)=>{const n=e?.background?.backgroundImage,r=e?.background?.backgroundSize,o=[];return n?("file"===n?.source&&n?.url&&o.push({selector:t.selector,key:"backgroundImage",value:`url( '${encodeURI(b(n.url))}' )`}),void 0===r&&o.push({selector:t.selector,key:"backgroundSize",value:"cover"}),o):o}},{name:"backgroundRepeat",generate:(e,t)=>p(e,t,["background","backgroundPosition"],"backgroundPosition")},{name:"backgroundRepeat",generate:(e,t)=>p(e,t,["background","backgroundRepeat"],"backgroundRepeat")},{name:"backgroundSize",generate:(e,t)=>{const n=e?.background?.backgroundSize,r=e?.background?.backgroundPosition,o=[];return void 0===n||(o.push(...p(e,t,["background","backgroundSize"],"backgroundSize")),"contain"===n&&void 0===r&&o.push({selector:t.selector,key:"backgroundPosition",value:"center"})),o}}]];function w(e,t={}){const n=R(e,t);if(!t?.selector){const e=[];return n.forEach((t=>{e.push(`${u(t.key)}: ${t.value};`)})),e.join(" ")}const r=n.reduce(((e,t)=>{const{selector:n}=t;return n?(e[n]||(e[n]=[]),e[n].push(t),e):e}),{});return Object.keys(r).reduce(((e,t)=>(e.push(`${t} { ${r[t].map((e=>`${u(e.key)}: ${e.value};`)).join(" ")} }`),e)),[]).join("\n")}function R(e,t={}){const n=[];return S.forEach((r=>{"function"==typeof r.generate&&n.push(...r.generate(e,t))})),n}(window.wp=window.wp||{}).styleEngine=t})(); \ No newline at end of file
+(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{compileCSS:()=>w,getCSSRules:()=>R});var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function r(e){return e.toLowerCase()}var o=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],a=/[^A-Z0-9]+/gi;function i(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function g(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,g=void 0===n?o:n,c=t.stripRegexp,u=void 0===c?a:c,d=t.transform,l=void 0===d?r:d,s=t.delimiter,p=void 0===s?" ":s,f=i(i(e,g,"$1\0$2"),u,"\0"),m=0,y=f.length;"\0"===f.charAt(m);)m++;for(;"\0"===f.charAt(y-1);)y--;return f.slice(m,y).split("\0").map(l).join(p)}(e,n({delimiter:"."},t))}function c(e,t){return void 0===t&&(t={}),g(e,n({delimiter:"-"},t))}const u="var:",d="|",l="--",s=(e,t)=>{let n=e;return t.forEach((e=>{n=n?.[e]})),n};function p(e,t,n,r){const o=s(e,n);return o?[{selector:t?.selector,key:r,value:m(o)}]:[]}function f(e,t,n,r,o=["top","right","bottom","left"]){const a=s(e,n);if(!a)return[];const i=[];if("string"==typeof a)i.push({selector:t?.selector,key:r.default,value:a});else{const e=o.reduce(((e,n)=>{const o=m(s(a,[n]));return o&&e.push({selector:t?.selector,key:r?.individual.replace("%s",y(n)),value:o}),e}),[]);i.push(...e)}return i}function m(e){if("string"==typeof e&&e.startsWith(u)){return`var(--wp--${e.slice(u.length).split(d).map((e=>c(e,{splitRegexp:[/([a-z0-9])([A-Z])/g,/([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]}))).join(l)})`}return e}function y(e){const[t,...n]=e;return t.toUpperCase()+n.join("")}function b(e){try{return decodeURI(e)}catch(t){return e}}function h(e){return(t,n)=>p(t,n,e,function(e){const[t,...n]=e;return t.toLowerCase()+n.map(y).join("")}(e))}function k(e){return(t,n)=>["color","style","width"].flatMap((r=>h(["border",e,r])(t,n)))}const v={name:"radius",generate:(e,t)=>f(e,t,["border","radius"],{default:"borderRadius",individual:"border%sRadius"},["topLeft","topRight","bottomLeft","bottomRight"])},S=[...[{name:"color",generate:h(["border","color"])},{name:"style",generate:h(["border","style"])},{name:"width",generate:h(["border","width"])},v,{name:"borderTop",generate:k("top")},{name:"borderRight",generate:k("right")},{name:"borderBottom",generate:k("bottom")},{name:"borderLeft",generate:k("left")}],...[{name:"text",generate:(e,t)=>p(e,t,["color","text"],"color")},{name:"gradient",generate:(e,t)=>p(e,t,["color","gradient"],"background")},{name:"background",generate:(e,t)=>p(e,t,["color","background"],"backgroundColor")}],...[{name:"minHeight",generate:(e,t)=>p(e,t,["dimensions","minHeight"],"minHeight")},{name:"aspectRatio",generate:(e,t)=>p(e,t,["dimensions","aspectRatio"],"aspectRatio")}],...[{name:"color",generate:(e,t,n=["outline","color"],r="outlineColor")=>p(e,t,n,r)},{name:"style",generate:(e,t,n=["outline","style"],r="outlineStyle")=>p(e,t,n,r)},{name:"offset",generate:(e,t,n=["outline","offset"],r="outlineOffset")=>p(e,t,n,r)},{name:"width",generate:(e,t,n=["outline","width"],r="outlineWidth")=>p(e,t,n,r)}],...[{name:"margin",generate:(e,t)=>f(e,t,["spacing","margin"],{default:"margin",individual:"margin%s"})},{name:"padding",generate:(e,t)=>f(e,t,["spacing","padding"],{default:"padding",individual:"padding%s"})}],...[{name:"fontFamily",generate:(e,t)=>p(e,t,["typography","fontFamily"],"fontFamily")},{name:"fontSize",generate:(e,t)=>p(e,t,["typography","fontSize"],"fontSize")},{name:"fontStyle",generate:(e,t)=>p(e,t,["typography","fontStyle"],"fontStyle")},{name:"fontWeight",generate:(e,t)=>p(e,t,["typography","fontWeight"],"fontWeight")},{name:"letterSpacing",generate:(e,t)=>p(e,t,["typography","letterSpacing"],"letterSpacing")},{name:"lineHeight",generate:(e,t)=>p(e,t,["typography","lineHeight"],"lineHeight")},{name:"textColumns",generate:(e,t)=>p(e,t,["typography","textColumns"],"columnCount")},{name:"textDecoration",generate:(e,t)=>p(e,t,["typography","textDecoration"],"textDecoration")},{name:"textTransform",generate:(e,t)=>p(e,t,["typography","textTransform"],"textTransform")},{name:"writingMode",generate:(e,t)=>p(e,t,["typography","writingMode"],"writingMode")}],...[{name:"shadow",generate:(e,t)=>p(e,t,["shadow"],"boxShadow")}],...[{name:"backgroundImage",generate:(e,t)=>{const n=e?.background?.backgroundImage;return"object"==typeof n&&n?.url?[{selector:t.selector,key:"backgroundImage",value:`url( '${encodeURI(b(n.url))}' )`}]:"string"==typeof n?p(e,t,["background","backgroundImage"],"backgroundImage"):[]}},{name:"backgroundPosition",generate:(e,t)=>p(e,t,["background","backgroundPosition"],"backgroundPosition")},{name:"backgroundRepeat",generate:(e,t)=>p(e,t,["background","backgroundRepeat"],"backgroundRepeat")},{name:"backgroundSize",generate:(e,t)=>p(e,t,["background","backgroundSize"],"backgroundSize")}]];function w(e,t={}){const n=R(e,t);if(!t?.selector){const e=[];return n.forEach((t=>{e.push(`${c(t.key)}: ${t.value};`)})),e.join(" ")}const r=n.reduce(((e,t)=>{const{selector:n}=t;return n?(e[n]||(e[n]=[]),e[n].push(t),e):e}),{});return Object.keys(r).reduce(((e,t)=>(e.push(`${t} { ${r[t].map((e=>`${c(e.key)}: ${e.value};`)).join(" ")} }`),e)),[]).join("\n")}function R(e,t={}){const n=[];return S.forEach((r=>{"function"==typeof r.generate&&n.push(...r.generate(e,t))})),n}(window.wp=window.wp||{}).styleEngine=t})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/url.js b/wp-includes/js/dist/url.js
index 37f5a40..f87a714 100644
--- a/wp-includes/js/dist/url.js
+++ b/wp-includes/js/dist/url.js
@@ -891,8 +891,12 @@ function getPathAndQueryString(url) {
const path = getPath(url);
const queryString = getQueryString(url);
let value = '/';
- if (path) value += path;
- if (queryString) value += `?${queryString}`;
+ if (path) {
+ value += path;
+ }
+ if (queryString) {
+ value += `?${queryString}`;
+ }
return value;
}
@@ -1326,6 +1330,9 @@ function cleanForSlug(string) {
*/
function getFilename(url) {
let filename;
+ if (!url) {
+ return;
+ }
try {
filename = new URL(url, 'http://example.com').pathname.split('/').pop();
} catch (error) {}
diff --git a/wp-includes/js/dist/url.min.js b/wp-includes/js/dist/url.min.js
index 85d4f53..8078623 100644
--- a/wp-includes/js/dist/url.min.js
+++ b/wp-includes/js/dist/url.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-(()=>{var e={9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},r=Object.keys(t).join("|"),n=new RegExp(r,"g"),o=new RegExp(r,"");function i(e){return t[e]}var u=function(e){return e.replace(n,i)};e.exports=u,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=u}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";function e(e){try{return new URL(e),!0}catch{return!1}}r.r(n),r.d(n,{addQueryArgs:()=>y,buildQueryString:()=>f,cleanForSlug:()=>j,filterURLForDisplay:()=>R,getAuthority:()=>c,getFilename:()=>C,getFragment:()=>O,getPath:()=>s,getPathAndQueryString:()=>d,getProtocol:()=>i,getQueryArg:()=>U,getQueryArgs:()=>m,getQueryString:()=>p,hasQueryArg:()=>E,isEmail:()=>o,isURL:()=>e,isValidAuthority:()=>a,isValidFragment:()=>A,isValidPath:()=>l,isValidProtocol:()=>u,isValidQueryString:()=>g,normalizePath:()=>P,prependHTTP:()=>b,prependHTTPS:()=>$,removeQueryArgs:()=>I,safeDecodeURI:()=>w,safeDecodeURIComponent:()=>h});const t=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i;function o(e){return t.test(e)}function i(e){const t=/^([^\s:]+:)/.exec(e);if(t)return t[1]}function u(e){return!!e&&/^[a-z\-.\+]+[0-9]*:$/i.test(e)}function c(e){const t=/^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function a(e){return!!e&&/^[^\s#?]+$/.test(e)}function s(e){const t=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function l(e){return!!e&&/^[^\s#?]+$/.test(e)}function p(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}function f(e){let t="";const r=Object.entries(e);let n;for(;n=r.shift();){let[e,o]=n;if(Array.isArray(o)||o&&o.constructor===Object){const t=Object.entries(o).reverse();for(const[n,o]of t)r.unshift([`${e}[${n}]`,o])}else void 0!==o&&(null===o&&(o=""),t+="&"+[e,o].map(encodeURIComponent).join("="))}return t.substr(1)}function g(e){return!!e&&/^[^\s#?\/]+$/.test(e)}function d(e){const t=s(e),r=p(e);let n="/";return t&&(n+=t),r&&(n+=`?${r}`),n}function O(e){const t=/^\S+?(#[^\s\?]*)/.exec(e);if(t)return t[1]}function A(e){return!!e&&/^#[^\s#?\/]*$/.test(e)}function h(e){try{return decodeURIComponent(e)}catch(t){return e}}function m(e){return(p(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[r,n=""]=t.split("=").filter(Boolean).map(h);if(r){!function(e,t,r){const n=t.length,o=n-1;for(let i=0;i<n;i++){let n=t[i];!n&&Array.isArray(e)&&(n=e.length.toString()),n=["__proto__","constructor","prototype"].includes(n)?n.toUpperCase():n;const u=!isNaN(Number(t[i+1]));e[n]=i===o?r:e[n]||(u?[]:{}),Array.isArray(e[n])&&!u&&(e[n]={...e[n]}),e=e[n]}}(e,r.replace(/\]/g,"").split("["),n)}return e}),Object.create(null))}function y(e="",t){if(!t||!Object.keys(t).length)return e;let r=e;const n=e.indexOf("?");return-1!==n&&(t=Object.assign(m(e),t),r=r.substr(0,n)),r+"?"+f(t)}function U(e,t){return m(e)[t]}function E(e,t){return void 0!==U(e,t)}function I(e,...t){const r=e.indexOf("?");if(-1===r)return e;const n=m(e),o=e.substr(0,r);t.forEach((e=>delete n[e]));const i=f(n);return i?o+"?"+i:o}const x=/^(?:[a-z]+:|#|\?|\.|\/)/i;function b(e){return e?(e=e.trim(),x.test(e)||o(e)?e:"http://"+e):e}function w(e){try{return decodeURI(e)}catch(t){return e}}function R(e,t=null){let r=e.replace(/^(?:https?:)\/\/(?:www\.)?/,"");r.match(/^[^\/]+\/$/)&&(r=r.replace("/",""));if(!t||r.length<=t||!r.match(/\/([^\/?]+)\.(?:[\w]+)(?=\?|$)/))return r;r=r.split("?")[0];const n=r.split("/"),o=n[n.length-1];if(o.length<=t)return"…"+r.slice(-t);const i=o.lastIndexOf("."),[u,c]=[o.slice(0,i),o.slice(i+1)],a=u.slice(-3)+"."+c;return o.slice(0,t-a.length-1)+"…"+a}var S=r(9681),v=r.n(S);function j(e){return e?v()(e).replace(/[\s\./]+/g,"-").replace(/[^\p{L}\p{N}_-]+/gu,"").toLowerCase().replace(/-+/g,"-").replace(/(^-+)|(-+$)/g,""):""}function C(e){let t;try{t=new URL(e,"http://example.com").pathname.split("/").pop()}catch(e){}if(t)return t}function P(e){const t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map((e=>e.split("="))).map((e=>e.map(decodeURIComponent))).sort(((e,t)=>e[0].localeCompare(t[0]))).map((e=>e.map(encodeURIComponent))).map((e=>e.join("="))).join("&"):n}function $(e){return e?e.startsWith("http://")?e:(e=b(e)).replace(/^http:/,"https:"):e}})(),(window.wp=window.wp||{}).url=n})(); \ No newline at end of file
+(()=>{var e={9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},r=Object.keys(t).join("|"),n=new RegExp(r,"g"),o=new RegExp(r,"");function i(e){return t[e]}var u=function(e){return e.replace(n,i)};e.exports=u,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=u}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";function e(e){try{return new URL(e),!0}catch{return!1}}r.r(n),r.d(n,{addQueryArgs:()=>y,buildQueryString:()=>f,cleanForSlug:()=>j,filterURLForDisplay:()=>w,getAuthority:()=>c,getFilename:()=>C,getFragment:()=>O,getPath:()=>s,getPathAndQueryString:()=>d,getProtocol:()=>i,getQueryArg:()=>U,getQueryArgs:()=>m,getQueryString:()=>p,hasQueryArg:()=>E,isEmail:()=>o,isURL:()=>e,isValidAuthority:()=>a,isValidFragment:()=>A,isValidPath:()=>l,isValidProtocol:()=>u,isValidQueryString:()=>g,normalizePath:()=>P,prependHTTP:()=>b,prependHTTPS:()=>$,removeQueryArgs:()=>I,safeDecodeURI:()=>v,safeDecodeURIComponent:()=>h});const t=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i;function o(e){return t.test(e)}function i(e){const t=/^([^\s:]+:)/.exec(e);if(t)return t[1]}function u(e){return!!e&&/^[a-z\-.\+]+[0-9]*:$/i.test(e)}function c(e){const t=/^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function a(e){return!!e&&/^[^\s#?]+$/.test(e)}function s(e){const t=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function l(e){return!!e&&/^[^\s#?]+$/.test(e)}function p(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}function f(e){let t="";const r=Object.entries(e);let n;for(;n=r.shift();){let[e,o]=n;if(Array.isArray(o)||o&&o.constructor===Object){const t=Object.entries(o).reverse();for(const[n,o]of t)r.unshift([`${e}[${n}]`,o])}else void 0!==o&&(null===o&&(o=""),t+="&"+[e,o].map(encodeURIComponent).join("="))}return t.substr(1)}function g(e){return!!e&&/^[^\s#?\/]+$/.test(e)}function d(e){const t=s(e),r=p(e);let n="/";return t&&(n+=t),r&&(n+=`?${r}`),n}function O(e){const t=/^\S+?(#[^\s\?]*)/.exec(e);if(t)return t[1]}function A(e){return!!e&&/^#[^\s#?\/]*$/.test(e)}function h(e){try{return decodeURIComponent(e)}catch(t){return e}}function m(e){return(p(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[r,n=""]=t.split("=").filter(Boolean).map(h);if(r){!function(e,t,r){const n=t.length,o=n-1;for(let i=0;i<n;i++){let n=t[i];!n&&Array.isArray(e)&&(n=e.length.toString()),n=["__proto__","constructor","prototype"].includes(n)?n.toUpperCase():n;const u=!isNaN(Number(t[i+1]));e[n]=i===o?r:e[n]||(u?[]:{}),Array.isArray(e[n])&&!u&&(e[n]={...e[n]}),e=e[n]}}(e,r.replace(/\]/g,"").split("["),n)}return e}),Object.create(null))}function y(e="",t){if(!t||!Object.keys(t).length)return e;let r=e;const n=e.indexOf("?");return-1!==n&&(t=Object.assign(m(e),t),r=r.substr(0,n)),r+"?"+f(t)}function U(e,t){return m(e)[t]}function E(e,t){return void 0!==U(e,t)}function I(e,...t){const r=e.indexOf("?");if(-1===r)return e;const n=m(e),o=e.substr(0,r);t.forEach((e=>delete n[e]));const i=f(n);return i?o+"?"+i:o}const x=/^(?:[a-z]+:|#|\?|\.|\/)/i;function b(e){return e?(e=e.trim(),x.test(e)||o(e)?e:"http://"+e):e}function v(e){try{return decodeURI(e)}catch(t){return e}}function w(e,t=null){let r=e.replace(/^(?:https?:)\/\/(?:www\.)?/,"");r.match(/^[^\/]+\/$/)&&(r=r.replace("/",""));if(!t||r.length<=t||!r.match(/\/([^\/?]+)\.(?:[\w]+)(?=\?|$)/))return r;r=r.split("?")[0];const n=r.split("/"),o=n[n.length-1];if(o.length<=t)return"…"+r.slice(-t);const i=o.lastIndexOf("."),[u,c]=[o.slice(0,i),o.slice(i+1)],a=u.slice(-3)+"."+c;return o.slice(0,t-a.length-1)+"…"+a}var R=r(9681),S=r.n(R);function j(e){return e?S()(e).replace(/[\s\./]+/g,"-").replace(/[^\p{L}\p{N}_-]+/gu,"").toLowerCase().replace(/-+/g,"-").replace(/(^-+)|(-+$)/g,""):""}function C(e){let t;if(e){try{t=new URL(e,"http://example.com").pathname.split("/").pop()}catch(e){}return t||void 0}}function P(e){const t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map((e=>e.split("="))).map((e=>e.map(decodeURIComponent))).sort(((e,t)=>e[0].localeCompare(t[0]))).map((e=>e.map(encodeURIComponent))).map((e=>e.join("="))).join("&"):n}function $(e){return e?e.startsWith("http://")?e:(e=b(e)).replace(/^http:/,"https:"):e}})(),(window.wp=window.wp||{}).url=n})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/vendor/react-dom.js b/wp-includes/js/dist/vendor/react-dom.js
index aadc619..a89c9ab 100644
--- a/wp-includes/js/dist/vendor/react-dom.js
+++ b/wp-includes/js/dist/vendor/react-dom.js
@@ -1,29869 +1,98 @@
-/**
- * @license React
- * react-dom.development.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
+/*
+ * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
+ * This devtool is neither made for production nor for readable output files.
+ * It uses "eval()" calls to create a separate source file in the browser devtools.
+ * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
+ * or disable the default devtool with "devtool: false".
+ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
-(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
- typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
- (global = global || self, factory(global.ReactDOM = {}, global.React));
-}(this, (function (exports, React) { 'use strict';
-
- var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
-
- var suppressWarning = false;
- function setSuppressWarning(newSuppressWarning) {
- {
- suppressWarning = newSuppressWarning;
- }
- } // In DEV, calls to console.warn and console.error get replaced
- // by calls to these methods by a Babel plugin.
- //
- // In PROD (or in packages without access to React internals),
- // they are left as they are instead.
-
- function warn(format) {
- {
- if (!suppressWarning) {
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
-
- printWarning('warn', format, args);
- }
- }
- }
- function error(format) {
- {
- if (!suppressWarning) {
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
- args[_key2 - 1] = arguments[_key2];
- }
-
- printWarning('error', format, args);
- }
- }
- }
-
- function printWarning(level, format, args) {
- // When changing this logic, you might want to also
- // update consoleWithStackDev.www.js as well.
- {
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
- var stack = ReactDebugCurrentFrame.getStackAddendum();
-
- if (stack !== '') {
- format += '%s';
- args = args.concat([stack]);
- } // eslint-disable-next-line react-internal/safe-string-coercion
-
-
- var argsWithFormat = args.map(function (item) {
- return String(item);
- }); // Careful: RN currently depends on this prefix
-
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
- // breaks IE9: https://github.com/facebook/react/issues/13610
- // eslint-disable-next-line react-internal/no-production-logging
-
- Function.prototype.apply.call(console[level], console, argsWithFormat);
- }
- }
-
- var FunctionComponent = 0;
- var ClassComponent = 1;
- var IndeterminateComponent = 2; // Before we know whether it is function or class
-
- var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
-
- var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
-
- var HostComponent = 5;
- var HostText = 6;
- var Fragment = 7;
- var Mode = 8;
- var ContextConsumer = 9;
- var ContextProvider = 10;
- var ForwardRef = 11;
- var Profiler = 12;
- var SuspenseComponent = 13;
- var MemoComponent = 14;
- var SimpleMemoComponent = 15;
- var LazyComponent = 16;
- var IncompleteClassComponent = 17;
- var DehydratedFragment = 18;
- var SuspenseListComponent = 19;
- var ScopeComponent = 21;
- var OffscreenComponent = 22;
- var LegacyHiddenComponent = 23;
- var CacheComponent = 24;
- var TracingMarkerComponent = 25;
-
- // -----------------------------------------------------------------------------
-
- var enableClientRenderFallbackOnTextMismatch = true; // TODO: Need to review this code one more time before landing
- // the react-reconciler package.
-
- var enableNewReconciler = false; // Support legacy Primer support on internal FB www
-
- var enableLazyContextPropagation = false; // FB-only usage. The new API has different semantics.
-
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
-
- var enableSuspenseAvoidThisFallback = false; // Enables unstable_avoidThisFallback feature in Fizz
- // React DOM Chopping Block
- //
- // Similar to main Chopping Block but only flags related to React DOM. These are
- // grouped because we will likely batch all of them into a single major release.
- // -----------------------------------------------------------------------------
- // Disable support for comment nodes as React DOM containers. Already disabled
- // in open source, but www codebase still relies on it. Need to remove.
-
- var disableCommentsAsDOMContainers = true; // Disable javascript: URL strings in href for XSS protection.
- // and client rendering, mostly to allow JSX attributes to apply to the custom
- // element's object properties instead of only HTML attributes.
- // https://github.com/facebook/react/issues/11347
-
- var enableCustomElementPropertySupport = false; // Disables children for <textarea> elements
- var warnAboutStringRefs = false; // -----------------------------------------------------------------------------
- // Debugging and DevTools
- // -----------------------------------------------------------------------------
- // Adds user timing marks for e.g. state updates, suspense, and work loop stuff,
- // for an experimental timeline tool.
-
- var enableSchedulingProfiler = true; // Helps identify side effects in render-phase lifecycle hooks and setState
-
- var enableProfilerTimer = true; // Record durations for commit and passive effects phases.
-
- var enableProfilerCommitHooks = true; // Phase param passed to onRender callback differentiates between an "update" and a "cascading-update".
-
- var allNativeEvents = new Set();
- /**
- * Mapping from registration name to event name
- */
-
-
- var registrationNameDependencies = {};
- /**
- * Mapping from lowercase registration names to the properly cased version,
- * used to warn in the case of missing event handlers. Available
- * only in true.
- * @type {Object}
- */
-
- var possibleRegistrationNames = {} ; // Trust the developer to only use possibleRegistrationNames in true
-
- function registerTwoPhaseEvent(registrationName, dependencies) {
- registerDirectEvent(registrationName, dependencies);
- registerDirectEvent(registrationName + 'Capture', dependencies);
- }
- function registerDirectEvent(registrationName, dependencies) {
- {
- if (registrationNameDependencies[registrationName]) {
- error('EventRegistry: More than one plugin attempted to publish the same ' + 'registration name, `%s`.', registrationName);
- }
- }
-
- registrationNameDependencies[registrationName] = dependencies;
-
- {
- var lowerCasedName = registrationName.toLowerCase();
- possibleRegistrationNames[lowerCasedName] = registrationName;
-
- if (registrationName === 'onDoubleClick') {
- possibleRegistrationNames.ondblclick = registrationName;
- }
- }
-
- for (var i = 0; i < dependencies.length; i++) {
- allNativeEvents.add(dependencies[i]);
- }
- }
-
- var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
-
- var hasOwnProperty = Object.prototype.hasOwnProperty;
-
- /*
- * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
- * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
- *
- * The functions in this module will throw an easier-to-understand,
- * easier-to-debug exception with a clear errors message message explaining the
- * problem. (Instead of a confusing exception thrown inside the implementation
- * of the `value` object).
- */
- // $FlowFixMe only called in DEV, so void return is not possible.
- function typeName(value) {
- {
- // toStringTag is needed for namespaced types like Temporal.Instant
- var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
- return type;
- }
- } // $FlowFixMe only called in DEV, so void return is not possible.
-
-
- function willCoercionThrow(value) {
- {
- try {
- testStringCoercion(value);
- return false;
- } catch (e) {
- return true;
- }
- }
- }
-
- function testStringCoercion(value) {
- // If you ended up here by following an exception call stack, here's what's
- // happened: you supplied an object or symbol value to React (as a prop, key,
- // DOM attribute, CSS property, string ref, etc.) and when React tried to
- // coerce it to a string using `'' + value`, an exception was thrown.
- //
- // The most common types that will cause this exception are `Symbol` instances
- // and Temporal objects like `Temporal.Instant`. But any object that has a
- // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
- // exception. (Library authors do this to prevent users from using built-in
- // numeric operators like `+` or comparison operators like `>=` because custom
- // methods are needed to perform accurate arithmetic or comparison.)
- //
- // To fix the problem, coerce this object or symbol value to a string before
- // passing it to React. The most reliable way is usually `String(value)`.
- //
- // To find which value is throwing, check the browser or debugger console.
- // Before this exception was thrown, there should be `console.error` output
- // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
- // problem and how that type was used: key, atrribute, input value prop, etc.
- // In most cases, this console output also shows the component and its
- // ancestor components where the exception happened.
- //
- // eslint-disable-next-line react-internal/safe-string-coercion
- return '' + value;
- }
-
- function checkAttributeStringCoercion(value, attributeName) {
- {
- if (willCoercionThrow(value)) {
- error('The provided `%s` attribute is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', attributeName, typeName(value));
-
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
- }
- }
- }
- function checkKeyStringCoercion(value) {
- {
- if (willCoercionThrow(value)) {
- error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
-
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
- }
- }
- }
- function checkPropStringCoercion(value, propName) {
- {
- if (willCoercionThrow(value)) {
- error('The provided `%s` prop is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', propName, typeName(value));
-
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
- }
- }
- }
- function checkCSSPropertyStringCoercion(value, propName) {
- {
- if (willCoercionThrow(value)) {
- error('The provided `%s` CSS property is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', propName, typeName(value));
-
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
- }
- }
- }
- function checkHtmlStringCoercion(value) {
- {
- if (willCoercionThrow(value)) {
- error('The provided HTML markup uses a value of unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
-
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
- }
- }
- }
- function checkFormFieldValueStringCoercion(value) {
- {
- if (willCoercionThrow(value)) {
- error('Form field values (value, checked, defaultValue, or defaultChecked props)' + ' must be strings, not %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
-
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
- }
- }
- }
-
- // A reserved attribute.
- // It is handled by React separately and shouldn't be written to the DOM.
- var RESERVED = 0; // A simple string attribute.
- // Attributes that aren't in the filter are presumed to have this type.
-
- var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called
- // "enumerated" attributes with "true" and "false" as possible values.
- // When true, it should be set to a "true" string.
- // When false, it should be set to a "false" string.
-
- var BOOLEANISH_STRING = 2; // A real boolean attribute.
- // When true, it should be present (set either to an empty string or its name).
- // When false, it should be omitted.
-
- var BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value.
- // When true, it should be present (set either to an empty string or its name).
- // When false, it should be omitted.
- // For any other value, should be present with that value.
-
- var OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric.
- // When falsy, it should be removed.
-
- var NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.
- // When falsy, it should be removed.
-
- var POSITIVE_NUMERIC = 6;
-
- /* eslint-disable max-len */
- var ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
- /* eslint-enable max-len */
-
- var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
- var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
- var illegalAttributeNameCache = {};
- var validatedAttributeNameCache = {};
- function isAttributeNameSafe(attributeName) {
- if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
- return true;
- }
-
- if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
- return false;
- }
-
- if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
- validatedAttributeNameCache[attributeName] = true;
- return true;
- }
-
- illegalAttributeNameCache[attributeName] = true;
-
- {
- error('Invalid attribute name: `%s`', attributeName);
- }
-
- return false;
- }
- function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
- if (propertyInfo !== null) {
- return propertyInfo.type === RESERVED;
- }
-
- if (isCustomComponentTag) {
- return false;
- }
-
- if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
- return true;
- }
-
- return false;
- }
- function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
- if (propertyInfo !== null && propertyInfo.type === RESERVED) {
- return false;
- }
-
- switch (typeof value) {
- case 'function': // $FlowIssue symbol is perfectly valid here
-
- case 'symbol':
- // eslint-disable-line
- return true;
-
- case 'boolean':
- {
- if (isCustomComponentTag) {
- return false;
- }
-
- if (propertyInfo !== null) {
- return !propertyInfo.acceptsBooleans;
- } else {
- var prefix = name.toLowerCase().slice(0, 5);
- return prefix !== 'data-' && prefix !== 'aria-';
- }
- }
-
- default:
- return false;
- }
- }
- function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
- if (value === null || typeof value === 'undefined') {
- return true;
- }
-
- if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
- return true;
- }
-
- if (isCustomComponentTag) {
-
- return false;
- }
-
- if (propertyInfo !== null) {
-
- switch (propertyInfo.type) {
- case BOOLEAN:
- return !value;
-
- case OVERLOADED_BOOLEAN:
- return value === false;
-
- case NUMERIC:
- return isNaN(value);
-
- case POSITIVE_NUMERIC:
- return isNaN(value) || value < 1;
- }
- }
-
- return false;
- }
- function getPropertyInfo(name) {
- return properties.hasOwnProperty(name) ? properties[name] : null;
- }
-
- function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
- this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
- this.attributeName = attributeName;
- this.attributeNamespace = attributeNamespace;
- this.mustUseProperty = mustUseProperty;
- this.propertyName = name;
- this.type = type;
- this.sanitizeURL = sanitizeURL;
- this.removeEmptyString = removeEmptyString;
- } // When adding attributes to this list, be sure to also add them to
- // the `possibleStandardNames` module to ensure casing and incorrect
- // name warnings.
-
-
- var properties = {}; // These props are reserved by React. They shouldn't be written to the DOM.
-
- var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular
- // elements (not just inputs). Now that ReactDOMInput assigns to the
- // defaultValue property -- do we need this?
- 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];
-
- reservedProps.forEach(function (name) {
- properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
- name, // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // A few React string attributes have a different name.
- // This is a mapping from React prop names to the attribute names.
-
- [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
- var name = _ref[0],
- attributeName = _ref[1];
- properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
- attributeName, // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // These are "enumerated" HTML attributes that accept "true" and "false".
- // In React, we let users pass `true` and `false` even though technically
- // these aren't boolean attributes (they are coerced to strings).
-
- ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
- properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
- name.toLowerCase(), // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // These are "enumerated" SVG attributes that accept "true" and "false".
- // In React, we let users pass `true` and `false` even though technically
- // these aren't boolean attributes (they are coerced to strings).
- // Since these are SVG attributes, their attribute names are case-sensitive.
-
- ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
- properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
- name, // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // These are HTML boolean attributes.
-
- ['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM
- // on the client side because the browsers are inconsistent. Instead we call focus().
- 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata
- 'itemScope'].forEach(function (name) {
- properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
- name.toLowerCase(), // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // These are the few React props that we set as DOM properties
- // rather than attributes. These are all booleans.
-
- ['checked', // Note: `option.selected` is not updated if `select.multiple` is
- // disabled with `removeAttribute`. We have special logic for handling this.
- 'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list,
- // you'll need to set attributeName to name.toLowerCase()
- // instead in the assignment below.
- ].forEach(function (name) {
- properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
- name, // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // These are HTML attributes that are "overloaded booleans": they behave like
- // booleans, but can also accept a string value.
-
- ['capture', 'download' // NOTE: if you add a camelCased prop to this list,
- // you'll need to set attributeName to name.toLowerCase()
- // instead in the assignment below.
- ].forEach(function (name) {
- properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
- name, // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // These are HTML attributes that must be positive numbers.
-
- ['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list,
- // you'll need to set attributeName to name.toLowerCase()
- // instead in the assignment below.
- ].forEach(function (name) {
- properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
- name, // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // These are HTML attributes that must be numbers.
-
- ['rowSpan', 'start'].forEach(function (name) {
- properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
- name.toLowerCase(), // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- });
- var CAMELIZE = /[\-\:]([a-z])/g;
-
- var capitalize = function (token) {
- return token[1].toUpperCase();
- }; // This is a list of all SVG attributes that need special casing, namespacing,
- // or boolean value assignment. Regular attributes that just accept strings
- // and have the same names are omitted, just like in the HTML attribute filter.
- // Some of these attributes can be hard to find. This list was created by
- // scraping the MDN documentation.
-
-
- ['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height' // NOTE: if you add a camelCased prop to this list,
- // you'll need to set attributeName to name.toLowerCase()
- // instead in the assignment below.
- ].forEach(function (attributeName) {
- var name = attributeName.replace(CAMELIZE, capitalize);
- properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
- attributeName, null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // String SVG attributes with the xlink namespace.
-
- ['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list,
- // you'll need to set attributeName to name.toLowerCase()
- // instead in the assignment below.
- ].forEach(function (attributeName) {
- var name = attributeName.replace(CAMELIZE, capitalize);
- properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
- attributeName, 'http://www.w3.org/1999/xlink', false, // sanitizeURL
- false);
- }); // String SVG attributes with the xml namespace.
-
- ['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list,
- // you'll need to set attributeName to name.toLowerCase()
- // instead in the assignment below.
- ].forEach(function (attributeName) {
- var name = attributeName.replace(CAMELIZE, capitalize);
- properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
- attributeName, 'http://www.w3.org/XML/1998/namespace', false, // sanitizeURL
- false);
- }); // These attribute exists both in HTML and SVG.
- // The attribute name is case-sensitive in SVG so we can't just use
- // the React name like we do for attributes that exist only in HTML.
-
- ['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
- properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
- attributeName.toLowerCase(), // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // These attributes accept URLs. These must not allow javascript: URLS.
- // These will also need to accept Trusted Types object in the future.
-
- var xlinkHref = 'xlinkHref';
- properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty
- 'xlink:href', 'http://www.w3.org/1999/xlink', true, // sanitizeURL
- false);
- ['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {
- properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
- attributeName.toLowerCase(), // attributeName
- null, // attributeNamespace
- true, // sanitizeURL
- true);
- });
-
- // and any newline or tab are filtered out as if they're not part of the URL.
- // https://url.spec.whatwg.org/#url-parsing
- // Tab or newline are defined as \r\n\t:
- // https://infra.spec.whatwg.org/#ascii-tab-or-newline
- // A C0 control is a code point in the range \u0000 NULL to \u001F
- // INFORMATION SEPARATOR ONE, inclusive:
- // https://infra.spec.whatwg.org/#c0-control-or-space
-
- /* eslint-disable max-len */
-
- var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;
- var didWarn = false;
-
- function sanitizeURL(url) {
- {
- if (!didWarn && isJavaScriptProtocol.test(url)) {
- didWarn = true;
-
- error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));
- }
- }
- }
-
- /**
- * Get the value for a property on a node. Only used in DEV for SSR validation.
- * The "expected" argument is used as a hint of what the expected value is.
- * Some properties have multiple equivalent values.
- */
- function getValueForProperty(node, name, expected, propertyInfo) {
- {
- if (propertyInfo.mustUseProperty) {
- var propertyName = propertyInfo.propertyName;
- return node[propertyName];
- } else {
- // This check protects multiple uses of `expected`, which is why the
- // react-internal/safe-string-coercion rule is disabled in several spots
- // below.
- {
- checkAttributeStringCoercion(expected, name);
- }
-
- if ( propertyInfo.sanitizeURL) {
- // If we haven't fully disabled javascript: URLs, and if
- // the hydration is successful of a javascript: URL, we
- // still want to warn on the client.
- // eslint-disable-next-line react-internal/safe-string-coercion
- sanitizeURL('' + expected);
- }
-
- var attributeName = propertyInfo.attributeName;
- var stringValue = null;
-
- if (propertyInfo.type === OVERLOADED_BOOLEAN) {
- if (node.hasAttribute(attributeName)) {
- var value = node.getAttribute(attributeName);
-
- if (value === '') {
- return true;
- }
-
- if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
- return value;
- } // eslint-disable-next-line react-internal/safe-string-coercion
-
-
- if (value === '' + expected) {
- return expected;
- }
-
- return value;
- }
- } else if (node.hasAttribute(attributeName)) {
- if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
- // We had an attribute but shouldn't have had one, so read it
- // for the error message.
- return node.getAttribute(attributeName);
- }
-
- if (propertyInfo.type === BOOLEAN) {
- // If this was a boolean, it doesn't matter what the value is
- // the fact that we have it is the same as the expected.
- return expected;
- } // Even if this property uses a namespace we use getAttribute
- // because we assume its namespaced name is the same as our config.
- // To use getAttributeNS we need the local name which we don't have
- // in our config atm.
-
-
- stringValue = node.getAttribute(attributeName);
- }
-
- if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
- return stringValue === null ? expected : stringValue; // eslint-disable-next-line react-internal/safe-string-coercion
- } else if (stringValue === '' + expected) {
- return expected;
- } else {
- return stringValue;
- }
- }
- }
- }
- /**
- * Get the value for a attribute on a node. Only used in DEV for SSR validation.
- * The third argument is used as a hint of what the expected value is. Some
- * attributes have multiple equivalent values.
- */
-
- function getValueForAttribute(node, name, expected, isCustomComponentTag) {
- {
- if (!isAttributeNameSafe(name)) {
- return;
- }
-
- if (!node.hasAttribute(name)) {
- return expected === undefined ? undefined : null;
- }
-
- var value = node.getAttribute(name);
-
- {
- checkAttributeStringCoercion(expected, name);
- }
-
- if (value === '' + expected) {
- return expected;
- }
-
- return value;
- }
- }
- /**
- * Sets the value for a property on a node.
- *
- * @param {DOMElement} node
- * @param {string} name
- * @param {*} value
- */
-
- function setValueForProperty(node, name, value, isCustomComponentTag) {
- var propertyInfo = getPropertyInfo(name);
-
- if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
- return;
- }
-
- if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
- value = null;
- }
-
-
- if (isCustomComponentTag || propertyInfo === null) {
- if (isAttributeNameSafe(name)) {
- var _attributeName = name;
-
- if (value === null) {
- node.removeAttribute(_attributeName);
- } else {
- {
- checkAttributeStringCoercion(value, name);
- }
-
- node.setAttribute(_attributeName, '' + value);
- }
- }
-
- return;
- }
-
- var mustUseProperty = propertyInfo.mustUseProperty;
-
- if (mustUseProperty) {
- var propertyName = propertyInfo.propertyName;
-
- if (value === null) {
- var type = propertyInfo.type;
- node[propertyName] = type === BOOLEAN ? false : '';
- } else {
- // Contrary to `setAttribute`, object properties are properly
- // `toString`ed by IE8/9.
- node[propertyName] = value;
- }
-
- return;
- } // The rest are treated as attributes with special cases.
-
-
- var attributeName = propertyInfo.attributeName,
- attributeNamespace = propertyInfo.attributeNamespace;
-
- if (value === null) {
- node.removeAttribute(attributeName);
- } else {
- var _type = propertyInfo.type;
- var attributeValue;
-
- if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
- // If attribute type is boolean, we know for sure it won't be an execution sink
- // and we won't require Trusted Type here.
- attributeValue = '';
- } else {
- // `setAttribute` with objects becomes only `[object]` in IE8/9,
- // ('' + value) makes it output the correct toString()-value.
- {
- {
- checkAttributeStringCoercion(value, attributeName);
- }
-
- attributeValue = '' + value;
- }
-
- if (propertyInfo.sanitizeURL) {
- sanitizeURL(attributeValue.toString());
- }
- }
-
- if (attributeNamespace) {
- node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
- } else {
- node.setAttribute(attributeName, attributeValue);
- }
- }
- }
-
- // ATTENTION
- // When adding new symbols to this file,
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
- // The Symbol used to tag the ReactElement-like types.
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
- var REACT_SCOPE_TYPE = Symbol.for('react.scope');
- var REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for('react.debug_trace_mode');
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
- var REACT_LEGACY_HIDDEN_TYPE = Symbol.for('react.legacy_hidden');
- var REACT_CACHE_TYPE = Symbol.for('react.cache');
- var REACT_TRACING_MARKER_TYPE = Symbol.for('react.tracing_marker');
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
- function getIteratorFn(maybeIterable) {
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
- return null;
- }
-
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
-
- if (typeof maybeIterator === 'function') {
- return maybeIterator;
- }
-
- return null;
- }
-
- var assign = Object.assign;
-
- // Helpers to patch console.logs to avoid logging during side-effect free
- // replaying on render function. This currently only patches the object
- // lazily which won't cover if the log function was extracted eagerly.
- // We could also eagerly patch the method.
- var disabledDepth = 0;
- var prevLog;
- var prevInfo;
- var prevWarn;
- var prevError;
- var prevGroup;
- var prevGroupCollapsed;
- var prevGroupEnd;
-
- function disabledLog() {}
-
- disabledLog.__reactDisabledLog = true;
- function disableLogs() {
- {
- if (disabledDepth === 0) {
- /* eslint-disable react-internal/no-production-logging */
- prevLog = console.log;
- prevInfo = console.info;
- prevWarn = console.warn;
- prevError = console.error;
- prevGroup = console.group;
- prevGroupCollapsed = console.groupCollapsed;
- prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
-
- var props = {
- configurable: true,
- enumerable: true,
- value: disabledLog,
- writable: true
- }; // $FlowFixMe Flow thinks console is immutable.
-
- Object.defineProperties(console, {
- info: props,
- log: props,
- warn: props,
- error: props,
- group: props,
- groupCollapsed: props,
- groupEnd: props
- });
- /* eslint-enable react-internal/no-production-logging */
- }
-
- disabledDepth++;
- }
- }
- function reenableLogs() {
- {
- disabledDepth--;
-
- if (disabledDepth === 0) {
- /* eslint-disable react-internal/no-production-logging */
- var props = {
- configurable: true,
- enumerable: true,
- writable: true
- }; // $FlowFixMe Flow thinks console is immutable.
-
- Object.defineProperties(console, {
- log: assign({}, props, {
- value: prevLog
- }),
- info: assign({}, props, {
- value: prevInfo
- }),
- warn: assign({}, props, {
- value: prevWarn
- }),
- error: assign({}, props, {
- value: prevError
- }),
- group: assign({}, props, {
- value: prevGroup
- }),
- groupCollapsed: assign({}, props, {
- value: prevGroupCollapsed
- }),
- groupEnd: assign({}, props, {
- value: prevGroupEnd
- })
- });
- /* eslint-enable react-internal/no-production-logging */
- }
-
- if (disabledDepth < 0) {
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
- }
- }
- }
-
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
- var prefix;
- function describeBuiltInComponentFrame(name, source, ownerFn) {
- {
- if (prefix === undefined) {
- // Extract the VM specific prefix used by each line.
- try {
- throw Error();
- } catch (x) {
- var match = x.stack.trim().match(/\n( *(at )?)/);
- prefix = match && match[1] || '';
- }
- } // We use the prefix to ensure our stacks line up with native stack frames.
-
-
- return '\n' + prefix + name;
- }
- }
- var reentry = false;
- var componentFrameCache;
-
- {
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
- componentFrameCache = new PossiblyWeakMap();
- }
-
- function describeNativeComponentFrame(fn, construct) {
- // If something asked for a stack inside a fake render, it should get ignored.
- if ( !fn || reentry) {
- return '';
- }
-
- {
- var frame = componentFrameCache.get(fn);
-
- if (frame !== undefined) {
- return frame;
- }
- }
-
- var control;
- reentry = true;
- var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
-
- Error.prepareStackTrace = undefined;
- var previousDispatcher;
-
- {
- previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
- // for warnings.
-
- ReactCurrentDispatcher.current = null;
- disableLogs();
- }
-
- try {
- // This should throw.
- if (construct) {
- // Something should be setting the props in the constructor.
- var Fake = function () {
- throw Error();
- }; // $FlowFixMe
-
-
- Object.defineProperty(Fake.prototype, 'props', {
- set: function () {
- // We use a throwing setter instead of frozen or non-writable props
- // because that won't throw in a non-strict mode function.
- throw Error();
- }
- });
-
- if (typeof Reflect === 'object' && Reflect.construct) {
- // We construct a different control for this case to include any extra
- // frames added by the construct call.
- try {
- Reflect.construct(Fake, []);
- } catch (x) {
- control = x;
- }
-
- Reflect.construct(fn, [], Fake);
- } else {
- try {
- Fake.call();
- } catch (x) {
- control = x;
- }
-
- fn.call(Fake.prototype);
- }
- } else {
- try {
- throw Error();
- } catch (x) {
- control = x;
- }
-
- fn();
- }
- } catch (sample) {
- // This is inlined manually because closure doesn't do it for us.
- if (sample && control && typeof sample.stack === 'string') {
- // This extracts the first frame from the sample that isn't also in the control.
- // Skipping one frame that we assume is the frame that calls the two.
- var sampleLines = sample.stack.split('\n');
- var controlLines = control.stack.split('\n');
- var s = sampleLines.length - 1;
- var c = controlLines.length - 1;
-
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
- // We expect at least one stack frame to be shared.
- // Typically this will be the root most one. However, stack frames may be
- // cut off due to maximum stack limits. In this case, one maybe cut off
- // earlier than the other. We assume that the sample is longer or the same
- // and there for cut off earlier. So we should find the root most frame in
- // the sample somewhere in the control.
- c--;
- }
-
- for (; s >= 1 && c >= 0; s--, c--) {
- // Next we find the first one that isn't the same which should be the
- // frame that called our sample function and the control.
- if (sampleLines[s] !== controlLines[c]) {
- // In V8, the first line is describing the message but other VMs don't.
- // If we're about to return the first line, and the control is also on the same
- // line, that's a pretty good indicator that our sample threw at same line as
- // the control. I.e. before we entered the sample frame. So we ignore this result.
- // This can happen if you passed a class to function component, or non-function.
- if (s !== 1 || c !== 1) {
- do {
- s--;
- c--; // We may still have similar intermediate frames from the construct call.
- // The next one that isn't the same should be our match though.
-
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
- // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
- // but we have a user-provided "displayName"
- // splice it in to make the stack more readable.
-
-
- if (fn.displayName && _frame.includes('<anonymous>')) {
- _frame = _frame.replace('<anonymous>', fn.displayName);
- }
-
- {
- if (typeof fn === 'function') {
- componentFrameCache.set(fn, _frame);
- }
- } // Return the line we found.
-
-
- return _frame;
- }
- } while (s >= 1 && c >= 0);
- }
-
- break;
- }
- }
- }
- } finally {
- reentry = false;
-
- {
- ReactCurrentDispatcher.current = previousDispatcher;
- reenableLogs();
- }
-
- Error.prepareStackTrace = previousPrepareStackTrace;
- } // Fallback to just using the name if we couldn't make it throw.
-
-
- var name = fn ? fn.displayName || fn.name : '';
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
-
- {
- if (typeof fn === 'function') {
- componentFrameCache.set(fn, syntheticFrame);
- }
- }
-
- return syntheticFrame;
- }
-
- function describeClassComponentFrame(ctor, source, ownerFn) {
- {
- return describeNativeComponentFrame(ctor, true);
- }
- }
- function describeFunctionComponentFrame(fn, source, ownerFn) {
- {
- return describeNativeComponentFrame(fn, false);
- }
- }
-
- function shouldConstruct(Component) {
- var prototype = Component.prototype;
- return !!(prototype && prototype.isReactComponent);
- }
-
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
-
- if (type == null) {
- return '';
- }
-
- if (typeof type === 'function') {
- {
- return describeNativeComponentFrame(type, shouldConstruct(type));
- }
- }
-
- if (typeof type === 'string') {
- return describeBuiltInComponentFrame(type);
- }
-
- switch (type) {
- case REACT_SUSPENSE_TYPE:
- return describeBuiltInComponentFrame('Suspense');
-
- case REACT_SUSPENSE_LIST_TYPE:
- return describeBuiltInComponentFrame('SuspenseList');
- }
-
- if (typeof type === 'object') {
- switch (type.$$typeof) {
- case REACT_FORWARD_REF_TYPE:
- return describeFunctionComponentFrame(type.render);
-
- case REACT_MEMO_TYPE:
- // Memo may contain any component type so we recursively resolve it.
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
-
- case REACT_LAZY_TYPE:
- {
- var lazyComponent = type;
- var payload = lazyComponent._payload;
- var init = lazyComponent._init;
-
- try {
- // Lazy may contain any component type so we recursively resolve it.
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
- } catch (x) {}
- }
- }
- }
-
- return '';
- }
-
- function describeFiber(fiber) {
- var owner = fiber._debugOwner ? fiber._debugOwner.type : null ;
- var source = fiber._debugSource ;
-
- switch (fiber.tag) {
- case HostComponent:
- return describeBuiltInComponentFrame(fiber.type);
-
- case LazyComponent:
- return describeBuiltInComponentFrame('Lazy');
-
- case SuspenseComponent:
- return describeBuiltInComponentFrame('Suspense');
-
- case SuspenseListComponent:
- return describeBuiltInComponentFrame('SuspenseList');
-
- case FunctionComponent:
- case IndeterminateComponent:
- case SimpleMemoComponent:
- return describeFunctionComponentFrame(fiber.type);
-
- case ForwardRef:
- return describeFunctionComponentFrame(fiber.type.render);
-
- case ClassComponent:
- return describeClassComponentFrame(fiber.type);
-
- default:
- return '';
- }
- }
-
- function getStackByFiberInDevAndProd(workInProgress) {
- try {
- var info = '';
- var node = workInProgress;
-
- do {
- info += describeFiber(node);
- node = node.return;
- } while (node);
-
- return info;
- } catch (x) {
- return '\nError generating stack: ' + x.message + '\n' + x.stack;
- }
- }
-
- function getWrappedName(outerType, innerType, wrapperName) {
- var displayName = outerType.displayName;
-
- if (displayName) {
- return displayName;
- }
-
- var functionName = innerType.displayName || innerType.name || '';
- return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
- } // Keep in sync with react-reconciler/getComponentNameFromFiber
-
-
- function getContextName(type) {
- return type.displayName || 'Context';
- } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
-
-
- function getComponentNameFromType(type) {
- if (type == null) {
- // Host root, text node or just invalid type.
- return null;
- }
-
- {
- if (typeof type.tag === 'number') {
- error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
- }
- }
-
- if (typeof type === 'function') {
- return type.displayName || type.name || null;
- }
-
- if (typeof type === 'string') {
- return type;
- }
-
- switch (type) {
- case REACT_FRAGMENT_TYPE:
- return 'Fragment';
-
- case REACT_PORTAL_TYPE:
- return 'Portal';
-
- case REACT_PROFILER_TYPE:
- return 'Profiler';
-
- case REACT_STRICT_MODE_TYPE:
- return 'StrictMode';
-
- case REACT_SUSPENSE_TYPE:
- return 'Suspense';
-
- case REACT_SUSPENSE_LIST_TYPE:
- return 'SuspenseList';
-
- }
-
- if (typeof type === 'object') {
- switch (type.$$typeof) {
- case REACT_CONTEXT_TYPE:
- var context = type;
- return getContextName(context) + '.Consumer';
-
- case REACT_PROVIDER_TYPE:
- var provider = type;
- return getContextName(provider._context) + '.Provider';
-
- case REACT_FORWARD_REF_TYPE:
- return getWrappedName(type, type.render, 'ForwardRef');
-
- case REACT_MEMO_TYPE:
- var outerName = type.displayName || null;
-
- if (outerName !== null) {
- return outerName;
- }
-
- return getComponentNameFromType(type.type) || 'Memo';
-
- case REACT_LAZY_TYPE:
- {
- var lazyComponent = type;
- var payload = lazyComponent._payload;
- var init = lazyComponent._init;
-
- try {
- return getComponentNameFromType(init(payload));
- } catch (x) {
- return null;
- }
- }
-
- // eslint-disable-next-line no-fallthrough
- }
- }
-
- return null;
- }
-
- function getWrappedName$1(outerType, innerType, wrapperName) {
- var functionName = innerType.displayName || innerType.name || '';
- return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
- } // Keep in sync with shared/getComponentNameFromType
-
-
- function getContextName$1(type) {
- return type.displayName || 'Context';
- }
-
- function getComponentNameFromFiber(fiber) {
- var tag = fiber.tag,
- type = fiber.type;
-
- switch (tag) {
- case CacheComponent:
- return 'Cache';
-
- case ContextConsumer:
- var context = type;
- return getContextName$1(context) + '.Consumer';
-
- case ContextProvider:
- var provider = type;
- return getContextName$1(provider._context) + '.Provider';
-
- case DehydratedFragment:
- return 'DehydratedFragment';
-
- case ForwardRef:
- return getWrappedName$1(type, type.render, 'ForwardRef');
-
- case Fragment:
- return 'Fragment';
-
- case HostComponent:
- // Host component type is the display name (e.g. "div", "View")
- return type;
-
- case HostPortal:
- return 'Portal';
-
- case HostRoot:
- return 'Root';
-
- case HostText:
- return 'Text';
-
- case LazyComponent:
- // Name comes from the type in this case; we don't have a tag.
- return getComponentNameFromType(type);
-
- case Mode:
- if (type === REACT_STRICT_MODE_TYPE) {
- // Don't be less specific than shared/getComponentNameFromType
- return 'StrictMode';
- }
-
- return 'Mode';
-
- case OffscreenComponent:
- return 'Offscreen';
-
- case Profiler:
- return 'Profiler';
-
- case ScopeComponent:
- return 'Scope';
-
- case SuspenseComponent:
- return 'Suspense';
-
- case SuspenseListComponent:
- return 'SuspenseList';
-
- case TracingMarkerComponent:
- return 'TracingMarker';
- // The display name for this tags come from the user-provided type:
-
- case ClassComponent:
- case FunctionComponent:
- case IncompleteClassComponent:
- case IndeterminateComponent:
- case MemoComponent:
- case SimpleMemoComponent:
- if (typeof type === 'function') {
- return type.displayName || type.name || null;
- }
-
- if (typeof type === 'string') {
- return type;
- }
-
- break;
-
- }
-
- return null;
- }
-
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
- var current = null;
- var isRendering = false;
- function getCurrentFiberOwnerNameInDevOrNull() {
- {
- if (current === null) {
- return null;
- }
-
- var owner = current._debugOwner;
-
- if (owner !== null && typeof owner !== 'undefined') {
- return getComponentNameFromFiber(owner);
- }
- }
-
- return null;
- }
-
- function getCurrentFiberStackInDev() {
- {
- if (current === null) {
- return '';
- } // Safe because if current fiber exists, we are reconciling,
- // and it is guaranteed to be the work-in-progress version.
-
-
- return getStackByFiberInDevAndProd(current);
- }
- }
-
- function resetCurrentFiber() {
- {
- ReactDebugCurrentFrame.getCurrentStack = null;
- current = null;
- isRendering = false;
- }
- }
- function setCurrentFiber(fiber) {
- {
- ReactDebugCurrentFrame.getCurrentStack = fiber === null ? null : getCurrentFiberStackInDev;
- current = fiber;
- isRendering = false;
- }
- }
- function getCurrentFiber() {
- {
- return current;
- }
- }
- function setIsRendering(rendering) {
- {
- isRendering = rendering;
- }
- }
-
- // Flow does not allow string concatenation of most non-string types. To work
- // around this limitation, we use an opaque type that can only be obtained by
- // passing the value through getToStringValue first.
- function toString(value) {
- // The coercion safety check is performed in getToStringValue().
- // eslint-disable-next-line react-internal/safe-string-coercion
- return '' + value;
- }
- function getToStringValue(value) {
- switch (typeof value) {
- case 'boolean':
- case 'number':
- case 'string':
- case 'undefined':
- return value;
-
- case 'object':
- {
- checkFormFieldValueStringCoercion(value);
- }
-
- return value;
-
- default:
- // function, symbol are assigned as empty strings
- return '';
- }
- }
-
- var hasReadOnlyValue = {
- button: true,
- checkbox: true,
- image: true,
- hidden: true,
- radio: true,
- reset: true,
- submit: true
- };
- function checkControlledValueProps(tagName, props) {
- {
- if (!(hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || props.value == null)) {
- error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
- }
-
- if (!(props.onChange || props.readOnly || props.disabled || props.checked == null)) {
- error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
- }
- }
- }
-
- function isCheckable(elem) {
- var type = elem.type;
- var nodeName = elem.nodeName;
- return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
- }
-
- function getTracker(node) {
- return node._valueTracker;
- }
-
- function detachTracker(node) {
- node._valueTracker = null;
- }
-
- function getValueFromNode(node) {
- var value = '';
-
- if (!node) {
- return value;
- }
-
- if (isCheckable(node)) {
- value = node.checked ? 'true' : 'false';
- } else {
- value = node.value;
- }
-
- return value;
- }
-
- function trackValueOnNode(node) {
- var valueField = isCheckable(node) ? 'checked' : 'value';
- var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
-
- {
- checkFormFieldValueStringCoercion(node[valueField]);
- }
-
- var currentValue = '' + node[valueField]; // if someone has already defined a value or Safari, then bail
- // and don't track value will cause over reporting of changes,
- // but it's better then a hard failure
- // (needed for certain tests that spyOn input values and Safari)
-
- if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
- return;
- }
-
- var get = descriptor.get,
- set = descriptor.set;
- Object.defineProperty(node, valueField, {
- configurable: true,
- get: function () {
- return get.call(this);
- },
- set: function (value) {
- {
- checkFormFieldValueStringCoercion(value);
- }
-
- currentValue = '' + value;
- set.call(this, value);
- }
- }); // We could've passed this the first time
- // but it triggers a bug in IE11 and Edge 14/15.
- // Calling defineProperty() again should be equivalent.
- // https://github.com/facebook/react/issues/11768
-
- Object.defineProperty(node, valueField, {
- enumerable: descriptor.enumerable
- });
- var tracker = {
- getValue: function () {
- return currentValue;
- },
- setValue: function (value) {
- {
- checkFormFieldValueStringCoercion(value);
- }
-
- currentValue = '' + value;
- },
- stopTracking: function () {
- detachTracker(node);
- delete node[valueField];
- }
- };
- return tracker;
- }
-
- function track(node) {
- if (getTracker(node)) {
- return;
- } // TODO: Once it's just Fiber we can move this to node._wrapperState
-
-
- node._valueTracker = trackValueOnNode(node);
- }
- function updateValueIfChanged(node) {
- if (!node) {
- return false;
- }
-
- var tracker = getTracker(node); // if there is no tracker at this point it's unlikely
- // that trying again will succeed
-
- if (!tracker) {
- return true;
- }
-
- var lastValue = tracker.getValue();
- var nextValue = getValueFromNode(node);
-
- if (nextValue !== lastValue) {
- tracker.setValue(nextValue);
- return true;
- }
-
- return false;
- }
-
- function getActiveElement(doc) {
- doc = doc || (typeof document !== 'undefined' ? document : undefined);
-
- if (typeof doc === 'undefined') {
- return null;
- }
-
- try {
- return doc.activeElement || doc.body;
- } catch (e) {
- return doc.body;
- }
- }
-
- var didWarnValueDefaultValue = false;
- var didWarnCheckedDefaultChecked = false;
- var didWarnControlledToUncontrolled = false;
- var didWarnUncontrolledToControlled = false;
-
- function isControlled(props) {
- var usesChecked = props.type === 'checkbox' || props.type === 'radio';
- return usesChecked ? props.checked != null : props.value != null;
- }
- /**
- * Implements an <input> host component that allows setting these optional
- * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
- *
- * If `checked` or `value` are not supplied (or null/undefined), user actions
- * that affect the checked state or value will trigger updates to the element.
- *
- * If they are supplied (and not null/undefined), the rendered element will not
- * trigger updates to the element. Instead, the props must change in order for
- * the rendered element to be updated.
- *
- * The rendered element will be initialized as unchecked (or `defaultChecked`)
- * with an empty value (or `defaultValue`).
- *
- * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
- */
-
-
- function getHostProps(element, props) {
- var node = element;
- var checked = props.checked;
- var hostProps = assign({}, props, {
- defaultChecked: undefined,
- defaultValue: undefined,
- value: undefined,
- checked: checked != null ? checked : node._wrapperState.initialChecked
- });
- return hostProps;
- }
- function initWrapperState(element, props) {
- {
- checkControlledValueProps('input', props);
-
- if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
- error('%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
-
- didWarnCheckedDefaultChecked = true;
- }
-
- if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
- error('%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
-
- didWarnValueDefaultValue = true;
- }
- }
-
- var node = element;
- var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
- node._wrapperState = {
- initialChecked: props.checked != null ? props.checked : props.defaultChecked,
- initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
- controlled: isControlled(props)
- };
- }
- function updateChecked(element, props) {
- var node = element;
- var checked = props.checked;
-
- if (checked != null) {
- setValueForProperty(node, 'checked', checked, false);
- }
- }
- function updateWrapper(element, props) {
- var node = element;
-
- {
- var controlled = isControlled(props);
-
- if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {
- error('A component is changing an uncontrolled input to be controlled. ' + 'This is likely caused by the value changing from undefined to ' + 'a defined value, which should not happen. ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components');
-
- didWarnUncontrolledToControlled = true;
- }
-
- if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {
- error('A component is changing a controlled input to be uncontrolled. ' + 'This is likely caused by the value changing from a defined to ' + 'undefined, which should not happen. ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components');
-
- didWarnControlledToUncontrolled = true;
- }
- }
-
- updateChecked(element, props);
- var value = getToStringValue(props.value);
- var type = props.type;
-
- if (value != null) {
- if (type === 'number') {
- if (value === 0 && node.value === '' || // We explicitly want to coerce to number here if possible.
- // eslint-disable-next-line
- node.value != value) {
- node.value = toString(value);
- }
- } else if (node.value !== toString(value)) {
- node.value = toString(value);
- }
- } else if (type === 'submit' || type === 'reset') {
- // Submit/reset inputs need the attribute removed completely to avoid
- // blank-text buttons.
- node.removeAttribute('value');
- return;
- }
-
- {
- // When syncing the value attribute, the value comes from a cascade of
- // properties:
- // 1. The value React property
- // 2. The defaultValue React property
- // 3. Otherwise there should be no change
- if (props.hasOwnProperty('value')) {
- setDefaultValue(node, props.type, value);
- } else if (props.hasOwnProperty('defaultValue')) {
- setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
- }
- }
-
- {
- // When syncing the checked attribute, it only changes when it needs
- // to be removed, such as transitioning from a checkbox into a text input
- if (props.checked == null && props.defaultChecked != null) {
- node.defaultChecked = !!props.defaultChecked;
- }
- }
- }
- function postMountWrapper(element, props, isHydrating) {
- var node = element; // Do not assign value if it is already set. This prevents user text input
- // from being lost during SSR hydration.
-
- if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
- var type = props.type;
- var isButton = type === 'submit' || type === 'reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the
- // default value provided by the browser. See: #12872
-
- if (isButton && (props.value === undefined || props.value === null)) {
- return;
- }
-
- var initialValue = toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input
- // from being lost during SSR hydration.
-
- if (!isHydrating) {
- {
- // When syncing the value attribute, the value property should use
- // the wrapperState._initialValue property. This uses:
- //
- // 1. The value React property when present
- // 2. The defaultValue React property when present
- // 3. An empty string
- if (initialValue !== node.value) {
- node.value = initialValue;
- }
- }
- }
-
- {
- // Otherwise, the value attribute is synchronized to the property,
- // so we assign defaultValue to the same thing as the value property
- // assignment step above.
- node.defaultValue = initialValue;
- }
- } // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
- // this is needed to work around a chrome bug where setting defaultChecked
- // will sometimes influence the value of checked (even after detachment).
- // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
- // We need to temporarily unset name to avoid disrupting radio button groups.
-
-
- var name = node.name;
-
- if (name !== '') {
- node.name = '';
- }
-
- {
- // When syncing the checked attribute, both the checked property and
- // attribute are assigned at the same time using defaultChecked. This uses:
- //
- // 1. The checked React property when present
- // 2. The defaultChecked React property when present
- // 3. Otherwise, false
- node.defaultChecked = !node.defaultChecked;
- node.defaultChecked = !!node._wrapperState.initialChecked;
- }
-
- if (name !== '') {
- node.name = name;
- }
- }
- function restoreControlledState(element, props) {
- var node = element;
- updateWrapper(node, props);
- updateNamedCousins(node, props);
- }
-
- function updateNamedCousins(rootNode, props) {
- var name = props.name;
-
- if (props.type === 'radio' && name != null) {
- var queryRoot = rootNode;
-
- while (queryRoot.parentNode) {
- queryRoot = queryRoot.parentNode;
- } // If `rootNode.form` was non-null, then we could try `form.elements`,
- // but that sometimes behaves strangely in IE8. We could also try using
- // `form.getElementsByName`, but that will only return direct children
- // and won't include inputs that use the HTML5 `form=` attribute. Since
- // the input might not even be in a form. It might not even be in the
- // document. Let's just use the local `querySelectorAll` to ensure we don't
- // miss anything.
-
-
- {
- checkAttributeStringCoercion(name, 'name');
- }
-
- var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
-
- for (var i = 0; i < group.length; i++) {
- var otherNode = group[i];
-
- if (otherNode === rootNode || otherNode.form !== rootNode.form) {
- continue;
- } // This will throw if radio buttons rendered by different copies of React
- // and the same name are rendered into the same form (same as #1939).
- // That's probably okay; we don't support it just as we don't support
- // mixing React radio buttons with non-React ones.
-
-
- var otherProps = getFiberCurrentPropsFromNode(otherNode);
-
- if (!otherProps) {
- throw new Error('ReactDOMInput: Mixing React and non-React radio inputs with the ' + 'same `name` is not supported.');
- } // We need update the tracked value on the named cousin since the value
- // was changed but the input saw no event or value set
-
-
- updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that
- // was previously checked to update will cause it to be come re-checked
- // as appropriate.
-
- updateWrapper(otherNode, otherProps);
- }
- }
- } // In Chrome, assigning defaultValue to certain input types triggers input validation.
- // For number inputs, the display value loses trailing decimal points. For email inputs,
- // Chrome raises "The specified value <x> is not a valid email address".
- //
- // Here we check to see if the defaultValue has actually changed, avoiding these problems
- // when the user is inputting text
- //
- // https://github.com/facebook/react/issues/7253
-
-
- function setDefaultValue(node, type, value) {
- if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
- type !== 'number' || getActiveElement(node.ownerDocument) !== node) {
- if (value == null) {
- node.defaultValue = toString(node._wrapperState.initialValue);
- } else if (node.defaultValue !== toString(value)) {
- node.defaultValue = toString(value);
- }
- }
- }
-
- var didWarnSelectedSetOnOption = false;
- var didWarnInvalidChild = false;
- var didWarnInvalidInnerHTML = false;
- /**
- * Implements an <option> host component that warns when `selected` is set.
- */
-
- function validateProps(element, props) {
- {
- // If a value is not provided, then the children must be simple.
- if (props.value == null) {
- if (typeof props.children === 'object' && props.children !== null) {
- React.Children.forEach(props.children, function (child) {
- if (child == null) {
- return;
- }
-
- if (typeof child === 'string' || typeof child === 'number') {
- return;
- }
-
- if (!didWarnInvalidChild) {
- didWarnInvalidChild = true;
-
- error('Cannot infer the option value of complex children. ' + 'Pass a `value` prop or use a plain string as children to <option>.');
- }
- });
- } else if (props.dangerouslySetInnerHTML != null) {
- if (!didWarnInvalidInnerHTML) {
- didWarnInvalidInnerHTML = true;
-
- error('Pass a `value` prop if you set dangerouslyInnerHTML so React knows ' + 'which value should be selected.');
- }
- }
- } // TODO: Remove support for `selected` in <option>.
-
-
- if (props.selected != null && !didWarnSelectedSetOnOption) {
- error('Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
-
- didWarnSelectedSetOnOption = true;
- }
- }
- }
- function postMountWrapper$1(element, props) {
- // value="" should make a value attribute (#6219)
- if (props.value != null) {
- element.setAttribute('value', toString(getToStringValue(props.value)));
- }
- }
-
- var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
-
- function isArray(a) {
- return isArrayImpl(a);
- }
-
- var didWarnValueDefaultValue$1;
-
- {
- didWarnValueDefaultValue$1 = false;
- }
-
- function getDeclarationErrorAddendum() {
- var ownerName = getCurrentFiberOwnerNameInDevOrNull();
-
- if (ownerName) {
- return '\n\nCheck the render method of `' + ownerName + '`.';
- }
-
- return '';
- }
-
- var valuePropNames = ['value', 'defaultValue'];
- /**
- * Validation function for `value` and `defaultValue`.
- */
-
- function checkSelectPropTypes(props) {
- {
- checkControlledValueProps('select', props);
-
- for (var i = 0; i < valuePropNames.length; i++) {
- var propName = valuePropNames[i];
-
- if (props[propName] == null) {
- continue;
- }
-
- var propNameIsArray = isArray(props[propName]);
-
- if (props.multiple && !propNameIsArray) {
- error('The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
- } else if (!props.multiple && propNameIsArray) {
- error('The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
- }
- }
- }
- }
-
- function updateOptions(node, multiple, propValue, setDefaultSelected) {
- var options = node.options;
-
- if (multiple) {
- var selectedValues = propValue;
- var selectedValue = {};
-
- for (var i = 0; i < selectedValues.length; i++) {
- // Prefix to avoid chaos with special keys.
- selectedValue['$' + selectedValues[i]] = true;
- }
-
- for (var _i = 0; _i < options.length; _i++) {
- var selected = selectedValue.hasOwnProperty('$' + options[_i].value);
-
- if (options[_i].selected !== selected) {
- options[_i].selected = selected;
- }
-
- if (selected && setDefaultSelected) {
- options[_i].defaultSelected = true;
- }
- }
- } else {
- // Do not set `select.value` as exact behavior isn't consistent across all
- // browsers for all cases.
- var _selectedValue = toString(getToStringValue(propValue));
-
- var defaultSelected = null;
-
- for (var _i2 = 0; _i2 < options.length; _i2++) {
- if (options[_i2].value === _selectedValue) {
- options[_i2].selected = true;
-
- if (setDefaultSelected) {
- options[_i2].defaultSelected = true;
- }
-
- return;
- }
-
- if (defaultSelected === null && !options[_i2].disabled) {
- defaultSelected = options[_i2];
- }
- }
-
- if (defaultSelected !== null) {
- defaultSelected.selected = true;
- }
- }
- }
- /**
- * Implements a <select> host component that allows optionally setting the
- * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
- * stringable. If `multiple` is true, the prop must be an array of stringables.
- *
- * If `value` is not supplied (or null/undefined), user actions that change the
- * selected option will trigger updates to the rendered options.
- *
- * If it is supplied (and not null/undefined), the rendered options will not
- * update in response to user actions. Instead, the `value` prop must change in
- * order for the rendered options to update.
- *
- * If `defaultValue` is provided, any options with the supplied values will be
- * selected.
- */
-
-
- function getHostProps$1(element, props) {
- return assign({}, props, {
- value: undefined
- });
- }
- function initWrapperState$1(element, props) {
- var node = element;
-
- {
- checkSelectPropTypes(props);
- }
-
- node._wrapperState = {
- wasMultiple: !!props.multiple
- };
-
- {
- if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
- error('Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components');
-
- didWarnValueDefaultValue$1 = true;
- }
- }
- }
- function postMountWrapper$2(element, props) {
- var node = element;
- node.multiple = !!props.multiple;
- var value = props.value;
-
- if (value != null) {
- updateOptions(node, !!props.multiple, value, false);
- } else if (props.defaultValue != null) {
- updateOptions(node, !!props.multiple, props.defaultValue, true);
- }
- }
- function postUpdateWrapper(element, props) {
- var node = element;
- var wasMultiple = node._wrapperState.wasMultiple;
- node._wrapperState.wasMultiple = !!props.multiple;
- var value = props.value;
-
- if (value != null) {
- updateOptions(node, !!props.multiple, value, false);
- } else if (wasMultiple !== !!props.multiple) {
- // For simplicity, reapply `defaultValue` if `multiple` is toggled.
- if (props.defaultValue != null) {
- updateOptions(node, !!props.multiple, props.defaultValue, true);
- } else {
- // Revert the select back to its default unselected state.
- updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
- }
- }
- }
- function restoreControlledState$1(element, props) {
- var node = element;
- var value = props.value;
-
- if (value != null) {
- updateOptions(node, !!props.multiple, value, false);
- }
- }
-
- var didWarnValDefaultVal = false;
-
- /**
- * Implements a <textarea> host component that allows setting `value`, and
- * `defaultValue`. This differs from the traditional DOM API because value is
- * usually set as PCDATA children.
- *
- * If `value` is not supplied (or null/undefined), user actions that affect the
- * value will trigger updates to the element.
- *
- * If `value` is supplied (and not null/undefined), the rendered element will
- * not trigger updates to the element. Instead, the `value` prop must change in
- * order for the rendered element to be updated.
- *
- * The rendered element will be initialized with an empty value, the prop
- * `defaultValue` if specified, or the children content (deprecated).
- */
- function getHostProps$2(element, props) {
- var node = element;
-
- if (props.dangerouslySetInnerHTML != null) {
- throw new Error('`dangerouslySetInnerHTML` does not make sense on <textarea>.');
- } // Always set children to the same thing. In IE9, the selection range will
- // get reset if `textContent` is mutated. We could add a check in setTextContent
- // to only set the value if/when the value differs from the node value (which would
- // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
- // solution. The value can be a boolean or object so that's why it's forced
- // to be a string.
-
-
- var hostProps = assign({}, props, {
- value: undefined,
- defaultValue: undefined,
- children: toString(node._wrapperState.initialValue)
- });
-
- return hostProps;
- }
- function initWrapperState$2(element, props) {
- var node = element;
-
- {
- checkControlledValueProps('textarea', props);
-
- if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
- error('%s contains a textarea with both value and defaultValue props. ' + 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
-
- didWarnValDefaultVal = true;
- }
- }
-
- var initialValue = props.value; // Only bother fetching default value if we're going to use it
-
- if (initialValue == null) {
- var children = props.children,
- defaultValue = props.defaultValue;
-
- if (children != null) {
- {
- error('Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
- }
-
- {
- if (defaultValue != null) {
- throw new Error('If you supply `defaultValue` on a <textarea>, do not pass children.');
- }
-
- if (isArray(children)) {
- if (children.length > 1) {
- throw new Error('<textarea> can only have at most one child.');
- }
-
- children = children[0];
- }
-
- defaultValue = children;
- }
- }
-
- if (defaultValue == null) {
- defaultValue = '';
- }
-
- initialValue = defaultValue;
- }
-
- node._wrapperState = {
- initialValue: getToStringValue(initialValue)
- };
- }
- function updateWrapper$1(element, props) {
- var node = element;
- var value = getToStringValue(props.value);
- var defaultValue = getToStringValue(props.defaultValue);
-
- if (value != null) {
- // Cast `value` to a string to ensure the value is set correctly. While
- // browsers typically do this as necessary, jsdom doesn't.
- var newValue = toString(value); // To avoid side effects (such as losing text selection), only set value if changed
-
- if (newValue !== node.value) {
- node.value = newValue;
- }
-
- if (props.defaultValue == null && node.defaultValue !== newValue) {
- node.defaultValue = newValue;
- }
- }
-
- if (defaultValue != null) {
- node.defaultValue = toString(defaultValue);
- }
- }
- function postMountWrapper$3(element, props) {
- var node = element; // This is in postMount because we need access to the DOM node, which is not
- // available until after the component has mounted.
-
- var textContent = node.textContent; // Only set node.value if textContent is equal to the expected
- // initial value. In IE10/IE11 there is a bug where the placeholder attribute
- // will populate textContent as well.
- // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
-
- if (textContent === node._wrapperState.initialValue) {
- if (textContent !== '' && textContent !== null) {
- node.value = textContent;
- }
- }
- }
- function restoreControlledState$2(element, props) {
- // DOM component is still mounted; update
- updateWrapper$1(element, props);
- }
-
- var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
- var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
- var SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; // Assumes there is no parent namespace.
-
- function getIntrinsicNamespace(type) {
- switch (type) {
- case 'svg':
- return SVG_NAMESPACE;
-
- case 'math':
- return MATH_NAMESPACE;
-
- default:
- return HTML_NAMESPACE;
- }
- }
- function getChildNamespace(parentNamespace, type) {
- if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) {
- // No (or default) parent namespace: potential entry point.
- return getIntrinsicNamespace(type);
- }
-
- if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
- // We're leaving SVG.
- return HTML_NAMESPACE;
- } // By default, pass namespace below.
-
-
- return parentNamespace;
- }
-
- /* globals MSApp */
-
- /**
- * Create a function which has 'unsafe' privileges (required by windows8 apps)
- */
- var createMicrosoftUnsafeLocalFunction = function (func) {
- if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
- return function (arg0, arg1, arg2, arg3) {
- MSApp.execUnsafeLocalFunction(function () {
- return func(arg0, arg1, arg2, arg3);
- });
- };
- } else {
- return func;
- }
- };
-
- var reusableSVGContainer;
- /**
- * Set the innerHTML property of a node
- *
- * @param {DOMElement} node
- * @param {string} html
- * @internal
- */
-
- var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
- if (node.namespaceURI === SVG_NAMESPACE) {
-
- if (!('innerHTML' in node)) {
- // IE does not have innerHTML for SVG nodes, so instead we inject the
- // new markup in a temp node and then move the child nodes across into
- // the target node
- reusableSVGContainer = reusableSVGContainer || document.createElement('div');
- reusableSVGContainer.innerHTML = '<svg>' + html.valueOf().toString() + '</svg>';
- var svgNode = reusableSVGContainer.firstChild;
-
- while (node.firstChild) {
- node.removeChild(node.firstChild);
- }
-
- while (svgNode.firstChild) {
- node.appendChild(svgNode.firstChild);
- }
-
- return;
- }
- }
-
- node.innerHTML = html;
- });
-
- /**
- * HTML nodeType values that represent the type of the node
- */
- var ELEMENT_NODE = 1;
- var TEXT_NODE = 3;
- var COMMENT_NODE = 8;
- var DOCUMENT_NODE = 9;
- var DOCUMENT_FRAGMENT_NODE = 11;
-
- /**
- * Set the textContent property of a node. For text updates, it's faster
- * to set the `nodeValue` of the Text node directly instead of using
- * `.textContent` which will remove the existing node and create a new one.
- *
- * @param {DOMElement} node
- * @param {string} text
- * @internal
- */
-
- var setTextContent = function (node, text) {
- if (text) {
- var firstChild = node.firstChild;
-
- if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
- firstChild.nodeValue = text;
- return;
- }
- }
-
- node.textContent = text;
- };
-
- // List derived from Gecko source code:
- // https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js
- var shorthandToLonghand = {
- animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],
- background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],
- backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],
- border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],
- borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],
- borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],
- borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],
- borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
- borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],
- borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],
- borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],
- borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],
- borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],
- borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],
- borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],
- borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],
- borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],
- columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],
- columns: ['columnCount', 'columnWidth'],
- flex: ['flexBasis', 'flexGrow', 'flexShrink'],
- flexFlow: ['flexDirection', 'flexWrap'],
- font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],
- fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],
- gap: ['columnGap', 'rowGap'],
- grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
- gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],
- gridColumn: ['gridColumnEnd', 'gridColumnStart'],
- gridColumnGap: ['columnGap'],
- gridGap: ['columnGap', 'rowGap'],
- gridRow: ['gridRowEnd', 'gridRowStart'],
- gridRowGap: ['rowGap'],
- gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
- listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],
- margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],
- marker: ['markerEnd', 'markerMid', 'markerStart'],
- mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],
- maskPosition: ['maskPositionX', 'maskPositionY'],
- outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],
- overflow: ['overflowX', 'overflowY'],
- padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],
- placeContent: ['alignContent', 'justifyContent'],
- placeItems: ['alignItems', 'justifyItems'],
- placeSelf: ['alignSelf', 'justifySelf'],
- textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],
- textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],
- transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],
- wordWrap: ['overflowWrap']
- };
-
- /**
- * CSS properties which accept numbers but are not in units of "px".
- */
- var isUnitlessNumber = {
- animationIterationCount: true,
- aspectRatio: true,
- borderImageOutset: true,
- borderImageSlice: true,
- borderImageWidth: true,
- boxFlex: true,
- boxFlexGroup: true,
- boxOrdinalGroup: true,
- columnCount: true,
- columns: true,
- flex: true,
- flexGrow: true,
- flexPositive: true,
- flexShrink: true,
- flexNegative: true,
- flexOrder: true,
- gridArea: true,
- gridRow: true,
- gridRowEnd: true,
- gridRowSpan: true,
- gridRowStart: true,
- gridColumn: true,
- gridColumnEnd: true,
- gridColumnSpan: true,
- gridColumnStart: true,
- fontWeight: true,
- lineClamp: true,
- lineHeight: true,
- opacity: true,
- order: true,
- orphans: true,
- tabSize: true,
- widows: true,
- zIndex: true,
- zoom: true,
- // SVG-related properties
- fillOpacity: true,
- floodOpacity: true,
- stopOpacity: true,
- strokeDasharray: true,
- strokeDashoffset: true,
- strokeMiterlimit: true,
- strokeOpacity: true,
- strokeWidth: true
- };
- /**
- * @param {string} prefix vendor-specific prefix, eg: Webkit
- * @param {string} key style name, eg: transitionDuration
- * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
- * WebkitTransitionDuration
- */
-
- function prefixKey(prefix, key) {
- return prefix + key.charAt(0).toUpperCase() + key.substring(1);
- }
- /**
- * Support style names that may come passed in prefixed by adding permutations
- * of vendor prefixes.
- */
-
-
- var prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
- // infinite loop, because it iterates over the newly added props too.
-
- Object.keys(isUnitlessNumber).forEach(function (prop) {
- prefixes.forEach(function (prefix) {
- isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
- });
- });
-
- /**
- * Convert a value into the proper css writable value. The style name `name`
- * should be logical (no hyphens), as specified
- * in `CSSProperty.isUnitlessNumber`.
- *
- * @param {string} name CSS property name such as `topMargin`.
- * @param {*} value CSS property value such as `10px`.
- * @return {string} Normalized style value with dimensions applied.
- */
-
- function dangerousStyleValue(name, value, isCustomProperty) {
- // Note that we've removed escapeTextForBrowser() calls here since the
- // whole string will be escaped when the attribute is injected into
- // the markup. If you provide unsafe user data here they can inject
- // arbitrary CSS which may be problematic (I couldn't repro this):
- // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
- // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
- // This is not an XSS hole but instead a potential CSS injection issue
- // which has lead to a greater discussion about how we're going to
- // trust URLs moving forward. See #2115901
- var isEmpty = value == null || typeof value === 'boolean' || value === '';
-
- if (isEmpty) {
- return '';
- }
-
- if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
- return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
- }
-
- {
- checkCSSPropertyStringCoercion(value, name);
- }
-
- return ('' + value).trim();
- }
-
- var uppercasePattern = /([A-Z])/g;
- var msPattern = /^ms-/;
- /**
- * Hyphenates a camelcased CSS property name, for example:
- *
- * > hyphenateStyleName('backgroundColor')
- * < "background-color"
- * > hyphenateStyleName('MozTransition')
- * < "-moz-transition"
- * > hyphenateStyleName('msTransition')
- * < "-ms-transition"
- *
- * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
- * is converted to `-ms-`.
- */
-
- function hyphenateStyleName(name) {
- return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
- }
-
- var warnValidStyle = function () {};
-
- {
- // 'msTransform' is correct, but the other prefixes should be capitalized
- var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
- var msPattern$1 = /^-ms-/;
- var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon
-
- var badStyleValueWithSemicolonPattern = /;\s*$/;
- var warnedStyleNames = {};
- var warnedStyleValues = {};
- var warnedForNaNValue = false;
- var warnedForInfinityValue = false;
-
- var camelize = function (string) {
- return string.replace(hyphenPattern, function (_, character) {
- return character.toUpperCase();
- });
- };
-
- var warnHyphenatedStyleName = function (name) {
- if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
- return;
- }
-
- warnedStyleNames[name] = true;
-
- error('Unsupported style property %s. Did you mean %s?', name, // As Andi Smith suggests
- // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
- // is converted to lowercase `ms`.
- camelize(name.replace(msPattern$1, 'ms-')));
- };
-
- var warnBadVendoredStyleName = function (name) {
- if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
- return;
- }
-
- warnedStyleNames[name] = true;
-
- error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
- };
-
- var warnStyleValueWithSemicolon = function (name, value) {
- if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
- return;
- }
-
- warnedStyleValues[value] = true;
-
- error("Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
- };
-
- var warnStyleValueIsNaN = function (name, value) {
- if (warnedForNaNValue) {
- return;
- }
-
- warnedForNaNValue = true;
-
- error('`NaN` is an invalid value for the `%s` css style property.', name);
- };
-
- var warnStyleValueIsInfinity = function (name, value) {
- if (warnedForInfinityValue) {
- return;
- }
-
- warnedForInfinityValue = true;
-
- error('`Infinity` is an invalid value for the `%s` css style property.', name);
- };
-
- warnValidStyle = function (name, value) {
- if (name.indexOf('-') > -1) {
- warnHyphenatedStyleName(name);
- } else if (badVendoredStyleNamePattern.test(name)) {
- warnBadVendoredStyleName(name);
- } else if (badStyleValueWithSemicolonPattern.test(value)) {
- warnStyleValueWithSemicolon(name, value);
- }
-
- if (typeof value === 'number') {
- if (isNaN(value)) {
- warnStyleValueIsNaN(name, value);
- } else if (!isFinite(value)) {
- warnStyleValueIsInfinity(name, value);
- }
- }
- };
- }
-
- var warnValidStyle$1 = warnValidStyle;
-
- /**
- * Operations for dealing with CSS properties.
- */
-
- /**
- * This creates a string that is expected to be equivalent to the style
- * attribute generated by server-side rendering. It by-passes warnings and
- * security checks so it's not safe to use this value for anything other than
- * comparison. It is only used in DEV for SSR validation.
- */
-
- function createDangerousStringForStyles(styles) {
- {
- var serialized = '';
- var delimiter = '';
-
- for (var styleName in styles) {
- if (!styles.hasOwnProperty(styleName)) {
- continue;
- }
-
- var styleValue = styles[styleName];
-
- if (styleValue != null) {
- var isCustomProperty = styleName.indexOf('--') === 0;
- serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':';
- serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
- delimiter = ';';
- }
- }
-
- return serialized || null;
- }
- }
- /**
- * Sets the value for multiple styles on a node. If a value is specified as
- * '' (empty string), the corresponding style property will be unset.
- *
- * @param {DOMElement} node
- * @param {object} styles
- */
-
- function setValueForStyles(node, styles) {
- var style = node.style;
-
- for (var styleName in styles) {
- if (!styles.hasOwnProperty(styleName)) {
- continue;
- }
-
- var isCustomProperty = styleName.indexOf('--') === 0;
-
- {
- if (!isCustomProperty) {
- warnValidStyle$1(styleName, styles[styleName]);
- }
- }
-
- var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
-
- if (styleName === 'float') {
- styleName = 'cssFloat';
- }
-
- if (isCustomProperty) {
- style.setProperty(styleName, styleValue);
- } else {
- style[styleName] = styleValue;
- }
- }
- }
-
- function isValueEmpty(value) {
- return value == null || typeof value === 'boolean' || value === '';
- }
- /**
- * Given {color: 'red', overflow: 'hidden'} returns {
- * color: 'color',
- * overflowX: 'overflow',
- * overflowY: 'overflow',
- * }. This can be read as "the overflowY property was set by the overflow
- * shorthand". That is, the values are the property that each was derived from.
- */
-
-
- function expandShorthandMap(styles) {
- var expanded = {};
-
- for (var key in styles) {
- var longhands = shorthandToLonghand[key] || [key];
-
- for (var i = 0; i < longhands.length; i++) {
- expanded[longhands[i]] = key;
- }
- }
-
- return expanded;
- }
- /**
- * When mixing shorthand and longhand property names, we warn during updates if
- * we expect an incorrect result to occur. In particular, we warn for:
- *
- * Updating a shorthand property (longhand gets overwritten):
- * {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'}
- * becomes .style.font = 'baz'
- * Removing a shorthand property (longhand gets lost too):
- * {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'}
- * becomes .style.font = ''
- * Removing a longhand property (should revert to shorthand; doesn't):
- * {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'}
- * becomes .style.fontVariant = ''
- */
-
-
- function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) {
- {
- if (!nextStyles) {
- return;
- }
-
- var expandedUpdates = expandShorthandMap(styleUpdates);
- var expandedStyles = expandShorthandMap(nextStyles);
- var warnedAbout = {};
-
- for (var key in expandedUpdates) {
- var originalKey = expandedUpdates[key];
- var correctOriginalKey = expandedStyles[key];
-
- if (correctOriginalKey && originalKey !== correctOriginalKey) {
- var warningKey = originalKey + ',' + correctOriginalKey;
-
- if (warnedAbout[warningKey]) {
- continue;
- }
-
- warnedAbout[warningKey] = true;
-
- error('%s a style property during rerender (%s) when a ' + 'conflicting property is set (%s) can lead to styling bugs. To ' + "avoid this, don't mix shorthand and non-shorthand properties " + 'for the same value; instead, replace the shorthand with ' + 'separate values.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing' : 'Updating', originalKey, correctOriginalKey);
- }
- }
- }
- }
-
- // For HTML, certain tags should omit their close tag. We keep a list for
- // those special-case tags.
- var omittedCloseTags = {
- area: true,
- base: true,
- br: true,
- col: true,
- embed: true,
- hr: true,
- img: true,
- input: true,
- keygen: true,
- link: true,
- meta: true,
- param: true,
- source: true,
- track: true,
- wbr: true // NOTE: menuitem's close tag should be omitted, but that causes problems.
-
- };
-
- // `omittedCloseTags` except that `menuitem` should still have its closing tag.
-
- var voidElementTags = assign({
- menuitem: true
- }, omittedCloseTags);
-
- var HTML = '__html';
-
- function assertValidProps(tag, props) {
- if (!props) {
- return;
- } // Note the use of `==` which checks for null or undefined.
-
-
- if (voidElementTags[tag]) {
- if (props.children != null || props.dangerouslySetInnerHTML != null) {
- throw new Error(tag + " is a void element tag and must neither have `children` nor " + 'use `dangerouslySetInnerHTML`.');
- }
- }
-
- if (props.dangerouslySetInnerHTML != null) {
- if (props.children != null) {
- throw new Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.');
- }
-
- if (typeof props.dangerouslySetInnerHTML !== 'object' || !(HTML in props.dangerouslySetInnerHTML)) {
- throw new Error('`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' + 'Please visit https://reactjs.org/link/dangerously-set-inner-html ' + 'for more information.');
- }
- }
-
- {
- if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) {
- error('A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.');
- }
- }
-
- if (props.style != null && typeof props.style !== 'object') {
- throw new Error('The `style` prop expects a mapping from style properties to values, ' + "not a string. For example, style={{marginRight: spacing + 'em'}} when " + 'using JSX.');
- }
- }
-
- function isCustomComponent(tagName, props) {
- if (tagName.indexOf('-') === -1) {
- return typeof props.is === 'string';
- }
-
- switch (tagName) {
- // These are reserved SVG and MathML elements.
- // We don't mind this list too much because we expect it to never grow.
- // The alternative is to track the namespace in a few places which is convoluted.
- // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
- case 'annotation-xml':
- case 'color-profile':
- case 'font-face':
- case 'font-face-src':
- case 'font-face-uri':
- case 'font-face-format':
- case 'font-face-name':
- case 'missing-glyph':
- return false;
-
- default:
- return true;
- }
- }
-
- // When adding attributes to the HTML or SVG allowed attribute list, be sure to
- // also add them to this module to ensure casing and incorrect name
- // warnings.
- var possibleStandardNames = {
- // HTML
- accept: 'accept',
- acceptcharset: 'acceptCharset',
- 'accept-charset': 'acceptCharset',
- accesskey: 'accessKey',
- action: 'action',
- allowfullscreen: 'allowFullScreen',
- alt: 'alt',
- as: 'as',
- async: 'async',
- autocapitalize: 'autoCapitalize',
- autocomplete: 'autoComplete',
- autocorrect: 'autoCorrect',
- autofocus: 'autoFocus',
- autoplay: 'autoPlay',
- autosave: 'autoSave',
- capture: 'capture',
- cellpadding: 'cellPadding',
- cellspacing: 'cellSpacing',
- challenge: 'challenge',
- charset: 'charSet',
- checked: 'checked',
- children: 'children',
- cite: 'cite',
- class: 'className',
- classid: 'classID',
- classname: 'className',
- cols: 'cols',
- colspan: 'colSpan',
- content: 'content',
- contenteditable: 'contentEditable',
- contextmenu: 'contextMenu',
- controls: 'controls',
- controlslist: 'controlsList',
- coords: 'coords',
- crossorigin: 'crossOrigin',
- dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
- data: 'data',
- datetime: 'dateTime',
- default: 'default',
- defaultchecked: 'defaultChecked',
- defaultvalue: 'defaultValue',
- defer: 'defer',
- dir: 'dir',
- disabled: 'disabled',
- disablepictureinpicture: 'disablePictureInPicture',
- disableremoteplayback: 'disableRemotePlayback',
- download: 'download',
- draggable: 'draggable',
- enctype: 'encType',
- enterkeyhint: 'enterKeyHint',
- for: 'htmlFor',
- form: 'form',
- formmethod: 'formMethod',
- formaction: 'formAction',
- formenctype: 'formEncType',
- formnovalidate: 'formNoValidate',
- formtarget: 'formTarget',
- frameborder: 'frameBorder',
- headers: 'headers',
- height: 'height',
- hidden: 'hidden',
- high: 'high',
- href: 'href',
- hreflang: 'hrefLang',
- htmlfor: 'htmlFor',
- httpequiv: 'httpEquiv',
- 'http-equiv': 'httpEquiv',
- icon: 'icon',
- id: 'id',
- imagesizes: 'imageSizes',
- imagesrcset: 'imageSrcSet',
- innerhtml: 'innerHTML',
- inputmode: 'inputMode',
- integrity: 'integrity',
- is: 'is',
- itemid: 'itemID',
- itemprop: 'itemProp',
- itemref: 'itemRef',
- itemscope: 'itemScope',
- itemtype: 'itemType',
- keyparams: 'keyParams',
- keytype: 'keyType',
- kind: 'kind',
- label: 'label',
- lang: 'lang',
- list: 'list',
- loop: 'loop',
- low: 'low',
- manifest: 'manifest',
- marginwidth: 'marginWidth',
- marginheight: 'marginHeight',
- max: 'max',
- maxlength: 'maxLength',
- media: 'media',
- mediagroup: 'mediaGroup',
- method: 'method',
- min: 'min',
- minlength: 'minLength',
- multiple: 'multiple',
- muted: 'muted',
- name: 'name',
- nomodule: 'noModule',
- nonce: 'nonce',
- novalidate: 'noValidate',
- open: 'open',
- optimum: 'optimum',
- pattern: 'pattern',
- placeholder: 'placeholder',
- playsinline: 'playsInline',
- poster: 'poster',
- preload: 'preload',
- profile: 'profile',
- radiogroup: 'radioGroup',
- readonly: 'readOnly',
- referrerpolicy: 'referrerPolicy',
- rel: 'rel',
- required: 'required',
- reversed: 'reversed',
- role: 'role',
- rows: 'rows',
- rowspan: 'rowSpan',
- sandbox: 'sandbox',
- scope: 'scope',
- scoped: 'scoped',
- scrolling: 'scrolling',
- seamless: 'seamless',
- selected: 'selected',
- shape: 'shape',
- size: 'size',
- sizes: 'sizes',
- span: 'span',
- spellcheck: 'spellCheck',
- src: 'src',
- srcdoc: 'srcDoc',
- srclang: 'srcLang',
- srcset: 'srcSet',
- start: 'start',
- step: 'step',
- style: 'style',
- summary: 'summary',
- tabindex: 'tabIndex',
- target: 'target',
- title: 'title',
- type: 'type',
- usemap: 'useMap',
- value: 'value',
- width: 'width',
- wmode: 'wmode',
- wrap: 'wrap',
- // SVG
- about: 'about',
- accentheight: 'accentHeight',
- 'accent-height': 'accentHeight',
- accumulate: 'accumulate',
- additive: 'additive',
- alignmentbaseline: 'alignmentBaseline',
- 'alignment-baseline': 'alignmentBaseline',
- allowreorder: 'allowReorder',
- alphabetic: 'alphabetic',
- amplitude: 'amplitude',
- arabicform: 'arabicForm',
- 'arabic-form': 'arabicForm',
- ascent: 'ascent',
- attributename: 'attributeName',
- attributetype: 'attributeType',
- autoreverse: 'autoReverse',
- azimuth: 'azimuth',
- basefrequency: 'baseFrequency',
- baselineshift: 'baselineShift',
- 'baseline-shift': 'baselineShift',
- baseprofile: 'baseProfile',
- bbox: 'bbox',
- begin: 'begin',
- bias: 'bias',
- by: 'by',
- calcmode: 'calcMode',
- capheight: 'capHeight',
- 'cap-height': 'capHeight',
- clip: 'clip',
- clippath: 'clipPath',
- 'clip-path': 'clipPath',
- clippathunits: 'clipPathUnits',
- cliprule: 'clipRule',
- 'clip-rule': 'clipRule',
- color: 'color',
- colorinterpolation: 'colorInterpolation',
- 'color-interpolation': 'colorInterpolation',
- colorinterpolationfilters: 'colorInterpolationFilters',
- 'color-interpolation-filters': 'colorInterpolationFilters',
- colorprofile: 'colorProfile',
- 'color-profile': 'colorProfile',
- colorrendering: 'colorRendering',
- 'color-rendering': 'colorRendering',
- contentscripttype: 'contentScriptType',
- contentstyletype: 'contentStyleType',
- cursor: 'cursor',
- cx: 'cx',
- cy: 'cy',
- d: 'd',
- datatype: 'datatype',
- decelerate: 'decelerate',
- descent: 'descent',
- diffuseconstant: 'diffuseConstant',
- direction: 'direction',
- display: 'display',
- divisor: 'divisor',
- dominantbaseline: 'dominantBaseline',
- 'dominant-baseline': 'dominantBaseline',
- dur: 'dur',
- dx: 'dx',
- dy: 'dy',
- edgemode: 'edgeMode',
- elevation: 'elevation',
- enablebackground: 'enableBackground',
- 'enable-background': 'enableBackground',
- end: 'end',
- exponent: 'exponent',
- externalresourcesrequired: 'externalResourcesRequired',
- fill: 'fill',
- fillopacity: 'fillOpacity',
- 'fill-opacity': 'fillOpacity',
- fillrule: 'fillRule',
- 'fill-rule': 'fillRule',
- filter: 'filter',
- filterres: 'filterRes',
- filterunits: 'filterUnits',
- floodopacity: 'floodOpacity',
- 'flood-opacity': 'floodOpacity',
- floodcolor: 'floodColor',
- 'flood-color': 'floodColor',
- focusable: 'focusable',
- fontfamily: 'fontFamily',
- 'font-family': 'fontFamily',
- fontsize: 'fontSize',
- 'font-size': 'fontSize',
- fontsizeadjust: 'fontSizeAdjust',
- 'font-size-adjust': 'fontSizeAdjust',
- fontstretch: 'fontStretch',
- 'font-stretch': 'fontStretch',
- fontstyle: 'fontStyle',
- 'font-style': 'fontStyle',
- fontvariant: 'fontVariant',
- 'font-variant': 'fontVariant',
- fontweight: 'fontWeight',
- 'font-weight': 'fontWeight',
- format: 'format',
- from: 'from',
- fx: 'fx',
- fy: 'fy',
- g1: 'g1',
- g2: 'g2',
- glyphname: 'glyphName',
- 'glyph-name': 'glyphName',
- glyphorientationhorizontal: 'glyphOrientationHorizontal',
- 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
- glyphorientationvertical: 'glyphOrientationVertical',
- 'glyph-orientation-vertical': 'glyphOrientationVertical',
- glyphref: 'glyphRef',
- gradienttransform: 'gradientTransform',
- gradientunits: 'gradientUnits',
- hanging: 'hanging',
- horizadvx: 'horizAdvX',
- 'horiz-adv-x': 'horizAdvX',
- horizoriginx: 'horizOriginX',
- 'horiz-origin-x': 'horizOriginX',
- ideographic: 'ideographic',
- imagerendering: 'imageRendering',
- 'image-rendering': 'imageRendering',
- in2: 'in2',
- in: 'in',
- inlist: 'inlist',
- intercept: 'intercept',
- k1: 'k1',
- k2: 'k2',
- k3: 'k3',
- k4: 'k4',
- k: 'k',
- kernelmatrix: 'kernelMatrix',
- kernelunitlength: 'kernelUnitLength',
- kerning: 'kerning',
- keypoints: 'keyPoints',
- keysplines: 'keySplines',
- keytimes: 'keyTimes',
- lengthadjust: 'lengthAdjust',
- letterspacing: 'letterSpacing',
- 'letter-spacing': 'letterSpacing',
- lightingcolor: 'lightingColor',
- 'lighting-color': 'lightingColor',
- limitingconeangle: 'limitingConeAngle',
- local: 'local',
- markerend: 'markerEnd',
- 'marker-end': 'markerEnd',
- markerheight: 'markerHeight',
- markermid: 'markerMid',
- 'marker-mid': 'markerMid',
- markerstart: 'markerStart',
- 'marker-start': 'markerStart',
- markerunits: 'markerUnits',
- markerwidth: 'markerWidth',
- mask: 'mask',
- maskcontentunits: 'maskContentUnits',
- maskunits: 'maskUnits',
- mathematical: 'mathematical',
- mode: 'mode',
- numoctaves: 'numOctaves',
- offset: 'offset',
- opacity: 'opacity',
- operator: 'operator',
- order: 'order',
- orient: 'orient',
- orientation: 'orientation',
- origin: 'origin',
- overflow: 'overflow',
- overlineposition: 'overlinePosition',
- 'overline-position': 'overlinePosition',
- overlinethickness: 'overlineThickness',
- 'overline-thickness': 'overlineThickness',
- paintorder: 'paintOrder',
- 'paint-order': 'paintOrder',
- panose1: 'panose1',
- 'panose-1': 'panose1',
- pathlength: 'pathLength',
- patterncontentunits: 'patternContentUnits',
- patterntransform: 'patternTransform',
- patternunits: 'patternUnits',
- pointerevents: 'pointerEvents',
- 'pointer-events': 'pointerEvents',
- points: 'points',
- pointsatx: 'pointsAtX',
- pointsaty: 'pointsAtY',
- pointsatz: 'pointsAtZ',
- prefix: 'prefix',
- preservealpha: 'preserveAlpha',
- preserveaspectratio: 'preserveAspectRatio',
- primitiveunits: 'primitiveUnits',
- property: 'property',
- r: 'r',
- radius: 'radius',
- refx: 'refX',
- refy: 'refY',
- renderingintent: 'renderingIntent',
- 'rendering-intent': 'renderingIntent',
- repeatcount: 'repeatCount',
- repeatdur: 'repeatDur',
- requiredextensions: 'requiredExtensions',
- requiredfeatures: 'requiredFeatures',
- resource: 'resource',
- restart: 'restart',
- result: 'result',
- results: 'results',
- rotate: 'rotate',
- rx: 'rx',
- ry: 'ry',
- scale: 'scale',
- security: 'security',
- seed: 'seed',
- shaperendering: 'shapeRendering',
- 'shape-rendering': 'shapeRendering',
- slope: 'slope',
- spacing: 'spacing',
- specularconstant: 'specularConstant',
- specularexponent: 'specularExponent',
- speed: 'speed',
- spreadmethod: 'spreadMethod',
- startoffset: 'startOffset',
- stddeviation: 'stdDeviation',
- stemh: 'stemh',
- stemv: 'stemv',
- stitchtiles: 'stitchTiles',
- stopcolor: 'stopColor',
- 'stop-color': 'stopColor',
- stopopacity: 'stopOpacity',
- 'stop-opacity': 'stopOpacity',
- strikethroughposition: 'strikethroughPosition',
- 'strikethrough-position': 'strikethroughPosition',
- strikethroughthickness: 'strikethroughThickness',
- 'strikethrough-thickness': 'strikethroughThickness',
- string: 'string',
- stroke: 'stroke',
- strokedasharray: 'strokeDasharray',
- 'stroke-dasharray': 'strokeDasharray',
- strokedashoffset: 'strokeDashoffset',
- 'stroke-dashoffset': 'strokeDashoffset',
- strokelinecap: 'strokeLinecap',
- 'stroke-linecap': 'strokeLinecap',
- strokelinejoin: 'strokeLinejoin',
- 'stroke-linejoin': 'strokeLinejoin',
- strokemiterlimit: 'strokeMiterlimit',
- 'stroke-miterlimit': 'strokeMiterlimit',
- strokewidth: 'strokeWidth',
- 'stroke-width': 'strokeWidth',
- strokeopacity: 'strokeOpacity',
- 'stroke-opacity': 'strokeOpacity',
- suppresscontenteditablewarning: 'suppressContentEditableWarning',
- suppresshydrationwarning: 'suppressHydrationWarning',
- surfacescale: 'surfaceScale',
- systemlanguage: 'systemLanguage',
- tablevalues: 'tableValues',
- targetx: 'targetX',
- targety: 'targetY',
- textanchor: 'textAnchor',
- 'text-anchor': 'textAnchor',
- textdecoration: 'textDecoration',
- 'text-decoration': 'textDecoration',
- textlength: 'textLength',
- textrendering: 'textRendering',
- 'text-rendering': 'textRendering',
- to: 'to',
- transform: 'transform',
- typeof: 'typeof',
- u1: 'u1',
- u2: 'u2',
- underlineposition: 'underlinePosition',
- 'underline-position': 'underlinePosition',
- underlinethickness: 'underlineThickness',
- 'underline-thickness': 'underlineThickness',
- unicode: 'unicode',
- unicodebidi: 'unicodeBidi',
- 'unicode-bidi': 'unicodeBidi',
- unicoderange: 'unicodeRange',
- 'unicode-range': 'unicodeRange',
- unitsperem: 'unitsPerEm',
- 'units-per-em': 'unitsPerEm',
- unselectable: 'unselectable',
- valphabetic: 'vAlphabetic',
- 'v-alphabetic': 'vAlphabetic',
- values: 'values',
- vectoreffect: 'vectorEffect',
- 'vector-effect': 'vectorEffect',
- version: 'version',
- vertadvy: 'vertAdvY',
- 'vert-adv-y': 'vertAdvY',
- vertoriginx: 'vertOriginX',
- 'vert-origin-x': 'vertOriginX',
- vertoriginy: 'vertOriginY',
- 'vert-origin-y': 'vertOriginY',
- vhanging: 'vHanging',
- 'v-hanging': 'vHanging',
- videographic: 'vIdeographic',
- 'v-ideographic': 'vIdeographic',
- viewbox: 'viewBox',
- viewtarget: 'viewTarget',
- visibility: 'visibility',
- vmathematical: 'vMathematical',
- 'v-mathematical': 'vMathematical',
- vocab: 'vocab',
- widths: 'widths',
- wordspacing: 'wordSpacing',
- 'word-spacing': 'wordSpacing',
- writingmode: 'writingMode',
- 'writing-mode': 'writingMode',
- x1: 'x1',
- x2: 'x2',
- x: 'x',
- xchannelselector: 'xChannelSelector',
- xheight: 'xHeight',
- 'x-height': 'xHeight',
- xlinkactuate: 'xlinkActuate',
- 'xlink:actuate': 'xlinkActuate',
- xlinkarcrole: 'xlinkArcrole',
- 'xlink:arcrole': 'xlinkArcrole',
- xlinkhref: 'xlinkHref',
- 'xlink:href': 'xlinkHref',
- xlinkrole: 'xlinkRole',
- 'xlink:role': 'xlinkRole',
- xlinkshow: 'xlinkShow',
- 'xlink:show': 'xlinkShow',
- xlinktitle: 'xlinkTitle',
- 'xlink:title': 'xlinkTitle',
- xlinktype: 'xlinkType',
- 'xlink:type': 'xlinkType',
- xmlbase: 'xmlBase',
- 'xml:base': 'xmlBase',
- xmllang: 'xmlLang',
- 'xml:lang': 'xmlLang',
- xmlns: 'xmlns',
- 'xml:space': 'xmlSpace',
- xmlnsxlink: 'xmlnsXlink',
- 'xmlns:xlink': 'xmlnsXlink',
- xmlspace: 'xmlSpace',
- y1: 'y1',
- y2: 'y2',
- y: 'y',
- ychannelselector: 'yChannelSelector',
- z: 'z',
- zoomandpan: 'zoomAndPan'
- };
-
- var ariaProperties = {
- 'aria-current': 0,
- // state
- 'aria-description': 0,
- 'aria-details': 0,
- 'aria-disabled': 0,
- // state
- 'aria-hidden': 0,
- // state
- 'aria-invalid': 0,
- // state
- 'aria-keyshortcuts': 0,
- 'aria-label': 0,
- 'aria-roledescription': 0,
- // Widget Attributes
- 'aria-autocomplete': 0,
- 'aria-checked': 0,
- 'aria-expanded': 0,
- 'aria-haspopup': 0,
- 'aria-level': 0,
- 'aria-modal': 0,
- 'aria-multiline': 0,
- 'aria-multiselectable': 0,
- 'aria-orientation': 0,
- 'aria-placeholder': 0,
- 'aria-pressed': 0,
- 'aria-readonly': 0,
- 'aria-required': 0,
- 'aria-selected': 0,
- 'aria-sort': 0,
- 'aria-valuemax': 0,
- 'aria-valuemin': 0,
- 'aria-valuenow': 0,
- 'aria-valuetext': 0,
- // Live Region Attributes
- 'aria-atomic': 0,
- 'aria-busy': 0,
- 'aria-live': 0,
- 'aria-relevant': 0,
- // Drag-and-Drop Attributes
- 'aria-dropeffect': 0,
- 'aria-grabbed': 0,
- // Relationship Attributes
- 'aria-activedescendant': 0,
- 'aria-colcount': 0,
- 'aria-colindex': 0,
- 'aria-colspan': 0,
- 'aria-controls': 0,
- 'aria-describedby': 0,
- 'aria-errormessage': 0,
- 'aria-flowto': 0,
- 'aria-labelledby': 0,
- 'aria-owns': 0,
- 'aria-posinset': 0,
- 'aria-rowcount': 0,
- 'aria-rowindex': 0,
- 'aria-rowspan': 0,
- 'aria-setsize': 0
- };
-
- var warnedProperties = {};
- var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
- var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
-
- function validateProperty(tagName, name) {
- {
- if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) {
- return true;
- }
-
- if (rARIACamel.test(name)) {
- var ariaName = 'aria-' + name.slice(4).toLowerCase();
- var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; // If this is an aria-* attribute, but is not listed in the known DOM
- // DOM properties, then it is an invalid aria-* attribute.
-
- if (correctName == null) {
- error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
-
- warnedProperties[name] = true;
- return true;
- } // aria-* attributes should be lowercase; suggest the lowercase version.
-
-
- if (name !== correctName) {
- error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
-
- warnedProperties[name] = true;
- return true;
- }
- }
-
- if (rARIA.test(name)) {
- var lowerCasedName = name.toLowerCase();
- var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; // If this is an aria-* attribute, but is not listed in the known DOM
- // DOM properties, then it is an invalid aria-* attribute.
-
- if (standardName == null) {
- warnedProperties[name] = true;
- return false;
- } // aria-* attributes should be lowercase; suggest the lowercase version.
-
-
- if (name !== standardName) {
- error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
-
- warnedProperties[name] = true;
- return true;
- }
- }
- }
-
- return true;
- }
-
- function warnInvalidARIAProps(type, props) {
- {
- var invalidProps = [];
-
- for (var key in props) {
- var isValid = validateProperty(type, key);
-
- if (!isValid) {
- invalidProps.push(key);
- }
- }
-
- var unknownPropString = invalidProps.map(function (prop) {
- return '`' + prop + '`';
- }).join(', ');
-
- if (invalidProps.length === 1) {
- error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);
- } else if (invalidProps.length > 1) {
- error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);
- }
- }
- }
-
- function validateProperties(type, props) {
- if (isCustomComponent(type, props)) {
- return;
- }
-
- warnInvalidARIAProps(type, props);
- }
-
- var didWarnValueNull = false;
- function validateProperties$1(type, props) {
- {
- if (type !== 'input' && type !== 'textarea' && type !== 'select') {
- return;
- }
-
- if (props != null && props.value === null && !didWarnValueNull) {
- didWarnValueNull = true;
-
- if (type === 'select' && props.multiple) {
- error('`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type);
- } else {
- error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);
- }
- }
- }
- }
-
- var validateProperty$1 = function () {};
-
- {
- var warnedProperties$1 = {};
- var EVENT_NAME_REGEX = /^on./;
- var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
- var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
- var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
-
- validateProperty$1 = function (tagName, name, value, eventRegistry) {
- if (hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
- return true;
- }
-
- var lowerCasedName = name.toLowerCase();
-
- if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
- error('React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');
-
- warnedProperties$1[name] = true;
- return true;
- } // We can't rely on the event system being injected on the server.
-
-
- if (eventRegistry != null) {
- var registrationNameDependencies = eventRegistry.registrationNameDependencies,
- possibleRegistrationNames = eventRegistry.possibleRegistrationNames;
-
- if (registrationNameDependencies.hasOwnProperty(name)) {
- return true;
- }
-
- var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
-
- if (registrationName != null) {
- error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
-
- warnedProperties$1[name] = true;
- return true;
- }
-
- if (EVENT_NAME_REGEX.test(name)) {
- error('Unknown event handler property `%s`. It will be ignored.', name);
-
- warnedProperties$1[name] = true;
- return true;
- }
- } else if (EVENT_NAME_REGEX.test(name)) {
- // If no event plugins have been injected, we are in a server environment.
- // So we can't tell if the event name is correct for sure, but we can filter
- // out known bad ones like `onclick`. We can't suggest a specific replacement though.
- if (INVALID_EVENT_NAME_REGEX.test(name)) {
- error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
- }
-
- warnedProperties$1[name] = true;
- return true;
- } // Let the ARIA attribute hook validate ARIA attributes
-
-
- if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
- return true;
- }
-
- if (lowerCasedName === 'innerhtml') {
- error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
-
- warnedProperties$1[name] = true;
- return true;
- }
-
- if (lowerCasedName === 'aria') {
- error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
-
- warnedProperties$1[name] = true;
- return true;
- }
-
- if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
- error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
-
- warnedProperties$1[name] = true;
- return true;
- }
-
- if (typeof value === 'number' && isNaN(value)) {
- error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
-
- warnedProperties$1[name] = true;
- return true;
- }
-
- var propertyInfo = getPropertyInfo(name);
- var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED; // Known attributes should match the casing specified in the property config.
-
- if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
- var standardName = possibleStandardNames[lowerCasedName];
-
- if (standardName !== name) {
- error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
-
- warnedProperties$1[name] = true;
- return true;
- }
- } else if (!isReserved && name !== lowerCasedName) {
- // Unknown attributes should have lowercase casing since that's how they
- // will be cased anyway with server rendering.
- error('React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName);
-
- warnedProperties$1[name] = true;
- return true;
- }
-
- if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
- if (value) {
- error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.', value, name, name, value, name);
- } else {
- error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);
- }
-
- warnedProperties$1[name] = true;
- return true;
- } // Now that we've validated casing, do not validate
- // data types for reserved props
-
-
- if (isReserved) {
- return true;
- } // Warn when a known attribute is a bad type
-
-
- if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
- warnedProperties$1[name] = true;
- return false;
- } // Warn when passing the strings 'false' or 'true' into a boolean prop
-
-
- if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
- error('Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string "false".', name, value);
-
- warnedProperties$1[name] = true;
- return true;
- }
-
- return true;
- };
- }
-
- var warnUnknownProperties = function (type, props, eventRegistry) {
- {
- var unknownProps = [];
-
- for (var key in props) {
- var isValid = validateProperty$1(type, key, props[key], eventRegistry);
-
- if (!isValid) {
- unknownProps.push(key);
- }
- }
-
- var unknownPropString = unknownProps.map(function (prop) {
- return '`' + prop + '`';
- }).join(', ');
-
- if (unknownProps.length === 1) {
- error('Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type);
- } else if (unknownProps.length > 1) {
- error('Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type);
- }
- }
- };
-
- function validateProperties$2(type, props, eventRegistry) {
- if (isCustomComponent(type, props)) {
- return;
- }
-
- warnUnknownProperties(type, props, eventRegistry);
- }
-
- var IS_EVENT_HANDLE_NON_MANAGED_NODE = 1;
- var IS_NON_DELEGATED = 1 << 1;
- var IS_CAPTURE_PHASE = 1 << 2;
- // set to LEGACY_FB_SUPPORT. LEGACY_FB_SUPPORT only gets set when
- // we call willDeferLaterForLegacyFBSupport, thus not bailing out
- // will result in endless cycles like an infinite loop.
- // We also don't want to defer during event replaying.
-
- var SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS = IS_EVENT_HANDLE_NON_MANAGED_NODE | IS_NON_DELEGATED | IS_CAPTURE_PHASE;
-
- // This exists to avoid circular dependency between ReactDOMEventReplaying
- // and DOMPluginEventSystem.
- var currentReplayingEvent = null;
- function setReplayingEvent(event) {
- {
- if (currentReplayingEvent !== null) {
- error('Expected currently replaying event to be null. This error ' + 'is likely caused by a bug in React. Please file an issue.');
- }
- }
-
- currentReplayingEvent = event;
- }
- function resetReplayingEvent() {
- {
- if (currentReplayingEvent === null) {
- error('Expected currently replaying event to not be null. This error ' + 'is likely caused by a bug in React. Please file an issue.');
- }
- }
-
- currentReplayingEvent = null;
- }
- function isReplayingEvent(event) {
- return event === currentReplayingEvent;
- }
-
- /**
- * Gets the target node from a native browser event by accounting for
- * inconsistencies in browser DOM APIs.
- *
- * @param {object} nativeEvent Native browser event.
- * @return {DOMEventTarget} Target node.
- */
-
- function getEventTarget(nativeEvent) {
- // Fallback to nativeEvent.srcElement for IE9
- // https://github.com/facebook/react/issues/12506
- var target = nativeEvent.target || nativeEvent.srcElement || window; // Normalize SVG <use> element events #4963
-
- if (target.correspondingUseElement) {
- target = target.correspondingUseElement;
- } // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
- // @see http://www.quirksmode.org/js/events_properties.html
-
-
- return target.nodeType === TEXT_NODE ? target.parentNode : target;
- }
-
- var restoreImpl = null;
- var restoreTarget = null;
- var restoreQueue = null;
-
- function restoreStateOfTarget(target) {
- // We perform this translation at the end of the event loop so that we
- // always receive the correct fiber here
- var internalInstance = getInstanceFromNode(target);
-
- if (!internalInstance) {
- // Unmounted
- return;
- }
-
- if (typeof restoreImpl !== 'function') {
- throw new Error('setRestoreImplementation() needs to be called to handle a target for controlled ' + 'events. This error is likely caused by a bug in React. Please file an issue.');
- }
-
- var stateNode = internalInstance.stateNode; // Guard against Fiber being unmounted.
-
- if (stateNode) {
- var _props = getFiberCurrentPropsFromNode(stateNode);
-
- restoreImpl(internalInstance.stateNode, internalInstance.type, _props);
- }
- }
-
- function setRestoreImplementation(impl) {
- restoreImpl = impl;
- }
- function enqueueStateRestore(target) {
- if (restoreTarget) {
- if (restoreQueue) {
- restoreQueue.push(target);
- } else {
- restoreQueue = [target];
- }
- } else {
- restoreTarget = target;
- }
- }
- function needsStateRestore() {
- return restoreTarget !== null || restoreQueue !== null;
- }
- function restoreStateIfNeeded() {
- if (!restoreTarget) {
- return;
- }
-
- var target = restoreTarget;
- var queuedTargets = restoreQueue;
- restoreTarget = null;
- restoreQueue = null;
- restoreStateOfTarget(target);
-
- if (queuedTargets) {
- for (var i = 0; i < queuedTargets.length; i++) {
- restoreStateOfTarget(queuedTargets[i]);
- }
- }
- }
-
- // the renderer. Such as when we're dispatching events or if third party
- // libraries need to call batchedUpdates. Eventually, this API will go away when
- // everything is batched by default. We'll then have a similar API to opt-out of
- // scheduled work and instead do synchronous work.
- // Defaults
-
- var batchedUpdatesImpl = function (fn, bookkeeping) {
- return fn(bookkeeping);
- };
-
- var flushSyncImpl = function () {};
-
- var isInsideEventHandler = false;
-
- function finishEventHandler() {
- // Here we wait until all updates have propagated, which is important
- // when using controlled components within layers:
- // https://github.com/facebook/react/issues/1698
- // Then we restore state of any controlled component.
- var controlledComponentsHavePendingUpdates = needsStateRestore();
-
- if (controlledComponentsHavePendingUpdates) {
- // If a controlled event was fired, we may need to restore the state of
- // the DOM node back to the controlled value. This is necessary when React
- // bails out of the update without touching the DOM.
- // TODO: Restore state in the microtask, after the discrete updates flush,
- // instead of early flushing them here.
- flushSyncImpl();
- restoreStateIfNeeded();
- }
- }
-
- function batchedUpdates(fn, a, b) {
- if (isInsideEventHandler) {
- // If we are currently inside another batch, we need to wait until it
- // fully completes before restoring state.
- return fn(a, b);
- }
-
- isInsideEventHandler = true;
-
- try {
- return batchedUpdatesImpl(fn, a, b);
- } finally {
- isInsideEventHandler = false;
- finishEventHandler();
- }
- } // TODO: Replace with flushSync
- function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushSyncImpl) {
- batchedUpdatesImpl = _batchedUpdatesImpl;
- flushSyncImpl = _flushSyncImpl;
- }
-
- function isInteractive(tag) {
- return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
- }
-
- function shouldPreventMouseEvent(name, type, props) {
- switch (name) {
- case 'onClick':
- case 'onClickCapture':
- case 'onDoubleClick':
- case 'onDoubleClickCapture':
- case 'onMouseDown':
- case 'onMouseDownCapture':
- case 'onMouseMove':
- case 'onMouseMoveCapture':
- case 'onMouseUp':
- case 'onMouseUpCapture':
- case 'onMouseEnter':
- return !!(props.disabled && isInteractive(type));
-
- default:
- return false;
- }
- }
- /**
- * @param {object} inst The instance, which is the source of events.
- * @param {string} registrationName Name of listener (e.g. `onClick`).
- * @return {?function} The stored callback.
- */
-
-
- function getListener(inst, registrationName) {
- var stateNode = inst.stateNode;
-
- if (stateNode === null) {
- // Work in progress (ex: onload events in incremental mode).
- return null;
- }
-
- var props = getFiberCurrentPropsFromNode(stateNode);
-
- if (props === null) {
- // Work in progress.
- return null;
- }
-
- var listener = props[registrationName];
-
- if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
- return null;
- }
-
- if (listener && typeof listener !== 'function') {
- throw new Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type.");
- }
-
- return listener;
- }
-
- var passiveBrowserEventsSupported = false; // Check if browser support events with passive listeners
- // https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support
-
- if (canUseDOM) {
- try {
- var options = {}; // $FlowFixMe: Ignore Flow complaining about needing a value
-
- Object.defineProperty(options, 'passive', {
- get: function () {
- passiveBrowserEventsSupported = true;
- }
- });
- window.addEventListener('test', options, options);
- window.removeEventListener('test', options, options);
- } catch (e) {
- passiveBrowserEventsSupported = false;
- }
- }
-
- function invokeGuardedCallbackProd(name, func, context, a, b, c, d, e, f) {
- var funcArgs = Array.prototype.slice.call(arguments, 3);
-
- try {
- func.apply(context, funcArgs);
- } catch (error) {
- this.onError(error);
- }
- }
-
- var invokeGuardedCallbackImpl = invokeGuardedCallbackProd;
-
- {
- // In DEV mode, we swap out invokeGuardedCallback for a special version
- // that plays more nicely with the browser's DevTools. The idea is to preserve
- // "Pause on exceptions" behavior. Because React wraps all user-provided
- // functions in invokeGuardedCallback, and the production version of
- // invokeGuardedCallback uses a try-catch, all user exceptions are treated
- // like caught exceptions, and the DevTools won't pause unless the developer
- // takes the extra step of enabling pause on caught exceptions. This is
- // unintuitive, though, because even though React has caught the error, from
- // the developer's perspective, the error is uncaught.
- //
- // To preserve the expected "Pause on exceptions" behavior, we don't use a
- // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
- // DOM node, and call the user-provided callback from inside an event handler
- // for that fake event. If the callback throws, the error is "captured" using
- // a global event handler. But because the error happens in a different
- // event loop context, it does not interrupt the normal program flow.
- // Effectively, this gives us try-catch behavior without actually using
- // try-catch. Neat!
- // Check that the browser supports the APIs we need to implement our special
- // DEV version of invokeGuardedCallback
- if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
- var fakeNode = document.createElement('react');
-
- invokeGuardedCallbackImpl = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) {
- // If document doesn't exist we know for sure we will crash in this method
- // when we call document.createEvent(). However this can cause confusing
- // errors: https://github.com/facebook/create-react-app/issues/3482
- // So we preemptively throw with a better message instead.
- if (typeof document === 'undefined' || document === null) {
- throw new Error('The `document` global was defined when React was initialized, but is not ' + 'defined anymore. This can happen in a test environment if a component ' + 'schedules an update from an asynchronous callback, but the test has already ' + 'finished running. To solve this, you can either unmount the component at ' + 'the end of your test (and ensure that any asynchronous operations get ' + 'canceled in `componentWillUnmount`), or you can change the test itself ' + 'to be asynchronous.');
- }
-
- var evt = document.createEvent('Event');
- var didCall = false; // Keeps track of whether the user-provided callback threw an error. We
- // set this to true at the beginning, then set it to false right after
- // calling the function. If the function errors, `didError` will never be
- // set to false. This strategy works even if the browser is flaky and
- // fails to call our global error handler, because it doesn't rely on
- // the error event at all.
-
- var didError = true; // Keeps track of the value of window.event so that we can reset it
- // during the callback to let user code access window.event in the
- // browsers that support it.
-
- var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event
- // dispatching: https://github.com/facebook/react/issues/13688
-
- var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');
-
- function restoreAfterDispatch() {
- // We immediately remove the callback from event listeners so that
- // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
- // nested call would trigger the fake event handlers of any call higher
- // in the stack.
- fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the
- // window.event assignment in both IE <= 10 as they throw an error
- // "Member not found" in strict mode, and in Firefox which does not
- // support window.event.
-
- if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
- window.event = windowEvent;
- }
- } // Create an event handler for our fake event. We will synchronously
- // dispatch our fake event using `dispatchEvent`. Inside the handler, we
- // call the user-provided callback.
-
-
- var funcArgs = Array.prototype.slice.call(arguments, 3);
-
- function callCallback() {
- didCall = true;
- restoreAfterDispatch();
- func.apply(context, funcArgs);
- didError = false;
- } // Create a global error event handler. We use this to capture the value
- // that was thrown. It's possible that this error handler will fire more
- // than once; for example, if non-React code also calls `dispatchEvent`
- // and a handler for that event throws. We should be resilient to most of
- // those cases. Even if our error event handler fires more than once, the
- // last error event is always used. If the callback actually does error,
- // we know that the last error event is the correct one, because it's not
- // possible for anything else to have happened in between our callback
- // erroring and the code that follows the `dispatchEvent` call below. If
- // the callback doesn't error, but the error event was fired, we know to
- // ignore it because `didError` will be false, as described above.
-
-
- var error; // Use this to track whether the error event is ever called.
-
- var didSetError = false;
- var isCrossOriginError = false;
-
- function handleWindowError(event) {
- error = event.error;
- didSetError = true;
-
- if (error === null && event.colno === 0 && event.lineno === 0) {
- isCrossOriginError = true;
- }
-
- if (event.defaultPrevented) {
- // Some other error handler has prevented default.
- // Browsers silence the error report if this happens.
- // We'll remember this to later decide whether to log it or not.
- if (error != null && typeof error === 'object') {
- try {
- error._suppressLogging = true;
- } catch (inner) {// Ignore.
- }
- }
- }
- } // Create a fake event type.
-
-
- var evtType = "react-" + (name ? name : 'invokeguardedcallback'); // Attach our event handlers
-
- window.addEventListener('error', handleWindowError);
- fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function
- // errors, it will trigger our global error handler.
-
- evt.initEvent(evtType, false, false);
- fakeNode.dispatchEvent(evt);
-
- if (windowEventDescriptor) {
- Object.defineProperty(window, 'event', windowEventDescriptor);
- }
-
- if (didCall && didError) {
- if (!didSetError) {
- // The callback errored, but the error event never fired.
- // eslint-disable-next-line react-internal/prod-error-codes
- error = new Error('An error was thrown inside one of your components, but React ' + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.');
- } else if (isCrossOriginError) {
- // eslint-disable-next-line react-internal/prod-error-codes
- error = new Error("A cross-origin error was thrown. React doesn't have access to " + 'the actual error object in development. ' + 'See https://reactjs.org/link/crossorigin-error for more information.');
- }
-
- this.onError(error);
- } // Remove our event listeners
-
-
- window.removeEventListener('error', handleWindowError);
-
- if (!didCall) {
- // Something went really wrong, and our event was not dispatched.
- // https://github.com/facebook/react/issues/16734
- // https://github.com/facebook/react/issues/16585
- // Fall back to the production implementation.
- restoreAfterDispatch();
- return invokeGuardedCallbackProd.apply(this, arguments);
- }
- };
- }
- }
-
- var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;
-
- var hasError = false;
- var caughtError = null; // Used by event system to capture/rethrow the first error.
-
- var hasRethrowError = false;
- var rethrowError = null;
- var reporter = {
- onError: function (error) {
- hasError = true;
- caughtError = error;
- }
- };
- /**
- * Call a function while guarding against errors that happens within it.
- * Returns an error if it throws, otherwise null.
- *
- * In production, this is implemented using a try-catch. The reason we don't
- * use a try-catch directly is so that we can swap out a different
- * implementation in DEV mode.
- *
- * @param {String} name of the guard to use for logging or debugging
- * @param {Function} func The function to invoke
- * @param {*} context The context to use when calling the function
- * @param {...*} args Arguments for function
- */
-
- function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
- hasError = false;
- caughtError = null;
- invokeGuardedCallbackImpl$1.apply(reporter, arguments);
- }
- /**
- * Same as invokeGuardedCallback, but instead of returning an error, it stores
- * it in a global so it can be rethrown by `rethrowCaughtError` later.
- * TODO: See if caughtError and rethrowError can be unified.
- *
- * @param {String} name of the guard to use for logging or debugging
- * @param {Function} func The function to invoke
- * @param {*} context The context to use when calling the function
- * @param {...*} args Arguments for function
- */
-
- function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
- invokeGuardedCallback.apply(this, arguments);
-
- if (hasError) {
- var error = clearCaughtError();
-
- if (!hasRethrowError) {
- hasRethrowError = true;
- rethrowError = error;
- }
- }
- }
- /**
- * During execution of guarded functions we will capture the first error which
- * we will rethrow to be handled by the top level error handler.
- */
-
- function rethrowCaughtError() {
- if (hasRethrowError) {
- var error = rethrowError;
- hasRethrowError = false;
- rethrowError = null;
- throw error;
- }
- }
- function hasCaughtError() {
- return hasError;
- }
- function clearCaughtError() {
- if (hasError) {
- var error = caughtError;
- hasError = false;
- caughtError = null;
- return error;
- } else {
- throw new Error('clearCaughtError was called but no error was captured. This error ' + 'is likely caused by a bug in React. Please file an issue.');
- }
- }
-
- var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
- var _ReactInternals$Sched = ReactInternals.Scheduler,
- unstable_cancelCallback = _ReactInternals$Sched.unstable_cancelCallback,
- unstable_now = _ReactInternals$Sched.unstable_now,
- unstable_scheduleCallback = _ReactInternals$Sched.unstable_scheduleCallback,
- unstable_shouldYield = _ReactInternals$Sched.unstable_shouldYield,
- unstable_requestPaint = _ReactInternals$Sched.unstable_requestPaint,
- unstable_getFirstCallbackNode = _ReactInternals$Sched.unstable_getFirstCallbackNode,
- unstable_runWithPriority = _ReactInternals$Sched.unstable_runWithPriority,
- unstable_next = _ReactInternals$Sched.unstable_next,
- unstable_continueExecution = _ReactInternals$Sched.unstable_continueExecution,
- unstable_pauseExecution = _ReactInternals$Sched.unstable_pauseExecution,
- unstable_getCurrentPriorityLevel = _ReactInternals$Sched.unstable_getCurrentPriorityLevel,
- unstable_ImmediatePriority = _ReactInternals$Sched.unstable_ImmediatePriority,
- unstable_UserBlockingPriority = _ReactInternals$Sched.unstable_UserBlockingPriority,
- unstable_NormalPriority = _ReactInternals$Sched.unstable_NormalPriority,
- unstable_LowPriority = _ReactInternals$Sched.unstable_LowPriority,
- unstable_IdlePriority = _ReactInternals$Sched.unstable_IdlePriority,
- unstable_forceFrameRate = _ReactInternals$Sched.unstable_forceFrameRate,
- unstable_flushAllWithoutAsserting = _ReactInternals$Sched.unstable_flushAllWithoutAsserting,
- unstable_yieldValue = _ReactInternals$Sched.unstable_yieldValue,
- unstable_setDisableYieldValue = _ReactInternals$Sched.unstable_setDisableYieldValue;
-
- /**
- * `ReactInstanceMap` maintains a mapping from a public facing stateful
- * instance (key) and the internal representation (value). This allows public
- * methods to accept the user facing instance as an argument and map them back
- * to internal methods.
- *
- * Note that this module is currently shared and assumed to be stateless.
- * If this becomes an actual Map, that will break.
- */
- function get(key) {
- return key._reactInternals;
- }
- function has(key) {
- return key._reactInternals !== undefined;
- }
- function set(key, value) {
- key._reactInternals = value;
- }
-
- // Don't change these two values. They're used by React Dev Tools.
- var NoFlags =
- /* */
- 0;
- var PerformedWork =
- /* */
- 1; // You can change the rest (and add more).
-
- var Placement =
- /* */
- 2;
- var Update =
- /* */
- 4;
- var ChildDeletion =
- /* */
- 16;
- var ContentReset =
- /* */
- 32;
- var Callback =
- /* */
- 64;
- var DidCapture =
- /* */
- 128;
- var ForceClientRender =
- /* */
- 256;
- var Ref =
- /* */
- 512;
- var Snapshot =
- /* */
- 1024;
- var Passive =
- /* */
- 2048;
- var Hydrating =
- /* */
- 4096;
- var Visibility =
- /* */
- 8192;
- var StoreConsistency =
- /* */
- 16384;
- var LifecycleEffectMask = Passive | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit)
-
- var HostEffectMask =
- /* */
- 32767; // These are not really side effects, but we still reuse this field.
-
- var Incomplete =
- /* */
- 32768;
- var ShouldCapture =
- /* */
- 65536;
- var ForceUpdateForLegacySuspense =
- /* */
- 131072;
- var Forked =
- /* */
- 1048576; // Static tags describe aspects of a fiber that are not specific to a render,
- // e.g. a fiber uses a passive effect (even if there are no updates on this particular render).
- // This enables us to defer more work in the unmount case,
- // since we can defer traversing the tree during layout to look for Passive effects,
- // and instead rely on the static flag as a signal that there may be cleanup work.
-
- var RefStatic =
- /* */
- 2097152;
- var LayoutStatic =
- /* */
- 4194304;
- var PassiveStatic =
- /* */
- 8388608; // These flags allow us to traverse to fibers that have effects on mount
- // without traversing the entire tree after every commit for
- // double invoking
-
- var MountLayoutDev =
- /* */
- 16777216;
- var MountPassiveDev =
- /* */
- 33554432; // Groups of flags that are used in the commit phase to skip over trees that
- // don't contain effects, by checking subtreeFlags.
-
- var BeforeMutationMask = // TODO: Remove Update flag from before mutation phase by re-landing Visibility
- // flag logic (see #20043)
- Update | Snapshot | ( 0);
- var MutationMask = Placement | Update | ChildDeletion | ContentReset | Ref | Hydrating | Visibility;
- var LayoutMask = Update | Callback | Ref | Visibility; // TODO: Split into PassiveMountMask and PassiveUnmountMask
-
- var PassiveMask = Passive | ChildDeletion; // Union of tags that don't get reset on clones.
- // This allows certain concepts to persist without recalculating them,
- // e.g. whether a subtree contains passive effects or portals.
-
- var StaticMask = LayoutStatic | PassiveStatic | RefStatic;
-
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
- function getNearestMountedFiber(fiber) {
- var node = fiber;
- var nearestMounted = fiber;
-
- if (!fiber.alternate) {
- // If there is no alternate, this might be a new tree that isn't inserted
- // yet. If it is, then it will have a pending insertion effect on it.
- var nextNode = node;
-
- do {
- node = nextNode;
-
- if ((node.flags & (Placement | Hydrating)) !== NoFlags) {
- // This is an insertion or in-progress hydration. The nearest possible
- // mounted fiber is the parent but we need to continue to figure out
- // if that one is still mounted.
- nearestMounted = node.return;
- }
-
- nextNode = node.return;
- } while (nextNode);
- } else {
- while (node.return) {
- node = node.return;
- }
- }
-
- if (node.tag === HostRoot) {
- // TODO: Check if this was a nested HostRoot when used with
- // renderContainerIntoSubtree.
- return nearestMounted;
- } // If we didn't hit the root, that means that we're in an disconnected tree
- // that has been unmounted.
-
-
- return null;
- }
- function getSuspenseInstanceFromFiber(fiber) {
- if (fiber.tag === SuspenseComponent) {
- var suspenseState = fiber.memoizedState;
-
- if (suspenseState === null) {
- var current = fiber.alternate;
-
- if (current !== null) {
- suspenseState = current.memoizedState;
- }
- }
-
- if (suspenseState !== null) {
- return suspenseState.dehydrated;
- }
- }
-
- return null;
- }
- function getContainerFromFiber(fiber) {
- return fiber.tag === HostRoot ? fiber.stateNode.containerInfo : null;
- }
- function isFiberMounted(fiber) {
- return getNearestMountedFiber(fiber) === fiber;
- }
- function isMounted(component) {
- {
- var owner = ReactCurrentOwner.current;
-
- if (owner !== null && owner.tag === ClassComponent) {
- var ownerFiber = owner;
- var instance = ownerFiber.stateNode;
-
- if (!instance._warnedAboutRefsInRender) {
- error('%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentNameFromFiber(ownerFiber) || 'A component');
- }
-
- instance._warnedAboutRefsInRender = true;
- }
- }
-
- var fiber = get(component);
-
- if (!fiber) {
- return false;
- }
-
- return getNearestMountedFiber(fiber) === fiber;
- }
-
- function assertIsMounted(fiber) {
- if (getNearestMountedFiber(fiber) !== fiber) {
- throw new Error('Unable to find node on an unmounted component.');
- }
- }
-
- function findCurrentFiberUsingSlowPath(fiber) {
- var alternate = fiber.alternate;
-
- if (!alternate) {
- // If there is no alternate, then we only need to check if it is mounted.
- var nearestMounted = getNearestMountedFiber(fiber);
-
- if (nearestMounted === null) {
- throw new Error('Unable to find node on an unmounted component.');
- }
-
- if (nearestMounted !== fiber) {
- return null;
- }
-
- return fiber;
- } // If we have two possible branches, we'll walk backwards up to the root
- // to see what path the root points to. On the way we may hit one of the
- // special cases and we'll deal with them.
-
-
- var a = fiber;
- var b = alternate;
-
- while (true) {
- var parentA = a.return;
-
- if (parentA === null) {
- // We're at the root.
- break;
- }
-
- var parentB = parentA.alternate;
-
- if (parentB === null) {
- // There is no alternate. This is an unusual case. Currently, it only
- // happens when a Suspense component is hidden. An extra fragment fiber
- // is inserted in between the Suspense fiber and its children. Skip
- // over this extra fragment fiber and proceed to the next parent.
- var nextParent = parentA.return;
-
- if (nextParent !== null) {
- a = b = nextParent;
- continue;
- } // If there's no parent, we're at the root.
-
-
- break;
- } // If both copies of the parent fiber point to the same child, we can
- // assume that the child is current. This happens when we bailout on low
- // priority: the bailed out fiber's child reuses the current child.
-
-
- if (parentA.child === parentB.child) {
- var child = parentA.child;
-
- while (child) {
- if (child === a) {
- // We've determined that A is the current branch.
- assertIsMounted(parentA);
- return fiber;
- }
-
- if (child === b) {
- // We've determined that B is the current branch.
- assertIsMounted(parentA);
- return alternate;
- }
-
- child = child.sibling;
- } // We should never have an alternate for any mounting node. So the only
- // way this could possibly happen is if this was unmounted, if at all.
-
-
- throw new Error('Unable to find node on an unmounted component.');
- }
-
- if (a.return !== b.return) {
- // The return pointer of A and the return pointer of B point to different
- // fibers. We assume that return pointers never criss-cross, so A must
- // belong to the child set of A.return, and B must belong to the child
- // set of B.return.
- a = parentA;
- b = parentB;
- } else {
- // The return pointers point to the same fiber. We'll have to use the
- // default, slow path: scan the child sets of each parent alternate to see
- // which child belongs to which set.
- //
- // Search parent A's child set
- var didFindChild = false;
- var _child = parentA.child;
-
- while (_child) {
- if (_child === a) {
- didFindChild = true;
- a = parentA;
- b = parentB;
- break;
- }
-
- if (_child === b) {
- didFindChild = true;
- b = parentA;
- a = parentB;
- break;
- }
-
- _child = _child.sibling;
- }
-
- if (!didFindChild) {
- // Search parent B's child set
- _child = parentB.child;
-
- while (_child) {
- if (_child === a) {
- didFindChild = true;
- a = parentB;
- b = parentA;
- break;
- }
-
- if (_child === b) {
- didFindChild = true;
- b = parentB;
- a = parentA;
- break;
- }
-
- _child = _child.sibling;
- }
-
- if (!didFindChild) {
- throw new Error('Child was not found in either parent set. This indicates a bug ' + 'in React related to the return pointer. Please file an issue.');
- }
- }
- }
-
- if (a.alternate !== b) {
- throw new Error("Return fibers should always be each others' alternates. " + 'This error is likely caused by a bug in React. Please file an issue.');
- }
- } // If the root is not a host container, we're in a disconnected tree. I.e.
- // unmounted.
-
-
- if (a.tag !== HostRoot) {
- throw new Error('Unable to find node on an unmounted component.');
- }
-
- if (a.stateNode.current === a) {
- // We've determined that A is the current branch.
- return fiber;
- } // Otherwise B has to be current branch.
-
-
- return alternate;
- }
- function findCurrentHostFiber(parent) {
- var currentParent = findCurrentFiberUsingSlowPath(parent);
- return currentParent !== null ? findCurrentHostFiberImpl(currentParent) : null;
- }
-
- function findCurrentHostFiberImpl(node) {
- // Next we'll drill down this component to find the first HostComponent/Text.
- if (node.tag === HostComponent || node.tag === HostText) {
- return node;
- }
-
- var child = node.child;
-
- while (child !== null) {
- var match = findCurrentHostFiberImpl(child);
-
- if (match !== null) {
- return match;
- }
-
- child = child.sibling;
- }
-
- return null;
- }
-
- function findCurrentHostFiberWithNoPortals(parent) {
- var currentParent = findCurrentFiberUsingSlowPath(parent);
- return currentParent !== null ? findCurrentHostFiberWithNoPortalsImpl(currentParent) : null;
- }
-
- function findCurrentHostFiberWithNoPortalsImpl(node) {
- // Next we'll drill down this component to find the first HostComponent/Text.
- if (node.tag === HostComponent || node.tag === HostText) {
- return node;
- }
-
- var child = node.child;
-
- while (child !== null) {
- if (child.tag !== HostPortal) {
- var match = findCurrentHostFiberWithNoPortalsImpl(child);
-
- if (match !== null) {
- return match;
- }
- }
-
- child = child.sibling;
- }
-
- return null;
- }
-
- // This module only exists as an ESM wrapper around the external CommonJS
- var scheduleCallback = unstable_scheduleCallback;
- var cancelCallback = unstable_cancelCallback;
- var shouldYield = unstable_shouldYield;
- var requestPaint = unstable_requestPaint;
- var now = unstable_now;
- var getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
- var ImmediatePriority = unstable_ImmediatePriority;
- var UserBlockingPriority = unstable_UserBlockingPriority;
- var NormalPriority = unstable_NormalPriority;
- var LowPriority = unstable_LowPriority;
- var IdlePriority = unstable_IdlePriority;
- // this doesn't actually exist on the scheduler, but it *does*
- // on scheduler/unstable_mock, which we'll need for internal testing
- var unstable_yieldValue$1 = unstable_yieldValue;
- var unstable_setDisableYieldValue$1 = unstable_setDisableYieldValue;
-
- var rendererID = null;
- var injectedHook = null;
- var injectedProfilingHooks = null;
- var hasLoggedError = false;
- var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
- function injectInternals(internals) {
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
- // No DevTools
- return false;
- }
-
- var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
-
- if (hook.isDisabled) {
- // This isn't a real property on the hook, but it can be set to opt out
- // of DevTools integration and associated warnings and logs.
- // https://github.com/facebook/react/issues/3877
- return true;
- }
-
- if (!hook.supportsFiber) {
- {
- error('The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://reactjs.org/link/react-devtools');
- } // DevTools exists, even though it doesn't support Fiber.
-
-
- return true;
- }
-
- try {
- if (enableSchedulingProfiler) {
- // Conditionally inject these hooks only if Timeline profiler is supported by this build.
- // This gives DevTools a way to feature detect that isn't tied to version number
- // (since profiling and timeline are controlled by different feature flags).
- internals = assign({}, internals, {
- getLaneLabelMap: getLaneLabelMap,
- injectProfilingHooks: injectProfilingHooks
- });
- }
-
- rendererID = hook.inject(internals); // We have successfully injected, so now it is safe to set up hooks.
-
- injectedHook = hook;
- } catch (err) {
- // Catch all errors because it is unsafe to throw during initialization.
- {
- error('React instrumentation encountered an error: %s.', err);
- }
- }
-
- if (hook.checkDCE) {
- // This is the real DevTools.
- return true;
- } else {
- // This is likely a hook installed by Fast Refresh runtime.
- return false;
- }
- }
- function onScheduleRoot(root, children) {
- {
- if (injectedHook && typeof injectedHook.onScheduleFiberRoot === 'function') {
- try {
- injectedHook.onScheduleFiberRoot(rendererID, root, children);
- } catch (err) {
- if ( !hasLoggedError) {
- hasLoggedError = true;
-
- error('React instrumentation encountered an error: %s', err);
- }
- }
- }
- }
- }
- function onCommitRoot(root, eventPriority) {
- if (injectedHook && typeof injectedHook.onCommitFiberRoot === 'function') {
- try {
- var didError = (root.current.flags & DidCapture) === DidCapture;
-
- if (enableProfilerTimer) {
- var schedulerPriority;
-
- switch (eventPriority) {
- case DiscreteEventPriority:
- schedulerPriority = ImmediatePriority;
- break;
-
- case ContinuousEventPriority:
- schedulerPriority = UserBlockingPriority;
- break;
-
- case DefaultEventPriority:
- schedulerPriority = NormalPriority;
- break;
-
- case IdleEventPriority:
- schedulerPriority = IdlePriority;
- break;
-
- default:
- schedulerPriority = NormalPriority;
- break;
- }
-
- injectedHook.onCommitFiberRoot(rendererID, root, schedulerPriority, didError);
- } else {
- injectedHook.onCommitFiberRoot(rendererID, root, undefined, didError);
- }
- } catch (err) {
- {
- if (!hasLoggedError) {
- hasLoggedError = true;
-
- error('React instrumentation encountered an error: %s', err);
- }
- }
- }
- }
- }
- function onPostCommitRoot(root) {
- if (injectedHook && typeof injectedHook.onPostCommitFiberRoot === 'function') {
- try {
- injectedHook.onPostCommitFiberRoot(rendererID, root);
- } catch (err) {
- {
- if (!hasLoggedError) {
- hasLoggedError = true;
-
- error('React instrumentation encountered an error: %s', err);
- }
- }
- }
- }
- }
- function onCommitUnmount(fiber) {
- if (injectedHook && typeof injectedHook.onCommitFiberUnmount === 'function') {
- try {
- injectedHook.onCommitFiberUnmount(rendererID, fiber);
- } catch (err) {
- {
- if (!hasLoggedError) {
- hasLoggedError = true;
-
- error('React instrumentation encountered an error: %s', err);
- }
- }
- }
- }
- }
- function setIsStrictModeForDevtools(newIsStrictMode) {
- {
- if (typeof unstable_yieldValue$1 === 'function') {
- // We're in a test because Scheduler.unstable_yieldValue only exists
- // in SchedulerMock. To reduce the noise in strict mode tests,
- // suppress warnings and disable scheduler yielding during the double render
- unstable_setDisableYieldValue$1(newIsStrictMode);
- setSuppressWarning(newIsStrictMode);
- }
-
- if (injectedHook && typeof injectedHook.setStrictMode === 'function') {
- try {
- injectedHook.setStrictMode(rendererID, newIsStrictMode);
- } catch (err) {
- {
- if (!hasLoggedError) {
- hasLoggedError = true;
-
- error('React instrumentation encountered an error: %s', err);
- }
- }
- }
- }
- }
- } // Profiler API hooks
-
- function injectProfilingHooks(profilingHooks) {
- injectedProfilingHooks = profilingHooks;
- }
-
- function getLaneLabelMap() {
- {
- var map = new Map();
- var lane = 1;
-
- for (var index = 0; index < TotalLanes; index++) {
- var label = getLabelForLane(lane);
- map.set(lane, label);
- lane *= 2;
- }
-
- return map;
- }
- }
-
- function markCommitStarted(lanes) {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markCommitStarted === 'function') {
- injectedProfilingHooks.markCommitStarted(lanes);
- }
- }
- }
- function markCommitStopped() {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markCommitStopped === 'function') {
- injectedProfilingHooks.markCommitStopped();
- }
- }
- }
- function markComponentRenderStarted(fiber) {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentRenderStarted === 'function') {
- injectedProfilingHooks.markComponentRenderStarted(fiber);
- }
- }
- }
- function markComponentRenderStopped() {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentRenderStopped === 'function') {
- injectedProfilingHooks.markComponentRenderStopped();
- }
- }
- }
- function markComponentPassiveEffectMountStarted(fiber) {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentPassiveEffectMountStarted === 'function') {
- injectedProfilingHooks.markComponentPassiveEffectMountStarted(fiber);
- }
- }
- }
- function markComponentPassiveEffectMountStopped() {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentPassiveEffectMountStopped === 'function') {
- injectedProfilingHooks.markComponentPassiveEffectMountStopped();
- }
- }
- }
- function markComponentPassiveEffectUnmountStarted(fiber) {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStarted === 'function') {
- injectedProfilingHooks.markComponentPassiveEffectUnmountStarted(fiber);
- }
- }
- }
- function markComponentPassiveEffectUnmountStopped() {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped === 'function') {
- injectedProfilingHooks.markComponentPassiveEffectUnmountStopped();
- }
- }
- }
- function markComponentLayoutEffectMountStarted(fiber) {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentLayoutEffectMountStarted === 'function') {
- injectedProfilingHooks.markComponentLayoutEffectMountStarted(fiber);
- }
- }
- }
- function markComponentLayoutEffectMountStopped() {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentLayoutEffectMountStopped === 'function') {
- injectedProfilingHooks.markComponentLayoutEffectMountStopped();
- }
- }
- }
- function markComponentLayoutEffectUnmountStarted(fiber) {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted === 'function') {
- injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(fiber);
- }
- }
- }
- function markComponentLayoutEffectUnmountStopped() {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped === 'function') {
- injectedProfilingHooks.markComponentLayoutEffectUnmountStopped();
- }
- }
- }
- function markComponentErrored(fiber, thrownValue, lanes) {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentErrored === 'function') {
- injectedProfilingHooks.markComponentErrored(fiber, thrownValue, lanes);
- }
- }
- }
- function markComponentSuspended(fiber, wakeable, lanes) {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentSuspended === 'function') {
- injectedProfilingHooks.markComponentSuspended(fiber, wakeable, lanes);
- }
- }
- }
- function markLayoutEffectsStarted(lanes) {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markLayoutEffectsStarted === 'function') {
- injectedProfilingHooks.markLayoutEffectsStarted(lanes);
- }
- }
- }
- function markLayoutEffectsStopped() {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markLayoutEffectsStopped === 'function') {
- injectedProfilingHooks.markLayoutEffectsStopped();
- }
- }
- }
- function markPassiveEffectsStarted(lanes) {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markPassiveEffectsStarted === 'function') {
- injectedProfilingHooks.markPassiveEffectsStarted(lanes);
- }
- }
- }
- function markPassiveEffectsStopped() {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markPassiveEffectsStopped === 'function') {
- injectedProfilingHooks.markPassiveEffectsStopped();
- }
- }
- }
- function markRenderStarted(lanes) {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markRenderStarted === 'function') {
- injectedProfilingHooks.markRenderStarted(lanes);
- }
- }
- }
- function markRenderYielded() {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markRenderYielded === 'function') {
- injectedProfilingHooks.markRenderYielded();
- }
- }
- }
- function markRenderStopped() {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markRenderStopped === 'function') {
- injectedProfilingHooks.markRenderStopped();
- }
- }
- }
- function markRenderScheduled(lane) {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markRenderScheduled === 'function') {
- injectedProfilingHooks.markRenderScheduled(lane);
- }
- }
- }
- function markForceUpdateScheduled(fiber, lane) {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markForceUpdateScheduled === 'function') {
- injectedProfilingHooks.markForceUpdateScheduled(fiber, lane);
- }
- }
- }
- function markStateUpdateScheduled(fiber, lane) {
- {
- if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markStateUpdateScheduled === 'function') {
- injectedProfilingHooks.markStateUpdateScheduled(fiber, lane);
- }
- }
- }
-
- var NoMode =
- /* */
- 0; // TODO: Remove ConcurrentMode by reading from the root tag instead
-
- var ConcurrentMode =
- /* */
- 1;
- var ProfileMode =
- /* */
- 2;
- var StrictLegacyMode =
- /* */
- 8;
- var StrictEffectsMode =
- /* */
- 16;
-
- // TODO: This is pretty well supported by browsers. Maybe we can drop it.
- var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; // Count leading zeros.
- // Based on:
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32
-
- var log = Math.log;
- var LN2 = Math.LN2;
-
- function clz32Fallback(x) {
- var asUint = x >>> 0;
-
- if (asUint === 0) {
- return 32;
- }
-
- return 31 - (log(asUint) / LN2 | 0) | 0;
- }
-
- // If those values are changed that package should be rebuilt and redeployed.
-
- var TotalLanes = 31;
- var NoLanes =
- /* */
- 0;
- var NoLane =
- /* */
- 0;
- var SyncLane =
- /* */
- 1;
- var InputContinuousHydrationLane =
- /* */
- 2;
- var InputContinuousLane =
- /* */
- 4;
- var DefaultHydrationLane =
- /* */
- 8;
- var DefaultLane =
- /* */
- 16;
- var TransitionHydrationLane =
- /* */
- 32;
- var TransitionLanes =
- /* */
- 4194240;
- var TransitionLane1 =
- /* */
- 64;
- var TransitionLane2 =
- /* */
- 128;
- var TransitionLane3 =
- /* */
- 256;
- var TransitionLane4 =
- /* */
- 512;
- var TransitionLane5 =
- /* */
- 1024;
- var TransitionLane6 =
- /* */
- 2048;
- var TransitionLane7 =
- /* */
- 4096;
- var TransitionLane8 =
- /* */
- 8192;
- var TransitionLane9 =
- /* */
- 16384;
- var TransitionLane10 =
- /* */
- 32768;
- var TransitionLane11 =
- /* */
- 65536;
- var TransitionLane12 =
- /* */
- 131072;
- var TransitionLane13 =
- /* */
- 262144;
- var TransitionLane14 =
- /* */
- 524288;
- var TransitionLane15 =
- /* */
- 1048576;
- var TransitionLane16 =
- /* */
- 2097152;
- var RetryLanes =
- /* */
- 130023424;
- var RetryLane1 =
- /* */
- 4194304;
- var RetryLane2 =
- /* */
- 8388608;
- var RetryLane3 =
- /* */
- 16777216;
- var RetryLane4 =
- /* */
- 33554432;
- var RetryLane5 =
- /* */
- 67108864;
- var SomeRetryLane = RetryLane1;
- var SelectiveHydrationLane =
- /* */
- 134217728;
- var NonIdleLanes =
- /* */
- 268435455;
- var IdleHydrationLane =
- /* */
- 268435456;
- var IdleLane =
- /* */
- 536870912;
- var OffscreenLane =
- /* */
- 1073741824; // This function is used for the experimental timeline (react-devtools-timeline)
- // It should be kept in sync with the Lanes values above.
-
- function getLabelForLane(lane) {
- {
- if (lane & SyncLane) {
- return 'Sync';
- }
-
- if (lane & InputContinuousHydrationLane) {
- return 'InputContinuousHydration';
- }
-
- if (lane & InputContinuousLane) {
- return 'InputContinuous';
- }
-
- if (lane & DefaultHydrationLane) {
- return 'DefaultHydration';
- }
-
- if (lane & DefaultLane) {
- return 'Default';
- }
-
- if (lane & TransitionHydrationLane) {
- return 'TransitionHydration';
- }
-
- if (lane & TransitionLanes) {
- return 'Transition';
- }
-
- if (lane & RetryLanes) {
- return 'Retry';
- }
-
- if (lane & SelectiveHydrationLane) {
- return 'SelectiveHydration';
- }
-
- if (lane & IdleHydrationLane) {
- return 'IdleHydration';
- }
-
- if (lane & IdleLane) {
- return 'Idle';
- }
-
- if (lane & OffscreenLane) {
- return 'Offscreen';
- }
- }
- }
- var NoTimestamp = -1;
- var nextTransitionLane = TransitionLane1;
- var nextRetryLane = RetryLane1;
-
- function getHighestPriorityLanes(lanes) {
- switch (getHighestPriorityLane(lanes)) {
- case SyncLane:
- return SyncLane;
-
- case InputContinuousHydrationLane:
- return InputContinuousHydrationLane;
-
- case InputContinuousLane:
- return InputContinuousLane;
-
- case DefaultHydrationLane:
- return DefaultHydrationLane;
-
- case DefaultLane:
- return DefaultLane;
-
- case TransitionHydrationLane:
- return TransitionHydrationLane;
-
- case TransitionLane1:
- case TransitionLane2:
- case TransitionLane3:
- case TransitionLane4:
- case TransitionLane5:
- case TransitionLane6:
- case TransitionLane7:
- case TransitionLane8:
- case TransitionLane9:
- case TransitionLane10:
- case TransitionLane11:
- case TransitionLane12:
- case TransitionLane13:
- case TransitionLane14:
- case TransitionLane15:
- case TransitionLane16:
- return lanes & TransitionLanes;
-
- case RetryLane1:
- case RetryLane2:
- case RetryLane3:
- case RetryLane4:
- case RetryLane5:
- return lanes & RetryLanes;
-
- case SelectiveHydrationLane:
- return SelectiveHydrationLane;
-
- case IdleHydrationLane:
- return IdleHydrationLane;
-
- case IdleLane:
- return IdleLane;
-
- case OffscreenLane:
- return OffscreenLane;
-
- default:
- {
- error('Should have found matching lanes. This is a bug in React.');
- } // This shouldn't be reachable, but as a fallback, return the entire bitmask.
-
-
- return lanes;
- }
- }
-
- function getNextLanes(root, wipLanes) {
- // Early bailout if there's no pending work left.
- var pendingLanes = root.pendingLanes;
-
- if (pendingLanes === NoLanes) {
- return NoLanes;
- }
-
- var nextLanes = NoLanes;
- var suspendedLanes = root.suspendedLanes;
- var pingedLanes = root.pingedLanes; // Do not work on any idle work until all the non-idle work has finished,
- // even if the work is suspended.
-
- var nonIdlePendingLanes = pendingLanes & NonIdleLanes;
-
- if (nonIdlePendingLanes !== NoLanes) {
- var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes;
-
- if (nonIdleUnblockedLanes !== NoLanes) {
- nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes);
- } else {
- var nonIdlePingedLanes = nonIdlePendingLanes & pingedLanes;
-
- if (nonIdlePingedLanes !== NoLanes) {
- nextLanes = getHighestPriorityLanes(nonIdlePingedLanes);
- }
- }
- } else {
- // The only remaining work is Idle.
- var unblockedLanes = pendingLanes & ~suspendedLanes;
-
- if (unblockedLanes !== NoLanes) {
- nextLanes = getHighestPriorityLanes(unblockedLanes);
- } else {
- if (pingedLanes !== NoLanes) {
- nextLanes = getHighestPriorityLanes(pingedLanes);
- }
- }
- }
-
- if (nextLanes === NoLanes) {
- // This should only be reachable if we're suspended
- // TODO: Consider warning in this path if a fallback timer is not scheduled.
- return NoLanes;
- } // If we're already in the middle of a render, switching lanes will interrupt
- // it and we'll lose our progress. We should only do this if the new lanes are
- // higher priority.
-
-
- if (wipLanes !== NoLanes && wipLanes !== nextLanes && // If we already suspended with a delay, then interrupting is fine. Don't
- // bother waiting until the root is complete.
- (wipLanes & suspendedLanes) === NoLanes) {
- var nextLane = getHighestPriorityLane(nextLanes);
- var wipLane = getHighestPriorityLane(wipLanes);
-
- if ( // Tests whether the next lane is equal or lower priority than the wip
- // one. This works because the bits decrease in priority as you go left.
- nextLane >= wipLane || // Default priority updates should not interrupt transition updates. The
- // only difference between default updates and transition updates is that
- // default updates do not support refresh transitions.
- nextLane === DefaultLane && (wipLane & TransitionLanes) !== NoLanes) {
- // Keep working on the existing in-progress tree. Do not interrupt.
- return wipLanes;
- }
- }
-
- if ((nextLanes & InputContinuousLane) !== NoLanes) {
- // When updates are sync by default, we entangle continuous priority updates
- // and default updates, so they render in the same batch. The only reason
- // they use separate lanes is because continuous updates should interrupt
- // transitions, but default updates should not.
- nextLanes |= pendingLanes & DefaultLane;
- } // Check for entangled lanes and add them to the batch.
- //
- // A lane is said to be entangled with another when it's not allowed to render
- // in a batch that does not also include the other lane. Typically we do this
- // when multiple updates have the same source, and we only want to respond to
- // the most recent event from that source.
- //
- // Note that we apply entanglements *after* checking for partial work above.
- // This means that if a lane is entangled during an interleaved event while
- // it's already rendering, we won't interrupt it. This is intentional, since
- // entanglement is usually "best effort": we'll try our best to render the
- // lanes in the same batch, but it's not worth throwing out partially
- // completed work in order to do it.
- // TODO: Reconsider this. The counter-argument is that the partial work
- // represents an intermediate state, which we don't want to show to the user.
- // And by spending extra time finishing it, we're increasing the amount of
- // time it takes to show the final state, which is what they are actually
- // waiting for.
- //
- // For those exceptions where entanglement is semantically important, like
- // useMutableSource, we should ensure that there is no partial work at the
- // time we apply the entanglement.
-
-
- var entangledLanes = root.entangledLanes;
-
- if (entangledLanes !== NoLanes) {
- var entanglements = root.entanglements;
- var lanes = nextLanes & entangledLanes;
-
- while (lanes > 0) {
- var index = pickArbitraryLaneIndex(lanes);
- var lane = 1 << index;
- nextLanes |= entanglements[index];
- lanes &= ~lane;
- }
- }
-
- return nextLanes;
- }
- function getMostRecentEventTime(root, lanes) {
- var eventTimes = root.eventTimes;
- var mostRecentEventTime = NoTimestamp;
-
- while (lanes > 0) {
- var index = pickArbitraryLaneIndex(lanes);
- var lane = 1 << index;
- var eventTime = eventTimes[index];
-
- if (eventTime > mostRecentEventTime) {
- mostRecentEventTime = eventTime;
- }
-
- lanes &= ~lane;
- }
-
- return mostRecentEventTime;
- }
-
- function computeExpirationTime(lane, currentTime) {
- switch (lane) {
- case SyncLane:
- case InputContinuousHydrationLane:
- case InputContinuousLane:
- // User interactions should expire slightly more quickly.
- //
- // NOTE: This is set to the corresponding constant as in Scheduler.js.
- // When we made it larger, a product metric in www regressed, suggesting
- // there's a user interaction that's being starved by a series of
- // synchronous updates. If that theory is correct, the proper solution is
- // to fix the starvation. However, this scenario supports the idea that
- // expiration times are an important safeguard when starvation
- // does happen.
- return currentTime + 250;
-
- case DefaultHydrationLane:
- case DefaultLane:
- case TransitionHydrationLane:
- case TransitionLane1:
- case TransitionLane2:
- case TransitionLane3:
- case TransitionLane4:
- case TransitionLane5:
- case TransitionLane6:
- case TransitionLane7:
- case TransitionLane8:
- case TransitionLane9:
- case TransitionLane10:
- case TransitionLane11:
- case TransitionLane12:
- case TransitionLane13:
- case TransitionLane14:
- case TransitionLane15:
- case TransitionLane16:
- return currentTime + 5000;
-
- case RetryLane1:
- case RetryLane2:
- case RetryLane3:
- case RetryLane4:
- case RetryLane5:
- // TODO: Retries should be allowed to expire if they are CPU bound for
- // too long, but when I made this change it caused a spike in browser
- // crashes. There must be some other underlying bug; not super urgent but
- // ideally should figure out why and fix it. Unfortunately we don't have
- // a repro for the crashes, only detected via production metrics.
- return NoTimestamp;
-
- case SelectiveHydrationLane:
- case IdleHydrationLane:
- case IdleLane:
- case OffscreenLane:
- // Anything idle priority or lower should never expire.
- return NoTimestamp;
-
- default:
- {
- error('Should have found matching lanes. This is a bug in React.');
- }
-
- return NoTimestamp;
- }
- }
-
- function markStarvedLanesAsExpired(root, currentTime) {
- // TODO: This gets called every time we yield. We can optimize by storing
- // the earliest expiration time on the root. Then use that to quickly bail out
- // of this function.
- var pendingLanes = root.pendingLanes;
- var suspendedLanes = root.suspendedLanes;
- var pingedLanes = root.pingedLanes;
- var expirationTimes = root.expirationTimes; // Iterate through the pending lanes and check if we've reached their
- // expiration time. If so, we'll assume the update is being starved and mark
- // it as expired to force it to finish.
-
- var lanes = pendingLanes;
-
- while (lanes > 0) {
- var index = pickArbitraryLaneIndex(lanes);
- var lane = 1 << index;
- var expirationTime = expirationTimes[index];
-
- if (expirationTime === NoTimestamp) {
- // Found a pending lane with no expiration time. If it's not suspended, or
- // if it's pinged, assume it's CPU-bound. Compute a new expiration time
- // using the current time.
- if ((lane & suspendedLanes) === NoLanes || (lane & pingedLanes) !== NoLanes) {
- // Assumes timestamps are monotonically increasing.
- expirationTimes[index] = computeExpirationTime(lane, currentTime);
- }
- } else if (expirationTime <= currentTime) {
- // This lane expired
- root.expiredLanes |= lane;
- }
-
- lanes &= ~lane;
- }
- } // This returns the highest priority pending lanes regardless of whether they
- // are suspended.
-
- function getHighestPriorityPendingLanes(root) {
- return getHighestPriorityLanes(root.pendingLanes);
- }
- function getLanesToRetrySynchronouslyOnError(root) {
- var everythingButOffscreen = root.pendingLanes & ~OffscreenLane;
-
- if (everythingButOffscreen !== NoLanes) {
- return everythingButOffscreen;
- }
-
- if (everythingButOffscreen & OffscreenLane) {
- return OffscreenLane;
- }
-
- return NoLanes;
- }
- function includesSyncLane(lanes) {
- return (lanes & SyncLane) !== NoLanes;
- }
- function includesNonIdleWork(lanes) {
- return (lanes & NonIdleLanes) !== NoLanes;
- }
- function includesOnlyRetries(lanes) {
- return (lanes & RetryLanes) === lanes;
- }
- function includesOnlyNonUrgentLanes(lanes) {
- var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane;
- return (lanes & UrgentLanes) === NoLanes;
- }
- function includesOnlyTransitions(lanes) {
- return (lanes & TransitionLanes) === lanes;
- }
- function includesBlockingLane(root, lanes) {
-
- var SyncDefaultLanes = InputContinuousHydrationLane | InputContinuousLane | DefaultHydrationLane | DefaultLane;
- return (lanes & SyncDefaultLanes) !== NoLanes;
- }
- function includesExpiredLane(root, lanes) {
- // This is a separate check from includesBlockingLane because a lane can
- // expire after a render has already started.
- return (lanes & root.expiredLanes) !== NoLanes;
- }
- function isTransitionLane(lane) {
- return (lane & TransitionLanes) !== NoLanes;
- }
- function claimNextTransitionLane() {
- // Cycle through the lanes, assigning each new transition to the next lane.
- // In most cases, this means every transition gets its own lane, until we
- // run out of lanes and cycle back to the beginning.
- var lane = nextTransitionLane;
- nextTransitionLane <<= 1;
-
- if ((nextTransitionLane & TransitionLanes) === NoLanes) {
- nextTransitionLane = TransitionLane1;
- }
-
- return lane;
- }
- function claimNextRetryLane() {
- var lane = nextRetryLane;
- nextRetryLane <<= 1;
-
- if ((nextRetryLane & RetryLanes) === NoLanes) {
- nextRetryLane = RetryLane1;
- }
-
- return lane;
- }
- function getHighestPriorityLane(lanes) {
- return lanes & -lanes;
- }
- function pickArbitraryLane(lanes) {
- // This wrapper function gets inlined. Only exists so to communicate that it
- // doesn't matter which bit is selected; you can pick any bit without
- // affecting the algorithms where its used. Here I'm using
- // getHighestPriorityLane because it requires the fewest operations.
- return getHighestPriorityLane(lanes);
- }
-
- function pickArbitraryLaneIndex(lanes) {
- return 31 - clz32(lanes);
- }
-
- function laneToIndex(lane) {
- return pickArbitraryLaneIndex(lane);
- }
-
- function includesSomeLane(a, b) {
- return (a & b) !== NoLanes;
- }
- function isSubsetOfLanes(set, subset) {
- return (set & subset) === subset;
- }
- function mergeLanes(a, b) {
- return a | b;
- }
- function removeLanes(set, subset) {
- return set & ~subset;
- }
- function intersectLanes(a, b) {
- return a & b;
- } // Seems redundant, but it changes the type from a single lane (used for
- // updates) to a group of lanes (used for flushing work).
-
- function laneToLanes(lane) {
- return lane;
- }
- function higherPriorityLane(a, b) {
- // This works because the bit ranges decrease in priority as you go left.
- return a !== NoLane && a < b ? a : b;
- }
- function createLaneMap(initial) {
- // Intentionally pushing one by one.
- // https://v8.dev/blog/elements-kinds#avoid-creating-holes
- var laneMap = [];
-
- for (var i = 0; i < TotalLanes; i++) {
- laneMap.push(initial);
- }
-
- return laneMap;
- }
- function markRootUpdated(root, updateLane, eventTime) {
- root.pendingLanes |= updateLane; // If there are any suspended transitions, it's possible this new update
- // could unblock them. Clear the suspended lanes so that we can try rendering
- // them again.
- //
- // TODO: We really only need to unsuspend only lanes that are in the
- // `subtreeLanes` of the updated fiber, or the update lanes of the return
- // path. This would exclude suspended updates in an unrelated sibling tree,
- // since there's no way for this update to unblock it.
- //
- // We don't do this if the incoming update is idle, because we never process
- // idle updates until after all the regular updates have finished; there's no
- // way it could unblock a transition.
-
- if (updateLane !== IdleLane) {
- root.suspendedLanes = NoLanes;
- root.pingedLanes = NoLanes;
- }
-
- var eventTimes = root.eventTimes;
- var index = laneToIndex(updateLane); // We can always overwrite an existing timestamp because we prefer the most
- // recent event, and we assume time is monotonically increasing.
-
- eventTimes[index] = eventTime;
- }
- function markRootSuspended(root, suspendedLanes) {
- root.suspendedLanes |= suspendedLanes;
- root.pingedLanes &= ~suspendedLanes; // The suspended lanes are no longer CPU-bound. Clear their expiration times.
-
- var expirationTimes = root.expirationTimes;
- var lanes = suspendedLanes;
-
- while (lanes > 0) {
- var index = pickArbitraryLaneIndex(lanes);
- var lane = 1 << index;
- expirationTimes[index] = NoTimestamp;
- lanes &= ~lane;
- }
- }
- function markRootPinged(root, pingedLanes, eventTime) {
- root.pingedLanes |= root.suspendedLanes & pingedLanes;
- }
- function markRootFinished(root, remainingLanes) {
- var noLongerPendingLanes = root.pendingLanes & ~remainingLanes;
- root.pendingLanes = remainingLanes; // Let's try everything again
-
- root.suspendedLanes = NoLanes;
- root.pingedLanes = NoLanes;
- root.expiredLanes &= remainingLanes;
- root.mutableReadLanes &= remainingLanes;
- root.entangledLanes &= remainingLanes;
- var entanglements = root.entanglements;
- var eventTimes = root.eventTimes;
- var expirationTimes = root.expirationTimes; // Clear the lanes that no longer have pending work
-
- var lanes = noLongerPendingLanes;
-
- while (lanes > 0) {
- var index = pickArbitraryLaneIndex(lanes);
- var lane = 1 << index;
- entanglements[index] = NoLanes;
- eventTimes[index] = NoTimestamp;
- expirationTimes[index] = NoTimestamp;
- lanes &= ~lane;
- }
- }
- function markRootEntangled(root, entangledLanes) {
- // In addition to entangling each of the given lanes with each other, we also
- // have to consider _transitive_ entanglements. For each lane that is already
- // entangled with *any* of the given lanes, that lane is now transitively
- // entangled with *all* the given lanes.
- //
- // Translated: If C is entangled with A, then entangling A with B also
- // entangles C with B.
- //
- // If this is hard to grasp, it might help to intentionally break this
- // function and look at the tests that fail in ReactTransition-test.js. Try
- // commenting out one of the conditions below.
- var rootEntangledLanes = root.entangledLanes |= entangledLanes;
- var entanglements = root.entanglements;
- var lanes = rootEntangledLanes;
-
- while (lanes) {
- var index = pickArbitraryLaneIndex(lanes);
- var lane = 1 << index;
-
- if ( // Is this one of the newly entangled lanes?
- lane & entangledLanes | // Is this lane transitively entangled with the newly entangled lanes?
- entanglements[index] & entangledLanes) {
- entanglements[index] |= entangledLanes;
- }
-
- lanes &= ~lane;
- }
- }
- function getBumpedLaneForHydration(root, renderLanes) {
- var renderLane = getHighestPriorityLane(renderLanes);
- var lane;
-
- switch (renderLane) {
- case InputContinuousLane:
- lane = InputContinuousHydrationLane;
- break;
-
- case DefaultLane:
- lane = DefaultHydrationLane;
- break;
-
- case TransitionLane1:
- case TransitionLane2:
- case TransitionLane3:
- case TransitionLane4:
- case TransitionLane5:
- case TransitionLane6:
- case TransitionLane7:
- case TransitionLane8:
- case TransitionLane9:
- case TransitionLane10:
- case TransitionLane11:
- case TransitionLane12:
- case TransitionLane13:
- case TransitionLane14:
- case TransitionLane15:
- case TransitionLane16:
- case RetryLane1:
- case RetryLane2:
- case RetryLane3:
- case RetryLane4:
- case RetryLane5:
- lane = TransitionHydrationLane;
- break;
-
- case IdleLane:
- lane = IdleHydrationLane;
- break;
-
- default:
- // Everything else is already either a hydration lane, or shouldn't
- // be retried at a hydration lane.
- lane = NoLane;
- break;
- } // Check if the lane we chose is suspended. If so, that indicates that we
- // already attempted and failed to hydrate at that level. Also check if we're
- // already rendering that lane, which is rare but could happen.
-
-
- if ((lane & (root.suspendedLanes | renderLanes)) !== NoLane) {
- // Give up trying to hydrate and fall back to client render.
- return NoLane;
- }
-
- return lane;
- }
- function addFiberToLanesMap(root, fiber, lanes) {
-
- if (!isDevToolsPresent) {
- return;
- }
-
- var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap;
-
- while (lanes > 0) {
- var index = laneToIndex(lanes);
- var lane = 1 << index;
- var updaters = pendingUpdatersLaneMap[index];
- updaters.add(fiber);
- lanes &= ~lane;
- }
- }
- function movePendingFibersToMemoized(root, lanes) {
-
- if (!isDevToolsPresent) {
- return;
- }
-
- var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap;
- var memoizedUpdaters = root.memoizedUpdaters;
-
- while (lanes > 0) {
- var index = laneToIndex(lanes);
- var lane = 1 << index;
- var updaters = pendingUpdatersLaneMap[index];
-
- if (updaters.size > 0) {
- updaters.forEach(function (fiber) {
- var alternate = fiber.alternate;
-
- if (alternate === null || !memoizedUpdaters.has(alternate)) {
- memoizedUpdaters.add(fiber);
- }
- });
- updaters.clear();
- }
-
- lanes &= ~lane;
- }
- }
- function getTransitionsForLanes(root, lanes) {
- {
- return null;
- }
- }
-
- var DiscreteEventPriority = SyncLane;
- var ContinuousEventPriority = InputContinuousLane;
- var DefaultEventPriority = DefaultLane;
- var IdleEventPriority = IdleLane;
- var currentUpdatePriority = NoLane;
- function getCurrentUpdatePriority() {
- return currentUpdatePriority;
- }
- function setCurrentUpdatePriority(newPriority) {
- currentUpdatePriority = newPriority;
- }
- function runWithPriority(priority, fn) {
- var previousPriority = currentUpdatePriority;
-
- try {
- currentUpdatePriority = priority;
- return fn();
- } finally {
- currentUpdatePriority = previousPriority;
- }
- }
- function higherEventPriority(a, b) {
- return a !== 0 && a < b ? a : b;
- }
- function lowerEventPriority(a, b) {
- return a === 0 || a > b ? a : b;
- }
- function isHigherEventPriority(a, b) {
- return a !== 0 && a < b;
- }
- function lanesToEventPriority(lanes) {
- var lane = getHighestPriorityLane(lanes);
-
- if (!isHigherEventPriority(DiscreteEventPriority, lane)) {
- return DiscreteEventPriority;
- }
-
- if (!isHigherEventPriority(ContinuousEventPriority, lane)) {
- return ContinuousEventPriority;
- }
-
- if (includesNonIdleWork(lane)) {
- return DefaultEventPriority;
- }
-
- return IdleEventPriority;
- }
-
- // This is imported by the event replaying implementation in React DOM. It's
- // in a separate file to break a circular dependency between the renderer and
- // the reconciler.
- function isRootDehydrated(root) {
- var currentState = root.current.memoizedState;
- return currentState.isDehydrated;
- }
-
- var _attemptSynchronousHydration;
-
- function setAttemptSynchronousHydration(fn) {
- _attemptSynchronousHydration = fn;
- }
- function attemptSynchronousHydration(fiber) {
- _attemptSynchronousHydration(fiber);
- }
- var attemptContinuousHydration;
- function setAttemptContinuousHydration(fn) {
- attemptContinuousHydration = fn;
- }
- var attemptHydrationAtCurrentPriority;
- function setAttemptHydrationAtCurrentPriority(fn) {
- attemptHydrationAtCurrentPriority = fn;
- }
- var getCurrentUpdatePriority$1;
- function setGetCurrentUpdatePriority(fn) {
- getCurrentUpdatePriority$1 = fn;
- }
- var attemptHydrationAtPriority;
- function setAttemptHydrationAtPriority(fn) {
- attemptHydrationAtPriority = fn;
- } // TODO: Upgrade this definition once we're on a newer version of Flow that
- // has this definition built-in.
-
- var hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed.
-
- var queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout.
- // if the last target was dehydrated.
-
- var queuedFocus = null;
- var queuedDrag = null;
- var queuedMouse = null; // For pointer events there can be one latest event per pointerId.
-
- var queuedPointers = new Map();
- var queuedPointerCaptures = new Map(); // We could consider replaying selectionchange and touchmoves too.
-
- var queuedExplicitHydrationTargets = [];
- var discreteReplayableEvents = ['mousedown', 'mouseup', 'touchcancel', 'touchend', 'touchstart', 'auxclick', 'dblclick', 'pointercancel', 'pointerdown', 'pointerup', 'dragend', 'dragstart', 'drop', 'compositionend', 'compositionstart', 'keydown', 'keypress', 'keyup', 'input', 'textInput', // Intentionally camelCase
- 'copy', 'cut', 'paste', 'click', 'change', 'contextmenu', 'reset', 'submit'];
- function isDiscreteEventThatRequiresHydration(eventType) {
- return discreteReplayableEvents.indexOf(eventType) > -1;
- }
-
- function createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
- return {
- blockedOn: blockedOn,
- domEventName: domEventName,
- eventSystemFlags: eventSystemFlags,
- nativeEvent: nativeEvent,
- targetContainers: [targetContainer]
- };
- }
-
- function clearIfContinuousEvent(domEventName, nativeEvent) {
- switch (domEventName) {
- case 'focusin':
- case 'focusout':
- queuedFocus = null;
- break;
-
- case 'dragenter':
- case 'dragleave':
- queuedDrag = null;
- break;
-
- case 'mouseover':
- case 'mouseout':
- queuedMouse = null;
- break;
-
- case 'pointerover':
- case 'pointerout':
- {
- var pointerId = nativeEvent.pointerId;
- queuedPointers.delete(pointerId);
- break;
- }
-
- case 'gotpointercapture':
- case 'lostpointercapture':
- {
- var _pointerId = nativeEvent.pointerId;
- queuedPointerCaptures.delete(_pointerId);
- break;
- }
- }
- }
-
- function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
- if (existingQueuedEvent === null || existingQueuedEvent.nativeEvent !== nativeEvent) {
- var queuedEvent = createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent);
-
- if (blockedOn !== null) {
- var _fiber2 = getInstanceFromNode(blockedOn);
-
- if (_fiber2 !== null) {
- // Attempt to increase the priority of this target.
- attemptContinuousHydration(_fiber2);
- }
- }
-
- return queuedEvent;
- } // If we have already queued this exact event, then it's because
- // the different event systems have different DOM event listeners.
- // We can accumulate the flags, and the targetContainers, and
- // store a single event to be replayed.
-
-
- existingQueuedEvent.eventSystemFlags |= eventSystemFlags;
- var targetContainers = existingQueuedEvent.targetContainers;
-
- if (targetContainer !== null && targetContainers.indexOf(targetContainer) === -1) {
- targetContainers.push(targetContainer);
- }
-
- return existingQueuedEvent;
- }
-
- function queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
- // These set relatedTarget to null because the replayed event will be treated as if we
- // moved from outside the window (no target) onto the target once it hydrates.
- // Instead of mutating we could clone the event.
- switch (domEventName) {
- case 'focusin':
- {
- var focusEvent = nativeEvent;
- queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, domEventName, eventSystemFlags, targetContainer, focusEvent);
- return true;
- }
-
- case 'dragenter':
- {
- var dragEvent = nativeEvent;
- queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, domEventName, eventSystemFlags, targetContainer, dragEvent);
- return true;
- }
-
- case 'mouseover':
- {
- var mouseEvent = nativeEvent;
- queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, domEventName, eventSystemFlags, targetContainer, mouseEvent);
- return true;
- }
-
- case 'pointerover':
- {
- var pointerEvent = nativeEvent;
- var pointerId = pointerEvent.pointerId;
- queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, pointerEvent));
- return true;
- }
-
- case 'gotpointercapture':
- {
- var _pointerEvent = nativeEvent;
- var _pointerId2 = _pointerEvent.pointerId;
- queuedPointerCaptures.set(_pointerId2, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, _pointerEvent));
- return true;
- }
- }
-
- return false;
- } // Check if this target is unblocked. Returns true if it's unblocked.
-
- function attemptExplicitHydrationTarget(queuedTarget) {
- // TODO: This function shares a lot of logic with findInstanceBlockingEvent.
- // Try to unify them. It's a bit tricky since it would require two return
- // values.
- var targetInst = getClosestInstanceFromNode(queuedTarget.target);
-
- if (targetInst !== null) {
- var nearestMounted = getNearestMountedFiber(targetInst);
-
- if (nearestMounted !== null) {
- var tag = nearestMounted.tag;
-
- if (tag === SuspenseComponent) {
- var instance = getSuspenseInstanceFromFiber(nearestMounted);
-
- if (instance !== null) {
- // We're blocked on hydrating this boundary.
- // Increase its priority.
- queuedTarget.blockedOn = instance;
- attemptHydrationAtPriority(queuedTarget.priority, function () {
- attemptHydrationAtCurrentPriority(nearestMounted);
- });
- return;
- }
- } else if (tag === HostRoot) {
- var root = nearestMounted.stateNode;
-
- if (isRootDehydrated(root)) {
- queuedTarget.blockedOn = getContainerFromFiber(nearestMounted); // We don't currently have a way to increase the priority of
- // a root other than sync.
-
- return;
- }
- }
- }
- }
-
- queuedTarget.blockedOn = null;
- }
-
- function queueExplicitHydrationTarget(target) {
- // TODO: This will read the priority if it's dispatched by the React
- // event system but not native events. Should read window.event.type, like
- // we do for updates (getCurrentEventPriority).
- var updatePriority = getCurrentUpdatePriority$1();
- var queuedTarget = {
- blockedOn: null,
- target: target,
- priority: updatePriority
- };
- var i = 0;
-
- for (; i < queuedExplicitHydrationTargets.length; i++) {
- // Stop once we hit the first target with lower priority than
- if (!isHigherEventPriority(updatePriority, queuedExplicitHydrationTargets[i].priority)) {
- break;
- }
- }
-
- queuedExplicitHydrationTargets.splice(i, 0, queuedTarget);
-
- if (i === 0) {
- attemptExplicitHydrationTarget(queuedTarget);
- }
- }
-
- function attemptReplayContinuousQueuedEvent(queuedEvent) {
- if (queuedEvent.blockedOn !== null) {
- return false;
- }
-
- var targetContainers = queuedEvent.targetContainers;
-
- while (targetContainers.length > 0) {
- var targetContainer = targetContainers[0];
- var nextBlockedOn = findInstanceBlockingEvent(queuedEvent.domEventName, queuedEvent.eventSystemFlags, targetContainer, queuedEvent.nativeEvent);
-
- if (nextBlockedOn === null) {
- {
- var nativeEvent = queuedEvent.nativeEvent;
- var nativeEventClone = new nativeEvent.constructor(nativeEvent.type, nativeEvent);
- setReplayingEvent(nativeEventClone);
- nativeEvent.target.dispatchEvent(nativeEventClone);
- resetReplayingEvent();
- }
- } else {
- // We're still blocked. Try again later.
- var _fiber3 = getInstanceFromNode(nextBlockedOn);
-
- if (_fiber3 !== null) {
- attemptContinuousHydration(_fiber3);
- }
-
- queuedEvent.blockedOn = nextBlockedOn;
- return false;
- } // This target container was successfully dispatched. Try the next.
-
-
- targetContainers.shift();
- }
-
- return true;
- }
-
- function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {
- if (attemptReplayContinuousQueuedEvent(queuedEvent)) {
- map.delete(key);
- }
- }
-
- function replayUnblockedEvents() {
- hasScheduledReplayAttempt = false;
-
-
- if (queuedFocus !== null && attemptReplayContinuousQueuedEvent(queuedFocus)) {
- queuedFocus = null;
- }
-
- if (queuedDrag !== null && attemptReplayContinuousQueuedEvent(queuedDrag)) {
- queuedDrag = null;
- }
-
- if (queuedMouse !== null && attemptReplayContinuousQueuedEvent(queuedMouse)) {
- queuedMouse = null;
- }
-
- queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap);
- queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);
- }
-
- function scheduleCallbackIfUnblocked(queuedEvent, unblocked) {
- if (queuedEvent.blockedOn === unblocked) {
- queuedEvent.blockedOn = null;
-
- if (!hasScheduledReplayAttempt) {
- hasScheduledReplayAttempt = true; // Schedule a callback to attempt replaying as many events as are
- // now unblocked. This first might not actually be unblocked yet.
- // We could check it early to avoid scheduling an unnecessary callback.
-
- unstable_scheduleCallback(unstable_NormalPriority, replayUnblockedEvents);
- }
- }
- }
-
- function retryIfBlockedOn(unblocked) {
- // Mark anything that was blocked on this as no longer blocked
- // and eligible for a replay.
- if (queuedDiscreteEvents.length > 0) {
- scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's
- // worth it because we expect very few discrete events to queue up and once
- // we are actually fully unblocked it will be fast to replay them.
-
- for (var i = 1; i < queuedDiscreteEvents.length; i++) {
- var queuedEvent = queuedDiscreteEvents[i];
-
- if (queuedEvent.blockedOn === unblocked) {
- queuedEvent.blockedOn = null;
- }
- }
- }
-
- if (queuedFocus !== null) {
- scheduleCallbackIfUnblocked(queuedFocus, unblocked);
- }
-
- if (queuedDrag !== null) {
- scheduleCallbackIfUnblocked(queuedDrag, unblocked);
- }
-
- if (queuedMouse !== null) {
- scheduleCallbackIfUnblocked(queuedMouse, unblocked);
- }
-
- var unblock = function (queuedEvent) {
- return scheduleCallbackIfUnblocked(queuedEvent, unblocked);
- };
-
- queuedPointers.forEach(unblock);
- queuedPointerCaptures.forEach(unblock);
-
- for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) {
- var queuedTarget = queuedExplicitHydrationTargets[_i];
-
- if (queuedTarget.blockedOn === unblocked) {
- queuedTarget.blockedOn = null;
- }
- }
-
- while (queuedExplicitHydrationTargets.length > 0) {
- var nextExplicitTarget = queuedExplicitHydrationTargets[0];
-
- if (nextExplicitTarget.blockedOn !== null) {
- // We're still blocked.
- break;
- } else {
- attemptExplicitHydrationTarget(nextExplicitTarget);
-
- if (nextExplicitTarget.blockedOn === null) {
- // We're unblocked.
- queuedExplicitHydrationTargets.shift();
- }
- }
- }
- }
-
- var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; // TODO: can we stop exporting these?
-
- var _enabled = true; // This is exported in FB builds for use by legacy FB layer infra.
- // We'd like to remove this but it's not clear if this is safe.
-
- function setEnabled(enabled) {
- _enabled = !!enabled;
- }
- function isEnabled() {
- return _enabled;
- }
- function createEventListenerWrapperWithPriority(targetContainer, domEventName, eventSystemFlags) {
- var eventPriority = getEventPriority(domEventName);
- var listenerWrapper;
-
- switch (eventPriority) {
- case DiscreteEventPriority:
- listenerWrapper = dispatchDiscreteEvent;
- break;
-
- case ContinuousEventPriority:
- listenerWrapper = dispatchContinuousEvent;
- break;
-
- case DefaultEventPriority:
- default:
- listenerWrapper = dispatchEvent;
- break;
- }
-
- return listenerWrapper.bind(null, domEventName, eventSystemFlags, targetContainer);
- }
-
- function dispatchDiscreteEvent(domEventName, eventSystemFlags, container, nativeEvent) {
- var previousPriority = getCurrentUpdatePriority();
- var prevTransition = ReactCurrentBatchConfig.transition;
- ReactCurrentBatchConfig.transition = null;
-
- try {
- setCurrentUpdatePriority(DiscreteEventPriority);
- dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
- } finally {
- setCurrentUpdatePriority(previousPriority);
- ReactCurrentBatchConfig.transition = prevTransition;
- }
- }
-
- function dispatchContinuousEvent(domEventName, eventSystemFlags, container, nativeEvent) {
- var previousPriority = getCurrentUpdatePriority();
- var prevTransition = ReactCurrentBatchConfig.transition;
- ReactCurrentBatchConfig.transition = null;
-
- try {
- setCurrentUpdatePriority(ContinuousEventPriority);
- dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
- } finally {
- setCurrentUpdatePriority(previousPriority);
- ReactCurrentBatchConfig.transition = prevTransition;
- }
- }
-
- function dispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) {
- if (!_enabled) {
- return;
- }
-
- {
- dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay(domEventName, eventSystemFlags, targetContainer, nativeEvent);
- }
- }
-
- function dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay(domEventName, eventSystemFlags, targetContainer, nativeEvent) {
- var blockedOn = findInstanceBlockingEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent);
-
- if (blockedOn === null) {
- dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, return_targetInst, targetContainer);
- clearIfContinuousEvent(domEventName, nativeEvent);
- return;
- }
-
- if (queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent)) {
- nativeEvent.stopPropagation();
- return;
- } // We need to clear only if we didn't queue because
- // queueing is accumulative.
-
-
- clearIfContinuousEvent(domEventName, nativeEvent);
-
- if (eventSystemFlags & IS_CAPTURE_PHASE && isDiscreteEventThatRequiresHydration(domEventName)) {
- while (blockedOn !== null) {
- var fiber = getInstanceFromNode(blockedOn);
-
- if (fiber !== null) {
- attemptSynchronousHydration(fiber);
- }
-
- var nextBlockedOn = findInstanceBlockingEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent);
-
- if (nextBlockedOn === null) {
- dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, return_targetInst, targetContainer);
- }
-
- if (nextBlockedOn === blockedOn) {
- break;
- }
-
- blockedOn = nextBlockedOn;
- }
-
- if (blockedOn !== null) {
- nativeEvent.stopPropagation();
- }
-
- return;
- } // This is not replayable so we'll invoke it but without a target,
- // in case the event system needs to trace it.
-
-
- dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, null, targetContainer);
- }
-
- var return_targetInst = null; // Returns a SuspenseInstance or Container if it's blocked.
- // The return_targetInst field above is conceptually part of the return value.
-
- function findInstanceBlockingEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) {
- // TODO: Warn if _enabled is false.
- return_targetInst = null;
- var nativeEventTarget = getEventTarget(nativeEvent);
- var targetInst = getClosestInstanceFromNode(nativeEventTarget);
-
- if (targetInst !== null) {
- var nearestMounted = getNearestMountedFiber(targetInst);
-
- if (nearestMounted === null) {
- // This tree has been unmounted already. Dispatch without a target.
- targetInst = null;
- } else {
- var tag = nearestMounted.tag;
-
- if (tag === SuspenseComponent) {
- var instance = getSuspenseInstanceFromFiber(nearestMounted);
-
- if (instance !== null) {
- // Queue the event to be replayed later. Abort dispatching since we
- // don't want this event dispatched twice through the event system.
- // TODO: If this is the first discrete event in the queue. Schedule an increased
- // priority for this boundary.
- return instance;
- } // This shouldn't happen, something went wrong but to avoid blocking
- // the whole system, dispatch the event without a target.
- // TODO: Warn.
-
-
- targetInst = null;
- } else if (tag === HostRoot) {
- var root = nearestMounted.stateNode;
-
- if (isRootDehydrated(root)) {
- // If this happens during a replay something went wrong and it might block
- // the whole system.
- return getContainerFromFiber(nearestMounted);
- }
-
- targetInst = null;
- } else if (nearestMounted !== targetInst) {
- // If we get an event (ex: img onload) before committing that
- // component's mount, ignore it for now (that is, treat it as if it was an
- // event on a non-React tree). We might also consider queueing events and
- // dispatching them after the mount.
- targetInst = null;
- }
- }
- }
-
- return_targetInst = targetInst; // We're not blocked on anything.
-
- return null;
- }
- function getEventPriority(domEventName) {
- switch (domEventName) {
- // Used by SimpleEventPlugin:
- case 'cancel':
- case 'click':
- case 'close':
- case 'contextmenu':
- case 'copy':
- case 'cut':
- case 'auxclick':
- case 'dblclick':
- case 'dragend':
- case 'dragstart':
- case 'drop':
- case 'focusin':
- case 'focusout':
- case 'input':
- case 'invalid':
- case 'keydown':
- case 'keypress':
- case 'keyup':
- case 'mousedown':
- case 'mouseup':
- case 'paste':
- case 'pause':
- case 'play':
- case 'pointercancel':
- case 'pointerdown':
- case 'pointerup':
- case 'ratechange':
- case 'reset':
- case 'resize':
- case 'seeked':
- case 'submit':
- case 'touchcancel':
- case 'touchend':
- case 'touchstart':
- case 'volumechange': // Used by polyfills:
- // eslint-disable-next-line no-fallthrough
-
- case 'change':
- case 'selectionchange':
- case 'textInput':
- case 'compositionstart':
- case 'compositionend':
- case 'compositionupdate': // Only enableCreateEventHandleAPI:
- // eslint-disable-next-line no-fallthrough
-
- case 'beforeblur':
- case 'afterblur': // Not used by React but could be by user code:
- // eslint-disable-next-line no-fallthrough
-
- case 'beforeinput':
- case 'blur':
- case 'fullscreenchange':
- case 'focus':
- case 'hashchange':
- case 'popstate':
- case 'select':
- case 'selectstart':
- return DiscreteEventPriority;
-
- case 'drag':
- case 'dragenter':
- case 'dragexit':
- case 'dragleave':
- case 'dragover':
- case 'mousemove':
- case 'mouseout':
- case 'mouseover':
- case 'pointermove':
- case 'pointerout':
- case 'pointerover':
- case 'scroll':
- case 'toggle':
- case 'touchmove':
- case 'wheel': // Not used by React but could be by user code:
- // eslint-disable-next-line no-fallthrough
-
- case 'mouseenter':
- case 'mouseleave':
- case 'pointerenter':
- case 'pointerleave':
- return ContinuousEventPriority;
-
- case 'message':
- {
- // We might be in the Scheduler callback.
- // Eventually this mechanism will be replaced by a check
- // of the current priority on the native scheduler.
- var schedulerPriority = getCurrentPriorityLevel();
-
- switch (schedulerPriority) {
- case ImmediatePriority:
- return DiscreteEventPriority;
-
- case UserBlockingPriority:
- return ContinuousEventPriority;
-
- case NormalPriority:
- case LowPriority:
- // TODO: Handle LowSchedulerPriority, somehow. Maybe the same lane as hydration.
- return DefaultEventPriority;
-
- case IdlePriority:
- return IdleEventPriority;
-
- default:
- return DefaultEventPriority;
- }
- }
-
- default:
- return DefaultEventPriority;
- }
- }
-
- function addEventBubbleListener(target, eventType, listener) {
- target.addEventListener(eventType, listener, false);
- return listener;
- }
- function addEventCaptureListener(target, eventType, listener) {
- target.addEventListener(eventType, listener, true);
- return listener;
- }
- function addEventCaptureListenerWithPassiveFlag(target, eventType, listener, passive) {
- target.addEventListener(eventType, listener, {
- capture: true,
- passive: passive
- });
- return listener;
- }
- function addEventBubbleListenerWithPassiveFlag(target, eventType, listener, passive) {
- target.addEventListener(eventType, listener, {
- passive: passive
- });
- return listener;
- }
-
- /**
- * These variables store information about text content of a target node,
- * allowing comparison of content before and after a given event.
- *
- * Identify the node where selection currently begins, then observe
- * both its text content and its current position in the DOM. Since the
- * browser may natively replace the target node during composition, we can
- * use its position to find its replacement.
- *
- *
- */
- var root = null;
- var startText = null;
- var fallbackText = null;
- function initialize(nativeEventTarget) {
- root = nativeEventTarget;
- startText = getText();
- return true;
- }
- function reset() {
- root = null;
- startText = null;
- fallbackText = null;
- }
- function getData() {
- if (fallbackText) {
- return fallbackText;
- }
-
- var start;
- var startValue = startText;
- var startLength = startValue.length;
- var end;
- var endValue = getText();
- var endLength = endValue.length;
-
- for (start = 0; start < startLength; start++) {
- if (startValue[start] !== endValue[start]) {
- break;
- }
- }
-
- var minEnd = startLength - start;
-
- for (end = 1; end <= minEnd; end++) {
- if (startValue[startLength - end] !== endValue[endLength - end]) {
- break;
- }
- }
-
- var sliceTail = end > 1 ? 1 - end : undefined;
- fallbackText = endValue.slice(start, sliceTail);
- return fallbackText;
- }
- function getText() {
- if ('value' in root) {
- return root.value;
- }
-
- return root.textContent;
- }
-
- /**
- * `charCode` represents the actual "character code" and is safe to use with
- * `String.fromCharCode`. As such, only keys that correspond to printable
- * characters produce a valid `charCode`, the only exception to this is Enter.
- * The Tab-key is considered non-printable and does not have a `charCode`,
- * presumably because it does not produce a tab-character in browsers.
- *
- * @param {object} nativeEvent Native browser event.
- * @return {number} Normalized `charCode` property.
- */
- function getEventCharCode(nativeEvent) {
- var charCode;
- var keyCode = nativeEvent.keyCode;
-
- if ('charCode' in nativeEvent) {
- charCode = nativeEvent.charCode; // FF does not set `charCode` for the Enter-key, check against `keyCode`.
-
- if (charCode === 0 && keyCode === 13) {
- charCode = 13;
- }
- } else {
- // IE8 does not implement `charCode`, but `keyCode` has the correct value.
- charCode = keyCode;
- } // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
- // report Enter as charCode 10 when ctrl is pressed.
-
-
- if (charCode === 10) {
- charCode = 13;
- } // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
- // Must not discard the (non-)printable Enter-key.
-
-
- if (charCode >= 32 || charCode === 13) {
- return charCode;
- }
-
- return 0;
- }
-
- function functionThatReturnsTrue() {
- return true;
- }
-
- function functionThatReturnsFalse() {
- return false;
- } // This is intentionally a factory so that we have different returned constructors.
- // If we had a single constructor, it would be megamorphic and engines would deopt.
-
-
- function createSyntheticEvent(Interface) {
- /**
- * Synthetic events are dispatched by event plugins, typically in response to a
- * top-level event delegation handler.
- *
- * These systems should generally use pooling to reduce the frequency of garbage
- * collection. The system should check `isPersistent` to determine whether the
- * event should be released into the pool after being dispatched. Users that
- * need a persisted event should invoke `persist`.
- *
- * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
- * normalizing browser quirks. Subclasses do not necessarily have to implement a
- * DOM interface; custom application-specific events can also subclass this.
- */
- function SyntheticBaseEvent(reactName, reactEventType, targetInst, nativeEvent, nativeEventTarget) {
- this._reactName = reactName;
- this._targetInst = targetInst;
- this.type = reactEventType;
- this.nativeEvent = nativeEvent;
- this.target = nativeEventTarget;
- this.currentTarget = null;
-
- for (var _propName in Interface) {
- if (!Interface.hasOwnProperty(_propName)) {
- continue;
- }
-
- var normalize = Interface[_propName];
-
- if (normalize) {
- this[_propName] = normalize(nativeEvent);
- } else {
- this[_propName] = nativeEvent[_propName];
- }
- }
-
- var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
-
- if (defaultPrevented) {
- this.isDefaultPrevented = functionThatReturnsTrue;
- } else {
- this.isDefaultPrevented = functionThatReturnsFalse;
- }
-
- this.isPropagationStopped = functionThatReturnsFalse;
- return this;
- }
-
- assign(SyntheticBaseEvent.prototype, {
- preventDefault: function () {
- this.defaultPrevented = true;
- var event = this.nativeEvent;
-
- if (!event) {
- return;
- }
-
- if (event.preventDefault) {
- event.preventDefault(); // $FlowFixMe - flow is not aware of `unknown` in IE
- } else if (typeof event.returnValue !== 'unknown') {
- event.returnValue = false;
- }
-
- this.isDefaultPrevented = functionThatReturnsTrue;
- },
- stopPropagation: function () {
- var event = this.nativeEvent;
-
- if (!event) {
- return;
- }
-
- if (event.stopPropagation) {
- event.stopPropagation(); // $FlowFixMe - flow is not aware of `unknown` in IE
- } else if (typeof event.cancelBubble !== 'unknown') {
- // The ChangeEventPlugin registers a "propertychange" event for
- // IE. This event does not support bubbling or cancelling, and
- // any references to cancelBubble throw "Member not found". A
- // typeof check of "unknown" circumvents this issue (and is also
- // IE specific).
- event.cancelBubble = true;
- }
-
- this.isPropagationStopped = functionThatReturnsTrue;
- },
-
- /**
- * We release all dispatched `SyntheticEvent`s after each event loop, adding
- * them back into the pool. This allows a way to hold onto a reference that
- * won't be added back into the pool.
- */
- persist: function () {// Modern event system doesn't use pooling.
- },
-
- /**
- * Checks if this event should be released back into the pool.
- *
- * @return {boolean} True if this should not be released, false otherwise.
- */
- isPersistent: functionThatReturnsTrue
- });
- return SyntheticBaseEvent;
- }
- /**
- * @interface Event
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-
-
- var EventInterface = {
- eventPhase: 0,
- bubbles: 0,
- cancelable: 0,
- timeStamp: function (event) {
- return event.timeStamp || Date.now();
- },
- defaultPrevented: 0,
- isTrusted: 0
- };
- var SyntheticEvent = createSyntheticEvent(EventInterface);
-
- var UIEventInterface = assign({}, EventInterface, {
- view: 0,
- detail: 0
- });
-
- var SyntheticUIEvent = createSyntheticEvent(UIEventInterface);
- var lastMovementX;
- var lastMovementY;
- var lastMouseEvent;
-
- function updateMouseMovementPolyfillState(event) {
- if (event !== lastMouseEvent) {
- if (lastMouseEvent && event.type === 'mousemove') {
- lastMovementX = event.screenX - lastMouseEvent.screenX;
- lastMovementY = event.screenY - lastMouseEvent.screenY;
- } else {
- lastMovementX = 0;
- lastMovementY = 0;
- }
-
- lastMouseEvent = event;
- }
- }
- /**
- * @interface MouseEvent
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-
-
- var MouseEventInterface = assign({}, UIEventInterface, {
- screenX: 0,
- screenY: 0,
- clientX: 0,
- clientY: 0,
- pageX: 0,
- pageY: 0,
- ctrlKey: 0,
- shiftKey: 0,
- altKey: 0,
- metaKey: 0,
- getModifierState: getEventModifierState,
- button: 0,
- buttons: 0,
- relatedTarget: function (event) {
- if (event.relatedTarget === undefined) return event.fromElement === event.srcElement ? event.toElement : event.fromElement;
- return event.relatedTarget;
- },
- movementX: function (event) {
- if ('movementX' in event) {
- return event.movementX;
- }
-
- updateMouseMovementPolyfillState(event);
- return lastMovementX;
- },
- movementY: function (event) {
- if ('movementY' in event) {
- return event.movementY;
- } // Don't need to call updateMouseMovementPolyfillState() here
- // because it's guaranteed to have already run when movementX
- // was copied.
-
-
- return lastMovementY;
- }
- });
-
- var SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface);
- /**
- * @interface DragEvent
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-
- var DragEventInterface = assign({}, MouseEventInterface, {
- dataTransfer: 0
- });
-
- var SyntheticDragEvent = createSyntheticEvent(DragEventInterface);
- /**
- * @interface FocusEvent
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-
- var FocusEventInterface = assign({}, UIEventInterface, {
- relatedTarget: 0
- });
-
- var SyntheticFocusEvent = createSyntheticEvent(FocusEventInterface);
- /**
- * @interface Event
- * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
- * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
- */
-
- var AnimationEventInterface = assign({}, EventInterface, {
- animationName: 0,
- elapsedTime: 0,
- pseudoElement: 0
- });
-
- var SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface);
- /**
- * @interface Event
- * @see http://www.w3.org/TR/clipboard-apis/
- */
-
- var ClipboardEventInterface = assign({}, EventInterface, {
- clipboardData: function (event) {
- return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
- }
- });
-
- var SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface);
- /**
- * @interface Event
- * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
- */
-
- var CompositionEventInterface = assign({}, EventInterface, {
- data: 0
- });
-
- var SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface);
- /**
- * @interface Event
- * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
- * /#events-inputevents
- */
- // Happens to share the same list for now.
-
- var SyntheticInputEvent = SyntheticCompositionEvent;
- /**
- * Normalization of deprecated HTML5 `key` values
- * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
- */
-
- var normalizeKey = {
- Esc: 'Escape',
- Spacebar: ' ',
- Left: 'ArrowLeft',
- Up: 'ArrowUp',
- Right: 'ArrowRight',
- Down: 'ArrowDown',
- Del: 'Delete',
- Win: 'OS',
- Menu: 'ContextMenu',
- Apps: 'ContextMenu',
- Scroll: 'ScrollLock',
- MozPrintableKey: 'Unidentified'
- };
- /**
- * Translation from legacy `keyCode` to HTML5 `key`
- * Only special keys supported, all others depend on keyboard layout or browser
- * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
- */
-
- var translateToKey = {
- '8': 'Backspace',
- '9': 'Tab',
- '12': 'Clear',
- '13': 'Enter',
- '16': 'Shift',
- '17': 'Control',
- '18': 'Alt',
- '19': 'Pause',
- '20': 'CapsLock',
- '27': 'Escape',
- '32': ' ',
- '33': 'PageUp',
- '34': 'PageDown',
- '35': 'End',
- '36': 'Home',
- '37': 'ArrowLeft',
- '38': 'ArrowUp',
- '39': 'ArrowRight',
- '40': 'ArrowDown',
- '45': 'Insert',
- '46': 'Delete',
- '112': 'F1',
- '113': 'F2',
- '114': 'F3',
- '115': 'F4',
- '116': 'F5',
- '117': 'F6',
- '118': 'F7',
- '119': 'F8',
- '120': 'F9',
- '121': 'F10',
- '122': 'F11',
- '123': 'F12',
- '144': 'NumLock',
- '145': 'ScrollLock',
- '224': 'Meta'
- };
- /**
- * @param {object} nativeEvent Native browser event.
- * @return {string} Normalized `key` property.
- */
-
- function getEventKey(nativeEvent) {
- if (nativeEvent.key) {
- // Normalize inconsistent values reported by browsers due to
- // implementations of a working draft specification.
- // FireFox implements `key` but returns `MozPrintableKey` for all
- // printable characters (normalized to `Unidentified`), ignore it.
- var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
-
- if (key !== 'Unidentified') {
- return key;
- }
- } // Browser does not implement `key`, polyfill as much of it as we can.
-
-
- if (nativeEvent.type === 'keypress') {
- var charCode = getEventCharCode(nativeEvent); // The enter-key is technically both printable and non-printable and can
- // thus be captured by `keypress`, no other non-printable key should.
-
- return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
- }
-
- if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
- // While user keyboard layout determines the actual meaning of each
- // `keyCode` value, almost all function keys have a universal value.
- return translateToKey[nativeEvent.keyCode] || 'Unidentified';
- }
-
- return '';
- }
- /**
- * Translation from modifier key to the associated property in the event.
- * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
- */
-
-
- var modifierKeyToProp = {
- Alt: 'altKey',
- Control: 'ctrlKey',
- Meta: 'metaKey',
- Shift: 'shiftKey'
- }; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
- // getModifierState. If getModifierState is not supported, we map it to a set of
- // modifier keys exposed by the event. In this case, Lock-keys are not supported.
-
- function modifierStateGetter(keyArg) {
- var syntheticEvent = this;
- var nativeEvent = syntheticEvent.nativeEvent;
-
- if (nativeEvent.getModifierState) {
- return nativeEvent.getModifierState(keyArg);
- }
-
- var keyProp = modifierKeyToProp[keyArg];
- return keyProp ? !!nativeEvent[keyProp] : false;
- }
-
- function getEventModifierState(nativeEvent) {
- return modifierStateGetter;
- }
- /**
- * @interface KeyboardEvent
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-
-
- var KeyboardEventInterface = assign({}, UIEventInterface, {
- key: getEventKey,
- code: 0,
- location: 0,
- ctrlKey: 0,
- shiftKey: 0,
- altKey: 0,
- metaKey: 0,
- repeat: 0,
- locale: 0,
- getModifierState: getEventModifierState,
- // Legacy Interface
- charCode: function (event) {
- // `charCode` is the result of a KeyPress event and represents the value of
- // the actual printable character.
- // KeyPress is deprecated, but its replacement is not yet final and not
- // implemented in any major browser. Only KeyPress has charCode.
- if (event.type === 'keypress') {
- return getEventCharCode(event);
- }
-
- return 0;
- },
- keyCode: function (event) {
- // `keyCode` is the result of a KeyDown/Up event and represents the value of
- // physical keyboard key.
- // The actual meaning of the value depends on the users' keyboard layout
- // which cannot be detected. Assuming that it is a US keyboard layout
- // provides a surprisingly accurate mapping for US and European users.
- // Due to this, it is left to the user to implement at this time.
- if (event.type === 'keydown' || event.type === 'keyup') {
- return event.keyCode;
- }
-
- return 0;
- },
- which: function (event) {
- // `which` is an alias for either `keyCode` or `charCode` depending on the
- // type of the event.
- if (event.type === 'keypress') {
- return getEventCharCode(event);
- }
-
- if (event.type === 'keydown' || event.type === 'keyup') {
- return event.keyCode;
- }
-
- return 0;
- }
- });
-
- var SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface);
- /**
- * @interface PointerEvent
- * @see http://www.w3.org/TR/pointerevents/
- */
-
- var PointerEventInterface = assign({}, MouseEventInterface, {
- pointerId: 0,
- width: 0,
- height: 0,
- pressure: 0,
- tangentialPressure: 0,
- tiltX: 0,
- tiltY: 0,
- twist: 0,
- pointerType: 0,
- isPrimary: 0
- });
-
- var SyntheticPointerEvent = createSyntheticEvent(PointerEventInterface);
- /**
- * @interface TouchEvent
- * @see http://www.w3.org/TR/touch-events/
- */
-
- var TouchEventInterface = assign({}, UIEventInterface, {
- touches: 0,
- targetTouches: 0,
- changedTouches: 0,
- altKey: 0,
- metaKey: 0,
- ctrlKey: 0,
- shiftKey: 0,
- getModifierState: getEventModifierState
- });
-
- var SyntheticTouchEvent = createSyntheticEvent(TouchEventInterface);
- /**
- * @interface Event
- * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
- * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
- */
-
- var TransitionEventInterface = assign({}, EventInterface, {
- propertyName: 0,
- elapsedTime: 0,
- pseudoElement: 0
- });
-
- var SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface);
- /**
- * @interface WheelEvent
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-
- var WheelEventInterface = assign({}, MouseEventInterface, {
- deltaX: function (event) {
- return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
- 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
- },
- deltaY: function (event) {
- return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
- 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
- 'wheelDelta' in event ? -event.wheelDelta : 0;
- },
- deltaZ: 0,
- // Browsers without "deltaMode" is reporting in raw wheel delta where one
- // notch on the scroll is always +/- 120, roughly equivalent to pixels.
- // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
- // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
- deltaMode: 0
- });
-
- var SyntheticWheelEvent = createSyntheticEvent(WheelEventInterface);
-
- var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
-
- var START_KEYCODE = 229;
- var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
- var documentMode = null;
-
- if (canUseDOM && 'documentMode' in document) {
- documentMode = document.documentMode;
- } // Webkit offers a very useful `textInput` event that can be used to
- // directly represent `beforeInput`. The IE `textinput` event is not as
- // useful, so we don't use it.
-
-
- var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode; // In IE9+, we have access to composition events, but the data supplied
- // by the native compositionend event may be incorrect. Japanese ideographic
- // spaces, for instance (\u3000) are not recorded correctly.
-
- var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
- var SPACEBAR_CODE = 32;
- var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);
-
- function registerEvents() {
- registerTwoPhaseEvent('onBeforeInput', ['compositionend', 'keypress', 'textInput', 'paste']);
- registerTwoPhaseEvent('onCompositionEnd', ['compositionend', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);
- registerTwoPhaseEvent('onCompositionStart', ['compositionstart', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);
- registerTwoPhaseEvent('onCompositionUpdate', ['compositionupdate', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);
- } // Track whether we've ever handled a keypress on the space key.
-
-
- var hasSpaceKeypress = false;
- /**
- * Return whether a native keypress event is assumed to be a command.
- * This is required because Firefox fires `keypress` events for key commands
- * (cut, copy, select-all, etc.) even though no character is inserted.
- */
-
- function isKeypressCommand(nativeEvent) {
- return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && // ctrlKey && altKey is equivalent to AltGr, and is not a command.
- !(nativeEvent.ctrlKey && nativeEvent.altKey);
- }
- /**
- * Translate native top level events into event types.
- */
-
-
- function getCompositionEventType(domEventName) {
- switch (domEventName) {
- case 'compositionstart':
- return 'onCompositionStart';
-
- case 'compositionend':
- return 'onCompositionEnd';
-
- case 'compositionupdate':
- return 'onCompositionUpdate';
- }
- }
- /**
- * Does our fallback best-guess model think this event signifies that
- * composition has begun?
- */
-
-
- function isFallbackCompositionStart(domEventName, nativeEvent) {
- return domEventName === 'keydown' && nativeEvent.keyCode === START_KEYCODE;
- }
- /**
- * Does our fallback mode think that this event is the end of composition?
- */
-
-
- function isFallbackCompositionEnd(domEventName, nativeEvent) {
- switch (domEventName) {
- case 'keyup':
- // Command keys insert or clear IME input.
- return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
-
- case 'keydown':
- // Expect IME keyCode on each keydown. If we get any other
- // code we must have exited earlier.
- return nativeEvent.keyCode !== START_KEYCODE;
-
- case 'keypress':
- case 'mousedown':
- case 'focusout':
- // Events are not possible without cancelling IME.
- return true;
-
- default:
- return false;
- }
- }
- /**
- * Google Input Tools provides composition data via a CustomEvent,
- * with the `data` property populated in the `detail` object. If this
- * is available on the event object, use it. If not, this is a plain
- * composition event and we have nothing special to extract.
- *
- * @param {object} nativeEvent
- * @return {?string}
- */
-
-
- function getDataFromCustomEvent(nativeEvent) {
- var detail = nativeEvent.detail;
-
- if (typeof detail === 'object' && 'data' in detail) {
- return detail.data;
- }
-
- return null;
- }
- /**
- * Check if a composition event was triggered by Korean IME.
- * Our fallback mode does not work well with IE's Korean IME,
- * so just use native composition events when Korean IME is used.
- * Although CompositionEvent.locale property is deprecated,
- * it is available in IE, where our fallback mode is enabled.
- *
- * @param {object} nativeEvent
- * @return {boolean}
- */
-
-
- function isUsingKoreanIME(nativeEvent) {
- return nativeEvent.locale === 'ko';
- } // Track the current IME composition status, if any.
-
-
- var isComposing = false;
- /**
- * @return {?object} A SyntheticCompositionEvent.
- */
-
- function extractCompositionEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget) {
- var eventType;
- var fallbackData;
-
- if (canUseCompositionEvent) {
- eventType = getCompositionEventType(domEventName);
- } else if (!isComposing) {
- if (isFallbackCompositionStart(domEventName, nativeEvent)) {
- eventType = 'onCompositionStart';
- }
- } else if (isFallbackCompositionEnd(domEventName, nativeEvent)) {
- eventType = 'onCompositionEnd';
- }
-
- if (!eventType) {
- return null;
- }
-
- if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
- // The current composition is stored statically and must not be
- // overwritten while composition continues.
- if (!isComposing && eventType === 'onCompositionStart') {
- isComposing = initialize(nativeEventTarget);
- } else if (eventType === 'onCompositionEnd') {
- if (isComposing) {
- fallbackData = getData();
- }
- }
- }
-
- var listeners = accumulateTwoPhaseListeners(targetInst, eventType);
-
- if (listeners.length > 0) {
- var event = new SyntheticCompositionEvent(eventType, domEventName, null, nativeEvent, nativeEventTarget);
- dispatchQueue.push({
- event: event,
- listeners: listeners
- });
-
- if (fallbackData) {
- // Inject data generated from fallback path into the synthetic event.
- // This matches the property of native CompositionEventInterface.
- event.data = fallbackData;
- } else {
- var customData = getDataFromCustomEvent(nativeEvent);
-
- if (customData !== null) {
- event.data = customData;
- }
- }
- }
- }
-
- function getNativeBeforeInputChars(domEventName, nativeEvent) {
- switch (domEventName) {
- case 'compositionend':
- return getDataFromCustomEvent(nativeEvent);
-
- case 'keypress':
- /**
- * If native `textInput` events are available, our goal is to make
- * use of them. However, there is a special case: the spacebar key.
- * In Webkit, preventing default on a spacebar `textInput` event
- * cancels character insertion, but it *also* causes the browser
- * to fall back to its default spacebar behavior of scrolling the
- * page.
- *
- * Tracking at:
- * https://code.google.com/p/chromium/issues/detail?id=355103
- *
- * To avoid this issue, use the keypress event as if no `textInput`
- * event is available.
- */
- var which = nativeEvent.which;
-
- if (which !== SPACEBAR_CODE) {
- return null;
- }
-
- hasSpaceKeypress = true;
- return SPACEBAR_CHAR;
-
- case 'textInput':
- // Record the characters to be added to the DOM.
- var chars = nativeEvent.data; // If it's a spacebar character, assume that we have already handled
- // it at the keypress level and bail immediately. Android Chrome
- // doesn't give us keycodes, so we need to ignore it.
-
- if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
- return null;
- }
-
- return chars;
-
- default:
- // For other native event types, do nothing.
- return null;
- }
- }
- /**
- * For browsers that do not provide the `textInput` event, extract the
- * appropriate string to use for SyntheticInputEvent.
- */
-
-
- function getFallbackBeforeInputChars(domEventName, nativeEvent) {
- // If we are currently composing (IME) and using a fallback to do so,
- // try to extract the composed characters from the fallback object.
- // If composition event is available, we extract a string only at
- // compositionevent, otherwise extract it at fallback events.
- if (isComposing) {
- if (domEventName === 'compositionend' || !canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent)) {
- var chars = getData();
- reset();
- isComposing = false;
- return chars;
- }
-
- return null;
- }
-
- switch (domEventName) {
- case 'paste':
- // If a paste event occurs after a keypress, throw out the input
- // chars. Paste events should not lead to BeforeInput events.
- return null;
-
- case 'keypress':
- /**
- * As of v27, Firefox may fire keypress events even when no character
- * will be inserted. A few possibilities:
- *
- * - `which` is `0`. Arrow keys, Esc key, etc.
- *
- * - `which` is the pressed key code, but no char is available.
- * Ex: 'AltGr + d` in Polish. There is no modified character for
- * this key combination and no character is inserted into the
- * document, but FF fires the keypress for char code `100` anyway.
- * No `input` event will occur.
- *
- * - `which` is the pressed key code, but a command combination is
- * being used. Ex: `Cmd+C`. No character is inserted, and no
- * `input` event will occur.
- */
- if (!isKeypressCommand(nativeEvent)) {
- // IE fires the `keypress` event when a user types an emoji via
- // Touch keyboard of Windows. In such a case, the `char` property
- // holds an emoji character like `\uD83D\uDE0A`. Because its length
- // is 2, the property `which` does not represent an emoji correctly.
- // In such a case, we directly return the `char` property instead of
- // using `which`.
- if (nativeEvent.char && nativeEvent.char.length > 1) {
- return nativeEvent.char;
- } else if (nativeEvent.which) {
- return String.fromCharCode(nativeEvent.which);
- }
- }
-
- return null;
-
- case 'compositionend':
- return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
-
- default:
- return null;
- }
- }
- /**
- * Extract a SyntheticInputEvent for `beforeInput`, based on either native
- * `textInput` or fallback behavior.
- *
- * @return {?object} A SyntheticInputEvent.
- */
-
-
- function extractBeforeInputEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget) {
- var chars;
-
- if (canUseTextInputEvent) {
- chars = getNativeBeforeInputChars(domEventName, nativeEvent);
- } else {
- chars = getFallbackBeforeInputChars(domEventName, nativeEvent);
- } // If no characters are being inserted, no BeforeInput event should
- // be fired.
-
-
- if (!chars) {
- return null;
- }
-
- var listeners = accumulateTwoPhaseListeners(targetInst, 'onBeforeInput');
-
- if (listeners.length > 0) {
- var event = new SyntheticInputEvent('onBeforeInput', 'beforeinput', null, nativeEvent, nativeEventTarget);
- dispatchQueue.push({
- event: event,
- listeners: listeners
- });
- event.data = chars;
- }
- }
- /**
- * Create an `onBeforeInput` event to match
- * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
- *
- * This event plugin is based on the native `textInput` event
- * available in Chrome, Safari, Opera, and IE. This event fires after
- * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
- *
- * `beforeInput` is spec'd but not implemented in any browsers, and
- * the `input` event does not provide any useful information about what has
- * actually been added, contrary to the spec. Thus, `textInput` is the best
- * available event to identify the characters that have actually been inserted
- * into the target node.
- *
- * This plugin is also responsible for emitting `composition` events, thus
- * allowing us to share composition fallback code for both `beforeInput` and
- * `composition` event types.
- */
-
-
- function extractEvents(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
- extractCompositionEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
- extractBeforeInputEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
- }
-
- /**
- * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
- */
- var supportedInputTypes = {
- color: true,
- date: true,
- datetime: true,
- 'datetime-local': true,
- email: true,
- month: true,
- number: true,
- password: true,
- range: true,
- search: true,
- tel: true,
- text: true,
- time: true,
- url: true,
- week: true
- };
-
- function isTextInputElement(elem) {
- var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
-
- if (nodeName === 'input') {
- return !!supportedInputTypes[elem.type];
- }
-
- if (nodeName === 'textarea') {
- return true;
- }
-
- return false;
- }
-
- /**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- */
-
- function isEventSupported(eventNameSuffix) {
- if (!canUseDOM) {
- return false;
- }
-
- var eventName = 'on' + eventNameSuffix;
- var isSupported = (eventName in document);
-
- if (!isSupported) {
- var element = document.createElement('div');
- element.setAttribute(eventName, 'return;');
- isSupported = typeof element[eventName] === 'function';
- }
-
- return isSupported;
- }
-
- function registerEvents$1() {
- registerTwoPhaseEvent('onChange', ['change', 'click', 'focusin', 'focusout', 'input', 'keydown', 'keyup', 'selectionchange']);
- }
-
- function createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, target) {
- // Flag this event loop as needing state restore.
- enqueueStateRestore(target);
- var listeners = accumulateTwoPhaseListeners(inst, 'onChange');
-
- if (listeners.length > 0) {
- var event = new SyntheticEvent('onChange', 'change', null, nativeEvent, target);
- dispatchQueue.push({
- event: event,
- listeners: listeners
- });
- }
- }
- /**
- * For IE shims
- */
-
-
- var activeElement = null;
- var activeElementInst = null;
- /**
- * SECTION: handle `change` event
- */
-
- function shouldUseChangeEvent(elem) {
- var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
- return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
- }
-
- function manualDispatchChangeEvent(nativeEvent) {
- var dispatchQueue = [];
- createAndAccumulateChangeEvent(dispatchQueue, activeElementInst, nativeEvent, getEventTarget(nativeEvent)); // If change and propertychange bubbled, we'd just bind to it like all the
- // other events and have it go through ReactBrowserEventEmitter. Since it
- // doesn't, we manually listen for the events and so we have to enqueue and
- // process the abstract event manually.
- //
- // Batching is necessary here in order to ensure that all event handlers run
- // before the next rerender (including event handlers attached to ancestor
- // elements instead of directly on the input). Without this, controlled
- // components don't work properly in conjunction with event bubbling because
- // the component is rerendered and the value reverted before all the event
- // handlers can run. See https://github.com/facebook/react/issues/708.
-
- batchedUpdates(runEventInBatch, dispatchQueue);
- }
-
- function runEventInBatch(dispatchQueue) {
- processDispatchQueue(dispatchQueue, 0);
- }
-
- function getInstIfValueChanged(targetInst) {
- var targetNode = getNodeFromInstance(targetInst);
-
- if (updateValueIfChanged(targetNode)) {
- return targetInst;
- }
- }
-
- function getTargetInstForChangeEvent(domEventName, targetInst) {
- if (domEventName === 'change') {
- return targetInst;
- }
- }
- /**
- * SECTION: handle `input` event
- */
-
-
- var isInputEventSupported = false;
-
- if (canUseDOM) {
- // IE9 claims to support the input event but fails to trigger it when
- // deleting text, so we ignore its input events.
- isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
- }
- /**
- * (For IE <=9) Starts tracking propertychange events on the passed-in element
- * and override the value property so that we can distinguish user events from
- * value changes in JS.
- */
-
-
- function startWatchingForValueChange(target, targetInst) {
- activeElement = target;
- activeElementInst = targetInst;
- activeElement.attachEvent('onpropertychange', handlePropertyChange);
- }
- /**
- * (For IE <=9) Removes the event listeners from the currently-tracked element,
- * if any exists.
- */
-
-
- function stopWatchingForValueChange() {
- if (!activeElement) {
- return;
- }
-
- activeElement.detachEvent('onpropertychange', handlePropertyChange);
- activeElement = null;
- activeElementInst = null;
- }
- /**
- * (For IE <=9) Handles a propertychange event, sending a `change` event if
- * the value of the active element has changed.
- */
-
-
- function handlePropertyChange(nativeEvent) {
- if (nativeEvent.propertyName !== 'value') {
- return;
- }
-
- if (getInstIfValueChanged(activeElementInst)) {
- manualDispatchChangeEvent(nativeEvent);
- }
- }
-
- function handleEventsForInputEventPolyfill(domEventName, target, targetInst) {
- if (domEventName === 'focusin') {
- // In IE9, propertychange fires for most input events but is buggy and
- // doesn't fire when text is deleted, but conveniently, selectionchange
- // appears to fire in all of the remaining cases so we catch those and
- // forward the event if the value has changed
- // In either case, we don't want to call the event handler if the value
- // is changed from JS so we redefine a setter for `.value` that updates
- // our activeElementValue variable, allowing us to ignore those changes
- //
- // stopWatching() should be a noop here but we call it just in case we
- // missed a blur event somehow.
- stopWatchingForValueChange();
- startWatchingForValueChange(target, targetInst);
- } else if (domEventName === 'focusout') {
- stopWatchingForValueChange();
- }
- } // For IE8 and IE9.
-
-
- function getTargetInstForInputEventPolyfill(domEventName, targetInst) {
- if (domEventName === 'selectionchange' || domEventName === 'keyup' || domEventName === 'keydown') {
- // On the selectionchange event, the target is just document which isn't
- // helpful for us so just check activeElement instead.
- //
- // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
- // propertychange on the first input event after setting `value` from a
- // script and fires only keydown, keypress, keyup. Catching keyup usually
- // gets it and catching keydown lets us fire an event for the first
- // keystroke if user does a key repeat (it'll be a little delayed: right
- // before the second keystroke). Other input methods (e.g., paste) seem to
- // fire selectionchange normally.
- return getInstIfValueChanged(activeElementInst);
- }
- }
- /**
- * SECTION: handle `click` event
- */
-
-
- function shouldUseClickEvent(elem) {
- // Use the `click` event to detect changes to checkbox and radio inputs.
- // This approach works across all browsers, whereas `change` does not fire
- // until `blur` in IE8.
- var nodeName = elem.nodeName;
- return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
- }
-
- function getTargetInstForClickEvent(domEventName, targetInst) {
- if (domEventName === 'click') {
- return getInstIfValueChanged(targetInst);
- }
- }
-
- function getTargetInstForInputOrChangeEvent(domEventName, targetInst) {
- if (domEventName === 'input' || domEventName === 'change') {
- return getInstIfValueChanged(targetInst);
- }
- }
-
- function handleControlledInputBlur(node) {
- var state = node._wrapperState;
-
- if (!state || !state.controlled || node.type !== 'number') {
- return;
- }
-
- {
- // If controlled, assign the value attribute to the current value on blur
- setDefaultValue(node, 'number', node.value);
- }
- }
- /**
- * This plugin creates an `onChange` event that normalizes change events
- * across form elements. This event fires at a time when it's possible to
- * change the element's value without seeing a flicker.
- *
- * Supported elements are:
- * - input (see `isTextInputElement`)
- * - textarea
- * - select
- */
-
-
- function extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
- var targetNode = targetInst ? getNodeFromInstance(targetInst) : window;
- var getTargetInstFunc, handleEventFunc;
-
- if (shouldUseChangeEvent(targetNode)) {
- getTargetInstFunc = getTargetInstForChangeEvent;
- } else if (isTextInputElement(targetNode)) {
- if (isInputEventSupported) {
- getTargetInstFunc = getTargetInstForInputOrChangeEvent;
- } else {
- getTargetInstFunc = getTargetInstForInputEventPolyfill;
- handleEventFunc = handleEventsForInputEventPolyfill;
- }
- } else if (shouldUseClickEvent(targetNode)) {
- getTargetInstFunc = getTargetInstForClickEvent;
- }
-
- if (getTargetInstFunc) {
- var inst = getTargetInstFunc(domEventName, targetInst);
-
- if (inst) {
- createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, nativeEventTarget);
- return;
- }
- }
-
- if (handleEventFunc) {
- handleEventFunc(domEventName, targetNode, targetInst);
- } // When blurring, set the value attribute for number inputs
-
-
- if (domEventName === 'focusout') {
- handleControlledInputBlur(targetNode);
- }
- }
-
- function registerEvents$2() {
- registerDirectEvent('onMouseEnter', ['mouseout', 'mouseover']);
- registerDirectEvent('onMouseLeave', ['mouseout', 'mouseover']);
- registerDirectEvent('onPointerEnter', ['pointerout', 'pointerover']);
- registerDirectEvent('onPointerLeave', ['pointerout', 'pointerover']);
- }
- /**
- * For almost every interaction we care about, there will be both a top-level
- * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
- * we do not extract duplicate events. However, moving the mouse into the
- * browser from outside will not fire a `mouseout` event. In this case, we use
- * the `mouseover` top-level event.
- */
-
-
- function extractEvents$2(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
- var isOverEvent = domEventName === 'mouseover' || domEventName === 'pointerover';
- var isOutEvent = domEventName === 'mouseout' || domEventName === 'pointerout';
-
- if (isOverEvent && !isReplayingEvent(nativeEvent)) {
- // If this is an over event with a target, we might have already dispatched
- // the event in the out event of the other target. If this is replayed,
- // then it's because we couldn't dispatch against this target previously
- // so we have to do it now instead.
- var related = nativeEvent.relatedTarget || nativeEvent.fromElement;
-
- if (related) {
- // If the related node is managed by React, we can assume that we have
- // already dispatched the corresponding events during its mouseout.
- if (getClosestInstanceFromNode(related) || isContainerMarkedAsRoot(related)) {
- return;
- }
- }
- }
-
- if (!isOutEvent && !isOverEvent) {
- // Must not be a mouse or pointer in or out - ignoring.
- return;
- }
-
- var win; // TODO: why is this nullable in the types but we read from it?
-
- if (nativeEventTarget.window === nativeEventTarget) {
- // `nativeEventTarget` is probably a window object.
- win = nativeEventTarget;
- } else {
- // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
- var doc = nativeEventTarget.ownerDocument;
-
- if (doc) {
- win = doc.defaultView || doc.parentWindow;
- } else {
- win = window;
- }
- }
-
- var from;
- var to;
-
- if (isOutEvent) {
- var _related = nativeEvent.relatedTarget || nativeEvent.toElement;
-
- from = targetInst;
- to = _related ? getClosestInstanceFromNode(_related) : null;
-
- if (to !== null) {
- var nearestMounted = getNearestMountedFiber(to);
-
- if (to !== nearestMounted || to.tag !== HostComponent && to.tag !== HostText) {
- to = null;
- }
- }
- } else {
- // Moving to a node from outside the window.
- from = null;
- to = targetInst;
- }
-
- if (from === to) {
- // Nothing pertains to our managed components.
- return;
- }
-
- var SyntheticEventCtor = SyntheticMouseEvent;
- var leaveEventType = 'onMouseLeave';
- var enterEventType = 'onMouseEnter';
- var eventTypePrefix = 'mouse';
-
- if (domEventName === 'pointerout' || domEventName === 'pointerover') {
- SyntheticEventCtor = SyntheticPointerEvent;
- leaveEventType = 'onPointerLeave';
- enterEventType = 'onPointerEnter';
- eventTypePrefix = 'pointer';
- }
-
- var fromNode = from == null ? win : getNodeFromInstance(from);
- var toNode = to == null ? win : getNodeFromInstance(to);
- var leave = new SyntheticEventCtor(leaveEventType, eventTypePrefix + 'leave', from, nativeEvent, nativeEventTarget);
- leave.target = fromNode;
- leave.relatedTarget = toNode;
- var enter = null; // We should only process this nativeEvent if we are processing
- // the first ancestor. Next time, we will ignore the event.
-
- var nativeTargetInst = getClosestInstanceFromNode(nativeEventTarget);
-
- if (nativeTargetInst === targetInst) {
- var enterEvent = new SyntheticEventCtor(enterEventType, eventTypePrefix + 'enter', to, nativeEvent, nativeEventTarget);
- enterEvent.target = toNode;
- enterEvent.relatedTarget = fromNode;
- enter = enterEvent;
- }
-
- accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leave, enter, from, to);
- }
-
- /**
- * inlined Object.is polyfill to avoid requiring consumers ship their own
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
- */
- function is(x, y) {
- return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
- ;
- }
-
- var objectIs = typeof Object.is === 'function' ? Object.is : is;
-
- /**
- * Performs equality by iterating through keys on an object and returning false
- * when any key has values which are not strictly equal between the arguments.
- * Returns true when the values of all keys are strictly equal.
- */
-
- function shallowEqual(objA, objB) {
- if (objectIs(objA, objB)) {
- return true;
- }
-
- if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
- return false;
- }
-
- var keysA = Object.keys(objA);
- var keysB = Object.keys(objB);
-
- if (keysA.length !== keysB.length) {
- return false;
- } // Test for A's keys different from B.
-
-
- for (var i = 0; i < keysA.length; i++) {
- var currentKey = keysA[i];
-
- if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) {
- return false;
- }
- }
-
- return true;
- }
-
- /**
- * Given any node return the first leaf node without children.
- *
- * @param {DOMElement|DOMTextNode} node
- * @return {DOMElement|DOMTextNode}
- */
-
- function getLeafNode(node) {
- while (node && node.firstChild) {
- node = node.firstChild;
- }
-
- return node;
- }
- /**
- * Get the next sibling within a container. This will walk up the
- * DOM if a node's siblings have been exhausted.
- *
- * @param {DOMElement|DOMTextNode} node
- * @return {?DOMElement|DOMTextNode}
- */
-
-
- function getSiblingNode(node) {
- while (node) {
- if (node.nextSibling) {
- return node.nextSibling;
- }
-
- node = node.parentNode;
- }
- }
- /**
- * Get object describing the nodes which contain characters at offset.
- *
- * @param {DOMElement|DOMTextNode} root
- * @param {number} offset
- * @return {?object}
- */
-
-
- function getNodeForCharacterOffset(root, offset) {
- var node = getLeafNode(root);
- var nodeStart = 0;
- var nodeEnd = 0;
-
- while (node) {
- if (node.nodeType === TEXT_NODE) {
- nodeEnd = nodeStart + node.textContent.length;
-
- if (nodeStart <= offset && nodeEnd >= offset) {
- return {
- node: node,
- offset: offset - nodeStart
- };
- }
-
- nodeStart = nodeEnd;
- }
-
- node = getLeafNode(getSiblingNode(node));
- }
- }
-
- /**
- * @param {DOMElement} outerNode
- * @return {?object}
- */
-
- function getOffsets(outerNode) {
- var ownerDocument = outerNode.ownerDocument;
- var win = ownerDocument && ownerDocument.defaultView || window;
- var selection = win.getSelection && win.getSelection();
-
- if (!selection || selection.rangeCount === 0) {
- return null;
- }
-
- var anchorNode = selection.anchorNode,
- anchorOffset = selection.anchorOffset,
- focusNode = selection.focusNode,
- focusOffset = selection.focusOffset; // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
- // up/down buttons on an <input type="number">. Anonymous divs do not seem to
- // expose properties, triggering a "Permission denied error" if any of its
- // properties are accessed. The only seemingly possible way to avoid erroring
- // is to access a property that typically works for non-anonymous divs and
- // catch any error that may otherwise arise. See
- // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
-
- try {
- /* eslint-disable no-unused-expressions */
- anchorNode.nodeType;
- focusNode.nodeType;
- /* eslint-enable no-unused-expressions */
- } catch (e) {
- return null;
- }
-
- return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
- }
- /**
- * Returns {start, end} where `start` is the character/codepoint index of
- * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
- * `end` is the index of (focusNode, focusOffset).
- *
- * Returns null if you pass in garbage input but we should probably just crash.
- *
- * Exported only for testing.
- */
-
- function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
- var length = 0;
- var start = -1;
- var end = -1;
- var indexWithinAnchor = 0;
- var indexWithinFocus = 0;
- var node = outerNode;
- var parentNode = null;
-
- outer: while (true) {
- var next = null;
-
- while (true) {
- if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
- start = length + anchorOffset;
- }
-
- if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
- end = length + focusOffset;
- }
-
- if (node.nodeType === TEXT_NODE) {
- length += node.nodeValue.length;
- }
-
- if ((next = node.firstChild) === null) {
- break;
- } // Moving from `node` to its first child `next`.
-
-
- parentNode = node;
- node = next;
- }
-
- while (true) {
- if (node === outerNode) {
- // If `outerNode` has children, this is always the second time visiting
- // it. If it has no children, this is still the first loop, and the only
- // valid selection is anchorNode and focusNode both equal to this node
- // and both offsets 0, in which case we will have handled above.
- break outer;
- }
-
- if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
- start = length;
- }
-
- if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
- end = length;
- }
-
- if ((next = node.nextSibling) !== null) {
- break;
- }
-
- node = parentNode;
- parentNode = node.parentNode;
- } // Moving from `node` to its next sibling `next`.
-
-
- node = next;
- }
-
- if (start === -1 || end === -1) {
- // This should never happen. (Would happen if the anchor/focus nodes aren't
- // actually inside the passed-in node.)
- return null;
- }
-
- return {
- start: start,
- end: end
- };
- }
- /**
- * In modern non-IE browsers, we can support both forward and backward
- * selections.
- *
- * Note: IE10+ supports the Selection object, but it does not support
- * the `extend` method, which means that even in modern IE, it's not possible
- * to programmatically create a backward selection. Thus, for all IE
- * versions, we use the old IE API to create our selections.
- *
- * @param {DOMElement|DOMTextNode} node
- * @param {object} offsets
- */
-
- function setOffsets(node, offsets) {
- var doc = node.ownerDocument || document;
- var win = doc && doc.defaultView || window; // Edge fails with "Object expected" in some scenarios.
- // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
- // fails when pasting 100+ items)
-
- if (!win.getSelection) {
- return;
- }
-
- var selection = win.getSelection();
- var length = node.textContent.length;
- var start = Math.min(offsets.start, length);
- var end = offsets.end === undefined ? start : Math.min(offsets.end, length); // IE 11 uses modern selection, but doesn't support the extend method.
- // Flip backward selections, so we can set with a single range.
-
- if (!selection.extend && start > end) {
- var temp = end;
- end = start;
- start = temp;
- }
-
- var startMarker = getNodeForCharacterOffset(node, start);
- var endMarker = getNodeForCharacterOffset(node, end);
-
- if (startMarker && endMarker) {
- if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
- return;
- }
-
- var range = doc.createRange();
- range.setStart(startMarker.node, startMarker.offset);
- selection.removeAllRanges();
-
- if (start > end) {
- selection.addRange(range);
- selection.extend(endMarker.node, endMarker.offset);
- } else {
- range.setEnd(endMarker.node, endMarker.offset);
- selection.addRange(range);
- }
- }
- }
-
- function isTextNode(node) {
- return node && node.nodeType === TEXT_NODE;
- }
-
- function containsNode(outerNode, innerNode) {
- if (!outerNode || !innerNode) {
- return false;
- } else if (outerNode === innerNode) {
- return true;
- } else if (isTextNode(outerNode)) {
- return false;
- } else if (isTextNode(innerNode)) {
- return containsNode(outerNode, innerNode.parentNode);
- } else if ('contains' in outerNode) {
- return outerNode.contains(innerNode);
- } else if (outerNode.compareDocumentPosition) {
- return !!(outerNode.compareDocumentPosition(innerNode) & 16);
- } else {
- return false;
- }
- }
-
- function isInDocument(node) {
- return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
- }
-
- function isSameOriginFrame(iframe) {
- try {
- // Accessing the contentDocument of a HTMLIframeElement can cause the browser
- // to throw, e.g. if it has a cross-origin src attribute.
- // Safari will show an error in the console when the access results in "Blocked a frame with origin". e.g:
- // iframe.contentDocument.defaultView;
- // A safety way is to access one of the cross origin properties: Window or Location
- // Which might result in "SecurityError" DOM Exception and it is compatible to Safari.
- // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl
- return typeof iframe.contentWindow.location.href === 'string';
- } catch (err) {
- return false;
- }
- }
-
- function getActiveElementDeep() {
- var win = window;
- var element = getActiveElement();
-
- while (element instanceof win.HTMLIFrameElement) {
- if (isSameOriginFrame(element)) {
- win = element.contentWindow;
- } else {
- return element;
- }
-
- element = getActiveElement(win.document);
- }
-
- return element;
- }
- /**
- * @ReactInputSelection: React input selection module. Based on Selection.js,
- * but modified to be suitable for react and has a couple of bug fixes (doesn't
- * assume buttons have range selections allowed).
- * Input selection module for React.
- */
-
- /**
- * @hasSelectionCapabilities: we get the element types that support selection
- * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
- * and `selectionEnd` rows.
- */
-
-
- function hasSelectionCapabilities(elem) {
- var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
- return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
- }
- function getSelectionInformation() {
- var focusedElem = getActiveElementDeep();
- return {
- focusedElem: focusedElem,
- selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(focusedElem) : null
- };
- }
- /**
- * @restoreSelection: If any selection information was potentially lost,
- * restore it. This is useful when performing operations that could remove dom
- * nodes and place them back in, resulting in focus being lost.
- */
-
- function restoreSelection(priorSelectionInformation) {
- var curFocusedElem = getActiveElementDeep();
- var priorFocusedElem = priorSelectionInformation.focusedElem;
- var priorSelectionRange = priorSelectionInformation.selectionRange;
-
- if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
- if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
- setSelection(priorFocusedElem, priorSelectionRange);
- } // Focusing a node can change the scroll position, which is undesirable
-
-
- var ancestors = [];
- var ancestor = priorFocusedElem;
-
- while (ancestor = ancestor.parentNode) {
- if (ancestor.nodeType === ELEMENT_NODE) {
- ancestors.push({
- element: ancestor,
- left: ancestor.scrollLeft,
- top: ancestor.scrollTop
- });
- }
- }
-
- if (typeof priorFocusedElem.focus === 'function') {
- priorFocusedElem.focus();
- }
-
- for (var i = 0; i < ancestors.length; i++) {
- var info = ancestors[i];
- info.element.scrollLeft = info.left;
- info.element.scrollTop = info.top;
- }
- }
- }
- /**
- * @getSelection: Gets the selection bounds of a focused textarea, input or
- * contentEditable node.
- * -@input: Look up selection bounds of this input
- * -@return {start: selectionStart, end: selectionEnd}
- */
-
- function getSelection(input) {
- var selection;
-
- if ('selectionStart' in input) {
- // Modern browser with input or textarea.
- selection = {
- start: input.selectionStart,
- end: input.selectionEnd
- };
- } else {
- // Content editable or old IE textarea.
- selection = getOffsets(input);
- }
-
- return selection || {
- start: 0,
- end: 0
- };
- }
- /**
- * @setSelection: Sets the selection bounds of a textarea or input and focuses
- * the input.
- * -@input Set selection bounds of this input or textarea
- * -@offsets Object of same form that is returned from get*
- */
-
- function setSelection(input, offsets) {
- var start = offsets.start;
- var end = offsets.end;
-
- if (end === undefined) {
- end = start;
- }
-
- if ('selectionStart' in input) {
- input.selectionStart = start;
- input.selectionEnd = Math.min(end, input.value.length);
- } else {
- setOffsets(input, offsets);
- }
- }
-
- var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;
-
- function registerEvents$3() {
- registerTwoPhaseEvent('onSelect', ['focusout', 'contextmenu', 'dragend', 'focusin', 'keydown', 'keyup', 'mousedown', 'mouseup', 'selectionchange']);
- }
-
- var activeElement$1 = null;
- var activeElementInst$1 = null;
- var lastSelection = null;
- var mouseDown = false;
- /**
- * Get an object which is a unique representation of the current selection.
- *
- * The return value will not be consistent across nodes or browsers, but
- * two identical selections on the same node will return identical objects.
- */
-
- function getSelection$1(node) {
- if ('selectionStart' in node && hasSelectionCapabilities(node)) {
- return {
- start: node.selectionStart,
- end: node.selectionEnd
- };
- } else {
- var win = node.ownerDocument && node.ownerDocument.defaultView || window;
- var selection = win.getSelection();
- return {
- anchorNode: selection.anchorNode,
- anchorOffset: selection.anchorOffset,
- focusNode: selection.focusNode,
- focusOffset: selection.focusOffset
- };
- }
- }
- /**
- * Get document associated with the event target.
- */
-
-
- function getEventTargetDocument(eventTarget) {
- return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
- }
- /**
- * Poll selection to see whether it's changed.
- *
- * @param {object} nativeEvent
- * @param {object} nativeEventTarget
- * @return {?SyntheticEvent}
- */
-
-
- function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) {
- // Ensure we have the right element, and that the user is not dragging a
- // selection (this matches native `select` event behavior). In HTML5, select
- // fires only on input and textarea thus if there's no focused element we
- // won't dispatch.
- var doc = getEventTargetDocument(nativeEventTarget);
-
- if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
- return;
- } // Only fire when selection has actually changed.
-
-
- var currentSelection = getSelection$1(activeElement$1);
-
- if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
- lastSelection = currentSelection;
- var listeners = accumulateTwoPhaseListeners(activeElementInst$1, 'onSelect');
-
- if (listeners.length > 0) {
- var event = new SyntheticEvent('onSelect', 'select', null, nativeEvent, nativeEventTarget);
- dispatchQueue.push({
- event: event,
- listeners: listeners
- });
- event.target = activeElement$1;
- }
- }
- }
- /**
- * This plugin creates an `onSelect` event that normalizes select events
- * across form elements.
- *
- * Supported elements are:
- * - input (see `isTextInputElement`)
- * - textarea
- * - contentEditable
- *
- * This differs from native browser implementations in the following ways:
- * - Fires on contentEditable fields as well as inputs.
- * - Fires for collapsed selection.
- * - Fires after user input.
- */
-
-
- function extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
- var targetNode = targetInst ? getNodeFromInstance(targetInst) : window;
-
- switch (domEventName) {
- // Track the input node that has focus.
- case 'focusin':
- if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
- activeElement$1 = targetNode;
- activeElementInst$1 = targetInst;
- lastSelection = null;
- }
-
- break;
-
- case 'focusout':
- activeElement$1 = null;
- activeElementInst$1 = null;
- lastSelection = null;
- break;
- // Don't fire the event while the user is dragging. This matches the
- // semantics of the native select event.
-
- case 'mousedown':
- mouseDown = true;
- break;
-
- case 'contextmenu':
- case 'mouseup':
- case 'dragend':
- mouseDown = false;
- constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
- break;
- // Chrome and IE fire non-standard event when selection is changed (and
- // sometimes when it hasn't). IE's event fires out of order with respect
- // to key and input events on deletion, so we discard it.
- //
- // Firefox doesn't support selectionchange, so check selection status
- // after each key entry. The selection changes after keydown and before
- // keyup, but we check on keydown as well in the case of holding down a
- // key, when multiple keydown events are fired but only one keyup is.
- // This is also our approach for IE handling, for the reason above.
-
- case 'selectionchange':
- if (skipSelectionChangeEvent) {
- break;
- }
-
- // falls through
-
- case 'keydown':
- case 'keyup':
- constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
- }
- }
-
- /**
- * Generate a mapping of standard vendor prefixes using the defined style property and event name.
- *
- * @param {string} styleProp
- * @param {string} eventName
- * @returns {object}
- */
-
- function makePrefixMap(styleProp, eventName) {
- var prefixes = {};
- prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
- prefixes['Webkit' + styleProp] = 'webkit' + eventName;
- prefixes['Moz' + styleProp] = 'moz' + eventName;
- return prefixes;
- }
- /**
- * A list of event names to a configurable list of vendor prefixes.
- */
-
-
- var vendorPrefixes = {
- animationend: makePrefixMap('Animation', 'AnimationEnd'),
- animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
- animationstart: makePrefixMap('Animation', 'AnimationStart'),
- transitionend: makePrefixMap('Transition', 'TransitionEnd')
- };
- /**
- * Event names that have already been detected and prefixed (if applicable).
- */
-
- var prefixedEventNames = {};
- /**
- * Element to check for prefixes on.
- */
-
- var style = {};
- /**
- * Bootstrap if a DOM exists.
- */
-
- if (canUseDOM) {
- style = document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x,
- // the un-prefixed "animation" and "transition" properties are defined on the
- // style object but the events that fire will still be prefixed, so we need
- // to check if the un-prefixed events are usable, and if not remove them from the map.
-
- if (!('AnimationEvent' in window)) {
- delete vendorPrefixes.animationend.animation;
- delete vendorPrefixes.animationiteration.animation;
- delete vendorPrefixes.animationstart.animation;
- } // Same as above
-
-
- if (!('TransitionEvent' in window)) {
- delete vendorPrefixes.transitionend.transition;
- }
- }
- /**
- * Attempts to determine the correct vendor prefixed event name.
- *
- * @param {string} eventName
- * @returns {string}
- */
-
-
- function getVendorPrefixedEventName(eventName) {
- if (prefixedEventNames[eventName]) {
- return prefixedEventNames[eventName];
- } else if (!vendorPrefixes[eventName]) {
- return eventName;
- }
-
- var prefixMap = vendorPrefixes[eventName];
-
- for (var styleProp in prefixMap) {
- if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
- return prefixedEventNames[eventName] = prefixMap[styleProp];
- }
- }
-
- return eventName;
- }
-
- var ANIMATION_END = getVendorPrefixedEventName('animationend');
- var ANIMATION_ITERATION = getVendorPrefixedEventName('animationiteration');
- var ANIMATION_START = getVendorPrefixedEventName('animationstart');
- var TRANSITION_END = getVendorPrefixedEventName('transitionend');
-
- var topLevelEventsToReactNames = new Map(); // NOTE: Capitalization is important in this list!
- //
- // E.g. it needs "pointerDown", not "pointerdown".
- // This is because we derive both React name ("onPointerDown")
- // and DOM name ("pointerdown") from the same list.
- //
- // Exceptions that don't match this convention are listed separately.
- //
- // prettier-ignore
-
- var simpleEventPluginEvents = ['abort', 'auxClick', 'cancel', 'canPlay', 'canPlayThrough', 'click', 'close', 'contextMenu', 'copy', 'cut', 'drag', 'dragEnd', 'dragEnter', 'dragExit', 'dragLeave', 'dragOver', 'dragStart', 'drop', 'durationChange', 'emptied', 'encrypted', 'ended', 'error', 'gotPointerCapture', 'input', 'invalid', 'keyDown', 'keyPress', 'keyUp', 'load', 'loadedData', 'loadedMetadata', 'loadStart', 'lostPointerCapture', 'mouseDown', 'mouseMove', 'mouseOut', 'mouseOver', 'mouseUp', 'paste', 'pause', 'play', 'playing', 'pointerCancel', 'pointerDown', 'pointerMove', 'pointerOut', 'pointerOver', 'pointerUp', 'progress', 'rateChange', 'reset', 'resize', 'seeked', 'seeking', 'stalled', 'submit', 'suspend', 'timeUpdate', 'touchCancel', 'touchEnd', 'touchStart', 'volumeChange', 'scroll', 'toggle', 'touchMove', 'waiting', 'wheel'];
-
- function registerSimpleEvent(domEventName, reactName) {
- topLevelEventsToReactNames.set(domEventName, reactName);
- registerTwoPhaseEvent(reactName, [domEventName]);
- }
-
- function registerSimpleEvents() {
- for (var i = 0; i < simpleEventPluginEvents.length; i++) {
- var eventName = simpleEventPluginEvents[i];
- var domEventName = eventName.toLowerCase();
- var capitalizedEvent = eventName[0].toUpperCase() + eventName.slice(1);
- registerSimpleEvent(domEventName, 'on' + capitalizedEvent);
- } // Special cases where event names don't match.
-
-
- registerSimpleEvent(ANIMATION_END, 'onAnimationEnd');
- registerSimpleEvent(ANIMATION_ITERATION, 'onAnimationIteration');
- registerSimpleEvent(ANIMATION_START, 'onAnimationStart');
- registerSimpleEvent('dblclick', 'onDoubleClick');
- registerSimpleEvent('focusin', 'onFocus');
- registerSimpleEvent('focusout', 'onBlur');
- registerSimpleEvent(TRANSITION_END, 'onTransitionEnd');
- }
-
- function extractEvents$4(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
- var reactName = topLevelEventsToReactNames.get(domEventName);
-
- if (reactName === undefined) {
- return;
- }
-
- var SyntheticEventCtor = SyntheticEvent;
- var reactEventType = domEventName;
-
- switch (domEventName) {
- case 'keypress':
- // Firefox creates a keypress event for function keys too. This removes
- // the unwanted keypress events. Enter is however both printable and
- // non-printable. One would expect Tab to be as well (but it isn't).
- if (getEventCharCode(nativeEvent) === 0) {
- return;
- }
-
- /* falls through */
-
- case 'keydown':
- case 'keyup':
- SyntheticEventCtor = SyntheticKeyboardEvent;
- break;
-
- case 'focusin':
- reactEventType = 'focus';
- SyntheticEventCtor = SyntheticFocusEvent;
- break;
-
- case 'focusout':
- reactEventType = 'blur';
- SyntheticEventCtor = SyntheticFocusEvent;
- break;
-
- case 'beforeblur':
- case 'afterblur':
- SyntheticEventCtor = SyntheticFocusEvent;
- break;
-
- case 'click':
- // Firefox creates a click event on right mouse clicks. This removes the
- // unwanted click events.
- if (nativeEvent.button === 2) {
- return;
- }
-
- /* falls through */
-
- case 'auxclick':
- case 'dblclick':
- case 'mousedown':
- case 'mousemove':
- case 'mouseup': // TODO: Disabled elements should not respond to mouse events
-
- /* falls through */
-
- case 'mouseout':
- case 'mouseover':
- case 'contextmenu':
- SyntheticEventCtor = SyntheticMouseEvent;
- break;
-
- case 'drag':
- case 'dragend':
- case 'dragenter':
- case 'dragexit':
- case 'dragleave':
- case 'dragover':
- case 'dragstart':
- case 'drop':
- SyntheticEventCtor = SyntheticDragEvent;
- break;
-
- case 'touchcancel':
- case 'touchend':
- case 'touchmove':
- case 'touchstart':
- SyntheticEventCtor = SyntheticTouchEvent;
- break;
-
- case ANIMATION_END:
- case ANIMATION_ITERATION:
- case ANIMATION_START:
- SyntheticEventCtor = SyntheticAnimationEvent;
- break;
-
- case TRANSITION_END:
- SyntheticEventCtor = SyntheticTransitionEvent;
- break;
-
- case 'scroll':
- SyntheticEventCtor = SyntheticUIEvent;
- break;
-
- case 'wheel':
- SyntheticEventCtor = SyntheticWheelEvent;
- break;
-
- case 'copy':
- case 'cut':
- case 'paste':
- SyntheticEventCtor = SyntheticClipboardEvent;
- break;
-
- case 'gotpointercapture':
- case 'lostpointercapture':
- case 'pointercancel':
- case 'pointerdown':
- case 'pointermove':
- case 'pointerout':
- case 'pointerover':
- case 'pointerup':
- SyntheticEventCtor = SyntheticPointerEvent;
- break;
- }
-
- var inCapturePhase = (eventSystemFlags & IS_CAPTURE_PHASE) !== 0;
-
- {
- // Some events don't bubble in the browser.
- // In the past, React has always bubbled them, but this can be surprising.
- // We're going to try aligning closer to the browser behavior by not bubbling
- // them in React either. We'll start by not bubbling onScroll, and then expand.
- var accumulateTargetOnly = !inCapturePhase && // TODO: ideally, we'd eventually add all events from
- // nonDelegatedEvents list in DOMPluginEventSystem.
- // Then we can remove this special list.
- // This is a breaking change that can wait until React 18.
- domEventName === 'scroll';
-
- var _listeners = accumulateSinglePhaseListeners(targetInst, reactName, nativeEvent.type, inCapturePhase, accumulateTargetOnly);
-
- if (_listeners.length > 0) {
- // Intentionally create event lazily.
- var _event = new SyntheticEventCtor(reactName, reactEventType, null, nativeEvent, nativeEventTarget);
-
- dispatchQueue.push({
- event: _event,
- listeners: _listeners
- });
- }
- }
- }
-
- // TODO: remove top-level side effect.
- registerSimpleEvents();
- registerEvents$2();
- registerEvents$1();
- registerEvents$3();
- registerEvents();
-
- function extractEvents$5(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
- // TODO: we should remove the concept of a "SimpleEventPlugin".
- // This is the basic functionality of the event system. All
- // the other plugins are essentially polyfills. So the plugin
- // should probably be inlined somewhere and have its logic
- // be core the to event system. This would potentially allow
- // us to ship builds of React without the polyfilled plugins below.
- extractEvents$4(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
- var shouldProcessPolyfillPlugins = (eventSystemFlags & SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS) === 0; // We don't process these events unless we are in the
- // event's native "bubble" phase, which means that we're
- // not in the capture phase. That's because we emulate
- // the capture phase here still. This is a trade-off,
- // because in an ideal world we would not emulate and use
- // the phases properly, like we do with the SimpleEvent
- // plugin. However, the plugins below either expect
- // emulation (EnterLeave) or use state localized to that
- // plugin (BeforeInput, Change, Select). The state in
- // these modules complicates things, as you'll essentially
- // get the case where the capture phase event might change
- // state, only for the following bubble event to come in
- // later and not trigger anything as the state now
- // invalidates the heuristics of the event plugin. We
- // could alter all these plugins to work in such ways, but
- // that might cause other unknown side-effects that we
- // can't foresee right now.
-
- if (shouldProcessPolyfillPlugins) {
- extractEvents$2(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
- extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
- extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
- extractEvents(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
- }
- } // List of events that need to be individually attached to media elements.
-
-
- var mediaEventTypes = ['abort', 'canplay', 'canplaythrough', 'durationchange', 'emptied', 'encrypted', 'ended', 'error', 'loadeddata', 'loadedmetadata', 'loadstart', 'pause', 'play', 'playing', 'progress', 'ratechange', 'resize', 'seeked', 'seeking', 'stalled', 'suspend', 'timeupdate', 'volumechange', 'waiting']; // We should not delegate these events to the container, but rather
- // set them on the actual target element itself. This is primarily
- // because these events do not consistently bubble in the DOM.
-
- var nonDelegatedEvents = new Set(['cancel', 'close', 'invalid', 'load', 'scroll', 'toggle'].concat(mediaEventTypes));
-
- function executeDispatch(event, listener, currentTarget) {
- var type = event.type || 'unknown-event';
- event.currentTarget = currentTarget;
- invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
- event.currentTarget = null;
- }
-
- function processDispatchQueueItemsInOrder(event, dispatchListeners, inCapturePhase) {
- var previousInstance;
-
- if (inCapturePhase) {
- for (var i = dispatchListeners.length - 1; i >= 0; i--) {
- var _dispatchListeners$i = dispatchListeners[i],
- instance = _dispatchListeners$i.instance,
- currentTarget = _dispatchListeners$i.currentTarget,
- listener = _dispatchListeners$i.listener;
-
- if (instance !== previousInstance && event.isPropagationStopped()) {
- return;
- }
-
- executeDispatch(event, listener, currentTarget);
- previousInstance = instance;
- }
- } else {
- for (var _i = 0; _i < dispatchListeners.length; _i++) {
- var _dispatchListeners$_i = dispatchListeners[_i],
- _instance = _dispatchListeners$_i.instance,
- _currentTarget = _dispatchListeners$_i.currentTarget,
- _listener = _dispatchListeners$_i.listener;
-
- if (_instance !== previousInstance && event.isPropagationStopped()) {
- return;
- }
-
- executeDispatch(event, _listener, _currentTarget);
- previousInstance = _instance;
- }
- }
- }
-
- function processDispatchQueue(dispatchQueue, eventSystemFlags) {
- var inCapturePhase = (eventSystemFlags & IS_CAPTURE_PHASE) !== 0;
-
- for (var i = 0; i < dispatchQueue.length; i++) {
- var _dispatchQueue$i = dispatchQueue[i],
- event = _dispatchQueue$i.event,
- listeners = _dispatchQueue$i.listeners;
- processDispatchQueueItemsInOrder(event, listeners, inCapturePhase); // event system doesn't use pooling.
- } // This would be a good time to rethrow if any of the event handlers threw.
-
-
- rethrowCaughtError();
- }
-
- function dispatchEventsForPlugins(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer) {
- var nativeEventTarget = getEventTarget(nativeEvent);
- var dispatchQueue = [];
- extractEvents$5(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
- processDispatchQueue(dispatchQueue, eventSystemFlags);
- }
-
- function listenToNonDelegatedEvent(domEventName, targetElement) {
- {
- if (!nonDelegatedEvents.has(domEventName)) {
- error('Did not expect a listenToNonDelegatedEvent() call for "%s". ' + 'This is a bug in React. Please file an issue.', domEventName);
- }
- }
-
- var isCapturePhaseListener = false;
- var listenerSet = getEventListenerSet(targetElement);
- var listenerSetKey = getListenerSetKey(domEventName, isCapturePhaseListener);
-
- if (!listenerSet.has(listenerSetKey)) {
- addTrappedEventListener(targetElement, domEventName, IS_NON_DELEGATED, isCapturePhaseListener);
- listenerSet.add(listenerSetKey);
- }
- }
- function listenToNativeEvent(domEventName, isCapturePhaseListener, target) {
- {
- if (nonDelegatedEvents.has(domEventName) && !isCapturePhaseListener) {
- error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. ' + 'This is a bug in React. Please file an issue.', domEventName);
- }
- }
-
- var eventSystemFlags = 0;
-
- if (isCapturePhaseListener) {
- eventSystemFlags |= IS_CAPTURE_PHASE;
- }
-
- addTrappedEventListener(target, domEventName, eventSystemFlags, isCapturePhaseListener);
- } // This is only used by createEventHandle when the
- var listeningMarker = '_reactListening' + Math.random().toString(36).slice(2);
- function listenToAllSupportedEvents(rootContainerElement) {
- if (!rootContainerElement[listeningMarker]) {
- rootContainerElement[listeningMarker] = true;
- allNativeEvents.forEach(function (domEventName) {
- // We handle selectionchange separately because it
- // doesn't bubble and needs to be on the document.
- if (domEventName !== 'selectionchange') {
- if (!nonDelegatedEvents.has(domEventName)) {
- listenToNativeEvent(domEventName, false, rootContainerElement);
- }
-
- listenToNativeEvent(domEventName, true, rootContainerElement);
- }
- });
- var ownerDocument = rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
-
- if (ownerDocument !== null) {
- // The selectionchange event also needs deduplication
- // but it is attached to the document.
- if (!ownerDocument[listeningMarker]) {
- ownerDocument[listeningMarker] = true;
- listenToNativeEvent('selectionchange', false, ownerDocument);
- }
- }
- }
- }
-
- function addTrappedEventListener(targetContainer, domEventName, eventSystemFlags, isCapturePhaseListener, isDeferredListenerForLegacyFBSupport) {
- var listener = createEventListenerWrapperWithPriority(targetContainer, domEventName, eventSystemFlags); // If passive option is not supported, then the event will be
- // active and not passive.
-
- var isPassiveListener = undefined;
-
- if (passiveBrowserEventsSupported) {
- // Browsers introduced an intervention, making these events
- // passive by default on document. React doesn't bind them
- // to document anymore, but changing this now would undo
- // the performance wins from the change. So we emulate
- // the existing behavior manually on the roots now.
- // https://github.com/facebook/react/issues/19651
- if (domEventName === 'touchstart' || domEventName === 'touchmove' || domEventName === 'wheel') {
- isPassiveListener = true;
- }
- }
-
- targetContainer = targetContainer;
- var unsubscribeListener; // When legacyFBSupport is enabled, it's for when we
-
-
- if (isCapturePhaseListener) {
- if (isPassiveListener !== undefined) {
- unsubscribeListener = addEventCaptureListenerWithPassiveFlag(targetContainer, domEventName, listener, isPassiveListener);
- } else {
- unsubscribeListener = addEventCaptureListener(targetContainer, domEventName, listener);
- }
- } else {
- if (isPassiveListener !== undefined) {
- unsubscribeListener = addEventBubbleListenerWithPassiveFlag(targetContainer, domEventName, listener, isPassiveListener);
- } else {
- unsubscribeListener = addEventBubbleListener(targetContainer, domEventName, listener);
- }
- }
- }
-
- function isMatchingRootContainer(grandContainer, targetContainer) {
- return grandContainer === targetContainer || grandContainer.nodeType === COMMENT_NODE && grandContainer.parentNode === targetContainer;
- }
-
- function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer) {
- var ancestorInst = targetInst;
-
- if ((eventSystemFlags & IS_EVENT_HANDLE_NON_MANAGED_NODE) === 0 && (eventSystemFlags & IS_NON_DELEGATED) === 0) {
- var targetContainerNode = targetContainer; // If we are using the legacy FB support flag, we
-
- if (targetInst !== null) {
- // The below logic attempts to work out if we need to change
- // the target fiber to a different ancestor. We had similar logic
- // in the legacy event system, except the big difference between
- // systems is that the modern event system now has an event listener
- // attached to each React Root and React Portal Root. Together,
- // the DOM nodes representing these roots are the "rootContainer".
- // To figure out which ancestor instance we should use, we traverse
- // up the fiber tree from the target instance and attempt to find
- // root boundaries that match that of our current "rootContainer".
- // If we find that "rootContainer", we find the parent fiber
- // sub-tree for that root and make that our ancestor instance.
- var node = targetInst;
-
- mainLoop: while (true) {
- if (node === null) {
- return;
- }
-
- var nodeTag = node.tag;
-
- if (nodeTag === HostRoot || nodeTag === HostPortal) {
- var container = node.stateNode.containerInfo;
-
- if (isMatchingRootContainer(container, targetContainerNode)) {
- break;
- }
-
- if (nodeTag === HostPortal) {
- // The target is a portal, but it's not the rootContainer we're looking for.
- // Normally portals handle their own events all the way down to the root.
- // So we should be able to stop now. However, we don't know if this portal
- // was part of *our* root.
- var grandNode = node.return;
-
- while (grandNode !== null) {
- var grandTag = grandNode.tag;
-
- if (grandTag === HostRoot || grandTag === HostPortal) {
- var grandContainer = grandNode.stateNode.containerInfo;
-
- if (isMatchingRootContainer(grandContainer, targetContainerNode)) {
- // This is the rootContainer we're looking for and we found it as
- // a parent of the Portal. That means we can ignore it because the
- // Portal will bubble through to us.
- return;
- }
- }
-
- grandNode = grandNode.return;
- }
- } // Now we need to find it's corresponding host fiber in the other
- // tree. To do this we can use getClosestInstanceFromNode, but we
- // need to validate that the fiber is a host instance, otherwise
- // we need to traverse up through the DOM till we find the correct
- // node that is from the other tree.
-
-
- while (container !== null) {
- var parentNode = getClosestInstanceFromNode(container);
-
- if (parentNode === null) {
- return;
- }
-
- var parentTag = parentNode.tag;
-
- if (parentTag === HostComponent || parentTag === HostText) {
- node = ancestorInst = parentNode;
- continue mainLoop;
- }
-
- container = container.parentNode;
- }
- }
-
- node = node.return;
- }
- }
- }
-
- batchedUpdates(function () {
- return dispatchEventsForPlugins(domEventName, eventSystemFlags, nativeEvent, ancestorInst);
- });
- }
-
- function createDispatchListener(instance, listener, currentTarget) {
- return {
- instance: instance,
- listener: listener,
- currentTarget: currentTarget
- };
- }
-
- function accumulateSinglePhaseListeners(targetFiber, reactName, nativeEventType, inCapturePhase, accumulateTargetOnly, nativeEvent) {
- var captureName = reactName !== null ? reactName + 'Capture' : null;
- var reactEventName = inCapturePhase ? captureName : reactName;
- var listeners = [];
- var instance = targetFiber;
- var lastHostComponent = null; // Accumulate all instances and listeners via the target -> root path.
-
- while (instance !== null) {
- var _instance2 = instance,
- stateNode = _instance2.stateNode,
- tag = _instance2.tag; // Handle listeners that are on HostComponents (i.e. <div>)
-
- if (tag === HostComponent && stateNode !== null) {
- lastHostComponent = stateNode; // createEventHandle listeners
-
-
- if (reactEventName !== null) {
- var listener = getListener(instance, reactEventName);
-
- if (listener != null) {
- listeners.push(createDispatchListener(instance, listener, lastHostComponent));
- }
- }
- } // If we are only accumulating events for the target, then we don't
- // continue to propagate through the React fiber tree to find other
- // listeners.
-
-
- if (accumulateTargetOnly) {
- break;
- } // If we are processing the onBeforeBlur event, then we need to take
-
- instance = instance.return;
- }
-
- return listeners;
- } // We should only use this function for:
- // - BeforeInputEventPlugin
- // - ChangeEventPlugin
- // - SelectEventPlugin
- // This is because we only process these plugins
- // in the bubble phase, so we need to accumulate two
- // phase event listeners (via emulation).
-
- function accumulateTwoPhaseListeners(targetFiber, reactName) {
- var captureName = reactName + 'Capture';
- var listeners = [];
- var instance = targetFiber; // Accumulate all instances and listeners via the target -> root path.
-
- while (instance !== null) {
- var _instance3 = instance,
- stateNode = _instance3.stateNode,
- tag = _instance3.tag; // Handle listeners that are on HostComponents (i.e. <div>)
-
- if (tag === HostComponent && stateNode !== null) {
- var currentTarget = stateNode;
- var captureListener = getListener(instance, captureName);
-
- if (captureListener != null) {
- listeners.unshift(createDispatchListener(instance, captureListener, currentTarget));
- }
-
- var bubbleListener = getListener(instance, reactName);
-
- if (bubbleListener != null) {
- listeners.push(createDispatchListener(instance, bubbleListener, currentTarget));
- }
- }
-
- instance = instance.return;
- }
-
- return listeners;
- }
-
- function getParent(inst) {
- if (inst === null) {
- return null;
- }
-
- do {
- inst = inst.return; // TODO: If this is a HostRoot we might want to bail out.
- // That is depending on if we want nested subtrees (layers) to bubble
- // events to their parent. We could also go through parentNode on the
- // host node but that wouldn't work for React Native and doesn't let us
- // do the portal feature.
- } while (inst && inst.tag !== HostComponent);
-
- if (inst) {
- return inst;
- }
-
- return null;
- }
- /**
- * Return the lowest common ancestor of A and B, or null if they are in
- * different trees.
- */
-
-
- function getLowestCommonAncestor(instA, instB) {
- var nodeA = instA;
- var nodeB = instB;
- var depthA = 0;
-
- for (var tempA = nodeA; tempA; tempA = getParent(tempA)) {
- depthA++;
- }
-
- var depthB = 0;
-
- for (var tempB = nodeB; tempB; tempB = getParent(tempB)) {
- depthB++;
- } // If A is deeper, crawl up.
-
-
- while (depthA - depthB > 0) {
- nodeA = getParent(nodeA);
- depthA--;
- } // If B is deeper, crawl up.
-
-
- while (depthB - depthA > 0) {
- nodeB = getParent(nodeB);
- depthB--;
- } // Walk in lockstep until we find a match.
-
-
- var depth = depthA;
-
- while (depth--) {
- if (nodeA === nodeB || nodeB !== null && nodeA === nodeB.alternate) {
- return nodeA;
- }
-
- nodeA = getParent(nodeA);
- nodeB = getParent(nodeB);
- }
-
- return null;
- }
-
- function accumulateEnterLeaveListenersForEvent(dispatchQueue, event, target, common, inCapturePhase) {
- var registrationName = event._reactName;
- var listeners = [];
- var instance = target;
-
- while (instance !== null) {
- if (instance === common) {
- break;
- }
-
- var _instance4 = instance,
- alternate = _instance4.alternate,
- stateNode = _instance4.stateNode,
- tag = _instance4.tag;
-
- if (alternate !== null && alternate === common) {
- break;
- }
-
- if (tag === HostComponent && stateNode !== null) {
- var currentTarget = stateNode;
-
- if (inCapturePhase) {
- var captureListener = getListener(instance, registrationName);
-
- if (captureListener != null) {
- listeners.unshift(createDispatchListener(instance, captureListener, currentTarget));
- }
- } else if (!inCapturePhase) {
- var bubbleListener = getListener(instance, registrationName);
-
- if (bubbleListener != null) {
- listeners.push(createDispatchListener(instance, bubbleListener, currentTarget));
- }
- }
- }
-
- instance = instance.return;
- }
-
- if (listeners.length !== 0) {
- dispatchQueue.push({
- event: event,
- listeners: listeners
- });
- }
- } // We should only use this function for:
- // - EnterLeaveEventPlugin
- // This is because we only process this plugin
- // in the bubble phase, so we need to accumulate two
- // phase event listeners.
-
-
- function accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leaveEvent, enterEvent, from, to) {
- var common = from && to ? getLowestCommonAncestor(from, to) : null;
-
- if (from !== null) {
- accumulateEnterLeaveListenersForEvent(dispatchQueue, leaveEvent, from, common, false);
- }
-
- if (to !== null && enterEvent !== null) {
- accumulateEnterLeaveListenersForEvent(dispatchQueue, enterEvent, to, common, true);
- }
- }
- function getListenerSetKey(domEventName, capture) {
- return domEventName + "__" + (capture ? 'capture' : 'bubble');
- }
-
- var didWarnInvalidHydration = false;
- var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
- var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
- var SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
- var AUTOFOCUS = 'autoFocus';
- var CHILDREN = 'children';
- var STYLE = 'style';
- var HTML$1 = '__html';
- var warnedUnknownTags;
- var validatePropertiesInDevelopment;
- var warnForPropDifference;
- var warnForExtraAttributes;
- var warnForInvalidEventListener;
- var canDiffStyleForHydrationWarning;
- var normalizeHTML;
-
- {
- warnedUnknownTags = {
- // There are working polyfills for <dialog>. Let people use it.
- dialog: true,
- // Electron ships a custom <webview> tag to display external web content in
- // an isolated frame and process.
- // This tag is not present in non Electron environments such as JSDom which
- // is often used for testing purposes.
- // @see https://electronjs.org/docs/api/webview-tag
- webview: true
- };
-
- validatePropertiesInDevelopment = function (type, props) {
- validateProperties(type, props);
- validateProperties$1(type, props);
- validateProperties$2(type, props, {
- registrationNameDependencies: registrationNameDependencies,
- possibleRegistrationNames: possibleRegistrationNames
- });
- }; // IE 11 parses & normalizes the style attribute as opposed to other
- // browsers. It adds spaces and sorts the properties in some
- // non-alphabetical order. Handling that would require sorting CSS
- // properties in the client & server versions or applying
- // `expectedStyle` to a temporary DOM node to read its `style` attribute
- // normalized. Since it only affects IE, we're skipping style warnings
- // in that browser completely in favor of doing all that work.
- // See https://github.com/facebook/react/issues/11807
-
-
- canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode;
-
- warnForPropDifference = function (propName, serverValue, clientValue) {
- if (didWarnInvalidHydration) {
- return;
- }
-
- var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
- var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);
-
- if (normalizedServerValue === normalizedClientValue) {
- return;
- }
-
- didWarnInvalidHydration = true;
-
- error('Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
- };
-
- warnForExtraAttributes = function (attributeNames) {
- if (didWarnInvalidHydration) {
- return;
- }
-
- didWarnInvalidHydration = true;
- var names = [];
- attributeNames.forEach(function (name) {
- names.push(name);
- });
-
- error('Extra attributes from the server: %s', names);
- };
-
- warnForInvalidEventListener = function (registrationName, listener) {
- if (listener === false) {
- error('Expected `%s` listener to be a function, instead got `false`.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName);
- } else {
- error('Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
- }
- }; // Parse the HTML and read it back to normalize the HTML string so that it
- // can be used for comparison.
-
-
- normalizeHTML = function (parent, html) {
- // We could have created a separate document here to avoid
- // re-initializing custom elements if they exist. But this breaks
- // how <noscript> is being handled. So we use the same document.
- // See the discussion in https://github.com/facebook/react/pull/11157.
- var testElement = parent.namespaceURI === HTML_NAMESPACE ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
- testElement.innerHTML = html;
- return testElement.innerHTML;
- };
- } // HTML parsing normalizes CR and CRLF to LF.
- // It also can turn \u0000 into \uFFFD inside attributes.
- // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
- // If we have a mismatch, it might be caused by that.
- // We will still patch up in this case but not fire the warning.
-
-
- var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
- var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
-
- function normalizeMarkupForTextOrAttribute(markup) {
- {
- checkHtmlStringCoercion(markup);
- }
-
- var markupString = typeof markup === 'string' ? markup : '' + markup;
- return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
- }
-
- function checkForUnmatchedText(serverText, clientText, isConcurrentMode, shouldWarnDev) {
- var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
- var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);
-
- if (normalizedServerText === normalizedClientText) {
- return;
- }
-
- if (shouldWarnDev) {
- {
- if (!didWarnInvalidHydration) {
- didWarnInvalidHydration = true;
-
- error('Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
- }
- }
- }
-
- if (isConcurrentMode && enableClientRenderFallbackOnTextMismatch) {
- // In concurrent roots, we throw when there's a text mismatch and revert to
- // client rendering, up to the nearest Suspense boundary.
- throw new Error('Text content does not match server-rendered HTML.');
- }
- }
-
- function getOwnerDocumentFromRootContainer(rootContainerElement) {
- return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
- }
-
- function noop() {}
-
- function trapClickOnNonInteractiveElement(node) {
- // Mobile Safari does not fire properly bubble click events on
- // non-interactive elements, which means delegated click listeners do not
- // fire. The workaround for this bug involves attaching an empty click
- // listener on the target node.
- // https://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
- // Just set it using the onclick property so that we don't have to manage any
- // bookkeeping for it. Not sure if we need to clear it when the listener is
- // removed.
- // TODO: Only do this for the relevant Safaris maybe?
- node.onclick = noop;
- }
-
- function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
- for (var propKey in nextProps) {
- if (!nextProps.hasOwnProperty(propKey)) {
- continue;
- }
-
- var nextProp = nextProps[propKey];
-
- if (propKey === STYLE) {
- {
- if (nextProp) {
- // Freeze the next style object so that we can assume it won't be
- // mutated. We have already warned for this in the past.
- Object.freeze(nextProp);
- }
- } // Relies on `updateStylesByID` not mutating `styleUpdates`.
-
-
- setValueForStyles(domElement, nextProp);
- } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
- var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
-
- if (nextHtml != null) {
- setInnerHTML(domElement, nextHtml);
- }
- } else if (propKey === CHILDREN) {
- if (typeof nextProp === 'string') {
- // Avoid setting initial textContent when the text is empty. In IE11 setting
- // textContent on a <textarea> will cause the placeholder to not
- // show within the <textarea> until it has been focused and blurred again.
- // https://github.com/facebook/react/issues/6731#issuecomment-254874553
- var canSetTextContent = tag !== 'textarea' || nextProp !== '';
-
- if (canSetTextContent) {
- setTextContent(domElement, nextProp);
- }
- } else if (typeof nextProp === 'number') {
- setTextContent(domElement, '' + nextProp);
- }
- } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {
- if (nextProp != null) {
- if ( typeof nextProp !== 'function') {
- warnForInvalidEventListener(propKey, nextProp);
- }
-
- if (propKey === 'onScroll') {
- listenToNonDelegatedEvent('scroll', domElement);
- }
- }
- } else if (nextProp != null) {
- setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
- }
- }
- }
-
- function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
- // TODO: Handle wasCustomComponentTag
- for (var i = 0; i < updatePayload.length; i += 2) {
- var propKey = updatePayload[i];
- var propValue = updatePayload[i + 1];
-
- if (propKey === STYLE) {
- setValueForStyles(domElement, propValue);
- } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
- setInnerHTML(domElement, propValue);
- } else if (propKey === CHILDREN) {
- setTextContent(domElement, propValue);
- } else {
- setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
- }
- }
- }
-
- function createElement(type, props, rootContainerElement, parentNamespace) {
- var isCustomComponentTag; // We create tags in the namespace of their parent container, except HTML
- // tags get no namespace.
-
- var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
- var domElement;
- var namespaceURI = parentNamespace;
-
- if (namespaceURI === HTML_NAMESPACE) {
- namespaceURI = getIntrinsicNamespace(type);
- }
-
- if (namespaceURI === HTML_NAMESPACE) {
- {
- isCustomComponentTag = isCustomComponent(type, props); // Should this check be gated by parent namespace? Not sure we want to
- // allow <SVG> or <mATH>.
-
- if (!isCustomComponentTag && type !== type.toLowerCase()) {
- error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type);
- }
- }
-
- if (type === 'script') {
- // Create the script via .innerHTML so its "parser-inserted" flag is
- // set to true and it does not execute
- var div = ownerDocument.createElement('div');
-
- div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
- // This is guaranteed to yield a script element.
-
- var firstChild = div.firstChild;
- domElement = div.removeChild(firstChild);
- } else if (typeof props.is === 'string') {
- // $FlowIssue `createElement` should be updated for Web Components
- domElement = ownerDocument.createElement(type, {
- is: props.is
- });
- } else {
- // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
- // See discussion in https://github.com/facebook/react/pull/6896
- // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
- domElement = ownerDocument.createElement(type); // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple` and `size`
- // attributes on `select`s needs to be added before `option`s are inserted.
- // This prevents:
- // - a bug where the `select` does not scroll to the correct option because singular
- // `select` elements automatically pick the first item #13222
- // - a bug where the `select` set the first item as selected despite the `size` attribute #14239
- // See https://github.com/facebook/react/issues/13222
- // and https://github.com/facebook/react/issues/14239
-
- if (type === 'select') {
- var node = domElement;
-
- if (props.multiple) {
- node.multiple = true;
- } else if (props.size) {
- // Setting a size greater than 1 causes a select to behave like `multiple=true`, where
- // it is possible that no option is selected.
- //
- // This is only necessary when a select in "single selection mode".
- node.size = props.size;
- }
- }
- }
- } else {
- domElement = ownerDocument.createElementNS(namespaceURI, type);
- }
-
- {
- if (namespaceURI === HTML_NAMESPACE) {
- if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !hasOwnProperty.call(warnedUnknownTags, type)) {
- warnedUnknownTags[type] = true;
-
- error('The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);
- }
- }
- }
-
- return domElement;
- }
- function createTextNode(text, rootContainerElement) {
- return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
- }
- function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
- var isCustomComponentTag = isCustomComponent(tag, rawProps);
-
- {
- validatePropertiesInDevelopment(tag, rawProps);
- } // TODO: Make sure that we check isMounted before firing any of these events.
-
-
- var props;
-
- switch (tag) {
- case 'dialog':
- listenToNonDelegatedEvent('cancel', domElement);
- listenToNonDelegatedEvent('close', domElement);
- props = rawProps;
- break;
-
- case 'iframe':
- case 'object':
- case 'embed':
- // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the load event.
- listenToNonDelegatedEvent('load', domElement);
- props = rawProps;
- break;
-
- case 'video':
- case 'audio':
- // We listen to these events in case to ensure emulated bubble
- // listeners still fire for all the media events.
- for (var i = 0; i < mediaEventTypes.length; i++) {
- listenToNonDelegatedEvent(mediaEventTypes[i], domElement);
- }
-
- props = rawProps;
- break;
-
- case 'source':
- // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the error event.
- listenToNonDelegatedEvent('error', domElement);
- props = rawProps;
- break;
-
- case 'img':
- case 'image':
- case 'link':
- // We listen to these events in case to ensure emulated bubble
- // listeners still fire for error and load events.
- listenToNonDelegatedEvent('error', domElement);
- listenToNonDelegatedEvent('load', domElement);
- props = rawProps;
- break;
-
- case 'details':
- // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the toggle event.
- listenToNonDelegatedEvent('toggle', domElement);
- props = rawProps;
- break;
-
- case 'input':
- initWrapperState(domElement, rawProps);
- props = getHostProps(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the invalid event.
-
- listenToNonDelegatedEvent('invalid', domElement);
- break;
-
- case 'option':
- validateProps(domElement, rawProps);
- props = rawProps;
- break;
-
- case 'select':
- initWrapperState$1(domElement, rawProps);
- props = getHostProps$1(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the invalid event.
-
- listenToNonDelegatedEvent('invalid', domElement);
- break;
-
- case 'textarea':
- initWrapperState$2(domElement, rawProps);
- props = getHostProps$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the invalid event.
-
- listenToNonDelegatedEvent('invalid', domElement);
- break;
-
- default:
- props = rawProps;
- }
-
- assertValidProps(tag, props);
- setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);
-
- switch (tag) {
- case 'input':
- // TODO: Make sure we check if this is still unmounted or do any clean
- // up necessary since we never stop tracking anymore.
- track(domElement);
- postMountWrapper(domElement, rawProps, false);
- break;
-
- case 'textarea':
- // TODO: Make sure we check if this is still unmounted or do any clean
- // up necessary since we never stop tracking anymore.
- track(domElement);
- postMountWrapper$3(domElement);
- break;
-
- case 'option':
- postMountWrapper$1(domElement, rawProps);
- break;
-
- case 'select':
- postMountWrapper$2(domElement, rawProps);
- break;
-
- default:
- if (typeof props.onClick === 'function') {
- // TODO: This cast may not be sound for SVG, MathML or custom elements.
- trapClickOnNonInteractiveElement(domElement);
- }
-
- break;
- }
- } // Calculate the diff between the two objects.
-
- function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
- {
- validatePropertiesInDevelopment(tag, nextRawProps);
- }
-
- var updatePayload = null;
- var lastProps;
- var nextProps;
-
- switch (tag) {
- case 'input':
- lastProps = getHostProps(domElement, lastRawProps);
- nextProps = getHostProps(domElement, nextRawProps);
- updatePayload = [];
- break;
-
- case 'select':
- lastProps = getHostProps$1(domElement, lastRawProps);
- nextProps = getHostProps$1(domElement, nextRawProps);
- updatePayload = [];
- break;
-
- case 'textarea':
- lastProps = getHostProps$2(domElement, lastRawProps);
- nextProps = getHostProps$2(domElement, nextRawProps);
- updatePayload = [];
- break;
-
- default:
- lastProps = lastRawProps;
- nextProps = nextRawProps;
-
- if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
- // TODO: This cast may not be sound for SVG, MathML or custom elements.
- trapClickOnNonInteractiveElement(domElement);
- }
-
- break;
- }
-
- assertValidProps(tag, nextProps);
- var propKey;
- var styleName;
- var styleUpdates = null;
-
- for (propKey in lastProps) {
- if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
- continue;
- }
-
- if (propKey === STYLE) {
- var lastStyle = lastProps[propKey];
-
- for (styleName in lastStyle) {
- if (lastStyle.hasOwnProperty(styleName)) {
- if (!styleUpdates) {
- styleUpdates = {};
- }
-
- styleUpdates[styleName] = '';
- }
- }
- } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) ; else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {
- // This is a special case. If any listener updates we need to ensure
- // that the "current" fiber pointer gets updated so we need a commit
- // to update this element.
- if (!updatePayload) {
- updatePayload = [];
- }
- } else {
- // For all other deleted properties we add it to the queue. We use
- // the allowed property list in the commit phase instead.
- (updatePayload = updatePayload || []).push(propKey, null);
- }
- }
-
- for (propKey in nextProps) {
- var nextProp = nextProps[propKey];
- var lastProp = lastProps != null ? lastProps[propKey] : undefined;
-
- if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
- continue;
- }
-
- if (propKey === STYLE) {
- {
- if (nextProp) {
- // Freeze the next style object so that we can assume it won't be
- // mutated. We have already warned for this in the past.
- Object.freeze(nextProp);
- }
- }
-
- if (lastProp) {
- // Unset styles on `lastProp` but not on `nextProp`.
- for (styleName in lastProp) {
- if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
- if (!styleUpdates) {
- styleUpdates = {};
- }
-
- styleUpdates[styleName] = '';
- }
- } // Update styles that changed since `lastProp`.
-
-
- for (styleName in nextProp) {
- if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
- if (!styleUpdates) {
- styleUpdates = {};
- }
-
- styleUpdates[styleName] = nextProp[styleName];
- }
- }
- } else {
- // Relies on `updateStylesByID` not mutating `styleUpdates`.
- if (!styleUpdates) {
- if (!updatePayload) {
- updatePayload = [];
- }
-
- updatePayload.push(propKey, styleUpdates);
- }
-
- styleUpdates = nextProp;
- }
- } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
- var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
- var lastHtml = lastProp ? lastProp[HTML$1] : undefined;
-
- if (nextHtml != null) {
- if (lastHtml !== nextHtml) {
- (updatePayload = updatePayload || []).push(propKey, nextHtml);
- }
- }
- } else if (propKey === CHILDREN) {
- if (typeof nextProp === 'string' || typeof nextProp === 'number') {
- (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
- }
- } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {
- if (nextProp != null) {
- // We eagerly listen to this even though we haven't committed yet.
- if ( typeof nextProp !== 'function') {
- warnForInvalidEventListener(propKey, nextProp);
- }
-
- if (propKey === 'onScroll') {
- listenToNonDelegatedEvent('scroll', domElement);
- }
- }
-
- if (!updatePayload && lastProp !== nextProp) {
- // This is a special case. If any listener updates we need to ensure
- // that the "current" props pointer gets updated so we need a commit
- // to update this element.
- updatePayload = [];
- }
- } else {
- // For any other property we always add it to the queue and then we
- // filter it out using the allowed property list during the commit.
- (updatePayload = updatePayload || []).push(propKey, nextProp);
- }
- }
-
- if (styleUpdates) {
- {
- validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE]);
- }
-
- (updatePayload = updatePayload || []).push(STYLE, styleUpdates);
- }
-
- return updatePayload;
- } // Apply the diff.
-
- function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
- // Update checked *before* name.
- // In the middle of an update, it is possible to have multiple checked.
- // When a checked radio tries to change name, browser makes another radio's checked false.
- if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
- updateChecked(domElement, nextRawProps);
- }
-
- var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
- var isCustomComponentTag = isCustomComponent(tag, nextRawProps); // Apply the diff.
-
- updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag); // TODO: Ensure that an update gets scheduled if any of the special props
- // changed.
-
- switch (tag) {
- case 'input':
- // Update the wrapper around inputs *after* updating props. This has to
- // happen after `updateDOMProperties`. Otherwise HTML5 input validations
- // raise warnings and prevent the new value from being assigned.
- updateWrapper(domElement, nextRawProps);
- break;
-
- case 'textarea':
- updateWrapper$1(domElement, nextRawProps);
- break;
-
- case 'select':
- // <select> value update needs to occur after <option> children
- // reconciliation
- postUpdateWrapper(domElement, nextRawProps);
- break;
- }
- }
-
- function getPossibleStandardName(propName) {
- {
- var lowerCasedName = propName.toLowerCase();
-
- if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
- return null;
- }
-
- return possibleStandardNames[lowerCasedName] || null;
- }
- }
-
- function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement, isConcurrentMode, shouldWarnDev) {
- var isCustomComponentTag;
- var extraAttributeNames;
-
- {
- isCustomComponentTag = isCustomComponent(tag, rawProps);
- validatePropertiesInDevelopment(tag, rawProps);
- } // TODO: Make sure that we check isMounted before firing any of these events.
-
-
- switch (tag) {
- case 'dialog':
- listenToNonDelegatedEvent('cancel', domElement);
- listenToNonDelegatedEvent('close', domElement);
- break;
-
- case 'iframe':
- case 'object':
- case 'embed':
- // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the load event.
- listenToNonDelegatedEvent('load', domElement);
- break;
-
- case 'video':
- case 'audio':
- // We listen to these events in case to ensure emulated bubble
- // listeners still fire for all the media events.
- for (var i = 0; i < mediaEventTypes.length; i++) {
- listenToNonDelegatedEvent(mediaEventTypes[i], domElement);
- }
-
- break;
-
- case 'source':
- // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the error event.
- listenToNonDelegatedEvent('error', domElement);
- break;
-
- case 'img':
- case 'image':
- case 'link':
- // We listen to these events in case to ensure emulated bubble
- // listeners still fire for error and load events.
- listenToNonDelegatedEvent('error', domElement);
- listenToNonDelegatedEvent('load', domElement);
- break;
-
- case 'details':
- // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the toggle event.
- listenToNonDelegatedEvent('toggle', domElement);
- break;
-
- case 'input':
- initWrapperState(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the invalid event.
-
- listenToNonDelegatedEvent('invalid', domElement);
- break;
-
- case 'option':
- validateProps(domElement, rawProps);
- break;
-
- case 'select':
- initWrapperState$1(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the invalid event.
-
- listenToNonDelegatedEvent('invalid', domElement);
- break;
-
- case 'textarea':
- initWrapperState$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the invalid event.
-
- listenToNonDelegatedEvent('invalid', domElement);
- break;
- }
-
- assertValidProps(tag, rawProps);
-
- {
- extraAttributeNames = new Set();
- var attributes = domElement.attributes;
-
- for (var _i = 0; _i < attributes.length; _i++) {
- var name = attributes[_i].name.toLowerCase();
-
- switch (name) {
- // Controlled attributes are not validated
- // TODO: Only ignore them on controlled tags.
- case 'value':
- break;
-
- case 'checked':
- break;
-
- case 'selected':
- break;
-
- default:
- // Intentionally use the original name.
- // See discussion in https://github.com/facebook/react/pull/10676.
- extraAttributeNames.add(attributes[_i].name);
- }
- }
- }
-
- var updatePayload = null;
-
- for (var propKey in rawProps) {
- if (!rawProps.hasOwnProperty(propKey)) {
- continue;
- }
-
- var nextProp = rawProps[propKey];
-
- if (propKey === CHILDREN) {
- // For text content children we compare against textContent. This
- // might match additional HTML that is hidden when we read it using
- // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
- // satisfies our requirement. Our requirement is not to produce perfect
- // HTML and attributes. Ideally we should preserve structure but it's
- // ok not to if the visible content is still enough to indicate what
- // even listeners these nodes might be wired up to.
- // TODO: Warn if there is more than a single textNode as a child.
- // TODO: Should we use domElement.firstChild.nodeValue to compare?
- if (typeof nextProp === 'string') {
- if (domElement.textContent !== nextProp) {
- if (rawProps[SUPPRESS_HYDRATION_WARNING] !== true) {
- checkForUnmatchedText(domElement.textContent, nextProp, isConcurrentMode, shouldWarnDev);
- }
-
- updatePayload = [CHILDREN, nextProp];
- }
- } else if (typeof nextProp === 'number') {
- if (domElement.textContent !== '' + nextProp) {
- if (rawProps[SUPPRESS_HYDRATION_WARNING] !== true) {
- checkForUnmatchedText(domElement.textContent, nextProp, isConcurrentMode, shouldWarnDev);
- }
-
- updatePayload = [CHILDREN, '' + nextProp];
- }
- }
- } else if (registrationNameDependencies.hasOwnProperty(propKey)) {
- if (nextProp != null) {
- if ( typeof nextProp !== 'function') {
- warnForInvalidEventListener(propKey, nextProp);
- }
-
- if (propKey === 'onScroll') {
- listenToNonDelegatedEvent('scroll', domElement);
- }
- }
- } else if (shouldWarnDev && true && // Convince Flow we've calculated it (it's DEV-only in this method.)
- typeof isCustomComponentTag === 'boolean') {
- // Validate that the properties correspond to their expected values.
- var serverValue = void 0;
- var propertyInfo = isCustomComponentTag && enableCustomElementPropertySupport ? null : getPropertyInfo(propKey);
-
- if (rawProps[SUPPRESS_HYDRATION_WARNING] === true) ; else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING || // Controlled attributes are not validated
- // TODO: Only ignore them on controlled tags.
- propKey === 'value' || propKey === 'checked' || propKey === 'selected') ; else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
- var serverHTML = domElement.innerHTML;
- var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
-
- if (nextHtml != null) {
- var expectedHTML = normalizeHTML(domElement, nextHtml);
-
- if (expectedHTML !== serverHTML) {
- warnForPropDifference(propKey, serverHTML, expectedHTML);
- }
- }
- } else if (propKey === STYLE) {
- // $FlowFixMe - Should be inferred as not undefined.
- extraAttributeNames.delete(propKey);
-
- if (canDiffStyleForHydrationWarning) {
- var expectedStyle = createDangerousStringForStyles(nextProp);
- serverValue = domElement.getAttribute('style');
-
- if (expectedStyle !== serverValue) {
- warnForPropDifference(propKey, serverValue, expectedStyle);
- }
- }
- } else if (isCustomComponentTag && !enableCustomElementPropertySupport) {
- // $FlowFixMe - Should be inferred as not undefined.
- extraAttributeNames.delete(propKey.toLowerCase());
- serverValue = getValueForAttribute(domElement, propKey, nextProp);
-
- if (nextProp !== serverValue) {
- warnForPropDifference(propKey, serverValue, nextProp);
- }
- } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
- var isMismatchDueToBadCasing = false;
-
- if (propertyInfo !== null) {
- // $FlowFixMe - Should be inferred as not undefined.
- extraAttributeNames.delete(propertyInfo.attributeName);
- serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
- } else {
- var ownNamespace = parentNamespace;
-
- if (ownNamespace === HTML_NAMESPACE) {
- ownNamespace = getIntrinsicNamespace(tag);
- }
-
- if (ownNamespace === HTML_NAMESPACE) {
- // $FlowFixMe - Should be inferred as not undefined.
- extraAttributeNames.delete(propKey.toLowerCase());
- } else {
- var standardName = getPossibleStandardName(propKey);
-
- if (standardName !== null && standardName !== propKey) {
- // If an SVG prop is supplied with bad casing, it will
- // be successfully parsed from HTML, but will produce a mismatch
- // (and would be incorrectly rendered on the client).
- // However, we already warn about bad casing elsewhere.
- // So we'll skip the misleading extra mismatch warning in this case.
- isMismatchDueToBadCasing = true; // $FlowFixMe - Should be inferred as not undefined.
-
- extraAttributeNames.delete(standardName);
- } // $FlowFixMe - Should be inferred as not undefined.
-
-
- extraAttributeNames.delete(propKey);
- }
-
- serverValue = getValueForAttribute(domElement, propKey, nextProp);
- }
-
- var dontWarnCustomElement = enableCustomElementPropertySupport ;
-
- if (!dontWarnCustomElement && nextProp !== serverValue && !isMismatchDueToBadCasing) {
- warnForPropDifference(propKey, serverValue, nextProp);
- }
- }
- }
- }
-
- {
- if (shouldWarnDev) {
- if ( // $FlowFixMe - Should be inferred as not undefined.
- extraAttributeNames.size > 0 && rawProps[SUPPRESS_HYDRATION_WARNING] !== true) {
- // $FlowFixMe - Should be inferred as not undefined.
- warnForExtraAttributes(extraAttributeNames);
- }
- }
- }
-
- switch (tag) {
- case 'input':
- // TODO: Make sure we check if this is still unmounted or do any clean
- // up necessary since we never stop tracking anymore.
- track(domElement);
- postMountWrapper(domElement, rawProps, true);
- break;
-
- case 'textarea':
- // TODO: Make sure we check if this is still unmounted or do any clean
- // up necessary since we never stop tracking anymore.
- track(domElement);
- postMountWrapper$3(domElement);
- break;
-
- case 'select':
- case 'option':
- // For input and textarea we current always set the value property at
- // post mount to force it to diverge from attributes. However, for
- // option and select we don't quite do the same thing and select
- // is not resilient to the DOM state changing so we don't do that here.
- // TODO: Consider not doing this for input and textarea.
- break;
-
- default:
- if (typeof rawProps.onClick === 'function') {
- // TODO: This cast may not be sound for SVG, MathML or custom elements.
- trapClickOnNonInteractiveElement(domElement);
- }
-
- break;
- }
-
- return updatePayload;
- }
- function diffHydratedText(textNode, text, isConcurrentMode) {
- var isDifferent = textNode.nodeValue !== text;
- return isDifferent;
- }
- function warnForDeletedHydratableElement(parentNode, child) {
- {
- if (didWarnInvalidHydration) {
- return;
- }
-
- didWarnInvalidHydration = true;
-
- error('Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
- }
- }
- function warnForDeletedHydratableText(parentNode, child) {
- {
- if (didWarnInvalidHydration) {
- return;
- }
-
- didWarnInvalidHydration = true;
-
- error('Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
- }
- }
- function warnForInsertedHydratedElement(parentNode, tag, props) {
- {
- if (didWarnInvalidHydration) {
- return;
- }
-
- didWarnInvalidHydration = true;
-
- error('Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
- }
- }
- function warnForInsertedHydratedText(parentNode, text) {
- {
- if (text === '') {
- // We expect to insert empty text nodes since they're not represented in
- // the HTML.
- // TODO: Remove this special case if we can just avoid inserting empty
- // text nodes.
- return;
- }
-
- if (didWarnInvalidHydration) {
- return;
- }
-
- didWarnInvalidHydration = true;
-
- error('Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
- }
- }
- function restoreControlledState$3(domElement, tag, props) {
- switch (tag) {
- case 'input':
- restoreControlledState(domElement, props);
- return;
-
- case 'textarea':
- restoreControlledState$2(domElement, props);
- return;
-
- case 'select':
- restoreControlledState$1(domElement, props);
- return;
- }
- }
-
- var validateDOMNesting = function () {};
-
- var updatedAncestorInfo = function () {};
-
- {
- // This validation code was written based on the HTML5 parsing spec:
- // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
- //
- // Note: this does not catch all invalid nesting, nor does it try to (as it's
- // not clear what practical benefit doing so provides); instead, we warn only
- // for cases where the parser will give a parse tree differing from what React
- // intended. For example, <b><div></div></b> is invalid but we don't warn
- // because it still parses correctly; we do warn for other cases like nested
- // <p> tags where the beginning of the second element implicitly closes the
- // first, causing a confusing mess.
- // https://html.spec.whatwg.org/multipage/syntax.html#special
- var specialTags = ['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
-
- var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template', // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
- // TODO: Distinguish by namespace here -- for <title>, including it here
- // errs on the side of fewer warnings
- 'foreignObject', 'desc', 'title']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
-
- var buttonScopeTags = inScopeTags.concat(['button']); // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
-
- var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
- var emptyAncestorInfo = {
- current: null,
- formTag: null,
- aTagInScope: null,
- buttonTagInScope: null,
- nobrTagInScope: null,
- pTagInButtonScope: null,
- listItemTagAutoclosing: null,
- dlItemTagAutoclosing: null
- };
-
- updatedAncestorInfo = function (oldInfo, tag) {
- var ancestorInfo = assign({}, oldInfo || emptyAncestorInfo);
-
- var info = {
- tag: tag
- };
-
- if (inScopeTags.indexOf(tag) !== -1) {
- ancestorInfo.aTagInScope = null;
- ancestorInfo.buttonTagInScope = null;
- ancestorInfo.nobrTagInScope = null;
- }
-
- if (buttonScopeTags.indexOf(tag) !== -1) {
- ancestorInfo.pTagInButtonScope = null;
- } // See rules for 'li', 'dd', 'dt' start tags in
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
-
-
- if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
- ancestorInfo.listItemTagAutoclosing = null;
- ancestorInfo.dlItemTagAutoclosing = null;
- }
-
- ancestorInfo.current = info;
-
- if (tag === 'form') {
- ancestorInfo.formTag = info;
- }
-
- if (tag === 'a') {
- ancestorInfo.aTagInScope = info;
- }
-
- if (tag === 'button') {
- ancestorInfo.buttonTagInScope = info;
- }
-
- if (tag === 'nobr') {
- ancestorInfo.nobrTagInScope = info;
- }
-
- if (tag === 'p') {
- ancestorInfo.pTagInButtonScope = info;
- }
-
- if (tag === 'li') {
- ancestorInfo.listItemTagAutoclosing = info;
- }
-
- if (tag === 'dd' || tag === 'dt') {
- ancestorInfo.dlItemTagAutoclosing = info;
- }
-
- return ancestorInfo;
- };
- /**
- * Returns whether
- */
-
-
- var isTagValidWithParent = function (tag, parentTag) {
- // First, let's check if we're in an unusual parsing mode...
- switch (parentTag) {
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
- case 'select':
- return tag === 'option' || tag === 'optgroup' || tag === '#text';
-
- case 'optgroup':
- return tag === 'option' || tag === '#text';
- // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
- // but
-
- case 'option':
- return tag === '#text';
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
- // No special behavior since these rules fall back to "in body" mode for
- // all except special table nodes which cause bad parsing behavior anyway.
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
-
- case 'tr':
- return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
-
- case 'tbody':
- case 'thead':
- case 'tfoot':
- return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
-
- case 'colgroup':
- return tag === 'col' || tag === 'template';
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
-
- case 'table':
- return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
-
- case 'head':
- return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
- // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
-
- case 'html':
- return tag === 'head' || tag === 'body' || tag === 'frameset';
-
- case 'frameset':
- return tag === 'frame';
-
- case '#document':
- return tag === 'html';
- } // Probably in the "in body" parsing mode, so we outlaw only tag combos
- // where the parsing rules cause implicit opens or closes to be added.
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
-
-
- switch (tag) {
- case 'h1':
- case 'h2':
- case 'h3':
- case 'h4':
- case 'h5':
- case 'h6':
- return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
-
- case 'rp':
- case 'rt':
- return impliedEndTags.indexOf(parentTag) === -1;
-
- case 'body':
- case 'caption':
- case 'col':
- case 'colgroup':
- case 'frameset':
- case 'frame':
- case 'head':
- case 'html':
- case 'tbody':
- case 'td':
- case 'tfoot':
- case 'th':
- case 'thead':
- case 'tr':
- // These tags are only valid with a few parents that have special child
- // parsing rules -- if we're down here, then none of those matched and
- // so we allow it only if we don't know what the parent is, as all other
- // cases are invalid.
- return parentTag == null;
- }
-
- return true;
- };
- /**
- * Returns whether
- */
-
-
- var findInvalidAncestorForTag = function (tag, ancestorInfo) {
- switch (tag) {
- case 'address':
- case 'article':
- case 'aside':
- case 'blockquote':
- case 'center':
- case 'details':
- case 'dialog':
- case 'dir':
- case 'div':
- case 'dl':
- case 'fieldset':
- case 'figcaption':
- case 'figure':
- case 'footer':
- case 'header':
- case 'hgroup':
- case 'main':
- case 'menu':
- case 'nav':
- case 'ol':
- case 'p':
- case 'section':
- case 'summary':
- case 'ul':
- case 'pre':
- case 'listing':
- case 'table':
- case 'hr':
- case 'xmp':
- case 'h1':
- case 'h2':
- case 'h3':
- case 'h4':
- case 'h5':
- case 'h6':
- return ancestorInfo.pTagInButtonScope;
-
- case 'form':
- return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
-
- case 'li':
- return ancestorInfo.listItemTagAutoclosing;
-
- case 'dd':
- case 'dt':
- return ancestorInfo.dlItemTagAutoclosing;
-
- case 'button':
- return ancestorInfo.buttonTagInScope;
-
- case 'a':
- // Spec says something about storing a list of markers, but it sounds
- // equivalent to this check.
- return ancestorInfo.aTagInScope;
-
- case 'nobr':
- return ancestorInfo.nobrTagInScope;
- }
-
- return null;
- };
-
- var didWarn$1 = {};
-
- validateDOMNesting = function (childTag, childText, ancestorInfo) {
- ancestorInfo = ancestorInfo || emptyAncestorInfo;
- var parentInfo = ancestorInfo.current;
- var parentTag = parentInfo && parentInfo.tag;
-
- if (childText != null) {
- if (childTag != null) {
- error('validateDOMNesting: when childText is passed, childTag should be null');
- }
-
- childTag = '#text';
- }
-
- var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
- var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
- var invalidParentOrAncestor = invalidParent || invalidAncestor;
-
- if (!invalidParentOrAncestor) {
- return;
- }
-
- var ancestorTag = invalidParentOrAncestor.tag;
- var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag;
-
- if (didWarn$1[warnKey]) {
- return;
- }
-
- didWarn$1[warnKey] = true;
- var tagDisplayName = childTag;
- var whitespaceInfo = '';
-
- if (childTag === '#text') {
- if (/\S/.test(childText)) {
- tagDisplayName = 'Text nodes';
- } else {
- tagDisplayName = 'Whitespace text nodes';
- whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
- }
- } else {
- tagDisplayName = '<' + childTag + '>';
- }
-
- if (invalidParent) {
- var info = '';
-
- if (ancestorTag === 'table' && childTag === 'tr') {
- info += ' Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by ' + 'the browser.';
- }
-
- error('validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info);
- } else {
- error('validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.', tagDisplayName, ancestorTag);
- }
- };
- }
-
- var SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
- var SUSPENSE_START_DATA = '$';
- var SUSPENSE_END_DATA = '/$';
- var SUSPENSE_PENDING_START_DATA = '$?';
- var SUSPENSE_FALLBACK_START_DATA = '$!';
- var STYLE$1 = 'style';
- var eventsEnabled = null;
- var selectionInformation = null;
- function getRootHostContext(rootContainerInstance) {
- var type;
- var namespace;
- var nodeType = rootContainerInstance.nodeType;
-
- switch (nodeType) {
- case DOCUMENT_NODE:
- case DOCUMENT_FRAGMENT_NODE:
- {
- type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
- var root = rootContainerInstance.documentElement;
- namespace = root ? root.namespaceURI : getChildNamespace(null, '');
- break;
- }
-
- default:
- {
- var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
- var ownNamespace = container.namespaceURI || null;
- type = container.tagName;
- namespace = getChildNamespace(ownNamespace, type);
- break;
- }
- }
-
- {
- var validatedTag = type.toLowerCase();
- var ancestorInfo = updatedAncestorInfo(null, validatedTag);
- return {
- namespace: namespace,
- ancestorInfo: ancestorInfo
- };
- }
- }
- function getChildHostContext(parentHostContext, type, rootContainerInstance) {
- {
- var parentHostContextDev = parentHostContext;
- var namespace = getChildNamespace(parentHostContextDev.namespace, type);
- var ancestorInfo = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
- return {
- namespace: namespace,
- ancestorInfo: ancestorInfo
- };
- }
- }
- function getPublicInstance(instance) {
- return instance;
- }
- function prepareForCommit(containerInfo) {
- eventsEnabled = isEnabled();
- selectionInformation = getSelectionInformation();
- var activeInstance = null;
-
- setEnabled(false);
- return activeInstance;
- }
- function resetAfterCommit(containerInfo) {
- restoreSelection(selectionInformation);
- setEnabled(eventsEnabled);
- eventsEnabled = null;
- selectionInformation = null;
- }
- function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
- var parentNamespace;
-
- {
- // TODO: take namespace into account when validating.
- var hostContextDev = hostContext;
- validateDOMNesting(type, null, hostContextDev.ancestorInfo);
-
- if (typeof props.children === 'string' || typeof props.children === 'number') {
- var string = '' + props.children;
- var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
- validateDOMNesting(null, string, ownAncestorInfo);
- }
-
- parentNamespace = hostContextDev.namespace;
- }
-
- var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
- precacheFiberNode(internalInstanceHandle, domElement);
- updateFiberProps(domElement, props);
- return domElement;
- }
- function appendInitialChild(parentInstance, child) {
- parentInstance.appendChild(child);
- }
- function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
- setInitialProperties(domElement, type, props, rootContainerInstance);
-
- switch (type) {
- case 'button':
- case 'input':
- case 'select':
- case 'textarea':
- return !!props.autoFocus;
-
- case 'img':
- return true;
-
- default:
- return false;
- }
- }
- function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
- {
- var hostContextDev = hostContext;
-
- if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
- var string = '' + newProps.children;
- var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
- validateDOMNesting(null, string, ownAncestorInfo);
- }
- }
-
- return diffProperties(domElement, type, oldProps, newProps);
- }
- function shouldSetTextContent(type, props) {
- return type === 'textarea' || type === 'noscript' || typeof props.children === 'string' || typeof props.children === 'number' || typeof props.dangerouslySetInnerHTML === 'object' && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null;
- }
- function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
- {
- var hostContextDev = hostContext;
- validateDOMNesting(null, text, hostContextDev.ancestorInfo);
- }
-
- var textNode = createTextNode(text, rootContainerInstance);
- precacheFiberNode(internalInstanceHandle, textNode);
- return textNode;
- }
- function getCurrentEventPriority() {
- var currentEvent = window.event;
-
- if (currentEvent === undefined) {
- return DefaultEventPriority;
- }
-
- return getEventPriority(currentEvent.type);
- }
- // if a component just imports ReactDOM (e.g. for findDOMNode).
- // Some environments might not have setTimeout or clearTimeout.
-
- var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
- var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
- var noTimeout = -1;
- var localPromise = typeof Promise === 'function' ? Promise : undefined; // -------------------
- var scheduleMicrotask = typeof queueMicrotask === 'function' ? queueMicrotask : typeof localPromise !== 'undefined' ? function (callback) {
- return localPromise.resolve(null).then(callback).catch(handleErrorInNextTick);
- } : scheduleTimeout; // TODO: Determine the best fallback here.
-
- function handleErrorInNextTick(error) {
- setTimeout(function () {
- throw error;
- });
- } // -------------------
- function commitMount(domElement, type, newProps, internalInstanceHandle) {
- // Despite the naming that might imply otherwise, this method only
- // fires if there is an `Update` effect scheduled during mounting.
- // This happens if `finalizeInitialChildren` returns `true` (which it
- // does to implement the `autoFocus` attribute on the client). But
- // there are also other cases when this might happen (such as patching
- // up text content during hydration mismatch). So we'll check this again.
- switch (type) {
- case 'button':
- case 'input':
- case 'select':
- case 'textarea':
- if (newProps.autoFocus) {
- domElement.focus();
- }
-
- return;
-
- case 'img':
- {
- if (newProps.src) {
- domElement.src = newProps.src;
- }
-
- return;
- }
- }
- }
- function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
- // Apply the diff to the DOM node.
- updateProperties(domElement, updatePayload, type, oldProps, newProps); // Update the props handle so that we know which props are the ones with
- // with current event handlers.
-
- updateFiberProps(domElement, newProps);
- }
- function resetTextContent(domElement) {
- setTextContent(domElement, '');
- }
- function commitTextUpdate(textInstance, oldText, newText) {
- textInstance.nodeValue = newText;
- }
- function appendChild(parentInstance, child) {
- parentInstance.appendChild(child);
- }
- function appendChildToContainer(container, child) {
- var parentNode;
-
- if (container.nodeType === COMMENT_NODE) {
- parentNode = container.parentNode;
- parentNode.insertBefore(child, container);
- } else {
- parentNode = container;
- parentNode.appendChild(child);
- } // This container might be used for a portal.
- // If something inside a portal is clicked, that click should bubble
- // through the React tree. However, on Mobile Safari the click would
- // never bubble through the *DOM* tree unless an ancestor with onclick
- // event exists. So we wouldn't see it and dispatch it.
- // This is why we ensure that non React root containers have inline onclick
- // defined.
- // https://github.com/facebook/react/issues/11918
-
-
- var reactRootContainer = container._reactRootContainer;
-
- if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
- // TODO: This cast may not be sound for SVG, MathML or custom elements.
- trapClickOnNonInteractiveElement(parentNode);
- }
- }
- function insertBefore(parentInstance, child, beforeChild) {
- parentInstance.insertBefore(child, beforeChild);
- }
- function insertInContainerBefore(container, child, beforeChild) {
- if (container.nodeType === COMMENT_NODE) {
- container.parentNode.insertBefore(child, beforeChild);
- } else {
- container.insertBefore(child, beforeChild);
- }
- }
-
- function removeChild(parentInstance, child) {
- parentInstance.removeChild(child);
- }
- function removeChildFromContainer(container, child) {
- if (container.nodeType === COMMENT_NODE) {
- container.parentNode.removeChild(child);
- } else {
- container.removeChild(child);
- }
- }
- function clearSuspenseBoundary(parentInstance, suspenseInstance) {
- var node = suspenseInstance; // Delete all nodes within this suspense boundary.
- // There might be nested nodes so we need to keep track of how
- // deep we are and only break out when we're back on top.
-
- var depth = 0;
-
- do {
- var nextNode = node.nextSibling;
- parentInstance.removeChild(node);
-
- if (nextNode && nextNode.nodeType === COMMENT_NODE) {
- var data = nextNode.data;
-
- if (data === SUSPENSE_END_DATA) {
- if (depth === 0) {
- parentInstance.removeChild(nextNode); // Retry if any event replaying was blocked on this.
-
- retryIfBlockedOn(suspenseInstance);
- return;
- } else {
- depth--;
- }
- } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_PENDING_START_DATA || data === SUSPENSE_FALLBACK_START_DATA) {
- depth++;
- }
- }
-
- node = nextNode;
- } while (node); // TODO: Warn, we didn't find the end comment boundary.
- // Retry if any event replaying was blocked on this.
-
-
- retryIfBlockedOn(suspenseInstance);
- }
- function clearSuspenseBoundaryFromContainer(container, suspenseInstance) {
- if (container.nodeType === COMMENT_NODE) {
- clearSuspenseBoundary(container.parentNode, suspenseInstance);
- } else if (container.nodeType === ELEMENT_NODE) {
- clearSuspenseBoundary(container, suspenseInstance);
- } // Retry if any event replaying was blocked on this.
-
-
- retryIfBlockedOn(container);
- }
- function hideInstance(instance) {
- // TODO: Does this work for all element types? What about MathML? Should we
- // pass host context to this method?
- instance = instance;
- var style = instance.style;
-
- if (typeof style.setProperty === 'function') {
- style.setProperty('display', 'none', 'important');
- } else {
- style.display = 'none';
- }
- }
- function hideTextInstance(textInstance) {
- textInstance.nodeValue = '';
- }
- function unhideInstance(instance, props) {
- instance = instance;
- var styleProp = props[STYLE$1];
- var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
- instance.style.display = dangerousStyleValue('display', display);
- }
- function unhideTextInstance(textInstance, text) {
- textInstance.nodeValue = text;
- }
- function clearContainer(container) {
- if (container.nodeType === ELEMENT_NODE) {
- container.textContent = '';
- } else if (container.nodeType === DOCUMENT_NODE) {
- if (container.documentElement) {
- container.removeChild(container.documentElement);
- }
- }
- } // -------------------
- function canHydrateInstance(instance, type, props) {
- if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
- return null;
- } // This has now been refined to an element node.
-
-
- return instance;
- }
- function canHydrateTextInstance(instance, text) {
- if (text === '' || instance.nodeType !== TEXT_NODE) {
- // Empty strings are not parsed by HTML so there won't be a correct match here.
- return null;
- } // This has now been refined to a text node.
-
-
- return instance;
- }
- function canHydrateSuspenseInstance(instance) {
- if (instance.nodeType !== COMMENT_NODE) {
- // Empty strings are not parsed by HTML so there won't be a correct match here.
- return null;
- } // This has now been refined to a suspense node.
-
-
- return instance;
- }
- function isSuspenseInstancePending(instance) {
- return instance.data === SUSPENSE_PENDING_START_DATA;
- }
- function isSuspenseInstanceFallback(instance) {
- return instance.data === SUSPENSE_FALLBACK_START_DATA;
- }
- function getSuspenseInstanceFallbackErrorDetails(instance) {
- var dataset = instance.nextSibling && instance.nextSibling.dataset;
- var digest, message, stack;
-
- if (dataset) {
- digest = dataset.dgst;
-
- {
- message = dataset.msg;
- stack = dataset.stck;
- }
- }
-
- {
- return {
- message: message,
- digest: digest,
- stack: stack
- };
- } // let value = {message: undefined, hash: undefined};
- // const nextSibling = instance.nextSibling;
- // if (nextSibling) {
- // const dataset = ((nextSibling: any): HTMLTemplateElement).dataset;
- // value.message = dataset.msg;
- // value.hash = dataset.hash;
- // if (true) {
- // value.stack = dataset.stack;
- // }
- // }
- // return value;
-
- }
- function registerSuspenseInstanceRetry(instance, callback) {
- instance._reactRetry = callback;
- }
-
- function getNextHydratable(node) {
- // Skip non-hydratable nodes.
- for (; node != null; node = node.nextSibling) {
- var nodeType = node.nodeType;
-
- if (nodeType === ELEMENT_NODE || nodeType === TEXT_NODE) {
- break;
- }
-
- if (nodeType === COMMENT_NODE) {
- var nodeData = node.data;
-
- if (nodeData === SUSPENSE_START_DATA || nodeData === SUSPENSE_FALLBACK_START_DATA || nodeData === SUSPENSE_PENDING_START_DATA) {
- break;
- }
-
- if (nodeData === SUSPENSE_END_DATA) {
- return null;
- }
- }
- }
-
- return node;
- }
-
- function getNextHydratableSibling(instance) {
- return getNextHydratable(instance.nextSibling);
- }
- function getFirstHydratableChild(parentInstance) {
- return getNextHydratable(parentInstance.firstChild);
- }
- function getFirstHydratableChildWithinContainer(parentContainer) {
- return getNextHydratable(parentContainer.firstChild);
- }
- function getFirstHydratableChildWithinSuspenseInstance(parentInstance) {
- return getNextHydratable(parentInstance.nextSibling);
- }
- function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle, shouldWarnDev) {
- precacheFiberNode(internalInstanceHandle, instance); // TODO: Possibly defer this until the commit phase where all the events
- // get attached.
-
- updateFiberProps(instance, props);
- var parentNamespace;
-
- {
- var hostContextDev = hostContext;
- parentNamespace = hostContextDev.namespace;
- } // TODO: Temporary hack to check if we're in a concurrent root. We can delete
- // when the legacy root API is removed.
-
-
- var isConcurrentMode = (internalInstanceHandle.mode & ConcurrentMode) !== NoMode;
- return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance, isConcurrentMode, shouldWarnDev);
- }
- function hydrateTextInstance(textInstance, text, internalInstanceHandle, shouldWarnDev) {
- precacheFiberNode(internalInstanceHandle, textInstance); // TODO: Temporary hack to check if we're in a concurrent root. We can delete
- // when the legacy root API is removed.
-
- var isConcurrentMode = (internalInstanceHandle.mode & ConcurrentMode) !== NoMode;
- return diffHydratedText(textInstance, text);
- }
- function hydrateSuspenseInstance(suspenseInstance, internalInstanceHandle) {
- precacheFiberNode(internalInstanceHandle, suspenseInstance);
- }
- function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {
- var node = suspenseInstance.nextSibling; // Skip past all nodes within this suspense boundary.
- // There might be nested nodes so we need to keep track of how
- // deep we are and only break out when we're back on top.
-
- var depth = 0;
-
- while (node) {
- if (node.nodeType === COMMENT_NODE) {
- var data = node.data;
-
- if (data === SUSPENSE_END_DATA) {
- if (depth === 0) {
- return getNextHydratableSibling(node);
- } else {
- depth--;
- }
- } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
- depth++;
- }
- }
-
- node = node.nextSibling;
- } // TODO: Warn, we didn't find the end comment boundary.
-
-
- return null;
- } // Returns the SuspenseInstance if this node is a direct child of a
- // SuspenseInstance. I.e. if its previous sibling is a Comment with
- // SUSPENSE_x_START_DATA. Otherwise, null.
-
- function getParentSuspenseInstance(targetInstance) {
- var node = targetInstance.previousSibling; // Skip past all nodes within this suspense boundary.
- // There might be nested nodes so we need to keep track of how
- // deep we are and only break out when we're back on top.
-
- var depth = 0;
-
- while (node) {
- if (node.nodeType === COMMENT_NODE) {
- var data = node.data;
-
- if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
- if (depth === 0) {
- return node;
- } else {
- depth--;
- }
- } else if (data === SUSPENSE_END_DATA) {
- depth++;
- }
- }
-
- node = node.previousSibling;
- }
-
- return null;
- }
- function commitHydratedContainer(container) {
- // Retry if any event replaying was blocked on this.
- retryIfBlockedOn(container);
- }
- function commitHydratedSuspenseInstance(suspenseInstance) {
- // Retry if any event replaying was blocked on this.
- retryIfBlockedOn(suspenseInstance);
- }
- function shouldDeleteUnhydratedTailInstances(parentType) {
- return parentType !== 'head' && parentType !== 'body';
- }
- function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text, isConcurrentMode) {
- var shouldWarnDev = true;
- checkForUnmatchedText(textInstance.nodeValue, text, isConcurrentMode, shouldWarnDev);
- }
- function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text, isConcurrentMode) {
- if (parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
- var shouldWarnDev = true;
- checkForUnmatchedText(textInstance.nodeValue, text, isConcurrentMode, shouldWarnDev);
- }
- }
- function didNotHydrateInstanceWithinContainer(parentContainer, instance) {
- {
- if (instance.nodeType === ELEMENT_NODE) {
- warnForDeletedHydratableElement(parentContainer, instance);
- } else if (instance.nodeType === COMMENT_NODE) ; else {
- warnForDeletedHydratableText(parentContainer, instance);
- }
- }
- }
- function didNotHydrateInstanceWithinSuspenseInstance(parentInstance, instance) {
- {
- // $FlowFixMe: Only Element or Document can be parent nodes.
- var parentNode = parentInstance.parentNode;
-
- if (parentNode !== null) {
- if (instance.nodeType === ELEMENT_NODE) {
- warnForDeletedHydratableElement(parentNode, instance);
- } else if (instance.nodeType === COMMENT_NODE) ; else {
- warnForDeletedHydratableText(parentNode, instance);
- }
- }
- }
- }
- function didNotHydrateInstance(parentType, parentProps, parentInstance, instance, isConcurrentMode) {
- {
- if (isConcurrentMode || parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
- if (instance.nodeType === ELEMENT_NODE) {
- warnForDeletedHydratableElement(parentInstance, instance);
- } else if (instance.nodeType === COMMENT_NODE) ; else {
- warnForDeletedHydratableText(parentInstance, instance);
- }
- }
- }
- }
- function didNotFindHydratableInstanceWithinContainer(parentContainer, type, props) {
- {
- warnForInsertedHydratedElement(parentContainer, type);
- }
- }
- function didNotFindHydratableTextInstanceWithinContainer(parentContainer, text) {
- {
- warnForInsertedHydratedText(parentContainer, text);
- }
- }
- function didNotFindHydratableInstanceWithinSuspenseInstance(parentInstance, type, props) {
- {
- // $FlowFixMe: Only Element or Document can be parent nodes.
- var parentNode = parentInstance.parentNode;
- if (parentNode !== null) warnForInsertedHydratedElement(parentNode, type);
- }
- }
- function didNotFindHydratableTextInstanceWithinSuspenseInstance(parentInstance, text) {
- {
- // $FlowFixMe: Only Element or Document can be parent nodes.
- var parentNode = parentInstance.parentNode;
- if (parentNode !== null) warnForInsertedHydratedText(parentNode, text);
- }
- }
- function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props, isConcurrentMode) {
- {
- if (isConcurrentMode || parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
- warnForInsertedHydratedElement(parentInstance, type);
- }
- }
- }
- function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text, isConcurrentMode) {
- {
- if (isConcurrentMode || parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
- warnForInsertedHydratedText(parentInstance, text);
- }
- }
- }
- function errorHydratingContainer(parentContainer) {
- {
- // TODO: This gets logged by onRecoverableError, too, so we should be
- // able to remove it.
- error('An error occurred during hydration. The server HTML was replaced with client content in <%s>.', parentContainer.nodeName.toLowerCase());
- }
- }
- function preparePortalMount(portalInstance) {
- listenToAllSupportedEvents(portalInstance);
- }
-
- var randomKey = Math.random().toString(36).slice(2);
- var internalInstanceKey = '__reactFiber$' + randomKey;
- var internalPropsKey = '__reactProps$' + randomKey;
- var internalContainerInstanceKey = '__reactContainer$' + randomKey;
- var internalEventHandlersKey = '__reactEvents$' + randomKey;
- var internalEventHandlerListenersKey = '__reactListeners$' + randomKey;
- var internalEventHandlesSetKey = '__reactHandles$' + randomKey;
- function detachDeletedInstance(node) {
- // TODO: This function is only called on host components. I don't think all of
- // these fields are relevant.
- delete node[internalInstanceKey];
- delete node[internalPropsKey];
- delete node[internalEventHandlersKey];
- delete node[internalEventHandlerListenersKey];
- delete node[internalEventHandlesSetKey];
- }
- function precacheFiberNode(hostInst, node) {
- node[internalInstanceKey] = hostInst;
- }
- function markContainerAsRoot(hostRoot, node) {
- node[internalContainerInstanceKey] = hostRoot;
- }
- function unmarkContainerAsRoot(node) {
- node[internalContainerInstanceKey] = null;
- }
- function isContainerMarkedAsRoot(node) {
- return !!node[internalContainerInstanceKey];
- } // Given a DOM node, return the closest HostComponent or HostText fiber ancestor.
- // If the target node is part of a hydrated or not yet rendered subtree, then
- // this may also return a SuspenseComponent or HostRoot to indicate that.
- // Conceptually the HostRoot fiber is a child of the Container node. So if you
- // pass the Container node as the targetNode, you will not actually get the
- // HostRoot back. To get to the HostRoot, you need to pass a child of it.
- // The same thing applies to Suspense boundaries.
-
- function getClosestInstanceFromNode(targetNode) {
- var targetInst = targetNode[internalInstanceKey];
-
- if (targetInst) {
- // Don't return HostRoot or SuspenseComponent here.
- return targetInst;
- } // If the direct event target isn't a React owned DOM node, we need to look
- // to see if one of its parents is a React owned DOM node.
-
-
- var parentNode = targetNode.parentNode;
-
- while (parentNode) {
- // We'll check if this is a container root that could include
- // React nodes in the future. We need to check this first because
- // if we're a child of a dehydrated container, we need to first
- // find that inner container before moving on to finding the parent
- // instance. Note that we don't check this field on the targetNode
- // itself because the fibers are conceptually between the container
- // node and the first child. It isn't surrounding the container node.
- // If it's not a container, we check if it's an instance.
- targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey];
-
- if (targetInst) {
- // Since this wasn't the direct target of the event, we might have
- // stepped past dehydrated DOM nodes to get here. However they could
- // also have been non-React nodes. We need to answer which one.
- // If we the instance doesn't have any children, then there can't be
- // a nested suspense boundary within it. So we can use this as a fast
- // bailout. Most of the time, when people add non-React children to
- // the tree, it is using a ref to a child-less DOM node.
- // Normally we'd only need to check one of the fibers because if it
- // has ever gone from having children to deleting them or vice versa
- // it would have deleted the dehydrated boundary nested inside already.
- // However, since the HostRoot starts out with an alternate it might
- // have one on the alternate so we need to check in case this was a
- // root.
- var alternate = targetInst.alternate;
-
- if (targetInst.child !== null || alternate !== null && alternate.child !== null) {
- // Next we need to figure out if the node that skipped past is
- // nested within a dehydrated boundary and if so, which one.
- var suspenseInstance = getParentSuspenseInstance(targetNode);
-
- while (suspenseInstance !== null) {
- // We found a suspense instance. That means that we haven't
- // hydrated it yet. Even though we leave the comments in the
- // DOM after hydrating, and there are boundaries in the DOM
- // that could already be hydrated, we wouldn't have found them
- // through this pass since if the target is hydrated it would
- // have had an internalInstanceKey on it.
- // Let's get the fiber associated with the SuspenseComponent
- // as the deepest instance.
- var targetSuspenseInst = suspenseInstance[internalInstanceKey];
-
- if (targetSuspenseInst) {
- return targetSuspenseInst;
- } // If we don't find a Fiber on the comment, it might be because
- // we haven't gotten to hydrate it yet. There might still be a
- // parent boundary that hasn't above this one so we need to find
- // the outer most that is known.
-
-
- suspenseInstance = getParentSuspenseInstance(suspenseInstance); // If we don't find one, then that should mean that the parent
- // host component also hasn't hydrated yet. We can return it
- // below since it will bail out on the isMounted check later.
- }
- }
-
- return targetInst;
- }
-
- targetNode = parentNode;
- parentNode = targetNode.parentNode;
- }
-
- return null;
- }
- /**
- * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
- * instance, or null if the node was not rendered by this React.
- */
-
- function getInstanceFromNode(node) {
- var inst = node[internalInstanceKey] || node[internalContainerInstanceKey];
-
- if (inst) {
- if (inst.tag === HostComponent || inst.tag === HostText || inst.tag === SuspenseComponent || inst.tag === HostRoot) {
- return inst;
- } else {
- return null;
- }
- }
-
- return null;
- }
- /**
- * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
- * DOM node.
- */
-
- function getNodeFromInstance(inst) {
- if (inst.tag === HostComponent || inst.tag === HostText) {
- // In Fiber this, is just the state node right now. We assume it will be
- // a host component or host text.
- return inst.stateNode;
- } // Without this first invariant, passing a non-DOM-component triggers the next
- // invariant for a missing parent, which is super confusing.
-
-
- throw new Error('getNodeFromInstance: Invalid argument.');
- }
- function getFiberCurrentPropsFromNode(node) {
- return node[internalPropsKey] || null;
- }
- function updateFiberProps(node, props) {
- node[internalPropsKey] = props;
- }
- function getEventListenerSet(node) {
- var elementListenerSet = node[internalEventHandlersKey];
-
- if (elementListenerSet === undefined) {
- elementListenerSet = node[internalEventHandlersKey] = new Set();
- }
-
- return elementListenerSet;
- }
-
- var loggedTypeFailures = {};
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
-
- function setCurrentlyValidatingElement(element) {
- {
- if (element) {
- var owner = element._owner;
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
- } else {
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
- }
- }
- }
-
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
- {
- // $FlowFixMe This is okay but Flow doesn't know it.
- var has = Function.call.bind(hasOwnProperty);
-
- for (var typeSpecName in typeSpecs) {
- if (has(typeSpecs, typeSpecName)) {
- var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
- // fail the render phase where it didn't fail before. So we log it.
- // After these have been cleaned up, we'll let them throw.
-
- try {
- // This is intentionally an invariant that gets caught. It's the same
- // behavior as without this statement except with a better message.
- if (typeof typeSpecs[typeSpecName] !== 'function') {
- // eslint-disable-next-line react-internal/prod-error-codes
- var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
- err.name = 'Invariant Violation';
- throw err;
- }
-
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
- } catch (ex) {
- error$1 = ex;
- }
-
- if (error$1 && !(error$1 instanceof Error)) {
- setCurrentlyValidatingElement(element);
-
- error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
-
- setCurrentlyValidatingElement(null);
- }
-
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
- // Only monitor this failure once because there tends to be a lot of the
- // same error.
- loggedTypeFailures[error$1.message] = true;
- setCurrentlyValidatingElement(element);
-
- error('Failed %s type: %s', location, error$1.message);
-
- setCurrentlyValidatingElement(null);
- }
- }
- }
- }
- }
-
- var valueStack = [];
- var fiberStack;
-
- {
- fiberStack = [];
- }
-
- var index = -1;
-
- function createCursor(defaultValue) {
- return {
- current: defaultValue
- };
- }
-
- function pop(cursor, fiber) {
- if (index < 0) {
- {
- error('Unexpected pop.');
- }
-
- return;
- }
-
- {
- if (fiber !== fiberStack[index]) {
- error('Unexpected Fiber popped.');
- }
- }
-
- cursor.current = valueStack[index];
- valueStack[index] = null;
-
- {
- fiberStack[index] = null;
- }
-
- index--;
- }
-
- function push(cursor, value, fiber) {
- index++;
- valueStack[index] = cursor.current;
-
- {
- fiberStack[index] = fiber;
- }
-
- cursor.current = value;
- }
-
- var warnedAboutMissingGetChildContext;
-
- {
- warnedAboutMissingGetChildContext = {};
- }
-
- var emptyContextObject = {};
-
- {
- Object.freeze(emptyContextObject);
- } // A cursor to the current merged context object on the stack.
-
-
- var contextStackCursor = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed.
-
- var didPerformWorkStackCursor = createCursor(false); // Keep track of the previous context object that was on the stack.
- // We use this to get access to the parent context after we have already
- // pushed the next context provider, and now need to merge their contexts.
-
- var previousContext = emptyContextObject;
-
- function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
- {
- if (didPushOwnContextIfProvider && isContextProvider(Component)) {
- // If the fiber is a context provider itself, when we read its context
- // we may have already pushed its own child context on the stack. A context
- // provider should not "see" its own child context. Therefore we read the
- // previous (parent) context instead for a context provider.
- return previousContext;
- }
-
- return contextStackCursor.current;
- }
- }
-
- function cacheContext(workInProgress, unmaskedContext, maskedContext) {
- {
- var instance = workInProgress.stateNode;
- instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
- instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
- }
- }
-
- function getMaskedContext(workInProgress, unmaskedContext) {
- {
- var type = workInProgress.type;
- var contextTypes = type.contextTypes;
-
- if (!contextTypes) {
- return emptyContextObject;
- } // Avoid recreating masked context unless unmasked context has changed.
- // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
- // This may trigger infinite loops if componentWillReceiveProps calls setState.
-
-
- var instance = workInProgress.stateNode;
-
- if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
- return instance.__reactInternalMemoizedMaskedChildContext;
- }
-
- var context = {};
-
- for (var key in contextTypes) {
- context[key] = unmaskedContext[key];
- }
-
- {
- var name = getComponentNameFromFiber(workInProgress) || 'Unknown';
- checkPropTypes(contextTypes, context, 'context', name);
- } // Cache unmasked context so we can avoid recreating masked context unless necessary.
- // Context is created before the class component is instantiated so check for instance.
-
-
- if (instance) {
- cacheContext(workInProgress, unmaskedContext, context);
- }
-
- return context;
- }
- }
-
- function hasContextChanged() {
- {
- return didPerformWorkStackCursor.current;
- }
- }
-
- function isContextProvider(type) {
- {
- var childContextTypes = type.childContextTypes;
- return childContextTypes !== null && childContextTypes !== undefined;
- }
- }
-
- function popContext(fiber) {
- {
- pop(didPerformWorkStackCursor, fiber);
- pop(contextStackCursor, fiber);
- }
- }
-
- function popTopLevelContextObject(fiber) {
- {
- pop(didPerformWorkStackCursor, fiber);
- pop(contextStackCursor, fiber);
- }
- }
-
- function pushTopLevelContextObject(fiber, context, didChange) {
- {
- if (contextStackCursor.current !== emptyContextObject) {
- throw new Error('Unexpected context found on stack. ' + 'This error is likely caused by a bug in React. Please file an issue.');
- }
-
- push(contextStackCursor, context, fiber);
- push(didPerformWorkStackCursor, didChange, fiber);
- }
- }
-
- function processChildContext(fiber, type, parentContext) {
- {
- var instance = fiber.stateNode;
- var childContextTypes = type.childContextTypes; // TODO (bvaughn) Replace this behavior with an invariant() in the future.
- // It has only been added in Fiber to match the (unintentional) behavior in Stack.
-
- if (typeof instance.getChildContext !== 'function') {
- {
- var componentName = getComponentNameFromFiber(fiber) || 'Unknown';
-
- if (!warnedAboutMissingGetChildContext[componentName]) {
- warnedAboutMissingGetChildContext[componentName] = true;
-
- error('%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
- }
- }
-
- return parentContext;
- }
-
- var childContext = instance.getChildContext();
-
- for (var contextKey in childContext) {
- if (!(contextKey in childContextTypes)) {
- throw new Error((getComponentNameFromFiber(fiber) || 'Unknown') + ".getChildContext(): key \"" + contextKey + "\" is not defined in childContextTypes.");
- }
- }
-
- {
- var name = getComponentNameFromFiber(fiber) || 'Unknown';
- checkPropTypes(childContextTypes, childContext, 'child context', name);
- }
-
- return assign({}, parentContext, childContext);
- }
- }
-
- function pushContextProvider(workInProgress) {
- {
- var instance = workInProgress.stateNode; // We push the context as early as possible to ensure stack integrity.
- // If the instance does not exist yet, we will push null at first,
- // and replace it on the stack later when invalidating the context.
-
- var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; // Remember the parent context so we can merge with it later.
- // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
-
- previousContext = contextStackCursor.current;
- push(contextStackCursor, memoizedMergedChildContext, workInProgress);
- push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
- return true;
- }
- }
-
- function invalidateContextProvider(workInProgress, type, didChange) {
- {
- var instance = workInProgress.stateNode;
-
- if (!instance) {
- throw new Error('Expected to have an instance by this point. ' + 'This error is likely caused by a bug in React. Please file an issue.');
- }
-
- if (didChange) {
- // Merge parent and own context.
- // Skip this if we're not updating due to sCU.
- // This avoids unnecessarily recomputing memoized values.
- var mergedContext = processChildContext(workInProgress, type, previousContext);
- instance.__reactInternalMemoizedMergedChildContext = mergedContext; // Replace the old (or empty) context with the new one.
- // It is important to unwind the context in the reverse order.
-
- pop(didPerformWorkStackCursor, workInProgress);
- pop(contextStackCursor, workInProgress); // Now push the new context and mark that it has changed.
-
- push(contextStackCursor, mergedContext, workInProgress);
- push(didPerformWorkStackCursor, didChange, workInProgress);
- } else {
- pop(didPerformWorkStackCursor, workInProgress);
- push(didPerformWorkStackCursor, didChange, workInProgress);
- }
- }
- }
-
- function findCurrentUnmaskedContext(fiber) {
- {
- // Currently this is only used with renderSubtreeIntoContainer; not sure if it
- // makes sense elsewhere
- if (!isFiberMounted(fiber) || fiber.tag !== ClassComponent) {
- throw new Error('Expected subtree parent to be a mounted class component. ' + 'This error is likely caused by a bug in React. Please file an issue.');
- }
-
- var node = fiber;
-
- do {
- switch (node.tag) {
- case HostRoot:
- return node.stateNode.context;
-
- case ClassComponent:
- {
- var Component = node.type;
-
- if (isContextProvider(Component)) {
- return node.stateNode.__reactInternalMemoizedMergedChildContext;
- }
-
- break;
- }
- }
-
- node = node.return;
- } while (node !== null);
-
- throw new Error('Found unexpected detached subtree parent. ' + 'This error is likely caused by a bug in React. Please file an issue.');
- }
- }
-
- var LegacyRoot = 0;
- var ConcurrentRoot = 1;
-
- var syncQueue = null;
- var includesLegacySyncCallbacks = false;
- var isFlushingSyncQueue = false;
- function scheduleSyncCallback(callback) {
- // Push this callback into an internal queue. We'll flush these either in
- // the next tick, or earlier if something calls `flushSyncCallbackQueue`.
- if (syncQueue === null) {
- syncQueue = [callback];
- } else {
- // Push onto existing queue. Don't need to schedule a callback because
- // we already scheduled one when we created the queue.
- syncQueue.push(callback);
- }
- }
- function scheduleLegacySyncCallback(callback) {
- includesLegacySyncCallbacks = true;
- scheduleSyncCallback(callback);
- }
- function flushSyncCallbacksOnlyInLegacyMode() {
- // Only flushes the queue if there's a legacy sync callback scheduled.
- // TODO: There's only a single type of callback: performSyncOnWorkOnRoot. So
- // it might make more sense for the queue to be a list of roots instead of a
- // list of generic callbacks. Then we can have two: one for legacy roots, one
- // for concurrent roots. And this method would only flush the legacy ones.
- if (includesLegacySyncCallbacks) {
- flushSyncCallbacks();
- }
- }
- function flushSyncCallbacks() {
- if (!isFlushingSyncQueue && syncQueue !== null) {
- // Prevent re-entrance.
- isFlushingSyncQueue = true;
- var i = 0;
- var previousUpdatePriority = getCurrentUpdatePriority();
-
- try {
- var isSync = true;
- var queue = syncQueue; // TODO: Is this necessary anymore? The only user code that runs in this
- // queue is in the render or commit phases.
-
- setCurrentUpdatePriority(DiscreteEventPriority);
-
- for (; i < queue.length; i++) {
- var callback = queue[i];
-
- do {
- callback = callback(isSync);
- } while (callback !== null);
- }
-
- syncQueue = null;
- includesLegacySyncCallbacks = false;
- } catch (error) {
- // If something throws, leave the remaining callbacks on the queue.
- if (syncQueue !== null) {
- syncQueue = syncQueue.slice(i + 1);
- } // Resume flushing in the next tick
-
-
- scheduleCallback(ImmediatePriority, flushSyncCallbacks);
- throw error;
- } finally {
- setCurrentUpdatePriority(previousUpdatePriority);
- isFlushingSyncQueue = false;
- }
- }
-
- return null;
- }
-
- // TODO: Use the unified fiber stack module instead of this local one?
- // Intentionally not using it yet to derisk the initial implementation, because
- // the way we push/pop these values is a bit unusual. If there's a mistake, I'd
- // rather the ids be wrong than crash the whole reconciler.
- var forkStack = [];
- var forkStackIndex = 0;
- var treeForkProvider = null;
- var treeForkCount = 0;
- var idStack = [];
- var idStackIndex = 0;
- var treeContextProvider = null;
- var treeContextId = 1;
- var treeContextOverflow = '';
- function isForkedChild(workInProgress) {
- warnIfNotHydrating();
- return (workInProgress.flags & Forked) !== NoFlags;
- }
- function getForksAtLevel(workInProgress) {
- warnIfNotHydrating();
- return treeForkCount;
- }
- function getTreeId() {
- var overflow = treeContextOverflow;
- var idWithLeadingBit = treeContextId;
- var id = idWithLeadingBit & ~getLeadingBit(idWithLeadingBit);
- return id.toString(32) + overflow;
- }
- function pushTreeFork(workInProgress, totalChildren) {
- // This is called right after we reconcile an array (or iterator) of child
- // fibers, because that's the only place where we know how many children in
- // the whole set without doing extra work later, or storing addtional
- // information on the fiber.
- //
- // That's why this function is separate from pushTreeId — it's called during
- // the render phase of the fork parent, not the child, which is where we push
- // the other context values.
- //
- // In the Fizz implementation this is much simpler because the child is
- // rendered in the same callstack as the parent.
- //
- // It might be better to just add a `forks` field to the Fiber type. It would
- // make this module simpler.
- warnIfNotHydrating();
- forkStack[forkStackIndex++] = treeForkCount;
- forkStack[forkStackIndex++] = treeForkProvider;
- treeForkProvider = workInProgress;
- treeForkCount = totalChildren;
- }
- function pushTreeId(workInProgress, totalChildren, index) {
- warnIfNotHydrating();
- idStack[idStackIndex++] = treeContextId;
- idStack[idStackIndex++] = treeContextOverflow;
- idStack[idStackIndex++] = treeContextProvider;
- treeContextProvider = workInProgress;
- var baseIdWithLeadingBit = treeContextId;
- var baseOverflow = treeContextOverflow; // The leftmost 1 marks the end of the sequence, non-inclusive. It's not part
- // of the id; we use it to account for leading 0s.
-
- var baseLength = getBitLength(baseIdWithLeadingBit) - 1;
- var baseId = baseIdWithLeadingBit & ~(1 << baseLength);
- var slot = index + 1;
- var length = getBitLength(totalChildren) + baseLength; // 30 is the max length we can store without overflowing, taking into
- // consideration the leading 1 we use to mark the end of the sequence.
-
- if (length > 30) {
- // We overflowed the bitwise-safe range. Fall back to slower algorithm.
- // This branch assumes the length of the base id is greater than 5; it won't
- // work for smaller ids, because you need 5 bits per character.
- //
- // We encode the id in multiple steps: first the base id, then the
- // remaining digits.
- //
- // Each 5 bit sequence corresponds to a single base 32 character. So for
- // example, if the current id is 23 bits long, we can convert 20 of those
- // bits into a string of 4 characters, with 3 bits left over.
- //
- // First calculate how many bits in the base id represent a complete
- // sequence of characters.
- var numberOfOverflowBits = baseLength - baseLength % 5; // Then create a bitmask that selects only those bits.
-
- var newOverflowBits = (1 << numberOfOverflowBits) - 1; // Select the bits, and convert them to a base 32 string.
-
- var newOverflow = (baseId & newOverflowBits).toString(32); // Now we can remove those bits from the base id.
-
- var restOfBaseId = baseId >> numberOfOverflowBits;
- var restOfBaseLength = baseLength - numberOfOverflowBits; // Finally, encode the rest of the bits using the normal algorithm. Because
- // we made more room, this time it won't overflow.
-
- var restOfLength = getBitLength(totalChildren) + restOfBaseLength;
- var restOfNewBits = slot << restOfBaseLength;
- var id = restOfNewBits | restOfBaseId;
- var overflow = newOverflow + baseOverflow;
- treeContextId = 1 << restOfLength | id;
- treeContextOverflow = overflow;
- } else {
- // Normal path
- var newBits = slot << baseLength;
-
- var _id = newBits | baseId;
-
- var _overflow = baseOverflow;
- treeContextId = 1 << length | _id;
- treeContextOverflow = _overflow;
- }
- }
- function pushMaterializedTreeId(workInProgress) {
- warnIfNotHydrating(); // This component materialized an id. This will affect any ids that appear
- // in its children.
-
- var returnFiber = workInProgress.return;
-
- if (returnFiber !== null) {
- var numberOfForks = 1;
- var slotIndex = 0;
- pushTreeFork(workInProgress, numberOfForks);
- pushTreeId(workInProgress, numberOfForks, slotIndex);
- }
- }
-
- function getBitLength(number) {
- return 32 - clz32(number);
- }
-
- function getLeadingBit(id) {
- return 1 << getBitLength(id) - 1;
- }
-
- function popTreeContext(workInProgress) {
- // Restore the previous values.
- // This is a bit more complicated than other context-like modules in Fiber
- // because the same Fiber may appear on the stack multiple times and for
- // different reasons. We have to keep popping until the work-in-progress is
- // no longer at the top of the stack.
- while (workInProgress === treeForkProvider) {
- treeForkProvider = forkStack[--forkStackIndex];
- forkStack[forkStackIndex] = null;
- treeForkCount = forkStack[--forkStackIndex];
- forkStack[forkStackIndex] = null;
- }
-
- while (workInProgress === treeContextProvider) {
- treeContextProvider = idStack[--idStackIndex];
- idStack[idStackIndex] = null;
- treeContextOverflow = idStack[--idStackIndex];
- idStack[idStackIndex] = null;
- treeContextId = idStack[--idStackIndex];
- idStack[idStackIndex] = null;
- }
- }
- function getSuspendedTreeContext() {
- warnIfNotHydrating();
-
- if (treeContextProvider !== null) {
- return {
- id: treeContextId,
- overflow: treeContextOverflow
- };
- } else {
- return null;
- }
- }
- function restoreSuspendedTreeContext(workInProgress, suspendedContext) {
- warnIfNotHydrating();
- idStack[idStackIndex++] = treeContextId;
- idStack[idStackIndex++] = treeContextOverflow;
- idStack[idStackIndex++] = treeContextProvider;
- treeContextId = suspendedContext.id;
- treeContextOverflow = suspendedContext.overflow;
- treeContextProvider = workInProgress;
- }
-
- function warnIfNotHydrating() {
- {
- if (!getIsHydrating()) {
- error('Expected to be hydrating. This is a bug in React. Please file ' + 'an issue.');
- }
- }
- }
-
- // This may have been an insertion or a hydration.
-
- var hydrationParentFiber = null;
- var nextHydratableInstance = null;
- var isHydrating = false; // This flag allows for warning supression when we expect there to be mismatches
- // due to earlier mismatches or a suspended fiber.
-
- var didSuspendOrErrorDEV = false; // Hydration errors that were thrown inside this boundary
-
- var hydrationErrors = null;
-
- function warnIfHydrating() {
- {
- if (isHydrating) {
- error('We should not be hydrating here. This is a bug in React. Please file a bug.');
- }
- }
- }
-
- function markDidThrowWhileHydratingDEV() {
- {
- didSuspendOrErrorDEV = true;
- }
- }
- function didSuspendOrErrorWhileHydratingDEV() {
- {
- return didSuspendOrErrorDEV;
- }
- }
-
- function enterHydrationState(fiber) {
-
- var parentInstance = fiber.stateNode.containerInfo;
- nextHydratableInstance = getFirstHydratableChildWithinContainer(parentInstance);
- hydrationParentFiber = fiber;
- isHydrating = true;
- hydrationErrors = null;
- didSuspendOrErrorDEV = false;
- return true;
- }
-
- function reenterHydrationStateFromDehydratedSuspenseInstance(fiber, suspenseInstance, treeContext) {
-
- nextHydratableInstance = getFirstHydratableChildWithinSuspenseInstance(suspenseInstance);
- hydrationParentFiber = fiber;
- isHydrating = true;
- hydrationErrors = null;
- didSuspendOrErrorDEV = false;
-
- if (treeContext !== null) {
- restoreSuspendedTreeContext(fiber, treeContext);
- }
-
- return true;
- }
-
- function warnUnhydratedInstance(returnFiber, instance) {
- {
- switch (returnFiber.tag) {
- case HostRoot:
- {
- didNotHydrateInstanceWithinContainer(returnFiber.stateNode.containerInfo, instance);
- break;
- }
-
- case HostComponent:
- {
- var isConcurrentMode = (returnFiber.mode & ConcurrentMode) !== NoMode;
- didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance, // TODO: Delete this argument when we remove the legacy root API.
- isConcurrentMode);
- break;
- }
-
- case SuspenseComponent:
- {
- var suspenseState = returnFiber.memoizedState;
- if (suspenseState.dehydrated !== null) didNotHydrateInstanceWithinSuspenseInstance(suspenseState.dehydrated, instance);
- break;
- }
- }
- }
- }
-
- function deleteHydratableInstance(returnFiber, instance) {
- warnUnhydratedInstance(returnFiber, instance);
- var childToDelete = createFiberFromHostInstanceForDeletion();
- childToDelete.stateNode = instance;
- childToDelete.return = returnFiber;
- var deletions = returnFiber.deletions;
-
- if (deletions === null) {
- returnFiber.deletions = [childToDelete];
- returnFiber.flags |= ChildDeletion;
- } else {
- deletions.push(childToDelete);
- }
- }
-
- function warnNonhydratedInstance(returnFiber, fiber) {
- {
- if (didSuspendOrErrorDEV) {
- // Inside a boundary that already suspended. We're currently rendering the
- // siblings of a suspended node. The mismatch may be due to the missing
- // data, so it's probably a false positive.
- return;
- }
-
- switch (returnFiber.tag) {
- case HostRoot:
- {
- var parentContainer = returnFiber.stateNode.containerInfo;
-
- switch (fiber.tag) {
- case HostComponent:
- var type = fiber.type;
- var props = fiber.pendingProps;
- didNotFindHydratableInstanceWithinContainer(parentContainer, type);
- break;
-
- case HostText:
- var text = fiber.pendingProps;
- didNotFindHydratableTextInstanceWithinContainer(parentContainer, text);
- break;
- }
-
- break;
- }
-
- case HostComponent:
- {
- var parentType = returnFiber.type;
- var parentProps = returnFiber.memoizedProps;
- var parentInstance = returnFiber.stateNode;
-
- switch (fiber.tag) {
- case HostComponent:
- {
- var _type = fiber.type;
- var _props = fiber.pendingProps;
- var isConcurrentMode = (returnFiber.mode & ConcurrentMode) !== NoMode;
- didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props, // TODO: Delete this argument when we remove the legacy root API.
- isConcurrentMode);
- break;
- }
-
- case HostText:
- {
- var _text = fiber.pendingProps;
-
- var _isConcurrentMode = (returnFiber.mode & ConcurrentMode) !== NoMode;
-
- didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text, // TODO: Delete this argument when we remove the legacy root API.
- _isConcurrentMode);
- break;
- }
- }
-
- break;
- }
-
- case SuspenseComponent:
- {
- var suspenseState = returnFiber.memoizedState;
- var _parentInstance = suspenseState.dehydrated;
- if (_parentInstance !== null) switch (fiber.tag) {
- case HostComponent:
- var _type2 = fiber.type;
- var _props2 = fiber.pendingProps;
- didNotFindHydratableInstanceWithinSuspenseInstance(_parentInstance, _type2);
- break;
-
- case HostText:
- var _text2 = fiber.pendingProps;
- didNotFindHydratableTextInstanceWithinSuspenseInstance(_parentInstance, _text2);
- break;
- }
- break;
- }
-
- default:
- return;
- }
- }
- }
-
- function insertNonHydratedInstance(returnFiber, fiber) {
- fiber.flags = fiber.flags & ~Hydrating | Placement;
- warnNonhydratedInstance(returnFiber, fiber);
- }
-
- function tryHydrate(fiber, nextInstance) {
- switch (fiber.tag) {
- case HostComponent:
- {
- var type = fiber.type;
- var props = fiber.pendingProps;
- var instance = canHydrateInstance(nextInstance, type);
-
- if (instance !== null) {
- fiber.stateNode = instance;
- hydrationParentFiber = fiber;
- nextHydratableInstance = getFirstHydratableChild(instance);
- return true;
- }
-
- return false;
- }
-
- case HostText:
- {
- var text = fiber.pendingProps;
- var textInstance = canHydrateTextInstance(nextInstance, text);
-
- if (textInstance !== null) {
- fiber.stateNode = textInstance;
- hydrationParentFiber = fiber; // Text Instances don't have children so there's nothing to hydrate.
-
- nextHydratableInstance = null;
- return true;
- }
-
- return false;
- }
-
- case SuspenseComponent:
- {
- var suspenseInstance = canHydrateSuspenseInstance(nextInstance);
-
- if (suspenseInstance !== null) {
- var suspenseState = {
- dehydrated: suspenseInstance,
- treeContext: getSuspendedTreeContext(),
- retryLane: OffscreenLane
- };
- fiber.memoizedState = suspenseState; // Store the dehydrated fragment as a child fiber.
- // This simplifies the code for getHostSibling and deleting nodes,
- // since it doesn't have to consider all Suspense boundaries and
- // check if they're dehydrated ones or not.
-
- var dehydratedFragment = createFiberFromDehydratedFragment(suspenseInstance);
- dehydratedFragment.return = fiber;
- fiber.child = dehydratedFragment;
- hydrationParentFiber = fiber; // While a Suspense Instance does have children, we won't step into
- // it during the first pass. Instead, we'll reenter it later.
-
- nextHydratableInstance = null;
- return true;
- }
-
- return false;
- }
-
- default:
- return false;
- }
- }
-
- function shouldClientRenderOnMismatch(fiber) {
- return (fiber.mode & ConcurrentMode) !== NoMode && (fiber.flags & DidCapture) === NoFlags;
- }
-
- function throwOnHydrationMismatch(fiber) {
- throw new Error('Hydration failed because the initial UI does not match what was ' + 'rendered on the server.');
- }
-
- function tryToClaimNextHydratableInstance(fiber) {
- if (!isHydrating) {
- return;
- }
-
- var nextInstance = nextHydratableInstance;
-
- if (!nextInstance) {
- if (shouldClientRenderOnMismatch(fiber)) {
- warnNonhydratedInstance(hydrationParentFiber, fiber);
- throwOnHydrationMismatch();
- } // Nothing to hydrate. Make it an insertion.
-
-
- insertNonHydratedInstance(hydrationParentFiber, fiber);
- isHydrating = false;
- hydrationParentFiber = fiber;
- return;
- }
-
- var firstAttemptedInstance = nextInstance;
-
- if (!tryHydrate(fiber, nextInstance)) {
- if (shouldClientRenderOnMismatch(fiber)) {
- warnNonhydratedInstance(hydrationParentFiber, fiber);
- throwOnHydrationMismatch();
- } // If we can't hydrate this instance let's try the next one.
- // We use this as a heuristic. It's based on intuition and not data so it
- // might be flawed or unnecessary.
-
-
- nextInstance = getNextHydratableSibling(firstAttemptedInstance);
- var prevHydrationParentFiber = hydrationParentFiber;
-
- if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
- // Nothing to hydrate. Make it an insertion.
- insertNonHydratedInstance(hydrationParentFiber, fiber);
- isHydrating = false;
- hydrationParentFiber = fiber;
- return;
- } // We matched the next one, we'll now assume that the first one was
- // superfluous and we'll delete it. Since we can't eagerly delete it
- // we'll have to schedule a deletion. To do that, this node needs a dummy
- // fiber associated with it.
-
-
- deleteHydratableInstance(prevHydrationParentFiber, firstAttemptedInstance);
- }
- }
-
- function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
-
- var instance = fiber.stateNode;
- var shouldWarnIfMismatchDev = !didSuspendOrErrorDEV;
- var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber, shouldWarnIfMismatchDev); // TODO: Type this specific to this type of component.
-
- fiber.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there
- // is a new ref we mark this as an update.
-
- if (updatePayload !== null) {
- return true;
- }
-
- return false;
- }
-
- function prepareToHydrateHostTextInstance(fiber) {
-
- var textInstance = fiber.stateNode;
- var textContent = fiber.memoizedProps;
- var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);
-
- if (shouldUpdate) {
- // We assume that prepareToHydrateHostTextInstance is called in a context where the
- // hydration parent is the parent host component of this host text.
- var returnFiber = hydrationParentFiber;
-
- if (returnFiber !== null) {
- switch (returnFiber.tag) {
- case HostRoot:
- {
- var parentContainer = returnFiber.stateNode.containerInfo;
- var isConcurrentMode = (returnFiber.mode & ConcurrentMode) !== NoMode;
- didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent, // TODO: Delete this argument when we remove the legacy root API.
- isConcurrentMode);
- break;
- }
-
- case HostComponent:
- {
- var parentType = returnFiber.type;
- var parentProps = returnFiber.memoizedProps;
- var parentInstance = returnFiber.stateNode;
-
- var _isConcurrentMode2 = (returnFiber.mode & ConcurrentMode) !== NoMode;
-
- didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent, // TODO: Delete this argument when we remove the legacy root API.
- _isConcurrentMode2);
- break;
- }
- }
- }
- }
-
- return shouldUpdate;
- }
-
- function prepareToHydrateHostSuspenseInstance(fiber) {
-
- var suspenseState = fiber.memoizedState;
- var suspenseInstance = suspenseState !== null ? suspenseState.dehydrated : null;
-
- if (!suspenseInstance) {
- throw new Error('Expected to have a hydrated suspense instance. ' + 'This error is likely caused by a bug in React. Please file an issue.');
- }
-
- hydrateSuspenseInstance(suspenseInstance, fiber);
- }
-
- function skipPastDehydratedSuspenseInstance(fiber) {
-
- var suspenseState = fiber.memoizedState;
- var suspenseInstance = suspenseState !== null ? suspenseState.dehydrated : null;
-
- if (!suspenseInstance) {
- throw new Error('Expected to have a hydrated suspense instance. ' + 'This error is likely caused by a bug in React. Please file an issue.');
- }
-
- return getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);
- }
-
- function popToNextHostParent(fiber) {
- var parent = fiber.return;
-
- while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== SuspenseComponent) {
- parent = parent.return;
- }
-
- hydrationParentFiber = parent;
- }
-
- function popHydrationState(fiber) {
-
- if (fiber !== hydrationParentFiber) {
- // We're deeper than the current hydration context, inside an inserted
- // tree.
- return false;
- }
-
- if (!isHydrating) {
- // If we're not currently hydrating but we're in a hydration context, then
- // we were an insertion and now need to pop up reenter hydration of our
- // siblings.
- popToNextHostParent(fiber);
- isHydrating = true;
- return false;
- } // If we have any remaining hydratable nodes, we need to delete them now.
- // We only do this deeper than head and body since they tend to have random
- // other nodes in them. We also ignore components with pure text content in
- // side of them. We also don't delete anything inside the root container.
-
-
- if (fiber.tag !== HostRoot && (fiber.tag !== HostComponent || shouldDeleteUnhydratedTailInstances(fiber.type) && !shouldSetTextContent(fiber.type, fiber.memoizedProps))) {
- var nextInstance = nextHydratableInstance;
-
- if (nextInstance) {
- if (shouldClientRenderOnMismatch(fiber)) {
- warnIfUnhydratedTailNodes(fiber);
- throwOnHydrationMismatch();
- } else {
- while (nextInstance) {
- deleteHydratableInstance(fiber, nextInstance);
- nextInstance = getNextHydratableSibling(nextInstance);
- }
- }
- }
- }
-
- popToNextHostParent(fiber);
-
- if (fiber.tag === SuspenseComponent) {
- nextHydratableInstance = skipPastDehydratedSuspenseInstance(fiber);
- } else {
- nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
- }
-
- return true;
- }
-
- function hasUnhydratedTailNodes() {
- return isHydrating && nextHydratableInstance !== null;
- }
-
- function warnIfUnhydratedTailNodes(fiber) {
- var nextInstance = nextHydratableInstance;
-
- while (nextInstance) {
- warnUnhydratedInstance(fiber, nextInstance);
- nextInstance = getNextHydratableSibling(nextInstance);
- }
- }
-
- function resetHydrationState() {
-
- hydrationParentFiber = null;
- nextHydratableInstance = null;
- isHydrating = false;
- didSuspendOrErrorDEV = false;
- }
-
- function upgradeHydrationErrorsToRecoverable() {
- if (hydrationErrors !== null) {
- // Successfully completed a forced client render. The errors that occurred
- // during the hydration attempt are now recovered. We will log them in
- // commit phase, once the entire tree has finished.
- queueRecoverableErrors(hydrationErrors);
- hydrationErrors = null;
- }
- }
-
- function getIsHydrating() {
- return isHydrating;
- }
-
- function queueHydrationError(error) {
- if (hydrationErrors === null) {
- hydrationErrors = [error];
- } else {
- hydrationErrors.push(error);
- }
- }
-
- var ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig;
- var NoTransition = null;
- function requestCurrentTransition() {
- return ReactCurrentBatchConfig$1.transition;
- }
-
- var ReactStrictModeWarnings = {
- recordUnsafeLifecycleWarnings: function (fiber, instance) {},
- flushPendingUnsafeLifecycleWarnings: function () {},
- recordLegacyContextWarning: function (fiber, instance) {},
- flushLegacyContextWarning: function () {},
- discardPendingWarnings: function () {}
- };
-
- {
- var findStrictRoot = function (fiber) {
- var maybeStrictRoot = null;
- var node = fiber;
-
- while (node !== null) {
- if (node.mode & StrictLegacyMode) {
- maybeStrictRoot = node;
- }
-
- node = node.return;
- }
-
- return maybeStrictRoot;
- };
-
- var setToSortedString = function (set) {
- var array = [];
- set.forEach(function (value) {
- array.push(value);
- });
- return array.sort().join(', ');
- };
-
- var pendingComponentWillMountWarnings = [];
- var pendingUNSAFE_ComponentWillMountWarnings = [];
- var pendingComponentWillReceivePropsWarnings = [];
- var pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
- var pendingComponentWillUpdateWarnings = [];
- var pendingUNSAFE_ComponentWillUpdateWarnings = []; // Tracks components we have already warned about.
-
- var didWarnAboutUnsafeLifecycles = new Set();
-
- ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
- // Dedupe strategy: Warn once per component.
- if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
- return;
- }
-
- if (typeof instance.componentWillMount === 'function' && // Don't warn about react-lifecycles-compat polyfilled components.
- instance.componentWillMount.__suppressDeprecationWarning !== true) {
- pendingComponentWillMountWarnings.push(fiber);
- }
-
- if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillMount === 'function') {
- pendingUNSAFE_ComponentWillMountWarnings.push(fiber);
- }
-
- if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
- pendingComponentWillReceivePropsWarnings.push(fiber);
- }
-
- if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
- pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber);
- }
-
- if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
- pendingComponentWillUpdateWarnings.push(fiber);
- }
-
- if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillUpdate === 'function') {
- pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber);
- }
- };
-
- ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
- // We do an initial pass to gather component names
- var componentWillMountUniqueNames = new Set();
-
- if (pendingComponentWillMountWarnings.length > 0) {
- pendingComponentWillMountWarnings.forEach(function (fiber) {
- componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');
- didWarnAboutUnsafeLifecycles.add(fiber.type);
- });
- pendingComponentWillMountWarnings = [];
- }
-
- var UNSAFE_componentWillMountUniqueNames = new Set();
-
- if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) {
- pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) {
- UNSAFE_componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');
- didWarnAboutUnsafeLifecycles.add(fiber.type);
- });
- pendingUNSAFE_ComponentWillMountWarnings = [];
- }
-
- var componentWillReceivePropsUniqueNames = new Set();
-
- if (pendingComponentWillReceivePropsWarnings.length > 0) {
- pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
- componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');
- didWarnAboutUnsafeLifecycles.add(fiber.type);
- });
- pendingComponentWillReceivePropsWarnings = [];
- }
-
- var UNSAFE_componentWillReceivePropsUniqueNames = new Set();
-
- if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) {
- pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) {
- UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');
- didWarnAboutUnsafeLifecycles.add(fiber.type);
- });
- pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
- }
-
- var componentWillUpdateUniqueNames = new Set();
-
- if (pendingComponentWillUpdateWarnings.length > 0) {
- pendingComponentWillUpdateWarnings.forEach(function (fiber) {
- componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');
- didWarnAboutUnsafeLifecycles.add(fiber.type);
- });
- pendingComponentWillUpdateWarnings = [];
- }
-
- var UNSAFE_componentWillUpdateUniqueNames = new Set();
-
- if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) {
- pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) {
- UNSAFE_componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');
- didWarnAboutUnsafeLifecycles.add(fiber.type);
- });
- pendingUNSAFE_ComponentWillUpdateWarnings = [];
- } // Finally, we flush all the warnings
- // UNSAFE_ ones before the deprecated ones, since they'll be 'louder'
-
-
- if (UNSAFE_componentWillMountUniqueNames.size > 0) {
- var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames);
-
- error('Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '\nPlease update the following components: %s', sortedNames);
- }
-
- if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) {
- var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);
-
- error('Using UNSAFE_componentWillReceiveProps in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, " + 'refactor your code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n' + '\nPlease update the following components: %s', _sortedNames);
- }
-
- if (UNSAFE_componentWillUpdateUniqueNames.size > 0) {
- var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames);
-
- error('Using UNSAFE_componentWillUpdate in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '\nPlease update the following components: %s', _sortedNames2);
- }
-
- if (componentWillMountUniqueNames.size > 0) {
- var _sortedNames3 = setToSortedString(componentWillMountUniqueNames);
-
- warn('componentWillMount has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '* Rename componentWillMount to UNSAFE_componentWillMount to suppress ' + 'this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames3);
- }
-
- if (componentWillReceivePropsUniqueNames.size > 0) {
- var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames);
-
- warn('componentWillReceiveProps has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, refactor your " + 'code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n' + '* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress ' + 'this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames4);
- }
-
- if (componentWillUpdateUniqueNames.size > 0) {
- var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames);
-
- warn('componentWillUpdate has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress ' + 'this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames5);
- }
- };
-
- var pendingLegacyContextWarning = new Map(); // Tracks components we have already warned about.
-
- var didWarnAboutLegacyContext = new Set();
-
- ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
- var strictRoot = findStrictRoot(fiber);
-
- if (strictRoot === null) {
- error('Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');
-
- return;
- } // Dedup strategy: Warn once per component.
-
-
- if (didWarnAboutLegacyContext.has(fiber.type)) {
- return;
- }
-
- var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
-
- if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
- if (warningsForRoot === undefined) {
- warningsForRoot = [];
- pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
- }
-
- warningsForRoot.push(fiber);
- }
- };
-
- ReactStrictModeWarnings.flushLegacyContextWarning = function () {
- pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
- if (fiberArray.length === 0) {
- return;
- }
-
- var firstFiber = fiberArray[0];
- var uniqueNames = new Set();
- fiberArray.forEach(function (fiber) {
- uniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');
- didWarnAboutLegacyContext.add(fiber.type);
- });
- var sortedNames = setToSortedString(uniqueNames);
-
- try {
- setCurrentFiber(firstFiber);
-
- error('Legacy context API has been detected within a strict-mode tree.' + '\n\nThe old API will be supported in all 16.x releases, but applications ' + 'using it should migrate to the new version.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context', sortedNames);
- } finally {
- resetCurrentFiber();
- }
- });
- };
-
- ReactStrictModeWarnings.discardPendingWarnings = function () {
- pendingComponentWillMountWarnings = [];
- pendingUNSAFE_ComponentWillMountWarnings = [];
- pendingComponentWillReceivePropsWarnings = [];
- pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
- pendingComponentWillUpdateWarnings = [];
- pendingUNSAFE_ComponentWillUpdateWarnings = [];
- pendingLegacyContextWarning = new Map();
- };
- }
-
- function resolveDefaultProps(Component, baseProps) {
- if (Component && Component.defaultProps) {
- // Resolve default props. Taken from ReactElement
- var props = assign({}, baseProps);
- var defaultProps = Component.defaultProps;
-
- for (var propName in defaultProps) {
- if (props[propName] === undefined) {
- props[propName] = defaultProps[propName];
- }
- }
-
- return props;
- }
-
- return baseProps;
- }
-
- var valueCursor = createCursor(null);
- var rendererSigil;
-
- {
- // Use this to detect multiple renderers using the same context
- rendererSigil = {};
- }
-
- var currentlyRenderingFiber = null;
- var lastContextDependency = null;
- var lastFullyObservedContext = null;
- var isDisallowedContextReadInDEV = false;
- function resetContextDependencies() {
- // This is called right before React yields execution, to ensure `readContext`
- // cannot be called outside the render phase.
- currentlyRenderingFiber = null;
- lastContextDependency = null;
- lastFullyObservedContext = null;
-
- {
- isDisallowedContextReadInDEV = false;
- }
- }
- function enterDisallowedContextReadInDEV() {
- {
- isDisallowedContextReadInDEV = true;
- }
- }
- function exitDisallowedContextReadInDEV() {
- {
- isDisallowedContextReadInDEV = false;
- }
- }
- function pushProvider(providerFiber, context, nextValue) {
- {
- push(valueCursor, context._currentValue, providerFiber);
- context._currentValue = nextValue;
-
- {
- if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) {
- error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');
- }
-
- context._currentRenderer = rendererSigil;
- }
- }
- }
- function popProvider(context, providerFiber) {
- var currentValue = valueCursor.current;
- pop(valueCursor, providerFiber);
-
- {
- {
- context._currentValue = currentValue;
- }
- }
- }
- function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) {
- // Update the child lanes of all the ancestors, including the alternates.
- var node = parent;
-
- while (node !== null) {
- var alternate = node.alternate;
-
- if (!isSubsetOfLanes(node.childLanes, renderLanes)) {
- node.childLanes = mergeLanes(node.childLanes, renderLanes);
-
- if (alternate !== null) {
- alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes);
- }
- } else if (alternate !== null && !isSubsetOfLanes(alternate.childLanes, renderLanes)) {
- alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes);
- }
-
- if (node === propagationRoot) {
- break;
- }
-
- node = node.return;
- }
-
- {
- if (node !== propagationRoot) {
- error('Expected to find the propagation root when scheduling context work. ' + 'This error is likely caused by a bug in React. Please file an issue.');
- }
- }
- }
- function propagateContextChange(workInProgress, context, renderLanes) {
- {
- propagateContextChange_eager(workInProgress, context, renderLanes);
- }
- }
-
- function propagateContextChange_eager(workInProgress, context, renderLanes) {
-
- var fiber = workInProgress.child;
-
- if (fiber !== null) {
- // Set the return pointer of the child to the work-in-progress fiber.
- fiber.return = workInProgress;
- }
-
- while (fiber !== null) {
- var nextFiber = void 0; // Visit this fiber.
-
- var list = fiber.dependencies;
-
- if (list !== null) {
- nextFiber = fiber.child;
- var dependency = list.firstContext;
-
- while (dependency !== null) {
- // Check if the context matches.
- if (dependency.context === context) {
- // Match! Schedule an update on this fiber.
- if (fiber.tag === ClassComponent) {
- // Schedule a force update on the work-in-progress.
- var lane = pickArbitraryLane(renderLanes);
- var update = createUpdate(NoTimestamp, lane);
- update.tag = ForceUpdate; // TODO: Because we don't have a work-in-progress, this will add the
- // update to the current fiber, too, which means it will persist even if
- // this render is thrown away. Since it's a race condition, not sure it's
- // worth fixing.
- // Inlined `enqueueUpdate` to remove interleaved update check
-
- var updateQueue = fiber.updateQueue;
-
- if (updateQueue === null) ; else {
- var sharedQueue = updateQueue.shared;
- var pending = sharedQueue.pending;
-
- if (pending === null) {
- // This is the first update. Create a circular list.
- update.next = update;
- } else {
- update.next = pending.next;
- pending.next = update;
- }
-
- sharedQueue.pending = update;
- }
- }
-
- fiber.lanes = mergeLanes(fiber.lanes, renderLanes);
- var alternate = fiber.alternate;
-
- if (alternate !== null) {
- alternate.lanes = mergeLanes(alternate.lanes, renderLanes);
- }
-
- scheduleContextWorkOnParentPath(fiber.return, renderLanes, workInProgress); // Mark the updated lanes on the list, too.
-
- list.lanes = mergeLanes(list.lanes, renderLanes); // Since we already found a match, we can stop traversing the
- // dependency list.
-
- break;
- }
-
- dependency = dependency.next;
- }
- } else if (fiber.tag === ContextProvider) {
- // Don't scan deeper if this is a matching provider
- nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
- } else if (fiber.tag === DehydratedFragment) {
- // If a dehydrated suspense boundary is in this subtree, we don't know
- // if it will have any context consumers in it. The best we can do is
- // mark it as having updates.
- var parentSuspense = fiber.return;
-
- if (parentSuspense === null) {
- throw new Error('We just came from a parent so we must have had a parent. This is a bug in React.');
- }
-
- parentSuspense.lanes = mergeLanes(parentSuspense.lanes, renderLanes);
- var _alternate = parentSuspense.alternate;
-
- if (_alternate !== null) {
- _alternate.lanes = mergeLanes(_alternate.lanes, renderLanes);
- } // This is intentionally passing this fiber as the parent
- // because we want to schedule this fiber as having work
- // on its children. We'll use the childLanes on
- // this fiber to indicate that a context has changed.
-
-
- scheduleContextWorkOnParentPath(parentSuspense, renderLanes, workInProgress);
- nextFiber = fiber.sibling;
- } else {
- // Traverse down.
- nextFiber = fiber.child;
- }
-
- if (nextFiber !== null) {
- // Set the return pointer of the child to the work-in-progress fiber.
- nextFiber.return = fiber;
- } else {
- // No child. Traverse to next sibling.
- nextFiber = fiber;
-
- while (nextFiber !== null) {
- if (nextFiber === workInProgress) {
- // We're back to the root of this subtree. Exit.
- nextFiber = null;
- break;
- }
-
- var sibling = nextFiber.sibling;
-
- if (sibling !== null) {
- // Set the return pointer of the sibling to the work-in-progress fiber.
- sibling.return = nextFiber.return;
- nextFiber = sibling;
- break;
- } // No more siblings. Traverse up.
-
-
- nextFiber = nextFiber.return;
- }
- }
-
- fiber = nextFiber;
- }
- }
- function prepareToReadContext(workInProgress, renderLanes) {
- currentlyRenderingFiber = workInProgress;
- lastContextDependency = null;
- lastFullyObservedContext = null;
- var dependencies = workInProgress.dependencies;
-
- if (dependencies !== null) {
- {
- var firstContext = dependencies.firstContext;
-
- if (firstContext !== null) {
- if (includesSomeLane(dependencies.lanes, renderLanes)) {
- // Context list has a pending update. Mark that this fiber performed work.
- markWorkInProgressReceivedUpdate();
- } // Reset the work-in-progress list
-
-
- dependencies.firstContext = null;
- }
- }
- }
- }
- function readContext(context) {
- {
- // This warning would fire if you read context inside a Hook like useMemo.
- // Unlike the class check below, it's not enforced in production for perf.
- if (isDisallowedContextReadInDEV) {
- error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
- }
- }
-
- var value = context._currentValue ;
-
- if (lastFullyObservedContext === context) ; else {
- var contextItem = {
- context: context,
- memoizedValue: value,
- next: null
- };
-
- if (lastContextDependency === null) {
- if (currentlyRenderingFiber === null) {
- throw new Error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
- } // This is the first dependency for this component. Create a new list.
-
-
- lastContextDependency = contextItem;
- currentlyRenderingFiber.dependencies = {
- lanes: NoLanes,
- firstContext: contextItem
- };
- } else {
- // Append a new context item.
- lastContextDependency = lastContextDependency.next = contextItem;
- }
- }
-
- return value;
- }
-
- // render. When this render exits, either because it finishes or because it is
- // interrupted, the interleaved updates will be transferred onto the main part
- // of the queue.
-
- var concurrentQueues = null;
- function pushConcurrentUpdateQueue(queue) {
- if (concurrentQueues === null) {
- concurrentQueues = [queue];
- } else {
- concurrentQueues.push(queue);
- }
- }
- function finishQueueingConcurrentUpdates() {
- // Transfer the interleaved updates onto the main queue. Each queue has a
- // `pending` field and an `interleaved` field. When they are not null, they
- // point to the last node in a circular linked list. We need to append the
- // interleaved list to the end of the pending list by joining them into a
- // single, circular list.
- if (concurrentQueues !== null) {
- for (var i = 0; i < concurrentQueues.length; i++) {
- var queue = concurrentQueues[i];
- var lastInterleavedUpdate = queue.interleaved;
-
- if (lastInterleavedUpdate !== null) {
- queue.interleaved = null;
- var firstInterleavedUpdate = lastInterleavedUpdate.next;
- var lastPendingUpdate = queue.pending;
-
- if (lastPendingUpdate !== null) {
- var firstPendingUpdate = lastPendingUpdate.next;
- lastPendingUpdate.next = firstInterleavedUpdate;
- lastInterleavedUpdate.next = firstPendingUpdate;
- }
-
- queue.pending = lastInterleavedUpdate;
- }
- }
-
- concurrentQueues = null;
- }
- }
- function enqueueConcurrentHookUpdate(fiber, queue, update, lane) {
- var interleaved = queue.interleaved;
-
- if (interleaved === null) {
- // This is the first update. Create a circular list.
- update.next = update; // At the end of the current render, this queue's interleaved updates will
- // be transferred to the pending queue.
-
- pushConcurrentUpdateQueue(queue);
- } else {
- update.next = interleaved.next;
- interleaved.next = update;
- }
-
- queue.interleaved = update;
- return markUpdateLaneFromFiberToRoot(fiber, lane);
- }
- function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update, lane) {
- var interleaved = queue.interleaved;
-
- if (interleaved === null) {
- // This is the first update. Create a circular list.
- update.next = update; // At the end of the current render, this queue's interleaved updates will
- // be transferred to the pending queue.
-
- pushConcurrentUpdateQueue(queue);
- } else {
- update.next = interleaved.next;
- interleaved.next = update;
- }
-
- queue.interleaved = update;
- }
- function enqueueConcurrentClassUpdate(fiber, queue, update, lane) {
- var interleaved = queue.interleaved;
-
- if (interleaved === null) {
- // This is the first update. Create a circular list.
- update.next = update; // At the end of the current render, this queue's interleaved updates will
- // be transferred to the pending queue.
-
- pushConcurrentUpdateQueue(queue);
- } else {
- update.next = interleaved.next;
- interleaved.next = update;
- }
-
- queue.interleaved = update;
- return markUpdateLaneFromFiberToRoot(fiber, lane);
- }
- function enqueueConcurrentRenderForLane(fiber, lane) {
- return markUpdateLaneFromFiberToRoot(fiber, lane);
- } // Calling this function outside this module should only be done for backwards
- // compatibility and should always be accompanied by a warning.
-
- var unsafe_markUpdateLaneFromFiberToRoot = markUpdateLaneFromFiberToRoot;
-
- function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
- // Update the source fiber's lanes
- sourceFiber.lanes = mergeLanes(sourceFiber.lanes, lane);
- var alternate = sourceFiber.alternate;
-
- if (alternate !== null) {
- alternate.lanes = mergeLanes(alternate.lanes, lane);
- }
-
- {
- if (alternate === null && (sourceFiber.flags & (Placement | Hydrating)) !== NoFlags) {
- warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
- }
- } // Walk the parent path to the root and update the child lanes.
-
-
- var node = sourceFiber;
- var parent = sourceFiber.return;
-
- while (parent !== null) {
- parent.childLanes = mergeLanes(parent.childLanes, lane);
- alternate = parent.alternate;
-
- if (alternate !== null) {
- alternate.childLanes = mergeLanes(alternate.childLanes, lane);
- } else {
- {
- if ((parent.flags & (Placement | Hydrating)) !== NoFlags) {
- warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
- }
- }
- }
-
- node = parent;
- parent = parent.return;
- }
-
- if (node.tag === HostRoot) {
- var root = node.stateNode;
- return root;
- } else {
- return null;
- }
- }
-
- var UpdateState = 0;
- var ReplaceState = 1;
- var ForceUpdate = 2;
- var CaptureUpdate = 3; // Global state that is reset at the beginning of calling `processUpdateQueue`.
- // It should only be read right after calling `processUpdateQueue`, via
- // `checkHasForceUpdateAfterProcessing`.
-
- var hasForceUpdate = false;
- var didWarnUpdateInsideUpdate;
- var currentlyProcessingQueue;
-
- {
- didWarnUpdateInsideUpdate = false;
- currentlyProcessingQueue = null;
- }
-
- function initializeUpdateQueue(fiber) {
- var queue = {
- baseState: fiber.memoizedState,
- firstBaseUpdate: null,
- lastBaseUpdate: null,
- shared: {
- pending: null,
- interleaved: null,
- lanes: NoLanes
- },
- effects: null
- };
- fiber.updateQueue = queue;
- }
- function cloneUpdateQueue(current, workInProgress) {
- // Clone the update queue from current. Unless it's already a clone.
- var queue = workInProgress.updateQueue;
- var currentQueue = current.updateQueue;
-
- if (queue === currentQueue) {
- var clone = {
- baseState: currentQueue.baseState,
- firstBaseUpdate: currentQueue.firstBaseUpdate,
- lastBaseUpdate: currentQueue.lastBaseUpdate,
- shared: currentQueue.shared,
- effects: currentQueue.effects
- };
- workInProgress.updateQueue = clone;
- }
- }
- function createUpdate(eventTime, lane) {
- var update = {
- eventTime: eventTime,
- lane: lane,
- tag: UpdateState,
- payload: null,
- callback: null,
- next: null
- };
- return update;
- }
- function enqueueUpdate(fiber, update, lane) {
- var updateQueue = fiber.updateQueue;
-
- if (updateQueue === null) {
- // Only occurs if the fiber has been unmounted.
- return null;
- }
-
- var sharedQueue = updateQueue.shared;
-
- {
- if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) {
- error('An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');
-
- didWarnUpdateInsideUpdate = true;
- }
- }
-
- if (isUnsafeClassRenderPhaseUpdate()) {
- // This is an unsafe render phase update. Add directly to the update
- // queue so we can process it immediately during the current render.
- var pending = sharedQueue.pending;
-
- if (pending === null) {
- // This is the first update. Create a circular list.
- update.next = update;
- } else {
- update.next = pending.next;
- pending.next = update;
- }
-
- sharedQueue.pending = update; // Update the childLanes even though we're most likely already rendering
- // this fiber. This is for backwards compatibility in the case where you
- // update a different component during render phase than the one that is
- // currently renderings (a pattern that is accompanied by a warning).
-
- return unsafe_markUpdateLaneFromFiberToRoot(fiber, lane);
- } else {
- return enqueueConcurrentClassUpdate(fiber, sharedQueue, update, lane);
- }
- }
- function entangleTransitions(root, fiber, lane) {
- var updateQueue = fiber.updateQueue;
-
- if (updateQueue === null) {
- // Only occurs if the fiber has been unmounted.
- return;
- }
-
- var sharedQueue = updateQueue.shared;
-
- if (isTransitionLane(lane)) {
- var queueLanes = sharedQueue.lanes; // If any entangled lanes are no longer pending on the root, then they must
- // have finished. We can remove them from the shared queue, which represents
- // a superset of the actually pending lanes. In some cases we may entangle
- // more than we need to, but that's OK. In fact it's worse if we *don't*
- // entangle when we should.
-
- queueLanes = intersectLanes(queueLanes, root.pendingLanes); // Entangle the new transition lane with the other transition lanes.
-
- var newQueueLanes = mergeLanes(queueLanes, lane);
- sharedQueue.lanes = newQueueLanes; // Even if queue.lanes already include lane, we don't know for certain if
- // the lane finished since the last time we entangled it. So we need to
- // entangle it again, just to be sure.
-
- markRootEntangled(root, newQueueLanes);
- }
- }
- function enqueueCapturedUpdate(workInProgress, capturedUpdate) {
- // Captured updates are updates that are thrown by a child during the render
- // phase. They should be discarded if the render is aborted. Therefore,
- // we should only put them on the work-in-progress queue, not the current one.
- var queue = workInProgress.updateQueue; // Check if the work-in-progress queue is a clone.
-
- var current = workInProgress.alternate;
-
- if (current !== null) {
- var currentQueue = current.updateQueue;
-
- if (queue === currentQueue) {
- // The work-in-progress queue is the same as current. This happens when
- // we bail out on a parent fiber that then captures an error thrown by
- // a child. Since we want to append the update only to the work-in
- // -progress queue, we need to clone the updates. We usually clone during
- // processUpdateQueue, but that didn't happen in this case because we
- // skipped over the parent when we bailed out.
- var newFirst = null;
- var newLast = null;
- var firstBaseUpdate = queue.firstBaseUpdate;
-
- if (firstBaseUpdate !== null) {
- // Loop through the updates and clone them.
- var update = firstBaseUpdate;
-
- do {
- var clone = {
- eventTime: update.eventTime,
- lane: update.lane,
- tag: update.tag,
- payload: update.payload,
- callback: update.callback,
- next: null
- };
-
- if (newLast === null) {
- newFirst = newLast = clone;
- } else {
- newLast.next = clone;
- newLast = clone;
- }
-
- update = update.next;
- } while (update !== null); // Append the captured update the end of the cloned list.
-
-
- if (newLast === null) {
- newFirst = newLast = capturedUpdate;
- } else {
- newLast.next = capturedUpdate;
- newLast = capturedUpdate;
- }
- } else {
- // There are no base updates.
- newFirst = newLast = capturedUpdate;
- }
-
- queue = {
- baseState: currentQueue.baseState,
- firstBaseUpdate: newFirst,
- lastBaseUpdate: newLast,
- shared: currentQueue.shared,
- effects: currentQueue.effects
- };
- workInProgress.updateQueue = queue;
- return;
- }
- } // Append the update to the end of the list.
-
-
- var lastBaseUpdate = queue.lastBaseUpdate;
-
- if (lastBaseUpdate === null) {
- queue.firstBaseUpdate = capturedUpdate;
- } else {
- lastBaseUpdate.next = capturedUpdate;
- }
-
- queue.lastBaseUpdate = capturedUpdate;
- }
-
- function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
- switch (update.tag) {
- case ReplaceState:
- {
- var payload = update.payload;
-
- if (typeof payload === 'function') {
- // Updater function
- {
- enterDisallowedContextReadInDEV();
- }
-
- var nextState = payload.call(instance, prevState, nextProps);
-
- {
- if ( workInProgress.mode & StrictLegacyMode) {
- setIsStrictModeForDevtools(true);
-
- try {
- payload.call(instance, prevState, nextProps);
- } finally {
- setIsStrictModeForDevtools(false);
- }
- }
-
- exitDisallowedContextReadInDEV();
- }
-
- return nextState;
- } // State object
-
-
- return payload;
- }
-
- case CaptureUpdate:
- {
- workInProgress.flags = workInProgress.flags & ~ShouldCapture | DidCapture;
- }
- // Intentional fallthrough
-
- case UpdateState:
- {
- var _payload = update.payload;
- var partialState;
-
- if (typeof _payload === 'function') {
- // Updater function
- {
- enterDisallowedContextReadInDEV();
- }
-
- partialState = _payload.call(instance, prevState, nextProps);
-
- {
- if ( workInProgress.mode & StrictLegacyMode) {
- setIsStrictModeForDevtools(true);
-
- try {
- _payload.call(instance, prevState, nextProps);
- } finally {
- setIsStrictModeForDevtools(false);
- }
- }
-
- exitDisallowedContextReadInDEV();
- }
- } else {
- // Partial state object
- partialState = _payload;
- }
-
- if (partialState === null || partialState === undefined) {
- // Null and undefined are treated as no-ops.
- return prevState;
- } // Merge the partial state and the previous state.
-
-
- return assign({}, prevState, partialState);
- }
-
- case ForceUpdate:
- {
- hasForceUpdate = true;
- return prevState;
- }
- }
-
- return prevState;
- }
-
- function processUpdateQueue(workInProgress, props, instance, renderLanes) {
- // This is always non-null on a ClassComponent or HostRoot
- var queue = workInProgress.updateQueue;
- hasForceUpdate = false;
-
- {
- currentlyProcessingQueue = queue.shared;
- }
-
- var firstBaseUpdate = queue.firstBaseUpdate;
- var lastBaseUpdate = queue.lastBaseUpdate; // Check if there are pending updates. If so, transfer them to the base queue.
-
- var pendingQueue = queue.shared.pending;
-
- if (pendingQueue !== null) {
- queue.shared.pending = null; // The pending queue is circular. Disconnect the pointer between first
- // and last so that it's non-circular.
-
- var lastPendingUpdate = pendingQueue;
- var firstPendingUpdate = lastPendingUpdate.next;
- lastPendingUpdate.next = null; // Append pending updates to base queue
-
- if (lastBaseUpdate === null) {
- firstBaseUpdate = firstPendingUpdate;
- } else {
- lastBaseUpdate.next = firstPendingUpdate;
- }
-
- lastBaseUpdate = lastPendingUpdate; // If there's a current queue, and it's different from the base queue, then
- // we need to transfer the updates to that queue, too. Because the base
- // queue is a singly-linked list with no cycles, we can append to both
- // lists and take advantage of structural sharing.
- // TODO: Pass `current` as argument
-
- var current = workInProgress.alternate;
-
- if (current !== null) {
- // This is always non-null on a ClassComponent or HostRoot
- var currentQueue = current.updateQueue;
- var currentLastBaseUpdate = currentQueue.lastBaseUpdate;
-
- if (currentLastBaseUpdate !== lastBaseUpdate) {
- if (currentLastBaseUpdate === null) {
- currentQueue.firstBaseUpdate = firstPendingUpdate;
- } else {
- currentLastBaseUpdate.next = firstPendingUpdate;
- }
-
- currentQueue.lastBaseUpdate = lastPendingUpdate;
- }
- }
- } // These values may change as we process the queue.
-
-
- if (firstBaseUpdate !== null) {
- // Iterate through the list of updates to compute the result.
- var newState = queue.baseState; // TODO: Don't need to accumulate this. Instead, we can remove renderLanes
- // from the original lanes.
-
- var newLanes = NoLanes;
- var newBaseState = null;
- var newFirstBaseUpdate = null;
- var newLastBaseUpdate = null;
- var update = firstBaseUpdate;
-
- do {
- var updateLane = update.lane;
- var updateEventTime = update.eventTime;
-
- if (!isSubsetOfLanes(renderLanes, updateLane)) {
- // Priority is insufficient. Skip this update. If this is the first
- // skipped update, the previous update/state is the new base
- // update/state.
- var clone = {
- eventTime: updateEventTime,
- lane: updateLane,
- tag: update.tag,
- payload: update.payload,
- callback: update.callback,
- next: null
- };
-
- if (newLastBaseUpdate === null) {
- newFirstBaseUpdate = newLastBaseUpdate = clone;
- newBaseState = newState;
- } else {
- newLastBaseUpdate = newLastBaseUpdate.next = clone;
- } // Update the remaining priority in the queue.
-
-
- newLanes = mergeLanes(newLanes, updateLane);
- } else {
- // This update does have sufficient priority.
- if (newLastBaseUpdate !== null) {
- var _clone = {
- eventTime: updateEventTime,
- // This update is going to be committed so we never want uncommit
- // it. Using NoLane works because 0 is a subset of all bitmasks, so
- // this will never be skipped by the check above.
- lane: NoLane,
- tag: update.tag,
- payload: update.payload,
- callback: update.callback,
- next: null
- };
- newLastBaseUpdate = newLastBaseUpdate.next = _clone;
- } // Process this update.
-
-
- newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance);
- var callback = update.callback;
-
- if (callback !== null && // If the update was already committed, we should not queue its
- // callback again.
- update.lane !== NoLane) {
- workInProgress.flags |= Callback;
- var effects = queue.effects;
-
- if (effects === null) {
- queue.effects = [update];
- } else {
- effects.push(update);
- }
- }
- }
-
- update = update.next;
-
- if (update === null) {
- pendingQueue = queue.shared.pending;
-
- if (pendingQueue === null) {
- break;
- } else {
- // An update was scheduled from inside a reducer. Add the new
- // pending updates to the end of the list and keep processing.
- var _lastPendingUpdate = pendingQueue; // Intentionally unsound. Pending updates form a circular list, but we
- // unravel them when transferring them to the base queue.
-
- var _firstPendingUpdate = _lastPendingUpdate.next;
- _lastPendingUpdate.next = null;
- update = _firstPendingUpdate;
- queue.lastBaseUpdate = _lastPendingUpdate;
- queue.shared.pending = null;
- }
- }
- } while (true);
-
- if (newLastBaseUpdate === null) {
- newBaseState = newState;
- }
-
- queue.baseState = newBaseState;
- queue.firstBaseUpdate = newFirstBaseUpdate;
- queue.lastBaseUpdate = newLastBaseUpdate; // Interleaved updates are stored on a separate queue. We aren't going to
- // process them during this render, but we do need to track which lanes
- // are remaining.
-
- var lastInterleaved = queue.shared.interleaved;
-
- if (lastInterleaved !== null) {
- var interleaved = lastInterleaved;
-
- do {
- newLanes = mergeLanes(newLanes, interleaved.lane);
- interleaved = interleaved.next;
- } while (interleaved !== lastInterleaved);
- } else if (firstBaseUpdate === null) {
- // `queue.lanes` is used for entangling transitions. We can set it back to
- // zero once the queue is empty.
- queue.shared.lanes = NoLanes;
- } // Set the remaining expiration time to be whatever is remaining in the queue.
- // This should be fine because the only two other things that contribute to
- // expiration time are props and context. We're already in the middle of the
- // begin phase by the time we start processing the queue, so we've already
- // dealt with the props. Context in components that specify
- // shouldComponentUpdate is tricky; but we'll have to account for
- // that regardless.
-
-
- markSkippedUpdateLanes(newLanes);
- workInProgress.lanes = newLanes;
- workInProgress.memoizedState = newState;
- }
-
- {
- currentlyProcessingQueue = null;
- }
- }
-
- function callCallback(callback, context) {
- if (typeof callback !== 'function') {
- throw new Error('Invalid argument passed as callback. Expected a function. Instead ' + ("received: " + callback));
- }
-
- callback.call(context);
- }
-
- function resetHasForceUpdateBeforeProcessing() {
- hasForceUpdate = false;
- }
- function checkHasForceUpdateAfterProcessing() {
- return hasForceUpdate;
- }
- function commitUpdateQueue(finishedWork, finishedQueue, instance) {
- // Commit the effects
- var effects = finishedQueue.effects;
- finishedQueue.effects = null;
-
- if (effects !== null) {
- for (var i = 0; i < effects.length; i++) {
- var effect = effects[i];
- var callback = effect.callback;
-
- if (callback !== null) {
- effect.callback = null;
- callCallback(callback, instance);
- }
- }
- }
- }
-
- var fakeInternalInstance = {}; // React.Component uses a shared frozen object by default.
- // We'll use it to determine whether we need to initialize legacy refs.
-
- var emptyRefsObject = new React.Component().refs;
- var didWarnAboutStateAssignmentForComponent;
- var didWarnAboutUninitializedState;
- var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;
- var didWarnAboutLegacyLifecyclesAndDerivedState;
- var didWarnAboutUndefinedDerivedState;
- var warnOnUndefinedDerivedState;
- var warnOnInvalidCallback;
- var didWarnAboutDirectlyAssigningPropsToState;
- var didWarnAboutContextTypeAndContextTypes;
- var didWarnAboutInvalidateContextType;
-
- {
- didWarnAboutStateAssignmentForComponent = new Set();
- didWarnAboutUninitializedState = new Set();
- didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
- didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
- didWarnAboutDirectlyAssigningPropsToState = new Set();
- didWarnAboutUndefinedDerivedState = new Set();
- didWarnAboutContextTypeAndContextTypes = new Set();
- didWarnAboutInvalidateContextType = new Set();
- var didWarnOnInvalidCallback = new Set();
-
- warnOnInvalidCallback = function (callback, callerName) {
- if (callback === null || typeof callback === 'function') {
- return;
- }
-
- var key = callerName + '_' + callback;
-
- if (!didWarnOnInvalidCallback.has(key)) {
- didWarnOnInvalidCallback.add(key);
-
- error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
- }
- };
-
- warnOnUndefinedDerivedState = function (type, partialState) {
- if (partialState === undefined) {
- var componentName = getComponentNameFromType(type) || 'Component';
-
- if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
- didWarnAboutUndefinedDerivedState.add(componentName);
-
- error('%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
- }
- }
- }; // This is so gross but it's at least non-critical and can be removed if
- // it causes problems. This is meant to give a nicer error message for
- // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
- // ...)) which otherwise throws a "_processChildContext is not a function"
- // exception.
-
-
- Object.defineProperty(fakeInternalInstance, '_processChildContext', {
- enumerable: false,
- value: function () {
- throw new Error('_processChildContext is not available in React 16+. This likely ' + 'means you have multiple copies of React and are attempting to nest ' + 'a React 15 tree inside a React 16 tree using ' + "unstable_renderSubtreeIntoContainer, which isn't supported. Try " + 'to make sure you have only one copy of React (and ideally, switch ' + 'to ReactDOM.createPortal).');
- }
- });
- Object.freeze(fakeInternalInstance);
- }
-
- function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
- var prevState = workInProgress.memoizedState;
- var partialState = getDerivedStateFromProps(nextProps, prevState);
-
- {
- if ( workInProgress.mode & StrictLegacyMode) {
- setIsStrictModeForDevtools(true);
-
- try {
- // Invoke the function an extra time to help detect side-effects.
- partialState = getDerivedStateFromProps(nextProps, prevState);
- } finally {
- setIsStrictModeForDevtools(false);
- }
- }
-
- warnOnUndefinedDerivedState(ctor, partialState);
- } // Merge the partial state and the previous state.
-
-
- var memoizedState = partialState === null || partialState === undefined ? prevState : assign({}, prevState, partialState);
- workInProgress.memoizedState = memoizedState; // Once the update queue is empty, persist the derived state onto the
- // base state.
-
- if (workInProgress.lanes === NoLanes) {
- // Queue is always non-null for classes
- var updateQueue = workInProgress.updateQueue;
- updateQueue.baseState = memoizedState;
- }
- }
-
- var classComponentUpdater = {
- isMounted: isMounted,
- enqueueSetState: function (inst, payload, callback) {
- var fiber = get(inst);
- var eventTime = requestEventTime();
- var lane = requestUpdateLane(fiber);
- var update = createUpdate(eventTime, lane);
- update.payload = payload;
-
- if (callback !== undefined && callback !== null) {
- {
- warnOnInvalidCallback(callback, 'setState');
- }
-
- update.callback = callback;
- }
-
- var root = enqueueUpdate(fiber, update, lane);
-
- if (root !== null) {
- scheduleUpdateOnFiber(root, fiber, lane, eventTime);
- entangleTransitions(root, fiber, lane);
- }
-
- {
- markStateUpdateScheduled(fiber, lane);
- }
- },
- enqueueReplaceState: function (inst, payload, callback) {
- var fiber = get(inst);
- var eventTime = requestEventTime();
- var lane = requestUpdateLane(fiber);
- var update = createUpdate(eventTime, lane);
- update.tag = ReplaceState;
- update.payload = payload;
-
- if (callback !== undefined && callback !== null) {
- {
- warnOnInvalidCallback(callback, 'replaceState');
- }
-
- update.callback = callback;
- }
-
- var root = enqueueUpdate(fiber, update, lane);
-
- if (root !== null) {
- scheduleUpdateOnFiber(root, fiber, lane, eventTime);
- entangleTransitions(root, fiber, lane);
- }
-
- {
- markStateUpdateScheduled(fiber, lane);
- }
- },
- enqueueForceUpdate: function (inst, callback) {
- var fiber = get(inst);
- var eventTime = requestEventTime();
- var lane = requestUpdateLane(fiber);
- var update = createUpdate(eventTime, lane);
- update.tag = ForceUpdate;
-
- if (callback !== undefined && callback !== null) {
- {
- warnOnInvalidCallback(callback, 'forceUpdate');
- }
-
- update.callback = callback;
- }
-
- var root = enqueueUpdate(fiber, update, lane);
-
- if (root !== null) {
- scheduleUpdateOnFiber(root, fiber, lane, eventTime);
- entangleTransitions(root, fiber, lane);
- }
-
- {
- markForceUpdateScheduled(fiber, lane);
- }
- }
- };
-
- function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
- var instance = workInProgress.stateNode;
-
- if (typeof instance.shouldComponentUpdate === 'function') {
- var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
-
- {
- if ( workInProgress.mode & StrictLegacyMode) {
- setIsStrictModeForDevtools(true);
-
- try {
- // Invoke the function an extra time to help detect side-effects.
- shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
- } finally {
- setIsStrictModeForDevtools(false);
- }
- }
-
- if (shouldUpdate === undefined) {
- error('%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentNameFromType(ctor) || 'Component');
- }
- }
-
- return shouldUpdate;
- }
-
- if (ctor.prototype && ctor.prototype.isPureReactComponent) {
- return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
- }
-
- return true;
- }
-
- function checkClassInstance(workInProgress, ctor, newProps) {
- var instance = workInProgress.stateNode;
-
- {
- var name = getComponentNameFromType(ctor) || 'Component';
- var renderPresent = instance.render;
-
- if (!renderPresent) {
- if (ctor.prototype && typeof ctor.prototype.render === 'function') {
- error('%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
- } else {
- error('%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
- }
- }
-
- if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) {
- error('getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name);
- }
-
- if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) {
- error('getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name);
- }
-
- if (instance.propTypes) {
- error('propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);
- }
-
- if (instance.contextType) {
- error('contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name);
- }
-
- {
- if (instance.contextTypes) {
- error('contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);
- }
-
- if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
- didWarnAboutContextTypeAndContextTypes.add(ctor);
-
- error('%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
- }
- }
-
- if (typeof instance.componentShouldUpdate === 'function') {
- error('%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name);
- }
-
- if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
- error('%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentNameFromType(ctor) || 'A pure component');
- }
-
- if (typeof instance.componentDidUnmount === 'function') {
- error('%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);
- }
-
- if (typeof instance.componentDidReceiveProps === 'function') {
- error('%s has a method called ' + 'componentDidReceiveProps(). But there is no such lifecycle method. ' + 'If you meant to update the state in response to changing props, ' + 'use componentWillReceiveProps(). If you meant to fetch data or ' + 'run side-effects or mutations after React has updated the UI, use componentDidUpdate().', name);
- }
-
- if (typeof instance.componentWillRecieveProps === 'function') {
- error('%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);
- }
-
- if (typeof instance.UNSAFE_componentWillRecieveProps === 'function') {
- error('%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name);
- }
-
- var hasMutatedProps = instance.props !== newProps;
-
- if (instance.props !== undefined && hasMutatedProps) {
- error('%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name);
- }
-
- if (instance.defaultProps) {
- error('Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name);
- }
-
- if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
- didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
-
- error('%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentNameFromType(ctor));
- }
-
- if (typeof instance.getDerivedStateFromProps === 'function') {
- error('%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
- }
-
- if (typeof instance.getDerivedStateFromError === 'function') {
- error('%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
- }
-
- if (typeof ctor.getSnapshotBeforeUpdate === 'function') {
- error('%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name);
- }
-
- var _state = instance.state;
-
- if (_state && (typeof _state !== 'object' || isArray(_state))) {
- error('%s.state: must be set to an object or null', name);
- }
-
- if (typeof instance.getChildContext === 'function' && typeof ctor.childContextTypes !== 'object') {
- error('%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name);
- }
- }
- }
-
- function adoptClassInstance(workInProgress, instance) {
- instance.updater = classComponentUpdater;
- workInProgress.stateNode = instance; // The instance needs access to the fiber so that it can schedule updates
-
- set(instance, workInProgress);
-
- {
- instance._reactInternalInstance = fakeInternalInstance;
- }
- }
-
- function constructClassInstance(workInProgress, ctor, props) {
- var isLegacyContextConsumer = false;
- var unmaskedContext = emptyContextObject;
- var context = emptyContextObject;
- var contextType = ctor.contextType;
-
- {
- if ('contextType' in ctor) {
- var isValid = // Allow null for conditional declaration
- contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>
-
- if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {
- didWarnAboutInvalidateContextType.add(ctor);
- var addendum = '';
-
- if (contextType === undefined) {
- addendum = ' However, it is set to undefined. ' + 'This can be caused by a typo or by mixing up named and default imports. ' + 'This can also happen due to a circular dependency, so ' + 'try moving the createContext() call to a separate file.';
- } else if (typeof contextType !== 'object') {
- addendum = ' However, it is set to a ' + typeof contextType + '.';
- } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {
- addendum = ' Did you accidentally pass the Context.Provider instead?';
- } else if (contextType._context !== undefined) {
- // <Context.Consumer>
- addendum = ' Did you accidentally pass the Context.Consumer instead?';
- } else {
- addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';
- }
-
- error('%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentNameFromType(ctor) || 'Component', addendum);
- }
- }
- }
-
- if (typeof contextType === 'object' && contextType !== null) {
- context = readContext(contextType);
- } else {
- unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
- var contextTypes = ctor.contextTypes;
- isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
- context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
- }
-
- var instance = new ctor(props, context); // Instantiate twice to help detect side-effects.
-
- {
- if ( workInProgress.mode & StrictLegacyMode) {
- setIsStrictModeForDevtools(true);
-
- try {
- instance = new ctor(props, context); // eslint-disable-line no-new
- } finally {
- setIsStrictModeForDevtools(false);
- }
- }
- }
-
- var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
- adoptClassInstance(workInProgress, instance);
-
- {
- if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
- var componentName = getComponentNameFromType(ctor) || 'Component';
-
- if (!didWarnAboutUninitializedState.has(componentName)) {
- didWarnAboutUninitializedState.add(componentName);
-
- error('`%s` uses `getDerivedStateFromProps` but its initial state is ' + '%s. This is not recommended. Instead, define the initial state by ' + 'assigning an object to `this.state` in the constructor of `%s`. ' + 'This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', componentName, instance.state === null ? 'null' : 'undefined', componentName);
- }
- } // If new component APIs are defined, "unsafe" lifecycles won't be called.
- // Warn about these lifecycles if they are present.
- // Don't warn about react-lifecycles-compat polyfilled methods though.
-
-
- if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
- var foundWillMountName = null;
- var foundWillReceivePropsName = null;
- var foundWillUpdateName = null;
-
- if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
- foundWillMountName = 'componentWillMount';
- } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
- foundWillMountName = 'UNSAFE_componentWillMount';
- }
-
- if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
- foundWillReceivePropsName = 'componentWillReceiveProps';
- } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
- foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
- }
-
- if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
- foundWillUpdateName = 'componentWillUpdate';
- } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
- foundWillUpdateName = 'UNSAFE_componentWillUpdate';
- }
-
- if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
- var _componentName = getComponentNameFromType(ctor) || 'Component';
-
- var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
-
- if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
- didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
-
- error('Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n' + 'The above lifecycles should be removed. Learn more about this warning here:\n' + 'https://reactjs.org/link/unsafe-component-lifecycles', _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : '', foundWillReceivePropsName !== null ? "\n " + foundWillReceivePropsName : '', foundWillUpdateName !== null ? "\n " + foundWillUpdateName : '');
- }
- }
- }
- } // Cache unmasked context so we can avoid recreating masked context unless necessary.
- // ReactFiberContext usually updates this cache but can't for newly-created instances.
-
-
- if (isLegacyContextConsumer) {
- cacheContext(workInProgress, unmaskedContext, context);
- }
-
- return instance;
- }
-
- function callComponentWillMount(workInProgress, instance) {
- var oldState = instance.state;
-
- if (typeof instance.componentWillMount === 'function') {
- instance.componentWillMount();
- }
-
- if (typeof instance.UNSAFE_componentWillMount === 'function') {
- instance.UNSAFE_componentWillMount();
- }
-
- if (oldState !== instance.state) {
- {
- error('%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentNameFromFiber(workInProgress) || 'Component');
- }
-
- classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
- }
- }
-
- function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
- var oldState = instance.state;
-
- if (typeof instance.componentWillReceiveProps === 'function') {
- instance.componentWillReceiveProps(newProps, nextContext);
- }
-
- if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
- instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
- }
-
- if (instance.state !== oldState) {
- {
- var componentName = getComponentNameFromFiber(workInProgress) || 'Component';
-
- if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
- didWarnAboutStateAssignmentForComponent.add(componentName);
-
- error('%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
- }
- }
-
- classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
- }
- } // Invokes the mount life-cycles on a previously never rendered instance.
-
-
- function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
- {
- checkClassInstance(workInProgress, ctor, newProps);
- }
-
- var instance = workInProgress.stateNode;
- instance.props = newProps;
- instance.state = workInProgress.memoizedState;
- instance.refs = emptyRefsObject;
- initializeUpdateQueue(workInProgress);
- var contextType = ctor.contextType;
-
- if (typeof contextType === 'object' && contextType !== null) {
- instance.context = readContext(contextType);
- } else {
- var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
- instance.context = getMaskedContext(workInProgress, unmaskedContext);
- }
-
- {
- if (instance.state === newProps) {
- var componentName = getComponentNameFromType(ctor) || 'Component';
-
- if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
- didWarnAboutDirectlyAssigningPropsToState.add(componentName);
-
- error('%s: It is not recommended to assign props directly to state ' + "because updates to props won't be reflected in state. " + 'In most cases, it is better to use props directly.', componentName);
- }
- }
-
- if (workInProgress.mode & StrictLegacyMode) {
- ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
- }
-
- {
- ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
- }
- }
-
- instance.state = workInProgress.memoizedState;
- var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
-
- if (typeof getDerivedStateFromProps === 'function') {
- applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
- instance.state = workInProgress.memoizedState;
- } // In order to support react-lifecycles-compat polyfilled components,
- // Unsafe lifecycles should not be invoked for components using the new APIs.
-
-
- if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
- callComponentWillMount(workInProgress, instance); // If we had additional state updates during this life-cycle, let's
- // process them now.
-
- processUpdateQueue(workInProgress, newProps, instance, renderLanes);
- instance.state = workInProgress.memoizedState;
- }
-
- if (typeof instance.componentDidMount === 'function') {
- var fiberFlags = Update;
-
- {
- fiberFlags |= LayoutStatic;
- }
-
- if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {
- fiberFlags |= MountLayoutDev;
- }
-
- workInProgress.flags |= fiberFlags;
- }
- }
-
- function resumeMountClassInstance(workInProgress, ctor, newProps, renderLanes) {
- var instance = workInProgress.stateNode;
- var oldProps = workInProgress.memoizedProps;
- instance.props = oldProps;
- var oldContext = instance.context;
- var contextType = ctor.contextType;
- var nextContext = emptyContextObject;
-
- if (typeof contextType === 'object' && contextType !== null) {
- nextContext = readContext(contextType);
- } else {
- var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
- nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
- }
-
- var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
- var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what
- // ever the previously attempted to render - not the "current". However,
- // during componentDidUpdate we pass the "current" props.
- // In order to support react-lifecycles-compat polyfilled components,
- // Unsafe lifecycles should not be invoked for components using the new APIs.
-
- if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
- if (oldProps !== newProps || oldContext !== nextContext) {
- callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
- }
- }
-
- resetHasForceUpdateBeforeProcessing();
- var oldState = workInProgress.memoizedState;
- var newState = instance.state = oldState;
- processUpdateQueue(workInProgress, newProps, instance, renderLanes);
- newState = workInProgress.memoizedState;
-
- if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
- // If an update was already in progress, we should schedule an Update
- // effect even though we're bailing out, so that cWU/cDU are called.
- if (typeof instance.componentDidMount === 'function') {
- var fiberFlags = Update;
-
- {
- fiberFlags |= LayoutStatic;
- }
-
- if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {
- fiberFlags |= MountLayoutDev;
- }
-
- workInProgress.flags |= fiberFlags;
- }
-
- return false;
- }
-
- if (typeof getDerivedStateFromProps === 'function') {
- applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
- newState = workInProgress.memoizedState;
- }
-
- var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
-
- if (shouldUpdate) {
- // In order to support react-lifecycles-compat polyfilled components,
- // Unsafe lifecycles should not be invoked for components using the new APIs.
- if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
- if (typeof instance.componentWillMount === 'function') {
- instance.componentWillMount();
- }
-
- if (typeof instance.UNSAFE_componentWillMount === 'function') {
- instance.UNSAFE_componentWillMount();
- }
- }
-
- if (typeof instance.componentDidMount === 'function') {
- var _fiberFlags = Update;
-
- {
- _fiberFlags |= LayoutStatic;
- }
-
- if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {
- _fiberFlags |= MountLayoutDev;
- }
-
- workInProgress.flags |= _fiberFlags;
- }
- } else {
- // If an update was already in progress, we should schedule an Update
- // effect even though we're bailing out, so that cWU/cDU are called.
- if (typeof instance.componentDidMount === 'function') {
- var _fiberFlags2 = Update;
-
- {
- _fiberFlags2 |= LayoutStatic;
- }
-
- if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {
- _fiberFlags2 |= MountLayoutDev;
- }
-
- workInProgress.flags |= _fiberFlags2;
- } // If shouldComponentUpdate returned false, we should still update the
- // memoized state to indicate that this work can be reused.
-
-
- workInProgress.memoizedProps = newProps;
- workInProgress.memoizedState = newState;
- } // Update the existing instance's state, props, and context pointers even
- // if shouldComponentUpdate returns false.
-
-
- instance.props = newProps;
- instance.state = newState;
- instance.context = nextContext;
- return shouldUpdate;
- } // Invokes the update life-cycles and returns false if it shouldn't rerender.
-
-
- function updateClassInstance(current, workInProgress, ctor, newProps, renderLanes) {
- var instance = workInProgress.stateNode;
- cloneUpdateQueue(current, workInProgress);
- var unresolvedOldProps = workInProgress.memoizedProps;
- var oldProps = workInProgress.type === workInProgress.elementType ? unresolvedOldProps : resolveDefaultProps(workInProgress.type, unresolvedOldProps);
- instance.props = oldProps;
- var unresolvedNewProps = workInProgress.pendingProps;
- var oldContext = instance.context;
- var contextType = ctor.contextType;
- var nextContext = emptyContextObject;
-
- if (typeof contextType === 'object' && contextType !== null) {
- nextContext = readContext(contextType);
- } else {
- var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
- nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
- }
-
- var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
- var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what
- // ever the previously attempted to render - not the "current". However,
- // during componentDidUpdate we pass the "current" props.
- // In order to support react-lifecycles-compat polyfilled components,
- // Unsafe lifecycles should not be invoked for components using the new APIs.
-
- if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
- if (unresolvedOldProps !== unresolvedNewProps || oldContext !== nextContext) {
- callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
- }
- }
-
- resetHasForceUpdateBeforeProcessing();
- var oldState = workInProgress.memoizedState;
- var newState = instance.state = oldState;
- processUpdateQueue(workInProgress, newProps, instance, renderLanes);
- newState = workInProgress.memoizedState;
-
- if (unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing() && !(enableLazyContextPropagation )) {
- // If an update was already in progress, we should schedule an Update
- // effect even though we're bailing out, so that cWU/cDU are called.
- if (typeof instance.componentDidUpdate === 'function') {
- if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
- workInProgress.flags |= Update;
- }
- }
-
- if (typeof instance.getSnapshotBeforeUpdate === 'function') {
- if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
- workInProgress.flags |= Snapshot;
- }
- }
-
- return false;
- }
-
- if (typeof getDerivedStateFromProps === 'function') {
- applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
- newState = workInProgress.memoizedState;
- }
-
- var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) || // TODO: In some cases, we'll end up checking if context has changed twice,
- // both before and after `shouldComponentUpdate` has been called. Not ideal,
- // but I'm loath to refactor this function. This only happens for memoized
- // components so it's not that common.
- enableLazyContextPropagation ;
-
- if (shouldUpdate) {
- // In order to support react-lifecycles-compat polyfilled components,
- // Unsafe lifecycles should not be invoked for components using the new APIs.
- if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
- if (typeof instance.componentWillUpdate === 'function') {
- instance.componentWillUpdate(newProps, newState, nextContext);
- }
-
- if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
- instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
- }
- }
-
- if (typeof instance.componentDidUpdate === 'function') {
- workInProgress.flags |= Update;
- }
-
- if (typeof instance.getSnapshotBeforeUpdate === 'function') {
- workInProgress.flags |= Snapshot;
- }
- } else {
- // If an update was already in progress, we should schedule an Update
- // effect even though we're bailing out, so that cWU/cDU are called.
- if (typeof instance.componentDidUpdate === 'function') {
- if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
- workInProgress.flags |= Update;
- }
- }
-
- if (typeof instance.getSnapshotBeforeUpdate === 'function') {
- if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
- workInProgress.flags |= Snapshot;
- }
- } // If shouldComponentUpdate returned false, we should still update the
- // memoized props/state to indicate that this work can be reused.
-
-
- workInProgress.memoizedProps = newProps;
- workInProgress.memoizedState = newState;
- } // Update the existing instance's state, props, and context pointers even
- // if shouldComponentUpdate returns false.
-
-
- instance.props = newProps;
- instance.state = newState;
- instance.context = nextContext;
- return shouldUpdate;
- }
-
- var didWarnAboutMaps;
- var didWarnAboutGenerators;
- var didWarnAboutStringRefs;
- var ownerHasKeyUseWarning;
- var ownerHasFunctionTypeWarning;
-
- var warnForMissingKey = function (child, returnFiber) {};
-
- {
- didWarnAboutMaps = false;
- didWarnAboutGenerators = false;
- didWarnAboutStringRefs = {};
- /**
- * Warn if there's no key explicitly set on dynamic arrays of children or
- * object keys are not valid. This allows us to keep track of children between
- * updates.
- */
-
- ownerHasKeyUseWarning = {};
- ownerHasFunctionTypeWarning = {};
-
- warnForMissingKey = function (child, returnFiber) {
- if (child === null || typeof child !== 'object') {
- return;
- }
-
- if (!child._store || child._store.validated || child.key != null) {
- return;
- }
-
- if (typeof child._store !== 'object') {
- throw new Error('React Component in warnForMissingKey should have a _store. ' + 'This error is likely caused by a bug in React. Please file an issue.');
- }
-
- child._store.validated = true;
- var componentName = getComponentNameFromFiber(returnFiber) || 'Component';
-
- if (ownerHasKeyUseWarning[componentName]) {
- return;
- }
-
- ownerHasKeyUseWarning[componentName] = true;
-
- error('Each child in a list should have a unique ' + '"key" prop. See https://reactjs.org/link/warning-keys for ' + 'more information.');
- };
- }
-
- function coerceRef(returnFiber, current, element) {
- var mixedRef = element.ref;
-
- if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
- {
- // TODO: Clean this up once we turn on the string ref warning for
- // everyone, because the strict mode case will no longer be relevant
- if ((returnFiber.mode & StrictLegacyMode || warnAboutStringRefs) && // We warn in ReactElement.js if owner and self are equal for string refs
- // because these cannot be automatically converted to an arrow function
- // using a codemod. Therefore, we don't have to warn about string refs again.
- !(element._owner && element._self && element._owner.stateNode !== element._self)) {
- var componentName = getComponentNameFromFiber(returnFiber) || 'Component';
-
- if (!didWarnAboutStringRefs[componentName]) {
- {
- error('A string ref, "%s", has been found within a strict mode tree. ' + 'String refs are a source of potential bugs and should be avoided. ' + 'We recommend using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', mixedRef);
- }
-
- didWarnAboutStringRefs[componentName] = true;
- }
- }
- }
-
- if (element._owner) {
- var owner = element._owner;
- var inst;
-
- if (owner) {
- var ownerFiber = owner;
-
- if (ownerFiber.tag !== ClassComponent) {
- throw new Error('Function components cannot have string refs. ' + 'We recommend using useRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref');
- }
-
- inst = ownerFiber.stateNode;
- }
-
- if (!inst) {
- throw new Error("Missing owner for string ref " + mixedRef + ". This error is likely caused by a " + 'bug in React. Please file an issue.');
- } // Assigning this to a const so Flow knows it won't change in the closure
-
-
- var resolvedInst = inst;
-
- {
- checkPropStringCoercion(mixedRef, 'ref');
- }
-
- var stringRef = '' + mixedRef; // Check if previous string ref matches new string ref
-
- if (current !== null && current.ref !== null && typeof current.ref === 'function' && current.ref._stringRef === stringRef) {
- return current.ref;
- }
-
- var ref = function (value) {
- var refs = resolvedInst.refs;
-
- if (refs === emptyRefsObject) {
- // This is a lazy pooled frozen object, so we need to initialize.
- refs = resolvedInst.refs = {};
- }
-
- if (value === null) {
- delete refs[stringRef];
- } else {
- refs[stringRef] = value;
- }
- };
-
- ref._stringRef = stringRef;
- return ref;
- } else {
- if (typeof mixedRef !== 'string') {
- throw new Error('Expected ref to be a function, a string, an object returned by React.createRef(), or null.');
- }
-
- if (!element._owner) {
- throw new Error("Element ref was specified as a string (" + mixedRef + ") but no owner was set. This could happen for one of" + ' the following reasons:\n' + '1. You may be adding a ref to a function component\n' + "2. You may be adding a ref to a component that was not created inside a component's render method\n" + '3. You have multiple copies of React loaded\n' + 'See https://reactjs.org/link/refs-must-have-owner for more information.');
- }
- }
- }
-
- return mixedRef;
- }
-
- function throwOnInvalidObjectType(returnFiber, newChild) {
- var childString = Object.prototype.toString.call(newChild);
- throw new Error("Objects are not valid as a React child (found: " + (childString === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : childString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.');
- }
-
- function warnOnFunctionType(returnFiber) {
- {
- var componentName = getComponentNameFromFiber(returnFiber) || 'Component';
-
- if (ownerHasFunctionTypeWarning[componentName]) {
- return;
- }
-
- ownerHasFunctionTypeWarning[componentName] = true;
-
- error('Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');
- }
- }
-
- function resolveLazy(lazyType) {
- var payload = lazyType._payload;
- var init = lazyType._init;
- return init(payload);
- } // This wrapper function exists because I expect to clone the code in each path
- // to be able to optimize each path individually by branching early. This needs
- // a compiler or we can do it manually. Helpers that don't need this branching
- // live outside of this function.
-
-
- function ChildReconciler(shouldTrackSideEffects) {
- function deleteChild(returnFiber, childToDelete) {
- if (!shouldTrackSideEffects) {
- // Noop.
- return;
- }
-
- var deletions = returnFiber.deletions;
-
- if (deletions === null) {
- returnFiber.deletions = [childToDelete];
- returnFiber.flags |= ChildDeletion;
- } else {
- deletions.push(childToDelete);
- }
- }
-
- function deleteRemainingChildren(returnFiber, currentFirstChild) {
- if (!shouldTrackSideEffects) {
- // Noop.
- return null;
- } // TODO: For the shouldClone case, this could be micro-optimized a bit by
- // assuming that after the first child we've already added everything.
-
-
- var childToDelete = currentFirstChild;
-
- while (childToDelete !== null) {
- deleteChild(returnFiber, childToDelete);
- childToDelete = childToDelete.sibling;
- }
-
- return null;
- }
-
- function mapRemainingChildren(returnFiber, currentFirstChild) {
- // Add the remaining children to a temporary map so that we can find them by
- // keys quickly. Implicit (null) keys get added to this set with their index
- // instead.
- var existingChildren = new Map();
- var existingChild = currentFirstChild;
-
- while (existingChild !== null) {
- if (existingChild.key !== null) {
- existingChildren.set(existingChild.key, existingChild);
- } else {
- existingChildren.set(existingChild.index, existingChild);
- }
-
- existingChild = existingChild.sibling;
- }
-
- return existingChildren;
- }
-
- function useFiber(fiber, pendingProps) {
- // We currently set sibling to null and index to 0 here because it is easy
- // to forget to do before returning it. E.g. for the single child case.
- var clone = createWorkInProgress(fiber, pendingProps);
- clone.index = 0;
- clone.sibling = null;
- return clone;
- }
-
- function placeChild(newFiber, lastPlacedIndex, newIndex) {
- newFiber.index = newIndex;
-
- if (!shouldTrackSideEffects) {
- // During hydration, the useId algorithm needs to know which fibers are
- // part of a list of children (arrays, iterators).
- newFiber.flags |= Forked;
- return lastPlacedIndex;
- }
-
- var current = newFiber.alternate;
-
- if (current !== null) {
- var oldIndex = current.index;
-
- if (oldIndex < lastPlacedIndex) {
- // This is a move.
- newFiber.flags |= Placement;
- return lastPlacedIndex;
- } else {
- // This item can stay in place.
- return oldIndex;
- }
- } else {
- // This is an insertion.
- newFiber.flags |= Placement;
- return lastPlacedIndex;
- }
- }
-
- function placeSingleChild(newFiber) {
- // This is simpler for the single child case. We only need to do a
- // placement for inserting new children.
- if (shouldTrackSideEffects && newFiber.alternate === null) {
- newFiber.flags |= Placement;
- }
-
- return newFiber;
- }
-
- function updateTextNode(returnFiber, current, textContent, lanes) {
- if (current === null || current.tag !== HostText) {
- // Insert
- var created = createFiberFromText(textContent, returnFiber.mode, lanes);
- created.return = returnFiber;
- return created;
- } else {
- // Update
- var existing = useFiber(current, textContent);
- existing.return = returnFiber;
- return existing;
- }
- }
-
- function updateElement(returnFiber, current, element, lanes) {
- var elementType = element.type;
-
- if (elementType === REACT_FRAGMENT_TYPE) {
- return updateFragment(returnFiber, current, element.props.children, lanes, element.key);
- }
-
- if (current !== null) {
- if (current.elementType === elementType || ( // Keep this check inline so it only runs on the false path:
- isCompatibleFamilyForHotReloading(current, element) ) || // Lazy types should reconcile their resolved type.
- // We need to do this after the Hot Reloading check above,
- // because hot reloading has different semantics than prod because
- // it doesn't resuspend. So we can't let the call below suspend.
- typeof elementType === 'object' && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type) {
- // Move based on index
- var existing = useFiber(current, element.props);
- existing.ref = coerceRef(returnFiber, current, element);
- existing.return = returnFiber;
-
- {
- existing._debugSource = element._source;
- existing._debugOwner = element._owner;
- }
-
- return existing;
- }
- } // Insert
-
-
- var created = createFiberFromElement(element, returnFiber.mode, lanes);
- created.ref = coerceRef(returnFiber, current, element);
- created.return = returnFiber;
- return created;
- }
-
- function updatePortal(returnFiber, current, portal, lanes) {
- if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) {
- // Insert
- var created = createFiberFromPortal(portal, returnFiber.mode, lanes);
- created.return = returnFiber;
- return created;
- } else {
- // Update
- var existing = useFiber(current, portal.children || []);
- existing.return = returnFiber;
- return existing;
- }
- }
-
- function updateFragment(returnFiber, current, fragment, lanes, key) {
- if (current === null || current.tag !== Fragment) {
- // Insert
- var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key);
- created.return = returnFiber;
- return created;
- } else {
- // Update
- var existing = useFiber(current, fragment);
- existing.return = returnFiber;
- return existing;
- }
- }
-
- function createChild(returnFiber, newChild, lanes) {
- if (typeof newChild === 'string' && newChild !== '' || typeof newChild === 'number') {
- // Text nodes don't have keys. If the previous node is implicitly keyed
- // we can continue to replace it without aborting even if it is not a text
- // node.
- var created = createFiberFromText('' + newChild, returnFiber.mode, lanes);
- created.return = returnFiber;
- return created;
- }
-
- if (typeof newChild === 'object' && newChild !== null) {
- switch (newChild.$$typeof) {
- case REACT_ELEMENT_TYPE:
- {
- var _created = createFiberFromElement(newChild, returnFiber.mode, lanes);
-
- _created.ref = coerceRef(returnFiber, null, newChild);
- _created.return = returnFiber;
- return _created;
- }
-
- case REACT_PORTAL_TYPE:
- {
- var _created2 = createFiberFromPortal(newChild, returnFiber.mode, lanes);
-
- _created2.return = returnFiber;
- return _created2;
- }
-
- case REACT_LAZY_TYPE:
- {
- var payload = newChild._payload;
- var init = newChild._init;
- return createChild(returnFiber, init(payload), lanes);
- }
- }
-
- if (isArray(newChild) || getIteratorFn(newChild)) {
- var _created3 = createFiberFromFragment(newChild, returnFiber.mode, lanes, null);
-
- _created3.return = returnFiber;
- return _created3;
- }
-
- throwOnInvalidObjectType(returnFiber, newChild);
- }
-
- {
- if (typeof newChild === 'function') {
- warnOnFunctionType(returnFiber);
- }
- }
-
- return null;
- }
-
- function updateSlot(returnFiber, oldFiber, newChild, lanes) {
- // Update the fiber if the keys match, otherwise return null.
- var key = oldFiber !== null ? oldFiber.key : null;
-
- if (typeof newChild === 'string' && newChild !== '' || typeof newChild === 'number') {
- // Text nodes don't have keys. If the previous node is implicitly keyed
- // we can continue to replace it without aborting even if it is not a text
- // node.
- if (key !== null) {
- return null;
- }
-
- return updateTextNode(returnFiber, oldFiber, '' + newChild, lanes);
- }
-
- if (typeof newChild === 'object' && newChild !== null) {
- switch (newChild.$$typeof) {
- case REACT_ELEMENT_TYPE:
- {
- if (newChild.key === key) {
- return updateElement(returnFiber, oldFiber, newChild, lanes);
- } else {
- return null;
- }
- }
-
- case REACT_PORTAL_TYPE:
- {
- if (newChild.key === key) {
- return updatePortal(returnFiber, oldFiber, newChild, lanes);
- } else {
- return null;
- }
- }
-
- case REACT_LAZY_TYPE:
- {
- var payload = newChild._payload;
- var init = newChild._init;
- return updateSlot(returnFiber, oldFiber, init(payload), lanes);
- }
- }
-
- if (isArray(newChild) || getIteratorFn(newChild)) {
- if (key !== null) {
- return null;
- }
-
- return updateFragment(returnFiber, oldFiber, newChild, lanes, null);
- }
-
- throwOnInvalidObjectType(returnFiber, newChild);
- }
-
- {
- if (typeof newChild === 'function') {
- warnOnFunctionType(returnFiber);
- }
- }
-
- return null;
- }
-
- function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) {
- if (typeof newChild === 'string' && newChild !== '' || typeof newChild === 'number') {
- // Text nodes don't have keys, so we neither have to check the old nor
- // new node for the key. If both are text nodes, they match.
- var matchedFiber = existingChildren.get(newIdx) || null;
- return updateTextNode(returnFiber, matchedFiber, '' + newChild, lanes);
- }
-
- if (typeof newChild === 'object' && newChild !== null) {
- switch (newChild.$$typeof) {
- case REACT_ELEMENT_TYPE:
- {
- var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
-
- return updateElement(returnFiber, _matchedFiber, newChild, lanes);
- }
-
- case REACT_PORTAL_TYPE:
- {
- var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
-
- return updatePortal(returnFiber, _matchedFiber2, newChild, lanes);
- }
-
- case REACT_LAZY_TYPE:
- var payload = newChild._payload;
- var init = newChild._init;
- return updateFromMap(existingChildren, returnFiber, newIdx, init(payload), lanes);
- }
-
- if (isArray(newChild) || getIteratorFn(newChild)) {
- var _matchedFiber3 = existingChildren.get(newIdx) || null;
-
- return updateFragment(returnFiber, _matchedFiber3, newChild, lanes, null);
- }
-
- throwOnInvalidObjectType(returnFiber, newChild);
- }
-
- {
- if (typeof newChild === 'function') {
- warnOnFunctionType(returnFiber);
- }
- }
-
- return null;
- }
- /**
- * Warns if there is a duplicate or missing key
- */
-
-
- function warnOnInvalidKey(child, knownKeys, returnFiber) {
- {
- if (typeof child !== 'object' || child === null) {
- return knownKeys;
- }
-
- switch (child.$$typeof) {
- case REACT_ELEMENT_TYPE:
- case REACT_PORTAL_TYPE:
- warnForMissingKey(child, returnFiber);
- var key = child.key;
-
- if (typeof key !== 'string') {
- break;
- }
-
- if (knownKeys === null) {
- knownKeys = new Set();
- knownKeys.add(key);
- break;
- }
-
- if (!knownKeys.has(key)) {
- knownKeys.add(key);
- break;
- }
-
- error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);
-
- break;
-
- case REACT_LAZY_TYPE:
- var payload = child._payload;
- var init = child._init;
- warnOnInvalidKey(init(payload), knownKeys, returnFiber);
- break;
- }
- }
-
- return knownKeys;
- }
-
- function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) {
- // This algorithm can't optimize by searching from both ends since we
- // don't have backpointers on fibers. I'm trying to see how far we can get
- // with that model. If it ends up not being worth the tradeoffs, we can
- // add it later.
- // Even with a two ended optimization, we'd want to optimize for the case
- // where there are few changes and brute force the comparison instead of
- // going for the Map. It'd like to explore hitting that path first in
- // forward-only mode and only go for the Map once we notice that we need
- // lots of look ahead. This doesn't handle reversal as well as two ended
- // search but that's unusual. Besides, for the two ended optimization to
- // work on Iterables, we'd need to copy the whole set.
- // In this first iteration, we'll just live with hitting the bad case
- // (adding everything to a Map) in for every insert/move.
- // If you change this code, also update reconcileChildrenIterator() which
- // uses the same algorithm.
- {
- // First, validate keys.
- var knownKeys = null;
-
- for (var i = 0; i < newChildren.length; i++) {
- var child = newChildren[i];
- knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber);
- }
- }
-
- var resultingFirstChild = null;
- var previousNewFiber = null;
- var oldFiber = currentFirstChild;
- var lastPlacedIndex = 0;
- var newIdx = 0;
- var nextOldFiber = null;
-
- for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
- if (oldFiber.index > newIdx) {
- nextOldFiber = oldFiber;
- oldFiber = null;
- } else {
- nextOldFiber = oldFiber.sibling;
- }
-
- var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes);
-
- if (newFiber === null) {
- // TODO: This breaks on empty slots like null children. That's
- // unfortunate because it triggers the slow path all the time. We need
- // a better way to communicate whether this was a miss or null,
- // boolean, undefined, etc.
- if (oldFiber === null) {
- oldFiber = nextOldFiber;
- }
-
- break;
- }
-
- if (shouldTrackSideEffects) {
- if (oldFiber && newFiber.alternate === null) {
- // We matched the slot, but we didn't reuse the existing fiber, so we
- // need to delete the existing child.
- deleteChild(returnFiber, oldFiber);
- }
- }
-
- lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
-
- if (previousNewFiber === null) {
- // TODO: Move out of the loop. This only happens for the first run.
- resultingFirstChild = newFiber;
- } else {
- // TODO: Defer siblings if we're not at the right index for this slot.
- // I.e. if we had null values before, then we want to defer this
- // for each null value. However, we also don't want to call updateSlot
- // with the previous one.
- previousNewFiber.sibling = newFiber;
- }
-
- previousNewFiber = newFiber;
- oldFiber = nextOldFiber;
- }
-
- if (newIdx === newChildren.length) {
- // We've reached the end of the new children. We can delete the rest.
- deleteRemainingChildren(returnFiber, oldFiber);
-
- if (getIsHydrating()) {
- var numberOfForks = newIdx;
- pushTreeFork(returnFiber, numberOfForks);
- }
-
- return resultingFirstChild;
- }
-
- if (oldFiber === null) {
- // If we don't have any more existing children we can choose a fast path
- // since the rest will all be insertions.
- for (; newIdx < newChildren.length; newIdx++) {
- var _newFiber = createChild(returnFiber, newChildren[newIdx], lanes);
-
- if (_newFiber === null) {
- continue;
- }
-
- lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);
-
- if (previousNewFiber === null) {
- // TODO: Move out of the loop. This only happens for the first run.
- resultingFirstChild = _newFiber;
- } else {
- previousNewFiber.sibling = _newFiber;
- }
-
- previousNewFiber = _newFiber;
- }
-
- if (getIsHydrating()) {
- var _numberOfForks = newIdx;
- pushTreeFork(returnFiber, _numberOfForks);
- }
-
- return resultingFirstChild;
- } // Add all children to a key map for quick lookups.
-
-
- var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.
-
- for (; newIdx < newChildren.length; newIdx++) {
- var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], lanes);
-
- if (_newFiber2 !== null) {
- if (shouldTrackSideEffects) {
- if (_newFiber2.alternate !== null) {
- // The new fiber is a work in progress, but if there exists a
- // current, that means that we reused the fiber. We need to delete
- // it from the child list so that we don't add it to the deletion
- // list.
- existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
- }
- }
-
- lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);
-
- if (previousNewFiber === null) {
- resultingFirstChild = _newFiber2;
- } else {
- previousNewFiber.sibling = _newFiber2;
- }
-
- previousNewFiber = _newFiber2;
- }
- }
-
- if (shouldTrackSideEffects) {
- // Any existing children that weren't consumed above were deleted. We need
- // to add them to the deletion list.
- existingChildren.forEach(function (child) {
- return deleteChild(returnFiber, child);
- });
- }
-
- if (getIsHydrating()) {
- var _numberOfForks2 = newIdx;
- pushTreeFork(returnFiber, _numberOfForks2);
- }
-
- return resultingFirstChild;
- }
-
- function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) {
- // This is the same implementation as reconcileChildrenArray(),
- // but using the iterator instead.
- var iteratorFn = getIteratorFn(newChildrenIterable);
-
- if (typeof iteratorFn !== 'function') {
- throw new Error('An object is not an iterable. This error is likely caused by a bug in ' + 'React. Please file an issue.');
- }
-
- {
- // We don't support rendering Generators because it's a mutation.
- // See https://github.com/facebook/react/issues/12995
- if (typeof Symbol === 'function' && // $FlowFixMe Flow doesn't know about toStringTag
- newChildrenIterable[Symbol.toStringTag] === 'Generator') {
- if (!didWarnAboutGenerators) {
- error('Using Generators as children is unsupported and will likely yield ' + 'unexpected results because enumerating a generator mutates it. ' + 'You may convert it to an array with `Array.from()` or the ' + '`[...spread]` operator before rendering. Keep in mind ' + 'you might need to polyfill these features for older browsers.');
- }
-
- didWarnAboutGenerators = true;
- } // Warn about using Maps as children
-
-
- if (newChildrenIterable.entries === iteratorFn) {
- if (!didWarnAboutMaps) {
- error('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
- }
-
- didWarnAboutMaps = true;
- } // First, validate keys.
- // We'll get a different iterator later for the main pass.
-
-
- var _newChildren = iteratorFn.call(newChildrenIterable);
-
- if (_newChildren) {
- var knownKeys = null;
-
- var _step = _newChildren.next();
-
- for (; !_step.done; _step = _newChildren.next()) {
- var child = _step.value;
- knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber);
- }
- }
- }
-
- var newChildren = iteratorFn.call(newChildrenIterable);
-
- if (newChildren == null) {
- throw new Error('An iterable object provided no iterator.');
- }
-
- var resultingFirstChild = null;
- var previousNewFiber = null;
- var oldFiber = currentFirstChild;
- var lastPlacedIndex = 0;
- var newIdx = 0;
- var nextOldFiber = null;
- var step = newChildren.next();
-
- for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
- if (oldFiber.index > newIdx) {
- nextOldFiber = oldFiber;
- oldFiber = null;
- } else {
- nextOldFiber = oldFiber.sibling;
- }
-
- var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes);
-
- if (newFiber === null) {
- // TODO: This breaks on empty slots like null children. That's
- // unfortunate because it triggers the slow path all the time. We need
- // a better way to communicate whether this was a miss or null,
- // boolean, undefined, etc.
- if (oldFiber === null) {
- oldFiber = nextOldFiber;
- }
-
- break;
- }
-
- if (shouldTrackSideEffects) {
- if (oldFiber && newFiber.alternate === null) {
- // We matched the slot, but we didn't reuse the existing fiber, so we
- // need to delete the existing child.
- deleteChild(returnFiber, oldFiber);
- }
- }
-
- lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
-
- if (previousNewFiber === null) {
- // TODO: Move out of the loop. This only happens for the first run.
- resultingFirstChild = newFiber;
- } else {
- // TODO: Defer siblings if we're not at the right index for this slot.
- // I.e. if we had null values before, then we want to defer this
- // for each null value. However, we also don't want to call updateSlot
- // with the previous one.
- previousNewFiber.sibling = newFiber;
- }
-
- previousNewFiber = newFiber;
- oldFiber = nextOldFiber;
- }
-
- if (step.done) {
- // We've reached the end of the new children. We can delete the rest.
- deleteRemainingChildren(returnFiber, oldFiber);
-
- if (getIsHydrating()) {
- var numberOfForks = newIdx;
- pushTreeFork(returnFiber, numberOfForks);
- }
-
- return resultingFirstChild;
- }
-
- if (oldFiber === null) {
- // If we don't have any more existing children we can choose a fast path
- // since the rest will all be insertions.
- for (; !step.done; newIdx++, step = newChildren.next()) {
- var _newFiber3 = createChild(returnFiber, step.value, lanes);
-
- if (_newFiber3 === null) {
- continue;
- }
-
- lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);
-
- if (previousNewFiber === null) {
- // TODO: Move out of the loop. This only happens for the first run.
- resultingFirstChild = _newFiber3;
- } else {
- previousNewFiber.sibling = _newFiber3;
- }
-
- previousNewFiber = _newFiber3;
- }
-
- if (getIsHydrating()) {
- var _numberOfForks3 = newIdx;
- pushTreeFork(returnFiber, _numberOfForks3);
- }
-
- return resultingFirstChild;
- } // Add all children to a key map for quick lookups.
-
-
- var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.
-
- for (; !step.done; newIdx++, step = newChildren.next()) {
- var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, lanes);
-
- if (_newFiber4 !== null) {
- if (shouldTrackSideEffects) {
- if (_newFiber4.alternate !== null) {
- // The new fiber is a work in progress, but if there exists a
- // current, that means that we reused the fiber. We need to delete
- // it from the child list so that we don't add it to the deletion
- // list.
- existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
- }
- }
-
- lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);
-
- if (previousNewFiber === null) {
- resultingFirstChild = _newFiber4;
- } else {
- previousNewFiber.sibling = _newFiber4;
- }
-
- previousNewFiber = _newFiber4;
- }
- }
-
- if (shouldTrackSideEffects) {
- // Any existing children that weren't consumed above were deleted. We need
- // to add them to the deletion list.
- existingChildren.forEach(function (child) {
- return deleteChild(returnFiber, child);
- });
- }
-
- if (getIsHydrating()) {
- var _numberOfForks4 = newIdx;
- pushTreeFork(returnFiber, _numberOfForks4);
- }
-
- return resultingFirstChild;
- }
-
- function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, lanes) {
- // There's no need to check for keys on text nodes since we don't have a
- // way to define them.
- if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
- // We already have an existing node so let's just update it and delete
- // the rest.
- deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
- var existing = useFiber(currentFirstChild, textContent);
- existing.return = returnFiber;
- return existing;
- } // The existing first child is not a text node so we need to create one
- // and delete the existing ones.
-
-
- deleteRemainingChildren(returnFiber, currentFirstChild);
- var created = createFiberFromText(textContent, returnFiber.mode, lanes);
- created.return = returnFiber;
- return created;
- }
-
- function reconcileSingleElement(returnFiber, currentFirstChild, element, lanes) {
- var key = element.key;
- var child = currentFirstChild;
-
- while (child !== null) {
- // TODO: If key === null and child.key === null, then this only applies to
- // the first item in the list.
- if (child.key === key) {
- var elementType = element.type;
-
- if (elementType === REACT_FRAGMENT_TYPE) {
- if (child.tag === Fragment) {
- deleteRemainingChildren(returnFiber, child.sibling);
- var existing = useFiber(child, element.props.children);
- existing.return = returnFiber;
-
- {
- existing._debugSource = element._source;
- existing._debugOwner = element._owner;
- }
-
- return existing;
- }
- } else {
- if (child.elementType === elementType || ( // Keep this check inline so it only runs on the false path:
- isCompatibleFamilyForHotReloading(child, element) ) || // Lazy types should reconcile their resolved type.
- // We need to do this after the Hot Reloading check above,
- // because hot reloading has different semantics than prod because
- // it doesn't resuspend. So we can't let the call below suspend.
- typeof elementType === 'object' && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === child.type) {
- deleteRemainingChildren(returnFiber, child.sibling);
-
- var _existing = useFiber(child, element.props);
-
- _existing.ref = coerceRef(returnFiber, child, element);
- _existing.return = returnFiber;
-
- {
- _existing._debugSource = element._source;
- _existing._debugOwner = element._owner;
- }
-
- return _existing;
- }
- } // Didn't match.
-
-
- deleteRemainingChildren(returnFiber, child);
- break;
- } else {
- deleteChild(returnFiber, child);
- }
-
- child = child.sibling;
- }
-
- if (element.type === REACT_FRAGMENT_TYPE) {
- var created = createFiberFromFragment(element.props.children, returnFiber.mode, lanes, element.key);
- created.return = returnFiber;
- return created;
- } else {
- var _created4 = createFiberFromElement(element, returnFiber.mode, lanes);
-
- _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
- _created4.return = returnFiber;
- return _created4;
- }
- }
-
- function reconcileSinglePortal(returnFiber, currentFirstChild, portal, lanes) {
- var key = portal.key;
- var child = currentFirstChild;
-
- while (child !== null) {
- // TODO: If key === null and child.key === null, then this only applies to
- // the first item in the list.
- if (child.key === key) {
- if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
- deleteRemainingChildren(returnFiber, child.sibling);
- var existing = useFiber(child, portal.children || []);
- existing.return = returnFiber;
- return existing;
- } else {
- deleteRemainingChildren(returnFiber, child);
- break;
- }
- } else {
- deleteChild(returnFiber, child);
- }
-
- child = child.sibling;
- }
-
- var created = createFiberFromPortal(portal, returnFiber.mode, lanes);
- created.return = returnFiber;
- return created;
- } // This API will tag the children with the side-effect of the reconciliation
- // itself. They will be added to the side-effect list as we pass through the
- // children and the parent.
-
-
- function reconcileChildFibers(returnFiber, currentFirstChild, newChild, lanes) {
- // This function is not recursive.
- // If the top level item is an array, we treat it as a set of children,
- // not as a fragment. Nested arrays on the other hand will be treated as
- // fragment nodes. Recursion happens at the normal flow.
- // Handle top level unkeyed fragments as if they were arrays.
- // This leads to an ambiguity between <>{[...]}</> and <>...</>.
- // We treat the ambiguous cases above the same.
- var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;
-
- if (isUnkeyedTopLevelFragment) {
- newChild = newChild.props.children;
- } // Handle object types
-
-
- if (typeof newChild === 'object' && newChild !== null) {
- switch (newChild.$$typeof) {
- case REACT_ELEMENT_TYPE:
- return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, lanes));
-
- case REACT_PORTAL_TYPE:
- return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, lanes));
-
- case REACT_LAZY_TYPE:
- var payload = newChild._payload;
- var init = newChild._init; // TODO: This function is supposed to be non-recursive.
-
- return reconcileChildFibers(returnFiber, currentFirstChild, init(payload), lanes);
- }
-
- if (isArray(newChild)) {
- return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes);
- }
-
- if (getIteratorFn(newChild)) {
- return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes);
- }
-
- throwOnInvalidObjectType(returnFiber, newChild);
- }
-
- if (typeof newChild === 'string' && newChild !== '' || typeof newChild === 'number') {
- return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, lanes));
- }
-
- {
- if (typeof newChild === 'function') {
- warnOnFunctionType(returnFiber);
- }
- } // Remaining cases are all treated as empty.
-
-
- return deleteRemainingChildren(returnFiber, currentFirstChild);
- }
-
- return reconcileChildFibers;
- }
-
- var reconcileChildFibers = ChildReconciler(true);
- var mountChildFibers = ChildReconciler(false);
- function cloneChildFibers(current, workInProgress) {
- if (current !== null && workInProgress.child !== current.child) {
- throw new Error('Resuming work not yet implemented.');
- }
-
- if (workInProgress.child === null) {
- return;
- }
-
- var currentChild = workInProgress.child;
- var newChild = createWorkInProgress(currentChild, currentChild.pendingProps);
- workInProgress.child = newChild;
- newChild.return = workInProgress;
-
- while (currentChild.sibling !== null) {
- currentChild = currentChild.sibling;
- newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps);
- newChild.return = workInProgress;
- }
-
- newChild.sibling = null;
- } // Reset a workInProgress child set to prepare it for a second pass.
-
- function resetChildFibers(workInProgress, lanes) {
- var child = workInProgress.child;
-
- while (child !== null) {
- resetWorkInProgress(child, lanes);
- child = child.sibling;
- }
- }
-
- var NO_CONTEXT = {};
- var contextStackCursor$1 = createCursor(NO_CONTEXT);
- var contextFiberStackCursor = createCursor(NO_CONTEXT);
- var rootInstanceStackCursor = createCursor(NO_CONTEXT);
-
- function requiredContext(c) {
- if (c === NO_CONTEXT) {
- throw new Error('Expected host context to exist. This error is likely caused by a bug ' + 'in React. Please file an issue.');
- }
-
- return c;
- }
-
- function getRootHostContainer() {
- var rootInstance = requiredContext(rootInstanceStackCursor.current);
- return rootInstance;
- }
-
- function pushHostContainer(fiber, nextRootInstance) {
- // Push current root instance onto the stack;
- // This allows us to reset root when portals are popped.
- push(rootInstanceStackCursor, nextRootInstance, fiber); // Track the context and the Fiber that provided it.
- // This enables us to pop only Fibers that provide unique contexts.
-
- push(contextFiberStackCursor, fiber, fiber); // Finally, we need to push the host context to the stack.
- // However, we can't just call getRootHostContext() and push it because
- // we'd have a different number of entries on the stack depending on
- // whether getRootHostContext() throws somewhere in renderer code or not.
- // So we push an empty value first. This lets us safely unwind on errors.
-
- push(contextStackCursor$1, NO_CONTEXT, fiber);
- var nextRootContext = getRootHostContext(nextRootInstance); // Now that we know this function doesn't throw, replace it.
-
- pop(contextStackCursor$1, fiber);
- push(contextStackCursor$1, nextRootContext, fiber);
- }
-
- function popHostContainer(fiber) {
- pop(contextStackCursor$1, fiber);
- pop(contextFiberStackCursor, fiber);
- pop(rootInstanceStackCursor, fiber);
- }
-
- function getHostContext() {
- var context = requiredContext(contextStackCursor$1.current);
- return context;
- }
-
- function pushHostContext(fiber) {
- var rootInstance = requiredContext(rootInstanceStackCursor.current);
- var context = requiredContext(contextStackCursor$1.current);
- var nextContext = getChildHostContext(context, fiber.type); // Don't push this Fiber's context unless it's unique.
-
- if (context === nextContext) {
- return;
- } // Track the context and the Fiber that provided it.
- // This enables us to pop only Fibers that provide unique contexts.
-
-
- push(contextFiberStackCursor, fiber, fiber);
- push(contextStackCursor$1, nextContext, fiber);
- }
-
- function popHostContext(fiber) {
- // Do not pop unless this Fiber provided the current context.
- // pushHostContext() only pushes Fibers that provide unique contexts.
- if (contextFiberStackCursor.current !== fiber) {
- return;
- }
-
- pop(contextStackCursor$1, fiber);
- pop(contextFiberStackCursor, fiber);
- }
-
- var DefaultSuspenseContext = 0; // The Suspense Context is split into two parts. The lower bits is
- // inherited deeply down the subtree. The upper bits only affect
- // this immediate suspense boundary and gets reset each new
- // boundary or suspense list.
-
- var SubtreeSuspenseContextMask = 1; // Subtree Flags:
- // InvisibleParentSuspenseContext indicates that one of our parent Suspense
- // boundaries is not currently showing visible main content.
- // Either because it is already showing a fallback or is not mounted at all.
- // We can use this to determine if it is desirable to trigger a fallback at
- // the parent. If not, then we might need to trigger undesirable boundaries
- // and/or suspend the commit to avoid hiding the parent content.
-
- var InvisibleParentSuspenseContext = 1; // Shallow Flags:
- // ForceSuspenseFallback can be used by SuspenseList to force newly added
- // items into their fallback state during one of the render passes.
-
- var ForceSuspenseFallback = 2;
- var suspenseStackCursor = createCursor(DefaultSuspenseContext);
- function hasSuspenseContext(parentContext, flag) {
- return (parentContext & flag) !== 0;
- }
- function setDefaultShallowSuspenseContext(parentContext) {
- return parentContext & SubtreeSuspenseContextMask;
- }
- function setShallowSuspenseContext(parentContext, shallowContext) {
- return parentContext & SubtreeSuspenseContextMask | shallowContext;
- }
- function addSubtreeSuspenseContext(parentContext, subtreeContext) {
- return parentContext | subtreeContext;
- }
- function pushSuspenseContext(fiber, newContext) {
- push(suspenseStackCursor, newContext, fiber);
- }
- function popSuspenseContext(fiber) {
- pop(suspenseStackCursor, fiber);
- }
-
- function shouldCaptureSuspense(workInProgress, hasInvisibleParent) {
- // If it was the primary children that just suspended, capture and render the
- // fallback. Otherwise, don't capture and bubble to the next boundary.
- var nextState = workInProgress.memoizedState;
-
- if (nextState !== null) {
- if (nextState.dehydrated !== null) {
- // A dehydrated boundary always captures.
- return true;
- }
-
- return false;
- }
-
- var props = workInProgress.memoizedProps; // Regular boundaries always capture.
-
- {
- return true;
- } // If it's a boundary we should avoid, then we prefer to bubble up to the
- }
- function findFirstSuspended(row) {
- var node = row;
-
- while (node !== null) {
- if (node.tag === SuspenseComponent) {
- var state = node.memoizedState;
-
- if (state !== null) {
- var dehydrated = state.dehydrated;
-
- if (dehydrated === null || isSuspenseInstancePending(dehydrated) || isSuspenseInstanceFallback(dehydrated)) {
- return node;
- }
- }
- } else if (node.tag === SuspenseListComponent && // revealOrder undefined can't be trusted because it don't
- // keep track of whether it suspended or not.
- node.memoizedProps.revealOrder !== undefined) {
- var didSuspend = (node.flags & DidCapture) !== NoFlags;
-
- if (didSuspend) {
- return node;
- }
- } else if (node.child !== null) {
- node.child.return = node;
- node = node.child;
- continue;
- }
-
- if (node === row) {
- return null;
- }
-
- while (node.sibling === null) {
- if (node.return === null || node.return === row) {
- return null;
- }
-
- node = node.return;
- }
-
- node.sibling.return = node.return;
- node = node.sibling;
- }
-
- return null;
- }
-
- var NoFlags$1 =
- /* */
- 0; // Represents whether effect should fire.
-
- var HasEffect =
- /* */
- 1; // Represents the phase in which the effect (not the clean-up) fires.
-
- var Insertion =
- /* */
- 2;
- var Layout =
- /* */
- 4;
- var Passive$1 =
- /* */
- 8;
-
- // and should be reset before starting a new render.
- // This tracks which mutable sources need to be reset after a render.
-
- var workInProgressSources = [];
- function resetWorkInProgressVersions() {
- for (var i = 0; i < workInProgressSources.length; i++) {
- var mutableSource = workInProgressSources[i];
-
- {
- mutableSource._workInProgressVersionPrimary = null;
- }
- }
-
- workInProgressSources.length = 0;
- }
- // This ensures that the version used for server rendering matches the one
- // that is eventually read during hydration.
- // If they don't match there's a potential tear and a full deopt render is required.
-
- function registerMutableSourceForHydration(root, mutableSource) {
- var getVersion = mutableSource._getVersion;
- var version = getVersion(mutableSource._source); // TODO Clear this data once all pending hydration work is finished.
- // Retaining it forever may interfere with GC.
-
- if (root.mutableSourceEagerHydrationData == null) {
- root.mutableSourceEagerHydrationData = [mutableSource, version];
- } else {
- root.mutableSourceEagerHydrationData.push(mutableSource, version);
- }
- }
-
- var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
- ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig;
- var didWarnAboutMismatchedHooksForComponent;
- var didWarnUncachedGetSnapshot;
-
- {
- didWarnAboutMismatchedHooksForComponent = new Set();
- }
-
- // These are set right before calling the component.
- var renderLanes = NoLanes; // The work-in-progress fiber. I've named it differently to distinguish it from
- // the work-in-progress hook.
-
- var currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The
- // current hook list is the list that belongs to the current fiber. The
- // work-in-progress hook list is a new list that will be added to the
- // work-in-progress fiber.
-
- var currentHook = null;
- var workInProgressHook = null; // Whether an update was scheduled at any point during the render phase. This
- // does not get reset if we do another render pass; only when we're completely
- // finished evaluating this component. This is an optimization so we know
- // whether we need to clear render phase updates after a throw.
-
- var didScheduleRenderPhaseUpdate = false; // Where an update was scheduled only during the current render pass. This
- // gets reset after each attempt.
- // TODO: Maybe there's some way to consolidate this with
- // `didScheduleRenderPhaseUpdate`. Or with `numberOfReRenders`.
-
- var didScheduleRenderPhaseUpdateDuringThisPass = false; // Counts the number of useId hooks in this component.
-
- var localIdCounter = 0; // Used for ids that are generated completely client-side (i.e. not during
- // hydration). This counter is global, so client ids are not stable across
- // render attempts.
-
- var globalClientIdCounter = 0;
- var RE_RENDER_LIMIT = 25; // In DEV, this is the name of the currently executing primitive hook
-
- var currentHookNameInDev = null; // In DEV, this list ensures that hooks are called in the same order between renders.
- // The list stores the order of hooks used during the initial render (mount).
- // Subsequent renders (updates) reference this list.
-
- var hookTypesDev = null;
- var hookTypesUpdateIndexDev = -1; // In DEV, this tracks whether currently rendering component needs to ignore
- // the dependencies for Hooks that need them (e.g. useEffect or useMemo).
- // When true, such Hooks will always be "remounted". Only used during hot reload.
-
- var ignorePreviousDependencies = false;
-
- function mountHookTypesDev() {
- {
- var hookName = currentHookNameInDev;
-
- if (hookTypesDev === null) {
- hookTypesDev = [hookName];
- } else {
- hookTypesDev.push(hookName);
- }
- }
- }
-
- function updateHookTypesDev() {
- {
- var hookName = currentHookNameInDev;
-
- if (hookTypesDev !== null) {
- hookTypesUpdateIndexDev++;
-
- if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {
- warnOnHookMismatchInDev(hookName);
- }
- }
- }
- }
-
- function checkDepsAreArrayDev(deps) {
- {
- if (deps !== undefined && deps !== null && !isArray(deps)) {
- // Verify deps, but only on mount to avoid extra checks.
- // It's unlikely their type would change as usually you define them inline.
- error('%s received a final argument that is not an array (instead, received `%s`). When ' + 'specified, the final argument must be an array.', currentHookNameInDev, typeof deps);
- }
- }
- }
-
- function warnOnHookMismatchInDev(currentHookName) {
- {
- var componentName = getComponentNameFromFiber(currentlyRenderingFiber$1);
-
- if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) {
- didWarnAboutMismatchedHooksForComponent.add(componentName);
-
- if (hookTypesDev !== null) {
- var table = '';
- var secondColumnStart = 30;
-
- for (var i = 0; i <= hookTypesUpdateIndexDev; i++) {
- var oldHookName = hookTypesDev[i];
- var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName;
- var row = i + 1 + ". " + oldHookName; // Extra space so second column lines up
- // lol @ IE not supporting String#repeat
-
- while (row.length < secondColumnStart) {
- row += ' ';
- }
-
- row += newHookName + '\n';
- table += row;
- }
-
- error('React has detected a change in the order of Hooks called by %s. ' + 'This will lead to bugs and errors if not fixed. ' + 'For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n' + ' Previous render Next render\n' + ' ------------------------------------------------------\n' + '%s' + ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', componentName, table);
- }
- }
- }
- }
-
- function throwInvalidHookError() {
- throw new Error('Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for' + ' one of the following reasons:\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\n' + '2. You might be breaking the Rules of Hooks\n' + '3. You might have more than one copy of React in the same app\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');
- }
-
- function areHookInputsEqual(nextDeps, prevDeps) {
- {
- if (ignorePreviousDependencies) {
- // Only true when this component is being hot reloaded.
- return false;
- }
- }
-
- if (prevDeps === null) {
- {
- error('%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev);
- }
-
- return false;
- }
-
- {
- // Don't bother comparing lengths in prod because these arrays should be
- // passed inline.
- if (nextDeps.length !== prevDeps.length) {
- error('The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\n\n' + 'Previous: %s\n' + 'Incoming: %s', currentHookNameInDev, "[" + prevDeps.join(', ') + "]", "[" + nextDeps.join(', ') + "]");
- }
- }
-
- for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
- if (objectIs(nextDeps[i], prevDeps[i])) {
- continue;
- }
-
- return false;
- }
-
- return true;
- }
-
- function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) {
- renderLanes = nextRenderLanes;
- currentlyRenderingFiber$1 = workInProgress;
-
- {
- hookTypesDev = current !== null ? current._debugHookTypes : null;
- hookTypesUpdateIndexDev = -1; // Used for hot reloading:
-
- ignorePreviousDependencies = current !== null && current.type !== workInProgress.type;
- }
-
- workInProgress.memoizedState = null;
- workInProgress.updateQueue = null;
- workInProgress.lanes = NoLanes; // The following should have already been reset
- // currentHook = null;
- // workInProgressHook = null;
- // didScheduleRenderPhaseUpdate = false;
- // localIdCounter = 0;
- // TODO Warn if no hooks are used at all during mount, then some are used during update.
- // Currently we will identify the update render as a mount because memoizedState === null.
- // This is tricky because it's valid for certain types of components (e.g. React.lazy)
- // Using memoizedState to differentiate between mount/update only works if at least one stateful hook is used.
- // Non-stateful hooks (e.g. context) don't get added to memoizedState,
- // so memoizedState would be null during updates and mounts.
-
- {
- if (current !== null && current.memoizedState !== null) {
- ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;
- } else if (hookTypesDev !== null) {
- // This dispatcher handles an edge case where a component is updating,
- // but no stateful hooks have been used.
- // We want to match the production code behavior (which will use HooksDispatcherOnMount),
- // but with the extra DEV validation to ensure hooks ordering hasn't changed.
- // This dispatcher does that.
- ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV;
- } else {
- ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV;
- }
- }
-
- var children = Component(props, secondArg); // Check if there was a render phase update
-
- if (didScheduleRenderPhaseUpdateDuringThisPass) {
- // Keep rendering in a loop for as long as render phase updates continue to
- // be scheduled. Use a counter to prevent infinite loops.
- var numberOfReRenders = 0;
-
- do {
- didScheduleRenderPhaseUpdateDuringThisPass = false;
- localIdCounter = 0;
-
- if (numberOfReRenders >= RE_RENDER_LIMIT) {
- throw new Error('Too many re-renders. React limits the number of renders to prevent ' + 'an infinite loop.');
- }
-
- numberOfReRenders += 1;
-
- {
- // Even when hot reloading, allow dependencies to stabilize
- // after first render to prevent infinite render phase updates.
- ignorePreviousDependencies = false;
- } // Start over from the beginning of the list
-
-
- currentHook = null;
- workInProgressHook = null;
- workInProgress.updateQueue = null;
-
- {
- // Also validate hook order for cascading updates.
- hookTypesUpdateIndexDev = -1;
- }
-
- ReactCurrentDispatcher$1.current = HooksDispatcherOnRerenderInDEV ;
- children = Component(props, secondArg);
- } while (didScheduleRenderPhaseUpdateDuringThisPass);
- } // We can assume the previous dispatcher is always this one, since we set it
- // at the beginning of the render phase and there's no re-entrance.
-
-
- ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
-
- {
- workInProgress._debugHookTypes = hookTypesDev;
- } // This check uses currentHook so that it works the same in DEV and prod bundles.
- // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.
-
-
- var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
- renderLanes = NoLanes;
- currentlyRenderingFiber$1 = null;
- currentHook = null;
- workInProgressHook = null;
-
- {
- currentHookNameInDev = null;
- hookTypesDev = null;
- hookTypesUpdateIndexDev = -1; // Confirm that a static flag was not added or removed since the last
- // render. If this fires, it suggests that we incorrectly reset the static
- // flags in some other part of the codebase. This has happened before, for
- // example, in the SuspenseList implementation.
-
- if (current !== null && (current.flags & StaticMask) !== (workInProgress.flags & StaticMask) && // Disable this warning in legacy mode, because legacy Suspense is weird
- // and creates false positives. To make this work in legacy mode, we'd
- // need to mark fibers that commit in an incomplete state, somehow. For
- // now I'll disable the warning that most of the bugs that would trigger
- // it are either exclusive to concurrent mode or exist in both.
- (current.mode & ConcurrentMode) !== NoMode) {
- error('Internal React error: Expected static flag was missing. Please ' + 'notify the React team.');
- }
- }
-
- didScheduleRenderPhaseUpdate = false; // This is reset by checkDidRenderIdHook
- // localIdCounter = 0;
-
- if (didRenderTooFewHooks) {
- throw new Error('Rendered fewer hooks than expected. This may be caused by an accidental ' + 'early return statement.');
- }
-
- return children;
- }
- function checkDidRenderIdHook() {
- // This should be called immediately after every renderWithHooks call.
- // Conceptually, it's part of the return value of renderWithHooks; it's only a
- // separate function to avoid using an array tuple.
- var didRenderIdHook = localIdCounter !== 0;
- localIdCounter = 0;
- return didRenderIdHook;
- }
- function bailoutHooks(current, workInProgress, lanes) {
- workInProgress.updateQueue = current.updateQueue; // TODO: Don't need to reset the flags here, because they're reset in the
- // complete phase (bubbleProperties).
-
- if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {
- workInProgress.flags &= ~(MountPassiveDev | MountLayoutDev | Passive | Update);
- } else {
- workInProgress.flags &= ~(Passive | Update);
- }
-
- current.lanes = removeLanes(current.lanes, lanes);
- }
- function resetHooksAfterThrow() {
- // We can assume the previous dispatcher is always this one, since we set it
- // at the beginning of the render phase and there's no re-entrance.
- ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
-
- if (didScheduleRenderPhaseUpdate) {
- // There were render phase updates. These are only valid for this render
- // phase, which we are now aborting. Remove the updates from the queues so
- // they do not persist to the next render. Do not remove updates from hooks
- // that weren't processed.
- //
- // Only reset the updates from the queue if it has a clone. If it does
- // not have a clone, that means it wasn't processed, and the updates were
- // scheduled before we entered the render phase.
- var hook = currentlyRenderingFiber$1.memoizedState;
-
- while (hook !== null) {
- var queue = hook.queue;
-
- if (queue !== null) {
- queue.pending = null;
- }
-
- hook = hook.next;
- }
-
- didScheduleRenderPhaseUpdate = false;
- }
-
- renderLanes = NoLanes;
- currentlyRenderingFiber$1 = null;
- currentHook = null;
- workInProgressHook = null;
-
- {
- hookTypesDev = null;
- hookTypesUpdateIndexDev = -1;
- currentHookNameInDev = null;
- isUpdatingOpaqueValueInRenderPhase = false;
- }
-
- didScheduleRenderPhaseUpdateDuringThisPass = false;
- localIdCounter = 0;
- }
-
- function mountWorkInProgressHook() {
- var hook = {
- memoizedState: null,
- baseState: null,
- baseQueue: null,
- queue: null,
- next: null
- };
-
- if (workInProgressHook === null) {
- // This is the first hook in the list
- currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook;
- } else {
- // Append to the end of the list
- workInProgressHook = workInProgressHook.next = hook;
- }
-
- return workInProgressHook;
- }
-
- function updateWorkInProgressHook() {
- // This function is used both for updates and for re-renders triggered by a
- // render phase update. It assumes there is either a current hook we can
- // clone, or a work-in-progress hook from a previous render pass that we can
- // use as a base. When we reach the end of the base list, we must switch to
- // the dispatcher used for mounts.
- var nextCurrentHook;
-
- if (currentHook === null) {
- var current = currentlyRenderingFiber$1.alternate;
-
- if (current !== null) {
- nextCurrentHook = current.memoizedState;
- } else {
- nextCurrentHook = null;
- }
- } else {
- nextCurrentHook = currentHook.next;
- }
-
- var nextWorkInProgressHook;
-
- if (workInProgressHook === null) {
- nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState;
- } else {
- nextWorkInProgressHook = workInProgressHook.next;
- }
-
- if (nextWorkInProgressHook !== null) {
- // There's already a work-in-progress. Reuse it.
- workInProgressHook = nextWorkInProgressHook;
- nextWorkInProgressHook = workInProgressHook.next;
- currentHook = nextCurrentHook;
- } else {
- // Clone from the current hook.
- if (nextCurrentHook === null) {
- throw new Error('Rendered more hooks than during the previous render.');
- }
-
- currentHook = nextCurrentHook;
- var newHook = {
- memoizedState: currentHook.memoizedState,
- baseState: currentHook.baseState,
- baseQueue: currentHook.baseQueue,
- queue: currentHook.queue,
- next: null
- };
-
- if (workInProgressHook === null) {
- // This is the first hook in the list.
- currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook;
- } else {
- // Append to the end of the list.
- workInProgressHook = workInProgressHook.next = newHook;
- }
- }
-
- return workInProgressHook;
- }
-
- function createFunctionComponentUpdateQueue() {
- return {
- lastEffect: null,
- stores: null
- };
- }
-
- function basicStateReducer(state, action) {
- // $FlowFixMe: Flow doesn't like mixed types
- return typeof action === 'function' ? action(state) : action;
- }
-
- function mountReducer(reducer, initialArg, init) {
- var hook = mountWorkInProgressHook();
- var initialState;
-
- if (init !== undefined) {
- initialState = init(initialArg);
- } else {
- initialState = initialArg;
- }
-
- hook.memoizedState = hook.baseState = initialState;
- var queue = {
- pending: null,
- interleaved: null,
- lanes: NoLanes,
- dispatch: null,
- lastRenderedReducer: reducer,
- lastRenderedState: initialState
- };
- hook.queue = queue;
- var dispatch = queue.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber$1, queue);
- return [hook.memoizedState, dispatch];
- }
-
- function updateReducer(reducer, initialArg, init) {
- var hook = updateWorkInProgressHook();
- var queue = hook.queue;
-
- if (queue === null) {
- throw new Error('Should have a queue. This is likely a bug in React. Please file an issue.');
- }
-
- queue.lastRenderedReducer = reducer;
- var current = currentHook; // The last rebase update that is NOT part of the base state.
-
- var baseQueue = current.baseQueue; // The last pending update that hasn't been processed yet.
-
- var pendingQueue = queue.pending;
-
- if (pendingQueue !== null) {
- // We have new updates that haven't been processed yet.
- // We'll add them to the base queue.
- if (baseQueue !== null) {
- // Merge the pending queue and the base queue.
- var baseFirst = baseQueue.next;
- var pendingFirst = pendingQueue.next;
- baseQueue.next = pendingFirst;
- pendingQueue.next = baseFirst;
- }
-
- {
- if (current.baseQueue !== baseQueue) {
- // Internal invariant that should never happen, but feasibly could in
- // the future if we implement resuming, or some form of that.
- error('Internal error: Expected work-in-progress queue to be a clone. ' + 'This is a bug in React.');
- }
- }
-
- current.baseQueue = baseQueue = pendingQueue;
- queue.pending = null;
- }
-
- if (baseQueue !== null) {
- // We have a queue to process.
- var first = baseQueue.next;
- var newState = current.baseState;
- var newBaseState = null;
- var newBaseQueueFirst = null;
- var newBaseQueueLast = null;
- var update = first;
-
- do {
- var updateLane = update.lane;
-
- if (!isSubsetOfLanes(renderLanes, updateLane)) {
- // Priority is insufficient. Skip this update. If this is the first
- // skipped update, the previous update/state is the new base
- // update/state.
- var clone = {
- lane: updateLane,
- action: update.action,
- hasEagerState: update.hasEagerState,
- eagerState: update.eagerState,
- next: null
- };
-
- if (newBaseQueueLast === null) {
- newBaseQueueFirst = newBaseQueueLast = clone;
- newBaseState = newState;
- } else {
- newBaseQueueLast = newBaseQueueLast.next = clone;
- } // Update the remaining priority in the queue.
- // TODO: Don't need to accumulate this. Instead, we can remove
- // renderLanes from the original lanes.
-
-
- currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, updateLane);
- markSkippedUpdateLanes(updateLane);
- } else {
- // This update does have sufficient priority.
- if (newBaseQueueLast !== null) {
- var _clone = {
- // This update is going to be committed so we never want uncommit
- // it. Using NoLane works because 0 is a subset of all bitmasks, so
- // this will never be skipped by the check above.
- lane: NoLane,
- action: update.action,
- hasEagerState: update.hasEagerState,
- eagerState: update.eagerState,
- next: null
- };
- newBaseQueueLast = newBaseQueueLast.next = _clone;
- } // Process this update.
-
-
- if (update.hasEagerState) {
- // If this update is a state update (not a reducer) and was processed eagerly,
- // we can use the eagerly computed state
- newState = update.eagerState;
- } else {
- var action = update.action;
- newState = reducer(newState, action);
- }
- }
-
- update = update.next;
- } while (update !== null && update !== first);
-
- if (newBaseQueueLast === null) {
- newBaseState = newState;
- } else {
- newBaseQueueLast.next = newBaseQueueFirst;
- } // Mark that the fiber performed work, but only if the new state is
- // different from the current state.
-
-
- if (!objectIs(newState, hook.memoizedState)) {
- markWorkInProgressReceivedUpdate();
- }
-
- hook.memoizedState = newState;
- hook.baseState = newBaseState;
- hook.baseQueue = newBaseQueueLast;
- queue.lastRenderedState = newState;
- } // Interleaved updates are stored on a separate queue. We aren't going to
- // process them during this render, but we do need to track which lanes
- // are remaining.
-
-
- var lastInterleaved = queue.interleaved;
-
- if (lastInterleaved !== null) {
- var interleaved = lastInterleaved;
-
- do {
- var interleavedLane = interleaved.lane;
- currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, interleavedLane);
- markSkippedUpdateLanes(interleavedLane);
- interleaved = interleaved.next;
- } while (interleaved !== lastInterleaved);
- } else if (baseQueue === null) {
- // `queue.lanes` is used for entangling transitions. We can set it back to
- // zero once the queue is empty.
- queue.lanes = NoLanes;
- }
-
- var dispatch = queue.dispatch;
- return [hook.memoizedState, dispatch];
- }
-
- function rerenderReducer(reducer, initialArg, init) {
- var hook = updateWorkInProgressHook();
- var queue = hook.queue;
-
- if (queue === null) {
- throw new Error('Should have a queue. This is likely a bug in React. Please file an issue.');
- }
-
- queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
- // work-in-progress hook.
-
- var dispatch = queue.dispatch;
- var lastRenderPhaseUpdate = queue.pending;
- var newState = hook.memoizedState;
-
- if (lastRenderPhaseUpdate !== null) {
- // The queue doesn't persist past this render pass.
- queue.pending = null;
- var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next;
- var update = firstRenderPhaseUpdate;
-
- do {
- // Process this render phase update. We don't have to check the
- // priority because it will always be the same as the current
- // render's.
- var action = update.action;
- newState = reducer(newState, action);
- update = update.next;
- } while (update !== firstRenderPhaseUpdate); // Mark that the fiber performed work, but only if the new state is
- // different from the current state.
-
-
- if (!objectIs(newState, hook.memoizedState)) {
- markWorkInProgressReceivedUpdate();
- }
-
- hook.memoizedState = newState; // Don't persist the state accumulated from the render phase updates to
- // the base state unless the queue is empty.
- // TODO: Not sure if this is the desired semantics, but it's what we
- // do for gDSFP. I can't remember why.
-
- if (hook.baseQueue === null) {
- hook.baseState = newState;
- }
-
- queue.lastRenderedState = newState;
- }
-
- return [newState, dispatch];
- }
-
- function mountMutableSource(source, getSnapshot, subscribe) {
- {
- return undefined;
- }
- }
-
- function updateMutableSource(source, getSnapshot, subscribe) {
- {
- return undefined;
- }
- }
-
- function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
- var fiber = currentlyRenderingFiber$1;
- var hook = mountWorkInProgressHook();
- var nextSnapshot;
- var isHydrating = getIsHydrating();
-
- if (isHydrating) {
- if (getServerSnapshot === undefined) {
- throw new Error('Missing getServerSnapshot, which is required for ' + 'server-rendered content. Will revert to client rendering.');
- }
-
- nextSnapshot = getServerSnapshot();
-
- {
- if (!didWarnUncachedGetSnapshot) {
- if (nextSnapshot !== getServerSnapshot()) {
- error('The result of getServerSnapshot should be cached to avoid an infinite loop');
-
- didWarnUncachedGetSnapshot = true;
- }
- }
- }
- } else {
- nextSnapshot = getSnapshot();
-
- {
- if (!didWarnUncachedGetSnapshot) {
- var cachedSnapshot = getSnapshot();
-
- if (!objectIs(nextSnapshot, cachedSnapshot)) {
- error('The result of getSnapshot should be cached to avoid an infinite loop');
-
- didWarnUncachedGetSnapshot = true;
- }
- }
- } // Unless we're rendering a blocking lane, schedule a consistency check.
- // Right before committing, we will walk the tree and check if any of the
- // stores were mutated.
- //
- // We won't do this if we're hydrating server-rendered content, because if
- // the content is stale, it's already visible anyway. Instead we'll patch
- // it up in a passive effect.
-
-
- var root = getWorkInProgressRoot();
-
- if (root === null) {
- throw new Error('Expected a work-in-progress root. This is a bug in React. Please file an issue.');
- }
-
- if (!includesBlockingLane(root, renderLanes)) {
- pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
- }
- } // Read the current snapshot from the store on every render. This breaks the
- // normal rules of React, and only works because store updates are
- // always synchronous.
-
-
- hook.memoizedState = nextSnapshot;
- var inst = {
- value: nextSnapshot,
- getSnapshot: getSnapshot
- };
- hook.queue = inst; // Schedule an effect to subscribe to the store.
-
- mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); // Schedule an effect to update the mutable instance fields. We will update
- // this whenever subscribe, getSnapshot, or value changes. Because there's no
- // clean-up function, and we track the deps correctly, we can call pushEffect
- // directly, without storing any additional state. For the same reason, we
- // don't need to set a static flag, either.
- // TODO: We can move this to the passive phase once we add a pre-commit
- // consistency check. See the next comment.
-
- fiber.flags |= Passive;
- pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null);
- return nextSnapshot;
- }
-
- function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
- var fiber = currentlyRenderingFiber$1;
- var hook = updateWorkInProgressHook(); // Read the current snapshot from the store on every render. This breaks the
- // normal rules of React, and only works because store updates are
- // always synchronous.
-
- var nextSnapshot = getSnapshot();
-
- {
- if (!didWarnUncachedGetSnapshot) {
- var cachedSnapshot = getSnapshot();
-
- if (!objectIs(nextSnapshot, cachedSnapshot)) {
- error('The result of getSnapshot should be cached to avoid an infinite loop');
-
- didWarnUncachedGetSnapshot = true;
- }
- }
- }
-
- var prevSnapshot = hook.memoizedState;
- var snapshotChanged = !objectIs(prevSnapshot, nextSnapshot);
-
- if (snapshotChanged) {
- hook.memoizedState = nextSnapshot;
- markWorkInProgressReceivedUpdate();
- }
-
- var inst = hook.queue;
- updateEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); // Whenever getSnapshot or subscribe changes, we need to check in the
- // commit phase if there was an interleaved mutation. In concurrent mode
- // this can happen all the time, but even in synchronous mode, an earlier
- // effect may have mutated the store.
-
- if (inst.getSnapshot !== getSnapshot || snapshotChanged || // Check if the susbcribe function changed. We can save some memory by
- // checking whether we scheduled a subscription effect above.
- workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) {
- fiber.flags |= Passive;
- pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null); // Unless we're rendering a blocking lane, schedule a consistency check.
- // Right before committing, we will walk the tree and check if any of the
- // stores were mutated.
-
- var root = getWorkInProgressRoot();
-
- if (root === null) {
- throw new Error('Expected a work-in-progress root. This is a bug in React. Please file an issue.');
- }
-
- if (!includesBlockingLane(root, renderLanes)) {
- pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
- }
- }
-
- return nextSnapshot;
- }
-
- function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
- fiber.flags |= StoreConsistency;
- var check = {
- getSnapshot: getSnapshot,
- value: renderedSnapshot
- };
- var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue;
-
- if (componentUpdateQueue === null) {
- componentUpdateQueue = createFunctionComponentUpdateQueue();
- currentlyRenderingFiber$1.updateQueue = componentUpdateQueue;
- componentUpdateQueue.stores = [check];
- } else {
- var stores = componentUpdateQueue.stores;
-
- if (stores === null) {
- componentUpdateQueue.stores = [check];
- } else {
- stores.push(check);
- }
- }
- }
-
- function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
- // These are updated in the passive phase
- inst.value = nextSnapshot;
- inst.getSnapshot = getSnapshot; // Something may have been mutated in between render and commit. This could
- // have been in an event that fired before the passive effects, or it could
- // have been in a layout effect. In that case, we would have used the old
- // snapsho and getSnapshot values to bail out. We need to check one more time.
-
- if (checkIfSnapshotChanged(inst)) {
- // Force a re-render.
- forceStoreRerender(fiber);
- }
- }
-
- function subscribeToStore(fiber, inst, subscribe) {
- var handleStoreChange = function () {
- // The store changed. Check if the snapshot changed since the last time we
- // read from the store.
- if (checkIfSnapshotChanged(inst)) {
- // Force a re-render.
- forceStoreRerender(fiber);
- }
- }; // Subscribe to the store and return a clean-up function.
-
-
- return subscribe(handleStoreChange);
- }
-
- function checkIfSnapshotChanged(inst) {
- var latestGetSnapshot = inst.getSnapshot;
- var prevValue = inst.value;
-
- try {
- var nextValue = latestGetSnapshot();
- return !objectIs(prevValue, nextValue);
- } catch (error) {
- return true;
- }
- }
-
- function forceStoreRerender(fiber) {
- var root = enqueueConcurrentRenderForLane(fiber, SyncLane);
-
- if (root !== null) {
- scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
- }
- }
-
- function mountState(initialState) {
- var hook = mountWorkInProgressHook();
-
- if (typeof initialState === 'function') {
- // $FlowFixMe: Flow doesn't like mixed types
- initialState = initialState();
- }
-
- hook.memoizedState = hook.baseState = initialState;
- var queue = {
- pending: null,
- interleaved: null,
- lanes: NoLanes,
- dispatch: null,
- lastRenderedReducer: basicStateReducer,
- lastRenderedState: initialState
- };
- hook.queue = queue;
- var dispatch = queue.dispatch = dispatchSetState.bind(null, currentlyRenderingFiber$1, queue);
- return [hook.memoizedState, dispatch];
- }
-
- function updateState(initialState) {
- return updateReducer(basicStateReducer);
- }
-
- function rerenderState(initialState) {
- return rerenderReducer(basicStateReducer);
- }
-
- function pushEffect(tag, create, destroy, deps) {
- var effect = {
- tag: tag,
- create: create,
- destroy: destroy,
- deps: deps,
- // Circular
- next: null
- };
- var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue;
-
- if (componentUpdateQueue === null) {
- componentUpdateQueue = createFunctionComponentUpdateQueue();
- currentlyRenderingFiber$1.updateQueue = componentUpdateQueue;
- componentUpdateQueue.lastEffect = effect.next = effect;
- } else {
- var lastEffect = componentUpdateQueue.lastEffect;
-
- if (lastEffect === null) {
- componentUpdateQueue.lastEffect = effect.next = effect;
- } else {
- var firstEffect = lastEffect.next;
- lastEffect.next = effect;
- effect.next = firstEffect;
- componentUpdateQueue.lastEffect = effect;
- }
- }
-
- return effect;
- }
-
- function mountRef(initialValue) {
- var hook = mountWorkInProgressHook();
-
- {
- var _ref2 = {
- current: initialValue
- };
- hook.memoizedState = _ref2;
- return _ref2;
- }
- }
-
- function updateRef(initialValue) {
- var hook = updateWorkInProgressHook();
- return hook.memoizedState;
- }
-
- function mountEffectImpl(fiberFlags, hookFlags, create, deps) {
- var hook = mountWorkInProgressHook();
- var nextDeps = deps === undefined ? null : deps;
- currentlyRenderingFiber$1.flags |= fiberFlags;
- hook.memoizedState = pushEffect(HasEffect | hookFlags, create, undefined, nextDeps);
- }
-
- function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
- var hook = updateWorkInProgressHook();
- var nextDeps = deps === undefined ? null : deps;
- var destroy = undefined;
-
- if (currentHook !== null) {
- var prevEffect = currentHook.memoizedState;
- destroy = prevEffect.destroy;
-
- if (nextDeps !== null) {
- var prevDeps = prevEffect.deps;
-
- if (areHookInputsEqual(nextDeps, prevDeps)) {
- hook.memoizedState = pushEffect(hookFlags, create, destroy, nextDeps);
- return;
- }
- }
- }
-
- currentlyRenderingFiber$1.flags |= fiberFlags;
- hook.memoizedState = pushEffect(HasEffect | hookFlags, create, destroy, nextDeps);
- }
-
- function mountEffect(create, deps) {
- if ( (currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) {
- return mountEffectImpl(MountPassiveDev | Passive | PassiveStatic, Passive$1, create, deps);
- } else {
- return mountEffectImpl(Passive | PassiveStatic, Passive$1, create, deps);
- }
- }
-
- function updateEffect(create, deps) {
- return updateEffectImpl(Passive, Passive$1, create, deps);
- }
-
- function mountInsertionEffect(create, deps) {
- return mountEffectImpl(Update, Insertion, create, deps);
- }
-
- function updateInsertionEffect(create, deps) {
- return updateEffectImpl(Update, Insertion, create, deps);
- }
-
- function mountLayoutEffect(create, deps) {
- var fiberFlags = Update;
-
- {
- fiberFlags |= LayoutStatic;
- }
-
- if ( (currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) {
- fiberFlags |= MountLayoutDev;
- }
-
- return mountEffectImpl(fiberFlags, Layout, create, deps);
- }
-
- function updateLayoutEffect(create, deps) {
- return updateEffectImpl(Update, Layout, create, deps);
- }
-
- function imperativeHandleEffect(create, ref) {
- if (typeof ref === 'function') {
- var refCallback = ref;
-
- var _inst = create();
-
- refCallback(_inst);
- return function () {
- refCallback(null);
- };
- } else if (ref !== null && ref !== undefined) {
- var refObject = ref;
-
- {
- if (!refObject.hasOwnProperty('current')) {
- error('Expected useImperativeHandle() first argument to either be a ' + 'ref callback or React.createRef() object. Instead received: %s.', 'an object with keys {' + Object.keys(refObject).join(', ') + '}');
- }
- }
-
- var _inst2 = create();
-
- refObject.current = _inst2;
- return function () {
- refObject.current = null;
- };
- }
- }
-
- function mountImperativeHandle(ref, create, deps) {
- {
- if (typeof create !== 'function') {
- error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
- }
- } // TODO: If deps are provided, should we skip comparing the ref itself?
-
-
- var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
- var fiberFlags = Update;
-
- {
- fiberFlags |= LayoutStatic;
- }
-
- if ( (currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) {
- fiberFlags |= MountLayoutDev;
- }
-
- return mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
- }
-
- function updateImperativeHandle(ref, create, deps) {
- {
- if (typeof create !== 'function') {
- error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
- }
- } // TODO: If deps are provided, should we skip comparing the ref itself?
-
-
- var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
- return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
- }
-
- function mountDebugValue(value, formatterFn) {// This hook is normally a no-op.
- // The react-debug-hooks package injects its own implementation
- // so that e.g. DevTools can display custom hook values.
- }
-
- var updateDebugValue = mountDebugValue;
-
- function mountCallback(callback, deps) {
- var hook = mountWorkInProgressHook();
- var nextDeps = deps === undefined ? null : deps;
- hook.memoizedState = [callback, nextDeps];
- return callback;
- }
-
- function updateCallback(callback, deps) {
- var hook = updateWorkInProgressHook();
- var nextDeps = deps === undefined ? null : deps;
- var prevState = hook.memoizedState;
-
- if (prevState !== null) {
- if (nextDeps !== null) {
- var prevDeps = prevState[1];
-
- if (areHookInputsEqual(nextDeps, prevDeps)) {
- return prevState[0];
- }
- }
- }
-
- hook.memoizedState = [callback, nextDeps];
- return callback;
- }
-
- function mountMemo(nextCreate, deps) {
- var hook = mountWorkInProgressHook();
- var nextDeps = deps === undefined ? null : deps;
- var nextValue = nextCreate();
- hook.memoizedState = [nextValue, nextDeps];
- return nextValue;
- }
-
- function updateMemo(nextCreate, deps) {
- var hook = updateWorkInProgressHook();
- var nextDeps = deps === undefined ? null : deps;
- var prevState = hook.memoizedState;
-
- if (prevState !== null) {
- // Assume these are defined. If they're not, areHookInputsEqual will warn.
- if (nextDeps !== null) {
- var prevDeps = prevState[1];
-
- if (areHookInputsEqual(nextDeps, prevDeps)) {
- return prevState[0];
- }
- }
- }
-
- var nextValue = nextCreate();
- hook.memoizedState = [nextValue, nextDeps];
- return nextValue;
- }
-
- function mountDeferredValue(value) {
- var hook = mountWorkInProgressHook();
- hook.memoizedState = value;
- return value;
- }
-
- function updateDeferredValue(value) {
- var hook = updateWorkInProgressHook();
- var resolvedCurrentHook = currentHook;
- var prevValue = resolvedCurrentHook.memoizedState;
- return updateDeferredValueImpl(hook, prevValue, value);
- }
-
- function rerenderDeferredValue(value) {
- var hook = updateWorkInProgressHook();
-
- if (currentHook === null) {
- // This is a rerender during a mount.
- hook.memoizedState = value;
- return value;
- } else {
- // This is a rerender during an update.
- var prevValue = currentHook.memoizedState;
- return updateDeferredValueImpl(hook, prevValue, value);
- }
- }
-
- function updateDeferredValueImpl(hook, prevValue, value) {
- var shouldDeferValue = !includesOnlyNonUrgentLanes(renderLanes);
-
- if (shouldDeferValue) {
- // This is an urgent update. If the value has changed, keep using the
- // previous value and spawn a deferred render to update it later.
- if (!objectIs(value, prevValue)) {
- // Schedule a deferred render
- var deferredLane = claimNextTransitionLane();
- currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, deferredLane);
- markSkippedUpdateLanes(deferredLane); // Set this to true to indicate that the rendered value is inconsistent
- // from the latest value. The name "baseState" doesn't really match how we
- // use it because we're reusing a state hook field instead of creating a
- // new one.
-
- hook.baseState = true;
- } // Reuse the previous value
-
-
- return prevValue;
- } else {
- // This is not an urgent update, so we can use the latest value regardless
- // of what it is. No need to defer it.
- // However, if we're currently inside a spawned render, then we need to mark
- // this as an update to prevent the fiber from bailing out.
- //
- // `baseState` is true when the current value is different from the rendered
- // value. The name doesn't really match how we use it because we're reusing
- // a state hook field instead of creating a new one.
- if (hook.baseState) {
- // Flip this back to false.
- hook.baseState = false;
- markWorkInProgressReceivedUpdate();
- }
-
- hook.memoizedState = value;
- return value;
- }
- }
-
- function startTransition(setPending, callback, options) {
- var previousPriority = getCurrentUpdatePriority();
- setCurrentUpdatePriority(higherEventPriority(previousPriority, ContinuousEventPriority));
- setPending(true);
- var prevTransition = ReactCurrentBatchConfig$2.transition;
- ReactCurrentBatchConfig$2.transition = {};
- var currentTransition = ReactCurrentBatchConfig$2.transition;
-
- {
- ReactCurrentBatchConfig$2.transition._updatedFibers = new Set();
- }
-
- try {
- setPending(false);
- callback();
- } finally {
- setCurrentUpdatePriority(previousPriority);
- ReactCurrentBatchConfig$2.transition = prevTransition;
-
- {
- if (prevTransition === null && currentTransition._updatedFibers) {
- var updatedFibersCount = currentTransition._updatedFibers.size;
-
- if (updatedFibersCount > 10) {
- warn('Detected a large number of updates inside startTransition. ' + 'If this is due to a subscription please re-write it to use React provided hooks. ' + 'Otherwise concurrent mode guarantees are off the table.');
- }
-
- currentTransition._updatedFibers.clear();
- }
- }
- }
- }
-
- function mountTransition() {
- var _mountState = mountState(false),
- isPending = _mountState[0],
- setPending = _mountState[1]; // The `start` method never changes.
-
-
- var start = startTransition.bind(null, setPending);
- var hook = mountWorkInProgressHook();
- hook.memoizedState = start;
- return [isPending, start];
- }
-
- function updateTransition() {
- var _updateState = updateState(),
- isPending = _updateState[0];
-
- var hook = updateWorkInProgressHook();
- var start = hook.memoizedState;
- return [isPending, start];
- }
-
- function rerenderTransition() {
- var _rerenderState = rerenderState(),
- isPending = _rerenderState[0];
-
- var hook = updateWorkInProgressHook();
- var start = hook.memoizedState;
- return [isPending, start];
- }
-
- var isUpdatingOpaqueValueInRenderPhase = false;
- function getIsUpdatingOpaqueValueInRenderPhaseInDEV() {
- {
- return isUpdatingOpaqueValueInRenderPhase;
- }
- }
-
- function mountId() {
- var hook = mountWorkInProgressHook();
- var root = getWorkInProgressRoot(); // TODO: In Fizz, id generation is specific to each server config. Maybe we
- // should do this in Fiber, too? Deferring this decision for now because
- // there's no other place to store the prefix except for an internal field on
- // the public createRoot object, which the fiber tree does not currently have
- // a reference to.
-
- var identifierPrefix = root.identifierPrefix;
- var id;
-
- if (getIsHydrating()) {
- var treeId = getTreeId(); // Use a captial R prefix for server-generated ids.
-
- id = ':' + identifierPrefix + 'R' + treeId; // Unless this is the first id at this level, append a number at the end
- // that represents the position of this useId hook among all the useId
- // hooks for this fiber.
-
- var localId = localIdCounter++;
-
- if (localId > 0) {
- id += 'H' + localId.toString(32);
- }
-
- id += ':';
- } else {
- // Use a lowercase r prefix for client-generated ids.
- var globalClientId = globalClientIdCounter++;
- id = ':' + identifierPrefix + 'r' + globalClientId.toString(32) + ':';
- }
-
- hook.memoizedState = id;
- return id;
- }
-
- function updateId() {
- var hook = updateWorkInProgressHook();
- var id = hook.memoizedState;
- return id;
- }
-
- function dispatchReducerAction(fiber, queue, action) {
- {
- if (typeof arguments[3] === 'function') {
- error("State updates from the useState() and useReducer() Hooks don't support the " + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().');
- }
- }
-
- var lane = requestUpdateLane(fiber);
- var update = {
- lane: lane,
- action: action,
- hasEagerState: false,
- eagerState: null,
- next: null
- };
-
- if (isRenderPhaseUpdate(fiber)) {
- enqueueRenderPhaseUpdate(queue, update);
- } else {
- var root = enqueueConcurrentHookUpdate(fiber, queue, update, lane);
-
- if (root !== null) {
- var eventTime = requestEventTime();
- scheduleUpdateOnFiber(root, fiber, lane, eventTime);
- entangleTransitionUpdate(root, queue, lane);
- }
- }
-
- markUpdateInDevTools(fiber, lane);
- }
-
- function dispatchSetState(fiber, queue, action) {
- {
- if (typeof arguments[3] === 'function') {
- error("State updates from the useState() and useReducer() Hooks don't support the " + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().');
- }
- }
-
- var lane = requestUpdateLane(fiber);
- var update = {
- lane: lane,
- action: action,
- hasEagerState: false,
- eagerState: null,
- next: null
- };
-
- if (isRenderPhaseUpdate(fiber)) {
- enqueueRenderPhaseUpdate(queue, update);
- } else {
- var alternate = fiber.alternate;
-
- if (fiber.lanes === NoLanes && (alternate === null || alternate.lanes === NoLanes)) {
- // The queue is currently empty, which means we can eagerly compute the
- // next state before entering the render phase. If the new state is the
- // same as the current state, we may be able to bail out entirely.
- var lastRenderedReducer = queue.lastRenderedReducer;
-
- if (lastRenderedReducer !== null) {
- var prevDispatcher;
-
- {
- prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
- }
-
- try {
- var currentState = queue.lastRenderedState;
- var eagerState = lastRenderedReducer(currentState, action); // Stash the eagerly computed state, and the reducer used to compute
- // it, on the update object. If the reducer hasn't changed by the
- // time we enter the render phase, then the eager state can be used
- // without calling the reducer again.
-
- update.hasEagerState = true;
- update.eagerState = eagerState;
-
- if (objectIs(eagerState, currentState)) {
- // Fast path. We can bail out without scheduling React to re-render.
- // It's still possible that we'll need to rebase this update later,
- // if the component re-renders for a different reason and by that
- // time the reducer has changed.
- // TODO: Do we still need to entangle transitions in this case?
- enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update, lane);
- return;
- }
- } catch (error) {// Suppress the error. It will throw again in the render phase.
- } finally {
- {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- }
- }
- }
-
- var root = enqueueConcurrentHookUpdate(fiber, queue, update, lane);
-
- if (root !== null) {
- var eventTime = requestEventTime();
- scheduleUpdateOnFiber(root, fiber, lane, eventTime);
- entangleTransitionUpdate(root, queue, lane);
- }
- }
-
- markUpdateInDevTools(fiber, lane);
- }
-
- function isRenderPhaseUpdate(fiber) {
- var alternate = fiber.alternate;
- return fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1;
- }
-
- function enqueueRenderPhaseUpdate(queue, update) {
- // This is a render phase update. Stash it in a lazily-created map of
- // queue -> linked list of updates. After this render pass, we'll restart
- // and apply the stashed updates on top of the work-in-progress hook.
- didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true;
- var pending = queue.pending;
-
- if (pending === null) {
- // This is the first update. Create a circular list.
- update.next = update;
- } else {
- update.next = pending.next;
- pending.next = update;
- }
-
- queue.pending = update;
- } // TODO: Move to ReactFiberConcurrentUpdates?
-
-
- function entangleTransitionUpdate(root, queue, lane) {
- if (isTransitionLane(lane)) {
- var queueLanes = queue.lanes; // If any entangled lanes are no longer pending on the root, then they
- // must have finished. We can remove them from the shared queue, which
- // represents a superset of the actually pending lanes. In some cases we
- // may entangle more than we need to, but that's OK. In fact it's worse if
- // we *don't* entangle when we should.
-
- queueLanes = intersectLanes(queueLanes, root.pendingLanes); // Entangle the new transition lane with the other transition lanes.
-
- var newQueueLanes = mergeLanes(queueLanes, lane);
- queue.lanes = newQueueLanes; // Even if queue.lanes already include lane, we don't know for certain if
- // the lane finished since the last time we entangled it. So we need to
- // entangle it again, just to be sure.
-
- markRootEntangled(root, newQueueLanes);
- }
- }
-
- function markUpdateInDevTools(fiber, lane, action) {
-
- {
- markStateUpdateScheduled(fiber, lane);
- }
- }
-
- var ContextOnlyDispatcher = {
- readContext: readContext,
- useCallback: throwInvalidHookError,
- useContext: throwInvalidHookError,
- useEffect: throwInvalidHookError,
- useImperativeHandle: throwInvalidHookError,
- useInsertionEffect: throwInvalidHookError,
- useLayoutEffect: throwInvalidHookError,
- useMemo: throwInvalidHookError,
- useReducer: throwInvalidHookError,
- useRef: throwInvalidHookError,
- useState: throwInvalidHookError,
- useDebugValue: throwInvalidHookError,
- useDeferredValue: throwInvalidHookError,
- useTransition: throwInvalidHookError,
- useMutableSource: throwInvalidHookError,
- useSyncExternalStore: throwInvalidHookError,
- useId: throwInvalidHookError,
- unstable_isNewReconciler: enableNewReconciler
- };
-
- var HooksDispatcherOnMountInDEV = null;
- var HooksDispatcherOnMountWithHookTypesInDEV = null;
- var HooksDispatcherOnUpdateInDEV = null;
- var HooksDispatcherOnRerenderInDEV = null;
- var InvalidNestedHooksDispatcherOnMountInDEV = null;
- var InvalidNestedHooksDispatcherOnUpdateInDEV = null;
- var InvalidNestedHooksDispatcherOnRerenderInDEV = null;
-
- {
- var warnInvalidContextAccess = function () {
- error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
- };
-
- var warnInvalidHookAccess = function () {
- error('Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://reactjs.org/link/rules-of-hooks');
- };
-
- HooksDispatcherOnMountInDEV = {
- readContext: function (context) {
- return readContext(context);
- },
- useCallback: function (callback, deps) {
- currentHookNameInDev = 'useCallback';
- mountHookTypesDev();
- checkDepsAreArrayDev(deps);
- return mountCallback(callback, deps);
- },
- useContext: function (context) {
- currentHookNameInDev = 'useContext';
- mountHookTypesDev();
- return readContext(context);
- },
- useEffect: function (create, deps) {
- currentHookNameInDev = 'useEffect';
- mountHookTypesDev();
- checkDepsAreArrayDev(deps);
- return mountEffect(create, deps);
- },
- useImperativeHandle: function (ref, create, deps) {
- currentHookNameInDev = 'useImperativeHandle';
- mountHookTypesDev();
- checkDepsAreArrayDev(deps);
- return mountImperativeHandle(ref, create, deps);
- },
- useInsertionEffect: function (create, deps) {
- currentHookNameInDev = 'useInsertionEffect';
- mountHookTypesDev();
- checkDepsAreArrayDev(deps);
- return mountInsertionEffect(create, deps);
- },
- useLayoutEffect: function (create, deps) {
- currentHookNameInDev = 'useLayoutEffect';
- mountHookTypesDev();
- checkDepsAreArrayDev(deps);
- return mountLayoutEffect(create, deps);
- },
- useMemo: function (create, deps) {
- currentHookNameInDev = 'useMemo';
- mountHookTypesDev();
- checkDepsAreArrayDev(deps);
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
-
- try {
- return mountMemo(create, deps);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useReducer: function (reducer, initialArg, init) {
- currentHookNameInDev = 'useReducer';
- mountHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
-
- try {
- return mountReducer(reducer, initialArg, init);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useRef: function (initialValue) {
- currentHookNameInDev = 'useRef';
- mountHookTypesDev();
- return mountRef(initialValue);
- },
- useState: function (initialState) {
- currentHookNameInDev = 'useState';
- mountHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
-
- try {
- return mountState(initialState);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useDebugValue: function (value, formatterFn) {
- currentHookNameInDev = 'useDebugValue';
- mountHookTypesDev();
- return mountDebugValue();
- },
- useDeferredValue: function (value) {
- currentHookNameInDev = 'useDeferredValue';
- mountHookTypesDev();
- return mountDeferredValue(value);
- },
- useTransition: function () {
- currentHookNameInDev = 'useTransition';
- mountHookTypesDev();
- return mountTransition();
- },
- useMutableSource: function (source, getSnapshot, subscribe) {
- currentHookNameInDev = 'useMutableSource';
- mountHookTypesDev();
- return mountMutableSource();
- },
- useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
- currentHookNameInDev = 'useSyncExternalStore';
- mountHookTypesDev();
- return mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
- },
- useId: function () {
- currentHookNameInDev = 'useId';
- mountHookTypesDev();
- return mountId();
- },
- unstable_isNewReconciler: enableNewReconciler
- };
-
- HooksDispatcherOnMountWithHookTypesInDEV = {
- readContext: function (context) {
- return readContext(context);
- },
- useCallback: function (callback, deps) {
- currentHookNameInDev = 'useCallback';
- updateHookTypesDev();
- return mountCallback(callback, deps);
- },
- useContext: function (context) {
- currentHookNameInDev = 'useContext';
- updateHookTypesDev();
- return readContext(context);
- },
- useEffect: function (create, deps) {
- currentHookNameInDev = 'useEffect';
- updateHookTypesDev();
- return mountEffect(create, deps);
- },
- useImperativeHandle: function (ref, create, deps) {
- currentHookNameInDev = 'useImperativeHandle';
- updateHookTypesDev();
- return mountImperativeHandle(ref, create, deps);
- },
- useInsertionEffect: function (create, deps) {
- currentHookNameInDev = 'useInsertionEffect';
- updateHookTypesDev();
- return mountInsertionEffect(create, deps);
- },
- useLayoutEffect: function (create, deps) {
- currentHookNameInDev = 'useLayoutEffect';
- updateHookTypesDev();
- return mountLayoutEffect(create, deps);
- },
- useMemo: function (create, deps) {
- currentHookNameInDev = 'useMemo';
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
-
- try {
- return mountMemo(create, deps);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useReducer: function (reducer, initialArg, init) {
- currentHookNameInDev = 'useReducer';
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
-
- try {
- return mountReducer(reducer, initialArg, init);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useRef: function (initialValue) {
- currentHookNameInDev = 'useRef';
- updateHookTypesDev();
- return mountRef(initialValue);
- },
- useState: function (initialState) {
- currentHookNameInDev = 'useState';
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
-
- try {
- return mountState(initialState);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useDebugValue: function (value, formatterFn) {
- currentHookNameInDev = 'useDebugValue';
- updateHookTypesDev();
- return mountDebugValue();
- },
- useDeferredValue: function (value) {
- currentHookNameInDev = 'useDeferredValue';
- updateHookTypesDev();
- return mountDeferredValue(value);
- },
- useTransition: function () {
- currentHookNameInDev = 'useTransition';
- updateHookTypesDev();
- return mountTransition();
- },
- useMutableSource: function (source, getSnapshot, subscribe) {
- currentHookNameInDev = 'useMutableSource';
- updateHookTypesDev();
- return mountMutableSource();
- },
- useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
- currentHookNameInDev = 'useSyncExternalStore';
- updateHookTypesDev();
- return mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
- },
- useId: function () {
- currentHookNameInDev = 'useId';
- updateHookTypesDev();
- return mountId();
- },
- unstable_isNewReconciler: enableNewReconciler
- };
-
- HooksDispatcherOnUpdateInDEV = {
- readContext: function (context) {
- return readContext(context);
- },
- useCallback: function (callback, deps) {
- currentHookNameInDev = 'useCallback';
- updateHookTypesDev();
- return updateCallback(callback, deps);
- },
- useContext: function (context) {
- currentHookNameInDev = 'useContext';
- updateHookTypesDev();
- return readContext(context);
- },
- useEffect: function (create, deps) {
- currentHookNameInDev = 'useEffect';
- updateHookTypesDev();
- return updateEffect(create, deps);
- },
- useImperativeHandle: function (ref, create, deps) {
- currentHookNameInDev = 'useImperativeHandle';
- updateHookTypesDev();
- return updateImperativeHandle(ref, create, deps);
- },
- useInsertionEffect: function (create, deps) {
- currentHookNameInDev = 'useInsertionEffect';
- updateHookTypesDev();
- return updateInsertionEffect(create, deps);
- },
- useLayoutEffect: function (create, deps) {
- currentHookNameInDev = 'useLayoutEffect';
- updateHookTypesDev();
- return updateLayoutEffect(create, deps);
- },
- useMemo: function (create, deps) {
- currentHookNameInDev = 'useMemo';
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
-
- try {
- return updateMemo(create, deps);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useReducer: function (reducer, initialArg, init) {
- currentHookNameInDev = 'useReducer';
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
-
- try {
- return updateReducer(reducer, initialArg, init);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useRef: function (initialValue) {
- currentHookNameInDev = 'useRef';
- updateHookTypesDev();
- return updateRef();
- },
- useState: function (initialState) {
- currentHookNameInDev = 'useState';
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
-
- try {
- return updateState(initialState);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useDebugValue: function (value, formatterFn) {
- currentHookNameInDev = 'useDebugValue';
- updateHookTypesDev();
- return updateDebugValue();
- },
- useDeferredValue: function (value) {
- currentHookNameInDev = 'useDeferredValue';
- updateHookTypesDev();
- return updateDeferredValue(value);
- },
- useTransition: function () {
- currentHookNameInDev = 'useTransition';
- updateHookTypesDev();
- return updateTransition();
- },
- useMutableSource: function (source, getSnapshot, subscribe) {
- currentHookNameInDev = 'useMutableSource';
- updateHookTypesDev();
- return updateMutableSource();
- },
- useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
- currentHookNameInDev = 'useSyncExternalStore';
- updateHookTypesDev();
- return updateSyncExternalStore(subscribe, getSnapshot);
- },
- useId: function () {
- currentHookNameInDev = 'useId';
- updateHookTypesDev();
- return updateId();
- },
- unstable_isNewReconciler: enableNewReconciler
- };
-
- HooksDispatcherOnRerenderInDEV = {
- readContext: function (context) {
- return readContext(context);
- },
- useCallback: function (callback, deps) {
- currentHookNameInDev = 'useCallback';
- updateHookTypesDev();
- return updateCallback(callback, deps);
- },
- useContext: function (context) {
- currentHookNameInDev = 'useContext';
- updateHookTypesDev();
- return readContext(context);
- },
- useEffect: function (create, deps) {
- currentHookNameInDev = 'useEffect';
- updateHookTypesDev();
- return updateEffect(create, deps);
- },
- useImperativeHandle: function (ref, create, deps) {
- currentHookNameInDev = 'useImperativeHandle';
- updateHookTypesDev();
- return updateImperativeHandle(ref, create, deps);
- },
- useInsertionEffect: function (create, deps) {
- currentHookNameInDev = 'useInsertionEffect';
- updateHookTypesDev();
- return updateInsertionEffect(create, deps);
- },
- useLayoutEffect: function (create, deps) {
- currentHookNameInDev = 'useLayoutEffect';
- updateHookTypesDev();
- return updateLayoutEffect(create, deps);
- },
- useMemo: function (create, deps) {
- currentHookNameInDev = 'useMemo';
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
-
- try {
- return updateMemo(create, deps);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useReducer: function (reducer, initialArg, init) {
- currentHookNameInDev = 'useReducer';
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
-
- try {
- return rerenderReducer(reducer, initialArg, init);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useRef: function (initialValue) {
- currentHookNameInDev = 'useRef';
- updateHookTypesDev();
- return updateRef();
- },
- useState: function (initialState) {
- currentHookNameInDev = 'useState';
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
-
- try {
- return rerenderState(initialState);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useDebugValue: function (value, formatterFn) {
- currentHookNameInDev = 'useDebugValue';
- updateHookTypesDev();
- return updateDebugValue();
- },
- useDeferredValue: function (value) {
- currentHookNameInDev = 'useDeferredValue';
- updateHookTypesDev();
- return rerenderDeferredValue(value);
- },
- useTransition: function () {
- currentHookNameInDev = 'useTransition';
- updateHookTypesDev();
- return rerenderTransition();
- },
- useMutableSource: function (source, getSnapshot, subscribe) {
- currentHookNameInDev = 'useMutableSource';
- updateHookTypesDev();
- return updateMutableSource();
- },
- useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
- currentHookNameInDev = 'useSyncExternalStore';
- updateHookTypesDev();
- return updateSyncExternalStore(subscribe, getSnapshot);
- },
- useId: function () {
- currentHookNameInDev = 'useId';
- updateHookTypesDev();
- return updateId();
- },
- unstable_isNewReconciler: enableNewReconciler
- };
-
- InvalidNestedHooksDispatcherOnMountInDEV = {
- readContext: function (context) {
- warnInvalidContextAccess();
- return readContext(context);
- },
- useCallback: function (callback, deps) {
- currentHookNameInDev = 'useCallback';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountCallback(callback, deps);
- },
- useContext: function (context) {
- currentHookNameInDev = 'useContext';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return readContext(context);
- },
- useEffect: function (create, deps) {
- currentHookNameInDev = 'useEffect';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountEffect(create, deps);
- },
- useImperativeHandle: function (ref, create, deps) {
- currentHookNameInDev = 'useImperativeHandle';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountImperativeHandle(ref, create, deps);
- },
- useInsertionEffect: function (create, deps) {
- currentHookNameInDev = 'useInsertionEffect';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountInsertionEffect(create, deps);
- },
- useLayoutEffect: function (create, deps) {
- currentHookNameInDev = 'useLayoutEffect';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountLayoutEffect(create, deps);
- },
- useMemo: function (create, deps) {
- currentHookNameInDev = 'useMemo';
- warnInvalidHookAccess();
- mountHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
-
- try {
- return mountMemo(create, deps);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useReducer: function (reducer, initialArg, init) {
- currentHookNameInDev = 'useReducer';
- warnInvalidHookAccess();
- mountHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
-
- try {
- return mountReducer(reducer, initialArg, init);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useRef: function (initialValue) {
- currentHookNameInDev = 'useRef';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountRef(initialValue);
- },
- useState: function (initialState) {
- currentHookNameInDev = 'useState';
- warnInvalidHookAccess();
- mountHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
-
- try {
- return mountState(initialState);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useDebugValue: function (value, formatterFn) {
- currentHookNameInDev = 'useDebugValue';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountDebugValue();
- },
- useDeferredValue: function (value) {
- currentHookNameInDev = 'useDeferredValue';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountDeferredValue(value);
- },
- useTransition: function () {
- currentHookNameInDev = 'useTransition';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountTransition();
- },
- useMutableSource: function (source, getSnapshot, subscribe) {
- currentHookNameInDev = 'useMutableSource';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountMutableSource();
- },
- useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
- currentHookNameInDev = 'useSyncExternalStore';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
- },
- useId: function () {
- currentHookNameInDev = 'useId';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountId();
- },
- unstable_isNewReconciler: enableNewReconciler
- };
-
- InvalidNestedHooksDispatcherOnUpdateInDEV = {
- readContext: function (context) {
- warnInvalidContextAccess();
- return readContext(context);
- },
- useCallback: function (callback, deps) {
- currentHookNameInDev = 'useCallback';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateCallback(callback, deps);
- },
- useContext: function (context) {
- currentHookNameInDev = 'useContext';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return readContext(context);
- },
- useEffect: function (create, deps) {
- currentHookNameInDev = 'useEffect';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateEffect(create, deps);
- },
- useImperativeHandle: function (ref, create, deps) {
- currentHookNameInDev = 'useImperativeHandle';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateImperativeHandle(ref, create, deps);
- },
- useInsertionEffect: function (create, deps) {
- currentHookNameInDev = 'useInsertionEffect';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateInsertionEffect(create, deps);
- },
- useLayoutEffect: function (create, deps) {
- currentHookNameInDev = 'useLayoutEffect';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateLayoutEffect(create, deps);
- },
- useMemo: function (create, deps) {
- currentHookNameInDev = 'useMemo';
- warnInvalidHookAccess();
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
-
- try {
- return updateMemo(create, deps);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useReducer: function (reducer, initialArg, init) {
- currentHookNameInDev = 'useReducer';
- warnInvalidHookAccess();
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
-
- try {
- return updateReducer(reducer, initialArg, init);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useRef: function (initialValue) {
- currentHookNameInDev = 'useRef';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateRef();
- },
- useState: function (initialState) {
- currentHookNameInDev = 'useState';
- warnInvalidHookAccess();
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
-
- try {
- return updateState(initialState);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useDebugValue: function (value, formatterFn) {
- currentHookNameInDev = 'useDebugValue';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateDebugValue();
- },
- useDeferredValue: function (value) {
- currentHookNameInDev = 'useDeferredValue';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateDeferredValue(value);
- },
- useTransition: function () {
- currentHookNameInDev = 'useTransition';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateTransition();
- },
- useMutableSource: function (source, getSnapshot, subscribe) {
- currentHookNameInDev = 'useMutableSource';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateMutableSource();
- },
- useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
- currentHookNameInDev = 'useSyncExternalStore';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateSyncExternalStore(subscribe, getSnapshot);
- },
- useId: function () {
- currentHookNameInDev = 'useId';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateId();
- },
- unstable_isNewReconciler: enableNewReconciler
- };
-
- InvalidNestedHooksDispatcherOnRerenderInDEV = {
- readContext: function (context) {
- warnInvalidContextAccess();
- return readContext(context);
- },
- useCallback: function (callback, deps) {
- currentHookNameInDev = 'useCallback';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateCallback(callback, deps);
- },
- useContext: function (context) {
- currentHookNameInDev = 'useContext';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return readContext(context);
- },
- useEffect: function (create, deps) {
- currentHookNameInDev = 'useEffect';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateEffect(create, deps);
- },
- useImperativeHandle: function (ref, create, deps) {
- currentHookNameInDev = 'useImperativeHandle';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateImperativeHandle(ref, create, deps);
- },
- useInsertionEffect: function (create, deps) {
- currentHookNameInDev = 'useInsertionEffect';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateInsertionEffect(create, deps);
- },
- useLayoutEffect: function (create, deps) {
- currentHookNameInDev = 'useLayoutEffect';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateLayoutEffect(create, deps);
- },
- useMemo: function (create, deps) {
- currentHookNameInDev = 'useMemo';
- warnInvalidHookAccess();
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
-
- try {
- return updateMemo(create, deps);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useReducer: function (reducer, initialArg, init) {
- currentHookNameInDev = 'useReducer';
- warnInvalidHookAccess();
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
-
- try {
- return rerenderReducer(reducer, initialArg, init);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useRef: function (initialValue) {
- currentHookNameInDev = 'useRef';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateRef();
- },
- useState: function (initialState) {
- currentHookNameInDev = 'useState';
- warnInvalidHookAccess();
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
-
- try {
- return rerenderState(initialState);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useDebugValue: function (value, formatterFn) {
- currentHookNameInDev = 'useDebugValue';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateDebugValue();
- },
- useDeferredValue: function (value) {
- currentHookNameInDev = 'useDeferredValue';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return rerenderDeferredValue(value);
- },
- useTransition: function () {
- currentHookNameInDev = 'useTransition';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return rerenderTransition();
- },
- useMutableSource: function (source, getSnapshot, subscribe) {
- currentHookNameInDev = 'useMutableSource';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateMutableSource();
- },
- useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
- currentHookNameInDev = 'useSyncExternalStore';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateSyncExternalStore(subscribe, getSnapshot);
- },
- useId: function () {
- currentHookNameInDev = 'useId';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateId();
- },
- unstable_isNewReconciler: enableNewReconciler
- };
- }
-
- var now$1 = unstable_now;
- var commitTime = 0;
- var layoutEffectStartTime = -1;
- var profilerStartTime = -1;
- var passiveEffectStartTime = -1;
- /**
- * Tracks whether the current update was a nested/cascading update (scheduled from a layout effect).
- *
- * The overall sequence is:
- * 1. render
- * 2. commit (and call `onRender`, `onCommit`)
- * 3. check for nested updates
- * 4. flush passive effects (and call `onPostCommit`)
- *
- * Nested updates are identified in step 3 above,
- * but step 4 still applies to the work that was just committed.
- * We use two flags to track nested updates then:
- * one tracks whether the upcoming update is a nested update,
- * and the other tracks whether the current update was a nested update.
- * The first value gets synced to the second at the start of the render phase.
- */
-
- var currentUpdateIsNested = false;
- var nestedUpdateScheduled = false;
-
- function isCurrentUpdateNested() {
- return currentUpdateIsNested;
- }
-
- function markNestedUpdateScheduled() {
- {
- nestedUpdateScheduled = true;
- }
- }
-
- function resetNestedUpdateFlag() {
- {
- currentUpdateIsNested = false;
- nestedUpdateScheduled = false;
- }
- }
-
- function syncNestedUpdateFlag() {
- {
- currentUpdateIsNested = nestedUpdateScheduled;
- nestedUpdateScheduled = false;
- }
- }
-
- function getCommitTime() {
- return commitTime;
- }
-
- function recordCommitTime() {
-
- commitTime = now$1();
- }
-
- function startProfilerTimer(fiber) {
-
- profilerStartTime = now$1();
-
- if (fiber.actualStartTime < 0) {
- fiber.actualStartTime = now$1();
- }
- }
-
- function stopProfilerTimerIfRunning(fiber) {
-
- profilerStartTime = -1;
- }
-
- function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
-
- if (profilerStartTime >= 0) {
- var elapsedTime = now$1() - profilerStartTime;
- fiber.actualDuration += elapsedTime;
-
- if (overrideBaseTime) {
- fiber.selfBaseDuration = elapsedTime;
- }
-
- profilerStartTime = -1;
- }
- }
-
- function recordLayoutEffectDuration(fiber) {
-
- if (layoutEffectStartTime >= 0) {
- var elapsedTime = now$1() - layoutEffectStartTime;
- layoutEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor
- // Or the root (for the DevTools Profiler to read)
-
- var parentFiber = fiber.return;
-
- while (parentFiber !== null) {
- switch (parentFiber.tag) {
- case HostRoot:
- var root = parentFiber.stateNode;
- root.effectDuration += elapsedTime;
- return;
-
- case Profiler:
- var parentStateNode = parentFiber.stateNode;
- parentStateNode.effectDuration += elapsedTime;
- return;
- }
-
- parentFiber = parentFiber.return;
- }
- }
- }
-
- function recordPassiveEffectDuration(fiber) {
-
- if (passiveEffectStartTime >= 0) {
- var elapsedTime = now$1() - passiveEffectStartTime;
- passiveEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor
- // Or the root (for the DevTools Profiler to read)
-
- var parentFiber = fiber.return;
-
- while (parentFiber !== null) {
- switch (parentFiber.tag) {
- case HostRoot:
- var root = parentFiber.stateNode;
-
- if (root !== null) {
- root.passiveEffectDuration += elapsedTime;
- }
-
- return;
-
- case Profiler:
- var parentStateNode = parentFiber.stateNode;
-
- if (parentStateNode !== null) {
- // Detached fibers have their state node cleared out.
- // In this case, the return pointer is also cleared out,
- // so we won't be able to report the time spent in this Profiler's subtree.
- parentStateNode.passiveEffectDuration += elapsedTime;
- }
-
- return;
- }
-
- parentFiber = parentFiber.return;
- }
- }
- }
-
- function startLayoutEffectTimer() {
-
- layoutEffectStartTime = now$1();
- }
-
- function startPassiveEffectTimer() {
-
- passiveEffectStartTime = now$1();
- }
-
- function transferActualDuration(fiber) {
- // Transfer time spent rendering these children so we don't lose it
- // after we rerender. This is used as a helper in special cases
- // where we should count the work of multiple passes.
- var child = fiber.child;
-
- while (child) {
- fiber.actualDuration += child.actualDuration;
- child = child.sibling;
- }
- }
-
- function createCapturedValueAtFiber(value, source) {
- // If the value is an error, call this function immediately after it is thrown
- // so the stack is accurate.
- return {
- value: value,
- source: source,
- stack: getStackByFiberInDevAndProd(source),
- digest: null
- };
- }
- function createCapturedValue(value, digest, stack) {
- return {
- value: value,
- source: null,
- stack: stack != null ? stack : null,
- digest: digest != null ? digest : null
- };
- }
-
- // This module is forked in different environments.
- // By default, return `true` to log errors to the console.
- // Forks can return `false` if this isn't desirable.
- function showErrorDialog(boundary, errorInfo) {
- return true;
- }
-
- function logCapturedError(boundary, errorInfo) {
- try {
- var logError = showErrorDialog(boundary, errorInfo); // Allow injected showErrorDialog() to prevent default console.error logging.
- // This enables renderers like ReactNative to better manage redbox behavior.
-
- if (logError === false) {
- return;
- }
-
- var error = errorInfo.value;
-
- if (true) {
- var source = errorInfo.source;
- var stack = errorInfo.stack;
- var componentStack = stack !== null ? stack : ''; // Browsers support silencing uncaught errors by calling
- // `preventDefault()` in window `error` handler.
- // We record this information as an expando on the error.
-
- if (error != null && error._suppressLogging) {
- if (boundary.tag === ClassComponent) {
- // The error is recoverable and was silenced.
- // Ignore it and don't print the stack addendum.
- // This is handy for testing error boundaries without noise.
- return;
- } // The error is fatal. Since the silencing might have
- // been accidental, we'll surface it anyway.
- // However, the browser would have silenced the original error
- // so we'll print it first, and then print the stack addendum.
-
-
- console['error'](error); // Don't transform to our wrapper
- // For a more detailed description of this block, see:
- // https://github.com/facebook/react/pull/13384
- }
-
- var componentName = source ? getComponentNameFromFiber(source) : null;
- var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : 'The above error occurred in one of your React components:';
- var errorBoundaryMessage;
-
- if (boundary.tag === HostRoot) {
- errorBoundaryMessage = 'Consider adding an error boundary to your tree to customize error handling behavior.\n' + 'Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.';
- } else {
- var errorBoundaryName = getComponentNameFromFiber(boundary) || 'Anonymous';
- errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + ".");
- }
-
- var combinedMessage = componentNameMessage + "\n" + componentStack + "\n\n" + ("" + errorBoundaryMessage); // In development, we provide our own message with just the component stack.
- // We don't include the original error message and JS stack because the browser
- // has already printed it. Even if the application swallows the error, it is still
- // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.
-
- console['error'](combinedMessage); // Don't transform to our wrapper
- } else {
- // In production, we print the error directly.
- // This will include the message, the JS stack, and anything the browser wants to show.
- // We pass the error object instead of custom message so that the browser displays the error natively.
- console['error'](error); // Don't transform to our wrapper
- }
- } catch (e) {
- // This method must not throw, or React internal state will get messed up.
- // If console.error is overridden, or logCapturedError() shows a dialog that throws,
- // we want to report this error outside of the normal stack as a last resort.
- // https://github.com/facebook/react/issues/13188
- setTimeout(function () {
- throw e;
- });
- }
- }
-
- var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;
-
- function createRootErrorUpdate(fiber, errorInfo, lane) {
- var update = createUpdate(NoTimestamp, lane); // Unmount the root by rendering null.
-
- update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property
- // being called "element".
-
- update.payload = {
- element: null
- };
- var error = errorInfo.value;
-
- update.callback = function () {
- onUncaughtError(error);
- logCapturedError(fiber, errorInfo);
- };
-
- return update;
- }
-
- function createClassErrorUpdate(fiber, errorInfo, lane) {
- var update = createUpdate(NoTimestamp, lane);
- update.tag = CaptureUpdate;
- var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
-
- if (typeof getDerivedStateFromError === 'function') {
- var error$1 = errorInfo.value;
-
- update.payload = function () {
- return getDerivedStateFromError(error$1);
- };
-
- update.callback = function () {
- {
- markFailedErrorBoundaryForHotReloading(fiber);
- }
-
- logCapturedError(fiber, errorInfo);
- };
- }
-
- var inst = fiber.stateNode;
-
- if (inst !== null && typeof inst.componentDidCatch === 'function') {
- update.callback = function callback() {
- {
- markFailedErrorBoundaryForHotReloading(fiber);
- }
-
- logCapturedError(fiber, errorInfo);
-
- if (typeof getDerivedStateFromError !== 'function') {
- // To preserve the preexisting retry behavior of error boundaries,
- // we keep track of which ones already failed during this batch.
- // This gets reset before we yield back to the browser.
- // TODO: Warn in strict mode if getDerivedStateFromError is
- // not defined.
- markLegacyErrorBoundaryAsFailed(this);
- }
-
- var error$1 = errorInfo.value;
- var stack = errorInfo.stack;
- this.componentDidCatch(error$1, {
- componentStack: stack !== null ? stack : ''
- });
-
- {
- if (typeof getDerivedStateFromError !== 'function') {
- // If componentDidCatch is the only error boundary method defined,
- // then it needs to call setState to recover from errors.
- // If no state update is scheduled then the boundary will swallow the error.
- if (!includesSomeLane(fiber.lanes, SyncLane)) {
- error('%s: Error boundaries should implement getDerivedStateFromError(). ' + 'In that method, return a state update to display an error message or fallback UI.', getComponentNameFromFiber(fiber) || 'Unknown');
- }
- }
- }
- };
- }
-
- return update;
- }
-
- function attachPingListener(root, wakeable, lanes) {
- // Attach a ping listener
- //
- // The data might resolve before we have a chance to commit the fallback. Or,
- // in the case of a refresh, we'll never commit a fallback. So we need to
- // attach a listener now. When it resolves ("pings"), we can decide whether to
- // try rendering the tree again.
- //
- // Only attach a listener if one does not already exist for the lanes
- // we're currently rendering (which acts like a "thread ID" here).
- //
- // We only need to do this in concurrent mode. Legacy Suspense always
- // commits fallbacks synchronously, so there are no pings.
- var pingCache = root.pingCache;
- var threadIDs;
-
- if (pingCache === null) {
- pingCache = root.pingCache = new PossiblyWeakMap$1();
- threadIDs = new Set();
- pingCache.set(wakeable, threadIDs);
- } else {
- threadIDs = pingCache.get(wakeable);
-
- if (threadIDs === undefined) {
- threadIDs = new Set();
- pingCache.set(wakeable, threadIDs);
- }
- }
-
- if (!threadIDs.has(lanes)) {
- // Memoize using the thread ID to prevent redundant listeners.
- threadIDs.add(lanes);
- var ping = pingSuspendedRoot.bind(null, root, wakeable, lanes);
-
- {
- if (isDevToolsPresent) {
- // If we have pending work still, restore the original updaters
- restorePendingUpdaters(root, lanes);
- }
- }
-
- wakeable.then(ping, ping);
- }
- }
-
- function attachRetryListener(suspenseBoundary, root, wakeable, lanes) {
- // Retry listener
- //
- // If the fallback does commit, we need to attach a different type of
- // listener. This one schedules an update on the Suspense boundary to turn
- // the fallback state off.
- //
- // Stash the wakeable on the boundary fiber so we can access it in the
- // commit phase.
- //
- // When the wakeable resolves, we'll attempt to render the boundary
- // again ("retry").
- var wakeables = suspenseBoundary.updateQueue;
-
- if (wakeables === null) {
- var updateQueue = new Set();
- updateQueue.add(wakeable);
- suspenseBoundary.updateQueue = updateQueue;
- } else {
- wakeables.add(wakeable);
- }
- }
-
- function resetSuspendedComponent(sourceFiber, rootRenderLanes) {
- // A legacy mode Suspense quirk, only relevant to hook components.
-
-
- var tag = sourceFiber.tag;
-
- if ((sourceFiber.mode & ConcurrentMode) === NoMode && (tag === FunctionComponent || tag === ForwardRef || tag === SimpleMemoComponent)) {
- var currentSource = sourceFiber.alternate;
-
- if (currentSource) {
- sourceFiber.updateQueue = currentSource.updateQueue;
- sourceFiber.memoizedState = currentSource.memoizedState;
- sourceFiber.lanes = currentSource.lanes;
- } else {
- sourceFiber.updateQueue = null;
- sourceFiber.memoizedState = null;
- }
- }
- }
-
- function getNearestSuspenseBoundaryToCapture(returnFiber) {
- var node = returnFiber;
-
- do {
- if (node.tag === SuspenseComponent && shouldCaptureSuspense(node)) {
- return node;
- } // This boundary already captured during this render. Continue to the next
- // boundary.
-
-
- node = node.return;
- } while (node !== null);
-
- return null;
- }
-
- function markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes) {
- // This marks a Suspense boundary so that when we're unwinding the stack,
- // it captures the suspended "exception" and does a second (fallback) pass.
- if ((suspenseBoundary.mode & ConcurrentMode) === NoMode) {
- // Legacy Mode Suspense
- //
- // If the boundary is in legacy mode, we should *not*
- // suspend the commit. Pretend as if the suspended component rendered
- // null and keep rendering. When the Suspense boundary completes,
- // we'll do a second pass to render the fallback.
- if (suspenseBoundary === returnFiber) {
- // Special case where we suspended while reconciling the children of
- // a Suspense boundary's inner Offscreen wrapper fiber. This happens
- // when a React.lazy component is a direct child of a
- // Suspense boundary.
- //
- // Suspense boundaries are implemented as multiple fibers, but they
- // are a single conceptual unit. The legacy mode behavior where we
- // pretend the suspended fiber committed as `null` won't work,
- // because in this case the "suspended" fiber is the inner
- // Offscreen wrapper.
- //
- // Because the contents of the boundary haven't started rendering
- // yet (i.e. nothing in the tree has partially rendered) we can
- // switch to the regular, concurrent mode behavior: mark the
- // boundary with ShouldCapture and enter the unwind phase.
- suspenseBoundary.flags |= ShouldCapture;
- } else {
- suspenseBoundary.flags |= DidCapture;
- sourceFiber.flags |= ForceUpdateForLegacySuspense; // We're going to commit this fiber even though it didn't complete.
- // But we shouldn't call any lifecycle methods or callbacks. Remove
- // all lifecycle effect tags.
-
- sourceFiber.flags &= ~(LifecycleEffectMask | Incomplete);
-
- if (sourceFiber.tag === ClassComponent) {
- var currentSourceFiber = sourceFiber.alternate;
-
- if (currentSourceFiber === null) {
- // This is a new mount. Change the tag so it's not mistaken for a
- // completed class component. For example, we should not call
- // componentWillUnmount if it is deleted.
- sourceFiber.tag = IncompleteClassComponent;
- } else {
- // When we try rendering again, we should not reuse the current fiber,
- // since it's known to be in an inconsistent state. Use a force update to
- // prevent a bail out.
- var update = createUpdate(NoTimestamp, SyncLane);
- update.tag = ForceUpdate;
- enqueueUpdate(sourceFiber, update, SyncLane);
- }
- } // The source fiber did not complete. Mark it with Sync priority to
- // indicate that it still has pending work.
-
-
- sourceFiber.lanes = mergeLanes(sourceFiber.lanes, SyncLane);
- }
-
- return suspenseBoundary;
- } // Confirmed that the boundary is in a concurrent mode tree. Continue
- // with the normal suspend path.
- //
- // After this we'll use a set of heuristics to determine whether this
- // render pass will run to completion or restart or "suspend" the commit.
- // The actual logic for this is spread out in different places.
- //
- // This first principle is that if we're going to suspend when we complete
- // a root, then we should also restart if we get an update or ping that
- // might unsuspend it, and vice versa. The only reason to suspend is
- // because you think you might want to restart before committing. However,
- // it doesn't make sense to restart only while in the period we're suspended.
- //
- // Restarting too aggressively is also not good because it starves out any
- // intermediate loading state. So we use heuristics to determine when.
- // Suspense Heuristics
- //
- // If nothing threw a Promise or all the same fallbacks are already showing,
- // then don't suspend/restart.
- //
- // If this is an initial render of a new tree of Suspense boundaries and
- // those trigger a fallback, then don't suspend/restart. We want to ensure
- // that we can show the initial loading state as quickly as possible.
- //
- // If we hit a "Delayed" case, such as when we'd switch from content back into
- // a fallback, then we should always suspend/restart. Transitions apply
- // to this case. If none is defined, JND is used instead.
- //
- // If we're already showing a fallback and it gets "retried", allowing us to show
- // another level, but there's still an inner boundary that would show a fallback,
- // then we suspend/restart for 500ms since the last time we showed a fallback
- // anywhere in the tree. This effectively throttles progressive loading into a
- // consistent train of commits. This also gives us an opportunity to restart to
- // get to the completed state slightly earlier.
- //
- // If there's ambiguity due to batching it's resolved in preference of:
- // 1) "delayed", 2) "initial render", 3) "retry".
- //
- // We want to ensure that a "busy" state doesn't get force committed. We want to
- // ensure that new initial loading states can commit as soon as possible.
-
-
- suspenseBoundary.flags |= ShouldCapture; // TODO: I think we can remove this, since we now use `DidCapture` in
- // the begin phase to prevent an early bailout.
-
- suspenseBoundary.lanes = rootRenderLanes;
- return suspenseBoundary;
- }
-
- function throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) {
- // The source fiber did not complete.
- sourceFiber.flags |= Incomplete;
-
- {
- if (isDevToolsPresent) {
- // If we have pending work still, restore the original updaters
- restorePendingUpdaters(root, rootRenderLanes);
- }
- }
-
- if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
- // This is a wakeable. The component suspended.
- var wakeable = value;
- resetSuspendedComponent(sourceFiber);
-
- {
- if (getIsHydrating() && sourceFiber.mode & ConcurrentMode) {
- markDidThrowWhileHydratingDEV();
- }
- }
-
-
- var suspenseBoundary = getNearestSuspenseBoundaryToCapture(returnFiber);
-
- if (suspenseBoundary !== null) {
- suspenseBoundary.flags &= ~ForceClientRender;
- markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes); // We only attach ping listeners in concurrent mode. Legacy Suspense always
- // commits fallbacks synchronously, so there are no pings.
-
- if (suspenseBoundary.mode & ConcurrentMode) {
- attachPingListener(root, wakeable, rootRenderLanes);
- }
-
- attachRetryListener(suspenseBoundary, root, wakeable);
- return;
- } else {
- // No boundary was found. Unless this is a sync update, this is OK.
- // We can suspend and wait for more data to arrive.
- if (!includesSyncLane(rootRenderLanes)) {
- // This is not a sync update. Suspend. Since we're not activating a
- // Suspense boundary, this will unwind all the way to the root without
- // performing a second pass to render a fallback. (This is arguably how
- // refresh transitions should work, too, since we're not going to commit
- // the fallbacks anyway.)
- //
- // This case also applies to initial hydration.
- attachPingListener(root, wakeable, rootRenderLanes);
- renderDidSuspendDelayIfPossible();
- return;
- } // This is a sync/discrete update. We treat this case like an error
- // because discrete renders are expected to produce a complete tree
- // synchronously to maintain consistency with external state.
-
-
- var uncaughtSuspenseError = new Error('A component suspended while responding to synchronous input. This ' + 'will cause the UI to be replaced with a loading indicator. To ' + 'fix, updates that suspend should be wrapped ' + 'with startTransition.'); // If we're outside a transition, fall through to the regular error path.
- // The error will be caught by the nearest suspense boundary.
-
- value = uncaughtSuspenseError;
- }
- } else {
- // This is a regular error, not a Suspense wakeable.
- if (getIsHydrating() && sourceFiber.mode & ConcurrentMode) {
- markDidThrowWhileHydratingDEV();
-
- var _suspenseBoundary = getNearestSuspenseBoundaryToCapture(returnFiber); // If the error was thrown during hydration, we may be able to recover by
- // discarding the dehydrated content and switching to a client render.
- // Instead of surfacing the error, find the nearest Suspense boundary
- // and render it again without hydration.
-
-
- if (_suspenseBoundary !== null) {
- if ((_suspenseBoundary.flags & ShouldCapture) === NoFlags) {
- // Set a flag to indicate that we should try rendering the normal
- // children again, not the fallback.
- _suspenseBoundary.flags |= ForceClientRender;
- }
-
- markSuspenseBoundaryShouldCapture(_suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes); // Even though the user may not be affected by this error, we should
- // still log it so it can be fixed.
-
- queueHydrationError(createCapturedValueAtFiber(value, sourceFiber));
- return;
- }
- }
- }
-
- value = createCapturedValueAtFiber(value, sourceFiber);
- renderDidError(value); // We didn't find a boundary that could handle this type of exception. Start
- // over and traverse parent path again, this time treating the exception
- // as an error.
-
- var workInProgress = returnFiber;
-
- do {
- switch (workInProgress.tag) {
- case HostRoot:
- {
- var _errorInfo = value;
- workInProgress.flags |= ShouldCapture;
- var lane = pickArbitraryLane(rootRenderLanes);
- workInProgress.lanes = mergeLanes(workInProgress.lanes, lane);
- var update = createRootErrorUpdate(workInProgress, _errorInfo, lane);
- enqueueCapturedUpdate(workInProgress, update);
- return;
- }
-
- case ClassComponent:
- // Capture and retry
- var errorInfo = value;
- var ctor = workInProgress.type;
- var instance = workInProgress.stateNode;
-
- if ((workInProgress.flags & DidCapture) === NoFlags && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
- workInProgress.flags |= ShouldCapture;
-
- var _lane = pickArbitraryLane(rootRenderLanes);
-
- workInProgress.lanes = mergeLanes(workInProgress.lanes, _lane); // Schedule the error boundary to re-render using updated state
-
- var _update = createClassErrorUpdate(workInProgress, errorInfo, _lane);
-
- enqueueCapturedUpdate(workInProgress, _update);
- return;
- }
-
- break;
- }
-
- workInProgress = workInProgress.return;
- } while (workInProgress !== null);
- }
-
- function getSuspendedCache() {
- {
- return null;
- } // This function is called when a Suspense boundary suspends. It returns the
- }
-
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
- var didReceiveUpdate = false;
- var didWarnAboutBadClass;
- var didWarnAboutModulePatternComponent;
- var didWarnAboutContextTypeOnFunctionComponent;
- var didWarnAboutGetDerivedStateOnFunctionComponent;
- var didWarnAboutFunctionRefs;
- var didWarnAboutReassigningProps;
- var didWarnAboutRevealOrder;
- var didWarnAboutTailOptions;
-
- {
- didWarnAboutBadClass = {};
- didWarnAboutModulePatternComponent = {};
- didWarnAboutContextTypeOnFunctionComponent = {};
- didWarnAboutGetDerivedStateOnFunctionComponent = {};
- didWarnAboutFunctionRefs = {};
- didWarnAboutReassigningProps = false;
- didWarnAboutRevealOrder = {};
- didWarnAboutTailOptions = {};
- }
-
- function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
- if (current === null) {
- // If this is a fresh new component that hasn't been rendered yet, we
- // won't update its child set by applying minimal side-effects. Instead,
- // we will add them all to the child before it gets rendered. That means
- // we can optimize this reconciliation pass by not tracking side-effects.
- workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderLanes);
- } else {
- // If the current child is the same as the work in progress, it means that
- // we haven't yet started any work on these children. Therefore, we use
- // the clone algorithm to create a copy of all the current children.
- // If we had any progressed work already, that is invalid at this point so
- // let's throw it out.
- workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes);
- }
- }
-
- function forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes) {
- // This function is fork of reconcileChildren. It's used in cases where we
- // want to reconcile without matching against the existing set. This has the
- // effect of all current children being unmounted; even if the type and key
- // are the same, the old child is unmounted and a new child is created.
- //
- // To do this, we're going to go through the reconcile algorithm twice. In
- // the first pass, we schedule a deletion for all the current children by
- // passing null.
- workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes); // In the second pass, we mount the new children. The trick here is that we
- // pass null in place of where we usually pass the current child set. This has
- // the effect of remounting all children regardless of whether their
- // identities match.
-
- workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes);
- }
-
- function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) {
- // TODO: current can be non-null here even if the component
- // hasn't yet mounted. This happens after the first render suspends.
- // We'll need to figure out if this is fine or can cause issues.
- {
- if (workInProgress.type !== workInProgress.elementType) {
- // Lazy component props can't be validated in createElement
- // because they're only guaranteed to be resolved here.
- var innerPropTypes = Component.propTypes;
-
- if (innerPropTypes) {
- checkPropTypes(innerPropTypes, nextProps, // Resolved props
- 'prop', getComponentNameFromType(Component));
- }
- }
- }
-
- var render = Component.render;
- var ref = workInProgress.ref; // The rest is a fork of updateFunctionComponent
-
- var nextChildren;
- var hasId;
- prepareToReadContext(workInProgress, renderLanes);
-
- {
- markComponentRenderStarted(workInProgress);
- }
-
- {
- ReactCurrentOwner$1.current = workInProgress;
- setIsRendering(true);
- nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes);
- hasId = checkDidRenderIdHook();
-
- if ( workInProgress.mode & StrictLegacyMode) {
- setIsStrictModeForDevtools(true);
-
- try {
- nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes);
- hasId = checkDidRenderIdHook();
- } finally {
- setIsStrictModeForDevtools(false);
- }
- }
-
- setIsRendering(false);
- }
-
- {
- markComponentRenderStopped();
- }
-
- if (current !== null && !didReceiveUpdate) {
- bailoutHooks(current, workInProgress, renderLanes);
- return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
- }
-
- if (getIsHydrating() && hasId) {
- pushMaterializedTreeId(workInProgress);
- } // React DevTools reads this flag.
-
-
- workInProgress.flags |= PerformedWork;
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- return workInProgress.child;
- }
-
- function updateMemoComponent(current, workInProgress, Component, nextProps, renderLanes) {
- if (current === null) {
- var type = Component.type;
-
- if (isSimpleFunctionComponent(type) && Component.compare === null && // SimpleMemoComponent codepath doesn't resolve outer props either.
- Component.defaultProps === undefined) {
- var resolvedType = type;
-
- {
- resolvedType = resolveFunctionForHotReloading(type);
- } // If this is a plain function component without default props,
- // and with only the default shallow comparison, we upgrade it
- // to a SimpleMemoComponent to allow fast path updates.
-
-
- workInProgress.tag = SimpleMemoComponent;
- workInProgress.type = resolvedType;
-
- {
- validateFunctionComponentInDev(workInProgress, type);
- }
-
- return updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, renderLanes);
- }
-
- {
- var innerPropTypes = type.propTypes;
-
- if (innerPropTypes) {
- // Inner memo component props aren't currently validated in createElement.
- // We could move it there, but we'd still need this for lazy code path.
- checkPropTypes(innerPropTypes, nextProps, // Resolved props
- 'prop', getComponentNameFromType(type));
- }
- }
-
- var child = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes);
- child.ref = workInProgress.ref;
- child.return = workInProgress;
- workInProgress.child = child;
- return child;
- }
-
- {
- var _type = Component.type;
- var _innerPropTypes = _type.propTypes;
-
- if (_innerPropTypes) {
- // Inner memo component props aren't currently validated in createElement.
- // We could move it there, but we'd still need this for lazy code path.
- checkPropTypes(_innerPropTypes, nextProps, // Resolved props
- 'prop', getComponentNameFromType(_type));
- }
- }
-
- var currentChild = current.child; // This is always exactly one child
-
- var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes);
-
- if (!hasScheduledUpdateOrContext) {
- // This will be the props with resolved defaultProps,
- // unlike current.memoizedProps which will be the unresolved ones.
- var prevProps = currentChild.memoizedProps; // Default to shallow comparison
-
- var compare = Component.compare;
- compare = compare !== null ? compare : shallowEqual;
-
- if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) {
- return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
- }
- } // React DevTools reads this flag.
-
-
- workInProgress.flags |= PerformedWork;
- var newChild = createWorkInProgress(currentChild, nextProps);
- newChild.ref = workInProgress.ref;
- newChild.return = workInProgress;
- workInProgress.child = newChild;
- return newChild;
- }
-
- function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) {
- // TODO: current can be non-null here even if the component
- // hasn't yet mounted. This happens when the inner render suspends.
- // We'll need to figure out if this is fine or can cause issues.
- {
- if (workInProgress.type !== workInProgress.elementType) {
- // Lazy component props can't be validated in createElement
- // because they're only guaranteed to be resolved here.
- var outerMemoType = workInProgress.elementType;
-
- if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
- // We warn when you define propTypes on lazy()
- // so let's just skip over it to find memo() outer wrapper.
- // Inner props for memo are validated later.
- var lazyComponent = outerMemoType;
- var payload = lazyComponent._payload;
- var init = lazyComponent._init;
-
- try {
- outerMemoType = init(payload);
- } catch (x) {
- outerMemoType = null;
- } // Inner propTypes will be validated in the function component path.
-
-
- var outerPropTypes = outerMemoType && outerMemoType.propTypes;
-
- if (outerPropTypes) {
- checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)
- 'prop', getComponentNameFromType(outerMemoType));
- }
- }
- }
- }
-
- if (current !== null) {
- var prevProps = current.memoizedProps;
-
- if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && ( // Prevent bailout if the implementation changed due to hot reload.
- workInProgress.type === current.type )) {
- didReceiveUpdate = false; // The props are shallowly equal. Reuse the previous props object, like we
- // would during a normal fiber bailout.
- //
- // We don't have strong guarantees that the props object is referentially
- // equal during updates where we can't bail out anyway — like if the props
- // are shallowly equal, but there's a local state or context update in the
- // same batch.
- //
- // However, as a principle, we should aim to make the behavior consistent
- // across different ways of memoizing a component. For example, React.memo
- // has a different internal Fiber layout if you pass a normal function
- // component (SimpleMemoComponent) versus if you pass a different type
- // like forwardRef (MemoComponent). But this is an implementation detail.
- // Wrapping a component in forwardRef (or React.lazy, etc) shouldn't
- // affect whether the props object is reused during a bailout.
-
- workInProgress.pendingProps = nextProps = prevProps;
-
- if (!checkScheduledUpdateOrContext(current, renderLanes)) {
- // The pending lanes were cleared at the beginning of beginWork. We're
- // about to bail out, but there might be other lanes that weren't
- // included in the current render. Usually, the priority level of the
- // remaining updates is accumulated during the evaluation of the
- // component (i.e. when processing the update queue). But since since
- // we're bailing out early *without* evaluating the component, we need
- // to account for it here, too. Reset to the value of the current fiber.
- // NOTE: This only applies to SimpleMemoComponent, not MemoComponent,
- // because a MemoComponent fiber does not have hooks or an update queue;
- // rather, it wraps around an inner component, which may or may not
- // contains hooks.
- // TODO: Move the reset at in beginWork out of the common path so that
- // this is no longer necessary.
- workInProgress.lanes = current.lanes;
- return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
- } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) {
- // This is a special case that only exists for legacy mode.
- // See https://github.com/facebook/react/pull/19216.
- didReceiveUpdate = true;
- }
- }
- }
-
- return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes);
- }
-
- function updateOffscreenComponent(current, workInProgress, renderLanes) {
- var nextProps = workInProgress.pendingProps;
- var nextChildren = nextProps.children;
- var prevState = current !== null ? current.memoizedState : null;
-
- if (nextProps.mode === 'hidden' || enableLegacyHidden ) {
- // Rendering a hidden tree.
- if ((workInProgress.mode & ConcurrentMode) === NoMode) {
- // In legacy sync mode, don't defer the subtree. Render it now.
- // TODO: Consider how Offscreen should work with transitions in the future
- var nextState = {
- baseLanes: NoLanes,
- cachePool: null,
- transitions: null
- };
- workInProgress.memoizedState = nextState;
-
- pushRenderLanes(workInProgress, renderLanes);
- } else if (!includesSomeLane(renderLanes, OffscreenLane)) {
- var spawnedCachePool = null; // We're hidden, and we're not rendering at Offscreen. We will bail out
- // and resume this tree later.
-
- var nextBaseLanes;
-
- if (prevState !== null) {
- var prevBaseLanes = prevState.baseLanes;
- nextBaseLanes = mergeLanes(prevBaseLanes, renderLanes);
- } else {
- nextBaseLanes = renderLanes;
- } // Schedule this fiber to re-render at offscreen priority. Then bailout.
-
-
- workInProgress.lanes = workInProgress.childLanes = laneToLanes(OffscreenLane);
- var _nextState = {
- baseLanes: nextBaseLanes,
- cachePool: spawnedCachePool,
- transitions: null
- };
- workInProgress.memoizedState = _nextState;
- workInProgress.updateQueue = null;
- // to avoid a push/pop misalignment.
-
-
- pushRenderLanes(workInProgress, nextBaseLanes);
-
- return null;
- } else {
- // This is the second render. The surrounding visible content has already
- // committed. Now we resume rendering the hidden tree.
- // Rendering at offscreen, so we can clear the base lanes.
- var _nextState2 = {
- baseLanes: NoLanes,
- cachePool: null,
- transitions: null
- };
- workInProgress.memoizedState = _nextState2; // Push the lanes that were skipped when we bailed out.
-
- var subtreeRenderLanes = prevState !== null ? prevState.baseLanes : renderLanes;
-
- pushRenderLanes(workInProgress, subtreeRenderLanes);
- }
- } else {
- // Rendering a visible tree.
- var _subtreeRenderLanes;
-
- if (prevState !== null) {
- // We're going from hidden -> visible.
- _subtreeRenderLanes = mergeLanes(prevState.baseLanes, renderLanes);
-
- workInProgress.memoizedState = null;
- } else {
- // We weren't previously hidden, and we still aren't, so there's nothing
- // special to do. Need to push to the stack regardless, though, to avoid
- // a push/pop misalignment.
- _subtreeRenderLanes = renderLanes;
- }
-
- pushRenderLanes(workInProgress, _subtreeRenderLanes);
- }
-
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- return workInProgress.child;
- } // Note: These happen to have identical begin phases, for now. We shouldn't hold
-
- function updateFragment(current, workInProgress, renderLanes) {
- var nextChildren = workInProgress.pendingProps;
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- return workInProgress.child;
- }
-
- function updateMode(current, workInProgress, renderLanes) {
- var nextChildren = workInProgress.pendingProps.children;
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- return workInProgress.child;
- }
-
- function updateProfiler(current, workInProgress, renderLanes) {
- {
- workInProgress.flags |= Update;
-
- {
- // Reset effect durations for the next eventual effect phase.
- // These are reset during render to allow the DevTools commit hook a chance to read them,
- var stateNode = workInProgress.stateNode;
- stateNode.effectDuration = 0;
- stateNode.passiveEffectDuration = 0;
- }
- }
-
- var nextProps = workInProgress.pendingProps;
- var nextChildren = nextProps.children;
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- return workInProgress.child;
- }
-
- function markRef(current, workInProgress) {
- var ref = workInProgress.ref;
-
- if (current === null && ref !== null || current !== null && current.ref !== ref) {
- // Schedule a Ref effect
- workInProgress.flags |= Ref;
-
- {
- workInProgress.flags |= RefStatic;
- }
- }
- }
-
- function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) {
- {
- if (workInProgress.type !== workInProgress.elementType) {
- // Lazy component props can't be validated in createElement
- // because they're only guaranteed to be resolved here.
- var innerPropTypes = Component.propTypes;
-
- if (innerPropTypes) {
- checkPropTypes(innerPropTypes, nextProps, // Resolved props
- 'prop', getComponentNameFromType(Component));
- }
- }
- }
-
- var context;
-
- {
- var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
- context = getMaskedContext(workInProgress, unmaskedContext);
- }
-
- var nextChildren;
- var hasId;
- prepareToReadContext(workInProgress, renderLanes);
-
- {
- markComponentRenderStarted(workInProgress);
- }
-
- {
- ReactCurrentOwner$1.current = workInProgress;
- setIsRendering(true);
- nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes);
- hasId = checkDidRenderIdHook();
-
- if ( workInProgress.mode & StrictLegacyMode) {
- setIsStrictModeForDevtools(true);
-
- try {
- nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes);
- hasId = checkDidRenderIdHook();
- } finally {
- setIsStrictModeForDevtools(false);
- }
- }
-
- setIsRendering(false);
- }
-
- {
- markComponentRenderStopped();
- }
-
- if (current !== null && !didReceiveUpdate) {
- bailoutHooks(current, workInProgress, renderLanes);
- return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
- }
-
- if (getIsHydrating() && hasId) {
- pushMaterializedTreeId(workInProgress);
- } // React DevTools reads this flag.
-
-
- workInProgress.flags |= PerformedWork;
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- return workInProgress.child;
- }
-
- function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) {
- {
- // This is used by DevTools to force a boundary to error.
- switch (shouldError(workInProgress)) {
- case false:
- {
- var _instance = workInProgress.stateNode;
- var ctor = workInProgress.type; // TODO This way of resetting the error boundary state is a hack.
- // Is there a better way to do this?
-
- var tempInstance = new ctor(workInProgress.memoizedProps, _instance.context);
- var state = tempInstance.state;
-
- _instance.updater.enqueueSetState(_instance, state, null);
-
- break;
- }
-
- case true:
- {
- workInProgress.flags |= DidCapture;
- workInProgress.flags |= ShouldCapture; // eslint-disable-next-line react-internal/prod-error-codes
-
- var error$1 = new Error('Simulated error coming from DevTools');
- var lane = pickArbitraryLane(renderLanes);
- workInProgress.lanes = mergeLanes(workInProgress.lanes, lane); // Schedule the error boundary to re-render using updated state
-
- var update = createClassErrorUpdate(workInProgress, createCapturedValueAtFiber(error$1, workInProgress), lane);
- enqueueCapturedUpdate(workInProgress, update);
- break;
- }
- }
-
- if (workInProgress.type !== workInProgress.elementType) {
- // Lazy component props can't be validated in createElement
- // because they're only guaranteed to be resolved here.
- var innerPropTypes = Component.propTypes;
-
- if (innerPropTypes) {
- checkPropTypes(innerPropTypes, nextProps, // Resolved props
- 'prop', getComponentNameFromType(Component));
- }
- }
- } // Push context providers early to prevent context stack mismatches.
- // During mounting we don't know the child context yet as the instance doesn't exist.
- // We will invalidate the child context in finishClassComponent() right after rendering.
-
-
- var hasContext;
-
- if (isContextProvider(Component)) {
- hasContext = true;
- pushContextProvider(workInProgress);
- } else {
- hasContext = false;
- }
-
- prepareToReadContext(workInProgress, renderLanes);
- var instance = workInProgress.stateNode;
- var shouldUpdate;
-
- if (instance === null) {
- resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); // In the initial pass we might need to construct the instance.
-
- constructClassInstance(workInProgress, Component, nextProps);
- mountClassInstance(workInProgress, Component, nextProps, renderLanes);
- shouldUpdate = true;
- } else if (current === null) {
- // In a resume, we'll already have an instance we can reuse.
- shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderLanes);
- } else {
- shouldUpdate = updateClassInstance(current, workInProgress, Component, nextProps, renderLanes);
- }
-
- var nextUnitOfWork = finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes);
-
- {
- var inst = workInProgress.stateNode;
-
- if (shouldUpdate && inst.props !== nextProps) {
- if (!didWarnAboutReassigningProps) {
- error('It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentNameFromFiber(workInProgress) || 'a component');
- }
-
- didWarnAboutReassigningProps = true;
- }
- }
-
- return nextUnitOfWork;
- }
-
- function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) {
- // Refs should update even if shouldComponentUpdate returns false
- markRef(current, workInProgress);
- var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags;
-
- if (!shouldUpdate && !didCaptureError) {
- // Context providers should defer to sCU for rendering
- if (hasContext) {
- invalidateContextProvider(workInProgress, Component, false);
- }
-
- return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
- }
-
- var instance = workInProgress.stateNode; // Rerender
-
- ReactCurrentOwner$1.current = workInProgress;
- var nextChildren;
-
- if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
- // If we captured an error, but getDerivedStateFromError is not defined,
- // unmount all the children. componentDidCatch will schedule an update to
- // re-render a fallback. This is temporary until we migrate everyone to
- // the new API.
- // TODO: Warn in a future release.
- nextChildren = null;
-
- {
- stopProfilerTimerIfRunning();
- }
- } else {
- {
- markComponentRenderStarted(workInProgress);
- }
-
- {
- setIsRendering(true);
- nextChildren = instance.render();
-
- if ( workInProgress.mode & StrictLegacyMode) {
- setIsStrictModeForDevtools(true);
-
- try {
- instance.render();
- } finally {
- setIsStrictModeForDevtools(false);
- }
- }
-
- setIsRendering(false);
- }
-
- {
- markComponentRenderStopped();
- }
- } // React DevTools reads this flag.
-
-
- workInProgress.flags |= PerformedWork;
-
- if (current !== null && didCaptureError) {
- // If we're recovering from an error, reconcile without reusing any of
- // the existing children. Conceptually, the normal children and the children
- // that are shown on error are two different sets, so we shouldn't reuse
- // normal children even if their identities match.
- forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes);
- } else {
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- } // Memoize state using the values we just used to render.
- // TODO: Restructure so we never read values from the instance.
-
-
- workInProgress.memoizedState = instance.state; // The context might have changed so we need to recalculate it.
-
- if (hasContext) {
- invalidateContextProvider(workInProgress, Component, true);
- }
-
- return workInProgress.child;
- }
-
- function pushHostRootContext(workInProgress) {
- var root = workInProgress.stateNode;
-
- if (root.pendingContext) {
- pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
- } else if (root.context) {
- // Should always be set
- pushTopLevelContextObject(workInProgress, root.context, false);
- }
-
- pushHostContainer(workInProgress, root.containerInfo);
- }
-
- function updateHostRoot(current, workInProgress, renderLanes) {
- pushHostRootContext(workInProgress);
-
- if (current === null) {
- throw new Error('Should have a current fiber. This is a bug in React.');
- }
-
- var nextProps = workInProgress.pendingProps;
- var prevState = workInProgress.memoizedState;
- var prevChildren = prevState.element;
- cloneUpdateQueue(current, workInProgress);
- processUpdateQueue(workInProgress, nextProps, null, renderLanes);
- var nextState = workInProgress.memoizedState;
- var root = workInProgress.stateNode;
- // being called "element".
-
-
- var nextChildren = nextState.element;
-
- if ( prevState.isDehydrated) {
- // This is a hydration root whose shell has not yet hydrated. We should
- // attempt to hydrate.
- // Flip isDehydrated to false to indicate that when this render
- // finishes, the root will no longer be dehydrated.
- var overrideState = {
- element: nextChildren,
- isDehydrated: false,
- cache: nextState.cache,
- pendingSuspenseBoundaries: nextState.pendingSuspenseBoundaries,
- transitions: nextState.transitions
- };
- var updateQueue = workInProgress.updateQueue; // `baseState` can always be the last state because the root doesn't
- // have reducer functions so it doesn't need rebasing.
-
- updateQueue.baseState = overrideState;
- workInProgress.memoizedState = overrideState;
-
- if (workInProgress.flags & ForceClientRender) {
- // Something errored during a previous attempt to hydrate the shell, so we
- // forced a client render.
- var recoverableError = createCapturedValueAtFiber(new Error('There was an error while hydrating. Because the error happened outside ' + 'of a Suspense boundary, the entire root will switch to ' + 'client rendering.'), workInProgress);
- return mountHostRootWithoutHydrating(current, workInProgress, nextChildren, renderLanes, recoverableError);
- } else if (nextChildren !== prevChildren) {
- var _recoverableError = createCapturedValueAtFiber(new Error('This root received an early update, before anything was able ' + 'hydrate. Switched the entire root to client rendering.'), workInProgress);
-
- return mountHostRootWithoutHydrating(current, workInProgress, nextChildren, renderLanes, _recoverableError);
- } else {
- // The outermost shell has not hydrated yet. Start hydrating.
- enterHydrationState(workInProgress);
-
- var child = mountChildFibers(workInProgress, null, nextChildren, renderLanes);
- workInProgress.child = child;
- var node = child;
-
- while (node) {
- // Mark each child as hydrating. This is a fast path to know whether this
- // tree is part of a hydrating tree. This is used to determine if a child
- // node has fully mounted yet, and for scheduling event replaying.
- // Conceptually this is similar to Placement in that a new subtree is
- // inserted into the React tree here. It just happens to not need DOM
- // mutations because it already exists.
- node.flags = node.flags & ~Placement | Hydrating;
- node = node.sibling;
- }
- }
- } else {
- // Root is not dehydrated. Either this is a client-only root, or it
- // already hydrated.
- resetHydrationState();
-
- if (nextChildren === prevChildren) {
- return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
- }
-
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- }
-
- return workInProgress.child;
- }
-
- function mountHostRootWithoutHydrating(current, workInProgress, nextChildren, renderLanes, recoverableError) {
- // Revert to client rendering.
- resetHydrationState();
- queueHydrationError(recoverableError);
- workInProgress.flags |= ForceClientRender;
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- return workInProgress.child;
- }
-
- function updateHostComponent(current, workInProgress, renderLanes) {
- pushHostContext(workInProgress);
-
- if (current === null) {
- tryToClaimNextHydratableInstance(workInProgress);
- }
-
- var type = workInProgress.type;
- var nextProps = workInProgress.pendingProps;
- var prevProps = current !== null ? current.memoizedProps : null;
- var nextChildren = nextProps.children;
- var isDirectTextChild = shouldSetTextContent(type, nextProps);
-
- if (isDirectTextChild) {
- // We special case a direct text child of a host node. This is a common
- // case. We won't handle it as a reified child. We will instead handle
- // this in the host environment that also has access to this prop. That
- // avoids allocating another HostText fiber and traversing it.
- nextChildren = null;
- } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
- // If we're switching from a direct text child to a normal child, or to
- // empty, we need to schedule the text content to be reset.
- workInProgress.flags |= ContentReset;
- }
-
- markRef(current, workInProgress);
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- return workInProgress.child;
- }
-
- function updateHostText(current, workInProgress) {
- if (current === null) {
- tryToClaimNextHydratableInstance(workInProgress);
- } // Nothing to do here. This is terminal. We'll do the completion step
- // immediately after.
-
-
- return null;
- }
-
- function mountLazyComponent(_current, workInProgress, elementType, renderLanes) {
- resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress);
- var props = workInProgress.pendingProps;
- var lazyComponent = elementType;
- var payload = lazyComponent._payload;
- var init = lazyComponent._init;
- var Component = init(payload); // Store the unwrapped component in the type.
-
- workInProgress.type = Component;
- var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
- var resolvedProps = resolveDefaultProps(Component, props);
- var child;
-
- switch (resolvedTag) {
- case FunctionComponent:
- {
- {
- validateFunctionComponentInDev(workInProgress, Component);
- workInProgress.type = Component = resolveFunctionForHotReloading(Component);
- }
-
- child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderLanes);
- return child;
- }
-
- case ClassComponent:
- {
- {
- workInProgress.type = Component = resolveClassForHotReloading(Component);
- }
-
- child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderLanes);
- return child;
- }
-
- case ForwardRef:
- {
- {
- workInProgress.type = Component = resolveForwardRefForHotReloading(Component);
- }
-
- child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderLanes);
- return child;
- }
-
- case MemoComponent:
- {
- {
- if (workInProgress.type !== workInProgress.elementType) {
- var outerPropTypes = Component.propTypes;
-
- if (outerPropTypes) {
- checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only
- 'prop', getComponentNameFromType(Component));
- }
- }
- }
-
- child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
- renderLanes);
- return child;
- }
- }
-
- var hint = '';
-
- {
- if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) {
- hint = ' Did you wrap a component in React.lazy() more than once?';
- }
- } // This message intentionally doesn't mention ForwardRef or MemoComponent
- // because the fact that it's a separate type of work is an
- // implementation detail.
-
-
- throw new Error("Element type is invalid. Received a promise that resolves to: " + Component + ". " + ("Lazy element type must resolve to a class or function." + hint));
- }
-
- function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderLanes) {
- resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); // Promote the fiber to a class and try rendering again.
-
- workInProgress.tag = ClassComponent; // The rest of this function is a fork of `updateClassComponent`
- // Push context providers early to prevent context stack mismatches.
- // During mounting we don't know the child context yet as the instance doesn't exist.
- // We will invalidate the child context in finishClassComponent() right after rendering.
-
- var hasContext;
-
- if (isContextProvider(Component)) {
- hasContext = true;
- pushContextProvider(workInProgress);
- } else {
- hasContext = false;
- }
-
- prepareToReadContext(workInProgress, renderLanes);
- constructClassInstance(workInProgress, Component, nextProps);
- mountClassInstance(workInProgress, Component, nextProps, renderLanes);
- return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes);
- }
-
- function mountIndeterminateComponent(_current, workInProgress, Component, renderLanes) {
- resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress);
- var props = workInProgress.pendingProps;
- var context;
-
- {
- var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
- context = getMaskedContext(workInProgress, unmaskedContext);
- }
-
- prepareToReadContext(workInProgress, renderLanes);
- var value;
- var hasId;
-
- {
- markComponentRenderStarted(workInProgress);
- }
-
- {
- if (Component.prototype && typeof Component.prototype.render === 'function') {
- var componentName = getComponentNameFromType(Component) || 'Unknown';
-
- if (!didWarnAboutBadClass[componentName]) {
- error("The <%s /> component appears to have a render method, but doesn't extend React.Component. " + 'This is likely to cause errors. Change %s to extend React.Component instead.', componentName, componentName);
-
- didWarnAboutBadClass[componentName] = true;
- }
- }
-
- if (workInProgress.mode & StrictLegacyMode) {
- ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
- }
-
- setIsRendering(true);
- ReactCurrentOwner$1.current = workInProgress;
- value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes);
- hasId = checkDidRenderIdHook();
- setIsRendering(false);
- }
-
- {
- markComponentRenderStopped();
- } // React DevTools reads this flag.
-
-
- workInProgress.flags |= PerformedWork;
-
- {
- // Support for module components is deprecated and is removed behind a flag.
- // Whether or not it would crash later, we want to show a good message in DEV first.
- if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
- var _componentName = getComponentNameFromType(Component) || 'Unknown';
-
- if (!didWarnAboutModulePatternComponent[_componentName]) {
- error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName, _componentName, _componentName);
-
- didWarnAboutModulePatternComponent[_componentName] = true;
- }
- }
- }
-
- if ( // Run these checks in production only if the flag is off.
- // Eventually we'll delete this branch altogether.
- typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
- {
- var _componentName2 = getComponentNameFromType(Component) || 'Unknown';
-
- if (!didWarnAboutModulePatternComponent[_componentName2]) {
- error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName2, _componentName2, _componentName2);
-
- didWarnAboutModulePatternComponent[_componentName2] = true;
- }
- } // Proceed under the assumption that this is a class instance
-
-
- workInProgress.tag = ClassComponent; // Throw out any hooks that were used.
-
- workInProgress.memoizedState = null;
- workInProgress.updateQueue = null; // Push context providers early to prevent context stack mismatches.
- // During mounting we don't know the child context yet as the instance doesn't exist.
- // We will invalidate the child context in finishClassComponent() right after rendering.
-
- var hasContext = false;
-
- if (isContextProvider(Component)) {
- hasContext = true;
- pushContextProvider(workInProgress);
- } else {
- hasContext = false;
- }
-
- workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
- initializeUpdateQueue(workInProgress);
- adoptClassInstance(workInProgress, value);
- mountClassInstance(workInProgress, Component, props, renderLanes);
- return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes);
- } else {
- // Proceed under the assumption that this is a function component
- workInProgress.tag = FunctionComponent;
-
- {
-
- if ( workInProgress.mode & StrictLegacyMode) {
- setIsStrictModeForDevtools(true);
-
- try {
- value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes);
- hasId = checkDidRenderIdHook();
- } finally {
- setIsStrictModeForDevtools(false);
- }
- }
- }
-
- if (getIsHydrating() && hasId) {
- pushMaterializedTreeId(workInProgress);
- }
-
- reconcileChildren(null, workInProgress, value, renderLanes);
-
- {
- validateFunctionComponentInDev(workInProgress, Component);
- }
-
- return workInProgress.child;
- }
- }
-
- function validateFunctionComponentInDev(workInProgress, Component) {
- {
- if (Component) {
- if (Component.childContextTypes) {
- error('%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component');
- }
- }
-
- if (workInProgress.ref !== null) {
- var info = '';
- var ownerName = getCurrentFiberOwnerNameInDevOrNull();
-
- if (ownerName) {
- info += '\n\nCheck the render method of `' + ownerName + '`.';
- }
-
- var warningKey = ownerName || '';
- var debugSource = workInProgress._debugSource;
-
- if (debugSource) {
- warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
- }
-
- if (!didWarnAboutFunctionRefs[warningKey]) {
- didWarnAboutFunctionRefs[warningKey] = true;
-
- error('Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info);
- }
- }
-
- if (typeof Component.getDerivedStateFromProps === 'function') {
- var _componentName3 = getComponentNameFromType(Component) || 'Unknown';
-
- if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3]) {
- error('%s: Function components do not support getDerivedStateFromProps.', _componentName3);
-
- didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true;
- }
- }
-
- if (typeof Component.contextType === 'object' && Component.contextType !== null) {
- var _componentName4 = getComponentNameFromType(Component) || 'Unknown';
-
- if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) {
- error('%s: Function components do not support contextType.', _componentName4);
-
- didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true;
- }
- }
- }
- }
-
- var SUSPENDED_MARKER = {
- dehydrated: null,
- treeContext: null,
- retryLane: NoLane
- };
-
- function mountSuspenseOffscreenState(renderLanes) {
- return {
- baseLanes: renderLanes,
- cachePool: getSuspendedCache(),
- transitions: null
- };
- }
-
- function updateSuspenseOffscreenState(prevOffscreenState, renderLanes) {
- var cachePool = null;
-
- return {
- baseLanes: mergeLanes(prevOffscreenState.baseLanes, renderLanes),
- cachePool: cachePool,
- transitions: prevOffscreenState.transitions
- };
- } // TODO: Probably should inline this back
-
-
- function shouldRemainOnFallback(suspenseContext, current, workInProgress, renderLanes) {
- // If we're already showing a fallback, there are cases where we need to
- // remain on that fallback regardless of whether the content has resolved.
- // For example, SuspenseList coordinates when nested content appears.
- if (current !== null) {
- var suspenseState = current.memoizedState;
-
- if (suspenseState === null) {
- // Currently showing content. Don't hide it, even if ForceSuspenseFallback
- // is true. More precise name might be "ForceRemainSuspenseFallback".
- // Note: This is a factoring smell. Can't remain on a fallback if there's
- // no fallback to remain on.
- return false;
- }
- } // Not currently showing content. Consult the Suspense context.
-
-
- return hasSuspenseContext(suspenseContext, ForceSuspenseFallback);
- }
-
- function getRemainingWorkInPrimaryTree(current, renderLanes) {
- // TODO: Should not remove render lanes that were pinged during this render
- return removeLanes(current.childLanes, renderLanes);
- }
-
- function updateSuspenseComponent(current, workInProgress, renderLanes) {
- var nextProps = workInProgress.pendingProps; // This is used by DevTools to force a boundary to suspend.
-
- {
- if (shouldSuspend(workInProgress)) {
- workInProgress.flags |= DidCapture;
- }
- }
-
- var suspenseContext = suspenseStackCursor.current;
- var showFallback = false;
- var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags;
-
- if (didSuspend || shouldRemainOnFallback(suspenseContext, current)) {
- // Something in this boundary's subtree already suspended. Switch to
- // rendering the fallback children.
- showFallback = true;
- workInProgress.flags &= ~DidCapture;
- } else {
- // Attempting the main content
- if (current === null || current.memoizedState !== null) {
- // This is a new mount or this boundary is already showing a fallback state.
- // Mark this subtree context as having at least one invisible parent that could
- // handle the fallback state.
- // Avoided boundaries are not considered since they cannot handle preferred fallback states.
- {
- suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext);
- }
- }
- }
-
- suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
- pushSuspenseContext(workInProgress, suspenseContext); // OK, the next part is confusing. We're about to reconcile the Suspense
- // boundary's children. This involves some custom reconciliation logic. Two
- // main reasons this is so complicated.
- //
- // First, Legacy Mode has different semantics for backwards compatibility. The
- // primary tree will commit in an inconsistent state, so when we do the
- // second pass to render the fallback, we do some exceedingly, uh, clever
- // hacks to make that not totally break. Like transferring effects and
- // deletions from hidden tree. In Concurrent Mode, it's much simpler,
- // because we bailout on the primary tree completely and leave it in its old
- // state, no effects. Same as what we do for Offscreen (except that
- // Offscreen doesn't have the first render pass).
- //
- // Second is hydration. During hydration, the Suspense fiber has a slightly
- // different layout, where the child points to a dehydrated fragment, which
- // contains the DOM rendered by the server.
- //
- // Third, even if you set all that aside, Suspense is like error boundaries in
- // that we first we try to render one tree, and if that fails, we render again
- // and switch to a different tree. Like a try/catch block. So we have to track
- // which branch we're currently rendering. Ideally we would model this using
- // a stack.
-
- if (current === null) {
- // Initial mount
- // Special path for hydration
- // If we're currently hydrating, try to hydrate this boundary.
- tryToClaimNextHydratableInstance(workInProgress); // This could've been a dehydrated suspense component.
-
- var suspenseState = workInProgress.memoizedState;
-
- if (suspenseState !== null) {
- var dehydrated = suspenseState.dehydrated;
-
- if (dehydrated !== null) {
- return mountDehydratedSuspenseComponent(workInProgress, dehydrated);
- }
- }
-
- var nextPrimaryChildren = nextProps.children;
- var nextFallbackChildren = nextProps.fallback;
-
- if (showFallback) {
- var fallbackFragment = mountSuspenseFallbackChildren(workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes);
- var primaryChildFragment = workInProgress.child;
- primaryChildFragment.memoizedState = mountSuspenseOffscreenState(renderLanes);
- workInProgress.memoizedState = SUSPENDED_MARKER;
-
- return fallbackFragment;
- } else {
- return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren);
- }
- } else {
- // This is an update.
- // Special path for hydration
- var prevState = current.memoizedState;
-
- if (prevState !== null) {
- var _dehydrated = prevState.dehydrated;
-
- if (_dehydrated !== null) {
- return updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, _dehydrated, prevState, renderLanes);
- }
- }
-
- if (showFallback) {
- var _nextFallbackChildren = nextProps.fallback;
- var _nextPrimaryChildren = nextProps.children;
- var fallbackChildFragment = updateSuspenseFallbackChildren(current, workInProgress, _nextPrimaryChildren, _nextFallbackChildren, renderLanes);
- var _primaryChildFragment2 = workInProgress.child;
- var prevOffscreenState = current.child.memoizedState;
- _primaryChildFragment2.memoizedState = prevOffscreenState === null ? mountSuspenseOffscreenState(renderLanes) : updateSuspenseOffscreenState(prevOffscreenState, renderLanes);
-
- _primaryChildFragment2.childLanes = getRemainingWorkInPrimaryTree(current, renderLanes);
- workInProgress.memoizedState = SUSPENDED_MARKER;
- return fallbackChildFragment;
- } else {
- var _nextPrimaryChildren2 = nextProps.children;
-
- var _primaryChildFragment3 = updateSuspensePrimaryChildren(current, workInProgress, _nextPrimaryChildren2, renderLanes);
-
- workInProgress.memoizedState = null;
- return _primaryChildFragment3;
- }
- }
- }
-
- function mountSuspensePrimaryChildren(workInProgress, primaryChildren, renderLanes) {
- var mode = workInProgress.mode;
- var primaryChildProps = {
- mode: 'visible',
- children: primaryChildren
- };
- var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, mode);
- primaryChildFragment.return = workInProgress;
- workInProgress.child = primaryChildFragment;
- return primaryChildFragment;
- }
-
- function mountSuspenseFallbackChildren(workInProgress, primaryChildren, fallbackChildren, renderLanes) {
- var mode = workInProgress.mode;
- var progressedPrimaryFragment = workInProgress.child;
- var primaryChildProps = {
- mode: 'hidden',
- children: primaryChildren
- };
- var primaryChildFragment;
- var fallbackChildFragment;
-
- if ((mode & ConcurrentMode) === NoMode && progressedPrimaryFragment !== null) {
- // In legacy mode, we commit the primary tree as if it successfully
- // completed, even though it's in an inconsistent state.
- primaryChildFragment = progressedPrimaryFragment;
- primaryChildFragment.childLanes = NoLanes;
- primaryChildFragment.pendingProps = primaryChildProps;
-
- if ( workInProgress.mode & ProfileMode) {
- // Reset the durations from the first pass so they aren't included in the
- // final amounts. This seems counterintuitive, since we're intentionally
- // not measuring part of the render phase, but this makes it match what we
- // do in Concurrent Mode.
- primaryChildFragment.actualDuration = 0;
- primaryChildFragment.actualStartTime = -1;
- primaryChildFragment.selfBaseDuration = 0;
- primaryChildFragment.treeBaseDuration = 0;
- }
-
- fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null);
- } else {
- primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, mode);
- fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null);
- }
-
- primaryChildFragment.return = workInProgress;
- fallbackChildFragment.return = workInProgress;
- primaryChildFragment.sibling = fallbackChildFragment;
- workInProgress.child = primaryChildFragment;
- return fallbackChildFragment;
- }
-
- function mountWorkInProgressOffscreenFiber(offscreenProps, mode, renderLanes) {
- // The props argument to `createFiberFromOffscreen` is `any` typed, so we use
- // this wrapper function to constrain it.
- return createFiberFromOffscreen(offscreenProps, mode, NoLanes, null);
- }
-
- function updateWorkInProgressOffscreenFiber(current, offscreenProps) {
- // The props argument to `createWorkInProgress` is `any` typed, so we use this
- // wrapper function to constrain it.
- return createWorkInProgress(current, offscreenProps);
- }
-
- function updateSuspensePrimaryChildren(current, workInProgress, primaryChildren, renderLanes) {
- var currentPrimaryChildFragment = current.child;
- var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
- var primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, {
- mode: 'visible',
- children: primaryChildren
- });
-
- if ((workInProgress.mode & ConcurrentMode) === NoMode) {
- primaryChildFragment.lanes = renderLanes;
- }
-
- primaryChildFragment.return = workInProgress;
- primaryChildFragment.sibling = null;
-
- if (currentFallbackChildFragment !== null) {
- // Delete the fallback child fragment
- var deletions = workInProgress.deletions;
-
- if (deletions === null) {
- workInProgress.deletions = [currentFallbackChildFragment];
- workInProgress.flags |= ChildDeletion;
- } else {
- deletions.push(currentFallbackChildFragment);
- }
- }
-
- workInProgress.child = primaryChildFragment;
- return primaryChildFragment;
- }
-
- function updateSuspenseFallbackChildren(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) {
- var mode = workInProgress.mode;
- var currentPrimaryChildFragment = current.child;
- var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
- var primaryChildProps = {
- mode: 'hidden',
- children: primaryChildren
- };
- var primaryChildFragment;
-
- if ( // In legacy mode, we commit the primary tree as if it successfully
- // completed, even though it's in an inconsistent state.
- (mode & ConcurrentMode) === NoMode && // Make sure we're on the second pass, i.e. the primary child fragment was
- // already cloned. In legacy mode, the only case where this isn't true is
- // when DevTools forces us to display a fallback; we skip the first render
- // pass entirely and go straight to rendering the fallback. (In Concurrent
- // Mode, SuspenseList can also trigger this scenario, but this is a legacy-
- // only codepath.)
- workInProgress.child !== currentPrimaryChildFragment) {
- var progressedPrimaryFragment = workInProgress.child;
- primaryChildFragment = progressedPrimaryFragment;
- primaryChildFragment.childLanes = NoLanes;
- primaryChildFragment.pendingProps = primaryChildProps;
-
- if ( workInProgress.mode & ProfileMode) {
- // Reset the durations from the first pass so they aren't included in the
- // final amounts. This seems counterintuitive, since we're intentionally
- // not measuring part of the render phase, but this makes it match what we
- // do in Concurrent Mode.
- primaryChildFragment.actualDuration = 0;
- primaryChildFragment.actualStartTime = -1;
- primaryChildFragment.selfBaseDuration = currentPrimaryChildFragment.selfBaseDuration;
- primaryChildFragment.treeBaseDuration = currentPrimaryChildFragment.treeBaseDuration;
- } // The fallback fiber was added as a deletion during the first pass.
- // However, since we're going to remain on the fallback, we no longer want
- // to delete it.
-
-
- workInProgress.deletions = null;
- } else {
- primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, primaryChildProps); // Since we're reusing a current tree, we need to reuse the flags, too.
- // (We don't do this in legacy mode, because in legacy mode we don't re-use
- // the current tree; see previous branch.)
-
- primaryChildFragment.subtreeFlags = currentPrimaryChildFragment.subtreeFlags & StaticMask;
- }
-
- var fallbackChildFragment;
-
- if (currentFallbackChildFragment !== null) {
- fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, fallbackChildren);
- } else {
- fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); // Needs a placement effect because the parent (the Suspense boundary) already
- // mounted but this is a new fiber.
-
- fallbackChildFragment.flags |= Placement;
- }
-
- fallbackChildFragment.return = workInProgress;
- primaryChildFragment.return = workInProgress;
- primaryChildFragment.sibling = fallbackChildFragment;
- workInProgress.child = primaryChildFragment;
- return fallbackChildFragment;
- }
-
- function retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, recoverableError) {
- // Falling back to client rendering. Because this has performance
- // implications, it's considered a recoverable error, even though the user
- // likely won't observe anything wrong with the UI.
- //
- // The error is passed in as an argument to enforce that every caller provide
- // a custom message, or explicitly opt out (currently the only path that opts
- // out is legacy mode; every concurrent path provides an error).
- if (recoverableError !== null) {
- queueHydrationError(recoverableError);
- } // This will add the old fiber to the deletion list
-
-
- reconcileChildFibers(workInProgress, current.child, null, renderLanes); // We're now not suspended nor dehydrated.
-
- var nextProps = workInProgress.pendingProps;
- var primaryChildren = nextProps.children;
- var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); // Needs a placement effect because the parent (the Suspense boundary) already
- // mounted but this is a new fiber.
-
- primaryChildFragment.flags |= Placement;
- workInProgress.memoizedState = null;
- return primaryChildFragment;
- }
-
- function mountSuspenseFallbackAfterRetryWithoutHydrating(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) {
- var fiberMode = workInProgress.mode;
- var primaryChildProps = {
- mode: 'visible',
- children: primaryChildren
- };
- var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, fiberMode);
- var fallbackChildFragment = createFiberFromFragment(fallbackChildren, fiberMode, renderLanes, null); // Needs a placement effect because the parent (the Suspense
- // boundary) already mounted but this is a new fiber.
-
- fallbackChildFragment.flags |= Placement;
- primaryChildFragment.return = workInProgress;
- fallbackChildFragment.return = workInProgress;
- primaryChildFragment.sibling = fallbackChildFragment;
- workInProgress.child = primaryChildFragment;
-
- if ((workInProgress.mode & ConcurrentMode) !== NoMode) {
- // We will have dropped the effect list which contains the
- // deletion. We need to reconcile to delete the current child.
- reconcileChildFibers(workInProgress, current.child, null, renderLanes);
- }
-
- return fallbackChildFragment;
- }
-
- function mountDehydratedSuspenseComponent(workInProgress, suspenseInstance, renderLanes) {
- // During the first pass, we'll bail out and not drill into the children.
- // Instead, we'll leave the content in place and try to hydrate it later.
- if ((workInProgress.mode & ConcurrentMode) === NoMode) {
- {
- error('Cannot hydrate Suspense in legacy mode. Switch from ' + 'ReactDOM.hydrate(element, container) to ' + 'ReactDOMClient.hydrateRoot(container, <App />)' + '.render(element) or remove the Suspense components from ' + 'the server rendered components.');
- }
-
- workInProgress.lanes = laneToLanes(SyncLane);
- } else if (isSuspenseInstanceFallback(suspenseInstance)) {
- // This is a client-only boundary. Since we won't get any content from the server
- // for this, we need to schedule that at a higher priority based on when it would
- // have timed out. In theory we could render it in this pass but it would have the
- // wrong priority associated with it and will prevent hydration of parent path.
- // Instead, we'll leave work left on it to render it in a separate commit.
- // TODO This time should be the time at which the server rendered response that is
- // a parent to this boundary was displayed. However, since we currently don't have
- // a protocol to transfer that time, we'll just estimate it by using the current
- // time. This will mean that Suspense timeouts are slightly shifted to later than
- // they should be.
- // Schedule a normal pri update to render this content.
- workInProgress.lanes = laneToLanes(DefaultHydrationLane);
- } else {
- // We'll continue hydrating the rest at offscreen priority since we'll already
- // be showing the right content coming from the server, it is no rush.
- workInProgress.lanes = laneToLanes(OffscreenLane);
- }
-
- return null;
- }
-
- function updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, suspenseInstance, suspenseState, renderLanes) {
- if (!didSuspend) {
- // This is the first render pass. Attempt to hydrate.
- // We should never be hydrating at this point because it is the first pass,
- // but after we've already committed once.
- warnIfHydrating();
-
- if ((workInProgress.mode & ConcurrentMode) === NoMode) {
- return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, // TODO: When we delete legacy mode, we should make this error argument
- // required — every concurrent mode path that causes hydration to
- // de-opt to client rendering should have an error message.
- null);
- }
-
- if (isSuspenseInstanceFallback(suspenseInstance)) {
- // This boundary is in a permanent fallback state. In this case, we'll never
- // get an update and we'll never be able to hydrate the final content. Let's just try the
- // client side render instead.
- var digest, message, stack;
-
- {
- var _getSuspenseInstanceF = getSuspenseInstanceFallbackErrorDetails(suspenseInstance);
-
- digest = _getSuspenseInstanceF.digest;
- message = _getSuspenseInstanceF.message;
- stack = _getSuspenseInstanceF.stack;
- }
-
- var error;
-
- if (message) {
- // eslint-disable-next-line react-internal/prod-error-codes
- error = new Error(message);
- } else {
- error = new Error('The server could not finish this Suspense boundary, likely ' + 'due to an error during server rendering. Switched to ' + 'client rendering.');
- }
-
- var capturedValue = createCapturedValue(error, digest, stack);
- return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, capturedValue);
- }
- // any context has changed, we need to treat is as if the input might have changed.
-
-
- var hasContextChanged = includesSomeLane(renderLanes, current.childLanes);
-
- if (didReceiveUpdate || hasContextChanged) {
- // This boundary has changed since the first render. This means that we are now unable to
- // hydrate it. We might still be able to hydrate it using a higher priority lane.
- var root = getWorkInProgressRoot();
-
- if (root !== null) {
- var attemptHydrationAtLane = getBumpedLaneForHydration(root, renderLanes);
-
- if (attemptHydrationAtLane !== NoLane && attemptHydrationAtLane !== suspenseState.retryLane) {
- // Intentionally mutating since this render will get interrupted. This
- // is one of the very rare times where we mutate the current tree
- // during the render phase.
- suspenseState.retryLane = attemptHydrationAtLane; // TODO: Ideally this would inherit the event time of the current render
-
- var eventTime = NoTimestamp;
- enqueueConcurrentRenderForLane(current, attemptHydrationAtLane);
- scheduleUpdateOnFiber(root, current, attemptHydrationAtLane, eventTime);
- }
- } // If we have scheduled higher pri work above, this will probably just abort the render
- // since we now have higher priority work, but in case it doesn't, we need to prepare to
- // render something, if we time out. Even if that requires us to delete everything and
- // skip hydration.
- // Delay having to do this as long as the suspense timeout allows us.
-
-
- renderDidSuspendDelayIfPossible();
-
- var _capturedValue = createCapturedValue(new Error('This Suspense boundary received an update before it finished ' + 'hydrating. This caused the boundary to switch to client rendering. ' + 'The usual way to fix this is to wrap the original update ' + 'in startTransition.'));
-
- return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, _capturedValue);
- } else if (isSuspenseInstancePending(suspenseInstance)) {
- // This component is still pending more data from the server, so we can't hydrate its
- // content. We treat it as if this component suspended itself. It might seem as if
- // we could just try to render it client-side instead. However, this will perform a
- // lot of unnecessary work and is unlikely to complete since it often will suspend
- // on missing data anyway. Additionally, the server might be able to render more
- // than we can on the client yet. In that case we'd end up with more fallback states
- // on the client than if we just leave it alone. If the server times out or errors
- // these should update this boundary to the permanent Fallback state instead.
- // Mark it as having captured (i.e. suspended).
- workInProgress.flags |= DidCapture; // Leave the child in place. I.e. the dehydrated fragment.
-
- workInProgress.child = current.child; // Register a callback to retry this boundary once the server has sent the result.
-
- var retry = retryDehydratedSuspenseBoundary.bind(null, current);
- registerSuspenseInstanceRetry(suspenseInstance, retry);
- return null;
- } else {
- // This is the first attempt.
- reenterHydrationStateFromDehydratedSuspenseInstance(workInProgress, suspenseInstance, suspenseState.treeContext);
- var primaryChildren = nextProps.children;
- var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); // Mark the children as hydrating. This is a fast path to know whether this
- // tree is part of a hydrating tree. This is used to determine if a child
- // node has fully mounted yet, and for scheduling event replaying.
- // Conceptually this is similar to Placement in that a new subtree is
- // inserted into the React tree here. It just happens to not need DOM
- // mutations because it already exists.
-
- primaryChildFragment.flags |= Hydrating;
- return primaryChildFragment;
- }
- } else {
- // This is the second render pass. We already attempted to hydrated, but
- // something either suspended or errored.
- if (workInProgress.flags & ForceClientRender) {
- // Something errored during hydration. Try again without hydrating.
- workInProgress.flags &= ~ForceClientRender;
-
- var _capturedValue2 = createCapturedValue(new Error('There was an error while hydrating this Suspense boundary. ' + 'Switched to client rendering.'));
-
- return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, _capturedValue2);
- } else if (workInProgress.memoizedState !== null) {
- // Something suspended and we should still be in dehydrated mode.
- // Leave the existing child in place.
- workInProgress.child = current.child; // The dehydrated completion pass expects this flag to be there
- // but the normal suspense pass doesn't.
-
- workInProgress.flags |= DidCapture;
- return null;
- } else {
- // Suspended but we should no longer be in dehydrated mode.
- // Therefore we now have to render the fallback.
- var nextPrimaryChildren = nextProps.children;
- var nextFallbackChildren = nextProps.fallback;
- var fallbackChildFragment = mountSuspenseFallbackAfterRetryWithoutHydrating(current, workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes);
- var _primaryChildFragment4 = workInProgress.child;
- _primaryChildFragment4.memoizedState = mountSuspenseOffscreenState(renderLanes);
- workInProgress.memoizedState = SUSPENDED_MARKER;
- return fallbackChildFragment;
- }
- }
- }
-
- function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) {
- fiber.lanes = mergeLanes(fiber.lanes, renderLanes);
- var alternate = fiber.alternate;
-
- if (alternate !== null) {
- alternate.lanes = mergeLanes(alternate.lanes, renderLanes);
- }
-
- scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot);
- }
-
- function propagateSuspenseContextChange(workInProgress, firstChild, renderLanes) {
- // Mark any Suspense boundaries with fallbacks as having work to do.
- // If they were previously forced into fallbacks, they may now be able
- // to unblock.
- var node = firstChild;
-
- while (node !== null) {
- if (node.tag === SuspenseComponent) {
- var state = node.memoizedState;
-
- if (state !== null) {
- scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress);
- }
- } else if (node.tag === SuspenseListComponent) {
- // If the tail is hidden there might not be an Suspense boundaries
- // to schedule work on. In this case we have to schedule it on the
- // list itself.
- // We don't have to traverse to the children of the list since
- // the list will propagate the change when it rerenders.
- scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress);
- } else if (node.child !== null) {
- node.child.return = node;
- node = node.child;
- continue;
- }
-
- if (node === workInProgress) {
- return;
- }
-
- while (node.sibling === null) {
- if (node.return === null || node.return === workInProgress) {
- return;
- }
-
- node = node.return;
- }
-
- node.sibling.return = node.return;
- node = node.sibling;
- }
- }
-
- function findLastContentRow(firstChild) {
- // This is going to find the last row among these children that is already
- // showing content on the screen, as opposed to being in fallback state or
- // new. If a row has multiple Suspense boundaries, any of them being in the
- // fallback state, counts as the whole row being in a fallback state.
- // Note that the "rows" will be workInProgress, but any nested children
- // will still be current since we haven't rendered them yet. The mounted
- // order may not be the same as the new order. We use the new order.
- var row = firstChild;
- var lastContentRow = null;
-
- while (row !== null) {
- var currentRow = row.alternate; // New rows can't be content rows.
-
- if (currentRow !== null && findFirstSuspended(currentRow) === null) {
- lastContentRow = row;
- }
-
- row = row.sibling;
- }
-
- return lastContentRow;
- }
-
- function validateRevealOrder(revealOrder) {
- {
- if (revealOrder !== undefined && revealOrder !== 'forwards' && revealOrder !== 'backwards' && revealOrder !== 'together' && !didWarnAboutRevealOrder[revealOrder]) {
- didWarnAboutRevealOrder[revealOrder] = true;
-
- if (typeof revealOrder === 'string') {
- switch (revealOrder.toLowerCase()) {
- case 'together':
- case 'forwards':
- case 'backwards':
- {
- error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase());
-
- break;
- }
-
- case 'forward':
- case 'backward':
- {
- error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase());
-
- break;
- }
-
- default:
- error('"%s" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
-
- break;
- }
- } else {
- error('%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
- }
- }
- }
- }
-
- function validateTailOptions(tailMode, revealOrder) {
- {
- if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) {
- if (tailMode !== 'collapsed' && tailMode !== 'hidden') {
- didWarnAboutTailOptions[tailMode] = true;
-
- error('"%s" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean "collapsed" or "hidden"?', tailMode);
- } else if (revealOrder !== 'forwards' && revealOrder !== 'backwards') {
- didWarnAboutTailOptions[tailMode] = true;
-
- error('<SuspenseList tail="%s" /> is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode);
- }
- }
- }
- }
-
- function validateSuspenseListNestedChild(childSlot, index) {
- {
- var isAnArray = isArray(childSlot);
- var isIterable = !isAnArray && typeof getIteratorFn(childSlot) === 'function';
-
- if (isAnArray || isIterable) {
- var type = isAnArray ? 'array' : 'iterable';
-
- error('A nested %s was passed to row #%s in <SuspenseList />. Wrap it in ' + 'an additional SuspenseList to configure its revealOrder: ' + '<SuspenseList revealOrder=...> ... ' + '<SuspenseList revealOrder=...>{%s}</SuspenseList> ... ' + '</SuspenseList>', type, index, type);
-
- return false;
- }
- }
-
- return true;
- }
-
- function validateSuspenseListChildren(children, revealOrder) {
- {
- if ((revealOrder === 'forwards' || revealOrder === 'backwards') && children !== undefined && children !== null && children !== false) {
- if (isArray(children)) {
- for (var i = 0; i < children.length; i++) {
- if (!validateSuspenseListNestedChild(children[i], i)) {
- return;
- }
- }
- } else {
- var iteratorFn = getIteratorFn(children);
-
- if (typeof iteratorFn === 'function') {
- var childrenIterator = iteratorFn.call(children);
-
- if (childrenIterator) {
- var step = childrenIterator.next();
- var _i = 0;
-
- for (; !step.done; step = childrenIterator.next()) {
- if (!validateSuspenseListNestedChild(step.value, _i)) {
- return;
- }
-
- _i++;
- }
- }
- } else {
- error('A single row was passed to a <SuspenseList revealOrder="%s" />. ' + 'This is not useful since it needs multiple rows. ' + 'Did you mean to pass multiple children or an array?', revealOrder);
- }
- }
- }
- }
- }
-
- function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) {
- var renderState = workInProgress.memoizedState;
-
- if (renderState === null) {
- workInProgress.memoizedState = {
- isBackwards: isBackwards,
- rendering: null,
- renderingStartTime: 0,
- last: lastContentRow,
- tail: tail,
- tailMode: tailMode
- };
- } else {
- // We can reuse the existing object from previous renders.
- renderState.isBackwards = isBackwards;
- renderState.rendering = null;
- renderState.renderingStartTime = 0;
- renderState.last = lastContentRow;
- renderState.tail = tail;
- renderState.tailMode = tailMode;
- }
- } // This can end up rendering this component multiple passes.
- // The first pass splits the children fibers into two sets. A head and tail.
- // We first render the head. If anything is in fallback state, we do another
- // pass through beginWork to rerender all children (including the tail) with
- // the force suspend context. If the first render didn't have anything in
- // in fallback state. Then we render each row in the tail one-by-one.
- // That happens in the completeWork phase without going back to beginWork.
-
-
- function updateSuspenseListComponent(current, workInProgress, renderLanes) {
- var nextProps = workInProgress.pendingProps;
- var revealOrder = nextProps.revealOrder;
- var tailMode = nextProps.tail;
- var newChildren = nextProps.children;
- validateRevealOrder(revealOrder);
- validateTailOptions(tailMode, revealOrder);
- validateSuspenseListChildren(newChildren, revealOrder);
- reconcileChildren(current, workInProgress, newChildren, renderLanes);
- var suspenseContext = suspenseStackCursor.current;
- var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback);
-
- if (shouldForceFallback) {
- suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
- workInProgress.flags |= DidCapture;
- } else {
- var didSuspendBefore = current !== null && (current.flags & DidCapture) !== NoFlags;
-
- if (didSuspendBefore) {
- // If we previously forced a fallback, we need to schedule work
- // on any nested boundaries to let them know to try to render
- // again. This is the same as context updating.
- propagateSuspenseContextChange(workInProgress, workInProgress.child, renderLanes);
- }
-
- suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
- }
-
- pushSuspenseContext(workInProgress, suspenseContext);
-
- if ((workInProgress.mode & ConcurrentMode) === NoMode) {
- // In legacy mode, SuspenseList doesn't work so we just
- // use make it a noop by treating it as the default revealOrder.
- workInProgress.memoizedState = null;
- } else {
- switch (revealOrder) {
- case 'forwards':
- {
- var lastContentRow = findLastContentRow(workInProgress.child);
- var tail;
-
- if (lastContentRow === null) {
- // The whole list is part of the tail.
- // TODO: We could fast path by just rendering the tail now.
- tail = workInProgress.child;
- workInProgress.child = null;
- } else {
- // Disconnect the tail rows after the content row.
- // We're going to render them separately later.
- tail = lastContentRow.sibling;
- lastContentRow.sibling = null;
- }
-
- initSuspenseListRenderState(workInProgress, false, // isBackwards
- tail, lastContentRow, tailMode);
- break;
- }
-
- case 'backwards':
- {
- // We're going to find the first row that has existing content.
- // At the same time we're going to reverse the list of everything
- // we pass in the meantime. That's going to be our tail in reverse
- // order.
- var _tail = null;
- var row = workInProgress.child;
- workInProgress.child = null;
-
- while (row !== null) {
- var currentRow = row.alternate; // New rows can't be content rows.
-
- if (currentRow !== null && findFirstSuspended(currentRow) === null) {
- // This is the beginning of the main content.
- workInProgress.child = row;
- break;
- }
-
- var nextRow = row.sibling;
- row.sibling = _tail;
- _tail = row;
- row = nextRow;
- } // TODO: If workInProgress.child is null, we can continue on the tail immediately.
-
-
- initSuspenseListRenderState(workInProgress, true, // isBackwards
- _tail, null, // last
- tailMode);
- break;
- }
-
- case 'together':
- {
- initSuspenseListRenderState(workInProgress, false, // isBackwards
- null, // tail
- null, // last
- undefined);
- break;
- }
-
- default:
- {
- // The default reveal order is the same as not having
- // a boundary.
- workInProgress.memoizedState = null;
- }
- }
- }
-
- return workInProgress.child;
- }
-
- function updatePortalComponent(current, workInProgress, renderLanes) {
- pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
- var nextChildren = workInProgress.pendingProps;
-
- if (current === null) {
- // Portals are special because we don't append the children during mount
- // but at commit. Therefore we need to track insertions which the normal
- // flow doesn't do during mount. This doesn't happen at the root because
- // the root always starts with a "current" with a null child.
- // TODO: Consider unifying this with how the root works.
- workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes);
- } else {
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- }
-
- return workInProgress.child;
- }
-
- var hasWarnedAboutUsingNoValuePropOnContextProvider = false;
-
- function updateContextProvider(current, workInProgress, renderLanes) {
- var providerType = workInProgress.type;
- var context = providerType._context;
- var newProps = workInProgress.pendingProps;
- var oldProps = workInProgress.memoizedProps;
- var newValue = newProps.value;
-
- {
- if (!('value' in newProps)) {
- if (!hasWarnedAboutUsingNoValuePropOnContextProvider) {
- hasWarnedAboutUsingNoValuePropOnContextProvider = true;
-
- error('The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?');
- }
- }
-
- var providerPropTypes = workInProgress.type.propTypes;
-
- if (providerPropTypes) {
- checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider');
- }
- }
-
- pushProvider(workInProgress, context, newValue);
-
- {
- if (oldProps !== null) {
- var oldValue = oldProps.value;
-
- if (objectIs(oldValue, newValue)) {
- // No change. Bailout early if children are the same.
- if (oldProps.children === newProps.children && !hasContextChanged()) {
- return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
- }
- } else {
- // The context value changed. Search for matching consumers and schedule
- // them to update.
- propagateContextChange(workInProgress, context, renderLanes);
- }
- }
- }
-
- var newChildren = newProps.children;
- reconcileChildren(current, workInProgress, newChildren, renderLanes);
- return workInProgress.child;
- }
-
- var hasWarnedAboutUsingContextAsConsumer = false;
-
- function updateContextConsumer(current, workInProgress, renderLanes) {
- var context = workInProgress.type; // The logic below for Context differs depending on PROD or DEV mode. In
- // DEV mode, we create a separate object for Context.Consumer that acts
- // like a proxy to Context. This proxy object adds unnecessary code in PROD
- // so we use the old behaviour (Context.Consumer references Context) to
- // reduce size and overhead. The separate object references context via
- // a property called "_context", which also gives us the ability to check
- // in DEV mode if this property exists or not and warn if it does not.
-
- {
- if (context._context === undefined) {
- // This may be because it's a Context (rather than a Consumer).
- // Or it may be because it's older React where they're the same thing.
- // We only want to warn if we're sure it's a new React.
- if (context !== context.Consumer) {
- if (!hasWarnedAboutUsingContextAsConsumer) {
- hasWarnedAboutUsingContextAsConsumer = true;
-
- error('Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
- }
- }
- } else {
- context = context._context;
- }
- }
-
- var newProps = workInProgress.pendingProps;
- var render = newProps.children;
-
- {
- if (typeof render !== 'function') {
- error('A context consumer was rendered with multiple children, or a child ' + "that isn't a function. A context consumer expects a single child " + 'that is a function. If you did pass a function, make sure there ' + 'is no trailing or leading whitespace around it.');
- }
- }
-
- prepareToReadContext(workInProgress, renderLanes);
- var newValue = readContext(context);
-
- {
- markComponentRenderStarted(workInProgress);
- }
-
- var newChildren;
-
- {
- ReactCurrentOwner$1.current = workInProgress;
- setIsRendering(true);
- newChildren = render(newValue);
- setIsRendering(false);
- }
-
- {
- markComponentRenderStopped();
- } // React DevTools reads this flag.
-
-
- workInProgress.flags |= PerformedWork;
- reconcileChildren(current, workInProgress, newChildren, renderLanes);
- return workInProgress.child;
- }
-
- function markWorkInProgressReceivedUpdate() {
- didReceiveUpdate = true;
- }
-
- function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) {
- if ((workInProgress.mode & ConcurrentMode) === NoMode) {
- if (current !== null) {
- // A lazy component only mounts if it suspended inside a non-
- // concurrent tree, in an inconsistent state. We want to treat it like
- // a new mount, even though an empty version of it already committed.
- // Disconnect the alternate pointers.
- current.alternate = null;
- workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
-
- workInProgress.flags |= Placement;
- }
- }
- }
-
- function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {
- if (current !== null) {
- // Reuse previous dependencies
- workInProgress.dependencies = current.dependencies;
- }
-
- {
- // Don't update "base" render times for bailouts.
- stopProfilerTimerIfRunning();
- }
-
- markSkippedUpdateLanes(workInProgress.lanes); // Check if the children have any pending work.
-
- if (!includesSomeLane(renderLanes, workInProgress.childLanes)) {
- // The children don't have any work either. We can skip them.
- // TODO: Once we add back resuming, we should check if the children are
- // a work-in-progress set. If so, we need to transfer their effects.
- {
- return null;
- }
- } // This fiber doesn't have work, but its subtree does. Clone the child
- // fibers and continue.
-
-
- cloneChildFibers(current, workInProgress);
- return workInProgress.child;
- }
-
- function remountFiber(current, oldWorkInProgress, newWorkInProgress) {
- {
- var returnFiber = oldWorkInProgress.return;
-
- if (returnFiber === null) {
- // eslint-disable-next-line react-internal/prod-error-codes
- throw new Error('Cannot swap the root fiber.');
- } // Disconnect from the old current.
- // It will get deleted.
-
-
- current.alternate = null;
- oldWorkInProgress.alternate = null; // Connect to the new tree.
-
- newWorkInProgress.index = oldWorkInProgress.index;
- newWorkInProgress.sibling = oldWorkInProgress.sibling;
- newWorkInProgress.return = oldWorkInProgress.return;
- newWorkInProgress.ref = oldWorkInProgress.ref; // Replace the child/sibling pointers above it.
-
- if (oldWorkInProgress === returnFiber.child) {
- returnFiber.child = newWorkInProgress;
- } else {
- var prevSibling = returnFiber.child;
-
- if (prevSibling === null) {
- // eslint-disable-next-line react-internal/prod-error-codes
- throw new Error('Expected parent to have a child.');
- }
-
- while (prevSibling.sibling !== oldWorkInProgress) {
- prevSibling = prevSibling.sibling;
-
- if (prevSibling === null) {
- // eslint-disable-next-line react-internal/prod-error-codes
- throw new Error('Expected to find the previous sibling.');
- }
- }
-
- prevSibling.sibling = newWorkInProgress;
- } // Delete the old fiber and place the new one.
- // Since the old fiber is disconnected, we have to schedule it manually.
-
-
- var deletions = returnFiber.deletions;
-
- if (deletions === null) {
- returnFiber.deletions = [current];
- returnFiber.flags |= ChildDeletion;
- } else {
- deletions.push(current);
- }
-
- newWorkInProgress.flags |= Placement; // Restart work from the new fiber.
-
- return newWorkInProgress;
- }
- }
-
- function checkScheduledUpdateOrContext(current, renderLanes) {
- // Before performing an early bailout, we must check if there are pending
- // updates or context.
- var updateLanes = current.lanes;
-
- if (includesSomeLane(updateLanes, renderLanes)) {
- return true;
- } // No pending update, but because context is propagated lazily, we need
-
- return false;
- }
-
- function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) {
- // This fiber does not have any pending work. Bailout without entering
- // the begin phase. There's still some bookkeeping we that needs to be done
- // in this optimized path, mostly pushing stuff onto the stack.
- switch (workInProgress.tag) {
- case HostRoot:
- pushHostRootContext(workInProgress);
- var root = workInProgress.stateNode;
-
- resetHydrationState();
- break;
-
- case HostComponent:
- pushHostContext(workInProgress);
- break;
-
- case ClassComponent:
- {
- var Component = workInProgress.type;
-
- if (isContextProvider(Component)) {
- pushContextProvider(workInProgress);
- }
-
- break;
- }
-
- case HostPortal:
- pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
- break;
-
- case ContextProvider:
- {
- var newValue = workInProgress.memoizedProps.value;
- var context = workInProgress.type._context;
- pushProvider(workInProgress, context, newValue);
- break;
- }
-
- case Profiler:
- {
- // Profiler should only call onRender when one of its descendants actually rendered.
- var hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes);
-
- if (hasChildWork) {
- workInProgress.flags |= Update;
- }
-
- {
- // Reset effect durations for the next eventual effect phase.
- // These are reset during render to allow the DevTools commit hook a chance to read them,
- var stateNode = workInProgress.stateNode;
- stateNode.effectDuration = 0;
- stateNode.passiveEffectDuration = 0;
- }
- }
-
- break;
-
- case SuspenseComponent:
- {
- var state = workInProgress.memoizedState;
-
- if (state !== null) {
- if (state.dehydrated !== null) {
- pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // We know that this component will suspend again because if it has
- // been unsuspended it has committed as a resolved Suspense component.
- // If it needs to be retried, it should have work scheduled on it.
-
- workInProgress.flags |= DidCapture; // We should never render the children of a dehydrated boundary until we
- // upgrade it. We return null instead of bailoutOnAlreadyFinishedWork.
-
- return null;
- } // If this boundary is currently timed out, we need to decide
- // whether to retry the primary children, or to skip over it and
- // go straight to the fallback. Check the priority of the primary
- // child fragment.
-
-
- var primaryChildFragment = workInProgress.child;
- var primaryChildLanes = primaryChildFragment.childLanes;
-
- if (includesSomeLane(renderLanes, primaryChildLanes)) {
- // The primary children have pending work. Use the normal path
- // to attempt to render the primary children again.
- return updateSuspenseComponent(current, workInProgress, renderLanes);
- } else {
- // The primary child fragment does not have pending work marked
- // on it
- pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // The primary children do not have pending work with sufficient
- // priority. Bailout.
-
- var child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
-
- if (child !== null) {
- // The fallback children have pending work. Skip over the
- // primary children and work on the fallback.
- return child.sibling;
- } else {
- // Note: We can return `null` here because we already checked
- // whether there were nested context consumers, via the call to
- // `bailoutOnAlreadyFinishedWork` above.
- return null;
- }
- }
- } else {
- pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
- }
-
- break;
- }
-
- case SuspenseListComponent:
- {
- var didSuspendBefore = (current.flags & DidCapture) !== NoFlags;
-
- var _hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes);
-
- if (didSuspendBefore) {
- if (_hasChildWork) {
- // If something was in fallback state last time, and we have all the
- // same children then we're still in progressive loading state.
- // Something might get unblocked by state updates or retries in the
- // tree which will affect the tail. So we need to use the normal
- // path to compute the correct tail.
- return updateSuspenseListComponent(current, workInProgress, renderLanes);
- } // If none of the children had any work, that means that none of
- // them got retried so they'll still be blocked in the same way
- // as before. We can fast bail out.
-
-
- workInProgress.flags |= DidCapture;
- } // If nothing suspended before and we're rendering the same children,
- // then the tail doesn't matter. Anything new that suspends will work
- // in the "together" mode, so we can continue from the state we had.
-
-
- var renderState = workInProgress.memoizedState;
-
- if (renderState !== null) {
- // Reset to the "together" mode in case we've started a different
- // update in the past but didn't complete it.
- renderState.rendering = null;
- renderState.tail = null;
- renderState.lastEffect = null;
- }
-
- pushSuspenseContext(workInProgress, suspenseStackCursor.current);
-
- if (_hasChildWork) {
- break;
- } else {
- // If none of the children had any work, that means that none of
- // them got retried so they'll still be blocked in the same way
- // as before. We can fast bail out.
- return null;
- }
- }
-
- case OffscreenComponent:
- case LegacyHiddenComponent:
- {
- // Need to check if the tree still needs to be deferred. This is
- // almost identical to the logic used in the normal update path,
- // so we'll just enter that. The only difference is we'll bail out
- // at the next level instead of this one, because the child props
- // have not changed. Which is fine.
- // TODO: Probably should refactor `beginWork` to split the bailout
- // path from the normal path. I'm tempted to do a labeled break here
- // but I won't :)
- workInProgress.lanes = NoLanes;
- return updateOffscreenComponent(current, workInProgress, renderLanes);
- }
- }
-
- return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
- }
-
- function beginWork(current, workInProgress, renderLanes) {
- {
- if (workInProgress._debugNeedsRemount && current !== null) {
- // This will restart the begin phase with a new fiber.
- return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.lanes));
- }
- }
-
- if (current !== null) {
- var oldProps = current.memoizedProps;
- var newProps = workInProgress.pendingProps;
-
- if (oldProps !== newProps || hasContextChanged() || ( // Force a re-render if the implementation changed due to hot reload:
- workInProgress.type !== current.type )) {
- // If props or context changed, mark the fiber as having performed work.
- // This may be unset if the props are determined to be equal later (memo).
- didReceiveUpdate = true;
- } else {
- // Neither props nor legacy context changes. Check if there's a pending
- // update or context change.
- var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes);
-
- if (!hasScheduledUpdateOrContext && // If this is the second pass of an error or suspense boundary, there
- // may not be work scheduled on `current`, so we check for this flag.
- (workInProgress.flags & DidCapture) === NoFlags) {
- // No pending updates or context. Bail out now.
- didReceiveUpdate = false;
- return attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes);
- }
-
- if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) {
- // This is a special case that only exists for legacy mode.
- // See https://github.com/facebook/react/pull/19216.
- didReceiveUpdate = true;
- } else {
- // An update was scheduled on this fiber, but there are no new props
- // nor legacy context. Set this to false. If an update queue or context
- // consumer produces a changed value, it will set this to true. Otherwise,
- // the component will assume the children have not changed and bail out.
- didReceiveUpdate = false;
- }
- }
- } else {
- didReceiveUpdate = false;
-
- if (getIsHydrating() && isForkedChild(workInProgress)) {
- // Check if this child belongs to a list of muliple children in
- // its parent.
- //
- // In a true multi-threaded implementation, we would render children on
- // parallel threads. This would represent the beginning of a new render
- // thread for this subtree.
- //
- // We only use this for id generation during hydration, which is why the
- // logic is located in this special branch.
- var slotIndex = workInProgress.index;
- var numberOfForks = getForksAtLevel();
- pushTreeId(workInProgress, numberOfForks, slotIndex);
- }
- } // Before entering the begin phase, clear pending update priority.
- // TODO: This assumes that we're about to evaluate the component and process
- // the update queue. However, there's an exception: SimpleMemoComponent
- // sometimes bails out later in the begin phase. This indicates that we should
- // move this assignment out of the common path and into each branch.
-
-
- workInProgress.lanes = NoLanes;
-
- switch (workInProgress.tag) {
- case IndeterminateComponent:
- {
- return mountIndeterminateComponent(current, workInProgress, workInProgress.type, renderLanes);
- }
-
- case LazyComponent:
- {
- var elementType = workInProgress.elementType;
- return mountLazyComponent(current, workInProgress, elementType, renderLanes);
- }
-
- case FunctionComponent:
- {
- var Component = workInProgress.type;
- var unresolvedProps = workInProgress.pendingProps;
- var resolvedProps = workInProgress.elementType === Component ? unresolvedProps : resolveDefaultProps(Component, unresolvedProps);
- return updateFunctionComponent(current, workInProgress, Component, resolvedProps, renderLanes);
- }
-
- case ClassComponent:
- {
- var _Component = workInProgress.type;
- var _unresolvedProps = workInProgress.pendingProps;
-
- var _resolvedProps = workInProgress.elementType === _Component ? _unresolvedProps : resolveDefaultProps(_Component, _unresolvedProps);
-
- return updateClassComponent(current, workInProgress, _Component, _resolvedProps, renderLanes);
- }
-
- case HostRoot:
- return updateHostRoot(current, workInProgress, renderLanes);
-
- case HostComponent:
- return updateHostComponent(current, workInProgress, renderLanes);
-
- case HostText:
- return updateHostText(current, workInProgress);
-
- case SuspenseComponent:
- return updateSuspenseComponent(current, workInProgress, renderLanes);
-
- case HostPortal:
- return updatePortalComponent(current, workInProgress, renderLanes);
-
- case ForwardRef:
- {
- var type = workInProgress.type;
- var _unresolvedProps2 = workInProgress.pendingProps;
-
- var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
-
- return updateForwardRef(current, workInProgress, type, _resolvedProps2, renderLanes);
- }
-
- case Fragment:
- return updateFragment(current, workInProgress, renderLanes);
-
- case Mode:
- return updateMode(current, workInProgress, renderLanes);
-
- case Profiler:
- return updateProfiler(current, workInProgress, renderLanes);
-
- case ContextProvider:
- return updateContextProvider(current, workInProgress, renderLanes);
-
- case ContextConsumer:
- return updateContextConsumer(current, workInProgress, renderLanes);
-
- case MemoComponent:
- {
- var _type2 = workInProgress.type;
- var _unresolvedProps3 = workInProgress.pendingProps; // Resolve outer props first, then resolve inner props.
-
- var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3);
-
- {
- if (workInProgress.type !== workInProgress.elementType) {
- var outerPropTypes = _type2.propTypes;
-
- if (outerPropTypes) {
- checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only
- 'prop', getComponentNameFromType(_type2));
- }
- }
- }
-
- _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);
- return updateMemoComponent(current, workInProgress, _type2, _resolvedProps3, renderLanes);
- }
-
- case SimpleMemoComponent:
- {
- return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes);
- }
-
- case IncompleteClassComponent:
- {
- var _Component2 = workInProgress.type;
- var _unresolvedProps4 = workInProgress.pendingProps;
-
- var _resolvedProps4 = workInProgress.elementType === _Component2 ? _unresolvedProps4 : resolveDefaultProps(_Component2, _unresolvedProps4);
-
- return mountIncompleteClassComponent(current, workInProgress, _Component2, _resolvedProps4, renderLanes);
- }
-
- case SuspenseListComponent:
- {
- return updateSuspenseListComponent(current, workInProgress, renderLanes);
- }
-
- case ScopeComponent:
- {
-
- break;
- }
-
- case OffscreenComponent:
- {
- return updateOffscreenComponent(current, workInProgress, renderLanes);
- }
- }
-
- throw new Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in " + 'React. Please file an issue.');
- }
-
- function markUpdate(workInProgress) {
- // Tag the fiber with an update effect. This turns a Placement into
- // a PlacementAndUpdate.
- workInProgress.flags |= Update;
- }
-
- function markRef$1(workInProgress) {
- workInProgress.flags |= Ref;
-
- {
- workInProgress.flags |= RefStatic;
- }
- }
-
- var appendAllChildren;
- var updateHostContainer;
- var updateHostComponent$1;
- var updateHostText$1;
-
- {
- // Mutation mode
- appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
- // We only have the top Fiber that was created but we need recurse down its
- // children to find all the terminal nodes.
- var node = workInProgress.child;
-
- while (node !== null) {
- if (node.tag === HostComponent || node.tag === HostText) {
- appendInitialChild(parent, node.stateNode);
- } else if (node.tag === HostPortal) ; else if (node.child !== null) {
- node.child.return = node;
- node = node.child;
- continue;
- }
-
- if (node === workInProgress) {
- return;
- }
-
- while (node.sibling === null) {
- if (node.return === null || node.return === workInProgress) {
- return;
- }
-
- node = node.return;
- }
-
- node.sibling.return = node.return;
- node = node.sibling;
- }
- };
-
- updateHostContainer = function (current, workInProgress) {// Noop
- };
-
- updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
- // If we have an alternate, that means this is an update and we need to
- // schedule a side-effect to do the updates.
- var oldProps = current.memoizedProps;
-
- if (oldProps === newProps) {
- // In mutation mode, this is sufficient for a bailout because
- // we won't touch this node even if children changed.
- return;
- } // If we get updated because one of our children updated, we don't
- // have newProps so we'll have to reuse them.
- // TODO: Split the update API as separate for the props vs. children.
- // Even better would be if children weren't special cased at all tho.
-
-
- var instance = workInProgress.stateNode;
- var currentHostContext = getHostContext(); // TODO: Experiencing an error where oldProps is null. Suggests a host
- // component is hitting the resume path. Figure out why. Possibly
- // related to `hidden`.
-
- var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); // TODO: Type this specific to this type of component.
-
- workInProgress.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there
- // is a new ref we mark this as an update. All the work is done in commitWork.
-
- if (updatePayload) {
- markUpdate(workInProgress);
- }
- };
-
- updateHostText$1 = function (current, workInProgress, oldText, newText) {
- // If the text differs, mark it as an update. All the work in done in commitWork.
- if (oldText !== newText) {
- markUpdate(workInProgress);
- }
- };
- }
-
- function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
- if (getIsHydrating()) {
- // If we're hydrating, we should consume as many items as we can
- // so we don't leave any behind.
- return;
- }
-
- switch (renderState.tailMode) {
- case 'hidden':
- {
- // Any insertions at the end of the tail list after this point
- // should be invisible. If there are already mounted boundaries
- // anything before them are not considered for collapsing.
- // Therefore we need to go through the whole tail to find if
- // there are any.
- var tailNode = renderState.tail;
- var lastTailNode = null;
-
- while (tailNode !== null) {
- if (tailNode.alternate !== null) {
- lastTailNode = tailNode;
- }
-
- tailNode = tailNode.sibling;
- } // Next we're simply going to delete all insertions after the
- // last rendered item.
-
-
- if (lastTailNode === null) {
- // All remaining items in the tail are insertions.
- renderState.tail = null;
- } else {
- // Detach the insertion after the last node that was already
- // inserted.
- lastTailNode.sibling = null;
- }
-
- break;
- }
-
- case 'collapsed':
- {
- // Any insertions at the end of the tail list after this point
- // should be invisible. If there are already mounted boundaries
- // anything before them are not considered for collapsing.
- // Therefore we need to go through the whole tail to find if
- // there are any.
- var _tailNode = renderState.tail;
- var _lastTailNode = null;
-
- while (_tailNode !== null) {
- if (_tailNode.alternate !== null) {
- _lastTailNode = _tailNode;
- }
-
- _tailNode = _tailNode.sibling;
- } // Next we're simply going to delete all insertions after the
- // last rendered item.
-
-
- if (_lastTailNode === null) {
- // All remaining items in the tail are insertions.
- if (!hasRenderedATailFallback && renderState.tail !== null) {
- // We suspended during the head. We want to show at least one
- // row at the tail. So we'll keep on and cut off the rest.
- renderState.tail.sibling = null;
- } else {
- renderState.tail = null;
- }
- } else {
- // Detach the insertion after the last node that was already
- // inserted.
- _lastTailNode.sibling = null;
- }
-
- break;
- }
- }
- }
-
- function bubbleProperties(completedWork) {
- var didBailout = completedWork.alternate !== null && completedWork.alternate.child === completedWork.child;
- var newChildLanes = NoLanes;
- var subtreeFlags = NoFlags;
-
- if (!didBailout) {
- // Bubble up the earliest expiration time.
- if ( (completedWork.mode & ProfileMode) !== NoMode) {
- // In profiling mode, resetChildExpirationTime is also used to reset
- // profiler durations.
- var actualDuration = completedWork.actualDuration;
- var treeBaseDuration = completedWork.selfBaseDuration;
- var child = completedWork.child;
-
- while (child !== null) {
- newChildLanes = mergeLanes(newChildLanes, mergeLanes(child.lanes, child.childLanes));
- subtreeFlags |= child.subtreeFlags;
- subtreeFlags |= child.flags; // When a fiber is cloned, its actualDuration is reset to 0. This value will
- // only be updated if work is done on the fiber (i.e. it doesn't bailout).
- // When work is done, it should bubble to the parent's actualDuration. If
- // the fiber has not been cloned though, (meaning no work was done), then
- // this value will reflect the amount of time spent working on a previous
- // render. In that case it should not bubble. We determine whether it was
- // cloned by comparing the child pointer.
-
- actualDuration += child.actualDuration;
- treeBaseDuration += child.treeBaseDuration;
- child = child.sibling;
- }
-
- completedWork.actualDuration = actualDuration;
- completedWork.treeBaseDuration = treeBaseDuration;
- } else {
- var _child = completedWork.child;
-
- while (_child !== null) {
- newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child.lanes, _child.childLanes));
- subtreeFlags |= _child.subtreeFlags;
- subtreeFlags |= _child.flags; // Update the return pointer so the tree is consistent. This is a code
- // smell because it assumes the commit phase is never concurrent with
- // the render phase. Will address during refactor to alternate model.
-
- _child.return = completedWork;
- _child = _child.sibling;
- }
- }
-
- completedWork.subtreeFlags |= subtreeFlags;
- } else {
- // Bubble up the earliest expiration time.
- if ( (completedWork.mode & ProfileMode) !== NoMode) {
- // In profiling mode, resetChildExpirationTime is also used to reset
- // profiler durations.
- var _treeBaseDuration = completedWork.selfBaseDuration;
- var _child2 = completedWork.child;
-
- while (_child2 !== null) {
- newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child2.lanes, _child2.childLanes)); // "Static" flags share the lifetime of the fiber/hook they belong to,
- // so we should bubble those up even during a bailout. All the other
- // flags have a lifetime only of a single render + commit, so we should
- // ignore them.
-
- subtreeFlags |= _child2.subtreeFlags & StaticMask;
- subtreeFlags |= _child2.flags & StaticMask;
- _treeBaseDuration += _child2.treeBaseDuration;
- _child2 = _child2.sibling;
- }
-
- completedWork.treeBaseDuration = _treeBaseDuration;
- } else {
- var _child3 = completedWork.child;
-
- while (_child3 !== null) {
- newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child3.lanes, _child3.childLanes)); // "Static" flags share the lifetime of the fiber/hook they belong to,
- // so we should bubble those up even during a bailout. All the other
- // flags have a lifetime only of a single render + commit, so we should
- // ignore them.
-
- subtreeFlags |= _child3.subtreeFlags & StaticMask;
- subtreeFlags |= _child3.flags & StaticMask; // Update the return pointer so the tree is consistent. This is a code
- // smell because it assumes the commit phase is never concurrent with
- // the render phase. Will address during refactor to alternate model.
-
- _child3.return = completedWork;
- _child3 = _child3.sibling;
- }
- }
-
- completedWork.subtreeFlags |= subtreeFlags;
- }
-
- completedWork.childLanes = newChildLanes;
- return didBailout;
- }
-
- function completeDehydratedSuspenseBoundary(current, workInProgress, nextState) {
- if (hasUnhydratedTailNodes() && (workInProgress.mode & ConcurrentMode) !== NoMode && (workInProgress.flags & DidCapture) === NoFlags) {
- warnIfUnhydratedTailNodes(workInProgress);
- resetHydrationState();
- workInProgress.flags |= ForceClientRender | Incomplete | ShouldCapture;
- return false;
- }
-
- var wasHydrated = popHydrationState(workInProgress);
-
- if (nextState !== null && nextState.dehydrated !== null) {
- // We might be inside a hydration state the first time we're picking up this
- // Suspense boundary, and also after we've reentered it for further hydration.
- if (current === null) {
- if (!wasHydrated) {
- throw new Error('A dehydrated suspense component was completed without a hydrated node. ' + 'This is probably a bug in React.');
- }
-
- prepareToHydrateHostSuspenseInstance(workInProgress);
- bubbleProperties(workInProgress);
-
- {
- if ((workInProgress.mode & ProfileMode) !== NoMode) {
- var isTimedOutSuspense = nextState !== null;
-
- if (isTimedOutSuspense) {
- // Don't count time spent in a timed out Suspense subtree as part of the base duration.
- var primaryChildFragment = workInProgress.child;
-
- if (primaryChildFragment !== null) {
- // $FlowFixMe Flow doesn't support type casting in combination with the -= operator
- workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration;
- }
- }
- }
- }
-
- return false;
- } else {
- // We might have reentered this boundary to hydrate it. If so, we need to reset the hydration
- // state since we're now exiting out of it. popHydrationState doesn't do that for us.
- resetHydrationState();
-
- if ((workInProgress.flags & DidCapture) === NoFlags) {
- // This boundary did not suspend so it's now hydrated and unsuspended.
- workInProgress.memoizedState = null;
- } // If nothing suspended, we need to schedule an effect to mark this boundary
- // as having hydrated so events know that they're free to be invoked.
- // It's also a signal to replay events and the suspense callback.
- // If something suspended, schedule an effect to attach retry listeners.
- // So we might as well always mark this.
-
-
- workInProgress.flags |= Update;
- bubbleProperties(workInProgress);
-
- {
- if ((workInProgress.mode & ProfileMode) !== NoMode) {
- var _isTimedOutSuspense = nextState !== null;
-
- if (_isTimedOutSuspense) {
- // Don't count time spent in a timed out Suspense subtree as part of the base duration.
- var _primaryChildFragment = workInProgress.child;
-
- if (_primaryChildFragment !== null) {
- // $FlowFixMe Flow doesn't support type casting in combination with the -= operator
- workInProgress.treeBaseDuration -= _primaryChildFragment.treeBaseDuration;
- }
- }
- }
- }
-
- return false;
- }
- } else {
- // Successfully completed this tree. If this was a forced client render,
- // there may have been recoverable errors during first hydration
- // attempt. If so, add them to a queue so we can log them in the
- // commit phase.
- upgradeHydrationErrorsToRecoverable(); // Fall through to normal Suspense path
-
- return true;
- }
- }
-
- function completeWork(current, workInProgress, renderLanes) {
- var newProps = workInProgress.pendingProps; // Note: This intentionally doesn't check if we're hydrating because comparing
- // to the current tree provider fiber is just as fast and less error-prone.
- // Ideally we would have a special version of the work loop only
- // for hydration.
-
- popTreeContext(workInProgress);
-
- switch (workInProgress.tag) {
- case IndeterminateComponent:
- case LazyComponent:
- case SimpleMemoComponent:
- case FunctionComponent:
- case ForwardRef:
- case Fragment:
- case Mode:
- case Profiler:
- case ContextConsumer:
- case MemoComponent:
- bubbleProperties(workInProgress);
- return null;
-
- case ClassComponent:
- {
- var Component = workInProgress.type;
-
- if (isContextProvider(Component)) {
- popContext(workInProgress);
- }
-
- bubbleProperties(workInProgress);
- return null;
- }
-
- case HostRoot:
- {
- var fiberRoot = workInProgress.stateNode;
- popHostContainer(workInProgress);
- popTopLevelContextObject(workInProgress);
- resetWorkInProgressVersions();
-
- if (fiberRoot.pendingContext) {
- fiberRoot.context = fiberRoot.pendingContext;
- fiberRoot.pendingContext = null;
- }
-
- if (current === null || current.child === null) {
- // If we hydrated, pop so that we can delete any remaining children
- // that weren't hydrated.
- var wasHydrated = popHydrationState(workInProgress);
-
- if (wasHydrated) {
- // If we hydrated, then we'll need to schedule an update for
- // the commit side-effects on the root.
- markUpdate(workInProgress);
- } else {
- if (current !== null) {
- var prevState = current.memoizedState;
-
- if ( // Check if this is a client root
- !prevState.isDehydrated || // Check if we reverted to client rendering (e.g. due to an error)
- (workInProgress.flags & ForceClientRender) !== NoFlags) {
- // Schedule an effect to clear this container at the start of the
- // next commit. This handles the case of React rendering into a
- // container with previous children. It's also safe to do for
- // updates too, because current.child would only be null if the
- // previous render was null (so the container would already
- // be empty).
- workInProgress.flags |= Snapshot; // If this was a forced client render, there may have been
- // recoverable errors during first hydration attempt. If so, add
- // them to a queue so we can log them in the commit phase.
-
- upgradeHydrationErrorsToRecoverable();
- }
- }
- }
- }
-
- updateHostContainer(current, workInProgress);
- bubbleProperties(workInProgress);
-
- return null;
- }
-
- case HostComponent:
- {
- popHostContext(workInProgress);
- var rootContainerInstance = getRootHostContainer();
- var type = workInProgress.type;
-
- if (current !== null && workInProgress.stateNode != null) {
- updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);
-
- if (current.ref !== workInProgress.ref) {
- markRef$1(workInProgress);
- }
- } else {
- if (!newProps) {
- if (workInProgress.stateNode === null) {
- throw new Error('We must have new props for new mounts. This error is likely ' + 'caused by a bug in React. Please file an issue.');
- } // This can happen when we abort work.
-
-
- bubbleProperties(workInProgress);
- return null;
- }
-
- var currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context
- // "stack" as the parent. Then append children as we go in beginWork
- // or completeWork depending on whether we want to add them top->down or
- // bottom->up. Top->down is faster in IE11.
-
- var _wasHydrated = popHydrationState(workInProgress);
-
- if (_wasHydrated) {
- // TODO: Move this and createInstance step into the beginPhase
- // to consolidate.
- if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
- // If changes to the hydrated node need to be applied at the
- // commit-phase we mark this as such.
- markUpdate(workInProgress);
- }
- } else {
- var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
- appendAllChildren(instance, workInProgress, false, false);
- workInProgress.stateNode = instance; // Certain renderers require commit-time effects for initial mount.
- // (eg DOM renderer supports auto-focus for certain elements).
- // Make sure such renderers get scheduled for later work.
-
- if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance)) {
- markUpdate(workInProgress);
- }
- }
-
- if (workInProgress.ref !== null) {
- // If there is a ref on a host node we need to schedule a callback
- markRef$1(workInProgress);
- }
- }
-
- bubbleProperties(workInProgress);
- return null;
- }
-
- case HostText:
- {
- var newText = newProps;
-
- if (current && workInProgress.stateNode != null) {
- var oldText = current.memoizedProps; // If we have an alternate, that means this is an update and we need
- // to schedule a side-effect to do the updates.
-
- updateHostText$1(current, workInProgress, oldText, newText);
- } else {
- if (typeof newText !== 'string') {
- if (workInProgress.stateNode === null) {
- throw new Error('We must have new props for new mounts. This error is likely ' + 'caused by a bug in React. Please file an issue.');
- } // This can happen when we abort work.
-
- }
-
- var _rootContainerInstance = getRootHostContainer();
-
- var _currentHostContext = getHostContext();
-
- var _wasHydrated2 = popHydrationState(workInProgress);
-
- if (_wasHydrated2) {
- if (prepareToHydrateHostTextInstance(workInProgress)) {
- markUpdate(workInProgress);
- }
- } else {
- workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
- }
- }
-
- bubbleProperties(workInProgress);
- return null;
- }
-
- case SuspenseComponent:
- {
- popSuspenseContext(workInProgress);
- var nextState = workInProgress.memoizedState; // Special path for dehydrated boundaries. We may eventually move this
- // to its own fiber type so that we can add other kinds of hydration
- // boundaries that aren't associated with a Suspense tree. In anticipation
- // of such a refactor, all the hydration logic is contained in
- // this branch.
-
- if (current === null || current.memoizedState !== null && current.memoizedState.dehydrated !== null) {
- var fallthroughToNormalSuspensePath = completeDehydratedSuspenseBoundary(current, workInProgress, nextState);
-
- if (!fallthroughToNormalSuspensePath) {
- if (workInProgress.flags & ShouldCapture) {
- // Special case. There were remaining unhydrated nodes. We treat
- // this as a mismatch. Revert to client rendering.
- return workInProgress;
- } else {
- // Did not finish hydrating, either because this is the initial
- // render or because something suspended.
- return null;
- }
- } // Continue with the normal Suspense path.
-
- }
-
- if ((workInProgress.flags & DidCapture) !== NoFlags) {
- // Something suspended. Re-render with the fallback children.
- workInProgress.lanes = renderLanes; // Do not reset the effect list.
-
- if ( (workInProgress.mode & ProfileMode) !== NoMode) {
- transferActualDuration(workInProgress);
- } // Don't bubble properties in this case.
-
-
- return workInProgress;
- }
-
- var nextDidTimeout = nextState !== null;
- var prevDidTimeout = current !== null && current.memoizedState !== null;
- // a passive effect, which is when we process the transitions
-
-
- if (nextDidTimeout !== prevDidTimeout) {
- // an effect to toggle the subtree's visibility. When we switch from
- // fallback -> primary, the inner Offscreen fiber schedules this effect
- // as part of its normal complete phase. But when we switch from
- // primary -> fallback, the inner Offscreen fiber does not have a complete
- // phase. So we need to schedule its effect here.
- //
- // We also use this flag to connect/disconnect the effects, but the same
- // logic applies: when re-connecting, the Offscreen fiber's complete
- // phase will handle scheduling the effect. It's only when the fallback
- // is active that we have to do anything special.
-
-
- if (nextDidTimeout) {
- var _offscreenFiber2 = workInProgress.child;
- _offscreenFiber2.flags |= Visibility; // TODO: This will still suspend a synchronous tree if anything
- // in the concurrent tree already suspended during this render.
- // This is a known bug.
-
- if ((workInProgress.mode & ConcurrentMode) !== NoMode) {
- // TODO: Move this back to throwException because this is too late
- // if this is a large tree which is common for initial loads. We
- // don't know if we should restart a render or not until we get
- // this marker, and this is too late.
- // If this render already had a ping or lower pri updates,
- // and this is the first time we know we're going to suspend we
- // should be able to immediately restart from within throwException.
- var hasInvisibleChildContext = current === null && (workInProgress.memoizedProps.unstable_avoidThisFallback !== true || !enableSuspenseAvoidThisFallback);
-
- if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) {
- // If this was in an invisible tree or a new render, then showing
- // this boundary is ok.
- renderDidSuspend();
- } else {
- // Otherwise, we're going to have to hide content so we should
- // suspend for longer if possible.
- renderDidSuspendDelayIfPossible();
- }
- }
- }
- }
-
- var wakeables = workInProgress.updateQueue;
-
- if (wakeables !== null) {
- // Schedule an effect to attach a retry listener to the promise.
- // TODO: Move to passive phase
- workInProgress.flags |= Update;
- }
-
- bubbleProperties(workInProgress);
-
- {
- if ((workInProgress.mode & ProfileMode) !== NoMode) {
- if (nextDidTimeout) {
- // Don't count time spent in a timed out Suspense subtree as part of the base duration.
- var primaryChildFragment = workInProgress.child;
-
- if (primaryChildFragment !== null) {
- // $FlowFixMe Flow doesn't support type casting in combination with the -= operator
- workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration;
- }
- }
- }
- }
-
- return null;
- }
-
- case HostPortal:
- popHostContainer(workInProgress);
- updateHostContainer(current, workInProgress);
-
- if (current === null) {
- preparePortalMount(workInProgress.stateNode.containerInfo);
- }
-
- bubbleProperties(workInProgress);
- return null;
-
- case ContextProvider:
- // Pop provider fiber
- var context = workInProgress.type._context;
- popProvider(context, workInProgress);
- bubbleProperties(workInProgress);
- return null;
-
- case IncompleteClassComponent:
- {
- // Same as class component case. I put it down here so that the tags are
- // sequential to ensure this switch is compiled to a jump table.
- var _Component = workInProgress.type;
-
- if (isContextProvider(_Component)) {
- popContext(workInProgress);
- }
-
- bubbleProperties(workInProgress);
- return null;
- }
-
- case SuspenseListComponent:
- {
- popSuspenseContext(workInProgress);
- var renderState = workInProgress.memoizedState;
-
- if (renderState === null) {
- // We're running in the default, "independent" mode.
- // We don't do anything in this mode.
- bubbleProperties(workInProgress);
- return null;
- }
-
- var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags;
- var renderedTail = renderState.rendering;
-
- if (renderedTail === null) {
- // We just rendered the head.
- if (!didSuspendAlready) {
- // This is the first pass. We need to figure out if anything is still
- // suspended in the rendered set.
- // If new content unsuspended, but there's still some content that
- // didn't. Then we need to do a second pass that forces everything
- // to keep showing their fallbacks.
- // We might be suspended if something in this render pass suspended, or
- // something in the previous committed pass suspended. Otherwise,
- // there's no chance so we can skip the expensive call to
- // findFirstSuspended.
- var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.flags & DidCapture) === NoFlags);
-
- if (!cannotBeSuspended) {
- var row = workInProgress.child;
-
- while (row !== null) {
- var suspended = findFirstSuspended(row);
-
- if (suspended !== null) {
- didSuspendAlready = true;
- workInProgress.flags |= DidCapture;
- cutOffTailIfNeeded(renderState, false); // If this is a newly suspended tree, it might not get committed as
- // part of the second pass. In that case nothing will subscribe to
- // its thenables. Instead, we'll transfer its thenables to the
- // SuspenseList so that it can retry if they resolve.
- // There might be multiple of these in the list but since we're
- // going to wait for all of them anyway, it doesn't really matter
- // which ones gets to ping. In theory we could get clever and keep
- // track of how many dependencies remain but it gets tricky because
- // in the meantime, we can add/remove/change items and dependencies.
- // We might bail out of the loop before finding any but that
- // doesn't matter since that means that the other boundaries that
- // we did find already has their listeners attached.
-
- var newThenables = suspended.updateQueue;
-
- if (newThenables !== null) {
- workInProgress.updateQueue = newThenables;
- workInProgress.flags |= Update;
- } // Rerender the whole list, but this time, we'll force fallbacks
- // to stay in place.
- // Reset the effect flags before doing the second pass since that's now invalid.
- // Reset the child fibers to their original state.
-
-
- workInProgress.subtreeFlags = NoFlags;
- resetChildFibers(workInProgress, renderLanes); // Set up the Suspense Context to force suspense and immediately
- // rerender the children.
-
- pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback)); // Don't bubble properties in this case.
-
- return workInProgress.child;
- }
-
- row = row.sibling;
- }
- }
-
- if (renderState.tail !== null && now() > getRenderTargetTime()) {
- // We have already passed our CPU deadline but we still have rows
- // left in the tail. We'll just give up further attempts to render
- // the main content and only render fallbacks.
- workInProgress.flags |= DidCapture;
- didSuspendAlready = true;
- cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this
- // to get it started back up to attempt the next item. While in terms
- // of priority this work has the same priority as this current render,
- // it's not part of the same transition once the transition has
- // committed. If it's sync, we still want to yield so that it can be
- // painted. Conceptually, this is really the same as pinging.
- // We can use any RetryLane even if it's the one currently rendering
- // since we're leaving it behind on this node.
-
- workInProgress.lanes = SomeRetryLane;
- }
- } else {
- cutOffTailIfNeeded(renderState, false);
- } // Next we're going to render the tail.
-
- } else {
- // Append the rendered row to the child list.
- if (!didSuspendAlready) {
- var _suspended = findFirstSuspended(renderedTail);
-
- if (_suspended !== null) {
- workInProgress.flags |= DidCapture;
- didSuspendAlready = true; // Ensure we transfer the update queue to the parent so that it doesn't
- // get lost if this row ends up dropped during a second pass.
-
- var _newThenables = _suspended.updateQueue;
-
- if (_newThenables !== null) {
- workInProgress.updateQueue = _newThenables;
- workInProgress.flags |= Update;
- }
-
- cutOffTailIfNeeded(renderState, true); // This might have been modified.
-
- if (renderState.tail === null && renderState.tailMode === 'hidden' && !renderedTail.alternate && !getIsHydrating() // We don't cut it if we're hydrating.
- ) {
- // We're done.
- bubbleProperties(workInProgress);
- return null;
- }
- } else if ( // The time it took to render last row is greater than the remaining
- // time we have to render. So rendering one more row would likely
- // exceed it.
- now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane) {
- // We have now passed our CPU deadline and we'll just give up further
- // attempts to render the main content and only render fallbacks.
- // The assumption is that this is usually faster.
- workInProgress.flags |= DidCapture;
- didSuspendAlready = true;
- cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this
- // to get it started back up to attempt the next item. While in terms
- // of priority this work has the same priority as this current render,
- // it's not part of the same transition once the transition has
- // committed. If it's sync, we still want to yield so that it can be
- // painted. Conceptually, this is really the same as pinging.
- // We can use any RetryLane even if it's the one currently rendering
- // since we're leaving it behind on this node.
-
- workInProgress.lanes = SomeRetryLane;
- }
- }
-
- if (renderState.isBackwards) {
- // The effect list of the backwards tail will have been added
- // to the end. This breaks the guarantee that life-cycles fire in
- // sibling order but that isn't a strong guarantee promised by React.
- // Especially since these might also just pop in during future commits.
- // Append to the beginning of the list.
- renderedTail.sibling = workInProgress.child;
- workInProgress.child = renderedTail;
- } else {
- var previousSibling = renderState.last;
-
- if (previousSibling !== null) {
- previousSibling.sibling = renderedTail;
- } else {
- workInProgress.child = renderedTail;
- }
-
- renderState.last = renderedTail;
- }
- }
-
- if (renderState.tail !== null) {
- // We still have tail rows to render.
- // Pop a row.
- var next = renderState.tail;
- renderState.rendering = next;
- renderState.tail = next.sibling;
- renderState.renderingStartTime = now();
- next.sibling = null; // Restore the context.
- // TODO: We can probably just avoid popping it instead and only
- // setting it the first time we go from not suspended to suspended.
-
- var suspenseContext = suspenseStackCursor.current;
-
- if (didSuspendAlready) {
- suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
- } else {
- suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
- }
-
- pushSuspenseContext(workInProgress, suspenseContext); // Do a pass over the next row.
- // Don't bubble properties in this case.
-
- return next;
- }
-
- bubbleProperties(workInProgress);
- return null;
- }
-
- case ScopeComponent:
- {
-
- break;
- }
-
- case OffscreenComponent:
- case LegacyHiddenComponent:
- {
- popRenderLanes(workInProgress);
- var _nextState = workInProgress.memoizedState;
- var nextIsHidden = _nextState !== null;
-
- if (current !== null) {
- var _prevState = current.memoizedState;
- var prevIsHidden = _prevState !== null;
-
- if (prevIsHidden !== nextIsHidden && ( // LegacyHidden doesn't do any hiding — it only pre-renders.
- !enableLegacyHidden )) {
- workInProgress.flags |= Visibility;
- }
- }
-
- if (!nextIsHidden || (workInProgress.mode & ConcurrentMode) === NoMode) {
- bubbleProperties(workInProgress);
- } else {
- // Don't bubble properties for hidden children unless we're rendering
- // at offscreen priority.
- if (includesSomeLane(subtreeRenderLanes, OffscreenLane)) {
- bubbleProperties(workInProgress);
-
- {
- // Check if there was an insertion or update in the hidden subtree.
- // If so, we need to hide those nodes in the commit phase, so
- // schedule a visibility effect.
- if ( workInProgress.subtreeFlags & (Placement | Update)) {
- workInProgress.flags |= Visibility;
- }
- }
- }
- }
- return null;
- }
-
- case CacheComponent:
- {
-
- return null;
- }
-
- case TracingMarkerComponent:
- {
-
- return null;
- }
- }
-
- throw new Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in " + 'React. Please file an issue.');
- }
-
- function unwindWork(current, workInProgress, renderLanes) {
- // Note: This intentionally doesn't check if we're hydrating because comparing
- // to the current tree provider fiber is just as fast and less error-prone.
- // Ideally we would have a special version of the work loop only
- // for hydration.
- popTreeContext(workInProgress);
-
- switch (workInProgress.tag) {
- case ClassComponent:
- {
- var Component = workInProgress.type;
-
- if (isContextProvider(Component)) {
- popContext(workInProgress);
- }
-
- var flags = workInProgress.flags;
-
- if (flags & ShouldCapture) {
- workInProgress.flags = flags & ~ShouldCapture | DidCapture;
-
- if ( (workInProgress.mode & ProfileMode) !== NoMode) {
- transferActualDuration(workInProgress);
- }
-
- return workInProgress;
- }
-
- return null;
- }
-
- case HostRoot:
- {
- var root = workInProgress.stateNode;
- popHostContainer(workInProgress);
- popTopLevelContextObject(workInProgress);
- resetWorkInProgressVersions();
- var _flags = workInProgress.flags;
-
- if ((_flags & ShouldCapture) !== NoFlags && (_flags & DidCapture) === NoFlags) {
- // There was an error during render that wasn't captured by a suspense
- // boundary. Do a second pass on the root to unmount the children.
- workInProgress.flags = _flags & ~ShouldCapture | DidCapture;
- return workInProgress;
- } // We unwound to the root without completing it. Exit.
-
-
- return null;
- }
-
- case HostComponent:
- {
- // TODO: popHydrationState
- popHostContext(workInProgress);
- return null;
- }
-
- case SuspenseComponent:
- {
- popSuspenseContext(workInProgress);
- var suspenseState = workInProgress.memoizedState;
-
- if (suspenseState !== null && suspenseState.dehydrated !== null) {
- if (workInProgress.alternate === null) {
- throw new Error('Threw in newly mounted dehydrated component. This is likely a bug in ' + 'React. Please file an issue.');
- }
-
- resetHydrationState();
- }
-
- var _flags2 = workInProgress.flags;
-
- if (_flags2 & ShouldCapture) {
- workInProgress.flags = _flags2 & ~ShouldCapture | DidCapture; // Captured a suspense effect. Re-render the boundary.
-
- if ( (workInProgress.mode & ProfileMode) !== NoMode) {
- transferActualDuration(workInProgress);
- }
-
- return workInProgress;
- }
-
- return null;
- }
-
- case SuspenseListComponent:
- {
- popSuspenseContext(workInProgress); // SuspenseList doesn't actually catch anything. It should've been
- // caught by a nested boundary. If not, it should bubble through.
-
- return null;
- }
-
- case HostPortal:
- popHostContainer(workInProgress);
- return null;
-
- case ContextProvider:
- var context = workInProgress.type._context;
- popProvider(context, workInProgress);
- return null;
-
- case OffscreenComponent:
- case LegacyHiddenComponent:
- popRenderLanes(workInProgress);
- return null;
-
- case CacheComponent:
-
- return null;
-
- default:
- return null;
- }
- }
-
- function unwindInterruptedWork(current, interruptedWork, renderLanes) {
- // Note: This intentionally doesn't check if we're hydrating because comparing
- // to the current tree provider fiber is just as fast and less error-prone.
- // Ideally we would have a special version of the work loop only
- // for hydration.
- popTreeContext(interruptedWork);
-
- switch (interruptedWork.tag) {
- case ClassComponent:
- {
- var childContextTypes = interruptedWork.type.childContextTypes;
-
- if (childContextTypes !== null && childContextTypes !== undefined) {
- popContext(interruptedWork);
- }
-
- break;
- }
-
- case HostRoot:
- {
- var root = interruptedWork.stateNode;
- popHostContainer(interruptedWork);
- popTopLevelContextObject(interruptedWork);
- resetWorkInProgressVersions();
- break;
- }
-
- case HostComponent:
- {
- popHostContext(interruptedWork);
- break;
- }
-
- case HostPortal:
- popHostContainer(interruptedWork);
- break;
-
- case SuspenseComponent:
- popSuspenseContext(interruptedWork);
- break;
-
- case SuspenseListComponent:
- popSuspenseContext(interruptedWork);
- break;
-
- case ContextProvider:
- var context = interruptedWork.type._context;
- popProvider(context, interruptedWork);
- break;
-
- case OffscreenComponent:
- case LegacyHiddenComponent:
- popRenderLanes(interruptedWork);
- break;
- }
- }
-
- var didWarnAboutUndefinedSnapshotBeforeUpdate = null;
-
- {
- didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
- } // Used during the commit phase to track the state of the Offscreen component stack.
- // Allows us to avoid traversing the return path to find the nearest Offscreen ancestor.
- // Only used when enableSuspenseLayoutEffectSemantics is enabled.
-
-
- var offscreenSubtreeIsHidden = false;
- var offscreenSubtreeWasHidden = false;
- var PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set;
- var nextEffect = null; // Used for Profiling builds to track updaters.
-
- var inProgressLanes = null;
- var inProgressRoot = null;
- function reportUncaughtErrorInDEV(error) {
- // Wrapping each small part of the commit phase into a guarded
- // callback is a bit too slow (https://github.com/facebook/react/pull/21666).
- // But we rely on it to surface errors to DEV tools like overlays
- // (https://github.com/facebook/react/issues/21712).
- // As a compromise, rethrow only caught errors in a guard.
- {
- invokeGuardedCallback(null, function () {
- throw error;
- });
- clearCaughtError();
- }
- }
-
- var callComponentWillUnmountWithTimer = function (current, instance) {
- instance.props = current.memoizedProps;
- instance.state = current.memoizedState;
-
- if ( current.mode & ProfileMode) {
- try {
- startLayoutEffectTimer();
- instance.componentWillUnmount();
- } finally {
- recordLayoutEffectDuration(current);
- }
- } else {
- instance.componentWillUnmount();
- }
- }; // Capture errors so they don't interrupt mounting.
-
-
- function safelyCallCommitHookLayoutEffectListMount(current, nearestMountedAncestor) {
- try {
- commitHookEffectListMount(Layout, current);
- } catch (error) {
- captureCommitPhaseError(current, nearestMountedAncestor, error);
- }
- } // Capture errors so they don't interrupt unmounting.
-
-
- function safelyCallComponentWillUnmount(current, nearestMountedAncestor, instance) {
- try {
- callComponentWillUnmountWithTimer(current, instance);
- } catch (error) {
- captureCommitPhaseError(current, nearestMountedAncestor, error);
- }
- } // Capture errors so they don't interrupt mounting.
-
-
- function safelyCallComponentDidMount(current, nearestMountedAncestor, instance) {
- try {
- instance.componentDidMount();
- } catch (error) {
- captureCommitPhaseError(current, nearestMountedAncestor, error);
- }
- } // Capture errors so they don't interrupt mounting.
-
-
- function safelyAttachRef(current, nearestMountedAncestor) {
- try {
- commitAttachRef(current);
- } catch (error) {
- captureCommitPhaseError(current, nearestMountedAncestor, error);
- }
- }
-
- function safelyDetachRef(current, nearestMountedAncestor) {
- var ref = current.ref;
-
- if (ref !== null) {
- if (typeof ref === 'function') {
- var retVal;
-
- try {
- if (enableProfilerTimer && enableProfilerCommitHooks && current.mode & ProfileMode) {
- try {
- startLayoutEffectTimer();
- retVal = ref(null);
- } finally {
- recordLayoutEffectDuration(current);
- }
- } else {
- retVal = ref(null);
- }
- } catch (error) {
- captureCommitPhaseError(current, nearestMountedAncestor, error);
- }
-
- {
- if (typeof retVal === 'function') {
- error('Unexpected return value from a callback ref in %s. ' + 'A callback ref should not return a function.', getComponentNameFromFiber(current));
- }
- }
- } else {
- ref.current = null;
- }
- }
- }
-
- function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
- try {
- destroy();
- } catch (error) {
- captureCommitPhaseError(current, nearestMountedAncestor, error);
- }
- }
-
- var focusedInstanceHandle = null;
- var shouldFireAfterActiveInstanceBlur = false;
- function commitBeforeMutationEffects(root, firstChild) {
- focusedInstanceHandle = prepareForCommit(root.containerInfo);
- nextEffect = firstChild;
- commitBeforeMutationEffects_begin(); // We no longer need to track the active instance fiber
-
- var shouldFire = shouldFireAfterActiveInstanceBlur;
- shouldFireAfterActiveInstanceBlur = false;
- focusedInstanceHandle = null;
- return shouldFire;
- }
-
- function commitBeforeMutationEffects_begin() {
- while (nextEffect !== null) {
- var fiber = nextEffect; // This phase is only used for beforeActiveInstanceBlur.
-
- var child = fiber.child;
-
- if ((fiber.subtreeFlags & BeforeMutationMask) !== NoFlags && child !== null) {
- child.return = fiber;
- nextEffect = child;
- } else {
- commitBeforeMutationEffects_complete();
- }
- }
- }
-
- function commitBeforeMutationEffects_complete() {
- while (nextEffect !== null) {
- var fiber = nextEffect;
- setCurrentFiber(fiber);
-
- try {
- commitBeforeMutationEffectsOnFiber(fiber);
- } catch (error) {
- captureCommitPhaseError(fiber, fiber.return, error);
- }
-
- resetCurrentFiber();
- var sibling = fiber.sibling;
-
- if (sibling !== null) {
- sibling.return = fiber.return;
- nextEffect = sibling;
- return;
- }
-
- nextEffect = fiber.return;
- }
- }
-
- function commitBeforeMutationEffectsOnFiber(finishedWork) {
- var current = finishedWork.alternate;
- var flags = finishedWork.flags;
-
- if ((flags & Snapshot) !== NoFlags) {
- setCurrentFiber(finishedWork);
-
- switch (finishedWork.tag) {
- case FunctionComponent:
- case ForwardRef:
- case SimpleMemoComponent:
- {
- break;
- }
-
- case ClassComponent:
- {
- if (current !== null) {
- var prevProps = current.memoizedProps;
- var prevState = current.memoizedState;
- var instance = finishedWork.stateNode; // We could update instance props and state here,
- // but instead we rely on them being set during last render.
- // TODO: revisit this when we implement resuming.
-
- {
- if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
- if (instance.props !== finishedWork.memoizedProps) {
- error('Expected %s props to match memoized props before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');
- }
-
- if (instance.state !== finishedWork.memoizedState) {
- error('Expected %s state to match memoized state before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');
- }
- }
- }
-
- var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);
-
- {
- var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
-
- if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
- didWarnSet.add(finishedWork.type);
-
- error('%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentNameFromFiber(finishedWork));
- }
- }
-
- instance.__reactInternalSnapshotBeforeUpdate = snapshot;
- }
-
- break;
- }
-
- case HostRoot:
- {
- {
- var root = finishedWork.stateNode;
- clearContainer(root.containerInfo);
- }
-
- break;
- }
-
- case HostComponent:
- case HostText:
- case HostPortal:
- case IncompleteClassComponent:
- // Nothing to do for these component types
- break;
-
- default:
- {
- throw new Error('This unit of work tag should not have side-effects. This error is ' + 'likely caused by a bug in React. Please file an issue.');
- }
- }
-
- resetCurrentFiber();
- }
- }
-
- function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) {
- var updateQueue = finishedWork.updateQueue;
- var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
-
- if (lastEffect !== null) {
- var firstEffect = lastEffect.next;
- var effect = firstEffect;
-
- do {
- if ((effect.tag & flags) === flags) {
- // Unmount
- var destroy = effect.destroy;
- effect.destroy = undefined;
-
- if (destroy !== undefined) {
- {
- if ((flags & Passive$1) !== NoFlags$1) {
- markComponentPassiveEffectUnmountStarted(finishedWork);
- } else if ((flags & Layout) !== NoFlags$1) {
- markComponentLayoutEffectUnmountStarted(finishedWork);
- }
- }
-
- {
- if ((flags & Insertion) !== NoFlags$1) {
- setIsRunningInsertionEffect(true);
- }
- }
-
- safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy);
-
- {
- if ((flags & Insertion) !== NoFlags$1) {
- setIsRunningInsertionEffect(false);
- }
- }
-
- {
- if ((flags & Passive$1) !== NoFlags$1) {
- markComponentPassiveEffectUnmountStopped();
- } else if ((flags & Layout) !== NoFlags$1) {
- markComponentLayoutEffectUnmountStopped();
- }
- }
- }
- }
-
- effect = effect.next;
- } while (effect !== firstEffect);
- }
- }
-
- function commitHookEffectListMount(flags, finishedWork) {
- var updateQueue = finishedWork.updateQueue;
- var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
-
- if (lastEffect !== null) {
- var firstEffect = lastEffect.next;
- var effect = firstEffect;
-
- do {
- if ((effect.tag & flags) === flags) {
- {
- if ((flags & Passive$1) !== NoFlags$1) {
- markComponentPassiveEffectMountStarted(finishedWork);
- } else if ((flags & Layout) !== NoFlags$1) {
- markComponentLayoutEffectMountStarted(finishedWork);
- }
- } // Mount
-
-
- var create = effect.create;
-
- {
- if ((flags & Insertion) !== NoFlags$1) {
- setIsRunningInsertionEffect(true);
- }
- }
-
- effect.destroy = create();
-
- {
- if ((flags & Insertion) !== NoFlags$1) {
- setIsRunningInsertionEffect(false);
- }
- }
-
- {
- if ((flags & Passive$1) !== NoFlags$1) {
- markComponentPassiveEffectMountStopped();
- } else if ((flags & Layout) !== NoFlags$1) {
- markComponentLayoutEffectMountStopped();
- }
- }
-
- {
- var destroy = effect.destroy;
-
- if (destroy !== undefined && typeof destroy !== 'function') {
- var hookName = void 0;
-
- if ((effect.tag & Layout) !== NoFlags) {
- hookName = 'useLayoutEffect';
- } else if ((effect.tag & Insertion) !== NoFlags) {
- hookName = 'useInsertionEffect';
- } else {
- hookName = 'useEffect';
- }
-
- var addendum = void 0;
-
- if (destroy === null) {
- addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';
- } else if (typeof destroy.then === 'function') {
- addendum = '\n\nIt looks like you wrote ' + hookName + '(async () => ...) or returned a Promise. ' + 'Instead, write the async function inside your effect ' + 'and call it immediately:\n\n' + hookName + '(() => {\n' + ' async function fetchData() {\n' + ' // You can await here\n' + ' const response = await MyAPI.getData(someId);\n' + ' // ...\n' + ' }\n' + ' fetchData();\n' + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + 'Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching';
- } else {
- addendum = ' You returned: ' + destroy;
- }
-
- error('%s must not return anything besides a function, ' + 'which is used for clean-up.%s', hookName, addendum);
- }
- }
- }
-
- effect = effect.next;
- } while (effect !== firstEffect);
- }
- }
-
- function commitPassiveEffectDurations(finishedRoot, finishedWork) {
- {
- // Only Profilers with work in their subtree will have an Update effect scheduled.
- if ((finishedWork.flags & Update) !== NoFlags) {
- switch (finishedWork.tag) {
- case Profiler:
- {
- var passiveEffectDuration = finishedWork.stateNode.passiveEffectDuration;
- var _finishedWork$memoize = finishedWork.memoizedProps,
- id = _finishedWork$memoize.id,
- onPostCommit = _finishedWork$memoize.onPostCommit; // This value will still reflect the previous commit phase.
- // It does not get reset until the start of the next commit phase.
-
- var commitTime = getCommitTime();
- var phase = finishedWork.alternate === null ? 'mount' : 'update';
-
- {
- if (isCurrentUpdateNested()) {
- phase = 'nested-update';
- }
- }
-
- if (typeof onPostCommit === 'function') {
- onPostCommit(id, phase, passiveEffectDuration, commitTime);
- } // Bubble times to the next nearest ancestor Profiler.
- // After we process that Profiler, we'll bubble further up.
-
-
- var parentFiber = finishedWork.return;
-
- outer: while (parentFiber !== null) {
- switch (parentFiber.tag) {
- case HostRoot:
- var root = parentFiber.stateNode;
- root.passiveEffectDuration += passiveEffectDuration;
- break outer;
-
- case Profiler:
- var parentStateNode = parentFiber.stateNode;
- parentStateNode.passiveEffectDuration += passiveEffectDuration;
- break outer;
- }
-
- parentFiber = parentFiber.return;
- }
-
- break;
- }
- }
- }
- }
- }
-
- function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork, committedLanes) {
- if ((finishedWork.flags & LayoutMask) !== NoFlags) {
- switch (finishedWork.tag) {
- case FunctionComponent:
- case ForwardRef:
- case SimpleMemoComponent:
- {
- if ( !offscreenSubtreeWasHidden) {
- // At this point layout effects have already been destroyed (during mutation phase).
- // This is done to prevent sibling component effects from interfering with each other,
- // e.g. a destroy function in one component should never override a ref set
- // by a create function in another component during the same commit.
- if ( finishedWork.mode & ProfileMode) {
- try {
- startLayoutEffectTimer();
- commitHookEffectListMount(Layout | HasEffect, finishedWork);
- } finally {
- recordLayoutEffectDuration(finishedWork);
- }
- } else {
- commitHookEffectListMount(Layout | HasEffect, finishedWork);
- }
- }
-
- break;
- }
-
- case ClassComponent:
- {
- var instance = finishedWork.stateNode;
-
- if (finishedWork.flags & Update) {
- if (!offscreenSubtreeWasHidden) {
- if (current === null) {
- // We could update instance props and state here,
- // but instead we rely on them being set during last render.
- // TODO: revisit this when we implement resuming.
- {
- if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
- if (instance.props !== finishedWork.memoizedProps) {
- error('Expected %s props to match memoized props before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');
- }
-
- if (instance.state !== finishedWork.memoizedState) {
- error('Expected %s state to match memoized state before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');
- }
- }
- }
-
- if ( finishedWork.mode & ProfileMode) {
- try {
- startLayoutEffectTimer();
- instance.componentDidMount();
- } finally {
- recordLayoutEffectDuration(finishedWork);
- }
- } else {
- instance.componentDidMount();
- }
- } else {
- var prevProps = finishedWork.elementType === finishedWork.type ? current.memoizedProps : resolveDefaultProps(finishedWork.type, current.memoizedProps);
- var prevState = current.memoizedState; // We could update instance props and state here,
- // but instead we rely on them being set during last render.
- // TODO: revisit this when we implement resuming.
-
- {
- if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
- if (instance.props !== finishedWork.memoizedProps) {
- error('Expected %s props to match memoized props before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');
- }
-
- if (instance.state !== finishedWork.memoizedState) {
- error('Expected %s state to match memoized state before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');
- }
- }
- }
-
- if ( finishedWork.mode & ProfileMode) {
- try {
- startLayoutEffectTimer();
- instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
- } finally {
- recordLayoutEffectDuration(finishedWork);
- }
- } else {
- instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
- }
- }
- }
- } // TODO: I think this is now always non-null by the time it reaches the
- // commit phase. Consider removing the type check.
-
-
- var updateQueue = finishedWork.updateQueue;
-
- if (updateQueue !== null) {
- {
- if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
- if (instance.props !== finishedWork.memoizedProps) {
- error('Expected %s props to match memoized props before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');
- }
-
- if (instance.state !== finishedWork.memoizedState) {
- error('Expected %s state to match memoized state before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');
- }
- }
- } // We could update instance props and state here,
- // but instead we rely on them being set during last render.
- // TODO: revisit this when we implement resuming.
-
-
- commitUpdateQueue(finishedWork, updateQueue, instance);
- }
-
- break;
- }
-
- case HostRoot:
- {
- // TODO: I think this is now always non-null by the time it reaches the
- // commit phase. Consider removing the type check.
- var _updateQueue = finishedWork.updateQueue;
-
- if (_updateQueue !== null) {
- var _instance = null;
-
- if (finishedWork.child !== null) {
- switch (finishedWork.child.tag) {
- case HostComponent:
- _instance = getPublicInstance(finishedWork.child.stateNode);
- break;
-
- case ClassComponent:
- _instance = finishedWork.child.stateNode;
- break;
- }
- }
-
- commitUpdateQueue(finishedWork, _updateQueue, _instance);
- }
-
- break;
- }
-
- case HostComponent:
- {
- var _instance2 = finishedWork.stateNode; // Renderers may schedule work to be done after host components are mounted
- // (eg DOM renderer may schedule auto-focus for inputs and form controls).
- // These effects should only be committed when components are first mounted,
- // aka when there is no current/alternate.
-
- if (current === null && finishedWork.flags & Update) {
- var type = finishedWork.type;
- var props = finishedWork.memoizedProps;
- commitMount(_instance2, type, props);
- }
-
- break;
- }
-
- case HostText:
- {
- // We have no life-cycles associated with text.
- break;
- }
-
- case HostPortal:
- {
- // We have no life-cycles associated with portals.
- break;
- }
-
- case Profiler:
- {
- {
- var _finishedWork$memoize2 = finishedWork.memoizedProps,
- onCommit = _finishedWork$memoize2.onCommit,
- onRender = _finishedWork$memoize2.onRender;
- var effectDuration = finishedWork.stateNode.effectDuration;
- var commitTime = getCommitTime();
- var phase = current === null ? 'mount' : 'update';
-
- {
- if (isCurrentUpdateNested()) {
- phase = 'nested-update';
- }
- }
-
- if (typeof onRender === 'function') {
- onRender(finishedWork.memoizedProps.id, phase, finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, commitTime);
- }
-
- {
- if (typeof onCommit === 'function') {
- onCommit(finishedWork.memoizedProps.id, phase, effectDuration, commitTime);
- } // Schedule a passive effect for this Profiler to call onPostCommit hooks.
- // This effect should be scheduled even if there is no onPostCommit callback for this Profiler,
- // because the effect is also where times bubble to parent Profilers.
-
-
- enqueuePendingPassiveProfilerEffect(finishedWork); // Propagate layout effect durations to the next nearest Profiler ancestor.
- // Do not reset these values until the next render so DevTools has a chance to read them first.
-
- var parentFiber = finishedWork.return;
-
- outer: while (parentFiber !== null) {
- switch (parentFiber.tag) {
- case HostRoot:
- var root = parentFiber.stateNode;
- root.effectDuration += effectDuration;
- break outer;
-
- case Profiler:
- var parentStateNode = parentFiber.stateNode;
- parentStateNode.effectDuration += effectDuration;
- break outer;
- }
-
- parentFiber = parentFiber.return;
- }
- }
- }
-
- break;
- }
-
- case SuspenseComponent:
- {
- commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);
- break;
- }
-
- case SuspenseListComponent:
- case IncompleteClassComponent:
- case ScopeComponent:
- case OffscreenComponent:
- case LegacyHiddenComponent:
- case TracingMarkerComponent:
- {
- break;
- }
-
- default:
- throw new Error('This unit of work tag should not have side-effects. This error is ' + 'likely caused by a bug in React. Please file an issue.');
- }
- }
-
- if ( !offscreenSubtreeWasHidden) {
- {
- if (finishedWork.flags & Ref) {
- commitAttachRef(finishedWork);
- }
- }
- }
- }
-
- function reappearLayoutEffectsOnFiber(node) {
- // Turn on layout effects in a tree that previously disappeared.
- // TODO (Offscreen) Check: flags & LayoutStatic
- switch (node.tag) {
- case FunctionComponent:
- case ForwardRef:
- case SimpleMemoComponent:
- {
- if ( node.mode & ProfileMode) {
- try {
- startLayoutEffectTimer();
- safelyCallCommitHookLayoutEffectListMount(node, node.return);
- } finally {
- recordLayoutEffectDuration(node);
- }
- } else {
- safelyCallCommitHookLayoutEffectListMount(node, node.return);
- }
-
- break;
- }
-
- case ClassComponent:
- {
- var instance = node.stateNode;
-
- if (typeof instance.componentDidMount === 'function') {
- safelyCallComponentDidMount(node, node.return, instance);
- }
-
- safelyAttachRef(node, node.return);
- break;
- }
-
- case HostComponent:
- {
- safelyAttachRef(node, node.return);
- break;
- }
- }
- }
-
- function hideOrUnhideAllChildren(finishedWork, isHidden) {
- // Only hide or unhide the top-most host nodes.
- var hostSubtreeRoot = null;
-
- {
- // We only have the top Fiber that was inserted but we need to recurse down its
- // children to find all the terminal nodes.
- var node = finishedWork;
-
- while (true) {
- if (node.tag === HostComponent) {
- if (hostSubtreeRoot === null) {
- hostSubtreeRoot = node;
-
- try {
- var instance = node.stateNode;
-
- if (isHidden) {
- hideInstance(instance);
- } else {
- unhideInstance(node.stateNode, node.memoizedProps);
- }
- } catch (error) {
- captureCommitPhaseError(finishedWork, finishedWork.return, error);
- }
- }
- } else if (node.tag === HostText) {
- if (hostSubtreeRoot === null) {
- try {
- var _instance3 = node.stateNode;
-
- if (isHidden) {
- hideTextInstance(_instance3);
- } else {
- unhideTextInstance(_instance3, node.memoizedProps);
- }
- } catch (error) {
- captureCommitPhaseError(finishedWork, finishedWork.return, error);
- }
- }
- } else if ((node.tag === OffscreenComponent || node.tag === LegacyHiddenComponent) && node.memoizedState !== null && node !== finishedWork) ; else if (node.child !== null) {
- node.child.return = node;
- node = node.child;
- continue;
- }
-
- if (node === finishedWork) {
- return;
- }
-
- while (node.sibling === null) {
- if (node.return === null || node.return === finishedWork) {
- return;
- }
-
- if (hostSubtreeRoot === node) {
- hostSubtreeRoot = null;
- }
-
- node = node.return;
- }
-
- if (hostSubtreeRoot === node) {
- hostSubtreeRoot = null;
- }
-
- node.sibling.return = node.return;
- node = node.sibling;
- }
- }
- }
-
- function commitAttachRef(finishedWork) {
- var ref = finishedWork.ref;
-
- if (ref !== null) {
- var instance = finishedWork.stateNode;
- var instanceToUse;
-
- switch (finishedWork.tag) {
- case HostComponent:
- instanceToUse = getPublicInstance(instance);
- break;
-
- default:
- instanceToUse = instance;
- } // Moved outside to ensure DCE works with this flag
-
- if (typeof ref === 'function') {
- var retVal;
-
- if ( finishedWork.mode & ProfileMode) {
- try {
- startLayoutEffectTimer();
- retVal = ref(instanceToUse);
- } finally {
- recordLayoutEffectDuration(finishedWork);
- }
- } else {
- retVal = ref(instanceToUse);
- }
-
- {
- if (typeof retVal === 'function') {
- error('Unexpected return value from a callback ref in %s. ' + 'A callback ref should not return a function.', getComponentNameFromFiber(finishedWork));
- }
- }
- } else {
- {
- if (!ref.hasOwnProperty('current')) {
- error('Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().', getComponentNameFromFiber(finishedWork));
- }
- }
-
- ref.current = instanceToUse;
- }
- }
- }
-
- function detachFiberMutation(fiber) {
- // Cut off the return pointer to disconnect it from the tree.
- // This enables us to detect and warn against state updates on an unmounted component.
- // It also prevents events from bubbling from within disconnected components.
- //
- // Ideally, we should also clear the child pointer of the parent alternate to let this
- // get GC:ed but we don't know which for sure which parent is the current
- // one so we'll settle for GC:ing the subtree of this child.
- // This child itself will be GC:ed when the parent updates the next time.
- //
- // Note that we can't clear child or sibling pointers yet.
- // They're needed for passive effects and for findDOMNode.
- // We defer those fields, and all other cleanup, to the passive phase (see detachFiberAfterEffects).
- //
- // Don't reset the alternate yet, either. We need that so we can detach the
- // alternate's fields in the passive phase. Clearing the return pointer is
- // sufficient for findDOMNode semantics.
- var alternate = fiber.alternate;
-
- if (alternate !== null) {
- alternate.return = null;
- }
-
- fiber.return = null;
- }
-
- function detachFiberAfterEffects(fiber) {
- var alternate = fiber.alternate;
-
- if (alternate !== null) {
- fiber.alternate = null;
- detachFiberAfterEffects(alternate);
- } // Note: Defensively using negation instead of < in case
- // `deletedTreeCleanUpLevel` is undefined.
-
-
- {
- // Clear cyclical Fiber fields. This level alone is designed to roughly
- // approximate the planned Fiber refactor. In that world, `setState` will be
- // bound to a special "instance" object instead of a Fiber. The Instance
- // object will not have any of these fields. It will only be connected to
- // the fiber tree via a single link at the root. So if this level alone is
- // sufficient to fix memory issues, that bodes well for our plans.
- fiber.child = null;
- fiber.deletions = null;
- fiber.sibling = null; // The `stateNode` is cyclical because on host nodes it points to the host
- // tree, which has its own pointers to children, parents, and siblings.
- // The other host nodes also point back to fibers, so we should detach that
- // one, too.
-
- if (fiber.tag === HostComponent) {
- var hostInstance = fiber.stateNode;
-
- if (hostInstance !== null) {
- detachDeletedInstance(hostInstance);
- }
- }
-
- fiber.stateNode = null; // I'm intentionally not clearing the `return` field in this level. We
- // already disconnect the `return` pointer at the root of the deleted
- // subtree (in `detachFiberMutation`). Besides, `return` by itself is not
- // cyclical — it's only cyclical when combined with `child`, `sibling`, and
- // `alternate`. But we'll clear it in the next level anyway, just in case.
-
- {
- fiber._debugOwner = null;
- }
-
- {
- // Theoretically, nothing in here should be necessary, because we already
- // disconnected the fiber from the tree. So even if something leaks this
- // particular fiber, it won't leak anything else
- //
- // The purpose of this branch is to be super aggressive so we can measure
- // if there's any difference in memory impact. If there is, that could
- // indicate a React leak we don't know about.
- fiber.return = null;
- fiber.dependencies = null;
- fiber.memoizedProps = null;
- fiber.memoizedState = null;
- fiber.pendingProps = null;
- fiber.stateNode = null; // TODO: Move to `commitPassiveUnmountInsideDeletedTreeOnFiber` instead.
-
- fiber.updateQueue = null;
- }
- }
- }
-
- function getHostParentFiber(fiber) {
- var parent = fiber.return;
-
- while (parent !== null) {
- if (isHostParent(parent)) {
- return parent;
- }
-
- parent = parent.return;
- }
-
- throw new Error('Expected to find a host parent. This error is likely caused by a bug ' + 'in React. Please file an issue.');
- }
-
- function isHostParent(fiber) {
- return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
- }
-
- function getHostSibling(fiber) {
- // We're going to search forward into the tree until we find a sibling host
- // node. Unfortunately, if multiple insertions are done in a row we have to
- // search past them. This leads to exponential search for the next sibling.
- // TODO: Find a more efficient way to do this.
- var node = fiber;
-
- siblings: while (true) {
- // If we didn't find anything, let's try the next sibling.
- while (node.sibling === null) {
- if (node.return === null || isHostParent(node.return)) {
- // If we pop out of the root or hit the parent the fiber we are the
- // last sibling.
- return null;
- }
-
- node = node.return;
- }
-
- node.sibling.return = node.return;
- node = node.sibling;
-
- while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedFragment) {
- // If it is not host node and, we might have a host node inside it.
- // Try to search down until we find one.
- if (node.flags & Placement) {
- // If we don't have a child, try the siblings instead.
- continue siblings;
- } // If we don't have a child, try the siblings instead.
- // We also skip portals because they are not part of this host tree.
-
-
- if (node.child === null || node.tag === HostPortal) {
- continue siblings;
- } else {
- node.child.return = node;
- node = node.child;
- }
- } // Check if this host node is stable or about to be placed.
-
-
- if (!(node.flags & Placement)) {
- // Found it!
- return node.stateNode;
- }
- }
- }
-
- function commitPlacement(finishedWork) {
-
-
- var parentFiber = getHostParentFiber(finishedWork); // Note: these two variables *must* always be updated together.
-
- switch (parentFiber.tag) {
- case HostComponent:
- {
- var parent = parentFiber.stateNode;
-
- if (parentFiber.flags & ContentReset) {
- // Reset the text content of the parent before doing any insertions
- resetTextContent(parent); // Clear ContentReset from the effect tag
-
- parentFiber.flags &= ~ContentReset;
- }
-
- var before = getHostSibling(finishedWork); // We only have the top Fiber that was inserted but we need to recurse down its
- // children to find all the terminal nodes.
-
- insertOrAppendPlacementNode(finishedWork, before, parent);
- break;
- }
-
- case HostRoot:
- case HostPortal:
- {
- var _parent = parentFiber.stateNode.containerInfo;
-
- var _before = getHostSibling(finishedWork);
-
- insertOrAppendPlacementNodeIntoContainer(finishedWork, _before, _parent);
- break;
- }
- // eslint-disable-next-line-no-fallthrough
-
- default:
- throw new Error('Invalid host parent fiber. This error is likely caused by a bug ' + 'in React. Please file an issue.');
- }
- }
-
- function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
- var tag = node.tag;
- var isHost = tag === HostComponent || tag === HostText;
-
- if (isHost) {
- var stateNode = node.stateNode;
-
- if (before) {
- insertInContainerBefore(parent, stateNode, before);
- } else {
- appendChildToContainer(parent, stateNode);
- }
- } else if (tag === HostPortal) ; else {
- var child = node.child;
-
- if (child !== null) {
- insertOrAppendPlacementNodeIntoContainer(child, before, parent);
- var sibling = child.sibling;
-
- while (sibling !== null) {
- insertOrAppendPlacementNodeIntoContainer(sibling, before, parent);
- sibling = sibling.sibling;
- }
- }
- }
- }
-
- function insertOrAppendPlacementNode(node, before, parent) {
- var tag = node.tag;
- var isHost = tag === HostComponent || tag === HostText;
-
- if (isHost) {
- var stateNode = node.stateNode;
-
- if (before) {
- insertBefore(parent, stateNode, before);
- } else {
- appendChild(parent, stateNode);
- }
- } else if (tag === HostPortal) ; else {
- var child = node.child;
-
- if (child !== null) {
- insertOrAppendPlacementNode(child, before, parent);
- var sibling = child.sibling;
-
- while (sibling !== null) {
- insertOrAppendPlacementNode(sibling, before, parent);
- sibling = sibling.sibling;
- }
- }
- }
- } // These are tracked on the stack as we recursively traverse a
- // deleted subtree.
- // TODO: Update these during the whole mutation phase, not just during
- // a deletion.
-
-
- var hostParent = null;
- var hostParentIsContainer = false;
-
- function commitDeletionEffects(root, returnFiber, deletedFiber) {
- {
- // We only have the top Fiber that was deleted but we need to recurse down its
- // children to find all the terminal nodes.
- // Recursively delete all host nodes from the parent, detach refs, clean
- // up mounted layout effects, and call componentWillUnmount.
- // We only need to remove the topmost host child in each branch. But then we
- // still need to keep traversing to unmount effects, refs, and cWU. TODO: We
- // could split this into two separate traversals functions, where the second
- // one doesn't include any removeChild logic. This is maybe the same
- // function as "disappearLayoutEffects" (or whatever that turns into after
- // the layout phase is refactored to use recursion).
- // Before starting, find the nearest host parent on the stack so we know
- // which instance/container to remove the children from.
- // TODO: Instead of searching up the fiber return path on every deletion, we
- // can track the nearest host component on the JS stack as we traverse the
- // tree during the commit phase. This would make insertions faster, too.
- var parent = returnFiber;
-
- findParent: while (parent !== null) {
- switch (parent.tag) {
- case HostComponent:
- {
- hostParent = parent.stateNode;
- hostParentIsContainer = false;
- break findParent;
- }
-
- case HostRoot:
- {
- hostParent = parent.stateNode.containerInfo;
- hostParentIsContainer = true;
- break findParent;
- }
-
- case HostPortal:
- {
- hostParent = parent.stateNode.containerInfo;
- hostParentIsContainer = true;
- break findParent;
- }
- }
-
- parent = parent.return;
- }
-
- if (hostParent === null) {
- throw new Error('Expected to find a host parent. This error is likely caused by ' + 'a bug in React. Please file an issue.');
- }
-
- commitDeletionEffectsOnFiber(root, returnFiber, deletedFiber);
- hostParent = null;
- hostParentIsContainer = false;
- }
-
- detachFiberMutation(deletedFiber);
- }
-
- function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) {
- // TODO: Use a static flag to skip trees that don't have unmount effects
- var child = parent.child;
-
- while (child !== null) {
- commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, child);
- child = child.sibling;
- }
- }
-
- function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) {
- onCommitUnmount(deletedFiber); // The cases in this outer switch modify the stack before they traverse
- // into their subtree. There are simpler cases in the inner switch
- // that don't modify the stack.
-
- switch (deletedFiber.tag) {
- case HostComponent:
- {
- if (!offscreenSubtreeWasHidden) {
- safelyDetachRef(deletedFiber, nearestMountedAncestor);
- } // Intentional fallthrough to next branch
-
- }
- // eslint-disable-next-line-no-fallthrough
-
- case HostText:
- {
- // We only need to remove the nearest host child. Set the host parent
- // to `null` on the stack to indicate that nested children don't
- // need to be removed.
- {
- var prevHostParent = hostParent;
- var prevHostParentIsContainer = hostParentIsContainer;
- hostParent = null;
- recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);
- hostParent = prevHostParent;
- hostParentIsContainer = prevHostParentIsContainer;
-
- if (hostParent !== null) {
- // Now that all the child effects have unmounted, we can remove the
- // node from the tree.
- if (hostParentIsContainer) {
- removeChildFromContainer(hostParent, deletedFiber.stateNode);
- } else {
- removeChild(hostParent, deletedFiber.stateNode);
- }
- }
- }
-
- return;
- }
-
- case DehydratedFragment:
- {
- // Delete the dehydrated suspense boundary and all of its content.
-
-
- {
- if (hostParent !== null) {
- if (hostParentIsContainer) {
- clearSuspenseBoundaryFromContainer(hostParent, deletedFiber.stateNode);
- } else {
- clearSuspenseBoundary(hostParent, deletedFiber.stateNode);
- }
- }
- }
-
- return;
- }
-
- case HostPortal:
- {
- {
- // When we go into a portal, it becomes the parent to remove from.
- var _prevHostParent = hostParent;
- var _prevHostParentIsContainer = hostParentIsContainer;
- hostParent = deletedFiber.stateNode.containerInfo;
- hostParentIsContainer = true;
- recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);
- hostParent = _prevHostParent;
- hostParentIsContainer = _prevHostParentIsContainer;
- }
-
- return;
- }
-
- case FunctionComponent:
- case ForwardRef:
- case MemoComponent:
- case SimpleMemoComponent:
- {
- if (!offscreenSubtreeWasHidden) {
- var updateQueue = deletedFiber.updateQueue;
-
- if (updateQueue !== null) {
- var lastEffect = updateQueue.lastEffect;
-
- if (lastEffect !== null) {
- var firstEffect = lastEffect.next;
- var effect = firstEffect;
-
- do {
- var _effect = effect,
- destroy = _effect.destroy,
- tag = _effect.tag;
-
- if (destroy !== undefined) {
- if ((tag & Insertion) !== NoFlags$1) {
- safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy);
- } else if ((tag & Layout) !== NoFlags$1) {
- {
- markComponentLayoutEffectUnmountStarted(deletedFiber);
- }
-
- if ( deletedFiber.mode & ProfileMode) {
- startLayoutEffectTimer();
- safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy);
- recordLayoutEffectDuration(deletedFiber);
- } else {
- safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy);
- }
-
- {
- markComponentLayoutEffectUnmountStopped();
- }
- }
- }
-
- effect = effect.next;
- } while (effect !== firstEffect);
- }
- }
- }
-
- recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);
- return;
- }
-
- case ClassComponent:
- {
- if (!offscreenSubtreeWasHidden) {
- safelyDetachRef(deletedFiber, nearestMountedAncestor);
- var instance = deletedFiber.stateNode;
-
- if (typeof instance.componentWillUnmount === 'function') {
- safelyCallComponentWillUnmount(deletedFiber, nearestMountedAncestor, instance);
- }
- }
-
- recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);
- return;
- }
-
- case ScopeComponent:
- {
-
- recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);
- return;
- }
-
- case OffscreenComponent:
- {
- if ( // TODO: Remove this dead flag
- deletedFiber.mode & ConcurrentMode) {
- // If this offscreen component is hidden, we already unmounted it. Before
- // deleting the children, track that it's already unmounted so that we
- // don't attempt to unmount the effects again.
- // TODO: If the tree is hidden, in most cases we should be able to skip
- // over the nested children entirely. An exception is we haven't yet found
- // the topmost host node to delete, which we already track on the stack.
- // But the other case is portals, which need to be detached no matter how
- // deeply they are nested. We should use a subtree flag to track whether a
- // subtree includes a nested portal.
- var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;
- offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || deletedFiber.memoizedState !== null;
- recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);
- offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;
- } else {
- recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);
- }
-
- break;
- }
-
- default:
- {
- recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);
- return;
- }
- }
- }
-
- function commitSuspenseCallback(finishedWork) {
- // TODO: Move this to passive phase
- var newState = finishedWork.memoizedState;
- }
-
- function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
-
- var newState = finishedWork.memoizedState;
-
- if (newState === null) {
- var current = finishedWork.alternate;
-
- if (current !== null) {
- var prevState = current.memoizedState;
-
- if (prevState !== null) {
- var suspenseInstance = prevState.dehydrated;
-
- if (suspenseInstance !== null) {
- commitHydratedSuspenseInstance(suspenseInstance);
- }
- }
- }
- }
- }
-
- function attachSuspenseRetryListeners(finishedWork) {
- // If this boundary just timed out, then it will have a set of wakeables.
- // For each wakeable, attach a listener so that when it resolves, React
- // attempts to re-render the boundary in the primary (pre-timeout) state.
- var wakeables = finishedWork.updateQueue;
-
- if (wakeables !== null) {
- finishedWork.updateQueue = null;
- var retryCache = finishedWork.stateNode;
-
- if (retryCache === null) {
- retryCache = finishedWork.stateNode = new PossiblyWeakSet();
- }
-
- wakeables.forEach(function (wakeable) {
- // Memoize using the boundary fiber to prevent redundant listeners.
- var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable);
-
- if (!retryCache.has(wakeable)) {
- retryCache.add(wakeable);
-
- {
- if (isDevToolsPresent) {
- if (inProgressLanes !== null && inProgressRoot !== null) {
- // If we have pending work still, associate the original updaters with it.
- restorePendingUpdaters(inProgressRoot, inProgressLanes);
- } else {
- throw Error('Expected finished root and lanes to be set. This is a bug in React.');
- }
- }
- }
-
- wakeable.then(retry, retry);
- }
- });
- }
- } // This function detects when a Suspense boundary goes from visible to hidden.
- function commitMutationEffects(root, finishedWork, committedLanes) {
- inProgressLanes = committedLanes;
- inProgressRoot = root;
- setCurrentFiber(finishedWork);
- commitMutationEffectsOnFiber(finishedWork, root);
- setCurrentFiber(finishedWork);
- inProgressLanes = null;
- inProgressRoot = null;
- }
-
- function recursivelyTraverseMutationEffects(root, parentFiber, lanes) {
- // Deletions effects can be scheduled on any fiber type. They need to happen
- // before the children effects hae fired.
- var deletions = parentFiber.deletions;
-
- if (deletions !== null) {
- for (var i = 0; i < deletions.length; i++) {
- var childToDelete = deletions[i];
-
- try {
- commitDeletionEffects(root, parentFiber, childToDelete);
- } catch (error) {
- captureCommitPhaseError(childToDelete, parentFiber, error);
- }
- }
- }
-
- var prevDebugFiber = getCurrentFiber();
-
- if (parentFiber.subtreeFlags & MutationMask) {
- var child = parentFiber.child;
-
- while (child !== null) {
- setCurrentFiber(child);
- commitMutationEffectsOnFiber(child, root);
- child = child.sibling;
- }
- }
-
- setCurrentFiber(prevDebugFiber);
- }
-
- function commitMutationEffectsOnFiber(finishedWork, root, lanes) {
- var current = finishedWork.alternate;
- var flags = finishedWork.flags; // The effect flag should be checked *after* we refine the type of fiber,
- // because the fiber tag is more specific. An exception is any flag related
- // to reconcilation, because those can be set on all fiber types.
-
- switch (finishedWork.tag) {
- case FunctionComponent:
- case ForwardRef:
- case MemoComponent:
- case SimpleMemoComponent:
- {
- recursivelyTraverseMutationEffects(root, finishedWork);
- commitReconciliationEffects(finishedWork);
-
- if (flags & Update) {
- try {
- commitHookEffectListUnmount(Insertion | HasEffect, finishedWork, finishedWork.return);
- commitHookEffectListMount(Insertion | HasEffect, finishedWork);
- } catch (error) {
- captureCommitPhaseError(finishedWork, finishedWork.return, error);
- } // Layout effects are destroyed during the mutation phase so that all
- // destroy functions for all fibers are called before any create functions.
- // This prevents sibling component effects from interfering with each other,
- // e.g. a destroy function in one component should never override a ref set
- // by a create function in another component during the same commit.
-
-
- if ( finishedWork.mode & ProfileMode) {
- try {
- startLayoutEffectTimer();
- commitHookEffectListUnmount(Layout | HasEffect, finishedWork, finishedWork.return);
- } catch (error) {
- captureCommitPhaseError(finishedWork, finishedWork.return, error);
- }
-
- recordLayoutEffectDuration(finishedWork);
- } else {
- try {
- commitHookEffectListUnmount(Layout | HasEffect, finishedWork, finishedWork.return);
- } catch (error) {
- captureCommitPhaseError(finishedWork, finishedWork.return, error);
- }
- }
- }
-
- return;
- }
-
- case ClassComponent:
- {
- recursivelyTraverseMutationEffects(root, finishedWork);
- commitReconciliationEffects(finishedWork);
-
- if (flags & Ref) {
- if (current !== null) {
- safelyDetachRef(current, current.return);
- }
- }
-
- return;
- }
-
- case HostComponent:
- {
- recursivelyTraverseMutationEffects(root, finishedWork);
- commitReconciliationEffects(finishedWork);
-
- if (flags & Ref) {
- if (current !== null) {
- safelyDetachRef(current, current.return);
- }
- }
-
- {
- // TODO: ContentReset gets cleared by the children during the commit
- // phase. This is a refactor hazard because it means we must read
- // flags the flags after `commitReconciliationEffects` has already run;
- // the order matters. We should refactor so that ContentReset does not
- // rely on mutating the flag during commit. Like by setting a flag
- // during the render phase instead.
- if (finishedWork.flags & ContentReset) {
- var instance = finishedWork.stateNode;
-
- try {
- resetTextContent(instance);
- } catch (error) {
- captureCommitPhaseError(finishedWork, finishedWork.return, error);
- }
- }
-
- if (flags & Update) {
- var _instance4 = finishedWork.stateNode;
-
- if (_instance4 != null) {
- // Commit the work prepared earlier.
- var newProps = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps
- // as the newProps. The updatePayload will contain the real change in
- // this case.
-
- var oldProps = current !== null ? current.memoizedProps : newProps;
- var type = finishedWork.type; // TODO: Type the updateQueue to be specific to host components.
-
- var updatePayload = finishedWork.updateQueue;
- finishedWork.updateQueue = null;
-
- if (updatePayload !== null) {
- try {
- commitUpdate(_instance4, updatePayload, type, oldProps, newProps, finishedWork);
- } catch (error) {
- captureCommitPhaseError(finishedWork, finishedWork.return, error);
- }
- }
- }
- }
- }
-
- return;
- }
-
- case HostText:
- {
- recursivelyTraverseMutationEffects(root, finishedWork);
- commitReconciliationEffects(finishedWork);
-
- if (flags & Update) {
- {
- if (finishedWork.stateNode === null) {
- throw new Error('This should have a text node initialized. This error is likely ' + 'caused by a bug in React. Please file an issue.');
- }
-
- var textInstance = finishedWork.stateNode;
- var newText = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps
- // as the newProps. The updatePayload will contain the real change in
- // this case.
-
- var oldText = current !== null ? current.memoizedProps : newText;
-
- try {
- commitTextUpdate(textInstance, oldText, newText);
- } catch (error) {
- captureCommitPhaseError(finishedWork, finishedWork.return, error);
- }
- }
- }
-
- return;
- }
-
- case HostRoot:
- {
- recursivelyTraverseMutationEffects(root, finishedWork);
- commitReconciliationEffects(finishedWork);
-
- if (flags & Update) {
- {
- if (current !== null) {
- var prevRootState = current.memoizedState;
-
- if (prevRootState.isDehydrated) {
- try {
- commitHydratedContainer(root.containerInfo);
- } catch (error) {
- captureCommitPhaseError(finishedWork, finishedWork.return, error);
- }
- }
- }
- }
- }
-
- return;
- }
-
- case HostPortal:
- {
- recursivelyTraverseMutationEffects(root, finishedWork);
- commitReconciliationEffects(finishedWork);
-
- return;
- }
-
- case SuspenseComponent:
- {
- recursivelyTraverseMutationEffects(root, finishedWork);
- commitReconciliationEffects(finishedWork);
- var offscreenFiber = finishedWork.child;
-
- if (offscreenFiber.flags & Visibility) {
- var offscreenInstance = offscreenFiber.stateNode;
- var newState = offscreenFiber.memoizedState;
- var isHidden = newState !== null; // Track the current state on the Offscreen instance so we can
- // read it during an event
-
- offscreenInstance.isHidden = isHidden;
-
- if (isHidden) {
- var wasHidden = offscreenFiber.alternate !== null && offscreenFiber.alternate.memoizedState !== null;
-
- if (!wasHidden) {
- // TODO: Move to passive phase
- markCommitTimeOfFallback();
- }
- }
- }
-
- if (flags & Update) {
- try {
- commitSuspenseCallback(finishedWork);
- } catch (error) {
- captureCommitPhaseError(finishedWork, finishedWork.return, error);
- }
-
- attachSuspenseRetryListeners(finishedWork);
- }
-
- return;
- }
-
- case OffscreenComponent:
- {
- var _wasHidden = current !== null && current.memoizedState !== null;
-
- if ( // TODO: Remove this dead flag
- finishedWork.mode & ConcurrentMode) {
- // Before committing the children, track on the stack whether this
- // offscreen subtree was already hidden, so that we don't unmount the
- // effects again.
- var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;
- offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || _wasHidden;
- recursivelyTraverseMutationEffects(root, finishedWork);
- offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;
- } else {
- recursivelyTraverseMutationEffects(root, finishedWork);
- }
-
- commitReconciliationEffects(finishedWork);
-
- if (flags & Visibility) {
- var _offscreenInstance = finishedWork.stateNode;
- var _newState = finishedWork.memoizedState;
-
- var _isHidden = _newState !== null;
-
- var offscreenBoundary = finishedWork; // Track the current state on the Offscreen instance so we can
- // read it during an event
-
- _offscreenInstance.isHidden = _isHidden;
-
- {
- if (_isHidden) {
- if (!_wasHidden) {
- if ((offscreenBoundary.mode & ConcurrentMode) !== NoMode) {
- nextEffect = offscreenBoundary;
- var offscreenChild = offscreenBoundary.child;
-
- while (offscreenChild !== null) {
- nextEffect = offscreenChild;
- disappearLayoutEffects_begin(offscreenChild);
- offscreenChild = offscreenChild.sibling;
- }
- }
- }
- }
- }
-
- {
- // TODO: This needs to run whenever there's an insertion or update
- // inside a hidden Offscreen tree.
- hideOrUnhideAllChildren(offscreenBoundary, _isHidden);
- }
- }
-
- return;
- }
-
- case SuspenseListComponent:
- {
- recursivelyTraverseMutationEffects(root, finishedWork);
- commitReconciliationEffects(finishedWork);
-
- if (flags & Update) {
- attachSuspenseRetryListeners(finishedWork);
- }
-
- return;
- }
-
- case ScopeComponent:
- {
-
- return;
- }
-
- default:
- {
- recursivelyTraverseMutationEffects(root, finishedWork);
- commitReconciliationEffects(finishedWork);
- return;
- }
- }
- }
-
- function commitReconciliationEffects(finishedWork) {
- // Placement effects (insertions, reorders) can be scheduled on any fiber
- // type. They needs to happen after the children effects have fired, but
- // before the effects on this fiber have fired.
- var flags = finishedWork.flags;
-
- if (flags & Placement) {
- try {
- commitPlacement(finishedWork);
- } catch (error) {
- captureCommitPhaseError(finishedWork, finishedWork.return, error);
- } // Clear the "placement" from effect tag so that we know that this is
- // inserted, before any life-cycles like componentDidMount gets called.
- // TODO: findDOMNode doesn't rely on this any more but isMounted does
- // and isMounted is deprecated anyway so we should be able to kill this.
-
-
- finishedWork.flags &= ~Placement;
- }
-
- if (flags & Hydrating) {
- finishedWork.flags &= ~Hydrating;
- }
- }
-
- function commitLayoutEffects(finishedWork, root, committedLanes) {
- inProgressLanes = committedLanes;
- inProgressRoot = root;
- nextEffect = finishedWork;
- commitLayoutEffects_begin(finishedWork, root, committedLanes);
- inProgressLanes = null;
- inProgressRoot = null;
- }
-
- function commitLayoutEffects_begin(subtreeRoot, root, committedLanes) {
- // Suspense layout effects semantics don't change for legacy roots.
- var isModernRoot = (subtreeRoot.mode & ConcurrentMode) !== NoMode;
-
- while (nextEffect !== null) {
- var fiber = nextEffect;
- var firstChild = fiber.child;
-
- if ( fiber.tag === OffscreenComponent && isModernRoot) {
- // Keep track of the current Offscreen stack's state.
- var isHidden = fiber.memoizedState !== null;
- var newOffscreenSubtreeIsHidden = isHidden || offscreenSubtreeIsHidden;
-
- if (newOffscreenSubtreeIsHidden) {
- // The Offscreen tree is hidden. Skip over its layout effects.
- commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes);
- continue;
- } else {
- // TODO (Offscreen) Also check: subtreeFlags & LayoutMask
- var current = fiber.alternate;
- var wasHidden = current !== null && current.memoizedState !== null;
- var newOffscreenSubtreeWasHidden = wasHidden || offscreenSubtreeWasHidden;
- var prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden;
- var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; // Traverse the Offscreen subtree with the current Offscreen as the root.
-
- offscreenSubtreeIsHidden = newOffscreenSubtreeIsHidden;
- offscreenSubtreeWasHidden = newOffscreenSubtreeWasHidden;
-
- if (offscreenSubtreeWasHidden && !prevOffscreenSubtreeWasHidden) {
- // This is the root of a reappearing boundary. Turn its layout effects
- // back on.
- nextEffect = fiber;
- reappearLayoutEffects_begin(fiber);
- }
-
- var child = firstChild;
-
- while (child !== null) {
- nextEffect = child;
- commitLayoutEffects_begin(child, // New root; bubble back up to here and stop.
- root, committedLanes);
- child = child.sibling;
- } // Restore Offscreen state and resume in our-progress traversal.
-
-
- nextEffect = fiber;
- offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden;
- offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;
- commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes);
- continue;
- }
- }
-
- if ((fiber.subtreeFlags & LayoutMask) !== NoFlags && firstChild !== null) {
- firstChild.return = fiber;
- nextEffect = firstChild;
- } else {
- commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes);
- }
- }
- }
-
- function commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes) {
- while (nextEffect !== null) {
- var fiber = nextEffect;
-
- if ((fiber.flags & LayoutMask) !== NoFlags) {
- var current = fiber.alternate;
- setCurrentFiber(fiber);
-
- try {
- commitLayoutEffectOnFiber(root, current, fiber, committedLanes);
- } catch (error) {
- captureCommitPhaseError(fiber, fiber.return, error);
- }
-
- resetCurrentFiber();
- }
-
- if (fiber === subtreeRoot) {
- nextEffect = null;
- return;
- }
-
- var sibling = fiber.sibling;
-
- if (sibling !== null) {
- sibling.return = fiber.return;
- nextEffect = sibling;
- return;
- }
-
- nextEffect = fiber.return;
- }
- }
-
- function disappearLayoutEffects_begin(subtreeRoot) {
- while (nextEffect !== null) {
- var fiber = nextEffect;
- var firstChild = fiber.child; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic)
-
- switch (fiber.tag) {
- case FunctionComponent:
- case ForwardRef:
- case MemoComponent:
- case SimpleMemoComponent:
- {
- if ( fiber.mode & ProfileMode) {
- try {
- startLayoutEffectTimer();
- commitHookEffectListUnmount(Layout, fiber, fiber.return);
- } finally {
- recordLayoutEffectDuration(fiber);
- }
- } else {
- commitHookEffectListUnmount(Layout, fiber, fiber.return);
- }
-
- break;
- }
-
- case ClassComponent:
- {
- // TODO (Offscreen) Check: flags & RefStatic
- safelyDetachRef(fiber, fiber.return);
- var instance = fiber.stateNode;
-
- if (typeof instance.componentWillUnmount === 'function') {
- safelyCallComponentWillUnmount(fiber, fiber.return, instance);
- }
-
- break;
- }
-
- case HostComponent:
- {
- safelyDetachRef(fiber, fiber.return);
- break;
- }
-
- case OffscreenComponent:
- {
- // Check if this is a
- var isHidden = fiber.memoizedState !== null;
-
- if (isHidden) {
- // Nested Offscreen tree is already hidden. Don't disappear
- // its effects.
- disappearLayoutEffects_complete(subtreeRoot);
- continue;
- }
-
- break;
- }
- } // TODO (Offscreen) Check: subtreeFlags & LayoutStatic
-
-
- if (firstChild !== null) {
- firstChild.return = fiber;
- nextEffect = firstChild;
- } else {
- disappearLayoutEffects_complete(subtreeRoot);
- }
- }
- }
-
- function disappearLayoutEffects_complete(subtreeRoot) {
- while (nextEffect !== null) {
- var fiber = nextEffect;
-
- if (fiber === subtreeRoot) {
- nextEffect = null;
- return;
- }
-
- var sibling = fiber.sibling;
-
- if (sibling !== null) {
- sibling.return = fiber.return;
- nextEffect = sibling;
- return;
- }
-
- nextEffect = fiber.return;
- }
- }
-
- function reappearLayoutEffects_begin(subtreeRoot) {
- while (nextEffect !== null) {
- var fiber = nextEffect;
- var firstChild = fiber.child;
-
- if (fiber.tag === OffscreenComponent) {
- var isHidden = fiber.memoizedState !== null;
-
- if (isHidden) {
- // Nested Offscreen tree is still hidden. Don't re-appear its effects.
- reappearLayoutEffects_complete(subtreeRoot);
- continue;
- }
- } // TODO (Offscreen) Check: subtreeFlags & LayoutStatic
-
-
- if (firstChild !== null) {
- // This node may have been reused from a previous render, so we can't
- // assume its return pointer is correct.
- firstChild.return = fiber;
- nextEffect = firstChild;
- } else {
- reappearLayoutEffects_complete(subtreeRoot);
- }
- }
- }
-
- function reappearLayoutEffects_complete(subtreeRoot) {
- while (nextEffect !== null) {
- var fiber = nextEffect; // TODO (Offscreen) Check: flags & LayoutStatic
-
- setCurrentFiber(fiber);
-
- try {
- reappearLayoutEffectsOnFiber(fiber);
- } catch (error) {
- captureCommitPhaseError(fiber, fiber.return, error);
- }
-
- resetCurrentFiber();
-
- if (fiber === subtreeRoot) {
- nextEffect = null;
- return;
- }
-
- var sibling = fiber.sibling;
-
- if (sibling !== null) {
- // This node may have been reused from a previous render, so we can't
- // assume its return pointer is correct.
- sibling.return = fiber.return;
- nextEffect = sibling;
- return;
- }
-
- nextEffect = fiber.return;
- }
- }
-
- function commitPassiveMountEffects(root, finishedWork, committedLanes, committedTransitions) {
- nextEffect = finishedWork;
- commitPassiveMountEffects_begin(finishedWork, root, committedLanes, committedTransitions);
- }
-
- function commitPassiveMountEffects_begin(subtreeRoot, root, committedLanes, committedTransitions) {
- while (nextEffect !== null) {
- var fiber = nextEffect;
- var firstChild = fiber.child;
-
- if ((fiber.subtreeFlags & PassiveMask) !== NoFlags && firstChild !== null) {
- firstChild.return = fiber;
- nextEffect = firstChild;
- } else {
- commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions);
- }
- }
- }
-
- function commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions) {
- while (nextEffect !== null) {
- var fiber = nextEffect;
-
- if ((fiber.flags & Passive) !== NoFlags) {
- setCurrentFiber(fiber);
-
- try {
- commitPassiveMountOnFiber(root, fiber, committedLanes, committedTransitions);
- } catch (error) {
- captureCommitPhaseError(fiber, fiber.return, error);
- }
-
- resetCurrentFiber();
- }
-
- if (fiber === subtreeRoot) {
- nextEffect = null;
- return;
- }
-
- var sibling = fiber.sibling;
-
- if (sibling !== null) {
- sibling.return = fiber.return;
- nextEffect = sibling;
- return;
- }
-
- nextEffect = fiber.return;
- }
- }
-
- function commitPassiveMountOnFiber(finishedRoot, finishedWork, committedLanes, committedTransitions) {
- switch (finishedWork.tag) {
- case FunctionComponent:
- case ForwardRef:
- case SimpleMemoComponent:
- {
- if ( finishedWork.mode & ProfileMode) {
- startPassiveEffectTimer();
-
- try {
- commitHookEffectListMount(Passive$1 | HasEffect, finishedWork);
- } finally {
- recordPassiveEffectDuration(finishedWork);
- }
- } else {
- commitHookEffectListMount(Passive$1 | HasEffect, finishedWork);
- }
-
- break;
- }
- }
- }
-
- function commitPassiveUnmountEffects(firstChild) {
- nextEffect = firstChild;
- commitPassiveUnmountEffects_begin();
- }
-
- function commitPassiveUnmountEffects_begin() {
- while (nextEffect !== null) {
- var fiber = nextEffect;
- var child = fiber.child;
-
- if ((nextEffect.flags & ChildDeletion) !== NoFlags) {
- var deletions = fiber.deletions;
-
- if (deletions !== null) {
- for (var i = 0; i < deletions.length; i++) {
- var fiberToDelete = deletions[i];
- nextEffect = fiberToDelete;
- commitPassiveUnmountEffectsInsideOfDeletedTree_begin(fiberToDelete, fiber);
- }
-
- {
- // A fiber was deleted from this parent fiber, but it's still part of
- // the previous (alternate) parent fiber's list of children. Because
- // children are a linked list, an earlier sibling that's still alive
- // will be connected to the deleted fiber via its `alternate`:
- //
- // live fiber
- // --alternate--> previous live fiber
- // --sibling--> deleted fiber
- //
- // We can't disconnect `alternate` on nodes that haven't been deleted
- // yet, but we can disconnect the `sibling` and `child` pointers.
- var previousFiber = fiber.alternate;
-
- if (previousFiber !== null) {
- var detachedChild = previousFiber.child;
-
- if (detachedChild !== null) {
- previousFiber.child = null;
-
- do {
- var detachedSibling = detachedChild.sibling;
- detachedChild.sibling = null;
- detachedChild = detachedSibling;
- } while (detachedChild !== null);
- }
- }
- }
-
- nextEffect = fiber;
- }
- }
-
- if ((fiber.subtreeFlags & PassiveMask) !== NoFlags && child !== null) {
- child.return = fiber;
- nextEffect = child;
- } else {
- commitPassiveUnmountEffects_complete();
- }
- }
- }
-
- function commitPassiveUnmountEffects_complete() {
- while (nextEffect !== null) {
- var fiber = nextEffect;
-
- if ((fiber.flags & Passive) !== NoFlags) {
- setCurrentFiber(fiber);
- commitPassiveUnmountOnFiber(fiber);
- resetCurrentFiber();
- }
-
- var sibling = fiber.sibling;
-
- if (sibling !== null) {
- sibling.return = fiber.return;
- nextEffect = sibling;
- return;
- }
-
- nextEffect = fiber.return;
- }
- }
-
- function commitPassiveUnmountOnFiber(finishedWork) {
- switch (finishedWork.tag) {
- case FunctionComponent:
- case ForwardRef:
- case SimpleMemoComponent:
- {
- if ( finishedWork.mode & ProfileMode) {
- startPassiveEffectTimer();
- commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return);
- recordPassiveEffectDuration(finishedWork);
- } else {
- commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return);
- }
-
- break;
- }
- }
- }
-
- function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot, nearestMountedAncestor) {
- while (nextEffect !== null) {
- var fiber = nextEffect; // Deletion effects fire in parent -> child order
- // TODO: Check if fiber has a PassiveStatic flag
-
- setCurrentFiber(fiber);
- commitPassiveUnmountInsideDeletedTreeOnFiber(fiber, nearestMountedAncestor);
- resetCurrentFiber();
- var child = fiber.child; // TODO: Only traverse subtree if it has a PassiveStatic flag. (But, if we
- // do this, still need to handle `deletedTreeCleanUpLevel` correctly.)
-
- if (child !== null) {
- child.return = fiber;
- nextEffect = child;
- } else {
- commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot);
- }
- }
- }
-
- function commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot) {
- while (nextEffect !== null) {
- var fiber = nextEffect;
- var sibling = fiber.sibling;
- var returnFiber = fiber.return;
-
- {
- // Recursively traverse the entire deleted tree and clean up fiber fields.
- // This is more aggressive than ideal, and the long term goal is to only
- // have to detach the deleted tree at the root.
- detachFiberAfterEffects(fiber);
-
- if (fiber === deletedSubtreeRoot) {
- nextEffect = null;
- return;
- }
- }
-
- if (sibling !== null) {
- sibling.return = returnFiber;
- nextEffect = sibling;
- return;
- }
-
- nextEffect = returnFiber;
- }
- }
-
- function commitPassiveUnmountInsideDeletedTreeOnFiber(current, nearestMountedAncestor) {
- switch (current.tag) {
- case FunctionComponent:
- case ForwardRef:
- case SimpleMemoComponent:
- {
- if ( current.mode & ProfileMode) {
- startPassiveEffectTimer();
- commitHookEffectListUnmount(Passive$1, current, nearestMountedAncestor);
- recordPassiveEffectDuration(current);
- } else {
- commitHookEffectListUnmount(Passive$1, current, nearestMountedAncestor);
- }
-
- break;
- }
- }
- } // TODO: Reuse reappearLayoutEffects traversal here?
-
-
- function invokeLayoutEffectMountInDEV(fiber) {
- {
- // We don't need to re-check StrictEffectsMode here.
- // This function is only called if that check has already passed.
- switch (fiber.tag) {
- case FunctionComponent:
- case ForwardRef:
- case SimpleMemoComponent:
- {
- try {
- commitHookEffectListMount(Layout | HasEffect, fiber);
- } catch (error) {
- captureCommitPhaseError(fiber, fiber.return, error);
- }
-
- break;
- }
-
- case ClassComponent:
- {
- var instance = fiber.stateNode;
-
- try {
- instance.componentDidMount();
- } catch (error) {
- captureCommitPhaseError(fiber, fiber.return, error);
- }
-
- break;
- }
- }
- }
- }
-
- function invokePassiveEffectMountInDEV(fiber) {
- {
- // We don't need to re-check StrictEffectsMode here.
- // This function is only called if that check has already passed.
- switch (fiber.tag) {
- case FunctionComponent:
- case ForwardRef:
- case SimpleMemoComponent:
- {
- try {
- commitHookEffectListMount(Passive$1 | HasEffect, fiber);
- } catch (error) {
- captureCommitPhaseError(fiber, fiber.return, error);
- }
-
- break;
- }
- }
- }
- }
-
- function invokeLayoutEffectUnmountInDEV(fiber) {
- {
- // We don't need to re-check StrictEffectsMode here.
- // This function is only called if that check has already passed.
- switch (fiber.tag) {
- case FunctionComponent:
- case ForwardRef:
- case SimpleMemoComponent:
- {
- try {
- commitHookEffectListUnmount(Layout | HasEffect, fiber, fiber.return);
- } catch (error) {
- captureCommitPhaseError(fiber, fiber.return, error);
- }
-
- break;
- }
-
- case ClassComponent:
- {
- var instance = fiber.stateNode;
-
- if (typeof instance.componentWillUnmount === 'function') {
- safelyCallComponentWillUnmount(fiber, fiber.return, instance);
- }
-
- break;
- }
- }
- }
- }
-
- function invokePassiveEffectUnmountInDEV(fiber) {
- {
- // We don't need to re-check StrictEffectsMode here.
- // This function is only called if that check has already passed.
- switch (fiber.tag) {
- case FunctionComponent:
- case ForwardRef:
- case SimpleMemoComponent:
- {
- try {
- commitHookEffectListUnmount(Passive$1 | HasEffect, fiber, fiber.return);
- } catch (error) {
- captureCommitPhaseError(fiber, fiber.return, error);
- }
- }
- }
- }
- }
-
- var COMPONENT_TYPE = 0;
- var HAS_PSEUDO_CLASS_TYPE = 1;
- var ROLE_TYPE = 2;
- var TEST_NAME_TYPE = 3;
- var TEXT_TYPE = 4;
-
- if (typeof Symbol === 'function' && Symbol.for) {
- var symbolFor = Symbol.for;
- COMPONENT_TYPE = symbolFor('selector.component');
- HAS_PSEUDO_CLASS_TYPE = symbolFor('selector.has_pseudo_class');
- ROLE_TYPE = symbolFor('selector.role');
- TEST_NAME_TYPE = symbolFor('selector.test_id');
- TEXT_TYPE = symbolFor('selector.text');
- }
- var commitHooks = [];
- function onCommitRoot$1() {
- {
- commitHooks.forEach(function (commitHook) {
- return commitHook();
- });
- }
- }
-
- var ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue;
- function isLegacyActEnvironment(fiber) {
- {
- // Legacy mode. We preserve the behavior of React 17's act. It assumes an
- // act environment whenever `jest` is defined, but you can still turn off
- // spurious warnings by setting IS_REACT_ACT_ENVIRONMENT explicitly
- // to false.
- var isReactActEnvironmentGlobal = // $FlowExpectedError – Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
- typeof IS_REACT_ACT_ENVIRONMENT !== 'undefined' ? IS_REACT_ACT_ENVIRONMENT : undefined; // $FlowExpectedError - Flow doesn't know about jest
-
- var jestIsDefined = typeof jest !== 'undefined';
- return jestIsDefined && isReactActEnvironmentGlobal !== false;
- }
- }
- function isConcurrentActEnvironment() {
- {
- var isReactActEnvironmentGlobal = // $FlowExpectedError – Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
- typeof IS_REACT_ACT_ENVIRONMENT !== 'undefined' ? IS_REACT_ACT_ENVIRONMENT : undefined;
-
- if (!isReactActEnvironmentGlobal && ReactCurrentActQueue.current !== null) {
- // TODO: Include link to relevant documentation page.
- error('The current testing environment is not configured to support ' + 'act(...)');
- }
-
- return isReactActEnvironmentGlobal;
- }
- }
-
- var ceil = Math.ceil;
- var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher,
- ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner,
- ReactCurrentBatchConfig$3 = ReactSharedInternals.ReactCurrentBatchConfig,
- ReactCurrentActQueue$1 = ReactSharedInternals.ReactCurrentActQueue;
- var NoContext =
- /* */
- 0;
- var BatchedContext =
- /* */
- 1;
- var RenderContext =
- /* */
- 2;
- var CommitContext =
- /* */
- 4;
- var RootInProgress = 0;
- var RootFatalErrored = 1;
- var RootErrored = 2;
- var RootSuspended = 3;
- var RootSuspendedWithDelay = 4;
- var RootCompleted = 5;
- var RootDidNotComplete = 6; // Describes where we are in the React execution stack
-
- var executionContext = NoContext; // The root we're working on
-
- var workInProgressRoot = null; // The fiber we're working on
-
- var workInProgress = null; // The lanes we're rendering
-
- var workInProgressRootRenderLanes = NoLanes; // Stack that allows components to change the render lanes for its subtree
- // This is a superset of the lanes we started working on at the root. The only
- // case where it's different from `workInProgressRootRenderLanes` is when we
- // enter a subtree that is hidden and needs to be unhidden: Suspense and
- // Offscreen component.
- //
- // Most things in the work loop should deal with workInProgressRootRenderLanes.
- // Most things in begin/complete phases should deal with subtreeRenderLanes.
-
- var subtreeRenderLanes = NoLanes;
- var subtreeRenderLanesCursor = createCursor(NoLanes); // Whether to root completed, errored, suspended, etc.
-
- var workInProgressRootExitStatus = RootInProgress; // A fatal error, if one is thrown
-
- var workInProgressRootFatalError = null; // "Included" lanes refer to lanes that were worked on during this render. It's
- // slightly different than `renderLanes` because `renderLanes` can change as you
- // enter and exit an Offscreen tree. This value is the combination of all render
- // lanes for the entire render phase.
-
- var workInProgressRootIncludedLanes = NoLanes; // The work left over by components that were visited during this render. Only
- // includes unprocessed updates, not work in bailed out children.
-
- var workInProgressRootSkippedLanes = NoLanes; // Lanes that were updated (in an interleaved event) during this render.
-
- var workInProgressRootInterleavedUpdatedLanes = NoLanes; // Lanes that were updated during the render phase (*not* an interleaved event).
-
- var workInProgressRootPingedLanes = NoLanes; // Errors that are thrown during the render phase.
-
- var workInProgressRootConcurrentErrors = null; // These are errors that we recovered from without surfacing them to the UI.
- // We will log them once the tree commits.
-
- var workInProgressRootRecoverableErrors = null; // The most recent time we committed a fallback. This lets us ensure a train
- // model where we don't commit new loading states in too quick succession.
-
- var globalMostRecentFallbackTime = 0;
- var FALLBACK_THROTTLE_MS = 500; // The absolute time for when we should start giving up on rendering
- // more and prefer CPU suspense heuristics instead.
-
- var workInProgressRootRenderTargetTime = Infinity; // How long a render is supposed to take before we start following CPU
- // suspense heuristics and opt out of rendering more content.
-
- var RENDER_TIMEOUT_MS = 500;
- var workInProgressTransitions = null;
-
- function resetRenderTimer() {
- workInProgressRootRenderTargetTime = now() + RENDER_TIMEOUT_MS;
- }
-
- function getRenderTargetTime() {
- return workInProgressRootRenderTargetTime;
- }
- var hasUncaughtError = false;
- var firstUncaughtError = null;
- var legacyErrorBoundariesThatAlreadyFailed = null; // Only used when enableProfilerNestedUpdateScheduledHook is true;
- var rootDoesHavePassiveEffects = false;
- var rootWithPendingPassiveEffects = null;
- var pendingPassiveEffectsLanes = NoLanes;
- var pendingPassiveProfilerEffects = [];
- var pendingPassiveTransitions = null; // Use these to prevent an infinite loop of nested updates
-
- var NESTED_UPDATE_LIMIT = 50;
- var nestedUpdateCount = 0;
- var rootWithNestedUpdates = null;
- var isFlushingPassiveEffects = false;
- var didScheduleUpdateDuringPassiveEffects = false;
- var NESTED_PASSIVE_UPDATE_LIMIT = 50;
- var nestedPassiveUpdateCount = 0;
- var rootWithPassiveNestedUpdates = null; // If two updates are scheduled within the same event, we should treat their
- // event times as simultaneous, even if the actual clock time has advanced
- // between the first and second call.
-
- var currentEventTime = NoTimestamp;
- var currentEventTransitionLane = NoLanes;
- var isRunningInsertionEffect = false;
- function getWorkInProgressRoot() {
- return workInProgressRoot;
- }
- function requestEventTime() {
- if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
- // We're inside React, so it's fine to read the actual time.
- return now();
- } // We're not inside React, so we may be in the middle of a browser event.
-
-
- if (currentEventTime !== NoTimestamp) {
- // Use the same start time for all updates until we enter React again.
- return currentEventTime;
- } // This is the first update since React yielded. Compute a new start time.
-
-
- currentEventTime = now();
- return currentEventTime;
- }
- function requestUpdateLane(fiber) {
- // Special cases
- var mode = fiber.mode;
-
- if ((mode & ConcurrentMode) === NoMode) {
- return SyncLane;
- } else if ( (executionContext & RenderContext) !== NoContext && workInProgressRootRenderLanes !== NoLanes) {
- // This is a render phase update. These are not officially supported. The
- // old behavior is to give this the same "thread" (lanes) as
- // whatever is currently rendering. So if you call `setState` on a component
- // that happens later in the same render, it will flush. Ideally, we want to
- // remove the special case and treat them as if they came from an
- // interleaved event. Regardless, this pattern is not officially supported.
- // This behavior is only a fallback. The flag only exists until we can roll
- // out the setState warning, since existing code might accidentally rely on
- // the current behavior.
- return pickArbitraryLane(workInProgressRootRenderLanes);
- }
-
- var isTransition = requestCurrentTransition() !== NoTransition;
-
- if (isTransition) {
- if ( ReactCurrentBatchConfig$3.transition !== null) {
- var transition = ReactCurrentBatchConfig$3.transition;
-
- if (!transition._updatedFibers) {
- transition._updatedFibers = new Set();
- }
-
- transition._updatedFibers.add(fiber);
- } // The algorithm for assigning an update to a lane should be stable for all
- // updates at the same priority within the same event. To do this, the
- // inputs to the algorithm must be the same.
- //
- // The trick we use is to cache the first of each of these inputs within an
- // event. Then reset the cached values once we can be sure the event is
- // over. Our heuristic for that is whenever we enter a concurrent work loop.
-
-
- if (currentEventTransitionLane === NoLane) {
- // All transitions within the same event are assigned the same lane.
- currentEventTransitionLane = claimNextTransitionLane();
- }
-
- return currentEventTransitionLane;
- } // Updates originating inside certain React methods, like flushSync, have
- // their priority set by tracking it with a context variable.
- //
- // The opaque type returned by the host config is internally a lane, so we can
- // use that directly.
- // TODO: Move this type conversion to the event priority module.
-
-
- var updateLane = getCurrentUpdatePriority();
-
- if (updateLane !== NoLane) {
- return updateLane;
- } // This update originated outside React. Ask the host environment for an
- // appropriate priority, based on the type of event.
- //
- // The opaque type returned by the host config is internally a lane, so we can
- // use that directly.
- // TODO: Move this type conversion to the event priority module.
-
-
- var eventLane = getCurrentEventPriority();
- return eventLane;
- }
-
- function requestRetryLane(fiber) {
- // This is a fork of `requestUpdateLane` designed specifically for Suspense
- // "retries" — a special update that attempts to flip a Suspense boundary
- // from its placeholder state to its primary/resolved state.
- // Special cases
- var mode = fiber.mode;
-
- if ((mode & ConcurrentMode) === NoMode) {
- return SyncLane;
- }
-
- return claimNextRetryLane();
- }
-
- function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
- checkForNestedUpdates();
-
- {
- if (isRunningInsertionEffect) {
- error('useInsertionEffect must not schedule updates.');
- }
- }
-
- {
- if (isFlushingPassiveEffects) {
- didScheduleUpdateDuringPassiveEffects = true;
- }
- } // Mark that the root has a pending update.
-
-
- markRootUpdated(root, lane, eventTime);
-
- if ((executionContext & RenderContext) !== NoLanes && root === workInProgressRoot) {
- // This update was dispatched during the render phase. This is a mistake
- // if the update originates from user space (with the exception of local
- // hook updates, which are handled differently and don't reach this
- // function), but there are some internal React features that use this as
- // an implementation detail, like selective hydration.
- warnAboutRenderPhaseUpdatesInDEV(fiber); // Track lanes that were updated during the render phase
- } else {
- // This is a normal update, scheduled from outside the render phase. For
- // example, during an input event.
- {
- if (isDevToolsPresent) {
- addFiberToLanesMap(root, fiber, lane);
- }
- }
-
- warnIfUpdatesNotWrappedWithActDEV(fiber);
-
- if (root === workInProgressRoot) {
- // Received an update to a tree that's in the middle of rendering. Mark
- // that there was an interleaved update work on this root. Unless the
- // `deferRenderPhaseUpdateToNextBatch` flag is off and this is a render
- // phase update. In that case, we don't treat render phase updates as if
- // they were interleaved, for backwards compat reasons.
- if ( (executionContext & RenderContext) === NoContext) {
- workInProgressRootInterleavedUpdatedLanes = mergeLanes(workInProgressRootInterleavedUpdatedLanes, lane);
- }
-
- if (workInProgressRootExitStatus === RootSuspendedWithDelay) {
- // The root already suspended with a delay, which means this render
- // definitely won't finish. Since we have a new update, let's mark it as
- // suspended now, right before marking the incoming update. This has the
- // effect of interrupting the current render and switching to the update.
- // TODO: Make sure this doesn't override pings that happen while we've
- // already started rendering.
- markRootSuspended$1(root, workInProgressRootRenderLanes);
- }
- }
-
- ensureRootIsScheduled(root, eventTime);
-
- if (lane === SyncLane && executionContext === NoContext && (fiber.mode & ConcurrentMode) === NoMode && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode.
- !( ReactCurrentActQueue$1.isBatchingLegacy)) {
- // Flush the synchronous work now, unless we're already working or inside
- // a batch. This is intentionally inside scheduleUpdateOnFiber instead of
- // scheduleCallbackForFiber to preserve the ability to schedule a callback
- // without immediately flushing it. We only do this for user-initiated
- // updates, to preserve historical behavior of legacy mode.
- resetRenderTimer();
- flushSyncCallbacksOnlyInLegacyMode();
- }
- }
- }
- function scheduleInitialHydrationOnRoot(root, lane, eventTime) {
- // This is a special fork of scheduleUpdateOnFiber that is only used to
- // schedule the initial hydration of a root that has just been created. Most
- // of the stuff in scheduleUpdateOnFiber can be skipped.
- //
- // The main reason for this separate path, though, is to distinguish the
- // initial children from subsequent updates. In fully client-rendered roots
- // (createRoot instead of hydrateRoot), all top-level renders are modeled as
- // updates, but hydration roots are special because the initial render must
- // match what was rendered on the server.
- var current = root.current;
- current.lanes = lane;
- markRootUpdated(root, lane, eventTime);
- ensureRootIsScheduled(root, eventTime);
- }
- function isUnsafeClassRenderPhaseUpdate(fiber) {
- // Check if this is a render phase update. Only called by class components,
- // which special (deprecated) behavior for UNSAFE_componentWillReceive props.
- return (// TODO: Remove outdated deferRenderPhaseUpdateToNextBatch experiment. We
- // decided not to enable it.
- (executionContext & RenderContext) !== NoContext
- );
- } // Use this function to schedule a task for a root. There's only one task per
- // root; if a task was already scheduled, we'll check to make sure the priority
- // of the existing task is the same as the priority of the next level that the
- // root has work on. This function is called on every update, and right before
- // exiting a task.
-
- function ensureRootIsScheduled(root, currentTime) {
- var existingCallbackNode = root.callbackNode; // Check if any lanes are being starved by other work. If so, mark them as
- // expired so we know to work on those next.
-
- markStarvedLanesAsExpired(root, currentTime); // Determine the next lanes to work on, and their priority.
-
- var nextLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes);
-
- if (nextLanes === NoLanes) {
- // Special case: There's nothing to work on.
- if (existingCallbackNode !== null) {
- cancelCallback$1(existingCallbackNode);
- }
-
- root.callbackNode = null;
- root.callbackPriority = NoLane;
- return;
- } // We use the highest priority lane to represent the priority of the callback.
-
-
- var newCallbackPriority = getHighestPriorityLane(nextLanes); // Check if there's an existing task. We may be able to reuse it.
-
- var existingCallbackPriority = root.callbackPriority;
-
- if (existingCallbackPriority === newCallbackPriority && // Special case related to `act`. If the currently scheduled task is a
- // Scheduler task, rather than an `act` task, cancel it and re-scheduled
- // on the `act` queue.
- !( ReactCurrentActQueue$1.current !== null && existingCallbackNode !== fakeActCallbackNode)) {
- {
- // If we're going to re-use an existing task, it needs to exist.
- // Assume that discrete update microtasks are non-cancellable and null.
- // TODO: Temporary until we confirm this warning is not fired.
- if (existingCallbackNode == null && existingCallbackPriority !== SyncLane) {
- error('Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.');
- }
- } // The priority hasn't changed. We can reuse the existing task. Exit.
-
-
- return;
- }
-
- if (existingCallbackNode != null) {
- // Cancel the existing callback. We'll schedule a new one below.
- cancelCallback$1(existingCallbackNode);
- } // Schedule a new callback.
-
-
- var newCallbackNode;
-
- if (newCallbackPriority === SyncLane) {
- // Special case: Sync React callbacks are scheduled on a special
- // internal queue
- if (root.tag === LegacyRoot) {
- if ( ReactCurrentActQueue$1.isBatchingLegacy !== null) {
- ReactCurrentActQueue$1.didScheduleLegacyUpdate = true;
- }
-
- scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root));
- } else {
- scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));
- }
-
- {
- // Flush the queue in a microtask.
- if ( ReactCurrentActQueue$1.current !== null) {
- // Inside `act`, use our internal `act` queue so that these get flushed
- // at the end of the current scope even when using the sync version
- // of `act`.
- ReactCurrentActQueue$1.current.push(flushSyncCallbacks);
- } else {
- scheduleMicrotask(function () {
- // In Safari, appending an iframe forces microtasks to run.
- // https://github.com/facebook/react/issues/22459
- // We don't support running callbacks in the middle of render
- // or commit so we need to check against that.
- if ((executionContext & (RenderContext | CommitContext)) === NoContext) {
- // Note that this would still prematurely flush the callbacks
- // if this happens outside render or commit phase (e.g. in an event).
- flushSyncCallbacks();
- }
- });
- }
- }
-
- newCallbackNode = null;
- } else {
- var schedulerPriorityLevel;
-
- switch (lanesToEventPriority(nextLanes)) {
- case DiscreteEventPriority:
- schedulerPriorityLevel = ImmediatePriority;
- break;
-
- case ContinuousEventPriority:
- schedulerPriorityLevel = UserBlockingPriority;
- break;
-
- case DefaultEventPriority:
- schedulerPriorityLevel = NormalPriority;
- break;
-
- case IdleEventPriority:
- schedulerPriorityLevel = IdlePriority;
- break;
-
- default:
- schedulerPriorityLevel = NormalPriority;
- break;
- }
-
- newCallbackNode = scheduleCallback$1(schedulerPriorityLevel, performConcurrentWorkOnRoot.bind(null, root));
- }
-
- root.callbackPriority = newCallbackPriority;
- root.callbackNode = newCallbackNode;
- } // This is the entry point for every concurrent task, i.e. anything that
- // goes through Scheduler.
-
-
- function performConcurrentWorkOnRoot(root, didTimeout) {
- {
- resetNestedUpdateFlag();
- } // Since we know we're in a React event, we can clear the current
- // event time. The next update will compute a new event time.
-
-
- currentEventTime = NoTimestamp;
- currentEventTransitionLane = NoLanes;
-
- if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
- throw new Error('Should not already be working.');
- } // Flush any pending passive effects before deciding which lanes to work on,
- // in case they schedule additional work.
-
-
- var originalCallbackNode = root.callbackNode;
- var didFlushPassiveEffects = flushPassiveEffects();
-
- if (didFlushPassiveEffects) {
- // Something in the passive effect phase may have canceled the current task.
- // Check if the task node for this root was changed.
- if (root.callbackNode !== originalCallbackNode) {
- // The current task was canceled. Exit. We don't need to call
- // `ensureRootIsScheduled` because the check above implies either that
- // there's a new task, or that there's no remaining work on this root.
- return null;
- }
- } // Determine the next lanes to work on, using the fields stored
- // on the root.
-
-
- var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes);
-
- if (lanes === NoLanes) {
- // Defensive coding. This is never expected to happen.
- return null;
- } // We disable time-slicing in some cases: if the work has been CPU-bound
- // for too long ("expired" work, to prevent starvation), or we're in
- // sync-updates-by-default mode.
- // TODO: We only check `didTimeout` defensively, to account for a Scheduler
- // bug we're still investigating. Once the bug in Scheduler is fixed,
- // we can remove this, since we track expiration ourselves.
-
-
- var shouldTimeSlice = !includesBlockingLane(root, lanes) && !includesExpiredLane(root, lanes) && ( !didTimeout);
- var exitStatus = shouldTimeSlice ? renderRootConcurrent(root, lanes) : renderRootSync(root, lanes);
-
- if (exitStatus !== RootInProgress) {
- if (exitStatus === RootErrored) {
- // If something threw an error, try rendering one more time. We'll
- // render synchronously to block concurrent data mutations, and we'll
- // includes all pending updates are included. If it still fails after
- // the second attempt, we'll give up and commit the resulting tree.
- var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
-
- if (errorRetryLanes !== NoLanes) {
- lanes = errorRetryLanes;
- exitStatus = recoverFromConcurrentError(root, errorRetryLanes);
- }
- }
-
- if (exitStatus === RootFatalErrored) {
- var fatalError = workInProgressRootFatalError;
- prepareFreshStack(root, NoLanes);
- markRootSuspended$1(root, lanes);
- ensureRootIsScheduled(root, now());
- throw fatalError;
- }
-
- if (exitStatus === RootDidNotComplete) {
- // The render unwound without completing the tree. This happens in special
- // cases where need to exit the current render without producing a
- // consistent tree or committing.
- //
- // This should only happen during a concurrent render, not a discrete or
- // synchronous update. We should have already checked for this when we
- // unwound the stack.
- markRootSuspended$1(root, lanes);
- } else {
- // The render completed.
- // Check if this render may have yielded to a concurrent event, and if so,
- // confirm that any newly rendered stores are consistent.
- // TODO: It's possible that even a concurrent render may never have yielded
- // to the main thread, if it was fast enough, or if it expired. We could
- // skip the consistency check in that case, too.
- var renderWasConcurrent = !includesBlockingLane(root, lanes);
- var finishedWork = root.current.alternate;
-
- if (renderWasConcurrent && !isRenderConsistentWithExternalStores(finishedWork)) {
- // A store was mutated in an interleaved event. Render again,
- // synchronously, to block further mutations.
- exitStatus = renderRootSync(root, lanes); // We need to check again if something threw
-
- if (exitStatus === RootErrored) {
- var _errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
-
- if (_errorRetryLanes !== NoLanes) {
- lanes = _errorRetryLanes;
- exitStatus = recoverFromConcurrentError(root, _errorRetryLanes); // We assume the tree is now consistent because we didn't yield to any
- // concurrent events.
- }
- }
-
- if (exitStatus === RootFatalErrored) {
- var _fatalError = workInProgressRootFatalError;
- prepareFreshStack(root, NoLanes);
- markRootSuspended$1(root, lanes);
- ensureRootIsScheduled(root, now());
- throw _fatalError;
- }
- } // We now have a consistent tree. The next step is either to commit it,
- // or, if something suspended, wait to commit it after a timeout.
-
-
- root.finishedWork = finishedWork;
- root.finishedLanes = lanes;
- finishConcurrentRender(root, exitStatus, lanes);
- }
- }
-
- ensureRootIsScheduled(root, now());
-
- if (root.callbackNode === originalCallbackNode) {
- // The task node scheduled for this root is the same one that's
- // currently executed. Need to return a continuation.
- return performConcurrentWorkOnRoot.bind(null, root);
- }
-
- return null;
- }
-
- function recoverFromConcurrentError(root, errorRetryLanes) {
- // If an error occurred during hydration, discard server response and fall
- // back to client side render.
- // Before rendering again, save the errors from the previous attempt.
- var errorsFromFirstAttempt = workInProgressRootConcurrentErrors;
-
- if (isRootDehydrated(root)) {
- // The shell failed to hydrate. Set a flag to force a client rendering
- // during the next attempt. To do this, we call prepareFreshStack now
- // to create the root work-in-progress fiber. This is a bit weird in terms
- // of factoring, because it relies on renderRootSync not calling
- // prepareFreshStack again in the call below, which happens because the
- // root and lanes haven't changed.
- //
- // TODO: I think what we should do is set ForceClientRender inside
- // throwException, like we do for nested Suspense boundaries. The reason
- // it's here instead is so we can switch to the synchronous work loop, too.
- // Something to consider for a future refactor.
- var rootWorkInProgress = prepareFreshStack(root, errorRetryLanes);
- rootWorkInProgress.flags |= ForceClientRender;
-
- {
- errorHydratingContainer(root.containerInfo);
- }
- }
-
- var exitStatus = renderRootSync(root, errorRetryLanes);
-
- if (exitStatus !== RootErrored) {
- // Successfully finished rendering on retry
- // The errors from the failed first attempt have been recovered. Add
- // them to the collection of recoverable errors. We'll log them in the
- // commit phase.
- var errorsFromSecondAttempt = workInProgressRootRecoverableErrors;
- workInProgressRootRecoverableErrors = errorsFromFirstAttempt; // The errors from the second attempt should be queued after the errors
- // from the first attempt, to preserve the causal sequence.
-
- if (errorsFromSecondAttempt !== null) {
- queueRecoverableErrors(errorsFromSecondAttempt);
- }
- }
-
- return exitStatus;
- }
-
- function queueRecoverableErrors(errors) {
- if (workInProgressRootRecoverableErrors === null) {
- workInProgressRootRecoverableErrors = errors;
- } else {
- workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, errors);
- }
- }
-
- function finishConcurrentRender(root, exitStatus, lanes) {
- switch (exitStatus) {
- case RootInProgress:
- case RootFatalErrored:
- {
- throw new Error('Root did not complete. This is a bug in React.');
- }
- // Flow knows about invariant, so it complains if I add a break
- // statement, but eslint doesn't know about invariant, so it complains
- // if I do. eslint-disable-next-line no-fallthrough
-
- case RootErrored:
- {
- // We should have already attempted to retry this tree. If we reached
- // this point, it errored again. Commit it.
- commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions);
- break;
- }
-
- case RootSuspended:
- {
- markRootSuspended$1(root, lanes); // We have an acceptable loading state. We need to figure out if we
- // should immediately commit it or wait a bit.
-
- if (includesOnlyRetries(lanes) && // do not delay if we're inside an act() scope
- !shouldForceFlushFallbacksInDEV()) {
- // This render only included retries, no updates. Throttle committing
- // retries so that we don't show too many loading states too quickly.
- var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time.
-
- if (msUntilTimeout > 10) {
- var nextLanes = getNextLanes(root, NoLanes);
-
- if (nextLanes !== NoLanes) {
- // There's additional work on this root.
- break;
- }
-
- var suspendedLanes = root.suspendedLanes;
-
- if (!isSubsetOfLanes(suspendedLanes, lanes)) {
- // We should prefer to render the fallback of at the last
- // suspended level. Ping the last suspended level to try
- // rendering it again.
- // FIXME: What if the suspended lanes are Idle? Should not restart.
- var eventTime = requestEventTime();
- markRootPinged(root, suspendedLanes);
- break;
- } // The render is suspended, it hasn't timed out, and there's no
- // lower priority work to do. Instead of committing the fallback
- // immediately, wait for more data to arrive.
-
-
- root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), msUntilTimeout);
- break;
- }
- } // The work expired. Commit immediately.
-
-
- commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions);
- break;
- }
-
- case RootSuspendedWithDelay:
- {
- markRootSuspended$1(root, lanes);
-
- if (includesOnlyTransitions(lanes)) {
- // This is a transition, so we should exit without committing a
- // placeholder and without scheduling a timeout. Delay indefinitely
- // until we receive more data.
- break;
- }
-
- if (!shouldForceFlushFallbacksInDEV()) {
- // This is not a transition, but we did trigger an avoided state.
- // Schedule a placeholder to display after a short delay, using the Just
- // Noticeable Difference.
- // TODO: Is the JND optimization worth the added complexity? If this is
- // the only reason we track the event time, then probably not.
- // Consider removing.
- var mostRecentEventTime = getMostRecentEventTime(root, lanes);
- var eventTimeMs = mostRecentEventTime;
- var timeElapsedMs = now() - eventTimeMs;
-
- var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time.
-
-
- if (_msUntilTimeout > 10) {
- // Instead of committing the fallback immediately, wait for more data
- // to arrive.
- root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), _msUntilTimeout);
- break;
- }
- } // Commit the placeholder.
-
-
- commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions);
- break;
- }
-
- case RootCompleted:
- {
- // The work completed. Ready to commit.
- commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions);
- break;
- }
-
- default:
- {
- throw new Error('Unknown root exit status.');
- }
- }
- }
-
- function isRenderConsistentWithExternalStores(finishedWork) {
- // Search the rendered tree for external store reads, and check whether the
- // stores were mutated in a concurrent event. Intentionally using an iterative
- // loop instead of recursion so we can exit early.
- var node = finishedWork;
-
- while (true) {
- if (node.flags & StoreConsistency) {
- var updateQueue = node.updateQueue;
-
- if (updateQueue !== null) {
- var checks = updateQueue.stores;
-
- if (checks !== null) {
- for (var i = 0; i < checks.length; i++) {
- var check = checks[i];
- var getSnapshot = check.getSnapshot;
- var renderedValue = check.value;
-
- try {
- if (!objectIs(getSnapshot(), renderedValue)) {
- // Found an inconsistent store.
- return false;
- }
- } catch (error) {
- // If `getSnapshot` throws, return `false`. This will schedule
- // a re-render, and the error will be rethrown during render.
- return false;
- }
- }
- }
- }
- }
-
- var child = node.child;
-
- if (node.subtreeFlags & StoreConsistency && child !== null) {
- child.return = node;
- node = child;
- continue;
- }
-
- if (node === finishedWork) {
- return true;
- }
-
- while (node.sibling === null) {
- if (node.return === null || node.return === finishedWork) {
- return true;
- }
-
- node = node.return;
- }
-
- node.sibling.return = node.return;
- node = node.sibling;
- } // Flow doesn't know this is unreachable, but eslint does
- // eslint-disable-next-line no-unreachable
-
-
- return true;
- }
-
- function markRootSuspended$1(root, suspendedLanes) {
- // When suspending, we should always exclude lanes that were pinged or (more
- // rarely, since we try to avoid it) updated during the render phase.
- // TODO: Lol maybe there's a better way to factor this besides this
- // obnoxiously named function :)
- suspendedLanes = removeLanes(suspendedLanes, workInProgressRootPingedLanes);
- suspendedLanes = removeLanes(suspendedLanes, workInProgressRootInterleavedUpdatedLanes);
- markRootSuspended(root, suspendedLanes);
- } // This is the entry point for synchronous tasks that don't go
- // through Scheduler
-
-
- function performSyncWorkOnRoot(root) {
- {
- syncNestedUpdateFlag();
- }
-
- if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
- throw new Error('Should not already be working.');
- }
-
- flushPassiveEffects();
- var lanes = getNextLanes(root, NoLanes);
-
- if (!includesSomeLane(lanes, SyncLane)) {
- // There's no remaining sync work left.
- ensureRootIsScheduled(root, now());
- return null;
- }
-
- var exitStatus = renderRootSync(root, lanes);
-
- if (root.tag !== LegacyRoot && exitStatus === RootErrored) {
- // If something threw an error, try rendering one more time. We'll render
- // synchronously to block concurrent data mutations, and we'll includes
- // all pending updates are included. If it still fails after the second
- // attempt, we'll give up and commit the resulting tree.
- var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
-
- if (errorRetryLanes !== NoLanes) {
- lanes = errorRetryLanes;
- exitStatus = recoverFromConcurrentError(root, errorRetryLanes);
- }
- }
-
- if (exitStatus === RootFatalErrored) {
- var fatalError = workInProgressRootFatalError;
- prepareFreshStack(root, NoLanes);
- markRootSuspended$1(root, lanes);
- ensureRootIsScheduled(root, now());
- throw fatalError;
- }
-
- if (exitStatus === RootDidNotComplete) {
- throw new Error('Root did not complete. This is a bug in React.');
- } // We now have a consistent tree. Because this is a sync render, we
- // will commit it even if something suspended.
-
-
- var finishedWork = root.current.alternate;
- root.finishedWork = finishedWork;
- root.finishedLanes = lanes;
- commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); // Before exiting, make sure there's a callback scheduled for the next
- // pending level.
-
- ensureRootIsScheduled(root, now());
- return null;
- }
-
- function flushRoot(root, lanes) {
- if (lanes !== NoLanes) {
- markRootEntangled(root, mergeLanes(lanes, SyncLane));
- ensureRootIsScheduled(root, now());
-
- if ((executionContext & (RenderContext | CommitContext)) === NoContext) {
- resetRenderTimer();
- flushSyncCallbacks();
- }
- }
- }
- function batchedUpdates$1(fn, a) {
- var prevExecutionContext = executionContext;
- executionContext |= BatchedContext;
-
- try {
- return fn(a);
- } finally {
- executionContext = prevExecutionContext; // If there were legacy sync updates, flush them at the end of the outer
- // most batchedUpdates-like method.
-
- if (executionContext === NoContext && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode.
- !( ReactCurrentActQueue$1.isBatchingLegacy)) {
- resetRenderTimer();
- flushSyncCallbacksOnlyInLegacyMode();
- }
- }
- }
- function discreteUpdates(fn, a, b, c, d) {
- var previousPriority = getCurrentUpdatePriority();
- var prevTransition = ReactCurrentBatchConfig$3.transition;
-
- try {
- ReactCurrentBatchConfig$3.transition = null;
- setCurrentUpdatePriority(DiscreteEventPriority);
- return fn(a, b, c, d);
- } finally {
- setCurrentUpdatePriority(previousPriority);
- ReactCurrentBatchConfig$3.transition = prevTransition;
-
- if (executionContext === NoContext) {
- resetRenderTimer();
- }
- }
- } // Overload the definition to the two valid signatures.
- // Warning, this opts-out of checking the function body.
-
- // eslint-disable-next-line no-redeclare
- function flushSync(fn) {
- // In legacy mode, we flush pending passive effects at the beginning of the
- // next event, not at the end of the previous one.
- if (rootWithPendingPassiveEffects !== null && rootWithPendingPassiveEffects.tag === LegacyRoot && (executionContext & (RenderContext | CommitContext)) === NoContext) {
- flushPassiveEffects();
- }
-
- var prevExecutionContext = executionContext;
- executionContext |= BatchedContext;
- var prevTransition = ReactCurrentBatchConfig$3.transition;
- var previousPriority = getCurrentUpdatePriority();
-
- try {
- ReactCurrentBatchConfig$3.transition = null;
- setCurrentUpdatePriority(DiscreteEventPriority);
-
- if (fn) {
- return fn();
- } else {
- return undefined;
- }
- } finally {
- setCurrentUpdatePriority(previousPriority);
- ReactCurrentBatchConfig$3.transition = prevTransition;
- executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch.
- // Note that this will happen even if batchedUpdates is higher up
- // the stack.
-
- if ((executionContext & (RenderContext | CommitContext)) === NoContext) {
- flushSyncCallbacks();
- }
- }
- }
- function isAlreadyRendering() {
- // Used by the renderer to print a warning if certain APIs are called from
- // the wrong context.
- return (executionContext & (RenderContext | CommitContext)) !== NoContext;
- }
- function pushRenderLanes(fiber, lanes) {
- push(subtreeRenderLanesCursor, subtreeRenderLanes, fiber);
- subtreeRenderLanes = mergeLanes(subtreeRenderLanes, lanes);
- workInProgressRootIncludedLanes = mergeLanes(workInProgressRootIncludedLanes, lanes);
- }
- function popRenderLanes(fiber) {
- subtreeRenderLanes = subtreeRenderLanesCursor.current;
- pop(subtreeRenderLanesCursor, fiber);
- }
-
- function prepareFreshStack(root, lanes) {
- root.finishedWork = null;
- root.finishedLanes = NoLanes;
- var timeoutHandle = root.timeoutHandle;
-
- if (timeoutHandle !== noTimeout) {
- // The root previous suspended and scheduled a timeout to commit a fallback
- // state. Now that we have additional work, cancel the timeout.
- root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
-
- cancelTimeout(timeoutHandle);
- }
-
- if (workInProgress !== null) {
- var interruptedWork = workInProgress.return;
-
- while (interruptedWork !== null) {
- var current = interruptedWork.alternate;
- unwindInterruptedWork(current, interruptedWork);
- interruptedWork = interruptedWork.return;
- }
- }
-
- workInProgressRoot = root;
- var rootWorkInProgress = createWorkInProgress(root.current, null);
- workInProgress = rootWorkInProgress;
- workInProgressRootRenderLanes = subtreeRenderLanes = workInProgressRootIncludedLanes = lanes;
- workInProgressRootExitStatus = RootInProgress;
- workInProgressRootFatalError = null;
- workInProgressRootSkippedLanes = NoLanes;
- workInProgressRootInterleavedUpdatedLanes = NoLanes;
- workInProgressRootPingedLanes = NoLanes;
- workInProgressRootConcurrentErrors = null;
- workInProgressRootRecoverableErrors = null;
- finishQueueingConcurrentUpdates();
-
- {
- ReactStrictModeWarnings.discardPendingWarnings();
- }
-
- return rootWorkInProgress;
- }
-
- function handleError(root, thrownValue) {
- do {
- var erroredWork = workInProgress;
-
- try {
- // Reset module-level state that was set during the render phase.
- resetContextDependencies();
- resetHooksAfterThrow();
- resetCurrentFiber(); // TODO: I found and added this missing line while investigating a
- // separate issue. Write a regression test using string refs.
-
- ReactCurrentOwner$2.current = null;
-
- if (erroredWork === null || erroredWork.return === null) {
- // Expected to be working on a non-root fiber. This is a fatal error
- // because there's no ancestor that can handle it; the root is
- // supposed to capture all errors that weren't caught by an error
- // boundary.
- workInProgressRootExitStatus = RootFatalErrored;
- workInProgressRootFatalError = thrownValue; // Set `workInProgress` to null. This represents advancing to the next
- // sibling, or the parent if there are no siblings. But since the root
- // has no siblings nor a parent, we set it to null. Usually this is
- // handled by `completeUnitOfWork` or `unwindWork`, but since we're
- // intentionally not calling those, we need set it here.
- // TODO: Consider calling `unwindWork` to pop the contexts.
-
- workInProgress = null;
- return;
- }
-
- if (enableProfilerTimer && erroredWork.mode & ProfileMode) {
- // Record the time spent rendering before an error was thrown. This
- // avoids inaccurate Profiler durations in the case of a
- // suspended render.
- stopProfilerTimerIfRunningAndRecordDelta(erroredWork, true);
- }
-
- if (enableSchedulingProfiler) {
- markComponentRenderStopped();
-
- if (thrownValue !== null && typeof thrownValue === 'object' && typeof thrownValue.then === 'function') {
- var wakeable = thrownValue;
- markComponentSuspended(erroredWork, wakeable, workInProgressRootRenderLanes);
- } else {
- markComponentErrored(erroredWork, thrownValue, workInProgressRootRenderLanes);
- }
- }
-
- throwException(root, erroredWork.return, erroredWork, thrownValue, workInProgressRootRenderLanes);
- completeUnitOfWork(erroredWork);
- } catch (yetAnotherThrownValue) {
- // Something in the return path also threw.
- thrownValue = yetAnotherThrownValue;
-
- if (workInProgress === erroredWork && erroredWork !== null) {
- // If this boundary has already errored, then we had trouble processing
- // the error. Bubble it to the next boundary.
- erroredWork = erroredWork.return;
- workInProgress = erroredWork;
- } else {
- erroredWork = workInProgress;
- }
-
- continue;
- } // Return to the normal work loop.
-
-
- return;
- } while (true);
- }
-
- function pushDispatcher() {
- var prevDispatcher = ReactCurrentDispatcher$2.current;
- ReactCurrentDispatcher$2.current = ContextOnlyDispatcher;
-
- if (prevDispatcher === null) {
- // The React isomorphic package does not include a default dispatcher.
- // Instead the first renderer will lazily attach one, in order to give
- // nicer error messages.
- return ContextOnlyDispatcher;
- } else {
- return prevDispatcher;
- }
- }
-
- function popDispatcher(prevDispatcher) {
- ReactCurrentDispatcher$2.current = prevDispatcher;
- }
-
- function markCommitTimeOfFallback() {
- globalMostRecentFallbackTime = now();
- }
- function markSkippedUpdateLanes(lane) {
- workInProgressRootSkippedLanes = mergeLanes(lane, workInProgressRootSkippedLanes);
- }
- function renderDidSuspend() {
- if (workInProgressRootExitStatus === RootInProgress) {
- workInProgressRootExitStatus = RootSuspended;
- }
- }
- function renderDidSuspendDelayIfPossible() {
- if (workInProgressRootExitStatus === RootInProgress || workInProgressRootExitStatus === RootSuspended || workInProgressRootExitStatus === RootErrored) {
- workInProgressRootExitStatus = RootSuspendedWithDelay;
- } // Check if there are updates that we skipped tree that might have unblocked
- // this render.
-
-
- if (workInProgressRoot !== null && (includesNonIdleWork(workInProgressRootSkippedLanes) || includesNonIdleWork(workInProgressRootInterleavedUpdatedLanes))) {
- // Mark the current render as suspended so that we switch to working on
- // the updates that were skipped. Usually we only suspend at the end of
- // the render phase.
- // TODO: We should probably always mark the root as suspended immediately
- // (inside this function), since by suspending at the end of the render
- // phase introduces a potential mistake where we suspend lanes that were
- // pinged or updated while we were rendering.
- markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes);
- }
- }
- function renderDidError(error) {
- if (workInProgressRootExitStatus !== RootSuspendedWithDelay) {
- workInProgressRootExitStatus = RootErrored;
- }
-
- if (workInProgressRootConcurrentErrors === null) {
- workInProgressRootConcurrentErrors = [error];
- } else {
- workInProgressRootConcurrentErrors.push(error);
- }
- } // Called during render to determine if anything has suspended.
- // Returns false if we're not sure.
-
- function renderHasNotSuspendedYet() {
- // If something errored or completed, we can't really be sure,
- // so those are false.
- return workInProgressRootExitStatus === RootInProgress;
- }
-
- function renderRootSync(root, lanes) {
- var prevExecutionContext = executionContext;
- executionContext |= RenderContext;
- var prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack
- // and prepare a fresh one. Otherwise we'll continue where we left off.
-
- if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {
- {
- if (isDevToolsPresent) {
- var memoizedUpdaters = root.memoizedUpdaters;
-
- if (memoizedUpdaters.size > 0) {
- restorePendingUpdaters(root, workInProgressRootRenderLanes);
- memoizedUpdaters.clear();
- } // At this point, move Fibers that scheduled the upcoming work from the Map to the Set.
- // If we bailout on this work, we'll move them back (like above).
- // It's important to move them now in case the work spawns more work at the same priority with different updaters.
- // That way we can keep the current update and future updates separate.
-
-
- movePendingFibersToMemoized(root, lanes);
- }
- }
-
- workInProgressTransitions = getTransitionsForLanes();
- prepareFreshStack(root, lanes);
- }
-
- {
- markRenderStarted(lanes);
- }
-
- do {
- try {
- workLoopSync();
- break;
- } catch (thrownValue) {
- handleError(root, thrownValue);
- }
- } while (true);
-
- resetContextDependencies();
- executionContext = prevExecutionContext;
- popDispatcher(prevDispatcher);
-
- if (workInProgress !== null) {
- // This is a sync render, so we should have finished the whole tree.
- throw new Error('Cannot commit an incomplete root. This error is likely caused by a ' + 'bug in React. Please file an issue.');
- }
-
- {
- markRenderStopped();
- } // Set this to null to indicate there's no in-progress render.
-
-
- workInProgressRoot = null;
- workInProgressRootRenderLanes = NoLanes;
- return workInProgressRootExitStatus;
- } // The work loop is an extremely hot path. Tell Closure not to inline it.
-
- /** @noinline */
-
-
- function workLoopSync() {
- // Already timed out, so perform work without checking if we need to yield.
- while (workInProgress !== null) {
- performUnitOfWork(workInProgress);
- }
- }
-
- function renderRootConcurrent(root, lanes) {
- var prevExecutionContext = executionContext;
- executionContext |= RenderContext;
- var prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack
- // and prepare a fresh one. Otherwise we'll continue where we left off.
-
- if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {
- {
- if (isDevToolsPresent) {
- var memoizedUpdaters = root.memoizedUpdaters;
-
- if (memoizedUpdaters.size > 0) {
- restorePendingUpdaters(root, workInProgressRootRenderLanes);
- memoizedUpdaters.clear();
- } // At this point, move Fibers that scheduled the upcoming work from the Map to the Set.
- // If we bailout on this work, we'll move them back (like above).
- // It's important to move them now in case the work spawns more work at the same priority with different updaters.
- // That way we can keep the current update and future updates separate.
-
-
- movePendingFibersToMemoized(root, lanes);
- }
- }
-
- workInProgressTransitions = getTransitionsForLanes();
- resetRenderTimer();
- prepareFreshStack(root, lanes);
- }
-
- {
- markRenderStarted(lanes);
- }
-
- do {
- try {
- workLoopConcurrent();
- break;
- } catch (thrownValue) {
- handleError(root, thrownValue);
- }
- } while (true);
-
- resetContextDependencies();
- popDispatcher(prevDispatcher);
- executionContext = prevExecutionContext;
-
-
- if (workInProgress !== null) {
- // Still work remaining.
- {
- markRenderYielded();
- }
-
- return RootInProgress;
- } else {
- // Completed the tree.
- {
- markRenderStopped();
- } // Set this to null to indicate there's no in-progress render.
-
-
- workInProgressRoot = null;
- workInProgressRootRenderLanes = NoLanes; // Return the final exit status.
-
- return workInProgressRootExitStatus;
- }
- }
- /** @noinline */
-
-
- function workLoopConcurrent() {
- // Perform work until Scheduler asks us to yield
- while (workInProgress !== null && !shouldYield()) {
- performUnitOfWork(workInProgress);
- }
- }
-
- function performUnitOfWork(unitOfWork) {
- // The current, flushed, state of this fiber is the alternate. Ideally
- // nothing should rely on this, but relying on it here means that we don't
- // need an additional field on the work in progress.
- var current = unitOfWork.alternate;
- setCurrentFiber(unitOfWork);
- var next;
-
- if ( (unitOfWork.mode & ProfileMode) !== NoMode) {
- startProfilerTimer(unitOfWork);
- next = beginWork$1(current, unitOfWork, subtreeRenderLanes);
- stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true);
- } else {
- next = beginWork$1(current, unitOfWork, subtreeRenderLanes);
- }
-
- resetCurrentFiber();
- unitOfWork.memoizedProps = unitOfWork.pendingProps;
-
- if (next === null) {
- // If this doesn't spawn new work, complete the current work.
- completeUnitOfWork(unitOfWork);
- } else {
- workInProgress = next;
- }
-
- ReactCurrentOwner$2.current = null;
- }
-
- function completeUnitOfWork(unitOfWork) {
- // Attempt to complete the current unit of work, then move to the next
- // sibling. If there are no more siblings, return to the parent fiber.
- var completedWork = unitOfWork;
-
- do {
- // The current, flushed, state of this fiber is the alternate. Ideally
- // nothing should rely on this, but relying on it here means that we don't
- // need an additional field on the work in progress.
- var current = completedWork.alternate;
- var returnFiber = completedWork.return; // Check if the work completed or if something threw.
-
- if ((completedWork.flags & Incomplete) === NoFlags) {
- setCurrentFiber(completedWork);
- var next = void 0;
-
- if ( (completedWork.mode & ProfileMode) === NoMode) {
- next = completeWork(current, completedWork, subtreeRenderLanes);
- } else {
- startProfilerTimer(completedWork);
- next = completeWork(current, completedWork, subtreeRenderLanes); // Update render duration assuming we didn't error.
-
- stopProfilerTimerIfRunningAndRecordDelta(completedWork, false);
- }
-
- resetCurrentFiber();
-
- if (next !== null) {
- // Completing this fiber spawned new work. Work on that next.
- workInProgress = next;
- return;
- }
- } else {
- // This fiber did not complete because something threw. Pop values off
- // the stack without entering the complete phase. If this is a boundary,
- // capture values if possible.
- var _next = unwindWork(current, completedWork); // Because this fiber did not complete, don't reset its lanes.
-
-
- if (_next !== null) {
- // If completing this work spawned new work, do that next. We'll come
- // back here again.
- // Since we're restarting, remove anything that is not a host effect
- // from the effect tag.
- _next.flags &= HostEffectMask;
- workInProgress = _next;
- return;
- }
-
- if ( (completedWork.mode & ProfileMode) !== NoMode) {
- // Record the render duration for the fiber that errored.
- stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); // Include the time spent working on failed children before continuing.
-
- var actualDuration = completedWork.actualDuration;
- var child = completedWork.child;
-
- while (child !== null) {
- actualDuration += child.actualDuration;
- child = child.sibling;
- }
-
- completedWork.actualDuration = actualDuration;
- }
-
- if (returnFiber !== null) {
- // Mark the parent fiber as incomplete and clear its subtree flags.
- returnFiber.flags |= Incomplete;
- returnFiber.subtreeFlags = NoFlags;
- returnFiber.deletions = null;
- } else {
- // We've unwound all the way to the root.
- workInProgressRootExitStatus = RootDidNotComplete;
- workInProgress = null;
- return;
- }
- }
-
- var siblingFiber = completedWork.sibling;
-
- if (siblingFiber !== null) {
- // If there is more work to do in this returnFiber, do that next.
- workInProgress = siblingFiber;
- return;
- } // Otherwise, return to the parent
-
-
- completedWork = returnFiber; // Update the next thing we're working on in case something throws.
-
- workInProgress = completedWork;
- } while (completedWork !== null); // We've reached the root.
-
-
- if (workInProgressRootExitStatus === RootInProgress) {
- workInProgressRootExitStatus = RootCompleted;
- }
- }
-
- function commitRoot(root, recoverableErrors, transitions) {
- // TODO: This no longer makes any sense. We already wrap the mutation and
- // layout phases. Should be able to remove.
- var previousUpdateLanePriority = getCurrentUpdatePriority();
- var prevTransition = ReactCurrentBatchConfig$3.transition;
-
- try {
- ReactCurrentBatchConfig$3.transition = null;
- setCurrentUpdatePriority(DiscreteEventPriority);
- commitRootImpl(root, recoverableErrors, transitions, previousUpdateLanePriority);
- } finally {
- ReactCurrentBatchConfig$3.transition = prevTransition;
- setCurrentUpdatePriority(previousUpdateLanePriority);
- }
-
- return null;
- }
-
- function commitRootImpl(root, recoverableErrors, transitions, renderPriorityLevel) {
- do {
- // `flushPassiveEffects` will call `flushSyncUpdateQueue` at the end, which
- // means `flushPassiveEffects` will sometimes result in additional
- // passive effects. So we need to keep flushing in a loop until there are
- // no more pending effects.
- // TODO: Might be better if `flushPassiveEffects` did not automatically
- // flush synchronous work at the end, to avoid factoring hazards like this.
- flushPassiveEffects();
- } while (rootWithPendingPassiveEffects !== null);
-
- flushRenderPhaseStrictModeWarningsInDEV();
-
- if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
- throw new Error('Should not already be working.');
- }
-
- var finishedWork = root.finishedWork;
- var lanes = root.finishedLanes;
-
- {
- markCommitStarted(lanes);
- }
-
- if (finishedWork === null) {
-
- {
- markCommitStopped();
- }
-
- return null;
- } else {
- {
- if (lanes === NoLanes) {
- error('root.finishedLanes should not be empty during a commit. This is a ' + 'bug in React.');
- }
- }
- }
-
- root.finishedWork = null;
- root.finishedLanes = NoLanes;
-
- if (finishedWork === root.current) {
- throw new Error('Cannot commit the same tree as before. This error is likely caused by ' + 'a bug in React. Please file an issue.');
- } // commitRoot never returns a continuation; it always finishes synchronously.
- // So we can clear these now to allow a new callback to be scheduled.
-
-
- root.callbackNode = null;
- root.callbackPriority = NoLane; // Update the first and last pending times on this root. The new first
- // pending time is whatever is left on the root fiber.
-
- var remainingLanes = mergeLanes(finishedWork.lanes, finishedWork.childLanes);
- markRootFinished(root, remainingLanes);
-
- if (root === workInProgressRoot) {
- // We can reset these now that they are finished.
- workInProgressRoot = null;
- workInProgress = null;
- workInProgressRootRenderLanes = NoLanes;
- } // If there are pending passive effects, schedule a callback to process them.
- // Do this as early as possible, so it is queued before anything else that
- // might get scheduled in the commit phase. (See #16714.)
- // TODO: Delete all other places that schedule the passive effect callback
- // They're redundant.
-
-
- if ((finishedWork.subtreeFlags & PassiveMask) !== NoFlags || (finishedWork.flags & PassiveMask) !== NoFlags) {
- if (!rootDoesHavePassiveEffects) {
- rootDoesHavePassiveEffects = true;
- // to store it in pendingPassiveTransitions until they get processed
- // We need to pass this through as an argument to commitRoot
- // because workInProgressTransitions might have changed between
- // the previous render and commit if we throttle the commit
- // with setTimeout
-
- pendingPassiveTransitions = transitions;
- scheduleCallback$1(NormalPriority, function () {
- flushPassiveEffects(); // This render triggered passive effects: release the root cache pool
- // *after* passive effects fire to avoid freeing a cache pool that may
- // be referenced by a node in the tree (HostRoot, Cache boundary etc)
-
- return null;
- });
- }
- } // Check if there are any effects in the whole tree.
- // TODO: This is left over from the effect list implementation, where we had
- // to check for the existence of `firstEffect` to satisfy Flow. I think the
- // only other reason this optimization exists is because it affects profiling.
- // Reconsider whether this is necessary.
-
-
- var subtreeHasEffects = (finishedWork.subtreeFlags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags;
- var rootHasEffect = (finishedWork.flags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags;
-
- if (subtreeHasEffects || rootHasEffect) {
- var prevTransition = ReactCurrentBatchConfig$3.transition;
- ReactCurrentBatchConfig$3.transition = null;
- var previousPriority = getCurrentUpdatePriority();
- setCurrentUpdatePriority(DiscreteEventPriority);
- var prevExecutionContext = executionContext;
- executionContext |= CommitContext; // Reset this to null before calling lifecycles
-
- ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass
- // of the effect list for each phase: all mutation effects come before all
- // layout effects, and so on.
- // The first phase a "before mutation" phase. We use this phase to read the
- // state of the host tree right before we mutate it. This is where
- // getSnapshotBeforeUpdate is called.
-
- var shouldFireAfterActiveInstanceBlur = commitBeforeMutationEffects(root, finishedWork);
-
- {
- // Mark the current commit time to be shared by all Profilers in this
- // batch. This enables them to be grouped later.
- recordCommitTime();
- }
-
-
- commitMutationEffects(root, finishedWork, lanes);
-
- resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after
- // the mutation phase, so that the previous tree is still current during
- // componentWillUnmount, but before the layout phase, so that the finished
- // work is current during componentDidMount/Update.
-
- root.current = finishedWork; // The next phase is the layout phase, where we call effects that read
-
- {
- markLayoutEffectsStarted(lanes);
- }
-
- commitLayoutEffects(finishedWork, root, lanes);
-
- {
- markLayoutEffectsStopped();
- }
- // opportunity to paint.
-
-
- requestPaint();
- executionContext = prevExecutionContext; // Reset the priority to the previous non-sync value.
-
- setCurrentUpdatePriority(previousPriority);
- ReactCurrentBatchConfig$3.transition = prevTransition;
- } else {
- // No effects.
- root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were
- // no effects.
- // TODO: Maybe there's a better way to report this.
-
- {
- recordCommitTime();
- }
- }
-
- var rootDidHavePassiveEffects = rootDoesHavePassiveEffects;
-
- if (rootDoesHavePassiveEffects) {
- // This commit has passive effects. Stash a reference to them. But don't
- // schedule a callback until after flushing layout work.
- rootDoesHavePassiveEffects = false;
- rootWithPendingPassiveEffects = root;
- pendingPassiveEffectsLanes = lanes;
- } else {
-
- {
- nestedPassiveUpdateCount = 0;
- rootWithPassiveNestedUpdates = null;
- }
- } // Read this again, since an effect might have updated it
-
-
- remainingLanes = root.pendingLanes; // Check if there's remaining work on this root
- // TODO: This is part of the `componentDidCatch` implementation. Its purpose
- // is to detect whether something might have called setState inside
- // `componentDidCatch`. The mechanism is known to be flawed because `setState`
- // inside `componentDidCatch` is itself flawed — that's why we recommend
- // `getDerivedStateFromError` instead. However, it could be improved by
- // checking if remainingLanes includes Sync work, instead of whether there's
- // any work remaining at all (which would also include stuff like Suspense
- // retries or transitions). It's been like this for a while, though, so fixing
- // it probably isn't that urgent.
-
- if (remainingLanes === NoLanes) {
- // If there's no remaining work, we can clear the set of already failed
- // error boundaries.
- legacyErrorBoundariesThatAlreadyFailed = null;
- }
-
- {
- if (!rootDidHavePassiveEffects) {
- commitDoubleInvokeEffectsInDEV(root.current, false);
- }
- }
-
- onCommitRoot(finishedWork.stateNode, renderPriorityLevel);
-
- {
- if (isDevToolsPresent) {
- root.memoizedUpdaters.clear();
- }
- }
-
- {
- onCommitRoot$1();
- } // Always call this before exiting `commitRoot`, to ensure that any
- // additional work on this root is scheduled.
-
-
- ensureRootIsScheduled(root, now());
-
- if (recoverableErrors !== null) {
- // There were errors during this render, but recovered from them without
- // needing to surface it to the UI. We log them here.
- var onRecoverableError = root.onRecoverableError;
-
- for (var i = 0; i < recoverableErrors.length; i++) {
- var recoverableError = recoverableErrors[i];
- var componentStack = recoverableError.stack;
- var digest = recoverableError.digest;
- onRecoverableError(recoverableError.value, {
- componentStack: componentStack,
- digest: digest
- });
- }
- }
-
- if (hasUncaughtError) {
- hasUncaughtError = false;
- var error$1 = firstUncaughtError;
- firstUncaughtError = null;
- throw error$1;
- } // If the passive effects are the result of a discrete render, flush them
- // synchronously at the end of the current task so that the result is
- // immediately observable. Otherwise, we assume that they are not
- // order-dependent and do not need to be observed by external systems, so we
- // can wait until after paint.
- // TODO: We can optimize this by not scheduling the callback earlier. Since we
- // currently schedule the callback in multiple places, will wait until those
- // are consolidated.
-
-
- if (includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && root.tag !== LegacyRoot) {
- flushPassiveEffects();
- } // Read this again, since a passive effect might have updated it
-
-
- remainingLanes = root.pendingLanes;
-
- if (includesSomeLane(remainingLanes, SyncLane)) {
- {
- markNestedUpdateScheduled();
- } // Count the number of times the root synchronously re-renders without
- // finishing. If there are too many, it indicates an infinite update loop.
-
-
- if (root === rootWithNestedUpdates) {
- nestedUpdateCount++;
- } else {
- nestedUpdateCount = 0;
- rootWithNestedUpdates = root;
- }
- } else {
- nestedUpdateCount = 0;
- } // If layout work was scheduled, flush it now.
-
-
- flushSyncCallbacks();
-
- {
- markCommitStopped();
- }
-
- return null;
- }
-
- function flushPassiveEffects() {
- // Returns whether passive effects were flushed.
- // TODO: Combine this check with the one in flushPassiveEFfectsImpl. We should
- // probably just combine the two functions. I believe they were only separate
- // in the first place because we used to wrap it with
- // `Scheduler.runWithPriority`, which accepts a function. But now we track the
- // priority within React itself, so we can mutate the variable directly.
- if (rootWithPendingPassiveEffects !== null) {
- var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes);
- var priority = lowerEventPriority(DefaultEventPriority, renderPriority);
- var prevTransition = ReactCurrentBatchConfig$3.transition;
- var previousPriority = getCurrentUpdatePriority();
-
- try {
- ReactCurrentBatchConfig$3.transition = null;
- setCurrentUpdatePriority(priority);
- return flushPassiveEffectsImpl();
- } finally {
- setCurrentUpdatePriority(previousPriority);
- ReactCurrentBatchConfig$3.transition = prevTransition; // Once passive effects have run for the tree - giving components a
- }
- }
-
- return false;
- }
- function enqueuePendingPassiveProfilerEffect(fiber) {
- {
- pendingPassiveProfilerEffects.push(fiber);
-
- if (!rootDoesHavePassiveEffects) {
- rootDoesHavePassiveEffects = true;
- scheduleCallback$1(NormalPriority, function () {
- flushPassiveEffects();
- return null;
- });
- }
- }
- }
-
- function flushPassiveEffectsImpl() {
- if (rootWithPendingPassiveEffects === null) {
- return false;
- } // Cache and clear the transitions flag
-
-
- var transitions = pendingPassiveTransitions;
- pendingPassiveTransitions = null;
- var root = rootWithPendingPassiveEffects;
- var lanes = pendingPassiveEffectsLanes;
- rootWithPendingPassiveEffects = null; // TODO: This is sometimes out of sync with rootWithPendingPassiveEffects.
- // Figure out why and fix it. It's not causing any known issues (probably
- // because it's only used for profiling), but it's a refactor hazard.
-
- pendingPassiveEffectsLanes = NoLanes;
-
- if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
- throw new Error('Cannot flush passive effects while already rendering.');
- }
-
- {
- isFlushingPassiveEffects = true;
- didScheduleUpdateDuringPassiveEffects = false;
- }
-
- {
- markPassiveEffectsStarted(lanes);
- }
-
- var prevExecutionContext = executionContext;
- executionContext |= CommitContext;
- commitPassiveUnmountEffects(root.current);
- commitPassiveMountEffects(root, root.current, lanes, transitions); // TODO: Move to commitPassiveMountEffects
-
- {
- var profilerEffects = pendingPassiveProfilerEffects;
- pendingPassiveProfilerEffects = [];
-
- for (var i = 0; i < profilerEffects.length; i++) {
- var _fiber = profilerEffects[i];
- commitPassiveEffectDurations(root, _fiber);
- }
- }
-
- {
- markPassiveEffectsStopped();
- }
-
- {
- commitDoubleInvokeEffectsInDEV(root.current, true);
- }
-
- executionContext = prevExecutionContext;
- flushSyncCallbacks();
-
- {
- // If additional passive effects were scheduled, increment a counter. If this
- // exceeds the limit, we'll fire a warning.
- if (didScheduleUpdateDuringPassiveEffects) {
- if (root === rootWithPassiveNestedUpdates) {
- nestedPassiveUpdateCount++;
- } else {
- nestedPassiveUpdateCount = 0;
- rootWithPassiveNestedUpdates = root;
- }
- } else {
- nestedPassiveUpdateCount = 0;
- }
-
- isFlushingPassiveEffects = false;
- didScheduleUpdateDuringPassiveEffects = false;
- } // TODO: Move to commitPassiveMountEffects
-
-
- onPostCommitRoot(root);
-
- {
- var stateNode = root.current.stateNode;
- stateNode.effectDuration = 0;
- stateNode.passiveEffectDuration = 0;
- }
-
- return true;
- }
-
- function isAlreadyFailedLegacyErrorBoundary(instance) {
- return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
- }
- function markLegacyErrorBoundaryAsFailed(instance) {
- if (legacyErrorBoundariesThatAlreadyFailed === null) {
- legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
- } else {
- legacyErrorBoundariesThatAlreadyFailed.add(instance);
- }
- }
-
- function prepareToThrowUncaughtError(error) {
- if (!hasUncaughtError) {
- hasUncaughtError = true;
- firstUncaughtError = error;
- }
- }
-
- var onUncaughtError = prepareToThrowUncaughtError;
-
- function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
- var errorInfo = createCapturedValueAtFiber(error, sourceFiber);
- var update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane);
- var root = enqueueUpdate(rootFiber, update, SyncLane);
- var eventTime = requestEventTime();
-
- if (root !== null) {
- markRootUpdated(root, SyncLane, eventTime);
- ensureRootIsScheduled(root, eventTime);
- }
- }
-
- function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) {
- {
- reportUncaughtErrorInDEV(error$1);
- setIsRunningInsertionEffect(false);
- }
-
- if (sourceFiber.tag === HostRoot) {
- // Error was thrown at the root. There is no parent, so the root
- // itself should capture it.
- captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error$1);
- return;
- }
-
- var fiber = null;
-
- {
- fiber = nearestMountedAncestor;
- }
-
- while (fiber !== null) {
- if (fiber.tag === HostRoot) {
- captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error$1);
- return;
- } else if (fiber.tag === ClassComponent) {
- var ctor = fiber.type;
- var instance = fiber.stateNode;
-
- if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
- var errorInfo = createCapturedValueAtFiber(error$1, sourceFiber);
- var update = createClassErrorUpdate(fiber, errorInfo, SyncLane);
- var root = enqueueUpdate(fiber, update, SyncLane);
- var eventTime = requestEventTime();
-
- if (root !== null) {
- markRootUpdated(root, SyncLane, eventTime);
- ensureRootIsScheduled(root, eventTime);
- }
-
- return;
- }
- }
-
- fiber = fiber.return;
- }
-
- {
- // TODO: Until we re-land skipUnmountedBoundaries (see #20147), this warning
- // will fire for errors that are thrown by destroy functions inside deleted
- // trees. What it should instead do is propagate the error to the parent of
- // the deleted tree. In the meantime, do not add this warning to the
- // allowlist; this is only for our internal use.
- error('Internal React error: Attempted to capture a commit phase error ' + 'inside a detached tree. This indicates a bug in React. Likely ' + 'causes include deleting the same fiber more than once, committing an ' + 'already-finished tree, or an inconsistent return pointer.\n\n' + 'Error message:\n\n%s', error$1);
- }
- }
- function pingSuspendedRoot(root, wakeable, pingedLanes) {
- var pingCache = root.pingCache;
-
- if (pingCache !== null) {
- // The wakeable resolved, so we no longer need to memoize, because it will
- // never be thrown again.
- pingCache.delete(wakeable);
- }
-
- var eventTime = requestEventTime();
- markRootPinged(root, pingedLanes);
- warnIfSuspenseResolutionNotWrappedWithActDEV(root);
-
- if (workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes)) {
- // Received a ping at the same priority level at which we're currently
- // rendering. We might want to restart this render. This should mirror
- // the logic of whether or not a root suspends once it completes.
- // TODO: If we're rendering sync either due to Sync, Batched or expired,
- // we should probably never restart.
- // If we're suspended with delay, or if it's a retry, we'll always suspend
- // so we can always restart.
- if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
- // Restart from the root.
- prepareFreshStack(root, NoLanes);
- } else {
- // Even though we can't restart right now, we might get an
- // opportunity later. So we mark this render as having a ping.
- workInProgressRootPingedLanes = mergeLanes(workInProgressRootPingedLanes, pingedLanes);
- }
- }
-
- ensureRootIsScheduled(root, eventTime);
- }
-
- function retryTimedOutBoundary(boundaryFiber, retryLane) {
- // The boundary fiber (a Suspense component or SuspenseList component)
- // previously was rendered in its fallback state. One of the promises that
- // suspended it has resolved, which means at least part of the tree was
- // likely unblocked. Try rendering again, at a new lanes.
- if (retryLane === NoLane) {
- // TODO: Assign this to `suspenseState.retryLane`? to avoid
- // unnecessary entanglement?
- retryLane = requestRetryLane(boundaryFiber);
- } // TODO: Special case idle priority?
-
-
- var eventTime = requestEventTime();
- var root = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);
-
- if (root !== null) {
- markRootUpdated(root, retryLane, eventTime);
- ensureRootIsScheduled(root, eventTime);
- }
- }
-
- function retryDehydratedSuspenseBoundary(boundaryFiber) {
- var suspenseState = boundaryFiber.memoizedState;
- var retryLane = NoLane;
-
- if (suspenseState !== null) {
- retryLane = suspenseState.retryLane;
- }
-
- retryTimedOutBoundary(boundaryFiber, retryLane);
- }
- function resolveRetryWakeable(boundaryFiber, wakeable) {
- var retryLane = NoLane; // Default
-
- var retryCache;
-
- switch (boundaryFiber.tag) {
- case SuspenseComponent:
- retryCache = boundaryFiber.stateNode;
- var suspenseState = boundaryFiber.memoizedState;
-
- if (suspenseState !== null) {
- retryLane = suspenseState.retryLane;
- }
-
- break;
-
- case SuspenseListComponent:
- retryCache = boundaryFiber.stateNode;
- break;
-
- default:
- throw new Error('Pinged unknown suspense boundary type. ' + 'This is probably a bug in React.');
- }
-
- if (retryCache !== null) {
- // The wakeable resolved, so we no longer need to memoize, because it will
- // never be thrown again.
- retryCache.delete(wakeable);
- }
-
- retryTimedOutBoundary(boundaryFiber, retryLane);
- } // Computes the next Just Noticeable Difference (JND) boundary.
- // The theory is that a person can't tell the difference between small differences in time.
- // Therefore, if we wait a bit longer than necessary that won't translate to a noticeable
- // difference in the experience. However, waiting for longer might mean that we can avoid
- // showing an intermediate loading state. The longer we have already waited, the harder it
- // is to tell small differences in time. Therefore, the longer we've already waited,
- // the longer we can wait additionally. At some point we have to give up though.
- // We pick a train model where the next boundary commits at a consistent schedule.
- // These particular numbers are vague estimates. We expect to adjust them based on research.
-
- function jnd(timeElapsed) {
- return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960;
- }
-
- function checkForNestedUpdates() {
- if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
- nestedUpdateCount = 0;
- rootWithNestedUpdates = null;
- throw new Error('Maximum update depth exceeded. This can happen when a component ' + 'repeatedly calls setState inside componentWillUpdate or ' + 'componentDidUpdate. React limits the number of nested updates to ' + 'prevent infinite loops.');
- }
-
- {
- if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) {
- nestedPassiveUpdateCount = 0;
- rootWithPassiveNestedUpdates = null;
-
- error('Maximum update depth exceeded. This can happen when a component ' + "calls setState inside useEffect, but useEffect either doesn't " + 'have a dependency array, or one of the dependencies changes on ' + 'every render.');
- }
- }
- }
-
- function flushRenderPhaseStrictModeWarningsInDEV() {
- {
- ReactStrictModeWarnings.flushLegacyContextWarning();
-
- {
- ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
- }
- }
- }
-
- function commitDoubleInvokeEffectsInDEV(fiber, hasPassiveEffects) {
- {
- // TODO (StrictEffects) Should we set a marker on the root if it contains strict effects
- // so we don't traverse unnecessarily? similar to subtreeFlags but just at the root level.
- // Maybe not a big deal since this is DEV only behavior.
- setCurrentFiber(fiber);
- invokeEffectsInDev(fiber, MountLayoutDev, invokeLayoutEffectUnmountInDEV);
-
- if (hasPassiveEffects) {
- invokeEffectsInDev(fiber, MountPassiveDev, invokePassiveEffectUnmountInDEV);
- }
-
- invokeEffectsInDev(fiber, MountLayoutDev, invokeLayoutEffectMountInDEV);
-
- if (hasPassiveEffects) {
- invokeEffectsInDev(fiber, MountPassiveDev, invokePassiveEffectMountInDEV);
- }
-
- resetCurrentFiber();
- }
- }
-
- function invokeEffectsInDev(firstChild, fiberFlags, invokeEffectFn) {
- {
- // We don't need to re-check StrictEffectsMode here.
- // This function is only called if that check has already passed.
- var current = firstChild;
- var subtreeRoot = null;
-
- while (current !== null) {
- var primarySubtreeFlag = current.subtreeFlags & fiberFlags;
-
- if (current !== subtreeRoot && current.child !== null && primarySubtreeFlag !== NoFlags) {
- current = current.child;
- } else {
- if ((current.flags & fiberFlags) !== NoFlags) {
- invokeEffectFn(current);
- }
-
- if (current.sibling !== null) {
- current = current.sibling;
- } else {
- current = subtreeRoot = current.return;
- }
- }
- }
- }
- }
-
- var didWarnStateUpdateForNotYetMountedComponent = null;
- function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) {
- {
- if ((executionContext & RenderContext) !== NoContext) {
- // We let the other warning about render phase updates deal with this one.
- return;
- }
-
- if (!(fiber.mode & ConcurrentMode)) {
- return;
- }
-
- var tag = fiber.tag;
-
- if (tag !== IndeterminateComponent && tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent) {
- // Only warn for user-defined components, not internal ones like Suspense.
- return;
- } // We show the whole stack but dedupe on the top component's name because
- // the problematic code almost always lies inside that component.
-
-
- var componentName = getComponentNameFromFiber(fiber) || 'ReactComponent';
-
- if (didWarnStateUpdateForNotYetMountedComponent !== null) {
- if (didWarnStateUpdateForNotYetMountedComponent.has(componentName)) {
- return;
- }
-
- didWarnStateUpdateForNotYetMountedComponent.add(componentName);
- } else {
- didWarnStateUpdateForNotYetMountedComponent = new Set([componentName]);
- }
-
- var previousFiber = current;
-
- try {
- setCurrentFiber(fiber);
-
- error("Can't perform a React state update on a component that hasn't mounted yet. " + 'This indicates that you have a side-effect in your render function that ' + 'asynchronously later calls tries to update the component. Move this work to ' + 'useEffect instead.');
- } finally {
- if (previousFiber) {
- setCurrentFiber(fiber);
- } else {
- resetCurrentFiber();
- }
- }
- }
- }
- var beginWork$1;
-
- {
- var dummyFiber = null;
-
- beginWork$1 = function (current, unitOfWork, lanes) {
- // If a component throws an error, we replay it again in a synchronously
- // dispatched event, so that the debugger will treat it as an uncaught
- // error See ReactErrorUtils for more information.
- // Before entering the begin phase, copy the work-in-progress onto a dummy
- // fiber. If beginWork throws, we'll use this to reset the state.
- var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork);
-
- try {
- return beginWork(current, unitOfWork, lanes);
- } catch (originalError) {
- if (didSuspendOrErrorWhileHydratingDEV() || originalError !== null && typeof originalError === 'object' && typeof originalError.then === 'function') {
- // Don't replay promises.
- // Don't replay errors if we are hydrating and have already suspended or handled an error
- throw originalError;
- } // Keep this code in sync with handleError; any changes here must have
- // corresponding changes there.
-
-
- resetContextDependencies();
- resetHooksAfterThrow(); // Don't reset current debug fiber, since we're about to work on the
- // same fiber again.
- // Unwind the failed stack frame
-
- unwindInterruptedWork(current, unitOfWork); // Restore the original properties of the fiber.
-
- assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);
-
- if ( unitOfWork.mode & ProfileMode) {
- // Reset the profiler timer.
- startProfilerTimer(unitOfWork);
- } // Run beginWork again.
-
-
- invokeGuardedCallback(null, beginWork, null, current, unitOfWork, lanes);
-
- if (hasCaughtError()) {
- var replayError = clearCaughtError();
-
- if (typeof replayError === 'object' && replayError !== null && replayError._suppressLogging && typeof originalError === 'object' && originalError !== null && !originalError._suppressLogging) {
- // If suppressed, let the flag carry over to the original error which is the one we'll rethrow.
- originalError._suppressLogging = true;
- }
- } // We always throw the original error in case the second render pass is not idempotent.
- // This can happen if a memoized function or CommonJS module doesn't throw after first invocation.
-
-
- throw originalError;
- }
- };
- }
-
- var didWarnAboutUpdateInRender = false;
- var didWarnAboutUpdateInRenderForAnotherComponent;
-
- {
- didWarnAboutUpdateInRenderForAnotherComponent = new Set();
- }
-
- function warnAboutRenderPhaseUpdatesInDEV(fiber) {
- {
- if (isRendering && !getIsUpdatingOpaqueValueInRenderPhaseInDEV()) {
- switch (fiber.tag) {
- case FunctionComponent:
- case ForwardRef:
- case SimpleMemoComponent:
- {
- var renderingComponentName = workInProgress && getComponentNameFromFiber(workInProgress) || 'Unknown'; // Dedupe by the rendering component because it's the one that needs to be fixed.
-
- var dedupeKey = renderingComponentName;
-
- if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) {
- didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey);
- var setStateComponentName = getComponentNameFromFiber(fiber) || 'Unknown';
-
- error('Cannot update a component (`%s`) while rendering a ' + 'different component (`%s`). To locate the bad setState() call inside `%s`, ' + 'follow the stack trace as described in https://reactjs.org/link/setstate-in-render', setStateComponentName, renderingComponentName, renderingComponentName);
- }
-
- break;
- }
-
- case ClassComponent:
- {
- if (!didWarnAboutUpdateInRender) {
- error('Cannot update during an existing state transition (such as ' + 'within `render`). Render methods should be a pure ' + 'function of props and state.');
-
- didWarnAboutUpdateInRender = true;
- }
-
- break;
- }
- }
- }
- }
- }
-
- function restorePendingUpdaters(root, lanes) {
- {
- if (isDevToolsPresent) {
- var memoizedUpdaters = root.memoizedUpdaters;
- memoizedUpdaters.forEach(function (schedulingFiber) {
- addFiberToLanesMap(root, schedulingFiber, lanes);
- }); // This function intentionally does not clear memoized updaters.
- // Those may still be relevant to the current commit
- // and a future one (e.g. Suspense).
- }
- }
- }
- var fakeActCallbackNode = {};
-
- function scheduleCallback$1(priorityLevel, callback) {
- {
- // If we're currently inside an `act` scope, bypass Scheduler and push to
- // the `act` queue instead.
- var actQueue = ReactCurrentActQueue$1.current;
-
- if (actQueue !== null) {
- actQueue.push(callback);
- return fakeActCallbackNode;
- } else {
- return scheduleCallback(priorityLevel, callback);
- }
- }
- }
-
- function cancelCallback$1(callbackNode) {
- if ( callbackNode === fakeActCallbackNode) {
- return;
- } // In production, always call Scheduler. This function will be stripped out.
-
-
- return cancelCallback(callbackNode);
- }
-
- function shouldForceFlushFallbacksInDEV() {
- // Never force flush in production. This function should get stripped out.
- return ReactCurrentActQueue$1.current !== null;
- }
-
- function warnIfUpdatesNotWrappedWithActDEV(fiber) {
- {
- if (fiber.mode & ConcurrentMode) {
- if (!isConcurrentActEnvironment()) {
- // Not in an act environment. No need to warn.
- return;
- }
- } else {
- // Legacy mode has additional cases where we suppress a warning.
- if (!isLegacyActEnvironment()) {
- // Not in an act environment. No need to warn.
- return;
- }
-
- if (executionContext !== NoContext) {
- // Legacy mode doesn't warn if the update is batched, i.e.
- // batchedUpdates or flushSync.
- return;
- }
-
- if (fiber.tag !== FunctionComponent && fiber.tag !== ForwardRef && fiber.tag !== SimpleMemoComponent) {
- // For backwards compatibility with pre-hooks code, legacy mode only
- // warns for updates that originate from a hook.
- return;
- }
- }
-
- if (ReactCurrentActQueue$1.current === null) {
- var previousFiber = current;
-
- try {
- setCurrentFiber(fiber);
-
- error('An update to %s inside a test was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + ' /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://reactjs.org/link/wrap-tests-with-act', getComponentNameFromFiber(fiber));
- } finally {
- if (previousFiber) {
- setCurrentFiber(fiber);
- } else {
- resetCurrentFiber();
- }
- }
- }
- }
- }
-
- function warnIfSuspenseResolutionNotWrappedWithActDEV(root) {
- {
- if (root.tag !== LegacyRoot && isConcurrentActEnvironment() && ReactCurrentActQueue$1.current === null) {
- error('A suspended resource finished loading inside a test, but the event ' + 'was not wrapped in act(...).\n\n' + 'When testing, code that resolves suspended data should be wrapped ' + 'into act(...):\n\n' + 'act(() => {\n' + ' /* finish loading suspended data */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://reactjs.org/link/wrap-tests-with-act');
- }
- }
- }
-
- function setIsRunningInsertionEffect(isRunning) {
- {
- isRunningInsertionEffect = isRunning;
- }
- }
-
- /* eslint-disable react-internal/prod-error-codes */
- var resolveFamily = null; // $FlowFixMe Flow gets confused by a WeakSet feature check below.
-
- var failedBoundaries = null;
- var setRefreshHandler = function (handler) {
- {
- resolveFamily = handler;
- }
- };
- function resolveFunctionForHotReloading(type) {
- {
- if (resolveFamily === null) {
- // Hot reloading is disabled.
- return type;
- }
-
- var family = resolveFamily(type);
-
- if (family === undefined) {
- return type;
- } // Use the latest known implementation.
-
-
- return family.current;
- }
- }
- function resolveClassForHotReloading(type) {
- // No implementation differences.
- return resolveFunctionForHotReloading(type);
- }
- function resolveForwardRefForHotReloading(type) {
- {
- if (resolveFamily === null) {
- // Hot reloading is disabled.
- return type;
- }
-
- var family = resolveFamily(type);
-
- if (family === undefined) {
- // Check if we're dealing with a real forwardRef. Don't want to crash early.
- if (type !== null && type !== undefined && typeof type.render === 'function') {
- // ForwardRef is special because its resolved .type is an object,
- // but it's possible that we only have its inner render function in the map.
- // If that inner render function is different, we'll build a new forwardRef type.
- var currentRender = resolveFunctionForHotReloading(type.render);
-
- if (type.render !== currentRender) {
- var syntheticType = {
- $$typeof: REACT_FORWARD_REF_TYPE,
- render: currentRender
- };
-
- if (type.displayName !== undefined) {
- syntheticType.displayName = type.displayName;
- }
-
- return syntheticType;
- }
- }
-
- return type;
- } // Use the latest known implementation.
-
-
- return family.current;
- }
- }
- function isCompatibleFamilyForHotReloading(fiber, element) {
- {
- if (resolveFamily === null) {
- // Hot reloading is disabled.
- return false;
- }
-
- var prevType = fiber.elementType;
- var nextType = element.type; // If we got here, we know types aren't === equal.
-
- var needsCompareFamilies = false;
- var $$typeofNextType = typeof nextType === 'object' && nextType !== null ? nextType.$$typeof : null;
-
- switch (fiber.tag) {
- case ClassComponent:
- {
- if (typeof nextType === 'function') {
- needsCompareFamilies = true;
- }
-
- break;
- }
-
- case FunctionComponent:
- {
- if (typeof nextType === 'function') {
- needsCompareFamilies = true;
- } else if ($$typeofNextType === REACT_LAZY_TYPE) {
- // We don't know the inner type yet.
- // We're going to assume that the lazy inner type is stable,
- // and so it is sufficient to avoid reconciling it away.
- // We're not going to unwrap or actually use the new lazy type.
- needsCompareFamilies = true;
- }
-
- break;
- }
-
- case ForwardRef:
- {
- if ($$typeofNextType === REACT_FORWARD_REF_TYPE) {
- needsCompareFamilies = true;
- } else if ($$typeofNextType === REACT_LAZY_TYPE) {
- needsCompareFamilies = true;
- }
-
- break;
- }
-
- case MemoComponent:
- case SimpleMemoComponent:
- {
- if ($$typeofNextType === REACT_MEMO_TYPE) {
- // TODO: if it was but can no longer be simple,
- // we shouldn't set this.
- needsCompareFamilies = true;
- } else if ($$typeofNextType === REACT_LAZY_TYPE) {
- needsCompareFamilies = true;
- }
-
- break;
- }
-
- default:
- return false;
- } // Check if both types have a family and it's the same one.
-
-
- if (needsCompareFamilies) {
- // Note: memo() and forwardRef() we'll compare outer rather than inner type.
- // This means both of them need to be registered to preserve state.
- // If we unwrapped and compared the inner types for wrappers instead,
- // then we would risk falsely saying two separate memo(Foo)
- // calls are equivalent because they wrap the same Foo function.
- var prevFamily = resolveFamily(prevType);
-
- if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) {
- return true;
- }
- }
-
- return false;
- }
- }
- function markFailedErrorBoundaryForHotReloading(fiber) {
- {
- if (resolveFamily === null) {
- // Hot reloading is disabled.
- return;
- }
-
- if (typeof WeakSet !== 'function') {
- return;
- }
-
- if (failedBoundaries === null) {
- failedBoundaries = new WeakSet();
- }
-
- failedBoundaries.add(fiber);
- }
- }
- var scheduleRefresh = function (root, update) {
- {
- if (resolveFamily === null) {
- // Hot reloading is disabled.
- return;
- }
-
- var staleFamilies = update.staleFamilies,
- updatedFamilies = update.updatedFamilies;
- flushPassiveEffects();
- flushSync(function () {
- scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies);
- });
- }
- };
- var scheduleRoot = function (root, element) {
- {
- if (root.context !== emptyContextObject) {
- // Super edge case: root has a legacy _renderSubtree context
- // but we don't know the parentComponent so we can't pass it.
- // Just ignore. We'll delete this with _renderSubtree code path later.
- return;
- }
-
- flushPassiveEffects();
- flushSync(function () {
- updateContainer(element, root, null, null);
- });
- }
- };
-
- function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {
- {
- var alternate = fiber.alternate,
- child = fiber.child,
- sibling = fiber.sibling,
- tag = fiber.tag,
- type = fiber.type;
- var candidateType = null;
-
- switch (tag) {
- case FunctionComponent:
- case SimpleMemoComponent:
- case ClassComponent:
- candidateType = type;
- break;
-
- case ForwardRef:
- candidateType = type.render;
- break;
- }
-
- if (resolveFamily === null) {
- throw new Error('Expected resolveFamily to be set during hot reload.');
- }
-
- var needsRender = false;
- var needsRemount = false;
-
- if (candidateType !== null) {
- var family = resolveFamily(candidateType);
-
- if (family !== undefined) {
- if (staleFamilies.has(family)) {
- needsRemount = true;
- } else if (updatedFamilies.has(family)) {
- if (tag === ClassComponent) {
- needsRemount = true;
- } else {
- needsRender = true;
- }
- }
- }
- }
-
- if (failedBoundaries !== null) {
- if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) {
- needsRemount = true;
- }
- }
-
- if (needsRemount) {
- fiber._debugNeedsRemount = true;
- }
-
- if (needsRemount || needsRender) {
- var _root = enqueueConcurrentRenderForLane(fiber, SyncLane);
-
- if (_root !== null) {
- scheduleUpdateOnFiber(_root, fiber, SyncLane, NoTimestamp);
- }
- }
-
- if (child !== null && !needsRemount) {
- scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies);
- }
-
- if (sibling !== null) {
- scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);
- }
- }
- }
-
- var findHostInstancesForRefresh = function (root, families) {
- {
- var hostInstances = new Set();
- var types = new Set(families.map(function (family) {
- return family.current;
- }));
- findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances);
- return hostInstances;
- }
- };
-
- function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) {
- {
- var child = fiber.child,
- sibling = fiber.sibling,
- tag = fiber.tag,
- type = fiber.type;
- var candidateType = null;
-
- switch (tag) {
- case FunctionComponent:
- case SimpleMemoComponent:
- case ClassComponent:
- candidateType = type;
- break;
-
- case ForwardRef:
- candidateType = type.render;
- break;
- }
-
- var didMatch = false;
-
- if (candidateType !== null) {
- if (types.has(candidateType)) {
- didMatch = true;
- }
- }
-
- if (didMatch) {
- // We have a match. This only drills down to the closest host components.
- // There's no need to search deeper because for the purpose of giving
- // visual feedback, "flashing" outermost parent rectangles is sufficient.
- findHostInstancesForFiberShallowly(fiber, hostInstances);
- } else {
- // If there's no match, maybe there will be one further down in the child tree.
- if (child !== null) {
- findHostInstancesForMatchingFibersRecursively(child, types, hostInstances);
- }
- }
-
- if (sibling !== null) {
- findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);
- }
- }
- }
-
- function findHostInstancesForFiberShallowly(fiber, hostInstances) {
- {
- var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances);
-
- if (foundHostInstances) {
- return;
- } // If we didn't find any host children, fallback to closest host parent.
-
-
- var node = fiber;
-
- while (true) {
- switch (node.tag) {
- case HostComponent:
- hostInstances.add(node.stateNode);
- return;
-
- case HostPortal:
- hostInstances.add(node.stateNode.containerInfo);
- return;
-
- case HostRoot:
- hostInstances.add(node.stateNode.containerInfo);
- return;
- }
-
- if (node.return === null) {
- throw new Error('Expected to reach root first.');
- }
-
- node = node.return;
- }
- }
- }
-
- function findChildHostInstancesForFiberShallowly(fiber, hostInstances) {
- {
- var node = fiber;
- var foundHostInstances = false;
-
- while (true) {
- if (node.tag === HostComponent) {
- // We got a match.
- foundHostInstances = true;
- hostInstances.add(node.stateNode); // There may still be more, so keep searching.
- } else if (node.child !== null) {
- node.child.return = node;
- node = node.child;
- continue;
- }
-
- if (node === fiber) {
- return foundHostInstances;
- }
-
- while (node.sibling === null) {
- if (node.return === null || node.return === fiber) {
- return foundHostInstances;
- }
-
- node = node.return;
- }
-
- node.sibling.return = node.return;
- node = node.sibling;
- }
- }
-
- return false;
- }
-
- var hasBadMapPolyfill;
-
- {
- hasBadMapPolyfill = false;
-
- try {
- var nonExtensibleObject = Object.preventExtensions({});
- /* eslint-disable no-new */
-
- new Map([[nonExtensibleObject, null]]);
- new Set([nonExtensibleObject]);
- /* eslint-enable no-new */
- } catch (e) {
- // TODO: Consider warning about bad polyfills
- hasBadMapPolyfill = true;
- }
- }
-
- function FiberNode(tag, pendingProps, key, mode) {
- // Instance
- this.tag = tag;
- this.key = key;
- this.elementType = null;
- this.type = null;
- this.stateNode = null; // Fiber
-
- this.return = null;
- this.child = null;
- this.sibling = null;
- this.index = 0;
- this.ref = null;
- this.pendingProps = pendingProps;
- this.memoizedProps = null;
- this.updateQueue = null;
- this.memoizedState = null;
- this.dependencies = null;
- this.mode = mode; // Effects
-
- this.flags = NoFlags;
- this.subtreeFlags = NoFlags;
- this.deletions = null;
- this.lanes = NoLanes;
- this.childLanes = NoLanes;
- this.alternate = null;
-
- {
- // Note: The following is done to avoid a v8 performance cliff.
- //
- // Initializing the fields below to smis and later updating them with
- // double values will cause Fibers to end up having separate shapes.
- // This behavior/bug has something to do with Object.preventExtension().
- // Fortunately this only impacts DEV builds.
- // Unfortunately it makes React unusably slow for some applications.
- // To work around this, initialize the fields below with doubles.
- //
- // Learn more about this here:
- // https://github.com/facebook/react/issues/14365
- // https://bugs.chromium.org/p/v8/issues/detail?id=8538
- this.actualDuration = Number.NaN;
- this.actualStartTime = Number.NaN;
- this.selfBaseDuration = Number.NaN;
- this.treeBaseDuration = Number.NaN; // It's okay to replace the initial doubles with smis after initialization.
- // This won't trigger the performance cliff mentioned above,
- // and it simplifies other profiler code (including DevTools).
-
- this.actualDuration = 0;
- this.actualStartTime = -1;
- this.selfBaseDuration = 0;
- this.treeBaseDuration = 0;
- }
-
- {
- // This isn't directly used but is handy for debugging internals:
- this._debugSource = null;
- this._debugOwner = null;
- this._debugNeedsRemount = false;
- this._debugHookTypes = null;
-
- if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
- Object.preventExtensions(this);
- }
- }
- } // This is a constructor function, rather than a POJO constructor, still
- // please ensure we do the following:
- // 1) Nobody should add any instance methods on this. Instance methods can be
- // more difficult to predict when they get optimized and they are almost
- // never inlined properly in static compilers.
- // 2) Nobody should rely on `instanceof Fiber` for type testing. We should
- // always know when it is a fiber.
- // 3) We might want to experiment with using numeric keys since they are easier
- // to optimize in a non-JIT environment.
- // 4) We can easily go from a constructor to a createFiber object literal if that
- // is faster.
- // 5) It should be easy to port this to a C struct and keep a C implementation
- // compatible.
-
-
- var createFiber = function (tag, pendingProps, key, mode) {
- // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
- return new FiberNode(tag, pendingProps, key, mode);
- };
-
- function shouldConstruct$1(Component) {
- var prototype = Component.prototype;
- return !!(prototype && prototype.isReactComponent);
- }
-
- function isSimpleFunctionComponent(type) {
- return typeof type === 'function' && !shouldConstruct$1(type) && type.defaultProps === undefined;
- }
- function resolveLazyComponentTag(Component) {
- if (typeof Component === 'function') {
- return shouldConstruct$1(Component) ? ClassComponent : FunctionComponent;
- } else if (Component !== undefined && Component !== null) {
- var $$typeof = Component.$$typeof;
-
- if ($$typeof === REACT_FORWARD_REF_TYPE) {
- return ForwardRef;
- }
-
- if ($$typeof === REACT_MEMO_TYPE) {
- return MemoComponent;
- }
- }
-
- return IndeterminateComponent;
- } // This is used to create an alternate fiber to do work on.
-
- function createWorkInProgress(current, pendingProps) {
- var workInProgress = current.alternate;
-
- if (workInProgress === null) {
- // We use a double buffering pooling technique because we know that we'll
- // only ever need at most two versions of a tree. We pool the "other" unused
- // node that we're free to reuse. This is lazily created to avoid allocating
- // extra objects for things that are never updated. It also allow us to
- // reclaim the extra memory if needed.
- workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
- workInProgress.elementType = current.elementType;
- workInProgress.type = current.type;
- workInProgress.stateNode = current.stateNode;
-
- {
- // DEV-only fields
- workInProgress._debugSource = current._debugSource;
- workInProgress._debugOwner = current._debugOwner;
- workInProgress._debugHookTypes = current._debugHookTypes;
- }
-
- workInProgress.alternate = current;
- current.alternate = workInProgress;
- } else {
- workInProgress.pendingProps = pendingProps; // Needed because Blocks store data on type.
-
- workInProgress.type = current.type; // We already have an alternate.
- // Reset the effect tag.
-
- workInProgress.flags = NoFlags; // The effects are no longer valid.
-
- workInProgress.subtreeFlags = NoFlags;
- workInProgress.deletions = null;
-
- {
- // We intentionally reset, rather than copy, actualDuration & actualStartTime.
- // This prevents time from endlessly accumulating in new commits.
- // This has the downside of resetting values for different priority renders,
- // But works for yielding (the common case) and should support resuming.
- workInProgress.actualDuration = 0;
- workInProgress.actualStartTime = -1;
- }
- } // Reset all effects except static ones.
- // Static effects are not specific to a render.
-
-
- workInProgress.flags = current.flags & StaticMask;
- workInProgress.childLanes = current.childLanes;
- workInProgress.lanes = current.lanes;
- workInProgress.child = current.child;
- workInProgress.memoizedProps = current.memoizedProps;
- workInProgress.memoizedState = current.memoizedState;
- workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so
- // it cannot be shared with the current fiber.
-
- var currentDependencies = current.dependencies;
- workInProgress.dependencies = currentDependencies === null ? null : {
- lanes: currentDependencies.lanes,
- firstContext: currentDependencies.firstContext
- }; // These will be overridden during the parent's reconciliation
-
- workInProgress.sibling = current.sibling;
- workInProgress.index = current.index;
- workInProgress.ref = current.ref;
-
- {
- workInProgress.selfBaseDuration = current.selfBaseDuration;
- workInProgress.treeBaseDuration = current.treeBaseDuration;
- }
-
- {
- workInProgress._debugNeedsRemount = current._debugNeedsRemount;
-
- switch (workInProgress.tag) {
- case IndeterminateComponent:
- case FunctionComponent:
- case SimpleMemoComponent:
- workInProgress.type = resolveFunctionForHotReloading(current.type);
- break;
-
- case ClassComponent:
- workInProgress.type = resolveClassForHotReloading(current.type);
- break;
-
- case ForwardRef:
- workInProgress.type = resolveForwardRefForHotReloading(current.type);
- break;
- }
- }
-
- return workInProgress;
- } // Used to reuse a Fiber for a second pass.
-
- function resetWorkInProgress(workInProgress, renderLanes) {
- // This resets the Fiber to what createFiber or createWorkInProgress would
- // have set the values to before during the first pass. Ideally this wouldn't
- // be necessary but unfortunately many code paths reads from the workInProgress
- // when they should be reading from current and writing to workInProgress.
- // We assume pendingProps, index, key, ref, return are still untouched to
- // avoid doing another reconciliation.
- // Reset the effect flags but keep any Placement tags, since that's something
- // that child fiber is setting, not the reconciliation.
- workInProgress.flags &= StaticMask | Placement; // The effects are no longer valid.
-
- var current = workInProgress.alternate;
-
- if (current === null) {
- // Reset to createFiber's initial values.
- workInProgress.childLanes = NoLanes;
- workInProgress.lanes = renderLanes;
- workInProgress.child = null;
- workInProgress.subtreeFlags = NoFlags;
- workInProgress.memoizedProps = null;
- workInProgress.memoizedState = null;
- workInProgress.updateQueue = null;
- workInProgress.dependencies = null;
- workInProgress.stateNode = null;
-
- {
- // Note: We don't reset the actualTime counts. It's useful to accumulate
- // actual time across multiple render passes.
- workInProgress.selfBaseDuration = 0;
- workInProgress.treeBaseDuration = 0;
- }
- } else {
- // Reset to the cloned values that createWorkInProgress would've.
- workInProgress.childLanes = current.childLanes;
- workInProgress.lanes = current.lanes;
- workInProgress.child = current.child;
- workInProgress.subtreeFlags = NoFlags;
- workInProgress.deletions = null;
- workInProgress.memoizedProps = current.memoizedProps;
- workInProgress.memoizedState = current.memoizedState;
- workInProgress.updateQueue = current.updateQueue; // Needed because Blocks store data on type.
-
- workInProgress.type = current.type; // Clone the dependencies object. This is mutated during the render phase, so
- // it cannot be shared with the current fiber.
-
- var currentDependencies = current.dependencies;
- workInProgress.dependencies = currentDependencies === null ? null : {
- lanes: currentDependencies.lanes,
- firstContext: currentDependencies.firstContext
- };
-
- {
- // Note: We don't reset the actualTime counts. It's useful to accumulate
- // actual time across multiple render passes.
- workInProgress.selfBaseDuration = current.selfBaseDuration;
- workInProgress.treeBaseDuration = current.treeBaseDuration;
- }
- }
-
- return workInProgress;
- }
- function createHostRootFiber(tag, isStrictMode, concurrentUpdatesByDefaultOverride) {
- var mode;
-
- if (tag === ConcurrentRoot) {
- mode = ConcurrentMode;
-
- if (isStrictMode === true) {
- mode |= StrictLegacyMode;
-
- {
- mode |= StrictEffectsMode;
- }
- }
- } else {
- mode = NoMode;
- }
-
- if ( isDevToolsPresent) {
- // Always collect profile timings when DevTools are present.
- // This enables DevTools to start capturing timing at any point–
- // Without some nodes in the tree having empty base times.
- mode |= ProfileMode;
- }
-
- return createFiber(HostRoot, null, null, mode);
- }
- function createFiberFromTypeAndProps(type, // React$ElementType
- key, pendingProps, owner, mode, lanes) {
- var fiberTag = IndeterminateComponent; // The resolved type is set if we know what the final type will be. I.e. it's not lazy.
-
- var resolvedType = type;
-
- if (typeof type === 'function') {
- if (shouldConstruct$1(type)) {
- fiberTag = ClassComponent;
-
- {
- resolvedType = resolveClassForHotReloading(resolvedType);
- }
- } else {
- {
- resolvedType = resolveFunctionForHotReloading(resolvedType);
- }
- }
- } else if (typeof type === 'string') {
- fiberTag = HostComponent;
- } else {
- getTag: switch (type) {
- case REACT_FRAGMENT_TYPE:
- return createFiberFromFragment(pendingProps.children, mode, lanes, key);
-
- case REACT_STRICT_MODE_TYPE:
- fiberTag = Mode;
- mode |= StrictLegacyMode;
-
- if ( (mode & ConcurrentMode) !== NoMode) {
- // Strict effects should never run on legacy roots
- mode |= StrictEffectsMode;
- }
-
- break;
-
- case REACT_PROFILER_TYPE:
- return createFiberFromProfiler(pendingProps, mode, lanes, key);
-
- case REACT_SUSPENSE_TYPE:
- return createFiberFromSuspense(pendingProps, mode, lanes, key);
-
- case REACT_SUSPENSE_LIST_TYPE:
- return createFiberFromSuspenseList(pendingProps, mode, lanes, key);
-
- case REACT_OFFSCREEN_TYPE:
- return createFiberFromOffscreen(pendingProps, mode, lanes, key);
-
- case REACT_LEGACY_HIDDEN_TYPE:
-
- // eslint-disable-next-line no-fallthrough
-
- case REACT_SCOPE_TYPE:
-
- // eslint-disable-next-line no-fallthrough
-
- case REACT_CACHE_TYPE:
-
- // eslint-disable-next-line no-fallthrough
-
- case REACT_TRACING_MARKER_TYPE:
-
- // eslint-disable-next-line no-fallthrough
-
- case REACT_DEBUG_TRACING_MODE_TYPE:
-
- // eslint-disable-next-line no-fallthrough
-
- default:
- {
- if (typeof type === 'object' && type !== null) {
- switch (type.$$typeof) {
- case REACT_PROVIDER_TYPE:
- fiberTag = ContextProvider;
- break getTag;
-
- case REACT_CONTEXT_TYPE:
- // This is a consumer
- fiberTag = ContextConsumer;
- break getTag;
-
- case REACT_FORWARD_REF_TYPE:
- fiberTag = ForwardRef;
-
- {
- resolvedType = resolveForwardRefForHotReloading(resolvedType);
- }
-
- break getTag;
-
- case REACT_MEMO_TYPE:
- fiberTag = MemoComponent;
- break getTag;
-
- case REACT_LAZY_TYPE:
- fiberTag = LazyComponent;
- resolvedType = null;
- break getTag;
- }
- }
-
- var info = '';
-
- {
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
- info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and " + 'named imports.';
- }
-
- var ownerName = owner ? getComponentNameFromFiber(owner) : null;
-
- if (ownerName) {
- info += '\n\nCheck the render method of `' + ownerName + '`.';
- }
- }
-
- throw new Error('Element type is invalid: expected a string (for built-in ' + 'components) or a class/function (for composite components) ' + ("but got: " + (type == null ? type : typeof type) + "." + info));
- }
- }
- }
-
- var fiber = createFiber(fiberTag, pendingProps, key, mode);
- fiber.elementType = type;
- fiber.type = resolvedType;
- fiber.lanes = lanes;
-
- {
- fiber._debugOwner = owner;
- }
-
- return fiber;
- }
- function createFiberFromElement(element, mode, lanes) {
- var owner = null;
-
- {
- owner = element._owner;
- }
-
- var type = element.type;
- var key = element.key;
- var pendingProps = element.props;
- var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes);
-
- {
- fiber._debugSource = element._source;
- fiber._debugOwner = element._owner;
- }
-
- return fiber;
- }
- function createFiberFromFragment(elements, mode, lanes, key) {
- var fiber = createFiber(Fragment, elements, key, mode);
- fiber.lanes = lanes;
- return fiber;
- }
-
- function createFiberFromProfiler(pendingProps, mode, lanes, key) {
- {
- if (typeof pendingProps.id !== 'string') {
- error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.', typeof pendingProps.id);
- }
- }
-
- var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode);
- fiber.elementType = REACT_PROFILER_TYPE;
- fiber.lanes = lanes;
-
- {
- fiber.stateNode = {
- effectDuration: 0,
- passiveEffectDuration: 0
- };
- }
-
- return fiber;
- }
-
- function createFiberFromSuspense(pendingProps, mode, lanes, key) {
- var fiber = createFiber(SuspenseComponent, pendingProps, key, mode);
- fiber.elementType = REACT_SUSPENSE_TYPE;
- fiber.lanes = lanes;
- return fiber;
- }
- function createFiberFromSuspenseList(pendingProps, mode, lanes, key) {
- var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);
- fiber.elementType = REACT_SUSPENSE_LIST_TYPE;
- fiber.lanes = lanes;
- return fiber;
- }
- function createFiberFromOffscreen(pendingProps, mode, lanes, key) {
- var fiber = createFiber(OffscreenComponent, pendingProps, key, mode);
- fiber.elementType = REACT_OFFSCREEN_TYPE;
- fiber.lanes = lanes;
- var primaryChildInstance = {
- isHidden: false
- };
- fiber.stateNode = primaryChildInstance;
- return fiber;
- }
- function createFiberFromText(content, mode, lanes) {
- var fiber = createFiber(HostText, content, null, mode);
- fiber.lanes = lanes;
- return fiber;
- }
- function createFiberFromHostInstanceForDeletion() {
- var fiber = createFiber(HostComponent, null, null, NoMode);
- fiber.elementType = 'DELETED';
- return fiber;
- }
- function createFiberFromDehydratedFragment(dehydratedNode) {
- var fiber = createFiber(DehydratedFragment, null, null, NoMode);
- fiber.stateNode = dehydratedNode;
- return fiber;
- }
- function createFiberFromPortal(portal, mode, lanes) {
- var pendingProps = portal.children !== null ? portal.children : [];
- var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
- fiber.lanes = lanes;
- fiber.stateNode = {
- containerInfo: portal.containerInfo,
- pendingChildren: null,
- // Used by persistent updates
- implementation: portal.implementation
- };
- return fiber;
- } // Used for stashing WIP properties to replay failed work in DEV.
-
- function assignFiberPropertiesInDEV(target, source) {
- if (target === null) {
- // This Fiber's initial properties will always be overwritten.
- // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
- target = createFiber(IndeterminateComponent, null, null, NoMode);
- } // This is intentionally written as a list of all properties.
- // We tried to use Object.assign() instead but this is called in
- // the hottest path, and Object.assign() was too slow:
- // https://github.com/facebook/react/issues/12502
- // This code is DEV-only so size is not a concern.
-
-
- target.tag = source.tag;
- target.key = source.key;
- target.elementType = source.elementType;
- target.type = source.type;
- target.stateNode = source.stateNode;
- target.return = source.return;
- target.child = source.child;
- target.sibling = source.sibling;
- target.index = source.index;
- target.ref = source.ref;
- target.pendingProps = source.pendingProps;
- target.memoizedProps = source.memoizedProps;
- target.updateQueue = source.updateQueue;
- target.memoizedState = source.memoizedState;
- target.dependencies = source.dependencies;
- target.mode = source.mode;
- target.flags = source.flags;
- target.subtreeFlags = source.subtreeFlags;
- target.deletions = source.deletions;
- target.lanes = source.lanes;
- target.childLanes = source.childLanes;
- target.alternate = source.alternate;
-
- {
- target.actualDuration = source.actualDuration;
- target.actualStartTime = source.actualStartTime;
- target.selfBaseDuration = source.selfBaseDuration;
- target.treeBaseDuration = source.treeBaseDuration;
- }
-
- target._debugSource = source._debugSource;
- target._debugOwner = source._debugOwner;
- target._debugNeedsRemount = source._debugNeedsRemount;
- target._debugHookTypes = source._debugHookTypes;
- return target;
- }
-
- function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError) {
- this.tag = tag;
- this.containerInfo = containerInfo;
- this.pendingChildren = null;
- this.current = null;
- this.pingCache = null;
- this.finishedWork = null;
- this.timeoutHandle = noTimeout;
- this.context = null;
- this.pendingContext = null;
- this.callbackNode = null;
- this.callbackPriority = NoLane;
- this.eventTimes = createLaneMap(NoLanes);
- this.expirationTimes = createLaneMap(NoTimestamp);
- this.pendingLanes = NoLanes;
- this.suspendedLanes = NoLanes;
- this.pingedLanes = NoLanes;
- this.expiredLanes = NoLanes;
- this.mutableReadLanes = NoLanes;
- this.finishedLanes = NoLanes;
- this.entangledLanes = NoLanes;
- this.entanglements = createLaneMap(NoLanes);
- this.identifierPrefix = identifierPrefix;
- this.onRecoverableError = onRecoverableError;
-
- {
- this.mutableSourceEagerHydrationData = null;
- }
-
- {
- this.effectDuration = 0;
- this.passiveEffectDuration = 0;
- }
-
- {
- this.memoizedUpdaters = new Set();
- var pendingUpdatersLaneMap = this.pendingUpdatersLaneMap = [];
-
- for (var _i = 0; _i < TotalLanes; _i++) {
- pendingUpdatersLaneMap.push(new Set());
- }
- }
-
- {
- switch (tag) {
- case ConcurrentRoot:
- this._debugRootType = hydrate ? 'hydrateRoot()' : 'createRoot()';
- break;
-
- case LegacyRoot:
- this._debugRootType = hydrate ? 'hydrate()' : 'render()';
- break;
- }
- }
- }
-
- function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, // TODO: We have several of these arguments that are conceptually part of the
- // host config, but because they are passed in at runtime, we have to thread
- // them through the root constructor. Perhaps we should put them all into a
- // single type, like a DynamicHostConfig that is defined by the renderer.
- identifierPrefix, onRecoverableError, transitionCallbacks) {
- var root = new FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError);
- // stateNode is any.
-
-
- var uninitializedFiber = createHostRootFiber(tag, isStrictMode);
- root.current = uninitializedFiber;
- uninitializedFiber.stateNode = root;
-
- {
- var _initialState = {
- element: initialChildren,
- isDehydrated: hydrate,
- cache: null,
- // not enabled yet
- transitions: null,
- pendingSuspenseBoundaries: null
- };
- uninitializedFiber.memoizedState = _initialState;
- }
-
- initializeUpdateQueue(uninitializedFiber);
- return root;
- }
-
- var ReactVersion = '18.2.0';
-
- function createPortal(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
- implementation) {
- var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
-
- {
- checkKeyStringCoercion(key);
- }
-
- return {
- // This tag allow us to uniquely identify this as a React Portal
- $$typeof: REACT_PORTAL_TYPE,
- key: key == null ? null : '' + key,
- children: children,
- containerInfo: containerInfo,
- implementation: implementation
- };
- }
-
- var didWarnAboutNestedUpdates;
- var didWarnAboutFindNodeInStrictMode;
-
- {
- didWarnAboutNestedUpdates = false;
- didWarnAboutFindNodeInStrictMode = {};
- }
-
- function getContextForSubtree(parentComponent) {
- if (!parentComponent) {
- return emptyContextObject;
- }
-
- var fiber = get(parentComponent);
- var parentContext = findCurrentUnmaskedContext(fiber);
-
- if (fiber.tag === ClassComponent) {
- var Component = fiber.type;
-
- if (isContextProvider(Component)) {
- return processChildContext(fiber, Component, parentContext);
- }
- }
-
- return parentContext;
- }
-
- function findHostInstanceWithWarning(component, methodName) {
- {
- var fiber = get(component);
-
- if (fiber === undefined) {
- if (typeof component.render === 'function') {
- throw new Error('Unable to find node on an unmounted component.');
- } else {
- var keys = Object.keys(component).join(',');
- throw new Error("Argument appears to not be a ReactComponent. Keys: " + keys);
- }
- }
-
- var hostFiber = findCurrentHostFiber(fiber);
-
- if (hostFiber === null) {
- return null;
- }
-
- if (hostFiber.mode & StrictLegacyMode) {
- var componentName = getComponentNameFromFiber(fiber) || 'Component';
-
- if (!didWarnAboutFindNodeInStrictMode[componentName]) {
- didWarnAboutFindNodeInStrictMode[componentName] = true;
- var previousFiber = current;
-
- try {
- setCurrentFiber(hostFiber);
-
- if (fiber.mode & StrictLegacyMode) {
- error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which is inside StrictMode. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-find-node', methodName, methodName, componentName);
- } else {
- error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which renders StrictMode children. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-find-node', methodName, methodName, componentName);
- }
- } finally {
- // Ideally this should reset to previous but this shouldn't be called in
- // render and there's another warning for that anyway.
- if (previousFiber) {
- setCurrentFiber(previousFiber);
- } else {
- resetCurrentFiber();
- }
- }
- }
- }
-
- return hostFiber.stateNode;
- }
- }
-
- function createContainer(containerInfo, tag, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError, transitionCallbacks) {
- var hydrate = false;
- var initialChildren = null;
- return createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError);
- }
- function createHydrationContainer(initialChildren, // TODO: Remove `callback` when we delete legacy mode.
- callback, containerInfo, tag, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError, transitionCallbacks) {
- var hydrate = true;
- var root = createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError); // TODO: Move this to FiberRoot constructor
-
- root.context = getContextForSubtree(null); // Schedule the initial render. In a hydration root, this is different from
- // a regular update because the initial render must match was was rendered
- // on the server.
- // NOTE: This update intentionally doesn't have a payload. We're only using
- // the update to schedule work on the root fiber (and, for legacy roots, to
- // enqueue the callback if one is provided).
-
- var current = root.current;
- var eventTime = requestEventTime();
- var lane = requestUpdateLane(current);
- var update = createUpdate(eventTime, lane);
- update.callback = callback !== undefined && callback !== null ? callback : null;
- enqueueUpdate(current, update, lane);
- scheduleInitialHydrationOnRoot(root, lane, eventTime);
- return root;
- }
- function updateContainer(element, container, parentComponent, callback) {
- {
- onScheduleRoot(container, element);
- }
-
- var current$1 = container.current;
- var eventTime = requestEventTime();
- var lane = requestUpdateLane(current$1);
-
- {
- markRenderScheduled(lane);
- }
-
- var context = getContextForSubtree(parentComponent);
-
- if (container.context === null) {
- container.context = context;
- } else {
- container.pendingContext = context;
- }
-
- {
- if (isRendering && current !== null && !didWarnAboutNestedUpdates) {
- didWarnAboutNestedUpdates = true;
-
- error('Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentNameFromFiber(current) || 'Unknown');
- }
- }
-
- var update = createUpdate(eventTime, lane); // Caution: React DevTools currently depends on this property
- // being called "element".
-
- update.payload = {
- element: element
- };
- callback = callback === undefined ? null : callback;
-
- if (callback !== null) {
- {
- if (typeof callback !== 'function') {
- error('render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);
- }
- }
-
- update.callback = callback;
- }
-
- var root = enqueueUpdate(current$1, update, lane);
-
- if (root !== null) {
- scheduleUpdateOnFiber(root, current$1, lane, eventTime);
- entangleTransitions(root, current$1, lane);
- }
-
- return lane;
- }
- function getPublicRootInstance(container) {
- var containerFiber = container.current;
-
- if (!containerFiber.child) {
- return null;
- }
-
- switch (containerFiber.child.tag) {
- case HostComponent:
- return getPublicInstance(containerFiber.child.stateNode);
-
- default:
- return containerFiber.child.stateNode;
- }
- }
- function attemptSynchronousHydration$1(fiber) {
- switch (fiber.tag) {
- case HostRoot:
- {
- var root = fiber.stateNode;
-
- if (isRootDehydrated(root)) {
- // Flush the first scheduled "update".
- var lanes = getHighestPriorityPendingLanes(root);
- flushRoot(root, lanes);
- }
-
- break;
- }
-
- case SuspenseComponent:
- {
- flushSync(function () {
- var root = enqueueConcurrentRenderForLane(fiber, SyncLane);
-
- if (root !== null) {
- var eventTime = requestEventTime();
- scheduleUpdateOnFiber(root, fiber, SyncLane, eventTime);
- }
- }); // If we're still blocked after this, we need to increase
- // the priority of any promises resolving within this
- // boundary so that they next attempt also has higher pri.
-
- var retryLane = SyncLane;
- markRetryLaneIfNotHydrated(fiber, retryLane);
- break;
- }
- }
- }
-
- function markRetryLaneImpl(fiber, retryLane) {
- var suspenseState = fiber.memoizedState;
-
- if (suspenseState !== null && suspenseState.dehydrated !== null) {
- suspenseState.retryLane = higherPriorityLane(suspenseState.retryLane, retryLane);
- }
- } // Increases the priority of thenables when they resolve within this boundary.
-
-
- function markRetryLaneIfNotHydrated(fiber, retryLane) {
- markRetryLaneImpl(fiber, retryLane);
- var alternate = fiber.alternate;
-
- if (alternate) {
- markRetryLaneImpl(alternate, retryLane);
- }
- }
- function attemptContinuousHydration$1(fiber) {
- if (fiber.tag !== SuspenseComponent) {
- // We ignore HostRoots here because we can't increase
- // their priority and they should not suspend on I/O,
- // since you have to wrap anything that might suspend in
- // Suspense.
- return;
- }
-
- var lane = SelectiveHydrationLane;
- var root = enqueueConcurrentRenderForLane(fiber, lane);
-
- if (root !== null) {
- var eventTime = requestEventTime();
- scheduleUpdateOnFiber(root, fiber, lane, eventTime);
- }
-
- markRetryLaneIfNotHydrated(fiber, lane);
- }
- function attemptHydrationAtCurrentPriority$1(fiber) {
- if (fiber.tag !== SuspenseComponent) {
- // We ignore HostRoots here because we can't increase
- // their priority other than synchronously flush it.
- return;
- }
-
- var lane = requestUpdateLane(fiber);
- var root = enqueueConcurrentRenderForLane(fiber, lane);
-
- if (root !== null) {
- var eventTime = requestEventTime();
- scheduleUpdateOnFiber(root, fiber, lane, eventTime);
- }
-
- markRetryLaneIfNotHydrated(fiber, lane);
- }
- function findHostInstanceWithNoPortals(fiber) {
- var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
-
- if (hostFiber === null) {
- return null;
- }
-
- return hostFiber.stateNode;
- }
-
- var shouldErrorImpl = function (fiber) {
- return null;
- };
-
- function shouldError(fiber) {
- return shouldErrorImpl(fiber);
- }
-
- var shouldSuspendImpl = function (fiber) {
- return false;
- };
-
- function shouldSuspend(fiber) {
- return shouldSuspendImpl(fiber);
- }
- var overrideHookState = null;
- var overrideHookStateDeletePath = null;
- var overrideHookStateRenamePath = null;
- var overrideProps = null;
- var overridePropsDeletePath = null;
- var overridePropsRenamePath = null;
- var scheduleUpdate = null;
- var setErrorHandler = null;
- var setSuspenseHandler = null;
-
- {
- var copyWithDeleteImpl = function (obj, path, index) {
- var key = path[index];
- var updated = isArray(obj) ? obj.slice() : assign({}, obj);
-
- if (index + 1 === path.length) {
- if (isArray(updated)) {
- updated.splice(key, 1);
- } else {
- delete updated[key];
- }
-
- return updated;
- } // $FlowFixMe number or string is fine here
-
-
- updated[key] = copyWithDeleteImpl(obj[key], path, index + 1);
- return updated;
- };
-
- var copyWithDelete = function (obj, path) {
- return copyWithDeleteImpl(obj, path, 0);
- };
-
- var copyWithRenameImpl = function (obj, oldPath, newPath, index) {
- var oldKey = oldPath[index];
- var updated = isArray(obj) ? obj.slice() : assign({}, obj);
-
- if (index + 1 === oldPath.length) {
- var newKey = newPath[index]; // $FlowFixMe number or string is fine here
-
- updated[newKey] = updated[oldKey];
-
- if (isArray(updated)) {
- updated.splice(oldKey, 1);
- } else {
- delete updated[oldKey];
- }
- } else {
- // $FlowFixMe number or string is fine here
- updated[oldKey] = copyWithRenameImpl( // $FlowFixMe number or string is fine here
- obj[oldKey], oldPath, newPath, index + 1);
- }
-
- return updated;
- };
-
- var copyWithRename = function (obj, oldPath, newPath) {
- if (oldPath.length !== newPath.length) {
- warn('copyWithRename() expects paths of the same length');
-
- return;
- } else {
- for (var i = 0; i < newPath.length - 1; i++) {
- if (oldPath[i] !== newPath[i]) {
- warn('copyWithRename() expects paths to be the same except for the deepest key');
-
- return;
- }
- }
- }
-
- return copyWithRenameImpl(obj, oldPath, newPath, 0);
- };
-
- var copyWithSetImpl = function (obj, path, index, value) {
- if (index >= path.length) {
- return value;
- }
-
- var key = path[index];
- var updated = isArray(obj) ? obj.slice() : assign({}, obj); // $FlowFixMe number or string is fine here
-
- updated[key] = copyWithSetImpl(obj[key], path, index + 1, value);
- return updated;
- };
-
- var copyWithSet = function (obj, path, value) {
- return copyWithSetImpl(obj, path, 0, value);
- };
-
- var findHook = function (fiber, id) {
- // For now, the "id" of stateful hooks is just the stateful hook index.
- // This may change in the future with e.g. nested hooks.
- var currentHook = fiber.memoizedState;
-
- while (currentHook !== null && id > 0) {
- currentHook = currentHook.next;
- id--;
- }
-
- return currentHook;
- }; // Support DevTools editable values for useState and useReducer.
-
-
- overrideHookState = function (fiber, id, path, value) {
- var hook = findHook(fiber, id);
-
- if (hook !== null) {
- var newState = copyWithSet(hook.memoizedState, path, value);
- hook.memoizedState = newState;
- hook.baseState = newState; // We aren't actually adding an update to the queue,
- // because there is no update we can add for useReducer hooks that won't trigger an error.
- // (There's no appropriate action type for DevTools overrides.)
- // As a result though, React will see the scheduled update as a noop and bailout.
- // Shallow cloning props works as a workaround for now to bypass the bailout check.
-
- fiber.memoizedProps = assign({}, fiber.memoizedProps);
- var root = enqueueConcurrentRenderForLane(fiber, SyncLane);
-
- if (root !== null) {
- scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
- }
- }
- };
-
- overrideHookStateDeletePath = function (fiber, id, path) {
- var hook = findHook(fiber, id);
-
- if (hook !== null) {
- var newState = copyWithDelete(hook.memoizedState, path);
- hook.memoizedState = newState;
- hook.baseState = newState; // We aren't actually adding an update to the queue,
- // because there is no update we can add for useReducer hooks that won't trigger an error.
- // (There's no appropriate action type for DevTools overrides.)
- // As a result though, React will see the scheduled update as a noop and bailout.
- // Shallow cloning props works as a workaround for now to bypass the bailout check.
-
- fiber.memoizedProps = assign({}, fiber.memoizedProps);
- var root = enqueueConcurrentRenderForLane(fiber, SyncLane);
-
- if (root !== null) {
- scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
- }
- }
- };
-
- overrideHookStateRenamePath = function (fiber, id, oldPath, newPath) {
- var hook = findHook(fiber, id);
-
- if (hook !== null) {
- var newState = copyWithRename(hook.memoizedState, oldPath, newPath);
- hook.memoizedState = newState;
- hook.baseState = newState; // We aren't actually adding an update to the queue,
- // because there is no update we can add for useReducer hooks that won't trigger an error.
- // (There's no appropriate action type for DevTools overrides.)
- // As a result though, React will see the scheduled update as a noop and bailout.
- // Shallow cloning props works as a workaround for now to bypass the bailout check.
-
- fiber.memoizedProps = assign({}, fiber.memoizedProps);
- var root = enqueueConcurrentRenderForLane(fiber, SyncLane);
-
- if (root !== null) {
- scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
- }
- }
- }; // Support DevTools props for function components, forwardRef, memo, host components, etc.
-
-
- overrideProps = function (fiber, path, value) {
- fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value);
-
- if (fiber.alternate) {
- fiber.alternate.pendingProps = fiber.pendingProps;
- }
-
- var root = enqueueConcurrentRenderForLane(fiber, SyncLane);
-
- if (root !== null) {
- scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
- }
- };
-
- overridePropsDeletePath = function (fiber, path) {
- fiber.pendingProps = copyWithDelete(fiber.memoizedProps, path);
-
- if (fiber.alternate) {
- fiber.alternate.pendingProps = fiber.pendingProps;
- }
-
- var root = enqueueConcurrentRenderForLane(fiber, SyncLane);
-
- if (root !== null) {
- scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
- }
- };
-
- overridePropsRenamePath = function (fiber, oldPath, newPath) {
- fiber.pendingProps = copyWithRename(fiber.memoizedProps, oldPath, newPath);
-
- if (fiber.alternate) {
- fiber.alternate.pendingProps = fiber.pendingProps;
- }
-
- var root = enqueueConcurrentRenderForLane(fiber, SyncLane);
-
- if (root !== null) {
- scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
- }
- };
-
- scheduleUpdate = function (fiber) {
- var root = enqueueConcurrentRenderForLane(fiber, SyncLane);
-
- if (root !== null) {
- scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
- }
- };
-
- setErrorHandler = function (newShouldErrorImpl) {
- shouldErrorImpl = newShouldErrorImpl;
- };
-
- setSuspenseHandler = function (newShouldSuspendImpl) {
- shouldSuspendImpl = newShouldSuspendImpl;
- };
- }
-
- function findHostInstanceByFiber(fiber) {
- var hostFiber = findCurrentHostFiber(fiber);
-
- if (hostFiber === null) {
- return null;
- }
-
- return hostFiber.stateNode;
- }
-
- function emptyFindFiberByHostInstance(instance) {
- return null;
- }
-
- function getCurrentFiberForDevTools() {
- return current;
- }
-
- function injectIntoDevTools(devToolsConfig) {
- var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
- return injectInternals({
- bundleType: devToolsConfig.bundleType,
- version: devToolsConfig.version,
- rendererPackageName: devToolsConfig.rendererPackageName,
- rendererConfig: devToolsConfig.rendererConfig,
- overrideHookState: overrideHookState,
- overrideHookStateDeletePath: overrideHookStateDeletePath,
- overrideHookStateRenamePath: overrideHookStateRenamePath,
- overrideProps: overrideProps,
- overridePropsDeletePath: overridePropsDeletePath,
- overridePropsRenamePath: overridePropsRenamePath,
- setErrorHandler: setErrorHandler,
- setSuspenseHandler: setSuspenseHandler,
- scheduleUpdate: scheduleUpdate,
- currentDispatcherRef: ReactCurrentDispatcher,
- findHostInstanceByFiber: findHostInstanceByFiber,
- findFiberByHostInstance: findFiberByHostInstance || emptyFindFiberByHostInstance,
- // React Refresh
- findHostInstancesForRefresh: findHostInstancesForRefresh ,
- scheduleRefresh: scheduleRefresh ,
- scheduleRoot: scheduleRoot ,
- setRefreshHandler: setRefreshHandler ,
- // Enables DevTools to append owner stacks to error messages in DEV mode.
- getCurrentFiber: getCurrentFiberForDevTools ,
- // Enables DevTools to detect reconciler version rather than renderer version
- // which may not match for third party renderers.
- reconcilerVersion: ReactVersion
- });
- }
-
- /* global reportError */
-
- var defaultOnRecoverableError = typeof reportError === 'function' ? // In modern browsers, reportError will dispatch an error event,
- // emulating an uncaught JavaScript error.
- reportError : function (error) {
- // In older browsers and test environments, fallback to console.error.
- // eslint-disable-next-line react-internal/no-production-logging
- console['error'](error);
- };
-
- function ReactDOMRoot(internalRoot) {
- this._internalRoot = internalRoot;
- }
-
- ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = function (children) {
- var root = this._internalRoot;
-
- if (root === null) {
- throw new Error('Cannot update an unmounted root.');
- }
-
- {
- if (typeof arguments[1] === 'function') {
- error('render(...): does not support the second callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
- } else if (isValidContainer(arguments[1])) {
- error('You passed a container to the second argument of root.render(...). ' + "You don't need to pass it again since you already passed it to create the root.");
- } else if (typeof arguments[1] !== 'undefined') {
- error('You passed a second argument to root.render(...) but it only accepts ' + 'one argument.');
- }
-
- var container = root.containerInfo;
-
- if (container.nodeType !== COMMENT_NODE) {
- var hostInstance = findHostInstanceWithNoPortals(root.current);
-
- if (hostInstance) {
- if (hostInstance.parentNode !== container) {
- error('render(...): It looks like the React-rendered content of the ' + 'root container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + "root.unmount() to empty a root's container.");
- }
- }
- }
- }
-
- updateContainer(children, root, null, null);
- };
-
- ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = function () {
- {
- if (typeof arguments[0] === 'function') {
- error('unmount(...): does not support a callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
- }
- }
-
- var root = this._internalRoot;
-
- if (root !== null) {
- this._internalRoot = null;
- var container = root.containerInfo;
-
- {
- if (isAlreadyRendering()) {
- error('Attempted to synchronously unmount a root while React was already ' + 'rendering. React cannot finish unmounting the root until the ' + 'current render has completed, which may lead to a race condition.');
- }
- }
-
- flushSync(function () {
- updateContainer(null, root, null, null);
- });
- unmarkContainerAsRoot(container);
- }
- };
-
- function createRoot(container, options) {
- if (!isValidContainer(container)) {
- throw new Error('createRoot(...): Target container is not a DOM element.');
- }
-
- warnIfReactDOMContainerInDEV(container);
- var isStrictMode = false;
- var concurrentUpdatesByDefaultOverride = false;
- var identifierPrefix = '';
- var onRecoverableError = defaultOnRecoverableError;
- var transitionCallbacks = null;
-
- if (options !== null && options !== undefined) {
- {
- if (options.hydrate) {
- warn('hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.');
- } else {
- if (typeof options === 'object' && options !== null && options.$$typeof === REACT_ELEMENT_TYPE) {
- error('You passed a JSX element to createRoot. You probably meant to ' + 'call root.render instead. ' + 'Example usage:\n\n' + ' let root = createRoot(domContainer);\n' + ' root.render(<App />);');
- }
- }
- }
-
- if (options.unstable_strictMode === true) {
- isStrictMode = true;
- }
-
- if (options.identifierPrefix !== undefined) {
- identifierPrefix = options.identifierPrefix;
- }
-
- if (options.onRecoverableError !== undefined) {
- onRecoverableError = options.onRecoverableError;
- }
-
- if (options.transitionCallbacks !== undefined) {
- transitionCallbacks = options.transitionCallbacks;
- }
- }
-
- var root = createContainer(container, ConcurrentRoot, null, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError);
- markContainerAsRoot(root.current, container);
- var rootContainerElement = container.nodeType === COMMENT_NODE ? container.parentNode : container;
- listenToAllSupportedEvents(rootContainerElement);
- return new ReactDOMRoot(root);
- }
-
- function ReactDOMHydrationRoot(internalRoot) {
- this._internalRoot = internalRoot;
- }
-
- function scheduleHydration(target) {
- if (target) {
- queueExplicitHydrationTarget(target);
- }
- }
-
- ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = scheduleHydration;
- function hydrateRoot(container, initialChildren, options) {
- if (!isValidContainer(container)) {
- throw new Error('hydrateRoot(...): Target container is not a DOM element.');
- }
-
- warnIfReactDOMContainerInDEV(container);
-
- {
- if (initialChildren === undefined) {
- error('Must provide initial children as second argument to hydrateRoot. ' + 'Example usage: hydrateRoot(domContainer, <App />)');
- }
- } // For now we reuse the whole bag of options since they contain
- // the hydration callbacks.
-
-
- var hydrationCallbacks = options != null ? options : null; // TODO: Delete this option
-
- var mutableSources = options != null && options.hydratedSources || null;
- var isStrictMode = false;
- var concurrentUpdatesByDefaultOverride = false;
- var identifierPrefix = '';
- var onRecoverableError = defaultOnRecoverableError;
-
- if (options !== null && options !== undefined) {
- if (options.unstable_strictMode === true) {
- isStrictMode = true;
- }
-
- if (options.identifierPrefix !== undefined) {
- identifierPrefix = options.identifierPrefix;
- }
-
- if (options.onRecoverableError !== undefined) {
- onRecoverableError = options.onRecoverableError;
- }
- }
-
- var root = createHydrationContainer(initialChildren, null, container, ConcurrentRoot, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError);
- markContainerAsRoot(root.current, container); // This can't be a comment node since hydration doesn't work on comment nodes anyway.
-
- listenToAllSupportedEvents(container);
-
- if (mutableSources) {
- for (var i = 0; i < mutableSources.length; i++) {
- var mutableSource = mutableSources[i];
- registerMutableSourceForHydration(root, mutableSource);
- }
- }
-
- return new ReactDOMHydrationRoot(root);
- }
- function isValidContainer(node) {
- return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || !disableCommentsAsDOMContainers ));
- } // TODO: Remove this function which also includes comment nodes.
- // We only use it in places that are currently more relaxed.
-
- function isValidContainerLegacy(node) {
- return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === ' react-mount-point-unstable '));
- }
-
- function warnIfReactDOMContainerInDEV(container) {
- {
- if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === 'BODY') {
- error('createRoot(): Creating roots directly with document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try using a container element created ' + 'for your app.');
- }
-
- if (isContainerMarkedAsRoot(container)) {
- if (container._reactRootContainer) {
- error('You are calling ReactDOMClient.createRoot() on a container that was previously ' + 'passed to ReactDOM.render(). This is not supported.');
- } else {
- error('You are calling ReactDOMClient.createRoot() on a container that ' + 'has already been passed to createRoot() before. Instead, call ' + 'root.render() on the existing root instead if you want to update it.');
- }
- }
- }
- }
-
- var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
- var topLevelUpdateWarnings;
-
- {
- topLevelUpdateWarnings = function (container) {
- if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
- var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer.current);
-
- if (hostInstance) {
- if (hostInstance.parentNode !== container) {
- error('render(...): It looks like the React-rendered content of this ' + 'container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + 'ReactDOM.unmountComponentAtNode to empty a container.');
- }
- }
- }
-
- var isRootRenderedBySomeReact = !!container._reactRootContainer;
- var rootEl = getReactRootElementInContainer(container);
- var hasNonRootReactChild = !!(rootEl && getInstanceFromNode(rootEl));
-
- if (hasNonRootReactChild && !isRootRenderedBySomeReact) {
- error('render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.');
- }
-
- if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === 'BODY') {
- error('render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.');
- }
- };
- }
-
- function getReactRootElementInContainer(container) {
- if (!container) {
- return null;
- }
-
- if (container.nodeType === DOCUMENT_NODE) {
- return container.documentElement;
- } else {
- return container.firstChild;
- }
- }
-
- function noopOnRecoverableError() {// This isn't reachable because onRecoverableError isn't called in the
- // legacy API.
- }
-
- function legacyCreateRootFromDOMContainer(container, initialChildren, parentComponent, callback, isHydrationContainer) {
- if (isHydrationContainer) {
- if (typeof callback === 'function') {
- var originalCallback = callback;
-
- callback = function () {
- var instance = getPublicRootInstance(root);
- originalCallback.call(instance);
- };
- }
-
- var root = createHydrationContainer(initialChildren, callback, container, LegacyRoot, null, // hydrationCallbacks
- false, // isStrictMode
- false, // concurrentUpdatesByDefaultOverride,
- '', // identifierPrefix
- noopOnRecoverableError);
- container._reactRootContainer = root;
- markContainerAsRoot(root.current, container);
- var rootContainerElement = container.nodeType === COMMENT_NODE ? container.parentNode : container;
- listenToAllSupportedEvents(rootContainerElement);
- flushSync();
- return root;
- } else {
- // First clear any existing content.
- var rootSibling;
-
- while (rootSibling = container.lastChild) {
- container.removeChild(rootSibling);
- }
-
- if (typeof callback === 'function') {
- var _originalCallback = callback;
-
- callback = function () {
- var instance = getPublicRootInstance(_root);
-
- _originalCallback.call(instance);
- };
- }
-
- var _root = createContainer(container, LegacyRoot, null, // hydrationCallbacks
- false, // isStrictMode
- false, // concurrentUpdatesByDefaultOverride,
- '', // identifierPrefix
- noopOnRecoverableError);
-
- container._reactRootContainer = _root;
- markContainerAsRoot(_root.current, container);
-
- var _rootContainerElement = container.nodeType === COMMENT_NODE ? container.parentNode : container;
-
- listenToAllSupportedEvents(_rootContainerElement); // Initial mount should not be batched.
-
- flushSync(function () {
- updateContainer(initialChildren, _root, parentComponent, callback);
- });
- return _root;
- }
- }
-
- function warnOnInvalidCallback$1(callback, callerName) {
- {
- if (callback !== null && typeof callback !== 'function') {
- error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
- }
- }
- }
-
- function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
- {
- topLevelUpdateWarnings(container);
- warnOnInvalidCallback$1(callback === undefined ? null : callback, 'render');
- }
-
- var maybeRoot = container._reactRootContainer;
- var root;
-
- if (!maybeRoot) {
- // Initial mount
- root = legacyCreateRootFromDOMContainer(container, children, parentComponent, callback, forceHydrate);
- } else {
- root = maybeRoot;
-
- if (typeof callback === 'function') {
- var originalCallback = callback;
-
- callback = function () {
- var instance = getPublicRootInstance(root);
- originalCallback.call(instance);
- };
- } // Update
-
-
- updateContainer(children, root, parentComponent, callback);
- }
-
- return getPublicRootInstance(root);
- }
-
- function findDOMNode(componentOrElement) {
- {
- var owner = ReactCurrentOwner$3.current;
-
- if (owner !== null && owner.stateNode !== null) {
- var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
-
- if (!warnedAboutRefsInRender) {
- error('%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentNameFromType(owner.type) || 'A component');
- }
-
- owner.stateNode._warnedAboutRefsInRender = true;
- }
- }
-
- if (componentOrElement == null) {
- return null;
- }
-
- if (componentOrElement.nodeType === ELEMENT_NODE) {
- return componentOrElement;
- }
-
- {
- return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
- }
- }
- function hydrate(element, container, callback) {
- {
- error('ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot ' + 'instead. Until you switch to the new API, your app will behave as ' + "if it's running React 17. Learn " + 'more: https://reactjs.org/link/switch-to-createroot');
- }
-
- if (!isValidContainerLegacy(container)) {
- throw new Error('Target container is not a DOM element.');
- }
-
- {
- var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;
-
- if (isModernRoot) {
- error('You are calling ReactDOM.hydrate() on a container that was previously ' + 'passed to ReactDOMClient.createRoot(). This is not supported. ' + 'Did you mean to call hydrateRoot(container, element)?');
- }
- } // TODO: throw or warn if we couldn't hydrate?
-
-
- return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
- }
- function render(element, container, callback) {
- {
- error('ReactDOM.render is no longer supported in React 18. Use createRoot ' + 'instead. Until you switch to the new API, your app will behave as ' + "if it's running React 17. Learn " + 'more: https://reactjs.org/link/switch-to-createroot');
- }
-
- if (!isValidContainerLegacy(container)) {
- throw new Error('Target container is not a DOM element.');
- }
-
- {
- var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;
-
- if (isModernRoot) {
- error('You are calling ReactDOM.render() on a container that was previously ' + 'passed to ReactDOMClient.createRoot(). This is not supported. ' + 'Did you mean to call root.render(element)?');
- }
- }
-
- return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
- }
- function unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
- {
- error('ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported ' + 'in React 18. Consider using a portal instead. Until you switch to ' + "the createRoot API, your app will behave as if it's running React " + '17. Learn more: https://reactjs.org/link/switch-to-createroot');
- }
-
- if (!isValidContainerLegacy(containerNode)) {
- throw new Error('Target container is not a DOM element.');
- }
-
- if (parentComponent == null || !has(parentComponent)) {
- throw new Error('parentComponent must be a valid React Component');
- }
-
- return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
- }
- function unmountComponentAtNode(container) {
- if (!isValidContainerLegacy(container)) {
- throw new Error('unmountComponentAtNode(...): Target container is not a DOM element.');
- }
-
- {
- var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;
-
- if (isModernRoot) {
- error('You are calling ReactDOM.unmountComponentAtNode() on a container that was previously ' + 'passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?');
- }
- }
-
- if (container._reactRootContainer) {
- {
- var rootEl = getReactRootElementInContainer(container);
- var renderedByDifferentReact = rootEl && !getInstanceFromNode(rootEl);
-
- if (renderedByDifferentReact) {
- error("unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.');
- }
- } // Unmount should not be batched.
-
-
- flushSync(function () {
- legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
- // $FlowFixMe This should probably use `delete container._reactRootContainer`
- container._reactRootContainer = null;
- unmarkContainerAsRoot(container);
- });
- }); // If you call unmountComponentAtNode twice in quick succession, you'll
- // get `true` twice. That's probably fine?
-
- return true;
- } else {
- {
- var _rootEl = getReactRootElementInContainer(container);
-
- var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode(_rootEl)); // Check if the container itself is a React root node.
-
- var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainerLegacy(container.parentNode) && !!container.parentNode._reactRootContainer;
-
- if (hasNonRootReactChild) {
- error("unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.');
- }
- }
-
- return false;
- }
- }
-
- setAttemptSynchronousHydration(attemptSynchronousHydration$1);
- setAttemptContinuousHydration(attemptContinuousHydration$1);
- setAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority$1);
- setGetCurrentUpdatePriority(getCurrentUpdatePriority);
- setAttemptHydrationAtPriority(runWithPriority);
-
- {
- if (typeof Map !== 'function' || // $FlowIssue Flow incorrectly thinks Map has no prototype
- Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' || // $FlowIssue Flow incorrectly thinks Set has no prototype
- Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
- error('React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://reactjs.org/link/react-polyfills');
- }
- }
-
- setRestoreImplementation(restoreControlledState$3);
- setBatchingImplementation(batchedUpdates$1, discreteUpdates, flushSync);
-
- function createPortal$1(children, container) {
- var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
-
- if (!isValidContainer(container)) {
- throw new Error('Target container is not a DOM element.');
- } // TODO: pass ReactDOM portal implementation as third argument
- // $FlowFixMe The Flow type is opaque but there's no way to actually create it.
-
-
- return createPortal(children, container, null, key);
- }
-
- function renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
- return unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback);
- }
-
- var Internals = {
- usingClientEntryPoint: false,
- // Keep in sync with ReactTestUtils.js.
- // This is an array for better minification.
- Events: [getInstanceFromNode, getNodeFromInstance, getFiberCurrentPropsFromNode, enqueueStateRestore, restoreStateIfNeeded, batchedUpdates$1]
- };
-
- function createRoot$1(container, options) {
- {
- if (!Internals.usingClientEntryPoint && !true) {
- error('You are importing createRoot from "react-dom" which is not supported. ' + 'You should instead import it from "react-dom/client".');
- }
- }
-
- return createRoot(container, options);
- }
-
- function hydrateRoot$1(container, initialChildren, options) {
- {
- if (!Internals.usingClientEntryPoint && !true) {
- error('You are importing hydrateRoot from "react-dom" which is not supported. ' + 'You should instead import it from "react-dom/client".');
- }
- }
-
- return hydrateRoot(container, initialChildren, options);
- } // Overload the definition to the two valid signatures.
- // Warning, this opts-out of checking the function body.
-
-
- // eslint-disable-next-line no-redeclare
- function flushSync$1(fn) {
- {
- if (isAlreadyRendering()) {
- error('flushSync was called from inside a lifecycle method. React cannot ' + 'flush when React is already rendering. Consider moving this call to ' + 'a scheduler task or micro task.');
- }
- }
-
- return flushSync(fn);
- }
- var foundDevTools = injectIntoDevTools({
- findFiberByHostInstance: getClosestInstanceFromNode,
- bundleType: 1 ,
- version: ReactVersion,
- rendererPackageName: 'react-dom'
- });
-
- {
- if (!foundDevTools && canUseDOM && window.top === window.self) {
- // If we're in Chrome or Firefox, provide a download link if not installed.
- if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
- var protocol = window.location.protocol; // Don't warn in exotic cases like chrome-extension://.
-
- if (/^(https?|file):$/.test(protocol)) {
- // eslint-disable-next-line react-internal/no-production-logging
- console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://reactjs.org/link/react-devtools' + (protocol === 'file:' ? '\nYou might need to use a local HTTP server (instead of file://): ' + 'https://reactjs.org/link/react-devtools-faq' : ''), 'font-weight:bold');
- }
- }
- }
- }
-
- exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
- exports.createPortal = createPortal$1;
- exports.createRoot = createRoot$1;
- exports.findDOMNode = findDOMNode;
- exports.flushSync = flushSync$1;
- exports.hydrate = hydrate;
- exports.hydrateRoot = hydrateRoot$1;
- exports.render = render;
- exports.unmountComponentAtNode = unmountComponentAtNode;
- exports.unstable_batchedUpdates = batchedUpdates$1;
- exports.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer;
- exports.version = ReactVersion;
-
-})));
+/******/ (() => { // webpackBootstrap
+/******/ "use strict";
+/******/ var __webpack_modules__ = ({
+
+/***/ "./node_modules/react-dom/cjs/react-dom.development.js":
+/*!*************************************************************!*\
+ !*** ./node_modules/react-dom/cjs/react-dom.development.js ***!
+ \*************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+eval("/**\n * @license React\n * react-dom.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\nif (true) {\n (function() {\n\n 'use strict';\n\n/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===\n 'function'\n) {\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());\n}\n var React = __webpack_require__(/*! react */ \"react\");\nvar Scheduler = __webpack_require__(/*! scheduler */ \"./node_modules/scheduler/index.js\");\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nvar suppressWarning = false;\nfunction setSuppressWarning(newSuppressWarning) {\n {\n suppressWarning = newSuppressWarning;\n }\n} // In DEV, calls to console.warn and console.error get replaced\n// by calls to these methods by a Babel plugin.\n//\n// In PROD (or in packages without access to React internals),\n// they are left as they are instead.\n\nfunction warn(format) {\n {\n if (!suppressWarning) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n printWarning('warn', format, args);\n }\n }\n}\nfunction error(format) {\n {\n if (!suppressWarning) {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\nvar FunctionComponent = 0;\nvar ClassComponent = 1;\nvar IndeterminateComponent = 2; // Before we know whether it is function or class\n\nvar HostRoot = 3; // Root of a host tree. Could be nested inside another node.\n\nvar HostPortal = 4; // A subtree. Could be an entry point to a different renderer.\n\nvar HostComponent = 5;\nvar HostText = 6;\nvar Fragment = 7;\nvar Mode = 8;\nvar ContextConsumer = 9;\nvar ContextProvider = 10;\nvar ForwardRef = 11;\nvar Profiler = 12;\nvar SuspenseComponent = 13;\nvar MemoComponent = 14;\nvar SimpleMemoComponent = 15;\nvar LazyComponent = 16;\nvar IncompleteClassComponent = 17;\nvar DehydratedFragment = 18;\nvar SuspenseListComponent = 19;\nvar ScopeComponent = 21;\nvar OffscreenComponent = 22;\nvar LegacyHiddenComponent = 23;\nvar CacheComponent = 24;\nvar TracingMarkerComponent = 25;\n\n// -----------------------------------------------------------------------------\n\nvar enableClientRenderFallbackOnTextMismatch = true; // TODO: Need to review this code one more time before landing\n// the react-reconciler package.\n\nvar enableNewReconciler = false; // Support legacy Primer support on internal FB www\n\nvar enableLazyContextPropagation = false; // FB-only usage. The new API has different semantics.\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n\nvar enableSuspenseAvoidThisFallback = false; // Enables unstable_avoidThisFallback feature in Fizz\n// React DOM Chopping Block\n//\n// Similar to main Chopping Block but only flags related to React DOM. These are\n// grouped because we will likely batch all of them into a single major release.\n// -----------------------------------------------------------------------------\n// Disable support for comment nodes as React DOM containers. Already disabled\n// in open source, but www codebase still relies on it. Need to remove.\n\nvar disableCommentsAsDOMContainers = true; // Disable javascript: URL strings in href for XSS protection.\n// and client rendering, mostly to allow JSX attributes to apply to the custom\n// element's object properties instead of only HTML attributes.\n// https://github.com/facebook/react/issues/11347\n\nvar enableCustomElementPropertySupport = false; // Disables children for <textarea> elements\nvar warnAboutStringRefs = true; // -----------------------------------------------------------------------------\n// Debugging and DevTools\n// -----------------------------------------------------------------------------\n// Adds user timing marks for e.g. state updates, suspense, and work loop stuff,\n// for an experimental timeline tool.\n\nvar enableSchedulingProfiler = true; // Helps identify side effects in render-phase lifecycle hooks and setState\n\nvar enableProfilerTimer = true; // Record durations for commit and passive effects phases.\n\nvar enableProfilerCommitHooks = true; // Phase param passed to onRender callback differentiates between an \"update\" and a \"cascading-update\".\n\nvar allNativeEvents = new Set();\n/**\n * Mapping from registration name to event name\n */\n\n\nvar registrationNameDependencies = {};\n/**\n * Mapping from lowercase registration names to the properly cased version,\n * used to warn in the case of missing event handlers. Available\n * only in true.\n * @type {Object}\n */\n\nvar possibleRegistrationNames = {} ; // Trust the developer to only use possibleRegistrationNames in true\n\nfunction registerTwoPhaseEvent(registrationName, dependencies) {\n registerDirectEvent(registrationName, dependencies);\n registerDirectEvent(registrationName + 'Capture', dependencies);\n}\nfunction registerDirectEvent(registrationName, dependencies) {\n {\n if (registrationNameDependencies[registrationName]) {\n error('EventRegistry: More than one plugin attempted to publish the same ' + 'registration name, `%s`.', registrationName);\n }\n }\n\n registrationNameDependencies[registrationName] = dependencies;\n\n {\n var lowerCasedName = registrationName.toLowerCase();\n possibleRegistrationNames[lowerCasedName] = registrationName;\n\n if (registrationName === 'onDoubleClick') {\n possibleRegistrationNames.ondblclick = registrationName;\n }\n }\n\n for (var i = 0; i < dependencies.length; i++) {\n allNativeEvents.add(dependencies[i]);\n }\n}\n\nvar canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\n\nfunction checkAttributeStringCoercion(value, attributeName) {\n {\n if (willCoercionThrow(value)) {\n error('The provided `%s` attribute is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', attributeName, typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\nfunction checkPropStringCoercion(value, propName) {\n {\n if (willCoercionThrow(value)) {\n error('The provided `%s` prop is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', propName, typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\nfunction checkCSSPropertyStringCoercion(value, propName) {\n {\n if (willCoercionThrow(value)) {\n error('The provided `%s` CSS property is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', propName, typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\nfunction checkHtmlStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided HTML markup uses a value of unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\nfunction checkFormFieldValueStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('Form field values (value, checked, defaultValue, or defaultChecked props)' + ' must be strings, not %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\n// A reserved attribute.\n// It is handled by React separately and shouldn't be written to the DOM.\nvar RESERVED = 0; // A simple string attribute.\n// Attributes that aren't in the filter are presumed to have this type.\n\nvar STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called\n// \"enumerated\" attributes with \"true\" and \"false\" as possible values.\n// When true, it should be set to a \"true\" string.\n// When false, it should be set to a \"false\" string.\n\nvar BOOLEANISH_STRING = 2; // A real boolean attribute.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\n\nvar BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\n// For any other value, should be present with that value.\n\nvar OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric.\n// When falsy, it should be removed.\n\nvar NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.\n// When falsy, it should be removed.\n\nvar POSITIVE_NUMERIC = 6;\n\n/* eslint-disable max-len */\nvar ATTRIBUTE_NAME_START_CHAR = \":A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\";\n/* eslint-enable max-len */\n\nvar ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + \"\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040\";\nvar VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');\nvar illegalAttributeNameCache = {};\nvar validatedAttributeNameCache = {};\nfunction isAttributeNameSafe(attributeName) {\n if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {\n return true;\n }\n\n if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {\n return false;\n }\n\n if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {\n validatedAttributeNameCache[attributeName] = true;\n return true;\n }\n\n illegalAttributeNameCache[attributeName] = true;\n\n {\n error('Invalid attribute name: `%s`', attributeName);\n }\n\n return false;\n}\nfunction shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {\n if (propertyInfo !== null) {\n return propertyInfo.type === RESERVED;\n }\n\n if (isCustomComponentTag) {\n return false;\n }\n\n if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {\n return true;\n }\n\n return false;\n}\nfunction shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {\n if (propertyInfo !== null && propertyInfo.type === RESERVED) {\n return false;\n }\n\n switch (typeof value) {\n case 'function': // $FlowIssue symbol is perfectly valid here\n\n case 'symbol':\n // eslint-disable-line\n return true;\n\n case 'boolean':\n {\n if (isCustomComponentTag) {\n return false;\n }\n\n if (propertyInfo !== null) {\n return !propertyInfo.acceptsBooleans;\n } else {\n var prefix = name.toLowerCase().slice(0, 5);\n return prefix !== 'data-' && prefix !== 'aria-';\n }\n }\n\n default:\n return false;\n }\n}\nfunction shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {\n if (value === null || typeof value === 'undefined') {\n return true;\n }\n\n if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {\n return true;\n }\n\n if (isCustomComponentTag) {\n\n return false;\n }\n\n if (propertyInfo !== null) {\n\n switch (propertyInfo.type) {\n case BOOLEAN:\n return !value;\n\n case OVERLOADED_BOOLEAN:\n return value === false;\n\n case NUMERIC:\n return isNaN(value);\n\n case POSITIVE_NUMERIC:\n return isNaN(value) || value < 1;\n }\n }\n\n return false;\n}\nfunction getPropertyInfo(name) {\n return properties.hasOwnProperty(name) ? properties[name] : null;\n}\n\nfunction PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {\n this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;\n this.attributeName = attributeName;\n this.attributeNamespace = attributeNamespace;\n this.mustUseProperty = mustUseProperty;\n this.propertyName = name;\n this.type = type;\n this.sanitizeURL = sanitizeURL;\n this.removeEmptyString = removeEmptyString;\n} // When adding attributes to this list, be sure to also add them to\n// the `possibleStandardNames` module to ensure casing and incorrect\n// name warnings.\n\n\nvar properties = {}; // These props are reserved by React. They shouldn't be written to the DOM.\n\nvar reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular\n// elements (not just inputs). Now that ReactDOMInput assigns to the\n// defaultValue property -- do we need this?\n'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];\n\nreservedProps.forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // A few React string attributes have a different name.\n// This is a mapping from React prop names to the attribute names.\n\n[['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {\n var name = _ref[0],\n attributeName = _ref[1];\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // These are \"enumerated\" HTML attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n\n['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n name.toLowerCase(), // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // These are \"enumerated\" SVG attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n// Since these are SVG attributes, their attribute names are case-sensitive.\n\n['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // These are HTML boolean attributes.\n\n['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM\n// on the client side because the browsers are inconsistent. Instead we call focus().\n'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata\n'itemScope'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty\n name.toLowerCase(), // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // These are the few React props that we set as DOM properties\n// rather than attributes. These are all booleans.\n\n['checked', // Note: `option.selected` is not updated if `select.multiple` is\n// disabled with `removeAttribute`. We have special logic for handling this.\n'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // These are HTML attributes that are \"overloaded booleans\": they behave like\n// booleans, but can also accept a string value.\n\n['capture', 'download' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // These are HTML attributes that must be positive numbers.\n\n['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // These are HTML attributes that must be numbers.\n\n['rowSpan', 'start'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty\n name.toLowerCase(), // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n});\nvar CAMELIZE = /[\\-\\:]([a-z])/g;\n\nvar capitalize = function (token) {\n return token[1].toUpperCase();\n}; // This is a list of all SVG attributes that need special casing, namespacing,\n// or boolean value assignment. Regular attributes that just accept strings\n// and have the same names are omitted, just like in the HTML attribute filter.\n// Some of these attributes can be hard to find. This list was created by\n// scraping the MDN documentation.\n\n\n['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName) {\n var name = attributeName.replace(CAMELIZE, capitalize);\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // String SVG attributes with the xlink namespace.\n\n['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName) {\n var name = attributeName.replace(CAMELIZE, capitalize);\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, 'http://www.w3.org/1999/xlink', false, // sanitizeURL\n false);\n}); // String SVG attributes with the xml namespace.\n\n['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName) {\n var name = attributeName.replace(CAMELIZE, capitalize);\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, 'http://www.w3.org/XML/1998/namespace', false, // sanitizeURL\n false);\n}); // These attribute exists both in HTML and SVG.\n// The attribute name is case-sensitive in SVG so we can't just use\n// the React name like we do for attributes that exist only in HTML.\n\n['tabIndex', 'crossOrigin'].forEach(function (attributeName) {\n properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty\n attributeName.toLowerCase(), // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false);\n}); // These attributes accept URLs. These must not allow javascript: URLS.\n// These will also need to accept Trusted Types object in the future.\n\nvar xlinkHref = 'xlinkHref';\nproperties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty\n'xlink:href', 'http://www.w3.org/1999/xlink', true, // sanitizeURL\nfalse);\n['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {\n properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty\n attributeName.toLowerCase(), // attributeName\n null, // attributeNamespace\n true, // sanitizeURL\n true);\n});\n\n// and any newline or tab are filtered out as if they're not part of the URL.\n// https://url.spec.whatwg.org/#url-parsing\n// Tab or newline are defined as \\r\\n\\t:\n// https://infra.spec.whatwg.org/#ascii-tab-or-newline\n// A C0 control is a code point in the range \\u0000 NULL to \\u001F\n// INFORMATION SEPARATOR ONE, inclusive:\n// https://infra.spec.whatwg.org/#c0-control-or-space\n\n/* eslint-disable max-len */\n\nvar isJavaScriptProtocol = /^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*\\:/i;\nvar didWarn = false;\n\nfunction sanitizeURL(url) {\n {\n if (!didWarn && isJavaScriptProtocol.test(url)) {\n didWarn = true;\n\n error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));\n }\n }\n}\n\n/**\n * Get the value for a property on a node. Only used in DEV for SSR validation.\n * The \"expected\" argument is used as a hint of what the expected value is.\n * Some properties have multiple equivalent values.\n */\nfunction getValueForProperty(node, name, expected, propertyInfo) {\n {\n if (propertyInfo.mustUseProperty) {\n var propertyName = propertyInfo.propertyName;\n return node[propertyName];\n } else {\n // This check protects multiple uses of `expected`, which is why the\n // react-internal/safe-string-coercion rule is disabled in several spots\n // below.\n {\n checkAttributeStringCoercion(expected, name);\n }\n\n if ( propertyInfo.sanitizeURL) {\n // If we haven't fully disabled javascript: URLs, and if\n // the hydration is successful of a javascript: URL, we\n // still want to warn on the client.\n // eslint-disable-next-line react-internal/safe-string-coercion\n sanitizeURL('' + expected);\n }\n\n var attributeName = propertyInfo.attributeName;\n var stringValue = null;\n\n if (propertyInfo.type === OVERLOADED_BOOLEAN) {\n if (node.hasAttribute(attributeName)) {\n var value = node.getAttribute(attributeName);\n\n if (value === '') {\n return true;\n }\n\n if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {\n return value;\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n if (value === '' + expected) {\n return expected;\n }\n\n return value;\n }\n } else if (node.hasAttribute(attributeName)) {\n if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {\n // We had an attribute but shouldn't have had one, so read it\n // for the error message.\n return node.getAttribute(attributeName);\n }\n\n if (propertyInfo.type === BOOLEAN) {\n // If this was a boolean, it doesn't matter what the value is\n // the fact that we have it is the same as the expected.\n return expected;\n } // Even if this property uses a namespace we use getAttribute\n // because we assume its namespaced name is the same as our config.\n // To use getAttributeNS we need the local name which we don't have\n // in our config atm.\n\n\n stringValue = node.getAttribute(attributeName);\n }\n\n if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {\n return stringValue === null ? expected : stringValue; // eslint-disable-next-line react-internal/safe-string-coercion\n } else if (stringValue === '' + expected) {\n return expected;\n } else {\n return stringValue;\n }\n }\n }\n}\n/**\n * Get the value for a attribute on a node. Only used in DEV for SSR validation.\n * The third argument is used as a hint of what the expected value is. Some\n * attributes have multiple equivalent values.\n */\n\nfunction getValueForAttribute(node, name, expected, isCustomComponentTag) {\n {\n if (!isAttributeNameSafe(name)) {\n return;\n }\n\n if (!node.hasAttribute(name)) {\n return expected === undefined ? undefined : null;\n }\n\n var value = node.getAttribute(name);\n\n {\n checkAttributeStringCoercion(expected, name);\n }\n\n if (value === '' + expected) {\n return expected;\n }\n\n return value;\n }\n}\n/**\n * Sets the value for a property on a node.\n *\n * @param {DOMElement} node\n * @param {string} name\n * @param {*} value\n */\n\nfunction setValueForProperty(node, name, value, isCustomComponentTag) {\n var propertyInfo = getPropertyInfo(name);\n\n if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {\n return;\n }\n\n if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {\n value = null;\n }\n\n\n if (isCustomComponentTag || propertyInfo === null) {\n if (isAttributeNameSafe(name)) {\n var _attributeName = name;\n\n if (value === null) {\n node.removeAttribute(_attributeName);\n } else {\n {\n checkAttributeStringCoercion(value, name);\n }\n\n node.setAttribute(_attributeName, '' + value);\n }\n }\n\n return;\n }\n\n var mustUseProperty = propertyInfo.mustUseProperty;\n\n if (mustUseProperty) {\n var propertyName = propertyInfo.propertyName;\n\n if (value === null) {\n var type = propertyInfo.type;\n node[propertyName] = type === BOOLEAN ? false : '';\n } else {\n // Contrary to `setAttribute`, object properties are properly\n // `toString`ed by IE8/9.\n node[propertyName] = value;\n }\n\n return;\n } // The rest are treated as attributes with special cases.\n\n\n var attributeName = propertyInfo.attributeName,\n attributeNamespace = propertyInfo.attributeNamespace;\n\n if (value === null) {\n node.removeAttribute(attributeName);\n } else {\n var _type = propertyInfo.type;\n var attributeValue;\n\n if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {\n // If attribute type is boolean, we know for sure it won't be an execution sink\n // and we won't require Trusted Type here.\n attributeValue = '';\n } else {\n // `setAttribute` with objects becomes only `[object]` in IE8/9,\n // ('' + value) makes it output the correct toString()-value.\n {\n {\n checkAttributeStringCoercion(value, attributeName);\n }\n\n attributeValue = '' + value;\n }\n\n if (propertyInfo.sanitizeURL) {\n sanitizeURL(attributeValue.toString());\n }\n }\n\n if (attributeNamespace) {\n node.setAttributeNS(attributeNamespace, attributeName, attributeValue);\n } else {\n node.setAttribute(attributeName, attributeValue);\n }\n }\n}\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_SCOPE_TYPE = Symbol.for('react.scope');\nvar REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for('react.debug_trace_mode');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar REACT_LEGACY_HIDDEN_TYPE = Symbol.for('react.legacy_hidden');\nvar REACT_CACHE_TYPE = Symbol.for('react.cache');\nvar REACT_TRACING_MARKER_TYPE = Symbol.for('react.tracing_marker');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('<anonymous>')) {\n _frame = _frame.replace('<anonymous>', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\n\nfunction describeClassComponentFrame(ctor, source, ownerFn) {\n {\n return describeNativeComponentFrame(ctor, true);\n }\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nfunction describeFiber(fiber) {\n var owner = fiber._debugOwner ? fiber._debugOwner.type : null ;\n var source = fiber._debugSource ;\n\n switch (fiber.tag) {\n case HostComponent:\n return describeBuiltInComponentFrame(fiber.type);\n\n case LazyComponent:\n return describeBuiltInComponentFrame('Lazy');\n\n case SuspenseComponent:\n return describeBuiltInComponentFrame('Suspense');\n\n case SuspenseListComponent:\n return describeBuiltInComponentFrame('SuspenseList');\n\n case FunctionComponent:\n case IndeterminateComponent:\n case SimpleMemoComponent:\n return describeFunctionComponentFrame(fiber.type);\n\n case ForwardRef:\n return describeFunctionComponentFrame(fiber.type.render);\n\n case ClassComponent:\n return describeClassComponentFrame(fiber.type);\n\n default:\n return '';\n }\n}\n\nfunction getStackByFiberInDevAndProd(workInProgress) {\n try {\n var info = '';\n var node = workInProgress;\n\n do {\n info += describeFiber(node);\n node = node.return;\n } while (node);\n\n return info;\n } catch (x) {\n return '\\nError generating stack: ' + x.message + '\\n' + x.stack;\n }\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nfunction getWrappedName$1(outerType, innerType, wrapperName) {\n var functionName = innerType.displayName || innerType.name || '';\n return outerType.displayName || (functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName);\n} // Keep in sync with shared/getComponentNameFromType\n\n\nfunction getContextName$1(type) {\n return type.displayName || 'Context';\n}\n\nfunction getComponentNameFromFiber(fiber) {\n var tag = fiber.tag,\n type = fiber.type;\n\n switch (tag) {\n case CacheComponent:\n return 'Cache';\n\n case ContextConsumer:\n var context = type;\n return getContextName$1(context) + '.Consumer';\n\n case ContextProvider:\n var provider = type;\n return getContextName$1(provider._context) + '.Provider';\n\n case DehydratedFragment:\n return 'DehydratedFragment';\n\n case ForwardRef:\n return getWrappedName$1(type, type.render, 'ForwardRef');\n\n case Fragment:\n return 'Fragment';\n\n case HostComponent:\n // Host component type is the display name (e.g. \"div\", \"View\")\n return type;\n\n case HostPortal:\n return 'Portal';\n\n case HostRoot:\n return 'Root';\n\n case HostText:\n return 'Text';\n\n case LazyComponent:\n // Name comes from the type in this case; we don't have a tag.\n return getComponentNameFromType(type);\n\n case Mode:\n if (type === REACT_STRICT_MODE_TYPE) {\n // Don't be less specific than shared/getComponentNameFromType\n return 'StrictMode';\n }\n\n return 'Mode';\n\n case OffscreenComponent:\n return 'Offscreen';\n\n case Profiler:\n return 'Profiler';\n\n case ScopeComponent:\n return 'Scope';\n\n case SuspenseComponent:\n return 'Suspense';\n\n case SuspenseListComponent:\n return 'SuspenseList';\n\n case TracingMarkerComponent:\n return 'TracingMarker';\n // The display name for this tags come from the user-provided type:\n\n case ClassComponent:\n case FunctionComponent:\n case IncompleteClassComponent:\n case IndeterminateComponent:\n case MemoComponent:\n case SimpleMemoComponent:\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n break;\n\n }\n\n return null;\n}\n\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\nvar current = null;\nvar isRendering = false;\nfunction getCurrentFiberOwnerNameInDevOrNull() {\n {\n if (current === null) {\n return null;\n }\n\n var owner = current._debugOwner;\n\n if (owner !== null && typeof owner !== 'undefined') {\n return getComponentNameFromFiber(owner);\n }\n }\n\n return null;\n}\n\nfunction getCurrentFiberStackInDev() {\n {\n if (current === null) {\n return '';\n } // Safe because if current fiber exists, we are reconciling,\n // and it is guaranteed to be the work-in-progress version.\n\n\n return getStackByFiberInDevAndProd(current);\n }\n}\n\nfunction resetCurrentFiber() {\n {\n ReactDebugCurrentFrame.getCurrentStack = null;\n current = null;\n isRendering = false;\n }\n}\nfunction setCurrentFiber(fiber) {\n {\n ReactDebugCurrentFrame.getCurrentStack = fiber === null ? null : getCurrentFiberStackInDev;\n current = fiber;\n isRendering = false;\n }\n}\nfunction getCurrentFiber() {\n {\n return current;\n }\n}\nfunction setIsRendering(rendering) {\n {\n isRendering = rendering;\n }\n}\n\n// Flow does not allow string concatenation of most non-string types. To work\n// around this limitation, we use an opaque type that can only be obtained by\n// passing the value through getToStringValue first.\nfunction toString(value) {\n // The coercion safety check is performed in getToStringValue().\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction getToStringValue(value) {\n switch (typeof value) {\n case 'boolean':\n case 'number':\n case 'string':\n case 'undefined':\n return value;\n\n case 'object':\n {\n checkFormFieldValueStringCoercion(value);\n }\n\n return value;\n\n default:\n // function, symbol are assigned as empty strings\n return '';\n }\n}\n\nvar hasReadOnlyValue = {\n button: true,\n checkbox: true,\n image: true,\n hidden: true,\n radio: true,\n reset: true,\n submit: true\n};\nfunction checkControlledValueProps(tagName, props) {\n {\n if (!(hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || props.value == null)) {\n error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');\n }\n\n if (!(props.onChange || props.readOnly || props.disabled || props.checked == null)) {\n error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');\n }\n }\n}\n\nfunction isCheckable(elem) {\n var type = elem.type;\n var nodeName = elem.nodeName;\n return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');\n}\n\nfunction getTracker(node) {\n return node._valueTracker;\n}\n\nfunction detachTracker(node) {\n node._valueTracker = null;\n}\n\nfunction getValueFromNode(node) {\n var value = '';\n\n if (!node) {\n return value;\n }\n\n if (isCheckable(node)) {\n value = node.checked ? 'true' : 'false';\n } else {\n value = node.value;\n }\n\n return value;\n}\n\nfunction trackValueOnNode(node) {\n var valueField = isCheckable(node) ? 'checked' : 'value';\n var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);\n\n {\n checkFormFieldValueStringCoercion(node[valueField]);\n }\n\n var currentValue = '' + node[valueField]; // if someone has already defined a value or Safari, then bail\n // and don't track value will cause over reporting of changes,\n // but it's better then a hard failure\n // (needed for certain tests that spyOn input values and Safari)\n\n if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {\n return;\n }\n\n var get = descriptor.get,\n set = descriptor.set;\n Object.defineProperty(node, valueField, {\n configurable: true,\n get: function () {\n return get.call(this);\n },\n set: function (value) {\n {\n checkFormFieldValueStringCoercion(value);\n }\n\n currentValue = '' + value;\n set.call(this, value);\n }\n }); // We could've passed this the first time\n // but it triggers a bug in IE11 and Edge 14/15.\n // Calling defineProperty() again should be equivalent.\n // https://github.com/facebook/react/issues/11768\n\n Object.defineProperty(node, valueField, {\n enumerable: descriptor.enumerable\n });\n var tracker = {\n getValue: function () {\n return currentValue;\n },\n setValue: function (value) {\n {\n checkFormFieldValueStringCoercion(value);\n }\n\n currentValue = '' + value;\n },\n stopTracking: function () {\n detachTracker(node);\n delete node[valueField];\n }\n };\n return tracker;\n}\n\nfunction track(node) {\n if (getTracker(node)) {\n return;\n } // TODO: Once it's just Fiber we can move this to node._wrapperState\n\n\n node._valueTracker = trackValueOnNode(node);\n}\nfunction updateValueIfChanged(node) {\n if (!node) {\n return false;\n }\n\n var tracker = getTracker(node); // if there is no tracker at this point it's unlikely\n // that trying again will succeed\n\n if (!tracker) {\n return true;\n }\n\n var lastValue = tracker.getValue();\n var nextValue = getValueFromNode(node);\n\n if (nextValue !== lastValue) {\n tracker.setValue(nextValue);\n return true;\n }\n\n return false;\n}\n\nfunction getActiveElement(doc) {\n doc = doc || (typeof document !== 'undefined' ? document : undefined);\n\n if (typeof doc === 'undefined') {\n return null;\n }\n\n try {\n return doc.activeElement || doc.body;\n } catch (e) {\n return doc.body;\n }\n}\n\nvar didWarnValueDefaultValue = false;\nvar didWarnCheckedDefaultChecked = false;\nvar didWarnControlledToUncontrolled = false;\nvar didWarnUncontrolledToControlled = false;\n\nfunction isControlled(props) {\n var usesChecked = props.type === 'checkbox' || props.type === 'radio';\n return usesChecked ? props.checked != null : props.value != null;\n}\n/**\n * Implements an <input> host component that allows setting these optional\n * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.\n *\n * If `checked` or `value` are not supplied (or null/undefined), user actions\n * that affect the checked state or value will trigger updates to the element.\n *\n * If they are supplied (and not null/undefined), the rendered element will not\n * trigger updates to the element. Instead, the props must change in order for\n * the rendered element to be updated.\n *\n * The rendered element will be initialized as unchecked (or `defaultChecked`)\n * with an empty value (or `defaultValue`).\n *\n * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html\n */\n\n\nfunction getHostProps(element, props) {\n var node = element;\n var checked = props.checked;\n var hostProps = assign({}, props, {\n defaultChecked: undefined,\n defaultValue: undefined,\n value: undefined,\n checked: checked != null ? checked : node._wrapperState.initialChecked\n });\n return hostProps;\n}\nfunction initWrapperState(element, props) {\n {\n checkControlledValueProps('input', props);\n\n if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {\n error('%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);\n\n didWarnCheckedDefaultChecked = true;\n }\n\n if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {\n error('%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);\n\n didWarnValueDefaultValue = true;\n }\n }\n\n var node = element;\n var defaultValue = props.defaultValue == null ? '' : props.defaultValue;\n node._wrapperState = {\n initialChecked: props.checked != null ? props.checked : props.defaultChecked,\n initialValue: getToStringValue(props.value != null ? props.value : defaultValue),\n controlled: isControlled(props)\n };\n}\nfunction updateChecked(element, props) {\n var node = element;\n var checked = props.checked;\n\n if (checked != null) {\n setValueForProperty(node, 'checked', checked, false);\n }\n}\nfunction updateWrapper(element, props) {\n var node = element;\n\n {\n var controlled = isControlled(props);\n\n if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {\n error('A component is changing an uncontrolled input to be controlled. ' + 'This is likely caused by the value changing from undefined to ' + 'a defined value, which should not happen. ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components');\n\n didWarnUncontrolledToControlled = true;\n }\n\n if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {\n error('A component is changing a controlled input to be uncontrolled. ' + 'This is likely caused by the value changing from a defined to ' + 'undefined, which should not happen. ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components');\n\n didWarnControlledToUncontrolled = true;\n }\n }\n\n updateChecked(element, props);\n var value = getToStringValue(props.value);\n var type = props.type;\n\n if (value != null) {\n if (type === 'number') {\n if (value === 0 && node.value === '' || // We explicitly want to coerce to number here if possible.\n // eslint-disable-next-line\n node.value != value) {\n node.value = toString(value);\n }\n } else if (node.value !== toString(value)) {\n node.value = toString(value);\n }\n } else if (type === 'submit' || type === 'reset') {\n // Submit/reset inputs need the attribute removed completely to avoid\n // blank-text buttons.\n node.removeAttribute('value');\n return;\n }\n\n {\n // When syncing the value attribute, the value comes from a cascade of\n // properties:\n // 1. The value React property\n // 2. The defaultValue React property\n // 3. Otherwise there should be no change\n if (props.hasOwnProperty('value')) {\n setDefaultValue(node, props.type, value);\n } else if (props.hasOwnProperty('defaultValue')) {\n setDefaultValue(node, props.type, getToStringValue(props.defaultValue));\n }\n }\n\n {\n // When syncing the checked attribute, it only changes when it needs\n // to be removed, such as transitioning from a checkbox into a text input\n if (props.checked == null && props.defaultChecked != null) {\n node.defaultChecked = !!props.defaultChecked;\n }\n }\n}\nfunction postMountWrapper(element, props, isHydrating) {\n var node = element; // Do not assign value if it is already set. This prevents user text input\n // from being lost during SSR hydration.\n\n if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {\n var type = props.type;\n var isButton = type === 'submit' || type === 'reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the\n // default value provided by the browser. See: #12872\n\n if (isButton && (props.value === undefined || props.value === null)) {\n return;\n }\n\n var initialValue = toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input\n // from being lost during SSR hydration.\n\n if (!isHydrating) {\n {\n // When syncing the value attribute, the value property should use\n // the wrapperState._initialValue property. This uses:\n //\n // 1. The value React property when present\n // 2. The defaultValue React property when present\n // 3. An empty string\n if (initialValue !== node.value) {\n node.value = initialValue;\n }\n }\n }\n\n {\n // Otherwise, the value attribute is synchronized to the property,\n // so we assign defaultValue to the same thing as the value property\n // assignment step above.\n node.defaultValue = initialValue;\n }\n } // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug\n // this is needed to work around a chrome bug where setting defaultChecked\n // will sometimes influence the value of checked (even after detachment).\n // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416\n // We need to temporarily unset name to avoid disrupting radio button groups.\n\n\n var name = node.name;\n\n if (name !== '') {\n node.name = '';\n }\n\n {\n // When syncing the checked attribute, both the checked property and\n // attribute are assigned at the same time using defaultChecked. This uses:\n //\n // 1. The checked React property when present\n // 2. The defaultChecked React property when present\n // 3. Otherwise, false\n node.defaultChecked = !node.defaultChecked;\n node.defaultChecked = !!node._wrapperState.initialChecked;\n }\n\n if (name !== '') {\n node.name = name;\n }\n}\nfunction restoreControlledState(element, props) {\n var node = element;\n updateWrapper(node, props);\n updateNamedCousins(node, props);\n}\n\nfunction updateNamedCousins(rootNode, props) {\n var name = props.name;\n\n if (props.type === 'radio' && name != null) {\n var queryRoot = rootNode;\n\n while (queryRoot.parentNode) {\n queryRoot = queryRoot.parentNode;\n } // If `rootNode.form` was non-null, then we could try `form.elements`,\n // but that sometimes behaves strangely in IE8. We could also try using\n // `form.getElementsByName`, but that will only return direct children\n // and won't include inputs that use the HTML5 `form=` attribute. Since\n // the input might not even be in a form. It might not even be in the\n // document. Let's just use the local `querySelectorAll` to ensure we don't\n // miss anything.\n\n\n {\n checkAttributeStringCoercion(name, 'name');\n }\n\n var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type=\"radio\"]');\n\n for (var i = 0; i < group.length; i++) {\n var otherNode = group[i];\n\n if (otherNode === rootNode || otherNode.form !== rootNode.form) {\n continue;\n } // This will throw if radio buttons rendered by different copies of React\n // and the same name are rendered into the same form (same as #1939).\n // That's probably okay; we don't support it just as we don't support\n // mixing React radio buttons with non-React ones.\n\n\n var otherProps = getFiberCurrentPropsFromNode(otherNode);\n\n if (!otherProps) {\n throw new Error('ReactDOMInput: Mixing React and non-React radio inputs with the ' + 'same `name` is not supported.');\n } // We need update the tracked value on the named cousin since the value\n // was changed but the input saw no event or value set\n\n\n updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that\n // was previously checked to update will cause it to be come re-checked\n // as appropriate.\n\n updateWrapper(otherNode, otherProps);\n }\n }\n} // In Chrome, assigning defaultValue to certain input types triggers input validation.\n// For number inputs, the display value loses trailing decimal points. For email inputs,\n// Chrome raises \"The specified value <x> is not a valid email address\".\n//\n// Here we check to see if the defaultValue has actually changed, avoiding these problems\n// when the user is inputting text\n//\n// https://github.com/facebook/react/issues/7253\n\n\nfunction setDefaultValue(node, type, value) {\n if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js\n type !== 'number' || getActiveElement(node.ownerDocument) !== node) {\n if (value == null) {\n node.defaultValue = toString(node._wrapperState.initialValue);\n } else if (node.defaultValue !== toString(value)) {\n node.defaultValue = toString(value);\n }\n }\n}\n\nvar didWarnSelectedSetOnOption = false;\nvar didWarnInvalidChild = false;\nvar didWarnInvalidInnerHTML = false;\n/**\n * Implements an <option> host component that warns when `selected` is set.\n */\n\nfunction validateProps(element, props) {\n {\n // If a value is not provided, then the children must be simple.\n if (props.value == null) {\n if (typeof props.children === 'object' && props.children !== null) {\n React.Children.forEach(props.children, function (child) {\n if (child == null) {\n return;\n }\n\n if (typeof child === 'string' || typeof child === 'number') {\n return;\n }\n\n if (!didWarnInvalidChild) {\n didWarnInvalidChild = true;\n\n error('Cannot infer the option value of complex children. ' + 'Pass a `value` prop or use a plain string as children to <option>.');\n }\n });\n } else if (props.dangerouslySetInnerHTML != null) {\n if (!didWarnInvalidInnerHTML) {\n didWarnInvalidInnerHTML = true;\n\n error('Pass a `value` prop if you set dangerouslyInnerHTML so React knows ' + 'which value should be selected.');\n }\n }\n } // TODO: Remove support for `selected` in <option>.\n\n\n if (props.selected != null && !didWarnSelectedSetOnOption) {\n error('Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');\n\n didWarnSelectedSetOnOption = true;\n }\n }\n}\nfunction postMountWrapper$1(element, props) {\n // value=\"\" should make a value attribute (#6219)\n if (props.value != null) {\n element.setAttribute('value', toString(getToStringValue(props.value)));\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\nvar didWarnValueDefaultValue$1;\n\n{\n didWarnValueDefaultValue$1 = false;\n}\n\nfunction getDeclarationErrorAddendum() {\n var ownerName = getCurrentFiberOwnerNameInDevOrNull();\n\n if (ownerName) {\n return '\\n\\nCheck the render method of `' + ownerName + '`.';\n }\n\n return '';\n}\n\nvar valuePropNames = ['value', 'defaultValue'];\n/**\n * Validation function for `value` and `defaultValue`.\n */\n\nfunction checkSelectPropTypes(props) {\n {\n checkControlledValueProps('select', props);\n\n for (var i = 0; i < valuePropNames.length; i++) {\n var propName = valuePropNames[i];\n\n if (props[propName] == null) {\n continue;\n }\n\n var propNameIsArray = isArray(props[propName]);\n\n if (props.multiple && !propNameIsArray) {\n error('The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());\n } else if (!props.multiple && propNameIsArray) {\n error('The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());\n }\n }\n }\n}\n\nfunction updateOptions(node, multiple, propValue, setDefaultSelected) {\n var options = node.options;\n\n if (multiple) {\n var selectedValues = propValue;\n var selectedValue = {};\n\n for (var i = 0; i < selectedValues.length; i++) {\n // Prefix to avoid chaos with special keys.\n selectedValue['$' + selectedValues[i]] = true;\n }\n\n for (var _i = 0; _i < options.length; _i++) {\n var selected = selectedValue.hasOwnProperty('$' + options[_i].value);\n\n if (options[_i].selected !== selected) {\n options[_i].selected = selected;\n }\n\n if (selected && setDefaultSelected) {\n options[_i].defaultSelected = true;\n }\n }\n } else {\n // Do not set `select.value` as exact behavior isn't consistent across all\n // browsers for all cases.\n var _selectedValue = toString(getToStringValue(propValue));\n\n var defaultSelected = null;\n\n for (var _i2 = 0; _i2 < options.length; _i2++) {\n if (options[_i2].value === _selectedValue) {\n options[_i2].selected = true;\n\n if (setDefaultSelected) {\n options[_i2].defaultSelected = true;\n }\n\n return;\n }\n\n if (defaultSelected === null && !options[_i2].disabled) {\n defaultSelected = options[_i2];\n }\n }\n\n if (defaultSelected !== null) {\n defaultSelected.selected = true;\n }\n }\n}\n/**\n * Implements a <select> host component that allows optionally setting the\n * props `value` and `defaultValue`. If `multiple` is false, the prop must be a\n * stringable. If `multiple` is true, the prop must be an array of stringables.\n *\n * If `value` is not supplied (or null/undefined), user actions that change the\n * selected option will trigger updates to the rendered options.\n *\n * If it is supplied (and not null/undefined), the rendered options will not\n * update in response to user actions. Instead, the `value` prop must change in\n * order for the rendered options to update.\n *\n * If `defaultValue` is provided, any options with the supplied values will be\n * selected.\n */\n\n\nfunction getHostProps$1(element, props) {\n return assign({}, props, {\n value: undefined\n });\n}\nfunction initWrapperState$1(element, props) {\n var node = element;\n\n {\n checkSelectPropTypes(props);\n }\n\n node._wrapperState = {\n wasMultiple: !!props.multiple\n };\n\n {\n if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {\n error('Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components');\n\n didWarnValueDefaultValue$1 = true;\n }\n }\n}\nfunction postMountWrapper$2(element, props) {\n var node = element;\n node.multiple = !!props.multiple;\n var value = props.value;\n\n if (value != null) {\n updateOptions(node, !!props.multiple, value, false);\n } else if (props.defaultValue != null) {\n updateOptions(node, !!props.multiple, props.defaultValue, true);\n }\n}\nfunction postUpdateWrapper(element, props) {\n var node = element;\n var wasMultiple = node._wrapperState.wasMultiple;\n node._wrapperState.wasMultiple = !!props.multiple;\n var value = props.value;\n\n if (value != null) {\n updateOptions(node, !!props.multiple, value, false);\n } else if (wasMultiple !== !!props.multiple) {\n // For simplicity, reapply `defaultValue` if `multiple` is toggled.\n if (props.defaultValue != null) {\n updateOptions(node, !!props.multiple, props.defaultValue, true);\n } else {\n // Revert the select back to its default unselected state.\n updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);\n }\n }\n}\nfunction restoreControlledState$1(element, props) {\n var node = element;\n var value = props.value;\n\n if (value != null) {\n updateOptions(node, !!props.multiple, value, false);\n }\n}\n\nvar didWarnValDefaultVal = false;\n\n/**\n * Implements a <textarea> host component that allows setting `value`, and\n * `defaultValue`. This differs from the traditional DOM API because value is\n * usually set as PCDATA children.\n *\n * If `value` is not supplied (or null/undefined), user actions that affect the\n * value will trigger updates to the element.\n *\n * If `value` is supplied (and not null/undefined), the rendered element will\n * not trigger updates to the element. Instead, the `value` prop must change in\n * order for the rendered element to be updated.\n *\n * The rendered element will be initialized with an empty value, the prop\n * `defaultValue` if specified, or the children content (deprecated).\n */\nfunction getHostProps$2(element, props) {\n var node = element;\n\n if (props.dangerouslySetInnerHTML != null) {\n throw new Error('`dangerouslySetInnerHTML` does not make sense on <textarea>.');\n } // Always set children to the same thing. In IE9, the selection range will\n // get reset if `textContent` is mutated. We could add a check in setTextContent\n // to only set the value if/when the value differs from the node value (which would\n // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this\n // solution. The value can be a boolean or object so that's why it's forced\n // to be a string.\n\n\n var hostProps = assign({}, props, {\n value: undefined,\n defaultValue: undefined,\n children: toString(node._wrapperState.initialValue)\n });\n\n return hostProps;\n}\nfunction initWrapperState$2(element, props) {\n var node = element;\n\n {\n checkControlledValueProps('textarea', props);\n\n if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {\n error('%s contains a textarea with both value and defaultValue props. ' + 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component');\n\n didWarnValDefaultVal = true;\n }\n }\n\n var initialValue = props.value; // Only bother fetching default value if we're going to use it\n\n if (initialValue == null) {\n var children = props.children,\n defaultValue = props.defaultValue;\n\n if (children != null) {\n {\n error('Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');\n }\n\n {\n if (defaultValue != null) {\n throw new Error('If you supply `defaultValue` on a <textarea>, do not pass children.');\n }\n\n if (isArray(children)) {\n if (children.length > 1) {\n throw new Error('<textarea> can only have at most one child.');\n }\n\n children = children[0];\n }\n\n defaultValue = children;\n }\n }\n\n if (defaultValue == null) {\n defaultValue = '';\n }\n\n initialValue = defaultValue;\n }\n\n node._wrapperState = {\n initialValue: getToStringValue(initialValue)\n };\n}\nfunction updateWrapper$1(element, props) {\n var node = element;\n var value = getToStringValue(props.value);\n var defaultValue = getToStringValue(props.defaultValue);\n\n if (value != null) {\n // Cast `value` to a string to ensure the value is set correctly. While\n // browsers typically do this as necessary, jsdom doesn't.\n var newValue = toString(value); // To avoid side effects (such as losing text selection), only set value if changed\n\n if (newValue !== node.value) {\n node.value = newValue;\n }\n\n if (props.defaultValue == null && node.defaultValue !== newValue) {\n node.defaultValue = newValue;\n }\n }\n\n if (defaultValue != null) {\n node.defaultValue = toString(defaultValue);\n }\n}\nfunction postMountWrapper$3(element, props) {\n var node = element; // This is in postMount because we need access to the DOM node, which is not\n // available until after the component has mounted.\n\n var textContent = node.textContent; // Only set node.value if textContent is equal to the expected\n // initial value. In IE10/IE11 there is a bug where the placeholder attribute\n // will populate textContent as well.\n // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/\n\n if (textContent === node._wrapperState.initialValue) {\n if (textContent !== '' && textContent !== null) {\n node.value = textContent;\n }\n }\n}\nfunction restoreControlledState$2(element, props) {\n // DOM component is still mounted; update\n updateWrapper$1(element, props);\n}\n\nvar HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\nvar MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\nvar SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; // Assumes there is no parent namespace.\n\nfunction getIntrinsicNamespace(type) {\n switch (type) {\n case 'svg':\n return SVG_NAMESPACE;\n\n case 'math':\n return MATH_NAMESPACE;\n\n default:\n return HTML_NAMESPACE;\n }\n}\nfunction getChildNamespace(parentNamespace, type) {\n if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) {\n // No (or default) parent namespace: potential entry point.\n return getIntrinsicNamespace(type);\n }\n\n if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {\n // We're leaving SVG.\n return HTML_NAMESPACE;\n } // By default, pass namespace below.\n\n\n return parentNamespace;\n}\n\n/* globals MSApp */\n\n/**\n * Create a function which has 'unsafe' privileges (required by windows8 apps)\n */\nvar createMicrosoftUnsafeLocalFunction = function (func) {\n if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {\n return function (arg0, arg1, arg2, arg3) {\n MSApp.execUnsafeLocalFunction(function () {\n return func(arg0, arg1, arg2, arg3);\n });\n };\n } else {\n return func;\n }\n};\n\nvar reusableSVGContainer;\n/**\n * Set the innerHTML property of a node\n *\n * @param {DOMElement} node\n * @param {string} html\n * @internal\n */\n\nvar setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {\n if (node.namespaceURI === SVG_NAMESPACE) {\n\n if (!('innerHTML' in node)) {\n // IE does not have innerHTML for SVG nodes, so instead we inject the\n // new markup in a temp node and then move the child nodes across into\n // the target node\n reusableSVGContainer = reusableSVGContainer || document.createElement('div');\n reusableSVGContainer.innerHTML = '<svg>' + html.valueOf().toString() + '</svg>';\n var svgNode = reusableSVGContainer.firstChild;\n\n while (node.firstChild) {\n node.removeChild(node.firstChild);\n }\n\n while (svgNode.firstChild) {\n node.appendChild(svgNode.firstChild);\n }\n\n return;\n }\n }\n\n node.innerHTML = html;\n});\n\n/**\n * HTML nodeType values that represent the type of the node\n */\nvar ELEMENT_NODE = 1;\nvar TEXT_NODE = 3;\nvar COMMENT_NODE = 8;\nvar DOCUMENT_NODE = 9;\nvar DOCUMENT_FRAGMENT_NODE = 11;\n\n/**\n * Set the textContent property of a node. For text updates, it's faster\n * to set the `nodeValue` of the Text node directly instead of using\n * `.textContent` which will remove the existing node and create a new one.\n *\n * @param {DOMElement} node\n * @param {string} text\n * @internal\n */\n\nvar setTextContent = function (node, text) {\n if (text) {\n var firstChild = node.firstChild;\n\n if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {\n firstChild.nodeValue = text;\n return;\n }\n }\n\n node.textContent = text;\n};\n\n// List derived from Gecko source code:\n// https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js\nvar shorthandToLonghand = {\n animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],\n background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],\n backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],\n border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],\n borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],\n borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],\n borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],\n borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],\n borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],\n borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],\n borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],\n borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],\n borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],\n borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],\n borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],\n borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],\n borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],\n columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],\n columns: ['columnCount', 'columnWidth'],\n flex: ['flexBasis', 'flexGrow', 'flexShrink'],\n flexFlow: ['flexDirection', 'flexWrap'],\n font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],\n fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],\n gap: ['columnGap', 'rowGap'],\n grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],\n gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],\n gridColumn: ['gridColumnEnd', 'gridColumnStart'],\n gridColumnGap: ['columnGap'],\n gridGap: ['columnGap', 'rowGap'],\n gridRow: ['gridRowEnd', 'gridRowStart'],\n gridRowGap: ['rowGap'],\n gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],\n listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],\n margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],\n marker: ['markerEnd', 'markerMid', 'markerStart'],\n mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],\n maskPosition: ['maskPositionX', 'maskPositionY'],\n outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],\n overflow: ['overflowX', 'overflowY'],\n padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],\n placeContent: ['alignContent', 'justifyContent'],\n placeItems: ['alignItems', 'justifyItems'],\n placeSelf: ['alignSelf', 'justifySelf'],\n textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],\n textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],\n transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],\n wordWrap: ['overflowWrap']\n};\n\n/**\n * CSS properties which accept numbers but are not in units of \"px\".\n */\nvar isUnitlessNumber = {\n animationIterationCount: true,\n aspectRatio: true,\n borderImageOutset: true,\n borderImageSlice: true,\n borderImageWidth: true,\n boxFlex: true,\n boxFlexGroup: true,\n boxOrdinalGroup: true,\n columnCount: true,\n columns: true,\n flex: true,\n flexGrow: true,\n flexPositive: true,\n flexShrink: true,\n flexNegative: true,\n flexOrder: true,\n gridArea: true,\n gridRow: true,\n gridRowEnd: true,\n gridRowSpan: true,\n gridRowStart: true,\n gridColumn: true,\n gridColumnEnd: true,\n gridColumnSpan: true,\n gridColumnStart: true,\n fontWeight: true,\n lineClamp: true,\n lineHeight: true,\n opacity: true,\n order: true,\n orphans: true,\n tabSize: true,\n widows: true,\n zIndex: true,\n zoom: true,\n // SVG-related properties\n fillOpacity: true,\n floodOpacity: true,\n stopOpacity: true,\n strokeDasharray: true,\n strokeDashoffset: true,\n strokeMiterlimit: true,\n strokeOpacity: true,\n strokeWidth: true\n};\n/**\n * @param {string} prefix vendor-specific prefix, eg: Webkit\n * @param {string} key style name, eg: transitionDuration\n * @return {string} style name prefixed with `prefix`, properly camelCased, eg:\n * WebkitTransitionDuration\n */\n\nfunction prefixKey(prefix, key) {\n return prefix + key.charAt(0).toUpperCase() + key.substring(1);\n}\n/**\n * Support style names that may come passed in prefixed by adding permutations\n * of vendor prefixes.\n */\n\n\nvar prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an\n// infinite loop, because it iterates over the newly added props too.\n\nObject.keys(isUnitlessNumber).forEach(function (prop) {\n prefixes.forEach(function (prefix) {\n isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];\n });\n});\n\n/**\n * Convert a value into the proper css writable value. The style name `name`\n * should be logical (no hyphens), as specified\n * in `CSSProperty.isUnitlessNumber`.\n *\n * @param {string} name CSS property name such as `topMargin`.\n * @param {*} value CSS property value such as `10px`.\n * @return {string} Normalized style value with dimensions applied.\n */\n\nfunction dangerousStyleValue(name, value, isCustomProperty) {\n // Note that we've removed escapeTextForBrowser() calls here since the\n // whole string will be escaped when the attribute is injected into\n // the markup. If you provide unsafe user data here they can inject\n // arbitrary CSS which may be problematic (I couldn't repro this):\n // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet\n // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/\n // This is not an XSS hole but instead a potential CSS injection issue\n // which has lead to a greater discussion about how we're going to\n // trust URLs moving forward. See #2115901\n var isEmpty = value == null || typeof value === 'boolean' || value === '';\n\n if (isEmpty) {\n return '';\n }\n\n if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {\n return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers\n }\n\n {\n checkCSSPropertyStringCoercion(value, name);\n }\n\n return ('' + value).trim();\n}\n\nvar uppercasePattern = /([A-Z])/g;\nvar msPattern = /^ms-/;\n/**\n * Hyphenates a camelcased CSS property name, for example:\n *\n * > hyphenateStyleName('backgroundColor')\n * < \"background-color\"\n * > hyphenateStyleName('MozTransition')\n * < \"-moz-transition\"\n * > hyphenateStyleName('msTransition')\n * < \"-ms-transition\"\n *\n * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix\n * is converted to `-ms-`.\n */\n\nfunction hyphenateStyleName(name) {\n return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');\n}\n\nvar warnValidStyle = function () {};\n\n{\n // 'msTransform' is correct, but the other prefixes should be capitalized\n var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;\n var msPattern$1 = /^-ms-/;\n var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon\n\n var badStyleValueWithSemicolonPattern = /;\\s*$/;\n var warnedStyleNames = {};\n var warnedStyleValues = {};\n var warnedForNaNValue = false;\n var warnedForInfinityValue = false;\n\n var camelize = function (string) {\n return string.replace(hyphenPattern, function (_, character) {\n return character.toUpperCase();\n });\n };\n\n var warnHyphenatedStyleName = function (name) {\n if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {\n return;\n }\n\n warnedStyleNames[name] = true;\n\n error('Unsupported style property %s. Did you mean %s?', name, // As Andi Smith suggests\n // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix\n // is converted to lowercase `ms`.\n camelize(name.replace(msPattern$1, 'ms-')));\n };\n\n var warnBadVendoredStyleName = function (name) {\n if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {\n return;\n }\n\n warnedStyleNames[name] = true;\n\n error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));\n };\n\n var warnStyleValueWithSemicolon = function (name, value) {\n if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {\n return;\n }\n\n warnedStyleValues[value] = true;\n\n error(\"Style property values shouldn't contain a semicolon. \" + 'Try \"%s: %s\" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));\n };\n\n var warnStyleValueIsNaN = function (name, value) {\n if (warnedForNaNValue) {\n return;\n }\n\n warnedForNaNValue = true;\n\n error('`NaN` is an invalid value for the `%s` css style property.', name);\n };\n\n var warnStyleValueIsInfinity = function (name, value) {\n if (warnedForInfinityValue) {\n return;\n }\n\n warnedForInfinityValue = true;\n\n error('`Infinity` is an invalid value for the `%s` css style property.', name);\n };\n\n warnValidStyle = function (name, value) {\n if (name.indexOf('-') > -1) {\n warnHyphenatedStyleName(name);\n } else if (badVendoredStyleNamePattern.test(name)) {\n warnBadVendoredStyleName(name);\n } else if (badStyleValueWithSemicolonPattern.test(value)) {\n warnStyleValueWithSemicolon(name, value);\n }\n\n if (typeof value === 'number') {\n if (isNaN(value)) {\n warnStyleValueIsNaN(name, value);\n } else if (!isFinite(value)) {\n warnStyleValueIsInfinity(name, value);\n }\n }\n };\n}\n\nvar warnValidStyle$1 = warnValidStyle;\n\n/**\n * Operations for dealing with CSS properties.\n */\n\n/**\n * This creates a string that is expected to be equivalent to the style\n * attribute generated by server-side rendering. It by-passes warnings and\n * security checks so it's not safe to use this value for anything other than\n * comparison. It is only used in DEV for SSR validation.\n */\n\nfunction createDangerousStringForStyles(styles) {\n {\n var serialized = '';\n var delimiter = '';\n\n for (var styleName in styles) {\n if (!styles.hasOwnProperty(styleName)) {\n continue;\n }\n\n var styleValue = styles[styleName];\n\n if (styleValue != null) {\n var isCustomProperty = styleName.indexOf('--') === 0;\n serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':';\n serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);\n delimiter = ';';\n }\n }\n\n return serialized || null;\n }\n}\n/**\n * Sets the value for multiple styles on a node. If a value is specified as\n * '' (empty string), the corresponding style property will be unset.\n *\n * @param {DOMElement} node\n * @param {object} styles\n */\n\nfunction setValueForStyles(node, styles) {\n var style = node.style;\n\n for (var styleName in styles) {\n if (!styles.hasOwnProperty(styleName)) {\n continue;\n }\n\n var isCustomProperty = styleName.indexOf('--') === 0;\n\n {\n if (!isCustomProperty) {\n warnValidStyle$1(styleName, styles[styleName]);\n }\n }\n\n var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);\n\n if (styleName === 'float') {\n styleName = 'cssFloat';\n }\n\n if (isCustomProperty) {\n style.setProperty(styleName, styleValue);\n } else {\n style[styleName] = styleValue;\n }\n }\n}\n\nfunction isValueEmpty(value) {\n return value == null || typeof value === 'boolean' || value === '';\n}\n/**\n * Given {color: 'red', overflow: 'hidden'} returns {\n * color: 'color',\n * overflowX: 'overflow',\n * overflowY: 'overflow',\n * }. This can be read as \"the overflowY property was set by the overflow\n * shorthand\". That is, the values are the property that each was derived from.\n */\n\n\nfunction expandShorthandMap(styles) {\n var expanded = {};\n\n for (var key in styles) {\n var longhands = shorthandToLonghand[key] || [key];\n\n for (var i = 0; i < longhands.length; i++) {\n expanded[longhands[i]] = key;\n }\n }\n\n return expanded;\n}\n/**\n * When mixing shorthand and longhand property names, we warn during updates if\n * we expect an incorrect result to occur. In particular, we warn for:\n *\n * Updating a shorthand property (longhand gets overwritten):\n * {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'}\n * becomes .style.font = 'baz'\n * Removing a shorthand property (longhand gets lost too):\n * {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'}\n * becomes .style.font = ''\n * Removing a longhand property (should revert to shorthand; doesn't):\n * {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'}\n * becomes .style.fontVariant = ''\n */\n\n\nfunction validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) {\n {\n if (!nextStyles) {\n return;\n }\n\n var expandedUpdates = expandShorthandMap(styleUpdates);\n var expandedStyles = expandShorthandMap(nextStyles);\n var warnedAbout = {};\n\n for (var key in expandedUpdates) {\n var originalKey = expandedUpdates[key];\n var correctOriginalKey = expandedStyles[key];\n\n if (correctOriginalKey && originalKey !== correctOriginalKey) {\n var warningKey = originalKey + ',' + correctOriginalKey;\n\n if (warnedAbout[warningKey]) {\n continue;\n }\n\n warnedAbout[warningKey] = true;\n\n error('%s a style property during rerender (%s) when a ' + 'conflicting property is set (%s) can lead to styling bugs. To ' + \"avoid this, don't mix shorthand and non-shorthand properties \" + 'for the same value; instead, replace the shorthand with ' + 'separate values.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing' : 'Updating', originalKey, correctOriginalKey);\n }\n }\n }\n}\n\n// For HTML, certain tags should omit their close tag. We keep a list for\n// those special-case tags.\nvar omittedCloseTags = {\n area: true,\n base: true,\n br: true,\n col: true,\n embed: true,\n hr: true,\n img: true,\n input: true,\n keygen: true,\n link: true,\n meta: true,\n param: true,\n source: true,\n track: true,\n wbr: true // NOTE: menuitem's close tag should be omitted, but that causes problems.\n\n};\n\n// `omittedCloseTags` except that `menuitem` should still have its closing tag.\n\nvar voidElementTags = assign({\n menuitem: true\n}, omittedCloseTags);\n\nvar HTML = '__html';\n\nfunction assertValidProps(tag, props) {\n if (!props) {\n return;\n } // Note the use of `==` which checks for null or undefined.\n\n\n if (voidElementTags[tag]) {\n if (props.children != null || props.dangerouslySetInnerHTML != null) {\n throw new Error(tag + \" is a void element tag and must neither have `children` nor \" + 'use `dangerouslySetInnerHTML`.');\n }\n }\n\n if (props.dangerouslySetInnerHTML != null) {\n if (props.children != null) {\n throw new Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.');\n }\n\n if (typeof props.dangerouslySetInnerHTML !== 'object' || !(HTML in props.dangerouslySetInnerHTML)) {\n throw new Error('`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' + 'Please visit https://reactjs.org/link/dangerously-set-inner-html ' + 'for more information.');\n }\n }\n\n {\n if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) {\n error('A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.');\n }\n }\n\n if (props.style != null && typeof props.style !== 'object') {\n throw new Error('The `style` prop expects a mapping from style properties to values, ' + \"not a string. For example, style={{marginRight: spacing + 'em'}} when \" + 'using JSX.');\n }\n}\n\nfunction isCustomComponent(tagName, props) {\n if (tagName.indexOf('-') === -1) {\n return typeof props.is === 'string';\n }\n\n switch (tagName) {\n // These are reserved SVG and MathML elements.\n // We don't mind this list too much because we expect it to never grow.\n // The alternative is to track the namespace in a few places which is convoluted.\n // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts\n case 'annotation-xml':\n case 'color-profile':\n case 'font-face':\n case 'font-face-src':\n case 'font-face-uri':\n case 'font-face-format':\n case 'font-face-name':\n case 'missing-glyph':\n return false;\n\n default:\n return true;\n }\n}\n\n// When adding attributes to the HTML or SVG allowed attribute list, be sure to\n// also add them to this module to ensure casing and incorrect name\n// warnings.\nvar possibleStandardNames = {\n // HTML\n accept: 'accept',\n acceptcharset: 'acceptCharset',\n 'accept-charset': 'acceptCharset',\n accesskey: 'accessKey',\n action: 'action',\n allowfullscreen: 'allowFullScreen',\n alt: 'alt',\n as: 'as',\n async: 'async',\n autocapitalize: 'autoCapitalize',\n autocomplete: 'autoComplete',\n autocorrect: 'autoCorrect',\n autofocus: 'autoFocus',\n autoplay: 'autoPlay',\n autosave: 'autoSave',\n capture: 'capture',\n cellpadding: 'cellPadding',\n cellspacing: 'cellSpacing',\n challenge: 'challenge',\n charset: 'charSet',\n checked: 'checked',\n children: 'children',\n cite: 'cite',\n class: 'className',\n classid: 'classID',\n classname: 'className',\n cols: 'cols',\n colspan: 'colSpan',\n content: 'content',\n contenteditable: 'contentEditable',\n contextmenu: 'contextMenu',\n controls: 'controls',\n controlslist: 'controlsList',\n coords: 'coords',\n crossorigin: 'crossOrigin',\n dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',\n data: 'data',\n datetime: 'dateTime',\n default: 'default',\n defaultchecked: 'defaultChecked',\n defaultvalue: 'defaultValue',\n defer: 'defer',\n dir: 'dir',\n disabled: 'disabled',\n disablepictureinpicture: 'disablePictureInPicture',\n disableremoteplayback: 'disableRemotePlayback',\n download: 'download',\n draggable: 'draggable',\n enctype: 'encType',\n enterkeyhint: 'enterKeyHint',\n for: 'htmlFor',\n form: 'form',\n formmethod: 'formMethod',\n formaction: 'formAction',\n formenctype: 'formEncType',\n formnovalidate: 'formNoValidate',\n formtarget: 'formTarget',\n frameborder: 'frameBorder',\n headers: 'headers',\n height: 'height',\n hidden: 'hidden',\n high: 'high',\n href: 'href',\n hreflang: 'hrefLang',\n htmlfor: 'htmlFor',\n httpequiv: 'httpEquiv',\n 'http-equiv': 'httpEquiv',\n icon: 'icon',\n id: 'id',\n imagesizes: 'imageSizes',\n imagesrcset: 'imageSrcSet',\n innerhtml: 'innerHTML',\n inputmode: 'inputMode',\n integrity: 'integrity',\n is: 'is',\n itemid: 'itemID',\n itemprop: 'itemProp',\n itemref: 'itemRef',\n itemscope: 'itemScope',\n itemtype: 'itemType',\n keyparams: 'keyParams',\n keytype: 'keyType',\n kind: 'kind',\n label: 'label',\n lang: 'lang',\n list: 'list',\n loop: 'loop',\n low: 'low',\n manifest: 'manifest',\n marginwidth: 'marginWidth',\n marginheight: 'marginHeight',\n max: 'max',\n maxlength: 'maxLength',\n media: 'media',\n mediagroup: 'mediaGroup',\n method: 'method',\n min: 'min',\n minlength: 'minLength',\n multiple: 'multiple',\n muted: 'muted',\n name: 'name',\n nomodule: 'noModule',\n nonce: 'nonce',\n novalidate: 'noValidate',\n open: 'open',\n optimum: 'optimum',\n pattern: 'pattern',\n placeholder: 'placeholder',\n playsinline: 'playsInline',\n poster: 'poster',\n preload: 'preload',\n profile: 'profile',\n radiogroup: 'radioGroup',\n readonly: 'readOnly',\n referrerpolicy: 'referrerPolicy',\n rel: 'rel',\n required: 'required',\n reversed: 'reversed',\n role: 'role',\n rows: 'rows',\n rowspan: 'rowSpan',\n sandbox: 'sandbox',\n scope: 'scope',\n scoped: 'scoped',\n scrolling: 'scrolling',\n seamless: 'seamless',\n selected: 'selected',\n shape: 'shape',\n size: 'size',\n sizes: 'sizes',\n span: 'span',\n spellcheck: 'spellCheck',\n src: 'src',\n srcdoc: 'srcDoc',\n srclang: 'srcLang',\n srcset: 'srcSet',\n start: 'start',\n step: 'step',\n style: 'style',\n summary: 'summary',\n tabindex: 'tabIndex',\n target: 'target',\n title: 'title',\n type: 'type',\n usemap: 'useMap',\n value: 'value',\n width: 'width',\n wmode: 'wmode',\n wrap: 'wrap',\n // SVG\n about: 'about',\n accentheight: 'accentHeight',\n 'accent-height': 'accentHeight',\n accumulate: 'accumulate',\n additive: 'additive',\n alignmentbaseline: 'alignmentBaseline',\n 'alignment-baseline': 'alignmentBaseline',\n allowreorder: 'allowReorder',\n alphabetic: 'alphabetic',\n amplitude: 'amplitude',\n arabicform: 'arabicForm',\n 'arabic-form': 'arabicForm',\n ascent: 'ascent',\n attributename: 'attributeName',\n attributetype: 'attributeType',\n autoreverse: 'autoReverse',\n azimuth: 'azimuth',\n basefrequency: 'baseFrequency',\n baselineshift: 'baselineShift',\n 'baseline-shift': 'baselineShift',\n baseprofile: 'baseProfile',\n bbox: 'bbox',\n begin: 'begin',\n bias: 'bias',\n by: 'by',\n calcmode: 'calcMode',\n capheight: 'capHeight',\n 'cap-height': 'capHeight',\n clip: 'clip',\n clippath: 'clipPath',\n 'clip-path': 'clipPath',\n clippathunits: 'clipPathUnits',\n cliprule: 'clipRule',\n 'clip-rule': 'clipRule',\n color: 'color',\n colorinterpolation: 'colorInterpolation',\n 'color-interpolation': 'colorInterpolation',\n colorinterpolationfilters: 'colorInterpolationFilters',\n 'color-interpolation-filters': 'colorInterpolationFilters',\n colorprofile: 'colorProfile',\n 'color-profile': 'colorProfile',\n colorrendering: 'colorRendering',\n 'color-rendering': 'colorRendering',\n contentscripttype: 'contentScriptType',\n contentstyletype: 'contentStyleType',\n cursor: 'cursor',\n cx: 'cx',\n cy: 'cy',\n d: 'd',\n datatype: 'datatype',\n decelerate: 'decelerate',\n descent: 'descent',\n diffuseconstant: 'diffuseConstant',\n direction: 'direction',\n display: 'display',\n divisor: 'divisor',\n dominantbaseline: 'dominantBaseline',\n 'dominant-baseline': 'dominantBaseline',\n dur: 'dur',\n dx: 'dx',\n dy: 'dy',\n edgemode: 'edgeMode',\n elevation: 'elevation',\n enablebackground: 'enableBackground',\n 'enable-background': 'enableBackground',\n end: 'end',\n exponent: 'exponent',\n externalresourcesrequired: 'externalResourcesRequired',\n fill: 'fill',\n fillopacity: 'fillOpacity',\n 'fill-opacity': 'fillOpacity',\n fillrule: 'fillRule',\n 'fill-rule': 'fillRule',\n filter: 'filter',\n filterres: 'filterRes',\n filterunits: 'filterUnits',\n floodopacity: 'floodOpacity',\n 'flood-opacity': 'floodOpacity',\n floodcolor: 'floodColor',\n 'flood-color': 'floodColor',\n focusable: 'focusable',\n fontfamily: 'fontFamily',\n 'font-family': 'fontFamily',\n fontsize: 'fontSize',\n 'font-size': 'fontSize',\n fontsizeadjust: 'fontSizeAdjust',\n 'font-size-adjust': 'fontSizeAdjust',\n fontstretch: 'fontStretch',\n 'font-stretch': 'fontStretch',\n fontstyle: 'fontStyle',\n 'font-style': 'fontStyle',\n fontvariant: 'fontVariant',\n 'font-variant': 'fontVariant',\n fontweight: 'fontWeight',\n 'font-weight': 'fontWeight',\n format: 'format',\n from: 'from',\n fx: 'fx',\n fy: 'fy',\n g1: 'g1',\n g2: 'g2',\n glyphname: 'glyphName',\n 'glyph-name': 'glyphName',\n glyphorientationhorizontal: 'glyphOrientationHorizontal',\n 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',\n glyphorientationvertical: 'glyphOrientationVertical',\n 'glyph-orientation-vertical': 'glyphOrientationVertical',\n glyphref: 'glyphRef',\n gradienttransform: 'gradientTransform',\n gradientunits: 'gradientUnits',\n hanging: 'hanging',\n horizadvx: 'horizAdvX',\n 'horiz-adv-x': 'horizAdvX',\n horizoriginx: 'horizOriginX',\n 'horiz-origin-x': 'horizOriginX',\n ideographic: 'ideographic',\n imagerendering: 'imageRendering',\n 'image-rendering': 'imageRendering',\n in2: 'in2',\n in: 'in',\n inlist: 'inlist',\n intercept: 'intercept',\n k1: 'k1',\n k2: 'k2',\n k3: 'k3',\n k4: 'k4',\n k: 'k',\n kernelmatrix: 'kernelMatrix',\n kernelunitlength: 'kernelUnitLength',\n kerning: 'kerning',\n keypoints: 'keyPoints',\n keysplines: 'keySplines',\n keytimes: 'keyTimes',\n lengthadjust: 'lengthAdjust',\n letterspacing: 'letterSpacing',\n 'letter-spacing': 'letterSpacing',\n lightingcolor: 'lightingColor',\n 'lighting-color': 'lightingColor',\n limitingconeangle: 'limitingConeAngle',\n local: 'local',\n markerend: 'markerEnd',\n 'marker-end': 'markerEnd',\n markerheight: 'markerHeight',\n markermid: 'markerMid',\n 'marker-mid': 'markerMid',\n markerstart: 'markerStart',\n 'marker-start': 'markerStart',\n markerunits: 'markerUnits',\n markerwidth: 'markerWidth',\n mask: 'mask',\n maskcontentunits: 'maskContentUnits',\n maskunits: 'maskUnits',\n mathematical: 'mathematical',\n mode: 'mode',\n numoctaves: 'numOctaves',\n offset: 'offset',\n opacity: 'opacity',\n operator: 'operator',\n order: 'order',\n orient: 'orient',\n orientation: 'orientation',\n origin: 'origin',\n overflow: 'overflow',\n overlineposition: 'overlinePosition',\n 'overline-position': 'overlinePosition',\n overlinethickness: 'overlineThickness',\n 'overline-thickness': 'overlineThickness',\n paintorder: 'paintOrder',\n 'paint-order': 'paintOrder',\n panose1: 'panose1',\n 'panose-1': 'panose1',\n pathlength: 'pathLength',\n patterncontentunits: 'patternContentUnits',\n patterntransform: 'patternTransform',\n patternunits: 'patternUnits',\n pointerevents: 'pointerEvents',\n 'pointer-events': 'pointerEvents',\n points: 'points',\n pointsatx: 'pointsAtX',\n pointsaty: 'pointsAtY',\n pointsatz: 'pointsAtZ',\n prefix: 'prefix',\n preservealpha: 'preserveAlpha',\n preserveaspectratio: 'preserveAspectRatio',\n primitiveunits: 'primitiveUnits',\n property: 'property',\n r: 'r',\n radius: 'radius',\n refx: 'refX',\n refy: 'refY',\n renderingintent: 'renderingIntent',\n 'rendering-intent': 'renderingIntent',\n repeatcount: 'repeatCount',\n repeatdur: 'repeatDur',\n requiredextensions: 'requiredExtensions',\n requiredfeatures: 'requiredFeatures',\n resource: 'resource',\n restart: 'restart',\n result: 'result',\n results: 'results',\n rotate: 'rotate',\n rx: 'rx',\n ry: 'ry',\n scale: 'scale',\n security: 'security',\n seed: 'seed',\n shaperendering: 'shapeRendering',\n 'shape-rendering': 'shapeRendering',\n slope: 'slope',\n spacing: 'spacing',\n specularconstant: 'specularConstant',\n specularexponent: 'specularExponent',\n speed: 'speed',\n spreadmethod: 'spreadMethod',\n startoffset: 'startOffset',\n stddeviation: 'stdDeviation',\n stemh: 'stemh',\n stemv: 'stemv',\n stitchtiles: 'stitchTiles',\n stopcolor: 'stopColor',\n 'stop-color': 'stopColor',\n stopopacity: 'stopOpacity',\n 'stop-opacity': 'stopOpacity',\n strikethroughposition: 'strikethroughPosition',\n 'strikethrough-position': 'strikethroughPosition',\n strikethroughthickness: 'strikethroughThickness',\n 'strikethrough-thickness': 'strikethroughThickness',\n string: 'string',\n stroke: 'stroke',\n strokedasharray: 'strokeDasharray',\n 'stroke-dasharray': 'strokeDasharray',\n strokedashoffset: 'strokeDashoffset',\n 'stroke-dashoffset': 'strokeDashoffset',\n strokelinecap: 'strokeLinecap',\n 'stroke-linecap': 'strokeLinecap',\n strokelinejoin: 'strokeLinejoin',\n 'stroke-linejoin': 'strokeLinejoin',\n strokemiterlimit: 'strokeMiterlimit',\n 'stroke-miterlimit': 'strokeMiterlimit',\n strokewidth: 'strokeWidth',\n 'stroke-width': 'strokeWidth',\n strokeopacity: 'strokeOpacity',\n 'stroke-opacity': 'strokeOpacity',\n suppresscontenteditablewarning: 'suppressContentEditableWarning',\n suppresshydrationwarning: 'suppressHydrationWarning',\n surfacescale: 'surfaceScale',\n systemlanguage: 'systemLanguage',\n tablevalues: 'tableValues',\n targetx: 'targetX',\n targety: 'targetY',\n textanchor: 'textAnchor',\n 'text-anchor': 'textAnchor',\n textdecoration: 'textDecoration',\n 'text-decoration': 'textDecoration',\n textlength: 'textLength',\n textrendering: 'textRendering',\n 'text-rendering': 'textRendering',\n to: 'to',\n transform: 'transform',\n typeof: 'typeof',\n u1: 'u1',\n u2: 'u2',\n underlineposition: 'underlinePosition',\n 'underline-position': 'underlinePosition',\n underlinethickness: 'underlineThickness',\n 'underline-thickness': 'underlineThickness',\n unicode: 'unicode',\n unicodebidi: 'unicodeBidi',\n 'unicode-bidi': 'unicodeBidi',\n unicoderange: 'unicodeRange',\n 'unicode-range': 'unicodeRange',\n unitsperem: 'unitsPerEm',\n 'units-per-em': 'unitsPerEm',\n unselectable: 'unselectable',\n valphabetic: 'vAlphabetic',\n 'v-alphabetic': 'vAlphabetic',\n values: 'values',\n vectoreffect: 'vectorEffect',\n 'vector-effect': 'vectorEffect',\n version: 'version',\n vertadvy: 'vertAdvY',\n 'vert-adv-y': 'vertAdvY',\n vertoriginx: 'vertOriginX',\n 'vert-origin-x': 'vertOriginX',\n vertoriginy: 'vertOriginY',\n 'vert-origin-y': 'vertOriginY',\n vhanging: 'vHanging',\n 'v-hanging': 'vHanging',\n videographic: 'vIdeographic',\n 'v-ideographic': 'vIdeographic',\n viewbox: 'viewBox',\n viewtarget: 'viewTarget',\n visibility: 'visibility',\n vmathematical: 'vMathematical',\n 'v-mathematical': 'vMathematical',\n vocab: 'vocab',\n widths: 'widths',\n wordspacing: 'wordSpacing',\n 'word-spacing': 'wordSpacing',\n writingmode: 'writingMode',\n 'writing-mode': 'writingMode',\n x1: 'x1',\n x2: 'x2',\n x: 'x',\n xchannelselector: 'xChannelSelector',\n xheight: 'xHeight',\n 'x-height': 'xHeight',\n xlinkactuate: 'xlinkActuate',\n 'xlink:actuate': 'xlinkActuate',\n xlinkarcrole: 'xlinkArcrole',\n 'xlink:arcrole': 'xlinkArcrole',\n xlinkhref: 'xlinkHref',\n 'xlink:href': 'xlinkHref',\n xlinkrole: 'xlinkRole',\n 'xlink:role': 'xlinkRole',\n xlinkshow: 'xlinkShow',\n 'xlink:show': 'xlinkShow',\n xlinktitle: 'xlinkTitle',\n 'xlink:title': 'xlinkTitle',\n xlinktype: 'xlinkType',\n 'xlink:type': 'xlinkType',\n xmlbase: 'xmlBase',\n 'xml:base': 'xmlBase',\n xmllang: 'xmlLang',\n 'xml:lang': 'xmlLang',\n xmlns: 'xmlns',\n 'xml:space': 'xmlSpace',\n xmlnsxlink: 'xmlnsXlink',\n 'xmlns:xlink': 'xmlnsXlink',\n xmlspace: 'xmlSpace',\n y1: 'y1',\n y2: 'y2',\n y: 'y',\n ychannelselector: 'yChannelSelector',\n z: 'z',\n zoomandpan: 'zoomAndPan'\n};\n\nvar ariaProperties = {\n 'aria-current': 0,\n // state\n 'aria-description': 0,\n 'aria-details': 0,\n 'aria-disabled': 0,\n // state\n 'aria-hidden': 0,\n // state\n 'aria-invalid': 0,\n // state\n 'aria-keyshortcuts': 0,\n 'aria-label': 0,\n 'aria-roledescription': 0,\n // Widget Attributes\n 'aria-autocomplete': 0,\n 'aria-checked': 0,\n 'aria-expanded': 0,\n 'aria-haspopup': 0,\n 'aria-level': 0,\n 'aria-modal': 0,\n 'aria-multiline': 0,\n 'aria-multiselectable': 0,\n 'aria-orientation': 0,\n 'aria-placeholder': 0,\n 'aria-pressed': 0,\n 'aria-readonly': 0,\n 'aria-required': 0,\n 'aria-selected': 0,\n 'aria-sort': 0,\n 'aria-valuemax': 0,\n 'aria-valuemin': 0,\n 'aria-valuenow': 0,\n 'aria-valuetext': 0,\n // Live Region Attributes\n 'aria-atomic': 0,\n 'aria-busy': 0,\n 'aria-live': 0,\n 'aria-relevant': 0,\n // Drag-and-Drop Attributes\n 'aria-dropeffect': 0,\n 'aria-grabbed': 0,\n // Relationship Attributes\n 'aria-activedescendant': 0,\n 'aria-colcount': 0,\n 'aria-colindex': 0,\n 'aria-colspan': 0,\n 'aria-controls': 0,\n 'aria-describedby': 0,\n 'aria-errormessage': 0,\n 'aria-flowto': 0,\n 'aria-labelledby': 0,\n 'aria-owns': 0,\n 'aria-posinset': 0,\n 'aria-rowcount': 0,\n 'aria-rowindex': 0,\n 'aria-rowspan': 0,\n 'aria-setsize': 0\n};\n\nvar warnedProperties = {};\nvar rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');\nvar rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');\n\nfunction validateProperty(tagName, name) {\n {\n if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) {\n return true;\n }\n\n if (rARIACamel.test(name)) {\n var ariaName = 'aria-' + name.slice(4).toLowerCase();\n var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; // If this is an aria-* attribute, but is not listed in the known DOM\n // DOM properties, then it is an invalid aria-* attribute.\n\n if (correctName == null) {\n error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);\n\n warnedProperties[name] = true;\n return true;\n } // aria-* attributes should be lowercase; suggest the lowercase version.\n\n\n if (name !== correctName) {\n error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);\n\n warnedProperties[name] = true;\n return true;\n }\n }\n\n if (rARIA.test(name)) {\n var lowerCasedName = name.toLowerCase();\n var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; // If this is an aria-* attribute, but is not listed in the known DOM\n // DOM properties, then it is an invalid aria-* attribute.\n\n if (standardName == null) {\n warnedProperties[name] = true;\n return false;\n } // aria-* attributes should be lowercase; suggest the lowercase version.\n\n\n if (name !== standardName) {\n error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);\n\n warnedProperties[name] = true;\n return true;\n }\n }\n }\n\n return true;\n}\n\nfunction warnInvalidARIAProps(type, props) {\n {\n var invalidProps = [];\n\n for (var key in props) {\n var isValid = validateProperty(type, key);\n\n if (!isValid) {\n invalidProps.push(key);\n }\n }\n\n var unknownPropString = invalidProps.map(function (prop) {\n return '`' + prop + '`';\n }).join(', ');\n\n if (invalidProps.length === 1) {\n error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);\n } else if (invalidProps.length > 1) {\n error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);\n }\n }\n}\n\nfunction validateProperties(type, props) {\n if (isCustomComponent(type, props)) {\n return;\n }\n\n warnInvalidARIAProps(type, props);\n}\n\nvar didWarnValueNull = false;\nfunction validateProperties$1(type, props) {\n {\n if (type !== 'input' && type !== 'textarea' && type !== 'select') {\n return;\n }\n\n if (props != null && props.value === null && !didWarnValueNull) {\n didWarnValueNull = true;\n\n if (type === 'select' && props.multiple) {\n error('`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type);\n } else {\n error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);\n }\n }\n }\n}\n\nvar validateProperty$1 = function () {};\n\n{\n var warnedProperties$1 = {};\n var EVENT_NAME_REGEX = /^on./;\n var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;\n var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');\n var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');\n\n validateProperty$1 = function (tagName, name, value, eventRegistry) {\n if (hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {\n return true;\n }\n\n var lowerCasedName = name.toLowerCase();\n\n if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {\n error('React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');\n\n warnedProperties$1[name] = true;\n return true;\n } // We can't rely on the event system being injected on the server.\n\n\n if (eventRegistry != null) {\n var registrationNameDependencies = eventRegistry.registrationNameDependencies,\n possibleRegistrationNames = eventRegistry.possibleRegistrationNames;\n\n if (registrationNameDependencies.hasOwnProperty(name)) {\n return true;\n }\n\n var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;\n\n if (registrationName != null) {\n error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);\n\n warnedProperties$1[name] = true;\n return true;\n }\n\n if (EVENT_NAME_REGEX.test(name)) {\n error('Unknown event handler property `%s`. It will be ignored.', name);\n\n warnedProperties$1[name] = true;\n return true;\n }\n } else if (EVENT_NAME_REGEX.test(name)) {\n // If no event plugins have been injected, we are in a server environment.\n // So we can't tell if the event name is correct for sure, but we can filter\n // out known bad ones like `onclick`. We can't suggest a specific replacement though.\n if (INVALID_EVENT_NAME_REGEX.test(name)) {\n error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);\n }\n\n warnedProperties$1[name] = true;\n return true;\n } // Let the ARIA attribute hook validate ARIA attributes\n\n\n if (rARIA$1.test(name) || rARIACamel$1.test(name)) {\n return true;\n }\n\n if (lowerCasedName === 'innerhtml') {\n error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');\n\n warnedProperties$1[name] = true;\n return true;\n }\n\n if (lowerCasedName === 'aria') {\n error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');\n\n warnedProperties$1[name] = true;\n return true;\n }\n\n if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {\n error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);\n\n warnedProperties$1[name] = true;\n return true;\n }\n\n if (typeof value === 'number' && isNaN(value)) {\n error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);\n\n warnedProperties$1[name] = true;\n return true;\n }\n\n var propertyInfo = getPropertyInfo(name);\n var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED; // Known attributes should match the casing specified in the property config.\n\n if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {\n var standardName = possibleStandardNames[lowerCasedName];\n\n if (standardName !== name) {\n error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);\n\n warnedProperties$1[name] = true;\n return true;\n }\n } else if (!isReserved && name !== lowerCasedName) {\n // Unknown attributes should have lowercase casing since that's how they\n // will be cased anyway with server rendering.\n error('React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName);\n\n warnedProperties$1[name] = true;\n return true;\n }\n\n if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {\n if (value) {\n error('Received `%s` for a non-boolean attribute `%s`.\\n\\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s=\"%s\" or %s={value.toString()}.', value, name, name, value, name);\n } else {\n error('Received `%s` for a non-boolean attribute `%s`.\\n\\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s=\"%s\" or %s={value.toString()}.\\n\\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);\n }\n\n warnedProperties$1[name] = true;\n return true;\n } // Now that we've validated casing, do not validate\n // data types for reserved props\n\n\n if (isReserved) {\n return true;\n } // Warn when a known attribute is a bad type\n\n\n if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {\n warnedProperties$1[name] = true;\n return false;\n } // Warn when passing the strings 'false' or 'true' into a boolean prop\n\n\n if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {\n error('Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string \"false\".', name, value);\n\n warnedProperties$1[name] = true;\n return true;\n }\n\n return true;\n };\n}\n\nvar warnUnknownProperties = function (type, props, eventRegistry) {\n {\n var unknownProps = [];\n\n for (var key in props) {\n var isValid = validateProperty$1(type, key, props[key], eventRegistry);\n\n if (!isValid) {\n unknownProps.push(key);\n }\n }\n\n var unknownPropString = unknownProps.map(function (prop) {\n return '`' + prop + '`';\n }).join(', ');\n\n if (unknownProps.length === 1) {\n error('Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type);\n } else if (unknownProps.length > 1) {\n error('Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type);\n }\n }\n};\n\nfunction validateProperties$2(type, props, eventRegistry) {\n if (isCustomComponent(type, props)) {\n return;\n }\n\n warnUnknownProperties(type, props, eventRegistry);\n}\n\nvar IS_EVENT_HANDLE_NON_MANAGED_NODE = 1;\nvar IS_NON_DELEGATED = 1 << 1;\nvar IS_CAPTURE_PHASE = 1 << 2;\n// set to LEGACY_FB_SUPPORT. LEGACY_FB_SUPPORT only gets set when\n// we call willDeferLaterForLegacyFBSupport, thus not bailing out\n// will result in endless cycles like an infinite loop.\n// We also don't want to defer during event replaying.\n\nvar SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS = IS_EVENT_HANDLE_NON_MANAGED_NODE | IS_NON_DELEGATED | IS_CAPTURE_PHASE;\n\n// This exists to avoid circular dependency between ReactDOMEventReplaying\n// and DOMPluginEventSystem.\nvar currentReplayingEvent = null;\nfunction setReplayingEvent(event) {\n {\n if (currentReplayingEvent !== null) {\n error('Expected currently replaying event to be null. This error ' + 'is likely caused by a bug in React. Please file an issue.');\n }\n }\n\n currentReplayingEvent = event;\n}\nfunction resetReplayingEvent() {\n {\n if (currentReplayingEvent === null) {\n error('Expected currently replaying event to not be null. This error ' + 'is likely caused by a bug in React. Please file an issue.');\n }\n }\n\n currentReplayingEvent = null;\n}\nfunction isReplayingEvent(event) {\n return event === currentReplayingEvent;\n}\n\n/**\n * Gets the target node from a native browser event by accounting for\n * inconsistencies in browser DOM APIs.\n *\n * @param {object} nativeEvent Native browser event.\n * @return {DOMEventTarget} Target node.\n */\n\nfunction getEventTarget(nativeEvent) {\n // Fallback to nativeEvent.srcElement for IE9\n // https://github.com/facebook/react/issues/12506\n var target = nativeEvent.target || nativeEvent.srcElement || window; // Normalize SVG <use> element events #4963\n\n if (target.correspondingUseElement) {\n target = target.correspondingUseElement;\n } // Safari may fire events on text nodes (Node.TEXT_NODE is 3).\n // @see http://www.quirksmode.org/js/events_properties.html\n\n\n return target.nodeType === TEXT_NODE ? target.parentNode : target;\n}\n\nvar restoreImpl = null;\nvar restoreTarget = null;\nvar restoreQueue = null;\n\nfunction restoreStateOfTarget(target) {\n // We perform this translation at the end of the event loop so that we\n // always receive the correct fiber here\n var internalInstance = getInstanceFromNode(target);\n\n if (!internalInstance) {\n // Unmounted\n return;\n }\n\n if (typeof restoreImpl !== 'function') {\n throw new Error('setRestoreImplementation() needs to be called to handle a target for controlled ' + 'events. This error is likely caused by a bug in React. Please file an issue.');\n }\n\n var stateNode = internalInstance.stateNode; // Guard against Fiber being unmounted.\n\n if (stateNode) {\n var _props = getFiberCurrentPropsFromNode(stateNode);\n\n restoreImpl(internalInstance.stateNode, internalInstance.type, _props);\n }\n}\n\nfunction setRestoreImplementation(impl) {\n restoreImpl = impl;\n}\nfunction enqueueStateRestore(target) {\n if (restoreTarget) {\n if (restoreQueue) {\n restoreQueue.push(target);\n } else {\n restoreQueue = [target];\n }\n } else {\n restoreTarget = target;\n }\n}\nfunction needsStateRestore() {\n return restoreTarget !== null || restoreQueue !== null;\n}\nfunction restoreStateIfNeeded() {\n if (!restoreTarget) {\n return;\n }\n\n var target = restoreTarget;\n var queuedTargets = restoreQueue;\n restoreTarget = null;\n restoreQueue = null;\n restoreStateOfTarget(target);\n\n if (queuedTargets) {\n for (var i = 0; i < queuedTargets.length; i++) {\n restoreStateOfTarget(queuedTargets[i]);\n }\n }\n}\n\n// the renderer. Such as when we're dispatching events or if third party\n// libraries need to call batchedUpdates. Eventually, this API will go away when\n// everything is batched by default. We'll then have a similar API to opt-out of\n// scheduled work and instead do synchronous work.\n// Defaults\n\nvar batchedUpdatesImpl = function (fn, bookkeeping) {\n return fn(bookkeeping);\n};\n\nvar flushSyncImpl = function () {};\n\nvar isInsideEventHandler = false;\n\nfunction finishEventHandler() {\n // Here we wait until all updates have propagated, which is important\n // when using controlled components within layers:\n // https://github.com/facebook/react/issues/1698\n // Then we restore state of any controlled component.\n var controlledComponentsHavePendingUpdates = needsStateRestore();\n\n if (controlledComponentsHavePendingUpdates) {\n // If a controlled event was fired, we may need to restore the state of\n // the DOM node back to the controlled value. This is necessary when React\n // bails out of the update without touching the DOM.\n // TODO: Restore state in the microtask, after the discrete updates flush,\n // instead of early flushing them here.\n flushSyncImpl();\n restoreStateIfNeeded();\n }\n}\n\nfunction batchedUpdates(fn, a, b) {\n if (isInsideEventHandler) {\n // If we are currently inside another batch, we need to wait until it\n // fully completes before restoring state.\n return fn(a, b);\n }\n\n isInsideEventHandler = true;\n\n try {\n return batchedUpdatesImpl(fn, a, b);\n } finally {\n isInsideEventHandler = false;\n finishEventHandler();\n }\n} // TODO: Replace with flushSync\nfunction setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushSyncImpl) {\n batchedUpdatesImpl = _batchedUpdatesImpl;\n flushSyncImpl = _flushSyncImpl;\n}\n\nfunction isInteractive(tag) {\n return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';\n}\n\nfunction shouldPreventMouseEvent(name, type, props) {\n switch (name) {\n case 'onClick':\n case 'onClickCapture':\n case 'onDoubleClick':\n case 'onDoubleClickCapture':\n case 'onMouseDown':\n case 'onMouseDownCapture':\n case 'onMouseMove':\n case 'onMouseMoveCapture':\n case 'onMouseUp':\n case 'onMouseUpCapture':\n case 'onMouseEnter':\n return !!(props.disabled && isInteractive(type));\n\n default:\n return false;\n }\n}\n/**\n * @param {object} inst The instance, which is the source of events.\n * @param {string} registrationName Name of listener (e.g. `onClick`).\n * @return {?function} The stored callback.\n */\n\n\nfunction getListener(inst, registrationName) {\n var stateNode = inst.stateNode;\n\n if (stateNode === null) {\n // Work in progress (ex: onload events in incremental mode).\n return null;\n }\n\n var props = getFiberCurrentPropsFromNode(stateNode);\n\n if (props === null) {\n // Work in progress.\n return null;\n }\n\n var listener = props[registrationName];\n\n if (shouldPreventMouseEvent(registrationName, inst.type, props)) {\n return null;\n }\n\n if (listener && typeof listener !== 'function') {\n throw new Error(\"Expected `\" + registrationName + \"` listener to be a function, instead got a value of `\" + typeof listener + \"` type.\");\n }\n\n return listener;\n}\n\nvar passiveBrowserEventsSupported = false; // Check if browser support events with passive listeners\n// https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support\n\nif (canUseDOM) {\n try {\n var options = {}; // $FlowFixMe: Ignore Flow complaining about needing a value\n\n Object.defineProperty(options, 'passive', {\n get: function () {\n passiveBrowserEventsSupported = true;\n }\n });\n window.addEventListener('test', options, options);\n window.removeEventListener('test', options, options);\n } catch (e) {\n passiveBrowserEventsSupported = false;\n }\n}\n\nfunction invokeGuardedCallbackProd(name, func, context, a, b, c, d, e, f) {\n var funcArgs = Array.prototype.slice.call(arguments, 3);\n\n try {\n func.apply(context, funcArgs);\n } catch (error) {\n this.onError(error);\n }\n}\n\nvar invokeGuardedCallbackImpl = invokeGuardedCallbackProd;\n\n{\n // In DEV mode, we swap out invokeGuardedCallback for a special version\n // that plays more nicely with the browser's DevTools. The idea is to preserve\n // \"Pause on exceptions\" behavior. Because React wraps all user-provided\n // functions in invokeGuardedCallback, and the production version of\n // invokeGuardedCallback uses a try-catch, all user exceptions are treated\n // like caught exceptions, and the DevTools won't pause unless the developer\n // takes the extra step of enabling pause on caught exceptions. This is\n // unintuitive, though, because even though React has caught the error, from\n // the developer's perspective, the error is uncaught.\n //\n // To preserve the expected \"Pause on exceptions\" behavior, we don't use a\n // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake\n // DOM node, and call the user-provided callback from inside an event handler\n // for that fake event. If the callback throws, the error is \"captured\" using\n // a global event handler. But because the error happens in a different\n // event loop context, it does not interrupt the normal program flow.\n // Effectively, this gives us try-catch behavior without actually using\n // try-catch. Neat!\n // Check that the browser supports the APIs we need to implement our special\n // DEV version of invokeGuardedCallback\n if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {\n var fakeNode = document.createElement('react');\n\n invokeGuardedCallbackImpl = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) {\n // If document doesn't exist we know for sure we will crash in this method\n // when we call document.createEvent(). However this can cause confusing\n // errors: https://github.com/facebook/create-react-app/issues/3482\n // So we preemptively throw with a better message instead.\n if (typeof document === 'undefined' || document === null) {\n throw new Error('The `document` global was defined when React was initialized, but is not ' + 'defined anymore. This can happen in a test environment if a component ' + 'schedules an update from an asynchronous callback, but the test has already ' + 'finished running. To solve this, you can either unmount the component at ' + 'the end of your test (and ensure that any asynchronous operations get ' + 'canceled in `componentWillUnmount`), or you can change the test itself ' + 'to be asynchronous.');\n }\n\n var evt = document.createEvent('Event');\n var didCall = false; // Keeps track of whether the user-provided callback threw an error. We\n // set this to true at the beginning, then set it to false right after\n // calling the function. If the function errors, `didError` will never be\n // set to false. This strategy works even if the browser is flaky and\n // fails to call our global error handler, because it doesn't rely on\n // the error event at all.\n\n var didError = true; // Keeps track of the value of window.event so that we can reset it\n // during the callback to let user code access window.event in the\n // browsers that support it.\n\n var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event\n // dispatching: https://github.com/facebook/react/issues/13688\n\n var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');\n\n function restoreAfterDispatch() {\n // We immediately remove the callback from event listeners so that\n // nested `invokeGuardedCallback` calls do not clash. Otherwise, a\n // nested call would trigger the fake event handlers of any call higher\n // in the stack.\n fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the\n // window.event assignment in both IE <= 10 as they throw an error\n // \"Member not found\" in strict mode, and in Firefox which does not\n // support window.event.\n\n if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {\n window.event = windowEvent;\n }\n } // Create an event handler for our fake event. We will synchronously\n // dispatch our fake event using `dispatchEvent`. Inside the handler, we\n // call the user-provided callback.\n\n\n var funcArgs = Array.prototype.slice.call(arguments, 3);\n\n function callCallback() {\n didCall = true;\n restoreAfterDispatch();\n func.apply(context, funcArgs);\n didError = false;\n } // Create a global error event handler. We use this to capture the value\n // that was thrown. It's possible that this error handler will fire more\n // than once; for example, if non-React code also calls `dispatchEvent`\n // and a handler for that event throws. We should be resilient to most of\n // those cases. Even if our error event handler fires more than once, the\n // last error event is always used. If the callback actually does error,\n // we know that the last error event is the correct one, because it's not\n // possible for anything else to have happened in between our callback\n // erroring and the code that follows the `dispatchEvent` call below. If\n // the callback doesn't error, but the error event was fired, we know to\n // ignore it because `didError` will be false, as described above.\n\n\n var error; // Use this to track whether the error event is ever called.\n\n var didSetError = false;\n var isCrossOriginError = false;\n\n function handleWindowError(event) {\n error = event.error;\n didSetError = true;\n\n if (error === null && event.colno === 0 && event.lineno === 0) {\n isCrossOriginError = true;\n }\n\n if (event.defaultPrevented) {\n // Some other error handler has prevented default.\n // Browsers silence the error report if this happens.\n // We'll remember this to later decide whether to log it or not.\n if (error != null && typeof error === 'object') {\n try {\n error._suppressLogging = true;\n } catch (inner) {// Ignore.\n }\n }\n }\n } // Create a fake event type.\n\n\n var evtType = \"react-\" + (name ? name : 'invokeguardedcallback'); // Attach our event handlers\n\n window.addEventListener('error', handleWindowError);\n fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function\n // errors, it will trigger our global error handler.\n\n evt.initEvent(evtType, false, false);\n fakeNode.dispatchEvent(evt);\n\n if (windowEventDescriptor) {\n Object.defineProperty(window, 'event', windowEventDescriptor);\n }\n\n if (didCall && didError) {\n if (!didSetError) {\n // The callback errored, but the error event never fired.\n // eslint-disable-next-line react-internal/prod-error-codes\n error = new Error('An error was thrown inside one of your components, but React ' + \"doesn't know what it was. This is likely due to browser \" + 'flakiness. React does its best to preserve the \"Pause on ' + 'exceptions\" behavior of the DevTools, which requires some ' + \"DEV-mode only tricks. It's possible that these don't work in \" + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.');\n } else if (isCrossOriginError) {\n // eslint-disable-next-line react-internal/prod-error-codes\n error = new Error(\"A cross-origin error was thrown. React doesn't have access to \" + 'the actual error object in development. ' + 'See https://reactjs.org/link/crossorigin-error for more information.');\n }\n\n this.onError(error);\n } // Remove our event listeners\n\n\n window.removeEventListener('error', handleWindowError);\n\n if (!didCall) {\n // Something went really wrong, and our event was not dispatched.\n // https://github.com/facebook/react/issues/16734\n // https://github.com/facebook/react/issues/16585\n // Fall back to the production implementation.\n restoreAfterDispatch();\n return invokeGuardedCallbackProd.apply(this, arguments);\n }\n };\n }\n}\n\nvar invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;\n\nvar hasError = false;\nvar caughtError = null; // Used by event system to capture/rethrow the first error.\n\nvar hasRethrowError = false;\nvar rethrowError = null;\nvar reporter = {\n onError: function (error) {\n hasError = true;\n caughtError = error;\n }\n};\n/**\n * Call a function while guarding against errors that happens within it.\n * Returns an error if it throws, otherwise null.\n *\n * In production, this is implemented using a try-catch. The reason we don't\n * use a try-catch directly is so that we can swap out a different\n * implementation in DEV mode.\n *\n * @param {String} name of the guard to use for logging or debugging\n * @param {Function} func The function to invoke\n * @param {*} context The context to use when calling the function\n * @param {...*} args Arguments for function\n */\n\nfunction invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {\n hasError = false;\n caughtError = null;\n invokeGuardedCallbackImpl$1.apply(reporter, arguments);\n}\n/**\n * Same as invokeGuardedCallback, but instead of returning an error, it stores\n * it in a global so it can be rethrown by `rethrowCaughtError` later.\n * TODO: See if caughtError and rethrowError can be unified.\n *\n * @param {String} name of the guard to use for logging or debugging\n * @param {Function} func The function to invoke\n * @param {*} context The context to use when calling the function\n * @param {...*} args Arguments for function\n */\n\nfunction invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {\n invokeGuardedCallback.apply(this, arguments);\n\n if (hasError) {\n var error = clearCaughtError();\n\n if (!hasRethrowError) {\n hasRethrowError = true;\n rethrowError = error;\n }\n }\n}\n/**\n * During execution of guarded functions we will capture the first error which\n * we will rethrow to be handled by the top level error handler.\n */\n\nfunction rethrowCaughtError() {\n if (hasRethrowError) {\n var error = rethrowError;\n hasRethrowError = false;\n rethrowError = null;\n throw error;\n }\n}\nfunction hasCaughtError() {\n return hasError;\n}\nfunction clearCaughtError() {\n if (hasError) {\n var error = caughtError;\n hasError = false;\n caughtError = null;\n return error;\n } else {\n throw new Error('clearCaughtError was called but no error was captured. This error ' + 'is likely caused by a bug in React. Please file an issue.');\n }\n}\n\n/**\n * `ReactInstanceMap` maintains a mapping from a public facing stateful\n * instance (key) and the internal representation (value). This allows public\n * methods to accept the user facing instance as an argument and map them back\n * to internal methods.\n *\n * Note that this module is currently shared and assumed to be stateless.\n * If this becomes an actual Map, that will break.\n */\nfunction get(key) {\n return key._reactInternals;\n}\nfunction has(key) {\n return key._reactInternals !== undefined;\n}\nfunction set(key, value) {\n key._reactInternals = value;\n}\n\n// Don't change these two values. They're used by React Dev Tools.\nvar NoFlags =\n/* */\n0;\nvar PerformedWork =\n/* */\n1; // You can change the rest (and add more).\n\nvar Placement =\n/* */\n2;\nvar Update =\n/* */\n4;\nvar ChildDeletion =\n/* */\n16;\nvar ContentReset =\n/* */\n32;\nvar Callback =\n/* */\n64;\nvar DidCapture =\n/* */\n128;\nvar ForceClientRender =\n/* */\n256;\nvar Ref =\n/* */\n512;\nvar Snapshot =\n/* */\n1024;\nvar Passive =\n/* */\n2048;\nvar Hydrating =\n/* */\n4096;\nvar Visibility =\n/* */\n8192;\nvar StoreConsistency =\n/* */\n16384;\nvar LifecycleEffectMask = Passive | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit)\n\nvar HostEffectMask =\n/* */\n32767; // These are not really side effects, but we still reuse this field.\n\nvar Incomplete =\n/* */\n32768;\nvar ShouldCapture =\n/* */\n65536;\nvar ForceUpdateForLegacySuspense =\n/* */\n131072;\nvar Forked =\n/* */\n1048576; // Static tags describe aspects of a fiber that are not specific to a render,\n// e.g. a fiber uses a passive effect (even if there are no updates on this particular render).\n// This enables us to defer more work in the unmount case,\n// since we can defer traversing the tree during layout to look for Passive effects,\n// and instead rely on the static flag as a signal that there may be cleanup work.\n\nvar RefStatic =\n/* */\n2097152;\nvar LayoutStatic =\n/* */\n4194304;\nvar PassiveStatic =\n/* */\n8388608; // These flags allow us to traverse to fibers that have effects on mount\n// without traversing the entire tree after every commit for\n// double invoking\n\nvar MountLayoutDev =\n/* */\n16777216;\nvar MountPassiveDev =\n/* */\n33554432; // Groups of flags that are used in the commit phase to skip over trees that\n// don't contain effects, by checking subtreeFlags.\n\nvar BeforeMutationMask = // TODO: Remove Update flag from before mutation phase by re-landing Visibility\n// flag logic (see #20043)\nUpdate | Snapshot | ( 0);\nvar MutationMask = Placement | Update | ChildDeletion | ContentReset | Ref | Hydrating | Visibility;\nvar LayoutMask = Update | Callback | Ref | Visibility; // TODO: Split into PassiveMountMask and PassiveUnmountMask\n\nvar PassiveMask = Passive | ChildDeletion; // Union of tags that don't get reset on clones.\n// This allows certain concepts to persist without recalculating them,\n// e.g. whether a subtree contains passive effects or portals.\n\nvar StaticMask = LayoutStatic | PassiveStatic | RefStatic;\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nfunction getNearestMountedFiber(fiber) {\n var node = fiber;\n var nearestMounted = fiber;\n\n if (!fiber.alternate) {\n // If there is no alternate, this might be a new tree that isn't inserted\n // yet. If it is, then it will have a pending insertion effect on it.\n var nextNode = node;\n\n do {\n node = nextNode;\n\n if ((node.flags & (Placement | Hydrating)) !== NoFlags) {\n // This is an insertion or in-progress hydration. The nearest possible\n // mounted fiber is the parent but we need to continue to figure out\n // if that one is still mounted.\n nearestMounted = node.return;\n }\n\n nextNode = node.return;\n } while (nextNode);\n } else {\n while (node.return) {\n node = node.return;\n }\n }\n\n if (node.tag === HostRoot) {\n // TODO: Check if this was a nested HostRoot when used with\n // renderContainerIntoSubtree.\n return nearestMounted;\n } // If we didn't hit the root, that means that we're in an disconnected tree\n // that has been unmounted.\n\n\n return null;\n}\nfunction getSuspenseInstanceFromFiber(fiber) {\n if (fiber.tag === SuspenseComponent) {\n var suspenseState = fiber.memoizedState;\n\n if (suspenseState === null) {\n var current = fiber.alternate;\n\n if (current !== null) {\n suspenseState = current.memoizedState;\n }\n }\n\n if (suspenseState !== null) {\n return suspenseState.dehydrated;\n }\n }\n\n return null;\n}\nfunction getContainerFromFiber(fiber) {\n return fiber.tag === HostRoot ? fiber.stateNode.containerInfo : null;\n}\nfunction isFiberMounted(fiber) {\n return getNearestMountedFiber(fiber) === fiber;\n}\nfunction isMounted(component) {\n {\n var owner = ReactCurrentOwner.current;\n\n if (owner !== null && owner.tag === ClassComponent) {\n var ownerFiber = owner;\n var instance = ownerFiber.stateNode;\n\n if (!instance._warnedAboutRefsInRender) {\n error('%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentNameFromFiber(ownerFiber) || 'A component');\n }\n\n instance._warnedAboutRefsInRender = true;\n }\n }\n\n var fiber = get(component);\n\n if (!fiber) {\n return false;\n }\n\n return getNearestMountedFiber(fiber) === fiber;\n}\n\nfunction assertIsMounted(fiber) {\n if (getNearestMountedFiber(fiber) !== fiber) {\n throw new Error('Unable to find node on an unmounted component.');\n }\n}\n\nfunction findCurrentFiberUsingSlowPath(fiber) {\n var alternate = fiber.alternate;\n\n if (!alternate) {\n // If there is no alternate, then we only need to check if it is mounted.\n var nearestMounted = getNearestMountedFiber(fiber);\n\n if (nearestMounted === null) {\n throw new Error('Unable to find node on an unmounted component.');\n }\n\n if (nearestMounted !== fiber) {\n return null;\n }\n\n return fiber;\n } // If we have two possible branches, we'll walk backwards up to the root\n // to see what path the root points to. On the way we may hit one of the\n // special cases and we'll deal with them.\n\n\n var a = fiber;\n var b = alternate;\n\n while (true) {\n var parentA = a.return;\n\n if (parentA === null) {\n // We're at the root.\n break;\n }\n\n var parentB = parentA.alternate;\n\n if (parentB === null) {\n // There is no alternate. This is an unusual case. Currently, it only\n // happens when a Suspense component is hidden. An extra fragment fiber\n // is inserted in between the Suspense fiber and its children. Skip\n // over this extra fragment fiber and proceed to the next parent.\n var nextParent = parentA.return;\n\n if (nextParent !== null) {\n a = b = nextParent;\n continue;\n } // If there's no parent, we're at the root.\n\n\n break;\n } // If both copies of the parent fiber point to the same child, we can\n // assume that the child is current. This happens when we bailout on low\n // priority: the bailed out fiber's child reuses the current child.\n\n\n if (parentA.child === parentB.child) {\n var child = parentA.child;\n\n while (child) {\n if (child === a) {\n // We've determined that A is the current branch.\n assertIsMounted(parentA);\n return fiber;\n }\n\n if (child === b) {\n // We've determined that B is the current branch.\n assertIsMounted(parentA);\n return alternate;\n }\n\n child = child.sibling;\n } // We should never have an alternate for any mounting node. So the only\n // way this could possibly happen is if this was unmounted, if at all.\n\n\n throw new Error('Unable to find node on an unmounted component.');\n }\n\n if (a.return !== b.return) {\n // The return pointer of A and the return pointer of B point to different\n // fibers. We assume that return pointers never criss-cross, so A must\n // belong to the child set of A.return, and B must belong to the child\n // set of B.return.\n a = parentA;\n b = parentB;\n } else {\n // The return pointers point to the same fiber. We'll have to use the\n // default, slow path: scan the child sets of each parent alternate to see\n // which child belongs to which set.\n //\n // Search parent A's child set\n var didFindChild = false;\n var _child = parentA.child;\n\n while (_child) {\n if (_child === a) {\n didFindChild = true;\n a = parentA;\n b = parentB;\n break;\n }\n\n if (_child === b) {\n didFindChild = true;\n b = parentA;\n a = parentB;\n break;\n }\n\n _child = _child.sibling;\n }\n\n if (!didFindChild) {\n // Search parent B's child set\n _child = parentB.child;\n\n while (_child) {\n if (_child === a) {\n didFindChild = true;\n a = parentB;\n b = parentA;\n break;\n }\n\n if (_child === b) {\n didFindChild = true;\n b = parentB;\n a = parentA;\n break;\n }\n\n _child = _child.sibling;\n }\n\n if (!didFindChild) {\n throw new Error('Child was not found in either parent set. This indicates a bug ' + 'in React related to the return pointer. Please file an issue.');\n }\n }\n }\n\n if (a.alternate !== b) {\n throw new Error(\"Return fibers should always be each others' alternates. \" + 'This error is likely caused by a bug in React. Please file an issue.');\n }\n } // If the root is not a host container, we're in a disconnected tree. I.e.\n // unmounted.\n\n\n if (a.tag !== HostRoot) {\n throw new Error('Unable to find node on an unmounted component.');\n }\n\n if (a.stateNode.current === a) {\n // We've determined that A is the current branch.\n return fiber;\n } // Otherwise B has to be current branch.\n\n\n return alternate;\n}\nfunction findCurrentHostFiber(parent) {\n var currentParent = findCurrentFiberUsingSlowPath(parent);\n return currentParent !== null ? findCurrentHostFiberImpl(currentParent) : null;\n}\n\nfunction findCurrentHostFiberImpl(node) {\n // Next we'll drill down this component to find the first HostComponent/Text.\n if (node.tag === HostComponent || node.tag === HostText) {\n return node;\n }\n\n var child = node.child;\n\n while (child !== null) {\n var match = findCurrentHostFiberImpl(child);\n\n if (match !== null) {\n return match;\n }\n\n child = child.sibling;\n }\n\n return null;\n}\n\nfunction findCurrentHostFiberWithNoPortals(parent) {\n var currentParent = findCurrentFiberUsingSlowPath(parent);\n return currentParent !== null ? findCurrentHostFiberWithNoPortalsImpl(currentParent) : null;\n}\n\nfunction findCurrentHostFiberWithNoPortalsImpl(node) {\n // Next we'll drill down this component to find the first HostComponent/Text.\n if (node.tag === HostComponent || node.tag === HostText) {\n return node;\n }\n\n var child = node.child;\n\n while (child !== null) {\n if (child.tag !== HostPortal) {\n var match = findCurrentHostFiberWithNoPortalsImpl(child);\n\n if (match !== null) {\n return match;\n }\n }\n\n child = child.sibling;\n }\n\n return null;\n}\n\n// This module only exists as an ESM wrapper around the external CommonJS\nvar scheduleCallback = Scheduler.unstable_scheduleCallback;\nvar cancelCallback = Scheduler.unstable_cancelCallback;\nvar shouldYield = Scheduler.unstable_shouldYield;\nvar requestPaint = Scheduler.unstable_requestPaint;\nvar now = Scheduler.unstable_now;\nvar getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel;\nvar ImmediatePriority = Scheduler.unstable_ImmediatePriority;\nvar UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;\nvar NormalPriority = Scheduler.unstable_NormalPriority;\nvar LowPriority = Scheduler.unstable_LowPriority;\nvar IdlePriority = Scheduler.unstable_IdlePriority;\n// this doesn't actually exist on the scheduler, but it *does*\n// on scheduler/unstable_mock, which we'll need for internal testing\nvar unstable_yieldValue = Scheduler.unstable_yieldValue;\nvar unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue;\n\nvar rendererID = null;\nvar injectedHook = null;\nvar injectedProfilingHooks = null;\nvar hasLoggedError = false;\nvar isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';\nfunction injectInternals(internals) {\n if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {\n // No DevTools\n return false;\n }\n\n var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;\n\n if (hook.isDisabled) {\n // This isn't a real property on the hook, but it can be set to opt out\n // of DevTools integration and associated warnings and logs.\n // https://github.com/facebook/react/issues/3877\n return true;\n }\n\n if (!hook.supportsFiber) {\n {\n error('The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://reactjs.org/link/react-devtools');\n } // DevTools exists, even though it doesn't support Fiber.\n\n\n return true;\n }\n\n try {\n if (enableSchedulingProfiler) {\n // Conditionally inject these hooks only if Timeline profiler is supported by this build.\n // This gives DevTools a way to feature detect that isn't tied to version number\n // (since profiling and timeline are controlled by different feature flags).\n internals = assign({}, internals, {\n getLaneLabelMap: getLaneLabelMap,\n injectProfilingHooks: injectProfilingHooks\n });\n }\n\n rendererID = hook.inject(internals); // We have successfully injected, so now it is safe to set up hooks.\n\n injectedHook = hook;\n } catch (err) {\n // Catch all errors because it is unsafe to throw during initialization.\n {\n error('React instrumentation encountered an error: %s.', err);\n }\n }\n\n if (hook.checkDCE) {\n // This is the real DevTools.\n return true;\n } else {\n // This is likely a hook installed by Fast Refresh runtime.\n return false;\n }\n}\nfunction onScheduleRoot(root, children) {\n {\n if (injectedHook && typeof injectedHook.onScheduleFiberRoot === 'function') {\n try {\n injectedHook.onScheduleFiberRoot(rendererID, root, children);\n } catch (err) {\n if ( !hasLoggedError) {\n hasLoggedError = true;\n\n error('React instrumentation encountered an error: %s', err);\n }\n }\n }\n }\n}\nfunction onCommitRoot(root, eventPriority) {\n if (injectedHook && typeof injectedHook.onCommitFiberRoot === 'function') {\n try {\n var didError = (root.current.flags & DidCapture) === DidCapture;\n\n if (enableProfilerTimer) {\n var schedulerPriority;\n\n switch (eventPriority) {\n case DiscreteEventPriority:\n schedulerPriority = ImmediatePriority;\n break;\n\n case ContinuousEventPriority:\n schedulerPriority = UserBlockingPriority;\n break;\n\n case DefaultEventPriority:\n schedulerPriority = NormalPriority;\n break;\n\n case IdleEventPriority:\n schedulerPriority = IdlePriority;\n break;\n\n default:\n schedulerPriority = NormalPriority;\n break;\n }\n\n injectedHook.onCommitFiberRoot(rendererID, root, schedulerPriority, didError);\n } else {\n injectedHook.onCommitFiberRoot(rendererID, root, undefined, didError);\n }\n } catch (err) {\n {\n if (!hasLoggedError) {\n hasLoggedError = true;\n\n error('React instrumentation encountered an error: %s', err);\n }\n }\n }\n }\n}\nfunction onPostCommitRoot(root) {\n if (injectedHook && typeof injectedHook.onPostCommitFiberRoot === 'function') {\n try {\n injectedHook.onPostCommitFiberRoot(rendererID, root);\n } catch (err) {\n {\n if (!hasLoggedError) {\n hasLoggedError = true;\n\n error('React instrumentation encountered an error: %s', err);\n }\n }\n }\n }\n}\nfunction onCommitUnmount(fiber) {\n if (injectedHook && typeof injectedHook.onCommitFiberUnmount === 'function') {\n try {\n injectedHook.onCommitFiberUnmount(rendererID, fiber);\n } catch (err) {\n {\n if (!hasLoggedError) {\n hasLoggedError = true;\n\n error('React instrumentation encountered an error: %s', err);\n }\n }\n }\n }\n}\nfunction setIsStrictModeForDevtools(newIsStrictMode) {\n {\n if (typeof unstable_yieldValue === 'function') {\n // We're in a test because Scheduler.unstable_yieldValue only exists\n // in SchedulerMock. To reduce the noise in strict mode tests,\n // suppress warnings and disable scheduler yielding during the double render\n unstable_setDisableYieldValue(newIsStrictMode);\n setSuppressWarning(newIsStrictMode);\n }\n\n if (injectedHook && typeof injectedHook.setStrictMode === 'function') {\n try {\n injectedHook.setStrictMode(rendererID, newIsStrictMode);\n } catch (err) {\n {\n if (!hasLoggedError) {\n hasLoggedError = true;\n\n error('React instrumentation encountered an error: %s', err);\n }\n }\n }\n }\n }\n} // Profiler API hooks\n\nfunction injectProfilingHooks(profilingHooks) {\n injectedProfilingHooks = profilingHooks;\n}\n\nfunction getLaneLabelMap() {\n {\n var map = new Map();\n var lane = 1;\n\n for (var index = 0; index < TotalLanes; index++) {\n var label = getLabelForLane(lane);\n map.set(lane, label);\n lane *= 2;\n }\n\n return map;\n }\n}\n\nfunction markCommitStarted(lanes) {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markCommitStarted === 'function') {\n injectedProfilingHooks.markCommitStarted(lanes);\n }\n }\n}\nfunction markCommitStopped() {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markCommitStopped === 'function') {\n injectedProfilingHooks.markCommitStopped();\n }\n }\n}\nfunction markComponentRenderStarted(fiber) {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentRenderStarted === 'function') {\n injectedProfilingHooks.markComponentRenderStarted(fiber);\n }\n }\n}\nfunction markComponentRenderStopped() {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentRenderStopped === 'function') {\n injectedProfilingHooks.markComponentRenderStopped();\n }\n }\n}\nfunction markComponentPassiveEffectMountStarted(fiber) {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentPassiveEffectMountStarted === 'function') {\n injectedProfilingHooks.markComponentPassiveEffectMountStarted(fiber);\n }\n }\n}\nfunction markComponentPassiveEffectMountStopped() {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentPassiveEffectMountStopped === 'function') {\n injectedProfilingHooks.markComponentPassiveEffectMountStopped();\n }\n }\n}\nfunction markComponentPassiveEffectUnmountStarted(fiber) {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStarted === 'function') {\n injectedProfilingHooks.markComponentPassiveEffectUnmountStarted(fiber);\n }\n }\n}\nfunction markComponentPassiveEffectUnmountStopped() {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped === 'function') {\n injectedProfilingHooks.markComponentPassiveEffectUnmountStopped();\n }\n }\n}\nfunction markComponentLayoutEffectMountStarted(fiber) {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentLayoutEffectMountStarted === 'function') {\n injectedProfilingHooks.markComponentLayoutEffectMountStarted(fiber);\n }\n }\n}\nfunction markComponentLayoutEffectMountStopped() {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentLayoutEffectMountStopped === 'function') {\n injectedProfilingHooks.markComponentLayoutEffectMountStopped();\n }\n }\n}\nfunction markComponentLayoutEffectUnmountStarted(fiber) {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted === 'function') {\n injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(fiber);\n }\n }\n}\nfunction markComponentLayoutEffectUnmountStopped() {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped === 'function') {\n injectedProfilingHooks.markComponentLayoutEffectUnmountStopped();\n }\n }\n}\nfunction markComponentErrored(fiber, thrownValue, lanes) {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentErrored === 'function') {\n injectedProfilingHooks.markComponentErrored(fiber, thrownValue, lanes);\n }\n }\n}\nfunction markComponentSuspended(fiber, wakeable, lanes) {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentSuspended === 'function') {\n injectedProfilingHooks.markComponentSuspended(fiber, wakeable, lanes);\n }\n }\n}\nfunction markLayoutEffectsStarted(lanes) {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markLayoutEffectsStarted === 'function') {\n injectedProfilingHooks.markLayoutEffectsStarted(lanes);\n }\n }\n}\nfunction markLayoutEffectsStopped() {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markLayoutEffectsStopped === 'function') {\n injectedProfilingHooks.markLayoutEffectsStopped();\n }\n }\n}\nfunction markPassiveEffectsStarted(lanes) {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markPassiveEffectsStarted === 'function') {\n injectedProfilingHooks.markPassiveEffectsStarted(lanes);\n }\n }\n}\nfunction markPassiveEffectsStopped() {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markPassiveEffectsStopped === 'function') {\n injectedProfilingHooks.markPassiveEffectsStopped();\n }\n }\n}\nfunction markRenderStarted(lanes) {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markRenderStarted === 'function') {\n injectedProfilingHooks.markRenderStarted(lanes);\n }\n }\n}\nfunction markRenderYielded() {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markRenderYielded === 'function') {\n injectedProfilingHooks.markRenderYielded();\n }\n }\n}\nfunction markRenderStopped() {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markRenderStopped === 'function') {\n injectedProfilingHooks.markRenderStopped();\n }\n }\n}\nfunction markRenderScheduled(lane) {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markRenderScheduled === 'function') {\n injectedProfilingHooks.markRenderScheduled(lane);\n }\n }\n}\nfunction markForceUpdateScheduled(fiber, lane) {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markForceUpdateScheduled === 'function') {\n injectedProfilingHooks.markForceUpdateScheduled(fiber, lane);\n }\n }\n}\nfunction markStateUpdateScheduled(fiber, lane) {\n {\n if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markStateUpdateScheduled === 'function') {\n injectedProfilingHooks.markStateUpdateScheduled(fiber, lane);\n }\n }\n}\n\nvar NoMode =\n/* */\n0; // TODO: Remove ConcurrentMode by reading from the root tag instead\n\nvar ConcurrentMode =\n/* */\n1;\nvar ProfileMode =\n/* */\n2;\nvar StrictLegacyMode =\n/* */\n8;\nvar StrictEffectsMode =\n/* */\n16;\n\n// TODO: This is pretty well supported by browsers. Maybe we can drop it.\nvar clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; // Count leading zeros.\n// Based on:\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32\n\nvar log = Math.log;\nvar LN2 = Math.LN2;\n\nfunction clz32Fallback(x) {\n var asUint = x >>> 0;\n\n if (asUint === 0) {\n return 32;\n }\n\n return 31 - (log(asUint) / LN2 | 0) | 0;\n}\n\n// If those values are changed that package should be rebuilt and redeployed.\n\nvar TotalLanes = 31;\nvar NoLanes =\n/* */\n0;\nvar NoLane =\n/* */\n0;\nvar SyncLane =\n/* */\n1;\nvar InputContinuousHydrationLane =\n/* */\n2;\nvar InputContinuousLane =\n/* */\n4;\nvar DefaultHydrationLane =\n/* */\n8;\nvar DefaultLane =\n/* */\n16;\nvar TransitionHydrationLane =\n/* */\n32;\nvar TransitionLanes =\n/* */\n4194240;\nvar TransitionLane1 =\n/* */\n64;\nvar TransitionLane2 =\n/* */\n128;\nvar TransitionLane3 =\n/* */\n256;\nvar TransitionLane4 =\n/* */\n512;\nvar TransitionLane5 =\n/* */\n1024;\nvar TransitionLane6 =\n/* */\n2048;\nvar TransitionLane7 =\n/* */\n4096;\nvar TransitionLane8 =\n/* */\n8192;\nvar TransitionLane9 =\n/* */\n16384;\nvar TransitionLane10 =\n/* */\n32768;\nvar TransitionLane11 =\n/* */\n65536;\nvar TransitionLane12 =\n/* */\n131072;\nvar TransitionLane13 =\n/* */\n262144;\nvar TransitionLane14 =\n/* */\n524288;\nvar TransitionLane15 =\n/* */\n1048576;\nvar TransitionLane16 =\n/* */\n2097152;\nvar RetryLanes =\n/* */\n130023424;\nvar RetryLane1 =\n/* */\n4194304;\nvar RetryLane2 =\n/* */\n8388608;\nvar RetryLane3 =\n/* */\n16777216;\nvar RetryLane4 =\n/* */\n33554432;\nvar RetryLane5 =\n/* */\n67108864;\nvar SomeRetryLane = RetryLane1;\nvar SelectiveHydrationLane =\n/* */\n134217728;\nvar NonIdleLanes =\n/* */\n268435455;\nvar IdleHydrationLane =\n/* */\n268435456;\nvar IdleLane =\n/* */\n536870912;\nvar OffscreenLane =\n/* */\n1073741824; // This function is used for the experimental timeline (react-devtools-timeline)\n// It should be kept in sync with the Lanes values above.\n\nfunction getLabelForLane(lane) {\n {\n if (lane & SyncLane) {\n return 'Sync';\n }\n\n if (lane & InputContinuousHydrationLane) {\n return 'InputContinuousHydration';\n }\n\n if (lane & InputContinuousLane) {\n return 'InputContinuous';\n }\n\n if (lane & DefaultHydrationLane) {\n return 'DefaultHydration';\n }\n\n if (lane & DefaultLane) {\n return 'Default';\n }\n\n if (lane & TransitionHydrationLane) {\n return 'TransitionHydration';\n }\n\n if (lane & TransitionLanes) {\n return 'Transition';\n }\n\n if (lane & RetryLanes) {\n return 'Retry';\n }\n\n if (lane & SelectiveHydrationLane) {\n return 'SelectiveHydration';\n }\n\n if (lane & IdleHydrationLane) {\n return 'IdleHydration';\n }\n\n if (lane & IdleLane) {\n return 'Idle';\n }\n\n if (lane & OffscreenLane) {\n return 'Offscreen';\n }\n }\n}\nvar NoTimestamp = -1;\nvar nextTransitionLane = TransitionLane1;\nvar nextRetryLane = RetryLane1;\n\nfunction getHighestPriorityLanes(lanes) {\n switch (getHighestPriorityLane(lanes)) {\n case SyncLane:\n return SyncLane;\n\n case InputContinuousHydrationLane:\n return InputContinuousHydrationLane;\n\n case InputContinuousLane:\n return InputContinuousLane;\n\n case DefaultHydrationLane:\n return DefaultHydrationLane;\n\n case DefaultLane:\n return DefaultLane;\n\n case TransitionHydrationLane:\n return TransitionHydrationLane;\n\n case TransitionLane1:\n case TransitionLane2:\n case TransitionLane3:\n case TransitionLane4:\n case TransitionLane5:\n case TransitionLane6:\n case TransitionLane7:\n case TransitionLane8:\n case TransitionLane9:\n case TransitionLane10:\n case TransitionLane11:\n case TransitionLane12:\n case TransitionLane13:\n case TransitionLane14:\n case TransitionLane15:\n case TransitionLane16:\n return lanes & TransitionLanes;\n\n case RetryLane1:\n case RetryLane2:\n case RetryLane3:\n case RetryLane4:\n case RetryLane5:\n return lanes & RetryLanes;\n\n case SelectiveHydrationLane:\n return SelectiveHydrationLane;\n\n case IdleHydrationLane:\n return IdleHydrationLane;\n\n case IdleLane:\n return IdleLane;\n\n case OffscreenLane:\n return OffscreenLane;\n\n default:\n {\n error('Should have found matching lanes. This is a bug in React.');\n } // This shouldn't be reachable, but as a fallback, return the entire bitmask.\n\n\n return lanes;\n }\n}\n\nfunction getNextLanes(root, wipLanes) {\n // Early bailout if there's no pending work left.\n var pendingLanes = root.pendingLanes;\n\n if (pendingLanes === NoLanes) {\n return NoLanes;\n }\n\n var nextLanes = NoLanes;\n var suspendedLanes = root.suspendedLanes;\n var pingedLanes = root.pingedLanes; // Do not work on any idle work until all the non-idle work has finished,\n // even if the work is suspended.\n\n var nonIdlePendingLanes = pendingLanes & NonIdleLanes;\n\n if (nonIdlePendingLanes !== NoLanes) {\n var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes;\n\n if (nonIdleUnblockedLanes !== NoLanes) {\n nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes);\n } else {\n var nonIdlePingedLanes = nonIdlePendingLanes & pingedLanes;\n\n if (nonIdlePingedLanes !== NoLanes) {\n nextLanes = getHighestPriorityLanes(nonIdlePingedLanes);\n }\n }\n } else {\n // The only remaining work is Idle.\n var unblockedLanes = pendingLanes & ~suspendedLanes;\n\n if (unblockedLanes !== NoLanes) {\n nextLanes = getHighestPriorityLanes(unblockedLanes);\n } else {\n if (pingedLanes !== NoLanes) {\n nextLanes = getHighestPriorityLanes(pingedLanes);\n }\n }\n }\n\n if (nextLanes === NoLanes) {\n // This should only be reachable if we're suspended\n // TODO: Consider warning in this path if a fallback timer is not scheduled.\n return NoLanes;\n } // If we're already in the middle of a render, switching lanes will interrupt\n // it and we'll lose our progress. We should only do this if the new lanes are\n // higher priority.\n\n\n if (wipLanes !== NoLanes && wipLanes !== nextLanes && // If we already suspended with a delay, then interrupting is fine. Don't\n // bother waiting until the root is complete.\n (wipLanes & suspendedLanes) === NoLanes) {\n var nextLane = getHighestPriorityLane(nextLanes);\n var wipLane = getHighestPriorityLane(wipLanes);\n\n if ( // Tests whether the next lane is equal or lower priority than the wip\n // one. This works because the bits decrease in priority as you go left.\n nextLane >= wipLane || // Default priority updates should not interrupt transition updates. The\n // only difference between default updates and transition updates is that\n // default updates do not support refresh transitions.\n nextLane === DefaultLane && (wipLane & TransitionLanes) !== NoLanes) {\n // Keep working on the existing in-progress tree. Do not interrupt.\n return wipLanes;\n }\n }\n\n if ((nextLanes & InputContinuousLane) !== NoLanes) {\n // When updates are sync by default, we entangle continuous priority updates\n // and default updates, so they render in the same batch. The only reason\n // they use separate lanes is because continuous updates should interrupt\n // transitions, but default updates should not.\n nextLanes |= pendingLanes & DefaultLane;\n } // Check for entangled lanes and add them to the batch.\n //\n // A lane is said to be entangled with another when it's not allowed to render\n // in a batch that does not also include the other lane. Typically we do this\n // when multiple updates have the same source, and we only want to respond to\n // the most recent event from that source.\n //\n // Note that we apply entanglements *after* checking for partial work above.\n // This means that if a lane is entangled during an interleaved event while\n // it's already rendering, we won't interrupt it. This is intentional, since\n // entanglement is usually \"best effort\": we'll try our best to render the\n // lanes in the same batch, but it's not worth throwing out partially\n // completed work in order to do it.\n // TODO: Reconsider this. The counter-argument is that the partial work\n // represents an intermediate state, which we don't want to show to the user.\n // And by spending extra time finishing it, we're increasing the amount of\n // time it takes to show the final state, which is what they are actually\n // waiting for.\n //\n // For those exceptions where entanglement is semantically important, like\n // useMutableSource, we should ensure that there is no partial work at the\n // time we apply the entanglement.\n\n\n var entangledLanes = root.entangledLanes;\n\n if (entangledLanes !== NoLanes) {\n var entanglements = root.entanglements;\n var lanes = nextLanes & entangledLanes;\n\n while (lanes > 0) {\n var index = pickArbitraryLaneIndex(lanes);\n var lane = 1 << index;\n nextLanes |= entanglements[index];\n lanes &= ~lane;\n }\n }\n\n return nextLanes;\n}\nfunction getMostRecentEventTime(root, lanes) {\n var eventTimes = root.eventTimes;\n var mostRecentEventTime = NoTimestamp;\n\n while (lanes > 0) {\n var index = pickArbitraryLaneIndex(lanes);\n var lane = 1 << index;\n var eventTime = eventTimes[index];\n\n if (eventTime > mostRecentEventTime) {\n mostRecentEventTime = eventTime;\n }\n\n lanes &= ~lane;\n }\n\n return mostRecentEventTime;\n}\n\nfunction computeExpirationTime(lane, currentTime) {\n switch (lane) {\n case SyncLane:\n case InputContinuousHydrationLane:\n case InputContinuousLane:\n // User interactions should expire slightly more quickly.\n //\n // NOTE: This is set to the corresponding constant as in Scheduler.js.\n // When we made it larger, a product metric in www regressed, suggesting\n // there's a user interaction that's being starved by a series of\n // synchronous updates. If that theory is correct, the proper solution is\n // to fix the starvation. However, this scenario supports the idea that\n // expiration times are an important safeguard when starvation\n // does happen.\n return currentTime + 250;\n\n case DefaultHydrationLane:\n case DefaultLane:\n case TransitionHydrationLane:\n case TransitionLane1:\n case TransitionLane2:\n case TransitionLane3:\n case TransitionLane4:\n case TransitionLane5:\n case TransitionLane6:\n case TransitionLane7:\n case TransitionLane8:\n case TransitionLane9:\n case TransitionLane10:\n case TransitionLane11:\n case TransitionLane12:\n case TransitionLane13:\n case TransitionLane14:\n case TransitionLane15:\n case TransitionLane16:\n return currentTime + 5000;\n\n case RetryLane1:\n case RetryLane2:\n case RetryLane3:\n case RetryLane4:\n case RetryLane5:\n // TODO: Retries should be allowed to expire if they are CPU bound for\n // too long, but when I made this change it caused a spike in browser\n // crashes. There must be some other underlying bug; not super urgent but\n // ideally should figure out why and fix it. Unfortunately we don't have\n // a repro for the crashes, only detected via production metrics.\n return NoTimestamp;\n\n case SelectiveHydrationLane:\n case IdleHydrationLane:\n case IdleLane:\n case OffscreenLane:\n // Anything idle priority or lower should never expire.\n return NoTimestamp;\n\n default:\n {\n error('Should have found matching lanes. This is a bug in React.');\n }\n\n return NoTimestamp;\n }\n}\n\nfunction markStarvedLanesAsExpired(root, currentTime) {\n // TODO: This gets called every time we yield. We can optimize by storing\n // the earliest expiration time on the root. Then use that to quickly bail out\n // of this function.\n var pendingLanes = root.pendingLanes;\n var suspendedLanes = root.suspendedLanes;\n var pingedLanes = root.pingedLanes;\n var expirationTimes = root.expirationTimes; // Iterate through the pending lanes and check if we've reached their\n // expiration time. If so, we'll assume the update is being starved and mark\n // it as expired to force it to finish.\n\n var lanes = pendingLanes;\n\n while (lanes > 0) {\n var index = pickArbitraryLaneIndex(lanes);\n var lane = 1 << index;\n var expirationTime = expirationTimes[index];\n\n if (expirationTime === NoTimestamp) {\n // Found a pending lane with no expiration time. If it's not suspended, or\n // if it's pinged, assume it's CPU-bound. Compute a new expiration time\n // using the current time.\n if ((lane & suspendedLanes) === NoLanes || (lane & pingedLanes) !== NoLanes) {\n // Assumes timestamps are monotonically increasing.\n expirationTimes[index] = computeExpirationTime(lane, currentTime);\n }\n } else if (expirationTime <= currentTime) {\n // This lane expired\n root.expiredLanes |= lane;\n }\n\n lanes &= ~lane;\n }\n} // This returns the highest priority pending lanes regardless of whether they\n// are suspended.\n\nfunction getHighestPriorityPendingLanes(root) {\n return getHighestPriorityLanes(root.pendingLanes);\n}\nfunction getLanesToRetrySynchronouslyOnError(root) {\n var everythingButOffscreen = root.pendingLanes & ~OffscreenLane;\n\n if (everythingButOffscreen !== NoLanes) {\n return everythingButOffscreen;\n }\n\n if (everythingButOffscreen & OffscreenLane) {\n return OffscreenLane;\n }\n\n return NoLanes;\n}\nfunction includesSyncLane(lanes) {\n return (lanes & SyncLane) !== NoLanes;\n}\nfunction includesNonIdleWork(lanes) {\n return (lanes & NonIdleLanes) !== NoLanes;\n}\nfunction includesOnlyRetries(lanes) {\n return (lanes & RetryLanes) === lanes;\n}\nfunction includesOnlyNonUrgentLanes(lanes) {\n var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane;\n return (lanes & UrgentLanes) === NoLanes;\n}\nfunction includesOnlyTransitions(lanes) {\n return (lanes & TransitionLanes) === lanes;\n}\nfunction includesBlockingLane(root, lanes) {\n\n var SyncDefaultLanes = InputContinuousHydrationLane | InputContinuousLane | DefaultHydrationLane | DefaultLane;\n return (lanes & SyncDefaultLanes) !== NoLanes;\n}\nfunction includesExpiredLane(root, lanes) {\n // This is a separate check from includesBlockingLane because a lane can\n // expire after a render has already started.\n return (lanes & root.expiredLanes) !== NoLanes;\n}\nfunction isTransitionLane(lane) {\n return (lane & TransitionLanes) !== NoLanes;\n}\nfunction claimNextTransitionLane() {\n // Cycle through the lanes, assigning each new transition to the next lane.\n // In most cases, this means every transition gets its own lane, until we\n // run out of lanes and cycle back to the beginning.\n var lane = nextTransitionLane;\n nextTransitionLane <<= 1;\n\n if ((nextTransitionLane & TransitionLanes) === NoLanes) {\n nextTransitionLane = TransitionLane1;\n }\n\n return lane;\n}\nfunction claimNextRetryLane() {\n var lane = nextRetryLane;\n nextRetryLane <<= 1;\n\n if ((nextRetryLane & RetryLanes) === NoLanes) {\n nextRetryLane = RetryLane1;\n }\n\n return lane;\n}\nfunction getHighestPriorityLane(lanes) {\n return lanes & -lanes;\n}\nfunction pickArbitraryLane(lanes) {\n // This wrapper function gets inlined. Only exists so to communicate that it\n // doesn't matter which bit is selected; you can pick any bit without\n // affecting the algorithms where its used. Here I'm using\n // getHighestPriorityLane because it requires the fewest operations.\n return getHighestPriorityLane(lanes);\n}\n\nfunction pickArbitraryLaneIndex(lanes) {\n return 31 - clz32(lanes);\n}\n\nfunction laneToIndex(lane) {\n return pickArbitraryLaneIndex(lane);\n}\n\nfunction includesSomeLane(a, b) {\n return (a & b) !== NoLanes;\n}\nfunction isSubsetOfLanes(set, subset) {\n return (set & subset) === subset;\n}\nfunction mergeLanes(a, b) {\n return a | b;\n}\nfunction removeLanes(set, subset) {\n return set & ~subset;\n}\nfunction intersectLanes(a, b) {\n return a & b;\n} // Seems redundant, but it changes the type from a single lane (used for\n// updates) to a group of lanes (used for flushing work).\n\nfunction laneToLanes(lane) {\n return lane;\n}\nfunction higherPriorityLane(a, b) {\n // This works because the bit ranges decrease in priority as you go left.\n return a !== NoLane && a < b ? a : b;\n}\nfunction createLaneMap(initial) {\n // Intentionally pushing one by one.\n // https://v8.dev/blog/elements-kinds#avoid-creating-holes\n var laneMap = [];\n\n for (var i = 0; i < TotalLanes; i++) {\n laneMap.push(initial);\n }\n\n return laneMap;\n}\nfunction markRootUpdated(root, updateLane, eventTime) {\n root.pendingLanes |= updateLane; // If there are any suspended transitions, it's possible this new update\n // could unblock them. Clear the suspended lanes so that we can try rendering\n // them again.\n //\n // TODO: We really only need to unsuspend only lanes that are in the\n // `subtreeLanes` of the updated fiber, or the update lanes of the return\n // path. This would exclude suspended updates in an unrelated sibling tree,\n // since there's no way for this update to unblock it.\n //\n // We don't do this if the incoming update is idle, because we never process\n // idle updates until after all the regular updates have finished; there's no\n // way it could unblock a transition.\n\n if (updateLane !== IdleLane) {\n root.suspendedLanes = NoLanes;\n root.pingedLanes = NoLanes;\n }\n\n var eventTimes = root.eventTimes;\n var index = laneToIndex(updateLane); // We can always overwrite an existing timestamp because we prefer the most\n // recent event, and we assume time is monotonically increasing.\n\n eventTimes[index] = eventTime;\n}\nfunction markRootSuspended(root, suspendedLanes) {\n root.suspendedLanes |= suspendedLanes;\n root.pingedLanes &= ~suspendedLanes; // The suspended lanes are no longer CPU-bound. Clear their expiration times.\n\n var expirationTimes = root.expirationTimes;\n var lanes = suspendedLanes;\n\n while (lanes > 0) {\n var index = pickArbitraryLaneIndex(lanes);\n var lane = 1 << index;\n expirationTimes[index] = NoTimestamp;\n lanes &= ~lane;\n }\n}\nfunction markRootPinged(root, pingedLanes, eventTime) {\n root.pingedLanes |= root.suspendedLanes & pingedLanes;\n}\nfunction markRootFinished(root, remainingLanes) {\n var noLongerPendingLanes = root.pendingLanes & ~remainingLanes;\n root.pendingLanes = remainingLanes; // Let's try everything again\n\n root.suspendedLanes = NoLanes;\n root.pingedLanes = NoLanes;\n root.expiredLanes &= remainingLanes;\n root.mutableReadLanes &= remainingLanes;\n root.entangledLanes &= remainingLanes;\n var entanglements = root.entanglements;\n var eventTimes = root.eventTimes;\n var expirationTimes = root.expirationTimes; // Clear the lanes that no longer have pending work\n\n var lanes = noLongerPendingLanes;\n\n while (lanes > 0) {\n var index = pickArbitraryLaneIndex(lanes);\n var lane = 1 << index;\n entanglements[index] = NoLanes;\n eventTimes[index] = NoTimestamp;\n expirationTimes[index] = NoTimestamp;\n lanes &= ~lane;\n }\n}\nfunction markRootEntangled(root, entangledLanes) {\n // In addition to entangling each of the given lanes with each other, we also\n // have to consider _transitive_ entanglements. For each lane that is already\n // entangled with *any* of the given lanes, that lane is now transitively\n // entangled with *all* the given lanes.\n //\n // Translated: If C is entangled with A, then entangling A with B also\n // entangles C with B.\n //\n // If this is hard to grasp, it might help to intentionally break this\n // function and look at the tests that fail in ReactTransition-test.js. Try\n // commenting out one of the conditions below.\n var rootEntangledLanes = root.entangledLanes |= entangledLanes;\n var entanglements = root.entanglements;\n var lanes = rootEntangledLanes;\n\n while (lanes) {\n var index = pickArbitraryLaneIndex(lanes);\n var lane = 1 << index;\n\n if ( // Is this one of the newly entangled lanes?\n lane & entangledLanes | // Is this lane transitively entangled with the newly entangled lanes?\n entanglements[index] & entangledLanes) {\n entanglements[index] |= entangledLanes;\n }\n\n lanes &= ~lane;\n }\n}\nfunction getBumpedLaneForHydration(root, renderLanes) {\n var renderLane = getHighestPriorityLane(renderLanes);\n var lane;\n\n switch (renderLane) {\n case InputContinuousLane:\n lane = InputContinuousHydrationLane;\n break;\n\n case DefaultLane:\n lane = DefaultHydrationLane;\n break;\n\n case TransitionLane1:\n case TransitionLane2:\n case TransitionLane3:\n case TransitionLane4:\n case TransitionLane5:\n case TransitionLane6:\n case TransitionLane7:\n case TransitionLane8:\n case TransitionLane9:\n case TransitionLane10:\n case TransitionLane11:\n case TransitionLane12:\n case TransitionLane13:\n case TransitionLane14:\n case TransitionLane15:\n case TransitionLane16:\n case RetryLane1:\n case RetryLane2:\n case RetryLane3:\n case RetryLane4:\n case RetryLane5:\n lane = TransitionHydrationLane;\n break;\n\n case IdleLane:\n lane = IdleHydrationLane;\n break;\n\n default:\n // Everything else is already either a hydration lane, or shouldn't\n // be retried at a hydration lane.\n lane = NoLane;\n break;\n } // Check if the lane we chose is suspended. If so, that indicates that we\n // already attempted and failed to hydrate at that level. Also check if we're\n // already rendering that lane, which is rare but could happen.\n\n\n if ((lane & (root.suspendedLanes | renderLanes)) !== NoLane) {\n // Give up trying to hydrate and fall back to client render.\n return NoLane;\n }\n\n return lane;\n}\nfunction addFiberToLanesMap(root, fiber, lanes) {\n\n if (!isDevToolsPresent) {\n return;\n }\n\n var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap;\n\n while (lanes > 0) {\n var index = laneToIndex(lanes);\n var lane = 1 << index;\n var updaters = pendingUpdatersLaneMap[index];\n updaters.add(fiber);\n lanes &= ~lane;\n }\n}\nfunction movePendingFibersToMemoized(root, lanes) {\n\n if (!isDevToolsPresent) {\n return;\n }\n\n var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap;\n var memoizedUpdaters = root.memoizedUpdaters;\n\n while (lanes > 0) {\n var index = laneToIndex(lanes);\n var lane = 1 << index;\n var updaters = pendingUpdatersLaneMap[index];\n\n if (updaters.size > 0) {\n updaters.forEach(function (fiber) {\n var alternate = fiber.alternate;\n\n if (alternate === null || !memoizedUpdaters.has(alternate)) {\n memoizedUpdaters.add(fiber);\n }\n });\n updaters.clear();\n }\n\n lanes &= ~lane;\n }\n}\nfunction getTransitionsForLanes(root, lanes) {\n {\n return null;\n }\n}\n\nvar DiscreteEventPriority = SyncLane;\nvar ContinuousEventPriority = InputContinuousLane;\nvar DefaultEventPriority = DefaultLane;\nvar IdleEventPriority = IdleLane;\nvar currentUpdatePriority = NoLane;\nfunction getCurrentUpdatePriority() {\n return currentUpdatePriority;\n}\nfunction setCurrentUpdatePriority(newPriority) {\n currentUpdatePriority = newPriority;\n}\nfunction runWithPriority(priority, fn) {\n var previousPriority = currentUpdatePriority;\n\n try {\n currentUpdatePriority = priority;\n return fn();\n } finally {\n currentUpdatePriority = previousPriority;\n }\n}\nfunction higherEventPriority(a, b) {\n return a !== 0 && a < b ? a : b;\n}\nfunction lowerEventPriority(a, b) {\n return a === 0 || a > b ? a : b;\n}\nfunction isHigherEventPriority(a, b) {\n return a !== 0 && a < b;\n}\nfunction lanesToEventPriority(lanes) {\n var lane = getHighestPriorityLane(lanes);\n\n if (!isHigherEventPriority(DiscreteEventPriority, lane)) {\n return DiscreteEventPriority;\n }\n\n if (!isHigherEventPriority(ContinuousEventPriority, lane)) {\n return ContinuousEventPriority;\n }\n\n if (includesNonIdleWork(lane)) {\n return DefaultEventPriority;\n }\n\n return IdleEventPriority;\n}\n\n// This is imported by the event replaying implementation in React DOM. It's\n// in a separate file to break a circular dependency between the renderer and\n// the reconciler.\nfunction isRootDehydrated(root) {\n var currentState = root.current.memoizedState;\n return currentState.isDehydrated;\n}\n\nvar _attemptSynchronousHydration;\n\nfunction setAttemptSynchronousHydration(fn) {\n _attemptSynchronousHydration = fn;\n}\nfunction attemptSynchronousHydration(fiber) {\n _attemptSynchronousHydration(fiber);\n}\nvar attemptContinuousHydration;\nfunction setAttemptContinuousHydration(fn) {\n attemptContinuousHydration = fn;\n}\nvar attemptHydrationAtCurrentPriority;\nfunction setAttemptHydrationAtCurrentPriority(fn) {\n attemptHydrationAtCurrentPriority = fn;\n}\nvar getCurrentUpdatePriority$1;\nfunction setGetCurrentUpdatePriority(fn) {\n getCurrentUpdatePriority$1 = fn;\n}\nvar attemptHydrationAtPriority;\nfunction setAttemptHydrationAtPriority(fn) {\n attemptHydrationAtPriority = fn;\n} // TODO: Upgrade this definition once we're on a newer version of Flow that\n// has this definition built-in.\n\nvar hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed.\n\nvar queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout.\n// if the last target was dehydrated.\n\nvar queuedFocus = null;\nvar queuedDrag = null;\nvar queuedMouse = null; // For pointer events there can be one latest event per pointerId.\n\nvar queuedPointers = new Map();\nvar queuedPointerCaptures = new Map(); // We could consider replaying selectionchange and touchmoves too.\n\nvar queuedExplicitHydrationTargets = [];\nvar discreteReplayableEvents = ['mousedown', 'mouseup', 'touchcancel', 'touchend', 'touchstart', 'auxclick', 'dblclick', 'pointercancel', 'pointerdown', 'pointerup', 'dragend', 'dragstart', 'drop', 'compositionend', 'compositionstart', 'keydown', 'keypress', 'keyup', 'input', 'textInput', // Intentionally camelCase\n'copy', 'cut', 'paste', 'click', 'change', 'contextmenu', 'reset', 'submit'];\nfunction isDiscreteEventThatRequiresHydration(eventType) {\n return discreteReplayableEvents.indexOf(eventType) > -1;\n}\n\nfunction createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {\n return {\n blockedOn: blockedOn,\n domEventName: domEventName,\n eventSystemFlags: eventSystemFlags,\n nativeEvent: nativeEvent,\n targetContainers: [targetContainer]\n };\n}\n\nfunction clearIfContinuousEvent(domEventName, nativeEvent) {\n switch (domEventName) {\n case 'focusin':\n case 'focusout':\n queuedFocus = null;\n break;\n\n case 'dragenter':\n case 'dragleave':\n queuedDrag = null;\n break;\n\n case 'mouseover':\n case 'mouseout':\n queuedMouse = null;\n break;\n\n case 'pointerover':\n case 'pointerout':\n {\n var pointerId = nativeEvent.pointerId;\n queuedPointers.delete(pointerId);\n break;\n }\n\n case 'gotpointercapture':\n case 'lostpointercapture':\n {\n var _pointerId = nativeEvent.pointerId;\n queuedPointerCaptures.delete(_pointerId);\n break;\n }\n }\n}\n\nfunction accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {\n if (existingQueuedEvent === null || existingQueuedEvent.nativeEvent !== nativeEvent) {\n var queuedEvent = createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent);\n\n if (blockedOn !== null) {\n var _fiber2 = getInstanceFromNode(blockedOn);\n\n if (_fiber2 !== null) {\n // Attempt to increase the priority of this target.\n attemptContinuousHydration(_fiber2);\n }\n }\n\n return queuedEvent;\n } // If we have already queued this exact event, then it's because\n // the different event systems have different DOM event listeners.\n // We can accumulate the flags, and the targetContainers, and\n // store a single event to be replayed.\n\n\n existingQueuedEvent.eventSystemFlags |= eventSystemFlags;\n var targetContainers = existingQueuedEvent.targetContainers;\n\n if (targetContainer !== null && targetContainers.indexOf(targetContainer) === -1) {\n targetContainers.push(targetContainer);\n }\n\n return existingQueuedEvent;\n}\n\nfunction queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {\n // These set relatedTarget to null because the replayed event will be treated as if we\n // moved from outside the window (no target) onto the target once it hydrates.\n // Instead of mutating we could clone the event.\n switch (domEventName) {\n case 'focusin':\n {\n var focusEvent = nativeEvent;\n queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, domEventName, eventSystemFlags, targetContainer, focusEvent);\n return true;\n }\n\n case 'dragenter':\n {\n var dragEvent = nativeEvent;\n queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, domEventName, eventSystemFlags, targetContainer, dragEvent);\n return true;\n }\n\n case 'mouseover':\n {\n var mouseEvent = nativeEvent;\n queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, domEventName, eventSystemFlags, targetContainer, mouseEvent);\n return true;\n }\n\n case 'pointerover':\n {\n var pointerEvent = nativeEvent;\n var pointerId = pointerEvent.pointerId;\n queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, pointerEvent));\n return true;\n }\n\n case 'gotpointercapture':\n {\n var _pointerEvent = nativeEvent;\n var _pointerId2 = _pointerEvent.pointerId;\n queuedPointerCaptures.set(_pointerId2, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, _pointerEvent));\n return true;\n }\n }\n\n return false;\n} // Check if this target is unblocked. Returns true if it's unblocked.\n\nfunction attemptExplicitHydrationTarget(queuedTarget) {\n // TODO: This function shares a lot of logic with findInstanceBlockingEvent.\n // Try to unify them. It's a bit tricky since it would require two return\n // values.\n var targetInst = getClosestInstanceFromNode(queuedTarget.target);\n\n if (targetInst !== null) {\n var nearestMounted = getNearestMountedFiber(targetInst);\n\n if (nearestMounted !== null) {\n var tag = nearestMounted.tag;\n\n if (tag === SuspenseComponent) {\n var instance = getSuspenseInstanceFromFiber(nearestMounted);\n\n if (instance !== null) {\n // We're blocked on hydrating this boundary.\n // Increase its priority.\n queuedTarget.blockedOn = instance;\n attemptHydrationAtPriority(queuedTarget.priority, function () {\n attemptHydrationAtCurrentPriority(nearestMounted);\n });\n return;\n }\n } else if (tag === HostRoot) {\n var root = nearestMounted.stateNode;\n\n if (isRootDehydrated(root)) {\n queuedTarget.blockedOn = getContainerFromFiber(nearestMounted); // We don't currently have a way to increase the priority of\n // a root other than sync.\n\n return;\n }\n }\n }\n }\n\n queuedTarget.blockedOn = null;\n}\n\nfunction queueExplicitHydrationTarget(target) {\n // TODO: This will read the priority if it's dispatched by the React\n // event system but not native events. Should read window.event.type, like\n // we do for updates (getCurrentEventPriority).\n var updatePriority = getCurrentUpdatePriority$1();\n var queuedTarget = {\n blockedOn: null,\n target: target,\n priority: updatePriority\n };\n var i = 0;\n\n for (; i < queuedExplicitHydrationTargets.length; i++) {\n // Stop once we hit the first target with lower priority than\n if (!isHigherEventPriority(updatePriority, queuedExplicitHydrationTargets[i].priority)) {\n break;\n }\n }\n\n queuedExplicitHydrationTargets.splice(i, 0, queuedTarget);\n\n if (i === 0) {\n attemptExplicitHydrationTarget(queuedTarget);\n }\n}\n\nfunction attemptReplayContinuousQueuedEvent(queuedEvent) {\n if (queuedEvent.blockedOn !== null) {\n return false;\n }\n\n var targetContainers = queuedEvent.targetContainers;\n\n while (targetContainers.length > 0) {\n var targetContainer = targetContainers[0];\n var nextBlockedOn = findInstanceBlockingEvent(queuedEvent.domEventName, queuedEvent.eventSystemFlags, targetContainer, queuedEvent.nativeEvent);\n\n if (nextBlockedOn === null) {\n {\n var nativeEvent = queuedEvent.nativeEvent;\n var nativeEventClone = new nativeEvent.constructor(nativeEvent.type, nativeEvent);\n setReplayingEvent(nativeEventClone);\n nativeEvent.target.dispatchEvent(nativeEventClone);\n resetReplayingEvent();\n }\n } else {\n // We're still blocked. Try again later.\n var _fiber3 = getInstanceFromNode(nextBlockedOn);\n\n if (_fiber3 !== null) {\n attemptContinuousHydration(_fiber3);\n }\n\n queuedEvent.blockedOn = nextBlockedOn;\n return false;\n } // This target container was successfully dispatched. Try the next.\n\n\n targetContainers.shift();\n }\n\n return true;\n}\n\nfunction attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {\n if (attemptReplayContinuousQueuedEvent(queuedEvent)) {\n map.delete(key);\n }\n}\n\nfunction replayUnblockedEvents() {\n hasScheduledReplayAttempt = false;\n\n\n if (queuedFocus !== null && attemptReplayContinuousQueuedEvent(queuedFocus)) {\n queuedFocus = null;\n }\n\n if (queuedDrag !== null && attemptReplayContinuousQueuedEvent(queuedDrag)) {\n queuedDrag = null;\n }\n\n if (queuedMouse !== null && attemptReplayContinuousQueuedEvent(queuedMouse)) {\n queuedMouse = null;\n }\n\n queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap);\n queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);\n}\n\nfunction scheduleCallbackIfUnblocked(queuedEvent, unblocked) {\n if (queuedEvent.blockedOn === unblocked) {\n queuedEvent.blockedOn = null;\n\n if (!hasScheduledReplayAttempt) {\n hasScheduledReplayAttempt = true; // Schedule a callback to attempt replaying as many events as are\n // now unblocked. This first might not actually be unblocked yet.\n // We could check it early to avoid scheduling an unnecessary callback.\n\n Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, replayUnblockedEvents);\n }\n }\n}\n\nfunction retryIfBlockedOn(unblocked) {\n // Mark anything that was blocked on this as no longer blocked\n // and eligible for a replay.\n if (queuedDiscreteEvents.length > 0) {\n scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's\n // worth it because we expect very few discrete events to queue up and once\n // we are actually fully unblocked it will be fast to replay them.\n\n for (var i = 1; i < queuedDiscreteEvents.length; i++) {\n var queuedEvent = queuedDiscreteEvents[i];\n\n if (queuedEvent.blockedOn === unblocked) {\n queuedEvent.blockedOn = null;\n }\n }\n }\n\n if (queuedFocus !== null) {\n scheduleCallbackIfUnblocked(queuedFocus, unblocked);\n }\n\n if (queuedDrag !== null) {\n scheduleCallbackIfUnblocked(queuedDrag, unblocked);\n }\n\n if (queuedMouse !== null) {\n scheduleCallbackIfUnblocked(queuedMouse, unblocked);\n }\n\n var unblock = function (queuedEvent) {\n return scheduleCallbackIfUnblocked(queuedEvent, unblocked);\n };\n\n queuedPointers.forEach(unblock);\n queuedPointerCaptures.forEach(unblock);\n\n for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) {\n var queuedTarget = queuedExplicitHydrationTargets[_i];\n\n if (queuedTarget.blockedOn === unblocked) {\n queuedTarget.blockedOn = null;\n }\n }\n\n while (queuedExplicitHydrationTargets.length > 0) {\n var nextExplicitTarget = queuedExplicitHydrationTargets[0];\n\n if (nextExplicitTarget.blockedOn !== null) {\n // We're still blocked.\n break;\n } else {\n attemptExplicitHydrationTarget(nextExplicitTarget);\n\n if (nextExplicitTarget.blockedOn === null) {\n // We're unblocked.\n queuedExplicitHydrationTargets.shift();\n }\n }\n }\n}\n\nvar ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; // TODO: can we stop exporting these?\n\nvar _enabled = true; // This is exported in FB builds for use by legacy FB layer infra.\n// We'd like to remove this but it's not clear if this is safe.\n\nfunction setEnabled(enabled) {\n _enabled = !!enabled;\n}\nfunction isEnabled() {\n return _enabled;\n}\nfunction createEventListenerWrapperWithPriority(targetContainer, domEventName, eventSystemFlags) {\n var eventPriority = getEventPriority(domEventName);\n var listenerWrapper;\n\n switch (eventPriority) {\n case DiscreteEventPriority:\n listenerWrapper = dispatchDiscreteEvent;\n break;\n\n case ContinuousEventPriority:\n listenerWrapper = dispatchContinuousEvent;\n break;\n\n case DefaultEventPriority:\n default:\n listenerWrapper = dispatchEvent;\n break;\n }\n\n return listenerWrapper.bind(null, domEventName, eventSystemFlags, targetContainer);\n}\n\nfunction dispatchDiscreteEvent(domEventName, eventSystemFlags, container, nativeEvent) {\n var previousPriority = getCurrentUpdatePriority();\n var prevTransition = ReactCurrentBatchConfig.transition;\n ReactCurrentBatchConfig.transition = null;\n\n try {\n setCurrentUpdatePriority(DiscreteEventPriority);\n dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);\n } finally {\n setCurrentUpdatePriority(previousPriority);\n ReactCurrentBatchConfig.transition = prevTransition;\n }\n}\n\nfunction dispatchContinuousEvent(domEventName, eventSystemFlags, container, nativeEvent) {\n var previousPriority = getCurrentUpdatePriority();\n var prevTransition = ReactCurrentBatchConfig.transition;\n ReactCurrentBatchConfig.transition = null;\n\n try {\n setCurrentUpdatePriority(ContinuousEventPriority);\n dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);\n } finally {\n setCurrentUpdatePriority(previousPriority);\n ReactCurrentBatchConfig.transition = prevTransition;\n }\n}\n\nfunction dispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) {\n if (!_enabled) {\n return;\n }\n\n {\n dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay(domEventName, eventSystemFlags, targetContainer, nativeEvent);\n }\n}\n\nfunction dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay(domEventName, eventSystemFlags, targetContainer, nativeEvent) {\n var blockedOn = findInstanceBlockingEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent);\n\n if (blockedOn === null) {\n dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, return_targetInst, targetContainer);\n clearIfContinuousEvent(domEventName, nativeEvent);\n return;\n }\n\n if (queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent)) {\n nativeEvent.stopPropagation();\n return;\n } // We need to clear only if we didn't queue because\n // queueing is accumulative.\n\n\n clearIfContinuousEvent(domEventName, nativeEvent);\n\n if (eventSystemFlags & IS_CAPTURE_PHASE && isDiscreteEventThatRequiresHydration(domEventName)) {\n while (blockedOn !== null) {\n var fiber = getInstanceFromNode(blockedOn);\n\n if (fiber !== null) {\n attemptSynchronousHydration(fiber);\n }\n\n var nextBlockedOn = findInstanceBlockingEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent);\n\n if (nextBlockedOn === null) {\n dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, return_targetInst, targetContainer);\n }\n\n if (nextBlockedOn === blockedOn) {\n break;\n }\n\n blockedOn = nextBlockedOn;\n }\n\n if (blockedOn !== null) {\n nativeEvent.stopPropagation();\n }\n\n return;\n } // This is not replayable so we'll invoke it but without a target,\n // in case the event system needs to trace it.\n\n\n dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, null, targetContainer);\n}\n\nvar return_targetInst = null; // Returns a SuspenseInstance or Container if it's blocked.\n// The return_targetInst field above is conceptually part of the return value.\n\nfunction findInstanceBlockingEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) {\n // TODO: Warn if _enabled is false.\n return_targetInst = null;\n var nativeEventTarget = getEventTarget(nativeEvent);\n var targetInst = getClosestInstanceFromNode(nativeEventTarget);\n\n if (targetInst !== null) {\n var nearestMounted = getNearestMountedFiber(targetInst);\n\n if (nearestMounted === null) {\n // This tree has been unmounted already. Dispatch without a target.\n targetInst = null;\n } else {\n var tag = nearestMounted.tag;\n\n if (tag === SuspenseComponent) {\n var instance = getSuspenseInstanceFromFiber(nearestMounted);\n\n if (instance !== null) {\n // Queue the event to be replayed later. Abort dispatching since we\n // don't want this event dispatched twice through the event system.\n // TODO: If this is the first discrete event in the queue. Schedule an increased\n // priority for this boundary.\n return instance;\n } // This shouldn't happen, something went wrong but to avoid blocking\n // the whole system, dispatch the event without a target.\n // TODO: Warn.\n\n\n targetInst = null;\n } else if (tag === HostRoot) {\n var root = nearestMounted.stateNode;\n\n if (isRootDehydrated(root)) {\n // If this happens during a replay something went wrong and it might block\n // the whole system.\n return getContainerFromFiber(nearestMounted);\n }\n\n targetInst = null;\n } else if (nearestMounted !== targetInst) {\n // If we get an event (ex: img onload) before committing that\n // component's mount, ignore it for now (that is, treat it as if it was an\n // event on a non-React tree). We might also consider queueing events and\n // dispatching them after the mount.\n targetInst = null;\n }\n }\n }\n\n return_targetInst = targetInst; // We're not blocked on anything.\n\n return null;\n}\nfunction getEventPriority(domEventName) {\n switch (domEventName) {\n // Used by SimpleEventPlugin:\n case 'cancel':\n case 'click':\n case 'close':\n case 'contextmenu':\n case 'copy':\n case 'cut':\n case 'auxclick':\n case 'dblclick':\n case 'dragend':\n case 'dragstart':\n case 'drop':\n case 'focusin':\n case 'focusout':\n case 'input':\n case 'invalid':\n case 'keydown':\n case 'keypress':\n case 'keyup':\n case 'mousedown':\n case 'mouseup':\n case 'paste':\n case 'pause':\n case 'play':\n case 'pointercancel':\n case 'pointerdown':\n case 'pointerup':\n case 'ratechange':\n case 'reset':\n case 'resize':\n case 'seeked':\n case 'submit':\n case 'touchcancel':\n case 'touchend':\n case 'touchstart':\n case 'volumechange': // Used by polyfills:\n // eslint-disable-next-line no-fallthrough\n\n case 'change':\n case 'selectionchange':\n case 'textInput':\n case 'compositionstart':\n case 'compositionend':\n case 'compositionupdate': // Only enableCreateEventHandleAPI:\n // eslint-disable-next-line no-fallthrough\n\n case 'beforeblur':\n case 'afterblur': // Not used by React but could be by user code:\n // eslint-disable-next-line no-fallthrough\n\n case 'beforeinput':\n case 'blur':\n case 'fullscreenchange':\n case 'focus':\n case 'hashchange':\n case 'popstate':\n case 'select':\n case 'selectstart':\n return DiscreteEventPriority;\n\n case 'drag':\n case 'dragenter':\n case 'dragexit':\n case 'dragleave':\n case 'dragover':\n case 'mousemove':\n case 'mouseout':\n case 'mouseover':\n case 'pointermove':\n case 'pointerout':\n case 'pointerover':\n case 'scroll':\n case 'toggle':\n case 'touchmove':\n case 'wheel': // Not used by React but could be by user code:\n // eslint-disable-next-line no-fallthrough\n\n case 'mouseenter':\n case 'mouseleave':\n case 'pointerenter':\n case 'pointerleave':\n return ContinuousEventPriority;\n\n case 'message':\n {\n // We might be in the Scheduler callback.\n // Eventually this mechanism will be replaced by a check\n // of the current priority on the native scheduler.\n var schedulerPriority = getCurrentPriorityLevel();\n\n switch (schedulerPriority) {\n case ImmediatePriority:\n return DiscreteEventPriority;\n\n case UserBlockingPriority:\n return ContinuousEventPriority;\n\n case NormalPriority:\n case LowPriority:\n // TODO: Handle LowSchedulerPriority, somehow. Maybe the same lane as hydration.\n return DefaultEventPriority;\n\n case IdlePriority:\n return IdleEventPriority;\n\n default:\n return DefaultEventPriority;\n }\n }\n\n default:\n return DefaultEventPriority;\n }\n}\n\nfunction addEventBubbleListener(target, eventType, listener) {\n target.addEventListener(eventType, listener, false);\n return listener;\n}\nfunction addEventCaptureListener(target, eventType, listener) {\n target.addEventListener(eventType, listener, true);\n return listener;\n}\nfunction addEventCaptureListenerWithPassiveFlag(target, eventType, listener, passive) {\n target.addEventListener(eventType, listener, {\n capture: true,\n passive: passive\n });\n return listener;\n}\nfunction addEventBubbleListenerWithPassiveFlag(target, eventType, listener, passive) {\n target.addEventListener(eventType, listener, {\n passive: passive\n });\n return listener;\n}\n\n/**\n * These variables store information about text content of a target node,\n * allowing comparison of content before and after a given event.\n *\n * Identify the node where selection currently begins, then observe\n * both its text content and its current position in the DOM. Since the\n * browser may natively replace the target node during composition, we can\n * use its position to find its replacement.\n *\n *\n */\nvar root = null;\nvar startText = null;\nvar fallbackText = null;\nfunction initialize(nativeEventTarget) {\n root = nativeEventTarget;\n startText = getText();\n return true;\n}\nfunction reset() {\n root = null;\n startText = null;\n fallbackText = null;\n}\nfunction getData() {\n if (fallbackText) {\n return fallbackText;\n }\n\n var start;\n var startValue = startText;\n var startLength = startValue.length;\n var end;\n var endValue = getText();\n var endLength = endValue.length;\n\n for (start = 0; start < startLength; start++) {\n if (startValue[start] !== endValue[start]) {\n break;\n }\n }\n\n var minEnd = startLength - start;\n\n for (end = 1; end <= minEnd; end++) {\n if (startValue[startLength - end] !== endValue[endLength - end]) {\n break;\n }\n }\n\n var sliceTail = end > 1 ? 1 - end : undefined;\n fallbackText = endValue.slice(start, sliceTail);\n return fallbackText;\n}\nfunction getText() {\n if ('value' in root) {\n return root.value;\n }\n\n return root.textContent;\n}\n\n/**\n * `charCode` represents the actual \"character code\" and is safe to use with\n * `String.fromCharCode`. As such, only keys that correspond to printable\n * characters produce a valid `charCode`, the only exception to this is Enter.\n * The Tab-key is considered non-printable and does not have a `charCode`,\n * presumably because it does not produce a tab-character in browsers.\n *\n * @param {object} nativeEvent Native browser event.\n * @return {number} Normalized `charCode` property.\n */\nfunction getEventCharCode(nativeEvent) {\n var charCode;\n var keyCode = nativeEvent.keyCode;\n\n if ('charCode' in nativeEvent) {\n charCode = nativeEvent.charCode; // FF does not set `charCode` for the Enter-key, check against `keyCode`.\n\n if (charCode === 0 && keyCode === 13) {\n charCode = 13;\n }\n } else {\n // IE8 does not implement `charCode`, but `keyCode` has the correct value.\n charCode = keyCode;\n } // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)\n // report Enter as charCode 10 when ctrl is pressed.\n\n\n if (charCode === 10) {\n charCode = 13;\n } // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.\n // Must not discard the (non-)printable Enter-key.\n\n\n if (charCode >= 32 || charCode === 13) {\n return charCode;\n }\n\n return 0;\n}\n\nfunction functionThatReturnsTrue() {\n return true;\n}\n\nfunction functionThatReturnsFalse() {\n return false;\n} // This is intentionally a factory so that we have different returned constructors.\n// If we had a single constructor, it would be megamorphic and engines would deopt.\n\n\nfunction createSyntheticEvent(Interface) {\n /**\n * Synthetic events are dispatched by event plugins, typically in response to a\n * top-level event delegation handler.\n *\n * These systems should generally use pooling to reduce the frequency of garbage\n * collection. The system should check `isPersistent` to determine whether the\n * event should be released into the pool after being dispatched. Users that\n * need a persisted event should invoke `persist`.\n *\n * Synthetic events (and subclasses) implement the DOM Level 3 Events API by\n * normalizing browser quirks. Subclasses do not necessarily have to implement a\n * DOM interface; custom application-specific events can also subclass this.\n */\n function SyntheticBaseEvent(reactName, reactEventType, targetInst, nativeEvent, nativeEventTarget) {\n this._reactName = reactName;\n this._targetInst = targetInst;\n this.type = reactEventType;\n this.nativeEvent = nativeEvent;\n this.target = nativeEventTarget;\n this.currentTarget = null;\n\n for (var _propName in Interface) {\n if (!Interface.hasOwnProperty(_propName)) {\n continue;\n }\n\n var normalize = Interface[_propName];\n\n if (normalize) {\n this[_propName] = normalize(nativeEvent);\n } else {\n this[_propName] = nativeEvent[_propName];\n }\n }\n\n var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;\n\n if (defaultPrevented) {\n this.isDefaultPrevented = functionThatReturnsTrue;\n } else {\n this.isDefaultPrevented = functionThatReturnsFalse;\n }\n\n this.isPropagationStopped = functionThatReturnsFalse;\n return this;\n }\n\n assign(SyntheticBaseEvent.prototype, {\n preventDefault: function () {\n this.defaultPrevented = true;\n var event = this.nativeEvent;\n\n if (!event) {\n return;\n }\n\n if (event.preventDefault) {\n event.preventDefault(); // $FlowFixMe - flow is not aware of `unknown` in IE\n } else if (typeof event.returnValue !== 'unknown') {\n event.returnValue = false;\n }\n\n this.isDefaultPrevented = functionThatReturnsTrue;\n },\n stopPropagation: function () {\n var event = this.nativeEvent;\n\n if (!event) {\n return;\n }\n\n if (event.stopPropagation) {\n event.stopPropagation(); // $FlowFixMe - flow is not aware of `unknown` in IE\n } else if (typeof event.cancelBubble !== 'unknown') {\n // The ChangeEventPlugin registers a \"propertychange\" event for\n // IE. This event does not support bubbling or cancelling, and\n // any references to cancelBubble throw \"Member not found\". A\n // typeof check of \"unknown\" circumvents this issue (and is also\n // IE specific).\n event.cancelBubble = true;\n }\n\n this.isPropagationStopped = functionThatReturnsTrue;\n },\n\n /**\n * We release all dispatched `SyntheticEvent`s after each event loop, adding\n * them back into the pool. This allows a way to hold onto a reference that\n * won't be added back into the pool.\n */\n persist: function () {// Modern event system doesn't use pooling.\n },\n\n /**\n * Checks if this event should be released back into the pool.\n *\n * @return {boolean} True if this should not be released, false otherwise.\n */\n isPersistent: functionThatReturnsTrue\n });\n return SyntheticBaseEvent;\n}\n/**\n * @interface Event\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\n\n\nvar EventInterface = {\n eventPhase: 0,\n bubbles: 0,\n cancelable: 0,\n timeStamp: function (event) {\n return event.timeStamp || Date.now();\n },\n defaultPrevented: 0,\n isTrusted: 0\n};\nvar SyntheticEvent = createSyntheticEvent(EventInterface);\n\nvar UIEventInterface = assign({}, EventInterface, {\n view: 0,\n detail: 0\n});\n\nvar SyntheticUIEvent = createSyntheticEvent(UIEventInterface);\nvar lastMovementX;\nvar lastMovementY;\nvar lastMouseEvent;\n\nfunction updateMouseMovementPolyfillState(event) {\n if (event !== lastMouseEvent) {\n if (lastMouseEvent && event.type === 'mousemove') {\n lastMovementX = event.screenX - lastMouseEvent.screenX;\n lastMovementY = event.screenY - lastMouseEvent.screenY;\n } else {\n lastMovementX = 0;\n lastMovementY = 0;\n }\n\n lastMouseEvent = event;\n }\n}\n/**\n * @interface MouseEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\n\n\nvar MouseEventInterface = assign({}, UIEventInterface, {\n screenX: 0,\n screenY: 0,\n clientX: 0,\n clientY: 0,\n pageX: 0,\n pageY: 0,\n ctrlKey: 0,\n shiftKey: 0,\n altKey: 0,\n metaKey: 0,\n getModifierState: getEventModifierState,\n button: 0,\n buttons: 0,\n relatedTarget: function (event) {\n if (event.relatedTarget === undefined) return event.fromElement === event.srcElement ? event.toElement : event.fromElement;\n return event.relatedTarget;\n },\n movementX: function (event) {\n if ('movementX' in event) {\n return event.movementX;\n }\n\n updateMouseMovementPolyfillState(event);\n return lastMovementX;\n },\n movementY: function (event) {\n if ('movementY' in event) {\n return event.movementY;\n } // Don't need to call updateMouseMovementPolyfillState() here\n // because it's guaranteed to have already run when movementX\n // was copied.\n\n\n return lastMovementY;\n }\n});\n\nvar SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface);\n/**\n * @interface DragEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\n\nvar DragEventInterface = assign({}, MouseEventInterface, {\n dataTransfer: 0\n});\n\nvar SyntheticDragEvent = createSyntheticEvent(DragEventInterface);\n/**\n * @interface FocusEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\n\nvar FocusEventInterface = assign({}, UIEventInterface, {\n relatedTarget: 0\n});\n\nvar SyntheticFocusEvent = createSyntheticEvent(FocusEventInterface);\n/**\n * @interface Event\n * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface\n * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent\n */\n\nvar AnimationEventInterface = assign({}, EventInterface, {\n animationName: 0,\n elapsedTime: 0,\n pseudoElement: 0\n});\n\nvar SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface);\n/**\n * @interface Event\n * @see http://www.w3.org/TR/clipboard-apis/\n */\n\nvar ClipboardEventInterface = assign({}, EventInterface, {\n clipboardData: function (event) {\n return 'clipboardData' in event ? event.clipboardData : window.clipboardData;\n }\n});\n\nvar SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface);\n/**\n * @interface Event\n * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents\n */\n\nvar CompositionEventInterface = assign({}, EventInterface, {\n data: 0\n});\n\nvar SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface);\n/**\n * @interface Event\n * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105\n * /#events-inputevents\n */\n// Happens to share the same list for now.\n\nvar SyntheticInputEvent = SyntheticCompositionEvent;\n/**\n * Normalization of deprecated HTML5 `key` values\n * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names\n */\n\nvar normalizeKey = {\n Esc: 'Escape',\n Spacebar: ' ',\n Left: 'ArrowLeft',\n Up: 'ArrowUp',\n Right: 'ArrowRight',\n Down: 'ArrowDown',\n Del: 'Delete',\n Win: 'OS',\n Menu: 'ContextMenu',\n Apps: 'ContextMenu',\n Scroll: 'ScrollLock',\n MozPrintableKey: 'Unidentified'\n};\n/**\n * Translation from legacy `keyCode` to HTML5 `key`\n * Only special keys supported, all others depend on keyboard layout or browser\n * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names\n */\n\nvar translateToKey = {\n '8': 'Backspace',\n '9': 'Tab',\n '12': 'Clear',\n '13': 'Enter',\n '16': 'Shift',\n '17': 'Control',\n '18': 'Alt',\n '19': 'Pause',\n '20': 'CapsLock',\n '27': 'Escape',\n '32': ' ',\n '33': 'PageUp',\n '34': 'PageDown',\n '35': 'End',\n '36': 'Home',\n '37': 'ArrowLeft',\n '38': 'ArrowUp',\n '39': 'ArrowRight',\n '40': 'ArrowDown',\n '45': 'Insert',\n '46': 'Delete',\n '112': 'F1',\n '113': 'F2',\n '114': 'F3',\n '115': 'F4',\n '116': 'F5',\n '117': 'F6',\n '118': 'F7',\n '119': 'F8',\n '120': 'F9',\n '121': 'F10',\n '122': 'F11',\n '123': 'F12',\n '144': 'NumLock',\n '145': 'ScrollLock',\n '224': 'Meta'\n};\n/**\n * @param {object} nativeEvent Native browser event.\n * @return {string} Normalized `key` property.\n */\n\nfunction getEventKey(nativeEvent) {\n if (nativeEvent.key) {\n // Normalize inconsistent values reported by browsers due to\n // implementations of a working draft specification.\n // FireFox implements `key` but returns `MozPrintableKey` for all\n // printable characters (normalized to `Unidentified`), ignore it.\n var key = normalizeKey[nativeEvent.key] || nativeEvent.key;\n\n if (key !== 'Unidentified') {\n return key;\n }\n } // Browser does not implement `key`, polyfill as much of it as we can.\n\n\n if (nativeEvent.type === 'keypress') {\n var charCode = getEventCharCode(nativeEvent); // The enter-key is technically both printable and non-printable and can\n // thus be captured by `keypress`, no other non-printable key should.\n\n return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);\n }\n\n if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {\n // While user keyboard layout determines the actual meaning of each\n // `keyCode` value, almost all function keys have a universal value.\n return translateToKey[nativeEvent.keyCode] || 'Unidentified';\n }\n\n return '';\n}\n/**\n * Translation from modifier key to the associated property in the event.\n * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers\n */\n\n\nvar modifierKeyToProp = {\n Alt: 'altKey',\n Control: 'ctrlKey',\n Meta: 'metaKey',\n Shift: 'shiftKey'\n}; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support\n// getModifierState. If getModifierState is not supported, we map it to a set of\n// modifier keys exposed by the event. In this case, Lock-keys are not supported.\n\nfunction modifierStateGetter(keyArg) {\n var syntheticEvent = this;\n var nativeEvent = syntheticEvent.nativeEvent;\n\n if (nativeEvent.getModifierState) {\n return nativeEvent.getModifierState(keyArg);\n }\n\n var keyProp = modifierKeyToProp[keyArg];\n return keyProp ? !!nativeEvent[keyProp] : false;\n}\n\nfunction getEventModifierState(nativeEvent) {\n return modifierStateGetter;\n}\n/**\n * @interface KeyboardEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\n\n\nvar KeyboardEventInterface = assign({}, UIEventInterface, {\n key: getEventKey,\n code: 0,\n location: 0,\n ctrlKey: 0,\n shiftKey: 0,\n altKey: 0,\n metaKey: 0,\n repeat: 0,\n locale: 0,\n getModifierState: getEventModifierState,\n // Legacy Interface\n charCode: function (event) {\n // `charCode` is the result of a KeyPress event and represents the value of\n // the actual printable character.\n // KeyPress is deprecated, but its replacement is not yet final and not\n // implemented in any major browser. Only KeyPress has charCode.\n if (event.type === 'keypress') {\n return getEventCharCode(event);\n }\n\n return 0;\n },\n keyCode: function (event) {\n // `keyCode` is the result of a KeyDown/Up event and represents the value of\n // physical keyboard key.\n // The actual meaning of the value depends on the users' keyboard layout\n // which cannot be detected. Assuming that it is a US keyboard layout\n // provides a surprisingly accurate mapping for US and European users.\n // Due to this, it is left to the user to implement at this time.\n if (event.type === 'keydown' || event.type === 'keyup') {\n return event.keyCode;\n }\n\n return 0;\n },\n which: function (event) {\n // `which` is an alias for either `keyCode` or `charCode` depending on the\n // type of the event.\n if (event.type === 'keypress') {\n return getEventCharCode(event);\n }\n\n if (event.type === 'keydown' || event.type === 'keyup') {\n return event.keyCode;\n }\n\n return 0;\n }\n});\n\nvar SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface);\n/**\n * @interface PointerEvent\n * @see http://www.w3.org/TR/pointerevents/\n */\n\nvar PointerEventInterface = assign({}, MouseEventInterface, {\n pointerId: 0,\n width: 0,\n height: 0,\n pressure: 0,\n tangentialPressure: 0,\n tiltX: 0,\n tiltY: 0,\n twist: 0,\n pointerType: 0,\n isPrimary: 0\n});\n\nvar SyntheticPointerEvent = createSyntheticEvent(PointerEventInterface);\n/**\n * @interface TouchEvent\n * @see http://www.w3.org/TR/touch-events/\n */\n\nvar TouchEventInterface = assign({}, UIEventInterface, {\n touches: 0,\n targetTouches: 0,\n changedTouches: 0,\n altKey: 0,\n metaKey: 0,\n ctrlKey: 0,\n shiftKey: 0,\n getModifierState: getEventModifierState\n});\n\nvar SyntheticTouchEvent = createSyntheticEvent(TouchEventInterface);\n/**\n * @interface Event\n * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-\n * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent\n */\n\nvar TransitionEventInterface = assign({}, EventInterface, {\n propertyName: 0,\n elapsedTime: 0,\n pseudoElement: 0\n});\n\nvar SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface);\n/**\n * @interface WheelEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\n\nvar WheelEventInterface = assign({}, MouseEventInterface, {\n deltaX: function (event) {\n return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).\n 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;\n },\n deltaY: function (event) {\n return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).\n 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).\n 'wheelDelta' in event ? -event.wheelDelta : 0;\n },\n deltaZ: 0,\n // Browsers without \"deltaMode\" is reporting in raw wheel delta where one\n // notch on the scroll is always +/- 120, roughly equivalent to pixels.\n // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or\n // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.\n deltaMode: 0\n});\n\nvar SyntheticWheelEvent = createSyntheticEvent(WheelEventInterface);\n\nvar END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space\n\nvar START_KEYCODE = 229;\nvar canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;\nvar documentMode = null;\n\nif (canUseDOM && 'documentMode' in document) {\n documentMode = document.documentMode;\n} // Webkit offers a very useful `textInput` event that can be used to\n// directly represent `beforeInput`. The IE `textinput` event is not as\n// useful, so we don't use it.\n\n\nvar canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode; // In IE9+, we have access to composition events, but the data supplied\n// by the native compositionend event may be incorrect. Japanese ideographic\n// spaces, for instance (\\u3000) are not recorded correctly.\n\nvar useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);\nvar SPACEBAR_CODE = 32;\nvar SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);\n\nfunction registerEvents() {\n registerTwoPhaseEvent('onBeforeInput', ['compositionend', 'keypress', 'textInput', 'paste']);\n registerTwoPhaseEvent('onCompositionEnd', ['compositionend', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);\n registerTwoPhaseEvent('onCompositionStart', ['compositionstart', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);\n registerTwoPhaseEvent('onCompositionUpdate', ['compositionupdate', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);\n} // Track whether we've ever handled a keypress on the space key.\n\n\nvar hasSpaceKeypress = false;\n/**\n * Return whether a native keypress event is assumed to be a command.\n * This is required because Firefox fires `keypress` events for key commands\n * (cut, copy, select-all, etc.) even though no character is inserted.\n */\n\nfunction isKeypressCommand(nativeEvent) {\n return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && // ctrlKey && altKey is equivalent to AltGr, and is not a command.\n !(nativeEvent.ctrlKey && nativeEvent.altKey);\n}\n/**\n * Translate native top level events into event types.\n */\n\n\nfunction getCompositionEventType(domEventName) {\n switch (domEventName) {\n case 'compositionstart':\n return 'onCompositionStart';\n\n case 'compositionend':\n return 'onCompositionEnd';\n\n case 'compositionupdate':\n return 'onCompositionUpdate';\n }\n}\n/**\n * Does our fallback best-guess model think this event signifies that\n * composition has begun?\n */\n\n\nfunction isFallbackCompositionStart(domEventName, nativeEvent) {\n return domEventName === 'keydown' && nativeEvent.keyCode === START_KEYCODE;\n}\n/**\n * Does our fallback mode think that this event is the end of composition?\n */\n\n\nfunction isFallbackCompositionEnd(domEventName, nativeEvent) {\n switch (domEventName) {\n case 'keyup':\n // Command keys insert or clear IME input.\n return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;\n\n case 'keydown':\n // Expect IME keyCode on each keydown. If we get any other\n // code we must have exited earlier.\n return nativeEvent.keyCode !== START_KEYCODE;\n\n case 'keypress':\n case 'mousedown':\n case 'focusout':\n // Events are not possible without cancelling IME.\n return true;\n\n default:\n return false;\n }\n}\n/**\n * Google Input Tools provides composition data via a CustomEvent,\n * with the `data` property populated in the `detail` object. If this\n * is available on the event object, use it. If not, this is a plain\n * composition event and we have nothing special to extract.\n *\n * @param {object} nativeEvent\n * @return {?string}\n */\n\n\nfunction getDataFromCustomEvent(nativeEvent) {\n var detail = nativeEvent.detail;\n\n if (typeof detail === 'object' && 'data' in detail) {\n return detail.data;\n }\n\n return null;\n}\n/**\n * Check if a composition event was triggered by Korean IME.\n * Our fallback mode does not work well with IE's Korean IME,\n * so just use native composition events when Korean IME is used.\n * Although CompositionEvent.locale property is deprecated,\n * it is available in IE, where our fallback mode is enabled.\n *\n * @param {object} nativeEvent\n * @return {boolean}\n */\n\n\nfunction isUsingKoreanIME(nativeEvent) {\n return nativeEvent.locale === 'ko';\n} // Track the current IME composition status, if any.\n\n\nvar isComposing = false;\n/**\n * @return {?object} A SyntheticCompositionEvent.\n */\n\nfunction extractCompositionEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget) {\n var eventType;\n var fallbackData;\n\n if (canUseCompositionEvent) {\n eventType = getCompositionEventType(domEventName);\n } else if (!isComposing) {\n if (isFallbackCompositionStart(domEventName, nativeEvent)) {\n eventType = 'onCompositionStart';\n }\n } else if (isFallbackCompositionEnd(domEventName, nativeEvent)) {\n eventType = 'onCompositionEnd';\n }\n\n if (!eventType) {\n return null;\n }\n\n if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {\n // The current composition is stored statically and must not be\n // overwritten while composition continues.\n if (!isComposing && eventType === 'onCompositionStart') {\n isComposing = initialize(nativeEventTarget);\n } else if (eventType === 'onCompositionEnd') {\n if (isComposing) {\n fallbackData = getData();\n }\n }\n }\n\n var listeners = accumulateTwoPhaseListeners(targetInst, eventType);\n\n if (listeners.length > 0) {\n var event = new SyntheticCompositionEvent(eventType, domEventName, null, nativeEvent, nativeEventTarget);\n dispatchQueue.push({\n event: event,\n listeners: listeners\n });\n\n if (fallbackData) {\n // Inject data generated from fallback path into the synthetic event.\n // This matches the property of native CompositionEventInterface.\n event.data = fallbackData;\n } else {\n var customData = getDataFromCustomEvent(nativeEvent);\n\n if (customData !== null) {\n event.data = customData;\n }\n }\n }\n}\n\nfunction getNativeBeforeInputChars(domEventName, nativeEvent) {\n switch (domEventName) {\n case 'compositionend':\n return getDataFromCustomEvent(nativeEvent);\n\n case 'keypress':\n /**\n * If native `textInput` events are available, our goal is to make\n * use of them. However, there is a special case: the spacebar key.\n * In Webkit, preventing default on a spacebar `textInput` event\n * cancels character insertion, but it *also* causes the browser\n * to fall back to its default spacebar behavior of scrolling the\n * page.\n *\n * Tracking at:\n * https://code.google.com/p/chromium/issues/detail?id=355103\n *\n * To avoid this issue, use the keypress event as if no `textInput`\n * event is available.\n */\n var which = nativeEvent.which;\n\n if (which !== SPACEBAR_CODE) {\n return null;\n }\n\n hasSpaceKeypress = true;\n return SPACEBAR_CHAR;\n\n case 'textInput':\n // Record the characters to be added to the DOM.\n var chars = nativeEvent.data; // If it's a spacebar character, assume that we have already handled\n // it at the keypress level and bail immediately. Android Chrome\n // doesn't give us keycodes, so we need to ignore it.\n\n if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {\n return null;\n }\n\n return chars;\n\n default:\n // For other native event types, do nothing.\n return null;\n }\n}\n/**\n * For browsers that do not provide the `textInput` event, extract the\n * appropriate string to use for SyntheticInputEvent.\n */\n\n\nfunction getFallbackBeforeInputChars(domEventName, nativeEvent) {\n // If we are currently composing (IME) and using a fallback to do so,\n // try to extract the composed characters from the fallback object.\n // If composition event is available, we extract a string only at\n // compositionevent, otherwise extract it at fallback events.\n if (isComposing) {\n if (domEventName === 'compositionend' || !canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent)) {\n var chars = getData();\n reset();\n isComposing = false;\n return chars;\n }\n\n return null;\n }\n\n switch (domEventName) {\n case 'paste':\n // If a paste event occurs after a keypress, throw out the input\n // chars. Paste events should not lead to BeforeInput events.\n return null;\n\n case 'keypress':\n /**\n * As of v27, Firefox may fire keypress events even when no character\n * will be inserted. A few possibilities:\n *\n * - `which` is `0`. Arrow keys, Esc key, etc.\n *\n * - `which` is the pressed key code, but no char is available.\n * Ex: 'AltGr + d` in Polish. There is no modified character for\n * this key combination and no character is inserted into the\n * document, but FF fires the keypress for char code `100` anyway.\n * No `input` event will occur.\n *\n * - `which` is the pressed key code, but a command combination is\n * being used. Ex: `Cmd+C`. No character is inserted, and no\n * `input` event will occur.\n */\n if (!isKeypressCommand(nativeEvent)) {\n // IE fires the `keypress` event when a user types an emoji via\n // Touch keyboard of Windows. In such a case, the `char` property\n // holds an emoji character like `\\uD83D\\uDE0A`. Because its length\n // is 2, the property `which` does not represent an emoji correctly.\n // In such a case, we directly return the `char` property instead of\n // using `which`.\n if (nativeEvent.char && nativeEvent.char.length > 1) {\n return nativeEvent.char;\n } else if (nativeEvent.which) {\n return String.fromCharCode(nativeEvent.which);\n }\n }\n\n return null;\n\n case 'compositionend':\n return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;\n\n default:\n return null;\n }\n}\n/**\n * Extract a SyntheticInputEvent for `beforeInput`, based on either native\n * `textInput` or fallback behavior.\n *\n * @return {?object} A SyntheticInputEvent.\n */\n\n\nfunction extractBeforeInputEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget) {\n var chars;\n\n if (canUseTextInputEvent) {\n chars = getNativeBeforeInputChars(domEventName, nativeEvent);\n } else {\n chars = getFallbackBeforeInputChars(domEventName, nativeEvent);\n } // If no characters are being inserted, no BeforeInput event should\n // be fired.\n\n\n if (!chars) {\n return null;\n }\n\n var listeners = accumulateTwoPhaseListeners(targetInst, 'onBeforeInput');\n\n if (listeners.length > 0) {\n var event = new SyntheticInputEvent('onBeforeInput', 'beforeinput', null, nativeEvent, nativeEventTarget);\n dispatchQueue.push({\n event: event,\n listeners: listeners\n });\n event.data = chars;\n }\n}\n/**\n * Create an `onBeforeInput` event to match\n * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.\n *\n * This event plugin is based on the native `textInput` event\n * available in Chrome, Safari, Opera, and IE. This event fires after\n * `onKeyPress` and `onCompositionEnd`, but before `onInput`.\n *\n * `beforeInput` is spec'd but not implemented in any browsers, and\n * the `input` event does not provide any useful information about what has\n * actually been added, contrary to the spec. Thus, `textInput` is the best\n * available event to identify the characters that have actually been inserted\n * into the target node.\n *\n * This plugin is also responsible for emitting `composition` events, thus\n * allowing us to share composition fallback code for both `beforeInput` and\n * `composition` event types.\n */\n\n\nfunction extractEvents(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {\n extractCompositionEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);\n extractBeforeInputEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);\n}\n\n/**\n * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary\n */\nvar supportedInputTypes = {\n color: true,\n date: true,\n datetime: true,\n 'datetime-local': true,\n email: true,\n month: true,\n number: true,\n password: true,\n range: true,\n search: true,\n tel: true,\n text: true,\n time: true,\n url: true,\n week: true\n};\n\nfunction isTextInputElement(elem) {\n var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n\n if (nodeName === 'input') {\n return !!supportedInputTypes[elem.type];\n }\n\n if (nodeName === 'textarea') {\n return true;\n }\n\n return false;\n}\n\n/**\n * Checks if an event is supported in the current execution environment.\n *\n * NOTE: This will not work correctly for non-generic events such as `change`,\n * `reset`, `load`, `error`, and `select`.\n *\n * Borrows from Modernizr.\n *\n * @param {string} eventNameSuffix Event name, e.g. \"click\".\n * @return {boolean} True if the event is supported.\n * @internal\n * @license Modernizr 3.0.0pre (Custom Build) | MIT\n */\n\nfunction isEventSupported(eventNameSuffix) {\n if (!canUseDOM) {\n return false;\n }\n\n var eventName = 'on' + eventNameSuffix;\n var isSupported = (eventName in document);\n\n if (!isSupported) {\n var element = document.createElement('div');\n element.setAttribute(eventName, 'return;');\n isSupported = typeof element[eventName] === 'function';\n }\n\n return isSupported;\n}\n\nfunction registerEvents$1() {\n registerTwoPhaseEvent('onChange', ['change', 'click', 'focusin', 'focusout', 'input', 'keydown', 'keyup', 'selectionchange']);\n}\n\nfunction createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, target) {\n // Flag this event loop as needing state restore.\n enqueueStateRestore(target);\n var listeners = accumulateTwoPhaseListeners(inst, 'onChange');\n\n if (listeners.length > 0) {\n var event = new SyntheticEvent('onChange', 'change', null, nativeEvent, target);\n dispatchQueue.push({\n event: event,\n listeners: listeners\n });\n }\n}\n/**\n * For IE shims\n */\n\n\nvar activeElement = null;\nvar activeElementInst = null;\n/**\n * SECTION: handle `change` event\n */\n\nfunction shouldUseChangeEvent(elem) {\n var nodeName = elem.nodeName && elem.nodeName.toLowerCase();\n return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';\n}\n\nfunction manualDispatchChangeEvent(nativeEvent) {\n var dispatchQueue = [];\n createAndAccumulateChangeEvent(dispatchQueue, activeElementInst, nativeEvent, getEventTarget(nativeEvent)); // If change and propertychange bubbled, we'd just bind to it like all the\n // other events and have it go through ReactBrowserEventEmitter. Since it\n // doesn't, we manually listen for the events and so we have to enqueue and\n // process the abstract event manually.\n //\n // Batching is necessary here in order to ensure that all event handlers run\n // before the next rerender (including event handlers attached to ancestor\n // elements instead of directly on the input). Without this, controlled\n // components don't work properly in conjunction with event bubbling because\n // the component is rerendered and the value reverted before all the event\n // handlers can run. See https://github.com/facebook/react/issues/708.\n\n batchedUpdates(runEventInBatch, dispatchQueue);\n}\n\nfunction runEventInBatch(dispatchQueue) {\n processDispatchQueue(dispatchQueue, 0);\n}\n\nfunction getInstIfValueChanged(targetInst) {\n var targetNode = getNodeFromInstance(targetInst);\n\n if (updateValueIfChanged(targetNode)) {\n return targetInst;\n }\n}\n\nfunction getTargetInstForChangeEvent(domEventName, targetInst) {\n if (domEventName === 'change') {\n return targetInst;\n }\n}\n/**\n * SECTION: handle `input` event\n */\n\n\nvar isInputEventSupported = false;\n\nif (canUseDOM) {\n // IE9 claims to support the input event but fails to trigger it when\n // deleting text, so we ignore its input events.\n isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);\n}\n/**\n * (For IE <=9) Starts tracking propertychange events on the passed-in element\n * and override the value property so that we can distinguish user events from\n * value changes in JS.\n */\n\n\nfunction startWatchingForValueChange(target, targetInst) {\n activeElement = target;\n activeElementInst = targetInst;\n activeElement.attachEvent('onpropertychange', handlePropertyChange);\n}\n/**\n * (For IE <=9) Removes the event listeners from the currently-tracked element,\n * if any exists.\n */\n\n\nfunction stopWatchingForValueChange() {\n if (!activeElement) {\n return;\n }\n\n activeElement.detachEvent('onpropertychange', handlePropertyChange);\n activeElement = null;\n activeElementInst = null;\n}\n/**\n * (For IE <=9) Handles a propertychange event, sending a `change` event if\n * the value of the active element has changed.\n */\n\n\nfunction handlePropertyChange(nativeEvent) {\n if (nativeEvent.propertyName !== 'value') {\n return;\n }\n\n if (getInstIfValueChanged(activeElementInst)) {\n manualDispatchChangeEvent(nativeEvent);\n }\n}\n\nfunction handleEventsForInputEventPolyfill(domEventName, target, targetInst) {\n if (domEventName === 'focusin') {\n // In IE9, propertychange fires for most input events but is buggy and\n // doesn't fire when text is deleted, but conveniently, selectionchange\n // appears to fire in all of the remaining cases so we catch those and\n // forward the event if the value has changed\n // In either case, we don't want to call the event handler if the value\n // is changed from JS so we redefine a setter for `.value` that updates\n // our activeElementValue variable, allowing us to ignore those changes\n //\n // stopWatching() should be a noop here but we call it just in case we\n // missed a blur event somehow.\n stopWatchingForValueChange();\n startWatchingForValueChange(target, targetInst);\n } else if (domEventName === 'focusout') {\n stopWatchingForValueChange();\n }\n} // For IE8 and IE9.\n\n\nfunction getTargetInstForInputEventPolyfill(domEventName, targetInst) {\n if (domEventName === 'selectionchange' || domEventName === 'keyup' || domEventName === 'keydown') {\n // On the selectionchange event, the target is just document which isn't\n // helpful for us so just check activeElement instead.\n //\n // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire\n // propertychange on the first input event after setting `value` from a\n // script and fires only keydown, keypress, keyup. Catching keyup usually\n // gets it and catching keydown lets us fire an event for the first\n // keystroke if user does a key repeat (it'll be a little delayed: right\n // before the second keystroke). Other input methods (e.g., paste) seem to\n // fire selectionchange normally.\n return getInstIfValueChanged(activeElementInst);\n }\n}\n/**\n * SECTION: handle `click` event\n */\n\n\nfunction shouldUseClickEvent(elem) {\n // Use the `click` event to detect changes to checkbox and radio inputs.\n // This approach works across all browsers, whereas `change` does not fire\n // until `blur` in IE8.\n var nodeName = elem.nodeName;\n return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');\n}\n\nfunction getTargetInstForClickEvent(domEventName, targetInst) {\n if (domEventName === 'click') {\n return getInstIfValueChanged(targetInst);\n }\n}\n\nfunction getTargetInstForInputOrChangeEvent(domEventName, targetInst) {\n if (domEventName === 'input' || domEventName === 'change') {\n return getInstIfValueChanged(targetInst);\n }\n}\n\nfunction handleControlledInputBlur(node) {\n var state = node._wrapperState;\n\n if (!state || !state.controlled || node.type !== 'number') {\n return;\n }\n\n {\n // If controlled, assign the value attribute to the current value on blur\n setDefaultValue(node, 'number', node.value);\n }\n}\n/**\n * This plugin creates an `onChange` event that normalizes change events\n * across form elements. This event fires at a time when it's possible to\n * change the element's value without seeing a flicker.\n *\n * Supported elements are:\n * - input (see `isTextInputElement`)\n * - textarea\n * - select\n */\n\n\nfunction extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {\n var targetNode = targetInst ? getNodeFromInstance(targetInst) : window;\n var getTargetInstFunc, handleEventFunc;\n\n if (shouldUseChangeEvent(targetNode)) {\n getTargetInstFunc = getTargetInstForChangeEvent;\n } else if (isTextInputElement(targetNode)) {\n if (isInputEventSupported) {\n getTargetInstFunc = getTargetInstForInputOrChangeEvent;\n } else {\n getTargetInstFunc = getTargetInstForInputEventPolyfill;\n handleEventFunc = handleEventsForInputEventPolyfill;\n }\n } else if (shouldUseClickEvent(targetNode)) {\n getTargetInstFunc = getTargetInstForClickEvent;\n }\n\n if (getTargetInstFunc) {\n var inst = getTargetInstFunc(domEventName, targetInst);\n\n if (inst) {\n createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, nativeEventTarget);\n return;\n }\n }\n\n if (handleEventFunc) {\n handleEventFunc(domEventName, targetNode, targetInst);\n } // When blurring, set the value attribute for number inputs\n\n\n if (domEventName === 'focusout') {\n handleControlledInputBlur(targetNode);\n }\n}\n\nfunction registerEvents$2() {\n registerDirectEvent('onMouseEnter', ['mouseout', 'mouseover']);\n registerDirectEvent('onMouseLeave', ['mouseout', 'mouseover']);\n registerDirectEvent('onPointerEnter', ['pointerout', 'pointerover']);\n registerDirectEvent('onPointerLeave', ['pointerout', 'pointerover']);\n}\n/**\n * For almost every interaction we care about, there will be both a top-level\n * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that\n * we do not extract duplicate events. However, moving the mouse into the\n * browser from outside will not fire a `mouseout` event. In this case, we use\n * the `mouseover` top-level event.\n */\n\n\nfunction extractEvents$2(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {\n var isOverEvent = domEventName === 'mouseover' || domEventName === 'pointerover';\n var isOutEvent = domEventName === 'mouseout' || domEventName === 'pointerout';\n\n if (isOverEvent && !isReplayingEvent(nativeEvent)) {\n // If this is an over event with a target, we might have already dispatched\n // the event in the out event of the other target. If this is replayed,\n // then it's because we couldn't dispatch against this target previously\n // so we have to do it now instead.\n var related = nativeEvent.relatedTarget || nativeEvent.fromElement;\n\n if (related) {\n // If the related node is managed by React, we can assume that we have\n // already dispatched the corresponding events during its mouseout.\n if (getClosestInstanceFromNode(related) || isContainerMarkedAsRoot(related)) {\n return;\n }\n }\n }\n\n if (!isOutEvent && !isOverEvent) {\n // Must not be a mouse or pointer in or out - ignoring.\n return;\n }\n\n var win; // TODO: why is this nullable in the types but we read from it?\n\n if (nativeEventTarget.window === nativeEventTarget) {\n // `nativeEventTarget` is probably a window object.\n win = nativeEventTarget;\n } else {\n // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.\n var doc = nativeEventTarget.ownerDocument;\n\n if (doc) {\n win = doc.defaultView || doc.parentWindow;\n } else {\n win = window;\n }\n }\n\n var from;\n var to;\n\n if (isOutEvent) {\n var _related = nativeEvent.relatedTarget || nativeEvent.toElement;\n\n from = targetInst;\n to = _related ? getClosestInstanceFromNode(_related) : null;\n\n if (to !== null) {\n var nearestMounted = getNearestMountedFiber(to);\n\n if (to !== nearestMounted || to.tag !== HostComponent && to.tag !== HostText) {\n to = null;\n }\n }\n } else {\n // Moving to a node from outside the window.\n from = null;\n to = targetInst;\n }\n\n if (from === to) {\n // Nothing pertains to our managed components.\n return;\n }\n\n var SyntheticEventCtor = SyntheticMouseEvent;\n var leaveEventType = 'onMouseLeave';\n var enterEventType = 'onMouseEnter';\n var eventTypePrefix = 'mouse';\n\n if (domEventName === 'pointerout' || domEventName === 'pointerover') {\n SyntheticEventCtor = SyntheticPointerEvent;\n leaveEventType = 'onPointerLeave';\n enterEventType = 'onPointerEnter';\n eventTypePrefix = 'pointer';\n }\n\n var fromNode = from == null ? win : getNodeFromInstance(from);\n var toNode = to == null ? win : getNodeFromInstance(to);\n var leave = new SyntheticEventCtor(leaveEventType, eventTypePrefix + 'leave', from, nativeEvent, nativeEventTarget);\n leave.target = fromNode;\n leave.relatedTarget = toNode;\n var enter = null; // We should only process this nativeEvent if we are processing\n // the first ancestor. Next time, we will ignore the event.\n\n var nativeTargetInst = getClosestInstanceFromNode(nativeEventTarget);\n\n if (nativeTargetInst === targetInst) {\n var enterEvent = new SyntheticEventCtor(enterEventType, eventTypePrefix + 'enter', to, nativeEvent, nativeEventTarget);\n enterEvent.target = toNode;\n enterEvent.relatedTarget = fromNode;\n enter = enterEvent;\n }\n\n accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leave, enter, from, to);\n}\n\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nfunction is(x, y) {\n return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare\n ;\n}\n\nvar objectIs = typeof Object.is === 'function' ? Object.is : is;\n\n/**\n * Performs equality by iterating through keys on an object and returning false\n * when any key has values which are not strictly equal between the arguments.\n * Returns true when the values of all keys are strictly equal.\n */\n\nfunction shallowEqual(objA, objB) {\n if (objectIs(objA, objB)) {\n return true;\n }\n\n if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n return false;\n }\n\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n\n if (keysA.length !== keysB.length) {\n return false;\n } // Test for A's keys different from B.\n\n\n for (var i = 0; i < keysA.length; i++) {\n var currentKey = keysA[i];\n\n if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) {\n return false;\n }\n }\n\n return true;\n}\n\n/**\n * Given any node return the first leaf node without children.\n *\n * @param {DOMElement|DOMTextNode} node\n * @return {DOMElement|DOMTextNode}\n */\n\nfunction getLeafNode(node) {\n while (node && node.firstChild) {\n node = node.firstChild;\n }\n\n return node;\n}\n/**\n * Get the next sibling within a container. This will walk up the\n * DOM if a node's siblings have been exhausted.\n *\n * @param {DOMElement|DOMTextNode} node\n * @return {?DOMElement|DOMTextNode}\n */\n\n\nfunction getSiblingNode(node) {\n while (node) {\n if (node.nextSibling) {\n return node.nextSibling;\n }\n\n node = node.parentNode;\n }\n}\n/**\n * Get object describing the nodes which contain characters at offset.\n *\n * @param {DOMElement|DOMTextNode} root\n * @param {number} offset\n * @return {?object}\n */\n\n\nfunction getNodeForCharacterOffset(root, offset) {\n var node = getLeafNode(root);\n var nodeStart = 0;\n var nodeEnd = 0;\n\n while (node) {\n if (node.nodeType === TEXT_NODE) {\n nodeEnd = nodeStart + node.textContent.length;\n\n if (nodeStart <= offset && nodeEnd >= offset) {\n return {\n node: node,\n offset: offset - nodeStart\n };\n }\n\n nodeStart = nodeEnd;\n }\n\n node = getLeafNode(getSiblingNode(node));\n }\n}\n\n/**\n * @param {DOMElement} outerNode\n * @return {?object}\n */\n\nfunction getOffsets(outerNode) {\n var ownerDocument = outerNode.ownerDocument;\n var win = ownerDocument && ownerDocument.defaultView || window;\n var selection = win.getSelection && win.getSelection();\n\n if (!selection || selection.rangeCount === 0) {\n return null;\n }\n\n var anchorNode = selection.anchorNode,\n anchorOffset = selection.anchorOffset,\n focusNode = selection.focusNode,\n focusOffset = selection.focusOffset; // In Firefox, anchorNode and focusNode can be \"anonymous divs\", e.g. the\n // up/down buttons on an <input type=\"number\">. Anonymous divs do not seem to\n // expose properties, triggering a \"Permission denied error\" if any of its\n // properties are accessed. The only seemingly possible way to avoid erroring\n // is to access a property that typically works for non-anonymous divs and\n // catch any error that may otherwise arise. See\n // https://bugzilla.mozilla.org/show_bug.cgi?id=208427\n\n try {\n /* eslint-disable no-unused-expressions */\n anchorNode.nodeType;\n focusNode.nodeType;\n /* eslint-enable no-unused-expressions */\n } catch (e) {\n return null;\n }\n\n return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);\n}\n/**\n * Returns {start, end} where `start` is the character/codepoint index of\n * (anchorNode, anchorOffset) within the textContent of `outerNode`, and\n * `end` is the index of (focusNode, focusOffset).\n *\n * Returns null if you pass in garbage input but we should probably just crash.\n *\n * Exported only for testing.\n */\n\nfunction getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {\n var length = 0;\n var start = -1;\n var end = -1;\n var indexWithinAnchor = 0;\n var indexWithinFocus = 0;\n var node = outerNode;\n var parentNode = null;\n\n outer: while (true) {\n var next = null;\n\n while (true) {\n if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {\n start = length + anchorOffset;\n }\n\n if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {\n end = length + focusOffset;\n }\n\n if (node.nodeType === TEXT_NODE) {\n length += node.nodeValue.length;\n }\n\n if ((next = node.firstChild) === null) {\n break;\n } // Moving from `node` to its first child `next`.\n\n\n parentNode = node;\n node = next;\n }\n\n while (true) {\n if (node === outerNode) {\n // If `outerNode` has children, this is always the second time visiting\n // it. If it has no children, this is still the first loop, and the only\n // valid selection is anchorNode and focusNode both equal to this node\n // and both offsets 0, in which case we will have handled above.\n break outer;\n }\n\n if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {\n start = length;\n }\n\n if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {\n end = length;\n }\n\n if ((next = node.nextSibling) !== null) {\n break;\n }\n\n node = parentNode;\n parentNode = node.parentNode;\n } // Moving from `node` to its next sibling `next`.\n\n\n node = next;\n }\n\n if (start === -1 || end === -1) {\n // This should never happen. (Would happen if the anchor/focus nodes aren't\n // actually inside the passed-in node.)\n return null;\n }\n\n return {\n start: start,\n end: end\n };\n}\n/**\n * In modern non-IE browsers, we can support both forward and backward\n * selections.\n *\n * Note: IE10+ supports the Selection object, but it does not support\n * the `extend` method, which means that even in modern IE, it's not possible\n * to programmatically create a backward selection. Thus, for all IE\n * versions, we use the old IE API to create our selections.\n *\n * @param {DOMElement|DOMTextNode} node\n * @param {object} offsets\n */\n\nfunction setOffsets(node, offsets) {\n var doc = node.ownerDocument || document;\n var win = doc && doc.defaultView || window; // Edge fails with \"Object expected\" in some scenarios.\n // (For instance: TinyMCE editor used in a list component that supports pasting to add more,\n // fails when pasting 100+ items)\n\n if (!win.getSelection) {\n return;\n }\n\n var selection = win.getSelection();\n var length = node.textContent.length;\n var start = Math.min(offsets.start, length);\n var end = offsets.end === undefined ? start : Math.min(offsets.end, length); // IE 11 uses modern selection, but doesn't support the extend method.\n // Flip backward selections, so we can set with a single range.\n\n if (!selection.extend && start > end) {\n var temp = end;\n end = start;\n start = temp;\n }\n\n var startMarker = getNodeForCharacterOffset(node, start);\n var endMarker = getNodeForCharacterOffset(node, end);\n\n if (startMarker && endMarker) {\n if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {\n return;\n }\n\n var range = doc.createRange();\n range.setStart(startMarker.node, startMarker.offset);\n selection.removeAllRanges();\n\n if (start > end) {\n selection.addRange(range);\n selection.extend(endMarker.node, endMarker.offset);\n } else {\n range.setEnd(endMarker.node, endMarker.offset);\n selection.addRange(range);\n }\n }\n}\n\nfunction isTextNode(node) {\n return node && node.nodeType === TEXT_NODE;\n}\n\nfunction containsNode(outerNode, innerNode) {\n if (!outerNode || !innerNode) {\n return false;\n } else if (outerNode === innerNode) {\n return true;\n } else if (isTextNode(outerNode)) {\n return false;\n } else if (isTextNode(innerNode)) {\n return containsNode(outerNode, innerNode.parentNode);\n } else if ('contains' in outerNode) {\n return outerNode.contains(innerNode);\n } else if (outerNode.compareDocumentPosition) {\n return !!(outerNode.compareDocumentPosition(innerNode) & 16);\n } else {\n return false;\n }\n}\n\nfunction isInDocument(node) {\n return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);\n}\n\nfunction isSameOriginFrame(iframe) {\n try {\n // Accessing the contentDocument of a HTMLIframeElement can cause the browser\n // to throw, e.g. if it has a cross-origin src attribute.\n // Safari will show an error in the console when the access results in \"Blocked a frame with origin\". e.g:\n // iframe.contentDocument.defaultView;\n // A safety way is to access one of the cross origin properties: Window or Location\n // Which might result in \"SecurityError\" DOM Exception and it is compatible to Safari.\n // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl\n return typeof iframe.contentWindow.location.href === 'string';\n } catch (err) {\n return false;\n }\n}\n\nfunction getActiveElementDeep() {\n var win = window;\n var element = getActiveElement();\n\n while (element instanceof win.HTMLIFrameElement) {\n if (isSameOriginFrame(element)) {\n win = element.contentWindow;\n } else {\n return element;\n }\n\n element = getActiveElement(win.document);\n }\n\n return element;\n}\n/**\n * @ReactInputSelection: React input selection module. Based on Selection.js,\n * but modified to be suitable for react and has a couple of bug fixes (doesn't\n * assume buttons have range selections allowed).\n * Input selection module for React.\n */\n\n/**\n * @hasSelectionCapabilities: we get the element types that support selection\n * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`\n * and `selectionEnd` rows.\n */\n\n\nfunction hasSelectionCapabilities(elem) {\n var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');\n}\nfunction getSelectionInformation() {\n var focusedElem = getActiveElementDeep();\n return {\n focusedElem: focusedElem,\n selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(focusedElem) : null\n };\n}\n/**\n * @restoreSelection: If any selection information was potentially lost,\n * restore it. This is useful when performing operations that could remove dom\n * nodes and place them back in, resulting in focus being lost.\n */\n\nfunction restoreSelection(priorSelectionInformation) {\n var curFocusedElem = getActiveElementDeep();\n var priorFocusedElem = priorSelectionInformation.focusedElem;\n var priorSelectionRange = priorSelectionInformation.selectionRange;\n\n if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {\n if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {\n setSelection(priorFocusedElem, priorSelectionRange);\n } // Focusing a node can change the scroll position, which is undesirable\n\n\n var ancestors = [];\n var ancestor = priorFocusedElem;\n\n while (ancestor = ancestor.parentNode) {\n if (ancestor.nodeType === ELEMENT_NODE) {\n ancestors.push({\n element: ancestor,\n left: ancestor.scrollLeft,\n top: ancestor.scrollTop\n });\n }\n }\n\n if (typeof priorFocusedElem.focus === 'function') {\n priorFocusedElem.focus();\n }\n\n for (var i = 0; i < ancestors.length; i++) {\n var info = ancestors[i];\n info.element.scrollLeft = info.left;\n info.element.scrollTop = info.top;\n }\n }\n}\n/**\n * @getSelection: Gets the selection bounds of a focused textarea, input or\n * contentEditable node.\n * -@input: Look up selection bounds of this input\n * -@return {start: selectionStart, end: selectionEnd}\n */\n\nfunction getSelection(input) {\n var selection;\n\n if ('selectionStart' in input) {\n // Modern browser with input or textarea.\n selection = {\n start: input.selectionStart,\n end: input.selectionEnd\n };\n } else {\n // Content editable or old IE textarea.\n selection = getOffsets(input);\n }\n\n return selection || {\n start: 0,\n end: 0\n };\n}\n/**\n * @setSelection: Sets the selection bounds of a textarea or input and focuses\n * the input.\n * -@input Set selection bounds of this input or textarea\n * -@offsets Object of same form that is returned from get*\n */\n\nfunction setSelection(input, offsets) {\n var start = offsets.start;\n var end = offsets.end;\n\n if (end === undefined) {\n end = start;\n }\n\n if ('selectionStart' in input) {\n input.selectionStart = start;\n input.selectionEnd = Math.min(end, input.value.length);\n } else {\n setOffsets(input, offsets);\n }\n}\n\nvar skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;\n\nfunction registerEvents$3() {\n registerTwoPhaseEvent('onSelect', ['focusout', 'contextmenu', 'dragend', 'focusin', 'keydown', 'keyup', 'mousedown', 'mouseup', 'selectionchange']);\n}\n\nvar activeElement$1 = null;\nvar activeElementInst$1 = null;\nvar lastSelection = null;\nvar mouseDown = false;\n/**\n * Get an object which is a unique representation of the current selection.\n *\n * The return value will not be consistent across nodes or browsers, but\n * two identical selections on the same node will return identical objects.\n */\n\nfunction getSelection$1(node) {\n if ('selectionStart' in node && hasSelectionCapabilities(node)) {\n return {\n start: node.selectionStart,\n end: node.selectionEnd\n };\n } else {\n var win = node.ownerDocument && node.ownerDocument.defaultView || window;\n var selection = win.getSelection();\n return {\n anchorNode: selection.anchorNode,\n anchorOffset: selection.anchorOffset,\n focusNode: selection.focusNode,\n focusOffset: selection.focusOffset\n };\n }\n}\n/**\n * Get document associated with the event target.\n */\n\n\nfunction getEventTargetDocument(eventTarget) {\n return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;\n}\n/**\n * Poll selection to see whether it's changed.\n *\n * @param {object} nativeEvent\n * @param {object} nativeEventTarget\n * @return {?SyntheticEvent}\n */\n\n\nfunction constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) {\n // Ensure we have the right element, and that the user is not dragging a\n // selection (this matches native `select` event behavior). In HTML5, select\n // fires only on input and textarea thus if there's no focused element we\n // won't dispatch.\n var doc = getEventTargetDocument(nativeEventTarget);\n\n if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {\n return;\n } // Only fire when selection has actually changed.\n\n\n var currentSelection = getSelection$1(activeElement$1);\n\n if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {\n lastSelection = currentSelection;\n var listeners = accumulateTwoPhaseListeners(activeElementInst$1, 'onSelect');\n\n if (listeners.length > 0) {\n var event = new SyntheticEvent('onSelect', 'select', null, nativeEvent, nativeEventTarget);\n dispatchQueue.push({\n event: event,\n listeners: listeners\n });\n event.target = activeElement$1;\n }\n }\n}\n/**\n * This plugin creates an `onSelect` event that normalizes select events\n * across form elements.\n *\n * Supported elements are:\n * - input (see `isTextInputElement`)\n * - textarea\n * - contentEditable\n *\n * This differs from native browser implementations in the following ways:\n * - Fires on contentEditable fields as well as inputs.\n * - Fires for collapsed selection.\n * - Fires after user input.\n */\n\n\nfunction extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {\n var targetNode = targetInst ? getNodeFromInstance(targetInst) : window;\n\n switch (domEventName) {\n // Track the input node that has focus.\n case 'focusin':\n if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {\n activeElement$1 = targetNode;\n activeElementInst$1 = targetInst;\n lastSelection = null;\n }\n\n break;\n\n case 'focusout':\n activeElement$1 = null;\n activeElementInst$1 = null;\n lastSelection = null;\n break;\n // Don't fire the event while the user is dragging. This matches the\n // semantics of the native select event.\n\n case 'mousedown':\n mouseDown = true;\n break;\n\n case 'contextmenu':\n case 'mouseup':\n case 'dragend':\n mouseDown = false;\n constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);\n break;\n // Chrome and IE fire non-standard event when selection is changed (and\n // sometimes when it hasn't). IE's event fires out of order with respect\n // to key and input events on deletion, so we discard it.\n //\n // Firefox doesn't support selectionchange, so check selection status\n // after each key entry. The selection changes after keydown and before\n // keyup, but we check on keydown as well in the case of holding down a\n // key, when multiple keydown events are fired but only one keyup is.\n // This is also our approach for IE handling, for the reason above.\n\n case 'selectionchange':\n if (skipSelectionChangeEvent) {\n break;\n }\n\n // falls through\n\n case 'keydown':\n case 'keyup':\n constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);\n }\n}\n\n/**\n * Generate a mapping of standard vendor prefixes using the defined style property and event name.\n *\n * @param {string} styleProp\n * @param {string} eventName\n * @returns {object}\n */\n\nfunction makePrefixMap(styleProp, eventName) {\n var prefixes = {};\n prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();\n prefixes['Webkit' + styleProp] = 'webkit' + eventName;\n prefixes['Moz' + styleProp] = 'moz' + eventName;\n return prefixes;\n}\n/**\n * A list of event names to a configurable list of vendor prefixes.\n */\n\n\nvar vendorPrefixes = {\n animationend: makePrefixMap('Animation', 'AnimationEnd'),\n animationiteration: makePrefixMap('Animation', 'AnimationIteration'),\n animationstart: makePrefixMap('Animation', 'AnimationStart'),\n transitionend: makePrefixMap('Transition', 'TransitionEnd')\n};\n/**\n * Event names that have already been detected and prefixed (if applicable).\n */\n\nvar prefixedEventNames = {};\n/**\n * Element to check for prefixes on.\n */\n\nvar style = {};\n/**\n * Bootstrap if a DOM exists.\n */\n\nif (canUseDOM) {\n style = document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x,\n // the un-prefixed \"animation\" and \"transition\" properties are defined on the\n // style object but the events that fire will still be prefixed, so we need\n // to check if the un-prefixed events are usable, and if not remove them from the map.\n\n if (!('AnimationEvent' in window)) {\n delete vendorPrefixes.animationend.animation;\n delete vendorPrefixes.animationiteration.animation;\n delete vendorPrefixes.animationstart.animation;\n } // Same as above\n\n\n if (!('TransitionEvent' in window)) {\n delete vendorPrefixes.transitionend.transition;\n }\n}\n/**\n * Attempts to determine the correct vendor prefixed event name.\n *\n * @param {string} eventName\n * @returns {string}\n */\n\n\nfunction getVendorPrefixedEventName(eventName) {\n if (prefixedEventNames[eventName]) {\n return prefixedEventNames[eventName];\n } else if (!vendorPrefixes[eventName]) {\n return eventName;\n }\n\n var prefixMap = vendorPrefixes[eventName];\n\n for (var styleProp in prefixMap) {\n if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {\n return prefixedEventNames[eventName] = prefixMap[styleProp];\n }\n }\n\n return eventName;\n}\n\nvar ANIMATION_END = getVendorPrefixedEventName('animationend');\nvar ANIMATION_ITERATION = getVendorPrefixedEventName('animationiteration');\nvar ANIMATION_START = getVendorPrefixedEventName('animationstart');\nvar TRANSITION_END = getVendorPrefixedEventName('transitionend');\n\nvar topLevelEventsToReactNames = new Map(); // NOTE: Capitalization is important in this list!\n//\n// E.g. it needs \"pointerDown\", not \"pointerdown\".\n// This is because we derive both React name (\"onPointerDown\")\n// and DOM name (\"pointerdown\") from the same list.\n//\n// Exceptions that don't match this convention are listed separately.\n//\n// prettier-ignore\n\nvar simpleEventPluginEvents = ['abort', 'auxClick', 'cancel', 'canPlay', 'canPlayThrough', 'click', 'close', 'contextMenu', 'copy', 'cut', 'drag', 'dragEnd', 'dragEnter', 'dragExit', 'dragLeave', 'dragOver', 'dragStart', 'drop', 'durationChange', 'emptied', 'encrypted', 'ended', 'error', 'gotPointerCapture', 'input', 'invalid', 'keyDown', 'keyPress', 'keyUp', 'load', 'loadedData', 'loadedMetadata', 'loadStart', 'lostPointerCapture', 'mouseDown', 'mouseMove', 'mouseOut', 'mouseOver', 'mouseUp', 'paste', 'pause', 'play', 'playing', 'pointerCancel', 'pointerDown', 'pointerMove', 'pointerOut', 'pointerOver', 'pointerUp', 'progress', 'rateChange', 'reset', 'resize', 'seeked', 'seeking', 'stalled', 'submit', 'suspend', 'timeUpdate', 'touchCancel', 'touchEnd', 'touchStart', 'volumeChange', 'scroll', 'toggle', 'touchMove', 'waiting', 'wheel'];\n\nfunction registerSimpleEvent(domEventName, reactName) {\n topLevelEventsToReactNames.set(domEventName, reactName);\n registerTwoPhaseEvent(reactName, [domEventName]);\n}\n\nfunction registerSimpleEvents() {\n for (var i = 0; i < simpleEventPluginEvents.length; i++) {\n var eventName = simpleEventPluginEvents[i];\n var domEventName = eventName.toLowerCase();\n var capitalizedEvent = eventName[0].toUpperCase() + eventName.slice(1);\n registerSimpleEvent(domEventName, 'on' + capitalizedEvent);\n } // Special cases where event names don't match.\n\n\n registerSimpleEvent(ANIMATION_END, 'onAnimationEnd');\n registerSimpleEvent(ANIMATION_ITERATION, 'onAnimationIteration');\n registerSimpleEvent(ANIMATION_START, 'onAnimationStart');\n registerSimpleEvent('dblclick', 'onDoubleClick');\n registerSimpleEvent('focusin', 'onFocus');\n registerSimpleEvent('focusout', 'onBlur');\n registerSimpleEvent(TRANSITION_END, 'onTransitionEnd');\n}\n\nfunction extractEvents$4(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {\n var reactName = topLevelEventsToReactNames.get(domEventName);\n\n if (reactName === undefined) {\n return;\n }\n\n var SyntheticEventCtor = SyntheticEvent;\n var reactEventType = domEventName;\n\n switch (domEventName) {\n case 'keypress':\n // Firefox creates a keypress event for function keys too. This removes\n // the unwanted keypress events. Enter is however both printable and\n // non-printable. One would expect Tab to be as well (but it isn't).\n if (getEventCharCode(nativeEvent) === 0) {\n return;\n }\n\n /* falls through */\n\n case 'keydown':\n case 'keyup':\n SyntheticEventCtor = SyntheticKeyboardEvent;\n break;\n\n case 'focusin':\n reactEventType = 'focus';\n SyntheticEventCtor = SyntheticFocusEvent;\n break;\n\n case 'focusout':\n reactEventType = 'blur';\n SyntheticEventCtor = SyntheticFocusEvent;\n break;\n\n case 'beforeblur':\n case 'afterblur':\n SyntheticEventCtor = SyntheticFocusEvent;\n break;\n\n case 'click':\n // Firefox creates a click event on right mouse clicks. This removes the\n // unwanted click events.\n if (nativeEvent.button === 2) {\n return;\n }\n\n /* falls through */\n\n case 'auxclick':\n case 'dblclick':\n case 'mousedown':\n case 'mousemove':\n case 'mouseup': // TODO: Disabled elements should not respond to mouse events\n\n /* falls through */\n\n case 'mouseout':\n case 'mouseover':\n case 'contextmenu':\n SyntheticEventCtor = SyntheticMouseEvent;\n break;\n\n case 'drag':\n case 'dragend':\n case 'dragenter':\n case 'dragexit':\n case 'dragleave':\n case 'dragover':\n case 'dragstart':\n case 'drop':\n SyntheticEventCtor = SyntheticDragEvent;\n break;\n\n case 'touchcancel':\n case 'touchend':\n case 'touchmove':\n case 'touchstart':\n SyntheticEventCtor = SyntheticTouchEvent;\n break;\n\n case ANIMATION_END:\n case ANIMATION_ITERATION:\n case ANIMATION_START:\n SyntheticEventCtor = SyntheticAnimationEvent;\n break;\n\n case TRANSITION_END:\n SyntheticEventCtor = SyntheticTransitionEvent;\n break;\n\n case 'scroll':\n SyntheticEventCtor = SyntheticUIEvent;\n break;\n\n case 'wheel':\n SyntheticEventCtor = SyntheticWheelEvent;\n break;\n\n case 'copy':\n case 'cut':\n case 'paste':\n SyntheticEventCtor = SyntheticClipboardEvent;\n break;\n\n case 'gotpointercapture':\n case 'lostpointercapture':\n case 'pointercancel':\n case 'pointerdown':\n case 'pointermove':\n case 'pointerout':\n case 'pointerover':\n case 'pointerup':\n SyntheticEventCtor = SyntheticPointerEvent;\n break;\n }\n\n var inCapturePhase = (eventSystemFlags & IS_CAPTURE_PHASE) !== 0;\n\n {\n // Some events don't bubble in the browser.\n // In the past, React has always bubbled them, but this can be surprising.\n // We're going to try aligning closer to the browser behavior by not bubbling\n // them in React either. We'll start by not bubbling onScroll, and then expand.\n var accumulateTargetOnly = !inCapturePhase && // TODO: ideally, we'd eventually add all events from\n // nonDelegatedEvents list in DOMPluginEventSystem.\n // Then we can remove this special list.\n // This is a breaking change that can wait until React 18.\n domEventName === 'scroll';\n\n var _listeners = accumulateSinglePhaseListeners(targetInst, reactName, nativeEvent.type, inCapturePhase, accumulateTargetOnly);\n\n if (_listeners.length > 0) {\n // Intentionally create event lazily.\n var _event = new SyntheticEventCtor(reactName, reactEventType, null, nativeEvent, nativeEventTarget);\n\n dispatchQueue.push({\n event: _event,\n listeners: _listeners\n });\n }\n }\n}\n\n// TODO: remove top-level side effect.\nregisterSimpleEvents();\nregisterEvents$2();\nregisterEvents$1();\nregisterEvents$3();\nregisterEvents();\n\nfunction extractEvents$5(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {\n // TODO: we should remove the concept of a \"SimpleEventPlugin\".\n // This is the basic functionality of the event system. All\n // the other plugins are essentially polyfills. So the plugin\n // should probably be inlined somewhere and have its logic\n // be core the to event system. This would potentially allow\n // us to ship builds of React without the polyfilled plugins below.\n extractEvents$4(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);\n var shouldProcessPolyfillPlugins = (eventSystemFlags & SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS) === 0; // We don't process these events unless we are in the\n // event's native \"bubble\" phase, which means that we're\n // not in the capture phase. That's because we emulate\n // the capture phase here still. This is a trade-off,\n // because in an ideal world we would not emulate and use\n // the phases properly, like we do with the SimpleEvent\n // plugin. However, the plugins below either expect\n // emulation (EnterLeave) or use state localized to that\n // plugin (BeforeInput, Change, Select). The state in\n // these modules complicates things, as you'll essentially\n // get the case where the capture phase event might change\n // state, only for the following bubble event to come in\n // later and not trigger anything as the state now\n // invalidates the heuristics of the event plugin. We\n // could alter all these plugins to work in such ways, but\n // that might cause other unknown side-effects that we\n // can't foresee right now.\n\n if (shouldProcessPolyfillPlugins) {\n extractEvents$2(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);\n extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);\n extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);\n extractEvents(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);\n }\n} // List of events that need to be individually attached to media elements.\n\n\nvar mediaEventTypes = ['abort', 'canplay', 'canplaythrough', 'durationchange', 'emptied', 'encrypted', 'ended', 'error', 'loadeddata', 'loadedmetadata', 'loadstart', 'pause', 'play', 'playing', 'progress', 'ratechange', 'resize', 'seeked', 'seeking', 'stalled', 'suspend', 'timeupdate', 'volumechange', 'waiting']; // We should not delegate these events to the container, but rather\n// set them on the actual target element itself. This is primarily\n// because these events do not consistently bubble in the DOM.\n\nvar nonDelegatedEvents = new Set(['cancel', 'close', 'invalid', 'load', 'scroll', 'toggle'].concat(mediaEventTypes));\n\nfunction executeDispatch(event, listener, currentTarget) {\n var type = event.type || 'unknown-event';\n event.currentTarget = currentTarget;\n invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);\n event.currentTarget = null;\n}\n\nfunction processDispatchQueueItemsInOrder(event, dispatchListeners, inCapturePhase) {\n var previousInstance;\n\n if (inCapturePhase) {\n for (var i = dispatchListeners.length - 1; i >= 0; i--) {\n var _dispatchListeners$i = dispatchListeners[i],\n instance = _dispatchListeners$i.instance,\n currentTarget = _dispatchListeners$i.currentTarget,\n listener = _dispatchListeners$i.listener;\n\n if (instance !== previousInstance && event.isPropagationStopped()) {\n return;\n }\n\n executeDispatch(event, listener, currentTarget);\n previousInstance = instance;\n }\n } else {\n for (var _i = 0; _i < dispatchListeners.length; _i++) {\n var _dispatchListeners$_i = dispatchListeners[_i],\n _instance = _dispatchListeners$_i.instance,\n _currentTarget = _dispatchListeners$_i.currentTarget,\n _listener = _dispatchListeners$_i.listener;\n\n if (_instance !== previousInstance && event.isPropagationStopped()) {\n return;\n }\n\n executeDispatch(event, _listener, _currentTarget);\n previousInstance = _instance;\n }\n }\n}\n\nfunction processDispatchQueue(dispatchQueue, eventSystemFlags) {\n var inCapturePhase = (eventSystemFlags & IS_CAPTURE_PHASE) !== 0;\n\n for (var i = 0; i < dispatchQueue.length; i++) {\n var _dispatchQueue$i = dispatchQueue[i],\n event = _dispatchQueue$i.event,\n listeners = _dispatchQueue$i.listeners;\n processDispatchQueueItemsInOrder(event, listeners, inCapturePhase); // event system doesn't use pooling.\n } // This would be a good time to rethrow if any of the event handlers threw.\n\n\n rethrowCaughtError();\n}\n\nfunction dispatchEventsForPlugins(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer) {\n var nativeEventTarget = getEventTarget(nativeEvent);\n var dispatchQueue = [];\n extractEvents$5(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);\n processDispatchQueue(dispatchQueue, eventSystemFlags);\n}\n\nfunction listenToNonDelegatedEvent(domEventName, targetElement) {\n {\n if (!nonDelegatedEvents.has(domEventName)) {\n error('Did not expect a listenToNonDelegatedEvent() call for \"%s\". ' + 'This is a bug in React. Please file an issue.', domEventName);\n }\n }\n\n var isCapturePhaseListener = false;\n var listenerSet = getEventListenerSet(targetElement);\n var listenerSetKey = getListenerSetKey(domEventName, isCapturePhaseListener);\n\n if (!listenerSet.has(listenerSetKey)) {\n addTrappedEventListener(targetElement, domEventName, IS_NON_DELEGATED, isCapturePhaseListener);\n listenerSet.add(listenerSetKey);\n }\n}\nfunction listenToNativeEvent(domEventName, isCapturePhaseListener, target) {\n {\n if (nonDelegatedEvents.has(domEventName) && !isCapturePhaseListener) {\n error('Did not expect a listenToNativeEvent() call for \"%s\" in the bubble phase. ' + 'This is a bug in React. Please file an issue.', domEventName);\n }\n }\n\n var eventSystemFlags = 0;\n\n if (isCapturePhaseListener) {\n eventSystemFlags |= IS_CAPTURE_PHASE;\n }\n\n addTrappedEventListener(target, domEventName, eventSystemFlags, isCapturePhaseListener);\n} // This is only used by createEventHandle when the\nvar listeningMarker = '_reactListening' + Math.random().toString(36).slice(2);\nfunction listenToAllSupportedEvents(rootContainerElement) {\n if (!rootContainerElement[listeningMarker]) {\n rootContainerElement[listeningMarker] = true;\n allNativeEvents.forEach(function (domEventName) {\n // We handle selectionchange separately because it\n // doesn't bubble and needs to be on the document.\n if (domEventName !== 'selectionchange') {\n if (!nonDelegatedEvents.has(domEventName)) {\n listenToNativeEvent(domEventName, false, rootContainerElement);\n }\n\n listenToNativeEvent(domEventName, true, rootContainerElement);\n }\n });\n var ownerDocument = rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;\n\n if (ownerDocument !== null) {\n // The selectionchange event also needs deduplication\n // but it is attached to the document.\n if (!ownerDocument[listeningMarker]) {\n ownerDocument[listeningMarker] = true;\n listenToNativeEvent('selectionchange', false, ownerDocument);\n }\n }\n }\n}\n\nfunction addTrappedEventListener(targetContainer, domEventName, eventSystemFlags, isCapturePhaseListener, isDeferredListenerForLegacyFBSupport) {\n var listener = createEventListenerWrapperWithPriority(targetContainer, domEventName, eventSystemFlags); // If passive option is not supported, then the event will be\n // active and not passive.\n\n var isPassiveListener = undefined;\n\n if (passiveBrowserEventsSupported) {\n // Browsers introduced an intervention, making these events\n // passive by default on document. React doesn't bind them\n // to document anymore, but changing this now would undo\n // the performance wins from the change. So we emulate\n // the existing behavior manually on the roots now.\n // https://github.com/facebook/react/issues/19651\n if (domEventName === 'touchstart' || domEventName === 'touchmove' || domEventName === 'wheel') {\n isPassiveListener = true;\n }\n }\n\n targetContainer = targetContainer;\n var unsubscribeListener; // When legacyFBSupport is enabled, it's for when we\n\n\n if (isCapturePhaseListener) {\n if (isPassiveListener !== undefined) {\n unsubscribeListener = addEventCaptureListenerWithPassiveFlag(targetContainer, domEventName, listener, isPassiveListener);\n } else {\n unsubscribeListener = addEventCaptureListener(targetContainer, domEventName, listener);\n }\n } else {\n if (isPassiveListener !== undefined) {\n unsubscribeListener = addEventBubbleListenerWithPassiveFlag(targetContainer, domEventName, listener, isPassiveListener);\n } else {\n unsubscribeListener = addEventBubbleListener(targetContainer, domEventName, listener);\n }\n }\n}\n\nfunction isMatchingRootContainer(grandContainer, targetContainer) {\n return grandContainer === targetContainer || grandContainer.nodeType === COMMENT_NODE && grandContainer.parentNode === targetContainer;\n}\n\nfunction dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer) {\n var ancestorInst = targetInst;\n\n if ((eventSystemFlags & IS_EVENT_HANDLE_NON_MANAGED_NODE) === 0 && (eventSystemFlags & IS_NON_DELEGATED) === 0) {\n var targetContainerNode = targetContainer; // If we are using the legacy FB support flag, we\n\n if (targetInst !== null) {\n // The below logic attempts to work out if we need to change\n // the target fiber to a different ancestor. We had similar logic\n // in the legacy event system, except the big difference between\n // systems is that the modern event system now has an event listener\n // attached to each React Root and React Portal Root. Together,\n // the DOM nodes representing these roots are the \"rootContainer\".\n // To figure out which ancestor instance we should use, we traverse\n // up the fiber tree from the target instance and attempt to find\n // root boundaries that match that of our current \"rootContainer\".\n // If we find that \"rootContainer\", we find the parent fiber\n // sub-tree for that root and make that our ancestor instance.\n var node = targetInst;\n\n mainLoop: while (true) {\n if (node === null) {\n return;\n }\n\n var nodeTag = node.tag;\n\n if (nodeTag === HostRoot || nodeTag === HostPortal) {\n var container = node.stateNode.containerInfo;\n\n if (isMatchingRootContainer(container, targetContainerNode)) {\n break;\n }\n\n if (nodeTag === HostPortal) {\n // The target is a portal, but it's not the rootContainer we're looking for.\n // Normally portals handle their own events all the way down to the root.\n // So we should be able to stop now. However, we don't know if this portal\n // was part of *our* root.\n var grandNode = node.return;\n\n while (grandNode !== null) {\n var grandTag = grandNode.tag;\n\n if (grandTag === HostRoot || grandTag === HostPortal) {\n var grandContainer = grandNode.stateNode.containerInfo;\n\n if (isMatchingRootContainer(grandContainer, targetContainerNode)) {\n // This is the rootContainer we're looking for and we found it as\n // a parent of the Portal. That means we can ignore it because the\n // Portal will bubble through to us.\n return;\n }\n }\n\n grandNode = grandNode.return;\n }\n } // Now we need to find it's corresponding host fiber in the other\n // tree. To do this we can use getClosestInstanceFromNode, but we\n // need to validate that the fiber is a host instance, otherwise\n // we need to traverse up through the DOM till we find the correct\n // node that is from the other tree.\n\n\n while (container !== null) {\n var parentNode = getClosestInstanceFromNode(container);\n\n if (parentNode === null) {\n return;\n }\n\n var parentTag = parentNode.tag;\n\n if (parentTag === HostComponent || parentTag === HostText) {\n node = ancestorInst = parentNode;\n continue mainLoop;\n }\n\n container = container.parentNode;\n }\n }\n\n node = node.return;\n }\n }\n }\n\n batchedUpdates(function () {\n return dispatchEventsForPlugins(domEventName, eventSystemFlags, nativeEvent, ancestorInst);\n });\n}\n\nfunction createDispatchListener(instance, listener, currentTarget) {\n return {\n instance: instance,\n listener: listener,\n currentTarget: currentTarget\n };\n}\n\nfunction accumulateSinglePhaseListeners(targetFiber, reactName, nativeEventType, inCapturePhase, accumulateTargetOnly, nativeEvent) {\n var captureName = reactName !== null ? reactName + 'Capture' : null;\n var reactEventName = inCapturePhase ? captureName : reactName;\n var listeners = [];\n var instance = targetFiber;\n var lastHostComponent = null; // Accumulate all instances and listeners via the target -> root path.\n\n while (instance !== null) {\n var _instance2 = instance,\n stateNode = _instance2.stateNode,\n tag = _instance2.tag; // Handle listeners that are on HostComponents (i.e. <div>)\n\n if (tag === HostComponent && stateNode !== null) {\n lastHostComponent = stateNode; // createEventHandle listeners\n\n\n if (reactEventName !== null) {\n var listener = getListener(instance, reactEventName);\n\n if (listener != null) {\n listeners.push(createDispatchListener(instance, listener, lastHostComponent));\n }\n }\n } // If we are only accumulating events for the target, then we don't\n // continue to propagate through the React fiber tree to find other\n // listeners.\n\n\n if (accumulateTargetOnly) {\n break;\n } // If we are processing the onBeforeBlur event, then we need to take\n\n instance = instance.return;\n }\n\n return listeners;\n} // We should only use this function for:\n// - BeforeInputEventPlugin\n// - ChangeEventPlugin\n// - SelectEventPlugin\n// This is because we only process these plugins\n// in the bubble phase, so we need to accumulate two\n// phase event listeners (via emulation).\n\nfunction accumulateTwoPhaseListeners(targetFiber, reactName) {\n var captureName = reactName + 'Capture';\n var listeners = [];\n var instance = targetFiber; // Accumulate all instances and listeners via the target -> root path.\n\n while (instance !== null) {\n var _instance3 = instance,\n stateNode = _instance3.stateNode,\n tag = _instance3.tag; // Handle listeners that are on HostComponents (i.e. <div>)\n\n if (tag === HostComponent && stateNode !== null) {\n var currentTarget = stateNode;\n var captureListener = getListener(instance, captureName);\n\n if (captureListener != null) {\n listeners.unshift(createDispatchListener(instance, captureListener, currentTarget));\n }\n\n var bubbleListener = getListener(instance, reactName);\n\n if (bubbleListener != null) {\n listeners.push(createDispatchListener(instance, bubbleListener, currentTarget));\n }\n }\n\n instance = instance.return;\n }\n\n return listeners;\n}\n\nfunction getParent(inst) {\n if (inst === null) {\n return null;\n }\n\n do {\n inst = inst.return; // TODO: If this is a HostRoot we might want to bail out.\n // That is depending on if we want nested subtrees (layers) to bubble\n // events to their parent. We could also go through parentNode on the\n // host node but that wouldn't work for React Native and doesn't let us\n // do the portal feature.\n } while (inst && inst.tag !== HostComponent);\n\n if (inst) {\n return inst;\n }\n\n return null;\n}\n/**\n * Return the lowest common ancestor of A and B, or null if they are in\n * different trees.\n */\n\n\nfunction getLowestCommonAncestor(instA, instB) {\n var nodeA = instA;\n var nodeB = instB;\n var depthA = 0;\n\n for (var tempA = nodeA; tempA; tempA = getParent(tempA)) {\n depthA++;\n }\n\n var depthB = 0;\n\n for (var tempB = nodeB; tempB; tempB = getParent(tempB)) {\n depthB++;\n } // If A is deeper, crawl up.\n\n\n while (depthA - depthB > 0) {\n nodeA = getParent(nodeA);\n depthA--;\n } // If B is deeper, crawl up.\n\n\n while (depthB - depthA > 0) {\n nodeB = getParent(nodeB);\n depthB--;\n } // Walk in lockstep until we find a match.\n\n\n var depth = depthA;\n\n while (depth--) {\n if (nodeA === nodeB || nodeB !== null && nodeA === nodeB.alternate) {\n return nodeA;\n }\n\n nodeA = getParent(nodeA);\n nodeB = getParent(nodeB);\n }\n\n return null;\n}\n\nfunction accumulateEnterLeaveListenersForEvent(dispatchQueue, event, target, common, inCapturePhase) {\n var registrationName = event._reactName;\n var listeners = [];\n var instance = target;\n\n while (instance !== null) {\n if (instance === common) {\n break;\n }\n\n var _instance4 = instance,\n alternate = _instance4.alternate,\n stateNode = _instance4.stateNode,\n tag = _instance4.tag;\n\n if (alternate !== null && alternate === common) {\n break;\n }\n\n if (tag === HostComponent && stateNode !== null) {\n var currentTarget = stateNode;\n\n if (inCapturePhase) {\n var captureListener = getListener(instance, registrationName);\n\n if (captureListener != null) {\n listeners.unshift(createDispatchListener(instance, captureListener, currentTarget));\n }\n } else if (!inCapturePhase) {\n var bubbleListener = getListener(instance, registrationName);\n\n if (bubbleListener != null) {\n listeners.push(createDispatchListener(instance, bubbleListener, currentTarget));\n }\n }\n }\n\n instance = instance.return;\n }\n\n if (listeners.length !== 0) {\n dispatchQueue.push({\n event: event,\n listeners: listeners\n });\n }\n} // We should only use this function for:\n// - EnterLeaveEventPlugin\n// This is because we only process this plugin\n// in the bubble phase, so we need to accumulate two\n// phase event listeners.\n\n\nfunction accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leaveEvent, enterEvent, from, to) {\n var common = from && to ? getLowestCommonAncestor(from, to) : null;\n\n if (from !== null) {\n accumulateEnterLeaveListenersForEvent(dispatchQueue, leaveEvent, from, common, false);\n }\n\n if (to !== null && enterEvent !== null) {\n accumulateEnterLeaveListenersForEvent(dispatchQueue, enterEvent, to, common, true);\n }\n}\nfunction getListenerSetKey(domEventName, capture) {\n return domEventName + \"__\" + (capture ? 'capture' : 'bubble');\n}\n\nvar didWarnInvalidHydration = false;\nvar DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';\nvar SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';\nvar SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';\nvar AUTOFOCUS = 'autoFocus';\nvar CHILDREN = 'children';\nvar STYLE = 'style';\nvar HTML$1 = '__html';\nvar warnedUnknownTags;\nvar validatePropertiesInDevelopment;\nvar warnForPropDifference;\nvar warnForExtraAttributes;\nvar warnForInvalidEventListener;\nvar canDiffStyleForHydrationWarning;\nvar normalizeHTML;\n\n{\n warnedUnknownTags = {\n // There are working polyfills for <dialog>. Let people use it.\n dialog: true,\n // Electron ships a custom <webview> tag to display external web content in\n // an isolated frame and process.\n // This tag is not present in non Electron environments such as JSDom which\n // is often used for testing purposes.\n // @see https://electronjs.org/docs/api/webview-tag\n webview: true\n };\n\n validatePropertiesInDevelopment = function (type, props) {\n validateProperties(type, props);\n validateProperties$1(type, props);\n validateProperties$2(type, props, {\n registrationNameDependencies: registrationNameDependencies,\n possibleRegistrationNames: possibleRegistrationNames\n });\n }; // IE 11 parses & normalizes the style attribute as opposed to other\n // browsers. It adds spaces and sorts the properties in some\n // non-alphabetical order. Handling that would require sorting CSS\n // properties in the client & server versions or applying\n // `expectedStyle` to a temporary DOM node to read its `style` attribute\n // normalized. Since it only affects IE, we're skipping style warnings\n // in that browser completely in favor of doing all that work.\n // See https://github.com/facebook/react/issues/11807\n\n\n canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode;\n\n warnForPropDifference = function (propName, serverValue, clientValue) {\n if (didWarnInvalidHydration) {\n return;\n }\n\n var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);\n var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);\n\n if (normalizedServerValue === normalizedClientValue) {\n return;\n }\n\n didWarnInvalidHydration = true;\n\n error('Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));\n };\n\n warnForExtraAttributes = function (attributeNames) {\n if (didWarnInvalidHydration) {\n return;\n }\n\n didWarnInvalidHydration = true;\n var names = [];\n attributeNames.forEach(function (name) {\n names.push(name);\n });\n\n error('Extra attributes from the server: %s', names);\n };\n\n warnForInvalidEventListener = function (registrationName, listener) {\n if (listener === false) {\n error('Expected `%s` listener to be a function, instead got `false`.\\n\\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName);\n } else {\n error('Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);\n }\n }; // Parse the HTML and read it back to normalize the HTML string so that it\n // can be used for comparison.\n\n\n normalizeHTML = function (parent, html) {\n // We could have created a separate document here to avoid\n // re-initializing custom elements if they exist. But this breaks\n // how <noscript> is being handled. So we use the same document.\n // See the discussion in https://github.com/facebook/react/pull/11157.\n var testElement = parent.namespaceURI === HTML_NAMESPACE ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);\n testElement.innerHTML = html;\n return testElement.innerHTML;\n };\n} // HTML parsing normalizes CR and CRLF to LF.\n// It also can turn \\u0000 into \\uFFFD inside attributes.\n// https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream\n// If we have a mismatch, it might be caused by that.\n// We will still patch up in this case but not fire the warning.\n\n\nvar NORMALIZE_NEWLINES_REGEX = /\\r\\n?/g;\nvar NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\\u0000|\\uFFFD/g;\n\nfunction normalizeMarkupForTextOrAttribute(markup) {\n {\n checkHtmlStringCoercion(markup);\n }\n\n var markupString = typeof markup === 'string' ? markup : '' + markup;\n return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');\n}\n\nfunction checkForUnmatchedText(serverText, clientText, isConcurrentMode, shouldWarnDev) {\n var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);\n var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);\n\n if (normalizedServerText === normalizedClientText) {\n return;\n }\n\n if (shouldWarnDev) {\n {\n if (!didWarnInvalidHydration) {\n didWarnInvalidHydration = true;\n\n error('Text content did not match. Server: \"%s\" Client: \"%s\"', normalizedServerText, normalizedClientText);\n }\n }\n }\n\n if (isConcurrentMode && enableClientRenderFallbackOnTextMismatch) {\n // In concurrent roots, we throw when there's a text mismatch and revert to\n // client rendering, up to the nearest Suspense boundary.\n throw new Error('Text content does not match server-rendered HTML.');\n }\n}\n\nfunction getOwnerDocumentFromRootContainer(rootContainerElement) {\n return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;\n}\n\nfunction noop() {}\n\nfunction trapClickOnNonInteractiveElement(node) {\n // Mobile Safari does not fire properly bubble click events on\n // non-interactive elements, which means delegated click listeners do not\n // fire. The workaround for this bug involves attaching an empty click\n // listener on the target node.\n // https://www.quirksmode.org/blog/archives/2010/09/click_event_del.html\n // Just set it using the onclick property so that we don't have to manage any\n // bookkeeping for it. Not sure if we need to clear it when the listener is\n // removed.\n // TODO: Only do this for the relevant Safaris maybe?\n node.onclick = noop;\n}\n\nfunction setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {\n for (var propKey in nextProps) {\n if (!nextProps.hasOwnProperty(propKey)) {\n continue;\n }\n\n var nextProp = nextProps[propKey];\n\n if (propKey === STYLE) {\n {\n if (nextProp) {\n // Freeze the next style object so that we can assume it won't be\n // mutated. We have already warned for this in the past.\n Object.freeze(nextProp);\n }\n } // Relies on `updateStylesByID` not mutating `styleUpdates`.\n\n\n setValueForStyles(domElement, nextProp);\n } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {\n var nextHtml = nextProp ? nextProp[HTML$1] : undefined;\n\n if (nextHtml != null) {\n setInnerHTML(domElement, nextHtml);\n }\n } else if (propKey === CHILDREN) {\n if (typeof nextProp === 'string') {\n // Avoid setting initial textContent when the text is empty. In IE11 setting\n // textContent on a <textarea> will cause the placeholder to not\n // show within the <textarea> until it has been focused and blurred again.\n // https://github.com/facebook/react/issues/6731#issuecomment-254874553\n var canSetTextContent = tag !== 'textarea' || nextProp !== '';\n\n if (canSetTextContent) {\n setTextContent(domElement, nextProp);\n }\n } else if (typeof nextProp === 'number') {\n setTextContent(domElement, '' + nextProp);\n }\n } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {\n if (nextProp != null) {\n if ( typeof nextProp !== 'function') {\n warnForInvalidEventListener(propKey, nextProp);\n }\n\n if (propKey === 'onScroll') {\n listenToNonDelegatedEvent('scroll', domElement);\n }\n }\n } else if (nextProp != null) {\n setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);\n }\n }\n}\n\nfunction updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {\n // TODO: Handle wasCustomComponentTag\n for (var i = 0; i < updatePayload.length; i += 2) {\n var propKey = updatePayload[i];\n var propValue = updatePayload[i + 1];\n\n if (propKey === STYLE) {\n setValueForStyles(domElement, propValue);\n } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {\n setInnerHTML(domElement, propValue);\n } else if (propKey === CHILDREN) {\n setTextContent(domElement, propValue);\n } else {\n setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);\n }\n }\n}\n\nfunction createElement(type, props, rootContainerElement, parentNamespace) {\n var isCustomComponentTag; // We create tags in the namespace of their parent container, except HTML\n // tags get no namespace.\n\n var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);\n var domElement;\n var namespaceURI = parentNamespace;\n\n if (namespaceURI === HTML_NAMESPACE) {\n namespaceURI = getIntrinsicNamespace(type);\n }\n\n if (namespaceURI === HTML_NAMESPACE) {\n {\n isCustomComponentTag = isCustomComponent(type, props); // Should this check be gated by parent namespace? Not sure we want to\n // allow <SVG> or <mATH>.\n\n if (!isCustomComponentTag && type !== type.toLowerCase()) {\n error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type);\n }\n }\n\n if (type === 'script') {\n // Create the script via .innerHTML so its \"parser-inserted\" flag is\n // set to true and it does not execute\n var div = ownerDocument.createElement('div');\n\n div.innerHTML = '<script><' + '/script>'; // eslint-disable-line\n // This is guaranteed to yield a script element.\n\n var firstChild = div.firstChild;\n domElement = div.removeChild(firstChild);\n } else if (typeof props.is === 'string') {\n // $FlowIssue `createElement` should be updated for Web Components\n domElement = ownerDocument.createElement(type, {\n is: props.is\n });\n } else {\n // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.\n // See discussion in https://github.com/facebook/react/pull/6896\n // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240\n domElement = ownerDocument.createElement(type); // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple` and `size`\n // attributes on `select`s needs to be added before `option`s are inserted.\n // This prevents:\n // - a bug where the `select` does not scroll to the correct option because singular\n // `select` elements automatically pick the first item #13222\n // - a bug where the `select` set the first item as selected despite the `size` attribute #14239\n // See https://github.com/facebook/react/issues/13222\n // and https://github.com/facebook/react/issues/14239\n\n if (type === 'select') {\n var node = domElement;\n\n if (props.multiple) {\n node.multiple = true;\n } else if (props.size) {\n // Setting a size greater than 1 causes a select to behave like `multiple=true`, where\n // it is possible that no option is selected.\n //\n // This is only necessary when a select in \"single selection mode\".\n node.size = props.size;\n }\n }\n }\n } else {\n domElement = ownerDocument.createElementNS(namespaceURI, type);\n }\n\n {\n if (namespaceURI === HTML_NAMESPACE) {\n if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !hasOwnProperty.call(warnedUnknownTags, type)) {\n warnedUnknownTags[type] = true;\n\n error('The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);\n }\n }\n }\n\n return domElement;\n}\nfunction createTextNode(text, rootContainerElement) {\n return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);\n}\nfunction setInitialProperties(domElement, tag, rawProps, rootContainerElement) {\n var isCustomComponentTag = isCustomComponent(tag, rawProps);\n\n {\n validatePropertiesInDevelopment(tag, rawProps);\n } // TODO: Make sure that we check isMounted before firing any of these events.\n\n\n var props;\n\n switch (tag) {\n case 'dialog':\n listenToNonDelegatedEvent('cancel', domElement);\n listenToNonDelegatedEvent('close', domElement);\n props = rawProps;\n break;\n\n case 'iframe':\n case 'object':\n case 'embed':\n // We listen to this event in case to ensure emulated bubble\n // listeners still fire for the load event.\n listenToNonDelegatedEvent('load', domElement);\n props = rawProps;\n break;\n\n case 'video':\n case 'audio':\n // We listen to these events in case to ensure emulated bubble\n // listeners still fire for all the media events.\n for (var i = 0; i < mediaEventTypes.length; i++) {\n listenToNonDelegatedEvent(mediaEventTypes[i], domElement);\n }\n\n props = rawProps;\n break;\n\n case 'source':\n // We listen to this event in case to ensure emulated bubble\n // listeners still fire for the error event.\n listenToNonDelegatedEvent('error', domElement);\n props = rawProps;\n break;\n\n case 'img':\n case 'image':\n case 'link':\n // We listen to these events in case to ensure emulated bubble\n // listeners still fire for error and load events.\n listenToNonDelegatedEvent('error', domElement);\n listenToNonDelegatedEvent('load', domElement);\n props = rawProps;\n break;\n\n case 'details':\n // We listen to this event in case to ensure emulated bubble\n // listeners still fire for the toggle event.\n listenToNonDelegatedEvent('toggle', domElement);\n props = rawProps;\n break;\n\n case 'input':\n initWrapperState(domElement, rawProps);\n props = getHostProps(domElement, rawProps); // We listen to this event in case to ensure emulated bubble\n // listeners still fire for the invalid event.\n\n listenToNonDelegatedEvent('invalid', domElement);\n break;\n\n case 'option':\n validateProps(domElement, rawProps);\n props = rawProps;\n break;\n\n case 'select':\n initWrapperState$1(domElement, rawProps);\n props = getHostProps$1(domElement, rawProps); // We listen to this event in case to ensure emulated bubble\n // listeners still fire for the invalid event.\n\n listenToNonDelegatedEvent('invalid', domElement);\n break;\n\n case 'textarea':\n initWrapperState$2(domElement, rawProps);\n props = getHostProps$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble\n // listeners still fire for the invalid event.\n\n listenToNonDelegatedEvent('invalid', domElement);\n break;\n\n default:\n props = rawProps;\n }\n\n assertValidProps(tag, props);\n setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);\n\n switch (tag) {\n case 'input':\n // TODO: Make sure we check if this is still unmounted or do any clean\n // up necessary since we never stop tracking anymore.\n track(domElement);\n postMountWrapper(domElement, rawProps, false);\n break;\n\n case 'textarea':\n // TODO: Make sure we check if this is still unmounted or do any clean\n // up necessary since we never stop tracking anymore.\n track(domElement);\n postMountWrapper$3(domElement);\n break;\n\n case 'option':\n postMountWrapper$1(domElement, rawProps);\n break;\n\n case 'select':\n postMountWrapper$2(domElement, rawProps);\n break;\n\n default:\n if (typeof props.onClick === 'function') {\n // TODO: This cast may not be sound for SVG, MathML or custom elements.\n trapClickOnNonInteractiveElement(domElement);\n }\n\n break;\n }\n} // Calculate the diff between the two objects.\n\nfunction diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {\n {\n validatePropertiesInDevelopment(tag, nextRawProps);\n }\n\n var updatePayload = null;\n var lastProps;\n var nextProps;\n\n switch (tag) {\n case 'input':\n lastProps = getHostProps(domElement, lastRawProps);\n nextProps = getHostProps(domElement, nextRawProps);\n updatePayload = [];\n break;\n\n case 'select':\n lastProps = getHostProps$1(domElement, lastRawProps);\n nextProps = getHostProps$1(domElement, nextRawProps);\n updatePayload = [];\n break;\n\n case 'textarea':\n lastProps = getHostProps$2(domElement, lastRawProps);\n nextProps = getHostProps$2(domElement, nextRawProps);\n updatePayload = [];\n break;\n\n default:\n lastProps = lastRawProps;\n nextProps = nextRawProps;\n\n if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {\n // TODO: This cast may not be sound for SVG, MathML or custom elements.\n trapClickOnNonInteractiveElement(domElement);\n }\n\n break;\n }\n\n assertValidProps(tag, nextProps);\n var propKey;\n var styleName;\n var styleUpdates = null;\n\n for (propKey in lastProps) {\n if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {\n continue;\n }\n\n if (propKey === STYLE) {\n var lastStyle = lastProps[propKey];\n\n for (styleName in lastStyle) {\n if (lastStyle.hasOwnProperty(styleName)) {\n if (!styleUpdates) {\n styleUpdates = {};\n }\n\n styleUpdates[styleName] = '';\n }\n }\n } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) ; else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {\n // This is a special case. If any listener updates we need to ensure\n // that the \"current\" fiber pointer gets updated so we need a commit\n // to update this element.\n if (!updatePayload) {\n updatePayload = [];\n }\n } else {\n // For all other deleted properties we add it to the queue. We use\n // the allowed property list in the commit phase instead.\n (updatePayload = updatePayload || []).push(propKey, null);\n }\n }\n\n for (propKey in nextProps) {\n var nextProp = nextProps[propKey];\n var lastProp = lastProps != null ? lastProps[propKey] : undefined;\n\n if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {\n continue;\n }\n\n if (propKey === STYLE) {\n {\n if (nextProp) {\n // Freeze the next style object so that we can assume it won't be\n // mutated. We have already warned for this in the past.\n Object.freeze(nextProp);\n }\n }\n\n if (lastProp) {\n // Unset styles on `lastProp` but not on `nextProp`.\n for (styleName in lastProp) {\n if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {\n if (!styleUpdates) {\n styleUpdates = {};\n }\n\n styleUpdates[styleName] = '';\n }\n } // Update styles that changed since `lastProp`.\n\n\n for (styleName in nextProp) {\n if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {\n if (!styleUpdates) {\n styleUpdates = {};\n }\n\n styleUpdates[styleName] = nextProp[styleName];\n }\n }\n } else {\n // Relies on `updateStylesByID` not mutating `styleUpdates`.\n if (!styleUpdates) {\n if (!updatePayload) {\n updatePayload = [];\n }\n\n updatePayload.push(propKey, styleUpdates);\n }\n\n styleUpdates = nextProp;\n }\n } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {\n var nextHtml = nextProp ? nextProp[HTML$1] : undefined;\n var lastHtml = lastProp ? lastProp[HTML$1] : undefined;\n\n if (nextHtml != null) {\n if (lastHtml !== nextHtml) {\n (updatePayload = updatePayload || []).push(propKey, nextHtml);\n }\n }\n } else if (propKey === CHILDREN) {\n if (typeof nextProp === 'string' || typeof nextProp === 'number') {\n (updatePayload = updatePayload || []).push(propKey, '' + nextProp);\n }\n } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {\n if (nextProp != null) {\n // We eagerly listen to this even though we haven't committed yet.\n if ( typeof nextProp !== 'function') {\n warnForInvalidEventListener(propKey, nextProp);\n }\n\n if (propKey === 'onScroll') {\n listenToNonDelegatedEvent('scroll', domElement);\n }\n }\n\n if (!updatePayload && lastProp !== nextProp) {\n // This is a special case. If any listener updates we need to ensure\n // that the \"current\" props pointer gets updated so we need a commit\n // to update this element.\n updatePayload = [];\n }\n } else {\n // For any other property we always add it to the queue and then we\n // filter it out using the allowed property list during the commit.\n (updatePayload = updatePayload || []).push(propKey, nextProp);\n }\n }\n\n if (styleUpdates) {\n {\n validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE]);\n }\n\n (updatePayload = updatePayload || []).push(STYLE, styleUpdates);\n }\n\n return updatePayload;\n} // Apply the diff.\n\nfunction updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {\n // Update checked *before* name.\n // In the middle of an update, it is possible to have multiple checked.\n // When a checked radio tries to change name, browser makes another radio's checked false.\n if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {\n updateChecked(domElement, nextRawProps);\n }\n\n var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);\n var isCustomComponentTag = isCustomComponent(tag, nextRawProps); // Apply the diff.\n\n updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag); // TODO: Ensure that an update gets scheduled if any of the special props\n // changed.\n\n switch (tag) {\n case 'input':\n // Update the wrapper around inputs *after* updating props. This has to\n // happen after `updateDOMProperties`. Otherwise HTML5 input validations\n // raise warnings and prevent the new value from being assigned.\n updateWrapper(domElement, nextRawProps);\n break;\n\n case 'textarea':\n updateWrapper$1(domElement, nextRawProps);\n break;\n\n case 'select':\n // <select> value update needs to occur after <option> children\n // reconciliation\n postUpdateWrapper(domElement, nextRawProps);\n break;\n }\n}\n\nfunction getPossibleStandardName(propName) {\n {\n var lowerCasedName = propName.toLowerCase();\n\n if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {\n return null;\n }\n\n return possibleStandardNames[lowerCasedName] || null;\n }\n}\n\nfunction diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement, isConcurrentMode, shouldWarnDev) {\n var isCustomComponentTag;\n var extraAttributeNames;\n\n {\n isCustomComponentTag = isCustomComponent(tag, rawProps);\n validatePropertiesInDevelopment(tag, rawProps);\n } // TODO: Make sure that we check isMounted before firing any of these events.\n\n\n switch (tag) {\n case 'dialog':\n listenToNonDelegatedEvent('cancel', domElement);\n listenToNonDelegatedEvent('close', domElement);\n break;\n\n case 'iframe':\n case 'object':\n case 'embed':\n // We listen to this event in case to ensure emulated bubble\n // listeners still fire for the load event.\n listenToNonDelegatedEvent('load', domElement);\n break;\n\n case 'video':\n case 'audio':\n // We listen to these events in case to ensure emulated bubble\n // listeners still fire for all the media events.\n for (var i = 0; i < mediaEventTypes.length; i++) {\n listenToNonDelegatedEvent(mediaEventTypes[i], domElement);\n }\n\n break;\n\n case 'source':\n // We listen to this event in case to ensure emulated bubble\n // listeners still fire for the error event.\n listenToNonDelegatedEvent('error', domElement);\n break;\n\n case 'img':\n case 'image':\n case 'link':\n // We listen to these events in case to ensure emulated bubble\n // listeners still fire for error and load events.\n listenToNonDelegatedEvent('error', domElement);\n listenToNonDelegatedEvent('load', domElement);\n break;\n\n case 'details':\n // We listen to this event in case to ensure emulated bubble\n // listeners still fire for the toggle event.\n listenToNonDelegatedEvent('toggle', domElement);\n break;\n\n case 'input':\n initWrapperState(domElement, rawProps); // We listen to this event in case to ensure emulated bubble\n // listeners still fire for the invalid event.\n\n listenToNonDelegatedEvent('invalid', domElement);\n break;\n\n case 'option':\n validateProps(domElement, rawProps);\n break;\n\n case 'select':\n initWrapperState$1(domElement, rawProps); // We listen to this event in case to ensure emulated bubble\n // listeners still fire for the invalid event.\n\n listenToNonDelegatedEvent('invalid', domElement);\n break;\n\n case 'textarea':\n initWrapperState$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble\n // listeners still fire for the invalid event.\n\n listenToNonDelegatedEvent('invalid', domElement);\n break;\n }\n\n assertValidProps(tag, rawProps);\n\n {\n extraAttributeNames = new Set();\n var attributes = domElement.attributes;\n\n for (var _i = 0; _i < attributes.length; _i++) {\n var name = attributes[_i].name.toLowerCase();\n\n switch (name) {\n // Controlled attributes are not validated\n // TODO: Only ignore them on controlled tags.\n case 'value':\n break;\n\n case 'checked':\n break;\n\n case 'selected':\n break;\n\n default:\n // Intentionally use the original name.\n // See discussion in https://github.com/facebook/react/pull/10676.\n extraAttributeNames.add(attributes[_i].name);\n }\n }\n }\n\n var updatePayload = null;\n\n for (var propKey in rawProps) {\n if (!rawProps.hasOwnProperty(propKey)) {\n continue;\n }\n\n var nextProp = rawProps[propKey];\n\n if (propKey === CHILDREN) {\n // For text content children we compare against textContent. This\n // might match additional HTML that is hidden when we read it using\n // textContent. E.g. \"foo\" will match \"f<span>oo</span>\" but that still\n // satisfies our requirement. Our requirement is not to produce perfect\n // HTML and attributes. Ideally we should preserve structure but it's\n // ok not to if the visible content is still enough to indicate what\n // even listeners these nodes might be wired up to.\n // TODO: Warn if there is more than a single textNode as a child.\n // TODO: Should we use domElement.firstChild.nodeValue to compare?\n if (typeof nextProp === 'string') {\n if (domElement.textContent !== nextProp) {\n if (rawProps[SUPPRESS_HYDRATION_WARNING] !== true) {\n checkForUnmatchedText(domElement.textContent, nextProp, isConcurrentMode, shouldWarnDev);\n }\n\n updatePayload = [CHILDREN, nextProp];\n }\n } else if (typeof nextProp === 'number') {\n if (domElement.textContent !== '' + nextProp) {\n if (rawProps[SUPPRESS_HYDRATION_WARNING] !== true) {\n checkForUnmatchedText(domElement.textContent, nextProp, isConcurrentMode, shouldWarnDev);\n }\n\n updatePayload = [CHILDREN, '' + nextProp];\n }\n }\n } else if (registrationNameDependencies.hasOwnProperty(propKey)) {\n if (nextProp != null) {\n if ( typeof nextProp !== 'function') {\n warnForInvalidEventListener(propKey, nextProp);\n }\n\n if (propKey === 'onScroll') {\n listenToNonDelegatedEvent('scroll', domElement);\n }\n }\n } else if (shouldWarnDev && true && // Convince Flow we've calculated it (it's DEV-only in this method.)\n typeof isCustomComponentTag === 'boolean') {\n // Validate that the properties correspond to their expected values.\n var serverValue = void 0;\n var propertyInfo = isCustomComponentTag && enableCustomElementPropertySupport ? null : getPropertyInfo(propKey);\n\n if (rawProps[SUPPRESS_HYDRATION_WARNING] === true) ; else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING || // Controlled attributes are not validated\n // TODO: Only ignore them on controlled tags.\n propKey === 'value' || propKey === 'checked' || propKey === 'selected') ; else if (propKey === DANGEROUSLY_SET_INNER_HTML) {\n var serverHTML = domElement.innerHTML;\n var nextHtml = nextProp ? nextProp[HTML$1] : undefined;\n\n if (nextHtml != null) {\n var expectedHTML = normalizeHTML(domElement, nextHtml);\n\n if (expectedHTML !== serverHTML) {\n warnForPropDifference(propKey, serverHTML, expectedHTML);\n }\n }\n } else if (propKey === STYLE) {\n // $FlowFixMe - Should be inferred as not undefined.\n extraAttributeNames.delete(propKey);\n\n if (canDiffStyleForHydrationWarning) {\n var expectedStyle = createDangerousStringForStyles(nextProp);\n serverValue = domElement.getAttribute('style');\n\n if (expectedStyle !== serverValue) {\n warnForPropDifference(propKey, serverValue, expectedStyle);\n }\n }\n } else if (isCustomComponentTag && !enableCustomElementPropertySupport) {\n // $FlowFixMe - Should be inferred as not undefined.\n extraAttributeNames.delete(propKey.toLowerCase());\n serverValue = getValueForAttribute(domElement, propKey, nextProp);\n\n if (nextProp !== serverValue) {\n warnForPropDifference(propKey, serverValue, nextProp);\n }\n } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {\n var isMismatchDueToBadCasing = false;\n\n if (propertyInfo !== null) {\n // $FlowFixMe - Should be inferred as not undefined.\n extraAttributeNames.delete(propertyInfo.attributeName);\n serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);\n } else {\n var ownNamespace = parentNamespace;\n\n if (ownNamespace === HTML_NAMESPACE) {\n ownNamespace = getIntrinsicNamespace(tag);\n }\n\n if (ownNamespace === HTML_NAMESPACE) {\n // $FlowFixMe - Should be inferred as not undefined.\n extraAttributeNames.delete(propKey.toLowerCase());\n } else {\n var standardName = getPossibleStandardName(propKey);\n\n if (standardName !== null && standardName !== propKey) {\n // If an SVG prop is supplied with bad casing, it will\n // be successfully parsed from HTML, but will produce a mismatch\n // (and would be incorrectly rendered on the client).\n // However, we already warn about bad casing elsewhere.\n // So we'll skip the misleading extra mismatch warning in this case.\n isMismatchDueToBadCasing = true; // $FlowFixMe - Should be inferred as not undefined.\n\n extraAttributeNames.delete(standardName);\n } // $FlowFixMe - Should be inferred as not undefined.\n\n\n extraAttributeNames.delete(propKey);\n }\n\n serverValue = getValueForAttribute(domElement, propKey, nextProp);\n }\n\n var dontWarnCustomElement = enableCustomElementPropertySupport ;\n\n if (!dontWarnCustomElement && nextProp !== serverValue && !isMismatchDueToBadCasing) {\n warnForPropDifference(propKey, serverValue, nextProp);\n }\n }\n }\n }\n\n {\n if (shouldWarnDev) {\n if ( // $FlowFixMe - Should be inferred as not undefined.\n extraAttributeNames.size > 0 && rawProps[SUPPRESS_HYDRATION_WARNING] !== true) {\n // $FlowFixMe - Should be inferred as not undefined.\n warnForExtraAttributes(extraAttributeNames);\n }\n }\n }\n\n switch (tag) {\n case 'input':\n // TODO: Make sure we check if this is still unmounted or do any clean\n // up necessary since we never stop tracking anymore.\n track(domElement);\n postMountWrapper(domElement, rawProps, true);\n break;\n\n case 'textarea':\n // TODO: Make sure we check if this is still unmounted or do any clean\n // up necessary since we never stop tracking anymore.\n track(domElement);\n postMountWrapper$3(domElement);\n break;\n\n case 'select':\n case 'option':\n // For input and textarea we current always set the value property at\n // post mount to force it to diverge from attributes. However, for\n // option and select we don't quite do the same thing and select\n // is not resilient to the DOM state changing so we don't do that here.\n // TODO: Consider not doing this for input and textarea.\n break;\n\n default:\n if (typeof rawProps.onClick === 'function') {\n // TODO: This cast may not be sound for SVG, MathML or custom elements.\n trapClickOnNonInteractiveElement(domElement);\n }\n\n break;\n }\n\n return updatePayload;\n}\nfunction diffHydratedText(textNode, text, isConcurrentMode) {\n var isDifferent = textNode.nodeValue !== text;\n return isDifferent;\n}\nfunction warnForDeletedHydratableElement(parentNode, child) {\n {\n if (didWarnInvalidHydration) {\n return;\n }\n\n didWarnInvalidHydration = true;\n\n error('Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());\n }\n}\nfunction warnForDeletedHydratableText(parentNode, child) {\n {\n if (didWarnInvalidHydration) {\n return;\n }\n\n didWarnInvalidHydration = true;\n\n error('Did not expect server HTML to contain the text node \"%s\" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());\n }\n}\nfunction warnForInsertedHydratedElement(parentNode, tag, props) {\n {\n if (didWarnInvalidHydration) {\n return;\n }\n\n didWarnInvalidHydration = true;\n\n error('Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());\n }\n}\nfunction warnForInsertedHydratedText(parentNode, text) {\n {\n if (text === '') {\n // We expect to insert empty text nodes since they're not represented in\n // the HTML.\n // TODO: Remove this special case if we can just avoid inserting empty\n // text nodes.\n return;\n }\n\n if (didWarnInvalidHydration) {\n return;\n }\n\n didWarnInvalidHydration = true;\n\n error('Expected server HTML to contain a matching text node for \"%s\" in <%s>.', text, parentNode.nodeName.toLowerCase());\n }\n}\nfunction restoreControlledState$3(domElement, tag, props) {\n switch (tag) {\n case 'input':\n restoreControlledState(domElement, props);\n return;\n\n case 'textarea':\n restoreControlledState$2(domElement, props);\n return;\n\n case 'select':\n restoreControlledState$1(domElement, props);\n return;\n }\n}\n\nvar validateDOMNesting = function () {};\n\nvar updatedAncestorInfo = function () {};\n\n{\n // This validation code was written based on the HTML5 parsing spec:\n // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope\n //\n // Note: this does not catch all invalid nesting, nor does it try to (as it's\n // not clear what practical benefit doing so provides); instead, we warn only\n // for cases where the parser will give a parse tree differing from what React\n // intended. For example, <b><div></div></b> is invalid but we don't warn\n // because it still parses correctly; we do warn for other cases like nested\n // <p> tags where the beginning of the second element implicitly closes the\n // first, causing a confusing mess.\n // https://html.spec.whatwg.org/multipage/syntax.html#special\n var specialTags = ['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope\n\n var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template', // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point\n // TODO: Distinguish by namespace here -- for <title>, including it here\n // errs on the side of fewer warnings\n 'foreignObject', 'desc', 'title']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope\n\n var buttonScopeTags = inScopeTags.concat(['button']); // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags\n\n var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];\n var emptyAncestorInfo = {\n current: null,\n formTag: null,\n aTagInScope: null,\n buttonTagInScope: null,\n nobrTagInScope: null,\n pTagInButtonScope: null,\n listItemTagAutoclosing: null,\n dlItemTagAutoclosing: null\n };\n\n updatedAncestorInfo = function (oldInfo, tag) {\n var ancestorInfo = assign({}, oldInfo || emptyAncestorInfo);\n\n var info = {\n tag: tag\n };\n\n if (inScopeTags.indexOf(tag) !== -1) {\n ancestorInfo.aTagInScope = null;\n ancestorInfo.buttonTagInScope = null;\n ancestorInfo.nobrTagInScope = null;\n }\n\n if (buttonScopeTags.indexOf(tag) !== -1) {\n ancestorInfo.pTagInButtonScope = null;\n } // See rules for 'li', 'dd', 'dt' start tags in\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody\n\n\n if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {\n ancestorInfo.listItemTagAutoclosing = null;\n ancestorInfo.dlItemTagAutoclosing = null;\n }\n\n ancestorInfo.current = info;\n\n if (tag === 'form') {\n ancestorInfo.formTag = info;\n }\n\n if (tag === 'a') {\n ancestorInfo.aTagInScope = info;\n }\n\n if (tag === 'button') {\n ancestorInfo.buttonTagInScope = info;\n }\n\n if (tag === 'nobr') {\n ancestorInfo.nobrTagInScope = info;\n }\n\n if (tag === 'p') {\n ancestorInfo.pTagInButtonScope = info;\n }\n\n if (tag === 'li') {\n ancestorInfo.listItemTagAutoclosing = info;\n }\n\n if (tag === 'dd' || tag === 'dt') {\n ancestorInfo.dlItemTagAutoclosing = info;\n }\n\n return ancestorInfo;\n };\n /**\n * Returns whether\n */\n\n\n var isTagValidWithParent = function (tag, parentTag) {\n // First, let's check if we're in an unusual parsing mode...\n switch (parentTag) {\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect\n case 'select':\n return tag === 'option' || tag === 'optgroup' || tag === '#text';\n\n case 'optgroup':\n return tag === 'option' || tag === '#text';\n // Strictly speaking, seeing an <option> doesn't mean we're in a <select>\n // but\n\n case 'option':\n return tag === '#text';\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption\n // No special behavior since these rules fall back to \"in body\" mode for\n // all except special table nodes which cause bad parsing behavior anyway.\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr\n\n case 'tr':\n return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody\n\n case 'tbody':\n case 'thead':\n case 'tfoot':\n return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup\n\n case 'colgroup':\n return tag === 'col' || tag === 'template';\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable\n\n case 'table':\n return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead\n\n case 'head':\n return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';\n // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element\n\n case 'html':\n return tag === 'head' || tag === 'body' || tag === 'frameset';\n\n case 'frameset':\n return tag === 'frame';\n\n case '#document':\n return tag === 'html';\n } // Probably in the \"in body\" parsing mode, so we outlaw only tag combos\n // where the parsing rules cause implicit opens or closes to be added.\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody\n\n\n switch (tag) {\n case 'h1':\n case 'h2':\n case 'h3':\n case 'h4':\n case 'h5':\n case 'h6':\n return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';\n\n case 'rp':\n case 'rt':\n return impliedEndTags.indexOf(parentTag) === -1;\n\n case 'body':\n case 'caption':\n case 'col':\n case 'colgroup':\n case 'frameset':\n case 'frame':\n case 'head':\n case 'html':\n case 'tbody':\n case 'td':\n case 'tfoot':\n case 'th':\n case 'thead':\n case 'tr':\n // These tags are only valid with a few parents that have special child\n // parsing rules -- if we're down here, then none of those matched and\n // so we allow it only if we don't know what the parent is, as all other\n // cases are invalid.\n return parentTag == null;\n }\n\n return true;\n };\n /**\n * Returns whether\n */\n\n\n var findInvalidAncestorForTag = function (tag, ancestorInfo) {\n switch (tag) {\n case 'address':\n case 'article':\n case 'aside':\n case 'blockquote':\n case 'center':\n case 'details':\n case 'dialog':\n case 'dir':\n case 'div':\n case 'dl':\n case 'fieldset':\n case 'figcaption':\n case 'figure':\n case 'footer':\n case 'header':\n case 'hgroup':\n case 'main':\n case 'menu':\n case 'nav':\n case 'ol':\n case 'p':\n case 'section':\n case 'summary':\n case 'ul':\n case 'pre':\n case 'listing':\n case 'table':\n case 'hr':\n case 'xmp':\n case 'h1':\n case 'h2':\n case 'h3':\n case 'h4':\n case 'h5':\n case 'h6':\n return ancestorInfo.pTagInButtonScope;\n\n case 'form':\n return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;\n\n case 'li':\n return ancestorInfo.listItemTagAutoclosing;\n\n case 'dd':\n case 'dt':\n return ancestorInfo.dlItemTagAutoclosing;\n\n case 'button':\n return ancestorInfo.buttonTagInScope;\n\n case 'a':\n // Spec says something about storing a list of markers, but it sounds\n // equivalent to this check.\n return ancestorInfo.aTagInScope;\n\n case 'nobr':\n return ancestorInfo.nobrTagInScope;\n }\n\n return null;\n };\n\n var didWarn$1 = {};\n\n validateDOMNesting = function (childTag, childText, ancestorInfo) {\n ancestorInfo = ancestorInfo || emptyAncestorInfo;\n var parentInfo = ancestorInfo.current;\n var parentTag = parentInfo && parentInfo.tag;\n\n if (childText != null) {\n if (childTag != null) {\n error('validateDOMNesting: when childText is passed, childTag should be null');\n }\n\n childTag = '#text';\n }\n\n var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;\n var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);\n var invalidParentOrAncestor = invalidParent || invalidAncestor;\n\n if (!invalidParentOrAncestor) {\n return;\n }\n\n var ancestorTag = invalidParentOrAncestor.tag;\n var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag;\n\n if (didWarn$1[warnKey]) {\n return;\n }\n\n didWarn$1[warnKey] = true;\n var tagDisplayName = childTag;\n var whitespaceInfo = '';\n\n if (childTag === '#text') {\n if (/\\S/.test(childText)) {\n tagDisplayName = 'Text nodes';\n } else {\n tagDisplayName = 'Whitespace text nodes';\n whitespaceInfo = \" Make sure you don't have any extra whitespace between tags on \" + 'each line of your source code.';\n }\n } else {\n tagDisplayName = '<' + childTag + '>';\n }\n\n if (invalidParent) {\n var info = '';\n\n if (ancestorTag === 'table' && childTag === 'tr') {\n info += ' Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by ' + 'the browser.';\n }\n\n error('validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info);\n } else {\n error('validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.', tagDisplayName, ancestorTag);\n }\n };\n}\n\nvar SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';\nvar SUSPENSE_START_DATA = '$';\nvar SUSPENSE_END_DATA = '/$';\nvar SUSPENSE_PENDING_START_DATA = '$?';\nvar SUSPENSE_FALLBACK_START_DATA = '$!';\nvar STYLE$1 = 'style';\nvar eventsEnabled = null;\nvar selectionInformation = null;\nfunction getRootHostContext(rootContainerInstance) {\n var type;\n var namespace;\n var nodeType = rootContainerInstance.nodeType;\n\n switch (nodeType) {\n case DOCUMENT_NODE:\n case DOCUMENT_FRAGMENT_NODE:\n {\n type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';\n var root = rootContainerInstance.documentElement;\n namespace = root ? root.namespaceURI : getChildNamespace(null, '');\n break;\n }\n\n default:\n {\n var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;\n var ownNamespace = container.namespaceURI || null;\n type = container.tagName;\n namespace = getChildNamespace(ownNamespace, type);\n break;\n }\n }\n\n {\n var validatedTag = type.toLowerCase();\n var ancestorInfo = updatedAncestorInfo(null, validatedTag);\n return {\n namespace: namespace,\n ancestorInfo: ancestorInfo\n };\n }\n}\nfunction getChildHostContext(parentHostContext, type, rootContainerInstance) {\n {\n var parentHostContextDev = parentHostContext;\n var namespace = getChildNamespace(parentHostContextDev.namespace, type);\n var ancestorInfo = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);\n return {\n namespace: namespace,\n ancestorInfo: ancestorInfo\n };\n }\n}\nfunction getPublicInstance(instance) {\n return instance;\n}\nfunction prepareForCommit(containerInfo) {\n eventsEnabled = isEnabled();\n selectionInformation = getSelectionInformation();\n var activeInstance = null;\n\n setEnabled(false);\n return activeInstance;\n}\nfunction resetAfterCommit(containerInfo) {\n restoreSelection(selectionInformation);\n setEnabled(eventsEnabled);\n eventsEnabled = null;\n selectionInformation = null;\n}\nfunction createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {\n var parentNamespace;\n\n {\n // TODO: take namespace into account when validating.\n var hostContextDev = hostContext;\n validateDOMNesting(type, null, hostContextDev.ancestorInfo);\n\n if (typeof props.children === 'string' || typeof props.children === 'number') {\n var string = '' + props.children;\n var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);\n validateDOMNesting(null, string, ownAncestorInfo);\n }\n\n parentNamespace = hostContextDev.namespace;\n }\n\n var domElement = createElement(type, props, rootContainerInstance, parentNamespace);\n precacheFiberNode(internalInstanceHandle, domElement);\n updateFiberProps(domElement, props);\n return domElement;\n}\nfunction appendInitialChild(parentInstance, child) {\n parentInstance.appendChild(child);\n}\nfunction finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {\n setInitialProperties(domElement, type, props, rootContainerInstance);\n\n switch (type) {\n case 'button':\n case 'input':\n case 'select':\n case 'textarea':\n return !!props.autoFocus;\n\n case 'img':\n return true;\n\n default:\n return false;\n }\n}\nfunction prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {\n {\n var hostContextDev = hostContext;\n\n if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {\n var string = '' + newProps.children;\n var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);\n validateDOMNesting(null, string, ownAncestorInfo);\n }\n }\n\n return diffProperties(domElement, type, oldProps, newProps);\n}\nfunction shouldSetTextContent(type, props) {\n return type === 'textarea' || type === 'noscript' || typeof props.children === 'string' || typeof props.children === 'number' || typeof props.dangerouslySetInnerHTML === 'object' && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null;\n}\nfunction createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {\n {\n var hostContextDev = hostContext;\n validateDOMNesting(null, text, hostContextDev.ancestorInfo);\n }\n\n var textNode = createTextNode(text, rootContainerInstance);\n precacheFiberNode(internalInstanceHandle, textNode);\n return textNode;\n}\nfunction getCurrentEventPriority() {\n var currentEvent = window.event;\n\n if (currentEvent === undefined) {\n return DefaultEventPriority;\n }\n\n return getEventPriority(currentEvent.type);\n}\n// if a component just imports ReactDOM (e.g. for findDOMNode).\n// Some environments might not have setTimeout or clearTimeout.\n\nvar scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;\nvar cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;\nvar noTimeout = -1;\nvar localPromise = typeof Promise === 'function' ? Promise : undefined; // -------------------\nvar scheduleMicrotask = typeof queueMicrotask === 'function' ? queueMicrotask : typeof localPromise !== 'undefined' ? function (callback) {\n return localPromise.resolve(null).then(callback).catch(handleErrorInNextTick);\n} : scheduleTimeout; // TODO: Determine the best fallback here.\n\nfunction handleErrorInNextTick(error) {\n setTimeout(function () {\n throw error;\n });\n} // -------------------\nfunction commitMount(domElement, type, newProps, internalInstanceHandle) {\n // Despite the naming that might imply otherwise, this method only\n // fires if there is an `Update` effect scheduled during mounting.\n // This happens if `finalizeInitialChildren` returns `true` (which it\n // does to implement the `autoFocus` attribute on the client). But\n // there are also other cases when this might happen (such as patching\n // up text content during hydration mismatch). So we'll check this again.\n switch (type) {\n case 'button':\n case 'input':\n case 'select':\n case 'textarea':\n if (newProps.autoFocus) {\n domElement.focus();\n }\n\n return;\n\n case 'img':\n {\n if (newProps.src) {\n domElement.src = newProps.src;\n }\n\n return;\n }\n }\n}\nfunction commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {\n // Apply the diff to the DOM node.\n updateProperties(domElement, updatePayload, type, oldProps, newProps); // Update the props handle so that we know which props are the ones with\n // with current event handlers.\n\n updateFiberProps(domElement, newProps);\n}\nfunction resetTextContent(domElement) {\n setTextContent(domElement, '');\n}\nfunction commitTextUpdate(textInstance, oldText, newText) {\n textInstance.nodeValue = newText;\n}\nfunction appendChild(parentInstance, child) {\n parentInstance.appendChild(child);\n}\nfunction appendChildToContainer(container, child) {\n var parentNode;\n\n if (container.nodeType === COMMENT_NODE) {\n parentNode = container.parentNode;\n parentNode.insertBefore(child, container);\n } else {\n parentNode = container;\n parentNode.appendChild(child);\n } // This container might be used for a portal.\n // If something inside a portal is clicked, that click should bubble\n // through the React tree. However, on Mobile Safari the click would\n // never bubble through the *DOM* tree unless an ancestor with onclick\n // event exists. So we wouldn't see it and dispatch it.\n // This is why we ensure that non React root containers have inline onclick\n // defined.\n // https://github.com/facebook/react/issues/11918\n\n\n var reactRootContainer = container._reactRootContainer;\n\n if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {\n // TODO: This cast may not be sound for SVG, MathML or custom elements.\n trapClickOnNonInteractiveElement(parentNode);\n }\n}\nfunction insertBefore(parentInstance, child, beforeChild) {\n parentInstance.insertBefore(child, beforeChild);\n}\nfunction insertInContainerBefore(container, child, beforeChild) {\n if (container.nodeType === COMMENT_NODE) {\n container.parentNode.insertBefore(child, beforeChild);\n } else {\n container.insertBefore(child, beforeChild);\n }\n}\n\nfunction removeChild(parentInstance, child) {\n parentInstance.removeChild(child);\n}\nfunction removeChildFromContainer(container, child) {\n if (container.nodeType === COMMENT_NODE) {\n container.parentNode.removeChild(child);\n } else {\n container.removeChild(child);\n }\n}\nfunction clearSuspenseBoundary(parentInstance, suspenseInstance) {\n var node = suspenseInstance; // Delete all nodes within this suspense boundary.\n // There might be nested nodes so we need to keep track of how\n // deep we are and only break out when we're back on top.\n\n var depth = 0;\n\n do {\n var nextNode = node.nextSibling;\n parentInstance.removeChild(node);\n\n if (nextNode && nextNode.nodeType === COMMENT_NODE) {\n var data = nextNode.data;\n\n if (data === SUSPENSE_END_DATA) {\n if (depth === 0) {\n parentInstance.removeChild(nextNode); // Retry if any event replaying was blocked on this.\n\n retryIfBlockedOn(suspenseInstance);\n return;\n } else {\n depth--;\n }\n } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_PENDING_START_DATA || data === SUSPENSE_FALLBACK_START_DATA) {\n depth++;\n }\n }\n\n node = nextNode;\n } while (node); // TODO: Warn, we didn't find the end comment boundary.\n // Retry if any event replaying was blocked on this.\n\n\n retryIfBlockedOn(suspenseInstance);\n}\nfunction clearSuspenseBoundaryFromContainer(container, suspenseInstance) {\n if (container.nodeType === COMMENT_NODE) {\n clearSuspenseBoundary(container.parentNode, suspenseInstance);\n } else if (container.nodeType === ELEMENT_NODE) {\n clearSuspenseBoundary(container, suspenseInstance);\n } // Retry if any event replaying was blocked on this.\n\n\n retryIfBlockedOn(container);\n}\nfunction hideInstance(instance) {\n // TODO: Does this work for all element types? What about MathML? Should we\n // pass host context to this method?\n instance = instance;\n var style = instance.style;\n\n if (typeof style.setProperty === 'function') {\n style.setProperty('display', 'none', 'important');\n } else {\n style.display = 'none';\n }\n}\nfunction hideTextInstance(textInstance) {\n textInstance.nodeValue = '';\n}\nfunction unhideInstance(instance, props) {\n instance = instance;\n var styleProp = props[STYLE$1];\n var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;\n instance.style.display = dangerousStyleValue('display', display);\n}\nfunction unhideTextInstance(textInstance, text) {\n textInstance.nodeValue = text;\n}\nfunction clearContainer(container) {\n if (container.nodeType === ELEMENT_NODE) {\n container.textContent = '';\n } else if (container.nodeType === DOCUMENT_NODE) {\n if (container.documentElement) {\n container.removeChild(container.documentElement);\n }\n }\n} // -------------------\nfunction canHydrateInstance(instance, type, props) {\n if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {\n return null;\n } // This has now been refined to an element node.\n\n\n return instance;\n}\nfunction canHydrateTextInstance(instance, text) {\n if (text === '' || instance.nodeType !== TEXT_NODE) {\n // Empty strings are not parsed by HTML so there won't be a correct match here.\n return null;\n } // This has now been refined to a text node.\n\n\n return instance;\n}\nfunction canHydrateSuspenseInstance(instance) {\n if (instance.nodeType !== COMMENT_NODE) {\n // Empty strings are not parsed by HTML so there won't be a correct match here.\n return null;\n } // This has now been refined to a suspense node.\n\n\n return instance;\n}\nfunction isSuspenseInstancePending(instance) {\n return instance.data === SUSPENSE_PENDING_START_DATA;\n}\nfunction isSuspenseInstanceFallback(instance) {\n return instance.data === SUSPENSE_FALLBACK_START_DATA;\n}\nfunction getSuspenseInstanceFallbackErrorDetails(instance) {\n var dataset = instance.nextSibling && instance.nextSibling.dataset;\n var digest, message, stack;\n\n if (dataset) {\n digest = dataset.dgst;\n\n {\n message = dataset.msg;\n stack = dataset.stck;\n }\n }\n\n {\n return {\n message: message,\n digest: digest,\n stack: stack\n };\n } // let value = {message: undefined, hash: undefined};\n // const nextSibling = instance.nextSibling;\n // if (nextSibling) {\n // const dataset = ((nextSibling: any): HTMLTemplateElement).dataset;\n // value.message = dataset.msg;\n // value.hash = dataset.hash;\n // if (true) {\n // value.stack = dataset.stack;\n // }\n // }\n // return value;\n\n}\nfunction registerSuspenseInstanceRetry(instance, callback) {\n instance._reactRetry = callback;\n}\n\nfunction getNextHydratable(node) {\n // Skip non-hydratable nodes.\n for (; node != null; node = node.nextSibling) {\n var nodeType = node.nodeType;\n\n if (nodeType === ELEMENT_NODE || nodeType === TEXT_NODE) {\n break;\n }\n\n if (nodeType === COMMENT_NODE) {\n var nodeData = node.data;\n\n if (nodeData === SUSPENSE_START_DATA || nodeData === SUSPENSE_FALLBACK_START_DATA || nodeData === SUSPENSE_PENDING_START_DATA) {\n break;\n }\n\n if (nodeData === SUSPENSE_END_DATA) {\n return null;\n }\n }\n }\n\n return node;\n}\n\nfunction getNextHydratableSibling(instance) {\n return getNextHydratable(instance.nextSibling);\n}\nfunction getFirstHydratableChild(parentInstance) {\n return getNextHydratable(parentInstance.firstChild);\n}\nfunction getFirstHydratableChildWithinContainer(parentContainer) {\n return getNextHydratable(parentContainer.firstChild);\n}\nfunction getFirstHydratableChildWithinSuspenseInstance(parentInstance) {\n return getNextHydratable(parentInstance.nextSibling);\n}\nfunction hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle, shouldWarnDev) {\n precacheFiberNode(internalInstanceHandle, instance); // TODO: Possibly defer this until the commit phase where all the events\n // get attached.\n\n updateFiberProps(instance, props);\n var parentNamespace;\n\n {\n var hostContextDev = hostContext;\n parentNamespace = hostContextDev.namespace;\n } // TODO: Temporary hack to check if we're in a concurrent root. We can delete\n // when the legacy root API is removed.\n\n\n var isConcurrentMode = (internalInstanceHandle.mode & ConcurrentMode) !== NoMode;\n return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance, isConcurrentMode, shouldWarnDev);\n}\nfunction hydrateTextInstance(textInstance, text, internalInstanceHandle, shouldWarnDev) {\n precacheFiberNode(internalInstanceHandle, textInstance); // TODO: Temporary hack to check if we're in a concurrent root. We can delete\n // when the legacy root API is removed.\n\n var isConcurrentMode = (internalInstanceHandle.mode & ConcurrentMode) !== NoMode;\n return diffHydratedText(textInstance, text);\n}\nfunction hydrateSuspenseInstance(suspenseInstance, internalInstanceHandle) {\n precacheFiberNode(internalInstanceHandle, suspenseInstance);\n}\nfunction getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {\n var node = suspenseInstance.nextSibling; // Skip past all nodes within this suspense boundary.\n // There might be nested nodes so we need to keep track of how\n // deep we are and only break out when we're back on top.\n\n var depth = 0;\n\n while (node) {\n if (node.nodeType === COMMENT_NODE) {\n var data = node.data;\n\n if (data === SUSPENSE_END_DATA) {\n if (depth === 0) {\n return getNextHydratableSibling(node);\n } else {\n depth--;\n }\n } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {\n depth++;\n }\n }\n\n node = node.nextSibling;\n } // TODO: Warn, we didn't find the end comment boundary.\n\n\n return null;\n} // Returns the SuspenseInstance if this node is a direct child of a\n// SuspenseInstance. I.e. if its previous sibling is a Comment with\n// SUSPENSE_x_START_DATA. Otherwise, null.\n\nfunction getParentSuspenseInstance(targetInstance) {\n var node = targetInstance.previousSibling; // Skip past all nodes within this suspense boundary.\n // There might be nested nodes so we need to keep track of how\n // deep we are and only break out when we're back on top.\n\n var depth = 0;\n\n while (node) {\n if (node.nodeType === COMMENT_NODE) {\n var data = node.data;\n\n if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {\n if (depth === 0) {\n return node;\n } else {\n depth--;\n }\n } else if (data === SUSPENSE_END_DATA) {\n depth++;\n }\n }\n\n node = node.previousSibling;\n }\n\n return null;\n}\nfunction commitHydratedContainer(container) {\n // Retry if any event replaying was blocked on this.\n retryIfBlockedOn(container);\n}\nfunction commitHydratedSuspenseInstance(suspenseInstance) {\n // Retry if any event replaying was blocked on this.\n retryIfBlockedOn(suspenseInstance);\n}\nfunction shouldDeleteUnhydratedTailInstances(parentType) {\n return parentType !== 'head' && parentType !== 'body';\n}\nfunction didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text, isConcurrentMode) {\n var shouldWarnDev = true;\n checkForUnmatchedText(textInstance.nodeValue, text, isConcurrentMode, shouldWarnDev);\n}\nfunction didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text, isConcurrentMode) {\n if (parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {\n var shouldWarnDev = true;\n checkForUnmatchedText(textInstance.nodeValue, text, isConcurrentMode, shouldWarnDev);\n }\n}\nfunction didNotHydrateInstanceWithinContainer(parentContainer, instance) {\n {\n if (instance.nodeType === ELEMENT_NODE) {\n warnForDeletedHydratableElement(parentContainer, instance);\n } else if (instance.nodeType === COMMENT_NODE) ; else {\n warnForDeletedHydratableText(parentContainer, instance);\n }\n }\n}\nfunction didNotHydrateInstanceWithinSuspenseInstance(parentInstance, instance) {\n {\n // $FlowFixMe: Only Element or Document can be parent nodes.\n var parentNode = parentInstance.parentNode;\n\n if (parentNode !== null) {\n if (instance.nodeType === ELEMENT_NODE) {\n warnForDeletedHydratableElement(parentNode, instance);\n } else if (instance.nodeType === COMMENT_NODE) ; else {\n warnForDeletedHydratableText(parentNode, instance);\n }\n }\n }\n}\nfunction didNotHydrateInstance(parentType, parentProps, parentInstance, instance, isConcurrentMode) {\n {\n if (isConcurrentMode || parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {\n if (instance.nodeType === ELEMENT_NODE) {\n warnForDeletedHydratableElement(parentInstance, instance);\n } else if (instance.nodeType === COMMENT_NODE) ; else {\n warnForDeletedHydratableText(parentInstance, instance);\n }\n }\n }\n}\nfunction didNotFindHydratableInstanceWithinContainer(parentContainer, type, props) {\n {\n warnForInsertedHydratedElement(parentContainer, type);\n }\n}\nfunction didNotFindHydratableTextInstanceWithinContainer(parentContainer, text) {\n {\n warnForInsertedHydratedText(parentContainer, text);\n }\n}\nfunction didNotFindHydratableInstanceWithinSuspenseInstance(parentInstance, type, props) {\n {\n // $FlowFixMe: Only Element or Document can be parent nodes.\n var parentNode = parentInstance.parentNode;\n if (parentNode !== null) warnForInsertedHydratedElement(parentNode, type);\n }\n}\nfunction didNotFindHydratableTextInstanceWithinSuspenseInstance(parentInstance, text) {\n {\n // $FlowFixMe: Only Element or Document can be parent nodes.\n var parentNode = parentInstance.parentNode;\n if (parentNode !== null) warnForInsertedHydratedText(parentNode, text);\n }\n}\nfunction didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props, isConcurrentMode) {\n {\n if (isConcurrentMode || parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {\n warnForInsertedHydratedElement(parentInstance, type);\n }\n }\n}\nfunction didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text, isConcurrentMode) {\n {\n if (isConcurrentMode || parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {\n warnForInsertedHydratedText(parentInstance, text);\n }\n }\n}\nfunction errorHydratingContainer(parentContainer) {\n {\n // TODO: This gets logged by onRecoverableError, too, so we should be\n // able to remove it.\n error('An error occurred during hydration. The server HTML was replaced with client content in <%s>.', parentContainer.nodeName.toLowerCase());\n }\n}\nfunction preparePortalMount(portalInstance) {\n listenToAllSupportedEvents(portalInstance);\n}\n\nvar randomKey = Math.random().toString(36).slice(2);\nvar internalInstanceKey = '__reactFiber$' + randomKey;\nvar internalPropsKey = '__reactProps$' + randomKey;\nvar internalContainerInstanceKey = '__reactContainer$' + randomKey;\nvar internalEventHandlersKey = '__reactEvents$' + randomKey;\nvar internalEventHandlerListenersKey = '__reactListeners$' + randomKey;\nvar internalEventHandlesSetKey = '__reactHandles$' + randomKey;\nfunction detachDeletedInstance(node) {\n // TODO: This function is only called on host components. I don't think all of\n // these fields are relevant.\n delete node[internalInstanceKey];\n delete node[internalPropsKey];\n delete node[internalEventHandlersKey];\n delete node[internalEventHandlerListenersKey];\n delete node[internalEventHandlesSetKey];\n}\nfunction precacheFiberNode(hostInst, node) {\n node[internalInstanceKey] = hostInst;\n}\nfunction markContainerAsRoot(hostRoot, node) {\n node[internalContainerInstanceKey] = hostRoot;\n}\nfunction unmarkContainerAsRoot(node) {\n node[internalContainerInstanceKey] = null;\n}\nfunction isContainerMarkedAsRoot(node) {\n return !!node[internalContainerInstanceKey];\n} // Given a DOM node, return the closest HostComponent or HostText fiber ancestor.\n// If the target node is part of a hydrated or not yet rendered subtree, then\n// this may also return a SuspenseComponent or HostRoot to indicate that.\n// Conceptually the HostRoot fiber is a child of the Container node. So if you\n// pass the Container node as the targetNode, you will not actually get the\n// HostRoot back. To get to the HostRoot, you need to pass a child of it.\n// The same thing applies to Suspense boundaries.\n\nfunction getClosestInstanceFromNode(targetNode) {\n var targetInst = targetNode[internalInstanceKey];\n\n if (targetInst) {\n // Don't return HostRoot or SuspenseComponent here.\n return targetInst;\n } // If the direct event target isn't a React owned DOM node, we need to look\n // to see if one of its parents is a React owned DOM node.\n\n\n var parentNode = targetNode.parentNode;\n\n while (parentNode) {\n // We'll check if this is a container root that could include\n // React nodes in the future. We need to check this first because\n // if we're a child of a dehydrated container, we need to first\n // find that inner container before moving on to finding the parent\n // instance. Note that we don't check this field on the targetNode\n // itself because the fibers are conceptually between the container\n // node and the first child. It isn't surrounding the container node.\n // If it's not a container, we check if it's an instance.\n targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey];\n\n if (targetInst) {\n // Since this wasn't the direct target of the event, we might have\n // stepped past dehydrated DOM nodes to get here. However they could\n // also have been non-React nodes. We need to answer which one.\n // If we the instance doesn't have any children, then there can't be\n // a nested suspense boundary within it. So we can use this as a fast\n // bailout. Most of the time, when people add non-React children to\n // the tree, it is using a ref to a child-less DOM node.\n // Normally we'd only need to check one of the fibers because if it\n // has ever gone from having children to deleting them or vice versa\n // it would have deleted the dehydrated boundary nested inside already.\n // However, since the HostRoot starts out with an alternate it might\n // have one on the alternate so we need to check in case this was a\n // root.\n var alternate = targetInst.alternate;\n\n if (targetInst.child !== null || alternate !== null && alternate.child !== null) {\n // Next we need to figure out if the node that skipped past is\n // nested within a dehydrated boundary and if so, which one.\n var suspenseInstance = getParentSuspenseInstance(targetNode);\n\n while (suspenseInstance !== null) {\n // We found a suspense instance. That means that we haven't\n // hydrated it yet. Even though we leave the comments in the\n // DOM after hydrating, and there are boundaries in the DOM\n // that could already be hydrated, we wouldn't have found them\n // through this pass since if the target is hydrated it would\n // have had an internalInstanceKey on it.\n // Let's get the fiber associated with the SuspenseComponent\n // as the deepest instance.\n var targetSuspenseInst = suspenseInstance[internalInstanceKey];\n\n if (targetSuspenseInst) {\n return targetSuspenseInst;\n } // If we don't find a Fiber on the comment, it might be because\n // we haven't gotten to hydrate it yet. There might still be a\n // parent boundary that hasn't above this one so we need to find\n // the outer most that is known.\n\n\n suspenseInstance = getParentSuspenseInstance(suspenseInstance); // If we don't find one, then that should mean that the parent\n // host component also hasn't hydrated yet. We can return it\n // below since it will bail out on the isMounted check later.\n }\n }\n\n return targetInst;\n }\n\n targetNode = parentNode;\n parentNode = targetNode.parentNode;\n }\n\n return null;\n}\n/**\n * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent\n * instance, or null if the node was not rendered by this React.\n */\n\nfunction getInstanceFromNode(node) {\n var inst = node[internalInstanceKey] || node[internalContainerInstanceKey];\n\n if (inst) {\n if (inst.tag === HostComponent || inst.tag === HostText || inst.tag === SuspenseComponent || inst.tag === HostRoot) {\n return inst;\n } else {\n return null;\n }\n }\n\n return null;\n}\n/**\n * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding\n * DOM node.\n */\n\nfunction getNodeFromInstance(inst) {\n if (inst.tag === HostComponent || inst.tag === HostText) {\n // In Fiber this, is just the state node right now. We assume it will be\n // a host component or host text.\n return inst.stateNode;\n } // Without this first invariant, passing a non-DOM-component triggers the next\n // invariant for a missing parent, which is super confusing.\n\n\n throw new Error('getNodeFromInstance: Invalid argument.');\n}\nfunction getFiberCurrentPropsFromNode(node) {\n return node[internalPropsKey] || null;\n}\nfunction updateFiberProps(node, props) {\n node[internalPropsKey] = props;\n}\nfunction getEventListenerSet(node) {\n var elementListenerSet = node[internalEventHandlersKey];\n\n if (elementListenerSet === undefined) {\n elementListenerSet = node[internalEventHandlersKey] = new Set();\n }\n\n return elementListenerSet;\n}\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar valueStack = [];\nvar fiberStack;\n\n{\n fiberStack = [];\n}\n\nvar index = -1;\n\nfunction createCursor(defaultValue) {\n return {\n current: defaultValue\n };\n}\n\nfunction pop(cursor, fiber) {\n if (index < 0) {\n {\n error('Unexpected pop.');\n }\n\n return;\n }\n\n {\n if (fiber !== fiberStack[index]) {\n error('Unexpected Fiber popped.');\n }\n }\n\n cursor.current = valueStack[index];\n valueStack[index] = null;\n\n {\n fiberStack[index] = null;\n }\n\n index--;\n}\n\nfunction push(cursor, value, fiber) {\n index++;\n valueStack[index] = cursor.current;\n\n {\n fiberStack[index] = fiber;\n }\n\n cursor.current = value;\n}\n\nvar warnedAboutMissingGetChildContext;\n\n{\n warnedAboutMissingGetChildContext = {};\n}\n\nvar emptyContextObject = {};\n\n{\n Object.freeze(emptyContextObject);\n} // A cursor to the current merged context object on the stack.\n\n\nvar contextStackCursor = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed.\n\nvar didPerformWorkStackCursor = createCursor(false); // Keep track of the previous context object that was on the stack.\n// We use this to get access to the parent context after we have already\n// pushed the next context provider, and now need to merge their contexts.\n\nvar previousContext = emptyContextObject;\n\nfunction getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {\n {\n if (didPushOwnContextIfProvider && isContextProvider(Component)) {\n // If the fiber is a context provider itself, when we read its context\n // we may have already pushed its own child context on the stack. A context\n // provider should not \"see\" its own child context. Therefore we read the\n // previous (parent) context instead for a context provider.\n return previousContext;\n }\n\n return contextStackCursor.current;\n }\n}\n\nfunction cacheContext(workInProgress, unmaskedContext, maskedContext) {\n {\n var instance = workInProgress.stateNode;\n instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;\n instance.__reactInternalMemoizedMaskedChildContext = maskedContext;\n }\n}\n\nfunction getMaskedContext(workInProgress, unmaskedContext) {\n {\n var type = workInProgress.type;\n var contextTypes = type.contextTypes;\n\n if (!contextTypes) {\n return emptyContextObject;\n } // Avoid recreating masked context unless unmasked context has changed.\n // Failing to do this will result in unnecessary calls to componentWillReceiveProps.\n // This may trigger infinite loops if componentWillReceiveProps calls setState.\n\n\n var instance = workInProgress.stateNode;\n\n if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {\n return instance.__reactInternalMemoizedMaskedChildContext;\n }\n\n var context = {};\n\n for (var key in contextTypes) {\n context[key] = unmaskedContext[key];\n }\n\n {\n var name = getComponentNameFromFiber(workInProgress) || 'Unknown';\n checkPropTypes(contextTypes, context, 'context', name);\n } // Cache unmasked context so we can avoid recreating masked context unless necessary.\n // Context is created before the class component is instantiated so check for instance.\n\n\n if (instance) {\n cacheContext(workInProgress, unmaskedContext, context);\n }\n\n return context;\n }\n}\n\nfunction hasContextChanged() {\n {\n return didPerformWorkStackCursor.current;\n }\n}\n\nfunction isContextProvider(type) {\n {\n var childContextTypes = type.childContextTypes;\n return childContextTypes !== null && childContextTypes !== undefined;\n }\n}\n\nfunction popContext(fiber) {\n {\n pop(didPerformWorkStackCursor, fiber);\n pop(contextStackCursor, fiber);\n }\n}\n\nfunction popTopLevelContextObject(fiber) {\n {\n pop(didPerformWorkStackCursor, fiber);\n pop(contextStackCursor, fiber);\n }\n}\n\nfunction pushTopLevelContextObject(fiber, context, didChange) {\n {\n if (contextStackCursor.current !== emptyContextObject) {\n throw new Error('Unexpected context found on stack. ' + 'This error is likely caused by a bug in React. Please file an issue.');\n }\n\n push(contextStackCursor, context, fiber);\n push(didPerformWorkStackCursor, didChange, fiber);\n }\n}\n\nfunction processChildContext(fiber, type, parentContext) {\n {\n var instance = fiber.stateNode;\n var childContextTypes = type.childContextTypes; // TODO (bvaughn) Replace this behavior with an invariant() in the future.\n // It has only been added in Fiber to match the (unintentional) behavior in Stack.\n\n if (typeof instance.getChildContext !== 'function') {\n {\n var componentName = getComponentNameFromFiber(fiber) || 'Unknown';\n\n if (!warnedAboutMissingGetChildContext[componentName]) {\n warnedAboutMissingGetChildContext[componentName] = true;\n\n error('%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);\n }\n }\n\n return parentContext;\n }\n\n var childContext = instance.getChildContext();\n\n for (var contextKey in childContext) {\n if (!(contextKey in childContextTypes)) {\n throw new Error((getComponentNameFromFiber(fiber) || 'Unknown') + \".getChildContext(): key \\\"\" + contextKey + \"\\\" is not defined in childContextTypes.\");\n }\n }\n\n {\n var name = getComponentNameFromFiber(fiber) || 'Unknown';\n checkPropTypes(childContextTypes, childContext, 'child context', name);\n }\n\n return assign({}, parentContext, childContext);\n }\n}\n\nfunction pushContextProvider(workInProgress) {\n {\n var instance = workInProgress.stateNode; // We push the context as early as possible to ensure stack integrity.\n // If the instance does not exist yet, we will push null at first,\n // and replace it on the stack later when invalidating the context.\n\n var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; // Remember the parent context so we can merge with it later.\n // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.\n\n previousContext = contextStackCursor.current;\n push(contextStackCursor, memoizedMergedChildContext, workInProgress);\n push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);\n return true;\n }\n}\n\nfunction invalidateContextProvider(workInProgress, type, didChange) {\n {\n var instance = workInProgress.stateNode;\n\n if (!instance) {\n throw new Error('Expected to have an instance by this point. ' + 'This error is likely caused by a bug in React. Please file an issue.');\n }\n\n if (didChange) {\n // Merge parent and own context.\n // Skip this if we're not updating due to sCU.\n // This avoids unnecessarily recomputing memoized values.\n var mergedContext = processChildContext(workInProgress, type, previousContext);\n instance.__reactInternalMemoizedMergedChildContext = mergedContext; // Replace the old (or empty) context with the new one.\n // It is important to unwind the context in the reverse order.\n\n pop(didPerformWorkStackCursor, workInProgress);\n pop(contextStackCursor, workInProgress); // Now push the new context and mark that it has changed.\n\n push(contextStackCursor, mergedContext, workInProgress);\n push(didPerformWorkStackCursor, didChange, workInProgress);\n } else {\n pop(didPerformWorkStackCursor, workInProgress);\n push(didPerformWorkStackCursor, didChange, workInProgress);\n }\n }\n}\n\nfunction findCurrentUnmaskedContext(fiber) {\n {\n // Currently this is only used with renderSubtreeIntoContainer; not sure if it\n // makes sense elsewhere\n if (!isFiberMounted(fiber) || fiber.tag !== ClassComponent) {\n throw new Error('Expected subtree parent to be a mounted class component. ' + 'This error is likely caused by a bug in React. Please file an issue.');\n }\n\n var node = fiber;\n\n do {\n switch (node.tag) {\n case HostRoot:\n return node.stateNode.context;\n\n case ClassComponent:\n {\n var Component = node.type;\n\n if (isContextProvider(Component)) {\n return node.stateNode.__reactInternalMemoizedMergedChildContext;\n }\n\n break;\n }\n }\n\n node = node.return;\n } while (node !== null);\n\n throw new Error('Found unexpected detached subtree parent. ' + 'This error is likely caused by a bug in React. Please file an issue.');\n }\n}\n\nvar LegacyRoot = 0;\nvar ConcurrentRoot = 1;\n\nvar syncQueue = null;\nvar includesLegacySyncCallbacks = false;\nvar isFlushingSyncQueue = false;\nfunction scheduleSyncCallback(callback) {\n // Push this callback into an internal queue. We'll flush these either in\n // the next tick, or earlier if something calls `flushSyncCallbackQueue`.\n if (syncQueue === null) {\n syncQueue = [callback];\n } else {\n // Push onto existing queue. Don't need to schedule a callback because\n // we already scheduled one when we created the queue.\n syncQueue.push(callback);\n }\n}\nfunction scheduleLegacySyncCallback(callback) {\n includesLegacySyncCallbacks = true;\n scheduleSyncCallback(callback);\n}\nfunction flushSyncCallbacksOnlyInLegacyMode() {\n // Only flushes the queue if there's a legacy sync callback scheduled.\n // TODO: There's only a single type of callback: performSyncOnWorkOnRoot. So\n // it might make more sense for the queue to be a list of roots instead of a\n // list of generic callbacks. Then we can have two: one for legacy roots, one\n // for concurrent roots. And this method would only flush the legacy ones.\n if (includesLegacySyncCallbacks) {\n flushSyncCallbacks();\n }\n}\nfunction flushSyncCallbacks() {\n if (!isFlushingSyncQueue && syncQueue !== null) {\n // Prevent re-entrance.\n isFlushingSyncQueue = true;\n var i = 0;\n var previousUpdatePriority = getCurrentUpdatePriority();\n\n try {\n var isSync = true;\n var queue = syncQueue; // TODO: Is this necessary anymore? The only user code that runs in this\n // queue is in the render or commit phases.\n\n setCurrentUpdatePriority(DiscreteEventPriority);\n\n for (; i < queue.length; i++) {\n var callback = queue[i];\n\n do {\n callback = callback(isSync);\n } while (callback !== null);\n }\n\n syncQueue = null;\n includesLegacySyncCallbacks = false;\n } catch (error) {\n // If something throws, leave the remaining callbacks on the queue.\n if (syncQueue !== null) {\n syncQueue = syncQueue.slice(i + 1);\n } // Resume flushing in the next tick\n\n\n scheduleCallback(ImmediatePriority, flushSyncCallbacks);\n throw error;\n } finally {\n setCurrentUpdatePriority(previousUpdatePriority);\n isFlushingSyncQueue = false;\n }\n }\n\n return null;\n}\n\n// TODO: Use the unified fiber stack module instead of this local one?\n// Intentionally not using it yet to derisk the initial implementation, because\n// the way we push/pop these values is a bit unusual. If there's a mistake, I'd\n// rather the ids be wrong than crash the whole reconciler.\nvar forkStack = [];\nvar forkStackIndex = 0;\nvar treeForkProvider = null;\nvar treeForkCount = 0;\nvar idStack = [];\nvar idStackIndex = 0;\nvar treeContextProvider = null;\nvar treeContextId = 1;\nvar treeContextOverflow = '';\nfunction isForkedChild(workInProgress) {\n warnIfNotHydrating();\n return (workInProgress.flags & Forked) !== NoFlags;\n}\nfunction getForksAtLevel(workInProgress) {\n warnIfNotHydrating();\n return treeForkCount;\n}\nfunction getTreeId() {\n var overflow = treeContextOverflow;\n var idWithLeadingBit = treeContextId;\n var id = idWithLeadingBit & ~getLeadingBit(idWithLeadingBit);\n return id.toString(32) + overflow;\n}\nfunction pushTreeFork(workInProgress, totalChildren) {\n // This is called right after we reconcile an array (or iterator) of child\n // fibers, because that's the only place where we know how many children in\n // the whole set without doing extra work later, or storing addtional\n // information on the fiber.\n //\n // That's why this function is separate from pushTreeId — it's called during\n // the render phase of the fork parent, not the child, which is where we push\n // the other context values.\n //\n // In the Fizz implementation this is much simpler because the child is\n // rendered in the same callstack as the parent.\n //\n // It might be better to just add a `forks` field to the Fiber type. It would\n // make this module simpler.\n warnIfNotHydrating();\n forkStack[forkStackIndex++] = treeForkCount;\n forkStack[forkStackIndex++] = treeForkProvider;\n treeForkProvider = workInProgress;\n treeForkCount = totalChildren;\n}\nfunction pushTreeId(workInProgress, totalChildren, index) {\n warnIfNotHydrating();\n idStack[idStackIndex++] = treeContextId;\n idStack[idStackIndex++] = treeContextOverflow;\n idStack[idStackIndex++] = treeContextProvider;\n treeContextProvider = workInProgress;\n var baseIdWithLeadingBit = treeContextId;\n var baseOverflow = treeContextOverflow; // The leftmost 1 marks the end of the sequence, non-inclusive. It's not part\n // of the id; we use it to account for leading 0s.\n\n var baseLength = getBitLength(baseIdWithLeadingBit) - 1;\n var baseId = baseIdWithLeadingBit & ~(1 << baseLength);\n var slot = index + 1;\n var length = getBitLength(totalChildren) + baseLength; // 30 is the max length we can store without overflowing, taking into\n // consideration the leading 1 we use to mark the end of the sequence.\n\n if (length > 30) {\n // We overflowed the bitwise-safe range. Fall back to slower algorithm.\n // This branch assumes the length of the base id is greater than 5; it won't\n // work for smaller ids, because you need 5 bits per character.\n //\n // We encode the id in multiple steps: first the base id, then the\n // remaining digits.\n //\n // Each 5 bit sequence corresponds to a single base 32 character. So for\n // example, if the current id is 23 bits long, we can convert 20 of those\n // bits into a string of 4 characters, with 3 bits left over.\n //\n // First calculate how many bits in the base id represent a complete\n // sequence of characters.\n var numberOfOverflowBits = baseLength - baseLength % 5; // Then create a bitmask that selects only those bits.\n\n var newOverflowBits = (1 << numberOfOverflowBits) - 1; // Select the bits, and convert them to a base 32 string.\n\n var newOverflow = (baseId & newOverflowBits).toString(32); // Now we can remove those bits from the base id.\n\n var restOfBaseId = baseId >> numberOfOverflowBits;\n var restOfBaseLength = baseLength - numberOfOverflowBits; // Finally, encode the rest of the bits using the normal algorithm. Because\n // we made more room, this time it won't overflow.\n\n var restOfLength = getBitLength(totalChildren) + restOfBaseLength;\n var restOfNewBits = slot << restOfBaseLength;\n var id = restOfNewBits | restOfBaseId;\n var overflow = newOverflow + baseOverflow;\n treeContextId = 1 << restOfLength | id;\n treeContextOverflow = overflow;\n } else {\n // Normal path\n var newBits = slot << baseLength;\n\n var _id = newBits | baseId;\n\n var _overflow = baseOverflow;\n treeContextId = 1 << length | _id;\n treeContextOverflow = _overflow;\n }\n}\nfunction pushMaterializedTreeId(workInProgress) {\n warnIfNotHydrating(); // This component materialized an id. This will affect any ids that appear\n // in its children.\n\n var returnFiber = workInProgress.return;\n\n if (returnFiber !== null) {\n var numberOfForks = 1;\n var slotIndex = 0;\n pushTreeFork(workInProgress, numberOfForks);\n pushTreeId(workInProgress, numberOfForks, slotIndex);\n }\n}\n\nfunction getBitLength(number) {\n return 32 - clz32(number);\n}\n\nfunction getLeadingBit(id) {\n return 1 << getBitLength(id) - 1;\n}\n\nfunction popTreeContext(workInProgress) {\n // Restore the previous values.\n // This is a bit more complicated than other context-like modules in Fiber\n // because the same Fiber may appear on the stack multiple times and for\n // different reasons. We have to keep popping until the work-in-progress is\n // no longer at the top of the stack.\n while (workInProgress === treeForkProvider) {\n treeForkProvider = forkStack[--forkStackIndex];\n forkStack[forkStackIndex] = null;\n treeForkCount = forkStack[--forkStackIndex];\n forkStack[forkStackIndex] = null;\n }\n\n while (workInProgress === treeContextProvider) {\n treeContextProvider = idStack[--idStackIndex];\n idStack[idStackIndex] = null;\n treeContextOverflow = idStack[--idStackIndex];\n idStack[idStackIndex] = null;\n treeContextId = idStack[--idStackIndex];\n idStack[idStackIndex] = null;\n }\n}\nfunction getSuspendedTreeContext() {\n warnIfNotHydrating();\n\n if (treeContextProvider !== null) {\n return {\n id: treeContextId,\n overflow: treeContextOverflow\n };\n } else {\n return null;\n }\n}\nfunction restoreSuspendedTreeContext(workInProgress, suspendedContext) {\n warnIfNotHydrating();\n idStack[idStackIndex++] = treeContextId;\n idStack[idStackIndex++] = treeContextOverflow;\n idStack[idStackIndex++] = treeContextProvider;\n treeContextId = suspendedContext.id;\n treeContextOverflow = suspendedContext.overflow;\n treeContextProvider = workInProgress;\n}\n\nfunction warnIfNotHydrating() {\n {\n if (!getIsHydrating()) {\n error('Expected to be hydrating. This is a bug in React. Please file ' + 'an issue.');\n }\n }\n}\n\n// This may have been an insertion or a hydration.\n\nvar hydrationParentFiber = null;\nvar nextHydratableInstance = null;\nvar isHydrating = false; // This flag allows for warning supression when we expect there to be mismatches\n// due to earlier mismatches or a suspended fiber.\n\nvar didSuspendOrErrorDEV = false; // Hydration errors that were thrown inside this boundary\n\nvar hydrationErrors = null;\n\nfunction warnIfHydrating() {\n {\n if (isHydrating) {\n error('We should not be hydrating here. This is a bug in React. Please file a bug.');\n }\n }\n}\n\nfunction markDidThrowWhileHydratingDEV() {\n {\n didSuspendOrErrorDEV = true;\n }\n}\nfunction didSuspendOrErrorWhileHydratingDEV() {\n {\n return didSuspendOrErrorDEV;\n }\n}\n\nfunction enterHydrationState(fiber) {\n\n var parentInstance = fiber.stateNode.containerInfo;\n nextHydratableInstance = getFirstHydratableChildWithinContainer(parentInstance);\n hydrationParentFiber = fiber;\n isHydrating = true;\n hydrationErrors = null;\n didSuspendOrErrorDEV = false;\n return true;\n}\n\nfunction reenterHydrationStateFromDehydratedSuspenseInstance(fiber, suspenseInstance, treeContext) {\n\n nextHydratableInstance = getFirstHydratableChildWithinSuspenseInstance(suspenseInstance);\n hydrationParentFiber = fiber;\n isHydrating = true;\n hydrationErrors = null;\n didSuspendOrErrorDEV = false;\n\n if (treeContext !== null) {\n restoreSuspendedTreeContext(fiber, treeContext);\n }\n\n return true;\n}\n\nfunction warnUnhydratedInstance(returnFiber, instance) {\n {\n switch (returnFiber.tag) {\n case HostRoot:\n {\n didNotHydrateInstanceWithinContainer(returnFiber.stateNode.containerInfo, instance);\n break;\n }\n\n case HostComponent:\n {\n var isConcurrentMode = (returnFiber.mode & ConcurrentMode) !== NoMode;\n didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance, // TODO: Delete this argument when we remove the legacy root API.\n isConcurrentMode);\n break;\n }\n\n case SuspenseComponent:\n {\n var suspenseState = returnFiber.memoizedState;\n if (suspenseState.dehydrated !== null) didNotHydrateInstanceWithinSuspenseInstance(suspenseState.dehydrated, instance);\n break;\n }\n }\n }\n}\n\nfunction deleteHydratableInstance(returnFiber, instance) {\n warnUnhydratedInstance(returnFiber, instance);\n var childToDelete = createFiberFromHostInstanceForDeletion();\n childToDelete.stateNode = instance;\n childToDelete.return = returnFiber;\n var deletions = returnFiber.deletions;\n\n if (deletions === null) {\n returnFiber.deletions = [childToDelete];\n returnFiber.flags |= ChildDeletion;\n } else {\n deletions.push(childToDelete);\n }\n}\n\nfunction warnNonhydratedInstance(returnFiber, fiber) {\n {\n if (didSuspendOrErrorDEV) {\n // Inside a boundary that already suspended. We're currently rendering the\n // siblings of a suspended node. The mismatch may be due to the missing\n // data, so it's probably a false positive.\n return;\n }\n\n switch (returnFiber.tag) {\n case HostRoot:\n {\n var parentContainer = returnFiber.stateNode.containerInfo;\n\n switch (fiber.tag) {\n case HostComponent:\n var type = fiber.type;\n var props = fiber.pendingProps;\n didNotFindHydratableInstanceWithinContainer(parentContainer, type);\n break;\n\n case HostText:\n var text = fiber.pendingProps;\n didNotFindHydratableTextInstanceWithinContainer(parentContainer, text);\n break;\n }\n\n break;\n }\n\n case HostComponent:\n {\n var parentType = returnFiber.type;\n var parentProps = returnFiber.memoizedProps;\n var parentInstance = returnFiber.stateNode;\n\n switch (fiber.tag) {\n case HostComponent:\n {\n var _type = fiber.type;\n var _props = fiber.pendingProps;\n var isConcurrentMode = (returnFiber.mode & ConcurrentMode) !== NoMode;\n didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props, // TODO: Delete this argument when we remove the legacy root API.\n isConcurrentMode);\n break;\n }\n\n case HostText:\n {\n var _text = fiber.pendingProps;\n\n var _isConcurrentMode = (returnFiber.mode & ConcurrentMode) !== NoMode;\n\n didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text, // TODO: Delete this argument when we remove the legacy root API.\n _isConcurrentMode);\n break;\n }\n }\n\n break;\n }\n\n case SuspenseComponent:\n {\n var suspenseState = returnFiber.memoizedState;\n var _parentInstance = suspenseState.dehydrated;\n if (_parentInstance !== null) switch (fiber.tag) {\n case HostComponent:\n var _type2 = fiber.type;\n var _props2 = fiber.pendingProps;\n didNotFindHydratableInstanceWithinSuspenseInstance(_parentInstance, _type2);\n break;\n\n case HostText:\n var _text2 = fiber.pendingProps;\n didNotFindHydratableTextInstanceWithinSuspenseInstance(_parentInstance, _text2);\n break;\n }\n break;\n }\n\n default:\n return;\n }\n }\n}\n\nfunction insertNonHydratedInstance(returnFiber, fiber) {\n fiber.flags = fiber.flags & ~Hydrating | Placement;\n warnNonhydratedInstance(returnFiber, fiber);\n}\n\nfunction tryHydrate(fiber, nextInstance) {\n switch (fiber.tag) {\n case HostComponent:\n {\n var type = fiber.type;\n var props = fiber.pendingProps;\n var instance = canHydrateInstance(nextInstance, type);\n\n if (instance !== null) {\n fiber.stateNode = instance;\n hydrationParentFiber = fiber;\n nextHydratableInstance = getFirstHydratableChild(instance);\n return true;\n }\n\n return false;\n }\n\n case HostText:\n {\n var text = fiber.pendingProps;\n var textInstance = canHydrateTextInstance(nextInstance, text);\n\n if (textInstance !== null) {\n fiber.stateNode = textInstance;\n hydrationParentFiber = fiber; // Text Instances don't have children so there's nothing to hydrate.\n\n nextHydratableInstance = null;\n return true;\n }\n\n return false;\n }\n\n case SuspenseComponent:\n {\n var suspenseInstance = canHydrateSuspenseInstance(nextInstance);\n\n if (suspenseInstance !== null) {\n var suspenseState = {\n dehydrated: suspenseInstance,\n treeContext: getSuspendedTreeContext(),\n retryLane: OffscreenLane\n };\n fiber.memoizedState = suspenseState; // Store the dehydrated fragment as a child fiber.\n // This simplifies the code for getHostSibling and deleting nodes,\n // since it doesn't have to consider all Suspense boundaries and\n // check if they're dehydrated ones or not.\n\n var dehydratedFragment = createFiberFromDehydratedFragment(suspenseInstance);\n dehydratedFragment.return = fiber;\n fiber.child = dehydratedFragment;\n hydrationParentFiber = fiber; // While a Suspense Instance does have children, we won't step into\n // it during the first pass. Instead, we'll reenter it later.\n\n nextHydratableInstance = null;\n return true;\n }\n\n return false;\n }\n\n default:\n return false;\n }\n}\n\nfunction shouldClientRenderOnMismatch(fiber) {\n return (fiber.mode & ConcurrentMode) !== NoMode && (fiber.flags & DidCapture) === NoFlags;\n}\n\nfunction throwOnHydrationMismatch(fiber) {\n throw new Error('Hydration failed because the initial UI does not match what was ' + 'rendered on the server.');\n}\n\nfunction tryToClaimNextHydratableInstance(fiber) {\n if (!isHydrating) {\n return;\n }\n\n var nextInstance = nextHydratableInstance;\n\n if (!nextInstance) {\n if (shouldClientRenderOnMismatch(fiber)) {\n warnNonhydratedInstance(hydrationParentFiber, fiber);\n throwOnHydrationMismatch();\n } // Nothing to hydrate. Make it an insertion.\n\n\n insertNonHydratedInstance(hydrationParentFiber, fiber);\n isHydrating = false;\n hydrationParentFiber = fiber;\n return;\n }\n\n var firstAttemptedInstance = nextInstance;\n\n if (!tryHydrate(fiber, nextInstance)) {\n if (shouldClientRenderOnMismatch(fiber)) {\n warnNonhydratedInstance(hydrationParentFiber, fiber);\n throwOnHydrationMismatch();\n } // If we can't hydrate this instance let's try the next one.\n // We use this as a heuristic. It's based on intuition and not data so it\n // might be flawed or unnecessary.\n\n\n nextInstance = getNextHydratableSibling(firstAttemptedInstance);\n var prevHydrationParentFiber = hydrationParentFiber;\n\n if (!nextInstance || !tryHydrate(fiber, nextInstance)) {\n // Nothing to hydrate. Make it an insertion.\n insertNonHydratedInstance(hydrationParentFiber, fiber);\n isHydrating = false;\n hydrationParentFiber = fiber;\n return;\n } // We matched the next one, we'll now assume that the first one was\n // superfluous and we'll delete it. Since we can't eagerly delete it\n // we'll have to schedule a deletion. To do that, this node needs a dummy\n // fiber associated with it.\n\n\n deleteHydratableInstance(prevHydrationParentFiber, firstAttemptedInstance);\n }\n}\n\nfunction prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {\n\n var instance = fiber.stateNode;\n var shouldWarnIfMismatchDev = !didSuspendOrErrorDEV;\n var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber, shouldWarnIfMismatchDev); // TODO: Type this specific to this type of component.\n\n fiber.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there\n // is a new ref we mark this as an update.\n\n if (updatePayload !== null) {\n return true;\n }\n\n return false;\n}\n\nfunction prepareToHydrateHostTextInstance(fiber) {\n\n var textInstance = fiber.stateNode;\n var textContent = fiber.memoizedProps;\n var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);\n\n if (shouldUpdate) {\n // We assume that prepareToHydrateHostTextInstance is called in a context where the\n // hydration parent is the parent host component of this host text.\n var returnFiber = hydrationParentFiber;\n\n if (returnFiber !== null) {\n switch (returnFiber.tag) {\n case HostRoot:\n {\n var parentContainer = returnFiber.stateNode.containerInfo;\n var isConcurrentMode = (returnFiber.mode & ConcurrentMode) !== NoMode;\n didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent, // TODO: Delete this argument when we remove the legacy root API.\n isConcurrentMode);\n break;\n }\n\n case HostComponent:\n {\n var parentType = returnFiber.type;\n var parentProps = returnFiber.memoizedProps;\n var parentInstance = returnFiber.stateNode;\n\n var _isConcurrentMode2 = (returnFiber.mode & ConcurrentMode) !== NoMode;\n\n didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent, // TODO: Delete this argument when we remove the legacy root API.\n _isConcurrentMode2);\n break;\n }\n }\n }\n }\n\n return shouldUpdate;\n}\n\nfunction prepareToHydrateHostSuspenseInstance(fiber) {\n\n var suspenseState = fiber.memoizedState;\n var suspenseInstance = suspenseState !== null ? suspenseState.dehydrated : null;\n\n if (!suspenseInstance) {\n throw new Error('Expected to have a hydrated suspense instance. ' + 'This error is likely caused by a bug in React. Please file an issue.');\n }\n\n hydrateSuspenseInstance(suspenseInstance, fiber);\n}\n\nfunction skipPastDehydratedSuspenseInstance(fiber) {\n\n var suspenseState = fiber.memoizedState;\n var suspenseInstance = suspenseState !== null ? suspenseState.dehydrated : null;\n\n if (!suspenseInstance) {\n throw new Error('Expected to have a hydrated suspense instance. ' + 'This error is likely caused by a bug in React. Please file an issue.');\n }\n\n return getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);\n}\n\nfunction popToNextHostParent(fiber) {\n var parent = fiber.return;\n\n while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== SuspenseComponent) {\n parent = parent.return;\n }\n\n hydrationParentFiber = parent;\n}\n\nfunction popHydrationState(fiber) {\n\n if (fiber !== hydrationParentFiber) {\n // We're deeper than the current hydration context, inside an inserted\n // tree.\n return false;\n }\n\n if (!isHydrating) {\n // If we're not currently hydrating but we're in a hydration context, then\n // we were an insertion and now need to pop up reenter hydration of our\n // siblings.\n popToNextHostParent(fiber);\n isHydrating = true;\n return false;\n } // If we have any remaining hydratable nodes, we need to delete them now.\n // We only do this deeper than head and body since they tend to have random\n // other nodes in them. We also ignore components with pure text content in\n // side of them. We also don't delete anything inside the root container.\n\n\n if (fiber.tag !== HostRoot && (fiber.tag !== HostComponent || shouldDeleteUnhydratedTailInstances(fiber.type) && !shouldSetTextContent(fiber.type, fiber.memoizedProps))) {\n var nextInstance = nextHydratableInstance;\n\n if (nextInstance) {\n if (shouldClientRenderOnMismatch(fiber)) {\n warnIfUnhydratedTailNodes(fiber);\n throwOnHydrationMismatch();\n } else {\n while (nextInstance) {\n deleteHydratableInstance(fiber, nextInstance);\n nextInstance = getNextHydratableSibling(nextInstance);\n }\n }\n }\n }\n\n popToNextHostParent(fiber);\n\n if (fiber.tag === SuspenseComponent) {\n nextHydratableInstance = skipPastDehydratedSuspenseInstance(fiber);\n } else {\n nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;\n }\n\n return true;\n}\n\nfunction hasUnhydratedTailNodes() {\n return isHydrating && nextHydratableInstance !== null;\n}\n\nfunction warnIfUnhydratedTailNodes(fiber) {\n var nextInstance = nextHydratableInstance;\n\n while (nextInstance) {\n warnUnhydratedInstance(fiber, nextInstance);\n nextInstance = getNextHydratableSibling(nextInstance);\n }\n}\n\nfunction resetHydrationState() {\n\n hydrationParentFiber = null;\n nextHydratableInstance = null;\n isHydrating = false;\n didSuspendOrErrorDEV = false;\n}\n\nfunction upgradeHydrationErrorsToRecoverable() {\n if (hydrationErrors !== null) {\n // Successfully completed a forced client render. The errors that occurred\n // during the hydration attempt are now recovered. We will log them in\n // commit phase, once the entire tree has finished.\n queueRecoverableErrors(hydrationErrors);\n hydrationErrors = null;\n }\n}\n\nfunction getIsHydrating() {\n return isHydrating;\n}\n\nfunction queueHydrationError(error) {\n if (hydrationErrors === null) {\n hydrationErrors = [error];\n } else {\n hydrationErrors.push(error);\n }\n}\n\nvar ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig;\nvar NoTransition = null;\nfunction requestCurrentTransition() {\n return ReactCurrentBatchConfig$1.transition;\n}\n\nvar ReactStrictModeWarnings = {\n recordUnsafeLifecycleWarnings: function (fiber, instance) {},\n flushPendingUnsafeLifecycleWarnings: function () {},\n recordLegacyContextWarning: function (fiber, instance) {},\n flushLegacyContextWarning: function () {},\n discardPendingWarnings: function () {}\n};\n\n{\n var findStrictRoot = function (fiber) {\n var maybeStrictRoot = null;\n var node = fiber;\n\n while (node !== null) {\n if (node.mode & StrictLegacyMode) {\n maybeStrictRoot = node;\n }\n\n node = node.return;\n }\n\n return maybeStrictRoot;\n };\n\n var setToSortedString = function (set) {\n var array = [];\n set.forEach(function (value) {\n array.push(value);\n });\n return array.sort().join(', ');\n };\n\n var pendingComponentWillMountWarnings = [];\n var pendingUNSAFE_ComponentWillMountWarnings = [];\n var pendingComponentWillReceivePropsWarnings = [];\n var pendingUNSAFE_ComponentWillReceivePropsWarnings = [];\n var pendingComponentWillUpdateWarnings = [];\n var pendingUNSAFE_ComponentWillUpdateWarnings = []; // Tracks components we have already warned about.\n\n var didWarnAboutUnsafeLifecycles = new Set();\n\n ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {\n // Dedupe strategy: Warn once per component.\n if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {\n return;\n }\n\n if (typeof instance.componentWillMount === 'function' && // Don't warn about react-lifecycles-compat polyfilled components.\n instance.componentWillMount.__suppressDeprecationWarning !== true) {\n pendingComponentWillMountWarnings.push(fiber);\n }\n\n if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillMount === 'function') {\n pendingUNSAFE_ComponentWillMountWarnings.push(fiber);\n }\n\n if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {\n pendingComponentWillReceivePropsWarnings.push(fiber);\n }\n\n if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillReceiveProps === 'function') {\n pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber);\n }\n\n if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {\n pendingComponentWillUpdateWarnings.push(fiber);\n }\n\n if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillUpdate === 'function') {\n pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber);\n }\n };\n\n ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {\n // We do an initial pass to gather component names\n var componentWillMountUniqueNames = new Set();\n\n if (pendingComponentWillMountWarnings.length > 0) {\n pendingComponentWillMountWarnings.forEach(function (fiber) {\n componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');\n didWarnAboutUnsafeLifecycles.add(fiber.type);\n });\n pendingComponentWillMountWarnings = [];\n }\n\n var UNSAFE_componentWillMountUniqueNames = new Set();\n\n if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) {\n pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) {\n UNSAFE_componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');\n didWarnAboutUnsafeLifecycles.add(fiber.type);\n });\n pendingUNSAFE_ComponentWillMountWarnings = [];\n }\n\n var componentWillReceivePropsUniqueNames = new Set();\n\n if (pendingComponentWillReceivePropsWarnings.length > 0) {\n pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {\n componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');\n didWarnAboutUnsafeLifecycles.add(fiber.type);\n });\n pendingComponentWillReceivePropsWarnings = [];\n }\n\n var UNSAFE_componentWillReceivePropsUniqueNames = new Set();\n\n if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) {\n pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) {\n UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');\n didWarnAboutUnsafeLifecycles.add(fiber.type);\n });\n pendingUNSAFE_ComponentWillReceivePropsWarnings = [];\n }\n\n var componentWillUpdateUniqueNames = new Set();\n\n if (pendingComponentWillUpdateWarnings.length > 0) {\n pendingComponentWillUpdateWarnings.forEach(function (fiber) {\n componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');\n didWarnAboutUnsafeLifecycles.add(fiber.type);\n });\n pendingComponentWillUpdateWarnings = [];\n }\n\n var UNSAFE_componentWillUpdateUniqueNames = new Set();\n\n if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) {\n pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) {\n UNSAFE_componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');\n didWarnAboutUnsafeLifecycles.add(fiber.type);\n });\n pendingUNSAFE_ComponentWillUpdateWarnings = [];\n } // Finally, we flush all the warnings\n // UNSAFE_ ones before the deprecated ones, since they'll be 'louder'\n\n\n if (UNSAFE_componentWillMountUniqueNames.size > 0) {\n var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames);\n\n error('Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\\n\\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\\n' + '\\nPlease update the following components: %s', sortedNames);\n }\n\n if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) {\n var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);\n\n error('Using UNSAFE_componentWillReceiveProps in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\\n\\n' + '* Move data fetching code or side effects to componentDidUpdate.\\n' + \"* If you're updating state whenever props change, \" + 'refactor your code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\\n' + '\\nPlease update the following components: %s', _sortedNames);\n }\n\n if (UNSAFE_componentWillUpdateUniqueNames.size > 0) {\n var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames);\n\n error('Using UNSAFE_componentWillUpdate in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\\n\\n' + '* Move data fetching code or side effects to componentDidUpdate.\\n' + '\\nPlease update the following components: %s', _sortedNames2);\n }\n\n if (componentWillMountUniqueNames.size > 0) {\n var _sortedNames3 = setToSortedString(componentWillMountUniqueNames);\n\n warn('componentWillMount has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\\n\\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\\n' + '* Rename componentWillMount to UNSAFE_componentWillMount to suppress ' + 'this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\\n' + '\\nPlease update the following components: %s', _sortedNames3);\n }\n\n if (componentWillReceivePropsUniqueNames.size > 0) {\n var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames);\n\n warn('componentWillReceiveProps has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\\n\\n' + '* Move data fetching code or side effects to componentDidUpdate.\\n' + \"* If you're updating state whenever props change, refactor your \" + 'code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\\n' + '* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress ' + 'this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\\n' + '\\nPlease update the following components: %s', _sortedNames4);\n }\n\n if (componentWillUpdateUniqueNames.size > 0) {\n var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames);\n\n warn('componentWillUpdate has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\\n\\n' + '* Move data fetching code or side effects to componentDidUpdate.\\n' + '* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress ' + 'this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\\n' + '\\nPlease update the following components: %s', _sortedNames5);\n }\n };\n\n var pendingLegacyContextWarning = new Map(); // Tracks components we have already warned about.\n\n var didWarnAboutLegacyContext = new Set();\n\n ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {\n var strictRoot = findStrictRoot(fiber);\n\n if (strictRoot === null) {\n error('Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');\n\n return;\n } // Dedup strategy: Warn once per component.\n\n\n if (didWarnAboutLegacyContext.has(fiber.type)) {\n return;\n }\n\n var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);\n\n if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {\n if (warningsForRoot === undefined) {\n warningsForRoot = [];\n pendingLegacyContextWarning.set(strictRoot, warningsForRoot);\n }\n\n warningsForRoot.push(fiber);\n }\n };\n\n ReactStrictModeWarnings.flushLegacyContextWarning = function () {\n pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {\n if (fiberArray.length === 0) {\n return;\n }\n\n var firstFiber = fiberArray[0];\n var uniqueNames = new Set();\n fiberArray.forEach(function (fiber) {\n uniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');\n didWarnAboutLegacyContext.add(fiber.type);\n });\n var sortedNames = setToSortedString(uniqueNames);\n\n try {\n setCurrentFiber(firstFiber);\n\n error('Legacy context API has been detected within a strict-mode tree.' + '\\n\\nThe old API will be supported in all 16.x releases, but applications ' + 'using it should migrate to the new version.' + '\\n\\nPlease update the following components: %s' + '\\n\\nLearn more about this warning here: https://reactjs.org/link/legacy-context', sortedNames);\n } finally {\n resetCurrentFiber();\n }\n });\n };\n\n ReactStrictModeWarnings.discardPendingWarnings = function () {\n pendingComponentWillMountWarnings = [];\n pendingUNSAFE_ComponentWillMountWarnings = [];\n pendingComponentWillReceivePropsWarnings = [];\n pendingUNSAFE_ComponentWillReceivePropsWarnings = [];\n pendingComponentWillUpdateWarnings = [];\n pendingUNSAFE_ComponentWillUpdateWarnings = [];\n pendingLegacyContextWarning = new Map();\n };\n}\n\nvar didWarnAboutMaps;\nvar didWarnAboutGenerators;\nvar didWarnAboutStringRefs;\nvar ownerHasKeyUseWarning;\nvar ownerHasFunctionTypeWarning;\n\nvar warnForMissingKey = function (child, returnFiber) {};\n\n{\n didWarnAboutMaps = false;\n didWarnAboutGenerators = false;\n didWarnAboutStringRefs = {};\n /**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n ownerHasKeyUseWarning = {};\n ownerHasFunctionTypeWarning = {};\n\n warnForMissingKey = function (child, returnFiber) {\n if (child === null || typeof child !== 'object') {\n return;\n }\n\n if (!child._store || child._store.validated || child.key != null) {\n return;\n }\n\n if (typeof child._store !== 'object') {\n throw new Error('React Component in warnForMissingKey should have a _store. ' + 'This error is likely caused by a bug in React. Please file an issue.');\n }\n\n child._store.validated = true;\n var componentName = getComponentNameFromFiber(returnFiber) || 'Component';\n\n if (ownerHasKeyUseWarning[componentName]) {\n return;\n }\n\n ownerHasKeyUseWarning[componentName] = true;\n\n error('Each child in a list should have a unique ' + '\"key\" prop. See https://reactjs.org/link/warning-keys for ' + 'more information.');\n };\n}\n\nfunction isReactClass(type) {\n return type.prototype && type.prototype.isReactComponent;\n}\n\nfunction coerceRef(returnFiber, current, element) {\n var mixedRef = element.ref;\n\n if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {\n {\n // TODO: Clean this up once we turn on the string ref warning for\n // everyone, because the strict mode case will no longer be relevant\n if ((returnFiber.mode & StrictLegacyMode || warnAboutStringRefs) && // We warn in ReactElement.js if owner and self are equal for string refs\n // because these cannot be automatically converted to an arrow function\n // using a codemod. Therefore, we don't have to warn about string refs again.\n !(element._owner && element._self && element._owner.stateNode !== element._self) && // Will already throw with \"Function components cannot have string refs\"\n !(element._owner && element._owner.tag !== ClassComponent) && // Will already warn with \"Function components cannot be given refs\"\n !(typeof element.type === 'function' && !isReactClass(element.type)) && // Will already throw with \"Element ref was specified as a string (someStringRef) but no owner was set\"\n element._owner) {\n var componentName = getComponentNameFromFiber(returnFiber) || 'Component';\n\n if (!didWarnAboutStringRefs[componentName]) {\n {\n error('Component \"%s\" contains the string ref \"%s\". Support for string refs ' + 'will be removed in a future major release. We recommend using ' + 'useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', componentName, mixedRef);\n }\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n\n if (element._owner) {\n var owner = element._owner;\n var inst;\n\n if (owner) {\n var ownerFiber = owner;\n\n if (ownerFiber.tag !== ClassComponent) {\n throw new Error('Function components cannot have string refs. ' + 'We recommend using useRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref');\n }\n\n inst = ownerFiber.stateNode;\n }\n\n if (!inst) {\n throw new Error(\"Missing owner for string ref \" + mixedRef + \". This error is likely caused by a \" + 'bug in React. Please file an issue.');\n } // Assigning this to a const so Flow knows it won't change in the closure\n\n\n var resolvedInst = inst;\n\n {\n checkPropStringCoercion(mixedRef, 'ref');\n }\n\n var stringRef = '' + mixedRef; // Check if previous string ref matches new string ref\n\n if (current !== null && current.ref !== null && typeof current.ref === 'function' && current.ref._stringRef === stringRef) {\n return current.ref;\n }\n\n var ref = function (value) {\n var refs = resolvedInst.refs;\n\n if (value === null) {\n delete refs[stringRef];\n } else {\n refs[stringRef] = value;\n }\n };\n\n ref._stringRef = stringRef;\n return ref;\n } else {\n if (typeof mixedRef !== 'string') {\n throw new Error('Expected ref to be a function, a string, an object returned by React.createRef(), or null.');\n }\n\n if (!element._owner) {\n throw new Error(\"Element ref was specified as a string (\" + mixedRef + \") but no owner was set. This could happen for one of\" + ' the following reasons:\\n' + '1. You may be adding a ref to a function component\\n' + \"2. You may be adding a ref to a component that was not created inside a component's render method\\n\" + '3. You have multiple copies of React loaded\\n' + 'See https://reactjs.org/link/refs-must-have-owner for more information.');\n }\n }\n }\n\n return mixedRef;\n}\n\nfunction throwOnInvalidObjectType(returnFiber, newChild) {\n var childString = Object.prototype.toString.call(newChild);\n throw new Error(\"Objects are not valid as a React child (found: \" + (childString === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : childString) + \"). \" + 'If you meant to render a collection of children, use an array ' + 'instead.');\n}\n\nfunction warnOnFunctionType(returnFiber) {\n {\n var componentName = getComponentNameFromFiber(returnFiber) || 'Component';\n\n if (ownerHasFunctionTypeWarning[componentName]) {\n return;\n }\n\n ownerHasFunctionTypeWarning[componentName] = true;\n\n error('Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');\n }\n}\n\nfunction resolveLazy(lazyType) {\n var payload = lazyType._payload;\n var init = lazyType._init;\n return init(payload);\n} // This wrapper function exists because I expect to clone the code in each path\n// to be able to optimize each path individually by branching early. This needs\n// a compiler or we can do it manually. Helpers that don't need this branching\n// live outside of this function.\n\n\nfunction ChildReconciler(shouldTrackSideEffects) {\n function deleteChild(returnFiber, childToDelete) {\n if (!shouldTrackSideEffects) {\n // Noop.\n return;\n }\n\n var deletions = returnFiber.deletions;\n\n if (deletions === null) {\n returnFiber.deletions = [childToDelete];\n returnFiber.flags |= ChildDeletion;\n } else {\n deletions.push(childToDelete);\n }\n }\n\n function deleteRemainingChildren(returnFiber, currentFirstChild) {\n if (!shouldTrackSideEffects) {\n // Noop.\n return null;\n } // TODO: For the shouldClone case, this could be micro-optimized a bit by\n // assuming that after the first child we've already added everything.\n\n\n var childToDelete = currentFirstChild;\n\n while (childToDelete !== null) {\n deleteChild(returnFiber, childToDelete);\n childToDelete = childToDelete.sibling;\n }\n\n return null;\n }\n\n function mapRemainingChildren(returnFiber, currentFirstChild) {\n // Add the remaining children to a temporary map so that we can find them by\n // keys quickly. Implicit (null) keys get added to this set with their index\n // instead.\n var existingChildren = new Map();\n var existingChild = currentFirstChild;\n\n while (existingChild !== null) {\n if (existingChild.key !== null) {\n existingChildren.set(existingChild.key, existingChild);\n } else {\n existingChildren.set(existingChild.index, existingChild);\n }\n\n existingChild = existingChild.sibling;\n }\n\n return existingChildren;\n }\n\n function useFiber(fiber, pendingProps) {\n // We currently set sibling to null and index to 0 here because it is easy\n // to forget to do before returning it. E.g. for the single child case.\n var clone = createWorkInProgress(fiber, pendingProps);\n clone.index = 0;\n clone.sibling = null;\n return clone;\n }\n\n function placeChild(newFiber, lastPlacedIndex, newIndex) {\n newFiber.index = newIndex;\n\n if (!shouldTrackSideEffects) {\n // During hydration, the useId algorithm needs to know which fibers are\n // part of a list of children (arrays, iterators).\n newFiber.flags |= Forked;\n return lastPlacedIndex;\n }\n\n var current = newFiber.alternate;\n\n if (current !== null) {\n var oldIndex = current.index;\n\n if (oldIndex < lastPlacedIndex) {\n // This is a move.\n newFiber.flags |= Placement;\n return lastPlacedIndex;\n } else {\n // This item can stay in place.\n return oldIndex;\n }\n } else {\n // This is an insertion.\n newFiber.flags |= Placement;\n return lastPlacedIndex;\n }\n }\n\n function placeSingleChild(newFiber) {\n // This is simpler for the single child case. We only need to do a\n // placement for inserting new children.\n if (shouldTrackSideEffects && newFiber.alternate === null) {\n newFiber.flags |= Placement;\n }\n\n return newFiber;\n }\n\n function updateTextNode(returnFiber, current, textContent, lanes) {\n if (current === null || current.tag !== HostText) {\n // Insert\n var created = createFiberFromText(textContent, returnFiber.mode, lanes);\n created.return = returnFiber;\n return created;\n } else {\n // Update\n var existing = useFiber(current, textContent);\n existing.return = returnFiber;\n return existing;\n }\n }\n\n function updateElement(returnFiber, current, element, lanes) {\n var elementType = element.type;\n\n if (elementType === REACT_FRAGMENT_TYPE) {\n return updateFragment(returnFiber, current, element.props.children, lanes, element.key);\n }\n\n if (current !== null) {\n if (current.elementType === elementType || ( // Keep this check inline so it only runs on the false path:\n isCompatibleFamilyForHotReloading(current, element) ) || // Lazy types should reconcile their resolved type.\n // We need to do this after the Hot Reloading check above,\n // because hot reloading has different semantics than prod because\n // it doesn't resuspend. So we can't let the call below suspend.\n typeof elementType === 'object' && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type) {\n // Move based on index\n var existing = useFiber(current, element.props);\n existing.ref = coerceRef(returnFiber, current, element);\n existing.return = returnFiber;\n\n {\n existing._debugSource = element._source;\n existing._debugOwner = element._owner;\n }\n\n return existing;\n }\n } // Insert\n\n\n var created = createFiberFromElement(element, returnFiber.mode, lanes);\n created.ref = coerceRef(returnFiber, current, element);\n created.return = returnFiber;\n return created;\n }\n\n function updatePortal(returnFiber, current, portal, lanes) {\n if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) {\n // Insert\n var created = createFiberFromPortal(portal, returnFiber.mode, lanes);\n created.return = returnFiber;\n return created;\n } else {\n // Update\n var existing = useFiber(current, portal.children || []);\n existing.return = returnFiber;\n return existing;\n }\n }\n\n function updateFragment(returnFiber, current, fragment, lanes, key) {\n if (current === null || current.tag !== Fragment) {\n // Insert\n var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key);\n created.return = returnFiber;\n return created;\n } else {\n // Update\n var existing = useFiber(current, fragment);\n existing.return = returnFiber;\n return existing;\n }\n }\n\n function createChild(returnFiber, newChild, lanes) {\n if (typeof newChild === 'string' && newChild !== '' || typeof newChild === 'number') {\n // Text nodes don't have keys. If the previous node is implicitly keyed\n // we can continue to replace it without aborting even if it is not a text\n // node.\n var created = createFiberFromText('' + newChild, returnFiber.mode, lanes);\n created.return = returnFiber;\n return created;\n }\n\n if (typeof newChild === 'object' && newChild !== null) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n {\n var _created = createFiberFromElement(newChild, returnFiber.mode, lanes);\n\n _created.ref = coerceRef(returnFiber, null, newChild);\n _created.return = returnFiber;\n return _created;\n }\n\n case REACT_PORTAL_TYPE:\n {\n var _created2 = createFiberFromPortal(newChild, returnFiber.mode, lanes);\n\n _created2.return = returnFiber;\n return _created2;\n }\n\n case REACT_LAZY_TYPE:\n {\n var payload = newChild._payload;\n var init = newChild._init;\n return createChild(returnFiber, init(payload), lanes);\n }\n }\n\n if (isArray(newChild) || getIteratorFn(newChild)) {\n var _created3 = createFiberFromFragment(newChild, returnFiber.mode, lanes, null);\n\n _created3.return = returnFiber;\n return _created3;\n }\n\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n\n {\n if (typeof newChild === 'function') {\n warnOnFunctionType(returnFiber);\n }\n }\n\n return null;\n }\n\n function updateSlot(returnFiber, oldFiber, newChild, lanes) {\n // Update the fiber if the keys match, otherwise return null.\n var key = oldFiber !== null ? oldFiber.key : null;\n\n if (typeof newChild === 'string' && newChild !== '' || typeof newChild === 'number') {\n // Text nodes don't have keys. If the previous node is implicitly keyed\n // we can continue to replace it without aborting even if it is not a text\n // node.\n if (key !== null) {\n return null;\n }\n\n return updateTextNode(returnFiber, oldFiber, '' + newChild, lanes);\n }\n\n if (typeof newChild === 'object' && newChild !== null) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n {\n if (newChild.key === key) {\n return updateElement(returnFiber, oldFiber, newChild, lanes);\n } else {\n return null;\n }\n }\n\n case REACT_PORTAL_TYPE:\n {\n if (newChild.key === key) {\n return updatePortal(returnFiber, oldFiber, newChild, lanes);\n } else {\n return null;\n }\n }\n\n case REACT_LAZY_TYPE:\n {\n var payload = newChild._payload;\n var init = newChild._init;\n return updateSlot(returnFiber, oldFiber, init(payload), lanes);\n }\n }\n\n if (isArray(newChild) || getIteratorFn(newChild)) {\n if (key !== null) {\n return null;\n }\n\n return updateFragment(returnFiber, oldFiber, newChild, lanes, null);\n }\n\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n\n {\n if (typeof newChild === 'function') {\n warnOnFunctionType(returnFiber);\n }\n }\n\n return null;\n }\n\n function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) {\n if (typeof newChild === 'string' && newChild !== '' || typeof newChild === 'number') {\n // Text nodes don't have keys, so we neither have to check the old nor\n // new node for the key. If both are text nodes, they match.\n var matchedFiber = existingChildren.get(newIdx) || null;\n return updateTextNode(returnFiber, matchedFiber, '' + newChild, lanes);\n }\n\n if (typeof newChild === 'object' && newChild !== null) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n {\n var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;\n\n return updateElement(returnFiber, _matchedFiber, newChild, lanes);\n }\n\n case REACT_PORTAL_TYPE:\n {\n var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;\n\n return updatePortal(returnFiber, _matchedFiber2, newChild, lanes);\n }\n\n case REACT_LAZY_TYPE:\n var payload = newChild._payload;\n var init = newChild._init;\n return updateFromMap(existingChildren, returnFiber, newIdx, init(payload), lanes);\n }\n\n if (isArray(newChild) || getIteratorFn(newChild)) {\n var _matchedFiber3 = existingChildren.get(newIdx) || null;\n\n return updateFragment(returnFiber, _matchedFiber3, newChild, lanes, null);\n }\n\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n\n {\n if (typeof newChild === 'function') {\n warnOnFunctionType(returnFiber);\n }\n }\n\n return null;\n }\n /**\n * Warns if there is a duplicate or missing key\n */\n\n\n function warnOnInvalidKey(child, knownKeys, returnFiber) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child, returnFiber);\n var key = child.key;\n\n if (typeof key !== 'string') {\n break;\n }\n\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n\n error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);\n\n break;\n\n case REACT_LAZY_TYPE:\n var payload = child._payload;\n var init = child._init;\n warnOnInvalidKey(init(payload), knownKeys, returnFiber);\n break;\n }\n }\n\n return knownKeys;\n }\n\n function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) {\n // This algorithm can't optimize by searching from both ends since we\n // don't have backpointers on fibers. I'm trying to see how far we can get\n // with that model. If it ends up not being worth the tradeoffs, we can\n // add it later.\n // Even with a two ended optimization, we'd want to optimize for the case\n // where there are few changes and brute force the comparison instead of\n // going for the Map. It'd like to explore hitting that path first in\n // forward-only mode and only go for the Map once we notice that we need\n // lots of look ahead. This doesn't handle reversal as well as two ended\n // search but that's unusual. Besides, for the two ended optimization to\n // work on Iterables, we'd need to copy the whole set.\n // In this first iteration, we'll just live with hitting the bad case\n // (adding everything to a Map) in for every insert/move.\n // If you change this code, also update reconcileChildrenIterator() which\n // uses the same algorithm.\n {\n // First, validate keys.\n var knownKeys = null;\n\n for (var i = 0; i < newChildren.length; i++) {\n var child = newChildren[i];\n knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber);\n }\n }\n\n var resultingFirstChild = null;\n var previousNewFiber = null;\n var oldFiber = currentFirstChild;\n var lastPlacedIndex = 0;\n var newIdx = 0;\n var nextOldFiber = null;\n\n for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {\n if (oldFiber.index > newIdx) {\n nextOldFiber = oldFiber;\n oldFiber = null;\n } else {\n nextOldFiber = oldFiber.sibling;\n }\n\n var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes);\n\n if (newFiber === null) {\n // TODO: This breaks on empty slots like null children. That's\n // unfortunate because it triggers the slow path all the time. We need\n // a better way to communicate whether this was a miss or null,\n // boolean, undefined, etc.\n if (oldFiber === null) {\n oldFiber = nextOldFiber;\n }\n\n break;\n }\n\n if (shouldTrackSideEffects) {\n if (oldFiber && newFiber.alternate === null) {\n // We matched the slot, but we didn't reuse the existing fiber, so we\n // need to delete the existing child.\n deleteChild(returnFiber, oldFiber);\n }\n }\n\n lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);\n\n if (previousNewFiber === null) {\n // TODO: Move out of the loop. This only happens for the first run.\n resultingFirstChild = newFiber;\n } else {\n // TODO: Defer siblings if we're not at the right index for this slot.\n // I.e. if we had null values before, then we want to defer this\n // for each null value. However, we also don't want to call updateSlot\n // with the previous one.\n previousNewFiber.sibling = newFiber;\n }\n\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n\n if (newIdx === newChildren.length) {\n // We've reached the end of the new children. We can delete the rest.\n deleteRemainingChildren(returnFiber, oldFiber);\n\n if (getIsHydrating()) {\n var numberOfForks = newIdx;\n pushTreeFork(returnFiber, numberOfForks);\n }\n\n return resultingFirstChild;\n }\n\n if (oldFiber === null) {\n // If we don't have any more existing children we can choose a fast path\n // since the rest will all be insertions.\n for (; newIdx < newChildren.length; newIdx++) {\n var _newFiber = createChild(returnFiber, newChildren[newIdx], lanes);\n\n if (_newFiber === null) {\n continue;\n }\n\n lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);\n\n if (previousNewFiber === null) {\n // TODO: Move out of the loop. This only happens for the first run.\n resultingFirstChild = _newFiber;\n } else {\n previousNewFiber.sibling = _newFiber;\n }\n\n previousNewFiber = _newFiber;\n }\n\n if (getIsHydrating()) {\n var _numberOfForks = newIdx;\n pushTreeFork(returnFiber, _numberOfForks);\n }\n\n return resultingFirstChild;\n } // Add all children to a key map for quick lookups.\n\n\n var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.\n\n for (; newIdx < newChildren.length; newIdx++) {\n var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], lanes);\n\n if (_newFiber2 !== null) {\n if (shouldTrackSideEffects) {\n if (_newFiber2.alternate !== null) {\n // The new fiber is a work in progress, but if there exists a\n // current, that means that we reused the fiber. We need to delete\n // it from the child list so that we don't add it to the deletion\n // list.\n existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);\n }\n }\n\n lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);\n\n if (previousNewFiber === null) {\n resultingFirstChild = _newFiber2;\n } else {\n previousNewFiber.sibling = _newFiber2;\n }\n\n previousNewFiber = _newFiber2;\n }\n }\n\n if (shouldTrackSideEffects) {\n // Any existing children that weren't consumed above were deleted. We need\n // to add them to the deletion list.\n existingChildren.forEach(function (child) {\n return deleteChild(returnFiber, child);\n });\n }\n\n if (getIsHydrating()) {\n var _numberOfForks2 = newIdx;\n pushTreeFork(returnFiber, _numberOfForks2);\n }\n\n return resultingFirstChild;\n }\n\n function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) {\n // This is the same implementation as reconcileChildrenArray(),\n // but using the iterator instead.\n var iteratorFn = getIteratorFn(newChildrenIterable);\n\n if (typeof iteratorFn !== 'function') {\n throw new Error('An object is not an iterable. This error is likely caused by a bug in ' + 'React. Please file an issue.');\n }\n\n {\n // We don't support rendering Generators because it's a mutation.\n // See https://github.com/facebook/react/issues/12995\n if (typeof Symbol === 'function' && // $FlowFixMe Flow doesn't know about toStringTag\n newChildrenIterable[Symbol.toStringTag] === 'Generator') {\n if (!didWarnAboutGenerators) {\n error('Using Generators as children is unsupported and will likely yield ' + 'unexpected results because enumerating a generator mutates it. ' + 'You may convert it to an array with `Array.from()` or the ' + '`[...spread]` operator before rendering. Keep in mind ' + 'you might need to polyfill these features for older browsers.');\n }\n\n didWarnAboutGenerators = true;\n } // Warn about using Maps as children\n\n\n if (newChildrenIterable.entries === iteratorFn) {\n if (!didWarnAboutMaps) {\n error('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');\n }\n\n didWarnAboutMaps = true;\n } // First, validate keys.\n // We'll get a different iterator later for the main pass.\n\n\n var _newChildren = iteratorFn.call(newChildrenIterable);\n\n if (_newChildren) {\n var knownKeys = null;\n\n var _step = _newChildren.next();\n\n for (; !_step.done; _step = _newChildren.next()) {\n var child = _step.value;\n knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber);\n }\n }\n }\n\n var newChildren = iteratorFn.call(newChildrenIterable);\n\n if (newChildren == null) {\n throw new Error('An iterable object provided no iterator.');\n }\n\n var resultingFirstChild = null;\n var previousNewFiber = null;\n var oldFiber = currentFirstChild;\n var lastPlacedIndex = 0;\n var newIdx = 0;\n var nextOldFiber = null;\n var step = newChildren.next();\n\n for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {\n if (oldFiber.index > newIdx) {\n nextOldFiber = oldFiber;\n oldFiber = null;\n } else {\n nextOldFiber = oldFiber.sibling;\n }\n\n var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes);\n\n if (newFiber === null) {\n // TODO: This breaks on empty slots like null children. That's\n // unfortunate because it triggers the slow path all the time. We need\n // a better way to communicate whether this was a miss or null,\n // boolean, undefined, etc.\n if (oldFiber === null) {\n oldFiber = nextOldFiber;\n }\n\n break;\n }\n\n if (shouldTrackSideEffects) {\n if (oldFiber && newFiber.alternate === null) {\n // We matched the slot, but we didn't reuse the existing fiber, so we\n // need to delete the existing child.\n deleteChild(returnFiber, oldFiber);\n }\n }\n\n lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);\n\n if (previousNewFiber === null) {\n // TODO: Move out of the loop. This only happens for the first run.\n resultingFirstChild = newFiber;\n } else {\n // TODO: Defer siblings if we're not at the right index for this slot.\n // I.e. if we had null values before, then we want to defer this\n // for each null value. However, we also don't want to call updateSlot\n // with the previous one.\n previousNewFiber.sibling = newFiber;\n }\n\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n\n if (step.done) {\n // We've reached the end of the new children. We can delete the rest.\n deleteRemainingChildren(returnFiber, oldFiber);\n\n if (getIsHydrating()) {\n var numberOfForks = newIdx;\n pushTreeFork(returnFiber, numberOfForks);\n }\n\n return resultingFirstChild;\n }\n\n if (oldFiber === null) {\n // If we don't have any more existing children we can choose a fast path\n // since the rest will all be insertions.\n for (; !step.done; newIdx++, step = newChildren.next()) {\n var _newFiber3 = createChild(returnFiber, step.value, lanes);\n\n if (_newFiber3 === null) {\n continue;\n }\n\n lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);\n\n if (previousNewFiber === null) {\n // TODO: Move out of the loop. This only happens for the first run.\n resultingFirstChild = _newFiber3;\n } else {\n previousNewFiber.sibling = _newFiber3;\n }\n\n previousNewFiber = _newFiber3;\n }\n\n if (getIsHydrating()) {\n var _numberOfForks3 = newIdx;\n pushTreeFork(returnFiber, _numberOfForks3);\n }\n\n return resultingFirstChild;\n } // Add all children to a key map for quick lookups.\n\n\n var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.\n\n for (; !step.done; newIdx++, step = newChildren.next()) {\n var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, lanes);\n\n if (_newFiber4 !== null) {\n if (shouldTrackSideEffects) {\n if (_newFiber4.alternate !== null) {\n // The new fiber is a work in progress, but if there exists a\n // current, that means that we reused the fiber. We need to delete\n // it from the child list so that we don't add it to the deletion\n // list.\n existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);\n }\n }\n\n lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);\n\n if (previousNewFiber === null) {\n resultingFirstChild = _newFiber4;\n } else {\n previousNewFiber.sibling = _newFiber4;\n }\n\n previousNewFiber = _newFiber4;\n }\n }\n\n if (shouldTrackSideEffects) {\n // Any existing children that weren't consumed above were deleted. We need\n // to add them to the deletion list.\n existingChildren.forEach(function (child) {\n return deleteChild(returnFiber, child);\n });\n }\n\n if (getIsHydrating()) {\n var _numberOfForks4 = newIdx;\n pushTreeFork(returnFiber, _numberOfForks4);\n }\n\n return resultingFirstChild;\n }\n\n function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, lanes) {\n // There's no need to check for keys on text nodes since we don't have a\n // way to define them.\n if (currentFirstChild !== null && currentFirstChild.tag === HostText) {\n // We already have an existing node so let's just update it and delete\n // the rest.\n deleteRemainingChildren(returnFiber, currentFirstChild.sibling);\n var existing = useFiber(currentFirstChild, textContent);\n existing.return = returnFiber;\n return existing;\n } // The existing first child is not a text node so we need to create one\n // and delete the existing ones.\n\n\n deleteRemainingChildren(returnFiber, currentFirstChild);\n var created = createFiberFromText(textContent, returnFiber.mode, lanes);\n created.return = returnFiber;\n return created;\n }\n\n function reconcileSingleElement(returnFiber, currentFirstChild, element, lanes) {\n var key = element.key;\n var child = currentFirstChild;\n\n while (child !== null) {\n // TODO: If key === null and child.key === null, then this only applies to\n // the first item in the list.\n if (child.key === key) {\n var elementType = element.type;\n\n if (elementType === REACT_FRAGMENT_TYPE) {\n if (child.tag === Fragment) {\n deleteRemainingChildren(returnFiber, child.sibling);\n var existing = useFiber(child, element.props.children);\n existing.return = returnFiber;\n\n {\n existing._debugSource = element._source;\n existing._debugOwner = element._owner;\n }\n\n return existing;\n }\n } else {\n if (child.elementType === elementType || ( // Keep this check inline so it only runs on the false path:\n isCompatibleFamilyForHotReloading(child, element) ) || // Lazy types should reconcile their resolved type.\n // We need to do this after the Hot Reloading check above,\n // because hot reloading has different semantics than prod because\n // it doesn't resuspend. So we can't let the call below suspend.\n typeof elementType === 'object' && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === child.type) {\n deleteRemainingChildren(returnFiber, child.sibling);\n\n var _existing = useFiber(child, element.props);\n\n _existing.ref = coerceRef(returnFiber, child, element);\n _existing.return = returnFiber;\n\n {\n _existing._debugSource = element._source;\n _existing._debugOwner = element._owner;\n }\n\n return _existing;\n }\n } // Didn't match.\n\n\n deleteRemainingChildren(returnFiber, child);\n break;\n } else {\n deleteChild(returnFiber, child);\n }\n\n child = child.sibling;\n }\n\n if (element.type === REACT_FRAGMENT_TYPE) {\n var created = createFiberFromFragment(element.props.children, returnFiber.mode, lanes, element.key);\n created.return = returnFiber;\n return created;\n } else {\n var _created4 = createFiberFromElement(element, returnFiber.mode, lanes);\n\n _created4.ref = coerceRef(returnFiber, currentFirstChild, element);\n _created4.return = returnFiber;\n return _created4;\n }\n }\n\n function reconcileSinglePortal(returnFiber, currentFirstChild, portal, lanes) {\n var key = portal.key;\n var child = currentFirstChild;\n\n while (child !== null) {\n // TODO: If key === null and child.key === null, then this only applies to\n // the first item in the list.\n if (child.key === key) {\n if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {\n deleteRemainingChildren(returnFiber, child.sibling);\n var existing = useFiber(child, portal.children || []);\n existing.return = returnFiber;\n return existing;\n } else {\n deleteRemainingChildren(returnFiber, child);\n break;\n }\n } else {\n deleteChild(returnFiber, child);\n }\n\n child = child.sibling;\n }\n\n var created = createFiberFromPortal(portal, returnFiber.mode, lanes);\n created.return = returnFiber;\n return created;\n } // This API will tag the children with the side-effect of the reconciliation\n // itself. They will be added to the side-effect list as we pass through the\n // children and the parent.\n\n\n function reconcileChildFibers(returnFiber, currentFirstChild, newChild, lanes) {\n // This function is not recursive.\n // If the top level item is an array, we treat it as a set of children,\n // not as a fragment. Nested arrays on the other hand will be treated as\n // fragment nodes. Recursion happens at the normal flow.\n // Handle top level unkeyed fragments as if they were arrays.\n // This leads to an ambiguity between <>{[...]}</> and <>...</>.\n // We treat the ambiguous cases above the same.\n var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;\n\n if (isUnkeyedTopLevelFragment) {\n newChild = newChild.props.children;\n } // Handle object types\n\n\n if (typeof newChild === 'object' && newChild !== null) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, lanes));\n\n case REACT_PORTAL_TYPE:\n return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, lanes));\n\n case REACT_LAZY_TYPE:\n var payload = newChild._payload;\n var init = newChild._init; // TODO: This function is supposed to be non-recursive.\n\n return reconcileChildFibers(returnFiber, currentFirstChild, init(payload), lanes);\n }\n\n if (isArray(newChild)) {\n return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes);\n }\n\n if (getIteratorFn(newChild)) {\n return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes);\n }\n\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n\n if (typeof newChild === 'string' && newChild !== '' || typeof newChild === 'number') {\n return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, lanes));\n }\n\n {\n if (typeof newChild === 'function') {\n warnOnFunctionType(returnFiber);\n }\n } // Remaining cases are all treated as empty.\n\n\n return deleteRemainingChildren(returnFiber, currentFirstChild);\n }\n\n return reconcileChildFibers;\n}\n\nvar reconcileChildFibers = ChildReconciler(true);\nvar mountChildFibers = ChildReconciler(false);\nfunction cloneChildFibers(current, workInProgress) {\n if (current !== null && workInProgress.child !== current.child) {\n throw new Error('Resuming work not yet implemented.');\n }\n\n if (workInProgress.child === null) {\n return;\n }\n\n var currentChild = workInProgress.child;\n var newChild = createWorkInProgress(currentChild, currentChild.pendingProps);\n workInProgress.child = newChild;\n newChild.return = workInProgress;\n\n while (currentChild.sibling !== null) {\n currentChild = currentChild.sibling;\n newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps);\n newChild.return = workInProgress;\n }\n\n newChild.sibling = null;\n} // Reset a workInProgress child set to prepare it for a second pass.\n\nfunction resetChildFibers(workInProgress, lanes) {\n var child = workInProgress.child;\n\n while (child !== null) {\n resetWorkInProgress(child, lanes);\n child = child.sibling;\n }\n}\n\nvar valueCursor = createCursor(null);\nvar rendererSigil;\n\n{\n // Use this to detect multiple renderers using the same context\n rendererSigil = {};\n}\n\nvar currentlyRenderingFiber = null;\nvar lastContextDependency = null;\nvar lastFullyObservedContext = null;\nvar isDisallowedContextReadInDEV = false;\nfunction resetContextDependencies() {\n // This is called right before React yields execution, to ensure `readContext`\n // cannot be called outside the render phase.\n currentlyRenderingFiber = null;\n lastContextDependency = null;\n lastFullyObservedContext = null;\n\n {\n isDisallowedContextReadInDEV = false;\n }\n}\nfunction enterDisallowedContextReadInDEV() {\n {\n isDisallowedContextReadInDEV = true;\n }\n}\nfunction exitDisallowedContextReadInDEV() {\n {\n isDisallowedContextReadInDEV = false;\n }\n}\nfunction pushProvider(providerFiber, context, nextValue) {\n {\n push(valueCursor, context._currentValue, providerFiber);\n context._currentValue = nextValue;\n\n {\n if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) {\n error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');\n }\n\n context._currentRenderer = rendererSigil;\n }\n }\n}\nfunction popProvider(context, providerFiber) {\n var currentValue = valueCursor.current;\n pop(valueCursor, providerFiber);\n\n {\n {\n context._currentValue = currentValue;\n }\n }\n}\nfunction scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) {\n // Update the child lanes of all the ancestors, including the alternates.\n var node = parent;\n\n while (node !== null) {\n var alternate = node.alternate;\n\n if (!isSubsetOfLanes(node.childLanes, renderLanes)) {\n node.childLanes = mergeLanes(node.childLanes, renderLanes);\n\n if (alternate !== null) {\n alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes);\n }\n } else if (alternate !== null && !isSubsetOfLanes(alternate.childLanes, renderLanes)) {\n alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes);\n }\n\n if (node === propagationRoot) {\n break;\n }\n\n node = node.return;\n }\n\n {\n if (node !== propagationRoot) {\n error('Expected to find the propagation root when scheduling context work. ' + 'This error is likely caused by a bug in React. Please file an issue.');\n }\n }\n}\nfunction propagateContextChange(workInProgress, context, renderLanes) {\n {\n propagateContextChange_eager(workInProgress, context, renderLanes);\n }\n}\n\nfunction propagateContextChange_eager(workInProgress, context, renderLanes) {\n\n var fiber = workInProgress.child;\n\n if (fiber !== null) {\n // Set the return pointer of the child to the work-in-progress fiber.\n fiber.return = workInProgress;\n }\n\n while (fiber !== null) {\n var nextFiber = void 0; // Visit this fiber.\n\n var list = fiber.dependencies;\n\n if (list !== null) {\n nextFiber = fiber.child;\n var dependency = list.firstContext;\n\n while (dependency !== null) {\n // Check if the context matches.\n if (dependency.context === context) {\n // Match! Schedule an update on this fiber.\n if (fiber.tag === ClassComponent) {\n // Schedule a force update on the work-in-progress.\n var lane = pickArbitraryLane(renderLanes);\n var update = createUpdate(NoTimestamp, lane);\n update.tag = ForceUpdate; // TODO: Because we don't have a work-in-progress, this will add the\n // update to the current fiber, too, which means it will persist even if\n // this render is thrown away. Since it's a race condition, not sure it's\n // worth fixing.\n // Inlined `enqueueUpdate` to remove interleaved update check\n\n var updateQueue = fiber.updateQueue;\n\n if (updateQueue === null) ; else {\n var sharedQueue = updateQueue.shared;\n var pending = sharedQueue.pending;\n\n if (pending === null) {\n // This is the first update. Create a circular list.\n update.next = update;\n } else {\n update.next = pending.next;\n pending.next = update;\n }\n\n sharedQueue.pending = update;\n }\n }\n\n fiber.lanes = mergeLanes(fiber.lanes, renderLanes);\n var alternate = fiber.alternate;\n\n if (alternate !== null) {\n alternate.lanes = mergeLanes(alternate.lanes, renderLanes);\n }\n\n scheduleContextWorkOnParentPath(fiber.return, renderLanes, workInProgress); // Mark the updated lanes on the list, too.\n\n list.lanes = mergeLanes(list.lanes, renderLanes); // Since we already found a match, we can stop traversing the\n // dependency list.\n\n break;\n }\n\n dependency = dependency.next;\n }\n } else if (fiber.tag === ContextProvider) {\n // Don't scan deeper if this is a matching provider\n nextFiber = fiber.type === workInProgress.type ? null : fiber.child;\n } else if (fiber.tag === DehydratedFragment) {\n // If a dehydrated suspense boundary is in this subtree, we don't know\n // if it will have any context consumers in it. The best we can do is\n // mark it as having updates.\n var parentSuspense = fiber.return;\n\n if (parentSuspense === null) {\n throw new Error('We just came from a parent so we must have had a parent. This is a bug in React.');\n }\n\n parentSuspense.lanes = mergeLanes(parentSuspense.lanes, renderLanes);\n var _alternate = parentSuspense.alternate;\n\n if (_alternate !== null) {\n _alternate.lanes = mergeLanes(_alternate.lanes, renderLanes);\n } // This is intentionally passing this fiber as the parent\n // because we want to schedule this fiber as having work\n // on its children. We'll use the childLanes on\n // this fiber to indicate that a context has changed.\n\n\n scheduleContextWorkOnParentPath(parentSuspense, renderLanes, workInProgress);\n nextFiber = fiber.sibling;\n } else {\n // Traverse down.\n nextFiber = fiber.child;\n }\n\n if (nextFiber !== null) {\n // Set the return pointer of the child to the work-in-progress fiber.\n nextFiber.return = fiber;\n } else {\n // No child. Traverse to next sibling.\n nextFiber = fiber;\n\n while (nextFiber !== null) {\n if (nextFiber === workInProgress) {\n // We're back to the root of this subtree. Exit.\n nextFiber = null;\n break;\n }\n\n var sibling = nextFiber.sibling;\n\n if (sibling !== null) {\n // Set the return pointer of the sibling to the work-in-progress fiber.\n sibling.return = nextFiber.return;\n nextFiber = sibling;\n break;\n } // No more siblings. Traverse up.\n\n\n nextFiber = nextFiber.return;\n }\n }\n\n fiber = nextFiber;\n }\n}\nfunction prepareToReadContext(workInProgress, renderLanes) {\n currentlyRenderingFiber = workInProgress;\n lastContextDependency = null;\n lastFullyObservedContext = null;\n var dependencies = workInProgress.dependencies;\n\n if (dependencies !== null) {\n {\n var firstContext = dependencies.firstContext;\n\n if (firstContext !== null) {\n if (includesSomeLane(dependencies.lanes, renderLanes)) {\n // Context list has a pending update. Mark that this fiber performed work.\n markWorkInProgressReceivedUpdate();\n } // Reset the work-in-progress list\n\n\n dependencies.firstContext = null;\n }\n }\n }\n}\nfunction readContext(context) {\n {\n // This warning would fire if you read context inside a Hook like useMemo.\n // Unlike the class check below, it's not enforced in production for perf.\n if (isDisallowedContextReadInDEV) {\n error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');\n }\n }\n\n var value = context._currentValue ;\n\n if (lastFullyObservedContext === context) ; else {\n var contextItem = {\n context: context,\n memoizedValue: value,\n next: null\n };\n\n if (lastContextDependency === null) {\n if (currentlyRenderingFiber === null) {\n throw new Error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');\n } // This is the first dependency for this component. Create a new list.\n\n\n lastContextDependency = contextItem;\n currentlyRenderingFiber.dependencies = {\n lanes: NoLanes,\n firstContext: contextItem\n };\n } else {\n // Append a new context item.\n lastContextDependency = lastContextDependency.next = contextItem;\n }\n }\n\n return value;\n}\n\n// render. When this render exits, either because it finishes or because it is\n// interrupted, the interleaved updates will be transferred onto the main part\n// of the queue.\n\nvar concurrentQueues = null;\nfunction pushConcurrentUpdateQueue(queue) {\n if (concurrentQueues === null) {\n concurrentQueues = [queue];\n } else {\n concurrentQueues.push(queue);\n }\n}\nfunction finishQueueingConcurrentUpdates() {\n // Transfer the interleaved updates onto the main queue. Each queue has a\n // `pending` field and an `interleaved` field. When they are not null, they\n // point to the last node in a circular linked list. We need to append the\n // interleaved list to the end of the pending list by joining them into a\n // single, circular list.\n if (concurrentQueues !== null) {\n for (var i = 0; i < concurrentQueues.length; i++) {\n var queue = concurrentQueues[i];\n var lastInterleavedUpdate = queue.interleaved;\n\n if (lastInterleavedUpdate !== null) {\n queue.interleaved = null;\n var firstInterleavedUpdate = lastInterleavedUpdate.next;\n var lastPendingUpdate = queue.pending;\n\n if (lastPendingUpdate !== null) {\n var firstPendingUpdate = lastPendingUpdate.next;\n lastPendingUpdate.next = firstInterleavedUpdate;\n lastInterleavedUpdate.next = firstPendingUpdate;\n }\n\n queue.pending = lastInterleavedUpdate;\n }\n }\n\n concurrentQueues = null;\n }\n}\nfunction enqueueConcurrentHookUpdate(fiber, queue, update, lane) {\n var interleaved = queue.interleaved;\n\n if (interleaved === null) {\n // This is the first update. Create a circular list.\n update.next = update; // At the end of the current render, this queue's interleaved updates will\n // be transferred to the pending queue.\n\n pushConcurrentUpdateQueue(queue);\n } else {\n update.next = interleaved.next;\n interleaved.next = update;\n }\n\n queue.interleaved = update;\n return markUpdateLaneFromFiberToRoot(fiber, lane);\n}\nfunction enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update, lane) {\n var interleaved = queue.interleaved;\n\n if (interleaved === null) {\n // This is the first update. Create a circular list.\n update.next = update; // At the end of the current render, this queue's interleaved updates will\n // be transferred to the pending queue.\n\n pushConcurrentUpdateQueue(queue);\n } else {\n update.next = interleaved.next;\n interleaved.next = update;\n }\n\n queue.interleaved = update;\n}\nfunction enqueueConcurrentClassUpdate(fiber, queue, update, lane) {\n var interleaved = queue.interleaved;\n\n if (interleaved === null) {\n // This is the first update. Create a circular list.\n update.next = update; // At the end of the current render, this queue's interleaved updates will\n // be transferred to the pending queue.\n\n pushConcurrentUpdateQueue(queue);\n } else {\n update.next = interleaved.next;\n interleaved.next = update;\n }\n\n queue.interleaved = update;\n return markUpdateLaneFromFiberToRoot(fiber, lane);\n}\nfunction enqueueConcurrentRenderForLane(fiber, lane) {\n return markUpdateLaneFromFiberToRoot(fiber, lane);\n} // Calling this function outside this module should only be done for backwards\n// compatibility and should always be accompanied by a warning.\n\nvar unsafe_markUpdateLaneFromFiberToRoot = markUpdateLaneFromFiberToRoot;\n\nfunction markUpdateLaneFromFiberToRoot(sourceFiber, lane) {\n // Update the source fiber's lanes\n sourceFiber.lanes = mergeLanes(sourceFiber.lanes, lane);\n var alternate = sourceFiber.alternate;\n\n if (alternate !== null) {\n alternate.lanes = mergeLanes(alternate.lanes, lane);\n }\n\n {\n if (alternate === null && (sourceFiber.flags & (Placement | Hydrating)) !== NoFlags) {\n warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);\n }\n } // Walk the parent path to the root and update the child lanes.\n\n\n var node = sourceFiber;\n var parent = sourceFiber.return;\n\n while (parent !== null) {\n parent.childLanes = mergeLanes(parent.childLanes, lane);\n alternate = parent.alternate;\n\n if (alternate !== null) {\n alternate.childLanes = mergeLanes(alternate.childLanes, lane);\n } else {\n {\n if ((parent.flags & (Placement | Hydrating)) !== NoFlags) {\n warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);\n }\n }\n }\n\n node = parent;\n parent = parent.return;\n }\n\n if (node.tag === HostRoot) {\n var root = node.stateNode;\n return root;\n } else {\n return null;\n }\n}\n\nvar UpdateState = 0;\nvar ReplaceState = 1;\nvar ForceUpdate = 2;\nvar CaptureUpdate = 3; // Global state that is reset at the beginning of calling `processUpdateQueue`.\n// It should only be read right after calling `processUpdateQueue`, via\n// `checkHasForceUpdateAfterProcessing`.\n\nvar hasForceUpdate = false;\nvar didWarnUpdateInsideUpdate;\nvar currentlyProcessingQueue;\n\n{\n didWarnUpdateInsideUpdate = false;\n currentlyProcessingQueue = null;\n}\n\nfunction initializeUpdateQueue(fiber) {\n var queue = {\n baseState: fiber.memoizedState,\n firstBaseUpdate: null,\n lastBaseUpdate: null,\n shared: {\n pending: null,\n interleaved: null,\n lanes: NoLanes\n },\n effects: null\n };\n fiber.updateQueue = queue;\n}\nfunction cloneUpdateQueue(current, workInProgress) {\n // Clone the update queue from current. Unless it's already a clone.\n var queue = workInProgress.updateQueue;\n var currentQueue = current.updateQueue;\n\n if (queue === currentQueue) {\n var clone = {\n baseState: currentQueue.baseState,\n firstBaseUpdate: currentQueue.firstBaseUpdate,\n lastBaseUpdate: currentQueue.lastBaseUpdate,\n shared: currentQueue.shared,\n effects: currentQueue.effects\n };\n workInProgress.updateQueue = clone;\n }\n}\nfunction createUpdate(eventTime, lane) {\n var update = {\n eventTime: eventTime,\n lane: lane,\n tag: UpdateState,\n payload: null,\n callback: null,\n next: null\n };\n return update;\n}\nfunction enqueueUpdate(fiber, update, lane) {\n var updateQueue = fiber.updateQueue;\n\n if (updateQueue === null) {\n // Only occurs if the fiber has been unmounted.\n return null;\n }\n\n var sharedQueue = updateQueue.shared;\n\n {\n if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) {\n error('An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');\n\n didWarnUpdateInsideUpdate = true;\n }\n }\n\n if (isUnsafeClassRenderPhaseUpdate()) {\n // This is an unsafe render phase update. Add directly to the update\n // queue so we can process it immediately during the current render.\n var pending = sharedQueue.pending;\n\n if (pending === null) {\n // This is the first update. Create a circular list.\n update.next = update;\n } else {\n update.next = pending.next;\n pending.next = update;\n }\n\n sharedQueue.pending = update; // Update the childLanes even though we're most likely already rendering\n // this fiber. This is for backwards compatibility in the case where you\n // update a different component during render phase than the one that is\n // currently renderings (a pattern that is accompanied by a warning).\n\n return unsafe_markUpdateLaneFromFiberToRoot(fiber, lane);\n } else {\n return enqueueConcurrentClassUpdate(fiber, sharedQueue, update, lane);\n }\n}\nfunction entangleTransitions(root, fiber, lane) {\n var updateQueue = fiber.updateQueue;\n\n if (updateQueue === null) {\n // Only occurs if the fiber has been unmounted.\n return;\n }\n\n var sharedQueue = updateQueue.shared;\n\n if (isTransitionLane(lane)) {\n var queueLanes = sharedQueue.lanes; // If any entangled lanes are no longer pending on the root, then they must\n // have finished. We can remove them from the shared queue, which represents\n // a superset of the actually pending lanes. In some cases we may entangle\n // more than we need to, but that's OK. In fact it's worse if we *don't*\n // entangle when we should.\n\n queueLanes = intersectLanes(queueLanes, root.pendingLanes); // Entangle the new transition lane with the other transition lanes.\n\n var newQueueLanes = mergeLanes(queueLanes, lane);\n sharedQueue.lanes = newQueueLanes; // Even if queue.lanes already include lane, we don't know for certain if\n // the lane finished since the last time we entangled it. So we need to\n // entangle it again, just to be sure.\n\n markRootEntangled(root, newQueueLanes);\n }\n}\nfunction enqueueCapturedUpdate(workInProgress, capturedUpdate) {\n // Captured updates are updates that are thrown by a child during the render\n // phase. They should be discarded if the render is aborted. Therefore,\n // we should only put them on the work-in-progress queue, not the current one.\n var queue = workInProgress.updateQueue; // Check if the work-in-progress queue is a clone.\n\n var current = workInProgress.alternate;\n\n if (current !== null) {\n var currentQueue = current.updateQueue;\n\n if (queue === currentQueue) {\n // The work-in-progress queue is the same as current. This happens when\n // we bail out on a parent fiber that then captures an error thrown by\n // a child. Since we want to append the update only to the work-in\n // -progress queue, we need to clone the updates. We usually clone during\n // processUpdateQueue, but that didn't happen in this case because we\n // skipped over the parent when we bailed out.\n var newFirst = null;\n var newLast = null;\n var firstBaseUpdate = queue.firstBaseUpdate;\n\n if (firstBaseUpdate !== null) {\n // Loop through the updates and clone them.\n var update = firstBaseUpdate;\n\n do {\n var clone = {\n eventTime: update.eventTime,\n lane: update.lane,\n tag: update.tag,\n payload: update.payload,\n callback: update.callback,\n next: null\n };\n\n if (newLast === null) {\n newFirst = newLast = clone;\n } else {\n newLast.next = clone;\n newLast = clone;\n }\n\n update = update.next;\n } while (update !== null); // Append the captured update the end of the cloned list.\n\n\n if (newLast === null) {\n newFirst = newLast = capturedUpdate;\n } else {\n newLast.next = capturedUpdate;\n newLast = capturedUpdate;\n }\n } else {\n // There are no base updates.\n newFirst = newLast = capturedUpdate;\n }\n\n queue = {\n baseState: currentQueue.baseState,\n firstBaseUpdate: newFirst,\n lastBaseUpdate: newLast,\n shared: currentQueue.shared,\n effects: currentQueue.effects\n };\n workInProgress.updateQueue = queue;\n return;\n }\n } // Append the update to the end of the list.\n\n\n var lastBaseUpdate = queue.lastBaseUpdate;\n\n if (lastBaseUpdate === null) {\n queue.firstBaseUpdate = capturedUpdate;\n } else {\n lastBaseUpdate.next = capturedUpdate;\n }\n\n queue.lastBaseUpdate = capturedUpdate;\n}\n\nfunction getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {\n switch (update.tag) {\n case ReplaceState:\n {\n var payload = update.payload;\n\n if (typeof payload === 'function') {\n // Updater function\n {\n enterDisallowedContextReadInDEV();\n }\n\n var nextState = payload.call(instance, prevState, nextProps);\n\n {\n if ( workInProgress.mode & StrictLegacyMode) {\n setIsStrictModeForDevtools(true);\n\n try {\n payload.call(instance, prevState, nextProps);\n } finally {\n setIsStrictModeForDevtools(false);\n }\n }\n\n exitDisallowedContextReadInDEV();\n }\n\n return nextState;\n } // State object\n\n\n return payload;\n }\n\n case CaptureUpdate:\n {\n workInProgress.flags = workInProgress.flags & ~ShouldCapture | DidCapture;\n }\n // Intentional fallthrough\n\n case UpdateState:\n {\n var _payload = update.payload;\n var partialState;\n\n if (typeof _payload === 'function') {\n // Updater function\n {\n enterDisallowedContextReadInDEV();\n }\n\n partialState = _payload.call(instance, prevState, nextProps);\n\n {\n if ( workInProgress.mode & StrictLegacyMode) {\n setIsStrictModeForDevtools(true);\n\n try {\n _payload.call(instance, prevState, nextProps);\n } finally {\n setIsStrictModeForDevtools(false);\n }\n }\n\n exitDisallowedContextReadInDEV();\n }\n } else {\n // Partial state object\n partialState = _payload;\n }\n\n if (partialState === null || partialState === undefined) {\n // Null and undefined are treated as no-ops.\n return prevState;\n } // Merge the partial state and the previous state.\n\n\n return assign({}, prevState, partialState);\n }\n\n case ForceUpdate:\n {\n hasForceUpdate = true;\n return prevState;\n }\n }\n\n return prevState;\n}\n\nfunction processUpdateQueue(workInProgress, props, instance, renderLanes) {\n // This is always non-null on a ClassComponent or HostRoot\n var queue = workInProgress.updateQueue;\n hasForceUpdate = false;\n\n {\n currentlyProcessingQueue = queue.shared;\n }\n\n var firstBaseUpdate = queue.firstBaseUpdate;\n var lastBaseUpdate = queue.lastBaseUpdate; // Check if there are pending updates. If so, transfer them to the base queue.\n\n var pendingQueue = queue.shared.pending;\n\n if (pendingQueue !== null) {\n queue.shared.pending = null; // The pending queue is circular. Disconnect the pointer between first\n // and last so that it's non-circular.\n\n var lastPendingUpdate = pendingQueue;\n var firstPendingUpdate = lastPendingUpdate.next;\n lastPendingUpdate.next = null; // Append pending updates to base queue\n\n if (lastBaseUpdate === null) {\n firstBaseUpdate = firstPendingUpdate;\n } else {\n lastBaseUpdate.next = firstPendingUpdate;\n }\n\n lastBaseUpdate = lastPendingUpdate; // If there's a current queue, and it's different from the base queue, then\n // we need to transfer the updates to that queue, too. Because the base\n // queue is a singly-linked list with no cycles, we can append to both\n // lists and take advantage of structural sharing.\n // TODO: Pass `current` as argument\n\n var current = workInProgress.alternate;\n\n if (current !== null) {\n // This is always non-null on a ClassComponent or HostRoot\n var currentQueue = current.updateQueue;\n var currentLastBaseUpdate = currentQueue.lastBaseUpdate;\n\n if (currentLastBaseUpdate !== lastBaseUpdate) {\n if (currentLastBaseUpdate === null) {\n currentQueue.firstBaseUpdate = firstPendingUpdate;\n } else {\n currentLastBaseUpdate.next = firstPendingUpdate;\n }\n\n currentQueue.lastBaseUpdate = lastPendingUpdate;\n }\n }\n } // These values may change as we process the queue.\n\n\n if (firstBaseUpdate !== null) {\n // Iterate through the list of updates to compute the result.\n var newState = queue.baseState; // TODO: Don't need to accumulate this. Instead, we can remove renderLanes\n // from the original lanes.\n\n var newLanes = NoLanes;\n var newBaseState = null;\n var newFirstBaseUpdate = null;\n var newLastBaseUpdate = null;\n var update = firstBaseUpdate;\n\n do {\n var updateLane = update.lane;\n var updateEventTime = update.eventTime;\n\n if (!isSubsetOfLanes(renderLanes, updateLane)) {\n // Priority is insufficient. Skip this update. If this is the first\n // skipped update, the previous update/state is the new base\n // update/state.\n var clone = {\n eventTime: updateEventTime,\n lane: updateLane,\n tag: update.tag,\n payload: update.payload,\n callback: update.callback,\n next: null\n };\n\n if (newLastBaseUpdate === null) {\n newFirstBaseUpdate = newLastBaseUpdate = clone;\n newBaseState = newState;\n } else {\n newLastBaseUpdate = newLastBaseUpdate.next = clone;\n } // Update the remaining priority in the queue.\n\n\n newLanes = mergeLanes(newLanes, updateLane);\n } else {\n // This update does have sufficient priority.\n if (newLastBaseUpdate !== null) {\n var _clone = {\n eventTime: updateEventTime,\n // This update is going to be committed so we never want uncommit\n // it. Using NoLane works because 0 is a subset of all bitmasks, so\n // this will never be skipped by the check above.\n lane: NoLane,\n tag: update.tag,\n payload: update.payload,\n callback: update.callback,\n next: null\n };\n newLastBaseUpdate = newLastBaseUpdate.next = _clone;\n } // Process this update.\n\n\n newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance);\n var callback = update.callback;\n\n if (callback !== null && // If the update was already committed, we should not queue its\n // callback again.\n update.lane !== NoLane) {\n workInProgress.flags |= Callback;\n var effects = queue.effects;\n\n if (effects === null) {\n queue.effects = [update];\n } else {\n effects.push(update);\n }\n }\n }\n\n update = update.next;\n\n if (update === null) {\n pendingQueue = queue.shared.pending;\n\n if (pendingQueue === null) {\n break;\n } else {\n // An update was scheduled from inside a reducer. Add the new\n // pending updates to the end of the list and keep processing.\n var _lastPendingUpdate = pendingQueue; // Intentionally unsound. Pending updates form a circular list, but we\n // unravel them when transferring them to the base queue.\n\n var _firstPendingUpdate = _lastPendingUpdate.next;\n _lastPendingUpdate.next = null;\n update = _firstPendingUpdate;\n queue.lastBaseUpdate = _lastPendingUpdate;\n queue.shared.pending = null;\n }\n }\n } while (true);\n\n if (newLastBaseUpdate === null) {\n newBaseState = newState;\n }\n\n queue.baseState = newBaseState;\n queue.firstBaseUpdate = newFirstBaseUpdate;\n queue.lastBaseUpdate = newLastBaseUpdate; // Interleaved updates are stored on a separate queue. We aren't going to\n // process them during this render, but we do need to track which lanes\n // are remaining.\n\n var lastInterleaved = queue.shared.interleaved;\n\n if (lastInterleaved !== null) {\n var interleaved = lastInterleaved;\n\n do {\n newLanes = mergeLanes(newLanes, interleaved.lane);\n interleaved = interleaved.next;\n } while (interleaved !== lastInterleaved);\n } else if (firstBaseUpdate === null) {\n // `queue.lanes` is used for entangling transitions. We can set it back to\n // zero once the queue is empty.\n queue.shared.lanes = NoLanes;\n } // Set the remaining expiration time to be whatever is remaining in the queue.\n // This should be fine because the only two other things that contribute to\n // expiration time are props and context. We're already in the middle of the\n // begin phase by the time we start processing the queue, so we've already\n // dealt with the props. Context in components that specify\n // shouldComponentUpdate is tricky; but we'll have to account for\n // that regardless.\n\n\n markSkippedUpdateLanes(newLanes);\n workInProgress.lanes = newLanes;\n workInProgress.memoizedState = newState;\n }\n\n {\n currentlyProcessingQueue = null;\n }\n}\n\nfunction callCallback(callback, context) {\n if (typeof callback !== 'function') {\n throw new Error('Invalid argument passed as callback. Expected a function. Instead ' + (\"received: \" + callback));\n }\n\n callback.call(context);\n}\n\nfunction resetHasForceUpdateBeforeProcessing() {\n hasForceUpdate = false;\n}\nfunction checkHasForceUpdateAfterProcessing() {\n return hasForceUpdate;\n}\nfunction commitUpdateQueue(finishedWork, finishedQueue, instance) {\n // Commit the effects\n var effects = finishedQueue.effects;\n finishedQueue.effects = null;\n\n if (effects !== null) {\n for (var i = 0; i < effects.length; i++) {\n var effect = effects[i];\n var callback = effect.callback;\n\n if (callback !== null) {\n effect.callback = null;\n callCallback(callback, instance);\n }\n }\n }\n}\n\nvar NO_CONTEXT = {};\nvar contextStackCursor$1 = createCursor(NO_CONTEXT);\nvar contextFiberStackCursor = createCursor(NO_CONTEXT);\nvar rootInstanceStackCursor = createCursor(NO_CONTEXT);\n\nfunction requiredContext(c) {\n if (c === NO_CONTEXT) {\n throw new Error('Expected host context to exist. This error is likely caused by a bug ' + 'in React. Please file an issue.');\n }\n\n return c;\n}\n\nfunction getRootHostContainer() {\n var rootInstance = requiredContext(rootInstanceStackCursor.current);\n return rootInstance;\n}\n\nfunction pushHostContainer(fiber, nextRootInstance) {\n // Push current root instance onto the stack;\n // This allows us to reset root when portals are popped.\n push(rootInstanceStackCursor, nextRootInstance, fiber); // Track the context and the Fiber that provided it.\n // This enables us to pop only Fibers that provide unique contexts.\n\n push(contextFiberStackCursor, fiber, fiber); // Finally, we need to push the host context to the stack.\n // However, we can't just call getRootHostContext() and push it because\n // we'd have a different number of entries on the stack depending on\n // whether getRootHostContext() throws somewhere in renderer code or not.\n // So we push an empty value first. This lets us safely unwind on errors.\n\n push(contextStackCursor$1, NO_CONTEXT, fiber);\n var nextRootContext = getRootHostContext(nextRootInstance); // Now that we know this function doesn't throw, replace it.\n\n pop(contextStackCursor$1, fiber);\n push(contextStackCursor$1, nextRootContext, fiber);\n}\n\nfunction popHostContainer(fiber) {\n pop(contextStackCursor$1, fiber);\n pop(contextFiberStackCursor, fiber);\n pop(rootInstanceStackCursor, fiber);\n}\n\nfunction getHostContext() {\n var context = requiredContext(contextStackCursor$1.current);\n return context;\n}\n\nfunction pushHostContext(fiber) {\n var rootInstance = requiredContext(rootInstanceStackCursor.current);\n var context = requiredContext(contextStackCursor$1.current);\n var nextContext = getChildHostContext(context, fiber.type); // Don't push this Fiber's context unless it's unique.\n\n if (context === nextContext) {\n return;\n } // Track the context and the Fiber that provided it.\n // This enables us to pop only Fibers that provide unique contexts.\n\n\n push(contextFiberStackCursor, fiber, fiber);\n push(contextStackCursor$1, nextContext, fiber);\n}\n\nfunction popHostContext(fiber) {\n // Do not pop unless this Fiber provided the current context.\n // pushHostContext() only pushes Fibers that provide unique contexts.\n if (contextFiberStackCursor.current !== fiber) {\n return;\n }\n\n pop(contextStackCursor$1, fiber);\n pop(contextFiberStackCursor, fiber);\n}\n\nvar DefaultSuspenseContext = 0; // The Suspense Context is split into two parts. The lower bits is\n// inherited deeply down the subtree. The upper bits only affect\n// this immediate suspense boundary and gets reset each new\n// boundary or suspense list.\n\nvar SubtreeSuspenseContextMask = 1; // Subtree Flags:\n// InvisibleParentSuspenseContext indicates that one of our parent Suspense\n// boundaries is not currently showing visible main content.\n// Either because it is already showing a fallback or is not mounted at all.\n// We can use this to determine if it is desirable to trigger a fallback at\n// the parent. If not, then we might need to trigger undesirable boundaries\n// and/or suspend the commit to avoid hiding the parent content.\n\nvar InvisibleParentSuspenseContext = 1; // Shallow Flags:\n// ForceSuspenseFallback can be used by SuspenseList to force newly added\n// items into their fallback state during one of the render passes.\n\nvar ForceSuspenseFallback = 2;\nvar suspenseStackCursor = createCursor(DefaultSuspenseContext);\nfunction hasSuspenseContext(parentContext, flag) {\n return (parentContext & flag) !== 0;\n}\nfunction setDefaultShallowSuspenseContext(parentContext) {\n return parentContext & SubtreeSuspenseContextMask;\n}\nfunction setShallowSuspenseContext(parentContext, shallowContext) {\n return parentContext & SubtreeSuspenseContextMask | shallowContext;\n}\nfunction addSubtreeSuspenseContext(parentContext, subtreeContext) {\n return parentContext | subtreeContext;\n}\nfunction pushSuspenseContext(fiber, newContext) {\n push(suspenseStackCursor, newContext, fiber);\n}\nfunction popSuspenseContext(fiber) {\n pop(suspenseStackCursor, fiber);\n}\n\nfunction shouldCaptureSuspense(workInProgress, hasInvisibleParent) {\n // If it was the primary children that just suspended, capture and render the\n // fallback. Otherwise, don't capture and bubble to the next boundary.\n var nextState = workInProgress.memoizedState;\n\n if (nextState !== null) {\n if (nextState.dehydrated !== null) {\n // A dehydrated boundary always captures.\n return true;\n }\n\n return false;\n }\n\n var props = workInProgress.memoizedProps; // Regular boundaries always capture.\n\n {\n return true;\n } // If it's a boundary we should avoid, then we prefer to bubble up to the\n}\nfunction findFirstSuspended(row) {\n var node = row;\n\n while (node !== null) {\n if (node.tag === SuspenseComponent) {\n var state = node.memoizedState;\n\n if (state !== null) {\n var dehydrated = state.dehydrated;\n\n if (dehydrated === null || isSuspenseInstancePending(dehydrated) || isSuspenseInstanceFallback(dehydrated)) {\n return node;\n }\n }\n } else if (node.tag === SuspenseListComponent && // revealOrder undefined can't be trusted because it don't\n // keep track of whether it suspended or not.\n node.memoizedProps.revealOrder !== undefined) {\n var didSuspend = (node.flags & DidCapture) !== NoFlags;\n\n if (didSuspend) {\n return node;\n }\n } else if (node.child !== null) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n\n if (node === row) {\n return null;\n }\n\n while (node.sibling === null) {\n if (node.return === null || node.return === row) {\n return null;\n }\n\n node = node.return;\n }\n\n node.sibling.return = node.return;\n node = node.sibling;\n }\n\n return null;\n}\n\nvar NoFlags$1 =\n/* */\n0; // Represents whether effect should fire.\n\nvar HasEffect =\n/* */\n1; // Represents the phase in which the effect (not the clean-up) fires.\n\nvar Insertion =\n/* */\n2;\nvar Layout =\n/* */\n4;\nvar Passive$1 =\n/* */\n8;\n\n// and should be reset before starting a new render.\n// This tracks which mutable sources need to be reset after a render.\n\nvar workInProgressSources = [];\nfunction resetWorkInProgressVersions() {\n for (var i = 0; i < workInProgressSources.length; i++) {\n var mutableSource = workInProgressSources[i];\n\n {\n mutableSource._workInProgressVersionPrimary = null;\n }\n }\n\n workInProgressSources.length = 0;\n}\n// This ensures that the version used for server rendering matches the one\n// that is eventually read during hydration.\n// If they don't match there's a potential tear and a full deopt render is required.\n\nfunction registerMutableSourceForHydration(root, mutableSource) {\n var getVersion = mutableSource._getVersion;\n var version = getVersion(mutableSource._source); // TODO Clear this data once all pending hydration work is finished.\n // Retaining it forever may interfere with GC.\n\n if (root.mutableSourceEagerHydrationData == null) {\n root.mutableSourceEagerHydrationData = [mutableSource, version];\n } else {\n root.mutableSourceEagerHydrationData.push(mutableSource, version);\n }\n}\n\nvar ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,\n ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig;\nvar didWarnAboutMismatchedHooksForComponent;\nvar didWarnUncachedGetSnapshot;\n\n{\n didWarnAboutMismatchedHooksForComponent = new Set();\n}\n\n// These are set right before calling the component.\nvar renderLanes = NoLanes; // The work-in-progress fiber. I've named it differently to distinguish it from\n// the work-in-progress hook.\n\nvar currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The\n// current hook list is the list that belongs to the current fiber. The\n// work-in-progress hook list is a new list that will be added to the\n// work-in-progress fiber.\n\nvar currentHook = null;\nvar workInProgressHook = null; // Whether an update was scheduled at any point during the render phase. This\n// does not get reset if we do another render pass; only when we're completely\n// finished evaluating this component. This is an optimization so we know\n// whether we need to clear render phase updates after a throw.\n\nvar didScheduleRenderPhaseUpdate = false; // Where an update was scheduled only during the current render pass. This\n// gets reset after each attempt.\n// TODO: Maybe there's some way to consolidate this with\n// `didScheduleRenderPhaseUpdate`. Or with `numberOfReRenders`.\n\nvar didScheduleRenderPhaseUpdateDuringThisPass = false; // Counts the number of useId hooks in this component.\n\nvar localIdCounter = 0; // Used for ids that are generated completely client-side (i.e. not during\n// hydration). This counter is global, so client ids are not stable across\n// render attempts.\n\nvar globalClientIdCounter = 0;\nvar RE_RENDER_LIMIT = 25; // In DEV, this is the name of the currently executing primitive hook\n\nvar currentHookNameInDev = null; // In DEV, this list ensures that hooks are called in the same order between renders.\n// The list stores the order of hooks used during the initial render (mount).\n// Subsequent renders (updates) reference this list.\n\nvar hookTypesDev = null;\nvar hookTypesUpdateIndexDev = -1; // In DEV, this tracks whether currently rendering component needs to ignore\n// the dependencies for Hooks that need them (e.g. useEffect or useMemo).\n// When true, such Hooks will always be \"remounted\". Only used during hot reload.\n\nvar ignorePreviousDependencies = false;\n\nfunction mountHookTypesDev() {\n {\n var hookName = currentHookNameInDev;\n\n if (hookTypesDev === null) {\n hookTypesDev = [hookName];\n } else {\n hookTypesDev.push(hookName);\n }\n }\n}\n\nfunction updateHookTypesDev() {\n {\n var hookName = currentHookNameInDev;\n\n if (hookTypesDev !== null) {\n hookTypesUpdateIndexDev++;\n\n if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {\n warnOnHookMismatchInDev(hookName);\n }\n }\n }\n}\n\nfunction checkDepsAreArrayDev(deps) {\n {\n if (deps !== undefined && deps !== null && !isArray(deps)) {\n // Verify deps, but only on mount to avoid extra checks.\n // It's unlikely their type would change as usually you define them inline.\n error('%s received a final argument that is not an array (instead, received `%s`). When ' + 'specified, the final argument must be an array.', currentHookNameInDev, typeof deps);\n }\n }\n}\n\nfunction warnOnHookMismatchInDev(currentHookName) {\n {\n var componentName = getComponentNameFromFiber(currentlyRenderingFiber$1);\n\n if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) {\n didWarnAboutMismatchedHooksForComponent.add(componentName);\n\n if (hookTypesDev !== null) {\n var table = '';\n var secondColumnStart = 30;\n\n for (var i = 0; i <= hookTypesUpdateIndexDev; i++) {\n var oldHookName = hookTypesDev[i];\n var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName;\n var row = i + 1 + \". \" + oldHookName; // Extra space so second column lines up\n // lol @ IE not supporting String#repeat\n\n while (row.length < secondColumnStart) {\n row += ' ';\n }\n\n row += newHookName + '\\n';\n table += row;\n }\n\n error('React has detected a change in the order of Hooks called by %s. ' + 'This will lead to bugs and errors if not fixed. ' + 'For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\\n\\n' + ' Previous render Next render\\n' + ' ------------------------------------------------------\\n' + '%s' + ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n', componentName, table);\n }\n }\n }\n}\n\nfunction throwInvalidHookError() {\n throw new Error('Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for' + ' one of the following reasons:\\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\\n' + '2. You might be breaking the Rules of Hooks\\n' + '3. You might have more than one copy of React in the same app\\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');\n}\n\nfunction areHookInputsEqual(nextDeps, prevDeps) {\n {\n if (ignorePreviousDependencies) {\n // Only true when this component is being hot reloaded.\n return false;\n }\n }\n\n if (prevDeps === null) {\n {\n error('%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev);\n }\n\n return false;\n }\n\n {\n // Don't bother comparing lengths in prod because these arrays should be\n // passed inline.\n if (nextDeps.length !== prevDeps.length) {\n error('The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\\n\\n' + 'Previous: %s\\n' + 'Incoming: %s', currentHookNameInDev, \"[\" + prevDeps.join(', ') + \"]\", \"[\" + nextDeps.join(', ') + \"]\");\n }\n }\n\n for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {\n if (objectIs(nextDeps[i], prevDeps[i])) {\n continue;\n }\n\n return false;\n }\n\n return true;\n}\n\nfunction renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) {\n renderLanes = nextRenderLanes;\n currentlyRenderingFiber$1 = workInProgress;\n\n {\n hookTypesDev = current !== null ? current._debugHookTypes : null;\n hookTypesUpdateIndexDev = -1; // Used for hot reloading:\n\n ignorePreviousDependencies = current !== null && current.type !== workInProgress.type;\n }\n\n workInProgress.memoizedState = null;\n workInProgress.updateQueue = null;\n workInProgress.lanes = NoLanes; // The following should have already been reset\n // currentHook = null;\n // workInProgressHook = null;\n // didScheduleRenderPhaseUpdate = false;\n // localIdCounter = 0;\n // TODO Warn if no hooks are used at all during mount, then some are used during update.\n // Currently we will identify the update render as a mount because memoizedState === null.\n // This is tricky because it's valid for certain types of components (e.g. React.lazy)\n // Using memoizedState to differentiate between mount/update only works if at least one stateful hook is used.\n // Non-stateful hooks (e.g. context) don't get added to memoizedState,\n // so memoizedState would be null during updates and mounts.\n\n {\n if (current !== null && current.memoizedState !== null) {\n ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;\n } else if (hookTypesDev !== null) {\n // This dispatcher handles an edge case where a component is updating,\n // but no stateful hooks have been used.\n // We want to match the production code behavior (which will use HooksDispatcherOnMount),\n // but with the extra DEV validation to ensure hooks ordering hasn't changed.\n // This dispatcher does that.\n ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV;\n } else {\n ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV;\n }\n }\n\n var children = Component(props, secondArg); // Check if there was a render phase update\n\n if (didScheduleRenderPhaseUpdateDuringThisPass) {\n // Keep rendering in a loop for as long as render phase updates continue to\n // be scheduled. Use a counter to prevent infinite loops.\n var numberOfReRenders = 0;\n\n do {\n didScheduleRenderPhaseUpdateDuringThisPass = false;\n localIdCounter = 0;\n\n if (numberOfReRenders >= RE_RENDER_LIMIT) {\n throw new Error('Too many re-renders. React limits the number of renders to prevent ' + 'an infinite loop.');\n }\n\n numberOfReRenders += 1;\n\n {\n // Even when hot reloading, allow dependencies to stabilize\n // after first render to prevent infinite render phase updates.\n ignorePreviousDependencies = false;\n } // Start over from the beginning of the list\n\n\n currentHook = null;\n workInProgressHook = null;\n workInProgress.updateQueue = null;\n\n {\n // Also validate hook order for cascading updates.\n hookTypesUpdateIndexDev = -1;\n }\n\n ReactCurrentDispatcher$1.current = HooksDispatcherOnRerenderInDEV ;\n children = Component(props, secondArg);\n } while (didScheduleRenderPhaseUpdateDuringThisPass);\n } // We can assume the previous dispatcher is always this one, since we set it\n // at the beginning of the render phase and there's no re-entrance.\n\n\n ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;\n\n {\n workInProgress._debugHookTypes = hookTypesDev;\n } // This check uses currentHook so that it works the same in DEV and prod bundles.\n // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.\n\n\n var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;\n renderLanes = NoLanes;\n currentlyRenderingFiber$1 = null;\n currentHook = null;\n workInProgressHook = null;\n\n {\n currentHookNameInDev = null;\n hookTypesDev = null;\n hookTypesUpdateIndexDev = -1; // Confirm that a static flag was not added or removed since the last\n // render. If this fires, it suggests that we incorrectly reset the static\n // flags in some other part of the codebase. This has happened before, for\n // example, in the SuspenseList implementation.\n\n if (current !== null && (current.flags & StaticMask) !== (workInProgress.flags & StaticMask) && // Disable this warning in legacy mode, because legacy Suspense is weird\n // and creates false positives. To make this work in legacy mode, we'd\n // need to mark fibers that commit in an incomplete state, somehow. For\n // now I'll disable the warning that most of the bugs that would trigger\n // it are either exclusive to concurrent mode or exist in both.\n (current.mode & ConcurrentMode) !== NoMode) {\n error('Internal React error: Expected static flag was missing. Please ' + 'notify the React team.');\n }\n }\n\n didScheduleRenderPhaseUpdate = false; // This is reset by checkDidRenderIdHook\n // localIdCounter = 0;\n\n if (didRenderTooFewHooks) {\n throw new Error('Rendered fewer hooks than expected. This may be caused by an accidental ' + 'early return statement.');\n }\n\n return children;\n}\nfunction checkDidRenderIdHook() {\n // This should be called immediately after every renderWithHooks call.\n // Conceptually, it's part of the return value of renderWithHooks; it's only a\n // separate function to avoid using an array tuple.\n var didRenderIdHook = localIdCounter !== 0;\n localIdCounter = 0;\n return didRenderIdHook;\n}\nfunction bailoutHooks(current, workInProgress, lanes) {\n workInProgress.updateQueue = current.updateQueue; // TODO: Don't need to reset the flags here, because they're reset in the\n // complete phase (bubbleProperties).\n\n if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {\n workInProgress.flags &= ~(MountPassiveDev | MountLayoutDev | Passive | Update);\n } else {\n workInProgress.flags &= ~(Passive | Update);\n }\n\n current.lanes = removeLanes(current.lanes, lanes);\n}\nfunction resetHooksAfterThrow() {\n // We can assume the previous dispatcher is always this one, since we set it\n // at the beginning of the render phase and there's no re-entrance.\n ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;\n\n if (didScheduleRenderPhaseUpdate) {\n // There were render phase updates. These are only valid for this render\n // phase, which we are now aborting. Remove the updates from the queues so\n // they do not persist to the next render. Do not remove updates from hooks\n // that weren't processed.\n //\n // Only reset the updates from the queue if it has a clone. If it does\n // not have a clone, that means it wasn't processed, and the updates were\n // scheduled before we entered the render phase.\n var hook = currentlyRenderingFiber$1.memoizedState;\n\n while (hook !== null) {\n var queue = hook.queue;\n\n if (queue !== null) {\n queue.pending = null;\n }\n\n hook = hook.next;\n }\n\n didScheduleRenderPhaseUpdate = false;\n }\n\n renderLanes = NoLanes;\n currentlyRenderingFiber$1 = null;\n currentHook = null;\n workInProgressHook = null;\n\n {\n hookTypesDev = null;\n hookTypesUpdateIndexDev = -1;\n currentHookNameInDev = null;\n isUpdatingOpaqueValueInRenderPhase = false;\n }\n\n didScheduleRenderPhaseUpdateDuringThisPass = false;\n localIdCounter = 0;\n}\n\nfunction mountWorkInProgressHook() {\n var hook = {\n memoizedState: null,\n baseState: null,\n baseQueue: null,\n queue: null,\n next: null\n };\n\n if (workInProgressHook === null) {\n // This is the first hook in the list\n currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook;\n } else {\n // Append to the end of the list\n workInProgressHook = workInProgressHook.next = hook;\n }\n\n return workInProgressHook;\n}\n\nfunction updateWorkInProgressHook() {\n // This function is used both for updates and for re-renders triggered by a\n // render phase update. It assumes there is either a current hook we can\n // clone, or a work-in-progress hook from a previous render pass that we can\n // use as a base. When we reach the end of the base list, we must switch to\n // the dispatcher used for mounts.\n var nextCurrentHook;\n\n if (currentHook === null) {\n var current = currentlyRenderingFiber$1.alternate;\n\n if (current !== null) {\n nextCurrentHook = current.memoizedState;\n } else {\n nextCurrentHook = null;\n }\n } else {\n nextCurrentHook = currentHook.next;\n }\n\n var nextWorkInProgressHook;\n\n if (workInProgressHook === null) {\n nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState;\n } else {\n nextWorkInProgressHook = workInProgressHook.next;\n }\n\n if (nextWorkInProgressHook !== null) {\n // There's already a work-in-progress. Reuse it.\n workInProgressHook = nextWorkInProgressHook;\n nextWorkInProgressHook = workInProgressHook.next;\n currentHook = nextCurrentHook;\n } else {\n // Clone from the current hook.\n if (nextCurrentHook === null) {\n throw new Error('Rendered more hooks than during the previous render.');\n }\n\n currentHook = nextCurrentHook;\n var newHook = {\n memoizedState: currentHook.memoizedState,\n baseState: currentHook.baseState,\n baseQueue: currentHook.baseQueue,\n queue: currentHook.queue,\n next: null\n };\n\n if (workInProgressHook === null) {\n // This is the first hook in the list.\n currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook;\n } else {\n // Append to the end of the list.\n workInProgressHook = workInProgressHook.next = newHook;\n }\n }\n\n return workInProgressHook;\n}\n\nfunction createFunctionComponentUpdateQueue() {\n return {\n lastEffect: null,\n stores: null\n };\n}\n\nfunction basicStateReducer(state, action) {\n // $FlowFixMe: Flow doesn't like mixed types\n return typeof action === 'function' ? action(state) : action;\n}\n\nfunction mountReducer(reducer, initialArg, init) {\n var hook = mountWorkInProgressHook();\n var initialState;\n\n if (init !== undefined) {\n initialState = init(initialArg);\n } else {\n initialState = initialArg;\n }\n\n hook.memoizedState = hook.baseState = initialState;\n var queue = {\n pending: null,\n interleaved: null,\n lanes: NoLanes,\n dispatch: null,\n lastRenderedReducer: reducer,\n lastRenderedState: initialState\n };\n hook.queue = queue;\n var dispatch = queue.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber$1, queue);\n return [hook.memoizedState, dispatch];\n}\n\nfunction updateReducer(reducer, initialArg, init) {\n var hook = updateWorkInProgressHook();\n var queue = hook.queue;\n\n if (queue === null) {\n throw new Error('Should have a queue. This is likely a bug in React. Please file an issue.');\n }\n\n queue.lastRenderedReducer = reducer;\n var current = currentHook; // The last rebase update that is NOT part of the base state.\n\n var baseQueue = current.baseQueue; // The last pending update that hasn't been processed yet.\n\n var pendingQueue = queue.pending;\n\n if (pendingQueue !== null) {\n // We have new updates that haven't been processed yet.\n // We'll add them to the base queue.\n if (baseQueue !== null) {\n // Merge the pending queue and the base queue.\n var baseFirst = baseQueue.next;\n var pendingFirst = pendingQueue.next;\n baseQueue.next = pendingFirst;\n pendingQueue.next = baseFirst;\n }\n\n {\n if (current.baseQueue !== baseQueue) {\n // Internal invariant that should never happen, but feasibly could in\n // the future if we implement resuming, or some form of that.\n error('Internal error: Expected work-in-progress queue to be a clone. ' + 'This is a bug in React.');\n }\n }\n\n current.baseQueue = baseQueue = pendingQueue;\n queue.pending = null;\n }\n\n if (baseQueue !== null) {\n // We have a queue to process.\n var first = baseQueue.next;\n var newState = current.baseState;\n var newBaseState = null;\n var newBaseQueueFirst = null;\n var newBaseQueueLast = null;\n var update = first;\n\n do {\n var updateLane = update.lane;\n\n if (!isSubsetOfLanes(renderLanes, updateLane)) {\n // Priority is insufficient. Skip this update. If this is the first\n // skipped update, the previous update/state is the new base\n // update/state.\n var clone = {\n lane: updateLane,\n action: update.action,\n hasEagerState: update.hasEagerState,\n eagerState: update.eagerState,\n next: null\n };\n\n if (newBaseQueueLast === null) {\n newBaseQueueFirst = newBaseQueueLast = clone;\n newBaseState = newState;\n } else {\n newBaseQueueLast = newBaseQueueLast.next = clone;\n } // Update the remaining priority in the queue.\n // TODO: Don't need to accumulate this. Instead, we can remove\n // renderLanes from the original lanes.\n\n\n currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, updateLane);\n markSkippedUpdateLanes(updateLane);\n } else {\n // This update does have sufficient priority.\n if (newBaseQueueLast !== null) {\n var _clone = {\n // This update is going to be committed so we never want uncommit\n // it. Using NoLane works because 0 is a subset of all bitmasks, so\n // this will never be skipped by the check above.\n lane: NoLane,\n action: update.action,\n hasEagerState: update.hasEagerState,\n eagerState: update.eagerState,\n next: null\n };\n newBaseQueueLast = newBaseQueueLast.next = _clone;\n } // Process this update.\n\n\n if (update.hasEagerState) {\n // If this update is a state update (not a reducer) and was processed eagerly,\n // we can use the eagerly computed state\n newState = update.eagerState;\n } else {\n var action = update.action;\n newState = reducer(newState, action);\n }\n }\n\n update = update.next;\n } while (update !== null && update !== first);\n\n if (newBaseQueueLast === null) {\n newBaseState = newState;\n } else {\n newBaseQueueLast.next = newBaseQueueFirst;\n } // Mark that the fiber performed work, but only if the new state is\n // different from the current state.\n\n\n if (!objectIs(newState, hook.memoizedState)) {\n markWorkInProgressReceivedUpdate();\n }\n\n hook.memoizedState = newState;\n hook.baseState = newBaseState;\n hook.baseQueue = newBaseQueueLast;\n queue.lastRenderedState = newState;\n } // Interleaved updates are stored on a separate queue. We aren't going to\n // process them during this render, but we do need to track which lanes\n // are remaining.\n\n\n var lastInterleaved = queue.interleaved;\n\n if (lastInterleaved !== null) {\n var interleaved = lastInterleaved;\n\n do {\n var interleavedLane = interleaved.lane;\n currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, interleavedLane);\n markSkippedUpdateLanes(interleavedLane);\n interleaved = interleaved.next;\n } while (interleaved !== lastInterleaved);\n } else if (baseQueue === null) {\n // `queue.lanes` is used for entangling transitions. We can set it back to\n // zero once the queue is empty.\n queue.lanes = NoLanes;\n }\n\n var dispatch = queue.dispatch;\n return [hook.memoizedState, dispatch];\n}\n\nfunction rerenderReducer(reducer, initialArg, init) {\n var hook = updateWorkInProgressHook();\n var queue = hook.queue;\n\n if (queue === null) {\n throw new Error('Should have a queue. This is likely a bug in React. Please file an issue.');\n }\n\n queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous\n // work-in-progress hook.\n\n var dispatch = queue.dispatch;\n var lastRenderPhaseUpdate = queue.pending;\n var newState = hook.memoizedState;\n\n if (lastRenderPhaseUpdate !== null) {\n // The queue doesn't persist past this render pass.\n queue.pending = null;\n var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next;\n var update = firstRenderPhaseUpdate;\n\n do {\n // Process this render phase update. We don't have to check the\n // priority because it will always be the same as the current\n // render's.\n var action = update.action;\n newState = reducer(newState, action);\n update = update.next;\n } while (update !== firstRenderPhaseUpdate); // Mark that the fiber performed work, but only if the new state is\n // different from the current state.\n\n\n if (!objectIs(newState, hook.memoizedState)) {\n markWorkInProgressReceivedUpdate();\n }\n\n hook.memoizedState = newState; // Don't persist the state accumulated from the render phase updates to\n // the base state unless the queue is empty.\n // TODO: Not sure if this is the desired semantics, but it's what we\n // do for gDSFP. I can't remember why.\n\n if (hook.baseQueue === null) {\n hook.baseState = newState;\n }\n\n queue.lastRenderedState = newState;\n }\n\n return [newState, dispatch];\n}\n\nfunction mountMutableSource(source, getSnapshot, subscribe) {\n {\n return undefined;\n }\n}\n\nfunction updateMutableSource(source, getSnapshot, subscribe) {\n {\n return undefined;\n }\n}\n\nfunction mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {\n var fiber = currentlyRenderingFiber$1;\n var hook = mountWorkInProgressHook();\n var nextSnapshot;\n var isHydrating = getIsHydrating();\n\n if (isHydrating) {\n if (getServerSnapshot === undefined) {\n throw new Error('Missing getServerSnapshot, which is required for ' + 'server-rendered content. Will revert to client rendering.');\n }\n\n nextSnapshot = getServerSnapshot();\n\n {\n if (!didWarnUncachedGetSnapshot) {\n if (nextSnapshot !== getServerSnapshot()) {\n error('The result of getServerSnapshot should be cached to avoid an infinite loop');\n\n didWarnUncachedGetSnapshot = true;\n }\n }\n }\n } else {\n nextSnapshot = getSnapshot();\n\n {\n if (!didWarnUncachedGetSnapshot) {\n var cachedSnapshot = getSnapshot();\n\n if (!objectIs(nextSnapshot, cachedSnapshot)) {\n error('The result of getSnapshot should be cached to avoid an infinite loop');\n\n didWarnUncachedGetSnapshot = true;\n }\n }\n } // Unless we're rendering a blocking lane, schedule a consistency check.\n // Right before committing, we will walk the tree and check if any of the\n // stores were mutated.\n //\n // We won't do this if we're hydrating server-rendered content, because if\n // the content is stale, it's already visible anyway. Instead we'll patch\n // it up in a passive effect.\n\n\n var root = getWorkInProgressRoot();\n\n if (root === null) {\n throw new Error('Expected a work-in-progress root. This is a bug in React. Please file an issue.');\n }\n\n if (!includesBlockingLane(root, renderLanes)) {\n pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);\n }\n } // Read the current snapshot from the store on every render. This breaks the\n // normal rules of React, and only works because store updates are\n // always synchronous.\n\n\n hook.memoizedState = nextSnapshot;\n var inst = {\n value: nextSnapshot,\n getSnapshot: getSnapshot\n };\n hook.queue = inst; // Schedule an effect to subscribe to the store.\n\n mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); // Schedule an effect to update the mutable instance fields. We will update\n // this whenever subscribe, getSnapshot, or value changes. Because there's no\n // clean-up function, and we track the deps correctly, we can call pushEffect\n // directly, without storing any additional state. For the same reason, we\n // don't need to set a static flag, either.\n // TODO: We can move this to the passive phase once we add a pre-commit\n // consistency check. See the next comment.\n\n fiber.flags |= Passive;\n pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null);\n return nextSnapshot;\n}\n\nfunction updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {\n var fiber = currentlyRenderingFiber$1;\n var hook = updateWorkInProgressHook(); // Read the current snapshot from the store on every render. This breaks the\n // normal rules of React, and only works because store updates are\n // always synchronous.\n\n var nextSnapshot = getSnapshot();\n\n {\n if (!didWarnUncachedGetSnapshot) {\n var cachedSnapshot = getSnapshot();\n\n if (!objectIs(nextSnapshot, cachedSnapshot)) {\n error('The result of getSnapshot should be cached to avoid an infinite loop');\n\n didWarnUncachedGetSnapshot = true;\n }\n }\n }\n\n var prevSnapshot = hook.memoizedState;\n var snapshotChanged = !objectIs(prevSnapshot, nextSnapshot);\n\n if (snapshotChanged) {\n hook.memoizedState = nextSnapshot;\n markWorkInProgressReceivedUpdate();\n }\n\n var inst = hook.queue;\n updateEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); // Whenever getSnapshot or subscribe changes, we need to check in the\n // commit phase if there was an interleaved mutation. In concurrent mode\n // this can happen all the time, but even in synchronous mode, an earlier\n // effect may have mutated the store.\n\n if (inst.getSnapshot !== getSnapshot || snapshotChanged || // Check if the susbcribe function changed. We can save some memory by\n // checking whether we scheduled a subscription effect above.\n workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) {\n fiber.flags |= Passive;\n pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null); // Unless we're rendering a blocking lane, schedule a consistency check.\n // Right before committing, we will walk the tree and check if any of the\n // stores were mutated.\n\n var root = getWorkInProgressRoot();\n\n if (root === null) {\n throw new Error('Expected a work-in-progress root. This is a bug in React. Please file an issue.');\n }\n\n if (!includesBlockingLane(root, renderLanes)) {\n pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);\n }\n }\n\n return nextSnapshot;\n}\n\nfunction pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {\n fiber.flags |= StoreConsistency;\n var check = {\n getSnapshot: getSnapshot,\n value: renderedSnapshot\n };\n var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue;\n\n if (componentUpdateQueue === null) {\n componentUpdateQueue = createFunctionComponentUpdateQueue();\n currentlyRenderingFiber$1.updateQueue = componentUpdateQueue;\n componentUpdateQueue.stores = [check];\n } else {\n var stores = componentUpdateQueue.stores;\n\n if (stores === null) {\n componentUpdateQueue.stores = [check];\n } else {\n stores.push(check);\n }\n }\n}\n\nfunction updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {\n // These are updated in the passive phase\n inst.value = nextSnapshot;\n inst.getSnapshot = getSnapshot; // Something may have been mutated in between render and commit. This could\n // have been in an event that fired before the passive effects, or it could\n // have been in a layout effect. In that case, we would have used the old\n // snapsho and getSnapshot values to bail out. We need to check one more time.\n\n if (checkIfSnapshotChanged(inst)) {\n // Force a re-render.\n forceStoreRerender(fiber);\n }\n}\n\nfunction subscribeToStore(fiber, inst, subscribe) {\n var handleStoreChange = function () {\n // The store changed. Check if the snapshot changed since the last time we\n // read from the store.\n if (checkIfSnapshotChanged(inst)) {\n // Force a re-render.\n forceStoreRerender(fiber);\n }\n }; // Subscribe to the store and return a clean-up function.\n\n\n return subscribe(handleStoreChange);\n}\n\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n var prevValue = inst.value;\n\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(prevValue, nextValue);\n } catch (error) {\n return true;\n }\n}\n\nfunction forceStoreRerender(fiber) {\n var root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n if (root !== null) {\n scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);\n }\n}\n\nfunction mountState(initialState) {\n var hook = mountWorkInProgressHook();\n\n if (typeof initialState === 'function') {\n // $FlowFixMe: Flow doesn't like mixed types\n initialState = initialState();\n }\n\n hook.memoizedState = hook.baseState = initialState;\n var queue = {\n pending: null,\n interleaved: null,\n lanes: NoLanes,\n dispatch: null,\n lastRenderedReducer: basicStateReducer,\n lastRenderedState: initialState\n };\n hook.queue = queue;\n var dispatch = queue.dispatch = dispatchSetState.bind(null, currentlyRenderingFiber$1, queue);\n return [hook.memoizedState, dispatch];\n}\n\nfunction updateState(initialState) {\n return updateReducer(basicStateReducer);\n}\n\nfunction rerenderState(initialState) {\n return rerenderReducer(basicStateReducer);\n}\n\nfunction pushEffect(tag, create, destroy, deps) {\n var effect = {\n tag: tag,\n create: create,\n destroy: destroy,\n deps: deps,\n // Circular\n next: null\n };\n var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue;\n\n if (componentUpdateQueue === null) {\n componentUpdateQueue = createFunctionComponentUpdateQueue();\n currentlyRenderingFiber$1.updateQueue = componentUpdateQueue;\n componentUpdateQueue.lastEffect = effect.next = effect;\n } else {\n var lastEffect = componentUpdateQueue.lastEffect;\n\n if (lastEffect === null) {\n componentUpdateQueue.lastEffect = effect.next = effect;\n } else {\n var firstEffect = lastEffect.next;\n lastEffect.next = effect;\n effect.next = firstEffect;\n componentUpdateQueue.lastEffect = effect;\n }\n }\n\n return effect;\n}\n\nfunction mountRef(initialValue) {\n var hook = mountWorkInProgressHook();\n\n {\n var _ref2 = {\n current: initialValue\n };\n hook.memoizedState = _ref2;\n return _ref2;\n }\n}\n\nfunction updateRef(initialValue) {\n var hook = updateWorkInProgressHook();\n return hook.memoizedState;\n}\n\nfunction mountEffectImpl(fiberFlags, hookFlags, create, deps) {\n var hook = mountWorkInProgressHook();\n var nextDeps = deps === undefined ? null : deps;\n currentlyRenderingFiber$1.flags |= fiberFlags;\n hook.memoizedState = pushEffect(HasEffect | hookFlags, create, undefined, nextDeps);\n}\n\nfunction updateEffectImpl(fiberFlags, hookFlags, create, deps) {\n var hook = updateWorkInProgressHook();\n var nextDeps = deps === undefined ? null : deps;\n var destroy = undefined;\n\n if (currentHook !== null) {\n var prevEffect = currentHook.memoizedState;\n destroy = prevEffect.destroy;\n\n if (nextDeps !== null) {\n var prevDeps = prevEffect.deps;\n\n if (areHookInputsEqual(nextDeps, prevDeps)) {\n hook.memoizedState = pushEffect(hookFlags, create, destroy, nextDeps);\n return;\n }\n }\n }\n\n currentlyRenderingFiber$1.flags |= fiberFlags;\n hook.memoizedState = pushEffect(HasEffect | hookFlags, create, destroy, nextDeps);\n}\n\nfunction mountEffect(create, deps) {\n if ( (currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) {\n return mountEffectImpl(MountPassiveDev | Passive | PassiveStatic, Passive$1, create, deps);\n } else {\n return mountEffectImpl(Passive | PassiveStatic, Passive$1, create, deps);\n }\n}\n\nfunction updateEffect(create, deps) {\n return updateEffectImpl(Passive, Passive$1, create, deps);\n}\n\nfunction mountInsertionEffect(create, deps) {\n return mountEffectImpl(Update, Insertion, create, deps);\n}\n\nfunction updateInsertionEffect(create, deps) {\n return updateEffectImpl(Update, Insertion, create, deps);\n}\n\nfunction mountLayoutEffect(create, deps) {\n var fiberFlags = Update;\n\n {\n fiberFlags |= LayoutStatic;\n }\n\n if ( (currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) {\n fiberFlags |= MountLayoutDev;\n }\n\n return mountEffectImpl(fiberFlags, Layout, create, deps);\n}\n\nfunction updateLayoutEffect(create, deps) {\n return updateEffectImpl(Update, Layout, create, deps);\n}\n\nfunction imperativeHandleEffect(create, ref) {\n if (typeof ref === 'function') {\n var refCallback = ref;\n\n var _inst = create();\n\n refCallback(_inst);\n return function () {\n refCallback(null);\n };\n } else if (ref !== null && ref !== undefined) {\n var refObject = ref;\n\n {\n if (!refObject.hasOwnProperty('current')) {\n error('Expected useImperativeHandle() first argument to either be a ' + 'ref callback or React.createRef() object. Instead received: %s.', 'an object with keys {' + Object.keys(refObject).join(', ') + '}');\n }\n }\n\n var _inst2 = create();\n\n refObject.current = _inst2;\n return function () {\n refObject.current = null;\n };\n }\n}\n\nfunction mountImperativeHandle(ref, create, deps) {\n {\n if (typeof create !== 'function') {\n error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');\n }\n } // TODO: If deps are provided, should we skip comparing the ref itself?\n\n\n var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;\n var fiberFlags = Update;\n\n {\n fiberFlags |= LayoutStatic;\n }\n\n if ( (currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) {\n fiberFlags |= MountLayoutDev;\n }\n\n return mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);\n}\n\nfunction updateImperativeHandle(ref, create, deps) {\n {\n if (typeof create !== 'function') {\n error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');\n }\n } // TODO: If deps are provided, should we skip comparing the ref itself?\n\n\n var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;\n return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);\n}\n\nfunction mountDebugValue(value, formatterFn) {// This hook is normally a no-op.\n // The react-debug-hooks package injects its own implementation\n // so that e.g. DevTools can display custom hook values.\n}\n\nvar updateDebugValue = mountDebugValue;\n\nfunction mountCallback(callback, deps) {\n var hook = mountWorkInProgressHook();\n var nextDeps = deps === undefined ? null : deps;\n hook.memoizedState = [callback, nextDeps];\n return callback;\n}\n\nfunction updateCallback(callback, deps) {\n var hook = updateWorkInProgressHook();\n var nextDeps = deps === undefined ? null : deps;\n var prevState = hook.memoizedState;\n\n if (prevState !== null) {\n if (nextDeps !== null) {\n var prevDeps = prevState[1];\n\n if (areHookInputsEqual(nextDeps, prevDeps)) {\n return prevState[0];\n }\n }\n }\n\n hook.memoizedState = [callback, nextDeps];\n return callback;\n}\n\nfunction mountMemo(nextCreate, deps) {\n var hook = mountWorkInProgressHook();\n var nextDeps = deps === undefined ? null : deps;\n var nextValue = nextCreate();\n hook.memoizedState = [nextValue, nextDeps];\n return nextValue;\n}\n\nfunction updateMemo(nextCreate, deps) {\n var hook = updateWorkInProgressHook();\n var nextDeps = deps === undefined ? null : deps;\n var prevState = hook.memoizedState;\n\n if (prevState !== null) {\n // Assume these are defined. If they're not, areHookInputsEqual will warn.\n if (nextDeps !== null) {\n var prevDeps = prevState[1];\n\n if (areHookInputsEqual(nextDeps, prevDeps)) {\n return prevState[0];\n }\n }\n }\n\n var nextValue = nextCreate();\n hook.memoizedState = [nextValue, nextDeps];\n return nextValue;\n}\n\nfunction mountDeferredValue(value) {\n var hook = mountWorkInProgressHook();\n hook.memoizedState = value;\n return value;\n}\n\nfunction updateDeferredValue(value) {\n var hook = updateWorkInProgressHook();\n var resolvedCurrentHook = currentHook;\n var prevValue = resolvedCurrentHook.memoizedState;\n return updateDeferredValueImpl(hook, prevValue, value);\n}\n\nfunction rerenderDeferredValue(value) {\n var hook = updateWorkInProgressHook();\n\n if (currentHook === null) {\n // This is a rerender during a mount.\n hook.memoizedState = value;\n return value;\n } else {\n // This is a rerender during an update.\n var prevValue = currentHook.memoizedState;\n return updateDeferredValueImpl(hook, prevValue, value);\n }\n}\n\nfunction updateDeferredValueImpl(hook, prevValue, value) {\n var shouldDeferValue = !includesOnlyNonUrgentLanes(renderLanes);\n\n if (shouldDeferValue) {\n // This is an urgent update. If the value has changed, keep using the\n // previous value and spawn a deferred render to update it later.\n if (!objectIs(value, prevValue)) {\n // Schedule a deferred render\n var deferredLane = claimNextTransitionLane();\n currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, deferredLane);\n markSkippedUpdateLanes(deferredLane); // Set this to true to indicate that the rendered value is inconsistent\n // from the latest value. The name \"baseState\" doesn't really match how we\n // use it because we're reusing a state hook field instead of creating a\n // new one.\n\n hook.baseState = true;\n } // Reuse the previous value\n\n\n return prevValue;\n } else {\n // This is not an urgent update, so we can use the latest value regardless\n // of what it is. No need to defer it.\n // However, if we're currently inside a spawned render, then we need to mark\n // this as an update to prevent the fiber from bailing out.\n //\n // `baseState` is true when the current value is different from the rendered\n // value. The name doesn't really match how we use it because we're reusing\n // a state hook field instead of creating a new one.\n if (hook.baseState) {\n // Flip this back to false.\n hook.baseState = false;\n markWorkInProgressReceivedUpdate();\n }\n\n hook.memoizedState = value;\n return value;\n }\n}\n\nfunction startTransition(setPending, callback, options) {\n var previousPriority = getCurrentUpdatePriority();\n setCurrentUpdatePriority(higherEventPriority(previousPriority, ContinuousEventPriority));\n setPending(true);\n var prevTransition = ReactCurrentBatchConfig$2.transition;\n ReactCurrentBatchConfig$2.transition = {};\n var currentTransition = ReactCurrentBatchConfig$2.transition;\n\n {\n ReactCurrentBatchConfig$2.transition._updatedFibers = new Set();\n }\n\n try {\n setPending(false);\n callback();\n } finally {\n setCurrentUpdatePriority(previousPriority);\n ReactCurrentBatchConfig$2.transition = prevTransition;\n\n {\n if (prevTransition === null && currentTransition._updatedFibers) {\n var updatedFibersCount = currentTransition._updatedFibers.size;\n\n if (updatedFibersCount > 10) {\n warn('Detected a large number of updates inside startTransition. ' + 'If this is due to a subscription please re-write it to use React provided hooks. ' + 'Otherwise concurrent mode guarantees are off the table.');\n }\n\n currentTransition._updatedFibers.clear();\n }\n }\n }\n}\n\nfunction mountTransition() {\n var _mountState = mountState(false),\n isPending = _mountState[0],\n setPending = _mountState[1]; // The `start` method never changes.\n\n\n var start = startTransition.bind(null, setPending);\n var hook = mountWorkInProgressHook();\n hook.memoizedState = start;\n return [isPending, start];\n}\n\nfunction updateTransition() {\n var _updateState = updateState(),\n isPending = _updateState[0];\n\n var hook = updateWorkInProgressHook();\n var start = hook.memoizedState;\n return [isPending, start];\n}\n\nfunction rerenderTransition() {\n var _rerenderState = rerenderState(),\n isPending = _rerenderState[0];\n\n var hook = updateWorkInProgressHook();\n var start = hook.memoizedState;\n return [isPending, start];\n}\n\nvar isUpdatingOpaqueValueInRenderPhase = false;\nfunction getIsUpdatingOpaqueValueInRenderPhaseInDEV() {\n {\n return isUpdatingOpaqueValueInRenderPhase;\n }\n}\n\nfunction mountId() {\n var hook = mountWorkInProgressHook();\n var root = getWorkInProgressRoot(); // TODO: In Fizz, id generation is specific to each server config. Maybe we\n // should do this in Fiber, too? Deferring this decision for now because\n // there's no other place to store the prefix except for an internal field on\n // the public createRoot object, which the fiber tree does not currently have\n // a reference to.\n\n var identifierPrefix = root.identifierPrefix;\n var id;\n\n if (getIsHydrating()) {\n var treeId = getTreeId(); // Use a captial R prefix for server-generated ids.\n\n id = ':' + identifierPrefix + 'R' + treeId; // Unless this is the first id at this level, append a number at the end\n // that represents the position of this useId hook among all the useId\n // hooks for this fiber.\n\n var localId = localIdCounter++;\n\n if (localId > 0) {\n id += 'H' + localId.toString(32);\n }\n\n id += ':';\n } else {\n // Use a lowercase r prefix for client-generated ids.\n var globalClientId = globalClientIdCounter++;\n id = ':' + identifierPrefix + 'r' + globalClientId.toString(32) + ':';\n }\n\n hook.memoizedState = id;\n return id;\n}\n\nfunction updateId() {\n var hook = updateWorkInProgressHook();\n var id = hook.memoizedState;\n return id;\n}\n\nfunction dispatchReducerAction(fiber, queue, action) {\n {\n if (typeof arguments[3] === 'function') {\n error(\"State updates from the useState() and useReducer() Hooks don't support the \" + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().');\n }\n }\n\n var lane = requestUpdateLane(fiber);\n var update = {\n lane: lane,\n action: action,\n hasEagerState: false,\n eagerState: null,\n next: null\n };\n\n if (isRenderPhaseUpdate(fiber)) {\n enqueueRenderPhaseUpdate(queue, update);\n } else {\n var root = enqueueConcurrentHookUpdate(fiber, queue, update, lane);\n\n if (root !== null) {\n var eventTime = requestEventTime();\n scheduleUpdateOnFiber(root, fiber, lane, eventTime);\n entangleTransitionUpdate(root, queue, lane);\n }\n }\n\n markUpdateInDevTools(fiber, lane);\n}\n\nfunction dispatchSetState(fiber, queue, action) {\n {\n if (typeof arguments[3] === 'function') {\n error(\"State updates from the useState() and useReducer() Hooks don't support the \" + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().');\n }\n }\n\n var lane = requestUpdateLane(fiber);\n var update = {\n lane: lane,\n action: action,\n hasEagerState: false,\n eagerState: null,\n next: null\n };\n\n if (isRenderPhaseUpdate(fiber)) {\n enqueueRenderPhaseUpdate(queue, update);\n } else {\n var alternate = fiber.alternate;\n\n if (fiber.lanes === NoLanes && (alternate === null || alternate.lanes === NoLanes)) {\n // The queue is currently empty, which means we can eagerly compute the\n // next state before entering the render phase. If the new state is the\n // same as the current state, we may be able to bail out entirely.\n var lastRenderedReducer = queue.lastRenderedReducer;\n\n if (lastRenderedReducer !== null) {\n var prevDispatcher;\n\n {\n prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n }\n\n try {\n var currentState = queue.lastRenderedState;\n var eagerState = lastRenderedReducer(currentState, action); // Stash the eagerly computed state, and the reducer used to compute\n // it, on the update object. If the reducer hasn't changed by the\n // time we enter the render phase, then the eager state can be used\n // without calling the reducer again.\n\n update.hasEagerState = true;\n update.eagerState = eagerState;\n\n if (objectIs(eagerState, currentState)) {\n // Fast path. We can bail out without scheduling React to re-render.\n // It's still possible that we'll need to rebase this update later,\n // if the component re-renders for a different reason and by that\n // time the reducer has changed.\n // TODO: Do we still need to entangle transitions in this case?\n enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update, lane);\n return;\n }\n } catch (error) {// Suppress the error. It will throw again in the render phase.\n } finally {\n {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n }\n }\n }\n\n var root = enqueueConcurrentHookUpdate(fiber, queue, update, lane);\n\n if (root !== null) {\n var eventTime = requestEventTime();\n scheduleUpdateOnFiber(root, fiber, lane, eventTime);\n entangleTransitionUpdate(root, queue, lane);\n }\n }\n\n markUpdateInDevTools(fiber, lane);\n}\n\nfunction isRenderPhaseUpdate(fiber) {\n var alternate = fiber.alternate;\n return fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1;\n}\n\nfunction enqueueRenderPhaseUpdate(queue, update) {\n // This is a render phase update. Stash it in a lazily-created map of\n // queue -> linked list of updates. After this render pass, we'll restart\n // and apply the stashed updates on top of the work-in-progress hook.\n didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true;\n var pending = queue.pending;\n\n if (pending === null) {\n // This is the first update. Create a circular list.\n update.next = update;\n } else {\n update.next = pending.next;\n pending.next = update;\n }\n\n queue.pending = update;\n} // TODO: Move to ReactFiberConcurrentUpdates?\n\n\nfunction entangleTransitionUpdate(root, queue, lane) {\n if (isTransitionLane(lane)) {\n var queueLanes = queue.lanes; // If any entangled lanes are no longer pending on the root, then they\n // must have finished. We can remove them from the shared queue, which\n // represents a superset of the actually pending lanes. In some cases we\n // may entangle more than we need to, but that's OK. In fact it's worse if\n // we *don't* entangle when we should.\n\n queueLanes = intersectLanes(queueLanes, root.pendingLanes); // Entangle the new transition lane with the other transition lanes.\n\n var newQueueLanes = mergeLanes(queueLanes, lane);\n queue.lanes = newQueueLanes; // Even if queue.lanes already include lane, we don't know for certain if\n // the lane finished since the last time we entangled it. So we need to\n // entangle it again, just to be sure.\n\n markRootEntangled(root, newQueueLanes);\n }\n}\n\nfunction markUpdateInDevTools(fiber, lane, action) {\n\n {\n markStateUpdateScheduled(fiber, lane);\n }\n}\n\nvar ContextOnlyDispatcher = {\n readContext: readContext,\n useCallback: throwInvalidHookError,\n useContext: throwInvalidHookError,\n useEffect: throwInvalidHookError,\n useImperativeHandle: throwInvalidHookError,\n useInsertionEffect: throwInvalidHookError,\n useLayoutEffect: throwInvalidHookError,\n useMemo: throwInvalidHookError,\n useReducer: throwInvalidHookError,\n useRef: throwInvalidHookError,\n useState: throwInvalidHookError,\n useDebugValue: throwInvalidHookError,\n useDeferredValue: throwInvalidHookError,\n useTransition: throwInvalidHookError,\n useMutableSource: throwInvalidHookError,\n useSyncExternalStore: throwInvalidHookError,\n useId: throwInvalidHookError,\n unstable_isNewReconciler: enableNewReconciler\n};\n\nvar HooksDispatcherOnMountInDEV = null;\nvar HooksDispatcherOnMountWithHookTypesInDEV = null;\nvar HooksDispatcherOnUpdateInDEV = null;\nvar HooksDispatcherOnRerenderInDEV = null;\nvar InvalidNestedHooksDispatcherOnMountInDEV = null;\nvar InvalidNestedHooksDispatcherOnUpdateInDEV = null;\nvar InvalidNestedHooksDispatcherOnRerenderInDEV = null;\n\n{\n var warnInvalidContextAccess = function () {\n error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');\n };\n\n var warnInvalidHookAccess = function () {\n error('Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://reactjs.org/link/rules-of-hooks');\n };\n\n HooksDispatcherOnMountInDEV = {\n readContext: function (context) {\n return readContext(context);\n },\n useCallback: function (callback, deps) {\n currentHookNameInDev = 'useCallback';\n mountHookTypesDev();\n checkDepsAreArrayDev(deps);\n return mountCallback(callback, deps);\n },\n useContext: function (context) {\n currentHookNameInDev = 'useContext';\n mountHookTypesDev();\n return readContext(context);\n },\n useEffect: function (create, deps) {\n currentHookNameInDev = 'useEffect';\n mountHookTypesDev();\n checkDepsAreArrayDev(deps);\n return mountEffect(create, deps);\n },\n useImperativeHandle: function (ref, create, deps) {\n currentHookNameInDev = 'useImperativeHandle';\n mountHookTypesDev();\n checkDepsAreArrayDev(deps);\n return mountImperativeHandle(ref, create, deps);\n },\n useInsertionEffect: function (create, deps) {\n currentHookNameInDev = 'useInsertionEffect';\n mountHookTypesDev();\n checkDepsAreArrayDev(deps);\n return mountInsertionEffect(create, deps);\n },\n useLayoutEffect: function (create, deps) {\n currentHookNameInDev = 'useLayoutEffect';\n mountHookTypesDev();\n checkDepsAreArrayDev(deps);\n return mountLayoutEffect(create, deps);\n },\n useMemo: function (create, deps) {\n currentHookNameInDev = 'useMemo';\n mountHookTypesDev();\n checkDepsAreArrayDev(deps);\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n\n try {\n return mountMemo(create, deps);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useReducer: function (reducer, initialArg, init) {\n currentHookNameInDev = 'useReducer';\n mountHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n\n try {\n return mountReducer(reducer, initialArg, init);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useRef: function (initialValue) {\n currentHookNameInDev = 'useRef';\n mountHookTypesDev();\n return mountRef(initialValue);\n },\n useState: function (initialState) {\n currentHookNameInDev = 'useState';\n mountHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n\n try {\n return mountState(initialState);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useDebugValue: function (value, formatterFn) {\n currentHookNameInDev = 'useDebugValue';\n mountHookTypesDev();\n return mountDebugValue();\n },\n useDeferredValue: function (value) {\n currentHookNameInDev = 'useDeferredValue';\n mountHookTypesDev();\n return mountDeferredValue(value);\n },\n useTransition: function () {\n currentHookNameInDev = 'useTransition';\n mountHookTypesDev();\n return mountTransition();\n },\n useMutableSource: function (source, getSnapshot, subscribe) {\n currentHookNameInDev = 'useMutableSource';\n mountHookTypesDev();\n return mountMutableSource();\n },\n useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n currentHookNameInDev = 'useSyncExternalStore';\n mountHookTypesDev();\n return mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n },\n useId: function () {\n currentHookNameInDev = 'useId';\n mountHookTypesDev();\n return mountId();\n },\n unstable_isNewReconciler: enableNewReconciler\n };\n\n HooksDispatcherOnMountWithHookTypesInDEV = {\n readContext: function (context) {\n return readContext(context);\n },\n useCallback: function (callback, deps) {\n currentHookNameInDev = 'useCallback';\n updateHookTypesDev();\n return mountCallback(callback, deps);\n },\n useContext: function (context) {\n currentHookNameInDev = 'useContext';\n updateHookTypesDev();\n return readContext(context);\n },\n useEffect: function (create, deps) {\n currentHookNameInDev = 'useEffect';\n updateHookTypesDev();\n return mountEffect(create, deps);\n },\n useImperativeHandle: function (ref, create, deps) {\n currentHookNameInDev = 'useImperativeHandle';\n updateHookTypesDev();\n return mountImperativeHandle(ref, create, deps);\n },\n useInsertionEffect: function (create, deps) {\n currentHookNameInDev = 'useInsertionEffect';\n updateHookTypesDev();\n return mountInsertionEffect(create, deps);\n },\n useLayoutEffect: function (create, deps) {\n currentHookNameInDev = 'useLayoutEffect';\n updateHookTypesDev();\n return mountLayoutEffect(create, deps);\n },\n useMemo: function (create, deps) {\n currentHookNameInDev = 'useMemo';\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n\n try {\n return mountMemo(create, deps);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useReducer: function (reducer, initialArg, init) {\n currentHookNameInDev = 'useReducer';\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n\n try {\n return mountReducer(reducer, initialArg, init);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useRef: function (initialValue) {\n currentHookNameInDev = 'useRef';\n updateHookTypesDev();\n return mountRef(initialValue);\n },\n useState: function (initialState) {\n currentHookNameInDev = 'useState';\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n\n try {\n return mountState(initialState);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useDebugValue: function (value, formatterFn) {\n currentHookNameInDev = 'useDebugValue';\n updateHookTypesDev();\n return mountDebugValue();\n },\n useDeferredValue: function (value) {\n currentHookNameInDev = 'useDeferredValue';\n updateHookTypesDev();\n return mountDeferredValue(value);\n },\n useTransition: function () {\n currentHookNameInDev = 'useTransition';\n updateHookTypesDev();\n return mountTransition();\n },\n useMutableSource: function (source, getSnapshot, subscribe) {\n currentHookNameInDev = 'useMutableSource';\n updateHookTypesDev();\n return mountMutableSource();\n },\n useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n currentHookNameInDev = 'useSyncExternalStore';\n updateHookTypesDev();\n return mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n },\n useId: function () {\n currentHookNameInDev = 'useId';\n updateHookTypesDev();\n return mountId();\n },\n unstable_isNewReconciler: enableNewReconciler\n };\n\n HooksDispatcherOnUpdateInDEV = {\n readContext: function (context) {\n return readContext(context);\n },\n useCallback: function (callback, deps) {\n currentHookNameInDev = 'useCallback';\n updateHookTypesDev();\n return updateCallback(callback, deps);\n },\n useContext: function (context) {\n currentHookNameInDev = 'useContext';\n updateHookTypesDev();\n return readContext(context);\n },\n useEffect: function (create, deps) {\n currentHookNameInDev = 'useEffect';\n updateHookTypesDev();\n return updateEffect(create, deps);\n },\n useImperativeHandle: function (ref, create, deps) {\n currentHookNameInDev = 'useImperativeHandle';\n updateHookTypesDev();\n return updateImperativeHandle(ref, create, deps);\n },\n useInsertionEffect: function (create, deps) {\n currentHookNameInDev = 'useInsertionEffect';\n updateHookTypesDev();\n return updateInsertionEffect(create, deps);\n },\n useLayoutEffect: function (create, deps) {\n currentHookNameInDev = 'useLayoutEffect';\n updateHookTypesDev();\n return updateLayoutEffect(create, deps);\n },\n useMemo: function (create, deps) {\n currentHookNameInDev = 'useMemo';\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n try {\n return updateMemo(create, deps);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useReducer: function (reducer, initialArg, init) {\n currentHookNameInDev = 'useReducer';\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n try {\n return updateReducer(reducer, initialArg, init);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useRef: function (initialValue) {\n currentHookNameInDev = 'useRef';\n updateHookTypesDev();\n return updateRef();\n },\n useState: function (initialState) {\n currentHookNameInDev = 'useState';\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n try {\n return updateState(initialState);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useDebugValue: function (value, formatterFn) {\n currentHookNameInDev = 'useDebugValue';\n updateHookTypesDev();\n return updateDebugValue();\n },\n useDeferredValue: function (value) {\n currentHookNameInDev = 'useDeferredValue';\n updateHookTypesDev();\n return updateDeferredValue(value);\n },\n useTransition: function () {\n currentHookNameInDev = 'useTransition';\n updateHookTypesDev();\n return updateTransition();\n },\n useMutableSource: function (source, getSnapshot, subscribe) {\n currentHookNameInDev = 'useMutableSource';\n updateHookTypesDev();\n return updateMutableSource();\n },\n useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n currentHookNameInDev = 'useSyncExternalStore';\n updateHookTypesDev();\n return updateSyncExternalStore(subscribe, getSnapshot);\n },\n useId: function () {\n currentHookNameInDev = 'useId';\n updateHookTypesDev();\n return updateId();\n },\n unstable_isNewReconciler: enableNewReconciler\n };\n\n HooksDispatcherOnRerenderInDEV = {\n readContext: function (context) {\n return readContext(context);\n },\n useCallback: function (callback, deps) {\n currentHookNameInDev = 'useCallback';\n updateHookTypesDev();\n return updateCallback(callback, deps);\n },\n useContext: function (context) {\n currentHookNameInDev = 'useContext';\n updateHookTypesDev();\n return readContext(context);\n },\n useEffect: function (create, deps) {\n currentHookNameInDev = 'useEffect';\n updateHookTypesDev();\n return updateEffect(create, deps);\n },\n useImperativeHandle: function (ref, create, deps) {\n currentHookNameInDev = 'useImperativeHandle';\n updateHookTypesDev();\n return updateImperativeHandle(ref, create, deps);\n },\n useInsertionEffect: function (create, deps) {\n currentHookNameInDev = 'useInsertionEffect';\n updateHookTypesDev();\n return updateInsertionEffect(create, deps);\n },\n useLayoutEffect: function (create, deps) {\n currentHookNameInDev = 'useLayoutEffect';\n updateHookTypesDev();\n return updateLayoutEffect(create, deps);\n },\n useMemo: function (create, deps) {\n currentHookNameInDev = 'useMemo';\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;\n\n try {\n return updateMemo(create, deps);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useReducer: function (reducer, initialArg, init) {\n currentHookNameInDev = 'useReducer';\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;\n\n try {\n return rerenderReducer(reducer, initialArg, init);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useRef: function (initialValue) {\n currentHookNameInDev = 'useRef';\n updateHookTypesDev();\n return updateRef();\n },\n useState: function (initialState) {\n currentHookNameInDev = 'useState';\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;\n\n try {\n return rerenderState(initialState);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useDebugValue: function (value, formatterFn) {\n currentHookNameInDev = 'useDebugValue';\n updateHookTypesDev();\n return updateDebugValue();\n },\n useDeferredValue: function (value) {\n currentHookNameInDev = 'useDeferredValue';\n updateHookTypesDev();\n return rerenderDeferredValue(value);\n },\n useTransition: function () {\n currentHookNameInDev = 'useTransition';\n updateHookTypesDev();\n return rerenderTransition();\n },\n useMutableSource: function (source, getSnapshot, subscribe) {\n currentHookNameInDev = 'useMutableSource';\n updateHookTypesDev();\n return updateMutableSource();\n },\n useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n currentHookNameInDev = 'useSyncExternalStore';\n updateHookTypesDev();\n return updateSyncExternalStore(subscribe, getSnapshot);\n },\n useId: function () {\n currentHookNameInDev = 'useId';\n updateHookTypesDev();\n return updateId();\n },\n unstable_isNewReconciler: enableNewReconciler\n };\n\n InvalidNestedHooksDispatcherOnMountInDEV = {\n readContext: function (context) {\n warnInvalidContextAccess();\n return readContext(context);\n },\n useCallback: function (callback, deps) {\n currentHookNameInDev = 'useCallback';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return mountCallback(callback, deps);\n },\n useContext: function (context) {\n currentHookNameInDev = 'useContext';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return readContext(context);\n },\n useEffect: function (create, deps) {\n currentHookNameInDev = 'useEffect';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return mountEffect(create, deps);\n },\n useImperativeHandle: function (ref, create, deps) {\n currentHookNameInDev = 'useImperativeHandle';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return mountImperativeHandle(ref, create, deps);\n },\n useInsertionEffect: function (create, deps) {\n currentHookNameInDev = 'useInsertionEffect';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return mountInsertionEffect(create, deps);\n },\n useLayoutEffect: function (create, deps) {\n currentHookNameInDev = 'useLayoutEffect';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return mountLayoutEffect(create, deps);\n },\n useMemo: function (create, deps) {\n currentHookNameInDev = 'useMemo';\n warnInvalidHookAccess();\n mountHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n\n try {\n return mountMemo(create, deps);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useReducer: function (reducer, initialArg, init) {\n currentHookNameInDev = 'useReducer';\n warnInvalidHookAccess();\n mountHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n\n try {\n return mountReducer(reducer, initialArg, init);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useRef: function (initialValue) {\n currentHookNameInDev = 'useRef';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return mountRef(initialValue);\n },\n useState: function (initialState) {\n currentHookNameInDev = 'useState';\n warnInvalidHookAccess();\n mountHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n\n try {\n return mountState(initialState);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useDebugValue: function (value, formatterFn) {\n currentHookNameInDev = 'useDebugValue';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return mountDebugValue();\n },\n useDeferredValue: function (value) {\n currentHookNameInDev = 'useDeferredValue';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return mountDeferredValue(value);\n },\n useTransition: function () {\n currentHookNameInDev = 'useTransition';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return mountTransition();\n },\n useMutableSource: function (source, getSnapshot, subscribe) {\n currentHookNameInDev = 'useMutableSource';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return mountMutableSource();\n },\n useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n currentHookNameInDev = 'useSyncExternalStore';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n },\n useId: function () {\n currentHookNameInDev = 'useId';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return mountId();\n },\n unstable_isNewReconciler: enableNewReconciler\n };\n\n InvalidNestedHooksDispatcherOnUpdateInDEV = {\n readContext: function (context) {\n warnInvalidContextAccess();\n return readContext(context);\n },\n useCallback: function (callback, deps) {\n currentHookNameInDev = 'useCallback';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateCallback(callback, deps);\n },\n useContext: function (context) {\n currentHookNameInDev = 'useContext';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return readContext(context);\n },\n useEffect: function (create, deps) {\n currentHookNameInDev = 'useEffect';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateEffect(create, deps);\n },\n useImperativeHandle: function (ref, create, deps) {\n currentHookNameInDev = 'useImperativeHandle';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateImperativeHandle(ref, create, deps);\n },\n useInsertionEffect: function (create, deps) {\n currentHookNameInDev = 'useInsertionEffect';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateInsertionEffect(create, deps);\n },\n useLayoutEffect: function (create, deps) {\n currentHookNameInDev = 'useLayoutEffect';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateLayoutEffect(create, deps);\n },\n useMemo: function (create, deps) {\n currentHookNameInDev = 'useMemo';\n warnInvalidHookAccess();\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n try {\n return updateMemo(create, deps);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useReducer: function (reducer, initialArg, init) {\n currentHookNameInDev = 'useReducer';\n warnInvalidHookAccess();\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n try {\n return updateReducer(reducer, initialArg, init);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useRef: function (initialValue) {\n currentHookNameInDev = 'useRef';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateRef();\n },\n useState: function (initialState) {\n currentHookNameInDev = 'useState';\n warnInvalidHookAccess();\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n try {\n return updateState(initialState);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useDebugValue: function (value, formatterFn) {\n currentHookNameInDev = 'useDebugValue';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateDebugValue();\n },\n useDeferredValue: function (value) {\n currentHookNameInDev = 'useDeferredValue';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateDeferredValue(value);\n },\n useTransition: function () {\n currentHookNameInDev = 'useTransition';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateTransition();\n },\n useMutableSource: function (source, getSnapshot, subscribe) {\n currentHookNameInDev = 'useMutableSource';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateMutableSource();\n },\n useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n currentHookNameInDev = 'useSyncExternalStore';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateSyncExternalStore(subscribe, getSnapshot);\n },\n useId: function () {\n currentHookNameInDev = 'useId';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateId();\n },\n unstable_isNewReconciler: enableNewReconciler\n };\n\n InvalidNestedHooksDispatcherOnRerenderInDEV = {\n readContext: function (context) {\n warnInvalidContextAccess();\n return readContext(context);\n },\n useCallback: function (callback, deps) {\n currentHookNameInDev = 'useCallback';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateCallback(callback, deps);\n },\n useContext: function (context) {\n currentHookNameInDev = 'useContext';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return readContext(context);\n },\n useEffect: function (create, deps) {\n currentHookNameInDev = 'useEffect';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateEffect(create, deps);\n },\n useImperativeHandle: function (ref, create, deps) {\n currentHookNameInDev = 'useImperativeHandle';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateImperativeHandle(ref, create, deps);\n },\n useInsertionEffect: function (create, deps) {\n currentHookNameInDev = 'useInsertionEffect';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateInsertionEffect(create, deps);\n },\n useLayoutEffect: function (create, deps) {\n currentHookNameInDev = 'useLayoutEffect';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateLayoutEffect(create, deps);\n },\n useMemo: function (create, deps) {\n currentHookNameInDev = 'useMemo';\n warnInvalidHookAccess();\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n try {\n return updateMemo(create, deps);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useReducer: function (reducer, initialArg, init) {\n currentHookNameInDev = 'useReducer';\n warnInvalidHookAccess();\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n try {\n return rerenderReducer(reducer, initialArg, init);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useRef: function (initialValue) {\n currentHookNameInDev = 'useRef';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateRef();\n },\n useState: function (initialState) {\n currentHookNameInDev = 'useState';\n warnInvalidHookAccess();\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n try {\n return rerenderState(initialState);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useDebugValue: function (value, formatterFn) {\n currentHookNameInDev = 'useDebugValue';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateDebugValue();\n },\n useDeferredValue: function (value) {\n currentHookNameInDev = 'useDeferredValue';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return rerenderDeferredValue(value);\n },\n useTransition: function () {\n currentHookNameInDev = 'useTransition';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return rerenderTransition();\n },\n useMutableSource: function (source, getSnapshot, subscribe) {\n currentHookNameInDev = 'useMutableSource';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateMutableSource();\n },\n useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n currentHookNameInDev = 'useSyncExternalStore';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateSyncExternalStore(subscribe, getSnapshot);\n },\n useId: function () {\n currentHookNameInDev = 'useId';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateId();\n },\n unstable_isNewReconciler: enableNewReconciler\n };\n}\n\nvar now$1 = Scheduler.unstable_now;\nvar commitTime = 0;\nvar layoutEffectStartTime = -1;\nvar profilerStartTime = -1;\nvar passiveEffectStartTime = -1;\n/**\n * Tracks whether the current update was a nested/cascading update (scheduled from a layout effect).\n *\n * The overall sequence is:\n * 1. render\n * 2. commit (and call `onRender`, `onCommit`)\n * 3. check for nested updates\n * 4. flush passive effects (and call `onPostCommit`)\n *\n * Nested updates are identified in step 3 above,\n * but step 4 still applies to the work that was just committed.\n * We use two flags to track nested updates then:\n * one tracks whether the upcoming update is a nested update,\n * and the other tracks whether the current update was a nested update.\n * The first value gets synced to the second at the start of the render phase.\n */\n\nvar currentUpdateIsNested = false;\nvar nestedUpdateScheduled = false;\n\nfunction isCurrentUpdateNested() {\n return currentUpdateIsNested;\n}\n\nfunction markNestedUpdateScheduled() {\n {\n nestedUpdateScheduled = true;\n }\n}\n\nfunction resetNestedUpdateFlag() {\n {\n currentUpdateIsNested = false;\n nestedUpdateScheduled = false;\n }\n}\n\nfunction syncNestedUpdateFlag() {\n {\n currentUpdateIsNested = nestedUpdateScheduled;\n nestedUpdateScheduled = false;\n }\n}\n\nfunction getCommitTime() {\n return commitTime;\n}\n\nfunction recordCommitTime() {\n\n commitTime = now$1();\n}\n\nfunction startProfilerTimer(fiber) {\n\n profilerStartTime = now$1();\n\n if (fiber.actualStartTime < 0) {\n fiber.actualStartTime = now$1();\n }\n}\n\nfunction stopProfilerTimerIfRunning(fiber) {\n\n profilerStartTime = -1;\n}\n\nfunction stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {\n\n if (profilerStartTime >= 0) {\n var elapsedTime = now$1() - profilerStartTime;\n fiber.actualDuration += elapsedTime;\n\n if (overrideBaseTime) {\n fiber.selfBaseDuration = elapsedTime;\n }\n\n profilerStartTime = -1;\n }\n}\n\nfunction recordLayoutEffectDuration(fiber) {\n\n if (layoutEffectStartTime >= 0) {\n var elapsedTime = now$1() - layoutEffectStartTime;\n layoutEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor\n // Or the root (for the DevTools Profiler to read)\n\n var parentFiber = fiber.return;\n\n while (parentFiber !== null) {\n switch (parentFiber.tag) {\n case HostRoot:\n var root = parentFiber.stateNode;\n root.effectDuration += elapsedTime;\n return;\n\n case Profiler:\n var parentStateNode = parentFiber.stateNode;\n parentStateNode.effectDuration += elapsedTime;\n return;\n }\n\n parentFiber = parentFiber.return;\n }\n }\n}\n\nfunction recordPassiveEffectDuration(fiber) {\n\n if (passiveEffectStartTime >= 0) {\n var elapsedTime = now$1() - passiveEffectStartTime;\n passiveEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor\n // Or the root (for the DevTools Profiler to read)\n\n var parentFiber = fiber.return;\n\n while (parentFiber !== null) {\n switch (parentFiber.tag) {\n case HostRoot:\n var root = parentFiber.stateNode;\n\n if (root !== null) {\n root.passiveEffectDuration += elapsedTime;\n }\n\n return;\n\n case Profiler:\n var parentStateNode = parentFiber.stateNode;\n\n if (parentStateNode !== null) {\n // Detached fibers have their state node cleared out.\n // In this case, the return pointer is also cleared out,\n // so we won't be able to report the time spent in this Profiler's subtree.\n parentStateNode.passiveEffectDuration += elapsedTime;\n }\n\n return;\n }\n\n parentFiber = parentFiber.return;\n }\n }\n}\n\nfunction startLayoutEffectTimer() {\n\n layoutEffectStartTime = now$1();\n}\n\nfunction startPassiveEffectTimer() {\n\n passiveEffectStartTime = now$1();\n}\n\nfunction transferActualDuration(fiber) {\n // Transfer time spent rendering these children so we don't lose it\n // after we rerender. This is used as a helper in special cases\n // where we should count the work of multiple passes.\n var child = fiber.child;\n\n while (child) {\n fiber.actualDuration += child.actualDuration;\n child = child.sibling;\n }\n}\n\nfunction resolveDefaultProps(Component, baseProps) {\n if (Component && Component.defaultProps) {\n // Resolve default props. Taken from ReactElement\n var props = assign({}, baseProps);\n var defaultProps = Component.defaultProps;\n\n for (var propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n\n return props;\n }\n\n return baseProps;\n}\n\nvar fakeInternalInstance = {};\nvar didWarnAboutStateAssignmentForComponent;\nvar didWarnAboutUninitializedState;\nvar didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;\nvar didWarnAboutLegacyLifecyclesAndDerivedState;\nvar didWarnAboutUndefinedDerivedState;\nvar warnOnUndefinedDerivedState;\nvar warnOnInvalidCallback;\nvar didWarnAboutDirectlyAssigningPropsToState;\nvar didWarnAboutContextTypeAndContextTypes;\nvar didWarnAboutInvalidateContextType;\nvar didWarnAboutLegacyContext$1;\n\n{\n didWarnAboutStateAssignmentForComponent = new Set();\n didWarnAboutUninitializedState = new Set();\n didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();\n didWarnAboutLegacyLifecyclesAndDerivedState = new Set();\n didWarnAboutDirectlyAssigningPropsToState = new Set();\n didWarnAboutUndefinedDerivedState = new Set();\n didWarnAboutContextTypeAndContextTypes = new Set();\n didWarnAboutInvalidateContextType = new Set();\n didWarnAboutLegacyContext$1 = new Set();\n var didWarnOnInvalidCallback = new Set();\n\n warnOnInvalidCallback = function (callback, callerName) {\n if (callback === null || typeof callback === 'function') {\n return;\n }\n\n var key = callerName + '_' + callback;\n\n if (!didWarnOnInvalidCallback.has(key)) {\n didWarnOnInvalidCallback.add(key);\n\n error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);\n }\n };\n\n warnOnUndefinedDerivedState = function (type, partialState) {\n if (partialState === undefined) {\n var componentName = getComponentNameFromType(type) || 'Component';\n\n if (!didWarnAboutUndefinedDerivedState.has(componentName)) {\n didWarnAboutUndefinedDerivedState.add(componentName);\n\n error('%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);\n }\n }\n }; // This is so gross but it's at least non-critical and can be removed if\n // it causes problems. This is meant to give a nicer error message for\n // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,\n // ...)) which otherwise throws a \"_processChildContext is not a function\"\n // exception.\n\n\n Object.defineProperty(fakeInternalInstance, '_processChildContext', {\n enumerable: false,\n value: function () {\n throw new Error('_processChildContext is not available in React 16+. This likely ' + 'means you have multiple copies of React and are attempting to nest ' + 'a React 15 tree inside a React 16 tree using ' + \"unstable_renderSubtreeIntoContainer, which isn't supported. Try \" + 'to make sure you have only one copy of React (and ideally, switch ' + 'to ReactDOM.createPortal).');\n }\n });\n Object.freeze(fakeInternalInstance);\n}\n\nfunction applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {\n var prevState = workInProgress.memoizedState;\n var partialState = getDerivedStateFromProps(nextProps, prevState);\n\n {\n if ( workInProgress.mode & StrictLegacyMode) {\n setIsStrictModeForDevtools(true);\n\n try {\n // Invoke the function an extra time to help detect side-effects.\n partialState = getDerivedStateFromProps(nextProps, prevState);\n } finally {\n setIsStrictModeForDevtools(false);\n }\n }\n\n warnOnUndefinedDerivedState(ctor, partialState);\n } // Merge the partial state and the previous state.\n\n\n var memoizedState = partialState === null || partialState === undefined ? prevState : assign({}, prevState, partialState);\n workInProgress.memoizedState = memoizedState; // Once the update queue is empty, persist the derived state onto the\n // base state.\n\n if (workInProgress.lanes === NoLanes) {\n // Queue is always non-null for classes\n var updateQueue = workInProgress.updateQueue;\n updateQueue.baseState = memoizedState;\n }\n}\n\nvar classComponentUpdater = {\n isMounted: isMounted,\n enqueueSetState: function (inst, payload, callback) {\n var fiber = get(inst);\n var eventTime = requestEventTime();\n var lane = requestUpdateLane(fiber);\n var update = createUpdate(eventTime, lane);\n update.payload = payload;\n\n if (callback !== undefined && callback !== null) {\n {\n warnOnInvalidCallback(callback, 'setState');\n }\n\n update.callback = callback;\n }\n\n var root = enqueueUpdate(fiber, update, lane);\n\n if (root !== null) {\n scheduleUpdateOnFiber(root, fiber, lane, eventTime);\n entangleTransitions(root, fiber, lane);\n }\n\n {\n markStateUpdateScheduled(fiber, lane);\n }\n },\n enqueueReplaceState: function (inst, payload, callback) {\n var fiber = get(inst);\n var eventTime = requestEventTime();\n var lane = requestUpdateLane(fiber);\n var update = createUpdate(eventTime, lane);\n update.tag = ReplaceState;\n update.payload = payload;\n\n if (callback !== undefined && callback !== null) {\n {\n warnOnInvalidCallback(callback, 'replaceState');\n }\n\n update.callback = callback;\n }\n\n var root = enqueueUpdate(fiber, update, lane);\n\n if (root !== null) {\n scheduleUpdateOnFiber(root, fiber, lane, eventTime);\n entangleTransitions(root, fiber, lane);\n }\n\n {\n markStateUpdateScheduled(fiber, lane);\n }\n },\n enqueueForceUpdate: function (inst, callback) {\n var fiber = get(inst);\n var eventTime = requestEventTime();\n var lane = requestUpdateLane(fiber);\n var update = createUpdate(eventTime, lane);\n update.tag = ForceUpdate;\n\n if (callback !== undefined && callback !== null) {\n {\n warnOnInvalidCallback(callback, 'forceUpdate');\n }\n\n update.callback = callback;\n }\n\n var root = enqueueUpdate(fiber, update, lane);\n\n if (root !== null) {\n scheduleUpdateOnFiber(root, fiber, lane, eventTime);\n entangleTransitions(root, fiber, lane);\n }\n\n {\n markForceUpdateScheduled(fiber, lane);\n }\n }\n};\n\nfunction checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {\n var instance = workInProgress.stateNode;\n\n if (typeof instance.shouldComponentUpdate === 'function') {\n var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);\n\n {\n if ( workInProgress.mode & StrictLegacyMode) {\n setIsStrictModeForDevtools(true);\n\n try {\n // Invoke the function an extra time to help detect side-effects.\n shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);\n } finally {\n setIsStrictModeForDevtools(false);\n }\n }\n\n if (shouldUpdate === undefined) {\n error('%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentNameFromType(ctor) || 'Component');\n }\n }\n\n return shouldUpdate;\n }\n\n if (ctor.prototype && ctor.prototype.isPureReactComponent) {\n return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);\n }\n\n return true;\n}\n\nfunction checkClassInstance(workInProgress, ctor, newProps) {\n var instance = workInProgress.stateNode;\n\n {\n var name = getComponentNameFromType(ctor) || 'Component';\n var renderPresent = instance.render;\n\n if (!renderPresent) {\n if (ctor.prototype && typeof ctor.prototype.render === 'function') {\n error('%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);\n } else {\n error('%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);\n }\n }\n\n if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) {\n error('getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name);\n }\n\n if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name);\n }\n\n if (instance.propTypes) {\n error('propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);\n }\n\n if (instance.contextType) {\n error('contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name);\n }\n\n {\n if (ctor.childContextTypes && !didWarnAboutLegacyContext$1.has(ctor) && // Strict Mode has its own warning for legacy context, so we can skip\n // this one.\n (workInProgress.mode & StrictLegacyMode) === NoMode) {\n didWarnAboutLegacyContext$1.add(ctor);\n\n error('%s uses the legacy childContextTypes API which is no longer ' + 'supported and will be removed in the next major release. Use ' + 'React.createContext() instead\\n\\n.' + 'Learn more about this warning here: https://reactjs.org/link/legacy-context', name);\n }\n\n if (ctor.contextTypes && !didWarnAboutLegacyContext$1.has(ctor) && // Strict Mode has its own warning for legacy context, so we can skip\n // this one.\n (workInProgress.mode & StrictLegacyMode) === NoMode) {\n didWarnAboutLegacyContext$1.add(ctor);\n\n error('%s uses the legacy contextTypes API which is no longer supported ' + 'and will be removed in the next major release. Use ' + 'React.createContext() with static contextType instead.\\n\\n' + 'Learn more about this warning here: https://reactjs.org/link/legacy-context', name);\n }\n\n if (instance.contextTypes) {\n error('contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);\n }\n\n if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {\n didWarnAboutContextTypeAndContextTypes.add(ctor);\n\n error('%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);\n }\n }\n\n if (typeof instance.componentShouldUpdate === 'function') {\n error('%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name);\n }\n\n if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {\n error('%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentNameFromType(ctor) || 'A pure component');\n }\n\n if (typeof instance.componentDidUnmount === 'function') {\n error('%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);\n }\n\n if (typeof instance.componentDidReceiveProps === 'function') {\n error('%s has a method called ' + 'componentDidReceiveProps(). But there is no such lifecycle method. ' + 'If you meant to update the state in response to changing props, ' + 'use componentWillReceiveProps(). If you meant to fetch data or ' + 'run side-effects or mutations after React has updated the UI, use componentDidUpdate().', name);\n }\n\n if (typeof instance.componentWillRecieveProps === 'function') {\n error('%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);\n }\n\n if (typeof instance.UNSAFE_componentWillRecieveProps === 'function') {\n error('%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name);\n }\n\n var hasMutatedProps = instance.props !== newProps;\n\n if (instance.props !== undefined && hasMutatedProps) {\n error('%s(...): When calling super() in `%s`, make sure to pass ' + \"up the same props that your component's constructor was passed.\", name, name);\n }\n\n if (instance.defaultProps) {\n error('Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name);\n }\n\n if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {\n didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);\n\n error('%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentNameFromType(ctor));\n }\n\n if (typeof instance.getDerivedStateFromProps === 'function') {\n error('%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);\n }\n\n if (typeof instance.getDerivedStateFromError === 'function') {\n error('%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);\n }\n\n if (typeof ctor.getSnapshotBeforeUpdate === 'function') {\n error('%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name);\n }\n\n var _state = instance.state;\n\n if (_state && (typeof _state !== 'object' || isArray(_state))) {\n error('%s.state: must be set to an object or null', name);\n }\n\n if (typeof instance.getChildContext === 'function' && typeof ctor.childContextTypes !== 'object') {\n error('%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name);\n }\n }\n}\n\nfunction adoptClassInstance(workInProgress, instance) {\n instance.updater = classComponentUpdater;\n workInProgress.stateNode = instance; // The instance needs access to the fiber so that it can schedule updates\n\n set(instance, workInProgress);\n\n {\n instance._reactInternalInstance = fakeInternalInstance;\n }\n}\n\nfunction constructClassInstance(workInProgress, ctor, props) {\n var isLegacyContextConsumer = false;\n var unmaskedContext = emptyContextObject;\n var context = emptyContextObject;\n var contextType = ctor.contextType;\n\n {\n if ('contextType' in ctor) {\n var isValid = // Allow null for conditional declaration\n contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>\n\n if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {\n didWarnAboutInvalidateContextType.add(ctor);\n var addendum = '';\n\n if (contextType === undefined) {\n addendum = ' However, it is set to undefined. ' + 'This can be caused by a typo or by mixing up named and default imports. ' + 'This can also happen due to a circular dependency, so ' + 'try moving the createContext() call to a separate file.';\n } else if (typeof contextType !== 'object') {\n addendum = ' However, it is set to a ' + typeof contextType + '.';\n } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {\n addendum = ' Did you accidentally pass the Context.Provider instead?';\n } else if (contextType._context !== undefined) {\n // <Context.Consumer>\n addendum = ' Did you accidentally pass the Context.Consumer instead?';\n } else {\n addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';\n }\n\n error('%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentNameFromType(ctor) || 'Component', addendum);\n }\n }\n }\n\n if (typeof contextType === 'object' && contextType !== null) {\n context = readContext(contextType);\n } else {\n unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);\n var contextTypes = ctor.contextTypes;\n isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;\n context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;\n }\n\n var instance = new ctor(props, context); // Instantiate twice to help detect side-effects.\n\n {\n if ( workInProgress.mode & StrictLegacyMode) {\n setIsStrictModeForDevtools(true);\n\n try {\n instance = new ctor(props, context); // eslint-disable-line no-new\n } finally {\n setIsStrictModeForDevtools(false);\n }\n }\n }\n\n var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;\n adoptClassInstance(workInProgress, instance);\n\n {\n if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {\n var componentName = getComponentNameFromType(ctor) || 'Component';\n\n if (!didWarnAboutUninitializedState.has(componentName)) {\n didWarnAboutUninitializedState.add(componentName);\n\n error('`%s` uses `getDerivedStateFromProps` but its initial state is ' + '%s. This is not recommended. Instead, define the initial state by ' + 'assigning an object to `this.state` in the constructor of `%s`. ' + 'This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', componentName, instance.state === null ? 'null' : 'undefined', componentName);\n }\n } // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n // Warn about these lifecycles if they are present.\n // Don't warn about react-lifecycles-compat polyfilled methods though.\n\n\n if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {\n var foundWillMountName = null;\n var foundWillReceivePropsName = null;\n var foundWillUpdateName = null;\n\n if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {\n foundWillMountName = 'componentWillMount';\n } else if (typeof instance.UNSAFE_componentWillMount === 'function') {\n foundWillMountName = 'UNSAFE_componentWillMount';\n }\n\n if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {\n foundWillReceivePropsName = 'componentWillReceiveProps';\n } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n }\n\n if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {\n foundWillUpdateName = 'componentWillUpdate';\n } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {\n foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n }\n\n if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {\n var _componentName = getComponentNameFromType(ctor) || 'Component';\n\n var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';\n\n if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {\n didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);\n\n error('Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\\n\\n' + 'The above lifecycles should be removed. Learn more about this warning here:\\n' + 'https://reactjs.org/link/unsafe-component-lifecycles', _componentName, newApiName, foundWillMountName !== null ? \"\\n \" + foundWillMountName : '', foundWillReceivePropsName !== null ? \"\\n \" + foundWillReceivePropsName : '', foundWillUpdateName !== null ? \"\\n \" + foundWillUpdateName : '');\n }\n }\n }\n } // Cache unmasked context so we can avoid recreating masked context unless necessary.\n // ReactFiberContext usually updates this cache but can't for newly-created instances.\n\n\n if (isLegacyContextConsumer) {\n cacheContext(workInProgress, unmaskedContext, context);\n }\n\n return instance;\n}\n\nfunction callComponentWillMount(workInProgress, instance) {\n var oldState = instance.state;\n\n if (typeof instance.componentWillMount === 'function') {\n instance.componentWillMount();\n }\n\n if (typeof instance.UNSAFE_componentWillMount === 'function') {\n instance.UNSAFE_componentWillMount();\n }\n\n if (oldState !== instance.state) {\n {\n error('%s.componentWillMount(): Assigning directly to this.state is ' + \"deprecated (except inside a component's \" + 'constructor). Use setState instead.', getComponentNameFromFiber(workInProgress) || 'Component');\n }\n\n classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n }\n}\n\nfunction callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {\n var oldState = instance.state;\n\n if (typeof instance.componentWillReceiveProps === 'function') {\n instance.componentWillReceiveProps(newProps, nextContext);\n }\n\n if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {\n instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);\n }\n\n if (instance.state !== oldState) {\n {\n var componentName = getComponentNameFromFiber(workInProgress) || 'Component';\n\n if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {\n didWarnAboutStateAssignmentForComponent.add(componentName);\n\n error('%s.componentWillReceiveProps(): Assigning directly to ' + \"this.state is deprecated (except inside a component's \" + 'constructor). Use setState instead.', componentName);\n }\n }\n\n classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n }\n} // Invokes the mount life-cycles on a previously never rendered instance.\n\n\nfunction mountClassInstance(workInProgress, ctor, newProps, renderLanes) {\n {\n checkClassInstance(workInProgress, ctor, newProps);\n }\n\n var instance = workInProgress.stateNode;\n instance.props = newProps;\n instance.state = workInProgress.memoizedState;\n instance.refs = {};\n initializeUpdateQueue(workInProgress);\n var contextType = ctor.contextType;\n\n if (typeof contextType === 'object' && contextType !== null) {\n instance.context = readContext(contextType);\n } else {\n var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);\n instance.context = getMaskedContext(workInProgress, unmaskedContext);\n }\n\n {\n if (instance.state === newProps) {\n var componentName = getComponentNameFromType(ctor) || 'Component';\n\n if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {\n didWarnAboutDirectlyAssigningPropsToState.add(componentName);\n\n error('%s: It is not recommended to assign props directly to state ' + \"because updates to props won't be reflected in state. \" + 'In most cases, it is better to use props directly.', componentName);\n }\n }\n\n if (workInProgress.mode & StrictLegacyMode) {\n ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);\n }\n\n {\n ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);\n }\n }\n\n instance.state = workInProgress.memoizedState;\n var getDerivedStateFromProps = ctor.getDerivedStateFromProps;\n\n if (typeof getDerivedStateFromProps === 'function') {\n applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);\n instance.state = workInProgress.memoizedState;\n } // In order to support react-lifecycles-compat polyfilled components,\n // Unsafe lifecycles should not be invoked for components using the new APIs.\n\n\n if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {\n callComponentWillMount(workInProgress, instance); // If we had additional state updates during this life-cycle, let's\n // process them now.\n\n processUpdateQueue(workInProgress, newProps, instance, renderLanes);\n instance.state = workInProgress.memoizedState;\n }\n\n if (typeof instance.componentDidMount === 'function') {\n var fiberFlags = Update;\n\n {\n fiberFlags |= LayoutStatic;\n }\n\n if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {\n fiberFlags |= MountLayoutDev;\n }\n\n workInProgress.flags |= fiberFlags;\n }\n}\n\nfunction resumeMountClassInstance(workInProgress, ctor, newProps, renderLanes) {\n var instance = workInProgress.stateNode;\n var oldProps = workInProgress.memoizedProps;\n instance.props = oldProps;\n var oldContext = instance.context;\n var contextType = ctor.contextType;\n var nextContext = emptyContextObject;\n\n if (typeof contextType === 'object' && contextType !== null) {\n nextContext = readContext(contextType);\n } else {\n var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);\n nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);\n }\n\n var getDerivedStateFromProps = ctor.getDerivedStateFromProps;\n var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what\n // ever the previously attempted to render - not the \"current\". However,\n // during componentDidUpdate we pass the \"current\" props.\n // In order to support react-lifecycles-compat polyfilled components,\n // Unsafe lifecycles should not be invoked for components using the new APIs.\n\n if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {\n if (oldProps !== newProps || oldContext !== nextContext) {\n callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);\n }\n }\n\n resetHasForceUpdateBeforeProcessing();\n var oldState = workInProgress.memoizedState;\n var newState = instance.state = oldState;\n processUpdateQueue(workInProgress, newProps, instance, renderLanes);\n newState = workInProgress.memoizedState;\n\n if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {\n // If an update was already in progress, we should schedule an Update\n // effect even though we're bailing out, so that cWU/cDU are called.\n if (typeof instance.componentDidMount === 'function') {\n var fiberFlags = Update;\n\n {\n fiberFlags |= LayoutStatic;\n }\n\n if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {\n fiberFlags |= MountLayoutDev;\n }\n\n workInProgress.flags |= fiberFlags;\n }\n\n return false;\n }\n\n if (typeof getDerivedStateFromProps === 'function') {\n applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);\n newState = workInProgress.memoizedState;\n }\n\n var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);\n\n if (shouldUpdate) {\n // In order to support react-lifecycles-compat polyfilled components,\n // Unsafe lifecycles should not be invoked for components using the new APIs.\n if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {\n if (typeof instance.componentWillMount === 'function') {\n instance.componentWillMount();\n }\n\n if (typeof instance.UNSAFE_componentWillMount === 'function') {\n instance.UNSAFE_componentWillMount();\n }\n }\n\n if (typeof instance.componentDidMount === 'function') {\n var _fiberFlags = Update;\n\n {\n _fiberFlags |= LayoutStatic;\n }\n\n if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {\n _fiberFlags |= MountLayoutDev;\n }\n\n workInProgress.flags |= _fiberFlags;\n }\n } else {\n // If an update was already in progress, we should schedule an Update\n // effect even though we're bailing out, so that cWU/cDU are called.\n if (typeof instance.componentDidMount === 'function') {\n var _fiberFlags2 = Update;\n\n {\n _fiberFlags2 |= LayoutStatic;\n }\n\n if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {\n _fiberFlags2 |= MountLayoutDev;\n }\n\n workInProgress.flags |= _fiberFlags2;\n } // If shouldComponentUpdate returned false, we should still update the\n // memoized state to indicate that this work can be reused.\n\n\n workInProgress.memoizedProps = newProps;\n workInProgress.memoizedState = newState;\n } // Update the existing instance's state, props, and context pointers even\n // if shouldComponentUpdate returns false.\n\n\n instance.props = newProps;\n instance.state = newState;\n instance.context = nextContext;\n return shouldUpdate;\n} // Invokes the update life-cycles and returns false if it shouldn't rerender.\n\n\nfunction updateClassInstance(current, workInProgress, ctor, newProps, renderLanes) {\n var instance = workInProgress.stateNode;\n cloneUpdateQueue(current, workInProgress);\n var unresolvedOldProps = workInProgress.memoizedProps;\n var oldProps = workInProgress.type === workInProgress.elementType ? unresolvedOldProps : resolveDefaultProps(workInProgress.type, unresolvedOldProps);\n instance.props = oldProps;\n var unresolvedNewProps = workInProgress.pendingProps;\n var oldContext = instance.context;\n var contextType = ctor.contextType;\n var nextContext = emptyContextObject;\n\n if (typeof contextType === 'object' && contextType !== null) {\n nextContext = readContext(contextType);\n } else {\n var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);\n nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);\n }\n\n var getDerivedStateFromProps = ctor.getDerivedStateFromProps;\n var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what\n // ever the previously attempted to render - not the \"current\". However,\n // during componentDidUpdate we pass the \"current\" props.\n // In order to support react-lifecycles-compat polyfilled components,\n // Unsafe lifecycles should not be invoked for components using the new APIs.\n\n if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {\n if (unresolvedOldProps !== unresolvedNewProps || oldContext !== nextContext) {\n callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);\n }\n }\n\n resetHasForceUpdateBeforeProcessing();\n var oldState = workInProgress.memoizedState;\n var newState = instance.state = oldState;\n processUpdateQueue(workInProgress, newProps, instance, renderLanes);\n newState = workInProgress.memoizedState;\n\n if (unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing() && !(enableLazyContextPropagation )) {\n // If an update was already in progress, we should schedule an Update\n // effect even though we're bailing out, so that cWU/cDU are called.\n if (typeof instance.componentDidUpdate === 'function') {\n if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {\n workInProgress.flags |= Update;\n }\n }\n\n if (typeof instance.getSnapshotBeforeUpdate === 'function') {\n if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {\n workInProgress.flags |= Snapshot;\n }\n }\n\n return false;\n }\n\n if (typeof getDerivedStateFromProps === 'function') {\n applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);\n newState = workInProgress.memoizedState;\n }\n\n var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) || // TODO: In some cases, we'll end up checking if context has changed twice,\n // both before and after `shouldComponentUpdate` has been called. Not ideal,\n // but I'm loath to refactor this function. This only happens for memoized\n // components so it's not that common.\n enableLazyContextPropagation ;\n\n if (shouldUpdate) {\n // In order to support react-lifecycles-compat polyfilled components,\n // Unsafe lifecycles should not be invoked for components using the new APIs.\n if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {\n if (typeof instance.componentWillUpdate === 'function') {\n instance.componentWillUpdate(newProps, newState, nextContext);\n }\n\n if (typeof instance.UNSAFE_componentWillUpdate === 'function') {\n instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);\n }\n }\n\n if (typeof instance.componentDidUpdate === 'function') {\n workInProgress.flags |= Update;\n }\n\n if (typeof instance.getSnapshotBeforeUpdate === 'function') {\n workInProgress.flags |= Snapshot;\n }\n } else {\n // If an update was already in progress, we should schedule an Update\n // effect even though we're bailing out, so that cWU/cDU are called.\n if (typeof instance.componentDidUpdate === 'function') {\n if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {\n workInProgress.flags |= Update;\n }\n }\n\n if (typeof instance.getSnapshotBeforeUpdate === 'function') {\n if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {\n workInProgress.flags |= Snapshot;\n }\n } // If shouldComponentUpdate returned false, we should still update the\n // memoized props/state to indicate that this work can be reused.\n\n\n workInProgress.memoizedProps = newProps;\n workInProgress.memoizedState = newState;\n } // Update the existing instance's state, props, and context pointers even\n // if shouldComponentUpdate returns false.\n\n\n instance.props = newProps;\n instance.state = newState;\n instance.context = nextContext;\n return shouldUpdate;\n}\n\nfunction createCapturedValueAtFiber(value, source) {\n // If the value is an error, call this function immediately after it is thrown\n // so the stack is accurate.\n return {\n value: value,\n source: source,\n stack: getStackByFiberInDevAndProd(source),\n digest: null\n };\n}\nfunction createCapturedValue(value, digest, stack) {\n return {\n value: value,\n source: null,\n stack: stack != null ? stack : null,\n digest: digest != null ? digest : null\n };\n}\n\n// This module is forked in different environments.\n// By default, return `true` to log errors to the console.\n// Forks can return `false` if this isn't desirable.\nfunction showErrorDialog(boundary, errorInfo) {\n return true;\n}\n\nfunction logCapturedError(boundary, errorInfo) {\n try {\n var logError = showErrorDialog(boundary, errorInfo); // Allow injected showErrorDialog() to prevent default console.error logging.\n // This enables renderers like ReactNative to better manage redbox behavior.\n\n if (logError === false) {\n return;\n }\n\n var error = errorInfo.value;\n\n if (true) {\n var source = errorInfo.source;\n var stack = errorInfo.stack;\n var componentStack = stack !== null ? stack : ''; // Browsers support silencing uncaught errors by calling\n // `preventDefault()` in window `error` handler.\n // We record this information as an expando on the error.\n\n if (error != null && error._suppressLogging) {\n if (boundary.tag === ClassComponent) {\n // The error is recoverable and was silenced.\n // Ignore it and don't print the stack addendum.\n // This is handy for testing error boundaries without noise.\n return;\n } // The error is fatal. Since the silencing might have\n // been accidental, we'll surface it anyway.\n // However, the browser would have silenced the original error\n // so we'll print it first, and then print the stack addendum.\n\n\n console['error'](error); // Don't transform to our wrapper\n // For a more detailed description of this block, see:\n // https://github.com/facebook/react/pull/13384\n }\n\n var componentName = source ? getComponentNameFromFiber(source) : null;\n var componentNameMessage = componentName ? \"The above error occurred in the <\" + componentName + \"> component:\" : 'The above error occurred in one of your React components:';\n var errorBoundaryMessage;\n\n if (boundary.tag === HostRoot) {\n errorBoundaryMessage = 'Consider adding an error boundary to your tree to customize error handling behavior.\\n' + 'Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.';\n } else {\n var errorBoundaryName = getComponentNameFromFiber(boundary) || 'Anonymous';\n errorBoundaryMessage = \"React will try to recreate this component tree from scratch \" + (\"using the error boundary you provided, \" + errorBoundaryName + \".\");\n }\n\n var combinedMessage = componentNameMessage + \"\\n\" + componentStack + \"\\n\\n\" + (\"\" + errorBoundaryMessage); // In development, we provide our own message with just the component stack.\n // We don't include the original error message and JS stack because the browser\n // has already printed it. Even if the application swallows the error, it is still\n // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.\n\n console['error'](combinedMessage); // Don't transform to our wrapper\n } else {}\n } catch (e) {\n // This method must not throw, or React internal state will get messed up.\n // If console.error is overridden, or logCapturedError() shows a dialog that throws,\n // we want to report this error outside of the normal stack as a last resort.\n // https://github.com/facebook/react/issues/13188\n setTimeout(function () {\n throw e;\n });\n }\n}\n\nvar PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;\n\nfunction createRootErrorUpdate(fiber, errorInfo, lane) {\n var update = createUpdate(NoTimestamp, lane); // Unmount the root by rendering null.\n\n update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property\n // being called \"element\".\n\n update.payload = {\n element: null\n };\n var error = errorInfo.value;\n\n update.callback = function () {\n onUncaughtError(error);\n logCapturedError(fiber, errorInfo);\n };\n\n return update;\n}\n\nfunction createClassErrorUpdate(fiber, errorInfo, lane) {\n var update = createUpdate(NoTimestamp, lane);\n update.tag = CaptureUpdate;\n var getDerivedStateFromError = fiber.type.getDerivedStateFromError;\n\n if (typeof getDerivedStateFromError === 'function') {\n var error$1 = errorInfo.value;\n\n update.payload = function () {\n return getDerivedStateFromError(error$1);\n };\n\n update.callback = function () {\n {\n markFailedErrorBoundaryForHotReloading(fiber);\n }\n\n logCapturedError(fiber, errorInfo);\n };\n }\n\n var inst = fiber.stateNode;\n\n if (inst !== null && typeof inst.componentDidCatch === 'function') {\n update.callback = function callback() {\n {\n markFailedErrorBoundaryForHotReloading(fiber);\n }\n\n logCapturedError(fiber, errorInfo);\n\n if (typeof getDerivedStateFromError !== 'function') {\n // To preserve the preexisting retry behavior of error boundaries,\n // we keep track of which ones already failed during this batch.\n // This gets reset before we yield back to the browser.\n // TODO: Warn in strict mode if getDerivedStateFromError is\n // not defined.\n markLegacyErrorBoundaryAsFailed(this);\n }\n\n var error$1 = errorInfo.value;\n var stack = errorInfo.stack;\n this.componentDidCatch(error$1, {\n componentStack: stack !== null ? stack : ''\n });\n\n {\n if (typeof getDerivedStateFromError !== 'function') {\n // If componentDidCatch is the only error boundary method defined,\n // then it needs to call setState to recover from errors.\n // If no state update is scheduled then the boundary will swallow the error.\n if (!includesSomeLane(fiber.lanes, SyncLane)) {\n error('%s: Error boundaries should implement getDerivedStateFromError(). ' + 'In that method, return a state update to display an error message or fallback UI.', getComponentNameFromFiber(fiber) || 'Unknown');\n }\n }\n }\n };\n }\n\n return update;\n}\n\nfunction attachPingListener(root, wakeable, lanes) {\n // Attach a ping listener\n //\n // The data might resolve before we have a chance to commit the fallback. Or,\n // in the case of a refresh, we'll never commit a fallback. So we need to\n // attach a listener now. When it resolves (\"pings\"), we can decide whether to\n // try rendering the tree again.\n //\n // Only attach a listener if one does not already exist for the lanes\n // we're currently rendering (which acts like a \"thread ID\" here).\n //\n // We only need to do this in concurrent mode. Legacy Suspense always\n // commits fallbacks synchronously, so there are no pings.\n var pingCache = root.pingCache;\n var threadIDs;\n\n if (pingCache === null) {\n pingCache = root.pingCache = new PossiblyWeakMap$1();\n threadIDs = new Set();\n pingCache.set(wakeable, threadIDs);\n } else {\n threadIDs = pingCache.get(wakeable);\n\n if (threadIDs === undefined) {\n threadIDs = new Set();\n pingCache.set(wakeable, threadIDs);\n }\n }\n\n if (!threadIDs.has(lanes)) {\n // Memoize using the thread ID to prevent redundant listeners.\n threadIDs.add(lanes);\n var ping = pingSuspendedRoot.bind(null, root, wakeable, lanes);\n\n {\n if (isDevToolsPresent) {\n // If we have pending work still, restore the original updaters\n restorePendingUpdaters(root, lanes);\n }\n }\n\n wakeable.then(ping, ping);\n }\n}\n\nfunction attachRetryListener(suspenseBoundary, root, wakeable, lanes) {\n // Retry listener\n //\n // If the fallback does commit, we need to attach a different type of\n // listener. This one schedules an update on the Suspense boundary to turn\n // the fallback state off.\n //\n // Stash the wakeable on the boundary fiber so we can access it in the\n // commit phase.\n //\n // When the wakeable resolves, we'll attempt to render the boundary\n // again (\"retry\").\n var wakeables = suspenseBoundary.updateQueue;\n\n if (wakeables === null) {\n var updateQueue = new Set();\n updateQueue.add(wakeable);\n suspenseBoundary.updateQueue = updateQueue;\n } else {\n wakeables.add(wakeable);\n }\n}\n\nfunction resetSuspendedComponent(sourceFiber, rootRenderLanes) {\n // A legacy mode Suspense quirk, only relevant to hook components.\n\n\n var tag = sourceFiber.tag;\n\n if ((sourceFiber.mode & ConcurrentMode) === NoMode && (tag === FunctionComponent || tag === ForwardRef || tag === SimpleMemoComponent)) {\n var currentSource = sourceFiber.alternate;\n\n if (currentSource) {\n sourceFiber.updateQueue = currentSource.updateQueue;\n sourceFiber.memoizedState = currentSource.memoizedState;\n sourceFiber.lanes = currentSource.lanes;\n } else {\n sourceFiber.updateQueue = null;\n sourceFiber.memoizedState = null;\n }\n }\n}\n\nfunction getNearestSuspenseBoundaryToCapture(returnFiber) {\n var node = returnFiber;\n\n do {\n if (node.tag === SuspenseComponent && shouldCaptureSuspense(node)) {\n return node;\n } // This boundary already captured during this render. Continue to the next\n // boundary.\n\n\n node = node.return;\n } while (node !== null);\n\n return null;\n}\n\nfunction markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes) {\n // This marks a Suspense boundary so that when we're unwinding the stack,\n // it captures the suspended \"exception\" and does a second (fallback) pass.\n if ((suspenseBoundary.mode & ConcurrentMode) === NoMode) {\n // Legacy Mode Suspense\n //\n // If the boundary is in legacy mode, we should *not*\n // suspend the commit. Pretend as if the suspended component rendered\n // null and keep rendering. When the Suspense boundary completes,\n // we'll do a second pass to render the fallback.\n if (suspenseBoundary === returnFiber) {\n // Special case where we suspended while reconciling the children of\n // a Suspense boundary's inner Offscreen wrapper fiber. This happens\n // when a React.lazy component is a direct child of a\n // Suspense boundary.\n //\n // Suspense boundaries are implemented as multiple fibers, but they\n // are a single conceptual unit. The legacy mode behavior where we\n // pretend the suspended fiber committed as `null` won't work,\n // because in this case the \"suspended\" fiber is the inner\n // Offscreen wrapper.\n //\n // Because the contents of the boundary haven't started rendering\n // yet (i.e. nothing in the tree has partially rendered) we can\n // switch to the regular, concurrent mode behavior: mark the\n // boundary with ShouldCapture and enter the unwind phase.\n suspenseBoundary.flags |= ShouldCapture;\n } else {\n suspenseBoundary.flags |= DidCapture;\n sourceFiber.flags |= ForceUpdateForLegacySuspense; // We're going to commit this fiber even though it didn't complete.\n // But we shouldn't call any lifecycle methods or callbacks. Remove\n // all lifecycle effect tags.\n\n sourceFiber.flags &= ~(LifecycleEffectMask | Incomplete);\n\n if (sourceFiber.tag === ClassComponent) {\n var currentSourceFiber = sourceFiber.alternate;\n\n if (currentSourceFiber === null) {\n // This is a new mount. Change the tag so it's not mistaken for a\n // completed class component. For example, we should not call\n // componentWillUnmount if it is deleted.\n sourceFiber.tag = IncompleteClassComponent;\n } else {\n // When we try rendering again, we should not reuse the current fiber,\n // since it's known to be in an inconsistent state. Use a force update to\n // prevent a bail out.\n var update = createUpdate(NoTimestamp, SyncLane);\n update.tag = ForceUpdate;\n enqueueUpdate(sourceFiber, update, SyncLane);\n }\n } // The source fiber did not complete. Mark it with Sync priority to\n // indicate that it still has pending work.\n\n\n sourceFiber.lanes = mergeLanes(sourceFiber.lanes, SyncLane);\n }\n\n return suspenseBoundary;\n } // Confirmed that the boundary is in a concurrent mode tree. Continue\n // with the normal suspend path.\n //\n // After this we'll use a set of heuristics to determine whether this\n // render pass will run to completion or restart or \"suspend\" the commit.\n // The actual logic for this is spread out in different places.\n //\n // This first principle is that if we're going to suspend when we complete\n // a root, then we should also restart if we get an update or ping that\n // might unsuspend it, and vice versa. The only reason to suspend is\n // because you think you might want to restart before committing. However,\n // it doesn't make sense to restart only while in the period we're suspended.\n //\n // Restarting too aggressively is also not good because it starves out any\n // intermediate loading state. So we use heuristics to determine when.\n // Suspense Heuristics\n //\n // If nothing threw a Promise or all the same fallbacks are already showing,\n // then don't suspend/restart.\n //\n // If this is an initial render of a new tree of Suspense boundaries and\n // those trigger a fallback, then don't suspend/restart. We want to ensure\n // that we can show the initial loading state as quickly as possible.\n //\n // If we hit a \"Delayed\" case, such as when we'd switch from content back into\n // a fallback, then we should always suspend/restart. Transitions apply\n // to this case. If none is defined, JND is used instead.\n //\n // If we're already showing a fallback and it gets \"retried\", allowing us to show\n // another level, but there's still an inner boundary that would show a fallback,\n // then we suspend/restart for 500ms since the last time we showed a fallback\n // anywhere in the tree. This effectively throttles progressive loading into a\n // consistent train of commits. This also gives us an opportunity to restart to\n // get to the completed state slightly earlier.\n //\n // If there's ambiguity due to batching it's resolved in preference of:\n // 1) \"delayed\", 2) \"initial render\", 3) \"retry\".\n //\n // We want to ensure that a \"busy\" state doesn't get force committed. We want to\n // ensure that new initial loading states can commit as soon as possible.\n\n\n suspenseBoundary.flags |= ShouldCapture; // TODO: I think we can remove this, since we now use `DidCapture` in\n // the begin phase to prevent an early bailout.\n\n suspenseBoundary.lanes = rootRenderLanes;\n return suspenseBoundary;\n}\n\nfunction throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) {\n // The source fiber did not complete.\n sourceFiber.flags |= Incomplete;\n\n {\n if (isDevToolsPresent) {\n // If we have pending work still, restore the original updaters\n restorePendingUpdaters(root, rootRenderLanes);\n }\n }\n\n if (value !== null && typeof value === 'object' && typeof value.then === 'function') {\n // This is a wakeable. The component suspended.\n var wakeable = value;\n resetSuspendedComponent(sourceFiber);\n\n {\n if (getIsHydrating() && sourceFiber.mode & ConcurrentMode) {\n markDidThrowWhileHydratingDEV();\n }\n }\n\n\n var suspenseBoundary = getNearestSuspenseBoundaryToCapture(returnFiber);\n\n if (suspenseBoundary !== null) {\n suspenseBoundary.flags &= ~ForceClientRender;\n markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes); // We only attach ping listeners in concurrent mode. Legacy Suspense always\n // commits fallbacks synchronously, so there are no pings.\n\n if (suspenseBoundary.mode & ConcurrentMode) {\n attachPingListener(root, wakeable, rootRenderLanes);\n }\n\n attachRetryListener(suspenseBoundary, root, wakeable);\n return;\n } else {\n // No boundary was found. Unless this is a sync update, this is OK.\n // We can suspend and wait for more data to arrive.\n if (!includesSyncLane(rootRenderLanes)) {\n // This is not a sync update. Suspend. Since we're not activating a\n // Suspense boundary, this will unwind all the way to the root without\n // performing a second pass to render a fallback. (This is arguably how\n // refresh transitions should work, too, since we're not going to commit\n // the fallbacks anyway.)\n //\n // This case also applies to initial hydration.\n attachPingListener(root, wakeable, rootRenderLanes);\n renderDidSuspendDelayIfPossible();\n return;\n } // This is a sync/discrete update. We treat this case like an error\n // because discrete renders are expected to produce a complete tree\n // synchronously to maintain consistency with external state.\n\n\n var uncaughtSuspenseError = new Error('A component suspended while responding to synchronous input. This ' + 'will cause the UI to be replaced with a loading indicator. To ' + 'fix, updates that suspend should be wrapped ' + 'with startTransition.'); // If we're outside a transition, fall through to the regular error path.\n // The error will be caught by the nearest suspense boundary.\n\n value = uncaughtSuspenseError;\n }\n } else {\n // This is a regular error, not a Suspense wakeable.\n if (getIsHydrating() && sourceFiber.mode & ConcurrentMode) {\n markDidThrowWhileHydratingDEV();\n\n var _suspenseBoundary = getNearestSuspenseBoundaryToCapture(returnFiber); // If the error was thrown during hydration, we may be able to recover by\n // discarding the dehydrated content and switching to a client render.\n // Instead of surfacing the error, find the nearest Suspense boundary\n // and render it again without hydration.\n\n\n if (_suspenseBoundary !== null) {\n if ((_suspenseBoundary.flags & ShouldCapture) === NoFlags) {\n // Set a flag to indicate that we should try rendering the normal\n // children again, not the fallback.\n _suspenseBoundary.flags |= ForceClientRender;\n }\n\n markSuspenseBoundaryShouldCapture(_suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes); // Even though the user may not be affected by this error, we should\n // still log it so it can be fixed.\n\n queueHydrationError(createCapturedValueAtFiber(value, sourceFiber));\n return;\n }\n }\n }\n\n value = createCapturedValueAtFiber(value, sourceFiber);\n renderDidError(value); // We didn't find a boundary that could handle this type of exception. Start\n // over and traverse parent path again, this time treating the exception\n // as an error.\n\n var workInProgress = returnFiber;\n\n do {\n switch (workInProgress.tag) {\n case HostRoot:\n {\n var _errorInfo = value;\n workInProgress.flags |= ShouldCapture;\n var lane = pickArbitraryLane(rootRenderLanes);\n workInProgress.lanes = mergeLanes(workInProgress.lanes, lane);\n var update = createRootErrorUpdate(workInProgress, _errorInfo, lane);\n enqueueCapturedUpdate(workInProgress, update);\n return;\n }\n\n case ClassComponent:\n // Capture and retry\n var errorInfo = value;\n var ctor = workInProgress.type;\n var instance = workInProgress.stateNode;\n\n if ((workInProgress.flags & DidCapture) === NoFlags && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {\n workInProgress.flags |= ShouldCapture;\n\n var _lane = pickArbitraryLane(rootRenderLanes);\n\n workInProgress.lanes = mergeLanes(workInProgress.lanes, _lane); // Schedule the error boundary to re-render using updated state\n\n var _update = createClassErrorUpdate(workInProgress, errorInfo, _lane);\n\n enqueueCapturedUpdate(workInProgress, _update);\n return;\n }\n\n break;\n }\n\n workInProgress = workInProgress.return;\n } while (workInProgress !== null);\n}\n\nfunction getSuspendedCache() {\n {\n return null;\n } // This function is called when a Suspense boundary suspends. It returns the\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar didReceiveUpdate = false;\nvar didWarnAboutBadClass;\nvar didWarnAboutModulePatternComponent;\nvar didWarnAboutContextTypeOnFunctionComponent;\nvar didWarnAboutGetDerivedStateOnFunctionComponent;\nvar didWarnAboutFunctionRefs;\nvar didWarnAboutReassigningProps;\nvar didWarnAboutRevealOrder;\nvar didWarnAboutTailOptions;\nvar didWarnAboutDefaultPropsOnFunctionComponent;\n\n{\n didWarnAboutBadClass = {};\n didWarnAboutModulePatternComponent = {};\n didWarnAboutContextTypeOnFunctionComponent = {};\n didWarnAboutGetDerivedStateOnFunctionComponent = {};\n didWarnAboutFunctionRefs = {};\n didWarnAboutReassigningProps = false;\n didWarnAboutRevealOrder = {};\n didWarnAboutTailOptions = {};\n didWarnAboutDefaultPropsOnFunctionComponent = {};\n}\n\nfunction reconcileChildren(current, workInProgress, nextChildren, renderLanes) {\n if (current === null) {\n // If this is a fresh new component that hasn't been rendered yet, we\n // won't update its child set by applying minimal side-effects. Instead,\n // we will add them all to the child before it gets rendered. That means\n // we can optimize this reconciliation pass by not tracking side-effects.\n workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderLanes);\n } else {\n // If the current child is the same as the work in progress, it means that\n // we haven't yet started any work on these children. Therefore, we use\n // the clone algorithm to create a copy of all the current children.\n // If we had any progressed work already, that is invalid at this point so\n // let's throw it out.\n workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes);\n }\n}\n\nfunction forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes) {\n // This function is fork of reconcileChildren. It's used in cases where we\n // want to reconcile without matching against the existing set. This has the\n // effect of all current children being unmounted; even if the type and key\n // are the same, the old child is unmounted and a new child is created.\n //\n // To do this, we're going to go through the reconcile algorithm twice. In\n // the first pass, we schedule a deletion for all the current children by\n // passing null.\n workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes); // In the second pass, we mount the new children. The trick here is that we\n // pass null in place of where we usually pass the current child set. This has\n // the effect of remounting all children regardless of whether their\n // identities match.\n\n workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes);\n}\n\nfunction updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) {\n // TODO: current can be non-null here even if the component\n // hasn't yet mounted. This happens after the first render suspends.\n // We'll need to figure out if this is fine or can cause issues.\n {\n if (workInProgress.type !== workInProgress.elementType) {\n // Lazy component props can't be validated in createElement\n // because they're only guaranteed to be resolved here.\n var innerPropTypes = Component.propTypes;\n\n if (innerPropTypes) {\n checkPropTypes(innerPropTypes, nextProps, // Resolved props\n 'prop', getComponentNameFromType(Component));\n }\n }\n }\n\n var render = Component.render;\n var ref = workInProgress.ref; // The rest is a fork of updateFunctionComponent\n\n var nextChildren;\n var hasId;\n prepareToReadContext(workInProgress, renderLanes);\n\n {\n markComponentRenderStarted(workInProgress);\n }\n\n {\n ReactCurrentOwner$1.current = workInProgress;\n setIsRendering(true);\n nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes);\n hasId = checkDidRenderIdHook();\n\n if ( workInProgress.mode & StrictLegacyMode) {\n setIsStrictModeForDevtools(true);\n\n try {\n nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes);\n hasId = checkDidRenderIdHook();\n } finally {\n setIsStrictModeForDevtools(false);\n }\n }\n\n setIsRendering(false);\n }\n\n {\n markComponentRenderStopped();\n }\n\n if (current !== null && !didReceiveUpdate) {\n bailoutHooks(current, workInProgress, renderLanes);\n return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n }\n\n if (getIsHydrating() && hasId) {\n pushMaterializedTreeId(workInProgress);\n } // React DevTools reads this flag.\n\n\n workInProgress.flags |= PerformedWork;\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n return workInProgress.child;\n}\n\nfunction updateMemoComponent(current, workInProgress, Component, nextProps, renderLanes) {\n if (current === null) {\n var type = Component.type;\n\n if (isSimpleFunctionComponent(type) && Component.compare === null && // SimpleMemoComponent codepath doesn't resolve outer props either.\n Component.defaultProps === undefined) {\n var resolvedType = type;\n\n {\n resolvedType = resolveFunctionForHotReloading(type);\n } // If this is a plain function component without default props,\n // and with only the default shallow comparison, we upgrade it\n // to a SimpleMemoComponent to allow fast path updates.\n\n\n workInProgress.tag = SimpleMemoComponent;\n workInProgress.type = resolvedType;\n\n {\n validateFunctionComponentInDev(workInProgress, type);\n }\n\n return updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, renderLanes);\n }\n\n {\n var innerPropTypes = type.propTypes;\n\n if (innerPropTypes) {\n // Inner memo component props aren't currently validated in createElement.\n // We could move it there, but we'd still need this for lazy code path.\n checkPropTypes(innerPropTypes, nextProps, // Resolved props\n 'prop', getComponentNameFromType(type));\n }\n\n if ( Component.defaultProps !== undefined) {\n var componentName = getComponentNameFromType(type) || 'Unknown';\n\n if (!didWarnAboutDefaultPropsOnFunctionComponent[componentName]) {\n error('%s: Support for defaultProps will be removed from memo components ' + 'in a future major release. Use JavaScript default parameters instead.', componentName);\n\n didWarnAboutDefaultPropsOnFunctionComponent[componentName] = true;\n }\n }\n }\n\n var child = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes);\n child.ref = workInProgress.ref;\n child.return = workInProgress;\n workInProgress.child = child;\n return child;\n }\n\n {\n var _type = Component.type;\n var _innerPropTypes = _type.propTypes;\n\n if (_innerPropTypes) {\n // Inner memo component props aren't currently validated in createElement.\n // We could move it there, but we'd still need this for lazy code path.\n checkPropTypes(_innerPropTypes, nextProps, // Resolved props\n 'prop', getComponentNameFromType(_type));\n }\n }\n\n var currentChild = current.child; // This is always exactly one child\n\n var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes);\n\n if (!hasScheduledUpdateOrContext) {\n // This will be the props with resolved defaultProps,\n // unlike current.memoizedProps which will be the unresolved ones.\n var prevProps = currentChild.memoizedProps; // Default to shallow comparison\n\n var compare = Component.compare;\n compare = compare !== null ? compare : shallowEqual;\n\n if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) {\n return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n }\n } // React DevTools reads this flag.\n\n\n workInProgress.flags |= PerformedWork;\n var newChild = createWorkInProgress(currentChild, nextProps);\n newChild.ref = workInProgress.ref;\n newChild.return = workInProgress;\n workInProgress.child = newChild;\n return newChild;\n}\n\nfunction updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) {\n // TODO: current can be non-null here even if the component\n // hasn't yet mounted. This happens when the inner render suspends.\n // We'll need to figure out if this is fine or can cause issues.\n {\n if (workInProgress.type !== workInProgress.elementType) {\n // Lazy component props can't be validated in createElement\n // because they're only guaranteed to be resolved here.\n var outerMemoType = workInProgress.elementType;\n\n if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {\n // We warn when you define propTypes on lazy()\n // so let's just skip over it to find memo() outer wrapper.\n // Inner props for memo are validated later.\n var lazyComponent = outerMemoType;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n outerMemoType = init(payload);\n } catch (x) {\n outerMemoType = null;\n } // Inner propTypes will be validated in the function component path.\n\n\n var outerPropTypes = outerMemoType && outerMemoType.propTypes;\n\n if (outerPropTypes) {\n checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)\n 'prop', getComponentNameFromType(outerMemoType));\n }\n }\n }\n }\n\n if (current !== null) {\n var prevProps = current.memoizedProps;\n\n if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && ( // Prevent bailout if the implementation changed due to hot reload.\n workInProgress.type === current.type )) {\n didReceiveUpdate = false; // The props are shallowly equal. Reuse the previous props object, like we\n // would during a normal fiber bailout.\n //\n // We don't have strong guarantees that the props object is referentially\n // equal during updates where we can't bail out anyway — like if the props\n // are shallowly equal, but there's a local state or context update in the\n // same batch.\n //\n // However, as a principle, we should aim to make the behavior consistent\n // across different ways of memoizing a component. For example, React.memo\n // has a different internal Fiber layout if you pass a normal function\n // component (SimpleMemoComponent) versus if you pass a different type\n // like forwardRef (MemoComponent). But this is an implementation detail.\n // Wrapping a component in forwardRef (or React.lazy, etc) shouldn't\n // affect whether the props object is reused during a bailout.\n\n workInProgress.pendingProps = nextProps = prevProps;\n\n if (!checkScheduledUpdateOrContext(current, renderLanes)) {\n // The pending lanes were cleared at the beginning of beginWork. We're\n // about to bail out, but there might be other lanes that weren't\n // included in the current render. Usually, the priority level of the\n // remaining updates is accumulated during the evaluation of the\n // component (i.e. when processing the update queue). But since since\n // we're bailing out early *without* evaluating the component, we need\n // to account for it here, too. Reset to the value of the current fiber.\n // NOTE: This only applies to SimpleMemoComponent, not MemoComponent,\n // because a MemoComponent fiber does not have hooks or an update queue;\n // rather, it wraps around an inner component, which may or may not\n // contains hooks.\n // TODO: Move the reset at in beginWork out of the common path so that\n // this is no longer necessary.\n workInProgress.lanes = current.lanes;\n return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) {\n // This is a special case that only exists for legacy mode.\n // See https://github.com/facebook/react/pull/19216.\n didReceiveUpdate = true;\n }\n }\n }\n\n return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes);\n}\n\nfunction updateOffscreenComponent(current, workInProgress, renderLanes) {\n var nextProps = workInProgress.pendingProps;\n var nextChildren = nextProps.children;\n var prevState = current !== null ? current.memoizedState : null;\n\n if (nextProps.mode === 'hidden' || enableLegacyHidden ) {\n // Rendering a hidden tree.\n if ((workInProgress.mode & ConcurrentMode) === NoMode) {\n // In legacy sync mode, don't defer the subtree. Render it now.\n // TODO: Consider how Offscreen should work with transitions in the future\n var nextState = {\n baseLanes: NoLanes,\n cachePool: null,\n transitions: null\n };\n workInProgress.memoizedState = nextState;\n\n pushRenderLanes(workInProgress, renderLanes);\n } else if (!includesSomeLane(renderLanes, OffscreenLane)) {\n var spawnedCachePool = null; // We're hidden, and we're not rendering at Offscreen. We will bail out\n // and resume this tree later.\n\n var nextBaseLanes;\n\n if (prevState !== null) {\n var prevBaseLanes = prevState.baseLanes;\n nextBaseLanes = mergeLanes(prevBaseLanes, renderLanes);\n } else {\n nextBaseLanes = renderLanes;\n } // Schedule this fiber to re-render at offscreen priority. Then bailout.\n\n\n workInProgress.lanes = workInProgress.childLanes = laneToLanes(OffscreenLane);\n var _nextState = {\n baseLanes: nextBaseLanes,\n cachePool: spawnedCachePool,\n transitions: null\n };\n workInProgress.memoizedState = _nextState;\n workInProgress.updateQueue = null;\n // to avoid a push/pop misalignment.\n\n\n pushRenderLanes(workInProgress, nextBaseLanes);\n\n return null;\n } else {\n // This is the second render. The surrounding visible content has already\n // committed. Now we resume rendering the hidden tree.\n // Rendering at offscreen, so we can clear the base lanes.\n var _nextState2 = {\n baseLanes: NoLanes,\n cachePool: null,\n transitions: null\n };\n workInProgress.memoizedState = _nextState2; // Push the lanes that were skipped when we bailed out.\n\n var subtreeRenderLanes = prevState !== null ? prevState.baseLanes : renderLanes;\n\n pushRenderLanes(workInProgress, subtreeRenderLanes);\n }\n } else {\n // Rendering a visible tree.\n var _subtreeRenderLanes;\n\n if (prevState !== null) {\n // We're going from hidden -> visible.\n _subtreeRenderLanes = mergeLanes(prevState.baseLanes, renderLanes);\n\n workInProgress.memoizedState = null;\n } else {\n // We weren't previously hidden, and we still aren't, so there's nothing\n // special to do. Need to push to the stack regardless, though, to avoid\n // a push/pop misalignment.\n _subtreeRenderLanes = renderLanes;\n }\n\n pushRenderLanes(workInProgress, _subtreeRenderLanes);\n }\n\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n return workInProgress.child;\n} // Note: These happen to have identical begin phases, for now. We shouldn't hold\n\nfunction updateFragment(current, workInProgress, renderLanes) {\n var nextChildren = workInProgress.pendingProps;\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n return workInProgress.child;\n}\n\nfunction updateMode(current, workInProgress, renderLanes) {\n var nextChildren = workInProgress.pendingProps.children;\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n return workInProgress.child;\n}\n\nfunction updateProfiler(current, workInProgress, renderLanes) {\n {\n workInProgress.flags |= Update;\n\n {\n // Reset effect durations for the next eventual effect phase.\n // These are reset during render to allow the DevTools commit hook a chance to read them,\n var stateNode = workInProgress.stateNode;\n stateNode.effectDuration = 0;\n stateNode.passiveEffectDuration = 0;\n }\n }\n\n var nextProps = workInProgress.pendingProps;\n var nextChildren = nextProps.children;\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n return workInProgress.child;\n}\n\nfunction markRef(current, workInProgress) {\n var ref = workInProgress.ref;\n\n if (current === null && ref !== null || current !== null && current.ref !== ref) {\n // Schedule a Ref effect\n workInProgress.flags |= Ref;\n\n {\n workInProgress.flags |= RefStatic;\n }\n }\n}\n\nfunction updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) {\n {\n if (workInProgress.type !== workInProgress.elementType) {\n // Lazy component props can't be validated in createElement\n // because they're only guaranteed to be resolved here.\n var innerPropTypes = Component.propTypes;\n\n if (innerPropTypes) {\n checkPropTypes(innerPropTypes, nextProps, // Resolved props\n 'prop', getComponentNameFromType(Component));\n }\n }\n }\n\n var context;\n\n {\n var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);\n context = getMaskedContext(workInProgress, unmaskedContext);\n }\n\n var nextChildren;\n var hasId;\n prepareToReadContext(workInProgress, renderLanes);\n\n {\n markComponentRenderStarted(workInProgress);\n }\n\n {\n ReactCurrentOwner$1.current = workInProgress;\n setIsRendering(true);\n nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes);\n hasId = checkDidRenderIdHook();\n\n if ( workInProgress.mode & StrictLegacyMode) {\n setIsStrictModeForDevtools(true);\n\n try {\n nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes);\n hasId = checkDidRenderIdHook();\n } finally {\n setIsStrictModeForDevtools(false);\n }\n }\n\n setIsRendering(false);\n }\n\n {\n markComponentRenderStopped();\n }\n\n if (current !== null && !didReceiveUpdate) {\n bailoutHooks(current, workInProgress, renderLanes);\n return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n }\n\n if (getIsHydrating() && hasId) {\n pushMaterializedTreeId(workInProgress);\n } // React DevTools reads this flag.\n\n\n workInProgress.flags |= PerformedWork;\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n return workInProgress.child;\n}\n\nfunction updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) {\n {\n // This is used by DevTools to force a boundary to error.\n switch (shouldError(workInProgress)) {\n case false:\n {\n var _instance = workInProgress.stateNode;\n var ctor = workInProgress.type; // TODO This way of resetting the error boundary state is a hack.\n // Is there a better way to do this?\n\n var tempInstance = new ctor(workInProgress.memoizedProps, _instance.context);\n var state = tempInstance.state;\n\n _instance.updater.enqueueSetState(_instance, state, null);\n\n break;\n }\n\n case true:\n {\n workInProgress.flags |= DidCapture;\n workInProgress.flags |= ShouldCapture; // eslint-disable-next-line react-internal/prod-error-codes\n\n var error$1 = new Error('Simulated error coming from DevTools');\n var lane = pickArbitraryLane(renderLanes);\n workInProgress.lanes = mergeLanes(workInProgress.lanes, lane); // Schedule the error boundary to re-render using updated state\n\n var update = createClassErrorUpdate(workInProgress, createCapturedValueAtFiber(error$1, workInProgress), lane);\n enqueueCapturedUpdate(workInProgress, update);\n break;\n }\n }\n\n if (workInProgress.type !== workInProgress.elementType) {\n // Lazy component props can't be validated in createElement\n // because they're only guaranteed to be resolved here.\n var innerPropTypes = Component.propTypes;\n\n if (innerPropTypes) {\n checkPropTypes(innerPropTypes, nextProps, // Resolved props\n 'prop', getComponentNameFromType(Component));\n }\n }\n } // Push context providers early to prevent context stack mismatches.\n // During mounting we don't know the child context yet as the instance doesn't exist.\n // We will invalidate the child context in finishClassComponent() right after rendering.\n\n\n var hasContext;\n\n if (isContextProvider(Component)) {\n hasContext = true;\n pushContextProvider(workInProgress);\n } else {\n hasContext = false;\n }\n\n prepareToReadContext(workInProgress, renderLanes);\n var instance = workInProgress.stateNode;\n var shouldUpdate;\n\n if (instance === null) {\n resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); // In the initial pass we might need to construct the instance.\n\n constructClassInstance(workInProgress, Component, nextProps);\n mountClassInstance(workInProgress, Component, nextProps, renderLanes);\n shouldUpdate = true;\n } else if (current === null) {\n // In a resume, we'll already have an instance we can reuse.\n shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderLanes);\n } else {\n shouldUpdate = updateClassInstance(current, workInProgress, Component, nextProps, renderLanes);\n }\n\n var nextUnitOfWork = finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes);\n\n {\n var inst = workInProgress.stateNode;\n\n if (shouldUpdate && inst.props !== nextProps) {\n if (!didWarnAboutReassigningProps) {\n error('It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentNameFromFiber(workInProgress) || 'a component');\n }\n\n didWarnAboutReassigningProps = true;\n }\n }\n\n return nextUnitOfWork;\n}\n\nfunction finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) {\n // Refs should update even if shouldComponentUpdate returns false\n markRef(current, workInProgress);\n var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags;\n\n if (!shouldUpdate && !didCaptureError) {\n // Context providers should defer to sCU for rendering\n if (hasContext) {\n invalidateContextProvider(workInProgress, Component, false);\n }\n\n return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n }\n\n var instance = workInProgress.stateNode; // Rerender\n\n ReactCurrentOwner$1.current = workInProgress;\n var nextChildren;\n\n if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {\n // If we captured an error, but getDerivedStateFromError is not defined,\n // unmount all the children. componentDidCatch will schedule an update to\n // re-render a fallback. This is temporary until we migrate everyone to\n // the new API.\n // TODO: Warn in a future release.\n nextChildren = null;\n\n {\n stopProfilerTimerIfRunning();\n }\n } else {\n {\n markComponentRenderStarted(workInProgress);\n }\n\n {\n setIsRendering(true);\n nextChildren = instance.render();\n\n if ( workInProgress.mode & StrictLegacyMode) {\n setIsStrictModeForDevtools(true);\n\n try {\n instance.render();\n } finally {\n setIsStrictModeForDevtools(false);\n }\n }\n\n setIsRendering(false);\n }\n\n {\n markComponentRenderStopped();\n }\n } // React DevTools reads this flag.\n\n\n workInProgress.flags |= PerformedWork;\n\n if (current !== null && didCaptureError) {\n // If we're recovering from an error, reconcile without reusing any of\n // the existing children. Conceptually, the normal children and the children\n // that are shown on error are two different sets, so we shouldn't reuse\n // normal children even if their identities match.\n forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes);\n } else {\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n } // Memoize state using the values we just used to render.\n // TODO: Restructure so we never read values from the instance.\n\n\n workInProgress.memoizedState = instance.state; // The context might have changed so we need to recalculate it.\n\n if (hasContext) {\n invalidateContextProvider(workInProgress, Component, true);\n }\n\n return workInProgress.child;\n}\n\nfunction pushHostRootContext(workInProgress) {\n var root = workInProgress.stateNode;\n\n if (root.pendingContext) {\n pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);\n } else if (root.context) {\n // Should always be set\n pushTopLevelContextObject(workInProgress, root.context, false);\n }\n\n pushHostContainer(workInProgress, root.containerInfo);\n}\n\nfunction updateHostRoot(current, workInProgress, renderLanes) {\n pushHostRootContext(workInProgress);\n\n if (current === null) {\n throw new Error('Should have a current fiber. This is a bug in React.');\n }\n\n var nextProps = workInProgress.pendingProps;\n var prevState = workInProgress.memoizedState;\n var prevChildren = prevState.element;\n cloneUpdateQueue(current, workInProgress);\n processUpdateQueue(workInProgress, nextProps, null, renderLanes);\n var nextState = workInProgress.memoizedState;\n var root = workInProgress.stateNode;\n // being called \"element\".\n\n\n var nextChildren = nextState.element;\n\n if ( prevState.isDehydrated) {\n // This is a hydration root whose shell has not yet hydrated. We should\n // attempt to hydrate.\n // Flip isDehydrated to false to indicate that when this render\n // finishes, the root will no longer be dehydrated.\n var overrideState = {\n element: nextChildren,\n isDehydrated: false,\n cache: nextState.cache,\n pendingSuspenseBoundaries: nextState.pendingSuspenseBoundaries,\n transitions: nextState.transitions\n };\n var updateQueue = workInProgress.updateQueue; // `baseState` can always be the last state because the root doesn't\n // have reducer functions so it doesn't need rebasing.\n\n updateQueue.baseState = overrideState;\n workInProgress.memoizedState = overrideState;\n\n if (workInProgress.flags & ForceClientRender) {\n // Something errored during a previous attempt to hydrate the shell, so we\n // forced a client render.\n var recoverableError = createCapturedValueAtFiber(new Error('There was an error while hydrating. Because the error happened outside ' + 'of a Suspense boundary, the entire root will switch to ' + 'client rendering.'), workInProgress);\n return mountHostRootWithoutHydrating(current, workInProgress, nextChildren, renderLanes, recoverableError);\n } else if (nextChildren !== prevChildren) {\n var _recoverableError = createCapturedValueAtFiber(new Error('This root received an early update, before anything was able ' + 'hydrate. Switched the entire root to client rendering.'), workInProgress);\n\n return mountHostRootWithoutHydrating(current, workInProgress, nextChildren, renderLanes, _recoverableError);\n } else {\n // The outermost shell has not hydrated yet. Start hydrating.\n enterHydrationState(workInProgress);\n\n var child = mountChildFibers(workInProgress, null, nextChildren, renderLanes);\n workInProgress.child = child;\n var node = child;\n\n while (node) {\n // Mark each child as hydrating. This is a fast path to know whether this\n // tree is part of a hydrating tree. This is used to determine if a child\n // node has fully mounted yet, and for scheduling event replaying.\n // Conceptually this is similar to Placement in that a new subtree is\n // inserted into the React tree here. It just happens to not need DOM\n // mutations because it already exists.\n node.flags = node.flags & ~Placement | Hydrating;\n node = node.sibling;\n }\n }\n } else {\n // Root is not dehydrated. Either this is a client-only root, or it\n // already hydrated.\n resetHydrationState();\n\n if (nextChildren === prevChildren) {\n return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n }\n\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n }\n\n return workInProgress.child;\n}\n\nfunction mountHostRootWithoutHydrating(current, workInProgress, nextChildren, renderLanes, recoverableError) {\n // Revert to client rendering.\n resetHydrationState();\n queueHydrationError(recoverableError);\n workInProgress.flags |= ForceClientRender;\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n return workInProgress.child;\n}\n\nfunction updateHostComponent(current, workInProgress, renderLanes) {\n pushHostContext(workInProgress);\n\n if (current === null) {\n tryToClaimNextHydratableInstance(workInProgress);\n }\n\n var type = workInProgress.type;\n var nextProps = workInProgress.pendingProps;\n var prevProps = current !== null ? current.memoizedProps : null;\n var nextChildren = nextProps.children;\n var isDirectTextChild = shouldSetTextContent(type, nextProps);\n\n if (isDirectTextChild) {\n // We special case a direct text child of a host node. This is a common\n // case. We won't handle it as a reified child. We will instead handle\n // this in the host environment that also has access to this prop. That\n // avoids allocating another HostText fiber and traversing it.\n nextChildren = null;\n } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {\n // If we're switching from a direct text child to a normal child, or to\n // empty, we need to schedule the text content to be reset.\n workInProgress.flags |= ContentReset;\n }\n\n markRef(current, workInProgress);\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n return workInProgress.child;\n}\n\nfunction updateHostText(current, workInProgress) {\n if (current === null) {\n tryToClaimNextHydratableInstance(workInProgress);\n } // Nothing to do here. This is terminal. We'll do the completion step\n // immediately after.\n\n\n return null;\n}\n\nfunction mountLazyComponent(_current, workInProgress, elementType, renderLanes) {\n resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress);\n var props = workInProgress.pendingProps;\n var lazyComponent = elementType;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n var Component = init(payload); // Store the unwrapped component in the type.\n\n workInProgress.type = Component;\n var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);\n var resolvedProps = resolveDefaultProps(Component, props);\n var child;\n\n switch (resolvedTag) {\n case FunctionComponent:\n {\n {\n validateFunctionComponentInDev(workInProgress, Component);\n workInProgress.type = Component = resolveFunctionForHotReloading(Component);\n }\n\n child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderLanes);\n return child;\n }\n\n case ClassComponent:\n {\n {\n workInProgress.type = Component = resolveClassForHotReloading(Component);\n }\n\n child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderLanes);\n return child;\n }\n\n case ForwardRef:\n {\n {\n workInProgress.type = Component = resolveForwardRefForHotReloading(Component);\n }\n\n child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderLanes);\n return child;\n }\n\n case MemoComponent:\n {\n {\n if (workInProgress.type !== workInProgress.elementType) {\n var outerPropTypes = Component.propTypes;\n\n if (outerPropTypes) {\n checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only\n 'prop', getComponentNameFromType(Component));\n }\n }\n }\n\n child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too\n renderLanes);\n return child;\n }\n }\n\n var hint = '';\n\n {\n if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) {\n hint = ' Did you wrap a component in React.lazy() more than once?';\n }\n } // This message intentionally doesn't mention ForwardRef or MemoComponent\n // because the fact that it's a separate type of work is an\n // implementation detail.\n\n\n throw new Error(\"Element type is invalid. Received a promise that resolves to: \" + Component + \". \" + (\"Lazy element type must resolve to a class or function.\" + hint));\n}\n\nfunction mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderLanes) {\n resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); // Promote the fiber to a class and try rendering again.\n\n workInProgress.tag = ClassComponent; // The rest of this function is a fork of `updateClassComponent`\n // Push context providers early to prevent context stack mismatches.\n // During mounting we don't know the child context yet as the instance doesn't exist.\n // We will invalidate the child context in finishClassComponent() right after rendering.\n\n var hasContext;\n\n if (isContextProvider(Component)) {\n hasContext = true;\n pushContextProvider(workInProgress);\n } else {\n hasContext = false;\n }\n\n prepareToReadContext(workInProgress, renderLanes);\n constructClassInstance(workInProgress, Component, nextProps);\n mountClassInstance(workInProgress, Component, nextProps, renderLanes);\n return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes);\n}\n\nfunction mountIndeterminateComponent(_current, workInProgress, Component, renderLanes) {\n resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress);\n var props = workInProgress.pendingProps;\n var context;\n\n {\n var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);\n context = getMaskedContext(workInProgress, unmaskedContext);\n }\n\n prepareToReadContext(workInProgress, renderLanes);\n var value;\n var hasId;\n\n {\n markComponentRenderStarted(workInProgress);\n }\n\n {\n if (Component.prototype && typeof Component.prototype.render === 'function') {\n var componentName = getComponentNameFromType(Component) || 'Unknown';\n\n if (!didWarnAboutBadClass[componentName]) {\n error(\"The <%s /> component appears to have a render method, but doesn't extend React.Component. \" + 'This is likely to cause errors. Change %s to extend React.Component instead.', componentName, componentName);\n\n didWarnAboutBadClass[componentName] = true;\n }\n }\n\n if (workInProgress.mode & StrictLegacyMode) {\n ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);\n }\n\n setIsRendering(true);\n ReactCurrentOwner$1.current = workInProgress;\n value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes);\n hasId = checkDidRenderIdHook();\n setIsRendering(false);\n }\n\n {\n markComponentRenderStopped();\n } // React DevTools reads this flag.\n\n\n workInProgress.flags |= PerformedWork;\n\n {\n // Support for module components is deprecated and is removed behind a flag.\n // Whether or not it would crash later, we want to show a good message in DEV first.\n if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {\n var _componentName = getComponentNameFromType(Component) || 'Unknown';\n\n if (!didWarnAboutModulePatternComponent[_componentName]) {\n error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + \"If you can't use a class try assigning the prototype on the function as a workaround. \" + \"`%s.prototype = React.Component.prototype`. Don't use an arrow function since it \" + 'cannot be called with `new` by React.', _componentName, _componentName, _componentName);\n\n didWarnAboutModulePatternComponent[_componentName] = true;\n }\n }\n }\n\n if ( // Run these checks in production only if the flag is off.\n // Eventually we'll delete this branch altogether.\n typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {\n {\n var _componentName2 = getComponentNameFromType(Component) || 'Unknown';\n\n if (!didWarnAboutModulePatternComponent[_componentName2]) {\n error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + \"If you can't use a class try assigning the prototype on the function as a workaround. \" + \"`%s.prototype = React.Component.prototype`. Don't use an arrow function since it \" + 'cannot be called with `new` by React.', _componentName2, _componentName2, _componentName2);\n\n didWarnAboutModulePatternComponent[_componentName2] = true;\n }\n } // Proceed under the assumption that this is a class instance\n\n\n workInProgress.tag = ClassComponent; // Throw out any hooks that were used.\n\n workInProgress.memoizedState = null;\n workInProgress.updateQueue = null; // Push context providers early to prevent context stack mismatches.\n // During mounting we don't know the child context yet as the instance doesn't exist.\n // We will invalidate the child context in finishClassComponent() right after rendering.\n\n var hasContext = false;\n\n if (isContextProvider(Component)) {\n hasContext = true;\n pushContextProvider(workInProgress);\n } else {\n hasContext = false;\n }\n\n workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;\n initializeUpdateQueue(workInProgress);\n adoptClassInstance(workInProgress, value);\n mountClassInstance(workInProgress, Component, props, renderLanes);\n return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes);\n } else {\n // Proceed under the assumption that this is a function component\n workInProgress.tag = FunctionComponent;\n\n {\n\n if ( workInProgress.mode & StrictLegacyMode) {\n setIsStrictModeForDevtools(true);\n\n try {\n value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes);\n hasId = checkDidRenderIdHook();\n } finally {\n setIsStrictModeForDevtools(false);\n }\n }\n }\n\n if (getIsHydrating() && hasId) {\n pushMaterializedTreeId(workInProgress);\n }\n\n reconcileChildren(null, workInProgress, value, renderLanes);\n\n {\n validateFunctionComponentInDev(workInProgress, Component);\n }\n\n return workInProgress.child;\n }\n}\n\nfunction validateFunctionComponentInDev(workInProgress, Component) {\n {\n if (Component) {\n if (Component.childContextTypes) {\n error('%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component');\n }\n }\n\n if (workInProgress.ref !== null) {\n var info = '';\n var ownerName = getCurrentFiberOwnerNameInDevOrNull();\n\n if (ownerName) {\n info += '\\n\\nCheck the render method of `' + ownerName + '`.';\n }\n\n var warningKey = ownerName || '';\n var debugSource = workInProgress._debugSource;\n\n if (debugSource) {\n warningKey = debugSource.fileName + ':' + debugSource.lineNumber;\n }\n\n if (!didWarnAboutFunctionRefs[warningKey]) {\n didWarnAboutFunctionRefs[warningKey] = true;\n\n error('Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info);\n }\n }\n\n if ( Component.defaultProps !== undefined) {\n var componentName = getComponentNameFromType(Component) || 'Unknown';\n\n if (!didWarnAboutDefaultPropsOnFunctionComponent[componentName]) {\n error('%s: Support for defaultProps will be removed from function components ' + 'in a future major release. Use JavaScript default parameters instead.', componentName);\n\n didWarnAboutDefaultPropsOnFunctionComponent[componentName] = true;\n }\n }\n\n if (typeof Component.getDerivedStateFromProps === 'function') {\n var _componentName3 = getComponentNameFromType(Component) || 'Unknown';\n\n if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3]) {\n error('%s: Function components do not support getDerivedStateFromProps.', _componentName3);\n\n didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true;\n }\n }\n\n if (typeof Component.contextType === 'object' && Component.contextType !== null) {\n var _componentName4 = getComponentNameFromType(Component) || 'Unknown';\n\n if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) {\n error('%s: Function components do not support contextType.', _componentName4);\n\n didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true;\n }\n }\n }\n}\n\nvar SUSPENDED_MARKER = {\n dehydrated: null,\n treeContext: null,\n retryLane: NoLane\n};\n\nfunction mountSuspenseOffscreenState(renderLanes) {\n return {\n baseLanes: renderLanes,\n cachePool: getSuspendedCache(),\n transitions: null\n };\n}\n\nfunction updateSuspenseOffscreenState(prevOffscreenState, renderLanes) {\n var cachePool = null;\n\n return {\n baseLanes: mergeLanes(prevOffscreenState.baseLanes, renderLanes),\n cachePool: cachePool,\n transitions: prevOffscreenState.transitions\n };\n} // TODO: Probably should inline this back\n\n\nfunction shouldRemainOnFallback(suspenseContext, current, workInProgress, renderLanes) {\n // If we're already showing a fallback, there are cases where we need to\n // remain on that fallback regardless of whether the content has resolved.\n // For example, SuspenseList coordinates when nested content appears.\n if (current !== null) {\n var suspenseState = current.memoizedState;\n\n if (suspenseState === null) {\n // Currently showing content. Don't hide it, even if ForceSuspenseFallback\n // is true. More precise name might be \"ForceRemainSuspenseFallback\".\n // Note: This is a factoring smell. Can't remain on a fallback if there's\n // no fallback to remain on.\n return false;\n }\n } // Not currently showing content. Consult the Suspense context.\n\n\n return hasSuspenseContext(suspenseContext, ForceSuspenseFallback);\n}\n\nfunction getRemainingWorkInPrimaryTree(current, renderLanes) {\n // TODO: Should not remove render lanes that were pinged during this render\n return removeLanes(current.childLanes, renderLanes);\n}\n\nfunction updateSuspenseComponent(current, workInProgress, renderLanes) {\n var nextProps = workInProgress.pendingProps; // This is used by DevTools to force a boundary to suspend.\n\n {\n if (shouldSuspend(workInProgress)) {\n workInProgress.flags |= DidCapture;\n }\n }\n\n var suspenseContext = suspenseStackCursor.current;\n var showFallback = false;\n var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags;\n\n if (didSuspend || shouldRemainOnFallback(suspenseContext, current)) {\n // Something in this boundary's subtree already suspended. Switch to\n // rendering the fallback children.\n showFallback = true;\n workInProgress.flags &= ~DidCapture;\n } else {\n // Attempting the main content\n if (current === null || current.memoizedState !== null) {\n // This is a new mount or this boundary is already showing a fallback state.\n // Mark this subtree context as having at least one invisible parent that could\n // handle the fallback state.\n // Avoided boundaries are not considered since they cannot handle preferred fallback states.\n {\n suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext);\n }\n }\n }\n\n suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);\n pushSuspenseContext(workInProgress, suspenseContext); // OK, the next part is confusing. We're about to reconcile the Suspense\n // boundary's children. This involves some custom reconciliation logic. Two\n // main reasons this is so complicated.\n //\n // First, Legacy Mode has different semantics for backwards compatibility. The\n // primary tree will commit in an inconsistent state, so when we do the\n // second pass to render the fallback, we do some exceedingly, uh, clever\n // hacks to make that not totally break. Like transferring effects and\n // deletions from hidden tree. In Concurrent Mode, it's much simpler,\n // because we bailout on the primary tree completely and leave it in its old\n // state, no effects. Same as what we do for Offscreen (except that\n // Offscreen doesn't have the first render pass).\n //\n // Second is hydration. During hydration, the Suspense fiber has a slightly\n // different layout, where the child points to a dehydrated fragment, which\n // contains the DOM rendered by the server.\n //\n // Third, even if you set all that aside, Suspense is like error boundaries in\n // that we first we try to render one tree, and if that fails, we render again\n // and switch to a different tree. Like a try/catch block. So we have to track\n // which branch we're currently rendering. Ideally we would model this using\n // a stack.\n\n if (current === null) {\n // Initial mount\n // Special path for hydration\n // If we're currently hydrating, try to hydrate this boundary.\n tryToClaimNextHydratableInstance(workInProgress); // This could've been a dehydrated suspense component.\n\n var suspenseState = workInProgress.memoizedState;\n\n if (suspenseState !== null) {\n var dehydrated = suspenseState.dehydrated;\n\n if (dehydrated !== null) {\n return mountDehydratedSuspenseComponent(workInProgress, dehydrated);\n }\n }\n\n var nextPrimaryChildren = nextProps.children;\n var nextFallbackChildren = nextProps.fallback;\n\n if (showFallback) {\n var fallbackFragment = mountSuspenseFallbackChildren(workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes);\n var primaryChildFragment = workInProgress.child;\n primaryChildFragment.memoizedState = mountSuspenseOffscreenState(renderLanes);\n workInProgress.memoizedState = SUSPENDED_MARKER;\n\n return fallbackFragment;\n } else {\n return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren);\n }\n } else {\n // This is an update.\n // Special path for hydration\n var prevState = current.memoizedState;\n\n if (prevState !== null) {\n var _dehydrated = prevState.dehydrated;\n\n if (_dehydrated !== null) {\n return updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, _dehydrated, prevState, renderLanes);\n }\n }\n\n if (showFallback) {\n var _nextFallbackChildren = nextProps.fallback;\n var _nextPrimaryChildren = nextProps.children;\n var fallbackChildFragment = updateSuspenseFallbackChildren(current, workInProgress, _nextPrimaryChildren, _nextFallbackChildren, renderLanes);\n var _primaryChildFragment2 = workInProgress.child;\n var prevOffscreenState = current.child.memoizedState;\n _primaryChildFragment2.memoizedState = prevOffscreenState === null ? mountSuspenseOffscreenState(renderLanes) : updateSuspenseOffscreenState(prevOffscreenState, renderLanes);\n\n _primaryChildFragment2.childLanes = getRemainingWorkInPrimaryTree(current, renderLanes);\n workInProgress.memoizedState = SUSPENDED_MARKER;\n return fallbackChildFragment;\n } else {\n var _nextPrimaryChildren2 = nextProps.children;\n\n var _primaryChildFragment3 = updateSuspensePrimaryChildren(current, workInProgress, _nextPrimaryChildren2, renderLanes);\n\n workInProgress.memoizedState = null;\n return _primaryChildFragment3;\n }\n }\n}\n\nfunction mountSuspensePrimaryChildren(workInProgress, primaryChildren, renderLanes) {\n var mode = workInProgress.mode;\n var primaryChildProps = {\n mode: 'visible',\n children: primaryChildren\n };\n var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, mode);\n primaryChildFragment.return = workInProgress;\n workInProgress.child = primaryChildFragment;\n return primaryChildFragment;\n}\n\nfunction mountSuspenseFallbackChildren(workInProgress, primaryChildren, fallbackChildren, renderLanes) {\n var mode = workInProgress.mode;\n var progressedPrimaryFragment = workInProgress.child;\n var primaryChildProps = {\n mode: 'hidden',\n children: primaryChildren\n };\n var primaryChildFragment;\n var fallbackChildFragment;\n\n if ((mode & ConcurrentMode) === NoMode && progressedPrimaryFragment !== null) {\n // In legacy mode, we commit the primary tree as if it successfully\n // completed, even though it's in an inconsistent state.\n primaryChildFragment = progressedPrimaryFragment;\n primaryChildFragment.childLanes = NoLanes;\n primaryChildFragment.pendingProps = primaryChildProps;\n\n if ( workInProgress.mode & ProfileMode) {\n // Reset the durations from the first pass so they aren't included in the\n // final amounts. This seems counterintuitive, since we're intentionally\n // not measuring part of the render phase, but this makes it match what we\n // do in Concurrent Mode.\n primaryChildFragment.actualDuration = 0;\n primaryChildFragment.actualStartTime = -1;\n primaryChildFragment.selfBaseDuration = 0;\n primaryChildFragment.treeBaseDuration = 0;\n }\n\n fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null);\n } else {\n primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, mode);\n fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null);\n }\n\n primaryChildFragment.return = workInProgress;\n fallbackChildFragment.return = workInProgress;\n primaryChildFragment.sibling = fallbackChildFragment;\n workInProgress.child = primaryChildFragment;\n return fallbackChildFragment;\n}\n\nfunction mountWorkInProgressOffscreenFiber(offscreenProps, mode, renderLanes) {\n // The props argument to `createFiberFromOffscreen` is `any` typed, so we use\n // this wrapper function to constrain it.\n return createFiberFromOffscreen(offscreenProps, mode, NoLanes, null);\n}\n\nfunction updateWorkInProgressOffscreenFiber(current, offscreenProps) {\n // The props argument to `createWorkInProgress` is `any` typed, so we use this\n // wrapper function to constrain it.\n return createWorkInProgress(current, offscreenProps);\n}\n\nfunction updateSuspensePrimaryChildren(current, workInProgress, primaryChildren, renderLanes) {\n var currentPrimaryChildFragment = current.child;\n var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;\n var primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, {\n mode: 'visible',\n children: primaryChildren\n });\n\n if ((workInProgress.mode & ConcurrentMode) === NoMode) {\n primaryChildFragment.lanes = renderLanes;\n }\n\n primaryChildFragment.return = workInProgress;\n primaryChildFragment.sibling = null;\n\n if (currentFallbackChildFragment !== null) {\n // Delete the fallback child fragment\n var deletions = workInProgress.deletions;\n\n if (deletions === null) {\n workInProgress.deletions = [currentFallbackChildFragment];\n workInProgress.flags |= ChildDeletion;\n } else {\n deletions.push(currentFallbackChildFragment);\n }\n }\n\n workInProgress.child = primaryChildFragment;\n return primaryChildFragment;\n}\n\nfunction updateSuspenseFallbackChildren(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) {\n var mode = workInProgress.mode;\n var currentPrimaryChildFragment = current.child;\n var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;\n var primaryChildProps = {\n mode: 'hidden',\n children: primaryChildren\n };\n var primaryChildFragment;\n\n if ( // In legacy mode, we commit the primary tree as if it successfully\n // completed, even though it's in an inconsistent state.\n (mode & ConcurrentMode) === NoMode && // Make sure we're on the second pass, i.e. the primary child fragment was\n // already cloned. In legacy mode, the only case where this isn't true is\n // when DevTools forces us to display a fallback; we skip the first render\n // pass entirely and go straight to rendering the fallback. (In Concurrent\n // Mode, SuspenseList can also trigger this scenario, but this is a legacy-\n // only codepath.)\n workInProgress.child !== currentPrimaryChildFragment) {\n var progressedPrimaryFragment = workInProgress.child;\n primaryChildFragment = progressedPrimaryFragment;\n primaryChildFragment.childLanes = NoLanes;\n primaryChildFragment.pendingProps = primaryChildProps;\n\n if ( workInProgress.mode & ProfileMode) {\n // Reset the durations from the first pass so they aren't included in the\n // final amounts. This seems counterintuitive, since we're intentionally\n // not measuring part of the render phase, but this makes it match what we\n // do in Concurrent Mode.\n primaryChildFragment.actualDuration = 0;\n primaryChildFragment.actualStartTime = -1;\n primaryChildFragment.selfBaseDuration = currentPrimaryChildFragment.selfBaseDuration;\n primaryChildFragment.treeBaseDuration = currentPrimaryChildFragment.treeBaseDuration;\n } // The fallback fiber was added as a deletion during the first pass.\n // However, since we're going to remain on the fallback, we no longer want\n // to delete it.\n\n\n workInProgress.deletions = null;\n } else {\n primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, primaryChildProps); // Since we're reusing a current tree, we need to reuse the flags, too.\n // (We don't do this in legacy mode, because in legacy mode we don't re-use\n // the current tree; see previous branch.)\n\n primaryChildFragment.subtreeFlags = currentPrimaryChildFragment.subtreeFlags & StaticMask;\n }\n\n var fallbackChildFragment;\n\n if (currentFallbackChildFragment !== null) {\n fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, fallbackChildren);\n } else {\n fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); // Needs a placement effect because the parent (the Suspense boundary) already\n // mounted but this is a new fiber.\n\n fallbackChildFragment.flags |= Placement;\n }\n\n fallbackChildFragment.return = workInProgress;\n primaryChildFragment.return = workInProgress;\n primaryChildFragment.sibling = fallbackChildFragment;\n workInProgress.child = primaryChildFragment;\n return fallbackChildFragment;\n}\n\nfunction retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, recoverableError) {\n // Falling back to client rendering. Because this has performance\n // implications, it's considered a recoverable error, even though the user\n // likely won't observe anything wrong with the UI.\n //\n // The error is passed in as an argument to enforce that every caller provide\n // a custom message, or explicitly opt out (currently the only path that opts\n // out is legacy mode; every concurrent path provides an error).\n if (recoverableError !== null) {\n queueHydrationError(recoverableError);\n } // This will add the old fiber to the deletion list\n\n\n reconcileChildFibers(workInProgress, current.child, null, renderLanes); // We're now not suspended nor dehydrated.\n\n var nextProps = workInProgress.pendingProps;\n var primaryChildren = nextProps.children;\n var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); // Needs a placement effect because the parent (the Suspense boundary) already\n // mounted but this is a new fiber.\n\n primaryChildFragment.flags |= Placement;\n workInProgress.memoizedState = null;\n return primaryChildFragment;\n}\n\nfunction mountSuspenseFallbackAfterRetryWithoutHydrating(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) {\n var fiberMode = workInProgress.mode;\n var primaryChildProps = {\n mode: 'visible',\n children: primaryChildren\n };\n var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, fiberMode);\n var fallbackChildFragment = createFiberFromFragment(fallbackChildren, fiberMode, renderLanes, null); // Needs a placement effect because the parent (the Suspense\n // boundary) already mounted but this is a new fiber.\n\n fallbackChildFragment.flags |= Placement;\n primaryChildFragment.return = workInProgress;\n fallbackChildFragment.return = workInProgress;\n primaryChildFragment.sibling = fallbackChildFragment;\n workInProgress.child = primaryChildFragment;\n\n if ((workInProgress.mode & ConcurrentMode) !== NoMode) {\n // We will have dropped the effect list which contains the\n // deletion. We need to reconcile to delete the current child.\n reconcileChildFibers(workInProgress, current.child, null, renderLanes);\n }\n\n return fallbackChildFragment;\n}\n\nfunction mountDehydratedSuspenseComponent(workInProgress, suspenseInstance, renderLanes) {\n // During the first pass, we'll bail out and not drill into the children.\n // Instead, we'll leave the content in place and try to hydrate it later.\n if ((workInProgress.mode & ConcurrentMode) === NoMode) {\n {\n error('Cannot hydrate Suspense in legacy mode. Switch from ' + 'ReactDOM.hydrate(element, container) to ' + 'ReactDOMClient.hydrateRoot(container, <App />)' + '.render(element) or remove the Suspense components from ' + 'the server rendered components.');\n }\n\n workInProgress.lanes = laneToLanes(SyncLane);\n } else if (isSuspenseInstanceFallback(suspenseInstance)) {\n // This is a client-only boundary. Since we won't get any content from the server\n // for this, we need to schedule that at a higher priority based on when it would\n // have timed out. In theory we could render it in this pass but it would have the\n // wrong priority associated with it and will prevent hydration of parent path.\n // Instead, we'll leave work left on it to render it in a separate commit.\n // TODO This time should be the time at which the server rendered response that is\n // a parent to this boundary was displayed. However, since we currently don't have\n // a protocol to transfer that time, we'll just estimate it by using the current\n // time. This will mean that Suspense timeouts are slightly shifted to later than\n // they should be.\n // Schedule a normal pri update to render this content.\n workInProgress.lanes = laneToLanes(DefaultHydrationLane);\n } else {\n // We'll continue hydrating the rest at offscreen priority since we'll already\n // be showing the right content coming from the server, it is no rush.\n workInProgress.lanes = laneToLanes(OffscreenLane);\n }\n\n return null;\n}\n\nfunction updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, suspenseInstance, suspenseState, renderLanes) {\n if (!didSuspend) {\n // This is the first render pass. Attempt to hydrate.\n // We should never be hydrating at this point because it is the first pass,\n // but after we've already committed once.\n warnIfHydrating();\n\n if ((workInProgress.mode & ConcurrentMode) === NoMode) {\n return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, // TODO: When we delete legacy mode, we should make this error argument\n // required — every concurrent mode path that causes hydration to\n // de-opt to client rendering should have an error message.\n null);\n }\n\n if (isSuspenseInstanceFallback(suspenseInstance)) {\n // This boundary is in a permanent fallback state. In this case, we'll never\n // get an update and we'll never be able to hydrate the final content. Let's just try the\n // client side render instead.\n var digest, message, stack;\n\n {\n var _getSuspenseInstanceF = getSuspenseInstanceFallbackErrorDetails(suspenseInstance);\n\n digest = _getSuspenseInstanceF.digest;\n message = _getSuspenseInstanceF.message;\n stack = _getSuspenseInstanceF.stack;\n }\n\n var error;\n\n if (message) {\n // eslint-disable-next-line react-internal/prod-error-codes\n error = new Error(message);\n } else {\n error = new Error('The server could not finish this Suspense boundary, likely ' + 'due to an error during server rendering. Switched to ' + 'client rendering.');\n }\n\n var capturedValue = createCapturedValue(error, digest, stack);\n return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, capturedValue);\n }\n // any context has changed, we need to treat is as if the input might have changed.\n\n\n var hasContextChanged = includesSomeLane(renderLanes, current.childLanes);\n\n if (didReceiveUpdate || hasContextChanged) {\n // This boundary has changed since the first render. This means that we are now unable to\n // hydrate it. We might still be able to hydrate it using a higher priority lane.\n var root = getWorkInProgressRoot();\n\n if (root !== null) {\n var attemptHydrationAtLane = getBumpedLaneForHydration(root, renderLanes);\n\n if (attemptHydrationAtLane !== NoLane && attemptHydrationAtLane !== suspenseState.retryLane) {\n // Intentionally mutating since this render will get interrupted. This\n // is one of the very rare times where we mutate the current tree\n // during the render phase.\n suspenseState.retryLane = attemptHydrationAtLane; // TODO: Ideally this would inherit the event time of the current render\n\n var eventTime = NoTimestamp;\n enqueueConcurrentRenderForLane(current, attemptHydrationAtLane);\n scheduleUpdateOnFiber(root, current, attemptHydrationAtLane, eventTime);\n }\n } // If we have scheduled higher pri work above, this will probably just abort the render\n // since we now have higher priority work, but in case it doesn't, we need to prepare to\n // render something, if we time out. Even if that requires us to delete everything and\n // skip hydration.\n // Delay having to do this as long as the suspense timeout allows us.\n\n\n renderDidSuspendDelayIfPossible();\n\n var _capturedValue = createCapturedValue(new Error('This Suspense boundary received an update before it finished ' + 'hydrating. This caused the boundary to switch to client rendering. ' + 'The usual way to fix this is to wrap the original update ' + 'in startTransition.'));\n\n return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, _capturedValue);\n } else if (isSuspenseInstancePending(suspenseInstance)) {\n // This component is still pending more data from the server, so we can't hydrate its\n // content. We treat it as if this component suspended itself. It might seem as if\n // we could just try to render it client-side instead. However, this will perform a\n // lot of unnecessary work and is unlikely to complete since it often will suspend\n // on missing data anyway. Additionally, the server might be able to render more\n // than we can on the client yet. In that case we'd end up with more fallback states\n // on the client than if we just leave it alone. If the server times out or errors\n // these should update this boundary to the permanent Fallback state instead.\n // Mark it as having captured (i.e. suspended).\n workInProgress.flags |= DidCapture; // Leave the child in place. I.e. the dehydrated fragment.\n\n workInProgress.child = current.child; // Register a callback to retry this boundary once the server has sent the result.\n\n var retry = retryDehydratedSuspenseBoundary.bind(null, current);\n registerSuspenseInstanceRetry(suspenseInstance, retry);\n return null;\n } else {\n // This is the first attempt.\n reenterHydrationStateFromDehydratedSuspenseInstance(workInProgress, suspenseInstance, suspenseState.treeContext);\n var primaryChildren = nextProps.children;\n var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); // Mark the children as hydrating. This is a fast path to know whether this\n // tree is part of a hydrating tree. This is used to determine if a child\n // node has fully mounted yet, and for scheduling event replaying.\n // Conceptually this is similar to Placement in that a new subtree is\n // inserted into the React tree here. It just happens to not need DOM\n // mutations because it already exists.\n\n primaryChildFragment.flags |= Hydrating;\n return primaryChildFragment;\n }\n } else {\n // This is the second render pass. We already attempted to hydrated, but\n // something either suspended or errored.\n if (workInProgress.flags & ForceClientRender) {\n // Something errored during hydration. Try again without hydrating.\n workInProgress.flags &= ~ForceClientRender;\n\n var _capturedValue2 = createCapturedValue(new Error('There was an error while hydrating this Suspense boundary. ' + 'Switched to client rendering.'));\n\n return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, _capturedValue2);\n } else if (workInProgress.memoizedState !== null) {\n // Something suspended and we should still be in dehydrated mode.\n // Leave the existing child in place.\n workInProgress.child = current.child; // The dehydrated completion pass expects this flag to be there\n // but the normal suspense pass doesn't.\n\n workInProgress.flags |= DidCapture;\n return null;\n } else {\n // Suspended but we should no longer be in dehydrated mode.\n // Therefore we now have to render the fallback.\n var nextPrimaryChildren = nextProps.children;\n var nextFallbackChildren = nextProps.fallback;\n var fallbackChildFragment = mountSuspenseFallbackAfterRetryWithoutHydrating(current, workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes);\n var _primaryChildFragment4 = workInProgress.child;\n _primaryChildFragment4.memoizedState = mountSuspenseOffscreenState(renderLanes);\n workInProgress.memoizedState = SUSPENDED_MARKER;\n return fallbackChildFragment;\n }\n }\n}\n\nfunction scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) {\n fiber.lanes = mergeLanes(fiber.lanes, renderLanes);\n var alternate = fiber.alternate;\n\n if (alternate !== null) {\n alternate.lanes = mergeLanes(alternate.lanes, renderLanes);\n }\n\n scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot);\n}\n\nfunction propagateSuspenseContextChange(workInProgress, firstChild, renderLanes) {\n // Mark any Suspense boundaries with fallbacks as having work to do.\n // If they were previously forced into fallbacks, they may now be able\n // to unblock.\n var node = firstChild;\n\n while (node !== null) {\n if (node.tag === SuspenseComponent) {\n var state = node.memoizedState;\n\n if (state !== null) {\n scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress);\n }\n } else if (node.tag === SuspenseListComponent) {\n // If the tail is hidden there might not be an Suspense boundaries\n // to schedule work on. In this case we have to schedule it on the\n // list itself.\n // We don't have to traverse to the children of the list since\n // the list will propagate the change when it rerenders.\n scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress);\n } else if (node.child !== null) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n\n if (node === workInProgress) {\n return;\n }\n\n while (node.sibling === null) {\n if (node.return === null || node.return === workInProgress) {\n return;\n }\n\n node = node.return;\n }\n\n node.sibling.return = node.return;\n node = node.sibling;\n }\n}\n\nfunction findLastContentRow(firstChild) {\n // This is going to find the last row among these children that is already\n // showing content on the screen, as opposed to being in fallback state or\n // new. If a row has multiple Suspense boundaries, any of them being in the\n // fallback state, counts as the whole row being in a fallback state.\n // Note that the \"rows\" will be workInProgress, but any nested children\n // will still be current since we haven't rendered them yet. The mounted\n // order may not be the same as the new order. We use the new order.\n var row = firstChild;\n var lastContentRow = null;\n\n while (row !== null) {\n var currentRow = row.alternate; // New rows can't be content rows.\n\n if (currentRow !== null && findFirstSuspended(currentRow) === null) {\n lastContentRow = row;\n }\n\n row = row.sibling;\n }\n\n return lastContentRow;\n}\n\nfunction validateRevealOrder(revealOrder) {\n {\n if (revealOrder !== undefined && revealOrder !== 'forwards' && revealOrder !== 'backwards' && revealOrder !== 'together' && !didWarnAboutRevealOrder[revealOrder]) {\n didWarnAboutRevealOrder[revealOrder] = true;\n\n if (typeof revealOrder === 'string') {\n switch (revealOrder.toLowerCase()) {\n case 'together':\n case 'forwards':\n case 'backwards':\n {\n error('\"%s\" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase \"%s\" instead.', revealOrder, revealOrder.toLowerCase());\n\n break;\n }\n\n case 'forward':\n case 'backward':\n {\n error('\"%s\" is not a valid value for revealOrder on <SuspenseList />. ' + 'React uses the -s suffix in the spelling. Use \"%ss\" instead.', revealOrder, revealOrder.toLowerCase());\n\n break;\n }\n\n default:\n error('\"%s\" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean \"together\", \"forwards\" or \"backwards\"?', revealOrder);\n\n break;\n }\n } else {\n error('%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean \"together\", \"forwards\" or \"backwards\"?', revealOrder);\n }\n }\n }\n}\n\nfunction validateTailOptions(tailMode, revealOrder) {\n {\n if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) {\n if (tailMode !== 'collapsed' && tailMode !== 'hidden') {\n didWarnAboutTailOptions[tailMode] = true;\n\n error('\"%s\" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean \"collapsed\" or \"hidden\"?', tailMode);\n } else if (revealOrder !== 'forwards' && revealOrder !== 'backwards') {\n didWarnAboutTailOptions[tailMode] = true;\n\n error('<SuspenseList tail=\"%s\" /> is only valid if revealOrder is ' + '\"forwards\" or \"backwards\". ' + 'Did you mean to specify revealOrder=\"forwards\"?', tailMode);\n }\n }\n }\n}\n\nfunction validateSuspenseListNestedChild(childSlot, index) {\n {\n var isAnArray = isArray(childSlot);\n var isIterable = !isAnArray && typeof getIteratorFn(childSlot) === 'function';\n\n if (isAnArray || isIterable) {\n var type = isAnArray ? 'array' : 'iterable';\n\n error('A nested %s was passed to row #%s in <SuspenseList />. Wrap it in ' + 'an additional SuspenseList to configure its revealOrder: ' + '<SuspenseList revealOrder=...> ... ' + '<SuspenseList revealOrder=...>{%s}</SuspenseList> ... ' + '</SuspenseList>', type, index, type);\n\n return false;\n }\n }\n\n return true;\n}\n\nfunction validateSuspenseListChildren(children, revealOrder) {\n {\n if ((revealOrder === 'forwards' || revealOrder === 'backwards') && children !== undefined && children !== null && children !== false) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n if (!validateSuspenseListNestedChild(children[i], i)) {\n return;\n }\n }\n } else {\n var iteratorFn = getIteratorFn(children);\n\n if (typeof iteratorFn === 'function') {\n var childrenIterator = iteratorFn.call(children);\n\n if (childrenIterator) {\n var step = childrenIterator.next();\n var _i = 0;\n\n for (; !step.done; step = childrenIterator.next()) {\n if (!validateSuspenseListNestedChild(step.value, _i)) {\n return;\n }\n\n _i++;\n }\n }\n } else {\n error('A single row was passed to a <SuspenseList revealOrder=\"%s\" />. ' + 'This is not useful since it needs multiple rows. ' + 'Did you mean to pass multiple children or an array?', revealOrder);\n }\n }\n }\n }\n}\n\nfunction initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) {\n var renderState = workInProgress.memoizedState;\n\n if (renderState === null) {\n workInProgress.memoizedState = {\n isBackwards: isBackwards,\n rendering: null,\n renderingStartTime: 0,\n last: lastContentRow,\n tail: tail,\n tailMode: tailMode\n };\n } else {\n // We can reuse the existing object from previous renders.\n renderState.isBackwards = isBackwards;\n renderState.rendering = null;\n renderState.renderingStartTime = 0;\n renderState.last = lastContentRow;\n renderState.tail = tail;\n renderState.tailMode = tailMode;\n }\n} // This can end up rendering this component multiple passes.\n// The first pass splits the children fibers into two sets. A head and tail.\n// We first render the head. If anything is in fallback state, we do another\n// pass through beginWork to rerender all children (including the tail) with\n// the force suspend context. If the first render didn't have anything in\n// in fallback state. Then we render each row in the tail one-by-one.\n// That happens in the completeWork phase without going back to beginWork.\n\n\nfunction updateSuspenseListComponent(current, workInProgress, renderLanes) {\n var nextProps = workInProgress.pendingProps;\n var revealOrder = nextProps.revealOrder;\n var tailMode = nextProps.tail;\n var newChildren = nextProps.children;\n validateRevealOrder(revealOrder);\n validateTailOptions(tailMode, revealOrder);\n validateSuspenseListChildren(newChildren, revealOrder);\n reconcileChildren(current, workInProgress, newChildren, renderLanes);\n var suspenseContext = suspenseStackCursor.current;\n var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback);\n\n if (shouldForceFallback) {\n suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);\n workInProgress.flags |= DidCapture;\n } else {\n var didSuspendBefore = current !== null && (current.flags & DidCapture) !== NoFlags;\n\n if (didSuspendBefore) {\n // If we previously forced a fallback, we need to schedule work\n // on any nested boundaries to let them know to try to render\n // again. This is the same as context updating.\n propagateSuspenseContextChange(workInProgress, workInProgress.child, renderLanes);\n }\n\n suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);\n }\n\n pushSuspenseContext(workInProgress, suspenseContext);\n\n if ((workInProgress.mode & ConcurrentMode) === NoMode) {\n // In legacy mode, SuspenseList doesn't work so we just\n // use make it a noop by treating it as the default revealOrder.\n workInProgress.memoizedState = null;\n } else {\n switch (revealOrder) {\n case 'forwards':\n {\n var lastContentRow = findLastContentRow(workInProgress.child);\n var tail;\n\n if (lastContentRow === null) {\n // The whole list is part of the tail.\n // TODO: We could fast path by just rendering the tail now.\n tail = workInProgress.child;\n workInProgress.child = null;\n } else {\n // Disconnect the tail rows after the content row.\n // We're going to render them separately later.\n tail = lastContentRow.sibling;\n lastContentRow.sibling = null;\n }\n\n initSuspenseListRenderState(workInProgress, false, // isBackwards\n tail, lastContentRow, tailMode);\n break;\n }\n\n case 'backwards':\n {\n // We're going to find the first row that has existing content.\n // At the same time we're going to reverse the list of everything\n // we pass in the meantime. That's going to be our tail in reverse\n // order.\n var _tail = null;\n var row = workInProgress.child;\n workInProgress.child = null;\n\n while (row !== null) {\n var currentRow = row.alternate; // New rows can't be content rows.\n\n if (currentRow !== null && findFirstSuspended(currentRow) === null) {\n // This is the beginning of the main content.\n workInProgress.child = row;\n break;\n }\n\n var nextRow = row.sibling;\n row.sibling = _tail;\n _tail = row;\n row = nextRow;\n } // TODO: If workInProgress.child is null, we can continue on the tail immediately.\n\n\n initSuspenseListRenderState(workInProgress, true, // isBackwards\n _tail, null, // last\n tailMode);\n break;\n }\n\n case 'together':\n {\n initSuspenseListRenderState(workInProgress, false, // isBackwards\n null, // tail\n null, // last\n undefined);\n break;\n }\n\n default:\n {\n // The default reveal order is the same as not having\n // a boundary.\n workInProgress.memoizedState = null;\n }\n }\n }\n\n return workInProgress.child;\n}\n\nfunction updatePortalComponent(current, workInProgress, renderLanes) {\n pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);\n var nextChildren = workInProgress.pendingProps;\n\n if (current === null) {\n // Portals are special because we don't append the children during mount\n // but at commit. Therefore we need to track insertions which the normal\n // flow doesn't do during mount. This doesn't happen at the root because\n // the root always starts with a \"current\" with a null child.\n // TODO: Consider unifying this with how the root works.\n workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes);\n } else {\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n }\n\n return workInProgress.child;\n}\n\nvar hasWarnedAboutUsingNoValuePropOnContextProvider = false;\n\nfunction updateContextProvider(current, workInProgress, renderLanes) {\n var providerType = workInProgress.type;\n var context = providerType._context;\n var newProps = workInProgress.pendingProps;\n var oldProps = workInProgress.memoizedProps;\n var newValue = newProps.value;\n\n {\n if (!('value' in newProps)) {\n if (!hasWarnedAboutUsingNoValuePropOnContextProvider) {\n hasWarnedAboutUsingNoValuePropOnContextProvider = true;\n\n error('The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?');\n }\n }\n\n var providerPropTypes = workInProgress.type.propTypes;\n\n if (providerPropTypes) {\n checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider');\n }\n }\n\n pushProvider(workInProgress, context, newValue);\n\n {\n if (oldProps !== null) {\n var oldValue = oldProps.value;\n\n if (objectIs(oldValue, newValue)) {\n // No change. Bailout early if children are the same.\n if (oldProps.children === newProps.children && !hasContextChanged()) {\n return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n }\n } else {\n // The context value changed. Search for matching consumers and schedule\n // them to update.\n propagateContextChange(workInProgress, context, renderLanes);\n }\n }\n }\n\n var newChildren = newProps.children;\n reconcileChildren(current, workInProgress, newChildren, renderLanes);\n return workInProgress.child;\n}\n\nvar hasWarnedAboutUsingContextAsConsumer = false;\n\nfunction updateContextConsumer(current, workInProgress, renderLanes) {\n var context = workInProgress.type; // The logic below for Context differs depending on PROD or DEV mode. In\n // DEV mode, we create a separate object for Context.Consumer that acts\n // like a proxy to Context. This proxy object adds unnecessary code in PROD\n // so we use the old behaviour (Context.Consumer references Context) to\n // reduce size and overhead. The separate object references context via\n // a property called \"_context\", which also gives us the ability to check\n // in DEV mode if this property exists or not and warn if it does not.\n\n {\n if (context._context === undefined) {\n // This may be because it's a Context (rather than a Consumer).\n // Or it may be because it's older React where they're the same thing.\n // We only want to warn if we're sure it's a new React.\n if (context !== context.Consumer) {\n if (!hasWarnedAboutUsingContextAsConsumer) {\n hasWarnedAboutUsingContextAsConsumer = true;\n\n error('Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');\n }\n }\n } else {\n context = context._context;\n }\n }\n\n var newProps = workInProgress.pendingProps;\n var render = newProps.children;\n\n {\n if (typeof render !== 'function') {\n error('A context consumer was rendered with multiple children, or a child ' + \"that isn't a function. A context consumer expects a single child \" + 'that is a function. If you did pass a function, make sure there ' + 'is no trailing or leading whitespace around it.');\n }\n }\n\n prepareToReadContext(workInProgress, renderLanes);\n var newValue = readContext(context);\n\n {\n markComponentRenderStarted(workInProgress);\n }\n\n var newChildren;\n\n {\n ReactCurrentOwner$1.current = workInProgress;\n setIsRendering(true);\n newChildren = render(newValue);\n setIsRendering(false);\n }\n\n {\n markComponentRenderStopped();\n } // React DevTools reads this flag.\n\n\n workInProgress.flags |= PerformedWork;\n reconcileChildren(current, workInProgress, newChildren, renderLanes);\n return workInProgress.child;\n}\n\nfunction markWorkInProgressReceivedUpdate() {\n didReceiveUpdate = true;\n}\n\nfunction resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) {\n if ((workInProgress.mode & ConcurrentMode) === NoMode) {\n if (current !== null) {\n // A lazy component only mounts if it suspended inside a non-\n // concurrent tree, in an inconsistent state. We want to treat it like\n // a new mount, even though an empty version of it already committed.\n // Disconnect the alternate pointers.\n current.alternate = null;\n workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect\n\n workInProgress.flags |= Placement;\n }\n }\n}\n\nfunction bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {\n if (current !== null) {\n // Reuse previous dependencies\n workInProgress.dependencies = current.dependencies;\n }\n\n {\n // Don't update \"base\" render times for bailouts.\n stopProfilerTimerIfRunning();\n }\n\n markSkippedUpdateLanes(workInProgress.lanes); // Check if the children have any pending work.\n\n if (!includesSomeLane(renderLanes, workInProgress.childLanes)) {\n // The children don't have any work either. We can skip them.\n // TODO: Once we add back resuming, we should check if the children are\n // a work-in-progress set. If so, we need to transfer their effects.\n {\n return null;\n }\n } // This fiber doesn't have work, but its subtree does. Clone the child\n // fibers and continue.\n\n\n cloneChildFibers(current, workInProgress);\n return workInProgress.child;\n}\n\nfunction remountFiber(current, oldWorkInProgress, newWorkInProgress) {\n {\n var returnFiber = oldWorkInProgress.return;\n\n if (returnFiber === null) {\n // eslint-disable-next-line react-internal/prod-error-codes\n throw new Error('Cannot swap the root fiber.');\n } // Disconnect from the old current.\n // It will get deleted.\n\n\n current.alternate = null;\n oldWorkInProgress.alternate = null; // Connect to the new tree.\n\n newWorkInProgress.index = oldWorkInProgress.index;\n newWorkInProgress.sibling = oldWorkInProgress.sibling;\n newWorkInProgress.return = oldWorkInProgress.return;\n newWorkInProgress.ref = oldWorkInProgress.ref; // Replace the child/sibling pointers above it.\n\n if (oldWorkInProgress === returnFiber.child) {\n returnFiber.child = newWorkInProgress;\n } else {\n var prevSibling = returnFiber.child;\n\n if (prevSibling === null) {\n // eslint-disable-next-line react-internal/prod-error-codes\n throw new Error('Expected parent to have a child.');\n }\n\n while (prevSibling.sibling !== oldWorkInProgress) {\n prevSibling = prevSibling.sibling;\n\n if (prevSibling === null) {\n // eslint-disable-next-line react-internal/prod-error-codes\n throw new Error('Expected to find the previous sibling.');\n }\n }\n\n prevSibling.sibling = newWorkInProgress;\n } // Delete the old fiber and place the new one.\n // Since the old fiber is disconnected, we have to schedule it manually.\n\n\n var deletions = returnFiber.deletions;\n\n if (deletions === null) {\n returnFiber.deletions = [current];\n returnFiber.flags |= ChildDeletion;\n } else {\n deletions.push(current);\n }\n\n newWorkInProgress.flags |= Placement; // Restart work from the new fiber.\n\n return newWorkInProgress;\n }\n}\n\nfunction checkScheduledUpdateOrContext(current, renderLanes) {\n // Before performing an early bailout, we must check if there are pending\n // updates or context.\n var updateLanes = current.lanes;\n\n if (includesSomeLane(updateLanes, renderLanes)) {\n return true;\n } // No pending update, but because context is propagated lazily, we need\n\n return false;\n}\n\nfunction attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) {\n // This fiber does not have any pending work. Bailout without entering\n // the begin phase. There's still some bookkeeping we that needs to be done\n // in this optimized path, mostly pushing stuff onto the stack.\n switch (workInProgress.tag) {\n case HostRoot:\n pushHostRootContext(workInProgress);\n var root = workInProgress.stateNode;\n\n resetHydrationState();\n break;\n\n case HostComponent:\n pushHostContext(workInProgress);\n break;\n\n case ClassComponent:\n {\n var Component = workInProgress.type;\n\n if (isContextProvider(Component)) {\n pushContextProvider(workInProgress);\n }\n\n break;\n }\n\n case HostPortal:\n pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);\n break;\n\n case ContextProvider:\n {\n var newValue = workInProgress.memoizedProps.value;\n var context = workInProgress.type._context;\n pushProvider(workInProgress, context, newValue);\n break;\n }\n\n case Profiler:\n {\n // Profiler should only call onRender when one of its descendants actually rendered.\n var hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes);\n\n if (hasChildWork) {\n workInProgress.flags |= Update;\n }\n\n {\n // Reset effect durations for the next eventual effect phase.\n // These are reset during render to allow the DevTools commit hook a chance to read them,\n var stateNode = workInProgress.stateNode;\n stateNode.effectDuration = 0;\n stateNode.passiveEffectDuration = 0;\n }\n }\n\n break;\n\n case SuspenseComponent:\n {\n var state = workInProgress.memoizedState;\n\n if (state !== null) {\n if (state.dehydrated !== null) {\n pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // We know that this component will suspend again because if it has\n // been unsuspended it has committed as a resolved Suspense component.\n // If it needs to be retried, it should have work scheduled on it.\n\n workInProgress.flags |= DidCapture; // We should never render the children of a dehydrated boundary until we\n // upgrade it. We return null instead of bailoutOnAlreadyFinishedWork.\n\n return null;\n } // If this boundary is currently timed out, we need to decide\n // whether to retry the primary children, or to skip over it and\n // go straight to the fallback. Check the priority of the primary\n // child fragment.\n\n\n var primaryChildFragment = workInProgress.child;\n var primaryChildLanes = primaryChildFragment.childLanes;\n\n if (includesSomeLane(renderLanes, primaryChildLanes)) {\n // The primary children have pending work. Use the normal path\n // to attempt to render the primary children again.\n return updateSuspenseComponent(current, workInProgress, renderLanes);\n } else {\n // The primary child fragment does not have pending work marked\n // on it\n pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // The primary children do not have pending work with sufficient\n // priority. Bailout.\n\n var child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n\n if (child !== null) {\n // The fallback children have pending work. Skip over the\n // primary children and work on the fallback.\n return child.sibling;\n } else {\n // Note: We can return `null` here because we already checked\n // whether there were nested context consumers, via the call to\n // `bailoutOnAlreadyFinishedWork` above.\n return null;\n }\n }\n } else {\n pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));\n }\n\n break;\n }\n\n case SuspenseListComponent:\n {\n var didSuspendBefore = (current.flags & DidCapture) !== NoFlags;\n\n var _hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes);\n\n if (didSuspendBefore) {\n if (_hasChildWork) {\n // If something was in fallback state last time, and we have all the\n // same children then we're still in progressive loading state.\n // Something might get unblocked by state updates or retries in the\n // tree which will affect the tail. So we need to use the normal\n // path to compute the correct tail.\n return updateSuspenseListComponent(current, workInProgress, renderLanes);\n } // If none of the children had any work, that means that none of\n // them got retried so they'll still be blocked in the same way\n // as before. We can fast bail out.\n\n\n workInProgress.flags |= DidCapture;\n } // If nothing suspended before and we're rendering the same children,\n // then the tail doesn't matter. Anything new that suspends will work\n // in the \"together\" mode, so we can continue from the state we had.\n\n\n var renderState = workInProgress.memoizedState;\n\n if (renderState !== null) {\n // Reset to the \"together\" mode in case we've started a different\n // update in the past but didn't complete it.\n renderState.rendering = null;\n renderState.tail = null;\n renderState.lastEffect = null;\n }\n\n pushSuspenseContext(workInProgress, suspenseStackCursor.current);\n\n if (_hasChildWork) {\n break;\n } else {\n // If none of the children had any work, that means that none of\n // them got retried so they'll still be blocked in the same way\n // as before. We can fast bail out.\n return null;\n }\n }\n\n case OffscreenComponent:\n case LegacyHiddenComponent:\n {\n // Need to check if the tree still needs to be deferred. This is\n // almost identical to the logic used in the normal update path,\n // so we'll just enter that. The only difference is we'll bail out\n // at the next level instead of this one, because the child props\n // have not changed. Which is fine.\n // TODO: Probably should refactor `beginWork` to split the bailout\n // path from the normal path. I'm tempted to do a labeled break here\n // but I won't :)\n workInProgress.lanes = NoLanes;\n return updateOffscreenComponent(current, workInProgress, renderLanes);\n }\n }\n\n return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n}\n\nfunction beginWork(current, workInProgress, renderLanes) {\n {\n if (workInProgress._debugNeedsRemount && current !== null) {\n // This will restart the begin phase with a new fiber.\n return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.lanes));\n }\n }\n\n if (current !== null) {\n var oldProps = current.memoizedProps;\n var newProps = workInProgress.pendingProps;\n\n if (oldProps !== newProps || hasContextChanged() || ( // Force a re-render if the implementation changed due to hot reload:\n workInProgress.type !== current.type )) {\n // If props or context changed, mark the fiber as having performed work.\n // This may be unset if the props are determined to be equal later (memo).\n didReceiveUpdate = true;\n } else {\n // Neither props nor legacy context changes. Check if there's a pending\n // update or context change.\n var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes);\n\n if (!hasScheduledUpdateOrContext && // If this is the second pass of an error or suspense boundary, there\n // may not be work scheduled on `current`, so we check for this flag.\n (workInProgress.flags & DidCapture) === NoFlags) {\n // No pending updates or context. Bail out now.\n didReceiveUpdate = false;\n return attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes);\n }\n\n if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) {\n // This is a special case that only exists for legacy mode.\n // See https://github.com/facebook/react/pull/19216.\n didReceiveUpdate = true;\n } else {\n // An update was scheduled on this fiber, but there are no new props\n // nor legacy context. Set this to false. If an update queue or context\n // consumer produces a changed value, it will set this to true. Otherwise,\n // the component will assume the children have not changed and bail out.\n didReceiveUpdate = false;\n }\n }\n } else {\n didReceiveUpdate = false;\n\n if (getIsHydrating() && isForkedChild(workInProgress)) {\n // Check if this child belongs to a list of muliple children in\n // its parent.\n //\n // In a true multi-threaded implementation, we would render children on\n // parallel threads. This would represent the beginning of a new render\n // thread for this subtree.\n //\n // We only use this for id generation during hydration, which is why the\n // logic is located in this special branch.\n var slotIndex = workInProgress.index;\n var numberOfForks = getForksAtLevel();\n pushTreeId(workInProgress, numberOfForks, slotIndex);\n }\n } // Before entering the begin phase, clear pending update priority.\n // TODO: This assumes that we're about to evaluate the component and process\n // the update queue. However, there's an exception: SimpleMemoComponent\n // sometimes bails out later in the begin phase. This indicates that we should\n // move this assignment out of the common path and into each branch.\n\n\n workInProgress.lanes = NoLanes;\n\n switch (workInProgress.tag) {\n case IndeterminateComponent:\n {\n return mountIndeterminateComponent(current, workInProgress, workInProgress.type, renderLanes);\n }\n\n case LazyComponent:\n {\n var elementType = workInProgress.elementType;\n return mountLazyComponent(current, workInProgress, elementType, renderLanes);\n }\n\n case FunctionComponent:\n {\n var Component = workInProgress.type;\n var unresolvedProps = workInProgress.pendingProps;\n var resolvedProps = workInProgress.elementType === Component ? unresolvedProps : resolveDefaultProps(Component, unresolvedProps);\n return updateFunctionComponent(current, workInProgress, Component, resolvedProps, renderLanes);\n }\n\n case ClassComponent:\n {\n var _Component = workInProgress.type;\n var _unresolvedProps = workInProgress.pendingProps;\n\n var _resolvedProps = workInProgress.elementType === _Component ? _unresolvedProps : resolveDefaultProps(_Component, _unresolvedProps);\n\n return updateClassComponent(current, workInProgress, _Component, _resolvedProps, renderLanes);\n }\n\n case HostRoot:\n return updateHostRoot(current, workInProgress, renderLanes);\n\n case HostComponent:\n return updateHostComponent(current, workInProgress, renderLanes);\n\n case HostText:\n return updateHostText(current, workInProgress);\n\n case SuspenseComponent:\n return updateSuspenseComponent(current, workInProgress, renderLanes);\n\n case HostPortal:\n return updatePortalComponent(current, workInProgress, renderLanes);\n\n case ForwardRef:\n {\n var type = workInProgress.type;\n var _unresolvedProps2 = workInProgress.pendingProps;\n\n var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);\n\n return updateForwardRef(current, workInProgress, type, _resolvedProps2, renderLanes);\n }\n\n case Fragment:\n return updateFragment(current, workInProgress, renderLanes);\n\n case Mode:\n return updateMode(current, workInProgress, renderLanes);\n\n case Profiler:\n return updateProfiler(current, workInProgress, renderLanes);\n\n case ContextProvider:\n return updateContextProvider(current, workInProgress, renderLanes);\n\n case ContextConsumer:\n return updateContextConsumer(current, workInProgress, renderLanes);\n\n case MemoComponent:\n {\n var _type2 = workInProgress.type;\n var _unresolvedProps3 = workInProgress.pendingProps; // Resolve outer props first, then resolve inner props.\n\n var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3);\n\n {\n if (workInProgress.type !== workInProgress.elementType) {\n var outerPropTypes = _type2.propTypes;\n\n if (outerPropTypes) {\n checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only\n 'prop', getComponentNameFromType(_type2));\n }\n }\n }\n\n _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);\n return updateMemoComponent(current, workInProgress, _type2, _resolvedProps3, renderLanes);\n }\n\n case SimpleMemoComponent:\n {\n return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes);\n }\n\n case IncompleteClassComponent:\n {\n var _Component2 = workInProgress.type;\n var _unresolvedProps4 = workInProgress.pendingProps;\n\n var _resolvedProps4 = workInProgress.elementType === _Component2 ? _unresolvedProps4 : resolveDefaultProps(_Component2, _unresolvedProps4);\n\n return mountIncompleteClassComponent(current, workInProgress, _Component2, _resolvedProps4, renderLanes);\n }\n\n case SuspenseListComponent:\n {\n return updateSuspenseListComponent(current, workInProgress, renderLanes);\n }\n\n case ScopeComponent:\n {\n\n break;\n }\n\n case OffscreenComponent:\n {\n return updateOffscreenComponent(current, workInProgress, renderLanes);\n }\n }\n\n throw new Error(\"Unknown unit of work tag (\" + workInProgress.tag + \"). This error is likely caused by a bug in \" + 'React. Please file an issue.');\n}\n\nfunction markUpdate(workInProgress) {\n // Tag the fiber with an update effect. This turns a Placement into\n // a PlacementAndUpdate.\n workInProgress.flags |= Update;\n}\n\nfunction markRef$1(workInProgress) {\n workInProgress.flags |= Ref;\n\n {\n workInProgress.flags |= RefStatic;\n }\n}\n\nvar appendAllChildren;\nvar updateHostContainer;\nvar updateHostComponent$1;\nvar updateHostText$1;\n\n{\n // Mutation mode\n appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {\n // We only have the top Fiber that was created but we need recurse down its\n // children to find all the terminal nodes.\n var node = workInProgress.child;\n\n while (node !== null) {\n if (node.tag === HostComponent || node.tag === HostText) {\n appendInitialChild(parent, node.stateNode);\n } else if (node.tag === HostPortal) ; else if (node.child !== null) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n\n if (node === workInProgress) {\n return;\n }\n\n while (node.sibling === null) {\n if (node.return === null || node.return === workInProgress) {\n return;\n }\n\n node = node.return;\n }\n\n node.sibling.return = node.return;\n node = node.sibling;\n }\n };\n\n updateHostContainer = function (current, workInProgress) {// Noop\n };\n\n updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {\n // If we have an alternate, that means this is an update and we need to\n // schedule a side-effect to do the updates.\n var oldProps = current.memoizedProps;\n\n if (oldProps === newProps) {\n // In mutation mode, this is sufficient for a bailout because\n // we won't touch this node even if children changed.\n return;\n } // If we get updated because one of our children updated, we don't\n // have newProps so we'll have to reuse them.\n // TODO: Split the update API as separate for the props vs. children.\n // Even better would be if children weren't special cased at all tho.\n\n\n var instance = workInProgress.stateNode;\n var currentHostContext = getHostContext(); // TODO: Experiencing an error where oldProps is null. Suggests a host\n // component is hitting the resume path. Figure out why. Possibly\n // related to `hidden`.\n\n var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); // TODO: Type this specific to this type of component.\n\n workInProgress.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there\n // is a new ref we mark this as an update. All the work is done in commitWork.\n\n if (updatePayload) {\n markUpdate(workInProgress);\n }\n };\n\n updateHostText$1 = function (current, workInProgress, oldText, newText) {\n // If the text differs, mark it as an update. All the work in done in commitWork.\n if (oldText !== newText) {\n markUpdate(workInProgress);\n }\n };\n}\n\nfunction cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {\n if (getIsHydrating()) {\n // If we're hydrating, we should consume as many items as we can\n // so we don't leave any behind.\n return;\n }\n\n switch (renderState.tailMode) {\n case 'hidden':\n {\n // Any insertions at the end of the tail list after this point\n // should be invisible. If there are already mounted boundaries\n // anything before them are not considered for collapsing.\n // Therefore we need to go through the whole tail to find if\n // there are any.\n var tailNode = renderState.tail;\n var lastTailNode = null;\n\n while (tailNode !== null) {\n if (tailNode.alternate !== null) {\n lastTailNode = tailNode;\n }\n\n tailNode = tailNode.sibling;\n } // Next we're simply going to delete all insertions after the\n // last rendered item.\n\n\n if (lastTailNode === null) {\n // All remaining items in the tail are insertions.\n renderState.tail = null;\n } else {\n // Detach the insertion after the last node that was already\n // inserted.\n lastTailNode.sibling = null;\n }\n\n break;\n }\n\n case 'collapsed':\n {\n // Any insertions at the end of the tail list after this point\n // should be invisible. If there are already mounted boundaries\n // anything before them are not considered for collapsing.\n // Therefore we need to go through the whole tail to find if\n // there are any.\n var _tailNode = renderState.tail;\n var _lastTailNode = null;\n\n while (_tailNode !== null) {\n if (_tailNode.alternate !== null) {\n _lastTailNode = _tailNode;\n }\n\n _tailNode = _tailNode.sibling;\n } // Next we're simply going to delete all insertions after the\n // last rendered item.\n\n\n if (_lastTailNode === null) {\n // All remaining items in the tail are insertions.\n if (!hasRenderedATailFallback && renderState.tail !== null) {\n // We suspended during the head. We want to show at least one\n // row at the tail. So we'll keep on and cut off the rest.\n renderState.tail.sibling = null;\n } else {\n renderState.tail = null;\n }\n } else {\n // Detach the insertion after the last node that was already\n // inserted.\n _lastTailNode.sibling = null;\n }\n\n break;\n }\n }\n}\n\nfunction bubbleProperties(completedWork) {\n var didBailout = completedWork.alternate !== null && completedWork.alternate.child === completedWork.child;\n var newChildLanes = NoLanes;\n var subtreeFlags = NoFlags;\n\n if (!didBailout) {\n // Bubble up the earliest expiration time.\n if ( (completedWork.mode & ProfileMode) !== NoMode) {\n // In profiling mode, resetChildExpirationTime is also used to reset\n // profiler durations.\n var actualDuration = completedWork.actualDuration;\n var treeBaseDuration = completedWork.selfBaseDuration;\n var child = completedWork.child;\n\n while (child !== null) {\n newChildLanes = mergeLanes(newChildLanes, mergeLanes(child.lanes, child.childLanes));\n subtreeFlags |= child.subtreeFlags;\n subtreeFlags |= child.flags; // When a fiber is cloned, its actualDuration is reset to 0. This value will\n // only be updated if work is done on the fiber (i.e. it doesn't bailout).\n // When work is done, it should bubble to the parent's actualDuration. If\n // the fiber has not been cloned though, (meaning no work was done), then\n // this value will reflect the amount of time spent working on a previous\n // render. In that case it should not bubble. We determine whether it was\n // cloned by comparing the child pointer.\n\n actualDuration += child.actualDuration;\n treeBaseDuration += child.treeBaseDuration;\n child = child.sibling;\n }\n\n completedWork.actualDuration = actualDuration;\n completedWork.treeBaseDuration = treeBaseDuration;\n } else {\n var _child = completedWork.child;\n\n while (_child !== null) {\n newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child.lanes, _child.childLanes));\n subtreeFlags |= _child.subtreeFlags;\n subtreeFlags |= _child.flags; // Update the return pointer so the tree is consistent. This is a code\n // smell because it assumes the commit phase is never concurrent with\n // the render phase. Will address during refactor to alternate model.\n\n _child.return = completedWork;\n _child = _child.sibling;\n }\n }\n\n completedWork.subtreeFlags |= subtreeFlags;\n } else {\n // Bubble up the earliest expiration time.\n if ( (completedWork.mode & ProfileMode) !== NoMode) {\n // In profiling mode, resetChildExpirationTime is also used to reset\n // profiler durations.\n var _treeBaseDuration = completedWork.selfBaseDuration;\n var _child2 = completedWork.child;\n\n while (_child2 !== null) {\n newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child2.lanes, _child2.childLanes)); // \"Static\" flags share the lifetime of the fiber/hook they belong to,\n // so we should bubble those up even during a bailout. All the other\n // flags have a lifetime only of a single render + commit, so we should\n // ignore them.\n\n subtreeFlags |= _child2.subtreeFlags & StaticMask;\n subtreeFlags |= _child2.flags & StaticMask;\n _treeBaseDuration += _child2.treeBaseDuration;\n _child2 = _child2.sibling;\n }\n\n completedWork.treeBaseDuration = _treeBaseDuration;\n } else {\n var _child3 = completedWork.child;\n\n while (_child3 !== null) {\n newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child3.lanes, _child3.childLanes)); // \"Static\" flags share the lifetime of the fiber/hook they belong to,\n // so we should bubble those up even during a bailout. All the other\n // flags have a lifetime only of a single render + commit, so we should\n // ignore them.\n\n subtreeFlags |= _child3.subtreeFlags & StaticMask;\n subtreeFlags |= _child3.flags & StaticMask; // Update the return pointer so the tree is consistent. This is a code\n // smell because it assumes the commit phase is never concurrent with\n // the render phase. Will address during refactor to alternate model.\n\n _child3.return = completedWork;\n _child3 = _child3.sibling;\n }\n }\n\n completedWork.subtreeFlags |= subtreeFlags;\n }\n\n completedWork.childLanes = newChildLanes;\n return didBailout;\n}\n\nfunction completeDehydratedSuspenseBoundary(current, workInProgress, nextState) {\n if (hasUnhydratedTailNodes() && (workInProgress.mode & ConcurrentMode) !== NoMode && (workInProgress.flags & DidCapture) === NoFlags) {\n warnIfUnhydratedTailNodes(workInProgress);\n resetHydrationState();\n workInProgress.flags |= ForceClientRender | Incomplete | ShouldCapture;\n return false;\n }\n\n var wasHydrated = popHydrationState(workInProgress);\n\n if (nextState !== null && nextState.dehydrated !== null) {\n // We might be inside a hydration state the first time we're picking up this\n // Suspense boundary, and also after we've reentered it for further hydration.\n if (current === null) {\n if (!wasHydrated) {\n throw new Error('A dehydrated suspense component was completed without a hydrated node. ' + 'This is probably a bug in React.');\n }\n\n prepareToHydrateHostSuspenseInstance(workInProgress);\n bubbleProperties(workInProgress);\n\n {\n if ((workInProgress.mode & ProfileMode) !== NoMode) {\n var isTimedOutSuspense = nextState !== null;\n\n if (isTimedOutSuspense) {\n // Don't count time spent in a timed out Suspense subtree as part of the base duration.\n var primaryChildFragment = workInProgress.child;\n\n if (primaryChildFragment !== null) {\n // $FlowFixMe Flow doesn't support type casting in combination with the -= operator\n workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration;\n }\n }\n }\n }\n\n return false;\n } else {\n // We might have reentered this boundary to hydrate it. If so, we need to reset the hydration\n // state since we're now exiting out of it. popHydrationState doesn't do that for us.\n resetHydrationState();\n\n if ((workInProgress.flags & DidCapture) === NoFlags) {\n // This boundary did not suspend so it's now hydrated and unsuspended.\n workInProgress.memoizedState = null;\n } // If nothing suspended, we need to schedule an effect to mark this boundary\n // as having hydrated so events know that they're free to be invoked.\n // It's also a signal to replay events and the suspense callback.\n // If something suspended, schedule an effect to attach retry listeners.\n // So we might as well always mark this.\n\n\n workInProgress.flags |= Update;\n bubbleProperties(workInProgress);\n\n {\n if ((workInProgress.mode & ProfileMode) !== NoMode) {\n var _isTimedOutSuspense = nextState !== null;\n\n if (_isTimedOutSuspense) {\n // Don't count time spent in a timed out Suspense subtree as part of the base duration.\n var _primaryChildFragment = workInProgress.child;\n\n if (_primaryChildFragment !== null) {\n // $FlowFixMe Flow doesn't support type casting in combination with the -= operator\n workInProgress.treeBaseDuration -= _primaryChildFragment.treeBaseDuration;\n }\n }\n }\n }\n\n return false;\n }\n } else {\n // Successfully completed this tree. If this was a forced client render,\n // there may have been recoverable errors during first hydration\n // attempt. If so, add them to a queue so we can log them in the\n // commit phase.\n upgradeHydrationErrorsToRecoverable(); // Fall through to normal Suspense path\n\n return true;\n }\n}\n\nfunction completeWork(current, workInProgress, renderLanes) {\n var newProps = workInProgress.pendingProps; // Note: This intentionally doesn't check if we're hydrating because comparing\n // to the current tree provider fiber is just as fast and less error-prone.\n // Ideally we would have a special version of the work loop only\n // for hydration.\n\n popTreeContext(workInProgress);\n\n switch (workInProgress.tag) {\n case IndeterminateComponent:\n case LazyComponent:\n case SimpleMemoComponent:\n case FunctionComponent:\n case ForwardRef:\n case Fragment:\n case Mode:\n case Profiler:\n case ContextConsumer:\n case MemoComponent:\n bubbleProperties(workInProgress);\n return null;\n\n case ClassComponent:\n {\n var Component = workInProgress.type;\n\n if (isContextProvider(Component)) {\n popContext(workInProgress);\n }\n\n bubbleProperties(workInProgress);\n return null;\n }\n\n case HostRoot:\n {\n var fiberRoot = workInProgress.stateNode;\n popHostContainer(workInProgress);\n popTopLevelContextObject(workInProgress);\n resetWorkInProgressVersions();\n\n if (fiberRoot.pendingContext) {\n fiberRoot.context = fiberRoot.pendingContext;\n fiberRoot.pendingContext = null;\n }\n\n if (current === null || current.child === null) {\n // If we hydrated, pop so that we can delete any remaining children\n // that weren't hydrated.\n var wasHydrated = popHydrationState(workInProgress);\n\n if (wasHydrated) {\n // If we hydrated, then we'll need to schedule an update for\n // the commit side-effects on the root.\n markUpdate(workInProgress);\n } else {\n if (current !== null) {\n var prevState = current.memoizedState;\n\n if ( // Check if this is a client root\n !prevState.isDehydrated || // Check if we reverted to client rendering (e.g. due to an error)\n (workInProgress.flags & ForceClientRender) !== NoFlags) {\n // Schedule an effect to clear this container at the start of the\n // next commit. This handles the case of React rendering into a\n // container with previous children. It's also safe to do for\n // updates too, because current.child would only be null if the\n // previous render was null (so the container would already\n // be empty).\n workInProgress.flags |= Snapshot; // If this was a forced client render, there may have been\n // recoverable errors during first hydration attempt. If so, add\n // them to a queue so we can log them in the commit phase.\n\n upgradeHydrationErrorsToRecoverable();\n }\n }\n }\n }\n\n updateHostContainer(current, workInProgress);\n bubbleProperties(workInProgress);\n\n return null;\n }\n\n case HostComponent:\n {\n popHostContext(workInProgress);\n var rootContainerInstance = getRootHostContainer();\n var type = workInProgress.type;\n\n if (current !== null && workInProgress.stateNode != null) {\n updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);\n\n if (current.ref !== workInProgress.ref) {\n markRef$1(workInProgress);\n }\n } else {\n if (!newProps) {\n if (workInProgress.stateNode === null) {\n throw new Error('We must have new props for new mounts. This error is likely ' + 'caused by a bug in React. Please file an issue.');\n } // This can happen when we abort work.\n\n\n bubbleProperties(workInProgress);\n return null;\n }\n\n var currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context\n // \"stack\" as the parent. Then append children as we go in beginWork\n // or completeWork depending on whether we want to add them top->down or\n // bottom->up. Top->down is faster in IE11.\n\n var _wasHydrated = popHydrationState(workInProgress);\n\n if (_wasHydrated) {\n // TODO: Move this and createInstance step into the beginPhase\n // to consolidate.\n if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {\n // If changes to the hydrated node need to be applied at the\n // commit-phase we mark this as such.\n markUpdate(workInProgress);\n }\n } else {\n var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);\n appendAllChildren(instance, workInProgress, false, false);\n workInProgress.stateNode = instance; // Certain renderers require commit-time effects for initial mount.\n // (eg DOM renderer supports auto-focus for certain elements).\n // Make sure such renderers get scheduled for later work.\n\n if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance)) {\n markUpdate(workInProgress);\n }\n }\n\n if (workInProgress.ref !== null) {\n // If there is a ref on a host node we need to schedule a callback\n markRef$1(workInProgress);\n }\n }\n\n bubbleProperties(workInProgress);\n return null;\n }\n\n case HostText:\n {\n var newText = newProps;\n\n if (current && workInProgress.stateNode != null) {\n var oldText = current.memoizedProps; // If we have an alternate, that means this is an update and we need\n // to schedule a side-effect to do the updates.\n\n updateHostText$1(current, workInProgress, oldText, newText);\n } else {\n if (typeof newText !== 'string') {\n if (workInProgress.stateNode === null) {\n throw new Error('We must have new props for new mounts. This error is likely ' + 'caused by a bug in React. Please file an issue.');\n } // This can happen when we abort work.\n\n }\n\n var _rootContainerInstance = getRootHostContainer();\n\n var _currentHostContext = getHostContext();\n\n var _wasHydrated2 = popHydrationState(workInProgress);\n\n if (_wasHydrated2) {\n if (prepareToHydrateHostTextInstance(workInProgress)) {\n markUpdate(workInProgress);\n }\n } else {\n workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);\n }\n }\n\n bubbleProperties(workInProgress);\n return null;\n }\n\n case SuspenseComponent:\n {\n popSuspenseContext(workInProgress);\n var nextState = workInProgress.memoizedState; // Special path for dehydrated boundaries. We may eventually move this\n // to its own fiber type so that we can add other kinds of hydration\n // boundaries that aren't associated with a Suspense tree. In anticipation\n // of such a refactor, all the hydration logic is contained in\n // this branch.\n\n if (current === null || current.memoizedState !== null && current.memoizedState.dehydrated !== null) {\n var fallthroughToNormalSuspensePath = completeDehydratedSuspenseBoundary(current, workInProgress, nextState);\n\n if (!fallthroughToNormalSuspensePath) {\n if (workInProgress.flags & ShouldCapture) {\n // Special case. There were remaining unhydrated nodes. We treat\n // this as a mismatch. Revert to client rendering.\n return workInProgress;\n } else {\n // Did not finish hydrating, either because this is the initial\n // render or because something suspended.\n return null;\n }\n } // Continue with the normal Suspense path.\n\n }\n\n if ((workInProgress.flags & DidCapture) !== NoFlags) {\n // Something suspended. Re-render with the fallback children.\n workInProgress.lanes = renderLanes; // Do not reset the effect list.\n\n if ( (workInProgress.mode & ProfileMode) !== NoMode) {\n transferActualDuration(workInProgress);\n } // Don't bubble properties in this case.\n\n\n return workInProgress;\n }\n\n var nextDidTimeout = nextState !== null;\n var prevDidTimeout = current !== null && current.memoizedState !== null;\n // a passive effect, which is when we process the transitions\n\n\n if (nextDidTimeout !== prevDidTimeout) {\n // an effect to toggle the subtree's visibility. When we switch from\n // fallback -> primary, the inner Offscreen fiber schedules this effect\n // as part of its normal complete phase. But when we switch from\n // primary -> fallback, the inner Offscreen fiber does not have a complete\n // phase. So we need to schedule its effect here.\n //\n // We also use this flag to connect/disconnect the effects, but the same\n // logic applies: when re-connecting, the Offscreen fiber's complete\n // phase will handle scheduling the effect. It's only when the fallback\n // is active that we have to do anything special.\n\n\n if (nextDidTimeout) {\n var _offscreenFiber2 = workInProgress.child;\n _offscreenFiber2.flags |= Visibility; // TODO: This will still suspend a synchronous tree if anything\n // in the concurrent tree already suspended during this render.\n // This is a known bug.\n\n if ((workInProgress.mode & ConcurrentMode) !== NoMode) {\n // TODO: Move this back to throwException because this is too late\n // if this is a large tree which is common for initial loads. We\n // don't know if we should restart a render or not until we get\n // this marker, and this is too late.\n // If this render already had a ping or lower pri updates,\n // and this is the first time we know we're going to suspend we\n // should be able to immediately restart from within throwException.\n var hasInvisibleChildContext = current === null && (workInProgress.memoizedProps.unstable_avoidThisFallback !== true || !enableSuspenseAvoidThisFallback);\n\n if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) {\n // If this was in an invisible tree or a new render, then showing\n // this boundary is ok.\n renderDidSuspend();\n } else {\n // Otherwise, we're going to have to hide content so we should\n // suspend for longer if possible.\n renderDidSuspendDelayIfPossible();\n }\n }\n }\n }\n\n var wakeables = workInProgress.updateQueue;\n\n if (wakeables !== null) {\n // Schedule an effect to attach a retry listener to the promise.\n // TODO: Move to passive phase\n workInProgress.flags |= Update;\n }\n\n bubbleProperties(workInProgress);\n\n {\n if ((workInProgress.mode & ProfileMode) !== NoMode) {\n if (nextDidTimeout) {\n // Don't count time spent in a timed out Suspense subtree as part of the base duration.\n var primaryChildFragment = workInProgress.child;\n\n if (primaryChildFragment !== null) {\n // $FlowFixMe Flow doesn't support type casting in combination with the -= operator\n workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration;\n }\n }\n }\n }\n\n return null;\n }\n\n case HostPortal:\n popHostContainer(workInProgress);\n updateHostContainer(current, workInProgress);\n\n if (current === null) {\n preparePortalMount(workInProgress.stateNode.containerInfo);\n }\n\n bubbleProperties(workInProgress);\n return null;\n\n case ContextProvider:\n // Pop provider fiber\n var context = workInProgress.type._context;\n popProvider(context, workInProgress);\n bubbleProperties(workInProgress);\n return null;\n\n case IncompleteClassComponent:\n {\n // Same as class component case. I put it down here so that the tags are\n // sequential to ensure this switch is compiled to a jump table.\n var _Component = workInProgress.type;\n\n if (isContextProvider(_Component)) {\n popContext(workInProgress);\n }\n\n bubbleProperties(workInProgress);\n return null;\n }\n\n case SuspenseListComponent:\n {\n popSuspenseContext(workInProgress);\n var renderState = workInProgress.memoizedState;\n\n if (renderState === null) {\n // We're running in the default, \"independent\" mode.\n // We don't do anything in this mode.\n bubbleProperties(workInProgress);\n return null;\n }\n\n var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags;\n var renderedTail = renderState.rendering;\n\n if (renderedTail === null) {\n // We just rendered the head.\n if (!didSuspendAlready) {\n // This is the first pass. We need to figure out if anything is still\n // suspended in the rendered set.\n // If new content unsuspended, but there's still some content that\n // didn't. Then we need to do a second pass that forces everything\n // to keep showing their fallbacks.\n // We might be suspended if something in this render pass suspended, or\n // something in the previous committed pass suspended. Otherwise,\n // there's no chance so we can skip the expensive call to\n // findFirstSuspended.\n var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.flags & DidCapture) === NoFlags);\n\n if (!cannotBeSuspended) {\n var row = workInProgress.child;\n\n while (row !== null) {\n var suspended = findFirstSuspended(row);\n\n if (suspended !== null) {\n didSuspendAlready = true;\n workInProgress.flags |= DidCapture;\n cutOffTailIfNeeded(renderState, false); // If this is a newly suspended tree, it might not get committed as\n // part of the second pass. In that case nothing will subscribe to\n // its thenables. Instead, we'll transfer its thenables to the\n // SuspenseList so that it can retry if they resolve.\n // There might be multiple of these in the list but since we're\n // going to wait for all of them anyway, it doesn't really matter\n // which ones gets to ping. In theory we could get clever and keep\n // track of how many dependencies remain but it gets tricky because\n // in the meantime, we can add/remove/change items and dependencies.\n // We might bail out of the loop before finding any but that\n // doesn't matter since that means that the other boundaries that\n // we did find already has their listeners attached.\n\n var newThenables = suspended.updateQueue;\n\n if (newThenables !== null) {\n workInProgress.updateQueue = newThenables;\n workInProgress.flags |= Update;\n } // Rerender the whole list, but this time, we'll force fallbacks\n // to stay in place.\n // Reset the effect flags before doing the second pass since that's now invalid.\n // Reset the child fibers to their original state.\n\n\n workInProgress.subtreeFlags = NoFlags;\n resetChildFibers(workInProgress, renderLanes); // Set up the Suspense Context to force suspense and immediately\n // rerender the children.\n\n pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback)); // Don't bubble properties in this case.\n\n return workInProgress.child;\n }\n\n row = row.sibling;\n }\n }\n\n if (renderState.tail !== null && now() > getRenderTargetTime()) {\n // We have already passed our CPU deadline but we still have rows\n // left in the tail. We'll just give up further attempts to render\n // the main content and only render fallbacks.\n workInProgress.flags |= DidCapture;\n didSuspendAlready = true;\n cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this\n // to get it started back up to attempt the next item. While in terms\n // of priority this work has the same priority as this current render,\n // it's not part of the same transition once the transition has\n // committed. If it's sync, we still want to yield so that it can be\n // painted. Conceptually, this is really the same as pinging.\n // We can use any RetryLane even if it's the one currently rendering\n // since we're leaving it behind on this node.\n\n workInProgress.lanes = SomeRetryLane;\n }\n } else {\n cutOffTailIfNeeded(renderState, false);\n } // Next we're going to render the tail.\n\n } else {\n // Append the rendered row to the child list.\n if (!didSuspendAlready) {\n var _suspended = findFirstSuspended(renderedTail);\n\n if (_suspended !== null) {\n workInProgress.flags |= DidCapture;\n didSuspendAlready = true; // Ensure we transfer the update queue to the parent so that it doesn't\n // get lost if this row ends up dropped during a second pass.\n\n var _newThenables = _suspended.updateQueue;\n\n if (_newThenables !== null) {\n workInProgress.updateQueue = _newThenables;\n workInProgress.flags |= Update;\n }\n\n cutOffTailIfNeeded(renderState, true); // This might have been modified.\n\n if (renderState.tail === null && renderState.tailMode === 'hidden' && !renderedTail.alternate && !getIsHydrating() // We don't cut it if we're hydrating.\n ) {\n // We're done.\n bubbleProperties(workInProgress);\n return null;\n }\n } else if ( // The time it took to render last row is greater than the remaining\n // time we have to render. So rendering one more row would likely\n // exceed it.\n now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane) {\n // We have now passed our CPU deadline and we'll just give up further\n // attempts to render the main content and only render fallbacks.\n // The assumption is that this is usually faster.\n workInProgress.flags |= DidCapture;\n didSuspendAlready = true;\n cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this\n // to get it started back up to attempt the next item. While in terms\n // of priority this work has the same priority as this current render,\n // it's not part of the same transition once the transition has\n // committed. If it's sync, we still want to yield so that it can be\n // painted. Conceptually, this is really the same as pinging.\n // We can use any RetryLane even if it's the one currently rendering\n // since we're leaving it behind on this node.\n\n workInProgress.lanes = SomeRetryLane;\n }\n }\n\n if (renderState.isBackwards) {\n // The effect list of the backwards tail will have been added\n // to the end. This breaks the guarantee that life-cycles fire in\n // sibling order but that isn't a strong guarantee promised by React.\n // Especially since these might also just pop in during future commits.\n // Append to the beginning of the list.\n renderedTail.sibling = workInProgress.child;\n workInProgress.child = renderedTail;\n } else {\n var previousSibling = renderState.last;\n\n if (previousSibling !== null) {\n previousSibling.sibling = renderedTail;\n } else {\n workInProgress.child = renderedTail;\n }\n\n renderState.last = renderedTail;\n }\n }\n\n if (renderState.tail !== null) {\n // We still have tail rows to render.\n // Pop a row.\n var next = renderState.tail;\n renderState.rendering = next;\n renderState.tail = next.sibling;\n renderState.renderingStartTime = now();\n next.sibling = null; // Restore the context.\n // TODO: We can probably just avoid popping it instead and only\n // setting it the first time we go from not suspended to suspended.\n\n var suspenseContext = suspenseStackCursor.current;\n\n if (didSuspendAlready) {\n suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);\n } else {\n suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);\n }\n\n pushSuspenseContext(workInProgress, suspenseContext); // Do a pass over the next row.\n // Don't bubble properties in this case.\n\n return next;\n }\n\n bubbleProperties(workInProgress);\n return null;\n }\n\n case ScopeComponent:\n {\n\n break;\n }\n\n case OffscreenComponent:\n case LegacyHiddenComponent:\n {\n popRenderLanes(workInProgress);\n var _nextState = workInProgress.memoizedState;\n var nextIsHidden = _nextState !== null;\n\n if (current !== null) {\n var _prevState = current.memoizedState;\n var prevIsHidden = _prevState !== null;\n\n if (prevIsHidden !== nextIsHidden && ( // LegacyHidden doesn't do any hiding — it only pre-renders.\n !enableLegacyHidden )) {\n workInProgress.flags |= Visibility;\n }\n }\n\n if (!nextIsHidden || (workInProgress.mode & ConcurrentMode) === NoMode) {\n bubbleProperties(workInProgress);\n } else {\n // Don't bubble properties for hidden children unless we're rendering\n // at offscreen priority.\n if (includesSomeLane(subtreeRenderLanes, OffscreenLane)) {\n bubbleProperties(workInProgress);\n\n {\n // Check if there was an insertion or update in the hidden subtree.\n // If so, we need to hide those nodes in the commit phase, so\n // schedule a visibility effect.\n if ( workInProgress.subtreeFlags & (Placement | Update)) {\n workInProgress.flags |= Visibility;\n }\n }\n }\n }\n return null;\n }\n\n case CacheComponent:\n {\n\n return null;\n }\n\n case TracingMarkerComponent:\n {\n\n return null;\n }\n }\n\n throw new Error(\"Unknown unit of work tag (\" + workInProgress.tag + \"). This error is likely caused by a bug in \" + 'React. Please file an issue.');\n}\n\nfunction unwindWork(current, workInProgress, renderLanes) {\n // Note: This intentionally doesn't check if we're hydrating because comparing\n // to the current tree provider fiber is just as fast and less error-prone.\n // Ideally we would have a special version of the work loop only\n // for hydration.\n popTreeContext(workInProgress);\n\n switch (workInProgress.tag) {\n case ClassComponent:\n {\n var Component = workInProgress.type;\n\n if (isContextProvider(Component)) {\n popContext(workInProgress);\n }\n\n var flags = workInProgress.flags;\n\n if (flags & ShouldCapture) {\n workInProgress.flags = flags & ~ShouldCapture | DidCapture;\n\n if ( (workInProgress.mode & ProfileMode) !== NoMode) {\n transferActualDuration(workInProgress);\n }\n\n return workInProgress;\n }\n\n return null;\n }\n\n case HostRoot:\n {\n var root = workInProgress.stateNode;\n popHostContainer(workInProgress);\n popTopLevelContextObject(workInProgress);\n resetWorkInProgressVersions();\n var _flags = workInProgress.flags;\n\n if ((_flags & ShouldCapture) !== NoFlags && (_flags & DidCapture) === NoFlags) {\n // There was an error during render that wasn't captured by a suspense\n // boundary. Do a second pass on the root to unmount the children.\n workInProgress.flags = _flags & ~ShouldCapture | DidCapture;\n return workInProgress;\n } // We unwound to the root without completing it. Exit.\n\n\n return null;\n }\n\n case HostComponent:\n {\n // TODO: popHydrationState\n popHostContext(workInProgress);\n return null;\n }\n\n case SuspenseComponent:\n {\n popSuspenseContext(workInProgress);\n var suspenseState = workInProgress.memoizedState;\n\n if (suspenseState !== null && suspenseState.dehydrated !== null) {\n if (workInProgress.alternate === null) {\n throw new Error('Threw in newly mounted dehydrated component. This is likely a bug in ' + 'React. Please file an issue.');\n }\n\n resetHydrationState();\n }\n\n var _flags2 = workInProgress.flags;\n\n if (_flags2 & ShouldCapture) {\n workInProgress.flags = _flags2 & ~ShouldCapture | DidCapture; // Captured a suspense effect. Re-render the boundary.\n\n if ( (workInProgress.mode & ProfileMode) !== NoMode) {\n transferActualDuration(workInProgress);\n }\n\n return workInProgress;\n }\n\n return null;\n }\n\n case SuspenseListComponent:\n {\n popSuspenseContext(workInProgress); // SuspenseList doesn't actually catch anything. It should've been\n // caught by a nested boundary. If not, it should bubble through.\n\n return null;\n }\n\n case HostPortal:\n popHostContainer(workInProgress);\n return null;\n\n case ContextProvider:\n var context = workInProgress.type._context;\n popProvider(context, workInProgress);\n return null;\n\n case OffscreenComponent:\n case LegacyHiddenComponent:\n popRenderLanes(workInProgress);\n return null;\n\n case CacheComponent:\n\n return null;\n\n default:\n return null;\n }\n}\n\nfunction unwindInterruptedWork(current, interruptedWork, renderLanes) {\n // Note: This intentionally doesn't check if we're hydrating because comparing\n // to the current tree provider fiber is just as fast and less error-prone.\n // Ideally we would have a special version of the work loop only\n // for hydration.\n popTreeContext(interruptedWork);\n\n switch (interruptedWork.tag) {\n case ClassComponent:\n {\n var childContextTypes = interruptedWork.type.childContextTypes;\n\n if (childContextTypes !== null && childContextTypes !== undefined) {\n popContext(interruptedWork);\n }\n\n break;\n }\n\n case HostRoot:\n {\n var root = interruptedWork.stateNode;\n popHostContainer(interruptedWork);\n popTopLevelContextObject(interruptedWork);\n resetWorkInProgressVersions();\n break;\n }\n\n case HostComponent:\n {\n popHostContext(interruptedWork);\n break;\n }\n\n case HostPortal:\n popHostContainer(interruptedWork);\n break;\n\n case SuspenseComponent:\n popSuspenseContext(interruptedWork);\n break;\n\n case SuspenseListComponent:\n popSuspenseContext(interruptedWork);\n break;\n\n case ContextProvider:\n var context = interruptedWork.type._context;\n popProvider(context, interruptedWork);\n break;\n\n case OffscreenComponent:\n case LegacyHiddenComponent:\n popRenderLanes(interruptedWork);\n break;\n }\n}\n\nvar didWarnAboutUndefinedSnapshotBeforeUpdate = null;\n\n{\n didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();\n} // Used during the commit phase to track the state of the Offscreen component stack.\n// Allows us to avoid traversing the return path to find the nearest Offscreen ancestor.\n// Only used when enableSuspenseLayoutEffectSemantics is enabled.\n\n\nvar offscreenSubtreeIsHidden = false;\nvar offscreenSubtreeWasHidden = false;\nvar PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set;\nvar nextEffect = null; // Used for Profiling builds to track updaters.\n\nvar inProgressLanes = null;\nvar inProgressRoot = null;\nfunction reportUncaughtErrorInDEV(error) {\n // Wrapping each small part of the commit phase into a guarded\n // callback is a bit too slow (https://github.com/facebook/react/pull/21666).\n // But we rely on it to surface errors to DEV tools like overlays\n // (https://github.com/facebook/react/issues/21712).\n // As a compromise, rethrow only caught errors in a guard.\n {\n invokeGuardedCallback(null, function () {\n throw error;\n });\n clearCaughtError();\n }\n}\n\nvar callComponentWillUnmountWithTimer = function (current, instance) {\n instance.props = current.memoizedProps;\n instance.state = current.memoizedState;\n\n if ( current.mode & ProfileMode) {\n try {\n startLayoutEffectTimer();\n instance.componentWillUnmount();\n } finally {\n recordLayoutEffectDuration(current);\n }\n } else {\n instance.componentWillUnmount();\n }\n}; // Capture errors so they don't interrupt mounting.\n\n\nfunction safelyCallCommitHookLayoutEffectListMount(current, nearestMountedAncestor) {\n try {\n commitHookEffectListMount(Layout, current);\n } catch (error) {\n captureCommitPhaseError(current, nearestMountedAncestor, error);\n }\n} // Capture errors so they don't interrupt unmounting.\n\n\nfunction safelyCallComponentWillUnmount(current, nearestMountedAncestor, instance) {\n try {\n callComponentWillUnmountWithTimer(current, instance);\n } catch (error) {\n captureCommitPhaseError(current, nearestMountedAncestor, error);\n }\n} // Capture errors so they don't interrupt mounting.\n\n\nfunction safelyCallComponentDidMount(current, nearestMountedAncestor, instance) {\n try {\n instance.componentDidMount();\n } catch (error) {\n captureCommitPhaseError(current, nearestMountedAncestor, error);\n }\n} // Capture errors so they don't interrupt mounting.\n\n\nfunction safelyAttachRef(current, nearestMountedAncestor) {\n try {\n commitAttachRef(current);\n } catch (error) {\n captureCommitPhaseError(current, nearestMountedAncestor, error);\n }\n}\n\nfunction safelyDetachRef(current, nearestMountedAncestor) {\n var ref = current.ref;\n\n if (ref !== null) {\n if (typeof ref === 'function') {\n var retVal;\n\n try {\n if (enableProfilerTimer && enableProfilerCommitHooks && current.mode & ProfileMode) {\n try {\n startLayoutEffectTimer();\n retVal = ref(null);\n } finally {\n recordLayoutEffectDuration(current);\n }\n } else {\n retVal = ref(null);\n }\n } catch (error) {\n captureCommitPhaseError(current, nearestMountedAncestor, error);\n }\n\n {\n if (typeof retVal === 'function') {\n error('Unexpected return value from a callback ref in %s. ' + 'A callback ref should not return a function.', getComponentNameFromFiber(current));\n }\n }\n } else {\n ref.current = null;\n }\n }\n}\n\nfunction safelyCallDestroy(current, nearestMountedAncestor, destroy) {\n try {\n destroy();\n } catch (error) {\n captureCommitPhaseError(current, nearestMountedAncestor, error);\n }\n}\n\nvar focusedInstanceHandle = null;\nvar shouldFireAfterActiveInstanceBlur = false;\nfunction commitBeforeMutationEffects(root, firstChild) {\n focusedInstanceHandle = prepareForCommit(root.containerInfo);\n nextEffect = firstChild;\n commitBeforeMutationEffects_begin(); // We no longer need to track the active instance fiber\n\n var shouldFire = shouldFireAfterActiveInstanceBlur;\n shouldFireAfterActiveInstanceBlur = false;\n focusedInstanceHandle = null;\n return shouldFire;\n}\n\nfunction commitBeforeMutationEffects_begin() {\n while (nextEffect !== null) {\n var fiber = nextEffect; // This phase is only used for beforeActiveInstanceBlur.\n\n var child = fiber.child;\n\n if ((fiber.subtreeFlags & BeforeMutationMask) !== NoFlags && child !== null) {\n child.return = fiber;\n nextEffect = child;\n } else {\n commitBeforeMutationEffects_complete();\n }\n }\n}\n\nfunction commitBeforeMutationEffects_complete() {\n while (nextEffect !== null) {\n var fiber = nextEffect;\n setCurrentFiber(fiber);\n\n try {\n commitBeforeMutationEffectsOnFiber(fiber);\n } catch (error) {\n captureCommitPhaseError(fiber, fiber.return, error);\n }\n\n resetCurrentFiber();\n var sibling = fiber.sibling;\n\n if (sibling !== null) {\n sibling.return = fiber.return;\n nextEffect = sibling;\n return;\n }\n\n nextEffect = fiber.return;\n }\n}\n\nfunction commitBeforeMutationEffectsOnFiber(finishedWork) {\n var current = finishedWork.alternate;\n var flags = finishedWork.flags;\n\n if ((flags & Snapshot) !== NoFlags) {\n setCurrentFiber(finishedWork);\n\n switch (finishedWork.tag) {\n case FunctionComponent:\n case ForwardRef:\n case SimpleMemoComponent:\n {\n break;\n }\n\n case ClassComponent:\n {\n if (current !== null) {\n var prevProps = current.memoizedProps;\n var prevState = current.memoizedState;\n var instance = finishedWork.stateNode; // We could update instance props and state here,\n // but instead we rely on them being set during last render.\n // TODO: revisit this when we implement resuming.\n\n {\n if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {\n if (instance.props !== finishedWork.memoizedProps) {\n error('Expected %s props to match memoized props before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');\n }\n\n if (instance.state !== finishedWork.memoizedState) {\n error('Expected %s state to match memoized state before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');\n }\n }\n }\n\n var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);\n\n {\n var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;\n\n if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {\n didWarnSet.add(finishedWork.type);\n\n error('%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentNameFromFiber(finishedWork));\n }\n }\n\n instance.__reactInternalSnapshotBeforeUpdate = snapshot;\n }\n\n break;\n }\n\n case HostRoot:\n {\n {\n var root = finishedWork.stateNode;\n clearContainer(root.containerInfo);\n }\n\n break;\n }\n\n case HostComponent:\n case HostText:\n case HostPortal:\n case IncompleteClassComponent:\n // Nothing to do for these component types\n break;\n\n default:\n {\n throw new Error('This unit of work tag should not have side-effects. This error is ' + 'likely caused by a bug in React. Please file an issue.');\n }\n }\n\n resetCurrentFiber();\n }\n}\n\nfunction commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) {\n var updateQueue = finishedWork.updateQueue;\n var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;\n\n if (lastEffect !== null) {\n var firstEffect = lastEffect.next;\n var effect = firstEffect;\n\n do {\n if ((effect.tag & flags) === flags) {\n // Unmount\n var destroy = effect.destroy;\n effect.destroy = undefined;\n\n if (destroy !== undefined) {\n {\n if ((flags & Passive$1) !== NoFlags$1) {\n markComponentPassiveEffectUnmountStarted(finishedWork);\n } else if ((flags & Layout) !== NoFlags$1) {\n markComponentLayoutEffectUnmountStarted(finishedWork);\n }\n }\n\n {\n if ((flags & Insertion) !== NoFlags$1) {\n setIsRunningInsertionEffect(true);\n }\n }\n\n safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy);\n\n {\n if ((flags & Insertion) !== NoFlags$1) {\n setIsRunningInsertionEffect(false);\n }\n }\n\n {\n if ((flags & Passive$1) !== NoFlags$1) {\n markComponentPassiveEffectUnmountStopped();\n } else if ((flags & Layout) !== NoFlags$1) {\n markComponentLayoutEffectUnmountStopped();\n }\n }\n }\n }\n\n effect = effect.next;\n } while (effect !== firstEffect);\n }\n}\n\nfunction commitHookEffectListMount(flags, finishedWork) {\n var updateQueue = finishedWork.updateQueue;\n var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;\n\n if (lastEffect !== null) {\n var firstEffect = lastEffect.next;\n var effect = firstEffect;\n\n do {\n if ((effect.tag & flags) === flags) {\n {\n if ((flags & Passive$1) !== NoFlags$1) {\n markComponentPassiveEffectMountStarted(finishedWork);\n } else if ((flags & Layout) !== NoFlags$1) {\n markComponentLayoutEffectMountStarted(finishedWork);\n }\n } // Mount\n\n\n var create = effect.create;\n\n {\n if ((flags & Insertion) !== NoFlags$1) {\n setIsRunningInsertionEffect(true);\n }\n }\n\n effect.destroy = create();\n\n {\n if ((flags & Insertion) !== NoFlags$1) {\n setIsRunningInsertionEffect(false);\n }\n }\n\n {\n if ((flags & Passive$1) !== NoFlags$1) {\n markComponentPassiveEffectMountStopped();\n } else if ((flags & Layout) !== NoFlags$1) {\n markComponentLayoutEffectMountStopped();\n }\n }\n\n {\n var destroy = effect.destroy;\n\n if (destroy !== undefined && typeof destroy !== 'function') {\n var hookName = void 0;\n\n if ((effect.tag & Layout) !== NoFlags) {\n hookName = 'useLayoutEffect';\n } else if ((effect.tag & Insertion) !== NoFlags) {\n hookName = 'useInsertionEffect';\n } else {\n hookName = 'useEffect';\n }\n\n var addendum = void 0;\n\n if (destroy === null) {\n addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';\n } else if (typeof destroy.then === 'function') {\n addendum = '\\n\\nIt looks like you wrote ' + hookName + '(async () => ...) or returned a Promise. ' + 'Instead, write the async function inside your effect ' + 'and call it immediately:\\n\\n' + hookName + '(() => {\\n' + ' async function fetchData() {\\n' + ' // You can await here\\n' + ' const response = await MyAPI.getData(someId);\\n' + ' // ...\\n' + ' }\\n' + ' fetchData();\\n' + \"}, [someId]); // Or [] if effect doesn't need props or state\\n\\n\" + 'Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching';\n } else {\n addendum = ' You returned: ' + destroy;\n }\n\n error('%s must not return anything besides a function, ' + 'which is used for clean-up.%s', hookName, addendum);\n }\n }\n }\n\n effect = effect.next;\n } while (effect !== firstEffect);\n }\n}\n\nfunction commitPassiveEffectDurations(finishedRoot, finishedWork) {\n {\n // Only Profilers with work in their subtree will have an Update effect scheduled.\n if ((finishedWork.flags & Update) !== NoFlags) {\n switch (finishedWork.tag) {\n case Profiler:\n {\n var passiveEffectDuration = finishedWork.stateNode.passiveEffectDuration;\n var _finishedWork$memoize = finishedWork.memoizedProps,\n id = _finishedWork$memoize.id,\n onPostCommit = _finishedWork$memoize.onPostCommit; // This value will still reflect the previous commit phase.\n // It does not get reset until the start of the next commit phase.\n\n var commitTime = getCommitTime();\n var phase = finishedWork.alternate === null ? 'mount' : 'update';\n\n {\n if (isCurrentUpdateNested()) {\n phase = 'nested-update';\n }\n }\n\n if (typeof onPostCommit === 'function') {\n onPostCommit(id, phase, passiveEffectDuration, commitTime);\n } // Bubble times to the next nearest ancestor Profiler.\n // After we process that Profiler, we'll bubble further up.\n\n\n var parentFiber = finishedWork.return;\n\n outer: while (parentFiber !== null) {\n switch (parentFiber.tag) {\n case HostRoot:\n var root = parentFiber.stateNode;\n root.passiveEffectDuration += passiveEffectDuration;\n break outer;\n\n case Profiler:\n var parentStateNode = parentFiber.stateNode;\n parentStateNode.passiveEffectDuration += passiveEffectDuration;\n break outer;\n }\n\n parentFiber = parentFiber.return;\n }\n\n break;\n }\n }\n }\n }\n}\n\nfunction commitLayoutEffectOnFiber(finishedRoot, current, finishedWork, committedLanes) {\n if ((finishedWork.flags & LayoutMask) !== NoFlags) {\n switch (finishedWork.tag) {\n case FunctionComponent:\n case ForwardRef:\n case SimpleMemoComponent:\n {\n if ( !offscreenSubtreeWasHidden) {\n // At this point layout effects have already been destroyed (during mutation phase).\n // This is done to prevent sibling component effects from interfering with each other,\n // e.g. a destroy function in one component should never override a ref set\n // by a create function in another component during the same commit.\n if ( finishedWork.mode & ProfileMode) {\n try {\n startLayoutEffectTimer();\n commitHookEffectListMount(Layout | HasEffect, finishedWork);\n } finally {\n recordLayoutEffectDuration(finishedWork);\n }\n } else {\n commitHookEffectListMount(Layout | HasEffect, finishedWork);\n }\n }\n\n break;\n }\n\n case ClassComponent:\n {\n var instance = finishedWork.stateNode;\n\n if (finishedWork.flags & Update) {\n if (!offscreenSubtreeWasHidden) {\n if (current === null) {\n // We could update instance props and state here,\n // but instead we rely on them being set during last render.\n // TODO: revisit this when we implement resuming.\n {\n if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {\n if (instance.props !== finishedWork.memoizedProps) {\n error('Expected %s props to match memoized props before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');\n }\n\n if (instance.state !== finishedWork.memoizedState) {\n error('Expected %s state to match memoized state before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');\n }\n }\n }\n\n if ( finishedWork.mode & ProfileMode) {\n try {\n startLayoutEffectTimer();\n instance.componentDidMount();\n } finally {\n recordLayoutEffectDuration(finishedWork);\n }\n } else {\n instance.componentDidMount();\n }\n } else {\n var prevProps = finishedWork.elementType === finishedWork.type ? current.memoizedProps : resolveDefaultProps(finishedWork.type, current.memoizedProps);\n var prevState = current.memoizedState; // We could update instance props and state here,\n // but instead we rely on them being set during last render.\n // TODO: revisit this when we implement resuming.\n\n {\n if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {\n if (instance.props !== finishedWork.memoizedProps) {\n error('Expected %s props to match memoized props before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');\n }\n\n if (instance.state !== finishedWork.memoizedState) {\n error('Expected %s state to match memoized state before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');\n }\n }\n }\n\n if ( finishedWork.mode & ProfileMode) {\n try {\n startLayoutEffectTimer();\n instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);\n } finally {\n recordLayoutEffectDuration(finishedWork);\n }\n } else {\n instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);\n }\n }\n }\n } // TODO: I think this is now always non-null by the time it reaches the\n // commit phase. Consider removing the type check.\n\n\n var updateQueue = finishedWork.updateQueue;\n\n if (updateQueue !== null) {\n {\n if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {\n if (instance.props !== finishedWork.memoizedProps) {\n error('Expected %s props to match memoized props before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');\n }\n\n if (instance.state !== finishedWork.memoizedState) {\n error('Expected %s state to match memoized state before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');\n }\n }\n } // We could update instance props and state here,\n // but instead we rely on them being set during last render.\n // TODO: revisit this when we implement resuming.\n\n\n commitUpdateQueue(finishedWork, updateQueue, instance);\n }\n\n break;\n }\n\n case HostRoot:\n {\n // TODO: I think this is now always non-null by the time it reaches the\n // commit phase. Consider removing the type check.\n var _updateQueue = finishedWork.updateQueue;\n\n if (_updateQueue !== null) {\n var _instance = null;\n\n if (finishedWork.child !== null) {\n switch (finishedWork.child.tag) {\n case HostComponent:\n _instance = getPublicInstance(finishedWork.child.stateNode);\n break;\n\n case ClassComponent:\n _instance = finishedWork.child.stateNode;\n break;\n }\n }\n\n commitUpdateQueue(finishedWork, _updateQueue, _instance);\n }\n\n break;\n }\n\n case HostComponent:\n {\n var _instance2 = finishedWork.stateNode; // Renderers may schedule work to be done after host components are mounted\n // (eg DOM renderer may schedule auto-focus for inputs and form controls).\n // These effects should only be committed when components are first mounted,\n // aka when there is no current/alternate.\n\n if (current === null && finishedWork.flags & Update) {\n var type = finishedWork.type;\n var props = finishedWork.memoizedProps;\n commitMount(_instance2, type, props);\n }\n\n break;\n }\n\n case HostText:\n {\n // We have no life-cycles associated with text.\n break;\n }\n\n case HostPortal:\n {\n // We have no life-cycles associated with portals.\n break;\n }\n\n case Profiler:\n {\n {\n var _finishedWork$memoize2 = finishedWork.memoizedProps,\n onCommit = _finishedWork$memoize2.onCommit,\n onRender = _finishedWork$memoize2.onRender;\n var effectDuration = finishedWork.stateNode.effectDuration;\n var commitTime = getCommitTime();\n var phase = current === null ? 'mount' : 'update';\n\n {\n if (isCurrentUpdateNested()) {\n phase = 'nested-update';\n }\n }\n\n if (typeof onRender === 'function') {\n onRender(finishedWork.memoizedProps.id, phase, finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, commitTime);\n }\n\n {\n if (typeof onCommit === 'function') {\n onCommit(finishedWork.memoizedProps.id, phase, effectDuration, commitTime);\n } // Schedule a passive effect for this Profiler to call onPostCommit hooks.\n // This effect should be scheduled even if there is no onPostCommit callback for this Profiler,\n // because the effect is also where times bubble to parent Profilers.\n\n\n enqueuePendingPassiveProfilerEffect(finishedWork); // Propagate layout effect durations to the next nearest Profiler ancestor.\n // Do not reset these values until the next render so DevTools has a chance to read them first.\n\n var parentFiber = finishedWork.return;\n\n outer: while (parentFiber !== null) {\n switch (parentFiber.tag) {\n case HostRoot:\n var root = parentFiber.stateNode;\n root.effectDuration += effectDuration;\n break outer;\n\n case Profiler:\n var parentStateNode = parentFiber.stateNode;\n parentStateNode.effectDuration += effectDuration;\n break outer;\n }\n\n parentFiber = parentFiber.return;\n }\n }\n }\n\n break;\n }\n\n case SuspenseComponent:\n {\n commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);\n break;\n }\n\n case SuspenseListComponent:\n case IncompleteClassComponent:\n case ScopeComponent:\n case OffscreenComponent:\n case LegacyHiddenComponent:\n case TracingMarkerComponent:\n {\n break;\n }\n\n default:\n throw new Error('This unit of work tag should not have side-effects. This error is ' + 'likely caused by a bug in React. Please file an issue.');\n }\n }\n\n if ( !offscreenSubtreeWasHidden) {\n {\n if (finishedWork.flags & Ref) {\n commitAttachRef(finishedWork);\n }\n }\n }\n}\n\nfunction reappearLayoutEffectsOnFiber(node) {\n // Turn on layout effects in a tree that previously disappeared.\n // TODO (Offscreen) Check: flags & LayoutStatic\n switch (node.tag) {\n case FunctionComponent:\n case ForwardRef:\n case SimpleMemoComponent:\n {\n if ( node.mode & ProfileMode) {\n try {\n startLayoutEffectTimer();\n safelyCallCommitHookLayoutEffectListMount(node, node.return);\n } finally {\n recordLayoutEffectDuration(node);\n }\n } else {\n safelyCallCommitHookLayoutEffectListMount(node, node.return);\n }\n\n break;\n }\n\n case ClassComponent:\n {\n var instance = node.stateNode;\n\n if (typeof instance.componentDidMount === 'function') {\n safelyCallComponentDidMount(node, node.return, instance);\n }\n\n safelyAttachRef(node, node.return);\n break;\n }\n\n case HostComponent:\n {\n safelyAttachRef(node, node.return);\n break;\n }\n }\n}\n\nfunction hideOrUnhideAllChildren(finishedWork, isHidden) {\n // Only hide or unhide the top-most host nodes.\n var hostSubtreeRoot = null;\n\n {\n // We only have the top Fiber that was inserted but we need to recurse down its\n // children to find all the terminal nodes.\n var node = finishedWork;\n\n while (true) {\n if (node.tag === HostComponent) {\n if (hostSubtreeRoot === null) {\n hostSubtreeRoot = node;\n\n try {\n var instance = node.stateNode;\n\n if (isHidden) {\n hideInstance(instance);\n } else {\n unhideInstance(node.stateNode, node.memoizedProps);\n }\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n } else if (node.tag === HostText) {\n if (hostSubtreeRoot === null) {\n try {\n var _instance3 = node.stateNode;\n\n if (isHidden) {\n hideTextInstance(_instance3);\n } else {\n unhideTextInstance(_instance3, node.memoizedProps);\n }\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n } else if ((node.tag === OffscreenComponent || node.tag === LegacyHiddenComponent) && node.memoizedState !== null && node !== finishedWork) ; else if (node.child !== null) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n\n if (node === finishedWork) {\n return;\n }\n\n while (node.sibling === null) {\n if (node.return === null || node.return === finishedWork) {\n return;\n }\n\n if (hostSubtreeRoot === node) {\n hostSubtreeRoot = null;\n }\n\n node = node.return;\n }\n\n if (hostSubtreeRoot === node) {\n hostSubtreeRoot = null;\n }\n\n node.sibling.return = node.return;\n node = node.sibling;\n }\n }\n}\n\nfunction commitAttachRef(finishedWork) {\n var ref = finishedWork.ref;\n\n if (ref !== null) {\n var instance = finishedWork.stateNode;\n var instanceToUse;\n\n switch (finishedWork.tag) {\n case HostComponent:\n instanceToUse = getPublicInstance(instance);\n break;\n\n default:\n instanceToUse = instance;\n } // Moved outside to ensure DCE works with this flag\n\n if (typeof ref === 'function') {\n var retVal;\n\n if ( finishedWork.mode & ProfileMode) {\n try {\n startLayoutEffectTimer();\n retVal = ref(instanceToUse);\n } finally {\n recordLayoutEffectDuration(finishedWork);\n }\n } else {\n retVal = ref(instanceToUse);\n }\n\n {\n if (typeof retVal === 'function') {\n error('Unexpected return value from a callback ref in %s. ' + 'A callback ref should not return a function.', getComponentNameFromFiber(finishedWork));\n }\n }\n } else {\n {\n if (!ref.hasOwnProperty('current')) {\n error('Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().', getComponentNameFromFiber(finishedWork));\n }\n }\n\n ref.current = instanceToUse;\n }\n }\n}\n\nfunction detachFiberMutation(fiber) {\n // Cut off the return pointer to disconnect it from the tree.\n // This enables us to detect and warn against state updates on an unmounted component.\n // It also prevents events from bubbling from within disconnected components.\n //\n // Ideally, we should also clear the child pointer of the parent alternate to let this\n // get GC:ed but we don't know which for sure which parent is the current\n // one so we'll settle for GC:ing the subtree of this child.\n // This child itself will be GC:ed when the parent updates the next time.\n //\n // Note that we can't clear child or sibling pointers yet.\n // They're needed for passive effects and for findDOMNode.\n // We defer those fields, and all other cleanup, to the passive phase (see detachFiberAfterEffects).\n //\n // Don't reset the alternate yet, either. We need that so we can detach the\n // alternate's fields in the passive phase. Clearing the return pointer is\n // sufficient for findDOMNode semantics.\n var alternate = fiber.alternate;\n\n if (alternate !== null) {\n alternate.return = null;\n }\n\n fiber.return = null;\n}\n\nfunction detachFiberAfterEffects(fiber) {\n var alternate = fiber.alternate;\n\n if (alternate !== null) {\n fiber.alternate = null;\n detachFiberAfterEffects(alternate);\n } // Note: Defensively using negation instead of < in case\n // `deletedTreeCleanUpLevel` is undefined.\n\n\n {\n // Clear cyclical Fiber fields. This level alone is designed to roughly\n // approximate the planned Fiber refactor. In that world, `setState` will be\n // bound to a special \"instance\" object instead of a Fiber. The Instance\n // object will not have any of these fields. It will only be connected to\n // the fiber tree via a single link at the root. So if this level alone is\n // sufficient to fix memory issues, that bodes well for our plans.\n fiber.child = null;\n fiber.deletions = null;\n fiber.sibling = null; // The `stateNode` is cyclical because on host nodes it points to the host\n // tree, which has its own pointers to children, parents, and siblings.\n // The other host nodes also point back to fibers, so we should detach that\n // one, too.\n\n if (fiber.tag === HostComponent) {\n var hostInstance = fiber.stateNode;\n\n if (hostInstance !== null) {\n detachDeletedInstance(hostInstance);\n }\n }\n\n fiber.stateNode = null; // I'm intentionally not clearing the `return` field in this level. We\n // already disconnect the `return` pointer at the root of the deleted\n // subtree (in `detachFiberMutation`). Besides, `return` by itself is not\n // cyclical — it's only cyclical when combined with `child`, `sibling`, and\n // `alternate`. But we'll clear it in the next level anyway, just in case.\n\n {\n fiber._debugOwner = null;\n }\n\n {\n // Theoretically, nothing in here should be necessary, because we already\n // disconnected the fiber from the tree. So even if something leaks this\n // particular fiber, it won't leak anything else\n //\n // The purpose of this branch is to be super aggressive so we can measure\n // if there's any difference in memory impact. If there is, that could\n // indicate a React leak we don't know about.\n fiber.return = null;\n fiber.dependencies = null;\n fiber.memoizedProps = null;\n fiber.memoizedState = null;\n fiber.pendingProps = null;\n fiber.stateNode = null; // TODO: Move to `commitPassiveUnmountInsideDeletedTreeOnFiber` instead.\n\n fiber.updateQueue = null;\n }\n }\n}\n\nfunction getHostParentFiber(fiber) {\n var parent = fiber.return;\n\n while (parent !== null) {\n if (isHostParent(parent)) {\n return parent;\n }\n\n parent = parent.return;\n }\n\n throw new Error('Expected to find a host parent. This error is likely caused by a bug ' + 'in React. Please file an issue.');\n}\n\nfunction isHostParent(fiber) {\n return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;\n}\n\nfunction getHostSibling(fiber) {\n // We're going to search forward into the tree until we find a sibling host\n // node. Unfortunately, if multiple insertions are done in a row we have to\n // search past them. This leads to exponential search for the next sibling.\n // TODO: Find a more efficient way to do this.\n var node = fiber;\n\n siblings: while (true) {\n // If we didn't find anything, let's try the next sibling.\n while (node.sibling === null) {\n if (node.return === null || isHostParent(node.return)) {\n // If we pop out of the root or hit the parent the fiber we are the\n // last sibling.\n return null;\n }\n\n node = node.return;\n }\n\n node.sibling.return = node.return;\n node = node.sibling;\n\n while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedFragment) {\n // If it is not host node and, we might have a host node inside it.\n // Try to search down until we find one.\n if (node.flags & Placement) {\n // If we don't have a child, try the siblings instead.\n continue siblings;\n } // If we don't have a child, try the siblings instead.\n // We also skip portals because they are not part of this host tree.\n\n\n if (node.child === null || node.tag === HostPortal) {\n continue siblings;\n } else {\n node.child.return = node;\n node = node.child;\n }\n } // Check if this host node is stable or about to be placed.\n\n\n if (!(node.flags & Placement)) {\n // Found it!\n return node.stateNode;\n }\n }\n}\n\nfunction commitPlacement(finishedWork) {\n\n\n var parentFiber = getHostParentFiber(finishedWork); // Note: these two variables *must* always be updated together.\n\n switch (parentFiber.tag) {\n case HostComponent:\n {\n var parent = parentFiber.stateNode;\n\n if (parentFiber.flags & ContentReset) {\n // Reset the text content of the parent before doing any insertions\n resetTextContent(parent); // Clear ContentReset from the effect tag\n\n parentFiber.flags &= ~ContentReset;\n }\n\n var before = getHostSibling(finishedWork); // We only have the top Fiber that was inserted but we need to recurse down its\n // children to find all the terminal nodes.\n\n insertOrAppendPlacementNode(finishedWork, before, parent);\n break;\n }\n\n case HostRoot:\n case HostPortal:\n {\n var _parent = parentFiber.stateNode.containerInfo;\n\n var _before = getHostSibling(finishedWork);\n\n insertOrAppendPlacementNodeIntoContainer(finishedWork, _before, _parent);\n break;\n }\n // eslint-disable-next-line-no-fallthrough\n\n default:\n throw new Error('Invalid host parent fiber. This error is likely caused by a bug ' + 'in React. Please file an issue.');\n }\n}\n\nfunction insertOrAppendPlacementNodeIntoContainer(node, before, parent) {\n var tag = node.tag;\n var isHost = tag === HostComponent || tag === HostText;\n\n if (isHost) {\n var stateNode = node.stateNode;\n\n if (before) {\n insertInContainerBefore(parent, stateNode, before);\n } else {\n appendChildToContainer(parent, stateNode);\n }\n } else if (tag === HostPortal) ; else {\n var child = node.child;\n\n if (child !== null) {\n insertOrAppendPlacementNodeIntoContainer(child, before, parent);\n var sibling = child.sibling;\n\n while (sibling !== null) {\n insertOrAppendPlacementNodeIntoContainer(sibling, before, parent);\n sibling = sibling.sibling;\n }\n }\n }\n}\n\nfunction insertOrAppendPlacementNode(node, before, parent) {\n var tag = node.tag;\n var isHost = tag === HostComponent || tag === HostText;\n\n if (isHost) {\n var stateNode = node.stateNode;\n\n if (before) {\n insertBefore(parent, stateNode, before);\n } else {\n appendChild(parent, stateNode);\n }\n } else if (tag === HostPortal) ; else {\n var child = node.child;\n\n if (child !== null) {\n insertOrAppendPlacementNode(child, before, parent);\n var sibling = child.sibling;\n\n while (sibling !== null) {\n insertOrAppendPlacementNode(sibling, before, parent);\n sibling = sibling.sibling;\n }\n }\n }\n} // These are tracked on the stack as we recursively traverse a\n// deleted subtree.\n// TODO: Update these during the whole mutation phase, not just during\n// a deletion.\n\n\nvar hostParent = null;\nvar hostParentIsContainer = false;\n\nfunction commitDeletionEffects(root, returnFiber, deletedFiber) {\n {\n // We only have the top Fiber that was deleted but we need to recurse down its\n // children to find all the terminal nodes.\n // Recursively delete all host nodes from the parent, detach refs, clean\n // up mounted layout effects, and call componentWillUnmount.\n // We only need to remove the topmost host child in each branch. But then we\n // still need to keep traversing to unmount effects, refs, and cWU. TODO: We\n // could split this into two separate traversals functions, where the second\n // one doesn't include any removeChild logic. This is maybe the same\n // function as \"disappearLayoutEffects\" (or whatever that turns into after\n // the layout phase is refactored to use recursion).\n // Before starting, find the nearest host parent on the stack so we know\n // which instance/container to remove the children from.\n // TODO: Instead of searching up the fiber return path on every deletion, we\n // can track the nearest host component on the JS stack as we traverse the\n // tree during the commit phase. This would make insertions faster, too.\n var parent = returnFiber;\n\n findParent: while (parent !== null) {\n switch (parent.tag) {\n case HostComponent:\n {\n hostParent = parent.stateNode;\n hostParentIsContainer = false;\n break findParent;\n }\n\n case HostRoot:\n {\n hostParent = parent.stateNode.containerInfo;\n hostParentIsContainer = true;\n break findParent;\n }\n\n case HostPortal:\n {\n hostParent = parent.stateNode.containerInfo;\n hostParentIsContainer = true;\n break findParent;\n }\n }\n\n parent = parent.return;\n }\n\n if (hostParent === null) {\n throw new Error('Expected to find a host parent. This error is likely caused by ' + 'a bug in React. Please file an issue.');\n }\n\n commitDeletionEffectsOnFiber(root, returnFiber, deletedFiber);\n hostParent = null;\n hostParentIsContainer = false;\n }\n\n detachFiberMutation(deletedFiber);\n}\n\nfunction recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) {\n // TODO: Use a static flag to skip trees that don't have unmount effects\n var child = parent.child;\n\n while (child !== null) {\n commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, child);\n child = child.sibling;\n }\n}\n\nfunction commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) {\n onCommitUnmount(deletedFiber); // The cases in this outer switch modify the stack before they traverse\n // into their subtree. There are simpler cases in the inner switch\n // that don't modify the stack.\n\n switch (deletedFiber.tag) {\n case HostComponent:\n {\n if (!offscreenSubtreeWasHidden) {\n safelyDetachRef(deletedFiber, nearestMountedAncestor);\n } // Intentional fallthrough to next branch\n\n }\n // eslint-disable-next-line-no-fallthrough\n\n case HostText:\n {\n // We only need to remove the nearest host child. Set the host parent\n // to `null` on the stack to indicate that nested children don't\n // need to be removed.\n {\n var prevHostParent = hostParent;\n var prevHostParentIsContainer = hostParentIsContainer;\n hostParent = null;\n recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);\n hostParent = prevHostParent;\n hostParentIsContainer = prevHostParentIsContainer;\n\n if (hostParent !== null) {\n // Now that all the child effects have unmounted, we can remove the\n // node from the tree.\n if (hostParentIsContainer) {\n removeChildFromContainer(hostParent, deletedFiber.stateNode);\n } else {\n removeChild(hostParent, deletedFiber.stateNode);\n }\n }\n }\n\n return;\n }\n\n case DehydratedFragment:\n {\n // Delete the dehydrated suspense boundary and all of its content.\n\n\n {\n if (hostParent !== null) {\n if (hostParentIsContainer) {\n clearSuspenseBoundaryFromContainer(hostParent, deletedFiber.stateNode);\n } else {\n clearSuspenseBoundary(hostParent, deletedFiber.stateNode);\n }\n }\n }\n\n return;\n }\n\n case HostPortal:\n {\n {\n // When we go into a portal, it becomes the parent to remove from.\n var _prevHostParent = hostParent;\n var _prevHostParentIsContainer = hostParentIsContainer;\n hostParent = deletedFiber.stateNode.containerInfo;\n hostParentIsContainer = true;\n recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);\n hostParent = _prevHostParent;\n hostParentIsContainer = _prevHostParentIsContainer;\n }\n\n return;\n }\n\n case FunctionComponent:\n case ForwardRef:\n case MemoComponent:\n case SimpleMemoComponent:\n {\n if (!offscreenSubtreeWasHidden) {\n var updateQueue = deletedFiber.updateQueue;\n\n if (updateQueue !== null) {\n var lastEffect = updateQueue.lastEffect;\n\n if (lastEffect !== null) {\n var firstEffect = lastEffect.next;\n var effect = firstEffect;\n\n do {\n var _effect = effect,\n destroy = _effect.destroy,\n tag = _effect.tag;\n\n if (destroy !== undefined) {\n if ((tag & Insertion) !== NoFlags$1) {\n safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy);\n } else if ((tag & Layout) !== NoFlags$1) {\n {\n markComponentLayoutEffectUnmountStarted(deletedFiber);\n }\n\n if ( deletedFiber.mode & ProfileMode) {\n startLayoutEffectTimer();\n safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy);\n recordLayoutEffectDuration(deletedFiber);\n } else {\n safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy);\n }\n\n {\n markComponentLayoutEffectUnmountStopped();\n }\n }\n }\n\n effect = effect.next;\n } while (effect !== firstEffect);\n }\n }\n }\n\n recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);\n return;\n }\n\n case ClassComponent:\n {\n if (!offscreenSubtreeWasHidden) {\n safelyDetachRef(deletedFiber, nearestMountedAncestor);\n var instance = deletedFiber.stateNode;\n\n if (typeof instance.componentWillUnmount === 'function') {\n safelyCallComponentWillUnmount(deletedFiber, nearestMountedAncestor, instance);\n }\n }\n\n recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);\n return;\n }\n\n case ScopeComponent:\n {\n\n recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);\n return;\n }\n\n case OffscreenComponent:\n {\n if ( // TODO: Remove this dead flag\n deletedFiber.mode & ConcurrentMode) {\n // If this offscreen component is hidden, we already unmounted it. Before\n // deleting the children, track that it's already unmounted so that we\n // don't attempt to unmount the effects again.\n // TODO: If the tree is hidden, in most cases we should be able to skip\n // over the nested children entirely. An exception is we haven't yet found\n // the topmost host node to delete, which we already track on the stack.\n // But the other case is portals, which need to be detached no matter how\n // deeply they are nested. We should use a subtree flag to track whether a\n // subtree includes a nested portal.\n var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;\n offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || deletedFiber.memoizedState !== null;\n recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);\n offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;\n } else {\n recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);\n }\n\n break;\n }\n\n default:\n {\n recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);\n return;\n }\n }\n}\n\nfunction commitSuspenseCallback(finishedWork) {\n // TODO: Move this to passive phase\n var newState = finishedWork.memoizedState;\n}\n\nfunction commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {\n\n var newState = finishedWork.memoizedState;\n\n if (newState === null) {\n var current = finishedWork.alternate;\n\n if (current !== null) {\n var prevState = current.memoizedState;\n\n if (prevState !== null) {\n var suspenseInstance = prevState.dehydrated;\n\n if (suspenseInstance !== null) {\n commitHydratedSuspenseInstance(suspenseInstance);\n }\n }\n }\n }\n}\n\nfunction attachSuspenseRetryListeners(finishedWork) {\n // If this boundary just timed out, then it will have a set of wakeables.\n // For each wakeable, attach a listener so that when it resolves, React\n // attempts to re-render the boundary in the primary (pre-timeout) state.\n var wakeables = finishedWork.updateQueue;\n\n if (wakeables !== null) {\n finishedWork.updateQueue = null;\n var retryCache = finishedWork.stateNode;\n\n if (retryCache === null) {\n retryCache = finishedWork.stateNode = new PossiblyWeakSet();\n }\n\n wakeables.forEach(function (wakeable) {\n // Memoize using the boundary fiber to prevent redundant listeners.\n var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable);\n\n if (!retryCache.has(wakeable)) {\n retryCache.add(wakeable);\n\n {\n if (isDevToolsPresent) {\n if (inProgressLanes !== null && inProgressRoot !== null) {\n // If we have pending work still, associate the original updaters with it.\n restorePendingUpdaters(inProgressRoot, inProgressLanes);\n } else {\n throw Error('Expected finished root and lanes to be set. This is a bug in React.');\n }\n }\n }\n\n wakeable.then(retry, retry);\n }\n });\n }\n} // This function detects when a Suspense boundary goes from visible to hidden.\nfunction commitMutationEffects(root, finishedWork, committedLanes) {\n inProgressLanes = committedLanes;\n inProgressRoot = root;\n setCurrentFiber(finishedWork);\n commitMutationEffectsOnFiber(finishedWork, root);\n setCurrentFiber(finishedWork);\n inProgressLanes = null;\n inProgressRoot = null;\n}\n\nfunction recursivelyTraverseMutationEffects(root, parentFiber, lanes) {\n // Deletions effects can be scheduled on any fiber type. They need to happen\n // before the children effects hae fired.\n var deletions = parentFiber.deletions;\n\n if (deletions !== null) {\n for (var i = 0; i < deletions.length; i++) {\n var childToDelete = deletions[i];\n\n try {\n commitDeletionEffects(root, parentFiber, childToDelete);\n } catch (error) {\n captureCommitPhaseError(childToDelete, parentFiber, error);\n }\n }\n }\n\n var prevDebugFiber = getCurrentFiber();\n\n if (parentFiber.subtreeFlags & MutationMask) {\n var child = parentFiber.child;\n\n while (child !== null) {\n setCurrentFiber(child);\n commitMutationEffectsOnFiber(child, root);\n child = child.sibling;\n }\n }\n\n setCurrentFiber(prevDebugFiber);\n}\n\nfunction commitMutationEffectsOnFiber(finishedWork, root, lanes) {\n var current = finishedWork.alternate;\n var flags = finishedWork.flags; // The effect flag should be checked *after* we refine the type of fiber,\n // because the fiber tag is more specific. An exception is any flag related\n // to reconcilation, because those can be set on all fiber types.\n\n switch (finishedWork.tag) {\n case FunctionComponent:\n case ForwardRef:\n case MemoComponent:\n case SimpleMemoComponent:\n {\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n\n if (flags & Update) {\n try {\n commitHookEffectListUnmount(Insertion | HasEffect, finishedWork, finishedWork.return);\n commitHookEffectListMount(Insertion | HasEffect, finishedWork);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n } // Layout effects are destroyed during the mutation phase so that all\n // destroy functions for all fibers are called before any create functions.\n // This prevents sibling component effects from interfering with each other,\n // e.g. a destroy function in one component should never override a ref set\n // by a create function in another component during the same commit.\n\n\n if ( finishedWork.mode & ProfileMode) {\n try {\n startLayoutEffectTimer();\n commitHookEffectListUnmount(Layout | HasEffect, finishedWork, finishedWork.return);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n\n recordLayoutEffectDuration(finishedWork);\n } else {\n try {\n commitHookEffectListUnmount(Layout | HasEffect, finishedWork, finishedWork.return);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n }\n\n return;\n }\n\n case ClassComponent:\n {\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n\n if (flags & Ref) {\n if (current !== null) {\n safelyDetachRef(current, current.return);\n }\n }\n\n return;\n }\n\n case HostComponent:\n {\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n\n if (flags & Ref) {\n if (current !== null) {\n safelyDetachRef(current, current.return);\n }\n }\n\n {\n // TODO: ContentReset gets cleared by the children during the commit\n // phase. This is a refactor hazard because it means we must read\n // flags the flags after `commitReconciliationEffects` has already run;\n // the order matters. We should refactor so that ContentReset does not\n // rely on mutating the flag during commit. Like by setting a flag\n // during the render phase instead.\n if (finishedWork.flags & ContentReset) {\n var instance = finishedWork.stateNode;\n\n try {\n resetTextContent(instance);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n\n if (flags & Update) {\n var _instance4 = finishedWork.stateNode;\n\n if (_instance4 != null) {\n // Commit the work prepared earlier.\n var newProps = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps\n // as the newProps. The updatePayload will contain the real change in\n // this case.\n\n var oldProps = current !== null ? current.memoizedProps : newProps;\n var type = finishedWork.type; // TODO: Type the updateQueue to be specific to host components.\n\n var updatePayload = finishedWork.updateQueue;\n finishedWork.updateQueue = null;\n\n if (updatePayload !== null) {\n try {\n commitUpdate(_instance4, updatePayload, type, oldProps, newProps, finishedWork);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n }\n }\n }\n\n return;\n }\n\n case HostText:\n {\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n\n if (flags & Update) {\n {\n if (finishedWork.stateNode === null) {\n throw new Error('This should have a text node initialized. This error is likely ' + 'caused by a bug in React. Please file an issue.');\n }\n\n var textInstance = finishedWork.stateNode;\n var newText = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps\n // as the newProps. The updatePayload will contain the real change in\n // this case.\n\n var oldText = current !== null ? current.memoizedProps : newText;\n\n try {\n commitTextUpdate(textInstance, oldText, newText);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n }\n\n return;\n }\n\n case HostRoot:\n {\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n\n if (flags & Update) {\n {\n if (current !== null) {\n var prevRootState = current.memoizedState;\n\n if (prevRootState.isDehydrated) {\n try {\n commitHydratedContainer(root.containerInfo);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n }\n }\n }\n\n return;\n }\n\n case HostPortal:\n {\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n\n return;\n }\n\n case SuspenseComponent:\n {\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n var offscreenFiber = finishedWork.child;\n\n if (offscreenFiber.flags & Visibility) {\n var offscreenInstance = offscreenFiber.stateNode;\n var newState = offscreenFiber.memoizedState;\n var isHidden = newState !== null; // Track the current state on the Offscreen instance so we can\n // read it during an event\n\n offscreenInstance.isHidden = isHidden;\n\n if (isHidden) {\n var wasHidden = offscreenFiber.alternate !== null && offscreenFiber.alternate.memoizedState !== null;\n\n if (!wasHidden) {\n // TODO: Move to passive phase\n markCommitTimeOfFallback();\n }\n }\n }\n\n if (flags & Update) {\n try {\n commitSuspenseCallback(finishedWork);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n\n attachSuspenseRetryListeners(finishedWork);\n }\n\n return;\n }\n\n case OffscreenComponent:\n {\n var _wasHidden = current !== null && current.memoizedState !== null;\n\n if ( // TODO: Remove this dead flag\n finishedWork.mode & ConcurrentMode) {\n // Before committing the children, track on the stack whether this\n // offscreen subtree was already hidden, so that we don't unmount the\n // effects again.\n var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;\n offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || _wasHidden;\n recursivelyTraverseMutationEffects(root, finishedWork);\n offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;\n } else {\n recursivelyTraverseMutationEffects(root, finishedWork);\n }\n\n commitReconciliationEffects(finishedWork);\n\n if (flags & Visibility) {\n var _offscreenInstance = finishedWork.stateNode;\n var _newState = finishedWork.memoizedState;\n\n var _isHidden = _newState !== null;\n\n var offscreenBoundary = finishedWork; // Track the current state on the Offscreen instance so we can\n // read it during an event\n\n _offscreenInstance.isHidden = _isHidden;\n\n {\n if (_isHidden) {\n if (!_wasHidden) {\n if ((offscreenBoundary.mode & ConcurrentMode) !== NoMode) {\n nextEffect = offscreenBoundary;\n var offscreenChild = offscreenBoundary.child;\n\n while (offscreenChild !== null) {\n nextEffect = offscreenChild;\n disappearLayoutEffects_begin(offscreenChild);\n offscreenChild = offscreenChild.sibling;\n }\n }\n }\n }\n }\n\n {\n // TODO: This needs to run whenever there's an insertion or update\n // inside a hidden Offscreen tree.\n hideOrUnhideAllChildren(offscreenBoundary, _isHidden);\n }\n }\n\n return;\n }\n\n case SuspenseListComponent:\n {\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n\n if (flags & Update) {\n attachSuspenseRetryListeners(finishedWork);\n }\n\n return;\n }\n\n case ScopeComponent:\n {\n\n return;\n }\n\n default:\n {\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n return;\n }\n }\n}\n\nfunction commitReconciliationEffects(finishedWork) {\n // Placement effects (insertions, reorders) can be scheduled on any fiber\n // type. They needs to happen after the children effects have fired, but\n // before the effects on this fiber have fired.\n var flags = finishedWork.flags;\n\n if (flags & Placement) {\n try {\n commitPlacement(finishedWork);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n } // Clear the \"placement\" from effect tag so that we know that this is\n // inserted, before any life-cycles like componentDidMount gets called.\n // TODO: findDOMNode doesn't rely on this any more but isMounted does\n // and isMounted is deprecated anyway so we should be able to kill this.\n\n\n finishedWork.flags &= ~Placement;\n }\n\n if (flags & Hydrating) {\n finishedWork.flags &= ~Hydrating;\n }\n}\n\nfunction commitLayoutEffects(finishedWork, root, committedLanes) {\n inProgressLanes = committedLanes;\n inProgressRoot = root;\n nextEffect = finishedWork;\n commitLayoutEffects_begin(finishedWork, root, committedLanes);\n inProgressLanes = null;\n inProgressRoot = null;\n}\n\nfunction commitLayoutEffects_begin(subtreeRoot, root, committedLanes) {\n // Suspense layout effects semantics don't change for legacy roots.\n var isModernRoot = (subtreeRoot.mode & ConcurrentMode) !== NoMode;\n\n while (nextEffect !== null) {\n var fiber = nextEffect;\n var firstChild = fiber.child;\n\n if ( fiber.tag === OffscreenComponent && isModernRoot) {\n // Keep track of the current Offscreen stack's state.\n var isHidden = fiber.memoizedState !== null;\n var newOffscreenSubtreeIsHidden = isHidden || offscreenSubtreeIsHidden;\n\n if (newOffscreenSubtreeIsHidden) {\n // The Offscreen tree is hidden. Skip over its layout effects.\n commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes);\n continue;\n } else {\n // TODO (Offscreen) Also check: subtreeFlags & LayoutMask\n var current = fiber.alternate;\n var wasHidden = current !== null && current.memoizedState !== null;\n var newOffscreenSubtreeWasHidden = wasHidden || offscreenSubtreeWasHidden;\n var prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden;\n var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; // Traverse the Offscreen subtree with the current Offscreen as the root.\n\n offscreenSubtreeIsHidden = newOffscreenSubtreeIsHidden;\n offscreenSubtreeWasHidden = newOffscreenSubtreeWasHidden;\n\n if (offscreenSubtreeWasHidden && !prevOffscreenSubtreeWasHidden) {\n // This is the root of a reappearing boundary. Turn its layout effects\n // back on.\n nextEffect = fiber;\n reappearLayoutEffects_begin(fiber);\n }\n\n var child = firstChild;\n\n while (child !== null) {\n nextEffect = child;\n commitLayoutEffects_begin(child, // New root; bubble back up to here and stop.\n root, committedLanes);\n child = child.sibling;\n } // Restore Offscreen state and resume in our-progress traversal.\n\n\n nextEffect = fiber;\n offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden;\n offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;\n commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes);\n continue;\n }\n }\n\n if ((fiber.subtreeFlags & LayoutMask) !== NoFlags && firstChild !== null) {\n firstChild.return = fiber;\n nextEffect = firstChild;\n } else {\n commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes);\n }\n }\n}\n\nfunction commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes) {\n while (nextEffect !== null) {\n var fiber = nextEffect;\n\n if ((fiber.flags & LayoutMask) !== NoFlags) {\n var current = fiber.alternate;\n setCurrentFiber(fiber);\n\n try {\n commitLayoutEffectOnFiber(root, current, fiber, committedLanes);\n } catch (error) {\n captureCommitPhaseError(fiber, fiber.return, error);\n }\n\n resetCurrentFiber();\n }\n\n if (fiber === subtreeRoot) {\n nextEffect = null;\n return;\n }\n\n var sibling = fiber.sibling;\n\n if (sibling !== null) {\n sibling.return = fiber.return;\n nextEffect = sibling;\n return;\n }\n\n nextEffect = fiber.return;\n }\n}\n\nfunction disappearLayoutEffects_begin(subtreeRoot) {\n while (nextEffect !== null) {\n var fiber = nextEffect;\n var firstChild = fiber.child; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic)\n\n switch (fiber.tag) {\n case FunctionComponent:\n case ForwardRef:\n case MemoComponent:\n case SimpleMemoComponent:\n {\n if ( fiber.mode & ProfileMode) {\n try {\n startLayoutEffectTimer();\n commitHookEffectListUnmount(Layout, fiber, fiber.return);\n } finally {\n recordLayoutEffectDuration(fiber);\n }\n } else {\n commitHookEffectListUnmount(Layout, fiber, fiber.return);\n }\n\n break;\n }\n\n case ClassComponent:\n {\n // TODO (Offscreen) Check: flags & RefStatic\n safelyDetachRef(fiber, fiber.return);\n var instance = fiber.stateNode;\n\n if (typeof instance.componentWillUnmount === 'function') {\n safelyCallComponentWillUnmount(fiber, fiber.return, instance);\n }\n\n break;\n }\n\n case HostComponent:\n {\n safelyDetachRef(fiber, fiber.return);\n break;\n }\n\n case OffscreenComponent:\n {\n // Check if this is a\n var isHidden = fiber.memoizedState !== null;\n\n if (isHidden) {\n // Nested Offscreen tree is already hidden. Don't disappear\n // its effects.\n disappearLayoutEffects_complete(subtreeRoot);\n continue;\n }\n\n break;\n }\n } // TODO (Offscreen) Check: subtreeFlags & LayoutStatic\n\n\n if (firstChild !== null) {\n firstChild.return = fiber;\n nextEffect = firstChild;\n } else {\n disappearLayoutEffects_complete(subtreeRoot);\n }\n }\n}\n\nfunction disappearLayoutEffects_complete(subtreeRoot) {\n while (nextEffect !== null) {\n var fiber = nextEffect;\n\n if (fiber === subtreeRoot) {\n nextEffect = null;\n return;\n }\n\n var sibling = fiber.sibling;\n\n if (sibling !== null) {\n sibling.return = fiber.return;\n nextEffect = sibling;\n return;\n }\n\n nextEffect = fiber.return;\n }\n}\n\nfunction reappearLayoutEffects_begin(subtreeRoot) {\n while (nextEffect !== null) {\n var fiber = nextEffect;\n var firstChild = fiber.child;\n\n if (fiber.tag === OffscreenComponent) {\n var isHidden = fiber.memoizedState !== null;\n\n if (isHidden) {\n // Nested Offscreen tree is still hidden. Don't re-appear its effects.\n reappearLayoutEffects_complete(subtreeRoot);\n continue;\n }\n } // TODO (Offscreen) Check: subtreeFlags & LayoutStatic\n\n\n if (firstChild !== null) {\n // This node may have been reused from a previous render, so we can't\n // assume its return pointer is correct.\n firstChild.return = fiber;\n nextEffect = firstChild;\n } else {\n reappearLayoutEffects_complete(subtreeRoot);\n }\n }\n}\n\nfunction reappearLayoutEffects_complete(subtreeRoot) {\n while (nextEffect !== null) {\n var fiber = nextEffect; // TODO (Offscreen) Check: flags & LayoutStatic\n\n setCurrentFiber(fiber);\n\n try {\n reappearLayoutEffectsOnFiber(fiber);\n } catch (error) {\n captureCommitPhaseError(fiber, fiber.return, error);\n }\n\n resetCurrentFiber();\n\n if (fiber === subtreeRoot) {\n nextEffect = null;\n return;\n }\n\n var sibling = fiber.sibling;\n\n if (sibling !== null) {\n // This node may have been reused from a previous render, so we can't\n // assume its return pointer is correct.\n sibling.return = fiber.return;\n nextEffect = sibling;\n return;\n }\n\n nextEffect = fiber.return;\n }\n}\n\nfunction commitPassiveMountEffects(root, finishedWork, committedLanes, committedTransitions) {\n nextEffect = finishedWork;\n commitPassiveMountEffects_begin(finishedWork, root, committedLanes, committedTransitions);\n}\n\nfunction commitPassiveMountEffects_begin(subtreeRoot, root, committedLanes, committedTransitions) {\n while (nextEffect !== null) {\n var fiber = nextEffect;\n var firstChild = fiber.child;\n\n if ((fiber.subtreeFlags & PassiveMask) !== NoFlags && firstChild !== null) {\n firstChild.return = fiber;\n nextEffect = firstChild;\n } else {\n commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions);\n }\n }\n}\n\nfunction commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions) {\n while (nextEffect !== null) {\n var fiber = nextEffect;\n\n if ((fiber.flags & Passive) !== NoFlags) {\n setCurrentFiber(fiber);\n\n try {\n commitPassiveMountOnFiber(root, fiber, committedLanes, committedTransitions);\n } catch (error) {\n captureCommitPhaseError(fiber, fiber.return, error);\n }\n\n resetCurrentFiber();\n }\n\n if (fiber === subtreeRoot) {\n nextEffect = null;\n return;\n }\n\n var sibling = fiber.sibling;\n\n if (sibling !== null) {\n sibling.return = fiber.return;\n nextEffect = sibling;\n return;\n }\n\n nextEffect = fiber.return;\n }\n}\n\nfunction commitPassiveMountOnFiber(finishedRoot, finishedWork, committedLanes, committedTransitions) {\n switch (finishedWork.tag) {\n case FunctionComponent:\n case ForwardRef:\n case SimpleMemoComponent:\n {\n if ( finishedWork.mode & ProfileMode) {\n startPassiveEffectTimer();\n\n try {\n commitHookEffectListMount(Passive$1 | HasEffect, finishedWork);\n } finally {\n recordPassiveEffectDuration(finishedWork);\n }\n } else {\n commitHookEffectListMount(Passive$1 | HasEffect, finishedWork);\n }\n\n break;\n }\n }\n}\n\nfunction commitPassiveUnmountEffects(firstChild) {\n nextEffect = firstChild;\n commitPassiveUnmountEffects_begin();\n}\n\nfunction commitPassiveUnmountEffects_begin() {\n while (nextEffect !== null) {\n var fiber = nextEffect;\n var child = fiber.child;\n\n if ((nextEffect.flags & ChildDeletion) !== NoFlags) {\n var deletions = fiber.deletions;\n\n if (deletions !== null) {\n for (var i = 0; i < deletions.length; i++) {\n var fiberToDelete = deletions[i];\n nextEffect = fiberToDelete;\n commitPassiveUnmountEffectsInsideOfDeletedTree_begin(fiberToDelete, fiber);\n }\n\n {\n // A fiber was deleted from this parent fiber, but it's still part of\n // the previous (alternate) parent fiber's list of children. Because\n // children are a linked list, an earlier sibling that's still alive\n // will be connected to the deleted fiber via its `alternate`:\n //\n // live fiber\n // --alternate--> previous live fiber\n // --sibling--> deleted fiber\n //\n // We can't disconnect `alternate` on nodes that haven't been deleted\n // yet, but we can disconnect the `sibling` and `child` pointers.\n var previousFiber = fiber.alternate;\n\n if (previousFiber !== null) {\n var detachedChild = previousFiber.child;\n\n if (detachedChild !== null) {\n previousFiber.child = null;\n\n do {\n var detachedSibling = detachedChild.sibling;\n detachedChild.sibling = null;\n detachedChild = detachedSibling;\n } while (detachedChild !== null);\n }\n }\n }\n\n nextEffect = fiber;\n }\n }\n\n if ((fiber.subtreeFlags & PassiveMask) !== NoFlags && child !== null) {\n child.return = fiber;\n nextEffect = child;\n } else {\n commitPassiveUnmountEffects_complete();\n }\n }\n}\n\nfunction commitPassiveUnmountEffects_complete() {\n while (nextEffect !== null) {\n var fiber = nextEffect;\n\n if ((fiber.flags & Passive) !== NoFlags) {\n setCurrentFiber(fiber);\n commitPassiveUnmountOnFiber(fiber);\n resetCurrentFiber();\n }\n\n var sibling = fiber.sibling;\n\n if (sibling !== null) {\n sibling.return = fiber.return;\n nextEffect = sibling;\n return;\n }\n\n nextEffect = fiber.return;\n }\n}\n\nfunction commitPassiveUnmountOnFiber(finishedWork) {\n switch (finishedWork.tag) {\n case FunctionComponent:\n case ForwardRef:\n case SimpleMemoComponent:\n {\n if ( finishedWork.mode & ProfileMode) {\n startPassiveEffectTimer();\n commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return);\n recordPassiveEffectDuration(finishedWork);\n } else {\n commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return);\n }\n\n break;\n }\n }\n}\n\nfunction commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot, nearestMountedAncestor) {\n while (nextEffect !== null) {\n var fiber = nextEffect; // Deletion effects fire in parent -> child order\n // TODO: Check if fiber has a PassiveStatic flag\n\n setCurrentFiber(fiber);\n commitPassiveUnmountInsideDeletedTreeOnFiber(fiber, nearestMountedAncestor);\n resetCurrentFiber();\n var child = fiber.child; // TODO: Only traverse subtree if it has a PassiveStatic flag. (But, if we\n // do this, still need to handle `deletedTreeCleanUpLevel` correctly.)\n\n if (child !== null) {\n child.return = fiber;\n nextEffect = child;\n } else {\n commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot);\n }\n }\n}\n\nfunction commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot) {\n while (nextEffect !== null) {\n var fiber = nextEffect;\n var sibling = fiber.sibling;\n var returnFiber = fiber.return;\n\n {\n // Recursively traverse the entire deleted tree and clean up fiber fields.\n // This is more aggressive than ideal, and the long term goal is to only\n // have to detach the deleted tree at the root.\n detachFiberAfterEffects(fiber);\n\n if (fiber === deletedSubtreeRoot) {\n nextEffect = null;\n return;\n }\n }\n\n if (sibling !== null) {\n sibling.return = returnFiber;\n nextEffect = sibling;\n return;\n }\n\n nextEffect = returnFiber;\n }\n}\n\nfunction commitPassiveUnmountInsideDeletedTreeOnFiber(current, nearestMountedAncestor) {\n switch (current.tag) {\n case FunctionComponent:\n case ForwardRef:\n case SimpleMemoComponent:\n {\n if ( current.mode & ProfileMode) {\n startPassiveEffectTimer();\n commitHookEffectListUnmount(Passive$1, current, nearestMountedAncestor);\n recordPassiveEffectDuration(current);\n } else {\n commitHookEffectListUnmount(Passive$1, current, nearestMountedAncestor);\n }\n\n break;\n }\n }\n} // TODO: Reuse reappearLayoutEffects traversal here?\n\n\nfunction invokeLayoutEffectMountInDEV(fiber) {\n {\n // We don't need to re-check StrictEffectsMode here.\n // This function is only called if that check has already passed.\n switch (fiber.tag) {\n case FunctionComponent:\n case ForwardRef:\n case SimpleMemoComponent:\n {\n try {\n commitHookEffectListMount(Layout | HasEffect, fiber);\n } catch (error) {\n captureCommitPhaseError(fiber, fiber.return, error);\n }\n\n break;\n }\n\n case ClassComponent:\n {\n var instance = fiber.stateNode;\n\n try {\n instance.componentDidMount();\n } catch (error) {\n captureCommitPhaseError(fiber, fiber.return, error);\n }\n\n break;\n }\n }\n }\n}\n\nfunction invokePassiveEffectMountInDEV(fiber) {\n {\n // We don't need to re-check StrictEffectsMode here.\n // This function is only called if that check has already passed.\n switch (fiber.tag) {\n case FunctionComponent:\n case ForwardRef:\n case SimpleMemoComponent:\n {\n try {\n commitHookEffectListMount(Passive$1 | HasEffect, fiber);\n } catch (error) {\n captureCommitPhaseError(fiber, fiber.return, error);\n }\n\n break;\n }\n }\n }\n}\n\nfunction invokeLayoutEffectUnmountInDEV(fiber) {\n {\n // We don't need to re-check StrictEffectsMode here.\n // This function is only called if that check has already passed.\n switch (fiber.tag) {\n case FunctionComponent:\n case ForwardRef:\n case SimpleMemoComponent:\n {\n try {\n commitHookEffectListUnmount(Layout | HasEffect, fiber, fiber.return);\n } catch (error) {\n captureCommitPhaseError(fiber, fiber.return, error);\n }\n\n break;\n }\n\n case ClassComponent:\n {\n var instance = fiber.stateNode;\n\n if (typeof instance.componentWillUnmount === 'function') {\n safelyCallComponentWillUnmount(fiber, fiber.return, instance);\n }\n\n break;\n }\n }\n }\n}\n\nfunction invokePassiveEffectUnmountInDEV(fiber) {\n {\n // We don't need to re-check StrictEffectsMode here.\n // This function is only called if that check has already passed.\n switch (fiber.tag) {\n case FunctionComponent:\n case ForwardRef:\n case SimpleMemoComponent:\n {\n try {\n commitHookEffectListUnmount(Passive$1 | HasEffect, fiber, fiber.return);\n } catch (error) {\n captureCommitPhaseError(fiber, fiber.return, error);\n }\n }\n }\n }\n}\n\nvar COMPONENT_TYPE = 0;\nvar HAS_PSEUDO_CLASS_TYPE = 1;\nvar ROLE_TYPE = 2;\nvar TEST_NAME_TYPE = 3;\nvar TEXT_TYPE = 4;\n\nif (typeof Symbol === 'function' && Symbol.for) {\n var symbolFor = Symbol.for;\n COMPONENT_TYPE = symbolFor('selector.component');\n HAS_PSEUDO_CLASS_TYPE = symbolFor('selector.has_pseudo_class');\n ROLE_TYPE = symbolFor('selector.role');\n TEST_NAME_TYPE = symbolFor('selector.test_id');\n TEXT_TYPE = symbolFor('selector.text');\n}\nvar commitHooks = [];\nfunction onCommitRoot$1() {\n {\n commitHooks.forEach(function (commitHook) {\n return commitHook();\n });\n }\n}\n\nvar ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue;\nfunction isLegacyActEnvironment(fiber) {\n {\n // Legacy mode. We preserve the behavior of React 17's act. It assumes an\n // act environment whenever `jest` is defined, but you can still turn off\n // spurious warnings by setting IS_REACT_ACT_ENVIRONMENT explicitly\n // to false.\n var isReactActEnvironmentGlobal = // $FlowExpectedError – Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global\n typeof IS_REACT_ACT_ENVIRONMENT !== 'undefined' ? IS_REACT_ACT_ENVIRONMENT : undefined; // $FlowExpectedError - Flow doesn't know about jest\n\n var jestIsDefined = typeof jest !== 'undefined';\n return jestIsDefined && isReactActEnvironmentGlobal !== false;\n }\n}\nfunction isConcurrentActEnvironment() {\n {\n var isReactActEnvironmentGlobal = // $FlowExpectedError – Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global\n typeof IS_REACT_ACT_ENVIRONMENT !== 'undefined' ? IS_REACT_ACT_ENVIRONMENT : undefined;\n\n if (!isReactActEnvironmentGlobal && ReactCurrentActQueue.current !== null) {\n // TODO: Include link to relevant documentation page.\n error('The current testing environment is not configured to support ' + 'act(...)');\n }\n\n return isReactActEnvironmentGlobal;\n }\n}\n\nvar ceil = Math.ceil;\nvar ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher,\n ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner,\n ReactCurrentBatchConfig$3 = ReactSharedInternals.ReactCurrentBatchConfig,\n ReactCurrentActQueue$1 = ReactSharedInternals.ReactCurrentActQueue;\nvar NoContext =\n/* */\n0;\nvar BatchedContext =\n/* */\n1;\nvar RenderContext =\n/* */\n2;\nvar CommitContext =\n/* */\n4;\nvar RootInProgress = 0;\nvar RootFatalErrored = 1;\nvar RootErrored = 2;\nvar RootSuspended = 3;\nvar RootSuspendedWithDelay = 4;\nvar RootCompleted = 5;\nvar RootDidNotComplete = 6; // Describes where we are in the React execution stack\n\nvar executionContext = NoContext; // The root we're working on\n\nvar workInProgressRoot = null; // The fiber we're working on\n\nvar workInProgress = null; // The lanes we're rendering\n\nvar workInProgressRootRenderLanes = NoLanes; // Stack that allows components to change the render lanes for its subtree\n// This is a superset of the lanes we started working on at the root. The only\n// case where it's different from `workInProgressRootRenderLanes` is when we\n// enter a subtree that is hidden and needs to be unhidden: Suspense and\n// Offscreen component.\n//\n// Most things in the work loop should deal with workInProgressRootRenderLanes.\n// Most things in begin/complete phases should deal with subtreeRenderLanes.\n\nvar subtreeRenderLanes = NoLanes;\nvar subtreeRenderLanesCursor = createCursor(NoLanes); // Whether to root completed, errored, suspended, etc.\n\nvar workInProgressRootExitStatus = RootInProgress; // A fatal error, if one is thrown\n\nvar workInProgressRootFatalError = null; // \"Included\" lanes refer to lanes that were worked on during this render. It's\n// slightly different than `renderLanes` because `renderLanes` can change as you\n// enter and exit an Offscreen tree. This value is the combination of all render\n// lanes for the entire render phase.\n\nvar workInProgressRootIncludedLanes = NoLanes; // The work left over by components that were visited during this render. Only\n// includes unprocessed updates, not work in bailed out children.\n\nvar workInProgressRootSkippedLanes = NoLanes; // Lanes that were updated (in an interleaved event) during this render.\n\nvar workInProgressRootInterleavedUpdatedLanes = NoLanes; // Lanes that were updated during the render phase (*not* an interleaved event).\n\nvar workInProgressRootPingedLanes = NoLanes; // Errors that are thrown during the render phase.\n\nvar workInProgressRootConcurrentErrors = null; // These are errors that we recovered from without surfacing them to the UI.\n// We will log them once the tree commits.\n\nvar workInProgressRootRecoverableErrors = null; // The most recent time we committed a fallback. This lets us ensure a train\n// model where we don't commit new loading states in too quick succession.\n\nvar globalMostRecentFallbackTime = 0;\nvar FALLBACK_THROTTLE_MS = 500; // The absolute time for when we should start giving up on rendering\n// more and prefer CPU suspense heuristics instead.\n\nvar workInProgressRootRenderTargetTime = Infinity; // How long a render is supposed to take before we start following CPU\n// suspense heuristics and opt out of rendering more content.\n\nvar RENDER_TIMEOUT_MS = 500;\nvar workInProgressTransitions = null;\n\nfunction resetRenderTimer() {\n workInProgressRootRenderTargetTime = now() + RENDER_TIMEOUT_MS;\n}\n\nfunction getRenderTargetTime() {\n return workInProgressRootRenderTargetTime;\n}\nvar hasUncaughtError = false;\nvar firstUncaughtError = null;\nvar legacyErrorBoundariesThatAlreadyFailed = null; // Only used when enableProfilerNestedUpdateScheduledHook is true;\nvar rootDoesHavePassiveEffects = false;\nvar rootWithPendingPassiveEffects = null;\nvar pendingPassiveEffectsLanes = NoLanes;\nvar pendingPassiveProfilerEffects = [];\nvar pendingPassiveTransitions = null; // Use these to prevent an infinite loop of nested updates\n\nvar NESTED_UPDATE_LIMIT = 50;\nvar nestedUpdateCount = 0;\nvar rootWithNestedUpdates = null;\nvar isFlushingPassiveEffects = false;\nvar didScheduleUpdateDuringPassiveEffects = false;\nvar NESTED_PASSIVE_UPDATE_LIMIT = 50;\nvar nestedPassiveUpdateCount = 0;\nvar rootWithPassiveNestedUpdates = null; // If two updates are scheduled within the same event, we should treat their\n// event times as simultaneous, even if the actual clock time has advanced\n// between the first and second call.\n\nvar currentEventTime = NoTimestamp;\nvar currentEventTransitionLane = NoLanes;\nvar isRunningInsertionEffect = false;\nfunction getWorkInProgressRoot() {\n return workInProgressRoot;\n}\nfunction requestEventTime() {\n if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {\n // We're inside React, so it's fine to read the actual time.\n return now();\n } // We're not inside React, so we may be in the middle of a browser event.\n\n\n if (currentEventTime !== NoTimestamp) {\n // Use the same start time for all updates until we enter React again.\n return currentEventTime;\n } // This is the first update since React yielded. Compute a new start time.\n\n\n currentEventTime = now();\n return currentEventTime;\n}\nfunction requestUpdateLane(fiber) {\n // Special cases\n var mode = fiber.mode;\n\n if ((mode & ConcurrentMode) === NoMode) {\n return SyncLane;\n } else if ( (executionContext & RenderContext) !== NoContext && workInProgressRootRenderLanes !== NoLanes) {\n // This is a render phase update. These are not officially supported. The\n // old behavior is to give this the same \"thread\" (lanes) as\n // whatever is currently rendering. So if you call `setState` on a component\n // that happens later in the same render, it will flush. Ideally, we want to\n // remove the special case and treat them as if they came from an\n // interleaved event. Regardless, this pattern is not officially supported.\n // This behavior is only a fallback. The flag only exists until we can roll\n // out the setState warning, since existing code might accidentally rely on\n // the current behavior.\n return pickArbitraryLane(workInProgressRootRenderLanes);\n }\n\n var isTransition = requestCurrentTransition() !== NoTransition;\n\n if (isTransition) {\n if ( ReactCurrentBatchConfig$3.transition !== null) {\n var transition = ReactCurrentBatchConfig$3.transition;\n\n if (!transition._updatedFibers) {\n transition._updatedFibers = new Set();\n }\n\n transition._updatedFibers.add(fiber);\n } // The algorithm for assigning an update to a lane should be stable for all\n // updates at the same priority within the same event. To do this, the\n // inputs to the algorithm must be the same.\n //\n // The trick we use is to cache the first of each of these inputs within an\n // event. Then reset the cached values once we can be sure the event is\n // over. Our heuristic for that is whenever we enter a concurrent work loop.\n\n\n if (currentEventTransitionLane === NoLane) {\n // All transitions within the same event are assigned the same lane.\n currentEventTransitionLane = claimNextTransitionLane();\n }\n\n return currentEventTransitionLane;\n } // Updates originating inside certain React methods, like flushSync, have\n // their priority set by tracking it with a context variable.\n //\n // The opaque type returned by the host config is internally a lane, so we can\n // use that directly.\n // TODO: Move this type conversion to the event priority module.\n\n\n var updateLane = getCurrentUpdatePriority();\n\n if (updateLane !== NoLane) {\n return updateLane;\n } // This update originated outside React. Ask the host environment for an\n // appropriate priority, based on the type of event.\n //\n // The opaque type returned by the host config is internally a lane, so we can\n // use that directly.\n // TODO: Move this type conversion to the event priority module.\n\n\n var eventLane = getCurrentEventPriority();\n return eventLane;\n}\n\nfunction requestRetryLane(fiber) {\n // This is a fork of `requestUpdateLane` designed specifically for Suspense\n // \"retries\" — a special update that attempts to flip a Suspense boundary\n // from its placeholder state to its primary/resolved state.\n // Special cases\n var mode = fiber.mode;\n\n if ((mode & ConcurrentMode) === NoMode) {\n return SyncLane;\n }\n\n return claimNextRetryLane();\n}\n\nfunction scheduleUpdateOnFiber(root, fiber, lane, eventTime) {\n checkForNestedUpdates();\n\n {\n if (isRunningInsertionEffect) {\n error('useInsertionEffect must not schedule updates.');\n }\n }\n\n {\n if (isFlushingPassiveEffects) {\n didScheduleUpdateDuringPassiveEffects = true;\n }\n } // Mark that the root has a pending update.\n\n\n markRootUpdated(root, lane, eventTime);\n\n if ((executionContext & RenderContext) !== NoLanes && root === workInProgressRoot) {\n // This update was dispatched during the render phase. This is a mistake\n // if the update originates from user space (with the exception of local\n // hook updates, which are handled differently and don't reach this\n // function), but there are some internal React features that use this as\n // an implementation detail, like selective hydration.\n warnAboutRenderPhaseUpdatesInDEV(fiber); // Track lanes that were updated during the render phase\n } else {\n // This is a normal update, scheduled from outside the render phase. For\n // example, during an input event.\n {\n if (isDevToolsPresent) {\n addFiberToLanesMap(root, fiber, lane);\n }\n }\n\n warnIfUpdatesNotWrappedWithActDEV(fiber);\n\n if (root === workInProgressRoot) {\n // Received an update to a tree that's in the middle of rendering. Mark\n // that there was an interleaved update work on this root. Unless the\n // `deferRenderPhaseUpdateToNextBatch` flag is off and this is a render\n // phase update. In that case, we don't treat render phase updates as if\n // they were interleaved, for backwards compat reasons.\n if ( (executionContext & RenderContext) === NoContext) {\n workInProgressRootInterleavedUpdatedLanes = mergeLanes(workInProgressRootInterleavedUpdatedLanes, lane);\n }\n\n if (workInProgressRootExitStatus === RootSuspendedWithDelay) {\n // The root already suspended with a delay, which means this render\n // definitely won't finish. Since we have a new update, let's mark it as\n // suspended now, right before marking the incoming update. This has the\n // effect of interrupting the current render and switching to the update.\n // TODO: Make sure this doesn't override pings that happen while we've\n // already started rendering.\n markRootSuspended$1(root, workInProgressRootRenderLanes);\n }\n }\n\n ensureRootIsScheduled(root, eventTime);\n\n if (lane === SyncLane && executionContext === NoContext && (fiber.mode & ConcurrentMode) === NoMode && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode.\n !( ReactCurrentActQueue$1.isBatchingLegacy)) {\n // Flush the synchronous work now, unless we're already working or inside\n // a batch. This is intentionally inside scheduleUpdateOnFiber instead of\n // scheduleCallbackForFiber to preserve the ability to schedule a callback\n // without immediately flushing it. We only do this for user-initiated\n // updates, to preserve historical behavior of legacy mode.\n resetRenderTimer();\n flushSyncCallbacksOnlyInLegacyMode();\n }\n }\n}\nfunction scheduleInitialHydrationOnRoot(root, lane, eventTime) {\n // This is a special fork of scheduleUpdateOnFiber that is only used to\n // schedule the initial hydration of a root that has just been created. Most\n // of the stuff in scheduleUpdateOnFiber can be skipped.\n //\n // The main reason for this separate path, though, is to distinguish the\n // initial children from subsequent updates. In fully client-rendered roots\n // (createRoot instead of hydrateRoot), all top-level renders are modeled as\n // updates, but hydration roots are special because the initial render must\n // match what was rendered on the server.\n var current = root.current;\n current.lanes = lane;\n markRootUpdated(root, lane, eventTime);\n ensureRootIsScheduled(root, eventTime);\n}\nfunction isUnsafeClassRenderPhaseUpdate(fiber) {\n // Check if this is a render phase update. Only called by class components,\n // which special (deprecated) behavior for UNSAFE_componentWillReceive props.\n return (// TODO: Remove outdated deferRenderPhaseUpdateToNextBatch experiment. We\n // decided not to enable it.\n (executionContext & RenderContext) !== NoContext\n );\n} // Use this function to schedule a task for a root. There's only one task per\n// root; if a task was already scheduled, we'll check to make sure the priority\n// of the existing task is the same as the priority of the next level that the\n// root has work on. This function is called on every update, and right before\n// exiting a task.\n\nfunction ensureRootIsScheduled(root, currentTime) {\n var existingCallbackNode = root.callbackNode; // Check if any lanes are being starved by other work. If so, mark them as\n // expired so we know to work on those next.\n\n markStarvedLanesAsExpired(root, currentTime); // Determine the next lanes to work on, and their priority.\n\n var nextLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes);\n\n if (nextLanes === NoLanes) {\n // Special case: There's nothing to work on.\n if (existingCallbackNode !== null) {\n cancelCallback$1(existingCallbackNode);\n }\n\n root.callbackNode = null;\n root.callbackPriority = NoLane;\n return;\n } // We use the highest priority lane to represent the priority of the callback.\n\n\n var newCallbackPriority = getHighestPriorityLane(nextLanes); // Check if there's an existing task. We may be able to reuse it.\n\n var existingCallbackPriority = root.callbackPriority;\n\n if (existingCallbackPriority === newCallbackPriority && // Special case related to `act`. If the currently scheduled task is a\n // Scheduler task, rather than an `act` task, cancel it and re-scheduled\n // on the `act` queue.\n !( ReactCurrentActQueue$1.current !== null && existingCallbackNode !== fakeActCallbackNode)) {\n {\n // If we're going to re-use an existing task, it needs to exist.\n // Assume that discrete update microtasks are non-cancellable and null.\n // TODO: Temporary until we confirm this warning is not fired.\n if (existingCallbackNode == null && existingCallbackPriority !== SyncLane) {\n error('Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.');\n }\n } // The priority hasn't changed. We can reuse the existing task. Exit.\n\n\n return;\n }\n\n if (existingCallbackNode != null) {\n // Cancel the existing callback. We'll schedule a new one below.\n cancelCallback$1(existingCallbackNode);\n } // Schedule a new callback.\n\n\n var newCallbackNode;\n\n if (newCallbackPriority === SyncLane) {\n // Special case: Sync React callbacks are scheduled on a special\n // internal queue\n if (root.tag === LegacyRoot) {\n if ( ReactCurrentActQueue$1.isBatchingLegacy !== null) {\n ReactCurrentActQueue$1.didScheduleLegacyUpdate = true;\n }\n\n scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root));\n } else {\n scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));\n }\n\n {\n // Flush the queue in a microtask.\n if ( ReactCurrentActQueue$1.current !== null) {\n // Inside `act`, use our internal `act` queue so that these get flushed\n // at the end of the current scope even when using the sync version\n // of `act`.\n ReactCurrentActQueue$1.current.push(flushSyncCallbacks);\n } else {\n scheduleMicrotask(function () {\n // In Safari, appending an iframe forces microtasks to run.\n // https://github.com/facebook/react/issues/22459\n // We don't support running callbacks in the middle of render\n // or commit so we need to check against that.\n if ((executionContext & (RenderContext | CommitContext)) === NoContext) {\n // Note that this would still prematurely flush the callbacks\n // if this happens outside render or commit phase (e.g. in an event).\n flushSyncCallbacks();\n }\n });\n }\n }\n\n newCallbackNode = null;\n } else {\n var schedulerPriorityLevel;\n\n switch (lanesToEventPriority(nextLanes)) {\n case DiscreteEventPriority:\n schedulerPriorityLevel = ImmediatePriority;\n break;\n\n case ContinuousEventPriority:\n schedulerPriorityLevel = UserBlockingPriority;\n break;\n\n case DefaultEventPriority:\n schedulerPriorityLevel = NormalPriority;\n break;\n\n case IdleEventPriority:\n schedulerPriorityLevel = IdlePriority;\n break;\n\n default:\n schedulerPriorityLevel = NormalPriority;\n break;\n }\n\n newCallbackNode = scheduleCallback$1(schedulerPriorityLevel, performConcurrentWorkOnRoot.bind(null, root));\n }\n\n root.callbackPriority = newCallbackPriority;\n root.callbackNode = newCallbackNode;\n} // This is the entry point for every concurrent task, i.e. anything that\n// goes through Scheduler.\n\n\nfunction performConcurrentWorkOnRoot(root, didTimeout) {\n {\n resetNestedUpdateFlag();\n } // Since we know we're in a React event, we can clear the current\n // event time. The next update will compute a new event time.\n\n\n currentEventTime = NoTimestamp;\n currentEventTransitionLane = NoLanes;\n\n if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {\n throw new Error('Should not already be working.');\n } // Flush any pending passive effects before deciding which lanes to work on,\n // in case they schedule additional work.\n\n\n var originalCallbackNode = root.callbackNode;\n var didFlushPassiveEffects = flushPassiveEffects();\n\n if (didFlushPassiveEffects) {\n // Something in the passive effect phase may have canceled the current task.\n // Check if the task node for this root was changed.\n if (root.callbackNode !== originalCallbackNode) {\n // The current task was canceled. Exit. We don't need to call\n // `ensureRootIsScheduled` because the check above implies either that\n // there's a new task, or that there's no remaining work on this root.\n return null;\n }\n } // Determine the next lanes to work on, using the fields stored\n // on the root.\n\n\n var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes);\n\n if (lanes === NoLanes) {\n // Defensive coding. This is never expected to happen.\n return null;\n } // We disable time-slicing in some cases: if the work has been CPU-bound\n // for too long (\"expired\" work, to prevent starvation), or we're in\n // sync-updates-by-default mode.\n // TODO: We only check `didTimeout` defensively, to account for a Scheduler\n // bug we're still investigating. Once the bug in Scheduler is fixed,\n // we can remove this, since we track expiration ourselves.\n\n\n var shouldTimeSlice = !includesBlockingLane(root, lanes) && !includesExpiredLane(root, lanes) && ( !didTimeout);\n var exitStatus = shouldTimeSlice ? renderRootConcurrent(root, lanes) : renderRootSync(root, lanes);\n\n if (exitStatus !== RootInProgress) {\n if (exitStatus === RootErrored) {\n // If something threw an error, try rendering one more time. We'll\n // render synchronously to block concurrent data mutations, and we'll\n // includes all pending updates are included. If it still fails after\n // the second attempt, we'll give up and commit the resulting tree.\n var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);\n\n if (errorRetryLanes !== NoLanes) {\n lanes = errorRetryLanes;\n exitStatus = recoverFromConcurrentError(root, errorRetryLanes);\n }\n }\n\n if (exitStatus === RootFatalErrored) {\n var fatalError = workInProgressRootFatalError;\n prepareFreshStack(root, NoLanes);\n markRootSuspended$1(root, lanes);\n ensureRootIsScheduled(root, now());\n throw fatalError;\n }\n\n if (exitStatus === RootDidNotComplete) {\n // The render unwound without completing the tree. This happens in special\n // cases where need to exit the current render without producing a\n // consistent tree or committing.\n //\n // This should only happen during a concurrent render, not a discrete or\n // synchronous update. We should have already checked for this when we\n // unwound the stack.\n markRootSuspended$1(root, lanes);\n } else {\n // The render completed.\n // Check if this render may have yielded to a concurrent event, and if so,\n // confirm that any newly rendered stores are consistent.\n // TODO: It's possible that even a concurrent render may never have yielded\n // to the main thread, if it was fast enough, or if it expired. We could\n // skip the consistency check in that case, too.\n var renderWasConcurrent = !includesBlockingLane(root, lanes);\n var finishedWork = root.current.alternate;\n\n if (renderWasConcurrent && !isRenderConsistentWithExternalStores(finishedWork)) {\n // A store was mutated in an interleaved event. Render again,\n // synchronously, to block further mutations.\n exitStatus = renderRootSync(root, lanes); // We need to check again if something threw\n\n if (exitStatus === RootErrored) {\n var _errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);\n\n if (_errorRetryLanes !== NoLanes) {\n lanes = _errorRetryLanes;\n exitStatus = recoverFromConcurrentError(root, _errorRetryLanes); // We assume the tree is now consistent because we didn't yield to any\n // concurrent events.\n }\n }\n\n if (exitStatus === RootFatalErrored) {\n var _fatalError = workInProgressRootFatalError;\n prepareFreshStack(root, NoLanes);\n markRootSuspended$1(root, lanes);\n ensureRootIsScheduled(root, now());\n throw _fatalError;\n }\n } // We now have a consistent tree. The next step is either to commit it,\n // or, if something suspended, wait to commit it after a timeout.\n\n\n root.finishedWork = finishedWork;\n root.finishedLanes = lanes;\n finishConcurrentRender(root, exitStatus, lanes);\n }\n }\n\n ensureRootIsScheduled(root, now());\n\n if (root.callbackNode === originalCallbackNode) {\n // The task node scheduled for this root is the same one that's\n // currently executed. Need to return a continuation.\n return performConcurrentWorkOnRoot.bind(null, root);\n }\n\n return null;\n}\n\nfunction recoverFromConcurrentError(root, errorRetryLanes) {\n // If an error occurred during hydration, discard server response and fall\n // back to client side render.\n // Before rendering again, save the errors from the previous attempt.\n var errorsFromFirstAttempt = workInProgressRootConcurrentErrors;\n\n if (isRootDehydrated(root)) {\n // The shell failed to hydrate. Set a flag to force a client rendering\n // during the next attempt. To do this, we call prepareFreshStack now\n // to create the root work-in-progress fiber. This is a bit weird in terms\n // of factoring, because it relies on renderRootSync not calling\n // prepareFreshStack again in the call below, which happens because the\n // root and lanes haven't changed.\n //\n // TODO: I think what we should do is set ForceClientRender inside\n // throwException, like we do for nested Suspense boundaries. The reason\n // it's here instead is so we can switch to the synchronous work loop, too.\n // Something to consider for a future refactor.\n var rootWorkInProgress = prepareFreshStack(root, errorRetryLanes);\n rootWorkInProgress.flags |= ForceClientRender;\n\n {\n errorHydratingContainer(root.containerInfo);\n }\n }\n\n var exitStatus = renderRootSync(root, errorRetryLanes);\n\n if (exitStatus !== RootErrored) {\n // Successfully finished rendering on retry\n // The errors from the failed first attempt have been recovered. Add\n // them to the collection of recoverable errors. We'll log them in the\n // commit phase.\n var errorsFromSecondAttempt = workInProgressRootRecoverableErrors;\n workInProgressRootRecoverableErrors = errorsFromFirstAttempt; // The errors from the second attempt should be queued after the errors\n // from the first attempt, to preserve the causal sequence.\n\n if (errorsFromSecondAttempt !== null) {\n queueRecoverableErrors(errorsFromSecondAttempt);\n }\n }\n\n return exitStatus;\n}\n\nfunction queueRecoverableErrors(errors) {\n if (workInProgressRootRecoverableErrors === null) {\n workInProgressRootRecoverableErrors = errors;\n } else {\n workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, errors);\n }\n}\n\nfunction finishConcurrentRender(root, exitStatus, lanes) {\n switch (exitStatus) {\n case RootInProgress:\n case RootFatalErrored:\n {\n throw new Error('Root did not complete. This is a bug in React.');\n }\n // Flow knows about invariant, so it complains if I add a break\n // statement, but eslint doesn't know about invariant, so it complains\n // if I do. eslint-disable-next-line no-fallthrough\n\n case RootErrored:\n {\n // We should have already attempted to retry this tree. If we reached\n // this point, it errored again. Commit it.\n commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions);\n break;\n }\n\n case RootSuspended:\n {\n markRootSuspended$1(root, lanes); // We have an acceptable loading state. We need to figure out if we\n // should immediately commit it or wait a bit.\n\n if (includesOnlyRetries(lanes) && // do not delay if we're inside an act() scope\n !shouldForceFlushFallbacksInDEV()) {\n // This render only included retries, no updates. Throttle committing\n // retries so that we don't show too many loading states too quickly.\n var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time.\n\n if (msUntilTimeout > 10) {\n var nextLanes = getNextLanes(root, NoLanes);\n\n if (nextLanes !== NoLanes) {\n // There's additional work on this root.\n break;\n }\n\n var suspendedLanes = root.suspendedLanes;\n\n if (!isSubsetOfLanes(suspendedLanes, lanes)) {\n // We should prefer to render the fallback of at the last\n // suspended level. Ping the last suspended level to try\n // rendering it again.\n // FIXME: What if the suspended lanes are Idle? Should not restart.\n var eventTime = requestEventTime();\n markRootPinged(root, suspendedLanes);\n break;\n } // The render is suspended, it hasn't timed out, and there's no\n // lower priority work to do. Instead of committing the fallback\n // immediately, wait for more data to arrive.\n\n\n root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), msUntilTimeout);\n break;\n }\n } // The work expired. Commit immediately.\n\n\n commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions);\n break;\n }\n\n case RootSuspendedWithDelay:\n {\n markRootSuspended$1(root, lanes);\n\n if (includesOnlyTransitions(lanes)) {\n // This is a transition, so we should exit without committing a\n // placeholder and without scheduling a timeout. Delay indefinitely\n // until we receive more data.\n break;\n }\n\n if (!shouldForceFlushFallbacksInDEV()) {\n // This is not a transition, but we did trigger an avoided state.\n // Schedule a placeholder to display after a short delay, using the Just\n // Noticeable Difference.\n // TODO: Is the JND optimization worth the added complexity? If this is\n // the only reason we track the event time, then probably not.\n // Consider removing.\n var mostRecentEventTime = getMostRecentEventTime(root, lanes);\n var eventTimeMs = mostRecentEventTime;\n var timeElapsedMs = now() - eventTimeMs;\n\n var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time.\n\n\n if (_msUntilTimeout > 10) {\n // Instead of committing the fallback immediately, wait for more data\n // to arrive.\n root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), _msUntilTimeout);\n break;\n }\n } // Commit the placeholder.\n\n\n commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions);\n break;\n }\n\n case RootCompleted:\n {\n // The work completed. Ready to commit.\n commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions);\n break;\n }\n\n default:\n {\n throw new Error('Unknown root exit status.');\n }\n }\n}\n\nfunction isRenderConsistentWithExternalStores(finishedWork) {\n // Search the rendered tree for external store reads, and check whether the\n // stores were mutated in a concurrent event. Intentionally using an iterative\n // loop instead of recursion so we can exit early.\n var node = finishedWork;\n\n while (true) {\n if (node.flags & StoreConsistency) {\n var updateQueue = node.updateQueue;\n\n if (updateQueue !== null) {\n var checks = updateQueue.stores;\n\n if (checks !== null) {\n for (var i = 0; i < checks.length; i++) {\n var check = checks[i];\n var getSnapshot = check.getSnapshot;\n var renderedValue = check.value;\n\n try {\n if (!objectIs(getSnapshot(), renderedValue)) {\n // Found an inconsistent store.\n return false;\n }\n } catch (error) {\n // If `getSnapshot` throws, return `false`. This will schedule\n // a re-render, and the error will be rethrown during render.\n return false;\n }\n }\n }\n }\n }\n\n var child = node.child;\n\n if (node.subtreeFlags & StoreConsistency && child !== null) {\n child.return = node;\n node = child;\n continue;\n }\n\n if (node === finishedWork) {\n return true;\n }\n\n while (node.sibling === null) {\n if (node.return === null || node.return === finishedWork) {\n return true;\n }\n\n node = node.return;\n }\n\n node.sibling.return = node.return;\n node = node.sibling;\n } // Flow doesn't know this is unreachable, but eslint does\n // eslint-disable-next-line no-unreachable\n\n\n return true;\n}\n\nfunction markRootSuspended$1(root, suspendedLanes) {\n // When suspending, we should always exclude lanes that were pinged or (more\n // rarely, since we try to avoid it) updated during the render phase.\n // TODO: Lol maybe there's a better way to factor this besides this\n // obnoxiously named function :)\n suspendedLanes = removeLanes(suspendedLanes, workInProgressRootPingedLanes);\n suspendedLanes = removeLanes(suspendedLanes, workInProgressRootInterleavedUpdatedLanes);\n markRootSuspended(root, suspendedLanes);\n} // This is the entry point for synchronous tasks that don't go\n// through Scheduler\n\n\nfunction performSyncWorkOnRoot(root) {\n {\n syncNestedUpdateFlag();\n }\n\n if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {\n throw new Error('Should not already be working.');\n }\n\n flushPassiveEffects();\n var lanes = getNextLanes(root, NoLanes);\n\n if (!includesSomeLane(lanes, SyncLane)) {\n // There's no remaining sync work left.\n ensureRootIsScheduled(root, now());\n return null;\n }\n\n var exitStatus = renderRootSync(root, lanes);\n\n if (root.tag !== LegacyRoot && exitStatus === RootErrored) {\n // If something threw an error, try rendering one more time. We'll render\n // synchronously to block concurrent data mutations, and we'll includes\n // all pending updates are included. If it still fails after the second\n // attempt, we'll give up and commit the resulting tree.\n var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);\n\n if (errorRetryLanes !== NoLanes) {\n lanes = errorRetryLanes;\n exitStatus = recoverFromConcurrentError(root, errorRetryLanes);\n }\n }\n\n if (exitStatus === RootFatalErrored) {\n var fatalError = workInProgressRootFatalError;\n prepareFreshStack(root, NoLanes);\n markRootSuspended$1(root, lanes);\n ensureRootIsScheduled(root, now());\n throw fatalError;\n }\n\n if (exitStatus === RootDidNotComplete) {\n throw new Error('Root did not complete. This is a bug in React.');\n } // We now have a consistent tree. Because this is a sync render, we\n // will commit it even if something suspended.\n\n\n var finishedWork = root.current.alternate;\n root.finishedWork = finishedWork;\n root.finishedLanes = lanes;\n commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); // Before exiting, make sure there's a callback scheduled for the next\n // pending level.\n\n ensureRootIsScheduled(root, now());\n return null;\n}\n\nfunction flushRoot(root, lanes) {\n if (lanes !== NoLanes) {\n markRootEntangled(root, mergeLanes(lanes, SyncLane));\n ensureRootIsScheduled(root, now());\n\n if ((executionContext & (RenderContext | CommitContext)) === NoContext) {\n resetRenderTimer();\n flushSyncCallbacks();\n }\n }\n}\nfunction batchedUpdates$1(fn, a) {\n var prevExecutionContext = executionContext;\n executionContext |= BatchedContext;\n\n try {\n return fn(a);\n } finally {\n executionContext = prevExecutionContext; // If there were legacy sync updates, flush them at the end of the outer\n // most batchedUpdates-like method.\n\n if (executionContext === NoContext && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode.\n !( ReactCurrentActQueue$1.isBatchingLegacy)) {\n resetRenderTimer();\n flushSyncCallbacksOnlyInLegacyMode();\n }\n }\n}\nfunction discreteUpdates(fn, a, b, c, d) {\n var previousPriority = getCurrentUpdatePriority();\n var prevTransition = ReactCurrentBatchConfig$3.transition;\n\n try {\n ReactCurrentBatchConfig$3.transition = null;\n setCurrentUpdatePriority(DiscreteEventPriority);\n return fn(a, b, c, d);\n } finally {\n setCurrentUpdatePriority(previousPriority);\n ReactCurrentBatchConfig$3.transition = prevTransition;\n\n if (executionContext === NoContext) {\n resetRenderTimer();\n }\n }\n} // Overload the definition to the two valid signatures.\n// Warning, this opts-out of checking the function body.\n\n// eslint-disable-next-line no-redeclare\nfunction flushSync(fn) {\n // In legacy mode, we flush pending passive effects at the beginning of the\n // next event, not at the end of the previous one.\n if (rootWithPendingPassiveEffects !== null && rootWithPendingPassiveEffects.tag === LegacyRoot && (executionContext & (RenderContext | CommitContext)) === NoContext) {\n flushPassiveEffects();\n }\n\n var prevExecutionContext = executionContext;\n executionContext |= BatchedContext;\n var prevTransition = ReactCurrentBatchConfig$3.transition;\n var previousPriority = getCurrentUpdatePriority();\n\n try {\n ReactCurrentBatchConfig$3.transition = null;\n setCurrentUpdatePriority(DiscreteEventPriority);\n\n if (fn) {\n return fn();\n } else {\n return undefined;\n }\n } finally {\n setCurrentUpdatePriority(previousPriority);\n ReactCurrentBatchConfig$3.transition = prevTransition;\n executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch.\n // Note that this will happen even if batchedUpdates is higher up\n // the stack.\n\n if ((executionContext & (RenderContext | CommitContext)) === NoContext) {\n flushSyncCallbacks();\n }\n }\n}\nfunction isAlreadyRendering() {\n // Used by the renderer to print a warning if certain APIs are called from\n // the wrong context.\n return (executionContext & (RenderContext | CommitContext)) !== NoContext;\n}\nfunction pushRenderLanes(fiber, lanes) {\n push(subtreeRenderLanesCursor, subtreeRenderLanes, fiber);\n subtreeRenderLanes = mergeLanes(subtreeRenderLanes, lanes);\n workInProgressRootIncludedLanes = mergeLanes(workInProgressRootIncludedLanes, lanes);\n}\nfunction popRenderLanes(fiber) {\n subtreeRenderLanes = subtreeRenderLanesCursor.current;\n pop(subtreeRenderLanesCursor, fiber);\n}\n\nfunction prepareFreshStack(root, lanes) {\n root.finishedWork = null;\n root.finishedLanes = NoLanes;\n var timeoutHandle = root.timeoutHandle;\n\n if (timeoutHandle !== noTimeout) {\n // The root previous suspended and scheduled a timeout to commit a fallback\n // state. Now that we have additional work, cancel the timeout.\n root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above\n\n cancelTimeout(timeoutHandle);\n }\n\n if (workInProgress !== null) {\n var interruptedWork = workInProgress.return;\n\n while (interruptedWork !== null) {\n var current = interruptedWork.alternate;\n unwindInterruptedWork(current, interruptedWork);\n interruptedWork = interruptedWork.return;\n }\n }\n\n workInProgressRoot = root;\n var rootWorkInProgress = createWorkInProgress(root.current, null);\n workInProgress = rootWorkInProgress;\n workInProgressRootRenderLanes = subtreeRenderLanes = workInProgressRootIncludedLanes = lanes;\n workInProgressRootExitStatus = RootInProgress;\n workInProgressRootFatalError = null;\n workInProgressRootSkippedLanes = NoLanes;\n workInProgressRootInterleavedUpdatedLanes = NoLanes;\n workInProgressRootPingedLanes = NoLanes;\n workInProgressRootConcurrentErrors = null;\n workInProgressRootRecoverableErrors = null;\n finishQueueingConcurrentUpdates();\n\n {\n ReactStrictModeWarnings.discardPendingWarnings();\n }\n\n return rootWorkInProgress;\n}\n\nfunction handleError(root, thrownValue) {\n do {\n var erroredWork = workInProgress;\n\n try {\n // Reset module-level state that was set during the render phase.\n resetContextDependencies();\n resetHooksAfterThrow();\n resetCurrentFiber(); // TODO: I found and added this missing line while investigating a\n // separate issue. Write a regression test using string refs.\n\n ReactCurrentOwner$2.current = null;\n\n if (erroredWork === null || erroredWork.return === null) {\n // Expected to be working on a non-root fiber. This is a fatal error\n // because there's no ancestor that can handle it; the root is\n // supposed to capture all errors that weren't caught by an error\n // boundary.\n workInProgressRootExitStatus = RootFatalErrored;\n workInProgressRootFatalError = thrownValue; // Set `workInProgress` to null. This represents advancing to the next\n // sibling, or the parent if there are no siblings. But since the root\n // has no siblings nor a parent, we set it to null. Usually this is\n // handled by `completeUnitOfWork` or `unwindWork`, but since we're\n // intentionally not calling those, we need set it here.\n // TODO: Consider calling `unwindWork` to pop the contexts.\n\n workInProgress = null;\n return;\n }\n\n if (enableProfilerTimer && erroredWork.mode & ProfileMode) {\n // Record the time spent rendering before an error was thrown. This\n // avoids inaccurate Profiler durations in the case of a\n // suspended render.\n stopProfilerTimerIfRunningAndRecordDelta(erroredWork, true);\n }\n\n if (enableSchedulingProfiler) {\n markComponentRenderStopped();\n\n if (thrownValue !== null && typeof thrownValue === 'object' && typeof thrownValue.then === 'function') {\n var wakeable = thrownValue;\n markComponentSuspended(erroredWork, wakeable, workInProgressRootRenderLanes);\n } else {\n markComponentErrored(erroredWork, thrownValue, workInProgressRootRenderLanes);\n }\n }\n\n throwException(root, erroredWork.return, erroredWork, thrownValue, workInProgressRootRenderLanes);\n completeUnitOfWork(erroredWork);\n } catch (yetAnotherThrownValue) {\n // Something in the return path also threw.\n thrownValue = yetAnotherThrownValue;\n\n if (workInProgress === erroredWork && erroredWork !== null) {\n // If this boundary has already errored, then we had trouble processing\n // the error. Bubble it to the next boundary.\n erroredWork = erroredWork.return;\n workInProgress = erroredWork;\n } else {\n erroredWork = workInProgress;\n }\n\n continue;\n } // Return to the normal work loop.\n\n\n return;\n } while (true);\n}\n\nfunction pushDispatcher() {\n var prevDispatcher = ReactCurrentDispatcher$2.current;\n ReactCurrentDispatcher$2.current = ContextOnlyDispatcher;\n\n if (prevDispatcher === null) {\n // The React isomorphic package does not include a default dispatcher.\n // Instead the first renderer will lazily attach one, in order to give\n // nicer error messages.\n return ContextOnlyDispatcher;\n } else {\n return prevDispatcher;\n }\n}\n\nfunction popDispatcher(prevDispatcher) {\n ReactCurrentDispatcher$2.current = prevDispatcher;\n}\n\nfunction markCommitTimeOfFallback() {\n globalMostRecentFallbackTime = now();\n}\nfunction markSkippedUpdateLanes(lane) {\n workInProgressRootSkippedLanes = mergeLanes(lane, workInProgressRootSkippedLanes);\n}\nfunction renderDidSuspend() {\n if (workInProgressRootExitStatus === RootInProgress) {\n workInProgressRootExitStatus = RootSuspended;\n }\n}\nfunction renderDidSuspendDelayIfPossible() {\n if (workInProgressRootExitStatus === RootInProgress || workInProgressRootExitStatus === RootSuspended || workInProgressRootExitStatus === RootErrored) {\n workInProgressRootExitStatus = RootSuspendedWithDelay;\n } // Check if there are updates that we skipped tree that might have unblocked\n // this render.\n\n\n if (workInProgressRoot !== null && (includesNonIdleWork(workInProgressRootSkippedLanes) || includesNonIdleWork(workInProgressRootInterleavedUpdatedLanes))) {\n // Mark the current render as suspended so that we switch to working on\n // the updates that were skipped. Usually we only suspend at the end of\n // the render phase.\n // TODO: We should probably always mark the root as suspended immediately\n // (inside this function), since by suspending at the end of the render\n // phase introduces a potential mistake where we suspend lanes that were\n // pinged or updated while we were rendering.\n markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes);\n }\n}\nfunction renderDidError(error) {\n if (workInProgressRootExitStatus !== RootSuspendedWithDelay) {\n workInProgressRootExitStatus = RootErrored;\n }\n\n if (workInProgressRootConcurrentErrors === null) {\n workInProgressRootConcurrentErrors = [error];\n } else {\n workInProgressRootConcurrentErrors.push(error);\n }\n} // Called during render to determine if anything has suspended.\n// Returns false if we're not sure.\n\nfunction renderHasNotSuspendedYet() {\n // If something errored or completed, we can't really be sure,\n // so those are false.\n return workInProgressRootExitStatus === RootInProgress;\n}\n\nfunction renderRootSync(root, lanes) {\n var prevExecutionContext = executionContext;\n executionContext |= RenderContext;\n var prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack\n // and prepare a fresh one. Otherwise we'll continue where we left off.\n\n if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {\n {\n if (isDevToolsPresent) {\n var memoizedUpdaters = root.memoizedUpdaters;\n\n if (memoizedUpdaters.size > 0) {\n restorePendingUpdaters(root, workInProgressRootRenderLanes);\n memoizedUpdaters.clear();\n } // At this point, move Fibers that scheduled the upcoming work from the Map to the Set.\n // If we bailout on this work, we'll move them back (like above).\n // It's important to move them now in case the work spawns more work at the same priority with different updaters.\n // That way we can keep the current update and future updates separate.\n\n\n movePendingFibersToMemoized(root, lanes);\n }\n }\n\n workInProgressTransitions = getTransitionsForLanes();\n prepareFreshStack(root, lanes);\n }\n\n {\n markRenderStarted(lanes);\n }\n\n do {\n try {\n workLoopSync();\n break;\n } catch (thrownValue) {\n handleError(root, thrownValue);\n }\n } while (true);\n\n resetContextDependencies();\n executionContext = prevExecutionContext;\n popDispatcher(prevDispatcher);\n\n if (workInProgress !== null) {\n // This is a sync render, so we should have finished the whole tree.\n throw new Error('Cannot commit an incomplete root. This error is likely caused by a ' + 'bug in React. Please file an issue.');\n }\n\n {\n markRenderStopped();\n } // Set this to null to indicate there's no in-progress render.\n\n\n workInProgressRoot = null;\n workInProgressRootRenderLanes = NoLanes;\n return workInProgressRootExitStatus;\n} // The work loop is an extremely hot path. Tell Closure not to inline it.\n\n/** @noinline */\n\n\nfunction workLoopSync() {\n // Already timed out, so perform work without checking if we need to yield.\n while (workInProgress !== null) {\n performUnitOfWork(workInProgress);\n }\n}\n\nfunction renderRootConcurrent(root, lanes) {\n var prevExecutionContext = executionContext;\n executionContext |= RenderContext;\n var prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack\n // and prepare a fresh one. Otherwise we'll continue where we left off.\n\n if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {\n {\n if (isDevToolsPresent) {\n var memoizedUpdaters = root.memoizedUpdaters;\n\n if (memoizedUpdaters.size > 0) {\n restorePendingUpdaters(root, workInProgressRootRenderLanes);\n memoizedUpdaters.clear();\n } // At this point, move Fibers that scheduled the upcoming work from the Map to the Set.\n // If we bailout on this work, we'll move them back (like above).\n // It's important to move them now in case the work spawns more work at the same priority with different updaters.\n // That way we can keep the current update and future updates separate.\n\n\n movePendingFibersToMemoized(root, lanes);\n }\n }\n\n workInProgressTransitions = getTransitionsForLanes();\n resetRenderTimer();\n prepareFreshStack(root, lanes);\n }\n\n {\n markRenderStarted(lanes);\n }\n\n do {\n try {\n workLoopConcurrent();\n break;\n } catch (thrownValue) {\n handleError(root, thrownValue);\n }\n } while (true);\n\n resetContextDependencies();\n popDispatcher(prevDispatcher);\n executionContext = prevExecutionContext;\n\n\n if (workInProgress !== null) {\n // Still work remaining.\n {\n markRenderYielded();\n }\n\n return RootInProgress;\n } else {\n // Completed the tree.\n {\n markRenderStopped();\n } // Set this to null to indicate there's no in-progress render.\n\n\n workInProgressRoot = null;\n workInProgressRootRenderLanes = NoLanes; // Return the final exit status.\n\n return workInProgressRootExitStatus;\n }\n}\n/** @noinline */\n\n\nfunction workLoopConcurrent() {\n // Perform work until Scheduler asks us to yield\n while (workInProgress !== null && !shouldYield()) {\n performUnitOfWork(workInProgress);\n }\n}\n\nfunction performUnitOfWork(unitOfWork) {\n // The current, flushed, state of this fiber is the alternate. Ideally\n // nothing should rely on this, but relying on it here means that we don't\n // need an additional field on the work in progress.\n var current = unitOfWork.alternate;\n setCurrentFiber(unitOfWork);\n var next;\n\n if ( (unitOfWork.mode & ProfileMode) !== NoMode) {\n startProfilerTimer(unitOfWork);\n next = beginWork$1(current, unitOfWork, subtreeRenderLanes);\n stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true);\n } else {\n next = beginWork$1(current, unitOfWork, subtreeRenderLanes);\n }\n\n resetCurrentFiber();\n unitOfWork.memoizedProps = unitOfWork.pendingProps;\n\n if (next === null) {\n // If this doesn't spawn new work, complete the current work.\n completeUnitOfWork(unitOfWork);\n } else {\n workInProgress = next;\n }\n\n ReactCurrentOwner$2.current = null;\n}\n\nfunction completeUnitOfWork(unitOfWork) {\n // Attempt to complete the current unit of work, then move to the next\n // sibling. If there are no more siblings, return to the parent fiber.\n var completedWork = unitOfWork;\n\n do {\n // The current, flushed, state of this fiber is the alternate. Ideally\n // nothing should rely on this, but relying on it here means that we don't\n // need an additional field on the work in progress.\n var current = completedWork.alternate;\n var returnFiber = completedWork.return; // Check if the work completed or if something threw.\n\n if ((completedWork.flags & Incomplete) === NoFlags) {\n setCurrentFiber(completedWork);\n var next = void 0;\n\n if ( (completedWork.mode & ProfileMode) === NoMode) {\n next = completeWork(current, completedWork, subtreeRenderLanes);\n } else {\n startProfilerTimer(completedWork);\n next = completeWork(current, completedWork, subtreeRenderLanes); // Update render duration assuming we didn't error.\n\n stopProfilerTimerIfRunningAndRecordDelta(completedWork, false);\n }\n\n resetCurrentFiber();\n\n if (next !== null) {\n // Completing this fiber spawned new work. Work on that next.\n workInProgress = next;\n return;\n }\n } else {\n // This fiber did not complete because something threw. Pop values off\n // the stack without entering the complete phase. If this is a boundary,\n // capture values if possible.\n var _next = unwindWork(current, completedWork); // Because this fiber did not complete, don't reset its lanes.\n\n\n if (_next !== null) {\n // If completing this work spawned new work, do that next. We'll come\n // back here again.\n // Since we're restarting, remove anything that is not a host effect\n // from the effect tag.\n _next.flags &= HostEffectMask;\n workInProgress = _next;\n return;\n }\n\n if ( (completedWork.mode & ProfileMode) !== NoMode) {\n // Record the render duration for the fiber that errored.\n stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); // Include the time spent working on failed children before continuing.\n\n var actualDuration = completedWork.actualDuration;\n var child = completedWork.child;\n\n while (child !== null) {\n actualDuration += child.actualDuration;\n child = child.sibling;\n }\n\n completedWork.actualDuration = actualDuration;\n }\n\n if (returnFiber !== null) {\n // Mark the parent fiber as incomplete and clear its subtree flags.\n returnFiber.flags |= Incomplete;\n returnFiber.subtreeFlags = NoFlags;\n returnFiber.deletions = null;\n } else {\n // We've unwound all the way to the root.\n workInProgressRootExitStatus = RootDidNotComplete;\n workInProgress = null;\n return;\n }\n }\n\n var siblingFiber = completedWork.sibling;\n\n if (siblingFiber !== null) {\n // If there is more work to do in this returnFiber, do that next.\n workInProgress = siblingFiber;\n return;\n } // Otherwise, return to the parent\n\n\n completedWork = returnFiber; // Update the next thing we're working on in case something throws.\n\n workInProgress = completedWork;\n } while (completedWork !== null); // We've reached the root.\n\n\n if (workInProgressRootExitStatus === RootInProgress) {\n workInProgressRootExitStatus = RootCompleted;\n }\n}\n\nfunction commitRoot(root, recoverableErrors, transitions) {\n // TODO: This no longer makes any sense. We already wrap the mutation and\n // layout phases. Should be able to remove.\n var previousUpdateLanePriority = getCurrentUpdatePriority();\n var prevTransition = ReactCurrentBatchConfig$3.transition;\n\n try {\n ReactCurrentBatchConfig$3.transition = null;\n setCurrentUpdatePriority(DiscreteEventPriority);\n commitRootImpl(root, recoverableErrors, transitions, previousUpdateLanePriority);\n } finally {\n ReactCurrentBatchConfig$3.transition = prevTransition;\n setCurrentUpdatePriority(previousUpdateLanePriority);\n }\n\n return null;\n}\n\nfunction commitRootImpl(root, recoverableErrors, transitions, renderPriorityLevel) {\n do {\n // `flushPassiveEffects` will call `flushSyncUpdateQueue` at the end, which\n // means `flushPassiveEffects` will sometimes result in additional\n // passive effects. So we need to keep flushing in a loop until there are\n // no more pending effects.\n // TODO: Might be better if `flushPassiveEffects` did not automatically\n // flush synchronous work at the end, to avoid factoring hazards like this.\n flushPassiveEffects();\n } while (rootWithPendingPassiveEffects !== null);\n\n flushRenderPhaseStrictModeWarningsInDEV();\n\n if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {\n throw new Error('Should not already be working.');\n }\n\n var finishedWork = root.finishedWork;\n var lanes = root.finishedLanes;\n\n {\n markCommitStarted(lanes);\n }\n\n if (finishedWork === null) {\n\n {\n markCommitStopped();\n }\n\n return null;\n } else {\n {\n if (lanes === NoLanes) {\n error('root.finishedLanes should not be empty during a commit. This is a ' + 'bug in React.');\n }\n }\n }\n\n root.finishedWork = null;\n root.finishedLanes = NoLanes;\n\n if (finishedWork === root.current) {\n throw new Error('Cannot commit the same tree as before. This error is likely caused by ' + 'a bug in React. Please file an issue.');\n } // commitRoot never returns a continuation; it always finishes synchronously.\n // So we can clear these now to allow a new callback to be scheduled.\n\n\n root.callbackNode = null;\n root.callbackPriority = NoLane; // Update the first and last pending times on this root. The new first\n // pending time is whatever is left on the root fiber.\n\n var remainingLanes = mergeLanes(finishedWork.lanes, finishedWork.childLanes);\n markRootFinished(root, remainingLanes);\n\n if (root === workInProgressRoot) {\n // We can reset these now that they are finished.\n workInProgressRoot = null;\n workInProgress = null;\n workInProgressRootRenderLanes = NoLanes;\n } // If there are pending passive effects, schedule a callback to process them.\n // Do this as early as possible, so it is queued before anything else that\n // might get scheduled in the commit phase. (See #16714.)\n // TODO: Delete all other places that schedule the passive effect callback\n // They're redundant.\n\n\n if ((finishedWork.subtreeFlags & PassiveMask) !== NoFlags || (finishedWork.flags & PassiveMask) !== NoFlags) {\n if (!rootDoesHavePassiveEffects) {\n rootDoesHavePassiveEffects = true;\n // to store it in pendingPassiveTransitions until they get processed\n // We need to pass this through as an argument to commitRoot\n // because workInProgressTransitions might have changed between\n // the previous render and commit if we throttle the commit\n // with setTimeout\n\n pendingPassiveTransitions = transitions;\n scheduleCallback$1(NormalPriority, function () {\n flushPassiveEffects(); // This render triggered passive effects: release the root cache pool\n // *after* passive effects fire to avoid freeing a cache pool that may\n // be referenced by a node in the tree (HostRoot, Cache boundary etc)\n\n return null;\n });\n }\n } // Check if there are any effects in the whole tree.\n // TODO: This is left over from the effect list implementation, where we had\n // to check for the existence of `firstEffect` to satisfy Flow. I think the\n // only other reason this optimization exists is because it affects profiling.\n // Reconsider whether this is necessary.\n\n\n var subtreeHasEffects = (finishedWork.subtreeFlags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags;\n var rootHasEffect = (finishedWork.flags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags;\n\n if (subtreeHasEffects || rootHasEffect) {\n var prevTransition = ReactCurrentBatchConfig$3.transition;\n ReactCurrentBatchConfig$3.transition = null;\n var previousPriority = getCurrentUpdatePriority();\n setCurrentUpdatePriority(DiscreteEventPriority);\n var prevExecutionContext = executionContext;\n executionContext |= CommitContext; // Reset this to null before calling lifecycles\n\n ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass\n // of the effect list for each phase: all mutation effects come before all\n // layout effects, and so on.\n // The first phase a \"before mutation\" phase. We use this phase to read the\n // state of the host tree right before we mutate it. This is where\n // getSnapshotBeforeUpdate is called.\n\n var shouldFireAfterActiveInstanceBlur = commitBeforeMutationEffects(root, finishedWork);\n\n {\n // Mark the current commit time to be shared by all Profilers in this\n // batch. This enables them to be grouped later.\n recordCommitTime();\n }\n\n\n commitMutationEffects(root, finishedWork, lanes);\n\n resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after\n // the mutation phase, so that the previous tree is still current during\n // componentWillUnmount, but before the layout phase, so that the finished\n // work is current during componentDidMount/Update.\n\n root.current = finishedWork; // The next phase is the layout phase, where we call effects that read\n\n {\n markLayoutEffectsStarted(lanes);\n }\n\n commitLayoutEffects(finishedWork, root, lanes);\n\n {\n markLayoutEffectsStopped();\n }\n // opportunity to paint.\n\n\n requestPaint();\n executionContext = prevExecutionContext; // Reset the priority to the previous non-sync value.\n\n setCurrentUpdatePriority(previousPriority);\n ReactCurrentBatchConfig$3.transition = prevTransition;\n } else {\n // No effects.\n root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were\n // no effects.\n // TODO: Maybe there's a better way to report this.\n\n {\n recordCommitTime();\n }\n }\n\n var rootDidHavePassiveEffects = rootDoesHavePassiveEffects;\n\n if (rootDoesHavePassiveEffects) {\n // This commit has passive effects. Stash a reference to them. But don't\n // schedule a callback until after flushing layout work.\n rootDoesHavePassiveEffects = false;\n rootWithPendingPassiveEffects = root;\n pendingPassiveEffectsLanes = lanes;\n } else {\n\n {\n nestedPassiveUpdateCount = 0;\n rootWithPassiveNestedUpdates = null;\n }\n } // Read this again, since an effect might have updated it\n\n\n remainingLanes = root.pendingLanes; // Check if there's remaining work on this root\n // TODO: This is part of the `componentDidCatch` implementation. Its purpose\n // is to detect whether something might have called setState inside\n // `componentDidCatch`. The mechanism is known to be flawed because `setState`\n // inside `componentDidCatch` is itself flawed — that's why we recommend\n // `getDerivedStateFromError` instead. However, it could be improved by\n // checking if remainingLanes includes Sync work, instead of whether there's\n // any work remaining at all (which would also include stuff like Suspense\n // retries or transitions). It's been like this for a while, though, so fixing\n // it probably isn't that urgent.\n\n if (remainingLanes === NoLanes) {\n // If there's no remaining work, we can clear the set of already failed\n // error boundaries.\n legacyErrorBoundariesThatAlreadyFailed = null;\n }\n\n {\n if (!rootDidHavePassiveEffects) {\n commitDoubleInvokeEffectsInDEV(root.current, false);\n }\n }\n\n onCommitRoot(finishedWork.stateNode, renderPriorityLevel);\n\n {\n if (isDevToolsPresent) {\n root.memoizedUpdaters.clear();\n }\n }\n\n {\n onCommitRoot$1();\n } // Always call this before exiting `commitRoot`, to ensure that any\n // additional work on this root is scheduled.\n\n\n ensureRootIsScheduled(root, now());\n\n if (recoverableErrors !== null) {\n // There were errors during this render, but recovered from them without\n // needing to surface it to the UI. We log them here.\n var onRecoverableError = root.onRecoverableError;\n\n for (var i = 0; i < recoverableErrors.length; i++) {\n var recoverableError = recoverableErrors[i];\n var componentStack = recoverableError.stack;\n var digest = recoverableError.digest;\n onRecoverableError(recoverableError.value, {\n componentStack: componentStack,\n digest: digest\n });\n }\n }\n\n if (hasUncaughtError) {\n hasUncaughtError = false;\n var error$1 = firstUncaughtError;\n firstUncaughtError = null;\n throw error$1;\n } // If the passive effects are the result of a discrete render, flush them\n // synchronously at the end of the current task so that the result is\n // immediately observable. Otherwise, we assume that they are not\n // order-dependent and do not need to be observed by external systems, so we\n // can wait until after paint.\n // TODO: We can optimize this by not scheduling the callback earlier. Since we\n // currently schedule the callback in multiple places, will wait until those\n // are consolidated.\n\n\n if (includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && root.tag !== LegacyRoot) {\n flushPassiveEffects();\n } // Read this again, since a passive effect might have updated it\n\n\n remainingLanes = root.pendingLanes;\n\n if (includesSomeLane(remainingLanes, SyncLane)) {\n {\n markNestedUpdateScheduled();\n } // Count the number of times the root synchronously re-renders without\n // finishing. If there are too many, it indicates an infinite update loop.\n\n\n if (root === rootWithNestedUpdates) {\n nestedUpdateCount++;\n } else {\n nestedUpdateCount = 0;\n rootWithNestedUpdates = root;\n }\n } else {\n nestedUpdateCount = 0;\n } // If layout work was scheduled, flush it now.\n\n\n flushSyncCallbacks();\n\n {\n markCommitStopped();\n }\n\n return null;\n}\n\nfunction flushPassiveEffects() {\n // Returns whether passive effects were flushed.\n // TODO: Combine this check with the one in flushPassiveEFfectsImpl. We should\n // probably just combine the two functions. I believe they were only separate\n // in the first place because we used to wrap it with\n // `Scheduler.runWithPriority`, which accepts a function. But now we track the\n // priority within React itself, so we can mutate the variable directly.\n if (rootWithPendingPassiveEffects !== null) {\n var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes);\n var priority = lowerEventPriority(DefaultEventPriority, renderPriority);\n var prevTransition = ReactCurrentBatchConfig$3.transition;\n var previousPriority = getCurrentUpdatePriority();\n\n try {\n ReactCurrentBatchConfig$3.transition = null;\n setCurrentUpdatePriority(priority);\n return flushPassiveEffectsImpl();\n } finally {\n setCurrentUpdatePriority(previousPriority);\n ReactCurrentBatchConfig$3.transition = prevTransition; // Once passive effects have run for the tree - giving components a\n }\n }\n\n return false;\n}\nfunction enqueuePendingPassiveProfilerEffect(fiber) {\n {\n pendingPassiveProfilerEffects.push(fiber);\n\n if (!rootDoesHavePassiveEffects) {\n rootDoesHavePassiveEffects = true;\n scheduleCallback$1(NormalPriority, function () {\n flushPassiveEffects();\n return null;\n });\n }\n }\n}\n\nfunction flushPassiveEffectsImpl() {\n if (rootWithPendingPassiveEffects === null) {\n return false;\n } // Cache and clear the transitions flag\n\n\n var transitions = pendingPassiveTransitions;\n pendingPassiveTransitions = null;\n var root = rootWithPendingPassiveEffects;\n var lanes = pendingPassiveEffectsLanes;\n rootWithPendingPassiveEffects = null; // TODO: This is sometimes out of sync with rootWithPendingPassiveEffects.\n // Figure out why and fix it. It's not causing any known issues (probably\n // because it's only used for profiling), but it's a refactor hazard.\n\n pendingPassiveEffectsLanes = NoLanes;\n\n if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {\n throw new Error('Cannot flush passive effects while already rendering.');\n }\n\n {\n isFlushingPassiveEffects = true;\n didScheduleUpdateDuringPassiveEffects = false;\n }\n\n {\n markPassiveEffectsStarted(lanes);\n }\n\n var prevExecutionContext = executionContext;\n executionContext |= CommitContext;\n commitPassiveUnmountEffects(root.current);\n commitPassiveMountEffects(root, root.current, lanes, transitions); // TODO: Move to commitPassiveMountEffects\n\n {\n var profilerEffects = pendingPassiveProfilerEffects;\n pendingPassiveProfilerEffects = [];\n\n for (var i = 0; i < profilerEffects.length; i++) {\n var _fiber = profilerEffects[i];\n commitPassiveEffectDurations(root, _fiber);\n }\n }\n\n {\n markPassiveEffectsStopped();\n }\n\n {\n commitDoubleInvokeEffectsInDEV(root.current, true);\n }\n\n executionContext = prevExecutionContext;\n flushSyncCallbacks();\n\n {\n // If additional passive effects were scheduled, increment a counter. If this\n // exceeds the limit, we'll fire a warning.\n if (didScheduleUpdateDuringPassiveEffects) {\n if (root === rootWithPassiveNestedUpdates) {\n nestedPassiveUpdateCount++;\n } else {\n nestedPassiveUpdateCount = 0;\n rootWithPassiveNestedUpdates = root;\n }\n } else {\n nestedPassiveUpdateCount = 0;\n }\n\n isFlushingPassiveEffects = false;\n didScheduleUpdateDuringPassiveEffects = false;\n } // TODO: Move to commitPassiveMountEffects\n\n\n onPostCommitRoot(root);\n\n {\n var stateNode = root.current.stateNode;\n stateNode.effectDuration = 0;\n stateNode.passiveEffectDuration = 0;\n }\n\n return true;\n}\n\nfunction isAlreadyFailedLegacyErrorBoundary(instance) {\n return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);\n}\nfunction markLegacyErrorBoundaryAsFailed(instance) {\n if (legacyErrorBoundariesThatAlreadyFailed === null) {\n legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);\n } else {\n legacyErrorBoundariesThatAlreadyFailed.add(instance);\n }\n}\n\nfunction prepareToThrowUncaughtError(error) {\n if (!hasUncaughtError) {\n hasUncaughtError = true;\n firstUncaughtError = error;\n }\n}\n\nvar onUncaughtError = prepareToThrowUncaughtError;\n\nfunction captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {\n var errorInfo = createCapturedValueAtFiber(error, sourceFiber);\n var update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane);\n var root = enqueueUpdate(rootFiber, update, SyncLane);\n var eventTime = requestEventTime();\n\n if (root !== null) {\n markRootUpdated(root, SyncLane, eventTime);\n ensureRootIsScheduled(root, eventTime);\n }\n}\n\nfunction captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) {\n {\n reportUncaughtErrorInDEV(error$1);\n setIsRunningInsertionEffect(false);\n }\n\n if (sourceFiber.tag === HostRoot) {\n // Error was thrown at the root. There is no parent, so the root\n // itself should capture it.\n captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error$1);\n return;\n }\n\n var fiber = null;\n\n {\n fiber = nearestMountedAncestor;\n }\n\n while (fiber !== null) {\n if (fiber.tag === HostRoot) {\n captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error$1);\n return;\n } else if (fiber.tag === ClassComponent) {\n var ctor = fiber.type;\n var instance = fiber.stateNode;\n\n if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {\n var errorInfo = createCapturedValueAtFiber(error$1, sourceFiber);\n var update = createClassErrorUpdate(fiber, errorInfo, SyncLane);\n var root = enqueueUpdate(fiber, update, SyncLane);\n var eventTime = requestEventTime();\n\n if (root !== null) {\n markRootUpdated(root, SyncLane, eventTime);\n ensureRootIsScheduled(root, eventTime);\n }\n\n return;\n }\n }\n\n fiber = fiber.return;\n }\n\n {\n // TODO: Until we re-land skipUnmountedBoundaries (see #20147), this warning\n // will fire for errors that are thrown by destroy functions inside deleted\n // trees. What it should instead do is propagate the error to the parent of\n // the deleted tree. In the meantime, do not add this warning to the\n // allowlist; this is only for our internal use.\n error('Internal React error: Attempted to capture a commit phase error ' + 'inside a detached tree. This indicates a bug in React. Likely ' + 'causes include deleting the same fiber more than once, committing an ' + 'already-finished tree, or an inconsistent return pointer.\\n\\n' + 'Error message:\\n\\n%s', error$1);\n }\n}\nfunction pingSuspendedRoot(root, wakeable, pingedLanes) {\n var pingCache = root.pingCache;\n\n if (pingCache !== null) {\n // The wakeable resolved, so we no longer need to memoize, because it will\n // never be thrown again.\n pingCache.delete(wakeable);\n }\n\n var eventTime = requestEventTime();\n markRootPinged(root, pingedLanes);\n warnIfSuspenseResolutionNotWrappedWithActDEV(root);\n\n if (workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes)) {\n // Received a ping at the same priority level at which we're currently\n // rendering. We might want to restart this render. This should mirror\n // the logic of whether or not a root suspends once it completes.\n // TODO: If we're rendering sync either due to Sync, Batched or expired,\n // we should probably never restart.\n // If we're suspended with delay, or if it's a retry, we'll always suspend\n // so we can always restart.\n if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {\n // Restart from the root.\n prepareFreshStack(root, NoLanes);\n } else {\n // Even though we can't restart right now, we might get an\n // opportunity later. So we mark this render as having a ping.\n workInProgressRootPingedLanes = mergeLanes(workInProgressRootPingedLanes, pingedLanes);\n }\n }\n\n ensureRootIsScheduled(root, eventTime);\n}\n\nfunction retryTimedOutBoundary(boundaryFiber, retryLane) {\n // The boundary fiber (a Suspense component or SuspenseList component)\n // previously was rendered in its fallback state. One of the promises that\n // suspended it has resolved, which means at least part of the tree was\n // likely unblocked. Try rendering again, at a new lanes.\n if (retryLane === NoLane) {\n // TODO: Assign this to `suspenseState.retryLane`? to avoid\n // unnecessary entanglement?\n retryLane = requestRetryLane(boundaryFiber);\n } // TODO: Special case idle priority?\n\n\n var eventTime = requestEventTime();\n var root = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);\n\n if (root !== null) {\n markRootUpdated(root, retryLane, eventTime);\n ensureRootIsScheduled(root, eventTime);\n }\n}\n\nfunction retryDehydratedSuspenseBoundary(boundaryFiber) {\n var suspenseState = boundaryFiber.memoizedState;\n var retryLane = NoLane;\n\n if (suspenseState !== null) {\n retryLane = suspenseState.retryLane;\n }\n\n retryTimedOutBoundary(boundaryFiber, retryLane);\n}\nfunction resolveRetryWakeable(boundaryFiber, wakeable) {\n var retryLane = NoLane; // Default\n\n var retryCache;\n\n switch (boundaryFiber.tag) {\n case SuspenseComponent:\n retryCache = boundaryFiber.stateNode;\n var suspenseState = boundaryFiber.memoizedState;\n\n if (suspenseState !== null) {\n retryLane = suspenseState.retryLane;\n }\n\n break;\n\n case SuspenseListComponent:\n retryCache = boundaryFiber.stateNode;\n break;\n\n default:\n throw new Error('Pinged unknown suspense boundary type. ' + 'This is probably a bug in React.');\n }\n\n if (retryCache !== null) {\n // The wakeable resolved, so we no longer need to memoize, because it will\n // never be thrown again.\n retryCache.delete(wakeable);\n }\n\n retryTimedOutBoundary(boundaryFiber, retryLane);\n} // Computes the next Just Noticeable Difference (JND) boundary.\n// The theory is that a person can't tell the difference between small differences in time.\n// Therefore, if we wait a bit longer than necessary that won't translate to a noticeable\n// difference in the experience. However, waiting for longer might mean that we can avoid\n// showing an intermediate loading state. The longer we have already waited, the harder it\n// is to tell small differences in time. Therefore, the longer we've already waited,\n// the longer we can wait additionally. At some point we have to give up though.\n// We pick a train model where the next boundary commits at a consistent schedule.\n// These particular numbers are vague estimates. We expect to adjust them based on research.\n\nfunction jnd(timeElapsed) {\n return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960;\n}\n\nfunction checkForNestedUpdates() {\n if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {\n nestedUpdateCount = 0;\n rootWithNestedUpdates = null;\n throw new Error('Maximum update depth exceeded. This can happen when a component ' + 'repeatedly calls setState inside componentWillUpdate or ' + 'componentDidUpdate. React limits the number of nested updates to ' + 'prevent infinite loops.');\n }\n\n {\n if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) {\n nestedPassiveUpdateCount = 0;\n rootWithPassiveNestedUpdates = null;\n\n error('Maximum update depth exceeded. This can happen when a component ' + \"calls setState inside useEffect, but useEffect either doesn't \" + 'have a dependency array, or one of the dependencies changes on ' + 'every render.');\n }\n }\n}\n\nfunction flushRenderPhaseStrictModeWarningsInDEV() {\n {\n ReactStrictModeWarnings.flushLegacyContextWarning();\n\n {\n ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();\n }\n }\n}\n\nfunction commitDoubleInvokeEffectsInDEV(fiber, hasPassiveEffects) {\n {\n // TODO (StrictEffects) Should we set a marker on the root if it contains strict effects\n // so we don't traverse unnecessarily? similar to subtreeFlags but just at the root level.\n // Maybe not a big deal since this is DEV only behavior.\n setCurrentFiber(fiber);\n invokeEffectsInDev(fiber, MountLayoutDev, invokeLayoutEffectUnmountInDEV);\n\n if (hasPassiveEffects) {\n invokeEffectsInDev(fiber, MountPassiveDev, invokePassiveEffectUnmountInDEV);\n }\n\n invokeEffectsInDev(fiber, MountLayoutDev, invokeLayoutEffectMountInDEV);\n\n if (hasPassiveEffects) {\n invokeEffectsInDev(fiber, MountPassiveDev, invokePassiveEffectMountInDEV);\n }\n\n resetCurrentFiber();\n }\n}\n\nfunction invokeEffectsInDev(firstChild, fiberFlags, invokeEffectFn) {\n {\n // We don't need to re-check StrictEffectsMode here.\n // This function is only called if that check has already passed.\n var current = firstChild;\n var subtreeRoot = null;\n\n while (current !== null) {\n var primarySubtreeFlag = current.subtreeFlags & fiberFlags;\n\n if (current !== subtreeRoot && current.child !== null && primarySubtreeFlag !== NoFlags) {\n current = current.child;\n } else {\n if ((current.flags & fiberFlags) !== NoFlags) {\n invokeEffectFn(current);\n }\n\n if (current.sibling !== null) {\n current = current.sibling;\n } else {\n current = subtreeRoot = current.return;\n }\n }\n }\n }\n}\n\nvar didWarnStateUpdateForNotYetMountedComponent = null;\nfunction warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) {\n {\n if ((executionContext & RenderContext) !== NoContext) {\n // We let the other warning about render phase updates deal with this one.\n return;\n }\n\n if (!(fiber.mode & ConcurrentMode)) {\n return;\n }\n\n var tag = fiber.tag;\n\n if (tag !== IndeterminateComponent && tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent) {\n // Only warn for user-defined components, not internal ones like Suspense.\n return;\n } // We show the whole stack but dedupe on the top component's name because\n // the problematic code almost always lies inside that component.\n\n\n var componentName = getComponentNameFromFiber(fiber) || 'ReactComponent';\n\n if (didWarnStateUpdateForNotYetMountedComponent !== null) {\n if (didWarnStateUpdateForNotYetMountedComponent.has(componentName)) {\n return;\n }\n\n didWarnStateUpdateForNotYetMountedComponent.add(componentName);\n } else {\n didWarnStateUpdateForNotYetMountedComponent = new Set([componentName]);\n }\n\n var previousFiber = current;\n\n try {\n setCurrentFiber(fiber);\n\n error(\"Can't perform a React state update on a component that hasn't mounted yet. \" + 'This indicates that you have a side-effect in your render function that ' + 'asynchronously later calls tries to update the component. Move this work to ' + 'useEffect instead.');\n } finally {\n if (previousFiber) {\n setCurrentFiber(fiber);\n } else {\n resetCurrentFiber();\n }\n }\n }\n}\nvar beginWork$1;\n\n{\n var dummyFiber = null;\n\n beginWork$1 = function (current, unitOfWork, lanes) {\n // If a component throws an error, we replay it again in a synchronously\n // dispatched event, so that the debugger will treat it as an uncaught\n // error See ReactErrorUtils for more information.\n // Before entering the begin phase, copy the work-in-progress onto a dummy\n // fiber. If beginWork throws, we'll use this to reset the state.\n var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork);\n\n try {\n return beginWork(current, unitOfWork, lanes);\n } catch (originalError) {\n if (didSuspendOrErrorWhileHydratingDEV() || originalError !== null && typeof originalError === 'object' && typeof originalError.then === 'function') {\n // Don't replay promises.\n // Don't replay errors if we are hydrating and have already suspended or handled an error\n throw originalError;\n } // Keep this code in sync with handleError; any changes here must have\n // corresponding changes there.\n\n\n resetContextDependencies();\n resetHooksAfterThrow(); // Don't reset current debug fiber, since we're about to work on the\n // same fiber again.\n // Unwind the failed stack frame\n\n unwindInterruptedWork(current, unitOfWork); // Restore the original properties of the fiber.\n\n assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);\n\n if ( unitOfWork.mode & ProfileMode) {\n // Reset the profiler timer.\n startProfilerTimer(unitOfWork);\n } // Run beginWork again.\n\n\n invokeGuardedCallback(null, beginWork, null, current, unitOfWork, lanes);\n\n if (hasCaughtError()) {\n var replayError = clearCaughtError();\n\n if (typeof replayError === 'object' && replayError !== null && replayError._suppressLogging && typeof originalError === 'object' && originalError !== null && !originalError._suppressLogging) {\n // If suppressed, let the flag carry over to the original error which is the one we'll rethrow.\n originalError._suppressLogging = true;\n }\n } // We always throw the original error in case the second render pass is not idempotent.\n // This can happen if a memoized function or CommonJS module doesn't throw after first invocation.\n\n\n throw originalError;\n }\n };\n}\n\nvar didWarnAboutUpdateInRender = false;\nvar didWarnAboutUpdateInRenderForAnotherComponent;\n\n{\n didWarnAboutUpdateInRenderForAnotherComponent = new Set();\n}\n\nfunction warnAboutRenderPhaseUpdatesInDEV(fiber) {\n {\n if (isRendering && !getIsUpdatingOpaqueValueInRenderPhaseInDEV()) {\n switch (fiber.tag) {\n case FunctionComponent:\n case ForwardRef:\n case SimpleMemoComponent:\n {\n var renderingComponentName = workInProgress && getComponentNameFromFiber(workInProgress) || 'Unknown'; // Dedupe by the rendering component because it's the one that needs to be fixed.\n\n var dedupeKey = renderingComponentName;\n\n if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) {\n didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey);\n var setStateComponentName = getComponentNameFromFiber(fiber) || 'Unknown';\n\n error('Cannot update a component (`%s`) while rendering a ' + 'different component (`%s`). To locate the bad setState() call inside `%s`, ' + 'follow the stack trace as described in https://reactjs.org/link/setstate-in-render', setStateComponentName, renderingComponentName, renderingComponentName);\n }\n\n break;\n }\n\n case ClassComponent:\n {\n if (!didWarnAboutUpdateInRender) {\n error('Cannot update during an existing state transition (such as ' + 'within `render`). Render methods should be a pure ' + 'function of props and state.');\n\n didWarnAboutUpdateInRender = true;\n }\n\n break;\n }\n }\n }\n }\n}\n\nfunction restorePendingUpdaters(root, lanes) {\n {\n if (isDevToolsPresent) {\n var memoizedUpdaters = root.memoizedUpdaters;\n memoizedUpdaters.forEach(function (schedulingFiber) {\n addFiberToLanesMap(root, schedulingFiber, lanes);\n }); // This function intentionally does not clear memoized updaters.\n // Those may still be relevant to the current commit\n // and a future one (e.g. Suspense).\n }\n }\n}\nvar fakeActCallbackNode = {};\n\nfunction scheduleCallback$1(priorityLevel, callback) {\n {\n // If we're currently inside an `act` scope, bypass Scheduler and push to\n // the `act` queue instead.\n var actQueue = ReactCurrentActQueue$1.current;\n\n if (actQueue !== null) {\n actQueue.push(callback);\n return fakeActCallbackNode;\n } else {\n return scheduleCallback(priorityLevel, callback);\n }\n }\n}\n\nfunction cancelCallback$1(callbackNode) {\n if ( callbackNode === fakeActCallbackNode) {\n return;\n } // In production, always call Scheduler. This function will be stripped out.\n\n\n return cancelCallback(callbackNode);\n}\n\nfunction shouldForceFlushFallbacksInDEV() {\n // Never force flush in production. This function should get stripped out.\n return ReactCurrentActQueue$1.current !== null;\n}\n\nfunction warnIfUpdatesNotWrappedWithActDEV(fiber) {\n {\n if (fiber.mode & ConcurrentMode) {\n if (!isConcurrentActEnvironment()) {\n // Not in an act environment. No need to warn.\n return;\n }\n } else {\n // Legacy mode has additional cases where we suppress a warning.\n if (!isLegacyActEnvironment()) {\n // Not in an act environment. No need to warn.\n return;\n }\n\n if (executionContext !== NoContext) {\n // Legacy mode doesn't warn if the update is batched, i.e.\n // batchedUpdates or flushSync.\n return;\n }\n\n if (fiber.tag !== FunctionComponent && fiber.tag !== ForwardRef && fiber.tag !== SimpleMemoComponent) {\n // For backwards compatibility with pre-hooks code, legacy mode only\n // warns for updates that originate from a hook.\n return;\n }\n }\n\n if (ReactCurrentActQueue$1.current === null) {\n var previousFiber = current;\n\n try {\n setCurrentFiber(fiber);\n\n error('An update to %s inside a test was not wrapped in act(...).\\n\\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\\n\\n' + 'act(() => {\\n' + ' /* fire events that update state */\\n' + '});\\n' + '/* assert on the output */\\n\\n' + \"This ensures that you're testing the behavior the user would see \" + 'in the browser.' + ' Learn more at https://reactjs.org/link/wrap-tests-with-act', getComponentNameFromFiber(fiber));\n } finally {\n if (previousFiber) {\n setCurrentFiber(fiber);\n } else {\n resetCurrentFiber();\n }\n }\n }\n }\n}\n\nfunction warnIfSuspenseResolutionNotWrappedWithActDEV(root) {\n {\n if (root.tag !== LegacyRoot && isConcurrentActEnvironment() && ReactCurrentActQueue$1.current === null) {\n error('A suspended resource finished loading inside a test, but the event ' + 'was not wrapped in act(...).\\n\\n' + 'When testing, code that resolves suspended data should be wrapped ' + 'into act(...):\\n\\n' + 'act(() => {\\n' + ' /* finish loading suspended data */\\n' + '});\\n' + '/* assert on the output */\\n\\n' + \"This ensures that you're testing the behavior the user would see \" + 'in the browser.' + ' Learn more at https://reactjs.org/link/wrap-tests-with-act');\n }\n }\n}\n\nfunction setIsRunningInsertionEffect(isRunning) {\n {\n isRunningInsertionEffect = isRunning;\n }\n}\n\n/* eslint-disable react-internal/prod-error-codes */\nvar resolveFamily = null; // $FlowFixMe Flow gets confused by a WeakSet feature check below.\n\nvar failedBoundaries = null;\nvar setRefreshHandler = function (handler) {\n {\n resolveFamily = handler;\n }\n};\nfunction resolveFunctionForHotReloading(type) {\n {\n if (resolveFamily === null) {\n // Hot reloading is disabled.\n return type;\n }\n\n var family = resolveFamily(type);\n\n if (family === undefined) {\n return type;\n } // Use the latest known implementation.\n\n\n return family.current;\n }\n}\nfunction resolveClassForHotReloading(type) {\n // No implementation differences.\n return resolveFunctionForHotReloading(type);\n}\nfunction resolveForwardRefForHotReloading(type) {\n {\n if (resolveFamily === null) {\n // Hot reloading is disabled.\n return type;\n }\n\n var family = resolveFamily(type);\n\n if (family === undefined) {\n // Check if we're dealing with a real forwardRef. Don't want to crash early.\n if (type !== null && type !== undefined && typeof type.render === 'function') {\n // ForwardRef is special because its resolved .type is an object,\n // but it's possible that we only have its inner render function in the map.\n // If that inner render function is different, we'll build a new forwardRef type.\n var currentRender = resolveFunctionForHotReloading(type.render);\n\n if (type.render !== currentRender) {\n var syntheticType = {\n $$typeof: REACT_FORWARD_REF_TYPE,\n render: currentRender\n };\n\n if (type.displayName !== undefined) {\n syntheticType.displayName = type.displayName;\n }\n\n return syntheticType;\n }\n }\n\n return type;\n } // Use the latest known implementation.\n\n\n return family.current;\n }\n}\nfunction isCompatibleFamilyForHotReloading(fiber, element) {\n {\n if (resolveFamily === null) {\n // Hot reloading is disabled.\n return false;\n }\n\n var prevType = fiber.elementType;\n var nextType = element.type; // If we got here, we know types aren't === equal.\n\n var needsCompareFamilies = false;\n var $$typeofNextType = typeof nextType === 'object' && nextType !== null ? nextType.$$typeof : null;\n\n switch (fiber.tag) {\n case ClassComponent:\n {\n if (typeof nextType === 'function') {\n needsCompareFamilies = true;\n }\n\n break;\n }\n\n case FunctionComponent:\n {\n if (typeof nextType === 'function') {\n needsCompareFamilies = true;\n } else if ($$typeofNextType === REACT_LAZY_TYPE) {\n // We don't know the inner type yet.\n // We're going to assume that the lazy inner type is stable,\n // and so it is sufficient to avoid reconciling it away.\n // We're not going to unwrap or actually use the new lazy type.\n needsCompareFamilies = true;\n }\n\n break;\n }\n\n case ForwardRef:\n {\n if ($$typeofNextType === REACT_FORWARD_REF_TYPE) {\n needsCompareFamilies = true;\n } else if ($$typeofNextType === REACT_LAZY_TYPE) {\n needsCompareFamilies = true;\n }\n\n break;\n }\n\n case MemoComponent:\n case SimpleMemoComponent:\n {\n if ($$typeofNextType === REACT_MEMO_TYPE) {\n // TODO: if it was but can no longer be simple,\n // we shouldn't set this.\n needsCompareFamilies = true;\n } else if ($$typeofNextType === REACT_LAZY_TYPE) {\n needsCompareFamilies = true;\n }\n\n break;\n }\n\n default:\n return false;\n } // Check if both types have a family and it's the same one.\n\n\n if (needsCompareFamilies) {\n // Note: memo() and forwardRef() we'll compare outer rather than inner type.\n // This means both of them need to be registered to preserve state.\n // If we unwrapped and compared the inner types for wrappers instead,\n // then we would risk falsely saying two separate memo(Foo)\n // calls are equivalent because they wrap the same Foo function.\n var prevFamily = resolveFamily(prevType);\n\n if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) {\n return true;\n }\n }\n\n return false;\n }\n}\nfunction markFailedErrorBoundaryForHotReloading(fiber) {\n {\n if (resolveFamily === null) {\n // Hot reloading is disabled.\n return;\n }\n\n if (typeof WeakSet !== 'function') {\n return;\n }\n\n if (failedBoundaries === null) {\n failedBoundaries = new WeakSet();\n }\n\n failedBoundaries.add(fiber);\n }\n}\nvar scheduleRefresh = function (root, update) {\n {\n if (resolveFamily === null) {\n // Hot reloading is disabled.\n return;\n }\n\n var staleFamilies = update.staleFamilies,\n updatedFamilies = update.updatedFamilies;\n flushPassiveEffects();\n flushSync(function () {\n scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies);\n });\n }\n};\nvar scheduleRoot = function (root, element) {\n {\n if (root.context !== emptyContextObject) {\n // Super edge case: root has a legacy _renderSubtree context\n // but we don't know the parentComponent so we can't pass it.\n // Just ignore. We'll delete this with _renderSubtree code path later.\n return;\n }\n\n flushPassiveEffects();\n flushSync(function () {\n updateContainer(element, root, null, null);\n });\n }\n};\n\nfunction scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {\n {\n var alternate = fiber.alternate,\n child = fiber.child,\n sibling = fiber.sibling,\n tag = fiber.tag,\n type = fiber.type;\n var candidateType = null;\n\n switch (tag) {\n case FunctionComponent:\n case SimpleMemoComponent:\n case ClassComponent:\n candidateType = type;\n break;\n\n case ForwardRef:\n candidateType = type.render;\n break;\n }\n\n if (resolveFamily === null) {\n throw new Error('Expected resolveFamily to be set during hot reload.');\n }\n\n var needsRender = false;\n var needsRemount = false;\n\n if (candidateType !== null) {\n var family = resolveFamily(candidateType);\n\n if (family !== undefined) {\n if (staleFamilies.has(family)) {\n needsRemount = true;\n } else if (updatedFamilies.has(family)) {\n if (tag === ClassComponent) {\n needsRemount = true;\n } else {\n needsRender = true;\n }\n }\n }\n }\n\n if (failedBoundaries !== null) {\n if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) {\n needsRemount = true;\n }\n }\n\n if (needsRemount) {\n fiber._debugNeedsRemount = true;\n }\n\n if (needsRemount || needsRender) {\n var _root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n if (_root !== null) {\n scheduleUpdateOnFiber(_root, fiber, SyncLane, NoTimestamp);\n }\n }\n\n if (child !== null && !needsRemount) {\n scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies);\n }\n\n if (sibling !== null) {\n scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);\n }\n }\n}\n\nvar findHostInstancesForRefresh = function (root, families) {\n {\n var hostInstances = new Set();\n var types = new Set(families.map(function (family) {\n return family.current;\n }));\n findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances);\n return hostInstances;\n }\n};\n\nfunction findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) {\n {\n var child = fiber.child,\n sibling = fiber.sibling,\n tag = fiber.tag,\n type = fiber.type;\n var candidateType = null;\n\n switch (tag) {\n case FunctionComponent:\n case SimpleMemoComponent:\n case ClassComponent:\n candidateType = type;\n break;\n\n case ForwardRef:\n candidateType = type.render;\n break;\n }\n\n var didMatch = false;\n\n if (candidateType !== null) {\n if (types.has(candidateType)) {\n didMatch = true;\n }\n }\n\n if (didMatch) {\n // We have a match. This only drills down to the closest host components.\n // There's no need to search deeper because for the purpose of giving\n // visual feedback, \"flashing\" outermost parent rectangles is sufficient.\n findHostInstancesForFiberShallowly(fiber, hostInstances);\n } else {\n // If there's no match, maybe there will be one further down in the child tree.\n if (child !== null) {\n findHostInstancesForMatchingFibersRecursively(child, types, hostInstances);\n }\n }\n\n if (sibling !== null) {\n findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);\n }\n }\n}\n\nfunction findHostInstancesForFiberShallowly(fiber, hostInstances) {\n {\n var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances);\n\n if (foundHostInstances) {\n return;\n } // If we didn't find any host children, fallback to closest host parent.\n\n\n var node = fiber;\n\n while (true) {\n switch (node.tag) {\n case HostComponent:\n hostInstances.add(node.stateNode);\n return;\n\n case HostPortal:\n hostInstances.add(node.stateNode.containerInfo);\n return;\n\n case HostRoot:\n hostInstances.add(node.stateNode.containerInfo);\n return;\n }\n\n if (node.return === null) {\n throw new Error('Expected to reach root first.');\n }\n\n node = node.return;\n }\n }\n}\n\nfunction findChildHostInstancesForFiberShallowly(fiber, hostInstances) {\n {\n var node = fiber;\n var foundHostInstances = false;\n\n while (true) {\n if (node.tag === HostComponent) {\n // We got a match.\n foundHostInstances = true;\n hostInstances.add(node.stateNode); // There may still be more, so keep searching.\n } else if (node.child !== null) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n\n if (node === fiber) {\n return foundHostInstances;\n }\n\n while (node.sibling === null) {\n if (node.return === null || node.return === fiber) {\n return foundHostInstances;\n }\n\n node = node.return;\n }\n\n node.sibling.return = node.return;\n node = node.sibling;\n }\n }\n\n return false;\n}\n\nvar hasBadMapPolyfill;\n\n{\n hasBadMapPolyfill = false;\n\n try {\n var nonExtensibleObject = Object.preventExtensions({});\n /* eslint-disable no-new */\n\n new Map([[nonExtensibleObject, null]]);\n new Set([nonExtensibleObject]);\n /* eslint-enable no-new */\n } catch (e) {\n // TODO: Consider warning about bad polyfills\n hasBadMapPolyfill = true;\n }\n}\n\nfunction FiberNode(tag, pendingProps, key, mode) {\n // Instance\n this.tag = tag;\n this.key = key;\n this.elementType = null;\n this.type = null;\n this.stateNode = null; // Fiber\n\n this.return = null;\n this.child = null;\n this.sibling = null;\n this.index = 0;\n this.ref = null;\n this.pendingProps = pendingProps;\n this.memoizedProps = null;\n this.updateQueue = null;\n this.memoizedState = null;\n this.dependencies = null;\n this.mode = mode; // Effects\n\n this.flags = NoFlags;\n this.subtreeFlags = NoFlags;\n this.deletions = null;\n this.lanes = NoLanes;\n this.childLanes = NoLanes;\n this.alternate = null;\n\n {\n // Note: The following is done to avoid a v8 performance cliff.\n //\n // Initializing the fields below to smis and later updating them with\n // double values will cause Fibers to end up having separate shapes.\n // This behavior/bug has something to do with Object.preventExtension().\n // Fortunately this only impacts DEV builds.\n // Unfortunately it makes React unusably slow for some applications.\n // To work around this, initialize the fields below with doubles.\n //\n // Learn more about this here:\n // https://github.com/facebook/react/issues/14365\n // https://bugs.chromium.org/p/v8/issues/detail?id=8538\n this.actualDuration = Number.NaN;\n this.actualStartTime = Number.NaN;\n this.selfBaseDuration = Number.NaN;\n this.treeBaseDuration = Number.NaN; // It's okay to replace the initial doubles with smis after initialization.\n // This won't trigger the performance cliff mentioned above,\n // and it simplifies other profiler code (including DevTools).\n\n this.actualDuration = 0;\n this.actualStartTime = -1;\n this.selfBaseDuration = 0;\n this.treeBaseDuration = 0;\n }\n\n {\n // This isn't directly used but is handy for debugging internals:\n this._debugSource = null;\n this._debugOwner = null;\n this._debugNeedsRemount = false;\n this._debugHookTypes = null;\n\n if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {\n Object.preventExtensions(this);\n }\n }\n} // This is a constructor function, rather than a POJO constructor, still\n// please ensure we do the following:\n// 1) Nobody should add any instance methods on this. Instance methods can be\n// more difficult to predict when they get optimized and they are almost\n// never inlined properly in static compilers.\n// 2) Nobody should rely on `instanceof Fiber` for type testing. We should\n// always know when it is a fiber.\n// 3) We might want to experiment with using numeric keys since they are easier\n// to optimize in a non-JIT environment.\n// 4) We can easily go from a constructor to a createFiber object literal if that\n// is faster.\n// 5) It should be easy to port this to a C struct and keep a C implementation\n// compatible.\n\n\nvar createFiber = function (tag, pendingProps, key, mode) {\n // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors\n return new FiberNode(tag, pendingProps, key, mode);\n};\n\nfunction shouldConstruct$1(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction isSimpleFunctionComponent(type) {\n return typeof type === 'function' && !shouldConstruct$1(type) && type.defaultProps === undefined;\n}\nfunction resolveLazyComponentTag(Component) {\n if (typeof Component === 'function') {\n return shouldConstruct$1(Component) ? ClassComponent : FunctionComponent;\n } else if (Component !== undefined && Component !== null) {\n var $$typeof = Component.$$typeof;\n\n if ($$typeof === REACT_FORWARD_REF_TYPE) {\n return ForwardRef;\n }\n\n if ($$typeof === REACT_MEMO_TYPE) {\n return MemoComponent;\n }\n }\n\n return IndeterminateComponent;\n} // This is used to create an alternate fiber to do work on.\n\nfunction createWorkInProgress(current, pendingProps) {\n var workInProgress = current.alternate;\n\n if (workInProgress === null) {\n // We use a double buffering pooling technique because we know that we'll\n // only ever need at most two versions of a tree. We pool the \"other\" unused\n // node that we're free to reuse. This is lazily created to avoid allocating\n // extra objects for things that are never updated. It also allow us to\n // reclaim the extra memory if needed.\n workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);\n workInProgress.elementType = current.elementType;\n workInProgress.type = current.type;\n workInProgress.stateNode = current.stateNode;\n\n {\n // DEV-only fields\n workInProgress._debugSource = current._debugSource;\n workInProgress._debugOwner = current._debugOwner;\n workInProgress._debugHookTypes = current._debugHookTypes;\n }\n\n workInProgress.alternate = current;\n current.alternate = workInProgress;\n } else {\n workInProgress.pendingProps = pendingProps; // Needed because Blocks store data on type.\n\n workInProgress.type = current.type; // We already have an alternate.\n // Reset the effect tag.\n\n workInProgress.flags = NoFlags; // The effects are no longer valid.\n\n workInProgress.subtreeFlags = NoFlags;\n workInProgress.deletions = null;\n\n {\n // We intentionally reset, rather than copy, actualDuration & actualStartTime.\n // This prevents time from endlessly accumulating in new commits.\n // This has the downside of resetting values for different priority renders,\n // But works for yielding (the common case) and should support resuming.\n workInProgress.actualDuration = 0;\n workInProgress.actualStartTime = -1;\n }\n } // Reset all effects except static ones.\n // Static effects are not specific to a render.\n\n\n workInProgress.flags = current.flags & StaticMask;\n workInProgress.childLanes = current.childLanes;\n workInProgress.lanes = current.lanes;\n workInProgress.child = current.child;\n workInProgress.memoizedProps = current.memoizedProps;\n workInProgress.memoizedState = current.memoizedState;\n workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so\n // it cannot be shared with the current fiber.\n\n var currentDependencies = current.dependencies;\n workInProgress.dependencies = currentDependencies === null ? null : {\n lanes: currentDependencies.lanes,\n firstContext: currentDependencies.firstContext\n }; // These will be overridden during the parent's reconciliation\n\n workInProgress.sibling = current.sibling;\n workInProgress.index = current.index;\n workInProgress.ref = current.ref;\n\n {\n workInProgress.selfBaseDuration = current.selfBaseDuration;\n workInProgress.treeBaseDuration = current.treeBaseDuration;\n }\n\n {\n workInProgress._debugNeedsRemount = current._debugNeedsRemount;\n\n switch (workInProgress.tag) {\n case IndeterminateComponent:\n case FunctionComponent:\n case SimpleMemoComponent:\n workInProgress.type = resolveFunctionForHotReloading(current.type);\n break;\n\n case ClassComponent:\n workInProgress.type = resolveClassForHotReloading(current.type);\n break;\n\n case ForwardRef:\n workInProgress.type = resolveForwardRefForHotReloading(current.type);\n break;\n }\n }\n\n return workInProgress;\n} // Used to reuse a Fiber for a second pass.\n\nfunction resetWorkInProgress(workInProgress, renderLanes) {\n // This resets the Fiber to what createFiber or createWorkInProgress would\n // have set the values to before during the first pass. Ideally this wouldn't\n // be necessary but unfortunately many code paths reads from the workInProgress\n // when they should be reading from current and writing to workInProgress.\n // We assume pendingProps, index, key, ref, return are still untouched to\n // avoid doing another reconciliation.\n // Reset the effect flags but keep any Placement tags, since that's something\n // that child fiber is setting, not the reconciliation.\n workInProgress.flags &= StaticMask | Placement; // The effects are no longer valid.\n\n var current = workInProgress.alternate;\n\n if (current === null) {\n // Reset to createFiber's initial values.\n workInProgress.childLanes = NoLanes;\n workInProgress.lanes = renderLanes;\n workInProgress.child = null;\n workInProgress.subtreeFlags = NoFlags;\n workInProgress.memoizedProps = null;\n workInProgress.memoizedState = null;\n workInProgress.updateQueue = null;\n workInProgress.dependencies = null;\n workInProgress.stateNode = null;\n\n {\n // Note: We don't reset the actualTime counts. It's useful to accumulate\n // actual time across multiple render passes.\n workInProgress.selfBaseDuration = 0;\n workInProgress.treeBaseDuration = 0;\n }\n } else {\n // Reset to the cloned values that createWorkInProgress would've.\n workInProgress.childLanes = current.childLanes;\n workInProgress.lanes = current.lanes;\n workInProgress.child = current.child;\n workInProgress.subtreeFlags = NoFlags;\n workInProgress.deletions = null;\n workInProgress.memoizedProps = current.memoizedProps;\n workInProgress.memoizedState = current.memoizedState;\n workInProgress.updateQueue = current.updateQueue; // Needed because Blocks store data on type.\n\n workInProgress.type = current.type; // Clone the dependencies object. This is mutated during the render phase, so\n // it cannot be shared with the current fiber.\n\n var currentDependencies = current.dependencies;\n workInProgress.dependencies = currentDependencies === null ? null : {\n lanes: currentDependencies.lanes,\n firstContext: currentDependencies.firstContext\n };\n\n {\n // Note: We don't reset the actualTime counts. It's useful to accumulate\n // actual time across multiple render passes.\n workInProgress.selfBaseDuration = current.selfBaseDuration;\n workInProgress.treeBaseDuration = current.treeBaseDuration;\n }\n }\n\n return workInProgress;\n}\nfunction createHostRootFiber(tag, isStrictMode, concurrentUpdatesByDefaultOverride) {\n var mode;\n\n if (tag === ConcurrentRoot) {\n mode = ConcurrentMode;\n\n if (isStrictMode === true) {\n mode |= StrictLegacyMode;\n\n {\n mode |= StrictEffectsMode;\n }\n }\n } else {\n mode = NoMode;\n }\n\n if ( isDevToolsPresent) {\n // Always collect profile timings when DevTools are present.\n // This enables DevTools to start capturing timing at any point–\n // Without some nodes in the tree having empty base times.\n mode |= ProfileMode;\n }\n\n return createFiber(HostRoot, null, null, mode);\n}\nfunction createFiberFromTypeAndProps(type, // React$ElementType\nkey, pendingProps, owner, mode, lanes) {\n var fiberTag = IndeterminateComponent; // The resolved type is set if we know what the final type will be. I.e. it's not lazy.\n\n var resolvedType = type;\n\n if (typeof type === 'function') {\n if (shouldConstruct$1(type)) {\n fiberTag = ClassComponent;\n\n {\n resolvedType = resolveClassForHotReloading(resolvedType);\n }\n } else {\n {\n resolvedType = resolveFunctionForHotReloading(resolvedType);\n }\n }\n } else if (typeof type === 'string') {\n fiberTag = HostComponent;\n } else {\n getTag: switch (type) {\n case REACT_FRAGMENT_TYPE:\n return createFiberFromFragment(pendingProps.children, mode, lanes, key);\n\n case REACT_STRICT_MODE_TYPE:\n fiberTag = Mode;\n mode |= StrictLegacyMode;\n\n if ( (mode & ConcurrentMode) !== NoMode) {\n // Strict effects should never run on legacy roots\n mode |= StrictEffectsMode;\n }\n\n break;\n\n case REACT_PROFILER_TYPE:\n return createFiberFromProfiler(pendingProps, mode, lanes, key);\n\n case REACT_SUSPENSE_TYPE:\n return createFiberFromSuspense(pendingProps, mode, lanes, key);\n\n case REACT_SUSPENSE_LIST_TYPE:\n return createFiberFromSuspenseList(pendingProps, mode, lanes, key);\n\n case REACT_OFFSCREEN_TYPE:\n return createFiberFromOffscreen(pendingProps, mode, lanes, key);\n\n case REACT_LEGACY_HIDDEN_TYPE:\n\n // eslint-disable-next-line no-fallthrough\n\n case REACT_SCOPE_TYPE:\n\n // eslint-disable-next-line no-fallthrough\n\n case REACT_CACHE_TYPE:\n\n // eslint-disable-next-line no-fallthrough\n\n case REACT_TRACING_MARKER_TYPE:\n\n // eslint-disable-next-line no-fallthrough\n\n case REACT_DEBUG_TRACING_MODE_TYPE:\n\n // eslint-disable-next-line no-fallthrough\n\n default:\n {\n if (typeof type === 'object' && type !== null) {\n switch (type.$$typeof) {\n case REACT_PROVIDER_TYPE:\n fiberTag = ContextProvider;\n break getTag;\n\n case REACT_CONTEXT_TYPE:\n // This is a consumer\n fiberTag = ContextConsumer;\n break getTag;\n\n case REACT_FORWARD_REF_TYPE:\n fiberTag = ForwardRef;\n\n {\n resolvedType = resolveForwardRefForHotReloading(resolvedType);\n }\n\n break getTag;\n\n case REACT_MEMO_TYPE:\n fiberTag = MemoComponent;\n break getTag;\n\n case REACT_LAZY_TYPE:\n fiberTag = LazyComponent;\n resolvedType = null;\n break getTag;\n }\n }\n\n var info = '';\n\n {\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and \" + 'named imports.';\n }\n\n var ownerName = owner ? getComponentNameFromFiber(owner) : null;\n\n if (ownerName) {\n info += '\\n\\nCheck the render method of `' + ownerName + '`.';\n }\n }\n\n throw new Error('Element type is invalid: expected a string (for built-in ' + 'components) or a class/function (for composite components) ' + (\"but got: \" + (type == null ? type : typeof type) + \".\" + info));\n }\n }\n }\n\n var fiber = createFiber(fiberTag, pendingProps, key, mode);\n fiber.elementType = type;\n fiber.type = resolvedType;\n fiber.lanes = lanes;\n\n {\n fiber._debugOwner = owner;\n }\n\n return fiber;\n}\nfunction createFiberFromElement(element, mode, lanes) {\n var owner = null;\n\n {\n owner = element._owner;\n }\n\n var type = element.type;\n var key = element.key;\n var pendingProps = element.props;\n var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes);\n\n {\n fiber._debugSource = element._source;\n fiber._debugOwner = element._owner;\n }\n\n return fiber;\n}\nfunction createFiberFromFragment(elements, mode, lanes, key) {\n var fiber = createFiber(Fragment, elements, key, mode);\n fiber.lanes = lanes;\n return fiber;\n}\n\nfunction createFiberFromProfiler(pendingProps, mode, lanes, key) {\n {\n if (typeof pendingProps.id !== 'string') {\n error('Profiler must specify an \"id\" of type `string` as a prop. Received the type `%s` instead.', typeof pendingProps.id);\n }\n }\n\n var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode);\n fiber.elementType = REACT_PROFILER_TYPE;\n fiber.lanes = lanes;\n\n {\n fiber.stateNode = {\n effectDuration: 0,\n passiveEffectDuration: 0\n };\n }\n\n return fiber;\n}\n\nfunction createFiberFromSuspense(pendingProps, mode, lanes, key) {\n var fiber = createFiber(SuspenseComponent, pendingProps, key, mode);\n fiber.elementType = REACT_SUSPENSE_TYPE;\n fiber.lanes = lanes;\n return fiber;\n}\nfunction createFiberFromSuspenseList(pendingProps, mode, lanes, key) {\n var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);\n fiber.elementType = REACT_SUSPENSE_LIST_TYPE;\n fiber.lanes = lanes;\n return fiber;\n}\nfunction createFiberFromOffscreen(pendingProps, mode, lanes, key) {\n var fiber = createFiber(OffscreenComponent, pendingProps, key, mode);\n fiber.elementType = REACT_OFFSCREEN_TYPE;\n fiber.lanes = lanes;\n var primaryChildInstance = {\n isHidden: false\n };\n fiber.stateNode = primaryChildInstance;\n return fiber;\n}\nfunction createFiberFromText(content, mode, lanes) {\n var fiber = createFiber(HostText, content, null, mode);\n fiber.lanes = lanes;\n return fiber;\n}\nfunction createFiberFromHostInstanceForDeletion() {\n var fiber = createFiber(HostComponent, null, null, NoMode);\n fiber.elementType = 'DELETED';\n return fiber;\n}\nfunction createFiberFromDehydratedFragment(dehydratedNode) {\n var fiber = createFiber(DehydratedFragment, null, null, NoMode);\n fiber.stateNode = dehydratedNode;\n return fiber;\n}\nfunction createFiberFromPortal(portal, mode, lanes) {\n var pendingProps = portal.children !== null ? portal.children : [];\n var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);\n fiber.lanes = lanes;\n fiber.stateNode = {\n containerInfo: portal.containerInfo,\n pendingChildren: null,\n // Used by persistent updates\n implementation: portal.implementation\n };\n return fiber;\n} // Used for stashing WIP properties to replay failed work in DEV.\n\nfunction assignFiberPropertiesInDEV(target, source) {\n if (target === null) {\n // This Fiber's initial properties will always be overwritten.\n // We only use a Fiber to ensure the same hidden class so DEV isn't slow.\n target = createFiber(IndeterminateComponent, null, null, NoMode);\n } // This is intentionally written as a list of all properties.\n // We tried to use Object.assign() instead but this is called in\n // the hottest path, and Object.assign() was too slow:\n // https://github.com/facebook/react/issues/12502\n // This code is DEV-only so size is not a concern.\n\n\n target.tag = source.tag;\n target.key = source.key;\n target.elementType = source.elementType;\n target.type = source.type;\n target.stateNode = source.stateNode;\n target.return = source.return;\n target.child = source.child;\n target.sibling = source.sibling;\n target.index = source.index;\n target.ref = source.ref;\n target.pendingProps = source.pendingProps;\n target.memoizedProps = source.memoizedProps;\n target.updateQueue = source.updateQueue;\n target.memoizedState = source.memoizedState;\n target.dependencies = source.dependencies;\n target.mode = source.mode;\n target.flags = source.flags;\n target.subtreeFlags = source.subtreeFlags;\n target.deletions = source.deletions;\n target.lanes = source.lanes;\n target.childLanes = source.childLanes;\n target.alternate = source.alternate;\n\n {\n target.actualDuration = source.actualDuration;\n target.actualStartTime = source.actualStartTime;\n target.selfBaseDuration = source.selfBaseDuration;\n target.treeBaseDuration = source.treeBaseDuration;\n }\n\n target._debugSource = source._debugSource;\n target._debugOwner = source._debugOwner;\n target._debugNeedsRemount = source._debugNeedsRemount;\n target._debugHookTypes = source._debugHookTypes;\n return target;\n}\n\nfunction FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError) {\n this.tag = tag;\n this.containerInfo = containerInfo;\n this.pendingChildren = null;\n this.current = null;\n this.pingCache = null;\n this.finishedWork = null;\n this.timeoutHandle = noTimeout;\n this.context = null;\n this.pendingContext = null;\n this.callbackNode = null;\n this.callbackPriority = NoLane;\n this.eventTimes = createLaneMap(NoLanes);\n this.expirationTimes = createLaneMap(NoTimestamp);\n this.pendingLanes = NoLanes;\n this.suspendedLanes = NoLanes;\n this.pingedLanes = NoLanes;\n this.expiredLanes = NoLanes;\n this.mutableReadLanes = NoLanes;\n this.finishedLanes = NoLanes;\n this.entangledLanes = NoLanes;\n this.entanglements = createLaneMap(NoLanes);\n this.identifierPrefix = identifierPrefix;\n this.onRecoverableError = onRecoverableError;\n\n {\n this.mutableSourceEagerHydrationData = null;\n }\n\n {\n this.effectDuration = 0;\n this.passiveEffectDuration = 0;\n }\n\n {\n this.memoizedUpdaters = new Set();\n var pendingUpdatersLaneMap = this.pendingUpdatersLaneMap = [];\n\n for (var _i = 0; _i < TotalLanes; _i++) {\n pendingUpdatersLaneMap.push(new Set());\n }\n }\n\n {\n switch (tag) {\n case ConcurrentRoot:\n this._debugRootType = hydrate ? 'hydrateRoot()' : 'createRoot()';\n break;\n\n case LegacyRoot:\n this._debugRootType = hydrate ? 'hydrate()' : 'render()';\n break;\n }\n }\n}\n\nfunction createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, // TODO: We have several of these arguments that are conceptually part of the\n// host config, but because they are passed in at runtime, we have to thread\n// them through the root constructor. Perhaps we should put them all into a\n// single type, like a DynamicHostConfig that is defined by the renderer.\nidentifierPrefix, onRecoverableError, transitionCallbacks) {\n var root = new FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError);\n // stateNode is any.\n\n\n var uninitializedFiber = createHostRootFiber(tag, isStrictMode);\n root.current = uninitializedFiber;\n uninitializedFiber.stateNode = root;\n\n {\n var _initialState = {\n element: initialChildren,\n isDehydrated: hydrate,\n cache: null,\n // not enabled yet\n transitions: null,\n pendingSuspenseBoundaries: null\n };\n uninitializedFiber.memoizedState = _initialState;\n }\n\n initializeUpdateQueue(uninitializedFiber);\n return root;\n}\n\nvar ReactVersion = '18.3.1';\n\nfunction createPortal(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.\nimplementation) {\n var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;\n\n {\n checkKeyStringCoercion(key);\n }\n\n return {\n // This tag allow us to uniquely identify this as a React Portal\n $$typeof: REACT_PORTAL_TYPE,\n key: key == null ? null : '' + key,\n children: children,\n containerInfo: containerInfo,\n implementation: implementation\n };\n}\n\nvar didWarnAboutNestedUpdates;\nvar didWarnAboutFindNodeInStrictMode;\n\n{\n didWarnAboutNestedUpdates = false;\n didWarnAboutFindNodeInStrictMode = {};\n}\n\nfunction getContextForSubtree(parentComponent) {\n if (!parentComponent) {\n return emptyContextObject;\n }\n\n var fiber = get(parentComponent);\n var parentContext = findCurrentUnmaskedContext(fiber);\n\n if (fiber.tag === ClassComponent) {\n var Component = fiber.type;\n\n if (isContextProvider(Component)) {\n return processChildContext(fiber, Component, parentContext);\n }\n }\n\n return parentContext;\n}\n\nfunction findHostInstanceWithWarning(component, methodName) {\n {\n var fiber = get(component);\n\n if (fiber === undefined) {\n if (typeof component.render === 'function') {\n throw new Error('Unable to find node on an unmounted component.');\n } else {\n var keys = Object.keys(component).join(',');\n throw new Error(\"Argument appears to not be a ReactComponent. Keys: \" + keys);\n }\n }\n\n var hostFiber = findCurrentHostFiber(fiber);\n\n if (hostFiber === null) {\n return null;\n }\n\n if (hostFiber.mode & StrictLegacyMode) {\n var componentName = getComponentNameFromFiber(fiber) || 'Component';\n\n if (!didWarnAboutFindNodeInStrictMode[componentName]) {\n didWarnAboutFindNodeInStrictMode[componentName] = true;\n var previousFiber = current;\n\n try {\n setCurrentFiber(hostFiber);\n\n if (fiber.mode & StrictLegacyMode) {\n error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which is inside StrictMode. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-find-node', methodName, methodName, componentName);\n } else {\n error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which renders StrictMode children. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-find-node', methodName, methodName, componentName);\n }\n } finally {\n // Ideally this should reset to previous but this shouldn't be called in\n // render and there's another warning for that anyway.\n if (previousFiber) {\n setCurrentFiber(previousFiber);\n } else {\n resetCurrentFiber();\n }\n }\n }\n }\n\n return hostFiber.stateNode;\n }\n}\n\nfunction createContainer(containerInfo, tag, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError, transitionCallbacks) {\n var hydrate = false;\n var initialChildren = null;\n return createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError);\n}\nfunction createHydrationContainer(initialChildren, // TODO: Remove `callback` when we delete legacy mode.\ncallback, containerInfo, tag, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError, transitionCallbacks) {\n var hydrate = true;\n var root = createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError); // TODO: Move this to FiberRoot constructor\n\n root.context = getContextForSubtree(null); // Schedule the initial render. In a hydration root, this is different from\n // a regular update because the initial render must match was was rendered\n // on the server.\n // NOTE: This update intentionally doesn't have a payload. We're only using\n // the update to schedule work on the root fiber (and, for legacy roots, to\n // enqueue the callback if one is provided).\n\n var current = root.current;\n var eventTime = requestEventTime();\n var lane = requestUpdateLane(current);\n var update = createUpdate(eventTime, lane);\n update.callback = callback !== undefined && callback !== null ? callback : null;\n enqueueUpdate(current, update, lane);\n scheduleInitialHydrationOnRoot(root, lane, eventTime);\n return root;\n}\nfunction updateContainer(element, container, parentComponent, callback) {\n {\n onScheduleRoot(container, element);\n }\n\n var current$1 = container.current;\n var eventTime = requestEventTime();\n var lane = requestUpdateLane(current$1);\n\n {\n markRenderScheduled(lane);\n }\n\n var context = getContextForSubtree(parentComponent);\n\n if (container.context === null) {\n container.context = context;\n } else {\n container.pendingContext = context;\n }\n\n {\n if (isRendering && current !== null && !didWarnAboutNestedUpdates) {\n didWarnAboutNestedUpdates = true;\n\n error('Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\\n\\n' + 'Check the render method of %s.', getComponentNameFromFiber(current) || 'Unknown');\n }\n }\n\n var update = createUpdate(eventTime, lane); // Caution: React DevTools currently depends on this property\n // being called \"element\".\n\n update.payload = {\n element: element\n };\n callback = callback === undefined ? null : callback;\n\n if (callback !== null) {\n {\n if (typeof callback !== 'function') {\n error('render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);\n }\n }\n\n update.callback = callback;\n }\n\n var root = enqueueUpdate(current$1, update, lane);\n\n if (root !== null) {\n scheduleUpdateOnFiber(root, current$1, lane, eventTime);\n entangleTransitions(root, current$1, lane);\n }\n\n return lane;\n}\nfunction getPublicRootInstance(container) {\n var containerFiber = container.current;\n\n if (!containerFiber.child) {\n return null;\n }\n\n switch (containerFiber.child.tag) {\n case HostComponent:\n return getPublicInstance(containerFiber.child.stateNode);\n\n default:\n return containerFiber.child.stateNode;\n }\n}\nfunction attemptSynchronousHydration$1(fiber) {\n switch (fiber.tag) {\n case HostRoot:\n {\n var root = fiber.stateNode;\n\n if (isRootDehydrated(root)) {\n // Flush the first scheduled \"update\".\n var lanes = getHighestPriorityPendingLanes(root);\n flushRoot(root, lanes);\n }\n\n break;\n }\n\n case SuspenseComponent:\n {\n flushSync(function () {\n var root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n if (root !== null) {\n var eventTime = requestEventTime();\n scheduleUpdateOnFiber(root, fiber, SyncLane, eventTime);\n }\n }); // If we're still blocked after this, we need to increase\n // the priority of any promises resolving within this\n // boundary so that they next attempt also has higher pri.\n\n var retryLane = SyncLane;\n markRetryLaneIfNotHydrated(fiber, retryLane);\n break;\n }\n }\n}\n\nfunction markRetryLaneImpl(fiber, retryLane) {\n var suspenseState = fiber.memoizedState;\n\n if (suspenseState !== null && suspenseState.dehydrated !== null) {\n suspenseState.retryLane = higherPriorityLane(suspenseState.retryLane, retryLane);\n }\n} // Increases the priority of thenables when they resolve within this boundary.\n\n\nfunction markRetryLaneIfNotHydrated(fiber, retryLane) {\n markRetryLaneImpl(fiber, retryLane);\n var alternate = fiber.alternate;\n\n if (alternate) {\n markRetryLaneImpl(alternate, retryLane);\n }\n}\nfunction attemptContinuousHydration$1(fiber) {\n if (fiber.tag !== SuspenseComponent) {\n // We ignore HostRoots here because we can't increase\n // their priority and they should not suspend on I/O,\n // since you have to wrap anything that might suspend in\n // Suspense.\n return;\n }\n\n var lane = SelectiveHydrationLane;\n var root = enqueueConcurrentRenderForLane(fiber, lane);\n\n if (root !== null) {\n var eventTime = requestEventTime();\n scheduleUpdateOnFiber(root, fiber, lane, eventTime);\n }\n\n markRetryLaneIfNotHydrated(fiber, lane);\n}\nfunction attemptHydrationAtCurrentPriority$1(fiber) {\n if (fiber.tag !== SuspenseComponent) {\n // We ignore HostRoots here because we can't increase\n // their priority other than synchronously flush it.\n return;\n }\n\n var lane = requestUpdateLane(fiber);\n var root = enqueueConcurrentRenderForLane(fiber, lane);\n\n if (root !== null) {\n var eventTime = requestEventTime();\n scheduleUpdateOnFiber(root, fiber, lane, eventTime);\n }\n\n markRetryLaneIfNotHydrated(fiber, lane);\n}\nfunction findHostInstanceWithNoPortals(fiber) {\n var hostFiber = findCurrentHostFiberWithNoPortals(fiber);\n\n if (hostFiber === null) {\n return null;\n }\n\n return hostFiber.stateNode;\n}\n\nvar shouldErrorImpl = function (fiber) {\n return null;\n};\n\nfunction shouldError(fiber) {\n return shouldErrorImpl(fiber);\n}\n\nvar shouldSuspendImpl = function (fiber) {\n return false;\n};\n\nfunction shouldSuspend(fiber) {\n return shouldSuspendImpl(fiber);\n}\nvar overrideHookState = null;\nvar overrideHookStateDeletePath = null;\nvar overrideHookStateRenamePath = null;\nvar overrideProps = null;\nvar overridePropsDeletePath = null;\nvar overridePropsRenamePath = null;\nvar scheduleUpdate = null;\nvar setErrorHandler = null;\nvar setSuspenseHandler = null;\n\n{\n var copyWithDeleteImpl = function (obj, path, index) {\n var key = path[index];\n var updated = isArray(obj) ? obj.slice() : assign({}, obj);\n\n if (index + 1 === path.length) {\n if (isArray(updated)) {\n updated.splice(key, 1);\n } else {\n delete updated[key];\n }\n\n return updated;\n } // $FlowFixMe number or string is fine here\n\n\n updated[key] = copyWithDeleteImpl(obj[key], path, index + 1);\n return updated;\n };\n\n var copyWithDelete = function (obj, path) {\n return copyWithDeleteImpl(obj, path, 0);\n };\n\n var copyWithRenameImpl = function (obj, oldPath, newPath, index) {\n var oldKey = oldPath[index];\n var updated = isArray(obj) ? obj.slice() : assign({}, obj);\n\n if (index + 1 === oldPath.length) {\n var newKey = newPath[index]; // $FlowFixMe number or string is fine here\n\n updated[newKey] = updated[oldKey];\n\n if (isArray(updated)) {\n updated.splice(oldKey, 1);\n } else {\n delete updated[oldKey];\n }\n } else {\n // $FlowFixMe number or string is fine here\n updated[oldKey] = copyWithRenameImpl( // $FlowFixMe number or string is fine here\n obj[oldKey], oldPath, newPath, index + 1);\n }\n\n return updated;\n };\n\n var copyWithRename = function (obj, oldPath, newPath) {\n if (oldPath.length !== newPath.length) {\n warn('copyWithRename() expects paths of the same length');\n\n return;\n } else {\n for (var i = 0; i < newPath.length - 1; i++) {\n if (oldPath[i] !== newPath[i]) {\n warn('copyWithRename() expects paths to be the same except for the deepest key');\n\n return;\n }\n }\n }\n\n return copyWithRenameImpl(obj, oldPath, newPath, 0);\n };\n\n var copyWithSetImpl = function (obj, path, index, value) {\n if (index >= path.length) {\n return value;\n }\n\n var key = path[index];\n var updated = isArray(obj) ? obj.slice() : assign({}, obj); // $FlowFixMe number or string is fine here\n\n updated[key] = copyWithSetImpl(obj[key], path, index + 1, value);\n return updated;\n };\n\n var copyWithSet = function (obj, path, value) {\n return copyWithSetImpl(obj, path, 0, value);\n };\n\n var findHook = function (fiber, id) {\n // For now, the \"id\" of stateful hooks is just the stateful hook index.\n // This may change in the future with e.g. nested hooks.\n var currentHook = fiber.memoizedState;\n\n while (currentHook !== null && id > 0) {\n currentHook = currentHook.next;\n id--;\n }\n\n return currentHook;\n }; // Support DevTools editable values for useState and useReducer.\n\n\n overrideHookState = function (fiber, id, path, value) {\n var hook = findHook(fiber, id);\n\n if (hook !== null) {\n var newState = copyWithSet(hook.memoizedState, path, value);\n hook.memoizedState = newState;\n hook.baseState = newState; // We aren't actually adding an update to the queue,\n // because there is no update we can add for useReducer hooks that won't trigger an error.\n // (There's no appropriate action type for DevTools overrides.)\n // As a result though, React will see the scheduled update as a noop and bailout.\n // Shallow cloning props works as a workaround for now to bypass the bailout check.\n\n fiber.memoizedProps = assign({}, fiber.memoizedProps);\n var root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n if (root !== null) {\n scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);\n }\n }\n };\n\n overrideHookStateDeletePath = function (fiber, id, path) {\n var hook = findHook(fiber, id);\n\n if (hook !== null) {\n var newState = copyWithDelete(hook.memoizedState, path);\n hook.memoizedState = newState;\n hook.baseState = newState; // We aren't actually adding an update to the queue,\n // because there is no update we can add for useReducer hooks that won't trigger an error.\n // (There's no appropriate action type for DevTools overrides.)\n // As a result though, React will see the scheduled update as a noop and bailout.\n // Shallow cloning props works as a workaround for now to bypass the bailout check.\n\n fiber.memoizedProps = assign({}, fiber.memoizedProps);\n var root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n if (root !== null) {\n scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);\n }\n }\n };\n\n overrideHookStateRenamePath = function (fiber, id, oldPath, newPath) {\n var hook = findHook(fiber, id);\n\n if (hook !== null) {\n var newState = copyWithRename(hook.memoizedState, oldPath, newPath);\n hook.memoizedState = newState;\n hook.baseState = newState; // We aren't actually adding an update to the queue,\n // because there is no update we can add for useReducer hooks that won't trigger an error.\n // (There's no appropriate action type for DevTools overrides.)\n // As a result though, React will see the scheduled update as a noop and bailout.\n // Shallow cloning props works as a workaround for now to bypass the bailout check.\n\n fiber.memoizedProps = assign({}, fiber.memoizedProps);\n var root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n if (root !== null) {\n scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);\n }\n }\n }; // Support DevTools props for function components, forwardRef, memo, host components, etc.\n\n\n overrideProps = function (fiber, path, value) {\n fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value);\n\n if (fiber.alternate) {\n fiber.alternate.pendingProps = fiber.pendingProps;\n }\n\n var root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n if (root !== null) {\n scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);\n }\n };\n\n overridePropsDeletePath = function (fiber, path) {\n fiber.pendingProps = copyWithDelete(fiber.memoizedProps, path);\n\n if (fiber.alternate) {\n fiber.alternate.pendingProps = fiber.pendingProps;\n }\n\n var root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n if (root !== null) {\n scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);\n }\n };\n\n overridePropsRenamePath = function (fiber, oldPath, newPath) {\n fiber.pendingProps = copyWithRename(fiber.memoizedProps, oldPath, newPath);\n\n if (fiber.alternate) {\n fiber.alternate.pendingProps = fiber.pendingProps;\n }\n\n var root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n if (root !== null) {\n scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);\n }\n };\n\n scheduleUpdate = function (fiber) {\n var root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n if (root !== null) {\n scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);\n }\n };\n\n setErrorHandler = function (newShouldErrorImpl) {\n shouldErrorImpl = newShouldErrorImpl;\n };\n\n setSuspenseHandler = function (newShouldSuspendImpl) {\n shouldSuspendImpl = newShouldSuspendImpl;\n };\n}\n\nfunction findHostInstanceByFiber(fiber) {\n var hostFiber = findCurrentHostFiber(fiber);\n\n if (hostFiber === null) {\n return null;\n }\n\n return hostFiber.stateNode;\n}\n\nfunction emptyFindFiberByHostInstance(instance) {\n return null;\n}\n\nfunction getCurrentFiberForDevTools() {\n return current;\n}\n\nfunction injectIntoDevTools(devToolsConfig) {\n var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;\n var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\n return injectInternals({\n bundleType: devToolsConfig.bundleType,\n version: devToolsConfig.version,\n rendererPackageName: devToolsConfig.rendererPackageName,\n rendererConfig: devToolsConfig.rendererConfig,\n overrideHookState: overrideHookState,\n overrideHookStateDeletePath: overrideHookStateDeletePath,\n overrideHookStateRenamePath: overrideHookStateRenamePath,\n overrideProps: overrideProps,\n overridePropsDeletePath: overridePropsDeletePath,\n overridePropsRenamePath: overridePropsRenamePath,\n setErrorHandler: setErrorHandler,\n setSuspenseHandler: setSuspenseHandler,\n scheduleUpdate: scheduleUpdate,\n currentDispatcherRef: ReactCurrentDispatcher,\n findHostInstanceByFiber: findHostInstanceByFiber,\n findFiberByHostInstance: findFiberByHostInstance || emptyFindFiberByHostInstance,\n // React Refresh\n findHostInstancesForRefresh: findHostInstancesForRefresh ,\n scheduleRefresh: scheduleRefresh ,\n scheduleRoot: scheduleRoot ,\n setRefreshHandler: setRefreshHandler ,\n // Enables DevTools to append owner stacks to error messages in DEV mode.\n getCurrentFiber: getCurrentFiberForDevTools ,\n // Enables DevTools to detect reconciler version rather than renderer version\n // which may not match for third party renderers.\n reconcilerVersion: ReactVersion\n });\n}\n\n/* global reportError */\n\nvar defaultOnRecoverableError = typeof reportError === 'function' ? // In modern browsers, reportError will dispatch an error event,\n// emulating an uncaught JavaScript error.\nreportError : function (error) {\n // In older browsers and test environments, fallback to console.error.\n // eslint-disable-next-line react-internal/no-production-logging\n console['error'](error);\n};\n\nfunction ReactDOMRoot(internalRoot) {\n this._internalRoot = internalRoot;\n}\n\nReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = function (children) {\n var root = this._internalRoot;\n\n if (root === null) {\n throw new Error('Cannot update an unmounted root.');\n }\n\n {\n if (typeof arguments[1] === 'function') {\n error('render(...): does not support the second callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');\n } else if (isValidContainer(arguments[1])) {\n error('You passed a container to the second argument of root.render(...). ' + \"You don't need to pass it again since you already passed it to create the root.\");\n } else if (typeof arguments[1] !== 'undefined') {\n error('You passed a second argument to root.render(...) but it only accepts ' + 'one argument.');\n }\n\n var container = root.containerInfo;\n\n if (container.nodeType !== COMMENT_NODE) {\n var hostInstance = findHostInstanceWithNoPortals(root.current);\n\n if (hostInstance) {\n if (hostInstance.parentNode !== container) {\n error('render(...): It looks like the React-rendered content of the ' + 'root container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + \"root.unmount() to empty a root's container.\");\n }\n }\n }\n }\n\n updateContainer(children, root, null, null);\n};\n\nReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = function () {\n {\n if (typeof arguments[0] === 'function') {\n error('unmount(...): does not support a callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');\n }\n }\n\n var root = this._internalRoot;\n\n if (root !== null) {\n this._internalRoot = null;\n var container = root.containerInfo;\n\n {\n if (isAlreadyRendering()) {\n error('Attempted to synchronously unmount a root while React was already ' + 'rendering. React cannot finish unmounting the root until the ' + 'current render has completed, which may lead to a race condition.');\n }\n }\n\n flushSync(function () {\n updateContainer(null, root, null, null);\n });\n unmarkContainerAsRoot(container);\n }\n};\n\nfunction createRoot(container, options) {\n if (!isValidContainer(container)) {\n throw new Error('createRoot(...): Target container is not a DOM element.');\n }\n\n warnIfReactDOMContainerInDEV(container);\n var isStrictMode = false;\n var concurrentUpdatesByDefaultOverride = false;\n var identifierPrefix = '';\n var onRecoverableError = defaultOnRecoverableError;\n var transitionCallbacks = null;\n\n if (options !== null && options !== undefined) {\n {\n if (options.hydrate) {\n warn('hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.');\n } else {\n if (typeof options === 'object' && options !== null && options.$$typeof === REACT_ELEMENT_TYPE) {\n error('You passed a JSX element to createRoot. You probably meant to ' + 'call root.render instead. ' + 'Example usage:\\n\\n' + ' let root = createRoot(domContainer);\\n' + ' root.render(<App />);');\n }\n }\n }\n\n if (options.unstable_strictMode === true) {\n isStrictMode = true;\n }\n\n if (options.identifierPrefix !== undefined) {\n identifierPrefix = options.identifierPrefix;\n }\n\n if (options.onRecoverableError !== undefined) {\n onRecoverableError = options.onRecoverableError;\n }\n\n if (options.transitionCallbacks !== undefined) {\n transitionCallbacks = options.transitionCallbacks;\n }\n }\n\n var root = createContainer(container, ConcurrentRoot, null, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError);\n markContainerAsRoot(root.current, container);\n var rootContainerElement = container.nodeType === COMMENT_NODE ? container.parentNode : container;\n listenToAllSupportedEvents(rootContainerElement);\n return new ReactDOMRoot(root);\n}\n\nfunction ReactDOMHydrationRoot(internalRoot) {\n this._internalRoot = internalRoot;\n}\n\nfunction scheduleHydration(target) {\n if (target) {\n queueExplicitHydrationTarget(target);\n }\n}\n\nReactDOMHydrationRoot.prototype.unstable_scheduleHydration = scheduleHydration;\nfunction hydrateRoot(container, initialChildren, options) {\n if (!isValidContainer(container)) {\n throw new Error('hydrateRoot(...): Target container is not a DOM element.');\n }\n\n warnIfReactDOMContainerInDEV(container);\n\n {\n if (initialChildren === undefined) {\n error('Must provide initial children as second argument to hydrateRoot. ' + 'Example usage: hydrateRoot(domContainer, <App />)');\n }\n } // For now we reuse the whole bag of options since they contain\n // the hydration callbacks.\n\n\n var hydrationCallbacks = options != null ? options : null; // TODO: Delete this option\n\n var mutableSources = options != null && options.hydratedSources || null;\n var isStrictMode = false;\n var concurrentUpdatesByDefaultOverride = false;\n var identifierPrefix = '';\n var onRecoverableError = defaultOnRecoverableError;\n\n if (options !== null && options !== undefined) {\n if (options.unstable_strictMode === true) {\n isStrictMode = true;\n }\n\n if (options.identifierPrefix !== undefined) {\n identifierPrefix = options.identifierPrefix;\n }\n\n if (options.onRecoverableError !== undefined) {\n onRecoverableError = options.onRecoverableError;\n }\n }\n\n var root = createHydrationContainer(initialChildren, null, container, ConcurrentRoot, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError);\n markContainerAsRoot(root.current, container); // This can't be a comment node since hydration doesn't work on comment nodes anyway.\n\n listenToAllSupportedEvents(container);\n\n if (mutableSources) {\n for (var i = 0; i < mutableSources.length; i++) {\n var mutableSource = mutableSources[i];\n registerMutableSourceForHydration(root, mutableSource);\n }\n }\n\n return new ReactDOMHydrationRoot(root);\n}\nfunction isValidContainer(node) {\n return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || !disableCommentsAsDOMContainers ));\n} // TODO: Remove this function which also includes comment nodes.\n// We only use it in places that are currently more relaxed.\n\nfunction isValidContainerLegacy(node) {\n return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === ' react-mount-point-unstable '));\n}\n\nfunction warnIfReactDOMContainerInDEV(container) {\n {\n if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === 'BODY') {\n error('createRoot(): Creating roots directly with document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try using a container element created ' + 'for your app.');\n }\n\n if (isContainerMarkedAsRoot(container)) {\n if (container._reactRootContainer) {\n error('You are calling ReactDOMClient.createRoot() on a container that was previously ' + 'passed to ReactDOM.render(). This is not supported.');\n } else {\n error('You are calling ReactDOMClient.createRoot() on a container that ' + 'has already been passed to createRoot() before. Instead, call ' + 'root.render() on the existing root instead if you want to update it.');\n }\n }\n }\n}\n\nvar ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;\nvar topLevelUpdateWarnings;\n\n{\n topLevelUpdateWarnings = function (container) {\n if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {\n var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer.current);\n\n if (hostInstance) {\n if (hostInstance.parentNode !== container) {\n error('render(...): It looks like the React-rendered content of this ' + 'container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + 'ReactDOM.unmountComponentAtNode to empty a container.');\n }\n }\n }\n\n var isRootRenderedBySomeReact = !!container._reactRootContainer;\n var rootEl = getReactRootElementInContainer(container);\n var hasNonRootReactChild = !!(rootEl && getInstanceFromNode(rootEl));\n\n if (hasNonRootReactChild && !isRootRenderedBySomeReact) {\n error('render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.');\n }\n\n if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === 'BODY') {\n error('render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.');\n }\n };\n}\n\nfunction getReactRootElementInContainer(container) {\n if (!container) {\n return null;\n }\n\n if (container.nodeType === DOCUMENT_NODE) {\n return container.documentElement;\n } else {\n return container.firstChild;\n }\n}\n\nfunction noopOnRecoverableError() {// This isn't reachable because onRecoverableError isn't called in the\n // legacy API.\n}\n\nfunction legacyCreateRootFromDOMContainer(container, initialChildren, parentComponent, callback, isHydrationContainer) {\n if (isHydrationContainer) {\n if (typeof callback === 'function') {\n var originalCallback = callback;\n\n callback = function () {\n var instance = getPublicRootInstance(root);\n originalCallback.call(instance);\n };\n }\n\n var root = createHydrationContainer(initialChildren, callback, container, LegacyRoot, null, // hydrationCallbacks\n false, // isStrictMode\n false, // concurrentUpdatesByDefaultOverride,\n '', // identifierPrefix\n noopOnRecoverableError);\n container._reactRootContainer = root;\n markContainerAsRoot(root.current, container);\n var rootContainerElement = container.nodeType === COMMENT_NODE ? container.parentNode : container;\n listenToAllSupportedEvents(rootContainerElement);\n flushSync();\n return root;\n } else {\n // First clear any existing content.\n var rootSibling;\n\n while (rootSibling = container.lastChild) {\n container.removeChild(rootSibling);\n }\n\n if (typeof callback === 'function') {\n var _originalCallback = callback;\n\n callback = function () {\n var instance = getPublicRootInstance(_root);\n\n _originalCallback.call(instance);\n };\n }\n\n var _root = createContainer(container, LegacyRoot, null, // hydrationCallbacks\n false, // isStrictMode\n false, // concurrentUpdatesByDefaultOverride,\n '', // identifierPrefix\n noopOnRecoverableError);\n\n container._reactRootContainer = _root;\n markContainerAsRoot(_root.current, container);\n\n var _rootContainerElement = container.nodeType === COMMENT_NODE ? container.parentNode : container;\n\n listenToAllSupportedEvents(_rootContainerElement); // Initial mount should not be batched.\n\n flushSync(function () {\n updateContainer(initialChildren, _root, parentComponent, callback);\n });\n return _root;\n }\n}\n\nfunction warnOnInvalidCallback$1(callback, callerName) {\n {\n if (callback !== null && typeof callback !== 'function') {\n error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);\n }\n }\n}\n\nfunction legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {\n {\n topLevelUpdateWarnings(container);\n warnOnInvalidCallback$1(callback === undefined ? null : callback, 'render');\n }\n\n var maybeRoot = container._reactRootContainer;\n var root;\n\n if (!maybeRoot) {\n // Initial mount\n root = legacyCreateRootFromDOMContainer(container, children, parentComponent, callback, forceHydrate);\n } else {\n root = maybeRoot;\n\n if (typeof callback === 'function') {\n var originalCallback = callback;\n\n callback = function () {\n var instance = getPublicRootInstance(root);\n originalCallback.call(instance);\n };\n } // Update\n\n\n updateContainer(children, root, parentComponent, callback);\n }\n\n return getPublicRootInstance(root);\n}\n\nvar didWarnAboutFindDOMNode = false;\nfunction findDOMNode(componentOrElement) {\n {\n if (!didWarnAboutFindDOMNode) {\n didWarnAboutFindDOMNode = true;\n\n error('findDOMNode is deprecated and will be removed in the next major ' + 'release. Instead, add a ref directly to the element you want ' + 'to reference. Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-find-node');\n }\n\n var owner = ReactCurrentOwner$3.current;\n\n if (owner !== null && owner.stateNode !== null) {\n var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;\n\n if (!warnedAboutRefsInRender) {\n error('%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentNameFromType(owner.type) || 'A component');\n }\n\n owner.stateNode._warnedAboutRefsInRender = true;\n }\n }\n\n if (componentOrElement == null) {\n return null;\n }\n\n if (componentOrElement.nodeType === ELEMENT_NODE) {\n return componentOrElement;\n }\n\n {\n return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');\n }\n}\nfunction hydrate(element, container, callback) {\n {\n error('ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot ' + 'instead. Until you switch to the new API, your app will behave as ' + \"if it's running React 17. Learn \" + 'more: https://reactjs.org/link/switch-to-createroot');\n }\n\n if (!isValidContainerLegacy(container)) {\n throw new Error('Target container is not a DOM element.');\n }\n\n {\n var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;\n\n if (isModernRoot) {\n error('You are calling ReactDOM.hydrate() on a container that was previously ' + 'passed to ReactDOMClient.createRoot(). This is not supported. ' + 'Did you mean to call hydrateRoot(container, element)?');\n }\n } // TODO: throw or warn if we couldn't hydrate?\n\n\n return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);\n}\nfunction render(element, container, callback) {\n {\n error('ReactDOM.render is no longer supported in React 18. Use createRoot ' + 'instead. Until you switch to the new API, your app will behave as ' + \"if it's running React 17. Learn \" + 'more: https://reactjs.org/link/switch-to-createroot');\n }\n\n if (!isValidContainerLegacy(container)) {\n throw new Error('Target container is not a DOM element.');\n }\n\n {\n var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;\n\n if (isModernRoot) {\n error('You are calling ReactDOM.render() on a container that was previously ' + 'passed to ReactDOMClient.createRoot(). This is not supported. ' + 'Did you mean to call root.render(element)?');\n }\n }\n\n return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);\n}\nfunction unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {\n {\n error('ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported ' + 'in React 18. Consider using a portal instead. Until you switch to ' + \"the createRoot API, your app will behave as if it's running React \" + '17. Learn more: https://reactjs.org/link/switch-to-createroot');\n }\n\n if (!isValidContainerLegacy(containerNode)) {\n throw new Error('Target container is not a DOM element.');\n }\n\n if (parentComponent == null || !has(parentComponent)) {\n throw new Error('parentComponent must be a valid React Component');\n }\n\n return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);\n}\nvar didWarnAboutUnmountComponentAtNode = false;\nfunction unmountComponentAtNode(container) {\n {\n if (!didWarnAboutUnmountComponentAtNode) {\n didWarnAboutUnmountComponentAtNode = true;\n\n error('unmountComponentAtNode is deprecated and will be removed in the ' + 'next major release. Switch to the createRoot API. Learn ' + 'more: https://reactjs.org/link/switch-to-createroot');\n }\n }\n\n if (!isValidContainerLegacy(container)) {\n throw new Error('unmountComponentAtNode(...): Target container is not a DOM element.');\n }\n\n {\n var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;\n\n if (isModernRoot) {\n error('You are calling ReactDOM.unmountComponentAtNode() on a container that was previously ' + 'passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?');\n }\n }\n\n if (container._reactRootContainer) {\n {\n var rootEl = getReactRootElementInContainer(container);\n var renderedByDifferentReact = rootEl && !getInstanceFromNode(rootEl);\n\n if (renderedByDifferentReact) {\n error(\"unmountComponentAtNode(): The node you're attempting to unmount \" + 'was rendered by another copy of React.');\n }\n } // Unmount should not be batched.\n\n\n flushSync(function () {\n legacyRenderSubtreeIntoContainer(null, null, container, false, function () {\n // $FlowFixMe This should probably use `delete container._reactRootContainer`\n container._reactRootContainer = null;\n unmarkContainerAsRoot(container);\n });\n }); // If you call unmountComponentAtNode twice in quick succession, you'll\n // get `true` twice. That's probably fine?\n\n return true;\n } else {\n {\n var _rootEl = getReactRootElementInContainer(container);\n\n var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode(_rootEl)); // Check if the container itself is a React root node.\n\n var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainerLegacy(container.parentNode) && !!container.parentNode._reactRootContainer;\n\n if (hasNonRootReactChild) {\n error(\"unmountComponentAtNode(): The node you're attempting to unmount \" + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.');\n }\n }\n\n return false;\n }\n}\n\nsetAttemptSynchronousHydration(attemptSynchronousHydration$1);\nsetAttemptContinuousHydration(attemptContinuousHydration$1);\nsetAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority$1);\nsetGetCurrentUpdatePriority(getCurrentUpdatePriority);\nsetAttemptHydrationAtPriority(runWithPriority);\n\n{\n if (typeof Map !== 'function' || // $FlowIssue Flow incorrectly thinks Map has no prototype\n Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' || // $FlowIssue Flow incorrectly thinks Set has no prototype\n Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {\n error('React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://reactjs.org/link/react-polyfills');\n }\n}\n\nsetRestoreImplementation(restoreControlledState$3);\nsetBatchingImplementation(batchedUpdates$1, discreteUpdates, flushSync);\n\nfunction createPortal$1(children, container) {\n var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n\n if (!isValidContainer(container)) {\n throw new Error('Target container is not a DOM element.');\n } // TODO: pass ReactDOM portal implementation as third argument\n // $FlowFixMe The Flow type is opaque but there's no way to actually create it.\n\n\n return createPortal(children, container, null, key);\n}\n\nfunction renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {\n return unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback);\n}\n\nvar Internals = {\n usingClientEntryPoint: false,\n // Keep in sync with ReactTestUtils.js.\n // This is an array for better minification.\n Events: [getInstanceFromNode, getNodeFromInstance, getFiberCurrentPropsFromNode, enqueueStateRestore, restoreStateIfNeeded, batchedUpdates$1]\n};\n\nfunction createRoot$1(container, options) {\n {\n if (!Internals.usingClientEntryPoint && !false) {\n error('You are importing createRoot from \"react-dom\" which is not supported. ' + 'You should instead import it from \"react-dom/client\".');\n }\n }\n\n return createRoot(container, options);\n}\n\nfunction hydrateRoot$1(container, initialChildren, options) {\n {\n if (!Internals.usingClientEntryPoint && !false) {\n error('You are importing hydrateRoot from \"react-dom\" which is not supported. ' + 'You should instead import it from \"react-dom/client\".');\n }\n }\n\n return hydrateRoot(container, initialChildren, options);\n} // Overload the definition to the two valid signatures.\n// Warning, this opts-out of checking the function body.\n\n\n// eslint-disable-next-line no-redeclare\nfunction flushSync$1(fn) {\n {\n if (isAlreadyRendering()) {\n error('flushSync was called from inside a lifecycle method. React cannot ' + 'flush when React is already rendering. Consider moving this call to ' + 'a scheduler task or micro task.');\n }\n }\n\n return flushSync(fn);\n}\nvar foundDevTools = injectIntoDevTools({\n findFiberByHostInstance: getClosestInstanceFromNode,\n bundleType: 1 ,\n version: ReactVersion,\n rendererPackageName: 'react-dom'\n});\n\n{\n if (!foundDevTools && canUseDOM && window.top === window.self) {\n // If we're in Chrome or Firefox, provide a download link if not installed.\n if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {\n var protocol = window.location.protocol; // Don't warn in exotic cases like chrome-extension://.\n\n if (/^(https?|file):$/.test(protocol)) {\n // eslint-disable-next-line react-internal/no-production-logging\n console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://reactjs.org/link/react-devtools' + (protocol === 'file:' ? '\\nYou might need to use a local HTTP server (instead of file://): ' + 'https://reactjs.org/link/react-devtools-faq' : ''), 'font-weight:bold');\n }\n }\n }\n}\n\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;\nexports.createPortal = createPortal$1;\nexports.createRoot = createRoot$1;\nexports.findDOMNode = findDOMNode;\nexports.flushSync = flushSync$1;\nexports.hydrate = hydrate;\nexports.hydrateRoot = hydrateRoot$1;\nexports.render = render;\nexports.unmountComponentAtNode = unmountComponentAtNode;\nexports.unstable_batchedUpdates = batchedUpdates$1;\nexports.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer;\nexports.version = ReactVersion;\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===\n 'function'\n) {\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());\n}\n \n })();\n}\n\n\n//# sourceURL=webpack://WordPress/./node_modules/react-dom/cjs/react-dom.development.js?");
+
+/***/ }),
+
+/***/ "./node_modules/react-dom/index.js":
+/*!*****************************************!*\
+ !*** ./node_modules/react-dom/index.js ***!
+ \*****************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
+
+eval("\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (true) {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (false) {} else {\n module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ \"./node_modules/react-dom/cjs/react-dom.development.js\");\n}\n\n\n//# sourceURL=webpack://WordPress/./node_modules/react-dom/index.js?");
+
+/***/ }),
+
+/***/ "./node_modules/scheduler/cjs/scheduler.development.js":
+/*!*************************************************************!*\
+ !*** ./node_modules/scheduler/cjs/scheduler.development.js ***!
+ \*************************************************************/
+/***/ ((__unused_webpack_module, exports) => {
+
+eval("/**\n * @license React\n * scheduler.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\nif (true) {\n (function() {\n\n 'use strict';\n\n/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===\n 'function'\n) {\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());\n}\n var enableSchedulerDebugging = false;\nvar enableProfiling = false;\nvar frameYieldMs = 5;\n\nfunction push(heap, node) {\n var index = heap.length;\n heap.push(node);\n siftUp(heap, node, index);\n}\nfunction peek(heap) {\n return heap.length === 0 ? null : heap[0];\n}\nfunction pop(heap) {\n if (heap.length === 0) {\n return null;\n }\n\n var first = heap[0];\n var last = heap.pop();\n\n if (last !== first) {\n heap[0] = last;\n siftDown(heap, last, 0);\n }\n\n return first;\n}\n\nfunction siftUp(heap, node, i) {\n var index = i;\n\n while (index > 0) {\n var parentIndex = index - 1 >>> 1;\n var parent = heap[parentIndex];\n\n if (compare(parent, node) > 0) {\n // The parent is larger. Swap positions.\n heap[parentIndex] = node;\n heap[index] = parent;\n index = parentIndex;\n } else {\n // The parent is smaller. Exit.\n return;\n }\n }\n}\n\nfunction siftDown(heap, node, i) {\n var index = i;\n var length = heap.length;\n var halfLength = length >>> 1;\n\n while (index < halfLength) {\n var leftIndex = (index + 1) * 2 - 1;\n var left = heap[leftIndex];\n var rightIndex = leftIndex + 1;\n var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.\n\n if (compare(left, node) < 0) {\n if (rightIndex < length && compare(right, left) < 0) {\n heap[index] = right;\n heap[rightIndex] = node;\n index = rightIndex;\n } else {\n heap[index] = left;\n heap[leftIndex] = node;\n index = leftIndex;\n }\n } else if (rightIndex < length && compare(right, node) < 0) {\n heap[index] = right;\n heap[rightIndex] = node;\n index = rightIndex;\n } else {\n // Neither child is smaller. Exit.\n return;\n }\n }\n}\n\nfunction compare(a, b) {\n // Compare sort index first, then task id.\n var diff = a.sortIndex - b.sortIndex;\n return diff !== 0 ? diff : a.id - b.id;\n}\n\n// TODO: Use symbols?\nvar ImmediatePriority = 1;\nvar UserBlockingPriority = 2;\nvar NormalPriority = 3;\nvar LowPriority = 4;\nvar IdlePriority = 5;\n\nfunction markTaskErrored(task, ms) {\n}\n\n/* eslint-disable no-var */\n\nvar hasPerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';\n\nif (hasPerformanceNow) {\n var localPerformance = performance;\n\n exports.unstable_now = function () {\n return localPerformance.now();\n };\n} else {\n var localDate = Date;\n var initialTime = localDate.now();\n\n exports.unstable_now = function () {\n return localDate.now() - initialTime;\n };\n} // Max 31 bit integer. The max integer size in V8 for 32-bit systems.\n// Math.pow(2, 30) - 1\n// 0b111111111111111111111111111111\n\n\nvar maxSigned31BitInt = 1073741823; // Times out immediately\n\nvar IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out\n\nvar USER_BLOCKING_PRIORITY_TIMEOUT = 250;\nvar NORMAL_PRIORITY_TIMEOUT = 5000;\nvar LOW_PRIORITY_TIMEOUT = 10000; // Never times out\n\nvar IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap\n\nvar taskQueue = [];\nvar timerQueue = []; // Incrementing id counter. Used to maintain insertion order.\n\nvar taskIdCounter = 1; // Pausing the scheduler is useful for debugging.\nvar currentTask = null;\nvar currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrance.\n\nvar isPerformingWork = false;\nvar isHostCallbackScheduled = false;\nvar isHostTimeoutScheduled = false; // Capture local references to native APIs, in case a polyfill overrides them.\n\nvar localSetTimeout = typeof setTimeout === 'function' ? setTimeout : null;\nvar localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : null;\nvar localSetImmediate = typeof setImmediate !== 'undefined' ? setImmediate : null; // IE and Node.js + jsdom\n\nvar isInputPending = typeof navigator !== 'undefined' && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null;\n\nfunction advanceTimers(currentTime) {\n // Check for tasks that are no longer delayed and add them to the queue.\n var timer = peek(timerQueue);\n\n while (timer !== null) {\n if (timer.callback === null) {\n // Timer was cancelled.\n pop(timerQueue);\n } else if (timer.startTime <= currentTime) {\n // Timer fired. Transfer to the task queue.\n pop(timerQueue);\n timer.sortIndex = timer.expirationTime;\n push(taskQueue, timer);\n } else {\n // Remaining timers are pending.\n return;\n }\n\n timer = peek(timerQueue);\n }\n}\n\nfunction handleTimeout(currentTime) {\n isHostTimeoutScheduled = false;\n advanceTimers(currentTime);\n\n if (!isHostCallbackScheduled) {\n if (peek(taskQueue) !== null) {\n isHostCallbackScheduled = true;\n requestHostCallback(flushWork);\n } else {\n var firstTimer = peek(timerQueue);\n\n if (firstTimer !== null) {\n requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);\n }\n }\n }\n}\n\nfunction flushWork(hasTimeRemaining, initialTime) {\n\n\n isHostCallbackScheduled = false;\n\n if (isHostTimeoutScheduled) {\n // We scheduled a timeout but it's no longer needed. Cancel it.\n isHostTimeoutScheduled = false;\n cancelHostTimeout();\n }\n\n isPerformingWork = true;\n var previousPriorityLevel = currentPriorityLevel;\n\n try {\n if (enableProfiling) {\n try {\n return workLoop(hasTimeRemaining, initialTime);\n } catch (error) {\n if (currentTask !== null) {\n var currentTime = exports.unstable_now();\n markTaskErrored(currentTask, currentTime);\n currentTask.isQueued = false;\n }\n\n throw error;\n }\n } else {\n // No catch in prod code path.\n return workLoop(hasTimeRemaining, initialTime);\n }\n } finally {\n currentTask = null;\n currentPriorityLevel = previousPriorityLevel;\n isPerformingWork = false;\n }\n}\n\nfunction workLoop(hasTimeRemaining, initialTime) {\n var currentTime = initialTime;\n advanceTimers(currentTime);\n currentTask = peek(taskQueue);\n\n while (currentTask !== null && !(enableSchedulerDebugging )) {\n if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {\n // This currentTask hasn't expired, and we've reached the deadline.\n break;\n }\n\n var callback = currentTask.callback;\n\n if (typeof callback === 'function') {\n currentTask.callback = null;\n currentPriorityLevel = currentTask.priorityLevel;\n var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;\n\n var continuationCallback = callback(didUserCallbackTimeout);\n currentTime = exports.unstable_now();\n\n if (typeof continuationCallback === 'function') {\n currentTask.callback = continuationCallback;\n } else {\n\n if (currentTask === peek(taskQueue)) {\n pop(taskQueue);\n }\n }\n\n advanceTimers(currentTime);\n } else {\n pop(taskQueue);\n }\n\n currentTask = peek(taskQueue);\n } // Return whether there's additional work\n\n\n if (currentTask !== null) {\n return true;\n } else {\n var firstTimer = peek(timerQueue);\n\n if (firstTimer !== null) {\n requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);\n }\n\n return false;\n }\n}\n\nfunction unstable_runWithPriority(priorityLevel, eventHandler) {\n switch (priorityLevel) {\n case ImmediatePriority:\n case UserBlockingPriority:\n case NormalPriority:\n case LowPriority:\n case IdlePriority:\n break;\n\n default:\n priorityLevel = NormalPriority;\n }\n\n var previousPriorityLevel = currentPriorityLevel;\n currentPriorityLevel = priorityLevel;\n\n try {\n return eventHandler();\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n }\n}\n\nfunction unstable_next(eventHandler) {\n var priorityLevel;\n\n switch (currentPriorityLevel) {\n case ImmediatePriority:\n case UserBlockingPriority:\n case NormalPriority:\n // Shift down to normal priority\n priorityLevel = NormalPriority;\n break;\n\n default:\n // Anything lower than normal priority should remain at the current level.\n priorityLevel = currentPriorityLevel;\n break;\n }\n\n var previousPriorityLevel = currentPriorityLevel;\n currentPriorityLevel = priorityLevel;\n\n try {\n return eventHandler();\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n }\n}\n\nfunction unstable_wrapCallback(callback) {\n var parentPriorityLevel = currentPriorityLevel;\n return function () {\n // This is a fork of runWithPriority, inlined for performance.\n var previousPriorityLevel = currentPriorityLevel;\n currentPriorityLevel = parentPriorityLevel;\n\n try {\n return callback.apply(this, arguments);\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n }\n };\n}\n\nfunction unstable_scheduleCallback(priorityLevel, callback, options) {\n var currentTime = exports.unstable_now();\n var startTime;\n\n if (typeof options === 'object' && options !== null) {\n var delay = options.delay;\n\n if (typeof delay === 'number' && delay > 0) {\n startTime = currentTime + delay;\n } else {\n startTime = currentTime;\n }\n } else {\n startTime = currentTime;\n }\n\n var timeout;\n\n switch (priorityLevel) {\n case ImmediatePriority:\n timeout = IMMEDIATE_PRIORITY_TIMEOUT;\n break;\n\n case UserBlockingPriority:\n timeout = USER_BLOCKING_PRIORITY_TIMEOUT;\n break;\n\n case IdlePriority:\n timeout = IDLE_PRIORITY_TIMEOUT;\n break;\n\n case LowPriority:\n timeout = LOW_PRIORITY_TIMEOUT;\n break;\n\n case NormalPriority:\n default:\n timeout = NORMAL_PRIORITY_TIMEOUT;\n break;\n }\n\n var expirationTime = startTime + timeout;\n var newTask = {\n id: taskIdCounter++,\n callback: callback,\n priorityLevel: priorityLevel,\n startTime: startTime,\n expirationTime: expirationTime,\n sortIndex: -1\n };\n\n if (startTime > currentTime) {\n // This is a delayed task.\n newTask.sortIndex = startTime;\n push(timerQueue, newTask);\n\n if (peek(taskQueue) === null && newTask === peek(timerQueue)) {\n // All tasks are delayed, and this is the task with the earliest delay.\n if (isHostTimeoutScheduled) {\n // Cancel an existing timeout.\n cancelHostTimeout();\n } else {\n isHostTimeoutScheduled = true;\n } // Schedule a timeout.\n\n\n requestHostTimeout(handleTimeout, startTime - currentTime);\n }\n } else {\n newTask.sortIndex = expirationTime;\n push(taskQueue, newTask);\n // wait until the next time we yield.\n\n\n if (!isHostCallbackScheduled && !isPerformingWork) {\n isHostCallbackScheduled = true;\n requestHostCallback(flushWork);\n }\n }\n\n return newTask;\n}\n\nfunction unstable_pauseExecution() {\n}\n\nfunction unstable_continueExecution() {\n\n if (!isHostCallbackScheduled && !isPerformingWork) {\n isHostCallbackScheduled = true;\n requestHostCallback(flushWork);\n }\n}\n\nfunction unstable_getFirstCallbackNode() {\n return peek(taskQueue);\n}\n\nfunction unstable_cancelCallback(task) {\n // remove from the queue because you can't remove arbitrary nodes from an\n // array based heap, only the first one.)\n\n\n task.callback = null;\n}\n\nfunction unstable_getCurrentPriorityLevel() {\n return currentPriorityLevel;\n}\n\nvar isMessageLoopRunning = false;\nvar scheduledHostCallback = null;\nvar taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main\n// thread, like user events. By default, it yields multiple times per frame.\n// It does not attempt to align with frame boundaries, since most tasks don't\n// need to be frame aligned; for those that do, use requestAnimationFrame.\n\nvar frameInterval = frameYieldMs;\nvar startTime = -1;\n\nfunction shouldYieldToHost() {\n var timeElapsed = exports.unstable_now() - startTime;\n\n if (timeElapsed < frameInterval) {\n // The main thread has only been blocked for a really short amount of time;\n // smaller than a single frame. Don't yield yet.\n return false;\n } // The main thread has been blocked for a non-negligible amount of time. We\n\n\n return true;\n}\n\nfunction requestPaint() {\n\n}\n\nfunction forceFrameRate(fps) {\n if (fps < 0 || fps > 125) {\n // Using console['error'] to evade Babel and ESLint\n console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing frame rates higher than 125 fps is not supported');\n return;\n }\n\n if (fps > 0) {\n frameInterval = Math.floor(1000 / fps);\n } else {\n // reset the framerate\n frameInterval = frameYieldMs;\n }\n}\n\nvar performWorkUntilDeadline = function () {\n if (scheduledHostCallback !== null) {\n var currentTime = exports.unstable_now(); // Keep track of the start time so we can measure how long the main thread\n // has been blocked.\n\n startTime = currentTime;\n var hasTimeRemaining = true; // If a scheduler task throws, exit the current browser task so the\n // error can be observed.\n //\n // Intentionally not using a try-catch, since that makes some debugging\n // techniques harder. Instead, if `scheduledHostCallback` errors, then\n // `hasMoreWork` will remain true, and we'll continue the work loop.\n\n var hasMoreWork = true;\n\n try {\n hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);\n } finally {\n if (hasMoreWork) {\n // If there's more work, schedule the next message event at the end\n // of the preceding one.\n schedulePerformWorkUntilDeadline();\n } else {\n isMessageLoopRunning = false;\n scheduledHostCallback = null;\n }\n }\n } else {\n isMessageLoopRunning = false;\n } // Yielding to the browser will give it a chance to paint, so we can\n};\n\nvar schedulePerformWorkUntilDeadline;\n\nif (typeof localSetImmediate === 'function') {\n // Node.js and old IE.\n // There's a few reasons for why we prefer setImmediate.\n //\n // Unlike MessageChannel, it doesn't prevent a Node.js process from exiting.\n // (Even though this is a DOM fork of the Scheduler, you could get here\n // with a mix of Node.js 15+, which has a MessageChannel, and jsdom.)\n // https://github.com/facebook/react/issues/20756\n //\n // But also, it runs earlier which is the semantic we want.\n // If other browsers ever implement it, it's better to use it.\n // Although both of these would be inferior to native scheduling.\n schedulePerformWorkUntilDeadline = function () {\n localSetImmediate(performWorkUntilDeadline);\n };\n} else if (typeof MessageChannel !== 'undefined') {\n // DOM and Worker environments.\n // We prefer MessageChannel because of the 4ms setTimeout clamping.\n var channel = new MessageChannel();\n var port = channel.port2;\n channel.port1.onmessage = performWorkUntilDeadline;\n\n schedulePerformWorkUntilDeadline = function () {\n port.postMessage(null);\n };\n} else {\n // We should only fallback here in non-browser environments.\n schedulePerformWorkUntilDeadline = function () {\n localSetTimeout(performWorkUntilDeadline, 0);\n };\n}\n\nfunction requestHostCallback(callback) {\n scheduledHostCallback = callback;\n\n if (!isMessageLoopRunning) {\n isMessageLoopRunning = true;\n schedulePerformWorkUntilDeadline();\n }\n}\n\nfunction requestHostTimeout(callback, ms) {\n taskTimeoutID = localSetTimeout(function () {\n callback(exports.unstable_now());\n }, ms);\n}\n\nfunction cancelHostTimeout() {\n localClearTimeout(taskTimeoutID);\n taskTimeoutID = -1;\n}\n\nvar unstable_requestPaint = requestPaint;\nvar unstable_Profiling = null;\n\nexports.unstable_IdlePriority = IdlePriority;\nexports.unstable_ImmediatePriority = ImmediatePriority;\nexports.unstable_LowPriority = LowPriority;\nexports.unstable_NormalPriority = NormalPriority;\nexports.unstable_Profiling = unstable_Profiling;\nexports.unstable_UserBlockingPriority = UserBlockingPriority;\nexports.unstable_cancelCallback = unstable_cancelCallback;\nexports.unstable_continueExecution = unstable_continueExecution;\nexports.unstable_forceFrameRate = forceFrameRate;\nexports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;\nexports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;\nexports.unstable_next = unstable_next;\nexports.unstable_pauseExecution = unstable_pauseExecution;\nexports.unstable_requestPaint = unstable_requestPaint;\nexports.unstable_runWithPriority = unstable_runWithPriority;\nexports.unstable_scheduleCallback = unstable_scheduleCallback;\nexports.unstable_shouldYield = shouldYieldToHost;\nexports.unstable_wrapCallback = unstable_wrapCallback;\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===\n 'function'\n) {\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());\n}\n \n })();\n}\n\n\n//# sourceURL=webpack://WordPress/./node_modules/scheduler/cjs/scheduler.development.js?");
+
+/***/ }),
+
+/***/ "./node_modules/scheduler/index.js":
+/*!*****************************************!*\
+ !*** ./node_modules/scheduler/index.js ***!
+ \*****************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
+
+eval("\n\nif (false) {} else {\n module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ \"./node_modules/scheduler/cjs/scheduler.development.js\");\n}\n\n\n//# sourceURL=webpack://WordPress/./node_modules/scheduler/index.js?");
+
+/***/ }),
+
+/***/ "react":
+/*!************************!*\
+ !*** external "React" ***!
+ \************************/
+/***/ ((module) => {
+
+module.exports = React;
+
+/***/ })
+
+/******/ });
+/************************************************************************/
+/******/ // The module cache
+/******/ var __webpack_module_cache__ = {};
+/******/
+/******/ // The require function
+/******/ function __webpack_require__(moduleId) {
+/******/ // Check if module is in cache
+/******/ var cachedModule = __webpack_module_cache__[moduleId];
+/******/ if (cachedModule !== undefined) {
+/******/ return cachedModule.exports;
+/******/ }
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = __webpack_module_cache__[moduleId] = {
+/******/ // no module.id needed
+/******/ // no module.loaded needed
+/******/ exports: {}
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/************************************************************************/
+/******/
+/******/ // startup
+/******/ // Load entry module and return exports
+/******/ // This entry module can't be inlined because the eval devtool is used.
+/******/ var __webpack_exports__ = __webpack_require__("./node_modules/react-dom/index.js");
+/******/ window.ReactDOM = __webpack_exports__;
+/******/
+/******/ })()
+; \ No newline at end of file
diff --git a/wp-includes/js/dist/vendor/react-dom.min.js b/wp-includes/js/dist/vendor/react-dom.min.js
index fa170d0..6b1275f 100644
--- a/wp-includes/js/dist/vendor/react-dom.min.js
+++ b/wp-includes/js/dist/vendor/react-dom.min.js
@@ -1,10 +1,2 @@
-/**
- * @license React
- * react-dom.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-!function(){"use strict";var e,n;e=this,n=function(e,n){function t(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(e,n){l(e,n),l(e+"Capture",n)}function l(e,n){for(ra[e]=n,e=0;e<n.length;e++)ta.add(n[e])}function a(e,n,t,r,l,a,u){this.acceptsBooleans=2===n||3===n||4===n,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=a,this.removeEmptyString=u}function u(e,n,t,r){var l=sa.hasOwnProperty(n)?sa[n]:null;(null!==l?0!==l.type:r||!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&(function(e,n,t,r){if(null==n||function(e,n,t,r){if(null!==t&&0===t.type)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==t?!t.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,n,t,r))return!0;if(r)return!1;if(null!==t)switch(t.type){case 3:return!n;case 4:return!1===n;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}(n,t,l,r)&&(t=null),r||null===l?function(e){return!!aa.call(ia,e)||!aa.call(oa,e)&&(ua.test(e)?ia[e]=!0:(oa[e]=!0,!1))}(n)&&(null===t?e.removeAttribute(n):e.setAttribute(n,""+t)):l.mustUseProperty?e[l.propertyName]=null===t?3!==l.type&&"":t:(n=l.attributeName,r=l.attributeNamespace,null===t?e.removeAttribute(n):(t=3===(l=l.type)||4===l&&!0===t?"":""+t,r?e.setAttributeNS(r,n,t):e.setAttribute(n,t))))}function o(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=_a&&e[_a]||e["@@iterator"])?e:null}function i(e,n,t){if(void 0===za)try{throw Error()}catch(e){za=(n=e.stack.trim().match(/\n( *(at )?)/))&&n[1]||""}return"\n"+za+e}function s(e,n){if(!e||Ta)return"";Ta=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(n){if(n&&r&&"string"==typeof n.stack){for(var l=n.stack.split("\n"),a=r.stack.split("\n"),u=l.length-1,o=a.length-1;1<=u&&0<=o&&l[u]!==a[o];)o--;for(;1<=u&&0<=o;u--,o--)if(l[u]!==a[o]){if(1!==u||1!==o)do{if(u--,0>--o||l[u]!==a[o]){var s="\n"+l[u].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=u&&0<=o);break}}}finally{Ta=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?i(e):""}function c(e){switch(e.tag){case 5:return i(e.type);case 16:return i("Lazy");case 13:return i("Suspense");case 19:return i("SuspenseList");case 0:case 2:case 15:return e=s(e.type,!1);case 11:return e=s(e.type.render,!1);case 1:return e=s(e.type,!0);default:return""}}function f(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ha:return"Fragment";case ma:return"Portal";case va:return"Profiler";case ga:return"StrictMode";case wa:return"Suspense";case Sa:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ba:return(e.displayName||"Context")+".Consumer";case ya:return(e._context.displayName||"Context")+".Provider";case ka:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case xa:return null!==(n=e.displayName||null)?n:f(e.type)||"Memo";case Ea:n=e._payload,e=e._init;try{return f(e(n))}catch(e){}}return null}function d(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=n.render).displayName||e.name||"",n.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return f(n);case 8:return n===ga?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof n)return n.displayName||n.name||null;if("string"==typeof n)return n}return null}function p(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function m(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function h(e){e._valueTracker||(e._valueTracker=function(e){var n=m(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&void 0!==t&&"function"==typeof t.get&&"function"==typeof t.set){var l=t.get,a=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}(e))}function g(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=m(e)?e.checked?"true":"false":e.value),(e=r)!==t&&(n.setValue(e),!0)}function v(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(n){return e.body}}function y(e,n){var t=n.checked;return La({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=t?t:e._wrapperState.initialChecked})}function b(e,n){var t=null==n.defaultValue?"":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked;t=p(null!=n.value?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:"checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value}}function k(e,n){null!=(n=n.checked)&&u(e,"checked",n,!1)}function w(e,n){k(e,n);var t=p(n.value),r=n.type;if(null!=t)"number"===r?(0===t&&""===e.value||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");n.hasOwnProperty("value")?x(e,n.type,t):n.hasOwnProperty("defaultValue")&&x(e,n.type,p(n.defaultValue)),null==n.checked&&null!=n.defaultChecked&&(e.defaultChecked=!!n.defaultChecked)}function S(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!("submit"!==r&&"reset"!==r||void 0!==n.value&&null!==n.value))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}""!==(t=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==t&&(e.name=t)}function x(e,n,t){"number"===n&&v(e.ownerDocument)===e||(null==t?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}function E(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l<t.length;l++)n["$"+t[l]]=!0;for(t=0;t<e.length;t++)l=n.hasOwnProperty("$"+e[t].value),e[t].selected!==l&&(e[t].selected=l),l&&r&&(e[t].defaultSelected=!0)}else{for(t=""+p(t),n=null,l=0;l<e.length;l++){if(e[l].value===t)return e[l].selected=!0,void(r&&(e[l].defaultSelected=!0));null!==n||e[l].disabled||(n=e[l])}null!==n&&(n.selected=!0)}}function C(e,n){if(null!=n.dangerouslySetInnerHTML)throw Error(t(91));return La({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function z(e,n){var r=n.value;if(null==r){if(r=n.children,n=n.defaultValue,null!=r){if(null!=n)throw Error(t(92));if(Ma(r)){if(1<r.length)throw Error(t(93));r=r[0]}n=r}null==n&&(n=""),r=n}e._wrapperState={initialValue:p(r)}}function N(e,n){var t=p(n.value),r=p(n.defaultValue);null!=t&&((t=""+t)!==e.value&&(e.value=t),null==n.defaultValue&&e.defaultValue!==t&&(e.defaultValue=t)),null!=r&&(e.defaultValue=""+r)}function P(e,n){(n=e.textContent)===e._wrapperState.initialValue&&""!==n&&null!==n&&(e.value=n)}function _(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function L(e,n){return null==e||"http://www.w3.org/1999/xhtml"===e?_(n):"http://www.w3.org/2000/svg"===e&&"foreignObject"===n?"http://www.w3.org/1999/xhtml":e}function T(e,n,t){return null==n||"boolean"==typeof n||""===n?"":t||"number"!=typeof n||0===n||Da.hasOwnProperty(e)&&Da[e]?(""+n).trim():n+"px"}function M(e,n){for(var t in e=e.style,n)if(n.hasOwnProperty(t)){var r=0===t.indexOf("--"),l=T(t,n[t],r);"float"===t&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}function F(e,n){if(n){if(Ia[e]&&(null!=n.children||null!=n.dangerouslySetInnerHTML))throw Error(t(137,e));if(null!=n.dangerouslySetInnerHTML){if(null!=n.children)throw Error(t(60));if("object"!=typeof n.dangerouslySetInnerHTML||!("__html"in n.dangerouslySetInnerHTML))throw Error(t(61))}if(null!=n.style&&"object"!=typeof n.style)throw Error(t(62))}}function R(e,n){if(-1===e.indexOf("-"))return"string"==typeof n.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function D(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function O(e){if(e=mn(e)){if("function"!=typeof Va)throw Error(t(280));var n=e.stateNode;n&&(n=gn(n),Va(e.stateNode,e.type,n))}}function I(e){Aa?Ba?Ba.push(e):Ba=[e]:Aa=e}function U(){if(Aa){var e=Aa,n=Ba;if(Ba=Aa=null,O(e),n)for(e=0;e<n.length;e++)O(n[e])}}function V(e,n,t){if(Qa)return e(n,t);Qa=!0;try{return Wa(e,n,t)}finally{Qa=!1,(null!==Aa||null!==Ba)&&(Ha(),U())}}function A(e,n){var r=e.stateNode;if(null===r)return null;var l=gn(r);if(null===l)return null;r=l[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(l=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!l;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(t(231,n,typeof r));return r}function B(e,n,t,r,l,a,u,o,i){Ga=!1,Za=null,Xa.apply(nu,arguments)}function W(e,n,r,l,a,u,o,i,s){if(B.apply(this,arguments),Ga){if(!Ga)throw Error(t(198));var c=Za;Ga=!1,Za=null,Ja||(Ja=!0,eu=c)}}function H(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do{0!=(4098&(n=e).flags)&&(t=n.return),e=n.return}while(e)}return 3===n.tag?t:null}function Q(e){if(13===e.tag){var n=e.memoizedState;if(null===n&&null!==(e=e.alternate)&&(n=e.memoizedState),null!==n)return n.dehydrated}return null}function j(e){if(H(e)!==e)throw Error(t(188))}function $(e){return null!==(e=function(e){var n=e.alternate;if(!n){if(null===(n=H(e)))throw Error(t(188));return n!==e?null:e}for(var r=e,l=n;;){var a=r.return;if(null===a)break;var u=a.alternate;if(null===u){if(null!==(l=a.return)){r=l;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===r)return j(a),e;if(u===l)return j(a),n;u=u.sibling}throw Error(t(188))}if(r.return!==l.return)r=a,l=u;else{for(var o=!1,i=a.child;i;){if(i===r){o=!0,r=a,l=u;break}if(i===l){o=!0,l=a,r=u;break}i=i.sibling}if(!o){for(i=u.child;i;){if(i===r){o=!0,r=u,l=a;break}if(i===l){o=!0,l=u,r=a;break}i=i.sibling}if(!o)throw Error(t(189))}}if(r.alternate!==l)throw Error(t(190))}if(3!==r.tag)throw Error(t(188));return r.stateNode.current===r?e:n}(e))?q(e):null}function q(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var n=q(e);if(null!==n)return n;e=e.sibling}return null}function K(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Y(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,u=268435455&t;if(0!==u){var o=u&~l;0!==o?r=K(o):0!=(a&=u)&&(r=K(a))}else 0!=(u=t&~l)?r=K(u):0!==a&&(r=K(a));if(0===r)return 0;if(0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0<n;)l=1<<(t=31-yu(n)),r|=e[t],n&=~l;return r}function X(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;default:return-1}}function G(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Z(){var e=wu;return 0==(4194240&(wu<<=1))&&(wu=64),e}function J(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function ee(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-yu(n)]=t}function ne(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-yu(t),l=1<<r;l&n|e[r]&n&&(e[r]|=n),t&=~l}}function te(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}function re(e,n){switch(e){case"focusin":case"focusout":zu=null;break;case"dragenter":case"dragleave":Nu=null;break;case"mouseover":case"mouseout":Pu=null;break;case"pointerover":case"pointerout":_u.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lu.delete(n.pointerId)}}function le(e,n,t,r,l,a){return null===e||e.nativeEvent!==a?(e={blockedOn:n,domEventName:t,eventSystemFlags:r,nativeEvent:a,targetContainers:[l]},null!==n&&null!==(n=mn(n))&&Ys(n),e):(e.eventSystemFlags|=r,n=e.targetContainers,null!==l&&-1===n.indexOf(l)&&n.push(l),e)}function ae(e){var n=pn(e.target);if(null!==n){var t=H(n);if(null!==t)if(13===(n=t.tag)){if(null!==(n=Q(t)))return e.blockedOn=n,void Zs(e.priority,(function(){Xs(t)}))}else if(3===n&&t.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===t.tag?t.stateNode.containerInfo:null)}e.blockedOn=null}function ue(e){if(null!==e.blockedOn)return!1;for(var n=e.targetContainers;0<n.length;){var t=me(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(null!==t)return null!==(n=mn(t))&&Ys(n),e.blockedOn=t,!1;var r=new(t=e.nativeEvent).constructor(t.type,t);Ua=r,t.target.dispatchEvent(r),Ua=null,n.shift()}return!0}function oe(e,n,t){ue(e)&&t.delete(n)}function ie(){Eu=!1,null!==zu&&ue(zu)&&(zu=null),null!==Nu&&ue(Nu)&&(Nu=null),null!==Pu&&ue(Pu)&&(Pu=null),_u.forEach(oe),Lu.forEach(oe)}function se(e,n){e.blockedOn===n&&(e.blockedOn=null,Eu||(Eu=!0,ru(lu,ie)))}function ce(e){if(0<Cu.length){se(Cu[0],e);for(var n=1;n<Cu.length;n++){var t=Cu[n];t.blockedOn===e&&(t.blockedOn=null)}}for(null!==zu&&se(zu,e),null!==Nu&&se(Nu,e),null!==Pu&&se(Pu,e),n=function(n){return se(n,e)},_u.forEach(n),Lu.forEach(n),n=0;n<Tu.length;n++)(t=Tu[n]).blockedOn===e&&(t.blockedOn=null);for(;0<Tu.length&&null===(n=Tu[0]).blockedOn;)ae(n),null===n.blockedOn&&Tu.shift()}function fe(e,n,t,r){var l=xu,a=Fu.transition;Fu.transition=null;try{xu=1,pe(e,n,t,r)}finally{xu=l,Fu.transition=a}}function de(e,n,t,r){var l=xu,a=Fu.transition;Fu.transition=null;try{xu=4,pe(e,n,t,r)}finally{xu=l,Fu.transition=a}}function pe(e,n,t,r){if(Ru){var l=me(e,n,t,r);if(null===l)Je(e,n,r,Du,t),re(e,r);else if(function(e,n,t,r,l){switch(n){case"focusin":return zu=le(zu,e,n,t,r,l),!0;case"dragenter":return Nu=le(Nu,e,n,t,r,l),!0;case"mouseover":return Pu=le(Pu,e,n,t,r,l),!0;case"pointerover":var a=l.pointerId;return _u.set(a,le(_u.get(a)||null,e,n,t,r,l)),!0;case"gotpointercapture":return a=l.pointerId,Lu.set(a,le(Lu.get(a)||null,e,n,t,r,l)),!0}return!1}(l,e,n,t,r))r.stopPropagation();else if(re(e,r),4&n&&-1<Mu.indexOf(e)){for(;null!==l;){var a=mn(l);if(null!==a&&Ks(a),null===(a=me(e,n,t,r))&&Je(e,n,r,Du,t),a===l)break;l=a}null!==l&&r.stopPropagation()}else Je(e,n,r,null,t)}}function me(e,n,t,r){if(Du=null,null!==(e=pn(e=D(r))))if(null===(n=H(e)))e=null;else if(13===(t=n.tag)){if(null!==(e=Q(n)))return e;e=null}else if(3===t){if(n.stateNode.current.memoizedState.isDehydrated)return 3===n.tag?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Du=e,null}function he(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(cu()){case fu:return 1;case du:return 4;case pu:case mu:return 16;case hu:return 536870912;default:return 16}default:return 16}}function ge(){if(Uu)return Uu;var e,n,t=Iu,r=t.length,l="value"in Ou?Ou.value:Ou.textContent,a=l.length;for(e=0;e<r&&t[e]===l[e];e++);var u=r-e;for(n=1;n<=u&&t[r-n]===l[a-n];n++);return Uu=l.slice(e,1<n?1-n:void 0)}function ve(e){var n=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===n&&(e=13):e=n,10===e&&(e=13),32<=e||13===e?e:0}function ye(){return!0}function be(){return!1}function ke(e){function n(n,t,r,l,a){for(var u in this._reactName=n,this._targetInst=r,this.type=t,this.nativeEvent=l,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(l):l[u]);return this.isDefaultPrevented=(null!=l.defaultPrevented?l.defaultPrevented:!1===l.returnValue)?ye:be,this.isPropagationStopped=be,this}return La(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ye)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ye)},persist:function(){},isPersistent:ye}),n}function we(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):!!(e=eo[e])&&!!n[e]}function Se(e){return we}function xe(e,n){switch(e){case"keyup":return-1!==io.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ee(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}function Ce(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!vo[e.type]:"textarea"===n}function ze(e,n,t,r){I(r),0<(n=nn(n,"onChange")).length&&(t=new Au("onChange","change",null,t,r),e.push({event:t,listeners:n}))}function Ne(e){Ke(e,0)}function Pe(e){if(g(hn(e)))return e}function _e(e,n){if("change"===e)return n}function Le(){yo&&(yo.detachEvent("onpropertychange",Te),bo=yo=null)}function Te(e){if("value"===e.propertyName&&Pe(bo)){var n=[];ze(n,bo,e,D(e)),V(Ne,n)}}function Me(e,n,t){"focusin"===e?(Le(),bo=t,(yo=n).attachEvent("onpropertychange",Te)):"focusout"===e&&Le()}function Fe(e,n){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Pe(bo)}function Re(e,n){if("click"===e)return Pe(n)}function De(e,n){if("input"===e||"change"===e)return Pe(n)}function Oe(e,n){if(wo(e,n))return!0;if("object"!=typeof e||null===e||"object"!=typeof n||null===n)return!1;var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(r=0;r<t.length;r++){var l=t[r];if(!aa.call(n,l)||!wo(e[l],n[l]))return!1}return!0}function Ie(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ue(e,n){var t,r=Ie(e);for(e=0;r;){if(3===r.nodeType){if(t=e+r.textContent.length,e<=n&&t>=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ie(r)}}function Ve(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?Ve(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}function Ae(){for(var e=window,n=v();n instanceof e.HTMLIFrameElement;){try{var t="string"==typeof n.contentWindow.location.href}catch(e){t=!1}if(!t)break;n=v((e=n.contentWindow).document)}return n}function Be(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}function We(e){var n=Ae(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Ve(t.ownerDocument.documentElement,t)){if(null!==r&&Be(t))if(n=r.start,void 0===(e=r.end)&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if((e=(n=t.ownerDocument||document)&&n.defaultView||window).getSelection){e=e.getSelection();var l=t.textContent.length,a=Math.min(r.start,l);r=void 0===r.end?a:Math.min(r.end,l),!e.extend&&a>r&&(l=r,r=a,a=l),l=Ue(t,a);var u=Ue(t,r);l&&u&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&((n=n.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}for(n=[],e=t;e=e.parentNode;)1===e.nodeType&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof t.focus&&t.focus(),t=0;t<n.length;t++)(e=n[t]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}function He(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;zo||null==xo||xo!==v(r)||(r="selectionStart"in(r=xo)&&Be(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Co&&Oe(Co,r)||(Co=r,0<(r=nn(Eo,"onSelect")).length&&(n=new Au("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=xo)))}function Qe(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}function je(e){if(Po[e])return Po[e];if(!No[e])return e;var n,t=No[e];for(n in t)if(t.hasOwnProperty(n)&&n in _o)return Po[e]=t[n];return e}function $e(e,n){Ro.set(e,n),r(n,[e])}function qe(e,n,t){var r=e.type||"unknown-event";e.currentTarget=t,W(r,n,void 0,e),e.currentTarget=null}function Ke(e,n){n=0!=(4&n);for(var t=0;t<e.length;t++){var r=e[t],l=r.event;r=r.listeners;e:{var a=void 0;if(n)for(var u=r.length-1;0<=u;u--){var o=r[u],i=o.instance,s=o.currentTarget;if(o=o.listener,i!==a&&l.isPropagationStopped())break e;qe(l,o,s),a=i}else for(u=0;u<r.length;u++){if(i=(o=r[u]).instance,s=o.currentTarget,o=o.listener,i!==a&&l.isPropagationStopped())break e;qe(l,o,s),a=i}}}if(Ja)throw e=eu,Ja=!1,eu=null,e}function Ye(e,n){var t=n[Go];void 0===t&&(t=n[Go]=new Set);var r=e+"__bubble";t.has(r)||(Ze(n,e,2,!1),t.add(r))}function Xe(e,n,t){var r=0;n&&(r|=4),Ze(t,e,r,n)}function Ge(e){if(!e[Uo]){e[Uo]=!0,ta.forEach((function(n){"selectionchange"!==n&&(Io.has(n)||Xe(n,!1,e),Xe(n,!0,e))}));var n=9===e.nodeType?e:e.ownerDocument;null===n||n[Uo]||(n[Uo]=!0,Xe("selectionchange",!1,n))}}function Ze(e,n,t,r,l){switch(he(n)){case 1:l=fe;break;case 4:l=de;break;default:l=pe}t=l.bind(null,n,t,e),l=void 0,!ja||"touchstart"!==n&&"touchmove"!==n&&"wheel"!==n||(l=!0),r?void 0!==l?e.addEventListener(n,t,{capture:!0,passive:l}):e.addEventListener(n,t,!0):void 0!==l?e.addEventListener(n,t,{passive:l}):e.addEventListener(n,t,!1)}function Je(e,n,t,r,l){var a=r;if(0==(1&n)&&0==(2&n)&&null!==r)e:for(;;){if(null===r)return;var u=r.tag;if(3===u||4===u){var o=r.stateNode.containerInfo;if(o===l||8===o.nodeType&&o.parentNode===l)break;if(4===u)for(u=r.return;null!==u;){var i=u.tag;if((3===i||4===i)&&((i=u.stateNode.containerInfo)===l||8===i.nodeType&&i.parentNode===l))return;u=u.return}for(;null!==o;){if(null===(u=pn(o)))return;if(5===(i=u.tag)||6===i){r=a=u;continue e}o=o.parentNode}}r=r.return}V((function(){var r=a,l=D(t),u=[];e:{var o=Ro.get(e);if(void 0!==o){var i=Au,s=e;switch(e){case"keypress":if(0===ve(t))break e;case"keydown":case"keyup":i=to;break;case"focusin":s="focus",i=$u;break;case"focusout":s="blur",i=$u;break;case"beforeblur":case"afterblur":i=$u;break;case"click":if(2===t.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":i=Qu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":i=ju;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":i=lo;break;case Lo:case To:case Mo:i=qu;break;case Fo:i=ao;break;case"scroll":i=Wu;break;case"wheel":i=oo;break;case"copy":case"cut":case"paste":i=Yu;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":i=ro}var c=0!=(4&n),f=!c&&"scroll"===e,d=c?null!==o?o+"Capture":null:o;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&null!=(h=A(m,d))&&c.push(en(m,h,p))),f)break;m=m.return}0<c.length&&(o=new i(o,s,null,t,l),u.push({event:o,listeners:c}))}}if(0==(7&n)){if(i="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||t===Ua||!(s=t.relatedTarget||t.fromElement)||!pn(s)&&!s[Xo])&&(i||o)&&(o=l.window===l?l:(o=l.ownerDocument)?o.defaultView||o.parentWindow:window,i?(i=r,null!==(s=(s=t.relatedTarget||t.toElement)?pn(s):null)&&(s!==(f=H(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(i=null,s=r),i!==s)){if(c=Qu,h="onMouseLeave",d="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=ro,h="onPointerLeave",d="onPointerEnter",m="pointer"),f=null==i?o:hn(i),p=null==s?o:hn(s),(o=new c(h,m+"leave",i,t,l)).target=f,o.relatedTarget=p,h=null,pn(l)===r&&((c=new c(d,m+"enter",s,t,l)).target=p,c.relatedTarget=f,h=c),f=h,i&&s)e:{for(d=s,m=0,p=c=i;p;p=tn(p))m++;for(p=0,h=d;h;h=tn(h))p++;for(;0<m-p;)c=tn(c),m--;for(;0<p-m;)d=tn(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break e;c=tn(c),d=tn(d)}c=null}else c=null;null!==i&&rn(u,o,i,c,!1),null!==s&&null!==f&&rn(u,f,s,c,!0)}if("select"===(i=(o=r?hn(r):window).nodeName&&o.nodeName.toLowerCase())||"input"===i&&"file"===o.type)var g=_e;else if(Ce(o))if(ko)g=De;else{g=Fe;var v=Me}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(g=Re);switch(g&&(g=g(e,r))?ze(u,g,t,l):(v&&v(e,o,r),"focusout"===e&&(v=o._wrapperState)&&v.controlled&&"number"===o.type&&x(o,"number",o.value)),v=r?hn(r):window,e){case"focusin":(Ce(v)||"true"===v.contentEditable)&&(xo=v,Eo=r,Co=null);break;case"focusout":Co=Eo=xo=null;break;case"mousedown":zo=!0;break;case"contextmenu":case"mouseup":case"dragend":zo=!1,He(u,t,l);break;case"selectionchange":if(So)break;case"keydown":case"keyup":He(u,t,l)}var y;if(so)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else go?xe(e,t)&&(b="onCompositionEnd"):"keydown"===e&&229===t.keyCode&&(b="onCompositionStart");b&&(po&&"ko"!==t.locale&&(go||"onCompositionStart"!==b?"onCompositionEnd"===b&&go&&(y=ge()):(Iu="value"in(Ou=l)?Ou.value:Ou.textContent,go=!0)),0<(v=nn(r,b)).length&&(b=new Xu(b,e,null,t,l),u.push({event:b,listeners:v}),(y||null!==(y=Ee(t)))&&(b.data=y))),(y=fo?function(e,n){switch(e){case"compositionend":return Ee(n);case"keypress":return 32!==n.which?null:(ho=!0,mo);case"textInput":return(e=n.data)===mo&&ho?null:e;default:return null}}(e,t):function(e,n){if(go)return"compositionend"===e||!so&&xe(e,n)?(e=ge(),Uu=Iu=Ou=null,go=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return po&&"ko"!==n.locale?null:n.data}}(e,t))&&0<(r=nn(r,"onBeforeInput")).length&&(l=new Gu("onBeforeInput","beforeinput",null,t,l),u.push({event:l,listeners:r}),l.data=y)}Ke(u,n)}))}function en(e,n,t){return{instance:e,listener:n,currentTarget:t}}function nn(e,n){for(var t=n+"Capture",r=[];null!==e;){var l=e,a=l.stateNode;5===l.tag&&null!==a&&(l=a,null!=(a=A(e,t))&&r.unshift(en(e,a,l)),null!=(a=A(e,n))&&r.push(en(e,a,l))),e=e.return}return r}function tn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function rn(e,n,t,r,l){for(var a=n._reactName,u=[];null!==t&&t!==r;){var o=t,i=o.alternate,s=o.stateNode;if(null!==i&&i===r)break;5===o.tag&&null!==s&&(o=s,l?null!=(i=A(t,a))&&u.unshift(en(t,i,o)):l||null!=(i=A(t,a))&&u.push(en(t,i,o))),t=t.return}0!==u.length&&e.push({event:n,listeners:u})}function ln(e){return("string"==typeof e?e:""+e).replace(Vo,"\n").replace(Ao,"")}function an(e,n,r,l){if(n=ln(n),ln(e)!==n&&r)throw Error(t(425))}function un(){}function on(e,n){return"textarea"===e||"noscript"===e||"string"==typeof n.children||"number"==typeof n.children||"object"==typeof n.dangerouslySetInnerHTML&&null!==n.dangerouslySetInnerHTML&&null!=n.dangerouslySetInnerHTML.__html}function sn(e){setTimeout((function(){throw e}))}function cn(e,n){var t=n,r=0;do{var l=t.nextSibling;if(e.removeChild(t),l&&8===l.nodeType)if("/$"===(t=l.data)){if(0===r)return e.removeChild(l),void ce(n);r--}else"$"!==t&&"$?"!==t&&"$!"!==t||r++;t=l}while(t);ce(n)}function fn(e){for(;null!=e;e=e.nextSibling){var n=e.nodeType;if(1===n||3===n)break;if(8===n){if("$"===(n=e.data)||"$!"===n||"$?"===n)break;if("/$"===n)return null}}return e}function dn(e){e=e.previousSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if("$"===t||"$!"===t||"$?"===t){if(0===n)return e;n--}else"/$"===t&&n++}e=e.previousSibling}return null}function pn(e){var n=e[Ko];if(n)return n;for(var t=e.parentNode;t;){if(n=t[Xo]||t[Ko]){if(t=n.alternate,null!==n.child||null!==t&&null!==t.child)for(e=dn(e);null!==e;){if(t=e[Ko])return t;e=dn(e)}return n}t=(e=t).parentNode}return null}function mn(e){return!(e=e[Ko]||e[Xo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function hn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(t(33))}function gn(e){return e[Yo]||null}function vn(e){return{current:e}}function yn(e,n){0>ni||(e.current=ei[ni],ei[ni]=null,ni--)}function bn(e,n,t){ni++,ei[ni]=e.current,e.current=n}function kn(e,n){var t=e.type.contextTypes;if(!t)return ti;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function wn(e){return null!=(e=e.childContextTypes)}function Sn(e,n,r){if(ri.current!==ti)throw Error(t(168));bn(ri,n),bn(li,r)}function xn(e,n,r){var l=e.stateNode;if(n=n.childContextTypes,"function"!=typeof l.getChildContext)return r;for(var a in l=l.getChildContext())if(!(a in n))throw Error(t(108,d(e)||"Unknown",a));return La({},r,l)}function En(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ti,ai=ri.current,bn(ri,e),bn(li,li.current),!0}function Cn(e,n,r){var l=e.stateNode;if(!l)throw Error(t(169));r?(e=xn(e,n,ai),l.__reactInternalMemoizedMergedChildContext=e,yn(li),yn(ri),bn(ri,e)):yn(li),bn(li,r)}function zn(e){null===ui?ui=[e]:ui.push(e)}function Nn(){if(!ii&&null!==ui){ii=!0;var e=0,n=xu;try{var t=ui;for(xu=1;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}ui=null,oi=!1}catch(n){throw null!==ui&&(ui=ui.slice(e+1)),au(fu,Nn),n}finally{xu=n,ii=!1}}return null}function Pn(e,n){si[ci++]=di,si[ci++]=fi,fi=e,di=n}function _n(e,n,t){pi[mi++]=gi,pi[mi++]=vi,pi[mi++]=hi,hi=e;var r=gi;e=vi;var l=32-yu(r)-1;r&=~(1<<l),t+=1;var a=32-yu(n)+l;if(30<a){var u=l-l%5;a=(r&(1<<u)-1).toString(32),r>>=u,l-=u,gi=1<<32-yu(n)+l|t<<l|r,vi=a+e}else gi=1<<a|t<<l|r,vi=e}function Ln(e){null!==e.return&&(Pn(e,1),_n(e,1,0))}function Tn(e){for(;e===fi;)fi=si[--ci],si[ci]=null,di=si[--ci],si[ci]=null;for(;e===hi;)hi=pi[--mi],pi[mi]=null,vi=pi[--mi],pi[mi]=null,gi=pi[--mi],pi[mi]=null}function Mn(e,n){var t=$s(5,null,null,0);t.elementType="DELETED",t.stateNode=n,t.return=e,null===(n=e.deletions)?(e.deletions=[t],e.flags|=16):n.push(t)}function Fn(e,n){switch(e.tag){case 5:var t=e.type;return null!==(n=1!==n.nodeType||t.toLowerCase()!==n.nodeName.toLowerCase()?null:n)&&(e.stateNode=n,yi=e,bi=fn(n.firstChild),!0);case 6:return null!==(n=""===e.pendingProps||3!==n.nodeType?null:n)&&(e.stateNode=n,yi=e,bi=null,!0);case 13:return null!==(n=8!==n.nodeType?null:n)&&(t=null!==hi?{id:gi,overflow:vi}:null,e.memoizedState={dehydrated:n,treeContext:t,retryLane:1073741824},(t=$s(18,null,null,0)).stateNode=n,t.return=e,e.child=t,yi=e,bi=null,!0);default:return!1}}function Rn(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function Dn(e){if(ki){var n=bi;if(n){var r=n;if(!Fn(e,n)){if(Rn(e))throw Error(t(418));n=fn(r.nextSibling);var l=yi;n&&Fn(e,n)?Mn(l,r):(e.flags=-4097&e.flags|2,ki=!1,yi=e)}}else{if(Rn(e))throw Error(t(418));e.flags=-4097&e.flags|2,ki=!1,yi=e}}}function On(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;yi=e}function In(e){if(e!==yi)return!1;if(!ki)return On(e),ki=!0,!1;var n;if((n=3!==e.tag)&&!(n=5!==e.tag)&&(n="head"!==(n=e.type)&&"body"!==n&&!on(e.type,e.memoizedProps)),n&&(n=bi)){if(Rn(e)){for(e=bi;e;)e=fn(e.nextSibling);throw Error(t(418))}for(;n;)Mn(e,n),n=fn(n.nextSibling)}if(On(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(t(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===n){bi=fn(e.nextSibling);break e}n--}else"$"!==r&&"$!"!==r&&"$?"!==r||n++}e=e.nextSibling}bi=null}}else bi=yi?fn(e.stateNode.nextSibling):null;return!0}function Un(){bi=yi=null,ki=!1}function Vn(e){null===wi?wi=[e]:wi.push(e)}function An(e,n){if(e&&e.defaultProps){for(var t in n=La({},n),e=e.defaultProps)void 0===n[t]&&(n[t]=e[t]);return n}return n}function Bn(){zi=Ci=Ei=null}function Wn(e,n){n=xi.current,yn(xi),e._currentValue=n}function Hn(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Qn(e,n){Ei=e,zi=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&n)&&(ts=!0),e.firstContext=null)}function jn(e){var n=e._currentValue;if(zi!==e)if(e={context:e,memoizedValue:n,next:null},null===Ci){if(null===Ei)throw Error(t(308));Ci=e,Ei.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return n}function $n(e){null===Ni?Ni=[e]:Ni.push(e)}function qn(e,n,t,r){var l=n.interleaved;return null===l?(t.next=t,$n(n)):(t.next=l.next,l.next=t),n.interleaved=t,Kn(e,r)}function Kn(e,n){e.lanes|=n;var t=e.alternate;for(null!==t&&(t.lanes|=n),t=e,e=e.return;null!==e;)e.childLanes|=n,null!==(t=e.alternate)&&(t.childLanes|=n),t=e,e=e.return;return 3===t.tag?t.stateNode:null}function Yn(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xn(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Gn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Zn(e,n,t){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&bs)){var l=r.pending;return null===l?n.next=n:(n.next=l.next,l.next=n),r.pending=n,Pi(e,t)}return null===(l=r.interleaved)?(n.next=n,$n(r)):(n.next=l.next,l.next=n),r.interleaved=n,Kn(e,t)}function Jn(e,n,t){if(null!==(n=n.updateQueue)&&(n=n.shared,0!=(4194240&t))){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,ne(e,t)}}function et(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var l=null,a=null;if(null!==(t=t.firstBaseUpdate)){do{var u={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};null===a?l=a=u:a=a.next=u,t=t.next}while(null!==t);null===a?l=a=n:a=a.next=n}else l=a=n;return t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=t)}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function nt(e,n,t,r){var l=e.updateQueue;_i=!1;var a=l.firstBaseUpdate,u=l.lastBaseUpdate,o=l.shared.pending;if(null!==o){l.shared.pending=null;var i=o,s=i.next;i.next=null,null===u?a=s:u.next=s,u=i;var c=e.alternate;null!==c&&(o=(c=c.updateQueue).lastBaseUpdate)!==u&&(null===o?c.firstBaseUpdate=s:o.next=s,c.lastBaseUpdate=i)}if(null!==a){var f=l.baseState;for(u=0,c=s=i=null,o=a;;){var d=o.lane,p=o.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,h=o;switch(d=n,p=t,h.tag){case 1:if("function"==typeof(m=h.payload)){f=m.call(p,f,d);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(d="function"==typeof(m=h.payload)?m.call(p,f,d):m))break e;f=La({},f,d);break e;case 2:_i=!0}}null!==o.callback&&0!==o.lane&&(e.flags|=64,null===(d=l.effects)?l.effects=[o]:d.push(o))}else p={eventTime:p,lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===c?(s=c=p,i=f):c=c.next=p,u|=d;if(null===(o=o.next)){if(null===(o=l.shared.pending))break;o=(d=o).next,d.next=null,l.lastBaseUpdate=d,l.shared.pending=null}}if(null===c&&(i=f),l.baseState=i,l.firstBaseUpdate=s,l.lastBaseUpdate=c,null!==(n=l.shared.interleaved)){l=n;do{u|=l.lane,l=l.next}while(l!==n)}else null===a&&(l.shared.lanes=0);Ns|=u,e.lanes=u,e.memoizedState=f}}function tt(e,n,r){if(e=n.effects,n.effects=null,null!==e)for(n=0;n<e.length;n++){var l=e[n],a=l.callback;if(null!==a){if(l.callback=null,l=r,"function"!=typeof a)throw Error(t(191,a));a.call(l)}}}function rt(e,n,t,r){t=null==(t=t(r,n=e.memoizedState))?n:La({},n,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}function lt(e,n,t,r,l,a,u){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,u):!(n.prototype&&n.prototype.isPureReactComponent&&Oe(t,r)&&Oe(l,a))}function at(e,n,t){var r=!1,l=ti,a=n.contextType;return"object"==typeof a&&null!==a?a=jn(a):(l=wn(n)?ai:ri.current,a=(r=null!=(r=n.contextTypes))?kn(e,l):ti),n=new n(t,a),e.memoizedState=null!==n.state&&void 0!==n.state?n.state:null,n.updater=Ti,e.stateNode=n,n._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),n}function ut(e,n,t,r){e=n.state,"function"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),"function"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&Ti.enqueueReplaceState(n,n.state,null)}function ot(e,n,t,r){var l=e.stateNode;l.props=t,l.state=e.memoizedState,l.refs=Li,Yn(e);var a=n.contextType;"object"==typeof a&&null!==a?l.context=jn(a):(a=wn(n)?ai:ri.current,l.context=kn(e,a)),l.state=e.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(rt(e,n,a,t),l.state=e.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof l.getSnapshotBeforeUpdate||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||(n=l.state,"function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),n!==l.state&&Ti.enqueueReplaceState(l,l.state,null),nt(e,t,l,r),l.state=e.memoizedState),"function"==typeof l.componentDidMount&&(e.flags|=4194308)}function it(e,n,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(t(309));var l=r.stateNode}if(!l)throw Error(t(147,e));var a=l,u=""+e;return null!==n&&null!==n.ref&&"function"==typeof n.ref&&n.ref._stringRef===u?n.ref:(n=function(e){var n=a.refs;n===Li&&(n=a.refs={}),null===e?delete n[u]:n[u]=e},n._stringRef=u,n)}if("string"!=typeof e)throw Error(t(284));if(!r._owner)throw Error(t(290,e))}return e}function st(e,n){throw e=Object.prototype.toString.call(n),Error(t(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function ct(e){return(0,e._init)(e._payload)}function ft(e){function n(n,t){if(e){var r=n.deletions;null===r?(n.deletions=[t],n.flags|=16):r.push(t)}}function r(t,r){if(!e)return null;for(;null!==r;)n(t,r),r=r.sibling;return null}function l(e,n){for(e=new Map;null!==n;)null!==n.key?e.set(n.key,n):e.set(n.index,n),n=n.sibling;return e}function a(e,n){return(e=Rl(e,n)).index=0,e.sibling=null,e}function u(n,t,r){return n.index=r,e?null!==(r=n.alternate)?(r=r.index)<t?(n.flags|=2,t):r:(n.flags|=2,t):(n.flags|=1048576,t)}function i(n){return e&&null===n.alternate&&(n.flags|=2),n}function s(e,n,t,r){return null===n||6!==n.tag?((n=Ul(t,e.mode,r)).return=e,n):((n=a(n,t)).return=e,n)}function c(e,n,t,r){var l=t.type;return l===ha?d(e,n,t.props.children,r,t.key):null!==n&&(n.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===Ea&&ct(l)===n.type)?((r=a(n,t.props)).ref=it(e,n,t),r.return=e,r):((r=Dl(t.type,t.key,t.props,null,e.mode,r)).ref=it(e,n,t),r.return=e,r)}function f(e,n,t,r){return null===n||4!==n.tag||n.stateNode.containerInfo!==t.containerInfo||n.stateNode.implementation!==t.implementation?((n=Vl(t,e.mode,r)).return=e,n):((n=a(n,t.children||[])).return=e,n)}function d(e,n,t,r,l){return null===n||7!==n.tag?((n=Ol(t,e.mode,r,l)).return=e,n):((n=a(n,t)).return=e,n)}function p(e,n,t){if("string"==typeof n&&""!==n||"number"==typeof n)return(n=Ul(""+n,e.mode,t)).return=e,n;if("object"==typeof n&&null!==n){switch(n.$$typeof){case pa:return(t=Dl(n.type,n.key,n.props,null,e.mode,t)).ref=it(e,null,n),t.return=e,t;case ma:return(n=Vl(n,e.mode,t)).return=e,n;case Ea:return p(e,(0,n._init)(n._payload),t)}if(Ma(n)||o(n))return(n=Ol(n,e.mode,t,null)).return=e,n;st(e,n)}return null}function m(e,n,t,r){var l=null!==n?n.key:null;if("string"==typeof t&&""!==t||"number"==typeof t)return null!==l?null:s(e,n,""+t,r);if("object"==typeof t&&null!==t){switch(t.$$typeof){case pa:return t.key===l?c(e,n,t,r):null;case ma:return t.key===l?f(e,n,t,r):null;case Ea:return m(e,n,(l=t._init)(t._payload),r)}if(Ma(t)||o(t))return null!==l?null:d(e,n,t,r,null);st(e,t)}return null}function h(e,n,t,r,l){if("string"==typeof r&&""!==r||"number"==typeof r)return s(n,e=e.get(t)||null,""+r,l);if("object"==typeof r&&null!==r){switch(r.$$typeof){case pa:return c(n,e=e.get(null===r.key?t:r.key)||null,r,l);case ma:return f(n,e=e.get(null===r.key?t:r.key)||null,r,l);case Ea:return h(e,n,t,(0,r._init)(r._payload),l)}if(Ma(r)||o(r))return d(n,e=e.get(t)||null,r,l,null);st(n,r)}return null}function g(t,a,o,i){for(var s=null,c=null,f=a,d=a=0,g=null;null!==f&&d<o.length;d++){f.index>d?(g=f,f=null):g=f.sibling;var v=m(t,f,o[d],i);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&n(t,f),a=u(v,a,d),null===c?s=v:c.sibling=v,c=v,f=g}if(d===o.length)return r(t,f),ki&&Pn(t,d),s;if(null===f){for(;d<o.length;d++)null!==(f=p(t,o[d],i))&&(a=u(f,a,d),null===c?s=f:c.sibling=f,c=f);return ki&&Pn(t,d),s}for(f=l(t,f);d<o.length;d++)null!==(g=h(f,t,d,o[d],i))&&(e&&null!==g.alternate&&f.delete(null===g.key?d:g.key),a=u(g,a,d),null===c?s=g:c.sibling=g,c=g);return e&&f.forEach((function(e){return n(t,e)})),ki&&Pn(t,d),s}function v(a,i,s,c){var f=o(s);if("function"!=typeof f)throw Error(t(150));if(null==(s=f.call(s)))throw Error(t(151));for(var d=f=null,g=i,v=i=0,y=null,b=s.next();null!==g&&!b.done;v++,b=s.next()){g.index>v?(y=g,g=null):y=g.sibling;var k=m(a,g,b.value,c);if(null===k){null===g&&(g=y);break}e&&g&&null===k.alternate&&n(a,g),i=u(k,i,v),null===d?f=k:d.sibling=k,d=k,g=y}if(b.done)return r(a,g),ki&&Pn(a,v),f;if(null===g){for(;!b.done;v++,b=s.next())null!==(b=p(a,b.value,c))&&(i=u(b,i,v),null===d?f=b:d.sibling=b,d=b);return ki&&Pn(a,v),f}for(g=l(a,g);!b.done;v++,b=s.next())null!==(b=h(g,a,v,b.value,c))&&(e&&null!==b.alternate&&g.delete(null===b.key?v:b.key),i=u(b,i,v),null===d?f=b:d.sibling=b,d=b);return e&&g.forEach((function(e){return n(a,e)})),ki&&Pn(a,v),f}return function e(t,l,u,s){if("object"==typeof u&&null!==u&&u.type===ha&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case pa:e:{for(var c=u.key,f=l;null!==f;){if(f.key===c){if((c=u.type)===ha){if(7===f.tag){r(t,f.sibling),(l=a(f,u.props.children)).return=t,t=l;break e}}else if(f.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===Ea&&ct(c)===f.type){r(t,f.sibling),(l=a(f,u.props)).ref=it(t,f,u),l.return=t,t=l;break e}r(t,f);break}n(t,f),f=f.sibling}u.type===ha?((l=Ol(u.props.children,t.mode,s,u.key)).return=t,t=l):((s=Dl(u.type,u.key,u.props,null,t.mode,s)).ref=it(t,l,u),s.return=t,t=s)}return i(t);case ma:e:{for(f=u.key;null!==l;){if(l.key===f){if(4===l.tag&&l.stateNode.containerInfo===u.containerInfo&&l.stateNode.implementation===u.implementation){r(t,l.sibling),(l=a(l,u.children||[])).return=t,t=l;break e}r(t,l);break}n(t,l),l=l.sibling}(l=Vl(u,t.mode,s)).return=t,t=l}return i(t);case Ea:return e(t,l,(f=u._init)(u._payload),s)}if(Ma(u))return g(t,l,u,s);if(o(u))return v(t,l,u,s);st(t,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==l&&6===l.tag?(r(t,l.sibling),(l=a(l,u)).return=t,t=l):(r(t,l),(l=Ul(u,t.mode,s)).return=t,t=l),i(t)):r(t,l)}}function dt(e){if(e===Ri)throw Error(t(174));return e}function pt(e,n){switch(bn(Ii,n),bn(Oi,e),bn(Di,Ri),e=n.nodeType){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:L(null,"");break;default:n=L(n=(e=8===e?n.parentNode:n).namespaceURI||null,e=e.tagName)}yn(Di),bn(Di,n)}function mt(e){yn(Di),yn(Oi),yn(Ii)}function ht(e){dt(Ii.current);var n=dt(Di.current),t=L(n,e.type);n!==t&&(bn(Oi,e),bn(Di,t))}function gt(e){Oi.current===e&&(yn(Di),yn(Oi))}function vt(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||"$?"===t.data||"$!"===t.data))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function yt(){for(var e=0;e<Vi.length;e++)Vi[e]._workInProgressVersionPrimary=null;Vi.length=0}function bt(){throw Error(t(321))}function kt(e,n){if(null===n)return!1;for(var t=0;t<n.length&&t<e.length;t++)if(!wo(e[t],n[t]))return!1;return!0}function wt(e,n,r,l,a,u){if(Wi=u,Hi=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Ai.current=null===e||null===e.memoizedState?Gi:Zi,e=r(l,a),qi){u=0;do{if(qi=!1,Ki=0,25<=u)throw Error(t(301));u+=1,ji=Qi=null,n.updateQueue=null,Ai.current=Ji,e=r(l,a)}while(qi)}if(Ai.current=Xi,n=null!==Qi&&null!==Qi.next,Wi=0,ji=Qi=Hi=null,$i=!1,n)throw Error(t(300));return e}function St(){var e=0!==Ki;return Ki=0,e}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ji?Hi.memoizedState=ji=e:ji=ji.next=e,ji}function Et(){if(null===Qi){var e=Hi.alternate;e=null!==e?e.memoizedState:null}else e=Qi.next;var n=null===ji?Hi.memoizedState:ji.next;if(null!==n)ji=n,Qi=e;else{if(null===e)throw Error(t(310));e={memoizedState:(Qi=e).memoizedState,baseState:Qi.baseState,baseQueue:Qi.baseQueue,queue:Qi.queue,next:null},null===ji?Hi.memoizedState=ji=e:ji=ji.next=e}return ji}function Ct(e,n){return"function"==typeof n?n(e):n}function zt(e,n,r){if(null===(r=(n=Et()).queue))throw Error(t(311));r.lastRenderedReducer=e;var l=Qi,a=l.baseQueue,u=r.pending;if(null!==u){if(null!==a){var o=a.next;a.next=u.next,u.next=o}l.baseQueue=a=u,r.pending=null}if(null!==a){u=a.next,l=l.baseState;var i=o=null,s=null,c=u;do{var f=c.lane;if((Wi&f)===f)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),l=c.hasEagerState?c.eagerState:e(l,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(i=s=d,o=l):s=s.next=d,Hi.lanes|=f,Ns|=f}c=c.next}while(null!==c&&c!==u);null===s?o=l:s.next=i,wo(l,n.memoizedState)||(ts=!0),n.memoizedState=l,n.baseState=o,n.baseQueue=s,r.lastRenderedState=l}if(null!==(e=r.interleaved)){a=e;do{u=a.lane,Hi.lanes|=u,Ns|=u,a=a.next}while(a!==e)}else null===a&&(r.lanes=0);return[n.memoizedState,r.dispatch]}function Nt(e,n,r){if(null===(r=(n=Et()).queue))throw Error(t(311));r.lastRenderedReducer=e;var l=r.dispatch,a=r.pending,u=n.memoizedState;if(null!==a){r.pending=null;var o=a=a.next;do{u=e(u,o.action),o=o.next}while(o!==a);wo(u,n.memoizedState)||(ts=!0),n.memoizedState=u,null===n.baseQueue&&(n.baseState=u),r.lastRenderedState=u}return[u,l]}function Pt(e,n,t){}function _t(e,n,r){r=Hi;var l=Et(),a=n(),u=!wo(l.memoizedState,a);if(u&&(l.memoizedState=a,ts=!0),l=l.queue,Bt(Mt.bind(null,r,l,e),[e]),l.getSnapshot!==n||u||null!==ji&&1&ji.memoizedState.tag){if(r.flags|=2048,Ot(9,Tt.bind(null,r,l,a,n),void 0,null),null===ks)throw Error(t(349));0!=(30&Wi)||Lt(r,n,a)}return a}function Lt(e,n,t){e.flags|=16384,e={getSnapshot:n,value:t},null===(n=Hi.updateQueue)?(n={lastEffect:null,stores:null},Hi.updateQueue=n,n.stores=[e]):null===(t=n.stores)?n.stores=[e]:t.push(e)}function Tt(e,n,t,r){n.value=t,n.getSnapshot=r,Ft(n)&&Rt(e)}function Mt(e,n,t){return t((function(){Ft(n)&&Rt(e)}))}function Ft(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!wo(e,t)}catch(e){return!0}}function Rt(e){var n=Kn(e,1);null!==n&&al(n,e,1,-1)}function Dt(e){var n=xt();return"function"==typeof e&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ct,lastRenderedState:e},n.queue=e,e=e.dispatch=Jt.bind(null,Hi,e),[n.memoizedState,e]}function Ot(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},null===(n=Hi.updateQueue)?(n={lastEffect:null,stores:null},Hi.updateQueue=n,n.lastEffect=e.next=e):null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function It(e){return Et().memoizedState}function Ut(e,n,t,r){var l=xt();Hi.flags|=e,l.memoizedState=Ot(1|n,t,void 0,void 0===r?null:r)}function Vt(e,n,t,r){var l=Et();r=void 0===r?null:r;var a=void 0;if(null!==Qi){var u=Qi.memoizedState;if(a=u.destroy,null!==r&&kt(r,u.deps))return void(l.memoizedState=Ot(n,t,a,r))}Hi.flags|=e,l.memoizedState=Ot(1|n,t,a,r)}function At(e,n){return Ut(8390656,8,e,n)}function Bt(e,n){return Vt(2048,8,e,n)}function Wt(e,n){return Vt(4,2,e,n)}function Ht(e,n){return Vt(4,4,e,n)}function Qt(e,n){return"function"==typeof n?(e=e(),n(e),function(){n(null)}):null!=n?(e=e(),n.current=e,function(){n.current=null}):void 0}function jt(e,n,t){return t=null!=t?t.concat([e]):null,Vt(4,4,Qt.bind(null,n,e),t)}function $t(e,n){}function qt(e,n){var t=Et();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&kt(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Kt(e,n){var t=Et();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&kt(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function Yt(e,n,t){return 0==(21&Wi)?(e.baseState&&(e.baseState=!1,ts=!0),e.memoizedState=t):(wo(t,n)||(t=Z(),Hi.lanes|=t,Ns|=t,e.baseState=!0),n)}function Xt(e,n,t){xu=0!==(t=xu)&&4>t?t:4,e(!0);var r=Bi.transition;Bi.transition={};try{e(!1),n()}finally{xu=t,Bi.transition=r}}function Gt(){return Et().memoizedState}function Zt(e,n,t){var r=ll(e);t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},er(e)?nr(n,t):null!==(t=qn(e,n,t,r))&&(al(t,e,r,rl()),tr(t,n,r))}function Jt(e,n,t){var r=ll(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(er(e))nr(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var u=n.lastRenderedState,o=a(u,t);if(l.hasEagerState=!0,l.eagerState=o,wo(o,u)){var i=n.interleaved;return null===i?(l.next=l,$n(n)):(l.next=i.next,i.next=l),void(n.interleaved=l)}}catch(e){}null!==(t=qn(e,n,l,r))&&(al(t,e,r,l=rl()),tr(t,n,r))}}function er(e){var n=e.alternate;return e===Hi||null!==n&&n===Hi}function nr(e,n){qi=$i=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function tr(e,n,t){if(0!=(4194240&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,ne(e,t)}}function rr(e,n){try{var t="",r=n;do{t+=c(r),r=r.return}while(r);var l=t}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:n,stack:l,digest:null}}function lr(e,n,t){return{value:e,source:null,stack:null!=t?t:null,digest:null!=n?n:null}}function ar(e,n){try{console.error(n.value)}catch(e){setTimeout((function(){throw e}))}}function ur(e,n,t){(t=Gn(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){Ds||(Ds=!0,Os=r),ar(0,n)},t}function or(e,n,t){(t=Gn(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){ar(0,n)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){ar(0,n),"function"!=typeof r&&(null===Is?Is=new Set([this]):Is.add(this));var e=n.stack;this.componentDidCatch(n.value,{componentStack:null!==e?e:""})}),t}function ir(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new es;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=Nl.bind(null,e,n,t),n.then(e,e))}function sr(e){do{var n;if((n=13===e.tag)&&(n=null===(n=e.memoizedState)||null!==n.dehydrated),n)return e;e=e.return}while(null!==e);return null}function cr(e,n,t,r,l){return 0==(1&e.mode)?(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,1===t.tag&&(null===t.alternate?t.tag=17:((n=Gn(-1,1)).tag=2,Zn(t,n,1))),t.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}function fr(e,n,t,r){n.child=null===e?Fi(n,null,t,r):Mi(n,e.child,t,r)}function dr(e,n,t,r,l){t=t.render;var a=n.ref;return Qn(n,l),r=wt(e,n,t,r,a,l),t=St(),null===e||ts?(ki&&t&&Ln(n),n.flags|=1,fr(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Lr(e,n,l))}function pr(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||Fl(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=Dl(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,mr(e,n,a,r,l))}if(a=e.child,0==(e.lanes&l)){var u=a.memoizedProps;if((t=null!==(t=t.compare)?t:Oe)(u,r)&&e.ref===n.ref)return Lr(e,n,l)}return n.flags|=1,(e=Rl(a,r)).ref=n.ref,e.return=n,n.child=e}function mr(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(Oe(a,r)&&e.ref===n.ref){if(ts=!1,n.pendingProps=r=a,0==(e.lanes&l))return n.lanes=e.lanes,Lr(e,n,l);0!=(131072&e.flags)&&(ts=!0)}}return vr(e,n,t,r,l)}function hr(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},bn(Es,xs),xs|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,bn(Es,xs),xs|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:t,bn(Es,xs),xs|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,bn(Es,xs),xs|=r;return fr(e,n,l,t),n.child}function gr(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function vr(e,n,t,r,l){var a=wn(t)?ai:ri.current;return a=kn(n,a),Qn(n,l),t=wt(e,n,t,r,a,l),r=St(),null===e||ts?(ki&&r&&Ln(n),n.flags|=1,fr(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Lr(e,n,l))}function yr(e,n,t,r,l){if(wn(t)){var a=!0;En(n)}else a=!1;if(Qn(n,l),null===n.stateNode)_r(e,n),at(n,t,r),ot(n,t,r,l),r=!0;else if(null===e){var u=n.stateNode,o=n.memoizedProps;u.props=o;var i=u.context,s=t.contextType;s="object"==typeof s&&null!==s?jn(s):kn(n,s=wn(t)?ai:ri.current);var c=t.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof u.getSnapshotBeforeUpdate;f||"function"!=typeof u.UNSAFE_componentWillReceiveProps&&"function"!=typeof u.componentWillReceiveProps||(o!==r||i!==s)&&ut(n,u,r,s),_i=!1;var d=n.memoizedState;u.state=d,nt(n,r,u,l),i=n.memoizedState,o!==r||d!==i||li.current||_i?("function"==typeof c&&(rt(n,t,c,r),i=n.memoizedState),(o=_i||lt(n,t,o,r,d,i,s))?(f||"function"!=typeof u.UNSAFE_componentWillMount&&"function"!=typeof u.componentWillMount||("function"==typeof u.componentWillMount&&u.componentWillMount(),"function"==typeof u.UNSAFE_componentWillMount&&u.UNSAFE_componentWillMount()),"function"==typeof u.componentDidMount&&(n.flags|=4194308)):("function"==typeof u.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=i),u.props=r,u.state=i,u.context=s,r=o):("function"==typeof u.componentDidMount&&(n.flags|=4194308),r=!1)}else{u=n.stateNode,Xn(e,n),o=n.memoizedProps,s=n.type===n.elementType?o:An(n.type,o),u.props=s,f=n.pendingProps,d=u.context,i="object"==typeof(i=t.contextType)&&null!==i?jn(i):kn(n,i=wn(t)?ai:ri.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof u.getSnapshotBeforeUpdate)||"function"!=typeof u.UNSAFE_componentWillReceiveProps&&"function"!=typeof u.componentWillReceiveProps||(o!==f||d!==i)&&ut(n,u,r,i),_i=!1,d=n.memoizedState,u.state=d,nt(n,r,u,l);var m=n.memoizedState;o!==f||d!==m||li.current||_i?("function"==typeof p&&(rt(n,t,p,r),m=n.memoizedState),(s=_i||lt(n,t,s,r,d,m,i)||!1)?(c||"function"!=typeof u.UNSAFE_componentWillUpdate&&"function"!=typeof u.componentWillUpdate||("function"==typeof u.componentWillUpdate&&u.componentWillUpdate(r,m,i),"function"==typeof u.UNSAFE_componentWillUpdate&&u.UNSAFE_componentWillUpdate(r,m,i)),"function"==typeof u.componentDidUpdate&&(n.flags|=4),"function"==typeof u.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof u.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof u.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=m),u.props=r,u.state=m,u.context=i,r=s):("function"!=typeof u.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof u.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return br(e,n,t,r,a,l)}function br(e,n,t,r,l,a){gr(e,n);var u=0!=(128&n.flags);if(!r&&!u)return l&&Cn(n,t,!1),Lr(e,n,a);r=n.stateNode,ns.current=n;var o=u&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&u?(n.child=Mi(n,e.child,null,a),n.child=Mi(n,null,o,a)):fr(e,n,o,a),n.memoizedState=r.state,l&&Cn(n,t,!0),n.child}function kr(e){var n=e.stateNode;n.pendingContext?Sn(0,n.pendingContext,n.pendingContext!==n.context):n.context&&Sn(0,n.context,!1),pt(e,n.containerInfo)}function wr(e,n,t,r,l){return Un(),Vn(l),n.flags|=256,fr(e,n,t,r),n.child}function Sr(e){return{baseLanes:e,cachePool:null,transitions:null}}function xr(e,n,r){var l,a=n.pendingProps,u=Ui.current,o=!1,i=0!=(128&n.flags);if((l=i)||(l=(null===e||null!==e.memoizedState)&&0!=(2&u)),l?(o=!0,n.flags&=-129):null!==e&&null===e.memoizedState||(u|=1),bn(Ui,1&u),null===e)return Dn(n),null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&n.mode)?n.lanes=1:"$!"===e.data?n.lanes=8:n.lanes=1073741824,null):(i=a.children,e=a.fallback,o?(a=n.mode,o=n.child,i={mode:"hidden",children:i},0==(1&a)&&null!==o?(o.childLanes=0,o.pendingProps=i):o=Il(i,a,0,null),e=Ol(e,a,r,null),o.return=n,e.return=n,o.sibling=e,n.child=o,n.child.memoizedState=Sr(r),n.memoizedState=rs,e):Er(n,i));if(null!==(u=e.memoizedState)&&null!==(l=u.dehydrated))return function(e,n,r,l,a,u,o){if(r)return 256&n.flags?(n.flags&=-257,Cr(e,n,o,l=lr(Error(t(422))))):null!==n.memoizedState?(n.child=e.child,n.flags|=128,null):(u=l.fallback,a=n.mode,l=Il({mode:"visible",children:l.children},a,0,null),(u=Ol(u,a,o,null)).flags|=2,l.return=n,u.return=n,l.sibling=u,n.child=l,0!=(1&n.mode)&&Mi(n,e.child,null,o),n.child.memoizedState=Sr(o),n.memoizedState=rs,u);if(0==(1&n.mode))return Cr(e,n,o,null);if("$!"===a.data){if(l=a.nextSibling&&a.nextSibling.dataset)var i=l.dgst;return l=i,Cr(e,n,o,l=lr(u=Error(t(419)),l,void 0))}if(i=0!=(o&e.childLanes),ts||i){if(null!==(l=ks)){switch(o&-o){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!=(a&(l.suspendedLanes|o))?0:a)&&a!==u.retryLane&&(u.retryLane=a,Kn(e,a),al(l,e,a,-1))}return vl(),Cr(e,n,o,l=lr(Error(t(421))))}return"$?"===a.data?(n.flags|=128,n.child=e.child,n=_l.bind(null,e),a._reactRetry=n,null):(e=u.treeContext,bi=fn(a.nextSibling),yi=n,ki=!0,wi=null,null!==e&&(pi[mi++]=gi,pi[mi++]=vi,pi[mi++]=hi,gi=e.id,vi=e.overflow,hi=n),(n=Er(n,l.children)).flags|=4096,n)}(e,n,i,a,l,u,r);if(o){o=a.fallback,i=n.mode,l=(u=e.child).sibling;var s={mode:"hidden",children:a.children};return 0==(1&i)&&n.child!==u?((a=n.child).childLanes=0,a.pendingProps=s,n.deletions=null):(a=Rl(u,s)).subtreeFlags=14680064&u.subtreeFlags,null!==l?o=Rl(l,o):(o=Ol(o,i,r,null)).flags|=2,o.return=n,a.return=n,a.sibling=o,n.child=a,a=o,o=n.child,i=null===(i=e.child.memoizedState)?Sr(r):{baseLanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~r,n.memoizedState=rs,a}return e=(o=e.child).sibling,a=Rl(o,{mode:"visible",children:a.children}),0==(1&n.mode)&&(a.lanes=r),a.return=n,a.sibling=null,null!==e&&(null===(r=n.deletions)?(n.deletions=[e],n.flags|=16):r.push(e)),n.child=a,n.memoizedState=null,a}function Er(e,n,t){return(n=Il({mode:"visible",children:n},e.mode,0,null)).return=e,e.child=n}function Cr(e,n,t,r){return null!==r&&Vn(r),Mi(n,e.child,null,t),(e=Er(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function zr(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),Hn(e.return,n,t)}function Nr(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function Pr(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(fr(e,n,r.children,t),0!=(2&(r=Ui.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zr(e,t,n);else if(19===e.tag)zr(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(bn(Ui,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===vt(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),Nr(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===vt(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}Nr(n,!0,t,null,a);break;case"together":Nr(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function _r(e,n){0==(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Lr(e,n,r){if(null!==e&&(n.dependencies=e.dependencies),Ns|=n.lanes,0==(r&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error(t(153));if(null!==n.child){for(r=Rl(e=n.child,e.pendingProps),n.child=r,r.return=n;null!==e.sibling;)e=e.sibling,(r=r.sibling=Rl(e,e.pendingProps)).return=n;r.sibling=null}return n.child}function Tr(e,n){if(!ki)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Mr(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function Fr(e,n,r){var l=n.pendingProps;switch(Tn(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mr(n),null;case 1:case 17:return wn(n.type)&&(yn(li),yn(ri)),Mr(n),null;case 3:return l=n.stateNode,mt(),yn(li),yn(ri),yt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||(In(n)?n.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,null!==wi&&(sl(wi),wi=null))),as(e,n),Mr(n),null;case 5:gt(n);var a=dt(Ii.current);if(r=n.type,null!==e&&null!=n.stateNode)us(e,n,r,l,a),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!l){if(null===n.stateNode)throw Error(t(166));return Mr(n),null}if(e=dt(Di.current),In(n)){l=n.stateNode,r=n.type;var o=n.memoizedProps;switch(l[Ko]=n,l[Yo]=o,e=0!=(1&n.mode),r){case"dialog":Ye("cancel",l),Ye("close",l);break;case"iframe":case"object":case"embed":Ye("load",l);break;case"video":case"audio":for(a=0;a<Oo.length;a++)Ye(Oo[a],l);break;case"source":Ye("error",l);break;case"img":case"image":case"link":Ye("error",l),Ye("load",l);break;case"details":Ye("toggle",l);break;case"input":b(l,o),Ye("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!o.multiple},Ye("invalid",l);break;case"textarea":z(l,o),Ye("invalid",l)}for(var i in F(r,o),a=null,o)if(o.hasOwnProperty(i)){var s=o[i];"children"===i?"string"==typeof s?l.textContent!==s&&(!0!==o.suppressHydrationWarning&&an(l.textContent,s,e),a=["children",s]):"number"==typeof s&&l.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&an(l.textContent,s,e),a=["children",""+s]):ra.hasOwnProperty(i)&&null!=s&&"onScroll"===i&&Ye("scroll",l)}switch(r){case"input":h(l),S(l,o,!0);break;case"textarea":h(l),P(l);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(l.onclick=un)}l=a,n.updateQueue=l,null!==l&&(n.flags|=4)}else{i=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=_(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof l.is?e=i.createElement(r,{is:l.is}):(e=i.createElement(r),"select"===r&&(i=e,l.multiple?i.multiple=!0:l.size&&(i.size=l.size))):e=i.createElementNS(e,r),e[Ko]=n,e[Yo]=l,ls(e,n,!1,!1),n.stateNode=e;e:{switch(i=R(r,l),r){case"dialog":Ye("cancel",e),Ye("close",e),a=l;break;case"iframe":case"object":case"embed":Ye("load",e),a=l;break;case"video":case"audio":for(a=0;a<Oo.length;a++)Ye(Oo[a],e);a=l;break;case"source":Ye("error",e),a=l;break;case"img":case"image":case"link":Ye("error",e),Ye("load",e),a=l;break;case"details":Ye("toggle",e),a=l;break;case"input":b(e,l),a=y(e,l),Ye("invalid",e);break;case"option":default:a=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},a=La({},l,{value:void 0}),Ye("invalid",e);break;case"textarea":z(e,l),a=C(e,l),Ye("invalid",e)}for(o in F(r,a),s=a)if(s.hasOwnProperty(o)){var c=s[o];"style"===o?M(e,c):"dangerouslySetInnerHTML"===o?null!=(c=c?c.__html:void 0)&&Fa(e,c):"children"===o?"string"==typeof c?("textarea"!==r||""!==c)&&Ra(e,c):"number"==typeof c&&Ra(e,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(ra.hasOwnProperty(o)?null!=c&&"onScroll"===o&&Ye("scroll",e):null!=c&&u(e,o,c,i))}switch(r){case"input":h(e),S(e,l,!1);break;case"textarea":h(e),P(e);break;case"option":null!=l.value&&e.setAttribute("value",""+p(l.value));break;case"select":e.multiple=!!l.multiple,null!=(o=l.value)?E(e,!!l.multiple,o,!1):null!=l.defaultValue&&E(e,!!l.multiple,l.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=un)}switch(r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(n.flags|=4)}null!==n.ref&&(n.flags|=512,n.flags|=2097152)}return Mr(n),null;case 6:if(e&&null!=n.stateNode)os(e,n,e.memoizedProps,l);else{if("string"!=typeof l&&null===n.stateNode)throw Error(t(166));if(r=dt(Ii.current),dt(Di.current),In(n)){if(l=n.stateNode,r=n.memoizedProps,l[Ko]=n,(o=l.nodeValue!==r)&&null!==(e=yi))switch(e.tag){case 3:an(l.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&an(l.nodeValue,r,0!=(1&e.mode))}o&&(n.flags|=4)}else(l=(9===r.nodeType?r:r.ownerDocument).createTextNode(l))[Ko]=n,n.stateNode=l}return Mr(n),null;case 13:if(yn(Ui),l=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ki&&null!==bi&&0!=(1&n.mode)&&0==(128&n.flags)){for(o=bi;o;)o=fn(o.nextSibling);Un(),n.flags|=98560,o=!1}else if(o=In(n),null!==l&&null!==l.dehydrated){if(null===e){if(!o)throw Error(t(318));if(!(o=null!==(o=n.memoizedState)?o.dehydrated:null))throw Error(t(317));o[Ko]=n}else Un(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;Mr(n),o=!1}else null!==wi&&(sl(wi),wi=null),o=!0;if(!o)return 65536&n.flags?n:null}return 0!=(128&n.flags)?(n.lanes=r,n):((l=null!==l)!=(null!==e&&null!==e.memoizedState)&&l&&(n.child.flags|=8192,0!=(1&n.mode)&&(null===e||0!=(1&Ui.current)?0===Cs&&(Cs=3):vl())),null!==n.updateQueue&&(n.flags|=4),Mr(n),null);case 4:return mt(),as(e,n),null===e&&Ge(n.stateNode.containerInfo),Mr(n),null;case 10:return Wn(n.type._context),Mr(n),null;case 19:if(yn(Ui),null===(o=n.memoizedState))return Mr(n),null;if(l=0!=(128&n.flags),null===(i=o.rendering))if(l)Tr(o,!1);else{if(0!==Cs||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(i=vt(e))){for(n.flags|=128,Tr(o,!1),null!==(l=i.updateQueue)&&(n.updateQueue=l,n.flags|=4),n.subtreeFlags=0,l=r,r=n.child;null!==r;)e=l,(o=r).flags&=14680066,null===(i=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return bn(Ui,1&Ui.current|2),n.child}e=e.sibling}null!==o.tail&&su()>Fs&&(n.flags|=128,l=!0,Tr(o,!1),n.lanes=4194304)}else{if(!l)if(null!==(e=vt(i))){if(n.flags|=128,l=!0,null!==(r=e.updateQueue)&&(n.updateQueue=r,n.flags|=4),Tr(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate&&!ki)return Mr(n),null}else 2*su()-o.renderingStartTime>Fs&&1073741824!==r&&(n.flags|=128,l=!0,Tr(o,!1),n.lanes=4194304);o.isBackwards?(i.sibling=n.child,n.child=i):(null!==(r=o.last)?r.sibling=i:n.child=i,o.last=i)}return null!==o.tail?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=su(),n.sibling=null,r=Ui.current,bn(Ui,l?1&r|2:1&r),n):(Mr(n),null);case 22:case 23:return xs=Es.current,yn(Es),l=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==l&&(n.flags|=8192),l&&0!=(1&n.mode)?0!=(1073741824&xs)&&(Mr(n),6&n.subtreeFlags&&(n.flags|=8192)):Mr(n),null;case 24:case 25:return null}throw Error(t(156,n.tag))}function Rr(e,n,r){switch(Tn(n),n.tag){case 1:return wn(n.type)&&(yn(li),yn(ri)),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return mt(),yn(li),yn(ri),yt(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return gt(n),null;case 13:if(yn(Ui),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(t(340));Un()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return yn(Ui),null;case 4:return mt(),null;case 10:return Wn(n.type._context),null;case 22:case 23:return xs=Es.current,yn(Es),null;default:return null}}function Dr(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){zl(e,n,t)}else t.current=null}function Or(e,n,t){try{t()}catch(t){zl(e,n,t)}}function Ir(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&Or(n,t,a)}l=l.next}while(l!==r)}}function Ur(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Vr(e){var n=e.ref;if(null!==n){var t=e.stateNode;e.tag,e=t,"function"==typeof n?n(e):n.current=e}}function Ar(e){var n=e.alternate;null!==n&&(e.alternate=null,Ar(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(n=e.stateNode)&&(delete n[Ko],delete n[Yo],delete n[Go],delete n[Zo],delete n[Jo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Br(e){return 5===e.tag||3===e.tag||4===e.tag}function Wr(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Br(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Hr(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?8===t.nodeType?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(8===t.nodeType?(n=t.parentNode).insertBefore(e,t):(n=t).appendChild(e),null!=(t=t._reactRootContainer)||null!==n.onclick||(n.onclick=un));else if(4!==r&&null!==(e=e.child))for(Hr(e,n,t),e=e.sibling;null!==e;)Hr(e,n,t),e=e.sibling}function Qr(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Qr(e,n,t),e=e.sibling;null!==e;)Qr(e,n,t),e=e.sibling}function jr(e,n,t){for(t=t.child;null!==t;)$r(e,n,t),t=t.sibling}function $r(e,n,t){if(vu&&"function"==typeof vu.onCommitFiberUnmount)try{vu.onCommitFiberUnmount(gu,t)}catch(e){}switch(t.tag){case 5:ss||Dr(t,n);case 6:var r=ps,l=ms;ps=null,jr(e,n,t),ms=l,null!==(ps=r)&&(ms?(e=ps,t=t.stateNode,8===e.nodeType?e.parentNode.removeChild(t):e.removeChild(t)):ps.removeChild(t.stateNode));break;case 18:null!==ps&&(ms?(e=ps,t=t.stateNode,8===e.nodeType?cn(e.parentNode,t):1===e.nodeType&&cn(e,t),ce(e)):cn(ps,t.stateNode));break;case 4:r=ps,l=ms,ps=t.stateNode.containerInfo,ms=!0,jr(e,n,t),ps=r,ms=l;break;case 0:case 11:case 14:case 15:if(!ss&&null!==(r=t.updateQueue)&&null!==(r=r.lastEffect)){l=r=r.next;do{var a=l,u=a.destroy;a=a.tag,void 0!==u&&(0!=(2&a)||0!=(4&a))&&Or(t,n,u),l=l.next}while(l!==r)}jr(e,n,t);break;case 1:if(!ss&&(Dr(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){zl(t,n,e)}jr(e,n,t);break;case 21:jr(e,n,t);break;case 22:1&t.mode?(ss=(r=ss)||null!==t.memoizedState,jr(e,n,t),ss=r):jr(e,n,t);break;default:jr(e,n,t)}}function qr(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new cs),n.forEach((function(n){var r=Ll.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))}))}}function Kr(e,n,r){if(null!==(r=n.deletions))for(var l=0;l<r.length;l++){var a=r[l];try{var u=e,o=n,i=o;e:for(;null!==i;){switch(i.tag){case 5:ps=i.stateNode,ms=!1;break e;case 3:case 4:ps=i.stateNode.containerInfo,ms=!0;break e}i=i.return}if(null===ps)throw Error(t(160));$r(u,o,a),ps=null,ms=!1;var s=a.alternate;null!==s&&(s.return=null),a.return=null}catch(e){zl(a,n,e)}}if(12854&n.subtreeFlags)for(n=n.child;null!==n;)Yr(n,e),n=n.sibling}function Yr(e,n,r){var l=e.alternate;switch(r=e.flags,e.tag){case 0:case 11:case 14:case 15:if(Kr(n,e),Xr(e),4&r){try{Ir(3,e,e.return),Ur(3,e)}catch(n){zl(e,e.return,n)}try{Ir(5,e,e.return)}catch(n){zl(e,e.return,n)}}break;case 1:Kr(n,e),Xr(e),512&r&&null!==l&&Dr(l,l.return);break;case 5:if(Kr(n,e),Xr(e),512&r&&null!==l&&Dr(l,l.return),32&e.flags){var a=e.stateNode;try{Ra(a,"")}catch(n){zl(e,e.return,n)}}if(4&r&&null!=(a=e.stateNode)){var o=e.memoizedProps,i=null!==l?l.memoizedProps:o,s=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===s&&"radio"===o.type&&null!=o.name&&k(a,o),R(s,i);var f=R(s,o);for(i=0;i<c.length;i+=2){var d=c[i],p=c[i+1];"style"===d?M(a,p):"dangerouslySetInnerHTML"===d?Fa(a,p):"children"===d?Ra(a,p):u(a,d,p,f)}switch(s){case"input":w(a,o);break;case"textarea":N(a,o);break;case"select":var m=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?E(a,!!o.multiple,h,!1):m!==!!o.multiple&&(null!=o.defaultValue?E(a,!!o.multiple,o.defaultValue,!0):E(a,!!o.multiple,o.multiple?[]:"",!1))}a[Yo]=o}catch(n){zl(e,e.return,n)}}break;case 6:if(Kr(n,e),Xr(e),4&r){if(null===e.stateNode)throw Error(t(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(n){zl(e,e.return,n)}}break;case 3:if(Kr(n,e),Xr(e),4&r&&null!==l&&l.memoizedState.isDehydrated)try{ce(n.containerInfo)}catch(n){zl(e,e.return,n)}break;case 4:default:Kr(n,e),Xr(e);break;case 13:Kr(n,e),Xr(e),8192&(a=e.child).flags&&(o=null!==a.memoizedState,a.stateNode.isHidden=o,!o||null!==a.alternate&&null!==a.alternate.memoizedState||(Ms=su())),4&r&&qr(e);break;case 22:if(d=null!==l&&null!==l.memoizedState,1&e.mode?(ss=(f=ss)||d,Kr(n,e),ss=f):Kr(n,e),Xr(e),8192&r){if(f=null!==e.memoizedState,(e.stateNode.isHidden=f)&&!d&&0!=(1&e.mode))for(fs=e,d=e.child;null!==d;){for(p=fs=d;null!==fs;){switch(h=(m=fs).child,m.tag){case 0:case 11:case 14:case 15:Ir(4,m,m.return);break;case 1:Dr(m,m.return);var g=m.stateNode;if("function"==typeof g.componentWillUnmount){r=m,n=m.return;try{l=r,g.props=l.memoizedProps,g.state=l.memoizedState,g.componentWillUnmount()}catch(e){zl(r,n,e)}}break;case 5:Dr(m,m.return);break;case 22:if(null!==m.memoizedState){el(p);continue}}null!==h?(h.return=m,fs=h):el(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{a=p.stateNode,f?"function"==typeof(o=a.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=p.stateNode,i=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,s.style.display=T("display",i))}catch(n){zl(e,e.return,n)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=f?"":p.memoizedProps}catch(n){zl(e,e.return,n)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Kr(n,e),Xr(e),4&r&&qr(e);case 21:}}function Xr(e){var n=e.flags;if(2&n){try{e:{for(var r=e.return;null!==r;){if(Br(r)){var l=r;break e}r=r.return}throw Error(t(160))}switch(l.tag){case 5:var a=l.stateNode;32&l.flags&&(Ra(a,""),l.flags&=-33),Qr(e,Wr(e),a);break;case 3:case 4:var u=l.stateNode.containerInfo;Hr(e,Wr(e),u);break;default:throw Error(t(161))}}catch(n){zl(e,e.return,n)}e.flags&=-3}4096&n&&(e.flags&=-4097)}function Gr(e,n,t){fs=e,Zr(e,n,t)}function Zr(e,n,t){for(var r=0!=(1&e.mode);null!==fs;){var l=fs,a=l.child;if(22===l.tag&&r){var u=null!==l.memoizedState||is;if(!u){var o=l.alternate,i=null!==o&&null!==o.memoizedState||ss;o=is;var s=ss;if(is=u,(ss=i)&&!s)for(fs=l;null!==fs;)i=(u=fs).child,22===u.tag&&null!==u.memoizedState?nl(l):null!==i?(i.return=u,fs=i):nl(l);for(;null!==a;)fs=a,Zr(a,n,t),a=a.sibling;fs=l,is=o,ss=s}Jr(e,n,t)}else 0!=(8772&l.subtreeFlags)&&null!==a?(a.return=l,fs=a):Jr(e,n,t)}}function Jr(e,n,r){for(;null!==fs;){if(0!=(8772&(n=fs).flags)){r=n.alternate;try{if(0!=(8772&n.flags))switch(n.tag){case 0:case 11:case 15:ss||Ur(5,n);break;case 1:var l=n.stateNode;if(4&n.flags&&!ss)if(null===r)l.componentDidMount();else{var a=n.elementType===n.type?r.memoizedProps:An(n.type,r.memoizedProps);l.componentDidUpdate(a,r.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var u=n.updateQueue;null!==u&&tt(n,u,l);break;case 3:var o=n.updateQueue;if(null!==o){if(r=null,null!==n.child)switch(n.child.tag){case 5:case 1:r=n.child.stateNode}tt(n,o,r)}break;case 5:var i=n.stateNode;if(null===r&&4&n.flags){r=i;var s=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();break;case"img":s.src&&(r.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===n.memoizedState){var c=n.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&ce(d)}}}break;default:throw Error(t(163))}ss||512&n.flags&&Vr(n)}catch(e){zl(n,n.return,e)}}if(n===e){fs=null;break}if(null!==(r=n.sibling)){r.return=n.return,fs=r;break}fs=n.return}}function el(e){for(;null!==fs;){var n=fs;if(n===e){fs=null;break}var t=n.sibling;if(null!==t){t.return=n.return,fs=t;break}fs=n.return}}function nl(e){for(;null!==fs;){var n=fs;try{switch(n.tag){case 0:case 11:case 15:var t=n.return;try{Ur(4,n)}catch(e){zl(n,t,e)}break;case 1:var r=n.stateNode;if("function"==typeof r.componentDidMount){var l=n.return;try{r.componentDidMount()}catch(e){zl(n,l,e)}}var a=n.return;try{Vr(n)}catch(e){zl(n,a,e)}break;case 5:var u=n.return;try{Vr(n)}catch(e){zl(n,u,e)}}}catch(e){zl(n,n.return,e)}if(n===e){fs=null;break}var o=n.sibling;if(null!==o){o.return=n.return,fs=o;break}fs=n.return}}function tl(){Fs=su()+500}function rl(){return 0!=(6&bs)?su():-1!==Hs?Hs:Hs=su()}function ll(e){return 0==(1&e.mode)?1:0!=(2&bs)&&0!==Ss?Ss&-Ss:null!==Si.transition?(0===Qs&&(Qs=Z()),Qs):0!==(e=xu)?e:e=void 0===(e=window.event)?16:he(e.type)}function al(e,n,r,l){if(50<Bs)throw Bs=0,Ws=null,Error(t(185));ee(e,r,l),0!=(2&bs)&&e===ks||(e===ks&&(0==(2&bs)&&(Ps|=r),4===Cs&&cl(e,Ss)),ul(e,l),1===r&&0===bs&&0==(1&n.mode)&&(tl(),oi&&Nn()))}function ul(e,n){var t=e.callbackNode;!function(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=e.pendingLanes;0<a;){var u=31-yu(a),o=1<<u,i=l[u];-1===i?0!=(o&t)&&0==(o&r)||(l[u]=X(o,n)):i<=n&&(e.expiredLanes|=o),a&=~o}}(e,n);var r=Y(e,e===ks?Ss:0);if(0===r)null!==t&&uu(t),e.callbackNode=null,e.callbackPriority=0;else if(n=r&-r,e.callbackPriority!==n){if(null!=t&&uu(t),1===n)0===e.tag?function(e){oi=!0,zn(e)}(fl.bind(null,e)):zn(fl.bind(null,e)),$o((function(){0==(6&bs)&&Nn()})),t=null;else{switch(te(r)){case 1:t=fu;break;case 4:t=du;break;case 16:default:t=pu;break;case 536870912:t=hu}t=Tl(t,ol.bind(null,e))}e.callbackPriority=n,e.callbackNode=t}}function ol(e,n){if(Hs=-1,Qs=0,0!=(6&bs))throw Error(t(327));var r=e.callbackNode;if(El()&&e.callbackNode!==r)return null;var l=Y(e,e===ks?Ss:0);if(0===l)return null;if(0!=(30&l)||0!=(l&e.expiredLanes)||n)n=yl(e,l);else{n=l;var a=bs;bs|=2;var u=gl();for(ks===e&&Ss===n||(Rs=null,tl(),ml(e,n));;)try{kl();break}catch(n){hl(e,n)}Bn(),gs.current=u,bs=a,null!==ws?n=0:(ks=null,Ss=0,n=Cs)}if(0!==n){if(2===n&&0!==(a=G(e))&&(l=a,n=il(e,a)),1===n)throw r=zs,ml(e,0),cl(e,l),ul(e,su()),r;if(6===n)cl(e,l);else{if(a=e.current.alternate,0==(30&l)&&!function(e){for(var n=e;;){if(16384&n.flags){var t=n.updateQueue;if(null!==t&&null!==(t=t.stores))for(var r=0;r<t.length;r++){var l=t[r],a=l.getSnapshot;l=l.value;try{if(!wo(a(),l))return!1}catch(e){return!1}}}if(t=n.child,16384&n.subtreeFlags&&null!==t)t.return=n,n=t;else{if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}(a)&&(2===(n=yl(e,l))&&0!==(u=G(e))&&(l=u,n=il(e,u)),1===n))throw r=zs,ml(e,0),cl(e,l),ul(e,su()),r;switch(e.finishedWork=a,e.finishedLanes=l,n){case 0:case 1:throw Error(t(345));case 2:case 5:xl(e,Ts,Rs);break;case 3:if(cl(e,l),(130023424&l)===l&&10<(n=Ms+500-su())){if(0!==Y(e,0))break;if(((a=e.suspendedLanes)&l)!==l){rl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ho(xl.bind(null,e,Ts,Rs),n);break}xl(e,Ts,Rs);break;case 4:if(cl(e,l),(4194240&l)===l)break;for(n=e.eventTimes,a=-1;0<l;){var o=31-yu(l);u=1<<o,(o=n[o])>a&&(a=o),l&=~u}if(l=a,10<(l=(120>(l=su()-l)?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*hs(l/1960))-l)){e.timeoutHandle=Ho(xl.bind(null,e,Ts,Rs),l);break}xl(e,Ts,Rs);break;default:throw Error(t(329))}}}return ul(e,su()),e.callbackNode===r?ol.bind(null,e):null}function il(e,n){var t=Ls;return e.current.memoizedState.isDehydrated&&(ml(e,n).flags|=256),2!==(e=yl(e,n))&&(n=Ts,Ts=t,null!==n&&sl(n)),e}function sl(e){null===Ts?Ts=e:Ts.push.apply(Ts,e)}function cl(e,n){for(n&=~_s,n&=~Ps,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var t=31-yu(n),r=1<<t;e[t]=-1,n&=~r}}function fl(e){if(0!=(6&bs))throw Error(t(327));El();var n=Y(e,0);if(0==(1&n))return ul(e,su()),null;var r=yl(e,n);if(0!==e.tag&&2===r){var l=G(e);0!==l&&(n=l,r=il(e,l))}if(1===r)throw r=zs,ml(e,0),cl(e,n),ul(e,su()),r;if(6===r)throw Error(t(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,xl(e,Ts,Rs),ul(e,su()),null}function dl(e,n){var t=bs;bs|=1;try{return e(n)}finally{0===(bs=t)&&(tl(),oi&&Nn())}}function pl(e){null!==Vs&&0===Vs.tag&&0==(6&bs)&&El();var n=bs;bs|=1;var t=ys.transition,r=xu;try{if(ys.transition=null,xu=1,e)return e()}finally{xu=r,ys.transition=t,0==(6&(bs=n))&&Nn()}}function ml(e,n){e.finishedWork=null,e.finishedLanes=0;var t=e.timeoutHandle;if(-1!==t&&(e.timeoutHandle=-1,Qo(t)),null!==ws)for(t=ws.return;null!==t;){var r=t;switch(Tn(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&(yn(li),yn(ri));break;case 3:mt(),yn(li),yn(ri),yt();break;case 5:gt(r);break;case 4:mt();break;case 13:case 19:yn(Ui);break;case 10:Wn(r.type._context);break;case 22:case 23:xs=Es.current,yn(Es)}t=t.return}if(ks=e,ws=e=Rl(e.current,null),Ss=xs=n,Cs=0,zs=null,_s=Ps=Ns=0,Ts=Ls=null,null!==Ni){for(n=0;n<Ni.length;n++)if(null!==(r=(t=Ni[n]).interleaved)){t.interleaved=null;var l=r.next,a=t.pending;if(null!==a){var u=a.next;a.next=l,r.next=u}t.pending=r}Ni=null}return e}function hl(e,n){for(;;){var r=ws;try{if(Bn(),Ai.current=Xi,$i){for(var l=Hi.memoizedState;null!==l;){var a=l.queue;null!==a&&(a.pending=null),l=l.next}$i=!1}if(Wi=0,ji=Qi=Hi=null,qi=!1,Ki=0,vs.current=null,null===r||null===r.return){Cs=1,zs=n,ws=null;break}e:{var u=e,o=r.return,i=r,s=n;if(n=Ss,i.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,f=i,d=f.tag;if(0==(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var m=sr(o);if(null!==m){m.flags&=-257,cr(m,o,i,0,n),1&m.mode&&ir(u,c,n),s=c;var h=(n=m).updateQueue;if(null===h){var g=new Set;g.add(s),n.updateQueue=g}else h.add(s);break e}if(0==(1&n)){ir(u,c,n),vl();break e}s=Error(t(426))}else if(ki&&1&i.mode){var v=sr(o);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),cr(v,o,i,0,n),Vn(rr(s,i));break e}}u=s=rr(s,i),4!==Cs&&(Cs=2),null===Ls?Ls=[u]:Ls.push(u),u=o;do{switch(u.tag){case 3:u.flags|=65536,n&=-n,u.lanes|=n,et(u,ur(0,s,n));break e;case 1:i=s;var y=u.type,b=u.stateNode;if(0==(128&u.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Is||!Is.has(b)))){u.flags|=65536,n&=-n,u.lanes|=n,et(u,or(u,i,n));break e}}u=u.return}while(null!==u)}Sl(r)}catch(e){n=e,ws===r&&null!==r&&(ws=r=r.return);continue}break}}function gl(){var e=gs.current;return gs.current=Xi,null===e?Xi:e}function vl(){0!==Cs&&3!==Cs&&2!==Cs||(Cs=4),null===ks||0==(268435455&Ns)&&0==(268435455&Ps)||cl(ks,Ss)}function yl(e,n){var r=bs;bs|=2;var l=gl();for(ks===e&&Ss===n||(Rs=null,ml(e,n));;)try{bl();break}catch(n){hl(e,n)}if(Bn(),bs=r,gs.current=l,null!==ws)throw Error(t(261));return ks=null,Ss=0,Cs}function bl(){for(;null!==ws;)wl(ws)}function kl(){for(;null!==ws&&!ou();)wl(ws)}function wl(e){var n=js(e.alternate,e,xs);e.memoizedProps=e.pendingProps,null===n?Sl(e):ws=n,vs.current=null}function Sl(e){var n=e;do{var t=n.alternate;if(e=n.return,0==(32768&n.flags)){if(null!==(t=Fr(t,n,xs)))return void(ws=t)}else{if(null!==(t=Rr(t,n)))return t.flags&=32767,void(ws=t);if(null===e)return Cs=6,void(ws=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(n=n.sibling))return void(ws=n);ws=n=e}while(null!==n);0===Cs&&(Cs=5)}function xl(e,n,r){var l=xu,a=ys.transition;try{ys.transition=null,xu=1,function(e,n,r,l){do{El()}while(null!==Vs);if(0!=(6&bs))throw Error(t(327));r=e.finishedWork;var a=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(t(177));e.callbackNode=null,e.callbackPriority=0;var u=r.lanes|r.childLanes;if(function(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<t;){var l=31-yu(t),a=1<<l;n[l]=0,r[l]=-1,e[l]=-1,t&=~a}}(e,u),e===ks&&(ws=ks=null,Ss=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Us||(Us=!0,Tl(pu,(function(){return El(),null}))),u=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||u){u=ys.transition,ys.transition=null;var o=xu;xu=1;var i=bs;bs|=4,vs.current=null,function(e,n){if(Bo=Ru,Be(e=Ae())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var l=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(l&&0!==l.rangeCount){r=l.anchorNode;var a=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{r.nodeType,u.nodeType}catch(e){r=null;break e}var o=0,i=-1,s=-1,c=0,f=0,d=e,p=null;n:for(;;){for(var m;d!==r||0!==a&&3!==d.nodeType||(i=o+a),d!==u||0!==l&&3!==d.nodeType||(s=o+l),3===d.nodeType&&(o+=d.nodeValue.length),null!==(m=d.firstChild);)p=d,d=m;for(;;){if(d===e)break n;if(p===r&&++c===a&&(i=o),p===u&&++f===l&&(s=o),null!==(m=d.nextSibling))break;p=(d=p).parentNode}d=m}r=-1===i||-1===s?null:{start:i,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(Wo={focusedElem:e,selectionRange:r},Ru=!1,fs=n;null!==fs;)if(e=(n=fs).child,0!=(1028&n.subtreeFlags)&&null!==e)e.return=n,fs=e;else for(;null!==fs;){n=fs;try{var h=n.alternate;if(0!=(1024&n.flags))switch(n.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,v=h.memoizedState,y=n.stateNode,b=y.getSnapshotBeforeUpdate(n.elementType===n.type?g:An(n.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var k=n.stateNode.containerInfo;1===k.nodeType?k.textContent="":9===k.nodeType&&k.documentElement&&k.removeChild(k.documentElement);break;default:throw Error(t(163))}}catch(e){zl(n,n.return,e)}if(null!==(e=n.sibling)){e.return=n.return,fs=e;break}fs=n.return}h=ds,ds=!1}(e,r),Yr(r,e),We(Wo),Ru=!!Bo,Wo=Bo=null,e.current=r,Gr(r,e,a),iu(),bs=i,xu=o,ys.transition=u}else e.current=r;if(Us&&(Us=!1,Vs=e,As=a),0===(u=e.pendingLanes)&&(Is=null),function(e,n){if(vu&&"function"==typeof vu.onCommitFiberRoot)try{vu.onCommitFiberRoot(gu,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),ul(e,su()),null!==n)for(l=e.onRecoverableError,r=0;r<n.length;r++)a=n[r],l(a.value,{componentStack:a.stack,digest:a.digest});if(Ds)throw Ds=!1,e=Os,Os=null,e;0!=(1&As)&&0!==e.tag&&El(),0!=(1&(u=e.pendingLanes))?e===Ws?Bs++:(Bs=0,Ws=e):Bs=0,Nn()}(e,n,r,l)}finally{ys.transition=a,xu=l}return null}function El(){if(null!==Vs){var e=te(As),n=ys.transition,r=xu;try{if(ys.transition=null,xu=16>e?16:e,null===Vs)var l=!1;else{if(e=Vs,Vs=null,As=0,0!=(6&bs))throw Error(t(331));var a=bs;for(bs|=4,fs=e.current;null!==fs;){var u=fs,o=u.child;if(0!=(16&fs.flags)){var i=u.deletions;if(null!==i){for(var s=0;s<i.length;s++){var c=i[s];for(fs=c;null!==fs;){var f=fs;switch(f.tag){case 0:case 11:case 15:Ir(8,f,u)}var d=f.child;if(null!==d)d.return=f,fs=d;else for(;null!==fs;){var p=(f=fs).sibling,m=f.return;if(Ar(f),f===c){fs=null;break}if(null!==p){p.return=m,fs=p;break}fs=m}}}var h=u.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}fs=u}}if(0!=(2064&u.subtreeFlags)&&null!==o)o.return=u,fs=o;else e:for(;null!==fs;){if(0!=(2048&(u=fs).flags))switch(u.tag){case 0:case 11:case 15:Ir(9,u,u.return)}var y=u.sibling;if(null!==y){y.return=u.return,fs=y;break e}fs=u.return}}var b=e.current;for(fs=b;null!==fs;){var k=(o=fs).child;if(0!=(2064&o.subtreeFlags)&&null!==k)k.return=o,fs=k;else e:for(o=b;null!==fs;){if(0!=(2048&(i=fs).flags))try{switch(i.tag){case 0:case 11:case 15:Ur(9,i)}}catch(e){zl(i,i.return,e)}if(i===o){fs=null;break e}var w=i.sibling;if(null!==w){w.return=i.return,fs=w;break e}fs=i.return}}if(bs=a,Nn(),vu&&"function"==typeof vu.onPostCommitFiberRoot)try{vu.onPostCommitFiberRoot(gu,e)}catch(e){}l=!0}return l}finally{xu=r,ys.transition=n}}return!1}function Cl(e,n,t){e=Zn(e,n=ur(0,n=rr(t,n),1),1),n=rl(),null!==e&&(ee(e,1,n),ul(e,n))}function zl(e,n,t){if(3===e.tag)Cl(e,e,t);else for(;null!==n;){if(3===n.tag){Cl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Is||!Is.has(r))){n=Zn(n,e=or(n,e=rr(t,e),1),1),e=rl(),null!==n&&(ee(n,1,e),ul(n,e));break}}n=n.return}}function Nl(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),n=rl(),e.pingedLanes|=e.suspendedLanes&t,ks===e&&(Ss&t)===t&&(4===Cs||3===Cs&&(130023424&Ss)===Ss&&500>su()-Ms?ml(e,0):_s|=t),ul(e,n)}function Pl(e,n){0===n&&(0==(1&e.mode)?n=1:(n=Su,0==(130023424&(Su<<=1))&&(Su=4194304)));var t=rl();null!==(e=Kn(e,n))&&(ee(e,n,t),ul(e,t))}function _l(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Pl(e,t)}function Ll(e,n){var r=0;switch(e.tag){case 13:var l=e.stateNode,a=e.memoizedState;null!==a&&(r=a.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(t(314))}null!==l&&l.delete(n),Pl(e,r)}function Tl(e,n){return au(e,n)}function Ml(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Rl(e,n){var t=e.alternate;return null===t?((t=$s(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=14680064&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Dl(e,n,r,l,a,u){var o=2;if(l=e,"function"==typeof e)Fl(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case ha:return Ol(r.children,a,u,n);case ga:o=8,a|=8;break;case va:return(e=$s(12,r,n,2|a)).elementType=va,e.lanes=u,e;case wa:return(e=$s(13,r,n,a)).elementType=wa,e.lanes=u,e;case Sa:return(e=$s(19,r,n,a)).elementType=Sa,e.lanes=u,e;case Ca:return Il(r,a,u,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ya:o=10;break e;case ba:o=9;break e;case ka:o=11;break e;case xa:o=14;break e;case Ea:o=16,l=null;break e}throw Error(t(130,null==e?e:typeof e,""))}return(n=$s(o,r,n,a)).elementType=e,n.type=l,n.lanes=u,n}function Ol(e,n,t,r){return(e=$s(7,e,r,n)).lanes=t,e}function Il(e,n,t,r){return(e=$s(22,e,r,n)).elementType=Ca,e.lanes=t,e.stateNode={isHidden:!1},e}function Ul(e,n,t){return(e=$s(6,e,null,n)).lanes=t,e}function Vl(e,n,t){return(n=$s(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Al(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=J(0),this.expirationTimes=J(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=J(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Bl(e,n,t,r,l,a,u,o,i,s){return e=new Al(e,n,t,o,i),1===n?(n=1,!0===a&&(n|=8)):n=0,a=$s(3,null,null,n),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yn(a),e}function Wl(e){if(!e)return ti;e:{if(H(e=e._reactInternals)!==e||1!==e.tag)throw Error(t(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(wn(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(null!==n);throw Error(t(171))}if(1===e.tag){var r=e.type;if(wn(r))return xn(e,r,n)}return n}function Hl(e,n,t,r,l,a,u,o,i,s){return(e=Bl(t,r,!0,e,0,a,0,o,i)).context=Wl(null),t=e.current,(a=Gn(r=rl(),l=ll(t))).callback=null!=n?n:null,Zn(t,a,l),e.current.lanes=l,ee(e,l,r),ul(e,r),e}function Ql(e,n,t,r){var l=n.current,a=rl(),u=ll(l);return t=Wl(t),null===n.context?n.context=t:n.pendingContext=t,(n=Gn(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(n.callback=r),null!==(e=Zn(l,n,u))&&(al(e,l,u,a),Jn(e,l,u)),u}function jl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $l(e,n){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t<n?t:n}}function ql(e,n){$l(e,n),(e=e.alternate)&&$l(e,n)}function Kl(e){return null===(e=$(e))?null:e.stateNode}function Yl(e){return null}function Xl(e){this._internalRoot=e}function Gl(e){this._internalRoot=e}function Zl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ea(){}function na(e,n,t,r,l){var a=t._reactRootContainer;if(a){var u=a;if("function"==typeof l){var o=l;l=function(){var e=jl(u);o.call(e)}}Ql(n,u,e,l)}else u=function(e,n,t,r,l){if(l){if("function"==typeof r){var a=r;r=function(){var e=jl(u);a.call(e)}}var u=Hl(n,r,e,0,null,!1,0,"",ea);return e._reactRootContainer=u,e[Xo]=u.current,Ge(8===e.nodeType?e.parentNode:e),pl(),u}for(;l=e.lastChild;)e.removeChild(l);if("function"==typeof r){var o=r;r=function(){var e=jl(i);o.call(e)}}var i=Bl(e,0,!1,null,0,!1,0,"",ea);return e._reactRootContainer=i,e[Xo]=i.current,Ge(8===e.nodeType?e.parentNode:e),pl((function(){Ql(n,i,t,r)})),i}(t,n,e,l,r);return jl(u)}var ta=new Set,ra={},la=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),aa=Object.prototype.hasOwnProperty,ua=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,oa={},ia={},sa={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){sa[e]=new a(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var n=e[0];sa[n]=new a(n,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){sa[e]=new a(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){sa[e]=new a(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){sa[e]=new a(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){sa[e]=new a(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){sa[e]=new a(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){sa[e]=new a(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){sa[e]=new a(e,5,!1,e.toLowerCase(),null,!1,!1)}));var ca=/[\-:]([a-z])/g,fa=function(e){return e[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var n=e.replace(ca,fa);sa[n]=new a(n,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var n=e.replace(ca,fa);sa[n]=new a(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var n=e.replace(ca,fa);sa[n]=new a(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){sa[e]=new a(e,1,!1,e.toLowerCase(),null,!1,!1)})),sa.xlinkHref=new a("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){sa[e]=new a(e,1,!1,e.toLowerCase(),null,!0,!0)}));var da=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,pa=Symbol.for("react.element"),ma=Symbol.for("react.portal"),ha=Symbol.for("react.fragment"),ga=Symbol.for("react.strict_mode"),va=Symbol.for("react.profiler"),ya=Symbol.for("react.provider"),ba=Symbol.for("react.context"),ka=Symbol.for("react.forward_ref"),wa=Symbol.for("react.suspense"),Sa=Symbol.for("react.suspense_list"),xa=Symbol.for("react.memo"),Ea=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var Ca=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var za,Na,Pa,_a=Symbol.iterator,La=Object.assign,Ta=!1,Ma=Array.isArray,Fa=(Pa=function(e,n){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=n;else{for((Na=Na||document.createElement("div")).innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Na.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,t,r){MSApp.execUnsafeLocalFunction((function(){return Pa(e,n)}))}:Pa),Ra=function(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType)return void(t.nodeValue=n)}e.textContent=n},Da={animationIterationCount:!0,aspectRatio:!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,gridArea:!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},Oa=["Webkit","ms","Moz","O"];Object.keys(Da).forEach((function(e){Oa.forEach((function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Da[n]=Da[e]}))}));var Ia=La({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),Ua=null,Va=null,Aa=null,Ba=null,Wa=function(e,n){return e(n)},Ha=function(){},Qa=!1,ja=!1;if(la)try{var $a={};Object.defineProperty($a,"passive",{get:function(){ja=!0}}),window.addEventListener("test",$a,$a),window.removeEventListener("test",$a,$a)}catch(Pa){ja=!1}var qa,Ka,Ya,Xa=function(e,n,t,r,l,a,u,o,i){var s=Array.prototype.slice.call(arguments,3);try{n.apply(t,s)}catch(e){this.onError(e)}},Ga=!1,Za=null,Ja=!1,eu=null,nu={onError:function(e){Ga=!0,Za=e}},tu=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler,ru=tu.unstable_scheduleCallback,lu=tu.unstable_NormalPriority,au=ru,uu=tu.unstable_cancelCallback,ou=tu.unstable_shouldYield,iu=tu.unstable_requestPaint,su=tu.unstable_now,cu=tu.unstable_getCurrentPriorityLevel,fu=tu.unstable_ImmediatePriority,du=tu.unstable_UserBlockingPriority,pu=lu,mu=tu.unstable_LowPriority,hu=tu.unstable_IdlePriority,gu=null,vu=null,yu=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(bu(e)/ku|0)|0},bu=Math.log,ku=Math.LN2,wu=64,Su=4194304,xu=0,Eu=!1,Cu=[],zu=null,Nu=null,Pu=null,_u=new Map,Lu=new Map,Tu=[],Mu="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "),Fu=da.ReactCurrentBatchConfig,Ru=!0,Du=null,Ou=null,Iu=null,Uu=null,Vu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Au=ke(Vu),Bu=La({},Vu,{view:0,detail:0}),Wu=ke(Bu),Hu=La({},Bu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Se,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ya&&(Ya&&"mousemove"===e.type?(qa=e.screenX-Ya.screenX,Ka=e.screenY-Ya.screenY):Ka=qa=0,Ya=e),qa)},movementY:function(e){return"movementY"in e?e.movementY:Ka}}),Qu=ke(Hu),ju=ke(La({},Hu,{dataTransfer:0})),$u=ke(La({},Bu,{relatedTarget:0})),qu=ke(La({},Vu,{animationName:0,elapsedTime:0,pseudoElement:0})),Ku=La({},Vu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Yu=ke(Ku),Xu=ke(La({},Vu,{data:0})),Gu=Xu,Zu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ju={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},eo={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},no=La({},Bu,{key:function(e){if(e.key){var n=Zu[e.key]||e.key;if("Unidentified"!==n)return n}return"keypress"===e.type?13===(e=ve(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Ju[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Se,charCode:function(e){return"keypress"===e.type?ve(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ve(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),to=ke(no),ro=ke(La({},Hu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),lo=ke(La({},Bu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Se})),ao=ke(La({},Vu,{propertyName:0,elapsedTime:0,pseudoElement:0})),uo=La({},Hu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),oo=ke(uo),io=[9,13,27,32],so=la&&"CompositionEvent"in window,co=null;la&&"documentMode"in document&&(co=document.documentMode);var fo=la&&"TextEvent"in window&&!co,po=la&&(!so||co&&8<co&&11>=co),mo=String.fromCharCode(32),ho=!1,go=!1,vo={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},yo=null,bo=null,ko=!1;la&&(ko=function(e){if(!la)return!1;var n=(e="on"+e)in document;return n||((n=document.createElement("div")).setAttribute(e,"return;"),n="function"==typeof n[e]),n}("input")&&(!document.documentMode||9<document.documentMode));var wo="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},So=la&&"documentMode"in document&&11>=document.documentMode,xo=null,Eo=null,Co=null,zo=!1,No={animationend:Qe("Animation","AnimationEnd"),animationiteration:Qe("Animation","AnimationIteration"),animationstart:Qe("Animation","AnimationStart"),transitionend:Qe("Transition","TransitionEnd")},Po={},_o={};la&&(_o=document.createElement("div").style,"AnimationEvent"in window||(delete No.animationend.animation,delete No.animationiteration.animation,delete No.animationstart.animation),"TransitionEvent"in window||delete No.transitionend.transition);var Lo=je("animationend"),To=je("animationiteration"),Mo=je("animationstart"),Fo=je("transitionend"),Ro=new Map,Do="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");!function(){for(var e=0;e<Do.length;e++){var n=Do[e];$e(n.toLowerCase(),"on"+(n=n[0].toUpperCase()+n.slice(1)))}$e(Lo,"onAnimationEnd"),$e(To,"onAnimationIteration"),$e(Mo,"onAnimationStart"),$e("dblclick","onDoubleClick"),$e("focusin","onFocus"),$e("focusout","onBlur"),$e(Fo,"onTransitionEnd")}(),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),r("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),r("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),r("onBeforeInput",["compositionend","keypress","textInput","paste"]),r("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),r("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),r("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Io=new Set("cancel close invalid load scroll toggle".split(" ").concat(Oo)),Uo="_reactListening"+Math.random().toString(36).slice(2),Vo=/\r\n?/g,Ao=/\u0000|\uFFFD/g,Bo=null,Wo=null,Ho="function"==typeof setTimeout?setTimeout:void 0,Qo="function"==typeof clearTimeout?clearTimeout:void 0,jo="function"==typeof Promise?Promise:void 0,$o="function"==typeof queueMicrotask?queueMicrotask:void 0!==jo?function(e){return jo.resolve(null).then(e).catch(sn)}:Ho,qo=Math.random().toString(36).slice(2),Ko="__reactFiber$"+qo,Yo="__reactProps$"+qo,Xo="__reactContainer$"+qo,Go="__reactEvents$"+qo,Zo="__reactListeners$"+qo,Jo="__reactHandles$"+qo,ei=[],ni=-1,ti={},ri=vn(ti),li=vn(!1),ai=ti,ui=null,oi=!1,ii=!1,si=[],ci=0,fi=null,di=0,pi=[],mi=0,hi=null,gi=1,vi="",yi=null,bi=null,ki=!1,wi=null,Si=da.ReactCurrentBatchConfig,xi=vn(null),Ei=null,Ci=null,zi=null,Ni=null,Pi=Kn,_i=!1,Li=(new n.Component).refs,Ti={isMounted:function(e){return!!(e=e._reactInternals)&&H(e)===e},enqueueSetState:function(e,n,t){e=e._reactInternals;var r=rl(),l=ll(e),a=Gn(r,l);a.payload=n,null!=t&&(a.callback=t),null!==(n=Zn(e,a,l))&&(al(n,e,l,r),Jn(n,e,l))},enqueueReplaceState:function(e,n,t){e=e._reactInternals;var r=rl(),l=ll(e),a=Gn(r,l);a.tag=1,a.payload=n,null!=t&&(a.callback=t),null!==(n=Zn(e,a,l))&&(al(n,e,l,r),Jn(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var t=rl(),r=ll(e),l=Gn(t,r);l.tag=2,null!=n&&(l.callback=n),null!==(n=Zn(e,l,r))&&(al(n,e,r,t),Jn(n,e,r))}},Mi=ft(!0),Fi=ft(!1),Ri={},Di=vn(Ri),Oi=vn(Ri),Ii=vn(Ri),Ui=vn(0),Vi=[],Ai=da.ReactCurrentDispatcher,Bi=da.ReactCurrentBatchConfig,Wi=0,Hi=null,Qi=null,ji=null,$i=!1,qi=!1,Ki=0,Yi=0,Xi={readContext:jn,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useInsertionEffect:bt,useLayoutEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useMutableSource:bt,useSyncExternalStore:bt,useId:bt,unstable_isNewReconciler:!1},Gi={readContext:jn,useCallback:function(e,n){return xt().memoizedState=[e,void 0===n?null:n],e},useContext:jn,useEffect:At,useImperativeHandle:function(e,n,t){return t=null!=t?t.concat([e]):null,Ut(4194308,4,Qt.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Ut(4194308,4,e,n)},useInsertionEffect:function(e,n){return Ut(4,2,e,n)},useMemo:function(e,n){var t=xt();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=xt();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=Zt.bind(null,Hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},xt().memoizedState=e},useState:Dt,useDebugValue:$t,useDeferredValue:function(e){return xt().memoizedState=e},useTransition:function(){var e=Dt(!1),n=e[0];return e=Xt.bind(null,e[1]),xt().memoizedState=e,[n,e]},useMutableSource:function(e,n,t){},useSyncExternalStore:function(e,n,r){var l=Hi,a=xt();if(ki){if(void 0===r)throw Error(t(407));r=r()}else{if(r=n(),null===ks)throw Error(t(349));0!=(30&Wi)||Lt(l,n,r)}a.memoizedState=r;var u={value:r,getSnapshot:n};return a.queue=u,At(Mt.bind(null,l,u,e),[e]),l.flags|=2048,Ot(9,Tt.bind(null,l,u,r,n),void 0,null),r},useId:function(){var e=xt(),n=ks.identifierPrefix;if(ki){var t=vi;n=":"+n+"R"+(t=(gi&~(1<<32-yu(gi)-1)).toString(32)+t),0<(t=Ki++)&&(n+="H"+t.toString(32)),n+=":"}else n=":"+n+"r"+(t=Yi++).toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},Zi={readContext:jn,useCallback:qt,useContext:jn,useEffect:Bt,useImperativeHandle:jt,useInsertionEffect:Wt,useLayoutEffect:Ht,useMemo:Kt,useReducer:zt,useRef:It,useState:function(e){return zt(Ct)},useDebugValue:$t,useDeferredValue:function(e){return Yt(Et(),Qi.memoizedState,e)},useTransition:function(){return[zt(Ct)[0],Et().memoizedState]},useMutableSource:Pt,useSyncExternalStore:_t,useId:Gt,unstable_isNewReconciler:!1},Ji={readContext:jn,useCallback:qt,useContext:jn,useEffect:Bt,useImperativeHandle:jt,useInsertionEffect:Wt,useLayoutEffect:Ht,useMemo:Kt,useReducer:Nt,useRef:It,useState:function(e){return Nt(Ct)},useDebugValue:$t,useDeferredValue:function(e){var n=Et();return null===Qi?n.memoizedState=e:Yt(n,Qi.memoizedState,e)},useTransition:function(){return[Nt(Ct)[0],Et().memoizedState]},useMutableSource:Pt,useSyncExternalStore:_t,useId:Gt,unstable_isNewReconciler:!1},es="function"==typeof WeakMap?WeakMap:Map,ns=da.ReactCurrentOwner,ts=!1,rs={dehydrated:null,treeContext:null,retryLane:0},ls=function(e,n,t,r){for(t=n.child;null!==t;){if(5===t.tag||6===t.tag)e.appendChild(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},as=function(e,n){},us=function(e,n,t,r,l){var a=e.memoizedProps;if(a!==r){switch(e=n.stateNode,dt(Di.current),l=null,t){case"input":a=y(e,a),r=y(e,r),l=[];break;case"select":a=La({},a,{value:void 0}),r=La({},r,{value:void 0}),l=[];break;case"textarea":a=C(e,a),r=C(e,r),l=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=un)}var u;for(s in F(t,r),t=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s){var o=a[s];for(u in o)o.hasOwnProperty(u)&&(t||(t={}),t[u]="")}else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(ra.hasOwnProperty(s)?l||(l=[]):(l=l||[]).push(s,null));for(s in r){var i=r[s];if(o=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&i!==o&&(null!=i||null!=o))if("style"===s)if(o){for(u in o)!o.hasOwnProperty(u)||i&&i.hasOwnProperty(u)||(t||(t={}),t[u]="");for(u in i)i.hasOwnProperty(u)&&o[u]!==i[u]&&(t||(t={}),t[u]=i[u])}else t||(l||(l=[]),l.push(s,t)),t=i;else"dangerouslySetInnerHTML"===s?(i=i?i.__html:void 0,o=o?o.__html:void 0,null!=i&&o!==i&&(l=l||[]).push(s,i)):"children"===s?"string"!=typeof i&&"number"!=typeof i||(l=l||[]).push(s,""+i):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(ra.hasOwnProperty(s)?(null!=i&&"onScroll"===s&&Ye("scroll",e),l||o===i||(l=[])):(l=l||[]).push(s,i))}t&&(l=l||[]).push("style",t);var s=l;(n.updateQueue=s)&&(n.flags|=4)}},os=function(e,n,t,r){t!==r&&(n.flags|=4)},is=!1,ss=!1,cs="function"==typeof WeakSet?WeakSet:Set,fs=null,ds=!1,ps=null,ms=!1,hs=Math.ceil,gs=da.ReactCurrentDispatcher,vs=da.ReactCurrentOwner,ys=da.ReactCurrentBatchConfig,bs=0,ks=null,ws=null,Ss=0,xs=0,Es=vn(0),Cs=0,zs=null,Ns=0,Ps=0,_s=0,Ls=null,Ts=null,Ms=0,Fs=1/0,Rs=null,Ds=!1,Os=null,Is=null,Us=!1,Vs=null,As=0,Bs=0,Ws=null,Hs=-1,Qs=0,js=function(e,n,r){if(null!==e)if(e.memoizedProps!==n.pendingProps||li.current)ts=!0;else{if(0==(e.lanes&r)&&0==(128&n.flags))return ts=!1,function(e,n,t){switch(n.tag){case 3:kr(n),Un();break;case 5:ht(n);break;case 1:wn(n.type)&&En(n);break;case 4:pt(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;bn(xi,r._currentValue),r._currentValue=l;break;case 13:if(null!==(r=n.memoizedState))return null!==r.dehydrated?(bn(Ui,1&Ui.current),n.flags|=128,null):0!=(t&n.child.childLanes)?xr(e,n,t):(bn(Ui,1&Ui.current),null!==(e=Lr(e,n,t))?e.sibling:null);bn(Ui,1&Ui.current);break;case 19:if(r=0!=(t&n.childLanes),0!=(128&e.flags)){if(r)return Pr(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),bn(Ui,Ui.current),r)break;return null;case 22:case 23:return n.lanes=0,hr(e,n,t)}return Lr(e,n,t)}(e,n,r);ts=0!=(131072&e.flags)}else ts=!1,ki&&0!=(1048576&n.flags)&&_n(n,di,n.index);switch(n.lanes=0,n.tag){case 2:var l=n.type;_r(e,n),e=n.pendingProps;var a=kn(n,ri.current);Qn(n,r),a=wt(null,n,l,e,a,r);var u=St();return n.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(n.tag=1,n.memoizedState=null,n.updateQueue=null,wn(l)?(u=!0,En(n)):u=!1,n.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Yn(n),a.updater=Ti,n.stateNode=a,a._reactInternals=n,ot(n,l,e,r),n=br(null,n,l,!0,u,r)):(n.tag=0,ki&&u&&Ln(n),fr(null,n,a,r),n=n.child),n;case 16:l=n.elementType;e:{switch(_r(e,n),e=n.pendingProps,l=(a=l._init)(l._payload),n.type=l,a=n.tag=function(e){if("function"==typeof e)return Fl(e)?1:0;if(null!=e){if((e=e.$$typeof)===ka)return 11;if(e===xa)return 14}return 2}(l),e=An(l,e),a){case 0:n=vr(null,n,l,e,r);break e;case 1:n=yr(null,n,l,e,r);break e;case 11:n=dr(null,n,l,e,r);break e;case 14:n=pr(null,n,l,An(l.type,e),r);break e}throw Error(t(306,l,""))}return n;case 0:return l=n.type,a=n.pendingProps,vr(e,n,l,a=n.elementType===l?a:An(l,a),r);case 1:return l=n.type,a=n.pendingProps,yr(e,n,l,a=n.elementType===l?a:An(l,a),r);case 3:e:{if(kr(n),null===e)throw Error(t(387));l=n.pendingProps,a=(u=n.memoizedState).element,Xn(e,n),nt(n,l,null,r);var o=n.memoizedState;if(l=o.element,u.isDehydrated){if(u={element:l,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},n.updateQueue.baseState=u,n.memoizedState=u,256&n.flags){n=wr(e,n,l,r,a=rr(Error(t(423)),n));break e}if(l!==a){n=wr(e,n,l,r,a=rr(Error(t(424)),n));break e}for(bi=fn(n.stateNode.containerInfo.firstChild),yi=n,ki=!0,wi=null,r=Fi(n,null,l,r),n.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(Un(),l===a){n=Lr(e,n,r);break e}fr(e,n,l,r)}n=n.child}return n;case 5:return ht(n),null===e&&Dn(n),l=n.type,a=n.pendingProps,u=null!==e?e.memoizedProps:null,o=a.children,on(l,a)?o=null:null!==u&&on(l,u)&&(n.flags|=32),gr(e,n),fr(e,n,o,r),n.child;case 6:return null===e&&Dn(n),null;case 13:return xr(e,n,r);case 4:return pt(n,n.stateNode.containerInfo),l=n.pendingProps,null===e?n.child=Mi(n,null,l,r):fr(e,n,l,r),n.child;case 11:return l=n.type,a=n.pendingProps,dr(e,n,l,a=n.elementType===l?a:An(l,a),r);case 7:return fr(e,n,n.pendingProps,r),n.child;case 8:case 12:return fr(e,n,n.pendingProps.children,r),n.child;case 10:e:{if(l=n.type._context,a=n.pendingProps,u=n.memoizedProps,o=a.value,bn(xi,l._currentValue),l._currentValue=o,null!==u)if(wo(u.value,o)){if(u.children===a.children&&!li.current){n=Lr(e,n,r);break e}}else for(null!==(u=n.child)&&(u.return=n);null!==u;){var i=u.dependencies;if(null!==i){o=u.child;for(var s=i.firstContext;null!==s;){if(s.context===l){if(1===u.tag){(s=Gn(-1,r&-r)).tag=2;var c=u.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}u.lanes|=r,null!==(s=u.alternate)&&(s.lanes|=r),Hn(u.return,r,n),i.lanes|=r;break}s=s.next}}else if(10===u.tag)o=u.type===n.type?null:u.child;else if(18===u.tag){if(null===(o=u.return))throw Error(t(341));o.lanes|=r,null!==(i=o.alternate)&&(i.lanes|=r),Hn(o,r,n),o=u.sibling}else o=u.child;if(null!==o)o.return=u;else for(o=u;null!==o;){if(o===n){o=null;break}if(null!==(u=o.sibling)){u.return=o.return,o=u;break}o=o.return}u=o}fr(e,n,a.children,r),n=n.child}return n;case 9:return a=n.type,l=n.pendingProps.children,Qn(n,r),l=l(a=jn(a)),n.flags|=1,fr(e,n,l,r),n.child;case 14:return a=An(l=n.type,n.pendingProps),pr(e,n,l,a=An(l.type,a),r);case 15:return mr(e,n,n.type,n.pendingProps,r);case 17:return l=n.type,a=n.pendingProps,a=n.elementType===l?a:An(l,a),_r(e,n),n.tag=1,wn(l)?(e=!0,En(n)):e=!1,Qn(n,r),at(n,l,a),ot(n,l,a,r),br(null,n,l,!0,e,r);case 19:return Pr(e,n,r);case 22:return hr(e,n,r)}throw Error(t(156,n.tag))},$s=function(e,n,t,r){return new Ml(e,n,t,r)},qs="function"==typeof reportError?reportError:function(e){console.error(e)};Gl.prototype.render=Xl.prototype.render=function(e){var n=this._internalRoot;if(null===n)throw Error(t(409));Ql(e,n,null,null)},Gl.prototype.unmount=Xl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var n=e.containerInfo;pl((function(){Ql(null,e,null,null)})),n[Xo]=null}},Gl.prototype.unstable_scheduleHydration=function(e){if(e){var n=Gs();e={blockedOn:null,target:e,priority:n};for(var t=0;t<Tu.length&&0!==n&&n<Tu[t].priority;t++);Tu.splice(t,0,e),0===t&&ae(e)}};var Ks=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var t=K(n.pendingLanes);0!==t&&(ne(n,1|t),ul(n,su()),0==(6&bs)&&(tl(),Nn()))}break;case 13:pl((function(){var n=Kn(e,1);if(null!==n){var t=rl();al(n,e,1,t)}})),ql(e,1)}},Ys=function(e){if(13===e.tag){var n=Kn(e,134217728);null!==n&&al(n,e,134217728,rl()),ql(e,134217728)}},Xs=function(e){if(13===e.tag){var n=ll(e),t=Kn(e,n);null!==t&&al(t,e,n,rl()),ql(e,n)}},Gs=function(){return xu},Zs=function(e,n){var t=xu;try{return xu=e,n()}finally{xu=t}};Va=function(e,n,r){switch(n){case"input":if(w(e,r),n=r.name,"radio"===r.type&&null!=n){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<r.length;n++){var l=r[n];if(l!==e&&l.form===e.form){var a=gn(l);if(!a)throw Error(t(90));g(l),w(l,a)}}}break;case"textarea":N(e,r);break;case"select":null!=(n=r.value)&&E(e,!!r.multiple,n,!1)}},function(e,n,t){Wa=e,Ha=t}(dl,0,pl);var Js={usingClientEntryPoint:!1,Events:[mn,hn,gn,I,U,dl]};!function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:da.ReactCurrentDispatcher,findHostInstanceByFiber:Kl,findFiberByHostInstance:e.findFiberByHostInstance||Yl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled||!n.supportsFiber)e=!0;else{try{gu=n.inject(e),vu=n}catch(e){}e=!!n.checkDCE}}}({findFiberByHostInstance:pn,bundleType:0,version:"18.2.0-next-9e3b772b8-20220608",rendererPackageName:"react-dom"}),e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Js,e.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zl(n))throw Error(t(200));return function(e,n,t){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:ma,key:null==r?null:""+r,children:e,containerInfo:n,implementation:t}}(e,n,null,r)},e.createRoot=function(e,n){if(!Zl(e))throw Error(t(299));var r=!1,l="",a=qs;return null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(l=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),n=Bl(e,1,!1,null,0,r,0,l,a),e[Xo]=n.current,Ge(8===e.nodeType?e.parentNode:e),new Xl(n)},e.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var n=e._reactInternals;if(void 0===n){if("function"==typeof e.render)throw Error(t(188));throw e=Object.keys(e).join(","),Error(t(268,e))}return e=null===(e=$(n))?null:e.stateNode},e.flushSync=function(e){return pl(e)},e.hydrate=function(e,n,r){if(!Jl(n))throw Error(t(200));return na(null,e,n,!0,r)},e.hydrateRoot=function(e,n,r){if(!Zl(e))throw Error(t(405));var l=null!=r&&r.hydratedSources||null,a=!1,u="",o=qs;if(null!=r&&(!0===r.unstable_strictMode&&(a=!0),void 0!==r.identifierPrefix&&(u=r.identifierPrefix),void 0!==r.onRecoverableError&&(o=r.onRecoverableError)),n=Hl(n,null,e,1,null!=r?r:null,a,0,u,o),e[Xo]=n.current,Ge(e),l)for(e=0;e<l.length;e++)a=(a=(r=l[e])._getVersion)(r._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[r,a]:n.mutableSourceEagerHydrationData.push(r,a);return new Gl(n)},e.render=function(e,n,r){if(!Jl(n))throw Error(t(200));return na(null,e,n,!1,r)},e.unmountComponentAtNode=function(e){if(!Jl(e))throw Error(t(40));return!!e._reactRootContainer&&(pl((function(){na(null,null,e,!1,(function(){e._reactRootContainer=null,e[Xo]=null}))})),!0)},e.unstable_batchedUpdates=dl,e.unstable_renderSubtreeIntoContainer=function(e,n,r,l){if(!Jl(r))throw Error(t(200));if(null==e||void 0===e._reactInternals)throw Error(t(38));return na(e,n,r,!1,l)},e.version="18.2.0-next-9e3b772b8-20220608"},"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],n):n((e=e||self).ReactDOM={},e.React)}(); \ No newline at end of file
+/*! For license information please see react-dom.min.js.LICENSE.txt */
+(()=>{"use strict";var e={551:(e,n,t)=>{var r=t(594),l=t(982);function a(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var u=new Set,o={};function i(e,n){s(e,n),s(e+"Capture",n)}function s(e,n){for(o[e]=n,e=0;e<n.length;e++)u.add(n[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},m={};function h(e,n,t,r,l,a,u){this.acceptsBooleans=2===n||3===n||4===n,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=a,this.removeEmptyString=u}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var n=e[0];g[n]=new h(n,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,n,t,r){var l=g.hasOwnProperty(n)?g[n]:null;(null!==l?0!==l.type:r||!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&(function(e,n,t,r){if(null==n||function(e,n,t,r){if(null!==t&&0===t.type)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==t?!t.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,n,t,r))return!0;if(r)return!1;if(null!==t)switch(t.type){case 3:return!n;case 4:return!1===n;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}(n,t,l,r)&&(t=null),r||null===l?function(e){return!!f.call(m,e)||!f.call(p,e)&&(d.test(e)?m[e]=!0:(p[e]=!0,!1))}(n)&&(null===t?e.removeAttribute(n):e.setAttribute(n,""+t)):l.mustUseProperty?e[l.propertyName]=null===t?3!==l.type&&"":t:(n=l.attributeName,r=l.attributeNamespace,null===t?e.removeAttribute(n):(t=3===(l=l.type)||4===l&&!0===t?"":""+t,r?e.setAttributeNS(r,n,t):e.setAttribute(n,t))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var n=e.replace(v,y);g[n]=new h(n,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var n=e.replace(v,y);g[n]=new h(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var n=e.replace(v,y);g[n]=new h(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),z=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),M=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var F=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var O,I=Object.assign;function U(e){if(void 0===O)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);O=n&&n[1]||""}return"\n"+O+e}var V=!1;function A(e,n){if(!e||V)return"";V=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(n){if(n&&r&&"string"==typeof n.stack){for(var l=n.stack.split("\n"),a=r.stack.split("\n"),u=l.length-1,o=a.length-1;1<=u&&0<=o&&l[u]!==a[o];)o--;for(;1<=u&&0<=o;u--,o--)if(l[u]!==a[o]){if(1!==u||1!==o)do{if(u--,0>--o||l[u]!==a[o]){var i="\n"+l[u].replace(" at new "," at ");return e.displayName&&i.includes("<anonymous>")&&(i=i.replace("<anonymous>",e.displayName)),i}}while(1<=u&&0<=o);break}}}finally{V=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?U(e):""}function B(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return A(e.type,!1);case 11:return A(e.type.render,!1);case 1:return A(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case S:return"Portal";case C:return"Profiler";case E:return"StrictMode";case P:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case z:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case N:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case L:return null!==(n=e.displayName||null)?n:H(e.type)||"Memo";case M:n=e._payload,e=e._init;try{return H(e(n))}catch(e){}}return null}function W(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=n.render).displayName||e.name||"",n.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(n);case 8:return n===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof n)return n.displayName||n.name||null;if("string"==typeof n)return n}return null}function Q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function j(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function $(e){e._valueTracker||(e._valueTracker=function(e){var n=j(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&void 0!==t&&"function"==typeof t.get&&"function"==typeof t.set){var l=t.get,a=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}(e))}function K(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=j(e)?e.checked?"true":"false":e.value),(e=r)!==t&&(n.setValue(e),!0)}function q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(n){return e.body}}function Y(e,n){var t=n.checked;return I({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=t?t:e._wrapperState.initialChecked})}function X(e,n){var t=null==n.defaultValue?"":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked;t=Q(null!=n.value?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:"checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value}}function G(e,n){null!=(n=n.checked)&&b(e,"checked",n,!1)}function Z(e,n){G(e,n);var t=Q(n.value),r=n.type;if(null!=t)"number"===r?(0===t&&""===e.value||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");n.hasOwnProperty("value")?ee(e,n.type,t):n.hasOwnProperty("defaultValue")&&ee(e,n.type,Q(n.defaultValue)),null==n.checked&&null!=n.defaultChecked&&(e.defaultChecked=!!n.defaultChecked)}function J(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!("submit"!==r&&"reset"!==r||void 0!==n.value&&null!==n.value))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}""!==(t=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==t&&(e.name=t)}function ee(e,n,t){"number"===n&&q(e.ownerDocument)===e||(null==t?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var ne=Array.isArray;function te(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l<t.length;l++)n["$"+t[l]]=!0;for(t=0;t<e.length;t++)l=n.hasOwnProperty("$"+e[t].value),e[t].selected!==l&&(e[t].selected=l),l&&r&&(e[t].defaultSelected=!0)}else{for(t=""+Q(t),n=null,l=0;l<e.length;l++){if(e[l].value===t)return e[l].selected=!0,void(r&&(e[l].defaultSelected=!0));null!==n||e[l].disabled||(n=e[l])}null!==n&&(n.selected=!0)}}function re(e,n){if(null!=n.dangerouslySetInnerHTML)throw Error(a(91));return I({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,n){var t=n.value;if(null==t){if(t=n.children,n=n.defaultValue,null!=t){if(null!=n)throw Error(a(92));if(ne(t)){if(1<t.length)throw Error(a(93));t=t[0]}n=t}null==n&&(n=""),t=n}e._wrapperState={initialValue:Q(t)}}function ae(e,n){var t=Q(n.value),r=Q(n.defaultValue);null!=t&&((t=""+t)!==e.value&&(e.value=t),null==n.defaultValue&&e.defaultValue!==t&&(e.defaultValue=t)),null!=r&&(e.defaultValue=""+r)}function ue(e){var n=e.textContent;n===e._wrapperState.initialValue&&""!==n&&null!==n&&(e.value=n)}function oe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ie(e,n){return null==e||"http://www.w3.org/1999/xhtml"===e?oe(n):"http://www.w3.org/2000/svg"===e&&"foreignObject"===n?"http://www.w3.org/1999/xhtml":e}var se,ce,fe=(ce=function(e,n){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=n;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,t,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,n)}))}:ce);function de(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType)return void(t.nodeValue=n)}e.textContent=n}var pe={animationIterationCount:!0,aspectRatio:!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,gridArea:!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},me=["Webkit","ms","Moz","O"];function he(e,n,t){return null==n||"boolean"==typeof n||""===n?"":t||"number"!=typeof n||0===n||pe.hasOwnProperty(e)&&pe[e]?(""+n).trim():n+"px"}function ge(e,n){for(var t in e=e.style,n)if(n.hasOwnProperty(t)){var r=0===t.indexOf("--"),l=he(t,n[t],r);"float"===t&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}Object.keys(pe).forEach((function(e){me.forEach((function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),pe[n]=pe[e]}))}));var ve=I({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,n){if(n){if(ve[e]&&(null!=n.children||null!=n.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=n.dangerouslySetInnerHTML){if(null!=n.children)throw Error(a(60));if("object"!=typeof n.dangerouslySetInnerHTML||!("__html"in n.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=n.style&&"object"!=typeof n.style)throw Error(a(62))}}function be(e,n){if(-1===e.indexOf("-"))return"string"==typeof n.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ke=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,xe=null,Ee=null;function Ce(e){if(e=bl(e)){if("function"!=typeof Se)throw Error(a(280));var n=e.stateNode;n&&(n=wl(n),Se(e.stateNode,e.type,n))}}function _e(e){xe?Ee?Ee.push(e):Ee=[e]:xe=e}function ze(){if(xe){var e=xe,n=Ee;if(Ee=xe=null,Ce(e),n)for(e=0;e<n.length;e++)Ce(n[e])}}function Ne(e,n){return e(n)}function Pe(){}var Te=!1;function Le(e,n,t){if(Te)return e(n,t);Te=!0;try{return Ne(e,n,t)}finally{Te=!1,(null!==xe||null!==Ee)&&(Pe(),ze())}}function Me(e,n){var t=e.stateNode;if(null===t)return null;var r=wl(t);if(null===r)return null;t=r[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(t&&"function"!=typeof t)throw Error(a(231,n,typeof t));return t}var Fe=!1;if(c)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Fe=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ce){Fe=!1}function De(e,n,t,r,l,a,u,o,i){var s=Array.prototype.slice.call(arguments,3);try{n.apply(t,s)}catch(e){this.onError(e)}}var Oe=!1,Ie=null,Ue=!1,Ve=null,Ae={onError:function(e){Oe=!0,Ie=e}};function Be(e,n,t,r,l,a,u,o,i){Oe=!1,Ie=null,De.apply(Ae,arguments)}function He(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do{0!=(4098&(n=e).flags)&&(t=n.return),e=n.return}while(e)}return 3===n.tag?t:null}function We(e){if(13===e.tag){var n=e.memoizedState;if(null===n&&null!==(e=e.alternate)&&(n=e.memoizedState),null!==n)return n.dehydrated}return null}function Qe(e){if(He(e)!==e)throw Error(a(188))}function je(e){return null!==(e=function(e){var n=e.alternate;if(!n){if(null===(n=He(e)))throw Error(a(188));return n!==e?null:e}for(var t=e,r=n;;){var l=t.return;if(null===l)break;var u=l.alternate;if(null===u){if(null!==(r=l.return)){t=r;continue}break}if(l.child===u.child){for(u=l.child;u;){if(u===t)return Qe(l),e;if(u===r)return Qe(l),n;u=u.sibling}throw Error(a(188))}if(t.return!==r.return)t=l,r=u;else{for(var o=!1,i=l.child;i;){if(i===t){o=!0,t=l,r=u;break}if(i===r){o=!0,r=l,t=u;break}i=i.sibling}if(!o){for(i=u.child;i;){if(i===t){o=!0,t=u,r=l;break}if(i===r){o=!0,r=u,t=l;break}i=i.sibling}if(!o)throw Error(a(189))}}if(t.alternate!==r)throw Error(a(190))}if(3!==t.tag)throw Error(a(188));return t.stateNode.current===t?e:n}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var n=$e(e);if(null!==n)return n;e=e.sibling}return null}var Ke=l.unstable_scheduleCallback,qe=l.unstable_cancelCallback,Ye=l.unstable_shouldYield,Xe=l.unstable_requestPaint,Ge=l.unstable_now,Ze=l.unstable_getCurrentPriorityLevel,Je=l.unstable_ImmediatePriority,en=l.unstable_UserBlockingPriority,nn=l.unstable_NormalPriority,tn=l.unstable_LowPriority,rn=l.unstable_IdlePriority,ln=null,an=null,un=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(on(e)/sn|0)|0},on=Math.log,sn=Math.LN2,cn=64,fn=4194304;function dn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pn(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,u=268435455&t;if(0!==u){var o=u&~l;0!==o?r=dn(o):0!=(a&=u)&&(r=dn(a))}else 0!=(u=t&~l)?r=dn(u):0!==a&&(r=dn(a));if(0===r)return 0;if(0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0<n;)l=1<<(t=31-un(n)),r|=e[t],n&=~l;return r}function mn(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;default:return-1}}function hn(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gn(){var e=cn;return 0==(4194240&(cn<<=1))&&(cn=64),e}function vn(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function yn(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-un(n)]=t}function bn(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-un(t),l=1<<r;l&n|e[r]&n&&(e[r]|=n),t&=~l}}var kn=0;function wn(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Sn,xn,En,Cn,_n,zn=!1,Nn=[],Pn=null,Tn=null,Ln=null,Mn=new Map,Fn=new Map,Rn=[],Dn="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function On(e,n){switch(e){case"focusin":case"focusout":Pn=null;break;case"dragenter":case"dragleave":Tn=null;break;case"mouseover":case"mouseout":Ln=null;break;case"pointerover":case"pointerout":Mn.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fn.delete(n.pointerId)}}function In(e,n,t,r,l,a){return null===e||e.nativeEvent!==a?(e={blockedOn:n,domEventName:t,eventSystemFlags:r,nativeEvent:a,targetContainers:[l]},null!==n&&null!==(n=bl(n))&&xn(n),e):(e.eventSystemFlags|=r,n=e.targetContainers,null!==l&&-1===n.indexOf(l)&&n.push(l),e)}function Un(e){var n=yl(e.target);if(null!==n){var t=He(n);if(null!==t)if(13===(n=t.tag)){if(null!==(n=We(t)))return e.blockedOn=n,void _n(e.priority,(function(){En(t)}))}else if(3===n&&t.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===t.tag?t.stateNode.containerInfo:null)}e.blockedOn=null}function Vn(e){if(null!==e.blockedOn)return!1;for(var n=e.targetContainers;0<n.length;){var t=Xn(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(null!==t)return null!==(n=bl(t))&&xn(n),e.blockedOn=t,!1;var r=new(t=e.nativeEvent).constructor(t.type,t);ke=r,t.target.dispatchEvent(r),ke=null,n.shift()}return!0}function An(e,n,t){Vn(e)&&t.delete(n)}function Bn(){zn=!1,null!==Pn&&Vn(Pn)&&(Pn=null),null!==Tn&&Vn(Tn)&&(Tn=null),null!==Ln&&Vn(Ln)&&(Ln=null),Mn.forEach(An),Fn.forEach(An)}function Hn(e,n){e.blockedOn===n&&(e.blockedOn=null,zn||(zn=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Bn)))}function Wn(e){function n(n){return Hn(n,e)}if(0<Nn.length){Hn(Nn[0],e);for(var t=1;t<Nn.length;t++){var r=Nn[t];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Pn&&Hn(Pn,e),null!==Tn&&Hn(Tn,e),null!==Ln&&Hn(Ln,e),Mn.forEach(n),Fn.forEach(n),t=0;t<Rn.length;t++)(r=Rn[t]).blockedOn===e&&(r.blockedOn=null);for(;0<Rn.length&&null===(t=Rn[0]).blockedOn;)Un(t),null===t.blockedOn&&Rn.shift()}var Qn=k.ReactCurrentBatchConfig,jn=!0;function $n(e,n,t,r){var l=kn,a=Qn.transition;Qn.transition=null;try{kn=1,qn(e,n,t,r)}finally{kn=l,Qn.transition=a}}function Kn(e,n,t,r){var l=kn,a=Qn.transition;Qn.transition=null;try{kn=4,qn(e,n,t,r)}finally{kn=l,Qn.transition=a}}function qn(e,n,t,r){if(jn){var l=Xn(e,n,t,r);if(null===l)Qr(e,n,r,Yn,t),On(e,r);else if(function(e,n,t,r,l){switch(n){case"focusin":return Pn=In(Pn,e,n,t,r,l),!0;case"dragenter":return Tn=In(Tn,e,n,t,r,l),!0;case"mouseover":return Ln=In(Ln,e,n,t,r,l),!0;case"pointerover":var a=l.pointerId;return Mn.set(a,In(Mn.get(a)||null,e,n,t,r,l)),!0;case"gotpointercapture":return a=l.pointerId,Fn.set(a,In(Fn.get(a)||null,e,n,t,r,l)),!0}return!1}(l,e,n,t,r))r.stopPropagation();else if(On(e,r),4&n&&-1<Dn.indexOf(e)){for(;null!==l;){var a=bl(l);if(null!==a&&Sn(a),null===(a=Xn(e,n,t,r))&&Qr(e,n,r,Yn,t),a===l)break;l=a}null!==l&&r.stopPropagation()}else Qr(e,n,r,null,t)}}var Yn=null;function Xn(e,n,t,r){if(Yn=null,null!==(e=yl(e=we(r))))if(null===(n=He(e)))e=null;else if(13===(t=n.tag)){if(null!==(e=We(n)))return e;e=null}else if(3===t){if(n.stateNode.current.memoizedState.isDehydrated)return 3===n.tag?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Yn=e,null}function Gn(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case en:return 4;case nn:case tn:return 16;case rn:return 536870912;default:return 16}default:return 16}}var Zn=null,Jn=null,et=null;function nt(){if(et)return et;var e,n,t=Jn,r=t.length,l="value"in Zn?Zn.value:Zn.textContent,a=l.length;for(e=0;e<r&&t[e]===l[e];e++);var u=r-e;for(n=1;n<=u&&t[r-n]===l[a-n];n++);return et=l.slice(e,1<n?1-n:void 0)}function tt(e){var n=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===n&&(e=13):e=n,10===e&&(e=13),32<=e||13===e?e:0}function rt(){return!0}function lt(){return!1}function at(e){function n(n,t,r,l,a){for(var u in this._reactName=n,this._targetInst=r,this.type=t,this.nativeEvent=l,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(l):l[u]);return this.isDefaultPrevented=(null!=l.defaultPrevented?l.defaultPrevented:!1===l.returnValue)?rt:lt,this.isPropagationStopped=lt,this}return I(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rt)},persist:function(){},isPersistent:rt}),n}var ut,ot,it,st={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ct=at(st),ft=I({},st,{view:0,detail:0}),dt=at(ft),pt=I({},ft,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ct,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==it&&(it&&"mousemove"===e.type?(ut=e.screenX-it.screenX,ot=e.screenY-it.screenY):ot=ut=0,it=e),ut)},movementY:function(e){return"movementY"in e?e.movementY:ot}}),mt=at(pt),ht=at(I({},pt,{dataTransfer:0})),gt=at(I({},ft,{relatedTarget:0})),vt=at(I({},st,{animationName:0,elapsedTime:0,pseudoElement:0})),yt=I({},st,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bt=at(yt),kt=at(I({},st,{data:0})),wt={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},St={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Et(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):!!(e=xt[e])&&!!n[e]}function Ct(){return Et}var _t=I({},ft,{key:function(e){if(e.key){var n=wt[e.key]||e.key;if("Unidentified"!==n)return n}return"keypress"===e.type?13===(e=tt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?St[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ct,charCode:function(e){return"keypress"===e.type?tt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),zt=at(_t),Nt=at(I({},pt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pt=at(I({},ft,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ct})),Tt=at(I({},st,{propertyName:0,elapsedTime:0,pseudoElement:0})),Lt=I({},pt,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mt=at(Lt),Ft=[9,13,27,32],Rt=c&&"CompositionEvent"in window,Dt=null;c&&"documentMode"in document&&(Dt=document.documentMode);var Ot=c&&"TextEvent"in window&&!Dt,It=c&&(!Rt||Dt&&8<Dt&&11>=Dt),Ut=String.fromCharCode(32),Vt=!1;function At(e,n){switch(e){case"keyup":return-1!==Ft.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bt(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ht=!1,Wt={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qt(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!Wt[e.type]:"textarea"===n}function jt(e,n,t,r){_e(r),0<(n=$r(n,"onChange")).length&&(t=new ct("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var $t=null,Kt=null;function qt(e){Ur(e,0)}function Yt(e){if(K(kl(e)))return e}function Xt(e,n){if("change"===e)return n}var Gt=!1;if(c){var Zt;if(c){var Jt="oninput"in document;if(!Jt){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jt="function"==typeof er.oninput}Zt=Jt}else Zt=!1;Gt=Zt&&(!document.documentMode||9<document.documentMode)}function nr(){$t&&($t.detachEvent("onpropertychange",tr),Kt=$t=null)}function tr(e){if("value"===e.propertyName&&Yt(Kt)){var n=[];jt(n,Kt,e,we(e)),Le(qt,n)}}function rr(e,n,t){"focusin"===e?(nr(),Kt=t,($t=n).attachEvent("onpropertychange",tr)):"focusout"===e&&nr()}function lr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yt(Kt)}function ar(e,n){if("click"===e)return Yt(n)}function ur(e,n){if("input"===e||"change"===e)return Yt(n)}var or="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n};function ir(e,n){if(or(e,n))return!0;if("object"!=typeof e||null===e||"object"!=typeof n||null===n)return!1;var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(r=0;r<t.length;r++){var l=t[r];if(!f.call(n,l)||!or(e[l],n[l]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,n){var t,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(t=e+r.textContent.length,e<=n&&t>=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?fr(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}function dr(){for(var e=window,n=q();n instanceof e.HTMLIFrameElement;){try{var t="string"==typeof n.contentWindow.location.href}catch(e){t=!1}if(!t)break;n=q((e=n.contentWindow).document)}return n}function pr(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}function mr(e){var n=dr(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&fr(t.ownerDocument.documentElement,t)){if(null!==r&&pr(t))if(n=r.start,void 0===(e=r.end)&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if((e=(n=t.ownerDocument||document)&&n.defaultView||window).getSelection){e=e.getSelection();var l=t.textContent.length,a=Math.min(r.start,l);r=void 0===r.end?a:Math.min(r.end,l),!e.extend&&a>r&&(l=r,r=a,a=l),l=cr(t,a);var u=cr(t,r);l&&u&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&((n=n.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}for(n=[],e=t;e=e.parentNode;)1===e.nodeType&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof t.focus&&t.focus(),t=0;t<n.length;t++)(e=n[t]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function kr(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;br||null==gr||gr!==q(r)||(r="selectionStart"in(r=gr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&ir(yr,r)||(yr=r,0<(r=$r(vr,"onSelect")).length&&(n=new ct("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=gr)))}function wr(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},xr={},Er={};function Cr(e){if(xr[e])return xr[e];if(!Sr[e])return e;var n,t=Sr[e];for(n in t)if(t.hasOwnProperty(n)&&n in Er)return xr[e]=t[n];return e}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var _r=Cr("animationend"),zr=Cr("animationiteration"),Nr=Cr("animationstart"),Pr=Cr("transitionend"),Tr=new Map,Lr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mr(e,n){Tr.set(e,n),i(n,[e])}for(var Fr=0;Fr<Lr.length;Fr++){var Rr=Lr[Fr];Mr(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Mr(_r,"onAnimationEnd"),Mr(zr,"onAnimationIteration"),Mr(Nr,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(Pr,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Or=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Ir(e,n,t){var r=e.type||"unknown-event";e.currentTarget=t,function(e,n,t,r,l,u,o,i,s){if(Be.apply(this,arguments),Oe){if(!Oe)throw Error(a(198));var c=Ie;Oe=!1,Ie=null,Ue||(Ue=!0,Ve=c)}}(r,n,void 0,e),e.currentTarget=null}function Ur(e,n){n=0!=(4&n);for(var t=0;t<e.length;t++){var r=e[t],l=r.event;r=r.listeners;e:{var a=void 0;if(n)for(var u=r.length-1;0<=u;u--){var o=r[u],i=o.instance,s=o.currentTarget;if(o=o.listener,i!==a&&l.isPropagationStopped())break e;Ir(l,o,s),a=i}else for(u=0;u<r.length;u++){if(i=(o=r[u]).instance,s=o.currentTarget,o=o.listener,i!==a&&l.isPropagationStopped())break e;Ir(l,o,s),a=i}}}if(Ue)throw e=Ve,Ue=!1,Ve=null,e}function Vr(e,n){var t=n[hl];void 0===t&&(t=n[hl]=new Set);var r=e+"__bubble";t.has(r)||(Wr(n,e,2,!1),t.add(r))}function Ar(e,n,t){var r=0;n&&(r|=4),Wr(t,e,r,n)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Br]){e[Br]=!0,u.forEach((function(n){"selectionchange"!==n&&(Or.has(n)||Ar(n,!1,e),Ar(n,!0,e))}));var n=9===e.nodeType?e:e.ownerDocument;null===n||n[Br]||(n[Br]=!0,Ar("selectionchange",!1,n))}}function Wr(e,n,t,r){switch(Gn(n)){case 1:var l=$n;break;case 4:l=Kn;break;default:l=qn}t=l.bind(null,n,t,e),l=void 0,!Fe||"touchstart"!==n&&"touchmove"!==n&&"wheel"!==n||(l=!0),r?void 0!==l?e.addEventListener(n,t,{capture:!0,passive:l}):e.addEventListener(n,t,!0):void 0!==l?e.addEventListener(n,t,{passive:l}):e.addEventListener(n,t,!1)}function Qr(e,n,t,r,l){var a=r;if(0==(1&n)&&0==(2&n)&&null!==r)e:for(;;){if(null===r)return;var u=r.tag;if(3===u||4===u){var o=r.stateNode.containerInfo;if(o===l||8===o.nodeType&&o.parentNode===l)break;if(4===u)for(u=r.return;null!==u;){var i=u.tag;if((3===i||4===i)&&((i=u.stateNode.containerInfo)===l||8===i.nodeType&&i.parentNode===l))return;u=u.return}for(;null!==o;){if(null===(u=yl(o)))return;if(5===(i=u.tag)||6===i){r=a=u;continue e}o=o.parentNode}}r=r.return}Le((function(){var r=a,l=we(t),u=[];e:{var o=Tr.get(e);if(void 0!==o){var i=ct,s=e;switch(e){case"keypress":if(0===tt(t))break e;case"keydown":case"keyup":i=zt;break;case"focusin":s="focus",i=gt;break;case"focusout":s="blur",i=gt;break;case"beforeblur":case"afterblur":i=gt;break;case"click":if(2===t.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":i=mt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":i=ht;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":i=Pt;break;case _r:case zr:case Nr:i=vt;break;case Pr:i=Tt;break;case"scroll":i=dt;break;case"wheel":i=Mt;break;case"copy":case"cut":case"paste":i=bt;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":i=Nt}var c=0!=(4&n),f=!c&&"scroll"===e,d=c?null!==o?o+"Capture":null:o;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&null!=(h=Me(m,d))&&c.push(jr(m,h,p))),f)break;m=m.return}0<c.length&&(o=new i(o,s,null,t,l),u.push({event:o,listeners:c}))}}if(0==(7&n)){if(i="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||t===ke||!(s=t.relatedTarget||t.fromElement)||!yl(s)&&!s[ml])&&(i||o)&&(o=l.window===l?l:(o=l.ownerDocument)?o.defaultView||o.parentWindow:window,i?(i=r,null!==(s=(s=t.relatedTarget||t.toElement)?yl(s):null)&&(s!==(f=He(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(i=null,s=r),i!==s)){if(c=mt,h="onMouseLeave",d="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Nt,h="onPointerLeave",d="onPointerEnter",m="pointer"),f=null==i?o:kl(i),p=null==s?o:kl(s),(o=new c(h,m+"leave",i,t,l)).target=f,o.relatedTarget=p,h=null,yl(l)===r&&((c=new c(d,m+"enter",s,t,l)).target=p,c.relatedTarget=f,h=c),f=h,i&&s)e:{for(d=s,m=0,p=c=i;p;p=Kr(p))m++;for(p=0,h=d;h;h=Kr(h))p++;for(;0<m-p;)c=Kr(c),m--;for(;0<p-m;)d=Kr(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break e;c=Kr(c),d=Kr(d)}c=null}else c=null;null!==i&&qr(u,o,i,c,!1),null!==s&&null!==f&&qr(u,f,s,c,!0)}if("select"===(i=(o=r?kl(r):window).nodeName&&o.nodeName.toLowerCase())||"input"===i&&"file"===o.type)var g=Xt;else if(Qt(o))if(Gt)g=ur;else{g=lr;var v=rr}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(g=ar);switch(g&&(g=g(e,r))?jt(u,g,t,l):(v&&v(e,o,r),"focusout"===e&&(v=o._wrapperState)&&v.controlled&&"number"===o.type&&ee(o,"number",o.value)),v=r?kl(r):window,e){case"focusin":(Qt(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,kr(u,t,l);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":kr(u,t,l)}var y;if(Rt)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Ht?At(e,t)&&(b="onCompositionEnd"):"keydown"===e&&229===t.keyCode&&(b="onCompositionStart");b&&(It&&"ko"!==t.locale&&(Ht||"onCompositionStart"!==b?"onCompositionEnd"===b&&Ht&&(y=nt()):(Jn="value"in(Zn=l)?Zn.value:Zn.textContent,Ht=!0)),0<(v=$r(r,b)).length&&(b=new kt(b,e,null,t,l),u.push({event:b,listeners:v}),(y||null!==(y=Bt(t)))&&(b.data=y))),(y=Ot?function(e,n){switch(e){case"compositionend":return Bt(n);case"keypress":return 32!==n.which?null:(Vt=!0,Ut);case"textInput":return(e=n.data)===Ut&&Vt?null:e;default:return null}}(e,t):function(e,n){if(Ht)return"compositionend"===e||!Rt&&At(e,n)?(e=nt(),et=Jn=Zn=null,Ht=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return It&&"ko"!==n.locale?null:n.data}}(e,t))&&0<(r=$r(r,"onBeforeInput")).length&&(l=new kt("onBeforeInput","beforeinput",null,t,l),u.push({event:l,listeners:r}),l.data=y)}Ur(u,n)}))}function jr(e,n,t){return{instance:e,listener:n,currentTarget:t}}function $r(e,n){for(var t=n+"Capture",r=[];null!==e;){var l=e,a=l.stateNode;5===l.tag&&null!==a&&(l=a,null!=(a=Me(e,t))&&r.unshift(jr(e,a,l)),null!=(a=Me(e,n))&&r.push(jr(e,a,l))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function qr(e,n,t,r,l){for(var a=n._reactName,u=[];null!==t&&t!==r;){var o=t,i=o.alternate,s=o.stateNode;if(null!==i&&i===r)break;5===o.tag&&null!==s&&(o=s,l?null!=(i=Me(t,a))&&u.unshift(jr(t,i,o)):l||null!=(i=Me(t,a))&&u.push(jr(t,i,o))),t=t.return}0!==u.length&&e.push({event:n,listeners:u})}var Yr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Gr(e){return("string"==typeof e?e:""+e).replace(Yr,"\n").replace(Xr,"")}function Zr(e,n,t){if(n=Gr(n),Gr(e)!==n&&t)throw Error(a(425))}function Jr(){}var el=null,nl=null;function tl(e,n){return"textarea"===e||"noscript"===e||"string"==typeof n.children||"number"==typeof n.children||"object"==typeof n.dangerouslySetInnerHTML&&null!==n.dangerouslySetInnerHTML&&null!=n.dangerouslySetInnerHTML.__html}var rl="function"==typeof setTimeout?setTimeout:void 0,ll="function"==typeof clearTimeout?clearTimeout:void 0,al="function"==typeof Promise?Promise:void 0,ul="function"==typeof queueMicrotask?queueMicrotask:void 0!==al?function(e){return al.resolve(null).then(e).catch(ol)}:rl;function ol(e){setTimeout((function(){throw e}))}function il(e,n){var t=n,r=0;do{var l=t.nextSibling;if(e.removeChild(t),l&&8===l.nodeType)if("/$"===(t=l.data)){if(0===r)return e.removeChild(l),void Wn(n);r--}else"$"!==t&&"$?"!==t&&"$!"!==t||r++;t=l}while(t);Wn(n)}function sl(e){for(;null!=e;e=e.nextSibling){var n=e.nodeType;if(1===n||3===n)break;if(8===n){if("$"===(n=e.data)||"$!"===n||"$?"===n)break;if("/$"===n)return null}}return e}function cl(e){e=e.previousSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if("$"===t||"$!"===t||"$?"===t){if(0===n)return e;n--}else"/$"===t&&n++}e=e.previousSibling}return null}var fl=Math.random().toString(36).slice(2),dl="__reactFiber$"+fl,pl="__reactProps$"+fl,ml="__reactContainer$"+fl,hl="__reactEvents$"+fl,gl="__reactListeners$"+fl,vl="__reactHandles$"+fl;function yl(e){var n=e[dl];if(n)return n;for(var t=e.parentNode;t;){if(n=t[ml]||t[dl]){if(t=n.alternate,null!==n.child||null!==t&&null!==t.child)for(e=cl(e);null!==e;){if(t=e[dl])return t;e=cl(e)}return n}t=(e=t).parentNode}return null}function bl(e){return!(e=e[dl]||e[ml])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function kl(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function wl(e){return e[pl]||null}var Sl=[],xl=-1;function El(e){return{current:e}}function Cl(e){0>xl||(e.current=Sl[xl],Sl[xl]=null,xl--)}function _l(e,n){xl++,Sl[xl]=e.current,e.current=n}var zl={},Nl=El(zl),Pl=El(!1),Tl=zl;function Ll(e,n){var t=e.type.contextTypes;if(!t)return zl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ml(e){return null!=e.childContextTypes}function Fl(){Cl(Pl),Cl(Nl)}function Rl(e,n,t){if(Nl.current!==zl)throw Error(a(168));_l(Nl,n),_l(Pl,t)}function Dl(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,"function"!=typeof r.getChildContext)return t;for(var l in r=r.getChildContext())if(!(l in n))throw Error(a(108,W(e)||"Unknown",l));return I({},t,r)}function Ol(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zl,Tl=Nl.current,_l(Nl,e),_l(Pl,Pl.current),!0}function Il(e,n,t){var r=e.stateNode;if(!r)throw Error(a(169));t?(e=Dl(e,n,Tl),r.__reactInternalMemoizedMergedChildContext=e,Cl(Pl),Cl(Nl),_l(Nl,e)):Cl(Pl),_l(Pl,t)}var Ul=null,Vl=!1,Al=!1;function Bl(e){null===Ul?Ul=[e]:Ul.push(e)}function Hl(){if(!Al&&null!==Ul){Al=!0;var e=0,n=kn;try{var t=Ul;for(kn=1;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}Ul=null,Vl=!1}catch(n){throw null!==Ul&&(Ul=Ul.slice(e+1)),Ke(Je,Hl),n}finally{kn=n,Al=!1}}return null}var Wl=[],Ql=0,jl=null,$l=0,Kl=[],ql=0,Yl=null,Xl=1,Gl="";function Zl(e,n){Wl[Ql++]=$l,Wl[Ql++]=jl,jl=e,$l=n}function Jl(e,n,t){Kl[ql++]=Xl,Kl[ql++]=Gl,Kl[ql++]=Yl,Yl=e;var r=Xl;e=Gl;var l=32-un(r)-1;r&=~(1<<l),t+=1;var a=32-un(n)+l;if(30<a){var u=l-l%5;a=(r&(1<<u)-1).toString(32),r>>=u,l-=u,Xl=1<<32-un(n)+l|t<<l|r,Gl=a+e}else Xl=1<<a|t<<l|r,Gl=e}function ea(e){null!==e.return&&(Zl(e,1),Jl(e,1,0))}function na(e){for(;e===jl;)jl=Wl[--Ql],Wl[Ql]=null,$l=Wl[--Ql],Wl[Ql]=null;for(;e===Yl;)Yl=Kl[--ql],Kl[ql]=null,Gl=Kl[--ql],Kl[ql]=null,Xl=Kl[--ql],Kl[ql]=null}var ta=null,ra=null,la=!1,aa=null;function ua(e,n){var t=Ls(5,null,null,0);t.elementType="DELETED",t.stateNode=n,t.return=e,null===(n=e.deletions)?(e.deletions=[t],e.flags|=16):n.push(t)}function oa(e,n){switch(e.tag){case 5:var t=e.type;return null!==(n=1!==n.nodeType||t.toLowerCase()!==n.nodeName.toLowerCase()?null:n)&&(e.stateNode=n,ta=e,ra=sl(n.firstChild),!0);case 6:return null!==(n=""===e.pendingProps||3!==n.nodeType?null:n)&&(e.stateNode=n,ta=e,ra=null,!0);case 13:return null!==(n=8!==n.nodeType?null:n)&&(t=null!==Yl?{id:Xl,overflow:Gl}:null,e.memoizedState={dehydrated:n,treeContext:t,retryLane:1073741824},(t=Ls(18,null,null,0)).stateNode=n,t.return=e,e.child=t,ta=e,ra=null,!0);default:return!1}}function ia(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function sa(e){if(la){var n=ra;if(n){var t=n;if(!oa(e,n)){if(ia(e))throw Error(a(418));n=sl(t.nextSibling);var r=ta;n&&oa(e,n)?ua(r,t):(e.flags=-4097&e.flags|2,la=!1,ta=e)}}else{if(ia(e))throw Error(a(418));e.flags=-4097&e.flags|2,la=!1,ta=e}}}function ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ta=e}function fa(e){if(e!==ta)return!1;if(!la)return ca(e),la=!0,!1;var n;if((n=3!==e.tag)&&!(n=5!==e.tag)&&(n="head"!==(n=e.type)&&"body"!==n&&!tl(e.type,e.memoizedProps)),n&&(n=ra)){if(ia(e))throw da(),Error(a(418));for(;n;)ua(e,n),n=sl(n.nextSibling)}if(ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType){var t=e.data;if("/$"===t){if(0===n){ra=sl(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++}e=e.nextSibling}ra=null}}else ra=ta?sl(e.stateNode.nextSibling):null;return!0}function da(){for(var e=ra;e;)e=sl(e.nextSibling)}function pa(){ra=ta=null,la=!1}function ma(e){null===aa?aa=[e]:aa.push(e)}var ha=k.ReactCurrentBatchConfig;function ga(e,n,t){if(null!==(e=t.ref)&&"function"!=typeof e&&"object"!=typeof e){if(t._owner){if(t=t._owner){if(1!==t.tag)throw Error(a(309));var r=t.stateNode}if(!r)throw Error(a(147,e));var l=r,u=""+e;return null!==n&&null!==n.ref&&"function"==typeof n.ref&&n.ref._stringRef===u?n.ref:(n=function(e){var n=l.refs;null===e?delete n[u]:n[u]=e},n._stringRef=u,n)}if("string"!=typeof e)throw Error(a(284));if(!t._owner)throw Error(a(290,e))}return e}function va(e,n){throw e=Object.prototype.toString.call(n),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function ya(e){return(0,e._init)(e._payload)}function ba(e){function n(n,t){if(e){var r=n.deletions;null===r?(n.deletions=[t],n.flags|=16):r.push(t)}}function t(t,r){if(!e)return null;for(;null!==r;)n(t,r),r=r.sibling;return null}function r(e,n){for(e=new Map;null!==n;)null!==n.key?e.set(n.key,n):e.set(n.index,n),n=n.sibling;return e}function l(e,n){return(e=Fs(e,n)).index=0,e.sibling=null,e}function u(n,t,r){return n.index=r,e?null!==(r=n.alternate)?(r=r.index)<t?(n.flags|=2,t):r:(n.flags|=2,t):(n.flags|=1048576,t)}function o(n){return e&&null===n.alternate&&(n.flags|=2),n}function i(e,n,t,r){return null===n||6!==n.tag?((n=Is(t,e.mode,r)).return=e,n):((n=l(n,t)).return=e,n)}function s(e,n,t,r){var a=t.type;return a===x?f(e,n,t.props.children,r,t.key):null!==n&&(n.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===M&&ya(a)===n.type)?((r=l(n,t.props)).ref=ga(e,n,t),r.return=e,r):((r=Rs(t.type,t.key,t.props,null,e.mode,r)).ref=ga(e,n,t),r.return=e,r)}function c(e,n,t,r){return null===n||4!==n.tag||n.stateNode.containerInfo!==t.containerInfo||n.stateNode.implementation!==t.implementation?((n=Us(t,e.mode,r)).return=e,n):((n=l(n,t.children||[])).return=e,n)}function f(e,n,t,r,a){return null===n||7!==n.tag?((n=Ds(t,e.mode,r,a)).return=e,n):((n=l(n,t)).return=e,n)}function d(e,n,t){if("string"==typeof n&&""!==n||"number"==typeof n)return(n=Is(""+n,e.mode,t)).return=e,n;if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return(t=Rs(n.type,n.key,n.props,null,e.mode,t)).ref=ga(e,null,n),t.return=e,t;case S:return(n=Us(n,e.mode,t)).return=e,n;case M:return d(e,(0,n._init)(n._payload),t)}if(ne(n)||D(n))return(n=Ds(n,e.mode,t,null)).return=e,n;va(e,n)}return null}function p(e,n,t,r){var l=null!==n?n.key:null;if("string"==typeof t&&""!==t||"number"==typeof t)return null!==l?null:i(e,n,""+t,r);if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return t.key===l?s(e,n,t,r):null;case S:return t.key===l?c(e,n,t,r):null;case M:return p(e,n,(l=t._init)(t._payload),r)}if(ne(t)||D(t))return null!==l?null:f(e,n,t,r,null);va(e,t)}return null}function m(e,n,t,r,l){if("string"==typeof r&&""!==r||"number"==typeof r)return i(n,e=e.get(t)||null,""+r,l);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return s(n,e=e.get(null===r.key?t:r.key)||null,r,l);case S:return c(n,e=e.get(null===r.key?t:r.key)||null,r,l);case M:return m(e,n,t,(0,r._init)(r._payload),l)}if(ne(r)||D(r))return f(n,e=e.get(t)||null,r,l,null);va(n,r)}return null}function h(l,a,o,i){for(var s=null,c=null,f=a,h=a=0,g=null;null!==f&&h<o.length;h++){f.index>h?(g=f,f=null):g=f.sibling;var v=p(l,f,o[h],i);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&n(l,f),a=u(v,a,h),null===c?s=v:c.sibling=v,c=v,f=g}if(h===o.length)return t(l,f),la&&Zl(l,h),s;if(null===f){for(;h<o.length;h++)null!==(f=d(l,o[h],i))&&(a=u(f,a,h),null===c?s=f:c.sibling=f,c=f);return la&&Zl(l,h),s}for(f=r(l,f);h<o.length;h++)null!==(g=m(f,l,h,o[h],i))&&(e&&null!==g.alternate&&f.delete(null===g.key?h:g.key),a=u(g,a,h),null===c?s=g:c.sibling=g,c=g);return e&&f.forEach((function(e){return n(l,e)})),la&&Zl(l,h),s}function g(l,o,i,s){var c=D(i);if("function"!=typeof c)throw Error(a(150));if(null==(i=c.call(i)))throw Error(a(151));for(var f=c=null,h=o,g=o=0,v=null,y=i.next();null!==h&&!y.done;g++,y=i.next()){h.index>g?(v=h,h=null):v=h.sibling;var b=p(l,h,y.value,s);if(null===b){null===h&&(h=v);break}e&&h&&null===b.alternate&&n(l,h),o=u(b,o,g),null===f?c=b:f.sibling=b,f=b,h=v}if(y.done)return t(l,h),la&&Zl(l,g),c;if(null===h){for(;!y.done;g++,y=i.next())null!==(y=d(l,y.value,s))&&(o=u(y,o,g),null===f?c=y:f.sibling=y,f=y);return la&&Zl(l,g),c}for(h=r(l,h);!y.done;g++,y=i.next())null!==(y=m(h,l,g,y.value,s))&&(e&&null!==y.alternate&&h.delete(null===y.key?g:y.key),o=u(y,o,g),null===f?c=y:f.sibling=y,f=y);return e&&h.forEach((function(e){return n(l,e)})),la&&Zl(l,g),c}return function e(r,a,u,i){if("object"==typeof u&&null!==u&&u.type===x&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case w:e:{for(var s=u.key,c=a;null!==c;){if(c.key===s){if((s=u.type)===x){if(7===c.tag){t(r,c.sibling),(a=l(c,u.props.children)).return=r,r=a;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===M&&ya(s)===c.type){t(r,c.sibling),(a=l(c,u.props)).ref=ga(r,c,u),a.return=r,r=a;break e}t(r,c);break}n(r,c),c=c.sibling}u.type===x?((a=Ds(u.props.children,r.mode,i,u.key)).return=r,r=a):((i=Rs(u.type,u.key,u.props,null,r.mode,i)).ref=ga(r,a,u),i.return=r,r=i)}return o(r);case S:e:{for(c=u.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===u.containerInfo&&a.stateNode.implementation===u.implementation){t(r,a.sibling),(a=l(a,u.children||[])).return=r,r=a;break e}t(r,a);break}n(r,a),a=a.sibling}(a=Us(u,r.mode,i)).return=r,r=a}return o(r);case M:return e(r,a,(c=u._init)(u._payload),i)}if(ne(u))return h(r,a,u,i);if(D(u))return g(r,a,u,i);va(r,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==a&&6===a.tag?(t(r,a.sibling),(a=l(a,u)).return=r,r=a):(t(r,a),(a=Is(u,r.mode,i)).return=r,r=a),o(r)):t(r,a)}}var ka=ba(!0),wa=ba(!1),Sa=El(null),xa=null,Ea=null,Ca=null;function _a(){Ca=Ea=xa=null}function za(e){var n=Sa.current;Cl(Sa),e._currentValue=n}function Na(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Pa(e,n){xa=e,Ca=Ea=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&n)&&(bo=!0),e.firstContext=null)}function Ta(e){var n=e._currentValue;if(Ca!==e)if(e={context:e,memoizedValue:n,next:null},null===Ea){if(null===xa)throw Error(a(308));Ea=e,xa.dependencies={lanes:0,firstContext:e}}else Ea=Ea.next=e;return n}var La=null;function Ma(e){null===La?La=[e]:La.push(e)}function Fa(e,n,t,r){var l=n.interleaved;return null===l?(t.next=t,Ma(n)):(t.next=l.next,l.next=t),n.interleaved=t,Ra(e,r)}function Ra(e,n){e.lanes|=n;var t=e.alternate;for(null!==t&&(t.lanes|=n),t=e,e=e.return;null!==e;)e.childLanes|=n,null!==(t=e.alternate)&&(t.childLanes|=n),t=e,e=e.return;return 3===t.tag?t.stateNode:null}var Da=!1;function Oa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ia(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ua(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Va(e,n,t){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ni)){var l=r.pending;return null===l?n.next=n:(n.next=l.next,l.next=n),r.pending=n,Ra(e,t)}return null===(l=r.interleaved)?(n.next=n,Ma(r)):(n.next=l.next,l.next=n),r.interleaved=n,Ra(e,t)}function Aa(e,n,t){if(null!==(n=n.updateQueue)&&(n=n.shared,0!=(4194240&t))){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,bn(e,t)}}function Ba(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var l=null,a=null;if(null!==(t=t.firstBaseUpdate)){do{var u={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};null===a?l=a=u:a=a.next=u,t=t.next}while(null!==t);null===a?l=a=n:a=a.next=n}else l=a=n;return t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=t)}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function Ha(e,n,t,r){var l=e.updateQueue;Da=!1;var a=l.firstBaseUpdate,u=l.lastBaseUpdate,o=l.shared.pending;if(null!==o){l.shared.pending=null;var i=o,s=i.next;i.next=null,null===u?a=s:u.next=s,u=i;var c=e.alternate;null!==c&&(o=(c=c.updateQueue).lastBaseUpdate)!==u&&(null===o?c.firstBaseUpdate=s:o.next=s,c.lastBaseUpdate=i)}if(null!==a){var f=l.baseState;for(u=0,c=s=i=null,o=a;;){var d=o.lane,p=o.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,h=o;switch(d=n,p=t,h.tag){case 1:if("function"==typeof(m=h.payload)){f=m.call(p,f,d);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(d="function"==typeof(m=h.payload)?m.call(p,f,d):m))break e;f=I({},f,d);break e;case 2:Da=!0}}null!==o.callback&&0!==o.lane&&(e.flags|=64,null===(d=l.effects)?l.effects=[o]:d.push(o))}else p={eventTime:p,lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===c?(s=c=p,i=f):c=c.next=p,u|=d;if(null===(o=o.next)){if(null===(o=l.shared.pending))break;o=(d=o).next,d.next=null,l.lastBaseUpdate=d,l.shared.pending=null}}if(null===c&&(i=f),l.baseState=i,l.firstBaseUpdate=s,l.lastBaseUpdate=c,null!==(n=l.shared.interleaved)){l=n;do{u|=l.lane,l=l.next}while(l!==n)}else null===a&&(l.shared.lanes=0);Oi|=u,e.lanes=u,e.memoizedState=f}}function Wa(e,n,t){if(e=n.effects,n.effects=null,null!==e)for(n=0;n<e.length;n++){var r=e[n],l=r.callback;if(null!==l){if(r.callback=null,r=t,"function"!=typeof l)throw Error(a(191,l));l.call(r)}}}var Qa={},ja=El(Qa),$a=El(Qa),Ka=El(Qa);function qa(e){if(e===Qa)throw Error(a(174));return e}function Ya(e,n){switch(_l(Ka,n),_l($a,e),_l(ja,Qa),e=n.nodeType){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ie(null,"");break;default:n=ie(n=(e=8===e?n.parentNode:n).namespaceURI||null,e=e.tagName)}Cl(ja),_l(ja,n)}function Xa(){Cl(ja),Cl($a),Cl(Ka)}function Ga(e){qa(Ka.current);var n=qa(ja.current),t=ie(n,e.type);n!==t&&(_l($a,e),_l(ja,t))}function Za(e){$a.current===e&&(Cl(ja),Cl($a))}var Ja=El(0);function eu(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||"$?"===t.data||"$!"===t.data))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var nu=[];function tu(){for(var e=0;e<nu.length;e++)nu[e]._workInProgressVersionPrimary=null;nu.length=0}var ru=k.ReactCurrentDispatcher,lu=k.ReactCurrentBatchConfig,au=0,uu=null,ou=null,iu=null,su=!1,cu=!1,fu=0,du=0;function pu(){throw Error(a(321))}function mu(e,n){if(null===n)return!1;for(var t=0;t<n.length&&t<e.length;t++)if(!or(e[t],n[t]))return!1;return!0}function hu(e,n,t,r,l,u){if(au=u,uu=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,ru.current=null===e||null===e.memoizedState?Zu:Ju,e=t(r,l),cu){u=0;do{if(cu=!1,fu=0,25<=u)throw Error(a(301));u+=1,iu=ou=null,n.updateQueue=null,ru.current=eo,e=t(r,l)}while(cu)}if(ru.current=Gu,n=null!==ou&&null!==ou.next,au=0,iu=ou=uu=null,su=!1,n)throw Error(a(300));return e}function gu(){var e=0!==fu;return fu=0,e}function vu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===iu?uu.memoizedState=iu=e:iu=iu.next=e,iu}function yu(){if(null===ou){var e=uu.alternate;e=null!==e?e.memoizedState:null}else e=ou.next;var n=null===iu?uu.memoizedState:iu.next;if(null!==n)iu=n,ou=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ou=e).memoizedState,baseState:ou.baseState,baseQueue:ou.baseQueue,queue:ou.queue,next:null},null===iu?uu.memoizedState=iu=e:iu=iu.next=e}return iu}function bu(e,n){return"function"==typeof n?n(e):n}function ku(e){var n=yu(),t=n.queue;if(null===t)throw Error(a(311));t.lastRenderedReducer=e;var r=ou,l=r.baseQueue,u=t.pending;if(null!==u){if(null!==l){var o=l.next;l.next=u.next,u.next=o}r.baseQueue=l=u,t.pending=null}if(null!==l){u=l.next,r=r.baseState;var i=o=null,s=null,c=u;do{var f=c.lane;if((au&f)===f)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(i=s=d,o=r):s=s.next=d,uu.lanes|=f,Oi|=f}c=c.next}while(null!==c&&c!==u);null===s?o=r:s.next=i,or(r,n.memoizedState)||(bo=!0),n.memoizedState=r,n.baseState=o,n.baseQueue=s,t.lastRenderedState=r}if(null!==(e=t.interleaved)){l=e;do{u=l.lane,uu.lanes|=u,Oi|=u,l=l.next}while(l!==e)}else null===l&&(t.lanes=0);return[n.memoizedState,t.dispatch]}function wu(e){var n=yu(),t=n.queue;if(null===t)throw Error(a(311));t.lastRenderedReducer=e;var r=t.dispatch,l=t.pending,u=n.memoizedState;if(null!==l){t.pending=null;var o=l=l.next;do{u=e(u,o.action),o=o.next}while(o!==l);or(u,n.memoizedState)||(bo=!0),n.memoizedState=u,null===n.baseQueue&&(n.baseState=u),t.lastRenderedState=u}return[u,r]}function Su(){}function xu(e,n){var t=uu,r=yu(),l=n(),u=!or(r.memoizedState,l);if(u&&(r.memoizedState=l,bo=!0),r=r.queue,Du(_u.bind(null,t,r,e),[e]),r.getSnapshot!==n||u||null!==iu&&1&iu.memoizedState.tag){if(t.flags|=2048,Tu(9,Cu.bind(null,t,r,l,n),void 0,null),null===Pi)throw Error(a(349));0!=(30&au)||Eu(t,n,l)}return l}function Eu(e,n,t){e.flags|=16384,e={getSnapshot:n,value:t},null===(n=uu.updateQueue)?(n={lastEffect:null,stores:null},uu.updateQueue=n,n.stores=[e]):null===(t=n.stores)?n.stores=[e]:t.push(e)}function Cu(e,n,t,r){n.value=t,n.getSnapshot=r,zu(n)&&Nu(e)}function _u(e,n,t){return t((function(){zu(n)&&Nu(e)}))}function zu(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!or(e,t)}catch(e){return!0}}function Nu(e){var n=Ra(e,1);null!==n&&ts(n,e,1,-1)}function Pu(e){var n=vu();return"function"==typeof e&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bu,lastRenderedState:e},n.queue=e,e=e.dispatch=Ku.bind(null,uu,e),[n.memoizedState,e]}function Tu(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},null===(n=uu.updateQueue)?(n={lastEffect:null,stores:null},uu.updateQueue=n,n.lastEffect=e.next=e):null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function Lu(){return yu().memoizedState}function Mu(e,n,t,r){var l=vu();uu.flags|=e,l.memoizedState=Tu(1|n,t,void 0,void 0===r?null:r)}function Fu(e,n,t,r){var l=yu();r=void 0===r?null:r;var a=void 0;if(null!==ou){var u=ou.memoizedState;if(a=u.destroy,null!==r&&mu(r,u.deps))return void(l.memoizedState=Tu(n,t,a,r))}uu.flags|=e,l.memoizedState=Tu(1|n,t,a,r)}function Ru(e,n){return Mu(8390656,8,e,n)}function Du(e,n){return Fu(2048,8,e,n)}function Ou(e,n){return Fu(4,2,e,n)}function Iu(e,n){return Fu(4,4,e,n)}function Uu(e,n){return"function"==typeof n?(e=e(),n(e),function(){n(null)}):null!=n?(e=e(),n.current=e,function(){n.current=null}):void 0}function Vu(e,n,t){return t=null!=t?t.concat([e]):null,Fu(4,4,Uu.bind(null,n,e),t)}function Au(){}function Bu(e,n){var t=yu();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&mu(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Hu(e,n){var t=yu();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&mu(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function Wu(e,n,t){return 0==(21&au)?(e.baseState&&(e.baseState=!1,bo=!0),e.memoizedState=t):(or(t,n)||(t=gn(),uu.lanes|=t,Oi|=t,e.baseState=!0),n)}function Qu(e,n){var t=kn;kn=0!==t&&4>t?t:4,e(!0);var r=lu.transition;lu.transition={};try{e(!1),n()}finally{kn=t,lu.transition=r}}function ju(){return yu().memoizedState}function $u(e,n,t){var r=ns(e);t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},qu(e)?Yu(n,t):null!==(t=Fa(e,n,t,r))&&(ts(t,e,r,es()),Xu(t,n,r))}function Ku(e,n,t){var r=ns(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(qu(e))Yu(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var u=n.lastRenderedState,o=a(u,t);if(l.hasEagerState=!0,l.eagerState=o,or(o,u)){var i=n.interleaved;return null===i?(l.next=l,Ma(n)):(l.next=i.next,i.next=l),void(n.interleaved=l)}}catch(e){}null!==(t=Fa(e,n,l,r))&&(ts(t,e,r,l=es()),Xu(t,n,r))}}function qu(e){var n=e.alternate;return e===uu||null!==n&&n===uu}function Yu(e,n){cu=su=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Xu(e,n,t){if(0!=(4194240&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,bn(e,t)}}var Gu={readContext:Ta,useCallback:pu,useContext:pu,useEffect:pu,useImperativeHandle:pu,useInsertionEffect:pu,useLayoutEffect:pu,useMemo:pu,useReducer:pu,useRef:pu,useState:pu,useDebugValue:pu,useDeferredValue:pu,useTransition:pu,useMutableSource:pu,useSyncExternalStore:pu,useId:pu,unstable_isNewReconciler:!1},Zu={readContext:Ta,useCallback:function(e,n){return vu().memoizedState=[e,void 0===n?null:n],e},useContext:Ta,useEffect:Ru,useImperativeHandle:function(e,n,t){return t=null!=t?t.concat([e]):null,Mu(4194308,4,Uu.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Mu(4194308,4,e,n)},useInsertionEffect:function(e,n){return Mu(4,2,e,n)},useMemo:function(e,n){var t=vu();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=vu();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=$u.bind(null,uu,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},vu().memoizedState=e},useState:Pu,useDebugValue:Au,useDeferredValue:function(e){return vu().memoizedState=e},useTransition:function(){var e=Pu(!1),n=e[0];return e=Qu.bind(null,e[1]),vu().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=uu,l=vu();if(la){if(void 0===t)throw Error(a(407));t=t()}else{if(t=n(),null===Pi)throw Error(a(349));0!=(30&au)||Eu(r,n,t)}l.memoizedState=t;var u={value:t,getSnapshot:n};return l.queue=u,Ru(_u.bind(null,r,u,e),[e]),r.flags|=2048,Tu(9,Cu.bind(null,r,u,t,n),void 0,null),t},useId:function(){var e=vu(),n=Pi.identifierPrefix;if(la){var t=Gl;n=":"+n+"R"+(t=(Xl&~(1<<32-un(Xl)-1)).toString(32)+t),0<(t=fu++)&&(n+="H"+t.toString(32)),n+=":"}else n=":"+n+"r"+(t=du++).toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},Ju={readContext:Ta,useCallback:Bu,useContext:Ta,useEffect:Du,useImperativeHandle:Vu,useInsertionEffect:Ou,useLayoutEffect:Iu,useMemo:Hu,useReducer:ku,useRef:Lu,useState:function(){return ku(bu)},useDebugValue:Au,useDeferredValue:function(e){return Wu(yu(),ou.memoizedState,e)},useTransition:function(){return[ku(bu)[0],yu().memoizedState]},useMutableSource:Su,useSyncExternalStore:xu,useId:ju,unstable_isNewReconciler:!1},eo={readContext:Ta,useCallback:Bu,useContext:Ta,useEffect:Du,useImperativeHandle:Vu,useInsertionEffect:Ou,useLayoutEffect:Iu,useMemo:Hu,useReducer:wu,useRef:Lu,useState:function(){return wu(bu)},useDebugValue:Au,useDeferredValue:function(e){var n=yu();return null===ou?n.memoizedState=e:Wu(n,ou.memoizedState,e)},useTransition:function(){return[wu(bu)[0],yu().memoizedState]},useMutableSource:Su,useSyncExternalStore:xu,useId:ju,unstable_isNewReconciler:!1};function no(e,n){if(e&&e.defaultProps){for(var t in n=I({},n),e=e.defaultProps)void 0===n[t]&&(n[t]=e[t]);return n}return n}function to(e,n,t,r){t=null==(t=t(r,n=e.memoizedState))?n:I({},n,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}var ro={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,n,t){e=e._reactInternals;var r=es(),l=ns(e),a=Ua(r,l);a.payload=n,null!=t&&(a.callback=t),null!==(n=Va(e,a,l))&&(ts(n,e,l,r),Aa(n,e,l))},enqueueReplaceState:function(e,n,t){e=e._reactInternals;var r=es(),l=ns(e),a=Ua(r,l);a.tag=1,a.payload=n,null!=t&&(a.callback=t),null!==(n=Va(e,a,l))&&(ts(n,e,l,r),Aa(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var t=es(),r=ns(e),l=Ua(t,r);l.tag=2,null!=n&&(l.callback=n),null!==(n=Va(e,l,r))&&(ts(n,e,r,t),Aa(n,e,r))}};function lo(e,n,t,r,l,a,u){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,u):!(n.prototype&&n.prototype.isPureReactComponent&&ir(t,r)&&ir(l,a))}function ao(e,n,t){var r=!1,l=zl,a=n.contextType;return"object"==typeof a&&null!==a?a=Ta(a):(l=Ml(n)?Tl:Nl.current,a=(r=null!=(r=n.contextTypes))?Ll(e,l):zl),n=new n(t,a),e.memoizedState=null!==n.state&&void 0!==n.state?n.state:null,n.updater=ro,e.stateNode=n,n._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),n}function uo(e,n,t,r){e=n.state,"function"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),"function"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&ro.enqueueReplaceState(n,n.state,null)}function oo(e,n,t,r){var l=e.stateNode;l.props=t,l.state=e.memoizedState,l.refs={},Oa(e);var a=n.contextType;"object"==typeof a&&null!==a?l.context=Ta(a):(a=Ml(n)?Tl:Nl.current,l.context=Ll(e,a)),l.state=e.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(to(e,n,a,t),l.state=e.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof l.getSnapshotBeforeUpdate||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||(n=l.state,"function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),n!==l.state&&ro.enqueueReplaceState(l,l.state,null),Ha(e,t,l,r),l.state=e.memoizedState),"function"==typeof l.componentDidMount&&(e.flags|=4194308)}function io(e,n){try{var t="",r=n;do{t+=B(r),r=r.return}while(r);var l=t}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:n,stack:l,digest:null}}function so(e,n,t){return{value:e,source:null,stack:null!=t?t:null,digest:null!=n?n:null}}function co(e,n){try{console.error(n.value)}catch(e){setTimeout((function(){throw e}))}}var fo="function"==typeof WeakMap?WeakMap:Map;function po(e,n,t){(t=Ua(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){Qi||(Qi=!0,ji=r),co(0,n)},t}function mo(e,n,t){(t=Ua(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){co(0,n)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){co(0,n),"function"!=typeof r&&(null===$i?$i=new Set([this]):$i.add(this));var e=n.stack;this.componentDidCatch(n.value,{componentStack:null!==e?e:""})}),t}function ho(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new fo;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=Cs.bind(null,e,n,t),n.then(e,e))}function go(e){do{var n;if((n=13===e.tag)&&(n=null===(n=e.memoizedState)||null!==n.dehydrated),n)return e;e=e.return}while(null!==e);return null}function vo(e,n,t,r,l){return 0==(1&e.mode)?(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,1===t.tag&&(null===t.alternate?t.tag=17:((n=Ua(-1,1)).tag=2,Va(t,n,1))),t.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var yo=k.ReactCurrentOwner,bo=!1;function ko(e,n,t,r){n.child=null===e?wa(n,null,t,r):ka(n,e.child,t,r)}function wo(e,n,t,r,l){t=t.render;var a=n.ref;return Pa(n,l),r=hu(e,n,t,r,a,l),t=gu(),null===e||bo?(la&&t&&ea(n),n.flags|=1,ko(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Qo(e,n,l))}function So(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||Ms(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=Rs(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,xo(e,n,a,r,l))}if(a=e.child,0==(e.lanes&l)){var u=a.memoizedProps;if((t=null!==(t=t.compare)?t:ir)(u,r)&&e.ref===n.ref)return Qo(e,n,l)}return n.flags|=1,(e=Fs(a,r)).ref=n.ref,e.return=n,n.child=e}function xo(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(ir(a,r)&&e.ref===n.ref){if(bo=!1,n.pendingProps=r=a,0==(e.lanes&l))return n.lanes=e.lanes,Qo(e,n,l);0!=(131072&e.flags)&&(bo=!0)}}return _o(e,n,t,r,l)}function Eo(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},_l(Fi,Mi),Mi|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,_l(Fi,Mi),Mi|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:t,_l(Fi,Mi),Mi|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,_l(Fi,Mi),Mi|=r;return ko(e,n,l,t),n.child}function Co(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function _o(e,n,t,r,l){var a=Ml(t)?Tl:Nl.current;return a=Ll(n,a),Pa(n,l),t=hu(e,n,t,r,a,l),r=gu(),null===e||bo?(la&&r&&ea(n),n.flags|=1,ko(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Qo(e,n,l))}function zo(e,n,t,r,l){if(Ml(t)){var a=!0;Ol(n)}else a=!1;if(Pa(n,l),null===n.stateNode)Wo(e,n),ao(n,t,r),oo(n,t,r,l),r=!0;else if(null===e){var u=n.stateNode,o=n.memoizedProps;u.props=o;var i=u.context,s=t.contextType;s="object"==typeof s&&null!==s?Ta(s):Ll(n,s=Ml(t)?Tl:Nl.current);var c=t.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof u.getSnapshotBeforeUpdate;f||"function"!=typeof u.UNSAFE_componentWillReceiveProps&&"function"!=typeof u.componentWillReceiveProps||(o!==r||i!==s)&&uo(n,u,r,s),Da=!1;var d=n.memoizedState;u.state=d,Ha(n,r,u,l),i=n.memoizedState,o!==r||d!==i||Pl.current||Da?("function"==typeof c&&(to(n,t,c,r),i=n.memoizedState),(o=Da||lo(n,t,o,r,d,i,s))?(f||"function"!=typeof u.UNSAFE_componentWillMount&&"function"!=typeof u.componentWillMount||("function"==typeof u.componentWillMount&&u.componentWillMount(),"function"==typeof u.UNSAFE_componentWillMount&&u.UNSAFE_componentWillMount()),"function"==typeof u.componentDidMount&&(n.flags|=4194308)):("function"==typeof u.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=i),u.props=r,u.state=i,u.context=s,r=o):("function"==typeof u.componentDidMount&&(n.flags|=4194308),r=!1)}else{u=n.stateNode,Ia(e,n),o=n.memoizedProps,s=n.type===n.elementType?o:no(n.type,o),u.props=s,f=n.pendingProps,d=u.context,i="object"==typeof(i=t.contextType)&&null!==i?Ta(i):Ll(n,i=Ml(t)?Tl:Nl.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof u.getSnapshotBeforeUpdate)||"function"!=typeof u.UNSAFE_componentWillReceiveProps&&"function"!=typeof u.componentWillReceiveProps||(o!==f||d!==i)&&uo(n,u,r,i),Da=!1,d=n.memoizedState,u.state=d,Ha(n,r,u,l);var m=n.memoizedState;o!==f||d!==m||Pl.current||Da?("function"==typeof p&&(to(n,t,p,r),m=n.memoizedState),(s=Da||lo(n,t,s,r,d,m,i)||!1)?(c||"function"!=typeof u.UNSAFE_componentWillUpdate&&"function"!=typeof u.componentWillUpdate||("function"==typeof u.componentWillUpdate&&u.componentWillUpdate(r,m,i),"function"==typeof u.UNSAFE_componentWillUpdate&&u.UNSAFE_componentWillUpdate(r,m,i)),"function"==typeof u.componentDidUpdate&&(n.flags|=4),"function"==typeof u.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof u.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof u.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=m),u.props=r,u.state=m,u.context=i,r=s):("function"!=typeof u.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof u.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return No(e,n,t,r,a,l)}function No(e,n,t,r,l,a){Co(e,n);var u=0!=(128&n.flags);if(!r&&!u)return l&&Il(n,t,!1),Qo(e,n,a);r=n.stateNode,yo.current=n;var o=u&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&u?(n.child=ka(n,e.child,null,a),n.child=ka(n,null,o,a)):ko(e,n,o,a),n.memoizedState=r.state,l&&Il(n,t,!0),n.child}function Po(e){var n=e.stateNode;n.pendingContext?Rl(0,n.pendingContext,n.pendingContext!==n.context):n.context&&Rl(0,n.context,!1),Ya(e,n.containerInfo)}function To(e,n,t,r,l){return pa(),ma(l),n.flags|=256,ko(e,n,t,r),n.child}var Lo,Mo,Fo,Ro,Do={dehydrated:null,treeContext:null,retryLane:0};function Oo(e){return{baseLanes:e,cachePool:null,transitions:null}}function Io(e,n,t){var r,l=n.pendingProps,u=Ja.current,o=!1,i=0!=(128&n.flags);if((r=i)||(r=(null===e||null!==e.memoizedState)&&0!=(2&u)),r?(o=!0,n.flags&=-129):null!==e&&null===e.memoizedState||(u|=1),_l(Ja,1&u),null===e)return sa(n),null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&n.mode)?n.lanes=1:"$!"===e.data?n.lanes=8:n.lanes=1073741824,null):(i=l.children,e=l.fallback,o?(l=n.mode,o=n.child,i={mode:"hidden",children:i},0==(1&l)&&null!==o?(o.childLanes=0,o.pendingProps=i):o=Os(i,l,0,null),e=Ds(e,l,t,null),o.return=n,e.return=n,o.sibling=e,n.child=o,n.child.memoizedState=Oo(t),n.memoizedState=Do,e):Uo(n,i));if(null!==(u=e.memoizedState)&&null!==(r=u.dehydrated))return function(e,n,t,r,l,u,o){if(t)return 256&n.flags?(n.flags&=-257,Vo(e,n,o,r=so(Error(a(422))))):null!==n.memoizedState?(n.child=e.child,n.flags|=128,null):(u=r.fallback,l=n.mode,r=Os({mode:"visible",children:r.children},l,0,null),(u=Ds(u,l,o,null)).flags|=2,r.return=n,u.return=n,r.sibling=u,n.child=r,0!=(1&n.mode)&&ka(n,e.child,null,o),n.child.memoizedState=Oo(o),n.memoizedState=Do,u);if(0==(1&n.mode))return Vo(e,n,o,null);if("$!"===l.data){if(r=l.nextSibling&&l.nextSibling.dataset)var i=r.dgst;return r=i,Vo(e,n,o,r=so(u=Error(a(419)),r,void 0))}if(i=0!=(o&e.childLanes),bo||i){if(null!==(r=Pi)){switch(o&-o){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}0!==(l=0!=(l&(r.suspendedLanes|o))?0:l)&&l!==u.retryLane&&(u.retryLane=l,Ra(e,l),ts(r,e,l,-1))}return hs(),Vo(e,n,o,r=so(Error(a(421))))}return"$?"===l.data?(n.flags|=128,n.child=e.child,n=zs.bind(null,e),l._reactRetry=n,null):(e=u.treeContext,ra=sl(l.nextSibling),ta=n,la=!0,aa=null,null!==e&&(Kl[ql++]=Xl,Kl[ql++]=Gl,Kl[ql++]=Yl,Xl=e.id,Gl=e.overflow,Yl=n),(n=Uo(n,r.children)).flags|=4096,n)}(e,n,i,l,r,u,t);if(o){o=l.fallback,i=n.mode,r=(u=e.child).sibling;var s={mode:"hidden",children:l.children};return 0==(1&i)&&n.child!==u?((l=n.child).childLanes=0,l.pendingProps=s,n.deletions=null):(l=Fs(u,s)).subtreeFlags=14680064&u.subtreeFlags,null!==r?o=Fs(r,o):(o=Ds(o,i,t,null)).flags|=2,o.return=n,l.return=n,l.sibling=o,n.child=l,l=o,o=n.child,i=null===(i=e.child.memoizedState)?Oo(t):{baseLanes:i.baseLanes|t,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~t,n.memoizedState=Do,l}return e=(o=e.child).sibling,l=Fs(o,{mode:"visible",children:l.children}),0==(1&n.mode)&&(l.lanes=t),l.return=n,l.sibling=null,null!==e&&(null===(t=n.deletions)?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=l,n.memoizedState=null,l}function Uo(e,n){return(n=Os({mode:"visible",children:n},e.mode,0,null)).return=e,e.child=n}function Vo(e,n,t,r){return null!==r&&ma(r),ka(n,e.child,null,t),(e=Uo(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function Ao(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),Na(e.return,n,t)}function Bo(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function Ho(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(ko(e,n,r.children,t),0!=(2&(r=Ja.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ao(e,t,n);else if(19===e.tag)Ao(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_l(Ja,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===eu(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),Bo(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===eu(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}Bo(n,!0,t,null,a);break;case"together":Bo(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Wo(e,n){0==(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Qo(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),Oi|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error(a(153));if(null!==n.child){for(t=Fs(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=Fs(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function jo(e,n){if(!la)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $o(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function Ko(e,n,t){var r=n.pendingProps;switch(na(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $o(n),null;case 1:case 17:return Ml(n.type)&&Fl(),$o(n),null;case 3:return r=n.stateNode,Xa(),Cl(Pl),Cl(Nl),tu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fa(n)?n.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,null!==aa&&(us(aa),aa=null))),Mo(e,n),$o(n),null;case 5:Za(n);var l=qa(Ka.current);if(t=n.type,null!==e&&null!=n.stateNode)Fo(e,n,t,r,l),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(null===n.stateNode)throw Error(a(166));return $o(n),null}if(e=qa(ja.current),fa(n)){r=n.stateNode,t=n.type;var u=n.memoizedProps;switch(r[dl]=n,r[pl]=u,e=0!=(1&n.mode),t){case"dialog":Vr("cancel",r),Vr("close",r);break;case"iframe":case"object":case"embed":Vr("load",r);break;case"video":case"audio":for(l=0;l<Dr.length;l++)Vr(Dr[l],r);break;case"source":Vr("error",r);break;case"img":case"image":case"link":Vr("error",r),Vr("load",r);break;case"details":Vr("toggle",r);break;case"input":X(r,u),Vr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Vr("invalid",r);break;case"textarea":le(r,u),Vr("invalid",r)}for(var i in ye(t,u),l=null,u)if(u.hasOwnProperty(i)){var s=u[i];"children"===i?"string"==typeof s?r.textContent!==s&&(!0!==u.suppressHydrationWarning&&Zr(r.textContent,s,e),l=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==u.suppressHydrationWarning&&Zr(r.textContent,s,e),l=["children",""+s]):o.hasOwnProperty(i)&&null!=s&&"onScroll"===i&&Vr("scroll",r)}switch(t){case"input":$(r),J(r,u,!0);break;case"textarea":$(r),ue(r);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(r.onclick=Jr)}r=l,n.updateQueue=r,null!==r&&(n.flags|=4)}else{i=9===l.nodeType?l:l.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=oe(t)),"http://www.w3.org/1999/xhtml"===e?"script"===t?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(t,{is:r.is}):(e=i.createElement(t),"select"===t&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,t),e[dl]=n,e[pl]=r,Lo(e,n,!1,!1),n.stateNode=e;e:{switch(i=be(t,r),t){case"dialog":Vr("cancel",e),Vr("close",e),l=r;break;case"iframe":case"object":case"embed":Vr("load",e),l=r;break;case"video":case"audio":for(l=0;l<Dr.length;l++)Vr(Dr[l],e);l=r;break;case"source":Vr("error",e),l=r;break;case"img":case"image":case"link":Vr("error",e),Vr("load",e),l=r;break;case"details":Vr("toggle",e),l=r;break;case"input":X(e,r),l=Y(e,r),Vr("invalid",e);break;case"option":default:l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=I({},r,{value:void 0}),Vr("invalid",e);break;case"textarea":le(e,r),l=re(e,r),Vr("invalid",e)}for(u in ye(t,l),s=l)if(s.hasOwnProperty(u)){var c=s[u];"style"===u?ge(e,c):"dangerouslySetInnerHTML"===u?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===u?"string"==typeof c?("textarea"!==t||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(o.hasOwnProperty(u)?null!=c&&"onScroll"===u&&Vr("scroll",e):null!=c&&b(e,u,c,i))}switch(t){case"input":$(e),J(e,r,!1);break;case"textarea":$(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(u=r.value)?te(e,!!r.multiple,u,!1):null!=r.defaultValue&&te(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof l.onClick&&(e.onclick=Jr)}switch(t){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(n.flags|=4)}null!==n.ref&&(n.flags|=512,n.flags|=2097152)}return $o(n),null;case 6:if(e&&null!=n.stateNode)Ro(e,n,e.memoizedProps,r);else{if("string"!=typeof r&&null===n.stateNode)throw Error(a(166));if(t=qa(Ka.current),qa(ja.current),fa(n)){if(r=n.stateNode,t=n.memoizedProps,r[dl]=n,(u=r.nodeValue!==t)&&null!==(e=ta))switch(e.tag){case 3:Zr(r.nodeValue,t,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,t,0!=(1&e.mode))}u&&(n.flags|=4)}else(r=(9===t.nodeType?t:t.ownerDocument).createTextNode(r))[dl]=n,n.stateNode=r}return $o(n),null;case 13:if(Cl(Ja),r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(la&&null!==ra&&0!=(1&n.mode)&&0==(128&n.flags))da(),pa(),n.flags|=98560,u=!1;else if(u=fa(n),null!==r&&null!==r.dehydrated){if(null===e){if(!u)throw Error(a(318));if(!(u=null!==(u=n.memoizedState)?u.dehydrated:null))throw Error(a(317));u[dl]=n}else pa(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;$o(n),u=!1}else null!==aa&&(us(aa),aa=null),u=!0;if(!u)return 65536&n.flags?n:null}return 0!=(128&n.flags)?(n.lanes=t,n):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(n.child.flags|=8192,0!=(1&n.mode)&&(null===e||0!=(1&Ja.current)?0===Ri&&(Ri=3):hs())),null!==n.updateQueue&&(n.flags|=4),$o(n),null);case 4:return Xa(),Mo(e,n),null===e&&Hr(n.stateNode.containerInfo),$o(n),null;case 10:return za(n.type._context),$o(n),null;case 19:if(Cl(Ja),null===(u=n.memoizedState))return $o(n),null;if(r=0!=(128&n.flags),null===(i=u.rendering))if(r)jo(u,!1);else{if(0!==Ri||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(i=eu(e))){for(n.flags|=128,jo(u,!1),null!==(r=i.updateQueue)&&(n.updateQueue=r,n.flags|=4),n.subtreeFlags=0,r=t,t=n.child;null!==t;)e=r,(u=t).flags&=14680066,null===(i=u.alternate)?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,u.type=i.type,e=i.dependencies,u.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),t=t.sibling;return _l(Ja,1&Ja.current|2),n.child}e=e.sibling}null!==u.tail&&Ge()>Hi&&(n.flags|=128,r=!0,jo(u,!1),n.lanes=4194304)}else{if(!r)if(null!==(e=eu(i))){if(n.flags|=128,r=!0,null!==(t=e.updateQueue)&&(n.updateQueue=t,n.flags|=4),jo(u,!0),null===u.tail&&"hidden"===u.tailMode&&!i.alternate&&!la)return $o(n),null}else 2*Ge()-u.renderingStartTime>Hi&&1073741824!==t&&(n.flags|=128,r=!0,jo(u,!1),n.lanes=4194304);u.isBackwards?(i.sibling=n.child,n.child=i):(null!==(t=u.last)?t.sibling=i:n.child=i,u.last=i)}return null!==u.tail?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=Ge(),n.sibling=null,t=Ja.current,_l(Ja,r?1&t|2:1&t),n):($o(n),null);case 22:case 23:return fs(),r=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==r&&(n.flags|=8192),r&&0!=(1&n.mode)?0!=(1073741824&Mi)&&($o(n),6&n.subtreeFlags&&(n.flags|=8192)):$o(n),null;case 24:case 25:return null}throw Error(a(156,n.tag))}function qo(e,n){switch(na(n),n.tag){case 1:return Ml(n.type)&&Fl(),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return Xa(),Cl(Pl),Cl(Nl),tu(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return Za(n),null;case 13:if(Cl(Ja),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(a(340));pa()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return Cl(Ja),null;case 4:return Xa(),null;case 10:return za(n.type._context),null;case 22:case 23:return fs(),null;default:return null}}Lo=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)e.appendChild(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},Mo=function(){},Fo=function(e,n,t,r){var l=e.memoizedProps;if(l!==r){e=n.stateNode,qa(ja.current);var a,u=null;switch(t){case"input":l=Y(e,l),r=Y(e,r),u=[];break;case"select":l=I({},l,{value:void 0}),r=I({},r,{value:void 0}),u=[];break;case"textarea":l=re(e,l),r=re(e,r),u=[];break;default:"function"!=typeof l.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in ye(t,r),t=null,l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&null!=l[c])if("style"===c){var i=l[c];for(a in i)i.hasOwnProperty(a)&&(t||(t={}),t[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?u||(u=[]):(u=u||[]).push(c,null));for(c in r){var s=r[c];if(i=null!=l?l[c]:void 0,r.hasOwnProperty(c)&&s!==i&&(null!=s||null!=i))if("style"===c)if(i){for(a in i)!i.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(t||(t={}),t[a]="");for(a in s)s.hasOwnProperty(a)&&i[a]!==s[a]&&(t||(t={}),t[a]=s[a])}else t||(u||(u=[]),u.push(c,t)),t=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,i=i?i.__html:void 0,null!=s&&i!==s&&(u=u||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(u=u||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Vr("scroll",e),u||i===s||(u=[])):(u=u||[]).push(c,s))}t&&(u=u||[]).push("style",t);var c=u;(n.updateQueue=c)&&(n.flags|=4)}},Ro=function(e,n,t,r){t!==r&&(n.flags|=4)};var Yo=!1,Xo=!1,Go="function"==typeof WeakSet?WeakSet:Set,Zo=null;function Jo(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Es(e,n,t)}else t.current=null}function ei(e,n,t){try{t()}catch(t){Es(e,n,t)}}var ni=!1;function ti(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&ei(n,t,a)}l=l.next}while(l!==r)}}function ri(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function li(e){var n=e.ref;if(null!==n){var t=e.stateNode;e.tag,e=t,"function"==typeof n?n(e):n.current=e}}function ai(e){var n=e.alternate;null!==n&&(e.alternate=null,ai(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(n=e.stateNode)&&(delete n[dl],delete n[pl],delete n[hl],delete n[gl],delete n[vl]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ui(e){return 5===e.tag||3===e.tag||4===e.tag}function oi(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ui(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ii(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?8===t.nodeType?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(8===t.nodeType?(n=t.parentNode).insertBefore(e,t):(n=t).appendChild(e),null!=(t=t._reactRootContainer)||null!==n.onclick||(n.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ii(e,n,t),e=e.sibling;null!==e;)ii(e,n,t),e=e.sibling}function si(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&null!==(e=e.child))for(si(e,n,t),e=e.sibling;null!==e;)si(e,n,t),e=e.sibling}var ci=null,fi=!1;function di(e,n,t){for(t=t.child;null!==t;)pi(e,n,t),t=t.sibling}function pi(e,n,t){if(an&&"function"==typeof an.onCommitFiberUnmount)try{an.onCommitFiberUnmount(ln,t)}catch(e){}switch(t.tag){case 5:Xo||Jo(t,n);case 6:var r=ci,l=fi;ci=null,di(e,n,t),fi=l,null!==(ci=r)&&(fi?(e=ci,t=t.stateNode,8===e.nodeType?e.parentNode.removeChild(t):e.removeChild(t)):ci.removeChild(t.stateNode));break;case 18:null!==ci&&(fi?(e=ci,t=t.stateNode,8===e.nodeType?il(e.parentNode,t):1===e.nodeType&&il(e,t),Wn(e)):il(ci,t.stateNode));break;case 4:r=ci,l=fi,ci=t.stateNode.containerInfo,fi=!0,di(e,n,t),ci=r,fi=l;break;case 0:case 11:case 14:case 15:if(!Xo&&null!==(r=t.updateQueue)&&null!==(r=r.lastEffect)){l=r=r.next;do{var a=l,u=a.destroy;a=a.tag,void 0!==u&&(0!=(2&a)||0!=(4&a))&&ei(t,n,u),l=l.next}while(l!==r)}di(e,n,t);break;case 1:if(!Xo&&(Jo(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){Es(t,n,e)}di(e,n,t);break;case 21:di(e,n,t);break;case 22:1&t.mode?(Xo=(r=Xo)||null!==t.memoizedState,di(e,n,t),Xo=r):di(e,n,t);break;default:di(e,n,t)}}function mi(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new Go),n.forEach((function(n){var r=Ns.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))}))}}function hi(e,n){var t=n.deletions;if(null!==t)for(var r=0;r<t.length;r++){var l=t[r];try{var u=e,o=n,i=o;e:for(;null!==i;){switch(i.tag){case 5:ci=i.stateNode,fi=!1;break e;case 3:case 4:ci=i.stateNode.containerInfo,fi=!0;break e}i=i.return}if(null===ci)throw Error(a(160));pi(u,o,l),ci=null,fi=!1;var s=l.alternate;null!==s&&(s.return=null),l.return=null}catch(e){Es(l,n,e)}}if(12854&n.subtreeFlags)for(n=n.child;null!==n;)gi(n,e),n=n.sibling}function gi(e,n){var t=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hi(n,e),vi(e),4&r){try{ti(3,e,e.return),ri(3,e)}catch(n){Es(e,e.return,n)}try{ti(5,e,e.return)}catch(n){Es(e,e.return,n)}}break;case 1:hi(n,e),vi(e),512&r&&null!==t&&Jo(t,t.return);break;case 5:if(hi(n,e),vi(e),512&r&&null!==t&&Jo(t,t.return),32&e.flags){var l=e.stateNode;try{de(l,"")}catch(n){Es(e,e.return,n)}}if(4&r&&null!=(l=e.stateNode)){var u=e.memoizedProps,o=null!==t?t.memoizedProps:u,i=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===i&&"radio"===u.type&&null!=u.name&&G(l,u),be(i,o);var c=be(i,u);for(o=0;o<s.length;o+=2){var f=s[o],d=s[o+1];"style"===f?ge(l,d):"dangerouslySetInnerHTML"===f?fe(l,d):"children"===f?de(l,d):b(l,f,d,c)}switch(i){case"input":Z(l,u);break;case"textarea":ae(l,u);break;case"select":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!u.multiple;var m=u.value;null!=m?te(l,!!u.multiple,m,!1):p!==!!u.multiple&&(null!=u.defaultValue?te(l,!!u.multiple,u.defaultValue,!0):te(l,!!u.multiple,u.multiple?[]:"",!1))}l[pl]=u}catch(n){Es(e,e.return,n)}}break;case 6:if(hi(n,e),vi(e),4&r){if(null===e.stateNode)throw Error(a(162));l=e.stateNode,u=e.memoizedProps;try{l.nodeValue=u}catch(n){Es(e,e.return,n)}}break;case 3:if(hi(n,e),vi(e),4&r&&null!==t&&t.memoizedState.isDehydrated)try{Wn(n.containerInfo)}catch(n){Es(e,e.return,n)}break;case 4:default:hi(n,e),vi(e);break;case 13:hi(n,e),vi(e),8192&(l=e.child).flags&&(u=null!==l.memoizedState,l.stateNode.isHidden=u,!u||null!==l.alternate&&null!==l.alternate.memoizedState||(Bi=Ge())),4&r&&mi(e);break;case 22:if(f=null!==t&&null!==t.memoizedState,1&e.mode?(Xo=(c=Xo)||f,hi(n,e),Xo=c):hi(n,e),vi(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!=(1&e.mode))for(Zo=e,f=e.child;null!==f;){for(d=Zo=f;null!==Zo;){switch(m=(p=Zo).child,p.tag){case 0:case 11:case 14:case 15:ti(4,p,p.return);break;case 1:Jo(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,t=p.return;try{n=r,h.props=n.memoizedProps,h.state=n.memoizedState,h.componentWillUnmount()}catch(e){Es(r,t,e)}}break;case 5:Jo(p,p.return);break;case 22:if(null!==p.memoizedState){wi(d);continue}}null!==m?(m.return=p,Zo=m):wi(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{l=d.stateNode,c?"function"==typeof(u=l.style).setProperty?u.setProperty("display","none","important"):u.display="none":(i=d.stateNode,o=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,i.style.display=he("display",o))}catch(n){Es(e,e.return,n)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(n){Es(e,e.return,n)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:hi(n,e),vi(e),4&r&&mi(e);case 21:}}function vi(e){var n=e.flags;if(2&n){try{e:{for(var t=e.return;null!==t;){if(ui(t)){var r=t;break e}t=t.return}throw Error(a(160))}switch(r.tag){case 5:var l=r.stateNode;32&r.flags&&(de(l,""),r.flags&=-33),si(e,oi(e),l);break;case 3:case 4:var u=r.stateNode.containerInfo;ii(e,oi(e),u);break;default:throw Error(a(161))}}catch(n){Es(e,e.return,n)}e.flags&=-3}4096&n&&(e.flags&=-4097)}function yi(e,n,t){Zo=e,bi(e,n,t)}function bi(e,n,t){for(var r=0!=(1&e.mode);null!==Zo;){var l=Zo,a=l.child;if(22===l.tag&&r){var u=null!==l.memoizedState||Yo;if(!u){var o=l.alternate,i=null!==o&&null!==o.memoizedState||Xo;o=Yo;var s=Xo;if(Yo=u,(Xo=i)&&!s)for(Zo=l;null!==Zo;)i=(u=Zo).child,22===u.tag&&null!==u.memoizedState?Si(l):null!==i?(i.return=u,Zo=i):Si(l);for(;null!==a;)Zo=a,bi(a,n,t),a=a.sibling;Zo=l,Yo=o,Xo=s}ki(e)}else 0!=(8772&l.subtreeFlags)&&null!==a?(a.return=l,Zo=a):ki(e)}}function ki(e){for(;null!==Zo;){var n=Zo;if(0!=(8772&n.flags)){var t=n.alternate;try{if(0!=(8772&n.flags))switch(n.tag){case 0:case 11:case 15:Xo||ri(5,n);break;case 1:var r=n.stateNode;if(4&n.flags&&!Xo)if(null===t)r.componentDidMount();else{var l=n.elementType===n.type?t.memoizedProps:no(n.type,t.memoizedProps);r.componentDidUpdate(l,t.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var u=n.updateQueue;null!==u&&Wa(n,u,r);break;case 3:var o=n.updateQueue;if(null!==o){if(t=null,null!==n.child)switch(n.child.tag){case 5:case 1:t=n.child.stateNode}Wa(n,o,t)}break;case 5:var i=n.stateNode;if(null===t&&4&n.flags){t=i;var s=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&t.focus();break;case"img":s.src&&(t.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===n.memoizedState){var c=n.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Wn(d)}}}break;default:throw Error(a(163))}Xo||512&n.flags&&li(n)}catch(e){Es(n,n.return,e)}}if(n===e){Zo=null;break}if(null!==(t=n.sibling)){t.return=n.return,Zo=t;break}Zo=n.return}}function wi(e){for(;null!==Zo;){var n=Zo;if(n===e){Zo=null;break}var t=n.sibling;if(null!==t){t.return=n.return,Zo=t;break}Zo=n.return}}function Si(e){for(;null!==Zo;){var n=Zo;try{switch(n.tag){case 0:case 11:case 15:var t=n.return;try{ri(4,n)}catch(e){Es(n,t,e)}break;case 1:var r=n.stateNode;if("function"==typeof r.componentDidMount){var l=n.return;try{r.componentDidMount()}catch(e){Es(n,l,e)}}var a=n.return;try{li(n)}catch(e){Es(n,a,e)}break;case 5:var u=n.return;try{li(n)}catch(e){Es(n,u,e)}}}catch(e){Es(n,n.return,e)}if(n===e){Zo=null;break}var o=n.sibling;if(null!==o){o.return=n.return,Zo=o;break}Zo=n.return}}var xi,Ei=Math.ceil,Ci=k.ReactCurrentDispatcher,_i=k.ReactCurrentOwner,zi=k.ReactCurrentBatchConfig,Ni=0,Pi=null,Ti=null,Li=0,Mi=0,Fi=El(0),Ri=0,Di=null,Oi=0,Ii=0,Ui=0,Vi=null,Ai=null,Bi=0,Hi=1/0,Wi=null,Qi=!1,ji=null,$i=null,Ki=!1,qi=null,Yi=0,Xi=0,Gi=null,Zi=-1,Ji=0;function es(){return 0!=(6&Ni)?Ge():-1!==Zi?Zi:Zi=Ge()}function ns(e){return 0==(1&e.mode)?1:0!=(2&Ni)&&0!==Li?Li&-Li:null!==ha.transition?(0===Ji&&(Ji=gn()),Ji):0!==(e=kn)?e:e=void 0===(e=window.event)?16:Gn(e.type)}function ts(e,n,t,r){if(50<Xi)throw Xi=0,Gi=null,Error(a(185));yn(e,t,r),0!=(2&Ni)&&e===Pi||(e===Pi&&(0==(2&Ni)&&(Ii|=t),4===Ri&&os(e,Li)),rs(e,r),1===t&&0===Ni&&0==(1&n.mode)&&(Hi=Ge()+500,Vl&&Hl()))}function rs(e,n){var t=e.callbackNode;!function(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=e.pendingLanes;0<a;){var u=31-un(a),o=1<<u,i=l[u];-1===i?0!=(o&t)&&0==(o&r)||(l[u]=mn(o,n)):i<=n&&(e.expiredLanes|=o),a&=~o}}(e,n);var r=pn(e,e===Pi?Li:0);if(0===r)null!==t&&qe(t),e.callbackNode=null,e.callbackPriority=0;else if(n=r&-r,e.callbackPriority!==n){if(null!=t&&qe(t),1===n)0===e.tag?function(e){Vl=!0,Bl(e)}(is.bind(null,e)):Bl(is.bind(null,e)),ul((function(){0==(6&Ni)&&Hl()})),t=null;else{switch(wn(r)){case 1:t=Je;break;case 4:t=en;break;case 16:default:t=nn;break;case 536870912:t=rn}t=Ps(t,ls.bind(null,e))}e.callbackPriority=n,e.callbackNode=t}}function ls(e,n){if(Zi=-1,Ji=0,0!=(6&Ni))throw Error(a(327));var t=e.callbackNode;if(Ss()&&e.callbackNode!==t)return null;var r=pn(e,e===Pi?Li:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||n)n=gs(e,r);else{n=r;var l=Ni;Ni|=2;var u=ms();for(Pi===e&&Li===n||(Wi=null,Hi=Ge()+500,ds(e,n));;)try{ys();break}catch(n){ps(e,n)}_a(),Ci.current=u,Ni=l,null!==Ti?n=0:(Pi=null,Li=0,n=Ri)}if(0!==n){if(2===n&&0!==(l=hn(e))&&(r=l,n=as(e,l)),1===n)throw t=Di,ds(e,0),os(e,r),rs(e,Ge()),t;if(6===n)os(e,r);else{if(l=e.current.alternate,0==(30&r)&&!function(e){for(var n=e;;){if(16384&n.flags){var t=n.updateQueue;if(null!==t&&null!==(t=t.stores))for(var r=0;r<t.length;r++){var l=t[r],a=l.getSnapshot;l=l.value;try{if(!or(a(),l))return!1}catch(e){return!1}}}if(t=n.child,16384&n.subtreeFlags&&null!==t)t.return=n,n=t;else{if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}(l)&&(2===(n=gs(e,r))&&0!==(u=hn(e))&&(r=u,n=as(e,u)),1===n))throw t=Di,ds(e,0),os(e,r),rs(e,Ge()),t;switch(e.finishedWork=l,e.finishedLanes=r,n){case 0:case 1:throw Error(a(345));case 2:case 5:ws(e,Ai,Wi);break;case 3:if(os(e,r),(130023424&r)===r&&10<(n=Bi+500-Ge())){if(0!==pn(e,0))break;if(((l=e.suspendedLanes)&r)!==r){es(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=rl(ws.bind(null,e,Ai,Wi),n);break}ws(e,Ai,Wi);break;case 4:if(os(e,r),(4194240&r)===r)break;for(n=e.eventTimes,l=-1;0<r;){var o=31-un(r);u=1<<o,(o=n[o])>l&&(l=o),r&=~u}if(r=l,10<(r=(120>(r=Ge()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ei(r/1960))-r)){e.timeoutHandle=rl(ws.bind(null,e,Ai,Wi),r);break}ws(e,Ai,Wi);break;default:throw Error(a(329))}}}return rs(e,Ge()),e.callbackNode===t?ls.bind(null,e):null}function as(e,n){var t=Vi;return e.current.memoizedState.isDehydrated&&(ds(e,n).flags|=256),2!==(e=gs(e,n))&&(n=Ai,Ai=t,null!==n&&us(n)),e}function us(e){null===Ai?Ai=e:Ai.push.apply(Ai,e)}function os(e,n){for(n&=~Ui,n&=~Ii,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var t=31-un(n),r=1<<t;e[t]=-1,n&=~r}}function is(e){if(0!=(6&Ni))throw Error(a(327));Ss();var n=pn(e,0);if(0==(1&n))return rs(e,Ge()),null;var t=gs(e,n);if(0!==e.tag&&2===t){var r=hn(e);0!==r&&(n=r,t=as(e,r))}if(1===t)throw t=Di,ds(e,0),os(e,n),rs(e,Ge()),t;if(6===t)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,ws(e,Ai,Wi),rs(e,Ge()),null}function ss(e,n){var t=Ni;Ni|=1;try{return e(n)}finally{0===(Ni=t)&&(Hi=Ge()+500,Vl&&Hl())}}function cs(e){null!==qi&&0===qi.tag&&0==(6&Ni)&&Ss();var n=Ni;Ni|=1;var t=zi.transition,r=kn;try{if(zi.transition=null,kn=1,e)return e()}finally{kn=r,zi.transition=t,0==(6&(Ni=n))&&Hl()}}function fs(){Mi=Fi.current,Cl(Fi)}function ds(e,n){e.finishedWork=null,e.finishedLanes=0;var t=e.timeoutHandle;if(-1!==t&&(e.timeoutHandle=-1,ll(t)),null!==Ti)for(t=Ti.return;null!==t;){var r=t;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Fl();break;case 3:Xa(),Cl(Pl),Cl(Nl),tu();break;case 5:Za(r);break;case 4:Xa();break;case 13:case 19:Cl(Ja);break;case 10:za(r.type._context);break;case 22:case 23:fs()}t=t.return}if(Pi=e,Ti=e=Fs(e.current,null),Li=Mi=n,Ri=0,Di=null,Ui=Ii=Oi=0,Ai=Vi=null,null!==La){for(n=0;n<La.length;n++)if(null!==(r=(t=La[n]).interleaved)){t.interleaved=null;var l=r.next,a=t.pending;if(null!==a){var u=a.next;a.next=l,r.next=u}t.pending=r}La=null}return e}function ps(e,n){for(;;){var t=Ti;try{if(_a(),ru.current=Gu,su){for(var r=uu.memoizedState;null!==r;){var l=r.queue;null!==l&&(l.pending=null),r=r.next}su=!1}if(au=0,iu=ou=uu=null,cu=!1,fu=0,_i.current=null,null===t||null===t.return){Ri=1,Di=n,Ti=null;break}e:{var u=e,o=t.return,i=t,s=n;if(n=Li,i.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,f=i,d=f.tag;if(0==(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var m=go(o);if(null!==m){m.flags&=-257,vo(m,o,i,0,n),1&m.mode&&ho(u,c,n),s=c;var h=(n=m).updateQueue;if(null===h){var g=new Set;g.add(s),n.updateQueue=g}else h.add(s);break e}if(0==(1&n)){ho(u,c,n),hs();break e}s=Error(a(426))}else if(la&&1&i.mode){var v=go(o);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),vo(v,o,i,0,n),ma(io(s,i));break e}}u=s=io(s,i),4!==Ri&&(Ri=2),null===Vi?Vi=[u]:Vi.push(u),u=o;do{switch(u.tag){case 3:u.flags|=65536,n&=-n,u.lanes|=n,Ba(u,po(0,s,n));break e;case 1:i=s;var y=u.type,b=u.stateNode;if(0==(128&u.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===$i||!$i.has(b)))){u.flags|=65536,n&=-n,u.lanes|=n,Ba(u,mo(u,i,n));break e}}u=u.return}while(null!==u)}ks(t)}catch(e){n=e,Ti===t&&null!==t&&(Ti=t=t.return);continue}break}}function ms(){var e=Ci.current;return Ci.current=Gu,null===e?Gu:e}function hs(){0!==Ri&&3!==Ri&&2!==Ri||(Ri=4),null===Pi||0==(268435455&Oi)&&0==(268435455&Ii)||os(Pi,Li)}function gs(e,n){var t=Ni;Ni|=2;var r=ms();for(Pi===e&&Li===n||(Wi=null,ds(e,n));;)try{vs();break}catch(n){ps(e,n)}if(_a(),Ni=t,Ci.current=r,null!==Ti)throw Error(a(261));return Pi=null,Li=0,Ri}function vs(){for(;null!==Ti;)bs(Ti)}function ys(){for(;null!==Ti&&!Ye();)bs(Ti)}function bs(e){var n=xi(e.alternate,e,Mi);e.memoizedProps=e.pendingProps,null===n?ks(e):Ti=n,_i.current=null}function ks(e){var n=e;do{var t=n.alternate;if(e=n.return,0==(32768&n.flags)){if(null!==(t=Ko(t,n,Mi)))return void(Ti=t)}else{if(null!==(t=qo(t,n)))return t.flags&=32767,void(Ti=t);if(null===e)return Ri=6,void(Ti=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(n=n.sibling))return void(Ti=n);Ti=n=e}while(null!==n);0===Ri&&(Ri=5)}function ws(e,n,t){var r=kn,l=zi.transition;try{zi.transition=null,kn=1,function(e,n,t,r){do{Ss()}while(null!==qi);if(0!=(6&Ni))throw Error(a(327));t=e.finishedWork;var l=e.finishedLanes;if(null===t)return null;if(e.finishedWork=null,e.finishedLanes=0,t===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var u=t.lanes|t.childLanes;if(function(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<t;){var l=31-un(t),a=1<<l;n[l]=0,r[l]=-1,e[l]=-1,t&=~a}}(e,u),e===Pi&&(Ti=Pi=null,Li=0),0==(2064&t.subtreeFlags)&&0==(2064&t.flags)||Ki||(Ki=!0,Ps(nn,(function(){return Ss(),null}))),u=0!=(15990&t.flags),0!=(15990&t.subtreeFlags)||u){u=zi.transition,zi.transition=null;var o=kn;kn=1;var i=Ni;Ni|=4,_i.current=null,function(e,n){if(el=jn,pr(e=dr())){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(r&&0!==r.rangeCount){t=r.anchorNode;var l=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{t.nodeType,u.nodeType}catch(e){t=null;break e}var o=0,i=-1,s=-1,c=0,f=0,d=e,p=null;n:for(;;){for(var m;d!==t||0!==l&&3!==d.nodeType||(i=o+l),d!==u||0!==r&&3!==d.nodeType||(s=o+r),3===d.nodeType&&(o+=d.nodeValue.length),null!==(m=d.firstChild);)p=d,d=m;for(;;){if(d===e)break n;if(p===t&&++c===l&&(i=o),p===u&&++f===r&&(s=o),null!==(m=d.nextSibling))break;p=(d=p).parentNode}d=m}t=-1===i||-1===s?null:{start:i,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(nl={focusedElem:e,selectionRange:t},jn=!1,Zo=n;null!==Zo;)if(e=(n=Zo).child,0!=(1028&n.subtreeFlags)&&null!==e)e.return=n,Zo=e;else for(;null!==Zo;){n=Zo;try{var h=n.alternate;if(0!=(1024&n.flags))switch(n.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,v=h.memoizedState,y=n.stateNode,b=y.getSnapshotBeforeUpdate(n.elementType===n.type?g:no(n.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var k=n.stateNode.containerInfo;1===k.nodeType?k.textContent="":9===k.nodeType&&k.documentElement&&k.removeChild(k.documentElement);break;default:throw Error(a(163))}}catch(e){Es(n,n.return,e)}if(null!==(e=n.sibling)){e.return=n.return,Zo=e;break}Zo=n.return}h=ni,ni=!1}(e,t),gi(t,e),mr(nl),jn=!!el,nl=el=null,e.current=t,yi(t,e,l),Xe(),Ni=i,kn=o,zi.transition=u}else e.current=t;if(Ki&&(Ki=!1,qi=e,Yi=l),0===(u=e.pendingLanes)&&($i=null),function(e){if(an&&"function"==typeof an.onCommitFiberRoot)try{an.onCommitFiberRoot(ln,e,void 0,128==(128&e.current.flags))}catch(e){}}(t.stateNode),rs(e,Ge()),null!==n)for(r=e.onRecoverableError,t=0;t<n.length;t++)r((l=n[t]).value,{componentStack:l.stack,digest:l.digest});if(Qi)throw Qi=!1,e=ji,ji=null,e;0!=(1&Yi)&&0!==e.tag&&Ss(),0!=(1&(u=e.pendingLanes))?e===Gi?Xi++:(Xi=0,Gi=e):Xi=0,Hl()}(e,n,t,r)}finally{zi.transition=l,kn=r}return null}function Ss(){if(null!==qi){var e=wn(Yi),n=zi.transition,t=kn;try{if(zi.transition=null,kn=16>e?16:e,null===qi)var r=!1;else{if(e=qi,qi=null,Yi=0,0!=(6&Ni))throw Error(a(331));var l=Ni;for(Ni|=4,Zo=e.current;null!==Zo;){var u=Zo,o=u.child;if(0!=(16&Zo.flags)){var i=u.deletions;if(null!==i){for(var s=0;s<i.length;s++){var c=i[s];for(Zo=c;null!==Zo;){var f=Zo;switch(f.tag){case 0:case 11:case 15:ti(8,f,u)}var d=f.child;if(null!==d)d.return=f,Zo=d;else for(;null!==Zo;){var p=(f=Zo).sibling,m=f.return;if(ai(f),f===c){Zo=null;break}if(null!==p){p.return=m,Zo=p;break}Zo=m}}}var h=u.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Zo=u}}if(0!=(2064&u.subtreeFlags)&&null!==o)o.return=u,Zo=o;else e:for(;null!==Zo;){if(0!=(2048&(u=Zo).flags))switch(u.tag){case 0:case 11:case 15:ti(9,u,u.return)}var y=u.sibling;if(null!==y){y.return=u.return,Zo=y;break e}Zo=u.return}}var b=e.current;for(Zo=b;null!==Zo;){var k=(o=Zo).child;if(0!=(2064&o.subtreeFlags)&&null!==k)k.return=o,Zo=k;else e:for(o=b;null!==Zo;){if(0!=(2048&(i=Zo).flags))try{switch(i.tag){case 0:case 11:case 15:ri(9,i)}}catch(e){Es(i,i.return,e)}if(i===o){Zo=null;break e}var w=i.sibling;if(null!==w){w.return=i.return,Zo=w;break e}Zo=i.return}}if(Ni=l,Hl(),an&&"function"==typeof an.onPostCommitFiberRoot)try{an.onPostCommitFiberRoot(ln,e)}catch(e){}r=!0}return r}finally{kn=t,zi.transition=n}}return!1}function xs(e,n,t){e=Va(e,n=po(0,n=io(t,n),1),1),n=es(),null!==e&&(yn(e,1,n),rs(e,n))}function Es(e,n,t){if(3===e.tag)xs(e,e,t);else for(;null!==n;){if(3===n.tag){xs(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===$i||!$i.has(r))){n=Va(n,e=mo(n,e=io(t,e),1),1),e=es(),null!==n&&(yn(n,1,e),rs(n,e));break}}n=n.return}}function Cs(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),n=es(),e.pingedLanes|=e.suspendedLanes&t,Pi===e&&(Li&t)===t&&(4===Ri||3===Ri&&(130023424&Li)===Li&&500>Ge()-Bi?ds(e,0):Ui|=t),rs(e,n)}function _s(e,n){0===n&&(0==(1&e.mode)?n=1:(n=fn,0==(130023424&(fn<<=1))&&(fn=4194304)));var t=es();null!==(e=Ra(e,n))&&(yn(e,n,t),rs(e,t))}function zs(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),_s(e,t)}function Ns(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(n),_s(e,t)}function Ps(e,n){return Ke(e,n)}function Ts(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ls(e,n,t,r){return new Ts(e,n,t,r)}function Ms(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fs(e,n){var t=e.alternate;return null===t?((t=Ls(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=14680064&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Rs(e,n,t,r,l,u){var o=2;if(r=e,"function"==typeof e)Ms(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case x:return Ds(t.children,l,u,n);case E:o=8,l|=8;break;case C:return(e=Ls(12,t,n,2|l)).elementType=C,e.lanes=u,e;case P:return(e=Ls(13,t,n,l)).elementType=P,e.lanes=u,e;case T:return(e=Ls(19,t,n,l)).elementType=T,e.lanes=u,e;case F:return Os(t,l,u,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:o=10;break e;case z:o=9;break e;case N:o=11;break e;case L:o=14;break e;case M:o=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(n=Ls(o,t,n,l)).elementType=e,n.type=r,n.lanes=u,n}function Ds(e,n,t,r){return(e=Ls(7,e,r,n)).lanes=t,e}function Os(e,n,t,r){return(e=Ls(22,e,r,n)).elementType=F,e.lanes=t,e.stateNode={isHidden:!1},e}function Is(e,n,t){return(e=Ls(6,e,null,n)).lanes=t,e}function Us(e,n,t){return(n=Ls(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Vs(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vn(0),this.expirationTimes=vn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vn(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function As(e,n,t,r,l,a,u,o,i){return e=new Vs(e,n,t,o,i),1===n?(n=1,!0===a&&(n|=8)):n=0,a=Ls(3,null,null,n),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oa(a),e}function Bs(e){if(!e)return zl;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(Ml(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(null!==n);throw Error(a(171))}if(1===e.tag){var t=e.type;if(Ml(t))return Dl(e,t,n)}return n}function Hs(e,n,t,r,l,a,u,o,i){return(e=As(t,r,!0,e,0,a,0,o,i)).context=Bs(null),t=e.current,(a=Ua(r=es(),l=ns(t))).callback=null!=n?n:null,Va(t,a,l),e.current.lanes=l,yn(e,l,r),rs(e,r),e}function Ws(e,n,t,r){var l=n.current,a=es(),u=ns(l);return t=Bs(t),null===n.context?n.context=t:n.pendingContext=t,(n=Ua(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(n.callback=r),null!==(e=Va(l,n,u))&&(ts(e,l,u,a),Aa(e,l,u)),u}function Qs(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function js(e,n){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t<n?t:n}}function $s(e,n){js(e,n),(e=e.alternate)&&js(e,n)}xi=function(e,n,t){if(null!==e)if(e.memoizedProps!==n.pendingProps||Pl.current)bo=!0;else{if(0==(e.lanes&t)&&0==(128&n.flags))return bo=!1,function(e,n,t){switch(n.tag){case 3:Po(n),pa();break;case 5:Ga(n);break;case 1:Ml(n.type)&&Ol(n);break;case 4:Ya(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;_l(Sa,r._currentValue),r._currentValue=l;break;case 13:if(null!==(r=n.memoizedState))return null!==r.dehydrated?(_l(Ja,1&Ja.current),n.flags|=128,null):0!=(t&n.child.childLanes)?Io(e,n,t):(_l(Ja,1&Ja.current),null!==(e=Qo(e,n,t))?e.sibling:null);_l(Ja,1&Ja.current);break;case 19:if(r=0!=(t&n.childLanes),0!=(128&e.flags)){if(r)return Ho(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),_l(Ja,Ja.current),r)break;return null;case 22:case 23:return n.lanes=0,Eo(e,n,t)}return Qo(e,n,t)}(e,n,t);bo=0!=(131072&e.flags)}else bo=!1,la&&0!=(1048576&n.flags)&&Jl(n,$l,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Wo(e,n),e=n.pendingProps;var l=Ll(n,Nl.current);Pa(n,t),l=hu(null,n,r,e,l,t);var u=gu();return n.flags|=1,"object"==typeof l&&null!==l&&"function"==typeof l.render&&void 0===l.$$typeof?(n.tag=1,n.memoizedState=null,n.updateQueue=null,Ml(r)?(u=!0,Ol(n)):u=!1,n.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,Oa(n),l.updater=ro,n.stateNode=l,l._reactInternals=n,oo(n,r,e,t),n=No(null,n,r,!0,u,t)):(n.tag=0,la&&u&&ea(n),ko(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Wo(e,n),e=n.pendingProps,r=(l=r._init)(r._payload),n.type=r,l=n.tag=function(e){if("function"==typeof e)return Ms(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===L)return 14}return 2}(r),e=no(r,e),l){case 0:n=_o(null,n,r,e,t);break e;case 1:n=zo(null,n,r,e,t);break e;case 11:n=wo(null,n,r,e,t);break e;case 14:n=So(null,n,r,no(r.type,e),t);break e}throw Error(a(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,_o(e,n,r,l=n.elementType===r?l:no(r,l),t);case 1:return r=n.type,l=n.pendingProps,zo(e,n,r,l=n.elementType===r?l:no(r,l),t);case 3:e:{if(Po(n),null===e)throw Error(a(387));r=n.pendingProps,l=(u=n.memoizedState).element,Ia(e,n),Ha(n,r,null,t);var o=n.memoizedState;if(r=o.element,u.isDehydrated){if(u={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},n.updateQueue.baseState=u,n.memoizedState=u,256&n.flags){n=To(e,n,r,t,l=io(Error(a(423)),n));break e}if(r!==l){n=To(e,n,r,t,l=io(Error(a(424)),n));break e}for(ra=sl(n.stateNode.containerInfo.firstChild),ta=n,la=!0,aa=null,t=wa(n,null,r,t),n.child=t;t;)t.flags=-3&t.flags|4096,t=t.sibling}else{if(pa(),r===l){n=Qo(e,n,t);break e}ko(e,n,r,t)}n=n.child}return n;case 5:return Ga(n),null===e&&sa(n),r=n.type,l=n.pendingProps,u=null!==e?e.memoizedProps:null,o=l.children,tl(r,l)?o=null:null!==u&&tl(r,u)&&(n.flags|=32),Co(e,n),ko(e,n,o,t),n.child;case 6:return null===e&&sa(n),null;case 13:return Io(e,n,t);case 4:return Ya(n,n.stateNode.containerInfo),r=n.pendingProps,null===e?n.child=ka(n,null,r,t):ko(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,wo(e,n,r,l=n.elementType===r?l:no(r,l),t);case 7:return ko(e,n,n.pendingProps,t),n.child;case 8:case 12:return ko(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,u=n.memoizedProps,o=l.value,_l(Sa,r._currentValue),r._currentValue=o,null!==u)if(or(u.value,o)){if(u.children===l.children&&!Pl.current){n=Qo(e,n,t);break e}}else for(null!==(u=n.child)&&(u.return=n);null!==u;){var i=u.dependencies;if(null!==i){o=u.child;for(var s=i.firstContext;null!==s;){if(s.context===r){if(1===u.tag){(s=Ua(-1,t&-t)).tag=2;var c=u.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}u.lanes|=t,null!==(s=u.alternate)&&(s.lanes|=t),Na(u.return,t,n),i.lanes|=t;break}s=s.next}}else if(10===u.tag)o=u.type===n.type?null:u.child;else if(18===u.tag){if(null===(o=u.return))throw Error(a(341));o.lanes|=t,null!==(i=o.alternate)&&(i.lanes|=t),Na(o,t,n),o=u.sibling}else o=u.child;if(null!==o)o.return=u;else for(o=u;null!==o;){if(o===n){o=null;break}if(null!==(u=o.sibling)){u.return=o.return,o=u;break}o=o.return}u=o}ko(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Pa(n,t),r=r(l=Ta(l)),n.flags|=1,ko(e,n,r,t),n.child;case 14:return l=no(r=n.type,n.pendingProps),So(e,n,r,l=no(r.type,l),t);case 15:return xo(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:no(r,l),Wo(e,n),n.tag=1,Ml(r)?(e=!0,Ol(n)):e=!1,Pa(n,t),ao(n,r,l),oo(n,r,l,t),No(null,n,r,!0,e,t);case 19:return Ho(e,n,t);case 22:return Eo(e,n,t)}throw Error(a(156,n.tag))};var Ks="function"==typeof reportError?reportError:function(e){console.error(e)};function qs(e){this._internalRoot=e}function Ys(e){this._internalRoot=e}function Xs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Gs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(){}function Js(e,n,t,r,l){var a=t._reactRootContainer;if(a){var u=a;if("function"==typeof l){var o=l;l=function(){var e=Qs(u);o.call(e)}}Ws(n,u,e,l)}else u=function(e,n,t,r,l){if(l){if("function"==typeof r){var a=r;r=function(){var e=Qs(u);a.call(e)}}var u=Hs(n,r,e,0,null,!1,0,"",Zs);return e._reactRootContainer=u,e[ml]=u.current,Hr(8===e.nodeType?e.parentNode:e),cs(),u}for(;l=e.lastChild;)e.removeChild(l);if("function"==typeof r){var o=r;r=function(){var e=Qs(i);o.call(e)}}var i=As(e,0,!1,null,0,!1,0,"",Zs);return e._reactRootContainer=i,e[ml]=i.current,Hr(8===e.nodeType?e.parentNode:e),cs((function(){Ws(n,i,t,r)})),i}(t,n,e,l,r);return Qs(u)}Ys.prototype.render=qs.prototype.render=function(e){var n=this._internalRoot;if(null===n)throw Error(a(409));Ws(e,n,null,null)},Ys.prototype.unmount=qs.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var n=e.containerInfo;cs((function(){Ws(null,e,null,null)})),n[ml]=null}},Ys.prototype.unstable_scheduleHydration=function(e){if(e){var n=Cn();e={blockedOn:null,target:e,priority:n};for(var t=0;t<Rn.length&&0!==n&&n<Rn[t].priority;t++);Rn.splice(t,0,e),0===t&&Un(e)}},Sn=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var t=dn(n.pendingLanes);0!==t&&(bn(n,1|t),rs(n,Ge()),0==(6&Ni)&&(Hi=Ge()+500,Hl()))}break;case 13:cs((function(){var n=Ra(e,1);if(null!==n){var t=es();ts(n,e,1,t)}})),$s(e,1)}},xn=function(e){if(13===e.tag){var n=Ra(e,134217728);null!==n&&ts(n,e,134217728,es()),$s(e,134217728)}},En=function(e){if(13===e.tag){var n=ns(e),t=Ra(e,n);null!==t&&ts(t,e,n,es()),$s(e,n)}},Cn=function(){return kn},_n=function(e,n){var t=kn;try{return kn=e,n()}finally{kn=t}},Se=function(e,n,t){switch(n){case"input":if(Z(e,t),n=t.name,"radio"===t.type&&null!=n){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<t.length;n++){var r=t[n];if(r!==e&&r.form===e.form){var l=wl(r);if(!l)throw Error(a(90));K(r),Z(r,l)}}}break;case"textarea":ae(e,t);break;case"select":null!=(n=t.value)&&te(e,!!t.multiple,n,!1)}},Ne=ss,Pe=cs;var ec={usingClientEntryPoint:!1,Events:[bl,kl,wl,_e,ze,ss]},nc={findFiberByHostInstance:yl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=je(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ln=rc.inject(tc),an=rc}catch(ce){}}n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,n.createPortal=function(e,n){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xs(n))throw Error(a(200));return function(e,n,t){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:n,implementation:t}}(e,n,null,t)},n.createRoot=function(e,n){if(!Xs(e))throw Error(a(299));var t=!1,r="",l=Ks;return null!=n&&(!0===n.unstable_strictMode&&(t=!0),void 0!==n.identifierPrefix&&(r=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),n=As(e,1,!1,null,0,t,0,r,l),e[ml]=n.current,Hr(8===e.nodeType?e.parentNode:e),new qs(n)},n.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var n=e._reactInternals;if(void 0===n){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=je(n))?null:e.stateNode},n.flushSync=function(e){return cs(e)},n.hydrate=function(e,n,t){if(!Gs(n))throw Error(a(200));return Js(null,e,n,!0,t)},n.hydrateRoot=function(e,n,t){if(!Xs(e))throw Error(a(405));var r=null!=t&&t.hydratedSources||null,l=!1,u="",o=Ks;if(null!=t&&(!0===t.unstable_strictMode&&(l=!0),void 0!==t.identifierPrefix&&(u=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),n=Hs(n,null,e,1,null!=t?t:null,l,0,u,o),e[ml]=n.current,Hr(e),r)for(e=0;e<r.length;e++)l=(l=(t=r[e])._getVersion)(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,l]:n.mutableSourceEagerHydrationData.push(t,l);return new Ys(n)},n.render=function(e,n,t){if(!Gs(n))throw Error(a(200));return Js(null,e,n,!1,t)},n.unmountComponentAtNode=function(e){if(!Gs(e))throw Error(a(40));return!!e._reactRootContainer&&(cs((function(){Js(null,null,e,!1,(function(){e._reactRootContainer=null,e[ml]=null}))})),!0)},n.unstable_batchedUpdates=ss,n.unstable_renderSubtreeIntoContainer=function(e,n,t,r){if(!Gs(t))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Js(e,n,t,!1,r)},n.version="18.3.1-next-f1338f8080-20240426"},961:(e,n,t)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=t(551)},463:(e,n)=>{function t(e,n){var t=e.length;e.push(n);e:for(;0<t;){var r=t-1>>>1,l=e[r];if(!(0<a(l,n)))break e;e[r]=n,e[t]=l,t=r}}function r(e){return 0===e.length?null:e[0]}function l(e){if(0===e.length)return null;var n=e[0],t=e.pop();if(t!==n){e[0]=t;e:for(var r=0,l=e.length,u=l>>>1;r<u;){var o=2*(r+1)-1,i=e[o],s=o+1,c=e[s];if(0>a(i,t))s<l&&0>a(c,i)?(e[r]=c,e[s]=t,r=s):(e[r]=i,e[o]=t,r=o);else{if(!(s<l&&0>a(c,t)))break e;e[r]=c,e[s]=t,r=s}}}return n}function a(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}if("object"==typeof performance&&"function"==typeof performance.now){var u=performance;n.unstable_now=function(){return u.now()}}else{var o=Date,i=o.now();n.unstable_now=function(){return o.now()-i}}var s=[],c=[],f=1,d=null,p=3,m=!1,h=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function k(e){for(var n=r(c);null!==n;){if(null===n.callback)l(c);else{if(!(n.startTime<=e))break;l(c),n.sortIndex=n.expirationTime,t(s,n)}n=r(c)}}function w(e){if(g=!1,k(e),!h)if(null!==r(s))h=!0,F(S);else{var n=r(c);null!==n&&R(w,n.startTime-e)}}function S(e,t){h=!1,g&&(g=!1,y(_),_=-1),m=!0;var a=p;try{for(k(t),d=r(s);null!==d&&(!(d.expirationTime>t)||e&&!P());){var u=d.callback;if("function"==typeof u){d.callback=null,p=d.priorityLevel;var o=u(d.expirationTime<=t);t=n.unstable_now(),"function"==typeof o?d.callback=o:d===r(s)&&l(s),k(t)}else l(s);d=r(s)}if(null!==d)var i=!0;else{var f=r(c);null!==f&&R(w,f.startTime-t),i=!1}return i}finally{d=null,p=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,E=!1,C=null,_=-1,z=5,N=-1;function P(){return!(n.unstable_now()-N<z)}function T(){if(null!==C){var e=n.unstable_now();N=e;var t=!0;try{t=C(!0,e)}finally{t?x():(E=!1,C=null)}}else E=!1}if("function"==typeof b)x=function(){b(T)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,M=L.port2;L.port1.onmessage=T,x=function(){M.postMessage(null)}}else x=function(){v(T,0)};function F(e){C=e,E||(E=!0,x())}function R(e,t){_=v((function(){e(n.unstable_now())}),t)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(e){e.callback=null},n.unstable_continueExecution=function(){h||m||(h=!0,F(S))},n.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<e?Math.floor(1e3/e):5},n.unstable_getCurrentPriorityLevel=function(){return p},n.unstable_getFirstCallbackNode=function(){return r(s)},n.unstable_next=function(e){switch(p){case 1:case 2:case 3:var n=3;break;default:n=p}var t=p;p=n;try{return e()}finally{p=t}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=p;p=e;try{return n()}finally{p=t}},n.unstable_scheduleCallback=function(e,l,a){var u=n.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?u+a:u,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return e={id:f++,callback:l,priorityLevel:e,startTime:a,expirationTime:o=a+o,sortIndex:-1},a>u?(e.sortIndex=a,t(c,e),null===r(s)&&e===r(c)&&(g?(y(_),_=-1):g=!0,R(w,a-u))):(e.sortIndex=o,t(s,e),h||m||(h=!0,F(S))),e},n.unstable_shouldYield=P,n.unstable_wrapCallback=function(e){var n=p;return function(){var t=p;p=n;try{return e.apply(this,arguments)}finally{p=t}}}},982:(e,n,t)=>{e.exports=t(463)},594:e=>{e.exports=React}},n={},t=function t(r){var l=n[r];if(void 0!==l)return l.exports;var a=n[r]={exports:{}};return e[r](a,a.exports,t),a.exports}(961);window.ReactDOM=t})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/vendor/react-dom.min.js.LICENSE.txt b/wp-includes/js/dist/vendor/react-dom.min.js.LICENSE.txt
new file mode 100644
index 0000000..122393a
--- /dev/null
+++ b/wp-includes/js/dist/vendor/react-dom.min.js.LICENSE.txt
@@ -0,0 +1,19 @@
+/**
+ * @license React
+ * react-dom.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+/**
+ * @license React
+ * scheduler.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
diff --git a/wp-includes/js/dist/vendor/react-jsx-runtime.js b/wp-includes/js/dist/vendor/react-jsx-runtime.js
new file mode 100644
index 0000000..a3ddbb4
--- /dev/null
+++ b/wp-includes/js/dist/vendor/react-jsx-runtime.js
@@ -0,0 +1,78 @@
+/*
+ * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
+ * This devtool is neither made for production nor for readable output files.
+ * It uses "eval()" calls to create a separate source file in the browser devtools.
+ * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
+ * or disable the default devtool with "devtool: false".
+ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
+ */
+/******/ (() => { // webpackBootstrap
+/******/ "use strict";
+/******/ var __webpack_modules__ = ({
+
+/***/ "./node_modules/react/cjs/react-jsx-runtime.development.js":
+/*!*****************************************************************!*\
+ !*** ./node_modules/react/cjs/react-jsx-runtime.development.js ***!
+ \*****************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+eval("/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\nif (true) {\n (function() {\n'use strict';\n\nvar React = __webpack_require__(/*! react */ \"react\");\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('<anonymous>')) {\n _frame = _frame.replace('<anonymous>', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie. <div {...props} key=\"Hi\" />\n // or <div key=\"Hi\" {...props} /> ). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n // <div {...props} key=\"Hi\" />, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nvar didWarnAboutKeySpread = {};\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n {\n if (hasOwnProperty.call(props, 'key')) {\n var componentName = getComponentNameFromType(type);\n var keys = Object.keys(props).filter(function (k) {\n return k !== 'key';\n });\n var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';\n\n if (!didWarnAboutKeySpread[componentName + beforeExample]) {\n var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';\n\n error('A props object containing a \"key\" prop is being spread into JSX:\\n' + ' let props = %s;\\n' + ' <%s {...props} />\\n' + 'React keys must be passed directly to JSX without using spread:\\n' + ' let props = %s;\\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);\n\n didWarnAboutKeySpread[componentName + beforeExample] = true;\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n\n\n//# sourceURL=webpack://WordPress/./node_modules/react/cjs/react-jsx-runtime.development.js?");
+
+/***/ }),
+
+/***/ "./node_modules/react/jsx-runtime.js":
+/*!*******************************************!*\
+ !*** ./node_modules/react/jsx-runtime.js ***!
+ \*******************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
+
+eval("\n\nif (false) {} else {\n module.exports = __webpack_require__(/*! ./cjs/react-jsx-runtime.development.js */ \"./node_modules/react/cjs/react-jsx-runtime.development.js\");\n}\n\n\n//# sourceURL=webpack://WordPress/./node_modules/react/jsx-runtime.js?");
+
+/***/ }),
+
+/***/ "react":
+/*!************************!*\
+ !*** external "React" ***!
+ \************************/
+/***/ ((module) => {
+
+module.exports = React;
+
+/***/ })
+
+/******/ });
+/************************************************************************/
+/******/ // The module cache
+/******/ var __webpack_module_cache__ = {};
+/******/
+/******/ // The require function
+/******/ function __webpack_require__(moduleId) {
+/******/ // Check if module is in cache
+/******/ var cachedModule = __webpack_module_cache__[moduleId];
+/******/ if (cachedModule !== undefined) {
+/******/ return cachedModule.exports;
+/******/ }
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = __webpack_module_cache__[moduleId] = {
+/******/ // no module.id needed
+/******/ // no module.loaded needed
+/******/ exports: {}
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/************************************************************************/
+/******/
+/******/ // startup
+/******/ // Load entry module and return exports
+/******/ // This entry module can't be inlined because the eval devtool is used.
+/******/ var __webpack_exports__ = __webpack_require__("./node_modules/react/jsx-runtime.js");
+/******/ window.ReactJSXRuntime = __webpack_exports__;
+/******/
+/******/ })()
+; \ No newline at end of file
diff --git a/wp-includes/js/dist/vendor/react-jsx-runtime.min.js b/wp-includes/js/dist/vendor/react-jsx-runtime.min.js
new file mode 100644
index 0000000..4c72db4
--- /dev/null
+++ b/wp-includes/js/dist/vendor/react-jsx-runtime.min.js
@@ -0,0 +1,2 @@
+/*! For license information please see react-jsx-runtime.min.js.LICENSE.txt */
+(()=>{"use strict";var r={20:(r,e,t)=>{var o=t(594),n=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,f=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function _(r,e,t){var o,s={},_=null,i=null;for(o in void 0!==t&&(_=""+t),void 0!==e.key&&(_=""+e.key),void 0!==e.ref&&(i=e.ref),e)a.call(e,o)&&!p.hasOwnProperty(o)&&(s[o]=e[o]);if(r&&r.defaultProps)for(o in e=r.defaultProps)void 0===s[o]&&(s[o]=e[o]);return{$$typeof:n,type:r,key:_,ref:i,props:s,_owner:f.current}}e.Fragment=s,e.jsx=_,e.jsxs=_},848:(r,e,t)=>{r.exports=t(20)},594:r=>{r.exports=React}},e={},t=function t(o){var n=e[o];if(void 0!==n)return n.exports;var s=e[o]={exports:{}};return r[o](s,s.exports,t),s.exports}(848);window.ReactJSXRuntime=t})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/vendor/react-jsx-runtime.min.js.LICENSE.txt b/wp-includes/js/dist/vendor/react-jsx-runtime.min.js.LICENSE.txt
new file mode 100644
index 0000000..e68557b
--- /dev/null
+++ b/wp-includes/js/dist/vendor/react-jsx-runtime.min.js.LICENSE.txt
@@ -0,0 +1,9 @@
+/**
+ * @license React
+ * react-jsx-runtime.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
diff --git a/wp-includes/js/dist/vendor/react.js b/wp-includes/js/dist/vendor/react.js
index 2f7c8cb..a27ba60 100644
--- a/wp-includes/js/dist/vendor/react.js
+++ b/wp-includes/js/dist/vendor/react.js
@@ -1,3342 +1,81 @@
-/**
- * @license React
- * react.development.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
+/*
+ * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
+ * This devtool is neither made for production nor for readable output files.
+ * It uses "eval()" calls to create a separate source file in the browser devtools.
+ * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
+ * or disable the default devtool with "devtool: false".
+ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
-(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
- (global = global || self, factory(global.React = {}));
-}(this, (function (exports) { 'use strict';
-
- var ReactVersion = '18.2.0';
-
- // ATTENTION
- // When adding new symbols to this file,
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
- // The Symbol used to tag the ReactElement-like types.
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
- function getIteratorFn(maybeIterable) {
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
- return null;
- }
-
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
-
- if (typeof maybeIterator === 'function') {
- return maybeIterator;
- }
-
- return null;
- }
-
- /**
- * Keeps track of the current dispatcher.
- */
- var ReactCurrentDispatcher = {
- /**
- * @internal
- * @type {ReactComponent}
- */
- current: null
- };
-
- /**
- * Keeps track of the current batch's configuration such as how long an update
- * should suspend for if it needs to.
- */
- var ReactCurrentBatchConfig = {
- transition: null
- };
-
- var ReactCurrentActQueue = {
- current: null,
- // Used to reproduce behavior of `batchedUpdates` in legacy mode.
- isBatchingLegacy: false,
- didScheduleLegacyUpdate: false
- };
-
- /**
- * Keeps track of the current owner.
- *
- * The current owner is the component who should own any components that are
- * currently being constructed.
- */
- var ReactCurrentOwner = {
- /**
- * @internal
- * @type {ReactComponent}
- */
- current: null
- };
-
- var ReactDebugCurrentFrame = {};
- var currentExtraStackFrame = null;
- function setExtraStackFrame(stack) {
- {
- currentExtraStackFrame = stack;
- }
- }
-
- {
- ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {
- {
- currentExtraStackFrame = stack;
- }
- }; // Stack implementation injected by the current renderer.
-
-
- ReactDebugCurrentFrame.getCurrentStack = null;
-
- ReactDebugCurrentFrame.getStackAddendum = function () {
- var stack = ''; // Add an extra top frame while an element is being validated
-
- if (currentExtraStackFrame) {
- stack += currentExtraStackFrame;
- } // Delegate to the injected renderer-specific implementation
-
-
- var impl = ReactDebugCurrentFrame.getCurrentStack;
-
- if (impl) {
- stack += impl() || '';
- }
-
- return stack;
- };
- }
-
- // -----------------------------------------------------------------------------
-
- var enableScopeAPI = false; // Experimental Create Event Handle API.
- var enableCacheElement = false;
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
-
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
- // stuff. Intended to enable React core members to more easily debug scheduling
- // issues in DEV builds.
-
- var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
-
- var ReactSharedInternals = {
- ReactCurrentDispatcher: ReactCurrentDispatcher,
- ReactCurrentBatchConfig: ReactCurrentBatchConfig,
- ReactCurrentOwner: ReactCurrentOwner
- };
-
- {
- ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
- ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
- }
-
- // by calls to these methods by a Babel plugin.
- //
- // In PROD (or in packages without access to React internals),
- // they are left as they are instead.
-
- function warn(format) {
- {
- {
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
-
- printWarning('warn', format, args);
- }
- }
- }
- function error(format) {
- {
- {
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
- args[_key2 - 1] = arguments[_key2];
- }
-
- printWarning('error', format, args);
- }
- }
- }
-
- function printWarning(level, format, args) {
- // When changing this logic, you might want to also
- // update consoleWithStackDev.www.js as well.
- {
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
- var stack = ReactDebugCurrentFrame.getStackAddendum();
-
- if (stack !== '') {
- format += '%s';
- args = args.concat([stack]);
- } // eslint-disable-next-line react-internal/safe-string-coercion
-
-
- var argsWithFormat = args.map(function (item) {
- return String(item);
- }); // Careful: RN currently depends on this prefix
-
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
- // breaks IE9: https://github.com/facebook/react/issues/13610
- // eslint-disable-next-line react-internal/no-production-logging
-
- Function.prototype.apply.call(console[level], console, argsWithFormat);
- }
- }
-
- var didWarnStateUpdateForUnmountedComponent = {};
-
- function warnNoop(publicInstance, callerName) {
- {
- var _constructor = publicInstance.constructor;
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
- var warningKey = componentName + "." + callerName;
-
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
- return;
- }
-
- error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
-
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
- }
- }
- /**
- * This is the abstract API for an update queue.
- */
-
-
- var ReactNoopUpdateQueue = {
- /**
- * Checks whether or not this composite component is mounted.
- * @param {ReactClass} publicInstance The instance we want to test.
- * @return {boolean} True if mounted, false otherwise.
- * @protected
- * @final
- */
- isMounted: function (publicInstance) {
- return false;
- },
-
- /**
- * Forces an update. This should only be invoked when it is known with
- * certainty that we are **not** in a DOM transaction.
- *
- * You may want to call this when you know that some deeper aspect of the
- * component's state has changed but `setState` was not called.
- *
- * This will not invoke `shouldComponentUpdate`, but it will invoke
- * `componentWillUpdate` and `componentDidUpdate`.
- *
- * @param {ReactClass} publicInstance The instance that should rerender.
- * @param {?function} callback Called after component is updated.
- * @param {?string} callerName name of the calling function in the public API.
- * @internal
- */
- enqueueForceUpdate: function (publicInstance, callback, callerName) {
- warnNoop(publicInstance, 'forceUpdate');
- },
-
- /**
- * Replaces all of the state. Always use this or `setState` to mutate state.
- * You should treat `this.state` as immutable.
- *
- * There is no guarantee that `this.state` will be immediately updated, so
- * accessing `this.state` after calling this method may return the old value.
- *
- * @param {ReactClass} publicInstance The instance that should rerender.
- * @param {object} completeState Next state.
- * @param {?function} callback Called after component is updated.
- * @param {?string} callerName name of the calling function in the public API.
- * @internal
- */
- enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
- warnNoop(publicInstance, 'replaceState');
- },
-
- /**
- * Sets a subset of the state. This only exists because _pendingState is
- * internal. This provides a merging strategy that is not available to deep
- * properties which is confusing. TODO: Expose pendingState or don't use it
- * during the merge.
- *
- * @param {ReactClass} publicInstance The instance that should rerender.
- * @param {object} partialState Next partial state to be merged with state.
- * @param {?function} callback Called after component is updated.
- * @param {?string} Name of the calling function in the public API.
- * @internal
- */
- enqueueSetState: function (publicInstance, partialState, callback, callerName) {
- warnNoop(publicInstance, 'setState');
- }
- };
-
- var assign = Object.assign;
-
- var emptyObject = {};
-
- {
- Object.freeze(emptyObject);
- }
- /**
- * Base class helpers for the updating state of a component.
- */
-
-
- function Component(props, context, updater) {
- this.props = props;
- this.context = context; // If a component has string refs, we will assign a different object later.
-
- this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
- // renderer.
-
- this.updater = updater || ReactNoopUpdateQueue;
- }
-
- Component.prototype.isReactComponent = {};
- /**
- * Sets a subset of the state. Always use this to mutate
- * state. You should treat `this.state` as immutable.
- *
- * There is no guarantee that `this.state` will be immediately updated, so
- * accessing `this.state` after calling this method may return the old value.
- *
- * There is no guarantee that calls to `setState` will run synchronously,
- * as they may eventually be batched together. You can provide an optional
- * callback that will be executed when the call to setState is actually
- * completed.
- *
- * When a function is provided to setState, it will be called at some point in
- * the future (not synchronously). It will be called with the up to date
- * component arguments (state, props, context). These values can be different
- * from this.* because your function may be called after receiveProps but before
- * shouldComponentUpdate, and this new state, props, and context will not yet be
- * assigned to this.
- *
- * @param {object|function} partialState Next partial state or function to
- * produce next partial state to be merged with current state.
- * @param {?function} callback Called after state is updated.
- * @final
- * @protected
- */
-
- Component.prototype.setState = function (partialState, callback) {
- if (typeof partialState !== 'object' && typeof partialState !== 'function' && partialState != null) {
- throw new Error('setState(...): takes an object of state variables to update or a ' + 'function which returns an object of state variables.');
- }
-
- this.updater.enqueueSetState(this, partialState, callback, 'setState');
- };
- /**
- * Forces an update. This should only be invoked when it is known with
- * certainty that we are **not** in a DOM transaction.
- *
- * You may want to call this when you know that some deeper aspect of the
- * component's state has changed but `setState` was not called.
- *
- * This will not invoke `shouldComponentUpdate`, but it will invoke
- * `componentWillUpdate` and `componentDidUpdate`.
- *
- * @param {?function} callback Called after update is complete.
- * @final
- * @protected
- */
-
-
- Component.prototype.forceUpdate = function (callback) {
- this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
- };
- /**
- * Deprecated APIs. These APIs used to exist on classic React classes but since
- * we would like to deprecate them, we're not going to move them over to this
- * modern base class. Instead, we define a getter that warns if it's accessed.
- */
-
-
- {
- var deprecatedAPIs = {
- isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
- replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
- };
-
- var defineDeprecationWarning = function (methodName, info) {
- Object.defineProperty(Component.prototype, methodName, {
- get: function () {
- warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
-
- return undefined;
- }
- });
- };
-
- for (var fnName in deprecatedAPIs) {
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
- }
- }
- }
-
- function ComponentDummy() {}
-
- ComponentDummy.prototype = Component.prototype;
- /**
- * Convenience component with default shallow equality check for sCU.
- */
-
- function PureComponent(props, context, updater) {
- this.props = props;
- this.context = context; // If a component has string refs, we will assign a different object later.
-
- this.refs = emptyObject;
- this.updater = updater || ReactNoopUpdateQueue;
- }
-
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
- pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
-
- assign(pureComponentPrototype, Component.prototype);
- pureComponentPrototype.isPureReactComponent = true;
-
- // an immutable object with a single mutable value
- function createRef() {
- var refObject = {
- current: null
- };
-
- {
- Object.seal(refObject);
- }
-
- return refObject;
- }
-
- var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
-
- function isArray(a) {
- return isArrayImpl(a);
- }
-
- /*
- * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
- * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
- *
- * The functions in this module will throw an easier-to-understand,
- * easier-to-debug exception with a clear errors message message explaining the
- * problem. (Instead of a confusing exception thrown inside the implementation
- * of the `value` object).
- */
- // $FlowFixMe only called in DEV, so void return is not possible.
- function typeName(value) {
- {
- // toStringTag is needed for namespaced types like Temporal.Instant
- var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
- return type;
- }
- } // $FlowFixMe only called in DEV, so void return is not possible.
-
-
- function willCoercionThrow(value) {
- {
- try {
- testStringCoercion(value);
- return false;
- } catch (e) {
- return true;
- }
- }
- }
-
- function testStringCoercion(value) {
- // If you ended up here by following an exception call stack, here's what's
- // happened: you supplied an object or symbol value to React (as a prop, key,
- // DOM attribute, CSS property, string ref, etc.) and when React tried to
- // coerce it to a string using `'' + value`, an exception was thrown.
- //
- // The most common types that will cause this exception are `Symbol` instances
- // and Temporal objects like `Temporal.Instant`. But any object that has a
- // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
- // exception. (Library authors do this to prevent users from using built-in
- // numeric operators like `+` or comparison operators like `>=` because custom
- // methods are needed to perform accurate arithmetic or comparison.)
- //
- // To fix the problem, coerce this object or symbol value to a string before
- // passing it to React. The most reliable way is usually `String(value)`.
- //
- // To find which value is throwing, check the browser or debugger console.
- // Before this exception was thrown, there should be `console.error` output
- // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
- // problem and how that type was used: key, atrribute, input value prop, etc.
- // In most cases, this console output also shows the component and its
- // ancestor components where the exception happened.
- //
- // eslint-disable-next-line react-internal/safe-string-coercion
- return '' + value;
- }
- function checkKeyStringCoercion(value) {
- {
- if (willCoercionThrow(value)) {
- error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
-
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
- }
- }
- }
-
- function getWrappedName(outerType, innerType, wrapperName) {
- var displayName = outerType.displayName;
-
- if (displayName) {
- return displayName;
- }
-
- var functionName = innerType.displayName || innerType.name || '';
- return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
- } // Keep in sync with react-reconciler/getComponentNameFromFiber
-
-
- function getContextName(type) {
- return type.displayName || 'Context';
- } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
-
-
- function getComponentNameFromType(type) {
- if (type == null) {
- // Host root, text node or just invalid type.
- return null;
- }
-
- {
- if (typeof type.tag === 'number') {
- error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
- }
- }
-
- if (typeof type === 'function') {
- return type.displayName || type.name || null;
- }
-
- if (typeof type === 'string') {
- return type;
- }
-
- switch (type) {
- case REACT_FRAGMENT_TYPE:
- return 'Fragment';
-
- case REACT_PORTAL_TYPE:
- return 'Portal';
-
- case REACT_PROFILER_TYPE:
- return 'Profiler';
-
- case REACT_STRICT_MODE_TYPE:
- return 'StrictMode';
-
- case REACT_SUSPENSE_TYPE:
- return 'Suspense';
-
- case REACT_SUSPENSE_LIST_TYPE:
- return 'SuspenseList';
-
- }
-
- if (typeof type === 'object') {
- switch (type.$$typeof) {
- case REACT_CONTEXT_TYPE:
- var context = type;
- return getContextName(context) + '.Consumer';
-
- case REACT_PROVIDER_TYPE:
- var provider = type;
- return getContextName(provider._context) + '.Provider';
-
- case REACT_FORWARD_REF_TYPE:
- return getWrappedName(type, type.render, 'ForwardRef');
-
- case REACT_MEMO_TYPE:
- var outerName = type.displayName || null;
-
- if (outerName !== null) {
- return outerName;
- }
-
- return getComponentNameFromType(type.type) || 'Memo';
-
- case REACT_LAZY_TYPE:
- {
- var lazyComponent = type;
- var payload = lazyComponent._payload;
- var init = lazyComponent._init;
-
- try {
- return getComponentNameFromType(init(payload));
- } catch (x) {
- return null;
- }
- }
-
- // eslint-disable-next-line no-fallthrough
- }
- }
-
- return null;
- }
-
- var hasOwnProperty = Object.prototype.hasOwnProperty;
-
- var RESERVED_PROPS = {
- key: true,
- ref: true,
- __self: true,
- __source: true
- };
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
-
- {
- didWarnAboutStringRefs = {};
- }
-
- function hasValidRef(config) {
- {
- if (hasOwnProperty.call(config, 'ref')) {
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
-
- if (getter && getter.isReactWarning) {
- return false;
- }
- }
- }
-
- return config.ref !== undefined;
- }
-
- function hasValidKey(config) {
- {
- if (hasOwnProperty.call(config, 'key')) {
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
-
- if (getter && getter.isReactWarning) {
- return false;
- }
- }
- }
-
- return config.key !== undefined;
- }
-
- function defineKeyPropWarningGetter(props, displayName) {
- var warnAboutAccessingKey = function () {
- {
- if (!specialPropKeyWarningShown) {
- specialPropKeyWarningShown = true;
-
- error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
- }
- }
- };
-
- warnAboutAccessingKey.isReactWarning = true;
- Object.defineProperty(props, 'key', {
- get: warnAboutAccessingKey,
- configurable: true
- });
- }
-
- function defineRefPropWarningGetter(props, displayName) {
- var warnAboutAccessingRef = function () {
- {
- if (!specialPropRefWarningShown) {
- specialPropRefWarningShown = true;
-
- error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
- }
- }
- };
-
- warnAboutAccessingRef.isReactWarning = true;
- Object.defineProperty(props, 'ref', {
- get: warnAboutAccessingRef,
- configurable: true
- });
- }
-
- function warnIfStringRefCannotBeAutoConverted(config) {
- {
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
-
- if (!didWarnAboutStringRefs[componentName]) {
- error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);
-
- didWarnAboutStringRefs[componentName] = true;
- }
- }
- }
- }
- /**
- * Factory method to create a new React element. This no longer adheres to
- * the class pattern, so do not use new to call it. Also, instanceof check
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
- * if something is a React Element.
- *
- * @param {*} type
- * @param {*} props
- * @param {*} key
- * @param {string|object} ref
- * @param {*} owner
- * @param {*} self A *temporary* helper to detect places where `this` is
- * different from the `owner` when React.createElement is called, so that we
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
- * functions, and as long as `this` and owner are the same, there will be no
- * change in behavior.
- * @param {*} source An annotation object (added by a transpiler or otherwise)
- * indicating filename, line number, and/or other information.
- * @internal
- */
-
-
- var ReactElement = function (type, key, ref, self, source, owner, props) {
- var element = {
- // This tag allows us to uniquely identify this as a React Element
- $$typeof: REACT_ELEMENT_TYPE,
- // Built-in properties that belong on the element
- type: type,
- key: key,
- ref: ref,
- props: props,
- // Record the component responsible for creating this element.
- _owner: owner
- };
-
- {
- // The validation flag is currently mutative. We put it on
- // an external backing store so that we can freeze the whole object.
- // This can be replaced with a WeakMap once they are implemented in
- // commonly used development environments.
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
- // the validation flag non-enumerable (where possible, which should
- // include every environment we run tests in), so the test framework
- // ignores it.
-
- Object.defineProperty(element._store, 'validated', {
- configurable: false,
- enumerable: false,
- writable: true,
- value: false
- }); // self and source are DEV only properties.
-
- Object.defineProperty(element, '_self', {
- configurable: false,
- enumerable: false,
- writable: false,
- value: self
- }); // Two elements created in two different places should be considered
- // equal for testing purposes and therefore we hide it from enumeration.
-
- Object.defineProperty(element, '_source', {
- configurable: false,
- enumerable: false,
- writable: false,
- value: source
- });
-
- if (Object.freeze) {
- Object.freeze(element.props);
- Object.freeze(element);
- }
- }
-
- return element;
- };
- /**
- * Create and return a new ReactElement of the given type.
- * See https://reactjs.org/docs/react-api.html#createelement
- */
-
- function createElement(type, config, children) {
- var propName; // Reserved names are extracted
-
- var props = {};
- var key = null;
- var ref = null;
- var self = null;
- var source = null;
-
- if (config != null) {
- if (hasValidRef(config)) {
- ref = config.ref;
-
- {
- warnIfStringRefCannotBeAutoConverted(config);
- }
- }
-
- if (hasValidKey(config)) {
- {
- checkKeyStringCoercion(config.key);
- }
-
- key = '' + config.key;
- }
-
- self = config.__self === undefined ? null : config.__self;
- source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
-
- for (propName in config) {
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
- props[propName] = config[propName];
- }
- }
- } // Children can be more than one argument, and those are transferred onto
- // the newly allocated props object.
-
-
- var childrenLength = arguments.length - 2;
-
- if (childrenLength === 1) {
- props.children = children;
- } else if (childrenLength > 1) {
- var childArray = Array(childrenLength);
-
- for (var i = 0; i < childrenLength; i++) {
- childArray[i] = arguments[i + 2];
- }
-
- {
- if (Object.freeze) {
- Object.freeze(childArray);
- }
- }
-
- props.children = childArray;
- } // Resolve default props
-
-
- if (type && type.defaultProps) {
- var defaultProps = type.defaultProps;
-
- for (propName in defaultProps) {
- if (props[propName] === undefined) {
- props[propName] = defaultProps[propName];
- }
- }
- }
-
- {
- if (key || ref) {
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
-
- if (key) {
- defineKeyPropWarningGetter(props, displayName);
- }
-
- if (ref) {
- defineRefPropWarningGetter(props, displayName);
- }
- }
- }
-
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
- }
- function cloneAndReplaceKey(oldElement, newKey) {
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
- return newElement;
- }
- /**
- * Clone and return a new ReactElement using element as the starting point.
- * See https://reactjs.org/docs/react-api.html#cloneelement
- */
-
- function cloneElement(element, config, children) {
- if (element === null || element === undefined) {
- throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
- }
-
- var propName; // Original props are copied
-
- var props = assign({}, element.props); // Reserved names are extracted
-
- var key = element.key;
- var ref = element.ref; // Self is preserved since the owner is preserved.
-
- var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
- // transpiler, and the original source is probably a better indicator of the
- // true owner.
-
- var source = element._source; // Owner will be preserved, unless ref is overridden
-
- var owner = element._owner;
-
- if (config != null) {
- if (hasValidRef(config)) {
- // Silently steal the ref from the parent.
- ref = config.ref;
- owner = ReactCurrentOwner.current;
- }
-
- if (hasValidKey(config)) {
- {
- checkKeyStringCoercion(config.key);
- }
-
- key = '' + config.key;
- } // Remaining properties override existing props
-
-
- var defaultProps;
-
- if (element.type && element.type.defaultProps) {
- defaultProps = element.type.defaultProps;
- }
-
- for (propName in config) {
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
- if (config[propName] === undefined && defaultProps !== undefined) {
- // Resolve default props
- props[propName] = defaultProps[propName];
- } else {
- props[propName] = config[propName];
- }
- }
- }
- } // Children can be more than one argument, and those are transferred onto
- // the newly allocated props object.
-
-
- var childrenLength = arguments.length - 2;
-
- if (childrenLength === 1) {
- props.children = children;
- } else if (childrenLength > 1) {
- var childArray = Array(childrenLength);
-
- for (var i = 0; i < childrenLength; i++) {
- childArray[i] = arguments[i + 2];
- }
-
- props.children = childArray;
- }
-
- return ReactElement(element.type, key, ref, self, source, owner, props);
- }
- /**
- * Verifies the object is a ReactElement.
- * See https://reactjs.org/docs/react-api.html#isvalidelement
- * @param {?object} object
- * @return {boolean} True if `object` is a ReactElement.
- * @final
- */
-
- function isValidElement(object) {
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
- }
-
- var SEPARATOR = '.';
- var SUBSEPARATOR = ':';
- /**
- * Escape and wrap key so it is safe to use as a reactid
- *
- * @param {string} key to be escaped.
- * @return {string} the escaped key.
- */
-
- function escape(key) {
- var escapeRegex = /[=:]/g;
- var escaperLookup = {
- '=': '=0',
- ':': '=2'
- };
- var escapedString = key.replace(escapeRegex, function (match) {
- return escaperLookup[match];
- });
- return '$' + escapedString;
- }
- /**
- * TODO: Test that a single child and an array with one item have the same key
- * pattern.
- */
-
-
- var didWarnAboutMaps = false;
- var userProvidedKeyEscapeRegex = /\/+/g;
-
- function escapeUserProvidedKey(text) {
- return text.replace(userProvidedKeyEscapeRegex, '$&/');
- }
- /**
- * Generate a key string that identifies a element within a set.
- *
- * @param {*} element A element that could contain a manual key.
- * @param {number} index Index that is used if a manual key is not provided.
- * @return {string}
- */
-
-
- function getElementKey(element, index) {
- // Do some typechecking here since we call this blindly. We want to ensure
- // that we don't block potential future ES APIs.
- if (typeof element === 'object' && element !== null && element.key != null) {
- // Explicit key
- {
- checkKeyStringCoercion(element.key);
- }
-
- return escape('' + element.key);
- } // Implicit key determined by the index in the set
-
-
- return index.toString(36);
- }
-
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
- var type = typeof children;
-
- if (type === 'undefined' || type === 'boolean') {
- // All of the above are perceived as null.
- children = null;
- }
-
- var invokeCallback = false;
-
- if (children === null) {
- invokeCallback = true;
- } else {
- switch (type) {
- case 'string':
- case 'number':
- invokeCallback = true;
- break;
-
- case 'object':
- switch (children.$$typeof) {
- case REACT_ELEMENT_TYPE:
- case REACT_PORTAL_TYPE:
- invokeCallback = true;
- }
-
- }
- }
-
- if (invokeCallback) {
- var _child = children;
- var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array
- // so that it's consistent if the number of children grows:
-
- var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
-
- if (isArray(mappedChild)) {
- var escapedChildKey = '';
-
- if (childKey != null) {
- escapedChildKey = escapeUserProvidedKey(childKey) + '/';
- }
-
- mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {
- return c;
- });
- } else if (mappedChild != null) {
- if (isValidElement(mappedChild)) {
- {
- // The `if` statement here prevents auto-disabling of the safe
- // coercion ESLint rule, so we must manually disable it below.
- // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
- if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
- checkKeyStringCoercion(mappedChild.key);
- }
- }
-
- mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
- // traverseAllChildren used to do for objects as children
- escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
- mappedChild.key && (!_child || _child.key !== mappedChild.key) ? // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
- // eslint-disable-next-line react-internal/safe-string-coercion
- escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);
- }
-
- array.push(mappedChild);
- }
-
- return 1;
- }
-
- var child;
- var nextName;
- var subtreeCount = 0; // Count of children found in the current subtree.
-
- var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
-
- if (isArray(children)) {
- for (var i = 0; i < children.length; i++) {
- child = children[i];
- nextName = nextNamePrefix + getElementKey(child, i);
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
- }
- } else {
- var iteratorFn = getIteratorFn(children);
-
- if (typeof iteratorFn === 'function') {
- var iterableChildren = children;
-
- {
- // Warn about using Maps as children
- if (iteratorFn === iterableChildren.entries) {
- if (!didWarnAboutMaps) {
- warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
- }
-
- didWarnAboutMaps = true;
- }
- }
-
- var iterator = iteratorFn.call(iterableChildren);
- var step;
- var ii = 0;
-
- while (!(step = iterator.next()).done) {
- child = step.value;
- nextName = nextNamePrefix + getElementKey(child, ii++);
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
- }
- } else if (type === 'object') {
- // eslint-disable-next-line react-internal/safe-string-coercion
- var childrenString = String(children);
- throw new Error("Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.');
- }
- }
-
- return subtreeCount;
- }
-
- /**
- * Maps children that are typically specified as `props.children`.
- *
- * See https://reactjs.org/docs/react-api.html#reactchildrenmap
- *
- * The provided mapFunction(child, index) will be called for each
- * leaf child.
- *
- * @param {?*} children Children tree container.
- * @param {function(*, int)} func The map function.
- * @param {*} context Context for mapFunction.
- * @return {object} Object containing the ordered map of results.
- */
- function mapChildren(children, func, context) {
- if (children == null) {
- return children;
- }
-
- var result = [];
- var count = 0;
- mapIntoArray(children, result, '', '', function (child) {
- return func.call(context, child, count++);
- });
- return result;
- }
- /**
- * Count the number of children that are typically specified as
- * `props.children`.
- *
- * See https://reactjs.org/docs/react-api.html#reactchildrencount
- *
- * @param {?*} children Children tree container.
- * @return {number} The number of children.
- */
-
-
- function countChildren(children) {
- var n = 0;
- mapChildren(children, function () {
- n++; // Don't return anything
- });
- return n;
- }
-
- /**
- * Iterates through children that are typically specified as `props.children`.
- *
- * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
- *
- * The provided forEachFunc(child, index) will be called for each
- * leaf child.
- *
- * @param {?*} children Children tree container.
- * @param {function(*, int)} forEachFunc
- * @param {*} forEachContext Context for forEachContext.
- */
- function forEachChildren(children, forEachFunc, forEachContext) {
- mapChildren(children, function () {
- forEachFunc.apply(this, arguments); // Don't return anything.
- }, forEachContext);
- }
- /**
- * Flatten a children object (typically specified as `props.children`) and
- * return an array with appropriately re-keyed children.
- *
- * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
- */
-
-
- function toArray(children) {
- return mapChildren(children, function (child) {
- return child;
- }) || [];
- }
- /**
- * Returns the first child in a collection of children and verifies that there
- * is only one child in the collection.
- *
- * See https://reactjs.org/docs/react-api.html#reactchildrenonly
- *
- * The current implementation of this function assumes that a single child gets
- * passed without a wrapper, but the purpose of this helper function is to
- * abstract away the particular structure of children.
- *
- * @param {?object} children Child collection structure.
- * @return {ReactElement} The first and only `ReactElement` contained in the
- * structure.
- */
-
-
- function onlyChild(children) {
- if (!isValidElement(children)) {
- throw new Error('React.Children.only expected to receive a single React element child.');
- }
-
- return children;
- }
-
- function createContext(defaultValue) {
- // TODO: Second argument used to be an optional `calculateChangedBits`
- // function. Warn to reserve for future use?
- var context = {
- $$typeof: REACT_CONTEXT_TYPE,
- // As a workaround to support multiple concurrent renderers, we categorize
- // some renderers as primary and others as secondary. We only expect
- // there to be two concurrent renderers at most: React Native (primary) and
- // Fabric (secondary); React DOM (primary) and React ART (secondary).
- // Secondary renderers store their context values on separate fields.
- _currentValue: defaultValue,
- _currentValue2: defaultValue,
- // Used to track how many concurrent renderers this context currently
- // supports within in a single renderer. Such as parallel server rendering.
- _threadCount: 0,
- // These are circular
- Provider: null,
- Consumer: null,
- // Add these to use same hidden class in VM as ServerContext
- _defaultValue: null,
- _globalName: null
- };
- context.Provider = {
- $$typeof: REACT_PROVIDER_TYPE,
- _context: context
- };
- var hasWarnedAboutUsingNestedContextConsumers = false;
- var hasWarnedAboutUsingConsumerProvider = false;
- var hasWarnedAboutDisplayNameOnConsumer = false;
-
- {
- // A separate object, but proxies back to the original context object for
- // backwards compatibility. It has a different $$typeof, so we can properly
- // warn for the incorrect usage of Context as a Consumer.
- var Consumer = {
- $$typeof: REACT_CONTEXT_TYPE,
- _context: context
- }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
-
- Object.defineProperties(Consumer, {
- Provider: {
- get: function () {
- if (!hasWarnedAboutUsingConsumerProvider) {
- hasWarnedAboutUsingConsumerProvider = true;
-
- error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
- }
-
- return context.Provider;
- },
- set: function (_Provider) {
- context.Provider = _Provider;
- }
- },
- _currentValue: {
- get: function () {
- return context._currentValue;
- },
- set: function (_currentValue) {
- context._currentValue = _currentValue;
- }
- },
- _currentValue2: {
- get: function () {
- return context._currentValue2;
- },
- set: function (_currentValue2) {
- context._currentValue2 = _currentValue2;
- }
- },
- _threadCount: {
- get: function () {
- return context._threadCount;
- },
- set: function (_threadCount) {
- context._threadCount = _threadCount;
- }
- },
- Consumer: {
- get: function () {
- if (!hasWarnedAboutUsingNestedContextConsumers) {
- hasWarnedAboutUsingNestedContextConsumers = true;
-
- error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
- }
-
- return context.Consumer;
- }
- },
- displayName: {
- get: function () {
- return context.displayName;
- },
- set: function (displayName) {
- if (!hasWarnedAboutDisplayNameOnConsumer) {
- warn('Setting `displayName` on Context.Consumer has no effect. ' + "You should set it directly on the context with Context.displayName = '%s'.", displayName);
-
- hasWarnedAboutDisplayNameOnConsumer = true;
- }
- }
- }
- }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
-
- context.Consumer = Consumer;
- }
-
- {
- context._currentRenderer = null;
- context._currentRenderer2 = null;
- }
-
- return context;
- }
-
- var Uninitialized = -1;
- var Pending = 0;
- var Resolved = 1;
- var Rejected = 2;
-
- function lazyInitializer(payload) {
- if (payload._status === Uninitialized) {
- var ctor = payload._result;
- var thenable = ctor(); // Transition to the next state.
- // This might throw either because it's missing or throws. If so, we treat it
- // as still uninitialized and try again next time. Which is the same as what
- // happens if the ctor or any wrappers processing the ctor throws. This might
- // end up fixing it if the resolution was a concurrency bug.
-
- thenable.then(function (moduleObject) {
- if (payload._status === Pending || payload._status === Uninitialized) {
- // Transition to the next state.
- var resolved = payload;
- resolved._status = Resolved;
- resolved._result = moduleObject;
- }
- }, function (error) {
- if (payload._status === Pending || payload._status === Uninitialized) {
- // Transition to the next state.
- var rejected = payload;
- rejected._status = Rejected;
- rejected._result = error;
- }
- });
-
- if (payload._status === Uninitialized) {
- // In case, we're still uninitialized, then we're waiting for the thenable
- // to resolve. Set it as pending in the meantime.
- var pending = payload;
- pending._status = Pending;
- pending._result = thenable;
- }
- }
-
- if (payload._status === Resolved) {
- var moduleObject = payload._result;
-
- {
- if (moduleObject === undefined) {
- error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + // Break up imports to avoid accidentally parsing them as dependencies.
- 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))\n\n" + 'Did you accidentally put curly braces around the import?', moduleObject);
- }
- }
-
- {
- if (!('default' in moduleObject)) {
- error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + // Break up imports to avoid accidentally parsing them as dependencies.
- 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))", moduleObject);
- }
- }
-
- return moduleObject.default;
- } else {
- throw payload._result;
- }
- }
-
- function lazy(ctor) {
- var payload = {
- // We use these fields to store the result.
- _status: Uninitialized,
- _result: ctor
- };
- var lazyType = {
- $$typeof: REACT_LAZY_TYPE,
- _payload: payload,
- _init: lazyInitializer
- };
-
- {
- // In production, this would just set it on the object.
- var defaultProps;
- var propTypes; // $FlowFixMe
-
- Object.defineProperties(lazyType, {
- defaultProps: {
- configurable: true,
- get: function () {
- return defaultProps;
- },
- set: function (newDefaultProps) {
- error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
-
- defaultProps = newDefaultProps; // Match production behavior more closely:
- // $FlowFixMe
-
- Object.defineProperty(lazyType, 'defaultProps', {
- enumerable: true
- });
- }
- },
- propTypes: {
- configurable: true,
- get: function () {
- return propTypes;
- },
- set: function (newPropTypes) {
- error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
-
- propTypes = newPropTypes; // Match production behavior more closely:
- // $FlowFixMe
-
- Object.defineProperty(lazyType, 'propTypes', {
- enumerable: true
- });
- }
- }
- });
- }
-
- return lazyType;
- }
-
- function forwardRef(render) {
- {
- if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
- error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
- } else if (typeof render !== 'function') {
- error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
- } else {
- if (render.length !== 0 && render.length !== 2) {
- error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');
- }
- }
-
- if (render != null) {
- if (render.defaultProps != null || render.propTypes != null) {
- error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
- }
- }
- }
-
- var elementType = {
- $$typeof: REACT_FORWARD_REF_TYPE,
- render: render
- };
-
- {
- var ownName;
- Object.defineProperty(elementType, 'displayName', {
- enumerable: false,
- configurable: true,
- get: function () {
- return ownName;
- },
- set: function (name) {
- ownName = name; // The inner component shouldn't inherit this display name in most cases,
- // because the component may be used elsewhere.
- // But it's nice for anonymous functions to inherit the name,
- // so that our component-stack generation logic will display their frames.
- // An anonymous function generally suggests a pattern like:
- // React.forwardRef((props, ref) => {...});
- // This kind of inner function is not used elsewhere so the side effect is okay.
-
- if (!render.name && !render.displayName) {
- render.displayName = name;
- }
- }
- });
- }
-
- return elementType;
- }
-
- var REACT_MODULE_REFERENCE;
-
- {
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
- }
-
- function isValidElementType(type) {
- if (typeof type === 'string' || typeof type === 'function') {
- return true;
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
-
-
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
- return true;
- }
-
- if (typeof type === 'object' && type !== null) {
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
- // types supported by any Flight configuration anywhere since
- // we don't know which Flight build this will end up being used
- // with.
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
- return true;
- }
- }
-
- return false;
- }
-
- function memo(type, compare) {
- {
- if (!isValidElementType(type)) {
- error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
- }
- }
-
- var elementType = {
- $$typeof: REACT_MEMO_TYPE,
- type: type,
- compare: compare === undefined ? null : compare
- };
-
- {
- var ownName;
- Object.defineProperty(elementType, 'displayName', {
- enumerable: false,
- configurable: true,
- get: function () {
- return ownName;
- },
- set: function (name) {
- ownName = name; // The inner component shouldn't inherit this display name in most cases,
- // because the component may be used elsewhere.
- // But it's nice for anonymous functions to inherit the name,
- // so that our component-stack generation logic will display their frames.
- // An anonymous function generally suggests a pattern like:
- // React.memo((props) => {...});
- // This kind of inner function is not used elsewhere so the side effect is okay.
-
- if (!type.name && !type.displayName) {
- type.displayName = name;
- }
- }
- });
- }
-
- return elementType;
- }
-
- function resolveDispatcher() {
- var dispatcher = ReactCurrentDispatcher.current;
-
- {
- if (dispatcher === null) {
- error('Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for' + ' one of the following reasons:\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\n' + '2. You might be breaking the Rules of Hooks\n' + '3. You might have more than one copy of React in the same app\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');
- }
- } // Will result in a null access error if accessed outside render phase. We
- // intentionally don't throw our own error because this is in a hot path.
- // Also helps ensure this is inlined.
-
-
- return dispatcher;
- }
- function useContext(Context) {
- var dispatcher = resolveDispatcher();
-
- {
- // TODO: add a more generic warning for invalid values.
- if (Context._context !== undefined) {
- var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
- // and nobody should be using this in existing code.
-
- if (realContext.Consumer === Context) {
- error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
- } else if (realContext.Provider === Context) {
- error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
- }
- }
- }
-
- return dispatcher.useContext(Context);
- }
- function useState(initialState) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useState(initialState);
- }
- function useReducer(reducer, initialArg, init) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useReducer(reducer, initialArg, init);
- }
- function useRef(initialValue) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useRef(initialValue);
- }
- function useEffect(create, deps) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useEffect(create, deps);
- }
- function useInsertionEffect(create, deps) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useInsertionEffect(create, deps);
- }
- function useLayoutEffect(create, deps) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useLayoutEffect(create, deps);
- }
- function useCallback(callback, deps) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useCallback(callback, deps);
- }
- function useMemo(create, deps) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useMemo(create, deps);
- }
- function useImperativeHandle(ref, create, deps) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useImperativeHandle(ref, create, deps);
- }
- function useDebugValue(value, formatterFn) {
- {
- var dispatcher = resolveDispatcher();
- return dispatcher.useDebugValue(value, formatterFn);
- }
- }
- function useTransition() {
- var dispatcher = resolveDispatcher();
- return dispatcher.useTransition();
- }
- function useDeferredValue(value) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useDeferredValue(value);
- }
- function useId() {
- var dispatcher = resolveDispatcher();
- return dispatcher.useId();
- }
- function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
- }
-
- // Helpers to patch console.logs to avoid logging during side-effect free
- // replaying on render function. This currently only patches the object
- // lazily which won't cover if the log function was extracted eagerly.
- // We could also eagerly patch the method.
- var disabledDepth = 0;
- var prevLog;
- var prevInfo;
- var prevWarn;
- var prevError;
- var prevGroup;
- var prevGroupCollapsed;
- var prevGroupEnd;
-
- function disabledLog() {}
-
- disabledLog.__reactDisabledLog = true;
- function disableLogs() {
- {
- if (disabledDepth === 0) {
- /* eslint-disable react-internal/no-production-logging */
- prevLog = console.log;
- prevInfo = console.info;
- prevWarn = console.warn;
- prevError = console.error;
- prevGroup = console.group;
- prevGroupCollapsed = console.groupCollapsed;
- prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
-
- var props = {
- configurable: true,
- enumerable: true,
- value: disabledLog,
- writable: true
- }; // $FlowFixMe Flow thinks console is immutable.
-
- Object.defineProperties(console, {
- info: props,
- log: props,
- warn: props,
- error: props,
- group: props,
- groupCollapsed: props,
- groupEnd: props
- });
- /* eslint-enable react-internal/no-production-logging */
- }
-
- disabledDepth++;
- }
- }
- function reenableLogs() {
- {
- disabledDepth--;
-
- if (disabledDepth === 0) {
- /* eslint-disable react-internal/no-production-logging */
- var props = {
- configurable: true,
- enumerable: true,
- writable: true
- }; // $FlowFixMe Flow thinks console is immutable.
-
- Object.defineProperties(console, {
- log: assign({}, props, {
- value: prevLog
- }),
- info: assign({}, props, {
- value: prevInfo
- }),
- warn: assign({}, props, {
- value: prevWarn
- }),
- error: assign({}, props, {
- value: prevError
- }),
- group: assign({}, props, {
- value: prevGroup
- }),
- groupCollapsed: assign({}, props, {
- value: prevGroupCollapsed
- }),
- groupEnd: assign({}, props, {
- value: prevGroupEnd
- })
- });
- /* eslint-enable react-internal/no-production-logging */
- }
-
- if (disabledDepth < 0) {
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
- }
- }
- }
-
- var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
- var prefix;
- function describeBuiltInComponentFrame(name, source, ownerFn) {
- {
- if (prefix === undefined) {
- // Extract the VM specific prefix used by each line.
- try {
- throw Error();
- } catch (x) {
- var match = x.stack.trim().match(/\n( *(at )?)/);
- prefix = match && match[1] || '';
- }
- } // We use the prefix to ensure our stacks line up with native stack frames.
-
-
- return '\n' + prefix + name;
- }
- }
- var reentry = false;
- var componentFrameCache;
-
- {
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
- componentFrameCache = new PossiblyWeakMap();
- }
-
- function describeNativeComponentFrame(fn, construct) {
- // If something asked for a stack inside a fake render, it should get ignored.
- if ( !fn || reentry) {
- return '';
- }
-
- {
- var frame = componentFrameCache.get(fn);
-
- if (frame !== undefined) {
- return frame;
- }
- }
-
- var control;
- reentry = true;
- var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
-
- Error.prepareStackTrace = undefined;
- var previousDispatcher;
-
- {
- previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function
- // for warnings.
-
- ReactCurrentDispatcher$1.current = null;
- disableLogs();
- }
-
- try {
- // This should throw.
- if (construct) {
- // Something should be setting the props in the constructor.
- var Fake = function () {
- throw Error();
- }; // $FlowFixMe
-
-
- Object.defineProperty(Fake.prototype, 'props', {
- set: function () {
- // We use a throwing setter instead of frozen or non-writable props
- // because that won't throw in a non-strict mode function.
- throw Error();
- }
- });
-
- if (typeof Reflect === 'object' && Reflect.construct) {
- // We construct a different control for this case to include any extra
- // frames added by the construct call.
- try {
- Reflect.construct(Fake, []);
- } catch (x) {
- control = x;
- }
-
- Reflect.construct(fn, [], Fake);
- } else {
- try {
- Fake.call();
- } catch (x) {
- control = x;
- }
-
- fn.call(Fake.prototype);
- }
- } else {
- try {
- throw Error();
- } catch (x) {
- control = x;
- }
-
- fn();
- }
- } catch (sample) {
- // This is inlined manually because closure doesn't do it for us.
- if (sample && control && typeof sample.stack === 'string') {
- // This extracts the first frame from the sample that isn't also in the control.
- // Skipping one frame that we assume is the frame that calls the two.
- var sampleLines = sample.stack.split('\n');
- var controlLines = control.stack.split('\n');
- var s = sampleLines.length - 1;
- var c = controlLines.length - 1;
-
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
- // We expect at least one stack frame to be shared.
- // Typically this will be the root most one. However, stack frames may be
- // cut off due to maximum stack limits. In this case, one maybe cut off
- // earlier than the other. We assume that the sample is longer or the same
- // and there for cut off earlier. So we should find the root most frame in
- // the sample somewhere in the control.
- c--;
- }
-
- for (; s >= 1 && c >= 0; s--, c--) {
- // Next we find the first one that isn't the same which should be the
- // frame that called our sample function and the control.
- if (sampleLines[s] !== controlLines[c]) {
- // In V8, the first line is describing the message but other VMs don't.
- // If we're about to return the first line, and the control is also on the same
- // line, that's a pretty good indicator that our sample threw at same line as
- // the control. I.e. before we entered the sample frame. So we ignore this result.
- // This can happen if you passed a class to function component, or non-function.
- if (s !== 1 || c !== 1) {
- do {
- s--;
- c--; // We may still have similar intermediate frames from the construct call.
- // The next one that isn't the same should be our match though.
-
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
- // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
- // but we have a user-provided "displayName"
- // splice it in to make the stack more readable.
-
-
- if (fn.displayName && _frame.includes('<anonymous>')) {
- _frame = _frame.replace('<anonymous>', fn.displayName);
- }
-
- {
- if (typeof fn === 'function') {
- componentFrameCache.set(fn, _frame);
- }
- } // Return the line we found.
-
-
- return _frame;
- }
- } while (s >= 1 && c >= 0);
- }
-
- break;
- }
- }
- }
- } finally {
- reentry = false;
-
- {
- ReactCurrentDispatcher$1.current = previousDispatcher;
- reenableLogs();
- }
-
- Error.prepareStackTrace = previousPrepareStackTrace;
- } // Fallback to just using the name if we couldn't make it throw.
-
-
- var name = fn ? fn.displayName || fn.name : '';
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
-
- {
- if (typeof fn === 'function') {
- componentFrameCache.set(fn, syntheticFrame);
- }
- }
-
- return syntheticFrame;
- }
- function describeFunctionComponentFrame(fn, source, ownerFn) {
- {
- return describeNativeComponentFrame(fn, false);
- }
- }
-
- function shouldConstruct(Component) {
- var prototype = Component.prototype;
- return !!(prototype && prototype.isReactComponent);
- }
-
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
-
- if (type == null) {
- return '';
- }
-
- if (typeof type === 'function') {
- {
- return describeNativeComponentFrame(type, shouldConstruct(type));
- }
- }
-
- if (typeof type === 'string') {
- return describeBuiltInComponentFrame(type);
- }
-
- switch (type) {
- case REACT_SUSPENSE_TYPE:
- return describeBuiltInComponentFrame('Suspense');
-
- case REACT_SUSPENSE_LIST_TYPE:
- return describeBuiltInComponentFrame('SuspenseList');
- }
-
- if (typeof type === 'object') {
- switch (type.$$typeof) {
- case REACT_FORWARD_REF_TYPE:
- return describeFunctionComponentFrame(type.render);
-
- case REACT_MEMO_TYPE:
- // Memo may contain any component type so we recursively resolve it.
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
-
- case REACT_LAZY_TYPE:
- {
- var lazyComponent = type;
- var payload = lazyComponent._payload;
- var init = lazyComponent._init;
-
- try {
- // Lazy may contain any component type so we recursively resolve it.
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
- } catch (x) {}
- }
- }
- }
-
- return '';
- }
-
- var loggedTypeFailures = {};
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
-
- function setCurrentlyValidatingElement(element) {
- {
- if (element) {
- var owner = element._owner;
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
- } else {
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
- }
- }
- }
-
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
- {
- // $FlowFixMe This is okay but Flow doesn't know it.
- var has = Function.call.bind(hasOwnProperty);
-
- for (var typeSpecName in typeSpecs) {
- if (has(typeSpecs, typeSpecName)) {
- var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
- // fail the render phase where it didn't fail before. So we log it.
- // After these have been cleaned up, we'll let them throw.
-
- try {
- // This is intentionally an invariant that gets caught. It's the same
- // behavior as without this statement except with a better message.
- if (typeof typeSpecs[typeSpecName] !== 'function') {
- // eslint-disable-next-line react-internal/prod-error-codes
- var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
- err.name = 'Invariant Violation';
- throw err;
- }
-
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
- } catch (ex) {
- error$1 = ex;
- }
-
- if (error$1 && !(error$1 instanceof Error)) {
- setCurrentlyValidatingElement(element);
-
- error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
-
- setCurrentlyValidatingElement(null);
- }
-
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
- // Only monitor this failure once because there tends to be a lot of the
- // same error.
- loggedTypeFailures[error$1.message] = true;
- setCurrentlyValidatingElement(element);
-
- error('Failed %s type: %s', location, error$1.message);
-
- setCurrentlyValidatingElement(null);
- }
- }
- }
- }
- }
-
- function setCurrentlyValidatingElement$1(element) {
- {
- if (element) {
- var owner = element._owner;
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
- setExtraStackFrame(stack);
- } else {
- setExtraStackFrame(null);
- }
- }
- }
-
- var propTypesMisspellWarningShown;
-
- {
- propTypesMisspellWarningShown = false;
- }
-
- function getDeclarationErrorAddendum() {
- if (ReactCurrentOwner.current) {
- var name = getComponentNameFromType(ReactCurrentOwner.current.type);
-
- if (name) {
- return '\n\nCheck the render method of `' + name + '`.';
- }
- }
-
- return '';
- }
-
- function getSourceInfoErrorAddendum(source) {
- if (source !== undefined) {
- var fileName = source.fileName.replace(/^.*[\\\/]/, '');
- var lineNumber = source.lineNumber;
- return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
- }
-
- return '';
- }
-
- function getSourceInfoErrorAddendumForProps(elementProps) {
- if (elementProps !== null && elementProps !== undefined) {
- return getSourceInfoErrorAddendum(elementProps.__source);
- }
-
- return '';
- }
- /**
- * Warn if there's no key explicitly set on dynamic arrays of children or
- * object keys are not valid. This allows us to keep track of children between
- * updates.
- */
-
-
- var ownerHasKeyUseWarning = {};
-
- function getCurrentComponentErrorInfo(parentType) {
- var info = getDeclarationErrorAddendum();
-
- if (!info) {
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
-
- if (parentName) {
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
- }
- }
-
- return info;
- }
- /**
- * Warn if the element doesn't have an explicit key assigned to it.
- * This element is in an array. The array could grow and shrink or be
- * reordered. All children that haven't already been validated are required to
- * have a "key" property assigned to it. Error statuses are cached so a warning
- * will only be shown once.
- *
- * @internal
- * @param {ReactElement} element Element that requires a key.
- * @param {*} parentType element's parent's type.
- */
-
-
- function validateExplicitKey(element, parentType) {
- if (!element._store || element._store.validated || element.key != null) {
- return;
- }
-
- element._store.validated = true;
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
-
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
- return;
- }
-
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
- // property, it may be the creator of the child that's responsible for
- // assigning it a key.
-
- var childOwner = '';
-
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
- // Give the component that originally created this child.
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
- }
-
- {
- setCurrentlyValidatingElement$1(element);
-
- error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
-
- setCurrentlyValidatingElement$1(null);
- }
- }
- /**
- * Ensure that every element either is passed in a static location, in an
- * array with an explicit keys property defined, or in an object literal
- * with valid key property.
- *
- * @internal
- * @param {ReactNode} node Statically passed child of any type.
- * @param {*} parentType node's parent's type.
- */
-
-
- function validateChildKeys(node, parentType) {
- if (typeof node !== 'object') {
- return;
- }
-
- if (isArray(node)) {
- for (var i = 0; i < node.length; i++) {
- var child = node[i];
-
- if (isValidElement(child)) {
- validateExplicitKey(child, parentType);
- }
- }
- } else if (isValidElement(node)) {
- // This element was passed in a valid location.
- if (node._store) {
- node._store.validated = true;
- }
- } else if (node) {
- var iteratorFn = getIteratorFn(node);
-
- if (typeof iteratorFn === 'function') {
- // Entry iterators used to provide implicit keys,
- // but now we print a separate warning for them later.
- if (iteratorFn !== node.entries) {
- var iterator = iteratorFn.call(node);
- var step;
-
- while (!(step = iterator.next()).done) {
- if (isValidElement(step.value)) {
- validateExplicitKey(step.value, parentType);
- }
- }
- }
- }
- }
- }
- /**
- * Given an element, validate that its props follow the propTypes definition,
- * provided by the type.
- *
- * @param {ReactElement} element
- */
-
-
- function validatePropTypes(element) {
- {
- var type = element.type;
-
- if (type === null || type === undefined || typeof type === 'string') {
- return;
- }
-
- var propTypes;
-
- if (typeof type === 'function') {
- propTypes = type.propTypes;
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
- // Inner props are checked in the reconciler.
- type.$$typeof === REACT_MEMO_TYPE)) {
- propTypes = type.propTypes;
- } else {
- return;
- }
-
- if (propTypes) {
- // Intentionally inside to avoid triggering lazy initializers:
- var name = getComponentNameFromType(type);
- checkPropTypes(propTypes, element.props, 'prop', name, element);
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
- propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
-
- var _name = getComponentNameFromType(type);
-
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
- }
-
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
- }
- }
- }
- /**
- * Given a fragment, validate that it can only be provided with fragment props
- * @param {ReactElement} fragment
- */
-
-
- function validateFragmentProps(fragment) {
- {
- var keys = Object.keys(fragment.props);
-
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
-
- if (key !== 'children' && key !== 'key') {
- setCurrentlyValidatingElement$1(fragment);
-
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
-
- setCurrentlyValidatingElement$1(null);
- break;
- }
- }
-
- if (fragment.ref !== null) {
- setCurrentlyValidatingElement$1(fragment);
-
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
-
- setCurrentlyValidatingElement$1(null);
- }
- }
- }
- function createElementWithValidation(type, props, children) {
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
- // succeed and there will likely be errors in render.
-
- if (!validType) {
- var info = '';
-
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
- info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
- }
-
- var sourceInfo = getSourceInfoErrorAddendumForProps(props);
-
- if (sourceInfo) {
- info += sourceInfo;
- } else {
- info += getDeclarationErrorAddendum();
- }
-
- var typeString;
-
- if (type === null) {
- typeString = 'null';
- } else if (isArray(type)) {
- typeString = 'array';
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
- typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
- info = ' Did you accidentally export a JSX literal instead of a component?';
- } else {
- typeString = typeof type;
- }
-
- {
- error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
- }
- }
-
- var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
- // TODO: Drop this when these are no longer allowed as the type argument.
-
- if (element == null) {
- return element;
- } // Skip key warning if the type isn't valid since our key validation logic
- // doesn't expect a non-string/function type and can throw confusing errors.
- // We don't want exception behavior to differ between dev and prod.
- // (Rendering will throw with a helpful message and as soon as the type is
- // fixed, the key warnings will appear.)
-
-
- if (validType) {
- for (var i = 2; i < arguments.length; i++) {
- validateChildKeys(arguments[i], type);
- }
- }
-
- if (type === REACT_FRAGMENT_TYPE) {
- validateFragmentProps(element);
- } else {
- validatePropTypes(element);
- }
-
- return element;
- }
- var didWarnAboutDeprecatedCreateFactory = false;
- function createFactoryWithValidation(type) {
- var validatedFactory = createElementWithValidation.bind(null, type);
- validatedFactory.type = type;
-
- {
- if (!didWarnAboutDeprecatedCreateFactory) {
- didWarnAboutDeprecatedCreateFactory = true;
-
- warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
- } // Legacy hook: remove it
-
-
- Object.defineProperty(validatedFactory, 'type', {
- enumerable: false,
- get: function () {
- warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
-
- Object.defineProperty(this, 'type', {
- value: type
- });
- return type;
- }
- });
- }
-
- return validatedFactory;
- }
- function cloneElementWithValidation(element, props, children) {
- var newElement = cloneElement.apply(this, arguments);
-
- for (var i = 2; i < arguments.length; i++) {
- validateChildKeys(arguments[i], newElement.type);
- }
-
- validatePropTypes(newElement);
- return newElement;
- }
-
- var enableSchedulerDebugging = false;
- var enableProfiling = false;
- var frameYieldMs = 5;
-
- function push(heap, node) {
- var index = heap.length;
- heap.push(node);
- siftUp(heap, node, index);
- }
- function peek(heap) {
- return heap.length === 0 ? null : heap[0];
- }
- function pop(heap) {
- if (heap.length === 0) {
- return null;
- }
-
- var first = heap[0];
- var last = heap.pop();
-
- if (last !== first) {
- heap[0] = last;
- siftDown(heap, last, 0);
- }
-
- return first;
- }
-
- function siftUp(heap, node, i) {
- var index = i;
-
- while (index > 0) {
- var parentIndex = index - 1 >>> 1;
- var parent = heap[parentIndex];
-
- if (compare(parent, node) > 0) {
- // The parent is larger. Swap positions.
- heap[parentIndex] = node;
- heap[index] = parent;
- index = parentIndex;
- } else {
- // The parent is smaller. Exit.
- return;
- }
- }
- }
-
- function siftDown(heap, node, i) {
- var index = i;
- var length = heap.length;
- var halfLength = length >>> 1;
-
- while (index < halfLength) {
- var leftIndex = (index + 1) * 2 - 1;
- var left = heap[leftIndex];
- var rightIndex = leftIndex + 1;
- var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.
-
- if (compare(left, node) < 0) {
- if (rightIndex < length && compare(right, left) < 0) {
- heap[index] = right;
- heap[rightIndex] = node;
- index = rightIndex;
- } else {
- heap[index] = left;
- heap[leftIndex] = node;
- index = leftIndex;
- }
- } else if (rightIndex < length && compare(right, node) < 0) {
- heap[index] = right;
- heap[rightIndex] = node;
- index = rightIndex;
- } else {
- // Neither child is smaller. Exit.
- return;
- }
- }
- }
-
- function compare(a, b) {
- // Compare sort index first, then task id.
- var diff = a.sortIndex - b.sortIndex;
- return diff !== 0 ? diff : a.id - b.id;
- }
-
- // TODO: Use symbols?
- var ImmediatePriority = 1;
- var UserBlockingPriority = 2;
- var NormalPriority = 3;
- var LowPriority = 4;
- var IdlePriority = 5;
-
- function markTaskErrored(task, ms) {
- }
-
- /* eslint-disable no-var */
- var getCurrentTime;
- var hasPerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';
-
- if (hasPerformanceNow) {
- var localPerformance = performance;
-
- getCurrentTime = function () {
- return localPerformance.now();
- };
- } else {
- var localDate = Date;
- var initialTime = localDate.now();
-
- getCurrentTime = function () {
- return localDate.now() - initialTime;
- };
- } // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
- // Math.pow(2, 30) - 1
- // 0b111111111111111111111111111111
-
-
- var maxSigned31BitInt = 1073741823; // Times out immediately
-
- var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out
-
- var USER_BLOCKING_PRIORITY_TIMEOUT = 250;
- var NORMAL_PRIORITY_TIMEOUT = 5000;
- var LOW_PRIORITY_TIMEOUT = 10000; // Never times out
-
- var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap
-
- var taskQueue = [];
- var timerQueue = []; // Incrementing id counter. Used to maintain insertion order.
-
- var taskIdCounter = 1; // Pausing the scheduler is useful for debugging.
- var currentTask = null;
- var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrance.
-
- var isPerformingWork = false;
- var isHostCallbackScheduled = false;
- var isHostTimeoutScheduled = false; // Capture local references to native APIs, in case a polyfill overrides them.
-
- var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : null;
- var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : null;
- var localSetImmediate = typeof setImmediate !== 'undefined' ? setImmediate : null; // IE and Node.js + jsdom
-
- var isInputPending = typeof navigator !== 'undefined' && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null;
-
- function advanceTimers(currentTime) {
- // Check for tasks that are no longer delayed and add them to the queue.
- var timer = peek(timerQueue);
-
- while (timer !== null) {
- if (timer.callback === null) {
- // Timer was cancelled.
- pop(timerQueue);
- } else if (timer.startTime <= currentTime) {
- // Timer fired. Transfer to the task queue.
- pop(timerQueue);
- timer.sortIndex = timer.expirationTime;
- push(taskQueue, timer);
- } else {
- // Remaining timers are pending.
- return;
- }
-
- timer = peek(timerQueue);
- }
- }
-
- function handleTimeout(currentTime) {
- isHostTimeoutScheduled = false;
- advanceTimers(currentTime);
-
- if (!isHostCallbackScheduled) {
- if (peek(taskQueue) !== null) {
- isHostCallbackScheduled = true;
- requestHostCallback(flushWork);
- } else {
- var firstTimer = peek(timerQueue);
-
- if (firstTimer !== null) {
- requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
- }
- }
- }
- }
-
- function flushWork(hasTimeRemaining, initialTime) {
-
-
- isHostCallbackScheduled = false;
-
- if (isHostTimeoutScheduled) {
- // We scheduled a timeout but it's no longer needed. Cancel it.
- isHostTimeoutScheduled = false;
- cancelHostTimeout();
- }
-
- isPerformingWork = true;
- var previousPriorityLevel = currentPriorityLevel;
-
- try {
- if (enableProfiling) {
- try {
- return workLoop(hasTimeRemaining, initialTime);
- } catch (error) {
- if (currentTask !== null) {
- var currentTime = getCurrentTime();
- markTaskErrored(currentTask, currentTime);
- currentTask.isQueued = false;
- }
-
- throw error;
- }
- } else {
- // No catch in prod code path.
- return workLoop(hasTimeRemaining, initialTime);
- }
- } finally {
- currentTask = null;
- currentPriorityLevel = previousPriorityLevel;
- isPerformingWork = false;
- }
- }
-
- function workLoop(hasTimeRemaining, initialTime) {
- var currentTime = initialTime;
- advanceTimers(currentTime);
- currentTask = peek(taskQueue);
-
- while (currentTask !== null && !(enableSchedulerDebugging )) {
- if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {
- // This currentTask hasn't expired, and we've reached the deadline.
- break;
- }
-
- var callback = currentTask.callback;
-
- if (typeof callback === 'function') {
- currentTask.callback = null;
- currentPriorityLevel = currentTask.priorityLevel;
- var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
-
- var continuationCallback = callback(didUserCallbackTimeout);
- currentTime = getCurrentTime();
-
- if (typeof continuationCallback === 'function') {
- currentTask.callback = continuationCallback;
- } else {
-
- if (currentTask === peek(taskQueue)) {
- pop(taskQueue);
- }
- }
-
- advanceTimers(currentTime);
- } else {
- pop(taskQueue);
- }
-
- currentTask = peek(taskQueue);
- } // Return whether there's additional work
-
-
- if (currentTask !== null) {
- return true;
- } else {
- var firstTimer = peek(timerQueue);
-
- if (firstTimer !== null) {
- requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
- }
-
- return false;
- }
- }
-
- function unstable_runWithPriority(priorityLevel, eventHandler) {
- switch (priorityLevel) {
- case ImmediatePriority:
- case UserBlockingPriority:
- case NormalPriority:
- case LowPriority:
- case IdlePriority:
- break;
-
- default:
- priorityLevel = NormalPriority;
- }
-
- var previousPriorityLevel = currentPriorityLevel;
- currentPriorityLevel = priorityLevel;
-
- try {
- return eventHandler();
- } finally {
- currentPriorityLevel = previousPriorityLevel;
- }
- }
-
- function unstable_next(eventHandler) {
- var priorityLevel;
-
- switch (currentPriorityLevel) {
- case ImmediatePriority:
- case UserBlockingPriority:
- case NormalPriority:
- // Shift down to normal priority
- priorityLevel = NormalPriority;
- break;
-
- default:
- // Anything lower than normal priority should remain at the current level.
- priorityLevel = currentPriorityLevel;
- break;
- }
-
- var previousPriorityLevel = currentPriorityLevel;
- currentPriorityLevel = priorityLevel;
-
- try {
- return eventHandler();
- } finally {
- currentPriorityLevel = previousPriorityLevel;
- }
- }
-
- function unstable_wrapCallback(callback) {
- var parentPriorityLevel = currentPriorityLevel;
- return function () {
- // This is a fork of runWithPriority, inlined for performance.
- var previousPriorityLevel = currentPriorityLevel;
- currentPriorityLevel = parentPriorityLevel;
-
- try {
- return callback.apply(this, arguments);
- } finally {
- currentPriorityLevel = previousPriorityLevel;
- }
- };
- }
-
- function unstable_scheduleCallback(priorityLevel, callback, options) {
- var currentTime = getCurrentTime();
- var startTime;
-
- if (typeof options === 'object' && options !== null) {
- var delay = options.delay;
-
- if (typeof delay === 'number' && delay > 0) {
- startTime = currentTime + delay;
- } else {
- startTime = currentTime;
- }
- } else {
- startTime = currentTime;
- }
-
- var timeout;
-
- switch (priorityLevel) {
- case ImmediatePriority:
- timeout = IMMEDIATE_PRIORITY_TIMEOUT;
- break;
-
- case UserBlockingPriority:
- timeout = USER_BLOCKING_PRIORITY_TIMEOUT;
- break;
-
- case IdlePriority:
- timeout = IDLE_PRIORITY_TIMEOUT;
- break;
-
- case LowPriority:
- timeout = LOW_PRIORITY_TIMEOUT;
- break;
-
- case NormalPriority:
- default:
- timeout = NORMAL_PRIORITY_TIMEOUT;
- break;
- }
-
- var expirationTime = startTime + timeout;
- var newTask = {
- id: taskIdCounter++,
- callback: callback,
- priorityLevel: priorityLevel,
- startTime: startTime,
- expirationTime: expirationTime,
- sortIndex: -1
- };
-
- if (startTime > currentTime) {
- // This is a delayed task.
- newTask.sortIndex = startTime;
- push(timerQueue, newTask);
-
- if (peek(taskQueue) === null && newTask === peek(timerQueue)) {
- // All tasks are delayed, and this is the task with the earliest delay.
- if (isHostTimeoutScheduled) {
- // Cancel an existing timeout.
- cancelHostTimeout();
- } else {
- isHostTimeoutScheduled = true;
- } // Schedule a timeout.
-
-
- requestHostTimeout(handleTimeout, startTime - currentTime);
- }
- } else {
- newTask.sortIndex = expirationTime;
- push(taskQueue, newTask);
- // wait until the next time we yield.
-
-
- if (!isHostCallbackScheduled && !isPerformingWork) {
- isHostCallbackScheduled = true;
- requestHostCallback(flushWork);
- }
- }
-
- return newTask;
- }
-
- function unstable_pauseExecution() {
- }
-
- function unstable_continueExecution() {
-
- if (!isHostCallbackScheduled && !isPerformingWork) {
- isHostCallbackScheduled = true;
- requestHostCallback(flushWork);
- }
- }
-
- function unstable_getFirstCallbackNode() {
- return peek(taskQueue);
- }
-
- function unstable_cancelCallback(task) {
- // remove from the queue because you can't remove arbitrary nodes from an
- // array based heap, only the first one.)
-
-
- task.callback = null;
- }
-
- function unstable_getCurrentPriorityLevel() {
- return currentPriorityLevel;
- }
-
- var isMessageLoopRunning = false;
- var scheduledHostCallback = null;
- var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main
- // thread, like user events. By default, it yields multiple times per frame.
- // It does not attempt to align with frame boundaries, since most tasks don't
- // need to be frame aligned; for those that do, use requestAnimationFrame.
-
- var frameInterval = frameYieldMs;
- var startTime = -1;
-
- function shouldYieldToHost() {
- var timeElapsed = getCurrentTime() - startTime;
-
- if (timeElapsed < frameInterval) {
- // The main thread has only been blocked for a really short amount of time;
- // smaller than a single frame. Don't yield yet.
- return false;
- } // The main thread has been blocked for a non-negligible amount of time. We
-
-
- return true;
- }
-
- function requestPaint() {
-
- }
-
- function forceFrameRate(fps) {
- if (fps < 0 || fps > 125) {
- // Using console['error'] to evade Babel and ESLint
- console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing frame rates higher than 125 fps is not supported');
- return;
- }
-
- if (fps > 0) {
- frameInterval = Math.floor(1000 / fps);
- } else {
- // reset the framerate
- frameInterval = frameYieldMs;
- }
- }
-
- var performWorkUntilDeadline = function () {
- if (scheduledHostCallback !== null) {
- var currentTime = getCurrentTime(); // Keep track of the start time so we can measure how long the main thread
- // has been blocked.
-
- startTime = currentTime;
- var hasTimeRemaining = true; // If a scheduler task throws, exit the current browser task so the
- // error can be observed.
- //
- // Intentionally not using a try-catch, since that makes some debugging
- // techniques harder. Instead, if `scheduledHostCallback` errors, then
- // `hasMoreWork` will remain true, and we'll continue the work loop.
-
- var hasMoreWork = true;
-
- try {
- hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
- } finally {
- if (hasMoreWork) {
- // If there's more work, schedule the next message event at the end
- // of the preceding one.
- schedulePerformWorkUntilDeadline();
- } else {
- isMessageLoopRunning = false;
- scheduledHostCallback = null;
- }
- }
- } else {
- isMessageLoopRunning = false;
- } // Yielding to the browser will give it a chance to paint, so we can
- };
-
- var schedulePerformWorkUntilDeadline;
-
- if (typeof localSetImmediate === 'function') {
- // Node.js and old IE.
- // There's a few reasons for why we prefer setImmediate.
- //
- // Unlike MessageChannel, it doesn't prevent a Node.js process from exiting.
- // (Even though this is a DOM fork of the Scheduler, you could get here
- // with a mix of Node.js 15+, which has a MessageChannel, and jsdom.)
- // https://github.com/facebook/react/issues/20756
- //
- // But also, it runs earlier which is the semantic we want.
- // If other browsers ever implement it, it's better to use it.
- // Although both of these would be inferior to native scheduling.
- schedulePerformWorkUntilDeadline = function () {
- localSetImmediate(performWorkUntilDeadline);
- };
- } else if (typeof MessageChannel !== 'undefined') {
- // DOM and Worker environments.
- // We prefer MessageChannel because of the 4ms setTimeout clamping.
- var channel = new MessageChannel();
- var port = channel.port2;
- channel.port1.onmessage = performWorkUntilDeadline;
-
- schedulePerformWorkUntilDeadline = function () {
- port.postMessage(null);
- };
- } else {
- // We should only fallback here in non-browser environments.
- schedulePerformWorkUntilDeadline = function () {
- localSetTimeout(performWorkUntilDeadline, 0);
- };
- }
-
- function requestHostCallback(callback) {
- scheduledHostCallback = callback;
-
- if (!isMessageLoopRunning) {
- isMessageLoopRunning = true;
- schedulePerformWorkUntilDeadline();
- }
- }
-
- function requestHostTimeout(callback, ms) {
- taskTimeoutID = localSetTimeout(function () {
- callback(getCurrentTime());
- }, ms);
- }
-
- function cancelHostTimeout() {
- localClearTimeout(taskTimeoutID);
- taskTimeoutID = -1;
- }
-
- var unstable_requestPaint = requestPaint;
- var unstable_Profiling = null;
-
-
-
- var Scheduler = /*#__PURE__*/Object.freeze({
- __proto__: null,
- unstable_ImmediatePriority: ImmediatePriority,
- unstable_UserBlockingPriority: UserBlockingPriority,
- unstable_NormalPriority: NormalPriority,
- unstable_IdlePriority: IdlePriority,
- unstable_LowPriority: LowPriority,
- unstable_runWithPriority: unstable_runWithPriority,
- unstable_next: unstable_next,
- unstable_scheduleCallback: unstable_scheduleCallback,
- unstable_cancelCallback: unstable_cancelCallback,
- unstable_wrapCallback: unstable_wrapCallback,
- unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel,
- unstable_shouldYield: shouldYieldToHost,
- unstable_requestPaint: unstable_requestPaint,
- unstable_continueExecution: unstable_continueExecution,
- unstable_pauseExecution: unstable_pauseExecution,
- unstable_getFirstCallbackNode: unstable_getFirstCallbackNode,
- get unstable_now () { return getCurrentTime; },
- unstable_forceFrameRate: forceFrameRate,
- unstable_Profiling: unstable_Profiling
- });
-
- var ReactSharedInternals$1 = {
- ReactCurrentDispatcher: ReactCurrentDispatcher,
- ReactCurrentOwner: ReactCurrentOwner,
- ReactCurrentBatchConfig: ReactCurrentBatchConfig,
- // Re-export the schedule API(s) for UMD bundles.
- // This avoids introducing a dependency on a new UMD global in a minor update,
- // Since that would be a breaking change (e.g. for all existing CodeSandboxes).
- // This re-export is only required for UMD bundles;
- // CJS bundles use the shared NPM package.
- Scheduler: Scheduler
- };
-
- {
- ReactSharedInternals$1.ReactCurrentActQueue = ReactCurrentActQueue;
- ReactSharedInternals$1.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
- }
-
- function startTransition(scope, options) {
- var prevTransition = ReactCurrentBatchConfig.transition;
- ReactCurrentBatchConfig.transition = {};
- var currentTransition = ReactCurrentBatchConfig.transition;
-
- {
- ReactCurrentBatchConfig.transition._updatedFibers = new Set();
- }
-
- try {
- scope();
- } finally {
- ReactCurrentBatchConfig.transition = prevTransition;
-
- {
- if (prevTransition === null && currentTransition._updatedFibers) {
- var updatedFibersCount = currentTransition._updatedFibers.size;
-
- if (updatedFibersCount > 10) {
- warn('Detected a large number of updates inside startTransition. ' + 'If this is due to a subscription please re-write it to use React provided hooks. ' + 'Otherwise concurrent mode guarantees are off the table.');
- }
-
- currentTransition._updatedFibers.clear();
- }
- }
- }
- }
-
- var didWarnAboutMessageChannel = false;
- var enqueueTaskImpl = null;
- function enqueueTask(task) {
- if (enqueueTaskImpl === null) {
- try {
- // read require off the module object to get around the bundlers.
- // we don't want them to detect a require and bundle a Node polyfill.
- var requireString = ('require' + Math.random()).slice(0, 7);
- var nodeRequire = module && module[requireString]; // assuming we're in node, let's try to get node's
- // version of setImmediate, bypassing fake timers if any.
-
- enqueueTaskImpl = nodeRequire.call(module, 'timers').setImmediate;
- } catch (_err) {
- // we're in a browser
- // we can't use regular timers because they may still be faked
- // so we try MessageChannel+postMessage instead
- enqueueTaskImpl = function (callback) {
- {
- if (didWarnAboutMessageChannel === false) {
- didWarnAboutMessageChannel = true;
-
- if (typeof MessageChannel === 'undefined') {
- error('This browser does not have a MessageChannel implementation, ' + 'so enqueuing tasks via await act(async () => ...) will fail. ' + 'Please file an issue at https://github.com/facebook/react/issues ' + 'if you encounter this warning.');
- }
- }
- }
-
- var channel = new MessageChannel();
- channel.port1.onmessage = callback;
- channel.port2.postMessage(undefined);
- };
- }
- }
-
- return enqueueTaskImpl(task);
- }
-
- var actScopeDepth = 0;
- var didWarnNoAwaitAct = false;
- function act(callback) {
- {
- // `act` calls can be nested, so we track the depth. This represents the
- // number of `act` scopes on the stack.
- var prevActScopeDepth = actScopeDepth;
- actScopeDepth++;
-
- if (ReactCurrentActQueue.current === null) {
- // This is the outermost `act` scope. Initialize the queue. The reconciler
- // will detect the queue and use it instead of Scheduler.
- ReactCurrentActQueue.current = [];
- }
-
- var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
- var result;
-
- try {
- // Used to reproduce behavior of `batchedUpdates` in legacy mode. Only
- // set to `true` while the given callback is executed, not for updates
- // triggered during an async event, because this is how the legacy
- // implementation of `act` behaved.
- ReactCurrentActQueue.isBatchingLegacy = true;
- result = callback(); // Replicate behavior of original `act` implementation in legacy mode,
- // which flushed updates immediately after the scope function exits, even
- // if it's an async function.
-
- if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
- var queue = ReactCurrentActQueue.current;
-
- if (queue !== null) {
- ReactCurrentActQueue.didScheduleLegacyUpdate = false;
- flushActQueue(queue);
- }
- }
- } catch (error) {
- popActScope(prevActScopeDepth);
- throw error;
- } finally {
- ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
- }
-
- if (result !== null && typeof result === 'object' && typeof result.then === 'function') {
- var thenableResult = result; // The callback is an async function (i.e. returned a promise). Wait
- // for it to resolve before exiting the current scope.
-
- var wasAwaited = false;
- var thenable = {
- then: function (resolve, reject) {
- wasAwaited = true;
- thenableResult.then(function (returnValue) {
- popActScope(prevActScopeDepth);
-
- if (actScopeDepth === 0) {
- // We've exited the outermost act scope. Recursively flush the
- // queue until there's no remaining work.
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
- } else {
- resolve(returnValue);
- }
- }, function (error) {
- // The callback threw an error.
- popActScope(prevActScopeDepth);
- reject(error);
- });
- }
- };
-
- {
- if (!didWarnNoAwaitAct && typeof Promise !== 'undefined') {
- // eslint-disable-next-line no-undef
- Promise.resolve().then(function () {}).then(function () {
- if (!wasAwaited) {
- didWarnNoAwaitAct = true;
-
- error('You called act(async () => ...) without await. ' + 'This could lead to unexpected testing behaviour, ' + 'interleaving multiple act calls and mixing their ' + 'scopes. ' + 'You should - await act(async () => ...);');
- }
- });
- }
- }
-
- return thenable;
- } else {
- var returnValue = result; // The callback is not an async function. Exit the current scope
- // immediately, without awaiting.
-
- popActScope(prevActScopeDepth);
-
- if (actScopeDepth === 0) {
- // Exiting the outermost act scope. Flush the queue.
- var _queue = ReactCurrentActQueue.current;
-
- if (_queue !== null) {
- flushActQueue(_queue);
- ReactCurrentActQueue.current = null;
- } // Return a thenable. If the user awaits it, we'll flush again in
- // case additional work was scheduled by a microtask.
-
-
- var _thenable = {
- then: function (resolve, reject) {
- // Confirm we haven't re-entered another `act` scope, in case
- // the user does something weird like await the thenable
- // multiple times.
- if (ReactCurrentActQueue.current === null) {
- // Recursively flush the queue until there's no remaining work.
- ReactCurrentActQueue.current = [];
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
- } else {
- resolve(returnValue);
- }
- }
- };
- return _thenable;
- } else {
- // Since we're inside a nested `act` scope, the returned thenable
- // immediately resolves. The outer scope will flush the queue.
- var _thenable2 = {
- then: function (resolve, reject) {
- resolve(returnValue);
- }
- };
- return _thenable2;
- }
- }
- }
- }
-
- function popActScope(prevActScopeDepth) {
- {
- if (prevActScopeDepth !== actScopeDepth - 1) {
- error('You seem to have overlapping act() calls, this is not supported. ' + 'Be sure to await previous act() calls before making a new one. ');
- }
-
- actScopeDepth = prevActScopeDepth;
- }
- }
-
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
- {
- var queue = ReactCurrentActQueue.current;
-
- if (queue !== null) {
- try {
- flushActQueue(queue);
- enqueueTask(function () {
- if (queue.length === 0) {
- // No additional work was scheduled. Finish.
- ReactCurrentActQueue.current = null;
- resolve(returnValue);
- } else {
- // Keep flushing work until there's none left.
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
- }
- });
- } catch (error) {
- reject(error);
- }
- } else {
- resolve(returnValue);
- }
- }
- }
-
- var isFlushing = false;
-
- function flushActQueue(queue) {
- {
- if (!isFlushing) {
- // Prevent re-entrance.
- isFlushing = true;
- var i = 0;
-
- try {
- for (; i < queue.length; i++) {
- var callback = queue[i];
-
- do {
- callback = callback(true);
- } while (callback !== null);
- }
-
- queue.length = 0;
- } catch (error) {
- // If something throws, leave the remaining callbacks on the queue.
- queue = queue.slice(i + 1);
- throw error;
- } finally {
- isFlushing = false;
- }
- }
- }
- }
-
- var createElement$1 = createElementWithValidation ;
- var cloneElement$1 = cloneElementWithValidation ;
- var createFactory = createFactoryWithValidation ;
- var Children = {
- map: mapChildren,
- forEach: forEachChildren,
- count: countChildren,
- toArray: toArray,
- only: onlyChild
- };
-
- exports.Children = Children;
- exports.Component = Component;
- exports.Fragment = REACT_FRAGMENT_TYPE;
- exports.Profiler = REACT_PROFILER_TYPE;
- exports.PureComponent = PureComponent;
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
- exports.Suspense = REACT_SUSPENSE_TYPE;
- exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals$1;
- exports.cloneElement = cloneElement$1;
- exports.createContext = createContext;
- exports.createElement = createElement$1;
- exports.createFactory = createFactory;
- exports.createRef = createRef;
- exports.forwardRef = forwardRef;
- exports.isValidElement = isValidElement;
- exports.lazy = lazy;
- exports.memo = memo;
- exports.startTransition = startTransition;
- exports.unstable_act = act;
- exports.useCallback = useCallback;
- exports.useContext = useContext;
- exports.useDebugValue = useDebugValue;
- exports.useDeferredValue = useDeferredValue;
- exports.useEffect = useEffect;
- exports.useId = useId;
- exports.useImperativeHandle = useImperativeHandle;
- exports.useInsertionEffect = useInsertionEffect;
- exports.useLayoutEffect = useLayoutEffect;
- exports.useMemo = useMemo;
- exports.useReducer = useReducer;
- exports.useRef = useRef;
- exports.useState = useState;
- exports.useSyncExternalStore = useSyncExternalStore;
- exports.useTransition = useTransition;
- exports.version = ReactVersion;
-
-})));
+/******/ (() => { // webpackBootstrap
+/******/ "use strict";
+/******/ var __webpack_modules__ = ({
+
+/***/ "./node_modules/react/cjs/react.development.js":
+/*!*****************************************************!*\
+ !*** ./node_modules/react/cjs/react.development.js ***!
+ \*****************************************************/
+/***/ ((module, exports, __webpack_require__) => {
+
+eval("/* module decorator */ module = __webpack_require__.nmd(module);\n/**\n * @license React\n * react.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\nif (true) {\n (function() {\n\n 'use strict';\n\n/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===\n 'function'\n) {\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());\n}\n var ReactVersion = '18.3.1';\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\n/**\n * Keeps track of the current dispatcher.\n */\nvar ReactCurrentDispatcher = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n};\n\n/**\n * Keeps track of the current batch's configuration such as how long an update\n * should suspend for if it needs to.\n */\nvar ReactCurrentBatchConfig = {\n transition: null\n};\n\nvar ReactCurrentActQueue = {\n current: null,\n // Used to reproduce behavior of `batchedUpdates` in legacy mode.\n isBatchingLegacy: false,\n didScheduleLegacyUpdate: false\n};\n\n/**\n * Keeps track of the current owner.\n *\n * The current owner is the component who should own any components that are\n * currently being constructed.\n */\nvar ReactCurrentOwner = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n};\n\nvar ReactDebugCurrentFrame = {};\nvar currentExtraStackFrame = null;\nfunction setExtraStackFrame(stack) {\n {\n currentExtraStackFrame = stack;\n }\n}\n\n{\n ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {\n {\n currentExtraStackFrame = stack;\n }\n }; // Stack implementation injected by the current renderer.\n\n\n ReactDebugCurrentFrame.getCurrentStack = null;\n\n ReactDebugCurrentFrame.getStackAddendum = function () {\n var stack = ''; // Add an extra top frame while an element is being validated\n\n if (currentExtraStackFrame) {\n stack += currentExtraStackFrame;\n } // Delegate to the injected renderer-specific implementation\n\n\n var impl = ReactDebugCurrentFrame.getCurrentStack;\n\n if (impl) {\n stack += impl() || '';\n }\n\n return stack;\n };\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar ReactSharedInternals = {\n ReactCurrentDispatcher: ReactCurrentDispatcher,\n ReactCurrentBatchConfig: ReactCurrentBatchConfig,\n ReactCurrentOwner: ReactCurrentOwner\n};\n\n{\n ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;\n ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;\n}\n\n// by calls to these methods by a Babel plugin.\n//\n// In PROD (or in packages without access to React internals),\n// they are left as they are instead.\n\nfunction warn(format) {\n {\n {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n printWarning('warn', format, args);\n }\n }\n}\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\nvar didWarnStateUpdateForUnmountedComponent = {};\n\nfunction warnNoop(publicInstance, callerName) {\n {\n var _constructor = publicInstance.constructor;\n var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';\n var warningKey = componentName + \".\" + callerName;\n\n if (didWarnStateUpdateForUnmountedComponent[warningKey]) {\n return;\n }\n\n error(\"Can't call %s on a component that is not yet mounted. \" + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);\n\n didWarnStateUpdateForUnmountedComponent[warningKey] = true;\n }\n}\n/**\n * This is the abstract API for an update queue.\n */\n\n\nvar ReactNoopUpdateQueue = {\n /**\n * Checks whether or not this composite component is mounted.\n * @param {ReactClass} publicInstance The instance we want to test.\n * @return {boolean} True if mounted, false otherwise.\n * @protected\n * @final\n */\n isMounted: function (publicInstance) {\n return false;\n },\n\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueForceUpdate: function (publicInstance, callback, callerName) {\n warnNoop(publicInstance, 'forceUpdate');\n },\n\n /**\n * Replaces all of the state. Always use this or `setState` to mutate state.\n * You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} completeState Next state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {\n warnNoop(publicInstance, 'replaceState');\n },\n\n /**\n * Sets a subset of the state. This only exists because _pendingState is\n * internal. This provides a merging strategy that is not available to deep\n * properties which is confusing. TODO: Expose pendingState or don't use it\n * during the merge.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} partialState Next partial state to be merged with state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} Name of the calling function in the public API.\n * @internal\n */\n enqueueSetState: function (publicInstance, partialState, callback, callerName) {\n warnNoop(publicInstance, 'setState');\n }\n};\n\nvar assign = Object.assign;\n\nvar emptyObject = {};\n\n{\n Object.freeze(emptyObject);\n}\n/**\n * Base class helpers for the updating state of a component.\n */\n\n\nfunction Component(props, context, updater) {\n this.props = props;\n this.context = context; // If a component has string refs, we will assign a different object later.\n\n this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the\n // renderer.\n\n this.updater = updater || ReactNoopUpdateQueue;\n}\n\nComponent.prototype.isReactComponent = {};\n/**\n * Sets a subset of the state. Always use this to mutate\n * state. You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * There is no guarantee that calls to `setState` will run synchronously,\n * as they may eventually be batched together. You can provide an optional\n * callback that will be executed when the call to setState is actually\n * completed.\n *\n * When a function is provided to setState, it will be called at some point in\n * the future (not synchronously). It will be called with the up to date\n * component arguments (state, props, context). These values can be different\n * from this.* because your function may be called after receiveProps but before\n * shouldComponentUpdate, and this new state, props, and context will not yet be\n * assigned to this.\n *\n * @param {object|function} partialState Next partial state or function to\n * produce next partial state to be merged with current state.\n * @param {?function} callback Called after state is updated.\n * @final\n * @protected\n */\n\nComponent.prototype.setState = function (partialState, callback) {\n if (typeof partialState !== 'object' && typeof partialState !== 'function' && partialState != null) {\n throw new Error('setState(...): takes an object of state variables to update or a ' + 'function which returns an object of state variables.');\n }\n\n this.updater.enqueueSetState(this, partialState, callback, 'setState');\n};\n/**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {?function} callback Called after update is complete.\n * @final\n * @protected\n */\n\n\nComponent.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');\n};\n/**\n * Deprecated APIs. These APIs used to exist on classic React classes but since\n * we would like to deprecate them, we're not going to move them over to this\n * modern base class. Instead, we define a getter that warns if it's accessed.\n */\n\n\n{\n var deprecatedAPIs = {\n isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],\n replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']\n };\n\n var defineDeprecationWarning = function (methodName, info) {\n Object.defineProperty(Component.prototype, methodName, {\n get: function () {\n warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);\n\n return undefined;\n }\n });\n };\n\n for (var fnName in deprecatedAPIs) {\n if (deprecatedAPIs.hasOwnProperty(fnName)) {\n defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n }\n }\n}\n\nfunction ComponentDummy() {}\n\nComponentDummy.prototype = Component.prototype;\n/**\n * Convenience component with default shallow equality check for sCU.\n */\n\nfunction PureComponent(props, context, updater) {\n this.props = props;\n this.context = context; // If a component has string refs, we will assign a different object later.\n\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n}\n\nvar pureComponentPrototype = PureComponent.prototype = new ComponentDummy();\npureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.\n\nassign(pureComponentPrototype, Component.prototype);\npureComponentPrototype.isPureReactComponent = true;\n\n// an immutable object with a single mutable value\nfunction createRef() {\n var refObject = {\n current: null\n };\n\n {\n Object.seal(refObject);\n }\n\n return refObject;\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n var warnAboutAccessingKey = function () {\n {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n var warnAboutAccessingRef = function () {\n {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * Create and return a new ReactElement of the given type.\n * See https://reactjs.org/docs/react-api.html#createelement\n */\n\nfunction createElement(type, config, children) {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null;\n var self = null;\n var source = null;\n\n if (config != null) {\n if (hasValidRef(config)) {\n ref = config.ref;\n\n {\n warnIfStringRefCannotBeAutoConverted(config);\n }\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n self = config.__self === undefined ? null : config.__self;\n source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n }\n } // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n\n\n var childrenLength = arguments.length - 2;\n\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n\n {\n if (Object.freeze) {\n Object.freeze(childArray);\n }\n }\n\n props.children = childArray;\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n {\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n}\nfunction cloneAndReplaceKey(oldElement, newKey) {\n var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);\n return newElement;\n}\n/**\n * Clone and return a new ReactElement using element as the starting point.\n * See https://reactjs.org/docs/react-api.html#cloneelement\n */\n\nfunction cloneElement(element, config, children) {\n if (element === null || element === undefined) {\n throw new Error(\"React.cloneElement(...): The argument must be a React element, but you passed \" + element + \".\");\n }\n\n var propName; // Original props are copied\n\n var props = assign({}, element.props); // Reserved names are extracted\n\n var key = element.key;\n var ref = element.ref; // Self is preserved since the owner is preserved.\n\n var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a\n // transpiler, and the original source is probably a better indicator of the\n // true owner.\n\n var source = element._source; // Owner will be preserved, unless ref is overridden\n\n var owner = element._owner;\n\n if (config != null) {\n if (hasValidRef(config)) {\n // Silently steal the ref from the parent.\n ref = config.ref;\n owner = ReactCurrentOwner.current;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n } // Remaining properties override existing props\n\n\n var defaultProps;\n\n if (element.type && element.type.defaultProps) {\n defaultProps = element.type.defaultProps;\n }\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n if (config[propName] === undefined && defaultProps !== undefined) {\n // Resolve default props\n props[propName] = defaultProps[propName];\n } else {\n props[propName] = config[propName];\n }\n }\n }\n } // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n\n\n var childrenLength = arguments.length - 2;\n\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n\n props.children = childArray;\n }\n\n return ReactElement(element.type, key, ref, self, source, owner, props);\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\nfunction isValidElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\n\nvar SEPARATOR = '.';\nvar SUBSEPARATOR = ':';\n/**\n * Escape and wrap key so it is safe to use as a reactid\n *\n * @param {string} key to be escaped.\n * @return {string} the escaped key.\n */\n\nfunction escape(key) {\n var escapeRegex = /[=:]/g;\n var escaperLookup = {\n '=': '=0',\n ':': '=2'\n };\n var escapedString = key.replace(escapeRegex, function (match) {\n return escaperLookup[match];\n });\n return '$' + escapedString;\n}\n/**\n * TODO: Test that a single child and an array with one item have the same key\n * pattern.\n */\n\n\nvar didWarnAboutMaps = false;\nvar userProvidedKeyEscapeRegex = /\\/+/g;\n\nfunction escapeUserProvidedKey(text) {\n return text.replace(userProvidedKeyEscapeRegex, '$&/');\n}\n/**\n * Generate a key string that identifies a element within a set.\n *\n * @param {*} element A element that could contain a manual key.\n * @param {number} index Index that is used if a manual key is not provided.\n * @return {string}\n */\n\n\nfunction getElementKey(element, index) {\n // Do some typechecking here since we call this blindly. We want to ensure\n // that we don't block potential future ES APIs.\n if (typeof element === 'object' && element !== null && element.key != null) {\n // Explicit key\n {\n checkKeyStringCoercion(element.key);\n }\n\n return escape('' + element.key);\n } // Implicit key determined by the index in the set\n\n\n return index.toString(36);\n}\n\nfunction mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n var type = typeof children;\n\n if (type === 'undefined' || type === 'boolean') {\n // All of the above are perceived as null.\n children = null;\n }\n\n var invokeCallback = false;\n\n if (children === null) {\n invokeCallback = true;\n } else {\n switch (type) {\n case 'string':\n case 'number':\n invokeCallback = true;\n break;\n\n case 'object':\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = true;\n }\n\n }\n }\n\n if (invokeCallback) {\n var _child = children;\n var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array\n // so that it's consistent if the number of children grows:\n\n var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;\n\n if (isArray(mappedChild)) {\n var escapedChildKey = '';\n\n if (childKey != null) {\n escapedChildKey = escapeUserProvidedKey(childKey) + '/';\n }\n\n mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {\n return c;\n });\n } else if (mappedChild != null) {\n if (isValidElement(mappedChild)) {\n {\n // The `if` statement here prevents auto-disabling of the safe\n // coercion ESLint rule, so we must manually disable it below.\n // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key\n if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {\n checkKeyStringCoercion(mappedChild.key);\n }\n }\n\n mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as\n // traverseAllChildren used to do for objects as children\n escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key\n mappedChild.key && (!_child || _child.key !== mappedChild.key) ? // $FlowFixMe Flow incorrectly thinks existing element's key can be a number\n // eslint-disable-next-line react-internal/safe-string-coercion\n escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);\n }\n\n array.push(mappedChild);\n }\n\n return 1;\n }\n\n var child;\n var nextName;\n var subtreeCount = 0; // Count of children found in the current subtree.\n\n var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;\n\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n nextName = nextNamePrefix + getElementKey(child, i);\n subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);\n }\n } else {\n var iteratorFn = getIteratorFn(children);\n\n if (typeof iteratorFn === 'function') {\n var iterableChildren = children;\n\n {\n // Warn about using Maps as children\n if (iteratorFn === iterableChildren.entries) {\n if (!didWarnAboutMaps) {\n warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');\n }\n\n didWarnAboutMaps = true;\n }\n }\n\n var iterator = iteratorFn.call(iterableChildren);\n var step;\n var ii = 0;\n\n while (!(step = iterator.next()).done) {\n child = step.value;\n nextName = nextNamePrefix + getElementKey(child, ii++);\n subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);\n }\n } else if (type === 'object') {\n // eslint-disable-next-line react-internal/safe-string-coercion\n var childrenString = String(children);\n throw new Error(\"Objects are not valid as a React child (found: \" + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + \"). \" + 'If you meant to render a collection of children, use an array ' + 'instead.');\n }\n }\n\n return subtreeCount;\n}\n\n/**\n * Maps children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenmap\n *\n * The provided mapFunction(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} func The map function.\n * @param {*} context Context for mapFunction.\n * @return {object} Object containing the ordered map of results.\n */\nfunction mapChildren(children, func, context) {\n if (children == null) {\n return children;\n }\n\n var result = [];\n var count = 0;\n mapIntoArray(children, result, '', '', function (child) {\n return func.call(context, child, count++);\n });\n return result;\n}\n/**\n * Count the number of children that are typically specified as\n * `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrencount\n *\n * @param {?*} children Children tree container.\n * @return {number} The number of children.\n */\n\n\nfunction countChildren(children) {\n var n = 0;\n mapChildren(children, function () {\n n++; // Don't return anything\n });\n return n;\n}\n\n/**\n * Iterates through children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenforeach\n *\n * The provided forEachFunc(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} forEachFunc\n * @param {*} forEachContext Context for forEachContext.\n */\nfunction forEachChildren(children, forEachFunc, forEachContext) {\n mapChildren(children, function () {\n forEachFunc.apply(this, arguments); // Don't return anything.\n }, forEachContext);\n}\n/**\n * Flatten a children object (typically specified as `props.children`) and\n * return an array with appropriately re-keyed children.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrentoarray\n */\n\n\nfunction toArray(children) {\n return mapChildren(children, function (child) {\n return child;\n }) || [];\n}\n/**\n * Returns the first child in a collection of children and verifies that there\n * is only one child in the collection.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenonly\n *\n * The current implementation of this function assumes that a single child gets\n * passed without a wrapper, but the purpose of this helper function is to\n * abstract away the particular structure of children.\n *\n * @param {?object} children Child collection structure.\n * @return {ReactElement} The first and only `ReactElement` contained in the\n * structure.\n */\n\n\nfunction onlyChild(children) {\n if (!isValidElement(children)) {\n throw new Error('React.Children.only expected to receive a single React element child.');\n }\n\n return children;\n}\n\nfunction createContext(defaultValue) {\n // TODO: Second argument used to be an optional `calculateChangedBits`\n // function. Warn to reserve for future use?\n var context = {\n $$typeof: REACT_CONTEXT_TYPE,\n // As a workaround to support multiple concurrent renderers, we categorize\n // some renderers as primary and others as secondary. We only expect\n // there to be two concurrent renderers at most: React Native (primary) and\n // Fabric (secondary); React DOM (primary) and React ART (secondary).\n // Secondary renderers store their context values on separate fields.\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n // Used to track how many concurrent renderers this context currently\n // supports within in a single renderer. Such as parallel server rendering.\n _threadCount: 0,\n // These are circular\n Provider: null,\n Consumer: null,\n // Add these to use same hidden class in VM as ServerContext\n _defaultValue: null,\n _globalName: null\n };\n context.Provider = {\n $$typeof: REACT_PROVIDER_TYPE,\n _context: context\n };\n var hasWarnedAboutUsingNestedContextConsumers = false;\n var hasWarnedAboutUsingConsumerProvider = false;\n var hasWarnedAboutDisplayNameOnConsumer = false;\n\n {\n // A separate object, but proxies back to the original context object for\n // backwards compatibility. It has a different $$typeof, so we can properly\n // warn for the incorrect usage of Context as a Consumer.\n var Consumer = {\n $$typeof: REACT_CONTEXT_TYPE,\n _context: context\n }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here\n\n Object.defineProperties(Consumer, {\n Provider: {\n get: function () {\n if (!hasWarnedAboutUsingConsumerProvider) {\n hasWarnedAboutUsingConsumerProvider = true;\n\n error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');\n }\n\n return context.Provider;\n },\n set: function (_Provider) {\n context.Provider = _Provider;\n }\n },\n _currentValue: {\n get: function () {\n return context._currentValue;\n },\n set: function (_currentValue) {\n context._currentValue = _currentValue;\n }\n },\n _currentValue2: {\n get: function () {\n return context._currentValue2;\n },\n set: function (_currentValue2) {\n context._currentValue2 = _currentValue2;\n }\n },\n _threadCount: {\n get: function () {\n return context._threadCount;\n },\n set: function (_threadCount) {\n context._threadCount = _threadCount;\n }\n },\n Consumer: {\n get: function () {\n if (!hasWarnedAboutUsingNestedContextConsumers) {\n hasWarnedAboutUsingNestedContextConsumers = true;\n\n error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');\n }\n\n return context.Consumer;\n }\n },\n displayName: {\n get: function () {\n return context.displayName;\n },\n set: function (displayName) {\n if (!hasWarnedAboutDisplayNameOnConsumer) {\n warn('Setting `displayName` on Context.Consumer has no effect. ' + \"You should set it directly on the context with Context.displayName = '%s'.\", displayName);\n\n hasWarnedAboutDisplayNameOnConsumer = true;\n }\n }\n }\n }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty\n\n context.Consumer = Consumer;\n }\n\n {\n context._currentRenderer = null;\n context._currentRenderer2 = null;\n }\n\n return context;\n}\n\nvar Uninitialized = -1;\nvar Pending = 0;\nvar Resolved = 1;\nvar Rejected = 2;\n\nfunction lazyInitializer(payload) {\n if (payload._status === Uninitialized) {\n var ctor = payload._result;\n var thenable = ctor(); // Transition to the next state.\n // This might throw either because it's missing or throws. If so, we treat it\n // as still uninitialized and try again next time. Which is the same as what\n // happens if the ctor or any wrappers processing the ctor throws. This might\n // end up fixing it if the resolution was a concurrency bug.\n\n thenable.then(function (moduleObject) {\n if (payload._status === Pending || payload._status === Uninitialized) {\n // Transition to the next state.\n var resolved = payload;\n resolved._status = Resolved;\n resolved._result = moduleObject;\n }\n }, function (error) {\n if (payload._status === Pending || payload._status === Uninitialized) {\n // Transition to the next state.\n var rejected = payload;\n rejected._status = Rejected;\n rejected._result = error;\n }\n });\n\n if (payload._status === Uninitialized) {\n // In case, we're still uninitialized, then we're waiting for the thenable\n // to resolve. Set it as pending in the meantime.\n var pending = payload;\n pending._status = Pending;\n pending._result = thenable;\n }\n }\n\n if (payload._status === Resolved) {\n var moduleObject = payload._result;\n\n {\n if (moduleObject === undefined) {\n error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\\n\\nYour code should look like: \\n ' + // Break up imports to avoid accidentally parsing them as dependencies.\n 'const MyComponent = lazy(() => imp' + \"ort('./MyComponent'))\\n\\n\" + 'Did you accidentally put curly braces around the import?', moduleObject);\n }\n }\n\n {\n if (!('default' in moduleObject)) {\n error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\\n\\nYour code should look like: \\n ' + // Break up imports to avoid accidentally parsing them as dependencies.\n 'const MyComponent = lazy(() => imp' + \"ort('./MyComponent'))\", moduleObject);\n }\n }\n\n return moduleObject.default;\n } else {\n throw payload._result;\n }\n}\n\nfunction lazy(ctor) {\n var payload = {\n // We use these fields to store the result.\n _status: Uninitialized,\n _result: ctor\n };\n var lazyType = {\n $$typeof: REACT_LAZY_TYPE,\n _payload: payload,\n _init: lazyInitializer\n };\n\n {\n // In production, this would just set it on the object.\n var defaultProps;\n var propTypes; // $FlowFixMe\n\n Object.defineProperties(lazyType, {\n defaultProps: {\n configurable: true,\n get: function () {\n return defaultProps;\n },\n set: function (newDefaultProps) {\n error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n\n defaultProps = newDefaultProps; // Match production behavior more closely:\n // $FlowFixMe\n\n Object.defineProperty(lazyType, 'defaultProps', {\n enumerable: true\n });\n }\n },\n propTypes: {\n configurable: true,\n get: function () {\n return propTypes;\n },\n set: function (newPropTypes) {\n error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n\n propTypes = newPropTypes; // Match production behavior more closely:\n // $FlowFixMe\n\n Object.defineProperty(lazyType, 'propTypes', {\n enumerable: true\n });\n }\n }\n });\n }\n\n return lazyType;\n}\n\nfunction forwardRef(render) {\n {\n if (render != null && render.$$typeof === REACT_MEMO_TYPE) {\n error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');\n } else if (typeof render !== 'function') {\n error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);\n } else {\n if (render.length !== 0 && render.length !== 2) {\n error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');\n }\n }\n\n if (render != null) {\n if (render.defaultProps != null || render.propTypes != null) {\n error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');\n }\n }\n }\n\n var elementType = {\n $$typeof: REACT_FORWARD_REF_TYPE,\n render: render\n };\n\n {\n var ownName;\n Object.defineProperty(elementType, 'displayName', {\n enumerable: false,\n configurable: true,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name; // The inner component shouldn't inherit this display name in most cases,\n // because the component may be used elsewhere.\n // But it's nice for anonymous functions to inherit the name,\n // so that our component-stack generation logic will display their frames.\n // An anonymous function generally suggests a pattern like:\n // React.forwardRef((props, ref) => {...});\n // This kind of inner function is not used elsewhere so the side effect is okay.\n\n if (!render.name && !render.displayName) {\n render.displayName = name;\n }\n }\n });\n }\n\n return elementType;\n}\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction memo(type, compare) {\n {\n if (!isValidElementType(type)) {\n error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);\n }\n }\n\n var elementType = {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: compare === undefined ? null : compare\n };\n\n {\n var ownName;\n Object.defineProperty(elementType, 'displayName', {\n enumerable: false,\n configurable: true,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name; // The inner component shouldn't inherit this display name in most cases,\n // because the component may be used elsewhere.\n // But it's nice for anonymous functions to inherit the name,\n // so that our component-stack generation logic will display their frames.\n // An anonymous function generally suggests a pattern like:\n // React.memo((props) => {...});\n // This kind of inner function is not used elsewhere so the side effect is okay.\n\n if (!type.name && !type.displayName) {\n type.displayName = name;\n }\n }\n });\n }\n\n return elementType;\n}\n\nfunction resolveDispatcher() {\n var dispatcher = ReactCurrentDispatcher.current;\n\n {\n if (dispatcher === null) {\n error('Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for' + ' one of the following reasons:\\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\\n' + '2. You might be breaking the Rules of Hooks\\n' + '3. You might have more than one copy of React in the same app\\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');\n }\n } // Will result in a null access error if accessed outside render phase. We\n // intentionally don't throw our own error because this is in a hot path.\n // Also helps ensure this is inlined.\n\n\n return dispatcher;\n}\nfunction useContext(Context) {\n var dispatcher = resolveDispatcher();\n\n {\n // TODO: add a more generic warning for invalid values.\n if (Context._context !== undefined) {\n var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs\n // and nobody should be using this in existing code.\n\n if (realContext.Consumer === Context) {\n error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');\n } else if (realContext.Provider === Context) {\n error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');\n }\n }\n }\n\n return dispatcher.useContext(Context);\n}\nfunction useState(initialState) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useState(initialState);\n}\nfunction useReducer(reducer, initialArg, init) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useReducer(reducer, initialArg, init);\n}\nfunction useRef(initialValue) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useRef(initialValue);\n}\nfunction useEffect(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useEffect(create, deps);\n}\nfunction useInsertionEffect(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useInsertionEffect(create, deps);\n}\nfunction useLayoutEffect(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useLayoutEffect(create, deps);\n}\nfunction useCallback(callback, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useCallback(callback, deps);\n}\nfunction useMemo(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useMemo(create, deps);\n}\nfunction useImperativeHandle(ref, create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useImperativeHandle(ref, create, deps);\n}\nfunction useDebugValue(value, formatterFn) {\n {\n var dispatcher = resolveDispatcher();\n return dispatcher.useDebugValue(value, formatterFn);\n }\n}\nfunction useTransition() {\n var dispatcher = resolveDispatcher();\n return dispatcher.useTransition();\n}\nfunction useDeferredValue(value) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useDeferredValue(value);\n}\nfunction useId() {\n var dispatcher = resolveDispatcher();\n return dispatcher.useId();\n}\nfunction useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n}\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher$1.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('<anonymous>')) {\n _frame = _frame.replace('<anonymous>', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher$1.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n setExtraStackFrame(stack);\n } else {\n setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n\nfunction getDeclarationErrorAddendum() {\n if (ReactCurrentOwner.current) {\n var name = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n}\n\nfunction getSourceInfoErrorAddendumForProps(elementProps) {\n if (elementProps !== null && elementProps !== undefined) {\n return getSourceInfoErrorAddendum(elementProps.__source);\n }\n\n return '';\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n {\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\nfunction createElementWithValidation(type, props, children) {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendumForProps(props);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n {\n error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n }\n\n var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], type);\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n}\nvar didWarnAboutDeprecatedCreateFactory = false;\nfunction createFactoryWithValidation(type) {\n var validatedFactory = createElementWithValidation.bind(null, type);\n validatedFactory.type = type;\n\n {\n if (!didWarnAboutDeprecatedCreateFactory) {\n didWarnAboutDeprecatedCreateFactory = true;\n\n warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');\n } // Legacy hook: remove it\n\n\n Object.defineProperty(validatedFactory, 'type', {\n enumerable: false,\n get: function () {\n warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');\n\n Object.defineProperty(this, 'type', {\n value: type\n });\n return type;\n }\n });\n }\n\n return validatedFactory;\n}\nfunction cloneElementWithValidation(element, props, children) {\n var newElement = cloneElement.apply(this, arguments);\n\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], newElement.type);\n }\n\n validatePropTypes(newElement);\n return newElement;\n}\n\nfunction startTransition(scope, options) {\n var prevTransition = ReactCurrentBatchConfig.transition;\n ReactCurrentBatchConfig.transition = {};\n var currentTransition = ReactCurrentBatchConfig.transition;\n\n {\n ReactCurrentBatchConfig.transition._updatedFibers = new Set();\n }\n\n try {\n scope();\n } finally {\n ReactCurrentBatchConfig.transition = prevTransition;\n\n {\n if (prevTransition === null && currentTransition._updatedFibers) {\n var updatedFibersCount = currentTransition._updatedFibers.size;\n\n if (updatedFibersCount > 10) {\n warn('Detected a large number of updates inside startTransition. ' + 'If this is due to a subscription please re-write it to use React provided hooks. ' + 'Otherwise concurrent mode guarantees are off the table.');\n }\n\n currentTransition._updatedFibers.clear();\n }\n }\n }\n}\n\nvar didWarnAboutMessageChannel = false;\nvar enqueueTaskImpl = null;\nfunction enqueueTask(task) {\n if (enqueueTaskImpl === null) {\n try {\n // read require off the module object to get around the bundlers.\n // we don't want them to detect a require and bundle a Node polyfill.\n var requireString = ('require' + Math.random()).slice(0, 7);\n var nodeRequire = module && module[requireString]; // assuming we're in node, let's try to get node's\n // version of setImmediate, bypassing fake timers if any.\n\n enqueueTaskImpl = nodeRequire.call(module, 'timers').setImmediate;\n } catch (_err) {\n // we're in a browser\n // we can't use regular timers because they may still be faked\n // so we try MessageChannel+postMessage instead\n enqueueTaskImpl = function (callback) {\n {\n if (didWarnAboutMessageChannel === false) {\n didWarnAboutMessageChannel = true;\n\n if (typeof MessageChannel === 'undefined') {\n error('This browser does not have a MessageChannel implementation, ' + 'so enqueuing tasks via await act(async () => ...) will fail. ' + 'Please file an issue at https://github.com/facebook/react/issues ' + 'if you encounter this warning.');\n }\n }\n }\n\n var channel = new MessageChannel();\n channel.port1.onmessage = callback;\n channel.port2.postMessage(undefined);\n };\n }\n }\n\n return enqueueTaskImpl(task);\n}\n\nvar actScopeDepth = 0;\nvar didWarnNoAwaitAct = false;\nfunction act(callback) {\n {\n // `act` calls can be nested, so we track the depth. This represents the\n // number of `act` scopes on the stack.\n var prevActScopeDepth = actScopeDepth;\n actScopeDepth++;\n\n if (ReactCurrentActQueue.current === null) {\n // This is the outermost `act` scope. Initialize the queue. The reconciler\n // will detect the queue and use it instead of Scheduler.\n ReactCurrentActQueue.current = [];\n }\n\n var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;\n var result;\n\n try {\n // Used to reproduce behavior of `batchedUpdates` in legacy mode. Only\n // set to `true` while the given callback is executed, not for updates\n // triggered during an async event, because this is how the legacy\n // implementation of `act` behaved.\n ReactCurrentActQueue.isBatchingLegacy = true;\n result = callback(); // Replicate behavior of original `act` implementation in legacy mode,\n // which flushed updates immediately after the scope function exits, even\n // if it's an async function.\n\n if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {\n var queue = ReactCurrentActQueue.current;\n\n if (queue !== null) {\n ReactCurrentActQueue.didScheduleLegacyUpdate = false;\n flushActQueue(queue);\n }\n }\n } catch (error) {\n popActScope(prevActScopeDepth);\n throw error;\n } finally {\n ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;\n }\n\n if (result !== null && typeof result === 'object' && typeof result.then === 'function') {\n var thenableResult = result; // The callback is an async function (i.e. returned a promise). Wait\n // for it to resolve before exiting the current scope.\n\n var wasAwaited = false;\n var thenable = {\n then: function (resolve, reject) {\n wasAwaited = true;\n thenableResult.then(function (returnValue) {\n popActScope(prevActScopeDepth);\n\n if (actScopeDepth === 0) {\n // We've exited the outermost act scope. Recursively flush the\n // queue until there's no remaining work.\n recursivelyFlushAsyncActWork(returnValue, resolve, reject);\n } else {\n resolve(returnValue);\n }\n }, function (error) {\n // The callback threw an error.\n popActScope(prevActScopeDepth);\n reject(error);\n });\n }\n };\n\n {\n if (!didWarnNoAwaitAct && typeof Promise !== 'undefined') {\n // eslint-disable-next-line no-undef\n Promise.resolve().then(function () {}).then(function () {\n if (!wasAwaited) {\n didWarnNoAwaitAct = true;\n\n error('You called act(async () => ...) without await. ' + 'This could lead to unexpected testing behaviour, ' + 'interleaving multiple act calls and mixing their ' + 'scopes. ' + 'You should - await act(async () => ...);');\n }\n });\n }\n }\n\n return thenable;\n } else {\n var returnValue = result; // The callback is not an async function. Exit the current scope\n // immediately, without awaiting.\n\n popActScope(prevActScopeDepth);\n\n if (actScopeDepth === 0) {\n // Exiting the outermost act scope. Flush the queue.\n var _queue = ReactCurrentActQueue.current;\n\n if (_queue !== null) {\n flushActQueue(_queue);\n ReactCurrentActQueue.current = null;\n } // Return a thenable. If the user awaits it, we'll flush again in\n // case additional work was scheduled by a microtask.\n\n\n var _thenable = {\n then: function (resolve, reject) {\n // Confirm we haven't re-entered another `act` scope, in case\n // the user does something weird like await the thenable\n // multiple times.\n if (ReactCurrentActQueue.current === null) {\n // Recursively flush the queue until there's no remaining work.\n ReactCurrentActQueue.current = [];\n recursivelyFlushAsyncActWork(returnValue, resolve, reject);\n } else {\n resolve(returnValue);\n }\n }\n };\n return _thenable;\n } else {\n // Since we're inside a nested `act` scope, the returned thenable\n // immediately resolves. The outer scope will flush the queue.\n var _thenable2 = {\n then: function (resolve, reject) {\n resolve(returnValue);\n }\n };\n return _thenable2;\n }\n }\n }\n}\n\nfunction popActScope(prevActScopeDepth) {\n {\n if (prevActScopeDepth !== actScopeDepth - 1) {\n error('You seem to have overlapping act() calls, this is not supported. ' + 'Be sure to await previous act() calls before making a new one. ');\n }\n\n actScopeDepth = prevActScopeDepth;\n }\n}\n\nfunction recursivelyFlushAsyncActWork(returnValue, resolve, reject) {\n {\n var queue = ReactCurrentActQueue.current;\n\n if (queue !== null) {\n try {\n flushActQueue(queue);\n enqueueTask(function () {\n if (queue.length === 0) {\n // No additional work was scheduled. Finish.\n ReactCurrentActQueue.current = null;\n resolve(returnValue);\n } else {\n // Keep flushing work until there's none left.\n recursivelyFlushAsyncActWork(returnValue, resolve, reject);\n }\n });\n } catch (error) {\n reject(error);\n }\n } else {\n resolve(returnValue);\n }\n }\n}\n\nvar isFlushing = false;\n\nfunction flushActQueue(queue) {\n {\n if (!isFlushing) {\n // Prevent re-entrance.\n isFlushing = true;\n var i = 0;\n\n try {\n for (; i < queue.length; i++) {\n var callback = queue[i];\n\n do {\n callback = callback(true);\n } while (callback !== null);\n }\n\n queue.length = 0;\n } catch (error) {\n // If something throws, leave the remaining callbacks on the queue.\n queue = queue.slice(i + 1);\n throw error;\n } finally {\n isFlushing = false;\n }\n }\n }\n}\n\nvar createElement$1 = createElementWithValidation ;\nvar cloneElement$1 = cloneElementWithValidation ;\nvar createFactory = createFactoryWithValidation ;\nvar Children = {\n map: mapChildren,\n forEach: forEachChildren,\n count: countChildren,\n toArray: toArray,\n only: onlyChild\n};\n\nexports.Children = Children;\nexports.Component = Component;\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.Profiler = REACT_PROFILER_TYPE;\nexports.PureComponent = PureComponent;\nexports.StrictMode = REACT_STRICT_MODE_TYPE;\nexports.Suspense = REACT_SUSPENSE_TYPE;\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;\nexports.act = act;\nexports.cloneElement = cloneElement$1;\nexports.createContext = createContext;\nexports.createElement = createElement$1;\nexports.createFactory = createFactory;\nexports.createRef = createRef;\nexports.forwardRef = forwardRef;\nexports.isValidElement = isValidElement;\nexports.lazy = lazy;\nexports.memo = memo;\nexports.startTransition = startTransition;\nexports.unstable_act = act;\nexports.useCallback = useCallback;\nexports.useContext = useContext;\nexports.useDebugValue = useDebugValue;\nexports.useDeferredValue = useDeferredValue;\nexports.useEffect = useEffect;\nexports.useId = useId;\nexports.useImperativeHandle = useImperativeHandle;\nexports.useInsertionEffect = useInsertionEffect;\nexports.useLayoutEffect = useLayoutEffect;\nexports.useMemo = useMemo;\nexports.useReducer = useReducer;\nexports.useRef = useRef;\nexports.useState = useState;\nexports.useSyncExternalStore = useSyncExternalStore;\nexports.useTransition = useTransition;\nexports.version = ReactVersion;\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===\n 'function'\n) {\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());\n}\n \n })();\n}\n\n\n//# sourceURL=webpack://WordPress/./node_modules/react/cjs/react.development.js?");
+
+/***/ }),
+
+/***/ "./node_modules/react/index.js":
+/*!*************************************!*\
+ !*** ./node_modules/react/index.js ***!
+ \*************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
+
+eval("\n\nif (false) {} else {\n module.exports = __webpack_require__(/*! ./cjs/react.development.js */ \"./node_modules/react/cjs/react.development.js\");\n}\n\n\n//# sourceURL=webpack://WordPress/./node_modules/react/index.js?");
+
+/***/ })
+
+/******/ });
+/************************************************************************/
+/******/ // The module cache
+/******/ var __webpack_module_cache__ = {};
+/******/
+/******/ // The require function
+/******/ function __webpack_require__(moduleId) {
+/******/ // Check if module is in cache
+/******/ var cachedModule = __webpack_module_cache__[moduleId];
+/******/ if (cachedModule !== undefined) {
+/******/ return cachedModule.exports;
+/******/ }
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = __webpack_module_cache__[moduleId] = {
+/******/ id: moduleId,
+/******/ loaded: false,
+/******/ exports: {}
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.loaded = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/************************************************************************/
+/******/ /* webpack/runtime/node module decorator */
+/******/ (() => {
+/******/ __webpack_require__.nmd = (module) => {
+/******/ module.paths = [];
+/******/ if (!module.children) module.children = [];
+/******/ return module;
+/******/ };
+/******/ })();
+/******/
+/************************************************************************/
+/******/
+/******/ // startup
+/******/ // Load entry module and return exports
+/******/ // This entry module can't be inlined because the eval devtool is used.
+/******/ var __webpack_exports__ = __webpack_require__("./node_modules/react/index.js");
+/******/ window.React = __webpack_exports__;
+/******/
+/******/ })()
+; \ No newline at end of file
diff --git a/wp-includes/js/dist/vendor/react.min.js b/wp-includes/js/dist/vendor/react.min.js
index 3ffe17d..d54f932 100644
--- a/wp-includes/js/dist/vendor/react.min.js
+++ b/wp-includes/js/dist/vendor/react.min.js
@@ -1,10 +1,2 @@
-/**
- * @license React
- * react.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-!function(){"use strict";var e,t;e=this,t=function(e){function t(e,t,n){this.props=e,this.context=t,this.refs=L,this.updater=n||T}function n(){}function r(e,t,n){this.props=e,this.context=t,this.refs=L,this.updater=n||T}function o(e,t,n){var r,o={},u=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(u=""+t.key),t)D.call(t,r)&&!V.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(1===i)o.children=n;else if(1<i){for(var l=Array(i),c=0;c<i;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in i=e.defaultProps)void 0===o[r]&&(o[r]=i[r]);return{$$typeof:g,type:e,key:u,ref:a,props:o,_owner:U.current}}function u(e){return"object"==typeof e&&null!==e&&e.$$typeof===g}function a(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function i(e,t,n,r,o){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var c=!1;if(null===e)c=!0;else switch(l){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case g:case k:c=!0}}if(c)return o=o(c=e),e=""===r?"."+a(c,0):r,M(o)?(n="",null!=e&&(n=e.replace(q,"$&/")+"/"),i(o,t,n,"",(function(e){return e}))):null!=o&&(u(o)&&(o=function(e,t){return{$$typeof:g,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||c&&c.key===o.key?"":(""+o.key).replace(q,"$&/")+"/")+e)),t.push(o)),1;if(c=0,r=""===r?".":r+":",M(e))for(var f=0;f<e.length;f++){var s=r+a(l=e[f],f);c+=i(l,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=j&&e[j]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),f=0;!(l=e.next()).done;)c+=i(l=l.value,t,n,s=r+a(l,f++),o);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function l(e,t,n){if(null==e)return e;var r=[],o=0;return i(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function c(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}function f(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<y(o,t)))break e;e[r]=t,e[n]=o,n=r}}function s(e){return 0===e.length?null:e[0]}function p(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,u=o>>>1;r<u;){var a=2*(r+1)-1,i=e[a],l=a+1,c=e[l];if(0>y(i,n))l<o&&0>y(c,i)?(e[r]=c,e[l]=n,r=l):(e[r]=i,e[a]=n,r=a);else{if(!(l<o&&0>y(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function y(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}function d(e){for(var t=s(G);null!==t;){if(null===t.callback)p(G);else{if(!(t.startTime<=e))break;p(G),t.sortIndex=t.expirationTime,f(Y,t)}t=s(G)}}function b(e){if(ee=!1,d(e),!Z)if(null!==s(Y))Z=!0,_(v);else{var t=s(G);null!==t&&h(b,t.startTime-e)}}function v(e,t){Z=!1,ee&&(ee=!1,ne(ae),ae=-1),X=!0;var n=Q;try{for(d(t),K=s(Y);null!==K&&(!(K.expirationTime>t)||e&&!m());){var r=K.callback;if("function"==typeof r){K.callback=null,Q=K.priorityLevel;var o=r(K.expirationTime<=t);t=z(),"function"==typeof o?K.callback=o:K===s(Y)&&p(Y),d(t)}else p(Y);K=s(Y)}if(null!==K)var u=!0;else{var a=s(G);null!==a&&h(b,a.startTime-t),u=!1}return u}finally{K=null,Q=n,X=!1}}function m(){return!(z()-le<ie)}function _(e){ue=e,oe||(oe=!0,fe())}function h(e,t){ae=te((function(){e(z())}),t)}var g=Symbol.for("react.element"),k=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),E=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),$=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),j=Symbol.iterator,T={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){},enqueueReplaceState:function(e,t,n,r){},enqueueSetState:function(e,t,n,r){}},O=Object.assign,L={};t.prototype.isReactComponent={},t.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},t.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},n.prototype=t.prototype;var F=r.prototype=new n;F.constructor=r,O(F,t.prototype),F.isPureReactComponent=!0;var M=Array.isArray,D=Object.prototype.hasOwnProperty,U={current:null},V={key:!0,ref:!0,__self:!0,__source:!0},q=/\/+/g,A={current:null},N={transition:null};if("object"==typeof performance&&"function"==typeof performance.now)var B=performance,z=function(){return B.now()};else{var H=Date,W=H.now();z=function(){return H.now()-W}}var Y=[],G=[],J=1,K=null,Q=3,X=!1,Z=!1,ee=!1,te="function"==typeof setTimeout?setTimeout:null,ne="function"==typeof clearTimeout?clearTimeout:null,re="undefined"!=typeof setImmediate?setImmediate:null;"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var oe=!1,ue=null,ae=-1,ie=5,le=-1,ce=function(){if(null!==ue){var e=z();le=e;var t=!0;try{t=ue(!0,e)}finally{t?fe():(oe=!1,ue=null)}}else oe=!1};if("function"==typeof re)var fe=function(){re(ce)};else if("undefined"!=typeof MessageChannel){var se=(F=new MessageChannel).port2;F.port1.onmessage=ce,fe=function(){se.postMessage(null)}}else fe=function(){te(ce,0)};F={ReactCurrentDispatcher:A,ReactCurrentOwner:U,ReactCurrentBatchConfig:N,Scheduler:{__proto__:null,unstable_ImmediatePriority:1,unstable_UserBlockingPriority:2,unstable_NormalPriority:3,unstable_IdlePriority:5,unstable_LowPriority:4,unstable_runWithPriority:function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Q;Q=e;try{return t()}finally{Q=n}},unstable_next:function(e){switch(Q){case 1:case 2:case 3:var t=3;break;default:t=Q}var n=Q;Q=t;try{return e()}finally{Q=n}},unstable_scheduleCallback:function(e,t,n){var r=z();switch(n="object"==typeof n&&null!==n&&"number"==typeof(n=n.delay)&&0<n?r+n:r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return e={id:J++,callback:t,priorityLevel:e,startTime:n,expirationTime:o=n+o,sortIndex:-1},n>r?(e.sortIndex=n,f(G,e),null===s(Y)&&e===s(G)&&(ee?(ne(ae),ae=-1):ee=!0,h(b,n-r))):(e.sortIndex=o,f(Y,e),Z||X||(Z=!0,_(v))),e},unstable_cancelCallback:function(e){e.callback=null},unstable_wrapCallback:function(e){var t=Q;return function(){var n=Q;Q=t;try{return e.apply(this,arguments)}finally{Q=n}}},unstable_getCurrentPriorityLevel:function(){return Q},unstable_shouldYield:m,unstable_requestPaint:function(){},unstable_continueExecution:function(){Z||X||(Z=!0,_(v))},unstable_pauseExecution:function(){},unstable_getFirstCallbackNode:function(){return s(Y)},get unstable_now(){return z},unstable_forceFrameRate:function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<e?Math.floor(1e3/e):5},unstable_Profiling:null}},e.Children={map:l,forEach:function(e,t,n){l(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return l(e,(function(){t++})),t},toArray:function(e){return l(e,(function(e){return e}))||[]},only:function(e){if(!u(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},e.Component=t,e.Fragment=w,e.Profiler=x,e.PureComponent=r,e.StrictMode=S,e.Suspense=P,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,e.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=O({},e.props),o=e.key,u=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,a=U.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(l in t)D.call(t,l)&&!V.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==i?i[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){i=Array(l);for(var c=0;c<l;c++)i[c]=arguments[c+2];r.children=i}return{$$typeof:g,type:e.type,key:o,ref:u,props:r,_owner:a}},e.createContext=function(e){return(e={$$typeof:E,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:C,_context:e},e.Consumer=e},e.createElement=o,e.createFactory=function(e){var t=o.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:R,render:e}},e.isValidElement=u,e.lazy=function(e){return{$$typeof:I,_payload:{_status:-1,_result:e},_init:c}},e.memo=function(e,t){return{$$typeof:$,type:e,compare:void 0===t?null:t}},e.startTransition=function(e,t){t=N.transition,N.transition={};try{e()}finally{N.transition=t}},e.unstable_act=function(e){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(e,t){return A.current.useCallback(e,t)},e.useContext=function(e){return A.current.useContext(e)},e.useDebugValue=function(e,t){},e.useDeferredValue=function(e){return A.current.useDeferredValue(e)},e.useEffect=function(e,t){return A.current.useEffect(e,t)},e.useId=function(){return A.current.useId()},e.useImperativeHandle=function(e,t,n){return A.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return A.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return A.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return A.current.useMemo(e,t)},e.useReducer=function(e,t,n){return A.current.useReducer(e,t,n)},e.useRef=function(e){return A.current.useRef(e)},e.useState=function(e){return A.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return A.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return A.current.useTransition()},e.version="18.2.0"},"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).React={})}(); \ No newline at end of file
+/*! For license information please see react.min.js.LICENSE.txt */
+(()=>{"use strict";var e={287:(e,t)=>{var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),i=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator,d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,h={};function v(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}function m(){}function b(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=v.prototype;var S=b.prototype=new m;S.constructor=b,_(S,v.prototype),S.isPureReactComponent=!0;var w=Array.isArray,E=Object.prototype.hasOwnProperty,R={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,n){var o,u={},a=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,o)&&!$.hasOwnProperty(o)&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=n;else if(1<i){for(var f=Array(i),s=0;s<i;s++)f[s]=arguments[s+2];u.children=f}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===u[o]&&(u[o]=i[o]);return{$$typeof:r,type:e,key:a,ref:c,props:u,_owner:R.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var g=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function x(e,t,o,u,a){var c=typeof e;"undefined"!==c&&"boolean"!==c||(e=null);var i=!1;if(null===e)i=!0;else switch(c){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case r:case n:i=!0}}if(i)return a=a(i=e),e=""===u?"."+j(i,0):u,w(a)?(o="",null!=e&&(o=e.replace(g,"$&/")+"/"),x(a,t,o,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||i&&i.key===a.key?"":(""+a.key).replace(g,"$&/")+"/")+e)),t.push(a)),1;if(i=0,u=""===u?".":u+":",w(e))for(var f=0;f<e.length;f++){var s=u+j(c=e[f],f);i+=x(c,t,o,s,a)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=y&&e[y]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),f=0;!(c=e.next()).done;)i+=x(c=c.value,t,o,s=u+j(c,f++),a);else if("object"===c)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function O(e,t,r){if(null==e)return e;var n=[],o=0;return x(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},T={transition:null},V={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:T,ReactCurrentOwner:R};function A(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:O,forEach:function(e,t,r){O(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=u,t.Suspense=s,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,t.act=A,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=_({},e.props),u=e.key,a=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,c=R.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(f in t)E.call(t,f)&&!$.hasOwnProperty(f)&&(o[f]=void 0===t[f]&&void 0!==i?i[f]:t[f])}var f=arguments.length-2;if(1===f)o.children=n;else if(1<f){i=Array(f);for(var s=0;s<f;s++)i[s]=arguments[s+2];o.children=i}return{$$typeof:r,type:e.type,key:u,ref:a,props:o,_owner:c}},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},t.unstable_act=A,t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,r){return I.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,r){return I.current.useReducer(e,t,r)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return I.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return I.current.useTransition()},t.version="18.3.1"},540:(e,t,r)=>{e.exports=r(287)}},t={},r=function r(n){var o=t[n];if(void 0!==o)return o.exports;var u=t[n]={exports:{}};return e[n](u,u.exports,r),u.exports}(540);window.React=r})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/vendor/react.min.js.LICENSE.txt b/wp-includes/js/dist/vendor/react.min.js.LICENSE.txt
new file mode 100644
index 0000000..e932783
--- /dev/null
+++ b/wp-includes/js/dist/vendor/react.min.js.LICENSE.txt
@@ -0,0 +1,9 @@
+/**
+ * @license React
+ * react.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
diff --git a/wp-includes/js/dist/viewport.js b/wp-includes/js/dist/viewport.js
index 2ae7d9f..d224967 100644
--- a/wp-includes/js/dist/viewport.js
+++ b/wp-includes/js/dist/viewport.js
@@ -215,10 +215,9 @@ const addDimensionsEventListener = (breakpoints, operators) => {
};
/* harmony default export */ const listener = (addDimensionsEventListener);
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/with-viewport-match.js
-
/**
* WordPress dependencies
*/
@@ -247,6 +246,7 @@ const external_React_namespaceObject = window["React"];
*
* @return {Function} Higher-order component.
*/
+
const withViewportMatch = queries => {
const queryEntries = Object.entries(queries);
const useViewPortQueriesResult = () => Object.fromEntries(queryEntries.map(([key, query]) => {
@@ -264,7 +264,7 @@ const withViewportMatch = queries => {
return (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => {
return (0,external_wp_compose_namespaceObject.pure)(props => {
const queriesResult = useViewPortQueriesResult();
- return (0,external_React_namespaceObject.createElement)(WrappedComponent, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WrappedComponent, {
...props,
...queriesResult
});
diff --git a/wp-includes/js/dist/viewport.min.js b/wp-includes/js/dist/viewport.min.js
index b5d3910..7c1f216 100644
--- a/wp-includes/js/dist/viewport.min.js
+++ b/wp-includes/js/dist/viewport.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-(()=>{"use strict";var e={d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ifViewportMatches:()=>h,store:()=>d,withViewportMatch:()=>u});var r={};e.r(r),e.d(r,{setIsMatching:()=>a});var o={};e.r(o),e.d(o,{isViewportMatch:()=>s});const n=window.wp.compose,i=window.wp.data;const c=function(e={},t){return"SET_IS_MATCHING"===t.type?t.values:e};function a(e){return{type:"SET_IS_MATCHING",values:e}}function s(e,t){return-1===t.indexOf(" ")&&(t=">= "+t),!!e[t]}const d=(0,i.createReduxStore)("core/viewport",{reducer:c,actions:r,selectors:o});(0,i.register)(d);const p=(e,t)=>{const r=(0,n.debounce)((()=>{const e=Object.fromEntries(c.map((([e,t])=>[e,t.matches])));(0,i.dispatch)(d).setIsMatching(e)}),0,{leading:!0}),o=Object.entries(t),c=Object.entries(e).flatMap((([e,t])=>o.map((([o,n])=>{const i=window.matchMedia(`(${n}: ${t}px)`);return i.addEventListener("change",r),[`${o} ${e}`,i]}))));window.addEventListener("orientationchange",r),r(),r.flush()},w=window.React,u=e=>{const t=Object.entries(e);return(0,n.createHigherOrderComponent)((e=>(0,n.pure)((r=>{const o=Object.fromEntries(t.map((([e,t])=>{let[r,o]=t.split(" ");return void 0===o&&(o=r,r=">="),[e,(0,n.useViewportMatch)(o,r)]})));return(0,w.createElement)(e,{...r,...o})}))),"withViewportMatch")},h=e=>(0,n.createHigherOrderComponent)((0,n.compose)([u({isViewportMatch:e}),(0,n.ifCondition)((e=>e.isViewportMatch))]),"ifViewportMatches");p({huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},{"<":"max-width",">=":"min-width"}),(window.wp=window.wp||{}).viewport=t})(); \ No newline at end of file
+(()=>{"use strict";var e={d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ifViewportMatches:()=>h,store:()=>d,withViewportMatch:()=>u});var r={};e.r(r),e.d(r,{setIsMatching:()=>a});var o={};e.r(o),e.d(o,{isViewportMatch:()=>s});const i=window.wp.compose,n=window.wp.data;const c=function(e={},t){return"SET_IS_MATCHING"===t.type?t.values:e};function a(e){return{type:"SET_IS_MATCHING",values:e}}function s(e,t){return-1===t.indexOf(" ")&&(t=">= "+t),!!e[t]}const d=(0,n.createReduxStore)("core/viewport",{reducer:c,actions:r,selectors:o});(0,n.register)(d);const p=(e,t)=>{const r=(0,i.debounce)((()=>{const e=Object.fromEntries(c.map((([e,t])=>[e,t.matches])));(0,n.dispatch)(d).setIsMatching(e)}),0,{leading:!0}),o=Object.entries(t),c=Object.entries(e).flatMap((([e,t])=>o.map((([o,i])=>{const n=window.matchMedia(`(${i}: ${t}px)`);return n.addEventListener("change",r),[`${o} ${e}`,n]}))));window.addEventListener("orientationchange",r),r(),r.flush()},w=window.ReactJSXRuntime,u=e=>{const t=Object.entries(e);return(0,i.createHigherOrderComponent)((e=>(0,i.pure)((r=>{const o=Object.fromEntries(t.map((([e,t])=>{let[r,o]=t.split(" ");return void 0===o&&(o=r,r=">="),[e,(0,i.useViewportMatch)(o,r)]})));return(0,w.jsx)(e,{...r,...o})}))),"withViewportMatch")},h=e=>(0,i.createHigherOrderComponent)((0,i.compose)([u({isViewportMatch:e}),(0,i.ifCondition)((e=>e.isViewportMatch))]),"ifViewportMatches");p({huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},{"<":"max-width",">=":"min-width"}),(window.wp=window.wp||{}).viewport=t})(); \ No newline at end of file
diff --git a/wp-includes/js/dist/warning.js b/wp-includes/js/dist/warning.js
index 05a8617..aae1af5 100644
--- a/wp-includes/js/dist/warning.js
+++ b/wp-includes/js/dist/warning.js
@@ -44,7 +44,8 @@ const logged = new Set();
*/
function isDev() {
- return true && true === true;
+ // eslint-disable-next-line @wordpress/wp-global-usage
+ return true === true;
}
/**
diff --git a/wp-includes/js/dist/widgets.js b/wp-includes/js/dist/widgets.js
index 3224595..301ab51 100644
--- a/wp-includes/js/dist/widgets.js
+++ b/wp-includes/js/dist/widgets.js
@@ -1,97 +1,7 @@
/******/ (() => { // webpackBootstrap
-/******/ var __webpack_modules__ = ({
-
-/***/ 5755:
-/***/ ((module, exports) => {
-
-var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/
-/* global define */
-
-(function () {
- 'use strict';
-
- var hasOwn = {}.hasOwnProperty;
- var nativeCodeString = '[native code]';
-
- 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)) {
- if (arg.length) {
- var inner = classNames.apply(null, arg);
- if (inner) {
- classes.push(inner);
- }
- }
- } else if (argType === 'object') {
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
- classes.push(arg.toString());
- continue;
- }
-
- 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 {}
-}());
-
-
-/***/ })
-
-/******/ });
-/************************************************************************/
-/******/ // The module cache
-/******/ var __webpack_module_cache__ = {};
-/******/
-/******/ // The require function
-/******/ function __webpack_require__(moduleId) {
-/******/ // Check if module is in cache
-/******/ var cachedModule = __webpack_module_cache__[moduleId];
-/******/ if (cachedModule !== undefined) {
-/******/ return cachedModule.exports;
-/******/ }
-/******/ // Create a new module (and put it into the cache)
-/******/ var module = __webpack_module_cache__[moduleId] = {
-/******/ // no module.id needed
-/******/ // no module.loaded needed
-/******/ exports: {}
-/******/ };
-/******/
-/******/ // Execute the module function
-/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
-/******/
-/******/ // Return the exports of the module
-/******/ return module.exports;
-/******/ }
+/******/ "use strict";
+/******/ // The require scope
+/******/ var __webpack_require__ = {};
/******/
/************************************************************************/
/******/ /* webpack/runtime/compat get default export */
@@ -136,9 +46,6 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
/******/
/************************************************************************/
var __webpack_exports__ = {};
-// This entry need to be wrapped in an IIFE because it need to be in strict mode.
-(() => {
-"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
@@ -172,43 +79,44 @@ __webpack_require__.d(widget_group_namespaceObject, {
;// CONCATENATED MODULE: external ["wp","blocks"]
const external_wp_blocks_namespaceObject = window["wp"]["blocks"];
-;// CONCATENATED MODULE: external "React"
-const external_React_namespaceObject = window["React"];
;// CONCATENATED MODULE: external ["wp","primitives"]
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
+;// CONCATENATED MODULE: external "ReactJSXRuntime"
+const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/widget.js
-
/**
* WordPress dependencies
*/
-const widget = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const widget = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M6 3H8V5H16V3H18V5C19.1046 5 20 5.89543 20 7V19C20 20.1046 19.1046 21 18 21H6C4.89543 21 4 20.1046 4 19V7C4 5.89543 4.89543 5 6 5V3ZM18 6.5H6C5.72386 6.5 5.5 6.72386 5.5 7V8H18.5V7C18.5 6.72386 18.2761 6.5 18 6.5ZM18.5 9.5H5.5V19C5.5 19.2761 5.72386 19.5 6 19.5H18C18.2761 19.5 18.5 19.2761 18.5 19V9.5ZM11 11H13V13H11V11ZM7 11V13H9V11H7ZM15 13V11H17V13H15Z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M6 3H8V5H16V3H18V5C19.1046 5 20 5.89543 20 7V19C20 20.1046 19.1046 21 18 21H6C4.89543 21 4 20.1046 4 19V7C4 5.89543 4.89543 5 6 5V3ZM18 6.5H6C5.72386 6.5 5.5 6.72386 5.5 7V8H18.5V7C18.5 6.72386 18.2761 6.5 18 6.5ZM18.5 9.5H5.5V19C5.5 19.2761 5.72386 19.5 6 19.5H18C18.2761 19.5 18.5 19.2761 18.5 19V9.5ZM11 11H13V13H11V11ZM7 11V13H9V11H7ZM15 13V11H17V13H15Z"
+ })
+});
/* harmony default export */ const library_widget = (widget);
-// EXTERNAL MODULE: ./node_modules/classnames/index.js
-var classnames = __webpack_require__(5755);
-var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
+;// CONCATENATED MODULE: ./node_modules/clsx/dist/clsx.mjs
+function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
;// CONCATENATED MODULE: external ["wp","blockEditor"]
const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
;// CONCATENATED MODULE: external ["wp","components"]
const external_wp_components_namespaceObject = window["wp"]["components"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/brush.js
-
/**
* WordPress dependencies
*/
-const brush = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const brush = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"
+ })
+});
/* harmony default export */ const library_brush = (brush);
;// CONCATENATED MODULE: external ["wp","i18n"]
@@ -220,7 +128,6 @@ const external_wp_data_namespaceObject = window["wp"]["data"];
;// CONCATENATED MODULE: external ["wp","coreData"]
const external_wp_coreData_namespaceObject = window["wp"]["coreData"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/edit/widget-type-selector.js
-
/**
* WordPress dependencies
*/
@@ -229,6 +136,7 @@ const external_wp_coreData_namespaceObject = window["wp"]["coreData"];
+
function WidgetTypeSelector({
selectedId,
onSelect
@@ -241,12 +149,12 @@ function WidgetTypeSelector({
})?.filter(widgetType => !hiddenIds.includes(widgetType.id));
}, []);
if (!widgetTypes) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null);
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {});
}
if (widgetTypes.length === 0) {
return (0,external_wp_i18n_namespaceObject.__)('There are no widgets available.');
}
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
__nextHasNoMarginBottom: true,
label: (0,external_wp_i18n_namespaceObject.__)('Select a legacy widget to display:'),
value: selectedId !== null && selectedId !== void 0 ? selectedId : '',
@@ -275,15 +183,20 @@ function WidgetTypeSelector({
;// CONCATENATED MODULE: ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/edit/inspector-card.js
+
function InspectorCard({
name,
description
}) {
- return (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-legacy-widget-inspector-card"
- }, (0,external_React_namespaceObject.createElement)("h3", {
- className: "wp-block-legacy-widget-inspector-card__name"
- }, name), (0,external_React_namespaceObject.createElement)("span", null, description));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "wp-block-legacy-widget-inspector-card",
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h3", {
+ className: "wp-block-legacy-widget-inspector-card__name",
+ children: name
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
+ children: description
+ })]
+ });
}
;// CONCATENATED MODULE: external ["wp","notices"]
@@ -704,7 +617,6 @@ function serializeForm(form) {
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/edit/form.js
-
/**
* External dependencies
*/
@@ -722,6 +634,8 @@ function serializeForm(form) {
* Internal dependencies
*/
+
+
function Form({
title,
isVisible,
@@ -775,36 +689,40 @@ function Form({
};
}, [id, idBase, instance, onChangeInstance, onChangeHasPreview, isMediumLargeViewport]);
if (isWide && isMediumLargeViewport) {
- return (0,external_React_namespaceObject.createElement)("div", {
- className: classnames_default()({
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: dist_clsx({
'wp-block-legacy-widget__container': isVisible
- })
- }, isVisible && (0,external_React_namespaceObject.createElement)("h3", {
- className: "wp-block-legacy-widget__edit-form-title"
- }, title), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Popover, {
- focusOnMount: false,
- placement: "right",
- offset: 32,
- resize: false,
- flip: false,
- shift: true
- }, (0,external_React_namespaceObject.createElement)("div", {
- ref: ref,
- className: "wp-block-legacy-widget__edit-form",
- hidden: !isVisible
- })));
+ }),
+ children: [isVisible && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h3", {
+ className: "wp-block-legacy-widget__edit-form-title",
+ children: title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover, {
+ focusOnMount: false,
+ placement: "right",
+ offset: 32,
+ resize: false,
+ flip: false,
+ shift: true,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ref: ref,
+ className: "wp-block-legacy-widget__edit-form",
+ hidden: !isVisible
+ })
+ })]
+ });
}
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
ref: ref,
className: "wp-block-legacy-widget__edit-form",
- hidden: !isVisible
- }, (0,external_React_namespaceObject.createElement)("h3", {
- className: "wp-block-legacy-widget__edit-form-title"
- }, title));
+ hidden: !isVisible,
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h3", {
+ className: "wp-block-legacy-widget__edit-form-title",
+ children: title
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/edit/preview.js
-
/**
* External dependencies
*/
@@ -818,6 +736,9 @@ function Form({
+
+
+
function Preview({
idBase,
instance,
@@ -891,44 +812,56 @@ function Preview({
iframe.removeEventListener('load', setHeight);
};
}, [isLoaded]);
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, isVisible && !isLoaded && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null)), (0,external_React_namespaceObject.createElement)("div", {
- className: classnames_default()('wp-block-legacy-widget__edit-preview', {
- 'is-offscreen': !isVisible || !isLoaded
- })
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Disabled, null, (0,external_React_namespaceObject.createElement)("iframe", {
- ref: ref,
- className: "wp-block-legacy-widget__edit-preview-iframe",
- tabIndex: "-1",
- title: (0,external_wp_i18n_namespaceObject.__)('Legacy Widget Preview'),
- srcDoc: srcDoc,
- onLoad: event => {
- // To hide the scrollbars of the preview frame for some edge cases,
- // such as negative margins in the Gallery Legacy Widget.
- // It can't be scrolled anyway.
- // TODO: Ideally, this should be fixed in core.
- event.target.contentDocument.body.style.overflow = 'hidden';
- setIsLoaded(true);
- },
- height: 100
- }))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [isVisible && !isLoaded && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: dist_clsx('wp-block-legacy-widget__edit-preview', {
+ 'is-offscreen': !isVisible || !isLoaded
+ }),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Disabled, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("iframe", {
+ ref: ref,
+ className: "wp-block-legacy-widget__edit-preview-iframe",
+ tabIndex: "-1",
+ title: (0,external_wp_i18n_namespaceObject.__)('Legacy Widget Preview'),
+ srcDoc: srcDoc,
+ onLoad: event => {
+ // To hide the scrollbars of the preview frame for some edge cases,
+ // such as negative margins in the Gallery Legacy Widget.
+ // It can't be scrolled anyway.
+ // TODO: Ideally, this should be fixed in core.
+ event.target.contentDocument.body.style.overflow = 'hidden';
+ setIsLoaded(true);
+ },
+ height: 100
+ })
+ })
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/edit/no-preview.js
-
/**
* WordPress dependencies
*/
+
+
function NoPreview({
name
}) {
- return (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-block-legacy-widget__edit-no-preview"
- }, name && (0,external_React_namespaceObject.createElement)("h3", null, name), (0,external_React_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('No preview available.')));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
+ className: "wp-block-legacy-widget__edit-no-preview",
+ children: [name && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h3", {
+ children: name
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
+ children: (0,external_wp_i18n_namespaceObject.__)('No preview available.')
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/edit/convert-to-blocks-button.js
-
/**
* WordPress dependencies
*/
@@ -937,6 +870,7 @@ function NoPreview({
+
function ConvertToBlocksButton({
clientId,
rawInstance
@@ -944,7 +878,7 @@ function ConvertToBlocksButton({
const {
replaceBlocks
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
onClick: () => {
if (rawInstance.title) {
replaceBlocks(clientId, [(0,external_wp_blocks_namespaceObject.createBlock)('core/heading', {
@@ -957,12 +891,12 @@ function ConvertToBlocksButton({
HTML: rawInstance.text
}));
}
- }
- }, (0,external_wp_i18n_namespaceObject.__)('Convert to blocks'));
+ },
+ children: (0,external_wp_i18n_namespaceObject.__)('Convert to blocks')
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/edit/index.js
-
/**
* External dependencies
*/
@@ -988,6 +922,9 @@ function ConvertToBlocksButton({
+
+
+
function Edit(props) {
const {
id,
@@ -997,17 +934,18 @@ function Edit(props) {
isWide = false
} = props;
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
- className: classnames_default()({
+ className: dist_clsx({
'is-wide-widget': isWide
})
});
- return (0,external_React_namespaceObject.createElement)("div", {
- ...blockProps
- }, !id && !idBase ? (0,external_React_namespaceObject.createElement)(Empty, {
- ...props
- }) : (0,external_React_namespaceObject.createElement)(NotEmpty, {
- ...props
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ ...blockProps,
+ children: !id && !idBase ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Empty, {
+ ...props
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NotEmpty, {
+ ...props
+ })
+ });
}
function Empty({
attributes: {
@@ -1016,38 +954,43 @@ function Empty({
},
setAttributes
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- icon: (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
icon: library_brush
}),
- label: (0,external_wp_i18n_namespaceObject.__)('Legacy Widget')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Flex, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexBlock, null, (0,external_React_namespaceObject.createElement)(WidgetTypeSelector, {
- selectedId: id !== null && id !== void 0 ? id : idBase,
- onSelect: ({
- selectedId,
- isMulti
- }) => {
- if (!selectedId) {
- setAttributes({
- id: null,
- idBase: null,
- instance: null
- });
- } else if (isMulti) {
- setAttributes({
- id: null,
- idBase: selectedId,
- instance: {}
- });
- } else {
- setAttributes({
- id: selectedId,
- idBase: null,
- instance: null
- });
- }
- }
- }))));
+ label: (0,external_wp_i18n_namespaceObject.__)('Legacy Widget'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Flex, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexBlock, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WidgetTypeSelector, {
+ selectedId: id !== null && id !== void 0 ? id : idBase,
+ onSelect: ({
+ selectedId,
+ isMulti
+ }) => {
+ if (!selectedId) {
+ setAttributes({
+ id: null,
+ idBase: null,
+ instance: null
+ });
+ } else if (isMulti) {
+ setAttributes({
+ id: null,
+ idBase: selectedId,
+ instance: {}
+ });
+ } else {
+ setAttributes({
+ id: selectedId,
+ idBase: null,
+ instance: null
+ });
+ }
+ }
+ })
+ })
+ })
+ });
}
function NotEmpty({
attributes: {
@@ -1073,41 +1016,53 @@ function NotEmpty({
});
}, []);
if (!widgetType && hasResolvedWidgetType) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- icon: (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
icon: library_brush
}),
- label: (0,external_wp_i18n_namespaceObject.__)('Legacy Widget')
- }, (0,external_wp_i18n_namespaceObject.__)('Widget is missing.'));
+ label: (0,external_wp_i18n_namespaceObject.__)('Legacy Widget'),
+ children: (0,external_wp_i18n_namespaceObject.__)('Widget is missing.')
+ });
}
if (!hasResolvedWidgetType) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
+ });
}
const mode = idBase && (isNavigationMode || !isSelected) ? 'preview' : 'edit';
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, idBase === 'text' && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
- group: "other"
- }, (0,external_React_namespaceObject.createElement)(ConvertToBlocksButton, {
- clientId: clientId,
- rawInstance: instance.raw
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(InspectorCard, {
- name: widgetType.name,
- description: widgetType.description
- })), (0,external_React_namespaceObject.createElement)(Form, {
- title: widgetType.name,
- isVisible: mode === 'edit',
- id: id,
- idBase: idBase,
- instance: instance,
- isWide: isWide,
- onChangeInstance: setInstance,
- onChangeHasPreview: setHasPreview
- }), idBase && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, hasPreview === null && mode === 'preview' && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null)), hasPreview === true && (0,external_React_namespaceObject.createElement)(Preview, {
- idBase: idBase,
- instance: instance,
- isVisible: mode === 'preview'
- }), hasPreview === false && mode === 'preview' && (0,external_React_namespaceObject.createElement)(NoPreview, {
- name: widgetType.name
- })));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [idBase === 'text' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
+ group: "other",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ConvertToBlocksButton, {
+ clientId: clientId,
+ rawInstance: instance.raw
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InspectorCard, {
+ name: widgetType.name,
+ description: widgetType.description
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Form, {
+ title: widgetType.name,
+ isVisible: mode === 'edit',
+ id: id,
+ idBase: idBase,
+ instance: instance,
+ isWide: isWide,
+ onChangeInstance: setInstance,
+ onChangeHasPreview: setHasPreview
+ }), idBase && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [hasPreview === null && mode === 'preview' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
+ }), hasPreview === true && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Preview, {
+ idBase: idBase,
+ instance: instance,
+ isVisible: mode === 'preview'
+ }), hasPreview === false && mode === 'preview' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NoPreview, {
+ name: widgetType.name
+ })]
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/transforms.js
@@ -1373,21 +1328,21 @@ const settings = {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/group.js
-
/**
* WordPress dependencies
*/
-const group = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const group = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.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"
-}));
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.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"
+ })
+});
/* harmony default export */ const library_group = (group);
;// CONCATENATED MODULE: ./node_modules/@wordpress/widgets/build-module/blocks/widget-group/edit.js
-
/**
* WordPress dependencies
*/
@@ -1396,6 +1351,9 @@ const group = (0,external_React_namespaceObject.createElement)(external_wp_primi
+
+
+
function edit_Edit(props) {
const {
clientId
@@ -1403,72 +1361,86 @@ function edit_Edit(props) {
const {
innerBlocks
} = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).getBlock(clientId), [clientId]);
- return (0,external_React_namespaceObject.createElement)("div", {
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
...(0,external_wp_blockEditor_namespaceObject.useBlockProps)({
className: 'widget'
+ }),
+ children: innerBlocks.length === 0 ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PlaceholderContent, {
+ ...props
+ }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreviewContent, {
+ ...props
})
- }, innerBlocks.length === 0 ? (0,external_React_namespaceObject.createElement)(PlaceholderContent, {
- ...props
- }) : (0,external_React_namespaceObject.createElement)(PreviewContent, {
- ...props
- }));
+ });
}
function PlaceholderContent({
clientId
}) {
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, {
- className: "wp-block-widget-group__placeholder",
- icon: (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
- icon: library_group
- }),
- label: (0,external_wp_i18n_namespaceObject.__)('Widget Group')
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.ButtonBlockAppender, {
- rootClientId: clientId
- })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks, {
- renderAppender: false
- }));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
+ className: "wp-block-widget-group__placeholder",
+ icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
+ icon: library_group
+ }),
+ label: (0,external_wp_i18n_namespaceObject.__)('Widget Group'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.ButtonBlockAppender, {
+ rootClientId: clientId
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks, {
+ renderAppender: false
+ })]
+ });
}
function PreviewContent({
attributes,
setAttributes
}) {
var _attributes$title;
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
- tagName: "h2",
- className: "widget-title",
- allowedFormats: [],
- placeholder: (0,external_wp_i18n_namespaceObject.__)('Title'),
- value: (_attributes$title = attributes.title) !== null && _attributes$title !== void 0 ? _attributes$title : '',
- onChange: title => setAttributes({
- title
- })
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks, null));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText, {
+ tagName: "h2",
+ identifier: "title",
+ className: "widget-title",
+ allowedFormats: [],
+ placeholder: (0,external_wp_i18n_namespaceObject.__)('Title'),
+ value: (_attributes$title = attributes.title) !== null && _attributes$title !== void 0 ? _attributes$title : '',
+ onChange: title => setAttributes({
+ title
+ })
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks, {})]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/widgets/build-module/blocks/widget-group/save.js
-
/**
* WordPress dependencies
*/
+
+
+
function save({
attributes
}) {
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "h2",
- className: "widget-title",
- value: attributes.title
- }), (0,external_React_namespaceObject.createElement)("div", {
- className: "wp-widget-group__inner-blocks"
- }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "h2",
+ className: "widget-title",
+ value: attributes.title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
+ className: "wp-widget-group__inner-blocks",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
+ })]
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/widgets/build-module/blocks/widget-group/deprecated.js
-
/**
* WordPress dependencies
*/
+
+
+
const v1 = {
attributes: {
title: {
@@ -1484,11 +1456,13 @@ const v1 = {
save({
attributes
}) {
- return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
- tagName: "h2",
- className: "widget-title",
- value: attributes.title
- }), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
+ children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ tagName: "h2",
+ className: "widget-title",
+ value: attributes.title
+ }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})]
+ });
}
};
/* harmony default export */ const deprecated = ([v1]);
@@ -1508,6 +1482,7 @@ const widget_group_metadata = {
$schema: "https://schemas.wp.org/trunk/block.json",
apiVersion: 3,
name: "core/widget-group",
+ title: "Widget Group",
category: "widgets",
attributes: {
title: {
@@ -1573,52 +1548,59 @@ const widget_group_settings = {
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/move-to.js
-
/**
* WordPress dependencies
*/
-const moveTo = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
+
+const moveTo = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
- d: "M19.75 9c0-1.257-.565-2.197-1.39-2.858-.797-.64-1.827-1.017-2.815-1.247-1.802-.42-3.703-.403-4.383-.396L11 4.5V6l.177-.001c.696-.006 2.416-.02 4.028.356.887.207 1.67.518 2.216.957.52.416.829.945.829 1.688 0 .592-.167.966-.407 1.23-.255.281-.656.508-1.236.674-1.19.34-2.82.346-4.607.346h-.077c-1.692 0-3.527 0-4.942.404-.732.209-1.424.545-1.935 1.108-.526.579-.796 1.33-.796 2.238 0 1.257.565 2.197 1.39 2.858.797.64 1.827 1.017 2.815 1.247 1.802.42 3.703.403 4.383.396L13 19.5h.714V22L18 18.5 13.714 15v3H13l-.177.001c-.696.006-2.416.02-4.028-.356-.887-.207-1.67-.518-2.216-.957-.52-.416-.829-.945-.829-1.688 0-.592.167-.966.407-1.23.255-.281.656-.508 1.237-.674 1.189-.34 2.819-.346 4.606-.346h.077c1.692 0 3.527 0 4.941-.404.732-.209 1.425-.545 1.936-1.108.526-.579.796-1.33.796-2.238z"
-}));
+ viewBox: "0 0 24 24",
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
+ d: "M19.75 9c0-1.257-.565-2.197-1.39-2.858-.797-.64-1.827-1.017-2.815-1.247-1.802-.42-3.703-.403-4.383-.396L11 4.5V6l.177-.001c.696-.006 2.416-.02 4.028.356.887.207 1.67.518 2.216.957.52.416.829.945.829 1.688 0 .592-.167.966-.407 1.23-.255.281-.656.508-1.236.674-1.19.34-2.82.346-4.607.346h-.077c-1.692 0-3.527 0-4.942.404-.732.209-1.424.545-1.935 1.108-.526.579-.796 1.33-.796 2.238 0 1.257.565 2.197 1.39 2.858.797.64 1.827 1.017 2.815 1.247 1.802.42 3.703.403 4.383.396L13 19.5h.714V22L18 18.5 13.714 15v3H13l-.177.001c-.696.006-2.416.02-4.028-.356-.887-.207-1.67-.518-2.216-.957-.52-.416-.829-.945-.829-1.688 0-.592.167-.966.407-1.23.255-.281.656-.508 1.237-.674 1.189-.34 2.819-.346 4.606-.346h.077c1.692 0 3.527 0 4.941-.404.732-.209 1.425-.545 1.936-1.108.526-.579.796-1.33.796-2.238z"
+ })
+});
/* harmony default export */ const move_to = (moveTo);
;// CONCATENATED MODULE: ./node_modules/@wordpress/widgets/build-module/components/move-to-widget-area/index.js
-
/**
* WordPress dependencies
*/
+
function MoveToWidgetArea({
currentWidgetAreaId,
widgetAreas,
onSelect
}) {
- return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarItem, null, toggleProps => (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
- icon: move_to,
- label: (0,external_wp_i18n_namespaceObject.__)('Move to widget area'),
- toggleProps: toggleProps
- }, ({
- onClose
- }) => (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
- label: (0,external_wp_i18n_namespaceObject.__)('Move to')
- }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItemsChoice, {
- choices: widgetAreas.map(widgetArea => ({
- value: widgetArea.id,
- label: widgetArea.name,
- info: widgetArea.description
- })),
- value: currentWidgetAreaId,
- onSelect: value => {
- onSelect(value);
- onClose();
- }
- })))));
+ return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
+ children: toggleProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
+ icon: move_to,
+ label: (0,external_wp_i18n_namespaceObject.__)('Move to widget area'),
+ toggleProps: toggleProps,
+ children: ({
+ onClose
+ }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
+ label: (0,external_wp_i18n_namespaceObject.__)('Move to'),
+ children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItemsChoice, {
+ choices: widgetAreas.map(widgetArea => ({
+ value: widgetArea.id,
+ label: widgetArea.name,
+ info: widgetArea.description
+ })),
+ value: currentWidgetAreaId,
+ onSelect: value => {
+ onSelect(value);
+ onClose();
+ }
+ })
+ })
+ })
+ })
+ });
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/widgets/build-module/components/index.js
@@ -1755,8 +1737,6 @@ function registerWidgetGroupBlock(supports = {}) {
}
-})();
-
(window.wp = window.wp || {}).widgets = __webpack_exports__;
/******/ })()
; \ No newline at end of file
diff --git a/wp-includes/js/dist/widgets.min.js b/wp-includes/js/dist/widgets.min.js
index 22c3ab6..a8d30ff 100644
--- a/wp-includes/js/dist/widgets.min.js
+++ b/wp-includes/js/dist/widgets.min.js
@@ -1,7 +1,2 @@
/*! This file is auto-generated */
-(()=>{var e={5755:(e,t)=>{var n;
-/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
-*/!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var o=r.apply(null,n);o&&e.push(o)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)i.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{"use strict";n.r(i),n.d(i,{MoveToWidgetArea:()=>X,addWidgetIdToBlock:()=>K,getWidgetIdFromBlock:()=>q,registerLegacyWidgetBlock:()=>ee,registerLegacyWidgetVariations:()=>Y,registerWidgetGroupBlock:()=>te});var e={};n.r(e),n.d(e,{metadata:()=>W,name:()=>j,settings:()=>O});var t={};n.r(t),n.d(t,{metadata:()=>Q,name:()=>Z,settings:()=>U});const r=window.wp.blocks,a=window.React,o=window.wp.primitives,s=(0,a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(o.Path,{d:"M6 3H8V5H16V3H18V5C19.1046 5 20 5.89543 20 7V19C20 20.1046 19.1046 21 18 21H6C4.89543 21 4 20.1046 4 19V7C4 5.89543 4.89543 5 6 5V3ZM18 6.5H6C5.72386 6.5 5.5 6.72386 5.5 7V8H18.5V7C18.5 6.72386 18.2761 6.5 18 6.5ZM18.5 9.5H5.5V19C5.5 19.2761 5.72386 19.5 6 19.5H18C18.2761 19.5 18.5 19.2761 18.5 19V9.5ZM11 11H13V13H11V11ZM7 11V13H9V11H7ZM15 13V11H17V13H15Z"}));var l=n(5755),c=n.n(l);const d=window.wp.blockEditor,m=window.wp.components,u=(0,a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(o.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"})),h=window.wp.i18n,w=window.wp.element,g=window.wp.data,p=window.wp.coreData;function f({selectedId:e,onSelect:t}){const n=(0,g.useSelect)((e=>{var t;const n=null!==(t=e(d.store).getSettings()?.widgetTypesToHideFromLegacyWidgetBlock)&&void 0!==t?t:[];return e(p.store).getWidgetTypes({per_page:-1})?.filter((e=>!n.includes(e.id)))}),[]);return n?0===n.length?(0,h.__)("There are no widgets available."):(0,a.createElement)(m.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,h.__)("Select a legacy widget to display:"),value:null!=e?e:"",options:[{value:"",label:(0,h.__)("Select widget")},...n.map((e=>({value:e.id,label:e.name})))],onChange:e=>{if(e){const i=n.find((t=>t.id===e));t({selectedId:i.id,isMulti:i.is_multi})}else t({selectedId:null})}}):(0,a.createElement)(m.Spinner,null)}function v({name:e,description:t}){return(0,a.createElement)("div",{className:"wp-block-legacy-widget-inspector-card"},(0,a.createElement)("h3",{className:"wp-block-legacy-widget-inspector-card__name"},e),(0,a.createElement)("span",null,t))}const b=window.wp.notices,y=window.wp.compose,E=window.wp.apiFetch;var _=n.n(E);class k{constructor({id:e,idBase:t,instance:n,onChangeInstance:i,onChangeHasPreview:r,onError:a}){this.id=e,this.idBase=t,this._instance=n,this._hasPreview=null,this.onChangeInstance=i,this.onChangeHasPreview=r,this.onError=a,this.number=++B,this.handleFormChange=(0,y.debounce)(this.handleFormChange.bind(this),200),this.handleFormSubmit=this.handleFormSubmit.bind(this),this.initDOM(),this.bindEvents(),this.loadContent()}destroy(){this.unbindEvents(),this.element.remove()}initDOM(){var e,t;this.element=C("div",{class:"widget open"},[C("div",{class:"widget-inside"},[this.form=C("form",{class:"form",method:"post"},[C("input",{class:"widget-id",type:"hidden",name:"widget-id",value:null!==(e=this.id)&&void 0!==e?e:`${this.idBase}-${this.number}`}),C("input",{class:"id_base",type:"hidden",name:"id_base",value:null!==(t=this.idBase)&&void 0!==t?t:this.id}),C("input",{class:"widget-width",type:"hidden",name:"widget-width",value:"250"}),C("input",{class:"widget-height",type:"hidden",name:"widget-height",value:"200"}),C("input",{class:"widget_number",type:"hidden",name:"widget_number",value:this.idBase?this.number.toString():""}),this.content=C("div",{class:"widget-content"}),this.id&&C("button",{class:"button is-primary",type:"submit"},(0,h.__)("Save"))])])])}bindEvents(){if(window.jQuery){const{jQuery:e}=window;e(this.form).on("change",null,this.handleFormChange),e(this.form).on("input",null,this.handleFormChange),e(this.form).on("submit",this.handleFormSubmit)}else this.form.addEventListener("change",this.handleFormChange),this.form.addEventListener("input",this.handleFormChange),this.form.addEventListener("submit",this.handleFormSubmit)}unbindEvents(){if(window.jQuery){const{jQuery:e}=window;e(this.form).off("change",null,this.handleFormChange),e(this.form).off("input",null,this.handleFormChange),e(this.form).off("submit",this.handleFormSubmit)}else this.form.removeEventListener("change",this.handleFormChange),this.form.removeEventListener("input",this.handleFormChange),this.form.removeEventListener("submit",this.handleFormSubmit)}async loadContent(){try{if(this.id){const{form:e}=await S(this.id);this.content.innerHTML=e}else if(this.idBase){const{form:e,preview:t}=await T({idBase:this.idBase,instance:this.instance,number:this.number});if(this.content.innerHTML=e,this.hasPreview=!M(t),!this.instance.hash){const{instance:e}=await T({idBase:this.idBase,instance:this.instance,number:this.number,formData:I(this.form)});this.instance=e}}if(window.jQuery){const{jQuery:e}=window;e(document).trigger("widget-added",[e(this.element)])}}catch(e){this.onError(e)}}handleFormChange(){this.idBase&&this.saveForm()}handleFormSubmit(e){e.preventDefault(),this.saveForm()}async saveForm(){const e=I(this.form);try{if(this.id){const{form:t}=await S(this.id,e);if(this.content.innerHTML=t,window.jQuery){const{jQuery:e}=window;e(document).trigger("widget-updated",[e(this.element)])}}else if(this.idBase){const{instance:t,preview:n}=await T({idBase:this.idBase,instance:this.instance,number:this.number,formData:e});this.instance=t,this.hasPreview=!M(n)}}catch(e){this.onError(e)}}get instance(){return this._instance}set instance(e){this._instance!==e&&(this._instance=e,this.onChangeInstance(e))}get hasPreview(){return this._hasPreview}set hasPreview(e){this._hasPreview!==e&&(this._hasPreview=e,this.onChangeHasPreview(e))}}let B=0;function C(e,t={},n=null){const i=document.createElement(e);for(const[e,n]of Object.entries(t))i.setAttribute(e,n);if(Array.isArray(n))for(const e of n)e&&i.appendChild(e);else"string"==typeof n&&(i.innerText=n);return i}async function S(e,t=null){let n;return n=t?await _()({path:`/wp/v2/widgets/${e}?context=edit`,method:"PUT",data:{form_data:t}}):await _()({path:`/wp/v2/widgets/${e}?context=edit`,method:"GET"}),{form:n.rendered_form}}async function T({idBase:e,instance:t,number:n,formData:i=null}){const r=await _()({path:`/wp/v2/widget-types/${e}/encode`,method:"POST",data:{instance:t,number:n,form_data:i}});return{instance:r.instance,form:r.form,preview:r.preview}}function M(e){const t=document.createElement("div");return t.innerHTML=e,H(t)}function H(e){switch(e.nodeType){case e.TEXT_NODE:return""===e.nodeValue.trim();case e.ELEMENT_NODE:return!["AUDIO","CANVAS","EMBED","IFRAME","IMG","MATH","OBJECT","SVG","VIDEO"].includes(e.tagName)&&(!e.hasChildNodes()||Array.from(e.childNodes).every(H));default:return!0}}function I(e){return new window.URLSearchParams(Array.from(new window.FormData(e))).toString()}function P({title:e,isVisible:t,id:n,idBase:i,instance:r,isWide:o,onChangeInstance:s,onChangeHasPreview:l}){const d=(0,w.useRef)(),u=(0,y.useViewportMatch)("small"),p=(0,w.useRef)(new Set),f=(0,w.useRef)(new Set),{createNotice:v}=(0,g.useDispatch)(b.store);return(0,w.useEffect)((()=>{if(f.current.has(r))return void f.current.delete(r);const e=new k({id:n,idBase:i,instance:r,onChangeInstance(e){p.current.add(r),f.current.add(e),s(e)},onChangeHasPreview:l,onError(e){window.console.error(e),v("error",(0,h.sprintf)((0,h.__)('The "%s" block was affected by errors and may not function properly. Check the developer tools for more details.'),i||n))}});return d.current.appendChild(e.element),()=>{p.current.has(r)?p.current.delete(r):e.destroy()}}),[n,i,r,s,l,u]),o&&u?(0,a.createElement)("div",{className:c()({"wp-block-legacy-widget__container":t})},t&&(0,a.createElement)("h3",{className:"wp-block-legacy-widget__edit-form-title"},e),(0,a.createElement)(m.Popover,{focusOnMount:!1,placement:"right",offset:32,resize:!1,flip:!1,shift:!0},(0,a.createElement)("div",{ref:d,className:"wp-block-legacy-widget__edit-form",hidden:!t}))):(0,a.createElement)("div",{ref:d,className:"wp-block-legacy-widget__edit-form",hidden:!t},(0,a.createElement)("h3",{className:"wp-block-legacy-widget__edit-form-title"},e))}function V({idBase:e,instance:t,isVisible:n}){const[i,r]=(0,w.useState)(!1),[o,s]=(0,w.useState)("");(0,w.useEffect)((()=>{const n=void 0===window.AbortController?void 0:new window.AbortController;return async function(){const i=`/wp/v2/widget-types/${e}/render`;return await _()({path:i,method:"POST",signal:n?.signal,data:t?{instance:t}:{}})}().then((e=>{s(e.preview)})).catch((e=>{if("AbortError"!==e.name)throw e})),()=>n?.abort()}),[e,t]);const l=(0,y.useRefEffect)((e=>{if(!i)return;function t(){var t,n;const i=Math.max(null!==(t=e.contentDocument.documentElement?.offsetHeight)&&void 0!==t?t:0,null!==(n=e.contentDocument.body?.offsetHeight)&&void 0!==n?n:0);e.style.height=`${0!==i?i:100}px`}const{IntersectionObserver:n}=e.ownerDocument.defaultView,r=new n((([e])=>{e.isIntersecting&&t()}),{threshold:1});return r.observe(e),e.addEventListener("load",t),()=>{r.disconnect(),e.removeEventListener("load",t)}}),[i]);return(0,a.createElement)(a.Fragment,null,n&&!i&&(0,a.createElement)(m.Placeholder,null,(0,a.createElement)(m.Spinner,null)),(0,a.createElement)("div",{className:c()("wp-block-legacy-widget__edit-preview",{"is-offscreen":!n||!i})},(0,a.createElement)(m.Disabled,null,(0,a.createElement)("iframe",{ref:l,className:"wp-block-legacy-widget__edit-preview-iframe",tabIndex:"-1",title:(0,h.__)("Legacy Widget Preview"),srcDoc:o,onLoad:e=>{e.target.contentDocument.body.style.overflow="hidden",r(!0)},height:100}))))}function F({name:e}){return(0,a.createElement)("div",{className:"wp-block-legacy-widget__edit-no-preview"},e&&(0,a.createElement)("h3",null,e),(0,a.createElement)("p",null,(0,h.__)("No preview available.")))}function x({clientId:e,rawInstance:t}){const{replaceBlocks:n}=(0,g.useDispatch)(d.store);return(0,a.createElement)(m.ToolbarButton,{onClick:()=>{t.title?n(e,[(0,r.createBlock)("core/heading",{content:t.title}),...(0,r.rawHandler)({HTML:t.text})]):n(e,(0,r.rawHandler)({HTML:t.text}))}},(0,h.__)("Convert to blocks"))}function N({attributes:{id:e,idBase:t},setAttributes:n}){return(0,a.createElement)(m.Placeholder,{icon:(0,a.createElement)(d.BlockIcon,{icon:u}),label:(0,h.__)("Legacy Widget")},(0,a.createElement)(m.Flex,null,(0,a.createElement)(m.FlexBlock,null,(0,a.createElement)(f,{selectedId:null!=e?e:t,onSelect:({selectedId:e,isMulti:t})=>{n(e?t?{id:null,idBase:e,instance:{}}:{id:e,idBase:null,instance:null}:{id:null,idBase:null,instance:null})}}))))}function L({attributes:{id:e,idBase:t,instance:n},setAttributes:i,clientId:r,isSelected:o,isWide:s=!1}){const[l,c]=(0,w.useState)(null),f=null!=e?e:t,{record:b,hasResolved:y}=(0,p.useEntityRecord)("root","widgetType",f),E=(0,g.useSelect)((e=>e(d.store).isNavigationMode()),[]),_=(0,w.useCallback)((e=>{i({instance:e})}),[]);if(!b&&y)return(0,a.createElement)(m.Placeholder,{icon:(0,a.createElement)(d.BlockIcon,{icon:u}),label:(0,h.__)("Legacy Widget")},(0,h.__)("Widget is missing."));if(!y)return(0,a.createElement)(m.Placeholder,null,(0,a.createElement)(m.Spinner,null));const k=!t||!E&&o?"edit":"preview";return(0,a.createElement)(a.Fragment,null,"text"===t&&(0,a.createElement)(d.BlockControls,{group:"other"},(0,a.createElement)(x,{clientId:r,rawInstance:n.raw})),(0,a.createElement)(d.InspectorControls,null,(0,a.createElement)(v,{name:b.name,description:b.description})),(0,a.createElement)(P,{title:b.name,isVisible:"edit"===k,id:e,idBase:t,instance:n,isWide:s,onChangeInstance:_,onChangeHasPreview:c}),t&&(0,a.createElement)(a.Fragment,null,null===l&&"preview"===k&&(0,a.createElement)(m.Placeholder,null,(0,a.createElement)(m.Spinner,null)),!0===l&&(0,a.createElement)(V,{idBase:t,instance:n,isVisible:"preview"===k}),!1===l&&"preview"===k&&(0,a.createElement)(F,{name:b.name})))}const D=[{block:"core/calendar",widget:"calendar"},{block:"core/search",widget:"search"},{block:"core/html",widget:"custom_html",transform:({content:e})=>({content:e})},{block:"core/archives",widget:"archives",transform:({count:e,dropdown:t})=>({displayAsDropdown:!!t,showPostCounts:!!e})},{block:"core/latest-posts",widget:"recent-posts",transform:({show_date:e,number:t})=>({displayPostDate:!!e,postsToShow:t})},{block:"core/latest-comments",widget:"recent-comments",transform:({number:e})=>({commentsToShow:e})},{block:"core/tag-cloud",widget:"tag_cloud",transform:({taxonomy:e,count:t})=>({showTagCounts:!!t,taxonomy:e})},{block:"core/categories",widget:"categories",transform:({count:e,dropdown:t,hierarchical:n})=>({displayAsDropdown:!!t,showPostCounts:!!e,showHierarchy:!!n})},{block:"core/audio",widget:"media_audio",transform:({url:e,preload:t,loop:n,attachment_id:i})=>({src:e,id:i,preload:t,loop:n})},{block:"core/video",widget:"media_video",transform:({url:e,preload:t,loop:n,attachment_id:i})=>({src:e,id:i,preload:t,loop:n})},{block:"core/image",widget:"media_image",transform:({alt:e,attachment_id:t,caption:n,height:i,link_classes:r,link_rel:a,link_target_blank:o,link_type:s,link_url:l,size:c,url:d,width:m})=>({alt:e,caption:n,height:i,id:t,link:l,linkClass:r,linkDestination:s,linkTarget:o?"_blank":void 0,rel:a,sizeSlug:c,url:d,width:m})},{block:"core/gallery",widget:"media_gallery",transform:({ids:e,link_type:t,size:n,number:i})=>({ids:e,columns:i,linkTo:t,sizeSlug:n,images:e.map((e=>({id:e})))})},{block:"core/rss",widget:"rss",transform:({url:e,show_author:t,show_date:n,show_summary:i,items:r})=>({feedURL:e,displayAuthor:!!t,displayDate:!!n,displayExcerpt:!!i,itemsToShow:r})}].map((({block:e,widget:t,transform:n})=>({type:"block",blocks:[e],isMatch:({idBase:e,instance:n})=>e===t&&!!n?.raw,transform:({instance:t})=>{const i=(0,r.createBlock)(e,n?n(t.raw):void 0);return t.raw?.title?[(0,r.createBlock)("core/heading",{content:t.raw.title}),i]:i}}))),A={to:D},W={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/legacy-widget",title:"Legacy Widget",category:"widgets",description:"Display a legacy widget.",textdomain:"default",attributes:{id:{type:"string",default:null},idBase:{type:"string",default:null},instance:{type:"object",default:null}},supports:{html:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-legacy-widget-editor"},{name:j}=W,O={icon:s,edit:function(e){const{id:t,idBase:n}=e.attributes,{isWide:i=!1}=e,r=(0,d.useBlockProps)({className:c()({"is-wide-widget":i})});return(0,a.createElement)("div",{...r},t||n?(0,a.createElement)(L,{...e}):(0,a.createElement)(N,{...e}))},transforms:A},z=(0,a.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(o.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 R({clientId:e}){return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(m.Placeholder,{className:"wp-block-widget-group__placeholder",icon:(0,a.createElement)(d.BlockIcon,{icon:z}),label:(0,h.__)("Widget Group")},(0,a.createElement)(d.ButtonBlockAppender,{rootClientId:e})),(0,a.createElement)(d.InnerBlocks,{renderAppender:!1}))}function G({attributes:e,setAttributes:t}){var n;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.RichText,{tagName:"h2",className:"widget-title",allowedFormats:[],placeholder:(0,h.__)("Title"),value:null!==(n=e.title)&&void 0!==n?n:"",onChange:e=>t({title:e})}),(0,a.createElement)(d.InnerBlocks,null))}const $=[{attributes:{title:{type:"string"}},supports:{html:!1,inserter:!0,customClassName:!0,reusable:!1},save:({attributes:e})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.RichText.Content,{tagName:"h2",className:"widget-title",value:e.title}),(0,a.createElement)(d.InnerBlocks.Content,null))}],Q={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/widget-group",category:"widgets",attributes:{title:{type:"string"}},supports:{html:!1,inserter:!0,customClassName:!0,reusable:!1},editorStyle:"wp-block-widget-group-editor",style:"wp-block-widget-group"},{name:Z}=Q,U={title:(0,h.__)("Widget Group"),description:(0,h.__)("Create a classic widget layout with a title that’s styled by your theme for your widget areas."),icon:z,__experimentalLabel:({name:e})=>e,edit:function(e){const{clientId:t}=e,{innerBlocks:n}=(0,g.useSelect)((e=>e(d.store).getBlock(t)),[t]);return(0,a.createElement)("div",{...(0,d.useBlockProps)({className:"widget"})},0===n.length?(0,a.createElement)(R,{...e}):(0,a.createElement)(G,{...e}))},save:function({attributes:e}){return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.RichText.Content,{tagName:"h2",className:"widget-title",value:e.title}),(0,a.createElement)("div",{className:"wp-widget-group__inner-blocks"},(0,a.createElement)(d.InnerBlocks.Content,null)))},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:(e,t)=>!t.some((e=>"core/widget-group"===e.name)),__experimentalConvert(e){let t=[...e.map((e=>(0,r.createBlock)(e.name,e.attributes,e.innerBlocks)))];const n="core/heading"===t[0].name?t[0]:null;return t=t.filter((e=>e!==n)),(0,r.createBlock)("core/widget-group",{...n&&{title:n.attributes.content}},t)}}]},deprecated:$},J=(0,a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(o.Path,{d:"M19.75 9c0-1.257-.565-2.197-1.39-2.858-.797-.64-1.827-1.017-2.815-1.247-1.802-.42-3.703-.403-4.383-.396L11 4.5V6l.177-.001c.696-.006 2.416-.02 4.028.356.887.207 1.67.518 2.216.957.52.416.829.945.829 1.688 0 .592-.167.966-.407 1.23-.255.281-.656.508-1.236.674-1.19.34-2.82.346-4.607.346h-.077c-1.692 0-3.527 0-4.942.404-.732.209-1.424.545-1.935 1.108-.526.579-.796 1.33-.796 2.238 0 1.257.565 2.197 1.39 2.858.797.64 1.827 1.017 2.815 1.247 1.802.42 3.703.403 4.383.396L13 19.5h.714V22L18 18.5 13.714 15v3H13l-.177.001c-.696.006-2.416.02-4.028-.356-.887-.207-1.67-.518-2.216-.957-.52-.416-.829-.945-.829-1.688 0-.592.167-.966.407-1.23.255-.281.656-.508 1.237-.674 1.189-.34 2.819-.346 4.606-.346h.077c1.692 0 3.527 0 4.941-.404.732-.209 1.425-.545 1.936-1.108.526-.579.796-1.33.796-2.238z"}));function X({currentWidgetAreaId:e,widgetAreas:t,onSelect:n}){return(0,a.createElement)(m.ToolbarGroup,null,(0,a.createElement)(m.ToolbarItem,null,(i=>(0,a.createElement)(m.DropdownMenu,{icon:J,label:(0,h.__)("Move to widget area"),toggleProps:i},(({onClose:i})=>(0,a.createElement)(m.MenuGroup,{label:(0,h.__)("Move to")},(0,a.createElement)(m.MenuItemsChoice,{choices:t.map((e=>({value:e.id,label:e.name,info:e.description}))),value:e,onSelect:e=>{n(e),i()}})))))))}function q(e){return e.attributes.__internalWidgetId}function K(e,t){return{...e,attributes:{...e.attributes||{},__internalWidgetId:t}}}function Y(e){const t=(0,g.subscribe)((()=>{var n;const i=null!==(n=e?.widgetTypesToHideFromLegacyWidgetBlock)&&void 0!==n?n:[],a=(0,g.select)(p.store).getWidgetTypes({per_page:-1})?.filter((e=>!i.includes(e.id)));a&&(t(),(0,g.dispatch)(r.store).addBlockVariations("core/legacy-widget",a.map((e=>({name:e.id,title:e.name,description:e.description,attributes:e.is_multi?{idBase:e.id,instance:{}}:{id:e.id}})))))}))}function ee(t={}){const{metadata:n,settings:i,name:a}=e;(0,r.registerBlockType)({name:a,...n},{...i,supports:{...i.supports,...t}})}function te(e={}){const{metadata:n,settings:i,name:a}=t;(0,r.registerBlockType)({name:a,...n},{...i,supports:{...i.supports,...e}})}})(),(window.wp=window.wp||{}).widgets=i})(); \ No newline at end of file
+(()=>{"use strict";var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{MoveToWidgetArea:()=>X,addWidgetIdToBlock:()=>K,getWidgetIdFromBlock:()=>q,registerLegacyWidgetBlock:()=>ee,registerLegacyWidgetVariations:()=>Y,registerWidgetGroupBlock:()=>te});var i={};e.r(i),e.d(i,{metadata:()=>A,name:()=>W,settings:()=>O});var n={};e.r(n),e.d(n,{metadata:()=>Q,name:()=>Z,settings:()=>U});const s=window.wp.blocks,r=window.wp.primitives,o=window.ReactJSXRuntime,a=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M6 3H8V5H16V3H18V5C19.1046 5 20 5.89543 20 7V19C20 20.1046 19.1046 21 18 21H6C4.89543 21 4 20.1046 4 19V7C4 5.89543 4.89543 5 6 5V3ZM18 6.5H6C5.72386 6.5 5.5 6.72386 5.5 7V8H18.5V7C18.5 6.72386 18.2761 6.5 18 6.5ZM18.5 9.5H5.5V19C5.5 19.2761 5.72386 19.5 6 19.5H18C18.2761 19.5 18.5 19.2761 18.5 19V9.5ZM11 11H13V13H11V11ZM7 11V13H9V11H7ZM15 13V11H17V13H15Z"})});function c(e){var t,i,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(i=c(e[t]))&&(n&&(n+=" "),n+=i)}else for(i in e)e[i]&&(n&&(n+=" "),n+=i);return n}const l=function(){for(var e,t,i=0,n="",s=arguments.length;i<s;i++)(e=arguments[i])&&(t=c(e))&&(n&&(n+=" "),n+=t);return n},d=window.wp.blockEditor,h=window.wp.components,u=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"})}),m=window.wp.i18n,w=window.wp.element,g=window.wp.data,p=window.wp.coreData;function f({selectedId:e,onSelect:t}){const i=(0,g.useSelect)((e=>{var t;const i=null!==(t=e(d.store).getSettings()?.widgetTypesToHideFromLegacyWidgetBlock)&&void 0!==t?t:[];return e(p.store).getWidgetTypes({per_page:-1})?.filter((e=>!i.includes(e.id)))}),[]);return i?0===i.length?(0,m.__)("There are no widgets available."):(0,o.jsx)(h.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,m.__)("Select a legacy widget to display:"),value:null!=e?e:"",options:[{value:"",label:(0,m.__)("Select widget")},...i.map((e=>({value:e.id,label:e.name})))],onChange:e=>{if(e){const n=i.find((t=>t.id===e));t({selectedId:n.id,isMulti:n.is_multi})}else t({selectedId:null})}}):(0,o.jsx)(h.Spinner,{})}function b({name:e,description:t}){return(0,o.jsxs)("div",{className:"wp-block-legacy-widget-inspector-card",children:[(0,o.jsx)("h3",{className:"wp-block-legacy-widget-inspector-card__name",children:e}),(0,o.jsx)("span",{children:t})]})}const v=window.wp.notices,y=window.wp.compose,_=window.wp.apiFetch;var x=e.n(_);class j{constructor({id:e,idBase:t,instance:i,onChangeInstance:n,onChangeHasPreview:s,onError:r}){this.id=e,this.idBase=t,this._instance=i,this._hasPreview=null,this.onChangeInstance=n,this.onChangeHasPreview=s,this.onError=r,this.number=++k,this.handleFormChange=(0,y.debounce)(this.handleFormChange.bind(this),200),this.handleFormSubmit=this.handleFormSubmit.bind(this),this.initDOM(),this.bindEvents(),this.loadContent()}destroy(){this.unbindEvents(),this.element.remove()}initDOM(){var e,t;this.element=B("div",{class:"widget open"},[B("div",{class:"widget-inside"},[this.form=B("form",{class:"form",method:"post"},[B("input",{class:"widget-id",type:"hidden",name:"widget-id",value:null!==(e=this.id)&&void 0!==e?e:`${this.idBase}-${this.number}`}),B("input",{class:"id_base",type:"hidden",name:"id_base",value:null!==(t=this.idBase)&&void 0!==t?t:this.id}),B("input",{class:"widget-width",type:"hidden",name:"widget-width",value:"250"}),B("input",{class:"widget-height",type:"hidden",name:"widget-height",value:"200"}),B("input",{class:"widget_number",type:"hidden",name:"widget_number",value:this.idBase?this.number.toString():""}),this.content=B("div",{class:"widget-content"}),this.id&&B("button",{class:"button is-primary",type:"submit"},(0,m.__)("Save"))])])])}bindEvents(){if(window.jQuery){const{jQuery:e}=window;e(this.form).on("change",null,this.handleFormChange),e(this.form).on("input",null,this.handleFormChange),e(this.form).on("submit",this.handleFormSubmit)}else this.form.addEventListener("change",this.handleFormChange),this.form.addEventListener("input",this.handleFormChange),this.form.addEventListener("submit",this.handleFormSubmit)}unbindEvents(){if(window.jQuery){const{jQuery:e}=window;e(this.form).off("change",null,this.handleFormChange),e(this.form).off("input",null,this.handleFormChange),e(this.form).off("submit",this.handleFormSubmit)}else this.form.removeEventListener("change",this.handleFormChange),this.form.removeEventListener("input",this.handleFormChange),this.form.removeEventListener("submit",this.handleFormSubmit)}async loadContent(){try{if(this.id){const{form:e}=await C(this.id);this.content.innerHTML=e}else if(this.idBase){const{form:e,preview:t}=await S({idBase:this.idBase,instance:this.instance,number:this.number});if(this.content.innerHTML=e,this.hasPreview=!T(t),!this.instance.hash){const{instance:e}=await S({idBase:this.idBase,instance:this.instance,number:this.number,formData:H(this.form)});this.instance=e}}if(window.jQuery){const{jQuery:e}=window;e(document).trigger("widget-added",[e(this.element)])}}catch(e){this.onError(e)}}handleFormChange(){this.idBase&&this.saveForm()}handleFormSubmit(e){e.preventDefault(),this.saveForm()}async saveForm(){const e=H(this.form);try{if(this.id){const{form:t}=await C(this.id,e);if(this.content.innerHTML=t,window.jQuery){const{jQuery:e}=window;e(document).trigger("widget-updated",[e(this.element)])}}else if(this.idBase){const{instance:t,preview:i}=await S({idBase:this.idBase,instance:this.instance,number:this.number,formData:e});this.instance=t,this.hasPreview=!T(i)}}catch(e){this.onError(e)}}get instance(){return this._instance}set instance(e){this._instance!==e&&(this._instance=e,this.onChangeInstance(e))}get hasPreview(){return this._hasPreview}set hasPreview(e){this._hasPreview!==e&&(this._hasPreview=e,this.onChangeHasPreview(e))}}let k=0;function B(e,t={},i=null){const n=document.createElement(e);for(const[e,i]of Object.entries(t))n.setAttribute(e,i);if(Array.isArray(i))for(const e of i)e&&n.appendChild(e);else"string"==typeof i&&(n.innerText=i);return n}async function C(e,t=null){let i;return i=t?await x()({path:`/wp/v2/widgets/${e}?context=edit`,method:"PUT",data:{form_data:t}}):await x()({path:`/wp/v2/widgets/${e}?context=edit`,method:"GET"}),{form:i.rendered_form}}async function S({idBase:e,instance:t,number:i,formData:n=null}){const s=await x()({path:`/wp/v2/widget-types/${e}/encode`,method:"POST",data:{instance:t,number:i,form_data:n}});return{instance:s.instance,form:s.form,preview:s.preview}}function T(e){const t=document.createElement("div");return t.innerHTML=e,M(t)}function M(e){switch(e.nodeType){case e.TEXT_NODE:return""===e.nodeValue.trim();case e.ELEMENT_NODE:return!["AUDIO","CANVAS","EMBED","IFRAME","IMG","MATH","OBJECT","SVG","VIDEO"].includes(e.tagName)&&(!e.hasChildNodes()||Array.from(e.childNodes).every(M));default:return!0}}function H(e){return new window.URLSearchParams(Array.from(new window.FormData(e))).toString()}function I({title:e,isVisible:t,id:i,idBase:n,instance:s,isWide:r,onChangeInstance:a,onChangeHasPreview:c}){const d=(0,w.useRef)(),u=(0,y.useViewportMatch)("small"),p=(0,w.useRef)(new Set),f=(0,w.useRef)(new Set),{createNotice:b}=(0,g.useDispatch)(v.store);return(0,w.useEffect)((()=>{if(f.current.has(s))return void f.current.delete(s);const e=new j({id:i,idBase:n,instance:s,onChangeInstance(e){p.current.add(s),f.current.add(e),a(e)},onChangeHasPreview:c,onError(e){window.console.error(e),b("error",(0,m.sprintf)((0,m.__)('The "%s" block was affected by errors and may not function properly. Check the developer tools for more details.'),n||i))}});return d.current.appendChild(e.element),()=>{p.current.has(s)?p.current.delete(s):e.destroy()}}),[i,n,s,a,c,u]),r&&u?(0,o.jsxs)("div",{className:l({"wp-block-legacy-widget__container":t}),children:[t&&(0,o.jsx)("h3",{className:"wp-block-legacy-widget__edit-form-title",children:e}),(0,o.jsx)(h.Popover,{focusOnMount:!1,placement:"right",offset:32,resize:!1,flip:!1,shift:!0,children:(0,o.jsx)("div",{ref:d,className:"wp-block-legacy-widget__edit-form",hidden:!t})})]}):(0,o.jsx)("div",{ref:d,className:"wp-block-legacy-widget__edit-form",hidden:!t,children:(0,o.jsx)("h3",{className:"wp-block-legacy-widget__edit-form-title",children:e})})}function V({idBase:e,instance:t,isVisible:i}){const[n,s]=(0,w.useState)(!1),[r,a]=(0,w.useState)("");(0,w.useEffect)((()=>{const i=void 0===window.AbortController?void 0:new window.AbortController;return async function(){const n=`/wp/v2/widget-types/${e}/render`;return await x()({path:n,method:"POST",signal:i?.signal,data:t?{instance:t}:{}})}().then((e=>{a(e.preview)})).catch((e=>{if("AbortError"!==e.name)throw e})),()=>i?.abort()}),[e,t]);const c=(0,y.useRefEffect)((e=>{if(!n)return;function t(){var t,i;const n=Math.max(null!==(t=e.contentDocument.documentElement?.offsetHeight)&&void 0!==t?t:0,null!==(i=e.contentDocument.body?.offsetHeight)&&void 0!==i?i:0);e.style.height=`${0!==n?n:100}px`}const{IntersectionObserver:i}=e.ownerDocument.defaultView,s=new i((([e])=>{e.isIntersecting&&t()}),{threshold:1});return s.observe(e),e.addEventListener("load",t),()=>{s.disconnect(),e.removeEventListener("load",t)}}),[n]);return(0,o.jsxs)(o.Fragment,{children:[i&&!n&&(0,o.jsx)(h.Placeholder,{children:(0,o.jsx)(h.Spinner,{})}),(0,o.jsx)("div",{className:l("wp-block-legacy-widget__edit-preview",{"is-offscreen":!i||!n}),children:(0,o.jsx)(h.Disabled,{children:(0,o.jsx)("iframe",{ref:c,className:"wp-block-legacy-widget__edit-preview-iframe",tabIndex:"-1",title:(0,m.__)("Legacy Widget Preview"),srcDoc:r,onLoad:e=>{e.target.contentDocument.body.style.overflow="hidden",s(!0)},height:100})})})]})}function P({name:e}){return(0,o.jsxs)("div",{className:"wp-block-legacy-widget__edit-no-preview",children:[e&&(0,o.jsx)("h3",{children:e}),(0,o.jsx)("p",{children:(0,m.__)("No preview available.")})]})}function E({clientId:e,rawInstance:t}){const{replaceBlocks:i}=(0,g.useDispatch)(d.store);return(0,o.jsx)(h.ToolbarButton,{onClick:()=>{t.title?i(e,[(0,s.createBlock)("core/heading",{content:t.title}),...(0,s.rawHandler)({HTML:t.text})]):i(e,(0,s.rawHandler)({HTML:t.text}))},children:(0,m.__)("Convert to blocks")})}function F({attributes:{id:e,idBase:t},setAttributes:i}){return(0,o.jsx)(h.Placeholder,{icon:(0,o.jsx)(d.BlockIcon,{icon:u}),label:(0,m.__)("Legacy Widget"),children:(0,o.jsx)(h.Flex,{children:(0,o.jsx)(h.FlexBlock,{children:(0,o.jsx)(f,{selectedId:null!=e?e:t,onSelect:({selectedId:e,isMulti:t})=>{i(e?t?{id:null,idBase:e,instance:{}}:{id:e,idBase:null,instance:null}:{id:null,idBase:null,instance:null})}})})})})}function N({attributes:{id:e,idBase:t,instance:i},setAttributes:n,clientId:s,isSelected:r,isWide:a=!1}){const[c,l]=(0,w.useState)(null),f=null!=e?e:t,{record:v,hasResolved:y}=(0,p.useEntityRecord)("root","widgetType",f),_=(0,g.useSelect)((e=>e(d.store).isNavigationMode()),[]),x=(0,w.useCallback)((e=>{n({instance:e})}),[]);if(!v&&y)return(0,o.jsx)(h.Placeholder,{icon:(0,o.jsx)(d.BlockIcon,{icon:u}),label:(0,m.__)("Legacy Widget"),children:(0,m.__)("Widget is missing.")});if(!y)return(0,o.jsx)(h.Placeholder,{children:(0,o.jsx)(h.Spinner,{})});const j=!t||!_&&r?"edit":"preview";return(0,o.jsxs)(o.Fragment,{children:["text"===t&&(0,o.jsx)(d.BlockControls,{group:"other",children:(0,o.jsx)(E,{clientId:s,rawInstance:i.raw})}),(0,o.jsx)(d.InspectorControls,{children:(0,o.jsx)(b,{name:v.name,description:v.description})}),(0,o.jsx)(I,{title:v.name,isVisible:"edit"===j,id:e,idBase:t,instance:i,isWide:a,onChangeInstance:x,onChangeHasPreview:l}),t&&(0,o.jsxs)(o.Fragment,{children:[null===c&&"preview"===j&&(0,o.jsx)(h.Placeholder,{children:(0,o.jsx)(h.Spinner,{})}),!0===c&&(0,o.jsx)(V,{idBase:t,instance:i,isVisible:"preview"===j}),!1===c&&"preview"===j&&(0,o.jsx)(P,{name:v.name})]})]})}const L=[{block:"core/calendar",widget:"calendar"},{block:"core/search",widget:"search"},{block:"core/html",widget:"custom_html",transform:({content:e})=>({content:e})},{block:"core/archives",widget:"archives",transform:({count:e,dropdown:t})=>({displayAsDropdown:!!t,showPostCounts:!!e})},{block:"core/latest-posts",widget:"recent-posts",transform:({show_date:e,number:t})=>({displayPostDate:!!e,postsToShow:t})},{block:"core/latest-comments",widget:"recent-comments",transform:({number:e})=>({commentsToShow:e})},{block:"core/tag-cloud",widget:"tag_cloud",transform:({taxonomy:e,count:t})=>({showTagCounts:!!t,taxonomy:e})},{block:"core/categories",widget:"categories",transform:({count:e,dropdown:t,hierarchical:i})=>({displayAsDropdown:!!t,showPostCounts:!!e,showHierarchy:!!i})},{block:"core/audio",widget:"media_audio",transform:({url:e,preload:t,loop:i,attachment_id:n})=>({src:e,id:n,preload:t,loop:i})},{block:"core/video",widget:"media_video",transform:({url:e,preload:t,loop:i,attachment_id:n})=>({src:e,id:n,preload:t,loop:i})},{block:"core/image",widget:"media_image",transform:({alt:e,attachment_id:t,caption:i,height:n,link_classes:s,link_rel:r,link_target_blank:o,link_type:a,link_url:c,size:l,url:d,width:h})=>({alt:e,caption:i,height:n,id:t,link:c,linkClass:s,linkDestination:a,linkTarget:o?"_blank":void 0,rel:r,sizeSlug:l,url:d,width:h})},{block:"core/gallery",widget:"media_gallery",transform:({ids:e,link_type:t,size:i,number:n})=>({ids:e,columns:n,linkTo:t,sizeSlug:i,images:e.map((e=>({id:e})))})},{block:"core/rss",widget:"rss",transform:({url:e,show_author:t,show_date:i,show_summary:n,items:s})=>({feedURL:e,displayAuthor:!!t,displayDate:!!i,displayExcerpt:!!n,itemsToShow:s})}].map((({block:e,widget:t,transform:i})=>({type:"block",blocks:[e],isMatch:({idBase:e,instance:i})=>e===t&&!!i?.raw,transform:({instance:t})=>{const n=(0,s.createBlock)(e,i?i(t.raw):void 0);return t.raw?.title?[(0,s.createBlock)("core/heading",{content:t.raw.title}),n]:n}}))),D={to:L},A={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/legacy-widget",title:"Legacy Widget",category:"widgets",description:"Display a legacy widget.",textdomain:"default",attributes:{id:{type:"string",default:null},idBase:{type:"string",default:null},instance:{type:"object",default:null}},supports:{html:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-legacy-widget-editor"},{name:W}=A,O={icon:a,edit:function(e){const{id:t,idBase:i}=e.attributes,{isWide:n=!1}=e,s=(0,d.useBlockProps)({className:l({"is-wide-widget":n})});return(0,o.jsx)("div",{...s,children:t||i?(0,o.jsx)(N,{...e}):(0,o.jsx)(F,{...e})})},transforms:D},R=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.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 z({clientId:e}){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(h.Placeholder,{className:"wp-block-widget-group__placeholder",icon:(0,o.jsx)(d.BlockIcon,{icon:R}),label:(0,m.__)("Widget Group"),children:(0,o.jsx)(d.ButtonBlockAppender,{rootClientId:e})}),(0,o.jsx)(d.InnerBlocks,{renderAppender:!1})]})}function G({attributes:e,setAttributes:t}){var i;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.RichText,{tagName:"h2",identifier:"title",className:"widget-title",allowedFormats:[],placeholder:(0,m.__)("Title"),value:null!==(i=e.title)&&void 0!==i?i:"",onChange:e=>t({title:e})}),(0,o.jsx)(d.InnerBlocks,{})]})}const $=[{attributes:{title:{type:"string"}},supports:{html:!1,inserter:!0,customClassName:!0,reusable:!1},save:({attributes:e})=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.RichText.Content,{tagName:"h2",className:"widget-title",value:e.title}),(0,o.jsx)(d.InnerBlocks.Content,{})]})}],Q={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/widget-group",title:"Widget Group",category:"widgets",attributes:{title:{type:"string"}},supports:{html:!1,inserter:!0,customClassName:!0,reusable:!1},editorStyle:"wp-block-widget-group-editor",style:"wp-block-widget-group"},{name:Z}=Q,U={title:(0,m.__)("Widget Group"),description:(0,m.__)("Create a classic widget layout with a title that’s styled by your theme for your widget areas."),icon:R,__experimentalLabel:({name:e})=>e,edit:function(e){const{clientId:t}=e,{innerBlocks:i}=(0,g.useSelect)((e=>e(d.store).getBlock(t)),[t]);return(0,o.jsx)("div",{...(0,d.useBlockProps)({className:"widget"}),children:0===i.length?(0,o.jsx)(z,{...e}):(0,o.jsx)(G,{...e})})},save:function({attributes:e}){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.RichText.Content,{tagName:"h2",className:"widget-title",value:e.title}),(0,o.jsx)("div",{className:"wp-widget-group__inner-blocks",children:(0,o.jsx)(d.InnerBlocks.Content,{})})]})},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:(e,t)=>!t.some((e=>"core/widget-group"===e.name)),__experimentalConvert(e){let t=[...e.map((e=>(0,s.createBlock)(e.name,e.attributes,e.innerBlocks)))];const i="core/heading"===t[0].name?t[0]:null;return t=t.filter((e=>e!==i)),(0,s.createBlock)("core/widget-group",{...i&&{title:i.attributes.content}},t)}}]},deprecated:$},J=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M19.75 9c0-1.257-.565-2.197-1.39-2.858-.797-.64-1.827-1.017-2.815-1.247-1.802-.42-3.703-.403-4.383-.396L11 4.5V6l.177-.001c.696-.006 2.416-.02 4.028.356.887.207 1.67.518 2.216.957.52.416.829.945.829 1.688 0 .592-.167.966-.407 1.23-.255.281-.656.508-1.236.674-1.19.34-2.82.346-4.607.346h-.077c-1.692 0-3.527 0-4.942.404-.732.209-1.424.545-1.935 1.108-.526.579-.796 1.33-.796 2.238 0 1.257.565 2.197 1.39 2.858.797.64 1.827 1.017 2.815 1.247 1.802.42 3.703.403 4.383.396L13 19.5h.714V22L18 18.5 13.714 15v3H13l-.177.001c-.696.006-2.416.02-4.028-.356-.887-.207-1.67-.518-2.216-.957-.52-.416-.829-.945-.829-1.688 0-.592.167-.966.407-1.23.255-.281.656-.508 1.237-.674 1.189-.34 2.819-.346 4.606-.346h.077c1.692 0 3.527 0 4.941-.404.732-.209 1.425-.545 1.936-1.108.526-.579.796-1.33.796-2.238z"})});function X({currentWidgetAreaId:e,widgetAreas:t,onSelect:i}){return(0,o.jsx)(h.ToolbarGroup,{children:(0,o.jsx)(h.ToolbarItem,{children:n=>(0,o.jsx)(h.DropdownMenu,{icon:J,label:(0,m.__)("Move to widget area"),toggleProps:n,children:({onClose:n})=>(0,o.jsx)(h.MenuGroup,{label:(0,m.__)("Move to"),children:(0,o.jsx)(h.MenuItemsChoice,{choices:t.map((e=>({value:e.id,label:e.name,info:e.description}))),value:e,onSelect:e=>{i(e),n()}})})})})})}function q(e){return e.attributes.__internalWidgetId}function K(e,t){return{...e,attributes:{...e.attributes||{},__internalWidgetId:t}}}function Y(e){const t=(0,g.subscribe)((()=>{var i;const n=null!==(i=e?.widgetTypesToHideFromLegacyWidgetBlock)&&void 0!==i?i:[],r=(0,g.select)(p.store).getWidgetTypes({per_page:-1})?.filter((e=>!n.includes(e.id)));r&&(t(),(0,g.dispatch)(s.store).addBlockVariations("core/legacy-widget",r.map((e=>({name:e.id,title:e.name,description:e.description,attributes:e.is_multi?{idBase:e.id,instance:{}}:{id:e.id}})))))}))}function ee(e={}){const{metadata:t,settings:n,name:r}=i;(0,s.registerBlockType)({name:r,...t},{...n,supports:{...n.supports,...e}})}function te(e={}){const{metadata:t,settings:i,name:r}=n;(0,s.registerBlockType)({name:r,...t},{...i,supports:{...i.supports,...e}})}(window.wp=window.wp||{}).widgets=t})(); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/accordion.js b/wp-includes/js/jquery/ui/accordion.js
index db9db05..465ec0f 100644
--- a/wp-includes/js/jquery/ui/accordion.js
+++ b/wp-includes/js/jquery/ui/accordion.js
@@ -1,10 +1,10 @@
/*!
- * jQuery UI Accordion 1.13.2
- * http://jqueryui.com
+ * jQuery UI Accordion 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Accordion
@@ -12,8 +12,8 @@
/* eslint-disable max-len */
//>>description: Displays collapsible content panels for presenting information in a limited amount of space.
/* eslint-enable max-len */
-//>>docs: http://api.jqueryui.com/accordion/
-//>>demos: http://jqueryui.com/accordion/
+//>>docs: https://api.jqueryui.com/accordion/
+//>>demos: https://jqueryui.com/accordion/
//>>css.structure: ../../themes/base/core.css
//>>css.structure: ../../themes/base/accordion.css
//>>css.theme: ../../themes/base/theme.css
@@ -26,7 +26,10 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./core"
+ "../version",
+ "../keycode",
+ "../unique-id",
+ "../widget"
], factory );
} else {
@@ -37,7 +40,7 @@
"use strict";
return $.widget( "ui.accordion", {
- version: "1.13.2",
+ version: "1.13.3",
options: {
active: 0,
animate: {},
diff --git a/wp-includes/js/jquery/ui/accordion.min.js b/wp-includes/js/jquery/ui/accordion.min.js
index 4392861..6a4147f 100644
--- a/wp-includes/js/jquery/ui/accordion.min.js
+++ b/wp-includes/js/jquery/ui/accordion.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Accordion 1.13.2
- * http://jqueryui.com
+ * jQuery UI Accordion 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.accordion",{version:"1.13.2",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(e){return e.find("> li > :first-child").add(e.find("> :not(li)").even())},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=o(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():o()}},_createIcons:function(){var e,t=this.options.icons;t&&(e=o("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+t.header),e.prependTo(this.headers),e=this.active.children(".ui-accordion-header-icon"),this._removeClass(e,t.header)._addClass(e,null,t.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){"active"===e?this._activate(t):("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||!1!==this.options.active||this._activate(0),"icons"===e&&(this._destroyIcons(),t)&&this._createIcons())},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!e)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var t=o.ui.keyCode,i=this.headers.length,a=this.headers.index(e.target),s=!1;switch(e.keyCode){case t.RIGHT:case t.DOWN:s=this.headers[(a+1)%i];break;case t.LEFT:case t.UP:s=this.headers[(a-1+i)%i];break;case t.SPACE:case t.ENTER:this._eventHandler(e);break;case t.HOME:s=this.headers[0];break;case t.END:s=this.headers[i-1]}s&&(o(e.target).attr("tabIndex",-1),o(s).attr("tabIndex",0),o(s).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===o.ui.keyCode.UP&&e.ctrlKey&&o(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=o()):!1===e.active?this._activate(0):this.active.length&&!o.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=o()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,t=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),t&&(this._off(e.not(this.headers)),this._off(t.not(this.panels)))},_refresh:function(){var i,e=this.options,t=e.heightStyle,a=this.element.parent();this.active=this._findActive(e.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var e=o(this),t=e.uniqueId().attr("id"),i=e.next(),a=i.uniqueId().attr("id");e.attr("aria-controls",a),i.attr("aria-labelledby",t)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(e.event),"fill"===t?(i=a.height(),this.element.siblings(":visible").each(function(){var e=o(this),t=e.css("position");"absolute"!==t&&"fixed"!==t&&(i-=e.outerHeight(!0))}),this.headers.each(function(){i-=o(this).outerHeight(!0)}),this.headers.next().each(function(){o(this).height(Math.max(0,i-o(this).innerHeight()+o(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.headers.next().each(function(){var e=o(this).is(":visible");e||o(this).show(),i=Math.max(i,o(this).css("height","").height()),e||o(this).hide()}).height(i))},_activate:function(e){e=this._findActive(e)[0];e!==this.active[0]&&(e=e||this.active[0],this._eventHandler({target:e,currentTarget:e,preventDefault:o.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):o()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&o.each(e.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var t=this.options,i=this.active,a=o(e.currentTarget),s=a[0]===i[0],n=s&&t.collapsible,h=n?o():a.next(),r=i.next(),r={oldHeader:i,oldPanel:r,newHeader:n?o():a,newPanel:h};e.preventDefault(),s&&!t.collapsible||!1===this._trigger("beforeActivate",e,r)||(t.active=!n&&this.headers.index(a),this.active=s?o():a,this._toggle(r),this._removeClass(i,"ui-accordion-header-active","ui-state-active"),t.icons&&(h=i.children(".ui-accordion-header-icon"),this._removeClass(h,null,t.icons.activeHeader)._addClass(h,null,t.icons.header)),s)||(this._removeClass(a,"ui-accordion-header-collapsed")._addClass(a,"ui-accordion-header-active","ui-state-active"),t.icons&&(e=a.children(".ui-accordion-header-icon"),this._removeClass(e,null,t.icons.header)._addClass(e,null,t.icons.activeHeader)),this._addClass(a.next(),"ui-accordion-content-active"))},_toggle:function(e){var t=e.newPanel,i=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=t,this.prevHide=i,this.options.animate?this._animate(t,i,e):(i.hide(),t.show(),this._toggleComplete(e)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),t.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):t.length&&this.headers.filter(function(){return 0===parseInt(o(this).attr("tabIndex"),10)}).attr("tabIndex",-1),t.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,i,t){function a(){n._toggleComplete(t)}var s,n=this,h=0,r=e.css("box-sizing"),o=e.length&&(!i.length||e.index()<i.index()),d=this.options.animate||{},o=o&&d.down||d,c=(c="string"==typeof o?o:c)||o.easing||d.easing,l=(l="number"==typeof o?o:l)||o.duration||d.duration;return i.length?e.length?(s=e.show().outerHeight(),i.animate(this.hideProps,{duration:l,easing:c,step:function(e,t){t.now=Math.round(e)}}),void e.hide().animate(this.showProps,{duration:l,easing:c,complete:a,step:function(e,t){t.now=Math.round(e),"height"!==t.prop?"content-box"===r&&(h+=t.now):"content"!==n.options.heightStyle&&(t.now=Math.round(s-i.outerHeight()-h),h=0)}})):i.animate(this.hideProps,l,c,a):e.animate(this.showProps,l,c,a)},_toggleComplete:function(e){var t=e.oldPanel,i=t.prev();this._removeClass(t,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),t.length&&(t.parent()[0].className=t.parent()[0].className),this._trigger("activate",null,e)}})}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../keycode","../unique-id","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.accordion",{version:"1.13.3",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(e){return e.find("> li > :first-child").add(e.find("> :not(li)").even())},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=o(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():o()}},_createIcons:function(){var e,t=this.options.icons;t&&(e=o("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+t.header),e.prependTo(this.headers),e=this.active.children(".ui-accordion-header-icon"),this._removeClass(e,t.header)._addClass(e,null,t.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){"active"===e?this._activate(t):("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||!1!==this.options.active||this._activate(0),"icons"===e&&(this._destroyIcons(),t)&&this._createIcons())},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!e)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var t=o.ui.keyCode,i=this.headers.length,a=this.headers.index(e.target),s=!1;switch(e.keyCode){case t.RIGHT:case t.DOWN:s=this.headers[(a+1)%i];break;case t.LEFT:case t.UP:s=this.headers[(a-1+i)%i];break;case t.SPACE:case t.ENTER:this._eventHandler(e);break;case t.HOME:s=this.headers[0];break;case t.END:s=this.headers[i-1]}s&&(o(e.target).attr("tabIndex",-1),o(s).attr("tabIndex",0),o(s).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===o.ui.keyCode.UP&&e.ctrlKey&&o(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=o()):!1===e.active?this._activate(0):this.active.length&&!o.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=o()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,t=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),t&&(this._off(e.not(this.headers)),this._off(t.not(this.panels)))},_refresh:function(){var i,e=this.options,t=e.heightStyle,a=this.element.parent();this.active=this._findActive(e.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var e=o(this),t=e.uniqueId().attr("id"),i=e.next(),a=i.uniqueId().attr("id");e.attr("aria-controls",a),i.attr("aria-labelledby",t)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(e.event),"fill"===t?(i=a.height(),this.element.siblings(":visible").each(function(){var e=o(this),t=e.css("position");"absolute"!==t&&"fixed"!==t&&(i-=e.outerHeight(!0))}),this.headers.each(function(){i-=o(this).outerHeight(!0)}),this.headers.next().each(function(){o(this).height(Math.max(0,i-o(this).innerHeight()+o(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.headers.next().each(function(){var e=o(this).is(":visible");e||o(this).show(),i=Math.max(i,o(this).css("height","").height()),e||o(this).hide()}).height(i))},_activate:function(e){e=this._findActive(e)[0];e!==this.active[0]&&(e=e||this.active[0],this._eventHandler({target:e,currentTarget:e,preventDefault:o.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):o()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&o.each(e.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var t=this.options,i=this.active,a=o(e.currentTarget),s=a[0]===i[0],n=s&&t.collapsible,h=n?o():a.next(),r=i.next(),r={oldHeader:i,oldPanel:r,newHeader:n?o():a,newPanel:h};e.preventDefault(),s&&!t.collapsible||!1===this._trigger("beforeActivate",e,r)||(t.active=!n&&this.headers.index(a),this.active=s?o():a,this._toggle(r),this._removeClass(i,"ui-accordion-header-active","ui-state-active"),t.icons&&(h=i.children(".ui-accordion-header-icon"),this._removeClass(h,null,t.icons.activeHeader)._addClass(h,null,t.icons.header)),s)||(this._removeClass(a,"ui-accordion-header-collapsed")._addClass(a,"ui-accordion-header-active","ui-state-active"),t.icons&&(e=a.children(".ui-accordion-header-icon"),this._removeClass(e,null,t.icons.header)._addClass(e,null,t.icons.activeHeader)),this._addClass(a.next(),"ui-accordion-content-active"))},_toggle:function(e){var t=e.newPanel,i=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=t,this.prevHide=i,this.options.animate?this._animate(t,i,e):(i.hide(),t.show(),this._toggleComplete(e)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),t.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):t.length&&this.headers.filter(function(){return 0===parseInt(o(this).attr("tabIndex"),10)}).attr("tabIndex",-1),t.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,i,t){function a(){n._toggleComplete(t)}var s,n=this,h=0,r=e.css("box-sizing"),o=e.length&&(!i.length||e.index()<i.index()),d=this.options.animate||{},o=o&&d.down||d,c=(c="string"==typeof o?o:c)||o.easing||d.easing,l=(l="number"==typeof o?o:l)||o.duration||d.duration;return i.length?e.length?(s=e.show().outerHeight(),i.animate(this.hideProps,{duration:l,easing:c,step:function(e,t){t.now=Math.round(e)}}),void e.hide().animate(this.showProps,{duration:l,easing:c,complete:a,step:function(e,t){t.now=Math.round(e),"height"!==t.prop?"content-box"===r&&(h+=t.now):"content"!==n.options.heightStyle&&(t.now=Math.round(s-i.outerHeight()-h),h=0)}})):i.animate(this.hideProps,l,c,a):e.animate(this.showProps,l,c,a)},_toggleComplete:function(e){var t=e.oldPanel,i=t.prev();this._removeClass(t,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),t.length&&(t.parent()[0].className=t.parent()[0].className),this._trigger("activate",null,e)}})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/autocomplete.js b/wp-includes/js/jquery/ui/autocomplete.js
index d12437e..ea2d6d1 100644
--- a/wp-includes/js/jquery/ui/autocomplete.js
+++ b/wp-includes/js/jquery/ui/autocomplete.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Autocomplete 1.13.2
- * http://jqueryui.com
+ * jQuery UI Autocomplete 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Autocomplete
//>>group: Widgets
//>>description: Lists suggested words as the user is typing.
-//>>docs: http://api.jqueryui.com/autocomplete/
-//>>demos: http://jqueryui.com/autocomplete/
+//>>docs: https://api.jqueryui.com/autocomplete/
+//>>demos: https://jqueryui.com/autocomplete/
//>>css.structure: ../../themes/base/core.css
//>>css.structure: ../../themes/base/autocomplete.css
//>>css.theme: ../../themes/base/theme.css
@@ -25,7 +25,11 @@
define( [
"jquery",
"./menu",
- "./core"
+ "../keycode",
+ "../position",
+ "../safe-active-element",
+ "../version",
+ "../widget"
], factory );
} else {
@@ -36,7 +40,7 @@
"use strict";
$.widget( "ui.autocomplete", {
- version: "1.13.2",
+ version: "1.13.3",
defaultElement: "<input>",
options: {
appendTo: null,
diff --git a/wp-includes/js/jquery/ui/autocomplete.min.js b/wp-includes/js/jquery/ui/autocomplete.min.js
index df95c54..1d5872d 100644
--- a/wp-includes/js/jquery/ui/autocomplete.min.js
+++ b/wp-includes/js/jquery/ui/autocomplete.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Autocomplete 1.13.2
- * http://jqueryui.com
+ * jQuery UI Autocomplete 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","./core"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.autocomplete",{version:"1.13.2",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&this._isContentEditable(this.element),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:s=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault();else if(!s){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){n?(n=!1,e.preventDefault()):this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=o("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(e,t){var i,s;this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent)&&/^mouse/.test(e.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)})):(s=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(i=t.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(i))},100)))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==o.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=o("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||o.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(e,t){n.xhr&&n.xhr.abort(),n.xhr=o.ajax({url:s,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e&&(t||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:o.map(e,function(e){return"string"==typeof e?{label:e,value:e}:o.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(o.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var s=this;o.each(e,function(e,t){s._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return o("<li>").append(o("<div>").text(t.label)).appendTo(e)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){var t;return!!e.length&&("inherit"===(t=e.prop("contentEditable"))?this._isContentEditable(e.parent()):"true"===t)}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return i.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(t))},100))}}),o.ui.autocomplete}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../safe-active-element","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.autocomplete",{version:"1.13.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&this._isContentEditable(this.element),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:s=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault();else if(!s){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){n?(n=!1,e.preventDefault()):this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=o("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(e,t){var i,s;this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent)&&/^mouse/.test(e.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)})):(s=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(i=t.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(i))},100)))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==o.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=o("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||o.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(e,t){n.xhr&&n.xhr.abort(),n.xhr=o.ajax({url:s,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e&&(t||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:o.map(e,function(e){return"string"==typeof e?{label:e,value:e}:o.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(o.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var s=this;o.each(e,function(e,t){s._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return o("<li>").append(o("<div>").text(t.label)).appendTo(e)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){var t;return!!e.length&&("inherit"===(t=e.prop("contentEditable"))?this._isContentEditable(e.parent()):"true"===t)}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return i.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(t))},100))}}),o.ui.autocomplete}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/button.js b/wp-includes/js/jquery/ui/button.js
index 92ad161..294edc4 100644
--- a/wp-includes/js/jquery/ui/button.js
+++ b/wp-includes/js/jquery/ui/button.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Button 1.13.2
- * http://jqueryui.com
+ * jQuery UI Button 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Button
//>>group: Widgets
//>>description: Enhances a form with themeable buttons.
-//>>docs: http://api.jqueryui.com/button/
-//>>demos: http://jqueryui.com/button/
+//>>docs: https://api.jqueryui.com/button/
+//>>demos: https://jqueryui.com/button/
//>>css.structure: ../../themes/base/core.css
//>>css.structure: ../../themes/base/button.css
//>>css.theme: ../../themes/base/theme.css
@@ -30,7 +30,8 @@
"./controlgroup",
"./checkboxradio",
- "./core"
+ "../keycode",
+ "../widget"
], factory );
} else {
@@ -41,7 +42,7 @@
"use strict";
$.widget( "ui.button", {
- version: "1.13.2",
+ version: "1.13.3",
defaultElement: "<button>",
options: {
classes: {
diff --git a/wp-includes/js/jquery/ui/button.min.js b/wp-includes/js/jquery/ui/button.min.js
index ea2777b..83f181e 100644
--- a/wp-includes/js/jquery/ui/button.min.js
+++ b/wp-includes/js/jquery/ui/button.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Button 1.13.2
- * http://jqueryui.com
+ * jQuery UI Button 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./controlgroup","./checkboxradio","./core"],t):t(jQuery)}(function(e){"use strict";var h;return e.widget("ui.button",{version:"1.13.2",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,i=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(i.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(i.label=this.originalLabel),i},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===e.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,i){var t="iconPosition"!==t,o=t?this.options.iconPosition:i,s="top"===o||"bottom"===o;this.icon?t&&this._removeClass(this.icon,null,this.options.icon):(this.icon=e("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),t&&this._addClass(this.icon,null,i),this._attachIcon(o),s?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(o))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var i=(void 0===t.showLabel?this.options:t).showLabel,o=(void 0===t.icon?this.options:t).icon;i||o||(t.showLabel=!0),this._super(t)},_setOption:function(t,i){"icon"===t&&(i?this._updateIcon(t,i):this.icon&&(this.icon.remove(),this.iconSpace)&&this.iconSpace.remove()),"iconPosition"===t&&this._updateIcon(t,i),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!i),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(i):(this.element.html(i),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,i),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",i),this.element[0].disabled=i)&&this.element.trigger("blur")},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==e.uiBackCompat&&(e.widget("ui.button",e.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,i){"text"===t?this._super("showLabel",i):("showLabel"===t&&(this.options.text=i),"icon"===t&&(this.options.icons.primary=i),"icons"===t&&(i.primary?(this._super("icon",i.primary),this._super("iconPosition","beginning")):i.secondary&&(this._super("icon",i.secondary),this._super("iconPosition","end"))),this._superApply(arguments))}}),e.fn.button=(h=e.fn.button,function(o){var t="string"==typeof o,s=Array.prototype.slice.call(arguments,1),n=this;return t?this.length||"instance"!==o?this.each(function(){var t,i=e(this).attr("type"),i=e.data(this,"ui-"+("checkbox"!==i&&"radio"!==i?"button":"checkboxradio"));return"instance"===o?(n=i,!1):i?"function"!=typeof i[o]||"_"===o.charAt(0)?e.error("no such method '"+o+"' for button widget instance"):(t=i[o].apply(i,s))!==i&&void 0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:e.error("cannot call methods on button prior to initialization; attempted to call method '"+o+"'")}):n=void 0:(s.length&&(o=e.widget.extend.apply(null,[o].concat(s))),this.each(function(){var t=e(this).attr("type"),t="checkbox"!==t&&"radio"!==t?"button":"checkboxradio",i=e.data(this,"ui-"+t);i?(i.option(o||{}),i._init&&i._init()):"button"==t?h.call(e(this),o):e(this).checkboxradio(e.extend({icon:!1},o))})),n}),e.fn.buttonset=function(){return e.ui.controlgroup||e.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),e.ui.button}); \ No newline at end of file
+!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./controlgroup","./checkboxradio","../keycode","../widget"],t):t(jQuery)}(function(e){"use strict";var h;return e.widget("ui.button",{version:"1.13.3",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,i=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(i.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(i.label=this.originalLabel),i},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===e.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,i){var t="iconPosition"!==t,o=t?this.options.iconPosition:i,s="top"===o||"bottom"===o;this.icon?t&&this._removeClass(this.icon,null,this.options.icon):(this.icon=e("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),t&&this._addClass(this.icon,null,i),this._attachIcon(o),s?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(o))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var i=(void 0===t.showLabel?this.options:t).showLabel,o=(void 0===t.icon?this.options:t).icon;i||o||(t.showLabel=!0),this._super(t)},_setOption:function(t,i){"icon"===t&&(i?this._updateIcon(t,i):this.icon&&(this.icon.remove(),this.iconSpace)&&this.iconSpace.remove()),"iconPosition"===t&&this._updateIcon(t,i),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!i),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(i):(this.element.html(i),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,i),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",i),this.element[0].disabled=i)&&this.element.trigger("blur")},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==e.uiBackCompat&&(e.widget("ui.button",e.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,i){"text"===t?this._super("showLabel",i):("showLabel"===t&&(this.options.text=i),"icon"===t&&(this.options.icons.primary=i),"icons"===t&&(i.primary?(this._super("icon",i.primary),this._super("iconPosition","beginning")):i.secondary&&(this._super("icon",i.secondary),this._super("iconPosition","end"))),this._superApply(arguments))}}),e.fn.button=(h=e.fn.button,function(o){var t="string"==typeof o,s=Array.prototype.slice.call(arguments,1),n=this;return t?this.length||"instance"!==o?this.each(function(){var t,i=e(this).attr("type"),i=e.data(this,"ui-"+("checkbox"!==i&&"radio"!==i?"button":"checkboxradio"));return"instance"===o?(n=i,!1):i?"function"!=typeof i[o]||"_"===o.charAt(0)?e.error("no such method '"+o+"' for button widget instance"):(t=i[o].apply(i,s))!==i&&void 0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:e.error("cannot call methods on button prior to initialization; attempted to call method '"+o+"'")}):n=void 0:(s.length&&(o=e.widget.extend.apply(null,[o].concat(s))),this.each(function(){var t=e(this).attr("type"),t="checkbox"!==t&&"radio"!==t?"button":"checkboxradio",i=e.data(this,"ui-"+t);i?(i.option(o||{}),i._init&&i._init()):"button"==t?h.call(e(this),o):e(this).checkboxradio(e.extend({icon:!1},o))})),n}),e.fn.buttonset=function(){return e.ui.controlgroup||e.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),e.ui.button}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/checkboxradio.js b/wp-includes/js/jquery/ui/checkboxradio.js
index 1eb43da..41e98cc 100644
--- a/wp-includes/js/jquery/ui/checkboxradio.js
+++ b/wp-includes/js/jquery/ui/checkboxradio.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Checkboxradio 1.13.2
- * http://jqueryui.com
+ * jQuery UI Checkboxradio 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Checkboxradio
//>>group: Widgets
//>>description: Enhances a form with multiple themeable checkboxes or radio buttons.
-//>>docs: http://api.jqueryui.com/checkboxradio/
-//>>demos: http://jqueryui.com/checkboxradio/
+//>>docs: https://api.jqueryui.com/checkboxradio/
+//>>demos: https://jqueryui.com/checkboxradio/
//>>css.structure: ../../themes/base/core.css
//>>css.structure: ../../themes/base/button.css
//>>css.structure: ../../themes/base/checkboxradio.css
@@ -25,7 +25,9 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./core"
+ "../form-reset-mixin",
+ "../labels",
+ "../widget"
], factory );
} else {
@@ -36,7 +38,7 @@
"use strict";
$.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
- version: "1.13.2",
+ version: "1.13.3",
options: {
disabled: null,
label: null,
diff --git a/wp-includes/js/jquery/ui/checkboxradio.min.js b/wp-includes/js/jquery/ui/checkboxradio.min.js
index 1388584..b287b82 100644
--- a/wp-includes/js/jquery/ui/checkboxradio.min.js
+++ b/wp-includes/js/jquery/ui/checkboxradio.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Checkboxradio 1.13.2
- * http://jqueryui.com
+ * jQuery UI Checkboxradio 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(t){"use strict";return t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.13.2",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,i=this._super()||{};return this._readType(),e=this.element.labels(),this.label=t(e[e.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",(e=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=e.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(i.label=this.originalLabel),null!=(e=this.element[0].disabled)&&(i.disabled=e),i},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||t.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e=this.element[0].name,i="input[name='"+t.escapeSelector(e)+"']";return e?(this.form.length?t(this.form[0].elements).filter(i):t(i).filter(function(){return 0===t(this)._form().length})).not(this.element):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each(function(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,i){"label"===e&&!i||(this._super(e,i),"disabled"===e?(this._toggleClass(this.label,null,"ui-state-disabled",i),this.element[0].disabled=i):this.refresh())},_updateIcon:function(e){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),(e=this.iconSpace?e.not(this.iconSpace[0]):e).remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,i=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),i!==this.options.disabled&&this._setOptions({disabled:i})}}]),t.ui.checkboxradio}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../form-reset-mixin","../labels","../widget"],e):e(jQuery)}(function(t){"use strict";return t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.13.3",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,i=this._super()||{};return this._readType(),e=this.element.labels(),this.label=t(e[e.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",(e=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=e.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(i.label=this.originalLabel),null!=(e=this.element[0].disabled)&&(i.disabled=e),i},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||t.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e=this.element[0].name,i="input[name='"+t.escapeSelector(e)+"']";return e?(this.form.length?t(this.form[0].elements).filter(i):t(i).filter(function(){return 0===t(this)._form().length})).not(this.element):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each(function(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,i){"label"===e&&!i||(this._super(e,i),"disabled"===e?(this._toggleClass(this.label,null,"ui-state-disabled",i),this.element[0].disabled=i):this.refresh())},_updateIcon:function(e){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),(e=this.iconSpace?e.not(this.iconSpace[0]):e).remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,i=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),i!==this.options.disabled&&this._setOptions({disabled:i})}}]),t.ui.checkboxradio}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/controlgroup.js b/wp-includes/js/jquery/ui/controlgroup.js
index 502b7c5..9ee7120 100644
--- a/wp-includes/js/jquery/ui/controlgroup.js
+++ b/wp-includes/js/jquery/ui/controlgroup.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Controlgroup 1.13.2
- * http://jqueryui.com
+ * jQuery UI Controlgroup 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Controlgroup
//>>group: Widgets
//>>description: Visually groups form control widgets
-//>>docs: http://api.jqueryui.com/controlgroup/
-//>>demos: http://jqueryui.com/controlgroup/
+//>>docs: https://api.jqueryui.com/controlgroup/
+//>>demos: https://jqueryui.com/controlgroup/
//>>css.structure: ../../themes/base/core.css
//>>css.structure: ../../themes/base/controlgroup.css
//>>css.theme: ../../themes/base/theme.css
@@ -24,7 +24,7 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./core"
+ "../widget"
], factory );
} else {
@@ -36,8 +36,8 @@
var controlgroupCornerRegex = /ui-corner-([a-z]){2,6}/g;
-$.widget( "ui.controlgroup", {
- version: "1.13.2",
+return $.widget( "ui.controlgroup", {
+ version: "1.13.3",
defaultElement: "<div>",
options: {
direction: "horizontal",
diff --git a/wp-includes/js/jquery/ui/controlgroup.min.js b/wp-includes/js/jquery/ui/controlgroup.min.js
index 17a67dd..3039b4d 100644
--- a/wp-includes/js/jquery/ui/controlgroup.min.js
+++ b/wp-includes/js/jquery/ui/controlgroup.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Controlgroup 1.13.2
- * http://jqueryui.com
+ * jQuery UI Controlgroup 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],t):t(jQuery)}(function(r){"use strict";var s=/ui-corner-([a-z]){2,6}/g;r.widget("ui.controlgroup",{version:"1.13.2",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var s=this,l=[];r.each(this.options.items,function(n,t){var e,o={};t&&("controlgroupLabel"===n?((e=s.element.find(t)).each(function(){var t=r(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),s._addClass(e,null,"ui-widget ui-widget-content ui-state-default"),l=l.concat(e.get())):r.fn[n]&&(o=s["_"+n+"Options"]?s["_"+n+"Options"]("middle"):{classes:{}},s.element.find(t).each(function(){var t=r(this),e=t[n]("instance"),i=r.widget.extend({},o);"button"===n&&t.parent(".ui-spinner").length||((e=e||t[n]()[n]("instance"))&&(i.classes=s._resolveClassesValues(i.classes,e)),t[n](i),i=t[n]("widget"),r.data(i[0],"ui-controlgroup-data",e||t[n]("instance")),l.push(i[0]))})))}),this.childWidgets=r(r.uniqueSort(l)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var t=r(this).data("ui-controlgroup-data");t&&t[e]&&t[e]()})},_updateCornerClass:function(t,e){e=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,e)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],n},_spinnerOptions:function(t){t=this._buildSimpleOptions(t,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,n){var o={};return r.each(i,function(t){var e=n.options.classes[t]||"",e=String.prototype.trim.call(e.replace(s,""));o[t]=(e+" "+i[t]).replace(/\s+/g," ")}),o},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?this._callChildMethod(e?"disable":"enable"):this.refresh()},refresh:function(){var o,s=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),o=this.childWidgets,(o=this.options.onlyVisible?o.filter(":visible"):o).length&&(r.each(["first","last"],function(t,e){var i,n=o[e]().data("ui-controlgroup-data");n&&s["_"+n.widgetName+"Options"]?((i=s["_"+n.widgetName+"Options"](1===o.length?"only":e)).classes=s._resolveClassesValues(i.classes,n),n.element[n.widgetName](i)):s._updateCornerClass(o[e](),e)}),this._callChildMethod("refresh"))}})}); \ No newline at end of file
+!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","../widget"],t):t(jQuery)}(function(r){"use strict";var s=/ui-corner-([a-z]){2,6}/g;return r.widget("ui.controlgroup",{version:"1.13.3",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var s=this,l=[];r.each(this.options.items,function(n,t){var e,o={};t&&("controlgroupLabel"===n?((e=s.element.find(t)).each(function(){var t=r(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),s._addClass(e,null,"ui-widget ui-widget-content ui-state-default"),l=l.concat(e.get())):r.fn[n]&&(o=s["_"+n+"Options"]?s["_"+n+"Options"]("middle"):{classes:{}},s.element.find(t).each(function(){var t=r(this),e=t[n]("instance"),i=r.widget.extend({},o);"button"===n&&t.parent(".ui-spinner").length||((e=e||t[n]()[n]("instance"))&&(i.classes=s._resolveClassesValues(i.classes,e)),t[n](i),i=t[n]("widget"),r.data(i[0],"ui-controlgroup-data",e||t[n]("instance")),l.push(i[0]))})))}),this.childWidgets=r(r.uniqueSort(l)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var t=r(this).data("ui-controlgroup-data");t&&t[e]&&t[e]()})},_updateCornerClass:function(t,e){e=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,e)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],n},_spinnerOptions:function(t){t=this._buildSimpleOptions(t,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,n){var o={};return r.each(i,function(t){var e=n.options.classes[t]||"",e=String.prototype.trim.call(e.replace(s,""));o[t]=(e+" "+i[t]).replace(/\s+/g," ")}),o},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?this._callChildMethod(e?"disable":"enable"):this.refresh()},refresh:function(){var o,s=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),o=this.childWidgets,(o=this.options.onlyVisible?o.filter(":visible"):o).length&&(r.each(["first","last"],function(t,e){var i,n=o[e]().data("ui-controlgroup-data");n&&s["_"+n.widgetName+"Options"]?((i=s["_"+n.widgetName+"Options"](1===o.length?"only":e)).classes=s._resolveClassesValues(i.classes,n),n.element[n.widgetName](i)):s._updateCornerClass(o[e](),e)}),this._callChildMethod("refresh"))}})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/core.js b/wp-includes/js/jquery/ui/core.js
index 45723ed..70cce59 100644
--- a/wp-includes/js/jquery/ui/core.js
+++ b/wp-includes/js/jquery/ui/core.js
@@ -1,5 +1,5 @@
-/*! jQuery UI - v1.13.2 - 2022-07-14
-* http://jqueryui.com
+/*! jQuery UI - v1.13.3 - 2024-04-26
+* https://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
( function( factory ) {
@@ -20,22 +20,22 @@
// Source: version.js
$.ui = $.ui || {};
-$.ui.version = "1.13.2";
+$.ui.version = "1.13.3";
// Source: data.js
/*!
- * jQuery UI :data 1.13.2
- * http://jqueryui.com
+ * jQuery UI :data 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: :data Selector
//>>group: Core
//>>description: Selects elements which have data stored under the specified key.
-//>>docs: http://api.jqueryui.com/data-selector/
+//>>docs: https://api.jqueryui.com/data-selector/
$.extend( $.expr.pseudos, {
data: $.expr.createPseudo ?
@@ -53,18 +53,18 @@ $.extend( $.expr.pseudos, {
// Source: disable-selection.js
/*!
- * jQuery UI Disable Selection 1.13.2
- * http://jqueryui.com
+ * jQuery UI Disable Selection 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: disableSelection
//>>group: Core
//>>description: Disable selection of text content within the set of matched elements.
-//>>docs: http://api.jqueryui.com/disableSelection/
+//>>docs: https://api.jqueryui.com/disableSelection/
// This file is deprecated
$.fn.extend( {
@@ -87,18 +87,18 @@ $.fn.extend( {
// Source: focusable.js
/*!
- * jQuery UI Focusable 1.13.2
- * http://jqueryui.com
+ * jQuery UI Focusable 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: :focusable Selector
//>>group: Core
//>>description: Selects elements which can be focused.
-//>>docs: http://api.jqueryui.com/focusable-selector/
+//>>docs: https://api.jqueryui.com/focusable-selector/
// Selectors
$.ui.focusable = function( element, hasTabindex ) {
@@ -164,18 +164,18 @@ $.fn._form = function() {
// Source: form-reset-mixin.js
/*!
- * jQuery UI Form Reset Mixin 1.13.2
- * http://jqueryui.com
+ * jQuery UI Form Reset Mixin 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Form Reset Mixin
//>>group: Core
//>>description: Refresh input widgets when their form is reset
-//>>docs: http://api.jqueryui.com/form-reset-mixin/
+//>>docs: https://api.jqueryui.com/form-reset-mixin/
$.ui.formResetMixin = {
_formResetHandler: function() {
@@ -229,12 +229,12 @@ $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
// Source: jquery-patch.js
/*!
- * jQuery UI Support for jQuery core 1.8.x and newer 1.13.2
- * http://jqueryui.com
+ * jQuery UI Support for jQuery core 1.8.x and newer 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*
*/
@@ -303,18 +303,18 @@ if ( !$.fn.even || !$.fn.odd ) {
// Source: keycode.js
/*!
- * jQuery UI Keycode 1.13.2
- * http://jqueryui.com
+ * jQuery UI Keycode 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Keycode
//>>group: Core
//>>description: Provide keycodes as keynames
-//>>docs: http://api.jqueryui.com/jQuery.ui.keyCode/
+//>>docs: https://api.jqueryui.com/jQuery.ui.keyCode/
$.ui.keyCode = {
BACKSPACE: 8,
@@ -337,18 +337,18 @@ $.ui.keyCode = {
// Source: labels.js
/*!
- * jQuery UI Labels 1.13.2
- * http://jqueryui.com
+ * jQuery UI Labels 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: labels
//>>group: Core
//>>description: Find all the labels associated with a given input
-//>>docs: http://api.jqueryui.com/labels/
+//>>docs: https://api.jqueryui.com/labels/
$.fn.labels = function() {
var ancestor, selector, id, labels, ancestors;
@@ -423,21 +423,21 @@ $.ui.plugin = {
// Source: position.js
/*!
- * jQuery UI Position 1.13.2
- * http://jqueryui.com
+ * jQuery UI Position 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*
- * http://api.jqueryui.com/position/
+ * https://api.jqueryui.com/position/
*/
//>>label: Position
//>>group: Core
//>>description: Positions elements relative to other elements.
-//>>docs: http://api.jqueryui.com/position/
-//>>demos: http://jqueryui.com/position/
+//>>docs: https://api.jqueryui.com/position/
+//>>demos: https://jqueryui.com/position/
( function() {
var cachedScrollbarWidth,
@@ -956,18 +956,18 @@ $.ui.safeBlur = function( element ) {
// Source: scroll-parent.js
/*!
- * jQuery UI Scroll Parent 1.13.2
- * http://jqueryui.com
+ * jQuery UI Scroll Parent 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: scrollParent
//>>group: Core
//>>description: Get the closest ancestor element that is scrollable.
-//>>docs: http://api.jqueryui.com/scrollParent/
+//>>docs: https://api.jqueryui.com/scrollParent/
$.fn.scrollParent = function( includeHidden ) {
var position = this.css( "position" ),
@@ -989,18 +989,18 @@ $.fn.scrollParent = function( includeHidden ) {
// Source: tabbable.js
/*!
- * jQuery UI Tabbable 1.13.2
- * http://jqueryui.com
+ * jQuery UI Tabbable 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: :tabbable Selector
//>>group: Core
//>>description: Selects elements which can be tabbed to.
-//>>docs: http://api.jqueryui.com/tabbable-selector/
+//>>docs: https://api.jqueryui.com/tabbable-selector/
$.extend( $.expr.pseudos, {
tabbable: function( element ) {
@@ -1012,18 +1012,18 @@ $.extend( $.expr.pseudos, {
// Source: unique-id.js
/*!
- * jQuery UI Unique ID 1.13.2
- * http://jqueryui.com
+ * jQuery UI Unique ID 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: uniqueId
//>>group: Core
//>>description: Functions to generate and remove uniqueId's
-//>>docs: http://api.jqueryui.com/uniqueId/
+//>>docs: https://api.jqueryui.com/uniqueId/
$.fn.extend( {
uniqueId: ( function() {
@@ -1049,19 +1049,19 @@ $.fn.extend( {
// Source: widget.js
/*!
- * jQuery UI Widget 1.13.2
- * http://jqueryui.com
+ * jQuery UI Widget 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Widget
//>>group: Core
//>>description: Provides a factory for creating stateful widgets with a common API.
-//>>docs: http://api.jqueryui.com/jQuery.widget/
-//>>demos: http://jqueryui.com/widget/
+//>>docs: https://api.jqueryui.com/jQuery.widget/
+//>>demos: https://jqueryui.com/widget/
var widgetUuid = 0;
var widgetHasOwnProperty = Array.prototype.hasOwnProperty;
diff --git a/wp-includes/js/jquery/ui/core.min.js b/wp-includes/js/jquery/ui/core.min.js
index 2d42e19..6cba7e3 100644
--- a/wp-includes/js/jquery/ui/core.min.js
+++ b/wp-includes/js/jquery/ui/core.min.js
@@ -1,116 +1,116 @@
-/*! jQuery UI - v1.13.2 - 2022-07-14
-* http://jqueryui.com
+/*! jQuery UI - v1.13.3 - 2024-04-26
+* https://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
-!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.2",
+!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.3",
/*!
- * jQuery UI :data 1.13.2
- * http://jqueryui.com
+ * jQuery UI :data 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}),
/*!
- * jQuery UI Disable Selection 1.13.2
- * http://jqueryui.com
+ * jQuery UI Disable Selection 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),
/*!
- * jQuery UI Focusable 1.13.2
- * http://jqueryui.com
+ * jQuery UI Focusable 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)},
/*!
- * jQuery UI Form Reset Mixin 1.13.2
- * http://jqueryui.com
+ * jQuery UI Form Reset Mixin 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),
/*!
- * jQuery UI Support for jQuery core 1.8.x and newer 1.13.2
- * http://jqueryui.com
+ * jQuery UI Support for jQuery core 1.8.x and newer 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*
*/
x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),
/*!
- * jQuery UI Keycode 1.13.2
- * http://jqueryui.com
+ * jQuery UI Keycode 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},
/*!
- * jQuery UI Labels 1.13.2
- * http://jqueryui.com
+ * jQuery UI Labels 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}},
/*!
- * jQuery UI Position 1.13.2
- * http://jqueryui.com
+ * jQuery UI Position 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*
- * http://api.jqueryui.com/position/
+ * https://api.jqueryui.com/position/
*/
W=Math.max,C=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,h=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return void 0!==n?n:(i=(e=x("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=N(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(f){var c,d,p,g,m,v,y,w,b,_,t,e;return f&&f.of?(v="string"==typeof(f=x.extend({},f)).of?x(document).find(f.of):x(f.of),y=x.position.getWithinInfo(f.within),w=x.position.getScrollInfo(y),b=(f.collision||"flip").split(" "),_={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:N(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(f.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(f[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):s.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=s.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],f[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===f.at[0]?m.left+=d:"center"===f.at[0]&&(m.left+=d/2),"bottom"===f.at[1]?m.top+=p:"center"===f.at[1]&&(m.top+=p/2),c=E(_.at,d,p),m.left+=c[0],m.top+=c[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=L(this,"marginLeft"),n=L(this,"marginTop"),o=l+e+L(this,"marginRight")+w.width,s=a+n+L(this,"marginBottom")+w.height,h=x.extend({},m),u=E(_.my,r.outerWidth(),r.outerHeight());"right"===f.my[0]?h.left-=l:"center"===f.my[0]&&(h.left-=l/2),"bottom"===f.my[1]?h.top-=a:"center"===f.my[1]&&(h.top-=a/2),h.left+=u[0],h.top+=u[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](h,{targetWidth:d,targetHeight:p,elemWidth:l,elemHeight:a,collisionPosition:i,collisionWidth:o,collisionHeight:s,offset:[c[0]+u[0],c[1]+u[1]],my:f.my,at:f.at,within:y,elem:r})}),f.using&&(t=function(t){var e=g.left-h.left,i=e+d-l,n=g.top-h.top,o=n+p-a,s={target:{element:v,left:g.left,top:g.top,width:d,height:p},element:{element:r,left:h.left,top:h.top,width:l,height:a},horizontal:i<0?"left":0<e?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};d<l&&C(e+i)<d&&(s.horizontal="center"),p<a&&C(n+o)<p&&(s.vertical="middle"),W(C(e),C(i))>W(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;e.collisionWidth>n?0<r&&l<=0?(i=t.left+r+e.collisionWidth-n-o,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?o+n-e.collisionWidth:o:0<r?t.left+=r:0<l?t.left-=l:t.left=W(t.left-s,t.left)},top:function(t,e){var i,n=e.within,n=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,r=n-s,l=s+e.collisionHeight-o-n;e.collisionHeight>o?0<r&&l<=0?(i=t.top+r+e.collisionHeight-o-n,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?n+o-e.collisionHeight:n:0<r?t.top+=r:0<l?t.top-=l:t.top=W(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,o=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,s=t.left-e.collisionPosition.marginLeft,r=s-i,s=s+e.collisionWidth-o-i,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,a="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((o=t.left+l+a+h+e.collisionWidth-o-n)<0||o<C(r))&&(t.left+=l+a+h):0<s&&(0<(n=t.left-e.collisionPosition.marginLeft+l+a+h-i)||C(n)<s)&&(t.left+=l+a+h)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,o=i.height,i=i.isWindow?i.scrollTop:i.offset.top,s=t.top-e.collisionPosition.marginTop,r=s-i,s=s+e.collisionHeight-o-i,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,a="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((o=t.top+l+a+h+e.collisionHeight-o-n)<0||o<C(r))&&(t.top+=l+a+h):0<s&&(0<(n=t.top-e.collisionPosition.marginTop+l+a+h-i)||C(n)<s)&&(t.top+=l+a+h)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}},x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=(i=i||e.body).nodeName?i:e.body},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")},
/*!
- * jQuery UI Scroll Parent 1.13.2
- * http://jqueryui.com
+ * jQuery UI Scroll Parent 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},
/*!
- * jQuery UI Tabbable 1.13.2
- * http://jqueryui.com
+ * jQuery UI Tabbable 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
x.extend(x.expr.pseudos,{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),
/*!
- * jQuery UI Unique ID 1.13.2
- * http://jqueryui.com
+ * jQuery UI Unique ID 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
x.fn.extend({uniqueId:(u=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}});
/*!
- * jQuery UI Widget 1.13.2
- * http://jqueryui.com
+ * jQuery UI Widget 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
var f,c=0,d=Array.prototype.hasOwnProperty,p=Array.prototype.slice;x.cleanData=(f=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");f(t)}),x.widget=function(t,i,e){var n,o,s,r={},l=t.split(".")[0],a=l+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[a.toLowerCase()]=function(t){return!!x.data(t,a)},x[l]=x[l]||{},n=x[l][t],o=x[l][t]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},x.extend(o,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(s=new i).options=x.widget.extend({},s.options),x.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}r[e]="function"!=typeof n?n:function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}}),o.prototype=x.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},r,{constructor:o,namespace:l,widgetName:t,widgetFullName:a}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),x.widget.bridge(t,o),o},x.widget.extend=function(t){for(var e,i,n=p.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],d.call(n[o],e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;x.fn[s]=function(i){var t="string"==typeof i,n=p.call(arguments,1),o=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(o=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+s+" widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?(function(){var i=[];o.element.each(function(t,e){x.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(o.element.get())))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return(o=x.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return e.element.toggleClass(this._classes(e),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),n=t[1]+l.eventNamespace,t=t[2];t?r.on(n,t,i):s.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n,o=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[o]?e[s](t):o!==s&&e[o]?e[o](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/datepicker.js b/wp-includes/js/jquery/ui/datepicker.js
index 7694718..212fb74 100644
--- a/wp-includes/js/jquery/ui/datepicker.js
+++ b/wp-includes/js/jquery/ui/datepicker.js
@@ -1,18 +1,18 @@
/* eslint-disable max-len, camelcase */
/*!
- * jQuery UI Datepicker 1.13.2
- * http://jqueryui.com
+ * jQuery UI Datepicker 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Datepicker
//>>group: Widgets
//>>description: Displays a calendar from an input or inline for selecting dates.
-//>>docs: http://api.jqueryui.com/datepicker/
-//>>demos: http://jqueryui.com/datepicker/
+//>>docs: https://api.jqueryui.com/datepicker/
+//>>demos: https://jqueryui.com/datepicker/
//>>css.structure: ../../themes/base/core.css
//>>css.structure: ../../themes/base/datepicker.css
//>>css.theme: ../../themes/base/theme.css
@@ -25,7 +25,8 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./core"
+ "../version",
+ "../keycode"
], factory );
} else {
@@ -35,7 +36,7 @@
} )( function( $ ) {
"use strict";
-$.extend( $.ui, { datepicker: { version: "1.13.2" } } );
+$.extend( $.ui, { datepicker: { version: "1.13.3" } } );
var datepicker_instActive;
@@ -352,7 +353,7 @@ $.extend( Datepicker.prototype, {
}
// Set display:block in place of inst.dpDiv.show() which won't work on disconnected elements
- // http://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height
+ // https://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height
inst.dpDiv.css( "display", "block" );
},
@@ -2232,7 +2233,7 @@ $.fn.datepicker = function( options ) {
$.datepicker = new Datepicker(); // singleton instance
$.datepicker.initialized = false;
$.datepicker.uuid = new Date().getTime();
-$.datepicker.version = "1.13.2";
+$.datepicker.version = "1.13.3";
return $.datepicker;
diff --git a/wp-includes/js/jquery/ui/datepicker.min.js b/wp-includes/js/jquery/ui/datepicker.min.js
index 2fca58a..8f26dcc 100644
--- a/wp-includes/js/jquery/ui/datepicker.min.js
+++ b/wp-includes/js/jquery/ui/datepicker.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Datepicker 1.13.2
- * http://jqueryui.com
+ * jQuery UI Datepicker 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(V){"use strict";var n;function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},V.extend(this._defaults,this.regional[""]),this.regional.en=V.extend(!0,{},this.regional[""]),this.regional["en-US"]=V.extend(!0,{},this.regional.en),this.dpDiv=a(V("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function a(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",t,function(){V(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",t,d)}function d(){V.datepicker._isDisabledDatepicker((n.inline?n.dpDiv.parent():n.input)[0])||(V(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),V(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).addClass("ui-datepicker-next-hover"))}function c(e,t){for(var a in V.extend(e,t),t)null==t[a]&&(e[a]=t[a])}return V.extend(V.ui,{datepicker:{version:"1.13.2"}}),V.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return c(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var a,i=e.nodeName.toLowerCase(),s="div"===i||"span"===i;e.id||(this.uuid+=1,e.id="dp"+this.uuid),(a=this._newInst(V(e),s)).settings=V.extend({},t||{}),"input"===i?this._connectDatepicker(e,a):s&&this._inlineDatepicker(e,a)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?a(V("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,t){var a=V(e);t.append=V([]),t.trigger=V([]),a.hasClass(this.markerClassName)||(this._attachments(a,t),a.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(t),V.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var a,i=this._get(t,"appendText"),s=this._get(t,"isRTL");t.append&&t.append.remove(),i&&(t.append=V("<span>").addClass(this._appendClass).text(i),e[s?"before":"after"](t.append)),e.off("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),"focus"!==(i=this._get(t,"showOn"))&&"both"!==i||e.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(i=this._get(t,"buttonText"),a=this._get(t,"buttonImage"),this._get(t,"buttonImageOnly")?t.trigger=V("<img>").addClass(this._triggerClass).attr({src:a,alt:i,title:i}):(t.trigger=V("<button type='button'>").addClass(this._triggerClass),a?t.trigger.html(V("<img>").attr({src:a,alt:i,title:i})):t.trigger.text(i)),e[s?"before":"after"](t.trigger),t.trigger.on("click",function(){return V.datepicker._datepickerShowing&&V.datepicker._lastInput===e[0]?V.datepicker._hideDatepicker():(V.datepicker._datepickerShowing&&V.datepicker._lastInput!==e[0]&&V.datepicker._hideDatepicker(),V.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){var t,a,i,s,r,n;this._get(e,"autoSize")&&!e.inline&&(r=new Date(2009,11,20),(n=this._get(e,"dateFormat")).match(/[DM]/)&&(r.setMonth((t=function(e){for(s=i=a=0;s<e.length;s++)e[s].length>a&&(a=e[s].length,i=s);return i})(this._get(e,n.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(t(this._get(e,n.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),e.input.attr("size",this._formatDate(e,r).length))},_inlineDatepicker:function(e,t){var a=V(e);a.hasClass(this.markerClassName)||(a.addClass(this.markerClassName).append(t.dpDiv),V.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,a,i,s){var r,n=this._dialogInst;return n||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=V("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),V("body").append(this._dialogInput),(n=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},V.data(this._dialogInput[0],"datepicker",n)),c(n.settings,i||{}),t=t&&t.constructor===Date?this._formatDate(n,t):t,this._dialogInput.val(t),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(r=document.documentElement.clientWidth,i=document.documentElement.clientHeight,t=document.documentElement.scrollLeft||document.body.scrollLeft,s=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[r/2-100+t,i/2-150+s]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),n.settings.onSelect=a,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),V.blockUI&&V.blockUI(this.dpDiv),V.data(this._dialogInput[0],"datepicker",n),this},_destroyDatepicker:function(e){var t,a=V(e),i=V.data(e,"datepicker");a.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),V.removeData(e,"datepicker"),"input"===t?(i.append.remove(),i.trigger.remove(),a.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==t&&"span"!==t||a.removeClass(this.markerClassName).empty(),n===i)&&(n=null,this._curInst=null)},_enableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(e)for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(e){try{return V.data(e,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,a){var i,s,r=this._getInst(e);if(2===arguments.length&&"string"==typeof t)return"defaults"===t?V.extend({},V.datepicker._defaults):r?"all"===t?V.extend({},r.settings):this._get(r,t):null;i=t||{},"string"==typeof t&&((i={})[t]=a),r&&(this._curInst===r&&this._hideDatepicker(),t=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(r,"min"),s=this._getMinMaxDate(r,"max"),c(r.settings,i),null!==a&&void 0!==i.dateFormat&&void 0===i.minDate&&(r.settings.minDate=this._formatDate(r,a)),null!==s&&void 0!==i.dateFormat&&void 0===i.maxDate&&(r.settings.maxDate=this._formatDate(r,s)),"disabled"in i&&(i.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(V(e),r),this._autoSize(r),this._setDate(r,t),this._updateAlternate(r),this._updateDatepicker(r))},_changeDatepicker:function(e,t,a){this._optionDatepicker(e,t,a)},_refreshDatepicker:function(e){e=this._getInst(e);e&&this._updateDatepicker(e)},_setDateDatepicker:function(e,t){e=this._getInst(e);e&&(this._setDate(e,t),this._updateDatepicker(e),this._updateAlternate(e))},_getDateDatepicker:function(e,t){e=this._getInst(e);return e&&!e.inline&&this._setDateFromField(e,t),e?this._getDate(e):null},_doKeyDown:function(e){var t,a,i=V.datepicker._getInst(e.target),s=!0,r=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,V.datepicker._datepickerShowing)switch(e.keyCode){case 9:V.datepicker._hideDatepicker(),s=!1;break;case 13:return(a=V("td."+V.datepicker._dayOverClass+":not(."+V.datepicker._currentClass+")",i.dpDiv))[0]&&V.datepicker._selectDay(e.target,i.selectedMonth,i.selectedYear,a[0]),(a=V.datepicker._get(i,"onSelect"))?(t=V.datepicker._formatDate(i),a.apply(i.input?i.input[0]:null,[t,i])):V.datepicker._hideDatepicker(),!1;case 27:V.datepicker._hideDatepicker();break;case 33:V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 34:V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&V.datepicker._clearDate(e.target),s=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&V.datepicker._gotoToday(e.target),s=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?1:-1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,-7,"D"),s=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?-1:1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,7,"D"),s=e.ctrlKey||e.metaKey;break;default:s=!1}else 36===e.keyCode&&e.ctrlKey?V.datepicker._showDatepicker(this):s=!1;s&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t,a=V.datepicker._getInst(e.target);if(V.datepicker._get(a,"constrainInput"))return a=V.datepicker._possibleChars(V.datepicker._get(a,"dateFormat")),t=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||t<" "||!a||-1<a.indexOf(t)},_doKeyUp:function(e){e=V.datepicker._getInst(e.target);if(e.input.val()!==e.lastVal)try{V.datepicker.parseDate(V.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,V.datepicker._getFormatConfig(e))&&(V.datepicker._setDateFromField(e),V.datepicker._updateAlternate(e),V.datepicker._updateDatepicker(e))}catch(e){}return!0},_showDatepicker:function(e){var t,a,i,s;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=V("input",e.parentNode)[0]),V.datepicker._isDisabledDatepicker(e)||V.datepicker._lastInput===e||(s=V.datepicker._getInst(e),V.datepicker._curInst&&V.datepicker._curInst!==s&&(V.datepicker._curInst.dpDiv.stop(!0,!0),s)&&V.datepicker._datepickerShowing&&V.datepicker._hideDatepicker(V.datepicker._curInst.input[0]),!1===(a=(a=V.datepicker._get(s,"beforeShow"))?a.apply(e,[e,s]):{}))||(c(s.settings,a),s.lastVal=null,V.datepicker._lastInput=e,V.datepicker._setDateFromField(s),V.datepicker._inDialog&&(e.value=""),V.datepicker._pos||(V.datepicker._pos=V.datepicker._findPos(e),V.datepicker._pos[1]+=e.offsetHeight),t=!1,V(e).parents().each(function(){return!(t|="fixed"===V(this).css("position"))}),a={left:V.datepicker._pos[0],top:V.datepicker._pos[1]},V.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),V.datepicker._updateDatepicker(s),a=V.datepicker._checkOffset(s,a,t),s.dpDiv.css({position:V.datepicker._inDialog&&V.blockUI?"static":t?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),s.inline)||(a=V.datepicker._get(s,"showAnim"),i=V.datepicker._get(s,"duration"),s.dpDiv.css("z-index",function(e){for(var t;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(t=parseInt(e.css("zIndex"),10),!isNaN(t))&&0!==t)return t;e=e.parent()}return 0}(V(e))+1),V.datepicker._datepickerShowing=!0,V.effects&&V.effects.effect[a]?s.dpDiv.show(a,V.datepicker._get(s,"showOptions"),i):s.dpDiv[a||"show"](a?i:null),V.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),V.datepicker._curInst=s)},_updateDatepicker:function(e){this.maxRows=4,(n=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var t,a=this._getNumberOfMonths(e),i=a[1],s=e.dpDiv.find("."+this._dayOverClass+" a"),r=V.datepicker._get(e,"onUpdateDatepicker");0<s.length&&d.apply(s.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<i&&e.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em"),e.dpDiv[(1!==a[0]||1!==a[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===V.datepicker._curInst&&V.datepicker._datepickerShowing&&V.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(t=e.yearshtml,setTimeout(function(){t===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year").first().replaceWith(e.yearshtml),t=e.yearshtml=null},0)),r&&r.apply(e.input?e.input[0]:null,[e])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,t,a){var i=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,n=e.input?e.input.outerHeight():0,d=document.documentElement.clientWidth+(a?0:V(document).scrollLeft()),c=document.documentElement.clientHeight+(a?0:V(document).scrollTop());return t.left-=this._get(e,"isRTL")?i-r:0,t.left-=a&&t.left===e.input.offset().left?V(document).scrollLeft():0,t.top-=a&&t.top===e.input.offset().top+n?V(document).scrollTop():0,t.left-=Math.min(t.left,t.left+i>d&&i<d?Math.abs(t.left+i-d):0),t.top-=Math.min(t.top,t.top+s>c&&s<c?Math.abs(s+n):0),t},_findPos:function(e){for(var t=this._getInst(e),a=this._get(t,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||V.expr.pseudos.hidden(e));)e=e[a?"previousSibling":"nextSibling"];return[(t=V(e).offset()).left,t.top]},_hideDatepicker:function(e){var t,a,i=this._curInst;!i||e&&i!==V.data(e,"datepicker")||this._datepickerShowing&&(e=this._get(i,"showAnim"),a=this._get(i,"duration"),t=function(){V.datepicker._tidyDialog(i)},V.effects&&(V.effects.effect[e]||V.effects[e])?i.dpDiv.hide(e,V.datepicker._get(i,"showOptions"),a,t):i.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?a:null,t),e||t(),this._datepickerShowing=!1,(a=this._get(i,"onClose"))&&a.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),V.blockUI)&&(V.unblockUI(),V("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){var t;V.datepicker._curInst&&(e=V(e.target),t=V.datepicker._getInst(e[0]),!(e[0].id===V.datepicker._mainDivId||0!==e.parents("#"+V.datepicker._mainDivId).length||e.hasClass(V.datepicker.markerClassName)||e.closest("."+V.datepicker._triggerClass).length||!V.datepicker._datepickerShowing||V.datepicker._inDialog&&V.blockUI)||e.hasClass(V.datepicker.markerClassName)&&V.datepicker._curInst!==t)&&V.datepicker._hideDatepicker()},_adjustDate:function(e,t,a){var e=V(e),i=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(i,t,a),this._updateDatepicker(i))},_gotoToday:function(e){var t,e=V(e),a=this._getInst(e[0]);this._get(a,"gotoCurrent")&&a.currentDay?(a.selectedDay=a.currentDay,a.drawMonth=a.selectedMonth=a.currentMonth,a.drawYear=a.selectedYear=a.currentYear):(t=new Date,a.selectedDay=t.getDate(),a.drawMonth=a.selectedMonth=t.getMonth(),a.drawYear=a.selectedYear=t.getFullYear()),this._notifyChange(a),this._adjustDate(e)},_selectMonthYear:function(e,t,a){var e=V(e),i=this._getInst(e[0]);i["selected"+("M"===a?"Month":"Year")]=i["draw"+("M"===a?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(i),this._adjustDate(e)},_selectDay:function(e,t,a,i){var s=V(e);V(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||((s=this._getInst(s[0])).selectedDay=s.currentDay=parseInt(V("a",i).attr("data-date")),s.selectedMonth=s.currentMonth=t,s.selectedYear=s.currentYear=a,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){e=V(e);this._selectDate(e,"")},_selectDate:function(e,t){var a,e=V(e),e=this._getInst(e[0]);t=null!=t?t:this._formatDate(e),e.input&&e.input.val(t),this._updateAlternate(e),(a=this._get(e,"onSelect"))?a.apply(e.input?e.input[0]:null,[t,e]):e.input&&e.input.trigger("change"),e.inline?this._updateDatepicker(e):(this._hideDatepicker(),this._lastInput=e.input[0],"object"!=typeof e.input[0]&&e.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var t,a,i=this._get(e,"altField");i&&(a=this._get(e,"altFormat")||this._get(e,"dateFormat"),t=this._getDate(e),a=this.formatDate(a,t,this._getFormatConfig(e)),V(document).find(i).val(a))},noWeekends:function(e){e=e.getDay();return[0<e&&e<6,""]},iso8601Week:function(e){var t,e=new Date(e.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(t,s,e){if(null==t||null==s)throw"Invalid arguments";if(""===(s="object"==typeof s?s.toString():s+""))return null;for(var a,i,r=0,n=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,n="string"!=typeof n?n:(new Date).getFullYear()%100+parseInt(n,10),d=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,c=(e?e.dayNames:null)||this._defaults.dayNames,o=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,l=(e?e.monthNames:null)||this._defaults.monthNames,h=-1,u=-1,p=-1,g=-1,_=!1,f=function(e){e=y+1<t.length&&t.charAt(y+1)===e;return e&&y++,e},k=function(e){var t=f(e),t="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,e=new RegExp("^\\d{"+("y"===e?t:1)+","+t+"}"),t=s.substring(r).match(e);if(t)return r+=t[0].length,parseInt(t[0],10);throw"Missing number at position "+r},D=function(e,t,a){var i=-1,e=V.map(f(e)?a:t,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(V.each(e,function(e,t){var a=t[1];if(s.substr(r,a.length).toLowerCase()===a.toLowerCase())return i=t[0],r+=a.length,!1}),-1!==i)return i+1;throw"Unknown name at position "+r},m=function(){if(s.charAt(r)!==t.charAt(y))throw"Unexpected literal at position "+r;r++},y=0;y<t.length;y++)if(_)"'"!==t.charAt(y)||f("'")?m():_=!1;else switch(t.charAt(y)){case"d":p=k("d");break;case"D":D("D",d,c);break;case"o":g=k("o");break;case"m":u=k("m");break;case"M":u=D("M",o,l);break;case"y":h=k("y");break;case"@":h=(i=new Date(k("@"))).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"!":h=(i=new Date((k("!")-this._ticksTo1970)/1e4)).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"'":f("'")?m():_=!0;break;default:m()}if(r<s.length&&(e=s.substr(r),!/^\s+/.test(e)))throw"Extra/unparsed characters found in date: "+e;if(-1===h?h=(new Date).getFullYear():h<100&&(h+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h<=n?0:-100)),-1<g)for(u=1,p=g;;){if(p<=(a=this._getDaysInMonth(h,u-1)))break;u++,p-=a}if((i=this._daylightSavingAdjust(new Date(h,u-1,p))).getFullYear()!==h||i.getMonth()+1!==u||i.getDate()!==p)throw"Invalid date";return i},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,a){if(!e)return"";function i(e,t,a){var i=""+t;if(l(e))for(;i.length<a;)i="0"+i;return i}function s(e,t,a,i){return(l(e)?i:a)[t]}var r,n=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,d=(a?a.dayNames:null)||this._defaults.dayNames,c=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,o=(a?a.monthNames:null)||this._defaults.monthNames,l=function(e){e=r+1<t.length&&t.charAt(r+1)===e;return e&&r++,e},h="",u=!1;if(e)for(r=0;r<t.length;r++)if(u)"'"!==t.charAt(r)||l("'")?h+=t.charAt(r):u=!1;else switch(t.charAt(r)){case"d":h+=i("d",e.getDate(),2);break;case"D":h+=s("D",e.getDay(),n,d);break;case"o":h+=i("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=i("m",e.getMonth()+1,2);break;case"M":h+=s("M",e.getMonth(),c,o);break;case"y":h+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":u=!0;break;default:h+=t.charAt(r)}return h},_possibleChars:function(t){for(var e="",a=!1,i=function(e){e=s+1<t.length&&t.charAt(s+1)===e;return e&&s++,e},s=0;s<t.length;s++)if(a)"'"!==t.charAt(s)||i("'")?e+=t.charAt(s):a=!1;else switch(t.charAt(s)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":i("'")?e+="'":a=!0;break;default:e+=t.charAt(s)}return e},_get:function(e,t){return(void 0!==e.settings[t]?e.settings:this._defaults)[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var a=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),r=s,n=this._getFormatConfig(e);try{r=this.parseDate(a,i,n)||s}catch(e){i=t?"":i}e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),e.currentDay=i?r.getDate():0,e.currentMonth=i?r.getMonth():0,e.currentYear=i?r.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(d,e,t){var a,i=null==e||""===e?t:"string"==typeof e?function(e){try{return V.datepicker.parseDate(V.datepicker._get(d,"dateFormat"),e,V.datepicker._getFormatConfig(d))}catch(e){}for(var t=(e.toLowerCase().match(/^c/)?V.datepicker._getDate(d):null)||new Date,a=t.getFullYear(),i=t.getMonth(),s=t.getDate(),r=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,n=r.exec(e);n;){switch(n[2]||"d"){case"d":case"D":s+=parseInt(n[1],10);break;case"w":case"W":s+=7*parseInt(n[1],10);break;case"m":case"M":i+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i));break;case"y":case"Y":a+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i))}n=r.exec(e)}return new Date(a,i,s)}(e):"number"==typeof e?isNaN(e)?t:(i=e,(a=new Date).setDate(a.getDate()+i),a):new Date(e.getTime());return(i=i&&"Invalid Date"===i.toString()?t:i)&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,t,a){var i=!t,s=e.selectedMonth,r=e.selectedYear,t=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=t.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=t.getMonth(),e.drawYear=e.selectedYear=e.currentYear=t.getFullYear(),s===e.selectedMonth&&r===e.selectedYear||a||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),a="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){V.datepicker._adjustDate(a,-t,"M")},next:function(){V.datepicker._adjustDate(a,+t,"M")},hide:function(){V.datepicker._hideDatepicker()},today:function(){V.datepicker._gotoToday(a)},selectDay:function(){return V.datepicker._selectDay(a,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return V.datepicker._selectMonthYear(a,this,"M"),!1},selectYear:function(){return V.datepicker._selectMonthYear(a,this,"Y"),!1}};V(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,a,i,s,r,O,L,R,H,n,d,W,c,o,l,h,u,p,g,_,f,k,E,D,m,U,y,P,z,v,M,b,w=new Date,B=this._daylightSavingAdjust(new Date(w.getFullYear(),w.getMonth(),w.getDate())),C=this._get(e,"isRTL"),w=this._get(e,"showButtonPanel"),I=this._get(e,"hideIfNoPrevNext"),x=this._get(e,"navigationAsDateFormat"),Y=this._getNumberOfMonths(e),S=this._get(e,"showCurrentAtPos"),F=this._get(e,"stepMonths"),J=1!==Y[0]||1!==Y[1],N=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),T=this._getMinMaxDate(e,"min"),A=this._getMinMaxDate(e,"max"),K=e.drawMonth-S,j=e.drawYear;if(K<0&&(K+=12,j--),A)for(t=this._daylightSavingAdjust(new Date(A.getFullYear(),A.getMonth()-Y[0]*Y[1]+1,A.getDate())),t=T&&t<T?T:t;this._daylightSavingAdjust(new Date(j,K,1))>t;)--K<0&&(K=11,j--);for(e.drawMonth=K,e.drawYear=j,S=this._get(e,"prevText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K-F,1)),this._getFormatConfig(e)):S,a=this._canAdjustMonth(e,-1,j,K)?V("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML,S=this._get(e,"nextText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K+F,1)),this._getFormatConfig(e)):S,i=this._canAdjustMonth(e,1,j,K)?V("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:S}).append(V("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML,F=this._get(e,"currentText"),I=this._get(e,"gotoCurrent")&&e.currentDay?N:B,F=x?this.formatDate(F,I,this._getFormatConfig(e)):F,S="",e.inline||(S=V("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),x="",w&&(x=V("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(C?S:"").append(this._isInRange(e,I)?V("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(F):"").append(C?"":S)[0].outerHTML),s=parseInt(this._get(e,"firstDay"),10),s=isNaN(s)?0:s,r=this._get(e,"showWeek"),O=this._get(e,"dayNames"),L=this._get(e,"dayNamesMin"),R=this._get(e,"monthNames"),H=this._get(e,"monthNamesShort"),n=this._get(e,"beforeShowDay"),d=this._get(e,"showOtherMonths"),W=this._get(e,"selectOtherMonths"),c=this._getDefaultDate(e),o="",h=0;h<Y[0];h++){for(u="",this.maxRows=4,p=0;p<Y[1];p++){if(g=this._daylightSavingAdjust(new Date(j,K,e.selectedDay)),_=" ui-corner-all",f="",J){if(f+="<div class='ui-datepicker-group",1<Y[1])switch(p){case 0:f+=" ui-datepicker-group-first",_=" ui-corner-"+(C?"right":"left");break;case Y[1]-1:f+=" ui-datepicker-group-last",_=" ui-corner-"+(C?"left":"right");break;default:f+=" ui-datepicker-group-middle",_=""}f+="'>"}for(f+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+_+"'>"+(/all|left/.test(_)&&0===h?C?i:a:"")+(/all|right/.test(_)&&0===h?C?a:i:"")+this._generateMonthYearHeader(e,K,j,T,A,0<h||0<p,R,H)+"</div><table class='ui-datepicker-calendar'><thead><tr>",k=r?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",l=0;l<7;l++)k+="<th scope='col'"+(5<=(l+s+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+O[E=(l+s)%7]+"'>"+L[E]+"</span></th>";for(f+=k+"</tr></thead><tbody>",m=this._getDaysInMonth(j,K),j===e.selectedYear&&K===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,m)),D=(this._getFirstDayOfMonth(j,K)-s+7)%7,m=Math.ceil((D+m)/7),U=J&&this.maxRows>m?this.maxRows:m,this.maxRows=U,y=this._daylightSavingAdjust(new Date(j,K,1-D)),P=0;P<U;P++){for(f+="<tr>",z=r?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(y)+"</td>":"",l=0;l<7;l++)v=n?n.apply(e.input?e.input[0]:null,[y]):[!0,""],b=(M=y.getMonth()!==K)&&!W||!v[0]||T&&y<T||A&&A<y,z+="<td class='"+(5<=(l+s+6)%7?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":"")+(y.getTime()===g.getTime()&&K===e.selectedMonth&&e._keyEvent||c.getTime()===y.getTime()&&c.getTime()===g.getTime()?" "+this._dayOverClass:"")+(b?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!d?"":" "+v[1]+(y.getTime()===N.getTime()?" "+this._currentClass:"")+(y.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(M&&!d||!v[2]?"":" title='"+v[2].replace(/'/g,"&#39;")+"'")+(b?"":" data-handler='selectDay' data-event='click' data-month='"+y.getMonth()+"' data-year='"+y.getFullYear()+"'")+">"+(M&&!d?"&#xa0;":b?"<span class='ui-state-default'>"+y.getDate()+"</span>":"<a class='ui-state-default"+(y.getTime()===B.getTime()?" ui-state-highlight":"")+(y.getTime()===N.getTime()?" ui-state-active":"")+(M?" ui-priority-secondary":"")+"' href='#' aria-current='"+(y.getTime()===N.getTime()?"true":"false")+"' data-date='"+y.getDate()+"'>"+y.getDate()+"</a>")+"</td>",y.setDate(y.getDate()+1),y=this._daylightSavingAdjust(y);f+=z+"</tr>"}11<++K&&(K=0,j++),u+=f+="</tbody></table>"+(J?"</div>"+(0<Y[0]&&p===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}o+=u}return o+=x,e._keyEvent=!1,o},_generateMonthYearHeader:function(e,t,a,i,s,r,n,d){var c,o,l,h,u,p,g=this._get(e,"changeMonth"),_=this._get(e,"changeYear"),f=this._get(e,"showMonthAfterYear"),k=this._get(e,"selectMonthLabel"),D=this._get(e,"selectYearLabel"),m="<div class='ui-datepicker-title'>",y="";if(r||!g)y+="<span class='ui-datepicker-month'>"+n[t]+"</span>";else{for(c=i&&i.getFullYear()===a,o=s&&s.getFullYear()===a,y+="<select class='ui-datepicker-month' aria-label='"+k+"' data-handler='selectMonth' data-event='change'>",l=0;l<12;l++)(!c||l>=i.getMonth())&&(!o||l<=s.getMonth())&&(y+="<option value='"+l+"'"+(l===t?" selected='selected'":"")+">"+d[l]+"</option>");y+="</select>"}if(f||(m+=y+(!r&&g&&_?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",r||!_)m+="<span class='ui-datepicker-year'>"+a+"</span>";else{for(n=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),u=(k=function(e){e=e.match(/c[+\-].*/)?a+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(e)?h:e})(n[0]),p=Math.max(u,k(n[1]||"")),u=i?Math.max(u,i.getFullYear()):u,p=s?Math.min(p,s.getFullYear()):p,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+D+"' data-handler='selectYear' data-event='change'>";u<=p;u++)e.yearshtml+="<option value='"+u+"'"+(u===a?" selected='selected'":"")+">"+u+"</option>";e.yearshtml+="</select>",m+=e.yearshtml,e.yearshtml=null}return m+=this._get(e,"yearSuffix"),f&&(m+=(!r&&g&&_?"":"&#xa0;")+y),m+="</div>"},_adjustInstDate:function(e,t,a){var i=e.selectedYear+("Y"===a?t:0),s=e.selectedMonth+("M"===a?t:0),t=Math.min(e.selectedDay,this._getDaysInMonth(i,s))+("D"===a?t:0),i=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,s,t)));e.selectedDay=i.getDate(),e.drawMonth=e.selectedMonth=i.getMonth(),e.drawYear=e.selectedYear=i.getFullYear(),"M"!==a&&"Y"!==a||this._notifyChange(e)},_restrictMinMax:function(e,t){var a=this._getMinMaxDate(e,"min"),e=this._getMinMaxDate(e,"max"),a=a&&t<a?a:t;return e&&e<a?e:a},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){e=this._get(e,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,a,i){var s=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(a,i+(t<0?t:s[0]*s[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var a,i=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),r=null,n=null,e=this._get(e,"yearRange");return e&&(e=e.split(":"),a=(new Date).getFullYear(),r=parseInt(e[0],10),n=parseInt(e[1],10),e[0].match(/[+\-].*/)&&(r+=a),e[1].match(/[+\-].*/))&&(n+=a),(!i||t.getTime()>=i.getTime())&&(!s||t.getTime()<=s.getTime())&&(!r||t.getFullYear()>=r)&&(!n||t.getFullYear()<=n)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,a,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);i=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,a,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),i,this._getFormatConfig(e))}}),V.fn.datepicker=function(e){if(!this.length)return this;V.datepicker.initialized||(V(document).on("mousedown",V.datepicker._checkExternalClick),V.datepicker.initialized=!0),0===V("#"+V.datepicker._mainDivId).length&&V("body").append(V.datepicker.dpDiv);var t=Array.prototype.slice.call(arguments,1);return"string"==typeof e&&("isDisabled"===e||"getDate"===e||"widget"===e)||"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this].concat(t)):V.datepicker._attachDatepicker(this,e)})},V.datepicker=new e,V.datepicker.initialized=!1,V.datepicker.uuid=(new Date).getTime(),V.datepicker.version="1.13.2",V.datepicker}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../keycode"],e):e(jQuery)}(function(V){"use strict";var n;function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},V.extend(this._defaults,this.regional[""]),this.regional.en=V.extend(!0,{},this.regional[""]),this.regional["en-US"]=V.extend(!0,{},this.regional.en),this.dpDiv=a(V("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function a(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",t,function(){V(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",t,d)}function d(){V.datepicker._isDisabledDatepicker((n.inline?n.dpDiv.parent():n.input)[0])||(V(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),V(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).addClass("ui-datepicker-next-hover"))}function c(e,t){for(var a in V.extend(e,t),t)null==t[a]&&(e[a]=t[a])}return V.extend(V.ui,{datepicker:{version:"1.13.3"}}),V.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return c(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var a,i=e.nodeName.toLowerCase(),s="div"===i||"span"===i;e.id||(this.uuid+=1,e.id="dp"+this.uuid),(a=this._newInst(V(e),s)).settings=V.extend({},t||{}),"input"===i?this._connectDatepicker(e,a):s&&this._inlineDatepicker(e,a)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?a(V("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,t){var a=V(e);t.append=V([]),t.trigger=V([]),a.hasClass(this.markerClassName)||(this._attachments(a,t),a.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(t),V.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var a,i=this._get(t,"appendText"),s=this._get(t,"isRTL");t.append&&t.append.remove(),i&&(t.append=V("<span>").addClass(this._appendClass).text(i),e[s?"before":"after"](t.append)),e.off("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),"focus"!==(i=this._get(t,"showOn"))&&"both"!==i||e.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(i=this._get(t,"buttonText"),a=this._get(t,"buttonImage"),this._get(t,"buttonImageOnly")?t.trigger=V("<img>").addClass(this._triggerClass).attr({src:a,alt:i,title:i}):(t.trigger=V("<button type='button'>").addClass(this._triggerClass),a?t.trigger.html(V("<img>").attr({src:a,alt:i,title:i})):t.trigger.text(i)),e[s?"before":"after"](t.trigger),t.trigger.on("click",function(){return V.datepicker._datepickerShowing&&V.datepicker._lastInput===e[0]?V.datepicker._hideDatepicker():(V.datepicker._datepickerShowing&&V.datepicker._lastInput!==e[0]&&V.datepicker._hideDatepicker(),V.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){var t,a,i,s,r,n;this._get(e,"autoSize")&&!e.inline&&(r=new Date(2009,11,20),(n=this._get(e,"dateFormat")).match(/[DM]/)&&(r.setMonth((t=function(e){for(s=i=a=0;s<e.length;s++)e[s].length>a&&(a=e[s].length,i=s);return i})(this._get(e,n.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(t(this._get(e,n.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),e.input.attr("size",this._formatDate(e,r).length))},_inlineDatepicker:function(e,t){var a=V(e);a.hasClass(this.markerClassName)||(a.addClass(this.markerClassName).append(t.dpDiv),V.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,a,i,s){var r,n=this._dialogInst;return n||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=V("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),V("body").append(this._dialogInput),(n=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},V.data(this._dialogInput[0],"datepicker",n)),c(n.settings,i||{}),t=t&&t.constructor===Date?this._formatDate(n,t):t,this._dialogInput.val(t),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(r=document.documentElement.clientWidth,i=document.documentElement.clientHeight,t=document.documentElement.scrollLeft||document.body.scrollLeft,s=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[r/2-100+t,i/2-150+s]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),n.settings.onSelect=a,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),V.blockUI&&V.blockUI(this.dpDiv),V.data(this._dialogInput[0],"datepicker",n),this},_destroyDatepicker:function(e){var t,a=V(e),i=V.data(e,"datepicker");a.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),V.removeData(e,"datepicker"),"input"===t?(i.append.remove(),i.trigger.remove(),a.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==t&&"span"!==t||a.removeClass(this.markerClassName).empty(),n===i)&&(n=null,this._curInst=null)},_enableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(e)for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(e){try{return V.data(e,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,a){var i,s,r=this._getInst(e);if(2===arguments.length&&"string"==typeof t)return"defaults"===t?V.extend({},V.datepicker._defaults):r?"all"===t?V.extend({},r.settings):this._get(r,t):null;i=t||{},"string"==typeof t&&((i={})[t]=a),r&&(this._curInst===r&&this._hideDatepicker(),t=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(r,"min"),s=this._getMinMaxDate(r,"max"),c(r.settings,i),null!==a&&void 0!==i.dateFormat&&void 0===i.minDate&&(r.settings.minDate=this._formatDate(r,a)),null!==s&&void 0!==i.dateFormat&&void 0===i.maxDate&&(r.settings.maxDate=this._formatDate(r,s)),"disabled"in i&&(i.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(V(e),r),this._autoSize(r),this._setDate(r,t),this._updateAlternate(r),this._updateDatepicker(r))},_changeDatepicker:function(e,t,a){this._optionDatepicker(e,t,a)},_refreshDatepicker:function(e){e=this._getInst(e);e&&this._updateDatepicker(e)},_setDateDatepicker:function(e,t){e=this._getInst(e);e&&(this._setDate(e,t),this._updateDatepicker(e),this._updateAlternate(e))},_getDateDatepicker:function(e,t){e=this._getInst(e);return e&&!e.inline&&this._setDateFromField(e,t),e?this._getDate(e):null},_doKeyDown:function(e){var t,a,i=V.datepicker._getInst(e.target),s=!0,r=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,V.datepicker._datepickerShowing)switch(e.keyCode){case 9:V.datepicker._hideDatepicker(),s=!1;break;case 13:return(a=V("td."+V.datepicker._dayOverClass+":not(."+V.datepicker._currentClass+")",i.dpDiv))[0]&&V.datepicker._selectDay(e.target,i.selectedMonth,i.selectedYear,a[0]),(a=V.datepicker._get(i,"onSelect"))?(t=V.datepicker._formatDate(i),a.apply(i.input?i.input[0]:null,[t,i])):V.datepicker._hideDatepicker(),!1;case 27:V.datepicker._hideDatepicker();break;case 33:V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 34:V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&V.datepicker._clearDate(e.target),s=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&V.datepicker._gotoToday(e.target),s=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?1:-1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,-7,"D"),s=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?-1:1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,7,"D"),s=e.ctrlKey||e.metaKey;break;default:s=!1}else 36===e.keyCode&&e.ctrlKey?V.datepicker._showDatepicker(this):s=!1;s&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t,a=V.datepicker._getInst(e.target);if(V.datepicker._get(a,"constrainInput"))return a=V.datepicker._possibleChars(V.datepicker._get(a,"dateFormat")),t=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||t<" "||!a||-1<a.indexOf(t)},_doKeyUp:function(e){e=V.datepicker._getInst(e.target);if(e.input.val()!==e.lastVal)try{V.datepicker.parseDate(V.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,V.datepicker._getFormatConfig(e))&&(V.datepicker._setDateFromField(e),V.datepicker._updateAlternate(e),V.datepicker._updateDatepicker(e))}catch(e){}return!0},_showDatepicker:function(e){var t,a,i,s;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=V("input",e.parentNode)[0]),V.datepicker._isDisabledDatepicker(e)||V.datepicker._lastInput===e||(s=V.datepicker._getInst(e),V.datepicker._curInst&&V.datepicker._curInst!==s&&(V.datepicker._curInst.dpDiv.stop(!0,!0),s)&&V.datepicker._datepickerShowing&&V.datepicker._hideDatepicker(V.datepicker._curInst.input[0]),!1===(a=(a=V.datepicker._get(s,"beforeShow"))?a.apply(e,[e,s]):{}))||(c(s.settings,a),s.lastVal=null,V.datepicker._lastInput=e,V.datepicker._setDateFromField(s),V.datepicker._inDialog&&(e.value=""),V.datepicker._pos||(V.datepicker._pos=V.datepicker._findPos(e),V.datepicker._pos[1]+=e.offsetHeight),t=!1,V(e).parents().each(function(){return!(t|="fixed"===V(this).css("position"))}),a={left:V.datepicker._pos[0],top:V.datepicker._pos[1]},V.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),V.datepicker._updateDatepicker(s),a=V.datepicker._checkOffset(s,a,t),s.dpDiv.css({position:V.datepicker._inDialog&&V.blockUI?"static":t?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),s.inline)||(a=V.datepicker._get(s,"showAnim"),i=V.datepicker._get(s,"duration"),s.dpDiv.css("z-index",function(e){for(var t;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(t=parseInt(e.css("zIndex"),10),!isNaN(t))&&0!==t)return t;e=e.parent()}return 0}(V(e))+1),V.datepicker._datepickerShowing=!0,V.effects&&V.effects.effect[a]?s.dpDiv.show(a,V.datepicker._get(s,"showOptions"),i):s.dpDiv[a||"show"](a?i:null),V.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),V.datepicker._curInst=s)},_updateDatepicker:function(e){this.maxRows=4,(n=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var t,a=this._getNumberOfMonths(e),i=a[1],s=e.dpDiv.find("."+this._dayOverClass+" a"),r=V.datepicker._get(e,"onUpdateDatepicker");0<s.length&&d.apply(s.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<i&&e.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em"),e.dpDiv[(1!==a[0]||1!==a[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===V.datepicker._curInst&&V.datepicker._datepickerShowing&&V.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(t=e.yearshtml,setTimeout(function(){t===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year").first().replaceWith(e.yearshtml),t=e.yearshtml=null},0)),r&&r.apply(e.input?e.input[0]:null,[e])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,t,a){var i=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,n=e.input?e.input.outerHeight():0,d=document.documentElement.clientWidth+(a?0:V(document).scrollLeft()),c=document.documentElement.clientHeight+(a?0:V(document).scrollTop());return t.left-=this._get(e,"isRTL")?i-r:0,t.left-=a&&t.left===e.input.offset().left?V(document).scrollLeft():0,t.top-=a&&t.top===e.input.offset().top+n?V(document).scrollTop():0,t.left-=Math.min(t.left,t.left+i>d&&i<d?Math.abs(t.left+i-d):0),t.top-=Math.min(t.top,t.top+s>c&&s<c?Math.abs(s+n):0),t},_findPos:function(e){for(var t=this._getInst(e),a=this._get(t,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||V.expr.pseudos.hidden(e));)e=e[a?"previousSibling":"nextSibling"];return[(t=V(e).offset()).left,t.top]},_hideDatepicker:function(e){var t,a,i=this._curInst;!i||e&&i!==V.data(e,"datepicker")||this._datepickerShowing&&(e=this._get(i,"showAnim"),a=this._get(i,"duration"),t=function(){V.datepicker._tidyDialog(i)},V.effects&&(V.effects.effect[e]||V.effects[e])?i.dpDiv.hide(e,V.datepicker._get(i,"showOptions"),a,t):i.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?a:null,t),e||t(),this._datepickerShowing=!1,(a=this._get(i,"onClose"))&&a.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),V.blockUI)&&(V.unblockUI(),V("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){var t;V.datepicker._curInst&&(e=V(e.target),t=V.datepicker._getInst(e[0]),!(e[0].id===V.datepicker._mainDivId||0!==e.parents("#"+V.datepicker._mainDivId).length||e.hasClass(V.datepicker.markerClassName)||e.closest("."+V.datepicker._triggerClass).length||!V.datepicker._datepickerShowing||V.datepicker._inDialog&&V.blockUI)||e.hasClass(V.datepicker.markerClassName)&&V.datepicker._curInst!==t)&&V.datepicker._hideDatepicker()},_adjustDate:function(e,t,a){var e=V(e),i=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(i,t,a),this._updateDatepicker(i))},_gotoToday:function(e){var t,e=V(e),a=this._getInst(e[0]);this._get(a,"gotoCurrent")&&a.currentDay?(a.selectedDay=a.currentDay,a.drawMonth=a.selectedMonth=a.currentMonth,a.drawYear=a.selectedYear=a.currentYear):(t=new Date,a.selectedDay=t.getDate(),a.drawMonth=a.selectedMonth=t.getMonth(),a.drawYear=a.selectedYear=t.getFullYear()),this._notifyChange(a),this._adjustDate(e)},_selectMonthYear:function(e,t,a){var e=V(e),i=this._getInst(e[0]);i["selected"+("M"===a?"Month":"Year")]=i["draw"+("M"===a?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(i),this._adjustDate(e)},_selectDay:function(e,t,a,i){var s=V(e);V(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||((s=this._getInst(s[0])).selectedDay=s.currentDay=parseInt(V("a",i).attr("data-date")),s.selectedMonth=s.currentMonth=t,s.selectedYear=s.currentYear=a,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){e=V(e);this._selectDate(e,"")},_selectDate:function(e,t){var a,e=V(e),e=this._getInst(e[0]);t=null!=t?t:this._formatDate(e),e.input&&e.input.val(t),this._updateAlternate(e),(a=this._get(e,"onSelect"))?a.apply(e.input?e.input[0]:null,[t,e]):e.input&&e.input.trigger("change"),e.inline?this._updateDatepicker(e):(this._hideDatepicker(),this._lastInput=e.input[0],"object"!=typeof e.input[0]&&e.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var t,a,i=this._get(e,"altField");i&&(a=this._get(e,"altFormat")||this._get(e,"dateFormat"),t=this._getDate(e),a=this.formatDate(a,t,this._getFormatConfig(e)),V(document).find(i).val(a))},noWeekends:function(e){e=e.getDay();return[0<e&&e<6,""]},iso8601Week:function(e){var t,e=new Date(e.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(t,s,e){if(null==t||null==s)throw"Invalid arguments";if(""===(s="object"==typeof s?s.toString():s+""))return null;for(var a,i,r=0,n=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,n="string"!=typeof n?n:(new Date).getFullYear()%100+parseInt(n,10),d=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,c=(e?e.dayNames:null)||this._defaults.dayNames,o=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,l=(e?e.monthNames:null)||this._defaults.monthNames,h=-1,u=-1,p=-1,g=-1,_=!1,f=function(e){e=y+1<t.length&&t.charAt(y+1)===e;return e&&y++,e},k=function(e){var t=f(e),t="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,e=new RegExp("^\\d{"+("y"===e?t:1)+","+t+"}"),t=s.substring(r).match(e);if(t)return r+=t[0].length,parseInt(t[0],10);throw"Missing number at position "+r},D=function(e,t,a){var i=-1,e=V.map(f(e)?a:t,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(V.each(e,function(e,t){var a=t[1];if(s.substr(r,a.length).toLowerCase()===a.toLowerCase())return i=t[0],r+=a.length,!1}),-1!==i)return i+1;throw"Unknown name at position "+r},m=function(){if(s.charAt(r)!==t.charAt(y))throw"Unexpected literal at position "+r;r++},y=0;y<t.length;y++)if(_)"'"!==t.charAt(y)||f("'")?m():_=!1;else switch(t.charAt(y)){case"d":p=k("d");break;case"D":D("D",d,c);break;case"o":g=k("o");break;case"m":u=k("m");break;case"M":u=D("M",o,l);break;case"y":h=k("y");break;case"@":h=(i=new Date(k("@"))).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"!":h=(i=new Date((k("!")-this._ticksTo1970)/1e4)).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"'":f("'")?m():_=!0;break;default:m()}if(r<s.length&&(e=s.substr(r),!/^\s+/.test(e)))throw"Extra/unparsed characters found in date: "+e;if(-1===h?h=(new Date).getFullYear():h<100&&(h+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h<=n?0:-100)),-1<g)for(u=1,p=g;;){if(p<=(a=this._getDaysInMonth(h,u-1)))break;u++,p-=a}if((i=this._daylightSavingAdjust(new Date(h,u-1,p))).getFullYear()!==h||i.getMonth()+1!==u||i.getDate()!==p)throw"Invalid date";return i},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,a){if(!e)return"";function i(e,t,a){var i=""+t;if(l(e))for(;i.length<a;)i="0"+i;return i}function s(e,t,a,i){return(l(e)?i:a)[t]}var r,n=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,d=(a?a.dayNames:null)||this._defaults.dayNames,c=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,o=(a?a.monthNames:null)||this._defaults.monthNames,l=function(e){e=r+1<t.length&&t.charAt(r+1)===e;return e&&r++,e},h="",u=!1;if(e)for(r=0;r<t.length;r++)if(u)"'"!==t.charAt(r)||l("'")?h+=t.charAt(r):u=!1;else switch(t.charAt(r)){case"d":h+=i("d",e.getDate(),2);break;case"D":h+=s("D",e.getDay(),n,d);break;case"o":h+=i("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=i("m",e.getMonth()+1,2);break;case"M":h+=s("M",e.getMonth(),c,o);break;case"y":h+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":u=!0;break;default:h+=t.charAt(r)}return h},_possibleChars:function(t){for(var e="",a=!1,i=function(e){e=s+1<t.length&&t.charAt(s+1)===e;return e&&s++,e},s=0;s<t.length;s++)if(a)"'"!==t.charAt(s)||i("'")?e+=t.charAt(s):a=!1;else switch(t.charAt(s)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":i("'")?e+="'":a=!0;break;default:e+=t.charAt(s)}return e},_get:function(e,t){return(void 0!==e.settings[t]?e.settings:this._defaults)[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var a=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),r=s,n=this._getFormatConfig(e);try{r=this.parseDate(a,i,n)||s}catch(e){i=t?"":i}e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),e.currentDay=i?r.getDate():0,e.currentMonth=i?r.getMonth():0,e.currentYear=i?r.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(d,e,t){var a,i=null==e||""===e?t:"string"==typeof e?function(e){try{return V.datepicker.parseDate(V.datepicker._get(d,"dateFormat"),e,V.datepicker._getFormatConfig(d))}catch(e){}for(var t=(e.toLowerCase().match(/^c/)?V.datepicker._getDate(d):null)||new Date,a=t.getFullYear(),i=t.getMonth(),s=t.getDate(),r=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,n=r.exec(e);n;){switch(n[2]||"d"){case"d":case"D":s+=parseInt(n[1],10);break;case"w":case"W":s+=7*parseInt(n[1],10);break;case"m":case"M":i+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i));break;case"y":case"Y":a+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i))}n=r.exec(e)}return new Date(a,i,s)}(e):"number"==typeof e?isNaN(e)?t:(i=e,(a=new Date).setDate(a.getDate()+i),a):new Date(e.getTime());return(i=i&&"Invalid Date"===i.toString()?t:i)&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,t,a){var i=!t,s=e.selectedMonth,r=e.selectedYear,t=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=t.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=t.getMonth(),e.drawYear=e.selectedYear=e.currentYear=t.getFullYear(),s===e.selectedMonth&&r===e.selectedYear||a||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),a="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){V.datepicker._adjustDate(a,-t,"M")},next:function(){V.datepicker._adjustDate(a,+t,"M")},hide:function(){V.datepicker._hideDatepicker()},today:function(){V.datepicker._gotoToday(a)},selectDay:function(){return V.datepicker._selectDay(a,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return V.datepicker._selectMonthYear(a,this,"M"),!1},selectYear:function(){return V.datepicker._selectMonthYear(a,this,"Y"),!1}};V(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,a,i,s,r,O,L,R,H,n,d,W,c,o,l,h,u,p,g,_,f,k,E,D,m,U,y,P,z,v,M,b,w=new Date,B=this._daylightSavingAdjust(new Date(w.getFullYear(),w.getMonth(),w.getDate())),C=this._get(e,"isRTL"),w=this._get(e,"showButtonPanel"),I=this._get(e,"hideIfNoPrevNext"),x=this._get(e,"navigationAsDateFormat"),Y=this._getNumberOfMonths(e),S=this._get(e,"showCurrentAtPos"),F=this._get(e,"stepMonths"),J=1!==Y[0]||1!==Y[1],N=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),T=this._getMinMaxDate(e,"min"),A=this._getMinMaxDate(e,"max"),K=e.drawMonth-S,j=e.drawYear;if(K<0&&(K+=12,j--),A)for(t=this._daylightSavingAdjust(new Date(A.getFullYear(),A.getMonth()-Y[0]*Y[1]+1,A.getDate())),t=T&&t<T?T:t;this._daylightSavingAdjust(new Date(j,K,1))>t;)--K<0&&(K=11,j--);for(e.drawMonth=K,e.drawYear=j,S=this._get(e,"prevText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K-F,1)),this._getFormatConfig(e)):S,a=this._canAdjustMonth(e,-1,j,K)?V("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML,S=this._get(e,"nextText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K+F,1)),this._getFormatConfig(e)):S,i=this._canAdjustMonth(e,1,j,K)?V("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:S}).append(V("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML,F=this._get(e,"currentText"),I=this._get(e,"gotoCurrent")&&e.currentDay?N:B,F=x?this.formatDate(F,I,this._getFormatConfig(e)):F,S="",e.inline||(S=V("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),x="",w&&(x=V("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(C?S:"").append(this._isInRange(e,I)?V("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(F):"").append(C?"":S)[0].outerHTML),s=parseInt(this._get(e,"firstDay"),10),s=isNaN(s)?0:s,r=this._get(e,"showWeek"),O=this._get(e,"dayNames"),L=this._get(e,"dayNamesMin"),R=this._get(e,"monthNames"),H=this._get(e,"monthNamesShort"),n=this._get(e,"beforeShowDay"),d=this._get(e,"showOtherMonths"),W=this._get(e,"selectOtherMonths"),c=this._getDefaultDate(e),o="",h=0;h<Y[0];h++){for(u="",this.maxRows=4,p=0;p<Y[1];p++){if(g=this._daylightSavingAdjust(new Date(j,K,e.selectedDay)),_=" ui-corner-all",f="",J){if(f+="<div class='ui-datepicker-group",1<Y[1])switch(p){case 0:f+=" ui-datepicker-group-first",_=" ui-corner-"+(C?"right":"left");break;case Y[1]-1:f+=" ui-datepicker-group-last",_=" ui-corner-"+(C?"left":"right");break;default:f+=" ui-datepicker-group-middle",_=""}f+="'>"}for(f+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+_+"'>"+(/all|left/.test(_)&&0===h?C?i:a:"")+(/all|right/.test(_)&&0===h?C?a:i:"")+this._generateMonthYearHeader(e,K,j,T,A,0<h||0<p,R,H)+"</div><table class='ui-datepicker-calendar'><thead><tr>",k=r?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",l=0;l<7;l++)k+="<th scope='col'"+(5<=(l+s+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+O[E=(l+s)%7]+"'>"+L[E]+"</span></th>";for(f+=k+"</tr></thead><tbody>",m=this._getDaysInMonth(j,K),j===e.selectedYear&&K===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,m)),D=(this._getFirstDayOfMonth(j,K)-s+7)%7,m=Math.ceil((D+m)/7),U=J&&this.maxRows>m?this.maxRows:m,this.maxRows=U,y=this._daylightSavingAdjust(new Date(j,K,1-D)),P=0;P<U;P++){for(f+="<tr>",z=r?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(y)+"</td>":"",l=0;l<7;l++)v=n?n.apply(e.input?e.input[0]:null,[y]):[!0,""],b=(M=y.getMonth()!==K)&&!W||!v[0]||T&&y<T||A&&A<y,z+="<td class='"+(5<=(l+s+6)%7?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":"")+(y.getTime()===g.getTime()&&K===e.selectedMonth&&e._keyEvent||c.getTime()===y.getTime()&&c.getTime()===g.getTime()?" "+this._dayOverClass:"")+(b?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!d?"":" "+v[1]+(y.getTime()===N.getTime()?" "+this._currentClass:"")+(y.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(M&&!d||!v[2]?"":" title='"+v[2].replace(/'/g,"&#39;")+"'")+(b?"":" data-handler='selectDay' data-event='click' data-month='"+y.getMonth()+"' data-year='"+y.getFullYear()+"'")+">"+(M&&!d?"&#xa0;":b?"<span class='ui-state-default'>"+y.getDate()+"</span>":"<a class='ui-state-default"+(y.getTime()===B.getTime()?" ui-state-highlight":"")+(y.getTime()===N.getTime()?" ui-state-active":"")+(M?" ui-priority-secondary":"")+"' href='#' aria-current='"+(y.getTime()===N.getTime()?"true":"false")+"' data-date='"+y.getDate()+"'>"+y.getDate()+"</a>")+"</td>",y.setDate(y.getDate()+1),y=this._daylightSavingAdjust(y);f+=z+"</tr>"}11<++K&&(K=0,j++),u+=f+="</tbody></table>"+(J?"</div>"+(0<Y[0]&&p===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}o+=u}return o+=x,e._keyEvent=!1,o},_generateMonthYearHeader:function(e,t,a,i,s,r,n,d){var c,o,l,h,u,p,g=this._get(e,"changeMonth"),_=this._get(e,"changeYear"),f=this._get(e,"showMonthAfterYear"),k=this._get(e,"selectMonthLabel"),D=this._get(e,"selectYearLabel"),m="<div class='ui-datepicker-title'>",y="";if(r||!g)y+="<span class='ui-datepicker-month'>"+n[t]+"</span>";else{for(c=i&&i.getFullYear()===a,o=s&&s.getFullYear()===a,y+="<select class='ui-datepicker-month' aria-label='"+k+"' data-handler='selectMonth' data-event='change'>",l=0;l<12;l++)(!c||l>=i.getMonth())&&(!o||l<=s.getMonth())&&(y+="<option value='"+l+"'"+(l===t?" selected='selected'":"")+">"+d[l]+"</option>");y+="</select>"}if(f||(m+=y+(!r&&g&&_?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",r||!_)m+="<span class='ui-datepicker-year'>"+a+"</span>";else{for(n=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),u=(k=function(e){e=e.match(/c[+\-].*/)?a+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(e)?h:e})(n[0]),p=Math.max(u,k(n[1]||"")),u=i?Math.max(u,i.getFullYear()):u,p=s?Math.min(p,s.getFullYear()):p,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+D+"' data-handler='selectYear' data-event='change'>";u<=p;u++)e.yearshtml+="<option value='"+u+"'"+(u===a?" selected='selected'":"")+">"+u+"</option>";e.yearshtml+="</select>",m+=e.yearshtml,e.yearshtml=null}return m+=this._get(e,"yearSuffix"),f&&(m+=(!r&&g&&_?"":"&#xa0;")+y),m+="</div>"},_adjustInstDate:function(e,t,a){var i=e.selectedYear+("Y"===a?t:0),s=e.selectedMonth+("M"===a?t:0),t=Math.min(e.selectedDay,this._getDaysInMonth(i,s))+("D"===a?t:0),i=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,s,t)));e.selectedDay=i.getDate(),e.drawMonth=e.selectedMonth=i.getMonth(),e.drawYear=e.selectedYear=i.getFullYear(),"M"!==a&&"Y"!==a||this._notifyChange(e)},_restrictMinMax:function(e,t){var a=this._getMinMaxDate(e,"min"),e=this._getMinMaxDate(e,"max"),a=a&&t<a?a:t;return e&&e<a?e:a},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){e=this._get(e,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,a,i){var s=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(a,i+(t<0?t:s[0]*s[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var a,i=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),r=null,n=null,e=this._get(e,"yearRange");return e&&(e=e.split(":"),a=(new Date).getFullYear(),r=parseInt(e[0],10),n=parseInt(e[1],10),e[0].match(/[+\-].*/)&&(r+=a),e[1].match(/[+\-].*/))&&(n+=a),(!i||t.getTime()>=i.getTime())&&(!s||t.getTime()<=s.getTime())&&(!r||t.getFullYear()>=r)&&(!n||t.getFullYear()<=n)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,a,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);i=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,a,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),i,this._getFormatConfig(e))}}),V.fn.datepicker=function(e){if(!this.length)return this;V.datepicker.initialized||(V(document).on("mousedown",V.datepicker._checkExternalClick),V.datepicker.initialized=!0),0===V("#"+V.datepicker._mainDivId).length&&V("body").append(V.datepicker.dpDiv);var t=Array.prototype.slice.call(arguments,1);return"string"==typeof e&&("isDisabled"===e||"getDate"===e||"widget"===e)||"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this].concat(t)):V.datepicker._attachDatepicker(this,e)})},V.datepicker=new e,V.datepicker.initialized=!1,V.datepicker.uuid=(new Date).getTime(),V.datepicker.version="1.13.3",V.datepicker}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/dialog.js b/wp-includes/js/jquery/ui/dialog.js
index e3caf78..bc9da5a 100644
--- a/wp-includes/js/jquery/ui/dialog.js
+++ b/wp-includes/js/jquery/ui/dialog.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Dialog 1.13.2
- * http://jqueryui.com
+ * jQuery UI Dialog 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Dialog
//>>group: Widgets
//>>description: Displays customizable dialog windows.
-//>>docs: http://api.jqueryui.com/dialog/
-//>>demos: http://jqueryui.com/dialog/
+//>>docs: https://api.jqueryui.com/dialog/
+//>>demos: https://jqueryui.com/dialog/
//>>css.structure: ../../themes/base/core.css
//>>css.structure: ../../themes/base/dialog.css
//>>css.theme: ../../themes/base/theme.css
@@ -28,7 +28,15 @@
"./draggable",
"./mouse",
"./resizable",
- "./core"
+ "../focusable",
+ "../keycode",
+ "../position",
+ "../safe-active-element",
+ "../safe-blur",
+ "../tabbable",
+ "../unique-id",
+ "../version",
+ "../widget"
], factory );
} else {
@@ -39,7 +47,7 @@
"use strict";
$.widget( "ui.dialog", {
- version: "1.13.2",
+ version: "1.13.3",
options: {
appendTo: "body",
autoOpen: true,
@@ -873,12 +881,15 @@ $.widget( "ui.dialog", {
event.preventDefault();
instance._focusTabbable();
- // Support: jQuery >=3.4 <3.6 only
- // Focus re-triggering in jQuery 3.4/3.5 makes the original element
- // have its focus event propagated last, breaking the re-targeting.
- // Trigger focus in a delay in addition if needed to avoid the issue
+ // Support: jQuery >=3.4 <3.7 only
+ // In jQuery 3.4-3.6, there are multiple issues with focus/blur
+ // trigger chains or when triggering is done on a hidden element
+ // at least once.
+ // Trigger focus in a delay in addition if needed to avoid the issues.
// See https://github.com/jquery/jquery/issues/4382
- if ( jqMinor === "3.4." || jqMinor === "3.5." ) {
+ // See https://github.com/jquery/jquery/issues/4856
+ // See https://github.com/jquery/jquery/issues/4950
+ if ( jqMinor === "3.4." || jqMinor === "3.5." || jqMinor === "3.6." ) {
instance._delay( instance._restoreTabbableFocus );
}
}
diff --git a/wp-includes/js/jquery/ui/dialog.min.js b/wp-includes/js/jquery/ui/dialog.min.js
index 646fad1..d811b9b 100644
--- a/wp-includes/js/jquery/ui/dialog.min.js
+++ b/wp-includes/js/jquery/ui/dialog.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Dialog 1.13.2
- * http://jqueryui.com
+ * jQuery UI Dialog 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery","./button","./draggable","./mouse","./resizable","./core"],i):i(jQuery)}(function(l){"use strict";return l.widget("ui.dialog",{version:"1.13.2",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(i){var t=l(this).css(i).offset().top;t<0&&l(this).css("top",i.top-t)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&l.fn.draggable&&this._makeDraggable(),this.options.resizable&&l.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var i=this.options.appendTo;return i&&(i.jquery||i.nodeType)?l(i):this.document.find(i||"body").eq(0)},_destroy:function(){var i,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(i=t.parent.children().eq(t.index)).length&&i[0]!==this.element[0]?i.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:l.noop,enable:l.noop,close:function(i){var t=this;this._isOpen&&!1!==this._trigger("beforeClose",i)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||l.ui.safeBlur(l.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){t._trigger("close",i)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(i,t){var e=!1,o=this.uiDialog.siblings(".ui-front:visible").map(function(){return+l(this).css("z-index")}).get(),o=Math.max.apply(null,o);return o>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),e=!0),e&&!t&&this._trigger("focus",i),e},open:function(){var i=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=l(l.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){i._focusTabbable(),i._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var i=this._focusedElement;(i=(i=(i=(i=(i=i||this.element.find("[autofocus]")).length?i:this.element.find(":tabbable")).length?i:this.uiDialogButtonPane.find(":tabbable")).length?i:this.uiDialogTitlebarClose.filter(":tabbable")).length?i:this.uiDialog).eq(0).trigger("focus")},_restoreTabbableFocus:function(){var i=l.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===i||l.contains(this.uiDialog[0],i)||this._focusTabbable()},_keepFocus:function(i){i.preventDefault(),this._restoreTabbableFocus(),this._delay(this._restoreTabbableFocus)},_createWrapper:function(){this.uiDialog=l("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(i){var t,e,o;this.options.closeOnEscape&&!i.isDefaultPrevented()&&i.keyCode&&i.keyCode===l.ui.keyCode.ESCAPE?(i.preventDefault(),this.close(i)):i.keyCode!==l.ui.keyCode.TAB||i.isDefaultPrevented()||(t=this.uiDialog.find(":tabbable"),e=t.first(),o=t.last(),i.target!==o[0]&&i.target!==this.uiDialog[0]||i.shiftKey?i.target!==e[0]&&i.target!==this.uiDialog[0]||!i.shiftKey||(this._delay(function(){o.trigger("focus")}),i.preventDefault()):(this._delay(function(){e.trigger("focus")}),i.preventDefault()))},mousedown:function(i){this._moveToTop(i)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var i;this.uiDialogTitlebar=l("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(i){l(i.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=l("<button type='button'></button>").button({label:l("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(i){i.preventDefault(),this.close(i)}}),i=l("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(i,"ui-dialog-title"),this._title(i),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":i.attr("id")})},_title:function(i){this.options.title?i.text(this.options.title):i.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=l("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=l("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var o=this,i=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),l.isEmptyObject(i)||Array.isArray(i)&&!i.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(l.each(i,function(i,t){var e;t=l.extend({type:"button"},t="function"==typeof t?{click:t,text:i}:t),e=t.click,i={icon:t.icon,iconPosition:t.iconPosition,showLabel:t.showLabel,icons:t.icons,text:t.text},delete t.click,delete t.icon,delete t.iconPosition,delete t.showLabel,delete t.icons,"boolean"==typeof t.text&&delete t.text,l("<button></button>",t).button(i).appendTo(o.uiButtonSet).on("click",function(){e.apply(o.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var s=this,n=this.options;function a(i){return{position:i.position,offset:i.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(i,t){s._addClass(l(this),"ui-dialog-dragging"),s._blockFrames(),s._trigger("dragStart",i,a(t))},drag:function(i,t){s._trigger("drag",i,a(t))},stop:function(i,t){var e=t.offset.left-s.document.scrollLeft(),o=t.offset.top-s.document.scrollTop();n.position={my:"left top",at:"left"+(0<=e?"+":"")+e+" top"+(0<=o?"+":"")+o,of:s.window},s._removeClass(l(this),"ui-dialog-dragging"),s._unblockFrames(),s._trigger("dragStop",i,a(t))}})},_makeResizable:function(){var s=this,n=this.options,i=n.resizable,t=this.uiDialog.css("position"),i="string"==typeof i?i:"n,e,s,w,se,sw,ne,nw";function a(i){return{originalPosition:i.originalPosition,originalSize:i.originalSize,position:i.position,size:i.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:i,start:function(i,t){s._addClass(l(this),"ui-dialog-resizing"),s._blockFrames(),s._trigger("resizeStart",i,a(t))},resize:function(i,t){s._trigger("resize",i,a(t))},stop:function(i,t){var e=s.uiDialog.offset(),o=e.left-s.document.scrollLeft(),e=e.top-s.document.scrollTop();n.height=s.uiDialog.height(),n.width=s.uiDialog.width(),n.position={my:"left top",at:"left"+(0<=o?"+":"")+o+" top"+(0<=e?"+":"")+e,of:s.window},s._removeClass(l(this),"ui-dialog-resizing"),s._unblockFrames(),s._trigger("resizeStop",i,a(t))}}).css("position",t)},_trackFocus:function(){this._on(this.widget(),{focusin:function(i){this._makeFocusTarget(),this._focusedElement=l(i.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var i=this._trackingInstances(),t=l.inArray(this,i);-1!==t&&i.splice(t,1)},_trackingInstances:function(){var i=this.document.data("ui-dialog-instances");return i||this.document.data("ui-dialog-instances",i=[]),i},_minHeight:function(){var i=this.options;return"auto"===i.height?i.minHeight:Math.min(i.minHeight,i.height)},_position:function(){var i=this.uiDialog.is(":visible");i||this.uiDialog.show(),this.uiDialog.position(this.options.position),i||this.uiDialog.hide()},_setOptions:function(i){var e=this,o=!1,s={};l.each(i,function(i,t){e._setOption(i,t),i in e.sizeRelatedOptions&&(o=!0),i in e.resizableRelatedOptions&&(s[i]=t)}),o&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(i,t){var e,o=this.uiDialog;"disabled"!==i&&(this._super(i,t),"appendTo"===i&&this.uiDialog.appendTo(this._appendTo()),"buttons"===i&&this._createButtons(),"closeText"===i&&this.uiDialogTitlebarClose.button({label:l("<a>").text(""+this.options.closeText).html()}),"draggable"===i&&((e=o.is(":data(ui-draggable)"))&&!t&&o.draggable("destroy"),!e)&&t&&this._makeDraggable(),"position"===i&&this._position(),"resizable"===i&&((e=o.is(":data(ui-resizable)"))&&!t&&o.resizable("destroy"),e&&"string"==typeof t&&o.resizable("option","handles",t),e||!1===t||this._makeResizable()),"title"===i)&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))},_size:function(){var i,t,e,o=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),o.minWidth>o.width&&(o.width=o.minWidth),i=this.uiDialog.css({height:"auto",width:o.width}).outerHeight(),t=Math.max(0,o.minHeight-i),e="number"==typeof o.maxHeight?Math.max(0,o.maxHeight-i):"none","auto"===o.height?this.element.css({minHeight:t,maxHeight:e,height:"auto"}):this.element.height(Math.max(0,o.height-i)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var i=l(this);return l("<div>").css({position:"absolute",width:i.outerWidth(),height:i.outerHeight()}).appendTo(i.parent()).offset(i.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(i){return!!l(i.target).closest(".ui-dialog").length||!!l(i.target).closest(".ui-datepicker").length},_createOverlay:function(){var e,o;this.options.modal&&(e=l.fn.jquery.substring(0,4),o=!0,this._delay(function(){o=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(i){var t;o||(t=this._trackingInstances()[0])._allowInteraction(i)||(i.preventDefault(),t._focusTabbable(),"3.4."!==e&&"3.5."!==e)||t._delay(t._restoreTabbableFocus)}.bind(this)),this.overlay=l("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1))},_destroyOverlay:function(){var i;this.options.modal&&this.overlay&&((i=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",i):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}}),!1!==l.uiBackCompat&&l.widget("ui.dialog",l.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(i,t){"dialogClass"===i&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}}),l.ui.dialog}); \ No newline at end of file
+!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery","./button","./draggable","./mouse","./resizable","../focusable","../keycode","../position","../safe-active-element","../safe-blur","../tabbable","../unique-id","../version","../widget"],i):i(jQuery)}(function(l){"use strict";return l.widget("ui.dialog",{version:"1.13.3",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(i){var t=l(this).css(i).offset().top;t<0&&l(this).css("top",i.top-t)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&l.fn.draggable&&this._makeDraggable(),this.options.resizable&&l.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var i=this.options.appendTo;return i&&(i.jquery||i.nodeType)?l(i):this.document.find(i||"body").eq(0)},_destroy:function(){var i,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(i=t.parent.children().eq(t.index)).length&&i[0]!==this.element[0]?i.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:l.noop,enable:l.noop,close:function(i){var t=this;this._isOpen&&!1!==this._trigger("beforeClose",i)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||l.ui.safeBlur(l.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){t._trigger("close",i)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(i,t){var e=!1,o=this.uiDialog.siblings(".ui-front:visible").map(function(){return+l(this).css("z-index")}).get(),o=Math.max.apply(null,o);return o>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),e=!0),e&&!t&&this._trigger("focus",i),e},open:function(){var i=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=l(l.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){i._focusTabbable(),i._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var i=this._focusedElement;(i=(i=(i=(i=(i=i||this.element.find("[autofocus]")).length?i:this.element.find(":tabbable")).length?i:this.uiDialogButtonPane.find(":tabbable")).length?i:this.uiDialogTitlebarClose.filter(":tabbable")).length?i:this.uiDialog).eq(0).trigger("focus")},_restoreTabbableFocus:function(){var i=l.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===i||l.contains(this.uiDialog[0],i)||this._focusTabbable()},_keepFocus:function(i){i.preventDefault(),this._restoreTabbableFocus(),this._delay(this._restoreTabbableFocus)},_createWrapper:function(){this.uiDialog=l("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(i){var t,e,o;this.options.closeOnEscape&&!i.isDefaultPrevented()&&i.keyCode&&i.keyCode===l.ui.keyCode.ESCAPE?(i.preventDefault(),this.close(i)):i.keyCode!==l.ui.keyCode.TAB||i.isDefaultPrevented()||(t=this.uiDialog.find(":tabbable"),e=t.first(),o=t.last(),i.target!==o[0]&&i.target!==this.uiDialog[0]||i.shiftKey?i.target!==e[0]&&i.target!==this.uiDialog[0]||!i.shiftKey||(this._delay(function(){o.trigger("focus")}),i.preventDefault()):(this._delay(function(){e.trigger("focus")}),i.preventDefault()))},mousedown:function(i){this._moveToTop(i)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var i;this.uiDialogTitlebar=l("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(i){l(i.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=l("<button type='button'></button>").button({label:l("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(i){i.preventDefault(),this.close(i)}}),i=l("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(i,"ui-dialog-title"),this._title(i),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":i.attr("id")})},_title:function(i){this.options.title?i.text(this.options.title):i.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=l("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=l("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var o=this,i=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),l.isEmptyObject(i)||Array.isArray(i)&&!i.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(l.each(i,function(i,t){var e;t=l.extend({type:"button"},t="function"==typeof t?{click:t,text:i}:t),e=t.click,i={icon:t.icon,iconPosition:t.iconPosition,showLabel:t.showLabel,icons:t.icons,text:t.text},delete t.click,delete t.icon,delete t.iconPosition,delete t.showLabel,delete t.icons,"boolean"==typeof t.text&&delete t.text,l("<button></button>",t).button(i).appendTo(o.uiButtonSet).on("click",function(){e.apply(o.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var s=this,n=this.options;function a(i){return{position:i.position,offset:i.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(i,t){s._addClass(l(this),"ui-dialog-dragging"),s._blockFrames(),s._trigger("dragStart",i,a(t))},drag:function(i,t){s._trigger("drag",i,a(t))},stop:function(i,t){var e=t.offset.left-s.document.scrollLeft(),o=t.offset.top-s.document.scrollTop();n.position={my:"left top",at:"left"+(0<=e?"+":"")+e+" top"+(0<=o?"+":"")+o,of:s.window},s._removeClass(l(this),"ui-dialog-dragging"),s._unblockFrames(),s._trigger("dragStop",i,a(t))}})},_makeResizable:function(){var s=this,n=this.options,i=n.resizable,t=this.uiDialog.css("position"),i="string"==typeof i?i:"n,e,s,w,se,sw,ne,nw";function a(i){return{originalPosition:i.originalPosition,originalSize:i.originalSize,position:i.position,size:i.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:i,start:function(i,t){s._addClass(l(this),"ui-dialog-resizing"),s._blockFrames(),s._trigger("resizeStart",i,a(t))},resize:function(i,t){s._trigger("resize",i,a(t))},stop:function(i,t){var e=s.uiDialog.offset(),o=e.left-s.document.scrollLeft(),e=e.top-s.document.scrollTop();n.height=s.uiDialog.height(),n.width=s.uiDialog.width(),n.position={my:"left top",at:"left"+(0<=o?"+":"")+o+" top"+(0<=e?"+":"")+e,of:s.window},s._removeClass(l(this),"ui-dialog-resizing"),s._unblockFrames(),s._trigger("resizeStop",i,a(t))}}).css("position",t)},_trackFocus:function(){this._on(this.widget(),{focusin:function(i){this._makeFocusTarget(),this._focusedElement=l(i.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var i=this._trackingInstances(),t=l.inArray(this,i);-1!==t&&i.splice(t,1)},_trackingInstances:function(){var i=this.document.data("ui-dialog-instances");return i||this.document.data("ui-dialog-instances",i=[]),i},_minHeight:function(){var i=this.options;return"auto"===i.height?i.minHeight:Math.min(i.minHeight,i.height)},_position:function(){var i=this.uiDialog.is(":visible");i||this.uiDialog.show(),this.uiDialog.position(this.options.position),i||this.uiDialog.hide()},_setOptions:function(i){var e=this,o=!1,s={};l.each(i,function(i,t){e._setOption(i,t),i in e.sizeRelatedOptions&&(o=!0),i in e.resizableRelatedOptions&&(s[i]=t)}),o&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(i,t){var e,o=this.uiDialog;"disabled"!==i&&(this._super(i,t),"appendTo"===i&&this.uiDialog.appendTo(this._appendTo()),"buttons"===i&&this._createButtons(),"closeText"===i&&this.uiDialogTitlebarClose.button({label:l("<a>").text(""+this.options.closeText).html()}),"draggable"===i&&((e=o.is(":data(ui-draggable)"))&&!t&&o.draggable("destroy"),!e)&&t&&this._makeDraggable(),"position"===i&&this._position(),"resizable"===i&&((e=o.is(":data(ui-resizable)"))&&!t&&o.resizable("destroy"),e&&"string"==typeof t&&o.resizable("option","handles",t),e||!1===t||this._makeResizable()),"title"===i)&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))},_size:function(){var i,t,e,o=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),o.minWidth>o.width&&(o.width=o.minWidth),i=this.uiDialog.css({height:"auto",width:o.width}).outerHeight(),t=Math.max(0,o.minHeight-i),e="number"==typeof o.maxHeight?Math.max(0,o.maxHeight-i):"none","auto"===o.height?this.element.css({minHeight:t,maxHeight:e,height:"auto"}):this.element.height(Math.max(0,o.height-i)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var i=l(this);return l("<div>").css({position:"absolute",width:i.outerWidth(),height:i.outerHeight()}).appendTo(i.parent()).offset(i.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(i){return!!l(i.target).closest(".ui-dialog").length||!!l(i.target).closest(".ui-datepicker").length},_createOverlay:function(){var e,o;this.options.modal&&(e=l.fn.jquery.substring(0,4),o=!0,this._delay(function(){o=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(i){var t;o||(t=this._trackingInstances()[0])._allowInteraction(i)||(i.preventDefault(),t._focusTabbable(),"3.4."!==e&&"3.5."!==e&&"3.6."!==e)||t._delay(t._restoreTabbableFocus)}.bind(this)),this.overlay=l("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1))},_destroyOverlay:function(){var i;this.options.modal&&this.overlay&&((i=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",i):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}}),!1!==l.uiBackCompat&&l.widget("ui.dialog",l.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(i,t){"dialogClass"===i&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}}),l.ui.dialog}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/draggable.js b/wp-includes/js/jquery/ui/draggable.js
index f0105d6..ba149a8 100644
--- a/wp-includes/js/jquery/ui/draggable.js
+++ b/wp-includes/js/jquery/ui/draggable.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Draggable 1.13.2
- * http://jqueryui.com
+ * jQuery UI Draggable 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Draggable
//>>group: Interactions
//>>description: Enables dragging functionality for any element.
-//>>docs: http://api.jqueryui.com/draggable/
-//>>demos: http://jqueryui.com/draggable/
+//>>docs: https://api.jqueryui.com/draggable/
+//>>demos: https://jqueryui.com/draggable/
//>>css.structure: ../../themes/base/draggable.css
( function( factory ) {
@@ -23,7 +23,13 @@
define( [
"jquery",
"./mouse",
- "./core"
+ "../data",
+ "../plugin",
+ "../safe-active-element",
+ "../safe-blur",
+ "../scroll-parent",
+ "../version",
+ "../widget"
], factory );
} else {
@@ -34,7 +40,7 @@
"use strict";
$.widget( "ui.draggable", $.ui.mouse, {
- version: "1.13.2",
+ version: "1.13.3",
widgetEventPrefix: "drag",
options: {
addClasses: true,
@@ -380,7 +386,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
o.appendTo ) );
}
- // Http://bugs.jqueryui.com/ticket/9446
+ // https://bugs.jqueryui.com/ticket/9446
// a helper function can return the original element
// which wouldn't have been set to relative in _create
if ( helperIsFunction && helper[ 0 ] === this.element[ 0 ] ) {
diff --git a/wp-includes/js/jquery/ui/draggable.min.js b/wp-includes/js/jquery/ui/draggable.min.js
index 28fa584..344531f 100644
--- a/wp-includes/js/jquery/ui/draggable.min.js
+++ b/wp-includes/js/jquery/ui/draggable.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Draggable 1.13.2
- * http://jqueryui.com
+ * jQuery UI Draggable 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","./core"],t):t(jQuery)}(function(P){"use strict";return P.widget("ui.draggable",P.ui.mouse,{version:"1.13.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0<P(t.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(t),!this.handle)||(this._blurActiveElement(t),this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=P(this);return P("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=P.ui.safeActiveElement(this.document[0]);P(t.target).closest(e).length||P.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),P.ui.ddmanager&&(P.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===P(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),P.ui.ddmanager&&!e.dropBehaviour&&P.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),P.ui.ddmanager&&P.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){e=this._uiHash();if(!1===this._trigger("drag",t,e))return this._mouseUp(new P.Event("mouseup",t)),!1;this.position=e.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",P.ui.ddmanager&&P.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,s=!1;return P.ui.ddmanager&&!this.options.dropBehaviour&&(s=P.ui.ddmanager.drop(this,t)),this.dropped&&(s=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,s)?P(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),P.ui.ddmanager&&P.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),P.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new P.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!P(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var e=this.options,s="function"==typeof e.helper,t=s?P(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element;return t.parents("body").length||t.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),s&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&P.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t,e;return"relative"!==this.cssPosition?{top:0,left:0}:(t=this.element.position(),e=this._isRootNode(this.scrollParent[0]),{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())})},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e=this.options,s=this.document[0];this.relativeContainer=null,e.containment?"window"===e.containment?this.containment=[P(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,P(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,P(window).scrollLeft()+P(window).width()-this.helperProportions.width-this.margins.left,P(window).scrollTop()+(P(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:"document"===e.containment?this.containment=[0,0,P(s).width()-this.helperProportions.width-this.margins.left,(P(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:e.containment.constructor===Array?this.containment=e.containment:("parent"===e.containment&&(e.containment=this.helper[0].parentNode),(e=(s=P(e.containment))[0])&&(t=/(scroll|auto)/.test(s.css("overflow")),this.containment=[(parseInt(s.css("borderLeftWidth"),10)||0)+(parseInt(s.css("paddingLeft"),10)||0),(parseInt(s.css("borderTopWidth"),10)||0)+(parseInt(s.css("paddingTop"),10)||0),(t?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(s.css("borderRightWidth"),10)||0)-(parseInt(s.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(s.css("borderBottomWidth"),10)||0)-(parseInt(s.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=s)):this.containment=null},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,s=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top)*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)*t}},_generatePosition:function(t,e){var s,i=this.options,o=this._isRootNode(this.scrollParent[0]),n=t.pageX,r=t.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),{top:(r=e&&(this.containment&&(s=this.relativeContainer?(e=this.relativeContainer.offset(),[this.containment[0]+e.left,this.containment[1]+e.top,this.containment[2]+e.left,this.containment[3]+e.top]):this.containment,t.pageX-this.offset.click.left<s[0]&&(n=s[0]+this.offset.click.left),t.pageY-this.offset.click.top<s[1]&&(r=s[1]+this.offset.click.top),t.pageX-this.offset.click.left>s[2]&&(n=s[2]+this.offset.click.left),t.pageY-this.offset.click.top>s[3])&&(r=s[3]+this.offset.click.top),i.grid&&(e=i.grid[1]?this.originalPageY+Math.round((r-this.originalPageY)/i.grid[1])*i.grid[1]:this.originalPageY,r=!s||e-this.offset.click.top>=s[1]||e-this.offset.click.top>s[3]?e:e-this.offset.click.top>=s[1]?e-i.grid[1]:e+i.grid[1],t=i.grid[0]?this.originalPageX+Math.round((n-this.originalPageX)/i.grid[0])*i.grid[0]:this.originalPageX,n=!s||t-this.offset.click.left>=s[0]||t-this.offset.click.left>s[2]?t:t-this.offset.click.left>=s[0]?t-i.grid[0]:t+i.grid[0]),"y"===i.axis&&(n=this.originalPageX),"x"===i.axis)?this.originalPageY:r)-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,e,s){return s=s||this._uiHash(),P.ui.plugin.call(this,t,[e,s,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),P.Widget.prototype._trigger.call(this,t,e,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),P.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,s){var i=P.extend({},t,{item:s.element});s.sortables=[],P(s.options.connectToSortable).each(function(){var t=P(this).sortable("instance");t&&!t.options.disabled&&(s.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,i))})},stop:function(e,t,s){var i=P.extend({},t,{item:s.element});s.cancelHelperRemoval=!1,P.each(s.sortables,function(){var t=this;t.isOver?(t.isOver=0,s.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,i))})},drag:function(s,i,o){P.each(o.sortables,function(){var t=!1,e=this;e.positionAbs=o.positionAbs,e.helperProportions=o.helperProportions,e.offset.click=o.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,P.each(o.sortables,function(){return this.positionAbs=o.positionAbs,this.helperProportions=o.helperProportions,this.offset.click=o.offset.click,t=this!==e&&this._intersectsWith(this.containerCache)&&P.contains(e.element[0],this.element[0])?!1:t})),t?(e.isOver||(e.isOver=1,o._parent=i.helper.parent(),e.currentItem=i.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return i.helper[0]},s.target=e.currentItem[0],e._mouseCapture(s,!0),e._mouseStart(s,!0,!0),e.offset.click.top=o.offset.click.top,e.offset.click.left=o.offset.click.left,e.offset.parent.left-=o.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=o.offset.parent.top-e.offset.parent.top,o._trigger("toSortable",s),o.dropped=e.element,P.each(o.sortables,function(){this.refreshPositions()}),o.currentItem=o.element,e.fromOutside=o),e.currentItem&&(e._mouseDrag(s),i.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",s,e._uiHash(e)),e._mouseStop(s,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),i.helper.appendTo(o._parent),o._refreshOffsets(s),i.position=o._generatePosition(s,!0),o._trigger("fromSortable",s),o.dropped=!1,P.each(o.sortables,function(){this.refreshPositions()}))})}}),P.ui.plugin.add("draggable","cursor",{start:function(t,e,s){var i=P("body"),s=s.options;i.css("cursor")&&(s._cursor=i.css("cursor")),i.css("cursor",s.cursor)},stop:function(t,e,s){s=s.options;s._cursor&&P("body").css("cursor",s._cursor)}}),P.ui.plugin.add("draggable","opacity",{start:function(t,e,s){e=P(e.helper),s=s.options;e.css("opacity")&&(s._opacity=e.css("opacity")),e.css("opacity",s.opacity)},stop:function(t,e,s){s=s.options;s._opacity&&P(e.helper).css("opacity",s._opacity)}}),P.ui.plugin.add("draggable","scroll",{start:function(t,e,s){s.scrollParentNotHidden||(s.scrollParentNotHidden=s.helper.scrollParent(!1)),s.scrollParentNotHidden[0]!==s.document[0]&&"HTML"!==s.scrollParentNotHidden[0].tagName&&(s.overflowOffset=s.scrollParentNotHidden.offset())},drag:function(t,e,s){var i=s.options,o=!1,n=s.scrollParentNotHidden[0],r=s.document[0];n!==r&&"HTML"!==n.tagName?(i.axis&&"x"===i.axis||(s.overflowOffset.top+n.offsetHeight-t.pageY<i.scrollSensitivity?n.scrollTop=o=n.scrollTop+i.scrollSpeed:t.pageY-s.overflowOffset.top<i.scrollSensitivity&&(n.scrollTop=o=n.scrollTop-i.scrollSpeed)),i.axis&&"y"===i.axis||(s.overflowOffset.left+n.offsetWidth-t.pageX<i.scrollSensitivity?n.scrollLeft=o=n.scrollLeft+i.scrollSpeed:t.pageX-s.overflowOffset.left<i.scrollSensitivity&&(n.scrollLeft=o=n.scrollLeft-i.scrollSpeed))):(i.axis&&"x"===i.axis||(t.pageY-P(r).scrollTop()<i.scrollSensitivity?o=P(r).scrollTop(P(r).scrollTop()-i.scrollSpeed):P(window).height()-(t.pageY-P(r).scrollTop())<i.scrollSensitivity&&(o=P(r).scrollTop(P(r).scrollTop()+i.scrollSpeed))),i.axis&&"y"===i.axis||(t.pageX-P(r).scrollLeft()<i.scrollSensitivity?o=P(r).scrollLeft(P(r).scrollLeft()-i.scrollSpeed):P(window).width()-(t.pageX-P(r).scrollLeft())<i.scrollSensitivity&&(o=P(r).scrollLeft(P(r).scrollLeft()+i.scrollSpeed)))),!1!==o&&P.ui.ddmanager&&!i.dropBehaviour&&P.ui.ddmanager.prepareOffsets(s,t)}}),P.ui.plugin.add("draggable","snap",{start:function(t,e,s){var i=s.options;s.snapElements=[],P(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var t=P(this),e=t.offset();this!==s.element[0]&&s.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,s){for(var i,o,n,r,l,a,h,p,c,f=s.options,d=f.snapTolerance,g=e.offset.left,u=g+s.helperProportions.width,m=e.offset.top,v=m+s.helperProportions.height,_=s.snapElements.length-1;0<=_;_--)a=(l=s.snapElements[_].left-s.margins.left)+s.snapElements[_].width,p=(h=s.snapElements[_].top-s.margins.top)+s.snapElements[_].height,u<l-d||a+d<g||v<h-d||p+d<m||!P.contains(s.snapElements[_].item.ownerDocument,s.snapElements[_].item)?(s.snapElements[_].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,t,P.extend(s._uiHash(),{snapItem:s.snapElements[_].item})),s.snapElements[_].snapping=!1):("inner"!==f.snapMode&&(i=Math.abs(h-v)<=d,o=Math.abs(p-m)<=d,n=Math.abs(l-u)<=d,r=Math.abs(a-g)<=d,i&&(e.position.top=s._convertPositionTo("relative",{top:h-s.helperProportions.height,left:0}).top),o&&(e.position.top=s._convertPositionTo("relative",{top:p,left:0}).top),n&&(e.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left),r)&&(e.position.left=s._convertPositionTo("relative",{top:0,left:a}).left),c=i||o||n||r,"outer"!==f.snapMode&&(i=Math.abs(h-m)<=d,o=Math.abs(p-v)<=d,n=Math.abs(l-g)<=d,r=Math.abs(a-u)<=d,i&&(e.position.top=s._convertPositionTo("relative",{top:h,left:0}).top),o&&(e.position.top=s._convertPositionTo("relative",{top:p-s.helperProportions.height,left:0}).top),n&&(e.position.left=s._convertPositionTo("relative",{top:0,left:l}).left),r)&&(e.position.left=s._convertPositionTo("relative",{top:0,left:a-s.helperProportions.width}).left),!s.snapElements[_].snapping&&(i||o||n||r||c)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,t,P.extend(s._uiHash(),{snapItem:s.snapElements[_].item})),s.snapElements[_].snapping=i||o||n||r||c)}}),P.ui.plugin.add("draggable","stack",{start:function(t,e,s){var i,s=s.options,s=P.makeArray(P(s.stack)).sort(function(t,e){return(parseInt(P(t).css("zIndex"),10)||0)-(parseInt(P(e).css("zIndex"),10)||0)});s.length&&(i=parseInt(P(s[0]).css("zIndex"),10)||0,P(s).each(function(t){P(this).css("zIndex",i+t)}),this.css("zIndex",i+s.length))}}),P.ui.plugin.add("draggable","zIndex",{start:function(t,e,s){e=P(e.helper),s=s.options;e.css("zIndex")&&(s._zIndex=e.css("zIndex")),e.css("zIndex",s.zIndex)},stop:function(t,e,s){s=s.options;s._zIndex&&P(e.helper).css("zIndex",s._zIndex)}}),P.ui.draggable}); \ No newline at end of file
+!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../plugin","../safe-active-element","../safe-blur","../scroll-parent","../version","../widget"],t):t(jQuery)}(function(P){"use strict";return P.widget("ui.draggable",P.ui.mouse,{version:"1.13.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0<P(t.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(t),!this.handle)||(this._blurActiveElement(t),this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=P(this);return P("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=P.ui.safeActiveElement(this.document[0]);P(t.target).closest(e).length||P.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),P.ui.ddmanager&&(P.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===P(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),P.ui.ddmanager&&!e.dropBehaviour&&P.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),P.ui.ddmanager&&P.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){e=this._uiHash();if(!1===this._trigger("drag",t,e))return this._mouseUp(new P.Event("mouseup",t)),!1;this.position=e.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",P.ui.ddmanager&&P.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,s=!1;return P.ui.ddmanager&&!this.options.dropBehaviour&&(s=P.ui.ddmanager.drop(this,t)),this.dropped&&(s=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,s)?P(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),P.ui.ddmanager&&P.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),P.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new P.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!P(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var e=this.options,s="function"==typeof e.helper,t=s?P(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element;return t.parents("body").length||t.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),s&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&P.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t,e;return"relative"!==this.cssPosition?{top:0,left:0}:(t=this.element.position(),e=this._isRootNode(this.scrollParent[0]),{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())})},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e=this.options,s=this.document[0];this.relativeContainer=null,e.containment?"window"===e.containment?this.containment=[P(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,P(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,P(window).scrollLeft()+P(window).width()-this.helperProportions.width-this.margins.left,P(window).scrollTop()+(P(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:"document"===e.containment?this.containment=[0,0,P(s).width()-this.helperProportions.width-this.margins.left,(P(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:e.containment.constructor===Array?this.containment=e.containment:("parent"===e.containment&&(e.containment=this.helper[0].parentNode),(e=(s=P(e.containment))[0])&&(t=/(scroll|auto)/.test(s.css("overflow")),this.containment=[(parseInt(s.css("borderLeftWidth"),10)||0)+(parseInt(s.css("paddingLeft"),10)||0),(parseInt(s.css("borderTopWidth"),10)||0)+(parseInt(s.css("paddingTop"),10)||0),(t?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(s.css("borderRightWidth"),10)||0)-(parseInt(s.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(s.css("borderBottomWidth"),10)||0)-(parseInt(s.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=s)):this.containment=null},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,s=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top)*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)*t}},_generatePosition:function(t,e){var s,i=this.options,o=this._isRootNode(this.scrollParent[0]),n=t.pageX,r=t.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),{top:(r=e&&(this.containment&&(s=this.relativeContainer?(e=this.relativeContainer.offset(),[this.containment[0]+e.left,this.containment[1]+e.top,this.containment[2]+e.left,this.containment[3]+e.top]):this.containment,t.pageX-this.offset.click.left<s[0]&&(n=s[0]+this.offset.click.left),t.pageY-this.offset.click.top<s[1]&&(r=s[1]+this.offset.click.top),t.pageX-this.offset.click.left>s[2]&&(n=s[2]+this.offset.click.left),t.pageY-this.offset.click.top>s[3])&&(r=s[3]+this.offset.click.top),i.grid&&(e=i.grid[1]?this.originalPageY+Math.round((r-this.originalPageY)/i.grid[1])*i.grid[1]:this.originalPageY,r=!s||e-this.offset.click.top>=s[1]||e-this.offset.click.top>s[3]?e:e-this.offset.click.top>=s[1]?e-i.grid[1]:e+i.grid[1],t=i.grid[0]?this.originalPageX+Math.round((n-this.originalPageX)/i.grid[0])*i.grid[0]:this.originalPageX,n=!s||t-this.offset.click.left>=s[0]||t-this.offset.click.left>s[2]?t:t-this.offset.click.left>=s[0]?t-i.grid[0]:t+i.grid[0]),"y"===i.axis&&(n=this.originalPageX),"x"===i.axis)?this.originalPageY:r)-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,e,s){return s=s||this._uiHash(),P.ui.plugin.call(this,t,[e,s,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),P.Widget.prototype._trigger.call(this,t,e,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),P.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,s){var i=P.extend({},t,{item:s.element});s.sortables=[],P(s.options.connectToSortable).each(function(){var t=P(this).sortable("instance");t&&!t.options.disabled&&(s.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,i))})},stop:function(e,t,s){var i=P.extend({},t,{item:s.element});s.cancelHelperRemoval=!1,P.each(s.sortables,function(){var t=this;t.isOver?(t.isOver=0,s.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,i))})},drag:function(s,i,o){P.each(o.sortables,function(){var t=!1,e=this;e.positionAbs=o.positionAbs,e.helperProportions=o.helperProportions,e.offset.click=o.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,P.each(o.sortables,function(){return this.positionAbs=o.positionAbs,this.helperProportions=o.helperProportions,this.offset.click=o.offset.click,t=this!==e&&this._intersectsWith(this.containerCache)&&P.contains(e.element[0],this.element[0])?!1:t})),t?(e.isOver||(e.isOver=1,o._parent=i.helper.parent(),e.currentItem=i.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return i.helper[0]},s.target=e.currentItem[0],e._mouseCapture(s,!0),e._mouseStart(s,!0,!0),e.offset.click.top=o.offset.click.top,e.offset.click.left=o.offset.click.left,e.offset.parent.left-=o.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=o.offset.parent.top-e.offset.parent.top,o._trigger("toSortable",s),o.dropped=e.element,P.each(o.sortables,function(){this.refreshPositions()}),o.currentItem=o.element,e.fromOutside=o),e.currentItem&&(e._mouseDrag(s),i.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",s,e._uiHash(e)),e._mouseStop(s,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),i.helper.appendTo(o._parent),o._refreshOffsets(s),i.position=o._generatePosition(s,!0),o._trigger("fromSortable",s),o.dropped=!1,P.each(o.sortables,function(){this.refreshPositions()}))})}}),P.ui.plugin.add("draggable","cursor",{start:function(t,e,s){var i=P("body"),s=s.options;i.css("cursor")&&(s._cursor=i.css("cursor")),i.css("cursor",s.cursor)},stop:function(t,e,s){s=s.options;s._cursor&&P("body").css("cursor",s._cursor)}}),P.ui.plugin.add("draggable","opacity",{start:function(t,e,s){e=P(e.helper),s=s.options;e.css("opacity")&&(s._opacity=e.css("opacity")),e.css("opacity",s.opacity)},stop:function(t,e,s){s=s.options;s._opacity&&P(e.helper).css("opacity",s._opacity)}}),P.ui.plugin.add("draggable","scroll",{start:function(t,e,s){s.scrollParentNotHidden||(s.scrollParentNotHidden=s.helper.scrollParent(!1)),s.scrollParentNotHidden[0]!==s.document[0]&&"HTML"!==s.scrollParentNotHidden[0].tagName&&(s.overflowOffset=s.scrollParentNotHidden.offset())},drag:function(t,e,s){var i=s.options,o=!1,n=s.scrollParentNotHidden[0],r=s.document[0];n!==r&&"HTML"!==n.tagName?(i.axis&&"x"===i.axis||(s.overflowOffset.top+n.offsetHeight-t.pageY<i.scrollSensitivity?n.scrollTop=o=n.scrollTop+i.scrollSpeed:t.pageY-s.overflowOffset.top<i.scrollSensitivity&&(n.scrollTop=o=n.scrollTop-i.scrollSpeed)),i.axis&&"y"===i.axis||(s.overflowOffset.left+n.offsetWidth-t.pageX<i.scrollSensitivity?n.scrollLeft=o=n.scrollLeft+i.scrollSpeed:t.pageX-s.overflowOffset.left<i.scrollSensitivity&&(n.scrollLeft=o=n.scrollLeft-i.scrollSpeed))):(i.axis&&"x"===i.axis||(t.pageY-P(r).scrollTop()<i.scrollSensitivity?o=P(r).scrollTop(P(r).scrollTop()-i.scrollSpeed):P(window).height()-(t.pageY-P(r).scrollTop())<i.scrollSensitivity&&(o=P(r).scrollTop(P(r).scrollTop()+i.scrollSpeed))),i.axis&&"y"===i.axis||(t.pageX-P(r).scrollLeft()<i.scrollSensitivity?o=P(r).scrollLeft(P(r).scrollLeft()-i.scrollSpeed):P(window).width()-(t.pageX-P(r).scrollLeft())<i.scrollSensitivity&&(o=P(r).scrollLeft(P(r).scrollLeft()+i.scrollSpeed)))),!1!==o&&P.ui.ddmanager&&!i.dropBehaviour&&P.ui.ddmanager.prepareOffsets(s,t)}}),P.ui.plugin.add("draggable","snap",{start:function(t,e,s){var i=s.options;s.snapElements=[],P(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var t=P(this),e=t.offset();this!==s.element[0]&&s.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,s){for(var i,o,n,r,l,a,h,p,c,f=s.options,d=f.snapTolerance,g=e.offset.left,u=g+s.helperProportions.width,m=e.offset.top,v=m+s.helperProportions.height,_=s.snapElements.length-1;0<=_;_--)a=(l=s.snapElements[_].left-s.margins.left)+s.snapElements[_].width,p=(h=s.snapElements[_].top-s.margins.top)+s.snapElements[_].height,u<l-d||a+d<g||v<h-d||p+d<m||!P.contains(s.snapElements[_].item.ownerDocument,s.snapElements[_].item)?(s.snapElements[_].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,t,P.extend(s._uiHash(),{snapItem:s.snapElements[_].item})),s.snapElements[_].snapping=!1):("inner"!==f.snapMode&&(i=Math.abs(h-v)<=d,o=Math.abs(p-m)<=d,n=Math.abs(l-u)<=d,r=Math.abs(a-g)<=d,i&&(e.position.top=s._convertPositionTo("relative",{top:h-s.helperProportions.height,left:0}).top),o&&(e.position.top=s._convertPositionTo("relative",{top:p,left:0}).top),n&&(e.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left),r)&&(e.position.left=s._convertPositionTo("relative",{top:0,left:a}).left),c=i||o||n||r,"outer"!==f.snapMode&&(i=Math.abs(h-m)<=d,o=Math.abs(p-v)<=d,n=Math.abs(l-g)<=d,r=Math.abs(a-u)<=d,i&&(e.position.top=s._convertPositionTo("relative",{top:h,left:0}).top),o&&(e.position.top=s._convertPositionTo("relative",{top:p-s.helperProportions.height,left:0}).top),n&&(e.position.left=s._convertPositionTo("relative",{top:0,left:l}).left),r)&&(e.position.left=s._convertPositionTo("relative",{top:0,left:a-s.helperProportions.width}).left),!s.snapElements[_].snapping&&(i||o||n||r||c)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,t,P.extend(s._uiHash(),{snapItem:s.snapElements[_].item})),s.snapElements[_].snapping=i||o||n||r||c)}}),P.ui.plugin.add("draggable","stack",{start:function(t,e,s){var i,s=s.options,s=P.makeArray(P(s.stack)).sort(function(t,e){return(parseInt(P(t).css("zIndex"),10)||0)-(parseInt(P(e).css("zIndex"),10)||0)});s.length&&(i=parseInt(P(s[0]).css("zIndex"),10)||0,P(s).each(function(t){P(this).css("zIndex",i+t)}),this.css("zIndex",i+s.length))}}),P.ui.plugin.add("draggable","zIndex",{start:function(t,e,s){e=P(e.helper),s=s.options;e.css("zIndex")&&(s._zIndex=e.css("zIndex")),e.css("zIndex",s.zIndex)},stop:function(t,e,s){s=s.options;s._zIndex&&P(e.helper).css("zIndex",s._zIndex)}}),P.ui.draggable}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/droppable.js b/wp-includes/js/jquery/ui/droppable.js
index ce8968e..25b9daf 100644
--- a/wp-includes/js/jquery/ui/droppable.js
+++ b/wp-includes/js/jquery/ui/droppable.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Droppable 1.13.2
- * http://jqueryui.com
+ * jQuery UI Droppable 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Droppable
//>>group: Interactions
//>>description: Enables drop targets for draggable elements.
-//>>docs: http://api.jqueryui.com/droppable/
-//>>demos: http://jqueryui.com/droppable/
+//>>docs: https://api.jqueryui.com/droppable/
+//>>demos: https://jqueryui.com/droppable/
( function( factory ) {
"use strict";
@@ -23,7 +23,8 @@
"jquery",
"./draggable",
"./mouse",
- "./core"
+ "../version",
+ "../widget"
], factory );
} else {
@@ -34,7 +35,7 @@
"use strict";
$.widget( "ui.droppable", {
- version: "1.13.2",
+ version: "1.13.3",
widgetEventPrefix: "drop",
options: {
accept: "*",
diff --git a/wp-includes/js/jquery/ui/droppable.min.js b/wp-includes/js/jquery/ui/droppable.min.js
index fa5b3ea..6deed2c 100644
--- a/wp-includes/js/jquery/ui/droppable.min.js
+++ b/wp-includes/js/jquery/ui/droppable.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Droppable 1.13.2
- * http://jqueryui.com
+ * jQuery UI Droppable 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./draggable","./mouse","./core"],e):e(jQuery)}(function(a){"use strict";function h(e,t,i){return t<=e&&e<t+i}return a.widget("ui.droppable",{version:"1.13.2",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,t=this.options,i=t.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof i?i:function(e){return e.is(i)},this.proportions=function(){if(!arguments.length)return e=e||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};e=arguments[0]},this._addToManager(t.scope),t.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){a.ui.ddmanager.droppables[e]=a.ui.ddmanager.droppables[e]||[],a.ui.ddmanager.droppables[e].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var e=a.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,t){var i;"accept"===e?this.accept="function"==typeof t?t:function(e){return e.is(t)}:"scope"===e&&(i=a.ui.ddmanager.droppables[this.options.scope],this._splice(i),this._addToManager(t)),this._super(e,t)},_activate:function(e){var t=a.ui.ddmanager.current;this._addActiveClass(),t&&this._trigger("activate",e,this.ui(t))},_deactivate:function(e){var t=a.ui.ddmanager.current;this._removeActiveClass(),t&&this._trigger("deactivate",e,this.ui(t))},_over:function(e){var t=a.ui.ddmanager.current;t&&(t.currentItem||t.element)[0]!==this.element[0]&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(t)))},_out:function(e){var t=a.ui.ddmanager.current;t&&(t.currentItem||t.element)[0]!==this.element[0]&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(t)))},_drop:function(t,e){var i=e||a.ui.ddmanager.current,s=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0]||(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var e=a(this).droppable("instance");if(e.options.greedy&&!e.options.disabled&&e.options.scope===i.options.scope&&e.accept.call(e.element[0],i.currentItem||i.element)&&a.ui.intersect(i,a.extend(e,{offset:e.element.offset()}),e.options.tolerance,t))return!(s=!0)}),s)||!this.accept.call(this.element[0],i.currentItem||i.element))&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(i)),this.element)},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),a.ui.intersect=function(e,t,i,s){if(!t.offset)return!1;var o=(e.positionAbs||e.position.absolute).left+e.margins.left,r=(e.positionAbs||e.position.absolute).top+e.margins.top,n=o+e.helperProportions.width,a=r+e.helperProportions.height,l=t.offset.left,p=t.offset.top,c=l+t.proportions().width,d=p+t.proportions().height;switch(i){case"fit":return l<=o&&n<=c&&p<=r&&a<=d;case"intersect":return l<o+e.helperProportions.width/2&&n-e.helperProportions.width/2<c&&p<r+e.helperProportions.height/2&&a-e.helperProportions.height/2<d;case"pointer":return h(s.pageY,p,t.proportions().height)&&h(s.pageX,l,t.proportions().width);case"touch":return(p<=r&&r<=d||p<=a&&a<=d||r<p&&d<a)&&(l<=o&&o<=c||l<=n&&n<=c||o<l&&c<n);default:return!1}},!(a.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,t){var i,s,o=a.ui.ddmanager.droppables[e.options.scope]||[],r=t?t.type:null,n=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();e:for(i=0;i<o.length;i++)if(!(o[i].options.disabled||e&&!o[i].accept.call(o[i].element[0],e.currentItem||e.element))){for(s=0;s<n.length;s++)if(n[s]===o[i].element[0]){o[i].proportions().height=0;continue e}o[i].visible="none"!==o[i].element.css("display"),o[i].visible&&("mousedown"===r&&o[i]._activate.call(o[i],t),o[i].offset=o[i].element.offset(),o[i].proportions({width:o[i].element[0].offsetWidth,height:o[i].element[0].offsetHeight}))}},drop:function(e,t){var i=!1;return a.each((a.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&a.ui.intersect(e,this,this.options.tolerance,t)&&(i=this._drop.call(this,t)||i),!this.options.disabled)&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,t))}),i},dragStart:function(e,t){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||a.ui.ddmanager.prepareOffsets(e,t)})},drag:function(o,r){o.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(o,r),a.each(a.ui.ddmanager.droppables[o.options.scope]||[],function(){var e,t,i,s;this.options.disabled||this.greedyChild||!this.visible||(s=!(s=a.ui.intersect(o,this,this.options.tolerance,r))&&this.isover?"isout":s&&!this.isover?"isover":null)&&(this.options.greedy&&(t=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return a(this).droppable("instance").options.scope===t})).length)&&((e=a(i[0]).droppable("instance")).greedyChild="isover"===s),e&&"isover"===s&&(e.isover=!1,e.isout=!0,e._out.call(e,r)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,r),e)&&"isout"===s&&(e.isout=!1,e.isover=!0,e._over.call(e,r))})},dragStop:function(e,t){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||a.ui.ddmanager.prepareOffsets(e,t)}})!==a.uiBackCompat&&a.widget("ui.droppable",a.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),a.ui.droppable}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./draggable","./mouse","../version","../widget"],e):e(jQuery)}(function(a){"use strict";function h(e,t,i){return t<=e&&e<t+i}return a.widget("ui.droppable",{version:"1.13.3",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,t=this.options,i=t.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof i?i:function(e){return e.is(i)},this.proportions=function(){if(!arguments.length)return e=e||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};e=arguments[0]},this._addToManager(t.scope),t.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){a.ui.ddmanager.droppables[e]=a.ui.ddmanager.droppables[e]||[],a.ui.ddmanager.droppables[e].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var e=a.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,t){var i;"accept"===e?this.accept="function"==typeof t?t:function(e){return e.is(t)}:"scope"===e&&(i=a.ui.ddmanager.droppables[this.options.scope],this._splice(i),this._addToManager(t)),this._super(e,t)},_activate:function(e){var t=a.ui.ddmanager.current;this._addActiveClass(),t&&this._trigger("activate",e,this.ui(t))},_deactivate:function(e){var t=a.ui.ddmanager.current;this._removeActiveClass(),t&&this._trigger("deactivate",e,this.ui(t))},_over:function(e){var t=a.ui.ddmanager.current;t&&(t.currentItem||t.element)[0]!==this.element[0]&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(t)))},_out:function(e){var t=a.ui.ddmanager.current;t&&(t.currentItem||t.element)[0]!==this.element[0]&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(t)))},_drop:function(t,e){var i=e||a.ui.ddmanager.current,s=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0]||(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var e=a(this).droppable("instance");if(e.options.greedy&&!e.options.disabled&&e.options.scope===i.options.scope&&e.accept.call(e.element[0],i.currentItem||i.element)&&a.ui.intersect(i,a.extend(e,{offset:e.element.offset()}),e.options.tolerance,t))return!(s=!0)}),s)||!this.accept.call(this.element[0],i.currentItem||i.element))&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(i)),this.element)},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),a.ui.intersect=function(e,t,i,s){if(!t.offset)return!1;var o=(e.positionAbs||e.position.absolute).left+e.margins.left,r=(e.positionAbs||e.position.absolute).top+e.margins.top,n=o+e.helperProportions.width,a=r+e.helperProportions.height,l=t.offset.left,p=t.offset.top,c=l+t.proportions().width,d=p+t.proportions().height;switch(i){case"fit":return l<=o&&n<=c&&p<=r&&a<=d;case"intersect":return l<o+e.helperProportions.width/2&&n-e.helperProportions.width/2<c&&p<r+e.helperProportions.height/2&&a-e.helperProportions.height/2<d;case"pointer":return h(s.pageY,p,t.proportions().height)&&h(s.pageX,l,t.proportions().width);case"touch":return(p<=r&&r<=d||p<=a&&a<=d||r<p&&d<a)&&(l<=o&&o<=c||l<=n&&n<=c||o<l&&c<n);default:return!1}},!(a.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,t){var i,s,o=a.ui.ddmanager.droppables[e.options.scope]||[],r=t?t.type:null,n=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();e:for(i=0;i<o.length;i++)if(!(o[i].options.disabled||e&&!o[i].accept.call(o[i].element[0],e.currentItem||e.element))){for(s=0;s<n.length;s++)if(n[s]===o[i].element[0]){o[i].proportions().height=0;continue e}o[i].visible="none"!==o[i].element.css("display"),o[i].visible&&("mousedown"===r&&o[i]._activate.call(o[i],t),o[i].offset=o[i].element.offset(),o[i].proportions({width:o[i].element[0].offsetWidth,height:o[i].element[0].offsetHeight}))}},drop:function(e,t){var i=!1;return a.each((a.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&a.ui.intersect(e,this,this.options.tolerance,t)&&(i=this._drop.call(this,t)||i),!this.options.disabled)&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,t))}),i},dragStart:function(e,t){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||a.ui.ddmanager.prepareOffsets(e,t)})},drag:function(o,r){o.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(o,r),a.each(a.ui.ddmanager.droppables[o.options.scope]||[],function(){var e,t,i,s;this.options.disabled||this.greedyChild||!this.visible||(s=!(s=a.ui.intersect(o,this,this.options.tolerance,r))&&this.isover?"isout":s&&!this.isover?"isover":null)&&(this.options.greedy&&(t=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return a(this).droppable("instance").options.scope===t})).length)&&((e=a(i[0]).droppable("instance")).greedyChild="isover"===s),e&&"isover"===s&&(e.isover=!1,e.isout=!0,e._out.call(e,r)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,r),e)&&"isout"===s&&(e.isout=!1,e.isover=!0,e._over.call(e,r))})},dragStop:function(e,t){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||a.ui.ddmanager.prepareOffsets(e,t)}})!==a.uiBackCompat&&a.widget("ui.droppable",a.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),a.ui.droppable}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/effect-blind.js b/wp-includes/js/jquery/ui/effect-blind.js
index 122f4ae..c5033dd 100644
--- a/wp-includes/js/jquery/ui/effect-blind.js
+++ b/wp-includes/js/jquery/ui/effect-blind.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Effects Blind 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Blind 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Blind Effect
//>>group: Effects
//>>description: Blinds the element.
-//>>docs: http://api.jqueryui.com/blind-effect/
-//>>demos: http://jqueryui.com/effect/
+//>>docs: https://api.jqueryui.com/blind-effect/
+//>>demos: https://jqueryui.com/effect/
( function( factory ) {
"use strict";
@@ -21,7 +21,8 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./effect"
+ "../version",
+ "../effect"
], factory );
} else {
diff --git a/wp-includes/js/jquery/ui/effect-blind.min.js b/wp-includes/js/jquery/ui/effect-blind.min.js
index 605272e..10d6298 100644
--- a/wp-includes/js/jquery/ui/effect-blind.min.js
+++ b/wp-includes/js/jquery/ui/effect-blind.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Effects Blind 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Blind 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(r){"use strict";return r.effects.define("blind","hide",function(e,t){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},o=r(this),c=e.direction||"up",n=o.cssClip(),f={clip:r.extend({},n)},l=r.effects.createPlaceholder(o);f.clip[i[c][0]]=f.clip[i[c][1]],"show"===e.mode&&(o.cssClip(f.clip),l&&l.css(r.effects.clipToBox(f)),f.clip=n),l&&l.animate(r.effects.clipToBox(f),e.duration,e.easing),o.animate(f,{queue:!1,duration:e.duration,easing:e.easing,complete:t})})}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(s){"use strict";return s.effects.define("blind","hide",function(e,t){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},o=s(this),n=e.direction||"up",c=o.cssClip(),f={clip:s.extend({},c)},r=s.effects.createPlaceholder(o);f.clip[i[n][0]]=f.clip[i[n][1]],"show"===e.mode&&(o.cssClip(f.clip),r&&r.css(s.effects.clipToBox(f)),f.clip=c),r&&r.animate(s.effects.clipToBox(f),e.duration,e.easing),o.animate(f,{queue:!1,duration:e.duration,easing:e.easing,complete:t})})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/effect-bounce.js b/wp-includes/js/jquery/ui/effect-bounce.js
index 3e5165a..78f804a 100644
--- a/wp-includes/js/jquery/ui/effect-bounce.js
+++ b/wp-includes/js/jquery/ui/effect-bounce.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Effects Bounce 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Bounce 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Bounce Effect
//>>group: Effects
//>>description: Bounces an element horizontally or vertically n times.
-//>>docs: http://api.jqueryui.com/bounce-effect/
-//>>demos: http://jqueryui.com/effect/
+//>>docs: https://api.jqueryui.com/bounce-effect/
+//>>demos: https://jqueryui.com/effect/
( function( factory ) {
"use strict";
@@ -21,7 +21,8 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./effect"
+ "../version",
+ "../effect"
], factory );
} else {
diff --git a/wp-includes/js/jquery/ui/effect-bounce.min.js b/wp-includes/js/jquery/ui/effect-bounce.min.js
index 5945c93..22a0737 100644
--- a/wp-includes/js/jquery/ui/effect-bounce.min.js
+++ b/wp-includes/js/jquery/ui/effect-bounce.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Effects Bounce 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Bounce 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(l){"use strict";return l.effects.define("bounce",function(e,t){var i,n,c=l(this),f=e.mode,o="hide"===f,f="show"===f,u=e.direction||"up",a=e.distance,s=e.times||5,r=2*s+(f||o?1:0),d=e.duration/r,p=e.easing,h="up"===u||"down"===u?"top":"left",m="up"===u||"left"===u,y=0,e=c.queue().length;for(l.effects.createPlaceholder(c),u=c.css(h),a=a||c["top"==h?"outerHeight":"outerWidth"]()/3,f&&((n={opacity:1})[h]=u,c.css("opacity",0).css(h,m?2*-a:2*a).animate(n,d,p)),o&&(a/=Math.pow(2,s-1)),(n={})[h]=u;y<s;y++)(i={})[h]=(m?"-=":"+=")+a,c.animate(i,d,p).animate(n,d,p),a=o?2*a:a/2;o&&((i={opacity:0})[h]=(m?"-=":"+=")+a,c.animate(i,d,p)),c.queue(t),l.effects.unshift(c,e,1+r)})}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(l){"use strict";return l.effects.define("bounce",function(e,t){var i,n,o=l(this),c=e.mode,f="hide"===c,c="show"===c,u=e.direction||"up",s=e.distance,a=e.times||5,r=2*a+(c||f?1:0),d=e.duration/r,p=e.easing,h="up"===u||"down"===u?"top":"left",m="up"===u||"left"===u,y=0,e=o.queue().length;for(l.effects.createPlaceholder(o),u=o.css(h),s=s||o["top"==h?"outerHeight":"outerWidth"]()/3,c&&((n={opacity:1})[h]=u,o.css("opacity",0).css(h,m?2*-s:2*s).animate(n,d,p)),f&&(s/=Math.pow(2,a-1)),(n={})[h]=u;y<a;y++)(i={})[h]=(m?"-=":"+=")+s,o.animate(i,d,p).animate(n,d,p),s=f?2*s:s/2;f&&((i={opacity:0})[h]=(m?"-=":"+=")+s,o.animate(i,d,p)),o.queue(t),l.effects.unshift(o,e,1+r)})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/effect-clip.js b/wp-includes/js/jquery/ui/effect-clip.js
index 67ef1e1..ad72a8a 100644
--- a/wp-includes/js/jquery/ui/effect-clip.js
+++ b/wp-includes/js/jquery/ui/effect-clip.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Effects Clip 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Clip 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Clip Effect
//>>group: Effects
//>>description: Clips the element on and off like an old TV.
-//>>docs: http://api.jqueryui.com/clip-effect/
-//>>demos: http://jqueryui.com/effect/
+//>>docs: https://api.jqueryui.com/clip-effect/
+//>>demos: https://jqueryui.com/effect/
( function( factory ) {
"use strict";
@@ -21,7 +21,8 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./effect"
+ "../version",
+ "../effect"
], factory );
} else {
diff --git a/wp-includes/js/jquery/ui/effect-clip.min.js b/wp-includes/js/jquery/ui/effect-clip.min.js
index 135d601..58fba44 100644
--- a/wp-includes/js/jquery/ui/effect-clip.min.js
+++ b/wp-includes/js/jquery/ui/effect-clip.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Effects Clip 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Clip 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],t):t(jQuery)}(function(r){"use strict";return r.effects.define("clip","hide",function(t,e){var i={},o=r(this),c=t.direction||"vertical",n="both"===c,f=n||"horizontal"===c,n=n||"vertical"===c,c=o.cssClip();i.clip={top:n?(c.bottom-c.top)/2:c.top,right:f?(c.right-c.left)/2:c.right,bottom:n?(c.bottom-c.top)/2:c.bottom,left:f?(c.right-c.left)/2:c.left},r.effects.createPlaceholder(o),"show"===t.mode&&(o.cssClip(i.clip),i.clip=c),o.animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:e})})}); \ No newline at end of file
+!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],t):t(jQuery)}(function(f){"use strict";return f.effects.define("clip","hide",function(t,e){var i={},o=f(this),c=t.direction||"vertical",n="both"===c,r=n||"horizontal"===c,n=n||"vertical"===c,c=o.cssClip();i.clip={top:n?(c.bottom-c.top)/2:c.top,right:r?(c.right-c.left)/2:c.right,bottom:n?(c.bottom-c.top)/2:c.bottom,left:r?(c.right-c.left)/2:c.left},f.effects.createPlaceholder(o),"show"===t.mode&&(o.cssClip(i.clip),i.clip=c),o.animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:e})})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/effect-drop.js b/wp-includes/js/jquery/ui/effect-drop.js
index c8375ee..e8793d0 100644
--- a/wp-includes/js/jquery/ui/effect-drop.js
+++ b/wp-includes/js/jquery/ui/effect-drop.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Effects Drop 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Drop 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Drop Effect
//>>group: Effects
//>>description: Moves an element in one direction and hides it at the same time.
-//>>docs: http://api.jqueryui.com/drop-effect/
-//>>demos: http://jqueryui.com/effect/
+//>>docs: https://api.jqueryui.com/drop-effect/
+//>>demos: https://jqueryui.com/effect/
( function( factory ) {
"use strict";
@@ -21,7 +21,8 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./effect"
+ "../version",
+ "../effect"
], factory );
} else {
diff --git a/wp-includes/js/jquery/ui/effect-drop.min.js b/wp-includes/js/jquery/ui/effect-drop.min.js
index d57f608..7c3a5fb 100644
--- a/wp-includes/js/jquery/ui/effect-drop.min.js
+++ b/wp-includes/js/jquery/ui/effect-drop.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Effects Drop 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Drop 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(r){"use strict";return r.effects.define("drop","hide",function(e,t){var i,n=r(this),o="show"===e.mode,f=e.direction||"left",c="up"===f||"down"===f?"top":"left",f="up"===f||"left"===f?"-=":"+=",u="+="==f?"-=":"+=",d={opacity:0};r.effects.createPlaceholder(n),i=e.distance||n["top"==c?"outerHeight":"outerWidth"](!0)/2,d[c]=f+i,o&&(n.css(d),d[c]=u+i,d.opacity=1),n.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:t})})}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(d){"use strict";return d.effects.define("drop","hide",function(e,t){var i,n=d(this),o="show"===e.mode,f=e.direction||"left",c="up"===f||"down"===f?"top":"left",f="up"===f||"left"===f?"-=":"+=",u="+="==f?"-=":"+=",r={opacity:0};d.effects.createPlaceholder(n),i=e.distance||n["top"==c?"outerHeight":"outerWidth"](!0)/2,r[c]=f+i,o&&(n.css(r),r[c]=u+i,r.opacity=1),n.animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:t})})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/effect-explode.js b/wp-includes/js/jquery/ui/effect-explode.js
index 4a98f8c..07ebe0b 100644
--- a/wp-includes/js/jquery/ui/effect-explode.js
+++ b/wp-includes/js/jquery/ui/effect-explode.js
@@ -1,10 +1,10 @@
/*!
- * jQuery UI Effects Explode 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Explode 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Explode Effect
@@ -12,8 +12,8 @@
/* eslint-disable max-len */
//>>description: Explodes an element in all directions into n pieces. Implodes an element to its original wholeness.
/* eslint-enable max-len */
-//>>docs: http://api.jqueryui.com/explode-effect/
-//>>demos: http://jqueryui.com/effect/
+//>>docs: https://api.jqueryui.com/explode-effect/
+//>>demos: https://jqueryui.com/effect/
( function( factory ) {
"use strict";
@@ -23,7 +23,8 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./effect"
+ "../version",
+ "../effect"
], factory );
} else {
diff --git a/wp-includes/js/jquery/ui/effect-explode.min.js b/wp-includes/js/jquery/ui/effect-explode.min.js
index 8573af6..e0a1ef4 100644
--- a/wp-includes/js/jquery/ui/effect-explode.min.js
+++ b/wp-includes/js/jquery/ui/effect-explode.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Effects Explode 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Explode 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(b){"use strict";return b.effects.define("explode","hide",function(e,i){var t,o,s,n,f,d,c=e.pieces?Math.round(Math.sqrt(e.pieces)):3,a=c,l=b(this),h="show"===e.mode,p=l.show().css("visibility","hidden").offset(),r=Math.ceil(l.outerWidth()/a),u=Math.ceil(l.outerHeight()/c),v=[];function y(){v.push(this),v.length===c*a&&(l.css({visibility:"visible"}),b(v).remove(),i())}for(t=0;t<c;t++)for(n=p.top+t*u,d=t-(c-1)/2,o=0;o<a;o++)s=p.left+o*r,f=o-(a-1)/2,l.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*r,top:-t*u}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:r,height:u,left:s+(h?f*r:0),top:n+(h?d*u:0),opacity:h?0:1}).animate({left:s+(h?0:f*r),top:n+(h?0:d*u),opacity:h?1:0},e.duration||500,e.easing,y)})}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(b){"use strict";return b.effects.define("explode","hide",function(e,i){var t,o,s,n,f,d,c=e.pieces?Math.round(Math.sqrt(e.pieces)):3,a=c,l=b(this),r="show"===e.mode,h=l.show().css("visibility","hidden").offset(),p=Math.ceil(l.outerWidth()/a),u=Math.ceil(l.outerHeight()/c),v=[];function y(){v.push(this),v.length===c*a&&(l.css({visibility:"visible"}),b(v).remove(),i())}for(t=0;t<c;t++)for(n=h.top+t*u,d=t-(c-1)/2,o=0;o<a;o++)s=h.left+o*p,f=o-(a-1)/2,l.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*p,top:-t*u}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:u,left:s+(r?f*p:0),top:n+(r?d*u:0),opacity:r?0:1}).animate({left:s+(r?0:f*p),top:n+(r?0:d*u),opacity:r?1:0},e.duration||500,e.easing,y)})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/effect-fade.js b/wp-includes/js/jquery/ui/effect-fade.js
index c0b00cd..bb2ac02 100644
--- a/wp-includes/js/jquery/ui/effect-fade.js
+++ b/wp-includes/js/jquery/ui/effect-fade.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Effects Fade 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Fade 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Fade Effect
//>>group: Effects
//>>description: Fades the element.
-//>>docs: http://api.jqueryui.com/fade-effect/
-//>>demos: http://jqueryui.com/effect/
+//>>docs: https://api.jqueryui.com/fade-effect/
+//>>demos: https://jqueryui.com/effect/
( function( factory ) {
"use strict";
@@ -21,7 +21,8 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./effect"
+ "../version",
+ "../effect"
], factory );
} else {
diff --git a/wp-includes/js/jquery/ui/effect-fade.min.js b/wp-includes/js/jquery/ui/effect-fade.min.js
index 0806983..f9f8a10 100644
--- a/wp-includes/js/jquery/ui/effect-fade.min.js
+++ b/wp-includes/js/jquery/ui/effect-fade.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Effects Fade 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Fade 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(n){"use strict";return n.effects.define("fade","toggle",function(e,t){var i="show"===e.mode;n(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:t})})}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(n){"use strict";return n.effects.define("fade","toggle",function(e,t){var i="show"===e.mode;n(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:t})})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/effect-fold.js b/wp-includes/js/jquery/ui/effect-fold.js
index 948128f..2df3701 100644
--- a/wp-includes/js/jquery/ui/effect-fold.js
+++ b/wp-includes/js/jquery/ui/effect-fold.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Effects Fold 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Fold 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Fold Effect
//>>group: Effects
//>>description: Folds an element first horizontally and then vertically.
-//>>docs: http://api.jqueryui.com/fold-effect/
-//>>demos: http://jqueryui.com/effect/
+//>>docs: https://api.jqueryui.com/fold-effect/
+//>>demos: https://jqueryui.com/effect/
( function( factory ) {
"use strict";
@@ -21,7 +21,8 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./effect"
+ "../version",
+ "../effect"
], factory );
} else {
diff --git a/wp-includes/js/jquery/ui/effect-fold.min.js b/wp-includes/js/jquery/ui/effect-fold.min.js
index e746e88..602cef5 100644
--- a/wp-includes/js/jquery/ui/effect-fold.min.js
+++ b/wp-includes/js/jquery/ui/effect-fold.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Effects Fold 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Fold 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(m){"use strict";return m.effects.define("fold","hide",function(i,e){var t=m(this),c=i.mode,n="show"===c,c="hide"===c,f=i.size||15,s=/([0-9]+)%/.exec(f),o=!!i.horizFirst?["right","bottom"]:["bottom","right"],a=i.duration/2,u=m.effects.createPlaceholder(t),l=t.cssClip(),r={clip:m.extend({},l)},p={clip:m.extend({},l)},d=[l[o[0]],l[o[1]]],h=t.queue().length;s&&(f=parseInt(s[1],10)/100*d[c?0:1]),r.clip[o[0]]=f,p.clip[o[0]]=f,p.clip[o[1]]=0,n&&(t.cssClip(p.clip),u&&u.css(m.effects.clipToBox(p)),p.clip=l),t.queue(function(e){u&&u.animate(m.effects.clipToBox(r),a,i.easing).animate(m.effects.clipToBox(p),a,i.easing),e()}).animate(r,a,i.easing).animate(p,a,i.easing).queue(e),m.effects.unshift(t,h,4)})}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(m){"use strict";return m.effects.define("fold","hide",function(i,e){var t=m(this),c=i.mode,n="show"===c,c="hide"===c,s=i.size||15,f=/([0-9]+)%/.exec(s),o=!!i.horizFirst?["right","bottom"]:["bottom","right"],a=i.duration/2,u=m.effects.createPlaceholder(t),l=t.cssClip(),r={clip:m.extend({},l)},p={clip:m.extend({},l)},d=[l[o[0]],l[o[1]]],h=t.queue().length;f&&(s=parseInt(f[1],10)/100*d[c?0:1]),r.clip[o[0]]=s,p.clip[o[0]]=s,p.clip[o[1]]=0,n&&(t.cssClip(p.clip),u&&u.css(m.effects.clipToBox(p)),p.clip=l),t.queue(function(e){u&&u.animate(m.effects.clipToBox(r),a,i.easing).animate(m.effects.clipToBox(p),a,i.easing),e()}).animate(r,a,i.easing).animate(p,a,i.easing).queue(e),m.effects.unshift(t,h,4)})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/effect-highlight.js b/wp-includes/js/jquery/ui/effect-highlight.js
index a79c591..f05b32e 100644
--- a/wp-includes/js/jquery/ui/effect-highlight.js
+++ b/wp-includes/js/jquery/ui/effect-highlight.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Effects Highlight 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Highlight 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Highlight Effect
//>>group: Effects
//>>description: Highlights the background of an element in a defined color for a custom duration.
-//>>docs: http://api.jqueryui.com/highlight-effect/
-//>>demos: http://jqueryui.com/effect/
+//>>docs: https://api.jqueryui.com/highlight-effect/
+//>>demos: https://jqueryui.com/effect/
( function( factory ) {
"use strict";
@@ -21,7 +21,8 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./effect"
+ "../version",
+ "../effect"
], factory );
} else {
diff --git a/wp-includes/js/jquery/ui/effect-highlight.min.js b/wp-includes/js/jquery/ui/effect-highlight.min.js
index 1bc2afb..2d52182 100644
--- a/wp-includes/js/jquery/ui/effect-highlight.min.js
+++ b/wp-includes/js/jquery/ui/effect-highlight.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Effects Highlight 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Highlight 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(i){"use strict";return i.effects.define("highlight","show",function(e,n){var o=i(this),t={backgroundColor:o.css("backgroundColor")};"hide"===e.mode&&(t.opacity=0),i.effects.saveStyle(o),o.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(t,{queue:!1,duration:e.duration,easing:e.easing,complete:n})})}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(t){"use strict";return t.effects.define("highlight","show",function(e,n){var o=t(this),i={backgroundColor:o.css("backgroundColor")};"hide"===e.mode&&(i.opacity=0),t.effects.saveStyle(o),o.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(i,{queue:!1,duration:e.duration,easing:e.easing,complete:n})})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/effect-puff.js b/wp-includes/js/jquery/ui/effect-puff.js
index d9a2eb5..cfbe2b3 100644
--- a/wp-includes/js/jquery/ui/effect-puff.js
+++ b/wp-includes/js/jquery/ui/effect-puff.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Effects Puff 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Puff 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Puff Effect
//>>group: Effects
//>>description: Creates a puff effect by scaling the element up and hiding it at the same time.
-//>>docs: http://api.jqueryui.com/puff-effect/
-//>>demos: http://jqueryui.com/effect/
+//>>docs: https://api.jqueryui.com/puff-effect/
+//>>demos: https://jqueryui.com/effect/
( function( factory ) {
"use strict";
@@ -21,7 +21,8 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./effect",
+ "../version",
+ "../effect",
"./effect-scale"
], factory );
} else {
diff --git a/wp-includes/js/jquery/ui/effect-puff.min.js b/wp-includes/js/jquery/ui/effect-puff.min.js
index 9f3d042..dd83112 100644
--- a/wp-includes/js/jquery/ui/effect-puff.min.js
+++ b/wp-includes/js/jquery/ui/effect-puff.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Effects Puff 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Puff 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect","./effect-scale"],e):e(jQuery)}(function(t){"use strict";return t.effects.define("puff","hide",function(e,f){e=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,e,f)})}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect","./effect-scale"],e):e(jQuery)}(function(t){"use strict";return t.effects.define("puff","hide",function(e,f){e=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,e,f)})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/effect-pulsate.js b/wp-includes/js/jquery/ui/effect-pulsate.js
index b15bf95..55add16 100644
--- a/wp-includes/js/jquery/ui/effect-pulsate.js
+++ b/wp-includes/js/jquery/ui/effect-pulsate.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Effects Pulsate 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Pulsate 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Pulsate Effect
//>>group: Effects
//>>description: Pulsates an element n times by changing the opacity to zero and back.
-//>>docs: http://api.jqueryui.com/pulsate-effect/
-//>>demos: http://jqueryui.com/effect/
+//>>docs: https://api.jqueryui.com/pulsate-effect/
+//>>demos: https://jqueryui.com/effect/
( function( factory ) {
"use strict";
@@ -21,7 +21,8 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./effect"
+ "../version",
+ "../effect"
], factory );
} else {
diff --git a/wp-includes/js/jquery/ui/effect-pulsate.min.js b/wp-includes/js/jquery/ui/effect-pulsate.min.js
index d1d7367..475d731 100644
--- a/wp-includes/js/jquery/ui/effect-pulsate.min.js
+++ b/wp-includes/js/jquery/ui/effect-pulsate.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Effects Pulsate 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Pulsate 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(c){"use strict";return c.effects.define("pulsate","show",function(e,i){var t=c(this),n=e.mode,s="show"===n,f=2*(e.times||5)+(s||"hide"===n?1:0),u=e.duration/f,o=0,a=1,n=t.queue().length;for(!s&&t.is(":visible")||(t.css("opacity",0).show(),o=1);a<f;a++)t.animate({opacity:o},u,e.easing),o=1-o;t.animate({opacity:o},u,e.easing),t.queue(i),c.effects.unshift(t,n,1+f)})}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(c){"use strict";return c.effects.define("pulsate","show",function(e,i){var t=c(this),n=e.mode,s="show"===n,f=2*(e.times||5)+(s||"hide"===n?1:0),u=e.duration/f,o=0,a=1,n=t.queue().length;for(!s&&t.is(":visible")||(t.css("opacity",0).show(),o=1);a<f;a++)t.animate({opacity:o},u,e.easing),o=1-o;t.animate({opacity:o},u,e.easing),t.queue(i),c.effects.unshift(t,n,1+f)})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/effect-scale.js b/wp-includes/js/jquery/ui/effect-scale.js
index 27dec8c..7ced5d2 100644
--- a/wp-includes/js/jquery/ui/effect-scale.js
+++ b/wp-includes/js/jquery/ui/effect-scale.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Effects Scale 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Scale 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Scale Effect
//>>group: Effects
//>>description: Grows or shrinks an element and its content.
-//>>docs: http://api.jqueryui.com/scale-effect/
-//>>demos: http://jqueryui.com/effect/
+//>>docs: https://api.jqueryui.com/scale-effect/
+//>>demos: https://jqueryui.com/effect/
( function( factory ) {
"use strict";
@@ -21,7 +21,8 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./effect",
+ "../version",
+ "../effect",
"./effect-size"
], factory );
} else {
diff --git a/wp-includes/js/jquery/ui/effect-scale.min.js b/wp-includes/js/jquery/ui/effect-scale.min.js
index fed0534..bd9753c 100644
--- a/wp-includes/js/jquery/ui/effect-scale.min.js
+++ b/wp-includes/js/jquery/ui/effect-scale.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Effects Scale 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Scale 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect","./effect-size"],e):e(jQuery)}(function(n){"use strict";return n.effects.define("scale",function(e,t){var f=n(this),i=e.mode,i=parseInt(e.percent,10)||(0===parseInt(e.percent,10)||"effect"!==i?0:100),f=n.extend(!0,{from:n.effects.scaledDimensions(f),to:n.effects.scaledDimensions(f,i,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(f.from.opacity=1,f.to.opacity=0),n.effects.effect.size.call(this,f,t)})}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect","./effect-size"],e):e(jQuery)}(function(n){"use strict";return n.effects.define("scale",function(e,t){var f=n(this),i=e.mode,i=parseInt(e.percent,10)||(0===parseInt(e.percent,10)||"effect"!==i?0:100),f=n.extend(!0,{from:n.effects.scaledDimensions(f),to:n.effects.scaledDimensions(f,i,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(f.from.opacity=1,f.to.opacity=0),n.effects.effect.size.call(this,f,t)})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/effect-shake.js b/wp-includes/js/jquery/ui/effect-shake.js
index d6983ed..894198d 100644
--- a/wp-includes/js/jquery/ui/effect-shake.js
+++ b/wp-includes/js/jquery/ui/effect-shake.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Effects Shake 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Shake 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Shake Effect
//>>group: Effects
//>>description: Shakes an element horizontally or vertically n times.
-//>>docs: http://api.jqueryui.com/shake-effect/
-//>>demos: http://jqueryui.com/effect/
+//>>docs: https://api.jqueryui.com/shake-effect/
+//>>demos: https://jqueryui.com/effect/
( function( factory ) {
"use strict";
@@ -21,7 +21,8 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./effect"
+ "../version",
+ "../effect"
], factory );
} else {
diff --git a/wp-includes/js/jquery/ui/effect-shake.min.js b/wp-includes/js/jquery/ui/effect-shake.min.js
index 97fb1d4..a4fcae3 100644
--- a/wp-includes/js/jquery/ui/effect-shake.min.js
+++ b/wp-includes/js/jquery/ui/effect-shake.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Effects Shake 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Shake 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(h){"use strict";return h.effects.define("shake",function(e,t){var n=1,i=h(this),a=e.direction||"left",f=e.distance||20,u=e.times||3,s=2*u+1,c=Math.round(e.duration/s),r="up"===a||"down"===a?"top":"left",a="up"===a||"left"===a,o={},d={},m={},g=i.queue().length;for(h.effects.createPlaceholder(i),o[r]=(a?"-=":"+=")+f,d[r]=(a?"+=":"-=")+2*f,m[r]=(a?"-=":"+=")+2*f,i.animate(o,c,e.easing);n<u;n++)i.animate(d,c,e.easing).animate(m,c,e.easing);i.animate(d,c,e.easing).animate(o,c/2,e.easing).queue(t),h.effects.unshift(i,g,1+s)})}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(h){"use strict";return h.effects.define("shake",function(e,t){var n=1,i=h(this),a=e.direction||"left",f=e.distance||20,s=e.times||3,u=2*s+1,c=Math.round(e.duration/u),r="up"===a||"down"===a?"top":"left",a="up"===a||"left"===a,o={},d={},m={},g=i.queue().length;for(h.effects.createPlaceholder(i),o[r]=(a?"-=":"+=")+f,d[r]=(a?"+=":"-=")+2*f,m[r]=(a?"-=":"+=")+2*f,i.animate(o,c,e.easing);n<s;n++)i.animate(d,c,e.easing).animate(m,c,e.easing);i.animate(d,c,e.easing).animate(o,c/2,e.easing).queue(t),h.effects.unshift(i,g,1+u)})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/effect-size.js b/wp-includes/js/jquery/ui/effect-size.js
index e6840b9..cc8c2bf 100644
--- a/wp-includes/js/jquery/ui/effect-size.js
+++ b/wp-includes/js/jquery/ui/effect-size.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Effects Size 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Size 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Size Effect
//>>group: Effects
//>>description: Resize an element to a specified width and height.
-//>>docs: http://api.jqueryui.com/size-effect/
-//>>demos: http://jqueryui.com/effect/
+//>>docs: https://api.jqueryui.com/size-effect/
+//>>demos: https://jqueryui.com/effect/
( function( factory ) {
"use strict";
@@ -21,7 +21,8 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./effect"
+ "../version",
+ "../effect"
], factory );
} else {
diff --git a/wp-includes/js/jquery/ui/effect-size.min.js b/wp-includes/js/jquery/ui/effect-size.min.js
index 7220aa5..8da160f 100644
--- a/wp-includes/js/jquery/ui/effect-size.min.js
+++ b/wp-includes/js/jquery/ui/effect-size.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Effects Size 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Size 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],t):t(jQuery)}(function(l){"use strict";return l.effects.define("size",function(o,e){var f,i=l(this),t=["fontSize"],s=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],n=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],r=o.mode,h="effect"!==r,c=o.scale||"both",d=o.origin||["middle","center"],a=i.css("position"),g=i.position(),u=l.effects.scaledDimensions(i),m=o.from||u,y=o.to||l.effects.scaledDimensions(i,0);l.effects.createPlaceholder(i),"show"===r&&(r=m,m=y,y=r),f={from:{y:m.height/u.height,x:m.width/u.width},to:{y:y.height/u.height,x:y.width/u.width}},"box"!==c&&"both"!==c||(f.from.y!==f.to.y&&(m=l.effects.setTransition(i,s,f.from.y,m),y=l.effects.setTransition(i,s,f.to.y,y)),f.from.x!==f.to.x&&(m=l.effects.setTransition(i,n,f.from.x,m),y=l.effects.setTransition(i,n,f.to.x,y))),"content"!==c&&"both"!==c||f.from.y!==f.to.y&&(m=l.effects.setTransition(i,t,f.from.y,m),y=l.effects.setTransition(i,t,f.to.y,y)),d&&(r=l.effects.getBaseline(d,u),m.top=(u.outerHeight-m.outerHeight)*r.y+g.top,m.left=(u.outerWidth-m.outerWidth)*r.x+g.left,y.top=(u.outerHeight-y.outerHeight)*r.y+g.top,y.left=(u.outerWidth-y.outerWidth)*r.x+g.left),delete m.outerHeight,delete m.outerWidth,i.css(m),"content"!==c&&"both"!==c||(s=s.concat(["marginTop","marginBottom"]).concat(t),n=n.concat(["marginLeft","marginRight"]),i.find("*[width]").each(function(){var t=l(this),e=l.effects.scaledDimensions(t),i={height:e.height*f.from.y,width:e.width*f.from.x,outerHeight:e.outerHeight*f.from.y,outerWidth:e.outerWidth*f.from.x},e={height:e.height*f.to.y,width:e.width*f.to.x,outerHeight:e.height*f.to.y,outerWidth:e.width*f.to.x};f.from.y!==f.to.y&&(i=l.effects.setTransition(t,s,f.from.y,i),e=l.effects.setTransition(t,s,f.to.y,e)),f.from.x!==f.to.x&&(i=l.effects.setTransition(t,n,f.from.x,i),e=l.effects.setTransition(t,n,f.to.x,e)),h&&l.effects.saveStyle(t),t.css(i),t.animate(e,o.duration,o.easing,function(){h&&l.effects.restoreStyle(t)})})),i.animate(y,{queue:!1,duration:o.duration,easing:o.easing,complete:function(){var t=i.offset();0===y.opacity&&i.css("opacity",m.opacity),h||(i.css("position","static"===a?"relative":a).offset(t),l.effects.saveStyle(i)),e()}})})}); \ No newline at end of file
+!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],t):t(jQuery)}(function(l){"use strict";return l.effects.define("size",function(o,e){var f,i=l(this),t=["fontSize"],s=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],n=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],r=o.mode,h="effect"!==r,c=o.scale||"both",d=o.origin||["middle","center"],a=i.css("position"),g=i.position(),u=l.effects.scaledDimensions(i),m=o.from||u,y=o.to||l.effects.scaledDimensions(i,0);l.effects.createPlaceholder(i),"show"===r&&(r=m,m=y,y=r),f={from:{y:m.height/u.height,x:m.width/u.width},to:{y:y.height/u.height,x:y.width/u.width}},"box"!==c&&"both"!==c||(f.from.y!==f.to.y&&(m=l.effects.setTransition(i,s,f.from.y,m),y=l.effects.setTransition(i,s,f.to.y,y)),f.from.x!==f.to.x&&(m=l.effects.setTransition(i,n,f.from.x,m),y=l.effects.setTransition(i,n,f.to.x,y))),"content"!==c&&"both"!==c||f.from.y!==f.to.y&&(m=l.effects.setTransition(i,t,f.from.y,m),y=l.effects.setTransition(i,t,f.to.y,y)),d&&(r=l.effects.getBaseline(d,u),m.top=(u.outerHeight-m.outerHeight)*r.y+g.top,m.left=(u.outerWidth-m.outerWidth)*r.x+g.left,y.top=(u.outerHeight-y.outerHeight)*r.y+g.top,y.left=(u.outerWidth-y.outerWidth)*r.x+g.left),delete m.outerHeight,delete m.outerWidth,i.css(m),"content"!==c&&"both"!==c||(s=s.concat(["marginTop","marginBottom"]).concat(t),n=n.concat(["marginLeft","marginRight"]),i.find("*[width]").each(function(){var t=l(this),e=l.effects.scaledDimensions(t),i={height:e.height*f.from.y,width:e.width*f.from.x,outerHeight:e.outerHeight*f.from.y,outerWidth:e.outerWidth*f.from.x},e={height:e.height*f.to.y,width:e.width*f.to.x,outerHeight:e.height*f.to.y,outerWidth:e.width*f.to.x};f.from.y!==f.to.y&&(i=l.effects.setTransition(t,s,f.from.y,i),e=l.effects.setTransition(t,s,f.to.y,e)),f.from.x!==f.to.x&&(i=l.effects.setTransition(t,n,f.from.x,i),e=l.effects.setTransition(t,n,f.to.x,e)),h&&l.effects.saveStyle(t),t.css(i),t.animate(e,o.duration,o.easing,function(){h&&l.effects.restoreStyle(t)})})),i.animate(y,{queue:!1,duration:o.duration,easing:o.easing,complete:function(){var t=i.offset();0===y.opacity&&i.css("opacity",m.opacity),h||(i.css("position","static"===a?"relative":a).offset(t),l.effects.saveStyle(i)),e()}})})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/effect-slide.js b/wp-includes/js/jquery/ui/effect-slide.js
index 96ec648..dec9f7c 100644
--- a/wp-includes/js/jquery/ui/effect-slide.js
+++ b/wp-includes/js/jquery/ui/effect-slide.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Effects Slide 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Slide 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Slide Effect
//>>group: Effects
//>>description: Slides an element in and out of the viewport.
-//>>docs: http://api.jqueryui.com/slide-effect/
-//>>demos: http://jqueryui.com/effect/
+//>>docs: https://api.jqueryui.com/slide-effect/
+//>>demos: https://jqueryui.com/effect/
( function( factory ) {
"use strict";
@@ -21,7 +21,8 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./effect"
+ "../version",
+ "../effect"
], factory );
} else {
diff --git a/wp-includes/js/jquery/ui/effect-slide.min.js b/wp-includes/js/jquery/ui/effect-slide.min.js
index 7739e70..f881bbd 100644
--- a/wp-includes/js/jquery/ui/effect-slide.min.js
+++ b/wp-includes/js/jquery/ui/effect-slide.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Effects Slide 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Slide 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(d){"use strict";return d.effects.define("slide","show",function(e,t){var i,o,c=d(this),n={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},s=e.mode,f=e.direction||"left",l="up"===f||"down"===f?"top":"left",p="up"===f||"left"===f,u=e.distance||c["top"==l?"outerHeight":"outerWidth"](!0),r={};d.effects.createPlaceholder(c),i=c.cssClip(),o=c.position()[l],r[l]=(p?-1:1)*u+o,r.clip=c.cssClip(),r.clip[n[f][1]]=r.clip[n[f][0]],"show"===s&&(c.cssClip(r.clip),c.css(l,r[l]),r.clip=i,r[l]=o),c.animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:t})})}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(d){"use strict";return d.effects.define("slide","show",function(e,t){var i,o,n=d(this),c={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},s=e.mode,f=e.direction||"left",l="up"===f||"down"===f?"top":"left",p="up"===f||"left"===f,r=e.distance||n["top"==l?"outerHeight":"outerWidth"](!0),u={};d.effects.createPlaceholder(n),i=n.cssClip(),o=n.position()[l],u[l]=(p?-1:1)*r+o,u.clip=n.cssClip(),u.clip[c[f][1]]=u.clip[c[f][0]],"show"===s&&(n.cssClip(u.clip),n.css(l,u[l]),u.clip=i,u[l]=o),n.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:t})})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/effect-transfer.js b/wp-includes/js/jquery/ui/effect-transfer.js
index 01bcc12..e6f36ac 100644
--- a/wp-includes/js/jquery/ui/effect-transfer.js
+++ b/wp-includes/js/jquery/ui/effect-transfer.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Effects Transfer 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Transfer 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Transfer Effect
//>>group: Effects
//>>description: Displays a transfer effect from one element to another.
-//>>docs: http://api.jqueryui.com/transfer-effect/
-//>>demos: http://jqueryui.com/effect/
+//>>docs: https://api.jqueryui.com/transfer-effect/
+//>>demos: https://jqueryui.com/effect/
( function( factory ) {
"use strict";
@@ -21,7 +21,8 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./effect"
+ "../version",
+ "../effect"
], factory );
} else {
diff --git a/wp-includes/js/jquery/ui/effect-transfer.min.js b/wp-includes/js/jquery/ui/effect-transfer.min.js
index ce1c935..afa7088 100644
--- a/wp-includes/js/jquery/ui/effect-transfer.min.js
+++ b/wp-includes/js/jquery/ui/effect-transfer.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Effects Transfer 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects Transfer 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(f){"use strict";var e;return e=!1!==f.uiBackCompat?f.effects.define("transfer",function(e,t){f(this).transfer(e,t)}):e}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(t){"use strict";var e;return e=!1!==t.uiBackCompat?t.effects.define("transfer",function(e,n){t(this).transfer(e,n)}):e}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/effect.js b/wp-includes/js/jquery/ui/effect.js
index e7791d5..792a828 100644
--- a/wp-includes/js/jquery/ui/effect.js
+++ b/wp-includes/js/jquery/ui/effect.js
@@ -1,10 +1,10 @@
/*!
- * jQuery UI Effects 1.13.2
- * http://jqueryui.com
+ * jQuery UI Effects 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Effects Core
@@ -12,8 +12,8 @@
/* eslint-disable max-len */
//>>description: Extends the internal jQuery effects. Includes morphing and easing. Required by all other effects.
/* eslint-enable max-len */
-//>>docs: http://api.jqueryui.com/category/effects-core/
-//>>demos: http://jqueryui.com/effect/
+//>>docs: https://api.jqueryui.com/category/effects-core/
+//>>demos: https://jqueryui.com/effect/
( function( factory ) {
"use strict";
@@ -21,7 +21,12 @@
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
- define( [ "jquery" ], factory );
+ define( [
+ "jquery",
+ "./jquery-var-for-color",
+ "./vendor/jquery-color/jquery.color",
+ "./version"
+ ], factory );
} else {
// Browser globals
@@ -30,729 +35,6 @@
} )( function( $ ) {
"use strict";
-// Include version.js
-$.ui = $.ui || {};
-$.ui.version = "1.13.1";
-
-// Source: jquery-var-for-color.js
-// Create a local jQuery because jQuery Color relies on it and the
-// global may not exist with AMD and a custom build (#10199).
-// This module is a noop if used as a regular AMD module.
-// eslint-disable-next-line no-unused-vars
-var jQuery = $;
-
-
-/*!
- * jQuery Color Animations v2.2.0
- * https://github.com/jquery/jquery-color
- *
- * Copyright OpenJS Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- *
- * Date: Sun May 10 09:02:36 2020 +0200
- */
-
-
-
- var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor " +
- "borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
-
- class2type = {},
- toString = class2type.toString,
-
- // plusequals test for += 100 -= 100
- rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
-
- // a set of RE's that can match strings and generate color tuples.
- stringParsers = [ {
- re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
- parse: function( execResult ) {
- return [
- execResult[ 1 ],
- execResult[ 2 ],
- execResult[ 3 ],
- execResult[ 4 ]
- ];
- }
- }, {
- re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
- parse: function( execResult ) {
- return [
- execResult[ 1 ] * 2.55,
- execResult[ 2 ] * 2.55,
- execResult[ 3 ] * 2.55,
- execResult[ 4 ]
- ];
- }
- }, {
-
- // this regex ignores A-F because it's compared against an already lowercased string
- re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,
- parse: function( execResult ) {
- return [
- parseInt( execResult[ 1 ], 16 ),
- parseInt( execResult[ 2 ], 16 ),
- parseInt( execResult[ 3 ], 16 ),
- execResult[ 4 ] ?
- ( parseInt( execResult[ 4 ], 16 ) / 255 ).toFixed( 2 ) :
- 1
- ];
- }
- }, {
-
- // this regex ignores A-F because it's compared against an already lowercased string
- re: /#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,
- parse: function( execResult ) {
- return [
- parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),
- parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ),
- parseInt( execResult[ 3 ] + execResult[ 3 ], 16 ),
- execResult[ 4 ] ?
- ( parseInt( execResult[ 4 ] + execResult[ 4 ], 16 ) / 255 )
- .toFixed( 2 ) :
- 1
- ];
- }
- }, {
- re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
- space: "hsla",
- parse: function( execResult ) {
- return [
- execResult[ 1 ],
- execResult[ 2 ] / 100,
- execResult[ 3 ] / 100,
- execResult[ 4 ]
- ];
- }
- } ],
-
- // jQuery.Color( )
- color = jQuery.Color = function( color, green, blue, alpha ) {
- return new jQuery.Color.fn.parse( color, green, blue, alpha );
- },
- spaces = {
- rgba: {
- props: {
- red: {
- idx: 0,
- type: "byte"
- },
- green: {
- idx: 1,
- type: "byte"
- },
- blue: {
- idx: 2,
- type: "byte"
- }
- }
- },
-
- hsla: {
- props: {
- hue: {
- idx: 0,
- type: "degrees"
- },
- saturation: {
- idx: 1,
- type: "percent"
- },
- lightness: {
- idx: 2,
- type: "percent"
- }
- }
- }
- },
- propTypes = {
- "byte": {
- floor: true,
- max: 255
- },
- "percent": {
- max: 1
- },
- "degrees": {
- mod: 360,
- floor: true
- }
- },
- support = color.support = {},
-
- // element for support tests
- supportElem = jQuery( "<p>" )[ 0 ],
-
- // colors = jQuery.Color.names
- colors,
-
- // local aliases of functions called often
- each = jQuery.each;
-
-// determine rgba support immediately
-supportElem.style.cssText = "background-color:rgba(1,1,1,.5)";
-support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1;
-
-// define cache name and alpha properties
-// for rgba and hsla spaces
-each( spaces, function( spaceName, space ) {
- space.cache = "_" + spaceName;
- space.props.alpha = {
- idx: 3,
- type: "percent",
- def: 1
- };
-} );
-
-// Populate the class2type map
-jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
- function( _i, name ) {
- class2type[ "[object " + name + "]" ] = name.toLowerCase();
- } );
-
-function getType( obj ) {
- if ( obj == null ) {
- return obj + "";
- }
-
- return typeof obj === "object" ?
- class2type[ toString.call( obj ) ] || "object" :
- typeof obj;
-}
-
-function clamp( value, prop, allowEmpty ) {
- var type = propTypes[ prop.type ] || {};
-
- if ( value == null ) {
- return ( allowEmpty || !prop.def ) ? null : prop.def;
- }
-
- // ~~ is an short way of doing floor for positive numbers
- value = type.floor ? ~~value : parseFloat( value );
-
- // IE will pass in empty strings as value for alpha,
- // which will hit this case
- if ( isNaN( value ) ) {
- return prop.def;
- }
-
- if ( type.mod ) {
-
- // we add mod before modding to make sure that negatives values
- // get converted properly: -10 -> 350
- return ( value + type.mod ) % type.mod;
- }
-
- // for now all property types without mod have min and max
- return Math.min( type.max, Math.max( 0, value ) );
-}
-
-function stringParse( string ) {
- var inst = color(),
- rgba = inst._rgba = [];
-
- string = string.toLowerCase();
-
- each( stringParsers, function( _i, parser ) {
- var parsed,
- match = parser.re.exec( string ),
- values = match && parser.parse( match ),
- spaceName = parser.space || "rgba";
-
- if ( values ) {
- parsed = inst[ spaceName ]( values );
-
- // if this was an rgba parse the assignment might happen twice
- // oh well....
- inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ];
- rgba = inst._rgba = parsed._rgba;
-
- // exit each( stringParsers ) here because we matched
- return false;
- }
- } );
-
- // Found a stringParser that handled it
- if ( rgba.length ) {
-
- // if this came from a parsed string, force "transparent" when alpha is 0
- // chrome, (and maybe others) return "transparent" as rgba(0,0,0,0)
- if ( rgba.join() === "0,0,0,0" ) {
- jQuery.extend( rgba, colors.transparent );
- }
- return inst;
- }
-
- // named colors
- return colors[ string ];
-}
-
-color.fn = jQuery.extend( color.prototype, {
- parse: function( red, green, blue, alpha ) {
- if ( red === undefined ) {
- this._rgba = [ null, null, null, null ];
- return this;
- }
- if ( red.jquery || red.nodeType ) {
- red = jQuery( red ).css( green );
- green = undefined;
- }
-
- var inst = this,
- type = getType( red ),
- rgba = this._rgba = [];
-
- // more than 1 argument specified - assume ( red, green, blue, alpha )
- if ( green !== undefined ) {
- red = [ red, green, blue, alpha ];
- type = "array";
- }
-
- if ( type === "string" ) {
- return this.parse( stringParse( red ) || colors._default );
- }
-
- if ( type === "array" ) {
- each( spaces.rgba.props, function( _key, prop ) {
- rgba[ prop.idx ] = clamp( red[ prop.idx ], prop );
- } );
- return this;
- }
-
- if ( type === "object" ) {
- if ( red instanceof color ) {
- each( spaces, function( _spaceName, space ) {
- if ( red[ space.cache ] ) {
- inst[ space.cache ] = red[ space.cache ].slice();
- }
- } );
- } else {
- each( spaces, function( _spaceName, space ) {
- var cache = space.cache;
- each( space.props, function( key, prop ) {
-
- // if the cache doesn't exist, and we know how to convert
- if ( !inst[ cache ] && space.to ) {
-
- // if the value was null, we don't need to copy it
- // if the key was alpha, we don't need to copy it either
- if ( key === "alpha" || red[ key ] == null ) {
- return;
- }
- inst[ cache ] = space.to( inst._rgba );
- }
-
- // this is the only case where we allow nulls for ALL properties.
- // call clamp with alwaysAllowEmpty
- inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true );
- } );
-
- // everything defined but alpha?
- if ( inst[ cache ] && jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {
-
- // use the default of 1
- if ( inst[ cache ][ 3 ] == null ) {
- inst[ cache ][ 3 ] = 1;
- }
-
- if ( space.from ) {
- inst._rgba = space.from( inst[ cache ] );
- }
- }
- } );
- }
- return this;
- }
- },
- is: function( compare ) {
- var is = color( compare ),
- same = true,
- inst = this;
-
- each( spaces, function( _, space ) {
- var localCache,
- isCache = is[ space.cache ];
- if ( isCache ) {
- localCache = inst[ space.cache ] || space.to && space.to( inst._rgba ) || [];
- each( space.props, function( _, prop ) {
- if ( isCache[ prop.idx ] != null ) {
- same = ( isCache[ prop.idx ] === localCache[ prop.idx ] );
- return same;
- }
- } );
- }
- return same;
- } );
- return same;
- },
- _space: function() {
- var used = [],
- inst = this;
- each( spaces, function( spaceName, space ) {
- if ( inst[ space.cache ] ) {
- used.push( spaceName );
- }
- } );
- return used.pop();
- },
- transition: function( other, distance ) {
- var end = color( other ),
- spaceName = end._space(),
- space = spaces[ spaceName ],
- startColor = this.alpha() === 0 ? color( "transparent" ) : this,
- start = startColor[ space.cache ] || space.to( startColor._rgba ),
- result = start.slice();
-
- end = end[ space.cache ];
- each( space.props, function( _key, prop ) {
- var index = prop.idx,
- startValue = start[ index ],
- endValue = end[ index ],
- type = propTypes[ prop.type ] || {};
-
- // if null, don't override start value
- if ( endValue === null ) {
- return;
- }
-
- // if null - use end
- if ( startValue === null ) {
- result[ index ] = endValue;
- } else {
- if ( type.mod ) {
- if ( endValue - startValue > type.mod / 2 ) {
- startValue += type.mod;
- } else if ( startValue - endValue > type.mod / 2 ) {
- startValue -= type.mod;
- }
- }
- result[ index ] = clamp( ( endValue - startValue ) * distance + startValue, prop );
- }
- } );
- return this[ spaceName ]( result );
- },
- blend: function( opaque ) {
-
- // if we are already opaque - return ourself
- if ( this._rgba[ 3 ] === 1 ) {
- return this;
- }
-
- var rgb = this._rgba.slice(),
- a = rgb.pop(),
- blend = color( opaque )._rgba;
-
- return color( jQuery.map( rgb, function( v, i ) {
- return ( 1 - a ) * blend[ i ] + a * v;
- } ) );
- },
- toRgbaString: function() {
- var prefix = "rgba(",
- rgba = jQuery.map( this._rgba, function( v, i ) {
- if ( v != null ) {
- return v;
- }
- return i > 2 ? 1 : 0;
- } );
-
- if ( rgba[ 3 ] === 1 ) {
- rgba.pop();
- prefix = "rgb(";
- }
-
- return prefix + rgba.join() + ")";
- },
- toHslaString: function() {
- var prefix = "hsla(",
- hsla = jQuery.map( this.hsla(), function( v, i ) {
- if ( v == null ) {
- v = i > 2 ? 1 : 0;
- }
-
- // catch 1 and 2
- if ( i && i < 3 ) {
- v = Math.round( v * 100 ) + "%";
- }
- return v;
- } );
-
- if ( hsla[ 3 ] === 1 ) {
- hsla.pop();
- prefix = "hsl(";
- }
- return prefix + hsla.join() + ")";
- },
- toHexString: function( includeAlpha ) {
- var rgba = this._rgba.slice(),
- alpha = rgba.pop();
-
- if ( includeAlpha ) {
- rgba.push( ~~( alpha * 255 ) );
- }
-
- return "#" + jQuery.map( rgba, function( v ) {
-
- // default to 0 when nulls exist
- v = ( v || 0 ).toString( 16 );
- return v.length === 1 ? "0" + v : v;
- } ).join( "" );
- },
- toString: function() {
- return this._rgba[ 3 ] === 0 ? "transparent" : this.toRgbaString();
- }
-} );
-color.fn.parse.prototype = color.fn;
-
-// hsla conversions adapted from:
-// https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021
-
-function hue2rgb( p, q, h ) {
- h = ( h + 1 ) % 1;
- if ( h * 6 < 1 ) {
- return p + ( q - p ) * h * 6;
- }
- if ( h * 2 < 1 ) {
- return q;
- }
- if ( h * 3 < 2 ) {
- return p + ( q - p ) * ( ( 2 / 3 ) - h ) * 6;
- }
- return p;
-}
-
-spaces.hsla.to = function( rgba ) {
- if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
- return [ null, null, null, rgba[ 3 ] ];
- }
- var r = rgba[ 0 ] / 255,
- g = rgba[ 1 ] / 255,
- b = rgba[ 2 ] / 255,
- a = rgba[ 3 ],
- max = Math.max( r, g, b ),
- min = Math.min( r, g, b ),
- diff = max - min,
- add = max + min,
- l = add * 0.5,
- h, s;
-
- if ( min === max ) {
- h = 0;
- } else if ( r === max ) {
- h = ( 60 * ( g - b ) / diff ) + 360;
- } else if ( g === max ) {
- h = ( 60 * ( b - r ) / diff ) + 120;
- } else {
- h = ( 60 * ( r - g ) / diff ) + 240;
- }
-
- // chroma (diff) == 0 means greyscale which, by definition, saturation = 0%
- // otherwise, saturation is based on the ratio of chroma (diff) to lightness (add)
- if ( diff === 0 ) {
- s = 0;
- } else if ( l <= 0.5 ) {
- s = diff / add;
- } else {
- s = diff / ( 2 - add );
- }
- return [ Math.round( h ) % 360, s, l, a == null ? 1 : a ];
-};
-
-spaces.hsla.from = function( hsla ) {
- if ( hsla[ 0 ] == null || hsla[ 1 ] == null || hsla[ 2 ] == null ) {
- return [ null, null, null, hsla[ 3 ] ];
- }
- var h = hsla[ 0 ] / 360,
- s = hsla[ 1 ],
- l = hsla[ 2 ],
- a = hsla[ 3 ],
- q = l <= 0.5 ? l * ( 1 + s ) : l + s - l * s,
- p = 2 * l - q;
-
- return [
- Math.round( hue2rgb( p, q, h + ( 1 / 3 ) ) * 255 ),
- Math.round( hue2rgb( p, q, h ) * 255 ),
- Math.round( hue2rgb( p, q, h - ( 1 / 3 ) ) * 255 ),
- a
- ];
-};
-
-
-each( spaces, function( spaceName, space ) {
- var props = space.props,
- cache = space.cache,
- to = space.to,
- from = space.from;
-
- // makes rgba() and hsla()
- color.fn[ spaceName ] = function( value ) {
-
- // generate a cache for this space if it doesn't exist
- if ( to && !this[ cache ] ) {
- this[ cache ] = to( this._rgba );
- }
- if ( value === undefined ) {
- return this[ cache ].slice();
- }
-
- var ret,
- type = getType( value ),
- arr = ( type === "array" || type === "object" ) ? value : arguments,
- local = this[ cache ].slice();
-
- each( props, function( key, prop ) {
- var val = arr[ type === "object" ? key : prop.idx ];
- if ( val == null ) {
- val = local[ prop.idx ];
- }
- local[ prop.idx ] = clamp( val, prop );
- } );
-
- if ( from ) {
- ret = color( from( local ) );
- ret[ cache ] = local;
- return ret;
- } else {
- return color( local );
- }
- };
-
- // makes red() green() blue() alpha() hue() saturation() lightness()
- each( props, function( key, prop ) {
-
- // alpha is included in more than one space
- if ( color.fn[ key ] ) {
- return;
- }
- color.fn[ key ] = function( value ) {
- var local, cur, match, fn,
- vtype = getType( value );
-
- if ( key === "alpha" ) {
- fn = this._hsla ? "hsla" : "rgba";
- } else {
- fn = spaceName;
- }
- local = this[ fn ]();
- cur = local[ prop.idx ];
-
- if ( vtype === "undefined" ) {
- return cur;
- }
-
- if ( vtype === "function" ) {
- value = value.call( this, cur );
- vtype = getType( value );
- }
- if ( value == null && prop.empty ) {
- return this;
- }
- if ( vtype === "string" ) {
- match = rplusequals.exec( value );
- if ( match ) {
- value = cur + parseFloat( match[ 2 ] ) * ( match[ 1 ] === "+" ? 1 : -1 );
- }
- }
- local[ prop.idx ] = value;
- return this[ fn ]( local );
- };
- } );
-} );
-
-// add cssHook and .fx.step function for each named hook.
-// accept a space separated string of properties
-color.hook = function( hook ) {
- var hooks = hook.split( " " );
- each( hooks, function( _i, hook ) {
- jQuery.cssHooks[ hook ] = {
- set: function( elem, value ) {
- var parsed, curElem,
- backgroundColor = "";
-
- if ( value !== "transparent" && ( getType( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
- value = color( parsed || value );
- if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
- curElem = hook === "backgroundColor" ? elem.parentNode : elem;
- while (
- ( backgroundColor === "" || backgroundColor === "transparent" ) &&
- curElem && curElem.style
- ) {
- try {
- backgroundColor = jQuery.css( curElem, "backgroundColor" );
- curElem = curElem.parentNode;
- } catch ( e ) {
- }
- }
-
- value = value.blend( backgroundColor && backgroundColor !== "transparent" ?
- backgroundColor :
- "_default" );
- }
-
- value = value.toRgbaString();
- }
- try {
- elem.style[ hook ] = value;
- } catch ( e ) {
-
- // wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit'
- }
- }
- };
- jQuery.fx.step[ hook ] = function( fx ) {
- if ( !fx.colorInit ) {
- fx.start = color( fx.elem, hook );
- fx.end = color( fx.end );
- fx.colorInit = true;
- }
- jQuery.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) );
- };
- } );
-
-};
-
-color.hook( stepHooks );
-
-jQuery.cssHooks.borderColor = {
- expand: function( value ) {
- var expanded = {};
-
- each( [ "Top", "Right", "Bottom", "Left" ], function( _i, part ) {
- expanded[ "border" + part + "Color" ] = value;
- } );
- return expanded;
- }
-};
-
-// Basic color names only.
-// Usage of any of the other color names requires adding yourself or including
-// jquery.color.svg-names.js.
-colors = jQuery.Color.names = {
-
- // 4.1. Basic color keywords
- aqua: "#00ffff",
- black: "#000000",
- blue: "#0000ff",
- fuchsia: "#ff00ff",
- gray: "#808080",
- green: "#008000",
- lime: "#00ff00",
- maroon: "#800000",
- navy: "#000080",
- olive: "#808000",
- purple: "#800080",
- red: "#ff0000",
- silver: "#c0c0c0",
- teal: "#008080",
- white: "#ffffff",
- yellow: "#ffff00",
-
- // 4.2.3. "transparent" color keyword
- transparent: [ null, null, null, 0 ],
-
- _default: "#ffffff"
-};
-
var dataSpace = "ui-effects-",
dataSpaceStyle = "ui-effects-style",
dataSpaceAnimated = "ui-effects-animated";
@@ -1120,7 +402,7 @@ if ( $.uiBackCompat !== false ) {
}
$.extend( $.effects, {
- version: "1.13.2",
+ version: "1.13.3",
define: function( name, mode, effect ) {
if ( !effect ) {
@@ -1243,7 +525,7 @@ $.extend( $.effects, {
// Lock in margins first to account for form elements, which
// will change margin if you explicitly set height
- // see: http://jsfiddle.net/JZSMt/3/ https://bugs.webkit.org/show_bug.cgi?id=107380
+ // see: https://jsfiddle.net/JZSMt/3/ https://bugs.webkit.org/show_bug.cgi?id=107380
// Support: Safari
element.css( {
marginTop: element.css( "marginTop" ),
@@ -1637,7 +919,7 @@ $.fx.step.clip = function( fx ) {
( function() {
-// Based on easing equations from Robert Penner (http://www.robertpenner.com/easing)
+// Based on easing equations from Robert Penner (http://robertpenner.com/easing)
var baseEasings = {};
diff --git a/wp-includes/js/jquery/ui/effect.min.js b/wp-includes/js/jquery/ui/effect.min.js
index 7ebaf22..c449eb6 100644
--- a/wp-includes/js/jquery/ui/effect.min.js
+++ b/wp-includes/js/jquery/ui/effect.min.js
@@ -1,19 +1,9 @@
/*!
- * jQuery UI Effects 1.13.2
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
-!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(u){"use strict";u.ui=u.ui||{},u.ui.version="1.13.1";var a=u,n={},e=n.toString,f=/^([\-+])=\s*(\d+\.?\d*)/,t=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),t[4]?(parseInt(t[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),t[4]?(parseInt(t[4]+t[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],l=a.Color=function(t,e,n,r){return new a.Color.fn.parse(t,e,n,r)},d={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},p={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},s=l.support={},r=a("<p>")[0],h=a.each;
-/*!
- * jQuery Color Animations v2.2.0
- * https://github.com/jquery/jquery-color
+ * jQuery UI Effects 1.13.3
+ * https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
- *
- * Date: Sun May 10 09:02:36 2020 +0200
- */function g(t){return null==t?t+"":"object"==typeof t?n[e.call(t)]||"object":typeof t}function m(t,e,n){var r=p[e.type]||{};return null==t?n||!e.def?null:e.def:(t=r.floor?~~t:parseFloat(t),isNaN(t)?e.def:r.mod?(t+r.mod)%r.mod:Math.min(r.max,Math.max(0,t)))}function c(r){var o=l(),i=o._rgba=[];return r=r.toLowerCase(),h(t,function(t,e){var n=e.re.exec(r),n=n&&e.parse(n),e=e.space||"rgba";if(n)return n=o[e](n),o[d[e].cache]=n[d[e].cache],i=o._rgba=n._rgba,!1}),i.length?("0,0,0,0"===i.join()&&a.extend(i,M.transparent),o):M[r]}function o(t,e,n){return 6*(n=(n+1)%1)<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}r.style.cssText="background-color:rgba(1,1,1,.5)",s.rgba=-1<r.style.backgroundColor.indexOf("rgba"),h(d,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),a.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){n["[object "+e+"]"]=e.toLowerCase()}),(l.fn=a.extend(l.prototype,{parse:function(o,t,e,n){if(void 0===o)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=a(o).css(t),t=void 0);var i=this,r=g(o),s=this._rgba=[];return void 0!==t&&(o=[o,t,e,n],r="array"),"string"===r?this.parse(c(o)||M._default):"array"===r?(h(d.rgba.props,function(t,e){s[e.idx]=m(o[e.idx],e)}),this):"object"===r?(o instanceof l?h(d,function(t,e){o[e.cache]&&(i[e.cache]=o[e.cache].slice())}):h(d,function(t,n){var r=n.cache;h(n.props,function(t,e){if(!i[r]&&n.to){if("alpha"===t||null==o[t])return;i[r]=n.to(i._rgba)}i[r][e.idx]=m(o[t],e,!0)}),i[r]&&a.inArray(null,i[r].slice(0,3))<0&&(null==i[r][3]&&(i[r][3]=1),n.from)&&(i._rgba=n.from(i[r]))}),this):void 0},is:function(t){var o=l(t),i=!0,s=this;return h(d,function(t,e){var n,r=o[e.cache];return r&&(n=s[e.cache]||e.to&&e.to(s._rgba)||[],h(e.props,function(t,e){if(null!=r[e.idx])return i=r[e.idx]===n[e.idx]})),i}),i},_space:function(){var n=[],r=this;return h(d,function(t,e){r[e.cache]&&n.push(t)}),n.pop()},transition:function(t,s){var t=(f=l(t))._space(),e=d[t],n=0===this.alpha()?l("transparent"):this,a=n[e.cache]||e.to(n._rgba),c=a.slice(),f=f[e.cache];return h(e.props,function(t,e){var n=e.idx,r=a[n],o=f[n],i=p[e.type]||{};null!==o&&(null===r?c[n]=o:(i.mod&&(o-r>i.mod/2?r+=i.mod:r-o>i.mod/2&&(r-=i.mod)),c[n]=m((o-r)*s+r,e)))}),this[t](c)},blend:function(t){var e,n,r;return 1===this._rgba[3]?this:(e=this._rgba.slice(),n=e.pop(),r=l(t)._rgba,l(a.map(e,function(t,e){return(1-n)*r[e]+n*t})))},toRgbaString:function(){var t="rgba(",e=a.map(this._rgba,function(t,e){return null!=t?t:2<e?1:0});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=a.map(this.hsla(),function(t,e){return null==t&&(t=2<e?1:0),t=e&&e<3?Math.round(100*t)+"%":t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),n=e.pop();return t&&e.push(~~(255*n)),"#"+a.map(e,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}})).parse.prototype=l.fn,d.hsla.to=function(t){var e,n,r,o,i,s,a,c;return null==t[0]||null==t[1]||null==t[2]?[null,null,null,t[3]]:(e=t[0]/255,n=t[1]/255,r=t[2]/255,t=t[3],o=(c=Math.max(e,n,r))-(a=Math.min(e,n,r)),s=.5*(i=c+a),a=a===c?0:e===c?60*(n-r)/o+360:n===c?60*(r-e)/o+120:60*(e-n)/o+240,c=0==o?0:s<=.5?o/i:o/(2-i),[Math.round(a)%360,c,s,null==t?1:t])},d.hsla.from=function(t){var e,n,r;return null==t[0]||null==t[1]||null==t[2]?[null,null,null,t[3]]:(e=t[0]/360,r=t[1],n=t[2],t=t[3],r=2*n-(n=n<=.5?n*(1+r):n+r-n*r),[Math.round(255*o(r,n,e+1/3)),Math.round(255*o(r,n,e)),Math.round(255*o(r,n,e-1/3)),t])},h(d,function(a,t){var e=t.props,i=t.cache,s=t.to,c=t.from;l.fn[a]=function(t){var n,r,o;return s&&!this[i]&&(this[i]=s(this._rgba)),void 0===t?this[i].slice():(n=g(t),r="array"===n||"object"===n?t:arguments,o=this[i].slice(),h(e,function(t,e){t=r["object"===n?t:e.idx];null==t&&(t=o[e.idx]),o[e.idx]=m(t,e)}),c?((t=l(c(o)))[i]=o,t):l(o))},h(e,function(i,s){l.fn[i]||(l.fn[i]=function(t){var e=g(t),n="alpha"===i?this._hsla?"hsla":"rgba":a,r=this[n](),o=r[s.idx];return"undefined"===e?o:("function"===e&&(e=g(t=t.call(this,o))),null==t&&s.empty?this:("string"===e&&(e=f.exec(t))&&(t=o+parseFloat(e[2])*("+"===e[1]?1:-1)),r[s.idx]=t,this[n](r)))})})}),(l.hook=function(t){t=t.split(" ");h(t,function(t,i){a.cssHooks[i]={set:function(t,e){var n,r,o="";if("transparent"!==e&&("string"!==g(e)||(n=c(e)))){if(e=l(n||e),!s.rgba&&1!==e._rgba[3]){for(r="backgroundColor"===i?t.parentNode:t;(""===o||"transparent"===o)&&r&&r.style;)try{o=a.css(r,"backgroundColor"),r=r.parentNode}catch(t){}e=e.blend(o&&"transparent"!==o?o:"_default")}e=e.toRgbaString()}try{t.style[i]=e}catch(t){}}},a.fx.step[i]=function(t){t.colorInit||(t.start=l(t.elem,i),t.end=l(t.end),t.colorInit=!0),a.cssHooks[i].set(t.elem,t.start.transition(t.end,t.pos))}})})("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),a.cssHooks.borderColor={expand:function(n){var r={};return h(["Top","Right","Bottom","Left"],function(t,e){r["border"+e+"Color"]=n}),r}};var i,b,y,v,x,C,w,k,_,S,M=a.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"},j="ui-effects-",B="ui-effects-style",I="ui-effects-animated";function H(t){var e,n,r=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,o={};if(r&&r.length&&r[0]&&r[r[0]])for(n=r.length;n--;)"string"==typeof r[e=r[n]]&&(o[e.replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]=r[e]);else for(e in r)"string"==typeof r[e]&&(o[e]=r[e]);return o}function T(t,e,n,r){return t={effect:t=u.isPlainObject(t)?(e=t).effect:t},"function"==typeof(e=null==e?{}:e)&&(r=e,n=null,e={}),"number"!=typeof e&&!u.fx.speeds[e]||(r=n,n=e,e={}),"function"==typeof n&&(r=n,n=null),e&&u.extend(t,e),n=n||e.duration,t.duration=u.fx.off?0:"number"==typeof n?n:n in u.fx.speeds?u.fx.speeds[n]:u.fx.speeds._default,t.complete=r||e.complete,t}function W(t){return!t||"number"==typeof t||u.fx.speeds[t]||"string"==typeof t&&!u.effects.effect[t]||"function"==typeof t||"object"==typeof t&&!t.effect}function R(t,e){var n=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,n,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?n:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}return u.effects={effect:{}},v=["add","remove","toggle"],x={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},u.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){u.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(a.style(t.elem,e,t.end),t.setAttr=!0)}}),u.fn.addBack||(u.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),u.effects.animateClass=function(o,t,e,n){var i=u.speed(t,e,n);return this.queue(function(){var n=u(this),t=n.attr("class")||"",e=(e=i.children?n.find("*").addBack():n).map(function(){return{el:u(this),start:H(this)}}),r=function(){u.each(v,function(t,e){o[e]&&n[e+"Class"](o[e])})};r(),e=e.map(function(){return this.end=H(this.el[0]),this.diff=function(t,e){var n,r,o={};for(n in e)r=e[n],t[n]===r||x[n]||!u.fx.step[n]&&isNaN(parseFloat(r))||(o[n]=r);return o}(this.start,this.end),this}),n.attr("class",t),e=e.map(function(){var t=this,e=u.Deferred(),n=u.extend({},i,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,n),e.promise()}),u.when.apply(u,e.get()).done(function(){r(),u.each(arguments,function(){var e=this.el;u.each(this.diff,function(t){e.css(t,"")})}),i.complete.call(n[0])})})},u.fn.extend({addClass:(y=u.fn.addClass,function(t,e,n,r){return e?u.effects.animateClass.call(this,{add:t},e,n,r):y.apply(this,arguments)}),removeClass:(b=u.fn.removeClass,function(t,e,n,r){return 1<arguments.length?u.effects.animateClass.call(this,{remove:t},e,n,r):b.apply(this,arguments)}),toggleClass:(i=u.fn.toggleClass,function(t,e,n,r,o){return"boolean"==typeof e||void 0===e?n?u.effects.animateClass.call(this,e?{add:t}:{remove:t},n,r,o):i.apply(this,arguments):u.effects.animateClass.call(this,{toggle:t},e,n,r)}),switchClass:function(t,e,n,r,o){return u.effects.animateClass.call(this,{add:e,remove:t},n,r,o)}}),u.expr&&u.expr.pseudos&&u.expr.pseudos.animated&&(u.expr.pseudos.animated=(C=u.expr.pseudos.animated,function(t){return!!u(t).data(I)||C(t)})),!1!==u.uiBackCompat&&u.extend(u.effects,{save:function(t,e){for(var n=0,r=e.length;n<r;n++)null!==e[n]&&t.data(j+e[n],t[0].style[e[n]])},restore:function(t,e){for(var n,r=0,o=e.length;r<o;r++)null!==e[r]&&(n=t.data(j+e[r]),t.css(e[r],n))},setMode:function(t,e){return e="toggle"===e?t.is(":hidden")?"show":"hide":e},createWrapper:function(n){if(n.parent().is(".ui-effects-wrapper"))return n.parent();var r={width:n.outerWidth(!0),height:n.outerHeight(!0),float:n.css("float")},t=u("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:n.width(),height:n.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return n.wrap(t),n[0]!==o&&!u.contains(n[0],o)||u(o).trigger("focus"),t=n.parent(),"static"===n.css("position")?(t.css({position:"relative"}),n.css({position:"relative"})):(u.extend(r,{position:n.css("position"),zIndex:n.css("z-index")}),u.each(["top","left","bottom","right"],function(t,e){r[e]=n.css(e),isNaN(parseInt(r[e],10))&&(r[e]="auto")}),n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(e),t.css(r).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!u.contains(t[0],e)||u(e).trigger("focus")),t}}),u.extend(u.effects,{version:"1.13.2",define:function(t,e,n){return n||(n=e,e="effect"),u.effects.effect[t]=n,u.effects.effect[t].mode=e,n},scaledDimensions:function(t,e,n){var r;return 0===e?{height:0,width:0,outerHeight:0,outerWidth:0}:(r="horizontal"!==n?(e||100)/100:1,n="vertical"!==n?(e||100)/100:1,{height:t.height()*n,width:t.width()*r,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*r})},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,n){var r=t.queue();1<e&&r.splice.apply(r,[1,0].concat(r.splice(e,n))),t.dequeue()},saveStyle:function(t){t.data(B,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(B)||"",t.removeData(B)},mode:function(t,e){t=t.is(":hidden");return"toggle"===e&&(e=t?"show":"hide"),e=(t?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var n,r;switch(t[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=t[0]/e.height}switch(t[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=t[1]/e.width}return{x:r,y:n}},createPlaceholder:function(t){var e,n=t.css("position"),r=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",e=u("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(j+"placeholder",e)),t.css({position:n,left:r.left,top:r.top}),e},removePlaceholder:function(t){var e=j+"placeholder",n=t.data(e);n&&(n.remove(),t.removeData(e))},cleanUp:function(t){u.effects.restoreStyle(t),u.effects.removePlaceholder(t)},setTransition:function(r,t,o,i){return i=i||{},u.each(t,function(t,e){var n=r.cssUnit(e);0<n[0]&&(i[e]=n[0]*o+n[1])}),i}}),u.fn.extend({effect:function(){function t(t){var e=u(this),n=u.effects.mode(e,a)||i;e.data(I,!0),c.push(n),i&&("show"===n||n===i&&"hide"===n)&&e.show(),i&&"none"===n||u.effects.saveStyle(e),"function"==typeof t&&t()}var r=T.apply(this,arguments),o=u.effects.effect[r.effect],i=o.mode,e=r.queue,n=e||"fx",s=r.complete,a=r.mode,c=[];return u.fx.off||!o?a?this[a](r.duration,s):this.each(function(){s&&s.call(this)}):!1===e?this.each(t).each(f):this.queue(n,t).queue(n,f);function f(t){var e=u(this);function n(){"function"==typeof s&&s.call(e[0]),"function"==typeof t&&t()}r.mode=c.shift(),!1===u.uiBackCompat||i?"none"===r.mode?(e[a](),n()):o.call(e[0],r,function(){e.removeData(I),u.effects.cleanUp(e),"hide"===r.mode&&e.hide(),n()}):(e.is(":hidden")?"hide"===a:"show"===a)?(e[a](),n()):o.call(e[0],r,n)}},show:(_=u.fn.show,function(t){return W(t)?_.apply(this,arguments):((t=T.apply(this,arguments)).mode="show",this.effect.call(this,t))}),hide:(k=u.fn.hide,function(t){return W(t)?k.apply(this,arguments):((t=T.apply(this,arguments)).mode="hide",this.effect.call(this,t))}),toggle:(w=u.fn.toggle,function(t){return W(t)||"boolean"==typeof t?w.apply(this,arguments):((t=T.apply(this,arguments)).mode="toggle",this.effect.call(this,t))}),cssUnit:function(t){var n=this.css(t),r=[];return u.each(["em","px","%","pt"],function(t,e){0<n.indexOf(e)&&(r=[parseFloat(n),e])}),r},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):R(this.css("clip"),this)},transfer:function(t,e){var n=u(this),r=u(t.to),o="fixed"===r.css("position"),i=u("body"),s=o?i.scrollTop():0,i=o?i.scrollLeft():0,a=r.offset(),a={top:a.top-s,left:a.left-i,height:r.innerHeight(),width:r.innerWidth()},r=n.offset(),c=u("<div class='ui-effects-transfer'></div>");c.appendTo("body").addClass(t.className).css({top:r.top-s,left:r.left-i,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){c.remove(),"function"==typeof e&&e()})}}),u.fx.step.clip=function(t){t.clipInit||(t.start=u(t.elem).cssClip(),"string"==typeof t.end&&(t.end=R(t.end,t.elem)),t.clipInit=!0),u(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},S={},u.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){S[t]=function(t){return Math.pow(t,e+2)}}),u.extend(S,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),u.each(S,function(t,e){u.easing["easeIn"+t]=e,u.easing["easeOut"+t]=function(t){return 1-e(1-t)},u.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}}),u.effects}); \ No newline at end of file
+ * https://jquery.org/license
+ */
+!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./jquery-var-for-color","./vendor/jquery-color/jquery.color","./version"],t):t(jQuery)}(function(u){"use strict";var s,o,r,a,c,e,n,i,f,l,d="ui-effects-",h="ui-effects-style",p="ui-effects-animated";function m(t){var e,n,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,o={};if(i&&i.length&&i[0]&&i[i[0]])for(n=i.length;n--;)"string"==typeof i[e=i[n]]&&(o[e.replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]=i[e]);else for(e in i)"string"==typeof i[e]&&(o[e]=i[e]);return o}function g(t,e,n,i){return t={effect:t=u.isPlainObject(t)?(e=t).effect:t},"function"==typeof(e=null==e?{}:e)&&(i=e,n=null,e={}),"number"!=typeof e&&!u.fx.speeds[e]||(i=n,n=e,e={}),"function"==typeof n&&(i=n,n=null),e&&u.extend(t,e),n=n||e.duration,t.duration=u.fx.off?0:"number"==typeof n?n:n in u.fx.speeds?u.fx.speeds[n]:u.fx.speeds._default,t.complete=i||e.complete,t}function v(t){return!t||"number"==typeof t||u.fx.speeds[t]||"string"==typeof t&&!u.effects.effect[t]||"function"==typeof t||"object"==typeof t&&!t.effect}function y(t,e){var n=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,n,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?n:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}return u.effects={effect:{}},a=["add","remove","toggle"],c={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},u.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){u.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(jQuery.style(t.elem,e,t.end),t.setAttr=!0)}}),u.fn.addBack||(u.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),u.effects.animateClass=function(o,t,e,n){var s=u.speed(t,e,n);return this.queue(function(){var n=u(this),t=n.attr("class")||"",e=(e=s.children?n.find("*").addBack():n).map(function(){return{el:u(this),start:m(this)}}),i=function(){u.each(a,function(t,e){o[e]&&n[e+"Class"](o[e])})};i(),e=e.map(function(){return this.end=m(this.el[0]),this.diff=function(t,e){var n,i,o={};for(n in e)i=e[n],t[n]===i||c[n]||!u.fx.step[n]&&isNaN(parseFloat(i))||(o[n]=i);return o}(this.start,this.end),this}),n.attr("class",t),e=e.map(function(){var t=this,e=u.Deferred(),n=u.extend({},s,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,n),e.promise()}),u.when.apply(u,e.get()).done(function(){i(),u.each(arguments,function(){var e=this.el;u.each(this.diff,function(t){e.css(t,"")})}),s.complete.call(n[0])})})},u.fn.extend({addClass:(r=u.fn.addClass,function(t,e,n,i){return e?u.effects.animateClass.call(this,{add:t},e,n,i):r.apply(this,arguments)}),removeClass:(o=u.fn.removeClass,function(t,e,n,i){return 1<arguments.length?u.effects.animateClass.call(this,{remove:t},e,n,i):o.apply(this,arguments)}),toggleClass:(s=u.fn.toggleClass,function(t,e,n,i,o){return"boolean"==typeof e||void 0===e?n?u.effects.animateClass.call(this,e?{add:t}:{remove:t},n,i,o):s.apply(this,arguments):u.effects.animateClass.call(this,{toggle:t},e,n,i)}),switchClass:function(t,e,n,i,o){return u.effects.animateClass.call(this,{add:e,remove:t},n,i,o)}}),u.expr&&u.expr.pseudos&&u.expr.pseudos.animated&&(u.expr.pseudos.animated=(e=u.expr.pseudos.animated,function(t){return!!u(t).data(p)||e(t)})),!1!==u.uiBackCompat&&u.extend(u.effects,{save:function(t,e){for(var n=0,i=e.length;n<i;n++)null!==e[n]&&t.data(d+e[n],t[0].style[e[n]])},restore:function(t,e){for(var n,i=0,o=e.length;i<o;i++)null!==e[i]&&(n=t.data(d+e[i]),t.css(e[i],n))},setMode:function(t,e){return e="toggle"===e?t.is(":hidden")?"show":"hide":e},createWrapper:function(n){if(n.parent().is(".ui-effects-wrapper"))return n.parent();var i={width:n.outerWidth(!0),height:n.outerHeight(!0),float:n.css("float")},t=u("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:n.width(),height:n.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return n.wrap(t),n[0]!==o&&!u.contains(n[0],o)||u(o).trigger("focus"),t=n.parent(),"static"===n.css("position")?(t.css({position:"relative"}),n.css({position:"relative"})):(u.extend(i,{position:n.css("position"),zIndex:n.css("z-index")}),u.each(["top","left","bottom","right"],function(t,e){i[e]=n.css(e),isNaN(parseInt(i[e],10))&&(i[e]="auto")}),n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(e),t.css(i).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!u.contains(t[0],e)||u(e).trigger("focus")),t}}),u.extend(u.effects,{version:"1.13.3",define:function(t,e,n){return n||(n=e,e="effect"),u.effects.effect[t]=n,u.effects.effect[t].mode=e,n},scaledDimensions:function(t,e,n){var i;return 0===e?{height:0,width:0,outerHeight:0,outerWidth:0}:(i="horizontal"!==n?(e||100)/100:1,n="vertical"!==n?(e||100)/100:1,{height:t.height()*n,width:t.width()*i,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*i})},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,n){var i=t.queue();1<e&&i.splice.apply(i,[1,0].concat(i.splice(e,n))),t.dequeue()},saveStyle:function(t){t.data(h,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(h)||"",t.removeData(h)},mode:function(t,e){t=t.is(":hidden");return"toggle"===e&&(e=t?"show":"hide"),e=(t?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var n,i;switch(t[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=t[0]/e.height}switch(t[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=t[1]/e.width}return{x:i,y:n}},createPlaceholder:function(t){var e,n=t.css("position"),i=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",e=u("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(d+"placeholder",e)),t.css({position:n,left:i.left,top:i.top}),e},removePlaceholder:function(t){var e=d+"placeholder",n=t.data(e);n&&(n.remove(),t.removeData(e))},cleanUp:function(t){u.effects.restoreStyle(t),u.effects.removePlaceholder(t)},setTransition:function(i,t,o,s){return s=s||{},u.each(t,function(t,e){var n=i.cssUnit(e);0<n[0]&&(s[e]=n[0]*o+n[1])}),s}}),u.fn.extend({effect:function(){function t(t){var e=u(this),n=u.effects.mode(e,a)||s;e.data(p,!0),c.push(n),s&&("show"===n||n===s&&"hide"===n)&&e.show(),s&&"none"===n||u.effects.saveStyle(e),"function"==typeof t&&t()}var i=g.apply(this,arguments),o=u.effects.effect[i.effect],s=o.mode,e=i.queue,n=e||"fx",r=i.complete,a=i.mode,c=[];return u.fx.off||!o?a?this[a](i.duration,r):this.each(function(){r&&r.call(this)}):!1===e?this.each(t).each(f):this.queue(n,t).queue(n,f);function f(t){var e=u(this);function n(){"function"==typeof r&&r.call(e[0]),"function"==typeof t&&t()}i.mode=c.shift(),!1===u.uiBackCompat||s?"none"===i.mode?(e[a](),n()):o.call(e[0],i,function(){e.removeData(p),u.effects.cleanUp(e),"hide"===i.mode&&e.hide(),n()}):(e.is(":hidden")?"hide"===a:"show"===a)?(e[a](),n()):o.call(e[0],i,n)}},show:(f=u.fn.show,function(t){return v(t)?f.apply(this,arguments):((t=g.apply(this,arguments)).mode="show",this.effect.call(this,t))}),hide:(i=u.fn.hide,function(t){return v(t)?i.apply(this,arguments):((t=g.apply(this,arguments)).mode="hide",this.effect.call(this,t))}),toggle:(n=u.fn.toggle,function(t){return v(t)||"boolean"==typeof t?n.apply(this,arguments):((t=g.apply(this,arguments)).mode="toggle",this.effect.call(this,t))}),cssUnit:function(t){var n=this.css(t),i=[];return u.each(["em","px","%","pt"],function(t,e){0<n.indexOf(e)&&(i=[parseFloat(n),e])}),i},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):y(this.css("clip"),this)},transfer:function(t,e){var n=u(this),i=u(t.to),o="fixed"===i.css("position"),s=u("body"),r=o?s.scrollTop():0,s=o?s.scrollLeft():0,a=i.offset(),a={top:a.top-r,left:a.left-s,height:i.innerHeight(),width:i.innerWidth()},i=n.offset(),c=u("<div class='ui-effects-transfer'></div>");c.appendTo("body").addClass(t.className).css({top:i.top-r,left:i.left-s,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){c.remove(),"function"==typeof e&&e()})}}),u.fx.step.clip=function(t){t.clipInit||(t.start=u(t.elem).cssClip(),"string"==typeof t.end&&(t.end=y(t.end,t.elem)),t.clipInit=!0),u(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},l={},u.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){l[t]=function(t){return Math.pow(t,e+2)}}),u.extend(l,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),u.each(l,function(t,e){u.easing["easeIn"+t]=e,u.easing["easeOut"+t]=function(t){return 1-e(1-t)},u.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}}),u.effects}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/menu.js b/wp-includes/js/jquery/ui/menu.js
index b4f408b..869e429 100644
--- a/wp-includes/js/jquery/ui/menu.js
+++ b/wp-includes/js/jquery/ui/menu.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Menu 1.13.2
- * http://jqueryui.com
+ * jQuery UI Menu 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Menu
//>>group: Widgets
//>>description: Creates nestable menus.
-//>>docs: http://api.jqueryui.com/menu/
-//>>demos: http://jqueryui.com/menu/
+//>>docs: https://api.jqueryui.com/menu/
+//>>demos: https://jqueryui.com/menu/
//>>css.structure: ../../themes/base/core.css
//>>css.structure: ../../themes/base/menu.css
//>>css.theme: ../../themes/base/theme.css
@@ -24,7 +24,12 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./core"
+ "../keycode",
+ "../position",
+ "../safe-active-element",
+ "../unique-id",
+ "../version",
+ "../widget"
], factory );
} else {
@@ -35,7 +40,7 @@
"use strict";
return $.widget( "ui.menu", {
- version: "1.13.2",
+ version: "1.13.3",
defaultElement: "<ul>",
delay: 300,
options: {
diff --git a/wp-includes/js/jquery/ui/menu.min.js b/wp-includes/js/jquery/ui/menu.min.js
index c2d5f04..7f69668 100644
--- a/wp-includes/js/jquery/ui/menu.min.js
+++ b/wp-includes/js/jquery/ui/menu.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Menu 1.13.2
- * http://jqueryui.com
+ * jQuery UI Menu 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(a){"use strict";return a.widget("ui.menu",{version:"1.13.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(e){var t=a(e.target),i=a(a.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),t.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this._menuItems().first();t||this.focus(e,i)},blur:function(e){this._delay(function(){a.contains(this.element[0],a.ui.safeActiveElement(this.document[0]))||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(e){var t,i;this.previousFilter||e.clientX===this.lastMousePosition.x&&e.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:e.clientX,y:e.clientY},t=a(e.target).closest(".ui-menu-item"),i=a(e.currentTarget),t[0]!==i[0])||i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,i))},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each(function(){var e=a(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var t,i,s,n=!0;switch(e.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(e);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case a.ui.keyCode.HOME:this._move("first","first",e);break;case a.ui.keyCode.END:this._move("last","last",e);break;case a.ui.keyCode.UP:this.previous(e);break;case a.ui.keyCode.DOWN:this.next(e);break;case a.ui.keyCode.LEFT:this.collapse(e);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(e);break;case a.ui.keyCode.ESCAPE:this.collapse(e);break;default:t=this.previousFilter||"",s=n=!1,i=96<=e.keyCode&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),i===t?s=!0:i=t+i,t=this._filterMenuItems(i),(t=s&&-1!==t.index(this.active.next())?this.active.nextAll(".ui-menu-item"):t).length||(i=String.fromCharCode(e.keyCode),t=this._filterMenuItems(i)),t.length?(this.focus(e,t),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&e.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var e,t,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=a(this),t=e.prev(),i=a("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),t.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",t.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(e=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=a(this);s._isDivider(e)&&s._addClass(e,"ui-menu-divider","ui-widget-content")}),t=(i=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(t,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){var i;"icons"===e&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,i,s;this._hasScroll()&&(t=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,t=e.offset().top-this.activeMenu.offset().top-t-i,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),e=e.outerHeight(),t<0?this.activeMenu.scrollTop(i+t):s<t+e&&this.activeMenu.scrollTop(i+t-s+e))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var t=a.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(t)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var e=i?this.element:a(t&&t.target).closest(this.element.find(".ui-menu"));e.length||(e=this.element),this._close(e),this.blur(t),this._removeClass(e.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=e},i?0:this.delay)},_close:function(e){(e=e||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!a(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,i){var s;(s=this.active?"first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first():s)&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[t]()),this.focus(i,s)},nextPage:function(e){var t,i,s;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===a.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(t=a(this)).offset().top-i-s<0}),this.focus(e,t)):this.focus(e,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var t,i,s;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===a.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return 0<(t=a(this)).offset().top-i+s}),this.focus(e,t)):this.focus(e,this._menuItems(this.activeMenu).first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||a(e.target).closest(".ui-menu-item");var t={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,t)},_filterMenuItems:function(e){var e=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),t=new RegExp("^"+e,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return t.test(String.prototype.trim.call(a(this).children(".ui-menu-item-wrapper").text()))})}})}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../keycode","../position","../safe-active-element","../unique-id","../version","../widget"],e):e(jQuery)}(function(a){"use strict";return a.widget("ui.menu",{version:"1.13.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(e){var t=a(e.target),i=a(a.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),t.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this._menuItems().first();t||this.focus(e,i)},blur:function(e){this._delay(function(){a.contains(this.element[0],a.ui.safeActiveElement(this.document[0]))||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(e){var t,i;this.previousFilter||e.clientX===this.lastMousePosition.x&&e.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:e.clientX,y:e.clientY},t=a(e.target).closest(".ui-menu-item"),i=a(e.currentTarget),t[0]!==i[0])||i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,i))},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each(function(){var e=a(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var t,i,s,n=!0;switch(e.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(e);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case a.ui.keyCode.HOME:this._move("first","first",e);break;case a.ui.keyCode.END:this._move("last","last",e);break;case a.ui.keyCode.UP:this.previous(e);break;case a.ui.keyCode.DOWN:this.next(e);break;case a.ui.keyCode.LEFT:this.collapse(e);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(e);break;case a.ui.keyCode.ESCAPE:this.collapse(e);break;default:t=this.previousFilter||"",s=n=!1,i=96<=e.keyCode&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),i===t?s=!0:i=t+i,t=this._filterMenuItems(i),(t=s&&-1!==t.index(this.active.next())?this.active.nextAll(".ui-menu-item"):t).length||(i=String.fromCharCode(e.keyCode),t=this._filterMenuItems(i)),t.length?(this.focus(e,t),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&e.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var e,t,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=a(this),t=e.prev(),i=a("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),t.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",t.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(e=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=a(this);s._isDivider(e)&&s._addClass(e,"ui-menu-divider","ui-widget-content")}),t=(i=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(t,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){var i;"icons"===e&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,i,s;this._hasScroll()&&(t=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,t=e.offset().top-this.activeMenu.offset().top-t-i,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),e=e.outerHeight(),t<0?this.activeMenu.scrollTop(i+t):s<t+e&&this.activeMenu.scrollTop(i+t-s+e))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var t=a.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(t)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var e=i?this.element:a(t&&t.target).closest(this.element.find(".ui-menu"));e.length||(e=this.element),this._close(e),this.blur(t),this._removeClass(e.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=e},i?0:this.delay)},_close:function(e){(e=e||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!a(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,i){var s;(s=this.active?"first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first():s)&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[t]()),this.focus(i,s)},nextPage:function(e){var t,i,s;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===a.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(t=a(this)).offset().top-i-s<0}),this.focus(e,t)):this.focus(e,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var t,i,s;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===a.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return 0<(t=a(this)).offset().top-i+s}),this.focus(e,t)):this.focus(e,this._menuItems(this.activeMenu).first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||a(e.target).closest(".ui-menu-item");var t={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,t)},_filterMenuItems:function(e){var e=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),t=new RegExp("^"+e,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return t.test(String.prototype.trim.call(a(this).children(".ui-menu-item-wrapper").text()))})}})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/mouse.js b/wp-includes/js/jquery/ui/mouse.js
index ab770da..cd3ae96 100644
--- a/wp-includes/js/jquery/ui/mouse.js
+++ b/wp-includes/js/jquery/ui/mouse.js
@@ -1,16 +1,16 @@
/*!
- * jQuery UI Mouse 1.13.2
- * http://jqueryui.com
+ * jQuery UI Mouse 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Mouse
//>>group: Widgets
//>>description: Abstracts mouse-based interactions to assist in creating certain widgets.
-//>>docs: http://api.jqueryui.com/mouse/
+//>>docs: https://api.jqueryui.com/mouse/
( function( factory ) {
"use strict";
@@ -20,7 +20,9 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./core"
+ "../ie",
+ "../version",
+ "../widget"
], factory );
} else {
@@ -36,7 +38,7 @@ $( document ).on( "mouseup", function() {
} );
return $.widget( "ui.mouse", {
- version: "1.13.2",
+ version: "1.13.3",
options: {
cancel: "input, textarea, button, select, option",
distance: 1,
diff --git a/wp-includes/js/jquery/ui/mouse.min.js b/wp-includes/js/jquery/ui/mouse.min.js
index 83c1568..fd0ba61 100644
--- a/wp-includes/js/jquery/ui/mouse.min.js
+++ b/wp-includes/js/jquery/ui/mouse.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Mouse 1.13.2
- * http://jqueryui.com
+ * jQuery UI Mouse 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(o){"use strict";var n=!1;return o(document).on("mouseup",function(){n=!1}),o.widget("ui.mouse",{version:"1.13.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(e){if(!0===o.data(e.target,t.widgetName+".preventClickEvent"))return o.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){var t,s,i;if(!n)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),s=1===(this._mouseDownEvent=e).which,i=!("string"!=typeof(t=this).options.cancel||!e.target.nodeName)&&o(e.target).closest(this.options.cancel).length,s&&!i&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?e.preventDefault():(!0===o.data(e.target,this.widgetName+".preventClickEvent")&&o.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),n=!0)),!0},_mouseMove:function(e){if(this._mouseMoved){if(o.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&o.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,n=!1,e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../ie","../version","../widget"],e):e(jQuery)}(function(o){"use strict";var n=!1;return o(document).on("mouseup",function(){n=!1}),o.widget("ui.mouse",{version:"1.13.3",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(e){if(!0===o.data(e.target,t.widgetName+".preventClickEvent"))return o.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){var t,i,s;if(!n)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),i=1===(this._mouseDownEvent=e).which,s=!("string"!=typeof(t=this).options.cancel||!e.target.nodeName)&&o(e.target).closest(this.options.cancel).length,i&&!s&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?e.preventDefault():(!0===o.data(e.target,this.widgetName+".preventClickEvent")&&o.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),n=!0)),!0},_mouseMove:function(e){if(this._mouseMoved){if(o.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&o.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,n=!1,e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/progressbar.js b/wp-includes/js/jquery/ui/progressbar.js
index 3edd033..8dda17d 100644
--- a/wp-includes/js/jquery/ui/progressbar.js
+++ b/wp-includes/js/jquery/ui/progressbar.js
@@ -1,10 +1,10 @@
/*!
- * jQuery UI Progressbar 1.13.2
- * http://jqueryui.com
+ * jQuery UI Progressbar 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Progressbar
@@ -12,8 +12,8 @@
/* eslint-disable max-len */
//>>description: Displays a status indicator for loading state, standard percentage, and other progress indicators.
/* eslint-enable max-len */
-//>>docs: http://api.jqueryui.com/progressbar/
-//>>demos: http://jqueryui.com/progressbar/
+//>>docs: https://api.jqueryui.com/progressbar/
+//>>demos: https://jqueryui.com/progressbar/
//>>css.structure: ../../themes/base/core.css
//>>css.structure: ../../themes/base/progressbar.css
//>>css.theme: ../../themes/base/theme.css
@@ -26,7 +26,8 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./core"
+ "../version",
+ "../widget"
], factory );
} else {
@@ -37,7 +38,7 @@
"use strict";
return $.widget( "ui.progressbar", {
- version: "1.13.2",
+ version: "1.13.3",
options: {
classes: {
"ui-progressbar": "ui-corner-all",
diff --git a/wp-includes/js/jquery/ui/progressbar.min.js b/wp-includes/js/jquery/ui/progressbar.min.js
index 39503e6..60d529c 100644
--- a/wp-includes/js/jquery/ui/progressbar.min.js
+++ b/wp-includes/js/jquery/ui/progressbar.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Progressbar 1.13.2
- * http://jqueryui.com
+ * jQuery UI Progressbar 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(t){"use strict";return t.widget("ui.progressbar",{version:"1.13.2",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(e){if(void 0===e)return this.options.value;this.options.value=this._constrainedValue(e),this._refreshValue()},_constrainedValue:function(e){return void 0===e&&(e=this.options.value),this.indeterminate=!1===e,"number"!=typeof e&&(e=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var i=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(i),this._refreshValue()},_setOption:function(e,i){"max"===e&&(i=Math.max(this.min,i)),this._super(e,i)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}})}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../widget"],e):e(jQuery)}(function(t){"use strict";return t.widget("ui.progressbar",{version:"1.13.3",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(e){if(void 0===e)return this.options.value;this.options.value=this._constrainedValue(e),this._refreshValue()},_constrainedValue:function(e){return void 0===e&&(e=this.options.value),this.indeterminate=!1===e,"number"!=typeof e&&(e=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var i=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(i),this._refreshValue()},_setOption:function(e,i){"max"===e&&(i=Math.max(this.min,i)),this._super(e,i)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/resizable.js b/wp-includes/js/jquery/ui/resizable.js
index 2a5130a..3170bd1 100644
--- a/wp-includes/js/jquery/ui/resizable.js
+++ b/wp-includes/js/jquery/ui/resizable.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Resizable 1.13.2
- * http://jqueryui.com
+ * jQuery UI Resizable 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Resizable
//>>group: Interactions
//>>description: Enables resize functionality for any element.
-//>>docs: http://api.jqueryui.com/resizable/
-//>>demos: http://jqueryui.com/resizable/
+//>>docs: https://api.jqueryui.com/resizable/
+//>>demos: https://jqueryui.com/resizable/
//>>css.structure: ../../themes/base/core.css
//>>css.structure: ../../themes/base/resizable.css
//>>css.theme: ../../themes/base/theme.css
@@ -25,7 +25,10 @@
define( [
"jquery",
"./mouse",
- "./core"
+ "../disable-selection",
+ "../plugin",
+ "../version",
+ "../widget"
], factory );
} else {
@@ -36,7 +39,7 @@
"use strict";
$.widget( "ui.resizable", $.ui.mouse, {
- version: "1.13.2",
+ version: "1.13.3",
widgetEventPrefix: "resize",
options: {
alsoResize: false,
@@ -530,15 +533,18 @@ $.widget( "ui.resizable", $.ui.mouse, {
if ( this.position.left !== this.prevPosition.left ) {
props.left = this.position.left + "px";
}
+
+ this.helper.css( props );
+
if ( this.size.width !== this.prevSize.width ) {
props.width = this.size.width + "px";
+ this.helper.width( props.width );
}
if ( this.size.height !== this.prevSize.height ) {
props.height = this.size.height + "px";
+ this.helper.height( props.height );
}
- this.helper.css( props );
-
return props;
},
@@ -1045,7 +1051,7 @@ $.ui.plugin.add( "resizable", "alsoResize", {
$( o.alsoResize ).each( function() {
var el = $( this );
el.data( "ui-resizable-alsoresize", {
- width: parseFloat( el.width() ), height: parseFloat( el.height() ),
+ width: parseFloat( el.css( "width" ) ), height: parseFloat( el.css( "height" ) ),
left: parseFloat( el.css( "left" ) ), top: parseFloat( el.css( "top" ) )
} );
} );
diff --git a/wp-includes/js/jquery/ui/resizable.min.js b/wp-includes/js/jquery/ui/resizable.min.js
index 37f8cc5..6db2a23 100644
--- a/wp-includes/js/jquery/ui/resizable.min.js
+++ b/wp-includes/js/jquery/ui/resizable.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Resizable 1.13.2
- * http://jqueryui.com
+ * jQuery UI Resizable 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","./core"],t):t(jQuery)}(function(z){"use strict";return z.widget("ui.resizable",z.ui.mouse,{version:"1.13.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(t,i){if("hidden"===z(t).css("overflow"))return!1;var i=i&&"left"===i?"scrollLeft":"scrollTop",e=!1;if(0<t[i])return!0;try{t[i]=1,e=0<t[i],t[i]=0}catch(t){}return e},_create:function(){var t,i=this.options,e=this;this._addClass("ui-resizable"),z.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(z("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),i.autoHide&&z(this.element).on("mouseenter",function(){i.disabled||(e._removeClass("ui-resizable-autohide"),e._handles.show())}).on("mouseleave",function(){i.disabled||e.resizing||(e._addClass("ui-resizable-autohide"),e._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();function t(t){z(t).removeData("resizable").removeData("ui-resizable").off(".resizable")}var i;return this.elementIsWrapper&&(t(this.element),i=this.element,this.originalElement.css({position:i.css("position"),width:i.outerWidth(),height:i.outerHeight(),top:i.css("top"),left:i.css("left")}).insertAfter(i),i.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(t,i){switch(this._super(t,i),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!i}},_setupHandles:function(){var t,i,e,s,h,n=this.options,o=this;if(this.handles=n.handles||(z(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=z(),this._addedHandles=z(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},i=0;i<e.length;i++)s="ui-resizable-"+(t=String.prototype.trim.call(e[i])),h=z("<div>"),this._addClass(h,"ui-resizable-handle "+s),h.css({zIndex:n.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(h),this._addedHandles=this._addedHandles.add(h));this._renderAxis=function(t){var i,e,s;for(i in t=t||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=z(this.handles[i]),this._on(this.handles[i],{mousedown:o._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=z(this.handles[i],this.element),s=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),e=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(e,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){o.resizing||(this.className&&(h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=h&&h[1]?h[1]:"se")}),n.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var i,e,s=!1;for(i in this.handles)(e=z(this.handles[i])[0])!==t.target&&!z.contains(e,t.target)||(s=!0);return!this.options.disabled&&s},_mouseStart:function(t){var i,e,s=this.options,h=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),e=this._num(this.helper.css("top")),s.containment&&(i+=z(s.containment).scrollLeft()||0,e+=z(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:e},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:h.width(),height:h.height()},this.originalSize=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()},this.sizeDiff={width:h.outerWidth()-h.width(),height:h.outerHeight()-h.height()},this.originalPosition={left:i,top:e},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,h=z(".ui-resizable-"+this.axis).css("cursor"),z("body").css("cursor","auto"===h?this.axis+"-resize":h),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i=this.originalMousePosition,e=this.axis,s=t.pageX-i.left||0,i=t.pageY-i.top||0,e=this._change[e];return this._updatePrevProperties(),e&&(e=e.apply(this,[t,s,i]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(e=this._updateRatio(e,t)),e=this._respectSize(e,t),this._updateCache(e),this._propagate("resize",t),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),z.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var i,e,s,h=this.options,n=this;return this._helper&&(e=(i=(e=this._proportionallyResizeElements).length&&/textarea/i.test(e[0].nodeName))&&this._hasScroll(e[0],"left")?0:n.sizeDiff.height,i=i?0:n.sizeDiff.width,i={width:n.helper.width()-i,height:n.helper.height()-e},e=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,s=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null,h.animate||this.element.css(z.extend(i,{top:s,left:e})),n.helper.height(n.size.height),n.helper.width(n.size.width),this._helper)&&!h.animate&&this._proportionallyResize(),z("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var i,e,s,h=this.options,h={minWidth:this._isNumber(h.minWidth)?h.minWidth:0,maxWidth:this._isNumber(h.maxWidth)?h.maxWidth:1/0,minHeight:this._isNumber(h.minHeight)?h.minHeight:0,maxHeight:this._isNumber(h.maxHeight)?h.maxHeight:1/0};(this._aspectRatio||t)&&(t=h.minHeight*this.aspectRatio,e=h.minWidth/this.aspectRatio,i=h.maxHeight*this.aspectRatio,s=h.maxWidth/this.aspectRatio,h.minWidth<t&&(h.minWidth=t),h.minHeight<e&&(h.minHeight=e),i<h.maxWidth&&(h.maxWidth=i),s<h.maxHeight)&&(h.maxHeight=s),this._vBoundaries=h},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var i=this.position,e=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=i.left+(e.width-t.width),t.top=null),"nw"===s&&(t.top=i.top+(e.height-t.height),t.left=i.left+(e.width-t.width)),t},_respectSize:function(t){var i=this._vBoundaries,e=this.axis,s=this._isNumber(t.width)&&i.maxWidth&&i.maxWidth<t.width,h=this._isNumber(t.height)&&i.maxHeight&&i.maxHeight<t.height,n=this._isNumber(t.width)&&i.minWidth&&i.minWidth>t.width,o=this._isNumber(t.height)&&i.minHeight&&i.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,r=/sw|nw|w/.test(e),e=/nw|ne|n/.test(e);return n&&(t.width=i.minWidth),o&&(t.height=i.minHeight),s&&(t.width=i.maxWidth),h&&(t.height=i.maxHeight),n&&r&&(t.left=a-i.minWidth),s&&r&&(t.left=a-i.maxWidth),o&&e&&(t.top=l-i.minHeight),h&&e&&(t.top=l-i.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var i=0,e=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],h=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];i<4;i++)e[i]=parseFloat(s[i])||0,e[i]+=parseFloat(h[i])||0;return{height:e[0]+e[2],width:e[1]+e[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,i=0,e=this.helper||this.element;i<this._proportionallyResizeElements.length;i++)t=this._proportionallyResizeElements[i],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:e.height()-this.outerDimensions.height||0,width:e.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||z("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,i){return{width:this.originalSize.width+i}},w:function(t,i){var e=this.originalSize;return{left:this.originalPosition.left+i,width:e.width-i}},n:function(t,i,e){var s=this.originalSize;return{top:this.originalPosition.top+e,height:s.height-e}},s:function(t,i,e){return{height:this.originalSize.height+e}},se:function(t,i,e){return z.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,e]))},sw:function(t,i,e){return z.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,e]))},ne:function(t,i,e){return z.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,e]))},nw:function(t,i,e){return z.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,e]))}},_propagate:function(t,i){z.ui.plugin.call(this,t,[i,this.ui()]),"resize"!==t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),z.ui.plugin.add("resizable","animate",{stop:function(i){var e=z(this).resizable("instance"),t=e.options,s=e._proportionallyResizeElements,h=s.length&&/textarea/i.test(s[0].nodeName),n=h&&e._hasScroll(s[0],"left")?0:e.sizeDiff.height,h=h?0:e.sizeDiff.width,h={width:e.size.width-h,height:e.size.height-n},n=parseFloat(e.element.css("left"))+(e.position.left-e.originalPosition.left)||null,o=parseFloat(e.element.css("top"))+(e.position.top-e.originalPosition.top)||null;e.element.animate(z.extend(h,o&&n?{top:o,left:n}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseFloat(e.element.css("width")),height:parseFloat(e.element.css("height")),top:parseFloat(e.element.css("top")),left:parseFloat(e.element.css("left"))};s&&s.length&&z(s[0]).css({width:t.width,height:t.height}),e._updateCache(t),e._propagate("resize",i)}})}}),z.ui.plugin.add("resizable","containment",{start:function(){var e,s,t,i,h=z(this).resizable("instance"),n=h.options,o=h.element,n=n.containment,o=n instanceof z?n.get(0):/parent/.test(n)?o.parent().get(0):n;o&&(h.containerElement=z(o),/document/.test(n)||n===document?(h.containerOffset={left:0,top:0},h.containerPosition={left:0,top:0},h.parentData={element:z(document),left:0,top:0,width:z(document).width(),height:z(document).height()||document.body.parentNode.scrollHeight}):(e=z(o),s=[],z(["Top","Right","Left","Bottom"]).each(function(t,i){s[t]=h._num(e.css("padding"+i))}),h.containerOffset=e.offset(),h.containerPosition=e.position(),h.containerSize={height:e.innerHeight()-s[3],width:e.innerWidth()-s[1]},n=h.containerOffset,i=h.containerSize.height,t=h.containerSize.width,t=h._hasScroll(o,"left")?o.scrollWidth:t,i=h._hasScroll(o)?o.scrollHeight:i,h.parentData={element:o,left:n.left,top:n.top,width:t,height:i}))},resize:function(t){var i=z(this).resizable("instance"),e=i.options,s=i.containerOffset,h=i.position,t=i._aspectRatio||t.shiftKey,n={top:0,left:0},o=i.containerElement,a=!0;o[0]!==document&&/static/.test(o.css("position"))&&(n=s),h.left<(i._helper?s.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-s.left:i.position.left-n.left),t&&(i.size.height=i.size.width/i.aspectRatio,a=!1),i.position.left=e.helper?s.left:0),h.top<(i._helper?s.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-s.top:i.position.top),t&&(i.size.width=i.size.height*i.aspectRatio,a=!1),i.position.top=i._helper?s.top:0),o=i.containerElement.get(0)===i.element.parent().get(0),e=/relative|absolute/.test(i.containerElement.css("position")),o&&e?(i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top):(i.offset.left=i.element.offset().left,i.offset.top=i.element.offset().top),h=Math.abs(i.sizeDiff.width+(i._helper?i.offset.left-n.left:i.offset.left-s.left)),o=Math.abs(i.sizeDiff.height+(i._helper?i.offset.top-n.top:i.offset.top-s.top)),h+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-h,t)&&(i.size.height=i.size.width/i.aspectRatio,a=!1),o+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-o,t)&&(i.size.width=i.size.height*i.aspectRatio,a=!1),a||(i.position.left=i.prevPosition.left,i.position.top=i.prevPosition.top,i.size.width=i.prevSize.width,i.size.height=i.prevSize.height)},stop:function(){var t=z(this).resizable("instance"),i=t.options,e=t.containerOffset,s=t.containerPosition,h=t.containerElement,n=z(t.helper),o=n.offset(),a=n.outerWidth()-t.sizeDiff.width,n=n.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(h.css("position"))&&z(this).css({left:o.left-s.left-e.left,width:a,height:n}),t._helper&&!i.animate&&/static/.test(h.css("position"))&&z(this).css({left:o.left-s.left-e.left,width:a,height:n})}}),z.ui.plugin.add("resizable","alsoResize",{start:function(){var t=z(this).resizable("instance").options;z(t.alsoResize).each(function(){var t=z(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,e){var i=z(this).resizable("instance"),s=i.options,h=i.originalSize,n=i.originalPosition,o={height:i.size.height-h.height||0,width:i.size.width-h.width||0,top:i.position.top-n.top||0,left:i.position.left-n.left||0};z(s.alsoResize).each(function(){var t=z(this),s=z(this).data("ui-resizable-alsoresize"),h={},i=t.parents(e.originalElement[0]).length?["width","height"]:["width","height","top","left"];z.each(i,function(t,i){var e=(s[i]||0)+(o[i]||0);e&&0<=e&&(h[i]=e||null)}),t.css(h)})},stop:function(){z(this).removeData("ui-resizable-alsoresize")}}),z.ui.plugin.add("resizable","ghost",{start:function(){var t=z(this).resizable("instance"),i=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==z.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=z(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=z(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),z.ui.plugin.add("resizable","grid",{resize:function(){var t,i=z(this).resizable("instance"),e=i.options,s=i.size,h=i.originalSize,n=i.originalPosition,o=i.axis,a="number"==typeof e.grid?[e.grid,e.grid]:e.grid,l=a[0]||1,r=a[1]||1,p=Math.round((s.width-h.width)/l)*l,s=Math.round((s.height-h.height)/r)*r,d=h.width+p,g=h.height+s,u=e.maxWidth&&e.maxWidth<d,c=e.maxHeight&&e.maxHeight<g,f=e.minWidth&&e.minWidth>d,m=e.minHeight&&e.minHeight>g;e.grid=a,f&&(d+=l),m&&(g+=r),u&&(d-=l),c&&(g-=r),/^(se|s|e)$/.test(o)?(i.size.width=d,i.size.height=g):/^(ne)$/.test(o)?(i.size.width=d,i.size.height=g,i.position.top=n.top-s):/^(sw)$/.test(o)?(i.size.width=d,i.size.height=g,i.position.left=n.left-p):((g-r<=0||d-l<=0)&&(t=i._getPaddingPlusBorderDimensions(this)),0<g-r?(i.size.height=g,i.position.top=n.top-s):(g=r-t.height,i.size.height=g,i.position.top=n.top+h.height-g),0<d-l?(i.size.width=d,i.position.left=n.left-p):(d=l-t.width,i.size.width=d,i.position.left=n.left+h.width-d))}}),z.ui.resizable}); \ No newline at end of file
+!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../disable-selection","../plugin","../version","../widget"],t):t(jQuery)}(function(z){"use strict";return z.widget("ui.resizable",z.ui.mouse,{version:"1.13.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(t,i){if("hidden"===z(t).css("overflow"))return!1;var i=i&&"left"===i?"scrollLeft":"scrollTop",e=!1;if(0<t[i])return!0;try{t[i]=1,e=0<t[i],t[i]=0}catch(t){}return e},_create:function(){var t,i=this.options,e=this;this._addClass("ui-resizable"),z.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(z("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),i.autoHide&&z(this.element).on("mouseenter",function(){i.disabled||(e._removeClass("ui-resizable-autohide"),e._handles.show())}).on("mouseleave",function(){i.disabled||e.resizing||(e._addClass("ui-resizable-autohide"),e._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();function t(t){z(t).removeData("resizable").removeData("ui-resizable").off(".resizable")}var i;return this.elementIsWrapper&&(t(this.element),i=this.element,this.originalElement.css({position:i.css("position"),width:i.outerWidth(),height:i.outerHeight(),top:i.css("top"),left:i.css("left")}).insertAfter(i),i.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(t,i){switch(this._super(t,i),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!i}},_setupHandles:function(){var t,i,e,s,h,n=this.options,o=this;if(this.handles=n.handles||(z(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=z(),this._addedHandles=z(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},i=0;i<e.length;i++)s="ui-resizable-"+(t=String.prototype.trim.call(e[i])),h=z("<div>"),this._addClass(h,"ui-resizable-handle "+s),h.css({zIndex:n.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(h),this._addedHandles=this._addedHandles.add(h));this._renderAxis=function(t){var i,e,s;for(i in t=t||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=z(this.handles[i]),this._on(this.handles[i],{mousedown:o._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=z(this.handles[i],this.element),s=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),e=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(e,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){o.resizing||(this.className&&(h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=h&&h[1]?h[1]:"se")}),n.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var i,e,s=!1;for(i in this.handles)(e=z(this.handles[i])[0])!==t.target&&!z.contains(e,t.target)||(s=!0);return!this.options.disabled&&s},_mouseStart:function(t){var i,e,s=this.options,h=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),e=this._num(this.helper.css("top")),s.containment&&(i+=z(s.containment).scrollLeft()||0,e+=z(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:e},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:h.width(),height:h.height()},this.originalSize=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()},this.sizeDiff={width:h.outerWidth()-h.width(),height:h.outerHeight()-h.height()},this.originalPosition={left:i,top:e},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,h=z(".ui-resizable-"+this.axis).css("cursor"),z("body").css("cursor","auto"===h?this.axis+"-resize":h),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i=this.originalMousePosition,e=this.axis,s=t.pageX-i.left||0,i=t.pageY-i.top||0,e=this._change[e];return this._updatePrevProperties(),e&&(e=e.apply(this,[t,s,i]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(e=this._updateRatio(e,t)),e=this._respectSize(e,t),this._updateCache(e),this._propagate("resize",t),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),z.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var i,e,s,h=this.options,n=this;return this._helper&&(e=(i=(e=this._proportionallyResizeElements).length&&/textarea/i.test(e[0].nodeName))&&this._hasScroll(e[0],"left")?0:n.sizeDiff.height,i=i?0:n.sizeDiff.width,i={width:n.helper.width()-i,height:n.helper.height()-e},e=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,s=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null,h.animate||this.element.css(z.extend(i,{top:s,left:e})),n.helper.height(n.size.height),n.helper.width(n.size.width),this._helper)&&!h.animate&&this._proportionallyResize(),z("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.helper.css(t),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px",this.helper.width(t.width)),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px",this.helper.height(t.height)),t},_updateVirtualBoundaries:function(t){var i,e,s,h=this.options,h={minWidth:this._isNumber(h.minWidth)?h.minWidth:0,maxWidth:this._isNumber(h.maxWidth)?h.maxWidth:1/0,minHeight:this._isNumber(h.minHeight)?h.minHeight:0,maxHeight:this._isNumber(h.maxHeight)?h.maxHeight:1/0};(this._aspectRatio||t)&&(t=h.minHeight*this.aspectRatio,e=h.minWidth/this.aspectRatio,i=h.maxHeight*this.aspectRatio,s=h.maxWidth/this.aspectRatio,h.minWidth<t&&(h.minWidth=t),h.minHeight<e&&(h.minHeight=e),i<h.maxWidth&&(h.maxWidth=i),s<h.maxHeight)&&(h.maxHeight=s),this._vBoundaries=h},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var i=this.position,e=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=i.left+(e.width-t.width),t.top=null),"nw"===s&&(t.top=i.top+(e.height-t.height),t.left=i.left+(e.width-t.width)),t},_respectSize:function(t){var i=this._vBoundaries,e=this.axis,s=this._isNumber(t.width)&&i.maxWidth&&i.maxWidth<t.width,h=this._isNumber(t.height)&&i.maxHeight&&i.maxHeight<t.height,n=this._isNumber(t.width)&&i.minWidth&&i.minWidth>t.width,o=this._isNumber(t.height)&&i.minHeight&&i.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,r=/sw|nw|w/.test(e),e=/nw|ne|n/.test(e);return n&&(t.width=i.minWidth),o&&(t.height=i.minHeight),s&&(t.width=i.maxWidth),h&&(t.height=i.maxHeight),n&&r&&(t.left=a-i.minWidth),s&&r&&(t.left=a-i.maxWidth),o&&e&&(t.top=l-i.minHeight),h&&e&&(t.top=l-i.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var i=0,e=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],h=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];i<4;i++)e[i]=parseFloat(s[i])||0,e[i]+=parseFloat(h[i])||0;return{height:e[0]+e[2],width:e[1]+e[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,i=0,e=this.helper||this.element;i<this._proportionallyResizeElements.length;i++)t=this._proportionallyResizeElements[i],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:e.height()-this.outerDimensions.height||0,width:e.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||z("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,i){return{width:this.originalSize.width+i}},w:function(t,i){var e=this.originalSize;return{left:this.originalPosition.left+i,width:e.width-i}},n:function(t,i,e){var s=this.originalSize;return{top:this.originalPosition.top+e,height:s.height-e}},s:function(t,i,e){return{height:this.originalSize.height+e}},se:function(t,i,e){return z.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,e]))},sw:function(t,i,e){return z.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,e]))},ne:function(t,i,e){return z.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,e]))},nw:function(t,i,e){return z.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,e]))}},_propagate:function(t,i){z.ui.plugin.call(this,t,[i,this.ui()]),"resize"!==t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),z.ui.plugin.add("resizable","animate",{stop:function(i){var e=z(this).resizable("instance"),t=e.options,s=e._proportionallyResizeElements,h=s.length&&/textarea/i.test(s[0].nodeName),n=h&&e._hasScroll(s[0],"left")?0:e.sizeDiff.height,h=h?0:e.sizeDiff.width,h={width:e.size.width-h,height:e.size.height-n},n=parseFloat(e.element.css("left"))+(e.position.left-e.originalPosition.left)||null,o=parseFloat(e.element.css("top"))+(e.position.top-e.originalPosition.top)||null;e.element.animate(z.extend(h,o&&n?{top:o,left:n}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseFloat(e.element.css("width")),height:parseFloat(e.element.css("height")),top:parseFloat(e.element.css("top")),left:parseFloat(e.element.css("left"))};s&&s.length&&z(s[0]).css({width:t.width,height:t.height}),e._updateCache(t),e._propagate("resize",i)}})}}),z.ui.plugin.add("resizable","containment",{start:function(){var e,s,t,i,h=z(this).resizable("instance"),n=h.options,o=h.element,n=n.containment,o=n instanceof z?n.get(0):/parent/.test(n)?o.parent().get(0):n;o&&(h.containerElement=z(o),/document/.test(n)||n===document?(h.containerOffset={left:0,top:0},h.containerPosition={left:0,top:0},h.parentData={element:z(document),left:0,top:0,width:z(document).width(),height:z(document).height()||document.body.parentNode.scrollHeight}):(e=z(o),s=[],z(["Top","Right","Left","Bottom"]).each(function(t,i){s[t]=h._num(e.css("padding"+i))}),h.containerOffset=e.offset(),h.containerPosition=e.position(),h.containerSize={height:e.innerHeight()-s[3],width:e.innerWidth()-s[1]},n=h.containerOffset,i=h.containerSize.height,t=h.containerSize.width,t=h._hasScroll(o,"left")?o.scrollWidth:t,i=h._hasScroll(o)?o.scrollHeight:i,h.parentData={element:o,left:n.left,top:n.top,width:t,height:i}))},resize:function(t){var i=z(this).resizable("instance"),e=i.options,s=i.containerOffset,h=i.position,t=i._aspectRatio||t.shiftKey,n={top:0,left:0},o=i.containerElement,a=!0;o[0]!==document&&/static/.test(o.css("position"))&&(n=s),h.left<(i._helper?s.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-s.left:i.position.left-n.left),t&&(i.size.height=i.size.width/i.aspectRatio,a=!1),i.position.left=e.helper?s.left:0),h.top<(i._helper?s.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-s.top:i.position.top),t&&(i.size.width=i.size.height*i.aspectRatio,a=!1),i.position.top=i._helper?s.top:0),o=i.containerElement.get(0)===i.element.parent().get(0),e=/relative|absolute/.test(i.containerElement.css("position")),o&&e?(i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top):(i.offset.left=i.element.offset().left,i.offset.top=i.element.offset().top),h=Math.abs(i.sizeDiff.width+(i._helper?i.offset.left-n.left:i.offset.left-s.left)),o=Math.abs(i.sizeDiff.height+(i._helper?i.offset.top-n.top:i.offset.top-s.top)),h+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-h,t)&&(i.size.height=i.size.width/i.aspectRatio,a=!1),o+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-o,t)&&(i.size.width=i.size.height*i.aspectRatio,a=!1),a||(i.position.left=i.prevPosition.left,i.position.top=i.prevPosition.top,i.size.width=i.prevSize.width,i.size.height=i.prevSize.height)},stop:function(){var t=z(this).resizable("instance"),i=t.options,e=t.containerOffset,s=t.containerPosition,h=t.containerElement,n=z(t.helper),o=n.offset(),a=n.outerWidth()-t.sizeDiff.width,n=n.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(h.css("position"))&&z(this).css({left:o.left-s.left-e.left,width:a,height:n}),t._helper&&!i.animate&&/static/.test(h.css("position"))&&z(this).css({left:o.left-s.left-e.left,width:a,height:n})}}),z.ui.plugin.add("resizable","alsoResize",{start:function(){var t=z(this).resizable("instance").options;z(t.alsoResize).each(function(){var t=z(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.css("width")),height:parseFloat(t.css("height")),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,e){var i=z(this).resizable("instance"),s=i.options,h=i.originalSize,n=i.originalPosition,o={height:i.size.height-h.height||0,width:i.size.width-h.width||0,top:i.position.top-n.top||0,left:i.position.left-n.left||0};z(s.alsoResize).each(function(){var t=z(this),s=z(this).data("ui-resizable-alsoresize"),h={},i=t.parents(e.originalElement[0]).length?["width","height"]:["width","height","top","left"];z.each(i,function(t,i){var e=(s[i]||0)+(o[i]||0);e&&0<=e&&(h[i]=e||null)}),t.css(h)})},stop:function(){z(this).removeData("ui-resizable-alsoresize")}}),z.ui.plugin.add("resizable","ghost",{start:function(){var t=z(this).resizable("instance"),i=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==z.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=z(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=z(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),z.ui.plugin.add("resizable","grid",{resize:function(){var t,i=z(this).resizable("instance"),e=i.options,s=i.size,h=i.originalSize,n=i.originalPosition,o=i.axis,a="number"==typeof e.grid?[e.grid,e.grid]:e.grid,l=a[0]||1,r=a[1]||1,p=Math.round((s.width-h.width)/l)*l,s=Math.round((s.height-h.height)/r)*r,d=h.width+p,g=h.height+s,u=e.maxWidth&&e.maxWidth<d,c=e.maxHeight&&e.maxHeight<g,f=e.minWidth&&e.minWidth>d,m=e.minHeight&&e.minHeight>g;e.grid=a,f&&(d+=l),m&&(g+=r),u&&(d-=l),c&&(g-=r),/^(se|s|e)$/.test(o)?(i.size.width=d,i.size.height=g):/^(ne)$/.test(o)?(i.size.width=d,i.size.height=g,i.position.top=n.top-s):/^(sw)$/.test(o)?(i.size.width=d,i.size.height=g,i.position.left=n.left-p):((g-r<=0||d-l<=0)&&(t=i._getPaddingPlusBorderDimensions(this)),0<g-r?(i.size.height=g,i.position.top=n.top-s):(g=r-t.height,i.size.height=g,i.position.top=n.top+h.height-g),0<d-l?(i.size.width=d,i.position.left=n.left-p):(d=l-t.width,i.size.width=d,i.position.left=n.left+h.width-d))}}),z.ui.resizable}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/selectable.js b/wp-includes/js/jquery/ui/selectable.js
index 3eb03d2..318495a 100644
--- a/wp-includes/js/jquery/ui/selectable.js
+++ b/wp-includes/js/jquery/ui/selectable.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Selectable 1.13.2
- * http://jqueryui.com
+ * jQuery UI Selectable 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Selectable
//>>group: Interactions
//>>description: Allows groups of elements to be selected with the mouse.
-//>>docs: http://api.jqueryui.com/selectable/
-//>>demos: http://jqueryui.com/selectable/
+//>>docs: https://api.jqueryui.com/selectable/
+//>>demos: https://jqueryui.com/selectable/
//>>css.structure: ../../themes/base/selectable.css
( function( factory ) {
@@ -23,7 +23,8 @@
define( [
"jquery",
"./mouse",
- "./core"
+ "../version",
+ "../widget"
], factory );
} else {
@@ -34,7 +35,7 @@
"use strict";
return $.widget( "ui.selectable", $.ui.mouse, {
- version: "1.13.2",
+ version: "1.13.3",
options: {
appendTo: "body",
autoRefresh: true,
diff --git a/wp-includes/js/jquery/ui/selectable.min.js b/wp-includes/js/jquery/ui/selectable.min.js
index ba1047d..02d4b61 100644
--- a/wp-includes/js/jquery/ui/selectable.min.js
+++ b/wp-includes/js/jquery/ui/selectable.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Selectable 1.13.2
- * http://jqueryui.com
+ * jQuery UI Selectable 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","./core"],e):e(jQuery)}(function(u){"use strict";return u.widget("ui.selectable",u.ui.mouse,{version:"1.13.2",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var s=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){s.elementPos=u(s.element[0]).offset(),s.selectees=u(s.options.filter,s.element[0]),s._addClass(s.selectees,"ui-selectee"),s.selectees.each(function(){var e=u(this),t=e.offset(),t={left:t.left-s.elementPos.left,top:t.top-s.elementPos.top};u.data(this,"selectable-item",{element:this,$element:e,left:t.left,top:t.top,right:t.left+e.outerWidth(),bottom:t.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=u("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(s){var l=this,e=this.options;this.opos=[s.pageX,s.pageY],this.elementPos=u(this.element[0]).offset(),this.options.disabled||(this.selectees=u(e.filter,this.element[0]),this._trigger("start",s),u(e.appendTo).append(this.helper),this.helper.css({left:s.pageX,top:s.pageY,width:0,height:0}),e.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var e=u.data(this,"selectable-item");e.startselected=!0,s.metaKey||s.ctrlKey||(l._removeClass(e.$element,"ui-selected"),e.selected=!1,l._addClass(e.$element,"ui-unselecting"),e.unselecting=!0,l._trigger("unselecting",s,{unselecting:e.element}))}),u(s.target).parents().addBack().each(function(){var e,t=u.data(this,"selectable-item");if(t)return e=!s.metaKey&&!s.ctrlKey||!t.$element.hasClass("ui-selected"),l._removeClass(t.$element,e?"ui-unselecting":"ui-selected")._addClass(t.$element,e?"ui-selecting":"ui-unselecting"),t.unselecting=!e,t.selecting=e,(t.selected=e)?l._trigger("selecting",s,{selecting:t.element}):l._trigger("unselecting",s,{unselecting:t.element}),!1}))},_mouseDrag:function(l){var e,i,n,c,a,r,o;if(this.dragged=!0,!this.options.disabled)return n=(i=this).options,c=this.opos[0],a=this.opos[1],r=l.pageX,o=l.pageY,r<c&&(e=r,r=c,c=e),o<a&&(e=o,o=a,a=e),this.helper.css({left:c,top:a,width:r-c,height:o-a}),this.selectees.each(function(){var e=u.data(this,"selectable-item"),t=!1,s={};e&&e.element!==i.element[0]&&(s.left=e.left+i.elementPos.left,s.right=e.right+i.elementPos.left,s.top=e.top+i.elementPos.top,s.bottom=e.bottom+i.elementPos.top,"touch"===n.tolerance?t=!(r<s.left||s.right<c||o<s.top||s.bottom<a):"fit"===n.tolerance&&(t=c<s.left&&s.right<r&&a<s.top&&s.bottom<o),t?(e.selected&&(i._removeClass(e.$element,"ui-selected"),e.selected=!1),e.unselecting&&(i._removeClass(e.$element,"ui-unselecting"),e.unselecting=!1),e.selecting||(i._addClass(e.$element,"ui-selecting"),e.selecting=!0,i._trigger("selecting",l,{selecting:e.element}))):(e.selecting&&((l.metaKey||l.ctrlKey)&&e.startselected?(i._removeClass(e.$element,"ui-selecting"),e.selecting=!1,i._addClass(e.$element,"ui-selected"),e.selected=!0):(i._removeClass(e.$element,"ui-selecting"),e.selecting=!1,e.startselected&&(i._addClass(e.$element,"ui-unselecting"),e.unselecting=!0),i._trigger("unselecting",l,{unselecting:e.element}))),!e.selected||l.metaKey||l.ctrlKey||e.startselected||(i._removeClass(e.$element,"ui-selected"),e.selected=!1,i._addClass(e.$element,"ui-unselecting"),e.unselecting=!0,i._trigger("unselecting",l,{unselecting:e.element}))))}),!1},_mouseStop:function(t){var s=this;return this.dragged=!1,u(".ui-unselecting",this.element[0]).each(function(){var e=u.data(this,"selectable-item");s._removeClass(e.$element,"ui-unselecting"),e.unselecting=!1,e.startselected=!1,s._trigger("unselected",t,{unselected:e.element})}),u(".ui-selecting",this.element[0]).each(function(){var e=u.data(this,"selectable-item");s._removeClass(e.$element,"ui-selecting")._addClass(e.$element,"ui-selected"),e.selecting=!1,e.selected=!0,e.startselected=!0,s._trigger("selected",t,{selected:e.element})}),this._trigger("stop",t),this.helper.remove(),!1}})}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../version","../widget"],e):e(jQuery)}(function(u){"use strict";return u.widget("ui.selectable",u.ui.mouse,{version:"1.13.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var s=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){s.elementPos=u(s.element[0]).offset(),s.selectees=u(s.options.filter,s.element[0]),s._addClass(s.selectees,"ui-selectee"),s.selectees.each(function(){var e=u(this),t=e.offset(),t={left:t.left-s.elementPos.left,top:t.top-s.elementPos.top};u.data(this,"selectable-item",{element:this,$element:e,left:t.left,top:t.top,right:t.left+e.outerWidth(),bottom:t.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=u("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(s){var l=this,e=this.options;this.opos=[s.pageX,s.pageY],this.elementPos=u(this.element[0]).offset(),this.options.disabled||(this.selectees=u(e.filter,this.element[0]),this._trigger("start",s),u(e.appendTo).append(this.helper),this.helper.css({left:s.pageX,top:s.pageY,width:0,height:0}),e.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var e=u.data(this,"selectable-item");e.startselected=!0,s.metaKey||s.ctrlKey||(l._removeClass(e.$element,"ui-selected"),e.selected=!1,l._addClass(e.$element,"ui-unselecting"),e.unselecting=!0,l._trigger("unselecting",s,{unselecting:e.element}))}),u(s.target).parents().addBack().each(function(){var e,t=u.data(this,"selectable-item");if(t)return e=!s.metaKey&&!s.ctrlKey||!t.$element.hasClass("ui-selected"),l._removeClass(t.$element,e?"ui-unselecting":"ui-selected")._addClass(t.$element,e?"ui-selecting":"ui-unselecting"),t.unselecting=!e,t.selecting=e,(t.selected=e)?l._trigger("selecting",s,{selecting:t.element}):l._trigger("unselecting",s,{unselecting:t.element}),!1}))},_mouseDrag:function(l){var e,i,n,c,a,r,o;if(this.dragged=!0,!this.options.disabled)return n=(i=this).options,c=this.opos[0],a=this.opos[1],r=l.pageX,o=l.pageY,r<c&&(e=r,r=c,c=e),o<a&&(e=o,o=a,a=e),this.helper.css({left:c,top:a,width:r-c,height:o-a}),this.selectees.each(function(){var e=u.data(this,"selectable-item"),t=!1,s={};e&&e.element!==i.element[0]&&(s.left=e.left+i.elementPos.left,s.right=e.right+i.elementPos.left,s.top=e.top+i.elementPos.top,s.bottom=e.bottom+i.elementPos.top,"touch"===n.tolerance?t=!(r<s.left||s.right<c||o<s.top||s.bottom<a):"fit"===n.tolerance&&(t=c<s.left&&s.right<r&&a<s.top&&s.bottom<o),t?(e.selected&&(i._removeClass(e.$element,"ui-selected"),e.selected=!1),e.unselecting&&(i._removeClass(e.$element,"ui-unselecting"),e.unselecting=!1),e.selecting||(i._addClass(e.$element,"ui-selecting"),e.selecting=!0,i._trigger("selecting",l,{selecting:e.element}))):(e.selecting&&((l.metaKey||l.ctrlKey)&&e.startselected?(i._removeClass(e.$element,"ui-selecting"),e.selecting=!1,i._addClass(e.$element,"ui-selected"),e.selected=!0):(i._removeClass(e.$element,"ui-selecting"),e.selecting=!1,e.startselected&&(i._addClass(e.$element,"ui-unselecting"),e.unselecting=!0),i._trigger("unselecting",l,{unselecting:e.element}))),!e.selected||l.metaKey||l.ctrlKey||e.startselected||(i._removeClass(e.$element,"ui-selected"),e.selected=!1,i._addClass(e.$element,"ui-unselecting"),e.unselecting=!0,i._trigger("unselecting",l,{unselecting:e.element}))))}),!1},_mouseStop:function(t){var s=this;return this.dragged=!1,u(".ui-unselecting",this.element[0]).each(function(){var e=u.data(this,"selectable-item");s._removeClass(e.$element,"ui-unselecting"),e.unselecting=!1,e.startselected=!1,s._trigger("unselected",t,{unselected:e.element})}),u(".ui-selecting",this.element[0]).each(function(){var e=u.data(this,"selectable-item");s._removeClass(e.$element,"ui-selecting")._addClass(e.$element,"ui-selected"),e.selecting=!1,e.selected=!0,e.startselected=!0,s._trigger("selected",t,{selected:e.element})}),this._trigger("stop",t),this.helper.remove(),!1}})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/selectmenu.js b/wp-includes/js/jquery/ui/selectmenu.js
index 4da4f81..f6540bb 100644
--- a/wp-includes/js/jquery/ui/selectmenu.js
+++ b/wp-includes/js/jquery/ui/selectmenu.js
@@ -1,10 +1,10 @@
/*!
- * jQuery UI Selectmenu 1.13.2
- * http://jqueryui.com
+ * jQuery UI Selectmenu 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Selectmenu
@@ -12,8 +12,8 @@
/* eslint-disable max-len */
//>>description: Duplicates and extends the functionality of a native HTML select element, allowing it to be customizable in behavior and appearance far beyond the limitations of a native select.
/* eslint-enable max-len */
-//>>docs: http://api.jqueryui.com/selectmenu/
-//>>demos: http://jqueryui.com/selectmenu/
+//>>docs: https://api.jqueryui.com/selectmenu/
+//>>demos: https://jqueryui.com/selectmenu/
//>>css.structure: ../../themes/base/core.css
//>>css.structure: ../../themes/base/selectmenu.css, ../../themes/base/button.css
//>>css.theme: ../../themes/base/theme.css
@@ -27,7 +27,13 @@
define( [
"jquery",
"./menu",
- "./core"
+ "../form-reset-mixin",
+ "../keycode",
+ "../labels",
+ "../position",
+ "../unique-id",
+ "../version",
+ "../widget"
], factory );
} else {
@@ -38,7 +44,7 @@
"use strict";
return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
- version: "1.13.2",
+ version: "1.13.3",
defaultElement: "<select>",
options: {
appendTo: null,
@@ -348,7 +354,12 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
if ( item.disabled ) {
this._addClass( li, null, "ui-state-disabled" );
}
- this._setText( wrapper, item.label );
+
+ if ( item.hidden ) {
+ li.prop( "hidden", true );
+ } else {
+ this._setText( wrapper, item.label );
+ }
return li.append( wrapper ).appendTo( ul );
},
@@ -652,10 +663,6 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
var that = this,
data = [];
options.each( function( index, item ) {
- if ( item.hidden ) {
- return;
- }
-
data.push( that._parseOption( $( item ), index ) );
} );
this.items = data;
@@ -669,6 +676,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
index: index,
value: option.val(),
label: option.text(),
+ hidden: optgroup.prop( "hidden" ) || option.prop( "hidden" ),
optgroup: optgroup.attr( "label" ) || "",
disabled: optgroup.prop( "disabled" ) || option.prop( "disabled" )
};
diff --git a/wp-includes/js/jquery/ui/selectmenu.min.js b/wp-includes/js/jquery/ui/selectmenu.min.js
index 26910cb..66da69b 100644
--- a/wp-includes/js/jquery/ui/selectmenu.min.js
+++ b/wp-includes/js/jquery/ui/selectmenu.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Selectmenu 1.13.2
- * http://jqueryui.com
+ * jQuery UI Selectmenu 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","./core"],e):e(jQuery)}(function(u){"use strict";return u.widget("ui.selectmenu",[u.ui.formResetMixin,{version:"1.13.2",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=u()},_drawButton:function(){var e,t=this,i=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(e){this.button.trigger("focus"),e.preventDefault()}}),this.element.hide(),this.button=u("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),e=u("<span>").appendTo(this.button),this._addClass(e,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(i).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){t._rendered||t._refreshMenu()})},_drawMenu:function(){var i=this;this.menu=u("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=u("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(e,t){e.preventDefault(),i._setSelection(),i._select(t.item.data("ui-selectmenu-item"),e)},focus:function(e,t){t=t.item.data("ui-selectmenu-item");null!=i.focusIndex&&t.index!==i.focusIndex&&(i._trigger("focus",e,{item:t}),i.isOpen||i._select(t,e)),i.focusIndex=t.index,i.button.attr("aria-activedescendant",i.menuItems.eq(t.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var e=this.element.find("option");this.menu.empty(),this._parseOptions(e),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,e.length&&(e=this._getSelectedItem(),this.menuInstance.focus(null,e),this._setAria(e.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(e){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",e)))},_position:function(){this.menuWrap.position(u.extend({of:this.button},this.options.position))},close:function(e){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",e))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var t=u("<span>");return this._setText(t,e.label),this._addClass(t,"ui-selectmenu-text"),t},_renderMenu:function(n,e){var s=this,o="";u.each(e,function(e,t){var i;t.optgroup!==o&&(i=u("<li>",{text:t.optgroup}),s._addClass(i,"ui-selectmenu-optgroup","ui-menu-divider"+(t.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),i.appendTo(n),o=t.optgroup),s._renderItemData(n,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-selectmenu-item",t)},_renderItem:function(e,t){var i=u("<li>"),n=u("<div>",{title:t.element.attr("title")});return t.disabled&&this._addClass(i,null,"ui-state-disabled"),this._setText(n,t.label),i.append(n).appendTo(e)},_setText:function(e,t){t?e.text(t):e.html("&#160;")},_move:function(e,t){var i,n=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),n+=":not(.ui-state-disabled)"),(i="first"===e||"last"===e?i["first"===e?"prevAll":"nextAll"](n).eq(-1):i[e+"All"](n).eq(0)).length&&this.menuInstance.focus(t,i)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(e){this[this.isOpen?"close":"open"](e)},_setSelection:function(){var e;this.range&&(window.getSelection?((e=window.getSelection()).removeAllRanges(),e.addRange(this.range)):this.range.select(),this.button.trigger("focus"))},_documentClick:{mousedown:function(e){!this.isOpen||u(e.target).closest(".ui-selectmenu-menu, #"+u.escapeSelector(this.ids.button)).length||this.close(e)}},_buttonEvents:{mousedown:function(){var e;window.getSelection?(e=window.getSelection()).rangeCount&&(this.range=e.getRangeAt(0)):this.range=document.selection.createRange()},click:function(e){this._setSelection(),this._toggle(e)},keydown:function(e){var t=!0;switch(e.keyCode){case u.ui.keyCode.TAB:case u.ui.keyCode.ESCAPE:this.close(e),t=!1;break;case u.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case u.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case u.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case u.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case u.ui.keyCode.LEFT:this._move("prev",e);break;case u.ui.keyCode.RIGHT:this._move("next",e);break;case u.ui.keyCode.HOME:case u.ui.keyCode.PAGE_UP:this._move("first",e);break;case u.ui.keyCode.END:case u.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),t=!1}t&&e.preventDefault()}},_selectFocusedItem:function(e){var t=this.menuItems.eq(this.focusIndex).parent("li");t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),e)},_select:function(e,t){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=e.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(e)),this._setAria(e),this._trigger("select",t,{item:e}),e.index!==i&&this._trigger("change",t,{item:e}),this.close(t)},_setAria:function(e){e=this.menuItems.eq(e.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(e,t){var i;"icons"===e&&(i=this.button.find("span.ui-icon"),this._removeClass(i,null,this.options.icons.button)._addClass(i,null,t.button)),this._super(e,t),"appendTo"===e&&this.menuWrap.appendTo(this._appendTo()),"width"===e&&this._resizeButton()},_setOptionDisabled:function(e){this._super(e),this.menuInstance.option("disabled",e),this.button.attr("aria-disabled",e),this._toggleClass(this.button,null,"ui-state-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?u(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var e=this.options.width;!1===e?this.button.css("width",""):(null===e&&(e=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(e))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var e=this._super();return e.disabled=this.element.prop("disabled"),e},_parseOptions:function(e){var i=this,n=[];e.each(function(e,t){t.hidden||n.push(i._parseOption(u(t),e))}),this.items=n},_parseOption:function(e,t){var i=e.parent("optgroup");return{element:e,index:t,value:e.val(),label:e.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||e.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}])}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../form-reset-mixin","../keycode","../labels","../position","../unique-id","../version","../widget"],e):e(jQuery)}(function(u){"use strict";return u.widget("ui.selectmenu",[u.ui.formResetMixin,{version:"1.13.3",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=u()},_drawButton:function(){var e,t=this,i=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(e){this.button.trigger("focus"),e.preventDefault()}}),this.element.hide(),this.button=u("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),e=u("<span>").appendTo(this.button),this._addClass(e,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(i).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){t._rendered||t._refreshMenu()})},_drawMenu:function(){var i=this;this.menu=u("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=u("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(e,t){e.preventDefault(),i._setSelection(),i._select(t.item.data("ui-selectmenu-item"),e)},focus:function(e,t){t=t.item.data("ui-selectmenu-item");null!=i.focusIndex&&t.index!==i.focusIndex&&(i._trigger("focus",e,{item:t}),i.isOpen||i._select(t,e)),i.focusIndex=t.index,i.button.attr("aria-activedescendant",i.menuItems.eq(t.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var e=this.element.find("option");this.menu.empty(),this._parseOptions(e),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,e.length&&(e=this._getSelectedItem(),this.menuInstance.focus(null,e),this._setAria(e.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(e){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",e)))},_position:function(){this.menuWrap.position(u.extend({of:this.button},this.options.position))},close:function(e){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",e))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var t=u("<span>");return this._setText(t,e.label),this._addClass(t,"ui-selectmenu-text"),t},_renderMenu:function(n,e){var s=this,o="";u.each(e,function(e,t){var i;t.optgroup!==o&&(i=u("<li>",{text:t.optgroup}),s._addClass(i,"ui-selectmenu-optgroup","ui-menu-divider"+(t.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),i.appendTo(n),o=t.optgroup),s._renderItemData(n,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-selectmenu-item",t)},_renderItem:function(e,t){var i=u("<li>"),n=u("<div>",{title:t.element.attr("title")});return t.disabled&&this._addClass(i,null,"ui-state-disabled"),t.hidden?i.prop("hidden",!0):this._setText(n,t.label),i.append(n).appendTo(e)},_setText:function(e,t){t?e.text(t):e.html("&#160;")},_move:function(e,t){var i,n=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),n+=":not(.ui-state-disabled)"),(i="first"===e||"last"===e?i["first"===e?"prevAll":"nextAll"](n).eq(-1):i[e+"All"](n).eq(0)).length&&this.menuInstance.focus(t,i)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(e){this[this.isOpen?"close":"open"](e)},_setSelection:function(){var e;this.range&&(window.getSelection?((e=window.getSelection()).removeAllRanges(),e.addRange(this.range)):this.range.select(),this.button.trigger("focus"))},_documentClick:{mousedown:function(e){!this.isOpen||u(e.target).closest(".ui-selectmenu-menu, #"+u.escapeSelector(this.ids.button)).length||this.close(e)}},_buttonEvents:{mousedown:function(){var e;window.getSelection?(e=window.getSelection()).rangeCount&&(this.range=e.getRangeAt(0)):this.range=document.selection.createRange()},click:function(e){this._setSelection(),this._toggle(e)},keydown:function(e){var t=!0;switch(e.keyCode){case u.ui.keyCode.TAB:case u.ui.keyCode.ESCAPE:this.close(e),t=!1;break;case u.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case u.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case u.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case u.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case u.ui.keyCode.LEFT:this._move("prev",e);break;case u.ui.keyCode.RIGHT:this._move("next",e);break;case u.ui.keyCode.HOME:case u.ui.keyCode.PAGE_UP:this._move("first",e);break;case u.ui.keyCode.END:case u.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),t=!1}t&&e.preventDefault()}},_selectFocusedItem:function(e){var t=this.menuItems.eq(this.focusIndex).parent("li");t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),e)},_select:function(e,t){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=e.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(e)),this._setAria(e),this._trigger("select",t,{item:e}),e.index!==i&&this._trigger("change",t,{item:e}),this.close(t)},_setAria:function(e){e=this.menuItems.eq(e.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(e,t){var i;"icons"===e&&(i=this.button.find("span.ui-icon"),this._removeClass(i,null,this.options.icons.button)._addClass(i,null,t.button)),this._super(e,t),"appendTo"===e&&this.menuWrap.appendTo(this._appendTo()),"width"===e&&this._resizeButton()},_setOptionDisabled:function(e){this._super(e),this.menuInstance.option("disabled",e),this.button.attr("aria-disabled",e),this._toggleClass(this.button,null,"ui-state-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?u(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var e=this.options.width;!1===e?this.button.css("width",""):(null===e&&(e=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(e))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var e=this._super();return e.disabled=this.element.prop("disabled"),e},_parseOptions:function(e){var i=this,n=[];e.each(function(e,t){n.push(i._parseOption(u(t),e))}),this.items=n},_parseOption:function(e,t){var i=e.parent("optgroup");return{element:e,index:t,value:e.val(),label:e.text(),hidden:i.prop("hidden")||e.prop("hidden"),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||e.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}])}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/slider.js b/wp-includes/js/jquery/ui/slider.js
index 4eee29d..f615dac 100644
--- a/wp-includes/js/jquery/ui/slider.js
+++ b/wp-includes/js/jquery/ui/slider.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Slider 1.13.2
- * http://jqueryui.com
+ * jQuery UI Slider 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Slider
//>>group: Widgets
//>>description: Displays a flexible slider with ranges and accessibility via keyboard.
-//>>docs: http://api.jqueryui.com/slider/
-//>>demos: http://jqueryui.com/slider/
+//>>docs: https://api.jqueryui.com/slider/
+//>>demos: https://jqueryui.com/slider/
//>>css.structure: ../../themes/base/core.css
//>>css.structure: ../../themes/base/slider.css
//>>css.theme: ../../themes/base/theme.css
@@ -25,7 +25,9 @@
define( [
"jquery",
"./mouse",
- "./core"
+ "../keycode",
+ "../version",
+ "../widget"
], factory );
} else {
@@ -36,7 +38,7 @@
"use strict";
return $.widget( "ui.slider", $.ui.mouse, {
- version: "1.13.2",
+ version: "1.13.3",
widgetEventPrefix: "slide",
options: {
diff --git a/wp-includes/js/jquery/ui/slider.min.js b/wp-includes/js/jquery/ui/slider.min.js
index da3e9a0..745e969 100644
--- a/wp-includes/js/jquery/ui/slider.min.js
+++ b/wp-includes/js/jquery/ui/slider.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Slider 1.13.2
- * http://jqueryui.com
+ * jQuery UI Slider 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","./core"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.slider",o.ui.mouse,{version:"1.13.2",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,t=this.options,i=this.element.find(".ui-slider-handle"),s=[],a=t.values&&t.values.length||1;for(i.length>a&&(i.slice(a).remove(),i=i.slice(0,a)),e=i.length;e<a;e++)s.push("<span tabindex='0'></span>");this.handles=i.add(o(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){o(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:Array.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=o("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,s,a,n,t,h,l=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var t=Math.abs(i-l.values(e));(t<s||s===t&&(e===l._lastChangedValue||l.values(e)===u.min))&&(s=t,a=o(this),n=e)}),!1!==this._start(e,n))&&(this._mouseSliding=!0,this._handleIndex=n,this._addClass(a,null,"ui-state-active"),a.trigger("focus"),t=a.offset(),h=!o(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=h?{left:0,top:0}:{left:e.pageX-t.left-a.width()/2,top:e.pageY-t.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,n,i),this._animateOff=!0)},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},t=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,t),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,e="horizontal"===this.orientation?(t=this.elementSize.width,e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),e=e/t;return(e=1<e?1:e)<0&&(e=0),"vertical"===this.orientation&&(e=1-e),t=this._valueMax()-this._valueMin(),e=this._valueMin()+e*t,this._trimAlignValue(e)},_uiHash:function(e,t,i){var s={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==t?t:this.values(e),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,i){var s,a=this.value(),n=this.values();this._hasMultipleValues()&&(s=this.values(t?0:1),a=this.values(t),2===this.options.values.length&&!0===this.options.range&&(i=0===t?Math.min(s,i):Math.max(s,i)),n[t]=i),i!==a&&!1!==this._trigger("slide",e,this._uiHash(t,i,n))&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){if(!arguments.length)return this._value();this.options.value=this._trimAlignValue(e),this._refreshValue(),this._change(null,0)},values:function(e,t){var i,s,a;if(1<arguments.length)this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),this._change(null,e);else{if(!arguments.length)return this._values();if(!Array.isArray(e))return this._hasMultipleValues()?this._values(e):this.value();for(i=this.options.values,s=e,a=0;a<i.length;a+=1)i[a]=this._trimAlignValue(s[a]),this._change(null,a);this._refreshValue()}},_setOption:function(e,t){var i,s=0;switch("range"===e&&!0===this.options.range&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(s=this.options.values.length),this._super(e,t),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(t),this.handles.css("horizontal"===t?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=s-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,i;if(arguments.length)return e=this.options.values[e],this._trimAlignValue(e);if(this._hasMultipleValues()){for(t=this.options.values.slice(),i=0;i<t.length;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(e){var t,i;return e<=this._valueMin()?this._valueMin():e>=this._valueMax()?this._valueMax():(t=0<this.options.step?this.options.step:1,i=e-(e=(e-this._valueMin())%t),2*Math.abs(e)>=t&&(i+=0<e?t:-t),parseFloat(i.toFixed(5)))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),i=this.options.step;(e=Math.round((e-t)/i)*i+t)>this.options.max&&(e-=i),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return e=null!==this.options.min?Math.max(e,this._precisionOf(this.options.min)):e},_precisionOf:function(e){var e=e.toString(),t=e.indexOf(".");return-1===t?0:e.length-t-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,e,s,a,n=this.options.range,h=this.options,l=this,u=!this._animateOff&&h.animate,r={};this._hasMultipleValues()?this.handles.each(function(e){i=(l.values(e)-l._valueMin())/(l._valueMax()-l._valueMin())*100,r["horizontal"===l.orientation?"left":"bottom"]=i+"%",o(this).stop(1,1)[u?"animate":"css"](r,h.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===e&&l.range.stop(1,1)[u?"animate":"css"]({left:i+"%"},h.animate),1===e&&l.range[u?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:h.animate})):(0===e&&l.range.stop(1,1)[u?"animate":"css"]({bottom:i+"%"},h.animate),1===e&&l.range[u?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:h.animate}))),t=i}):(e=this.value(),s=this._valueMin(),a=this._valueMax(),i=a!==s?(e-s)/(a-s)*100:0,r["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[u?"animate":"css"](r,h.animate),"min"===n&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:i+"%"},h.animate),"max"===n&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:100-i+"%"},h.animate),"min"===n&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:i+"%"},h.animate),"max"===n&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:100-i+"%"},h.animate))},_handleEvents:{keydown:function(e){var t,i,s,a=o(e.target).data("ui-slider-handle-index");switch(e.keyCode){case o.ui.keyCode.HOME:case o.ui.keyCode.END:case o.ui.keyCode.PAGE_UP:case o.ui.keyCode.PAGE_DOWN:case o.ui.keyCode.UP:case o.ui.keyCode.RIGHT:case o.ui.keyCode.DOWN:case o.ui.keyCode.LEFT:if(e.preventDefault(),this._keySliding||(this._keySliding=!0,this._addClass(o(e.target),null,"ui-state-active"),!1!==this._start(e,a)))break;return}switch(s=this.options.step,t=i=this._hasMultipleValues()?this.values(a):this.value(),e.keyCode){case o.ui.keyCode.HOME:i=this._valueMin();break;case o.ui.keyCode.END:i=this._valueMax();break;case o.ui.keyCode.PAGE_UP:i=this._trimAlignValue(t+(this._valueMax()-this._valueMin())/this.numPages);break;case o.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(t-(this._valueMax()-this._valueMin())/this.numPages);break;case o.ui.keyCode.UP:case o.ui.keyCode.RIGHT:if(t===this._valueMax())return;i=this._trimAlignValue(t+s);break;case o.ui.keyCode.DOWN:case o.ui.keyCode.LEFT:if(t===this._valueMin())return;i=this._trimAlignValue(t-s)}this._slide(e,a,i)},keyup:function(e){var t=o(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,t),this._change(e,t),this._removeClass(o(e.target),null,"ui-state-active"))}}})}); \ No newline at end of file
+!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../keycode","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.slider",o.ui.mouse,{version:"1.13.3",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,t=this.options,i=this.element.find(".ui-slider-handle"),s=[],a=t.values&&t.values.length||1;for(i.length>a&&(i.slice(a).remove(),i=i.slice(0,a)),e=i.length;e<a;e++)s.push("<span tabindex='0'></span>");this.handles=i.add(o(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){o(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:Array.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=o("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,s,a,n,t,h,l=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var t=Math.abs(i-l.values(e));(t<s||s===t&&(e===l._lastChangedValue||l.values(e)===u.min))&&(s=t,a=o(this),n=e)}),!1!==this._start(e,n))&&(this._mouseSliding=!0,this._handleIndex=n,this._addClass(a,null,"ui-state-active"),a.trigger("focus"),t=a.offset(),h=!o(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=h?{left:0,top:0}:{left:e.pageX-t.left-a.width()/2,top:e.pageY-t.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,n,i),this._animateOff=!0)},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},t=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,t),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,e="horizontal"===this.orientation?(t=this.elementSize.width,e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),e=e/t;return(e=1<e?1:e)<0&&(e=0),"vertical"===this.orientation&&(e=1-e),t=this._valueMax()-this._valueMin(),e=this._valueMin()+e*t,this._trimAlignValue(e)},_uiHash:function(e,t,i){var s={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==t?t:this.values(e),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,i){var s,a=this.value(),n=this.values();this._hasMultipleValues()&&(s=this.values(t?0:1),a=this.values(t),2===this.options.values.length&&!0===this.options.range&&(i=0===t?Math.min(s,i):Math.max(s,i)),n[t]=i),i!==a&&!1!==this._trigger("slide",e,this._uiHash(t,i,n))&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){if(!arguments.length)return this._value();this.options.value=this._trimAlignValue(e),this._refreshValue(),this._change(null,0)},values:function(e,t){var i,s,a;if(1<arguments.length)this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),this._change(null,e);else{if(!arguments.length)return this._values();if(!Array.isArray(e))return this._hasMultipleValues()?this._values(e):this.value();for(i=this.options.values,s=e,a=0;a<i.length;a+=1)i[a]=this._trimAlignValue(s[a]),this._change(null,a);this._refreshValue()}},_setOption:function(e,t){var i,s=0;switch("range"===e&&!0===this.options.range&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(s=this.options.values.length),this._super(e,t),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(t),this.handles.css("horizontal"===t?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=s-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,i;if(arguments.length)return e=this.options.values[e],this._trimAlignValue(e);if(this._hasMultipleValues()){for(t=this.options.values.slice(),i=0;i<t.length;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(e){var t,i;return e<=this._valueMin()?this._valueMin():e>=this._valueMax()?this._valueMax():(t=0<this.options.step?this.options.step:1,i=e-(e=(e-this._valueMin())%t),2*Math.abs(e)>=t&&(i+=0<e?t:-t),parseFloat(i.toFixed(5)))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),i=this.options.step;(e=Math.round((e-t)/i)*i+t)>this.options.max&&(e-=i),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return e=null!==this.options.min?Math.max(e,this._precisionOf(this.options.min)):e},_precisionOf:function(e){var e=e.toString(),t=e.indexOf(".");return-1===t?0:e.length-t-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,e,s,a,n=this.options.range,h=this.options,l=this,u=!this._animateOff&&h.animate,r={};this._hasMultipleValues()?this.handles.each(function(e){i=(l.values(e)-l._valueMin())/(l._valueMax()-l._valueMin())*100,r["horizontal"===l.orientation?"left":"bottom"]=i+"%",o(this).stop(1,1)[u?"animate":"css"](r,h.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===e&&l.range.stop(1,1)[u?"animate":"css"]({left:i+"%"},h.animate),1===e&&l.range[u?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:h.animate})):(0===e&&l.range.stop(1,1)[u?"animate":"css"]({bottom:i+"%"},h.animate),1===e&&l.range[u?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:h.animate}))),t=i}):(e=this.value(),s=this._valueMin(),a=this._valueMax(),i=a!==s?(e-s)/(a-s)*100:0,r["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[u?"animate":"css"](r,h.animate),"min"===n&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:i+"%"},h.animate),"max"===n&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:100-i+"%"},h.animate),"min"===n&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:i+"%"},h.animate),"max"===n&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:100-i+"%"},h.animate))},_handleEvents:{keydown:function(e){var t,i,s,a=o(e.target).data("ui-slider-handle-index");switch(e.keyCode){case o.ui.keyCode.HOME:case o.ui.keyCode.END:case o.ui.keyCode.PAGE_UP:case o.ui.keyCode.PAGE_DOWN:case o.ui.keyCode.UP:case o.ui.keyCode.RIGHT:case o.ui.keyCode.DOWN:case o.ui.keyCode.LEFT:if(e.preventDefault(),this._keySliding||(this._keySliding=!0,this._addClass(o(e.target),null,"ui-state-active"),!1!==this._start(e,a)))break;return}switch(s=this.options.step,t=i=this._hasMultipleValues()?this.values(a):this.value(),e.keyCode){case o.ui.keyCode.HOME:i=this._valueMin();break;case o.ui.keyCode.END:i=this._valueMax();break;case o.ui.keyCode.PAGE_UP:i=this._trimAlignValue(t+(this._valueMax()-this._valueMin())/this.numPages);break;case o.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(t-(this._valueMax()-this._valueMin())/this.numPages);break;case o.ui.keyCode.UP:case o.ui.keyCode.RIGHT:if(t===this._valueMax())return;i=this._trimAlignValue(t+s);break;case o.ui.keyCode.DOWN:case o.ui.keyCode.LEFT:if(t===this._valueMin())return;i=this._trimAlignValue(t-s)}this._slide(e,a,i)},keyup:function(e){var t=o(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,t),this._change(e,t),this._removeClass(o(e.target),null,"ui-state-active"))}}})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/sortable.js b/wp-includes/js/jquery/ui/sortable.js
index 5296109..23b2f38 100644
--- a/wp-includes/js/jquery/ui/sortable.js
+++ b/wp-includes/js/jquery/ui/sortable.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Sortable 1.13.2
- * http://jqueryui.com
+ * jQuery UI Sortable 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Sortable
//>>group: Interactions
//>>description: Enables items in a list to be sorted using the mouse.
-//>>docs: http://api.jqueryui.com/sortable/
-//>>demos: http://jqueryui.com/sortable/
+//>>docs: https://api.jqueryui.com/sortable/
+//>>demos: https://jqueryui.com/sortable/
//>>css.structure: ../../themes/base/sortable.css
( function( factory ) {
@@ -23,7 +23,11 @@
define( [
"jquery",
"./mouse",
- "./core"
+ "../data",
+ "../ie",
+ "../scroll-parent",
+ "../version",
+ "../widget"
], factory );
} else {
@@ -34,7 +38,7 @@
"use strict";
return $.widget( "ui.sortable", $.ui.mouse, {
- version: "1.13.2",
+ version: "1.13.3",
widgetEventPrefix: "sort",
ready: false,
options: {
diff --git a/wp-includes/js/jquery/ui/sortable.min.js b/wp-includes/js/jquery/ui/sortable.min.js
index 2ad2436..e3b5e5b 100644
--- a/wp-includes/js/jquery/ui/sortable.min.js
+++ b/wp-includes/js/jquery/ui/sortable.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Sortable 1.13.2
- * http://jqueryui.com
+ * jQuery UI Sortable 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","./core"],t):t(jQuery)}(function(u){"use strict";return u.widget("ui.sortable",u.ui.mouse,{version:"1.13.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return e<=t&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),u.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var i=null,s=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),u(t.target).parents().each(function(){if(u.data(this,o.widgetName+"-item")===o)return i=u(this),!1}),!(i=u.data(t.target,o.widgetName+"-item")===o?u(t.target):i))||(this.options.handle&&!e&&(u(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!s)||(this.currentItem=i,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,e,i){var s,o,r=this.options;if((this.currentContainer=this).refreshPositions(),this.appendTo=u("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},u.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),u.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",r.cursor),this.storedStylesheet=u("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(o)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(s=this.containers.length-1;0<=s;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return u.ui.ddmanager&&(u.ui.ddmanager.current=this),u.ui.ddmanager&&!r.dropBehaviour&&u.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(t){var e,i,s,o,r=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),r.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),u.ui.ddmanager)&&!r.dropBehaviour&&u.ui.ddmanager.prepareOffsets(this,t),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},e=this.items.length-1;0<=e;e--)if(s=(i=this.items[e]).item[0],(o=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===s||u.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&u.contains(this.element[0],s))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),u.ui.ddmanager&&u.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){var i,s,o,r;if(t)return u.ui.ddmanager&&!this.options.dropBehaviour&&u.ui.ddmanager.drop(this,t),this.options.revert?(s=(i=this).placeholder.offset(),r={},(o=this.options.axis)&&"x"!==o||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,u(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){i._clear(t)})):this._clear(t,e),!1},cancel:function(){if(this.dragging){this._mouseUp(new u.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),u.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?u(this.domPosition.prev).after(this.currentItem):u(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},u(t).each(function(){var t=(u(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&i.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e.each(function(){i.push(u(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,o=s+this.helperProportions.height,r=t.left,n=r+t.width,h=t.top,a=h+t.height,l=this.offset.click.top,c=this.offset.click.left,l="x"===this.options.axis||h<s+l&&s+l<a,c="y"===this.options.axis||r<e+c&&e+c<n;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?l&&c:r<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<n&&h<s+this.helperProportions.height/2&&o-this.helperProportions.height/2<a},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!e||!t)&&(e=this.dragDirection.vertical,t=this.dragDirection.horizontal,this.floating?"right"===t||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),t=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),i=this.dragDirection.vertical,s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&t||"left"===s&&!t:i&&("down"===i&&e||"up"===i&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){var e,i,s,o,r=[],n=[],h=this._connectWith();if(h&&t)for(e=h.length-1;0<=e;e--)for(i=(s=u(h[e],this.document[0])).length-1;0<=i;i--)(o=u.data(s[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&n.push(["function"==typeof o.options.items?o.options.items.call(o.element):u(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function a(){r.push(this)}for(n.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):u(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),e=n.length-1;0<=e;e--)n[e][0].each(a);return u(r)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=u.grep(this.items,function(t){for(var e=0;e<i.length;e++)if(i[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,i,s,o,r,n,h,a,l=this.items,c=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):u(this.options.items,this.element),this]],p=this._connectWith();if(p&&this.ready)for(e=p.length-1;0<=e;e--)for(i=(s=u(p[e],this.document[0])).length-1;0<=i;i--)(o=u.data(s[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&(c.push(["function"==typeof o.options.items?o.options.items.call(o.element[0],t,{item:this.currentItem}):u(o.options.items,o.element),o]),this.containers.push(o));for(e=c.length-1;0<=e;e--)for(r=c[e][1],a=(n=c[e][i=0]).length;i<a;i++)(h=u(n[i])).data(this.widgetName+"-item",r),l.push({item:h,instance:r,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){for(var e,i,s=this.items.length-1;0<=s;s--)e=this.items[s],this.currentContainer&&e.instance!==this.currentContainer&&e.item[0]!==this.currentItem[0]||(i=this.options.toleranceElement?u(this.options.toleranceElement,e.item):e.item,t||(e.width=i.outerWidth(),e.height=i.outerHeight()),i=i.offset(),e.left=i.left,e.top=i.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(i){var s,o,r=(i=i||this).options;r.placeholder&&r.placeholder.constructor!==String||(s=r.placeholder,o=i.currentItem[0].nodeName.toLowerCase(),r.placeholder={element:function(){var t=u("<"+o+">",i.document[0]);return i._addClass(t,"ui-sortable-placeholder",s||i.currentItem[0].className)._removeClass(t,"ui-sortable-helper"),"tbody"===o?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),u("<tr>",i.document[0]).appendTo(t)):"tr"===o?i._createTrPlaceholder(i.currentItem,t):"img"===o&&t.attr("src",i.currentItem.attr("src")),s||t.css("visibility","hidden"),t},update:function(t,e){s&&!r.forcePlaceholderSize||(e.height()&&(!r.forcePlaceholderSize||"tbody"!==o&&"tr"!==o)||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width())||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10))}}),i.placeholder=u(r.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),r.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(t,e){var i=this;t.children().each(function(){u("<td>&#160;</td>",i.document[0]).attr("colspan",u(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,i,s,o,r,n,h,a,l,c=null,p=null,f=this.containers.length-1;0<=f;f--)u.contains(this.currentItem[0],this.containers[f].element[0])||(this._intersectsWith(this.containers[f].containerCache)?c&&u.contains(this.containers[f].element[0],c.element[0])||(c=this.containers[f],p=f):this.containers[f].containerCache.over&&(this.containers[f]._trigger("out",t,this._uiHash(this)),this.containers[f].containerCache.over=0));if(c)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(i=1e4,s=null,o=(a=c.floating||this._isFloating(this.currentItem))?"left":"top",r=a?"width":"height",l=a?"pageX":"pageY",e=this.items.length-1;0<=e;e--)u.contains(this.containers[p].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(n=this.items[e].item.offset()[o],h=!1,t[l]-n>this.items[e][r]/2&&(h=!0),Math.abs(t[l]-n)<i)&&(i=Math.abs(t[l]-n),s=this.items[e],this.direction=h?"up":"down");(s||this.options.dropOnEmpty)&&(this.currentContainer===this.containers[p]?this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1):(s?this._rearrange(t,s,null,!0):this._rearrange(t,null,this.containers[p].element,!0),this._trigger("change",t,this._uiHash()),this.containers[p]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1))}},_createHelper:function(t){var e=this.options,t="function"==typeof e.helper?u(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem;return t.parents("body").length||this.appendTo[0].appendChild(t[0]),t[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),t[0].style.width&&!e.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!e.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&u.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&u.ui.ie?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t;return"relative"===this.cssPosition?{top:(t=this.currentItem.position()).top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}:{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(t=u(i.containment)[0],i=u(i.containment).offset(),e="hidden"!==u(t).css("overflow"),this.containment=[i.left+(parseInt(u(t).css("borderLeftWidth"),10)||0)+(parseInt(u(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(u(t).css("borderTopWidth"),10)||0)+(parseInt(u(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(e?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(u(t).css("borderLeftWidth"),10)||0)-(parseInt(u(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(e?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(u(t).css("borderTopWidth"),10)||0)-(parseInt(u(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,i="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&u.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(i[0].tagName);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:i.scrollTop())*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:i.scrollLeft())*t}},_generatePosition:function(t){var e=this.options,i=t.pageX,s=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&u.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(i=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(i=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3])&&(s=this.containment[3]+this.offset.click.top),e.grid)&&(t=this.originalPageY+Math.round((s-this.originalPageY)/e.grid[1])*e.grid[1],s=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-e.grid[1]:t+e.grid[1],t=this.originalPageX+Math.round((i-this.originalPageX)/e.grid[0])*e.grid[0],i=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-e.grid[0]:t+e.grid[0]),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:o.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:o.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay(function(){o===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function o(e,i,s){return function(t){s._trigger(e,t,i._uiHash(i))}}for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this===this.currentContainer||e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))),i=this.containers.length-1;0<=i;i--)e||s.push(o("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(o("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<s.length;i++)s[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===u.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||u([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}})}); \ No newline at end of file
+!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../ie","../scroll-parent","../version","../widget"],t):t(jQuery)}(function(u){"use strict";return u.widget("ui.sortable",u.ui.mouse,{version:"1.13.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return e<=t&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),u.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var i=null,s=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),u(t.target).parents().each(function(){if(u.data(this,o.widgetName+"-item")===o)return i=u(this),!1}),!(i=u.data(t.target,o.widgetName+"-item")===o?u(t.target):i))||(this.options.handle&&!e&&(u(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!s)||(this.currentItem=i,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,e,i){var s,o,r=this.options;if((this.currentContainer=this).refreshPositions(),this.appendTo=u("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},u.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),u.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",r.cursor),this.storedStylesheet=u("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(o)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(s=this.containers.length-1;0<=s;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return u.ui.ddmanager&&(u.ui.ddmanager.current=this),u.ui.ddmanager&&!r.dropBehaviour&&u.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(t){var e,i,s,o,r=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),r.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),u.ui.ddmanager)&&!r.dropBehaviour&&u.ui.ddmanager.prepareOffsets(this,t),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},e=this.items.length-1;0<=e;e--)if(s=(i=this.items[e]).item[0],(o=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===s||u.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&u.contains(this.element[0],s))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),u.ui.ddmanager&&u.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){var i,s,o,r;if(t)return u.ui.ddmanager&&!this.options.dropBehaviour&&u.ui.ddmanager.drop(this,t),this.options.revert?(s=(i=this).placeholder.offset(),r={},(o=this.options.axis)&&"x"!==o||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,u(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){i._clear(t)})):this._clear(t,e),!1},cancel:function(){if(this.dragging){this._mouseUp(new u.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),u.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?u(this.domPosition.prev).after(this.currentItem):u(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},u(t).each(function(){var t=(u(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&i.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e.each(function(){i.push(u(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,o=s+this.helperProportions.height,r=t.left,n=r+t.width,h=t.top,a=h+t.height,l=this.offset.click.top,c=this.offset.click.left,l="x"===this.options.axis||h<s+l&&s+l<a,c="y"===this.options.axis||r<e+c&&e+c<n;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?l&&c:r<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<n&&h<s+this.helperProportions.height/2&&o-this.helperProportions.height/2<a},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!e||!t)&&(e=this.dragDirection.vertical,t=this.dragDirection.horizontal,this.floating?"right"===t||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),t=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),i=this.dragDirection.vertical,s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&t||"left"===s&&!t:i&&("down"===i&&e||"up"===i&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){var e,i,s,o,r=[],n=[],h=this._connectWith();if(h&&t)for(e=h.length-1;0<=e;e--)for(i=(s=u(h[e],this.document[0])).length-1;0<=i;i--)(o=u.data(s[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&n.push(["function"==typeof o.options.items?o.options.items.call(o.element):u(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function a(){r.push(this)}for(n.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):u(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),e=n.length-1;0<=e;e--)n[e][0].each(a);return u(r)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=u.grep(this.items,function(t){for(var e=0;e<i.length;e++)if(i[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,i,s,o,r,n,h,a,l=this.items,c=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):u(this.options.items,this.element),this]],p=this._connectWith();if(p&&this.ready)for(e=p.length-1;0<=e;e--)for(i=(s=u(p[e],this.document[0])).length-1;0<=i;i--)(o=u.data(s[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&(c.push(["function"==typeof o.options.items?o.options.items.call(o.element[0],t,{item:this.currentItem}):u(o.options.items,o.element),o]),this.containers.push(o));for(e=c.length-1;0<=e;e--)for(r=c[e][1],a=(n=c[e][i=0]).length;i<a;i++)(h=u(n[i])).data(this.widgetName+"-item",r),l.push({item:h,instance:r,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){for(var e,i,s=this.items.length-1;0<=s;s--)e=this.items[s],this.currentContainer&&e.instance!==this.currentContainer&&e.item[0]!==this.currentItem[0]||(i=this.options.toleranceElement?u(this.options.toleranceElement,e.item):e.item,t||(e.width=i.outerWidth(),e.height=i.outerHeight()),i=i.offset(),e.left=i.left,e.top=i.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(i){var s,o,r=(i=i||this).options;r.placeholder&&r.placeholder.constructor!==String||(s=r.placeholder,o=i.currentItem[0].nodeName.toLowerCase(),r.placeholder={element:function(){var t=u("<"+o+">",i.document[0]);return i._addClass(t,"ui-sortable-placeholder",s||i.currentItem[0].className)._removeClass(t,"ui-sortable-helper"),"tbody"===o?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),u("<tr>",i.document[0]).appendTo(t)):"tr"===o?i._createTrPlaceholder(i.currentItem,t):"img"===o&&t.attr("src",i.currentItem.attr("src")),s||t.css("visibility","hidden"),t},update:function(t,e){s&&!r.forcePlaceholderSize||(e.height()&&(!r.forcePlaceholderSize||"tbody"!==o&&"tr"!==o)||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width())||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10))}}),i.placeholder=u(r.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),r.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(t,e){var i=this;t.children().each(function(){u("<td>&#160;</td>",i.document[0]).attr("colspan",u(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,i,s,o,r,n,h,a,l,c=null,p=null,f=this.containers.length-1;0<=f;f--)u.contains(this.currentItem[0],this.containers[f].element[0])||(this._intersectsWith(this.containers[f].containerCache)?c&&u.contains(this.containers[f].element[0],c.element[0])||(c=this.containers[f],p=f):this.containers[f].containerCache.over&&(this.containers[f]._trigger("out",t,this._uiHash(this)),this.containers[f].containerCache.over=0));if(c)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(i=1e4,s=null,o=(a=c.floating||this._isFloating(this.currentItem))?"left":"top",r=a?"width":"height",l=a?"pageX":"pageY",e=this.items.length-1;0<=e;e--)u.contains(this.containers[p].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(n=this.items[e].item.offset()[o],h=!1,t[l]-n>this.items[e][r]/2&&(h=!0),Math.abs(t[l]-n)<i)&&(i=Math.abs(t[l]-n),s=this.items[e],this.direction=h?"up":"down");(s||this.options.dropOnEmpty)&&(this.currentContainer===this.containers[p]?this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1):(s?this._rearrange(t,s,null,!0):this._rearrange(t,null,this.containers[p].element,!0),this._trigger("change",t,this._uiHash()),this.containers[p]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1))}},_createHelper:function(t){var e=this.options,t="function"==typeof e.helper?u(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem;return t.parents("body").length||this.appendTo[0].appendChild(t[0]),t[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),t[0].style.width&&!e.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!e.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&u.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&u.ui.ie?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t;return"relative"===this.cssPosition?{top:(t=this.currentItem.position()).top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}:{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(t=u(i.containment)[0],i=u(i.containment).offset(),e="hidden"!==u(t).css("overflow"),this.containment=[i.left+(parseInt(u(t).css("borderLeftWidth"),10)||0)+(parseInt(u(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(u(t).css("borderTopWidth"),10)||0)+(parseInt(u(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(e?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(u(t).css("borderLeftWidth"),10)||0)-(parseInt(u(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(e?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(u(t).css("borderTopWidth"),10)||0)-(parseInt(u(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,i="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&u.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(i[0].tagName);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:i.scrollTop())*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:i.scrollLeft())*t}},_generatePosition:function(t){var e=this.options,i=t.pageX,s=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&u.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(i=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(i=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3])&&(s=this.containment[3]+this.offset.click.top),e.grid)&&(t=this.originalPageY+Math.round((s-this.originalPageY)/e.grid[1])*e.grid[1],s=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-e.grid[1]:t+e.grid[1],t=this.originalPageX+Math.round((i-this.originalPageX)/e.grid[0])*e.grid[0],i=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-e.grid[0]:t+e.grid[0]),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:o.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:o.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay(function(){o===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function o(e,i,s){return function(t){s._trigger(e,t,i._uiHash(i))}}for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this===this.currentContainer||e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))),i=this.containers.length-1;0<=i;i--)e||s.push(o("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(o("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<s.length;i++)s[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===u.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||u([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}})}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/spinner.js b/wp-includes/js/jquery/ui/spinner.js
index a44a3fe..edb3714 100644
--- a/wp-includes/js/jquery/ui/spinner.js
+++ b/wp-includes/js/jquery/ui/spinner.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Spinner 1.13.2
- * http://jqueryui.com
+ * jQuery UI Spinner 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Spinner
//>>group: Widgets
//>>description: Displays buttons to easily input numbers via the keyboard or mouse.
-//>>docs: http://api.jqueryui.com/spinner/
-//>>demos: http://jqueryui.com/spinner/
+//>>docs: https://api.jqueryui.com/spinner/
+//>>demos: https://jqueryui.com/spinner/
//>>css.structure: ../../themes/base/core.css
//>>css.structure: ../../themes/base/spinner.css
//>>css.theme: ../../themes/base/theme.css
@@ -25,7 +25,10 @@
define( [
"jquery",
"./button",
- "./core"
+ "../version",
+ "../keycode",
+ "../safe-active-element",
+ "../widget"
], factory );
} else {
@@ -47,7 +50,7 @@ function spinnerModifier( fn ) {
}
$.widget( "ui.spinner", {
- version: "1.13.2",
+ version: "1.13.3",
defaultElement: "<input>",
widgetEventPrefix: "spin",
options: {
diff --git a/wp-includes/js/jquery/ui/spinner.min.js b/wp-includes/js/jquery/ui/spinner.min.js
index 29a1ba4..34e71ca 100644
--- a/wp-includes/js/jquery/ui/spinner.min.js
+++ b/wp-includes/js/jquery/ui/spinner.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Spinner 1.13.2
- * http://jqueryui.com
+ * jQuery UI Spinner 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./button","./core"],t):t(jQuery)}(function(u){"use strict";function i(i){return function(){var t=this.element.val();i.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}return u.widget("ui.spinner",{version:"1.13.2",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e=this._super(),s=this.element;return u.each(["min","max","step"],function(t,i){var n=s.attr(i);null!=n&&n.length&&(e[i]=n)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},mousewheel:function(t,i){var n=u.ui.safeActiveElement(this.document[0]);if(this.element[0]===n&&i){if(!this.spinning&&!this._start(t))return!1;this._spin((0<i?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(t){var i;function n(){this.element[0]!==u.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i}))}i=this.element[0]===u.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),n.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,n.call(this)}),!1!==this._start(t)&&this._repeat(null,u(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(u(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,u(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var i=this.options,n=u.ui.keyCode;switch(t.keyCode){case n.UP:return this._repeat(null,1,t),!0;case n.DOWN:return this._repeat(null,-1,t),!0;case n.PAGE_UP:return this._repeat(null,i.page,t),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,t),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(t,i,n){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,i,n)},t),this._spin(i*this.options.step,n)},_spin:function(t,i){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustValue(n+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",i,{value:n})||(this._value(n),this.counter++)},_increment:function(t){var i=this.options.incremental;return i?"function"==typeof i?i(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return t=null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var t=t.toString(),i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(t){var i=this.options,n=null!==i.min?i.min:0,e=t-n;return t=n+Math.round(e/i.step)*i.step,t=parseFloat(t.toFixed(this._precision())),null!==i.max&&t>i.max?i.max:null!==i.min&&t<i.min?i.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,i){var n;"culture"===t||"numberFormat"===t?(n=this._parse(this.element.val()),this.options[t]=i,this.element.val(this._format(n))):("max"!==t&&"min"!==t&&"step"!==t||"string"==typeof i&&(i=this._parse(i)),"icons"===t&&(n=this.buttons.first().find(".ui-icon"),this._removeClass(n,null,this.options.icons.up),this._addClass(n,null,i.up),n=this.buttons.last().find(".ui-icon"),this._removeClass(n,null,this.options.icons.down),this._addClass(n,null,i.down)),this._super(t,i))},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:i(function(t){this._super(t)}),_parse:function(t){return""===(t="string"==typeof t&&""!==t?window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t:t)||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,i){var n;""!==t&&null!==(n=this._parse(t))&&(i||(n=this._adjustValue(n)),t=this._format(n)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:i(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:i(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:i(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:i(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){if(!arguments.length)return this._parse(this.element.val());i(this._value).call(this,t)},widget:function(){return this.uiSpinner}}),!1!==u.uiBackCompat&&u.widget("ui.spinner",u.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),u.ui.spinner}); \ No newline at end of file
+!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./button","../version","../keycode","../safe-active-element","../widget"],t):t(jQuery)}(function(o){"use strict";function i(i){return function(){var t=this.element.val();i.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}return o.widget("ui.spinner",{version:"1.13.3",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e=this._super(),s=this.element;return o.each(["min","max","step"],function(t,i){var n=s.attr(i);null!=n&&n.length&&(e[i]=n)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},mousewheel:function(t,i){var n=o.ui.safeActiveElement(this.document[0]);if(this.element[0]===n&&i){if(!this.spinning&&!this._start(t))return!1;this._spin((0<i?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(t){var i;function n(){this.element[0]!==o.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i}))}i=this.element[0]===o.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),n.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,n.call(this)}),!1!==this._start(t)&&this._repeat(null,o(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(o(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,o(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var i=this.options,n=o.ui.keyCode;switch(t.keyCode){case n.UP:return this._repeat(null,1,t),!0;case n.DOWN:return this._repeat(null,-1,t),!0;case n.PAGE_UP:return this._repeat(null,i.page,t),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,t),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(t,i,n){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,i,n)},t),this._spin(i*this.options.step,n)},_spin:function(t,i){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustValue(n+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",i,{value:n})||(this._value(n),this.counter++)},_increment:function(t){var i=this.options.incremental;return i?"function"==typeof i?i(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return t=null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var t=t.toString(),i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(t){var i=this.options,n=null!==i.min?i.min:0,e=t-n;return t=n+Math.round(e/i.step)*i.step,t=parseFloat(t.toFixed(this._precision())),null!==i.max&&t>i.max?i.max:null!==i.min&&t<i.min?i.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,i){var n;"culture"===t||"numberFormat"===t?(n=this._parse(this.element.val()),this.options[t]=i,this.element.val(this._format(n))):("max"!==t&&"min"!==t&&"step"!==t||"string"==typeof i&&(i=this._parse(i)),"icons"===t&&(n=this.buttons.first().find(".ui-icon"),this._removeClass(n,null,this.options.icons.up),this._addClass(n,null,i.up),n=this.buttons.last().find(".ui-icon"),this._removeClass(n,null,this.options.icons.down),this._addClass(n,null,i.down)),this._super(t,i))},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:i(function(t){this._super(t)}),_parse:function(t){return""===(t="string"==typeof t&&""!==t?window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t:t)||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,i){var n;""!==t&&null!==(n=this._parse(t))&&(i||(n=this._adjustValue(n)),t=this._format(n)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:i(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:i(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:i(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:i(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){if(!arguments.length)return this._parse(this.element.val());i(this._value).call(this,t)},widget:function(){return this.uiSpinner}}),!1!==o.uiBackCompat&&o.widget("ui.spinner",o.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),o.ui.spinner}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/tabs.js b/wp-includes/js/jquery/ui/tabs.js
index 5231570..459d25f 100644
--- a/wp-includes/js/jquery/ui/tabs.js
+++ b/wp-includes/js/jquery/ui/tabs.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Tabs 1.13.2
- * http://jqueryui.com
+ * jQuery UI Tabs 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Tabs
//>>group: Widgets
//>>description: Transforms a set of container elements into a tab structure.
-//>>docs: http://api.jqueryui.com/tabs/
-//>>demos: http://jqueryui.com/tabs/
+//>>docs: https://api.jqueryui.com/tabs/
+//>>demos: https://jqueryui.com/tabs/
//>>css.structure: ../../themes/base/core.css
//>>css.structure: ../../themes/base/tabs.css
//>>css.theme: ../../themes/base/theme.css
@@ -24,7 +24,11 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./core"
+ "../keycode",
+ "../safe-active-element",
+ "../unique-id",
+ "../version",
+ "../widget"
], factory );
} else {
@@ -35,7 +39,7 @@
"use strict";
$.widget( "ui.tabs", {
- version: "1.13.2",
+ version: "1.13.3",
delay: 300,
options: {
active: null,
@@ -864,7 +868,7 @@ $.widget( "ui.tabs", {
.done( function( response, status, jqXHR ) {
// support: jQuery <1.8
- // http://bugs.jquery.com/ticket/11778
+ // https://bugs.jquery.com/ticket/11778
setTimeout( function() {
panel.html( response );
that._trigger( "load", event, eventData );
@@ -875,7 +879,7 @@ $.widget( "ui.tabs", {
.fail( function( jqXHR, status ) {
// support: jQuery <1.8
- // http://bugs.jquery.com/ticket/11778
+ // https://bugs.jquery.com/ticket/11778
setTimeout( function() {
complete( jqXHR, status );
}, 1 );
diff --git a/wp-includes/js/jquery/ui/tabs.min.js b/wp-includes/js/jquery/ui/tabs.min.js
index 054fabf..c2d43a2 100644
--- a/wp-includes/js/jquery/ui/tabs.min.js
+++ b/wp-includes/js/jquery/ui/tabs.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Tabs 1.13.2
- * http://jqueryui.com
+ * jQuery UI Tabs 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],t):t(jQuery)}(function(l){"use strict";var a;return l.widget("ui.tabs",{version:"1.13.2",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(a=/#.*$/,function(t){var e=t.href.replace(a,""),i=location.href.replace(a,"");try{e=decodeURIComponent(e)}catch(t){}try{i=decodeURIComponent(i)}catch(t){}return 1<t.hash.length&&e===i}),_create:function(){var e=this,t=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,t.collapsible),this._processTabs(),t.active=this._initialActive(),Array.isArray(t.disabled)&&(t.disabled=l.uniqueSort(t.disabled.concat(l.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(t.active):this.active=l(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var i=this.options.active,t=this.options.collapsible,a=location.hash.substring(1);return null===i&&(a&&this.tabs.each(function(t,e){if(l(e).attr("aria-controls")===a)return i=t,!1}),null!==(i=null===i?this.tabs.index(this.tabs.filter(".ui-tabs-active")):i)&&-1!==i||(i=!!this.tabs.length&&0)),!1!==i&&-1===(i=this.tabs.index(this.tabs.eq(i)))&&(i=!t&&0),i=!t&&!1===i&&this.anchors.length?0:i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):l()}},_tabKeydown:function(t){var e=l(l.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(e),a=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case l.ui.keyCode.RIGHT:case l.ui.keyCode.DOWN:i++;break;case l.ui.keyCode.UP:case l.ui.keyCode.LEFT:a=!1,i--;break;case l.ui.keyCode.END:i=this.anchors.length-1;break;case l.ui.keyCode.HOME:i=0;break;case l.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case l.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,a),t.ctrlKey||t.metaKey||(e.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===l.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===l.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===l.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){var i=this.tabs.length-1;for(;-1!==l.inArray(t=(t=i<t?0:t)<0?i:t,this.options.disabled);)t=e?t+1:t-1;return t},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){"active"===t?this._activate(e):(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=l.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!l.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=l()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=l()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var o=this,t=this.tabs,e=this.anchors,i=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){l(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){l(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return l("a",this)[0]}).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=l(),this.anchors.each(function(t,e){var i,a,s,n=l(e).uniqueId().attr("id"),h=l(e).closest("li"),r=h.attr("aria-controls");o._isLocal(e)?(s=(i=e.hash).substring(1),a=o.element.find(o._sanitizeSelector(i))):(s=h.attr("aria-controls")||l({}).uniqueId()[0].id,(a=o.element.find(i="#"+s)).length||(a=o._createPanel(s)).insertAfter(o.panels[t-1]||o.tablist),a.attr("aria-live","polite")),a.length&&(o.panels=o.panels.add(a)),r&&h.data("ui-tabs-aria-controls",r),h.attr({"aria-controls":s,"aria-labelledby":n}),a.attr("aria-labelledby",n)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),t&&(this._off(t.not(this.tabs)),this._off(e.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return l("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,i;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),i=0;e=this.tabs[i];i++)e=l(e),!0===t||-1!==l.inArray(i,t)?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&l.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,e=this.element.parent();"fill"===t?(i=e.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=l(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=l(this).outerHeight(!0)}),this.panels.each(function(){l(this).height(Math.max(0,i-l(this).innerHeight()+l(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,l(this).height("").height())}).height(i))},_eventHandler:function(t){var e=this.options,i=this.active,a=l(t.currentTarget).closest("li"),s=a[0]===i[0],n=s&&e.collapsible,h=n?l():this._getPanelForTab(a),r=i.length?this._getPanelForTab(i):l(),i={oldTab:i,oldPanel:r,newTab:n?l():a,newPanel:h};t.preventDefault(),a.hasClass("ui-state-disabled")||a.hasClass("ui-tabs-loading")||this.running||s&&!e.collapsible||!1===this._trigger("beforeActivate",t,i)||(e.active=!n&&this.tabs.index(a),this.active=s?l():a,this.xhr&&this.xhr.abort(),r.length||h.length||l.error("jQuery UI Tabs: Mismatching fragment identifier."),h.length&&this.load(this.tabs.index(a),t),this._toggle(t,i))},_toggle:function(t,e){var i=this,a=e.newPanel,s=e.oldPanel;function n(){i.running=!1,i._trigger("activate",t,e)}function h(){i._addClass(e.newTab.closest("li"),"ui-tabs-active","ui-state-active"),a.length&&i.options.show?i._show(a,i.options.show,n):(a.show(),n())}this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){i._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),h()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s.hide(),h()),s.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&s.length?e.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===l(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var t=this._findActive(t);t[0]!==this.active[0]&&(t=(t=t.length?t:this.active).find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:l.noop}))},_findActive:function(t){return!1===t?l():this.tabs.eq(t)},_getIndex:function(t){return t="string"==typeof t?this.anchors.index(this.anchors.filter("[href$='"+l.escapeSelector(t)+"']")):t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){l.data(this,"ui-tabs-destroy")?l(this).remove():l(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=l(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var t=this.options.disabled;!1!==t&&(t=void 0!==i&&(i=this._getIndex(i),Array.isArray(t)?l.map(t,function(t){return t!==i?t:null}):l.map(this.tabs,function(t,e){return e!==i?e:null})),this._setOptionDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(void 0===t)e=!0;else{if(t=this._getIndex(t),-1!==l.inArray(t,e))return;e=Array.isArray(e)?l.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,a){t=this._getIndex(t);function s(t,e){"abort"===e&&n.panels.stop(!1,!0),n._removeClass(i,"ui-tabs-loading"),h.removeAttr("aria-busy"),t===n.xhr&&delete n.xhr}var n=this,i=this.tabs.eq(t),t=i.find(".ui-tabs-anchor"),h=this._getPanelForTab(i),r={tab:i,panel:h};this._isLocal(t[0])||(this.xhr=l.ajax(this._ajaxSettings(t,a,r)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(i,"ui-tabs-loading"),h.attr("aria-busy","true"),this.xhr.done(function(t,e,i){setTimeout(function(){h.html(t),n._trigger("load",a,r),s(i,e)},1)}).fail(function(t,e){setTimeout(function(){s(t,e)},1)})))},_ajaxSettings:function(t,i,a){var s=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,e){return s._trigger("beforeLoad",i,l.extend({jqXHR:t,ajaxSettings:e},a))}}},_getPanelForTab:function(t){t=l(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+t))}}),!1!==l.uiBackCompat&&l.widget("ui.tabs",l.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),l.ui.tabs}); \ No newline at end of file
+!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","../keycode","../safe-active-element","../unique-id","../version","../widget"],t):t(jQuery)}(function(l){"use strict";var a;return l.widget("ui.tabs",{version:"1.13.3",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(a=/#.*$/,function(t){var e=t.href.replace(a,""),i=location.href.replace(a,"");try{e=decodeURIComponent(e)}catch(t){}try{i=decodeURIComponent(i)}catch(t){}return 1<t.hash.length&&e===i}),_create:function(){var e=this,t=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,t.collapsible),this._processTabs(),t.active=this._initialActive(),Array.isArray(t.disabled)&&(t.disabled=l.uniqueSort(t.disabled.concat(l.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(t.active):this.active=l(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var i=this.options.active,t=this.options.collapsible,a=location.hash.substring(1);return null===i&&(a&&this.tabs.each(function(t,e){if(l(e).attr("aria-controls")===a)return i=t,!1}),null!==(i=null===i?this.tabs.index(this.tabs.filter(".ui-tabs-active")):i)&&-1!==i||(i=!!this.tabs.length&&0)),!1!==i&&-1===(i=this.tabs.index(this.tabs.eq(i)))&&(i=!t&&0),i=!t&&!1===i&&this.anchors.length?0:i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):l()}},_tabKeydown:function(t){var e=l(l.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(e),a=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case l.ui.keyCode.RIGHT:case l.ui.keyCode.DOWN:i++;break;case l.ui.keyCode.UP:case l.ui.keyCode.LEFT:a=!1,i--;break;case l.ui.keyCode.END:i=this.anchors.length-1;break;case l.ui.keyCode.HOME:i=0;break;case l.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case l.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,a),t.ctrlKey||t.metaKey||(e.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===l.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===l.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===l.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){var i=this.tabs.length-1;for(;-1!==l.inArray(t=(t=i<t?0:t)<0?i:t,this.options.disabled);)t=e?t+1:t-1;return t},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){"active"===t?this._activate(e):(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=l.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!l.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=l()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=l()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var o=this,t=this.tabs,e=this.anchors,i=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){l(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){l(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return l("a",this)[0]}).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=l(),this.anchors.each(function(t,e){var i,a,s,n=l(e).uniqueId().attr("id"),h=l(e).closest("li"),r=h.attr("aria-controls");o._isLocal(e)?(s=(i=e.hash).substring(1),a=o.element.find(o._sanitizeSelector(i))):(s=h.attr("aria-controls")||l({}).uniqueId()[0].id,(a=o.element.find(i="#"+s)).length||(a=o._createPanel(s)).insertAfter(o.panels[t-1]||o.tablist),a.attr("aria-live","polite")),a.length&&(o.panels=o.panels.add(a)),r&&h.data("ui-tabs-aria-controls",r),h.attr({"aria-controls":s,"aria-labelledby":n}),a.attr("aria-labelledby",n)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),t&&(this._off(t.not(this.tabs)),this._off(e.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return l("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,i;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),i=0;e=this.tabs[i];i++)e=l(e),!0===t||-1!==l.inArray(i,t)?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&l.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,e=this.element.parent();"fill"===t?(i=e.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=l(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=l(this).outerHeight(!0)}),this.panels.each(function(){l(this).height(Math.max(0,i-l(this).innerHeight()+l(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,l(this).height("").height())}).height(i))},_eventHandler:function(t){var e=this.options,i=this.active,a=l(t.currentTarget).closest("li"),s=a[0]===i[0],n=s&&e.collapsible,h=n?l():this._getPanelForTab(a),r=i.length?this._getPanelForTab(i):l(),i={oldTab:i,oldPanel:r,newTab:n?l():a,newPanel:h};t.preventDefault(),a.hasClass("ui-state-disabled")||a.hasClass("ui-tabs-loading")||this.running||s&&!e.collapsible||!1===this._trigger("beforeActivate",t,i)||(e.active=!n&&this.tabs.index(a),this.active=s?l():a,this.xhr&&this.xhr.abort(),r.length||h.length||l.error("jQuery UI Tabs: Mismatching fragment identifier."),h.length&&this.load(this.tabs.index(a),t),this._toggle(t,i))},_toggle:function(t,e){var i=this,a=e.newPanel,s=e.oldPanel;function n(){i.running=!1,i._trigger("activate",t,e)}function h(){i._addClass(e.newTab.closest("li"),"ui-tabs-active","ui-state-active"),a.length&&i.options.show?i._show(a,i.options.show,n):(a.show(),n())}this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){i._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),h()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s.hide(),h()),s.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&s.length?e.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===l(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var t=this._findActive(t);t[0]!==this.active[0]&&(t=(t=t.length?t:this.active).find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:l.noop}))},_findActive:function(t){return!1===t?l():this.tabs.eq(t)},_getIndex:function(t){return t="string"==typeof t?this.anchors.index(this.anchors.filter("[href$='"+l.escapeSelector(t)+"']")):t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){l.data(this,"ui-tabs-destroy")?l(this).remove():l(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=l(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var t=this.options.disabled;!1!==t&&(t=void 0!==i&&(i=this._getIndex(i),Array.isArray(t)?l.map(t,function(t){return t!==i?t:null}):l.map(this.tabs,function(t,e){return e!==i?e:null})),this._setOptionDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(void 0===t)e=!0;else{if(t=this._getIndex(t),-1!==l.inArray(t,e))return;e=Array.isArray(e)?l.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,a){t=this._getIndex(t);function s(t,e){"abort"===e&&n.panels.stop(!1,!0),n._removeClass(i,"ui-tabs-loading"),h.removeAttr("aria-busy"),t===n.xhr&&delete n.xhr}var n=this,i=this.tabs.eq(t),t=i.find(".ui-tabs-anchor"),h=this._getPanelForTab(i),r={tab:i,panel:h};this._isLocal(t[0])||(this.xhr=l.ajax(this._ajaxSettings(t,a,r)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(i,"ui-tabs-loading"),h.attr("aria-busy","true"),this.xhr.done(function(t,e,i){setTimeout(function(){h.html(t),n._trigger("load",a,r),s(i,e)},1)}).fail(function(t,e){setTimeout(function(){s(t,e)},1)})))},_ajaxSettings:function(t,i,a){var s=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,e){return s._trigger("beforeLoad",i,l.extend({jqXHR:t,ajaxSettings:e},a))}}},_getPanelForTab:function(t){t=l(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+t))}}),!1!==l.uiBackCompat&&l.widget("ui.tabs",l.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),l.ui.tabs}); \ No newline at end of file
diff --git a/wp-includes/js/jquery/ui/tooltip.js b/wp-includes/js/jquery/ui/tooltip.js
index 94da57b..e7c009d 100644
--- a/wp-includes/js/jquery/ui/tooltip.js
+++ b/wp-includes/js/jquery/ui/tooltip.js
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Tooltip 1.13.2
- * http://jqueryui.com
+ * jQuery UI Tooltip 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Tooltip
//>>group: Widgets
//>>description: Shows additional information for any element on hover or focus.
-//>>docs: http://api.jqueryui.com/tooltip/
-//>>demos: http://jqueryui.com/tooltip/
+//>>docs: https://api.jqueryui.com/tooltip/
+//>>demos: https://jqueryui.com/tooltip/
//>>css.structure: ../../themes/base/core.css
//>>css.structure: ../../themes/base/tooltip.css
//>>css.theme: ../../themes/base/theme.css
@@ -24,7 +24,11 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
- "./core"
+ "../keycode",
+ "../position",
+ "../unique-id",
+ "../version",
+ "../widget"
], factory );
} else {
@@ -35,7 +39,7 @@
"use strict";
$.widget( "ui.tooltip", {
- version: "1.13.2",
+ version: "1.13.3",
options: {
classes: {
"ui-tooltip": "ui-corner-all ui-widget-shadow"
diff --git a/wp-includes/js/jquery/ui/tooltip.min.js b/wp-includes/js/jquery/ui/tooltip.min.js
index 9ff2b56..2a80527 100644
--- a/wp-includes/js/jquery/ui/tooltip.min.js
+++ b/wp-includes/js/jquery/ui/tooltip.min.js
@@ -1,9 +1,9 @@
/*!
- * jQuery UI Tooltip 1.13.2
- * http://jqueryui.com
+ * jQuery UI Tooltip 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
-!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],t):t(jQuery)}(function(r){"use strict";return r.widget("ui.tooltip",{version:"1.13.2",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=r(this).attr("title");return r("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,i){var e=(t.attr("aria-describedby")||"").split(/\s+/);e.push(i),t.data("ui-tooltip-id",i).attr("aria-describedby",String.prototype.trim.call(e.join(" ")))},_removeDescribedBy:function(t){var i=t.data("ui-tooltip-id"),e=(t.attr("aria-describedby")||"").split(/\s+/),i=r.inArray(i,e);-1!==i&&e.splice(i,1),t.removeData("ui-tooltip-id"),(e=String.prototype.trim.call(e.join(" ")))?t.attr("aria-describedby",e):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=r("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=r([])},_setOption:function(t,i){var e=this;this._super(t,i),"content"===t&&r.each(this.tooltips,function(t,i){e._updateContent(i.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var o=this;r.each(this.tooltips,function(t,i){var e=r.Event("blur");e.target=e.currentTarget=i.element[0],o.close(e,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=r(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=r(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=r([])},open:function(t){var e=this,i=r(t?t.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&i.parents().each(function(){var t,i=r(this);i.data("ui-tooltip-open")&&((t=r.Event("blur")).target=t.currentTarget=this,e.close(t,!0)),i.attr("title")&&(i.uniqueId(),e.parents[this.id]={element:this,title:i.attr("title")},i.attr("title",""))}),this._registerCloseHandlers(t,i),this._updateContent(i,t))},_updateContent:function(i,e){var t=this.options.content,o=this,n=e?e.type:null;if("string"==typeof t||t.nodeType||t.jquery)return this._open(e,i,t);(t=t.call(i[0],function(t){o._delay(function(){i.data("ui-tooltip-open")&&(e&&(e.type=n),this._open(e,i,t))})}))&&this._open(e,i,t)},_open:function(t,i,e){var o,n,s,l=r.extend({},this.options.position);function a(t){l.of=t,o.is(":hidden")||o.position(l)}e&&((s=this._find(i))?s.tooltip.find(".ui-tooltip-content").html(e):(i.is("[title]")&&(t&&"mouseover"===t.type?i.attr("title",""):i.removeAttr("title")),s=this._tooltip(i),o=s.tooltip,this._addDescribedBy(i,o.attr("id")),o.find(".ui-tooltip-content").html(e),this.liveRegion.children().hide(),(s=r("<div>").html(o.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),s.removeAttr("id").find("[id]").removeAttr("id"),s.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:a}),a(t)):o.position(r.extend({of:i},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(n=this.delayedShow=setInterval(function(){o.is(":visible")&&(a(l.of),clearInterval(n))},13)),this._trigger("open",t,{tooltip:o})))},_registerCloseHandlers:function(t,i){var e={keyup:function(t){t.keyCode===r.ui.keyCode.ESCAPE&&((t=r.Event(t)).currentTarget=i[0],this.close(t,!0))}};i[0]!==this.element[0]&&(e.remove=function(){var t=this._find(i);t&&this._removeTooltip(t.tooltip)}),t&&"mouseover"!==t.type||(e.mouseleave="close"),t&&"focusin"!==t.type||(e.focusout="close"),this._on(!0,i,e)},close:function(t){var i,e=this,o=r(t?t.currentTarget:this.element),n=this._find(o);n?(i=n.tooltip,n.closing||(clearInterval(this.delayedShow),o.data("ui-tooltip-title")&&!o.attr("title")&&o.attr("title",o.data("ui-tooltip-title")),this._removeDescribedBy(o),n.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,function(){e._removeTooltip(r(this))}),o.removeData("ui-tooltip-open"),this._off(o,"mouseleave focusout keyup"),o[0]!==this.element[0]&&this._off(o,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&r.each(this.parents,function(t,i){r(i.element).attr("title",i.title),delete e.parents[t]}),n.closing=!0,this._trigger("close",t,{tooltip:i}),n.hiding)||(n.closing=!1)):o.removeData("ui-tooltip-open")},_tooltip:function(t){var i=r("<div>").attr("role","tooltip"),e=r("<div>").appendTo(i),o=i.uniqueId().attr("id");return this._addClass(e,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(t)),this.tooltips[o]={element:t,tooltip:i}},_find:function(t){t=t.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(t){clearInterval(this.delayedShow),t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){t=t.closest(".ui-front, dialog");return t=t.length?t:this.document[0].body},_destroy:function(){var o=this;r.each(this.tooltips,function(t,i){var e=r.Event("blur"),i=i.element;e.target=e.currentTarget=i[0],o.close(e,!0),r("#"+t).remove(),i.data("ui-tooltip-title")&&(i.attr("title")||i.attr("title",i.data("ui-tooltip-title")),i.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==r.uiBackCompat&&r.widget("ui.tooltip",r.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),r.ui.tooltip}); \ No newline at end of file
+!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","../keycode","../position","../unique-id","../version","../widget"],t):t(jQuery)}(function(r){"use strict";return r.widget("ui.tooltip",{version:"1.13.3",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=r(this).attr("title");return r("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,i){var e=(t.attr("aria-describedby")||"").split(/\s+/);e.push(i),t.data("ui-tooltip-id",i).attr("aria-describedby",String.prototype.trim.call(e.join(" ")))},_removeDescribedBy:function(t){var i=t.data("ui-tooltip-id"),e=(t.attr("aria-describedby")||"").split(/\s+/),i=r.inArray(i,e);-1!==i&&e.splice(i,1),t.removeData("ui-tooltip-id"),(e=String.prototype.trim.call(e.join(" ")))?t.attr("aria-describedby",e):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=r("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=r([])},_setOption:function(t,i){var e=this;this._super(t,i),"content"===t&&r.each(this.tooltips,function(t,i){e._updateContent(i.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var o=this;r.each(this.tooltips,function(t,i){var e=r.Event("blur");e.target=e.currentTarget=i.element[0],o.close(e,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=r(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=r(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=r([])},open:function(t){var e=this,i=r(t?t.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&i.parents().each(function(){var t,i=r(this);i.data("ui-tooltip-open")&&((t=r.Event("blur")).target=t.currentTarget=this,e.close(t,!0)),i.attr("title")&&(i.uniqueId(),e.parents[this.id]={element:this,title:i.attr("title")},i.attr("title",""))}),this._registerCloseHandlers(t,i),this._updateContent(i,t))},_updateContent:function(i,e){var t=this.options.content,o=this,n=e?e.type:null;if("string"==typeof t||t.nodeType||t.jquery)return this._open(e,i,t);(t=t.call(i[0],function(t){o._delay(function(){i.data("ui-tooltip-open")&&(e&&(e.type=n),this._open(e,i,t))})}))&&this._open(e,i,t)},_open:function(t,i,e){var o,n,s,l=r.extend({},this.options.position);function a(t){l.of=t,o.is(":hidden")||o.position(l)}e&&((s=this._find(i))?s.tooltip.find(".ui-tooltip-content").html(e):(i.is("[title]")&&(t&&"mouseover"===t.type?i.attr("title",""):i.removeAttr("title")),s=this._tooltip(i),o=s.tooltip,this._addDescribedBy(i,o.attr("id")),o.find(".ui-tooltip-content").html(e),this.liveRegion.children().hide(),(s=r("<div>").html(o.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),s.removeAttr("id").find("[id]").removeAttr("id"),s.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:a}),a(t)):o.position(r.extend({of:i},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(n=this.delayedShow=setInterval(function(){o.is(":visible")&&(a(l.of),clearInterval(n))},13)),this._trigger("open",t,{tooltip:o})))},_registerCloseHandlers:function(t,i){var e={keyup:function(t){t.keyCode===r.ui.keyCode.ESCAPE&&((t=r.Event(t)).currentTarget=i[0],this.close(t,!0))}};i[0]!==this.element[0]&&(e.remove=function(){var t=this._find(i);t&&this._removeTooltip(t.tooltip)}),t&&"mouseover"!==t.type||(e.mouseleave="close"),t&&"focusin"!==t.type||(e.focusout="close"),this._on(!0,i,e)},close:function(t){var i,e=this,o=r(t?t.currentTarget:this.element),n=this._find(o);n?(i=n.tooltip,n.closing||(clearInterval(this.delayedShow),o.data("ui-tooltip-title")&&!o.attr("title")&&o.attr("title",o.data("ui-tooltip-title")),this._removeDescribedBy(o),n.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,function(){e._removeTooltip(r(this))}),o.removeData("ui-tooltip-open"),this._off(o,"mouseleave focusout keyup"),o[0]!==this.element[0]&&this._off(o,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&r.each(this.parents,function(t,i){r(i.element).attr("title",i.title),delete e.parents[t]}),n.closing=!0,this._trigger("close",t,{tooltip:i}),n.hiding)||(n.closing=!1)):o.removeData("ui-tooltip-open")},_tooltip:function(t){var i=r("<div>").attr("role","tooltip"),e=r("<div>").appendTo(i),o=i.uniqueId().attr("id");return this._addClass(e,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(t)),this.tooltips[o]={element:t,tooltip:i}},_find:function(t){t=t.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(t){clearInterval(this.delayedShow),t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){t=t.closest(".ui-front, dialog");return t=t.length?t:this.document[0].body},_destroy:function(){var o=this;r.each(this.tooltips,function(t,i){var e=r.Event("blur"),i=i.element;e.target=e.currentTarget=i[0],o.close(e,!0),r("#"+t).remove(),i.data("ui-tooltip-title")&&(i.attr("title")||i.attr("title",i.data("ui-tooltip-title")),i.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==r.uiBackCompat&&r.widget("ui.tooltip",r.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),r.ui.tooltip}); \ No newline at end of file
diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js
index 904a372..d54a782 100644
--- a/wp-includes/js/media-views.js
+++ b/wp-includes/js/media-views.js
@@ -4708,7 +4708,7 @@ AttachmentsBrowser = View.extend(/** @lends wp.media.view.AttachmentsBrowser.pro
}
if ( this.options.search ) {
- // Search is an input, a visually hidden label element needs to be rendered before.
+ // Search is an input, a label element needs to be rendered before.
this.toolbar.set( 'searchLabel', new wp.media.view.Label({
value: l10n.searchLabel,
className: 'media-search-input-label',
@@ -9333,7 +9333,7 @@ Toolbar = View.extend(/** @lends wp.media.view.Toolbar.prototype */{
}
},
/**
- * @return {wp.media.view.Toolbar} Returns itsef to allow chaining
+ * @return {wp.media.view.Toolbar} Returns itself to allow chaining
*/
dispose: function() {
if ( this.selection ) {
diff --git a/wp-includes/js/plupload/handlers.js b/wp-includes/js/plupload/handlers.js
index 71e248f..c46aafc 100644
--- a/wp-includes/js/plupload/handlers.js
+++ b/wp-includes/js/plupload/handlers.js
@@ -16,8 +16,8 @@ function fileQueued( fileObj ) {
jQuery( '<div class="media-item">' )
.attr( 'id', 'media-item-' + fileObj.id )
.addClass( 'child-of-' + postid )
- .append( '<div class="progress"><div class="percent">0%</div><div class="bar"></div></div>',
- jQuery( '<div class="filename original">' ).text( ' ' + fileObj.name ) )
+ .append( jQuery( '<div class="filename original">' ).text( ' ' + fileObj.name ),
+ '<div class="progress"><div class="percent">0%</div><div class="bar"></div></div>' )
.appendTo( jQuery( '#media-items' ) );
// Disable submit.
diff --git a/wp-includes/js/plupload/handlers.min.js b/wp-includes/js/plupload/handlers.min.js
index 0e2dfca..df83b63 100644
--- a/wp-includes/js/plupload/handlers.min.js
+++ b/wp-includes/js/plupload/handlers.min.js
@@ -1 +1 @@
-var uploader,uploader_init,topWin=window.dialogArguments||opener||parent||top;function fileQueued(e){jQuery(".media-blank").remove();var a=jQuery("#media-items").children(),r=post_id||0;1==a.length&&a.removeClass("open").find(".slidetoggle").slideUp(200),jQuery('<div class="media-item">').attr("id","media-item-"+e.id).addClass("child-of-"+r).append('<div class="progress"><div class="percent">0%</div><div class="bar"></div></div>',jQuery('<div class="filename original">').text(" "+e.name)).appendTo(jQuery("#media-items")),jQuery("#insert-gallery").prop("disabled",!0)}function uploadStart(){try{void 0!==topWin.tb_remove&&topWin.jQuery("#TB_overlay").unbind("click",topWin.tb_remove)}catch(e){}return!0}function uploadProgress(e,a){var r=jQuery("#media-item-"+a.id);jQuery(".bar",r).width(200*a.loaded/a.size),jQuery(".percent",r).html(a.percent+"%")}function fileUploading(e,a){var r=104857600;r<parseInt(e.settings.max_file_size,10)&&a.size>r&&setTimeout(function(){a.status<3&&0===a.loaded&&(wpFileError(a,pluploadL10n.big_upload_failed.replace("%1$s",'<a class="uploader-html" href="#">').replace("%2$s","</a>")),e.stop(),e.removeFile(a),e.start())},1e4)}function updateMediaForm(){var e=jQuery("#media-items").children();1==e.length?(e.addClass("open").find(".slidetoggle").show(),jQuery(".insert-gallery").hide()):1<e.length&&(e.removeClass("open"),jQuery(".insert-gallery").show()),0<e.not(".media-blank").length?jQuery(".savebutton").show():jQuery(".savebutton").hide()}function uploadSuccess(e,a){var r=jQuery("#media-item-"+e.id);"string"==typeof a&&(a=a.replace(/^<pre>(\d+)<\/pre>$/,"$1"),/media-upload-error|error-div/.test(a))?r.html(a):(r.find(".percent").html(pluploadL10n.crunching),prepareMediaItem(e,a),updateMediaForm(),post_id&&r.hasClass("child-of-"+post_id)&&jQuery("#attachments-count").text(+jQuery("#attachments-count").text()+1))}function setResize(e){e?window.resize_width&&window.resize_height?uploader.settings.resize={enabled:!0,width:window.resize_width,height:window.resize_height,quality:100}:uploader.settings.multipart_params.image_resize=!0:delete uploader.settings.multipart_params.image_resize}function prepareMediaItem(e,a){var r="undefined"==typeof shortform?1:2,i=jQuery("#media-item-"+e.id);2==r&&2<shortform&&(r=shortform);try{void 0!==topWin.tb_remove&&topWin.jQuery("#TB_overlay").click(topWin.tb_remove)}catch(e){}isNaN(a)||!a?(i.append(a),prepareMediaItemInit(e)):i.load("async-upload.php",{attachment_id:a,fetch:r},function(){prepareMediaItemInit(e),updateMediaForm()})}function prepareMediaItemInit(r){var e=jQuery("#media-item-"+r.id);jQuery(".thumbnail",e).clone().attr("class","pinkynail toggle").prependTo(e),jQuery(".filename.original",e).replaceWith(jQuery(".filename.new",e)),jQuery("a.delete",e).on("click",function(){return jQuery.ajax({url:ajaxurl,type:"post",success:deleteSuccess,error:deleteError,id:r.id,data:{id:this.id.replace(/[^0-9]/g,""),action:"trash-post",_ajax_nonce:this.href.replace(/^.*wpnonce=/,"")}}),!1}),jQuery("a.undo",e).on("click",function(){return jQuery.ajax({url:ajaxurl,type:"post",id:r.id,data:{id:this.id.replace(/[^0-9]/g,""),action:"untrash-post",_ajax_nonce:this.href.replace(/^.*wpnonce=/,"")},success:function(){var e,a=jQuery("#media-item-"+r.id);(e=jQuery("#type-of-"+r.id).val())&&jQuery("#"+e+"-counter").text(+jQuery("#"+e+"-counter").text()+1),post_id&&a.hasClass("child-of-"+post_id)&&jQuery("#attachments-count").text(+jQuery("#attachments-count").text()+1),jQuery(".filename .trashnotice",a).remove(),jQuery(".filename .title",a).css("font-weight","normal"),jQuery("a.undo",a).addClass("hidden"),jQuery(".menu_order_input",a).show(),a.css({backgroundColor:"#ceb"}).animate({backgroundColor:"#fff"},{queue:!1,duration:500,complete:function(){jQuery(this).css({backgroundColor:""})}}).removeClass("undo")}}),!1}),jQuery("#media-item-"+r.id+".startopen").removeClass("startopen").addClass("open").find("slidetoggle").fadeIn()}function wpQueueError(e){jQuery("#media-upload-error").show().html('<div class="error"><p>'+e+"</p></div>")}function wpFileError(e,a){itemAjaxError(e.id,a)}function itemAjaxError(e,a){var r=jQuery("#media-item-"+e),i=r.find(".filename").text();r.data("last-err")!=e&&r.html('<div class="error-div"><a class="dismiss" href="#">'+pluploadL10n.dismiss+"</a><strong>"+pluploadL10n.error_uploading.replace("%s",jQuery.trim(i))+"</strong> "+a+"</div>").data("last-err",e)}function deleteSuccess(e){var a;return"-1"==e?itemAjaxError(this.id,"You do not have permission. Has your session expired?"):"0"==e?itemAjaxError(this.id,"Could not be deleted. Has it been deleted already?"):(e=this.id,a=jQuery("#media-item-"+e),(e=jQuery("#type-of-"+e).val())&&jQuery("#"+e+"-counter").text(jQuery("#"+e+"-counter").text()-1),post_id&&a.hasClass("child-of-"+post_id)&&jQuery("#attachments-count").text(jQuery("#attachments-count").text()-1),1==jQuery("form.type-form #media-items").children().length&&0<jQuery(".hidden","#media-items").length&&(jQuery(".toggle").toggle(),jQuery(".slidetoggle").slideUp(200).siblings().removeClass("hidden")),jQuery(".toggle",a).toggle(),jQuery(".slidetoggle",a).slideUp(200).siblings().removeClass("hidden"),a.css({backgroundColor:"#faa"}).animate({backgroundColor:"#f4f4f4"},{queue:!1,duration:500}).addClass("undo"),jQuery(".filename:empty",a).remove(),jQuery(".filename .title",a).css("font-weight","bold"),jQuery(".filename",a).append('<span class="trashnotice"> '+pluploadL10n.deleted+" </span>").siblings("a.toggle").hide(),jQuery(".filename",a).append(jQuery("a.undo",a).removeClass("hidden")),void jQuery(".menu_order_input",a).hide())}function deleteError(){}function uploadComplete(){jQuery("#insert-gallery").prop("disabled",!1)}function switchUploader(e){e?(deleteUserSetting("uploader"),jQuery(".media-upload-form").removeClass("html-uploader"),"object"==typeof uploader&&uploader.refresh()):(setUserSetting("uploader","1"),jQuery(".media-upload-form").addClass("html-uploader"))}function uploadError(e,a,r,i){var t=104857600;switch(a){case plupload.FAILED:wpFileError(e,pluploadL10n.upload_failed);break;case plupload.FILE_EXTENSION_ERROR:wpFileExtensionError(i,e,pluploadL10n.invalid_filetype);break;case plupload.FILE_SIZE_ERROR:uploadSizeError(i,e);break;case plupload.IMAGE_FORMAT_ERROR:wpFileError(e,pluploadL10n.not_an_image);break;case plupload.IMAGE_MEMORY_ERROR:wpFileError(e,pluploadL10n.image_memory_exceeded);break;case plupload.IMAGE_DIMENSIONS_ERROR:wpFileError(e,pluploadL10n.image_dimensions_exceeded);break;case plupload.GENERIC_ERROR:wpQueueError(pluploadL10n.upload_failed);break;case plupload.IO_ERROR:t<parseInt(i.settings.filters.max_file_size,10)&&e.size>t?wpFileError(e,pluploadL10n.big_upload_failed.replace("%1$s",'<a class="uploader-html" href="#">').replace("%2$s","</a>")):wpQueueError(pluploadL10n.io_error);break;case plupload.HTTP_ERROR:wpQueueError(pluploadL10n.http_error);break;case plupload.INIT_ERROR:jQuery(".media-upload-form").addClass("html-uploader");break;case plupload.SECURITY_ERROR:wpQueueError(pluploadL10n.security_error);break;default:wpFileError(e,pluploadL10n.default_error)}}function uploadSizeError(e,a){var r=pluploadL10n.file_exceeds_size_limit.replace("%s",a.name),r=jQuery("<div />").attr({id:"media-item-"+a.id,class:"media-item error"}).append(jQuery("<p />").text(r));jQuery("#media-items").append(r),e.removeFile(a)}function wpFileExtensionError(e,a,r){jQuery("#media-items").append('<div id="media-item-'+a.id+'" class="media-item error"><p>'+r+"</p></div>"),e.removeFile(a)}function copyAttachmentUploadURLClipboard(){var i;new ClipboardJS(".copy-attachment-url").on("success",function(e){var a=jQuery(e.trigger),r=jQuery(".success",a.closest(".copy-to-clipboard-container"));e.clearSelection(),clearTimeout(i),r.removeClass("hidden"),i=setTimeout(function(){r.addClass("hidden")},3e3),wp.a11y.speak(pluploadL10n.file_url_copied)})}jQuery(document).ready(function(o){copyAttachmentUploadURLClipboard();var d,l={};o(".media-upload-form").on("click.uploader",function(e){var a,r=o(e.target);r.is('input[type="radio"]')?(a=r.closest("tr")).hasClass("align")?setUserSetting("align",r.val()):a.hasClass("image-size")&&setUserSetting("imgsize",r.val()):r.is("button.button")?(a=(a=e.target.className||"").match(/url([^ '"]+)/))&&a[1]&&(setUserSetting("urlbutton",a[1]),r.siblings(".urlfield").val(r.data("link-url"))):r.is("a.dismiss")?r.parents(".media-item").fadeOut(200,function(){o(this).remove()}):r.is(".upload-flash-bypass a")||r.is("a.uploader-html")?(o("#media-items, p.submit, span.big-file-warning").css("display","none"),switchUploader(0),e.preventDefault()):r.is(".upload-html-bypass a")?(o("#media-items, p.submit, span.big-file-warning").css("display",""),switchUploader(1),e.preventDefault()):r.is("a.describe-toggle-on")?(r.parent().addClass("open"),r.siblings(".slidetoggle").fadeIn(250,function(){var e=o(window).scrollTop(),a=o(window).height(),r=o(this).offset().top,i=o(this).height();a&&r&&i&&(a=e+a)<(i=r+i)&&(i-a<r-e?window.scrollBy(0,i-a+10):window.scrollBy(0,r-e-40))}),e.preventDefault()):r.is("a.describe-toggle-off")&&(r.siblings(".slidetoggle").fadeOut(250,function(){r.parent().removeClass("open")}),e.preventDefault())}),d=function(a,r){var e,i,t=r.file;r&&r.responseHeaders&&(i=r.responseHeaders.match(/x-wp-upload-attachment-id:\s*(\d+)/i))&&i[1]?(i=i[1],(e=l[t.id])&&4<e?(o.ajax({type:"post",url:ajaxurl,dataType:"json",data:{action:"media-create-image-subsizes",_wpnonce:wpUploaderInit.multipart_params._wpnonce,attachment_id:i,_wp_upload_failed_cleanup:!0}}),r.message&&(r.status<500||600<=r.status)?wpQueueError(r.message):wpQueueError(pluploadL10n.http_error_image)):(l[t.id]=e?++e:1,o.ajax({type:"post",url:ajaxurl,dataType:"json",data:{action:"media-create-image-subsizes",_wpnonce:wpUploaderInit.multipart_params._wpnonce,attachment_id:i,_legacy_support:"true"}}).done(function(e){var a;e.success?uploadSuccess(t,e.data.id):wpQueueError((a=e.data&&e.data.message?e.data.message:a)||pluploadL10n.http_error_image)}).fail(function(e){500<=e.status&&e.status<600?d(a,r):wpQueueError(pluploadL10n.http_error_image)}))):wpQueueError(pluploadL10n.http_error_image)},uploader_init=function(){uploader=new plupload.Uploader(wpUploaderInit),o("#image_resize").on("change",function(){var e=o(this).prop("checked");setResize(e),e?setUserSetting("upload_resize","1"):deleteUserSetting("upload_resize")}),uploader.bind("Init",function(e){var a=o("#plupload-upload-ui");setResize(getUserSetting("upload_resize",!1)),e.features.dragdrop&&!o(document.body).hasClass("mobile")?(a.addClass("drag-drop"),o("#drag-drop-area").on("dragover.wp-uploader",function(){a.addClass("drag-over")}).on("dragleave.wp-uploader, drop.wp-uploader",function(){a.removeClass("drag-over")})):(a.removeClass("drag-drop"),o("#drag-drop-area").off(".wp-uploader")),"html4"===e.runtime&&o(".upload-flash-bypass").hide()}),uploader.bind("postinit",function(e){e.refresh()}),uploader.init(),uploader.bind("FilesAdded",function(a,e){o("#media-upload-error").empty(),uploadStart(),plupload.each(e,function(e){if("image/heic"===e.type&&a.settings.heic_upload_error)wpQueueError(pluploadL10n.unsupported_image);else{if("image/webp"===e.type&&a.settings.webp_upload_error)return wpQueueError(pluploadL10n.noneditable_image),void a.removeFile(e);if("image/avif"===e.type&&a.settings.avif_upload_error)return wpQueueError(pluploadL10n.noneditable_image),void a.removeFile(e)}fileQueued(e)}),a.refresh(),a.start()}),uploader.bind("UploadFile",function(e,a){fileUploading(e,a)}),uploader.bind("UploadProgress",function(e,a){uploadProgress(e,a)}),uploader.bind("Error",function(e,a){var r=a.file&&a.file.type&&0===a.file.type.indexOf("image/"),i=a&&a.status;r&&500<=i&&i<600?d(e,a):(uploadError(a.file,a.code,a.message,e),e.refresh())}),uploader.bind("FileUploaded",function(e,a,r){uploadSuccess(a,r.response)}),uploader.bind("UploadComplete",function(){uploadComplete()})},"object"==typeof wpUploaderInit&&uploader_init()}); \ No newline at end of file
+var uploader,uploader_init,topWin=window.dialogArguments||opener||parent||top;function fileQueued(e){jQuery(".media-blank").remove();var a=jQuery("#media-items").children(),r=post_id||0;1==a.length&&a.removeClass("open").find(".slidetoggle").slideUp(200),jQuery('<div class="media-item">').attr("id","media-item-"+e.id).addClass("child-of-"+r).append(jQuery('<div class="filename original">').text(" "+e.name),'<div class="progress"><div class="percent">0%</div><div class="bar"></div></div>').appendTo(jQuery("#media-items")),jQuery("#insert-gallery").prop("disabled",!0)}function uploadStart(){try{void 0!==topWin.tb_remove&&topWin.jQuery("#TB_overlay").unbind("click",topWin.tb_remove)}catch(e){}return!0}function uploadProgress(e,a){var r=jQuery("#media-item-"+a.id);jQuery(".bar",r).width(200*a.loaded/a.size),jQuery(".percent",r).html(a.percent+"%")}function fileUploading(e,a){var r=104857600;r<parseInt(e.settings.max_file_size,10)&&a.size>r&&setTimeout(function(){a.status<3&&0===a.loaded&&(wpFileError(a,pluploadL10n.big_upload_failed.replace("%1$s",'<a class="uploader-html" href="#">').replace("%2$s","</a>")),e.stop(),e.removeFile(a),e.start())},1e4)}function updateMediaForm(){var e=jQuery("#media-items").children();1==e.length?(e.addClass("open").find(".slidetoggle").show(),jQuery(".insert-gallery").hide()):1<e.length&&(e.removeClass("open"),jQuery(".insert-gallery").show()),0<e.not(".media-blank").length?jQuery(".savebutton").show():jQuery(".savebutton").hide()}function uploadSuccess(e,a){var r=jQuery("#media-item-"+e.id);"string"==typeof a&&(a=a.replace(/^<pre>(\d+)<\/pre>$/,"$1"),/media-upload-error|error-div/.test(a))?r.html(a):(r.find(".percent").html(pluploadL10n.crunching),prepareMediaItem(e,a),updateMediaForm(),post_id&&r.hasClass("child-of-"+post_id)&&jQuery("#attachments-count").text(+jQuery("#attachments-count").text()+1))}function setResize(e){e?window.resize_width&&window.resize_height?uploader.settings.resize={enabled:!0,width:window.resize_width,height:window.resize_height,quality:100}:uploader.settings.multipart_params.image_resize=!0:delete uploader.settings.multipart_params.image_resize}function prepareMediaItem(e,a){var r="undefined"==typeof shortform?1:2,i=jQuery("#media-item-"+e.id);2==r&&2<shortform&&(r=shortform);try{void 0!==topWin.tb_remove&&topWin.jQuery("#TB_overlay").click(topWin.tb_remove)}catch(e){}isNaN(a)||!a?(i.append(a),prepareMediaItemInit(e)):i.load("async-upload.php",{attachment_id:a,fetch:r},function(){prepareMediaItemInit(e),updateMediaForm()})}function prepareMediaItemInit(r){var e=jQuery("#media-item-"+r.id);jQuery(".thumbnail",e).clone().attr("class","pinkynail toggle").prependTo(e),jQuery(".filename.original",e).replaceWith(jQuery(".filename.new",e)),jQuery("a.delete",e).on("click",function(){return jQuery.ajax({url:ajaxurl,type:"post",success:deleteSuccess,error:deleteError,id:r.id,data:{id:this.id.replace(/[^0-9]/g,""),action:"trash-post",_ajax_nonce:this.href.replace(/^.*wpnonce=/,"")}}),!1}),jQuery("a.undo",e).on("click",function(){return jQuery.ajax({url:ajaxurl,type:"post",id:r.id,data:{id:this.id.replace(/[^0-9]/g,""),action:"untrash-post",_ajax_nonce:this.href.replace(/^.*wpnonce=/,"")},success:function(){var e,a=jQuery("#media-item-"+r.id);(e=jQuery("#type-of-"+r.id).val())&&jQuery("#"+e+"-counter").text(+jQuery("#"+e+"-counter").text()+1),post_id&&a.hasClass("child-of-"+post_id)&&jQuery("#attachments-count").text(+jQuery("#attachments-count").text()+1),jQuery(".filename .trashnotice",a).remove(),jQuery(".filename .title",a).css("font-weight","normal"),jQuery("a.undo",a).addClass("hidden"),jQuery(".menu_order_input",a).show(),a.css({backgroundColor:"#ceb"}).animate({backgroundColor:"#fff"},{queue:!1,duration:500,complete:function(){jQuery(this).css({backgroundColor:""})}}).removeClass("undo")}}),!1}),jQuery("#media-item-"+r.id+".startopen").removeClass("startopen").addClass("open").find("slidetoggle").fadeIn()}function wpQueueError(e){jQuery("#media-upload-error").show().html('<div class="error"><p>'+e+"</p></div>")}function wpFileError(e,a){itemAjaxError(e.id,a)}function itemAjaxError(e,a){var r=jQuery("#media-item-"+e),i=r.find(".filename").text();r.data("last-err")!=e&&r.html('<div class="error-div"><a class="dismiss" href="#">'+pluploadL10n.dismiss+"</a><strong>"+pluploadL10n.error_uploading.replace("%s",jQuery.trim(i))+"</strong> "+a+"</div>").data("last-err",e)}function deleteSuccess(e){var a;return"-1"==e?itemAjaxError(this.id,"You do not have permission. Has your session expired?"):"0"==e?itemAjaxError(this.id,"Could not be deleted. Has it been deleted already?"):(e=this.id,a=jQuery("#media-item-"+e),(e=jQuery("#type-of-"+e).val())&&jQuery("#"+e+"-counter").text(jQuery("#"+e+"-counter").text()-1),post_id&&a.hasClass("child-of-"+post_id)&&jQuery("#attachments-count").text(jQuery("#attachments-count").text()-1),1==jQuery("form.type-form #media-items").children().length&&0<jQuery(".hidden","#media-items").length&&(jQuery(".toggle").toggle(),jQuery(".slidetoggle").slideUp(200).siblings().removeClass("hidden")),jQuery(".toggle",a).toggle(),jQuery(".slidetoggle",a).slideUp(200).siblings().removeClass("hidden"),a.css({backgroundColor:"#faa"}).animate({backgroundColor:"#f4f4f4"},{queue:!1,duration:500}).addClass("undo"),jQuery(".filename:empty",a).remove(),jQuery(".filename .title",a).css("font-weight","bold"),jQuery(".filename",a).append('<span class="trashnotice"> '+pluploadL10n.deleted+" </span>").siblings("a.toggle").hide(),jQuery(".filename",a).append(jQuery("a.undo",a).removeClass("hidden")),void jQuery(".menu_order_input",a).hide())}function deleteError(){}function uploadComplete(){jQuery("#insert-gallery").prop("disabled",!1)}function switchUploader(e){e?(deleteUserSetting("uploader"),jQuery(".media-upload-form").removeClass("html-uploader"),"object"==typeof uploader&&uploader.refresh()):(setUserSetting("uploader","1"),jQuery(".media-upload-form").addClass("html-uploader"))}function uploadError(e,a,r,i){var t=104857600;switch(a){case plupload.FAILED:wpFileError(e,pluploadL10n.upload_failed);break;case plupload.FILE_EXTENSION_ERROR:wpFileExtensionError(i,e,pluploadL10n.invalid_filetype);break;case plupload.FILE_SIZE_ERROR:uploadSizeError(i,e);break;case plupload.IMAGE_FORMAT_ERROR:wpFileError(e,pluploadL10n.not_an_image);break;case plupload.IMAGE_MEMORY_ERROR:wpFileError(e,pluploadL10n.image_memory_exceeded);break;case plupload.IMAGE_DIMENSIONS_ERROR:wpFileError(e,pluploadL10n.image_dimensions_exceeded);break;case plupload.GENERIC_ERROR:wpQueueError(pluploadL10n.upload_failed);break;case plupload.IO_ERROR:t<parseInt(i.settings.filters.max_file_size,10)&&e.size>t?wpFileError(e,pluploadL10n.big_upload_failed.replace("%1$s",'<a class="uploader-html" href="#">').replace("%2$s","</a>")):wpQueueError(pluploadL10n.io_error);break;case plupload.HTTP_ERROR:wpQueueError(pluploadL10n.http_error);break;case plupload.INIT_ERROR:jQuery(".media-upload-form").addClass("html-uploader");break;case plupload.SECURITY_ERROR:wpQueueError(pluploadL10n.security_error);break;default:wpFileError(e,pluploadL10n.default_error)}}function uploadSizeError(e,a){var r=pluploadL10n.file_exceeds_size_limit.replace("%s",a.name),r=jQuery("<div />").attr({id:"media-item-"+a.id,class:"media-item error"}).append(jQuery("<p />").text(r));jQuery("#media-items").append(r),e.removeFile(a)}function wpFileExtensionError(e,a,r){jQuery("#media-items").append('<div id="media-item-'+a.id+'" class="media-item error"><p>'+r+"</p></div>"),e.removeFile(a)}function copyAttachmentUploadURLClipboard(){var i;new ClipboardJS(".copy-attachment-url").on("success",function(e){var a=jQuery(e.trigger),r=jQuery(".success",a.closest(".copy-to-clipboard-container"));e.clearSelection(),clearTimeout(i),r.removeClass("hidden"),i=setTimeout(function(){r.addClass("hidden")},3e3),wp.a11y.speak(pluploadL10n.file_url_copied)})}jQuery(document).ready(function(o){copyAttachmentUploadURLClipboard();var d,l={};o(".media-upload-form").on("click.uploader",function(e){var a,r=o(e.target);r.is('input[type="radio"]')?(a=r.closest("tr")).hasClass("align")?setUserSetting("align",r.val()):a.hasClass("image-size")&&setUserSetting("imgsize",r.val()):r.is("button.button")?(a=(a=e.target.className||"").match(/url([^ '"]+)/))&&a[1]&&(setUserSetting("urlbutton",a[1]),r.siblings(".urlfield").val(r.data("link-url"))):r.is("a.dismiss")?r.parents(".media-item").fadeOut(200,function(){o(this).remove()}):r.is(".upload-flash-bypass a")||r.is("a.uploader-html")?(o("#media-items, p.submit, span.big-file-warning").css("display","none"),switchUploader(0),e.preventDefault()):r.is(".upload-html-bypass a")?(o("#media-items, p.submit, span.big-file-warning").css("display",""),switchUploader(1),e.preventDefault()):r.is("a.describe-toggle-on")?(r.parent().addClass("open"),r.siblings(".slidetoggle").fadeIn(250,function(){var e=o(window).scrollTop(),a=o(window).height(),r=o(this).offset().top,i=o(this).height();a&&r&&i&&(a=e+a)<(i=r+i)&&(i-a<r-e?window.scrollBy(0,i-a+10):window.scrollBy(0,r-e-40))}),e.preventDefault()):r.is("a.describe-toggle-off")&&(r.siblings(".slidetoggle").fadeOut(250,function(){r.parent().removeClass("open")}),e.preventDefault())}),d=function(a,r){var e,i,t=r.file;r&&r.responseHeaders&&(i=r.responseHeaders.match(/x-wp-upload-attachment-id:\s*(\d+)/i))&&i[1]?(i=i[1],(e=l[t.id])&&4<e?(o.ajax({type:"post",url:ajaxurl,dataType:"json",data:{action:"media-create-image-subsizes",_wpnonce:wpUploaderInit.multipart_params._wpnonce,attachment_id:i,_wp_upload_failed_cleanup:!0}}),r.message&&(r.status<500||600<=r.status)?wpQueueError(r.message):wpQueueError(pluploadL10n.http_error_image)):(l[t.id]=e?++e:1,o.ajax({type:"post",url:ajaxurl,dataType:"json",data:{action:"media-create-image-subsizes",_wpnonce:wpUploaderInit.multipart_params._wpnonce,attachment_id:i,_legacy_support:"true"}}).done(function(e){var a;e.success?uploadSuccess(t,e.data.id):wpQueueError((a=e.data&&e.data.message?e.data.message:a)||pluploadL10n.http_error_image)}).fail(function(e){500<=e.status&&e.status<600?d(a,r):wpQueueError(pluploadL10n.http_error_image)}))):wpQueueError(pluploadL10n.http_error_image)},uploader_init=function(){uploader=new plupload.Uploader(wpUploaderInit),o("#image_resize").on("change",function(){var e=o(this).prop("checked");setResize(e),e?setUserSetting("upload_resize","1"):deleteUserSetting("upload_resize")}),uploader.bind("Init",function(e){var a=o("#plupload-upload-ui");setResize(getUserSetting("upload_resize",!1)),e.features.dragdrop&&!o(document.body).hasClass("mobile")?(a.addClass("drag-drop"),o("#drag-drop-area").on("dragover.wp-uploader",function(){a.addClass("drag-over")}).on("dragleave.wp-uploader, drop.wp-uploader",function(){a.removeClass("drag-over")})):(a.removeClass("drag-drop"),o("#drag-drop-area").off(".wp-uploader")),"html4"===e.runtime&&o(".upload-flash-bypass").hide()}),uploader.bind("postinit",function(e){e.refresh()}),uploader.init(),uploader.bind("FilesAdded",function(a,e){o("#media-upload-error").empty(),uploadStart(),plupload.each(e,function(e){if("image/heic"===e.type&&a.settings.heic_upload_error)wpQueueError(pluploadL10n.unsupported_image);else{if("image/webp"===e.type&&a.settings.webp_upload_error)return wpQueueError(pluploadL10n.noneditable_image),void a.removeFile(e);if("image/avif"===e.type&&a.settings.avif_upload_error)return wpQueueError(pluploadL10n.noneditable_image),void a.removeFile(e)}fileQueued(e)}),a.refresh(),a.start()}),uploader.bind("UploadFile",function(e,a){fileUploading(e,a)}),uploader.bind("UploadProgress",function(e,a){uploadProgress(e,a)}),uploader.bind("Error",function(e,a){var r=a.file&&a.file.type&&0===a.file.type.indexOf("image/"),i=a&&a.status;r&&500<=i&&i<600?d(e,a):(uploadError(a.file,a.code,a.message,e),e.refresh())}),uploader.bind("FileUploaded",function(e,a,r){uploadSuccess(a,r.response)}),uploader.bind("UploadComplete",function(){uploadComplete()})},"object"==typeof wpUploaderInit&&uploader_init()}); \ No newline at end of file
diff --git a/wp-includes/js/thickbox/thickbox.js b/wp-includes/js/thickbox/thickbox.js
index e8b9567..2c7b7f9 100644
--- a/wp-includes/js/thickbox/thickbox.js
+++ b/wp-includes/js/thickbox/thickbox.js
@@ -146,7 +146,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
TB_WIDTH = imageWidth + 30;
TB_HEIGHT = imageHeight + 60;
- jQuery("#TB_window").append("<a href='' id='TB_ImageOff'><span class='screen-reader-text'>"+thickboxL10n.close+"</span><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><button type='button' id='TB_closeWindowButton'><span class='screen-reader-text'>"+thickboxL10n.close+"</span><span class='tb-close-icon'></span></button></div>");
+ jQuery("#TB_window").append("<a href='' id='TB_ImageOff'><span class='screen-reader-text'>"+thickboxL10n.close+"</span><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><button type='button' id='TB_closeWindowButton'><span class='screen-reader-text'>"+thickboxL10n.close+"</span><span class='tb-close-icon' aria-hidden='true'></span></button></div>");
jQuery("#TB_closeWindowButton").on( 'click', tb_remove );
@@ -211,7 +211,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
urlNoQuery = url.split('TB_');
jQuery("#TB_iframeContent").remove();
if(params['modal'] != "true"){//iframe no modal
- jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><button type='button' id='TB_closeWindowButton'><span class='screen-reader-text'>"+thickboxL10n.close+"</span><span class='tb-close-icon'></span></button></div></div><iframe frameborder='0' hspace='0' allowtransparency='true' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' >"+thickboxL10n.noiframes+"</iframe>");
+ jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><button type='button' id='TB_closeWindowButton'><span class='screen-reader-text'>"+thickboxL10n.close+"</span><span class='tb-close-icon' aria-hidden='true'></span></button></div></div><iframe frameborder='0' hspace='0' allowtransparency='true' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' >"+thickboxL10n.noiframes+"</iframe>");
}else{//iframe modal
jQuery("#TB_overlay").off();
jQuery("#TB_window").append("<iframe frameborder='0' hspace='0' allowtransparency='true' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;'>"+thickboxL10n.noiframes+"</iframe>");
@@ -219,7 +219,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
}else{// not an iframe, ajax
if(jQuery("#TB_window").css("visibility") != "visible"){
if(params['modal'] != "true"){//ajax no modal
- jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><button type='button' id='TB_closeWindowButton'><span class='screen-reader-text'>"+thickboxL10n.close+"</span><span class='tb-close-icon'></span></button></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");
+ jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><button type='button' id='TB_closeWindowButton'><span class='screen-reader-text'>"+thickboxL10n.close+"</span><span class='tb-close-icon' aria-hidden='true'></span></button></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");
}else{//ajax modal
jQuery("#TB_overlay").off();
jQuery("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");
diff --git a/wp-includes/js/tinymce/plugins/wplink/plugin.js b/wp-includes/js/tinymce/plugins/wplink/plugin.js
index c343318..a82eaa9 100644
--- a/wp-includes/js/tinymce/plugins/wplink/plugin.js
+++ b/wp-includes/js/tinymce/plugins/wplink/plugin.js
@@ -56,19 +56,19 @@
renderHtml: function() {
return (
'<div id="' + this._id + '" class="wp-link-input">' +
- '<input type="text" value="" placeholder="' + tinymce.translate( 'Paste URL or type to search' ) + '" />' +
+ '<label for="' + this._id + '_label">' + tinymce.translate( 'Paste URL or type to search' ) + '</label><input id="' + this._id + '_label" type="text" value="" />' +
'<input type="text" style="display:none" value="" />' +
'</div>'
);
},
setURL: function( url ) {
- this.getEl().firstChild.value = url;
+ this.getEl().firstChild.nextSibling.value = url;
},
getURL: function() {
- return tinymce.trim( this.getEl().firstChild.value );
+ return tinymce.trim( this.getEl().firstChild.nextSibling.value );
},
getLinkText: function() {
- var text = this.getEl().firstChild.nextSibling.value;
+ var text = this.getEl().firstChild.nextSibling.nextSibling.value;
if ( ! tinymce.trim( text ) ) {
return '';
@@ -77,7 +77,7 @@
return text.replace( /[\r\n\t ]+/g, ' ' );
},
reset: function() {
- var urlInput = this.getEl().firstChild;
+ var urlInput = this.getEl().firstChild.nextSibling;
urlInput.value = '';
urlInput.nextSibling.value = '';
@@ -394,7 +394,7 @@
type: 'WPLinkInput',
onPostRender: function() {
var element = this.getEl(),
- input = element.firstChild,
+ input = element.firstChild.nextSibling,
$input, cache, last;
inputInstance = this;
@@ -438,7 +438,7 @@
},
select: function( event, ui ) {
$input.val( ui.item.permalink );
- $( element.firstChild.nextSibling ).val( ui.item.title );
+ $( element.firstChild.nextSibling.nextSibling ).val( ui.item.title );
if ( 9 === event.keyCode && typeof window.wpLinkL10n !== 'undefined' ) {
// Audible confirmation message when a link has been selected.
diff --git a/wp-includes/js/tinymce/plugins/wplink/plugin.min.js b/wp-includes/js/tinymce/plugins/wplink/plugin.min.js
index 2e5002f..a344bf5 100644
--- a/wp-includes/js/tinymce/plugins/wplink/plugin.min.js
+++ b/wp-includes/js/tinymce/plugins/wplink/plugin.min.js
@@ -1 +1 @@
-!function(g){g.ui.Factory.add("WPLinkPreview",g.ui.Control.extend({url:"#",renderHtml:function(){return'<div id="'+this._id+'" class="wp-link-preview"><a href="'+this.url+'" target="_blank" rel="noopener" tabindex="-1">'+this.url+"</a></div>"},setURL:function(e){var t,n;this.url!==e&&(this.url=e,40<(e=""===(e="/"===(e=(e=-1!==(t=(e=-1!==(t=(e=(e=window.decodeURIComponent(e)).replace(/^(?:https?:)?\/\/(?:www\.)?/,"")).indexOf("?"))?e.slice(0,t):e).indexOf("#"))?e.slice(0,t):e).replace(/(?:index)?\.html$/,"")).charAt(e.length-1)?e.slice(0,-1):e)?this.url:e).length&&-1!==(t=e.indexOf("/"))&&-1!==(n=e.lastIndexOf("/"))&&n!==t&&(t+e.length-n<40&&(n=-(40-(t+1))),e=e.slice(0,t+1)+"\u2026"+e.slice(n)),g.$(this.getEl().firstChild).attr("href",this.url).text(e))}})),g.ui.Factory.add("WPLinkInput",g.ui.Control.extend({renderHtml:function(){return'<div id="'+this._id+'" class="wp-link-input"><input type="text" value="" placeholder="'+g.translate("Paste URL or type to search")+'" /><input type="text" style="display:none" value="" /></div>'},setURL:function(e){this.getEl().firstChild.value=e},getURL:function(){return g.trim(this.getEl().firstChild.value)},getLinkText:function(){var e=this.getEl().firstChild.nextSibling.value;return g.trim(e)?e.replace(/[\r\n\t ]+/g," "):""},reset:function(){var e=this.getEl().firstChild;e.value="",e.nextSibling.value=""}})),g.PluginManager.add("wplink",function(l){var a,r,d,c,i,n,t,p=window.jQuery,o=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i,s=/^https?:\/\/([^\s/?.#-][^\s\/?.#]*\.?)+(\/[^\s"]*)?$/i,u=/^https?:\/\/[^\/]+\.[^\/]+($|\/)/i,w=void 0!==window.wp&&window.wp.a11y&&window.wp.a11y.speak?window.wp.a11y.speak:function(){},k=!1,m=window.wp.i18n.__,f=window.wp.i18n._n,h=window.wp.i18n.sprintf;function v(){l.$("a").each(function(e,t){var n=l.$(t);"_wp_link_placeholder"===n.attr("href")?l.dom.remove(t,!0):n.attr("data-wplink-edit")&&n.attr("data-wplink-edit",null)})}function _(e,i){return e.replace(/(<a [^>]+>)([\s\S]*?)<\/a>/g,function(e,t,n){return-1<t.indexOf(' href="_wp_link_placeholder"')?n:(t=(t=i?t.replace(/ data-wplink-edit="true"/g,""):t).replace(/ data-wplink-url-error="true"/g,""))+n+"</a>"})}function L(e){var e=l.$(e),t=e.attr("href");t&&void 0!==p&&(k=!1,!/^http/i.test(t)||s.test(t)&&u.test(t)?e.removeAttr("data-wplink-url-error"):(k=!0,e.attr("data-wplink-url-error","true"),w(l.translate("Warning: the link has been inserted but may have errors. Please test it."),"assertive")))}return l.on("preinit",function(){var e;l.wp&&l.wp._createToolbar&&(a=l.wp._createToolbar(["wp_link_preview","wp_link_edit","wp_link_remove"],!0),e=["wp_link_input","wp_link_apply"],void 0!==window.wpLink&&e.push("wp_link_advanced"),(r=l.wp._createToolbar(e,!0)).on("show",function(){void 0!==window.wpLink&&window.wpLink.modalOpen||window.setTimeout(function(){var e=r.$el.find("input.ui-autocomplete-input")[0],t=i&&(i.textContent||i.innerText);e&&(!e.value&&t&&void 0!==window.wpLink&&(e.value=window.wpLink.getUrlFromSelection(t)),n||(e.focus(),e.select()))})}),r.on("hide",function(){r.scrolling||l.execCommand("wp_link_cancel")}))}),l.addCommand("WP_Link",function(){var e,t,n;g.Env.ie&&g.Env.ie<10&&void 0!==window.wpLink?window.wpLink.open(l.id):(t=l.selection.getStart(),(n=l.dom.getParent(t,"a[href]"))||(e=l.selection.getContent({format:"raw"}))&&-1!==e.indexOf("</a>")&&(n=(e=e.match(/href="([^">]+)"/))&&e[1]?l.$('a[href="'+e[1]+'"]',t)[0]:n)&&l.selection.select(n),i=n,r.tempHide=!1,i||(v(),l.execCommand("mceInsertLink",!1,{href:"_wp_link_placeholder"}),i=l.$('a[href="_wp_link_placeholder"]')[0],l.nodeChanged()),l.dom.setAttribs(i,{"data-wplink-edit":!0}))}),l.addCommand("wp_link_apply",function(){if(!r.scrolling){var e,t;if(i){e=c.getURL(),t=c.getLinkText(),l.focus();var n=document.createElement("a");if(n.href=e,!(e="javascript:"!==n.protocol&&"data:"!==n.protocol?e:""))return void l.dom.remove(i,!0);/^(?:[a-z]+:|#|\?|\.|\/)/.test(e)||o.test(e)||(e="http://"+e),l.dom.setAttribs(i,{href:e,"data-wplink-edit":null}),g.trim(i.innerHTML)||l.$(i).text(t||e),L(i)}c.reset(),l.nodeChanged(),void 0===window.wpLinkL10n||k||w(window.wpLinkL10n.linkInserted)}}),l.addCommand("wp_link_cancel",function(){c.reset(),r.tempHide||v()}),l.addCommand("wp_unlink",function(){l.execCommand("unlink"),r.tempHide=!1,l.execCommand("wp_link_cancel")}),l.addShortcut("access+a","","WP_Link"),l.addShortcut("access+s","","wp_unlink"),l.addShortcut("meta+k","","WP_Link"),l.addButton("link",{icon:"link",tooltip:"Insert/edit link",cmd:"WP_Link",stateSelector:"a[href]"}),l.addButton("unlink",{icon:"unlink",tooltip:"Remove link",cmd:"unlink"}),l.addMenuItem("link",{icon:"link",text:"Insert/edit link",cmd:"WP_Link",stateSelector:"a[href]",context:"insert",prependToContext:!0}),l.on("pastepreprocess",function(e){var t=e.content,n=/^(?:https?:)?\/\/\S+$/i;l.selection.isCollapsed()||n.test(l.selection.getContent())||(t=t.replace(/<[^>]+>/g,""),t=g.trim(t),n.test(t)&&(l.execCommand("mceInsertLink",!1,{href:l.dom.decode(t)}),e.preventDefault()))}),l.on("savecontent",function(e){e.content=_(e.content,!0)}),l.on("BeforeAddUndo",function(e){e.lastLevel&&e.lastLevel.content&&e.level.content&&e.lastLevel.content===_(e.level.content)&&e.preventDefault()}),l.on("keydown",function(e){27===e.keyCode&&l.execCommand("wp_link_cancel"),e.altKey||g.Env.mac&&(!e.metaKey||e.ctrlKey)||!g.Env.mac&&!e.ctrlKey||89!==e.keyCode&&90!==e.keyCode||(n=!0,window.clearTimeout(t),t=window.setTimeout(function(){n=!1},500))}),l.addButton("wp_link_preview",{type:"WPLinkPreview",onPostRender:function(){d=this}}),l.addButton("wp_link_input",{type:"WPLinkInput",onPostRender:function(){var n,i,o,a=this.getEl(),e=a.firstChild;c=this,p&&p.ui&&p.ui.autocomplete&&((n=p(e)).on("keydown",function(){n.removeAttr("aria-activedescendant")}).autocomplete({source:function(e,t){if(o===e.term)t(i);else{if(/^https?:/.test(e.term)||-1!==e.term.indexOf("."))return t();p.post(window.ajaxurl,{action:"wp-link-ajax",page:1,search:e.term,_ajax_linking_nonce:p("#_ajax_linking_nonce").val()},function(e){t(i=e)},"json"),o=e.term}},focus:function(e,t){n.attr("aria-activedescendant","mce-wp-autocomplete-"+t.item.ID),e.preventDefault()},select:function(e,t){return n.val(t.item.permalink),p(a.firstChild.nextSibling).val(t.item.title),9===e.keyCode&&void 0!==window.wpLinkL10n&&w(window.wpLinkL10n.linkSelected),!1},open:function(){n.attr("aria-expanded","true"),r.blockHide=!0},close:function(){n.attr("aria-expanded","false"),r.blockHide=!1},minLength:2,position:{my:"left top+2"},messages:{noResults:m("No results found."),results:function(e){return h(f("%d result found. Use up and down arrow keys to navigate.","%d results found. Use up and down arrow keys to navigate.",e),e)}}}).autocomplete("instance")._renderItem=function(e,t){var n=void 0!==window.wpLinkL10n?window.wpLinkL10n.noTitle:"",n=t.title||n;return p('<li role="option" id="mce-wp-autocomplete-'+t.ID+'">').append("<span>"+n+'</span>&nbsp;<span class="wp-editor-float-right">'+t.info+"</span>").appendTo(e)},n.attr({role:"combobox","aria-autocomplete":"list","aria-expanded":"false","aria-owns":n.autocomplete("widget").attr("id")}).on("focus",function(){var e=n.val();e&&!/^https?:/.test(e)&&n.autocomplete("search")}).autocomplete("widget").addClass("wplink-autocomplete").attr("role","listbox").removeAttr("tabindex").on("menufocus",function(e,t){t.item.attr("aria-selected","true")}).on("menublur",function(){p(this).find('[aria-selected="true"]').removeAttr("aria-selected")})),g.$(e).on("keydown",function(e){13===e.keyCode&&(l.execCommand("wp_link_apply"),e.preventDefault())})}}),l.on("wptoolbar",function(e){var t,n,i,o=l.dom.getParent(e.element,"a");void 0!==window.wpLink&&window.wpLink.modalOpen?r.tempHide=!0:(r.tempHide=!1,o?(n=(t=l.$(o)).attr("href"),i=t.attr("data-wplink-edit"),"_wp_link_placeholder"===n||i?("_wp_link_placeholder"===n||c.getURL()||c.setURL(n),e.element=o,e.toolbar=r):n&&!t.find("img").length&&(d.setURL(n),e.element=o,e.toolbar=a,"true"===t.attr("data-wplink-url-error")?a.$el.find(".wp-link-preview a").addClass("wplink-url-error"):(a.$el.find(".wp-link-preview a").removeClass("wplink-url-error"),k=!1))):r.visible()&&l.execCommand("wp_link_cancel"))}),l.addButton("wp_link_edit",{tooltip:"Edit|button",icon:"dashicon dashicons-edit",cmd:"WP_Link"}),l.addButton("wp_link_remove",{tooltip:"Remove link",icon:"dashicon dashicons-editor-unlink",cmd:"wp_unlink"}),l.addButton("wp_link_advanced",{tooltip:"Link options",icon:"dashicon dashicons-admin-generic",onclick:function(){var e,t;void 0!==window.wpLink&&(e=c.getURL()||null,t=c.getLinkText()||null,window.wpLink.open(l.id,e,t),r.tempHide=!0,r.hide())}}),l.addButton("wp_link_apply",{tooltip:"Apply",icon:"dashicon dashicons-editor-break",cmd:"wp_link_apply",classes:"widget btn primary"}),{close:function(){r.tempHide=!1,l.execCommand("wp_link_cancel")},checkLink:L}})}(window.tinymce); \ No newline at end of file
+!function(L){L.ui.Factory.add("WPLinkPreview",L.ui.Control.extend({url:"#",renderHtml:function(){return'<div id="'+this._id+'" class="wp-link-preview"><a href="'+this.url+'" target="_blank" rel="noopener" tabindex="-1">'+this.url+"</a></div>"},setURL:function(e){var n,t;this.url!==e&&(this.url=e,40<(e=""===(e="/"===(e=(e=-1!==(n=(e=-1!==(n=(e=(e=window.decodeURIComponent(e)).replace(/^(?:https?:)?\/\/(?:www\.)?/,"")).indexOf("?"))?e.slice(0,n):e).indexOf("#"))?e.slice(0,n):e).replace(/(?:index)?\.html$/,"")).charAt(e.length-1)?e.slice(0,-1):e)?this.url:e).length&&-1!==(n=e.indexOf("/"))&&-1!==(t=e.lastIndexOf("/"))&&t!==n&&(n+e.length-t<40&&(t=-(40-(n+1))),e=e.slice(0,n+1)+"\u2026"+e.slice(t)),L.$(this.getEl().firstChild).attr("href",this.url).text(e))}})),L.ui.Factory.add("WPLinkInput",L.ui.Control.extend({renderHtml:function(){return'<div id="'+this._id+'" class="wp-link-input"><label for="'+this._id+'_label">'+L.translate("Paste URL or type to search")+'</label><input id="'+this._id+'_label" type="text" value="" /><input type="text" style="display:none" value="" /></div>'},setURL:function(e){this.getEl().firstChild.nextSibling.value=e},getURL:function(){return L.trim(this.getEl().firstChild.nextSibling.value)},getLinkText:function(){var e=this.getEl().firstChild.nextSibling.nextSibling.value;return L.trim(e)?e.replace(/[\r\n\t ]+/g," "):""},reset:function(){var e=this.getEl().firstChild.nextSibling;e.value="",e.nextSibling.value=""}})),L.PluginManager.add("wplink",function(l){var a,r,d,c,i,t,n,p=window.jQuery,o=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i,s=/^https?:\/\/([^\s/?.#-][^\s\/?.#]*\.?)+(\/[^\s"]*)?$/i,u=/^https?:\/\/[^\/]+\.[^\/]+($|\/)/i,w=void 0!==window.wp&&window.wp.a11y&&window.wp.a11y.speak?window.wp.a11y.speak:function(){},k=!1,m=window.wp.i18n.__,f=window.wp.i18n._n,h=window.wp.i18n.sprintf;function _(){l.$("a").each(function(e,n){var t=l.$(n);"_wp_link_placeholder"===t.attr("href")?l.dom.remove(n,!0):t.attr("data-wplink-edit")&&t.attr("data-wplink-edit",null)})}function v(e,i){return e.replace(/(<a [^>]+>)([\s\S]*?)<\/a>/g,function(e,n,t){return-1<n.indexOf(' href="_wp_link_placeholder"')?t:(n=(n=i?n.replace(/ data-wplink-edit="true"/g,""):n).replace(/ data-wplink-url-error="true"/g,""))+t+"</a>"})}function g(e){var e=l.$(e),n=e.attr("href");n&&void 0!==p&&(k=!1,!/^http/i.test(n)||s.test(n)&&u.test(n)?e.removeAttr("data-wplink-url-error"):(k=!0,e.attr("data-wplink-url-error","true"),w(l.translate("Warning: the link has been inserted but may have errors. Please test it."),"assertive")))}return l.on("preinit",function(){var e;l.wp&&l.wp._createToolbar&&(a=l.wp._createToolbar(["wp_link_preview","wp_link_edit","wp_link_remove"],!0),e=["wp_link_input","wp_link_apply"],void 0!==window.wpLink&&e.push("wp_link_advanced"),(r=l.wp._createToolbar(e,!0)).on("show",function(){void 0!==window.wpLink&&window.wpLink.modalOpen||window.setTimeout(function(){var e=r.$el.find("input.ui-autocomplete-input")[0],n=i&&(i.textContent||i.innerText);e&&(!e.value&&n&&void 0!==window.wpLink&&(e.value=window.wpLink.getUrlFromSelection(n)),t||(e.focus(),e.select()))})}),r.on("hide",function(){r.scrolling||l.execCommand("wp_link_cancel")}))}),l.addCommand("WP_Link",function(){var e,n,t;L.Env.ie&&L.Env.ie<10&&void 0!==window.wpLink?window.wpLink.open(l.id):(n=l.selection.getStart(),(t=l.dom.getParent(n,"a[href]"))||(e=l.selection.getContent({format:"raw"}))&&-1!==e.indexOf("</a>")&&(t=(e=e.match(/href="([^">]+)"/))&&e[1]?l.$('a[href="'+e[1]+'"]',n)[0]:t)&&l.selection.select(t),i=t,r.tempHide=!1,i||(_(),l.execCommand("mceInsertLink",!1,{href:"_wp_link_placeholder"}),i=l.$('a[href="_wp_link_placeholder"]')[0],l.nodeChanged()),l.dom.setAttribs(i,{"data-wplink-edit":!0}))}),l.addCommand("wp_link_apply",function(){if(!r.scrolling){var e,n;if(i){e=c.getURL(),n=c.getLinkText(),l.focus();var t=document.createElement("a");if(t.href=e,!(e="javascript:"!==t.protocol&&"data:"!==t.protocol?e:""))return void l.dom.remove(i,!0);/^(?:[a-z]+:|#|\?|\.|\/)/.test(e)||o.test(e)||(e="http://"+e),l.dom.setAttribs(i,{href:e,"data-wplink-edit":null}),L.trim(i.innerHTML)||l.$(i).text(n||e),g(i)}c.reset(),l.nodeChanged(),void 0===window.wpLinkL10n||k||w(window.wpLinkL10n.linkInserted)}}),l.addCommand("wp_link_cancel",function(){c.reset(),r.tempHide||_()}),l.addCommand("wp_unlink",function(){l.execCommand("unlink"),r.tempHide=!1,l.execCommand("wp_link_cancel")}),l.addShortcut("access+a","","WP_Link"),l.addShortcut("access+s","","wp_unlink"),l.addShortcut("meta+k","","WP_Link"),l.addButton("link",{icon:"link",tooltip:"Insert/edit link",cmd:"WP_Link",stateSelector:"a[href]"}),l.addButton("unlink",{icon:"unlink",tooltip:"Remove link",cmd:"unlink"}),l.addMenuItem("link",{icon:"link",text:"Insert/edit link",cmd:"WP_Link",stateSelector:"a[href]",context:"insert",prependToContext:!0}),l.on("pastepreprocess",function(e){var n=e.content,t=/^(?:https?:)?\/\/\S+$/i;l.selection.isCollapsed()||t.test(l.selection.getContent())||(n=n.replace(/<[^>]+>/g,""),n=L.trim(n),t.test(n)&&(l.execCommand("mceInsertLink",!1,{href:l.dom.decode(n)}),e.preventDefault()))}),l.on("savecontent",function(e){e.content=v(e.content,!0)}),l.on("BeforeAddUndo",function(e){e.lastLevel&&e.lastLevel.content&&e.level.content&&e.lastLevel.content===v(e.level.content)&&e.preventDefault()}),l.on("keydown",function(e){27===e.keyCode&&l.execCommand("wp_link_cancel"),e.altKey||L.Env.mac&&(!e.metaKey||e.ctrlKey)||!L.Env.mac&&!e.ctrlKey||89!==e.keyCode&&90!==e.keyCode||(t=!0,window.clearTimeout(n),n=window.setTimeout(function(){t=!1},500))}),l.addButton("wp_link_preview",{type:"WPLinkPreview",onPostRender:function(){d=this}}),l.addButton("wp_link_input",{type:"WPLinkInput",onPostRender:function(){var t,i,o,a=this.getEl(),e=a.firstChild.nextSibling;c=this,p&&p.ui&&p.ui.autocomplete&&((t=p(e)).on("keydown",function(){t.removeAttr("aria-activedescendant")}).autocomplete({source:function(e,n){if(o===e.term)n(i);else{if(/^https?:/.test(e.term)||-1!==e.term.indexOf("."))return n();p.post(window.ajaxurl,{action:"wp-link-ajax",page:1,search:e.term,_ajax_linking_nonce:p("#_ajax_linking_nonce").val()},function(e){n(i=e)},"json"),o=e.term}},focus:function(e,n){t.attr("aria-activedescendant","mce-wp-autocomplete-"+n.item.ID),e.preventDefault()},select:function(e,n){return t.val(n.item.permalink),p(a.firstChild.nextSibling.nextSibling).val(n.item.title),9===e.keyCode&&void 0!==window.wpLinkL10n&&w(window.wpLinkL10n.linkSelected),!1},open:function(){t.attr("aria-expanded","true"),r.blockHide=!0},close:function(){t.attr("aria-expanded","false"),r.blockHide=!1},minLength:2,position:{my:"left top+2"},messages:{noResults:m("No results found."),results:function(e){return h(f("%d result found. Use up and down arrow keys to navigate.","%d results found. Use up and down arrow keys to navigate.",e),e)}}}).autocomplete("instance")._renderItem=function(e,n){var t=void 0!==window.wpLinkL10n?window.wpLinkL10n.noTitle:"",t=n.title||t;return p('<li role="option" id="mce-wp-autocomplete-'+n.ID+'">').append("<span>"+t+'</span>&nbsp;<span class="wp-editor-float-right">'+n.info+"</span>").appendTo(e)},t.attr({role:"combobox","aria-autocomplete":"list","aria-expanded":"false","aria-owns":t.autocomplete("widget").attr("id")}).on("focus",function(){var e=t.val();e&&!/^https?:/.test(e)&&t.autocomplete("search")}).autocomplete("widget").addClass("wplink-autocomplete").attr("role","listbox").removeAttr("tabindex").on("menufocus",function(e,n){n.item.attr("aria-selected","true")}).on("menublur",function(){p(this).find('[aria-selected="true"]').removeAttr("aria-selected")})),L.$(e).on("keydown",function(e){13===e.keyCode&&(l.execCommand("wp_link_apply"),e.preventDefault())})}}),l.on("wptoolbar",function(e){var n,t,i,o=l.dom.getParent(e.element,"a");void 0!==window.wpLink&&window.wpLink.modalOpen?r.tempHide=!0:(r.tempHide=!1,o?(t=(n=l.$(o)).attr("href"),i=n.attr("data-wplink-edit"),"_wp_link_placeholder"===t||i?("_wp_link_placeholder"===t||c.getURL()||c.setURL(t),e.element=o,e.toolbar=r):t&&!n.find("img").length&&(d.setURL(t),e.element=o,e.toolbar=a,"true"===n.attr("data-wplink-url-error")?a.$el.find(".wp-link-preview a").addClass("wplink-url-error"):(a.$el.find(".wp-link-preview a").removeClass("wplink-url-error"),k=!1))):r.visible()&&l.execCommand("wp_link_cancel"))}),l.addButton("wp_link_edit",{tooltip:"Edit|button",icon:"dashicon dashicons-edit",cmd:"WP_Link"}),l.addButton("wp_link_remove",{tooltip:"Remove link",icon:"dashicon dashicons-editor-unlink",cmd:"wp_unlink"}),l.addButton("wp_link_advanced",{tooltip:"Link options",icon:"dashicon dashicons-admin-generic",onclick:function(){var e,n;void 0!==window.wpLink&&(e=c.getURL()||null,n=c.getLinkText()||null,window.wpLink.open(l.id,e,n),r.tempHide=!0,r.hide())}}),l.addButton("wp_link_apply",{tooltip:"Apply",icon:"dashicon dashicons-editor-break",cmd:"wp_link_apply",classes:"widget btn primary"}),{close:function(){r.tempHide=!1,l.execCommand("wp_link_cancel")},checkLink:g}})}(window.tinymce); \ No newline at end of file
diff --git a/wp-includes/js/tinymce/wp-tinymce.js b/wp-includes/js/tinymce/wp-tinymce.js
index 387c9da..bc3829f 100644
--- a/wp-includes/js/tinymce/wp-tinymce.js
+++ b/wp-includes/js/tinymce/wp-tinymce.js
@@ -42,7 +42,7 @@ tinymce.PluginManager.add("wpeditimage",function(g){var r,u,n,c,a,e=tinymce.each
// Source: wp-includes/js/tinymce/plugins/wpgallery/plugin.min.js
tinymce.PluginManager.add("wpgallery",function(d){function t(e){return e.replace(/\[gallery([^\]]*)\]/g,function(e){return t="wp-gallery",n=e,n=window.encodeURIComponent(e),'<img src="'+tinymce.Env.transparentSrc+'" class="wp-media mceItem '+t+'" data-wp-media="'+n+'" data-mce-resize="false" data-mce-placeholder="1" alt="" />';var t,n})}function n(e){return e.replace(/(?:<p(?: [^>]+)?>)*(<img [^>]+>)(?:<\/p>)*/g,function(e,t){t=t,n="data-wp-media";var n,t=(n=new RegExp(n+'="([^"]+)"').exec(t))?window.decodeURIComponent(n[1]):"";return t?"<p>"+t+"</p>":e})}function o(t){var n,a,e;"IMG"===t.nodeName&&"undefined"!=typeof wp&&wp.media&&(e=window.decodeURIComponent(d.dom.getAttrib(t,"data-wp-media")),d.dom.hasClass(t,"wp-gallery"))&&wp.media.gallery&&(n=wp.media.gallery,(a=n.edit(e)).state("gallery-edit").on("update",function(e){e=n.shortcode(e).string();d.dom.setAttrib(t,"data-wp-media",window.encodeURIComponent(e)),a.detach()}))}d.addCommand("WP_Gallery",function(){o(d.selection.getNode())}),d.on("mouseup",function(e){var t=d.dom,n=e.target;function a(){t.removeClass(t.select("img.wp-media-selected"),"wp-media-selected")}"IMG"===n.nodeName&&t.getAttrib(n,"data-wp-media")?2!==e.button&&(t.hasClass(n,"wp-media-selected")?o(n):(a(),t.addClass(n,"wp-media-selected"))):a()}),d.on("ResolveName",function(e){var t=d.dom,n=e.target;"IMG"===n.nodeName&&t.getAttrib(n,"data-wp-media")&&t.hasClass(n,"wp-gallery")&&(e.name="gallery")}),d.on("BeforeSetContent",function(e){d.plugins.wpview&&"undefined"!=typeof wp&&wp.mce||(e.content=t(e.content))}),d.on("PostProcess",function(e){e.get&&(e.content=n(e.content))})});
// Source: wp-includes/js/tinymce/plugins/wplink/plugin.min.js
-!function(g){g.ui.Factory.add("WPLinkPreview",g.ui.Control.extend({url:"#",renderHtml:function(){return'<div id="'+this._id+'" class="wp-link-preview"><a href="'+this.url+'" target="_blank" rel="noopener" tabindex="-1">'+this.url+"</a></div>"},setURL:function(e){var t,n;this.url!==e&&(this.url=e,40<(e=""===(e="/"===(e=(e=-1!==(t=(e=-1!==(t=(e=(e=window.decodeURIComponent(e)).replace(/^(?:https?:)?\/\/(?:www\.)?/,"")).indexOf("?"))?e.slice(0,t):e).indexOf("#"))?e.slice(0,t):e).replace(/(?:index)?\.html$/,"")).charAt(e.length-1)?e.slice(0,-1):e)?this.url:e).length&&-1!==(t=e.indexOf("/"))&&-1!==(n=e.lastIndexOf("/"))&&n!==t&&(t+e.length-n<40&&(n=-(40-(t+1))),e=e.slice(0,t+1)+"\u2026"+e.slice(n)),g.$(this.getEl().firstChild).attr("href",this.url).text(e))}})),g.ui.Factory.add("WPLinkInput",g.ui.Control.extend({renderHtml:function(){return'<div id="'+this._id+'" class="wp-link-input"><input type="text" value="" placeholder="'+g.translate("Paste URL or type to search")+'" /><input type="text" style="display:none" value="" /></div>'},setURL:function(e){this.getEl().firstChild.value=e},getURL:function(){return g.trim(this.getEl().firstChild.value)},getLinkText:function(){var e=this.getEl().firstChild.nextSibling.value;return g.trim(e)?e.replace(/[\r\n\t ]+/g," "):""},reset:function(){var e=this.getEl().firstChild;e.value="",e.nextSibling.value=""}})),g.PluginManager.add("wplink",function(l){var a,r,d,c,i,n,t,p=window.jQuery,o=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i,s=/^https?:\/\/([^\s/?.#-][^\s\/?.#]*\.?)+(\/[^\s"]*)?$/i,u=/^https?:\/\/[^\/]+\.[^\/]+($|\/)/i,w=void 0!==window.wp&&window.wp.a11y&&window.wp.a11y.speak?window.wp.a11y.speak:function(){},k=!1,m=window.wp.i18n.__,f=window.wp.i18n._n,h=window.wp.i18n.sprintf;function v(){l.$("a").each(function(e,t){var n=l.$(t);"_wp_link_placeholder"===n.attr("href")?l.dom.remove(t,!0):n.attr("data-wplink-edit")&&n.attr("data-wplink-edit",null)})}function _(e,i){return e.replace(/(<a [^>]+>)([\s\S]*?)<\/a>/g,function(e,t,n){return-1<t.indexOf(' href="_wp_link_placeholder"')?n:(t=(t=i?t.replace(/ data-wplink-edit="true"/g,""):t).replace(/ data-wplink-url-error="true"/g,""))+n+"</a>"})}function L(e){var e=l.$(e),t=e.attr("href");t&&void 0!==p&&(k=!1,!/^http/i.test(t)||s.test(t)&&u.test(t)?e.removeAttr("data-wplink-url-error"):(k=!0,e.attr("data-wplink-url-error","true"),w(l.translate("Warning: the link has been inserted but may have errors. Please test it."),"assertive")))}return l.on("preinit",function(){var e;l.wp&&l.wp._createToolbar&&(a=l.wp._createToolbar(["wp_link_preview","wp_link_edit","wp_link_remove"],!0),e=["wp_link_input","wp_link_apply"],void 0!==window.wpLink&&e.push("wp_link_advanced"),(r=l.wp._createToolbar(e,!0)).on("show",function(){void 0!==window.wpLink&&window.wpLink.modalOpen||window.setTimeout(function(){var e=r.$el.find("input.ui-autocomplete-input")[0],t=i&&(i.textContent||i.innerText);e&&(!e.value&&t&&void 0!==window.wpLink&&(e.value=window.wpLink.getUrlFromSelection(t)),n||(e.focus(),e.select()))})}),r.on("hide",function(){r.scrolling||l.execCommand("wp_link_cancel")}))}),l.addCommand("WP_Link",function(){var e,t,n;g.Env.ie&&g.Env.ie<10&&void 0!==window.wpLink?window.wpLink.open(l.id):(t=l.selection.getStart(),(n=l.dom.getParent(t,"a[href]"))||(e=l.selection.getContent({format:"raw"}))&&-1!==e.indexOf("</a>")&&(n=(e=e.match(/href="([^">]+)"/))&&e[1]?l.$('a[href="'+e[1]+'"]',t)[0]:n)&&l.selection.select(n),i=n,r.tempHide=!1,i||(v(),l.execCommand("mceInsertLink",!1,{href:"_wp_link_placeholder"}),i=l.$('a[href="_wp_link_placeholder"]')[0],l.nodeChanged()),l.dom.setAttribs(i,{"data-wplink-edit":!0}))}),l.addCommand("wp_link_apply",function(){if(!r.scrolling){var e,t;if(i){e=c.getURL(),t=c.getLinkText(),l.focus();var n=document.createElement("a");if(n.href=e,!(e="javascript:"!==n.protocol&&"data:"!==n.protocol?e:""))return void l.dom.remove(i,!0);/^(?:[a-z]+:|#|\?|\.|\/)/.test(e)||o.test(e)||(e="http://"+e),l.dom.setAttribs(i,{href:e,"data-wplink-edit":null}),g.trim(i.innerHTML)||l.$(i).text(t||e),L(i)}c.reset(),l.nodeChanged(),void 0===window.wpLinkL10n||k||w(window.wpLinkL10n.linkInserted)}}),l.addCommand("wp_link_cancel",function(){c.reset(),r.tempHide||v()}),l.addCommand("wp_unlink",function(){l.execCommand("unlink"),r.tempHide=!1,l.execCommand("wp_link_cancel")}),l.addShortcut("access+a","","WP_Link"),l.addShortcut("access+s","","wp_unlink"),l.addShortcut("meta+k","","WP_Link"),l.addButton("link",{icon:"link",tooltip:"Insert/edit link",cmd:"WP_Link",stateSelector:"a[href]"}),l.addButton("unlink",{icon:"unlink",tooltip:"Remove link",cmd:"unlink"}),l.addMenuItem("link",{icon:"link",text:"Insert/edit link",cmd:"WP_Link",stateSelector:"a[href]",context:"insert",prependToContext:!0}),l.on("pastepreprocess",function(e){var t=e.content,n=/^(?:https?:)?\/\/\S+$/i;l.selection.isCollapsed()||n.test(l.selection.getContent())||(t=t.replace(/<[^>]+>/g,""),t=g.trim(t),n.test(t)&&(l.execCommand("mceInsertLink",!1,{href:l.dom.decode(t)}),e.preventDefault()))}),l.on("savecontent",function(e){e.content=_(e.content,!0)}),l.on("BeforeAddUndo",function(e){e.lastLevel&&e.lastLevel.content&&e.level.content&&e.lastLevel.content===_(e.level.content)&&e.preventDefault()}),l.on("keydown",function(e){27===e.keyCode&&l.execCommand("wp_link_cancel"),e.altKey||g.Env.mac&&(!e.metaKey||e.ctrlKey)||!g.Env.mac&&!e.ctrlKey||89!==e.keyCode&&90!==e.keyCode||(n=!0,window.clearTimeout(t),t=window.setTimeout(function(){n=!1},500))}),l.addButton("wp_link_preview",{type:"WPLinkPreview",onPostRender:function(){d=this}}),l.addButton("wp_link_input",{type:"WPLinkInput",onPostRender:function(){var n,i,o,a=this.getEl(),e=a.firstChild;c=this,p&&p.ui&&p.ui.autocomplete&&((n=p(e)).on("keydown",function(){n.removeAttr("aria-activedescendant")}).autocomplete({source:function(e,t){if(o===e.term)t(i);else{if(/^https?:/.test(e.term)||-1!==e.term.indexOf("."))return t();p.post(window.ajaxurl,{action:"wp-link-ajax",page:1,search:e.term,_ajax_linking_nonce:p("#_ajax_linking_nonce").val()},function(e){t(i=e)},"json"),o=e.term}},focus:function(e,t){n.attr("aria-activedescendant","mce-wp-autocomplete-"+t.item.ID),e.preventDefault()},select:function(e,t){return n.val(t.item.permalink),p(a.firstChild.nextSibling).val(t.item.title),9===e.keyCode&&void 0!==window.wpLinkL10n&&w(window.wpLinkL10n.linkSelected),!1},open:function(){n.attr("aria-expanded","true"),r.blockHide=!0},close:function(){n.attr("aria-expanded","false"),r.blockHide=!1},minLength:2,position:{my:"left top+2"},messages:{noResults:m("No results found."),results:function(e){return h(f("%d result found. Use up and down arrow keys to navigate.","%d results found. Use up and down arrow keys to navigate.",e),e)}}}).autocomplete("instance")._renderItem=function(e,t){var n=void 0!==window.wpLinkL10n?window.wpLinkL10n.noTitle:"",n=t.title||n;return p('<li role="option" id="mce-wp-autocomplete-'+t.ID+'">').append("<span>"+n+'</span>&nbsp;<span class="wp-editor-float-right">'+t.info+"</span>").appendTo(e)},n.attr({role:"combobox","aria-autocomplete":"list","aria-expanded":"false","aria-owns":n.autocomplete("widget").attr("id")}).on("focus",function(){var e=n.val();e&&!/^https?:/.test(e)&&n.autocomplete("search")}).autocomplete("widget").addClass("wplink-autocomplete").attr("role","listbox").removeAttr("tabindex").on("menufocus",function(e,t){t.item.attr("aria-selected","true")}).on("menublur",function(){p(this).find('[aria-selected="true"]').removeAttr("aria-selected")})),g.$(e).on("keydown",function(e){13===e.keyCode&&(l.execCommand("wp_link_apply"),e.preventDefault())})}}),l.on("wptoolbar",function(e){var t,n,i,o=l.dom.getParent(e.element,"a");void 0!==window.wpLink&&window.wpLink.modalOpen?r.tempHide=!0:(r.tempHide=!1,o?(n=(t=l.$(o)).attr("href"),i=t.attr("data-wplink-edit"),"_wp_link_placeholder"===n||i?("_wp_link_placeholder"===n||c.getURL()||c.setURL(n),e.element=o,e.toolbar=r):n&&!t.find("img").length&&(d.setURL(n),e.element=o,e.toolbar=a,"true"===t.attr("data-wplink-url-error")?a.$el.find(".wp-link-preview a").addClass("wplink-url-error"):(a.$el.find(".wp-link-preview a").removeClass("wplink-url-error"),k=!1))):r.visible()&&l.execCommand("wp_link_cancel"))}),l.addButton("wp_link_edit",{tooltip:"Edit|button",icon:"dashicon dashicons-edit",cmd:"WP_Link"}),l.addButton("wp_link_remove",{tooltip:"Remove link",icon:"dashicon dashicons-editor-unlink",cmd:"wp_unlink"}),l.addButton("wp_link_advanced",{tooltip:"Link options",icon:"dashicon dashicons-admin-generic",onclick:function(){var e,t;void 0!==window.wpLink&&(e=c.getURL()||null,t=c.getLinkText()||null,window.wpLink.open(l.id,e,t),r.tempHide=!0,r.hide())}}),l.addButton("wp_link_apply",{tooltip:"Apply",icon:"dashicon dashicons-editor-break",cmd:"wp_link_apply",classes:"widget btn primary"}),{close:function(){r.tempHide=!1,l.execCommand("wp_link_cancel")},checkLink:L}})}(window.tinymce);
+!function(L){L.ui.Factory.add("WPLinkPreview",L.ui.Control.extend({url:"#",renderHtml:function(){return'<div id="'+this._id+'" class="wp-link-preview"><a href="'+this.url+'" target="_blank" rel="noopener" tabindex="-1">'+this.url+"</a></div>"},setURL:function(e){var n,t;this.url!==e&&(this.url=e,40<(e=""===(e="/"===(e=(e=-1!==(n=(e=-1!==(n=(e=(e=window.decodeURIComponent(e)).replace(/^(?:https?:)?\/\/(?:www\.)?/,"")).indexOf("?"))?e.slice(0,n):e).indexOf("#"))?e.slice(0,n):e).replace(/(?:index)?\.html$/,"")).charAt(e.length-1)?e.slice(0,-1):e)?this.url:e).length&&-1!==(n=e.indexOf("/"))&&-1!==(t=e.lastIndexOf("/"))&&t!==n&&(n+e.length-t<40&&(t=-(40-(n+1))),e=e.slice(0,n+1)+"\u2026"+e.slice(t)),L.$(this.getEl().firstChild).attr("href",this.url).text(e))}})),L.ui.Factory.add("WPLinkInput",L.ui.Control.extend({renderHtml:function(){return'<div id="'+this._id+'" class="wp-link-input"><label for="'+this._id+'_label">'+L.translate("Paste URL or type to search")+'</label><input id="'+this._id+'_label" type="text" value="" /><input type="text" style="display:none" value="" /></div>'},setURL:function(e){this.getEl().firstChild.nextSibling.value=e},getURL:function(){return L.trim(this.getEl().firstChild.nextSibling.value)},getLinkText:function(){var e=this.getEl().firstChild.nextSibling.nextSibling.value;return L.trim(e)?e.replace(/[\r\n\t ]+/g," "):""},reset:function(){var e=this.getEl().firstChild.nextSibling;e.value="",e.nextSibling.value=""}})),L.PluginManager.add("wplink",function(l){var a,r,d,c,i,t,n,p=window.jQuery,o=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i,s=/^https?:\/\/([^\s/?.#-][^\s\/?.#]*\.?)+(\/[^\s"]*)?$/i,u=/^https?:\/\/[^\/]+\.[^\/]+($|\/)/i,w=void 0!==window.wp&&window.wp.a11y&&window.wp.a11y.speak?window.wp.a11y.speak:function(){},k=!1,m=window.wp.i18n.__,f=window.wp.i18n._n,h=window.wp.i18n.sprintf;function _(){l.$("a").each(function(e,n){var t=l.$(n);"_wp_link_placeholder"===t.attr("href")?l.dom.remove(n,!0):t.attr("data-wplink-edit")&&t.attr("data-wplink-edit",null)})}function v(e,i){return e.replace(/(<a [^>]+>)([\s\S]*?)<\/a>/g,function(e,n,t){return-1<n.indexOf(' href="_wp_link_placeholder"')?t:(n=(n=i?n.replace(/ data-wplink-edit="true"/g,""):n).replace(/ data-wplink-url-error="true"/g,""))+t+"</a>"})}function g(e){var e=l.$(e),n=e.attr("href");n&&void 0!==p&&(k=!1,!/^http/i.test(n)||s.test(n)&&u.test(n)?e.removeAttr("data-wplink-url-error"):(k=!0,e.attr("data-wplink-url-error","true"),w(l.translate("Warning: the link has been inserted but may have errors. Please test it."),"assertive")))}return l.on("preinit",function(){var e;l.wp&&l.wp._createToolbar&&(a=l.wp._createToolbar(["wp_link_preview","wp_link_edit","wp_link_remove"],!0),e=["wp_link_input","wp_link_apply"],void 0!==window.wpLink&&e.push("wp_link_advanced"),(r=l.wp._createToolbar(e,!0)).on("show",function(){void 0!==window.wpLink&&window.wpLink.modalOpen||window.setTimeout(function(){var e=r.$el.find("input.ui-autocomplete-input")[0],n=i&&(i.textContent||i.innerText);e&&(!e.value&&n&&void 0!==window.wpLink&&(e.value=window.wpLink.getUrlFromSelection(n)),t||(e.focus(),e.select()))})}),r.on("hide",function(){r.scrolling||l.execCommand("wp_link_cancel")}))}),l.addCommand("WP_Link",function(){var e,n,t;L.Env.ie&&L.Env.ie<10&&void 0!==window.wpLink?window.wpLink.open(l.id):(n=l.selection.getStart(),(t=l.dom.getParent(n,"a[href]"))||(e=l.selection.getContent({format:"raw"}))&&-1!==e.indexOf("</a>")&&(t=(e=e.match(/href="([^">]+)"/))&&e[1]?l.$('a[href="'+e[1]+'"]',n)[0]:t)&&l.selection.select(t),i=t,r.tempHide=!1,i||(_(),l.execCommand("mceInsertLink",!1,{href:"_wp_link_placeholder"}),i=l.$('a[href="_wp_link_placeholder"]')[0],l.nodeChanged()),l.dom.setAttribs(i,{"data-wplink-edit":!0}))}),l.addCommand("wp_link_apply",function(){if(!r.scrolling){var e,n;if(i){e=c.getURL(),n=c.getLinkText(),l.focus();var t=document.createElement("a");if(t.href=e,!(e="javascript:"!==t.protocol&&"data:"!==t.protocol?e:""))return void l.dom.remove(i,!0);/^(?:[a-z]+:|#|\?|\.|\/)/.test(e)||o.test(e)||(e="http://"+e),l.dom.setAttribs(i,{href:e,"data-wplink-edit":null}),L.trim(i.innerHTML)||l.$(i).text(n||e),g(i)}c.reset(),l.nodeChanged(),void 0===window.wpLinkL10n||k||w(window.wpLinkL10n.linkInserted)}}),l.addCommand("wp_link_cancel",function(){c.reset(),r.tempHide||_()}),l.addCommand("wp_unlink",function(){l.execCommand("unlink"),r.tempHide=!1,l.execCommand("wp_link_cancel")}),l.addShortcut("access+a","","WP_Link"),l.addShortcut("access+s","","wp_unlink"),l.addShortcut("meta+k","","WP_Link"),l.addButton("link",{icon:"link",tooltip:"Insert/edit link",cmd:"WP_Link",stateSelector:"a[href]"}),l.addButton("unlink",{icon:"unlink",tooltip:"Remove link",cmd:"unlink"}),l.addMenuItem("link",{icon:"link",text:"Insert/edit link",cmd:"WP_Link",stateSelector:"a[href]",context:"insert",prependToContext:!0}),l.on("pastepreprocess",function(e){var n=e.content,t=/^(?:https?:)?\/\/\S+$/i;l.selection.isCollapsed()||t.test(l.selection.getContent())||(n=n.replace(/<[^>]+>/g,""),n=L.trim(n),t.test(n)&&(l.execCommand("mceInsertLink",!1,{href:l.dom.decode(n)}),e.preventDefault()))}),l.on("savecontent",function(e){e.content=v(e.content,!0)}),l.on("BeforeAddUndo",function(e){e.lastLevel&&e.lastLevel.content&&e.level.content&&e.lastLevel.content===v(e.level.content)&&e.preventDefault()}),l.on("keydown",function(e){27===e.keyCode&&l.execCommand("wp_link_cancel"),e.altKey||L.Env.mac&&(!e.metaKey||e.ctrlKey)||!L.Env.mac&&!e.ctrlKey||89!==e.keyCode&&90!==e.keyCode||(t=!0,window.clearTimeout(n),n=window.setTimeout(function(){t=!1},500))}),l.addButton("wp_link_preview",{type:"WPLinkPreview",onPostRender:function(){d=this}}),l.addButton("wp_link_input",{type:"WPLinkInput",onPostRender:function(){var t,i,o,a=this.getEl(),e=a.firstChild.nextSibling;c=this,p&&p.ui&&p.ui.autocomplete&&((t=p(e)).on("keydown",function(){t.removeAttr("aria-activedescendant")}).autocomplete({source:function(e,n){if(o===e.term)n(i);else{if(/^https?:/.test(e.term)||-1!==e.term.indexOf("."))return n();p.post(window.ajaxurl,{action:"wp-link-ajax",page:1,search:e.term,_ajax_linking_nonce:p("#_ajax_linking_nonce").val()},function(e){n(i=e)},"json"),o=e.term}},focus:function(e,n){t.attr("aria-activedescendant","mce-wp-autocomplete-"+n.item.ID),e.preventDefault()},select:function(e,n){return t.val(n.item.permalink),p(a.firstChild.nextSibling.nextSibling).val(n.item.title),9===e.keyCode&&void 0!==window.wpLinkL10n&&w(window.wpLinkL10n.linkSelected),!1},open:function(){t.attr("aria-expanded","true"),r.blockHide=!0},close:function(){t.attr("aria-expanded","false"),r.blockHide=!1},minLength:2,position:{my:"left top+2"},messages:{noResults:m("No results found."),results:function(e){return h(f("%d result found. Use up and down arrow keys to navigate.","%d results found. Use up and down arrow keys to navigate.",e),e)}}}).autocomplete("instance")._renderItem=function(e,n){var t=void 0!==window.wpLinkL10n?window.wpLinkL10n.noTitle:"",t=n.title||t;return p('<li role="option" id="mce-wp-autocomplete-'+n.ID+'">').append("<span>"+t+'</span>&nbsp;<span class="wp-editor-float-right">'+n.info+"</span>").appendTo(e)},t.attr({role:"combobox","aria-autocomplete":"list","aria-expanded":"false","aria-owns":t.autocomplete("widget").attr("id")}).on("focus",function(){var e=t.val();e&&!/^https?:/.test(e)&&t.autocomplete("search")}).autocomplete("widget").addClass("wplink-autocomplete").attr("role","listbox").removeAttr("tabindex").on("menufocus",function(e,n){n.item.attr("aria-selected","true")}).on("menublur",function(){p(this).find('[aria-selected="true"]').removeAttr("aria-selected")})),L.$(e).on("keydown",function(e){13===e.keyCode&&(l.execCommand("wp_link_apply"),e.preventDefault())})}}),l.on("wptoolbar",function(e){var n,t,i,o=l.dom.getParent(e.element,"a");void 0!==window.wpLink&&window.wpLink.modalOpen?r.tempHide=!0:(r.tempHide=!1,o?(t=(n=l.$(o)).attr("href"),i=n.attr("data-wplink-edit"),"_wp_link_placeholder"===t||i?("_wp_link_placeholder"===t||c.getURL()||c.setURL(t),e.element=o,e.toolbar=r):t&&!n.find("img").length&&(d.setURL(t),e.element=o,e.toolbar=a,"true"===n.attr("data-wplink-url-error")?a.$el.find(".wp-link-preview a").addClass("wplink-url-error"):(a.$el.find(".wp-link-preview a").removeClass("wplink-url-error"),k=!1))):r.visible()&&l.execCommand("wp_link_cancel"))}),l.addButton("wp_link_edit",{tooltip:"Edit|button",icon:"dashicon dashicons-edit",cmd:"WP_Link"}),l.addButton("wp_link_remove",{tooltip:"Remove link",icon:"dashicon dashicons-editor-unlink",cmd:"wp_unlink"}),l.addButton("wp_link_advanced",{tooltip:"Link options",icon:"dashicon dashicons-admin-generic",onclick:function(){var e,n;void 0!==window.wpLink&&(e=c.getURL()||null,n=c.getLinkText()||null,window.wpLink.open(l.id,e,n),r.tempHide=!0,r.hide())}}),l.addButton("wp_link_apply",{tooltip:"Apply",icon:"dashicon dashicons-editor-break",cmd:"wp_link_apply",classes:"widget btn primary"}),{close:function(){r.tempHide=!1,l.execCommand("wp_link_cancel")},checkLink:g}})}(window.tinymce);
// Source: wp-includes/js/tinymce/plugins/wptextpattern/plugin.min.js
!function(u,p){function h(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}u.Env.ie&&u.Env.ie<9||u.PluginManager.add("wptextpattern",function(s){var f,d=u.util.VK,e=s.settings.wptextpattern||{},t=e.space||[{regExp:/^[*-]\s/,cmd:"InsertUnorderedList"},{regExp:/^1[.)]\s/,cmd:"InsertOrderedList"}],l=e.enter||[{start:"##",format:"h2"},{start:"###",format:"h3"},{start:"####",format:"h4"},{start:"#####",format:"h5"},{start:"######",format:"h6"},{start:">",format:"blockquote"},{regExp:/^(-){3,}$/,element:"hr"}],a=e.inline||[{delimiter:"`",format:"code"}];function c(){var r,i,o,t,d,l,e=s.selection.getRng(),n=e.startContainer,c=e.startOffset;n&&3===n.nodeType&&n.data.length&&c&&(d=n.data.slice(0,c),l=n.data.charAt(c-1),u.each(a,function(e){if(l===e.delimiter.slice(-1)){var t=h(e.delimiter),n=e.delimiter.charAt(0),t=new RegExp("(.*)"+t+".+"+t+"$"),t=d.match(t);if(t){r=t[1].length,i=c-e.delimiter.length;var t=d.charAt(r-1),a=d.charAt(r+e.delimiter.length);if(!(r&&/\S/.test(t)&&(/\s/.test(a)||t===n)||new RegExp("^[\\s"+h(n)+"]+$").test(d.slice(r,i))))return o=e,!1}}}),o)&&(e=s.formatter.get(o.format))&&e[0].inline&&(s.undoManager.add(),s.undoManager.transact(function(){n.insertData(c,"\ufeff"),n=n.splitText(r),t=n.splitText(c-r),n.deleteData(0,o.delimiter.length),n.deleteData(n.data.length-o.delimiter.length,o.delimiter.length),s.formatter.apply(o.format,{},n),s.selection.setCursorLocation(t,1)}),p(function(){f="space",s.once("selectionchange",function(){var e;t&&-1!==(e=t.data.indexOf("\ufeff"))&&t.deleteData(e,e+1)})}))}function g(e){var t,n=s.dom.getParent(e,"p");if(n){for(;(t=n.firstChild)&&3!==t.nodeType;)n=t;if(t)return t=t.data?t:t.nextSibling&&3===t.nextSibling.nodeType?t.nextSibling:null}}function m(){var n,a,r=s.selection.getRng(),i=r.startContainer;i&&g(i)===i&&(n=i.parentNode,a=i.data,u.each(t,function(e){var t=a.match(e.regExp);if(t&&r.startOffset===t[0].length)return s.undoManager.add(),s.undoManager.transact(function(){i.deleteData(0,t[0].length),n.innerHTML||n.appendChild(document.createElement("br")),s.selection.setCursorLocation(n),s.execCommand(e.cmd)}),p(function(){f="space"}),!1}))}s.on("selectionchange",function(){f=null}),s.on("keydown",function(e){if((f&&27===e.keyCode||"space"===f&&e.keyCode===d.BACKSPACE)&&(s.undoManager.undo(),e.preventDefault(),e.stopImmediatePropagation()),!d.metaKeyPressed(e))if(e.keyCode===d.ENTER){var t,n,a,r=s.selection.getRng().startContainer,i=g(r),o=l.length;if(i){for(t=i.data;o--;)if(l[o].start){if(0===t.indexOf(l[o].start)){n=l[o];break}}else if(l[o].regExp&&l[o].regExp.test(t)){n=l[o];break}!n||i===r&&u.trim(t)===n.start||s.once("keyup",function(){s.undoManager.add(),s.undoManager.transact(function(){var e;n.format?(s.formatter.apply(n.format,{},i),i.replaceData(0,i.data.length,(e=i.data.slice(n.start.length))?e.replace(/^\s+/,""):"")):n.element&&(a=i.parentNode&&i.parentNode.parentNode)&&a.replaceChild(document.createElement(n.element),i.parentNode)}),p(function(){f="enter"})})}}else e.keyCode===d.SPACEBAR?p(m):47<e.keyCode&&!(91<=e.keyCode&&e.keyCode<=93)&&p(c)},!0)})}(window.tinymce,window.setTimeout);
// Source: wp-includes/js/tinymce/plugins/wpview/plugin.min.js
diff --git a/wp-includes/js/wp-ajax-response.js b/wp-includes/js/wp-ajax-response.js
index 3fd6ff0..af59d81 100644
--- a/wp-includes/js/wp-ajax-response.js
+++ b/wp-includes/js/wp-ajax-response.js
@@ -53,10 +53,10 @@ window.wpAjax = jQuery.extend( {
parsed.responses.push( response );
} );
if ( err.length ) {
- re.html( '<div class="notice notice-error">' + err + '</div>' );
+ re.html( '<div class="notice notice-error" role="alert">' + err + '</div>' );
wp.a11y.speak( err );
} else if ( noticeMessage.length ) {
- re.html( '<div class="notice notice-success is-dismissible"><p>' + noticeMessage + '</p></div>');
+ re.html( '<div class="notice notice-success is-dismissible" role="alert"><p>' + noticeMessage + '</p></div>');
jQuery(document).trigger( 'wp-updates-notice-added' );
wp.a11y.speak( noticeMessage );
}
@@ -64,15 +64,15 @@ window.wpAjax = jQuery.extend( {
}
if ( isNaN( x ) ) {
wp.a11y.speak( x );
- return ! re.html( '<div class="notice notice-error"><p>' + x + '</p></div>' );
+ return ! re.html( '<div class="notice notice-error" role="alert"><p>' + x + '</p></div>' );
}
x = parseInt( x, 10 );
if ( -1 === x ) {
wp.a11y.speak( wpAjax.noPerm );
- return ! re.html( '<div class="notice notice-error"><p>' + wpAjax.noPerm + '</p></div>' );
+ return ! re.html( '<div class="notice notice-error" role="alert"><p>' + wpAjax.noPerm + '</p></div>' );
} else if ( 0 === x ) {
wp.a11y.speak( wpAjax.broken );
- return ! re.html( '<div class="notice notice-error"><p>' + wpAjax.broken + '</p></div>' );
+ return ! re.html( '<div class="notice notice-error" role="alert"><p>' + wpAjax.broken + '</p></div>' );
}
return true;
},
diff --git a/wp-includes/js/wp-ajax-response.min.js b/wp-includes/js/wp-ajax-response.min.js
index 5abffd7..4cfd7ac 100644
--- a/wp-includes/js/wp-ajax-response.min.js
+++ b/wp-includes/js/wp-ajax-response.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-window.wpAjax=jQuery.extend({unserialize:function(e){var t,r,i,n,a={};if(e)for(i in r=(e=(t=e.split("?"))[1]?t[1]:e).split("&"))"function"==typeof r.hasOwnProperty&&!r.hasOwnProperty(i)||(a[(n=r[i].split("="))[0]]=n[1]);return a},parseAjaxResponse:function(n,e,a){var o={},e=jQuery("#"+e).empty(),s="",r="";return n&&"object"==typeof n&&n.getElementsByTagName("wp_ajax")?(o.responses=[],o.errors=!1,jQuery("response",n).each(function(){var e=jQuery(this),t=jQuery(this.firstChild),i={action:e.attr("action"),what:t.get(0).nodeName,id:t.attr("id"),oldId:t.attr("old_id"),position:t.attr("position")};i.data=jQuery("response_data",t).text(),i.supplemental={},jQuery("supplemental",t).children().each(function(){"notice"===this.nodeName?r+=jQuery(this).text():i.supplemental[this.nodeName]=jQuery(this).text()}).length||(i.supplemental=!1),i.errors=[],jQuery("wp_error",t).each(function(){var e=jQuery(this).attr("code"),t={code:e,message:this.firstChild.nodeValue,data:!1},r=jQuery('wp_error_data[code="'+e+'"]',n);r&&(t.data=r.get()),(r=jQuery("form-field",r).text())&&(e=r),a&&wpAjax.invalidateForm(jQuery("#"+a+' :input[name="'+e+'"]').parents(".form-field:first")),s+="<p>"+t.message+"</p>",i.errors.push(t),o.errors=!0}).length||(i.errors=!1),o.responses.push(i)}),s.length?(e.html('<div class="notice notice-error">'+s+"</div>"),wp.a11y.speak(s)):r.length&&(e.html('<div class="notice notice-success is-dismissible"><p>'+r+"</p></div>"),jQuery(document).trigger("wp-updates-notice-added"),wp.a11y.speak(r)),o):isNaN(n)?(wp.a11y.speak(n),!e.html('<div class="notice notice-error"><p>'+n+"</p></div>")):-1===(n=parseInt(n,10))?(wp.a11y.speak(wpAjax.noPerm),!e.html('<div class="notice notice-error"><p>'+wpAjax.noPerm+"</p></div>")):0!==n||(wp.a11y.speak(wpAjax.broken),!e.html('<div class="notice notice-error"><p>'+wpAjax.broken+"</p></div>"))},invalidateForm:function(e){return jQuery(e).addClass("form-invalid").find("input").one("change wp-check-valid-field",function(){jQuery(this).closest(".form-invalid").removeClass("form-invalid")})},validateForm:function(e){return e=jQuery(e),!wpAjax.invalidateForm(e.find(".form-required").filter(function(){return""===jQuery("input:visible",this).val()})).length}},wpAjax||{noPerm:"Sorry, you are not allowed to do that.",broken:"Something went wrong."}),jQuery(function(e){e("form.validate").on("submit",function(){return wpAjax.validateForm(e(this))})}); \ No newline at end of file
+window.wpAjax=jQuery.extend({unserialize:function(e){var r,t,i,a,n={};if(e)for(i in t=(e=(r=e.split("?"))[1]?r[1]:e).split("&"))"function"==typeof t.hasOwnProperty&&!t.hasOwnProperty(i)||(n[(a=t[i].split("="))[0]]=a[1]);return n},parseAjaxResponse:function(a,e,n){var o={},e=jQuery("#"+e).empty(),s="",t="";return a&&"object"==typeof a&&a.getElementsByTagName("wp_ajax")?(o.responses=[],o.errors=!1,jQuery("response",a).each(function(){var e=jQuery(this),r=jQuery(this.firstChild),i={action:e.attr("action"),what:r.get(0).nodeName,id:r.attr("id"),oldId:r.attr("old_id"),position:r.attr("position")};i.data=jQuery("response_data",r).text(),i.supplemental={},jQuery("supplemental",r).children().each(function(){"notice"===this.nodeName?t+=jQuery(this).text():i.supplemental[this.nodeName]=jQuery(this).text()}).length||(i.supplemental=!1),i.errors=[],jQuery("wp_error",r).each(function(){var e=jQuery(this).attr("code"),r={code:e,message:this.firstChild.nodeValue,data:!1},t=jQuery('wp_error_data[code="'+e+'"]',a);t&&(r.data=t.get()),(t=jQuery("form-field",t).text())&&(e=t),n&&wpAjax.invalidateForm(jQuery("#"+n+' :input[name="'+e+'"]').parents(".form-field:first")),s+="<p>"+r.message+"</p>",i.errors.push(r),o.errors=!0}).length||(i.errors=!1),o.responses.push(i)}),s.length?(e.html('<div class="notice notice-error" role="alert">'+s+"</div>"),wp.a11y.speak(s)):t.length&&(e.html('<div class="notice notice-success is-dismissible" role="alert"><p>'+t+"</p></div>"),jQuery(document).trigger("wp-updates-notice-added"),wp.a11y.speak(t)),o):isNaN(a)?(wp.a11y.speak(a),!e.html('<div class="notice notice-error" role="alert"><p>'+a+"</p></div>")):-1===(a=parseInt(a,10))?(wp.a11y.speak(wpAjax.noPerm),!e.html('<div class="notice notice-error" role="alert"><p>'+wpAjax.noPerm+"</p></div>")):0!==a||(wp.a11y.speak(wpAjax.broken),!e.html('<div class="notice notice-error" role="alert"><p>'+wpAjax.broken+"</p></div>"))},invalidateForm:function(e){return jQuery(e).addClass("form-invalid").find("input").one("change wp-check-valid-field",function(){jQuery(this).closest(".form-invalid").removeClass("form-invalid")})},validateForm:function(e){return e=jQuery(e),!wpAjax.invalidateForm(e.find(".form-required").filter(function(){return""===jQuery("input:visible",this).val()})).length}},wpAjax||{noPerm:"Sorry, you are not allowed to do that.",broken:"Something went wrong."}),jQuery(function(e){e("form.validate").on("submit",function(){return wpAjax.validateForm(e(this))})}); \ No newline at end of file
diff --git a/wp-includes/js/wp-backbone.js b/wp-includes/js/wp-backbone.js
index 74297e8..4fd194f 100644
--- a/wp-includes/js/wp-backbone.js
+++ b/wp-includes/js/wp-backbone.js
@@ -310,7 +310,7 @@ window.wp = window.wp || {};
* @since 3.6.0
*
* @param {Object} options Options for call.
- * @param {boolean} options.silent If true, `unset` wil *not* be triggered on
+ * @param {boolean} options.silent If true, `unset` will *not* be triggered on
* the master views' parent.
*
* @return {wp.Backbone.Subviews} The current Subviews instance.
diff --git a/wp-includes/js/wplink.js b/wp-includes/js/wplink.js
index 89adf33..e4708e4 100644
--- a/wp-includes/js/wplink.js
+++ b/wp-includes/js/wplink.js
@@ -105,6 +105,7 @@
var ed,
$body = $( document.body );
+ $( '#wpwrap' ).attr( 'aria-hidden', 'true' );
$body.addClass( 'modal-open' );
wpLink.modalOpen = true;
@@ -281,6 +282,7 @@
close: function( reset ) {
$( document.body ).removeClass( 'modal-open' );
+ $( '#wpwrap' ).removeAttr( 'aria-hidden' );
wpLink.modalOpen = false;
if ( reset !== 'noReset' ) {
diff --git a/wp-includes/js/wplink.min.js b/wp-includes/js/wplink.min.js
index f46a197..321e433 100644
--- a/wp-includes/js/wplink.min.js
+++ b/wp-includes/js/wplink.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-!function(s,l,o){var c,e,t,n,i,h=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,63}$/i,u=/^(https?|ftp):\/\/[A-Z0-9.-]+\.[A-Z]{2,63}[^ "]*$/i,p={},a={},r="ontouchend"in document;function d(){return c?c.$('a[data-wplink-edit="true"]'):null}window.wpLink={timeToTriggerRiver:150,minRiverAJAXDuration:200,riverBottomThreshold:5,keySensitivity:100,lastSearch:"",textarea:"",modalOpen:!1,init:function(){p.wrap=s("#wp-link-wrap"),p.dialog=s("#wp-link"),p.backdrop=s("#wp-link-backdrop"),p.submit=s("#wp-link-submit"),p.close=s("#wp-link-close"),p.text=s("#wp-link-text"),p.url=s("#wp-link-url"),p.nonce=s("#_ajax_linking_nonce"),p.openInNewTab=s("#wp-link-target"),p.search=s("#wp-link-search"),a.search=new t(s("#search-results")),a.recent=new t(s("#most-recent-results")),a.elements=p.dialog.find(".query-results"),p.queryNotice=s("#query-notice-message"),p.queryNoticeTextDefault=p.queryNotice.find(".query-notice-default"),p.queryNoticeTextHint=p.queryNotice.find(".query-notice-hint"),p.dialog.on("keydown",wpLink.keydown),p.dialog.on("keyup",wpLink.keyup),p.submit.on("click",function(e){e.preventDefault(),wpLink.update()}),p.close.add(p.backdrop).add("#wp-link-cancel button").on("click",function(e){e.preventDefault(),wpLink.close()}),a.elements.on("river-select",wpLink.updateFields),p.search.on("focus.wplink",function(){p.queryNoticeTextDefault.hide(),p.queryNoticeTextHint.removeClass("screen-reader-text").show()}).on("blur.wplink",function(){p.queryNoticeTextDefault.show(),p.queryNoticeTextHint.addClass("screen-reader-text").hide()}),p.search.on("keyup input",function(){window.clearTimeout(e),e=window.setTimeout(function(){wpLink.searchInternalLinks()},500)}),p.url.on("paste",function(){setTimeout(wpLink.correctURL,0)}),p.url.on("blur",wpLink.correctURL)},correctURL:function(){var e=p.url.val().trim();e&&i!==e&&!/^(?:[a-z]+:|#|\?|\.|\/)/.test(e)&&(p.url.val("http://"+e),i=e)},open:function(e,t,n){var i=s(document.body);i.addClass("modal-open"),wpLink.modalOpen=!0,wpLink.range=null,e&&(window.wpActiveEditor=e),window.wpActiveEditor&&(this.textarea=s("#"+window.wpActiveEditor).get(0),void 0!==window.tinymce&&(i.append(p.backdrop,p.wrap),e=window.tinymce.get(window.wpActiveEditor),c=e&&!e.isHidden()?e:null),!wpLink.isMCE()&&document.selection&&(this.textarea.focus(),this.range=document.selection.createRange()),p.wrap.show(),p.backdrop.show(),wpLink.refresh(t,n),s(document).trigger("wplink-open",p.wrap))},isMCE:function(){return c&&!c.isHidden()},refresh:function(e,t){a.search.refresh(),a.recent.refresh(),wpLink.isMCE()?wpLink.mceRefresh(e,t):(p.wrap.hasClass("has-text-field")||p.wrap.addClass("has-text-field"),document.selection?document.selection.createRange().text:void 0!==this.textarea.selectionStart&&this.textarea.selectionStart!==this.textarea.selectionEnd&&(t=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd)||t||""),p.text.val(t),wpLink.setDefaultValues()),r?p.url.trigger("focus").trigger("blur"):window.setTimeout(function(){p.url[0].select(),p.url.trigger("focus")}),a.recent.ul.children().length||a.recent.ajax(),i=p.url.val().replace(/^http:\/\//,"")},hasSelectedText:function(e){var t,n,i,a=c.selection.getContent();if(/</.test(a)&&(!/^<a [^>]+>[^<]+<\/a>$/.test(a)||-1===a.indexOf("href=")))return!1;if(e.length){if(!(n=e[0].childNodes)||!n.length)return!1;for(i=n.length-1;0<=i;i--)if(3!=(t=n[i]).nodeType&&!window.tinymce.dom.BookmarkManager.isBookmarkNode(t))return!1}return!0},mceRefresh:function(e,t){var n,i,a=d(),r=this.hasSelectedText(a);a.length?(n=a.text(),i=a.attr("href"),n.trim()||(n=t||""),"_wp_link_placeholder"!==(i=e&&(u.test(e)||h.test(e))?e:i)?(p.url.val(i),p.openInNewTab.prop("checked","_blank"===a.attr("target")),p.submit.val(l.update)):this.setDefaultValues(n),e&&e!==i?p.search.val(e):p.search.val(""),window.setTimeout(function(){wpLink.searchInternalLinks()})):(n=c.selection.getContent({format:"text"})||t||"",this.setDefaultValues(n)),r?(p.text.val(n),p.wrap.addClass("has-text-field")):(p.text.val(""),p.wrap.removeClass("has-text-field"))},close:function(e){s(document.body).removeClass("modal-open"),wpLink.modalOpen=!1,"noReset"!==e&&(wpLink.isMCE()?(c.plugins.wplink&&c.plugins.wplink.close(),c.focus()):(wpLink.textarea.focus(),wpLink.range&&(wpLink.range.moveToBookmark(wpLink.range.getBookmark()),wpLink.range.select()))),p.backdrop.hide(),p.wrap.hide(),i=!1,s(document).trigger("wplink-close",p.wrap)},getAttrs:function(){return wpLink.correctURL(),{href:p.url.val().trim(),target:p.openInNewTab.prop("checked")?"_blank":null}},buildHtml:function(e){var t='<a href="'+e.href+'"';return e.target&&(t+=' rel="noopener" target="'+e.target+'"'),t+">"},update:function(){wpLink.isMCE()?wpLink.mceUpdate():wpLink.htmlUpdate()},htmlUpdate:function(){var e,t,n,i,a,r=wpLink.textarea;r&&(n=wpLink.getAttrs(),i=p.text.val(),(a=document.createElement("a")).href=n.href,"javascript:"!==a.protocol&&"data:"!==a.protocol||(n.href=""),n.href)&&(a=wpLink.buildHtml(n),document.selection&&wpLink.range?(r.focus(),wpLink.range.text=a+(i||wpLink.range.text)+"</a>",wpLink.range.moveToBookmark(wpLink.range.getBookmark()),wpLink.range.select(),wpLink.range=null):void 0!==r.selectionStart&&(n=r.selectionStart,e=r.selectionEnd,t=n+(a=a+(i=i||r.value.substring(n,e))+"</a>").length,n!==e||i||(t-=4),r.value=r.value.substring(0,n)+a+r.value.substring(e,r.value.length),r.selectionStart=r.selectionEnd=t),wpLink.close(),r.focus(),s(r).trigger("change"),o.a11y.speak(l.linkInserted))},mceUpdate:function(){var e,t,n,i=wpLink.getAttrs(),a=document.createElement("a");a.href=i.href,"javascript:"!==a.protocol&&"data:"!==a.protocol||(i.href=""),i.href?(e=d(),c.undoManager.transact(function(){e.length||(c.execCommand("mceInsertLink",!1,{href:"_wp_link_placeholder","data-wp-temp-link":1}),e=c.$('a[data-wp-temp-link="1"]').removeAttr("data-wp-temp-link"),n=e.text().trim()),e.length?(p.wrap.hasClass("has-text-field")&&((t=p.text.val())?e.text(t):n||e.text(i.href)),i["data-wplink-edit"]=null,i["data-mce-href"]=i.href,e.attr(i)):c.execCommand("unlink")}),wpLink.close("noReset"),c.focus(),e.length&&(c.selection.select(e[0]),c.plugins.wplink)&&c.plugins.wplink.checkLink(e[0]),c.nodeChanged(),o.a11y.speak(l.linkInserted)):(c.execCommand("unlink"),wpLink.close())},updateFields:function(e,t){p.url.val(t.children(".item-permalink").val()),p.wrap.hasClass("has-text-field")&&!p.text.val()&&p.text.val(t.children(".item-title").text())},getUrlFromSelection:function(e){return e||(this.isMCE()?e=c.selection.getContent({format:"text"}):document.selection&&wpLink.range?e=wpLink.range.text:void 0!==this.textarea.selectionStart&&(e=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd))),(e=(e=e||"").trim())&&h.test(e)?"mailto:"+e:e&&u.test(e)?e.replace(/&amp;|&#0?38;/gi,"&"):""},setDefaultValues:function(e){p.url.val(this.getUrlFromSelection(e)),p.search.val(""),wpLink.searchInternalLinks(),p.submit.val(l.save)},searchInternalLinks:function(){var e,t=p.search.val()||"",n=parseInt(l.minInputLength,10)||3;t.length>=n?(a.recent.hide(),a.search.show(),wpLink.lastSearch!=t&&(wpLink.lastSearch=t,e=p.search.parent().find(".spinner").addClass("is-active"),a.search.change(t),a.search.ajax(function(){e.removeClass("is-active")}))):(a.search.hide(),a.recent.show())},next:function(){a.search.next(),a.recent.next()},prev:function(){a.search.prev(),a.recent.prev()},keydown:function(e){var t;27===e.keyCode?(wpLink.close(),e.stopImmediatePropagation()):9===e.keyCode&&("wp-link-submit"!==(t=e.target.id)||e.shiftKey?"wp-link-close"===t&&e.shiftKey&&(p.submit.trigger("focus"),e.preventDefault()):(p.close.trigger("focus"),e.preventDefault())),e.shiftKey||38!==e.keyCode&&40!==e.keyCode||document.activeElement&&("link-title-field"===document.activeElement.id||"url-field"===document.activeElement.id)||(t=38===e.keyCode?"prev":"next",clearInterval(wpLink.keyInterval),wpLink[t](),wpLink.keyInterval=setInterval(wpLink[t],wpLink.keySensitivity),e.preventDefault())},keyup:function(e){38!==e.keyCode&&40!==e.keyCode||(clearInterval(wpLink.keyInterval),e.preventDefault())},delayedCallback:function(e,t){var n,i,a,r;return t?(setTimeout(function(){if(i)return e.apply(r,a);n=!0},t),function(){if(n)return e.apply(this,arguments);a=arguments,r=this,i=!0}):e}},t=function(e,t){var n=this;this.element=e,this.ul=e.children("ul"),this.contentHeight=e.children("#link-selector-height"),this.waiting=e.find(".river-waiting"),this.change(t),this.refresh(),s("#wp-link .query-results, #wp-link #link-selector").on("scroll",function(){n.maybeLoad()}),e.on("click","li",function(e){n.select(s(this),e)})},s.extend(t.prototype,{refresh:function(){this.deselect(),this.visible=this.element.is(":visible")},show:function(){this.visible||(this.deselect(),this.element.show(),this.visible=!0)},hide:function(){this.element.hide(),this.visible=!1},select:function(e,t){var n,i,a,r;e.hasClass("unselectable")||e==this.selected||(this.deselect(),this.selected=e.addClass("selected"),n=e.outerHeight(),i=this.element.height(),a=e.position().top,r=this.element.scrollTop(),a<0?this.element.scrollTop(r+a):i<a+n&&this.element.scrollTop(r+a-i+n),this.element.trigger("river-select",[e,t,this]))},deselect:function(){this.selected&&this.selected.removeClass("selected"),this.selected=!1},prev:function(){var e;this.visible&&this.selected&&(e=this.selected.prev("li")).length&&this.select(e)},next:function(){var e;this.visible&&(e=this.selected?this.selected.next("li"):s("li:not(.unselectable):first",this.element)).length&&this.select(e)},ajax:function(n){var i=this,e=1==this.query.page?0:wpLink.minRiverAJAXDuration,e=wpLink.delayedCallback(function(e,t){i.process(e,t),n&&n(e,t)},e);this.query.ajax(e)},change:function(e){this.query&&this._search==e||(this._search=e,this.query=new n(e),this.element.scrollTop(0))},process:function(e,t){var n,i="",a=!0,t=1==t.page;e?s.each(e,function(){n=a?"alternate":"",n+=this.title?"":" no-title",i=(i=(i=(i+=n?'<li class="'+n+'">':"<li>")+'<input type="hidden" class="item-permalink" value="'+this.permalink+'" /><span class="item-title">')+(this.title||l.noTitle))+'</span><span class="item-info">'+this.info+"</span></li>",a=!a}):t&&(i+='<li class="unselectable no-matches-found"><span class="item-title"><em>'+l.noMatchesFound+"</em></span></li>"),this.ul[t?"html":"append"](i)},maybeLoad:function(){var n=this,i=this.element,e=i.scrollTop()+i.height();!this.query.ready()||e<this.contentHeight.height()-wpLink.riverBottomThreshold||setTimeout(function(){var e=i.scrollTop(),t=e+i.height();!n.query.ready()||t<n.contentHeight.height()-wpLink.riverBottomThreshold||(n.waiting.addClass("is-active"),i.scrollTop(e+n.waiting.outerHeight()),n.ajax(function(){n.waiting.removeClass("is-active")}))},wpLink.timeToTriggerRiver)}}),n=function(e){this.page=1,this.allLoaded=!1,this.querying=!1,this.search=e},s.extend(n.prototype,{ready:function(){return!(this.querying||this.allLoaded)},ajax:function(t){var n=this,i={action:"wp-link-ajax",page:this.page,_ajax_linking_nonce:p.nonce.val()};this.search&&(i.search=this.search),this.querying=!0,s.post(window.ajaxurl,i,function(e){n.page++,n.querying=!1,n.allLoaded=!e,t(e,i)},"json")}}),s(wpLink.init)}(jQuery,window.wpLinkL10n,window.wp); \ No newline at end of file
+!function(s,l,o){var c,e,t,n,i,h=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,63}$/i,u=/^(https?|ftp):\/\/[A-Z0-9.-]+\.[A-Z]{2,63}[^ "]*$/i,p={},a={},r="ontouchend"in document;function d(){return c?c.$('a[data-wplink-edit="true"]'):null}window.wpLink={timeToTriggerRiver:150,minRiverAJAXDuration:200,riverBottomThreshold:5,keySensitivity:100,lastSearch:"",textarea:"",modalOpen:!1,init:function(){p.wrap=s("#wp-link-wrap"),p.dialog=s("#wp-link"),p.backdrop=s("#wp-link-backdrop"),p.submit=s("#wp-link-submit"),p.close=s("#wp-link-close"),p.text=s("#wp-link-text"),p.url=s("#wp-link-url"),p.nonce=s("#_ajax_linking_nonce"),p.openInNewTab=s("#wp-link-target"),p.search=s("#wp-link-search"),a.search=new t(s("#search-results")),a.recent=new t(s("#most-recent-results")),a.elements=p.dialog.find(".query-results"),p.queryNotice=s("#query-notice-message"),p.queryNoticeTextDefault=p.queryNotice.find(".query-notice-default"),p.queryNoticeTextHint=p.queryNotice.find(".query-notice-hint"),p.dialog.on("keydown",wpLink.keydown),p.dialog.on("keyup",wpLink.keyup),p.submit.on("click",function(e){e.preventDefault(),wpLink.update()}),p.close.add(p.backdrop).add("#wp-link-cancel button").on("click",function(e){e.preventDefault(),wpLink.close()}),a.elements.on("river-select",wpLink.updateFields),p.search.on("focus.wplink",function(){p.queryNoticeTextDefault.hide(),p.queryNoticeTextHint.removeClass("screen-reader-text").show()}).on("blur.wplink",function(){p.queryNoticeTextDefault.show(),p.queryNoticeTextHint.addClass("screen-reader-text").hide()}),p.search.on("keyup input",function(){window.clearTimeout(e),e=window.setTimeout(function(){wpLink.searchInternalLinks()},500)}),p.url.on("paste",function(){setTimeout(wpLink.correctURL,0)}),p.url.on("blur",wpLink.correctURL)},correctURL:function(){var e=p.url.val().trim();e&&i!==e&&!/^(?:[a-z]+:|#|\?|\.|\/)/.test(e)&&(p.url.val("http://"+e),i=e)},open:function(e,t,n){var i=s(document.body);s("#wpwrap").attr("aria-hidden","true"),i.addClass("modal-open"),wpLink.modalOpen=!0,wpLink.range=null,e&&(window.wpActiveEditor=e),window.wpActiveEditor&&(this.textarea=s("#"+window.wpActiveEditor).get(0),void 0!==window.tinymce&&(i.append(p.backdrop,p.wrap),e=window.tinymce.get(window.wpActiveEditor),c=e&&!e.isHidden()?e:null),!wpLink.isMCE()&&document.selection&&(this.textarea.focus(),this.range=document.selection.createRange()),p.wrap.show(),p.backdrop.show(),wpLink.refresh(t,n),s(document).trigger("wplink-open",p.wrap))},isMCE:function(){return c&&!c.isHidden()},refresh:function(e,t){a.search.refresh(),a.recent.refresh(),wpLink.isMCE()?wpLink.mceRefresh(e,t):(p.wrap.hasClass("has-text-field")||p.wrap.addClass("has-text-field"),document.selection?document.selection.createRange().text:void 0!==this.textarea.selectionStart&&this.textarea.selectionStart!==this.textarea.selectionEnd&&(t=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd)||t||""),p.text.val(t),wpLink.setDefaultValues()),r?p.url.trigger("focus").trigger("blur"):window.setTimeout(function(){p.url[0].select(),p.url.trigger("focus")}),a.recent.ul.children().length||a.recent.ajax(),i=p.url.val().replace(/^http:\/\//,"")},hasSelectedText:function(e){var t,n,i,a=c.selection.getContent();if(/</.test(a)&&(!/^<a [^>]+>[^<]+<\/a>$/.test(a)||-1===a.indexOf("href=")))return!1;if(e.length){if(!(n=e[0].childNodes)||!n.length)return!1;for(i=n.length-1;0<=i;i--)if(3!=(t=n[i]).nodeType&&!window.tinymce.dom.BookmarkManager.isBookmarkNode(t))return!1}return!0},mceRefresh:function(e,t){var n,i,a=d(),r=this.hasSelectedText(a);a.length?(n=a.text(),i=a.attr("href"),n.trim()||(n=t||""),"_wp_link_placeholder"!==(i=e&&(u.test(e)||h.test(e))?e:i)?(p.url.val(i),p.openInNewTab.prop("checked","_blank"===a.attr("target")),p.submit.val(l.update)):this.setDefaultValues(n),e&&e!==i?p.search.val(e):p.search.val(""),window.setTimeout(function(){wpLink.searchInternalLinks()})):(n=c.selection.getContent({format:"text"})||t||"",this.setDefaultValues(n)),r?(p.text.val(n),p.wrap.addClass("has-text-field")):(p.text.val(""),p.wrap.removeClass("has-text-field"))},close:function(e){s(document.body).removeClass("modal-open"),s("#wpwrap").removeAttr("aria-hidden"),wpLink.modalOpen=!1,"noReset"!==e&&(wpLink.isMCE()?(c.plugins.wplink&&c.plugins.wplink.close(),c.focus()):(wpLink.textarea.focus(),wpLink.range&&(wpLink.range.moveToBookmark(wpLink.range.getBookmark()),wpLink.range.select()))),p.backdrop.hide(),p.wrap.hide(),i=!1,s(document).trigger("wplink-close",p.wrap)},getAttrs:function(){return wpLink.correctURL(),{href:p.url.val().trim(),target:p.openInNewTab.prop("checked")?"_blank":null}},buildHtml:function(e){var t='<a href="'+e.href+'"';return e.target&&(t+=' rel="noopener" target="'+e.target+'"'),t+">"},update:function(){wpLink.isMCE()?wpLink.mceUpdate():wpLink.htmlUpdate()},htmlUpdate:function(){var e,t,n,i,a,r=wpLink.textarea;r&&(n=wpLink.getAttrs(),i=p.text.val(),(a=document.createElement("a")).href=n.href,"javascript:"!==a.protocol&&"data:"!==a.protocol||(n.href=""),n.href)&&(a=wpLink.buildHtml(n),document.selection&&wpLink.range?(r.focus(),wpLink.range.text=a+(i||wpLink.range.text)+"</a>",wpLink.range.moveToBookmark(wpLink.range.getBookmark()),wpLink.range.select(),wpLink.range=null):void 0!==r.selectionStart&&(n=r.selectionStart,e=r.selectionEnd,t=n+(a=a+(i=i||r.value.substring(n,e))+"</a>").length,n!==e||i||(t-=4),r.value=r.value.substring(0,n)+a+r.value.substring(e,r.value.length),r.selectionStart=r.selectionEnd=t),wpLink.close(),r.focus(),s(r).trigger("change"),o.a11y.speak(l.linkInserted))},mceUpdate:function(){var e,t,n,i=wpLink.getAttrs(),a=document.createElement("a");a.href=i.href,"javascript:"!==a.protocol&&"data:"!==a.protocol||(i.href=""),i.href?(e=d(),c.undoManager.transact(function(){e.length||(c.execCommand("mceInsertLink",!1,{href:"_wp_link_placeholder","data-wp-temp-link":1}),e=c.$('a[data-wp-temp-link="1"]').removeAttr("data-wp-temp-link"),n=e.text().trim()),e.length?(p.wrap.hasClass("has-text-field")&&((t=p.text.val())?e.text(t):n||e.text(i.href)),i["data-wplink-edit"]=null,i["data-mce-href"]=i.href,e.attr(i)):c.execCommand("unlink")}),wpLink.close("noReset"),c.focus(),e.length&&(c.selection.select(e[0]),c.plugins.wplink)&&c.plugins.wplink.checkLink(e[0]),c.nodeChanged(),o.a11y.speak(l.linkInserted)):(c.execCommand("unlink"),wpLink.close())},updateFields:function(e,t){p.url.val(t.children(".item-permalink").val()),p.wrap.hasClass("has-text-field")&&!p.text.val()&&p.text.val(t.children(".item-title").text())},getUrlFromSelection:function(e){return e||(this.isMCE()?e=c.selection.getContent({format:"text"}):document.selection&&wpLink.range?e=wpLink.range.text:void 0!==this.textarea.selectionStart&&(e=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd))),(e=(e=e||"").trim())&&h.test(e)?"mailto:"+e:e&&u.test(e)?e.replace(/&amp;|&#0?38;/gi,"&"):""},setDefaultValues:function(e){p.url.val(this.getUrlFromSelection(e)),p.search.val(""),wpLink.searchInternalLinks(),p.submit.val(l.save)},searchInternalLinks:function(){var e,t=p.search.val()||"",n=parseInt(l.minInputLength,10)||3;t.length>=n?(a.recent.hide(),a.search.show(),wpLink.lastSearch!=t&&(wpLink.lastSearch=t,e=p.search.parent().find(".spinner").addClass("is-active"),a.search.change(t),a.search.ajax(function(){e.removeClass("is-active")}))):(a.search.hide(),a.recent.show())},next:function(){a.search.next(),a.recent.next()},prev:function(){a.search.prev(),a.recent.prev()},keydown:function(e){var t;27===e.keyCode?(wpLink.close(),e.stopImmediatePropagation()):9===e.keyCode&&("wp-link-submit"!==(t=e.target.id)||e.shiftKey?"wp-link-close"===t&&e.shiftKey&&(p.submit.trigger("focus"),e.preventDefault()):(p.close.trigger("focus"),e.preventDefault())),e.shiftKey||38!==e.keyCode&&40!==e.keyCode||document.activeElement&&("link-title-field"===document.activeElement.id||"url-field"===document.activeElement.id)||(t=38===e.keyCode?"prev":"next",clearInterval(wpLink.keyInterval),wpLink[t](),wpLink.keyInterval=setInterval(wpLink[t],wpLink.keySensitivity),e.preventDefault())},keyup:function(e){38!==e.keyCode&&40!==e.keyCode||(clearInterval(wpLink.keyInterval),e.preventDefault())},delayedCallback:function(e,t){var n,i,a,r;return t?(setTimeout(function(){if(i)return e.apply(r,a);n=!0},t),function(){if(n)return e.apply(this,arguments);a=arguments,r=this,i=!0}):e}},t=function(e,t){var n=this;this.element=e,this.ul=e.children("ul"),this.contentHeight=e.children("#link-selector-height"),this.waiting=e.find(".river-waiting"),this.change(t),this.refresh(),s("#wp-link .query-results, #wp-link #link-selector").on("scroll",function(){n.maybeLoad()}),e.on("click","li",function(e){n.select(s(this),e)})},s.extend(t.prototype,{refresh:function(){this.deselect(),this.visible=this.element.is(":visible")},show:function(){this.visible||(this.deselect(),this.element.show(),this.visible=!0)},hide:function(){this.element.hide(),this.visible=!1},select:function(e,t){var n,i,a,r;e.hasClass("unselectable")||e==this.selected||(this.deselect(),this.selected=e.addClass("selected"),n=e.outerHeight(),i=this.element.height(),a=e.position().top,r=this.element.scrollTop(),a<0?this.element.scrollTop(r+a):i<a+n&&this.element.scrollTop(r+a-i+n),this.element.trigger("river-select",[e,t,this]))},deselect:function(){this.selected&&this.selected.removeClass("selected"),this.selected=!1},prev:function(){var e;this.visible&&this.selected&&(e=this.selected.prev("li")).length&&this.select(e)},next:function(){var e;this.visible&&(e=this.selected?this.selected.next("li"):s("li:not(.unselectable):first",this.element)).length&&this.select(e)},ajax:function(n){var i=this,e=1==this.query.page?0:wpLink.minRiverAJAXDuration,e=wpLink.delayedCallback(function(e,t){i.process(e,t),n&&n(e,t)},e);this.query.ajax(e)},change:function(e){this.query&&this._search==e||(this._search=e,this.query=new n(e),this.element.scrollTop(0))},process:function(e,t){var n,i="",a=!0,t=1==t.page;e?s.each(e,function(){n=a?"alternate":"",n+=this.title?"":" no-title",i=(i=(i=(i+=n?'<li class="'+n+'">':"<li>")+'<input type="hidden" class="item-permalink" value="'+this.permalink+'" /><span class="item-title">')+(this.title||l.noTitle))+'</span><span class="item-info">'+this.info+"</span></li>",a=!a}):t&&(i+='<li class="unselectable no-matches-found"><span class="item-title"><em>'+l.noMatchesFound+"</em></span></li>"),this.ul[t?"html":"append"](i)},maybeLoad:function(){var n=this,i=this.element,e=i.scrollTop()+i.height();!this.query.ready()||e<this.contentHeight.height()-wpLink.riverBottomThreshold||setTimeout(function(){var e=i.scrollTop(),t=e+i.height();!n.query.ready()||t<n.contentHeight.height()-wpLink.riverBottomThreshold||(n.waiting.addClass("is-active"),i.scrollTop(e+n.waiting.outerHeight()),n.ajax(function(){n.waiting.removeClass("is-active")}))},wpLink.timeToTriggerRiver)}}),n=function(e){this.page=1,this.allLoaded=!1,this.querying=!1,this.search=e},s.extend(n.prototype,{ready:function(){return!(this.querying||this.allLoaded)},ajax:function(t){var n=this,i={action:"wp-link-ajax",page:this.page,_ajax_linking_nonce:p.nonce.val()};this.search&&(i.search=this.search),this.querying=!0,s.post(window.ajaxurl,i,function(e){n.page++,n.querying=!1,n.allLoaded=!e,t(e,i)},"json")}}),s(wpLink.init)}(jQuery,window.wpLinkL10n,window.wp); \ No newline at end of file
diff --git a/wp-includes/kses.php b/wp-includes/kses.php
index cccb176..0ef5803 100644
--- a/wp-includes/kses.php
+++ b/wp-includes/kses.php
@@ -963,6 +963,7 @@ function wp_kses_version() {
* It also matches stray `>` characters.
*
* @since 1.0.0
+ * @since 6.6.0 Recognize additional forms of invalid HTML which convert into comments.
*
* @global array[]|string $pass_allowed_html An array of allowed HTML elements and attributes,
* or a context name such as 'post'.
@@ -981,7 +982,21 @@ function wp_kses_split( $content, $allowed_html, $allowed_protocols ) {
$pass_allowed_html = $allowed_html;
$pass_allowed_protocols = $allowed_protocols;
- return preg_replace_callback( '%(<!--.*?(-->|$))|(<[^>]*(>|$)|>)%', '_wp_kses_split_callback', $content );
+ $token_pattern = <<<REGEX
+~
+ ( # Detect comments of various flavors before attempting to find tags.
+ (<!--.*?(-->|$)) # - Normative HTML comments.
+ |
+ </[^a-zA-Z][^>]*> # - Closing tags with invalid tag names.
+ |
+ <![^>]*> # - Invalid markup declaration nodes. Not all invalid nodes
+ # are matched so as to avoid breaking legacy behaviors.
+ )
+ |
+ (<[^>]*(>|$)|>) # Tag-like spans of text.
+~x
+REGEX;
+ return preg_replace_callback( $token_pattern, '_wp_kses_split_callback', $content );
}
/**
@@ -1069,23 +1084,69 @@ function _wp_kses_split_callback( $matches ) {
* @access private
* @ignore
* @since 1.0.0
+ * @since 6.6.0 Recognize additional forms of invalid HTML which convert into comments.
*
* @param string $content Content to filter.
* @param array[]|string $allowed_html An array of allowed HTML elements and attributes,
* or a context name such as 'post'. See wp_kses_allowed_html()
* for the list of accepted context names.
* @param string[] $allowed_protocols Array of allowed URL protocols.
+ *
* @return string Fixed HTML element
*/
function wp_kses_split2( $content, $allowed_html, $allowed_protocols ) {
$content = wp_kses_stripslashes( $content );
- // It matched a ">" character.
+ /*
+ * The regex pattern used to split HTML into chunks attempts
+ * to split on HTML token boundaries. This function should
+ * thus receive chunks that _either_ start with meaningful
+ * syntax tokens, like a tag `<div>` or a comment `<!-- ... -->`.
+ *
+ * If the first character of the `$content` chunk _isn't_ one
+ * of these syntax elements, which always starts with `<`, then
+ * the match had to be for the final alternation of `>`. In such
+ * case, it's probably standing on its own and could be encoded
+ * with a character reference to remove ambiguity.
+ *
+ * In other words, if this chunk isn't from a match of a syntax
+ * token, it's just a plaintext greater-than (`>`) sign.
+ */
if ( ! str_starts_with( $content, '<' ) ) {
return '&gt;';
}
- // Allow HTML comments.
+ /*
+ * When certain invalid syntax constructs appear, the HTML parser
+ * shifts into what's called the "bogus comment state." This is a
+ * plaintext state that consumes everything until the nearest `>`
+ * and then transforms the entire span into an HTML comment.
+ *
+ * Preserve these comments and do not treat them like tags.
+ *
+ * @see https://html.spec.whatwg.org/#bogus-comment-state
+ */
+ if ( 1 === preg_match( '~^(?:</[^a-zA-Z][^>]*>|<![a-z][^>]*>)$~', $content ) ) {
+ /**
+ * Since the pattern matches `</…>` and also `<!…>`, this will
+ * preserve the type of the cleaned-up token in the output.
+ */
+ $opener = $content[1];
+ $content = substr( $content, 2, -1 );
+
+ do {
+ $prev = $content;
+ $content = wp_kses( $content, $allowed_html, $allowed_protocols );
+ } while ( $prev !== $content );
+
+ // Recombine the modified inner content with the original token structure.
+ return "<{$opener}{$content}>";
+ }
+
+ /*
+ * Normative HTML comments should be handled separately as their
+ * parsing rules differ from those for tags and text nodes.
+ */
if ( str_starts_with( $content, '<!--' ) ) {
$content = str_replace( array( '<!--', '-->' ), '', $content );
@@ -1263,11 +1324,10 @@ function wp_kses_attr_check( &$name, &$value, &$whole, $vless, $element, $allowe
* `data-*` (not to be mixed with the HTML 4.0 `data` attribute, see
* https://www.w3.org/TR/html40/struct/objects.html#adef-data).
*
- * Note: the attribute name should only contain `A-Za-z0-9_-` chars,
- * double hyphens `--` are not accepted by WordPress.
+ * Note: the attribute name should only contain `A-Za-z0-9_-` chars.
*/
if ( str_starts_with( $name_low, 'data-' ) && ! empty( $allowed_attr['data-*'] )
- && preg_match( '/^data(?:-[a-z0-9_]+)+$/', $name_low, $match )
+ && preg_match( '/^data-[a-z0-9_-]+$/', $name_low, $match )
) {
/*
* Add the whole attribute name to the allowed attributes and set any restrictions
@@ -2147,7 +2207,7 @@ function wp_filter_global_styles_post( $data ) {
) {
unset( $decoded_data['isGlobalStylesUserThemeJSON'] );
- $data_to_encode = WP_Theme_JSON::remove_insecure_properties( $decoded_data );
+ $data_to_encode = WP_Theme_JSON::remove_insecure_properties( $decoded_data, 'custom' );
$data_to_encode['isGlobalStylesUserThemeJSON'] = true;
return wp_slash( wp_json_encode( $data_to_encode ) );
@@ -2304,6 +2364,7 @@ function kses_init() {
* Added support for `box-shadow`.
* @since 6.4.0 Added support for `writing-mode`.
* @since 6.5.0 Added support for `background-repeat`.
+ * @since 6.6.0 Added support for `grid-column`, `grid-row`, and `container-type`.
*
* @param string $css A string of CSS rules.
* @param string $deprecated Not used.
@@ -2441,11 +2502,13 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
'grid-auto-columns',
'grid-column-start',
'grid-column-end',
+ 'grid-column',
'grid-column-gap',
'grid-template-rows',
'grid-auto-rows',
'grid-row-start',
'grid-row-end',
+ 'grid-row',
'grid-row-gap',
'grid-gap',
@@ -2475,6 +2538,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
'z-index',
'box-shadow',
'aspect-ratio',
+ 'container-type',
// Custom CSS properties.
'--*',
diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php
index 9a8ff84..038b916 100644
--- a/wp-includes/l10n.php
+++ b/wp-includes/l10n.php
@@ -833,11 +833,13 @@ function load_textdomain( $domain, $mofile, $locale = null ) {
* the file path could be for an MO or PHP file.
*
* @since 6.5.0
+ * @since 6.6.0 Added the `$locale` parameter.
*
* @param string $file Path to the translation file to load.
* @param string $domain The text domain.
+ * @param string $locale The locale.
*/
- $file = (string) apply_filters( 'load_translation_file', $file, $domain );
+ $file = (string) apply_filters( 'load_translation_file', $file, $domain, $locale );
$success = $i18n_controller->load_file( $file, $domain, $locale );
@@ -1205,7 +1207,7 @@ function load_script_textdomain( $handle, $domain = 'default', $path = '' ) {
$relative = trim( $relative, '/' );
$relative = explode( '/', $relative );
- $languages_path = WP_LANG_DIR . '/' . $relative[0];
+ $languages_path = WP_LANG_DIR . '/plugins';
$relative = array_slice( $relative, 2 ); // Remove plugins/<plugin name> or themes/<theme name>.
$relative = implode( '/', $relative );
@@ -1505,25 +1507,25 @@ function get_available_languages( $dir = null ) {
*
* @since 3.7.0
*
+ * @global WP_Textdomain_Registry $wp_textdomain_registry WordPress Textdomain Registry.
+ *
* @param string $type What to search for. Accepts 'plugins', 'themes', 'core'.
* @return array Array of language data.
*/
function wp_get_installed_translations( $type ) {
+ global $wp_textdomain_registry;
+
if ( 'themes' !== $type && 'plugins' !== $type && 'core' !== $type ) {
return array();
}
- $dir = 'core' === $type ? '' : "/$type";
+ $dir = 'core' === $type ? WP_LANG_DIR : WP_LANG_DIR . "/$type";
- if ( ! is_dir( WP_LANG_DIR ) ) {
+ if ( ! is_dir( $dir ) ) {
return array();
}
- if ( $dir && ! is_dir( WP_LANG_DIR . $dir ) ) {
- return array();
- }
-
- $files = scandir( WP_LANG_DIR . $dir );
+ $files = $wp_textdomain_registry->get_language_files_from_path( $dir );
if ( ! $files ) {
return array();
}
@@ -1531,16 +1533,7 @@ function wp_get_installed_translations( $type ) {
$language_data = array();
foreach ( $files as $file ) {
- if ( '.' === $file[0] || is_dir( WP_LANG_DIR . "$dir/$file" ) ) {
- continue;
- }
- if ( ! str_ends_with( $file, '.po' ) ) {
- continue;
- }
- if ( ! preg_match( '/(?:(.+)-)?([a-z]{2,3}(?:_[A-Z]{2})?(?:_[a-z0-9]+)?).po/', $file, $match ) ) {
- continue;
- }
- if ( ! in_array( substr( $file, 0, -3 ) . '.mo', $files, true ) ) {
+ if ( ! preg_match( '/(?:(.+)-)?([a-z]{2,3}(?:_[A-Z]{2})?(?:_[a-z0-9]+)?)\.(?:mo|l10n\.php)/', basename( $file ), $match ) ) {
continue;
}
@@ -1548,7 +1541,25 @@ function wp_get_installed_translations( $type ) {
if ( '' === $textdomain ) {
$textdomain = 'default';
}
- $language_data[ $textdomain ][ $language ] = wp_get_pomo_file_data( WP_LANG_DIR . "$dir/$file" );
+
+ if ( str_ends_with( $file, '.mo' ) ) {
+ $pofile = substr_replace( $file, '.po', - strlen( '.mo' ) );
+
+ if ( ! file_exists( $pofile ) ) {
+ continue;
+ }
+
+ $language_data[ $textdomain ][ $language ] = wp_get_pomo_file_data( $pofile );
+ } else {
+ $pofile = substr_replace( $file, '.po', - strlen( '.l10n.php' ) );
+
+ // If both a PO and a PHP file exist, prefer the PO file.
+ if ( file_exists( $pofile ) ) {
+ continue;
+ }
+
+ $language_data[ $textdomain ][ $language ] = wp_get_l10n_php_file_data( $file );
+ }
}
return $language_data;
}
@@ -1579,6 +1590,41 @@ function wp_get_pomo_file_data( $po_file ) {
}
/**
+ * Extracts headers from a PHP translation file.
+ *
+ * @since 6.6.0
+ *
+ * @param string $php_file Path to a `.l10n.php` file.
+ * @return string[] Array of file header values keyed by header name.
+ */
+function wp_get_l10n_php_file_data( $php_file ) {
+ $data = (array) include $php_file;
+
+ unset( $data['messages'] );
+ $headers = array(
+ 'POT-Creation-Date' => 'pot-creation-date',
+ 'PO-Revision-Date' => 'po-revision-date',
+ 'Project-Id-Version' => 'project-id-version',
+ 'X-Generator' => 'x-generator',
+ );
+
+ $result = array(
+ 'POT-Creation-Date' => '',
+ 'PO-Revision-Date' => '',
+ 'Project-Id-Version' => '',
+ 'X-Generator' => '',
+ );
+
+ foreach ( $headers as $po_header => $php_header ) {
+ if ( isset( $data[ $php_header ] ) ) {
+ $result[ $po_header ] = $data[ $php_header ];
+ }
+ }
+
+ return $result;
+}
+
+/**
* Displays or returns a Language selector.
*
* @since 4.0.0
diff --git a/wp-includes/l10n/class-wp-translation-controller.php b/wp-includes/l10n/class-wp-translation-controller.php
index b44384c..295e3fc 100644
--- a/wp-includes/l10n/class-wp-translation-controller.php
+++ b/wp-includes/l10n/class-wp-translation-controller.php
@@ -98,7 +98,7 @@ final class WP_Translation_Controller {
* @param string $locale Optional. Locale. Default current locale.
* @return bool True on success, false otherwise.
*/
- public function load_file( string $translation_file, string $textdomain = 'default', string $locale = null ): bool {
+ public function load_file( string $translation_file, string $textdomain = 'default', ?string $locale = null ): bool {
if ( null === $locale ) {
$locale = $this->current_locale;
}
@@ -153,7 +153,7 @@ final class WP_Translation_Controller {
* @param string $locale Optional. Locale. Defaults to all locales.
* @return bool True on success, false otherwise.
*/
- public function unload_file( $file, string $textdomain = 'default', string $locale = null ): bool {
+ public function unload_file( $file, string $textdomain = 'default', ?string $locale = null ): bool {
if ( is_string( $file ) ) {
$file = realpath( $file );
}
@@ -198,7 +198,7 @@ final class WP_Translation_Controller {
* @param string $locale Optional. Locale. Defaults to all locales.
* @return bool True on success, false otherwise.
*/
- public function unload_textdomain( string $textdomain = 'default', string $locale = null ): bool {
+ public function unload_textdomain( string $textdomain = 'default', ?string $locale = null ): bool {
$unloaded = false;
if ( null !== $locale ) {
@@ -240,7 +240,7 @@ final class WP_Translation_Controller {
* @param string $locale Optional. Locale. Default current locale.
* @return bool True if there are any loaded translations, false otherwise.
*/
- public function is_textdomain_loaded( string $textdomain = 'default', string $locale = null ): bool {
+ public function is_textdomain_loaded( string $textdomain = 'default', ?string $locale = null ): bool {
if ( null === $locale ) {
$locale = $this->current_locale;
}
@@ -260,7 +260,7 @@ final class WP_Translation_Controller {
* @param string $locale Optional. Locale. Default current locale.
* @return string|false Translation on success, false otherwise.
*/
- public function translate( string $text, string $context = '', string $textdomain = 'default', string $locale = null ) {
+ public function translate( string $text, string $context = '', string $textdomain = 'default', ?string $locale = null ) {
if ( '' !== $context ) {
$context .= "\4";
}
@@ -282,19 +282,19 @@ final class WP_Translation_Controller {
*
* @since 6.5.0
*
- * @param array{0: string, 1: string} $plurals {
+ * @param array $plurals {
* Pair of singular and plural translations.
*
* @type string $0 Singular translation.
* @type string $1 Plural translation.
* }
- * @param int $number Number of items.
- * @param string $context Optional. Context for the string. Default empty string.
- * @param string $textdomain Optional. Text domain. Default 'default'.
- * @param string $locale Optional. Locale. Default current locale.
+ * @param int $number Number of items.
+ * @param string $context Optional. Context for the string. Default empty string.
+ * @param string $textdomain Optional. Text domain. Default 'default'.
+ * @param string|null $locale Optional. Locale. Default current locale.
* @return string|false Translation on success, false otherwise.
*/
- public function translate_plural( array $plurals, int $number, string $context = '', string $textdomain = 'default', string $locale = null ) {
+ public function translate_plural( array $plurals, int $number, string $context = '', string $textdomain = 'default', ?string $locale = null ) {
if ( '' !== $context ) {
$context .= "\4";
}
@@ -394,7 +394,7 @@ final class WP_Translation_Controller {
* @type string[] $entries Array of translation entries.
* }
*/
- protected function locate_translation( string $singular, string $textdomain = 'default', string $locale = null ) {
+ protected function locate_translation( string $singular, string $textdomain = 'default', ?string $locale = null ) {
if ( array() === $this->loaded_translations ) {
return false;
}
@@ -427,7 +427,7 @@ final class WP_Translation_Controller {
* @param string $locale Optional. Locale. Default current locale.
* @return WP_Translation_File[] List of translation files.
*/
- protected function get_files( string $textdomain = 'default', string $locale = null ): array {
+ protected function get_files( string $textdomain = 'default', ?string $locale = null ): array {
if ( null === $locale ) {
$locale = $this->current_locale;
}
diff --git a/wp-includes/l10n/class-wp-translation-file.php b/wp-includes/l10n/class-wp-translation-file.php
index e550f9c..199fdca 100644
--- a/wp-includes/l10n/class-wp-translation-file.php
+++ b/wp-includes/l10n/class-wp-translation-file.php
@@ -81,7 +81,7 @@ abstract class WP_Translation_File {
* @param string|null $filetype Optional. File type. Default inferred from file name.
* @return false|WP_Translation_File
*/
- public static function create( string $file, string $filetype = null ) {
+ public static function create( string $file, ?string $filetype = null ) {
if ( ! is_readable( $file ) ) {
return false;
}
diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php
index a782edf..dde12c1 100644
--- a/wp-includes/link-template.php
+++ b/wp-includes/link-template.php
@@ -391,7 +391,7 @@ function get_post_permalink( $post = 0, $leavename = false, $sample = false ) {
function get_page_link( $post = false, $leavename = false, $sample = false ) {
$post = get_post( $post );
- if ( 'page' === get_option( 'show_on_front' ) && get_option( 'page_on_front' ) == $post->ID ) {
+ if ( 'page' === get_option( 'show_on_front' ) && (int) get_option( 'page_on_front' ) === $post->ID ) {
$link = home_url( '/' );
} else {
$link = _get_page_link( $post, $leavename, $sample );
@@ -465,8 +465,8 @@ function _get_page_link( $post = false, $leavename = false, $sample = false ) {
*
* @global WP_Rewrite $wp_rewrite WordPress rewrite component.
*
- * @param int|object $post Optional. Post ID or object. Default uses the global `$post`.
- * @param bool $leavename Optional. Whether to keep the page name. Default false.
+ * @param int|WP_Post $post Optional. Post ID or object. Default uses the global `$post`.
+ * @param bool $leavename Optional. Whether to keep the page name. Default false.
* @return string The attachment permalink.
*/
function get_attachment_link( $post = null, $leavename = false ) {
@@ -701,7 +701,7 @@ function get_feed_link( $feed = '' ) {
$permalink = $wp_rewrite->get_comment_feed_permastruct();
}
- if ( get_default_feed() == $feed ) {
+ if ( get_default_feed() === $feed ) {
$feed = '';
}
@@ -763,7 +763,7 @@ function get_post_comments_feed_link( $post_id = 0, $feed = '' ) {
$unattached = 'attachment' === $post->post_type && 0 === (int) $post->post_parent;
if ( get_option( 'permalink_structure' ) ) {
- if ( 'page' === get_option( 'show_on_front' ) && get_option( 'page_on_front' ) == $post_id ) {
+ if ( 'page' === get_option( 'show_on_front' ) && (int) get_option( 'page_on_front' ) === $post_id ) {
$url = _get_page_link( $post_id );
} else {
$url = get_permalink( $post_id );
@@ -777,7 +777,7 @@ function get_post_comments_feed_link( $post_id = 0, $feed = '' ) {
$url = add_query_arg( 'attachment_id', $post_id, $url );
} else {
$url = trailingslashit( $url ) . 'feed';
- if ( get_default_feed() != $feed ) {
+ if ( get_default_feed() !== $feed ) {
$url .= "/$feed";
}
$url = user_trailingslashit( $url, 'single_feed' );
@@ -879,7 +879,7 @@ function get_author_feed_link( $author_id, $feed = '' ) {
$link = home_url( "?feed=$feed&amp;author=" . $author_id );
} else {
$link = get_author_posts_url( $author_id );
- if ( get_default_feed() == $feed ) {
+ if ( get_default_feed() === $feed ) {
$feed_link = 'feed';
} else {
$feed_link = "feed/$feed";
@@ -962,7 +962,7 @@ function get_term_feed_link( $term, $taxonomy = '', $feed = '' ) {
}
} else {
$link = get_term_link( $term, $term->taxonomy );
- if ( get_default_feed() == $feed ) {
+ if ( get_default_feed() === $feed ) {
$feed_link = 'feed';
} else {
$feed_link = "feed/$feed";
@@ -1374,7 +1374,7 @@ function get_post_type_archive_feed_link( $post_type, $feed = '' ) {
if ( get_option( 'permalink_structure' ) && is_array( $post_type_obj->rewrite ) && $post_type_obj->rewrite['feeds'] ) {
$link = trailingslashit( $link );
$link .= 'feed/';
- if ( $feed != $default_feed ) {
+ if ( $feed !== $default_feed ) {
$link .= "$feed/";
}
} else {
@@ -1737,7 +1737,7 @@ function get_edit_user_link( $user_id = null ) {
return '';
}
- if ( get_current_user_id() == $user->ID ) {
+ if ( get_current_user_id() === $user->ID ) {
$link = get_edit_profile_url( $user->ID );
} else {
$link = add_query_arg( 'user_id', $user->ID, self_admin_url( 'user-edit.php' ) );
@@ -3056,12 +3056,13 @@ function _navigation_markup( $links, $css_class = 'posts-navigation', $screen_re
function get_comments_pagenum_link( $pagenum = 1, $max_page = 0 ) {
global $wp_rewrite;
- $pagenum = (int) $pagenum;
+ $pagenum = (int) $pagenum;
+ $max_page = (int) $max_page;
$result = get_permalink();
if ( 'newest' === get_option( 'default_comments_page' ) ) {
- if ( $pagenum != $max_page ) {
+ if ( $pagenum !== $max_page ) {
if ( $wp_rewrite->using_permalinks() ) {
$result = user_trailingslashit( trailingslashit( $result ) . $wp_rewrite->comments_pagination_base . '-' . $pagenum, 'commentpaged' );
} else {
@@ -4154,7 +4155,9 @@ function wp_get_shortlink( $id = 0, $context = 'post', $allow_slugs = true ) {
if ( ! empty( $post_id ) ) {
$post_type = get_post_type_object( $post->post_type );
- if ( 'page' === $post->post_type && get_option( 'page_on_front' ) == $post->ID && 'page' === get_option( 'show_on_front' ) ) {
+ if ( 'page' === $post->post_type
+ && 'page' === get_option( 'show_on_front' ) && (int) get_option( 'page_on_front' ) === $post->ID
+ ) {
$shortlink = home_url( '/' );
} elseif ( $post_type && $post_type->public ) {
$shortlink = home_url( '?p=' . $post_id );
diff --git a/wp-includes/load.php b/wp-includes/load.php
index b7bde14..6b743d4 100644
--- a/wp-includes/load.php
+++ b/wp-includes/load.php
@@ -420,6 +420,16 @@ function wp_is_maintenance_mode() {
return false;
}
+ // Don't enable maintenance mode while scraping for fatal errors.
+ if ( is_int( $upgrading ) && isset( $_REQUEST['wp_scrape_key'], $_REQUEST['wp_scrape_nonce'] ) ) {
+ $key = stripslashes( $_REQUEST['wp_scrape_key'] );
+ $nonce = stripslashes( $_REQUEST['wp_scrape_nonce'] );
+
+ if ( md5( $upgrading ) === $key && (int) $nonce === $upgrading ) {
+ return false;
+ }
+ }
+
/**
* Filters whether to enable maintenance mode.
*
diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php
index 21adc09..e0bd68a 100644
--- a/wp-includes/media-template.php
+++ b/wp-includes/media-template.php
@@ -159,7 +159,8 @@ function wp_print_media_templates() {
$alt_text_description = sprintf(
/* translators: 1: Link to tutorial, 2: Additional link attributes, 3: Accessibility text. */
__( '<a href="%1$s" %2$s>Learn how to describe the purpose of the image%3$s</a>. Leave empty if the image is purely decorative.' ),
- esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ),
+ /* translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations. */
+ esc_url( __( 'https://www.w3.org/WAI/tutorials/images/decision-tree/' ) ),
'target="_blank" rel="noopener"',
sprintf(
'<span class="screen-reader-text"> %s</span>',
@@ -483,7 +484,7 @@ function wp_print_media_templates() {
<# if ( data.fileLength && data.fileLengthHumanReadable ) { #>
<div class="file-length"><strong><?php _e( 'Length:' ); ?></strong>
- <span aria-hidden="true">{{ data.fileLength }}</span>
+ <span aria-hidden="true">{{ data.fileLengthHumanReadable }}</span>
<span class="screen-reader-text">{{ data.fileLengthHumanReadable }}</span>
</div>
<# } #>
@@ -729,7 +730,7 @@ function wp_print_media_templates() {
<# if ( data.fileLength && data.fileLengthHumanReadable ) { #>
<div class="file-length"><?php _e( 'Length:' ); ?>
- <span aria-hidden="true">{{ data.fileLength }}</span>
+ <span aria-hidden="true">{{ data.fileLengthHumanReadable }}</span>
<span class="screen-reader-text">{{ data.fileLengthHumanReadable }}</span>
</div>
<# } #>
@@ -839,7 +840,7 @@ function wp_print_media_templates() {
<?php esc_html_e( 'Right' ); ?>
</option>
<option value="none" selected>
- <?php esc_html_e( 'None' ); ?>
+ <?php esc_html_x( 'None', 'Alignment' ); ?>
</option>
</select>
</span>
@@ -866,7 +867,7 @@ function wp_print_media_templates() {
<option value="file">
<# } else { #>
<option value="none" selected>
- <?php esc_html_e( 'None' ); ?>
+ <?php esc_html_x( 'None', 'Embedded player type' ); ?>
</option>
<option value="file">
<# } #>
@@ -951,7 +952,7 @@ function wp_print_media_templates() {
<?php esc_html_e( 'Media File' ); ?>
</option>
<option value="none" <# if ( 'none' === wp.media.galleryDefaults.link ) { #>selected="selected"<# } #>>
- <?php esc_html_e( 'None' ); ?>
+ <?php esc_html_x( 'None', 'Media link target' ); ?>
</option>
</select>
</span>
@@ -1095,7 +1096,7 @@ function wp_print_media_templates() {
<?php esc_html_e( 'Right' ); ?>
</button>
<button class="button active" value="none">
- <?php esc_html_e( 'None' ); ?>
+ <?php esc_html_x( 'None', 'Alignment' ); ?>
</button>
</span>
</span>
@@ -1112,7 +1113,7 @@ function wp_print_media_templates() {
<?php esc_html_e( 'Custom URL' ); ?>
</button>
<button class="button active" value="none">
- <?php esc_html_e( 'None' ); ?>
+ <?php esc_html_x( 'None', 'Media URL' ); ?>
</button>
</span>
</span>
@@ -1159,7 +1160,7 @@ function wp_print_media_templates() {
<?php esc_html_e( 'Right' ); ?>
</button>
<button class="button active" value="none">
- <?php esc_html_e( 'None' ); ?>
+ <?php esc_html_x( 'None', 'Alignment' ); ?>
</button>
</span>
</span>
@@ -1235,7 +1236,7 @@ function wp_print_media_templates() {
<?php esc_html_e( 'Custom URL' ); ?>
</option>
<option value="none">
- <?php esc_html_e( 'None' ); ?>
+ <?php esc_html_x( 'None', 'Media URL' ); ?>
</option>
</select>
</span>
@@ -1355,7 +1356,7 @@ function wp_print_media_templates() {
<span class="button-group button-large" data-setting="preload">
<button class="button" value="auto"><?php _ex( 'Auto', 'auto preload' ); ?></button>
<button class="button" value="metadata"><?php _e( 'Metadata' ); ?></button>
- <button class="button active" value="none"><?php _e( 'None' ); ?></button>
+ <button class="button active" value="none"><?php _x( 'None', 'Preload type' ); ?></button>
</span>
</span>
</fieldset>
@@ -1454,7 +1455,7 @@ function wp_print_media_templates() {
<span class="button-group button-large" data-setting="preload">
<button class="button" value="auto"><?php _ex( 'Auto', 'auto preload' ); ?></button>
<button class="button" value="metadata"><?php _e( 'Metadata' ); ?></button>
- <button class="button active" value="none"><?php _e( 'None' ); ?></button>
+ <button class="button active" value="none"><?php _x( 'None', 'Preload type' ); ?></button>
</span>
</span>
</fieldset>
diff --git a/wp-includes/media.php b/wp-includes/media.php
index bf90a6e..0a8621d 100644
--- a/wp-includes/media.php
+++ b/wp-includes/media.php
@@ -1039,19 +1039,21 @@ function wp_get_attachment_image_src( $attachment_id, $size = 'thumbnail', $icon
* @param string|array $attr {
* Optional. Attributes for the image markup.
*
- * @type string $src Image attachment URL.
- * @type string $class CSS class name or space-separated list of classes.
- * Default `attachment-$size_class size-$size_class`,
- * where `$size_class` is the image size being requested.
- * @type string $alt Image description for the alt attribute.
- * @type string $srcset The 'srcset' attribute value.
- * @type string $sizes The 'sizes' attribute value.
- * @type string|false $loading The 'loading' attribute value. Passing a value of false
- * will result in the attribute being omitted for the image.
- * Defaults to 'lazy', depending on wp_lazy_loading_enabled().
- * @type string $decoding The 'decoding' attribute value. Possible values are
- * 'async' (default), 'sync', or 'auto'. Passing false or an empty
- * string will result in the attribute being omitted.
+ * @type string $src Image attachment URL.
+ * @type string $class CSS class name or space-separated list of classes.
+ * Default `attachment-$size_class size-$size_class`,
+ * where `$size_class` is the image size being requested.
+ * @type string $alt Image description for the alt attribute.
+ * @type string $srcset The 'srcset' attribute value.
+ * @type string $sizes The 'sizes' attribute value.
+ * @type string|false $loading The 'loading' attribute value. Passing a value of false
+ * will result in the attribute being omitted for the image.
+ * Default determined by {@see wp_get_loading_optimization_attributes()}.
+ * @type string $decoding The 'decoding' attribute value. Possible values are
+ * 'async' (default), 'sync', or 'auto'. Passing false or an empty
+ * string will result in the attribute being omitted.
+ * @type string $fetchpriority The 'fetchpriority' attribute value, whether `high`, `low`, or `auto`.
+ * Default determined by {@see wp_get_loading_optimization_attributes()}.
* }
* @return string HTML img element or empty string on failure.
*/
@@ -1363,8 +1365,17 @@ function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attac
* If currently on HTTPS, prefer HTTPS URLs when we know they're supported by the domain
* (which is to say, when they share the domain name of the current request).
*/
- if ( is_ssl() && ! str_starts_with( $image_baseurl, 'https' ) && parse_url( $image_baseurl, PHP_URL_HOST ) === $_SERVER['HTTP_HOST'] ) {
- $image_baseurl = set_url_scheme( $image_baseurl, 'https' );
+ if ( is_ssl() && ! str_starts_with( $image_baseurl, 'https' ) ) {
+ // Since the `Host:` header might contain a port we should
+ // compare it against the image URL using the same port.
+ $parsed = parse_url( $image_baseurl );
+ $domain = $parsed['host'];
+ if ( isset( $parsed['port'] ) ) {
+ $domain .= ':' . $parsed['port'];
+ }
+ if ( $_SERVER['HTTP_HOST'] === $domain ) {
+ $image_baseurl = set_url_scheme( $image_baseurl, 'https' );
+ }
}
/*
@@ -2127,7 +2138,7 @@ function wp_img_tag_add_width_and_height_attr( $image, $context, $attachment_id
$image_meta = wp_get_attachment_metadata( $attachment_id );
$size_array = wp_image_src_get_dimensions( $image_src, $image_meta, $attachment_id );
- if ( $size_array ) {
+ if ( $size_array && $size_array[0] && $size_array[1] ) {
// If the width is enforced through style (e.g. in an inline image), calculate the dimension attributes.
$style_width = preg_match( '/style="width:\s*(\d+)px;"/', $image, $match_width ) ? (int) $match_width[1] : 0;
if ( $style_width ) {
@@ -2187,14 +2198,6 @@ function wp_img_tag_add_srcset_and_sizes_attr( $image, $context, $attachment_id
*/
function wp_iframe_tag_add_loading_attr( $iframe, $context ) {
/*
- * Iframes with fallback content (see `wp_filter_oembed_result()`) should not be lazy-loaded because they are
- * visually hidden initially.
- */
- if ( str_contains( $iframe, ' data-secret="' ) ) {
- return $iframe;
- }
-
- /*
* Get loading attribute value to use. This must occur before the conditional check below so that even iframes that
* are ineligible for being lazy-loaded are considered.
*/
@@ -3146,7 +3149,7 @@ add_shortcode( 'playlist', 'wp_playlist_shortcode' );
*/
function wp_mediaelement_fallback( $url ) {
/**
- * Filters the Mediaelement fallback output for no-JS.
+ * Filters the MediaElement fallback output for no-JS.
*
* @since 3.6.0
*
@@ -4822,7 +4825,7 @@ function wp_enqueue_media( $args = array() ) {
'apply' => __( 'Apply' ),
'filterByDate' => __( 'Filter by date' ),
'filterByType' => __( 'Filter by type' ),
- 'searchLabel' => __( 'Search' ),
+ 'searchLabel' => __( 'Search media' ),
'searchMediaLabel' => __( 'Search media' ), // Backward compatibility pre-5.3.
'searchMediaPlaceholder' => __( 'Search media items...' ), // Placeholder (no ellipsis), backward compatibility pre-5.3.
/* translators: %d: Number of attachments found in a search. */
@@ -5076,9 +5079,6 @@ function get_post_galleries( $post, $html = true ) {
$srcs = array();
$shortcode_attrs = shortcode_parse_atts( $shortcode[3] );
- if ( ! is_array( $shortcode_attrs ) ) {
- $shortcode_attrs = array();
- }
// Specify the post ID of the gallery we're viewing if the shortcode doesn't reference another post already.
if ( ! isset( $shortcode_attrs['id'] ) ) {
@@ -5499,7 +5499,7 @@ function wp_show_heic_upload_error( $plupload_settings ) {
* @param array $image_info Optional. Extended image information (passed by reference).
* @return array|false Array of image information or false on failure.
*/
-function wp_getimagesize( $filename, array &$image_info = null ) {
+function wp_getimagesize( $filename, ?array &$image_info = null ) {
// Don't silence errors when in debug mode, unless running unit tests.
if ( defined( 'WP_DEBUG' ) && WP_DEBUG
&& ! defined( 'WP_RUN_CORE_TESTS' )
@@ -5593,12 +5593,12 @@ function wp_getimagesize( $filename, array &$image_info = null ) {
*
* @param string $filename Path to an AVIF file.
* @return array {
- * An array of AVIF image information.
+ * An array of AVIF image information.
*
- * @type int|false $width Image width on success, false on failure.
- * @type int|false $height Image height on success, false on failure.
- * @type int|false $bit_depth Image bit depth on success, false on failure.
- * @type int|false $num_channels Image number of channels on success, false on failure.
+ * @type int|false $width Image width on success, false on failure.
+ * @type int|false $height Image height on success, false on failure.
+ * @type int|false $bit_depth Image bit depth on success, false on failure.
+ * @type int|false $num_channels Image number of channels on success, false on failure.
* }
*/
function wp_get_avif_info( $filename ) {
diff --git a/wp-includes/ms-blogs.php b/wp-includes/ms-blogs.php
index b9575b3..2cf6d23 100644
--- a/wp-includes/ms-blogs.php
+++ b/wp-includes/ms-blogs.php
@@ -187,7 +187,7 @@ function get_blog_details( $fields = null, $get_all = true ) {
if ( $details ) {
if ( ! is_object( $details ) ) {
- if ( -1 == $details ) {
+ if ( -1 === $details ) {
return false;
} else {
// Clear old pre-serialized objects. Cache clients do better with that.
@@ -207,7 +207,7 @@ function get_blog_details( $fields = null, $get_all = true ) {
// If short was requested and full cache is set, we can return.
if ( $details ) {
if ( ! is_object( $details ) ) {
- if ( -1 == $details ) {
+ if ( -1 === $details ) {
return false;
} else {
// Clear old pre-serialized objects. Cache clients do better with that.
@@ -293,15 +293,11 @@ function refresh_blog_details( $blog_id = 0 ) {
*
* @since MU (3.0.0)
*
- * @global wpdb $wpdb WordPress database abstraction object.
- *
* @param int $blog_id Blog ID.
* @param array $details Array of details keyed by blogs table field names.
* @return bool True if update succeeds, false otherwise.
*/
function update_blog_details( $blog_id, $details = array() ) {
- global $wpdb;
-
if ( empty( $details ) ) {
return false;
}
@@ -360,7 +356,7 @@ function get_blog_option( $id, $option, $default_value = false ) {
$id = get_current_blog_id();
}
- if ( get_current_blog_id() == $id ) {
+ if ( get_current_blog_id() === $id ) {
return get_option( $option, $default_value );
}
@@ -407,7 +403,7 @@ function add_blog_option( $id, $option, $value ) {
$id = get_current_blog_id();
}
- if ( get_current_blog_id() == $id ) {
+ if ( get_current_blog_id() === $id ) {
return add_option( $option, $value );
}
@@ -434,7 +430,7 @@ function delete_blog_option( $id, $option ) {
$id = get_current_blog_id();
}
- if ( get_current_blog_id() == $id ) {
+ if ( get_current_blog_id() === $id ) {
return delete_option( $option );
}
@@ -463,7 +459,7 @@ function update_blog_option( $id, $option, $value, $deprecated = null ) {
_deprecated_argument( __FUNCTION__, '3.1.0' );
}
- if ( get_current_blog_id() == $id ) {
+ if ( get_current_blog_id() === $id ) {
return update_option( $option, $value );
}
@@ -489,7 +485,7 @@ function update_blog_option( $id, $option, $value, $deprecated = null ) {
* @global int $blog_id
* @global array $_wp_switched_stack
* @global bool $switched
- * @global string $table_prefix
+ * @global string $table_prefix The database table prefix.
* @global WP_Object_Cache $wp_object_cache
*
* @param int $new_blog_id The ID of the blog to switch to. Default: current blog.
@@ -511,7 +507,7 @@ function switch_to_blog( $new_blog_id, $deprecated = null ) {
* set the right vars, do the associated actions, but skip
* the extra unnecessary work
*/
- if ( $new_blog_id == $prev_blog_id ) {
+ if ( $new_blog_id === $prev_blog_id ) {
/**
* Fires when the blog is switched.
*
@@ -599,7 +595,7 @@ function switch_to_blog( $new_blog_id, $deprecated = null ) {
* @global array $_wp_switched_stack
* @global int $blog_id
* @global bool $switched
- * @global string $table_prefix
+ * @global string $table_prefix The database table prefix.
* @global WP_Object_Cache $wp_object_cache
*
* @return bool True on success, false if we're already on the current blog.
@@ -614,7 +610,7 @@ function restore_current_blog() {
$new_blog_id = array_pop( $GLOBALS['_wp_switched_stack'] );
$prev_blog_id = get_current_blog_id();
- if ( $new_blog_id == $prev_blog_id ) {
+ if ( $new_blog_id === $prev_blog_id ) {
/** This filter is documented in wp-includes/ms-blogs.php */
do_action( 'switch_blog', $new_blog_id, $prev_blog_id, 'restore' );
@@ -693,7 +689,7 @@ function restore_current_blog() {
* @param int $old_site_id Old site ID.
*/
function wp_switch_roles_and_user( $new_site_id, $old_site_id ) {
- if ( $new_site_id == $old_site_id ) {
+ if ( $new_site_id === $old_site_id ) {
return;
}
diff --git a/wp-includes/ms-default-constants.php b/wp-includes/ms-default-constants.php
index 99d6461..3638c3d 100644
--- a/wp-includes/ms-default-constants.php
+++ b/wp-includes/ms-default-constants.php
@@ -147,7 +147,8 @@ function ms_subdomain_constants() {
);
if ( $subdomain_error_warn ) {
- trigger_error(
+ wp_trigger_error(
+ __FUNCTION__,
sprintf(
/* translators: 1: VHOST, 2: SUBDOMAIN_INSTALL */
__( '<strong>Conflicting values for the constants %1$s and %2$s.</strong> The value of %2$s will be assumed to be your subdomain configuration setting.' ),
diff --git a/wp-includes/ms-deprecated.php b/wp-includes/ms-deprecated.php
index c6c7f54..5a6b441 100644
--- a/wp-includes/ms-deprecated.php
+++ b/wp-includes/ms-deprecated.php
@@ -145,7 +145,7 @@ function clear_global_post_cache( $post_id ) {
}
/**
- * Deprecated functionality to determin if the current site is the main site.
+ * Deprecated functionality to determine if the current site is the main site.
*
* @since MU (3.0.0)
* @deprecated 3.0.0 Use is_main_site()
diff --git a/wp-includes/ms-load.php b/wp-includes/ms-load.php
index afac9b1..0708bc4 100644
--- a/wp-includes/ms-load.php
+++ b/wp-includes/ms-load.php
@@ -92,7 +92,7 @@ function ms_site_check() {
$blog = get_site();
- if ( '1' == $blog->deleted ) {
+ if ( '1' === $blog->deleted ) {
if ( file_exists( WP_CONTENT_DIR . '/blog-deleted.php' ) ) {
return WP_CONTENT_DIR . '/blog-deleted.php';
} else {
@@ -100,7 +100,7 @@ function ms_site_check() {
}
}
- if ( '2' == $blog->deleted ) {
+ if ( '2' === $blog->deleted ) {
if ( file_exists( WP_CONTENT_DIR . '/blog-inactive.php' ) ) {
return WP_CONTENT_DIR . '/blog-inactive.php';
} else {
@@ -115,7 +115,7 @@ function ms_site_check() {
}
}
- if ( '1' == $blog->archived || '1' == $blog->spam ) {
+ if ( '1' === $blog->archived || '1' === $blog->spam ) {
if ( file_exists( WP_CONTENT_DIR . '/blog-suspended.php' ) ) {
return WP_CONTENT_DIR . '/blog-suspended.php';
} else {
@@ -377,7 +377,7 @@ function ms_load_current_site_and_network( $domain, $path, $subdomain = false )
}
// The network declared by the site trumps any constants.
- if ( $current_blog && $current_blog->site_id != $current_site->id ) {
+ if ( $current_blog && (int) $current_blog->site_id !== $current_site->id ) {
$current_site = WP_Network::get_instance( $current_blog->site_id );
}
@@ -497,7 +497,7 @@ function ms_not_installed( $domain, $path ) {
$msg .= sprintf(
/* translators: %s: Documentation URL. */
__( 'Read the <a href="%s" target="_blank">Debugging a WordPress Network</a> article. Some of the suggestions there may help you figure out what went wrong.' ),
- __( 'https://wordpress.org/documentation/article/debugging-a-wordpress-network/' )
+ __( 'https://developer.wordpress.org/advanced-administration/debug/debug-network/' )
);
$msg .= ' ' . __( 'If you are still stuck with this message, then check that your database contains the following tables:' ) . '</p><ul>';
foreach ( $wpdb->tables( 'global' ) as $t => $table ) {
diff --git a/wp-includes/ms-site.php b/wp-includes/ms-site.php
index 65e7d8d..6e19758 100644
--- a/wp-includes/ms-site.php
+++ b/wp-includes/ms-site.php
@@ -524,11 +524,7 @@ function wp_prepare_site_data( $data, $defaults, $old_site = null ) {
function wp_normalize_site_data( $data ) {
// Sanitize domain if passed.
if ( array_key_exists( 'domain', $data ) ) {
- $data['domain'] = trim( $data['domain'] );
- $data['domain'] = preg_replace( '/\s+/', '', sanitize_user( $data['domain'], true ) );
- if ( is_subdomain_install() ) {
- $data['domain'] = str_replace( '@', '', $data['domain'] );
- }
+ $data['domain'] = preg_replace( '/[^a-z0-9\-.:]+/i', '', $data['domain'] );
}
// Sanitize path if passed.
diff --git a/wp-includes/nav-menu-template.php b/wp-includes/nav-menu-template.php
index 316a591..860efa9 100644
--- a/wp-includes/nav-menu-template.php
+++ b/wp-includes/nav-menu-template.php
@@ -341,9 +341,9 @@ function _wp_menu_item_classes_by_context( &$menu_items ) {
if ( is_array( $terms ) ) {
$possible_object_parents = array_merge( $possible_object_parents, $terms );
$term_to_ancestor = array();
- foreach ( (array) $term_hierarchy as $anc => $descs ) {
- foreach ( (array) $descs as $desc ) {
- $term_to_ancestor[ $desc ] = $anc;
+ foreach ( (array) $term_hierarchy as $ancestor => $descendents ) {
+ foreach ( (array) $descendents as $desc ) {
+ $term_to_ancestor[ $desc ] = $ancestor;
}
}
@@ -365,9 +365,9 @@ function _wp_menu_item_classes_by_context( &$menu_items ) {
} elseif ( ! empty( $queried_object->taxonomy ) && is_taxonomy_hierarchical( $queried_object->taxonomy ) ) {
$term_hierarchy = _get_term_hierarchy( $queried_object->taxonomy );
$term_to_ancestor = array();
- foreach ( (array) $term_hierarchy as $anc => $descs ) {
- foreach ( (array) $descs as $desc ) {
- $term_to_ancestor[ $desc ] = $anc;
+ foreach ( (array) $term_hierarchy as $ancestor => $descendents ) {
+ foreach ( (array) $descendents as $desc ) {
+ $term_to_ancestor[ $desc ] = $ancestor;
}
}
$desc = $queried_object->term_id;
@@ -418,25 +418,25 @@ function _wp_menu_item_classes_by_context( &$menu_items ) {
// If the menu item corresponds to the currently queried post or taxonomy object.
} elseif (
- $menu_item->object_id == $queried_object_id
+ (int) $menu_item->object_id === $queried_object_id
&& (
( ! empty( $home_page_id ) && 'post_type' === $menu_item->type
- && $wp_query->is_home && $home_page_id == $menu_item->object_id )
+ && $wp_query->is_home && $home_page_id === (int) $menu_item->object_id )
|| ( 'post_type' === $menu_item->type && $wp_query->is_singular )
|| ( 'taxonomy' === $menu_item->type
&& ( $wp_query->is_category || $wp_query->is_tag || $wp_query->is_tax )
- && $queried_object->taxonomy == $menu_item->object )
+ && $queried_object->taxonomy === $menu_item->object )
)
) {
$classes[] = 'current-menu-item';
$menu_items[ $key ]->current = true;
- $_anc_id = (int) $menu_item->db_id;
+ $ancestor_id = (int) $menu_item->db_id;
while (
- ( $_anc_id = (int) get_post_meta( $_anc_id, '_menu_item_menu_item_parent', true ) )
- && ! in_array( $_anc_id, $active_ancestor_item_ids, true )
+ ( $ancestor_id = (int) get_post_meta( $ancestor_id, '_menu_item_menu_item_parent', true ) )
+ && ! in_array( $ancestor_id, $active_ancestor_item_ids, true )
) {
- $active_ancestor_item_ids[] = $_anc_id;
+ $active_ancestor_item_ids[] = $ancestor_id;
}
if ( 'post_type' === $menu_item->type && 'page' === $menu_item->object ) {
@@ -457,13 +457,13 @@ function _wp_menu_item_classes_by_context( &$menu_items ) {
) {
$classes[] = 'current-menu-item';
$menu_items[ $key ]->current = true;
- $_anc_id = (int) $menu_item->db_id;
+ $ancestor_id = (int) $menu_item->db_id;
while (
- ( $_anc_id = (int) get_post_meta( $_anc_id, '_menu_item_menu_item_parent', true ) )
- && ! in_array( $_anc_id, $active_ancestor_item_ids, true )
+ ( $ancestor_id = (int) get_post_meta( $ancestor_id, '_menu_item_menu_item_parent', true ) )
+ && ! in_array( $ancestor_id, $active_ancestor_item_ids, true )
) {
- $active_ancestor_item_ids[] = $_anc_id;
+ $active_ancestor_item_ids[] = $ancestor_id;
}
$active_parent_item_ids[] = (int) $menu_item->menu_item_parent;
@@ -494,13 +494,13 @@ function _wp_menu_item_classes_by_context( &$menu_items ) {
if ( $raw_item_url && in_array( $item_url, $matches, true ) ) {
$classes[] = 'current-menu-item';
$menu_items[ $key ]->current = true;
- $_anc_id = (int) $menu_item->db_id;
+ $ancestor_id = (int) $menu_item->db_id;
while (
- ( $_anc_id = (int) get_post_meta( $_anc_id, '_menu_item_menu_item_parent', true ) )
- && ! in_array( $_anc_id, $active_ancestor_item_ids, true )
+ ( $ancestor_id = (int) get_post_meta( $ancestor_id, '_menu_item_menu_item_parent', true ) )
+ && ! in_array( $ancestor_id, $active_ancestor_item_ids, true )
) {
- $active_ancestor_item_ids[] = $_anc_id;
+ $active_ancestor_item_ids[] = $ancestor_id;
}
if ( in_array( home_url(), array( untrailingslashit( $current_url ), untrailingslashit( $_indexless_current ) ), true ) ) {
@@ -512,18 +512,18 @@ function _wp_menu_item_classes_by_context( &$menu_items ) {
$active_object = $menu_item->object;
// Give front page item the 'current-menu-item' class when extra query arguments are involved.
- } elseif ( $item_url == $front_page_url && is_front_page() ) {
+ } elseif ( $item_url === $front_page_url && is_front_page() ) {
$classes[] = 'current-menu-item';
}
- if ( untrailingslashit( $item_url ) == home_url() ) {
+ if ( untrailingslashit( $item_url ) === home_url() ) {
$classes[] = 'menu-item-home';
}
}
// Back-compat with wp_page_menu(): add "current_page_parent" to static home page link for any non-page query.
if ( ! empty( $home_page_id ) && 'post_type' === $menu_item->type
- && empty( $wp_query->is_page ) && $home_page_id == $menu_item->object_id
+ && empty( $wp_query->is_page ) && $home_page_id === (int) $menu_item->object_id
) {
$classes[] = 'current_page_parent';
}
@@ -549,7 +549,7 @@ function _wp_menu_item_classes_by_context( &$menu_items ) {
&& ! empty( $queried_object->post_type )
&& is_post_type_hierarchical( $queried_object->post_type )
&& in_array( (int) $parent_item->object_id, $queried_object->ancestors, true )
- && $parent_item->object != $queried_object->ID
+ && (int) $parent_item->object_id !== $queried_object->ID
) ||
// Ancestral term.
@@ -559,7 +559,7 @@ function _wp_menu_item_classes_by_context( &$menu_items ) {
&& in_array( (int) $parent_item->object_id, $possible_taxonomy_ancestors[ $parent_item->object ], true )
&& (
! isset( $queried_object->term_id ) ||
- $parent_item->object_id != $queried_object->term_id
+ (int) $parent_item->object_id !== $queried_object->term_id
)
)
)
diff --git a/wp-includes/nav-menu.php b/wp-includes/nav-menu.php
index b43e456..a063835 100644
--- a/wp-includes/nav-menu.php
+++ b/wp-includes/nav-menu.php
@@ -280,7 +280,7 @@ function wp_delete_nav_menu( $menu ) {
// Remove this menu from any locations.
$locations = get_nav_menu_locations();
foreach ( $locations as $location => $menu_id ) {
- if ( $menu_id == $menu->term_id ) {
+ if ( $menu_id === $menu->term_id ) {
$locations[ $location ] = 0;
}
}
@@ -331,7 +331,7 @@ function wp_update_nav_menu_object( $menu_id = 0, $menu_data = array() ) {
$_possible_existing &&
! is_wp_error( $_possible_existing ) &&
isset( $_possible_existing->term_id ) &&
- $_possible_existing->term_id != $menu_id
+ $_possible_existing->term_id !== $menu_id
) {
return new WP_Error(
'menu_exists',
@@ -458,12 +458,22 @@ function wp_update_nav_menu_item( $menu_id = 0, $menu_item_db_id = 0, $menu_item
$args = wp_parse_args( $menu_item_data, $defaults );
- if ( 0 == $menu_id ) {
+ if ( 0 === $menu_id ) {
$args['menu-item-position'] = 1;
- } elseif ( 0 == (int) $args['menu-item-position'] ) {
- $menu_items = 0 == $menu_id ? array() : (array) wp_get_nav_menu_items( $menu_id, array( 'post_status' => 'publish,draft' ) );
- $last_item = array_pop( $menu_items );
- $args['menu-item-position'] = ( $last_item && isset( $last_item->menu_order ) ) ? 1 + $last_item->menu_order : count( $menu_items );
+ } elseif ( 0 === (int) $args['menu-item-position'] ) {
+ $menu_items = array();
+
+ if ( 0 !== $menu_id ) {
+ $menu_items = (array) wp_get_nav_menu_items( $menu_id, array( 'post_status' => 'publish,draft' ) );
+ }
+
+ $last_item = array_pop( $menu_items );
+
+ if ( $last_item && isset( $last_item->menu_order ) ) {
+ $args['menu-item-position'] = 1 + $last_item->menu_order;
+ } else {
+ $args['menu-item-position'] = count( $menu_items );
+ }
}
$original_parent = 0 < $menu_item_db_id ? get_post_field( 'post_parent', $menu_item_db_id ) : 0;
@@ -522,7 +532,7 @@ function wp_update_nav_menu_item( $menu_id = 0, $menu_item_db_id = 0, $menu_item
$post['post_date'] = $post_date;
}
- $update = 0 != $menu_item_db_id;
+ $update = 0 !== $menu_item_db_id;
// New menu item. Default is draft status.
if ( ! $update ) {
@@ -582,7 +592,7 @@ function wp_update_nav_menu_item( $menu_id = 0, $menu_item_db_id = 0, $menu_item
update_post_meta( $menu_item_db_id, '_menu_item_xfn', $args['menu-item-xfn'] );
update_post_meta( $menu_item_db_id, '_menu_item_url', sanitize_url( $args['menu-item-url'] ) );
- if ( 0 == $menu_id ) {
+ if ( 0 === $menu_id ) {
update_post_meta( $menu_item_db_id, '_menu_item_orphaned', (string) time() );
} elseif ( get_post_meta( $menu_item_db_id, '_menu_item_orphaned' ) ) {
delete_post_meta( $menu_item_db_id, '_menu_item_orphaned' );
@@ -1059,7 +1069,7 @@ function wp_get_associated_nav_menu_items( $object_id = 0, $object_type = 'post_
} elseif (
'taxonomy' === $object_type &&
'taxonomy' === $menu_item_type &&
- get_post_meta( $menu_item->ID, '_menu_item_object', true ) == $taxonomy
+ get_post_meta( $menu_item->ID, '_menu_item_object', true ) === $taxonomy
) {
$menu_item_ids[] = (int) $menu_item->ID;
}
@@ -1146,7 +1156,7 @@ function _wp_auto_add_pages_to_menu( $new_status, $old_status, $post ) {
continue;
}
foreach ( $items as $item ) {
- if ( $post->ID == $item->object_id ) {
+ if ( $post->ID === (int) $item->object_id ) {
continue 2;
}
}
diff --git a/wp-includes/option.php b/wp-includes/option.php
index 36bfcf6..4dee6ce 100644
--- a/wp-includes/option.php
+++ b/wp-includes/option.php
@@ -392,16 +392,16 @@ function wp_set_option_autoload_values( array $options ) {
}
$grouped_options = array(
- 'yes' => array(),
- 'no' => array(),
+ 'on' => array(),
+ 'off' => array(),
);
$results = array();
foreach ( $options as $option => $autoload ) {
wp_protect_special_option( $option ); // Ensure only valid options can be passed.
- if ( 'no' === $autoload || false === $autoload ) { // Sanitize autoload value and categorize accordingly.
- $grouped_options['no'][] = $option;
+ if ( 'off' === $autoload || 'no' === $autoload || false === $autoload ) { // Sanitize autoload value and categorize accordingly.
+ $grouped_options['off'][] = $option;
} else {
- $grouped_options['yes'][] = $option;
+ $grouped_options['on'][] = $option;
}
$results[ $option ] = false; // Initialize result value.
}
@@ -465,19 +465,19 @@ function wp_set_option_autoload_values( array $options ) {
}
/*
- * If any options were changed to 'yes', delete their individual caches, and delete 'alloptions' cache so that it
+ * If any options were changed to 'on', delete their individual caches, and delete 'alloptions' cache so that it
* is refreshed as needed.
- * If no options were changed to 'yes' but any options were changed to 'no', delete them from the 'alloptions'
- * cache. This is not necessary when options were changed to 'yes', since in that situation the entire cache is
+ * If no options were changed to 'on' but any options were changed to 'no', delete them from the 'alloptions'
+ * cache. This is not necessary when options were changed to 'on', since in that situation the entire cache is
* deleted anyway.
*/
- if ( $grouped_options['yes'] ) {
- wp_cache_delete_multiple( $grouped_options['yes'], 'options' );
+ if ( $grouped_options['on'] ) {
+ wp_cache_delete_multiple( $grouped_options['on'], 'options' );
wp_cache_delete( 'alloptions', 'options' );
- } elseif ( $grouped_options['no'] ) {
+ } elseif ( $grouped_options['off'] ) {
$alloptions = wp_load_alloptions( true );
- foreach ( $grouped_options['no'] as $option ) {
+ foreach ( $grouped_options['off'] as $option ) {
if ( isset( $alloptions[ $option ] ) ) {
unset( $alloptions[ $option ] );
}
@@ -606,7 +606,8 @@ function wp_load_alloptions( $force_cache = false ) {
if ( ! $alloptions ) {
$suppress = $wpdb->suppress_errors();
- $alloptions_db = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options WHERE autoload = 'yes'" );
+ $alloptions_db = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options WHERE autoload IN ( '" . implode( "', '", esc_sql( wp_autoload_values_to_autoload() ) ) . "' )" );
+
if ( ! $alloptions_db ) {
$alloptions_db = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options" );
}
@@ -642,50 +643,150 @@ function wp_load_alloptions( $force_cache = false ) {
}
/**
- * Loads and primes caches of certain often requested network options if is_multisite().
+ * Primes specific network options for the current network into the cache with a single database query.
*
- * @since 3.0.0
- * @since 6.3.0 Also prime caches for network options when persistent object cache is enabled.
+ * Only network options that do not already exist in cache will be loaded.
+ *
+ * If site is not multisite, then call wp_prime_option_caches().
+ *
+ * @since 6.6.0
+ *
+ * @see wp_prime_network_option_caches()
+ *
+ * @param string[] $options An array of option names to be loaded.
+ */
+function wp_prime_site_option_caches( array $options ) {
+ wp_prime_network_option_caches( null, $options );
+}
+
+/**
+ * Primes specific network options into the cache with a single database query.
+ *
+ * Only network options that do not already exist in cache will be loaded.
+ *
+ * If site is not multisite, then call wp_prime_option_caches().
+ *
+ * @since 6.6.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
- * @param int $network_id Optional. Network ID of network for which to prime network options cache. Defaults to current network.
+ * @param int $network_id ID of the network. Can be null to default to the current network ID.
+ * @param string[] $options An array of option names to be loaded.
*/
-function wp_load_core_site_options( $network_id = null ) {
+function wp_prime_network_option_caches( $network_id, array $options ) {
global $wpdb;
- if ( ! is_multisite() || wp_installing() ) {
+ if ( wp_installing() ) {
return;
}
- if ( empty( $network_id ) ) {
+ if ( ! is_multisite() ) {
+ wp_prime_option_caches( $options );
+ return;
+ }
+
+ if ( $network_id && ! is_numeric( $network_id ) ) {
+ return;
+ }
+
+ $network_id = (int) $network_id;
+
+ // Fallback to the current network if a network ID is not specified.
+ if ( ! $network_id ) {
$network_id = get_current_network_id();
}
- $core_options = array( 'site_name', 'siteurl', 'active_sitewide_plugins', '_site_transient_timeout_theme_roots', '_site_transient_theme_roots', 'site_admins', 'can_compress_scripts', 'global_terms_enabled', 'ms_files_rewriting' );
+ $cache_keys = array();
+ foreach ( $options as $option ) {
+ $cache_keys[ $option ] = "{$network_id}:{$option}";
+ }
- if ( wp_using_ext_object_cache() ) {
- $cache_keys = array();
- foreach ( $core_options as $option ) {
- $cache_keys[] = "{$network_id}:{$option}";
+ $cache_group = 'site-options';
+ $cached_options = wp_cache_get_multiple( array_values( $cache_keys ), $cache_group );
+
+ $notoptions_key = "$network_id:notoptions";
+ $notoptions = wp_cache_get( $notoptions_key, $cache_group );
+
+ if ( ! is_array( $notoptions ) ) {
+ $notoptions = array();
+ }
+
+ // Filter options that are not in the cache.
+ $options_to_prime = array();
+ foreach ( $cache_keys as $option => $cache_key ) {
+ if (
+ ( ! isset( $cached_options[ $cache_key ] ) || false === $cached_options[ $cache_key ] )
+ && ! isset( $notoptions[ $option ] )
+ ) {
+ $options_to_prime[] = $option;
}
- wp_cache_get_multiple( $cache_keys, 'site-options' );
+ }
+ // Bail early if there are no options to be loaded.
+ if ( empty( $options_to_prime ) ) {
return;
}
- $core_options_in = "'" . implode( "', '", $core_options ) . "'";
- $options = $wpdb->get_results( $wpdb->prepare( "SELECT meta_key, meta_value FROM $wpdb->sitemeta WHERE meta_key IN ($core_options_in) AND site_id = %d", $network_id ) );
+ $query_args = $options_to_prime;
+ $query_args[] = $network_id;
+ $results = $wpdb->get_results(
+ $wpdb->prepare(
+ sprintf(
+ "SELECT meta_key, meta_value FROM $wpdb->sitemeta WHERE meta_key IN (%s) AND site_id = %s",
+ implode( ',', array_fill( 0, count( $options_to_prime ), '%s' ) ),
+ '%d'
+ ),
+ $query_args
+ )
+ );
- $data = array();
- foreach ( $options as $option ) {
- $key = $option->meta_key;
- $cache_key = "{$network_id}:$key";
- $option->meta_value = maybe_unserialize( $option->meta_value );
+ $data = array();
+ $options_found = array();
+ foreach ( $results as $result ) {
+ $key = $result->meta_key;
+ $cache_key = $cache_keys[ $key ];
+ $data[ $cache_key ] = maybe_unserialize( $result->meta_value );
+ $options_found[] = $key;
+ }
+ wp_cache_set_multiple( $data, $cache_group );
+ // If all options were found, no need to update `notoptions` cache.
+ if ( count( $options_found ) === count( $options_to_prime ) ) {
+ return;
+ }
+
+ $options_not_found = array_diff( $options_to_prime, $options_found );
- $data[ $cache_key ] = $option->meta_value;
+ // Add the options that were not found to the cache.
+ $update_notoptions = false;
+ foreach ( $options_not_found as $option_name ) {
+ if ( ! isset( $notoptions[ $option_name ] ) ) {
+ $notoptions[ $option_name ] = true;
+ $update_notoptions = true;
+ }
+ }
+
+ // Only update the cache if it was modified.
+ if ( $update_notoptions ) {
+ wp_cache_set( $notoptions_key, $notoptions, $cache_group );
}
- wp_cache_set_multiple( $data, 'site-options' );
+}
+
+/**
+ * Loads and primes caches of certain often requested network options if is_multisite().
+ *
+ * @since 3.0.0
+ * @since 6.3.0 Also prime caches for network options when persistent object cache is enabled.
+ * @since 6.6.0 Uses wp_prime_network_option_caches().
+ *
+ * @param int $network_id Optional. Network ID of network for which to prime network options cache. Defaults to current network.
+ */
+function wp_load_core_site_options( $network_id = null ) {
+ if ( ! is_multisite() || wp_installing() ) {
+ return;
+ }
+ $core_options = array( 'site_name', 'siteurl', 'active_sitewide_plugins', '_site_transient_timeout_theme_roots', '_site_transient_theme_roots', 'site_admins', 'can_compress_scripts', 'global_terms_enabled', 'ms_files_rewriting', 'WPLANG' );
+
+ wp_prime_network_option_caches( $network_id, $core_options );
}
/**
@@ -705,17 +806,21 @@ function wp_load_core_site_options( $network_id = null ) {
*
* @global wpdb $wpdb WordPress database abstraction object.
*
- * @param string $option Name of the option to update. Expected to not be SQL-escaped.
- * @param mixed $value Option value. Must be serializable if non-scalar. Expected to not be SQL-escaped.
- * @param string|bool $autoload Optional. Whether to load the option when WordPress starts up. For existing options,
- * `$autoload` can only be updated using `update_option()` if `$value` is also changed.
- * Accepts 'yes'|true to enable or 'no'|false to disable.
- * Autoloading too many options can lead to performance problems, especially if the
- * options are not frequently used. For options which are accessed across several places
- * in the frontend, it is recommended to autoload them, by using 'yes'|true.
- * For options which are accessed only on few specific URLs, it is recommended
- * to not autoload them, by using 'no'|false. For non-existent options, the default value
- * is 'yes'. Default null.
+ * @param string $option Name of the option to update. Expected to not be SQL-escaped.
+ * @param mixed $value Option value. Must be serializable if non-scalar. Expected to not be SQL-escaped.
+ * @param bool|null $autoload Optional. Whether to load the option when WordPress starts up.
+ * Accepts a boolean, or `null` to stick with the initial value or, if no initial value is set,
+ * to leave the decision up to default heuristics in WordPress.
+ * For existing options,
+ * `$autoload` can only be updated using `update_option()` if `$value` is also changed.
+ * For backward compatibility 'yes' and 'no' are also accepted.
+ * Autoloading too many options can lead to performance problems, especially if the
+ * options are not frequently used. For options which are accessed across several places
+ * in the frontend, it is recommended to autoload them, by using true.
+ * For options which are accessed only on few specific URLs, it is recommended
+ * to not autoload them, by using false.
+ * For non-existent options, the default is null, which means WordPress will determine
+ * the autoload value.
* @return bool True if the value was updated, false otherwise.
*/
function update_option( $option, $value, $autoload = null ) {
@@ -801,11 +906,6 @@ function update_option( $option, $value, $autoload = null ) {
/** This filter is documented in wp-includes/option.php */
if ( apply_filters( "default_option_{$option}", false, $option, false ) === $old_value ) {
- // Default setting for new options is 'yes'.
- if ( null === $autoload ) {
- $autoload = 'yes';
- }
-
return add_option( $option, $value, '', $autoload );
}
@@ -827,7 +927,17 @@ function update_option( $option, $value, $autoload = null ) {
);
if ( null !== $autoload ) {
- $update_args['autoload'] = ( 'no' === $autoload || false === $autoload ) ? 'no' : 'yes';
+ $update_args['autoload'] = wp_determine_option_autoload_value( $option, $value, $serialized_value, $autoload );
+ } else {
+ // Retrieve the current autoload value to reevaluate it in case it was set automatically.
+ $raw_autoload = $wpdb->get_var( $wpdb->prepare( "SELECT autoload FROM $wpdb->options WHERE option_name = %s LIMIT 1", $option ) );
+ $allow_values = array( 'auto-on', 'auto-off', 'auto' );
+ if ( in_array( $raw_autoload, $allow_values, true ) ) {
+ $autoload = wp_determine_option_autoload_value( $option, $value, $serialized_value, $autoload );
+ if ( $autoload !== $raw_autoload ) {
+ $update_args['autoload'] = $autoload;
+ }
+ }
}
$result = $wpdb->update( $wpdb->options, $update_args, array( 'option_name' => $option ) );
@@ -853,7 +963,7 @@ function update_option( $option, $value, $autoload = null ) {
} else {
wp_cache_set( $option, $serialized_value, 'options' );
}
- } elseif ( 'yes' === $update_args['autoload'] ) {
+ } elseif ( in_array( $update_args['autoload'], wp_autoload_values_to_autoload(), true ) ) {
// Delete the individual cache, then set in alloptions cache.
wp_cache_delete( $option, 'options' );
@@ -915,23 +1025,26 @@ function update_option( $option, $value, $autoload = null ) {
* options the same as the ones which are protected.
*
* @since 1.0.0
+ * @since 6.6.0 The $autoload parameter's default value was changed to null.
*
* @global wpdb $wpdb WordPress database abstraction object.
*
- * @param string $option Name of the option to add. Expected to not be SQL-escaped.
- * @param mixed $value Optional. Option value. Must be serializable if non-scalar.
- * Expected to not be SQL-escaped.
- * @param string $deprecated Optional. Description. Not used anymore.
- * @param string|bool $autoload Optional. Whether to load the option when WordPress starts up.
- * Accepts 'yes'|true to enable or 'no'|false to disable.
- * Autoloading too many options can lead to performance problems, especially if the
- * options are not frequently used. For options which are accessed across several places
- * in the frontend, it is recommended to autoload them, by using 'yes'|true.
- * For options which are accessed only on few specific URLs, it is recommended
- * to not autoload them, by using 'no'|false. Default 'yes'.
+ * @param string $option Name of the option to add. Expected to not be SQL-escaped.
+ * @param mixed $value Optional. Option value. Must be serializable if non-scalar.
+ * Expected to not be SQL-escaped.
+ * @param string $deprecated Optional. Description. Not used anymore.
+ * @param bool|null $autoload Optional. Whether to load the option when WordPress starts up.
+ * Accepts a boolean, or `null` to leave the decision up to default heuristics in WordPress.
+ * For backward compatibility 'yes' and 'no' are also accepted.
+ * Autoloading too many options can lead to performance problems, especially if the
+ * options are not frequently used. For options which are accessed across several places
+ * in the frontend, it is recommended to autoload them, by using 'yes'|true.
+ * For options which are accessed only on few specific URLs, it is recommended
+ * to not autoload them, by using false.
+ * Default is null, which means WordPress will determine the autoload value.
* @return bool True if the option was added, false otherwise.
*/
-function add_option( $option, $value = '', $deprecated = '', $autoload = 'yes' ) {
+function add_option( $option, $value = '', $deprecated = '', $autoload = null ) {
global $wpdb;
if ( ! empty( $deprecated ) ) {
@@ -991,7 +1104,8 @@ function add_option( $option, $value = '', $deprecated = '', $autoload = 'yes' )
}
$serialized_value = maybe_serialize( $value );
- $autoload = ( 'no' === $autoload || false === $autoload ) ? 'no' : 'yes';
+
+ $autoload = wp_determine_option_autoload_value( $option, $value, $serialized_value, $autoload );
/**
* Fires before an option is added.
@@ -1009,7 +1123,7 @@ function add_option( $option, $value = '', $deprecated = '', $autoload = 'yes' )
}
if ( ! wp_installing() ) {
- if ( 'yes' === $autoload ) {
+ if ( in_array( $autoload, wp_autoload_values_to_autoload(), true ) ) {
$alloptions = wp_load_alloptions( true );
$alloptions[ $option ] = $serialized_value;
wp_cache_set( 'alloptions', $alloptions, 'options' );
@@ -1093,7 +1207,7 @@ function delete_option( $option ) {
$result = $wpdb->delete( $wpdb->options, array( 'option_name' => $option ) );
if ( ! wp_installing() ) {
- if ( 'yes' === $row->autoload ) {
+ if ( in_array( $row->autoload, wp_autoload_values_to_autoload(), true ) ) {
$alloptions = wp_load_alloptions( true );
if ( is_array( $alloptions ) && isset( $alloptions[ $option ] ) ) {
@@ -1134,6 +1248,96 @@ function delete_option( $option ) {
}
/**
+ * Determines the appropriate autoload value for an option based on input.
+ *
+ * This function checks the provided autoload value and returns a standardized value
+ * ('on', 'off', 'auto-on', 'auto-off', or 'auto') based on specific conditions.
+ *
+ * If no explicit autoload value is provided, the function will check for certain heuristics around the given option.
+ * It will return `auto-on` to indicate autoloading, `auto-off` to indicate not autoloading, or `auto` if no clear
+ * decision could be made.
+ *
+ * @since 6.6.0
+ * @access private
+ *
+ * @param string $option The name of the option.
+ * @param mixed $value The value of the option to check its autoload value.
+ * @param mixed $serialized_value The serialized value of the option to check its autoload value.
+ * @param bool|null $autoload The autoload value to check.
+ * Accepts 'on'|true to enable or 'off'|false to disable, or
+ * 'auto-on', 'auto-off', or 'auto' for internal purposes.
+ * Any other autoload value will be forced to either 'auto-on',
+ * 'auto-off', or 'auto'.
+ * 'yes' and 'no' are supported for backward compatibility.
+ * @return string Returns the original $autoload value if explicit, or 'auto-on', 'auto-off',
+ * or 'auto' depending on default heuristics.
+ */
+function wp_determine_option_autoload_value( $option, $value, $serialized_value, $autoload ) {
+
+ // Check if autoload is a boolean.
+ if ( is_bool( $autoload ) ) {
+ return $autoload ? 'on' : 'off';
+ }
+
+ switch ( $autoload ) {
+ case 'on':
+ case 'yes':
+ return 'on';
+ case 'off':
+ case 'no':
+ return 'off';
+ }
+
+ /**
+ * Allows to determine the default autoload value for an option where no explicit value is passed.
+ *
+ * @since 6.6.0
+ *
+ * @param bool|null $autoload The default autoload value to set. Returning true will be set as 'auto-on' in the
+ * database, false will be set as 'auto-off', and null will be set as 'auto'.
+ * @param string $option The passed option name.
+ * @param mixed $value The passed option value to be saved.
+ */
+ $autoload = apply_filters( 'wp_default_autoload_value', null, $option, $value, $serialized_value );
+ if ( is_bool( $autoload ) ) {
+ return $autoload ? 'auto-on' : 'auto-off';
+ }
+
+ return 'auto';
+}
+
+/**
+ * Filters the default autoload value to disable autoloading if the option value is too large.
+ *
+ * @since 6.6.0
+ * @access private
+ *
+ * @param bool|null $autoload The default autoload value to set.
+ * @param string $option The passed option name.
+ * @param mixed $value The passed option value to be saved.
+ * @param mixed $serialized_value The passed option value to be saved, in serialized form.
+ * @return bool|null Potentially modified $default.
+ */
+function wp_filter_default_autoload_value_via_option_size( $autoload, $option, $value, $serialized_value ) {
+ /**
+ * Filters the maximum size of option value in bytes.
+ *
+ * @since 6.6.0
+ *
+ * @param int $max_option_size The option-size threshold, in bytes. Default 150000.
+ * @param string $option The name of the option.
+ */
+ $max_option_size = (int) apply_filters( 'wp_max_autoloaded_option_size', 150000, $option );
+ $size = ! empty( $serialized_value ) ? strlen( $serialized_value ) : 0;
+
+ if ( $size > $max_option_size ) {
+ return false;
+ }
+
+ return $autoload;
+}
+
+/**
* Deletes a transient.
*
* @since 2.8.0
@@ -1226,7 +1430,8 @@ function get_transient( $transient ) {
if ( ! isset( $alloptions[ $transient_option ] ) ) {
$transient_timeout = '_transient_timeout_' . $transient;
- $timeout = get_option( $transient_timeout );
+ wp_prime_option_caches( array( $transient_option, $transient_timeout ) );
+ $timeout = get_option( $transient_timeout );
if ( false !== $timeout && $timeout < time() ) {
delete_option( $transient_option );
delete_option( $transient_timeout );
@@ -1306,12 +1511,13 @@ function set_transient( $transient, $value, $expiration = 0 ) {
} else {
$transient_timeout = '_transient_timeout_' . $transient;
$transient_option = '_transient_' . $transient;
+ wp_prime_option_caches( array( $transient_option, $transient_timeout ) );
if ( false === get_option( $transient_option ) ) {
- $autoload = 'yes';
+ $autoload = true;
if ( $expiration ) {
- $autoload = 'no';
- add_option( $transient_timeout, time() + $expiration, '', 'no' );
+ $autoload = false;
+ add_option( $transient_timeout, time() + $expiration, '', false );
}
$result = add_option( $transient_option, $value, '', $autoload );
} else {
@@ -1324,8 +1530,8 @@ function set_transient( $transient, $value, $expiration = 0 ) {
if ( $expiration ) {
if ( false === get_option( $transient_timeout ) ) {
delete_option( $transient_option );
- add_option( $transient_timeout, time() + $expiration, '', 'no' );
- $result = add_option( $transient_option, $value, '', 'no' );
+ add_option( $transient_timeout, time() + $expiration, '', false );
+ $result = add_option( $transient_option, $value, '', false );
$update = false;
} else {
update_option( $transient_timeout, time() + $expiration );
@@ -1913,7 +2119,7 @@ function add_network_option( $network_id, $option, $value ) {
$notoptions_key = "$network_id:notoptions";
if ( ! is_multisite() ) {
- $result = add_option( $option, $value, '', 'no' );
+ $result = add_option( $option, $value, '', false );
} else {
$cache_key = "$network_id:$option";
@@ -2159,7 +2365,7 @@ function update_network_option( $network_id, $option, $value ) {
}
if ( ! is_multisite() ) {
- $result = update_option( $option, $value, 'no' );
+ $result = update_option( $option, $value, false );
} else {
$value = sanitize_option( $option, $value );
@@ -2309,7 +2515,9 @@ function get_site_transient( $transient ) {
$transient_option = '_site_transient_' . $transient;
if ( ! in_array( $transient, $no_timeout, true ) ) {
$transient_timeout = '_site_transient_timeout_' . $transient;
- $timeout = get_site_option( $transient_timeout );
+ wp_prime_site_option_caches( array( $transient_option, $transient_timeout ) );
+
+ $timeout = get_site_option( $transient_timeout );
if ( false !== $timeout && $timeout < time() ) {
delete_site_option( $transient_option );
delete_site_option( $transient_timeout );
@@ -2387,6 +2595,7 @@ function set_site_transient( $transient, $value, $expiration = 0 ) {
} else {
$transient_timeout = '_site_transient_timeout_' . $transient;
$option = '_site_transient_' . $transient;
+ wp_prime_site_option_caches( array( $option, $transient_timeout ) );
if ( false === get_site_option( $option ) ) {
if ( $expiration ) {
@@ -2450,6 +2659,7 @@ function register_initial_settings() {
'name' => 'title',
),
'type' => 'string',
+ 'label' => __( 'Title' ),
'description' => __( 'Site title.' ),
)
);
@@ -2462,6 +2672,7 @@ function register_initial_settings() {
'name' => 'description',
),
'type' => 'string',
+ 'label' => __( 'Tagline' ),
'description' => __( 'Site tagline.' ),
)
);
@@ -2592,6 +2803,7 @@ function register_initial_settings() {
array(
'show_in_rest' => true,
'type' => 'integer',
+ 'label' => __( 'Maximum posts per page' ),
'description' => __( 'Blog pages show at most.' ),
'default' => 10,
)
@@ -2603,6 +2815,7 @@ function register_initial_settings() {
array(
'show_in_rest' => true,
'type' => 'string',
+ 'label' => __( 'Show on front' ),
'description' => __( 'What to show on the front page' ),
)
);
@@ -2613,6 +2826,7 @@ function register_initial_settings() {
array(
'show_in_rest' => true,
'type' => 'integer',
+ 'label' => __( 'Page on front' ),
'description' => __( 'The ID of the page that should be displayed on the front page' ),
)
);
@@ -2651,6 +2865,7 @@ function register_initial_settings() {
),
),
'type' => 'string',
+ 'label' => __( 'Allow comments on new posts' ),
'description' => __( 'Allow people to submit comments on new posts.' ),
)
);
@@ -2665,6 +2880,7 @@ function register_initial_settings() {
* @since 4.7.0 `$args` can be passed to set flags on the setting, similar to `register_meta()`.
* @since 5.5.0 `$new_whitelist_options` was renamed to `$new_allowed_options`.
* Please consider writing more inclusive code.
+ * @since 6.6.0 Added the `label` argument.
*
* @global array $new_allowed_options
* @global array $wp_registered_settings
@@ -2678,6 +2894,7 @@ function register_initial_settings() {
*
* @type string $type The type of data associated with this setting.
* Valid values are 'string', 'boolean', 'integer', 'number', 'array', and 'object'.
+ * @type string $label A label of the data attached to this setting.
* @type string $description A description of the data attached to this setting.
* @type callable $sanitize_callback A callback function that sanitizes the option's value.
* @type bool|array $show_in_rest Whether data associated with this setting should be included in the REST API.
@@ -2698,6 +2915,7 @@ function register_setting( $option_group, $option_name, $args = array() ) {
$defaults = array(
'type' => 'string',
'group' => $option_group,
+ 'label' => '',
'description' => '',
'sanitize_callback' => null,
'show_in_rest' => false,
@@ -2924,3 +3142,28 @@ function filter_default_option( $default_value, $option, $passed_default ) {
return $registered[ $option ]['default'];
}
+
+/**
+ * Returns the values that trigger autoloading from the options table.
+ *
+ * @since 6.6.0
+ *
+ * @return string[] The values that trigger autoloading.
+ */
+function wp_autoload_values_to_autoload() {
+ $autoload_values = array( 'yes', 'on', 'auto-on', 'auto' );
+
+ /**
+ * Filters the autoload values that should be considered for autoloading from the options table.
+ *
+ * The filter can only be used to remove autoload values from the default list.
+ *
+ * @since 6.6.0
+ *
+ * @param string[] $autoload_values Autoload values used to autoload option.
+ * Default list contains 'yes', 'on', 'auto-on', and 'auto'.
+ */
+ $filtered_values = apply_filters( 'wp_autoload_values_to_autoload', $autoload_values );
+
+ return array_intersect( $filtered_values, $autoload_values );
+}
diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php
index 03bae13..5ed63e5 100644
--- a/wp-includes/pluggable.php
+++ b/wp-includes/pluggable.php
@@ -30,7 +30,7 @@ if ( ! function_exists( 'wp_set_current_user' ) ) :
// If `$id` matches the current user, there is nothing to do.
if ( isset( $current_user )
&& ( $current_user instanceof WP_User )
- && ( $id == $current_user->ID )
+ && ( $id === $current_user->ID )
&& ( null !== $id )
) {
return $current_user;
@@ -617,7 +617,7 @@ if ( ! function_exists( 'wp_authenticate' ) ) :
*/
$user = apply_filters( 'authenticate', null, $username, $password );
- if ( null == $user ) {
+ if ( null === $user || false === $user ) {
/*
* TODO: What should the error message be? (Or would these even happen?)
* Only needed if all authentication handlers fail to return anything.
@@ -1093,7 +1093,7 @@ if ( ! function_exists( 'wp_set_auth_cookie' ) ) :
setcookie( $auth_cookie_name, $auth_cookie, $expire, PLUGINS_COOKIE_PATH, COOKIE_DOMAIN, $secure, true );
setcookie( $auth_cookie_name, $auth_cookie, $expire, ADMIN_COOKIE_PATH, COOKIE_DOMAIN, $secure, true );
setcookie( LOGGED_IN_COOKIE, $logged_in_cookie, $expire, COOKIEPATH, COOKIE_DOMAIN, $secure_logged_in_cookie, true );
- if ( COOKIEPATH != SITECOOKIEPATH ) {
+ if ( COOKIEPATH !== SITECOOKIEPATH ) {
setcookie( LOGGED_IN_COOKIE, $logged_in_cookie, $expire, SITECOOKIEPATH, COOKIE_DOMAIN, $secure_logged_in_cookie, true );
}
}
@@ -1315,7 +1315,7 @@ if ( ! function_exists( 'check_ajax_referer' ) ) :
* False if the nonce is invalid.
*/
function check_ajax_referer( $action = -1, $query_arg = false, $stop = true ) {
- if ( -1 == $action ) {
+ if ( -1 === $action ) {
_doing_it_wrong( __FUNCTION__, __( 'You should specify an action to be verified by using the first parameter.' ), '4.7.0' );
}
@@ -1698,12 +1698,12 @@ if ( ! function_exists( 'wp_notify_postauthor' ) ) :
$notify_author = apply_filters( 'comment_notification_notify_author', false, $comment->comment_ID );
// The comment was left by the author.
- if ( $author && ! $notify_author && $comment->user_id == $post->post_author ) {
+ if ( $author && ! $notify_author && (int) $comment->user_id === (int) $post->post_author ) {
unset( $emails[ $author->user_email ] );
}
// The author moderated a comment on their own post.
- if ( $author && ! $notify_author && get_current_user_id() == $post->post_author ) {
+ if ( $author && ! $notify_author && get_current_user_id() === (int) $post->post_author ) {
unset( $emails[ $author->user_email ] );
}
diff --git a/wp-includes/pomo/plural-forms.php b/wp-includes/pomo/plural-forms.php
index ae9c306..a604334 100644
--- a/wp-includes/pomo/plural-forms.php
+++ b/wp-includes/pomo/plural-forms.php
@@ -320,13 +320,13 @@ if ( ! class_exists( 'Plural_Forms', false ) ) :
case '!=':
$v2 = array_pop( $stack );
$v1 = array_pop( $stack );
- $stack[] = $v1 != $v2;
+ $stack[] = $v1 !== $v2;
break;
case '==':
$v2 = array_pop( $stack );
$v1 = array_pop( $stack );
- $stack[] = $v1 == $v2;
+ $stack[] = $v1 === $v2;
break;
case '?:':
diff --git a/wp-includes/post-formats.php b/wp-includes/post-formats.php
index 282670b..2c199e6 100644
--- a/wp-includes/post-formats.php
+++ b/wp-includes/post-formats.php
@@ -63,8 +63,8 @@ function has_post_format( $format = array(), $post = null ) {
*
* @since 3.1.0
*
- * @param int|object $post The post for which to assign a format.
- * @param string $format A format to assign. Use an empty string or array to remove all formats from the post.
+ * @param int|WP_Post $post The post for which to assign a format.
+ * @param string $format A format to assign. Use an empty string or array to remove all formats from the post.
* @return array|WP_Error|false Array of affected term IDs on success. WP_Error on error.
*/
function set_post_format( $post, $format ) {
diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php
index f6635fd..7b12bf6 100644
--- a/wp-includes/post-template.php
+++ b/wp-includes/post-template.php
@@ -345,7 +345,9 @@ function get_the_content( $more_link_text = null, $strip_teaser = false, $post =
$content = array( $content );
}
- if ( str_contains( $_post->post_content, '<!--noteaser-->' ) && ( ! $elements['multipage'] || 1 == $elements['page'] ) ) {
+ if ( str_contains( $_post->post_content, '<!--noteaser-->' )
+ && ( ! $elements['multipage'] || 1 === $elements['page'] )
+ ) {
$strip_teaser = true;
}
@@ -978,11 +980,13 @@ function wp_link_pages( $args = '' ) {
$output .= $parsed_args['before'];
for ( $i = 1; $i <= $numpages; $i++ ) {
$link = $parsed_args['link_before'] . str_replace( '%', $i, $parsed_args['pagelink'] ) . $parsed_args['link_after'];
- if ( $i != $page || ! $more && 1 == $page ) {
+
+ if ( $i !== $page || ! $more && 1 === $page ) {
$link = _wp_link_page( $i ) . $link . '</a>';
} elseif ( $i === $page ) {
$link = '<span class="post-page-numbers current" aria-current="' . esc_attr( $parsed_args['aria_current'] ) . '">' . $link . '</span>';
}
+
/**
* Filters the HTML output of individual page number links.
*
@@ -1054,12 +1058,12 @@ function _wp_link_page( $i ) {
$post = get_post();
$query_args = array();
- if ( 1 == $i ) {
+ if ( 1 === $i ) {
$url = get_permalink();
} else {
if ( ! get_option( 'permalink_structure' ) || in_array( $post->post_status, array( 'draft', 'pending' ), true ) ) {
$url = add_query_arg( 'page', $i, get_permalink() );
- } elseif ( 'page' === get_option( 'show_on_front' ) && get_option( 'page_on_front' ) == $post->ID ) {
+ } elseif ( 'page' === get_option( 'show_on_front' ) && (int) get_option( 'page_on_front' ) === $post->ID ) {
$url = trailingslashit( get_permalink() ) . user_trailingslashit( "$wp_rewrite->pagination_base/" . $i, 'single_paged' );
} else {
$url = trailingslashit( get_permalink() ) . user_trailingslashit( $i, 'single_paged' );
@@ -1815,7 +1819,7 @@ function is_page_template( $template = '' ) {
return (bool) $page_template;
}
- if ( $template == $page_template ) {
+ if ( $template === $page_template ) {
return true;
}
@@ -1861,8 +1865,8 @@ function get_page_template_slug( $post = null ) {
*
* @since 2.6.0
*
- * @param int|object $revision Revision ID or revision object.
- * @param bool $link Optional. Whether to link to revision's page. Default true.
+ * @param int|WP_Post $revision Revision ID or revision object.
+ * @param bool $link Optional. Whether to link to revision's page. Default true.
* @return string|false i18n formatted datetimestamp or localized 'Current Revision'.
*/
function wp_post_revision_title( $revision, $link = true ) {
@@ -1903,8 +1907,8 @@ function wp_post_revision_title( $revision, $link = true ) {
*
* @since 3.6.0
*
- * @param int|object $revision Revision ID or revision object.
- * @param bool $link Optional. Whether to link to revision's page. Default true.
+ * @param int|WP_Post $revision Revision ID or revision object.
+ * @param bool $link Optional. Whether to link to revision's page. Default true.
* @return string|false gravatar, user, i18n formatted datetimestamp or localized 'Current Revision'.
*/
function wp_post_revision_title_expanded( $revision, $link = true ) {
diff --git a/wp-includes/post.php b/wp-includes/post.php
index 7645043..993056f 100644
--- a/wp-includes/post.php
+++ b/wp-includes/post.php
@@ -328,6 +328,7 @@ function create_initial_post_types() {
'map_meta_cap' => true,
'supports' => array(
'title',
+ 'excerpt',
'editor',
'revisions',
'custom-fields',
@@ -365,6 +366,7 @@ function create_initial_post_types() {
'filter_items_list' => __( 'Filter templates list' ),
'items_list_navigation' => __( 'Templates list navigation' ),
'items_list' => __( 'Templates list' ),
+ 'item_updated' => __( 'Template updated.' ),
),
'description' => __( 'Templates to include in your theme.' ),
'public' => false,
@@ -429,6 +431,7 @@ function create_initial_post_types() {
'filter_items_list' => __( 'Filter template parts list' ),
'items_list_navigation' => __( 'Template parts list navigation' ),
'items_list' => __( 'Template parts list' ),
+ 'item_updated' => __( 'Template part updated.' ),
),
'description' => __( 'Template parts to include in your templates.' ),
'public' => false,
@@ -473,15 +476,19 @@ function create_initial_post_types() {
register_post_type(
'wp_global_styles',
array(
- 'label' => _x( 'Global Styles', 'post type general name' ),
- 'description' => __( 'Global styles to include in themes.' ),
- 'public' => false,
- '_builtin' => true, /* internal use only. don't use this when registering your own post type. */
- '_edit_link' => '/site-editor.php?canvas=edit', /* internal use only. don't use this when registering your own post type. */
- 'show_ui' => false,
- 'show_in_rest' => false,
- 'rewrite' => false,
- 'capabilities' => array(
+ 'label' => _x( 'Global Styles', 'post type general name' ),
+ 'description' => __( 'Global styles to include in themes.' ),
+ 'public' => false,
+ '_builtin' => true, /* internal use only. don't use this when registering your own post type. */
+ '_edit_link' => '/site-editor.php?canvas=edit', /* internal use only. don't use this when registering your own post type. */
+ 'show_ui' => false,
+ 'show_in_rest' => true,
+ 'rewrite' => false,
+ 'rest_base' => 'global-styles',
+ 'rest_controller_class' => 'WP_REST_Global_Styles_Controller',
+ 'revisions_rest_controller_class' => 'WP_REST_Global_Styles_Revisions_Controller',
+ 'late_route_registration' => true,
+ 'capabilities' => array(
'read' => 'edit_theme_options',
'create_posts' => 'edit_theme_options',
'edit_posts' => 'edit_theme_options',
@@ -490,14 +497,16 @@ function create_initial_post_types() {
'edit_others_posts' => 'edit_theme_options',
'delete_others_posts' => 'edit_theme_options',
),
- 'map_meta_cap' => true,
- 'supports' => array(
+ 'map_meta_cap' => true,
+ 'supports' => array(
'title',
'editor',
'revisions',
),
)
);
+ // Disable autosave endpoints for global styles.
+ remove_post_type_support( 'wp_global_styles', 'autosave' );
$navigation_post_edit_link = 'site-editor.php?' . build_query(
array(
@@ -567,14 +576,14 @@ function create_initial_post_types() {
register_post_type(
'wp_font_family',
array(
- 'labels' => array(
+ 'labels' => array(
'name' => __( 'Font Families' ),
'singular_name' => __( 'Font Family' ),
),
- 'public' => false,
- '_builtin' => true, /* internal use only. don't use this when registering your own post type. */
- 'hierarchical' => false,
- 'capabilities' => array(
+ 'public' => false,
+ '_builtin' => true, /* internal use only. don't use this when registering your own post type. */
+ 'hierarchical' => false,
+ 'capabilities' => array(
'read' => 'edit_theme_options',
'read_private_posts' => 'edit_theme_options',
'create_posts' => 'edit_theme_options',
@@ -586,28 +595,27 @@ function create_initial_post_types() {
'delete_others_posts' => 'edit_theme_options',
'delete_published_posts' => 'edit_theme_options',
),
- 'map_meta_cap' => true,
- 'query_var' => false,
- 'rewrite' => false,
- 'show_in_rest' => true,
- 'rest_base' => 'font-families',
- 'rest_controller_class' => 'WP_REST_Font_Families_Controller',
- // Disable autosave endpoints for font families.
- 'autosave_rest_controller_class' => 'stdClass',
+ 'map_meta_cap' => true,
+ 'query_var' => false,
+ 'rewrite' => false,
+ 'show_in_rest' => true,
+ 'rest_base' => 'font-families',
+ 'rest_controller_class' => 'WP_REST_Font_Families_Controller',
+ 'supports' => array( 'title' ),
)
);
register_post_type(
'wp_font_face',
array(
- 'labels' => array(
+ 'labels' => array(
'name' => __( 'Font Faces' ),
'singular_name' => __( 'Font Face' ),
),
- 'public' => false,
- '_builtin' => true, /* internal use only. don't use this when registering your own post type. */
- 'hierarchical' => false,
- 'capabilities' => array(
+ 'public' => false,
+ '_builtin' => true, /* internal use only. don't use this when registering your own post type. */
+ 'hierarchical' => false,
+ 'capabilities' => array(
'read' => 'edit_theme_options',
'read_private_posts' => 'edit_theme_options',
'create_posts' => 'edit_theme_options',
@@ -619,14 +627,13 @@ function create_initial_post_types() {
'delete_others_posts' => 'edit_theme_options',
'delete_published_posts' => 'edit_theme_options',
),
- 'map_meta_cap' => true,
- 'query_var' => false,
- 'rewrite' => false,
- 'show_in_rest' => true,
- 'rest_base' => 'font-families/(?P<font_family_id>[\d]+)/font-faces',
- 'rest_controller_class' => 'WP_REST_Font_Faces_Controller',
- // Disable autosave endpoints for font faces.
- 'autosave_rest_controller_class' => 'stdClass',
+ 'map_meta_cap' => true,
+ 'query_var' => false,
+ 'rewrite' => false,
+ 'show_in_rest' => true,
+ 'rest_base' => 'font-families/(?P<font_family_id>[\d]+)/font-faces',
+ 'rest_controller_class' => 'WP_REST_Font_Faces_Controller',
+ 'supports' => array( 'title' ),
)
);
@@ -1217,7 +1224,10 @@ function get_post_mime_type( $post = null ) {
* @return string|false Post status on success, false on failure.
*/
function get_post_status( $post = null ) {
- $post = get_post( $post );
+ // Normalize the post object if necessary, skip normalization if called from get_sample_permalink().
+ if ( ! $post instanceof WP_Post || ! isset( $post->filter ) || 'sample' !== $post->filter ) {
+ $post = get_post( $post );
+ }
if ( ! is_object( $post ) ) {
return false;
@@ -1713,8 +1723,10 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' )
* 'editor', 'comments', 'revisions', 'trackbacks', 'author', 'excerpt',
* 'page-attributes', 'thumbnail', 'custom-fields', and 'post-formats'.
* Additionally, the 'revisions' feature dictates whether the post type
- * will store revisions, and the 'comments' feature dictates whether the
- * comments count will show on the edit screen. A feature can also be
+ * will store revisions, the 'autosave' feature dictates whether the post type
+ * will be autosaved, and the 'comments' feature dictates whether the
+ * comments count will show on the edit screen. For backward compatibility reasons,
+ * adding 'editor' support implies 'autosave' support too. A feature can also be
* specified as an array of arguments to provide additional information
* about supporting that feature.
* Example: `array( 'my_feature', array( 'field' => 'value' ) )`.
@@ -2071,6 +2083,7 @@ function _post_type_meta_capabilities( $capabilities = null ) {
* @since 6.3.0 Added the `item_trashed` label.
* @since 6.4.0 Changed default values for the `add_new` label to include the type of content.
* This matches `add_new_item` and provides more context for better accessibility.
+ * @since 6.6.0 Added the `template_name` label.
*
* @access private
*
@@ -2084,6 +2097,11 @@ function get_post_type_labels( $post_type_object ) {
$labels = _get_custom_object_labels( $post_type_object, $nohier_vs_hier_defaults );
+ if ( ! isset( $post_type_object->labels->template_name ) && isset( $post_type_object->labels->singular_name ) ) {
+ /* translators: %s: Post type name. */
+ $labels->template_name = sprintf( __( 'Single item: %s' ), $post_type_object->labels->singular_name );
+ }
+
$post_type = $post_type_object->name;
$default_labels = clone $labels;
@@ -2192,7 +2210,8 @@ function _add_post_type_submenus() {
* 'thumbnail', 'custom-fields', and 'post-formats'.
*
* Additionally, the 'revisions' feature dictates whether the post type will
- * store revisions, and the 'comments' feature dictates whether the comments
+ * store revisions, the 'autosave' feature dictates whether the post type
+ * will be autosaved, and the 'comments' feature dictates whether the comments
* count will show on the edit screen.
*
* A third, optional parameter can also be passed along with a feature to provide
@@ -3403,7 +3422,7 @@ function wp_post_mime_type_where( $post_mime_types, $table_alias = '' ) {
$post_mime_types = array_map( 'trim', explode( ',', $post_mime_types ) );
}
- $wheres = array();
+ $where_clauses = array();
foreach ( (array) $post_mime_types as $mime_type ) {
$mime_type = preg_replace( '/\s/', '', $mime_type );
@@ -3431,14 +3450,14 @@ function wp_post_mime_type_where( $post_mime_types, $table_alias = '' ) {
}
if ( str_contains( $mime_pattern, '%' ) ) {
- $wheres[] = empty( $table_alias ) ? "post_mime_type LIKE '$mime_pattern'" : "$table_alias.post_mime_type LIKE '$mime_pattern'";
+ $where_clauses[] = empty( $table_alias ) ? "post_mime_type LIKE '$mime_pattern'" : "$table_alias.post_mime_type LIKE '$mime_pattern'";
} else {
- $wheres[] = empty( $table_alias ) ? "post_mime_type = '$mime_pattern'" : "$table_alias.post_mime_type = '$mime_pattern'";
+ $where_clauses[] = empty( $table_alias ) ? "post_mime_type = '$mime_pattern'" : "$table_alias.post_mime_type = '$mime_pattern'";
}
}
- if ( ! empty( $wheres ) ) {
- $where = ' AND (' . implode( ' OR ', $wheres ) . ') ';
+ if ( ! empty( $where_clauses ) ) {
+ $where = ' AND (' . implode( ' OR ', $where_clauses ) . ') ';
}
return $where;
@@ -3460,15 +3479,15 @@ function wp_post_mime_type_where( $post_mime_types, $table_alias = '' ) {
* @see wp_delete_attachment()
* @see wp_trash_post()
*
- * @param int $postid Optional. Post ID. Default 0.
+ * @param int $post_id Optional. Post ID. Default 0.
* @param bool $force_delete Optional. Whether to bypass Trash and force deletion.
* Default false.
* @return WP_Post|false|null Post data on success, false or null on failure.
*/
-function wp_delete_post( $postid = 0, $force_delete = false ) {
+function wp_delete_post( $post_id = 0, $force_delete = false ) {
global $wpdb;
- $post = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE ID = %d", $postid ) );
+ $post = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE ID = %d", $post_id ) );
if ( ! $post ) {
return $post;
@@ -3476,12 +3495,15 @@ function wp_delete_post( $postid = 0, $force_delete = false ) {
$post = get_post( $post );
- if ( ! $force_delete && ( 'post' === $post->post_type || 'page' === $post->post_type ) && 'trash' !== get_post_status( $postid ) && EMPTY_TRASH_DAYS ) {
- return wp_trash_post( $postid );
+ if ( ! $force_delete
+ && ( 'post' === $post->post_type || 'page' === $post->post_type )
+ && 'trash' !== get_post_status( $post_id ) && EMPTY_TRASH_DAYS
+ ) {
+ return wp_trash_post( $post_id );
}
if ( 'attachment' === $post->post_type ) {
- return wp_delete_attachment( $postid, $force_delete );
+ return wp_delete_attachment( $post_id, $force_delete );
}
/**
@@ -3506,30 +3528,39 @@ function wp_delete_post( $postid = 0, $force_delete = false ) {
*
* @see wp_delete_post()
*
- * @param int $postid Post ID.
- * @param WP_Post $post Post object.
+ * @param int $post_id Post ID.
+ * @param WP_Post $post Post object.
*/
- do_action( 'before_delete_post', $postid, $post );
+ do_action( 'before_delete_post', $post_id, $post );
- delete_post_meta( $postid, '_wp_trash_meta_status' );
- delete_post_meta( $postid, '_wp_trash_meta_time' );
+ delete_post_meta( $post_id, '_wp_trash_meta_status' );
+ delete_post_meta( $post_id, '_wp_trash_meta_time' );
- wp_delete_object_term_relationships( $postid, get_object_taxonomies( $post->post_type ) );
+ wp_delete_object_term_relationships( $post_id, get_object_taxonomies( $post->post_type ) );
$parent_data = array( 'post_parent' => $post->post_parent );
- $parent_where = array( 'post_parent' => $postid );
+ $parent_where = array( 'post_parent' => $post_id );
if ( is_post_type_hierarchical( $post->post_type ) ) {
// Point children of this page to its parent, also clean the cache of affected children.
- $children_query = $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_parent = %d AND post_type = %s", $postid, $post->post_type );
- $children = $wpdb->get_results( $children_query );
+ $children_query = $wpdb->prepare(
+ "SELECT * FROM $wpdb->posts WHERE post_parent = %d AND post_type = %s",
+ $post_id,
+ $post->post_type
+ );
+
+ $children = $wpdb->get_results( $children_query );
+
if ( $children ) {
$wpdb->update( $wpdb->posts, $parent_data, $parent_where + array( 'post_type' => $post->post_type ) );
}
}
// Do raw query. wp_get_post_revisions() is filtered.
- $revision_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_parent = %d AND post_type = 'revision'", $postid ) );
+ $revision_ids = $wpdb->get_col(
+ $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_parent = %d AND post_type = 'revision'", $post_id )
+ );
+
// Use wp_delete_post (via wp_delete_post_revision) again. Ensures any meta/misplaced data gets cleaned up.
foreach ( $revision_ids as $revision_id ) {
wp_delete_post_revision( $revision_id );
@@ -3540,14 +3571,20 @@ function wp_delete_post( $postid = 0, $force_delete = false ) {
wp_defer_comment_counting( true );
- $comment_ids = $wpdb->get_col( $wpdb->prepare( "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = %d ORDER BY comment_ID DESC", $postid ) );
+ $comment_ids = $wpdb->get_col(
+ $wpdb->prepare( "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = %d ORDER BY comment_ID DESC", $post_id )
+ );
+
foreach ( $comment_ids as $comment_id ) {
wp_delete_comment( $comment_id, true );
}
wp_defer_comment_counting( false );
- $post_meta_ids = $wpdb->get_col( $wpdb->prepare( "SELECT meta_id FROM $wpdb->postmeta WHERE post_id = %d ", $postid ) );
+ $post_meta_ids = $wpdb->get_col(
+ $wpdb->prepare( "SELECT meta_id FROM $wpdb->postmeta WHERE post_id = %d ", $post_id )
+ );
+
foreach ( $post_meta_ids as $mid ) {
delete_metadata_by_mid( 'post', $mid );
}
@@ -3555,15 +3592,28 @@ function wp_delete_post( $postid = 0, $force_delete = false ) {
/**
* Fires immediately before a post is deleted from the database.
*
+ * The dynamic portion of the hook name, `$post->post_type`, refers to
+ * the post type slug.
+ *
+ * @since 6.6.0
+ *
+ * @param int $post_id Post ID.
+ * @param WP_Post $post Post object.
+ */
+ do_action( "delete_post_{$post->post_type}", $post_id, $post );
+
+ /**
+ * Fires immediately before a post is deleted from the database.
+ *
* @since 1.2.0
* @since 5.5.0 Added the `$post` parameter.
*
- * @param int $postid Post ID.
- * @param WP_Post $post Post object.
+ * @param int $post_id Post ID.
+ * @param WP_Post $post Post object.
*/
- do_action( 'delete_post', $postid, $post );
+ do_action( 'delete_post', $post_id, $post );
- $result = $wpdb->delete( $wpdb->posts, array( 'ID' => $postid ) );
+ $result = $wpdb->delete( $wpdb->posts, array( 'ID' => $post_id ) );
if ( ! $result ) {
return false;
}
@@ -3571,13 +3621,26 @@ function wp_delete_post( $postid = 0, $force_delete = false ) {
/**
* Fires immediately after a post is deleted from the database.
*
+ * The dynamic portion of the hook name, `$post->post_type`, refers to
+ * the post type slug.
+ *
+ * @since 6.6.0
+ *
+ * @param int $post_id Post ID.
+ * @param WP_Post $post Post object.
+ */
+ do_action( "deleted_post_{$post->post_type}", $post_id, $post );
+
+ /**
+ * Fires immediately after a post is deleted from the database.
+ *
* @since 2.2.0
* @since 5.5.0 Added the `$post` parameter.
*
- * @param int $postid Post ID.
- * @param WP_Post $post Post object.
+ * @param int $post_id Post ID.
+ * @param WP_Post $post Post object.
*/
- do_action( 'deleted_post', $postid, $post );
+ do_action( 'deleted_post', $post_id, $post );
clean_post_cache( $post );
@@ -3587,7 +3650,7 @@ function wp_delete_post( $postid = 0, $force_delete = false ) {
}
}
- wp_clear_scheduled_hook( 'publish_future_post', array( $postid ) );
+ wp_clear_scheduled_hook( 'publish_future_post', array( $post_id ) );
/**
* Fires after a post is deleted, at the conclusion of wp_delete_post().
@@ -3597,10 +3660,10 @@ function wp_delete_post( $postid = 0, $force_delete = false ) {
*
* @see wp_delete_post()
*
- * @param int $postid Post ID.
- * @param WP_Post $post Post object.
+ * @param int $post_id Post ID.
+ * @param WP_Post $post Post object.
*/
- do_action( 'after_delete_post', $postid, $post );
+ do_action( 'after_delete_post', $post_id, $post );
return $post;
}
@@ -6813,6 +6876,11 @@ function wp_mime_type_icon( $mime = 0, $preferred_ext = '.png' ) {
$icon = wp_cache_get( "mime_type_icon_$mime" );
}
+ // Check if preferred file format variable is present and is a validly formatted file extension.
+ if ( ! empty( $preferred_ext ) && is_string( $preferred_ext ) && ! str_starts_with( $preferred_ext, '.' ) ) {
+ $preferred_ext = '.' . strtolower( $preferred_ext );
+ }
+
$post_id = 0;
if ( empty( $icon ) ) {
$post_mimes = array();
@@ -7886,10 +7954,10 @@ function _prime_post_caches( $ids, $update_term_cache = true, $update_meta_cache
/**
* Prime the cache containing the parent ID of various post objects.
*
- * @global wpdb $wpdb WordPress database abstraction object.
- *
* @since 6.4.0
*
+ * @global wpdb $wpdb WordPress database abstraction object.
+ *
* @param int[] $ids ID list.
*/
function _prime_post_parent_id_caches( array $ids ) {
@@ -8026,10 +8094,11 @@ function get_available_post_mime_types( $type = 'attachment' ) {
$mime_types = apply_filters( 'pre_get_available_post_mime_types', null, $type );
if ( ! is_array( $mime_types ) ) {
- $mime_types = $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT post_mime_type FROM $wpdb->posts WHERE post_type = %s", $type ) );
+ $mime_types = $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT post_mime_type FROM $wpdb->posts WHERE post_type = %s AND post_mime_type != ''", $type ) );
}
- return $mime_types;
+ // Remove nulls from returned $mime_types.
+ return array_values( array_filter( $mime_types ) );
}
/**
diff --git a/wp-includes/rest-api.php b/wp-includes/rest-api.php
index 5bf4887..7aa2534 100644
--- a/wp-includes/rest-api.php
+++ b/wp-includes/rest-api.php
@@ -323,14 +323,6 @@ function create_initial_rest_routes() {
$controller = new WP_REST_Block_Types_Controller();
$controller->register_routes();
- // Global Styles revisions.
- $controller = new WP_REST_Global_Styles_Revisions_Controller();
- $controller->register_routes();
-
- // Global Styles.
- $controller = new WP_REST_Global_Styles_Controller();
- $controller->register_routes();
-
// Settings.
$controller = new WP_REST_Settings_Controller();
$controller->register_routes();
@@ -1015,7 +1007,11 @@ function rest_output_link_wp_head() {
$resource = rest_get_queried_resource_route();
if ( $resource ) {
- printf( '<link rel="alternate" type="application/json" href="%s" />', esc_url( rest_url( $resource ) ) );
+ printf(
+ '<link rel="alternate" title="%1$s" type="application/json" href="%2$s" />',
+ _x( 'JSON', 'REST API resource link name' ),
+ esc_url( rest_url( $resource ) )
+ );
}
}
@@ -1040,7 +1036,14 @@ function rest_output_link_header() {
$resource = rest_get_queried_resource_route();
if ( $resource ) {
- header( sprintf( 'Link: <%s>; rel="alternate"; type="application/json"', sanitize_url( rest_url( $resource ) ) ), false );
+ header(
+ sprintf(
+ 'Link: <%1$s>; rel="alternate"; title="%2$s"; type="application/json"',
+ sanitize_url( rest_url( $resource ) ),
+ _x( 'JSON', 'REST API resource link name' )
+ ),
+ false
+ );
}
}
@@ -1277,7 +1280,7 @@ function rest_get_avatar_sizes() {
* @param string $date RFC3339 timestamp.
* @param bool $force_utc Optional. Whether to force UTC timezone instead of using
* the timestamp's timezone. Default false.
- * @return int Unix timestamp.
+ * @return int|false Unix timestamp on success, false on failure.
*/
function rest_parse_date( $date, $force_utc = false ) {
if ( $force_utc ) {
@@ -1299,7 +1302,7 @@ function rest_parse_date( $date, $force_utc = false ) {
* @since 5.4.0
*
* @param string $color 3 or 6 digit hex color (with #).
- * @return string|false
+ * @return string|false Color value on success, false on failure.
*/
function rest_parse_hex_color( $color ) {
$regex = '|^#([A-Fa-f0-9]{3}){1,2}$|';
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
index 804d22a..cbc62b4 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
@@ -254,10 +254,21 @@ class WP_REST_Attachments_Controller extends WP_REST_Posts_Controller {
$files = $request->get_file_params();
$headers = $request->get_headers();
+ $time = null;
+
+ // Matches logic in media_handle_upload().
+ if ( ! empty( $request['post'] ) ) {
+ $post = get_post( $request['post'] );
+ // The post date doesn't usually matter for pages, so don't backdate this upload.
+ if ( $post && 'page' !== $post->post_type && substr( $post->post_date, 0, 4 ) > 0 ) {
+ $time = $post->post_date;
+ }
+ }
+
if ( ! empty( $files ) ) {
- $file = $this->upload_from_file( $files, $headers );
+ $file = $this->upload_from_file( $files, $headers, $time );
} else {
- $file = $this->upload_from_data( $request->get_body(), $headers );
+ $file = $this->upload_from_data( $request->get_body(), $headers, $time );
}
if ( is_wp_error( $file ) ) {
@@ -293,6 +304,17 @@ class WP_REST_Attachments_Controller extends WP_REST_Posts_Controller {
$attachment->post_mime_type = $type;
$attachment->guid = $url;
+ // If the title was not set, use the original filename.
+ if ( empty( $attachment->post_title ) && ! empty( $files['file']['name'] ) ) {
+ // Remove the file extension (after the last `.`)
+ $tmp_title = substr( $files['file']['name'], 0, strrpos( $files['file']['name'], '.' ) );
+
+ if ( ! empty( $tmp_title ) ) {
+ $attachment->post_title = $tmp_title;
+ }
+ }
+
+ // Fall back to the original approach.
if ( empty( $attachment->post_title ) ) {
$attachment->post_title = preg_replace( '/\.[^.]+$/', '', wp_basename( $file ) );
}
@@ -599,12 +621,12 @@ class WP_REST_Attachments_Controller extends WP_REST_Posts_Controller {
case 'crop':
$size = $image_editor->get_size();
- $crop_x = round( ( $size['width'] * $args['left'] ) / 100.0 );
- $crop_y = round( ( $size['height'] * $args['top'] ) / 100.0 );
- $width = round( ( $size['width'] * $args['width'] ) / 100.0 );
- $height = round( ( $size['height'] * $args['height'] ) / 100.0 );
+ $crop_x = (int) round( ( $size['width'] * $args['left'] ) / 100.0 );
+ $crop_y = (int) round( ( $size['height'] * $args['top'] ) / 100.0 );
+ $width = (int) round( ( $size['width'] * $args['width'] ) / 100.0 );
+ $height = (int) round( ( $size['height'] * $args['height'] ) / 100.0 );
- if ( $size['width'] !== $width && $size['height'] !== $height ) {
+ if ( $size['width'] !== $width || $size['height'] !== $height ) {
$result = $image_editor->crop( $crop_x, $crop_y, $width, $height );
if ( is_wp_error( $result ) ) {
@@ -1035,12 +1057,14 @@ class WP_REST_Attachments_Controller extends WP_REST_Posts_Controller {
* Handles an upload via raw POST data.
*
* @since 4.7.0
+ * @since 6.6.0 Added the `$time` parameter.
*
- * @param string $data Supplied file data.
- * @param array $headers HTTP headers from the request.
+ * @param string $data Supplied file data.
+ * @param array $headers HTTP headers from the request.
+ * @param string|null $time Optional. Time formatted in 'yyyy/mm'. Default null.
* @return array|WP_Error Data from wp_handle_sideload().
*/
- protected function upload_from_data( $data, $headers ) {
+ protected function upload_from_data( $data, $headers, $time = null ) {
if ( empty( $data ) ) {
return new WP_Error(
'rest_upload_no_data',
@@ -1128,7 +1152,7 @@ class WP_REST_Attachments_Controller extends WP_REST_Posts_Controller {
'test_form' => false,
);
- $sideloaded = wp_handle_sideload( $file_data, $overrides );
+ $sideloaded = wp_handle_sideload( $file_data, $overrides, $time );
if ( isset( $sideloaded['error'] ) ) {
@unlink( $tmpfname );
@@ -1246,12 +1270,14 @@ class WP_REST_Attachments_Controller extends WP_REST_Posts_Controller {
* Handles an upload via multipart/form-data ($_FILES).
*
* @since 4.7.0
+ * @since 6.6.0 Added the `$time` parameter.
*
- * @param array $files Data from the `$_FILES` superglobal.
- * @param array $headers HTTP headers from the request.
+ * @param array $files Data from the `$_FILES` superglobal.
+ * @param array $headers HTTP headers from the request.
+ * @param string|null $time Optional. Time formatted in 'yyyy/mm'. Default null.
* @return array|WP_Error Data from wp_handle_upload().
*/
- protected function upload_from_file( $files, $headers ) {
+ protected function upload_from_file( $files, $headers, $time = null ) {
if ( empty( $files ) ) {
return new WP_Error(
'rest_upload_no_data',
@@ -1293,7 +1319,7 @@ class WP_REST_Attachments_Controller extends WP_REST_Posts_Controller {
// Include filesystem functions to get access to wp_handle_upload().
require_once ABSPATH . 'wp-admin/includes/file.php';
- $file = wp_handle_upload( $files['file'], $overrides );
+ $file = wp_handle_upload( $files['file'], $overrides, $time );
if ( isset( $file['error'] ) ) {
return new WP_Error(
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php
index d8f0839..065b863 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php
@@ -162,6 +162,12 @@ class WP_REST_Block_Patterns_Controller extends WP_REST_Controller {
* @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
*/
public function prepare_item_for_response( $item, $request ) {
+ // Resolve pattern blocks so they don't need to be resolved client-side
+ // in the editor, improving performance.
+ $blocks = parse_blocks( $item['content'] );
+ $blocks = resolve_pattern_blocks( $blocks );
+ $item['content'] = serialize_blocks( $blocks );
+
$fields = $this->get_fields_for_response( $request );
$keys = array(
'name' => 'name',
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php
index c448787..ec59baa 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php
@@ -18,7 +18,7 @@ class WP_REST_Font_Faces_Controller extends WP_REST_Posts_Controller {
* @since 6.5.0
* @var int
*/
- const LATEST_THEME_JSON_VERSION_SUPPORTED = 2;
+ const LATEST_THEME_JSON_VERSION_SUPPORTED = 3;
/**
* Whether the controller supports batching.
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-font-families-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-font-families-controller.php
index 184b42d..c2d70d0 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-font-families-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-font-families-controller.php
@@ -20,7 +20,7 @@ class WP_REST_Font_Families_Controller extends WP_REST_Posts_Controller {
* @since 6.5.0
* @var int
*/
- const LATEST_THEME_JSON_VERSION_SUPPORTED = 2;
+ const LATEST_THEME_JSON_VERSION_SUPPORTED = 3;
/**
* Whether the controller supports batching.
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
index 9837f53..0cb54c9 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
@@ -10,24 +10,24 @@
/**
* Base Global Styles REST API Controller.
*/
-class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
-
+class WP_REST_Global_Styles_Controller extends WP_REST_Posts_Controller {
/**
- * Post type.
+ * Whether the controller supports batching.
*
- * @since 5.9.0
- * @var string
+ * @since 6.6.0
+ * @var array
*/
- protected $post_type;
+ protected $allow_batch = array( 'v1' => false );
/**
* Constructor.
- * @since 5.9.0
+ *
+ * @since 6.6.0
+ *
+ * @param string $post_type Post type.
*/
- public function __construct() {
- $this->namespace = 'wp/v2';
- $this->rest_base = 'global-styles';
- $this->post_type = 'wp_global_styles';
+ public function __construct( $post_type = 'wp_global_styles' ) {
+ parent::__construct( $post_type );
}
/**
@@ -50,6 +50,7 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
'type' => 'string',
),
),
+ 'allow_batch' => $this->allow_batch,
),
)
);
@@ -79,6 +80,7 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
'sanitize_callback' => array( $this, '_sanitize_global_styles_callback' ),
),
),
+ 'allow_batch' => $this->allow_batch,
),
)
);
@@ -106,7 +108,8 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
'permission_callback' => array( $this, 'update_item_permissions_check' ),
'args' => $this->get_endpoint_args_for_item_schema( WP_REST_Server::EDITABLE ),
),
- 'schema' => array( $this, 'get_public_item_schema' ),
+ 'schema' => array( $this, 'get_public_item_schema' ),
+ 'allow_batch' => $this->allow_batch,
)
);
}
@@ -194,29 +197,11 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
* @param WP_Post $post Post object.
* @return bool Whether the post can be read.
*/
- protected function check_read_permission( $post ) {
+ public function check_read_permission( $post ) {
return current_user_can( 'read_post', $post->ID );
}
/**
- * Returns the given global styles config.
- *
- * @since 5.9.0
- *
- * @param WP_REST_Request $request The request instance.
- *
- * @return WP_REST_Response|WP_Error
- */
- public function get_item( $request ) {
- $post = $this->get_post( $request['id'] );
- if ( is_wp_error( $post ) ) {
- return $post;
- }
-
- return $this->prepare_item_for_response( $post, $request );
- }
-
- /**
* Checks if a given request has access to write a single global styles config.
*
* @since 5.9.0
@@ -242,59 +227,11 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
}
/**
- * Checks if a global style can be edited.
- *
- * @since 5.9.0
- *
- * @param WP_Post $post Post object.
- * @return bool Whether the post can be edited.
- */
- protected function check_update_permission( $post ) {
- return current_user_can( 'edit_post', $post->ID );
- }
-
- /**
- * Updates a single global style config.
- *
- * @since 5.9.0
- *
- * @param WP_REST_Request $request Full details about the request.
- * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
- */
- public function update_item( $request ) {
- $post_before = $this->get_post( $request['id'] );
- if ( is_wp_error( $post_before ) ) {
- return $post_before;
- }
-
- $changes = $this->prepare_item_for_database( $request );
- if ( is_wp_error( $changes ) ) {
- return $changes;
- }
-
- $result = wp_update_post( wp_slash( (array) $changes ), true, false );
- if ( is_wp_error( $result ) ) {
- return $result;
- }
-
- $post = get_post( $request['id'] );
- $fields_update = $this->update_additional_fields_for_object( $post, $request );
- if ( is_wp_error( $fields_update ) ) {
- return $fields_update;
- }
-
- wp_after_insert_post( $post, true, $post_before );
-
- $response = $this->prepare_item_for_response( $post, $request );
-
- return rest_ensure_response( $response );
- }
-
- /**
* Prepares a single global styles config for update.
*
* @since 5.9.0
* @since 6.2.0 Added validation of styles.css property.
+ * @since 6.6.0 Added registration of block style variations from theme.json sources (theme.json, user theme.json, partials).
*
* @param WP_REST_Request $request Request object.
* @return stdClass|WP_Error Prepared item on success. WP_Error on when the custom CSS is not valid.
@@ -327,6 +264,11 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
} elseif ( isset( $existing_config['styles'] ) ) {
$config['styles'] = $existing_config['styles'];
}
+
+ // Register theme-defined variations e.g. from block style variation partials under `/styles`.
+ $variations = WP_Theme_JSON_Resolver::get_style_variations( 'block' );
+ wp_register_block_style_variations_from_theme_json_partials( $variations );
+
if ( isset( $request['settings'] ) ) {
$config['settings'] = $request['settings'];
} elseif ( isset( $existing_config['settings'] ) ) {
@@ -353,6 +295,7 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
* Prepare a global styles config output for response.
*
* @since 5.9.0
+ * @since 6.6.0 Added custom relative theme file URIs to `_links`.
*
* @param WP_Post $post Global Styles post object.
* @param WP_REST_Request $request Request object.
@@ -362,8 +305,10 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
$raw_config = json_decode( $post->post_content, true );
$is_global_styles_user_theme_json = isset( $raw_config['isGlobalStylesUserThemeJSON'] ) && true === $raw_config['isGlobalStylesUserThemeJSON'];
$config = array();
+ $theme_json = null;
if ( $is_global_styles_user_theme_json ) {
- $config = ( new WP_Theme_JSON( $raw_config, 'custom' ) )->get_raw_data();
+ $theme_json = new WP_Theme_JSON( $raw_config, 'custom' );
+ $config = $theme_json->get_raw_data();
}
// Base fields for every post.
@@ -405,9 +350,18 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
if ( rest_is_field_included( '_links', $fields ) || rest_is_field_included( '_embedded', $fields ) ) {
$links = $this->prepare_links( $post->ID );
+
+ // Only return resolved URIs for get requests to user theme JSON.
+ if ( $theme_json ) {
+ $resolved_theme_uris = WP_Theme_JSON_Resolver::get_resolved_theme_uris( $theme_json );
+ if ( ! empty( $resolved_theme_uris ) ) {
+ $links['https://api.w.org/theme-file'] = $resolved_theme_uris;
+ }
+ }
+
$response->add_links( $links );
if ( ! empty( $links['self']['href'] ) ) {
- $actions = $this->get_available_actions();
+ $actions = $this->get_available_actions( $post, $request );
$self = $links['self']['href'];
foreach ( $actions as $rel ) {
$response->add_link( $rel, $self );
@@ -431,9 +385,12 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
$base = sprintf( '%s/%s', $this->namespace, $this->rest_base );
$links = array(
- 'self' => array(
+ 'self' => array(
'href' => rest_url( trailingslashit( $base ) . $id ),
),
+ 'about' => array(
+ 'href' => rest_url( 'wp/v2/types/' . $this->post_type ),
+ ),
);
if ( post_type_supports( $this->post_type, 'revisions' ) ) {
@@ -454,13 +411,16 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
*
* @since 5.9.0
* @since 6.2.0 Added 'edit-css' action.
+ * @since 6.6.0 Added $post and $request parameters.
*
+ * @param WP_Post $post Post object.
+ * @param WP_REST_Request $request Request object.
* @return array List of link relations.
*/
- protected function get_available_actions() {
+ protected function get_available_actions( $post, $request ) {
$rels = array();
- $post_type = get_post_type_object( $this->post_type );
+ $post_type = get_post_type_object( $post->post_type );
if ( current_user_can( $post_type->cap->publish_posts ) ) {
$rels[] = 'https://api.w.org/action-publish';
}
@@ -473,21 +433,6 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
}
/**
- * Overwrites the default protected title format.
- *
- * By default, WordPress will show password protected posts with a title of
- * "Protected: %s", as the REST API communicates the protected status of a post
- * in a machine readable format, we remove the "Protected: " prefix.
- *
- * @since 5.9.0
- *
- * @return string Protected title format.
- */
- public function protected_title_format() {
- return '%s';
- }
-
- /**
* Retrieves the query params for the global styles collection.
*
* @since 5.9.0
@@ -588,6 +533,7 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
* Returns the given theme global styles config.
*
* @since 5.9.0
+ * @since 6.6.0 Added custom relative theme file URIs to `_links`.
*
* @param WP_REST_Request $request The request instance.
* @return WP_REST_Response|WP_Error
@@ -622,11 +568,15 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
$response = rest_ensure_response( $data );
if ( rest_is_field_included( '_links', $fields ) || rest_is_field_included( '_embedded', $fields ) ) {
- $links = array(
+ $links = array(
'self' => array(
'href' => rest_url( sprintf( '%s/%s/themes/%s', $this->namespace, $this->rest_base, $request['stylesheet'] ) ),
),
);
+ $resolved_theme_uris = WP_Theme_JSON_Resolver::get_resolved_theme_uris( $theme );
+ if ( ! empty( $resolved_theme_uris ) ) {
+ $links['https://api.w.org/theme-file'] = $resolved_theme_uris;
+ }
$response->add_links( $links );
}
@@ -664,6 +614,7 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
*
* @since 6.0.0
* @since 6.2.0 Returns parent theme variations, if they exist.
+ * @since 6.6.0 Added custom relative theme file URIs to `_links` for each item.
*
* @param WP_REST_Request $request The request instance.
*
@@ -679,9 +630,28 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
);
}
+ $response = array();
+
+ // Register theme-defined variations e.g. from block style variation partials under `/styles`.
+ $partials = WP_Theme_JSON_Resolver::get_style_variations( 'block' );
+ wp_register_block_style_variations_from_theme_json_partials( $partials );
+
$variations = WP_Theme_JSON_Resolver::get_style_variations();
+ foreach ( $variations as $variation ) {
+ $variation_theme_json = new WP_Theme_JSON( $variation );
+ $resolved_theme_uris = WP_Theme_JSON_Resolver::get_resolved_theme_uris( $variation_theme_json );
+ $data = rest_ensure_response( $variation );
+ if ( ! empty( $resolved_theme_uris ) ) {
+ $data->add_links(
+ array(
+ 'https://api.w.org/theme-file' => $resolved_theme_uris,
+ )
+ );
+ }
+ $response[] = $this->prepare_response_for_collection( $data );
+ }
- return rest_ensure_response( $variations );
+ return rest_ensure_response( $response );
}
/**
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisions-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisions-controller.php
index 5f5ae84..54285fa 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisions-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisions-controller.php
@@ -14,14 +14,14 @@
*
* @see WP_REST_Controller
*/
-class WP_REST_Global_Styles_Revisions_Controller extends WP_REST_Controller {
+class WP_REST_Global_Styles_Revisions_Controller extends WP_REST_Revisions_Controller {
/**
- * Parent post type.
+ * Parent controller.
*
- * @since 6.3.0
- * @var string
+ * @since 6.6.0
+ * @var WP_REST_Controller
*/
- protected $parent_post_type;
+ private $parent_controller;
/**
* The base of the parent controller's route.
@@ -32,22 +32,41 @@ class WP_REST_Global_Styles_Revisions_Controller extends WP_REST_Controller {
protected $parent_base;
/**
+ * Parent post type.
+ *
+ * @since 6.6.0
+ * @var string
+ */
+ protected $parent_post_type;
+
+ /**
* Constructor.
*
* @since 6.3.0
+ * @since 6.6.0 Extends class from WP_REST_Revisions_Controller.
+ *
+ * @param string $parent_post_type Post type of the parent.
*/
- public function __construct() {
- $this->parent_post_type = 'wp_global_styles';
- $this->rest_base = 'revisions';
- $this->parent_base = 'global-styles';
- $this->namespace = 'wp/v2';
+ public function __construct( $parent_post_type = 'wp_global_styles' ) {
+ parent::__construct( $parent_post_type );
+ $post_type_object = get_post_type_object( $parent_post_type );
+ $parent_controller = $post_type_object->get_rest_controller();
+
+ if ( ! $parent_controller ) {
+ $parent_controller = new WP_REST_Global_Styles_Controller( $parent_post_type );
+ }
+
+ $this->parent_controller = $parent_controller;
+ $this->rest_base = 'revisions';
+ $this->parent_base = ! empty( $post_type_object->rest_base ) ? $post_type_object->rest_base : $post_type_object->name;
+ $this->namespace = ! empty( $post_type_object->rest_namespace ) ? $post_type_object->rest_namespace : 'wp/v2';
}
/**
* Registers the controller's routes.
*
* @since 6.3.0
- * @since 6.5.0 Added route to fetch individual global styles revisions.
+ * @since 6.6.0 Added route to fetch individual global styles revisions.
*/
public function register_routes() {
register_rest_route(
@@ -63,7 +82,7 @@ class WP_REST_Global_Styles_Revisions_Controller extends WP_REST_Controller {
array(
'methods' => WP_REST_Server::READABLE,
'callback' => array( $this, 'get_items' ),
- 'permission_callback' => array( $this, 'get_item_permissions_check' ),
+ 'permission_callback' => array( $this, 'get_items_permissions_check' ),
'args' => $this->get_collection_params(),
),
'schema' => array( $this, 'get_public_item_schema' ),
@@ -98,29 +117,6 @@ class WP_REST_Global_Styles_Revisions_Controller extends WP_REST_Controller {
}
/**
- * Retrieves the query params for collections.
- *
- * Inherits from WP_REST_Controller::get_collection_params(),
- * also reflects changes to return value WP_REST_Revisions_Controller::get_collection_params().
- *
- * @since 6.3.0
- *
- * @return array Collection parameters.
- */
- public function get_collection_params() {
- $collection_params = parent::get_collection_params();
- $collection_params['context']['default'] = 'view';
- $collection_params['offset'] = array(
- 'description' => __( 'Offset the result set by a specific number of items.' ),
- 'type' => 'integer',
- );
- unset( $collection_params['search'] );
- unset( $collection_params['per_page']['default'] );
-
- return $collection_params;
- }
-
- /**
* Returns decoded JSON from post content string,
* or a 404 if not found.
*
@@ -269,83 +265,10 @@ class WP_REST_Global_Styles_Revisions_Controller extends WP_REST_Controller {
}
/**
- * Retrieves one global styles revision from the collection.
- *
- * @since 6.5.0
- *
- * @param WP_REST_Request $request Full details about the request.
- * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
- */
- public function get_item( $request ) {
- $parent = $this->get_parent( $request['parent'] );
- if ( is_wp_error( $parent ) ) {
- return $parent;
- }
-
- $revision = $this->get_revision( $request['id'] );
- if ( is_wp_error( $revision ) ) {
- return $revision;
- }
-
- $response = $this->prepare_item_for_response( $revision, $request );
- return rest_ensure_response( $response );
- }
-
- /**
- * Gets the global styles revision, if the ID is valid.
- *
- * @since 6.5.0
- *
- * @param int $id Supplied ID.
- * @return WP_Post|WP_Error Revision post object if ID is valid, WP_Error otherwise.
- */
- protected function get_revision( $id ) {
- $error = new WP_Error(
- 'rest_post_invalid_id',
- __( 'Invalid global styles revision ID.' ),
- array( 'status' => 404 )
- );
-
- if ( (int) $id <= 0 ) {
- return $error;
- }
-
- $revision = get_post( (int) $id );
- if ( empty( $revision ) || empty( $revision->ID ) || 'revision' !== $revision->post_type ) {
- return $error;
- }
-
- return $revision;
- }
-
- /**
- * Checks the post_date_gmt or modified_gmt and prepare any post or
- * modified date for single post output.
- *
- * Duplicate of WP_REST_Revisions_Controller::prepare_date_response.
- *
- * @since 6.3.0
- *
- * @param string $date_gmt GMT publication time.
- * @param string|null $date Optional. Local publication time. Default null.
- * @return string|null ISO8601/RFC3339 formatted datetime, otherwise null.
- */
- protected function prepare_date_response( $date_gmt, $date = null ) {
- if ( '0000-00-00 00:00:00' === $date_gmt ) {
- return null;
- }
-
- if ( isset( $date ) ) {
- return mysql_to_rfc3339( $date );
- }
-
- return mysql_to_rfc3339( $date_gmt );
- }
-
- /**
* Prepares the revision for the REST response.
*
* @since 6.3.0
+ * @since 6.6.0 Added resolved URI links to the response.
*
* @param WP_Post $post Post revision object.
* @param WP_REST_Request $request Request object.
@@ -359,11 +282,13 @@ class WP_REST_Global_Styles_Revisions_Controller extends WP_REST_Controller {
return $global_styles_config;
}
- $fields = $this->get_fields_for_response( $request );
- $data = array();
+ $fields = $this->get_fields_for_response( $request );
+ $data = array();
+ $theme_json = null;
if ( ! empty( $global_styles_config['styles'] ) || ! empty( $global_styles_config['settings'] ) ) {
- $global_styles_config = ( new WP_Theme_JSON( $global_styles_config, 'custom' ) )->get_raw_data();
+ $theme_json = new WP_Theme_JSON( $global_styles_config, 'custom' );
+ $global_styles_config = $theme_json->get_raw_data();
if ( rest_is_field_included( 'settings', $fields ) ) {
$data['settings'] = ! empty( $global_styles_config['settings'] ) ? $global_styles_config['settings'] : new stdClass();
}
@@ -400,17 +325,28 @@ class WP_REST_Global_Styles_Revisions_Controller extends WP_REST_Controller {
$data['parent'] = (int) $parent->ID;
}
- $context = ! empty( $request['context'] ) ? $request['context'] : 'view';
- $data = $this->add_additional_fields_to_object( $data, $request );
- $data = $this->filter_response_by_context( $data, $context );
+ $context = ! empty( $request['context'] ) ? $request['context'] : 'view';
+ $data = $this->add_additional_fields_to_object( $data, $request );
+ $data = $this->filter_response_by_context( $data, $context );
+ $response = rest_ensure_response( $data );
+ $resolved_theme_uris = WP_Theme_JSON_Resolver::get_resolved_theme_uris( $theme_json );
- return rest_ensure_response( $data );
+ if ( ! empty( $resolved_theme_uris ) ) {
+ $response->add_links(
+ array(
+ 'https://api.w.org/theme-file' => $resolved_theme_uris,
+ )
+ );
+ }
+
+ return $response;
}
/**
* Retrieves the revision's schema, conforming to JSON Schema.
*
* @since 6.3.0
+ * @since 6.6.0 Merged parent and parent controller schema data.
*
* @return array Item schema data.
*/
@@ -419,133 +355,40 @@ class WP_REST_Global_Styles_Revisions_Controller extends WP_REST_Controller {
return $this->add_additional_fields_schema( $this->schema );
}
- $schema = array(
- '$schema' => 'http://json-schema.org/draft-04/schema#',
- 'title' => "{$this->parent_post_type}-revision",
- 'type' => 'object',
- // Base properties for every revision.
- 'properties' => array(
-
- /*
- * Adds settings and styles from the WP_REST_Revisions_Controller item fields.
- * Leaves out GUID as global styles shouldn't be accessible via URL.
- */
- 'author' => array(
- 'description' => __( 'The ID for the author of the revision.' ),
- 'type' => 'integer',
- 'context' => array( 'view', 'edit', 'embed' ),
- ),
- 'date' => array(
- 'description' => __( "The date the revision was published, in the site's timezone." ),
- 'type' => 'string',
- 'format' => 'date-time',
- 'context' => array( 'view', 'edit', 'embed' ),
- ),
- 'date_gmt' => array(
- 'description' => __( 'The date the revision was published, as GMT.' ),
- 'type' => 'string',
- 'format' => 'date-time',
- 'context' => array( 'view', 'edit' ),
- ),
- 'id' => array(
- 'description' => __( 'Unique identifier for the revision.' ),
- 'type' => 'integer',
- 'context' => array( 'view', 'edit', 'embed' ),
- ),
- 'modified' => array(
- 'description' => __( "The date the revision was last modified, in the site's timezone." ),
- 'type' => 'string',
- 'format' => 'date-time',
- 'context' => array( 'view', 'edit' ),
- ),
- 'modified_gmt' => array(
- 'description' => __( 'The date the revision was last modified, as GMT.' ),
- 'type' => 'string',
- 'format' => 'date-time',
- 'context' => array( 'view', 'edit' ),
- ),
- 'parent' => array(
- 'description' => __( 'The ID for the parent of the revision.' ),
- 'type' => 'integer',
- 'context' => array( 'view', 'edit', 'embed' ),
- ),
+ $schema = parent::get_item_schema();
+ $parent_schema = $this->parent_controller->get_item_schema();
+ $schema['properties'] = array_merge( $schema['properties'], $parent_schema['properties'] );
- // Adds settings and styles from the WP_REST_Global_Styles_Controller parent schema.
- 'styles' => array(
- 'description' => __( 'Global styles.' ),
- 'type' => array( 'object' ),
- 'context' => array( 'view', 'edit' ),
- ),
- 'settings' => array(
- 'description' => __( 'Global settings.' ),
- 'type' => array( 'object' ),
- 'context' => array( 'view', 'edit' ),
- ),
- ),
+ unset(
+ $schema['properties']['guid'],
+ $schema['properties']['slug'],
+ $schema['properties']['meta'],
+ $schema['properties']['content'],
+ $schema['properties']['title']
);
- $this->schema = $schema;
+ $this->schema = $schema;
return $this->add_additional_fields_schema( $this->schema );
}
/**
- * Checks if a given request has access to read a single global style.
- *
- * @since 6.3.0
- *
- * @param WP_REST_Request $request Full details about the request.
- * @return true|WP_Error True if the request has read access, WP_Error object otherwise.
- */
- public function get_item_permissions_check( $request ) {
- $post = $this->get_parent( $request['parent'] );
- if ( is_wp_error( $post ) ) {
- return $post;
- }
-
- /*
- * The same check as WP_REST_Global_Styles_Controller::get_item_permissions_check.
- */
- if ( ! current_user_can( 'read_post', $post->ID ) ) {
- return new WP_Error(
- 'rest_cannot_view',
- __( 'Sorry, you are not allowed to view revisions for this global style.' ),
- array( 'status' => rest_authorization_required_code() )
- );
- }
-
- return true;
- }
-
- /**
- * Gets the parent post, if the ID is valid.
- *
- * Duplicate of WP_REST_Revisions_Controller::get_parent.
+ * Retrieves the query params for collections.
+ * Removes params that are not supported by global styles revisions.
*
- * @since 6.3.0
+ * @since 6.6.0
*
- * @param int $parent_post_id Supplied ID.
- * @return WP_Post|WP_Error Post object if ID is valid, WP_Error otherwise.
+ * @return array Collection parameters.
*/
- protected function get_parent( $parent_post_id ) {
- $error = new WP_Error(
- 'rest_post_invalid_parent',
- __( 'Invalid post parent ID.' ),
- array( 'status' => 404 )
+ public function get_collection_params() {
+ $query_params = parent::get_collection_params();
+ unset(
+ $query_params['exclude'],
+ $query_params['include'],
+ $query_params['search'],
+ $query_params['order'],
+ $query_params['orderby']
);
-
- if ( (int) $parent_post_id <= 0 ) {
- return $error;
- }
-
- $parent_post = get_post( (int) $parent_post_id );
-
- if ( empty( $parent_post ) || empty( $parent_post->ID )
- || $this->parent_post_type !== $parent_post->post_type
- ) {
- return $error;
- }
-
- return $parent_post;
+ return $query_params;
}
}
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
index 0d3d0e1..d766d5c 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
@@ -246,6 +246,14 @@ class WP_REST_Post_Types_Controller extends WP_REST_Controller {
$data['rest_namespace'] = $namespace;
}
+ if ( rest_is_field_included( 'template', $fields ) ) {
+ $data['template'] = $post_type->template ?? array();
+ }
+
+ if ( rest_is_field_included( 'template_lock', $fields ) ) {
+ $data['template_lock'] = ! empty( $post_type->template_lock ) ? $post_type->template_lock : false;
+ }
+
$context = ! empty( $request['context'] ) ? $request['context'] : 'view';
$data = $this->add_additional_fields_to_object( $data, $request );
$data = $this->filter_response_by_context( $data, $context );
@@ -407,6 +415,19 @@ class WP_REST_Post_Types_Controller extends WP_REST_Controller {
'context' => array( 'view', 'edit', 'embed' ),
'readonly' => true,
),
+ 'template' => array(
+ 'type' => array( 'array' ),
+ 'description' => __( 'The block template associated with the post type.' ),
+ 'readonly' => true,
+ 'context' => array( 'view', 'edit', 'embed' ),
+ ),
+ 'template_lock' => array(
+ 'type' => array( 'string', 'boolean' ),
+ 'enum' => array( 'all', 'insert', 'contentOnly', false ),
+ 'description' => __( 'The template_lock associated with the post type, or false if none.' ),
+ 'readonly' => true,
+ 'context' => array( 'view', 'edit', 'embed' ),
+ ),
),
);
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
index 4501e47..a29f92c 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
@@ -97,6 +97,12 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
$get_item_args = array(
'context' => $this->get_context_param( array( 'default' => 'view' ) ),
);
+ if ( isset( $schema['properties']['excerpt'] ) ) {
+ $get_item_args['excerpt_length'] = array(
+ 'description' => __( 'Override the default excerpt length.' ),
+ 'type' => 'integer',
+ );
+ }
if ( isset( $schema['properties']['password'] ) ) {
$get_item_args['password'] = array(
'description' => __( 'The password for the post if it is password protected.' ),
@@ -1872,6 +1878,19 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
}
if ( rest_is_field_included( 'excerpt', $fields ) ) {
+ if ( isset( $request['excerpt_length'] ) ) {
+ $excerpt_length = $request['excerpt_length'];
+ $override_excerpt_length = static function () use ( $excerpt_length ) {
+ return $excerpt_length;
+ };
+
+ add_filter(
+ 'excerpt_length',
+ $override_excerpt_length,
+ 20
+ );
+ }
+
/** This filter is documented in wp-includes/post-template.php */
$excerpt = apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );
@@ -1883,6 +1902,14 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
'rendered' => post_password_required( $post ) ? '' : $excerpt,
'protected' => (bool) $post->post_password,
);
+
+ if ( isset( $override_excerpt_length ) ) {
+ remove_filter(
+ 'excerpt_length',
+ $override_excerpt_length,
+ 20
+ );
+ }
}
if ( $has_password_filter ) {
@@ -1971,6 +1998,10 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
$data['generated_slug'] = $sample_permalink[1];
}
}
+
+ if ( rest_is_field_included( 'class_list', $fields ) ) {
+ $data['class_list'] = get_post_class( array(), $post->ID );
+ }
}
$context = ! empty( $request['context'] ) ? $request['context'] : 'view';
@@ -2326,6 +2357,16 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
'context' => array( 'edit' ),
'readonly' => true,
);
+
+ $schema['properties']['class_list'] = array(
+ 'description' => __( 'An array of the class names for the post container element.' ),
+ 'type' => 'array',
+ 'context' => array( 'view', 'edit' ),
+ 'readonly' => true,
+ 'items' => array(
+ 'type' => 'string',
+ ),
+ );
}
if ( $post_type_obj->hierarchical ) {
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php
index cc1c302..55fe1ad 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php
@@ -395,7 +395,7 @@ class WP_REST_Search_Controller extends WP_REST_Controller {
protected function get_search_handler( $request ) {
$type = $request->get_param( self::PROP_TYPE );
- if ( ! $type || ! isset( $this->search_handlers[ $type ] ) ) {
+ if ( ! $type || ! is_string( $type ) || ! isset( $this->search_handlers[ $type ] ) ) {
return new WP_Error(
'rest_search_invalid_type',
__( 'Invalid type parameter.' ),
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php
index 365afd3..004f585 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php
@@ -237,6 +237,7 @@ class WP_REST_Settings_Controller extends WP_REST_Controller {
$default_schema = array(
'type' => empty( $args['type'] ) ? null : $args['type'],
+ 'title' => empty( $args['label'] ) ? '' : $args['label'],
'description' => empty( $args['description'] ) ? '' : $args['description'],
'default' => isset( $args['default'] ) ? $args['default'] : null,
);
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-template-revisions-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-template-revisions-controller.php
index 8d32ecb..22cdc26 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-template-revisions-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-template-revisions-controller.php
@@ -156,15 +156,15 @@ class WP_REST_Template_Revisions_Controller extends WP_REST_Revisions_Controller
}
/**
- * Gets the parent post, if the ID is valid.
+ * Gets the parent post, if the template ID is valid.
*
* @since 6.4.0
*
- * @param int $parent_post_id Supplied ID.
+ * @param string $parent_template_id Supplied ID.
* @return WP_Post|WP_Error Post object if ID is valid, WP_Error otherwise.
*/
- protected function get_parent( $parent_post_id ) {
- $template = get_block_template( $parent_post_id, $this->parent_post_type );
+ protected function get_parent( $parent_template_id ) {
+ $template = get_block_template( $parent_template_id, $this->parent_post_type );
if ( ! $template ) {
return new WP_Error(
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php
index 1c2a769..cbf0ee0 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php
@@ -236,12 +236,28 @@ class WP_REST_Templates_Controller extends WP_REST_Controller {
* Checks if a given request has access to read templates.
*
* @since 5.8.0
+ * @since 6.6.0 Allow users with edit_posts capability to read templates.
*
* @param WP_REST_Request $request Full details about the request.
* @return true|WP_Error True if the request has read access, WP_Error object otherwise.
*/
public function get_items_permissions_check( $request ) {
- return $this->permissions_check( $request );
+ if ( current_user_can( 'edit_posts' ) ) {
+ return true;
+ }
+ foreach ( get_post_types( array( 'show_in_rest' => true ), 'objects' ) as $post_type ) {
+ if ( current_user_can( $post_type->cap->edit_posts ) ) {
+ return true;
+ }
+ }
+
+ return new WP_Error(
+ 'rest_cannot_manage_templates',
+ __( 'Sorry, you are not allowed to access the templates on this site.' ),
+ array(
+ 'status' => rest_authorization_required_code(),
+ )
+ );
}
/**
@@ -277,12 +293,28 @@ class WP_REST_Templates_Controller extends WP_REST_Controller {
* Checks if a given request has access to read a single template.
*
* @since 5.8.0
+ * @since 6.6.0 Allow users with edit_posts capability to read individual templates.
*
* @param WP_REST_Request $request Full details about the request.
* @return true|WP_Error True if the request has read access for the item, WP_Error object otherwise.
*/
public function get_item_permissions_check( $request ) {
- return $this->permissions_check( $request );
+ if ( current_user_can( 'edit_posts' ) ) {
+ return true;
+ }
+ foreach ( get_post_types( array( 'show_in_rest' => true ), 'objects' ) as $post_type ) {
+ if ( current_user_can( $post_type->cap->edit_posts ) ) {
+ return true;
+ }
+ }
+
+ return new WP_Error(
+ 'rest_cannot_manage_templates',
+ __( 'Sorry, you are not allowed to access the templates on this site.' ),
+ array(
+ 'status' => rest_authorization_required_code(),
+ )
+ );
}
/**
@@ -636,6 +668,12 @@ class WP_REST_Templates_Controller extends WP_REST_Controller {
* @return WP_REST_Response Response object.
*/
public function prepare_item_for_response( $item, $request ) {
+ // Resolve pattern blocks so they don't need to be resolved client-side
+ // in the editor, improving performance.
+ $blocks = parse_blocks( $item->content );
+ $blocks = resolve_pattern_blocks( $blocks );
+ $item->content = serialize_blocks( $blocks );
+
// Restores the more descriptive, specific name for use within this method.
$template = $item;
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
index 064fc2d..fe58480 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
@@ -224,6 +224,7 @@ class WP_REST_Themes_Controller extends WP_REST_Controller {
*
* @since 5.0.0
* @since 5.9.0 Renamed `$theme` to `$item` to match parent class for PHP 8 named parameter support.
+ * @since 6.6.0 Added `stylesheet_uri` and `template_uri` fields.
*
* @param WP_Theme $item Theme object.
* @param WP_REST_Request $request Request object.
@@ -331,6 +332,22 @@ class WP_REST_Themes_Controller extends WP_REST_Controller {
$data['is_block_theme'] = $theme->is_block_theme();
}
+ if ( rest_is_field_included( 'stylesheet_uri', $fields ) ) {
+ if ( $this->is_same_theme( $theme, $current_theme ) ) {
+ $data['stylesheet_uri'] = get_stylesheet_directory_uri();
+ } else {
+ $data['stylesheet_uri'] = $theme->get_stylesheet_directory_uri();
+ }
+ }
+
+ if ( rest_is_field_included( 'template_uri', $fields ) ) {
+ if ( $this->is_same_theme( $theme, $current_theme ) ) {
+ $data['template_uri'] = get_template_directory_uri();
+ } else {
+ $data['template_uri'] = $theme->get_template_directory_uri();
+ }
+ }
+
$data = $this->add_additional_fields_to_object( $data, $request );
// Wrap the data in a response object.
@@ -447,11 +464,23 @@ class WP_REST_Themes_Controller extends WP_REST_Controller {
'type' => 'string',
'readonly' => true,
),
+ 'stylesheet_uri' => array(
+ 'description' => __( 'The uri for the theme\'s stylesheet directory.' ),
+ 'type' => 'string',
+ 'format' => 'uri',
+ 'readonly' => true,
+ ),
'template' => array(
'description' => __( 'The theme\'s template. If this is a child theme, this refers to the parent theme, otherwise this is the same as the theme\'s stylesheet.' ),
'type' => 'string',
'readonly' => true,
),
+ 'template_uri' => array(
+ 'description' => __( 'The uri for the theme\'s template directory. If this is a child theme, this refers to the parent theme, otherwise this is the same as the theme\'s stylesheet directory.' ),
+ 'type' => 'string',
+ 'format' => 'uri',
+ 'readonly' => true,
+ ),
'author' => array(
'description' => __( 'The theme author.' ),
'type' => 'object',
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
index c2e0db8..c8d9b11 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
@@ -25,6 +25,14 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
protected $meta;
/**
+ * Whether the controller supports batching.
+ *
+ * @since 6.6.0
+ * @var array
+ */
+ protected $allow_batch = array( 'v1' => true );
+
+ /**
* Constructor.
*
* @since 4.7.0
@@ -61,7 +69,8 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
'permission_callback' => array( $this, 'create_item_permissions_check' ),
'args' => $this->get_endpoint_args_for_item_schema( WP_REST_Server::CREATABLE ),
),
- 'schema' => array( $this, 'get_public_item_schema' ),
+ 'allow_batch' => $this->allow_batch,
+ 'schema' => array( $this, 'get_public_item_schema' ),
)
);
@@ -69,7 +78,7 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
$this->namespace,
'/' . $this->rest_base . '/(?P<id>[\d]+)',
array(
- 'args' => array(
+ 'args' => array(
'id' => array(
'description' => __( 'Unique identifier for the user.' ),
'type' => 'integer',
@@ -107,7 +116,8 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
),
),
),
- 'schema' => array( $this, 'get_public_item_schema' ),
+ 'allow_batch' => $this->allow_batch,
+ 'schema' => array( $this, 'get_public_item_schema' ),
)
);
diff --git a/wp-includes/revision.php b/wp-includes/revision.php
index 681d117..065278b 100644
--- a/wp-includes/revision.php
+++ b/wp-includes/revision.php
@@ -1012,7 +1012,7 @@ function _wp_upgrade_revisions_of_post( $post, $revisions ) {
// Add post option exclusively.
$lock = "revision-upgrade-{$post->ID}";
$now = time();
- $result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` (`option_name`, `option_value`, `autoload`) VALUES (%s, %s, 'no') /* LOCK */", $lock, $now ) );
+ $result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` (`option_name`, `option_value`, `autoload`) VALUES (%s, %s, 'off') /* LOCK */", $lock, $now ) );
if ( ! $result ) {
// If we couldn't get a lock, see how old the previous lock is.
diff --git a/wp-includes/rss.php b/wp-includes/rss.php
index 4d3f35e..3304ed0 100644
--- a/wp-includes/rss.php
+++ b/wp-includes/rss.php
@@ -63,7 +63,8 @@ class MagpieRSS {
# Check if PHP xml isn't compiled
#
if ( ! function_exists('xml_parser_create') ) {
- return trigger_error( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." );
+ wp_trigger_error( '', "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." );
+ return;
}
$parser = xml_parser_create();
@@ -387,7 +388,7 @@ class MagpieRSS {
function error( $errormsg, $lvl = E_USER_WARNING ) {
if ( MAGPIE_DEBUG ) {
- trigger_error( $errormsg, $lvl);
+ wp_trigger_error('', $errormsg, $lvl);
} else {
error_log( $errormsg, 0);
}
@@ -823,7 +824,7 @@ class RSSCache {
function error ($errormsg, $lvl=E_USER_WARNING) {
$this->ERROR = $errormsg;
if ( MAGPIE_DEBUG ) {
- trigger_error( $errormsg, $lvl);
+ wp_trigger_error( '', $errormsg, $lvl);
}
else {
error_log( $errormsg, 0);
diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php
index 032a2f2..715477a 100644
--- a/wp-includes/script-loader.php
+++ b/wp-includes/script-loader.php
@@ -89,8 +89,9 @@ function wp_default_packages_vendor( $scripts ) {
$suffix = wp_scripts_get_suffix();
$vendor_scripts = array(
- 'react' => array( 'wp-polyfill' ),
- 'react-dom' => array( 'react' ),
+ 'react',
+ 'react-dom' => array( 'react' ),
+ 'react-jsx-runtime' => array( 'react' ),
'regenerator-runtime',
'moment',
'lodash',
@@ -103,12 +104,13 @@ function wp_default_packages_vendor( $scripts ) {
'wp-polyfill-element-closest',
'wp-polyfill-object-fit',
'wp-polyfill-inert',
- 'wp-polyfill' => array( 'wp-polyfill-inert', 'regenerator-runtime' ),
+ 'wp-polyfill',
);
$vendor_scripts_versions = array(
- 'react' => '18.2.0',
- 'react-dom' => '18.2.0',
+ 'react' => '18.3.1',
+ 'react-dom' => '18.3.1',
+ 'react-jsx-runtime' => '18.3.1',
'regenerator-runtime' => '0.14.0',
'moment' => '2.29.4',
'lodash' => '4.17.21',
@@ -142,7 +144,7 @@ function wp_default_packages_vendor( $scripts ) {
'moment',
sprintf(
"moment.updateLocale( '%s', %s );",
- get_user_locale(),
+ esc_js( get_user_locale() ),
wp_json_encode(
array(
'months' => array_values( $wp_locale->month ),
@@ -281,10 +283,6 @@ function wp_default_packages_scripts( $scripts ) {
*/
$assets = include ABSPATH . WPINC . "/assets/script-loader-packages{$suffix}.php";
- // Add the private version of the Interactivity API manually.
- $scripts->add( 'wp-interactivity', '/wp-includes/js/dist/interactivity.min.js' );
- did_action( 'init' ) && $scripts->add_data( 'wp-interactivity', 'strategy', 'defer' );
-
foreach ( $assets as $file_name => $package_data ) {
$basename = str_replace( $suffix . '.js', '', basename( $file_name ) );
$handle = 'wp-' . $basename;
@@ -881,57 +879,57 @@ function wp_default_scripts( $scripts ) {
* the source files were flattened and included with some modifications for AMD loading.
* A notable change is that 'jquery-ui-core' now contains 'jquery-ui-position' and 'jquery-ui-widget'.
*/
- $scripts->add( 'jquery-ui-core', "/wp-includes/js/jquery/ui/core$suffix.js", array( 'jquery' ), '1.13.2', 1 );
- $scripts->add( 'jquery-effects-core', "/wp-includes/js/jquery/ui/effect$suffix.js", array( 'jquery' ), '1.13.2', 1 );
-
- $scripts->add( 'jquery-effects-blind', "/wp-includes/js/jquery/ui/effect-blind$suffix.js", array( 'jquery-effects-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-effects-bounce', "/wp-includes/js/jquery/ui/effect-bounce$suffix.js", array( 'jquery-effects-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-effects-clip', "/wp-includes/js/jquery/ui/effect-clip$suffix.js", array( 'jquery-effects-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-effects-drop', "/wp-includes/js/jquery/ui/effect-drop$suffix.js", array( 'jquery-effects-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-effects-explode', "/wp-includes/js/jquery/ui/effect-explode$suffix.js", array( 'jquery-effects-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-effects-fade', "/wp-includes/js/jquery/ui/effect-fade$suffix.js", array( 'jquery-effects-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-effects-fold', "/wp-includes/js/jquery/ui/effect-fold$suffix.js", array( 'jquery-effects-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-effects-highlight', "/wp-includes/js/jquery/ui/effect-highlight$suffix.js", array( 'jquery-effects-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-effects-puff', "/wp-includes/js/jquery/ui/effect-puff$suffix.js", array( 'jquery-effects-core', 'jquery-effects-scale' ), '1.13.2', 1 );
- $scripts->add( 'jquery-effects-pulsate', "/wp-includes/js/jquery/ui/effect-pulsate$suffix.js", array( 'jquery-effects-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-effects-scale', "/wp-includes/js/jquery/ui/effect-scale$suffix.js", array( 'jquery-effects-core', 'jquery-effects-size' ), '1.13.2', 1 );
- $scripts->add( 'jquery-effects-shake', "/wp-includes/js/jquery/ui/effect-shake$suffix.js", array( 'jquery-effects-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-effects-size', "/wp-includes/js/jquery/ui/effect-size$suffix.js", array( 'jquery-effects-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-effects-slide', "/wp-includes/js/jquery/ui/effect-slide$suffix.js", array( 'jquery-effects-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-effects-transfer', "/wp-includes/js/jquery/ui/effect-transfer$suffix.js", array( 'jquery-effects-core' ), '1.13.2', 1 );
+ $scripts->add( 'jquery-ui-core', "/wp-includes/js/jquery/ui/core$suffix.js", array( 'jquery' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-effects-core', "/wp-includes/js/jquery/ui/effect$suffix.js", array( 'jquery' ), '1.13.3', 1 );
+
+ $scripts->add( 'jquery-effects-blind', "/wp-includes/js/jquery/ui/effect-blind$suffix.js", array( 'jquery-effects-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-effects-bounce', "/wp-includes/js/jquery/ui/effect-bounce$suffix.js", array( 'jquery-effects-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-effects-clip', "/wp-includes/js/jquery/ui/effect-clip$suffix.js", array( 'jquery-effects-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-effects-drop', "/wp-includes/js/jquery/ui/effect-drop$suffix.js", array( 'jquery-effects-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-effects-explode', "/wp-includes/js/jquery/ui/effect-explode$suffix.js", array( 'jquery-effects-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-effects-fade', "/wp-includes/js/jquery/ui/effect-fade$suffix.js", array( 'jquery-effects-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-effects-fold', "/wp-includes/js/jquery/ui/effect-fold$suffix.js", array( 'jquery-effects-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-effects-highlight', "/wp-includes/js/jquery/ui/effect-highlight$suffix.js", array( 'jquery-effects-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-effects-puff', "/wp-includes/js/jquery/ui/effect-puff$suffix.js", array( 'jquery-effects-core', 'jquery-effects-scale' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-effects-pulsate', "/wp-includes/js/jquery/ui/effect-pulsate$suffix.js", array( 'jquery-effects-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-effects-scale', "/wp-includes/js/jquery/ui/effect-scale$suffix.js", array( 'jquery-effects-core', 'jquery-effects-size' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-effects-shake', "/wp-includes/js/jquery/ui/effect-shake$suffix.js", array( 'jquery-effects-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-effects-size', "/wp-includes/js/jquery/ui/effect-size$suffix.js", array( 'jquery-effects-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-effects-slide', "/wp-includes/js/jquery/ui/effect-slide$suffix.js", array( 'jquery-effects-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-effects-transfer', "/wp-includes/js/jquery/ui/effect-transfer$suffix.js", array( 'jquery-effects-core' ), '1.13.3', 1 );
// Widgets
- $scripts->add( 'jquery-ui-accordion', "/wp-includes/js/jquery/ui/accordion$suffix.js", array( 'jquery-ui-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$suffix.js", array( 'jquery-ui-menu', 'wp-a11y' ), '1.13.2', 1 );
- $scripts->add( 'jquery-ui-button', "/wp-includes/js/jquery/ui/button$suffix.js", array( 'jquery-ui-core', 'jquery-ui-controlgroup', 'jquery-ui-checkboxradio' ), '1.13.2', 1 );
- $scripts->add( 'jquery-ui-datepicker', "/wp-includes/js/jquery/ui/datepicker$suffix.js", array( 'jquery-ui-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-ui-dialog', "/wp-includes/js/jquery/ui/dialog$suffix.js", array( 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-button' ), '1.13.2', 1 );
- $scripts->add( 'jquery-ui-menu', "/wp-includes/js/jquery/ui/menu$suffix.js", array( 'jquery-ui-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-ui-mouse', "/wp-includes/js/jquery/ui/mouse$suffix.js", array( 'jquery-ui-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-ui-progressbar', "/wp-includes/js/jquery/ui/progressbar$suffix.js", array( 'jquery-ui-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-ui-selectmenu', "/wp-includes/js/jquery/ui/selectmenu$suffix.js", array( 'jquery-ui-menu' ), '1.13.2', 1 );
- $scripts->add( 'jquery-ui-slider', "/wp-includes/js/jquery/ui/slider$suffix.js", array( 'jquery-ui-mouse' ), '1.13.2', 1 );
- $scripts->add( 'jquery-ui-spinner', "/wp-includes/js/jquery/ui/spinner$suffix.js", array( 'jquery-ui-button' ), '1.13.2', 1 );
- $scripts->add( 'jquery-ui-tabs', "/wp-includes/js/jquery/ui/tabs$suffix.js", array( 'jquery-ui-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-ui-tooltip', "/wp-includes/js/jquery/ui/tooltip$suffix.js", array( 'jquery-ui-core' ), '1.13.2', 1 );
+ $scripts->add( 'jquery-ui-accordion', "/wp-includes/js/jquery/ui/accordion$suffix.js", array( 'jquery-ui-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$suffix.js", array( 'jquery-ui-menu', 'wp-a11y' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-ui-button', "/wp-includes/js/jquery/ui/button$suffix.js", array( 'jquery-ui-core', 'jquery-ui-controlgroup', 'jquery-ui-checkboxradio' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-ui-datepicker', "/wp-includes/js/jquery/ui/datepicker$suffix.js", array( 'jquery-ui-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-ui-dialog', "/wp-includes/js/jquery/ui/dialog$suffix.js", array( 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-button' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-ui-menu', "/wp-includes/js/jquery/ui/menu$suffix.js", array( 'jquery-ui-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-ui-mouse', "/wp-includes/js/jquery/ui/mouse$suffix.js", array( 'jquery-ui-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-ui-progressbar', "/wp-includes/js/jquery/ui/progressbar$suffix.js", array( 'jquery-ui-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-ui-selectmenu', "/wp-includes/js/jquery/ui/selectmenu$suffix.js", array( 'jquery-ui-menu' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-ui-slider', "/wp-includes/js/jquery/ui/slider$suffix.js", array( 'jquery-ui-mouse' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-ui-spinner', "/wp-includes/js/jquery/ui/spinner$suffix.js", array( 'jquery-ui-button' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-ui-tabs', "/wp-includes/js/jquery/ui/tabs$suffix.js", array( 'jquery-ui-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-ui-tooltip', "/wp-includes/js/jquery/ui/tooltip$suffix.js", array( 'jquery-ui-core' ), '1.13.3', 1 );
// New in 1.12.1
- $scripts->add( 'jquery-ui-checkboxradio', "/wp-includes/js/jquery/ui/checkboxradio$suffix.js", array( 'jquery-ui-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-ui-controlgroup', "/wp-includes/js/jquery/ui/controlgroup$suffix.js", array( 'jquery-ui-core' ), '1.13.2', 1 );
+ $scripts->add( 'jquery-ui-checkboxradio', "/wp-includes/js/jquery/ui/checkboxradio$suffix.js", array( 'jquery-ui-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-ui-controlgroup', "/wp-includes/js/jquery/ui/controlgroup$suffix.js", array( 'jquery-ui-core' ), '1.13.3', 1 );
// Interactions
- $scripts->add( 'jquery-ui-draggable', "/wp-includes/js/jquery/ui/draggable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.2', 1 );
- $scripts->add( 'jquery-ui-droppable', "/wp-includes/js/jquery/ui/droppable$suffix.js", array( 'jquery-ui-draggable' ), '1.13.2', 1 );
- $scripts->add( 'jquery-ui-resizable', "/wp-includes/js/jquery/ui/resizable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.2', 1 );
- $scripts->add( 'jquery-ui-selectable', "/wp-includes/js/jquery/ui/selectable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.2', 1 );
- $scripts->add( 'jquery-ui-sortable', "/wp-includes/js/jquery/ui/sortable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.2', 1 );
+ $scripts->add( 'jquery-ui-draggable', "/wp-includes/js/jquery/ui/draggable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-ui-droppable', "/wp-includes/js/jquery/ui/droppable$suffix.js", array( 'jquery-ui-draggable' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-ui-resizable', "/wp-includes/js/jquery/ui/resizable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-ui-selectable', "/wp-includes/js/jquery/ui/selectable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-ui-sortable', "/wp-includes/js/jquery/ui/sortable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.3', 1 );
/*
* As of 1.12.1 `jquery-ui-position` and `jquery-ui-widget` are part of `jquery-ui-core`.
* Listed here for back-compat.
*/
- $scripts->add( 'jquery-ui-position', false, array( 'jquery-ui-core' ), '1.13.2', 1 );
- $scripts->add( 'jquery-ui-widget', false, array( 'jquery-ui-core' ), '1.13.2', 1 );
+ $scripts->add( 'jquery-ui-position', false, array( 'jquery-ui-core' ), '1.13.3', 1 );
+ $scripts->add( 'jquery-ui-widget', false, array( 'jquery-ui-core' ), '1.13.3', 1 );
// Deprecated, not used in core, most functionality is included in jQuery 1.3.
$scripts->add( 'jquery-form', "/wp-includes/js/jquery/jquery.form$suffix.js", array( 'jquery' ), '4.3.0', 1 );
diff --git a/wp-includes/script-modules.php b/wp-includes/script-modules.php
index 0aceb51..c873e5d 100644
--- a/wp-includes/script-modules.php
+++ b/wp-includes/script-modules.php
@@ -14,10 +14,10 @@
* This function provides access to the WP_Script_Modules instance, creating one
* if it doesn't exist yet.
*
- * @global WP_Script_Modules $wp_script_modules
- *
* @since 6.5.0
*
+ * @global WP_Script_Modules $wp_script_modules
+ *
* @return WP_Script_Modules The main WP_Script_Modules instance.
*/
function wp_script_modules(): WP_Script_Modules {
@@ -36,30 +36,30 @@ function wp_script_modules(): WP_Script_Modules {
*
* @since 6.5.0
*
- * @param string $id The identifier of the script module. Should be unique. It will be used in the
- * final import map.
- * @param string $src Optional. Full URL of the script module, or path of the script module relative
- * to the WordPress root directory. If it is provided and the script module has
- * not been registered yet, it will be registered.
- * @param array $deps {
- * Optional. List of dependencies.
- *
- * @type string|array ...$0 {
- * An array of script module identifiers of the dependencies of this script
- * module. The dependencies can be strings or arrays. If they are arrays,
- * they need an `id` key with the script module identifier, and can contain
- * an `import` key with either `static` or `dynamic`. By default,
- * dependencies that don't contain an `import` key are considered static.
- *
- * @type string $id The script module identifier.
- * @type string $import Optional. Import type. May be either `static` or
- * `dynamic`. Defaults to `static`.
- * }
- * }
- * @param string|false|null $version Optional. String specifying the script module version number. Defaults to false.
- * It is added to the URL as a query string for cache busting purposes. If $version
- * is set to false, the version number is the currently installed WordPress version.
- * If $version is set to null, no version is added.
+ * @param string $id The identifier of the script module. Should be unique. It will be used in the
+ * final import map.
+ * @param string $src Optional. Full URL of the script module, or path of the script module relative
+ * to the WordPress root directory. If it is provided and the script module has
+ * not been registered yet, it will be registered.
+ * @param array $deps {
+ * Optional. List of dependencies.
+ *
+ * @type string|array ...$0 {
+ * An array of script module identifiers of the dependencies of this script
+ * module. The dependencies can be strings or arrays. If they are arrays,
+ * they need an `id` key with the script module identifier, and can contain
+ * an `import` key with either `static` or `dynamic`. By default,
+ * dependencies that don't contain an `import` key are considered static.
+ *
+ * @type string $id The script module identifier.
+ * @type string $import Optional. Import type. May be either `static` or
+ * `dynamic`. Defaults to `static`.
+ * }
+ * }
+ * @param string|false|null $version Optional. String specifying the script module version number. Defaults to false.
+ * It is added to the URL as a query string for cache busting purposes. If $version
+ * is set to false, the version number is the currently installed WordPress version.
+ * If $version is set to null, no version is added.
*/
function wp_register_script_module( string $id, string $src, array $deps = array(), $version = false ) {
wp_script_modules()->register( $id, $src, $deps, $version );
@@ -73,30 +73,30 @@ function wp_register_script_module( string $id, string $src, array $deps = array
*
* @since 6.5.0
*
- * @param string $id The identifier of the script module. Should be unique. It will be used in the
- * final import map.
- * @param string $src Optional. Full URL of the script module, or path of the script module relative
- * to the WordPress root directory. If it is provided and the script module has
- * not been registered yet, it will be registered.
- * @param array $deps {
- * Optional. List of dependencies.
- *
- * @type string|array ...$0 {
- * An array of script module identifiers of the dependencies of this script
- * module. The dependencies can be strings or arrays. If they are arrays,
- * they need an `id` key with the script module identifier, and can contain
- * an `import` key with either `static` or `dynamic`. By default,
- * dependencies that don't contain an `import` key are considered static.
- *
- * @type string $id The script module identifier.
- * @type string $import Optional. Import type. May be either `static` or
- * `dynamic`. Defaults to `static`.
- * }
- * }
- * @param string|false|null $version Optional. String specifying the script module version number. Defaults to false.
- * It is added to the URL as a query string for cache busting purposes. If $version
- * is set to false, the version number is the currently installed WordPress version.
- * If $version is set to null, no version is added.
+ * @param string $id The identifier of the script module. Should be unique. It will be used in the
+ * final import map.
+ * @param string $src Optional. Full URL of the script module, or path of the script module relative
+ * to the WordPress root directory. If it is provided and the script module has
+ * not been registered yet, it will be registered.
+ * @param array $deps {
+ * Optional. List of dependencies.
+ *
+ * @type string|array ...$0 {
+ * An array of script module identifiers of the dependencies of this script
+ * module. The dependencies can be strings or arrays. If they are arrays,
+ * they need an `id` key with the script module identifier, and can contain
+ * an `import` key with either `static` or `dynamic`. By default,
+ * dependencies that don't contain an `import` key are considered static.
+ *
+ * @type string $id The script module identifier.
+ * @type string $import Optional. Import type. May be either `static` or
+ * `dynamic`. Defaults to `static`.
+ * }
+ * }
+ * @param string|false|null $version Optional. String specifying the script module version number. Defaults to false.
+ * It is added to the URL as a query string for cache busting purposes. If $version
+ * is set to false, the version number is the currently installed WordPress version.
+ * If $version is set to null, no version is added.
*/
function wp_enqueue_script_module( string $id, string $src = '', array $deps = array(), $version = false ) {
wp_script_modules()->enqueue( $id, $src, $deps, $version );
diff --git a/wp-includes/shortcodes.php b/wp-includes/shortcodes.php
index 75e489f..bddf63a 100644
--- a/wp-includes/shortcodes.php
+++ b/wp-includes/shortcodes.php
@@ -417,10 +417,11 @@ function do_shortcode_tag( $m ) {
* shortcode generation process, returning that value instead.
*
* @since 4.7.0
+ * @since 6.5.0 The `$attr` parameter is always an array.
*
* @param false|string $output Short-circuit return value. Either false or the value to replace the shortcode with.
* @param string $tag Shortcode name.
- * @param array|string $attr Shortcode attributes array or the original arguments string if it cannot be parsed.
+ * @param array $attr Shortcode attributes array, can be empty if the original arguments string cannot be parsed.
* @param array $m Regular expression match array.
*/
$return = apply_filters( 'pre_do_shortcode_tag', false, $tag, $attr, $m );
@@ -436,11 +437,12 @@ function do_shortcode_tag( $m ) {
* Filters the output created by a shortcode callback.
*
* @since 4.7.0
+ * @since 6.5.0 The `$attr` parameter is always an array.
*
- * @param string $output Shortcode output.
- * @param string $tag Shortcode name.
- * @param array|string $attr Shortcode attributes array or the original arguments string if it cannot be parsed.
- * @param array $m Regular expression match array.
+ * @param string $output Shortcode output.
+ * @param string $tag Shortcode name.
+ * @param array $attr Shortcode attributes array, can be empty if the original arguments string cannot be parsed.
+ * @param array $m Regular expression match array.
*/
return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m );
}
@@ -600,7 +602,7 @@ function get_shortcode_atts_regex() {
* retrieval of the attributes, since all attributes have to be known.
*
* @since 2.5.0
- * @since 6.5.0 The function now always returns an empty array,
+ * @since 6.5.0 The function now always returns an array,
* even if the original arguments string cannot be parsed or is empty.
*
* @param string $text Shortcode arguments list.
diff --git a/wp-includes/style-engine.php b/wp-includes/style-engine.php
index 5b5545c..5362761 100644
--- a/wp-includes/style-engine.php
+++ b/wp-includes/style-engine.php
@@ -113,11 +113,14 @@ function wp_style_engine_get_styles( $block_styles, $options = array() ) {
* .elephant-are-cool{color:gray;width:3em}
*
* @since 6.1.0
+ * @since 6.6.0 Added support for `$rules_group` in the `$css_rules` array.
*
* @param array $css_rules {
* Required. A collection of CSS rules.
*
* @type array ...$0 {
+ * @type string $rules_group A parent CSS selector in the case of nested CSS,
+ * or a CSS nested @rule, such as `@media (min-width: 80rem)` or `@layer module`.
* @type string $selector A CSS selector.
* @type string[] $declarations An associative array of CSS definitions,
* e.g. `array( "$property" => "$value", "$property" => "$value" )`.
@@ -154,11 +157,12 @@ function wp_style_engine_get_stylesheet_from_css_rules( $css_rules, $options = a
continue;
}
+ $rules_group = $css_rule['rules_group'] ?? null;
if ( ! empty( $options['context'] ) ) {
- WP_Style_Engine::store_css_rule( $options['context'], $css_rule['selector'], $css_rule['declarations'] );
+ WP_Style_Engine::store_css_rule( $options['context'], $css_rule['selector'], $css_rule['declarations'], $rules_group );
}
- $css_rule_objects[] = new WP_Style_Engine_CSS_Rule( $css_rule['selector'], $css_rule['declarations'] );
+ $css_rule_objects[] = new WP_Style_Engine_CSS_Rule( $css_rule['selector'], $css_rule['declarations'], $rules_group );
}
if ( empty( $css_rule_objects ) ) {
diff --git a/wp-includes/style-engine/class-wp-style-engine-css-rule.php b/wp-includes/style-engine/class-wp-style-engine-css-rule.php
index 2b31cff..291652a 100644
--- a/wp-includes/style-engine/class-wp-style-engine-css-rule.php
+++ b/wp-includes/style-engine/class-wp-style-engine-css-rule.php
@@ -36,19 +36,32 @@ class WP_Style_Engine_CSS_Rule {
protected $declarations;
/**
+ * A parent CSS selector in the case of nested CSS, or a CSS nested @rule,
+ * such as `@media (min-width: 80rem)` or `@layer module`.
+ *
+ * @since 6.6.0
+ * @var string
+ */
+ protected $rules_group;
+
+ /**
* Constructor.
*
* @since 6.1.0
+ * @since 6.6.0 Added the `$rules_group` parameter.
*
* @param string $selector Optional. The CSS selector. Default empty string.
* @param string[]|WP_Style_Engine_CSS_Declarations $declarations Optional. An associative array of CSS definitions,
* e.g. `array( "$property" => "$value", "$property" => "$value" )`,
* or a WP_Style_Engine_CSS_Declarations object.
* Default empty array.
+ * @param string $rules_group A parent CSS selector in the case of nested CSS, or a CSS nested @rule,
+ * such as `@media (min-width: 80rem)` or `@layer module`.
*/
- public function __construct( $selector = '', $declarations = array() ) {
+ public function __construct( $selector = '', $declarations = array(), $rules_group = '' ) {
$this->set_selector( $selector );
$this->add_declarations( $declarations );
+ $this->set_rules_group( $rules_group );
}
/**
@@ -90,6 +103,31 @@ class WP_Style_Engine_CSS_Rule {
}
/**
+ * Sets the rules group.
+ *
+ * @since 6.6.0
+ *
+ * @param string $rules_group A parent CSS selector in the case of nested CSS, or a CSS nested @rule,
+ * such as `@media (min-width: 80rem)` or `@layer module`.
+ * @return WP_Style_Engine_CSS_Rule Returns the object to allow chaining of methods.
+ */
+ public function set_rules_group( $rules_group ) {
+ $this->rules_group = $rules_group;
+ return $this;
+ }
+
+ /**
+ * Gets the rules group.
+ *
+ * @since 6.6.0
+ *
+ * @return string
+ */
+ public function get_rules_group() {
+ return $this->rules_group;
+ }
+
+ /**
* Gets the declarations object.
*
* @since 6.1.0
@@ -115,6 +153,7 @@ class WP_Style_Engine_CSS_Rule {
* Gets the CSS.
*
* @since 6.1.0
+ * @since 6.6.0 Added support for nested CSS with rules groups.
*
* @param bool $should_prettify Optional. Whether to add spacing, new lines and indents.
* Default false.
@@ -123,17 +162,28 @@ class WP_Style_Engine_CSS_Rule {
* @return string
*/
public function get_css( $should_prettify = false, $indent_count = 0 ) {
- $rule_indent = $should_prettify ? str_repeat( "\t", $indent_count ) : '';
- $declarations_indent = $should_prettify ? $indent_count + 1 : 0;
- $suffix = $should_prettify ? "\n" : '';
- $spacer = $should_prettify ? ' ' : '';
- $selector = $should_prettify ? str_replace( ',', ",\n", $this->get_selector() ) : $this->get_selector();
- $css_declarations = $this->declarations->get_declarations_string( $should_prettify, $declarations_indent );
+ $rule_indent = $should_prettify ? str_repeat( "\t", $indent_count ) : '';
+ $nested_rule_indent = $should_prettify ? str_repeat( "\t", $indent_count + 1 ) : '';
+ $declarations_indent = $should_prettify ? $indent_count + 1 : 0;
+ $nested_declarations_indent = $should_prettify ? $indent_count + 2 : 0;
+ $suffix = $should_prettify ? "\n" : '';
+ $spacer = $should_prettify ? ' ' : '';
+ // Trims any multiple selectors strings.
+ $selector = $should_prettify ? implode( ',', array_map( 'trim', explode( ',', $this->get_selector() ) ) ) : $this->get_selector();
+ $selector = $should_prettify ? str_replace( array( ',' ), ",\n", $selector ) : $selector;
+ $rules_group = $this->get_rules_group();
+ $has_rules_group = ! empty( $rules_group );
+ $css_declarations = $this->declarations->get_declarations_string( $should_prettify, $has_rules_group ? $nested_declarations_indent : $declarations_indent );
if ( empty( $css_declarations ) ) {
return '';
}
+ if ( $has_rules_group ) {
+ $selector = "{$rule_indent}{$rules_group}{$spacer}{{$suffix}{$nested_rule_indent}{$selector}{$spacer}{{$suffix}{$css_declarations}{$suffix}{$nested_rule_indent}}{$suffix}{$rule_indent}}";
+ return $selector;
+ }
+
return "{$rule_indent}{$selector}{$spacer}{{$suffix}{$css_declarations}{$suffix}{$rule_indent}}";
}
}
diff --git a/wp-includes/style-engine/class-wp-style-engine-css-rules-store.php b/wp-includes/style-engine/class-wp-style-engine-css-rules-store.php
index 371e59f..4a82f28 100644
--- a/wp-includes/style-engine/class-wp-style-engine-css-rules-store.php
+++ b/wp-includes/style-engine/class-wp-style-engine-css-rules-store.php
@@ -121,19 +121,30 @@ class WP_Style_Engine_CSS_Rules_Store {
* If the rule does not exist, it will be created.
*
* @since 6.1.0
+ * @since 6.6.0 Added the $rules_group parameter.
*
* @param string $selector The CSS selector.
+ * @param string $rules_group A parent CSS selector in the case of nested CSS, or a CSS nested @rule,
+ * such as `@media (min-width: 80rem)` or `@layer module`.
* @return WP_Style_Engine_CSS_Rule|void Returns a WP_Style_Engine_CSS_Rule object,
* or void if the selector is empty.
*/
- public function add_rule( $selector ) {
- $selector = trim( $selector );
+ public function add_rule( $selector, $rules_group = '' ) {
+ $selector = $selector ? trim( $selector ) : '';
+ $rules_group = $rules_group ? trim( $rules_group ) : '';
// Bail early if there is no selector.
if ( empty( $selector ) ) {
return;
}
+ if ( ! empty( $rules_group ) ) {
+ if ( empty( $this->rules[ "$rules_group $selector" ] ) ) {
+ $this->rules[ "$rules_group $selector" ] = new WP_Style_Engine_CSS_Rule( $selector, array(), $rules_group );
+ }
+ return $this->rules[ "$rules_group $selector" ];
+ }
+
// Create the rule if it doesn't exist.
if ( empty( $this->rules[ $selector ] ) ) {
$this->rules[ $selector ] = new WP_Style_Engine_CSS_Rule( $selector );
diff --git a/wp-includes/style-engine/class-wp-style-engine-processor.php b/wp-includes/style-engine/class-wp-style-engine-processor.php
index 0778748..d5e6c73 100644
--- a/wp-includes/style-engine/class-wp-style-engine-processor.php
+++ b/wp-includes/style-engine/class-wp-style-engine-processor.php
@@ -58,6 +58,7 @@ class WP_Style_Engine_Processor {
* Adds rules to be processed.
*
* @since 6.1.0
+ * @since 6.6.0 Added support for rules_group.
*
* @param WP_Style_Engine_CSS_Rule|WP_Style_Engine_CSS_Rule[] $css_rules A single, or an array of,
* WP_Style_Engine_CSS_Rule objects
@@ -70,7 +71,24 @@ class WP_Style_Engine_Processor {
}
foreach ( $css_rules as $rule ) {
- $selector = $rule->get_selector();
+ $selector = $rule->get_selector();
+ $rules_group = $rule->get_rules_group();
+
+ /**
+ * If there is a rules_group and it already exists in the css_rules array,
+ * add the rule to it.
+ * Otherwise, create a new entry for the rules_group.
+ */
+ if ( ! empty( $rules_group ) ) {
+ if ( isset( $this->css_rules[ "$rules_group $selector" ] ) ) {
+ $this->css_rules[ "$rules_group $selector" ]->add_declarations( $rule->get_declarations() );
+ continue;
+ }
+ $this->css_rules[ "$rules_group $selector" ] = $rule;
+ continue;
+ }
+
+ // If the selector already exists, add the declarations to it.
if ( isset( $this->css_rules[ $selector ] ) ) {
$this->css_rules[ $selector ]->add_declarations( $rule->get_declarations() );
continue;
@@ -117,6 +135,7 @@ class WP_Style_Engine_Processor {
// Build the CSS.
$css = '';
foreach ( $this->css_rules as $rule ) {
+ // See class WP_Style_Engine_CSS_Rule for the get_css method.
$css .= $rule->get_css( $options['prettify'] );
$css .= $options['prettify'] ? "\n" : '';
}
diff --git a/wp-includes/style-engine/class-wp-style-engine.php b/wp-includes/style-engine/class-wp-style-engine.php
index 99372b5..1ba813e 100644
--- a/wp-includes/style-engine/class-wp-style-engine.php
+++ b/wp-includes/style-engine/class-wp-style-engine.php
@@ -364,6 +364,7 @@ final class WP_Style_Engine {
* Stores a CSS rule using the provided CSS selector and CSS declarations.
*
* @since 6.1.0
+ * @since 6.6.0 Added the `$rules_group` parameter.
*
* @param string $store_name A valid store key.
* @param string $css_selector When a selector is passed, the function will return
@@ -371,12 +372,14 @@ final class WP_Style_Engine {
* otherwise a concatenated string of properties and values.
* @param string[] $css_declarations An associative array of CSS definitions,
* e.g. `array( "$property" => "$value", "$property" => "$value" )`.
+ * @param string $rules_group Optional. A parent CSS selector in the case of nested CSS, or a CSS nested @rule,
+ * such as `@media (min-width: 80rem)` or `@layer module`.
*/
- public static function store_css_rule( $store_name, $css_selector, $css_declarations ) {
+ public static function store_css_rule( $store_name, $css_selector, $css_declarations, $rules_group = '' ) {
if ( empty( $store_name ) || empty( $css_selector ) || empty( $css_declarations ) ) {
return;
}
- static::get_store( $store_name )->add_rule( $css_selector )->add_declarations( $css_declarations );
+ static::get_store( $store_name )->add_rule( $css_selector, $rules_group )->add_declarations( $css_declarations );
}
/**
@@ -467,6 +470,7 @@ final class WP_Style_Engine {
foreach ( $style_definition['classnames'] as $classname => $property_key ) {
if ( true === $property_key ) {
$classnames[] = $classname;
+ continue;
}
$slug = static::get_slug_from_preset_value( $style_value, $property_key );
diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php
index 85ca5c3..778a6a3 100644
--- a/wp-includes/taxonomy.php
+++ b/wp-includes/taxonomy.php
@@ -645,6 +645,7 @@ function unregister_taxonomy( $taxonomy ) {
* @since 5.8.0 Added the `item_link` and `item_link_description` labels.
* @since 5.9.0 Added the `name_field_description`, `slug_field_description`,
* `parent_field_description`, and `desc_field_description` labels.
+ * @since 6.6.0 Added the `template_name` label.
*
* @param WP_Taxonomy $tax Taxonomy object.
* @return object {
@@ -679,6 +680,7 @@ function unregister_taxonomy( $taxonomy ) {
* @type string $update_item Default 'Update Tag'/'Update Category'.
* @type string $add_new_item Default 'Add New Tag'/'Add New Category'.
* @type string $new_item_name Default 'New Tag Name'/'New Category Name'.
+ * @type string $template_name Default 'Tag Archives'/'Category Archives'.
* @type string $separate_items_with_commas This label is only used for non-hierarchical taxonomies. Default
* 'Separate tags with commas', used in the meta box.
* @type string $add_or_remove_items This label is only used for non-hierarchical taxonomies. Default
@@ -719,6 +721,11 @@ function get_taxonomy_labels( $tax ) {
$labels = _get_custom_object_labels( $tax, $nohier_vs_hier_defaults );
+ if ( ! isset( $tax->labels->template_name ) && isset( $labels->singular_name ) ) {
+ /* translators: %s: Taxonomy name. */
+ $labels->template_name = sprintf( _x( '%s Archives', 'taxonomy template name' ), $labels->singular_name );
+ }
+
$taxonomy = $tax->name;
$default_labels = clone $labels;
@@ -2818,7 +2825,6 @@ function wp_set_object_terms( $object_id, $terms, $taxonomy, $append = false ) {
}
$tt_ids = array();
- $term_ids = array();
$new_tt_ids = array();
foreach ( (array) $terms as $term ) {
@@ -2841,9 +2847,8 @@ function wp_set_object_terms( $object_id, $terms, $taxonomy, $append = false ) {
return $term_info;
}
- $term_ids[] = $term_info['term_id'];
- $tt_id = $term_info['term_taxonomy_id'];
- $tt_ids[] = $tt_id;
+ $tt_id = $term_info['term_taxonomy_id'];
+ $tt_ids[] = $tt_id;
if ( $wpdb->get_var( $wpdb->prepare( "SELECT term_taxonomy_id FROM $wpdb->term_relationships WHERE object_id = %d AND term_taxonomy_id = %d", $object_id, $tt_id ) ) ) {
continue;
@@ -4365,7 +4370,7 @@ function _wp_batch_split_terms() {
$lock_name = 'term_split.lock';
// Try to lock.
- $lock_result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` ( `option_name`, `option_value`, `autoload` ) VALUES (%s, %s, 'no') /* LOCK */", $lock_name, time() ) );
+ $lock_result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` ( `option_name`, `option_value`, `autoload` ) VALUES (%s, %s, 'off') /* LOCK */", $lock_name, time() ) );
if ( ! $lock_result ) {
$lock_result = get_option( $lock_name );
diff --git a/wp-includes/theme-i18n.json b/wp-includes/theme-i18n.json
index 82f89bd..7ce5231 100644
--- a/wp-includes/theme-i18n.json
+++ b/wp-includes/theme-i18n.json
@@ -37,6 +37,13 @@
}
]
},
+ "dimensions": {
+ "aspectRatios": [
+ {
+ "name": "Aspect ratio name"
+ }
+ ]
+ },
"blocks": {
"*": {
"typography": {
diff --git a/wp-includes/theme.json b/wp-includes/theme.json
index d9ed478..3287385 100644
--- a/wp-includes/theme.json
+++ b/wp-includes/theme.json
@@ -1,6 +1,6 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
- "version": 2,
+ "version": 3,
"settings": {
"appearanceTools": false,
"useRootPaddingAwareAlignments": false,
@@ -190,6 +190,46 @@
],
"text": true
},
+ "dimensions": {
+ "defaultAspectRatios": true,
+ "aspectRatios": [
+ {
+ "name": "Square - 1:1",
+ "slug": "square",
+ "ratio": "1"
+ },
+ {
+ "name": "Standard - 4:3",
+ "slug": "4-3",
+ "ratio": "4/3"
+ },
+ {
+ "name": "Portrait - 3:4",
+ "slug": "3-4",
+ "ratio": "3/4"
+ },
+ {
+ "name": "Classic - 3:2",
+ "slug": "3-2",
+ "ratio": "3/2"
+ },
+ {
+ "name": "Classic Portrait - 2:3",
+ "slug": "2-3",
+ "ratio": "2/3"
+ },
+ {
+ "name": "Wide - 16:9",
+ "slug": "16-9",
+ "ratio": "16/9"
+ },
+ {
+ "name": "Tall - 9:16",
+ "slug": "9-16",
+ "ratio": "9/16"
+ }
+ ]
+ },
"shadow": {
"defaultPresets": true,
"presets": [
@@ -225,6 +265,7 @@
"margin": false,
"padding": false,
"customSpacingSize": true,
+ "defaultSpacingSizes": true,
"units": [ "px", "em", "rem", "vh", "vw", "%" ],
"spacingScale": {
"operator": "*",
@@ -236,6 +277,7 @@
},
"typography": {
"customFontSize": true,
+ "defaultFontSizes": true,
"dropCap": true,
"fontSizes": [
{
@@ -263,6 +305,7 @@
"fontWeight": true,
"letterSpacing": true,
"lineHeight": false,
+ "textAlign": true,
"textDecoration": true,
"textTransform": true,
"writingMode": false
@@ -289,6 +332,40 @@
}
},
"styles": {
+ "blocks": {
+ "core/button": {
+ "variations": {
+ "outline": {
+ "border": {
+ "width": "2px",
+ "style": "solid",
+ "color": "currentColor"
+ },
+ "color": {
+ "text": "currentColor",
+ "gradient": "transparent none"
+ },
+ "spacing": {
+ "padding": {
+ "top": "0.667em",
+ "right": "1.33em",
+ "bottom": "0.667em",
+ "left": "1.33em"
+ }
+ }
+ }
+ }
+ },
+ "core/site-logo": {
+ "variations": {
+ "rounded": {
+ "border": {
+ "radius": "9999px"
+ }
+ }
+ }
+ }
+ },
"elements": {
"button": {
"color": {
diff --git a/wp-includes/theme.php b/wp-includes/theme.php
index 7157318..6dbb4cf 100644
--- a/wp-includes/theme.php
+++ b/wp-includes/theme.php
@@ -91,7 +91,7 @@ function wp_get_themes( $args = array() ) {
if ( null !== $args['errors'] ) {
foreach ( $themes as $theme => $wp_theme ) {
- if ( $wp_theme->errors() != $args['errors'] ) {
+ if ( (bool) $wp_theme->errors() !== $args['errors'] ) {
unset( $themes[ $theme ] );
}
}
@@ -514,7 +514,7 @@ function search_theme_directories( $force = false ) {
// Start with directories in the root of the active theme directory.
$dirs = @ scandir( $theme_root );
if ( ! $dirs ) {
- trigger_error( "$theme_root is not readable", E_USER_NOTICE );
+ wp_trigger_error( __FUNCTION__, "$theme_root is not readable" );
continue;
}
foreach ( $dirs as $dir ) {
@@ -538,7 +538,7 @@ function search_theme_directories( $force = false ) {
*/
$sub_dirs = @ scandir( $theme_root . '/' . $dir );
if ( ! $sub_dirs ) {
- trigger_error( "$theme_root/$dir is not readable", E_USER_NOTICE );
+ wp_trigger_error( __FUNCTION__, "$theme_root/$dir is not readable" );
continue;
}
foreach ( $sub_dirs as $sub_dir ) {
@@ -577,7 +577,7 @@ function search_theme_directories( $force = false ) {
$theme_roots[ $theme_dir ] = $relative_theme_roots[ $theme_data['theme_root'] ]; // Convert absolute to relative.
}
- if ( get_site_transient( 'theme_roots' ) != $theme_roots ) {
+ if ( get_site_transient( 'theme_roots' ) !== $theme_roots ) {
set_site_transient( 'theme_roots', $theme_roots, $cache_expiration );
}
@@ -705,9 +705,9 @@ function get_raw_theme_root( $stylesheet_or_template, $skip_cache = false ) {
// If requesting the root for the active theme, consult options to avoid calling get_theme_roots().
if ( ! $skip_cache ) {
- if ( get_option( 'stylesheet' ) == $stylesheet_or_template ) {
+ if ( get_option( 'stylesheet' ) === $stylesheet_or_template ) {
$theme_root = get_option( 'stylesheet_root' );
- } elseif ( get_option( 'template' ) == $stylesheet_or_template ) {
+ } elseif ( get_option( 'template' ) === $stylesheet_or_template ) {
$theme_root = get_option( 'template_root' );
}
}
@@ -942,7 +942,7 @@ function validate_current_theme() {
* if it turns out there is no default theme installed. (That's `false`.)
*/
$default = WP_Theme::get_core_default_theme();
- if ( false === $default || get_stylesheet() == $default->get_stylesheet() ) {
+ if ( false === $default || get_stylesheet() === $default->get_stylesheet() ) {
return true;
}
@@ -1567,7 +1567,7 @@ function get_custom_header() {
if ( ! empty( $_wp_default_headers ) ) {
foreach ( (array) $_wp_default_headers as $default_header ) {
$url = vsprintf( $default_header['url'], $directory_args );
- if ( $data['url'] == $url ) {
+ if ( $data['url'] === $url ) {
$data = $default_header;
$data['url'] = $url;
$data['thumbnail_url'] = vsprintf( $data['thumbnail_url'], $directory_args );
@@ -2642,6 +2642,7 @@ function get_theme_starter_content() {
* @since 6.3.0 The `border` feature allows themes without theme.json to add border styles to blocks.
* @since 6.5.0 The `appearance-tools` feature enables a few design tools for blocks,
* see `WP_Theme_JSON::APPEARANCE_TOOLS_OPT_INS` for a complete list.
+ * @since 6.6.0 The `editor-spacing-sizes` feature was added.
*
* @global array $_wp_theme_features
*
@@ -2669,6 +2670,7 @@ function get_theme_starter_content() {
* - 'editor-color-palette'
* - 'editor-gradient-presets'
* - 'editor-font-sizes'
+ * - 'editor-spacing-sizes'
* - 'editor-styles'
* - 'featured-content'
* - 'html5'
@@ -3434,6 +3436,7 @@ function get_registered_theme_feature( $feature ) {
* @since 3.0.0
* @since 4.3.0 Also removes `header_image_data`.
* @since 4.5.0 Also removes custom logo theme mods.
+ * @since 6.6.0 Also removes `site_logo` option set by the site logo block.
*
* @param int $id The attachment ID.
*/
@@ -3441,19 +3444,24 @@ function _delete_attachment_theme_mod( $id ) {
$attachment_image = wp_get_attachment_url( $id );
$header_image = get_header_image();
$background_image = get_background_image();
- $custom_logo_id = get_theme_mod( 'custom_logo' );
+ $custom_logo_id = (int) get_theme_mod( 'custom_logo' );
+ $site_logo_id = (int) get_option( 'site_logo' );
- if ( $custom_logo_id && $custom_logo_id == $id ) {
+ if ( $custom_logo_id && $custom_logo_id === $id ) {
remove_theme_mod( 'custom_logo' );
remove_theme_mod( 'header_text' );
}
- if ( $header_image && $header_image == $attachment_image ) {
+ if ( $site_logo_id && $site_logo_id === $id ) {
+ delete_option( 'site_logo' );
+ }
+
+ if ( $header_image && $header_image === $attachment_image ) {
remove_theme_mod( 'header_image' );
remove_theme_mod( 'header_image_data' );
}
- if ( $background_image && $background_image == $attachment_image ) {
+ if ( $background_image && $background_image === $attachment_image ) {
remove_theme_mod( 'background_image' );
}
}
@@ -3562,7 +3570,7 @@ function _wp_customize_include() {
$changeset_uuid = false;
/*
- * Set initially fo false since defaults to true for back-compat;
+ * Set initially to false since defaults to true for back-compat;
* can be overridden via the customize_changeset_branching filter.
*/
$branching = false;
@@ -4221,6 +4229,31 @@ function create_initial_theme_features() {
)
);
register_theme_feature(
+ 'editor-spacing-sizes',
+ array(
+ 'type' => 'array',
+ 'description' => __( 'Custom spacing sizes if defined by the theme.' ),
+ 'show_in_rest' => array(
+ 'schema' => array(
+ 'items' => array(
+ 'type' => 'object',
+ 'properties' => array(
+ 'name' => array(
+ 'type' => 'string',
+ ),
+ 'size' => array(
+ 'type' => 'string',
+ ),
+ 'slug' => array(
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ ),
+ ),
+ )
+ );
+ register_theme_feature(
'editor-styles',
array(
'description' => __( 'Whether theme opts in to the editor styles CSS wrapper.' ),
diff --git a/wp-includes/update.php b/wp-includes/update.php
index e2ac6b8..d521913 100644
--- a/wp-includes/update.php
+++ b/wp-includes/update.php
@@ -202,7 +202,8 @@ function wp_version_check( $extra_stats = array(), $force_check = false ) {
$response = wp_remote_post( $url, $options );
if ( $ssl && is_wp_error( $response ) ) {
- trigger_error(
+ wp_trigger_error(
+ __FUNCTION__,
sprintf(
/* translators: %s: Support forums URL. */
__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
@@ -440,7 +441,8 @@ function wp_update_plugins( $extra_stats = array() ) {
$raw_response = wp_remote_post( $url, $options );
if ( $ssl && is_wp_error( $raw_response ) ) {
- trigger_error(
+ wp_trigger_error(
+ __FUNCTION__,
sprintf(
/* translators: %s: Support forums URL. */
__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
@@ -721,7 +723,8 @@ function wp_update_themes( $extra_stats = array() ) {
$raw_response = wp_remote_post( $url, $options );
if ( $ssl && is_wp_error( $raw_response ) ) {
- trigger_error(
+ wp_trigger_error(
+ __FUNCTION__,
sprintf(
/* translators: %s: Support forums URL. */
__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
diff --git a/wp-includes/user.php b/wp-includes/user.php
index 301e8f0..a2949e9 100644
--- a/wp-includes/user.php
+++ b/wp-includes/user.php
@@ -25,6 +25,7 @@
* @since 2.5.0
*
* @global string $auth_secure_cookie
+ * @global wpdb $wpdb WordPress database abstraction object.
*
* @param array $credentials {
* Optional. User info in order to sign on.
@@ -38,6 +39,8 @@
* @return WP_User|WP_Error WP_User on success, WP_Error on failure.
*/
function wp_signon( $credentials = array(), $secure_cookie = '' ) {
+ global $auth_secure_cookie, $wpdb;
+
if ( empty( $credentials ) ) {
$credentials = array(
'user_login' => '',
@@ -98,7 +101,7 @@ function wp_signon( $credentials = array(), $secure_cookie = '' ) {
*/
$secure_cookie = apply_filters( 'secure_signon_cookie', $secure_cookie, $credentials );
- global $auth_secure_cookie; // XXX ugly hack to pass this to wp_authenticate_cookie().
+ // XXX ugly hack to pass this to wp_authenticate_cookie().
$auth_secure_cookie = $secure_cookie;
add_filter( 'authenticate', 'wp_authenticate_cookie', 30, 3 );
@@ -110,6 +113,20 @@ function wp_signon( $credentials = array(), $secure_cookie = '' ) {
}
wp_set_auth_cookie( $user->ID, $credentials['remember'], $secure_cookie );
+
+ // Clear `user_activation_key` after a successful login.
+ if ( ! empty( $user->user_activation_key ) ) {
+ $wpdb->update(
+ $wpdb->users,
+ array(
+ 'user_activation_key' => '',
+ ),
+ array( 'ID' => $user->ID )
+ );
+
+ $user->user_activation_key = '';
+ }
+
/**
* Fires after the user has successfully logged in.
*
@@ -119,6 +136,7 @@ function wp_signon( $credentials = array(), $secure_cookie = '' ) {
* @param WP_User $user WP_User object of the logged-in user.
*/
do_action( 'wp_login', $user->user_login, $user );
+
return $user;
}
@@ -284,6 +302,8 @@ function wp_authenticate_email_password( $user, $email, $password ) {
* @return WP_User|WP_Error WP_User on success, WP_Error on failure.
*/
function wp_authenticate_cookie( $user, $username, $password ) {
+ global $auth_secure_cookie;
+
if ( $user instanceof WP_User ) {
return $user;
}
@@ -294,8 +314,6 @@ function wp_authenticate_cookie( $user, $username, $password ) {
return new WP_User( $user_id );
}
- global $auth_secure_cookie;
-
if ( $auth_secure_cookie ) {
$auth_cookie = SECURE_AUTH_COOKIE;
} else {
@@ -1102,7 +1120,7 @@ function is_user_member_of_blog( $user_id = 0, $blog_id = 0 ) {
$base_capabilities_key = $wpdb->base_prefix . 'capabilities';
$site_capabilities_key = $wpdb->base_prefix . $blog_id . '_capabilities';
- if ( isset( $keys[ $base_capabilities_key ] ) && 1 == $blog_id ) {
+ if ( isset( $keys[ $base_capabilities_key ] ) && 1 === $blog_id ) {
return true;
}
@@ -1253,7 +1271,7 @@ function count_users( $strategy = 'time', $site_id = null ) {
$result = array();
if ( 'time' === $strategy ) {
- if ( is_multisite() && get_current_blog_id() != $site_id ) {
+ if ( is_multisite() && get_current_blog_id() !== $site_id ) {
switch_to_blog( $site_id );
$avail_roles = wp_roles()->get_names();
restore_current_blog();
@@ -1540,54 +1558,70 @@ function setup_userdata( $for_user_id = 0 ) {
*
* @since 2.3.0
* @since 4.5.0 Added the 'display_name_with_login' value for 'show'.
- * @since 4.7.0 Added the `$role`, `$role__in`, and `$role__not_in` parameters.
+ * @since 4.7.0 Added the 'role', 'role__in', and 'role__not_in' parameters.
+ * @since 5.9.0 Added the 'capability', 'capability__in', and 'capability__not_in' parameters.
+ * Deprecated the 'who' parameter.
*
* @param array|string $args {
* Optional. Array or string of arguments to generate a drop-down of users.
* See WP_User_Query::prepare_query() for additional available arguments.
*
- * @type string $show_option_all Text to show as the drop-down default (all).
- * Default empty.
- * @type string $show_option_none Text to show as the drop-down default when no
- * users were found. Default empty.
- * @type int|string $option_none_value Value to use for $show_option_none when no users
- * were found. Default -1.
- * @type string $hide_if_only_one_author Whether to skip generating the drop-down
- * if only one user was found. Default empty.
- * @type string $orderby Field to order found users by. Accepts user fields.
- * Default 'display_name'.
- * @type string $order Whether to order users in ascending or descending
- * order. Accepts 'ASC' (ascending) or 'DESC' (descending).
- * Default 'ASC'.
- * @type int[]|string $include Array or comma-separated list of user IDs to include.
- * Default empty.
- * @type int[]|string $exclude Array or comma-separated list of user IDs to exclude.
- * Default empty.
- * @type bool|int $multi Whether to skip the ID attribute on the 'select' element.
- * Accepts 1|true or 0|false. Default 0|false.
- * @type string $show User data to display. If the selected item is empty
- * then the 'user_login' will be displayed in parentheses.
- * Accepts any user field, or 'display_name_with_login' to show
- * the display name with user_login in parentheses.
- * Default 'display_name'.
- * @type int|bool $echo Whether to echo or return the drop-down. Accepts 1|true (echo)
- * or 0|false (return). Default 1|true.
- * @type int $selected Which user ID should be selected. Default 0.
- * @type bool $include_selected Whether to always include the selected user ID in the drop-
- * down. Default false.
- * @type string $name Name attribute of select element. Default 'user'.
- * @type string $id ID attribute of the select element. Default is the value of $name.
- * @type string $class Class attribute of the select element. Default empty.
- * @type int $blog_id ID of blog (Multisite only). Default is ID of the current blog.
- * @type string $who Which type of users to query. Accepts only an empty string or
- * 'authors'. Default empty.
- * @type string|array $role An array or a comma-separated list of role names that users must
- * match to be included in results. Note that this is an inclusive
- * list: users must match *each* role. Default empty.
- * @type string[] $role__in An array of role names. Matched users must have at least one of
- * these roles. Default empty array.
- * @type string[] $role__not_in An array of role names to exclude. Users matching one or more of
- * these roles will not be included in results. Default empty array.
+ * @type string $show_option_all Text to show as the drop-down default (all).
+ * Default empty.
+ * @type string $show_option_none Text to show as the drop-down default when no
+ * users were found. Default empty.
+ * @type int|string $option_none_value Value to use for `$show_option_none` when no users
+ * were found. Default -1.
+ * @type string $hide_if_only_one_author Whether to skip generating the drop-down
+ * if only one user was found. Default empty.
+ * @type string $orderby Field to order found users by. Accepts user fields.
+ * Default 'display_name'.
+ * @type string $order Whether to order users in ascending or descending
+ * order. Accepts 'ASC' (ascending) or 'DESC' (descending).
+ * Default 'ASC'.
+ * @type int[]|string $include Array or comma-separated list of user IDs to include.
+ * Default empty.
+ * @type int[]|string $exclude Array or comma-separated list of user IDs to exclude.
+ * Default empty.
+ * @type bool|int $multi Whether to skip the ID attribute on the 'select' element.
+ * Accepts 1|true or 0|false. Default 0|false.
+ * @type string $show User data to display. If the selected item is empty
+ * then the 'user_login' will be displayed in parentheses.
+ * Accepts any user field, or 'display_name_with_login' to show
+ * the display name with user_login in parentheses.
+ * Default 'display_name'.
+ * @type int|bool $echo Whether to echo or return the drop-down. Accepts 1|true (echo)
+ * or 0|false (return). Default 1|true.
+ * @type int $selected Which user ID should be selected. Default 0.
+ * @type bool $include_selected Whether to always include the selected user ID in the drop-
+ * down. Default false.
+ * @type string $name Name attribute of select element. Default 'user'.
+ * @type string $id ID attribute of the select element. Default is the value of `$name`.
+ * @type string $class Class attribute of the select element. Default empty.
+ * @type int $blog_id ID of blog (Multisite only). Default is ID of the current blog.
+ * @type string $who Deprecated, use `$capability` instead.
+ * Which type of users to query. Accepts only an empty string or
+ * 'authors'. Default empty (all users).
+ * @type string|string[] $role An array or a comma-separated list of role names that users
+ * must match to be included in results. Note that this is
+ * an inclusive list: users must match *each* role. Default empty.
+ * @type string[] $role__in An array of role names. Matched users must have at least one
+ * of these roles. Default empty array.
+ * @type string[] $role__not_in An array of role names to exclude. Users matching one or more
+ * of these roles will not be included in results. Default empty array.
+ * @type string|string[] $capability An array or a comma-separated list of capability names that users
+ * must match to be included in results. Note that this is
+ * an inclusive list: users must match *each* capability.
+ * Does NOT work for capabilities not in the database or filtered
+ * via {@see 'map_meta_cap'}. Default empty.
+ * @type string[] $capability__in An array of capability names. Matched users must have at least one
+ * of these capabilities.
+ * Does NOT work for capabilities not in the database or filtered
+ * via {@see 'map_meta_cap'}. Default empty array.
+ * @type string[] $capability__not_in An array of capability names to exclude. Users matching one or more
+ * of these capabilities will not be included in results.
+ * Does NOT work for capabilities not in the database or filtered
+ * via {@see 'map_meta_cap'}. Default empty array.
* }
* @return string HTML dropdown list of users.
*/
@@ -1997,7 +2031,7 @@ function email_exists( $email ) {
*/
function validate_username( $username ) {
$sanitized = sanitize_user( $username, true );
- $valid = ( $sanitized == $username && ! empty( $sanitized ) );
+ $valid = ( $sanitized === $username && ! empty( $sanitized ) );
/**
* Filters whether the provided username is valid.
@@ -2474,8 +2508,8 @@ function wp_insert_user( $userdata ) {
*/
do_action( 'profile_update', $user_id, $old_user_data, $userdata );
- if ( isset( $userdata['spam'] ) && $userdata['spam'] != $old_user_data->spam ) {
- if ( 1 == $userdata['spam'] ) {
+ if ( isset( $userdata['spam'] ) && $userdata['spam'] !== $old_user_data->spam ) {
+ if ( '1' === $userdata['spam'] ) {
/**
* Fires after the user is marked as a SPAM user.
*
@@ -2732,7 +2766,7 @@ All at ###SITENAME###
// Update the cookies if the password changed.
$current_user = wp_get_current_user();
- if ( $current_user->ID == $user_id ) {
+ if ( $current_user->ID === $user_id ) {
if ( isset( $plaintext_pass ) ) {
wp_clear_auth_cookie();
@@ -2743,7 +2777,9 @@ All at ###SITENAME###
$logged_in_cookie = wp_parse_auth_cookie( '', 'logged_in' );
/** This filter is documented in wp-includes/pluggable.php */
$default_cookie_life = apply_filters( 'auth_cookie_expiration', ( 2 * DAY_IN_SECONDS ), $user_id, false );
- $remember = false;
+
+ $remember = false;
+
if ( false !== $logged_in_cookie && ( $logged_in_cookie['expiration'] - time() ) > $default_cookie_life ) {
$remember = true;
}
@@ -3255,9 +3291,9 @@ function retrieve_password( $user_login = null ) {
* @type string $message The body of the email.
* @type string $headers The headers of the email.
* }
- * @type string $key The activation key.
- * @type string $user_login The username for the user.
- * @type WP_User $user_data WP_User object.
+ * @param string $key The activation key.
+ * @param string $user_login The username for the user.
+ * @param WP_User $user_data WP_User object.
*/
$notification_email = apply_filters( 'retrieve_password_notification_email', $defaults, $key, $user_login, $user_data );
@@ -3547,7 +3583,7 @@ function wp_get_users_with_no_role( $site_id = null ) {
$prefix = $wpdb->get_blog_prefix( $site_id );
- if ( is_multisite() && get_current_blog_id() != $site_id ) {
+ if ( is_multisite() && get_current_blog_id() !== $site_id ) {
switch_to_blog( $site_id );
$role_names = wp_roles()->get_names();
restore_current_blog();
@@ -3656,11 +3692,11 @@ function send_confirmation_on_profile_email() {
$errors = new WP_Error();
}
- if ( $current_user->ID != $_POST['user_id'] ) {
+ if ( $current_user->ID !== (int) $_POST['user_id'] ) {
return false;
}
- if ( $current_user->user_email != $_POST['email'] ) {
+ if ( $current_user->user_email !== $_POST['email'] ) {
if ( ! is_email( $_POST['email'] ) ) {
$errors->add(
'user_email',
diff --git a/wp-includes/vars.php b/wp-includes/vars.php
index a123696..b719b48 100644
--- a/wp-includes/vars.php
+++ b/wp-includes/vars.php
@@ -10,7 +10,7 @@
* servers with known pretty permalink capability.
*
* Note: Though Nginx is detected, WordPress does not currently
- * generate rewrite rules for it. See https://wordpress.org/documentation/article/nginx/
+ * generate rewrite rules for it. See https://developer.wordpress.org/advanced-administration/server/web-server/nginx/
*
* @package WordPress
*/
@@ -127,11 +127,11 @@ $is_apache = ( str_contains( $_SERVER['SERVER_SOFTWARE'], 'Apache' ) || str_cont
$is_nginx = ( str_contains( $_SERVER['SERVER_SOFTWARE'], 'nginx' ) );
/**
- * Whether the server software is Caddy or something else.
+ * Whether the server software is Caddy / FrankenPHP or something else.
*
* @global bool $is_caddy
*/
-$is_caddy = ( str_contains( $_SERVER['SERVER_SOFTWARE'], 'Caddy' ) );
+$is_caddy = ( str_contains( $_SERVER['SERVER_SOFTWARE'], 'Caddy' ) || str_contains( $_SERVER['SERVER_SOFTWARE'], 'FrankenPHP' ) );
/**
* Whether the server software is IIS or something else.
diff --git a/wp-includes/version.php b/wp-includes/version.php
index bdcc719..9334b44 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.5.5';
+$wp_version = '6.6.1';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
@@ -37,7 +37,7 @@ $tinymce_version = '49110-20201110';
*
* @global string $required_php_version
*/
-$required_php_version = '7.0.0';
+$required_php_version = '7.2.24';
/**
* Holds the required MySQL version.
diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php
index ff48419..32d8a95 100644
--- a/wp-includes/widgets.php
+++ b/wp-includes/widgets.php
@@ -28,27 +28,35 @@ global $wp_registered_sidebars, $wp_registered_widgets, $wp_registered_widget_co
/**
* Stores the sidebars, since many themes can have more than one.
*
- * @global array $wp_registered_sidebars The registered sidebars.
* @since 2.2.0
+ *
+ * @global array $wp_registered_sidebars The registered sidebars.
*/
$wp_registered_sidebars = array();
/**
* Stores the registered widgets.
*
- * @global array $wp_registered_widgets The registered widgets.
* @since 2.2.0
+ *
+ * @global array $wp_registered_widgets The registered widgets.
*/
$wp_registered_widgets = array();
/**
* Stores the registered widget controls (options).
*
- * @global array $wp_registered_widget_controls The registered widget controls.
* @since 2.2.0
+ *
+ * @global array $wp_registered_widget_controls The registered widget controls.
*/
$wp_registered_widget_controls = array();
+
/**
+ * Stores the registered widget updates.
+ *
+ * @since 2.8.0
+ *
* @global array $wp_registered_widget_updates The registered widget updates.
*/
$wp_registered_widget_updates = array();
diff --git a/wp-includes/widgets/class-wp-nav-menu-widget.php b/wp-includes/widgets/class-wp-nav-menu-widget.php
index 328f416..731e5bd 100644
--- a/wp-includes/widgets/class-wp-nav-menu-widget.php
+++ b/wp-includes/widgets/class-wp-nav-menu-widget.php
@@ -137,8 +137,9 @@ class WP_Nav_Menu_Widget extends WP_Widget {
*
* @since 3.0.0
*
- * @param array $instance Current settings.
* @global WP_Customize_Manager $wp_customize
+ *
+ * @param array $instance Current settings.
*/
public function form( $instance ) {
global $wp_customize;
diff --git a/wp-load.php b/wp-load.php
index d3787d1..40c141f 100644
--- a/wp-load.php
+++ b/wp-load.php
@@ -91,7 +91,7 @@ if ( file_exists( ABSPATH . 'wp-config.php' ) ) {
$die .= '<p>' . sprintf(
/* translators: 1: Documentation URL, 2: wp-config.php */
__( 'Need more help? <a href="%1$s">Read the support article on %2$s</a>.' ),
- __( 'https://wordpress.org/documentation/article/editing-wp-config-php/' ),
+ __( 'https://developer.wordpress.org/advanced-administration/wordpress/wp-config/' ),
'<code>wp-config.php</code>'
) . '</p>';
$die .= '<p>' . sprintf(
diff --git a/wp-login.php b/wp-login.php
index 9eeac4a..16faccb 100644
--- a/wp-login.php
+++ b/wp-login.php
@@ -33,14 +33,18 @@ if ( force_ssl_admin() && ! is_ssl() ) {
* upon successful login.
* @global string $action The action that brought the visitor to the login page.
*
- * @param string $title Optional. WordPress login Page title to display in the `<title>` element.
- * Default 'Log In'.
- * @param string $message Optional. Message to display in header. Default empty.
- * @param WP_Error $wp_error Optional. The error to pass. Default is a WP_Error instance.
+ * @param string|null $title Optional. WordPress login page title to display in the `<title>` element.
+ * Defaults to 'Log In'.
+ * @param string $message Optional. Message to display in header. Default empty.
+ * @param WP_Error|null $wp_error Optional. The error to pass. Defaults to a WP_Error instance.
*/
-function login_header( $title = 'Log In', $message = '', $wp_error = null ) {
+function login_header( $title = null, $message = '', $wp_error = null ) {
global $error, $interim_login, $action;
+ if ( null === $title ) {
+ $title = __( 'Log In' );
+ }
+
// Don't index any of these forms.
add_filter( 'wp_robots', 'wp_robots_sensitive_page' );
add_action( 'login_head', 'wp_strict_cross_origin_referrer' );
@@ -753,7 +757,7 @@ switch ( $action ) {
break;
case 'postpass':
- if ( ! array_key_exists( 'post_password', $_POST ) ) {
+ if ( ! isset( $_POST['post_password'] ) || ! is_string( $_POST['post_password'] ) ) {
wp_safe_redirect( wp_get_referer() );
exit;
}
@@ -792,7 +796,7 @@ switch ( $action ) {
wp_logout();
- if ( ! empty( $_REQUEST['redirect_to'] ) ) {
+ if ( ! empty( $_REQUEST['redirect_to'] ) && is_string( $_REQUEST['redirect_to'] ) ) {
$redirect_to = $_REQUEST['redirect_to'];
$requested_redirect_to = $redirect_to;
} else {
@@ -1296,7 +1300,7 @@ switch ( $action ) {
}
}
- if ( isset( $_REQUEST['redirect_to'] ) ) {
+ if ( isset( $_REQUEST['redirect_to'] ) && is_string( $_REQUEST['redirect_to'] ) ) {
$redirect_to = $_REQUEST['redirect_to'];
// Redirect to HTTPS if user wants SSL.
if ( $secure_cookie && str_contains( $redirect_to, 'wp-admin' ) ) {
@@ -1317,7 +1321,7 @@ switch ( $action ) {
sprintf(
/* translators: 1: Browser cookie documentation URL, 2: Support forums URL. */
__( '<strong>Error:</strong> Cookies are blocked due to unexpected output. For help, please see <a href="%1$s">this documentation</a> or try the <a href="%2$s">support forums</a>.' ),
- __( 'https://wordpress.org/documentation/article/cookies/' ),
+ __( 'https://developer.wordpress.org/advanced-administration/wordpress/cookies/' ),
__( 'https://wordpress.org/support/forums/' )
)
);
@@ -1328,13 +1332,14 @@ switch ( $action ) {
sprintf(
/* translators: %s: Browser cookie documentation URL. */
__( '<strong>Error:</strong> Cookies are blocked or not supported by your browser. You must <a href="%s">enable cookies</a> to use WordPress.' ),
- __( 'https://wordpress.org/documentation/article/cookies/#enable-cookies-in-your-browser' )
+ __( 'https://developer.wordpress.org/advanced-administration/wordpress/cookies/#enable-cookies-in-your-browser' )
)
);
}
}
- $requested_redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
+ $requested_redirect_to = isset( $_REQUEST['redirect_to'] ) && is_string( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
+
/**
* Filters the login redirect URL.
*
@@ -1438,7 +1443,9 @@ switch ( $action ) {
$errors->add( 'updated', __( '<strong>You have successfully updated WordPress!</strong> Please log back in to see what&#8217;s new.' ), 'message' );
} elseif ( WP_Recovery_Mode_Link_Service::LOGIN_ACTION_ENTERED === $action ) {
$errors->add( 'enter_recovery_mode', __( 'Recovery Mode Initialized. Please log in to continue.' ), 'message' );
- } elseif ( isset( $_GET['redirect_to'] ) && str_contains( $_GET['redirect_to'], 'wp-admin/authorize-application.php' ) ) {
+ } elseif ( isset( $_GET['redirect_to'] ) && is_string( $_GET['redirect_to'] )
+ && str_contains( $_GET['redirect_to'], 'wp-admin/authorize-application.php' )
+ ) {
$query_component = wp_parse_url( $_GET['redirect_to'], PHP_URL_QUERY );
$query = array();
if ( $query_component ) {
diff --git a/wp-settings.php b/wp-settings.php
index 9673479..369493f 100644
--- a/wp-settings.php
+++ b/wp-settings.php
@@ -107,6 +107,7 @@ wp_set_lang_dir();
// Load early WordPress files.
require ABSPATH . WPINC . '/class-wp-list-util.php';
+require ABSPATH . WPINC . '/class-wp-token-map.php';
require ABSPATH . WPINC . '/formatting.php';
require ABSPATH . WPINC . '/meta.php';
require ABSPATH . WPINC . '/functions.php';
@@ -248,14 +249,17 @@ require ABSPATH . WPINC . '/class-wp-oembed.php';
require ABSPATH . WPINC . '/class-wp-oembed-controller.php';
require ABSPATH . WPINC . '/media.php';
require ABSPATH . WPINC . '/http.php';
+require ABSPATH . WPINC . '/html-api/html5-named-character-references.php';
require ABSPATH . WPINC . '/html-api/class-wp-html-attribute-token.php';
require ABSPATH . WPINC . '/html-api/class-wp-html-span.php';
require ABSPATH . WPINC . '/html-api/class-wp-html-text-replacement.php';
+require ABSPATH . WPINC . '/html-api/class-wp-html-decoder.php';
require ABSPATH . WPINC . '/html-api/class-wp-html-tag-processor.php';
require ABSPATH . WPINC . '/html-api/class-wp-html-unsupported-exception.php';
require ABSPATH . WPINC . '/html-api/class-wp-html-active-formatting-elements.php';
require ABSPATH . WPINC . '/html-api/class-wp-html-open-elements.php';
require ABSPATH . WPINC . '/html-api/class-wp-html-token.php';
+require ABSPATH . WPINC . '/html-api/class-wp-html-stack-event.php';
require ABSPATH . WPINC . '/html-api/class-wp-html-processor-state.php';
require ABSPATH . WPINC . '/html-api/class-wp-html-processor.php';
require ABSPATH . WPINC . '/class-wp-http.php';
@@ -282,10 +286,10 @@ require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-controller.php';
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-posts-controller.php';
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-attachments-controller.php';
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-global-styles-controller.php';
-require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-global-styles-revisions-controller.php';
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-post-types-controller.php';
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-post-statuses-controller.php';
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-revisions-controller.php';
+require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-global-styles-revisions-controller.php';
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-template-revisions-controller.php';
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-autosaves-controller.php';
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-template-autosaves-controller.php';
@@ -363,20 +367,21 @@ require ABSPATH . WPINC . '/block-patterns.php';
require ABSPATH . WPINC . '/class-wp-block-supports.php';
require ABSPATH . WPINC . '/block-supports/utils.php';
require ABSPATH . WPINC . '/block-supports/align.php';
-require ABSPATH . WPINC . '/block-supports/background.php';
-require ABSPATH . WPINC . '/block-supports/border.php';
-require ABSPATH . WPINC . '/block-supports/colors.php';
require ABSPATH . WPINC . '/block-supports/custom-classname.php';
-require ABSPATH . WPINC . '/block-supports/dimensions.php';
-require ABSPATH . WPINC . '/block-supports/duotone.php';
-require ABSPATH . WPINC . '/block-supports/shadow.php';
-require ABSPATH . WPINC . '/block-supports/elements.php';
require ABSPATH . WPINC . '/block-supports/generated-classname.php';
+require ABSPATH . WPINC . '/block-supports/settings.php';
+require ABSPATH . WPINC . '/block-supports/elements.php';
+require ABSPATH . WPINC . '/block-supports/colors.php';
+require ABSPATH . WPINC . '/block-supports/typography.php';
+require ABSPATH . WPINC . '/block-supports/border.php';
require ABSPATH . WPINC . '/block-supports/layout.php';
require ABSPATH . WPINC . '/block-supports/position.php';
require ABSPATH . WPINC . '/block-supports/spacing.php';
-require ABSPATH . WPINC . '/block-supports/typography.php';
-require ABSPATH . WPINC . '/block-supports/settings.php';
+require ABSPATH . WPINC . '/block-supports/dimensions.php';
+require ABSPATH . WPINC . '/block-supports/duotone.php';
+require ABSPATH . WPINC . '/block-supports/shadow.php';
+require ABSPATH . WPINC . '/block-supports/background.php';
+require ABSPATH . WPINC . '/block-supports/block-style-variations.php';
require ABSPATH . WPINC . '/style-engine.php';
require ABSPATH . WPINC . '/style-engine/class-wp-style-engine.php';
require ABSPATH . WPINC . '/style-engine/class-wp-style-engine-css-declarations.php';
@@ -710,7 +715,7 @@ if ( is_multisite() ) {
* Ajax requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for
* users not logged in.
*
- * @link https://codex.wordpress.org/AJAX_in_Plugins
+ * @link https://developer.wordpress.org/plugins/javascript/ajax
*
* @since 3.0.0
*/